@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250420.0 → 0.0.0-nightly-20250422.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 _0x3364da,Command as _0x56586c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3747a3,IconGooglePhotos as _0x1de4f2,IconGoogleDrive as _0x24f9d0,IconFacebook as _0x282921,IconDropbox as _0x32ace1,IconUploadcareLink as _0x1a4bc0,IconUploadcareImageUpload as _0x39e4ef,IconError as et,IconUploadcareImageEdit as _0x63ddd2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1e4dbe,MenuBarMenuListItemButtonView as _0xd446b5,View as _0x1f8171,FocusCycler as _0x4853b9,Dialog as _0x519e77,DialogViewPosition as _0x2b4795,SpinnerView as _0x399cd1,IconView as at,Notification as _0x3c5717}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xd04ef8,DomEmitterMixin as _0x3d12af,global as _0x5c5795,getAncestors as _0x4b8384,ObservableMixin as _0x2d1207,createElement as _0x5f20d7,uid as _0x496501}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x154a69}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x5e3943,info as _0x5a100f}from'@uploadcare/upload-client';import*as _0x297f65 from'@uploadcare/file-uploader';var o=function(_0x3dbe29){return _0x3dbe29['Local']='local',_0x3dbe29['URL']='url',_0x3dbe29['Dropbox']='dropbox',_0x3dbe29['GDrive']='gdrive',_0x3dbe29['Facebook']='facebook',_0x3dbe29['GPhotos']='gphotos',_0x3dbe29['OneDrive']='onedrive',_0x3dbe29;}({});function _(_0x324a84,_0x397b25,_0x438f4b){const t=_0x324a84['t'],_0x145366=_0x324a84['t'];switch(_0x397b25){case o['Local']:return{'text':_0x145366('Insert'===_0x438f4b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x145366('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x438f4b?_0x145366('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x145366('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x438f4b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x438f4b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x438f4b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x438f4b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x438f4b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x397b25;}}class e extends _0x3364da{['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 _0x12be54=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1261c2;for(const _0x2b683c in _0x12be54){const _0x11b171=_0x2b683c,_0x1e41bb=_0x12be54[_0x11b171];if('uploadcareLicenseKeyValid'==_0x1e41bb||'uploadcareLicenseKeyInvalid'==_0x1e41bb||'uploadcareLicenseKeyExpired'==_0x1e41bb||'uploadcareLicenseKeyDomainLimit'==_0x1e41bb||'uploadcareLicenseKeyNotAllowed'==_0x1e41bb||'uploadcareLicenseKeyEvaluationLimit'==_0x1e41bb||'uploadcareLicenseKeyTrialLimit'==_0x1e41bb||'uploadcareLicenseKeyUsageLimit'==_0x1e41bb){delete _0x12be54[_0x11b171],_0x1261c2=_0x1e41bb,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1261c2&&_0x12be54['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1261c2&&_0x12be54['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1261c2&&_0x12be54['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1261c2&&_0x12be54['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1261c2&&_0x12be54['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1261c2&&_0x12be54['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1261c2&&_0x12be54['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4da7b4}=this,_0x3ba6f6=_0x4da7b4['commands']['get']('uploadcare');if(!_0x3ba6f6)return;const _0x2c627c=this['_normalizeConfigSourceList'](_0x4da7b4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3bfb17,_0x23c9b2)=>{const _0x1b214b=this['_getIntegrationKey'](_0x23c9b2['type']);return _0x3bfb17[_0x1b214b]||(_0x3bfb17[_0x1b214b]=[]),_0x3bfb17[_0x1b214b]['push'](_0x23c9b2),_0x3bfb17;},{});_0x4da7b4['plugins']['has']('ImageInsertUI')&&_0x4da7b4['commands']['get']('uploadcare')&&Object['entries'](_0x2c627c)['forEach'](([_0x5062a2,_0x3ea70b])=>{_0x4da7b4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5062a2,'observable':()=>_0x3ba6f6,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3ea70b),'formViewCreator':()=>this['_createDropdownButtons'](_0x3ea70b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3ea70b),'override':'assetManager'!==_0x5062a2});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xc65b30){const {locale:_0xa792c3}=this['editor'];return _0xc65b30['map'](_0xfc6169=>{const _0x4a8a49=_(_0xa792c3,_0xfc6169,'Insert');switch(_0xfc6169){case o['Local']:return{'icon':_0x39e4ef,'type':o['Local'],..._0x4a8a49};case o['URL']:return{'icon':_0x1a4bc0,'type':o['URL'],..._0x4a8a49};case o['Dropbox']:return{'icon':_0x32ace1,'type':o['Dropbox'],..._0x4a8a49};case o['Facebook']:return{'icon':_0x282921,'type':o['Facebook'],..._0x4a8a49};case o['GDrive']:return{'icon':_0x24f9d0,'type':o['GDrive'],..._0x4a8a49};case o['GPhotos']:return{'icon':_0x1de4f2,'type':o['GPhotos'],..._0x4a8a49};case o['OneDrive']:return{'icon':_0x3747a3,'type':o['OneDrive'],..._0x4a8a49};}});}['_getIntegrationKey'](_0x6c3973){switch(_0x6c3973){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x5d5f26,_0x2db1b1){const _0xe39db7=this['editor'],_0x508c93=new _0x5d5f26(_0xe39db7['locale']),_0x52138d=_0xe39db7['commands']['get']('uploadcare');return _0x508c93['bind']('isEnabled')['to'](_0x52138d),_0x508c93['on']('execute',()=>{_0x52138d['execute'](_0x2db1b1);}),_0x508c93;}['_createToolbarButton'](_0x3096a1){const {locale:_0x54db28}=this['editor'],_0x3d30df=this['editor']['plugins']['get']('ImageInsertUI'),_0x54010a=_0x3096a1[0x0],_0x139ed7=this['_createButton'](_0x1e4dbe,_0x54010a['type']);return _0x139ed7['icon']=_0x54010a['icon'],_0x139ed7['bind']('label')['to'](_0x3d30df,'isImageSelected',_0x134fb5=>_(_0x54db28,_0x54010a['type'],_0x134fb5?'Replace':'Insert')['text']),_0x139ed7['tooltip']=!0x0,_0x139ed7;}['_createDropdownButtons'](_0x5be771){const {locale:_0x5a553d}=this['editor'],_0x27eb0c=this['editor']['plugins']['get']('ImageInsertUI');return _0x5be771['map'](_0x204313=>{const _0x53f418=this['_createButton'](_0x1e4dbe,_0x204313['type']);return _0x53f418['withText']=!0x0,_0x53f418['icon']=_0x204313['icon'],_0x53f418['bind']('label')['to'](_0x27eb0c,'isImageSelected',_0x5534c6=>_(_0x5a553d,_0x204313['type'],_0x5534c6?'Replace':'Insert')['text']),_0x53f418;});}['_createMenuBarButtons'](_0x1eb10f){return _0x1eb10f['map'](_0x3cb94b=>{const _0x3ddb4f=this['_createButton'](_0xd446b5,_0x3cb94b['type']);return _0x3ddb4f['icon']=_0x3cb94b['icon'],_0x3ddb4f['label']=_0x3cb94b['shortText'],_0x3ddb4f;});}}class q extends _0x1f8171{['focusTracker'];['focusCycler'];constructor(_0x44f3ed){super(_0x44f3ed),this['focusTracker']=new _0xd04ef8(),this['focusCycler']=new _0x4853b9({'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 S extends q{constructor(_0x46b23e){super(_0x46b23e),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x497378,_0x1615c6){const _0x2e1aef=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1567f4=>_0x1567f4<=_0x1615c6)['map'](_0xe5e0db=>_0x497378['replace'](/\/$/,'')+'/-/resize/'+_0xe5e0db+'x/\x20'+_0xe5e0db+'w');return{'imageFallbackUrl':_0x497378,'imageSources':[{'srcset':_0x2e1aef['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1615c6+'px)\x20100vw,\x20'+_0x1615c6+'px','type':'image/webp'}]};}function A(_0x482eaf,_0xcf7780,_0x51e9a0){const _0x21f743=_0x482eaf['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x21f743?parseInt(_0x21f743[0x1],0xa):_0xcf7780,'height':_0x21f743?parseInt(_0x21f743[0x2],0xa):_0x51e9a0};}function m(_0xe4a8b3,_0x4cf0a5){const _0x2c05e4=Object['create'](_0x3d12af),_0xd3b6b5=_0xe4a8b3['plugins']['get']('ImageUtils'),_0x5d151c=_0xe4a8b3['editing']['mapper']['toViewElement'](_0x4cf0a5),_0x63f165=_0xd3b6b5['findViewImgElement'](_0x5d151c),_0x2200bd=_0xe4a8b3['editing']['view']['domConverter']['viewToDom'](_0x63f165),_0x234269=_0x4cf0a5['getAttribute']('width'),_0x48446f=_0x4cf0a5['getAttribute']('height'),_0x1b4bb9='image-processing';_0xe4a8b3['editing']['view']['change'](_0x33bdfc=>{_0x33bdfc['addClass'](_0x1b4bb9,_0x5d151c),_0x33bdfc['setStyle']('aspect-ratio',_0x234269+'/'+_0x48446f,_0x63f165);}),_0x2c05e4['listenTo'](_0x2200bd,'load',()=>{_0x2c05e4['stopListening'](_0x2200bd,'load'),_0xe4a8b3['editing']['view']['change'](_0x1295f6=>{_0x1295f6['removeClass'](_0x1b4bb9,_0x5d151c),_0x1295f6['removeStyle']('aspect-ratio',_0x63f165);});});}function V(_0x45a38f){if(Array['isArray'](_0x45a38f)){const _0x488749=_0x45a38f['map'](V);return _0x13a2d2=>_0x488749['some'](_0x877dbc=>_0x877dbc(_0x13a2d2));}if('origin'==_0x45a38f){const _0x22cb07=_0x5c5795['window']['location']['origin'];return _0x155d50=>new URL(_0x155d50,_0x5c5795['document']['baseURI'])['origin']==_0x22cb07;}return'function'==typeof _0x45a38f?_0x45a38f:_0x45a38f instanceof RegExp?_0x2949d4=>!(!_0x2949d4['match'](_0x45a38f)&&!_0x2949d4['replace'](/^https?:\/\//,'')['match'](_0x45a38f)):()=>!0x1;}function F(_0x42e2a3,_0xe19be6){return _0x4b8384(_0x42e2a3['target'])['includes'](_0xe19be6);}class l extends/* #__PURE__ -- @preserve */
24
- _0x2d1207(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x244676,_0xed73e9,_0xdeebb9){super(),this['_editor']=_0x244676,this['_editing']=_0xed73e9,this['_dialog']=_0x244676['plugins']['get'](_0x519e77),this['_api']=_0xed73e9['ctxElement']['getAPI'](),this['_type']=_0xdeebb9,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:_0x44f013,model:_0x267ae3}=this['_editor'],_0x185e54=_0x267ae3['document']['selection']['getSelectedElement'](),_0xabdf85=_0x185e54&&(_0x185e54['is']('element','imageBlock')||_0x185e54['is']('element','imageInline'));this['_formView']=new S(_0x44f013),this['_dialog']['show']({'id':'uploadCare','icon':_0x39e4ef,'title':_(_0x44f013,this['_type'],_0xabdf85?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2b4795['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xb0eae=>!F(_0xb0eae,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x49bd64}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2fbdb1=>{const _0x51c725=_0x49bd64['length'];for(const _0x2ef8e4 of _0x49bd64){const _0x3a84d2=_0x2ef8e4===_0x49bd64[_0x51c725-0x1],{cdnUrl:_0x1f6a5f,fileInfo:_0xd97e0c}=_0x2ef8e4;if(!_0x1f6a5f||!_0xd97e0c)continue;const {width:_0x37605d,height:_0x592411}=_0xd97e0c['imageInfo'],_0x3bcfb7=A(_0x1f6a5f,_0x37605d,_0x592411),_0x97a830=E(_0x1f6a5f,_0x3bcfb7['width']),_0x201625={'id':_0xd97e0c['uuid'],'type':'image','attributes':{'imageDimension':_0x3bcfb7,..._0x97a830}};this['_insertAsset'](_0x201625,_0x3a84d2,_0x2fbdb1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x313f42=>{'idle'===_0x313f42['detail']['status']&&!_0x313f42['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5165f2,_0x6cd2f5,_0x446e28){const _0x2e8f5c=this['_editor']['model']['document']['selection'],_0x16d2f3=_0x2e8f5c['getSelectedElement'](),_0x5cf1c1=!(!_0x16d2f3||!_0x16d2f3['is']('element','imageInline'));_0x446e28['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5165f2,_0x5cf1c1),_0x6cd2f5||_0x446e28['setSelection'](_0x2e8f5c['getLastPosition']());}['_insertImage'](_0x197d56,_0x29fad4){const _0x220454=this['_editor'],{imageDimension:_0x851b3f,imageFallbackUrl:_0x288123,imageSources:_0x26898a}=_0x197d56['attributes'];_0x220454['execute']('insertImage',{'imageType':_0x29fad4?'imageInline':null,'source':{'uploadcareImageId':_0x197d56['id'],'src':_0x288123,'sources':_0x26898a,..._0x851b3f}});}}class n extends _0x56586c{['_editing'];['_controller']=null;static get['requires'](){return[_0x519e77,i];}constructor(_0xf8aeb){super(_0xf8aeb),this['_editing']=_0xf8aeb['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5030ac){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x5030ac);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1a2d56,publicKey:_0x48d846,signal:_0x3c47a9,onProgress:_0x308a0d}){return _0x5e3943(_0x1a2d56,{'publicKey':_0x48d846,'store':'auto','signal':_0x3c47a9,'onProgress':_0x308a0d});}static['getInfo'](_0x2d2533,_0xd5d759){return _0x5a100f(_0x2d2533,_0xd5d759);}}class p extends _0x3364da{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x154a69,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2c5972=this['editor'];if(!!!_0x2c5972['config']['get']('uploadcare'))return;_0x2c5972['plugins']['get'](_0x154a69)['createUploadAdapter']=_0x50b31b=>new x(_0x50b31b,_0x2c5972),_0x2c5972['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xd727d8,{imageElement:_0x40ff97,data:_0x22451f})=>{_0x2c5972['model']['change'](_0x10b936=>{_0x10b936['setAttribute']('uploadcareImageId',_0x22451f['uploadcareImageId'],_0x40ff97);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x53d690,_0x5c75ef){this['loader']=_0x53d690,this['editor']=_0x5c75ef,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x150d77=this['editor']['config']['get']('uploadcare.pubkey'),_0x1df8e1=await this['loader']['file'];return C['upload']({'file':_0x1df8e1,'publicKey':_0x150d77,'signal':this['controller']['signal'],'onProgress':_0x341995=>{_0x341995&&_0x341995['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x341995['value']);}})['then'](async _0xc05573=>{const {imageFallbackUrl:_0x45e4b,imageSources:_0x3ed456}=E(_0xc05573['cdnUrl'],_0xc05573['imageInfo']['width']);return{'uploadcareImageId':_0xc05573['uuid'],'default':_0x45e4b,'sources':_0x3ed456};})['catch'](()=>{const _0x5757d1=t('Cannot\x20upload\x20file:')+('\x20'+_0x1df8e1['name']+'.');return Promise['reject'](_0x5757d1);});}['abort'](){this['controller']['abort']();}}class i extends _0x3364da{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x519e77];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x30e1e3=this['editor'];_0x30e1e3['commands']['add']('uploadcare',new n(_0x30e1e3));}['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 _0x50dee0=_0x5c5795['document']['querySelector']('input[uploadcare-file-input]');_0x50dee0&&_0x50dee0['remove']();}),async function(_0x3cf3b9){const _0x4db55d=_0x2fe501([0x41,0x78,0x70,0x75,0x4a,0x4c,0x34,0x51,0x49,0x65,0x39,0x6b,0x56,0x48,0x61,0x74,0x66,0x55,0x7a,0x4f,0x46,0x6a,0x72,0x6f,0x50,0x6c,0x43,0x73,0x5a,0x35,0x32,0x53,0x58,0x30,0x4d,0x38,0x57,0x6d,0x59,0x36,0x33,0x62,0x54,0x68,0x52,0x67,0x63,0x71,0x44,0x6e,0x4e,0x45,0x79,0x69,0x47,0x77,0x4b,0x31,0x64,0x76,0x42,0x37]),_0x6a405f=0x193e6c77,_0x176be7=0x193909e7^_0x6a405f,_0x19face=window[_0x2fe501([0x44,0x61,0x74,0x65])][_0x2fe501([0x6e,0x6f,0x77])](),_0x3267e2=_0x3cf3b9[_0x2fe501([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12b984=new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbd399c=>{_0x3267e2[_0x2fe501([0x6f,0x6e,0x63,0x65])](_0x2fe501([0x72,0x65,0x61,0x64,0x79]),_0xbd399c);}),_0x20a743={[_0x2fe501([0x6b,0x74,0x79])]:_0x2fe501([0x45,0x43]),[_0x2fe501([0x75,0x73,0x65])]:_0x2fe501([0x73,0x69,0x67]),[_0x2fe501([0x63,0x72,0x76])]:_0x2fe501([0x50,0x2d,0x32,0x35,0x36]),[_0x2fe501([0x78])]:_0x2fe501([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]),[_0x2fe501([0x79])]:_0x2fe501([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]),[_0x2fe501([0x61,0x6c,0x67])]:_0x2fe501([0x45,0x53,0x32,0x35,0x36])},_0x13fc7e=_0x3267e2[_0x2fe501([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2fe501([0x67,0x65,0x74])](_0x2fe501([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e4e90(){let _0x2526e8,_0x27655f=null,_0x20f5d6=null;try{if(_0x13fc7e==_0x2fe501([0x47,0x50,0x4c]))return _0x2fe501([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2526e8=_0x5d4058(),!_0x2526e8)return _0x2fe501([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2526e8[_0x2fe501([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x20f5d6=_0x21f309(_0x2526e8[_0x2fe501([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2526e8[_0x2fe501([0x6a,0x74,0x69])])),await _0x5647f4()?_0x5f0307()?_0x5e610d()?_0x2fe501([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xe07adc()?(_0x2526e8[_0x2fe501([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fe501([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x27655f=_0x405dd4(_0x2fe501([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2526e8[_0x2fe501([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2fe501([0x74,0x72,0x69,0x61,0x6c])&&(_0x27655f=_0x405dd4(_0x2fe501([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c5a03()):_0x2fe501([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2fe501([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2fe501([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x9138f4){return _0x2fe501([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5e610d(){const _0x3f9843=[_0x2fe501([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2fe501([0x74,0x72,0x69,0x61,0x6c])][_0x2fe501([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2526e8[_0x2fe501([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19face/0x3e8:0xe10*_0x176be7;return _0x2526e8[_0x2fe501([0x65,0x78,0x70])]<_0x3f9843;}function _0x5f0307(){const _0x19a6f6=_0x2526e8[_0x2fe501([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x19a6f6&&(!!_0x19a6f6[_0x2fe501([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe501([0x2a]))||!!_0x19a6f6[_0x2fe501([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe501([0x55,0x50,0x4c,0x43])));}function _0xe07adc(){const _0x5db410=_0x2526e8[_0x2fe501([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5db410||0x0==_0x5db410[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2f7a1a}=new URL(window[_0x2fe501([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5db410[_0x2fe501([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f7a1a))return!0x0;const _0x2283c8=_0x2f7a1a[_0x2fe501([0x73,0x70,0x6c,0x69,0x74])](_0x2fe501([0x2e]));return _0x5db410[_0x2fe501([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5457e2=>_0x5457e2[_0x2fe501([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fe501([0x2a])))[_0x2fe501([0x6d,0x61,0x70])](_0x2168f7=>_0x2168f7[_0x2fe501([0x73,0x70,0x6c,0x69,0x74])](_0x2fe501([0x2e])))[_0x2fe501([0x73,0x6f,0x6d,0x65])](_0x210e41=>_0x2283c8[_0x2fe501([0x65,0x76,0x65,0x72,0x79])]((_0x473997,_0x9ca79b)=>_0x210e41[_0x9ca79b]===_0x473997||_0x210e41[_0x9ca79b]===_0x2fe501([0x2a])));}function _0x4c5a03(){return _0x27655f&&_0x20f5d6?new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fb580,_0x270459)=>{_0x27655f[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x3fb580,_0x270459),_0x20f5d6[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x2d19de=>{_0x2d19de!=_0x2fe501([0x56,0x61,0x6c,0x69,0x64])&&_0x3fb580(_0x2d19de);},_0x270459);}):_0x27655f||_0x20f5d6||_0x2fe501([0x56,0x61,0x6c,0x69,0x64]);}}function _0x21f309(_0x5d3ff8,_0x2bc52a){return new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x213a54=>{if(_0x4ba4af())return _0x213a54(_0x2fe501([0x56,0x61,0x6c,0x69,0x64]));_0x54fd35(),_0x3267e2[_0x2fe501([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2fe501([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x120d64=!0x1;const _0x2be8d2=_0x496501();function _0x1959be(_0x553cad){return!!_0x553cad&&(typeof _0x553cad===_0x2fe501([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x553cad===_0x2fe501([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x553cad[_0x2fe501([0x74,0x68,0x65,0x6e])]===_0x2fe501([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x553cad[_0x2fe501([0x63,0x61,0x74,0x63,0x68])]===_0x2fe501([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c53a8(_0x22fd10){_0x2245d9(_0x22fd10)[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x2dec05=>{if(!_0x2dec05||_0x2dec05[_0x2fe501([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2fe501([0x6f,0x6b]))return _0x2fe501([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x21c5a9(_0x2441d2(_0x2be8d2+_0x2bc52a))!=_0x2dec05[_0x2fe501([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2fe501([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2fe501([0x56,0x61,0x6c,0x69,0x64]);})[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x3c591a=>(_0x4cd79a(),_0x3c591a),()=>{const _0x2dd2c2=_0x168ffc();return null==_0x2dd2c2?(_0x4cd79a(),_0x2fe501([0x56,0x61,0x6c,0x69,0x64])):_0x2fe501(_0x19face-_0x2dd2c2>(0x3d32e877^_0x6a405f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x213a54)[_0x2fe501([0x63,0x61,0x74,0x63,0x68])](()=>{_0x213a54(_0x2fe501([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2980d2=0x190882f7^_0x6a405f;function _0x4cd79a(){const _0x230307=_0x2fe501([0x6c,0x6c,0x63,0x74,0x2d])+_0x21c5a9(_0x2441d2(_0x5d3ff8)),_0xe7ad0=_0x4eac48(_0x21c5a9(window[_0x2fe501([0x4d,0x61,0x74,0x68])][_0x2fe501([0x63,0x65,0x69,0x6c])](_0x19face/_0x2980d2)));window[_0x2fe501([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fe501([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x230307,_0xe7ad0);}function _0x168ffc(){const _0x5e91c5=_0x2fe501([0x6c,0x6c,0x63,0x74,0x2d])+_0x21c5a9(_0x2441d2(_0x5d3ff8)),_0x2a86f2=window[_0x2fe501([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2fe501([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5e91c5);return _0x2a86f2?window[_0x2fe501([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4eac48(_0x2a86f2),0x10)*_0x2980d2:null;}function _0x2245d9(_0x248ea8){return new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30e5e0,_0x289aa6)=>{_0x248ea8[_0x2fe501([0x74,0x68,0x65,0x6e])](_0x30e5e0,_0x289aa6),window[_0x2fe501([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x289aa6,0x193fb8b7^_0x6a405f);});}}_0x3267e2[_0x2fe501([0x6f,0x6e])](_0x2fe501([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x221fbe,_0xb90d53)=>{if(_0xb90d53[0x0]!=_0x5d3ff8)return _0x213a54(_0x2fe501([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xb90d53[0x1]={..._0xb90d53[0x1],[_0x2fe501([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2be8d2};},{[_0x2fe501([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fe501([0x68,0x69,0x67,0x68])}),_0x3267e2[_0x2fe501([0x6f,0x6e])](_0x2fe501([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3640d4=>{_0x1959be(_0x3640d4[_0x2fe501([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x120d64=!0x0,_0x1c53a8(_0x3640d4[_0x2fe501([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2fe501([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2fe501([0x6c,0x6f,0x77])}),_0x12b984[_0x2fe501([0x74,0x68,0x65,0x6e])](()=>{_0x120d64||_0x213a54(_0x2fe501([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ba4af(){return _0x3267e2[_0x2fe501([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fe501([0x76,0x69,0x65,0x77])][_0x2fe501([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2fe501([0x61,0x75,0x74,0x6f]);}function _0x54fd35(){_0x3267e2[_0x2fe501([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2fe501([0x76,0x69,0x65,0x77])][_0x2fe501([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2fe501([0x61,0x75,0x74,0x6f]);}}function _0x405dd4(_0xce5798){const _0x478bf2=[new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30bc89=>setTimeout(_0x30bc89,0x193752bb^_0x6a405f)),_0x12b984[_0x2fe501([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17e1d4=>{let _0x15fc0f=0x0;_0x3267e2[_0x2fe501([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe501([0x6f,0x6e])](_0x2fe501([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5973d1,_0x1b7d2d)=>{_0x1b7d2d[0x0][_0x2fe501([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x15fc0f++,_0x15fc0f==(0x193e6d8f^_0x6a405f)&&(_0x17e1d4(),_0x5973d1[_0x2fe501([0x6f,0x66,0x66])]());});}))];return window[_0x2fe501([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2fe501([0x72,0x61,0x63,0x65])](_0x478bf2)[_0x2fe501([0x74,0x68,0x65,0x6e])](()=>_0xce5798);}async function _0x142120(){await _0x12b984,_0x3267e2[_0x2fe501([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe501([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x423f49,_0x3267e2[_0x2fe501([0x6d,0x6f,0x64,0x65,0x6c])][_0x2fe501([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x423f49,_0x3267e2[_0x2fe501([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2fe501([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b6dc2(_0x599a92){const _0x488257=_0x2b07c9();_0x3267e2[_0x488257]=_0x2fe501([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x599a92,_0x599a92!=_0x2fe501([0x56,0x61,0x6c,0x69,0x64])&&_0x142120();}function _0x2b07c9(){const _0x5cdb1d=window[_0x2fe501([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2fe501([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2fe501([0x6e,0x6f,0x77])]())[_0x2fe501([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2fe501([0x2e]),'');let _0x3ffa10=_0x2fe501([0x41]);for(let _0x3d0776=0x0;_0x3d0776<_0x5cdb1d[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d0776+=0x2){let _0x15f5bf=window[_0x2fe501([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cdb1d[_0x2fe501([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d0776,_0x3d0776+0x2));_0x15f5bf>=_0x4db55d[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x15f5bf-=_0x4db55d[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ffa10+=_0x4db55d[_0x15f5bf];}return _0x3ffa10;}function _0x5d4058(){const _0x4d4c28=_0x13fc7e[_0x2fe501([0x73,0x70,0x6c,0x69,0x74])](_0x2fe501([0x2e]));if(0x3!=_0x4d4c28[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2eb808(_0x4d4c28[0x1]);function _0x2eb808(_0x4ab08b){const _0x2558de=_0x2bbcdc(_0x4ab08b);return _0x2558de&&_0x1b77fd()?_0x2558de:null;function _0x1b77fd(){const _0x42fed1=_0x2558de[_0x2fe501([0x6a,0x74,0x69])],_0x1228c6=window[_0x2fe501([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42fed1[_0x2fe501([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42fed1[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x16a179={..._0x2558de,[_0x2fe501([0x6a,0x74,0x69])]:_0x42fed1[_0x2fe501([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42fed1[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x16a179[_0x2fe501([0x76,0x63])],_0x2441d2(_0x16a179)==_0x1228c6;}}}async function _0x5647f4(){let _0x3ea625=!0x0;try{const _0x5e01b4=_0x13fc7e[_0x2fe501([0x73,0x70,0x6c,0x69,0x74])](_0x2fe501([0x2e])),[_0x2e1402,_0x281680,_0x1b17af]=_0x5e01b4;return _0x29f654(_0x2e1402),await _0x42bbc7(_0x2e1402,_0x281680,_0x1b17af),_0x3ea625;}catch(_0x56cf7b){return!0x1;}function _0x29f654(_0x377513){const _0x243386=_0x2bbcdc(_0x377513);_0x243386&&_0x243386[_0x2fe501([0x61,0x6c,0x67])]==_0x2fe501([0x45,0x53,0x32,0x35,0x36])||(_0x3ea625=!0x1);}async function _0x42bbc7(_0x414b0f,_0x1d2540,_0x597949){const _0x204fa1=window[_0x2fe501([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2fe501([0x66,0x72,0x6f,0x6d])](_0x5c18eb(_0x597949),_0x108951=>_0x108951[_0x2fe501([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16cea3=new window[(_0x2fe501([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2fe501([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x414b0f+_0x2fe501([0x2e])+_0x1d2540),_0x50a4e3=window[_0x2fe501([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2fe501([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x50a4e3)return;const _0x4af2c9=await _0x50a4e3[_0x2fe501([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2fe501([0x6a,0x77,0x6b]),_0x20a743,{[_0x2fe501([0x6e,0x61,0x6d,0x65])]:_0x2fe501([0x45,0x43,0x44,0x53,0x41]),[_0x2fe501([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2fe501([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2fe501([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x50a4e3[_0x2fe501([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2fe501([0x6e,0x61,0x6d,0x65])]:_0x2fe501([0x45,0x43,0x44,0x53,0x41]),[_0x2fe501([0x68,0x61,0x73,0x68])]:{[_0x2fe501([0x6e,0x61,0x6d,0x65])]:_0x2fe501([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4af2c9,_0x204fa1,_0x16cea3)||(_0x3ea625=!0x1);}}function _0x2bbcdc(_0x57f59b){return _0x57f59b[_0x2fe501([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2fe501([0x65,0x79]))?JSON[_0x2fe501([0x70,0x61,0x72,0x73,0x65])](_0x5c18eb(_0x57f59b)):null;}function _0x5c18eb(_0x147923){return window[_0x2fe501([0x61,0x74,0x6f,0x62])](_0x147923[_0x2fe501([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2fe501([0x2b]))[_0x2fe501([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2fe501([0x2f])));}function _0x2441d2(_0x2646e0){let _0x35a717=0x1505;function _0x4d35f5(_0x5032b4){for(let _0x429d37=0x0;_0x429d37<_0x5032b4[_0x2fe501([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x429d37++){const _0x19d8dc=_0x5032b4[_0x2fe501([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x429d37);_0x35a717=(_0x35a717<<0x5)+_0x35a717+_0x19d8dc,_0x35a717&=_0x35a717;}}function _0x5b0c3a(_0x323aa9){Array[_0x2fe501([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x323aa9)?_0x323aa9[_0x2fe501([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b0c3a):_0x323aa9&&typeof _0x323aa9==_0x2fe501([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2fe501([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x323aa9)[_0x2fe501([0x73,0x6f,0x72,0x74])]()[_0x2fe501([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2bbcea,_0x5691d5])=>{_0x4d35f5(_0x2bbcea),_0x5b0c3a(_0x5691d5);}):_0x4d35f5(window[_0x2fe501([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x323aa9));}return _0x5b0c3a(_0x2646e0),_0x35a717>>>0x0;}function _0x21c5a9(_0x1e1d89){return _0x1e1d89[_0x2fe501([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2fe501([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2fe501([0x30]));}function _0x4eac48(_0x8ebc20){return _0x8ebc20[_0x2fe501([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2fe501([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2fe501([0x6a,0x6f,0x69,0x6e])]('');}function _0x423f49(){}function _0x2fe501(_0x10216d){return _0x10216d['map'](_0x35e8d1=>String['fromCharCode'](_0x35e8d1))['join']('');}_0x5b6dc2(await _0x2e4e90());}(this);}['_initSchema'](){const _0x363120=this['editor']['model']['schema'];_0x363120['isRegistered']('imageBlock')&&_0x363120['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x363120['isRegistered']('imageInline')&&_0x363120['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x499120=this['editor'];_0x499120['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x499120['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3ecc7d=>_0x3ecc7d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x58ed6a=_0x499120['commands']['get']('replaceImageSource');_0x58ed6a&&this['listenTo'](_0x58ed6a,'cleanupImage',(_0x570540,[_0x3a3fe2,_0x3e3422])=>{_0x3a3fe2['removeAttribute']('uploadcareImageId',_0x3e3422);});}['_initConfig'](){const _0x492dc4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2ec220=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5f20d7(_0x5c5795['document'],'uc-config',{..._0x492dc4,'pubkey':_0x2ec220,'ctx-name':'uploader','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']=_0x12e5b8=>{if('closeMax'==_0x12e5b8)return'#uc-icon-arrow-down';},_0x5c5795['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5f20d7(_0x5c5795['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5c5795['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3f356b=this['editor']['commands']['get']('insertImage');_0x3f356b&&this['listenTo'](_0x3f356b,'execute',()=>{const _0x1c6657=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1c6657&&_0x1c6657['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1c6657);});});const _0x4651cf=this['editor']['commands']['get']('uploadcareImageReplace');_0x4651cf&&this['listenTo'](_0x4651cf,'execute',()=>{const _0x4ad0cd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4ad0cd&&_0x4ad0cd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4ad0cd);});});}}class u extends _0x3364da{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45a9be){super(_0x45a9be),_0x45a9be['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x297f65['defineComponents'](_0x297f65);}}class ta extends _0x1f8171{constructor(_0x80f6f2){super(_0x80f6f2);const t=_0x80f6f2['t'],_0x3acb3e=this['bindTemplate'],_0x343133=new _0x399cd1();_0x343133['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':[_0x343133,{'text':_0x3acb3e['to']('imageUploadProgress',_0x145bbf=>t('Loading\x20image...')+'\x20('+(_0x145bbf||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 rt extends _0x1f8171{constructor(_0x2f2f34){super(_0x2f2f34);const t=_0x2f2f34['t'];this['set']('errorType',null);const _0x15e3e4=new _0x1e4dbe(_0x2f2f34);_0x15e3e4['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x15e3e4['withText']=!0x0,_0x15e3e4['class']='ck-button-action',_0x15e3e4['on']('execute',()=>{this['fire']('retry');}),_0x15e3e4['bind']('isVisible')['to'](this,'errorType',_0x505592=>'NotFound'!==_0x505592);const _0x585546=new at();_0x585546['content']=et,_0x585546['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x58c0dd=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':[_0x585546,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x58c0dd['to']('errorType',_0x501280=>t('NotFound'!==_0x501280?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x15e3e4]},{'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 tt extends _0x1f8171{constructor(_0x2e75fe,_0x1fdcba){super(_0x2e75fe);const _0x404220=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1fdcba,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x404220['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x6bd24d,_0x388b58,_0x5bd671){super(_0x6bd24d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x6bd24d),this['_errorView']=new rt(_0x6bd24d),this['_editingView']=new tt(_0x6bd24d,_0x5bd671),this['_focusableView']=new _0x1f8171(_0x6bd24d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x388b58),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'],_0x486e4d=>{this['_addUploadcareImageEditorListeners'](_0x486e4d);});}),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'](_0x3a7b13,_0x1bf0ab){const _0x5c0483='uc-cloud-image-editor',_0x24f237=_0x3a7b13['querySelector'](_0x5c0483);if(_0x24f237)return _0x1bf0ab(_0x24f237);const _0x26f0b7=new MutationObserver(_0x18b01d=>{const _0x52e5bd=_0x18b01d['filter'](_0x592e78=>_0x592e78['target']===_0x3a7b13&&_0x592e78['addedNodes']['length']>0x0&&_0x592e78['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5c0483);_0x52e5bd['length']&&(_0x26f0b7['disconnect'](),_0x1bf0ab(_0x52e5bd[0x0]['addedNodes'][0x0]));});_0x26f0b7['observe'](_0x3a7b13,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3775b8){_0x3775b8['addEventListener']('apply',_0x46df39=>{this['fire']('apply',{'imageSrc':_0x46df39['detail']['cdnUrl']});}),_0x3775b8['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x2d1207(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3f8131,_0x3a4d74,_0x39451e){super(),this['_editor']=_0x3f8131,this['_dialog']=_0x3a4d74,this['_imageElement']=_0x39451e,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 _0x5a0b26=this['_imageElement'],_0x5956d1=_0x5a0b26['getAttribute']('uploadcareImageId'),_0x51f966=_0x5a0b26['getAttribute']('src');if(_0x5956d1)await this['_loadImageInfo'](_0x5956d1,_0x51f966);else{if(this['_imageCache']['has'](_0x51f966)){const _0x246c07=this['_imageCache']['get'](_0x51f966);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x246c07['url'],this['imageDimension']=_0x246c07['dimension'],this['imageId']=_0x246c07['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1483e2}=this['_editor'],t=_0x1483e2['t'],_0x48d9b1=new Z(_0x1483e2,this['imageStatus'],this['_attributes']);_0x48d9b1['bind']('status')['to'](this,'imageStatus'),_0x48d9b1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x48d9b1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x48d9b1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x48d9b1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x63ddd2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x48d9b1,'position':_0x2b4795['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x48d9b1['focus']();},'onHide':()=>{_0x48d9b1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x53ceb5=>!F(_0x53ceb5,_0x48d9b1['element'])}});}['_loadImageInfo'](_0x2ee7e3,_0x3d8559){return C['getInfo'](_0x2ee7e3,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x59bba8=>{const {width:_0x1bc710,height:_0x52cc13}=_0x59bba8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d8559,this['imageDimension']={'width':_0x1bc710,'height':_0x52cc13},this['imageId']=_0x2ee7e3;})['catch'](_0x208ce6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x208ce6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4e0c15,_0xa2dd2d){return this['_getImageAsFile'](_0x4e0c15)['then'](_0xb11543=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0xa2dd2d['signal'],'file':_0xb11543,'onProgress':_0x4f5fd9=>{_0x4f5fd9&&_0x4f5fd9['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4f5fd9['value']));}}))['then'](_0x28c6bb=>{const {width:_0x51ec89,height:_0x23809d}=_0x28c6bb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x28c6bb['cdnUrl'],this['imageDimension']={'width':_0x51ec89,'height':_0x23809d},this['imageId']=_0x28c6bb['uuid'],this['imageUploadProgress']=null;const _0x33fed8=_0x4e0c15['getAttribute']('src');this['_imageCache']['set'](_0x33fed8,{'id':_0x28c6bb['uuid'],'url':_0x28c6bb['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4192e2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4192e2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x59b5dd,_0x26ad33){_0x59b5dd['on']('apply',(_0x1861d,_0x54b7fc)=>{this['_replaceImage'](_0x26ad33,_0x54b7fc['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x59b5dd['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x59b5dd['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x82359f,_0x5bd42c,_0x56d289){const _0x389424=this['_editor'],{width:_0x250093,height:_0x10dd24}=A(_0x5bd42c,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xfd8eb,imageSources:_0x345a41}=E(_0x5bd42c,_0x250093);_0x389424['model']['change'](_0x67cc12=>{if('$graveyard'===_0x82359f['root']['rootName']){_0x389424['execute']('insertImage',{'imageType':_0x82359f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x82359f['getAttributes']()),'uploadcareImageId':_0x56d289,'src':_0xfd8eb,'sources':_0x345a41,'width':_0x250093,'height':_0x10dd24}});const _0x532c06=_0x82359f['getChildren']();_0x82359f=_0x389424['model']['document']['selection']['getSelectedElement']();for(const _0x57b9db of _0x532c06)_0x67cc12['append'](_0x67cc12['cloneElement'](_0x57b9db),_0x82359f);}else _0x67cc12['setSelection'](_0x82359f,'on'),_0x389424['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x82359f['getAttributes']()),'uploadcareImageId':_0x56d289,'src':_0xfd8eb,'sources':_0x345a41,'width':_0x250093,'height':_0x10dd24},_0x82359f);_0x67cc12['setSelection'](_0x82359f,'on');});}async['_getImageAsFile'](_0x224f07){const _0x252fad=_0x5c5795['window'],_0x216b4c=_0x5c5795['document']['location']['href'],_0x317d7d=new _0x252fad['URL'](_0x224f07['getAttribute']('src'),_0x216b4c);if('data:'===_0x317d7d['protocol']){const _0x219e65=_0x317d7d['href']['split'](','),_0x5a0607=_0x219e65[0x0]['match'](/:(.*?);/)[0x1],_0x293972=_0x5a0607['split']('/')[0x1],_0x473888=_0x252fad['atob'](_0x219e65[_0x219e65['length']-0x1]);let _0x11f9af=_0x473888['length'];const _0x49c06a=new _0x252fad['Uint8Array'](_0x11f9af);for(;_0x11f9af--;)_0x49c06a[_0x11f9af]=_0x473888['charCodeAt'](_0x11f9af);return new _0x252fad['File']([_0x49c06a],'image.'+_0x293972,{'type':_0x5a0607});}const _0x37bcb3=_0x317d7d['href']['split']('/'),_0xc22509=_0x37bcb3[_0x37bcb3['length']-0x1],_0x2b2cba=_0xc22509['split']('.')[0x1];return _0x252fad['fetch'](_0x317d7d['href'])['then'](_0x3d6507=>_0x3d6507['clone']()['blob']())['then'](_0x3a0551=>new _0x252fad['File']([_0x3a0551],_0xc22509,{'type':'image/'+_0x2b2cba}));}}class J extends _0x56586c{['imageEditController'];static get['requires'](){return[_0x519e77];}['_isEditable'];constructor(_0x30655f){super(_0x30655f),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x7a59de){const _0x58940c=V(_0x7a59de);return _0x2b92bc=>!(!_0x2b92bc||!_0x2b92bc['is']('element','imageBlock')&&!_0x2b92bc['is']('element','imageInline'))&&(!!_0x2b92bc['hasAttribute']('uploadcareImageId')||!!_0x2b92bc['hasAttribute']('src')&&_0x58940c(_0x2b92bc['getAttribute']('src')));}(_0x30655f['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x6bac90=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x6bac90);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4b8347=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4b8347&&(_0x4b8347['is']('element','imageBlock')||_0x4b8347['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x519e77),_0x4b8347),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x56586c{['refresh'](){const _0x3c6b2a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3c6b2a&&(_0x3c6b2a['is']('element','imageBlock')||_0x3c6b2a['is']('element','imageInline')));}['execute'](_0x4bb205){const _0x55d47b=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2eb0b7=>{_0x2eb0b7['setAttributes'](_0x4bb205,_0x55d47b),_0x2eb0b7['removeAttribute']('srcset',_0x55d47b),_0x2eb0b7['removeAttribute']('sizes',_0x55d47b);});}}class g extends _0x3364da{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3c5717,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b1006}=this;_0x2b1006['commands']['add']('uploadcareImageEdit',new J(_0x2b1006)),_0x2b1006['commands']['add']('uploadcareImageReplace',new O(_0x2b1006));}}class j extends _0x3364da{['_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 _0x9efd1b=this['editor'];_0x9efd1b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3ec6d1=>{const _0x5b9158=_0x9efd1b['commands']['get']('uploadcareImageEdit'),_0xa5112b=new _0x1e4dbe(_0x3ec6d1),t=_0x3ec6d1['t'];return _0xa5112b['set']({'icon':_0x63ddd2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xa5112b['bind']('isEnabled')['to'](_0x5b9158),_0xa5112b['bind']('isOn')['to'](_0x5b9158,'isActive'),this['listenTo'](_0xa5112b,'execute',()=>{_0x9efd1b['execute']('uploadcareImageEdit'),_0x9efd1b['editing']['view']['focus']();}),_0xa5112b;}),this['_initConfig']();}['_initConfig'](){const _0x87d38f=_0x5f20d7(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x87d38f),this['listenTo'](this['editor'],'destroy',()=>{_0x87d38f['remove']();});}}class P extends _0x3364da{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
23
+ import{Plugin as _0x9837b9,Command as _0x30953f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xcf45c7,IconGooglePhotos as _0x391e66,IconGoogleDrive as _0x132492,IconFacebook as _0x309cbc,IconDropbox as _0x54330c,IconUploadcareLink as _0x4c0ceb,IconUploadcareImageUpload as _0x3edeae,IconError as et,IconUploadcareImageEdit as _0x3e0d66}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1a1f54,MenuBarMenuListItemButtonView as _0xa0f30d,View as _0x482142,FocusCycler as _0x1331b6,Dialog as _0x21ca38,DialogViewPosition as _0x34eb81,SpinnerView as _0x415f4e,IconView as at,Notification as _0x396261}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2c3022,DomEmitterMixin as _0x362939,global as _0x146fbb,getAncestors as _0x5b9583,ObservableMixin as _0x45ad15,createElement as _0xec1d02,uid as _0x5bba3f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x468177}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2f7e2a,info as _0x14106}from'@uploadcare/upload-client';import*as _0x4edc71 from'@uploadcare/file-uploader';var o=function(_0x27ee40){return _0x27ee40['Local']='local',_0x27ee40['URL']='url',_0x27ee40['Dropbox']='dropbox',_0x27ee40['GDrive']='gdrive',_0x27ee40['Facebook']='facebook',_0x27ee40['GPhotos']='gphotos',_0x27ee40['OneDrive']='onedrive',_0x27ee40;}({});function _(_0x595ba2,_0x8d8f9c,_0x5aa93a){const t=_0x595ba2['t'],_0x51c171=_0x595ba2['t'];switch(_0x8d8f9c){case o['Local']:return{'text':_0x51c171('Insert'===_0x5aa93a?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x51c171('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5aa93a?_0x51c171('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x51c171('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5aa93a?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5aa93a?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5aa93a?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5aa93a?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5aa93a?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x8d8f9c;}}class e extends _0x9837b9{['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 _0x435696=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x491a3d;for(const _0x203ea7 in _0x435696){const _0x4153fc=_0x203ea7,_0x1eded4=_0x435696[_0x4153fc];if('uploadcareLicenseKeyValid'==_0x1eded4||'uploadcareLicenseKeyInvalid'==_0x1eded4||'uploadcareLicenseKeyExpired'==_0x1eded4||'uploadcareLicenseKeyDomainLimit'==_0x1eded4||'uploadcareLicenseKeyNotAllowed'==_0x1eded4||'uploadcareLicenseKeyEvaluationLimit'==_0x1eded4||'uploadcareLicenseKeyTrialLimit'==_0x1eded4||'uploadcareLicenseKeyUsageLimit'==_0x1eded4){delete _0x435696[_0x4153fc],_0x491a3d=_0x1eded4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x491a3d&&_0x435696['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x491a3d&&_0x435696['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x491a3d&&_0x435696['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x491a3d&&_0x435696['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x491a3d&&_0x435696['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x491a3d&&_0x435696['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x491a3d&&_0x435696['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x44f6fd}=this,_0x5ef5ea=_0x44f6fd['commands']['get']('uploadcare');if(!_0x5ef5ea)return;const _0x3d6f81=this['_normalizeConfigSourceList'](_0x44f6fd['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x34199b,_0xd33801)=>{const _0x574e0e=this['_getIntegrationKey'](_0xd33801['type']);return _0x34199b[_0x574e0e]||(_0x34199b[_0x574e0e]=[]),_0x34199b[_0x574e0e]['push'](_0xd33801),_0x34199b;},{});_0x44f6fd['plugins']['has']('ImageInsertUI')&&_0x44f6fd['commands']['get']('uploadcare')&&Object['entries'](_0x3d6f81)['forEach'](([_0x1316d3,_0x577d8c])=>{_0x44f6fd['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1316d3,'observable':()=>_0x5ef5ea,'buttonViewCreator':()=>this['_createToolbarButton'](_0x577d8c),'formViewCreator':()=>this['_createDropdownButtons'](_0x577d8c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x577d8c),'override':'assetManager'!==_0x1316d3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x8ec322){const {locale:_0x17df0d}=this['editor'];return _0x8ec322['map'](_0x2079a5=>{const _0x18cb88=_(_0x17df0d,_0x2079a5,'Insert');switch(_0x2079a5){case o['Local']:return{'icon':_0x3edeae,'type':o['Local'],..._0x18cb88};case o['URL']:return{'icon':_0x4c0ceb,'type':o['URL'],..._0x18cb88};case o['Dropbox']:return{'icon':_0x54330c,'type':o['Dropbox'],..._0x18cb88};case o['Facebook']:return{'icon':_0x309cbc,'type':o['Facebook'],..._0x18cb88};case o['GDrive']:return{'icon':_0x132492,'type':o['GDrive'],..._0x18cb88};case o['GPhotos']:return{'icon':_0x391e66,'type':o['GPhotos'],..._0x18cb88};case o['OneDrive']:return{'icon':_0xcf45c7,'type':o['OneDrive'],..._0x18cb88};}});}['_getIntegrationKey'](_0x291fa7){switch(_0x291fa7){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x253ec4,_0x56d19c){const _0x329732=this['editor'],_0x387663=new _0x253ec4(_0x329732['locale']),_0x1db3e1=_0x329732['commands']['get']('uploadcare');return _0x387663['bind']('isEnabled')['to'](_0x1db3e1),_0x387663['on']('execute',()=>{_0x1db3e1['execute'](_0x56d19c);}),_0x387663;}['_createToolbarButton'](_0x4673a1){const {locale:_0x431c5a}=this['editor'],_0x43da0b=this['editor']['plugins']['get']('ImageInsertUI'),_0x24ab35=_0x4673a1[0x0],_0x4d9106=this['_createButton'](_0x1a1f54,_0x24ab35['type']);return _0x4d9106['icon']=_0x24ab35['icon'],_0x4d9106['bind']('label')['to'](_0x43da0b,'isImageSelected',_0x2b57a7=>_(_0x431c5a,_0x24ab35['type'],_0x2b57a7?'Replace':'Insert')['text']),_0x4d9106['tooltip']=!0x0,_0x4d9106;}['_createDropdownButtons'](_0x1def56){const {locale:_0x16bf58}=this['editor'],_0x404982=this['editor']['plugins']['get']('ImageInsertUI');return _0x1def56['map'](_0x1581c7=>{const _0x505868=this['_createButton'](_0x1a1f54,_0x1581c7['type']);return _0x505868['withText']=!0x0,_0x505868['icon']=_0x1581c7['icon'],_0x505868['bind']('label')['to'](_0x404982,'isImageSelected',_0x774dbf=>_(_0x16bf58,_0x1581c7['type'],_0x774dbf?'Replace':'Insert')['text']),_0x505868;});}['_createMenuBarButtons'](_0x5dfbd0){return _0x5dfbd0['map'](_0x2f4f54=>{const _0x13f156=this['_createButton'](_0xa0f30d,_0x2f4f54['type']);return _0x13f156['icon']=_0x2f4f54['icon'],_0x13f156['label']=_0x2f4f54['shortText'],_0x13f156;});}}class q extends _0x482142{['focusTracker'];['focusCycler'];constructor(_0x45a155){super(_0x45a155),this['focusTracker']=new _0x2c3022(),this['focusCycler']=new _0x1331b6({'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 S extends q{constructor(_0x2537d7){super(_0x2537d7),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'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x59ee40,_0x16cea3){const _0x3874bc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x258518=>_0x258518<=_0x16cea3)['map'](_0x5cb399=>_0x59ee40['replace'](/\/$/,'')+'/-/resize/'+_0x5cb399+'x/\x20'+_0x5cb399+'w');return{'imageFallbackUrl':_0x59ee40,'imageSources':[{'srcset':_0x3874bc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x16cea3+'px)\x20100vw,\x20'+_0x16cea3+'px','type':'image/webp'}]};}function A(_0xf6099c,_0xc19046,_0x5700da){const _0x4011fc=_0xf6099c['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4011fc?parseInt(_0x4011fc[0x1],0xa):_0xc19046,'height':_0x4011fc?parseInt(_0x4011fc[0x2],0xa):_0x5700da};}function m(_0x3540b0,_0x393980){const _0x11ff25=Object['create'](_0x362939),_0x13a43f=_0x3540b0['plugins']['get']('ImageUtils'),_0x363070=_0x3540b0['editing']['mapper']['toViewElement'](_0x393980),_0x562bb2=_0x13a43f['findViewImgElement'](_0x363070),_0x485698=_0x3540b0['editing']['view']['domConverter']['viewToDom'](_0x562bb2),_0x4455b7=_0x393980['getAttribute']('width'),_0x5b665e=_0x393980['getAttribute']('height'),_0x31a193='image-processing';_0x3540b0['editing']['view']['change'](_0x4866f7=>{_0x4866f7['addClass'](_0x31a193,_0x363070),_0x4866f7['setStyle']('aspect-ratio',_0x4455b7+'/'+_0x5b665e,_0x562bb2);}),_0x11ff25['listenTo'](_0x485698,'load',()=>{_0x11ff25['stopListening'](_0x485698,'load'),_0x3540b0['editing']['view']['change'](_0x3c4a26=>{_0x3c4a26['removeClass'](_0x31a193,_0x363070),_0x3c4a26['removeStyle']('aspect-ratio',_0x562bb2);});});}function V(_0x282ce6){if(Array['isArray'](_0x282ce6)){const _0x5bda17=_0x282ce6['map'](V);return _0x7e80b1=>_0x5bda17['some'](_0x2839f3=>_0x2839f3(_0x7e80b1));}if('origin'==_0x282ce6){const _0x3bf7c5=_0x146fbb['window']['location']['origin'];return _0x4a0346=>new URL(_0x4a0346,_0x146fbb['document']['baseURI'])['origin']==_0x3bf7c5;}return'function'==typeof _0x282ce6?_0x282ce6:_0x282ce6 instanceof RegExp?_0x243736=>!(!_0x243736['match'](_0x282ce6)&&!_0x243736['replace'](/^https?:\/\//,'')['match'](_0x282ce6)):()=>!0x1;}function F(_0x59eb75,_0x55a052){return _0x5b9583(_0x59eb75['target'])['includes'](_0x55a052);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x45ad15(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3f9260,_0xebf938,_0x223b74){super(),this['_editor']=_0x3f9260,this['_editing']=_0xebf938,this['_dialog']=_0x3f9260['plugins']['get'](_0x21ca38),this['_api']=_0xebf938['ctxElement']['getAPI'](),this['_type']=_0x223b74,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:_0x1ad1b5,model:_0x14b224}=this['_editor'],_0x1627c9=_0x14b224['document']['selection']['getSelectedElement'](),_0x2af8aa=_0x1627c9&&(_0x1627c9['is']('element','imageBlock')||_0x1627c9['is']('element','imageInline'));this['_formView']=new S(_0x1ad1b5),this['_dialog']['show']({'id':'uploadCare','icon':_0x3edeae,'title':_(_0x1ad1b5,this['_type'],_0x2af8aa?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x34eb81['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x912ac9=>!F(_0x912ac9,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xc386ce}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2420e1=>{const _0x587d25=_0xc386ce['length'];for(const _0x1945c9 of _0xc386ce){const _0x1c8080=_0x1945c9===_0xc386ce[_0x587d25-0x1],{cdnUrl:_0x4df2d5,fileInfo:_0x5281ec}=_0x1945c9;if(!_0x4df2d5||!_0x5281ec)continue;const {width:_0x2c3852,height:_0x558874}=_0x5281ec['imageInfo'],_0x542846=A(_0x4df2d5,_0x2c3852,_0x558874),_0x216ec6=E(_0x4df2d5,_0x542846['width']),_0x5b472c={'id':_0x5281ec['uuid'],'type':'image','attributes':{'imageDimension':_0x542846,..._0x216ec6}};this['_insertAsset'](_0x5b472c,_0x1c8080,_0x2420e1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x7b7955=>{'idle'===_0x7b7955['detail']['status']&&!_0x7b7955['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xc30676,_0x285129,_0x200767){const _0x3df8d3=this['_editor']['model']['document']['selection'],_0x34cfb9=_0x3df8d3['getSelectedElement'](),_0x114c5c=!(!_0x34cfb9||!_0x34cfb9['is']('element','imageInline'));_0x200767['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xc30676,_0x114c5c),_0x285129||_0x200767['setSelection'](_0x3df8d3['getLastPosition']());}['_insertImage'](_0x20a03e,_0x407092){const _0x22f6e9=this['_editor'],{imageDimension:_0x59af7d,imageFallbackUrl:_0x326b7a,imageSources:_0x13b060}=_0x20a03e['attributes'];_0x22f6e9['execute']('insertImage',{'imageType':_0x407092?'imageInline':null,'source':{'uploadcareImageId':_0x20a03e['id'],'src':_0x326b7a,'sources':_0x13b060,..._0x59af7d}});}}class n extends _0x30953f{['_editing'];['_controller']=null;static get['requires'](){return[_0x21ca38,i];}constructor(_0x112549){super(_0x112549),this['_editing']=_0x112549['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1e7a59){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1e7a59);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x137f6c,publicKey:_0xbfb7fc,signal:_0x771cfb,onProgress:_0x2ecfad}){return _0x2f7e2a(_0x137f6c,{'publicKey':_0xbfb7fc,'store':'auto','signal':_0x771cfb,'onProgress':_0x2ecfad});}static['getInfo'](_0x52e2e1,_0x5d5080){return _0x14106(_0x52e2e1,_0x5d5080);}}class p extends _0x9837b9{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x468177,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1f246e=this['editor'];if(!!!_0x1f246e['config']['get']('uploadcare'))return;_0x1f246e['plugins']['get'](_0x468177)['createUploadAdapter']=_0xd23380=>new x(_0xd23380,_0x1f246e),_0x1f246e['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5021b7,{imageElement:_0x15af2c,data:_0x3a42ea})=>{_0x1f246e['model']['change'](_0x105041=>{_0x105041['setAttribute']('uploadcareImageId',_0x3a42ea['uploadcareImageId'],_0x15af2c);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x541cba,_0x139c06){this['loader']=_0x541cba,this['editor']=_0x139c06,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x405f0b=this['editor']['config']['get']('uploadcare.pubkey'),_0x57edd1=await this['loader']['file'];return C['upload']({'file':_0x57edd1,'publicKey':_0x405f0b,'signal':this['controller']['signal'],'onProgress':_0x264b2f=>{_0x264b2f&&_0x264b2f['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x264b2f['value']);}})['then'](async _0x493f26=>{const {imageFallbackUrl:_0x517122,imageSources:_0x1e4252}=E(_0x493f26['cdnUrl'],_0x493f26['imageInfo']['width']);return{'uploadcareImageId':_0x493f26['uuid'],'default':_0x517122,'sources':_0x1e4252};})['catch'](()=>{const _0x1ca7c3=t('Cannot\x20upload\x20file:')+('\x20'+_0x57edd1['name']+'.');return Promise['reject'](_0x1ca7c3);});}['abort'](){this['controller']['abort']();}}class i extends _0x9837b9{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x21ca38];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x1dd288=this['editor'];_0x1dd288['commands']['add']('uploadcare',new n(_0x1dd288));}['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 _0x4a716c=_0x146fbb['document']['querySelector']('input[uploadcare-file-input]');_0x4a716c&&_0x4a716c['remove']();}),async function(_0x499f4d){const _0x1fbfcb=_0x5723a6([0x33,0x30,0x50,0x59,0x7a,0x6d,0x74,0x67,0x44,0x62,0x73,0x35,0x47,0x6e,0x38,0x43,0x69,0x72,0x6c,0x4c,0x52,0x37,0x70,0x31,0x4e,0x68,0x39,0x4a,0x61,0x55,0x42,0x76,0x41,0x4d,0x63,0x34,0x78,0x49,0x56,0x57,0x64,0x46,0x58,0x32,0x71,0x51,0x4b,0x6f,0x36,0x75,0x6b,0x79,0x48,0x54,0x5a,0x65,0x66,0x53,0x77,0x6a,0x45,0x4f]),_0x433dae=0x29f543d8,_0x21e7d6=0x29f22618^_0x433dae,_0x55ccba=window[_0x5723a6([0x44,0x61,0x74,0x65])][_0x5723a6([0x6e,0x6f,0x77])](),_0x147f3b=_0x499f4d[_0x5723a6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe01860=new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c4ff1=>{_0x147f3b[_0x5723a6([0x6f,0x6e,0x63,0x65])](_0x5723a6([0x72,0x65,0x61,0x64,0x79]),_0x3c4ff1);}),_0x1f9cfc={[_0x5723a6([0x6b,0x74,0x79])]:_0x5723a6([0x45,0x43]),[_0x5723a6([0x75,0x73,0x65])]:_0x5723a6([0x73,0x69,0x67]),[_0x5723a6([0x63,0x72,0x76])]:_0x5723a6([0x50,0x2d,0x32,0x35,0x36]),[_0x5723a6([0x78])]:_0x5723a6([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]),[_0x5723a6([0x79])]:_0x5723a6([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]),[_0x5723a6([0x61,0x6c,0x67])]:_0x5723a6([0x45,0x53,0x32,0x35,0x36])},_0x2d7ac3=_0x147f3b[_0x5723a6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5723a6([0x67,0x65,0x74])](_0x5723a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x529731(){let _0x332e32,_0x3d6239=null,_0x5b645b=null;try{if(_0x2d7ac3==_0x5723a6([0x47,0x50,0x4c]))return _0x5723a6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x332e32=_0x2610e7(),!_0x332e32)return _0x5723a6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x332e32[_0x5723a6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b645b=_0xb94072(_0x332e32[_0x5723a6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x332e32[_0x5723a6([0x6a,0x74,0x69])])),await _0x468cd1()?_0x4fd716()?_0x2b33f1()?_0x5723a6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2dbc39()?(_0x332e32[_0x5723a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5723a6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d6239=_0x1182a4(_0x5723a6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x332e32[_0x5723a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5723a6([0x74,0x72,0x69,0x61,0x6c])&&(_0x3d6239=_0x1182a4(_0x5723a6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x17be91()):_0x5723a6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5723a6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5723a6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x6eb703){return _0x5723a6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2b33f1(){const _0x271f7f=[_0x5723a6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5723a6([0x74,0x72,0x69,0x61,0x6c])][_0x5723a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x332e32[_0x5723a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x55ccba/0x3e8:0xe10*_0x21e7d6;return _0x332e32[_0x5723a6([0x65,0x78,0x70])]<_0x271f7f;}function _0x4fd716(){const _0xc9b972=_0x332e32[_0x5723a6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xc9b972&&(!!_0xc9b972[_0x5723a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5723a6([0x2a]))||!!_0xc9b972[_0x5723a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5723a6([0x55,0x50,0x4c,0x43])));}function _0x2dbc39(){const _0x3c335=_0x332e32[_0x5723a6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c335||0x0==_0x3c335[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a9196}=new URL(window[_0x5723a6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c335[_0x5723a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a9196))return!0x0;const _0x7f3bc9=_0x4a9196[_0x5723a6([0x73,0x70,0x6c,0x69,0x74])](_0x5723a6([0x2e]));return _0x3c335[_0x5723a6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18acec=>_0x18acec[_0x5723a6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5723a6([0x2a])))[_0x5723a6([0x6d,0x61,0x70])](_0x5f1d67=>_0x5f1d67[_0x5723a6([0x73,0x70,0x6c,0x69,0x74])](_0x5723a6([0x2e])))[_0x5723a6([0x73,0x6f,0x6d,0x65])](_0x7864a7=>_0x7f3bc9[_0x5723a6([0x65,0x76,0x65,0x72,0x79])]((_0x4b0ae6,_0x38bada)=>_0x7864a7[_0x38bada]===_0x4b0ae6||_0x7864a7[_0x38bada]===_0x5723a6([0x2a])));}function _0x17be91(){return _0x3d6239&&_0x5b645b?new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51a46a,_0x24a69b)=>{_0x3d6239[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x51a46a,_0x24a69b),_0x5b645b[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x434700=>{_0x434700!=_0x5723a6([0x56,0x61,0x6c,0x69,0x64])&&_0x51a46a(_0x434700);},_0x24a69b);}):_0x3d6239||_0x5b645b||_0x5723a6([0x56,0x61,0x6c,0x69,0x64]);}}function _0xb94072(_0x3c1f61,_0x2b66aa){return new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x134565=>{if(_0x32c855())return _0x134565(_0x5723a6([0x56,0x61,0x6c,0x69,0x64]));_0x1942d1(),_0x147f3b[_0x5723a6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5723a6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xc0b803=!0x1;const _0x3cd3ec=_0x5bba3f();function _0x8a5def(_0x5bf0ea){return!!_0x5bf0ea&&(typeof _0x5bf0ea===_0x5723a6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5bf0ea===_0x5723a6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5bf0ea[_0x5723a6([0x74,0x68,0x65,0x6e])]===_0x5723a6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5bf0ea[_0x5723a6([0x63,0x61,0x74,0x63,0x68])]===_0x5723a6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x386b93(_0x8a6f02){_0x564444(_0x8a6f02)[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x197ff5=>{if(!_0x197ff5||_0x197ff5[_0x5723a6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5723a6([0x6f,0x6b]))return _0x5723a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd1706d(_0x10ab86(_0x3cd3ec+_0x2b66aa))!=_0x197ff5[_0x5723a6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5723a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5723a6([0x56,0x61,0x6c,0x69,0x64]);})[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x10c631=>(_0x1a5385(),_0x10c631),()=>{const _0x20edc2=_0x33c440();return null==_0x20edc2?(_0x1a5385(),_0x5723a6([0x56,0x61,0x6c,0x69,0x64])):_0x5723a6(_0x55ccba-_0x20edc2>(0xdf9c7d8^_0x433dae)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x134565)[_0x5723a6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x134565(_0x5723a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x523280=0x29c3ad58^_0x433dae;function _0x1a5385(){const _0x325f83=_0x5723a6([0x6c,0x6c,0x63,0x74,0x2d])+_0xd1706d(_0x10ab86(_0x3c1f61)),_0x3ff821=_0x4ce4e1(_0xd1706d(window[_0x5723a6([0x4d,0x61,0x74,0x68])][_0x5723a6([0x63,0x65,0x69,0x6c])](_0x55ccba/_0x523280)));window[_0x5723a6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5723a6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x325f83,_0x3ff821);}function _0x33c440(){const _0x3d9ee3=_0x5723a6([0x6c,0x6c,0x63,0x74,0x2d])+_0xd1706d(_0x10ab86(_0x3c1f61)),_0x133267=window[_0x5723a6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5723a6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d9ee3);return _0x133267?window[_0x5723a6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ce4e1(_0x133267),0x10)*_0x523280:null;}function _0x564444(_0x5b3e5b){return new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19ff44,_0x1ed6e4)=>{_0x5b3e5b[_0x5723a6([0x74,0x68,0x65,0x6e])](_0x19ff44,_0x1ed6e4),window[_0x5723a6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ed6e4,0x29f49718^_0x433dae);});}}_0x147f3b[_0x5723a6([0x6f,0x6e])](_0x5723a6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x52436d,_0x53531a)=>{if(_0x53531a[0x0]!=_0x3c1f61)return _0x134565(_0x5723a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x53531a[0x1]={..._0x53531a[0x1],[_0x5723a6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3cd3ec};},{[_0x5723a6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5723a6([0x68,0x69,0x67,0x68])}),_0x147f3b[_0x5723a6([0x6f,0x6e])](_0x5723a6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x226152=>{_0x8a5def(_0x226152[_0x5723a6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xc0b803=!0x0,_0x386b93(_0x226152[_0x5723a6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5723a6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5723a6([0x6c,0x6f,0x77])}),_0xe01860[_0x5723a6([0x74,0x68,0x65,0x6e])](()=>{_0xc0b803||_0x134565(_0x5723a6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x32c855(){return _0x147f3b[_0x5723a6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5723a6([0x76,0x69,0x65,0x77])][_0x5723a6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5723a6([0x61,0x75,0x74,0x6f]);}function _0x1942d1(){_0x147f3b[_0x5723a6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5723a6([0x76,0x69,0x65,0x77])][_0x5723a6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5723a6([0x61,0x75,0x74,0x6f]);}}function _0x1182a4(_0x575a7f){const _0x236c52=[new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e8c62=>setTimeout(_0x5e8c62,0x29fc7d14^_0x433dae)),_0xe01860[_0x5723a6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x499306=>{let _0x3f5d01=0x0;_0x147f3b[_0x5723a6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5723a6([0x6f,0x6e])](_0x5723a6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x179624,_0x4a18bd)=>{_0x4a18bd[0x0][_0x5723a6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f5d01++,_0x3f5d01==(0x29f54220^_0x433dae)&&(_0x499306(),_0x179624[_0x5723a6([0x6f,0x66,0x66])]());});}))];return window[_0x5723a6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5723a6([0x72,0x61,0x63,0x65])](_0x236c52)[_0x5723a6([0x74,0x68,0x65,0x6e])](()=>_0x575a7f);}async function _0x8a18f0(){await _0xe01860,_0x147f3b[_0x5723a6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5723a6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x321c1a,_0x147f3b[_0x5723a6([0x6d,0x6f,0x64,0x65,0x6c])][_0x5723a6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x321c1a,_0x147f3b[_0x5723a6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5723a6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x34cfe2(_0x440acf){const _0x19b3c6=_0x125fb9();_0x147f3b[_0x19b3c6]=_0x5723a6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x440acf,_0x440acf!=_0x5723a6([0x56,0x61,0x6c,0x69,0x64])&&_0x8a18f0();}function _0x125fb9(){const _0xc0a21a=window[_0x5723a6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5723a6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5723a6([0x6e,0x6f,0x77])]())[_0x5723a6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5723a6([0x2e]),'');let _0x4eb732=_0x5723a6([0x50]);for(let _0x3b7105=0x0;_0x3b7105<_0xc0a21a[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b7105+=0x2){let _0x1e4de6=window[_0x5723a6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc0a21a[_0x5723a6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b7105,_0x3b7105+0x2));_0x1e4de6>=_0x1fbfcb[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e4de6-=_0x1fbfcb[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4eb732+=_0x1fbfcb[_0x1e4de6];}return _0x4eb732;}function _0x2610e7(){const _0x898706=_0x2d7ac3[_0x5723a6([0x73,0x70,0x6c,0x69,0x74])](_0x5723a6([0x2e]));if(0x3!=_0x898706[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x6db959(_0x898706[0x1]);function _0x6db959(_0x2e1774){const _0xc93b30=_0x1e9117(_0x2e1774);return _0xc93b30&&_0x524e34()?_0xc93b30:null;function _0x524e34(){const _0x471405=_0xc93b30[_0x5723a6([0x6a,0x74,0x69])],_0x230960=window[_0x5723a6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x471405[_0x5723a6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x471405[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21c89a={..._0xc93b30,[_0x5723a6([0x6a,0x74,0x69])]:_0x471405[_0x5723a6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x471405[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21c89a[_0x5723a6([0x76,0x63])],_0x10ab86(_0x21c89a)==_0x230960;}}}async function _0x468cd1(){let _0x18537c=!0x0;try{const _0x201c3d=_0x2d7ac3[_0x5723a6([0x73,0x70,0x6c,0x69,0x74])](_0x5723a6([0x2e])),[_0xbdda3c,_0x404d04,_0x573a26]=_0x201c3d;return _0x3d365f(_0xbdda3c),await _0xab0801(_0xbdda3c,_0x404d04,_0x573a26),_0x18537c;}catch(_0x3b70a6){return!0x1;}function _0x3d365f(_0x4e2ee2){const _0x28bd73=_0x1e9117(_0x4e2ee2);_0x28bd73&&_0x28bd73[_0x5723a6([0x61,0x6c,0x67])]==_0x5723a6([0x45,0x53,0x32,0x35,0x36])||(_0x18537c=!0x1);}async function _0xab0801(_0x2cb3d9,_0x5eceff,_0x4d80f2){const _0x1a3bcf=window[_0x5723a6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5723a6([0x66,0x72,0x6f,0x6d])](_0x95b40c(_0x4d80f2),_0x40ab9c=>_0x40ab9c[_0x5723a6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4b7154=new window[(_0x5723a6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5723a6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2cb3d9+_0x5723a6([0x2e])+_0x5eceff),_0x1980fd=window[_0x5723a6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5723a6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1980fd)return;const _0x3d94f8=await _0x1980fd[_0x5723a6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5723a6([0x6a,0x77,0x6b]),_0x1f9cfc,{[_0x5723a6([0x6e,0x61,0x6d,0x65])]:_0x5723a6([0x45,0x43,0x44,0x53,0x41]),[_0x5723a6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5723a6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5723a6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1980fd[_0x5723a6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5723a6([0x6e,0x61,0x6d,0x65])]:_0x5723a6([0x45,0x43,0x44,0x53,0x41]),[_0x5723a6([0x68,0x61,0x73,0x68])]:{[_0x5723a6([0x6e,0x61,0x6d,0x65])]:_0x5723a6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d94f8,_0x1a3bcf,_0x4b7154)||(_0x18537c=!0x1);}}function _0x1e9117(_0x16c65f){return _0x16c65f[_0x5723a6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5723a6([0x65,0x79]))?JSON[_0x5723a6([0x70,0x61,0x72,0x73,0x65])](_0x95b40c(_0x16c65f)):null;}function _0x95b40c(_0x4b269f){return window[_0x5723a6([0x61,0x74,0x6f,0x62])](_0x4b269f[_0x5723a6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5723a6([0x2b]))[_0x5723a6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5723a6([0x2f])));}function _0x10ab86(_0x434950){let _0x660cc5=0x1505;function _0x1f0f74(_0x1e4093){for(let _0x1cb16a=0x0;_0x1cb16a<_0x1e4093[_0x5723a6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cb16a++){const _0x5885c=_0x1e4093[_0x5723a6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1cb16a);_0x660cc5=(_0x660cc5<<0x5)+_0x660cc5+_0x5885c,_0x660cc5&=_0x660cc5;}}function _0x3e8a29(_0xad2590){Array[_0x5723a6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xad2590)?_0xad2590[_0x5723a6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3e8a29):_0xad2590&&typeof _0xad2590==_0x5723a6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5723a6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xad2590)[_0x5723a6([0x73,0x6f,0x72,0x74])]()[_0x5723a6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2876b8,_0x16d063])=>{_0x1f0f74(_0x2876b8),_0x3e8a29(_0x16d063);}):_0x1f0f74(window[_0x5723a6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xad2590));}return _0x3e8a29(_0x434950),_0x660cc5>>>0x0;}function _0xd1706d(_0x253dc1){return _0x253dc1[_0x5723a6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5723a6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5723a6([0x30]));}function _0x4ce4e1(_0x5c3290){return _0x5c3290[_0x5723a6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5723a6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5723a6([0x6a,0x6f,0x69,0x6e])]('');}function _0x321c1a(){}function _0x5723a6(_0x1de78d){return _0x1de78d['map'](_0x2eeae5=>String['fromCharCode'](_0x2eeae5))['join']('');}_0x34cfe2(await _0x529731());}(this);}['_initSchema'](){const _0x31cfd3=this['editor']['model']['schema'];_0x31cfd3['isRegistered']('imageBlock')&&_0x31cfd3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x31cfd3['isRegistered']('imageInline')&&_0x31cfd3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3cf4b3=this['editor'];_0x3cf4b3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3cf4b3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5388eb=>_0x5388eb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x58a422=_0x3cf4b3['commands']['get']('replaceImageSource');_0x58a422&&this['listenTo'](_0x58a422,'cleanupImage',(_0x4d58f4,[_0x51cbf5,_0x36e44d])=>{_0x51cbf5['removeAttribute']('uploadcareImageId',_0x36e44d);});}['_initConfig'](){const _0x5be23b=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4dbb7a=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xec1d02(_0x146fbb['document'],'uc-config',{..._0x5be23b,'pubkey':_0x4dbb7a,'ctx-name':'uploader','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']=_0x4f8a2e=>{if('closeMax'==_0x4f8a2e)return'#uc-icon-arrow-down';},_0x146fbb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xec1d02(_0x146fbb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x146fbb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x403b7d=this['editor']['commands']['get']('insertImage');_0x403b7d&&this['listenTo'](_0x403b7d,'execute',()=>{const _0x55f532=this['editor']['model']['document']['selection']['getSelectedElement']();_0x55f532&&_0x55f532['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x55f532);});});const _0x1395d9=this['editor']['commands']['get']('uploadcareImageReplace');_0x1395d9&&this['listenTo'](_0x1395d9,'execute',()=>{const _0x554fd3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x554fd3&&_0x554fd3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x554fd3);});});}}class u extends _0x9837b9{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b8c18){super(_0x5b8c18),_0x5b8c18['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x4edc71['defineComponents'](_0x4edc71);}}class ta extends _0x482142{constructor(_0x440233){super(_0x440233);const t=_0x440233['t'],_0x361042=this['bindTemplate'],_0x1910c8=new _0x415f4e();_0x1910c8['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':[_0x1910c8,{'text':_0x361042['to']('imageUploadProgress',_0x109862=>t('Loading\x20image...')+'\x20('+(_0x109862||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 rt extends _0x482142{constructor(_0xc47a3f){super(_0xc47a3f);const t=_0xc47a3f['t'];this['set']('errorType',null);const _0x4dd0cd=new _0x1a1f54(_0xc47a3f);_0x4dd0cd['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4dd0cd['withText']=!0x0,_0x4dd0cd['class']='ck-button-action',_0x4dd0cd['on']('execute',()=>{this['fire']('retry');}),_0x4dd0cd['bind']('isVisible')['to'](this,'errorType',_0xebeb9a=>'NotFound'!==_0xebeb9a);const _0x19d4e6=new at();_0x19d4e6['content']=et,_0x19d4e6['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x14eb7b=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':[_0x19d4e6,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x14eb7b['to']('errorType',_0x75dddb=>t('NotFound'!==_0x75dddb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4dd0cd]},{'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 tt extends _0x482142{constructor(_0x2bf988,_0x2fd95d){super(_0x2bf988);const _0x4c6f8e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2fd95d,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4c6f8e['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2e00cd,_0x6afd05,_0x1d6d7b){super(_0x2e00cd),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2e00cd),this['_errorView']=new rt(_0x2e00cd),this['_editingView']=new tt(_0x2e00cd,_0x1d6d7b),this['_focusableView']=new _0x482142(_0x2e00cd),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x6afd05),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'],_0x5f7f0b=>{this['_addUploadcareImageEditorListeners'](_0x5f7f0b);});}),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'](_0x37c4c8,_0x38687e){const _0x58db9b='uc-cloud-image-editor',_0x5404ae=_0x37c4c8['querySelector'](_0x58db9b);if(_0x5404ae)return _0x38687e(_0x5404ae);const _0x1fae55=new MutationObserver(_0x4b29bc=>{const _0x2e39de=_0x4b29bc['filter'](_0x4ba7e4=>_0x4ba7e4['target']===_0x37c4c8&&_0x4ba7e4['addedNodes']['length']>0x0&&_0x4ba7e4['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x58db9b);_0x2e39de['length']&&(_0x1fae55['disconnect'](),_0x38687e(_0x2e39de[0x0]['addedNodes'][0x0]));});_0x1fae55['observe'](_0x37c4c8,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x35e546){_0x35e546['addEventListener']('apply',_0x2eab21=>{this['fire']('apply',{'imageSrc':_0x2eab21['detail']['cdnUrl']});}),_0x35e546['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x45ad15(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3bfa2d,_0x3c272a,_0x3432d3){super(),this['_editor']=_0x3bfa2d,this['_dialog']=_0x3c272a,this['_imageElement']=_0x3432d3,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 _0x3b6815=this['_imageElement'],_0x26ba98=_0x3b6815['getAttribute']('uploadcareImageId'),_0x46a3e1=_0x3b6815['getAttribute']('src');if(_0x26ba98)await this['_loadImageInfo'](_0x26ba98,_0x46a3e1);else{if(this['_imageCache']['has'](_0x46a3e1)){const _0x266eb1=this['_imageCache']['get'](_0x46a3e1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x266eb1['url'],this['imageDimension']=_0x266eb1['dimension'],this['imageId']=_0x266eb1['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1baec7}=this['_editor'],t=_0x1baec7['t'],_0x1eccfc=new Z(_0x1baec7,this['imageStatus'],this['_attributes']);_0x1eccfc['bind']('status')['to'](this,'imageStatus'),_0x1eccfc['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1eccfc['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1eccfc['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1eccfc,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3e0d66,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1eccfc,'position':_0x34eb81['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1eccfc['focus']();},'onHide':()=>{_0x1eccfc['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x520d4d=>!F(_0x520d4d,_0x1eccfc['element'])}});}['_loadImageInfo'](_0x61d434,_0x33bd4d){return C['getInfo'](_0x61d434,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x470566=>{const {width:_0xddce5c,height:_0xbe1064}=_0x470566['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33bd4d,this['imageDimension']={'width':_0xddce5c,'height':_0xbe1064},this['imageId']=_0x61d434;})['catch'](_0x27789c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x27789c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x29c0a2,_0x5e8af3){return this['_getImageAsFile'](_0x29c0a2)['then'](_0x1b64c9=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5e8af3['signal'],'file':_0x1b64c9,'onProgress':_0x1cd46a=>{_0x1cd46a&&_0x1cd46a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1cd46a['value']));}}))['then'](_0x2ae17d=>{const {width:_0x49366b,height:_0x17999e}=_0x2ae17d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ae17d['cdnUrl'],this['imageDimension']={'width':_0x49366b,'height':_0x17999e},this['imageId']=_0x2ae17d['uuid'],this['imageUploadProgress']=null;const _0x43df4d=_0x29c0a2['getAttribute']('src');this['_imageCache']['set'](_0x43df4d,{'id':_0x2ae17d['uuid'],'url':_0x2ae17d['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x8b4496=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x8b4496['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2499d1,_0xc5fc8c){_0x2499d1['on']('apply',(_0x2171a4,_0x45af43)=>{this['_replaceImage'](_0xc5fc8c,_0x45af43['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2499d1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2499d1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x120d9a,_0x58e620,_0xe82967){const _0x200812=this['_editor'],{width:_0x247189,height:_0x4d6509}=A(_0x58e620,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x363d27,imageSources:_0x5053f1}=E(_0x58e620,_0x247189);_0x200812['model']['change'](_0x39897a=>{if('$graveyard'===_0x120d9a['root']['rootName']){_0x200812['execute']('insertImage',{'imageType':_0x120d9a['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x120d9a['getAttributes']()),'uploadcareImageId':_0xe82967,'src':_0x363d27,'sources':_0x5053f1,'width':_0x247189,'height':_0x4d6509}});const _0x7a6fcd=_0x120d9a['getChildren']();_0x120d9a=_0x200812['model']['document']['selection']['getSelectedElement']();for(const _0x1a4e16 of _0x7a6fcd)_0x39897a['append'](_0x39897a['cloneElement'](_0x1a4e16),_0x120d9a);}else _0x39897a['setSelection'](_0x120d9a,'on'),_0x200812['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x120d9a['getAttributes']()),'uploadcareImageId':_0xe82967,'src':_0x363d27,'sources':_0x5053f1,'width':_0x247189,'height':_0x4d6509},_0x120d9a);_0x39897a['setSelection'](_0x120d9a,'on');});}async['_getImageAsFile'](_0x2da917){const _0x415e07=_0x146fbb['window'],_0x420d61=_0x146fbb['document']['location']['href'],_0x16ca73=new _0x415e07['URL'](_0x2da917['getAttribute']('src'),_0x420d61);if('data:'===_0x16ca73['protocol']){const _0xb77a2e=_0x16ca73['href']['split'](','),_0xe05dac=_0xb77a2e[0x0]['match'](/:(.*?);/)[0x1],_0x273fb8=_0xe05dac['split']('/')[0x1],_0x339a84=_0x415e07['atob'](_0xb77a2e[_0xb77a2e['length']-0x1]);let _0x5dc6ee=_0x339a84['length'];const _0x119f17=new _0x415e07['Uint8Array'](_0x5dc6ee);for(;_0x5dc6ee--;)_0x119f17[_0x5dc6ee]=_0x339a84['charCodeAt'](_0x5dc6ee);return new _0x415e07['File']([_0x119f17],'image.'+_0x273fb8,{'type':_0xe05dac});}const _0xbe4177=_0x16ca73['href']['split']('/'),_0x5437b5=_0xbe4177[_0xbe4177['length']-0x1],_0x7cddbf=_0x5437b5['split']('.')[0x1];return _0x415e07['fetch'](_0x16ca73['href'])['then'](_0x1a14f0=>_0x1a14f0['clone']()['blob']())['then'](_0xafdad9=>new _0x415e07['File']([_0xafdad9],_0x5437b5,{'type':'image/'+_0x7cddbf}));}}class J extends _0x30953f{['imageEditController'];static get['requires'](){return[_0x21ca38];}['_isEditable'];constructor(_0x476ceb){super(_0x476ceb),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xa99a99){const _0x39d63c=V(_0xa99a99);return _0x2900e1=>!(!_0x2900e1||!_0x2900e1['is']('element','imageBlock')&&!_0x2900e1['is']('element','imageInline'))&&(!!_0x2900e1['hasAttribute']('uploadcareImageId')||!!_0x2900e1['hasAttribute']('src')&&_0x39d63c(_0x2900e1['getAttribute']('src')));}(_0x476ceb['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x517290=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x517290);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x48d0e9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x48d0e9&&(_0x48d0e9['is']('element','imageBlock')||_0x48d0e9['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x21ca38),_0x48d0e9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x30953f{['refresh'](){const _0x5cc90d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5cc90d&&(_0x5cc90d['is']('element','imageBlock')||_0x5cc90d['is']('element','imageInline')));}['execute'](_0x212845){const _0x1f4f56=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x187af5=>{_0x187af5['setAttributes'](_0x212845,_0x1f4f56),_0x187af5['removeAttribute']('srcset',_0x1f4f56),_0x187af5['removeAttribute']('sizes',_0x1f4f56);});}}class g extends _0x9837b9{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x396261,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x481b68}=this;_0x481b68['commands']['add']('uploadcareImageEdit',new J(_0x481b68)),_0x481b68['commands']['add']('uploadcareImageReplace',new O(_0x481b68));}}class j extends _0x9837b9{['_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 _0x50bac9=this['editor'];_0x50bac9['ui']['componentFactory']['add']('uploadcareImageEdit',_0x59c495=>{const _0x1194f8=_0x50bac9['commands']['get']('uploadcareImageEdit'),_0x3db9e6=new _0x1a1f54(_0x59c495),t=_0x59c495['t'];return _0x3db9e6['set']({'icon':_0x3e0d66,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3db9e6['bind']('isEnabled')['to'](_0x1194f8),_0x3db9e6['bind']('isOn')['to'](_0x1194f8,'isActive'),this['listenTo'](_0x3db9e6,'execute',()=>{_0x50bac9['execute']('uploadcareImageEdit'),_0x50bac9['editing']['view']['focus']();}),_0x3db9e6;}),this['_initConfig']();}['_initConfig'](){const _0x40660a=_0xec1d02(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x40660a),this['listenTo'](this['editor'],'destroy',()=>{_0x40660a['remove']();});}}class P extends _0x9837b9{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20250420.0",
3
+ "version": "0.0.0-nightly-20250422.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-20250420.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250420.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250420.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250420.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250420.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250420.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250420.0",
33
- "ckeditor5": "0.0.0-nightly-20250420.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250422.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250422.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250422.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250422.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250422.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250422.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250422.0",
33
+ "ckeditor5": "0.0.0-nightly-20250422.0",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2ec223=_0x237e;function _0x2c01(){const _0x370032=['render','_ctxElement','elementToAttribute','querySelector','PictureEditing','ctxElement','uc-config','15911BUygcj','afterInit','map','destroy','remove','config','configElement','conversion','cleanupImage','uploadcareImageId','6xaalgY','input[uploadcare-file-input]','30415416defowV','execute','listenTo','data-uc-image-id','uploadcare','appendChild','for','requires','_configElement','#uc-icon-arrow-down','2121705ImAKXv','\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','11wVfzje','pluginName','body','imageBlock','editor','commands','replaceImageSource','UploadcareEditing','2394tUVimj','href','uploadcare.uploader','init','uc-upload-ctx-provider','iconHrefResolver','uploadcareImageReplace','locale','getAttribute','get','extend','once','isPremiumPlugin','upcast','10hyCxkk','isOfficialPlugin','_initConversion','getSelectedElement','uploadcare.pubkey','fromCharCode','schema','downcast','document','join','3693663WccbrR','imageInline','isRegistered','400353YnjTuN','_initImageProcessingIndicator','_initSchema','view','_initCtx','true','_initConfig','add','editing','515828NyXljO','selection','354190LQEBoa','attributeToAttribute','contentLanguage','removeAttribute','closeMax','insertImage','8HxYoZp','uploader','model'];_0x2c01=function(){return _0x370032;};return _0x2c01();}(function(_0x17867a,_0x46acf1){const _0x51f3e3=_0x237e,_0x19f23f=_0x17867a();while(!![]){try{const _0x315e4d=-parseInt(_0x51f3e3(0x107))/0x1*(parseInt(_0x51f3e3(0xd6))/0x2)+-parseInt(_0x51f3e3(0xe2))/0x3+parseInt(_0x51f3e3(0x110))/0x4*(-parseInt(_0x51f3e3(0xfa))/0x5)+-parseInt(_0x51f3e3(0xec))/0x6*(-parseInt(_0x51f3e3(0xcc))/0x7)+-parseInt(_0x51f3e3(0xc2))/0x8*(parseInt(_0x51f3e3(0x104))/0x9)+-parseInt(_0x51f3e3(0x112))/0xa+-parseInt(_0x51f3e3(0xe4))/0xb*(-parseInt(_0x51f3e3(0xd8))/0xc);if(_0x315e4d===_0x46acf1)break;else _0x19f23f['push'](_0x19f23f['shift']());}catch(_0x2b833d){_0x19f23f['push'](_0x19f23f['shift']());}}}(_0x2c01,0xca847));import{Plugin as _0x3f14e5}from'ckeditor5/src/core.js';import{Dialog as _0x51c598}from'ckeditor5/src/ui.js';import{createElement as _0x562620,global as _0xa8495a,uid as _0x358183}from'ckeditor5/src/utils.js';function _0x237e(_0x50c572,_0x24c91b){const _0x2c016c=_0x2c01();return _0x237e=function(_0x237ecf,_0x58a82b){_0x237ecf=_0x237ecf-0xc1;let _0x3c0005=_0x2c016c[_0x237ecf];return _0x3c0005;},_0x237e(_0x50c572,_0x24c91b);}import _0x20269e from'./uploadcarecommand.js';import _0x3468ff from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x3f56ad}from'./utils/editingutils.js';export default class i extends _0x3f14e5{[_0x2ec223(0xe0)]=null;[_0x2ec223(0xc6)]=null;static get[_0x2ec223(0xe5)](){const _0x4479c6=_0x2ec223;return _0x4479c6(0xeb);}static get[_0x2ec223(0xdf)](){const _0x1facc6=_0x2ec223;return[_0x1facc6(0xc9),_0x3468ff,_0x51c598];}static get[_0x2ec223(0xfb)](){return!0x0;}static get[_0x2ec223(0xf8)](){return!0x0;}get[_0x2ec223(0xd2)](){const _0x461307=_0x2ec223;return this[_0x461307(0xe0)];}get[_0x2ec223(0xca)](){const _0x405752=_0x2ec223;return this[_0x405752(0xc6)];}[_0x2ec223(0xef)](){const _0x50d3ff=_0x2ec223,_0xd3405e=this[_0x50d3ff(0xe8)];_0xd3405e[_0x50d3ff(0xe9)][_0x50d3ff(0x10e)](_0x50d3ff(0xdc),new _0x20269e(_0xd3405e));}[_0x2ec223(0xcd)](){const _0x26ea83=_0x2ec223;this[_0x26ea83(0x109)](),this[_0x26ea83(0xfc)](),this[_0x26ea83(0x10d)](),this[_0x26ea83(0x10b)](),this[_0x26ea83(0x108)](),this[_0x26ea83(0xda)](this[_0x26ea83(0xe8)],_0x26ea83(0xcf),()=>{const _0x2aaf48=_0x26ea83;this[_0x2aaf48(0xe0)]&&(this[_0x2aaf48(0xe0)][_0x2aaf48(0xd0)](),this[_0x2aaf48(0xe0)]=null),this[_0x2aaf48(0xc6)]&&(this[_0x2aaf48(0xc6)][_0x2aaf48(0xd0)](),this[_0x2aaf48(0xc6)]=null);const _0x4c1f15=_0xa8495a[_0x2aaf48(0x102)][_0x2aaf48(0xc8)](_0x2aaf48(0xd7));_0x4c1f15&&_0x4c1f15[_0x2aaf48(0xd0)]();}),async function(_0xca8438){const _0x184bac=_0x57cb80([0x41,0x78,0x70,0x75,0x4a,0x4c,0x34,0x51,0x49,0x65,0x39,0x6b,0x56,0x48,0x61,0x74,0x66,0x55,0x7a,0x4f,0x46,0x6a,0x72,0x6f,0x50,0x6c,0x43,0x73,0x5a,0x35,0x32,0x53,0x58,0x30,0x4d,0x38,0x57,0x6d,0x59,0x36,0x33,0x62,0x54,0x68,0x52,0x67,0x63,0x71,0x44,0x6e,0x4e,0x45,0x79,0x69,0x47,0x77,0x4b,0x31,0x64,0x76,0x42,0x37]),_0x889b0e=0x193e6c77,_0x4b7baa=0x193909e7^_0x889b0e,_0x33dd45=window[_0x57cb80([0x44,0x61,0x74,0x65])][_0x57cb80([0x6e,0x6f,0x77])](),_0x538388=_0xca8438[_0x57cb80([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c8a2f=new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x654332=>{_0x538388[_0x57cb80([0x6f,0x6e,0x63,0x65])](_0x57cb80([0x72,0x65,0x61,0x64,0x79]),_0x654332);}),_0x651504={[_0x57cb80([0x6b,0x74,0x79])]:_0x57cb80([0x45,0x43]),[_0x57cb80([0x75,0x73,0x65])]:_0x57cb80([0x73,0x69,0x67]),[_0x57cb80([0x63,0x72,0x76])]:_0x57cb80([0x50,0x2d,0x32,0x35,0x36]),[_0x57cb80([0x78])]:_0x57cb80([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]),[_0x57cb80([0x79])]:_0x57cb80([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]),[_0x57cb80([0x61,0x6c,0x67])]:_0x57cb80([0x45,0x53,0x32,0x35,0x36])},_0x844fe1=_0x538388[_0x57cb80([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x57cb80([0x67,0x65,0x74])](_0x57cb80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x504bea(){let _0x1dd458,_0x19cb5b=null,_0x5987d3=null;try{if(_0x844fe1==_0x57cb80([0x47,0x50,0x4c]))return _0x57cb80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1dd458=_0x3b197c(),!_0x1dd458)return _0x57cb80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1dd458[_0x57cb80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5987d3=_0x5a8510(_0x1dd458[_0x57cb80([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1dd458[_0x57cb80([0x6a,0x74,0x69])])),await _0x1ddcd3()?_0x550930()?_0x430d0a()?_0x57cb80([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x32f05c()?(_0x1dd458[_0x57cb80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57cb80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19cb5b=_0x42868b(_0x57cb80([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1dd458[_0x57cb80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x57cb80([0x74,0x72,0x69,0x61,0x6c])&&(_0x19cb5b=_0x42868b(_0x57cb80([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4ea5fd()):_0x57cb80([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x57cb80([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x57cb80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3f514e){return _0x57cb80([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x430d0a(){const _0x5eccf2=[_0x57cb80([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x57cb80([0x74,0x72,0x69,0x61,0x6c])][_0x57cb80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dd458[_0x57cb80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33dd45/0x3e8:0xe10*_0x4b7baa;return _0x1dd458[_0x57cb80([0x65,0x78,0x70])]<_0x5eccf2;}function _0x550930(){const _0x23eac3=_0x1dd458[_0x57cb80([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x23eac3&&(!!_0x23eac3[_0x57cb80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cb80([0x2a]))||!!_0x23eac3[_0x57cb80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cb80([0x55,0x50,0x4c,0x43])));}function _0x32f05c(){const _0x50bc31=_0x237e,_0x3bfda3=_0x1dd458[_0x57cb80([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3bfda3||0x0==_0x3bfda3[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e8508}=new URL(window[_0x57cb80([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x50bc31(0xed)]);if(_0x3bfda3[_0x57cb80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e8508))return!0x0;const _0x12ff62=_0x2e8508[_0x57cb80([0x73,0x70,0x6c,0x69,0x74])](_0x57cb80([0x2e]));return _0x3bfda3[_0x57cb80([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x508377=>_0x508377[_0x57cb80([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cb80([0x2a])))[_0x57cb80([0x6d,0x61,0x70])](_0x5ce7a4=>_0x5ce7a4[_0x57cb80([0x73,0x70,0x6c,0x69,0x74])](_0x57cb80([0x2e])))[_0x57cb80([0x73,0x6f,0x6d,0x65])](_0x4adfcd=>_0x12ff62[_0x57cb80([0x65,0x76,0x65,0x72,0x79])]((_0x6e0ffb,_0x94813b)=>_0x4adfcd[_0x94813b]===_0x6e0ffb||_0x4adfcd[_0x94813b]===_0x57cb80([0x2a])));}function _0x4ea5fd(){return _0x19cb5b&&_0x5987d3?new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x575dde,_0x778aa5)=>{_0x19cb5b[_0x57cb80([0x74,0x68,0x65,0x6e])](_0x575dde,_0x778aa5),_0x5987d3[_0x57cb80([0x74,0x68,0x65,0x6e])](_0xf86b53=>{_0xf86b53!=_0x57cb80([0x56,0x61,0x6c,0x69,0x64])&&_0x575dde(_0xf86b53);},_0x778aa5);}):_0x19cb5b||_0x5987d3||_0x57cb80([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a8510(_0x3ff5a4,_0x4b18f4){return new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8bf6b4=>{if(_0x380a6f())return _0x8bf6b4(_0x57cb80([0x56,0x61,0x6c,0x69,0x64]));_0x205a32(),_0x538388[_0x57cb80([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x57cb80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13628e=!0x1;const _0x4c5f89=_0x358183();function _0x1bb609(_0x2ceffc){return!!_0x2ceffc&&(typeof _0x2ceffc===_0x57cb80([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ceffc===_0x57cb80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ceffc[_0x57cb80([0x74,0x68,0x65,0x6e])]===_0x57cb80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ceffc[_0x57cb80([0x63,0x61,0x74,0x63,0x68])]===_0x57cb80([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3282c2(_0x3ae187){_0x337cb3(_0x3ae187)[_0x57cb80([0x74,0x68,0x65,0x6e])](_0x519b1e=>{if(!_0x519b1e||_0x519b1e[_0x57cb80([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x57cb80([0x6f,0x6b]))return _0x57cb80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1c288e(_0x4f2bf6(_0x4c5f89+_0x4b18f4))!=_0x519b1e[_0x57cb80([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x57cb80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x57cb80([0x56,0x61,0x6c,0x69,0x64]);})[_0x57cb80([0x74,0x68,0x65,0x6e])](_0x3f0274=>(_0x497024(),_0x3f0274),()=>{const _0x33e796=_0x48bfdd();return null==_0x33e796?(_0x497024(),_0x57cb80([0x56,0x61,0x6c,0x69,0x64])):_0x57cb80(_0x33dd45-_0x33e796>(0x3d32e877^_0x889b0e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x57cb80([0x74,0x68,0x65,0x6e])](_0x8bf6b4)[_0x57cb80([0x63,0x61,0x74,0x63,0x68])](()=>{_0x8bf6b4(_0x57cb80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2bed7d=0x190882f7^_0x889b0e;function _0x497024(){const _0x5075d9=_0x57cb80([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c288e(_0x4f2bf6(_0x3ff5a4)),_0x144145=_0x57332b(_0x1c288e(window[_0x57cb80([0x4d,0x61,0x74,0x68])][_0x57cb80([0x63,0x65,0x69,0x6c])](_0x33dd45/_0x2bed7d)));window[_0x57cb80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57cb80([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5075d9,_0x144145);}function _0x48bfdd(){const _0x4f877c=_0x57cb80([0x6c,0x6c,0x63,0x74,0x2d])+_0x1c288e(_0x4f2bf6(_0x3ff5a4)),_0x103928=window[_0x57cb80([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x57cb80([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4f877c);return _0x103928?window[_0x57cb80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57332b(_0x103928),0x10)*_0x2bed7d:null;}function _0x337cb3(_0x4f3a9a){return new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x166235,_0x4cc2a5)=>{_0x4f3a9a[_0x57cb80([0x74,0x68,0x65,0x6e])](_0x166235,_0x4cc2a5),window[_0x57cb80([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4cc2a5,0x193fb8b7^_0x889b0e);});}}_0x538388[_0x57cb80([0x6f,0x6e])](_0x57cb80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2406fa,_0xa15de6)=>{if(_0xa15de6[0x0]!=_0x3ff5a4)return _0x8bf6b4(_0x57cb80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa15de6[0x1]={..._0xa15de6[0x1],[_0x57cb80([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c5f89};},{[_0x57cb80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57cb80([0x68,0x69,0x67,0x68])}),_0x538388[_0x57cb80([0x6f,0x6e])](_0x57cb80([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x165ff0=>{_0x1bb609(_0x165ff0[_0x57cb80([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13628e=!0x0,_0x3282c2(_0x165ff0[_0x57cb80([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x57cb80([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x57cb80([0x6c,0x6f,0x77])}),_0x1c8a2f[_0x57cb80([0x74,0x68,0x65,0x6e])](()=>{_0x13628e||_0x8bf6b4(_0x57cb80([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x380a6f(){return _0x538388[_0x57cb80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57cb80([0x76,0x69,0x65,0x77])][_0x57cb80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x57cb80([0x61,0x75,0x74,0x6f]);}function _0x205a32(){_0x538388[_0x57cb80([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x57cb80([0x76,0x69,0x65,0x77])][_0x57cb80([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x57cb80([0x61,0x75,0x74,0x6f]);}}function _0x42868b(_0x4339c3){const _0x55ea7f=[new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2272f0=>setTimeout(_0x2272f0,0x193752bb^_0x889b0e)),_0x1c8a2f[_0x57cb80([0x74,0x68,0x65,0x6e])](()=>new window[(_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3323ae=>{let _0x4215eb=0x0;_0x538388[_0x57cb80([0x6d,0x6f,0x64,0x65,0x6c])][_0x57cb80([0x6f,0x6e])](_0x57cb80([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd14963,_0x3854b2)=>{_0x3854b2[0x0][_0x57cb80([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4215eb++,_0x4215eb==(0x193e6d8f^_0x889b0e)&&(_0x3323ae(),_0xd14963[_0x57cb80([0x6f,0x66,0x66])]());});}))];return window[_0x57cb80([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x57cb80([0x72,0x61,0x63,0x65])](_0x55ea7f)[_0x57cb80([0x74,0x68,0x65,0x6e])](()=>_0x4339c3);}async function _0x54f286(){await _0x1c8a2f,_0x538388[_0x57cb80([0x6d,0x6f,0x64,0x65,0x6c])][_0x57cb80([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4278f2,_0x538388[_0x57cb80([0x6d,0x6f,0x64,0x65,0x6c])][_0x57cb80([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4278f2,_0x538388[_0x57cb80([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x57cb80([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x464e96(_0x3d044a){const _0x20fdd2=_0x52cf57();_0x538388[_0x20fdd2]=_0x57cb80([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3d044a,_0x3d044a!=_0x57cb80([0x56,0x61,0x6c,0x69,0x64])&&_0x54f286();}function _0x52cf57(){const _0x3e5d42=window[_0x57cb80([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x57cb80([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x57cb80([0x6e,0x6f,0x77])]())[_0x57cb80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x57cb80([0x2e]),'');let _0x1b4680=_0x57cb80([0x41]);for(let _0x497344=0x0;_0x497344<_0x3e5d42[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x497344+=0x2){let _0x541af1=window[_0x57cb80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e5d42[_0x57cb80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x497344,_0x497344+0x2));_0x541af1>=_0x184bac[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x541af1-=_0x184bac[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b4680+=_0x184bac[_0x541af1];}return _0x1b4680;}function _0x3b197c(){const _0x272f7d=_0x844fe1[_0x57cb80([0x73,0x70,0x6c,0x69,0x74])](_0x57cb80([0x2e]));if(0x3!=_0x272f7d[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x27bb2a(_0x272f7d[0x1]);function _0x27bb2a(_0x200e77){const _0x2ad648=_0x46e150(_0x200e77);return _0x2ad648&&_0x1fad1c()?_0x2ad648:null;function _0x1fad1c(){const _0xa633a2=_0x2ad648[_0x57cb80([0x6a,0x74,0x69])],_0x3ec137=window[_0x57cb80([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa633a2[_0x57cb80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa633a2[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xa1b65b={..._0x2ad648,[_0x57cb80([0x6a,0x74,0x69])]:_0xa633a2[_0x57cb80([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa633a2[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xa1b65b[_0x57cb80([0x76,0x63])],_0x4f2bf6(_0xa1b65b)==_0x3ec137;}}}async function _0x1ddcd3(){let _0x1bb23a=!0x0;try{const _0x223942=_0x844fe1[_0x57cb80([0x73,0x70,0x6c,0x69,0x74])](_0x57cb80([0x2e])),[_0x196e87,_0x18d853,_0x33da21]=_0x223942;return _0x59fdf1(_0x196e87),await _0x414539(_0x196e87,_0x18d853,_0x33da21),_0x1bb23a;}catch(_0x1591a1){return!0x1;}function _0x59fdf1(_0x1f6c9c){const _0x41eb2b=_0x46e150(_0x1f6c9c);_0x41eb2b&&_0x41eb2b[_0x57cb80([0x61,0x6c,0x67])]==_0x57cb80([0x45,0x53,0x32,0x35,0x36])||(_0x1bb23a=!0x1);}async function _0x414539(_0x43a2de,_0x27efcf,_0x3634b5){const _0x2e8efc=window[_0x57cb80([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x57cb80([0x66,0x72,0x6f,0x6d])](_0xfe2f29(_0x3634b5),_0x4cbfb8=>_0x4cbfb8[_0x57cb80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x92e8ba=new window[(_0x57cb80([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x57cb80([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x43a2de+_0x57cb80([0x2e])+_0x27efcf),_0x167e6e=window[_0x57cb80([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x57cb80([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x167e6e)return;const _0x2cbb8c=await _0x167e6e[_0x57cb80([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x57cb80([0x6a,0x77,0x6b]),_0x651504,{[_0x57cb80([0x6e,0x61,0x6d,0x65])]:_0x57cb80([0x45,0x43,0x44,0x53,0x41]),[_0x57cb80([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x57cb80([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x57cb80([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x167e6e[_0x57cb80([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x57cb80([0x6e,0x61,0x6d,0x65])]:_0x57cb80([0x45,0x43,0x44,0x53,0x41]),[_0x57cb80([0x68,0x61,0x73,0x68])]:{[_0x57cb80([0x6e,0x61,0x6d,0x65])]:_0x57cb80([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2cbb8c,_0x2e8efc,_0x92e8ba)||(_0x1bb23a=!0x1);}}function _0x46e150(_0x4b98d1){return _0x4b98d1[_0x57cb80([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x57cb80([0x65,0x79]))?JSON[_0x57cb80([0x70,0x61,0x72,0x73,0x65])](_0xfe2f29(_0x4b98d1)):null;}function _0xfe2f29(_0x27e508){return window[_0x57cb80([0x61,0x74,0x6f,0x62])](_0x27e508[_0x57cb80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x57cb80([0x2b]))[_0x57cb80([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x57cb80([0x2f])));}function _0x4f2bf6(_0x152807){let _0x208732=0x1505;function _0x5d8f08(_0x50909a){for(let _0x2f1eae=0x0;_0x2f1eae<_0x50909a[_0x57cb80([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f1eae++){const _0x50dca5=_0x50909a[_0x57cb80([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2f1eae);_0x208732=(_0x208732<<0x5)+_0x208732+_0x50dca5,_0x208732&=_0x208732;}}function _0x39e944(_0x25f29f){Array[_0x57cb80([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x25f29f)?_0x25f29f[_0x57cb80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x39e944):_0x25f29f&&typeof _0x25f29f==_0x57cb80([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x57cb80([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x25f29f)[_0x57cb80([0x73,0x6f,0x72,0x74])]()[_0x57cb80([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x21a15a,_0x2e93c8])=>{_0x5d8f08(_0x21a15a),_0x39e944(_0x2e93c8);}):_0x5d8f08(window[_0x57cb80([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x25f29f));}return _0x39e944(_0x152807),_0x208732>>>0x0;}function _0x1c288e(_0x349018){return _0x349018[_0x57cb80([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x57cb80([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x57cb80([0x30]));}function _0x57332b(_0x199534){return _0x199534[_0x57cb80([0x73,0x70,0x6c,0x69,0x74])]('')[_0x57cb80([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x57cb80([0x6a,0x6f,0x69,0x6e])]('');}function _0x4278f2(){}function _0x57cb80(_0x477422){const _0x4b7102=_0x237e;return _0x477422[_0x4b7102(0xce)](_0x1d9c51=>String[_0x4b7102(0xff)](_0x1d9c51))[_0x4b7102(0x103)]('');}_0x464e96(await _0x504bea());}(this);}[_0x2ec223(0x109)](){const _0xd472e3=_0x2ec223,_0x3d5450=this[_0xd472e3(0xe8)][_0xd472e3(0xc4)][_0xd472e3(0x100)];_0x3d5450[_0xd472e3(0x106)](_0xd472e3(0xe7))&&_0x3d5450[_0xd472e3(0xf6)](_0xd472e3(0xe7),{'allowAttributes':[_0xd472e3(0xd5)]}),_0x3d5450[_0xd472e3(0x106)](_0xd472e3(0x105))&&_0x3d5450[_0xd472e3(0xf6)](_0xd472e3(0x105),{'allowAttributes':[_0xd472e3(0xd5)]});}[_0x2ec223(0xfc)](){const _0x21ea39=_0x2ec223,_0x117453=this[_0x21ea39(0xe8)];_0x117453[_0x21ea39(0xd3)][_0x21ea39(0xde)](_0x21ea39(0x101))[_0x21ea39(0x113)]({'model':_0x21ea39(0xd5),'view':_0x21ea39(0xdb)}),_0x117453[_0x21ea39(0xd3)][_0x21ea39(0xde)](_0x21ea39(0xf9))[_0x21ea39(0xc7)]({'model':{'key':_0x21ea39(0xd5),'value':_0x1345ac=>_0x1345ac[_0x21ea39(0xf4)](_0x21ea39(0xdb))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2532ac=_0x117453[_0x21ea39(0xe9)][_0x21ea39(0xf5)](_0x21ea39(0xea));_0x2532ac&&this[_0x21ea39(0xda)](_0x2532ac,_0x21ea39(0xd4),(_0x3d7527,[_0x4fdc49,_0x2732c5])=>{const _0x15c634=_0x21ea39;_0x4fdc49[_0x15c634(0x115)](_0x15c634(0xd5),_0x2732c5);});}[_0x2ec223(0x10d)](){const _0x19dad4=_0x2ec223,_0x97bd99=this[_0x19dad4(0xe8)][_0x19dad4(0xd1)][_0x19dad4(0xf5)](_0x19dad4(0xee))||{},_0x4353e4=this[_0x19dad4(0xe8)][_0x19dad4(0xd1)][_0x19dad4(0xf5)](_0x19dad4(0xfe))||'';this[_0x19dad4(0xe0)]=_0x562620(_0xa8495a[_0x19dad4(0x102)],_0x19dad4(0xcb),{..._0x97bd99,'pubkey':_0x4353e4,'ctx-name':_0x19dad4(0xc3),'sourceList':'','imgOnly':_0x19dad4(0x10c),'removeCopyright':_0x19dad4(0x10c),'localeName':this[_0x19dad4(0xe8)][_0x19dad4(0xf3)][_0x19dad4(0x114)],'externalSourcesEmbedCss':_0x19dad4(0xe3)}),this[_0x19dad4(0xe0)][_0x19dad4(0xf1)]=_0x412592=>{const _0x267dc3=_0x19dad4;if(_0x267dc3(0x116)==_0x412592)return _0x267dc3(0xe1);},_0xa8495a[_0x19dad4(0x102)][_0x19dad4(0xe6)][_0x19dad4(0xdd)](this[_0x19dad4(0xe0)]);}[_0x2ec223(0x10b)](){const _0x49e35d=_0x2ec223;this[_0x49e35d(0xc6)]=_0x562620(_0xa8495a[_0x49e35d(0x102)],_0x49e35d(0xf0),{'ctx-name':_0x49e35d(0xc3)}),_0xa8495a[_0x49e35d(0x102)][_0x49e35d(0xe6)][_0x49e35d(0xdd)](this[_0x49e35d(0xc6)]);}[_0x2ec223(0x108)](){const _0x239c8f=_0x2ec223,_0x4a3d12=this[_0x239c8f(0xe8)][_0x239c8f(0xe9)][_0x239c8f(0xf5)](_0x239c8f(0xc1));_0x4a3d12&&this[_0x239c8f(0xda)](_0x4a3d12,_0x239c8f(0xd9),()=>{const _0x4d7765=_0x239c8f,_0x2eebf8=this[_0x4d7765(0xe8)][_0x4d7765(0xc4)][_0x4d7765(0x102)][_0x4d7765(0x111)][_0x4d7765(0xfd)]();_0x2eebf8&&_0x2eebf8[_0x4d7765(0xf4)](_0x4d7765(0xd5))&&this[_0x4d7765(0xe8)][_0x4d7765(0x10f)][_0x4d7765(0x10a)][_0x4d7765(0xf7)](_0x4d7765(0xc5),()=>{const _0x532751=_0x4d7765;_0x3f56ad(this[_0x532751(0xe8)],_0x2eebf8);});});const _0x31c4ae=this[_0x239c8f(0xe8)][_0x239c8f(0xe9)][_0x239c8f(0xf5)](_0x239c8f(0xf2));_0x31c4ae&&this[_0x239c8f(0xda)](_0x31c4ae,_0x239c8f(0xd9),()=>{const _0x230aae=_0x239c8f,_0x576119=this[_0x230aae(0xe8)][_0x230aae(0xc4)][_0x230aae(0x102)][_0x230aae(0x111)][_0x230aae(0xfd)]();_0x576119&&_0x576119[_0x230aae(0xf4)](_0x230aae(0xd5))&&this[_0x230aae(0xe8)][_0x230aae(0x10f)][_0x230aae(0x10a)][_0x230aae(0xf7)](_0x230aae(0xc5),()=>{const _0x416d85=_0x230aae;_0x3f56ad(this[_0x416d85(0xe8)],_0x576119);});});}}
23
+ const _0x328254=_0x2ebf;(function(_0x5f4920,_0x37c495){const _0x2c0c7c=_0x2ebf,_0x224f06=_0x5f4920();while(!![]){try{const _0x486358=-parseInt(_0x2c0c7c(0x177))/0x1*(-parseInt(_0x2c0c7c(0x172))/0x2)+-parseInt(_0x2c0c7c(0x17e))/0x3+-parseInt(_0x2c0c7c(0x167))/0x4*(-parseInt(_0x2c0c7c(0x1a3))/0x5)+-parseInt(_0x2c0c7c(0x182))/0x6+parseInt(_0x2c0c7c(0x181))/0x7*(parseInt(_0x2c0c7c(0x18c))/0x8)+-parseInt(_0x2c0c7c(0x1a2))/0x9*(parseInt(_0x2c0c7c(0x183))/0xa)+parseInt(_0x2c0c7c(0x1ac))/0xb;if(_0x486358===_0x37c495)break;else _0x224f06['push'](_0x224f06['shift']());}catch(_0x2b492e){_0x224f06['push'](_0x224f06['shift']());}}}(_0x2c6f,0x84f34));import{Plugin as _0xfc3de}from'ckeditor5/src/core.js';import{Dialog as _0x3ee0ad}from'ckeditor5/src/ui.js';import{createElement as _0x51d75b,global as _0x35ad4d,uid as _0x365838}from'ckeditor5/src/utils.js';function _0x2c6f(){const _0x54d711=['replaceImageSource','uc-upload-ctx-provider','136wEPZlU','for','_configElement','true','elementToAttribute','7432IkzUKd','uploadcare.pubkey','data-uc-image-id','ctxElement','closeMax','getSelectedElement','pluginName','1500741vFIQkW','\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','map','188867hSIcIX','1775514pgDjzD','2060DVMwzZ','_initImageProcessingIndicator','_ctxElement','fromCharCode','extend','schema','listenTo','cleanupImage','PictureEditing','56wkAmgl','editing','contentLanguage','document','config','attributeToAttribute','input[uploadcare-file-input]','isPremiumPlugin','render','iconHrefResolver','execute','querySelector','conversion','uploadcare.uploader','isRegistered','downcast','_initConfig','uploadcareImageId','locale','appendChild','imageInline','remove','20196fvAJtL','2745ifTZrp','_initConversion','destroy','imageBlock','insertImage','init','afterInit','model','get','3029059dfDGRz','uploadcare','requires','href','commands','UploadcareEditing','_initSchema','add','getAttribute','editor','upcast','uploadcareImageReplace','once','uc-config','view','configElement','6072yFuyzl','removeAttribute','selection','join','_initCtx','body','#uc-icon-arrow-down','isOfficialPlugin','uploader'];_0x2c6f=function(){return _0x54d711;};return _0x2c6f();}import _0x82864c from'./uploadcarecommand.js';import _0x4c2dd1 from'./uploadcareuploadadapter.js';function _0x2ebf(_0x3a8fe0,_0x6556c5){const _0x2c6f74=_0x2c6f();return _0x2ebf=function(_0x2ebff5,_0x2fd22c){_0x2ebff5=_0x2ebff5-0x165;let _0x448cad=_0x2c6f74[_0x2ebff5];return _0x448cad;},_0x2ebf(_0x3a8fe0,_0x6556c5);}import{showImageProcessingIndicator as _0x494ce5}from'./utils/editingutils.js';export default class i extends _0xfc3de{[_0x328254(0x174)]=null;[_0x328254(0x185)]=null;static get[_0x328254(0x17d)](){const _0x28fb46=_0x328254;return _0x28fb46(0x1b1);}static get[_0x328254(0x1ae)](){const _0x4c6156=_0x328254;return[_0x4c6156(0x18b),_0x4c2dd1,_0x3ee0ad];}static get[_0x328254(0x16e)](){return!0x0;}static get[_0x328254(0x193)](){return!0x0;}get[_0x328254(0x166)](){const _0xa9fb96=_0x328254;return this[_0xa9fb96(0x174)];}get[_0x328254(0x17a)](){const _0x6be261=_0x328254;return this[_0x6be261(0x185)];}[_0x328254(0x1a8)](){const _0x451fd2=_0x328254,_0x4ad7f9=this[_0x451fd2(0x1b5)];_0x4ad7f9[_0x451fd2(0x1b0)][_0x451fd2(0x1b3)](_0x451fd2(0x1ad),new _0x82864c(_0x4ad7f9));}[_0x328254(0x1a9)](){const _0x14126e=_0x328254;this[_0x14126e(0x1b2)](),this[_0x14126e(0x1a4)](),this[_0x14126e(0x19c)](),this[_0x14126e(0x16b)](),this[_0x14126e(0x184)](),this[_0x14126e(0x189)](this[_0x14126e(0x1b5)],_0x14126e(0x1a5),()=>{const _0x2f2da4=_0x14126e;this[_0x2f2da4(0x174)]&&(this[_0x2f2da4(0x174)][_0x2f2da4(0x1a1)](),this[_0x2f2da4(0x174)]=null),this[_0x2f2da4(0x185)]&&(this[_0x2f2da4(0x185)][_0x2f2da4(0x1a1)](),this[_0x2f2da4(0x185)]=null);const _0x2b0ef7=_0x35ad4d[_0x2f2da4(0x18f)][_0x2f2da4(0x197)](_0x2f2da4(0x192));_0x2b0ef7&&_0x2b0ef7[_0x2f2da4(0x1a1)]();}),async function(_0x49fc82){const _0x1cdd0d=_0x89a55a([0x33,0x30,0x50,0x59,0x7a,0x6d,0x74,0x67,0x44,0x62,0x73,0x35,0x47,0x6e,0x38,0x43,0x69,0x72,0x6c,0x4c,0x52,0x37,0x70,0x31,0x4e,0x68,0x39,0x4a,0x61,0x55,0x42,0x76,0x41,0x4d,0x63,0x34,0x78,0x49,0x56,0x57,0x64,0x46,0x58,0x32,0x71,0x51,0x4b,0x6f,0x36,0x75,0x6b,0x79,0x48,0x54,0x5a,0x65,0x66,0x53,0x77,0x6a,0x45,0x4f]),_0x398268=0x29f543d8,_0x4194ed=0x29f22618^_0x398268,_0x5dda12=window[_0x89a55a([0x44,0x61,0x74,0x65])][_0x89a55a([0x6e,0x6f,0x77])](),_0x31ad55=_0x49fc82[_0x89a55a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3c049b=new window[(_0x89a55a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x458bd9=>{_0x31ad55[_0x89a55a([0x6f,0x6e,0x63,0x65])](_0x89a55a([0x72,0x65,0x61,0x64,0x79]),_0x458bd9);}),_0x5d838c={[_0x89a55a([0x6b,0x74,0x79])]:_0x89a55a([0x45,0x43]),[_0x89a55a([0x75,0x73,0x65])]:_0x89a55a([0x73,0x69,0x67]),[_0x89a55a([0x63,0x72,0x76])]:_0x89a55a([0x50,0x2d,0x32,0x35,0x36]),[_0x89a55a([0x78])]:_0x89a55a([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]),[_0x89a55a([0x79])]:_0x89a55a([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]),[_0x89a55a([0x61,0x6c,0x67])]:_0x89a55a([0x45,0x53,0x32,0x35,0x36])},_0x5b07fc=_0x31ad55[_0x89a55a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x89a55a([0x67,0x65,0x74])](_0x89a55a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e21f2(){let _0x55acd6,_0x5dba2b=null,_0x1a04a0=null;try{if(_0x5b07fc==_0x89a55a([0x47,0x50,0x4c]))return _0x89a55a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x55acd6=_0x5b2db3(),!_0x55acd6)return _0x89a55a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x55acd6[_0x89a55a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a04a0=_0x1c9424(_0x55acd6[_0x89a55a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x55acd6[_0x89a55a([0x6a,0x74,0x69])])),await _0x8aa7d4()?_0x3e9ef8()?_0x5bea81()?_0x89a55a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf9b64b()?(_0x55acd6[_0x89a55a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x89a55a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5dba2b=_0x435d29(_0x89a55a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x55acd6[_0x89a55a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x89a55a([0x74,0x72,0x69,0x61,0x6c])&&(_0x5dba2b=_0x435d29(_0x89a55a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d2c31()):_0x89a55a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x89a55a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x89a55a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x9c6c59){return _0x89a55a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5bea81(){const _0x304a76=[_0x89a55a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x89a55a([0x74,0x72,0x69,0x61,0x6c])][_0x89a55a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55acd6[_0x89a55a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5dda12/0x3e8:0xe10*_0x4194ed;return _0x55acd6[_0x89a55a([0x65,0x78,0x70])]<_0x304a76;}function _0x3e9ef8(){const _0x1b387a=_0x55acd6[_0x89a55a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b387a&&(!!_0x1b387a[_0x89a55a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x89a55a([0x2a]))||!!_0x1b387a[_0x89a55a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x89a55a([0x55,0x50,0x4c,0x43])));}function _0xf9b64b(){const _0x40fbc3=_0x2ebf,_0x24c5d9=_0x55acd6[_0x89a55a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24c5d9||0x0==_0x24c5d9[_0x89a55a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3319ec}=new URL(window[_0x89a55a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x40fbc3(0x1af)]);if(_0x24c5d9[_0x89a55a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3319ec))return!0x0;const _0x3d89e=_0x3319ec[_0x89a55a([0x73,0x70,0x6c,0x69,0x74])](_0x89a55a([0x2e]));return _0x24c5d9[_0x89a55a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x496c54=>_0x496c54[_0x89a55a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x89a55a([0x2a])))[_0x89a55a([0x6d,0x61,0x70])](_0x44c219=>_0x44c219[_0x89a55a([0x73,0x70,0x6c,0x69,0x74])](_0x89a55a([0x2e])))[_0x89a55a([0x73,0x6f,0x6d,0x65])](_0x5a2546=>_0x3d89e[_0x89a55a([0x65,0x76,0x65,0x72,0x79])]((_0x3ecd89,_0x126803)=>_0x5a2546[_0x126803]===_0x3ecd89||_0x5a2546[_0x126803]===_0x89a55a([0x2a])));}function _0x2d2c31(){return _0x5dba2b&&_0x1a04a0?new window[(_0x89a55a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13cf22,_0x5ad264)=>{_0x5dba2b[_0x89a55a([0x74,0x68,0x65,0x6e])](_0x13cf22,_0x5ad264),_0x1a04a0[_0x89a55a([0x74,0x68,0x65,0x6e])](_0x3c3f31=>{_0x3c3f31!=_0x89a55a([0x56,0x61,0x6c,0x69,0x64])&&_0x13cf22(_0x3c3f31);},_0x5ad264);}):_0x5dba2b||_0x1a04a0||_0x89a55a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c9424(_0x5c56da,_0x5205dd){return new window[(_0x89a55a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c0092=>{if(_0x259f42())return _0x1c0092(_0x89a55a([0x56,0x61,0x6c,0x69,0x64]));_0x5852e4(),_0x31ad55[_0x89a55a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x89a55a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x274ab9=!0x1;const _0x1b2ca3=_0x365838();function _0x3cdcc4(_0x271c91){return!!_0x271c91&&(typeof _0x271c91===_0x89a55a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x271c91===_0x89a55a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x271c91[_0x89a55a([0x74,0x68,0x65,0x6e])]===_0x89a55a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x271c91[_0x89a55a([0x63,0x61,0x74,0x63,0x68])]===_0x89a55a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x220ae6(_0x3e0cd9){_0x282eff(_0x3e0cd9)[_0x89a55a([0x74,0x68,0x65,0x6e])](_0x4e1db0=>{if(!_0x4e1db0||_0x4e1db0[_0x89a55a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x89a55a([0x6f,0x6b]))return _0x89a55a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x529c23(_0xf48478(_0x1b2ca3+_0x5205dd))!=_0x4e1db0[_0x89a55a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x89a55a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x89a55a([0x56,0x61,0x6c,0x69,0x64]);})[_0x89a55a([0x74,0x68,0x65,0x6e])](_0x37716c=>(_0x594ae5(),_0x37716c),()=>{const _0x1fb2fc=_0x210835();return null==_0x1fb2fc?(_0x594ae5(),_0x89a55a([0x56,0x61,0x6c,0x69,0x64])):_0x89a55a(_0x5dda12-_0x1fb2fc>(0xdf9c7d8^_0x398268)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x89a55a([0x74,0x68,0x65,0x6e])](_0x1c0092)[_0x89a55a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1c0092(_0x89a55a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b80ba=0x29c3ad58^_0x398268;function _0x594ae5(){const _0x453a58=_0x89a55a([0x6c,0x6c,0x63,0x74,0x2d])+_0x529c23(_0xf48478(_0x5c56da)),_0x4ef5ad=_0x5ec02e(_0x529c23(window[_0x89a55a([0x4d,0x61,0x74,0x68])][_0x89a55a([0x63,0x65,0x69,0x6c])](_0x5dda12/_0x3b80ba)));window[_0x89a55a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x89a55a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x453a58,_0x4ef5ad);}function _0x210835(){const _0x1fa044=_0x89a55a([0x6c,0x6c,0x63,0x74,0x2d])+_0x529c23(_0xf48478(_0x5c56da)),_0x54f374=window[_0x89a55a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x89a55a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1fa044);return _0x54f374?window[_0x89a55a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ec02e(_0x54f374),0x10)*_0x3b80ba:null;}function _0x282eff(_0x3a8463){return new window[(_0x89a55a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26e6fe,_0x1e9e10)=>{_0x3a8463[_0x89a55a([0x74,0x68,0x65,0x6e])](_0x26e6fe,_0x1e9e10),window[_0x89a55a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e9e10,0x29f49718^_0x398268);});}}_0x31ad55[_0x89a55a([0x6f,0x6e])](_0x89a55a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x501a97,_0x989857)=>{if(_0x989857[0x0]!=_0x5c56da)return _0x1c0092(_0x89a55a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x989857[0x1]={..._0x989857[0x1],[_0x89a55a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b2ca3};},{[_0x89a55a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x89a55a([0x68,0x69,0x67,0x68])}),_0x31ad55[_0x89a55a([0x6f,0x6e])](_0x89a55a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f8370=>{_0x3cdcc4(_0x4f8370[_0x89a55a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x274ab9=!0x0,_0x220ae6(_0x4f8370[_0x89a55a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x89a55a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x89a55a([0x6c,0x6f,0x77])}),_0x3c049b[_0x89a55a([0x74,0x68,0x65,0x6e])](()=>{_0x274ab9||_0x1c0092(_0x89a55a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x259f42(){return _0x31ad55[_0x89a55a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x89a55a([0x76,0x69,0x65,0x77])][_0x89a55a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x89a55a([0x61,0x75,0x74,0x6f]);}function _0x5852e4(){_0x31ad55[_0x89a55a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x89a55a([0x76,0x69,0x65,0x77])][_0x89a55a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x89a55a([0x61,0x75,0x74,0x6f]);}}function _0x435d29(_0x4fd153){const _0x5f48e0=[new window[(_0x89a55a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x271856=>setTimeout(_0x271856,0x29fc7d14^_0x398268)),_0x3c049b[_0x89a55a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x89a55a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3add48=>{let _0x4cfe52=0x0;_0x31ad55[_0x89a55a([0x6d,0x6f,0x64,0x65,0x6c])][_0x89a55a([0x6f,0x6e])](_0x89a55a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x53647d,_0x21fc7a)=>{_0x21fc7a[0x0][_0x89a55a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4cfe52++,_0x4cfe52==(0x29f54220^_0x398268)&&(_0x3add48(),_0x53647d[_0x89a55a([0x6f,0x66,0x66])]());});}))];return window[_0x89a55a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x89a55a([0x72,0x61,0x63,0x65])](_0x5f48e0)[_0x89a55a([0x74,0x68,0x65,0x6e])](()=>_0x4fd153);}async function _0x95b71e(){await _0x3c049b,_0x31ad55[_0x89a55a([0x6d,0x6f,0x64,0x65,0x6c])][_0x89a55a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x126ca4,_0x31ad55[_0x89a55a([0x6d,0x6f,0x64,0x65,0x6c])][_0x89a55a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x126ca4,_0x31ad55[_0x89a55a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x89a55a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15b52e(_0x52f712){const _0x335d4b=_0x5691a7();_0x31ad55[_0x335d4b]=_0x89a55a([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x52f712,_0x52f712!=_0x89a55a([0x56,0x61,0x6c,0x69,0x64])&&_0x95b71e();}function _0x5691a7(){const _0x44ad78=window[_0x89a55a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x89a55a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x89a55a([0x6e,0x6f,0x77])]())[_0x89a55a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x89a55a([0x2e]),'');let _0x3c4f76=_0x89a55a([0x50]);for(let _0x33bf0e=0x0;_0x33bf0e<_0x44ad78[_0x89a55a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x33bf0e+=0x2){let _0x1d507b=window[_0x89a55a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44ad78[_0x89a55a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x33bf0e,_0x33bf0e+0x2));_0x1d507b>=_0x1cdd0d[_0x89a55a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1d507b-=_0x1cdd0d[_0x89a55a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c4f76+=_0x1cdd0d[_0x1d507b];}return _0x3c4f76;}function _0x5b2db3(){const _0x4be815=_0x5b07fc[_0x89a55a([0x73,0x70,0x6c,0x69,0x74])](_0x89a55a([0x2e]));if(0x3!=_0x4be815[_0x89a55a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1cb6af(_0x4be815[0x1]);function _0x1cb6af(_0x2b4597){const _0x4f2b9e=_0x2ff693(_0x2b4597);return _0x4f2b9e&&_0x21be7c()?_0x4f2b9e:null;function _0x21be7c(){const _0x4a4bc4=_0x4f2b9e[_0x89a55a([0x6a,0x74,0x69])],_0x569238=window[_0x89a55a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a4bc4[_0x89a55a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a4bc4[_0x89a55a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x382883={..._0x4f2b9e,[_0x89a55a([0x6a,0x74,0x69])]:_0x4a4bc4[_0x89a55a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a4bc4[_0x89a55a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x382883[_0x89a55a([0x76,0x63])],_0xf48478(_0x382883)==_0x569238;}}}async function _0x8aa7d4(){let _0x155c25=!0x0;try{const _0x553cd5=_0x5b07fc[_0x89a55a([0x73,0x70,0x6c,0x69,0x74])](_0x89a55a([0x2e])),[_0x38b226,_0x195cbc,_0x45b498]=_0x553cd5;return _0x1b6871(_0x38b226),await _0x3b00cc(_0x38b226,_0x195cbc,_0x45b498),_0x155c25;}catch(_0x55e12f){return!0x1;}function _0x1b6871(_0x362286){const _0x2b918a=_0x2ff693(_0x362286);_0x2b918a&&_0x2b918a[_0x89a55a([0x61,0x6c,0x67])]==_0x89a55a([0x45,0x53,0x32,0x35,0x36])||(_0x155c25=!0x1);}async function _0x3b00cc(_0x3e35ca,_0x20b411,_0x104d9a){const _0x282b83=window[_0x89a55a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x89a55a([0x66,0x72,0x6f,0x6d])](_0x87e5d3(_0x104d9a),_0x1e727f=>_0x1e727f[_0x89a55a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3dfe95=new window[(_0x89a55a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x89a55a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e35ca+_0x89a55a([0x2e])+_0x20b411),_0x57a6fd=window[_0x89a55a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x89a55a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57a6fd)return;const _0x4fe084=await _0x57a6fd[_0x89a55a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x89a55a([0x6a,0x77,0x6b]),_0x5d838c,{[_0x89a55a([0x6e,0x61,0x6d,0x65])]:_0x89a55a([0x45,0x43,0x44,0x53,0x41]),[_0x89a55a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x89a55a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x89a55a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57a6fd[_0x89a55a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x89a55a([0x6e,0x61,0x6d,0x65])]:_0x89a55a([0x45,0x43,0x44,0x53,0x41]),[_0x89a55a([0x68,0x61,0x73,0x68])]:{[_0x89a55a([0x6e,0x61,0x6d,0x65])]:_0x89a55a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4fe084,_0x282b83,_0x3dfe95)||(_0x155c25=!0x1);}}function _0x2ff693(_0x311009){return _0x311009[_0x89a55a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x89a55a([0x65,0x79]))?JSON[_0x89a55a([0x70,0x61,0x72,0x73,0x65])](_0x87e5d3(_0x311009)):null;}function _0x87e5d3(_0x2cf30c){return window[_0x89a55a([0x61,0x74,0x6f,0x62])](_0x2cf30c[_0x89a55a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x89a55a([0x2b]))[_0x89a55a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x89a55a([0x2f])));}function _0xf48478(_0x1ae62e){let _0x3fa664=0x1505;function _0x92b0cc(_0xdc2c85){for(let _0xf08c2=0x0;_0xf08c2<_0xdc2c85[_0x89a55a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf08c2++){const _0x3254c=_0xdc2c85[_0x89a55a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf08c2);_0x3fa664=(_0x3fa664<<0x5)+_0x3fa664+_0x3254c,_0x3fa664&=_0x3fa664;}}function _0x1a335b(_0x3c6683){Array[_0x89a55a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c6683)?_0x3c6683[_0x89a55a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a335b):_0x3c6683&&typeof _0x3c6683==_0x89a55a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x89a55a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c6683)[_0x89a55a([0x73,0x6f,0x72,0x74])]()[_0x89a55a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x145572,_0xa4cdbc])=>{_0x92b0cc(_0x145572),_0x1a335b(_0xa4cdbc);}):_0x92b0cc(window[_0x89a55a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c6683));}return _0x1a335b(_0x1ae62e),_0x3fa664>>>0x0;}function _0x529c23(_0x4c10c3){return _0x4c10c3[_0x89a55a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x89a55a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x89a55a([0x30]));}function _0x5ec02e(_0x500f76){return _0x500f76[_0x89a55a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x89a55a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x89a55a([0x6a,0x6f,0x69,0x6e])]('');}function _0x126ca4(){}function _0x89a55a(_0x9be401){const _0x19d7af=_0x2ebf;return _0x9be401[_0x19d7af(0x180)](_0x3d8c0b=>String[_0x19d7af(0x186)](_0x3d8c0b))[_0x19d7af(0x16a)]('');}_0x15b52e(await _0x2e21f2());}(this);}[_0x328254(0x1b2)](){const _0x2f218d=_0x328254,_0x4fd163=this[_0x2f218d(0x1b5)][_0x2f218d(0x1aa)][_0x2f218d(0x188)];_0x4fd163[_0x2f218d(0x19a)](_0x2f218d(0x1a6))&&_0x4fd163[_0x2f218d(0x187)](_0x2f218d(0x1a6),{'allowAttributes':[_0x2f218d(0x19d)]}),_0x4fd163[_0x2f218d(0x19a)](_0x2f218d(0x1a0))&&_0x4fd163[_0x2f218d(0x187)](_0x2f218d(0x1a0),{'allowAttributes':[_0x2f218d(0x19d)]});}[_0x328254(0x1a4)](){const _0x1e73fd=_0x328254,_0x29bd8a=this[_0x1e73fd(0x1b5)];_0x29bd8a[_0x1e73fd(0x198)][_0x1e73fd(0x173)](_0x1e73fd(0x19b))[_0x1e73fd(0x191)]({'model':_0x1e73fd(0x19d),'view':_0x1e73fd(0x179)}),_0x29bd8a[_0x1e73fd(0x198)][_0x1e73fd(0x173)](_0x1e73fd(0x1b6))[_0x1e73fd(0x176)]({'model':{'key':_0x1e73fd(0x19d),'value':_0x58a650=>_0x58a650[_0x1e73fd(0x1b4)](_0x1e73fd(0x179))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3ba77f=_0x29bd8a[_0x1e73fd(0x1b0)][_0x1e73fd(0x1ab)](_0x1e73fd(0x170));_0x3ba77f&&this[_0x1e73fd(0x189)](_0x3ba77f,_0x1e73fd(0x18a),(_0x5cd928,[_0x2b3184,_0x1f1c53])=>{const _0x38c5d3=_0x1e73fd;_0x2b3184[_0x38c5d3(0x168)](_0x38c5d3(0x19d),_0x1f1c53);});}[_0x328254(0x19c)](){const _0x432d8e=_0x328254,_0x2a5746=this[_0x432d8e(0x1b5)][_0x432d8e(0x190)][_0x432d8e(0x1ab)](_0x432d8e(0x199))||{},_0x521ecc=this[_0x432d8e(0x1b5)][_0x432d8e(0x190)][_0x432d8e(0x1ab)](_0x432d8e(0x178))||'';this[_0x432d8e(0x174)]=_0x51d75b(_0x35ad4d[_0x432d8e(0x18f)],_0x432d8e(0x1b9),{..._0x2a5746,'pubkey':_0x521ecc,'ctx-name':_0x432d8e(0x16f),'sourceList':'','imgOnly':_0x432d8e(0x175),'removeCopyright':_0x432d8e(0x175),'localeName':this[_0x432d8e(0x1b5)][_0x432d8e(0x19e)][_0x432d8e(0x18e)],'externalSourcesEmbedCss':_0x432d8e(0x17f)}),this[_0x432d8e(0x174)][_0x432d8e(0x195)]=_0x2049f3=>{const _0x511067=_0x432d8e;if(_0x511067(0x17b)==_0x2049f3)return _0x511067(0x16d);},_0x35ad4d[_0x432d8e(0x18f)][_0x432d8e(0x16c)][_0x432d8e(0x19f)](this[_0x432d8e(0x174)]);}[_0x328254(0x16b)](){const _0x38dce6=_0x328254;this[_0x38dce6(0x185)]=_0x51d75b(_0x35ad4d[_0x38dce6(0x18f)],_0x38dce6(0x171),{'ctx-name':_0x38dce6(0x16f)}),_0x35ad4d[_0x38dce6(0x18f)][_0x38dce6(0x16c)][_0x38dce6(0x19f)](this[_0x38dce6(0x185)]);}[_0x328254(0x184)](){const _0x355367=_0x328254,_0x43e518=this[_0x355367(0x1b5)][_0x355367(0x1b0)][_0x355367(0x1ab)](_0x355367(0x1a7));_0x43e518&&this[_0x355367(0x189)](_0x43e518,_0x355367(0x196),()=>{const _0x2170ad=_0x355367,_0x29062a=this[_0x2170ad(0x1b5)][_0x2170ad(0x1aa)][_0x2170ad(0x18f)][_0x2170ad(0x169)][_0x2170ad(0x17c)]();_0x29062a&&_0x29062a[_0x2170ad(0x1b4)](_0x2170ad(0x19d))&&this[_0x2170ad(0x1b5)][_0x2170ad(0x18d)][_0x2170ad(0x165)][_0x2170ad(0x1b8)](_0x2170ad(0x194),()=>{const _0x5a58ba=_0x2170ad;_0x494ce5(this[_0x5a58ba(0x1b5)],_0x29062a);});});const _0x41d213=this[_0x355367(0x1b5)][_0x355367(0x1b0)][_0x355367(0x1ab)](_0x355367(0x1b7));_0x41d213&&this[_0x355367(0x189)](_0x41d213,_0x355367(0x196),()=>{const _0x2c953b=_0x355367,_0x3d6948=this[_0x2c953b(0x1b5)][_0x2c953b(0x1aa)][_0x2c953b(0x18f)][_0x2c953b(0x169)][_0x2c953b(0x17c)]();_0x3d6948&&_0x3d6948[_0x2c953b(0x1b4)](_0x2c953b(0x19d))&&this[_0x2c953b(0x1b5)][_0x2c953b(0x18d)][_0x2c953b(0x165)][_0x2c953b(0x1b8)](_0x2c953b(0x194),()=>{const _0x4243ee=_0x2c953b;_0x494ce5(this[_0x4243ee(0x1b5)],_0x3d6948);});});}}