@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251019.0 → 0.0.0-nightly-20251021.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x57fbe8,Command as _0x548c28}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x467635,IconGooglePhotos as _0xa52fd2,IconGoogleDrive as _0x14caca,IconFacebook as _0x5ad33c,IconDropbox as _0x19860f,IconUploadcareLink as _0x2d3591,IconUploadcareImageUpload as _0x500d6d,IconError as _0x3ea7a4,IconUploadcareImageEdit as _0x433f0e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x481b99,MenuBarMenuListItemButtonView as _0x13dd42,View as _0x1a6940,FocusCycler as _0x3e1ba9,Dialog as _0x3c85e5,DialogViewPosition as _0x12577b,SpinnerView as _0x437864,IconView as _0x3924ec,Notification as _0xa21cf6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x23e284,DomEmitterMixin as _0x5a0c69,global as _0x3d29e5,getAncestors as _0x2db35b,ObservableMixin as _0x4a714,uid as _0x4f6e7f,createElement as _0x4cf48b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3fde5e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x55c785,info as _0x1c02cf}from'@uploadcare/upload-client';import*as _0x326106 from'@uploadcare/file-uploader';var i=function(_0x4a1c40){return _0x4a1c40['Local']='local',_0x4a1c40['URL']='url',_0x4a1c40['Dropbox']='dropbox',_0x4a1c40['GDrive']='gdrive',_0x4a1c40['Facebook']='facebook',_0x4a1c40['GPhotos']='gphotos',_0x4a1c40['OneDrive']='onedrive',_0x4a1c40;}({});function _(_0x125a3f,_0x33ab7b,_0x304e2a){const t=_0x125a3f['t'],_0x1c6014=_0x125a3f['t'];switch(_0x33ab7b){case i['Local']:return{'text':_0x1c6014('Insert'===_0x304e2a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1c6014('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x304e2a?_0x1c6014('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1c6014('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x304e2a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x304e2a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x304e2a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x304e2a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x304e2a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x33ab7b;}}class e extends _0x57fbe8{['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 _0xd0eb9d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x504c2d;for(const _0x2bd7ac in _0xd0eb9d){const _0x101f26=_0x2bd7ac,_0x4e7c05=_0xd0eb9d[_0x101f26];if('uploadcareLicenseKeyValid'==_0x4e7c05||'uploadcareLicenseKeyInvalid'==_0x4e7c05||'uploadcareLicenseKeyExpired'==_0x4e7c05||'uploadcareLicenseKeyDomainLimit'==_0x4e7c05||'uploadcareLicenseKeyNotAllowed'==_0x4e7c05||'uploadcareLicenseKeyEvaluationLimit'==_0x4e7c05||'uploadcareLicenseKeyTrialLimit'==_0x4e7c05||'uploadcareLicenseKeyUsageLimit'==_0x4e7c05){delete _0xd0eb9d[_0x101f26],_0x504c2d=_0x4e7c05,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x504c2d&&_0xd0eb9d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x504c2d&&_0xd0eb9d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x504c2d&&_0xd0eb9d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x504c2d&&_0xd0eb9d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x504c2d&&_0xd0eb9d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x504c2d&&_0xd0eb9d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x504c2d&&_0xd0eb9d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2dfb89}=this,_0x4ca22d=_0x2dfb89['commands']['get']('uploadcare');if(!_0x4ca22d)return;const _0x24066b=this['_normalizeConfigSourceList'](_0x2dfb89['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x385ffa,_0xe490f0)=>{const _0x593d53=this['_getIntegrationKey'](_0xe490f0['type']);return _0x385ffa[_0x593d53]||(_0x385ffa[_0x593d53]=[]),_0x385ffa[_0x593d53]['push'](_0xe490f0),_0x385ffa;},{});_0x2dfb89['plugins']['has']('ImageInsertUI')&&_0x2dfb89['commands']['get']('uploadcare')&&Object['entries'](_0x24066b)['forEach'](([_0x16f286,_0x4c2ac6])=>{_0x2dfb89['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x16f286,'observable':()=>_0x4ca22d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4c2ac6),'formViewCreator':()=>this['_createDropdownButtons'](_0x4c2ac6),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4c2ac6),'override':'assetManager'!==_0x16f286});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x9fa9cd){const {locale:_0x40c250}=this['editor'];return _0x9fa9cd['map'](_0x11bbf9=>{const _0x2fc51d=_(_0x40c250,_0x11bbf9,'Insert');switch(_0x11bbf9){case i['Local']:return{'icon':_0x500d6d,'type':i['Local'],..._0x2fc51d};case i['URL']:return{'icon':_0x2d3591,'type':i['URL'],..._0x2fc51d};case i['Dropbox']:return{'icon':_0x19860f,'type':i['Dropbox'],..._0x2fc51d};case i['Facebook']:return{'icon':_0x5ad33c,'type':i['Facebook'],..._0x2fc51d};case i['GDrive']:return{'icon':_0x14caca,'type':i['GDrive'],..._0x2fc51d};case i['GPhotos']:return{'icon':_0xa52fd2,'type':i['GPhotos'],..._0x2fc51d};case i['OneDrive']:return{'icon':_0x467635,'type':i['OneDrive'],..._0x2fc51d};}});}['_getIntegrationKey'](_0x20ac47){switch(_0x20ac47){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4e4e40,_0x59d368){const _0x11a67e=this['editor'],_0x109cd3=new _0x4e4e40(_0x11a67e['locale']),_0x5b7291=_0x11a67e['commands']['get']('uploadcare');return _0x109cd3['bind']('isEnabled')['to'](_0x5b7291),_0x109cd3['on']('execute',()=>{_0x5b7291['execute'](_0x59d368);}),_0x109cd3;}['_createToolbarButton'](_0x37d845){const {locale:_0x1b4e47}=this['editor'],_0x54e260=this['editor']['plugins']['get']('ImageInsertUI'),_0x508c99=_0x37d845[0x0],_0x547a1a=this['_createButton'](_0x481b99,_0x508c99['type']);return _0x547a1a['icon']=_0x508c99['icon'],_0x547a1a['bind']('label')['to'](_0x54e260,'isImageSelected',_0x3f48fa=>_(_0x1b4e47,_0x508c99['type'],_0x3f48fa?'Replace':'Insert')['text']),_0x547a1a['tooltip']=!0x0,_0x547a1a;}['_createDropdownButtons'](_0x5eaf8f){const {locale:_0x47bac4}=this['editor'],_0x4739c5=this['editor']['plugins']['get']('ImageInsertUI');return _0x5eaf8f['map'](_0x38d0a1=>{const _0x1fbbc7=this['_createButton'](_0x481b99,_0x38d0a1['type']);return _0x1fbbc7['withText']=!0x0,_0x1fbbc7['icon']=_0x38d0a1['icon'],_0x1fbbc7['bind']('label')['to'](_0x4739c5,'isImageSelected',_0x1a9ef3=>_(_0x47bac4,_0x38d0a1['type'],_0x1a9ef3?'Replace':'Insert')['text']),_0x1fbbc7;});}['_createMenuBarButtons'](_0x4c357a){return _0x4c357a['map'](_0x5ef149=>{const _0x4c2b26=this['_createButton'](_0x13dd42,_0x5ef149['type']);return _0x4c2b26['icon']=_0x5ef149['icon'],_0x4c2b26['label']=_0x5ef149['shortText'],_0x4c2b26;});}}class F extends _0x1a6940{['focusTracker'];['focusCycler'];constructor(_0x597c41){super(_0x597c41),this['focusTracker']=new _0x23e284(),this['focusCycler']=new _0x3e1ba9({'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(_0x8d0c21,_0x932cc3){super(_0x8d0c21),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-'+_0x932cc3}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x2065b4,_0x11fc9f){const _0x57a9ba=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4f6055=>_0x4f6055<=_0x11fc9f)['map'](_0x529eb9=>_0x2065b4['replace'](/\/$/,'')+'/-/resize/'+_0x529eb9+'x/\x20'+_0x529eb9+'w');return{'imageFallbackUrl':_0x2065b4,'imageSources':[{'srcset':_0x57a9ba['join'](',\x20'),'sizes':'(max-width:\x20'+_0x11fc9f+'px)\x20100vw,\x20'+_0x11fc9f+'px','type':'image/webp'}]};}function S(_0x18e794,_0xd87c7d,_0x2d4b33){const _0x4b1bf4=_0x18e794['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4b1bf4?parseInt(_0x4b1bf4[0x1],0xa):_0xd87c7d,'height':_0x4b1bf4?parseInt(_0x4b1bf4[0x2],0xa):_0x2d4b33};}function p(_0x166126,_0x469240){const _0x49b08b=new(_0x5a0c69())(),_0x354f50=_0x166126['plugins']['get']('ImageUtils'),_0x313440=_0x166126['editing']['mapper']['toViewElement'](_0x469240),_0x21c96f=_0x354f50['findViewImgElement'](_0x313440),_0x2926b4=_0x166126['editing']['view']['domConverter']['viewToDom'](_0x21c96f),_0x2ed907=_0x469240['getAttribute']('width'),_0x165bd8=_0x469240['getAttribute']('height'),_0x2ab35f='image-processing';_0x166126['editing']['view']['change'](_0xd42c36=>{_0xd42c36['addClass'](_0x2ab35f,_0x313440),_0xd42c36['setStyle']('aspect-ratio',_0x2ed907+'/'+_0x165bd8,_0x21c96f);}),_0x49b08b['listenTo'](_0x2926b4,'load',()=>{_0x49b08b['stopListening'](_0x2926b4,'load'),_0x166126['editing']['view']['change'](_0x5110a2=>{_0x5110a2['removeClass'](_0x2ab35f,_0x313440),_0x5110a2['removeStyle']('aspect-ratio',_0x21c96f);});});}function G(_0x4e9c22){if(Array['isArray'](_0x4e9c22)){const _0x514e4c=_0x4e9c22['map'](G);return _0x5e4f8c=>_0x514e4c['some'](_0x21c768=>_0x21c768(_0x5e4f8c));}if('origin'==_0x4e9c22){const _0xfef627=_0x3d29e5['window']['location']['origin'];return _0xce64dc=>new URL(_0xce64dc,_0x3d29e5['document']['baseURI'])['origin']==_0xfef627;}return'function'==typeof _0x4e9c22?_0x4e9c22:_0x4e9c22 instanceof RegExp?_0x33ed64=>!(!_0x33ed64['match'](_0x4e9c22)&&!_0x33ed64['replace'](/^https?:\/\//,'')['match'](_0x4e9c22)):()=>!0x1;}function A(_0x28678e,_0x5754ee){return _0x2db35b(_0x28678e['target'])['includes'](_0x5754ee);}class n extends/* #__PURE__ -- @preserve */
24
- _0x4a714(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5dc744,_0x5021b1,_0x4b5bf0){super(),this['_editor']=_0x5dc744,this['_editing']=_0x5021b1,this['_dialog']=_0x5dc744['plugins']['get'](_0x3c85e5),this['_api']=_0x5021b1['ctxElement']['getAPI'](),this['_type']=_0x4b5bf0,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:_0x3809a3,model:_0xe15025}=this['_editor'],_0x5cdfc4=_0xe15025['document']['selection']['getSelectedElement'](),_0x7016a7=_0x5cdfc4&&(_0x5cdfc4['is']('element','imageBlock')||_0x5cdfc4['is']('element','imageInline'));this['_formView']=new x(_0x3809a3,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x500d6d,'title':_(_0x3809a3,this['_type'],_0x7016a7?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x12577b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1118db=>!A(_0x1118db,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x226c93}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3ddb02=>{const _0x2bb30f=_0x226c93['length'];for(const _0x5c69f5 of _0x226c93){const _0x3a6bce=_0x5c69f5===_0x226c93[_0x2bb30f-0x1],{cdnUrl:_0xc8349d,fileInfo:_0x6475e7}=_0x5c69f5;if(!_0xc8349d||!_0x6475e7)continue;const {width:_0x4bdd97,height:_0x37e42e}=_0x6475e7['imageInfo'],_0x3a5548=S(_0xc8349d,_0x4bdd97,_0x37e42e),_0x240ef2=C(_0xc8349d,_0x3a5548['width']),_0x54905b={'id':_0x6475e7['uuid'],'type':'image','attributes':{'imageDimension':_0x3a5548,..._0x240ef2}};this['_insertAsset'](_0x54905b,_0x3a6bce,_0x3ddb02);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xfd23d5=>{'idle'===_0xfd23d5['detail']['status']&&!_0xfd23d5['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5607e6,_0x40d664,_0x1b8e66){const _0x5490b3=this['_editor']['model']['document']['selection'],_0x3e7ae1=_0x5490b3['getSelectedElement'](),_0x572ade=!(!_0x3e7ae1||!_0x3e7ae1['is']('element','imageInline'));_0x1b8e66['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5607e6,_0x572ade),_0x40d664||_0x1b8e66['setSelection'](_0x5490b3['getLastPosition']());}['_insertImage'](_0x40988b,_0x4ba599){const _0x393aac=this['_editor'],{imageDimension:_0x1be42f,imageFallbackUrl:_0x454cdc,imageSources:_0x68331f}=_0x40988b['attributes'];_0x393aac['execute']('insertImage',{'imageType':_0x4ba599?'imageInline':null,'source':{'uploadcareImageId':_0x40988b['id'],'src':_0x454cdc,'sources':_0x68331f,..._0x1be42f}});}}class w extends _0x548c28{['_editing'];['_controller']=null;static get['requires'](){return[_0x3c85e5,o];}constructor(_0x98dfb7){super(_0x98dfb7),this['_editing']=_0x98dfb7['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2b005e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x2b005e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xd64b91,..._0x5bb8af}){return _0x55c785(_0xd64b91,_0x5bb8af);}static['getInfo'](_0x2fdfa3,_0x52be6c){return _0x1c02cf(_0x2fdfa3,_0x52be6c);}}class f extends _0x57fbe8{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3fde5e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x80d338=this['editor'];if(!!!_0x80d338['config']['get']('uploadcare'))return;_0x80d338['plugins']['get'](_0x3fde5e)['createUploadAdapter']=_0x422f47=>new k(_0x422f47,_0x80d338),_0x80d338['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x587410,{imageElement:_0x3b0907,data:_0x5eb7f8})=>{_0x80d338['model']['change'](_0x1b18b2=>{_0x1b18b2['setAttribute']('uploadcareImageId',_0x5eb7f8['uploadcareImageId'],_0x3b0907);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2c5d33,_0x37a4d1){this['loader']=_0x2c5d33,this['editor']=_0x37a4d1,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xf13170=await this['loader']['file'];return j['upload']({'file':_0xf13170,'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':_0x96f52e=>{_0x96f52e&&_0x96f52e['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x96f52e['value']);}})['then'](async _0x3c6667=>{const {imageFallbackUrl:_0x294004,imageSources:_0x4403ba}=C(_0x3c6667['cdnUrl'],_0x3c6667['imageInfo']['width']);return{'uploadcareImageId':_0x3c6667['uuid'],'default':_0x294004,'sources':_0x4403ba};})['catch'](()=>{const _0x56af4d=t('Cannot\x20upload\x20file:')+('\x20'+_0xf13170['name']+'.');return Promise['reject'](_0x56af4d);});}['abort'](){this['controller']['abort']();}}class o extends _0x57fbe8{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x3c85e5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x17cf47){super(_0x17cf47),this['ucContextId']=_0x4f6e7f();}['init'](){const _0x37b6ce=this['editor'];_0x37b6ce['commands']['add']('uploadcare',new w(_0x37b6ce));}['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 _0x3ae32a=_0x3d29e5['document']['querySelector']('input[uploadcare-file-input]');_0x3ae32a&&_0x3ae32a['remove']();}),async function(_0x2d28c7){const _0x51d6f2=_0x2ac352([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1a9d7c=0x535f8c3a,_0x4992e0=0x5358fa9a^_0x1a9d7c,_0x130cf2=window[_0x2ac352([0x44,0x61,0x74,0x65])][_0x2ac352([0x6e,0x6f,0x77])](),_0x4d98ad=_0x2d28c7[_0x2ac352([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x263d99=new window[(_0x2ac352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b3587=>{_0x4d98ad[_0x2ac352([0x6f,0x6e,0x63,0x65])](_0x2ac352([0x72,0x65,0x61,0x64,0x79]),_0x3b3587);}),_0x1f79f3={[_0x2ac352([0x6b,0x74,0x79])]:_0x2ac352([0x45,0x43]),[_0x2ac352([0x75,0x73,0x65])]:_0x2ac352([0x73,0x69,0x67]),[_0x2ac352([0x63,0x72,0x76])]:_0x2ac352([0x50,0x2d,0x32,0x35,0x36]),[_0x2ac352([0x78])]:_0x2ac352([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]),[_0x2ac352([0x79])]:_0x2ac352([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]),[_0x2ac352([0x61,0x6c,0x67])]:_0x2ac352([0x45,0x53,0x32,0x35,0x36])},_0x554307=_0x4d98ad[_0x2ac352([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2ac352([0x67,0x65,0x74])](_0x2ac352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40624f(){let _0xceccb0,_0x11c1aa=null,_0x3bb01c=null;try{if(_0x554307==_0x2ac352([0x47,0x50,0x4c]))return _0x2ac352([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xceccb0=_0xc7c182(),!_0xceccb0)return _0x2ac352([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xceccb0[_0x2ac352([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3bb01c=_0x1435f9(_0xceccb0[_0x2ac352([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xceccb0[_0x2ac352([0x6a,0x74,0x69])])),await _0x36a5d4()?_0x34c49d()?_0x198cbc()?_0x2ac352([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29980d()?(_0xceccb0[_0x2ac352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ac352([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11c1aa=_0x4e4d38(_0x2ac352([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xceccb0[_0x2ac352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ac352([0x74,0x72,0x69,0x61,0x6c])&&(_0x11c1aa=_0x4e4d38(_0x2ac352([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e57a2()):_0x2ac352([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2ac352([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2ac352([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2ac352([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x198cbc(){const _0x17774a=[_0x2ac352([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2ac352([0x74,0x72,0x69,0x61,0x6c])][_0x2ac352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xceccb0[_0x2ac352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x130cf2/0x3e8:0xe10*_0x4992e0;return _0xceccb0[_0x2ac352([0x65,0x78,0x70])]<_0x17774a;}function _0x34c49d(){const _0x555256=_0xceccb0[_0x2ac352([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x555256&&(!!_0x555256[_0x2ac352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ac352([0x2a]))||!!_0x555256[_0x2ac352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ac352([0x55,0x50,0x4c,0x43])));}function _0x29980d(){const _0x495b5a=_0xceccb0[_0x2ac352([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x495b5a||0x0==_0x495b5a[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ce5c5}=new URL(window[_0x2ac352([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x495b5a[_0x2ac352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ce5c5))return!0x0;const _0x1129f6=_0x4ce5c5[_0x2ac352([0x73,0x70,0x6c,0x69,0x74])](_0x2ac352([0x2e]));return _0x495b5a[_0x2ac352([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1b8cfd=>_0x1b8cfd[_0x2ac352([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ac352([0x2a])))[_0x2ac352([0x6d,0x61,0x70])](_0x42959e=>_0x42959e[_0x2ac352([0x73,0x70,0x6c,0x69,0x74])](_0x2ac352([0x2e])))[_0x2ac352([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x395598=>_0x395598[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1129f6[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ac352([0x6d,0x61,0x70])](_0x9b59c9=>Array(_0x1129f6[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x9b59c9[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ac352([0x66,0x69,0x6c,0x6c])](_0x9b59c9[0x0]===_0x2ac352([0x2a])?_0x2ac352([0x2a]):'')[_0x2ac352([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x9b59c9))[_0x2ac352([0x73,0x6f,0x6d,0x65])](_0x42a4ec=>_0x1129f6[_0x2ac352([0x65,0x76,0x65,0x72,0x79])]((_0x434dd9,_0x261e9f)=>_0x42a4ec[_0x261e9f]===_0x434dd9||_0x42a4ec[_0x261e9f]===_0x2ac352([0x2a])));}function _0x2e57a2(){return _0x11c1aa&&_0x3bb01c?new window[(_0x2ac352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x535ffd,_0xae77c1)=>{_0x11c1aa[_0x2ac352([0x74,0x68,0x65,0x6e])](_0x535ffd,_0xae77c1),_0x3bb01c[_0x2ac352([0x74,0x68,0x65,0x6e])](_0x2ed6c5=>{_0x2ed6c5!=_0x2ac352([0x56,0x61,0x6c,0x69,0x64])&&_0x535ffd(_0x2ed6c5);},_0xae77c1);}):_0x11c1aa||_0x3bb01c||_0x2ac352([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1435f9(_0x488085,_0x3715f4){return new window[(_0x2ac352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a8bbf=>{if(_0x5e1083())return _0x1a8bbf(_0x2ac352([0x56,0x61,0x6c,0x69,0x64]));_0x117d4b(),_0x4d98ad[_0x2ac352([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2ac352([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x68f8e9=!0x1;const _0x24e108=_0x4f6e7f();function _0x224865(_0x46c35c){return!!_0x46c35c&&(typeof _0x46c35c===_0x2ac352([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46c35c===_0x2ac352([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46c35c[_0x2ac352([0x74,0x68,0x65,0x6e])]===_0x2ac352([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46c35c[_0x2ac352([0x63,0x61,0x74,0x63,0x68])]===_0x2ac352([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xdc97eb(_0x295645){_0x388573(_0x295645)[_0x2ac352([0x74,0x68,0x65,0x6e])](_0x414e60=>{if(!_0x414e60||_0x414e60[_0x2ac352([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2ac352([0x6f,0x6b]))return _0x2ac352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x126850(_0x4f4e62(_0x24e108+_0x3715f4))!=_0x414e60[_0x2ac352([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2ac352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2ac352([0x56,0x61,0x6c,0x69,0x64]);})[_0x2ac352([0x74,0x68,0x65,0x6e])](_0x114ddf=>(_0x52961c(),_0x114ddf),()=>{const _0x3a630a=_0x48a409();return null==_0x3a630a?(_0x52961c(),_0x2ac352([0x56,0x61,0x6c,0x69,0x64])):_0x2ac352(_0x130cf2-_0x3a630a>(0x7753083a^_0x1a9d7c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2ac352([0x74,0x68,0x65,0x6e])](_0x1a8bbf)[_0x2ac352([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1a8bbf(_0x2ac352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x30ca72=0x536962ba^_0x1a9d7c;function _0x52961c(){const _0x4cf097=_0x2ac352([0x6c,0x6c,0x63,0x74,0x2d])+_0x126850(_0x4f4e62(_0x488085)),_0x1c3167=_0xf63c1d(_0x126850(window[_0x2ac352([0x4d,0x61,0x74,0x68])][_0x2ac352([0x63,0x65,0x69,0x6c])](_0x130cf2/_0x30ca72)));window[_0x2ac352([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ac352([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4cf097,_0x1c3167);}function _0x48a409(){const _0x1132ca=_0x2ac352([0x6c,0x6c,0x63,0x74,0x2d])+_0x126850(_0x4f4e62(_0x488085)),_0x1ba288=window[_0x2ac352([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ac352([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1132ca);return _0x1ba288?window[_0x2ac352([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf63c1d(_0x1ba288),0x10)*_0x30ca72:null;}function _0x388573(_0x52cfd4){return new window[(_0x2ac352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52e2fc,_0x141c50)=>{_0x52cfd4[_0x2ac352([0x74,0x68,0x65,0x6e])](_0x52e2fc,_0x141c50),window[_0x2ac352([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x141c50,0x535e58fa^_0x1a9d7c);});}}_0x4d98ad[_0x2ac352([0x6f,0x6e])](_0x2ac352([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x33be18,_0x525036)=>{if(_0x525036[0x0]!=_0x488085)return _0x1a8bbf(_0x2ac352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x525036[0x1]={..._0x525036[0x1],[_0x2ac352([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x24e108};},{[_0x2ac352([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ac352([0x68,0x69,0x67,0x68])}),_0x4d98ad[_0x2ac352([0x6f,0x6e])](_0x2ac352([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x266948=>{_0x224865(_0x266948[_0x2ac352([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x68f8e9=!0x0,_0xdc97eb(_0x266948[_0x2ac352([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2ac352([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ac352([0x6c,0x6f,0x77])}),_0x263d99[_0x2ac352([0x74,0x68,0x65,0x6e])](()=>{_0x68f8e9||_0x1a8bbf(_0x2ac352([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e1083(){return _0x4d98ad[_0x2ac352([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ac352([0x76,0x69,0x65,0x77])][_0x2ac352([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2ac352([0x61,0x75,0x74,0x6f]);}function _0x117d4b(){_0x4d98ad[_0x2ac352([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ac352([0x76,0x69,0x65,0x77])][_0x2ac352([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ac352([0x61,0x75,0x74,0x6f]);}}function _0x4e4d38(_0xf77ae9){const _0x756e91=[new window[(_0x2ac352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x72157a=>setTimeout(_0x72157a,0x5356b2f6^_0x1a9d7c)),_0x263d99[_0x2ac352([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2ac352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b6d3c=>{let _0x325848=0x0;_0x4d98ad[_0x2ac352([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ac352([0x6f,0x6e])](_0x2ac352([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c2cf2,_0x43dc87)=>{_0x43dc87[0x0][_0x2ac352([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x325848++,_0x325848==(0x535f8dc2^_0x1a9d7c)&&(_0x3b6d3c(),_0x2c2cf2[_0x2ac352([0x6f,0x66,0x66])]());});}))];return window[_0x2ac352([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ac352([0x72,0x61,0x63,0x65])](_0x756e91)[_0x2ac352([0x74,0x68,0x65,0x6e])](()=>_0xf77ae9);}async function _0x4c6dc2(){await _0x263d99,_0x4d98ad[_0x2ac352([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ac352([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x16489a,_0x4d98ad[_0x2ac352([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ac352([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x16489a,_0x4d98ad[_0x2ac352([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2ac352([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x567649(_0x236c2f){const _0x2addcb=_0x3bff2c();_0x4d98ad[_0x2addcb]=_0x2ac352([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x236c2f,_0x236c2f!=_0x2ac352([0x56,0x61,0x6c,0x69,0x64])&&_0x4c6dc2();}function _0x3bff2c(){const _0x378e87=window[_0x2ac352([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2ac352([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2ac352([0x6e,0x6f,0x77])]())[_0x2ac352([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2ac352([0x2e]),'');let _0x2ae853=_0x2ac352([0x68]);for(let _0x1a690d=0x0;_0x1a690d<_0x378e87[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a690d+=0x2){let _0x3a2a35=window[_0x2ac352([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x378e87[_0x2ac352([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a690d,_0x1a690d+0x2));_0x3a2a35>=_0x51d6f2[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3a2a35-=_0x51d6f2[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2ae853+=_0x51d6f2[_0x3a2a35];}return _0x2ae853;}function _0xc7c182(){const _0x46639e=_0x554307[_0x2ac352([0x73,0x70,0x6c,0x69,0x74])](_0x2ac352([0x2e]));if(0x3!=_0x46639e[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x517da8(_0x46639e[0x1]);function _0x517da8(_0x57b735){const _0x2addad=_0x129c57(_0x57b735);return _0x2addad&&_0xe801f4()?_0x2addad:null;function _0xe801f4(){const _0xc1f375=_0x2addad[_0x2ac352([0x6a,0x74,0x69])],_0x2cf88f=window[_0x2ac352([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc1f375[_0x2ac352([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc1f375[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5a219d={..._0x2addad,[_0x2ac352([0x6a,0x74,0x69])]:_0xc1f375[_0x2ac352([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc1f375[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5a219d[_0x2ac352([0x76,0x63])],_0x4f4e62(_0x5a219d)==_0x2cf88f;}}}async function _0x36a5d4(){let _0x4a4eaa=!0x0;try{const _0x23ee81=_0x554307[_0x2ac352([0x73,0x70,0x6c,0x69,0x74])](_0x2ac352([0x2e])),[_0x575745,_0x48f5bd,_0x5dbe64]=_0x23ee81;return _0x242256(_0x575745),await _0x1fd360(_0x575745,_0x48f5bd,_0x5dbe64),_0x4a4eaa;}catch{return!0x1;}function _0x242256(_0x2e7ff1){const _0x1f6359=_0x129c57(_0x2e7ff1);_0x1f6359&&_0x1f6359[_0x2ac352([0x61,0x6c,0x67])]==_0x2ac352([0x45,0x53,0x32,0x35,0x36])||(_0x4a4eaa=!0x1);}async function _0x1fd360(_0x237b15,_0x4abfb0,_0x37d23f){const _0xb137c3=window[_0x2ac352([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2ac352([0x66,0x72,0x6f,0x6d])](_0x3639cc(_0x37d23f),_0x2079e2=>_0x2079e2[_0x2ac352([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57f176=new window[(_0x2ac352([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2ac352([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x237b15+_0x2ac352([0x2e])+_0x4abfb0),_0x23f607=window[_0x2ac352([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2ac352([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23f607)return;const _0x8b561e=await _0x23f607[_0x2ac352([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2ac352([0x6a,0x77,0x6b]),_0x1f79f3,{[_0x2ac352([0x6e,0x61,0x6d,0x65])]:_0x2ac352([0x45,0x43,0x44,0x53,0x41]),[_0x2ac352([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2ac352([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2ac352([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23f607[_0x2ac352([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2ac352([0x6e,0x61,0x6d,0x65])]:_0x2ac352([0x45,0x43,0x44,0x53,0x41]),[_0x2ac352([0x68,0x61,0x73,0x68])]:{[_0x2ac352([0x6e,0x61,0x6d,0x65])]:_0x2ac352([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x8b561e,_0xb137c3,_0x57f176)||(_0x4a4eaa=!0x1);}}function _0x129c57(_0xd05830){return _0xd05830[_0x2ac352([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2ac352([0x65,0x79]))?JSON[_0x2ac352([0x70,0x61,0x72,0x73,0x65])](_0x3639cc(_0xd05830)):null;}function _0x3639cc(_0x44a73f){return window[_0x2ac352([0x61,0x74,0x6f,0x62])](_0x44a73f[_0x2ac352([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2ac352([0x2b]))[_0x2ac352([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2ac352([0x2f])));}function _0x4f4e62(_0x2ebc84){let _0x2d3115=0x1505;function _0x2484ac(_0x2aea50){for(let _0x3a99f8=0x0;_0x3a99f8<_0x2aea50[_0x2ac352([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a99f8++){const _0x5ee7df=_0x2aea50[_0x2ac352([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a99f8);_0x2d3115=(_0x2d3115<<0x5)+_0x2d3115+_0x5ee7df,_0x2d3115&=_0x2d3115;}}function _0x29f35e(_0x1ee506){Array[_0x2ac352([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ee506)?_0x1ee506[_0x2ac352([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x29f35e):_0x1ee506&&typeof _0x1ee506==_0x2ac352([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2ac352([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ee506)[_0x2ac352([0x73,0x6f,0x72,0x74])]()[_0x2ac352([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5290fd,_0x33dc82])=>{_0x2484ac(_0x5290fd),_0x29f35e(_0x33dc82);}):_0x2484ac(window[_0x2ac352([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ee506));}return _0x29f35e(_0x2ebc84),_0x2d3115>>>0x0;}function _0x126850(_0x37c70a){return _0x37c70a[_0x2ac352([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2ac352([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2ac352([0x30]));}function _0xf63c1d(_0x1a7432){return _0x1a7432[_0x2ac352([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2ac352([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2ac352([0x6a,0x6f,0x69,0x6e])]('');}function _0x16489a(){}function _0x2ac352(_0x3adf2a){return _0x3adf2a['map'](_0x90f6e=>String['fromCharCode'](_0x90f6e))['join']('');}_0x567649(await _0x40624f());}(this);}['_initSchema'](){const _0x4841b0=this['editor']['model']['schema'];_0x4841b0['isRegistered']('imageBlock')&&_0x4841b0['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4841b0['isRegistered']('imageInline')&&_0x4841b0['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3975e0=this['editor'];_0x3975e0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3975e0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x44205c=>_0x44205c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x30e117=_0x3975e0['commands']['get']('replaceImageSource');_0x30e117&&this['listenTo'](_0x30e117,'cleanupImage',(_0x388c8f,[_0x285a97,_0x357662])=>{_0x285a97['removeAttribute']('uploadcareImageId',_0x357662);});}['_initConfig'](){const _0x24aa5f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1c96eb=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4cf48b(_0x3d29e5['document'],'uc-config',{..._0x24aa5f,'pubkey':_0x1c96eb,'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']=_0x1eb31a=>{if('closeMax'==_0x1eb31a)return'#uc-icon-arrow-down';},_0x3d29e5['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4cf48b(_0x3d29e5['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3d29e5['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x73c8b8=this['editor']['commands']['get']('insertImage');_0x73c8b8&&this['listenTo'](_0x73c8b8,'execute',()=>{const _0x11d565=this['editor']['model']['document']['selection']['getSelectedElement']();_0x11d565&&_0x11d565['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x11d565);});});const _0x40e86c=this['editor']['commands']['get']('uploadcareImageReplace');_0x40e86c&&this['listenTo'](_0x40e86c,'execute',()=>{const _0x3c6ab2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3c6ab2&&_0x3c6ab2['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3c6ab2);});});}}class tt extends _0x57fbe8{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd7d24e){super(_0xd7d24e),_0xd7d24e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x326106['defineComponents'](_0x326106);}}class ii extends _0x1a6940{constructor(_0x1a6bae){super(_0x1a6bae);const t=_0x1a6bae['t'],_0x4216f3=this['bindTemplate'],_0x173196=new _0x437864();_0x173196['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':[_0x173196,{'text':_0x4216f3['to']('imageUploadProgress',_0x413557=>t('Loading\x20image...')+'\x20('+(_0x413557||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 _0x1a6940{constructor(_0x3511c7){super(_0x3511c7);const t=_0x3511c7['t'];this['set']('errorType',null);const _0x21fe46=new _0x481b99(_0x3511c7);_0x21fe46['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x21fe46['withText']=!0x0,_0x21fe46['class']='ck-button-action',_0x21fe46['on']('execute',()=>{this['fire']('retry');}),_0x21fe46['bind']('isVisible')['to'](this,'errorType',_0x443b75=>'NotFound'!==_0x443b75);const _0x133f37=new _0x3924ec();_0x133f37['content']=_0x3ea7a4,_0x133f37['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x26c7c1=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':[_0x133f37,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x26c7c1['to']('errorType',_0x4a6312=>t('NotFound'!==_0x4a6312?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x21fe46]},{'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 _0x1a6940{constructor(_0x49db85,_0x4bedf1){super(_0x49db85);const _0xa383b8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4bedf1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0xa383b8['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0xc60104,_0x3c83b2,_0x16b2f2){super(_0xc60104),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0xc60104),this['_errorView']=new ti(_0xc60104),this['_editingView']=new ei(_0xc60104,_0x16b2f2),this['_focusableView']=new _0x1a6940(_0xc60104),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3c83b2),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'],_0x27afc8=>{this['_addUploadcareImageEditorListeners'](_0x27afc8);});}),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'](_0x5afc5f,_0x123f34){const _0x3c02ae='uc-cloud-image-editor',_0x25bc4b=_0x5afc5f['querySelector'](_0x3c02ae);if(_0x25bc4b)return _0x123f34(_0x25bc4b);const _0x1688e4=new MutationObserver(_0x559ceb=>{const _0xf7b2b8=_0x559ceb['filter'](_0x47f912=>_0x47f912['target']===_0x5afc5f&&_0x47f912['addedNodes']['length']>0x0&&_0x47f912['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3c02ae);_0xf7b2b8['length']&&(_0x1688e4['disconnect'](),_0x123f34(_0xf7b2b8[0x0]['addedNodes'][0x0]));});_0x1688e4['observe'](_0x5afc5f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4cc98b){_0x4cc98b['addEventListener']('apply',_0x120b34=>{this['fire']('apply',{'imageSrc':_0x120b34['detail']['cdnUrl']});}),_0x4cc98b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x4a714(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x43cb0e,_0xd26f33,_0x4f3387){super(),this['_editor']=_0x43cb0e,this['_dialog']=_0xd26f33,this['_imageElement']=_0x4f3387,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 _0x4275fb=this['_imageElement'],_0x560d4e=_0x4275fb['getAttribute']('uploadcareImageId'),_0x3c656c=_0x4275fb['getAttribute']('src');if(_0x560d4e)await this['_loadImageInfo'](_0x560d4e,_0x3c656c);else{if(this['_imageCache']['has'](_0x3c656c)){const _0x28ab5d=this['_imageCache']['get'](_0x3c656c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x28ab5d['url'],this['imageDimension']=_0x28ab5d['dimension'],this['imageId']=_0x28ab5d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5c724d}=this['_editor'],t=_0x5c724d['t'],_0x5e979b=new X(_0x5c724d,this['imageStatus'],this['_attributes']);_0x5e979b['bind']('status')['to'](this,'imageStatus'),_0x5e979b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5e979b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5e979b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5e979b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x433f0e,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5e979b,'position':_0x12577b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5e979b['focus']();},'onHide':()=>{_0x5e979b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x51a9d7=>!A(_0x51a9d7,_0x5e979b['element'])}});}['_loadImageInfo'](_0x200932,_0x22cc85){return j['getInfo'](_0x200932,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x409c53=>{const {width:_0x30c5b8,height:_0x457245}=_0x409c53['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x22cc85,this['imageDimension']={'width':_0x30c5b8,'height':_0x457245},this['imageId']=_0x200932;})['catch'](_0x4aa413=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4aa413['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x34c38b,_0x21f800){return this['_getImageAsFile'](_0x34c38b)['then'](_0x4acb13=>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':_0x21f800['signal'],'file':_0x4acb13,'onProgress':_0x19a3b9=>{_0x19a3b9&&_0x19a3b9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x19a3b9['value']));}}))['then'](_0x343531=>{const {width:_0x41afdf,height:_0x2f4408}=_0x343531['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x343531['cdnUrl'],this['imageDimension']={'width':_0x41afdf,'height':_0x2f4408},this['imageId']=_0x343531['uuid'],this['imageUploadProgress']=null;const _0x478acf=_0x34c38b['getAttribute']('src');this['_imageCache']['set'](_0x478acf,{'id':_0x343531['uuid'],'url':_0x343531['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0xa98e25=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xa98e25['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x16d001,_0x127d92){_0x16d001['on']('apply',(_0xb70c17,_0x4c0398)=>{this['_replaceImage'](_0x127d92,_0x4c0398['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x16d001['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x16d001['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x6ca769,_0x2a03b5,_0x79ad88){const _0x6759c0=this['_editor'],{width:_0x428210,height:_0xe898d2}=S(_0x2a03b5,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4b55dd,imageSources:_0x27fdcf}=C(_0x2a03b5,_0x428210);_0x6759c0['model']['change'](_0x2d7ed1=>{if('$graveyard'===_0x6ca769['root']['rootName']){_0x6759c0['execute']('insertImage',{'imageType':_0x6ca769['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x6ca769['getAttributes']()),'uploadcareImageId':_0x79ad88,'src':_0x4b55dd,'sources':_0x27fdcf,'width':_0x428210,'height':_0xe898d2}});const _0x3082c9=_0x6ca769['getChildren']();_0x6ca769=_0x6759c0['model']['document']['selection']['getSelectedElement']();for(const _0x2b4c05 of _0x3082c9)_0x2d7ed1['append'](_0x2d7ed1['cloneElement'](_0x2b4c05),_0x6ca769);}else _0x2d7ed1['setSelection'](_0x6ca769,'on'),_0x6759c0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x6ca769['getAttributes']()),'uploadcareImageId':_0x79ad88,'src':_0x4b55dd,'sources':_0x27fdcf,'width':_0x428210,'height':_0xe898d2},_0x6ca769);_0x2d7ed1['setSelection'](_0x6ca769,'on');});}async['_getImageAsFile'](_0x35f136){const _0x4b92af=_0x3d29e5['window'],_0x24a3c4=_0x3d29e5['document']['location']['href'],_0xedf5f5=new _0x4b92af['URL'](_0x35f136['getAttribute']('src'),_0x24a3c4);if('data:'===_0xedf5f5['protocol']){const _0x325ff0=_0xedf5f5['href']['split'](','),_0x2b1bba=_0x325ff0[0x0]['match'](/:(.*?);/)[0x1],_0x5a6422=_0x2b1bba['split']('/')[0x1],_0x343aea=_0x4b92af['atob'](_0x325ff0[_0x325ff0['length']-0x1]);let _0x3b9b11=_0x343aea['length'];const _0x2844a8=new _0x4b92af['Uint8Array'](_0x3b9b11);for(;_0x3b9b11--;)_0x2844a8[_0x3b9b11]=_0x343aea['charCodeAt'](_0x3b9b11);return new _0x4b92af['File']([_0x2844a8],'image.'+_0x5a6422,{'type':_0x2b1bba});}const _0x4e7d89=_0xedf5f5['href']['split']('/'),_0x1b8f3c=_0x4e7d89[_0x4e7d89['length']-0x1],_0x49b569=_0x1b8f3c['split']('.')[0x1];return _0x4b92af['fetch'](_0xedf5f5['href'])['then'](_0x2b18a0=>_0x2b18a0['clone']()['blob']())['then'](_0x2656d8=>new _0x4b92af['File']([_0x2656d8],_0x1b8f3c,{'type':'image/'+_0x49b569}));}}class O extends _0x548c28{['imageEditController'];static get['requires'](){return[_0x3c85e5];}['_isEditable'];constructor(_0x27d73c){super(_0x27d73c),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x146cca){const _0x526293=G(_0x146cca);return _0x47a115=>!(!_0x47a115||!_0x47a115['is']('element','imageBlock')&&!_0x47a115['is']('element','imageInline'))&&(!!_0x47a115['hasAttribute']('uploadcareImageId')||!!_0x47a115['hasAttribute']('src')&&_0x526293(_0x47a115['getAttribute']('src')));}(_0x27d73c['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x16dbb9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x16dbb9);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x6dc984=this['editor']['model']['document']['selection']['getSelectedElement']();_0x6dc984&&(_0x6dc984['is']('element','imageBlock')||_0x6dc984['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x3c85e5),_0x6dc984),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x548c28{['refresh'](){const _0x5dccf4=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5dccf4&&(_0x5dccf4['is']('element','imageBlock')||_0x5dccf4['is']('element','imageInline')));}['execute'](_0x329dca){const _0x58c5aa=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x281f8d=>{_0x281f8d['setAttributes'](_0x329dca,_0x58c5aa),_0x281f8d['removeAttribute']('srcset',_0x58c5aa),_0x281f8d['removeAttribute']('sizes',_0x58c5aa);});}}class m extends _0x57fbe8{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xa21cf6,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x37c70c}=this;_0x37c70c['commands']['add']('uploadcareImageEdit',new O(_0x37c70c)),_0x37c70c['commands']['add']('uploadcareImageReplace',new R(_0x37c70c));}}class g extends _0x57fbe8{['_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 _0x43b55e=this['editor'];_0x43b55e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x358f6a=>{const _0x341526=_0x43b55e['commands']['get']('uploadcareImageEdit'),_0x275ecf=new _0x481b99(_0x358f6a),t=_0x358f6a['t'];return _0x275ecf['set']({'icon':_0x433f0e,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x275ecf['bind']('isEnabled')['to'](_0x341526),_0x275ecf['bind']('isOn')['to'](_0x341526,'isActive'),this['listenTo'](_0x275ecf,'execute',()=>{_0x43b55e['execute']('uploadcareImageEdit'),_0x43b55e['editing']['view']['focus']();}),_0x275ecf;}),this['_initConfig']();}['_initConfig'](){const _0x22f963=_0x4cf48b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x22f963),this['listenTo'](this['editor'],'destroy',()=>{_0x22f963['remove']();});}}class et extends _0x57fbe8{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 _0x5ab5e0,Command as _0x4a97f9}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x52ed53,IconGooglePhotos as _0xf498d1,IconGoogleDrive as _0x423446,IconFacebook as _0x2615af,IconDropbox as _0x9dc85a,IconUploadcareLink as _0x215fa5,IconUploadcareImageUpload as _0x33d822,IconError as _0x53a58c,IconUploadcareImageEdit as _0x5d01a9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3d5113,MenuBarMenuListItemButtonView as _0x43db42,View as _0x5e3629,FocusCycler as _0x127f4c,Dialog as _0x163a34,DialogViewPosition as _0x55aa5f,SpinnerView as _0x3d07cd,IconView as _0x3cad4e,Notification as _0x47f21f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x102cf7,DomEmitterMixin as _0x3c5250,global as _0x50dd5d,getAncestors as _0x539447,ObservableMixin as _0x237812,uid as _0x3fc987,createElement as _0x21bc65}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x292a4d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1dcd96,info as _0x37c185}from'@uploadcare/upload-client';import*as _0x2554ad from'@uploadcare/file-uploader';var i=function(_0x17d980){return _0x17d980['Local']='local',_0x17d980['URL']='url',_0x17d980['Dropbox']='dropbox',_0x17d980['GDrive']='gdrive',_0x17d980['Facebook']='facebook',_0x17d980['GPhotos']='gphotos',_0x17d980['OneDrive']='onedrive',_0x17d980;}({});function _(_0xa18fd8,_0x2640ea,_0x287be9){const t=_0xa18fd8['t'],_0x1c00d8=_0xa18fd8['t'];switch(_0x2640ea){case i['Local']:return{'text':_0x1c00d8('Insert'===_0x287be9?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1c00d8('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x287be9?_0x1c00d8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1c00d8('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x287be9?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x287be9?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x287be9?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x287be9?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x287be9?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2640ea;}}class e extends _0x5ab5e0{['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 _0x58d018=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x238f78;for(const _0x192dbc in _0x58d018){const _0x1a10f9=_0x192dbc,_0x58eaf4=_0x58d018[_0x1a10f9];if('uploadcareLicenseKeyValid'==_0x58eaf4||'uploadcareLicenseKeyInvalid'==_0x58eaf4||'uploadcareLicenseKeyExpired'==_0x58eaf4||'uploadcareLicenseKeyDomainLimit'==_0x58eaf4||'uploadcareLicenseKeyNotAllowed'==_0x58eaf4||'uploadcareLicenseKeyEvaluationLimit'==_0x58eaf4||'uploadcareLicenseKeyTrialLimit'==_0x58eaf4||'uploadcareLicenseKeyUsageLimit'==_0x58eaf4){delete _0x58d018[_0x1a10f9],_0x238f78=_0x58eaf4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x238f78&&_0x58d018['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x238f78&&_0x58d018['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x238f78&&_0x58d018['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x238f78&&_0x58d018['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x238f78&&_0x58d018['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x238f78&&_0x58d018['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x238f78&&_0x58d018['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x1fffba}=this,_0xbbffef=_0x1fffba['commands']['get']('uploadcare');if(!_0xbbffef)return;const _0x195199=this['_normalizeConfigSourceList'](_0x1fffba['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1f6bf3,_0x65b946)=>{const _0x3c8bca=this['_getIntegrationKey'](_0x65b946['type']);return _0x1f6bf3[_0x3c8bca]||(_0x1f6bf3[_0x3c8bca]=[]),_0x1f6bf3[_0x3c8bca]['push'](_0x65b946),_0x1f6bf3;},{});_0x1fffba['plugins']['has']('ImageInsertUI')&&_0x1fffba['commands']['get']('uploadcare')&&Object['entries'](_0x195199)['forEach'](([_0x572eea,_0x20c1f7])=>{_0x1fffba['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x572eea,'observable':()=>_0xbbffef,'buttonViewCreator':()=>this['_createToolbarButton'](_0x20c1f7),'formViewCreator':()=>this['_createDropdownButtons'](_0x20c1f7),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x20c1f7),'override':'assetManager'!==_0x572eea});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x20e29f){const {locale:_0x1fb748}=this['editor'];return _0x20e29f['map'](_0x34d7e2=>{const _0x35c52f=_(_0x1fb748,_0x34d7e2,'Insert');switch(_0x34d7e2){case i['Local']:return{'icon':_0x33d822,'type':i['Local'],..._0x35c52f};case i['URL']:return{'icon':_0x215fa5,'type':i['URL'],..._0x35c52f};case i['Dropbox']:return{'icon':_0x9dc85a,'type':i['Dropbox'],..._0x35c52f};case i['Facebook']:return{'icon':_0x2615af,'type':i['Facebook'],..._0x35c52f};case i['GDrive']:return{'icon':_0x423446,'type':i['GDrive'],..._0x35c52f};case i['GPhotos']:return{'icon':_0xf498d1,'type':i['GPhotos'],..._0x35c52f};case i['OneDrive']:return{'icon':_0x52ed53,'type':i['OneDrive'],..._0x35c52f};}});}['_getIntegrationKey'](_0xfe84d0){switch(_0xfe84d0){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1c4ac0,_0x2d31b9){const _0x4ec926=this['editor'],_0x4a88fd=new _0x1c4ac0(_0x4ec926['locale']),_0x5d85ec=_0x4ec926['commands']['get']('uploadcare');return _0x4a88fd['bind']('isEnabled')['to'](_0x5d85ec),_0x4a88fd['on']('execute',()=>{_0x5d85ec['execute'](_0x2d31b9);}),_0x4a88fd;}['_createToolbarButton'](_0x2cf06c){const {locale:_0x446194}=this['editor'],_0x3c1665=this['editor']['plugins']['get']('ImageInsertUI'),_0x32866e=_0x2cf06c[0x0],_0x1ac426=this['_createButton'](_0x3d5113,_0x32866e['type']);return _0x1ac426['icon']=_0x32866e['icon'],_0x1ac426['bind']('label')['to'](_0x3c1665,'isImageSelected',_0x6734e2=>_(_0x446194,_0x32866e['type'],_0x6734e2?'Replace':'Insert')['text']),_0x1ac426['tooltip']=!0x0,_0x1ac426;}['_createDropdownButtons'](_0x2d9224){const {locale:_0x250a9d}=this['editor'],_0x26f78d=this['editor']['plugins']['get']('ImageInsertUI');return _0x2d9224['map'](_0x1cd70f=>{const _0x3ea6e0=this['_createButton'](_0x3d5113,_0x1cd70f['type']);return _0x3ea6e0['withText']=!0x0,_0x3ea6e0['icon']=_0x1cd70f['icon'],_0x3ea6e0['bind']('label')['to'](_0x26f78d,'isImageSelected',_0x29725f=>_(_0x250a9d,_0x1cd70f['type'],_0x29725f?'Replace':'Insert')['text']),_0x3ea6e0;});}['_createMenuBarButtons'](_0x46227e){return _0x46227e['map'](_0xb5a1ac=>{const _0x28da15=this['_createButton'](_0x43db42,_0xb5a1ac['type']);return _0x28da15['icon']=_0xb5a1ac['icon'],_0x28da15['label']=_0xb5a1ac['shortText'],_0x28da15;});}}class F extends _0x5e3629{['focusTracker'];['focusCycler'];constructor(_0x5b2e88){super(_0x5b2e88),this['focusTracker']=new _0x102cf7(),this['focusCycler']=new _0x127f4c({'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(_0x5c8da6,_0x107de9){super(_0x5c8da6),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-'+_0x107de9}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x102f59,_0x544dbb){const _0x3d064f=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x49d198=>_0x49d198<=_0x544dbb)['map'](_0x34ffc2=>_0x102f59['replace'](/\/$/,'')+'/-/resize/'+_0x34ffc2+'x/\x20'+_0x34ffc2+'w');return{'imageFallbackUrl':_0x102f59,'imageSources':[{'srcset':_0x3d064f['join'](',\x20'),'sizes':'(max-width:\x20'+_0x544dbb+'px)\x20100vw,\x20'+_0x544dbb+'px','type':'image/webp'}]};}function S(_0x345984,_0xb0d78c,_0x54f248){const _0x2b3e23=_0x345984['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2b3e23?parseInt(_0x2b3e23[0x1],0xa):_0xb0d78c,'height':_0x2b3e23?parseInt(_0x2b3e23[0x2],0xa):_0x54f248};}function p(_0x11e199,_0x5e56bb){const _0x228383=new(_0x3c5250())(),_0x48414e=_0x11e199['plugins']['get']('ImageUtils'),_0x3d5cea=_0x11e199['editing']['mapper']['toViewElement'](_0x5e56bb),_0xf2cb07=_0x48414e['findViewImgElement'](_0x3d5cea),_0x316b4d=_0x11e199['editing']['view']['domConverter']['viewToDom'](_0xf2cb07),_0x422a89=_0x5e56bb['getAttribute']('width'),_0xa4891e=_0x5e56bb['getAttribute']('height'),_0x26097c='image-processing';_0x11e199['editing']['view']['change'](_0x584060=>{_0x584060['addClass'](_0x26097c,_0x3d5cea),_0x584060['setStyle']('aspect-ratio',_0x422a89+'/'+_0xa4891e,_0xf2cb07);}),_0x228383['listenTo'](_0x316b4d,'load',()=>{_0x228383['stopListening'](_0x316b4d,'load'),_0x11e199['editing']['view']['change'](_0x5c490d=>{_0x5c490d['removeClass'](_0x26097c,_0x3d5cea),_0x5c490d['removeStyle']('aspect-ratio',_0xf2cb07);});});}function G(_0x85dcbf){if(Array['isArray'](_0x85dcbf)){const _0x3fa93d=_0x85dcbf['map'](G);return _0x3515b0=>_0x3fa93d['some'](_0x32f399=>_0x32f399(_0x3515b0));}if('origin'==_0x85dcbf){const _0x21b9f7=_0x50dd5d['window']['location']['origin'];return _0xeacf5f=>new URL(_0xeacf5f,_0x50dd5d['document']['baseURI'])['origin']==_0x21b9f7;}return'function'==typeof _0x85dcbf?_0x85dcbf:_0x85dcbf instanceof RegExp?_0x1cc138=>!(!_0x1cc138['match'](_0x85dcbf)&&!_0x1cc138['replace'](/^https?:\/\//,'')['match'](_0x85dcbf)):()=>!0x1;}function A(_0x3c1303,_0x56e92e){return _0x539447(_0x3c1303['target'])['includes'](_0x56e92e);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x237812(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x43e40a,_0x2c1dfd,_0x4af018){super(),this['_editor']=_0x43e40a,this['_editing']=_0x2c1dfd,this['_dialog']=_0x43e40a['plugins']['get'](_0x163a34),this['_api']=_0x2c1dfd['ctxElement']['getAPI'](),this['_type']=_0x4af018,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:_0x2cb67b,model:_0x557e7a}=this['_editor'],_0x740ac7=_0x557e7a['document']['selection']['getSelectedElement'](),_0x286172=_0x740ac7&&(_0x740ac7['is']('element','imageBlock')||_0x740ac7['is']('element','imageInline'));this['_formView']=new x(_0x2cb67b,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x33d822,'title':_(_0x2cb67b,this['_type'],_0x286172?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x55aa5f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x698c26=>!A(_0x698c26,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x55caaf}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x15c4c9=>{const _0x1f4c99=_0x55caaf['length'];for(const _0x1a7445 of _0x55caaf){const _0x217f31=_0x1a7445===_0x55caaf[_0x1f4c99-0x1],{cdnUrl:_0x21afe8,fileInfo:_0x4a13e6}=_0x1a7445;if(!_0x21afe8||!_0x4a13e6)continue;const {width:_0x1ed647,height:_0xef18d6}=_0x4a13e6['imageInfo'],_0x89cd9e=S(_0x21afe8,_0x1ed647,_0xef18d6),_0x5b4328=C(_0x21afe8,_0x89cd9e['width']),_0x23f9c1={'id':_0x4a13e6['uuid'],'type':'image','attributes':{'imageDimension':_0x89cd9e,..._0x5b4328}};this['_insertAsset'](_0x23f9c1,_0x217f31,_0x15c4c9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4d420d=>{'idle'===_0x4d420d['detail']['status']&&!_0x4d420d['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x574895,_0x1d6137,_0x1abd2f){const _0x26e4ba=this['_editor']['model']['document']['selection'],_0x4dd3db=_0x26e4ba['getSelectedElement'](),_0x431f8c=!(!_0x4dd3db||!_0x4dd3db['is']('element','imageInline'));_0x1abd2f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x574895,_0x431f8c),_0x1d6137||_0x1abd2f['setSelection'](_0x26e4ba['getLastPosition']());}['_insertImage'](_0x2e1d5b,_0x34dad7){const _0x8ed44d=this['_editor'],{imageDimension:_0x2019a5,imageFallbackUrl:_0x5eddf6,imageSources:_0x26e1fa}=_0x2e1d5b['attributes'];_0x8ed44d['execute']('insertImage',{'imageType':_0x34dad7?'imageInline':null,'source':{'uploadcareImageId':_0x2e1d5b['id'],'src':_0x5eddf6,'sources':_0x26e1fa,..._0x2019a5}});}}class w extends _0x4a97f9{['_editing'];['_controller']=null;static get['requires'](){return[_0x163a34,o];}constructor(_0x18624d){super(_0x18624d),this['_editing']=_0x18624d['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4d4f7a){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4d4f7a);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x3cda36,..._0x1f52b6}){return _0x1dcd96(_0x3cda36,_0x1f52b6);}static['getInfo'](_0x119c33,_0x41f34e){return _0x37c185(_0x119c33,_0x41f34e);}}class f extends _0x5ab5e0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x292a4d,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x33d63a=this['editor'];if(!!!_0x33d63a['config']['get']('uploadcare'))return;_0x33d63a['plugins']['get'](_0x292a4d)['createUploadAdapter']=_0x2929a8=>new k(_0x2929a8,_0x33d63a),_0x33d63a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4668e0,{imageElement:_0xa734a5,data:_0x42c494})=>{_0x33d63a['model']['change'](_0x5b89f0=>{_0x5b89f0['setAttribute']('uploadcareImageId',_0x42c494['uploadcareImageId'],_0xa734a5);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x32c71f,_0x2fc12c){this['loader']=_0x32c71f,this['editor']=_0x2fc12c,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1f3c9a=await this['loader']['file'];return j['upload']({'file':_0x1f3c9a,'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':_0x7cc2d5=>{_0x7cc2d5&&_0x7cc2d5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x7cc2d5['value']);}})['then'](async _0xd4effe=>{const {imageFallbackUrl:_0x5baa6c,imageSources:_0x5b6622}=C(_0xd4effe['cdnUrl'],_0xd4effe['imageInfo']['width']);return{'uploadcareImageId':_0xd4effe['uuid'],'default':_0x5baa6c,'sources':_0x5b6622};})['catch'](()=>{const _0x11a322=t('Cannot\x20upload\x20file:')+('\x20'+_0x1f3c9a['name']+'.');return Promise['reject'](_0x11a322);});}['abort'](){this['controller']['abort']();}}class o extends _0x5ab5e0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x163a34];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x49ff7d){super(_0x49ff7d),this['ucContextId']=_0x3fc987();}['init'](){const _0x3dad66=this['editor'];_0x3dad66['commands']['add']('uploadcare',new w(_0x3dad66));}['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 _0x2cd83b=_0x50dd5d['document']['querySelector']('input[uploadcare-file-input]');_0x2cd83b&&_0x2cd83b['remove']();}),async function(_0x304a84){const _0x6ab19a=_0x582feb([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4e05b7=0x535f8c3a,_0x363524=0x5358faea^_0x4e05b7,_0x2954a1=window[_0x582feb([0x44,0x61,0x74,0x65])][_0x582feb([0x6e,0x6f,0x77])](),_0x70cc8b=_0x304a84[_0x582feb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x36bd2d=new window[(_0x582feb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4720fc=>{_0x70cc8b[_0x582feb([0x6f,0x6e,0x63,0x65])](_0x582feb([0x72,0x65,0x61,0x64,0x79]),_0x4720fc);}),_0x2fc730={[_0x582feb([0x6b,0x74,0x79])]:_0x582feb([0x45,0x43]),[_0x582feb([0x75,0x73,0x65])]:_0x582feb([0x73,0x69,0x67]),[_0x582feb([0x63,0x72,0x76])]:_0x582feb([0x50,0x2d,0x32,0x35,0x36]),[_0x582feb([0x78])]:_0x582feb([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]),[_0x582feb([0x79])]:_0x582feb([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]),[_0x582feb([0x61,0x6c,0x67])]:_0x582feb([0x45,0x53,0x32,0x35,0x36])},_0x1955ac=_0x70cc8b[_0x582feb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x582feb([0x67,0x65,0x74])](_0x582feb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x382be8(){let _0x60c76b,_0x39887=null,_0xa61000=null;try{if(_0x1955ac==_0x582feb([0x47,0x50,0x4c]))return _0x582feb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x60c76b=_0x51d6d4(),!_0x60c76b)return _0x582feb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x60c76b[_0x582feb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xa61000=_0x664d75(_0x60c76b[_0x582feb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x60c76b[_0x582feb([0x6a,0x74,0x69])])),await _0xaf1f38()?_0x5c1ab1()?_0x1145b4()?_0x582feb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5f395f()?(_0x60c76b[_0x582feb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x582feb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39887=_0x341ce8(_0x582feb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x60c76b[_0x582feb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x582feb([0x74,0x72,0x69,0x61,0x6c])&&(_0x39887=_0x341ce8(_0x582feb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a87d8()):_0x582feb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x582feb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x582feb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x582feb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1145b4(){const _0x2fbc5f=[_0x582feb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x582feb([0x74,0x72,0x69,0x61,0x6c])][_0x582feb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x60c76b[_0x582feb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2954a1/0x3e8:0xe10*_0x363524;return _0x60c76b[_0x582feb([0x65,0x78,0x70])]<_0x2fbc5f;}function _0x5c1ab1(){const _0x2952db=_0x60c76b[_0x582feb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2952db&&(!!_0x2952db[_0x582feb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x582feb([0x2a]))||!!_0x2952db[_0x582feb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x582feb([0x55,0x50,0x4c,0x43])));}function _0x5f395f(){const _0x3cc72d=_0x60c76b[_0x582feb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3cc72d||0x0==_0x3cc72d[_0x582feb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x69c1d5}=new URL(window[_0x582feb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3cc72d[_0x582feb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x69c1d5))return!0x0;const _0x4b5b3f=_0x69c1d5[_0x582feb([0x73,0x70,0x6c,0x69,0x74])](_0x582feb([0x2e]));return _0x3cc72d[_0x582feb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c993a=>_0x5c993a[_0x582feb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x582feb([0x2a])))[_0x582feb([0x6d,0x61,0x70])](_0xb86427=>_0xb86427[_0x582feb([0x73,0x70,0x6c,0x69,0x74])](_0x582feb([0x2e])))[_0x582feb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f5c92=>_0x4f5c92[_0x582feb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4b5b3f[_0x582feb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x582feb([0x6d,0x61,0x70])](_0x41245b=>Array(_0x4b5b3f[_0x582feb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x41245b[_0x582feb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x582feb([0x66,0x69,0x6c,0x6c])](_0x41245b[0x0]===_0x582feb([0x2a])?_0x582feb([0x2a]):'')[_0x582feb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x41245b))[_0x582feb([0x73,0x6f,0x6d,0x65])](_0x4e7ad2=>_0x4b5b3f[_0x582feb([0x65,0x76,0x65,0x72,0x79])]((_0xf6e4cb,_0x242383)=>_0x4e7ad2[_0x242383]===_0xf6e4cb||_0x4e7ad2[_0x242383]===_0x582feb([0x2a])));}function _0x5a87d8(){return _0x39887&&_0xa61000?new window[(_0x582feb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xefe46e,_0x157ef0)=>{_0x39887[_0x582feb([0x74,0x68,0x65,0x6e])](_0xefe46e,_0x157ef0),_0xa61000[_0x582feb([0x74,0x68,0x65,0x6e])](_0xfeca7e=>{_0xfeca7e!=_0x582feb([0x56,0x61,0x6c,0x69,0x64])&&_0xefe46e(_0xfeca7e);},_0x157ef0);}):_0x39887||_0xa61000||_0x582feb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x664d75(_0x5a43c2,_0x2e55ed){return new window[(_0x582feb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38a9b5=>{if(_0x8c5766())return _0x38a9b5(_0x582feb([0x56,0x61,0x6c,0x69,0x64]));_0x8d1dcf(),_0x70cc8b[_0x582feb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x582feb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b3849=!0x1;const _0x40bfb2=_0x3fc987();function _0xe4028(_0x388ace){return!!_0x388ace&&(typeof _0x388ace===_0x582feb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x388ace===_0x582feb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x388ace[_0x582feb([0x74,0x68,0x65,0x6e])]===_0x582feb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x388ace[_0x582feb([0x63,0x61,0x74,0x63,0x68])]===_0x582feb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2460ca(_0x41bc84){_0x4fb2fd(_0x41bc84)[_0x582feb([0x74,0x68,0x65,0x6e])](_0x2e467f=>{if(!_0x2e467f||_0x2e467f[_0x582feb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x582feb([0x6f,0x6b]))return _0x582feb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe6be07(_0x33f26d(_0x40bfb2+_0x2e55ed))!=_0x2e467f[_0x582feb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x582feb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x582feb([0x56,0x61,0x6c,0x69,0x64]);})[_0x582feb([0x74,0x68,0x65,0x6e])](_0x931c9f=>(_0x180d75(),_0x931c9f),()=>{const _0x5b2520=_0x10c141();return null==_0x5b2520?(_0x180d75(),_0x582feb([0x56,0x61,0x6c,0x69,0x64])):_0x582feb(_0x2954a1-_0x5b2520>(0x7753083a^_0x4e05b7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x582feb([0x74,0x68,0x65,0x6e])](_0x38a9b5)[_0x582feb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x38a9b5(_0x582feb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x413880=0x536962ba^_0x4e05b7;function _0x180d75(){const _0x53763d=_0x582feb([0x6c,0x6c,0x63,0x74,0x2d])+_0xe6be07(_0x33f26d(_0x5a43c2)),_0x5c38ab=_0x37307d(_0xe6be07(window[_0x582feb([0x4d,0x61,0x74,0x68])][_0x582feb([0x63,0x65,0x69,0x6c])](_0x2954a1/_0x413880)));window[_0x582feb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x582feb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53763d,_0x5c38ab);}function _0x10c141(){const _0x3c3ab2=_0x582feb([0x6c,0x6c,0x63,0x74,0x2d])+_0xe6be07(_0x33f26d(_0x5a43c2)),_0x392d74=window[_0x582feb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x582feb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c3ab2);return _0x392d74?window[_0x582feb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37307d(_0x392d74),0x10)*_0x413880:null;}function _0x4fb2fd(_0x1a8e0a){return new window[(_0x582feb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x411d7a,_0x4a1680)=>{_0x1a8e0a[_0x582feb([0x74,0x68,0x65,0x6e])](_0x411d7a,_0x4a1680),window[_0x582feb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a1680,0x535e58fa^_0x4e05b7);});}}_0x70cc8b[_0x582feb([0x6f,0x6e])](_0x582feb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59bc11,_0x3cdce6)=>{if(_0x3cdce6[0x0]!=_0x5a43c2)return _0x38a9b5(_0x582feb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3cdce6[0x1]={..._0x3cdce6[0x1],[_0x582feb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40bfb2};},{[_0x582feb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x582feb([0x68,0x69,0x67,0x68])}),_0x70cc8b[_0x582feb([0x6f,0x6e])](_0x582feb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d0ffa=>{_0xe4028(_0x3d0ffa[_0x582feb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b3849=!0x0,_0x2460ca(_0x3d0ffa[_0x582feb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x582feb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x582feb([0x6c,0x6f,0x77])}),_0x36bd2d[_0x582feb([0x74,0x68,0x65,0x6e])](()=>{_0x5b3849||_0x38a9b5(_0x582feb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8c5766(){return _0x70cc8b[_0x582feb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x582feb([0x76,0x69,0x65,0x77])][_0x582feb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x582feb([0x61,0x75,0x74,0x6f]);}function _0x8d1dcf(){_0x70cc8b[_0x582feb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x582feb([0x76,0x69,0x65,0x77])][_0x582feb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x582feb([0x61,0x75,0x74,0x6f]);}}function _0x341ce8(_0x18340a){const _0x5c978a=[new window[(_0x582feb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ab622=>setTimeout(_0x3ab622,0x5356b2f6^_0x4e05b7)),_0x36bd2d[_0x582feb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x582feb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14b018=>{let _0x13cf30=0x0;_0x70cc8b[_0x582feb([0x6d,0x6f,0x64,0x65,0x6c])][_0x582feb([0x6f,0x6e])](_0x582feb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3459e6,_0x4639dd)=>{_0x4639dd[0x0][_0x582feb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x13cf30++,_0x13cf30==(0x535f8dc2^_0x4e05b7)&&(_0x14b018(),_0x3459e6[_0x582feb([0x6f,0x66,0x66])]());});}))];return window[_0x582feb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x582feb([0x72,0x61,0x63,0x65])](_0x5c978a)[_0x582feb([0x74,0x68,0x65,0x6e])](()=>_0x18340a);}async function _0x3feab9(){await _0x36bd2d,_0x70cc8b[_0x582feb([0x6d,0x6f,0x64,0x65,0x6c])][_0x582feb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ecee8,_0x70cc8b[_0x582feb([0x6d,0x6f,0x64,0x65,0x6c])][_0x582feb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ecee8,_0x70cc8b[_0x582feb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x582feb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x18bec0(_0x33f0fa){const _0x16ead8=_0x1633a2();_0x70cc8b[_0x16ead8]=_0x582feb([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x33f0fa,_0x33f0fa!=_0x582feb([0x56,0x61,0x6c,0x69,0x64])&&_0x3feab9();}function _0x1633a2(){const _0x5940c3=window[_0x582feb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x582feb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x582feb([0x6e,0x6f,0x77])]())[_0x582feb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x582feb([0x2e]),'');let _0xd72d61=_0x582feb([0x68]);for(let _0x21951e=0x0;_0x21951e<_0x5940c3[_0x582feb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21951e+=0x2){let _0x9ae47a=window[_0x582feb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5940c3[_0x582feb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21951e,_0x21951e+0x2));_0x9ae47a>=_0x6ab19a[_0x582feb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x9ae47a-=_0x6ab19a[_0x582feb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd72d61+=_0x6ab19a[_0x9ae47a];}return _0xd72d61;}function _0x51d6d4(){const _0x257777=_0x1955ac[_0x582feb([0x73,0x70,0x6c,0x69,0x74])](_0x582feb([0x2e]));if(0x3!=_0x257777[_0x582feb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xadabb5(_0x257777[0x1]);function _0xadabb5(_0x4f1c5e){const _0x9036f2=_0xabca8d(_0x4f1c5e);return _0x9036f2&&_0x40d5c1()?_0x9036f2:null;function _0x40d5c1(){const _0xc511dc=_0x9036f2[_0x582feb([0x6a,0x74,0x69])],_0x2f5c86=window[_0x582feb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc511dc[_0x582feb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc511dc[_0x582feb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2e909f={..._0x9036f2,[_0x582feb([0x6a,0x74,0x69])]:_0xc511dc[_0x582feb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc511dc[_0x582feb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2e909f[_0x582feb([0x76,0x63])],_0x33f26d(_0x2e909f)==_0x2f5c86;}}}async function _0xaf1f38(){let _0x42a628=!0x0;try{const _0x465660=_0x1955ac[_0x582feb([0x73,0x70,0x6c,0x69,0x74])](_0x582feb([0x2e])),[_0x196023,_0x3fd7a8,_0xa4d35a]=_0x465660;return _0x39ee58(_0x196023),await _0x2777bd(_0x196023,_0x3fd7a8,_0xa4d35a),_0x42a628;}catch{return!0x1;}function _0x39ee58(_0x4e6bc6){const _0x21fe91=_0xabca8d(_0x4e6bc6);_0x21fe91&&_0x21fe91[_0x582feb([0x61,0x6c,0x67])]==_0x582feb([0x45,0x53,0x32,0x35,0x36])||(_0x42a628=!0x1);}async function _0x2777bd(_0x14d5b4,_0x46458e,_0x28810a){const _0xf5a2d6=window[_0x582feb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x582feb([0x66,0x72,0x6f,0x6d])](_0x549900(_0x28810a),_0x5cec5f=>_0x5cec5f[_0x582feb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5c739f=new window[(_0x582feb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x582feb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14d5b4+_0x582feb([0x2e])+_0x46458e),_0x13a399=window[_0x582feb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x582feb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13a399)return;const _0x29a085=await _0x13a399[_0x582feb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x582feb([0x6a,0x77,0x6b]),_0x2fc730,{[_0x582feb([0x6e,0x61,0x6d,0x65])]:_0x582feb([0x45,0x43,0x44,0x53,0x41]),[_0x582feb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x582feb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x582feb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13a399[_0x582feb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x582feb([0x6e,0x61,0x6d,0x65])]:_0x582feb([0x45,0x43,0x44,0x53,0x41]),[_0x582feb([0x68,0x61,0x73,0x68])]:{[_0x582feb([0x6e,0x61,0x6d,0x65])]:_0x582feb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29a085,_0xf5a2d6,_0x5c739f)||(_0x42a628=!0x1);}}function _0xabca8d(_0x45a801){return _0x45a801[_0x582feb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x582feb([0x65,0x79]))?JSON[_0x582feb([0x70,0x61,0x72,0x73,0x65])](_0x549900(_0x45a801)):null;}function _0x549900(_0x460d55){return window[_0x582feb([0x61,0x74,0x6f,0x62])](_0x460d55[_0x582feb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x582feb([0x2b]))[_0x582feb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x582feb([0x2f])));}function _0x33f26d(_0x4276f5){let _0x554a5d=0x1505;function _0x4cd1f1(_0x45bc1b){for(let _0x2346c1=0x0;_0x2346c1<_0x45bc1b[_0x582feb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2346c1++){const _0x4d830b=_0x45bc1b[_0x582feb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2346c1);_0x554a5d=(_0x554a5d<<0x5)+_0x554a5d+_0x4d830b,_0x554a5d&=_0x554a5d;}}function _0x37fbd6(_0x2ef045){Array[_0x582feb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2ef045)?_0x2ef045[_0x582feb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37fbd6):_0x2ef045&&typeof _0x2ef045==_0x582feb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x582feb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2ef045)[_0x582feb([0x73,0x6f,0x72,0x74])]()[_0x582feb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b63bb,_0x3bf134])=>{_0x4cd1f1(_0x3b63bb),_0x37fbd6(_0x3bf134);}):_0x4cd1f1(window[_0x582feb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2ef045));}return _0x37fbd6(_0x4276f5),_0x554a5d>>>0x0;}function _0xe6be07(_0x317e77){return _0x317e77[_0x582feb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x582feb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x582feb([0x30]));}function _0x37307d(_0x198093){return _0x198093[_0x582feb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x582feb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x582feb([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ecee8(){}function _0x582feb(_0x1faee7){return _0x1faee7['map'](_0x13d13f=>String['fromCharCode'](_0x13d13f))['join']('');}_0x18bec0(await _0x382be8());}(this);}['_initSchema'](){const _0x141088=this['editor']['model']['schema'];_0x141088['isRegistered']('imageBlock')&&_0x141088['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x141088['isRegistered']('imageInline')&&_0x141088['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2fd4a1=this['editor'];_0x2fd4a1['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2fd4a1['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x168cf4=>_0x168cf4['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xc7ea87=_0x2fd4a1['commands']['get']('replaceImageSource');_0xc7ea87&&this['listenTo'](_0xc7ea87,'cleanupImage',(_0x4c8277,[_0x37f8a7,_0x37cdde])=>{_0x37f8a7['removeAttribute']('uploadcareImageId',_0x37cdde);});}['_initConfig'](){const _0x2adb13=this['editor']['config']['get']('uploadcare.uploader')||{},_0x22ec76=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x21bc65(_0x50dd5d['document'],'uc-config',{..._0x2adb13,'pubkey':_0x22ec76,'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']=_0x4a56e6=>{if('closeMax'==_0x4a56e6)return'#uc-icon-arrow-down';},_0x50dd5d['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x21bc65(_0x50dd5d['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x50dd5d['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x337ce4=this['editor']['commands']['get']('insertImage');_0x337ce4&&this['listenTo'](_0x337ce4,'execute',()=>{const _0xe537b4=this['editor']['model']['document']['selection']['getSelectedElement']();_0xe537b4&&_0xe537b4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xe537b4);});});const _0xee2a72=this['editor']['commands']['get']('uploadcareImageReplace');_0xee2a72&&this['listenTo'](_0xee2a72,'execute',()=>{const _0x4a8a43=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4a8a43&&_0x4a8a43['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4a8a43);});});}}class tt extends _0x5ab5e0{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44318e){super(_0x44318e),_0x44318e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2554ad['defineComponents'](_0x2554ad);}}class ii extends _0x5e3629{constructor(_0x222b25){super(_0x222b25);const t=_0x222b25['t'],_0x3ace6d=this['bindTemplate'],_0x56a1e7=new _0x3d07cd();_0x56a1e7['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':[_0x56a1e7,{'text':_0x3ace6d['to']('imageUploadProgress',_0x3b954d=>t('Loading\x20image...')+'\x20('+(_0x3b954d||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 _0x5e3629{constructor(_0x4cf682){super(_0x4cf682);const t=_0x4cf682['t'];this['set']('errorType',null);const _0x1b466c=new _0x3d5113(_0x4cf682);_0x1b466c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1b466c['withText']=!0x0,_0x1b466c['class']='ck-button-action',_0x1b466c['on']('execute',()=>{this['fire']('retry');}),_0x1b466c['bind']('isVisible')['to'](this,'errorType',_0x3360fa=>'NotFound'!==_0x3360fa);const _0x35bd8b=new _0x3cad4e();_0x35bd8b['content']=_0x53a58c,_0x35bd8b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3d643f=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':[_0x35bd8b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3d643f['to']('errorType',_0x4377c3=>t('NotFound'!==_0x4377c3?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1b466c]},{'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 _0x5e3629{constructor(_0x395f13,_0x3d9a1d){super(_0x395f13);const _0x1a0272=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3d9a1d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1a0272['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x32a7aa,_0x1ea9c8,_0x33d8b5){super(_0x32a7aa),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x32a7aa),this['_errorView']=new ti(_0x32a7aa),this['_editingView']=new ei(_0x32a7aa,_0x33d8b5),this['_focusableView']=new _0x5e3629(_0x32a7aa),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x1ea9c8),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'],_0x155ca7=>{this['_addUploadcareImageEditorListeners'](_0x155ca7);});}),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'](_0x2a465c,_0x257cd5){const _0xabf063='uc-cloud-image-editor',_0x4f8755=_0x2a465c['querySelector'](_0xabf063);if(_0x4f8755)return _0x257cd5(_0x4f8755);const _0x18e703=new MutationObserver(_0x349c2c=>{const _0x1985a6=_0x349c2c['filter'](_0x59f1f2=>_0x59f1f2['target']===_0x2a465c&&_0x59f1f2['addedNodes']['length']>0x0&&_0x59f1f2['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0xabf063);_0x1985a6['length']&&(_0x18e703['disconnect'](),_0x257cd5(_0x1985a6[0x0]['addedNodes'][0x0]));});_0x18e703['observe'](_0x2a465c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4f526a){_0x4f526a['addEventListener']('apply',_0x39044c=>{this['fire']('apply',{'imageSrc':_0x39044c['detail']['cdnUrl']});}),_0x4f526a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0x237812(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2c8d85,_0x11c270,_0x53a001){super(),this['_editor']=_0x2c8d85,this['_dialog']=_0x11c270,this['_imageElement']=_0x53a001,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 _0x4efe83=this['_imageElement'],_0x1959eb=_0x4efe83['getAttribute']('uploadcareImageId'),_0x46992d=_0x4efe83['getAttribute']('src');if(_0x1959eb)await this['_loadImageInfo'](_0x1959eb,_0x46992d);else{if(this['_imageCache']['has'](_0x46992d)){const _0x57edc5=this['_imageCache']['get'](_0x46992d);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x57edc5['url'],this['imageDimension']=_0x57edc5['dimension'],this['imageId']=_0x57edc5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5b7522}=this['_editor'],t=_0x5b7522['t'],_0xe564e7=new X(_0x5b7522,this['imageStatus'],this['_attributes']);_0xe564e7['bind']('status')['to'](this,'imageStatus'),_0xe564e7['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xe564e7['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xe564e7['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xe564e7,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5d01a9,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xe564e7,'position':_0x55aa5f['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xe564e7['focus']();},'onHide':()=>{_0xe564e7['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xca4982=>!A(_0xca4982,_0xe564e7['element'])}});}['_loadImageInfo'](_0x26d400,_0x165845){return j['getInfo'](_0x26d400,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x429bc2=>{const {width:_0x2fc5bd,height:_0x3284f0}=_0x429bc2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x165845,this['imageDimension']={'width':_0x2fc5bd,'height':_0x3284f0},this['imageId']=_0x26d400;})['catch'](_0x20da9a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x20da9a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x5182a2,_0x39b3f9){return this['_getImageAsFile'](_0x5182a2)['then'](_0x50c000=>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':_0x39b3f9['signal'],'file':_0x50c000,'onProgress':_0x29d719=>{_0x29d719&&_0x29d719['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x29d719['value']));}}))['then'](_0x50a3be=>{const {width:_0x30a5b1,height:_0x4624fc}=_0x50a3be['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x50a3be['cdnUrl'],this['imageDimension']={'width':_0x30a5b1,'height':_0x4624fc},this['imageId']=_0x50a3be['uuid'],this['imageUploadProgress']=null;const _0x5a924a=_0x5182a2['getAttribute']('src');this['_imageCache']['set'](_0x5a924a,{'id':_0x50a3be['uuid'],'url':_0x50a3be['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3eb52f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3eb52f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x36ecf8,_0x3daa76){_0x36ecf8['on']('apply',(_0x5e7aa3,_0x3d2067)=>{this['_replaceImage'](_0x3daa76,_0x3d2067['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x36ecf8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x36ecf8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5ecd5,_0x1bbd96,_0x4e5599){const _0x1619ee=this['_editor'],{width:_0x19f4b8,height:_0x2a669a}=S(_0x1bbd96,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5ba1df,imageSources:_0x3d6173}=C(_0x1bbd96,_0x19f4b8);_0x1619ee['model']['change'](_0x49165d=>{if('$graveyard'===_0x5ecd5['root']['rootName']){_0x1619ee['execute']('insertImage',{'imageType':_0x5ecd5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5ecd5['getAttributes']()),'uploadcareImageId':_0x4e5599,'src':_0x5ba1df,'sources':_0x3d6173,'width':_0x19f4b8,'height':_0x2a669a}});const _0x36d886=_0x5ecd5['getChildren']();_0x5ecd5=_0x1619ee['model']['document']['selection']['getSelectedElement']();for(const _0x55f11e of _0x36d886)_0x49165d['append'](_0x49165d['cloneElement'](_0x55f11e),_0x5ecd5);}else _0x49165d['setSelection'](_0x5ecd5,'on'),_0x1619ee['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5ecd5['getAttributes']()),'uploadcareImageId':_0x4e5599,'src':_0x5ba1df,'sources':_0x3d6173,'width':_0x19f4b8,'height':_0x2a669a},_0x5ecd5);_0x49165d['setSelection'](_0x5ecd5,'on');});}async['_getImageAsFile'](_0x308b5d){const _0x36332f=_0x50dd5d['window'],_0x501621=_0x50dd5d['document']['location']['href'],_0x4699a1=new _0x36332f['URL'](_0x308b5d['getAttribute']('src'),_0x501621);if('data:'===_0x4699a1['protocol']){const _0xe52e58=_0x4699a1['href']['split'](','),_0x1efa37=_0xe52e58[0x0]['match'](/:(.*?);/)[0x1],_0x49280f=_0x1efa37['split']('/')[0x1],_0x236811=_0x36332f['atob'](_0xe52e58[_0xe52e58['length']-0x1]);let _0x492e22=_0x236811['length'];const _0x4ba9ea=new _0x36332f['Uint8Array'](_0x492e22);for(;_0x492e22--;)_0x4ba9ea[_0x492e22]=_0x236811['charCodeAt'](_0x492e22);return new _0x36332f['File']([_0x4ba9ea],'image.'+_0x49280f,{'type':_0x1efa37});}const _0x42529f=_0x4699a1['href']['split']('/'),_0x37a16c=_0x42529f[_0x42529f['length']-0x1],_0x5cdc45=_0x37a16c['split']('.')[0x1];return _0x36332f['fetch'](_0x4699a1['href'])['then'](_0x11007c=>_0x11007c['clone']()['blob']())['then'](_0x4b66a4=>new _0x36332f['File']([_0x4b66a4],_0x37a16c,{'type':'image/'+_0x5cdc45}));}}class O extends _0x4a97f9{['imageEditController'];static get['requires'](){return[_0x163a34];}['_isEditable'];constructor(_0x45f08f){super(_0x45f08f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x270c69){const _0x40a234=G(_0x270c69);return _0x99efed=>!(!_0x99efed||!_0x99efed['is']('element','imageBlock')&&!_0x99efed['is']('element','imageInline'))&&(!!_0x99efed['hasAttribute']('uploadcareImageId')||!!_0x99efed['hasAttribute']('src')&&_0x40a234(_0x99efed['getAttribute']('src')));}(_0x45f08f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x19c9f6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x19c9f6);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x57461d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x57461d&&(_0x57461d['is']('element','imageBlock')||_0x57461d['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x163a34),_0x57461d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4a97f9{['refresh'](){const _0x5ddb75=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5ddb75&&(_0x5ddb75['is']('element','imageBlock')||_0x5ddb75['is']('element','imageInline')));}['execute'](_0x1b6f66){const _0x4fe384=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1f8850=>{_0x1f8850['setAttributes'](_0x1b6f66,_0x4fe384),_0x1f8850['removeAttribute']('srcset',_0x4fe384),_0x1f8850['removeAttribute']('sizes',_0x4fe384);});}}class m extends _0x5ab5e0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x47f21f,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x6cc5bf}=this;_0x6cc5bf['commands']['add']('uploadcareImageEdit',new O(_0x6cc5bf)),_0x6cc5bf['commands']['add']('uploadcareImageReplace',new R(_0x6cc5bf));}}class g extends _0x5ab5e0{['_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 _0x21f626=this['editor'];_0x21f626['ui']['componentFactory']['add']('uploadcareImageEdit',_0xa2eb9f=>{const _0x360314=_0x21f626['commands']['get']('uploadcareImageEdit'),_0x16a818=new _0x3d5113(_0xa2eb9f),t=_0xa2eb9f['t'];return _0x16a818['set']({'icon':_0x5d01a9,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x16a818['bind']('isEnabled')['to'](_0x360314),_0x16a818['bind']('isOn')['to'](_0x360314,'isActive'),this['listenTo'](_0x16a818,'execute',()=>{_0x21f626['execute']('uploadcareImageEdit'),_0x21f626['editing']['view']['focus']();}),_0x16a818;}),this['_initConfig']();}['_initConfig'](){const _0x2ae5d1=_0x21bc65(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2ae5d1),this['listenTo'](this['editor'],'destroy',()=>{_0x2ae5d1['remove']();});}}class et extends _0x5ab5e0{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-20251019.0",
3
+ "version": "0.0.0-nightly-20251021.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-20251019.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251019.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251019.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251019.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251019.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251019.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251019.0",
33
- "ckeditor5": "0.0.0-nightly-20251019.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251021.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251021.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251021.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251021.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251021.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251021.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251021.0",
33
+ "ckeditor5": "0.0.0-nightly-20251021.0",
34
34
  "@uploadcare/file-uploader": "1.19.4",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51d5ea=_0x140b;(function(_0x51e198,_0x12a02b){const _0x8e78d9=_0x140b,_0x489371=_0x51e198();while(!![]){try{const _0x29987f=-parseInt(_0x8e78d9(0x1ce))/0x1+parseInt(_0x8e78d9(0x1ba))/0x2*(parseInt(_0x8e78d9(0x1bf))/0x3)+parseInt(_0x8e78d9(0x1ea))/0x4*(-parseInt(_0x8e78d9(0x1ed))/0x5)+parseInt(_0x8e78d9(0x1e4))/0x6+parseInt(_0x8e78d9(0x1d3))/0x7*(parseInt(_0x8e78d9(0x1a8))/0x8)+-parseInt(_0x8e78d9(0x1d6))/0x9+parseInt(_0x8e78d9(0x1ae))/0xa;if(_0x29987f===_0x12a02b)break;else _0x489371['push'](_0x489371['shift']());}catch(_0x2235f2){_0x489371['push'](_0x489371['shift']());}}}(_0x81aa,0xda011));import{Plugin as _0x34f78c}from'ckeditor5/src/core.js';import{Dialog as _0x5dbce7}from'ckeditor5/src/ui.js';import{createElement as _0x5a7e69,global as _0xffd82e,uid as _0x19e281}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x59b60e}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x163725}from'./uploadcareuploadadapter.js';function _0x140b(_0x560db3,_0x22bb7c){const _0x81aa93=_0x81aa();return _0x140b=function(_0x140baa,_0x2e0178){_0x140baa=_0x140baa-0x199;let _0x154893=_0x81aa93[_0x140baa];return _0x154893;},_0x140b(_0x560db3,_0x22bb7c);}import{showImageProcessingIndicator as _0x2e4ccf}from'./utils/editingutils.js';function _0x81aa(){const _0x4d8dec=['listenTo','imageBlock','isOfficialPlugin','1425516mSKUlc','PictureEditing','for','uploadcare.pubkey','uploadcare.uploader','upcast','87876Qzxamp','input[uploadcare-file-input]','iconHrefResolver','75XfUSCe','removeAttribute','contentLanguage','downcast','cleanupImage','document','pluginName','_initConversion','execute','ucContextId','replaceImageSource','closeMax','_initSchema','uc-config','getAttribute','fromCharCode','910736mTwqyu','_ctxElement','configElement','config','isPremiumPlugin','isRegistered','2407850QqcXJS','selection','destroy','ctxElement','join','_initConfig','afterInit','extend','editor','UploadcareEditing','uploadcareImageId','elementToAttribute','2CNfTOV','\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','add','_configElement','schema','3075672mpWHvX','querySelector','editing','view','conversion','get','true','href','_initCtx','init','data-uc-image-id','requires','uploadcare','locale','model','397453DQNckJ','appendChild','uploadcareImageReplace','render','commands','28jXGrsJ','getSelectedElement','once','3051270ubUWJM','insertImage','_initImageProcessingIndicator','attributeToAttribute','body','remove','imageInline','map','#uc-icon-arrow-down','uc-upload-ctx-provider','uploader-'];_0x81aa=function(){return _0x4d8dec;};return _0x81aa();}export class UploadcareEditing extends _0x34f78c{[_0x51d5ea(0x1bd)]=null;[_0x51d5ea(0x1a9)]=null;static get[_0x51d5ea(0x19e)](){const _0x521943=_0x51d5ea;return _0x521943(0x1b7);}static get[_0x51d5ea(0x1ca)](){const _0x1eceda=_0x51d5ea;return[_0x1eceda(0x1e5),_0x163725,_0x5dbce7];}static get[_0x51d5ea(0x1e3)](){return!0x0;}static get[_0x51d5ea(0x1ac)](){return!0x0;}[_0x51d5ea(0x1a1)];get[_0x51d5ea(0x1aa)](){const _0x17a7f3=_0x51d5ea;return this[_0x17a7f3(0x1bd)];}get[_0x51d5ea(0x1b1)](){const _0x1e849e=_0x51d5ea;return this[_0x1e849e(0x1a9)];}constructor(_0x5c64a1){const _0x36b9ec=_0x51d5ea;super(_0x5c64a1),this[_0x36b9ec(0x1a1)]=_0x19e281();}[_0x51d5ea(0x1c8)](){const _0x55c109=_0x51d5ea,_0x3bf3aa=this[_0x55c109(0x1b6)];_0x3bf3aa[_0x55c109(0x1d2)][_0x55c109(0x1bc)](_0x55c109(0x1cb),new _0x59b60e(_0x3bf3aa));}[_0x51d5ea(0x1b4)](){const _0x297d75=_0x51d5ea;this[_0x297d75(0x1a4)](),this[_0x297d75(0x19f)](),this[_0x297d75(0x1b3)](),this[_0x297d75(0x1c7)](),this[_0x297d75(0x1d8)](),this[_0x297d75(0x1e1)](this[_0x297d75(0x1b6)],_0x297d75(0x1b0),()=>{const _0x36411d=_0x297d75;this[_0x36411d(0x1bd)]&&(this[_0x36411d(0x1bd)][_0x36411d(0x1db)](),this[_0x36411d(0x1bd)]=null),this[_0x36411d(0x1a9)]&&(this[_0x36411d(0x1a9)][_0x36411d(0x1db)](),this[_0x36411d(0x1a9)]=null);const _0x25cb64=_0xffd82e[_0x36411d(0x19d)][_0x36411d(0x1c0)](_0x36411d(0x1eb));_0x25cb64&&_0x25cb64[_0x36411d(0x1db)]();}),async function(_0x19acf0){const _0x52028d=_0x1f1d16([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1468b3=0x535f8c3a,_0x4ee127=0x5358fa9a^_0x1468b3,_0x5945a5=window[_0x1f1d16([0x44,0x61,0x74,0x65])][_0x1f1d16([0x6e,0x6f,0x77])](),_0x3c092f=_0x19acf0[_0x1f1d16([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3147f4=new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4165f8=>{_0x3c092f[_0x1f1d16([0x6f,0x6e,0x63,0x65])](_0x1f1d16([0x72,0x65,0x61,0x64,0x79]),_0x4165f8);}),_0xb9eec4={[_0x1f1d16([0x6b,0x74,0x79])]:_0x1f1d16([0x45,0x43]),[_0x1f1d16([0x75,0x73,0x65])]:_0x1f1d16([0x73,0x69,0x67]),[_0x1f1d16([0x63,0x72,0x76])]:_0x1f1d16([0x50,0x2d,0x32,0x35,0x36]),[_0x1f1d16([0x78])]:_0x1f1d16([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]),[_0x1f1d16([0x79])]:_0x1f1d16([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]),[_0x1f1d16([0x61,0x6c,0x67])]:_0x1f1d16([0x45,0x53,0x32,0x35,0x36])},_0x327506=_0x3c092f[_0x1f1d16([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f1d16([0x67,0x65,0x74])](_0x1f1d16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2299b9(){let _0x5e44fc,_0x3b539e=null,_0x53996b=null;try{if(_0x327506==_0x1f1d16([0x47,0x50,0x4c]))return _0x1f1d16([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5e44fc=_0x446bdc(),!_0x5e44fc)return _0x1f1d16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5e44fc[_0x1f1d16([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x53996b=_0x36a25e(_0x5e44fc[_0x1f1d16([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5e44fc[_0x1f1d16([0x6a,0x74,0x69])])),await _0x44261a()?_0x46584d()?_0x23b755()?_0x1f1d16([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x124684()?(_0x5e44fc[_0x1f1d16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1d16([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b539e=_0x12af67(_0x1f1d16([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5e44fc[_0x1f1d16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f1d16([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b539e=_0x12af67(_0x1f1d16([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1aff04()):_0x1f1d16([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1d16([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f1d16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f1d16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x23b755(){const _0x442ff9=[_0x1f1d16([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f1d16([0x74,0x72,0x69,0x61,0x6c])][_0x1f1d16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e44fc[_0x1f1d16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5945a5/0x3e8:0xe10*_0x4ee127;return _0x5e44fc[_0x1f1d16([0x65,0x78,0x70])]<_0x442ff9;}function _0x46584d(){const _0x460758=_0x5e44fc[_0x1f1d16([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x460758&&(!!_0x460758[_0x1f1d16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1d16([0x2a]))||!!_0x460758[_0x1f1d16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1d16([0x55,0x50,0x4c,0x43])));}function _0x124684(){const _0x3188df=_0x140b,_0x546b1f=_0x5e44fc[_0x1f1d16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x546b1f||0x0==_0x546b1f[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9568e4}=new URL(window[_0x1f1d16([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3188df(0x1c6)]);if(_0x546b1f[_0x1f1d16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9568e4))return!0x0;const _0x4aabf9=_0x9568e4[_0x1f1d16([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d16([0x2e]));return _0x546b1f[_0x1f1d16([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x391cd3=>_0x391cd3[_0x1f1d16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f1d16([0x2a])))[_0x1f1d16([0x6d,0x61,0x70])](_0x59094e=>_0x59094e[_0x1f1d16([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d16([0x2e])))[_0x1f1d16([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x309f90=>_0x309f90[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4aabf9[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f1d16([0x6d,0x61,0x70])](_0x12890d=>Array(_0x4aabf9[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x12890d[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f1d16([0x66,0x69,0x6c,0x6c])](_0x12890d[0x0]===_0x1f1d16([0x2a])?_0x1f1d16([0x2a]):'')[_0x1f1d16([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x12890d))[_0x1f1d16([0x73,0x6f,0x6d,0x65])](_0x56bf60=>_0x4aabf9[_0x1f1d16([0x65,0x76,0x65,0x72,0x79])]((_0x156ad7,_0xe7e303)=>_0x56bf60[_0xe7e303]===_0x156ad7||_0x56bf60[_0xe7e303]===_0x1f1d16([0x2a])));}function _0x1aff04(){return _0x3b539e&&_0x53996b?new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e55b0,_0x498089)=>{_0x3b539e[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0x4e55b0,_0x498089),_0x53996b[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0x236d7a=>{_0x236d7a!=_0x1f1d16([0x56,0x61,0x6c,0x69,0x64])&&_0x4e55b0(_0x236d7a);},_0x498089);}):_0x3b539e||_0x53996b||_0x1f1d16([0x56,0x61,0x6c,0x69,0x64]);}}function _0x36a25e(_0x260fcf,_0x37511a){return new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d5394=>{if(_0x972b34())return _0x2d5394(_0x1f1d16([0x56,0x61,0x6c,0x69,0x64]));_0x366afe(),_0x3c092f[_0x1f1d16([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f1d16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x50c43e=!0x1;const _0x452b14=_0x19e281();function _0x2e2387(_0x2b3e82){return!!_0x2b3e82&&(typeof _0x2b3e82===_0x1f1d16([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b3e82===_0x1f1d16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b3e82[_0x1f1d16([0x74,0x68,0x65,0x6e])]===_0x1f1d16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b3e82[_0x1f1d16([0x63,0x61,0x74,0x63,0x68])]===_0x1f1d16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17a5ba(_0x2aebc9){_0x368ede(_0x2aebc9)[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0x3accb1=>{if(!_0x3accb1||_0x3accb1[_0x1f1d16([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f1d16([0x6f,0x6b]))return _0x1f1d16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x130b67(_0xc3083d(_0x452b14+_0x37511a))!=_0x3accb1[_0x1f1d16([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f1d16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f1d16([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0x558322=>(_0x44d20c(),_0x558322),()=>{const _0x59d7d4=_0x1db60d();return null==_0x59d7d4?(_0x44d20c(),_0x1f1d16([0x56,0x61,0x6c,0x69,0x64])):_0x1f1d16(_0x5945a5-_0x59d7d4>(0x7753083a^_0x1468b3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0x2d5394)[_0x1f1d16([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d5394(_0x1f1d16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xa3baa1=0x536962ba^_0x1468b3;function _0x44d20c(){const _0x44be7e=_0x1f1d16([0x6c,0x6c,0x63,0x74,0x2d])+_0x130b67(_0xc3083d(_0x260fcf)),_0x392f4d=_0x30c1c0(_0x130b67(window[_0x1f1d16([0x4d,0x61,0x74,0x68])][_0x1f1d16([0x63,0x65,0x69,0x6c])](_0x5945a5/_0xa3baa1)));window[_0x1f1d16([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1d16([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44be7e,_0x392f4d);}function _0x1db60d(){const _0x2f506e=_0x1f1d16([0x6c,0x6c,0x63,0x74,0x2d])+_0x130b67(_0xc3083d(_0x260fcf)),_0x5aef01=window[_0x1f1d16([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f1d16([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f506e);return _0x5aef01?window[_0x1f1d16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30c1c0(_0x5aef01),0x10)*_0xa3baa1:null;}function _0x368ede(_0x3f6601){return new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xb79513,_0x507484)=>{_0x3f6601[_0x1f1d16([0x74,0x68,0x65,0x6e])](_0xb79513,_0x507484),window[_0x1f1d16([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x507484,0x535e58fa^_0x1468b3);});}}_0x3c092f[_0x1f1d16([0x6f,0x6e])](_0x1f1d16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c1105,_0x3f42aa)=>{if(_0x3f42aa[0x0]!=_0x260fcf)return _0x2d5394(_0x1f1d16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f42aa[0x1]={..._0x3f42aa[0x1],[_0x1f1d16([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x452b14};},{[_0x1f1d16([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1d16([0x68,0x69,0x67,0x68])}),_0x3c092f[_0x1f1d16([0x6f,0x6e])](_0x1f1d16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4b02c5=>{_0x2e2387(_0x4b02c5[_0x1f1d16([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x50c43e=!0x0,_0x17a5ba(_0x4b02c5[_0x1f1d16([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f1d16([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f1d16([0x6c,0x6f,0x77])}),_0x3147f4[_0x1f1d16([0x74,0x68,0x65,0x6e])](()=>{_0x50c43e||_0x2d5394(_0x1f1d16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x972b34(){return _0x3c092f[_0x1f1d16([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1d16([0x76,0x69,0x65,0x77])][_0x1f1d16([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f1d16([0x61,0x75,0x74,0x6f]);}function _0x366afe(){_0x3c092f[_0x1f1d16([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f1d16([0x76,0x69,0x65,0x77])][_0x1f1d16([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f1d16([0x61,0x75,0x74,0x6f]);}}function _0x12af67(_0x13edd5){const _0x5417fa=[new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2076fa=>setTimeout(_0x2076fa,0x5356b2f6^_0x1468b3)),_0x3147f4[_0x1f1d16([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bb99e=>{let _0x55fc29=0x0;_0x3c092f[_0x1f1d16([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1d16([0x6f,0x6e])](_0x1f1d16([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x506454,_0x3198e7)=>{_0x3198e7[0x0][_0x1f1d16([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55fc29++,_0x55fc29==(0x535f8dc2^_0x1468b3)&&(_0x2bb99e(),_0x506454[_0x1f1d16([0x6f,0x66,0x66])]());});}))];return window[_0x1f1d16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f1d16([0x72,0x61,0x63,0x65])](_0x5417fa)[_0x1f1d16([0x74,0x68,0x65,0x6e])](()=>_0x13edd5);}async function _0x3b93f1(){await _0x3147f4,_0x3c092f[_0x1f1d16([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1d16([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x150d52,_0x3c092f[_0x1f1d16([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f1d16([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x150d52,_0x3c092f[_0x1f1d16([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f1d16([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x323b8a(_0x52e5e1){const _0x531bb6=_0x25b58c();_0x3c092f[_0x531bb6]=_0x1f1d16([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52e5e1,_0x52e5e1!=_0x1f1d16([0x56,0x61,0x6c,0x69,0x64])&&_0x3b93f1();}function _0x25b58c(){const _0x2077ce=window[_0x1f1d16([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f1d16([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f1d16([0x6e,0x6f,0x77])]())[_0x1f1d16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f1d16([0x2e]),'');let _0x2a8266=_0x1f1d16([0x68]);for(let _0x11973c=0x0;_0x11973c<_0x2077ce[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11973c+=0x2){let _0x17fd67=window[_0x1f1d16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2077ce[_0x1f1d16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11973c,_0x11973c+0x2));_0x17fd67>=_0x52028d[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x17fd67-=_0x52028d[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a8266+=_0x52028d[_0x17fd67];}return _0x2a8266;}function _0x446bdc(){const _0x139e06=_0x327506[_0x1f1d16([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d16([0x2e]));if(0x3!=_0x139e06[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ef542(_0x139e06[0x1]);function _0x2ef542(_0x3685fa){const _0x54befa=_0x20e18b(_0x3685fa);return _0x54befa&&_0x49f5b4()?_0x54befa:null;function _0x49f5b4(){const _0x315f65=_0x54befa[_0x1f1d16([0x6a,0x74,0x69])],_0x32356f=window[_0x1f1d16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x315f65[_0x1f1d16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x315f65[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d289a={..._0x54befa,[_0x1f1d16([0x6a,0x74,0x69])]:_0x315f65[_0x1f1d16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x315f65[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d289a[_0x1f1d16([0x76,0x63])],_0xc3083d(_0x4d289a)==_0x32356f;}}}async function _0x44261a(){let _0x1f84a6=!0x0;try{const _0x8297cb=_0x327506[_0x1f1d16([0x73,0x70,0x6c,0x69,0x74])](_0x1f1d16([0x2e])),[_0x1144b,_0x1060ae,_0x2ac01d]=_0x8297cb;return _0x480d79(_0x1144b),await _0x59d255(_0x1144b,_0x1060ae,_0x2ac01d),_0x1f84a6;}catch{return!0x1;}function _0x480d79(_0x4a724d){const _0x1fb667=_0x20e18b(_0x4a724d);_0x1fb667&&_0x1fb667[_0x1f1d16([0x61,0x6c,0x67])]==_0x1f1d16([0x45,0x53,0x32,0x35,0x36])||(_0x1f84a6=!0x1);}async function _0x59d255(_0x5a6f8f,_0x3a241a,_0x561a44){const _0x28ad74=window[_0x1f1d16([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f1d16([0x66,0x72,0x6f,0x6d])](_0x280ffb(_0x561a44),_0x33bbae=>_0x33bbae[_0x1f1d16([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1525a3=new window[(_0x1f1d16([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f1d16([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a6f8f+_0x1f1d16([0x2e])+_0x3a241a),_0x212e08=window[_0x1f1d16([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f1d16([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x212e08)return;const _0xa81b01=await _0x212e08[_0x1f1d16([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f1d16([0x6a,0x77,0x6b]),_0xb9eec4,{[_0x1f1d16([0x6e,0x61,0x6d,0x65])]:_0x1f1d16([0x45,0x43,0x44,0x53,0x41]),[_0x1f1d16([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f1d16([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f1d16([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x212e08[_0x1f1d16([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f1d16([0x6e,0x61,0x6d,0x65])]:_0x1f1d16([0x45,0x43,0x44,0x53,0x41]),[_0x1f1d16([0x68,0x61,0x73,0x68])]:{[_0x1f1d16([0x6e,0x61,0x6d,0x65])]:_0x1f1d16([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa81b01,_0x28ad74,_0x1525a3)||(_0x1f84a6=!0x1);}}function _0x20e18b(_0x56b694){return _0x56b694[_0x1f1d16([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f1d16([0x65,0x79]))?JSON[_0x1f1d16([0x70,0x61,0x72,0x73,0x65])](_0x280ffb(_0x56b694)):null;}function _0x280ffb(_0x3b1d9b){return window[_0x1f1d16([0x61,0x74,0x6f,0x62])](_0x3b1d9b[_0x1f1d16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f1d16([0x2b]))[_0x1f1d16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f1d16([0x2f])));}function _0xc3083d(_0xae2f2c){let _0x293537=0x1505;function _0x5e898c(_0x228696){for(let _0x14071d=0x0;_0x14071d<_0x228696[_0x1f1d16([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14071d++){const _0x4eabfe=_0x228696[_0x1f1d16([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14071d);_0x293537=(_0x293537<<0x5)+_0x293537+_0x4eabfe,_0x293537&=_0x293537;}}function _0x67b919(_0x18a88f){Array[_0x1f1d16([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x18a88f)?_0x18a88f[_0x1f1d16([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x67b919):_0x18a88f&&typeof _0x18a88f==_0x1f1d16([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f1d16([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x18a88f)[_0x1f1d16([0x73,0x6f,0x72,0x74])]()[_0x1f1d16([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4752ce,_0x11d973])=>{_0x5e898c(_0x4752ce),_0x67b919(_0x11d973);}):_0x5e898c(window[_0x1f1d16([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x18a88f));}return _0x67b919(_0xae2f2c),_0x293537>>>0x0;}function _0x130b67(_0x24af36){return _0x24af36[_0x1f1d16([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f1d16([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f1d16([0x30]));}function _0x30c1c0(_0x3594aa){return _0x3594aa[_0x1f1d16([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f1d16([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f1d16([0x6a,0x6f,0x69,0x6e])]('');}function _0x150d52(){}function _0x1f1d16(_0x3f0c1f){const _0x32101a=_0x140b;return _0x3f0c1f[_0x32101a(0x1dd)](_0x49a4aa=>String[_0x32101a(0x1a7)](_0x49a4aa))[_0x32101a(0x1b2)]('');}_0x323b8a(await _0x2299b9());}(this);}[_0x51d5ea(0x1a4)](){const _0xe27fbd=_0x51d5ea,_0x55f5e1=this[_0xe27fbd(0x1b6)][_0xe27fbd(0x1cd)][_0xe27fbd(0x1be)];_0x55f5e1[_0xe27fbd(0x1ad)](_0xe27fbd(0x1e2))&&_0x55f5e1[_0xe27fbd(0x1b5)](_0xe27fbd(0x1e2),{'allowAttributes':[_0xe27fbd(0x1b8)]}),_0x55f5e1[_0xe27fbd(0x1ad)](_0xe27fbd(0x1dc))&&_0x55f5e1[_0xe27fbd(0x1b5)](_0xe27fbd(0x1dc),{'allowAttributes':[_0xe27fbd(0x1b8)]});}[_0x51d5ea(0x19f)](){const _0x273748=_0x51d5ea,_0x1d353d=this[_0x273748(0x1b6)];_0x1d353d[_0x273748(0x1c3)][_0x273748(0x1e6)](_0x273748(0x19b))[_0x273748(0x1d9)]({'model':_0x273748(0x1b8),'view':_0x273748(0x1c9)}),_0x1d353d[_0x273748(0x1c3)][_0x273748(0x1e6)](_0x273748(0x1e9))[_0x273748(0x1b9)]({'model':{'key':_0x273748(0x1b8),'value':_0x2cbeea=>_0x2cbeea[_0x273748(0x1a6)](_0x273748(0x1c9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1d6ae5=_0x1d353d[_0x273748(0x1d2)][_0x273748(0x1c4)](_0x273748(0x1a2));_0x1d6ae5&&this[_0x273748(0x1e1)](_0x1d6ae5,_0x273748(0x19c),(_0x5cf6f6,[_0x4e9142,_0x1f6d15])=>{const _0x4101bf=_0x273748;_0x4e9142[_0x4101bf(0x199)](_0x4101bf(0x1b8),_0x1f6d15);});}[_0x51d5ea(0x1b3)](){const _0x20755e=_0x51d5ea,_0x3619db=this[_0x20755e(0x1b6)][_0x20755e(0x1ab)][_0x20755e(0x1c4)](_0x20755e(0x1e8))||{},_0x1e4b86=this[_0x20755e(0x1b6)][_0x20755e(0x1ab)][_0x20755e(0x1c4)](_0x20755e(0x1e7))||'';this[_0x20755e(0x1bd)]=_0x5a7e69(_0xffd82e[_0x20755e(0x19d)],_0x20755e(0x1a5),{..._0x3619db,'pubkey':_0x1e4b86,'ctx-name':_0x20755e(0x1e0)+this[_0x20755e(0x1a1)],'sourceList':'','imgOnly':_0x20755e(0x1c5),'removeCopyright':_0x20755e(0x1c5),'localeName':this[_0x20755e(0x1b6)][_0x20755e(0x1cc)][_0x20755e(0x19a)],'externalSourcesEmbedCss':_0x20755e(0x1bb)}),this[_0x20755e(0x1bd)][_0x20755e(0x1ec)]=_0x3df5f1=>{const _0x3ac8b8=_0x20755e;if(_0x3ac8b8(0x1a3)==_0x3df5f1)return _0x3ac8b8(0x1de);},_0xffd82e[_0x20755e(0x19d)][_0x20755e(0x1da)][_0x20755e(0x1cf)](this[_0x20755e(0x1bd)]);}[_0x51d5ea(0x1c7)](){const _0x63e210=_0x51d5ea;this[_0x63e210(0x1a9)]=_0x5a7e69(_0xffd82e[_0x63e210(0x19d)],_0x63e210(0x1df),{'ctx-name':_0x63e210(0x1e0)+this[_0x63e210(0x1a1)]}),_0xffd82e[_0x63e210(0x19d)][_0x63e210(0x1da)][_0x63e210(0x1cf)](this[_0x63e210(0x1a9)]);}[_0x51d5ea(0x1d8)](){const _0x6a716e=_0x51d5ea,_0x4f86c2=this[_0x6a716e(0x1b6)][_0x6a716e(0x1d2)][_0x6a716e(0x1c4)](_0x6a716e(0x1d7));_0x4f86c2&&this[_0x6a716e(0x1e1)](_0x4f86c2,_0x6a716e(0x1a0),()=>{const _0x1c40c5=_0x6a716e,_0x1739cc=this[_0x1c40c5(0x1b6)][_0x1c40c5(0x1cd)][_0x1c40c5(0x19d)][_0x1c40c5(0x1af)][_0x1c40c5(0x1d4)]();_0x1739cc&&_0x1739cc[_0x1c40c5(0x1a6)](_0x1c40c5(0x1b8))&&this[_0x1c40c5(0x1b6)][_0x1c40c5(0x1c1)][_0x1c40c5(0x1c2)][_0x1c40c5(0x1d5)](_0x1c40c5(0x1d1),()=>{const _0x346cd8=_0x1c40c5;_0x2e4ccf(this[_0x346cd8(0x1b6)],_0x1739cc);});});const _0x1c0e9c=this[_0x6a716e(0x1b6)][_0x6a716e(0x1d2)][_0x6a716e(0x1c4)](_0x6a716e(0x1d0));_0x1c0e9c&&this[_0x6a716e(0x1e1)](_0x1c0e9c,_0x6a716e(0x1a0),()=>{const _0xf3a13c=_0x6a716e,_0xc7ab2b=this[_0xf3a13c(0x1b6)][_0xf3a13c(0x1cd)][_0xf3a13c(0x19d)][_0xf3a13c(0x1af)][_0xf3a13c(0x1d4)]();_0xc7ab2b&&_0xc7ab2b[_0xf3a13c(0x1a6)](_0xf3a13c(0x1b8))&&this[_0xf3a13c(0x1b6)][_0xf3a13c(0x1c1)][_0xf3a13c(0x1c2)][_0xf3a13c(0x1d5)](_0xf3a13c(0x1d1),()=>{const _0x53edd5=_0xf3a13c;_0x2e4ccf(this[_0x53edd5(0x1b6)],_0xc7ab2b);});});}}
23
+ const _0x3d3123=_0x4525;(function(_0x56a265,_0x8950ed){const _0x3c4b3a=_0x4525,_0x293877=_0x56a265();while(!![]){try{const _0x50d415=parseInt(_0x3c4b3a(0x1fd))/0x1*(-parseInt(_0x3c4b3a(0x206))/0x2)+-parseInt(_0x3c4b3a(0x1fe))/0x3+parseInt(_0x3c4b3a(0x204))/0x4*(parseInt(_0x3c4b3a(0x240))/0x5)+-parseInt(_0x3c4b3a(0x20b))/0x6*(-parseInt(_0x3c4b3a(0x241))/0x7)+-parseInt(_0x3c4b3a(0x208))/0x8*(-parseInt(_0x3c4b3a(0x210))/0x9)+parseInt(_0x3c4b3a(0x23b))/0xa+-parseInt(_0x3c4b3a(0x20f))/0xb*(parseInt(_0x3c4b3a(0x226))/0xc);if(_0x50d415===_0x8950ed)break;else _0x293877['push'](_0x293877['shift']());}catch(_0x4a0e37){_0x293877['push'](_0x293877['shift']());}}}(_0x3ba0,0x4fa1c));import{Plugin as _0x12efc3}from'ckeditor5/src/core.js';import{Dialog as _0x225bd4}from'ckeditor5/src/ui.js';function _0x3ba0(){const _0x588639=['document','true','UploadcareEditing','elementToAttribute','commands','uploader-','attributeToAttribute','replaceImageSource','isOfficialPlugin','href','locale','2DeFphH','65187hSjgqq','remove','add','closeMax','cleanupImage','extend','88tSYbeL','uc-upload-ctx-provider','444520MrxWyr','execute','282304kNcpUS','pluginName','ctxElement','192tkKgFb','get','uploadcare','schema','6084782QzPMop','162vccJpv','imageInline','fromCharCode','_initImageProcessingIndicator','_ctxElement','requires','iconHrefResolver','_initCtx','\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','once','uploadcare.uploader','body','editing','uploadcareImageId','_initConversion','contentLanguage','isRegistered','upcast','getSelectedElement','uc-config','_configElement','afterInit','24BQyfUQ','PictureEditing','downcast','#uc-icon-arrow-down','render','destroy','view','querySelector','imageBlock','appendChild','_initConfig','listenTo','getAttribute','input[uploadcare-file-input]','data-uc-image-id','removeAttribute','config','uploadcareImageReplace','join','configElement','model','4768350lDQpDC','ucContextId','uploadcare.pubkey','for','conversion','136845atrrmV','40383FZcSeE','isPremiumPlugin','init','insertImage','_initSchema','map','editor','selection'];_0x3ba0=function(){return _0x588639;};return _0x3ba0();}import{createElement as _0x54e05c,global as _0x446359,uid as _0x241b61}from'ckeditor5/src/utils.js';function _0x4525(_0x45a877,_0x1c93eb){const _0x3ba080=_0x3ba0();return _0x4525=function(_0x45251c,_0x2b6ac8){_0x45251c=_0x45251c-0x1ee;let _0x5f2faa=_0x3ba080[_0x45251c];return _0x5f2faa;},_0x4525(_0x45a877,_0x1c93eb);}import{UploadcareCommand as _0xfd159b}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x91f705}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5ed4aa}from'./utils/editingutils.js';export class UploadcareEditing extends _0x12efc3{[_0x3d3123(0x224)]=null;[_0x3d3123(0x214)]=null;static get[_0x3d3123(0x209)](){const _0x2b383e=_0x3d3123;return _0x2b383e(0x1f4);}static get[_0x3d3123(0x215)](){const _0xd8b576=_0x3d3123;return[_0xd8b576(0x227),_0x91f705,_0x225bd4];}static get[_0x3d3123(0x1fa)](){return!0x0;}static get[_0x3d3123(0x242)](){return!0x0;}[_0x3d3123(0x23c)];get[_0x3d3123(0x239)](){const _0x404c3e=_0x3d3123;return this[_0x404c3e(0x224)];}get[_0x3d3123(0x20a)](){const _0x290374=_0x3d3123;return this[_0x290374(0x214)];}constructor(_0x402a02){const _0x2b12de=_0x3d3123;super(_0x402a02),this[_0x2b12de(0x23c)]=_0x241b61();}[_0x3d3123(0x243)](){const _0xd610c2=_0x3d3123,_0x3954da=this[_0xd610c2(0x1f0)];_0x3954da[_0xd610c2(0x1f6)][_0xd610c2(0x200)](_0xd610c2(0x20d),new _0xfd159b(_0x3954da));}[_0x3d3123(0x225)](){const _0x39485f=_0x3d3123;this[_0x39485f(0x1ee)](),this[_0x39485f(0x21e)](),this[_0x39485f(0x230)](),this[_0x39485f(0x217)](),this[_0x39485f(0x213)](),this[_0x39485f(0x231)](this[_0x39485f(0x1f0)],_0x39485f(0x22b),()=>{const _0x5a9eeb=_0x39485f;this[_0x5a9eeb(0x224)]&&(this[_0x5a9eeb(0x224)][_0x5a9eeb(0x1ff)](),this[_0x5a9eeb(0x224)]=null),this[_0x5a9eeb(0x214)]&&(this[_0x5a9eeb(0x214)][_0x5a9eeb(0x1ff)](),this[_0x5a9eeb(0x214)]=null);const _0x348c88=_0x446359[_0x5a9eeb(0x1f2)][_0x5a9eeb(0x22d)](_0x5a9eeb(0x233));_0x348c88&&_0x348c88[_0x5a9eeb(0x1ff)]();}),async function(_0x4298a9){const _0x2e654b=_0x6ef0f([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x3da315=0x535f8c3a,_0x3b838f=0x5358faea^_0x3da315,_0x1c06ca=window[_0x6ef0f([0x44,0x61,0x74,0x65])][_0x6ef0f([0x6e,0x6f,0x77])](),_0x55aa20=_0x4298a9[_0x6ef0f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47ff30=new window[(_0x6ef0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16069f=>{_0x55aa20[_0x6ef0f([0x6f,0x6e,0x63,0x65])](_0x6ef0f([0x72,0x65,0x61,0x64,0x79]),_0x16069f);}),_0x444267={[_0x6ef0f([0x6b,0x74,0x79])]:_0x6ef0f([0x45,0x43]),[_0x6ef0f([0x75,0x73,0x65])]:_0x6ef0f([0x73,0x69,0x67]),[_0x6ef0f([0x63,0x72,0x76])]:_0x6ef0f([0x50,0x2d,0x32,0x35,0x36]),[_0x6ef0f([0x78])]:_0x6ef0f([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]),[_0x6ef0f([0x79])]:_0x6ef0f([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]),[_0x6ef0f([0x61,0x6c,0x67])]:_0x6ef0f([0x45,0x53,0x32,0x35,0x36])},_0x5936ff=_0x55aa20[_0x6ef0f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x6ef0f([0x67,0x65,0x74])](_0x6ef0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x42810d(){let _0x346a6b,_0x4d8a1f=null,_0x1c7ad3=null;try{if(_0x5936ff==_0x6ef0f([0x47,0x50,0x4c]))return _0x6ef0f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x346a6b=_0x4c400e(),!_0x346a6b)return _0x6ef0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x346a6b[_0x6ef0f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c7ad3=_0xbbb8ce(_0x346a6b[_0x6ef0f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x346a6b[_0x6ef0f([0x6a,0x74,0x69])])),await _0x3299e0()?_0x16fb71()?_0x5c85bc()?_0x6ef0f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1e65f0()?(_0x346a6b[_0x6ef0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6ef0f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d8a1f=_0x19b0fc(_0x6ef0f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x346a6b[_0x6ef0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6ef0f([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d8a1f=_0x19b0fc(_0x6ef0f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x27cc97()):_0x6ef0f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x6ef0f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x6ef0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x6ef0f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c85bc(){const _0x1b1c9b=[_0x6ef0f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x6ef0f([0x74,0x72,0x69,0x61,0x6c])][_0x6ef0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x346a6b[_0x6ef0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1c06ca/0x3e8:0xe10*_0x3b838f;return _0x346a6b[_0x6ef0f([0x65,0x78,0x70])]<_0x1b1c9b;}function _0x16fb71(){const _0x3322bc=_0x346a6b[_0x6ef0f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3322bc&&(!!_0x3322bc[_0x6ef0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6ef0f([0x2a]))||!!_0x3322bc[_0x6ef0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6ef0f([0x55,0x50,0x4c,0x43])));}function _0x1e65f0(){const _0x3607b7=_0x4525,_0x5c246b=_0x346a6b[_0x6ef0f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c246b||0x0==_0x5c246b[_0x6ef0f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x180428}=new URL(window[_0x6ef0f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3607b7(0x1fb)]);if(_0x5c246b[_0x6ef0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x180428))return!0x0;const _0x35ddb5=_0x180428[_0x6ef0f([0x73,0x70,0x6c,0x69,0x74])](_0x6ef0f([0x2e]));return _0x5c246b[_0x6ef0f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xba33a5=>_0xba33a5[_0x6ef0f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6ef0f([0x2a])))[_0x6ef0f([0x6d,0x61,0x70])](_0x5d2378=>_0x5d2378[_0x6ef0f([0x73,0x70,0x6c,0x69,0x74])](_0x6ef0f([0x2e])))[_0x6ef0f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29ef0c=>_0x29ef0c[_0x6ef0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x35ddb5[_0x6ef0f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6ef0f([0x6d,0x61,0x70])](_0x767361=>Array(_0x35ddb5[_0x6ef0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x767361[_0x6ef0f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6ef0f([0x66,0x69,0x6c,0x6c])](_0x767361[0x0]===_0x6ef0f([0x2a])?_0x6ef0f([0x2a]):'')[_0x6ef0f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x767361))[_0x6ef0f([0x73,0x6f,0x6d,0x65])](_0x26b0ed=>_0x35ddb5[_0x6ef0f([0x65,0x76,0x65,0x72,0x79])]((_0x151536,_0x30d45f)=>_0x26b0ed[_0x30d45f]===_0x151536||_0x26b0ed[_0x30d45f]===_0x6ef0f([0x2a])));}function _0x27cc97(){return _0x4d8a1f&&_0x1c7ad3?new window[(_0x6ef0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42bf4f,_0x299e5a)=>{_0x4d8a1f[_0x6ef0f([0x74,0x68,0x65,0x6e])](_0x42bf4f,_0x299e5a),_0x1c7ad3[_0x6ef0f([0x74,0x68,0x65,0x6e])](_0x5637f9=>{_0x5637f9!=_0x6ef0f([0x56,0x61,0x6c,0x69,0x64])&&_0x42bf4f(_0x5637f9);},_0x299e5a);}):_0x4d8a1f||_0x1c7ad3||_0x6ef0f([0x56,0x61,0x6c,0x69,0x64]);}}function _0xbbb8ce(_0x510359,_0x1c9264){return new window[(_0x6ef0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c86a4=>{if(_0x5c24ca())return _0x3c86a4(_0x6ef0f([0x56,0x61,0x6c,0x69,0x64]));_0x4129b8(),_0x55aa20[_0x6ef0f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x6ef0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d3cd7=!0x1;const _0x2055a2=_0x241b61();function _0x49263c(_0x20f0f0){return!!_0x20f0f0&&(typeof _0x20f0f0===_0x6ef0f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x20f0f0===_0x6ef0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x20f0f0[_0x6ef0f([0x74,0x68,0x65,0x6e])]===_0x6ef0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x20f0f0[_0x6ef0f([0x63,0x61,0x74,0x63,0x68])]===_0x6ef0f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xcab3f6(_0x270744){_0x298cb2(_0x270744)[_0x6ef0f([0x74,0x68,0x65,0x6e])](_0x43afcb=>{if(!_0x43afcb||_0x43afcb[_0x6ef0f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x6ef0f([0x6f,0x6b]))return _0x6ef0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e31d6(_0x52f5a4(_0x2055a2+_0x1c9264))!=_0x43afcb[_0x6ef0f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x6ef0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x6ef0f([0x56,0x61,0x6c,0x69,0x64]);})[_0x6ef0f([0x74,0x68,0x65,0x6e])](_0x533adc=>(_0x3fbd24(),_0x533adc),()=>{const _0x3fba33=_0x25458e();return null==_0x3fba33?(_0x3fbd24(),_0x6ef0f([0x56,0x61,0x6c,0x69,0x64])):_0x6ef0f(_0x1c06ca-_0x3fba33>(0x7753083a^_0x3da315)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x6ef0f([0x74,0x68,0x65,0x6e])](_0x3c86a4)[_0x6ef0f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c86a4(_0x6ef0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d0229=0x536962ba^_0x3da315;function _0x3fbd24(){const _0x2e8faf=_0x6ef0f([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e31d6(_0x52f5a4(_0x510359)),_0x46e255=_0x19ecaf(_0x4e31d6(window[_0x6ef0f([0x4d,0x61,0x74,0x68])][_0x6ef0f([0x63,0x65,0x69,0x6c])](_0x1c06ca/_0x5d0229)));window[_0x6ef0f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6ef0f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e8faf,_0x46e255);}function _0x25458e(){const _0x4b826f=_0x6ef0f([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e31d6(_0x52f5a4(_0x510359)),_0x16425d=window[_0x6ef0f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6ef0f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b826f);return _0x16425d?window[_0x6ef0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19ecaf(_0x16425d),0x10)*_0x5d0229:null;}function _0x298cb2(_0x1ab9ed){return new window[(_0x6ef0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d82cf,_0x4d22cd)=>{_0x1ab9ed[_0x6ef0f([0x74,0x68,0x65,0x6e])](_0x2d82cf,_0x4d22cd),window[_0x6ef0f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d22cd,0x535e58fa^_0x3da315);});}}_0x55aa20[_0x6ef0f([0x6f,0x6e])](_0x6ef0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x24184c,_0x3649f7)=>{if(_0x3649f7[0x0]!=_0x510359)return _0x3c86a4(_0x6ef0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3649f7[0x1]={..._0x3649f7[0x1],[_0x6ef0f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2055a2};},{[_0x6ef0f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6ef0f([0x68,0x69,0x67,0x68])}),_0x55aa20[_0x6ef0f([0x6f,0x6e])](_0x6ef0f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37b346=>{_0x49263c(_0x37b346[_0x6ef0f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d3cd7=!0x0,_0xcab3f6(_0x37b346[_0x6ef0f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x6ef0f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6ef0f([0x6c,0x6f,0x77])}),_0x47ff30[_0x6ef0f([0x74,0x68,0x65,0x6e])](()=>{_0x5d3cd7||_0x3c86a4(_0x6ef0f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5c24ca(){return _0x55aa20[_0x6ef0f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6ef0f([0x76,0x69,0x65,0x77])][_0x6ef0f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x6ef0f([0x61,0x75,0x74,0x6f]);}function _0x4129b8(){_0x55aa20[_0x6ef0f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6ef0f([0x76,0x69,0x65,0x77])][_0x6ef0f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6ef0f([0x61,0x75,0x74,0x6f]);}}function _0x19b0fc(_0xc2f83b){const _0x37fad6=[new window[(_0x6ef0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x143635=>setTimeout(_0x143635,0x5356b2f6^_0x3da315)),_0x47ff30[_0x6ef0f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x6ef0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a9dfc=>{let _0x25f912=0x0;_0x55aa20[_0x6ef0f([0x6d,0x6f,0x64,0x65,0x6c])][_0x6ef0f([0x6f,0x6e])](_0x6ef0f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4fd98f,_0x34b2d5)=>{_0x34b2d5[0x0][_0x6ef0f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x25f912++,_0x25f912==(0x535f8dc2^_0x3da315)&&(_0x3a9dfc(),_0x4fd98f[_0x6ef0f([0x6f,0x66,0x66])]());});}))];return window[_0x6ef0f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6ef0f([0x72,0x61,0x63,0x65])](_0x37fad6)[_0x6ef0f([0x74,0x68,0x65,0x6e])](()=>_0xc2f83b);}async function _0x3a28b3(){await _0x47ff30,_0x55aa20[_0x6ef0f([0x6d,0x6f,0x64,0x65,0x6c])][_0x6ef0f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c2b13,_0x55aa20[_0x6ef0f([0x6d,0x6f,0x64,0x65,0x6c])][_0x6ef0f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c2b13,_0x55aa20[_0x6ef0f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x6ef0f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15e0d9(_0x22f2a3){const _0x33d09f=_0x35fee6();_0x55aa20[_0x33d09f]=_0x6ef0f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x22f2a3,_0x22f2a3!=_0x6ef0f([0x56,0x61,0x6c,0x69,0x64])&&_0x3a28b3();}function _0x35fee6(){const _0x5c0d71=window[_0x6ef0f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x6ef0f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x6ef0f([0x6e,0x6f,0x77])]())[_0x6ef0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x6ef0f([0x2e]),'');let _0x3d0491=_0x6ef0f([0x68]);for(let _0x235cb0=0x0;_0x235cb0<_0x5c0d71[_0x6ef0f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x235cb0+=0x2){let _0x5e711f=window[_0x6ef0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c0d71[_0x6ef0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x235cb0,_0x235cb0+0x2));_0x5e711f>=_0x2e654b[_0x6ef0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e711f-=_0x2e654b[_0x6ef0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3d0491+=_0x2e654b[_0x5e711f];}return _0x3d0491;}function _0x4c400e(){const _0x20e7fd=_0x5936ff[_0x6ef0f([0x73,0x70,0x6c,0x69,0x74])](_0x6ef0f([0x2e]));if(0x3!=_0x20e7fd[_0x6ef0f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x44fa74(_0x20e7fd[0x1]);function _0x44fa74(_0xdee663){const _0x45461c=_0x439ada(_0xdee663);return _0x45461c&&_0x4e6ac8()?_0x45461c:null;function _0x4e6ac8(){const _0x3c2d98=_0x45461c[_0x6ef0f([0x6a,0x74,0x69])],_0x6729aa=window[_0x6ef0f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c2d98[_0x6ef0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c2d98[_0x6ef0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x30e051={..._0x45461c,[_0x6ef0f([0x6a,0x74,0x69])]:_0x3c2d98[_0x6ef0f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c2d98[_0x6ef0f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x30e051[_0x6ef0f([0x76,0x63])],_0x52f5a4(_0x30e051)==_0x6729aa;}}}async function _0x3299e0(){let _0x30c6cc=!0x0;try{const _0x39e8e7=_0x5936ff[_0x6ef0f([0x73,0x70,0x6c,0x69,0x74])](_0x6ef0f([0x2e])),[_0x2891c2,_0x27d8b7,_0x36df41]=_0x39e8e7;return _0x42aef5(_0x2891c2),await _0x360e39(_0x2891c2,_0x27d8b7,_0x36df41),_0x30c6cc;}catch{return!0x1;}function _0x42aef5(_0x45d3d){const _0x3ab2df=_0x439ada(_0x45d3d);_0x3ab2df&&_0x3ab2df[_0x6ef0f([0x61,0x6c,0x67])]==_0x6ef0f([0x45,0x53,0x32,0x35,0x36])||(_0x30c6cc=!0x1);}async function _0x360e39(_0x50c328,_0x5aca90,_0x3c6a1e){const _0x28ef64=window[_0x6ef0f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x6ef0f([0x66,0x72,0x6f,0x6d])](_0x198766(_0x3c6a1e),_0x3161d5=>_0x3161d5[_0x6ef0f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3f1d60=new window[(_0x6ef0f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x6ef0f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x50c328+_0x6ef0f([0x2e])+_0x5aca90),_0x637043=window[_0x6ef0f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x6ef0f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x637043)return;const _0x9333cc=await _0x637043[_0x6ef0f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x6ef0f([0x6a,0x77,0x6b]),_0x444267,{[_0x6ef0f([0x6e,0x61,0x6d,0x65])]:_0x6ef0f([0x45,0x43,0x44,0x53,0x41]),[_0x6ef0f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x6ef0f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x6ef0f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x637043[_0x6ef0f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x6ef0f([0x6e,0x61,0x6d,0x65])]:_0x6ef0f([0x45,0x43,0x44,0x53,0x41]),[_0x6ef0f([0x68,0x61,0x73,0x68])]:{[_0x6ef0f([0x6e,0x61,0x6d,0x65])]:_0x6ef0f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9333cc,_0x28ef64,_0x3f1d60)||(_0x30c6cc=!0x1);}}function _0x439ada(_0x193dc9){return _0x193dc9[_0x6ef0f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x6ef0f([0x65,0x79]))?JSON[_0x6ef0f([0x70,0x61,0x72,0x73,0x65])](_0x198766(_0x193dc9)):null;}function _0x198766(_0x2d426f){return window[_0x6ef0f([0x61,0x74,0x6f,0x62])](_0x2d426f[_0x6ef0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x6ef0f([0x2b]))[_0x6ef0f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x6ef0f([0x2f])));}function _0x52f5a4(_0x251ecd){let _0x52872c=0x1505;function _0x50730f(_0xdd4d3c){for(let _0x4c1163=0x0;_0x4c1163<_0xdd4d3c[_0x6ef0f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c1163++){const _0x5c0be1=_0xdd4d3c[_0x6ef0f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c1163);_0x52872c=(_0x52872c<<0x5)+_0x52872c+_0x5c0be1,_0x52872c&=_0x52872c;}}function _0x18a64a(_0x21eb60){Array[_0x6ef0f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x21eb60)?_0x21eb60[_0x6ef0f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x18a64a):_0x21eb60&&typeof _0x21eb60==_0x6ef0f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x6ef0f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x21eb60)[_0x6ef0f([0x73,0x6f,0x72,0x74])]()[_0x6ef0f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x21ae34,_0x40651c])=>{_0x50730f(_0x21ae34),_0x18a64a(_0x40651c);}):_0x50730f(window[_0x6ef0f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x21eb60));}return _0x18a64a(_0x251ecd),_0x52872c>>>0x0;}function _0x4e31d6(_0x205dc9){return _0x205dc9[_0x6ef0f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x6ef0f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x6ef0f([0x30]));}function _0x19ecaf(_0x24aa5c){return _0x24aa5c[_0x6ef0f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x6ef0f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x6ef0f([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c2b13(){}function _0x6ef0f(_0x80d602){const _0x331c2d=_0x4525;return _0x80d602[_0x331c2d(0x1ef)](_0x5d7467=>String[_0x331c2d(0x212)](_0x5d7467))[_0x331c2d(0x238)]('');}_0x15e0d9(await _0x42810d());}(this);}[_0x3d3123(0x1ee)](){const _0x1dad55=_0x3d3123,_0x287165=this[_0x1dad55(0x1f0)][_0x1dad55(0x23a)][_0x1dad55(0x20e)];_0x287165[_0x1dad55(0x220)](_0x1dad55(0x22e))&&_0x287165[_0x1dad55(0x203)](_0x1dad55(0x22e),{'allowAttributes':[_0x1dad55(0x21d)]}),_0x287165[_0x1dad55(0x220)](_0x1dad55(0x211))&&_0x287165[_0x1dad55(0x203)](_0x1dad55(0x211),{'allowAttributes':[_0x1dad55(0x21d)]});}[_0x3d3123(0x21e)](){const _0x2da62a=_0x3d3123,_0x31bd3f=this[_0x2da62a(0x1f0)];_0x31bd3f[_0x2da62a(0x23f)][_0x2da62a(0x23e)](_0x2da62a(0x228))[_0x2da62a(0x1f8)]({'model':_0x2da62a(0x21d),'view':_0x2da62a(0x234)}),_0x31bd3f[_0x2da62a(0x23f)][_0x2da62a(0x23e)](_0x2da62a(0x221))[_0x2da62a(0x1f5)]({'model':{'key':_0x2da62a(0x21d),'value':_0x5dc847=>_0x5dc847[_0x2da62a(0x232)](_0x2da62a(0x234))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4aab54=_0x31bd3f[_0x2da62a(0x1f6)][_0x2da62a(0x20c)](_0x2da62a(0x1f9));_0x4aab54&&this[_0x2da62a(0x231)](_0x4aab54,_0x2da62a(0x202),(_0xfc5cba,[_0x409166,_0x1c7d34])=>{const _0x144047=_0x2da62a;_0x409166[_0x144047(0x235)](_0x144047(0x21d),_0x1c7d34);});}[_0x3d3123(0x230)](){const _0x4ddf8d=_0x3d3123,_0x113093=this[_0x4ddf8d(0x1f0)][_0x4ddf8d(0x236)][_0x4ddf8d(0x20c)](_0x4ddf8d(0x21a))||{},_0x41628c=this[_0x4ddf8d(0x1f0)][_0x4ddf8d(0x236)][_0x4ddf8d(0x20c)](_0x4ddf8d(0x23d))||'';this[_0x4ddf8d(0x224)]=_0x54e05c(_0x446359[_0x4ddf8d(0x1f2)],_0x4ddf8d(0x223),{..._0x113093,'pubkey':_0x41628c,'ctx-name':_0x4ddf8d(0x1f7)+this[_0x4ddf8d(0x23c)],'sourceList':'','imgOnly':_0x4ddf8d(0x1f3),'removeCopyright':_0x4ddf8d(0x1f3),'localeName':this[_0x4ddf8d(0x1f0)][_0x4ddf8d(0x1fc)][_0x4ddf8d(0x21f)],'externalSourcesEmbedCss':_0x4ddf8d(0x218)}),this[_0x4ddf8d(0x224)][_0x4ddf8d(0x216)]=_0x54c0d0=>{const _0x5d3973=_0x4ddf8d;if(_0x5d3973(0x201)==_0x54c0d0)return _0x5d3973(0x229);},_0x446359[_0x4ddf8d(0x1f2)][_0x4ddf8d(0x21b)][_0x4ddf8d(0x22f)](this[_0x4ddf8d(0x224)]);}[_0x3d3123(0x217)](){const _0x48edaa=_0x3d3123;this[_0x48edaa(0x214)]=_0x54e05c(_0x446359[_0x48edaa(0x1f2)],_0x48edaa(0x205),{'ctx-name':_0x48edaa(0x1f7)+this[_0x48edaa(0x23c)]}),_0x446359[_0x48edaa(0x1f2)][_0x48edaa(0x21b)][_0x48edaa(0x22f)](this[_0x48edaa(0x214)]);}[_0x3d3123(0x213)](){const _0x4bb373=_0x3d3123,_0x259c0d=this[_0x4bb373(0x1f0)][_0x4bb373(0x1f6)][_0x4bb373(0x20c)](_0x4bb373(0x244));_0x259c0d&&this[_0x4bb373(0x231)](_0x259c0d,_0x4bb373(0x207),()=>{const _0x35da95=_0x4bb373,_0x1d641b=this[_0x35da95(0x1f0)][_0x35da95(0x23a)][_0x35da95(0x1f2)][_0x35da95(0x1f1)][_0x35da95(0x222)]();_0x1d641b&&_0x1d641b[_0x35da95(0x232)](_0x35da95(0x21d))&&this[_0x35da95(0x1f0)][_0x35da95(0x21c)][_0x35da95(0x22c)][_0x35da95(0x219)](_0x35da95(0x22a),()=>{const _0x2ab474=_0x35da95;_0x5ed4aa(this[_0x2ab474(0x1f0)],_0x1d641b);});});const _0x3dba02=this[_0x4bb373(0x1f0)][_0x4bb373(0x1f6)][_0x4bb373(0x20c)](_0x4bb373(0x237));_0x3dba02&&this[_0x4bb373(0x231)](_0x3dba02,_0x4bb373(0x207),()=>{const _0x390849=_0x4bb373,_0x35cab2=this[_0x390849(0x1f0)][_0x390849(0x23a)][_0x390849(0x1f2)][_0x390849(0x1f1)][_0x390849(0x222)]();_0x35cab2&&_0x35cab2[_0x390849(0x232)](_0x390849(0x21d))&&this[_0x390849(0x1f0)][_0x390849(0x21c)][_0x390849(0x22c)][_0x390849(0x219)](_0x390849(0x22a),()=>{const _0x4160f6=_0x390849;_0x5ed4aa(this[_0x4160f6(0x1f0)],_0x35cab2);});});}}