@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251013.0 → 0.0.0-nightly-20251014.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x3c1180,Command as _0x316df6}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4022ee,IconGooglePhotos as _0x2495cb,IconGoogleDrive as _0x40b2fc,IconFacebook as _0x5cd74e,IconDropbox as _0x531c88,IconUploadcareLink as _0x666d84,IconUploadcareImageUpload as _0xb2bc43,IconError as _0x16049a,IconUploadcareImageEdit as _0x447f52}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4a2eae,MenuBarMenuListItemButtonView as _0x396279,View as _0x4c4a39,FocusCycler as _0x712482,Dialog as _0x46539f,DialogViewPosition as _0x16dad4,SpinnerView as _0xb15fb0,IconView as _0x53bca2,Notification as _0x334bb3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x330518,DomEmitterMixin as _0x12f8c7,global as _0x2a2a88,getAncestors as _0x50dff6,ObservableMixin as _0x558bcb,uid as _0x42a876,createElement as _0x1737e0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x5c3117}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x54e1e3,info as _0x5832b1}from'@uploadcare/upload-client';import*as _0x4ebd6d from'@uploadcare/file-uploader';var i=function(_0x61d2b0){return _0x61d2b0['Local']='local',_0x61d2b0['URL']='url',_0x61d2b0['Dropbox']='dropbox',_0x61d2b0['GDrive']='gdrive',_0x61d2b0['Facebook']='facebook',_0x61d2b0['GPhotos']='gphotos',_0x61d2b0['OneDrive']='onedrive',_0x61d2b0;}({});function _(_0x297719,_0x5510a6,_0x1a887a){const t=_0x297719['t'],_0x21b124=_0x297719['t'];switch(_0x5510a6){case i['Local']:return{'text':_0x21b124('Insert'===_0x1a887a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x21b124('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x1a887a?_0x21b124('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x21b124('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x1a887a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x1a887a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x1a887a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x1a887a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x1a887a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5510a6;}}class e extends _0x3c1180{['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 _0x5ceb7d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x183014;for(const _0x190edc in _0x5ceb7d){const _0x47a61a=_0x190edc,_0x2481f6=_0x5ceb7d[_0x47a61a];if('uploadcareLicenseKeyValid'==_0x2481f6||'uploadcareLicenseKeyInvalid'==_0x2481f6||'uploadcareLicenseKeyExpired'==_0x2481f6||'uploadcareLicenseKeyDomainLimit'==_0x2481f6||'uploadcareLicenseKeyNotAllowed'==_0x2481f6||'uploadcareLicenseKeyEvaluationLimit'==_0x2481f6||'uploadcareLicenseKeyTrialLimit'==_0x2481f6||'uploadcareLicenseKeyUsageLimit'==_0x2481f6){delete _0x5ceb7d[_0x47a61a],_0x183014=_0x2481f6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x183014&&_0x5ceb7d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x183014&&_0x5ceb7d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x183014&&_0x5ceb7d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x183014&&_0x5ceb7d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x183014&&_0x5ceb7d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x183014&&_0x5ceb7d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x183014&&_0x5ceb7d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5ce28e}=this,_0x4d66cd=_0x5ce28e['commands']['get']('uploadcare');if(!_0x4d66cd)return;const _0x5f5bf7=this['_normalizeConfigSourceList'](_0x5ce28e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3b97cf,_0x1aad77)=>{const _0x180fd0=this['_getIntegrationKey'](_0x1aad77['type']);return _0x3b97cf[_0x180fd0]||(_0x3b97cf[_0x180fd0]=[]),_0x3b97cf[_0x180fd0]['push'](_0x1aad77),_0x3b97cf;},{});_0x5ce28e['plugins']['has']('ImageInsertUI')&&_0x5ce28e['commands']['get']('uploadcare')&&Object['entries'](_0x5f5bf7)['forEach'](([_0x1d8bd1,_0x349ebc])=>{_0x5ce28e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1d8bd1,'observable':()=>_0x4d66cd,'buttonViewCreator':()=>this['_createToolbarButton'](_0x349ebc),'formViewCreator':()=>this['_createDropdownButtons'](_0x349ebc),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x349ebc),'override':'assetManager'!==_0x1d8bd1});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x435926){const {locale:_0x2bd35a}=this['editor'];return _0x435926['map'](_0xaa2665=>{const _0xc37c2d=_(_0x2bd35a,_0xaa2665,'Insert');switch(_0xaa2665){case i['Local']:return{'icon':_0xb2bc43,'type':i['Local'],..._0xc37c2d};case i['URL']:return{'icon':_0x666d84,'type':i['URL'],..._0xc37c2d};case i['Dropbox']:return{'icon':_0x531c88,'type':i['Dropbox'],..._0xc37c2d};case i['Facebook']:return{'icon':_0x5cd74e,'type':i['Facebook'],..._0xc37c2d};case i['GDrive']:return{'icon':_0x40b2fc,'type':i['GDrive'],..._0xc37c2d};case i['GPhotos']:return{'icon':_0x2495cb,'type':i['GPhotos'],..._0xc37c2d};case i['OneDrive']:return{'icon':_0x4022ee,'type':i['OneDrive'],..._0xc37c2d};}});}['_getIntegrationKey'](_0x3f3bb0){switch(_0x3f3bb0){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x33ebd1,_0x5543fd){const _0x475234=this['editor'],_0x4bd5e4=new _0x33ebd1(_0x475234['locale']),_0x5ad49e=_0x475234['commands']['get']('uploadcare');return _0x4bd5e4['bind']('isEnabled')['to'](_0x5ad49e),_0x4bd5e4['on']('execute',()=>{_0x5ad49e['execute'](_0x5543fd);}),_0x4bd5e4;}['_createToolbarButton'](_0x4827bd){const {locale:_0x19d677}=this['editor'],_0x915e82=this['editor']['plugins']['get']('ImageInsertUI'),_0x25cd5c=_0x4827bd[0x0],_0x5894fd=this['_createButton'](_0x4a2eae,_0x25cd5c['type']);return _0x5894fd['icon']=_0x25cd5c['icon'],_0x5894fd['bind']('label')['to'](_0x915e82,'isImageSelected',_0x6ffbb7=>_(_0x19d677,_0x25cd5c['type'],_0x6ffbb7?'Replace':'Insert')['text']),_0x5894fd['tooltip']=!0x0,_0x5894fd;}['_createDropdownButtons'](_0x59d9ba){const {locale:_0x181316}=this['editor'],_0x4a86e6=this['editor']['plugins']['get']('ImageInsertUI');return _0x59d9ba['map'](_0x1f8f18=>{const _0x383232=this['_createButton'](_0x4a2eae,_0x1f8f18['type']);return _0x383232['withText']=!0x0,_0x383232['icon']=_0x1f8f18['icon'],_0x383232['bind']('label')['to'](_0x4a86e6,'isImageSelected',_0x37f6c0=>_(_0x181316,_0x1f8f18['type'],_0x37f6c0?'Replace':'Insert')['text']),_0x383232;});}['_createMenuBarButtons'](_0x1c954c){return _0x1c954c['map'](_0x361616=>{const _0x435aa8=this['_createButton'](_0x396279,_0x361616['type']);return _0x435aa8['icon']=_0x361616['icon'],_0x435aa8['label']=_0x361616['shortText'],_0x435aa8;});}}class F extends _0x4c4a39{['focusTracker'];['focusCycler'];constructor(_0x468874){super(_0x468874),this['focusTracker']=new _0x330518(),this['focusCycler']=new _0x712482({'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(_0x1c0d93,_0x49f85a){super(_0x1c0d93),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-'+_0x49f85a}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x2be080,_0x5b75c5){const _0x269b78=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5504d2=>_0x5504d2<=_0x5b75c5)['map'](_0x2baf32=>_0x2be080['replace'](/\/$/,'')+'/-/resize/'+_0x2baf32+'x/\x20'+_0x2baf32+'w');return{'imageFallbackUrl':_0x2be080,'imageSources':[{'srcset':_0x269b78['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5b75c5+'px)\x20100vw,\x20'+_0x5b75c5+'px','type':'image/webp'}]};}function S(_0x416555,_0x544698,_0xb2e39d){const _0x1b39d9=_0x416555['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1b39d9?parseInt(_0x1b39d9[0x1],0xa):_0x544698,'height':_0x1b39d9?parseInt(_0x1b39d9[0x2],0xa):_0xb2e39d};}function p(_0x2732a8,_0x223385){const _0x2cf1db=new(_0x12f8c7())(),_0x5f1e59=_0x2732a8['plugins']['get']('ImageUtils'),_0xf2741b=_0x2732a8['editing']['mapper']['toViewElement'](_0x223385),_0xec6d96=_0x5f1e59['findViewImgElement'](_0xf2741b),_0x974153=_0x2732a8['editing']['view']['domConverter']['viewToDom'](_0xec6d96),_0x40bbc1=_0x223385['getAttribute']('width'),_0x2287c4=_0x223385['getAttribute']('height'),_0x3e7375='image-processing';_0x2732a8['editing']['view']['change'](_0x2aa3b8=>{_0x2aa3b8['addClass'](_0x3e7375,_0xf2741b),_0x2aa3b8['setStyle']('aspect-ratio',_0x40bbc1+'/'+_0x2287c4,_0xec6d96);}),_0x2cf1db['listenTo'](_0x974153,'load',()=>{_0x2cf1db['stopListening'](_0x974153,'load'),_0x2732a8['editing']['view']['change'](_0x4e1c9e=>{_0x4e1c9e['removeClass'](_0x3e7375,_0xf2741b),_0x4e1c9e['removeStyle']('aspect-ratio',_0xec6d96);});});}function G(_0x40b5a6){if(Array['isArray'](_0x40b5a6)){const _0x24a163=_0x40b5a6['map'](G);return _0x125f6a=>_0x24a163['some'](_0x1f8cef=>_0x1f8cef(_0x125f6a));}if('origin'==_0x40b5a6){const _0x3bdf25=_0x2a2a88['window']['location']['origin'];return _0xf78513=>new URL(_0xf78513,_0x2a2a88['document']['baseURI'])['origin']==_0x3bdf25;}return'function'==typeof _0x40b5a6?_0x40b5a6:_0x40b5a6 instanceof RegExp?_0x5bfb9a=>!(!_0x5bfb9a['match'](_0x40b5a6)&&!_0x5bfb9a['replace'](/^https?:\/\//,'')['match'](_0x40b5a6)):()=>!0x1;}function A(_0x4291a2,_0x3f8ea1){return _0x50dff6(_0x4291a2['target'])['includes'](_0x3f8ea1);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x558bcb(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3a50df,_0x15a459,_0x490499){super(),this['_editor']=_0x3a50df,this['_editing']=_0x15a459,this['_dialog']=_0x3a50df['plugins']['get'](_0x46539f),this['_api']=_0x15a459['ctxElement']['getAPI'](),this['_type']=_0x490499,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:_0x2aee8c,model:_0x31560d}=this['_editor'],_0x2d8e02=_0x31560d['document']['selection']['getSelectedElement'](),_0x5c52c4=_0x2d8e02&&(_0x2d8e02['is']('element','imageBlock')||_0x2d8e02['is']('element','imageInline'));this['_formView']=new x(_0x2aee8c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xb2bc43,'title':_(_0x2aee8c,this['_type'],_0x5c52c4?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x16dad4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x395347=>!A(_0x395347,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x18c891}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1f6b36=>{const _0x3f098f=_0x18c891['length'];for(const _0x12d5e6 of _0x18c891){const _0x4df2ed=_0x12d5e6===_0x18c891[_0x3f098f-0x1],{cdnUrl:_0x5e6064,fileInfo:_0x385450}=_0x12d5e6;if(!_0x5e6064||!_0x385450)continue;const {width:_0x47641e,height:_0x51bc8c}=_0x385450['imageInfo'],_0x4e0fa6=S(_0x5e6064,_0x47641e,_0x51bc8c),_0x2717a3=C(_0x5e6064,_0x4e0fa6['width']),_0x10da70={'id':_0x385450['uuid'],'type':'image','attributes':{'imageDimension':_0x4e0fa6,..._0x2717a3}};this['_insertAsset'](_0x10da70,_0x4df2ed,_0x1f6b36);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x289230=>{'idle'===_0x289230['detail']['status']&&!_0x289230['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x43ecff,_0x4e7760,_0x50269e){const _0x36443a=this['_editor']['model']['document']['selection'],_0x2abeb0=_0x36443a['getSelectedElement'](),_0x4a2285=!(!_0x2abeb0||!_0x2abeb0['is']('element','imageInline'));_0x50269e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x43ecff,_0x4a2285),_0x4e7760||_0x50269e['setSelection'](_0x36443a['getLastPosition']());}['_insertImage'](_0x4e343a,_0x1d7058){const _0x23484b=this['_editor'],{imageDimension:_0x2cfa2b,imageFallbackUrl:_0x2cbe47,imageSources:_0x3351ed}=_0x4e343a['attributes'];_0x23484b['execute']('insertImage',{'imageType':_0x1d7058?'imageInline':null,'source':{'uploadcareImageId':_0x4e343a['id'],'src':_0x2cbe47,'sources':_0x3351ed,..._0x2cfa2b}});}}class w extends _0x316df6{['_editing'];['_controller']=null;static get['requires'](){return[_0x46539f,o];}constructor(_0x223394){super(_0x223394),this['_editing']=_0x223394['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1175a5){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1175a5);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x358177,..._0x5cc367}){return _0x54e1e3(_0x358177,_0x5cc367);}static['getInfo'](_0x429553,_0x490db0){return _0x5832b1(_0x429553,_0x490db0);}}class f extends _0x3c1180{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5c3117,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x18a0a5=this['editor'];if(!!!_0x18a0a5['config']['get']('uploadcare'))return;_0x18a0a5['plugins']['get'](_0x5c3117)['createUploadAdapter']=_0x374721=>new k(_0x374721,_0x18a0a5),_0x18a0a5['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x54eb73,{imageElement:_0x219a1c,data:_0x1474c3})=>{_0x18a0a5['model']['change'](_0x29b5f9=>{_0x29b5f9['setAttribute']('uploadcareImageId',_0x1474c3['uploadcareImageId'],_0x219a1c);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x19d57c,_0x437afb){this['loader']=_0x19d57c,this['editor']=_0x437afb,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x398e7d=await this['loader']['file'];return j['upload']({'file':_0x398e7d,'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':_0x2fa285=>{_0x2fa285&&_0x2fa285['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x2fa285['value']);}})['then'](async _0x28c1f1=>{const {imageFallbackUrl:_0x11a64e,imageSources:_0x4b15cf}=C(_0x28c1f1['cdnUrl'],_0x28c1f1['imageInfo']['width']);return{'uploadcareImageId':_0x28c1f1['uuid'],'default':_0x11a64e,'sources':_0x4b15cf};})['catch'](()=>{const _0x235466=t('Cannot\x20upload\x20file:')+('\x20'+_0x398e7d['name']+'.');return Promise['reject'](_0x235466);});}['abort'](){this['controller']['abort']();}}class o extends _0x3c1180{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x46539f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x3e2428){super(_0x3e2428),this['ucContextId']=_0x42a876();}['init'](){const _0x4ea1ad=this['editor'];_0x4ea1ad['commands']['add']('uploadcare',new w(_0x4ea1ad));}['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 _0x4d4792=_0x2a2a88['document']['querySelector']('input[uploadcare-file-input]');_0x4d4792&&_0x4d4792['remove']();}),async function(_0x518d76){const _0x36fe3f=_0xa8a344([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x3d54bf=0x3d8d0df,_0x6b5a08=0x3dfa6cf^_0x3d54bf,_0x2dc182=window[_0xa8a344([0x44,0x61,0x74,0x65])][_0xa8a344([0x6e,0x6f,0x77])](),_0x586bc1=_0x518d76[_0xa8a344([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe78ba9=new window[(_0xa8a344([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29dfbb=>{_0x586bc1[_0xa8a344([0x6f,0x6e,0x63,0x65])](_0xa8a344([0x72,0x65,0x61,0x64,0x79]),_0x29dfbb);}),_0x499021={[_0xa8a344([0x6b,0x74,0x79])]:_0xa8a344([0x45,0x43]),[_0xa8a344([0x75,0x73,0x65])]:_0xa8a344([0x73,0x69,0x67]),[_0xa8a344([0x63,0x72,0x76])]:_0xa8a344([0x50,0x2d,0x32,0x35,0x36]),[_0xa8a344([0x78])]:_0xa8a344([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]),[_0xa8a344([0x79])]:_0xa8a344([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]),[_0xa8a344([0x61,0x6c,0x67])]:_0xa8a344([0x45,0x53,0x32,0x35,0x36])},_0x131bda=_0x586bc1[_0xa8a344([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa8a344([0x67,0x65,0x74])](_0xa8a344([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xf78a4a(){let _0x4606e9,_0x3ab0fc=null,_0x5c3863=null;try{if(_0x131bda==_0xa8a344([0x47,0x50,0x4c]))return _0xa8a344([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4606e9=_0x13872d(),!_0x4606e9)return _0xa8a344([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4606e9[_0xa8a344([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c3863=_0x2d5737(_0x4606e9[_0xa8a344([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4606e9[_0xa8a344([0x6a,0x74,0x69])])),await _0x82e2fd()?_0x3993b7()?_0x5b3638()?_0xa8a344([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x51015d()?(_0x4606e9[_0xa8a344([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa8a344([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3ab0fc=_0x3d0b7f(_0xa8a344([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4606e9[_0xa8a344([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa8a344([0x74,0x72,0x69,0x61,0x6c])&&(_0x3ab0fc=_0x3d0b7f(_0xa8a344([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a3695()):_0xa8a344([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa8a344([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa8a344([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xa8a344([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5b3638(){const _0xee9fc3=[_0xa8a344([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa8a344([0x74,0x72,0x69,0x61,0x6c])][_0xa8a344([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4606e9[_0xa8a344([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2dc182/0x3e8:0xe10*_0x6b5a08;return _0x4606e9[_0xa8a344([0x65,0x78,0x70])]<_0xee9fc3;}function _0x3993b7(){const _0x357674=_0x4606e9[_0xa8a344([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x357674&&(!!_0x357674[_0xa8a344([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8a344([0x2a]))||!!_0x357674[_0xa8a344([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8a344([0x55,0x50,0x4c,0x43])));}function _0x51015d(){const _0x1f04ca=_0x4606e9[_0xa8a344([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1f04ca||0x0==_0x1f04ca[_0xa8a344([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x282b28}=new URL(window[_0xa8a344([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1f04ca[_0xa8a344([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x282b28))return!0x0;const _0x358a65=_0x282b28[_0xa8a344([0x73,0x70,0x6c,0x69,0x74])](_0xa8a344([0x2e]));return _0x1f04ca[_0xa8a344([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x131cfe=>_0x131cfe[_0xa8a344([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8a344([0x2a])))[_0xa8a344([0x6d,0x61,0x70])](_0x2f999e=>_0x2f999e[_0xa8a344([0x73,0x70,0x6c,0x69,0x74])](_0xa8a344([0x2e])))[_0xa8a344([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54b90e=>_0x54b90e[_0xa8a344([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x358a65[_0xa8a344([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa8a344([0x6d,0x61,0x70])](_0x48998b=>Array(_0x358a65[_0xa8a344([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x48998b[_0xa8a344([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa8a344([0x66,0x69,0x6c,0x6c])](_0x48998b[0x0]===_0xa8a344([0x2a])?_0xa8a344([0x2a]):'')[_0xa8a344([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x48998b))[_0xa8a344([0x73,0x6f,0x6d,0x65])](_0x49db43=>_0x358a65[_0xa8a344([0x65,0x76,0x65,0x72,0x79])]((_0x5ab986,_0x8bc00b)=>_0x49db43[_0x8bc00b]===_0x5ab986||_0x49db43[_0x8bc00b]===_0xa8a344([0x2a])));}function _0x5a3695(){return _0x3ab0fc&&_0x5c3863?new window[(_0xa8a344([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x508b9f,_0x561f04)=>{_0x3ab0fc[_0xa8a344([0x74,0x68,0x65,0x6e])](_0x508b9f,_0x561f04),_0x5c3863[_0xa8a344([0x74,0x68,0x65,0x6e])](_0x557467=>{_0x557467!=_0xa8a344([0x56,0x61,0x6c,0x69,0x64])&&_0x508b9f(_0x557467);},_0x561f04);}):_0x3ab0fc||_0x5c3863||_0xa8a344([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d5737(_0x21862e,_0x19f60a){return new window[(_0xa8a344([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x550034=>{if(_0x14a473())return _0x550034(_0xa8a344([0x56,0x61,0x6c,0x69,0x64]));_0xcc6919(),_0x586bc1[_0xa8a344([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa8a344([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19dd38=!0x1;const _0x479589=_0x42a876();function _0x1025b0(_0x471b17){return!!_0x471b17&&(typeof _0x471b17===_0xa8a344([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x471b17===_0xa8a344([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x471b17[_0xa8a344([0x74,0x68,0x65,0x6e])]===_0xa8a344([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x471b17[_0xa8a344([0x63,0x61,0x74,0x63,0x68])]===_0xa8a344([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4da9a9(_0x40cb08){_0x555971(_0x40cb08)[_0xa8a344([0x74,0x68,0x65,0x6e])](_0x9a49bc=>{if(!_0x9a49bc||_0x9a49bc[_0xa8a344([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa8a344([0x6f,0x6b]))return _0xa8a344([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x470183(_0x24e4b6(_0x479589+_0x19f60a))!=_0x9a49bc[_0xa8a344([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa8a344([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa8a344([0x56,0x61,0x6c,0x69,0x64]);})[_0xa8a344([0x74,0x68,0x65,0x6e])](_0x34eac2=>(_0xa735a6(),_0x34eac2),()=>{const _0x330d47=_0x49d6bb();return null==_0x330d47?(_0xa735a6(),_0xa8a344([0x56,0x61,0x6c,0x69,0x64])):_0xa8a344(_0x2dc182-_0x330d47>(0x27d454df^_0x3d54bf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa8a344([0x74,0x68,0x65,0x6e])](_0x550034)[_0xa8a344([0x63,0x61,0x74,0x63,0x68])](()=>{_0x550034(_0xa8a344([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5c52d2=0x3ee3e5f^_0x3d54bf;function _0xa735a6(){const _0x227218=_0xa8a344([0x6c,0x6c,0x63,0x74,0x2d])+_0x470183(_0x24e4b6(_0x21862e)),_0x20a8e2=_0x58d57c(_0x470183(window[_0xa8a344([0x4d,0x61,0x74,0x68])][_0xa8a344([0x63,0x65,0x69,0x6c])](_0x2dc182/_0x5c52d2)));window[_0xa8a344([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa8a344([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x227218,_0x20a8e2);}function _0x49d6bb(){const _0x3b9f09=_0xa8a344([0x6c,0x6c,0x63,0x74,0x2d])+_0x470183(_0x24e4b6(_0x21862e)),_0x3f8251=window[_0xa8a344([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa8a344([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b9f09);return _0x3f8251?window[_0xa8a344([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58d57c(_0x3f8251),0x10)*_0x5c52d2:null;}function _0x555971(_0x5869bb){return new window[(_0xa8a344([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10172e,_0x133425)=>{_0x5869bb[_0xa8a344([0x74,0x68,0x65,0x6e])](_0x10172e,_0x133425),window[_0xa8a344([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x133425,0x3d9041f^_0x3d54bf);});}}_0x586bc1[_0xa8a344([0x6f,0x6e])](_0xa8a344([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c928c,_0x100ee1)=>{if(_0x100ee1[0x0]!=_0x21862e)return _0x550034(_0xa8a344([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x100ee1[0x1]={..._0x100ee1[0x1],[_0xa8a344([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x479589};},{[_0xa8a344([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa8a344([0x68,0x69,0x67,0x68])}),_0x586bc1[_0xa8a344([0x6f,0x6e])](_0xa8a344([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3f05dc=>{_0x1025b0(_0x3f05dc[_0xa8a344([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19dd38=!0x0,_0x4da9a9(_0x3f05dc[_0xa8a344([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa8a344([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa8a344([0x6c,0x6f,0x77])}),_0xe78ba9[_0xa8a344([0x74,0x68,0x65,0x6e])](()=>{_0x19dd38||_0x550034(_0xa8a344([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x14a473(){return _0x586bc1[_0xa8a344([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa8a344([0x76,0x69,0x65,0x77])][_0xa8a344([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa8a344([0x61,0x75,0x74,0x6f]);}function _0xcc6919(){_0x586bc1[_0xa8a344([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa8a344([0x76,0x69,0x65,0x77])][_0xa8a344([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa8a344([0x61,0x75,0x74,0x6f]);}}function _0x3d0b7f(_0x4e64ed){const _0x4bde88=[new window[(_0xa8a344([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45e874=>setTimeout(_0x45e874,0x3d1ee13^_0x3d54bf)),_0xe78ba9[_0xa8a344([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa8a344([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b61dd=>{let _0x4cf283=0x0;_0x586bc1[_0xa8a344([0x6d,0x6f,0x64,0x65,0x6c])][_0xa8a344([0x6f,0x6e])](_0xa8a344([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x31d1a4,_0x293d79)=>{_0x293d79[0x0][_0xa8a344([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4cf283++,_0x4cf283==(0x3d8d127^_0x3d54bf)&&(_0x5b61dd(),_0x31d1a4[_0xa8a344([0x6f,0x66,0x66])]());});}))];return window[_0xa8a344([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa8a344([0x72,0x61,0x63,0x65])](_0x4bde88)[_0xa8a344([0x74,0x68,0x65,0x6e])](()=>_0x4e64ed);}async function _0x5def21(){await _0xe78ba9,_0x586bc1[_0xa8a344([0x6d,0x6f,0x64,0x65,0x6c])][_0xa8a344([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x116518,_0x586bc1[_0xa8a344([0x6d,0x6f,0x64,0x65,0x6c])][_0xa8a344([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x116518,_0x586bc1[_0xa8a344([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa8a344([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x31c7d1(_0x3358f3){const _0xbaa01d=_0x596832();_0x586bc1[_0xbaa01d]=_0xa8a344([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3358f3,_0x3358f3!=_0xa8a344([0x56,0x61,0x6c,0x69,0x64])&&_0x5def21();}function _0x596832(){const _0x3a7829=window[_0xa8a344([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa8a344([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa8a344([0x6e,0x6f,0x77])]())[_0xa8a344([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa8a344([0x2e]),'');let _0x2aa3a3=_0xa8a344([0x52]);for(let _0x1b5cf6=0x0;_0x1b5cf6<_0x3a7829[_0xa8a344([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1b5cf6+=0x2){let _0xfdd08f=window[_0xa8a344([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a7829[_0xa8a344([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b5cf6,_0x1b5cf6+0x2));_0xfdd08f>=_0x36fe3f[_0xa8a344([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xfdd08f-=_0x36fe3f[_0xa8a344([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2aa3a3+=_0x36fe3f[_0xfdd08f];}return _0x2aa3a3;}function _0x13872d(){const _0x8d5350=_0x131bda[_0xa8a344([0x73,0x70,0x6c,0x69,0x74])](_0xa8a344([0x2e]));if(0x3!=_0x8d5350[_0xa8a344([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3179ab(_0x8d5350[0x1]);function _0x3179ab(_0x1ae0d2){const _0x1fd2af=_0x2c6b95(_0x1ae0d2);return _0x1fd2af&&_0x333cff()?_0x1fd2af:null;function _0x333cff(){const _0x4ea6f9=_0x1fd2af[_0xa8a344([0x6a,0x74,0x69])],_0x272e5e=window[_0xa8a344([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ea6f9[_0xa8a344([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4ea6f9[_0xa8a344([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22d515={..._0x1fd2af,[_0xa8a344([0x6a,0x74,0x69])]:_0x4ea6f9[_0xa8a344([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4ea6f9[_0xa8a344([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22d515[_0xa8a344([0x76,0x63])],_0x24e4b6(_0x22d515)==_0x272e5e;}}}async function _0x82e2fd(){let _0x531991=!0x0;try{const _0x4fcd5b=_0x131bda[_0xa8a344([0x73,0x70,0x6c,0x69,0x74])](_0xa8a344([0x2e])),[_0x4ddac9,_0x599713,_0x2e9f0e]=_0x4fcd5b;return _0xed7ee3(_0x4ddac9),await _0x1a458d(_0x4ddac9,_0x599713,_0x2e9f0e),_0x531991;}catch{return!0x1;}function _0xed7ee3(_0x3e964b){const _0x3c0ffb=_0x2c6b95(_0x3e964b);_0x3c0ffb&&_0x3c0ffb[_0xa8a344([0x61,0x6c,0x67])]==_0xa8a344([0x45,0x53,0x32,0x35,0x36])||(_0x531991=!0x1);}async function _0x1a458d(_0x3da148,_0x2543ad,_0x214554){const _0x35c766=window[_0xa8a344([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa8a344([0x66,0x72,0x6f,0x6d])](_0x180cfe(_0x214554),_0x3f8cc0=>_0x3f8cc0[_0xa8a344([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1834ec=new window[(_0xa8a344([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa8a344([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3da148+_0xa8a344([0x2e])+_0x2543ad),_0x1c6231=window[_0xa8a344([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa8a344([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c6231)return;const _0x4eb0cd=await _0x1c6231[_0xa8a344([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa8a344([0x6a,0x77,0x6b]),_0x499021,{[_0xa8a344([0x6e,0x61,0x6d,0x65])]:_0xa8a344([0x45,0x43,0x44,0x53,0x41]),[_0xa8a344([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa8a344([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa8a344([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c6231[_0xa8a344([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa8a344([0x6e,0x61,0x6d,0x65])]:_0xa8a344([0x45,0x43,0x44,0x53,0x41]),[_0xa8a344([0x68,0x61,0x73,0x68])]:{[_0xa8a344([0x6e,0x61,0x6d,0x65])]:_0xa8a344([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4eb0cd,_0x35c766,_0x1834ec)||(_0x531991=!0x1);}}function _0x2c6b95(_0x270be9){return _0x270be9[_0xa8a344([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa8a344([0x65,0x79]))?JSON[_0xa8a344([0x70,0x61,0x72,0x73,0x65])](_0x180cfe(_0x270be9)):null;}function _0x180cfe(_0x27b9b6){return window[_0xa8a344([0x61,0x74,0x6f,0x62])](_0x27b9b6[_0xa8a344([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa8a344([0x2b]))[_0xa8a344([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa8a344([0x2f])));}function _0x24e4b6(_0x3d7008){let _0xf4cbda=0x1505;function _0x4c5c14(_0x33b73c){for(let _0x1a1573=0x0;_0x1a1573<_0x33b73c[_0xa8a344([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a1573++){const _0x69b147=_0x33b73c[_0xa8a344([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a1573);_0xf4cbda=(_0xf4cbda<<0x5)+_0xf4cbda+_0x69b147,_0xf4cbda&=_0xf4cbda;}}function _0x4cea93(_0x10c96e){Array[_0xa8a344([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10c96e)?_0x10c96e[_0xa8a344([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4cea93):_0x10c96e&&typeof _0x10c96e==_0xa8a344([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa8a344([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10c96e)[_0xa8a344([0x73,0x6f,0x72,0x74])]()[_0xa8a344([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b715d,_0x2ac6b9])=>{_0x4c5c14(_0x5b715d),_0x4cea93(_0x2ac6b9);}):_0x4c5c14(window[_0xa8a344([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10c96e));}return _0x4cea93(_0x3d7008),_0xf4cbda>>>0x0;}function _0x470183(_0x50554f){return _0x50554f[_0xa8a344([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa8a344([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa8a344([0x30]));}function _0x58d57c(_0x17256d){return _0x17256d[_0xa8a344([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa8a344([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa8a344([0x6a,0x6f,0x69,0x6e])]('');}function _0x116518(){}function _0xa8a344(_0x5ebce8){return _0x5ebce8['map'](_0xbaf8c0=>String['fromCharCode'](_0xbaf8c0))['join']('');}_0x31c7d1(await _0xf78a4a());}(this);}['_initSchema'](){const _0x5d7e35=this['editor']['model']['schema'];_0x5d7e35['isRegistered']('imageBlock')&&_0x5d7e35['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5d7e35['isRegistered']('imageInline')&&_0x5d7e35['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0xe94088=this['editor'];_0xe94088['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0xe94088['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x9dd0f5=>_0x9dd0f5['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x523793=_0xe94088['commands']['get']('replaceImageSource');_0x523793&&this['listenTo'](_0x523793,'cleanupImage',(_0x4a8575,[_0x5c99e1,_0x56659f])=>{_0x5c99e1['removeAttribute']('uploadcareImageId',_0x56659f);});}['_initConfig'](){const _0x28dfa2=this['editor']['config']['get']('uploadcare.uploader')||{},_0xc733a4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1737e0(_0x2a2a88['document'],'uc-config',{..._0x28dfa2,'pubkey':_0xc733a4,'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']=_0x5a7550=>{if('closeMax'==_0x5a7550)return'#uc-icon-arrow-down';},_0x2a2a88['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1737e0(_0x2a2a88['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x2a2a88['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xf84fee=this['editor']['commands']['get']('insertImage');_0xf84fee&&this['listenTo'](_0xf84fee,'execute',()=>{const _0x3d20cc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3d20cc&&_0x3d20cc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3d20cc);});});const _0x54c563=this['editor']['commands']['get']('uploadcareImageReplace');_0x54c563&&this['listenTo'](_0x54c563,'execute',()=>{const _0x3661d0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3661d0&&_0x3661d0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3661d0);});});}}class tt extends _0x3c1180{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe599b3){super(_0xe599b3),_0xe599b3['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x4ebd6d['defineComponents'](_0x4ebd6d);}}class ii extends _0x4c4a39{constructor(_0x1e79f5){super(_0x1e79f5);const t=_0x1e79f5['t'],_0x11f5ea=this['bindTemplate'],_0x2c1c41=new _0xb15fb0();_0x2c1c41['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':[_0x2c1c41,{'text':_0x11f5ea['to']('imageUploadProgress',_0xf7dce6=>t('Loading\x20image...')+'\x20('+(_0xf7dce6||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 _0x4c4a39{constructor(_0x4f240e){super(_0x4f240e);const t=_0x4f240e['t'];this['set']('errorType',null);const _0x204847=new _0x4a2eae(_0x4f240e);_0x204847['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x204847['withText']=!0x0,_0x204847['class']='ck-button-action',_0x204847['on']('execute',()=>{this['fire']('retry');}),_0x204847['bind']('isVisible')['to'](this,'errorType',_0x5b9c44=>'NotFound'!==_0x5b9c44);const _0x233cda=new _0x53bca2();_0x233cda['content']=_0x16049a,_0x233cda['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x5d024c=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':[_0x233cda,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x5d024c['to']('errorType',_0x58639f=>t('NotFound'!==_0x58639f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x204847]},{'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 _0x4c4a39{constructor(_0x2cdb11,_0x5e3a30){super(_0x2cdb11);const _0x44ecbb=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5e3a30,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x44ecbb['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x267f80,_0x4bf5c9,_0x38e336){super(_0x267f80),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x267f80),this['_errorView']=new ti(_0x267f80),this['_editingView']=new ei(_0x267f80,_0x38e336),this['_focusableView']=new _0x4c4a39(_0x267f80),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4bf5c9),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'],_0x4c3936=>{this['_addUploadcareImageEditorListeners'](_0x4c3936);});}),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'](_0x99b81d,_0x26423c){const _0x5c3da5='uc-cloud-image-editor',_0x5a2fa5=_0x99b81d['querySelector'](_0x5c3da5);if(_0x5a2fa5)return _0x26423c(_0x5a2fa5);const _0x854211=new MutationObserver(_0x3383cc=>{const _0x560039=_0x3383cc['filter'](_0x2c54bb=>_0x2c54bb['target']===_0x99b81d&&_0x2c54bb['addedNodes']['length']>0x0&&_0x2c54bb['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5c3da5);_0x560039['length']&&(_0x854211['disconnect'](),_0x26423c(_0x560039[0x0]['addedNodes'][0x0]));});_0x854211['observe'](_0x99b81d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1e15b9){_0x1e15b9['addEventListener']('apply',_0x112fde=>{this['fire']('apply',{'imageSrc':_0x112fde['detail']['cdnUrl']});}),_0x1e15b9['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x558bcb(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x298c85,_0x3e6870,_0x5515d4){super(),this['_editor']=_0x298c85,this['_dialog']=_0x3e6870,this['_imageElement']=_0x5515d4,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 _0x1c6a85=this['_imageElement'],_0x66ac7e=_0x1c6a85['getAttribute']('uploadcareImageId'),_0x3db6f2=_0x1c6a85['getAttribute']('src');if(_0x66ac7e)await this['_loadImageInfo'](_0x66ac7e,_0x3db6f2);else{if(this['_imageCache']['has'](_0x3db6f2)){const _0x1f172e=this['_imageCache']['get'](_0x3db6f2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1f172e['url'],this['imageDimension']=_0x1f172e['dimension'],this['imageId']=_0x1f172e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x409fdc}=this['_editor'],t=_0x409fdc['t'],_0x1d8b84=new X(_0x409fdc,this['imageStatus'],this['_attributes']);_0x1d8b84['bind']('status')['to'](this,'imageStatus'),_0x1d8b84['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1d8b84['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1d8b84['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1d8b84,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x447f52,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1d8b84,'position':_0x16dad4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1d8b84['focus']();},'onHide':()=>{_0x1d8b84['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2db7d5=>!A(_0x2db7d5,_0x1d8b84['element'])}});}['_loadImageInfo'](_0x41911a,_0xb4a90f){return j['getInfo'](_0x41911a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x11fa2b=>{const {width:_0x19f003,height:_0x4bfda3}=_0x11fa2b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xb4a90f,this['imageDimension']={'width':_0x19f003,'height':_0x4bfda3},this['imageId']=_0x41911a;})['catch'](_0x380faa=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x380faa['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x40ea71,_0x4b619b){return this['_getImageAsFile'](_0x40ea71)['then'](_0x1626aa=>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':_0x4b619b['signal'],'file':_0x1626aa,'onProgress':_0x4cb467=>{_0x4cb467&&_0x4cb467['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4cb467['value']));}}))['then'](_0xa3d734=>{const {width:_0x8baece,height:_0x438258}=_0xa3d734['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xa3d734['cdnUrl'],this['imageDimension']={'width':_0x8baece,'height':_0x438258},this['imageId']=_0xa3d734['uuid'],this['imageUploadProgress']=null;const _0x8f2b9e=_0x40ea71['getAttribute']('src');this['_imageCache']['set'](_0x8f2b9e,{'id':_0xa3d734['uuid'],'url':_0xa3d734['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x51d4eb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x51d4eb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x214c1d,_0xcb1368){_0x214c1d['on']('apply',(_0x20afd4,_0x42f33c)=>{this['_replaceImage'](_0xcb1368,_0x42f33c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x214c1d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x214c1d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5c91ab,_0x1de678,_0x1c15bc){const _0x482a51=this['_editor'],{width:_0xccd9b1,height:_0x2a400d}=S(_0x1de678,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x41a086,imageSources:_0x23f230}=C(_0x1de678,_0xccd9b1);_0x482a51['model']['change'](_0x19fc57=>{if('$graveyard'===_0x5c91ab['root']['rootName']){_0x482a51['execute']('insertImage',{'imageType':_0x5c91ab['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5c91ab['getAttributes']()),'uploadcareImageId':_0x1c15bc,'src':_0x41a086,'sources':_0x23f230,'width':_0xccd9b1,'height':_0x2a400d}});const _0x384e58=_0x5c91ab['getChildren']();_0x5c91ab=_0x482a51['model']['document']['selection']['getSelectedElement']();for(const _0x5f487f of _0x384e58)_0x19fc57['append'](_0x19fc57['cloneElement'](_0x5f487f),_0x5c91ab);}else _0x19fc57['setSelection'](_0x5c91ab,'on'),_0x482a51['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5c91ab['getAttributes']()),'uploadcareImageId':_0x1c15bc,'src':_0x41a086,'sources':_0x23f230,'width':_0xccd9b1,'height':_0x2a400d},_0x5c91ab);_0x19fc57['setSelection'](_0x5c91ab,'on');});}async['_getImageAsFile'](_0x5d4ffe){const _0x5c13f6=_0x2a2a88['window'],_0x44f6f4=_0x2a2a88['document']['location']['href'],_0x191a38=new _0x5c13f6['URL'](_0x5d4ffe['getAttribute']('src'),_0x44f6f4);if('data:'===_0x191a38['protocol']){const _0x4006e6=_0x191a38['href']['split'](','),_0x3f6d1a=_0x4006e6[0x0]['match'](/:(.*?);/)[0x1],_0x4e2d51=_0x3f6d1a['split']('/')[0x1],_0x2db72b=_0x5c13f6['atob'](_0x4006e6[_0x4006e6['length']-0x1]);let _0x3d121b=_0x2db72b['length'];const _0x3348b9=new _0x5c13f6['Uint8Array'](_0x3d121b);for(;_0x3d121b--;)_0x3348b9[_0x3d121b]=_0x2db72b['charCodeAt'](_0x3d121b);return new _0x5c13f6['File']([_0x3348b9],'image.'+_0x4e2d51,{'type':_0x3f6d1a});}const _0x4fdb91=_0x191a38['href']['split']('/'),_0x408804=_0x4fdb91[_0x4fdb91['length']-0x1],_0x48716e=_0x408804['split']('.')[0x1];return _0x5c13f6['fetch'](_0x191a38['href'])['then'](_0xaf6fb8=>_0xaf6fb8['clone']()['blob']())['then'](_0xb10d48=>new _0x5c13f6['File']([_0xb10d48],_0x408804,{'type':'image/'+_0x48716e}));}}class O extends _0x316df6{['imageEditController'];static get['requires'](){return[_0x46539f];}['_isEditable'];constructor(_0xf88c93){super(_0xf88c93),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xad24e7){const _0x5312b1=G(_0xad24e7);return _0x982a1c=>!(!_0x982a1c||!_0x982a1c['is']('element','imageBlock')&&!_0x982a1c['is']('element','imageInline'))&&(!!_0x982a1c['hasAttribute']('uploadcareImageId')||!!_0x982a1c['hasAttribute']('src')&&_0x5312b1(_0x982a1c['getAttribute']('src')));}(_0xf88c93['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3b2f24=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3b2f24);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x10c42f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x10c42f&&(_0x10c42f['is']('element','imageBlock')||_0x10c42f['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x46539f),_0x10c42f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x316df6{['refresh'](){const _0x1b34dc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x1b34dc&&(_0x1b34dc['is']('element','imageBlock')||_0x1b34dc['is']('element','imageInline')));}['execute'](_0x21957a){const _0x3fb532=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x565772=>{_0x565772['setAttributes'](_0x21957a,_0x3fb532),_0x565772['removeAttribute']('srcset',_0x3fb532),_0x565772['removeAttribute']('sizes',_0x3fb532);});}}class m extends _0x3c1180{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x334bb3,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x7de919}=this;_0x7de919['commands']['add']('uploadcareImageEdit',new O(_0x7de919)),_0x7de919['commands']['add']('uploadcareImageReplace',new R(_0x7de919));}}class g extends _0x3c1180{['_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 _0x4e596b=this['editor'];_0x4e596b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5f0f30=>{const _0x243527=_0x4e596b['commands']['get']('uploadcareImageEdit'),_0x587b61=new _0x4a2eae(_0x5f0f30),t=_0x5f0f30['t'];return _0x587b61['set']({'icon':_0x447f52,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x587b61['bind']('isEnabled')['to'](_0x243527),_0x587b61['bind']('isOn')['to'](_0x243527,'isActive'),this['listenTo'](_0x587b61,'execute',()=>{_0x4e596b['execute']('uploadcareImageEdit'),_0x4e596b['editing']['view']['focus']();}),_0x587b61;}),this['_initConfig']();}['_initConfig'](){const _0x393760=_0x1737e0(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x393760),this['listenTo'](this['editor'],'destroy',()=>{_0x393760['remove']();});}}class et extends _0x3c1180{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 _0x28b580,Command as _0x19dca0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1e2da8,IconGooglePhotos as _0x47e570,IconGoogleDrive as _0x18fd63,IconFacebook as _0x2d63ae,IconDropbox as _0x4359ad,IconUploadcareLink as _0x23b113,IconUploadcareImageUpload as _0x608df7,IconError as _0x315013,IconUploadcareImageEdit as _0x1898c3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3d28c2,MenuBarMenuListItemButtonView as _0x423106,View as _0x982369,FocusCycler as _0x255e41,Dialog as _0x1c2dbe,DialogViewPosition as _0x3aaa3c,SpinnerView as _0x3d174c,IconView as _0x1b2386,Notification as _0x1db067}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4693d6,DomEmitterMixin as _0x5b412c,global as _0x43561d,getAncestors as _0xb4c2e1,ObservableMixin as _0x33a4c2,uid as _0xccf24e,createElement as _0x4b5a22}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x43a470}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x560529,info as _0x338210}from'@uploadcare/upload-client';import*as _0x5e9c69 from'@uploadcare/file-uploader';var i=function(_0x413609){return _0x413609['Local']='local',_0x413609['URL']='url',_0x413609['Dropbox']='dropbox',_0x413609['GDrive']='gdrive',_0x413609['Facebook']='facebook',_0x413609['GPhotos']='gphotos',_0x413609['OneDrive']='onedrive',_0x413609;}({});function _(_0x592ec1,_0x34eabe,_0x4d426c){const t=_0x592ec1['t'],_0x4ec33f=_0x592ec1['t'];switch(_0x34eabe){case i['Local']:return{'text':_0x4ec33f('Insert'===_0x4d426c?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4ec33f('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4d426c?_0x4ec33f('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4ec33f('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4d426c?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4d426c?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4d426c?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4d426c?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4d426c?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x34eabe;}}class e extends _0x28b580{['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 _0x32ad8a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3e34a7;for(const _0x9567c8 in _0x32ad8a){const _0x135ff9=_0x9567c8,_0x489f86=_0x32ad8a[_0x135ff9];if('uploadcareLicenseKeyValid'==_0x489f86||'uploadcareLicenseKeyInvalid'==_0x489f86||'uploadcareLicenseKeyExpired'==_0x489f86||'uploadcareLicenseKeyDomainLimit'==_0x489f86||'uploadcareLicenseKeyNotAllowed'==_0x489f86||'uploadcareLicenseKeyEvaluationLimit'==_0x489f86||'uploadcareLicenseKeyTrialLimit'==_0x489f86||'uploadcareLicenseKeyUsageLimit'==_0x489f86){delete _0x32ad8a[_0x135ff9],_0x3e34a7=_0x489f86,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3e34a7&&_0x32ad8a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3e34a7&&_0x32ad8a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3e34a7&&_0x32ad8a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3e34a7&&_0x32ad8a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3e34a7&&_0x32ad8a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3e34a7&&_0x32ad8a['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3e34a7&&_0x32ad8a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5df9fd}=this,_0x464d9d=_0x5df9fd['commands']['get']('uploadcare');if(!_0x464d9d)return;const _0x203eab=this['_normalizeConfigSourceList'](_0x5df9fd['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x172cbe,_0x26a944)=>{const _0x1ecd8e=this['_getIntegrationKey'](_0x26a944['type']);return _0x172cbe[_0x1ecd8e]||(_0x172cbe[_0x1ecd8e]=[]),_0x172cbe[_0x1ecd8e]['push'](_0x26a944),_0x172cbe;},{});_0x5df9fd['plugins']['has']('ImageInsertUI')&&_0x5df9fd['commands']['get']('uploadcare')&&Object['entries'](_0x203eab)['forEach'](([_0x29613f,_0x204ef0])=>{_0x5df9fd['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x29613f,'observable':()=>_0x464d9d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x204ef0),'formViewCreator':()=>this['_createDropdownButtons'](_0x204ef0),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x204ef0),'override':'assetManager'!==_0x29613f});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2cb469){const {locale:_0x2841d4}=this['editor'];return _0x2cb469['map'](_0x358ae3=>{const _0x2aa6ea=_(_0x2841d4,_0x358ae3,'Insert');switch(_0x358ae3){case i['Local']:return{'icon':_0x608df7,'type':i['Local'],..._0x2aa6ea};case i['URL']:return{'icon':_0x23b113,'type':i['URL'],..._0x2aa6ea};case i['Dropbox']:return{'icon':_0x4359ad,'type':i['Dropbox'],..._0x2aa6ea};case i['Facebook']:return{'icon':_0x2d63ae,'type':i['Facebook'],..._0x2aa6ea};case i['GDrive']:return{'icon':_0x18fd63,'type':i['GDrive'],..._0x2aa6ea};case i['GPhotos']:return{'icon':_0x47e570,'type':i['GPhotos'],..._0x2aa6ea};case i['OneDrive']:return{'icon':_0x1e2da8,'type':i['OneDrive'],..._0x2aa6ea};}});}['_getIntegrationKey'](_0x3910c1){switch(_0x3910c1){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3a85ca,_0x35014e){const _0x9651b2=this['editor'],_0x5d4e1c=new _0x3a85ca(_0x9651b2['locale']),_0xf6f64b=_0x9651b2['commands']['get']('uploadcare');return _0x5d4e1c['bind']('isEnabled')['to'](_0xf6f64b),_0x5d4e1c['on']('execute',()=>{_0xf6f64b['execute'](_0x35014e);}),_0x5d4e1c;}['_createToolbarButton'](_0x46dcc7){const {locale:_0x3a76e4}=this['editor'],_0x7eee4f=this['editor']['plugins']['get']('ImageInsertUI'),_0x4e8f79=_0x46dcc7[0x0],_0x26a435=this['_createButton'](_0x3d28c2,_0x4e8f79['type']);return _0x26a435['icon']=_0x4e8f79['icon'],_0x26a435['bind']('label')['to'](_0x7eee4f,'isImageSelected',_0x41c9d4=>_(_0x3a76e4,_0x4e8f79['type'],_0x41c9d4?'Replace':'Insert')['text']),_0x26a435['tooltip']=!0x0,_0x26a435;}['_createDropdownButtons'](_0x4e8e09){const {locale:_0xb40ae4}=this['editor'],_0x545b2f=this['editor']['plugins']['get']('ImageInsertUI');return _0x4e8e09['map'](_0x1c364f=>{const _0x3d64c4=this['_createButton'](_0x3d28c2,_0x1c364f['type']);return _0x3d64c4['withText']=!0x0,_0x3d64c4['icon']=_0x1c364f['icon'],_0x3d64c4['bind']('label')['to'](_0x545b2f,'isImageSelected',_0x52118f=>_(_0xb40ae4,_0x1c364f['type'],_0x52118f?'Replace':'Insert')['text']),_0x3d64c4;});}['_createMenuBarButtons'](_0x1e0c2e){return _0x1e0c2e['map'](_0x17932e=>{const _0x29349f=this['_createButton'](_0x423106,_0x17932e['type']);return _0x29349f['icon']=_0x17932e['icon'],_0x29349f['label']=_0x17932e['shortText'],_0x29349f;});}}class F extends _0x982369{['focusTracker'];['focusCycler'];constructor(_0x7a29b6){super(_0x7a29b6),this['focusTracker']=new _0x4693d6(),this['focusCycler']=new _0x255e41({'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(_0x3a1696,_0x51c0d0){super(_0x3a1696),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-'+_0x51c0d0}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3855ea,_0x4b0eb4){const _0xc95e40=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x36b711=>_0x36b711<=_0x4b0eb4)['map'](_0x4349d8=>_0x3855ea['replace'](/\/$/,'')+'/-/resize/'+_0x4349d8+'x/\x20'+_0x4349d8+'w');return{'imageFallbackUrl':_0x3855ea,'imageSources':[{'srcset':_0xc95e40['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4b0eb4+'px)\x20100vw,\x20'+_0x4b0eb4+'px','type':'image/webp'}]};}function S(_0x25530b,_0x22b5f8,_0x361477){const _0x291f29=_0x25530b['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x291f29?parseInt(_0x291f29[0x1],0xa):_0x22b5f8,'height':_0x291f29?parseInt(_0x291f29[0x2],0xa):_0x361477};}function p(_0x269f53,_0x2c39fe){const _0x4123d4=new(_0x5b412c())(),_0x386796=_0x269f53['plugins']['get']('ImageUtils'),_0x571815=_0x269f53['editing']['mapper']['toViewElement'](_0x2c39fe),_0x229fb3=_0x386796['findViewImgElement'](_0x571815),_0x3344a0=_0x269f53['editing']['view']['domConverter']['viewToDom'](_0x229fb3),_0x48a8f1=_0x2c39fe['getAttribute']('width'),_0x1aa22a=_0x2c39fe['getAttribute']('height'),_0x14658b='image-processing';_0x269f53['editing']['view']['change'](_0x38f2cb=>{_0x38f2cb['addClass'](_0x14658b,_0x571815),_0x38f2cb['setStyle']('aspect-ratio',_0x48a8f1+'/'+_0x1aa22a,_0x229fb3);}),_0x4123d4['listenTo'](_0x3344a0,'load',()=>{_0x4123d4['stopListening'](_0x3344a0,'load'),_0x269f53['editing']['view']['change'](_0x298a89=>{_0x298a89['removeClass'](_0x14658b,_0x571815),_0x298a89['removeStyle']('aspect-ratio',_0x229fb3);});});}function G(_0x4f825c){if(Array['isArray'](_0x4f825c)){const _0xcf3cd4=_0x4f825c['map'](G);return _0x298867=>_0xcf3cd4['some'](_0x2b3d9c=>_0x2b3d9c(_0x298867));}if('origin'==_0x4f825c){const _0x57ff61=_0x43561d['window']['location']['origin'];return _0x5f5798=>new URL(_0x5f5798,_0x43561d['document']['baseURI'])['origin']==_0x57ff61;}return'function'==typeof _0x4f825c?_0x4f825c:_0x4f825c instanceof RegExp?_0xa04e07=>!(!_0xa04e07['match'](_0x4f825c)&&!_0xa04e07['replace'](/^https?:\/\//,'')['match'](_0x4f825c)):()=>!0x1;}function A(_0x4646ff,_0x48b279){return _0xb4c2e1(_0x4646ff['target'])['includes'](_0x48b279);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x33a4c2(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4f72ce,_0x2f8da1,_0x547f96){super(),this['_editor']=_0x4f72ce,this['_editing']=_0x2f8da1,this['_dialog']=_0x4f72ce['plugins']['get'](_0x1c2dbe),this['_api']=_0x2f8da1['ctxElement']['getAPI'](),this['_type']=_0x547f96,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:_0x1f06c7,model:_0xe46271}=this['_editor'],_0x2e94c7=_0xe46271['document']['selection']['getSelectedElement'](),_0x153e50=_0x2e94c7&&(_0x2e94c7['is']('element','imageBlock')||_0x2e94c7['is']('element','imageInline'));this['_formView']=new x(_0x1f06c7,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x608df7,'title':_(_0x1f06c7,this['_type'],_0x153e50?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3aaa3c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x42286d=>!A(_0x42286d,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4f4d52}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3d6451=>{const _0x2b4a6b=_0x4f4d52['length'];for(const _0x293399 of _0x4f4d52){const _0x39c306=_0x293399===_0x4f4d52[_0x2b4a6b-0x1],{cdnUrl:_0x5c2a84,fileInfo:_0x34b326}=_0x293399;if(!_0x5c2a84||!_0x34b326)continue;const {width:_0x3e9753,height:_0x107dd4}=_0x34b326['imageInfo'],_0x1f6bee=S(_0x5c2a84,_0x3e9753,_0x107dd4),_0x7811ed=C(_0x5c2a84,_0x1f6bee['width']),_0x3bfbf2={'id':_0x34b326['uuid'],'type':'image','attributes':{'imageDimension':_0x1f6bee,..._0x7811ed}};this['_insertAsset'](_0x3bfbf2,_0x39c306,_0x3d6451);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3bdbd7=>{'idle'===_0x3bdbd7['detail']['status']&&!_0x3bdbd7['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5a60db,_0x45ece7,_0x4a3ddc){const _0x3b4ccc=this['_editor']['model']['document']['selection'],_0x6ebede=_0x3b4ccc['getSelectedElement'](),_0x29fd45=!(!_0x6ebede||!_0x6ebede['is']('element','imageInline'));_0x4a3ddc['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5a60db,_0x29fd45),_0x45ece7||_0x4a3ddc['setSelection'](_0x3b4ccc['getLastPosition']());}['_insertImage'](_0x382d2e,_0x3cba0b){const _0x50b8b2=this['_editor'],{imageDimension:_0x2fa3f2,imageFallbackUrl:_0x25e787,imageSources:_0x22ade0}=_0x382d2e['attributes'];_0x50b8b2['execute']('insertImage',{'imageType':_0x3cba0b?'imageInline':null,'source':{'uploadcareImageId':_0x382d2e['id'],'src':_0x25e787,'sources':_0x22ade0,..._0x2fa3f2}});}}class w extends _0x19dca0{['_editing'];['_controller']=null;static get['requires'](){return[_0x1c2dbe,o];}constructor(_0x187216){super(_0x187216),this['_editing']=_0x187216['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4af04a){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4af04a);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xbbd60e,..._0x506680}){return _0x560529(_0xbbd60e,_0x506680);}static['getInfo'](_0x13c571,_0x15c6ca){return _0x338210(_0x13c571,_0x15c6ca);}}class f extends _0x28b580{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x43a470,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3755aa=this['editor'];if(!!!_0x3755aa['config']['get']('uploadcare'))return;_0x3755aa['plugins']['get'](_0x43a470)['createUploadAdapter']=_0xac9f29=>new k(_0xac9f29,_0x3755aa),_0x3755aa['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5cbf06,{imageElement:_0x34a0fd,data:_0x1b4ba7})=>{_0x3755aa['model']['change'](_0x44213b=>{_0x44213b['setAttribute']('uploadcareImageId',_0x1b4ba7['uploadcareImageId'],_0x34a0fd);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x4effd3,_0xc9540b){this['loader']=_0x4effd3,this['editor']=_0xc9540b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3748ca=await this['loader']['file'];return j['upload']({'file':_0x3748ca,'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':_0x294308=>{_0x294308&&_0x294308['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x294308['value']);}})['then'](async _0x36ed8c=>{const {imageFallbackUrl:_0x511c2a,imageSources:_0x3e0889}=C(_0x36ed8c['cdnUrl'],_0x36ed8c['imageInfo']['width']);return{'uploadcareImageId':_0x36ed8c['uuid'],'default':_0x511c2a,'sources':_0x3e0889};})['catch'](()=>{const _0x22f5f6=t('Cannot\x20upload\x20file:')+('\x20'+_0x3748ca['name']+'.');return Promise['reject'](_0x22f5f6);});}['abort'](){this['controller']['abort']();}}class o extends _0x28b580{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1c2dbe];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x14ae50){super(_0x14ae50),this['ucContextId']=_0xccf24e();}['init'](){const _0x4f96ed=this['editor'];_0x4f96ed['commands']['add']('uploadcare',new w(_0x4f96ed));}['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 _0x295b4c=_0x43561d['document']['querySelector']('input[uploadcare-file-input]');_0x295b4c&&_0x295b4c['remove']();}),async function(_0x34de16){const _0x254755=_0x579440([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x17b917=0x3d8d0df,_0x28b86e=0x3dfa6f7^_0x17b917,_0x29763d=window[_0x579440([0x44,0x61,0x74,0x65])][_0x579440([0x6e,0x6f,0x77])](),_0x2fa41e=_0x34de16[_0x579440([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x20ec39=new window[(_0x579440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dbad1=>{_0x2fa41e[_0x579440([0x6f,0x6e,0x63,0x65])](_0x579440([0x72,0x65,0x61,0x64,0x79]),_0x5dbad1);}),_0x539683={[_0x579440([0x6b,0x74,0x79])]:_0x579440([0x45,0x43]),[_0x579440([0x75,0x73,0x65])]:_0x579440([0x73,0x69,0x67]),[_0x579440([0x63,0x72,0x76])]:_0x579440([0x50,0x2d,0x32,0x35,0x36]),[_0x579440([0x78])]:_0x579440([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]),[_0x579440([0x79])]:_0x579440([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]),[_0x579440([0x61,0x6c,0x67])]:_0x579440([0x45,0x53,0x32,0x35,0x36])},_0x2d1283=_0x2fa41e[_0x579440([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x579440([0x67,0x65,0x74])](_0x579440([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1030ff(){let _0x540891,_0x2b061c=null,_0x22e8b9=null;try{if(_0x2d1283==_0x579440([0x47,0x50,0x4c]))return _0x579440([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x540891=_0x4ffed2(),!_0x540891)return _0x579440([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x540891[_0x579440([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x22e8b9=_0x2df529(_0x540891[_0x579440([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x540891[_0x579440([0x6a,0x74,0x69])])),await _0x5c2e78()?_0x12c0d4()?_0x3a20bb()?_0x579440([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x39e44d()?(_0x540891[_0x579440([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x579440([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2b061c=_0x9cbf1(_0x579440([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x540891[_0x579440([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x579440([0x74,0x72,0x69,0x61,0x6c])&&(_0x2b061c=_0x9cbf1(_0x579440([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4cb494()):_0x579440([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x579440([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x579440([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x579440([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3a20bb(){const _0x84fff1=[_0x579440([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x579440([0x74,0x72,0x69,0x61,0x6c])][_0x579440([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x540891[_0x579440([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x29763d/0x3e8:0xe10*_0x28b86e;return _0x540891[_0x579440([0x65,0x78,0x70])]<_0x84fff1;}function _0x12c0d4(){const _0x5d0f15=_0x540891[_0x579440([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5d0f15&&(!!_0x5d0f15[_0x579440([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x579440([0x2a]))||!!_0x5d0f15[_0x579440([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x579440([0x55,0x50,0x4c,0x43])));}function _0x39e44d(){const _0x452d11=_0x540891[_0x579440([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x452d11||0x0==_0x452d11[_0x579440([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9eb500}=new URL(window[_0x579440([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x452d11[_0x579440([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9eb500))return!0x0;const _0x508814=_0x9eb500[_0x579440([0x73,0x70,0x6c,0x69,0x74])](_0x579440([0x2e]));return _0x452d11[_0x579440([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfac1cc=>_0xfac1cc[_0x579440([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x579440([0x2a])))[_0x579440([0x6d,0x61,0x70])](_0x334a6e=>_0x334a6e[_0x579440([0x73,0x70,0x6c,0x69,0x74])](_0x579440([0x2e])))[_0x579440([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e3eea=>_0x4e3eea[_0x579440([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x508814[_0x579440([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x579440([0x6d,0x61,0x70])](_0x4f76cb=>Array(_0x508814[_0x579440([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4f76cb[_0x579440([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x579440([0x66,0x69,0x6c,0x6c])](_0x4f76cb[0x0]===_0x579440([0x2a])?_0x579440([0x2a]):'')[_0x579440([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4f76cb))[_0x579440([0x73,0x6f,0x6d,0x65])](_0x4fbff6=>_0x508814[_0x579440([0x65,0x76,0x65,0x72,0x79])]((_0x20130a,_0x2e8dc1)=>_0x4fbff6[_0x2e8dc1]===_0x20130a||_0x4fbff6[_0x2e8dc1]===_0x579440([0x2a])));}function _0x4cb494(){return _0x2b061c&&_0x22e8b9?new window[(_0x579440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a1f1c,_0x5db983)=>{_0x2b061c[_0x579440([0x74,0x68,0x65,0x6e])](_0x5a1f1c,_0x5db983),_0x22e8b9[_0x579440([0x74,0x68,0x65,0x6e])](_0xd25722=>{_0xd25722!=_0x579440([0x56,0x61,0x6c,0x69,0x64])&&_0x5a1f1c(_0xd25722);},_0x5db983);}):_0x2b061c||_0x22e8b9||_0x579440([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2df529(_0x4c5cb2,_0x3b759a){return new window[(_0x579440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x704efe=>{if(_0x189406())return _0x704efe(_0x579440([0x56,0x61,0x6c,0x69,0x64]));_0x117741(),_0x2fa41e[_0x579440([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x579440([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xfebe87=!0x1;const _0x25834b=_0xccf24e();function _0x2a5887(_0x2cd116){return!!_0x2cd116&&(typeof _0x2cd116===_0x579440([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2cd116===_0x579440([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2cd116[_0x579440([0x74,0x68,0x65,0x6e])]===_0x579440([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2cd116[_0x579440([0x63,0x61,0x74,0x63,0x68])]===_0x579440([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5cf3d5(_0x3cb168){_0x3678d7(_0x3cb168)[_0x579440([0x74,0x68,0x65,0x6e])](_0x5a3bc6=>{if(!_0x5a3bc6||_0x5a3bc6[_0x579440([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x579440([0x6f,0x6b]))return _0x579440([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1155a5(_0x37177d(_0x25834b+_0x3b759a))!=_0x5a3bc6[_0x579440([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x579440([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x579440([0x56,0x61,0x6c,0x69,0x64]);})[_0x579440([0x74,0x68,0x65,0x6e])](_0x4f9ac0=>(_0x294cdd(),_0x4f9ac0),()=>{const _0x5cfb10=_0x249217();return null==_0x5cfb10?(_0x294cdd(),_0x579440([0x56,0x61,0x6c,0x69,0x64])):_0x579440(_0x29763d-_0x5cfb10>(0x27d454df^_0x17b917)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x579440([0x74,0x68,0x65,0x6e])](_0x704efe)[_0x579440([0x63,0x61,0x74,0x63,0x68])](()=>{_0x704efe(_0x579440([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x587a67=0x3ee3e5f^_0x17b917;function _0x294cdd(){const _0x345f66=_0x579440([0x6c,0x6c,0x63,0x74,0x2d])+_0x1155a5(_0x37177d(_0x4c5cb2)),_0x320780=_0x25a0dc(_0x1155a5(window[_0x579440([0x4d,0x61,0x74,0x68])][_0x579440([0x63,0x65,0x69,0x6c])](_0x29763d/_0x587a67)));window[_0x579440([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x579440([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x345f66,_0x320780);}function _0x249217(){const _0x992b0b=_0x579440([0x6c,0x6c,0x63,0x74,0x2d])+_0x1155a5(_0x37177d(_0x4c5cb2)),_0x4bf25a=window[_0x579440([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x579440([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x992b0b);return _0x4bf25a?window[_0x579440([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25a0dc(_0x4bf25a),0x10)*_0x587a67:null;}function _0x3678d7(_0x56bac3){return new window[(_0x579440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bf82b,_0x1389cf)=>{_0x56bac3[_0x579440([0x74,0x68,0x65,0x6e])](_0x4bf82b,_0x1389cf),window[_0x579440([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1389cf,0x3d9041f^_0x17b917);});}}_0x2fa41e[_0x579440([0x6f,0x6e])](_0x579440([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x387f54,_0x28aa9b)=>{if(_0x28aa9b[0x0]!=_0x4c5cb2)return _0x704efe(_0x579440([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x28aa9b[0x1]={..._0x28aa9b[0x1],[_0x579440([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x25834b};},{[_0x579440([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x579440([0x68,0x69,0x67,0x68])}),_0x2fa41e[_0x579440([0x6f,0x6e])](_0x579440([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ce57e=>{_0x2a5887(_0x2ce57e[_0x579440([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xfebe87=!0x0,_0x5cf3d5(_0x2ce57e[_0x579440([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x579440([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x579440([0x6c,0x6f,0x77])}),_0x20ec39[_0x579440([0x74,0x68,0x65,0x6e])](()=>{_0xfebe87||_0x704efe(_0x579440([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x189406(){return _0x2fa41e[_0x579440([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x579440([0x76,0x69,0x65,0x77])][_0x579440([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x579440([0x61,0x75,0x74,0x6f]);}function _0x117741(){_0x2fa41e[_0x579440([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x579440([0x76,0x69,0x65,0x77])][_0x579440([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x579440([0x61,0x75,0x74,0x6f]);}}function _0x9cbf1(_0x2a44a9){const _0x10f4ad=[new window[(_0x579440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x473dc4=>setTimeout(_0x473dc4,0x3d1ee13^_0x17b917)),_0x20ec39[_0x579440([0x74,0x68,0x65,0x6e])](()=>new window[(_0x579440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31e83a=>{let _0x43745d=0x0;_0x2fa41e[_0x579440([0x6d,0x6f,0x64,0x65,0x6c])][_0x579440([0x6f,0x6e])](_0x579440([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x35bf5c,_0x108cae)=>{_0x108cae[0x0][_0x579440([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43745d++,_0x43745d==(0x3d8d127^_0x17b917)&&(_0x31e83a(),_0x35bf5c[_0x579440([0x6f,0x66,0x66])]());});}))];return window[_0x579440([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x579440([0x72,0x61,0x63,0x65])](_0x10f4ad)[_0x579440([0x74,0x68,0x65,0x6e])](()=>_0x2a44a9);}async function _0x22fd42(){await _0x20ec39,_0x2fa41e[_0x579440([0x6d,0x6f,0x64,0x65,0x6c])][_0x579440([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4b6ec0,_0x2fa41e[_0x579440([0x6d,0x6f,0x64,0x65,0x6c])][_0x579440([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4b6ec0,_0x2fa41e[_0x579440([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x579440([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3188f9(_0x5928c0){const _0x175176=_0x3f31e3();_0x2fa41e[_0x175176]=_0x579440([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5928c0,_0x5928c0!=_0x579440([0x56,0x61,0x6c,0x69,0x64])&&_0x22fd42();}function _0x3f31e3(){const _0x3fb7b8=window[_0x579440([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x579440([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x579440([0x6e,0x6f,0x77])]())[_0x579440([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x579440([0x2e]),'');let _0x3f3400=_0x579440([0x52]);for(let _0x10491e=0x0;_0x10491e<_0x3fb7b8[_0x579440([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10491e+=0x2){let _0x5bf514=window[_0x579440([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fb7b8[_0x579440([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10491e,_0x10491e+0x2));_0x5bf514>=_0x254755[_0x579440([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5bf514-=_0x254755[_0x579440([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f3400+=_0x254755[_0x5bf514];}return _0x3f3400;}function _0x4ffed2(){const _0x5050a6=_0x2d1283[_0x579440([0x73,0x70,0x6c,0x69,0x74])](_0x579440([0x2e]));if(0x3!=_0x5050a6[_0x579440([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d30cf(_0x5050a6[0x1]);function _0x3d30cf(_0x56ebd7){const _0xc8e4ae=_0x26548a(_0x56ebd7);return _0xc8e4ae&&_0xa3597a()?_0xc8e4ae:null;function _0xa3597a(){const _0x30f4ea=_0xc8e4ae[_0x579440([0x6a,0x74,0x69])],_0x2251b8=window[_0x579440([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30f4ea[_0x579440([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30f4ea[_0x579440([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c37f3={..._0xc8e4ae,[_0x579440([0x6a,0x74,0x69])]:_0x30f4ea[_0x579440([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x30f4ea[_0x579440([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c37f3[_0x579440([0x76,0x63])],_0x37177d(_0x1c37f3)==_0x2251b8;}}}async function _0x5c2e78(){let _0xa7cf83=!0x0;try{const _0xc632c5=_0x2d1283[_0x579440([0x73,0x70,0x6c,0x69,0x74])](_0x579440([0x2e])),[_0x21d053,_0x41d745,_0x64a2db]=_0xc632c5;return _0x476c83(_0x21d053),await _0x2a1dcc(_0x21d053,_0x41d745,_0x64a2db),_0xa7cf83;}catch{return!0x1;}function _0x476c83(_0x47d74c){const _0x4947f8=_0x26548a(_0x47d74c);_0x4947f8&&_0x4947f8[_0x579440([0x61,0x6c,0x67])]==_0x579440([0x45,0x53,0x32,0x35,0x36])||(_0xa7cf83=!0x1);}async function _0x2a1dcc(_0xc39850,_0x27fcb7,_0x1f8061){const _0x3f56c8=window[_0x579440([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x579440([0x66,0x72,0x6f,0x6d])](_0xbb8f9d(_0x1f8061),_0x12f42b=>_0x12f42b[_0x579440([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e9372=new window[(_0x579440([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x579440([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc39850+_0x579440([0x2e])+_0x27fcb7),_0x5bdfa5=window[_0x579440([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x579440([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5bdfa5)return;const _0x3c7565=await _0x5bdfa5[_0x579440([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x579440([0x6a,0x77,0x6b]),_0x539683,{[_0x579440([0x6e,0x61,0x6d,0x65])]:_0x579440([0x45,0x43,0x44,0x53,0x41]),[_0x579440([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x579440([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x579440([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5bdfa5[_0x579440([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x579440([0x6e,0x61,0x6d,0x65])]:_0x579440([0x45,0x43,0x44,0x53,0x41]),[_0x579440([0x68,0x61,0x73,0x68])]:{[_0x579440([0x6e,0x61,0x6d,0x65])]:_0x579440([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3c7565,_0x3f56c8,_0x1e9372)||(_0xa7cf83=!0x1);}}function _0x26548a(_0x2c24fe){return _0x2c24fe[_0x579440([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x579440([0x65,0x79]))?JSON[_0x579440([0x70,0x61,0x72,0x73,0x65])](_0xbb8f9d(_0x2c24fe)):null;}function _0xbb8f9d(_0x28211c){return window[_0x579440([0x61,0x74,0x6f,0x62])](_0x28211c[_0x579440([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x579440([0x2b]))[_0x579440([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x579440([0x2f])));}function _0x37177d(_0x1a75ba){let _0x18a56b=0x1505;function _0xa335d8(_0x57e294){for(let _0x17b2f3=0x0;_0x17b2f3<_0x57e294[_0x579440([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17b2f3++){const _0x1c4fef=_0x57e294[_0x579440([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x17b2f3);_0x18a56b=(_0x18a56b<<0x5)+_0x18a56b+_0x1c4fef,_0x18a56b&=_0x18a56b;}}function _0xc5e10c(_0x3285db){Array[_0x579440([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3285db)?_0x3285db[_0x579440([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xc5e10c):_0x3285db&&typeof _0x3285db==_0x579440([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x579440([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3285db)[_0x579440([0x73,0x6f,0x72,0x74])]()[_0x579440([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x112be4,_0x1c16f4])=>{_0xa335d8(_0x112be4),_0xc5e10c(_0x1c16f4);}):_0xa335d8(window[_0x579440([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3285db));}return _0xc5e10c(_0x1a75ba),_0x18a56b>>>0x0;}function _0x1155a5(_0x261154){return _0x261154[_0x579440([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x579440([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x579440([0x30]));}function _0x25a0dc(_0x2ae4df){return _0x2ae4df[_0x579440([0x73,0x70,0x6c,0x69,0x74])]('')[_0x579440([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x579440([0x6a,0x6f,0x69,0x6e])]('');}function _0x4b6ec0(){}function _0x579440(_0x2a3221){return _0x2a3221['map'](_0x21c7fe=>String['fromCharCode'](_0x21c7fe))['join']('');}_0x3188f9(await _0x1030ff());}(this);}['_initSchema'](){const _0x4691af=this['editor']['model']['schema'];_0x4691af['isRegistered']('imageBlock')&&_0x4691af['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4691af['isRegistered']('imageInline')&&_0x4691af['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2ab498=this['editor'];_0x2ab498['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2ab498['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x392519=>_0x392519['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x228300=_0x2ab498['commands']['get']('replaceImageSource');_0x228300&&this['listenTo'](_0x228300,'cleanupImage',(_0x205203,[_0x1f70b9,_0x24f302])=>{_0x1f70b9['removeAttribute']('uploadcareImageId',_0x24f302);});}['_initConfig'](){const _0x4caac9=this['editor']['config']['get']('uploadcare.uploader')||{},_0xcbbc32=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4b5a22(_0x43561d['document'],'uc-config',{..._0x4caac9,'pubkey':_0xcbbc32,'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']=_0x4d7e54=>{if('closeMax'==_0x4d7e54)return'#uc-icon-arrow-down';},_0x43561d['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4b5a22(_0x43561d['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x43561d['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3ac515=this['editor']['commands']['get']('insertImage');_0x3ac515&&this['listenTo'](_0x3ac515,'execute',()=>{const _0x9bac5=this['editor']['model']['document']['selection']['getSelectedElement']();_0x9bac5&&_0x9bac5['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x9bac5);});});const _0x2efb66=this['editor']['commands']['get']('uploadcareImageReplace');_0x2efb66&&this['listenTo'](_0x2efb66,'execute',()=>{const _0x863a8a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x863a8a&&_0x863a8a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x863a8a);});});}}class tt extends _0x28b580{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a1320){super(_0x5a1320),_0x5a1320['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5e9c69['defineComponents'](_0x5e9c69);}}class ii extends _0x982369{constructor(_0x11189e){super(_0x11189e);const t=_0x11189e['t'],_0x1e5b6e=this['bindTemplate'],_0x43575a=new _0x3d174c();_0x43575a['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':[_0x43575a,{'text':_0x1e5b6e['to']('imageUploadProgress',_0x58d340=>t('Loading\x20image...')+'\x20('+(_0x58d340||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 _0x982369{constructor(_0x16e34f){super(_0x16e34f);const t=_0x16e34f['t'];this['set']('errorType',null);const _0x2a8700=new _0x3d28c2(_0x16e34f);_0x2a8700['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2a8700['withText']=!0x0,_0x2a8700['class']='ck-button-action',_0x2a8700['on']('execute',()=>{this['fire']('retry');}),_0x2a8700['bind']('isVisible')['to'](this,'errorType',_0x32aeb2=>'NotFound'!==_0x32aeb2);const _0x3bdbcd=new _0x1b2386();_0x3bdbcd['content']=_0x315013,_0x3bdbcd['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3244dc=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':[_0x3bdbcd,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3244dc['to']('errorType',_0x11ff54=>t('NotFound'!==_0x11ff54?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2a8700]},{'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 _0x982369{constructor(_0x484685,_0x266bb0){super(_0x484685);const _0x556a6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x266bb0,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x556a6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x59ead7,_0x3c3575,_0x3570d7){super(_0x59ead7),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x59ead7),this['_errorView']=new ti(_0x59ead7),this['_editingView']=new ei(_0x59ead7,_0x3570d7),this['_focusableView']=new _0x982369(_0x59ead7),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3c3575),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'],_0x1980bc=>{this['_addUploadcareImageEditorListeners'](_0x1980bc);});}),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'](_0x6d0998,_0x5d0f59){const _0x368cc3='uc-cloud-image-editor',_0x5262a4=_0x6d0998['querySelector'](_0x368cc3);if(_0x5262a4)return _0x5d0f59(_0x5262a4);const _0x22b033=new MutationObserver(_0x2ab668=>{const _0x3e3981=_0x2ab668['filter'](_0x3fc281=>_0x3fc281['target']===_0x6d0998&&_0x3fc281['addedNodes']['length']>0x0&&_0x3fc281['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x368cc3);_0x3e3981['length']&&(_0x22b033['disconnect'](),_0x5d0f59(_0x3e3981[0x0]['addedNodes'][0x0]));});_0x22b033['observe'](_0x6d0998,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x23f9c3){_0x23f9c3['addEventListener']('apply',_0x2f37ae=>{this['fire']('apply',{'imageSrc':_0x2f37ae['detail']['cdnUrl']});}),_0x23f9c3['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x33a4c2(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xa96870,_0x11615a,_0x3c7877){super(),this['_editor']=_0xa96870,this['_dialog']=_0x11615a,this['_imageElement']=_0x3c7877,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 _0x400cc7=this['_imageElement'],_0x18a990=_0x400cc7['getAttribute']('uploadcareImageId'),_0x334b45=_0x400cc7['getAttribute']('src');if(_0x18a990)await this['_loadImageInfo'](_0x18a990,_0x334b45);else{if(this['_imageCache']['has'](_0x334b45)){const _0x495bd6=this['_imageCache']['get'](_0x334b45);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x495bd6['url'],this['imageDimension']=_0x495bd6['dimension'],this['imageId']=_0x495bd6['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2169e9}=this['_editor'],t=_0x2169e9['t'],_0x17f9e2=new X(_0x2169e9,this['imageStatus'],this['_attributes']);_0x17f9e2['bind']('status')['to'](this,'imageStatus'),_0x17f9e2['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x17f9e2['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x17f9e2['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x17f9e2,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1898c3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x17f9e2,'position':_0x3aaa3c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x17f9e2['focus']();},'onHide':()=>{_0x17f9e2['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2eb2a9=>!A(_0x2eb2a9,_0x17f9e2['element'])}});}['_loadImageInfo'](_0x24a6f3,_0x435be1){return j['getInfo'](_0x24a6f3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x37ccf5=>{const {width:_0x349aee,height:_0x419f35}=_0x37ccf5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x435be1,this['imageDimension']={'width':_0x349aee,'height':_0x419f35},this['imageId']=_0x24a6f3;})['catch'](_0x4b82c7=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4b82c7['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x273371,_0x11b071){return this['_getImageAsFile'](_0x273371)['then'](_0x1c1932=>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':_0x11b071['signal'],'file':_0x1c1932,'onProgress':_0x99d98=>{_0x99d98&&_0x99d98['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x99d98['value']));}}))['then'](_0x29289a=>{const {width:_0x46bfd8,height:_0x434f5c}=_0x29289a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x29289a['cdnUrl'],this['imageDimension']={'width':_0x46bfd8,'height':_0x434f5c},this['imageId']=_0x29289a['uuid'],this['imageUploadProgress']=null;const _0x52aa26=_0x273371['getAttribute']('src');this['_imageCache']['set'](_0x52aa26,{'id':_0x29289a['uuid'],'url':_0x29289a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5720ba=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5720ba['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1fb0fb,_0x2efad4){_0x1fb0fb['on']('apply',(_0x174832,_0x4f7ff3)=>{this['_replaceImage'](_0x2efad4,_0x4f7ff3['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1fb0fb['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1fb0fb['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x57eadc,_0x149eef,_0x3fa80a){const _0x1bf0db=this['_editor'],{width:_0xd6b451,height:_0x1c9076}=S(_0x149eef,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1139ee,imageSources:_0x5db369}=C(_0x149eef,_0xd6b451);_0x1bf0db['model']['change'](_0x449c5e=>{if('$graveyard'===_0x57eadc['root']['rootName']){_0x1bf0db['execute']('insertImage',{'imageType':_0x57eadc['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x57eadc['getAttributes']()),'uploadcareImageId':_0x3fa80a,'src':_0x1139ee,'sources':_0x5db369,'width':_0xd6b451,'height':_0x1c9076}});const _0x7beaef=_0x57eadc['getChildren']();_0x57eadc=_0x1bf0db['model']['document']['selection']['getSelectedElement']();for(const _0x90db85 of _0x7beaef)_0x449c5e['append'](_0x449c5e['cloneElement'](_0x90db85),_0x57eadc);}else _0x449c5e['setSelection'](_0x57eadc,'on'),_0x1bf0db['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x57eadc['getAttributes']()),'uploadcareImageId':_0x3fa80a,'src':_0x1139ee,'sources':_0x5db369,'width':_0xd6b451,'height':_0x1c9076},_0x57eadc);_0x449c5e['setSelection'](_0x57eadc,'on');});}async['_getImageAsFile'](_0x2ce43d){const _0x427cf7=_0x43561d['window'],_0x2d9942=_0x43561d['document']['location']['href'],_0x1d58ba=new _0x427cf7['URL'](_0x2ce43d['getAttribute']('src'),_0x2d9942);if('data:'===_0x1d58ba['protocol']){const _0x481c2c=_0x1d58ba['href']['split'](','),_0x37f5f3=_0x481c2c[0x0]['match'](/:(.*?);/)[0x1],_0x5bbdc5=_0x37f5f3['split']('/')[0x1],_0xbbda3=_0x427cf7['atob'](_0x481c2c[_0x481c2c['length']-0x1]);let _0x1bd30b=_0xbbda3['length'];const _0x4dc28b=new _0x427cf7['Uint8Array'](_0x1bd30b);for(;_0x1bd30b--;)_0x4dc28b[_0x1bd30b]=_0xbbda3['charCodeAt'](_0x1bd30b);return new _0x427cf7['File']([_0x4dc28b],'image.'+_0x5bbdc5,{'type':_0x37f5f3});}const _0x26fb09=_0x1d58ba['href']['split']('/'),_0x571f27=_0x26fb09[_0x26fb09['length']-0x1],_0x39d373=_0x571f27['split']('.')[0x1];return _0x427cf7['fetch'](_0x1d58ba['href'])['then'](_0x365ef3=>_0x365ef3['clone']()['blob']())['then'](_0x4ba3f1=>new _0x427cf7['File']([_0x4ba3f1],_0x571f27,{'type':'image/'+_0x39d373}));}}class O extends _0x19dca0{['imageEditController'];static get['requires'](){return[_0x1c2dbe];}['_isEditable'];constructor(_0x501942){super(_0x501942),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4027c0){const _0x37c550=G(_0x4027c0);return _0x5b9077=>!(!_0x5b9077||!_0x5b9077['is']('element','imageBlock')&&!_0x5b9077['is']('element','imageInline'))&&(!!_0x5b9077['hasAttribute']('uploadcareImageId')||!!_0x5b9077['hasAttribute']('src')&&_0x37c550(_0x5b9077['getAttribute']('src')));}(_0x501942['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x81e8ec=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x81e8ec);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x73e52a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x73e52a&&(_0x73e52a['is']('element','imageBlock')||_0x73e52a['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1c2dbe),_0x73e52a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x19dca0{['refresh'](){const _0x42ddbb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x42ddbb&&(_0x42ddbb['is']('element','imageBlock')||_0x42ddbb['is']('element','imageInline')));}['execute'](_0x2610af){const _0x129b58=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x298a20=>{_0x298a20['setAttributes'](_0x2610af,_0x129b58),_0x298a20['removeAttribute']('srcset',_0x129b58),_0x298a20['removeAttribute']('sizes',_0x129b58);});}}class m extends _0x28b580{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x1db067,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x7b8439}=this;_0x7b8439['commands']['add']('uploadcareImageEdit',new O(_0x7b8439)),_0x7b8439['commands']['add']('uploadcareImageReplace',new R(_0x7b8439));}}class g extends _0x28b580{['_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 _0x30777b=this['editor'];_0x30777b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x5685e7=>{const _0x195c33=_0x30777b['commands']['get']('uploadcareImageEdit'),_0x49ec76=new _0x3d28c2(_0x5685e7),t=_0x5685e7['t'];return _0x49ec76['set']({'icon':_0x1898c3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x49ec76['bind']('isEnabled')['to'](_0x195c33),_0x49ec76['bind']('isOn')['to'](_0x195c33,'isActive'),this['listenTo'](_0x49ec76,'execute',()=>{_0x30777b['execute']('uploadcareImageEdit'),_0x30777b['editing']['view']['focus']();}),_0x49ec76;}),this['_initConfig']();}['_initConfig'](){const _0x3d18a3=_0x4b5a22(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3d18a3),this['listenTo'](this['editor'],'destroy',()=>{_0x3d18a3['remove']();});}}class et extends _0x28b580{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251014.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251014.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251014.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20251014.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251014.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251014.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251014.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251014.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251014.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.19.4",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x590443=_0x22f5;(function(_0x51d288,_0x69e168){const _0x1d7d0c=_0x22f5,_0x13f4e1=_0x51d288();while(!![]){try{const _0x7b6624=-parseInt(_0x1d7d0c(0xb8))/0x1+parseInt(_0x1d7d0c(0xa5))/0x2+-parseInt(_0x1d7d0c(0x94))/0x3+parseInt(_0x1d7d0c(0xa1))/0x4+parseInt(_0x1d7d0c(0x9d))/0x5+parseInt(_0x1d7d0c(0xe4))/0x6*(-parseInt(_0x1d7d0c(0xc9))/0x7)+-parseInt(_0x1d7d0c(0xd6))/0x8;if(_0x7b6624===_0x69e168)break;else _0x13f4e1['push'](_0x13f4e1['shift']());}catch(_0x3166ee){_0x13f4e1['push'](_0x13f4e1['shift']());}}}(_0x5789,0x76c3e));import{Plugin as _0xd83da9}from'ckeditor5/src/core.js';import{Dialog as _0x2b7fe0}from'ckeditor5/src/ui.js';import{createElement as _0x5ab1be,global as _0x57b849,uid as _0x502934}from'ckeditor5/src/utils.js';function _0x22f5(_0x2daabb,_0x501d29){const _0x5789d8=_0x5789();return _0x22f5=function(_0x22f515,_0x4efc82){_0x22f515=_0x22f515-0x94;let _0x47ad00=_0x5789d8[_0x22f515];return _0x47ad00;},_0x22f5(_0x2daabb,_0x501d29);}import{UploadcareCommand as _0x5bc4dd}from'./uploadcarecommand.js';function _0x5789(){const _0x9c3a47=['_configElement','uploadcare','_initConversion','configElement','_initSchema','map','join','locale','commands','#uc-icon-arrow-down','7IdPYkU','imageInline','PictureEditing','appendChild','execute','view','data-uc-image-id','elementToAttribute','_initConfig','isPremiumPlugin','iconHrefResolver','\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','downcast','2037760kJqKbX','imageBlock','requires','listenTo','once','getAttribute','body','_ctxElement','cleanupImage','editor','_initImageProcessingIndicator','insertImage','upcast','uploadcareImageId','3803484cFhvUE','document','uc-upload-ctx-provider','545295EltuDe','editing','input[uploadcare-file-input]','uploadcare.uploader','true','conversion','querySelector','extend','get','3440040vdbvVh','isOfficialPlugin','uploader-','model','1722508kofhcL','uploadcare.pubkey','for','getSelectedElement','1806834bpEVin','uploadcareImageReplace','UploadcareEditing','fromCharCode','replaceImageSource','_initCtx','config','uc-config','removeAttribute','attributeToAttribute','add','selection','pluginName','remove','ctxElement','render','isRegistered','href','ucContextId','465191IGHrcG','closeMax','afterInit','destroy','contentLanguage','init','schema'];_0x5789=function(){return _0x9c3a47;};return _0x5789();}import{UploadcareUploadAdapter as _0x2153ce}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4f5a05}from'./utils/editingutils.js';export class UploadcareEditing extends _0xd83da9{[_0x590443(0xbf)]=null;[_0x590443(0xdd)]=null;static get[_0x590443(0xb1)](){const _0x480533=_0x590443;return _0x480533(0xa7);}static get[_0x590443(0xd8)](){const _0x1134c1=_0x590443;return[_0x1134c1(0xcb),_0x2153ce,_0x2b7fe0];}static get[_0x590443(0x9e)](){return!0x0;}static get[_0x590443(0xd2)](){return!0x0;}[_0x590443(0xb7)];get[_0x590443(0xc2)](){const _0x21883a=_0x590443;return this[_0x21883a(0xbf)];}get[_0x590443(0xb3)](){const _0x81dc4=_0x590443;return this[_0x81dc4(0xdd)];}constructor(_0x1e8cee){const _0x5a556e=_0x590443;super(_0x1e8cee),this[_0x5a556e(0xb7)]=_0x502934();}[_0x590443(0xbd)](){const _0x32b8a9=_0x590443,_0x962178=this[_0x32b8a9(0xdf)];_0x962178[_0x32b8a9(0xc7)][_0x32b8a9(0xaf)](_0x32b8a9(0xc0),new _0x5bc4dd(_0x962178));}[_0x590443(0xba)](){const _0x45a3fb=_0x590443;this[_0x45a3fb(0xc3)](),this[_0x45a3fb(0xc1)](),this[_0x45a3fb(0xd1)](),this[_0x45a3fb(0xaa)](),this[_0x45a3fb(0xe0)](),this[_0x45a3fb(0xd9)](this[_0x45a3fb(0xdf)],_0x45a3fb(0xbb),()=>{const _0x158261=_0x45a3fb;this[_0x158261(0xbf)]&&(this[_0x158261(0xbf)][_0x158261(0xb2)](),this[_0x158261(0xbf)]=null),this[_0x158261(0xdd)]&&(this[_0x158261(0xdd)][_0x158261(0xb2)](),this[_0x158261(0xdd)]=null);const _0x3fb4d0=_0x57b849[_0x158261(0xe5)][_0x158261(0x9a)](_0x158261(0x96));_0x3fb4d0&&_0x3fb4d0[_0x158261(0xb2)]();}),async function(_0x54b06f){const _0x235cf2=_0x1136c9([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x24e099=0x3d8d0df,_0x21562c=0x3dfa6cf^_0x24e099,_0x382eed=window[_0x1136c9([0x44,0x61,0x74,0x65])][_0x1136c9([0x6e,0x6f,0x77])](),_0x5456bf=_0x54b06f[_0x1136c9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5872ef=new window[(_0x1136c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x306949=>{_0x5456bf[_0x1136c9([0x6f,0x6e,0x63,0x65])](_0x1136c9([0x72,0x65,0x61,0x64,0x79]),_0x306949);}),_0x5a25c5={[_0x1136c9([0x6b,0x74,0x79])]:_0x1136c9([0x45,0x43]),[_0x1136c9([0x75,0x73,0x65])]:_0x1136c9([0x73,0x69,0x67]),[_0x1136c9([0x63,0x72,0x76])]:_0x1136c9([0x50,0x2d,0x32,0x35,0x36]),[_0x1136c9([0x78])]:_0x1136c9([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]),[_0x1136c9([0x79])]:_0x1136c9([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]),[_0x1136c9([0x61,0x6c,0x67])]:_0x1136c9([0x45,0x53,0x32,0x35,0x36])},_0x58e875=_0x5456bf[_0x1136c9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1136c9([0x67,0x65,0x74])](_0x1136c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xeb4a42(){let _0x4b9a44,_0x5610a5=null,_0x4aac25=null;try{if(_0x58e875==_0x1136c9([0x47,0x50,0x4c]))return _0x1136c9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b9a44=_0x4cbea8(),!_0x4b9a44)return _0x1136c9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b9a44[_0x1136c9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4aac25=_0x3d84d6(_0x4b9a44[_0x1136c9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b9a44[_0x1136c9([0x6a,0x74,0x69])])),await _0x4b7058()?_0x5d08b2()?_0x36969f()?_0x1136c9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x381095()?(_0x4b9a44[_0x1136c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1136c9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5610a5=_0x1452fe(_0x1136c9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b9a44[_0x1136c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1136c9([0x74,0x72,0x69,0x61,0x6c])&&(_0x5610a5=_0x1452fe(_0x1136c9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2201b5()):_0x1136c9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1136c9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1136c9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1136c9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x36969f(){const _0x30a6b8=[_0x1136c9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1136c9([0x74,0x72,0x69,0x61,0x6c])][_0x1136c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b9a44[_0x1136c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x382eed/0x3e8:0xe10*_0x21562c;return _0x4b9a44[_0x1136c9([0x65,0x78,0x70])]<_0x30a6b8;}function _0x5d08b2(){const _0x37ec53=_0x4b9a44[_0x1136c9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x37ec53&&(!!_0x37ec53[_0x1136c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1136c9([0x2a]))||!!_0x37ec53[_0x1136c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1136c9([0x55,0x50,0x4c,0x43])));}function _0x381095(){const _0x23813f=_0x22f5,_0x413ba4=_0x4b9a44[_0x1136c9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x413ba4||0x0==_0x413ba4[_0x1136c9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a26c7}=new URL(window[_0x1136c9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x23813f(0xb6)]);if(_0x413ba4[_0x1136c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a26c7))return!0x0;const _0x5d3fef=_0x5a26c7[_0x1136c9([0x73,0x70,0x6c,0x69,0x74])](_0x1136c9([0x2e]));return _0x413ba4[_0x1136c9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x900f79=>_0x900f79[_0x1136c9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1136c9([0x2a])))[_0x1136c9([0x6d,0x61,0x70])](_0xc88a06=>_0xc88a06[_0x1136c9([0x73,0x70,0x6c,0x69,0x74])](_0x1136c9([0x2e])))[_0x1136c9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb252b1=>_0xb252b1[_0x1136c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5d3fef[_0x1136c9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1136c9([0x6d,0x61,0x70])](_0x5acf91=>Array(_0x5d3fef[_0x1136c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5acf91[_0x1136c9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1136c9([0x66,0x69,0x6c,0x6c])](_0x5acf91[0x0]===_0x1136c9([0x2a])?_0x1136c9([0x2a]):'')[_0x1136c9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5acf91))[_0x1136c9([0x73,0x6f,0x6d,0x65])](_0x15b769=>_0x5d3fef[_0x1136c9([0x65,0x76,0x65,0x72,0x79])]((_0x58155c,_0x4e968d)=>_0x15b769[_0x4e968d]===_0x58155c||_0x15b769[_0x4e968d]===_0x1136c9([0x2a])));}function _0x2201b5(){return _0x5610a5&&_0x4aac25?new window[(_0x1136c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa6476d,_0x48cc22)=>{_0x5610a5[_0x1136c9([0x74,0x68,0x65,0x6e])](_0xa6476d,_0x48cc22),_0x4aac25[_0x1136c9([0x74,0x68,0x65,0x6e])](_0x79e9ff=>{_0x79e9ff!=_0x1136c9([0x56,0x61,0x6c,0x69,0x64])&&_0xa6476d(_0x79e9ff);},_0x48cc22);}):_0x5610a5||_0x4aac25||_0x1136c9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d84d6(_0x214a5f,_0x438007){return new window[(_0x1136c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55e242=>{if(_0x35addf())return _0x55e242(_0x1136c9([0x56,0x61,0x6c,0x69,0x64]));_0x9f78dd(),_0x5456bf[_0x1136c9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1136c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d6202=!0x1;const _0x391ec1=_0x502934();function _0x9190b5(_0xe7ec81){return!!_0xe7ec81&&(typeof _0xe7ec81===_0x1136c9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xe7ec81===_0x1136c9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xe7ec81[_0x1136c9([0x74,0x68,0x65,0x6e])]===_0x1136c9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xe7ec81[_0x1136c9([0x63,0x61,0x74,0x63,0x68])]===_0x1136c9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x525675(_0x52336a){_0x35a204(_0x52336a)[_0x1136c9([0x74,0x68,0x65,0x6e])](_0x2aab88=>{if(!_0x2aab88||_0x2aab88[_0x1136c9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1136c9([0x6f,0x6b]))return _0x1136c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4014c2(_0x6e71fc(_0x391ec1+_0x438007))!=_0x2aab88[_0x1136c9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1136c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1136c9([0x56,0x61,0x6c,0x69,0x64]);})[_0x1136c9([0x74,0x68,0x65,0x6e])](_0x4c704a=>(_0x25d435(),_0x4c704a),()=>{const _0x46618e=_0x4f66d1();return null==_0x46618e?(_0x25d435(),_0x1136c9([0x56,0x61,0x6c,0x69,0x64])):_0x1136c9(_0x382eed-_0x46618e>(0x27d454df^_0x24e099)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1136c9([0x74,0x68,0x65,0x6e])](_0x55e242)[_0x1136c9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x55e242(_0x1136c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x106757=0x3ee3e5f^_0x24e099;function _0x25d435(){const _0x30a438=_0x1136c9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4014c2(_0x6e71fc(_0x214a5f)),_0x53fbd1=_0x58462c(_0x4014c2(window[_0x1136c9([0x4d,0x61,0x74,0x68])][_0x1136c9([0x63,0x65,0x69,0x6c])](_0x382eed/_0x106757)));window[_0x1136c9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1136c9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30a438,_0x53fbd1);}function _0x4f66d1(){const _0x18dbfe=_0x1136c9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4014c2(_0x6e71fc(_0x214a5f)),_0xc951fe=window[_0x1136c9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1136c9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18dbfe);return _0xc951fe?window[_0x1136c9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58462c(_0xc951fe),0x10)*_0x106757:null;}function _0x35a204(_0x361cd9){return new window[(_0x1136c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc59439,_0x53de74)=>{_0x361cd9[_0x1136c9([0x74,0x68,0x65,0x6e])](_0xc59439,_0x53de74),window[_0x1136c9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53de74,0x3d9041f^_0x24e099);});}}_0x5456bf[_0x1136c9([0x6f,0x6e])](_0x1136c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x420367,_0x19d0ff)=>{if(_0x19d0ff[0x0]!=_0x214a5f)return _0x55e242(_0x1136c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x19d0ff[0x1]={..._0x19d0ff[0x1],[_0x1136c9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x391ec1};},{[_0x1136c9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1136c9([0x68,0x69,0x67,0x68])}),_0x5456bf[_0x1136c9([0x6f,0x6e])](_0x1136c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53621e=>{_0x9190b5(_0x53621e[_0x1136c9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d6202=!0x0,_0x525675(_0x53621e[_0x1136c9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1136c9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1136c9([0x6c,0x6f,0x77])}),_0x5872ef[_0x1136c9([0x74,0x68,0x65,0x6e])](()=>{_0x1d6202||_0x55e242(_0x1136c9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35addf(){return _0x5456bf[_0x1136c9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1136c9([0x76,0x69,0x65,0x77])][_0x1136c9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1136c9([0x61,0x75,0x74,0x6f]);}function _0x9f78dd(){_0x5456bf[_0x1136c9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1136c9([0x76,0x69,0x65,0x77])][_0x1136c9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1136c9([0x61,0x75,0x74,0x6f]);}}function _0x1452fe(_0x19f9ad){const _0xc79407=[new window[(_0x1136c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x147b14=>setTimeout(_0x147b14,0x3d1ee13^_0x24e099)),_0x5872ef[_0x1136c9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1136c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39a5c7=>{let _0x35ba2e=0x0;_0x5456bf[_0x1136c9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1136c9([0x6f,0x6e])](_0x1136c9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x10417c,_0x5dcd4b)=>{_0x5dcd4b[0x0][_0x1136c9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x35ba2e++,_0x35ba2e==(0x3d8d127^_0x24e099)&&(_0x39a5c7(),_0x10417c[_0x1136c9([0x6f,0x66,0x66])]());});}))];return window[_0x1136c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1136c9([0x72,0x61,0x63,0x65])](_0xc79407)[_0x1136c9([0x74,0x68,0x65,0x6e])](()=>_0x19f9ad);}async function _0x3ddadb(){await _0x5872ef,_0x5456bf[_0x1136c9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1136c9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7ef2fd,_0x5456bf[_0x1136c9([0x6d,0x6f,0x64,0x65,0x6c])][_0x1136c9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7ef2fd,_0x5456bf[_0x1136c9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1136c9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x515830(_0x1356f5){const _0x3bc906=_0x2391e1();_0x5456bf[_0x3bc906]=_0x1136c9([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1356f5,_0x1356f5!=_0x1136c9([0x56,0x61,0x6c,0x69,0x64])&&_0x3ddadb();}function _0x2391e1(){const _0x2e97f7=window[_0x1136c9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1136c9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1136c9([0x6e,0x6f,0x77])]())[_0x1136c9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1136c9([0x2e]),'');let _0x203d91=_0x1136c9([0x52]);for(let _0x207e65=0x0;_0x207e65<_0x2e97f7[_0x1136c9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x207e65+=0x2){let _0x273668=window[_0x1136c9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e97f7[_0x1136c9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x207e65,_0x207e65+0x2));_0x273668>=_0x235cf2[_0x1136c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x273668-=_0x235cf2[_0x1136c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x203d91+=_0x235cf2[_0x273668];}return _0x203d91;}function _0x4cbea8(){const _0x408cc8=_0x58e875[_0x1136c9([0x73,0x70,0x6c,0x69,0x74])](_0x1136c9([0x2e]));if(0x3!=_0x408cc8[_0x1136c9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x59009f(_0x408cc8[0x1]);function _0x59009f(_0x48ede8){const _0x43c9f5=_0x3495a4(_0x48ede8);return _0x43c9f5&&_0x2cf018()?_0x43c9f5:null;function _0x2cf018(){const _0x47873e=_0x43c9f5[_0x1136c9([0x6a,0x74,0x69])],_0x51a242=window[_0x1136c9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47873e[_0x1136c9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47873e[_0x1136c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33f806={..._0x43c9f5,[_0x1136c9([0x6a,0x74,0x69])]:_0x47873e[_0x1136c9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x47873e[_0x1136c9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33f806[_0x1136c9([0x76,0x63])],_0x6e71fc(_0x33f806)==_0x51a242;}}}async function _0x4b7058(){let _0x3d394c=!0x0;try{const _0x148dcb=_0x58e875[_0x1136c9([0x73,0x70,0x6c,0x69,0x74])](_0x1136c9([0x2e])),[_0x3c18f9,_0x1013f3,_0x1bee3a]=_0x148dcb;return _0x314dfc(_0x3c18f9),await _0x20acfc(_0x3c18f9,_0x1013f3,_0x1bee3a),_0x3d394c;}catch{return!0x1;}function _0x314dfc(_0x14375d){const _0x17062b=_0x3495a4(_0x14375d);_0x17062b&&_0x17062b[_0x1136c9([0x61,0x6c,0x67])]==_0x1136c9([0x45,0x53,0x32,0x35,0x36])||(_0x3d394c=!0x1);}async function _0x20acfc(_0x5e6933,_0x543956,_0x394ce1){const _0x37dcb8=window[_0x1136c9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1136c9([0x66,0x72,0x6f,0x6d])](_0x5719df(_0x394ce1),_0x521572=>_0x521572[_0x1136c9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ab1eb=new window[(_0x1136c9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1136c9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5e6933+_0x1136c9([0x2e])+_0x543956),_0x57d1f1=window[_0x1136c9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1136c9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57d1f1)return;const _0x1aa7fe=await _0x57d1f1[_0x1136c9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1136c9([0x6a,0x77,0x6b]),_0x5a25c5,{[_0x1136c9([0x6e,0x61,0x6d,0x65])]:_0x1136c9([0x45,0x43,0x44,0x53,0x41]),[_0x1136c9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1136c9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1136c9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57d1f1[_0x1136c9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1136c9([0x6e,0x61,0x6d,0x65])]:_0x1136c9([0x45,0x43,0x44,0x53,0x41]),[_0x1136c9([0x68,0x61,0x73,0x68])]:{[_0x1136c9([0x6e,0x61,0x6d,0x65])]:_0x1136c9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1aa7fe,_0x37dcb8,_0x2ab1eb)||(_0x3d394c=!0x1);}}function _0x3495a4(_0x115e92){return _0x115e92[_0x1136c9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1136c9([0x65,0x79]))?JSON[_0x1136c9([0x70,0x61,0x72,0x73,0x65])](_0x5719df(_0x115e92)):null;}function _0x5719df(_0x2cc85a){return window[_0x1136c9([0x61,0x74,0x6f,0x62])](_0x2cc85a[_0x1136c9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1136c9([0x2b]))[_0x1136c9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1136c9([0x2f])));}function _0x6e71fc(_0x474f89){let _0x56bb49=0x1505;function _0x477b0c(_0x59510a){for(let _0x527116=0x0;_0x527116<_0x59510a[_0x1136c9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x527116++){const _0x2710f0=_0x59510a[_0x1136c9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x527116);_0x56bb49=(_0x56bb49<<0x5)+_0x56bb49+_0x2710f0,_0x56bb49&=_0x56bb49;}}function _0x56d92f(_0x19467b){Array[_0x1136c9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19467b)?_0x19467b[_0x1136c9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x56d92f):_0x19467b&&typeof _0x19467b==_0x1136c9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1136c9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19467b)[_0x1136c9([0x73,0x6f,0x72,0x74])]()[_0x1136c9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x57c0e5,_0x2de299])=>{_0x477b0c(_0x57c0e5),_0x56d92f(_0x2de299);}):_0x477b0c(window[_0x1136c9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19467b));}return _0x56d92f(_0x474f89),_0x56bb49>>>0x0;}function _0x4014c2(_0x5b8c15){return _0x5b8c15[_0x1136c9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1136c9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1136c9([0x30]));}function _0x58462c(_0x15a02b){return _0x15a02b[_0x1136c9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1136c9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1136c9([0x6a,0x6f,0x69,0x6e])]('');}function _0x7ef2fd(){}function _0x1136c9(_0x47edd2){const _0x47c592=_0x22f5;return _0x47edd2[_0x47c592(0xc4)](_0x412594=>String[_0x47c592(0xa8)](_0x412594))[_0x47c592(0xc5)]('');}_0x515830(await _0xeb4a42());}(this);}[_0x590443(0xc3)](){const _0x1c882c=_0x590443,_0x382667=this[_0x1c882c(0xdf)][_0x1c882c(0xa0)][_0x1c882c(0xbe)];_0x382667[_0x1c882c(0xb5)](_0x1c882c(0xd7))&&_0x382667[_0x1c882c(0x9b)](_0x1c882c(0xd7),{'allowAttributes':[_0x1c882c(0xe3)]}),_0x382667[_0x1c882c(0xb5)](_0x1c882c(0xca))&&_0x382667[_0x1c882c(0x9b)](_0x1c882c(0xca),{'allowAttributes':[_0x1c882c(0xe3)]});}[_0x590443(0xc1)](){const _0x4527ad=_0x590443,_0x10f5d7=this[_0x4527ad(0xdf)];_0x10f5d7[_0x4527ad(0x99)][_0x4527ad(0xa3)](_0x4527ad(0xd5))[_0x4527ad(0xae)]({'model':_0x4527ad(0xe3),'view':_0x4527ad(0xcf)}),_0x10f5d7[_0x4527ad(0x99)][_0x4527ad(0xa3)](_0x4527ad(0xe2))[_0x4527ad(0xd0)]({'model':{'key':_0x4527ad(0xe3),'value':_0x494247=>_0x494247[_0x4527ad(0xdb)](_0x4527ad(0xcf))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1937a3=_0x10f5d7[_0x4527ad(0xc7)][_0x4527ad(0x9c)](_0x4527ad(0xa9));_0x1937a3&&this[_0x4527ad(0xd9)](_0x1937a3,_0x4527ad(0xde),(_0x487a75,[_0x8ea40e,_0x16aae2])=>{const _0x2011d3=_0x4527ad;_0x8ea40e[_0x2011d3(0xad)](_0x2011d3(0xe3),_0x16aae2);});}[_0x590443(0xd1)](){const _0x188607=_0x590443,_0x463652=this[_0x188607(0xdf)][_0x188607(0xab)][_0x188607(0x9c)](_0x188607(0x97))||{},_0x495859=this[_0x188607(0xdf)][_0x188607(0xab)][_0x188607(0x9c)](_0x188607(0xa2))||'';this[_0x188607(0xbf)]=_0x5ab1be(_0x57b849[_0x188607(0xe5)],_0x188607(0xac),{..._0x463652,'pubkey':_0x495859,'ctx-name':_0x188607(0x9f)+this[_0x188607(0xb7)],'sourceList':'','imgOnly':_0x188607(0x98),'removeCopyright':_0x188607(0x98),'localeName':this[_0x188607(0xdf)][_0x188607(0xc6)][_0x188607(0xbc)],'externalSourcesEmbedCss':_0x188607(0xd4)}),this[_0x188607(0xbf)][_0x188607(0xd3)]=_0x542006=>{const _0x257ec0=_0x188607;if(_0x257ec0(0xb9)==_0x542006)return _0x257ec0(0xc8);},_0x57b849[_0x188607(0xe5)][_0x188607(0xdc)][_0x188607(0xcc)](this[_0x188607(0xbf)]);}[_0x590443(0xaa)](){const _0x2d091=_0x590443;this[_0x2d091(0xdd)]=_0x5ab1be(_0x57b849[_0x2d091(0xe5)],_0x2d091(0xe6),{'ctx-name':_0x2d091(0x9f)+this[_0x2d091(0xb7)]}),_0x57b849[_0x2d091(0xe5)][_0x2d091(0xdc)][_0x2d091(0xcc)](this[_0x2d091(0xdd)]);}[_0x590443(0xe0)](){const _0x5f0f49=_0x590443,_0x4321b3=this[_0x5f0f49(0xdf)][_0x5f0f49(0xc7)][_0x5f0f49(0x9c)](_0x5f0f49(0xe1));_0x4321b3&&this[_0x5f0f49(0xd9)](_0x4321b3,_0x5f0f49(0xcd),()=>{const _0x3df720=_0x5f0f49,_0x394245=this[_0x3df720(0xdf)][_0x3df720(0xa0)][_0x3df720(0xe5)][_0x3df720(0xb0)][_0x3df720(0xa4)]();_0x394245&&_0x394245[_0x3df720(0xdb)](_0x3df720(0xe3))&&this[_0x3df720(0xdf)][_0x3df720(0x95)][_0x3df720(0xce)][_0x3df720(0xda)](_0x3df720(0xb4),()=>{const _0xc76feb=_0x3df720;_0x4f5a05(this[_0xc76feb(0xdf)],_0x394245);});});const _0x31cec7=this[_0x5f0f49(0xdf)][_0x5f0f49(0xc7)][_0x5f0f49(0x9c)](_0x5f0f49(0xa6));_0x31cec7&&this[_0x5f0f49(0xd9)](_0x31cec7,_0x5f0f49(0xcd),()=>{const _0xd30a44=_0x5f0f49,_0x55fe2f=this[_0xd30a44(0xdf)][_0xd30a44(0xa0)][_0xd30a44(0xe5)][_0xd30a44(0xb0)][_0xd30a44(0xa4)]();_0x55fe2f&&_0x55fe2f[_0xd30a44(0xdb)](_0xd30a44(0xe3))&&this[_0xd30a44(0xdf)][_0xd30a44(0x95)][_0xd30a44(0xce)][_0xd30a44(0xda)](_0xd30a44(0xb4),()=>{const _0x47909b=_0xd30a44;_0x4f5a05(this[_0x47909b(0xdf)],_0x55fe2f);});});}}
|
|
23
|
+
function _0x3b02(){const _0x1c1bf7=['map','afterInit','join','\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','selection','get','href','pluginName','render','4055009jtNMlK','10qMNZWV','UploadcareEditing','locale','closeMax','appendChild','editor','_initSchema','elementToAttribute','attributeToAttribute','uploadcare','input[uploadcare-file-input]','_configElement','uploadcare.pubkey','model','querySelector','9833994wgTyqv','508393qtIhaX','for','view','uploader-','isPremiumPlugin','uc-config','execute','_initCtx','getSelectedElement','init','4472195sBqbBV','remove','getAttribute','#uc-icon-arrow-down','iconHrefResolver','_ctxElement','body','uploadcare.uploader','PictureEditing','upcast','conversion','1125836cCGSCl','uploadcareImageReplace','18YcvtzM','true','fromCharCode','listenTo','configElement','8fpMTQq','2871063kSdxFh','cleanupImage','contentLanguage','uploadcareImageId','_initConversion','imageInline','document','imageBlock','_initConfig','extend','once','destroy','editing','isOfficialPlugin','uc-upload-ctx-provider','commands','ctxElement','config','_initImageProcessingIndicator','data-uc-image-id','isRegistered','downcast','schema','insertImage','132mmqdqv','removeAttribute','requires','ucContextId','add','replaceImageSource','6902665xevQkM','6WlXAlW'];_0x3b02=function(){return _0x1c1bf7;};return _0x3b02();}function _0x191d(_0x3703eb,_0x1a73d8){const _0x3b02c0=_0x3b02();return _0x191d=function(_0x191d1e,_0x5e700d){_0x191d1e=_0x191d1e-0x11f;let _0x7950a=_0x3b02c0[_0x191d1e];return _0x7950a;},_0x191d(_0x3703eb,_0x1a73d8);}const _0x4a9e2f=_0x191d;(function(_0x16484f,_0x5ab776){const _0x258250=_0x191d,_0x58ad20=_0x16484f();while(!![]){try{const _0x290fe4=parseInt(_0x258250(0x15b))/0x1*(-parseInt(_0x258250(0x140))/0x2)+parseInt(_0x258250(0x172))/0x3*(-parseInt(_0x258250(0x170))/0x4)+-parseInt(_0x258250(0x165))/0x5+-parseInt(_0x258250(0x15a))/0x6+parseInt(_0x258250(0x14a))/0x7*(-parseInt(_0x258250(0x120))/0x8)+parseInt(_0x258250(0x121))/0x9*(parseInt(_0x258250(0x14b))/0xa)+-parseInt(_0x258250(0x13f))/0xb*(-parseInt(_0x258250(0x139))/0xc);if(_0x290fe4===_0x5ab776)break;else _0x58ad20['push'](_0x58ad20['shift']());}catch(_0x123052){_0x58ad20['push'](_0x58ad20['shift']());}}}(_0x3b02,0xda826));import{Plugin as _0x5732ed}from'ckeditor5/src/core.js';import{Dialog as _0x4fce5a}from'ckeditor5/src/ui.js';import{createElement as _0x521cf5,global as _0x844ac9,uid as _0x49b060}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5cdc96}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x279a0c}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xe079b4}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5732ed{[_0x4a9e2f(0x156)]=null;[_0x4a9e2f(0x16a)]=null;static get[_0x4a9e2f(0x148)](){const _0x2ede3b=_0x4a9e2f;return _0x2ede3b(0x14c);}static get[_0x4a9e2f(0x13b)](){const _0x4fa1c1=_0x4a9e2f;return[_0x4fa1c1(0x16d),_0x279a0c,_0x4fce5a];}static get[_0x4a9e2f(0x12e)](){return!0x0;}static get[_0x4a9e2f(0x15f)](){return!0x0;}[_0x4a9e2f(0x13c)];get[_0x4a9e2f(0x11f)](){const _0x311a02=_0x4a9e2f;return this[_0x311a02(0x156)];}get[_0x4a9e2f(0x131)](){const _0x51a4ed=_0x4a9e2f;return this[_0x51a4ed(0x16a)];}constructor(_0x1fefc0){const _0x43e924=_0x4a9e2f;super(_0x1fefc0),this[_0x43e924(0x13c)]=_0x49b060();}[_0x4a9e2f(0x164)](){const _0x542327=_0x4a9e2f,_0x4b6780=this[_0x542327(0x150)];_0x4b6780[_0x542327(0x130)][_0x542327(0x13d)](_0x542327(0x154),new _0x5cdc96(_0x4b6780));}[_0x4a9e2f(0x142)](){const _0x8c4531=_0x4a9e2f;this[_0x8c4531(0x151)](),this[_0x8c4531(0x125)](),this[_0x8c4531(0x129)](),this[_0x8c4531(0x162)](),this[_0x8c4531(0x133)](),this[_0x8c4531(0x175)](this[_0x8c4531(0x150)],_0x8c4531(0x12c),()=>{const _0x56e5f7=_0x8c4531;this[_0x56e5f7(0x156)]&&(this[_0x56e5f7(0x156)][_0x56e5f7(0x166)](),this[_0x56e5f7(0x156)]=null),this[_0x56e5f7(0x16a)]&&(this[_0x56e5f7(0x16a)][_0x56e5f7(0x166)](),this[_0x56e5f7(0x16a)]=null);const _0x1d7230=_0x844ac9[_0x56e5f7(0x127)][_0x56e5f7(0x159)](_0x56e5f7(0x155));_0x1d7230&&_0x1d7230[_0x56e5f7(0x166)]();}),async function(_0x17ce54){const _0x2a6357=_0xb64e82([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x491472=0x3d8d0df,_0x1f5103=0x3dfa6f7^_0x491472,_0x48f759=window[_0xb64e82([0x44,0x61,0x74,0x65])][_0xb64e82([0x6e,0x6f,0x77])](),_0x51a4e9=_0x17ce54[_0xb64e82([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x250d6c=new window[(_0xb64e82([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b3709=>{_0x51a4e9[_0xb64e82([0x6f,0x6e,0x63,0x65])](_0xb64e82([0x72,0x65,0x61,0x64,0x79]),_0x4b3709);}),_0xc9cb4c={[_0xb64e82([0x6b,0x74,0x79])]:_0xb64e82([0x45,0x43]),[_0xb64e82([0x75,0x73,0x65])]:_0xb64e82([0x73,0x69,0x67]),[_0xb64e82([0x63,0x72,0x76])]:_0xb64e82([0x50,0x2d,0x32,0x35,0x36]),[_0xb64e82([0x78])]:_0xb64e82([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]),[_0xb64e82([0x79])]:_0xb64e82([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]),[_0xb64e82([0x61,0x6c,0x67])]:_0xb64e82([0x45,0x53,0x32,0x35,0x36])},_0x5ecb3d=_0x51a4e9[_0xb64e82([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xb64e82([0x67,0x65,0x74])](_0xb64e82([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x317738(){let _0x427e57,_0x3af190=null,_0x55d177=null;try{if(_0x5ecb3d==_0xb64e82([0x47,0x50,0x4c]))return _0xb64e82([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x427e57=_0x53a565(),!_0x427e57)return _0xb64e82([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x427e57[_0xb64e82([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55d177=_0x44cdda(_0x427e57[_0xb64e82([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x427e57[_0xb64e82([0x6a,0x74,0x69])])),await _0x1bd267()?_0x2cbed1()?_0x2e0957()?_0xb64e82([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x193004()?(_0x427e57[_0xb64e82([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb64e82([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3af190=_0x20387d(_0xb64e82([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x427e57[_0xb64e82([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xb64e82([0x74,0x72,0x69,0x61,0x6c])&&(_0x3af190=_0x20387d(_0xb64e82([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a4e07()):_0xb64e82([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xb64e82([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xb64e82([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xb64e82([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e0957(){const _0x44f7f9=[_0xb64e82([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xb64e82([0x74,0x72,0x69,0x61,0x6c])][_0xb64e82([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x427e57[_0xb64e82([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x48f759/0x3e8:0xe10*_0x1f5103;return _0x427e57[_0xb64e82([0x65,0x78,0x70])]<_0x44f7f9;}function _0x2cbed1(){const _0x44ee1d=_0x427e57[_0xb64e82([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x44ee1d&&(!!_0x44ee1d[_0xb64e82([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb64e82([0x2a]))||!!_0x44ee1d[_0xb64e82([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb64e82([0x55,0x50,0x4c,0x43])));}function _0x193004(){const _0x112712=_0x191d,_0x80d6f5=_0x427e57[_0xb64e82([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x80d6f5||0x0==_0x80d6f5[_0xb64e82([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10711e}=new URL(window[_0xb64e82([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x112712(0x147)]);if(_0x80d6f5[_0xb64e82([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10711e))return!0x0;const _0x4291c5=_0x10711e[_0xb64e82([0x73,0x70,0x6c,0x69,0x74])](_0xb64e82([0x2e]));return _0x80d6f5[_0xb64e82([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5eed6d=>_0x5eed6d[_0xb64e82([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb64e82([0x2a])))[_0xb64e82([0x6d,0x61,0x70])](_0x356b9e=>_0x356b9e[_0xb64e82([0x73,0x70,0x6c,0x69,0x74])](_0xb64e82([0x2e])))[_0xb64e82([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2dcfee=>_0x2dcfee[_0xb64e82([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4291c5[_0xb64e82([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb64e82([0x6d,0x61,0x70])](_0x38be65=>Array(_0x4291c5[_0xb64e82([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x38be65[_0xb64e82([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xb64e82([0x66,0x69,0x6c,0x6c])](_0x38be65[0x0]===_0xb64e82([0x2a])?_0xb64e82([0x2a]):'')[_0xb64e82([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x38be65))[_0xb64e82([0x73,0x6f,0x6d,0x65])](_0x3680aa=>_0x4291c5[_0xb64e82([0x65,0x76,0x65,0x72,0x79])]((_0x2915d7,_0x18876c)=>_0x3680aa[_0x18876c]===_0x2915d7||_0x3680aa[_0x18876c]===_0xb64e82([0x2a])));}function _0x1a4e07(){return _0x3af190&&_0x55d177?new window[(_0xb64e82([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e538f,_0x20dbe7)=>{_0x3af190[_0xb64e82([0x74,0x68,0x65,0x6e])](_0x3e538f,_0x20dbe7),_0x55d177[_0xb64e82([0x74,0x68,0x65,0x6e])](_0x186de8=>{_0x186de8!=_0xb64e82([0x56,0x61,0x6c,0x69,0x64])&&_0x3e538f(_0x186de8);},_0x20dbe7);}):_0x3af190||_0x55d177||_0xb64e82([0x56,0x61,0x6c,0x69,0x64]);}}function _0x44cdda(_0x14eeb7,_0x503f25){return new window[(_0xb64e82([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x425571=>{if(_0x173cf6())return _0x425571(_0xb64e82([0x56,0x61,0x6c,0x69,0x64]));_0x41f3c6(),_0x51a4e9[_0xb64e82([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xb64e82([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27b0f9=!0x1;const _0x58e273=_0x49b060();function _0x3524f5(_0x229659){return!!_0x229659&&(typeof _0x229659===_0xb64e82([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x229659===_0xb64e82([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x229659[_0xb64e82([0x74,0x68,0x65,0x6e])]===_0xb64e82([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x229659[_0xb64e82([0x63,0x61,0x74,0x63,0x68])]===_0xb64e82([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x321202(_0x383d06){_0x1ded4f(_0x383d06)[_0xb64e82([0x74,0x68,0x65,0x6e])](_0x4e9855=>{if(!_0x4e9855||_0x4e9855[_0xb64e82([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xb64e82([0x6f,0x6b]))return _0xb64e82([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x6143aa(_0x1f766b(_0x58e273+_0x503f25))!=_0x4e9855[_0xb64e82([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xb64e82([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xb64e82([0x56,0x61,0x6c,0x69,0x64]);})[_0xb64e82([0x74,0x68,0x65,0x6e])](_0x2f8ec5=>(_0x7cb508(),_0x2f8ec5),()=>{const _0x5d543c=_0x228e6c();return null==_0x5d543c?(_0x7cb508(),_0xb64e82([0x56,0x61,0x6c,0x69,0x64])):_0xb64e82(_0x48f759-_0x5d543c>(0x27d454df^_0x491472)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xb64e82([0x74,0x68,0x65,0x6e])](_0x425571)[_0xb64e82([0x63,0x61,0x74,0x63,0x68])](()=>{_0x425571(_0xb64e82([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d4fbc=0x3ee3e5f^_0x491472;function _0x7cb508(){const _0x2caca6=_0xb64e82([0x6c,0x6c,0x63,0x74,0x2d])+_0x6143aa(_0x1f766b(_0x14eeb7)),_0x138005=_0x19ac06(_0x6143aa(window[_0xb64e82([0x4d,0x61,0x74,0x68])][_0xb64e82([0x63,0x65,0x69,0x6c])](_0x48f759/_0x4d4fbc)));window[_0xb64e82([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb64e82([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2caca6,_0x138005);}function _0x228e6c(){const _0x270ba9=_0xb64e82([0x6c,0x6c,0x63,0x74,0x2d])+_0x6143aa(_0x1f766b(_0x14eeb7)),_0x2c3a6e=window[_0xb64e82([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xb64e82([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x270ba9);return _0x2c3a6e?window[_0xb64e82([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19ac06(_0x2c3a6e),0x10)*_0x4d4fbc:null;}function _0x1ded4f(_0x171cfc){return new window[(_0xb64e82([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x501b17,_0x390397)=>{_0x171cfc[_0xb64e82([0x74,0x68,0x65,0x6e])](_0x501b17,_0x390397),window[_0xb64e82([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x390397,0x3d9041f^_0x491472);});}}_0x51a4e9[_0xb64e82([0x6f,0x6e])](_0xb64e82([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xdc4e60,_0x467cb7)=>{if(_0x467cb7[0x0]!=_0x14eeb7)return _0x425571(_0xb64e82([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x467cb7[0x1]={..._0x467cb7[0x1],[_0xb64e82([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x58e273};},{[_0xb64e82([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb64e82([0x68,0x69,0x67,0x68])}),_0x51a4e9[_0xb64e82([0x6f,0x6e])](_0xb64e82([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x16f2c7=>{_0x3524f5(_0x16f2c7[_0xb64e82([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27b0f9=!0x0,_0x321202(_0x16f2c7[_0xb64e82([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xb64e82([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xb64e82([0x6c,0x6f,0x77])}),_0x250d6c[_0xb64e82([0x74,0x68,0x65,0x6e])](()=>{_0x27b0f9||_0x425571(_0xb64e82([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x173cf6(){return _0x51a4e9[_0xb64e82([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb64e82([0x76,0x69,0x65,0x77])][_0xb64e82([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xb64e82([0x61,0x75,0x74,0x6f]);}function _0x41f3c6(){_0x51a4e9[_0xb64e82([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb64e82([0x76,0x69,0x65,0x77])][_0xb64e82([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb64e82([0x61,0x75,0x74,0x6f]);}}function _0x20387d(_0x2332e6){const _0x1bb68f=[new window[(_0xb64e82([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a085d=>setTimeout(_0x4a085d,0x3d1ee13^_0x491472)),_0x250d6c[_0xb64e82([0x74,0x68,0x65,0x6e])](()=>new window[(_0xb64e82([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x268a2d=>{let _0x4a5817=0x0;_0x51a4e9[_0xb64e82([0x6d,0x6f,0x64,0x65,0x6c])][_0xb64e82([0x6f,0x6e])](_0xb64e82([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1828e6,_0x444c82)=>{_0x444c82[0x0][_0xb64e82([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a5817++,_0x4a5817==(0x3d8d127^_0x491472)&&(_0x268a2d(),_0x1828e6[_0xb64e82([0x6f,0x66,0x66])]());});}))];return window[_0xb64e82([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb64e82([0x72,0x61,0x63,0x65])](_0x1bb68f)[_0xb64e82([0x74,0x68,0x65,0x6e])](()=>_0x2332e6);}async function _0x51a8c1(){await _0x250d6c,_0x51a4e9[_0xb64e82([0x6d,0x6f,0x64,0x65,0x6c])][_0xb64e82([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x48ee28,_0x51a4e9[_0xb64e82([0x6d,0x6f,0x64,0x65,0x6c])][_0xb64e82([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x48ee28,_0x51a4e9[_0xb64e82([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xb64e82([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x47e52a(_0x50d8a0){const _0x2d4abb=_0x20c7ba();_0x51a4e9[_0x2d4abb]=_0xb64e82([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x50d8a0,_0x50d8a0!=_0xb64e82([0x56,0x61,0x6c,0x69,0x64])&&_0x51a8c1();}function _0x20c7ba(){const _0x46f11d=window[_0xb64e82([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xb64e82([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xb64e82([0x6e,0x6f,0x77])]())[_0xb64e82([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xb64e82([0x2e]),'');let _0x2bbdb3=_0xb64e82([0x52]);for(let _0x17b43d=0x0;_0x17b43d<_0x46f11d[_0xb64e82([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17b43d+=0x2){let _0x29dad3=window[_0xb64e82([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x46f11d[_0xb64e82([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17b43d,_0x17b43d+0x2));_0x29dad3>=_0x2a6357[_0xb64e82([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x29dad3-=_0x2a6357[_0xb64e82([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2bbdb3+=_0x2a6357[_0x29dad3];}return _0x2bbdb3;}function _0x53a565(){const _0x3bf7e5=_0x5ecb3d[_0xb64e82([0x73,0x70,0x6c,0x69,0x74])](_0xb64e82([0x2e]));if(0x3!=_0x3bf7e5[_0xb64e82([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47cbb0(_0x3bf7e5[0x1]);function _0x47cbb0(_0x390155){const _0x382c72=_0x13d53d(_0x390155);return _0x382c72&&_0x4a72e3()?_0x382c72:null;function _0x4a72e3(){const _0xa48893=_0x382c72[_0xb64e82([0x6a,0x74,0x69])],_0x23197c=window[_0xb64e82([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa48893[_0xb64e82([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa48893[_0xb64e82([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4061ff={..._0x382c72,[_0xb64e82([0x6a,0x74,0x69])]:_0xa48893[_0xb64e82([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa48893[_0xb64e82([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4061ff[_0xb64e82([0x76,0x63])],_0x1f766b(_0x4061ff)==_0x23197c;}}}async function _0x1bd267(){let _0xabd881=!0x0;try{const _0x434967=_0x5ecb3d[_0xb64e82([0x73,0x70,0x6c,0x69,0x74])](_0xb64e82([0x2e])),[_0x39aa04,_0x59eed6,_0x254275]=_0x434967;return _0x5c2fac(_0x39aa04),await _0x24af25(_0x39aa04,_0x59eed6,_0x254275),_0xabd881;}catch{return!0x1;}function _0x5c2fac(_0x50d129){const _0x223f42=_0x13d53d(_0x50d129);_0x223f42&&_0x223f42[_0xb64e82([0x61,0x6c,0x67])]==_0xb64e82([0x45,0x53,0x32,0x35,0x36])||(_0xabd881=!0x1);}async function _0x24af25(_0x5b22fe,_0x515443,_0x4bb344){const _0x101ec4=window[_0xb64e82([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xb64e82([0x66,0x72,0x6f,0x6d])](_0x38f2ec(_0x4bb344),_0x1ca663=>_0x1ca663[_0xb64e82([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e6826=new window[(_0xb64e82([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xb64e82([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b22fe+_0xb64e82([0x2e])+_0x515443),_0x932b1a=window[_0xb64e82([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xb64e82([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x932b1a)return;const _0x6dc4b6=await _0x932b1a[_0xb64e82([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xb64e82([0x6a,0x77,0x6b]),_0xc9cb4c,{[_0xb64e82([0x6e,0x61,0x6d,0x65])]:_0xb64e82([0x45,0x43,0x44,0x53,0x41]),[_0xb64e82([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xb64e82([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xb64e82([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x932b1a[_0xb64e82([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xb64e82([0x6e,0x61,0x6d,0x65])]:_0xb64e82([0x45,0x43,0x44,0x53,0x41]),[_0xb64e82([0x68,0x61,0x73,0x68])]:{[_0xb64e82([0x6e,0x61,0x6d,0x65])]:_0xb64e82([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6dc4b6,_0x101ec4,_0x4e6826)||(_0xabd881=!0x1);}}function _0x13d53d(_0x45af91){return _0x45af91[_0xb64e82([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xb64e82([0x65,0x79]))?JSON[_0xb64e82([0x70,0x61,0x72,0x73,0x65])](_0x38f2ec(_0x45af91)):null;}function _0x38f2ec(_0xd8ff48){return window[_0xb64e82([0x61,0x74,0x6f,0x62])](_0xd8ff48[_0xb64e82([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xb64e82([0x2b]))[_0xb64e82([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xb64e82([0x2f])));}function _0x1f766b(_0x4b2ac4){let _0x119bd1=0x1505;function _0x114eac(_0x25a1af){for(let _0x495569=0x0;_0x495569<_0x25a1af[_0xb64e82([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x495569++){const _0x40aff9=_0x25a1af[_0xb64e82([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x495569);_0x119bd1=(_0x119bd1<<0x5)+_0x119bd1+_0x40aff9,_0x119bd1&=_0x119bd1;}}function _0x580b22(_0x57395e){Array[_0xb64e82([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x57395e)?_0x57395e[_0xb64e82([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x580b22):_0x57395e&&typeof _0x57395e==_0xb64e82([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xb64e82([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x57395e)[_0xb64e82([0x73,0x6f,0x72,0x74])]()[_0xb64e82([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x336b25,_0x2be076])=>{_0x114eac(_0x336b25),_0x580b22(_0x2be076);}):_0x114eac(window[_0xb64e82([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x57395e));}return _0x580b22(_0x4b2ac4),_0x119bd1>>>0x0;}function _0x6143aa(_0x3383c8){return _0x3383c8[_0xb64e82([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xb64e82([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xb64e82([0x30]));}function _0x19ac06(_0x1bb3af){return _0x1bb3af[_0xb64e82([0x73,0x70,0x6c,0x69,0x74])]('')[_0xb64e82([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xb64e82([0x6a,0x6f,0x69,0x6e])]('');}function _0x48ee28(){}function _0xb64e82(_0x22b106){const _0x1da9c7=_0x191d;return _0x22b106[_0x1da9c7(0x141)](_0x8260af=>String[_0x1da9c7(0x174)](_0x8260af))[_0x1da9c7(0x143)]('');}_0x47e52a(await _0x317738());}(this);}[_0x4a9e2f(0x151)](){const _0x556c17=_0x4a9e2f,_0x27883e=this[_0x556c17(0x150)][_0x556c17(0x158)][_0x556c17(0x137)];_0x27883e[_0x556c17(0x135)](_0x556c17(0x128))&&_0x27883e[_0x556c17(0x12a)](_0x556c17(0x128),{'allowAttributes':[_0x556c17(0x124)]}),_0x27883e[_0x556c17(0x135)](_0x556c17(0x126))&&_0x27883e[_0x556c17(0x12a)](_0x556c17(0x126),{'allowAttributes':[_0x556c17(0x124)]});}[_0x4a9e2f(0x125)](){const _0x40c58e=_0x4a9e2f,_0x3d2417=this[_0x40c58e(0x150)];_0x3d2417[_0x40c58e(0x16f)][_0x40c58e(0x15c)](_0x40c58e(0x136))[_0x40c58e(0x153)]({'model':_0x40c58e(0x124),'view':_0x40c58e(0x134)}),_0x3d2417[_0x40c58e(0x16f)][_0x40c58e(0x15c)](_0x40c58e(0x16e))[_0x40c58e(0x152)]({'model':{'key':_0x40c58e(0x124),'value':_0x4c50f0=>_0x4c50f0[_0x40c58e(0x167)](_0x40c58e(0x134))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x58583f=_0x3d2417[_0x40c58e(0x130)][_0x40c58e(0x146)](_0x40c58e(0x13e));_0x58583f&&this[_0x40c58e(0x175)](_0x58583f,_0x40c58e(0x122),(_0x51bd87,[_0x26002c,_0x27f521])=>{const _0x3e2b2e=_0x40c58e;_0x26002c[_0x3e2b2e(0x13a)](_0x3e2b2e(0x124),_0x27f521);});}[_0x4a9e2f(0x129)](){const _0x2101f2=_0x4a9e2f,_0x1e9ff8=this[_0x2101f2(0x150)][_0x2101f2(0x132)][_0x2101f2(0x146)](_0x2101f2(0x16c))||{},_0x3eb691=this[_0x2101f2(0x150)][_0x2101f2(0x132)][_0x2101f2(0x146)](_0x2101f2(0x157))||'';this[_0x2101f2(0x156)]=_0x521cf5(_0x844ac9[_0x2101f2(0x127)],_0x2101f2(0x160),{..._0x1e9ff8,'pubkey':_0x3eb691,'ctx-name':_0x2101f2(0x15e)+this[_0x2101f2(0x13c)],'sourceList':'','imgOnly':_0x2101f2(0x173),'removeCopyright':_0x2101f2(0x173),'localeName':this[_0x2101f2(0x150)][_0x2101f2(0x14d)][_0x2101f2(0x123)],'externalSourcesEmbedCss':_0x2101f2(0x144)}),this[_0x2101f2(0x156)][_0x2101f2(0x169)]=_0x4fb719=>{const _0x3def3e=_0x2101f2;if(_0x3def3e(0x14e)==_0x4fb719)return _0x3def3e(0x168);},_0x844ac9[_0x2101f2(0x127)][_0x2101f2(0x16b)][_0x2101f2(0x14f)](this[_0x2101f2(0x156)]);}[_0x4a9e2f(0x162)](){const _0xf1d707=_0x4a9e2f;this[_0xf1d707(0x16a)]=_0x521cf5(_0x844ac9[_0xf1d707(0x127)],_0xf1d707(0x12f),{'ctx-name':_0xf1d707(0x15e)+this[_0xf1d707(0x13c)]}),_0x844ac9[_0xf1d707(0x127)][_0xf1d707(0x16b)][_0xf1d707(0x14f)](this[_0xf1d707(0x16a)]);}[_0x4a9e2f(0x133)](){const _0x12f850=_0x4a9e2f,_0x572bd6=this[_0x12f850(0x150)][_0x12f850(0x130)][_0x12f850(0x146)](_0x12f850(0x138));_0x572bd6&&this[_0x12f850(0x175)](_0x572bd6,_0x12f850(0x161),()=>{const _0x2f0012=_0x12f850,_0x1758ed=this[_0x2f0012(0x150)][_0x2f0012(0x158)][_0x2f0012(0x127)][_0x2f0012(0x145)][_0x2f0012(0x163)]();_0x1758ed&&_0x1758ed[_0x2f0012(0x167)](_0x2f0012(0x124))&&this[_0x2f0012(0x150)][_0x2f0012(0x12d)][_0x2f0012(0x15d)][_0x2f0012(0x12b)](_0x2f0012(0x149),()=>{const _0x1ba3af=_0x2f0012;_0xe079b4(this[_0x1ba3af(0x150)],_0x1758ed);});});const _0x3a150a=this[_0x12f850(0x150)][_0x12f850(0x130)][_0x12f850(0x146)](_0x12f850(0x171));_0x3a150a&&this[_0x12f850(0x175)](_0x3a150a,_0x12f850(0x161),()=>{const _0x15fa4d=_0x12f850,_0x1990d0=this[_0x15fa4d(0x150)][_0x15fa4d(0x158)][_0x15fa4d(0x127)][_0x15fa4d(0x145)][_0x15fa4d(0x163)]();_0x1990d0&&_0x1990d0[_0x15fa4d(0x167)](_0x15fa4d(0x124))&&this[_0x15fa4d(0x150)][_0x15fa4d(0x12d)][_0x15fa4d(0x15d)][_0x15fa4d(0x12b)](_0x15fa4d(0x149),()=>{const _0x48f3ef=_0x15fa4d;_0xe079b4(this[_0x48f3ef(0x150)],_0x1990d0);});});}}
|