@ckeditor/ckeditor5-uploadcare 47.6.2-alpha.0 → 47.6.2

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 _0x2558bc,Command as _0x46dcca}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1ab41f,IconGooglePhotos as _0x4af8dc,IconGoogleDrive as _0x3e6cc0,IconFacebook as _0x31e7b4,IconDropbox as _0x4a19a4,IconUploadcareLink as _0x1baa51,IconUploadcareImageUpload as _0x32ead2,IconError as _0x208e3e,IconUploadcareImageEdit as _0x354414}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x542201,MenuBarMenuListItemButtonView as _0x54249e,View as _0x2dde75,FocusCycler as _0x5a1206,Dialog as _0x30b164,DialogViewPosition as _0x49e8b0,SpinnerView as _0x34473e,IconView as _0x5158d8,Notification as _0x46da16}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5e308f,DomEmitterMixin as _0x18df65,global as _0xf3981c,getAncestors as _0xa4b4ea,ObservableMixin as _0x3d3749,uid as _0xcc405e,createElement as _0x513ad3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x164b6e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4253f3,info as _0x108359}from'@uploadcare/upload-client';import*as _0x15ba95 from'@uploadcare/file-uploader';var i=function(_0x23d868){return _0x23d868['Local']='local',_0x23d868['URL']='url',_0x23d868['Dropbox']='dropbox',_0x23d868['GDrive']='gdrive',_0x23d868['Facebook']='facebook',_0x23d868['GPhotos']='gphotos',_0x23d868['OneDrive']='onedrive',_0x23d868;}({});function _(_0x4b7780,_0x15ae4c,_0x2ed800){const t=_0x4b7780['t'],_0x1ec081=_0x4b7780['t'];switch(_0x15ae4c){case i['Local']:return{'text':_0x1ec081('Insert'===_0x2ed800?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1ec081('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x2ed800?_0x1ec081('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1ec081('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x2ed800?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x2ed800?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x2ed800?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x2ed800?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x2ed800?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x15ae4c;}}class e extends _0x2558bc{['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 _0x31d9bb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x338c8a;for(const _0x3d43a3 in _0x31d9bb){const _0x1f55bb=_0x3d43a3,_0x480f15=_0x31d9bb[_0x1f55bb];if('uploadcareLicenseKeyValid'==_0x480f15||'uploadcareLicenseKeyInvalid'==_0x480f15||'uploadcareLicenseKeyExpired'==_0x480f15||'uploadcareLicenseKeyDomainLimit'==_0x480f15||'uploadcareLicenseKeyNotAllowed'==_0x480f15||'uploadcareLicenseKeyEvaluationLimit'==_0x480f15||'uploadcareLicenseKeyUsageLimit'==_0x480f15){delete _0x31d9bb[_0x1f55bb],_0x338c8a=_0x480f15,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x338c8a&&_0x31d9bb['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x338c8a&&_0x31d9bb['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x338c8a&&_0x31d9bb['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x338c8a&&_0x31d9bb['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x338c8a&&_0x31d9bb['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x338c8a&&_0x31d9bb['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x33bf33}=this,_0x7bea9a=_0x33bf33['commands']['get']('uploadcare');if(!_0x7bea9a)return;const _0xe90138=this['_normalizeConfigSourceList'](_0x33bf33['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x22b118,_0x52b6f3)=>{const _0x1d572d=this['_getIntegrationKey'](_0x52b6f3['type']);return _0x22b118[_0x1d572d]||(_0x22b118[_0x1d572d]=[]),_0x22b118[_0x1d572d]['push'](_0x52b6f3),_0x22b118;},{});_0x33bf33['plugins']['has']('ImageInsertUI')&&_0x33bf33['commands']['get']('uploadcare')&&Object['entries'](_0xe90138)['forEach'](([_0x3a4d8b,_0x463297])=>{_0x33bf33['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3a4d8b,'observable':()=>_0x7bea9a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x463297),'formViewCreator':()=>this['_createDropdownButtons'](_0x463297),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x463297),'override':'assetManager'!==_0x3a4d8b});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5791d0){const {locale:_0x27a03c}=this['editor'];return _0x5791d0['map'](_0x109288=>{const _0x256707=_(_0x27a03c,_0x109288,'Insert');switch(_0x109288){case i['Local']:return{'icon':_0x32ead2,'type':i['Local'],..._0x256707};case i['URL']:return{'icon':_0x1baa51,'type':i['URL'],..._0x256707};case i['Dropbox']:return{'icon':_0x4a19a4,'type':i['Dropbox'],..._0x256707};case i['Facebook']:return{'icon':_0x31e7b4,'type':i['Facebook'],..._0x256707};case i['GDrive']:return{'icon':_0x3e6cc0,'type':i['GDrive'],..._0x256707};case i['GPhotos']:return{'icon':_0x4af8dc,'type':i['GPhotos'],..._0x256707};case i['OneDrive']:return{'icon':_0x1ab41f,'type':i['OneDrive'],..._0x256707};}});}['_getIntegrationKey'](_0x10f1ff){switch(_0x10f1ff){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x39afc4,_0x3e5f02){const _0x26ec1d=this['editor'],_0x220c0e=new _0x39afc4(_0x26ec1d['locale']),_0x5c1ad1=_0x26ec1d['commands']['get']('uploadcare');return _0x220c0e['bind']('isEnabled')['to'](_0x5c1ad1),_0x220c0e['on']('execute',()=>{_0x5c1ad1['execute'](_0x3e5f02);}),_0x220c0e;}['_createToolbarButton'](_0xa3287e){const {locale:_0x38ae43}=this['editor'],_0x248ca5=this['editor']['plugins']['get']('ImageInsertUI'),_0x40f001=_0xa3287e[0x0],_0x23f156=this['_createButton'](_0x542201,_0x40f001['type']);return _0x23f156['icon']=_0x40f001['icon'],_0x23f156['bind']('label')['to'](_0x248ca5,'isImageSelected',_0x1203df=>_(_0x38ae43,_0x40f001['type'],_0x1203df?'Replace':'Insert')['text']),_0x23f156['tooltip']=!0x0,_0x23f156;}['_createDropdownButtons'](_0x42d6b1){const {locale:_0x2ead8c}=this['editor'],_0x1c0b07=this['editor']['plugins']['get']('ImageInsertUI');return _0x42d6b1['map'](_0x59234a=>{const _0x1c4e21=this['_createButton'](_0x542201,_0x59234a['type']);return _0x1c4e21['withText']=!0x0,_0x1c4e21['icon']=_0x59234a['icon'],_0x1c4e21['bind']('label')['to'](_0x1c0b07,'isImageSelected',_0x326984=>_(_0x2ead8c,_0x59234a['type'],_0x326984?'Replace':'Insert')['text']),_0x1c4e21;});}['_createMenuBarButtons'](_0x314d28){return _0x314d28['map'](_0x1b5279=>{const _0x34f2f3=this['_createButton'](_0x54249e,_0x1b5279['type']);return _0x34f2f3['icon']=_0x1b5279['icon'],_0x34f2f3['label']=_0x1b5279['shortText'],_0x34f2f3;});}}class F extends _0x2dde75{['focusTracker'];['focusCycler'];constructor(_0x35d343){super(_0x35d343),this['focusTracker']=new _0x5e308f(),this['focusCycler']=new _0x5a1206({'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(_0x55427c,_0xadf78e){super(_0x55427c),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-'+_0xadf78e}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3951b9,_0x50e2d1){const _0x1a08f1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1c28aa=>_0x1c28aa<=_0x50e2d1)['map'](_0x442529=>_0x3951b9['replace'](/\/$/,'')+'/-/resize/'+_0x442529+'x/\x20'+_0x442529+'w');return{'imageFallbackUrl':_0x3951b9,'imageSources':[{'srcset':_0x1a08f1['join'](',\x20'),'sizes':'(max-width:\x20'+_0x50e2d1+'px)\x20100vw,\x20'+_0x50e2d1+'px','type':'image/webp'}]};}function S(_0x2906dd,_0x102569,_0x147915){const _0x1de607=_0x2906dd['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1de607?parseInt(_0x1de607[0x1],0xa):_0x102569,'height':_0x1de607?parseInt(_0x1de607[0x2],0xa):_0x147915};}function p(_0x5520e2,_0x1df635){const _0x591aae=new(_0x18df65())(),_0x57dc58=_0x5520e2['plugins']['get']('ImageUtils'),_0x20894a=_0x5520e2['editing']['mapper']['toViewElement'](_0x1df635),_0x34c165=_0x57dc58['findViewImgElement'](_0x20894a),_0x5ecb0f=_0x5520e2['editing']['view']['domConverter']['viewToDom'](_0x34c165),_0x3a2ab9=_0x1df635['getAttribute']('width'),_0x299ac2=_0x1df635['getAttribute']('height'),_0x262e4d='image-processing';_0x5520e2['editing']['view']['change'](_0x1c0fd8=>{_0x1c0fd8['addClass'](_0x262e4d,_0x20894a),_0x1c0fd8['setStyle']('aspect-ratio',_0x3a2ab9+'/'+_0x299ac2,_0x34c165);}),_0x591aae['listenTo'](_0x5ecb0f,'load',()=>{_0x591aae['stopListening'](_0x5ecb0f,'load'),_0x5520e2['editing']['view']['change'](_0xff0cc=>{_0xff0cc['removeClass'](_0x262e4d,_0x20894a),_0xff0cc['removeStyle']('aspect-ratio',_0x34c165);});});}function G(_0x4dcafb){if(Array['isArray'](_0x4dcafb)){const _0x540824=_0x4dcafb['map'](G);return _0x3b6d88=>_0x540824['some'](_0x53b171=>_0x53b171(_0x3b6d88));}if('origin'==_0x4dcafb){const _0x33d43c=_0xf3981c['window']['location']['origin'];return _0x37d6c8=>new URL(_0x37d6c8,_0xf3981c['document']['baseURI'])['origin']==_0x33d43c;}return'function'==typeof _0x4dcafb?_0x4dcafb:_0x4dcafb instanceof RegExp?_0x32508c=>!(!_0x32508c['match'](_0x4dcafb)&&!_0x32508c['replace'](/^https?:\/\//,'')['match'](_0x4dcafb)):()=>!0x1;}function A(_0x380afd,_0x3ac491){return _0xa4b4ea(_0x380afd['target'])['includes'](_0x3ac491);}class n extends/* #__PURE__ -- @preserve */
24
- _0x3d3749(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x514a8c,_0x22318d,_0x5167d9){super(),this['_editor']=_0x514a8c,this['_editing']=_0x22318d,this['_dialog']=_0x514a8c['plugins']['get'](_0x30b164),this['_api']=_0x22318d['ctxElement']['getAPI'](),this['_type']=_0x5167d9,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:_0x7be905,model:_0x29295a}=this['_editor'],_0x29455c=_0x29295a['document']['selection']['getSelectedElement'](),_0x2ac849=_0x29455c&&(_0x29455c['is']('element','imageBlock')||_0x29455c['is']('element','imageInline'));this['_formView']=new x(_0x7be905,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x32ead2,'title':_(_0x7be905,this['_type'],_0x2ac849?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x49e8b0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x512fe0=>!A(_0x512fe0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x17c9ea}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x41fde5=>{const _0x5b6e05=_0x17c9ea['length'];for(const _0x47c6fc of _0x17c9ea){const _0x41709d=_0x47c6fc===_0x17c9ea[_0x5b6e05-0x1],{cdnUrl:_0x372f02,fileInfo:_0x503bad}=_0x47c6fc;if(!_0x372f02||!_0x503bad)continue;const {width:_0x1dbd8e,height:_0xd5c53d}=_0x503bad['imageInfo'],_0x12f9b2=S(_0x372f02,_0x1dbd8e,_0xd5c53d),_0x7299be=C(_0x372f02,_0x12f9b2['width']),_0x5b6e7f={'id':_0x503bad['uuid'],'type':'image','attributes':{'imageDimension':_0x12f9b2,..._0x7299be}};this['_insertAsset'](_0x5b6e7f,_0x41709d,_0x41fde5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3ed548=>{'idle'===_0x3ed548['detail']['status']&&!_0x3ed548['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3ea121,_0x2bda19,_0x2630f2){const _0x3ccbe8=this['_editor']['model']['document']['selection'],_0x2b6092=_0x3ccbe8['getSelectedElement'](),_0x4ed88e=!(!_0x2b6092||!_0x2b6092['is']('element','imageInline'));_0x2630f2['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3ea121,_0x4ed88e),_0x2bda19||_0x2630f2['setSelection'](_0x3ccbe8['getLastPosition']());}['_insertImage'](_0x38aebe,_0x4d08de){const _0x4fbf20=this['_editor'],{imageDimension:_0x541337,imageFallbackUrl:_0x2dff0a,imageSources:_0xba8319}=_0x38aebe['attributes'];_0x4fbf20['execute']('insertImage',{'imageType':_0x4d08de?'imageInline':null,'source':{'uploadcareImageId':_0x38aebe['id'],'src':_0x2dff0a,'sources':_0xba8319,..._0x541337}});}}class w extends _0x46dcca{['_editing'];['_controller']=null;static get['requires'](){return[_0x30b164,o];}constructor(_0x14bc18){super(_0x14bc18),this['_editing']=_0x14bc18['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1beea3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1beea3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x43bc4f,..._0x44aa2e}){return _0x4253f3(_0x43bc4f,_0x44aa2e);}static['getInfo'](_0x4f38a2,_0x1764d0){return _0x108359(_0x4f38a2,_0x1764d0);}}class f extends _0x2558bc{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x164b6e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x47e147=this['editor'];if(!!!_0x47e147['config']['get']('uploadcare'))return;_0x47e147['plugins']['get'](_0x164b6e)['createUploadAdapter']=_0x592ae5=>new k(_0x592ae5,_0x47e147),_0x47e147['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x26c247,{imageElement:_0x698ed6,data:_0x3e97f1})=>{_0x47e147['model']['change'](_0x4ac588=>{_0x4ac588['setAttribute']('uploadcareImageId',_0x3e97f1['uploadcareImageId'],_0x698ed6);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1c825e,_0x144c1d){this['loader']=_0x1c825e,this['editor']=_0x144c1d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xda9e0=await this['loader']['file'];return j['upload']({'file':_0xda9e0,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1ccc65=>{_0x1ccc65&&_0x1ccc65['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1ccc65['value']);}})['then'](async _0x411c1f=>{const {imageFallbackUrl:_0x245e03,imageSources:_0x33b1c7}=C(_0x411c1f['cdnUrl'],_0x411c1f['imageInfo']['width']);return{'uploadcareImageId':_0x411c1f['uuid'],'default':_0x245e03,'sources':_0x33b1c7};})['catch'](()=>{const _0x41adf4=t('Cannot\x20upload\x20file:')+('\x20'+_0xda9e0['name']+'.');return Promise['reject'](_0x41adf4);});}['abort'](){this['controller']['abort']();}}class o extends _0x2558bc{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x30b164];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x9af332){super(_0x9af332),this['ucContextId']=_0xcc405e();}['init'](){const _0x520bbd=this['editor'];_0x520bbd['commands']['add']('uploadcare',new w(_0x520bbd));}['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 _0x4d03c3=_0xf3981c['document']['querySelector']('input[uploadcare-file-input]');_0x4d03c3&&_0x4d03c3['remove']();}),async function(_0x3a1179){const _0x25836e=_0x2ca9f8([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2c564f=0x535f8c3a,_0x1e8dca=0x53580aaa^_0x2c564f,_0x396fa7=window[_0x2ca9f8([0x44,0x61,0x74,0x65])][_0x2ca9f8([0x6e,0x6f,0x77])](),_0xf12c46=_0x3a1179[_0x2ca9f8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x527bd9=new window[(_0x2ca9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe8400b=>{_0xf12c46[_0x2ca9f8([0x6f,0x6e,0x63,0x65])](_0x2ca9f8([0x72,0x65,0x61,0x64,0x79]),_0xe8400b);}),_0xc89862={[_0x2ca9f8([0x6b,0x74,0x79])]:_0x2ca9f8([0x45,0x43]),[_0x2ca9f8([0x75,0x73,0x65])]:_0x2ca9f8([0x73,0x69,0x67]),[_0x2ca9f8([0x63,0x72,0x76])]:_0x2ca9f8([0x50,0x2d,0x32,0x35,0x36]),[_0x2ca9f8([0x78])]:_0x2ca9f8([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]),[_0x2ca9f8([0x79])]:_0x2ca9f8([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]),[_0x2ca9f8([0x61,0x6c,0x67])]:_0x2ca9f8([0x45,0x53,0x32,0x35,0x36])},_0x36189f=_0xf12c46[_0x2ca9f8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2ca9f8([0x67,0x65,0x74])](_0x2ca9f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x20e6b5(){let _0x2a9de8,_0x468898=null,_0x1e3cfc=null;try{if(_0x36189f==_0x2ca9f8([0x47,0x50,0x4c]))return _0x2ca9f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a9de8=_0x396d15(),!_0x2a9de8)return _0x2ca9f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a9de8[_0x2ca9f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e3cfc=_0x2351e9(_0x2a9de8[_0x2ca9f8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a9de8[_0x2ca9f8([0x6a,0x74,0x69])])),await _0x116be4()?_0x5a1446()?_0x31ded9()?_0x2ca9f8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3148d4()?(_0x2a9de8[_0x2ca9f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ca9f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x468898=_0x68324d(_0x2ca9f8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x19dc7a()):_0x2ca9f8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2ca9f8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2ca9f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2ca9f8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31ded9(){const _0x573ae4=[_0x2ca9f8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2ca9f8([0x74,0x72,0x69,0x61,0x6c])][_0x2ca9f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a9de8[_0x2ca9f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x396fa7/0x3e8:0xe10*_0x1e8dca;return _0x2a9de8[_0x2ca9f8([0x65,0x78,0x70])]<_0x573ae4;}function _0x5a1446(){const _0x488728=_0x2a9de8[_0x2ca9f8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x488728&&(!!_0x488728[_0x2ca9f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ca9f8([0x2a]))||!!_0x488728[_0x2ca9f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ca9f8([0x55,0x50,0x4c,0x43])));}function _0x3148d4(){const _0x1b3564=_0x2a9de8[_0x2ca9f8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b3564||0x0==_0x1b3564[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b9b22}=new URL(window[_0x2ca9f8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b3564[_0x2ca9f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b9b22))return!0x0;const _0x4e241a=_0x2b9b22[_0x2ca9f8([0x73,0x70,0x6c,0x69,0x74])](_0x2ca9f8([0x2e]));return _0x1b3564[_0x2ca9f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x277292=>_0x277292[_0x2ca9f8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ca9f8([0x2a])))[_0x2ca9f8([0x6d,0x61,0x70])](_0x417a12=>_0x417a12[_0x2ca9f8([0x73,0x70,0x6c,0x69,0x74])](_0x2ca9f8([0x2e])))[_0x2ca9f8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x347475=>_0x347475[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4e241a[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ca9f8([0x6d,0x61,0x70])](_0x3554c2=>Array(_0x4e241a[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3554c2[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ca9f8([0x66,0x69,0x6c,0x6c])](_0x3554c2[0x0]===_0x2ca9f8([0x2a])?_0x2ca9f8([0x2a]):'')[_0x2ca9f8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3554c2))[_0x2ca9f8([0x73,0x6f,0x6d,0x65])](_0x1f7ffb=>_0x4e241a[_0x2ca9f8([0x65,0x76,0x65,0x72,0x79])]((_0x5d88cd,_0x56d4ac)=>_0x1f7ffb[_0x56d4ac]===_0x5d88cd||_0x1f7ffb[_0x56d4ac]===_0x2ca9f8([0x2a])));}function _0x19dc7a(){return _0x468898&&_0x1e3cfc?new window[(_0x2ca9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4197e1,_0x286990)=>{_0x468898[_0x2ca9f8([0x74,0x68,0x65,0x6e])](_0x4197e1,_0x286990),_0x1e3cfc[_0x2ca9f8([0x74,0x68,0x65,0x6e])](_0x3124fb=>{_0x3124fb!=_0x2ca9f8([0x56,0x61,0x6c,0x69,0x64])&&_0x4197e1(_0x3124fb);},_0x286990);}):_0x468898||_0x1e3cfc||_0x2ca9f8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2351e9(_0x45de4a,_0x581896){return new window[(_0x2ca9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c9c1a=>{if(_0x27d3db())return _0x2c9c1a(_0x2ca9f8([0x56,0x61,0x6c,0x69,0x64]));_0x5e3776(),_0xf12c46[_0x2ca9f8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2ca9f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x21474b=!0x1;const _0x28bfbf=_0xcc405e();function _0x1edc53(_0x20dfd7){return!!_0x20dfd7&&(typeof _0x20dfd7===_0x2ca9f8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x20dfd7===_0x2ca9f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x20dfd7[_0x2ca9f8([0x74,0x68,0x65,0x6e])]===_0x2ca9f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x20dfd7[_0x2ca9f8([0x63,0x61,0x74,0x63,0x68])]===_0x2ca9f8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4290b0(_0x2dcdff){_0x1d624c(_0x2dcdff)[_0x2ca9f8([0x74,0x68,0x65,0x6e])](_0x344535=>{if(!_0x344535||_0x344535[_0x2ca9f8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2ca9f8([0x6f,0x6b]))return _0x2ca9f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d1719(_0x1c18f3(_0x28bfbf+_0x581896))!=_0x344535[_0x2ca9f8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2ca9f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2ca9f8([0x56,0x61,0x6c,0x69,0x64]);})[_0x2ca9f8([0x74,0x68,0x65,0x6e])](_0x275fae=>(_0x5b318d(),_0x275fae),()=>{const _0x584a1e=_0x14f556();return null==_0x584a1e?(_0x5b318d(),_0x2ca9f8([0x56,0x61,0x6c,0x69,0x64])):_0x2ca9f8(_0x396fa7-_0x584a1e>(0x7753083a^_0x2c564f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2ca9f8([0x74,0x68,0x65,0x6e])](_0x2c9c1a)[_0x2ca9f8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c9c1a(_0x2ca9f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x31e3ab=0x536962ba^_0x2c564f;function _0x5b318d(){const _0x285186=_0x2ca9f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d1719(_0x1c18f3(_0x45de4a)),_0x1e31a9=_0x11e01f(_0x4d1719(window[_0x2ca9f8([0x4d,0x61,0x74,0x68])][_0x2ca9f8([0x63,0x65,0x69,0x6c])](_0x396fa7/_0x31e3ab)));window[_0x2ca9f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ca9f8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x285186,_0x1e31a9);}function _0x14f556(){const _0x1f9dbb=_0x2ca9f8([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d1719(_0x1c18f3(_0x45de4a)),_0x336a32=window[_0x2ca9f8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ca9f8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f9dbb);return _0x336a32?window[_0x2ca9f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11e01f(_0x336a32),0x10)*_0x31e3ab:null;}function _0x1d624c(_0x4f04e0){return new window[(_0x2ca9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41dc49,_0x534b27)=>{_0x4f04e0[_0x2ca9f8([0x74,0x68,0x65,0x6e])](_0x41dc49,_0x534b27),window[_0x2ca9f8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x534b27,0x535e58fa^_0x2c564f);});}}_0xf12c46[_0x2ca9f8([0x6f,0x6e])](_0x2ca9f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e5ab7,_0x352e99)=>{if(_0x352e99[0x0]!=_0x45de4a)return _0x2c9c1a(_0x2ca9f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x352e99[0x1]={..._0x352e99[0x1],[_0x2ca9f8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28bfbf};},{[_0x2ca9f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ca9f8([0x68,0x69,0x67,0x68])}),_0xf12c46[_0x2ca9f8([0x6f,0x6e])](_0x2ca9f8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f1d37=>{_0x1edc53(_0x2f1d37[_0x2ca9f8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x21474b=!0x0,_0x4290b0(_0x2f1d37[_0x2ca9f8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2ca9f8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ca9f8([0x6c,0x6f,0x77])}),_0x527bd9[_0x2ca9f8([0x74,0x68,0x65,0x6e])](()=>{_0x21474b||_0x2c9c1a(_0x2ca9f8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27d3db(){return _0xf12c46[_0x2ca9f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ca9f8([0x76,0x69,0x65,0x77])][_0x2ca9f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2ca9f8([0x61,0x75,0x74,0x6f]);}function _0x5e3776(){_0xf12c46[_0x2ca9f8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ca9f8([0x76,0x69,0x65,0x77])][_0x2ca9f8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ca9f8([0x61,0x75,0x74,0x6f]);}}function _0x68324d(_0x279f8b){const _0x59bb01=[new window[(_0x2ca9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43d5ef=>setTimeout(_0x43d5ef,0x5356b2f6^_0x2c564f)),_0x527bd9[_0x2ca9f8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2ca9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d7a84=>{let _0x33f0e7=0x0;_0xf12c46[_0x2ca9f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ca9f8([0x6f,0x6e])](_0x2ca9f8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2e3a3d,_0x756d7c)=>{_0x756d7c[0x0][_0x2ca9f8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33f0e7++,_0x33f0e7==(0x535f89d2^_0x2c564f)&&(_0x5d7a84(),_0x2e3a3d[_0x2ca9f8([0x6f,0x66,0x66])]());});}))];return window[_0x2ca9f8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ca9f8([0x72,0x61,0x63,0x65])](_0x59bb01)[_0x2ca9f8([0x74,0x68,0x65,0x6e])](()=>_0x279f8b);}async function _0x777305(){await _0x527bd9,_0xf12c46[_0x2ca9f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ca9f8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xe1e696,_0xf12c46[_0x2ca9f8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ca9f8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xe1e696,_0xf12c46[_0x2ca9f8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2ca9f8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x562e1a(_0x59d19a){const _0x474a12=_0x181dd0();_0xf12c46[_0x474a12]=_0x2ca9f8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59d19a,_0x59d19a!=_0x2ca9f8([0x56,0x61,0x6c,0x69,0x64])&&_0x777305();}function _0x181dd0(){const _0x48f0c5=window[_0x2ca9f8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2ca9f8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2ca9f8([0x6e,0x6f,0x77])]())[_0x2ca9f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2ca9f8([0x2e]),'');let _0x12c109=_0x2ca9f8([0x68]);for(let _0x352b03=0x0;_0x352b03<_0x48f0c5[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x352b03+=0x2){let _0x556928=window[_0x2ca9f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48f0c5[_0x2ca9f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x352b03,_0x352b03+0x2));_0x556928>=_0x25836e[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x556928-=_0x25836e[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x12c109+=_0x25836e[_0x556928];}return _0x12c109;}function _0x396d15(){const _0x49f066=_0x36189f[_0x2ca9f8([0x73,0x70,0x6c,0x69,0x74])](_0x2ca9f8([0x2e]));if(0x3!=_0x49f066[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4b6f12(_0x49f066[0x1]);function _0x4b6f12(_0x3f21ec){const _0x1c50aa=_0x3b81dd(_0x3f21ec);return _0x1c50aa&&_0xdc7f31()?_0x1c50aa:null;function _0xdc7f31(){const _0x19584f=_0x1c50aa[_0x2ca9f8([0x6a,0x74,0x69])],_0x3533eb=window[_0x2ca9f8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19584f[_0x2ca9f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19584f[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x217ff9={..._0x1c50aa,[_0x2ca9f8([0x6a,0x74,0x69])]:_0x19584f[_0x2ca9f8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x19584f[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x217ff9[_0x2ca9f8([0x76,0x63])],_0x1c18f3(_0x217ff9)==_0x3533eb;}}}async function _0x116be4(){let _0x41865b=!0x0;try{const _0x54f326=_0x36189f[_0x2ca9f8([0x73,0x70,0x6c,0x69,0x74])](_0x2ca9f8([0x2e])),[_0x5949dd,_0x1f05d7,_0x83457e]=_0x54f326;return _0x451e62(_0x5949dd),await _0x34401a(_0x5949dd,_0x1f05d7,_0x83457e),_0x41865b;}catch{return!0x1;}function _0x451e62(_0x4dca6f){const _0x11f91e=_0x3b81dd(_0x4dca6f);_0x11f91e&&_0x11f91e[_0x2ca9f8([0x61,0x6c,0x67])]==_0x2ca9f8([0x45,0x53,0x32,0x35,0x36])||(_0x41865b=!0x1);}async function _0x34401a(_0x42b934,_0x208995,_0x78e13a){const _0x430752=window[_0x2ca9f8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2ca9f8([0x66,0x72,0x6f,0x6d])](_0x4481d9(_0x78e13a),_0x5e37e7=>_0x5e37e7[_0x2ca9f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x38c241=new window[(_0x2ca9f8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2ca9f8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x42b934+_0x2ca9f8([0x2e])+_0x208995),_0xbe7a5c=window[_0x2ca9f8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2ca9f8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xbe7a5c)return;const _0x34dfa8=await _0xbe7a5c[_0x2ca9f8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2ca9f8([0x6a,0x77,0x6b]),_0xc89862,{[_0x2ca9f8([0x6e,0x61,0x6d,0x65])]:_0x2ca9f8([0x45,0x43,0x44,0x53,0x41]),[_0x2ca9f8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2ca9f8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2ca9f8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xbe7a5c[_0x2ca9f8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2ca9f8([0x6e,0x61,0x6d,0x65])]:_0x2ca9f8([0x45,0x43,0x44,0x53,0x41]),[_0x2ca9f8([0x68,0x61,0x73,0x68])]:{[_0x2ca9f8([0x6e,0x61,0x6d,0x65])]:_0x2ca9f8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34dfa8,_0x430752,_0x38c241)||(_0x41865b=!0x1);}}function _0x3b81dd(_0x8dc5d6){return _0x8dc5d6[_0x2ca9f8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2ca9f8([0x65,0x79]))?JSON[_0x2ca9f8([0x70,0x61,0x72,0x73,0x65])](_0x4481d9(_0x8dc5d6)):null;}function _0x4481d9(_0x1ec857){return window[_0x2ca9f8([0x61,0x74,0x6f,0x62])](_0x1ec857[_0x2ca9f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2ca9f8([0x2b]))[_0x2ca9f8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2ca9f8([0x2f])));}function _0x1c18f3(_0xfaaa04){let _0x7b6e1a=0x1505;function _0x13c390(_0x151444){for(let _0x2419d7=0x0;_0x2419d7<_0x151444[_0x2ca9f8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2419d7++){const _0x4c06d2=_0x151444[_0x2ca9f8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2419d7);_0x7b6e1a=(_0x7b6e1a<<0x5)+_0x7b6e1a+_0x4c06d2,_0x7b6e1a&=_0x7b6e1a;}}function _0x2c56ee(_0x55ce97){Array[_0x2ca9f8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x55ce97)?_0x55ce97[_0x2ca9f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c56ee):_0x55ce97&&typeof _0x55ce97==_0x2ca9f8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2ca9f8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x55ce97)[_0x2ca9f8([0x73,0x6f,0x72,0x74])]()[_0x2ca9f8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x99e64c,_0x348092])=>{_0x13c390(_0x99e64c),_0x2c56ee(_0x348092);}):_0x13c390(window[_0x2ca9f8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x55ce97));}return _0x2c56ee(_0xfaaa04),_0x7b6e1a>>>0x0;}function _0x4d1719(_0x455c8d){return _0x455c8d[_0x2ca9f8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2ca9f8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2ca9f8([0x30]));}function _0x11e01f(_0x535271){return _0x535271[_0x2ca9f8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2ca9f8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2ca9f8([0x6a,0x6f,0x69,0x6e])]('');}function _0xe1e696(){}function _0x2ca9f8(_0x3fbcf1){return _0x3fbcf1['map'](_0x20e514=>String['fromCharCode'](_0x20e514))['join']('');}_0x562e1a(await _0x20e6b5());}(this);}['_initSchema'](){const _0x3c0cce=this['editor']['model']['schema'];_0x3c0cce['isRegistered']('imageBlock')&&_0x3c0cce['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3c0cce['isRegistered']('imageInline')&&_0x3c0cce['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x400e6b=this['editor'];_0x400e6b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x400e6b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3e1381=>_0x3e1381['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x572899=_0x400e6b['commands']['get']('replaceImageSource');_0x572899&&this['listenTo'](_0x572899,'cleanupImage',(_0x3fb5c7,[_0x4d9d59,_0x32d427])=>{_0x4d9d59['removeAttribute']('uploadcareImageId',_0x32d427);});}['_initConfig'](){const _0x5ea36d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x100b59=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x513ad3(_0xf3981c['document'],'uc-config',{..._0x5ea36d,'pubkey':_0x100b59,'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']=_0x57e12b=>{if('closeMax'==_0x57e12b)return'#uc-icon-arrow-down';},_0xf3981c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x513ad3(_0xf3981c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xf3981c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1e0b90=this['editor']['commands']['get']('insertImage');_0x1e0b90&&this['listenTo'](_0x1e0b90,'execute',()=>{const _0x1fb1b4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1fb1b4&&_0x1fb1b4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1fb1b4);});});const _0x2b50fc=this['editor']['commands']['get']('uploadcareImageReplace');_0x2b50fc&&this['listenTo'](_0x2b50fc,'execute',()=>{const _0x581a15=this['editor']['model']['document']['selection']['getSelectedElement']();_0x581a15&&_0x581a15['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x581a15);});});}}class tt extends _0x2558bc{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e9869){super(_0x1e9869),_0x1e9869['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x15ba95['defineComponents'](_0x15ba95),this['_defineLocale']();}['_defineLocale'](){const _0x465556=this['editor']['config']['get']('uploadcare.locale'),_0x15b3d=this['editor']['locale']['contentLanguage'];_0x465556&&_0x15ba95['defineLocale'](_0x15b3d,_0x465556);}}class ii extends _0x2dde75{constructor(_0x2bec7e){super(_0x2bec7e);const t=_0x2bec7e['t'],_0x45c7d4=this['bindTemplate'],_0x25cdff=new _0x34473e();_0x25cdff['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':[_0x25cdff,{'text':_0x45c7d4['to']('imageUploadProgress',_0x45432b=>t('Loading\x20image...')+'\x20('+(_0x45432b||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 _0x2dde75{constructor(_0x4f143b){super(_0x4f143b);const t=_0x4f143b['t'];this['set']('errorType',null);const _0x4eb772=new _0x542201(_0x4f143b);_0x4eb772['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4eb772['withText']=!0x0,_0x4eb772['class']='ck-button-action',_0x4eb772['on']('execute',()=>{this['fire']('retry');}),_0x4eb772['bind']('isVisible')['to'](this,'errorType',_0x1a2418=>'NotFound'!==_0x1a2418);const _0x3a97be=new _0x5158d8();_0x3a97be['content']=_0x208e3e,_0x3a97be['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2ee42b=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':[_0x3a97be,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2ee42b['to']('errorType',_0x17307c=>t('NotFound'!==_0x17307c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4eb772]},{'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 _0x2dde75{constructor(_0x4bd180,_0x1d30a6){super(_0x4bd180);const _0x1c2bda=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1d30a6,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1c2bda['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x126958,_0x5d3df4,_0x48c7f7){super(_0x126958),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x126958),this['_errorView']=new ti(_0x126958),this['_editingView']=new ei(_0x126958,_0x48c7f7),this['_focusableView']=new _0x2dde75(_0x126958),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5d3df4),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'],_0x48e057=>{this['_addUploadcareImageEditorListeners'](_0x48e057);});}),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'](_0x21a7ed,_0x1b50ad){const _0x9267d6='uc-cloud-image-editor',_0x467686=_0x21a7ed['querySelector'](_0x9267d6);if(_0x467686)return _0x1b50ad(_0x467686);const _0x5d9aa9=new MutationObserver(_0x2b2c71=>{const _0x3a8c95=_0x2b2c71['filter'](_0x361a95=>_0x361a95['target']===_0x21a7ed&&_0x361a95['addedNodes']['length']>0x0&&_0x361a95['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x9267d6);_0x3a8c95['length']&&(_0x5d9aa9['disconnect'](),_0x1b50ad(_0x3a8c95[0x0]['addedNodes'][0x0]));});_0x5d9aa9['observe'](_0x21a7ed,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0xc1e537){_0xc1e537['addEventListener']('apply',_0x826404=>{this['fire']('apply',{'imageSrc':_0x826404['detail']['cdnUrl']});}),_0xc1e537['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x3d3749(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1aceb7,_0x132e8d,_0x5788f1){super(),this['_editor']=_0x1aceb7,this['_dialog']=_0x132e8d,this['_imageElement']=_0x5788f1,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 _0xe1efc0=this['_imageElement'],_0x1bb849=_0xe1efc0['getAttribute']('uploadcareImageId'),_0x15ba90=_0xe1efc0['getAttribute']('src');if(_0x1bb849)await this['_loadImageInfo'](_0x1bb849,_0x15ba90);else{if(this['_imageCache']['has'](_0x15ba90)){const _0x1e2748=this['_imageCache']['get'](_0x15ba90);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1e2748['url'],this['imageDimension']=_0x1e2748['dimension'],this['imageId']=_0x1e2748['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3ebdda}=this['_editor'],t=_0x3ebdda['t'],_0x16f268=new X(_0x3ebdda,this['imageStatus'],this['_attributes']);_0x16f268['bind']('status')['to'](this,'imageStatus'),_0x16f268['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x16f268['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x16f268['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x16f268,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x354414,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x16f268,'position':_0x49e8b0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x16f268['focus']();},'onHide':()=>{_0x16f268['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x26fce2=>!A(_0x26fce2,_0x16f268['element'])}});}['_loadImageInfo'](_0x41f075,_0x201fd8){return j['getInfo'](_0x41f075,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1fa420=>{const {width:_0x1f0386,height:_0xcd0fbd}=_0x1fa420['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x201fd8,this['imageDimension']={'width':_0x1f0386,'height':_0xcd0fbd},this['imageId']=_0x41f075;})['catch'](_0x1b26dd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1b26dd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x46038a,_0x2235f0){return this['_getImageAsFile'](_0x46038a)['then'](_0x1f807d=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2235f0['signal'],'file':_0x1f807d,'onProgress':_0x90e3ca=>{_0x90e3ca&&_0x90e3ca['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x90e3ca['value']));}}))['then'](_0x17e2ae=>{const {width:_0x3abf80,height:_0x5a507a}=_0x17e2ae['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17e2ae['cdnUrl'],this['imageDimension']={'width':_0x3abf80,'height':_0x5a507a},this['imageId']=_0x17e2ae['uuid'],this['imageUploadProgress']=null;const _0x18f851=_0x46038a['getAttribute']('src');this['_imageCache']['set'](_0x18f851,{'id':_0x17e2ae['uuid'],'url':_0x17e2ae['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x35c3d7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x35c3d7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x26a28f,_0x2ede39){_0x26a28f['on']('apply',(_0x513fac,_0x4d6588)=>{this['_replaceImage'](_0x2ede39,_0x4d6588['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x26a28f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x26a28f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5d84ea,_0x5f06ea,_0x32ae3b){const _0x561ee1=this['_editor'],{width:_0x1e9f4e,height:_0x3f6ee5}=S(_0x5f06ea,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5c28ba,imageSources:_0x4de111}=C(_0x5f06ea,_0x1e9f4e);_0x561ee1['model']['change'](_0x2f73be=>{if('$graveyard'===_0x5d84ea['root']['rootName']){_0x561ee1['execute']('insertImage',{'imageType':_0x5d84ea['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5d84ea['getAttributes']()),'uploadcareImageId':_0x32ae3b,'src':_0x5c28ba,'sources':_0x4de111,'width':_0x1e9f4e,'height':_0x3f6ee5}});const _0x36ace7=_0x5d84ea['getChildren']();_0x5d84ea=_0x561ee1['model']['document']['selection']['getSelectedElement']();for(const _0x18a842 of _0x36ace7)_0x2f73be['append'](_0x2f73be['cloneElement'](_0x18a842),_0x5d84ea);}else _0x2f73be['setSelection'](_0x5d84ea,'on'),_0x561ee1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5d84ea['getAttributes']()),'uploadcareImageId':_0x32ae3b,'src':_0x5c28ba,'sources':_0x4de111,'width':_0x1e9f4e,'height':_0x3f6ee5},_0x5d84ea);_0x2f73be['setSelection'](_0x5d84ea,'on');});}async['_getImageAsFile'](_0x3b1c66){const _0x2aad02=_0xf3981c['window'],_0x57d00f=_0xf3981c['document']['location']['href'],_0x21cca9=new _0x2aad02['URL'](_0x3b1c66['getAttribute']('src'),_0x57d00f);if('data:'===_0x21cca9['protocol']){const _0x164e14=_0x21cca9['href']['split'](','),_0xf90c87=_0x164e14[0x0]['match'](/:(.*?);/)[0x1],_0x7531b8=_0xf90c87['split']('/')[0x1],_0x11e04b=_0x2aad02['atob'](_0x164e14[_0x164e14['length']-0x1]);let _0x78df55=_0x11e04b['length'];const _0x48a04c=new _0x2aad02['Uint8Array'](_0x78df55);for(;_0x78df55--;)_0x48a04c[_0x78df55]=_0x11e04b['charCodeAt'](_0x78df55);return new _0x2aad02['File']([_0x48a04c],'image.'+_0x7531b8,{'type':_0xf90c87});}const _0x2f8ed1=_0x21cca9['href']['split']('/'),_0x5008a9=_0x2f8ed1[_0x2f8ed1['length']-0x1],_0x1c3db0=_0x5008a9['split']('.')[0x1];return _0x2aad02['fetch'](_0x21cca9['href'])['then'](_0x5475fd=>_0x5475fd['clone']()['blob']())['then'](_0x3ff761=>new _0x2aad02['File']([_0x3ff761],_0x5008a9,{'type':'image/'+_0x1c3db0}));}}class O extends _0x46dcca{['imageEditController'];static get['requires'](){return[_0x30b164];}['_isEditable'];constructor(_0x4a5dd2){super(_0x4a5dd2),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xa0a220){const _0x5e0242=G(_0xa0a220);return _0x31dfa5=>!(!_0x31dfa5||!_0x31dfa5['is']('element','imageBlock')&&!_0x31dfa5['is']('element','imageInline'))&&(!!_0x31dfa5['hasAttribute']('uploadcareImageId')||!!_0x31dfa5['hasAttribute']('src')&&_0x5e0242(_0x31dfa5['getAttribute']('src')));}(_0x4a5dd2['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1b3c07=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1b3c07);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4deaf9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4deaf9&&(_0x4deaf9['is']('element','imageBlock')||_0x4deaf9['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x30b164),_0x4deaf9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x46dcca{['refresh'](){const _0x2ff39b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2ff39b&&(_0x2ff39b['is']('element','imageBlock')||_0x2ff39b['is']('element','imageInline')));}['execute'](_0xd2fecf){const _0x5b8757=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x553d7f=>{_0x553d7f['setAttributes'](_0xd2fecf,_0x5b8757),_0x553d7f['removeAttribute']('srcset',_0x5b8757),_0x553d7f['removeAttribute']('sizes',_0x5b8757);});}}class m extends _0x2558bc{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x46da16,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x421cfc}=this;_0x421cfc['commands']['add']('uploadcareImageEdit',new O(_0x421cfc)),_0x421cfc['commands']['add']('uploadcareImageReplace',new R(_0x421cfc));}}class g extends _0x2558bc{['_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 _0x28ada7=this['editor'];_0x28ada7['ui']['componentFactory']['add']('uploadcareImageEdit',_0x24cad6=>{const _0x1fd235=_0x28ada7['commands']['get']('uploadcareImageEdit'),_0x2eaa38=new _0x542201(_0x24cad6),t=_0x24cad6['t'];return _0x2eaa38['set']({'icon':_0x354414,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2eaa38['bind']('isEnabled')['to'](_0x1fd235),_0x2eaa38['bind']('isOn')['to'](_0x1fd235,'isActive'),this['listenTo'](_0x2eaa38,'execute',()=>{_0x28ada7['execute']('uploadcareImageEdit'),_0x28ada7['editing']['view']['focus']();}),_0x2eaa38;}),this['_initConfig']();}['_initConfig'](){const _0xae77cc=_0x513ad3(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xae77cc),this['listenTo'](this['editor'],'destroy',()=>{_0xae77cc['remove']();});}}class et extends _0x2558bc{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 _0x53c0be,Command as _0x2af24d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1a5e75,IconGooglePhotos as _0x1417fa,IconGoogleDrive as _0x326a73,IconFacebook as _0xabf311,IconDropbox as _0xfc34a4,IconUploadcareLink as _0x3602a7,IconUploadcareImageUpload as _0x4810bc,IconError as _0x1f2473,IconUploadcareImageEdit as _0x5bbecd}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3efac0,MenuBarMenuListItemButtonView as _0x276866,View as _0x1165d9,FocusCycler as _0x348f0a,Dialog as _0x40de19,DialogViewPosition as _0x45c5da,SpinnerView as _0xd55652,IconView as _0x1f1870,Notification as _0x476b8a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x767656,DomEmitterMixin as _0x2e286e,global as _0x566bb4,getAncestors as _0x4510fe,ObservableMixin as _0x3b3467,uid as _0x232907,createElement as _0x41b016}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x4a2148}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xf8f91e,info as _0x186bb3}from'@uploadcare/upload-client';import*as _0x13394d from'@uploadcare/file-uploader';var i=function(_0x3754a0){return _0x3754a0['Local']='local',_0x3754a0['URL']='url',_0x3754a0['Dropbox']='dropbox',_0x3754a0['GDrive']='gdrive',_0x3754a0['Facebook']='facebook',_0x3754a0['GPhotos']='gphotos',_0x3754a0['OneDrive']='onedrive',_0x3754a0;}({});function _(_0x42005e,_0xd367df,_0x51aa06){const t=_0x42005e['t'],_0x555294=_0x42005e['t'];switch(_0xd367df){case i['Local']:return{'text':_0x555294('Insert'===_0x51aa06?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x555294('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x51aa06?_0x555294('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x555294('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x51aa06?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x51aa06?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x51aa06?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x51aa06?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x51aa06?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0xd367df;}}class e extends _0x53c0be{['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 _0x4b3260=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2744c9;for(const _0x51621d in _0x4b3260){const _0x40bcb3=_0x51621d,_0xb37de0=_0x4b3260[_0x40bcb3];if('uploadcareLicenseKeyValid'==_0xb37de0||'uploadcareLicenseKeyInvalid'==_0xb37de0||'uploadcareLicenseKeyExpired'==_0xb37de0||'uploadcareLicenseKeyDomainLimit'==_0xb37de0||'uploadcareLicenseKeyNotAllowed'==_0xb37de0||'uploadcareLicenseKeyEvaluationLimit'==_0xb37de0||'uploadcareLicenseKeyUsageLimit'==_0xb37de0){delete _0x4b3260[_0x40bcb3],_0x2744c9=_0xb37de0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2744c9&&_0x4b3260['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2744c9&&_0x4b3260['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2744c9&&_0x4b3260['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2744c9&&_0x4b3260['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2744c9&&_0x4b3260['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2744c9&&_0x4b3260['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4c9f7a}=this,_0x5cf523=_0x4c9f7a['commands']['get']('uploadcare');if(!_0x5cf523)return;const _0x11003b=this['_normalizeConfigSourceList'](_0x4c9f7a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5f25bf,_0x9e400d)=>{const _0x1ae7d0=this['_getIntegrationKey'](_0x9e400d['type']);return _0x5f25bf[_0x1ae7d0]||(_0x5f25bf[_0x1ae7d0]=[]),_0x5f25bf[_0x1ae7d0]['push'](_0x9e400d),_0x5f25bf;},{});_0x4c9f7a['plugins']['has']('ImageInsertUI')&&_0x4c9f7a['commands']['get']('uploadcare')&&Object['entries'](_0x11003b)['forEach'](([_0x4274b3,_0x493948])=>{_0x4c9f7a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4274b3,'observable':()=>_0x5cf523,'buttonViewCreator':()=>this['_createToolbarButton'](_0x493948),'formViewCreator':()=>this['_createDropdownButtons'](_0x493948),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x493948),'override':'assetManager'!==_0x4274b3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x48da36){const {locale:_0x233011}=this['editor'];return _0x48da36['map'](_0x115ab6=>{const _0x24c2ea=_(_0x233011,_0x115ab6,'Insert');switch(_0x115ab6){case i['Local']:return{'icon':_0x4810bc,'type':i['Local'],..._0x24c2ea};case i['URL']:return{'icon':_0x3602a7,'type':i['URL'],..._0x24c2ea};case i['Dropbox']:return{'icon':_0xfc34a4,'type':i['Dropbox'],..._0x24c2ea};case i['Facebook']:return{'icon':_0xabf311,'type':i['Facebook'],..._0x24c2ea};case i['GDrive']:return{'icon':_0x326a73,'type':i['GDrive'],..._0x24c2ea};case i['GPhotos']:return{'icon':_0x1417fa,'type':i['GPhotos'],..._0x24c2ea};case i['OneDrive']:return{'icon':_0x1a5e75,'type':i['OneDrive'],..._0x24c2ea};}});}['_getIntegrationKey'](_0x45c522){switch(_0x45c522){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x571d9e,_0x196522){const _0x786c34=this['editor'],_0x16a4f6=new _0x571d9e(_0x786c34['locale']),_0x5c341a=_0x786c34['commands']['get']('uploadcare');return _0x16a4f6['bind']('isEnabled')['to'](_0x5c341a),_0x16a4f6['on']('execute',()=>{_0x5c341a['execute'](_0x196522);}),_0x16a4f6;}['_createToolbarButton'](_0xf111e4){const {locale:_0x30f0e3}=this['editor'],_0xd18eed=this['editor']['plugins']['get']('ImageInsertUI'),_0x5a5fdb=_0xf111e4[0x0],_0x12e834=this['_createButton'](_0x3efac0,_0x5a5fdb['type']);return _0x12e834['icon']=_0x5a5fdb['icon'],_0x12e834['bind']('label')['to'](_0xd18eed,'isImageSelected',_0x5285b2=>_(_0x30f0e3,_0x5a5fdb['type'],_0x5285b2?'Replace':'Insert')['text']),_0x12e834['tooltip']=!0x0,_0x12e834;}['_createDropdownButtons'](_0x4f7732){const {locale:_0x35a9ae}=this['editor'],_0x403bcd=this['editor']['plugins']['get']('ImageInsertUI');return _0x4f7732['map'](_0x13612a=>{const _0x367eb2=this['_createButton'](_0x3efac0,_0x13612a['type']);return _0x367eb2['withText']=!0x0,_0x367eb2['icon']=_0x13612a['icon'],_0x367eb2['bind']('label')['to'](_0x403bcd,'isImageSelected',_0x33b94f=>_(_0x35a9ae,_0x13612a['type'],_0x33b94f?'Replace':'Insert')['text']),_0x367eb2;});}['_createMenuBarButtons'](_0x34c923){return _0x34c923['map'](_0x451eb0=>{const _0x28c23f=this['_createButton'](_0x276866,_0x451eb0['type']);return _0x28c23f['icon']=_0x451eb0['icon'],_0x28c23f['label']=_0x451eb0['shortText'],_0x28c23f;});}}class F extends _0x1165d9{['focusTracker'];['focusCycler'];constructor(_0x1de965){super(_0x1de965),this['focusTracker']=new _0x767656(),this['focusCycler']=new _0x348f0a({'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(_0x49e0fe,_0x2d37e3){super(_0x49e0fe),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-'+_0x2d37e3}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4d30b3,_0x63b5bd){const _0x8ab9d9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x326f18=>_0x326f18<=_0x63b5bd)['map'](_0x435b3b=>_0x4d30b3['replace'](/\/$/,'')+'/-/resize/'+_0x435b3b+'x/\x20'+_0x435b3b+'w');return{'imageFallbackUrl':_0x4d30b3,'imageSources':[{'srcset':_0x8ab9d9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x63b5bd+'px)\x20100vw,\x20'+_0x63b5bd+'px','type':'image/webp'}]};}function S(_0x11e0b3,_0x5bad84,_0x1bcd41){const _0x4b38cb=_0x11e0b3['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4b38cb?parseInt(_0x4b38cb[0x1],0xa):_0x5bad84,'height':_0x4b38cb?parseInt(_0x4b38cb[0x2],0xa):_0x1bcd41};}function p(_0x11acb8,_0x55a1e7){const _0x351512=new(_0x2e286e())(),_0x1f2141=_0x11acb8['plugins']['get']('ImageUtils'),_0x91b7e=_0x11acb8['editing']['mapper']['toViewElement'](_0x55a1e7),_0xba1f66=_0x1f2141['findViewImgElement'](_0x91b7e),_0x575980=_0x11acb8['editing']['view']['domConverter']['viewToDom'](_0xba1f66),_0x47c19e=_0x55a1e7['getAttribute']('width'),_0x1599fc=_0x55a1e7['getAttribute']('height'),_0x28c979='image-processing';_0x11acb8['editing']['view']['change'](_0x3d01bb=>{_0x3d01bb['addClass'](_0x28c979,_0x91b7e),_0x3d01bb['setStyle']('aspect-ratio',_0x47c19e+'/'+_0x1599fc,_0xba1f66);}),_0x351512['listenTo'](_0x575980,'load',()=>{_0x351512['stopListening'](_0x575980,'load'),_0x11acb8['editing']['view']['change'](_0x4b7beb=>{_0x4b7beb['removeClass'](_0x28c979,_0x91b7e),_0x4b7beb['removeStyle']('aspect-ratio',_0xba1f66);});});}function G(_0x413448){if(Array['isArray'](_0x413448)){const _0x211c62=_0x413448['map'](G);return _0x3993b4=>_0x211c62['some'](_0x40e615=>_0x40e615(_0x3993b4));}if('origin'==_0x413448){const _0x211ede=_0x566bb4['window']['location']['origin'];return _0x5525fe=>new URL(_0x5525fe,_0x566bb4['document']['baseURI'])['origin']==_0x211ede;}return'function'==typeof _0x413448?_0x413448:_0x413448 instanceof RegExp?_0x7f71b2=>!(!_0x7f71b2['match'](_0x413448)&&!_0x7f71b2['replace'](/^https?:\/\//,'')['match'](_0x413448)):()=>!0x1;}function A(_0x13da4b,_0x397011){return _0x4510fe(_0x13da4b['target'])['includes'](_0x397011);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x3b3467(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4b2e62,_0x215c5c,_0x5108fa){super(),this['_editor']=_0x4b2e62,this['_editing']=_0x215c5c,this['_dialog']=_0x4b2e62['plugins']['get'](_0x40de19),this['_api']=_0x215c5c['ctxElement']['getAPI'](),this['_type']=_0x5108fa,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:_0x5d7d6a,model:_0x1808a3}=this['_editor'],_0x59111f=_0x1808a3['document']['selection']['getSelectedElement'](),_0x57d247=_0x59111f&&(_0x59111f['is']('element','imageBlock')||_0x59111f['is']('element','imageInline'));this['_formView']=new x(_0x5d7d6a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4810bc,'title':_(_0x5d7d6a,this['_type'],_0x57d247?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x45c5da['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x38ca91=>!A(_0x38ca91,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x379002}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x22cc2e=>{const _0x2d8e1e=_0x379002['length'];for(const _0x53531e of _0x379002){const _0x5b928a=_0x53531e===_0x379002[_0x2d8e1e-0x1],{cdnUrl:_0x378d7a,fileInfo:_0x402f4}=_0x53531e;if(!_0x378d7a||!_0x402f4)continue;const {width:_0x37f56d,height:_0x14c9f8}=_0x402f4['imageInfo'],_0x44dc84=S(_0x378d7a,_0x37f56d,_0x14c9f8),_0x5efac0=C(_0x378d7a,_0x44dc84['width']),_0x246243={'id':_0x402f4['uuid'],'type':'image','attributes':{'imageDimension':_0x44dc84,..._0x5efac0}};this['_insertAsset'](_0x246243,_0x5b928a,_0x22cc2e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1e38b5=>{'idle'===_0x1e38b5['detail']['status']&&!_0x1e38b5['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x50e71d,_0x51735a,_0x491db1){const _0x50a79e=this['_editor']['model']['document']['selection'],_0x339ca1=_0x50a79e['getSelectedElement'](),_0x12e927=!(!_0x339ca1||!_0x339ca1['is']('element','imageInline'));_0x491db1['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x50e71d,_0x12e927),_0x51735a||_0x491db1['setSelection'](_0x50a79e['getLastPosition']());}['_insertImage'](_0x45de48,_0x4432d1){const _0x2d8495=this['_editor'],{imageDimension:_0x3ada75,imageFallbackUrl:_0x59f5ca,imageSources:_0x1407cf}=_0x45de48['attributes'];_0x2d8495['execute']('insertImage',{'imageType':_0x4432d1?'imageInline':null,'source':{'uploadcareImageId':_0x45de48['id'],'src':_0x59f5ca,'sources':_0x1407cf,..._0x3ada75}});}}class w extends _0x2af24d{['_editing'];['_controller']=null;static get['requires'](){return[_0x40de19,o];}constructor(_0x2ec411){super(_0x2ec411),this['_editing']=_0x2ec411['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3d799a){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3d799a);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x135441,..._0x5476bc}){return _0xf8f91e(_0x135441,_0x5476bc);}static['getInfo'](_0x557338,_0x4077ae){return _0x186bb3(_0x557338,_0x4077ae);}}class f extends _0x53c0be{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4a2148,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3d07ed=this['editor'];if(!!!_0x3d07ed['config']['get']('uploadcare'))return;_0x3d07ed['plugins']['get'](_0x4a2148)['createUploadAdapter']=_0x3c324e=>new k(_0x3c324e,_0x3d07ed),_0x3d07ed['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x343cb8,{imageElement:_0x37921c,data:_0x1a02de})=>{_0x3d07ed['model']['change'](_0x34c7e6=>{_0x34c7e6['setAttribute']('uploadcareImageId',_0x1a02de['uploadcareImageId'],_0x37921c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x487ccc,_0x4ec09f){this['loader']=_0x487ccc,this['editor']=_0x4ec09f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x53b05b=await this['loader']['file'];return j['upload']({'file':_0x53b05b,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x210cdd=>{_0x210cdd&&_0x210cdd['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x210cdd['value']);}})['then'](async _0x1d5378=>{const {imageFallbackUrl:_0x41c321,imageSources:_0x215d0d}=C(_0x1d5378['cdnUrl'],_0x1d5378['imageInfo']['width']);return{'uploadcareImageId':_0x1d5378['uuid'],'default':_0x41c321,'sources':_0x215d0d};})['catch'](()=>{const _0x29adf2=t('Cannot\x20upload\x20file:')+('\x20'+_0x53b05b['name']+'.');return Promise['reject'](_0x29adf2);});}['abort'](){this['controller']['abort']();}}class o extends _0x53c0be{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x40de19];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xc89388){super(_0xc89388),this['ucContextId']=_0x232907();}['init'](){const _0x3ad67f=this['editor'];_0x3ad67f['commands']['add']('uploadcare',new w(_0x3ad67f));}['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 _0x34a9bd=_0x566bb4['document']['querySelector']('input[uploadcare-file-input]');_0x34a9bd&&_0x34a9bd['remove']();}),async function(_0x2d54ab){const _0xf8ea4e=_0x2c3ed0([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2040b=0x535f8c3a,_0x1a7c25=0x53580a92^_0x2040b,_0x108cd4=window[_0x2c3ed0([0x44,0x61,0x74,0x65])][_0x2c3ed0([0x6e,0x6f,0x77])](),_0x46591c=_0x2d54ab[_0x2c3ed0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x33f103=new window[(_0x2c3ed0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bfdf2=>{_0x46591c[_0x2c3ed0([0x6f,0x6e,0x63,0x65])](_0x2c3ed0([0x72,0x65,0x61,0x64,0x79]),_0x3bfdf2);}),_0x3a4958={[_0x2c3ed0([0x6b,0x74,0x79])]:_0x2c3ed0([0x45,0x43]),[_0x2c3ed0([0x75,0x73,0x65])]:_0x2c3ed0([0x73,0x69,0x67]),[_0x2c3ed0([0x63,0x72,0x76])]:_0x2c3ed0([0x50,0x2d,0x32,0x35,0x36]),[_0x2c3ed0([0x78])]:_0x2c3ed0([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]),[_0x2c3ed0([0x79])]:_0x2c3ed0([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]),[_0x2c3ed0([0x61,0x6c,0x67])]:_0x2c3ed0([0x45,0x53,0x32,0x35,0x36])},_0x51fe40=_0x46591c[_0x2c3ed0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c3ed0([0x67,0x65,0x74])](_0x2c3ed0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5f03ed(){let _0x40908c,_0x4331cd=null,_0x147824=null;try{if(_0x51fe40==_0x2c3ed0([0x47,0x50,0x4c]))return _0x2c3ed0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x40908c=_0x27091c(),!_0x40908c)return _0x2c3ed0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x40908c[_0x2c3ed0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x147824=_0x3d273e(_0x40908c[_0x2c3ed0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x40908c[_0x2c3ed0([0x6a,0x74,0x69])])),await _0x29dbac()?_0x573d76()?_0x3d4a5e()?_0x2c3ed0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x367b9f()?(_0x40908c[_0x2c3ed0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c3ed0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4331cd=_0x21b50a(_0x2c3ed0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ad8f6()):_0x2c3ed0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c3ed0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c3ed0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2c3ed0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d4a5e(){const _0x29ee59=[_0x2c3ed0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c3ed0([0x74,0x72,0x69,0x61,0x6c])][_0x2c3ed0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40908c[_0x2c3ed0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x108cd4/0x3e8:0xe10*_0x1a7c25;return _0x40908c[_0x2c3ed0([0x65,0x78,0x70])]<_0x29ee59;}function _0x573d76(){const _0x15a157=_0x40908c[_0x2c3ed0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x15a157&&(!!_0x15a157[_0x2c3ed0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c3ed0([0x2a]))||!!_0x15a157[_0x2c3ed0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c3ed0([0x55,0x50,0x4c,0x43])));}function _0x367b9f(){const _0x64e41=_0x40908c[_0x2c3ed0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x64e41||0x0==_0x64e41[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x36f2c3}=new URL(window[_0x2c3ed0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x64e41[_0x2c3ed0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x36f2c3))return!0x0;const _0x3f10e3=_0x36f2c3[_0x2c3ed0([0x73,0x70,0x6c,0x69,0x74])](_0x2c3ed0([0x2e]));return _0x64e41[_0x2c3ed0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a15b7=>_0x5a15b7[_0x2c3ed0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c3ed0([0x2a])))[_0x2c3ed0([0x6d,0x61,0x70])](_0x5b604d=>_0x5b604d[_0x2c3ed0([0x73,0x70,0x6c,0x69,0x74])](_0x2c3ed0([0x2e])))[_0x2c3ed0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x347fa2=>_0x347fa2[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3f10e3[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c3ed0([0x6d,0x61,0x70])](_0x3acced=>Array(_0x3f10e3[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3acced[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2c3ed0([0x66,0x69,0x6c,0x6c])](_0x3acced[0x0]===_0x2c3ed0([0x2a])?_0x2c3ed0([0x2a]):'')[_0x2c3ed0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3acced))[_0x2c3ed0([0x73,0x6f,0x6d,0x65])](_0x28170a=>_0x3f10e3[_0x2c3ed0([0x65,0x76,0x65,0x72,0x79])]((_0x102bea,_0x243e7f)=>_0x28170a[_0x243e7f]===_0x102bea||_0x28170a[_0x243e7f]===_0x2c3ed0([0x2a])));}function _0x1ad8f6(){return _0x4331cd&&_0x147824?new window[(_0x2c3ed0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8cbd87,_0x32ca62)=>{_0x4331cd[_0x2c3ed0([0x74,0x68,0x65,0x6e])](_0x8cbd87,_0x32ca62),_0x147824[_0x2c3ed0([0x74,0x68,0x65,0x6e])](_0x3c9acd=>{_0x3c9acd!=_0x2c3ed0([0x56,0x61,0x6c,0x69,0x64])&&_0x8cbd87(_0x3c9acd);},_0x32ca62);}):_0x4331cd||_0x147824||_0x2c3ed0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d273e(_0x4a7e9e,_0xda56dc){return new window[(_0x2c3ed0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfe35f5=>{if(_0x4e8a6b())return _0xfe35f5(_0x2c3ed0([0x56,0x61,0x6c,0x69,0x64]));_0x1acb3c(),_0x46591c[_0x2c3ed0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c3ed0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42a032=!0x1;const _0x7b7528=_0x232907();function _0x2a5ee7(_0x596cc2){return!!_0x596cc2&&(typeof _0x596cc2===_0x2c3ed0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x596cc2===_0x2c3ed0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x596cc2[_0x2c3ed0([0x74,0x68,0x65,0x6e])]===_0x2c3ed0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x596cc2[_0x2c3ed0([0x63,0x61,0x74,0x63,0x68])]===_0x2c3ed0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6a058b(_0x1dc065){_0x530492(_0x1dc065)[_0x2c3ed0([0x74,0x68,0x65,0x6e])](_0x595cc7=>{if(!_0x595cc7||_0x595cc7[_0x2c3ed0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c3ed0([0x6f,0x6b]))return _0x2c3ed0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3cf1a6(_0x27891(_0x7b7528+_0xda56dc))!=_0x595cc7[_0x2c3ed0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c3ed0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c3ed0([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c3ed0([0x74,0x68,0x65,0x6e])](_0x3babc4=>(_0x1a2536(),_0x3babc4),()=>{const _0x466d1d=_0x19f441();return null==_0x466d1d?(_0x1a2536(),_0x2c3ed0([0x56,0x61,0x6c,0x69,0x64])):_0x2c3ed0(_0x108cd4-_0x466d1d>(0x7753083a^_0x2040b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c3ed0([0x74,0x68,0x65,0x6e])](_0xfe35f5)[_0x2c3ed0([0x63,0x61,0x74,0x63,0x68])](()=>{_0xfe35f5(_0x2c3ed0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2266f0=0x536962ba^_0x2040b;function _0x1a2536(){const _0x23fbcb=_0x2c3ed0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cf1a6(_0x27891(_0x4a7e9e)),_0xbe0c1e=_0xb9c9f2(_0x3cf1a6(window[_0x2c3ed0([0x4d,0x61,0x74,0x68])][_0x2c3ed0([0x63,0x65,0x69,0x6c])](_0x108cd4/_0x2266f0)));window[_0x2c3ed0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c3ed0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23fbcb,_0xbe0c1e);}function _0x19f441(){const _0x2b6add=_0x2c3ed0([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cf1a6(_0x27891(_0x4a7e9e)),_0x16bd76=window[_0x2c3ed0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c3ed0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2b6add);return _0x16bd76?window[_0x2c3ed0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb9c9f2(_0x16bd76),0x10)*_0x2266f0:null;}function _0x530492(_0x576aa6){return new window[(_0x2c3ed0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b7271,_0x5bcee4)=>{_0x576aa6[_0x2c3ed0([0x74,0x68,0x65,0x6e])](_0x3b7271,_0x5bcee4),window[_0x2c3ed0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5bcee4,0x535e58fa^_0x2040b);});}}_0x46591c[_0x2c3ed0([0x6f,0x6e])](_0x2c3ed0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x111b1b,_0x3caf8b)=>{if(_0x3caf8b[0x0]!=_0x4a7e9e)return _0xfe35f5(_0x2c3ed0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3caf8b[0x1]={..._0x3caf8b[0x1],[_0x2c3ed0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7b7528};},{[_0x2c3ed0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c3ed0([0x68,0x69,0x67,0x68])}),_0x46591c[_0x2c3ed0([0x6f,0x6e])](_0x2c3ed0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x16e1dc=>{_0x2a5ee7(_0x16e1dc[_0x2c3ed0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42a032=!0x0,_0x6a058b(_0x16e1dc[_0x2c3ed0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c3ed0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c3ed0([0x6c,0x6f,0x77])}),_0x33f103[_0x2c3ed0([0x74,0x68,0x65,0x6e])](()=>{_0x42a032||_0xfe35f5(_0x2c3ed0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e8a6b(){return _0x46591c[_0x2c3ed0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c3ed0([0x76,0x69,0x65,0x77])][_0x2c3ed0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c3ed0([0x61,0x75,0x74,0x6f]);}function _0x1acb3c(){_0x46591c[_0x2c3ed0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c3ed0([0x76,0x69,0x65,0x77])][_0x2c3ed0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c3ed0([0x61,0x75,0x74,0x6f]);}}function _0x21b50a(_0x3beb94){const _0x45b3f4=[new window[(_0x2c3ed0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30f734=>setTimeout(_0x30f734,0x5356b2f6^_0x2040b)),_0x33f103[_0x2c3ed0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c3ed0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11c36c=>{let _0x408b10=0x0;_0x46591c[_0x2c3ed0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c3ed0([0x6f,0x6e])](_0x2c3ed0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1f7061,_0x1db22e)=>{_0x1db22e[0x0][_0x2c3ed0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x408b10++,_0x408b10==(0x535f89d2^_0x2040b)&&(_0x11c36c(),_0x1f7061[_0x2c3ed0([0x6f,0x66,0x66])]());});}))];return window[_0x2c3ed0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c3ed0([0x72,0x61,0x63,0x65])](_0x45b3f4)[_0x2c3ed0([0x74,0x68,0x65,0x6e])](()=>_0x3beb94);}async function _0x44feb5(){await _0x33f103,_0x46591c[_0x2c3ed0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c3ed0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x599c9e,_0x46591c[_0x2c3ed0([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c3ed0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x599c9e,_0x46591c[_0x2c3ed0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c3ed0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1cd064(_0x4e1d0f){const _0x202902=_0x5df365();_0x46591c[_0x202902]=_0x2c3ed0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e1d0f,_0x4e1d0f!=_0x2c3ed0([0x56,0x61,0x6c,0x69,0x64])&&_0x44feb5();}function _0x5df365(){const _0x12d552=window[_0x2c3ed0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c3ed0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c3ed0([0x6e,0x6f,0x77])]())[_0x2c3ed0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c3ed0([0x2e]),'');let _0x24f169=_0x2c3ed0([0x68]);for(let _0x1d0a9b=0x0;_0x1d0a9b<_0x12d552[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1d0a9b+=0x2){let _0x568a14=window[_0x2c3ed0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12d552[_0x2c3ed0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1d0a9b,_0x1d0a9b+0x2));_0x568a14>=_0xf8ea4e[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x568a14-=_0xf8ea4e[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24f169+=_0xf8ea4e[_0x568a14];}return _0x24f169;}function _0x27091c(){const _0x15b6d3=_0x51fe40[_0x2c3ed0([0x73,0x70,0x6c,0x69,0x74])](_0x2c3ed0([0x2e]));if(0x3!=_0x15b6d3[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x20d927(_0x15b6d3[0x1]);function _0x20d927(_0xf36140){const _0x53e332=_0x3f1c09(_0xf36140);return _0x53e332&&_0x307547()?_0x53e332:null;function _0x307547(){const _0x2dae10=_0x53e332[_0x2c3ed0([0x6a,0x74,0x69])],_0x434bea=window[_0x2c3ed0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dae10[_0x2c3ed0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2dae10[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x585cb={..._0x53e332,[_0x2c3ed0([0x6a,0x74,0x69])]:_0x2dae10[_0x2c3ed0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2dae10[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x585cb[_0x2c3ed0([0x76,0x63])],_0x27891(_0x585cb)==_0x434bea;}}}async function _0x29dbac(){let _0x2b40b2=!0x0;try{const _0x43c9cc=_0x51fe40[_0x2c3ed0([0x73,0x70,0x6c,0x69,0x74])](_0x2c3ed0([0x2e])),[_0x1b782a,_0x2aadc5,_0x3d0e04]=_0x43c9cc;return _0x3b0db3(_0x1b782a),await _0x26dece(_0x1b782a,_0x2aadc5,_0x3d0e04),_0x2b40b2;}catch{return!0x1;}function _0x3b0db3(_0x3e323b){const _0x2c3c34=_0x3f1c09(_0x3e323b);_0x2c3c34&&_0x2c3c34[_0x2c3ed0([0x61,0x6c,0x67])]==_0x2c3ed0([0x45,0x53,0x32,0x35,0x36])||(_0x2b40b2=!0x1);}async function _0x26dece(_0x436f77,_0x1677de,_0x4d21b4){const _0xa2ce01=window[_0x2c3ed0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c3ed0([0x66,0x72,0x6f,0x6d])](_0x2ea9d9(_0x4d21b4),_0x399451=>_0x399451[_0x2c3ed0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a1af8=new window[(_0x2c3ed0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c3ed0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x436f77+_0x2c3ed0([0x2e])+_0x1677de),_0x55506c=window[_0x2c3ed0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c3ed0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x55506c)return;const _0x30f34f=await _0x55506c[_0x2c3ed0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c3ed0([0x6a,0x77,0x6b]),_0x3a4958,{[_0x2c3ed0([0x6e,0x61,0x6d,0x65])]:_0x2c3ed0([0x45,0x43,0x44,0x53,0x41]),[_0x2c3ed0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c3ed0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c3ed0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x55506c[_0x2c3ed0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c3ed0([0x6e,0x61,0x6d,0x65])]:_0x2c3ed0([0x45,0x43,0x44,0x53,0x41]),[_0x2c3ed0([0x68,0x61,0x73,0x68])]:{[_0x2c3ed0([0x6e,0x61,0x6d,0x65])]:_0x2c3ed0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x30f34f,_0xa2ce01,_0x2a1af8)||(_0x2b40b2=!0x1);}}function _0x3f1c09(_0x4d8004){return _0x4d8004[_0x2c3ed0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c3ed0([0x65,0x79]))?JSON[_0x2c3ed0([0x70,0x61,0x72,0x73,0x65])](_0x2ea9d9(_0x4d8004)):null;}function _0x2ea9d9(_0xfe6b2c){return window[_0x2c3ed0([0x61,0x74,0x6f,0x62])](_0xfe6b2c[_0x2c3ed0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c3ed0([0x2b]))[_0x2c3ed0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c3ed0([0x2f])));}function _0x27891(_0x5df5cc){let _0x43a18a=0x1505;function _0x3a3436(_0x4f2ab8){for(let _0x56fab0=0x0;_0x56fab0<_0x4f2ab8[_0x2c3ed0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56fab0++){const _0x41b7de=_0x4f2ab8[_0x2c3ed0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x56fab0);_0x43a18a=(_0x43a18a<<0x5)+_0x43a18a+_0x41b7de,_0x43a18a&=_0x43a18a;}}function _0x46fd53(_0x3ae7be){Array[_0x2c3ed0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3ae7be)?_0x3ae7be[_0x2c3ed0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x46fd53):_0x3ae7be&&typeof _0x3ae7be==_0x2c3ed0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c3ed0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3ae7be)[_0x2c3ed0([0x73,0x6f,0x72,0x74])]()[_0x2c3ed0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29307f,_0x1922e4])=>{_0x3a3436(_0x29307f),_0x46fd53(_0x1922e4);}):_0x3a3436(window[_0x2c3ed0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3ae7be));}return _0x46fd53(_0x5df5cc),_0x43a18a>>>0x0;}function _0x3cf1a6(_0x7cb202){return _0x7cb202[_0x2c3ed0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c3ed0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c3ed0([0x30]));}function _0xb9c9f2(_0x3f82a5){return _0x3f82a5[_0x2c3ed0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c3ed0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c3ed0([0x6a,0x6f,0x69,0x6e])]('');}function _0x599c9e(){}function _0x2c3ed0(_0xe8e385){return _0xe8e385['map'](_0x95d9f0=>String['fromCharCode'](_0x95d9f0))['join']('');}_0x1cd064(await _0x5f03ed());}(this);}['_initSchema'](){const _0x129905=this['editor']['model']['schema'];_0x129905['isRegistered']('imageBlock')&&_0x129905['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x129905['isRegistered']('imageInline')&&_0x129905['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xbfd15e=this['editor'];_0xbfd15e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xbfd15e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x474bae=>_0x474bae['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x510cdd=_0xbfd15e['commands']['get']('replaceImageSource');_0x510cdd&&this['listenTo'](_0x510cdd,'cleanupImage',(_0x4cd3f0,[_0x5e92e2,_0xdd036e])=>{_0x5e92e2['removeAttribute']('uploadcareImageId',_0xdd036e);});}['_initConfig'](){const _0x5480d7=this['editor']['config']['get']('uploadcare.uploader')||{},_0x10d64e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x41b016(_0x566bb4['document'],'uc-config',{..._0x5480d7,'pubkey':_0x10d64e,'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']=_0x44e888=>{if('closeMax'==_0x44e888)return'#uc-icon-arrow-down';},_0x566bb4['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x41b016(_0x566bb4['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x566bb4['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x32addd=this['editor']['commands']['get']('insertImage');_0x32addd&&this['listenTo'](_0x32addd,'execute',()=>{const _0x440488=this['editor']['model']['document']['selection']['getSelectedElement']();_0x440488&&_0x440488['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x440488);});});const _0x19ae9c=this['editor']['commands']['get']('uploadcareImageReplace');_0x19ae9c&&this['listenTo'](_0x19ae9c,'execute',()=>{const _0x544fb5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x544fb5&&_0x544fb5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x544fb5);});});}}class tt extends _0x53c0be{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11453a){super(_0x11453a),_0x11453a['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x13394d['defineComponents'](_0x13394d),this['_defineLocale']();}['_defineLocale'](){const _0x4634fe=this['editor']['config']['get']('uploadcare.locale'),_0x33c183=this['editor']['locale']['contentLanguage'];_0x4634fe&&_0x13394d['defineLocale'](_0x33c183,_0x4634fe);}}class ii extends _0x1165d9{constructor(_0x38cb87){super(_0x38cb87);const t=_0x38cb87['t'],_0x12fe24=this['bindTemplate'],_0x1ff038=new _0xd55652();_0x1ff038['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':[_0x1ff038,{'text':_0x12fe24['to']('imageUploadProgress',_0x48cb42=>t('Loading\x20image...')+'\x20('+(_0x48cb42||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 _0x1165d9{constructor(_0x5dc0d5){super(_0x5dc0d5);const t=_0x5dc0d5['t'];this['set']('errorType',null);const _0x41ad95=new _0x3efac0(_0x5dc0d5);_0x41ad95['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x41ad95['withText']=!0x0,_0x41ad95['class']='ck-button-action',_0x41ad95['on']('execute',()=>{this['fire']('retry');}),_0x41ad95['bind']('isVisible')['to'](this,'errorType',_0x3929a1=>'NotFound'!==_0x3929a1);const _0x2d0060=new _0x1f1870();_0x2d0060['content']=_0x1f2473,_0x2d0060['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x377935=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':[_0x2d0060,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x377935['to']('errorType',_0x503262=>t('NotFound'!==_0x503262?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x41ad95]},{'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 _0x1165d9{constructor(_0x3863cc,_0x474dc4){super(_0x3863cc);const _0x323d2d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x474dc4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x323d2d['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x59e302,_0x459041,_0x4778f0){super(_0x59e302),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x59e302),this['_errorView']=new ti(_0x59e302),this['_editingView']=new ei(_0x59e302,_0x4778f0),this['_focusableView']=new _0x1165d9(_0x59e302),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x459041),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'],_0x3225e1=>{this['_addUploadcareImageEditorListeners'](_0x3225e1);});}),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'](_0x3dabe8,_0xdf36b3){const _0x30fca8='uc-cloud-image-editor',_0x4ae63d=_0x3dabe8['querySelector'](_0x30fca8);if(_0x4ae63d)return _0xdf36b3(_0x4ae63d);const _0x559963=new MutationObserver(_0x24d56c=>{const _0x7266dc=_0x24d56c['filter'](_0x4c6212=>_0x4c6212['target']===_0x3dabe8&&_0x4c6212['addedNodes']['length']>0x0&&_0x4c6212['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x30fca8);_0x7266dc['length']&&(_0x559963['disconnect'](),_0xdf36b3(_0x7266dc[0x0]['addedNodes'][0x0]));});_0x559963['observe'](_0x3dabe8,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4851e0){_0x4851e0['addEventListener']('apply',_0x120b1b=>{this['fire']('apply',{'imageSrc':_0x120b1b['detail']['cdnUrl']});}),_0x4851e0['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x3b3467(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x496cf4,_0x497f19,_0x123c5b){super(),this['_editor']=_0x496cf4,this['_dialog']=_0x497f19,this['_imageElement']=_0x123c5b,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 _0x5bb223=this['_imageElement'],_0x48efb3=_0x5bb223['getAttribute']('uploadcareImageId'),_0x40bd0b=_0x5bb223['getAttribute']('src');if(_0x48efb3)await this['_loadImageInfo'](_0x48efb3,_0x40bd0b);else{if(this['_imageCache']['has'](_0x40bd0b)){const _0x4022df=this['_imageCache']['get'](_0x40bd0b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4022df['url'],this['imageDimension']=_0x4022df['dimension'],this['imageId']=_0x4022df['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4c1ff9}=this['_editor'],t=_0x4c1ff9['t'],_0x18a791=new X(_0x4c1ff9,this['imageStatus'],this['_attributes']);_0x18a791['bind']('status')['to'](this,'imageStatus'),_0x18a791['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x18a791['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x18a791['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x18a791,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5bbecd,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x18a791,'position':_0x45c5da['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x18a791['focus']();},'onHide':()=>{_0x18a791['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x57baf7=>!A(_0x57baf7,_0x18a791['element'])}});}['_loadImageInfo'](_0x37e3b9,_0x3b2492){return j['getInfo'](_0x37e3b9,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x65e9b0=>{const {width:_0x4535d2,height:_0x311d04}=_0x65e9b0['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3b2492,this['imageDimension']={'width':_0x4535d2,'height':_0x311d04},this['imageId']=_0x37e3b9;})['catch'](_0x7dd561=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x7dd561['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3837c8,_0xf24408){return this['_getImageAsFile'](_0x3837c8)['then'](_0x401f77=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0xf24408['signal'],'file':_0x401f77,'onProgress':_0x37d1df=>{_0x37d1df&&_0x37d1df['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x37d1df['value']));}}))['then'](_0x24648c=>{const {width:_0x441332,height:_0x459bc1}=_0x24648c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24648c['cdnUrl'],this['imageDimension']={'width':_0x441332,'height':_0x459bc1},this['imageId']=_0x24648c['uuid'],this['imageUploadProgress']=null;const _0x4d34af=_0x3837c8['getAttribute']('src');this['_imageCache']['set'](_0x4d34af,{'id':_0x24648c['uuid'],'url':_0x24648c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x9277b8=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x9277b8['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x467be6,_0x22f197){_0x467be6['on']('apply',(_0x3aa870,_0x2ab5e3)=>{this['_replaceImage'](_0x22f197,_0x2ab5e3['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x467be6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x467be6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4870f4,_0xda158e,_0x25da2b){const _0x495aff=this['_editor'],{width:_0x59517c,height:_0x14bb15}=S(_0xda158e,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5c6974,imageSources:_0x4442ad}=C(_0xda158e,_0x59517c);_0x495aff['model']['change'](_0x5bf48c=>{if('$graveyard'===_0x4870f4['root']['rootName']){_0x495aff['execute']('insertImage',{'imageType':_0x4870f4['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4870f4['getAttributes']()),'uploadcareImageId':_0x25da2b,'src':_0x5c6974,'sources':_0x4442ad,'width':_0x59517c,'height':_0x14bb15}});const _0xd0af09=_0x4870f4['getChildren']();_0x4870f4=_0x495aff['model']['document']['selection']['getSelectedElement']();for(const _0x1c2544 of _0xd0af09)_0x5bf48c['append'](_0x5bf48c['cloneElement'](_0x1c2544),_0x4870f4);}else _0x5bf48c['setSelection'](_0x4870f4,'on'),_0x495aff['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4870f4['getAttributes']()),'uploadcareImageId':_0x25da2b,'src':_0x5c6974,'sources':_0x4442ad,'width':_0x59517c,'height':_0x14bb15},_0x4870f4);_0x5bf48c['setSelection'](_0x4870f4,'on');});}async['_getImageAsFile'](_0x13d959){const _0x526bd1=_0x566bb4['window'],_0x24cfc2=_0x566bb4['document']['location']['href'],_0x1ef6cc=new _0x526bd1['URL'](_0x13d959['getAttribute']('src'),_0x24cfc2);if('data:'===_0x1ef6cc['protocol']){const _0x211a21=_0x1ef6cc['href']['split'](','),_0x40f3c1=_0x211a21[0x0]['match'](/:(.*?);/)[0x1],_0x4dc904=_0x40f3c1['split']('/')[0x1],_0x1810ed=_0x526bd1['atob'](_0x211a21[_0x211a21['length']-0x1]);let _0x1992bf=_0x1810ed['length'];const _0x190d1c=new _0x526bd1['Uint8Array'](_0x1992bf);for(;_0x1992bf--;)_0x190d1c[_0x1992bf]=_0x1810ed['charCodeAt'](_0x1992bf);return new _0x526bd1['File']([_0x190d1c],'image.'+_0x4dc904,{'type':_0x40f3c1});}const _0x34717b=_0x1ef6cc['href']['split']('/'),_0x148dfc=_0x34717b[_0x34717b['length']-0x1],_0x3a6395=_0x148dfc['split']('.')[0x1];return _0x526bd1['fetch'](_0x1ef6cc['href'])['then'](_0x2fe756=>_0x2fe756['clone']()['blob']())['then'](_0x1221a7=>new _0x526bd1['File']([_0x1221a7],_0x148dfc,{'type':'image/'+_0x3a6395}));}}class O extends _0x2af24d{['imageEditController'];static get['requires'](){return[_0x40de19];}['_isEditable'];constructor(_0x4a7db9){super(_0x4a7db9),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x3dd1ab){const _0x4870f9=G(_0x3dd1ab);return _0x58ec85=>!(!_0x58ec85||!_0x58ec85['is']('element','imageBlock')&&!_0x58ec85['is']('element','imageInline'))&&(!!_0x58ec85['hasAttribute']('uploadcareImageId')||!!_0x58ec85['hasAttribute']('src')&&_0x4870f9(_0x58ec85['getAttribute']('src')));}(_0x4a7db9['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x24887a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x24887a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4c5fe5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c5fe5&&(_0x4c5fe5['is']('element','imageBlock')||_0x4c5fe5['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x40de19),_0x4c5fe5),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x2af24d{['refresh'](){const _0x202eed=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x202eed&&(_0x202eed['is']('element','imageBlock')||_0x202eed['is']('element','imageInline')));}['execute'](_0x361b57){const _0x4ea4c3=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xe29c96=>{_0xe29c96['setAttributes'](_0x361b57,_0x4ea4c3),_0xe29c96['removeAttribute']('srcset',_0x4ea4c3),_0xe29c96['removeAttribute']('sizes',_0x4ea4c3);});}}class m extends _0x53c0be{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x476b8a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x49909a}=this;_0x49909a['commands']['add']('uploadcareImageEdit',new O(_0x49909a)),_0x49909a['commands']['add']('uploadcareImageReplace',new R(_0x49909a));}}class g extends _0x53c0be{['_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 _0x4c3465=this['editor'];_0x4c3465['ui']['componentFactory']['add']('uploadcareImageEdit',_0x379d99=>{const _0x99886b=_0x4c3465['commands']['get']('uploadcareImageEdit'),_0x1ac631=new _0x3efac0(_0x379d99),t=_0x379d99['t'];return _0x1ac631['set']({'icon':_0x5bbecd,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1ac631['bind']('isEnabled')['to'](_0x99886b),_0x1ac631['bind']('isOn')['to'](_0x99886b,'isActive'),this['listenTo'](_0x1ac631,'execute',()=>{_0x4c3465['execute']('uploadcareImageEdit'),_0x4c3465['editing']['view']['focus']();}),_0x1ac631;}),this['_initConfig']();}['_initConfig'](){const _0x59bf5e=_0x41b016(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x59bf5e),this['listenTo'](this['editor'],'destroy',()=>{_0x59bf5e['remove']();});}}class et extends _0x53c0be{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": "47.6.2-alpha.0",
3
+ "version": "47.6.2",
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": "47.6.2-alpha.0",
27
- "@ckeditor/ckeditor5-icons": "47.6.2-alpha.0",
28
- "@ckeditor/ckeditor5-image": "47.6.2-alpha.0",
29
- "@ckeditor/ckeditor5-theme-lark": "47.6.2-alpha.0",
30
- "@ckeditor/ckeditor5-ui": "47.6.2-alpha.0",
31
- "@ckeditor/ckeditor5-upload": "47.6.2-alpha.0",
32
- "@ckeditor/ckeditor5-utils": "47.6.2-alpha.0",
33
- "ckeditor5": "47.6.2-alpha.0",
26
+ "@ckeditor/ckeditor5-core": "47.6.2",
27
+ "@ckeditor/ckeditor5-icons": "47.6.2",
28
+ "@ckeditor/ckeditor5-image": "47.6.2",
29
+ "@ckeditor/ckeditor5-theme-lark": "47.6.2",
30
+ "@ckeditor/ckeditor5-ui": "47.6.2",
31
+ "@ckeditor/ckeditor5-upload": "47.6.2",
32
+ "@ckeditor/ckeditor5-utils": "47.6.2",
33
+ "ckeditor5": "47.6.2",
34
34
  "@uploadcare/file-uploader": "1.24.5",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x383d5a=_0xc80f;function _0x47d5(){const _0x47fbed=['remove','7DNFmoA','href','45036SKIhlQ','PictureEditing','cleanupImage','querySelector','imageBlock','join','replaceImageSource','model','commands','_initConversion','uploadcare.uploader','upcast','closeMax','configElement','#uc-icon-arrow-down','execute','editor','pluginName','locale','destroy','elementToAttribute','downcast','uploader-','removeAttribute','schema','for','ucContextId','requires','add','selection','view','_initSchema','conversion','_initImageProcessingIndicator','extend','render','insertImage','init','_configElement','contentLanguage','listenTo','UploadcareEditing','appendChild','4272774CHAyMt','document','attributeToAttribute','data-uc-image-id','afterInit','742842zaKhyj','uploadcareImageReplace','uploadcareImageId','12050NbXGHO','imageInline','isPremiumPlugin','10483504RykFdj','true','6885655XRQaNH','_initCtx','editing','2001584AHWCvM','getAttribute','isOfficialPlugin','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','get','170sbOuZT','_initConfig','isRegistered','6001fGfbuY','uc-config','config','once','body','ctxElement','map','uploadcare','iconHrefResolver','getSelectedElement','input[uploadcare-file-input]','uploadcare.pubkey','_ctxElement','fromCharCode','uc-upload-ctx-provider'];_0x47d5=function(){return _0x47fbed;};return _0x47d5();}(function(_0x315903,_0x29de0e){const _0x3b1407=_0xc80f,_0x15b3aa=_0x315903();while(!![]){try{const _0x2d1d6d=parseInt(_0x3b1407(0x130))/0x1*(-parseInt(_0x3b1407(0x12d))/0x2)+-parseInt(_0x3b1407(0x118))/0x3+-parseInt(_0x3b1407(0x128))/0x4+-parseInt(_0x3b1407(0x125))/0x5+-parseInt(_0x3b1407(0x11d))/0x6*(parseInt(_0x3b1407(0xeb))/0x7)+-parseInt(_0x3b1407(0x123))/0x8+-parseInt(_0x3b1407(0xed))/0x9*(-parseInt(_0x3b1407(0x120))/0xa);if(_0x2d1d6d===_0x29de0e)break;else _0x15b3aa['push'](_0x15b3aa['shift']());}catch(_0x2389d7){_0x15b3aa['push'](_0x15b3aa['shift']());}}}(_0x47d5,0xbf559));import{Plugin as _0x57f09b}from'ckeditor5/src/core.js';function _0xc80f(_0x3c1d41,_0x279f38){const _0x47d5cb=_0x47d5();return _0xc80f=function(_0xc80ff8,_0x46c580){_0xc80ff8=_0xc80ff8-0xdf;let _0xe75beb=_0x47d5cb[_0xc80ff8];return _0xe75beb;},_0xc80f(_0x3c1d41,_0x279f38);}import{Dialog as _0x200a78}from'ckeditor5/src/ui.js';import{createElement as _0x295690,global as _0x50c4f5,uid as _0x18c07b}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3a48c0}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x23fdab}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5da4c2}from'./utils/editingutils.js';export class UploadcareEditing extends _0x57f09b{[_0x383d5a(0x113)]=null;[_0x383d5a(0xe7)]=null;static get[_0x383d5a(0xfe)](){const _0x1d5a55=_0x383d5a;return _0x1d5a55(0x116);}static get[_0x383d5a(0x108)](){const _0x5ddfea=_0x383d5a;return[_0x5ddfea(0xee),_0x23fdab,_0x200a78];}static get[_0x383d5a(0x12a)](){return!0x0;}static get[_0x383d5a(0x122)](){return!0x0;}[_0x383d5a(0x107)];get[_0x383d5a(0xfa)](){const _0x1b31bb=_0x383d5a;return this[_0x1b31bb(0x113)];}get[_0x383d5a(0xe0)](){const _0x4681ea=_0x383d5a;return this[_0x4681ea(0xe7)];}constructor(_0x1494d3){const _0x3c87ce=_0x383d5a;super(_0x1494d3),this[_0x3c87ce(0x107)]=_0x18c07b();}[_0x383d5a(0x112)](){const _0x44dc61=_0x383d5a,_0x12a8bf=this[_0x44dc61(0xfd)];_0x12a8bf[_0x44dc61(0xf5)][_0x44dc61(0x109)](_0x44dc61(0xe2),new _0x3a48c0(_0x12a8bf));}[_0x383d5a(0x11c)](){const _0x48efa8=_0x383d5a;this[_0x48efa8(0x10c)](),this[_0x48efa8(0xf6)](),this[_0x48efa8(0x12e)](),this[_0x48efa8(0x126)](),this[_0x48efa8(0x10e)](),this[_0x48efa8(0x115)](this[_0x48efa8(0xfd)],_0x48efa8(0x100),()=>{const _0x453df9=_0x48efa8;this[_0x453df9(0x113)]&&(this[_0x453df9(0x113)][_0x453df9(0xea)](),this[_0x453df9(0x113)]=null),this[_0x453df9(0xe7)]&&(this[_0x453df9(0xe7)][_0x453df9(0xea)](),this[_0x453df9(0xe7)]=null);const _0x4dca88=_0x50c4f5[_0x453df9(0x119)][_0x453df9(0xf0)](_0x453df9(0xe5));_0x4dca88&&_0x4dca88[_0x453df9(0xea)]();}),async function(_0x2999dd){const _0x2838fb=_0x46aa4c([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x342eeb=0x535f8c3a,_0x45786f=0x53580aaa^_0x342eeb,_0x3c0b7c=window[_0x46aa4c([0x44,0x61,0x74,0x65])][_0x46aa4c([0x6e,0x6f,0x77])](),_0x3fd2b7=_0x2999dd[_0x46aa4c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x35b5ee=new window[(_0x46aa4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4acfa6=>{_0x3fd2b7[_0x46aa4c([0x6f,0x6e,0x63,0x65])](_0x46aa4c([0x72,0x65,0x61,0x64,0x79]),_0x4acfa6);}),_0x59d98d={[_0x46aa4c([0x6b,0x74,0x79])]:_0x46aa4c([0x45,0x43]),[_0x46aa4c([0x75,0x73,0x65])]:_0x46aa4c([0x73,0x69,0x67]),[_0x46aa4c([0x63,0x72,0x76])]:_0x46aa4c([0x50,0x2d,0x32,0x35,0x36]),[_0x46aa4c([0x78])]:_0x46aa4c([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]),[_0x46aa4c([0x79])]:_0x46aa4c([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]),[_0x46aa4c([0x61,0x6c,0x67])]:_0x46aa4c([0x45,0x53,0x32,0x35,0x36])},_0x3221fb=_0x3fd2b7[_0x46aa4c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x46aa4c([0x67,0x65,0x74])](_0x46aa4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5bc496(){let _0x4b487c,_0x31d3eb=null,_0x4302fa=null;try{if(_0x3221fb==_0x46aa4c([0x47,0x50,0x4c]))return _0x46aa4c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b487c=_0x112261(),!_0x4b487c)return _0x46aa4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b487c[_0x46aa4c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4302fa=_0x4edd9e(_0x4b487c[_0x46aa4c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b487c[_0x46aa4c([0x6a,0x74,0x69])])),await _0x16c4ce()?_0x17c80c()?_0x4bf555()?_0x46aa4c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x478745()?(_0x4b487c[_0x46aa4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x46aa4c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x31d3eb=_0x39e623(_0x46aa4c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1cb5d7()):_0x46aa4c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x46aa4c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x46aa4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x46aa4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4bf555(){const _0x18055c=[_0x46aa4c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x46aa4c([0x74,0x72,0x69,0x61,0x6c])][_0x46aa4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b487c[_0x46aa4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c0b7c/0x3e8:0xe10*_0x45786f;return _0x4b487c[_0x46aa4c([0x65,0x78,0x70])]<_0x18055c;}function _0x17c80c(){const _0x248edf=_0x4b487c[_0x46aa4c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x248edf&&(!!_0x248edf[_0x46aa4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46aa4c([0x2a]))||!!_0x248edf[_0x46aa4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46aa4c([0x55,0x50,0x4c,0x43])));}function _0x478745(){const _0x2ba4fa=_0xc80f,_0x42c7fd=_0x4b487c[_0x46aa4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x42c7fd||0x0==_0x42c7fd[_0x46aa4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f4944}=new URL(window[_0x46aa4c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2ba4fa(0xec)]);if(_0x42c7fd[_0x46aa4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f4944))return!0x0;const _0x5247c7=_0x1f4944[_0x46aa4c([0x73,0x70,0x6c,0x69,0x74])](_0x46aa4c([0x2e]));return _0x42c7fd[_0x46aa4c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3b0090=>_0x3b0090[_0x46aa4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46aa4c([0x2a])))[_0x46aa4c([0x6d,0x61,0x70])](_0x1e3154=>_0x1e3154[_0x46aa4c([0x73,0x70,0x6c,0x69,0x74])](_0x46aa4c([0x2e])))[_0x46aa4c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6bf528=>_0x6bf528[_0x46aa4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5247c7[_0x46aa4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46aa4c([0x6d,0x61,0x70])](_0xb21fc7=>Array(_0x5247c7[_0x46aa4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xb21fc7[_0x46aa4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x46aa4c([0x66,0x69,0x6c,0x6c])](_0xb21fc7[0x0]===_0x46aa4c([0x2a])?_0x46aa4c([0x2a]):'')[_0x46aa4c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xb21fc7))[_0x46aa4c([0x73,0x6f,0x6d,0x65])](_0x2fc24f=>_0x5247c7[_0x46aa4c([0x65,0x76,0x65,0x72,0x79])]((_0x83bb4e,_0x51788b)=>_0x2fc24f[_0x51788b]===_0x83bb4e||_0x2fc24f[_0x51788b]===_0x46aa4c([0x2a])));}function _0x1cb5d7(){return _0x31d3eb&&_0x4302fa?new window[(_0x46aa4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16be3b,_0x4ec904)=>{_0x31d3eb[_0x46aa4c([0x74,0x68,0x65,0x6e])](_0x16be3b,_0x4ec904),_0x4302fa[_0x46aa4c([0x74,0x68,0x65,0x6e])](_0x1e6a59=>{_0x1e6a59!=_0x46aa4c([0x56,0x61,0x6c,0x69,0x64])&&_0x16be3b(_0x1e6a59);},_0x4ec904);}):_0x31d3eb||_0x4302fa||_0x46aa4c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4edd9e(_0xe44fe1,_0x301f96){return new window[(_0x46aa4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f5fc9=>{if(_0x53020f())return _0x4f5fc9(_0x46aa4c([0x56,0x61,0x6c,0x69,0x64]));_0x4b641f(),_0x3fd2b7[_0x46aa4c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x46aa4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3604ec=!0x1;const _0x5dc3c9=_0x18c07b();function _0x3ab392(_0x4a10aa){return!!_0x4a10aa&&(typeof _0x4a10aa===_0x46aa4c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a10aa===_0x46aa4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a10aa[_0x46aa4c([0x74,0x68,0x65,0x6e])]===_0x46aa4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a10aa[_0x46aa4c([0x63,0x61,0x74,0x63,0x68])]===_0x46aa4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a9c4d(_0x497767){_0x52b395(_0x497767)[_0x46aa4c([0x74,0x68,0x65,0x6e])](_0x3fbec9=>{if(!_0x3fbec9||_0x3fbec9[_0x46aa4c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x46aa4c([0x6f,0x6b]))return _0x46aa4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1fb43a(_0x43a5e4(_0x5dc3c9+_0x301f96))!=_0x3fbec9[_0x46aa4c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x46aa4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x46aa4c([0x56,0x61,0x6c,0x69,0x64]);})[_0x46aa4c([0x74,0x68,0x65,0x6e])](_0x40fbc9=>(_0x2b0444(),_0x40fbc9),()=>{const _0xd7b656=_0x30819f();return null==_0xd7b656?(_0x2b0444(),_0x46aa4c([0x56,0x61,0x6c,0x69,0x64])):_0x46aa4c(_0x3c0b7c-_0xd7b656>(0x7753083a^_0x342eeb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x46aa4c([0x74,0x68,0x65,0x6e])](_0x4f5fc9)[_0x46aa4c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f5fc9(_0x46aa4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1eadda=0x536962ba^_0x342eeb;function _0x2b0444(){const _0x414b22=_0x46aa4c([0x6c,0x6c,0x63,0x74,0x2d])+_0x1fb43a(_0x43a5e4(_0xe44fe1)),_0x301d1b=_0x4bea78(_0x1fb43a(window[_0x46aa4c([0x4d,0x61,0x74,0x68])][_0x46aa4c([0x63,0x65,0x69,0x6c])](_0x3c0b7c/_0x1eadda)));window[_0x46aa4c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46aa4c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x414b22,_0x301d1b);}function _0x30819f(){const _0x5eea7b=_0x46aa4c([0x6c,0x6c,0x63,0x74,0x2d])+_0x1fb43a(_0x43a5e4(_0xe44fe1)),_0x196bd0=window[_0x46aa4c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x46aa4c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5eea7b);return _0x196bd0?window[_0x46aa4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bea78(_0x196bd0),0x10)*_0x1eadda:null;}function _0x52b395(_0x1999b3){return new window[(_0x46aa4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x542ce7,_0x52da75)=>{_0x1999b3[_0x46aa4c([0x74,0x68,0x65,0x6e])](_0x542ce7,_0x52da75),window[_0x46aa4c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x52da75,0x535e58fa^_0x342eeb);});}}_0x3fd2b7[_0x46aa4c([0x6f,0x6e])](_0x46aa4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x26dad1,_0x37a755)=>{if(_0x37a755[0x0]!=_0xe44fe1)return _0x4f5fc9(_0x46aa4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37a755[0x1]={..._0x37a755[0x1],[_0x46aa4c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5dc3c9};},{[_0x46aa4c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46aa4c([0x68,0x69,0x67,0x68])}),_0x3fd2b7[_0x46aa4c([0x6f,0x6e])](_0x46aa4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2531f5=>{_0x3ab392(_0x2531f5[_0x46aa4c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3604ec=!0x0,_0x2a9c4d(_0x2531f5[_0x46aa4c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x46aa4c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x46aa4c([0x6c,0x6f,0x77])}),_0x35b5ee[_0x46aa4c([0x74,0x68,0x65,0x6e])](()=>{_0x3604ec||_0x4f5fc9(_0x46aa4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x53020f(){return _0x3fd2b7[_0x46aa4c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46aa4c([0x76,0x69,0x65,0x77])][_0x46aa4c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x46aa4c([0x61,0x75,0x74,0x6f]);}function _0x4b641f(){_0x3fd2b7[_0x46aa4c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x46aa4c([0x76,0x69,0x65,0x77])][_0x46aa4c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x46aa4c([0x61,0x75,0x74,0x6f]);}}function _0x39e623(_0x3fbe25){const _0x7f5e68=[new window[(_0x46aa4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32eaa8=>setTimeout(_0x32eaa8,0x5356b2f6^_0x342eeb)),_0x35b5ee[_0x46aa4c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x46aa4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b1c41=>{let _0x303ebc=0x0;_0x3fd2b7[_0x46aa4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x46aa4c([0x6f,0x6e])](_0x46aa4c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4b6e40,_0x3db84e)=>{_0x3db84e[0x0][_0x46aa4c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x303ebc++,_0x303ebc==(0x535f89d2^_0x342eeb)&&(_0x4b1c41(),_0x4b6e40[_0x46aa4c([0x6f,0x66,0x66])]());});}))];return window[_0x46aa4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x46aa4c([0x72,0x61,0x63,0x65])](_0x7f5e68)[_0x46aa4c([0x74,0x68,0x65,0x6e])](()=>_0x3fbe25);}async function _0x131d51(){await _0x35b5ee,_0x3fd2b7[_0x46aa4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x46aa4c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49734b,_0x3fd2b7[_0x46aa4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x46aa4c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49734b,_0x3fd2b7[_0x46aa4c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x46aa4c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8c611b(_0x44fe10){const _0x5234b3=_0x12e2c5();_0x3fd2b7[_0x5234b3]=_0x46aa4c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x44fe10,_0x44fe10!=_0x46aa4c([0x56,0x61,0x6c,0x69,0x64])&&_0x131d51();}function _0x12e2c5(){const _0x555c17=window[_0x46aa4c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x46aa4c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x46aa4c([0x6e,0x6f,0x77])]())[_0x46aa4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x46aa4c([0x2e]),'');let _0x3ba318=_0x46aa4c([0x68]);for(let _0x449e1a=0x0;_0x449e1a<_0x555c17[_0x46aa4c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x449e1a+=0x2){let _0x437d12=window[_0x46aa4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x555c17[_0x46aa4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x449e1a,_0x449e1a+0x2));_0x437d12>=_0x2838fb[_0x46aa4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x437d12-=_0x2838fb[_0x46aa4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ba318+=_0x2838fb[_0x437d12];}return _0x3ba318;}function _0x112261(){const _0x22555d=_0x3221fb[_0x46aa4c([0x73,0x70,0x6c,0x69,0x74])](_0x46aa4c([0x2e]));if(0x3!=_0x22555d[_0x46aa4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x9b12d1(_0x22555d[0x1]);function _0x9b12d1(_0x98fbfa){const _0x4d6b73=_0x314ae9(_0x98fbfa);return _0x4d6b73&&_0x186c1b()?_0x4d6b73:null;function _0x186c1b(){const _0x30e4ff=_0x4d6b73[_0x46aa4c([0x6a,0x74,0x69])],_0x3cfb9f=window[_0x46aa4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30e4ff[_0x46aa4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30e4ff[_0x46aa4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x43d157={..._0x4d6b73,[_0x46aa4c([0x6a,0x74,0x69])]:_0x30e4ff[_0x46aa4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x30e4ff[_0x46aa4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x43d157[_0x46aa4c([0x76,0x63])],_0x43a5e4(_0x43d157)==_0x3cfb9f;}}}async function _0x16c4ce(){let _0x161dab=!0x0;try{const _0x4bf684=_0x3221fb[_0x46aa4c([0x73,0x70,0x6c,0x69,0x74])](_0x46aa4c([0x2e])),[_0x36ed61,_0x5c5d18,_0x40d9af]=_0x4bf684;return _0x468410(_0x36ed61),await _0x258e7f(_0x36ed61,_0x5c5d18,_0x40d9af),_0x161dab;}catch{return!0x1;}function _0x468410(_0x32499e){const _0x2da4f=_0x314ae9(_0x32499e);_0x2da4f&&_0x2da4f[_0x46aa4c([0x61,0x6c,0x67])]==_0x46aa4c([0x45,0x53,0x32,0x35,0x36])||(_0x161dab=!0x1);}async function _0x258e7f(_0x3c39fa,_0x5f230e,_0x3b44e2){const _0x406a18=window[_0x46aa4c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x46aa4c([0x66,0x72,0x6f,0x6d])](_0x3d5d2a(_0x3b44e2),_0x566c04=>_0x566c04[_0x46aa4c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3815cd=new window[(_0x46aa4c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x46aa4c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3c39fa+_0x46aa4c([0x2e])+_0x5f230e),_0x257e88=window[_0x46aa4c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x46aa4c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x257e88)return;const _0x7f862d=await _0x257e88[_0x46aa4c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x46aa4c([0x6a,0x77,0x6b]),_0x59d98d,{[_0x46aa4c([0x6e,0x61,0x6d,0x65])]:_0x46aa4c([0x45,0x43,0x44,0x53,0x41]),[_0x46aa4c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x46aa4c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x46aa4c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x257e88[_0x46aa4c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x46aa4c([0x6e,0x61,0x6d,0x65])]:_0x46aa4c([0x45,0x43,0x44,0x53,0x41]),[_0x46aa4c([0x68,0x61,0x73,0x68])]:{[_0x46aa4c([0x6e,0x61,0x6d,0x65])]:_0x46aa4c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x7f862d,_0x406a18,_0x3815cd)||(_0x161dab=!0x1);}}function _0x314ae9(_0x565342){return _0x565342[_0x46aa4c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x46aa4c([0x65,0x79]))?JSON[_0x46aa4c([0x70,0x61,0x72,0x73,0x65])](_0x3d5d2a(_0x565342)):null;}function _0x3d5d2a(_0x202c47){return window[_0x46aa4c([0x61,0x74,0x6f,0x62])](_0x202c47[_0x46aa4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x46aa4c([0x2b]))[_0x46aa4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x46aa4c([0x2f])));}function _0x43a5e4(_0x51bb6e){let _0x305163=0x1505;function _0x3b345b(_0x437997){for(let _0x23493f=0x0;_0x23493f<_0x437997[_0x46aa4c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23493f++){const _0x587474=_0x437997[_0x46aa4c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23493f);_0x305163=(_0x305163<<0x5)+_0x305163+_0x587474,_0x305163&=_0x305163;}}function _0x275af4(_0x175dbe){Array[_0x46aa4c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x175dbe)?_0x175dbe[_0x46aa4c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x275af4):_0x175dbe&&typeof _0x175dbe==_0x46aa4c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x46aa4c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x175dbe)[_0x46aa4c([0x73,0x6f,0x72,0x74])]()[_0x46aa4c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1459f0,_0x3d1db8])=>{_0x3b345b(_0x1459f0),_0x275af4(_0x3d1db8);}):_0x3b345b(window[_0x46aa4c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x175dbe));}return _0x275af4(_0x51bb6e),_0x305163>>>0x0;}function _0x1fb43a(_0x2deb5f){return _0x2deb5f[_0x46aa4c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x46aa4c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x46aa4c([0x30]));}function _0x4bea78(_0x5b9448){return _0x5b9448[_0x46aa4c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x46aa4c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x46aa4c([0x6a,0x6f,0x69,0x6e])]('');}function _0x49734b(){}function _0x46aa4c(_0x2fdc3a){const _0x16c5e4=_0xc80f;return _0x2fdc3a[_0x16c5e4(0xe1)](_0x44fd99=>String[_0x16c5e4(0xe8)](_0x44fd99))[_0x16c5e4(0xf2)]('');}_0x8c611b(await _0x5bc496());}(this);}[_0x383d5a(0x10c)](){const _0xfeaaf0=_0x383d5a,_0x4988d1=this[_0xfeaaf0(0xfd)][_0xfeaaf0(0xf4)][_0xfeaaf0(0x105)];_0x4988d1[_0xfeaaf0(0x12f)](_0xfeaaf0(0xf1))&&_0x4988d1[_0xfeaaf0(0x10f)](_0xfeaaf0(0xf1),{'allowAttributes':[_0xfeaaf0(0x11f)]}),_0x4988d1[_0xfeaaf0(0x12f)](_0xfeaaf0(0x121))&&_0x4988d1[_0xfeaaf0(0x10f)](_0xfeaaf0(0x121),{'allowAttributes':[_0xfeaaf0(0x11f)]});}[_0x383d5a(0xf6)](){const _0x4826af=_0x383d5a,_0x24edf7=this[_0x4826af(0xfd)];_0x24edf7[_0x4826af(0x10d)][_0x4826af(0x106)](_0x4826af(0x102))[_0x4826af(0x11a)]({'model':_0x4826af(0x11f),'view':_0x4826af(0x11b)}),_0x24edf7[_0x4826af(0x10d)][_0x4826af(0x106)](_0x4826af(0xf8))[_0x4826af(0x101)]({'model':{'key':_0x4826af(0x11f),'value':_0x57d95d=>_0x57d95d[_0x4826af(0x129)](_0x4826af(0x11b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3f58fd=_0x24edf7[_0x4826af(0xf5)][_0x4826af(0x12c)](_0x4826af(0xf3));_0x3f58fd&&this[_0x4826af(0x115)](_0x3f58fd,_0x4826af(0xef),(_0x1153ec,[_0x3ad303,_0x574c4f])=>{const _0x52967c=_0x4826af;_0x3ad303[_0x52967c(0x104)](_0x52967c(0x11f),_0x574c4f);});}[_0x383d5a(0x12e)](){const _0xce58ef=_0x383d5a,_0x4345ce=this[_0xce58ef(0xfd)][_0xce58ef(0x132)][_0xce58ef(0x12c)](_0xce58ef(0xf7))||{},_0x5300c6=this[_0xce58ef(0xfd)][_0xce58ef(0x132)][_0xce58ef(0x12c)](_0xce58ef(0xe6))||'';this[_0xce58ef(0x113)]=_0x295690(_0x50c4f5[_0xce58ef(0x119)],_0xce58ef(0x131),{..._0x4345ce,'pubkey':_0x5300c6,'ctx-name':_0xce58ef(0x103)+this[_0xce58ef(0x107)],'sourceList':'','imgOnly':_0xce58ef(0x124),'removeCopyright':_0xce58ef(0x124),'localeName':this[_0xce58ef(0xfd)][_0xce58ef(0xff)][_0xce58ef(0x114)],'externalSourcesEmbedCss':_0xce58ef(0x12b)}),this[_0xce58ef(0x113)][_0xce58ef(0xe3)]=_0x18f150=>{const _0x9592e6=_0xce58ef;if(_0x9592e6(0xf9)==_0x18f150)return _0x9592e6(0xfb);},_0x50c4f5[_0xce58ef(0x119)][_0xce58ef(0xdf)][_0xce58ef(0x117)](this[_0xce58ef(0x113)]);}[_0x383d5a(0x126)](){const _0x497b3d=_0x383d5a;this[_0x497b3d(0xe7)]=_0x295690(_0x50c4f5[_0x497b3d(0x119)],_0x497b3d(0xe9),{'ctx-name':_0x497b3d(0x103)+this[_0x497b3d(0x107)]}),_0x50c4f5[_0x497b3d(0x119)][_0x497b3d(0xdf)][_0x497b3d(0x117)](this[_0x497b3d(0xe7)]);}[_0x383d5a(0x10e)](){const _0x5750f8=_0x383d5a,_0x3689fb=this[_0x5750f8(0xfd)][_0x5750f8(0xf5)][_0x5750f8(0x12c)](_0x5750f8(0x111));_0x3689fb&&this[_0x5750f8(0x115)](_0x3689fb,_0x5750f8(0xfc),()=>{const _0x399ee0=_0x5750f8,_0x1b2052=this[_0x399ee0(0xfd)][_0x399ee0(0xf4)][_0x399ee0(0x119)][_0x399ee0(0x10a)][_0x399ee0(0xe4)]();_0x1b2052&&_0x1b2052[_0x399ee0(0x129)](_0x399ee0(0x11f))&&this[_0x399ee0(0xfd)][_0x399ee0(0x127)][_0x399ee0(0x10b)][_0x399ee0(0x133)](_0x399ee0(0x110),()=>{const _0x5099c3=_0x399ee0;_0x5da4c2(this[_0x5099c3(0xfd)],_0x1b2052);});});const _0x2d07fc=this[_0x5750f8(0xfd)][_0x5750f8(0xf5)][_0x5750f8(0x12c)](_0x5750f8(0x11e));_0x2d07fc&&this[_0x5750f8(0x115)](_0x2d07fc,_0x5750f8(0xfc),()=>{const _0x262816=_0x5750f8,_0x614af4=this[_0x262816(0xfd)][_0x262816(0xf4)][_0x262816(0x119)][_0x262816(0x10a)][_0x262816(0xe4)]();_0x614af4&&_0x614af4[_0x262816(0x129)](_0x262816(0x11f))&&this[_0x262816(0xfd)][_0x262816(0x127)][_0x262816(0x10b)][_0x262816(0x133)](_0x262816(0x110),()=>{const _0x15c0e3=_0x262816;_0x5da4c2(this[_0x15c0e3(0xfd)],_0x614af4);});});}}
23
+ function _0x51e0(_0x3b7bbc,_0xc2a332){const _0x215c88=_0x215c();return _0x51e0=function(_0x51e045,_0x49a55e){_0x51e045=_0x51e045-0x15b;let _0x4cb0c5=_0x215c88[_0x51e045];return _0x4cb0c5;},_0x51e0(_0x3b7bbc,_0xc2a332);}function _0x215c(){const _0x2d4579=['4049177bzThid','116772bTXEMC','16zcOfNT','map','afterInit','695191HySvbM','configElement','downcast','_initSchema','execute','cleanupImage','iconHrefResolver','#uc-icon-arrow-down','data-uc-image-id','uploadcare.pubkey','uploader-','closeMax','editor','model','replaceImageSource','ctxElement','36872jaFyRm','_initImageProcessingIndicator','destroy','listenTo','render','href','locale','pluginName','uploadcareImageReplace','querySelector','once','get','view','getSelectedElement','editing','isPremiumPlugin','for','isOfficialPlugin','elementToAttribute','uc-upload-ctx-provider','_initConversion','uploadcare.uploader','remove','_configElement','_initCtx','init','_initConfig','requires','PictureEditing','ucContextId','join','removeAttribute','uploadcare','49090VQEZFe','input[uploadcare-file-input]','add','imageBlock','imageInline','1035MPQtaa','conversion','attributeToAttribute','selection','config','10XLEQpJ','69898QlRNaJ','insertImage','body','true','appendChild','1363182oMSmdk','document','\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','isRegistered','upcast','uc-config','contentLanguage','uploadcareImageId','4CgNpFo','fromCharCode','commands','extend','_ctxElement','schema','getAttribute','UploadcareEditing'];_0x215c=function(){return _0x2d4579;};return _0x215c();}const _0x3567fe=_0x51e0;(function(_0x30e3e2,_0x402057){const _0x49ad0c=_0x51e0,_0x8c962=_0x30e3e2();while(!![]){try{const _0x26d590=parseInt(_0x49ad0c(0x175))/0x1*(-parseInt(_0x49ad0c(0x182))/0x2)+-parseInt(_0x49ad0c(0x17a))/0x3+parseInt(_0x49ad0c(0x18c))/0x4*(-parseInt(_0x49ad0c(0x16a))/0x5)+-parseInt(_0x49ad0c(0x18b))/0x6+parseInt(_0x49ad0c(0x18f))/0x7+-parseInt(_0x49ad0c(0x19f))/0x8*(-parseInt(_0x49ad0c(0x16f))/0x9)+-parseInt(_0x49ad0c(0x174))/0xa*(-parseInt(_0x49ad0c(0x18a))/0xb);if(_0x26d590===_0x402057)break;else _0x8c962['push'](_0x8c962['shift']());}catch(_0x4bbf74){_0x8c962['push'](_0x8c962['shift']());}}}(_0x215c,0x541d3));import{Plugin as _0x1ce97d}from'ckeditor5/src/core.js';import{Dialog as _0x380ab1}from'ckeditor5/src/ui.js';import{createElement as _0x4a7a4f,global as _0x8b0f9a,uid as _0x39c70f}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x48ee3c}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x268fc7}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3e3717}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1ce97d{[_0x3567fe(0x160)]=null;[_0x3567fe(0x186)]=null;static get[_0x3567fe(0x1a6)](){const _0x5cbad4=_0x3567fe;return _0x5cbad4(0x189);}static get[_0x3567fe(0x164)](){const _0x3afc35=_0x3567fe;return[_0x3afc35(0x165),_0x268fc7,_0x380ab1];}static get[_0x3567fe(0x1b0)](){return!0x0;}static get[_0x3567fe(0x1ae)](){return!0x0;}[_0x3567fe(0x166)];get[_0x3567fe(0x190)](){const _0x511b6f=_0x3567fe;return this[_0x511b6f(0x160)];}get[_0x3567fe(0x19e)](){const _0xd9384e=_0x3567fe;return this[_0xd9384e(0x186)];}constructor(_0x4068fc){const _0x3d125e=_0x3567fe;super(_0x4068fc),this[_0x3d125e(0x166)]=_0x39c70f();}[_0x3567fe(0x162)](){const _0x4ba867=_0x3567fe,_0x3953aa=this[_0x4ba867(0x19b)];_0x3953aa[_0x4ba867(0x184)][_0x4ba867(0x16c)](_0x4ba867(0x169),new _0x48ee3c(_0x3953aa));}[_0x3567fe(0x18e)](){const _0x248b81=_0x3567fe;this[_0x248b81(0x192)](),this[_0x248b81(0x15d)](),this[_0x248b81(0x163)](),this[_0x248b81(0x161)](),this[_0x248b81(0x1a0)](),this[_0x248b81(0x1a2)](this[_0x248b81(0x19b)],_0x248b81(0x1a1),()=>{const _0x538b52=_0x248b81;this[_0x538b52(0x160)]&&(this[_0x538b52(0x160)][_0x538b52(0x15f)](),this[_0x538b52(0x160)]=null),this[_0x538b52(0x186)]&&(this[_0x538b52(0x186)][_0x538b52(0x15f)](),this[_0x538b52(0x186)]=null);const _0x1c7384=_0x8b0f9a[_0x538b52(0x17b)][_0x538b52(0x1a8)](_0x538b52(0x16b));_0x1c7384&&_0x1c7384[_0x538b52(0x15f)]();}),async function(_0x20b61c){const _0x57c58f=_0x54b31e([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x3d8a62=0x535f8c3a,_0x4a2530=0x53580a92^_0x3d8a62,_0x3f06f9=window[_0x54b31e([0x44,0x61,0x74,0x65])][_0x54b31e([0x6e,0x6f,0x77])](),_0x2e4e71=_0x20b61c[_0x54b31e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x7910a7=new window[(_0x54b31e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a8fee=>{_0x2e4e71[_0x54b31e([0x6f,0x6e,0x63,0x65])](_0x54b31e([0x72,0x65,0x61,0x64,0x79]),_0x1a8fee);}),_0xac7050={[_0x54b31e([0x6b,0x74,0x79])]:_0x54b31e([0x45,0x43]),[_0x54b31e([0x75,0x73,0x65])]:_0x54b31e([0x73,0x69,0x67]),[_0x54b31e([0x63,0x72,0x76])]:_0x54b31e([0x50,0x2d,0x32,0x35,0x36]),[_0x54b31e([0x78])]:_0x54b31e([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]),[_0x54b31e([0x79])]:_0x54b31e([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]),[_0x54b31e([0x61,0x6c,0x67])]:_0x54b31e([0x45,0x53,0x32,0x35,0x36])},_0x393d0c=_0x2e4e71[_0x54b31e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x54b31e([0x67,0x65,0x74])](_0x54b31e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x54f072(){let _0x27d0aa,_0x402efd=null,_0x1fc186=null;try{if(_0x393d0c==_0x54b31e([0x47,0x50,0x4c]))return _0x54b31e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x27d0aa=_0x406926(),!_0x27d0aa)return _0x54b31e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x27d0aa[_0x54b31e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1fc186=_0x3f9af2(_0x27d0aa[_0x54b31e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x27d0aa[_0x54b31e([0x6a,0x74,0x69])])),await _0xd0d471()?_0x85519d()?_0x33ab2e()?_0x54b31e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c6823()?(_0x27d0aa[_0x54b31e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54b31e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x402efd=_0x101b06(_0x54b31e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b6c6c()):_0x54b31e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x54b31e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x54b31e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x54b31e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x33ab2e(){const _0x53b41b=[_0x54b31e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x54b31e([0x74,0x72,0x69,0x61,0x6c])][_0x54b31e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27d0aa[_0x54b31e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3f06f9/0x3e8:0xe10*_0x4a2530;return _0x27d0aa[_0x54b31e([0x65,0x78,0x70])]<_0x53b41b;}function _0x85519d(){const _0x25d5f8=_0x27d0aa[_0x54b31e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x25d5f8&&(!!_0x25d5f8[_0x54b31e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54b31e([0x2a]))||!!_0x25d5f8[_0x54b31e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54b31e([0x55,0x50,0x4c,0x43])));}function _0x4c6823(){const _0x329f0c=_0x51e0,_0x5a81d9=_0x27d0aa[_0x54b31e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a81d9||0x0==_0x5a81d9[_0x54b31e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x7a9af}=new URL(window[_0x54b31e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x329f0c(0x1a4)]);if(_0x5a81d9[_0x54b31e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7a9af))return!0x0;const _0x288b6b=_0x7a9af[_0x54b31e([0x73,0x70,0x6c,0x69,0x74])](_0x54b31e([0x2e]));return _0x5a81d9[_0x54b31e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb93ba0=>_0xb93ba0[_0x54b31e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54b31e([0x2a])))[_0x54b31e([0x6d,0x61,0x70])](_0x52651f=>_0x52651f[_0x54b31e([0x73,0x70,0x6c,0x69,0x74])](_0x54b31e([0x2e])))[_0x54b31e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9f4dce=>_0x9f4dce[_0x54b31e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x288b6b[_0x54b31e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54b31e([0x6d,0x61,0x70])](_0x2855e8=>Array(_0x288b6b[_0x54b31e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2855e8[_0x54b31e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x54b31e([0x66,0x69,0x6c,0x6c])](_0x2855e8[0x0]===_0x54b31e([0x2a])?_0x54b31e([0x2a]):'')[_0x54b31e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2855e8))[_0x54b31e([0x73,0x6f,0x6d,0x65])](_0x2aa84d=>_0x288b6b[_0x54b31e([0x65,0x76,0x65,0x72,0x79])]((_0x39a78c,_0x44bd55)=>_0x2aa84d[_0x44bd55]===_0x39a78c||_0x2aa84d[_0x44bd55]===_0x54b31e([0x2a])));}function _0x4b6c6c(){return _0x402efd&&_0x1fc186?new window[(_0x54b31e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1031b0,_0x3ee2b4)=>{_0x402efd[_0x54b31e([0x74,0x68,0x65,0x6e])](_0x1031b0,_0x3ee2b4),_0x1fc186[_0x54b31e([0x74,0x68,0x65,0x6e])](_0x5d2d17=>{_0x5d2d17!=_0x54b31e([0x56,0x61,0x6c,0x69,0x64])&&_0x1031b0(_0x5d2d17);},_0x3ee2b4);}):_0x402efd||_0x1fc186||_0x54b31e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3f9af2(_0x35cb8c,_0x1d0849){return new window[(_0x54b31e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c9d42=>{if(_0x5e021a())return _0x4c9d42(_0x54b31e([0x56,0x61,0x6c,0x69,0x64]));_0xcc547d(),_0x2e4e71[_0x54b31e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x54b31e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa6e6fb=!0x1;const _0x2f057c=_0x39c70f();function _0xb35f96(_0x5ab9ae){return!!_0x5ab9ae&&(typeof _0x5ab9ae===_0x54b31e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5ab9ae===_0x54b31e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5ab9ae[_0x54b31e([0x74,0x68,0x65,0x6e])]===_0x54b31e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5ab9ae[_0x54b31e([0x63,0x61,0x74,0x63,0x68])]===_0x54b31e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b9c0d(_0x3181cb){_0x434799(_0x3181cb)[_0x54b31e([0x74,0x68,0x65,0x6e])](_0x4d7f1f=>{if(!_0x4d7f1f||_0x4d7f1f[_0x54b31e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x54b31e([0x6f,0x6b]))return _0x54b31e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2972f8(_0x5f5d3a(_0x2f057c+_0x1d0849))!=_0x4d7f1f[_0x54b31e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x54b31e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x54b31e([0x56,0x61,0x6c,0x69,0x64]);})[_0x54b31e([0x74,0x68,0x65,0x6e])](_0xf3267d=>(_0x59adf5(),_0xf3267d),()=>{const _0x141432=_0x3150b6();return null==_0x141432?(_0x59adf5(),_0x54b31e([0x56,0x61,0x6c,0x69,0x64])):_0x54b31e(_0x3f06f9-_0x141432>(0x7753083a^_0x3d8a62)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x54b31e([0x74,0x68,0x65,0x6e])](_0x4c9d42)[_0x54b31e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c9d42(_0x54b31e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27b9a6=0x536962ba^_0x3d8a62;function _0x59adf5(){const _0x1b74ab=_0x54b31e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2972f8(_0x5f5d3a(_0x35cb8c)),_0x5f2265=_0x3e67e7(_0x2972f8(window[_0x54b31e([0x4d,0x61,0x74,0x68])][_0x54b31e([0x63,0x65,0x69,0x6c])](_0x3f06f9/_0x27b9a6)));window[_0x54b31e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54b31e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b74ab,_0x5f2265);}function _0x3150b6(){const _0x1ee1a5=_0x54b31e([0x6c,0x6c,0x63,0x74,0x2d])+_0x2972f8(_0x5f5d3a(_0x35cb8c)),_0x7b8f1=window[_0x54b31e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54b31e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1ee1a5);return _0x7b8f1?window[_0x54b31e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e67e7(_0x7b8f1),0x10)*_0x27b9a6:null;}function _0x434799(_0x4cb533){return new window[(_0x54b31e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x233cfa,_0x117464)=>{_0x4cb533[_0x54b31e([0x74,0x68,0x65,0x6e])](_0x233cfa,_0x117464),window[_0x54b31e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x117464,0x535e58fa^_0x3d8a62);});}}_0x2e4e71[_0x54b31e([0x6f,0x6e])](_0x54b31e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52a594,_0x5df6fb)=>{if(_0x5df6fb[0x0]!=_0x35cb8c)return _0x4c9d42(_0x54b31e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5df6fb[0x1]={..._0x5df6fb[0x1],[_0x54b31e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f057c};},{[_0x54b31e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54b31e([0x68,0x69,0x67,0x68])}),_0x2e4e71[_0x54b31e([0x6f,0x6e])](_0x54b31e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3e624a=>{_0xb35f96(_0x3e624a[_0x54b31e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa6e6fb=!0x0,_0x4b9c0d(_0x3e624a[_0x54b31e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x54b31e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54b31e([0x6c,0x6f,0x77])}),_0x7910a7[_0x54b31e([0x74,0x68,0x65,0x6e])](()=>{_0xa6e6fb||_0x4c9d42(_0x54b31e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e021a(){return _0x2e4e71[_0x54b31e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54b31e([0x76,0x69,0x65,0x77])][_0x54b31e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x54b31e([0x61,0x75,0x74,0x6f]);}function _0xcc547d(){_0x2e4e71[_0x54b31e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54b31e([0x76,0x69,0x65,0x77])][_0x54b31e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54b31e([0x61,0x75,0x74,0x6f]);}}function _0x101b06(_0x37b483){const _0x40fa79=[new window[(_0x54b31e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28a600=>setTimeout(_0x28a600,0x5356b2f6^_0x3d8a62)),_0x7910a7[_0x54b31e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x54b31e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b68ad=>{let _0x11512d=0x0;_0x2e4e71[_0x54b31e([0x6d,0x6f,0x64,0x65,0x6c])][_0x54b31e([0x6f,0x6e])](_0x54b31e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2011c3,_0x71cf11)=>{_0x71cf11[0x0][_0x54b31e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x11512d++,_0x11512d==(0x535f89d2^_0x3d8a62)&&(_0x5b68ad(),_0x2011c3[_0x54b31e([0x6f,0x66,0x66])]());});}))];return window[_0x54b31e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54b31e([0x72,0x61,0x63,0x65])](_0x40fa79)[_0x54b31e([0x74,0x68,0x65,0x6e])](()=>_0x37b483);}async function _0x1715d7(){await _0x7910a7,_0x2e4e71[_0x54b31e([0x6d,0x6f,0x64,0x65,0x6c])][_0x54b31e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x49e375,_0x2e4e71[_0x54b31e([0x6d,0x6f,0x64,0x65,0x6c])][_0x54b31e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x49e375,_0x2e4e71[_0x54b31e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x54b31e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x11b039(_0x594df5){const _0x26c32b=_0xfc901c();_0x2e4e71[_0x26c32b]=_0x54b31e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x594df5,_0x594df5!=_0x54b31e([0x56,0x61,0x6c,0x69,0x64])&&_0x1715d7();}function _0xfc901c(){const _0x12451f=window[_0x54b31e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x54b31e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x54b31e([0x6e,0x6f,0x77])]())[_0x54b31e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x54b31e([0x2e]),'');let _0x16ce31=_0x54b31e([0x68]);for(let _0x2d32d7=0x0;_0x2d32d7<_0x12451f[_0x54b31e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d32d7+=0x2){let _0x3ad9be=window[_0x54b31e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12451f[_0x54b31e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d32d7,_0x2d32d7+0x2));_0x3ad9be>=_0x57c58f[_0x54b31e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3ad9be-=_0x57c58f[_0x54b31e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16ce31+=_0x57c58f[_0x3ad9be];}return _0x16ce31;}function _0x406926(){const _0x550914=_0x393d0c[_0x54b31e([0x73,0x70,0x6c,0x69,0x74])](_0x54b31e([0x2e]));if(0x3!=_0x550914[_0x54b31e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5a9808(_0x550914[0x1]);function _0x5a9808(_0x2f1630){const _0x5c40d3=_0x4d9ea0(_0x2f1630);return _0x5c40d3&&_0x3b07d1()?_0x5c40d3:null;function _0x3b07d1(){const _0x4c920e=_0x5c40d3[_0x54b31e([0x6a,0x74,0x69])],_0xeb5824=window[_0x54b31e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c920e[_0x54b31e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c920e[_0x54b31e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2deb3c={..._0x5c40d3,[_0x54b31e([0x6a,0x74,0x69])]:_0x4c920e[_0x54b31e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c920e[_0x54b31e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2deb3c[_0x54b31e([0x76,0x63])],_0x5f5d3a(_0x2deb3c)==_0xeb5824;}}}async function _0xd0d471(){let _0x508460=!0x0;try{const _0x5e5e5c=_0x393d0c[_0x54b31e([0x73,0x70,0x6c,0x69,0x74])](_0x54b31e([0x2e])),[_0x2b99c0,_0x453225,_0x133a44]=_0x5e5e5c;return _0x54aa0c(_0x2b99c0),await _0x32a8f1(_0x2b99c0,_0x453225,_0x133a44),_0x508460;}catch{return!0x1;}function _0x54aa0c(_0x5dca10){const _0x3a424f=_0x4d9ea0(_0x5dca10);_0x3a424f&&_0x3a424f[_0x54b31e([0x61,0x6c,0x67])]==_0x54b31e([0x45,0x53,0x32,0x35,0x36])||(_0x508460=!0x1);}async function _0x32a8f1(_0x439b31,_0x5a62e2,_0x3768bf){const _0x38a2c7=window[_0x54b31e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x54b31e([0x66,0x72,0x6f,0x6d])](_0x4d23cb(_0x3768bf),_0x2bbfec=>_0x2bbfec[_0x54b31e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f111b=new window[(_0x54b31e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x54b31e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x439b31+_0x54b31e([0x2e])+_0x5a62e2),_0x43f294=window[_0x54b31e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x54b31e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43f294)return;const _0xb3d8b2=await _0x43f294[_0x54b31e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x54b31e([0x6a,0x77,0x6b]),_0xac7050,{[_0x54b31e([0x6e,0x61,0x6d,0x65])]:_0x54b31e([0x45,0x43,0x44,0x53,0x41]),[_0x54b31e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x54b31e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x54b31e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43f294[_0x54b31e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x54b31e([0x6e,0x61,0x6d,0x65])]:_0x54b31e([0x45,0x43,0x44,0x53,0x41]),[_0x54b31e([0x68,0x61,0x73,0x68])]:{[_0x54b31e([0x6e,0x61,0x6d,0x65])]:_0x54b31e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb3d8b2,_0x38a2c7,_0x4f111b)||(_0x508460=!0x1);}}function _0x4d9ea0(_0x9ed663){return _0x9ed663[_0x54b31e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x54b31e([0x65,0x79]))?JSON[_0x54b31e([0x70,0x61,0x72,0x73,0x65])](_0x4d23cb(_0x9ed663)):null;}function _0x4d23cb(_0x27c151){return window[_0x54b31e([0x61,0x74,0x6f,0x62])](_0x27c151[_0x54b31e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x54b31e([0x2b]))[_0x54b31e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x54b31e([0x2f])));}function _0x5f5d3a(_0x595452){let _0x3095fc=0x1505;function _0x3ef745(_0x1f2fd4){for(let _0x3639ea=0x0;_0x3639ea<_0x1f2fd4[_0x54b31e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3639ea++){const _0x14f708=_0x1f2fd4[_0x54b31e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3639ea);_0x3095fc=(_0x3095fc<<0x5)+_0x3095fc+_0x14f708,_0x3095fc&=_0x3095fc;}}function _0x47c45c(_0x2be16d){Array[_0x54b31e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2be16d)?_0x2be16d[_0x54b31e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47c45c):_0x2be16d&&typeof _0x2be16d==_0x54b31e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x54b31e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2be16d)[_0x54b31e([0x73,0x6f,0x72,0x74])]()[_0x54b31e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x582522,_0xda3bad])=>{_0x3ef745(_0x582522),_0x47c45c(_0xda3bad);}):_0x3ef745(window[_0x54b31e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2be16d));}return _0x47c45c(_0x595452),_0x3095fc>>>0x0;}function _0x2972f8(_0x1ff52b){return _0x1ff52b[_0x54b31e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x54b31e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x54b31e([0x30]));}function _0x3e67e7(_0x1d8445){return _0x1d8445[_0x54b31e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x54b31e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x54b31e([0x6a,0x6f,0x69,0x6e])]('');}function _0x49e375(){}function _0x54b31e(_0x49113f){const _0x1a8364=_0x51e0;return _0x49113f[_0x1a8364(0x18d)](_0x328370=>String[_0x1a8364(0x183)](_0x328370))[_0x1a8364(0x167)]('');}_0x11b039(await _0x54f072());}(this);}[_0x3567fe(0x192)](){const _0x1ecb13=_0x3567fe,_0x52bfb1=this[_0x1ecb13(0x19b)][_0x1ecb13(0x19c)][_0x1ecb13(0x187)];_0x52bfb1[_0x1ecb13(0x17d)](_0x1ecb13(0x16d))&&_0x52bfb1[_0x1ecb13(0x185)](_0x1ecb13(0x16d),{'allowAttributes':[_0x1ecb13(0x181)]}),_0x52bfb1[_0x1ecb13(0x17d)](_0x1ecb13(0x16e))&&_0x52bfb1[_0x1ecb13(0x185)](_0x1ecb13(0x16e),{'allowAttributes':[_0x1ecb13(0x181)]});}[_0x3567fe(0x15d)](){const _0x41f387=_0x3567fe,_0x20b973=this[_0x41f387(0x19b)];_0x20b973[_0x41f387(0x170)][_0x41f387(0x1af)](_0x41f387(0x191))[_0x41f387(0x171)]({'model':_0x41f387(0x181),'view':_0x41f387(0x197)}),_0x20b973[_0x41f387(0x170)][_0x41f387(0x1af)](_0x41f387(0x17e))[_0x41f387(0x15b)]({'model':{'key':_0x41f387(0x181),'value':_0x523275=>_0x523275[_0x41f387(0x188)](_0x41f387(0x197))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2869ea=_0x20b973[_0x41f387(0x184)][_0x41f387(0x1aa)](_0x41f387(0x19d));_0x2869ea&&this[_0x41f387(0x1a2)](_0x2869ea,_0x41f387(0x194),(_0x39f496,[_0x2f3bd5,_0x48a260])=>{const _0x2674cc=_0x41f387;_0x2f3bd5[_0x2674cc(0x168)](_0x2674cc(0x181),_0x48a260);});}[_0x3567fe(0x163)](){const _0x4782b9=_0x3567fe,_0x19c07e=this[_0x4782b9(0x19b)][_0x4782b9(0x173)][_0x4782b9(0x1aa)](_0x4782b9(0x15e))||{},_0x34eef3=this[_0x4782b9(0x19b)][_0x4782b9(0x173)][_0x4782b9(0x1aa)](_0x4782b9(0x198))||'';this[_0x4782b9(0x160)]=_0x4a7a4f(_0x8b0f9a[_0x4782b9(0x17b)],_0x4782b9(0x17f),{..._0x19c07e,'pubkey':_0x34eef3,'ctx-name':_0x4782b9(0x199)+this[_0x4782b9(0x166)],'sourceList':'','imgOnly':_0x4782b9(0x178),'removeCopyright':_0x4782b9(0x178),'localeName':this[_0x4782b9(0x19b)][_0x4782b9(0x1a5)][_0x4782b9(0x180)],'externalSourcesEmbedCss':_0x4782b9(0x17c)}),this[_0x4782b9(0x160)][_0x4782b9(0x195)]=_0x216deb=>{const _0x1406bc=_0x4782b9;if(_0x1406bc(0x19a)==_0x216deb)return _0x1406bc(0x196);},_0x8b0f9a[_0x4782b9(0x17b)][_0x4782b9(0x177)][_0x4782b9(0x179)](this[_0x4782b9(0x160)]);}[_0x3567fe(0x161)](){const _0xb413fc=_0x3567fe;this[_0xb413fc(0x186)]=_0x4a7a4f(_0x8b0f9a[_0xb413fc(0x17b)],_0xb413fc(0x15c),{'ctx-name':_0xb413fc(0x199)+this[_0xb413fc(0x166)]}),_0x8b0f9a[_0xb413fc(0x17b)][_0xb413fc(0x177)][_0xb413fc(0x179)](this[_0xb413fc(0x186)]);}[_0x3567fe(0x1a0)](){const _0x1e97ab=_0x3567fe,_0x4ec99d=this[_0x1e97ab(0x19b)][_0x1e97ab(0x184)][_0x1e97ab(0x1aa)](_0x1e97ab(0x176));_0x4ec99d&&this[_0x1e97ab(0x1a2)](_0x4ec99d,_0x1e97ab(0x193),()=>{const _0x50c25b=_0x1e97ab,_0x43c6b1=this[_0x50c25b(0x19b)][_0x50c25b(0x19c)][_0x50c25b(0x17b)][_0x50c25b(0x172)][_0x50c25b(0x1ac)]();_0x43c6b1&&_0x43c6b1[_0x50c25b(0x188)](_0x50c25b(0x181))&&this[_0x50c25b(0x19b)][_0x50c25b(0x1ad)][_0x50c25b(0x1ab)][_0x50c25b(0x1a9)](_0x50c25b(0x1a3),()=>{const _0x295111=_0x50c25b;_0x3e3717(this[_0x295111(0x19b)],_0x43c6b1);});});const _0x295d9e=this[_0x1e97ab(0x19b)][_0x1e97ab(0x184)][_0x1e97ab(0x1aa)](_0x1e97ab(0x1a7));_0x295d9e&&this[_0x1e97ab(0x1a2)](_0x295d9e,_0x1e97ab(0x193),()=>{const _0x367a77=_0x1e97ab,_0x137aac=this[_0x367a77(0x19b)][_0x367a77(0x19c)][_0x367a77(0x17b)][_0x367a77(0x172)][_0x367a77(0x1ac)]();_0x137aac&&_0x137aac[_0x367a77(0x188)](_0x367a77(0x181))&&this[_0x367a77(0x19b)][_0x367a77(0x1ad)][_0x367a77(0x1ab)][_0x367a77(0x1a9)](_0x367a77(0x1a3),()=>{const _0x5bc594=_0x367a77;_0x3e3717(this[_0x5bc594(0x19b)],_0x137aac);});});}}