@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251101.0 → 0.0.0-nightly-20251103.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 _0x3ba018,Command as _0x9f6c51}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4fee3b,IconGooglePhotos as _0x1be7fd,IconGoogleDrive as _0x14ad76,IconFacebook as _0x5ffbe3,IconDropbox as _0x26ecdf,IconUploadcareLink as _0xb9a571,IconUploadcareImageUpload as _0x41031d,IconError as _0x5982d1,IconUploadcareImageEdit as _0x492800}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5d53c9,MenuBarMenuListItemButtonView as _0x4b1183,View as _0x4d65b1,FocusCycler as _0x21b020,Dialog as _0x1395c3,DialogViewPosition as _0x2152e4,SpinnerView as _0x391b89,IconView as _0x4f4a55,Notification as _0x34cd1c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x24489b,DomEmitterMixin as _0x4f8bd1,global as _0x11e893,getAncestors as _0x554b32,ObservableMixin as _0x2dfaf0,uid as _0x437ba5,createElement as _0x16c64c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0xccc9da}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x40f05e,info as _0x490086}from'@uploadcare/upload-client';import*as _0x214642 from'@uploadcare/file-uploader';var i=function(_0x1ff45d){return _0x1ff45d['Local']='local',_0x1ff45d['URL']='url',_0x1ff45d['Dropbox']='dropbox',_0x1ff45d['GDrive']='gdrive',_0x1ff45d['Facebook']='facebook',_0x1ff45d['GPhotos']='gphotos',_0x1ff45d['OneDrive']='onedrive',_0x1ff45d;}({});function _(_0x3b029f,_0x9ade34,_0x47c27f){const t=_0x3b029f['t'],_0xbac574=_0x3b029f['t'];switch(_0x9ade34){case i['Local']:return{'text':_0xbac574('Insert'===_0x47c27f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xbac574('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x47c27f?_0xbac574('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xbac574('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x47c27f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x47c27f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x47c27f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x47c27f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x47c27f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x9ade34;}}class e extends _0x3ba018{['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 _0x2f384d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4e2134;for(const _0x2f0f6c in _0x2f384d){const _0x2b9ba1=_0x2f0f6c,_0x25994c=_0x2f384d[_0x2b9ba1];if('uploadcareLicenseKeyValid'==_0x25994c||'uploadcareLicenseKeyInvalid'==_0x25994c||'uploadcareLicenseKeyExpired'==_0x25994c||'uploadcareLicenseKeyDomainLimit'==_0x25994c||'uploadcareLicenseKeyNotAllowed'==_0x25994c||'uploadcareLicenseKeyEvaluationLimit'==_0x25994c||'uploadcareLicenseKeyTrialLimit'==_0x25994c||'uploadcareLicenseKeyUsageLimit'==_0x25994c){delete _0x2f384d[_0x2b9ba1],_0x4e2134=_0x25994c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4e2134&&_0x2f384d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4e2134&&_0x2f384d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4e2134&&_0x2f384d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4e2134&&_0x2f384d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4e2134&&_0x2f384d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4e2134&&_0x2f384d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4e2134&&_0x2f384d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xe2dae2}=this,_0x4d01ca=_0xe2dae2['commands']['get']('uploadcare');if(!_0x4d01ca)return;const _0x3fd6c0=this['_normalizeConfigSourceList'](_0xe2dae2['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b59db,_0x4d4253)=>{const _0x41226f=this['_getIntegrationKey'](_0x4d4253['type']);return _0x5b59db[_0x41226f]||(_0x5b59db[_0x41226f]=[]),_0x5b59db[_0x41226f]['push'](_0x4d4253),_0x5b59db;},{});_0xe2dae2['plugins']['has']('ImageInsertUI')&&_0xe2dae2['commands']['get']('uploadcare')&&Object['entries'](_0x3fd6c0)['forEach'](([_0x19d808,_0x59030a])=>{_0xe2dae2['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x19d808,'observable':()=>_0x4d01ca,'buttonViewCreator':()=>this['_createToolbarButton'](_0x59030a),'formViewCreator':()=>this['_createDropdownButtons'](_0x59030a),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x59030a),'override':'assetManager'!==_0x19d808});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x339e81){const {locale:_0x128b5e}=this['editor'];return _0x339e81['map'](_0x2bb7ae=>{const _0x5980a9=_(_0x128b5e,_0x2bb7ae,'Insert');switch(_0x2bb7ae){case i['Local']:return{'icon':_0x41031d,'type':i['Local'],..._0x5980a9};case i['URL']:return{'icon':_0xb9a571,'type':i['URL'],..._0x5980a9};case i['Dropbox']:return{'icon':_0x26ecdf,'type':i['Dropbox'],..._0x5980a9};case i['Facebook']:return{'icon':_0x5ffbe3,'type':i['Facebook'],..._0x5980a9};case i['GDrive']:return{'icon':_0x14ad76,'type':i['GDrive'],..._0x5980a9};case i['GPhotos']:return{'icon':_0x1be7fd,'type':i['GPhotos'],..._0x5980a9};case i['OneDrive']:return{'icon':_0x4fee3b,'type':i['OneDrive'],..._0x5980a9};}});}['_getIntegrationKey'](_0xbf0f9f){switch(_0xbf0f9f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4c04ba,_0x16137c){const _0x2dac26=this['editor'],_0x27182d=new _0x4c04ba(_0x2dac26['locale']),_0x24801b=_0x2dac26['commands']['get']('uploadcare');return _0x27182d['bind']('isEnabled')['to'](_0x24801b),_0x27182d['on']('execute',()=>{_0x24801b['execute'](_0x16137c);}),_0x27182d;}['_createToolbarButton'](_0x4a0dc5){const {locale:_0x2143d6}=this['editor'],_0x43edc5=this['editor']['plugins']['get']('ImageInsertUI'),_0x4163c4=_0x4a0dc5[0x0],_0x53b3f8=this['_createButton'](_0x5d53c9,_0x4163c4['type']);return _0x53b3f8['icon']=_0x4163c4['icon'],_0x53b3f8['bind']('label')['to'](_0x43edc5,'isImageSelected',_0x313d53=>_(_0x2143d6,_0x4163c4['type'],_0x313d53?'Replace':'Insert')['text']),_0x53b3f8['tooltip']=!0x0,_0x53b3f8;}['_createDropdownButtons'](_0x3f2cab){const {locale:_0x2b1850}=this['editor'],_0x2a4cb9=this['editor']['plugins']['get']('ImageInsertUI');return _0x3f2cab['map'](_0x530182=>{const _0x2a7efc=this['_createButton'](_0x5d53c9,_0x530182['type']);return _0x2a7efc['withText']=!0x0,_0x2a7efc['icon']=_0x530182['icon'],_0x2a7efc['bind']('label')['to'](_0x2a4cb9,'isImageSelected',_0x3877e0=>_(_0x2b1850,_0x530182['type'],_0x3877e0?'Replace':'Insert')['text']),_0x2a7efc;});}['_createMenuBarButtons'](_0x54bc56){return _0x54bc56['map'](_0x48ea34=>{const _0x1bdf28=this['_createButton'](_0x4b1183,_0x48ea34['type']);return _0x1bdf28['icon']=_0x48ea34['icon'],_0x1bdf28['label']=_0x48ea34['shortText'],_0x1bdf28;});}}class F extends _0x4d65b1{['focusTracker'];['focusCycler'];constructor(_0x472664){super(_0x472664),this['focusTracker']=new _0x24489b(),this['focusCycler']=new _0x21b020({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0xf020b9,_0x27a2e8){super(_0xf020b9),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-'+_0x27a2e8}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x583097,_0x2b7cf7){const _0x43cc7e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x5b8474=>_0x5b8474<=_0x2b7cf7)['map'](_0xa41ab5=>_0x583097['replace'](/\/$/,'')+'/-/resize/'+_0xa41ab5+'x/\x20'+_0xa41ab5+'w');return{'imageFallbackUrl':_0x583097,'imageSources':[{'srcset':_0x43cc7e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x2b7cf7+'px)\x20100vw,\x20'+_0x2b7cf7+'px','type':'image/webp'}]};}function S(_0x20efcc,_0x188c62,_0x5bc38c){const _0x5f5216=_0x20efcc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5f5216?parseInt(_0x5f5216[0x1],0xa):_0x188c62,'height':_0x5f5216?parseInt(_0x5f5216[0x2],0xa):_0x5bc38c};}function p(_0x590632,_0x24dacb){const _0x247de5=new(_0x4f8bd1())(),_0x1a8563=_0x590632['plugins']['get']('ImageUtils'),_0x2c073e=_0x590632['editing']['mapper']['toViewElement'](_0x24dacb),_0x54f650=_0x1a8563['findViewImgElement'](_0x2c073e),_0x539afa=_0x590632['editing']['view']['domConverter']['viewToDom'](_0x54f650),_0x394ae9=_0x24dacb['getAttribute']('width'),_0x28abef=_0x24dacb['getAttribute']('height'),_0x38e879='image-processing';_0x590632['editing']['view']['change'](_0xbf391a=>{_0xbf391a['addClass'](_0x38e879,_0x2c073e),_0xbf391a['setStyle']('aspect-ratio',_0x394ae9+'/'+_0x28abef,_0x54f650);}),_0x247de5['listenTo'](_0x539afa,'load',()=>{_0x247de5['stopListening'](_0x539afa,'load'),_0x590632['editing']['view']['change'](_0x29bfcb=>{_0x29bfcb['removeClass'](_0x38e879,_0x2c073e),_0x29bfcb['removeStyle']('aspect-ratio',_0x54f650);});});}function z(_0x270cb0){if(Array['isArray'](_0x270cb0)){const _0x27a70c=_0x270cb0['map'](z);return _0x11b037=>_0x27a70c['some'](_0x762df2=>_0x762df2(_0x11b037));}if('origin'==_0x270cb0){const _0x5225e8=_0x11e893['window']['location']['origin'];return _0x363e24=>new URL(_0x363e24,_0x11e893['document']['baseURI'])['origin']==_0x5225e8;}return'function'==typeof _0x270cb0?_0x270cb0:_0x270cb0 instanceof RegExp?_0x53487f=>!(!_0x53487f['match'](_0x270cb0)&&!_0x53487f['replace'](/^https?:\/\//,'')['match'](_0x270cb0)):()=>!0x1;}function A(_0x5e9653,_0x56f315){return _0x554b32(_0x5e9653['target'])['includes'](_0x56f315);}class n extends/* #__PURE__ -- @preserve */
24
- _0x2dfaf0(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5735e9,_0x55d9e7,_0xeb7c14){super(),this['_editor']=_0x5735e9,this['_editing']=_0x55d9e7,this['_dialog']=_0x5735e9['plugins']['get'](_0x1395c3),this['_api']=_0x55d9e7['ctxElement']['getAPI'](),this['_type']=_0xeb7c14,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:_0x26968b,model:_0x46c710}=this['_editor'],_0x32527e=_0x46c710['document']['selection']['getSelectedElement'](),_0x58f54f=_0x32527e&&(_0x32527e['is']('element','imageBlock')||_0x32527e['is']('element','imageInline'));this['_formView']=new x(_0x26968b,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x41031d,'title':_(_0x26968b,this['_type'],_0x58f54f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2152e4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x622ba4=>!A(_0x622ba4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4c5e51}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x17940f=>{const _0x102c6f=_0x4c5e51['length'];for(const _0xaf208 of _0x4c5e51){const _0x2d4c53=_0xaf208===_0x4c5e51[_0x102c6f-0x1],{cdnUrl:_0x3f1e45,fileInfo:_0x3252b4}=_0xaf208;if(!_0x3f1e45||!_0x3252b4)continue;const {width:_0x3514d2,height:_0x57089d}=_0x3252b4['imageInfo'],_0x1a9804=S(_0x3f1e45,_0x3514d2,_0x57089d),_0x6ca649=C(_0x3f1e45,_0x1a9804['width']),_0x2d069d={'id':_0x3252b4['uuid'],'type':'image','attributes':{'imageDimension':_0x1a9804,..._0x6ca649}};this['_insertAsset'](_0x2d069d,_0x2d4c53,_0x17940f);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x15b704=>{'idle'===_0x15b704['detail']['status']&&!_0x15b704['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x56d85e,_0x2a92b4,_0x3ac1dd){const _0x43dbce=this['_editor']['model']['document']['selection'],_0x20d894=_0x43dbce['getSelectedElement'](),_0x70053a=!(!_0x20d894||!_0x20d894['is']('element','imageInline'));_0x3ac1dd['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x56d85e,_0x70053a),_0x2a92b4||_0x3ac1dd['setSelection'](_0x43dbce['getLastPosition']());}['_insertImage'](_0x4915a8,_0x5e41bd){const _0x568342=this['_editor'],{imageDimension:_0x443a41,imageFallbackUrl:_0x56f147,imageSources:_0x273ccc}=_0x4915a8['attributes'];_0x568342['execute']('insertImage',{'imageType':_0x5e41bd?'imageInline':null,'source':{'uploadcareImageId':_0x4915a8['id'],'src':_0x56f147,'sources':_0x273ccc,..._0x443a41}});}}class w extends _0x9f6c51{['_editing'];['_controller']=null;static get['requires'](){return[_0x1395c3,o];}constructor(_0x2b12c5){super(_0x2b12c5),this['_editing']=_0x2b12c5['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1987a2){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x1987a2);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1f15ea,..._0x59b69a}){return _0x40f05e(_0x1f15ea,_0x59b69a);}static['getInfo'](_0x67ebfd,_0x3717e7){return _0x490086(_0x67ebfd,_0x3717e7);}}class f extends _0x3ba018{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0xccc9da,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3a5b19=this['editor'];if(!!!_0x3a5b19['config']['get']('uploadcare'))return;_0x3a5b19['plugins']['get'](_0xccc9da)['createUploadAdapter']=_0x52817c=>new k(_0x52817c,_0x3a5b19),_0x3a5b19['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x20eae8,{imageElement:_0x1ccebf,data:_0x252efe})=>{_0x3a5b19['model']['change'](_0x3abe65=>{_0x3abe65['setAttribute']('uploadcareImageId',_0x252efe['uploadcareImageId'],_0x1ccebf);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x45137c,_0x2fc4a5){this['loader']=_0x45137c,this['editor']=_0x2fc4a5,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4fd958=await this['loader']['file'];return j['upload']({'file':_0x4fd958,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0xf604f1=>{_0xf604f1&&_0xf604f1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xf604f1['value']);}})['then'](async _0x5037a4=>{const {imageFallbackUrl:_0x5dd40c,imageSources:_0x1c8815}=C(_0x5037a4['cdnUrl'],_0x5037a4['imageInfo']['width']);return{'uploadcareImageId':_0x5037a4['uuid'],'default':_0x5dd40c,'sources':_0x1c8815};})['catch'](()=>{const _0x2c0a2a=t('Cannot\x20upload\x20file:')+('\x20'+_0x4fd958['name']+'.');return Promise['reject'](_0x2c0a2a);});}['abort'](){this['controller']['abort']();}}class o extends _0x3ba018{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1395c3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x53b156){super(_0x53b156),this['ucContextId']=_0x437ba5();}['init'](){const _0x2b5598=this['editor'];_0x2b5598['commands']['add']('uploadcare',new w(_0x2b5598));}['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 _0x368cb0=_0x11e893['document']['querySelector']('input[uploadcare-file-input]');_0x368cb0&&_0x368cb0['remove']();}),async function(_0x4e9d41){const _0x247278=_0x5c3eac([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x14b282=0x535f8c3a,_0x3fc548=0x5358fbe2^_0x14b282,_0x269df1=window[_0x5c3eac([0x44,0x61,0x74,0x65])][_0x5c3eac([0x6e,0x6f,0x77])](),_0x4bcb61=_0x4e9d41[_0x5c3eac([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x258436=new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ad17b=>{_0x4bcb61[_0x5c3eac([0x6f,0x6e,0x63,0x65])](_0x5c3eac([0x72,0x65,0x61,0x64,0x79]),_0x3ad17b);}),_0x32261c={[_0x5c3eac([0x6b,0x74,0x79])]:_0x5c3eac([0x45,0x43]),[_0x5c3eac([0x75,0x73,0x65])]:_0x5c3eac([0x73,0x69,0x67]),[_0x5c3eac([0x63,0x72,0x76])]:_0x5c3eac([0x50,0x2d,0x32,0x35,0x36]),[_0x5c3eac([0x78])]:_0x5c3eac([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]),[_0x5c3eac([0x79])]:_0x5c3eac([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]),[_0x5c3eac([0x61,0x6c,0x67])]:_0x5c3eac([0x45,0x53,0x32,0x35,0x36])},_0x18ab0d=_0x4bcb61[_0x5c3eac([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5c3eac([0x67,0x65,0x74])](_0x5c3eac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe438b3(){let _0x3dbf2b,_0x2e983c=null,_0x4ee266=null;try{if(_0x18ab0d==_0x5c3eac([0x47,0x50,0x4c]))return _0x5c3eac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3dbf2b=_0x4880fa(),!_0x3dbf2b)return _0x5c3eac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3dbf2b[_0x5c3eac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ee266=_0x265635(_0x3dbf2b[_0x5c3eac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3dbf2b[_0x5c3eac([0x6a,0x74,0x69])])),await _0x2c86a8()?_0x474761()?_0x43235e()?_0x5c3eac([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25fb28()?(_0x3dbf2b[_0x5c3eac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c3eac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e983c=_0x2fb57d(_0x5c3eac([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3dbf2b[_0x5c3eac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5c3eac([0x74,0x72,0x69,0x61,0x6c])&&(_0x2e983c=_0x2fb57d(_0x5c3eac([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b2112()):_0x5c3eac([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5c3eac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5c3eac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5c3eac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x43235e(){const _0x1dc692=[_0x5c3eac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5c3eac([0x74,0x72,0x69,0x61,0x6c])][_0x5c3eac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3dbf2b[_0x5c3eac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x269df1/0x3e8:0xe10*_0x3fc548;return _0x3dbf2b[_0x5c3eac([0x65,0x78,0x70])]<_0x1dc692;}function _0x474761(){const _0x4d886c=_0x3dbf2b[_0x5c3eac([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4d886c&&(!!_0x4d886c[_0x5c3eac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c3eac([0x2a]))||!!_0x4d886c[_0x5c3eac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c3eac([0x55,0x50,0x4c,0x43])));}function _0x25fb28(){const _0x21a2d2=_0x3dbf2b[_0x5c3eac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x21a2d2||0x0==_0x21a2d2[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x41f4dc}=new URL(window[_0x5c3eac([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x21a2d2[_0x5c3eac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x41f4dc))return!0x0;const _0x232c45=_0x41f4dc[_0x5c3eac([0x73,0x70,0x6c,0x69,0x74])](_0x5c3eac([0x2e]));return _0x21a2d2[_0x5c3eac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xbee62e=>_0xbee62e[_0x5c3eac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c3eac([0x2a])))[_0x5c3eac([0x6d,0x61,0x70])](_0x5c24eb=>_0x5c24eb[_0x5c3eac([0x73,0x70,0x6c,0x69,0x74])](_0x5c3eac([0x2e])))[_0x5c3eac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32a079=>_0x32a079[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x232c45[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c3eac([0x6d,0x61,0x70])](_0x1bc55c=>Array(_0x232c45[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1bc55c[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5c3eac([0x66,0x69,0x6c,0x6c])](_0x1bc55c[0x0]===_0x5c3eac([0x2a])?_0x5c3eac([0x2a]):'')[_0x5c3eac([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1bc55c))[_0x5c3eac([0x73,0x6f,0x6d,0x65])](_0x212013=>_0x232c45[_0x5c3eac([0x65,0x76,0x65,0x72,0x79])]((_0x140f6f,_0x2e5cbf)=>_0x212013[_0x2e5cbf]===_0x140f6f||_0x212013[_0x2e5cbf]===_0x5c3eac([0x2a])));}function _0x3b2112(){return _0x2e983c&&_0x4ee266?new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x443311,_0x4ec2f4)=>{_0x2e983c[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x443311,_0x4ec2f4),_0x4ee266[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x2b9b6e=>{_0x2b9b6e!=_0x5c3eac([0x56,0x61,0x6c,0x69,0x64])&&_0x443311(_0x2b9b6e);},_0x4ec2f4);}):_0x2e983c||_0x4ee266||_0x5c3eac([0x56,0x61,0x6c,0x69,0x64]);}}function _0x265635(_0x3fc632,_0x14a963){return new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2969e3=>{if(_0x1866a9())return _0x2969e3(_0x5c3eac([0x56,0x61,0x6c,0x69,0x64]));_0x4a1b50(),_0x4bcb61[_0x5c3eac([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5c3eac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52e76e=!0x1;const _0x4a3f44=_0x437ba5();function _0x52f587(_0x2a8504){return!!_0x2a8504&&(typeof _0x2a8504===_0x5c3eac([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a8504===_0x5c3eac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a8504[_0x5c3eac([0x74,0x68,0x65,0x6e])]===_0x5c3eac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a8504[_0x5c3eac([0x63,0x61,0x74,0x63,0x68])]===_0x5c3eac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f5a19(_0x252fe0){_0x243539(_0x252fe0)[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x4c9bef=>{if(!_0x4c9bef||_0x4c9bef[_0x5c3eac([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5c3eac([0x6f,0x6b]))return _0x5c3eac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1f437a(_0x1f0b9b(_0x4a3f44+_0x14a963))!=_0x4c9bef[_0x5c3eac([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5c3eac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5c3eac([0x56,0x61,0x6c,0x69,0x64]);})[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x2fad9f=>(_0x2ea710(),_0x2fad9f),()=>{const _0x119118=_0x1d837a();return null==_0x119118?(_0x2ea710(),_0x5c3eac([0x56,0x61,0x6c,0x69,0x64])):_0x5c3eac(_0x269df1-_0x119118>(0x7753083a^_0x14b282)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x2969e3)[_0x5c3eac([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2969e3(_0x5c3eac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4afd76=0x536962ba^_0x14b282;function _0x2ea710(){const _0x2720a1=_0x5c3eac([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f437a(_0x1f0b9b(_0x3fc632)),_0x3935dc=_0x55c320(_0x1f437a(window[_0x5c3eac([0x4d,0x61,0x74,0x68])][_0x5c3eac([0x63,0x65,0x69,0x6c])](_0x269df1/_0x4afd76)));window[_0x5c3eac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c3eac([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2720a1,_0x3935dc);}function _0x1d837a(){const _0xb6a1e6=_0x5c3eac([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f437a(_0x1f0b9b(_0x3fc632)),_0x278c8b=window[_0x5c3eac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5c3eac([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb6a1e6);return _0x278c8b?window[_0x5c3eac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55c320(_0x278c8b),0x10)*_0x4afd76:null;}function _0x243539(_0x57ea7c){return new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3866ee,_0x35fe97)=>{_0x57ea7c[_0x5c3eac([0x74,0x68,0x65,0x6e])](_0x3866ee,_0x35fe97),window[_0x5c3eac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35fe97,0x535e58fa^_0x14b282);});}}_0x4bcb61[_0x5c3eac([0x6f,0x6e])](_0x5c3eac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x225b23,_0x4c2fb8)=>{if(_0x4c2fb8[0x0]!=_0x3fc632)return _0x2969e3(_0x5c3eac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4c2fb8[0x1]={..._0x4c2fb8[0x1],[_0x5c3eac([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a3f44};},{[_0x5c3eac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c3eac([0x68,0x69,0x67,0x68])}),_0x4bcb61[_0x5c3eac([0x6f,0x6e])](_0x5c3eac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bcefa=>{_0x52f587(_0x2bcefa[_0x5c3eac([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52e76e=!0x0,_0x2f5a19(_0x2bcefa[_0x5c3eac([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5c3eac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5c3eac([0x6c,0x6f,0x77])}),_0x258436[_0x5c3eac([0x74,0x68,0x65,0x6e])](()=>{_0x52e76e||_0x2969e3(_0x5c3eac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1866a9(){return _0x4bcb61[_0x5c3eac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c3eac([0x76,0x69,0x65,0x77])][_0x5c3eac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5c3eac([0x61,0x75,0x74,0x6f]);}function _0x4a1b50(){_0x4bcb61[_0x5c3eac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5c3eac([0x76,0x69,0x65,0x77])][_0x5c3eac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5c3eac([0x61,0x75,0x74,0x6f]);}}function _0x2fb57d(_0x126169){const _0x34f92c=[new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x434231=>setTimeout(_0x434231,0x5356b2f6^_0x14b282)),_0x258436[_0x5c3eac([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f2d98=>{let _0x4f4f20=0x0;_0x4bcb61[_0x5c3eac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c3eac([0x6f,0x6e])](_0x5c3eac([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3da41f,_0x447d91)=>{_0x447d91[0x0][_0x5c3eac([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4f4f20++,_0x4f4f20==(0x535f8dc2^_0x14b282)&&(_0x4f2d98(),_0x3da41f[_0x5c3eac([0x6f,0x66,0x66])]());});}))];return window[_0x5c3eac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5c3eac([0x72,0x61,0x63,0x65])](_0x34f92c)[_0x5c3eac([0x74,0x68,0x65,0x6e])](()=>_0x126169);}async function _0x178e8e(){await _0x258436,_0x4bcb61[_0x5c3eac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c3eac([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1abb55,_0x4bcb61[_0x5c3eac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5c3eac([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1abb55,_0x4bcb61[_0x5c3eac([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5c3eac([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x341131(_0x4fb4fe){const _0x3d98b8=_0xb7e01e();_0x4bcb61[_0x3d98b8]=_0x5c3eac([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4fb4fe,_0x4fb4fe!=_0x5c3eac([0x56,0x61,0x6c,0x69,0x64])&&_0x178e8e();}function _0xb7e01e(){const _0x1e4207=window[_0x5c3eac([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5c3eac([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5c3eac([0x6e,0x6f,0x77])]())[_0x5c3eac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5c3eac([0x2e]),'');let _0x47af30=_0x5c3eac([0x68]);for(let _0x2eda36=0x0;_0x2eda36<_0x1e4207[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2eda36+=0x2){let _0x4ee7f2=window[_0x5c3eac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e4207[_0x5c3eac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2eda36,_0x2eda36+0x2));_0x4ee7f2>=_0x247278[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ee7f2-=_0x247278[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x47af30+=_0x247278[_0x4ee7f2];}return _0x47af30;}function _0x4880fa(){const _0x4313ed=_0x18ab0d[_0x5c3eac([0x73,0x70,0x6c,0x69,0x74])](_0x5c3eac([0x2e]));if(0x3!=_0x4313ed[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x96d6aa(_0x4313ed[0x1]);function _0x96d6aa(_0x24c6a2){const _0x18af27=_0x10b27c(_0x24c6a2);return _0x18af27&&_0x47f94e()?_0x18af27:null;function _0x47f94e(){const _0x5bc88f=_0x18af27[_0x5c3eac([0x6a,0x74,0x69])],_0x110cec=window[_0x5c3eac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bc88f[_0x5c3eac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bc88f[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x446e1b={..._0x18af27,[_0x5c3eac([0x6a,0x74,0x69])]:_0x5bc88f[_0x5c3eac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5bc88f[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x446e1b[_0x5c3eac([0x76,0x63])],_0x1f0b9b(_0x446e1b)==_0x110cec;}}}async function _0x2c86a8(){let _0x5a4991=!0x0;try{const _0x5a1cae=_0x18ab0d[_0x5c3eac([0x73,0x70,0x6c,0x69,0x74])](_0x5c3eac([0x2e])),[_0x52ce4b,_0x2a44e2,_0x59c7a5]=_0x5a1cae;return _0x1a9d25(_0x52ce4b),await _0x4c090f(_0x52ce4b,_0x2a44e2,_0x59c7a5),_0x5a4991;}catch{return!0x1;}function _0x1a9d25(_0x4da29f){const _0x4d0184=_0x10b27c(_0x4da29f);_0x4d0184&&_0x4d0184[_0x5c3eac([0x61,0x6c,0x67])]==_0x5c3eac([0x45,0x53,0x32,0x35,0x36])||(_0x5a4991=!0x1);}async function _0x4c090f(_0x5ceb47,_0x2bf7f2,_0x16a626){const _0x4d0f62=window[_0x5c3eac([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5c3eac([0x66,0x72,0x6f,0x6d])](_0xdb4d59(_0x16a626),_0x529f5e=>_0x529f5e[_0x5c3eac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1a837d=new window[(_0x5c3eac([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5c3eac([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5ceb47+_0x5c3eac([0x2e])+_0x2bf7f2),_0x3a871a=window[_0x5c3eac([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5c3eac([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3a871a)return;const _0x59e61f=await _0x3a871a[_0x5c3eac([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5c3eac([0x6a,0x77,0x6b]),_0x32261c,{[_0x5c3eac([0x6e,0x61,0x6d,0x65])]:_0x5c3eac([0x45,0x43,0x44,0x53,0x41]),[_0x5c3eac([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5c3eac([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5c3eac([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3a871a[_0x5c3eac([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5c3eac([0x6e,0x61,0x6d,0x65])]:_0x5c3eac([0x45,0x43,0x44,0x53,0x41]),[_0x5c3eac([0x68,0x61,0x73,0x68])]:{[_0x5c3eac([0x6e,0x61,0x6d,0x65])]:_0x5c3eac([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x59e61f,_0x4d0f62,_0x1a837d)||(_0x5a4991=!0x1);}}function _0x10b27c(_0x250ea8){return _0x250ea8[_0x5c3eac([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5c3eac([0x65,0x79]))?JSON[_0x5c3eac([0x70,0x61,0x72,0x73,0x65])](_0xdb4d59(_0x250ea8)):null;}function _0xdb4d59(_0x13fb9d){return window[_0x5c3eac([0x61,0x74,0x6f,0x62])](_0x13fb9d[_0x5c3eac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5c3eac([0x2b]))[_0x5c3eac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5c3eac([0x2f])));}function _0x1f0b9b(_0x46f1c0){let _0x5578c7=0x1505;function _0x4bf014(_0x2f608c){for(let _0x567ef7=0x0;_0x567ef7<_0x2f608c[_0x5c3eac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x567ef7++){const _0x572ae4=_0x2f608c[_0x5c3eac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x567ef7);_0x5578c7=(_0x5578c7<<0x5)+_0x5578c7+_0x572ae4,_0x5578c7&=_0x5578c7;}}function _0x581433(_0x103078){Array[_0x5c3eac([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x103078)?_0x103078[_0x5c3eac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x581433):_0x103078&&typeof _0x103078==_0x5c3eac([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5c3eac([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x103078)[_0x5c3eac([0x73,0x6f,0x72,0x74])]()[_0x5c3eac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c200b,_0x5f5471])=>{_0x4bf014(_0x3c200b),_0x581433(_0x5f5471);}):_0x4bf014(window[_0x5c3eac([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x103078));}return _0x581433(_0x46f1c0),_0x5578c7>>>0x0;}function _0x1f437a(_0x4c018c){return _0x4c018c[_0x5c3eac([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5c3eac([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5c3eac([0x30]));}function _0x55c320(_0x49c772){return _0x49c772[_0x5c3eac([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5c3eac([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5c3eac([0x6a,0x6f,0x69,0x6e])]('');}function _0x1abb55(){}function _0x5c3eac(_0x247a4f){return _0x247a4f['map'](_0x4dd542=>String['fromCharCode'](_0x4dd542))['join']('');}_0x341131(await _0xe438b3());}(this);}['_initSchema'](){const _0x131beb=this['editor']['model']['schema'];_0x131beb['isRegistered']('imageBlock')&&_0x131beb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x131beb['isRegistered']('imageInline')&&_0x131beb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x54f738=this['editor'];_0x54f738['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x54f738['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4e9c3a=>_0x4e9c3a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xa197e0=_0x54f738['commands']['get']('replaceImageSource');_0xa197e0&&this['listenTo'](_0xa197e0,'cleanupImage',(_0x22ed61,[_0x4b251c,_0x159168])=>{_0x4b251c['removeAttribute']('uploadcareImageId',_0x159168);});}['_initConfig'](){const _0x528492=this['editor']['config']['get']('uploadcare.uploader')||{},_0x54408c=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x16c64c(_0x11e893['document'],'uc-config',{..._0x528492,'pubkey':_0x54408c,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x8514a9=>{if('closeMax'==_0x8514a9)return'#uc-icon-arrow-down';},_0x11e893['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x16c64c(_0x11e893['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x11e893['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x30c762=this['editor']['commands']['get']('insertImage');_0x30c762&&this['listenTo'](_0x30c762,'execute',()=>{const _0x44fc03=this['editor']['model']['document']['selection']['getSelectedElement']();_0x44fc03&&_0x44fc03['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x44fc03);});});const _0xb3160d=this['editor']['commands']['get']('uploadcareImageReplace');_0xb3160d&&this['listenTo'](_0xb3160d,'execute',()=>{const _0x8d0ae4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x8d0ae4&&_0x8d0ae4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x8d0ae4);});});}}class tt extends _0x3ba018{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4339aa){super(_0x4339aa),_0x4339aa['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x214642['defineComponents'](_0x214642),this['_defineLocale']();}['_defineLocale'](){const _0x681798=this['editor']['config']['get']('uploadcare.locale'),_0xf82b31=this['editor']['locale']['contentLanguage'];_0x681798&&_0x214642['defineLocale'](_0xf82b31,_0x681798);}}class ii extends _0x4d65b1{constructor(_0x4b1d04){super(_0x4b1d04);const t=_0x4b1d04['t'],_0xd38beb=this['bindTemplate'],_0x4db95a=new _0x391b89();_0x4db95a['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':[_0x4db95a,{'text':_0xd38beb['to']('imageUploadProgress',_0x557f76=>t('Loading\x20image...')+'\x20('+(_0x557f76||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x4d65b1{constructor(_0x141d43){super(_0x141d43);const t=_0x141d43['t'];this['set']('errorType',null);const _0x410158=new _0x5d53c9(_0x141d43);_0x410158['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x410158['withText']=!0x0,_0x410158['class']='ck-button-action',_0x410158['on']('execute',()=>{this['fire']('retry');}),_0x410158['bind']('isVisible')['to'](this,'errorType',_0x249b87=>'NotFound'!==_0x249b87);const _0x2db016=new _0x4f4a55();_0x2db016['content']=_0x5982d1,_0x2db016['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x51fcbd=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':[_0x2db016,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x51fcbd['to']('errorType',_0x4d44e6=>t('NotFound'!==_0x4d44e6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x410158]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x4d65b1{constructor(_0x1d2c70,_0x3bf259){super(_0x1d2c70);const _0x129253=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3bf259,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x129253['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1fc96d,_0x3f3dbd,_0x56b957){super(_0x1fc96d),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1fc96d),this['_errorView']=new ti(_0x1fc96d),this['_editingView']=new ei(_0x1fc96d,_0x56b957),this['_focusableView']=new _0x4d65b1(_0x1fc96d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3f3dbd),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'],_0x2f5c9c=>{this['_addUploadcareImageEditorListeners'](_0x2f5c9c);});}),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'](_0x1af66c,_0x5defd5){const _0x11b5bb='uc-cloud-image-editor',_0x4cb505=_0x1af66c['querySelector'](_0x11b5bb);if(_0x4cb505)return _0x5defd5(_0x4cb505);const _0x1fc80c=new MutationObserver(_0x3e4ab6=>{const _0x4cd729=_0x3e4ab6['filter'](_0x1623e6=>_0x1623e6['target']===_0x1af66c&&_0x1623e6['addedNodes']['length']>0x0&&_0x1623e6['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x11b5bb);_0x4cd729['length']&&(_0x1fc80c['disconnect'](),_0x5defd5(_0x4cd729[0x0]['addedNodes'][0x0]));});_0x1fc80c['observe'](_0x1af66c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x25d7dd){_0x25d7dd['addEventListener']('apply',_0x48b27b=>{this['fire']('apply',{'imageSrc':_0x48b27b['detail']['cdnUrl']});}),_0x25d7dd['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
- _0x2dfaf0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4e1e90,_0x3ddd15,_0x157f20){super(),this['_editor']=_0x4e1e90,this['_dialog']=_0x3ddd15,this['_imageElement']=_0x157f20,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 _0x9f8613=this['_imageElement'],_0x320587=_0x9f8613['getAttribute']('uploadcareImageId'),_0xe9d783=_0x9f8613['getAttribute']('src');if(_0x320587)await this['_loadImageInfo'](_0x320587,_0xe9d783);else{if(this['_imageCache']['has'](_0xe9d783)){const _0x5023d4=this['_imageCache']['get'](_0xe9d783);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5023d4['url'],this['imageDimension']=_0x5023d4['dimension'],this['imageId']=_0x5023d4['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3131a5}=this['_editor'],t=_0x3131a5['t'],_0x6ae334=new X(_0x3131a5,this['imageStatus'],this['_attributes']);_0x6ae334['bind']('status')['to'](this,'imageStatus'),_0x6ae334['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x6ae334['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x6ae334['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x6ae334,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x492800,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x6ae334,'position':_0x2152e4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x6ae334['focus']();},'onHide':()=>{_0x6ae334['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x200383=>!A(_0x200383,_0x6ae334['element'])}});}['_loadImageInfo'](_0x52fdbd,_0x5e5190){return j['getInfo'](_0x52fdbd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x182afd=>{const {width:_0x28a186,height:_0xb9b658}=_0x182afd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5e5190,this['imageDimension']={'width':_0x28a186,'height':_0xb9b658},this['imageId']=_0x52fdbd;})['catch'](_0x5e3c70=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5e3c70['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3faf7f,_0x2bebb5){return this['_getImageAsFile'](_0x3faf7f)['then'](_0x58a84b=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2bebb5['signal'],'file':_0x58a84b,'onProgress':_0x9e75ee=>{_0x9e75ee&&_0x9e75ee['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x9e75ee['value']));}}))['then'](_0x56359b=>{const {width:_0x3a8756,height:_0x2dc43e}=_0x56359b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x56359b['cdnUrl'],this['imageDimension']={'width':_0x3a8756,'height':_0x2dc43e},this['imageId']=_0x56359b['uuid'],this['imageUploadProgress']=null;const _0x56593a=_0x3faf7f['getAttribute']('src');this['_imageCache']['set'](_0x56593a,{'id':_0x56359b['uuid'],'url':_0x56359b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5d9276=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5d9276['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1eff7a,_0x5a0656){_0x1eff7a['on']('apply',(_0x149e1c,_0x4ca142)=>{this['_replaceImage'](_0x5a0656,_0x4ca142['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1eff7a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1eff7a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x422731,_0x4d3834,_0x1aa30b){const _0x135746=this['_editor'],{width:_0x1e641f,height:_0x40067c}=S(_0x4d3834,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3dae91,imageSources:_0x423214}=C(_0x4d3834,_0x1e641f);_0x135746['model']['change'](_0x2d257b=>{if('$graveyard'===_0x422731['root']['rootName']){_0x135746['execute']('insertImage',{'imageType':_0x422731['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x422731['getAttributes']()),'uploadcareImageId':_0x1aa30b,'src':_0x3dae91,'sources':_0x423214,'width':_0x1e641f,'height':_0x40067c}});const _0x38ccad=_0x422731['getChildren']();_0x422731=_0x135746['model']['document']['selection']['getSelectedElement']();for(const _0x1f91fb of _0x38ccad)_0x2d257b['append'](_0x2d257b['cloneElement'](_0x1f91fb),_0x422731);}else _0x2d257b['setSelection'](_0x422731,'on'),_0x135746['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x422731['getAttributes']()),'uploadcareImageId':_0x1aa30b,'src':_0x3dae91,'sources':_0x423214,'width':_0x1e641f,'height':_0x40067c},_0x422731);_0x2d257b['setSelection'](_0x422731,'on');});}async['_getImageAsFile'](_0x45027f){const _0x2b39bb=_0x11e893['window'],_0x81211c=_0x11e893['document']['location']['href'],_0x9f0edb=new _0x2b39bb['URL'](_0x45027f['getAttribute']('src'),_0x81211c);if('data:'===_0x9f0edb['protocol']){const _0x5def00=_0x9f0edb['href']['split'](','),_0x2cff07=_0x5def00[0x0]['match'](/:(.*?);/)[0x1],_0x29f74b=_0x2cff07['split']('/')[0x1],_0x5b2fcd=_0x2b39bb['atob'](_0x5def00[_0x5def00['length']-0x1]);let _0x2ee950=_0x5b2fcd['length'];const _0x320268=new _0x2b39bb['Uint8Array'](_0x2ee950);for(;_0x2ee950--;)_0x320268[_0x2ee950]=_0x5b2fcd['charCodeAt'](_0x2ee950);return new _0x2b39bb['File']([_0x320268],'image.'+_0x29f74b,{'type':_0x2cff07});}const _0x7c84fa=_0x9f0edb['href']['split']('/'),_0x5065e4=_0x7c84fa[_0x7c84fa['length']-0x1],_0x370856=_0x5065e4['split']('.')[0x1];return _0x2b39bb['fetch'](_0x9f0edb['href'])['then'](_0x4be2fb=>_0x4be2fb['clone']()['blob']())['then'](_0x12525e=>new _0x2b39bb['File']([_0x12525e],_0x5065e4,{'type':'image/'+_0x370856}));}}class Q extends _0x9f6c51{['imageEditController'];static get['requires'](){return[_0x1395c3];}['_isEditable'];constructor(_0x37ffc7){super(_0x37ffc7),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2252c8){const _0x5c84a9=z(_0x2252c8);return _0x1ced25=>!(!_0x1ced25||!_0x1ced25['is']('element','imageBlock')&&!_0x1ced25['is']('element','imageInline'))&&(!!_0x1ced25['hasAttribute']('uploadcareImageId')||!!_0x1ced25['hasAttribute']('src')&&_0x5c84a9(_0x1ced25['getAttribute']('src')));}(_0x37ffc7['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x583564=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x583564);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xd7703c=this['editor']['model']['document']['selection']['getSelectedElement']();_0xd7703c&&(_0xd7703c['is']('element','imageBlock')||_0xd7703c['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x1395c3),_0xd7703c),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x9f6c51{['refresh'](){const _0x31f757=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x31f757&&(_0x31f757['is']('element','imageBlock')||_0x31f757['is']('element','imageInline')));}['execute'](_0x340903){const _0x5269fe=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1b2b23=>{_0x1b2b23['setAttributes'](_0x340903,_0x5269fe),_0x1b2b23['removeAttribute']('srcset',_0x5269fe),_0x1b2b23['removeAttribute']('sizes',_0x5269fe);});}}class m extends _0x3ba018{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x34cd1c,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x111cd4}=this;_0x111cd4['commands']['add']('uploadcareImageEdit',new Q(_0x111cd4)),_0x111cd4['commands']['add']('uploadcareImageReplace',new V(_0x111cd4));}}class g extends _0x3ba018{['_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 _0x447e55=this['editor'];_0x447e55['ui']['componentFactory']['add']('uploadcareImageEdit',_0x23071c=>{const _0x309941=_0x447e55['commands']['get']('uploadcareImageEdit'),_0x179c00=new _0x5d53c9(_0x23071c),t=_0x23071c['t'];return _0x179c00['set']({'icon':_0x492800,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x179c00['bind']('isEnabled')['to'](_0x309941),_0x179c00['bind']('isOn')['to'](_0x309941,'isActive'),this['listenTo'](_0x179c00,'execute',()=>{_0x447e55['execute']('uploadcareImageEdit'),_0x447e55['editing']['view']['focus']();}),_0x179c00;}),this['_initConfig']();}['_initConfig'](){const _0x31077c=_0x16c64c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x31077c),this['listenTo'](this['editor'],'destroy',()=>{_0x31077c['remove']();});}}class et extends _0x3ba018{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x2e5318,Command as _0x44004a}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x457ccd,IconGooglePhotos as _0x1e22e8,IconGoogleDrive as _0x4e2c3b,IconFacebook as _0x1413a,IconDropbox as _0x10c8de,IconUploadcareLink as _0x4efa8f,IconUploadcareImageUpload as _0x21d8ba,IconError as _0x35c621,IconUploadcareImageEdit as _0x590a85}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4bc8a8,MenuBarMenuListItemButtonView as _0x318449,View as _0x277a7c,FocusCycler as _0x41ff84,Dialog as _0x279260,DialogViewPosition as _0xf33536,SpinnerView as _0x1c8f16,IconView as _0x4783b4,Notification as _0x346ba8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xbcaff,DomEmitterMixin as _0x4fa885,global as _0x44ac0a,getAncestors as _0x391dc4,ObservableMixin as _0x1ea06e,uid as _0xc7a24b,createElement as _0x1b8710}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x494b4d}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x523cab,info as _0x892cc8}from'@uploadcare/upload-client';import*as _0x2c49ce from'@uploadcare/file-uploader';var i=function(_0x199ff0){return _0x199ff0['Local']='local',_0x199ff0['URL']='url',_0x199ff0['Dropbox']='dropbox',_0x199ff0['GDrive']='gdrive',_0x199ff0['Facebook']='facebook',_0x199ff0['GPhotos']='gphotos',_0x199ff0['OneDrive']='onedrive',_0x199ff0;}({});function _(_0xbd852a,_0x4d74ee,_0x237277){const t=_0xbd852a['t'],_0x17f54a=_0xbd852a['t'];switch(_0x4d74ee){case i['Local']:return{'text':_0x17f54a('Insert'===_0x237277?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x17f54a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x237277?_0x17f54a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x17f54a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x237277?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x237277?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x237277?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x237277?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x237277?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4d74ee;}}class e extends _0x2e5318{['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 _0xb7d5f2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x347269;for(const _0x4a851c in _0xb7d5f2){const _0x33eae2=_0x4a851c,_0x184b7d=_0xb7d5f2[_0x33eae2];if('uploadcareLicenseKeyValid'==_0x184b7d||'uploadcareLicenseKeyInvalid'==_0x184b7d||'uploadcareLicenseKeyExpired'==_0x184b7d||'uploadcareLicenseKeyDomainLimit'==_0x184b7d||'uploadcareLicenseKeyNotAllowed'==_0x184b7d||'uploadcareLicenseKeyEvaluationLimit'==_0x184b7d||'uploadcareLicenseKeyTrialLimit'==_0x184b7d||'uploadcareLicenseKeyUsageLimit'==_0x184b7d){delete _0xb7d5f2[_0x33eae2],_0x347269=_0x184b7d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x347269&&_0xb7d5f2['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x347269&&_0xb7d5f2['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x347269&&_0xb7d5f2['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x347269&&_0xb7d5f2['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x347269&&_0xb7d5f2['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x347269&&_0xb7d5f2['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x347269&&_0xb7d5f2['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x35b18f}=this,_0x475259=_0x35b18f['commands']['get']('uploadcare');if(!_0x475259)return;const _0xf1846e=this['_normalizeConfigSourceList'](_0x35b18f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x22ed2f,_0x3f436b)=>{const _0x25bc47=this['_getIntegrationKey'](_0x3f436b['type']);return _0x22ed2f[_0x25bc47]||(_0x22ed2f[_0x25bc47]=[]),_0x22ed2f[_0x25bc47]['push'](_0x3f436b),_0x22ed2f;},{});_0x35b18f['plugins']['has']('ImageInsertUI')&&_0x35b18f['commands']['get']('uploadcare')&&Object['entries'](_0xf1846e)['forEach'](([_0x5b4de0,_0x41c5ea])=>{_0x35b18f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x5b4de0,'observable':()=>_0x475259,'buttonViewCreator':()=>this['_createToolbarButton'](_0x41c5ea),'formViewCreator':()=>this['_createDropdownButtons'](_0x41c5ea),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x41c5ea),'override':'assetManager'!==_0x5b4de0});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3241f4){const {locale:_0x344f59}=this['editor'];return _0x3241f4['map'](_0x1ce20f=>{const _0x939f1a=_(_0x344f59,_0x1ce20f,'Insert');switch(_0x1ce20f){case i['Local']:return{'icon':_0x21d8ba,'type':i['Local'],..._0x939f1a};case i['URL']:return{'icon':_0x4efa8f,'type':i['URL'],..._0x939f1a};case i['Dropbox']:return{'icon':_0x10c8de,'type':i['Dropbox'],..._0x939f1a};case i['Facebook']:return{'icon':_0x1413a,'type':i['Facebook'],..._0x939f1a};case i['GDrive']:return{'icon':_0x4e2c3b,'type':i['GDrive'],..._0x939f1a};case i['GPhotos']:return{'icon':_0x1e22e8,'type':i['GPhotos'],..._0x939f1a};case i['OneDrive']:return{'icon':_0x457ccd,'type':i['OneDrive'],..._0x939f1a};}});}['_getIntegrationKey'](_0x2863d9){switch(_0x2863d9){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xd2931e,_0x2c3f96){const _0x5de604=this['editor'],_0x3e4bb5=new _0xd2931e(_0x5de604['locale']),_0x408f8c=_0x5de604['commands']['get']('uploadcare');return _0x3e4bb5['bind']('isEnabled')['to'](_0x408f8c),_0x3e4bb5['on']('execute',()=>{_0x408f8c['execute'](_0x2c3f96);}),_0x3e4bb5;}['_createToolbarButton'](_0x57a47f){const {locale:_0x1dab36}=this['editor'],_0x55ab43=this['editor']['plugins']['get']('ImageInsertUI'),_0x533a07=_0x57a47f[0x0],_0x348656=this['_createButton'](_0x4bc8a8,_0x533a07['type']);return _0x348656['icon']=_0x533a07['icon'],_0x348656['bind']('label')['to'](_0x55ab43,'isImageSelected',_0x4dffdf=>_(_0x1dab36,_0x533a07['type'],_0x4dffdf?'Replace':'Insert')['text']),_0x348656['tooltip']=!0x0,_0x348656;}['_createDropdownButtons'](_0x41cc89){const {locale:_0x106a27}=this['editor'],_0x1ca990=this['editor']['plugins']['get']('ImageInsertUI');return _0x41cc89['map'](_0x3b4b69=>{const _0x5b5568=this['_createButton'](_0x4bc8a8,_0x3b4b69['type']);return _0x5b5568['withText']=!0x0,_0x5b5568['icon']=_0x3b4b69['icon'],_0x5b5568['bind']('label')['to'](_0x1ca990,'isImageSelected',_0x10d2d5=>_(_0x106a27,_0x3b4b69['type'],_0x10d2d5?'Replace':'Insert')['text']),_0x5b5568;});}['_createMenuBarButtons'](_0x236fef){return _0x236fef['map'](_0x136979=>{const _0x5d22d2=this['_createButton'](_0x318449,_0x136979['type']);return _0x5d22d2['icon']=_0x136979['icon'],_0x5d22d2['label']=_0x136979['shortText'],_0x5d22d2;});}}class F extends _0x277a7c{['focusTracker'];['focusCycler'];constructor(_0x53bd5a){super(_0x53bd5a),this['focusTracker']=new _0xbcaff(),this['focusCycler']=new _0x41ff84({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0x311abe,_0x1bf92e){super(_0x311abe),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-'+_0x1bf92e}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x309b37,_0x48c50b){const _0x5cff9d=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3e19cd=>_0x3e19cd<=_0x48c50b)['map'](_0x185d1b=>_0x309b37['replace'](/\/$/,'')+'/-/resize/'+_0x185d1b+'x/\x20'+_0x185d1b+'w');return{'imageFallbackUrl':_0x309b37,'imageSources':[{'srcset':_0x5cff9d['join'](',\x20'),'sizes':'(max-width:\x20'+_0x48c50b+'px)\x20100vw,\x20'+_0x48c50b+'px','type':'image/webp'}]};}function S(_0x5d309a,_0x35d20c,_0x2e5408){const _0x447bd1=_0x5d309a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x447bd1?parseInt(_0x447bd1[0x1],0xa):_0x35d20c,'height':_0x447bd1?parseInt(_0x447bd1[0x2],0xa):_0x2e5408};}function p(_0xb9707e,_0x1de967){const _0x1ccda6=new(_0x4fa885())(),_0x373fff=_0xb9707e['plugins']['get']('ImageUtils'),_0xfe350=_0xb9707e['editing']['mapper']['toViewElement'](_0x1de967),_0x13b02c=_0x373fff['findViewImgElement'](_0xfe350),_0x46ea69=_0xb9707e['editing']['view']['domConverter']['viewToDom'](_0x13b02c),_0x5e0b26=_0x1de967['getAttribute']('width'),_0x441b61=_0x1de967['getAttribute']('height'),_0x407161='image-processing';_0xb9707e['editing']['view']['change'](_0x570c92=>{_0x570c92['addClass'](_0x407161,_0xfe350),_0x570c92['setStyle']('aspect-ratio',_0x5e0b26+'/'+_0x441b61,_0x13b02c);}),_0x1ccda6['listenTo'](_0x46ea69,'load',()=>{_0x1ccda6['stopListening'](_0x46ea69,'load'),_0xb9707e['editing']['view']['change'](_0x18418a=>{_0x18418a['removeClass'](_0x407161,_0xfe350),_0x18418a['removeStyle']('aspect-ratio',_0x13b02c);});});}function z(_0x261296){if(Array['isArray'](_0x261296)){const _0x7397e4=_0x261296['map'](z);return _0x3aae1a=>_0x7397e4['some'](_0x4bc31b=>_0x4bc31b(_0x3aae1a));}if('origin'==_0x261296){const _0x18c6db=_0x44ac0a['window']['location']['origin'];return _0x195713=>new URL(_0x195713,_0x44ac0a['document']['baseURI'])['origin']==_0x18c6db;}return'function'==typeof _0x261296?_0x261296:_0x261296 instanceof RegExp?_0x509115=>!(!_0x509115['match'](_0x261296)&&!_0x509115['replace'](/^https?:\/\//,'')['match'](_0x261296)):()=>!0x1;}function A(_0x2319da,_0x43176b){return _0x391dc4(_0x2319da['target'])['includes'](_0x43176b);}class n extends/* #__PURE__ -- @preserve */
24
+ _0x1ea06e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x592072,_0xa31ad7,_0x4d502d){super(),this['_editor']=_0x592072,this['_editing']=_0xa31ad7,this['_dialog']=_0x592072['plugins']['get'](_0x279260),this['_api']=_0xa31ad7['ctxElement']['getAPI'](),this['_type']=_0x4d502d,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:_0x1e93d0,model:_0x34b77f}=this['_editor'],_0x1f5799=_0x34b77f['document']['selection']['getSelectedElement'](),_0x5456dd=_0x1f5799&&(_0x1f5799['is']('element','imageBlock')||_0x1f5799['is']('element','imageInline'));this['_formView']=new x(_0x1e93d0,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x21d8ba,'title':_(_0x1e93d0,this['_type'],_0x5456dd?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xf33536['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x35ae14=>!A(_0x35ae14,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5239bc}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0xa5251b=>{const _0x1f0049=_0x5239bc['length'];for(const _0x3c96af of _0x5239bc){const _0x521094=_0x3c96af===_0x5239bc[_0x1f0049-0x1],{cdnUrl:_0x27364b,fileInfo:_0x58f8b9}=_0x3c96af;if(!_0x27364b||!_0x58f8b9)continue;const {width:_0x37e8fe,height:_0x19fe1a}=_0x58f8b9['imageInfo'],_0x4519e0=S(_0x27364b,_0x37e8fe,_0x19fe1a),_0x78e5e9=C(_0x27364b,_0x4519e0['width']),_0x592412={'id':_0x58f8b9['uuid'],'type':'image','attributes':{'imageDimension':_0x4519e0,..._0x78e5e9}};this['_insertAsset'](_0x592412,_0x521094,_0xa5251b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xef8751=>{'idle'===_0xef8751['detail']['status']&&!_0xef8751['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xb79688,_0xcd4bef,_0x29bc31){const _0x3fbb91=this['_editor']['model']['document']['selection'],_0x15957b=_0x3fbb91['getSelectedElement'](),_0x389160=!(!_0x15957b||!_0x15957b['is']('element','imageInline'));_0x29bc31['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xb79688,_0x389160),_0xcd4bef||_0x29bc31['setSelection'](_0x3fbb91['getLastPosition']());}['_insertImage'](_0x40bd63,_0x56710f){const _0x3c3477=this['_editor'],{imageDimension:_0x1e4d77,imageFallbackUrl:_0xa6d710,imageSources:_0x195d9e}=_0x40bd63['attributes'];_0x3c3477['execute']('insertImage',{'imageType':_0x56710f?'imageInline':null,'source':{'uploadcareImageId':_0x40bd63['id'],'src':_0xa6d710,'sources':_0x195d9e,..._0x1e4d77}});}}class w extends _0x44004a{['_editing'];['_controller']=null;static get['requires'](){return[_0x279260,o];}constructor(_0x48c8f1){super(_0x48c8f1),this['_editing']=_0x48c8f1['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x22be32){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x22be32);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x59f17e,..._0x5b5e26}){return _0x523cab(_0x59f17e,_0x5b5e26);}static['getInfo'](_0x2c918e,_0x1588fc){return _0x892cc8(_0x2c918e,_0x1588fc);}}class f extends _0x2e5318{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x494b4d,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1f2b5c=this['editor'];if(!!!_0x1f2b5c['config']['get']('uploadcare'))return;_0x1f2b5c['plugins']['get'](_0x494b4d)['createUploadAdapter']=_0x2151cf=>new k(_0x2151cf,_0x1f2b5c),_0x1f2b5c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2c4fac,{imageElement:_0x1ea0b6,data:_0x2c1ef6})=>{_0x1f2b5c['model']['change'](_0x3b2a4c=>{_0x3b2a4c['setAttribute']('uploadcareImageId',_0x2c1ef6['uploadcareImageId'],_0x1ea0b6);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x38a711,_0x1fcaba){this['loader']=_0x38a711,this['editor']=_0x1fcaba,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x33f4ac=await this['loader']['file'];return j['upload']({'file':_0x33f4ac,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x399bc7=>{_0x399bc7&&_0x399bc7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x399bc7['value']);}})['then'](async _0x4a15e6=>{const {imageFallbackUrl:_0x55d1ab,imageSources:_0x46a3f8}=C(_0x4a15e6['cdnUrl'],_0x4a15e6['imageInfo']['width']);return{'uploadcareImageId':_0x4a15e6['uuid'],'default':_0x55d1ab,'sources':_0x46a3f8};})['catch'](()=>{const _0x669474=t('Cannot\x20upload\x20file:')+('\x20'+_0x33f4ac['name']+'.');return Promise['reject'](_0x669474);});}['abort'](){this['controller']['abort']();}}class o extends _0x2e5318{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x279260];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x2cfb2e){super(_0x2cfb2e),this['ucContextId']=_0xc7a24b();}['init'](){const _0x2a9991=this['editor'];_0x2a9991['commands']['add']('uploadcare',new w(_0x2a9991));}['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 _0x594a85=_0x44ac0a['document']['querySelector']('input[uploadcare-file-input]');_0x594a85&&_0x594a85['remove']();}),async function(_0x5ba9da){const _0x1dcb5=_0x545903([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4f33d4=0x535f8c3a,_0x301a49=0x5358f432^_0x4f33d4,_0x44bbf6=window[_0x545903([0x44,0x61,0x74,0x65])][_0x545903([0x6e,0x6f,0x77])](),_0x123a09=_0x5ba9da[_0x545903([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x56b783=new window[(_0x545903([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f36e3=>{_0x123a09[_0x545903([0x6f,0x6e,0x63,0x65])](_0x545903([0x72,0x65,0x61,0x64,0x79]),_0x3f36e3);}),_0x5c5f6c={[_0x545903([0x6b,0x74,0x79])]:_0x545903([0x45,0x43]),[_0x545903([0x75,0x73,0x65])]:_0x545903([0x73,0x69,0x67]),[_0x545903([0x63,0x72,0x76])]:_0x545903([0x50,0x2d,0x32,0x35,0x36]),[_0x545903([0x78])]:_0x545903([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]),[_0x545903([0x79])]:_0x545903([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]),[_0x545903([0x61,0x6c,0x67])]:_0x545903([0x45,0x53,0x32,0x35,0x36])},_0x33912d=_0x123a09[_0x545903([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x545903([0x67,0x65,0x74])](_0x545903([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e7244(){let _0x1340cf,_0x3fb53e=null,_0x312b2d=null;try{if(_0x33912d==_0x545903([0x47,0x50,0x4c]))return _0x545903([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1340cf=_0x13c853(),!_0x1340cf)return _0x545903([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1340cf[_0x545903([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x312b2d=_0x353993(_0x1340cf[_0x545903([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1340cf[_0x545903([0x6a,0x74,0x69])])),await _0x8ca173()?_0x485688()?_0x3501e9()?_0x545903([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x38329d()?(_0x1340cf[_0x545903([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x545903([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3fb53e=_0x383370(_0x545903([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1340cf[_0x545903([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x545903([0x74,0x72,0x69,0x61,0x6c])&&(_0x3fb53e=_0x383370(_0x545903([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x388b05()):_0x545903([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x545903([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x545903([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x545903([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3501e9(){const _0x1b229f=[_0x545903([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x545903([0x74,0x72,0x69,0x61,0x6c])][_0x545903([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1340cf[_0x545903([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x44bbf6/0x3e8:0xe10*_0x301a49;return _0x1340cf[_0x545903([0x65,0x78,0x70])]<_0x1b229f;}function _0x485688(){const _0xbe4b4=_0x1340cf[_0x545903([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xbe4b4&&(!!_0xbe4b4[_0x545903([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x545903([0x2a]))||!!_0xbe4b4[_0x545903([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x545903([0x55,0x50,0x4c,0x43])));}function _0x38329d(){const _0x4aa144=_0x1340cf[_0x545903([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4aa144||0x0==_0x4aa144[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3cc47e}=new URL(window[_0x545903([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4aa144[_0x545903([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cc47e))return!0x0;const _0x36e600=_0x3cc47e[_0x545903([0x73,0x70,0x6c,0x69,0x74])](_0x545903([0x2e]));return _0x4aa144[_0x545903([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x376888=>_0x376888[_0x545903([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x545903([0x2a])))[_0x545903([0x6d,0x61,0x70])](_0x279a50=>_0x279a50[_0x545903([0x73,0x70,0x6c,0x69,0x74])](_0x545903([0x2e])))[_0x545903([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x165fd2=>_0x165fd2[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x36e600[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x545903([0x6d,0x61,0x70])](_0x1333ed=>Array(_0x36e600[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1333ed[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x545903([0x66,0x69,0x6c,0x6c])](_0x1333ed[0x0]===_0x545903([0x2a])?_0x545903([0x2a]):'')[_0x545903([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1333ed))[_0x545903([0x73,0x6f,0x6d,0x65])](_0x1500b0=>_0x36e600[_0x545903([0x65,0x76,0x65,0x72,0x79])]((_0x4c857a,_0x5a3da2)=>_0x1500b0[_0x5a3da2]===_0x4c857a||_0x1500b0[_0x5a3da2]===_0x545903([0x2a])));}function _0x388b05(){return _0x3fb53e&&_0x312b2d?new window[(_0x545903([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26a737,_0x5ebbe1)=>{_0x3fb53e[_0x545903([0x74,0x68,0x65,0x6e])](_0x26a737,_0x5ebbe1),_0x312b2d[_0x545903([0x74,0x68,0x65,0x6e])](_0x5716e8=>{_0x5716e8!=_0x545903([0x56,0x61,0x6c,0x69,0x64])&&_0x26a737(_0x5716e8);},_0x5ebbe1);}):_0x3fb53e||_0x312b2d||_0x545903([0x56,0x61,0x6c,0x69,0x64]);}}function _0x353993(_0xd3fa1b,_0x423602){return new window[(_0x545903([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b8171=>{if(_0x32cf70())return _0x4b8171(_0x545903([0x56,0x61,0x6c,0x69,0x64]));_0x176b97(),_0x123a09[_0x545903([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x545903([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x120d66=!0x1;const _0x4a76ae=_0xc7a24b();function _0x51c6f8(_0x19f3b3){return!!_0x19f3b3&&(typeof _0x19f3b3===_0x545903([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19f3b3===_0x545903([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19f3b3[_0x545903([0x74,0x68,0x65,0x6e])]===_0x545903([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19f3b3[_0x545903([0x63,0x61,0x74,0x63,0x68])]===_0x545903([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x47d510(_0x24aabd){_0x22ca5a(_0x24aabd)[_0x545903([0x74,0x68,0x65,0x6e])](_0x502927=>{if(!_0x502927||_0x502927[_0x545903([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x545903([0x6f,0x6b]))return _0x545903([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x276bb3(_0x230040(_0x4a76ae+_0x423602))!=_0x502927[_0x545903([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x545903([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x545903([0x56,0x61,0x6c,0x69,0x64]);})[_0x545903([0x74,0x68,0x65,0x6e])](_0x1376b3=>(_0xf247f7(),_0x1376b3),()=>{const _0x322c52=_0x1ede55();return null==_0x322c52?(_0xf247f7(),_0x545903([0x56,0x61,0x6c,0x69,0x64])):_0x545903(_0x44bbf6-_0x322c52>(0x7753083a^_0x4f33d4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x545903([0x74,0x68,0x65,0x6e])](_0x4b8171)[_0x545903([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b8171(_0x545903([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1169c2=0x536962ba^_0x4f33d4;function _0xf247f7(){const _0xf2b9de=_0x545903([0x6c,0x6c,0x63,0x74,0x2d])+_0x276bb3(_0x230040(_0xd3fa1b)),_0x4072b3=_0x44472d(_0x276bb3(window[_0x545903([0x4d,0x61,0x74,0x68])][_0x545903([0x63,0x65,0x69,0x6c])](_0x44bbf6/_0x1169c2)));window[_0x545903([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x545903([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf2b9de,_0x4072b3);}function _0x1ede55(){const _0x4ebeb1=_0x545903([0x6c,0x6c,0x63,0x74,0x2d])+_0x276bb3(_0x230040(_0xd3fa1b)),_0x5ede0f=window[_0x545903([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x545903([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ebeb1);return _0x5ede0f?window[_0x545903([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44472d(_0x5ede0f),0x10)*_0x1169c2:null;}function _0x22ca5a(_0x3a5fae){return new window[(_0x545903([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x373998,_0x1bc9a6)=>{_0x3a5fae[_0x545903([0x74,0x68,0x65,0x6e])](_0x373998,_0x1bc9a6),window[_0x545903([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1bc9a6,0x535e58fa^_0x4f33d4);});}}_0x123a09[_0x545903([0x6f,0x6e])](_0x545903([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x48e98d,_0x40dde7)=>{if(_0x40dde7[0x0]!=_0xd3fa1b)return _0x4b8171(_0x545903([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40dde7[0x1]={..._0x40dde7[0x1],[_0x545903([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4a76ae};},{[_0x545903([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x545903([0x68,0x69,0x67,0x68])}),_0x123a09[_0x545903([0x6f,0x6e])](_0x545903([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ebbe7=>{_0x51c6f8(_0x4ebbe7[_0x545903([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x120d66=!0x0,_0x47d510(_0x4ebbe7[_0x545903([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x545903([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x545903([0x6c,0x6f,0x77])}),_0x56b783[_0x545903([0x74,0x68,0x65,0x6e])](()=>{_0x120d66||_0x4b8171(_0x545903([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x32cf70(){return _0x123a09[_0x545903([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x545903([0x76,0x69,0x65,0x77])][_0x545903([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x545903([0x61,0x75,0x74,0x6f]);}function _0x176b97(){_0x123a09[_0x545903([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x545903([0x76,0x69,0x65,0x77])][_0x545903([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x545903([0x61,0x75,0x74,0x6f]);}}function _0x383370(_0x1b4353){const _0x184ee4=[new window[(_0x545903([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30df36=>setTimeout(_0x30df36,0x5356b2f6^_0x4f33d4)),_0x56b783[_0x545903([0x74,0x68,0x65,0x6e])](()=>new window[(_0x545903([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37c162=>{let _0x44846c=0x0;_0x123a09[_0x545903([0x6d,0x6f,0x64,0x65,0x6c])][_0x545903([0x6f,0x6e])](_0x545903([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x254d36,_0x421039)=>{_0x421039[0x0][_0x545903([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44846c++,_0x44846c==(0x535f8dc2^_0x4f33d4)&&(_0x37c162(),_0x254d36[_0x545903([0x6f,0x66,0x66])]());});}))];return window[_0x545903([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x545903([0x72,0x61,0x63,0x65])](_0x184ee4)[_0x545903([0x74,0x68,0x65,0x6e])](()=>_0x1b4353);}async function _0x3fc54a(){await _0x56b783,_0x123a09[_0x545903([0x6d,0x6f,0x64,0x65,0x6c])][_0x545903([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c01dc,_0x123a09[_0x545903([0x6d,0x6f,0x64,0x65,0x6c])][_0x545903([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c01dc,_0x123a09[_0x545903([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x545903([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3222b8(_0x53af6c){const _0x1e4139=_0x4d80c4();_0x123a09[_0x1e4139]=_0x545903([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x53af6c,_0x53af6c!=_0x545903([0x56,0x61,0x6c,0x69,0x64])&&_0x3fc54a();}function _0x4d80c4(){const _0x56661b=window[_0x545903([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x545903([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x545903([0x6e,0x6f,0x77])]())[_0x545903([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x545903([0x2e]),'');let _0x4df859=_0x545903([0x68]);for(let _0x19c267=0x0;_0x19c267<_0x56661b[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19c267+=0x2){let _0x1acb14=window[_0x545903([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56661b[_0x545903([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19c267,_0x19c267+0x2));_0x1acb14>=_0x1dcb5[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1acb14-=_0x1dcb5[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4df859+=_0x1dcb5[_0x1acb14];}return _0x4df859;}function _0x13c853(){const _0x8545ff=_0x33912d[_0x545903([0x73,0x70,0x6c,0x69,0x74])](_0x545903([0x2e]));if(0x3!=_0x8545ff[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x481eaf(_0x8545ff[0x1]);function _0x481eaf(_0x18f4e6){const _0x54c2fa=_0x302133(_0x18f4e6);return _0x54c2fa&&_0x34da07()?_0x54c2fa:null;function _0x34da07(){const _0x50d1e6=_0x54c2fa[_0x545903([0x6a,0x74,0x69])],_0x554d59=window[_0x545903([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50d1e6[_0x545903([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50d1e6[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x450021={..._0x54c2fa,[_0x545903([0x6a,0x74,0x69])]:_0x50d1e6[_0x545903([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50d1e6[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x450021[_0x545903([0x76,0x63])],_0x230040(_0x450021)==_0x554d59;}}}async function _0x8ca173(){let _0x186393=!0x0;try{const _0x8aaf4e=_0x33912d[_0x545903([0x73,0x70,0x6c,0x69,0x74])](_0x545903([0x2e])),[_0x1fd8ae,_0x42e56e,_0x4f7e08]=_0x8aaf4e;return _0x332991(_0x1fd8ae),await _0x198d44(_0x1fd8ae,_0x42e56e,_0x4f7e08),_0x186393;}catch{return!0x1;}function _0x332991(_0x521b58){const _0x574110=_0x302133(_0x521b58);_0x574110&&_0x574110[_0x545903([0x61,0x6c,0x67])]==_0x545903([0x45,0x53,0x32,0x35,0x36])||(_0x186393=!0x1);}async function _0x198d44(_0x5c38df,_0x2900d2,_0x440344){const _0x2d6f9b=window[_0x545903([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x545903([0x66,0x72,0x6f,0x6d])](_0x22a57b(_0x440344),_0x50e700=>_0x50e700[_0x545903([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5f5547=new window[(_0x545903([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x545903([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c38df+_0x545903([0x2e])+_0x2900d2),_0x5b61a8=window[_0x545903([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x545903([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5b61a8)return;const _0x4e65a0=await _0x5b61a8[_0x545903([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x545903([0x6a,0x77,0x6b]),_0x5c5f6c,{[_0x545903([0x6e,0x61,0x6d,0x65])]:_0x545903([0x45,0x43,0x44,0x53,0x41]),[_0x545903([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x545903([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x545903([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5b61a8[_0x545903([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x545903([0x6e,0x61,0x6d,0x65])]:_0x545903([0x45,0x43,0x44,0x53,0x41]),[_0x545903([0x68,0x61,0x73,0x68])]:{[_0x545903([0x6e,0x61,0x6d,0x65])]:_0x545903([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e65a0,_0x2d6f9b,_0x5f5547)||(_0x186393=!0x1);}}function _0x302133(_0x3d7487){return _0x3d7487[_0x545903([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x545903([0x65,0x79]))?JSON[_0x545903([0x70,0x61,0x72,0x73,0x65])](_0x22a57b(_0x3d7487)):null;}function _0x22a57b(_0x132cde){return window[_0x545903([0x61,0x74,0x6f,0x62])](_0x132cde[_0x545903([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x545903([0x2b]))[_0x545903([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x545903([0x2f])));}function _0x230040(_0x1d91f7){let _0x395a23=0x1505;function _0x3e0e77(_0x47e4b6){for(let _0x16ae90=0x0;_0x16ae90<_0x47e4b6[_0x545903([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16ae90++){const _0x2054b9=_0x47e4b6[_0x545903([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x16ae90);_0x395a23=(_0x395a23<<0x5)+_0x395a23+_0x2054b9,_0x395a23&=_0x395a23;}}function _0x89a313(_0xcdd3f9){Array[_0x545903([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xcdd3f9)?_0xcdd3f9[_0x545903([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x89a313):_0xcdd3f9&&typeof _0xcdd3f9==_0x545903([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x545903([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xcdd3f9)[_0x545903([0x73,0x6f,0x72,0x74])]()[_0x545903([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24065e,_0x109b5c])=>{_0x3e0e77(_0x24065e),_0x89a313(_0x109b5c);}):_0x3e0e77(window[_0x545903([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xcdd3f9));}return _0x89a313(_0x1d91f7),_0x395a23>>>0x0;}function _0x276bb3(_0x254fc8){return _0x254fc8[_0x545903([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x545903([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x545903([0x30]));}function _0x44472d(_0x13bf7c){return _0x13bf7c[_0x545903([0x73,0x70,0x6c,0x69,0x74])]('')[_0x545903([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x545903([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c01dc(){}function _0x545903(_0x1fe5e0){return _0x1fe5e0['map'](_0x4bece1=>String['fromCharCode'](_0x4bece1))['join']('');}_0x3222b8(await _0x3e7244());}(this);}['_initSchema'](){const _0x50c987=this['editor']['model']['schema'];_0x50c987['isRegistered']('imageBlock')&&_0x50c987['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x50c987['isRegistered']('imageInline')&&_0x50c987['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x216fff=this['editor'];_0x216fff['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x216fff['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3cd8f4=>_0x3cd8f4['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5a2c56=_0x216fff['commands']['get']('replaceImageSource');_0x5a2c56&&this['listenTo'](_0x5a2c56,'cleanupImage',(_0x252c32,[_0x24db69,_0x540efd])=>{_0x24db69['removeAttribute']('uploadcareImageId',_0x540efd);});}['_initConfig'](){const _0x42a28f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x507197=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1b8710(_0x44ac0a['document'],'uc-config',{..._0x42a28f,'pubkey':_0x507197,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x37933d=>{if('closeMax'==_0x37933d)return'#uc-icon-arrow-down';},_0x44ac0a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1b8710(_0x44ac0a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x44ac0a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1f45b1=this['editor']['commands']['get']('insertImage');_0x1f45b1&&this['listenTo'](_0x1f45b1,'execute',()=>{const _0x1e01d7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1e01d7&&_0x1e01d7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1e01d7);});});const _0x240462=this['editor']['commands']['get']('uploadcareImageReplace');_0x240462&&this['listenTo'](_0x240462,'execute',()=>{const _0x223ffd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x223ffd&&_0x223ffd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x223ffd);});});}}class tt extends _0x2e5318{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b2b33){super(_0x3b2b33),_0x3b2b33['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2c49ce['defineComponents'](_0x2c49ce),this['_defineLocale']();}['_defineLocale'](){const _0x3d4546=this['editor']['config']['get']('uploadcare.locale'),_0x1bd591=this['editor']['locale']['contentLanguage'];_0x3d4546&&_0x2c49ce['defineLocale'](_0x1bd591,_0x3d4546);}}class ii extends _0x277a7c{constructor(_0x3a02fc){super(_0x3a02fc);const t=_0x3a02fc['t'],_0x53c1e=this['bindTemplate'],_0x27282c=new _0x1c8f16();_0x27282c['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':[_0x27282c,{'text':_0x53c1e['to']('imageUploadProgress',_0x3ac246=>t('Loading\x20image...')+'\x20('+(_0x3ac246||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x277a7c{constructor(_0x3e7dd0){super(_0x3e7dd0);const t=_0x3e7dd0['t'];this['set']('errorType',null);const _0xaf19de=new _0x4bc8a8(_0x3e7dd0);_0xaf19de['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xaf19de['withText']=!0x0,_0xaf19de['class']='ck-button-action',_0xaf19de['on']('execute',()=>{this['fire']('retry');}),_0xaf19de['bind']('isVisible')['to'](this,'errorType',_0x573fb1=>'NotFound'!==_0x573fb1);const _0x191751=new _0x4783b4();_0x191751['content']=_0x35c621,_0x191751['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4c3c1a=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':[_0x191751,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4c3c1a['to']('errorType',_0x805f5b=>t('NotFound'!==_0x805f5b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xaf19de]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x277a7c{constructor(_0x45b590,_0x2b0fa9){super(_0x45b590);const _0x287f9b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2b0fa9,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x287f9b['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x244098,_0x58aedf,_0x4d0382){super(_0x244098),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x244098),this['_errorView']=new ti(_0x244098),this['_editingView']=new ei(_0x244098,_0x4d0382),this['_focusableView']=new _0x277a7c(_0x244098),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x58aedf),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'],_0x1df86f=>{this['_addUploadcareImageEditorListeners'](_0x1df86f);});}),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'](_0x464b84,_0x46c8ff){const _0x43cd26='uc-cloud-image-editor',_0x58b762=_0x464b84['querySelector'](_0x43cd26);if(_0x58b762)return _0x46c8ff(_0x58b762);const _0x1eddba=new MutationObserver(_0x266767=>{const _0x3f4ecf=_0x266767['filter'](_0x4600db=>_0x4600db['target']===_0x464b84&&_0x4600db['addedNodes']['length']>0x0&&_0x4600db['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x43cd26);_0x3f4ecf['length']&&(_0x1eddba['disconnect'](),_0x46c8ff(_0x3f4ecf[0x0]['addedNodes'][0x0]));});_0x1eddba['observe'](_0x464b84,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x357f7b){_0x357f7b['addEventListener']('apply',_0x5acb32=>{this['fire']('apply',{'imageSrc':_0x5acb32['detail']['cdnUrl']});}),_0x357f7b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class N extends/* #__PURE__ -- @preserve */
25
+ _0x1ea06e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x536892,_0x3dcdec,_0x497b1f){super(),this['_editor']=_0x536892,this['_dialog']=_0x3dcdec,this['_imageElement']=_0x497b1f,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 _0x3395fb=this['_imageElement'],_0x3853d4=_0x3395fb['getAttribute']('uploadcareImageId'),_0x35fe25=_0x3395fb['getAttribute']('src');if(_0x3853d4)await this['_loadImageInfo'](_0x3853d4,_0x35fe25);else{if(this['_imageCache']['has'](_0x35fe25)){const _0x3e1383=this['_imageCache']['get'](_0x35fe25);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3e1383['url'],this['imageDimension']=_0x3e1383['dimension'],this['imageId']=_0x3e1383['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x47e1ea}=this['_editor'],t=_0x47e1ea['t'],_0x3856ea=new X(_0x47e1ea,this['imageStatus'],this['_attributes']);_0x3856ea['bind']('status')['to'](this,'imageStatus'),_0x3856ea['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3856ea['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3856ea['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3856ea,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x590a85,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3856ea,'position':_0xf33536['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3856ea['focus']();},'onHide':()=>{_0x3856ea['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x27eb2e=>!A(_0x27eb2e,_0x3856ea['element'])}});}['_loadImageInfo'](_0x471b5a,_0x53fded){return j['getInfo'](_0x471b5a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x241165=>{const {width:_0x4cf22e,height:_0x56b0ec}=_0x241165['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x53fded,this['imageDimension']={'width':_0x4cf22e,'height':_0x56b0ec},this['imageId']=_0x471b5a;})['catch'](_0x203eb0=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x203eb0['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x2af832,_0x4ed1e7){return this['_getImageAsFile'](_0x2af832)['then'](_0x20aaa4=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4ed1e7['signal'],'file':_0x20aaa4,'onProgress':_0xe3a5fc=>{_0xe3a5fc&&_0xe3a5fc['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xe3a5fc['value']));}}))['then'](_0x584c59=>{const {width:_0x488f17,height:_0x527155}=_0x584c59['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x584c59['cdnUrl'],this['imageDimension']={'width':_0x488f17,'height':_0x527155},this['imageId']=_0x584c59['uuid'],this['imageUploadProgress']=null;const _0x48386e=_0x2af832['getAttribute']('src');this['_imageCache']['set'](_0x48386e,{'id':_0x584c59['uuid'],'url':_0x584c59['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5579fc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5579fc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x989e84,_0x27b6fc){_0x989e84['on']('apply',(_0x21d724,_0x22fd3a)=>{this['_replaceImage'](_0x27b6fc,_0x22fd3a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x989e84['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x989e84['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2203b5,_0x141ff7,_0x9d335b){const _0x1e46c2=this['_editor'],{width:_0x3e5605,height:_0x126a33}=S(_0x141ff7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x35283e,imageSources:_0x2f3587}=C(_0x141ff7,_0x3e5605);_0x1e46c2['model']['change'](_0x43c73a=>{if('$graveyard'===_0x2203b5['root']['rootName']){_0x1e46c2['execute']('insertImage',{'imageType':_0x2203b5['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2203b5['getAttributes']()),'uploadcareImageId':_0x9d335b,'src':_0x35283e,'sources':_0x2f3587,'width':_0x3e5605,'height':_0x126a33}});const _0x27dc46=_0x2203b5['getChildren']();_0x2203b5=_0x1e46c2['model']['document']['selection']['getSelectedElement']();for(const _0x32983a of _0x27dc46)_0x43c73a['append'](_0x43c73a['cloneElement'](_0x32983a),_0x2203b5);}else _0x43c73a['setSelection'](_0x2203b5,'on'),_0x1e46c2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2203b5['getAttributes']()),'uploadcareImageId':_0x9d335b,'src':_0x35283e,'sources':_0x2f3587,'width':_0x3e5605,'height':_0x126a33},_0x2203b5);_0x43c73a['setSelection'](_0x2203b5,'on');});}async['_getImageAsFile'](_0x3b7c79){const _0x5559a3=_0x44ac0a['window'],_0x4b8ec2=_0x44ac0a['document']['location']['href'],_0x54a548=new _0x5559a3['URL'](_0x3b7c79['getAttribute']('src'),_0x4b8ec2);if('data:'===_0x54a548['protocol']){const _0x36119f=_0x54a548['href']['split'](','),_0x3373ff=_0x36119f[0x0]['match'](/:(.*?);/)[0x1],_0x33512d=_0x3373ff['split']('/')[0x1],_0x4c5cc9=_0x5559a3['atob'](_0x36119f[_0x36119f['length']-0x1]);let _0x317560=_0x4c5cc9['length'];const _0x210ba0=new _0x5559a3['Uint8Array'](_0x317560);for(;_0x317560--;)_0x210ba0[_0x317560]=_0x4c5cc9['charCodeAt'](_0x317560);return new _0x5559a3['File']([_0x210ba0],'image.'+_0x33512d,{'type':_0x3373ff});}const _0x281903=_0x54a548['href']['split']('/'),_0xce3ea0=_0x281903[_0x281903['length']-0x1],_0x47e7ce=_0xce3ea0['split']('.')[0x1];return _0x5559a3['fetch'](_0x54a548['href'])['then'](_0x59fcca=>_0x59fcca['clone']()['blob']())['then'](_0x905a37=>new _0x5559a3['File']([_0x905a37],_0xce3ea0,{'type':'image/'+_0x47e7ce}));}}class Q extends _0x44004a{['imageEditController'];static get['requires'](){return[_0x279260];}['_isEditable'];constructor(_0x14736d){super(_0x14736d),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4d9a06){const _0x2ed3f0=z(_0x4d9a06);return _0x510d9b=>!(!_0x510d9b||!_0x510d9b['is']('element','imageBlock')&&!_0x510d9b['is']('element','imageInline'))&&(!!_0x510d9b['hasAttribute']('uploadcareImageId')||!!_0x510d9b['hasAttribute']('src')&&_0x2ed3f0(_0x510d9b['getAttribute']('src')));}(_0x14736d['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2012cd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2012cd);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2af9b8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2af9b8&&(_0x2af9b8['is']('element','imageBlock')||_0x2af9b8['is']('element','imageInline'))&&(this['imageEditController']=new N(this['editor'],this['editor']['plugins']['get'](_0x279260),_0x2af9b8),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class V extends _0x44004a{['refresh'](){const _0x89a9c4=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x89a9c4&&(_0x89a9c4['is']('element','imageBlock')||_0x89a9c4['is']('element','imageInline')));}['execute'](_0x442023){const _0x2cdba6=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x38913d=>{_0x38913d['setAttributes'](_0x442023,_0x2cdba6),_0x38913d['removeAttribute']('srcset',_0x2cdba6),_0x38913d['removeAttribute']('sizes',_0x2cdba6);});}}class m extends _0x2e5318{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x346ba8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5bee5d}=this;_0x5bee5d['commands']['add']('uploadcareImageEdit',new Q(_0x5bee5d)),_0x5bee5d['commands']['add']('uploadcareImageReplace',new V(_0x5bee5d));}}class g extends _0x2e5318{['_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 _0x25ea95=this['editor'];_0x25ea95['ui']['componentFactory']['add']('uploadcareImageEdit',_0x70f239=>{const _0x17788f=_0x25ea95['commands']['get']('uploadcareImageEdit'),_0x4d24d5=new _0x4bc8a8(_0x70f239),t=_0x70f239['t'];return _0x4d24d5['set']({'icon':_0x590a85,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4d24d5['bind']('isEnabled')['to'](_0x17788f),_0x4d24d5['bind']('isOn')['to'](_0x17788f,'isActive'),this['listenTo'](_0x4d24d5,'execute',()=>{_0x25ea95['execute']('uploadcareImageEdit'),_0x25ea95['editing']['view']['focus']();}),_0x4d24d5;}),this['_initConfig']();}['_initConfig'](){const _0x337a10=_0x1b8710(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x337a10),this['listenTo'](this['editor'],'destroy',()=>{_0x337a10['remove']();});}}class et extends _0x2e5318{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,Q as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20251101.0",
3
+ "version": "0.0.0-nightly-20251103.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-20251101.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251101.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251101.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251101.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251101.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251101.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251101.0",
33
- "ckeditor5": "0.0.0-nightly-20251101.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251103.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251103.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251103.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251103.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251103.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251103.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251103.0",
33
+ "ckeditor5": "0.0.0-nightly-20251103.0",
34
34
  "@uploadcare/file-uploader": "1.19.4",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x42a7ba=_0x54f2;(function(_0x4c2abe,_0x394cf6){const _0x367468=_0x54f2,_0x25db74=_0x4c2abe();while(!![]){try{const _0x14853c=parseInt(_0x367468(0x1e9))/0x1+-parseInt(_0x367468(0x1f0))/0x2+parseInt(_0x367468(0x213))/0x3*(-parseInt(_0x367468(0x22a))/0x4)+parseInt(_0x367468(0x20a))/0x5*(-parseInt(_0x367468(0x222))/0x6)+parseInt(_0x367468(0x21e))/0x7+parseInt(_0x367468(0x227))/0x8+parseInt(_0x367468(0x201))/0x9;if(_0x14853c===_0x394cf6)break;else _0x25db74['push'](_0x25db74['shift']());}catch(_0x5338ad){_0x25db74['push'](_0x25db74['shift']());}}}(_0x1d8a,0x8143c));import{Plugin as _0x1c5e18}from'ckeditor5/src/core.js';function _0x54f2(_0x2d9c9b,_0x1d56eb){const _0x1d8a5c=_0x1d8a();return _0x54f2=function(_0x54f250,_0x4629e3){_0x54f250=_0x54f250-0x1e3;let _0x11519a=_0x1d8a5c[_0x54f250];return _0x11519a;},_0x54f2(_0x2d9c9b,_0x1d56eb);}import{Dialog as _0x1063f3}from'ckeditor5/src/ui.js';import{createElement as _0x532829,global as _0x1a68e8,uid as _0x796596}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x13217f}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x28ebfa}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4dd0d7}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1c5e18{[_0x42a7ba(0x1f6)]=null;[_0x42a7ba(0x1ef)]=null;static get[_0x42a7ba(0x214)](){const _0x377ab2=_0x42a7ba;return _0x377ab2(0x21f);}static get[_0x42a7ba(0x21a)](){const _0x26a4b6=_0x42a7ba;return[_0x26a4b6(0x21c),_0x28ebfa,_0x1063f3];}static get[_0x42a7ba(0x203)](){return!0x0;}static get[_0x42a7ba(0x205)](){return!0x0;}[_0x42a7ba(0x208)];get[_0x42a7ba(0x233)](){const _0x107f49=_0x42a7ba;return this[_0x107f49(0x1f6)];}get[_0x42a7ba(0x235)](){const _0x10d858=_0x42a7ba;return this[_0x10d858(0x1ef)];}constructor(_0x531a6d){const _0x339d95=_0x42a7ba;super(_0x531a6d),this[_0x339d95(0x208)]=_0x796596();}[_0x42a7ba(0x20e)](){const _0x30d981=_0x42a7ba,_0x384314=this[_0x30d981(0x1ed)];_0x384314[_0x30d981(0x1ee)][_0x30d981(0x221)](_0x30d981(0x22b),new _0x13217f(_0x384314));}[_0x42a7ba(0x218)](){const _0x25e7c0=_0x42a7ba;this[_0x25e7c0(0x232)](),this[_0x25e7c0(0x1fa)](),this[_0x25e7c0(0x1ec)](),this[_0x25e7c0(0x200)](),this[_0x25e7c0(0x223)](),this[_0x25e7c0(0x1fb)](this[_0x25e7c0(0x1ed)],_0x25e7c0(0x22c),()=>{const _0xad8f11=_0x25e7c0;this[_0xad8f11(0x1f6)]&&(this[_0xad8f11(0x1f6)][_0xad8f11(0x231)](),this[_0xad8f11(0x1f6)]=null),this[_0xad8f11(0x1ef)]&&(this[_0xad8f11(0x1ef)][_0xad8f11(0x231)](),this[_0xad8f11(0x1ef)]=null);const _0xb85659=_0x1a68e8[_0xad8f11(0x207)][_0xad8f11(0x210)](_0xad8f11(0x204));_0xb85659&&_0xb85659[_0xad8f11(0x231)]();}),async function(_0x469a05){const _0x23338e=_0x2f32e3([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x46ce6f=0x535f8c3a,_0x4e43b4=0x5358fbe2^_0x46ce6f,_0x3ef574=window[_0x2f32e3([0x44,0x61,0x74,0x65])][_0x2f32e3([0x6e,0x6f,0x77])](),_0x54f118=_0x469a05[_0x2f32e3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5864a6=new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4dd980=>{_0x54f118[_0x2f32e3([0x6f,0x6e,0x63,0x65])](_0x2f32e3([0x72,0x65,0x61,0x64,0x79]),_0x4dd980);}),_0x2536da={[_0x2f32e3([0x6b,0x74,0x79])]:_0x2f32e3([0x45,0x43]),[_0x2f32e3([0x75,0x73,0x65])]:_0x2f32e3([0x73,0x69,0x67]),[_0x2f32e3([0x63,0x72,0x76])]:_0x2f32e3([0x50,0x2d,0x32,0x35,0x36]),[_0x2f32e3([0x78])]:_0x2f32e3([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]),[_0x2f32e3([0x79])]:_0x2f32e3([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]),[_0x2f32e3([0x61,0x6c,0x67])]:_0x2f32e3([0x45,0x53,0x32,0x35,0x36])},_0x25e3c3=_0x54f118[_0x2f32e3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f32e3([0x67,0x65,0x74])](_0x2f32e3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x34c246(){let _0x2fcc9c,_0x4b3f98=null,_0x9e0e42=null;try{if(_0x25e3c3==_0x2f32e3([0x47,0x50,0x4c]))return _0x2f32e3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2fcc9c=_0x56f757(),!_0x2fcc9c)return _0x2f32e3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2fcc9c[_0x2f32e3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9e0e42=_0x2ff18c(_0x2fcc9c[_0x2f32e3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2fcc9c[_0x2f32e3([0x6a,0x74,0x69])])),await _0x1ba0c5()?_0x28ad79()?_0x39b7a5()?_0x2f32e3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c0481()?(_0x2fcc9c[_0x2f32e3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f32e3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b3f98=_0x444345(_0x2f32e3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2fcc9c[_0x2f32e3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f32e3([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b3f98=_0x444345(_0x2f32e3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2dec01()):_0x2f32e3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f32e3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f32e3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f32e3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x39b7a5(){const _0x1953dc=[_0x2f32e3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f32e3([0x74,0x72,0x69,0x61,0x6c])][_0x2f32e3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2fcc9c[_0x2f32e3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ef574/0x3e8:0xe10*_0x4e43b4;return _0x2fcc9c[_0x2f32e3([0x65,0x78,0x70])]<_0x1953dc;}function _0x28ad79(){const _0x509578=_0x2fcc9c[_0x2f32e3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x509578&&(!!_0x509578[_0x2f32e3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f32e3([0x2a]))||!!_0x509578[_0x2f32e3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f32e3([0x55,0x50,0x4c,0x43])));}function _0x5c0481(){const _0xd0191a=_0x54f2,_0x596bda=_0x2fcc9c[_0x2f32e3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x596bda||0x0==_0x596bda[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x66a83f}=new URL(window[_0x2f32e3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xd0191a(0x209)]);if(_0x596bda[_0x2f32e3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x66a83f))return!0x0;const _0x1a7597=_0x66a83f[_0x2f32e3([0x73,0x70,0x6c,0x69,0x74])](_0x2f32e3([0x2e]));return _0x596bda[_0x2f32e3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54c472=>_0x54c472[_0x2f32e3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f32e3([0x2a])))[_0x2f32e3([0x6d,0x61,0x70])](_0x5e80b4=>_0x5e80b4[_0x2f32e3([0x73,0x70,0x6c,0x69,0x74])](_0x2f32e3([0x2e])))[_0x2f32e3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x556765=>_0x556765[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a7597[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f32e3([0x6d,0x61,0x70])](_0xba1fc2=>Array(_0x1a7597[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xba1fc2[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f32e3([0x66,0x69,0x6c,0x6c])](_0xba1fc2[0x0]===_0x2f32e3([0x2a])?_0x2f32e3([0x2a]):'')[_0x2f32e3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xba1fc2))[_0x2f32e3([0x73,0x6f,0x6d,0x65])](_0x516e54=>_0x1a7597[_0x2f32e3([0x65,0x76,0x65,0x72,0x79])]((_0x47a3f2,_0x4a9ae9)=>_0x516e54[_0x4a9ae9]===_0x47a3f2||_0x516e54[_0x4a9ae9]===_0x2f32e3([0x2a])));}function _0x2dec01(){return _0x4b3f98&&_0x9e0e42?new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c4ee0,_0x536cd9)=>{_0x4b3f98[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0x3c4ee0,_0x536cd9),_0x9e0e42[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0x72dbd2=>{_0x72dbd2!=_0x2f32e3([0x56,0x61,0x6c,0x69,0x64])&&_0x3c4ee0(_0x72dbd2);},_0x536cd9);}):_0x4b3f98||_0x9e0e42||_0x2f32e3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ff18c(_0x2c1525,_0x29c370){return new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x111a5c=>{if(_0x87e117())return _0x111a5c(_0x2f32e3([0x56,0x61,0x6c,0x69,0x64]));_0x2a617d(),_0x54f118[_0x2f32e3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f32e3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3bdc67=!0x1;const _0x2318a3=_0x796596();function _0x2a7906(_0x2ade0b){return!!_0x2ade0b&&(typeof _0x2ade0b===_0x2f32e3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2ade0b===_0x2f32e3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2ade0b[_0x2f32e3([0x74,0x68,0x65,0x6e])]===_0x2f32e3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2ade0b[_0x2f32e3([0x63,0x61,0x74,0x63,0x68])]===_0x2f32e3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x422549(_0x57d0bc){_0x26a012(_0x57d0bc)[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0x40f298=>{if(!_0x40f298||_0x40f298[_0x2f32e3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f32e3([0x6f,0x6b]))return _0x2f32e3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x294e7d(_0x3f9de4(_0x2318a3+_0x29c370))!=_0x40f298[_0x2f32e3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f32e3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f32e3([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0xa5543b=>(_0x52778a(),_0xa5543b),()=>{const _0xef985e=_0xafc1ac();return null==_0xef985e?(_0x52778a(),_0x2f32e3([0x56,0x61,0x6c,0x69,0x64])):_0x2f32e3(_0x3ef574-_0xef985e>(0x7753083a^_0x46ce6f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0x111a5c)[_0x2f32e3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x111a5c(_0x2f32e3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x52848c=0x536962ba^_0x46ce6f;function _0x52778a(){const _0x2494e7=_0x2f32e3([0x6c,0x6c,0x63,0x74,0x2d])+_0x294e7d(_0x3f9de4(_0x2c1525)),_0x2194ad=_0x114439(_0x294e7d(window[_0x2f32e3([0x4d,0x61,0x74,0x68])][_0x2f32e3([0x63,0x65,0x69,0x6c])](_0x3ef574/_0x52848c)));window[_0x2f32e3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f32e3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2494e7,_0x2194ad);}function _0xafc1ac(){const _0x40d3d6=_0x2f32e3([0x6c,0x6c,0x63,0x74,0x2d])+_0x294e7d(_0x3f9de4(_0x2c1525)),_0x5b8b94=window[_0x2f32e3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f32e3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40d3d6);return _0x5b8b94?window[_0x2f32e3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x114439(_0x5b8b94),0x10)*_0x52848c:null;}function _0x26a012(_0x5e9f0e){return new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c0b2e,_0x36b550)=>{_0x5e9f0e[_0x2f32e3([0x74,0x68,0x65,0x6e])](_0x4c0b2e,_0x36b550),window[_0x2f32e3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x36b550,0x535e58fa^_0x46ce6f);});}}_0x54f118[_0x2f32e3([0x6f,0x6e])](_0x2f32e3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42ab3a,_0x346b4e)=>{if(_0x346b4e[0x0]!=_0x2c1525)return _0x111a5c(_0x2f32e3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x346b4e[0x1]={..._0x346b4e[0x1],[_0x2f32e3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2318a3};},{[_0x2f32e3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f32e3([0x68,0x69,0x67,0x68])}),_0x54f118[_0x2f32e3([0x6f,0x6e])](_0x2f32e3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1edf9e=>{_0x2a7906(_0x1edf9e[_0x2f32e3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3bdc67=!0x0,_0x422549(_0x1edf9e[_0x2f32e3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f32e3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f32e3([0x6c,0x6f,0x77])}),_0x5864a6[_0x2f32e3([0x74,0x68,0x65,0x6e])](()=>{_0x3bdc67||_0x111a5c(_0x2f32e3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x87e117(){return _0x54f118[_0x2f32e3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f32e3([0x76,0x69,0x65,0x77])][_0x2f32e3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f32e3([0x61,0x75,0x74,0x6f]);}function _0x2a617d(){_0x54f118[_0x2f32e3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f32e3([0x76,0x69,0x65,0x77])][_0x2f32e3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f32e3([0x61,0x75,0x74,0x6f]);}}function _0x444345(_0x3a8766){const _0x40ec61=[new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c13c4=>setTimeout(_0x5c13c4,0x5356b2f6^_0x46ce6f)),_0x5864a6[_0x2f32e3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c2aaf=>{let _0x56f0f1=0x0;_0x54f118[_0x2f32e3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f32e3([0x6f,0x6e])](_0x2f32e3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x591156,_0x5d0344)=>{_0x5d0344[0x0][_0x2f32e3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x56f0f1++,_0x56f0f1==(0x535f8dc2^_0x46ce6f)&&(_0x5c2aaf(),_0x591156[_0x2f32e3([0x6f,0x66,0x66])]());});}))];return window[_0x2f32e3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f32e3([0x72,0x61,0x63,0x65])](_0x40ec61)[_0x2f32e3([0x74,0x68,0x65,0x6e])](()=>_0x3a8766);}async function _0x3c15b8(){await _0x5864a6,_0x54f118[_0x2f32e3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f32e3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53a811,_0x54f118[_0x2f32e3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f32e3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53a811,_0x54f118[_0x2f32e3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f32e3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e9776(_0x45dd96){const _0x53acbf=_0x59cdc3();_0x54f118[_0x53acbf]=_0x2f32e3([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45dd96,_0x45dd96!=_0x2f32e3([0x56,0x61,0x6c,0x69,0x64])&&_0x3c15b8();}function _0x59cdc3(){const _0x5aee12=window[_0x2f32e3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f32e3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f32e3([0x6e,0x6f,0x77])]())[_0x2f32e3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f32e3([0x2e]),'');let _0x413bb5=_0x2f32e3([0x68]);for(let _0x29c9cc=0x0;_0x29c9cc<_0x5aee12[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29c9cc+=0x2){let _0x73458=window[_0x2f32e3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5aee12[_0x2f32e3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29c9cc,_0x29c9cc+0x2));_0x73458>=_0x23338e[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x73458-=_0x23338e[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x413bb5+=_0x23338e[_0x73458];}return _0x413bb5;}function _0x56f757(){const _0x3ef0e1=_0x25e3c3[_0x2f32e3([0x73,0x70,0x6c,0x69,0x74])](_0x2f32e3([0x2e]));if(0x3!=_0x3ef0e1[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d8a73(_0x3ef0e1[0x1]);function _0x2d8a73(_0x41da23){const _0x5552a3=_0x49ea0c(_0x41da23);return _0x5552a3&&_0x1e6b1d()?_0x5552a3:null;function _0x1e6b1d(){const _0x520b76=_0x5552a3[_0x2f32e3([0x6a,0x74,0x69])],_0x1b3dfd=window[_0x2f32e3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x520b76[_0x2f32e3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x520b76[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x431bb3={..._0x5552a3,[_0x2f32e3([0x6a,0x74,0x69])]:_0x520b76[_0x2f32e3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x520b76[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x431bb3[_0x2f32e3([0x76,0x63])],_0x3f9de4(_0x431bb3)==_0x1b3dfd;}}}async function _0x1ba0c5(){let _0x38fd89=!0x0;try{const _0x765a4f=_0x25e3c3[_0x2f32e3([0x73,0x70,0x6c,0x69,0x74])](_0x2f32e3([0x2e])),[_0x3cd1f9,_0x381eea,_0x1bf647]=_0x765a4f;return _0x4f3901(_0x3cd1f9),await _0x3ad0fa(_0x3cd1f9,_0x381eea,_0x1bf647),_0x38fd89;}catch{return!0x1;}function _0x4f3901(_0x5993b4){const _0x590605=_0x49ea0c(_0x5993b4);_0x590605&&_0x590605[_0x2f32e3([0x61,0x6c,0x67])]==_0x2f32e3([0x45,0x53,0x32,0x35,0x36])||(_0x38fd89=!0x1);}async function _0x3ad0fa(_0x1853b3,_0x1fea06,_0x254638){const _0x3ec707=window[_0x2f32e3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f32e3([0x66,0x72,0x6f,0x6d])](_0x3481f5(_0x254638),_0x30eadc=>_0x30eadc[_0x2f32e3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39ab28=new window[(_0x2f32e3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f32e3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1853b3+_0x2f32e3([0x2e])+_0x1fea06),_0x3d1e96=window[_0x2f32e3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f32e3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3d1e96)return;const _0x2905cc=await _0x3d1e96[_0x2f32e3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f32e3([0x6a,0x77,0x6b]),_0x2536da,{[_0x2f32e3([0x6e,0x61,0x6d,0x65])]:_0x2f32e3([0x45,0x43,0x44,0x53,0x41]),[_0x2f32e3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f32e3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f32e3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3d1e96[_0x2f32e3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f32e3([0x6e,0x61,0x6d,0x65])]:_0x2f32e3([0x45,0x43,0x44,0x53,0x41]),[_0x2f32e3([0x68,0x61,0x73,0x68])]:{[_0x2f32e3([0x6e,0x61,0x6d,0x65])]:_0x2f32e3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2905cc,_0x3ec707,_0x39ab28)||(_0x38fd89=!0x1);}}function _0x49ea0c(_0x375fe0){return _0x375fe0[_0x2f32e3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f32e3([0x65,0x79]))?JSON[_0x2f32e3([0x70,0x61,0x72,0x73,0x65])](_0x3481f5(_0x375fe0)):null;}function _0x3481f5(_0x15b41e){return window[_0x2f32e3([0x61,0x74,0x6f,0x62])](_0x15b41e[_0x2f32e3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f32e3([0x2b]))[_0x2f32e3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f32e3([0x2f])));}function _0x3f9de4(_0x54fbcd){let _0xd81fe7=0x1505;function _0x498e96(_0x248614){for(let _0x30603c=0x0;_0x30603c<_0x248614[_0x2f32e3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30603c++){const _0x5e7842=_0x248614[_0x2f32e3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x30603c);_0xd81fe7=(_0xd81fe7<<0x5)+_0xd81fe7+_0x5e7842,_0xd81fe7&=_0xd81fe7;}}function _0x6d2228(_0x450f1c){Array[_0x2f32e3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x450f1c)?_0x450f1c[_0x2f32e3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x6d2228):_0x450f1c&&typeof _0x450f1c==_0x2f32e3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f32e3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x450f1c)[_0x2f32e3([0x73,0x6f,0x72,0x74])]()[_0x2f32e3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x35d7fc,_0x344bc0])=>{_0x498e96(_0x35d7fc),_0x6d2228(_0x344bc0);}):_0x498e96(window[_0x2f32e3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x450f1c));}return _0x6d2228(_0x54fbcd),_0xd81fe7>>>0x0;}function _0x294e7d(_0x3786c8){return _0x3786c8[_0x2f32e3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f32e3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f32e3([0x30]));}function _0x114439(_0xbf4d03){return _0xbf4d03[_0x2f32e3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f32e3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f32e3([0x6a,0x6f,0x69,0x6e])]('');}function _0x53a811(){}function _0x2f32e3(_0x218522){const _0x2313be=_0x54f2;return _0x218522[_0x2313be(0x1e8)](_0x2d2681=>String[_0x2313be(0x228)](_0x2d2681))[_0x2313be(0x212)]('');}_0x3e9776(await _0x34c246());}(this);}[_0x42a7ba(0x232)](){const _0x3300ad=_0x42a7ba,_0x5e61ff=this[_0x3300ad(0x1ed)][_0x3300ad(0x1f8)][_0x3300ad(0x1f2)];_0x5e61ff[_0x3300ad(0x1e5)](_0x3300ad(0x211))&&_0x5e61ff[_0x3300ad(0x1e3)](_0x3300ad(0x211),{'allowAttributes':[_0x3300ad(0x220)]}),_0x5e61ff[_0x3300ad(0x1e5)](_0x3300ad(0x1e7))&&_0x5e61ff[_0x3300ad(0x1e3)](_0x3300ad(0x1e7),{'allowAttributes':[_0x3300ad(0x220)]});}[_0x42a7ba(0x1fa)](){const _0x303b07=_0x42a7ba,_0x54c0d9=this[_0x303b07(0x1ed)];_0x54c0d9[_0x303b07(0x1f1)][_0x303b07(0x230)](_0x303b07(0x1eb))[_0x303b07(0x20f)]({'model':_0x303b07(0x220),'view':_0x303b07(0x202)}),_0x54c0d9[_0x303b07(0x1f1)][_0x303b07(0x230)](_0x303b07(0x22e))[_0x303b07(0x20d)]({'model':{'key':_0x303b07(0x220),'value':_0x28eae6=>_0x28eae6[_0x303b07(0x21b)](_0x303b07(0x202))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x59af56=_0x54c0d9[_0x303b07(0x1ee)][_0x303b07(0x216)](_0x303b07(0x1f7));_0x59af56&&this[_0x303b07(0x1fb)](_0x59af56,_0x303b07(0x225),(_0x7f5ec6,[_0x4af58d,_0x2aac80])=>{const _0x41b56c=_0x303b07;_0x4af58d[_0x41b56c(0x20c)](_0x41b56c(0x220),_0x2aac80);});}[_0x42a7ba(0x1ec)](){const _0x2e882b=_0x42a7ba,_0x1b8cf5=this[_0x2e882b(0x1ed)][_0x2e882b(0x1ea)][_0x2e882b(0x216)](_0x2e882b(0x226))||{},_0x505d9d=this[_0x2e882b(0x1ed)][_0x2e882b(0x1ea)][_0x2e882b(0x216)](_0x2e882b(0x217))||'';this[_0x2e882b(0x1f6)]=_0x532829(_0x1a68e8[_0x2e882b(0x207)],_0x2e882b(0x1ff),{..._0x1b8cf5,'pubkey':_0x505d9d,'ctx-name':_0x2e882b(0x1f9)+this[_0x2e882b(0x208)],'sourceList':'','imgOnly':_0x2e882b(0x1f5),'removeCopyright':_0x2e882b(0x1f5),'localeName':this[_0x2e882b(0x1ed)][_0x2e882b(0x206)][_0x2e882b(0x224)],'externalSourcesEmbedCss':_0x2e882b(0x215)}),this[_0x2e882b(0x1f6)][_0x2e882b(0x22d)]=_0x36a2f9=>{const _0x44f3e2=_0x2e882b;if(_0x44f3e2(0x229)==_0x36a2f9)return _0x44f3e2(0x234);},_0x1a68e8[_0x2e882b(0x207)][_0x2e882b(0x1e4)][_0x2e882b(0x219)](this[_0x2e882b(0x1f6)]);}[_0x42a7ba(0x200)](){const _0x4efd00=_0x42a7ba;this[_0x4efd00(0x1ef)]=_0x532829(_0x1a68e8[_0x4efd00(0x207)],_0x4efd00(0x22f),{'ctx-name':_0x4efd00(0x1f9)+this[_0x4efd00(0x208)]}),_0x1a68e8[_0x4efd00(0x207)][_0x4efd00(0x1e4)][_0x4efd00(0x219)](this[_0x4efd00(0x1ef)]);}[_0x42a7ba(0x223)](){const _0x39a2ff=_0x42a7ba,_0x213e83=this[_0x39a2ff(0x1ed)][_0x39a2ff(0x1ee)][_0x39a2ff(0x216)](_0x39a2ff(0x236));_0x213e83&&this[_0x39a2ff(0x1fb)](_0x213e83,_0x39a2ff(0x1fd),()=>{const _0x518253=_0x39a2ff,_0x3640c8=this[_0x518253(0x1ed)][_0x518253(0x1f8)][_0x518253(0x207)][_0x518253(0x1fc)][_0x518253(0x21d)]();_0x3640c8&&_0x3640c8[_0x518253(0x21b)](_0x518253(0x220))&&this[_0x518253(0x1ed)][_0x518253(0x1fe)][_0x518253(0x1e6)][_0x518253(0x1f4)](_0x518253(0x1f3),()=>{const _0x1ea705=_0x518253;_0x4dd0d7(this[_0x1ea705(0x1ed)],_0x3640c8);});});const _0x63d3e3=this[_0x39a2ff(0x1ed)][_0x39a2ff(0x1ee)][_0x39a2ff(0x216)](_0x39a2ff(0x20b));_0x63d3e3&&this[_0x39a2ff(0x1fb)](_0x63d3e3,_0x39a2ff(0x1fd),()=>{const _0x4f7005=_0x39a2ff,_0x5588f2=this[_0x4f7005(0x1ed)][_0x4f7005(0x1f8)][_0x4f7005(0x207)][_0x4f7005(0x1fc)][_0x4f7005(0x21d)]();_0x5588f2&&_0x5588f2[_0x4f7005(0x21b)](_0x4f7005(0x220))&&this[_0x4f7005(0x1ed)][_0x4f7005(0x1fe)][_0x4f7005(0x1e6)][_0x4f7005(0x1f4)](_0x4f7005(0x1f3),()=>{const _0x54cd7f=_0x4f7005;_0x4dd0d7(this[_0x54cd7f(0x1ed)],_0x5588f2);});});}}function _0x1d8a(){const _0x522478=['downcast','_initConfig','editor','commands','_ctxElement','273080LiTxQa','conversion','schema','render','once','true','_configElement','replaceImageSource','model','uploader-','_initConversion','listenTo','selection','execute','editing','uc-config','_initCtx','7149393ohQjCM','data-uc-image-id','isOfficialPlugin','input[uploadcare-file-input]','isPremiumPlugin','locale','document','ucContextId','href','4759185TFNsWe','uploadcareImageReplace','removeAttribute','elementToAttribute','init','attributeToAttribute','querySelector','imageBlock','join','410415cFSYVn','pluginName','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','get','uploadcare.pubkey','afterInit','appendChild','requires','getAttribute','PictureEditing','getSelectedElement','2342956JMcGGw','UploadcareEditing','uploadcareImageId','add','6YPANZB','_initImageProcessingIndicator','contentLanguage','cleanupImage','uploadcare.uploader','4320600tyvJUn','fromCharCode','closeMax','28TieRVw','uploadcare','destroy','iconHrefResolver','upcast','uc-upload-ctx-provider','for','remove','_initSchema','configElement','#uc-icon-arrow-down','ctxElement','insertImage','extend','body','isRegistered','view','imageInline','map','906320kjiaqk','config'];_0x1d8a=function(){return _0x522478;};return _0x1d8a();}
23
+ function _0x3f70(){const _0x170c43=['pluginName','downcast','getAttribute','join','imageBlock','iconHrefResolver','listenTo','schema','fromCharCode','for','getSelectedElement','afterInit','296958cHKswc','map','querySelector','95638mvOJZT','closeMax','imageInline','_initConversion','#uc-icon-arrow-down','784880IysXJM','editor','isOfficialPlugin','uploadcare','once','6TCNUBh','removeAttribute','document','init','uploadcare.pubkey','uploadcareImageId','view','render','add','remove','uploadcare.uploader','data-uc-image-id','uploader-','configElement','replaceImageSource','97184PPjuJw','_initConfig','attributeToAttribute','isPremiumPlugin','PictureEditing','body','input[uploadcare-file-input]','editing','_configElement','true','_ctxElement','uc-config','commands','_initCtx','config','href','7vNjwPv','extend','cleanupImage','\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','execute','uc-upload-ctx-provider','ctxElement','455802STYsca','elementToAttribute','locale','conversion','UploadcareEditing','uploadcareImageReplace','isRegistered','get','ucContextId','appendChild','879055VZmAhb','destroy','_initSchema','selection','45VCCKaW','requires','model','upcast','insertImage','contentLanguage','1394456oQTYaE','_initImageProcessingIndicator'];_0x3f70=function(){return _0x170c43;};return _0x3f70();}function _0x1eee(_0x413d41,_0x2db8f3){const _0x3f709d=_0x3f70();return _0x1eee=function(_0x1eee35,_0x272757){_0x1eee35=_0x1eee35-0xc1;let _0x28dbd0=_0x3f709d[_0x1eee35];return _0x28dbd0;},_0x1eee(_0x413d41,_0x2db8f3);}const _0x4bbcaf=_0x1eee;(function(_0x3e31bc,_0x3bdddf){const _0x4bb48f=_0x1eee,_0x4967a8=_0x3e31bc();while(!![]){try{const _0x236aab=parseInt(_0x4bb48f(0xfe))/0x1+parseInt(_0x4bb48f(0xd9))/0x2+parseInt(_0x4bb48f(0xfb))/0x3+parseInt(_0x4bb48f(0xed))/0x4+-parseInt(_0x4bb48f(0xe3))/0x5*(parseInt(_0x4bb48f(0x108))/0x6)+-parseInt(_0x4bb48f(0xd2))/0x7*(-parseInt(_0x4bb48f(0xc2))/0x8)+parseInt(_0x4bb48f(0xe7))/0x9*(-parseInt(_0x4bb48f(0x103))/0xa);if(_0x236aab===_0x3bdddf)break;else _0x4967a8['push'](_0x4967a8['shift']());}catch(_0x2ae649){_0x4967a8['push'](_0x4967a8['shift']());}}}(_0x3f70,0x347fc));import{Plugin as _0x377199}from'ckeditor5/src/core.js';import{Dialog as _0x1907ba}from'ckeditor5/src/ui.js';import{createElement as _0xb1aef5,global as _0x445491,uid as _0x1ebf50}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x4585f6}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x10b86d}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x112dd4}from'./utils/editingutils.js';export class UploadcareEditing extends _0x377199{[_0x4bbcaf(0xca)]=null;[_0x4bbcaf(0xcc)]=null;static get[_0x4bbcaf(0xef)](){const _0x152009=_0x4bbcaf;return _0x152009(0xdd);}static get[_0x4bbcaf(0xe8)](){const _0x519666=_0x4bbcaf;return[_0x519666(0xc6),_0x10b86d,_0x1907ba];}static get[_0x4bbcaf(0x105)](){return!0x0;}static get[_0x4bbcaf(0xc5)](){return!0x0;}[_0x4bbcaf(0xe1)];get[_0x4bbcaf(0x115)](){const _0x33cecd=_0x4bbcaf;return this[_0x33cecd(0xca)];}get[_0x4bbcaf(0xd8)](){const _0x6e72e0=_0x4bbcaf;return this[_0x6e72e0(0xcc)];}constructor(_0x5bc420){const _0x459300=_0x4bbcaf;super(_0x5bc420),this[_0x459300(0xe1)]=_0x1ebf50();}[_0x4bbcaf(0x10b)](){const _0x270a99=_0x4bbcaf,_0x2ad05c=this[_0x270a99(0x104)];_0x2ad05c[_0x270a99(0xce)][_0x270a99(0x110)](_0x270a99(0x106),new _0x4585f6(_0x2ad05c));}[_0x4bbcaf(0xfa)](){const _0x3c6c13=_0x4bbcaf;this[_0x3c6c13(0xe5)](),this[_0x3c6c13(0x101)](),this[_0x3c6c13(0xc3)](),this[_0x3c6c13(0xcf)](),this[_0x3c6c13(0xee)](),this[_0x3c6c13(0xf5)](this[_0x3c6c13(0x104)],_0x3c6c13(0xe4),()=>{const _0x1f4ac8=_0x3c6c13;this[_0x1f4ac8(0xca)]&&(this[_0x1f4ac8(0xca)][_0x1f4ac8(0x111)](),this[_0x1f4ac8(0xca)]=null),this[_0x1f4ac8(0xcc)]&&(this[_0x1f4ac8(0xcc)][_0x1f4ac8(0x111)](),this[_0x1f4ac8(0xcc)]=null);const _0x12c375=_0x445491[_0x1f4ac8(0x10a)][_0x1f4ac8(0xfd)](_0x1f4ac8(0xc8));_0x12c375&&_0x12c375[_0x1f4ac8(0x111)]();}),async function(_0x65a9ae){const _0x563ab3=_0x3836ee([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0xeecb8=0x535f8c3a,_0x2ff358=0x5358f432^_0xeecb8,_0xde67a3=window[_0x3836ee([0x44,0x61,0x74,0x65])][_0x3836ee([0x6e,0x6f,0x77])](),_0x365b7e=_0x65a9ae[_0x3836ee([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf74e30=new window[(_0x3836ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x310b47=>{_0x365b7e[_0x3836ee([0x6f,0x6e,0x63,0x65])](_0x3836ee([0x72,0x65,0x61,0x64,0x79]),_0x310b47);}),_0x52abcb={[_0x3836ee([0x6b,0x74,0x79])]:_0x3836ee([0x45,0x43]),[_0x3836ee([0x75,0x73,0x65])]:_0x3836ee([0x73,0x69,0x67]),[_0x3836ee([0x63,0x72,0x76])]:_0x3836ee([0x50,0x2d,0x32,0x35,0x36]),[_0x3836ee([0x78])]:_0x3836ee([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]),[_0x3836ee([0x79])]:_0x3836ee([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]),[_0x3836ee([0x61,0x6c,0x67])]:_0x3836ee([0x45,0x53,0x32,0x35,0x36])},_0x2fc9ea=_0x365b7e[_0x3836ee([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3836ee([0x67,0x65,0x74])](_0x3836ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40976e(){let _0x3d0e38,_0xf8043e=null,_0x5d844f=null;try{if(_0x2fc9ea==_0x3836ee([0x47,0x50,0x4c]))return _0x3836ee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3d0e38=_0x1fe968(),!_0x3d0e38)return _0x3836ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3d0e38[_0x3836ee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5d844f=_0x2862fb(_0x3d0e38[_0x3836ee([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3d0e38[_0x3836ee([0x6a,0x74,0x69])])),await _0x40ce74()?_0x251ff9()?_0x2f5075()?_0x3836ee([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x44a3de()?(_0x3d0e38[_0x3836ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3836ee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xf8043e=_0x34cd57(_0x3836ee([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3d0e38[_0x3836ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3836ee([0x74,0x72,0x69,0x61,0x6c])&&(_0xf8043e=_0x34cd57(_0x3836ee([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x42edb7()):_0x3836ee([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3836ee([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3836ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3836ee([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f5075(){const _0x2be7b5=[_0x3836ee([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3836ee([0x74,0x72,0x69,0x61,0x6c])][_0x3836ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0e38[_0x3836ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xde67a3/0x3e8:0xe10*_0x2ff358;return _0x3d0e38[_0x3836ee([0x65,0x78,0x70])]<_0x2be7b5;}function _0x251ff9(){const _0x55e078=_0x3d0e38[_0x3836ee([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x55e078&&(!!_0x55e078[_0x3836ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3836ee([0x2a]))||!!_0x55e078[_0x3836ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3836ee([0x55,0x50,0x4c,0x43])));}function _0x44a3de(){const _0x427175=_0x1eee,_0x230f3e=_0x3d0e38[_0x3836ee([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x230f3e||0x0==_0x230f3e[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd7c759}=new URL(window[_0x3836ee([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x427175(0xd1)]);if(_0x230f3e[_0x3836ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd7c759))return!0x0;const _0x568591=_0xd7c759[_0x3836ee([0x73,0x70,0x6c,0x69,0x74])](_0x3836ee([0x2e]));return _0x230f3e[_0x3836ee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57fc00=>_0x57fc00[_0x3836ee([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3836ee([0x2a])))[_0x3836ee([0x6d,0x61,0x70])](_0x9920dc=>_0x9920dc[_0x3836ee([0x73,0x70,0x6c,0x69,0x74])](_0x3836ee([0x2e])))[_0x3836ee([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1aad24=>_0x1aad24[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x568591[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3836ee([0x6d,0x61,0x70])](_0x4b2a62=>Array(_0x568591[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4b2a62[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3836ee([0x66,0x69,0x6c,0x6c])](_0x4b2a62[0x0]===_0x3836ee([0x2a])?_0x3836ee([0x2a]):'')[_0x3836ee([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4b2a62))[_0x3836ee([0x73,0x6f,0x6d,0x65])](_0x3e4279=>_0x568591[_0x3836ee([0x65,0x76,0x65,0x72,0x79])]((_0x196453,_0x5aa329)=>_0x3e4279[_0x5aa329]===_0x196453||_0x3e4279[_0x5aa329]===_0x3836ee([0x2a])));}function _0x42edb7(){return _0xf8043e&&_0x5d844f?new window[(_0x3836ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x195748,_0x19b55c)=>{_0xf8043e[_0x3836ee([0x74,0x68,0x65,0x6e])](_0x195748,_0x19b55c),_0x5d844f[_0x3836ee([0x74,0x68,0x65,0x6e])](_0x24dca7=>{_0x24dca7!=_0x3836ee([0x56,0x61,0x6c,0x69,0x64])&&_0x195748(_0x24dca7);},_0x19b55c);}):_0xf8043e||_0x5d844f||_0x3836ee([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2862fb(_0x1ab611,_0xfe5017){return new window[(_0x3836ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c210e=>{if(_0x5abc04())return _0x5c210e(_0x3836ee([0x56,0x61,0x6c,0x69,0x64]));_0x35c915(),_0x365b7e[_0x3836ee([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3836ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27bde4=!0x1;const _0x2b633d=_0x1ebf50();function _0x2dab34(_0xf54d25){return!!_0xf54d25&&(typeof _0xf54d25===_0x3836ee([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xf54d25===_0x3836ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xf54d25[_0x3836ee([0x74,0x68,0x65,0x6e])]===_0x3836ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xf54d25[_0x3836ee([0x63,0x61,0x74,0x63,0x68])]===_0x3836ee([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3a9d5a(_0x1ca11b){_0x3b9d8c(_0x1ca11b)[_0x3836ee([0x74,0x68,0x65,0x6e])](_0x32e9bc=>{if(!_0x32e9bc||_0x32e9bc[_0x3836ee([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3836ee([0x6f,0x6b]))return _0x3836ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x567df2(_0x4dc0ee(_0x2b633d+_0xfe5017))!=_0x32e9bc[_0x3836ee([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3836ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3836ee([0x56,0x61,0x6c,0x69,0x64]);})[_0x3836ee([0x74,0x68,0x65,0x6e])](_0x61754b=>(_0x2d3f6f(),_0x61754b),()=>{const _0x48bf95=_0x2052c5();return null==_0x48bf95?(_0x2d3f6f(),_0x3836ee([0x56,0x61,0x6c,0x69,0x64])):_0x3836ee(_0xde67a3-_0x48bf95>(0x7753083a^_0xeecb8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3836ee([0x74,0x68,0x65,0x6e])](_0x5c210e)[_0x3836ee([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c210e(_0x3836ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x387e59=0x536962ba^_0xeecb8;function _0x2d3f6f(){const _0x2ca9b2=_0x3836ee([0x6c,0x6c,0x63,0x74,0x2d])+_0x567df2(_0x4dc0ee(_0x1ab611)),_0x1c5a33=_0x3b9718(_0x567df2(window[_0x3836ee([0x4d,0x61,0x74,0x68])][_0x3836ee([0x63,0x65,0x69,0x6c])](_0xde67a3/_0x387e59)));window[_0x3836ee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3836ee([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ca9b2,_0x1c5a33);}function _0x2052c5(){const _0x2904e1=_0x3836ee([0x6c,0x6c,0x63,0x74,0x2d])+_0x567df2(_0x4dc0ee(_0x1ab611)),_0x5134bd=window[_0x3836ee([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3836ee([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2904e1);return _0x5134bd?window[_0x3836ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b9718(_0x5134bd),0x10)*_0x387e59:null;}function _0x3b9d8c(_0x28544f){return new window[(_0x3836ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x20e7af,_0x262f21)=>{_0x28544f[_0x3836ee([0x74,0x68,0x65,0x6e])](_0x20e7af,_0x262f21),window[_0x3836ee([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x262f21,0x535e58fa^_0xeecb8);});}}_0x365b7e[_0x3836ee([0x6f,0x6e])](_0x3836ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3c7bae,_0x5016a9)=>{if(_0x5016a9[0x0]!=_0x1ab611)return _0x5c210e(_0x3836ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5016a9[0x1]={..._0x5016a9[0x1],[_0x3836ee([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b633d};},{[_0x3836ee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3836ee([0x68,0x69,0x67,0x68])}),_0x365b7e[_0x3836ee([0x6f,0x6e])](_0x3836ee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b9470=>{_0x2dab34(_0x3b9470[_0x3836ee([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27bde4=!0x0,_0x3a9d5a(_0x3b9470[_0x3836ee([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3836ee([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3836ee([0x6c,0x6f,0x77])}),_0xf74e30[_0x3836ee([0x74,0x68,0x65,0x6e])](()=>{_0x27bde4||_0x5c210e(_0x3836ee([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5abc04(){return _0x365b7e[_0x3836ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3836ee([0x76,0x69,0x65,0x77])][_0x3836ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3836ee([0x61,0x75,0x74,0x6f]);}function _0x35c915(){_0x365b7e[_0x3836ee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3836ee([0x76,0x69,0x65,0x77])][_0x3836ee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3836ee([0x61,0x75,0x74,0x6f]);}}function _0x34cd57(_0x547f65){const _0x578edb=[new window[(_0x3836ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46ba41=>setTimeout(_0x46ba41,0x5356b2f6^_0xeecb8)),_0xf74e30[_0x3836ee([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3836ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x64ad73=>{let _0x432aa8=0x0;_0x365b7e[_0x3836ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x3836ee([0x6f,0x6e])](_0x3836ee([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x8bd336,_0x29461e)=>{_0x29461e[0x0][_0x3836ee([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x432aa8++,_0x432aa8==(0x535f8dc2^_0xeecb8)&&(_0x64ad73(),_0x8bd336[_0x3836ee([0x6f,0x66,0x66])]());});}))];return window[_0x3836ee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3836ee([0x72,0x61,0x63,0x65])](_0x578edb)[_0x3836ee([0x74,0x68,0x65,0x6e])](()=>_0x547f65);}async function _0xa7059c(){await _0xf74e30,_0x365b7e[_0x3836ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x3836ee([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2255da,_0x365b7e[_0x3836ee([0x6d,0x6f,0x64,0x65,0x6c])][_0x3836ee([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2255da,_0x365b7e[_0x3836ee([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3836ee([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x23bd50(_0x40df62){const _0x34cd72=_0x226774();_0x365b7e[_0x34cd72]=_0x3836ee([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x40df62,_0x40df62!=_0x3836ee([0x56,0x61,0x6c,0x69,0x64])&&_0xa7059c();}function _0x226774(){const _0x3446cb=window[_0x3836ee([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3836ee([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3836ee([0x6e,0x6f,0x77])]())[_0x3836ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3836ee([0x2e]),'');let _0x1ea8eb=_0x3836ee([0x68]);for(let _0x5291ba=0x0;_0x5291ba<_0x3446cb[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5291ba+=0x2){let _0x4361b0=window[_0x3836ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3446cb[_0x3836ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5291ba,_0x5291ba+0x2));_0x4361b0>=_0x563ab3[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4361b0-=_0x563ab3[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ea8eb+=_0x563ab3[_0x4361b0];}return _0x1ea8eb;}function _0x1fe968(){const _0x14de16=_0x2fc9ea[_0x3836ee([0x73,0x70,0x6c,0x69,0x74])](_0x3836ee([0x2e]));if(0x3!=_0x14de16[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4eea20(_0x14de16[0x1]);function _0x4eea20(_0x38b4b8){const _0x197793=_0xfa4e05(_0x38b4b8);return _0x197793&&_0x238ec7()?_0x197793:null;function _0x238ec7(){const _0x270ac3=_0x197793[_0x3836ee([0x6a,0x74,0x69])],_0x207eba=window[_0x3836ee([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x270ac3[_0x3836ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x270ac3[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21a6d2={..._0x197793,[_0x3836ee([0x6a,0x74,0x69])]:_0x270ac3[_0x3836ee([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x270ac3[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21a6d2[_0x3836ee([0x76,0x63])],_0x4dc0ee(_0x21a6d2)==_0x207eba;}}}async function _0x40ce74(){let _0x419bd3=!0x0;try{const _0x4cb73b=_0x2fc9ea[_0x3836ee([0x73,0x70,0x6c,0x69,0x74])](_0x3836ee([0x2e])),[_0x341f32,_0x3d8246,_0x1100e2]=_0x4cb73b;return _0x410c09(_0x341f32),await _0x4badb5(_0x341f32,_0x3d8246,_0x1100e2),_0x419bd3;}catch{return!0x1;}function _0x410c09(_0x318ae1){const _0x1b3906=_0xfa4e05(_0x318ae1);_0x1b3906&&_0x1b3906[_0x3836ee([0x61,0x6c,0x67])]==_0x3836ee([0x45,0x53,0x32,0x35,0x36])||(_0x419bd3=!0x1);}async function _0x4badb5(_0x13dc82,_0x1b0d16,_0x24ff2b){const _0x1ca23a=window[_0x3836ee([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3836ee([0x66,0x72,0x6f,0x6d])](_0x5d2fa2(_0x24ff2b),_0x260299=>_0x260299[_0x3836ee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x975c21=new window[(_0x3836ee([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3836ee([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x13dc82+_0x3836ee([0x2e])+_0x1b0d16),_0x3feea9=window[_0x3836ee([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3836ee([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3feea9)return;const _0x558391=await _0x3feea9[_0x3836ee([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3836ee([0x6a,0x77,0x6b]),_0x52abcb,{[_0x3836ee([0x6e,0x61,0x6d,0x65])]:_0x3836ee([0x45,0x43,0x44,0x53,0x41]),[_0x3836ee([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3836ee([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3836ee([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3feea9[_0x3836ee([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3836ee([0x6e,0x61,0x6d,0x65])]:_0x3836ee([0x45,0x43,0x44,0x53,0x41]),[_0x3836ee([0x68,0x61,0x73,0x68])]:{[_0x3836ee([0x6e,0x61,0x6d,0x65])]:_0x3836ee([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x558391,_0x1ca23a,_0x975c21)||(_0x419bd3=!0x1);}}function _0xfa4e05(_0x291ab2){return _0x291ab2[_0x3836ee([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3836ee([0x65,0x79]))?JSON[_0x3836ee([0x70,0x61,0x72,0x73,0x65])](_0x5d2fa2(_0x291ab2)):null;}function _0x5d2fa2(_0x5c548f){return window[_0x3836ee([0x61,0x74,0x6f,0x62])](_0x5c548f[_0x3836ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3836ee([0x2b]))[_0x3836ee([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3836ee([0x2f])));}function _0x4dc0ee(_0x5f3602){let _0xc6f1f8=0x1505;function _0x10f05a(_0x46d41f){for(let _0x47f2b4=0x0;_0x47f2b4<_0x46d41f[_0x3836ee([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47f2b4++){const _0x37aedc=_0x46d41f[_0x3836ee([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x47f2b4);_0xc6f1f8=(_0xc6f1f8<<0x5)+_0xc6f1f8+_0x37aedc,_0xc6f1f8&=_0xc6f1f8;}}function _0x50f77a(_0x3efc31){Array[_0x3836ee([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3efc31)?_0x3efc31[_0x3836ee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50f77a):_0x3efc31&&typeof _0x3efc31==_0x3836ee([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3836ee([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3efc31)[_0x3836ee([0x73,0x6f,0x72,0x74])]()[_0x3836ee([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x39afc7,_0x2c027d])=>{_0x10f05a(_0x39afc7),_0x50f77a(_0x2c027d);}):_0x10f05a(window[_0x3836ee([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3efc31));}return _0x50f77a(_0x5f3602),_0xc6f1f8>>>0x0;}function _0x567df2(_0x2f94f4){return _0x2f94f4[_0x3836ee([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3836ee([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3836ee([0x30]));}function _0x3b9718(_0x552eac){return _0x552eac[_0x3836ee([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3836ee([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3836ee([0x6a,0x6f,0x69,0x6e])]('');}function _0x2255da(){}function _0x3836ee(_0xb33022){const _0x71a993=_0x1eee;return _0xb33022[_0x71a993(0xfc)](_0x2818d4=>String[_0x71a993(0xf7)](_0x2818d4))[_0x71a993(0xf2)]('');}_0x23bd50(await _0x40976e());}(this);}[_0x4bbcaf(0xe5)](){const _0x598260=_0x4bbcaf,_0x1901f9=this[_0x598260(0x104)][_0x598260(0xe9)][_0x598260(0xf6)];_0x1901f9[_0x598260(0xdf)](_0x598260(0xf3))&&_0x1901f9[_0x598260(0xd3)](_0x598260(0xf3),{'allowAttributes':[_0x598260(0x10d)]}),_0x1901f9[_0x598260(0xdf)](_0x598260(0x100))&&_0x1901f9[_0x598260(0xd3)](_0x598260(0x100),{'allowAttributes':[_0x598260(0x10d)]});}[_0x4bbcaf(0x101)](){const _0x4ec36f=_0x4bbcaf,_0x4ed972=this[_0x4ec36f(0x104)];_0x4ed972[_0x4ec36f(0xdc)][_0x4ec36f(0xf8)](_0x4ec36f(0xf0))[_0x4ec36f(0xc4)]({'model':_0x4ec36f(0x10d),'view':_0x4ec36f(0x113)}),_0x4ed972[_0x4ec36f(0xdc)][_0x4ec36f(0xf8)](_0x4ec36f(0xea))[_0x4ec36f(0xda)]({'model':{'key':_0x4ec36f(0x10d),'value':_0x408b9a=>_0x408b9a[_0x4ec36f(0xf1)](_0x4ec36f(0x113))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x112f9c=_0x4ed972[_0x4ec36f(0xce)][_0x4ec36f(0xe0)](_0x4ec36f(0xc1));_0x112f9c&&this[_0x4ec36f(0xf5)](_0x112f9c,_0x4ec36f(0xd4),(_0x4978b9,[_0x362321,_0xea3167])=>{const _0xdfe24d=_0x4ec36f;_0x362321[_0xdfe24d(0x109)](_0xdfe24d(0x10d),_0xea3167);});}[_0x4bbcaf(0xc3)](){const _0x43dd03=_0x4bbcaf,_0x60d4b7=this[_0x43dd03(0x104)][_0x43dd03(0xd0)][_0x43dd03(0xe0)](_0x43dd03(0x112))||{},_0xe81843=this[_0x43dd03(0x104)][_0x43dd03(0xd0)][_0x43dd03(0xe0)](_0x43dd03(0x10c))||'';this[_0x43dd03(0xca)]=_0xb1aef5(_0x445491[_0x43dd03(0x10a)],_0x43dd03(0xcd),{..._0x60d4b7,'pubkey':_0xe81843,'ctx-name':_0x43dd03(0x114)+this[_0x43dd03(0xe1)],'sourceList':'','imgOnly':_0x43dd03(0xcb),'removeCopyright':_0x43dd03(0xcb),'localeName':this[_0x43dd03(0x104)][_0x43dd03(0xdb)][_0x43dd03(0xec)],'externalSourcesEmbedCss':_0x43dd03(0xd5)}),this[_0x43dd03(0xca)][_0x43dd03(0xf4)]=_0x51e350=>{const _0x5f4f68=_0x43dd03;if(_0x5f4f68(0xff)==_0x51e350)return _0x5f4f68(0x102);},_0x445491[_0x43dd03(0x10a)][_0x43dd03(0xc7)][_0x43dd03(0xe2)](this[_0x43dd03(0xca)]);}[_0x4bbcaf(0xcf)](){const _0x5ae468=_0x4bbcaf;this[_0x5ae468(0xcc)]=_0xb1aef5(_0x445491[_0x5ae468(0x10a)],_0x5ae468(0xd7),{'ctx-name':_0x5ae468(0x114)+this[_0x5ae468(0xe1)]}),_0x445491[_0x5ae468(0x10a)][_0x5ae468(0xc7)][_0x5ae468(0xe2)](this[_0x5ae468(0xcc)]);}[_0x4bbcaf(0xee)](){const _0x3ea963=_0x4bbcaf,_0x78fe4a=this[_0x3ea963(0x104)][_0x3ea963(0xce)][_0x3ea963(0xe0)](_0x3ea963(0xeb));_0x78fe4a&&this[_0x3ea963(0xf5)](_0x78fe4a,_0x3ea963(0xd6),()=>{const _0x192439=_0x3ea963,_0x188a47=this[_0x192439(0x104)][_0x192439(0xe9)][_0x192439(0x10a)][_0x192439(0xe6)][_0x192439(0xf9)]();_0x188a47&&_0x188a47[_0x192439(0xf1)](_0x192439(0x10d))&&this[_0x192439(0x104)][_0x192439(0xc9)][_0x192439(0x10e)][_0x192439(0x107)](_0x192439(0x10f),()=>{const _0x5ba2f7=_0x192439;_0x112dd4(this[_0x5ba2f7(0x104)],_0x188a47);});});const _0x1f7755=this[_0x3ea963(0x104)][_0x3ea963(0xce)][_0x3ea963(0xe0)](_0x3ea963(0xde));_0x1f7755&&this[_0x3ea963(0xf5)](_0x1f7755,_0x3ea963(0xd6),()=>{const _0x4874d4=_0x3ea963,_0x184ba2=this[_0x4874d4(0x104)][_0x4874d4(0xe9)][_0x4874d4(0x10a)][_0x4874d4(0xe6)][_0x4874d4(0xf9)]();_0x184ba2&&_0x184ba2[_0x4874d4(0xf1)](_0x4874d4(0x10d))&&this[_0x4874d4(0x104)][_0x4874d4(0xc9)][_0x4874d4(0x10e)][_0x4874d4(0x107)](_0x4874d4(0x10f),()=>{const _0x53b062=_0x4874d4;_0x112dd4(this[_0x53b062(0x104)],_0x184ba2);});});}}