@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.2 → 46.0.1-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x159a6f,Command as _0x4a1f6d}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x296fbf,IconGooglePhotos as _0x177afc,IconGoogleDrive as _0x1e7e52,IconFacebook as _0x41b6d4,IconDropbox as _0x3c2838,IconUploadcareLink as _0x542e4f,IconUploadcareImageUpload as _0x448711,IconError as _0xbf4ebb,IconUploadcareImageEdit as _0x3969c7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x21dd43,MenuBarMenuListItemButtonView as _0x1abad8,View as _0x1309d5,FocusCycler as _0x296213,Dialog as _0x22f3dd,DialogViewPosition as _0x13c2e0,SpinnerView as _0x4d86c5,IconView as _0x2606ed,Notification as _0x111d63}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x441fe2,DomEmitterMixin as _0x159fd1,global as _0x57c5a0,getAncestors as _0x394268,ObservableMixin as _0x24e88e,uid as _0x752ed6,createElement as _0x2f1033}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x34d2f7}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x333a3c,info as _0x53df1d}from'@uploadcare/upload-client';import*as _0x5e4132 from'@uploadcare/file-uploader';var i=function(_0x1599b7){return _0x1599b7['Local']='local',_0x1599b7['URL']='url',_0x1599b7['Dropbox']='dropbox',_0x1599b7['GDrive']='gdrive',_0x1599b7['Facebook']='facebook',_0x1599b7['GPhotos']='gphotos',_0x1599b7['OneDrive']='onedrive',_0x1599b7;}({});function _(_0x533ae1,_0x5aa713,_0x5b60af){const t=_0x533ae1['t'],_0x241c3c=_0x533ae1['t'];switch(_0x5aa713){case i['Local']:return{'text':_0x241c3c('Insert'===_0x5b60af?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x241c3c('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5b60af?_0x241c3c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x241c3c('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5b60af?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5b60af?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5b60af?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5b60af?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5b60af?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5aa713;}}class e extends _0x159a6f{['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 _0x8293c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b34ca;for(const _0x3a981e in _0x8293c){const _0x525c62=_0x3a981e,_0x2513c3=_0x8293c[_0x525c62];if('uploadcareLicenseKeyValid'==_0x2513c3||'uploadcareLicenseKeyInvalid'==_0x2513c3||'uploadcareLicenseKeyExpired'==_0x2513c3||'uploadcareLicenseKeyDomainLimit'==_0x2513c3||'uploadcareLicenseKeyNotAllowed'==_0x2513c3||'uploadcareLicenseKeyEvaluationLimit'==_0x2513c3||'uploadcareLicenseKeyTrialLimit'==_0x2513c3||'uploadcareLicenseKeyUsageLimit'==_0x2513c3){delete _0x8293c[_0x525c62],_0x1b34ca=_0x2513c3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1b34ca&&_0x8293c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1b34ca&&_0x8293c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1b34ca&&_0x8293c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1b34ca&&_0x8293c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1b34ca&&_0x8293c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x1b34ca&&_0x8293c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1b34ca&&_0x8293c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4bb7a6}=this,_0x30b023=_0x4bb7a6['commands']['get']('uploadcare');if(!_0x30b023)return;const _0x401a2e=this['_normalizeConfigSourceList'](_0x4bb7a6['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x85ec68,_0x109ce5)=>{const _0x28f65d=this['_getIntegrationKey'](_0x109ce5['type']);return _0x85ec68[_0x28f65d]||(_0x85ec68[_0x28f65d]=[]),_0x85ec68[_0x28f65d]['push'](_0x109ce5),_0x85ec68;},{});_0x4bb7a6['plugins']['has']('ImageInsertUI')&&_0x4bb7a6['commands']['get']('uploadcare')&&Object['entries'](_0x401a2e)['forEach'](([_0x1eedc5,_0x2a5562])=>{_0x4bb7a6['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1eedc5,'observable':()=>_0x30b023,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2a5562),'formViewCreator':()=>this['_createDropdownButtons'](_0x2a5562),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2a5562),'override':'assetManager'!==_0x1eedc5});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x7d698a){const {locale:_0x1dfc80}=this['editor'];return _0x7d698a['map'](_0x18f745=>{const _0xab1022=_(_0x1dfc80,_0x18f745,'Insert');switch(_0x18f745){case i['Local']:return{'icon':_0x448711,'type':i['Local'],..._0xab1022};case i['URL']:return{'icon':_0x542e4f,'type':i['URL'],..._0xab1022};case i['Dropbox']:return{'icon':_0x3c2838,'type':i['Dropbox'],..._0xab1022};case i['Facebook']:return{'icon':_0x41b6d4,'type':i['Facebook'],..._0xab1022};case i['GDrive']:return{'icon':_0x1e7e52,'type':i['GDrive'],..._0xab1022};case i['GPhotos']:return{'icon':_0x177afc,'type':i['GPhotos'],..._0xab1022};case i['OneDrive']:return{'icon':_0x296fbf,'type':i['OneDrive'],..._0xab1022};}});}['_getIntegrationKey'](_0x18a7fc){switch(_0x18a7fc){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2c40c0,_0x531ae3){const _0x13952b=this['editor'],_0x241604=new _0x2c40c0(_0x13952b['locale']),_0x5404c4=_0x13952b['commands']['get']('uploadcare');return _0x241604['bind']('isEnabled')['to'](_0x5404c4),_0x241604['on']('execute',()=>{_0x5404c4['execute'](_0x531ae3);}),_0x241604;}['_createToolbarButton'](_0x29f178){const {locale:_0x37c2cb}=this['editor'],_0x3a43d=this['editor']['plugins']['get']('ImageInsertUI'),_0x1e1e80=_0x29f178[0x0],_0x51c9bc=this['_createButton'](_0x21dd43,_0x1e1e80['type']);return _0x51c9bc['icon']=_0x1e1e80['icon'],_0x51c9bc['bind']('label')['to'](_0x3a43d,'isImageSelected',_0x1f9b5d=>_(_0x37c2cb,_0x1e1e80['type'],_0x1f9b5d?'Replace':'Insert')['text']),_0x51c9bc['tooltip']=!0x0,_0x51c9bc;}['_createDropdownButtons'](_0x1d6e44){const {locale:_0x41aa76}=this['editor'],_0x35e356=this['editor']['plugins']['get']('ImageInsertUI');return _0x1d6e44['map'](_0x553730=>{const _0x3468cb=this['_createButton'](_0x21dd43,_0x553730['type']);return _0x3468cb['withText']=!0x0,_0x3468cb['icon']=_0x553730['icon'],_0x3468cb['bind']('label')['to'](_0x35e356,'isImageSelected',_0x284910=>_(_0x41aa76,_0x553730['type'],_0x284910?'Replace':'Insert')['text']),_0x3468cb;});}['_createMenuBarButtons'](_0x33de57){return _0x33de57['map'](_0x1208c9=>{const _0x5e9181=this['_createButton'](_0x1abad8,_0x1208c9['type']);return _0x5e9181['icon']=_0x1208c9['icon'],_0x5e9181['label']=_0x1208c9['shortText'],_0x5e9181;});}}class V extends _0x1309d5{['focusTracker'];['focusCycler'];constructor(_0xcab6c4){super(_0xcab6c4),this['focusTracker']=new _0x441fe2(),this['focusCycler']=new _0x296213({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends V{constructor(_0x3e6d86,_0x5e4ff6){super(_0x3e6d86),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-'+_0x5e4ff6}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x15bcba,_0x296ab8){const _0x31a101=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x582366=>_0x582366<=_0x296ab8)['map'](_0x5e0d93=>_0x15bcba['replace'](/\/$/,'')+'/-/resize/'+_0x5e0d93+'x/\x20'+_0x5e0d93+'w');return{'imageFallbackUrl':_0x15bcba,'imageSources':[{'srcset':_0x31a101['join'](',\x20'),'sizes':'(max-width:\x20'+_0x296ab8+'px)\x20100vw,\x20'+_0x296ab8+'px','type':'image/webp'}]};}function F(_0xc9256a,_0x1a81a9,_0x19cb6b){const _0x1804e4=_0xc9256a['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1804e4?parseInt(_0x1804e4[0x1],0xa):_0x1a81a9,'height':_0x1804e4?parseInt(_0x1804e4[0x2],0xa):_0x19cb6b};}function p(_0x5ed670,_0x348ce1){const _0x193d14=new(_0x159fd1())(),_0x43d17c=_0x5ed670['plugins']['get']('ImageUtils'),_0x59ae0c=_0x5ed670['editing']['mapper']['toViewElement'](_0x348ce1),_0xc926a7=_0x43d17c['findViewImgElement'](_0x59ae0c),_0x115da5=_0x5ed670['editing']['view']['domConverter']['viewToDom'](_0xc926a7),_0x310c02=_0x348ce1['getAttribute']('width'),_0x1b7d50=_0x348ce1['getAttribute']('height'),_0x4817d2='image-processing';_0x5ed670['editing']['view']['change'](_0x35cd1f=>{_0x35cd1f['addClass'](_0x4817d2,_0x59ae0c),_0x35cd1f['setStyle']('aspect-ratio',_0x310c02+'/'+_0x1b7d50,_0xc926a7);}),_0x193d14['listenTo'](_0x115da5,'load',()=>{_0x193d14['stopListening'](_0x115da5,'load'),_0x5ed670['editing']['view']['change'](_0x1f613a=>{_0x1f613a['removeClass'](_0x4817d2,_0x59ae0c),_0x1f613a['removeStyle']('aspect-ratio',_0xc926a7);});});}function R(_0xd05c05){if(Array['isArray'](_0xd05c05)){const _0x533982=_0xd05c05['map'](R);return _0x2177d4=>_0x533982['some'](_0x125934=>_0x125934(_0x2177d4));}if('origin'==_0xd05c05){const _0x4d5cf1=_0x57c5a0['window']['location']['origin'];return _0x2cc7c5=>new URL(_0x2cc7c5,_0x57c5a0['document']['baseURI'])['origin']==_0x4d5cf1;}return'function'==typeof _0xd05c05?_0xd05c05:_0xd05c05 instanceof RegExp?_0x469a32=>!(!_0x469a32['match'](_0xd05c05)&&!_0x469a32['replace'](/^https?:\/\//,'')['match'](_0xd05c05)):()=>!0x1;}function M(_0x5ea1c0,_0x45552b){return _0x394268(_0x5ea1c0['target'])['includes'](_0x45552b);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x24e88e(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x197762,_0x29a39c,_0x50e8d9){super(),this['_editor']=_0x197762,this['_editing']=_0x29a39c,this['_dialog']=_0x197762['plugins']['get'](_0x22f3dd),this['_api']=_0x29a39c['ctxElement']['getAPI'](),this['_type']=_0x50e8d9,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:_0x499c7a,model:_0x456dc9}=this['_editor'],_0x1244da=_0x456dc9['document']['selection']['getSelectedElement'](),_0x4e4379=_0x1244da&&(_0x1244da['is']('element','imageBlock')||_0x1244da['is']('element','imageInline'));this['_formView']=new S(_0x499c7a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x448711,'title':_(_0x499c7a,this['_type'],_0x4e4379?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x13c2e0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1c13d6=>!M(_0x1c13d6,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1202b2}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x154ca1=>{const _0x57ba0f=_0x1202b2['length'];for(const _0x352835 of _0x1202b2){const _0x4e94df=_0x352835===_0x1202b2[_0x57ba0f-0x1],{cdnUrl:_0x8b9140,fileInfo:_0x4371c3}=_0x352835;if(!_0x8b9140||!_0x4371c3)continue;const {width:_0x2379ce,height:_0x2761df}=_0x4371c3['imageInfo'],_0x4918d1=F(_0x8b9140,_0x2379ce,_0x2761df),_0x1d4950=k(_0x8b9140,_0x4918d1['width']),_0x12baab={'id':_0x4371c3['uuid'],'type':'image','attributes':{'imageDimension':_0x4918d1,..._0x1d4950}};this['_insertAsset'](_0x12baab,_0x4e94df,_0x154ca1);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x4b63ec=>{'idle'===_0x4b63ec['detail']['status']&&!_0x4b63ec['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x53d757,_0x5cd8ad,_0x46d68d){const _0x383a33=this['_editor']['model']['document']['selection'],_0x39bc12=_0x383a33['getSelectedElement'](),_0xa2134e=!(!_0x39bc12||!_0x39bc12['is']('element','imageInline'));_0x46d68d['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x53d757,_0xa2134e),_0x5cd8ad||_0x46d68d['setSelection'](_0x383a33['getLastPosition']());}['_insertImage'](_0x170a13,_0x3a4e9e){const _0x1eaba8=this['_editor'],{imageDimension:_0x3a7527,imageFallbackUrl:_0x1d118c,imageSources:_0x47d23d}=_0x170a13['attributes'];_0x1eaba8['execute']('insertImage',{'imageType':_0x3a4e9e?'imageInline':null,'source':{'uploadcareImageId':_0x170a13['id'],'src':_0x1d118c,'sources':_0x47d23d,..._0x3a7527}});}}class w extends _0x4a1f6d{['_editing'];['_controller']=null;static get['requires'](){return[_0x22f3dd,o];}constructor(_0x59d3c5){super(_0x59d3c5),this['_editing']=_0x59d3c5['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5b3067){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5b3067);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x494121,publicKey:_0x2763ab,signal:_0x1c716d,onProgress:_0x369f18}){return _0x333a3c(_0x494121,{'publicKey':_0x2763ab,'store':'auto','signal':_0x1c716d,'onProgress':_0x369f18});}static['getInfo'](_0x2cd608,_0xb4ddb){return _0x53df1d(_0x2cd608,_0xb4ddb);}}class f extends _0x159a6f{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x34d2f7,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1f1926=this['editor'];if(!!!_0x1f1926['config']['get']('uploadcare'))return;_0x1f1926['plugins']['get'](_0x34d2f7)['createUploadAdapter']=_0x17954f=>new A(_0x17954f,_0x1f1926),_0x1f1926['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x25664c,{imageElement:_0x5974cd,data:_0x4a7f88})=>{_0x1f1926['model']['change'](_0xa0e65d=>{_0xa0e65d['setAttribute']('uploadcareImageId',_0x4a7f88['uploadcareImageId'],_0x5974cd);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x1e8761,_0x4eb506){this['loader']=_0x1e8761,this['editor']=_0x4eb506,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4c2e37=this['editor']['config']['get']('uploadcare.pubkey'),_0x57d307=await this['loader']['file'];return j['upload']({'file':_0x57d307,'publicKey':_0x4c2e37,'signal':this['controller']['signal'],'onProgress':_0x5001e9=>{_0x5001e9&&_0x5001e9['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5001e9['value']);}})['then'](async _0x1758c2=>{const {imageFallbackUrl:_0x49b142,imageSources:_0x78ea03}=k(_0x1758c2['cdnUrl'],_0x1758c2['imageInfo']['width']);return{'uploadcareImageId':_0x1758c2['uuid'],'default':_0x49b142,'sources':_0x78ea03};})['catch'](()=>{const _0x1afdac=t('Cannot\x20upload\x20file:')+('\x20'+_0x57d307['name']+'.');return Promise['reject'](_0x1afdac);});}['abort'](){this['controller']['abort']();}}class o extends _0x159a6f{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x22f3dd];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x561655){super(_0x561655),this['ucContextId']=_0x752ed6();}['init'](){const _0x30421c=this['editor'];_0x30421c['commands']['add']('uploadcare',new w(_0x30421c));}['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 _0x4ce836=_0x57c5a0['document']['querySelector']('input[uploadcare-file-input]');_0x4ce836&&_0x4ce836['remove']();}),async function(_0x54914f){const _0x1eadb2=_0x9d5656([0x44,0x32,0x6e,0x45,0x75,0x78,0x71,0x74,0x66,0x37,0x53,0x4a,0x4b,0x58,0x59,0x61,0x54,0x6c,0x5a,0x56,0x46,0x6f,0x73,0x30,0x33,0x79,0x69,0x42,0x67,0x64,0x43,0x4e,0x41,0x35,0x68,0x39,0x76,0x57,0x65,0x63,0x4f,0x62,0x77,0x55,0x51,0x34,0x6d,0x31,0x49,0x7a,0x4d,0x6b,0x72,0x4c,0x47,0x36,0x52,0x48,0x50,0x6a,0x70,0x38]),_0x546fa0=0x2dea5ccc,_0xf79806=0x2ded33f4^_0x546fa0,_0x4a4762=window[_0x9d5656([0x44,0x61,0x74,0x65])][_0x9d5656([0x6e,0x6f,0x77])](),_0x54da70=_0x54914f[_0x9d5656([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x81ba8a=new window[(_0x9d5656([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40eed7=>{_0x54da70[_0x9d5656([0x6f,0x6e,0x63,0x65])](_0x9d5656([0x72,0x65,0x61,0x64,0x79]),_0x40eed7);}),_0x47d445={[_0x9d5656([0x6b,0x74,0x79])]:_0x9d5656([0x45,0x43]),[_0x9d5656([0x75,0x73,0x65])]:_0x9d5656([0x73,0x69,0x67]),[_0x9d5656([0x63,0x72,0x76])]:_0x9d5656([0x50,0x2d,0x32,0x35,0x36]),[_0x9d5656([0x78])]:_0x9d5656([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]),[_0x9d5656([0x79])]:_0x9d5656([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]),[_0x9d5656([0x61,0x6c,0x67])]:_0x9d5656([0x45,0x53,0x32,0x35,0x36])},_0x36780a=_0x54da70[_0x9d5656([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x9d5656([0x67,0x65,0x74])](_0x9d5656([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5cfe85(){let _0x449ef2,_0x5c711a=null,_0x57f17e=null;try{if(_0x36780a==_0x9d5656([0x47,0x50,0x4c]))return _0x9d5656([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x449ef2=_0x2e5116(),!_0x449ef2)return _0x9d5656([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x449ef2[_0x9d5656([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57f17e=_0x4c9d3c(_0x449ef2[_0x9d5656([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x449ef2[_0x9d5656([0x6a,0x74,0x69])])),await _0x449e5a()?_0x17add7()?_0x5e8bec()?_0x9d5656([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2b17e2()?(_0x449ef2[_0x9d5656([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9d5656([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c711a=_0x23d7d7(_0x9d5656([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x449ef2[_0x9d5656([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x9d5656([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c711a=_0x23d7d7(_0x9d5656([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2cef25()):_0x9d5656([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x9d5656([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x9d5656([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x9d5656([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5e8bec(){const _0x3e12e9=[_0x9d5656([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x9d5656([0x74,0x72,0x69,0x61,0x6c])][_0x9d5656([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x449ef2[_0x9d5656([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a4762/0x3e8:0xe10*_0xf79806;return _0x449ef2[_0x9d5656([0x65,0x78,0x70])]<_0x3e12e9;}function _0x17add7(){const _0x224cbd=_0x449ef2[_0x9d5656([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x224cbd&&(!!_0x224cbd[_0x9d5656([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9d5656([0x2a]))||!!_0x224cbd[_0x9d5656([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9d5656([0x55,0x50,0x4c,0x43])));}function _0x2b17e2(){const _0x5aef4f=_0x449ef2[_0x9d5656([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5aef4f||0x0==_0x5aef4f[_0x9d5656([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9a7ee3}=new URL(window[_0x9d5656([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5aef4f[_0x9d5656([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9a7ee3))return!0x0;const _0x5a2893=_0x9a7ee3[_0x9d5656([0x73,0x70,0x6c,0x69,0x74])](_0x9d5656([0x2e]));return _0x5aef4f[_0x9d5656([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36dbe9=>_0x36dbe9[_0x9d5656([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9d5656([0x2a])))[_0x9d5656([0x6d,0x61,0x70])](_0x5bb146=>_0x5bb146[_0x9d5656([0x73,0x70,0x6c,0x69,0x74])](_0x9d5656([0x2e])))[_0x9d5656([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x58f226=>_0x58f226[_0x9d5656([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5a2893[_0x9d5656([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9d5656([0x6d,0x61,0x70])](_0xe58bd7=>Array(_0x5a2893[_0x9d5656([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xe58bd7[_0x9d5656([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x9d5656([0x66,0x69,0x6c,0x6c])](_0xe58bd7[0x0]===_0x9d5656([0x2a])?_0x9d5656([0x2a]):'')[_0x9d5656([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xe58bd7))[_0x9d5656([0x73,0x6f,0x6d,0x65])](_0xe84cf4=>_0x5a2893[_0x9d5656([0x65,0x76,0x65,0x72,0x79])]((_0x8d5bad,_0xd06dc6)=>_0xe84cf4[_0xd06dc6]===_0x8d5bad||_0xe84cf4[_0xd06dc6]===_0x9d5656([0x2a])));}function _0x2cef25(){return _0x5c711a&&_0x57f17e?new window[(_0x9d5656([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d745c,_0x405e6b)=>{_0x5c711a[_0x9d5656([0x74,0x68,0x65,0x6e])](_0x4d745c,_0x405e6b),_0x57f17e[_0x9d5656([0x74,0x68,0x65,0x6e])](_0x271c74=>{_0x271c74!=_0x9d5656([0x56,0x61,0x6c,0x69,0x64])&&_0x4d745c(_0x271c74);},_0x405e6b);}):_0x5c711a||_0x57f17e||_0x9d5656([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c9d3c(_0x124557,_0x4f66b3){return new window[(_0x9d5656([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcb0472=>{if(_0x43b1b6())return _0xcb0472(_0x9d5656([0x56,0x61,0x6c,0x69,0x64]));_0x531483(),_0x54da70[_0x9d5656([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x9d5656([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bf385=!0x1;const _0x1c241f=_0x752ed6();function _0x49e7c0(_0x2307b4){return!!_0x2307b4&&(typeof _0x2307b4===_0x9d5656([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2307b4===_0x9d5656([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2307b4[_0x9d5656([0x74,0x68,0x65,0x6e])]===_0x9d5656([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2307b4[_0x9d5656([0x63,0x61,0x74,0x63,0x68])]===_0x9d5656([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x460aad(_0x36bad6){_0xfe817f(_0x36bad6)[_0x9d5656([0x74,0x68,0x65,0x6e])](_0x47022e=>{if(!_0x47022e||_0x47022e[_0x9d5656([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x9d5656([0x6f,0x6b]))return _0x9d5656([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1de434(_0x391a8e(_0x1c241f+_0x4f66b3))!=_0x47022e[_0x9d5656([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x9d5656([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x9d5656([0x56,0x61,0x6c,0x69,0x64]);})[_0x9d5656([0x74,0x68,0x65,0x6e])](_0x273ad3=>(_0x4c2434(),_0x273ad3),()=>{const _0x27c1fa=_0x57540a();return null==_0x27c1fa?(_0x4c2434(),_0x9d5656([0x56,0x61,0x6c,0x69,0x64])):_0x9d5656(_0x4a4762-_0x27c1fa>(0x9e6d8cc^_0x546fa0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x9d5656([0x74,0x68,0x65,0x6e])](_0xcb0472)[_0x9d5656([0x63,0x61,0x74,0x63,0x68])](()=>{_0xcb0472(_0x9d5656([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e17a7=0x2ddcb24c^_0x546fa0;function _0x4c2434(){const _0x2dc4e7=_0x9d5656([0x6c,0x6c,0x63,0x74,0x2d])+_0x1de434(_0x391a8e(_0x124557)),_0x43e0d1=_0x304a26(_0x1de434(window[_0x9d5656([0x4d,0x61,0x74,0x68])][_0x9d5656([0x63,0x65,0x69,0x6c])](_0x4a4762/_0x1e17a7)));window[_0x9d5656([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9d5656([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2dc4e7,_0x43e0d1);}function _0x57540a(){const _0x26aac6=_0x9d5656([0x6c,0x6c,0x63,0x74,0x2d])+_0x1de434(_0x391a8e(_0x124557)),_0x3bd42f=window[_0x9d5656([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x9d5656([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26aac6);return _0x3bd42f?window[_0x9d5656([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x304a26(_0x3bd42f),0x10)*_0x1e17a7:null;}function _0xfe817f(_0x30bd2b){return new window[(_0x9d5656([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xfb3193,_0x5928e6)=>{_0x30bd2b[_0x9d5656([0x74,0x68,0x65,0x6e])](_0xfb3193,_0x5928e6),window[_0x9d5656([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5928e6,0x2deb880c^_0x546fa0);});}}_0x54da70[_0x9d5656([0x6f,0x6e])](_0x9d5656([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa2c457,_0x3cbe2f)=>{if(_0x3cbe2f[0x0]!=_0x124557)return _0xcb0472(_0x9d5656([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3cbe2f[0x1]={..._0x3cbe2f[0x1],[_0x9d5656([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c241f};},{[_0x9d5656([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9d5656([0x68,0x69,0x67,0x68])}),_0x54da70[_0x9d5656([0x6f,0x6e])](_0x9d5656([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3c9d7d=>{_0x49e7c0(_0x3c9d7d[_0x9d5656([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bf385=!0x0,_0x460aad(_0x3c9d7d[_0x9d5656([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x9d5656([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x9d5656([0x6c,0x6f,0x77])}),_0x81ba8a[_0x9d5656([0x74,0x68,0x65,0x6e])](()=>{_0x4bf385||_0xcb0472(_0x9d5656([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x43b1b6(){return _0x54da70[_0x9d5656([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9d5656([0x76,0x69,0x65,0x77])][_0x9d5656([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x9d5656([0x61,0x75,0x74,0x6f]);}function _0x531483(){_0x54da70[_0x9d5656([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9d5656([0x76,0x69,0x65,0x77])][_0x9d5656([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9d5656([0x61,0x75,0x74,0x6f]);}}function _0x23d7d7(_0x456de6){const _0x2697b8=[new window[(_0x9d5656([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3889e7=>setTimeout(_0x3889e7,0x2de36200^_0x546fa0)),_0x81ba8a[_0x9d5656([0x74,0x68,0x65,0x6e])](()=>new window[(_0x9d5656([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28c218=>{let _0x3b7419=0x0;_0x54da70[_0x9d5656([0x6d,0x6f,0x64,0x65,0x6c])][_0x9d5656([0x6f,0x6e])](_0x9d5656([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x151130,_0x59a53)=>{_0x59a53[0x0][_0x9d5656([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b7419++,_0x3b7419==(0x2dea5d34^_0x546fa0)&&(_0x28c218(),_0x151130[_0x9d5656([0x6f,0x66,0x66])]());});}))];return window[_0x9d5656([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9d5656([0x72,0x61,0x63,0x65])](_0x2697b8)[_0x9d5656([0x74,0x68,0x65,0x6e])](()=>_0x456de6);}async function _0x4c3fa8(){await _0x81ba8a,_0x54da70[_0x9d5656([0x6d,0x6f,0x64,0x65,0x6c])][_0x9d5656([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x172662,_0x54da70[_0x9d5656([0x6d,0x6f,0x64,0x65,0x6c])][_0x9d5656([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x172662,_0x54da70[_0x9d5656([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x9d5656([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a45d2(_0x69b5e5){const _0x2ad257=_0x211080();_0x54da70[_0x2ad257]=_0x9d5656([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x69b5e5,_0x69b5e5!=_0x9d5656([0x56,0x61,0x6c,0x69,0x64])&&_0x4c3fa8();}function _0x211080(){const _0x27682c=window[_0x9d5656([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x9d5656([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x9d5656([0x6e,0x6f,0x77])]())[_0x9d5656([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x9d5656([0x2e]),'');let _0x5f02e1=_0x9d5656([0x44]);for(let _0x1e600=0x0;_0x1e600<_0x27682c[_0x9d5656([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e600+=0x2){let _0xdf27e2=window[_0x9d5656([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27682c[_0x9d5656([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e600,_0x1e600+0x2));_0xdf27e2>=_0x1eadb2[_0x9d5656([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xdf27e2-=_0x1eadb2[_0x9d5656([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5f02e1+=_0x1eadb2[_0xdf27e2];}return _0x5f02e1;}function _0x2e5116(){const _0x10197c=_0x36780a[_0x9d5656([0x73,0x70,0x6c,0x69,0x74])](_0x9d5656([0x2e]));if(0x3!=_0x10197c[_0x9d5656([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e739a(_0x10197c[0x1]);function _0x1e739a(_0x44839f){const _0x384245=_0x6929e2(_0x44839f);return _0x384245&&_0x57f97d()?_0x384245:null;function _0x57f97d(){const _0x1b0875=_0x384245[_0x9d5656([0x6a,0x74,0x69])],_0x192bf4=window[_0x9d5656([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b0875[_0x9d5656([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1b0875[_0x9d5656([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x27830f={..._0x384245,[_0x9d5656([0x6a,0x74,0x69])]:_0x1b0875[_0x9d5656([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1b0875[_0x9d5656([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x27830f[_0x9d5656([0x76,0x63])],_0x391a8e(_0x27830f)==_0x192bf4;}}}async function _0x449e5a(){let _0x4109d1=!0x0;try{const _0x3a56b8=_0x36780a[_0x9d5656([0x73,0x70,0x6c,0x69,0x74])](_0x9d5656([0x2e])),[_0x2d4d84,_0xc80d27,_0x1172b9]=_0x3a56b8;return _0x5b9de9(_0x2d4d84),await _0x44f15e(_0x2d4d84,_0xc80d27,_0x1172b9),_0x4109d1;}catch{return!0x1;}function _0x5b9de9(_0x4911ed){const _0xacee8b=_0x6929e2(_0x4911ed);_0xacee8b&&_0xacee8b[_0x9d5656([0x61,0x6c,0x67])]==_0x9d5656([0x45,0x53,0x32,0x35,0x36])||(_0x4109d1=!0x1);}async function _0x44f15e(_0x5a3788,_0x2b1579,_0x33cdf5){const _0x46ec8c=window[_0x9d5656([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x9d5656([0x66,0x72,0x6f,0x6d])](_0x160967(_0x33cdf5),_0x14c4e7=>_0x14c4e7[_0x9d5656([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10da68=new window[(_0x9d5656([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x9d5656([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5a3788+_0x9d5656([0x2e])+_0x2b1579),_0x2259b2=window[_0x9d5656([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x9d5656([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2259b2)return;const _0x53cba2=await _0x2259b2[_0x9d5656([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x9d5656([0x6a,0x77,0x6b]),_0x47d445,{[_0x9d5656([0x6e,0x61,0x6d,0x65])]:_0x9d5656([0x45,0x43,0x44,0x53,0x41]),[_0x9d5656([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x9d5656([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x9d5656([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2259b2[_0x9d5656([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x9d5656([0x6e,0x61,0x6d,0x65])]:_0x9d5656([0x45,0x43,0x44,0x53,0x41]),[_0x9d5656([0x68,0x61,0x73,0x68])]:{[_0x9d5656([0x6e,0x61,0x6d,0x65])]:_0x9d5656([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x53cba2,_0x46ec8c,_0x10da68)||(_0x4109d1=!0x1);}}function _0x6929e2(_0x439e4c){return _0x439e4c[_0x9d5656([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x9d5656([0x65,0x79]))?JSON[_0x9d5656([0x70,0x61,0x72,0x73,0x65])](_0x160967(_0x439e4c)):null;}function _0x160967(_0x40b2a3){return window[_0x9d5656([0x61,0x74,0x6f,0x62])](_0x40b2a3[_0x9d5656([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x9d5656([0x2b]))[_0x9d5656([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x9d5656([0x2f])));}function _0x391a8e(_0x23a1b0){let _0x3a2ed5=0x1505;function _0x3d9b43(_0x3bcbb3){for(let _0x112d3f=0x0;_0x112d3f<_0x3bcbb3[_0x9d5656([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x112d3f++){const _0x318b3e=_0x3bcbb3[_0x9d5656([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x112d3f);_0x3a2ed5=(_0x3a2ed5<<0x5)+_0x3a2ed5+_0x318b3e,_0x3a2ed5&=_0x3a2ed5;}}function _0x45716d(_0x486d44){Array[_0x9d5656([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x486d44)?_0x486d44[_0x9d5656([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x45716d):_0x486d44&&typeof _0x486d44==_0x9d5656([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x9d5656([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x486d44)[_0x9d5656([0x73,0x6f,0x72,0x74])]()[_0x9d5656([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2120d0,_0x440715])=>{_0x3d9b43(_0x2120d0),_0x45716d(_0x440715);}):_0x3d9b43(window[_0x9d5656([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x486d44));}return _0x45716d(_0x23a1b0),_0x3a2ed5>>>0x0;}function _0x1de434(_0x48381c){return _0x48381c[_0x9d5656([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x9d5656([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x9d5656([0x30]));}function _0x304a26(_0x2c6d1c){return _0x2c6d1c[_0x9d5656([0x73,0x70,0x6c,0x69,0x74])]('')[_0x9d5656([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x9d5656([0x6a,0x6f,0x69,0x6e])]('');}function _0x172662(){}function _0x9d5656(_0x263d2a){return _0x263d2a['map'](_0x262a46=>String['fromCharCode'](_0x262a46))['join']('');}_0x3a45d2(await _0x5cfe85());}(this);}['_initSchema'](){const _0x4877aa=this['editor']['model']['schema'];_0x4877aa['isRegistered']('imageBlock')&&_0x4877aa['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4877aa['isRegistered']('imageInline')&&_0x4877aa['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x62391d=this['editor'];_0x62391d['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x62391d['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4138f6=>_0x4138f6['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x85d855=_0x62391d['commands']['get']('replaceImageSource');_0x85d855&&this['listenTo'](_0x85d855,'cleanupImage',(_0x5005cf,[_0x1124ba,_0x3ff379])=>{_0x1124ba['removeAttribute']('uploadcareImageId',_0x3ff379);});}['_initConfig'](){const _0x1c6e66=this['editor']['config']['get']('uploadcare.uploader')||{},_0x2d163c=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2f1033(_0x57c5a0['document'],'uc-config',{..._0x1c6e66,'pubkey':_0x2d163c,'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']=_0x25306a=>{if('closeMax'==_0x25306a)return'#uc-icon-arrow-down';},_0x57c5a0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2f1033(_0x57c5a0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x57c5a0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xde0182=this['editor']['commands']['get']('insertImage');_0xde0182&&this['listenTo'](_0xde0182,'execute',()=>{const _0x2363fe=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2363fe&&_0x2363fe['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2363fe);});});const _0xc55fcf=this['editor']['commands']['get']('uploadcareImageReplace');_0xc55fcf&&this['listenTo'](_0xc55fcf,'execute',()=>{const _0x5c1871=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5c1871&&_0x5c1871['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5c1871);});});}}class tt extends _0x159a6f{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bfc5e){super(_0x4bfc5e),_0x4bfc5e['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5e4132['defineComponents'](_0x5e4132);}}class ii extends _0x1309d5{constructor(_0xe0d4ae){super(_0xe0d4ae);const t=_0xe0d4ae['t'],_0x267dfb=this['bindTemplate'],_0x589522=new _0x4d86c5();_0x589522['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':[_0x589522,{'text':_0x267dfb['to']('imageUploadProgress',_0x13519e=>t('Loading\x20image...')+'\x20('+(_0x13519e||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 _0x1309d5{constructor(_0x3606d9){super(_0x3606d9);const t=_0x3606d9['t'];this['set']('errorType',null);const _0x688be1=new _0x21dd43(_0x3606d9);_0x688be1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x688be1['withText']=!0x0,_0x688be1['class']='ck-button-action',_0x688be1['on']('execute',()=>{this['fire']('retry');}),_0x688be1['bind']('isVisible')['to'](this,'errorType',_0x1b1f82=>'NotFound'!==_0x1b1f82);const _0x501db7=new _0x2606ed();_0x501db7['content']=_0xbf4ebb,_0x501db7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2f299a=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':[_0x501db7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2f299a['to']('errorType',_0x29a94b=>t('NotFound'!==_0x29a94b?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x688be1]},{'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 _0x1309d5{constructor(_0x5db3d1,_0x1029a4){super(_0x5db3d1);const _0x64cbf2=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1029a4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x64cbf2['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x579765,_0x253573,_0x520cbb){super(_0x579765),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x579765),this['_errorView']=new ti(_0x579765),this['_editingView']=new ei(_0x579765,_0x520cbb),this['_focusableView']=new _0x1309d5(_0x579765),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x253573),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'],_0x458ece=>{this['_addUploadcareImageEditorListeners'](_0x458ece);});}),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'](_0x3a1444,_0x38c93a){const _0x56c314='uc-cloud-image-editor',_0x43e4ca=_0x3a1444['querySelector'](_0x56c314);if(_0x43e4ca)return _0x38c93a(_0x43e4ca);const _0x40c2a9=new MutationObserver(_0x4ec25a=>{const _0x171be9=_0x4ec25a['filter'](_0x3e2cbc=>_0x3e2cbc['target']===_0x3a1444&&_0x3e2cbc['addedNodes']['length']>0x0&&_0x3e2cbc['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x56c314);_0x171be9['length']&&(_0x40c2a9['disconnect'](),_0x38c93a(_0x171be9[0x0]['addedNodes'][0x0]));});_0x40c2a9['observe'](_0x3a1444,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3f1973){_0x3f1973['addEventListener']('apply',_0x32c95c=>{this['fire']('apply',{'imageSrc':_0x32c95c['detail']['cdnUrl']});}),_0x3f1973['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x24e88e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4cd1ac,_0x8c7ccf,_0x2674ad){super(),this['_editor']=_0x4cd1ac,this['_dialog']=_0x8c7ccf,this['_imageElement']=_0x2674ad,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 _0x409d19=this['_imageElement'],_0x33cd64=_0x409d19['getAttribute']('uploadcareImageId'),_0x5b3dbd=_0x409d19['getAttribute']('src');if(_0x33cd64)await this['_loadImageInfo'](_0x33cd64,_0x5b3dbd);else{if(this['_imageCache']['has'](_0x5b3dbd)){const _0x4b4436=this['_imageCache']['get'](_0x5b3dbd);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4b4436['url'],this['imageDimension']=_0x4b4436['dimension'],this['imageId']=_0x4b4436['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2586db}=this['_editor'],t=_0x2586db['t'],_0x4250de=new X(_0x2586db,this['imageStatus'],this['_attributes']);_0x4250de['bind']('status')['to'](this,'imageStatus'),_0x4250de['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4250de['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4250de['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4250de,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3969c7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4250de,'position':_0x13c2e0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4250de['focus']();},'onHide':()=>{_0x4250de['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5a4896=>!M(_0x5a4896,_0x4250de['element'])}});}['_loadImageInfo'](_0x20ccaa,_0x292c4b){return j['getInfo'](_0x20ccaa,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x518f3c=>{const {width:_0x55d3d8,height:_0x25f1f8}=_0x518f3c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x292c4b,this['imageDimension']={'width':_0x55d3d8,'height':_0x25f1f8},this['imageId']=_0x20ccaa;})['catch'](_0x5b5abd=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5b5abd['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x341271,_0x3fc648){return this['_getImageAsFile'](_0x341271)['then'](_0x29c66b=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3fc648['signal'],'file':_0x29c66b,'onProgress':_0x1f726e=>{_0x1f726e&&_0x1f726e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1f726e['value']));}}))['then'](_0x1f3c44=>{const {width:_0x126b94,height:_0x267f20}=_0x1f3c44['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1f3c44['cdnUrl'],this['imageDimension']={'width':_0x126b94,'height':_0x267f20},this['imageId']=_0x1f3c44['uuid'],this['imageUploadProgress']=null;const _0x446680=_0x341271['getAttribute']('src');this['_imageCache']['set'](_0x446680,{'id':_0x1f3c44['uuid'],'url':_0x1f3c44['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5a4a53=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5a4a53['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x12f86b,_0x9b5a62){_0x12f86b['on']('apply',(_0xdffd23,_0x58884a)=>{this['_replaceImage'](_0x9b5a62,_0x58884a['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x12f86b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x12f86b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3cbb0d,_0x438ec8,_0x3ac448){const _0x492897=this['_editor'],{width:_0x1311a8,height:_0x5df14c}=F(_0x438ec8,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3cefdb,imageSources:_0x261407}=k(_0x438ec8,_0x1311a8);_0x492897['model']['change'](_0x12d6fb=>{if('$graveyard'===_0x3cbb0d['root']['rootName']){_0x492897['execute']('insertImage',{'imageType':_0x3cbb0d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3cbb0d['getAttributes']()),'uploadcareImageId':_0x3ac448,'src':_0x3cefdb,'sources':_0x261407,'width':_0x1311a8,'height':_0x5df14c}});const _0x1b11fa=_0x3cbb0d['getChildren']();_0x3cbb0d=_0x492897['model']['document']['selection']['getSelectedElement']();for(const _0x412e02 of _0x1b11fa)_0x12d6fb['append'](_0x12d6fb['cloneElement'](_0x412e02),_0x3cbb0d);}else _0x12d6fb['setSelection'](_0x3cbb0d,'on'),_0x492897['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3cbb0d['getAttributes']()),'uploadcareImageId':_0x3ac448,'src':_0x3cefdb,'sources':_0x261407,'width':_0x1311a8,'height':_0x5df14c},_0x3cbb0d);_0x12d6fb['setSelection'](_0x3cbb0d,'on');});}async['_getImageAsFile'](_0x81011c){const _0x9e7e1e=_0x57c5a0['window'],_0x598fe6=_0x57c5a0['document']['location']['href'],_0x258bf8=new _0x9e7e1e['URL'](_0x81011c['getAttribute']('src'),_0x598fe6);if('data:'===_0x258bf8['protocol']){const _0x42cc9d=_0x258bf8['href']['split'](','),_0x5143ff=_0x42cc9d[0x0]['match'](/:(.*?);/)[0x1],_0x21ebe7=_0x5143ff['split']('/')[0x1],_0xa8d015=_0x9e7e1e['atob'](_0x42cc9d[_0x42cc9d['length']-0x1]);let _0x27ec69=_0xa8d015['length'];const _0xe00823=new _0x9e7e1e['Uint8Array'](_0x27ec69);for(;_0x27ec69--;)_0xe00823[_0x27ec69]=_0xa8d015['charCodeAt'](_0x27ec69);return new _0x9e7e1e['File']([_0xe00823],'image.'+_0x21ebe7,{'type':_0x5143ff});}const _0x3a6c60=_0x258bf8['href']['split']('/'),_0x42f725=_0x3a6c60[_0x3a6c60['length']-0x1],_0xb53e1b=_0x42f725['split']('.')[0x1];return _0x9e7e1e['fetch'](_0x258bf8['href'])['then'](_0x35479e=>_0x35479e['clone']()['blob']())['then'](_0x1cb203=>new _0x9e7e1e['File']([_0x1cb203],_0x42f725,{'type':'image/'+_0xb53e1b}));}}class N extends _0x4a1f6d{['imageEditController'];static get['requires'](){return[_0x22f3dd];}['_isEditable'];constructor(_0x2b6c6e){super(_0x2b6c6e),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xa1034f){const _0x5ea705=R(_0xa1034f);return _0x57550e=>!(!_0x57550e||!_0x57550e['is']('element','imageBlock')&&!_0x57550e['is']('element','imageInline'))&&(!!_0x57550e['hasAttribute']('uploadcareImageId')||!!_0x57550e['hasAttribute']('src')&&_0x5ea705(_0x57550e['getAttribute']('src')));}(_0x2b6c6e['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3c94a3=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3c94a3);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4d254a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4d254a&&(_0x4d254a['is']('element','imageBlock')||_0x4d254a['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x22f3dd),_0x4d254a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x4a1f6d{['refresh'](){const _0xbcabac=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xbcabac&&(_0xbcabac['is']('element','imageBlock')||_0xbcabac['is']('element','imageInline')));}['execute'](_0x3b7233){const _0x240136=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3d5a3f=>{_0x3d5a3f['setAttributes'](_0x3b7233,_0x240136),_0x3d5a3f['removeAttribute']('srcset',_0x240136),_0x3d5a3f['removeAttribute']('sizes',_0x240136);});}}class m extends _0x159a6f{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x111d63,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x48aceb}=this;_0x48aceb['commands']['add']('uploadcareImageEdit',new N(_0x48aceb)),_0x48aceb['commands']['add']('uploadcareImageReplace',new O(_0x48aceb));}}class g extends _0x159a6f{['_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 _0x4c8810=this['editor'];_0x4c8810['ui']['componentFactory']['add']('uploadcareImageEdit',_0x409f6c=>{const _0xaafcce=_0x4c8810['commands']['get']('uploadcareImageEdit'),_0x2c0d18=new _0x21dd43(_0x409f6c),t=_0x409f6c['t'];return _0x2c0d18['set']({'icon':_0x3969c7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2c0d18['bind']('isEnabled')['to'](_0xaafcce),_0x2c0d18['bind']('isOn')['to'](_0xaafcce,'isActive'),this['listenTo'](_0x2c0d18,'execute',()=>{_0x4c8810['execute']('uploadcareImageEdit'),_0x4c8810['editing']['view']['focus']();}),_0x2c0d18;}),this['_initConfig']();}['_initConfig'](){const _0x4d7f72=_0x2f1033(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4d7f72),this['listenTo'](this['editor'],'destroy',()=>{_0x4d7f72['remove']();});}}class et extends _0x159a6f{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,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0xf6fbe1,Command as _0x7ffec3}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x201032,IconGooglePhotos as _0x5d013a,IconGoogleDrive as _0x42c81d,IconFacebook as _0x46bda6,IconDropbox as _0x5d1059,IconUploadcareLink as _0x45f1b8,IconUploadcareImageUpload as _0x48a625,IconError as _0x227ea7,IconUploadcareImageEdit as _0x52ad18}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x19c8b2,MenuBarMenuListItemButtonView as _0x5b7ad4,View as _0x41df65,FocusCycler as _0x3ec888,Dialog as _0x4d119e,DialogViewPosition as _0x1681aa,SpinnerView as _0xd3f9c8,IconView as _0x238f30,Notification as _0x551a71}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x30d413,DomEmitterMixin as _0x45af71,global as _0x185c34,getAncestors as _0x4e988d,ObservableMixin as _0x153c81,uid as _0x5dd4e2,createElement as _0x119a96}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x23b034}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1db9f8,info as _0x4691eb}from'@uploadcare/upload-client';import*as _0x48c0cb from'@uploadcare/file-uploader';var i=function(_0xc1dbb9){return _0xc1dbb9['Local']='local',_0xc1dbb9['URL']='url',_0xc1dbb9['Dropbox']='dropbox',_0xc1dbb9['GDrive']='gdrive',_0xc1dbb9['Facebook']='facebook',_0xc1dbb9['GPhotos']='gphotos',_0xc1dbb9['OneDrive']='onedrive',_0xc1dbb9;}({});function _(_0x573494,_0x5caa15,_0x15a44f){const t=_0x573494['t'],_0x4d84eb=_0x573494['t'];switch(_0x5caa15){case i['Local']:return{'text':_0x4d84eb('Insert'===_0x15a44f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4d84eb('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x15a44f?_0x4d84eb('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4d84eb('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x15a44f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x15a44f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x15a44f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x15a44f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x15a44f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x5caa15;}}class e extends _0xf6fbe1{['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 _0x2c9706=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2bab23;for(const _0x578078 in _0x2c9706){const _0x15d3df=_0x578078,_0x4ae007=_0x2c9706[_0x15d3df];if('uploadcareLicenseKeyValid'==_0x4ae007||'uploadcareLicenseKeyInvalid'==_0x4ae007||'uploadcareLicenseKeyExpired'==_0x4ae007||'uploadcareLicenseKeyDomainLimit'==_0x4ae007||'uploadcareLicenseKeyNotAllowed'==_0x4ae007||'uploadcareLicenseKeyEvaluationLimit'==_0x4ae007||'uploadcareLicenseKeyTrialLimit'==_0x4ae007||'uploadcareLicenseKeyUsageLimit'==_0x4ae007){delete _0x2c9706[_0x15d3df],_0x2bab23=_0x4ae007,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2bab23&&_0x2c9706['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2bab23&&_0x2c9706['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2bab23&&_0x2c9706['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2bab23&&_0x2c9706['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2bab23&&_0x2c9706['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2bab23&&_0x2c9706['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2bab23&&_0x2c9706['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2464b4}=this,_0xd4557=_0x2464b4['commands']['get']('uploadcare');if(!_0xd4557)return;const _0x385dcf=this['_normalizeConfigSourceList'](_0x2464b4['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x505a38,_0x56046f)=>{const _0x541ae5=this['_getIntegrationKey'](_0x56046f['type']);return _0x505a38[_0x541ae5]||(_0x505a38[_0x541ae5]=[]),_0x505a38[_0x541ae5]['push'](_0x56046f),_0x505a38;},{});_0x2464b4['plugins']['has']('ImageInsertUI')&&_0x2464b4['commands']['get']('uploadcare')&&Object['entries'](_0x385dcf)['forEach'](([_0x3a66ba,_0x16d245])=>{_0x2464b4['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3a66ba,'observable':()=>_0xd4557,'buttonViewCreator':()=>this['_createToolbarButton'](_0x16d245),'formViewCreator':()=>this['_createDropdownButtons'](_0x16d245),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x16d245),'override':'assetManager'!==_0x3a66ba});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xe66f24){const {locale:_0x39a9cf}=this['editor'];return _0xe66f24['map'](_0x2f71a9=>{const _0x54e4a2=_(_0x39a9cf,_0x2f71a9,'Insert');switch(_0x2f71a9){case i['Local']:return{'icon':_0x48a625,'type':i['Local'],..._0x54e4a2};case i['URL']:return{'icon':_0x45f1b8,'type':i['URL'],..._0x54e4a2};case i['Dropbox']:return{'icon':_0x5d1059,'type':i['Dropbox'],..._0x54e4a2};case i['Facebook']:return{'icon':_0x46bda6,'type':i['Facebook'],..._0x54e4a2};case i['GDrive']:return{'icon':_0x42c81d,'type':i['GDrive'],..._0x54e4a2};case i['GPhotos']:return{'icon':_0x5d013a,'type':i['GPhotos'],..._0x54e4a2};case i['OneDrive']:return{'icon':_0x201032,'type':i['OneDrive'],..._0x54e4a2};}});}['_getIntegrationKey'](_0x3fc48a){switch(_0x3fc48a){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3ac569,_0x125df0){const _0x9b76e9=this['editor'],_0x180264=new _0x3ac569(_0x9b76e9['locale']),_0x4517ae=_0x9b76e9['commands']['get']('uploadcare');return _0x180264['bind']('isEnabled')['to'](_0x4517ae),_0x180264['on']('execute',()=>{_0x4517ae['execute'](_0x125df0);}),_0x180264;}['_createToolbarButton'](_0x285ffe){const {locale:_0x542f79}=this['editor'],_0x4d8745=this['editor']['plugins']['get']('ImageInsertUI'),_0x5e9fef=_0x285ffe[0x0],_0x2b92e8=this['_createButton'](_0x19c8b2,_0x5e9fef['type']);return _0x2b92e8['icon']=_0x5e9fef['icon'],_0x2b92e8['bind']('label')['to'](_0x4d8745,'isImageSelected',_0x1175a5=>_(_0x542f79,_0x5e9fef['type'],_0x1175a5?'Replace':'Insert')['text']),_0x2b92e8['tooltip']=!0x0,_0x2b92e8;}['_createDropdownButtons'](_0x430e7b){const {locale:_0x5ef681}=this['editor'],_0x262865=this['editor']['plugins']['get']('ImageInsertUI');return _0x430e7b['map'](_0x4aba64=>{const _0x23863=this['_createButton'](_0x19c8b2,_0x4aba64['type']);return _0x23863['withText']=!0x0,_0x23863['icon']=_0x4aba64['icon'],_0x23863['bind']('label')['to'](_0x262865,'isImageSelected',_0x20b1b2=>_(_0x5ef681,_0x4aba64['type'],_0x20b1b2?'Replace':'Insert')['text']),_0x23863;});}['_createMenuBarButtons'](_0x41136f){return _0x41136f['map'](_0x1b7031=>{const _0x1c762b=this['_createButton'](_0x5b7ad4,_0x1b7031['type']);return _0x1c762b['icon']=_0x1b7031['icon'],_0x1c762b['label']=_0x1b7031['shortText'],_0x1c762b;});}}class F extends _0x41df65{['focusTracker'];['focusCycler'];constructor(_0x4bda02){super(_0x4bda02),this['focusTracker']=new _0x30d413(),this['focusCycler']=new _0x3ec888({'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(_0x571e38,_0x3eee68){super(_0x571e38),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-'+_0x3eee68}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x4cb456,_0x46df60){const _0x982f8a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xc352c1=>_0xc352c1<=_0x46df60)['map'](_0x58d551=>_0x4cb456['replace'](/\/$/,'')+'/-/resize/'+_0x58d551+'x/\x20'+_0x58d551+'w');return{'imageFallbackUrl':_0x4cb456,'imageSources':[{'srcset':_0x982f8a['join'](',\x20'),'sizes':'(max-width:\x20'+_0x46df60+'px)\x20100vw,\x20'+_0x46df60+'px','type':'image/webp'}]};}function C(_0x298697,_0x5b71c1,_0x44b0e3){const _0x513812=_0x298697['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x513812?parseInt(_0x513812[0x1],0xa):_0x5b71c1,'height':_0x513812?parseInt(_0x513812[0x2],0xa):_0x44b0e3};}function p(_0x62688a,_0x3db338){const _0x2c5288=new(_0x45af71())(),_0x24760c=_0x62688a['plugins']['get']('ImageUtils'),_0x2cfe1b=_0x62688a['editing']['mapper']['toViewElement'](_0x3db338),_0x2832a2=_0x24760c['findViewImgElement'](_0x2cfe1b),_0x380283=_0x62688a['editing']['view']['domConverter']['viewToDom'](_0x2832a2),_0x52aba5=_0x3db338['getAttribute']('width'),_0x43b9c1=_0x3db338['getAttribute']('height'),_0x59cd2d='image-processing';_0x62688a['editing']['view']['change'](_0x149b2e=>{_0x149b2e['addClass'](_0x59cd2d,_0x2cfe1b),_0x149b2e['setStyle']('aspect-ratio',_0x52aba5+'/'+_0x43b9c1,_0x2832a2);}),_0x2c5288['listenTo'](_0x380283,'load',()=>{_0x2c5288['stopListening'](_0x380283,'load'),_0x62688a['editing']['view']['change'](_0x18da7d=>{_0x18da7d['removeClass'](_0x59cd2d,_0x2cfe1b),_0x18da7d['removeStyle']('aspect-ratio',_0x2832a2);});});}function G(_0x139f9f){if(Array['isArray'](_0x139f9f)){const _0x23636e=_0x139f9f['map'](G);return _0xa0b328=>_0x23636e['some'](_0x5713ac=>_0x5713ac(_0xa0b328));}if('origin'==_0x139f9f){const _0x1eea28=_0x185c34['window']['location']['origin'];return _0x35286c=>new URL(_0x35286c,_0x185c34['document']['baseURI'])['origin']==_0x1eea28;}return'function'==typeof _0x139f9f?_0x139f9f:_0x139f9f instanceof RegExp?_0x36ec83=>!(!_0x36ec83['match'](_0x139f9f)&&!_0x36ec83['replace'](/^https?:\/\//,'')['match'](_0x139f9f)):()=>!0x1;}function S(_0x807202,_0x5e5662){return _0x4e988d(_0x807202['target'])['includes'](_0x5e5662);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x153c81(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xd47f62,_0x56355f,_0x1478c7){super(),this['_editor']=_0xd47f62,this['_editing']=_0x56355f,this['_dialog']=_0xd47f62['plugins']['get'](_0x4d119e),this['_api']=_0x56355f['ctxElement']['getAPI'](),this['_type']=_0x1478c7,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:_0xd4eef7,model:_0x1f71ce}=this['_editor'],_0x12e461=_0x1f71ce['document']['selection']['getSelectedElement'](),_0x1183a6=_0x12e461&&(_0x12e461['is']('element','imageBlock')||_0x12e461['is']('element','imageInline'));this['_formView']=new x(_0xd4eef7,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x48a625,'title':_(_0xd4eef7,this['_type'],_0x1183a6?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1681aa['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x54b75c=>!S(_0x54b75c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x398ef5}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5c301b=>{const _0x339e80=_0x398ef5['length'];for(const _0x138800 of _0x398ef5){const _0x4eb2e6=_0x138800===_0x398ef5[_0x339e80-0x1],{cdnUrl:_0xcc88cf,fileInfo:_0x2ad3d2}=_0x138800;if(!_0xcc88cf||!_0x2ad3d2)continue;const {width:_0x2011cc,height:_0x23dd1b}=_0x2ad3d2['imageInfo'],_0x350807=C(_0xcc88cf,_0x2011cc,_0x23dd1b),_0x322d64=k(_0xcc88cf,_0x350807['width']),_0x9ae050={'id':_0x2ad3d2['uuid'],'type':'image','attributes':{'imageDimension':_0x350807,..._0x322d64}};this['_insertAsset'](_0x9ae050,_0x4eb2e6,_0x5c301b);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x28e21f=>{'idle'===_0x28e21f['detail']['status']&&!_0x28e21f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xe7aa00,_0x212f47,_0x4a2ea6){const _0x5e219d=this['_editor']['model']['document']['selection'],_0x5990b1=_0x5e219d['getSelectedElement'](),_0x51f7f4=!(!_0x5990b1||!_0x5990b1['is']('element','imageInline'));_0x4a2ea6['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xe7aa00,_0x51f7f4),_0x212f47||_0x4a2ea6['setSelection'](_0x5e219d['getLastPosition']());}['_insertImage'](_0x41b958,_0x2014ab){const _0x20c3b9=this['_editor'],{imageDimension:_0x39f150,imageFallbackUrl:_0x59c50f,imageSources:_0x10dc40}=_0x41b958['attributes'];_0x20c3b9['execute']('insertImage',{'imageType':_0x2014ab?'imageInline':null,'source':{'uploadcareImageId':_0x41b958['id'],'src':_0x59c50f,'sources':_0x10dc40,..._0x39f150}});}}class w extends _0x7ffec3{['_editing'];['_controller']=null;static get['requires'](){return[_0x4d119e,o];}constructor(_0x51f0a6){super(_0x51f0a6),this['_editing']=_0x51f0a6['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xeb7af0){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xeb7af0);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0xec55d3,publicKey:_0x3dccf1,signal:_0x5e7aae,onProgress:_0x486591}){return _0x1db9f8(_0xec55d3,{'publicKey':_0x3dccf1,'store':'auto','signal':_0x5e7aae,'onProgress':_0x486591});}static['getInfo'](_0x3c88a1,_0x392dfe){return _0x4691eb(_0x3c88a1,_0x392dfe);}}class f extends _0xf6fbe1{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x23b034,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x22a10=this['editor'];if(!!!_0x22a10['config']['get']('uploadcare'))return;_0x22a10['plugins']['get'](_0x23b034)['createUploadAdapter']=_0x2dc2ae=>new A(_0x2dc2ae,_0x22a10),_0x22a10['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3cba2a,{imageElement:_0x2ddeb8,data:_0x277825})=>{_0x22a10['model']['change'](_0xf3160a=>{_0xf3160a['setAttribute']('uploadcareImageId',_0x277825['uploadcareImageId'],_0x2ddeb8);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x435e58,_0x5c50c0){this['loader']=_0x435e58,this['editor']=_0x5c50c0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x218551=this['editor']['config']['get']('uploadcare.pubkey'),_0x41720e=await this['loader']['file'];return j['upload']({'file':_0x41720e,'publicKey':_0x218551,'signal':this['controller']['signal'],'onProgress':_0x3d195a=>{_0x3d195a&&_0x3d195a['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3d195a['value']);}})['then'](async _0x5aee61=>{const {imageFallbackUrl:_0x40ce47,imageSources:_0x360f89}=k(_0x5aee61['cdnUrl'],_0x5aee61['imageInfo']['width']);return{'uploadcareImageId':_0x5aee61['uuid'],'default':_0x40ce47,'sources':_0x360f89};})['catch'](()=>{const _0x1d3430=t('Cannot\x20upload\x20file:')+('\x20'+_0x41720e['name']+'.');return Promise['reject'](_0x1d3430);});}['abort'](){this['controller']['abort']();}}class o extends _0xf6fbe1{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x4d119e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1f5224){super(_0x1f5224),this['ucContextId']=_0x5dd4e2();}['init'](){const _0x108733=this['editor'];_0x108733['commands']['add']('uploadcare',new w(_0x108733));}['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 _0x8471b0=_0x185c34['document']['querySelector']('input[uploadcare-file-input]');_0x8471b0&&_0x8471b0['remove']();}),async function(_0x2fc982){const _0x27f1b5=_0x256fd8([0x72,0x51,0x4d,0x64,0x61,0x78,0x4f,0x77,0x33,0x6e,0x65,0x6a,0x39,0x52,0x63,0x71,0x30,0x57,0x43,0x4e,0x38,0x42,0x7a,0x34,0x70,0x68,0x73,0x79,0x4a,0x5a,0x6d,0x67,0x6f,0x36,0x4b,0x54,0x50,0x55,0x35,0x48,0x66,0x56,0x31,0x58,0x69,0x75,0x4c,0x53,0x6b,0x76,0x41,0x37,0x6c,0x62,0x74,0x32,0x49,0x46,0x47,0x44,0x45,0x59]),_0x43f030=0x3f6883ea,_0xec88a6=0x3f6fecba^_0x43f030,_0x547a01=window[_0x256fd8([0x44,0x61,0x74,0x65])][_0x256fd8([0x6e,0x6f,0x77])](),_0x2f5e54=_0x2fc982[_0x256fd8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x349103=new window[(_0x256fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x166d74=>{_0x2f5e54[_0x256fd8([0x6f,0x6e,0x63,0x65])](_0x256fd8([0x72,0x65,0x61,0x64,0x79]),_0x166d74);}),_0x3f0798={[_0x256fd8([0x6b,0x74,0x79])]:_0x256fd8([0x45,0x43]),[_0x256fd8([0x75,0x73,0x65])]:_0x256fd8([0x73,0x69,0x67]),[_0x256fd8([0x63,0x72,0x76])]:_0x256fd8([0x50,0x2d,0x32,0x35,0x36]),[_0x256fd8([0x78])]:_0x256fd8([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]),[_0x256fd8([0x79])]:_0x256fd8([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]),[_0x256fd8([0x61,0x6c,0x67])]:_0x256fd8([0x45,0x53,0x32,0x35,0x36])},_0x92daed=_0x2f5e54[_0x256fd8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x256fd8([0x67,0x65,0x74])](_0x256fd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x57c9e7(){let _0x58dd2e,_0x435ab6=null,_0x554579=null;try{if(_0x92daed==_0x256fd8([0x47,0x50,0x4c]))return _0x256fd8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58dd2e=_0x27775d(),!_0x58dd2e)return _0x256fd8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x58dd2e[_0x256fd8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x554579=_0xff86ff(_0x58dd2e[_0x256fd8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58dd2e[_0x256fd8([0x6a,0x74,0x69])])),await _0x437472()?_0x2d121c()?_0x42cc1b()?_0x256fd8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x152bae()?(_0x58dd2e[_0x256fd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x256fd8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x435ab6=_0xb99438(_0x256fd8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x58dd2e[_0x256fd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x256fd8([0x74,0x72,0x69,0x61,0x6c])&&(_0x435ab6=_0xb99438(_0x256fd8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x21775d()):_0x256fd8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x256fd8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x256fd8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x256fd8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x42cc1b(){const _0x393b32=[_0x256fd8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x256fd8([0x74,0x72,0x69,0x61,0x6c])][_0x256fd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58dd2e[_0x256fd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x547a01/0x3e8:0xe10*_0xec88a6;return _0x58dd2e[_0x256fd8([0x65,0x78,0x70])]<_0x393b32;}function _0x2d121c(){const _0x5ee23e=_0x58dd2e[_0x256fd8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ee23e&&(!!_0x5ee23e[_0x256fd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256fd8([0x2a]))||!!_0x5ee23e[_0x256fd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256fd8([0x55,0x50,0x4c,0x43])));}function _0x152bae(){const _0x2cae08=_0x58dd2e[_0x256fd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2cae08||0x0==_0x2cae08[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f2452}=new URL(window[_0x256fd8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2cae08[_0x256fd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f2452))return!0x0;const _0x5f4cb6=_0x1f2452[_0x256fd8([0x73,0x70,0x6c,0x69,0x74])](_0x256fd8([0x2e]));return _0x2cae08[_0x256fd8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28d895=>_0x28d895[_0x256fd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256fd8([0x2a])))[_0x256fd8([0x6d,0x61,0x70])](_0x36c376=>_0x36c376[_0x256fd8([0x73,0x70,0x6c,0x69,0x74])](_0x256fd8([0x2e])))[_0x256fd8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e69cc=>_0x5e69cc[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5f4cb6[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x256fd8([0x6d,0x61,0x70])](_0x20e522=>Array(_0x5f4cb6[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x20e522[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x256fd8([0x66,0x69,0x6c,0x6c])](_0x20e522[0x0]===_0x256fd8([0x2a])?_0x256fd8([0x2a]):'')[_0x256fd8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x20e522))[_0x256fd8([0x73,0x6f,0x6d,0x65])](_0x498aa6=>_0x5f4cb6[_0x256fd8([0x65,0x76,0x65,0x72,0x79])]((_0x186e42,_0x1d0040)=>_0x498aa6[_0x1d0040]===_0x186e42||_0x498aa6[_0x1d0040]===_0x256fd8([0x2a])));}function _0x21775d(){return _0x435ab6&&_0x554579?new window[(_0x256fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d3d4a,_0x310d3e)=>{_0x435ab6[_0x256fd8([0x74,0x68,0x65,0x6e])](_0x4d3d4a,_0x310d3e),_0x554579[_0x256fd8([0x74,0x68,0x65,0x6e])](_0x3be5d2=>{_0x3be5d2!=_0x256fd8([0x56,0x61,0x6c,0x69,0x64])&&_0x4d3d4a(_0x3be5d2);},_0x310d3e);}):_0x435ab6||_0x554579||_0x256fd8([0x56,0x61,0x6c,0x69,0x64]);}}function _0xff86ff(_0x2663b0,_0x35ffa6){return new window[(_0x256fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30f891=>{if(_0x179ee4())return _0x30f891(_0x256fd8([0x56,0x61,0x6c,0x69,0x64]));_0x36bad9(),_0x2f5e54[_0x256fd8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x256fd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x598f2d=!0x1;const _0x1a93ea=_0x5dd4e2();function _0xd9b871(_0x1272b7){return!!_0x1272b7&&(typeof _0x1272b7===_0x256fd8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1272b7===_0x256fd8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1272b7[_0x256fd8([0x74,0x68,0x65,0x6e])]===_0x256fd8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1272b7[_0x256fd8([0x63,0x61,0x74,0x63,0x68])]===_0x256fd8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6b925c(_0x5f4af3){_0x5df434(_0x5f4af3)[_0x256fd8([0x74,0x68,0x65,0x6e])](_0x1dd90d=>{if(!_0x1dd90d||_0x1dd90d[_0x256fd8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x256fd8([0x6f,0x6b]))return _0x256fd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a65eb(_0x2cb908(_0x1a93ea+_0x35ffa6))!=_0x1dd90d[_0x256fd8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x256fd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x256fd8([0x56,0x61,0x6c,0x69,0x64]);})[_0x256fd8([0x74,0x68,0x65,0x6e])](_0x375ecd=>(_0x36d3eb(),_0x375ecd),()=>{const _0x4b4a8b=_0x24b71f();return null==_0x4b4a8b?(_0x36d3eb(),_0x256fd8([0x56,0x61,0x6c,0x69,0x64])):_0x256fd8(_0x547a01-_0x4b4a8b>(0x1b6407ea^_0x43f030)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x256fd8([0x74,0x68,0x65,0x6e])](_0x30f891)[_0x256fd8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x30f891(_0x256fd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x23af32=0x3f5e6d6a^_0x43f030;function _0x36d3eb(){const _0x4e2407=_0x256fd8([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a65eb(_0x2cb908(_0x2663b0)),_0x1d768d=_0x4a16d6(_0x5a65eb(window[_0x256fd8([0x4d,0x61,0x74,0x68])][_0x256fd8([0x63,0x65,0x69,0x6c])](_0x547a01/_0x23af32)));window[_0x256fd8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x256fd8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e2407,_0x1d768d);}function _0x24b71f(){const _0xe43dd7=_0x256fd8([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a65eb(_0x2cb908(_0x2663b0)),_0x22a4c4=window[_0x256fd8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x256fd8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe43dd7);return _0x22a4c4?window[_0x256fd8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a16d6(_0x22a4c4),0x10)*_0x23af32:null;}function _0x5df434(_0x52fc32){return new window[(_0x256fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd2078f,_0x119556)=>{_0x52fc32[_0x256fd8([0x74,0x68,0x65,0x6e])](_0xd2078f,_0x119556),window[_0x256fd8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x119556,0x3f69572a^_0x43f030);});}}_0x2f5e54[_0x256fd8([0x6f,0x6e])](_0x256fd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1466a4,_0x10b42e)=>{if(_0x10b42e[0x0]!=_0x2663b0)return _0x30f891(_0x256fd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10b42e[0x1]={..._0x10b42e[0x1],[_0x256fd8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a93ea};},{[_0x256fd8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x256fd8([0x68,0x69,0x67,0x68])}),_0x2f5e54[_0x256fd8([0x6f,0x6e])](_0x256fd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x54825d=>{_0xd9b871(_0x54825d[_0x256fd8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x598f2d=!0x0,_0x6b925c(_0x54825d[_0x256fd8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x256fd8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x256fd8([0x6c,0x6f,0x77])}),_0x349103[_0x256fd8([0x74,0x68,0x65,0x6e])](()=>{_0x598f2d||_0x30f891(_0x256fd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x179ee4(){return _0x2f5e54[_0x256fd8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x256fd8([0x76,0x69,0x65,0x77])][_0x256fd8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x256fd8([0x61,0x75,0x74,0x6f]);}function _0x36bad9(){_0x2f5e54[_0x256fd8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x256fd8([0x76,0x69,0x65,0x77])][_0x256fd8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x256fd8([0x61,0x75,0x74,0x6f]);}}function _0xb99438(_0x2d836f){const _0x1c8787=[new window[(_0x256fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b415d=>setTimeout(_0x3b415d,0x3f61bd26^_0x43f030)),_0x349103[_0x256fd8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x256fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cfc20=>{let _0x1d09ff=0x0;_0x2f5e54[_0x256fd8([0x6d,0x6f,0x64,0x65,0x6c])][_0x256fd8([0x6f,0x6e])](_0x256fd8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x24e831,_0x1b4058)=>{_0x1b4058[0x0][_0x256fd8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1d09ff++,_0x1d09ff==(0x3f688212^_0x43f030)&&(_0x5cfc20(),_0x24e831[_0x256fd8([0x6f,0x66,0x66])]());});}))];return window[_0x256fd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x256fd8([0x72,0x61,0x63,0x65])](_0x1c8787)[_0x256fd8([0x74,0x68,0x65,0x6e])](()=>_0x2d836f);}async function _0x580fd9(){await _0x349103,_0x2f5e54[_0x256fd8([0x6d,0x6f,0x64,0x65,0x6c])][_0x256fd8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x15d260,_0x2f5e54[_0x256fd8([0x6d,0x6f,0x64,0x65,0x6c])][_0x256fd8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x15d260,_0x2f5e54[_0x256fd8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x256fd8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19757a(_0x315186){const _0x3bac3a=_0x4041b9();_0x2f5e54[_0x3bac3a]=_0x256fd8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x315186,_0x315186!=_0x256fd8([0x56,0x61,0x6c,0x69,0x64])&&_0x580fd9();}function _0x4041b9(){const _0x37614c=window[_0x256fd8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x256fd8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x256fd8([0x6e,0x6f,0x77])]())[_0x256fd8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x256fd8([0x2e]),'');let _0x290d54=_0x256fd8([0x72]);for(let _0x3d7338=0x0;_0x3d7338<_0x37614c[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d7338+=0x2){let _0x3a12c8=window[_0x256fd8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37614c[_0x256fd8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d7338,_0x3d7338+0x2));_0x3a12c8>=_0x27f1b5[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3a12c8-=_0x27f1b5[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x290d54+=_0x27f1b5[_0x3a12c8];}return _0x290d54;}function _0x27775d(){const _0x374ba5=_0x92daed[_0x256fd8([0x73,0x70,0x6c,0x69,0x74])](_0x256fd8([0x2e]));if(0x3!=_0x374ba5[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e3303(_0x374ba5[0x1]);function _0x2e3303(_0x3c1f23){const _0x571ca2=_0x365560(_0x3c1f23);return _0x571ca2&&_0x16e9f2()?_0x571ca2:null;function _0x16e9f2(){const _0x2e7958=_0x571ca2[_0x256fd8([0x6a,0x74,0x69])],_0x3f8288=window[_0x256fd8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e7958[_0x256fd8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e7958[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53ea8f={..._0x571ca2,[_0x256fd8([0x6a,0x74,0x69])]:_0x2e7958[_0x256fd8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e7958[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53ea8f[_0x256fd8([0x76,0x63])],_0x2cb908(_0x53ea8f)==_0x3f8288;}}}async function _0x437472(){let _0x4cf725=!0x0;try{const _0x4a5e1f=_0x92daed[_0x256fd8([0x73,0x70,0x6c,0x69,0x74])](_0x256fd8([0x2e])),[_0x7566ab,_0x57cd3c,_0x481465]=_0x4a5e1f;return _0x416a42(_0x7566ab),await _0x5bf281(_0x7566ab,_0x57cd3c,_0x481465),_0x4cf725;}catch{return!0x1;}function _0x416a42(_0x54a4c5){const _0x1fb8eb=_0x365560(_0x54a4c5);_0x1fb8eb&&_0x1fb8eb[_0x256fd8([0x61,0x6c,0x67])]==_0x256fd8([0x45,0x53,0x32,0x35,0x36])||(_0x4cf725=!0x1);}async function _0x5bf281(_0x4f4772,_0x320e1c,_0x5acbbe){const _0x3ef66c=window[_0x256fd8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x256fd8([0x66,0x72,0x6f,0x6d])](_0x5b7999(_0x5acbbe),_0x3f35d1=>_0x3f35d1[_0x256fd8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2cb4ba=new window[(_0x256fd8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x256fd8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f4772+_0x256fd8([0x2e])+_0x320e1c),_0x4b40a2=window[_0x256fd8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x256fd8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b40a2)return;const _0x32157a=await _0x4b40a2[_0x256fd8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x256fd8([0x6a,0x77,0x6b]),_0x3f0798,{[_0x256fd8([0x6e,0x61,0x6d,0x65])]:_0x256fd8([0x45,0x43,0x44,0x53,0x41]),[_0x256fd8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x256fd8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x256fd8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b40a2[_0x256fd8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x256fd8([0x6e,0x61,0x6d,0x65])]:_0x256fd8([0x45,0x43,0x44,0x53,0x41]),[_0x256fd8([0x68,0x61,0x73,0x68])]:{[_0x256fd8([0x6e,0x61,0x6d,0x65])]:_0x256fd8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x32157a,_0x3ef66c,_0x2cb4ba)||(_0x4cf725=!0x1);}}function _0x365560(_0x55e1b8){return _0x55e1b8[_0x256fd8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x256fd8([0x65,0x79]))?JSON[_0x256fd8([0x70,0x61,0x72,0x73,0x65])](_0x5b7999(_0x55e1b8)):null;}function _0x5b7999(_0x585296){return window[_0x256fd8([0x61,0x74,0x6f,0x62])](_0x585296[_0x256fd8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x256fd8([0x2b]))[_0x256fd8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x256fd8([0x2f])));}function _0x2cb908(_0x3be1c6){let _0x4f5ee8=0x1505;function _0x27a9ae(_0x18f280){for(let _0x118f20=0x0;_0x118f20<_0x18f280[_0x256fd8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x118f20++){const _0x11aa64=_0x18f280[_0x256fd8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x118f20);_0x4f5ee8=(_0x4f5ee8<<0x5)+_0x4f5ee8+_0x11aa64,_0x4f5ee8&=_0x4f5ee8;}}function _0x1ec3ca(_0x285bcf){Array[_0x256fd8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x285bcf)?_0x285bcf[_0x256fd8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1ec3ca):_0x285bcf&&typeof _0x285bcf==_0x256fd8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x256fd8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x285bcf)[_0x256fd8([0x73,0x6f,0x72,0x74])]()[_0x256fd8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3d0dda,_0x51b385])=>{_0x27a9ae(_0x3d0dda),_0x1ec3ca(_0x51b385);}):_0x27a9ae(window[_0x256fd8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x285bcf));}return _0x1ec3ca(_0x3be1c6),_0x4f5ee8>>>0x0;}function _0x5a65eb(_0x5d8e0f){return _0x5d8e0f[_0x256fd8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x256fd8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x256fd8([0x30]));}function _0x4a16d6(_0x10e370){return _0x10e370[_0x256fd8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x256fd8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x256fd8([0x6a,0x6f,0x69,0x6e])]('');}function _0x15d260(){}function _0x256fd8(_0x575f40){return _0x575f40['map'](_0x350187=>String['fromCharCode'](_0x350187))['join']('');}_0x19757a(await _0x57c9e7());}(this);}['_initSchema'](){const _0x528410=this['editor']['model']['schema'];_0x528410['isRegistered']('imageBlock')&&_0x528410['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x528410['isRegistered']('imageInline')&&_0x528410['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x44e282=this['editor'];_0x44e282['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x44e282['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1b9243=>_0x1b9243['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x7aaa04=_0x44e282['commands']['get']('replaceImageSource');_0x7aaa04&&this['listenTo'](_0x7aaa04,'cleanupImage',(_0x2228d9,[_0x1b1b3c,_0x3620d3])=>{_0x1b1b3c['removeAttribute']('uploadcareImageId',_0x3620d3);});}['_initConfig'](){const _0x2eba45=this['editor']['config']['get']('uploadcare.uploader')||{},_0x357b34=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x119a96(_0x185c34['document'],'uc-config',{..._0x2eba45,'pubkey':_0x357b34,'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']=_0xb6a9c=>{if('closeMax'==_0xb6a9c)return'#uc-icon-arrow-down';},_0x185c34['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x119a96(_0x185c34['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x185c34['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x50f643=this['editor']['commands']['get']('insertImage');_0x50f643&&this['listenTo'](_0x50f643,'execute',()=>{const _0x4c4673=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c4673&&_0x4c4673['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4c4673);});});const _0x4873c2=this['editor']['commands']['get']('uploadcareImageReplace');_0x4873c2&&this['listenTo'](_0x4873c2,'execute',()=>{const _0x324acd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x324acd&&_0x324acd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x324acd);});});}}class tt extends _0xf6fbe1{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x15cf2b){super(_0x15cf2b),_0x15cf2b['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x48c0cb['defineComponents'](_0x48c0cb);}}class ii extends _0x41df65{constructor(_0x16fbbc){super(_0x16fbbc);const t=_0x16fbbc['t'],_0x2c5804=this['bindTemplate'],_0x519816=new _0xd3f9c8();_0x519816['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':[_0x519816,{'text':_0x2c5804['to']('imageUploadProgress',_0x94d48b=>t('Loading\x20image...')+'\x20('+(_0x94d48b||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 _0x41df65{constructor(_0x60f71d){super(_0x60f71d);const t=_0x60f71d['t'];this['set']('errorType',null);const _0x49f67d=new _0x19c8b2(_0x60f71d);_0x49f67d['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x49f67d['withText']=!0x0,_0x49f67d['class']='ck-button-action',_0x49f67d['on']('execute',()=>{this['fire']('retry');}),_0x49f67d['bind']('isVisible')['to'](this,'errorType',_0x5174d5=>'NotFound'!==_0x5174d5);const _0x37f0f8=new _0x238f30();_0x37f0f8['content']=_0x227ea7,_0x37f0f8['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xddad08=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':[_0x37f0f8,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xddad08['to']('errorType',_0x97c1ad=>t('NotFound'!==_0x97c1ad?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x49f67d]},{'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 _0x41df65{constructor(_0x3edb69,_0x4cf61){super(_0x3edb69);const _0x38157b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4cf61,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x38157b['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x35454b,_0x113dcb,_0xeaf221){super(_0x35454b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x35454b),this['_errorView']=new ti(_0x35454b),this['_editingView']=new ei(_0x35454b,_0xeaf221),this['_focusableView']=new _0x41df65(_0x35454b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x113dcb),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'],_0x280629=>{this['_addUploadcareImageEditorListeners'](_0x280629);});}),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'](_0x102c75,_0x589d30){const _0x5303a5='uc-cloud-image-editor',_0x2b1971=_0x102c75['querySelector'](_0x5303a5);if(_0x2b1971)return _0x589d30(_0x2b1971);const _0xc6f28c=new MutationObserver(_0x439659=>{const _0x45f4b1=_0x439659['filter'](_0x2cded6=>_0x2cded6['target']===_0x102c75&&_0x2cded6['addedNodes']['length']>0x0&&_0x2cded6['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5303a5);_0x45f4b1['length']&&(_0xc6f28c['disconnect'](),_0x589d30(_0x45f4b1[0x0]['addedNodes'][0x0]));});_0xc6f28c['observe'](_0x102c75,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4966ec){_0x4966ec['addEventListener']('apply',_0x31212d=>{this['fire']('apply',{'imageSrc':_0x31212d['detail']['cdnUrl']});}),_0x4966ec['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x153c81(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2b76a5,_0x1d51a6,_0x5444e6){super(),this['_editor']=_0x2b76a5,this['_dialog']=_0x1d51a6,this['_imageElement']=_0x5444e6,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 _0x1d6042=this['_imageElement'],_0x2b5b4d=_0x1d6042['getAttribute']('uploadcareImageId'),_0x1a8109=_0x1d6042['getAttribute']('src');if(_0x2b5b4d)await this['_loadImageInfo'](_0x2b5b4d,_0x1a8109);else{if(this['_imageCache']['has'](_0x1a8109)){const _0x3e5eef=this['_imageCache']['get'](_0x1a8109);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3e5eef['url'],this['imageDimension']=_0x3e5eef['dimension'],this['imageId']=_0x3e5eef['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x13d424}=this['_editor'],t=_0x13d424['t'],_0x5253ba=new X(_0x13d424,this['imageStatus'],this['_attributes']);_0x5253ba['bind']('status')['to'](this,'imageStatus'),_0x5253ba['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5253ba['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5253ba['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5253ba,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x52ad18,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5253ba,'position':_0x1681aa['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5253ba['focus']();},'onHide':()=>{_0x5253ba['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x17deb6=>!S(_0x17deb6,_0x5253ba['element'])}});}['_loadImageInfo'](_0x44d1d1,_0x255632){return j['getInfo'](_0x44d1d1,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x4565b8=>{const {width:_0x21b653,height:_0x22a102}=_0x4565b8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x255632,this['imageDimension']={'width':_0x21b653,'height':_0x22a102},this['imageId']=_0x44d1d1;})['catch'](_0x1b6db6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1b6db6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3da3dc,_0x11ee47){return this['_getImageAsFile'](_0x3da3dc)['then'](_0x56e2f0=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x11ee47['signal'],'file':_0x56e2f0,'onProgress':_0x514bf2=>{_0x514bf2&&_0x514bf2['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x514bf2['value']));}}))['then'](_0x51b1d6=>{const {width:_0x10fac3,height:_0xb9074a}=_0x51b1d6['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x51b1d6['cdnUrl'],this['imageDimension']={'width':_0x10fac3,'height':_0xb9074a},this['imageId']=_0x51b1d6['uuid'],this['imageUploadProgress']=null;const _0x2a37c7=_0x3da3dc['getAttribute']('src');this['_imageCache']['set'](_0x2a37c7,{'id':_0x51b1d6['uuid'],'url':_0x51b1d6['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2c9274=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2c9274['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2589a7,_0x576048){_0x2589a7['on']('apply',(_0x36a30a,_0x168148)=>{this['_replaceImage'](_0x576048,_0x168148['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2589a7['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2589a7['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x19ce17,_0xedbd04,_0x2ede18){const _0x3af515=this['_editor'],{width:_0x2c456d,height:_0x2318c9}=C(_0xedbd04,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x33441e,imageSources:_0x410c2b}=k(_0xedbd04,_0x2c456d);_0x3af515['model']['change'](_0x351289=>{if('$graveyard'===_0x19ce17['root']['rootName']){_0x3af515['execute']('insertImage',{'imageType':_0x19ce17['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x19ce17['getAttributes']()),'uploadcareImageId':_0x2ede18,'src':_0x33441e,'sources':_0x410c2b,'width':_0x2c456d,'height':_0x2318c9}});const _0x5f5804=_0x19ce17['getChildren']();_0x19ce17=_0x3af515['model']['document']['selection']['getSelectedElement']();for(const _0x21785e of _0x5f5804)_0x351289['append'](_0x351289['cloneElement'](_0x21785e),_0x19ce17);}else _0x351289['setSelection'](_0x19ce17,'on'),_0x3af515['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x19ce17['getAttributes']()),'uploadcareImageId':_0x2ede18,'src':_0x33441e,'sources':_0x410c2b,'width':_0x2c456d,'height':_0x2318c9},_0x19ce17);_0x351289['setSelection'](_0x19ce17,'on');});}async['_getImageAsFile'](_0xf8ec69){const _0x487e70=_0x185c34['window'],_0x46f61d=_0x185c34['document']['location']['href'],_0x4da45d=new _0x487e70['URL'](_0xf8ec69['getAttribute']('src'),_0x46f61d);if('data:'===_0x4da45d['protocol']){const _0x4f6a06=_0x4da45d['href']['split'](','),_0x593abd=_0x4f6a06[0x0]['match'](/:(.*?);/)[0x1],_0x52b5fa=_0x593abd['split']('/')[0x1],_0x5b16f6=_0x487e70['atob'](_0x4f6a06[_0x4f6a06['length']-0x1]);let _0x279810=_0x5b16f6['length'];const _0x6068e7=new _0x487e70['Uint8Array'](_0x279810);for(;_0x279810--;)_0x6068e7[_0x279810]=_0x5b16f6['charCodeAt'](_0x279810);return new _0x487e70['File']([_0x6068e7],'image.'+_0x52b5fa,{'type':_0x593abd});}const _0xddac75=_0x4da45d['href']['split']('/'),_0xc2bc08=_0xddac75[_0xddac75['length']-0x1],_0x1a8740=_0xc2bc08['split']('.')[0x1];return _0x487e70['fetch'](_0x4da45d['href'])['then'](_0x40fec5=>_0x40fec5['clone']()['blob']())['then'](_0x1b8d8d=>new _0x487e70['File']([_0x1b8d8d],_0xc2bc08,{'type':'image/'+_0x1a8740}));}}class O extends _0x7ffec3{['imageEditController'];static get['requires'](){return[_0x4d119e];}['_isEditable'];constructor(_0x6d2bf8){super(_0x6d2bf8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1d467a){const _0x406df0=G(_0x1d467a);return _0x384af5=>!(!_0x384af5||!_0x384af5['is']('element','imageBlock')&&!_0x384af5['is']('element','imageInline'))&&(!!_0x384af5['hasAttribute']('uploadcareImageId')||!!_0x384af5['hasAttribute']('src')&&_0x406df0(_0x384af5['getAttribute']('src')));}(_0x6d2bf8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x586f85=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x586f85);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3d130f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3d130f&&(_0x3d130f['is']('element','imageBlock')||_0x3d130f['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x4d119e),_0x3d130f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x7ffec3{['refresh'](){const _0x4ed495=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4ed495&&(_0x4ed495['is']('element','imageBlock')||_0x4ed495['is']('element','imageInline')));}['execute'](_0x3ee331){const _0x2e0537=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2125e3=>{_0x2125e3['setAttributes'](_0x3ee331,_0x2e0537),_0x2125e3['removeAttribute']('srcset',_0x2e0537),_0x2125e3['removeAttribute']('sizes',_0x2e0537);});}}class m extends _0xf6fbe1{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x551a71,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd782d5}=this;_0xd782d5['commands']['add']('uploadcareImageEdit',new O(_0xd782d5)),_0xd782d5['commands']['add']('uploadcareImageReplace',new R(_0xd782d5));}}class g extends _0xf6fbe1{['_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 _0x4502fa=this['editor'];_0x4502fa['ui']['componentFactory']['add']('uploadcareImageEdit',_0x50a426=>{const _0x9a5198=_0x4502fa['commands']['get']('uploadcareImageEdit'),_0x285e89=new _0x19c8b2(_0x50a426),t=_0x50a426['t'];return _0x285e89['set']({'icon':_0x52ad18,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x285e89['bind']('isEnabled')['to'](_0x9a5198),_0x285e89['bind']('isOn')['to'](_0x9a5198,'isActive'),this['listenTo'](_0x285e89,'execute',()=>{_0x4502fa['execute']('uploadcareImageEdit'),_0x4502fa['editing']['view']['focus']();}),_0x285e89;}),this['_initConfig']();}['_initConfig'](){const _0x2e15df=_0x119a96(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2e15df),this['listenTo'](this['editor'],'destroy',()=>{_0x2e15df['remove']();});}}class et extends _0xf6fbe1{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "46.0.1-alpha.
|
|
3
|
+
"version": "46.0.1-alpha.3",
|
|
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": "46.0.1-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "46.0.1-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "46.0.1-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "46.0.1-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.
|
|
33
|
-
"ckeditor5": "46.0.1-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "46.0.1-alpha.3",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "46.0.1-alpha.3",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "46.0.1-alpha.3",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.3",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.3",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "46.0.1-alpha.3",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.3",
|
|
33
|
+
"ckeditor5": "46.0.1-alpha.3",
|
|
34
34
|
"@uploadcare/file-uploader": "1.17.1",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x3a0995=_0x269e;(function(_0x10ee5d,_0x4b833f){const _0xe34e88=_0x269e,_0xd70319=_0x10ee5d();while(!![]){try{const _0x566d20=parseInt(_0xe34e88(0x1c2))/0x1*(-parseInt(_0xe34e88(0x1d6))/0x2)+-parseInt(_0xe34e88(0x1b5))/0x3+-parseInt(_0xe34e88(0x1df))/0x4*(-parseInt(_0xe34e88(0x1fa))/0x5)+parseInt(_0xe34e88(0x1e4))/0x6+-parseInt(_0xe34e88(0x1de))/0x7*(parseInt(_0xe34e88(0x1cf))/0x8)+parseInt(_0xe34e88(0x1bd))/0x9*(-parseInt(_0xe34e88(0x1c8))/0xa)+-parseInt(_0xe34e88(0x1cd))/0xb*(-parseInt(_0xe34e88(0x1b2))/0xc);if(_0x566d20===_0x4b833f)break;else _0xd70319['push'](_0xd70319['shift']());}catch(_0x4d5e3a){_0xd70319['push'](_0xd70319['shift']());}}}(_0x2fb2,0x5b510));import{IconUploadcareImageUpload as _0x198c59}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x2d9305}from'ckeditor5/src/utils.js';import{Dialog as _0x589a29,DialogViewPosition as _0x34c81f}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x45c30a}from'./uploadcareformview.js';function _0x2fb2(){const _0xedb1bd=['uuid','initFlow','document','_editor','36MkKXVl','_api','_initDialog','plugins','insertImage','3049UBpxoc','hide','configElement','_insertImage','doneFlow','_formView','585290RcizTu','setCurrentActivity','editing','getSelectedElement','addEventListener','33gklAth','removeSelectionAttribute','408AlDAzR','_dialog','getOutputCollectionState','_initListeners','show','focus','destroy','382LMODyr','stopListening','attributes','setAttribute','width','imageInline','ctxElement','getAPI','27804DnhupE','237628nIHDIz','change','image','uploadCare','imageBlock','2146656fdihVL','setSelection','text','model','getLastPosition','selection','_insertAsset','ucContextId','linkHref','allEntries','detail','view','source-list','_editing','done-click','idle','EDITOR_TOP_CENTER','length','isOpen','stopDelegating','Insert','status','25QamIcx','Local','Replace','element','4866300qEGTqz','_type','imageInfo','1434921EelliA','execute','get','removeAllFiles'];_0x2fb2=function(){return _0xedb1bd;};return _0x2fb2();}import{UploadcareSource as _0x3a5606}from'../uploadcareconfig.js';import{getTranslation as _0x903396}from'../utils/common-translations.js';function _0x269e(_0x27a52e,_0x49d21a){const _0x2fb265=_0x2fb2();return _0x269e=function(_0x269e31,_0x53ea5e){_0x269e31=_0x269e31-0x1af;let _0x3fc5ab=_0x2fb265[_0x269e31];return _0x3fc5ab;},_0x269e(_0x27a52e,_0x49d21a);}import{getImageUrls as _0x4962ea,getImageDimension as _0x4e7272}from'../utils/editingutils.js';import{isAncestor as _0x4a0821}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2d9305(){[_0x3a0995(0x1bc)];[_0x3a0995(0x1d0)];[_0x3a0995(0x1f1)];[_0x3a0995(0x1be)];[_0x3a0995(0x1b3)]=null;[_0x3a0995(0x1c7)]=null;constructor(_0x28aa54,_0xd24d48,_0x4d3382){const _0x5ed000=_0x3a0995;super(),this[_0x5ed000(0x1bc)]=_0x28aa54,this[_0x5ed000(0x1f1)]=_0xd24d48,this[_0x5ed000(0x1d0)]=_0x28aa54[_0x5ed000(0x1c0)][_0x5ed000(0x1b7)](_0x589a29),this[_0x5ed000(0x1be)]=_0xd24d48[_0x5ed000(0x1dc)][_0x5ed000(0x1dd)](),this[_0x5ed000(0x1b3)]=_0x4d3382,this[_0x5ed000(0x1f1)][_0x5ed000(0x1c4)][_0x5ed000(0x1d9)](_0x5ed000(0x1f0),this[_0x5ed000(0x1b3)]),this[_0x5ed000(0x1bf)](),this[_0x5ed000(0x1d2)](),this[_0x5ed000(0x1be)][_0x5ed000(0x1ba)]();}[_0x3a0995(0x1d5)](){const _0x4d2f02=_0x3a0995;this[_0x4d2f02(0x1c7)]&&(this[_0x4d2f02(0x1c7)][_0x4d2f02(0x1d5)](),this[_0x4d2f02(0x1c7)]=null),this[_0x4d2f02(0x1be)]&&this[_0x4d2f02(0x1be)][_0x4d2f02(0x1c6)](),this[_0x4d2f02(0x1d7)](),this[_0x4d2f02(0x1f7)]();}[_0x3a0995(0x1bf)](){const _0x164d96=_0x3a0995,{locale:_0x518353,model:_0x13e865}=this[_0x164d96(0x1bc)],_0x2f4328=_0x13e865[_0x164d96(0x1bb)][_0x164d96(0x1e9)][_0x164d96(0x1cb)](),_0x43701d=_0x2f4328&&(_0x2f4328['is'](_0x164d96(0x1b1),_0x164d96(0x1e3))||_0x2f4328['is'](_0x164d96(0x1b1),_0x164d96(0x1db)));this[_0x164d96(0x1c7)]=new _0x45c30a(_0x518353,this[_0x164d96(0x1f1)][_0x164d96(0x1eb)]),this[_0x164d96(0x1d0)][_0x164d96(0x1d3)]({'id':_0x164d96(0x1e2),'icon':_0x198c59,'title':_0x903396(_0x518353,this[_0x164d96(0x1b3)],_0x43701d?_0x164d96(0x1b0):_0x164d96(0x1f8))[_0x164d96(0x1e6)],'content':this[_0x164d96(0x1c7)],'position':_0x34c81f[_0x164d96(0x1f4)],'isModal':!0x0,'onShow':()=>{const _0x5b95e6=_0x164d96;this[_0x5b95e6(0x1c7)][_0x5b95e6(0x1d4)]();},'onHide':()=>{const _0x473013=_0x164d96;this[_0x473013(0x1be)][_0x473013(0x1b8)](),this[_0x473013(0x1bc)][_0x473013(0x1ca)][_0x473013(0x1ef)][_0x473013(0x1d4)](),this[_0x473013(0x1d5)]();},'keystrokeHandlerOptions':{'filter':_0x53d450=>!_0x4a0821(_0x53d450,this[_0x164d96(0x1c7)][_0x164d96(0x1b1)])}});}[_0x3a0995(0x1d2)](){const _0x4a12f6=_0x3a0995;this[_0x4a12f6(0x1f1)][_0x4a12f6(0x1dc)][_0x4a12f6(0x1cc)](_0x4a12f6(0x1f2),()=>{const _0x4fa435=_0x4a12f6,{allEntries:_0x1fb63e}=this[_0x4fa435(0x1be)][_0x4fa435(0x1d1)]();this[_0x4fa435(0x1bc)][_0x4fa435(0x1e7)][_0x4fa435(0x1e0)](_0x4e0df6=>{const _0x52b35d=_0x4fa435,_0x505e88=_0x1fb63e[_0x52b35d(0x1f5)];for(const _0x378688 of _0x1fb63e){const _0x27b7fa=_0x378688===_0x1fb63e[_0x505e88-0x1],{cdnUrl:_0x2f9270,fileInfo:_0x484016}=_0x378688;if(!_0x2f9270||!_0x484016)continue;const {width:_0x2f89d6,height:_0x42d257}=_0x484016[_0x52b35d(0x1b4)],_0x49c004=_0x4e7272(_0x2f9270,_0x2f89d6,_0x42d257),_0x295f7e=_0x4962ea(_0x2f9270,_0x49c004[_0x52b35d(0x1da)]),_0x1fc233={'id':_0x484016[_0x52b35d(0x1b9)],'type':_0x52b35d(0x1e1),'attributes':{'imageDimension':_0x49c004,..._0x295f7e}};this[_0x52b35d(0x1ea)](_0x1fc233,_0x27b7fa,_0x4e0df6);}}),this[_0x4fa435(0x1d0)][_0x4fa435(0x1c3)]();}),this[_0x4a12f6(0x1f1)][_0x4a12f6(0x1dc)][_0x4a12f6(0x1cc)](_0x4a12f6(0x1e0),_0x41c227=>{const _0x168158=_0x4a12f6;_0x168158(0x1f3)===_0x41c227[_0x168158(0x1ee)][_0x168158(0x1f9)]&&!_0x41c227[_0x168158(0x1ee)][_0x168158(0x1ed)][_0x168158(0x1f5)]&&this[_0x168158(0x1d0)][_0x168158(0x1f6)]&&(this[_0x168158(0x1b3)]===_0x3a5606[_0x168158(0x1af)]?this[_0x168158(0x1be)][_0x168158(0x1c9)](_0x3a5606[_0x168158(0x1af)]):this[_0x168158(0x1be)][_0x168158(0x1ba)]());});}[_0x3a0995(0x1ea)](_0x4bddf,_0x5b677b,_0x3a540c){const _0x308b96=_0x3a0995,_0x4bc43d=this[_0x308b96(0x1bc)][_0x308b96(0x1e7)][_0x308b96(0x1bb)][_0x308b96(0x1e9)],_0x22671c=_0x4bc43d[_0x308b96(0x1cb)](),_0x3eb186=!(!_0x22671c||!_0x22671c['is'](_0x308b96(0x1b1),_0x308b96(0x1db)));_0x3a540c[_0x308b96(0x1ce)](_0x308b96(0x1ec)),this[_0x308b96(0x1c5)](_0x4bddf,_0x3eb186),_0x5b677b||_0x3a540c[_0x308b96(0x1e5)](_0x4bc43d[_0x308b96(0x1e8)]());}[_0x3a0995(0x1c5)](_0x362324,_0x2976cc){const _0x28e34b=_0x3a0995,_0x417224=this[_0x28e34b(0x1bc)],{imageDimension:_0x5c52bf,imageFallbackUrl:_0x21fb1f,imageSources:_0x47482c}=_0x362324[_0x28e34b(0x1d8)];_0x417224[_0x28e34b(0x1b6)](_0x28e34b(0x1c1),{'imageType':_0x2976cc?_0x28e34b(0x1db):null,'source':{'uploadcareImageId':_0x362324['id'],'src':_0x21fb1f,'sources':_0x47482c,..._0x5c52bf}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x355a5e=_0x3b72;(function(_0x123aa9,_0x51e669){var _0x31245f=_0x3b72,_0x3c413b=_0x123aa9();while(!![]){try{var _0x56e8cd=parseInt(_0x31245f(0x153))/0x1+-parseInt(_0x31245f(0x14d))/0x2+parseInt(_0x31245f(0x154))/0x3+parseInt(_0x31245f(0x14e))/0x4*(parseInt(_0x31245f(0x157))/0x5)+parseInt(_0x31245f(0x14b))/0x6*(parseInt(_0x31245f(0x147))/0x7)+-parseInt(_0x31245f(0x14a))/0x8*(parseInt(_0x31245f(0x14f))/0x9)+-parseInt(_0x31245f(0x159))/0xa*(parseInt(_0x31245f(0x158))/0xb);if(_0x56e8cd===_0x51e669)break;else _0x3c413b['push'](_0x3c413b['shift']());}catch(_0x5008b1){_0x3c413b['push'](_0x3c413b['shift']());}}}(_0x2c12,0x1b832));import{DialogFocusManagerView as _0x39c13c}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';function _0x3b72(_0x6a0d98,_0x42f23c){var _0x2c1244=_0x2c12();return _0x3b72=function(_0x3b72b4,_0x23b756){_0x3b72b4=_0x3b72b4-0x145;var _0x1d26d6=_0x2c1244[_0x3b72b4];return _0x1d26d6;},_0x3b72(_0x6a0d98,_0x42f23c);}function _0x2c12(){var _0x5f4bd0=['focus','245zoDDbV','431134hBgZRJ','10TjaAle','uploader-','uc-light','uc-file-uploader-inline','1519JfnfyU','element','ck-uploadcare-theme','92368yLyDmh','3666bwYMmw','ck-uploadcare-form','155754ceUjUp','7864xheaGh','126qVSCyl','ck-reset_all-excluded','setTemplate','div','105497UVTAUS','170961bTmFme','getFocusableElement'];_0x2c12=function(){return _0x5f4bd0;};return _0x2c12();}export class UploadcareFormView extends _0x39c13c{constructor(_0xf51076,_0x5ab254){var _0x33d4c8=_0x3b72;super(_0xf51076),this[_0x33d4c8(0x151)]({'tag':_0x33d4c8(0x152),'attributes':{'class':['ck',_0x33d4c8(0x150),_0x33d4c8(0x14c)],'tabindex':'-1'},'children':[{'tag':_0x33d4c8(0x146),'attributes':{'class':[_0x33d4c8(0x145),_0x33d4c8(0x149)],'ctx-name':_0x33d4c8(0x15a)+_0x5ab254}},this[_0x33d4c8(0x155)]()]});}[_0x355a5e(0x156)](){var _0x4035ec=_0x355a5e;this[_0x4035ec(0x148)][_0x4035ec(0x156)]();}}
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x31f073=_0x2d95;function _0x2d95(_0x3e81da,_0x109967){const _0x290cf9=_0x290c();return _0x2d95=function(_0x2d9501,_0x387e5e){_0x2d9501=_0x2d9501-0x1c7;let _0xb4fa32=_0x290cf9[_0x2d9501];return _0xb4fa32;},_0x2d95(_0x3e81da,_0x109967);}(function(_0x3cd3ae,_0x9e8e9e){const _0x433bea=_0x2d95,_0x1edf99=_0x3cd3ae();while(!![]){try{const _0x46f3f5=-parseInt(_0x433bea(0x1c8))/0x1*(parseInt(_0x433bea(0x1f7))/0x2)+parseInt(_0x433bea(0x1d4))/0x3+parseInt(_0x433bea(0x1eb))/0x4+parseInt(_0x433bea(0x1f0))/0x5+-parseInt(_0x433bea(0x205))/0x6+-parseInt(_0x433bea(0x1d7))/0x7+parseInt(_0x433bea(0x1f4))/0x8;if(_0x46f3f5===_0x9e8e9e)break;else _0x1edf99['push'](_0x1edf99['shift']());}catch(_0x139d04){_0x1edf99['push'](_0x1edf99['shift']());}}}(_0x290c,0xccdde));function _0x290c(){const _0x408716=['getAttribute','UploadcareEditing','execute','ucContextId','locale','_configElement','schema','init','6092844RwqycN','render','_initImageProcessingIndicator','closeMax','remove','for','destroy','editing','data-uc-image-id','requires','commands','uploader-','uploadcareImageId','afterInit','ctxElement','body','isOfficialPlugin','_initSchema','_initConfig','uploadcare','configElement','config','2mPZVQe','querySelector','isRegistered','selection','#uc-icon-arrow-down','replaceImageSource','PictureEditing','attributeToAttribute','contentLanguage','imageInline','getSelectedElement','_initCtx','3174651CZltDL','model','removeAttribute','4823910ZNkHbG','view','uploadcare.uploader','extend','appendChild','iconHrefResolver','downcast','uploadcareImageReplace','_initConversion','map','pluginName','fromCharCode','\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','uc-config','document','join','once','uploadcare.pubkey','conversion','_ctxElement','4539396SqCuxe','input[uploadcare-file-input]','isPremiumPlugin','upcast','cleanupImage','2653125QwmQyL','insertImage','href','listenTo','68200hEgQXl','get','imageBlock','188478Cjycnw','elementToAttribute','true','editor','add','uc-upload-ctx-provider'];_0x290c=function(){return _0x408716;};return _0x290c();}import{Plugin as _0x32a97c}from'ckeditor5/src/core.js';import{Dialog as _0x18da63}from'ckeditor5/src/ui.js';import{createElement as _0x5235b7,global as _0x56910f,uid as _0x50f9cd}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x371dd8}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x476d16}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x57cc05}from'./utils/editingutils.js';export class UploadcareEditing extends _0x32a97c{[_0x31f073(0x202)]=null;[_0x31f073(0x1ea)]=null;static get[_0x31f073(0x1e1)](){const _0x2033ee=_0x31f073;return _0x2033ee(0x1fe);}static get[_0x31f073(0x20e)](){const _0xd73312=_0x31f073;return[_0xd73312(0x1ce),_0x476d16,_0x18da63];}static get[_0x31f073(0x215)](){return!0x0;}static get[_0x31f073(0x1ed)](){return!0x0;}[_0x31f073(0x200)];get[_0x31f073(0x219)](){const _0x616012=_0x31f073;return this[_0x616012(0x202)];}get[_0x31f073(0x213)](){const _0x42387a=_0x31f073;return this[_0x42387a(0x1ea)];}constructor(_0x5bc9b8){const _0x379e4e=_0x31f073;super(_0x5bc9b8),this[_0x379e4e(0x200)]=_0x50f9cd();}[_0x31f073(0x204)](){const _0x3dfe0b=_0x31f073,_0x1aed76=this[_0x3dfe0b(0x1fa)];_0x1aed76[_0x3dfe0b(0x20f)][_0x3dfe0b(0x1fb)](_0x3dfe0b(0x218),new _0x371dd8(_0x1aed76));}[_0x31f073(0x212)](){const _0x30ff57=_0x31f073;this[_0x30ff57(0x216)](),this[_0x30ff57(0x1df)](),this[_0x30ff57(0x217)](),this[_0x30ff57(0x1d3)](),this[_0x30ff57(0x207)](),this[_0x30ff57(0x1f3)](this[_0x30ff57(0x1fa)],_0x30ff57(0x20b),()=>{const _0x3c6cb9=_0x30ff57;this[_0x3c6cb9(0x202)]&&(this[_0x3c6cb9(0x202)][_0x3c6cb9(0x209)](),this[_0x3c6cb9(0x202)]=null),this[_0x3c6cb9(0x1ea)]&&(this[_0x3c6cb9(0x1ea)][_0x3c6cb9(0x209)](),this[_0x3c6cb9(0x1ea)]=null);const _0x166300=_0x56910f[_0x3c6cb9(0x1e5)][_0x3c6cb9(0x1c9)](_0x3c6cb9(0x1ec));_0x166300&&_0x166300[_0x3c6cb9(0x209)]();}),async function(_0x42864e){const _0x453dfe=_0x1b293f([0x44,0x32,0x6e,0x45,0x75,0x78,0x71,0x74,0x66,0x37,0x53,0x4a,0x4b,0x58,0x59,0x61,0x54,0x6c,0x5a,0x56,0x46,0x6f,0x73,0x30,0x33,0x79,0x69,0x42,0x67,0x64,0x43,0x4e,0x41,0x35,0x68,0x39,0x76,0x57,0x65,0x63,0x4f,0x62,0x77,0x55,0x51,0x34,0x6d,0x31,0x49,0x7a,0x4d,0x6b,0x72,0x4c,0x47,0x36,0x52,0x48,0x50,0x6a,0x70,0x38]),_0x40a0cc=0x2dea5ccc,_0x12d47a=0x2ded33f4^_0x40a0cc,_0x3b5d4e=window[_0x1b293f([0x44,0x61,0x74,0x65])][_0x1b293f([0x6e,0x6f,0x77])](),_0x435594=_0x42864e[_0x1b293f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x464699=new window[(_0x1b293f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11402e=>{_0x435594[_0x1b293f([0x6f,0x6e,0x63,0x65])](_0x1b293f([0x72,0x65,0x61,0x64,0x79]),_0x11402e);}),_0x348996={[_0x1b293f([0x6b,0x74,0x79])]:_0x1b293f([0x45,0x43]),[_0x1b293f([0x75,0x73,0x65])]:_0x1b293f([0x73,0x69,0x67]),[_0x1b293f([0x63,0x72,0x76])]:_0x1b293f([0x50,0x2d,0x32,0x35,0x36]),[_0x1b293f([0x78])]:_0x1b293f([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]),[_0x1b293f([0x79])]:_0x1b293f([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]),[_0x1b293f([0x61,0x6c,0x67])]:_0x1b293f([0x45,0x53,0x32,0x35,0x36])},_0x5a942e=_0x435594[_0x1b293f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1b293f([0x67,0x65,0x74])](_0x1b293f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x10ec57(){let _0x11cbe2,_0x521590=null,_0x1960c4=null;try{if(_0x5a942e==_0x1b293f([0x47,0x50,0x4c]))return _0x1b293f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11cbe2=_0x3e438d(),!_0x11cbe2)return _0x1b293f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11cbe2[_0x1b293f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1960c4=_0x58a4a9(_0x11cbe2[_0x1b293f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11cbe2[_0x1b293f([0x6a,0x74,0x69])])),await _0x4c43b0()?_0x237433()?_0x5456dc()?_0x1b293f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2db1c6()?(_0x11cbe2[_0x1b293f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b293f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x521590=_0x4a88df(_0x1b293f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11cbe2[_0x1b293f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b293f([0x74,0x72,0x69,0x61,0x6c])&&(_0x521590=_0x4a88df(_0x1b293f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c8ccf()):_0x1b293f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1b293f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1b293f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1b293f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5456dc(){const _0xb29e34=[_0x1b293f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1b293f([0x74,0x72,0x69,0x61,0x6c])][_0x1b293f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11cbe2[_0x1b293f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3b5d4e/0x3e8:0xe10*_0x12d47a;return _0x11cbe2[_0x1b293f([0x65,0x78,0x70])]<_0xb29e34;}function _0x237433(){const _0x3ed6a4=_0x11cbe2[_0x1b293f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ed6a4&&(!!_0x3ed6a4[_0x1b293f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b293f([0x2a]))||!!_0x3ed6a4[_0x1b293f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b293f([0x55,0x50,0x4c,0x43])));}function _0x2db1c6(){const _0x59f047=_0x2d95,_0x4c7960=_0x11cbe2[_0x1b293f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c7960||0x0==_0x4c7960[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x103554}=new URL(window[_0x1b293f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x59f047(0x1f2)]);if(_0x4c7960[_0x1b293f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x103554))return!0x0;const _0x4c4bb6=_0x103554[_0x1b293f([0x73,0x70,0x6c,0x69,0x74])](_0x1b293f([0x2e]));return _0x4c7960[_0x1b293f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x548aaf=>_0x548aaf[_0x1b293f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b293f([0x2a])))[_0x1b293f([0x6d,0x61,0x70])](_0x1e336c=>_0x1e336c[_0x1b293f([0x73,0x70,0x6c,0x69,0x74])](_0x1b293f([0x2e])))[_0x1b293f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x198424=>_0x198424[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4c4bb6[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b293f([0x6d,0x61,0x70])](_0x43eef1=>Array(_0x4c4bb6[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x43eef1[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b293f([0x66,0x69,0x6c,0x6c])](_0x43eef1[0x0]===_0x1b293f([0x2a])?_0x1b293f([0x2a]):'')[_0x1b293f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x43eef1))[_0x1b293f([0x73,0x6f,0x6d,0x65])](_0x1071b2=>_0x4c4bb6[_0x1b293f([0x65,0x76,0x65,0x72,0x79])]((_0x1afa4c,_0xf865e4)=>_0x1071b2[_0xf865e4]===_0x1afa4c||_0x1071b2[_0xf865e4]===_0x1b293f([0x2a])));}function _0x5c8ccf(){return _0x521590&&_0x1960c4?new window[(_0x1b293f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4621bf,_0x126b2d)=>{_0x521590[_0x1b293f([0x74,0x68,0x65,0x6e])](_0x4621bf,_0x126b2d),_0x1960c4[_0x1b293f([0x74,0x68,0x65,0x6e])](_0x57599a=>{_0x57599a!=_0x1b293f([0x56,0x61,0x6c,0x69,0x64])&&_0x4621bf(_0x57599a);},_0x126b2d);}):_0x521590||_0x1960c4||_0x1b293f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x58a4a9(_0x2830b7,_0x2fd015){return new window[(_0x1b293f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x356414=>{if(_0x466b93())return _0x356414(_0x1b293f([0x56,0x61,0x6c,0x69,0x64]));_0xbc2b1d(),_0x435594[_0x1b293f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1b293f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x7b502d=!0x1;const _0x492255=_0x50f9cd();function _0x85131d(_0x38cc1c){return!!_0x38cc1c&&(typeof _0x38cc1c===_0x1b293f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38cc1c===_0x1b293f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38cc1c[_0x1b293f([0x74,0x68,0x65,0x6e])]===_0x1b293f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38cc1c[_0x1b293f([0x63,0x61,0x74,0x63,0x68])]===_0x1b293f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x476b7c(_0x58d134){_0x2ca245(_0x58d134)[_0x1b293f([0x74,0x68,0x65,0x6e])](_0x3605c0=>{if(!_0x3605c0||_0x3605c0[_0x1b293f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1b293f([0x6f,0x6b]))return _0x1b293f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x49d5f9(_0x47fd80(_0x492255+_0x2fd015))!=_0x3605c0[_0x1b293f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1b293f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1b293f([0x56,0x61,0x6c,0x69,0x64]);})[_0x1b293f([0x74,0x68,0x65,0x6e])](_0x4e476d=>(_0x2e7326(),_0x4e476d),()=>{const _0x2b5bd7=_0x11acdd();return null==_0x2b5bd7?(_0x2e7326(),_0x1b293f([0x56,0x61,0x6c,0x69,0x64])):_0x1b293f(_0x3b5d4e-_0x2b5bd7>(0x9e6d8cc^_0x40a0cc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1b293f([0x74,0x68,0x65,0x6e])](_0x356414)[_0x1b293f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x356414(_0x1b293f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27f72f=0x2ddcb24c^_0x40a0cc;function _0x2e7326(){const _0x3a5ea6=_0x1b293f([0x6c,0x6c,0x63,0x74,0x2d])+_0x49d5f9(_0x47fd80(_0x2830b7)),_0x14fb17=_0x450bde(_0x49d5f9(window[_0x1b293f([0x4d,0x61,0x74,0x68])][_0x1b293f([0x63,0x65,0x69,0x6c])](_0x3b5d4e/_0x27f72f)));window[_0x1b293f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b293f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a5ea6,_0x14fb17);}function _0x11acdd(){const _0x536db0=_0x1b293f([0x6c,0x6c,0x63,0x74,0x2d])+_0x49d5f9(_0x47fd80(_0x2830b7)),_0x11e609=window[_0x1b293f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b293f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x536db0);return _0x11e609?window[_0x1b293f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x450bde(_0x11e609),0x10)*_0x27f72f:null;}function _0x2ca245(_0x22a682){return new window[(_0x1b293f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x146e6f,_0x3101ad)=>{_0x22a682[_0x1b293f([0x74,0x68,0x65,0x6e])](_0x146e6f,_0x3101ad),window[_0x1b293f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3101ad,0x2deb880c^_0x40a0cc);});}}_0x435594[_0x1b293f([0x6f,0x6e])](_0x1b293f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x438337,_0x82bdc)=>{if(_0x82bdc[0x0]!=_0x2830b7)return _0x356414(_0x1b293f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x82bdc[0x1]={..._0x82bdc[0x1],[_0x1b293f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x492255};},{[_0x1b293f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b293f([0x68,0x69,0x67,0x68])}),_0x435594[_0x1b293f([0x6f,0x6e])](_0x1b293f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43ca9=>{_0x85131d(_0x43ca9[_0x1b293f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x7b502d=!0x0,_0x476b7c(_0x43ca9[_0x1b293f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1b293f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b293f([0x6c,0x6f,0x77])}),_0x464699[_0x1b293f([0x74,0x68,0x65,0x6e])](()=>{_0x7b502d||_0x356414(_0x1b293f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x466b93(){return _0x435594[_0x1b293f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b293f([0x76,0x69,0x65,0x77])][_0x1b293f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1b293f([0x61,0x75,0x74,0x6f]);}function _0xbc2b1d(){_0x435594[_0x1b293f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b293f([0x76,0x69,0x65,0x77])][_0x1b293f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b293f([0x61,0x75,0x74,0x6f]);}}function _0x4a88df(_0x2c3be9){const _0x5b7dce=[new window[(_0x1b293f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43d69f=>setTimeout(_0x43d69f,0x2de36200^_0x40a0cc)),_0x464699[_0x1b293f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1b293f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x210786=>{let _0x53c878=0x0;_0x435594[_0x1b293f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b293f([0x6f,0x6e])](_0x1b293f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x19f602,_0x9001e7)=>{_0x9001e7[0x0][_0x1b293f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x53c878++,_0x53c878==(0x2dea5d34^_0x40a0cc)&&(_0x210786(),_0x19f602[_0x1b293f([0x6f,0x66,0x66])]());});}))];return window[_0x1b293f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b293f([0x72,0x61,0x63,0x65])](_0x5b7dce)[_0x1b293f([0x74,0x68,0x65,0x6e])](()=>_0x2c3be9);}async function _0x181feb(){await _0x464699,_0x435594[_0x1b293f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b293f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2fe412,_0x435594[_0x1b293f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b293f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2fe412,_0x435594[_0x1b293f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1b293f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x44e618(_0x500eb5){const _0x22b3a9=_0x5f594b();_0x435594[_0x22b3a9]=_0x1b293f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x500eb5,_0x500eb5!=_0x1b293f([0x56,0x61,0x6c,0x69,0x64])&&_0x181feb();}function _0x5f594b(){const _0x5309ac=window[_0x1b293f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1b293f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1b293f([0x6e,0x6f,0x77])]())[_0x1b293f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1b293f([0x2e]),'');let _0x2f9921=_0x1b293f([0x44]);for(let _0x194470=0x0;_0x194470<_0x5309ac[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x194470+=0x2){let _0x1a3068=window[_0x1b293f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5309ac[_0x1b293f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x194470,_0x194470+0x2));_0x1a3068>=_0x453dfe[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a3068-=_0x453dfe[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f9921+=_0x453dfe[_0x1a3068];}return _0x2f9921;}function _0x3e438d(){const _0x31206d=_0x5a942e[_0x1b293f([0x73,0x70,0x6c,0x69,0x74])](_0x1b293f([0x2e]));if(0x3!=_0x31206d[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2bf53d(_0x31206d[0x1]);function _0x2bf53d(_0x4d6f0f){const _0x18a365=_0x3a6c84(_0x4d6f0f);return _0x18a365&&_0xbca03f()?_0x18a365:null;function _0xbca03f(){const _0x25753d=_0x18a365[_0x1b293f([0x6a,0x74,0x69])],_0xeac244=window[_0x1b293f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25753d[_0x1b293f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x25753d[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x17a556={..._0x18a365,[_0x1b293f([0x6a,0x74,0x69])]:_0x25753d[_0x1b293f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x25753d[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x17a556[_0x1b293f([0x76,0x63])],_0x47fd80(_0x17a556)==_0xeac244;}}}async function _0x4c43b0(){let _0x37193d=!0x0;try{const _0x17e640=_0x5a942e[_0x1b293f([0x73,0x70,0x6c,0x69,0x74])](_0x1b293f([0x2e])),[_0x1ec530,_0x34c13c,_0x2015a7]=_0x17e640;return _0x328a09(_0x1ec530),await _0x2b3003(_0x1ec530,_0x34c13c,_0x2015a7),_0x37193d;}catch{return!0x1;}function _0x328a09(_0x1839fd){const _0x1b1956=_0x3a6c84(_0x1839fd);_0x1b1956&&_0x1b1956[_0x1b293f([0x61,0x6c,0x67])]==_0x1b293f([0x45,0x53,0x32,0x35,0x36])||(_0x37193d=!0x1);}async function _0x2b3003(_0x17c41d,_0x580047,_0x16e74f){const _0x4ffb8f=window[_0x1b293f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1b293f([0x66,0x72,0x6f,0x6d])](_0x4a278f(_0x16e74f),_0x4df701=>_0x4df701[_0x1b293f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1cd5f2=new window[(_0x1b293f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1b293f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17c41d+_0x1b293f([0x2e])+_0x580047),_0x31b692=window[_0x1b293f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1b293f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31b692)return;const _0x104e67=await _0x31b692[_0x1b293f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1b293f([0x6a,0x77,0x6b]),_0x348996,{[_0x1b293f([0x6e,0x61,0x6d,0x65])]:_0x1b293f([0x45,0x43,0x44,0x53,0x41]),[_0x1b293f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1b293f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1b293f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31b692[_0x1b293f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1b293f([0x6e,0x61,0x6d,0x65])]:_0x1b293f([0x45,0x43,0x44,0x53,0x41]),[_0x1b293f([0x68,0x61,0x73,0x68])]:{[_0x1b293f([0x6e,0x61,0x6d,0x65])]:_0x1b293f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x104e67,_0x4ffb8f,_0x1cd5f2)||(_0x37193d=!0x1);}}function _0x3a6c84(_0x3b80e6){return _0x3b80e6[_0x1b293f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1b293f([0x65,0x79]))?JSON[_0x1b293f([0x70,0x61,0x72,0x73,0x65])](_0x4a278f(_0x3b80e6)):null;}function _0x4a278f(_0x5b978b){return window[_0x1b293f([0x61,0x74,0x6f,0x62])](_0x5b978b[_0x1b293f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1b293f([0x2b]))[_0x1b293f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1b293f([0x2f])));}function _0x47fd80(_0x15ede0){let _0x4cf441=0x1505;function _0x5b8ef5(_0x2fe651){for(let _0x491409=0x0;_0x491409<_0x2fe651[_0x1b293f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x491409++){const _0x24ec48=_0x2fe651[_0x1b293f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x491409);_0x4cf441=(_0x4cf441<<0x5)+_0x4cf441+_0x24ec48,_0x4cf441&=_0x4cf441;}}function _0x527e19(_0x2fee65){Array[_0x1b293f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2fee65)?_0x2fee65[_0x1b293f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x527e19):_0x2fee65&&typeof _0x2fee65==_0x1b293f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1b293f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2fee65)[_0x1b293f([0x73,0x6f,0x72,0x74])]()[_0x1b293f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b3bb8,_0xbe1d50])=>{_0x5b8ef5(_0x5b3bb8),_0x527e19(_0xbe1d50);}):_0x5b8ef5(window[_0x1b293f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2fee65));}return _0x527e19(_0x15ede0),_0x4cf441>>>0x0;}function _0x49d5f9(_0x8fd02){return _0x8fd02[_0x1b293f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1b293f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1b293f([0x30]));}function _0x450bde(_0x2b73cd){return _0x2b73cd[_0x1b293f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1b293f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1b293f([0x6a,0x6f,0x69,0x6e])]('');}function _0x2fe412(){}function _0x1b293f(_0x4c93ea){const _0x5c548b=_0x2d95;return _0x4c93ea[_0x5c548b(0x1e0)](_0x518c92=>String[_0x5c548b(0x1e2)](_0x518c92))[_0x5c548b(0x1e6)]('');}_0x44e618(await _0x10ec57());}(this);}[_0x31f073(0x216)](){const _0x4c9723=_0x31f073,_0x3aae58=this[_0x4c9723(0x1fa)][_0x4c9723(0x1d5)][_0x4c9723(0x203)];_0x3aae58[_0x4c9723(0x1ca)](_0x4c9723(0x1f6))&&_0x3aae58[_0x4c9723(0x1da)](_0x4c9723(0x1f6),{'allowAttributes':[_0x4c9723(0x211)]}),_0x3aae58[_0x4c9723(0x1ca)](_0x4c9723(0x1d1))&&_0x3aae58[_0x4c9723(0x1da)](_0x4c9723(0x1d1),{'allowAttributes':[_0x4c9723(0x211)]});}[_0x31f073(0x1df)](){const _0x28aca1=_0x31f073,_0x4c3dbe=this[_0x28aca1(0x1fa)];_0x4c3dbe[_0x28aca1(0x1e9)][_0x28aca1(0x20a)](_0x28aca1(0x1dd))[_0x28aca1(0x1cf)]({'model':_0x28aca1(0x211),'view':_0x28aca1(0x20d)}),_0x4c3dbe[_0x28aca1(0x1e9)][_0x28aca1(0x20a)](_0x28aca1(0x1ee))[_0x28aca1(0x1f8)]({'model':{'key':_0x28aca1(0x211),'value':_0x18291f=>_0x18291f[_0x28aca1(0x1fd)](_0x28aca1(0x20d))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x57f097=_0x4c3dbe[_0x28aca1(0x20f)][_0x28aca1(0x1f5)](_0x28aca1(0x1cd));_0x57f097&&this[_0x28aca1(0x1f3)](_0x57f097,_0x28aca1(0x1ef),(_0x3316cb,[_0x4a26df,_0x5558d2])=>{const _0x3f8f96=_0x28aca1;_0x4a26df[_0x3f8f96(0x1d6)](_0x3f8f96(0x211),_0x5558d2);});}[_0x31f073(0x217)](){const _0x1274b9=_0x31f073,_0x50809a=this[_0x1274b9(0x1fa)][_0x1274b9(0x1c7)][_0x1274b9(0x1f5)](_0x1274b9(0x1d9))||{},_0xeadb0b=this[_0x1274b9(0x1fa)][_0x1274b9(0x1c7)][_0x1274b9(0x1f5)](_0x1274b9(0x1e8))||'';this[_0x1274b9(0x202)]=_0x5235b7(_0x56910f[_0x1274b9(0x1e5)],_0x1274b9(0x1e4),{..._0x50809a,'pubkey':_0xeadb0b,'ctx-name':_0x1274b9(0x210)+this[_0x1274b9(0x200)],'sourceList':'','imgOnly':_0x1274b9(0x1f9),'removeCopyright':_0x1274b9(0x1f9),'localeName':this[_0x1274b9(0x1fa)][_0x1274b9(0x201)][_0x1274b9(0x1d0)],'externalSourcesEmbedCss':_0x1274b9(0x1e3)}),this[_0x1274b9(0x202)][_0x1274b9(0x1dc)]=_0x25fbdd=>{const _0x57bb84=_0x1274b9;if(_0x57bb84(0x208)==_0x25fbdd)return _0x57bb84(0x1cc);},_0x56910f[_0x1274b9(0x1e5)][_0x1274b9(0x214)][_0x1274b9(0x1db)](this[_0x1274b9(0x202)]);}[_0x31f073(0x1d3)](){const _0x3f2b0f=_0x31f073;this[_0x3f2b0f(0x1ea)]=_0x5235b7(_0x56910f[_0x3f2b0f(0x1e5)],_0x3f2b0f(0x1fc),{'ctx-name':_0x3f2b0f(0x210)+this[_0x3f2b0f(0x200)]}),_0x56910f[_0x3f2b0f(0x1e5)][_0x3f2b0f(0x214)][_0x3f2b0f(0x1db)](this[_0x3f2b0f(0x1ea)]);}[_0x31f073(0x207)](){const _0x261b98=_0x31f073,_0x5d283d=this[_0x261b98(0x1fa)][_0x261b98(0x20f)][_0x261b98(0x1f5)](_0x261b98(0x1f1));_0x5d283d&&this[_0x261b98(0x1f3)](_0x5d283d,_0x261b98(0x1ff),()=>{const _0x549053=_0x261b98,_0x1a6617=this[_0x549053(0x1fa)][_0x549053(0x1d5)][_0x549053(0x1e5)][_0x549053(0x1cb)][_0x549053(0x1d2)]();_0x1a6617&&_0x1a6617[_0x549053(0x1fd)](_0x549053(0x211))&&this[_0x549053(0x1fa)][_0x549053(0x20c)][_0x549053(0x1d8)][_0x549053(0x1e7)](_0x549053(0x206),()=>{const _0x435ae9=_0x549053;_0x57cc05(this[_0x435ae9(0x1fa)],_0x1a6617);});});const _0x5bcba7=this[_0x261b98(0x1fa)][_0x261b98(0x20f)][_0x261b98(0x1f5)](_0x261b98(0x1de));_0x5bcba7&&this[_0x261b98(0x1f3)](_0x5bcba7,_0x261b98(0x1ff),()=>{const _0x4b6821=_0x261b98,_0x43a2f3=this[_0x4b6821(0x1fa)][_0x4b6821(0x1d5)][_0x4b6821(0x1e5)][_0x4b6821(0x1cb)][_0x4b6821(0x1d2)]();_0x43a2f3&&_0x43a2f3[_0x4b6821(0x1fd)](_0x4b6821(0x211))&&this[_0x4b6821(0x1fa)][_0x4b6821(0x20c)][_0x4b6821(0x1d8)][_0x4b6821(0x1e7)](_0x4b6821(0x206),()=>{const _0x5a7d7e=_0x4b6821;_0x57cc05(this[_0x5a7d7e(0x1fa)],_0x43a2f3);});});}}
|
|
23
|
+
function _0x441a(){const _0x3b233b=['locale','uploadcareImageReplace','_initCtx','uploadcare','execute','uploadcareImageId','destroy','fromCharCode','1271413dxHKrl','insertImage','\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','2128458xNpQSZ','8336846WuvAQT','3170292ZlWEgS','6186orAnkH','afterInit','input[uploadcare-file-input]','view','closeMax','config','iconHrefResolver','uc-upload-ctx-provider','_initConversion','join','configElement','map','downcast','uploadcare.uploader','isOfficialPlugin','schema','_initConfig','ctxElement','add','remove','get','#uc-icon-arrow-down','body','document','listenTo','extend','uc-config','querySelector','appendChild','data-uc-image-id','_initImageProcessingIndicator','imageInline','href','72jQXKOU','isRegistered','init','3398310OpthVC','editing','conversion','commands','ucContextId','getAttribute','elementToAttribute','editor','attributeToAttribute','uploadcare.pubkey','cleanupImage','PictureEditing','_configElement','8CInLLm','contentLanguage','pluginName','uploader-','_initSchema','removeAttribute','model','getSelectedElement','_ctxElement','selection','for','imageBlock','upcast','requires','once','UploadcareEditing','true','render','351963qtbIOk','isPremiumPlugin','replaceImageSource'];_0x441a=function(){return _0x3b233b;};return _0x441a();}const _0x4404fd=_0x4894;function _0x4894(_0x3260a0,_0x35ba6f){const _0x441ae1=_0x441a();return _0x4894=function(_0x489434,_0x413536){_0x489434=_0x489434-0xd7;let _0x420af9=_0x441ae1[_0x489434];return _0x420af9;},_0x4894(_0x3260a0,_0x35ba6f);}(function(_0x164b4c,_0xcd7188){const _0x2cc1e2=_0x4894,_0x106bf8=_0x164b4c();while(!![]){try{const _0x455718=parseInt(_0x2cc1e2(0xdb))/0x1+parseInt(_0x2cc1e2(0x102))/0x2*(parseInt(_0x2cc1e2(0xe1))/0x3)+parseInt(_0x2cc1e2(0xe0))/0x4+-parseInt(_0x2cc1e2(0x105))/0x5+parseInt(_0x2cc1e2(0xde))/0x6+parseInt(_0x2cc1e2(0xdf))/0x7*(-parseInt(_0x2cc1e2(0x112))/0x8)+parseInt(_0x2cc1e2(0x124))/0x9;if(_0x455718===_0xcd7188)break;else _0x106bf8['push'](_0x106bf8['shift']());}catch(_0x32329e){_0x106bf8['push'](_0x106bf8['shift']());}}}(_0x441a,0xa17b4));import{Plugin as _0x1d81d9}from'ckeditor5/src/core.js';import{Dialog as _0x1d1c61}from'ckeditor5/src/ui.js';import{createElement as _0x200d44,global as _0x4e4db6,uid as _0x2a4209}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x306f1f}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5b8a33}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x2e8bc0}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1d81d9{[_0x4404fd(0x111)]=null;[_0x4404fd(0x11a)]=null;static get[_0x4404fd(0x114)](){const _0x2aa16a=_0x4404fd;return _0x2aa16a(0x121);}static get[_0x4404fd(0x11f)](){const _0x40791d=_0x4404fd;return[_0x40791d(0x110),_0x5b8a33,_0x1d1c61];}static get[_0x4404fd(0xef)](){return!0x0;}static get[_0x4404fd(0x125)](){return!0x0;}[_0x4404fd(0x109)];get[_0x4404fd(0xeb)](){const _0x1a45e8=_0x4404fd;return this[_0x1a45e8(0x111)];}get[_0x4404fd(0xf2)](){const _0x53d7d9=_0x4404fd;return this[_0x53d7d9(0x11a)];}constructor(_0x3468c3){const _0x30ac32=_0x4404fd;super(_0x3468c3),this[_0x30ac32(0x109)]=_0x2a4209();}[_0x4404fd(0x104)](){const _0x1051a7=_0x4404fd,_0x3e07ca=this[_0x1051a7(0x10c)];_0x3e07ca[_0x1051a7(0x108)][_0x1051a7(0xf3)](_0x1051a7(0x12a),new _0x306f1f(_0x3e07ca));}[_0x4404fd(0xe2)](){const _0x43626d=_0x4404fd;this[_0x43626d(0x116)](),this[_0x43626d(0xe9)](),this[_0x43626d(0xf1)](),this[_0x43626d(0x129)](),this[_0x43626d(0xff)](),this[_0x43626d(0xf9)](this[_0x43626d(0x10c)],_0x43626d(0xd9),()=>{const _0x4df8e7=_0x43626d;this[_0x4df8e7(0x111)]&&(this[_0x4df8e7(0x111)][_0x4df8e7(0xf4)](),this[_0x4df8e7(0x111)]=null),this[_0x4df8e7(0x11a)]&&(this[_0x4df8e7(0x11a)][_0x4df8e7(0xf4)](),this[_0x4df8e7(0x11a)]=null);const _0x33cfef=_0x4e4db6[_0x4df8e7(0xf8)][_0x4df8e7(0xfc)](_0x4df8e7(0xe3));_0x33cfef&&_0x33cfef[_0x4df8e7(0xf4)]();}),async function(_0x17c066){const _0x20fa56=_0x53e55d([0x72,0x51,0x4d,0x64,0x61,0x78,0x4f,0x77,0x33,0x6e,0x65,0x6a,0x39,0x52,0x63,0x71,0x30,0x57,0x43,0x4e,0x38,0x42,0x7a,0x34,0x70,0x68,0x73,0x79,0x4a,0x5a,0x6d,0x67,0x6f,0x36,0x4b,0x54,0x50,0x55,0x35,0x48,0x66,0x56,0x31,0x58,0x69,0x75,0x4c,0x53,0x6b,0x76,0x41,0x37,0x6c,0x62,0x74,0x32,0x49,0x46,0x47,0x44,0x45,0x59]),_0x514a0c=0x3f6883ea,_0x23b847=0x3f6fecba^_0x514a0c,_0x5bccfa=window[_0x53e55d([0x44,0x61,0x74,0x65])][_0x53e55d([0x6e,0x6f,0x77])](),_0x42ee44=_0x17c066[_0x53e55d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x494148=new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x179f81=>{_0x42ee44[_0x53e55d([0x6f,0x6e,0x63,0x65])](_0x53e55d([0x72,0x65,0x61,0x64,0x79]),_0x179f81);}),_0xd57589={[_0x53e55d([0x6b,0x74,0x79])]:_0x53e55d([0x45,0x43]),[_0x53e55d([0x75,0x73,0x65])]:_0x53e55d([0x73,0x69,0x67]),[_0x53e55d([0x63,0x72,0x76])]:_0x53e55d([0x50,0x2d,0x32,0x35,0x36]),[_0x53e55d([0x78])]:_0x53e55d([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]),[_0x53e55d([0x79])]:_0x53e55d([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]),[_0x53e55d([0x61,0x6c,0x67])]:_0x53e55d([0x45,0x53,0x32,0x35,0x36])},_0x540f58=_0x42ee44[_0x53e55d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53e55d([0x67,0x65,0x74])](_0x53e55d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x55f508(){let _0x20adb4,_0x227131=null,_0x2ea83f=null;try{if(_0x540f58==_0x53e55d([0x47,0x50,0x4c]))return _0x53e55d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x20adb4=_0xe3b7b(),!_0x20adb4)return _0x53e55d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x20adb4[_0x53e55d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ea83f=_0x503ecd(_0x20adb4[_0x53e55d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x20adb4[_0x53e55d([0x6a,0x74,0x69])])),await _0x1eeb0c()?_0x19aefe()?_0x4aa36f()?_0x53e55d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ac17b()?(_0x20adb4[_0x53e55d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53e55d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x227131=_0x5afc24(_0x53e55d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x20adb4[_0x53e55d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53e55d([0x74,0x72,0x69,0x61,0x6c])&&(_0x227131=_0x5afc24(_0x53e55d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e4b21()):_0x53e55d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53e55d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53e55d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x53e55d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4aa36f(){const _0x4b27c1=[_0x53e55d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53e55d([0x74,0x72,0x69,0x61,0x6c])][_0x53e55d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20adb4[_0x53e55d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bccfa/0x3e8:0xe10*_0x23b847;return _0x20adb4[_0x53e55d([0x65,0x78,0x70])]<_0x4b27c1;}function _0x19aefe(){const _0x1b21f7=_0x20adb4[_0x53e55d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b21f7&&(!!_0x1b21f7[_0x53e55d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e55d([0x2a]))||!!_0x1b21f7[_0x53e55d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e55d([0x55,0x50,0x4c,0x43])));}function _0x1ac17b(){const _0xb91ed1=_0x4894,_0x13ccc6=_0x20adb4[_0x53e55d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x13ccc6||0x0==_0x13ccc6[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c2214}=new URL(window[_0x53e55d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xb91ed1(0x101)]);if(_0x13ccc6[_0x53e55d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c2214))return!0x0;const _0x239ec6=_0x5c2214[_0x53e55d([0x73,0x70,0x6c,0x69,0x74])](_0x53e55d([0x2e]));return _0x13ccc6[_0x53e55d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x208fa2=>_0x208fa2[_0x53e55d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53e55d([0x2a])))[_0x53e55d([0x6d,0x61,0x70])](_0x32d1db=>_0x32d1db[_0x53e55d([0x73,0x70,0x6c,0x69,0x74])](_0x53e55d([0x2e])))[_0x53e55d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6037e0=>_0x6037e0[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x239ec6[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53e55d([0x6d,0x61,0x70])](_0x4e259b=>Array(_0x239ec6[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4e259b[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53e55d([0x66,0x69,0x6c,0x6c])](_0x4e259b[0x0]===_0x53e55d([0x2a])?_0x53e55d([0x2a]):'')[_0x53e55d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4e259b))[_0x53e55d([0x73,0x6f,0x6d,0x65])](_0x23c131=>_0x239ec6[_0x53e55d([0x65,0x76,0x65,0x72,0x79])]((_0x4484d5,_0x6f3a)=>_0x23c131[_0x6f3a]===_0x4484d5||_0x23c131[_0x6f3a]===_0x53e55d([0x2a])));}function _0x2e4b21(){return _0x227131&&_0x2ea83f?new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47dfa7,_0x2b0604)=>{_0x227131[_0x53e55d([0x74,0x68,0x65,0x6e])](_0x47dfa7,_0x2b0604),_0x2ea83f[_0x53e55d([0x74,0x68,0x65,0x6e])](_0x218d84=>{_0x218d84!=_0x53e55d([0x56,0x61,0x6c,0x69,0x64])&&_0x47dfa7(_0x218d84);},_0x2b0604);}):_0x227131||_0x2ea83f||_0x53e55d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x503ecd(_0x590d8f,_0x34df80){return new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x332773=>{if(_0xe4d444())return _0x332773(_0x53e55d([0x56,0x61,0x6c,0x69,0x64]));_0x30301a(),_0x42ee44[_0x53e55d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53e55d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x10bf83=!0x1;const _0x499e2d=_0x2a4209();function _0x4a1d37(_0x19df08){return!!_0x19df08&&(typeof _0x19df08===_0x53e55d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x19df08===_0x53e55d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x19df08[_0x53e55d([0x74,0x68,0x65,0x6e])]===_0x53e55d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x19df08[_0x53e55d([0x63,0x61,0x74,0x63,0x68])]===_0x53e55d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12d7c5(_0x16c148){_0x23d53d(_0x16c148)[_0x53e55d([0x74,0x68,0x65,0x6e])](_0x230d5b=>{if(!_0x230d5b||_0x230d5b[_0x53e55d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53e55d([0x6f,0x6b]))return _0x53e55d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x446aea(_0x3839cf(_0x499e2d+_0x34df80))!=_0x230d5b[_0x53e55d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53e55d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53e55d([0x56,0x61,0x6c,0x69,0x64]);})[_0x53e55d([0x74,0x68,0x65,0x6e])](_0x1995bb=>(_0x5e35ef(),_0x1995bb),()=>{const _0x38b4b4=_0x292013();return null==_0x38b4b4?(_0x5e35ef(),_0x53e55d([0x56,0x61,0x6c,0x69,0x64])):_0x53e55d(_0x5bccfa-_0x38b4b4>(0x1b6407ea^_0x514a0c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53e55d([0x74,0x68,0x65,0x6e])](_0x332773)[_0x53e55d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x332773(_0x53e55d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5a9c95=0x3f5e6d6a^_0x514a0c;function _0x5e35ef(){const _0x285b29=_0x53e55d([0x6c,0x6c,0x63,0x74,0x2d])+_0x446aea(_0x3839cf(_0x590d8f)),_0x594eff=_0x65e589(_0x446aea(window[_0x53e55d([0x4d,0x61,0x74,0x68])][_0x53e55d([0x63,0x65,0x69,0x6c])](_0x5bccfa/_0x5a9c95)));window[_0x53e55d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53e55d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x285b29,_0x594eff);}function _0x292013(){const _0x46ce08=_0x53e55d([0x6c,0x6c,0x63,0x74,0x2d])+_0x446aea(_0x3839cf(_0x590d8f)),_0x54f447=window[_0x53e55d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53e55d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46ce08);return _0x54f447?window[_0x53e55d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x65e589(_0x54f447),0x10)*_0x5a9c95:null;}function _0x23d53d(_0x5456cc){return new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa4ab3b,_0x390514)=>{_0x5456cc[_0x53e55d([0x74,0x68,0x65,0x6e])](_0xa4ab3b,_0x390514),window[_0x53e55d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x390514,0x3f69572a^_0x514a0c);});}}_0x42ee44[_0x53e55d([0x6f,0x6e])](_0x53e55d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4a2a04,_0x45777f)=>{if(_0x45777f[0x0]!=_0x590d8f)return _0x332773(_0x53e55d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x45777f[0x1]={..._0x45777f[0x1],[_0x53e55d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x499e2d};},{[_0x53e55d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53e55d([0x68,0x69,0x67,0x68])}),_0x42ee44[_0x53e55d([0x6f,0x6e])](_0x53e55d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f7e74=>{_0x4a1d37(_0x2f7e74[_0x53e55d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x10bf83=!0x0,_0x12d7c5(_0x2f7e74[_0x53e55d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53e55d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53e55d([0x6c,0x6f,0x77])}),_0x494148[_0x53e55d([0x74,0x68,0x65,0x6e])](()=>{_0x10bf83||_0x332773(_0x53e55d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xe4d444(){return _0x42ee44[_0x53e55d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53e55d([0x76,0x69,0x65,0x77])][_0x53e55d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53e55d([0x61,0x75,0x74,0x6f]);}function _0x30301a(){_0x42ee44[_0x53e55d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53e55d([0x76,0x69,0x65,0x77])][_0x53e55d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53e55d([0x61,0x75,0x74,0x6f]);}}function _0x5afc24(_0x5e456a){const _0x4d967f=[new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf0abae=>setTimeout(_0xf0abae,0x3f61bd26^_0x514a0c)),_0x494148[_0x53e55d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d91c0=>{let _0x475cf4=0x0;_0x42ee44[_0x53e55d([0x6d,0x6f,0x64,0x65,0x6c])][_0x53e55d([0x6f,0x6e])](_0x53e55d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1fb018,_0xbc359c)=>{_0xbc359c[0x0][_0x53e55d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x475cf4++,_0x475cf4==(0x3f688212^_0x514a0c)&&(_0x5d91c0(),_0x1fb018[_0x53e55d([0x6f,0x66,0x66])]());});}))];return window[_0x53e55d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53e55d([0x72,0x61,0x63,0x65])](_0x4d967f)[_0x53e55d([0x74,0x68,0x65,0x6e])](()=>_0x5e456a);}async function _0x523cef(){await _0x494148,_0x42ee44[_0x53e55d([0x6d,0x6f,0x64,0x65,0x6c])][_0x53e55d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x567023,_0x42ee44[_0x53e55d([0x6d,0x6f,0x64,0x65,0x6c])][_0x53e55d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x567023,_0x42ee44[_0x53e55d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53e55d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x143412(_0x559f59){const _0x225be1=_0x1a8f00();_0x42ee44[_0x225be1]=_0x53e55d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x559f59,_0x559f59!=_0x53e55d([0x56,0x61,0x6c,0x69,0x64])&&_0x523cef();}function _0x1a8f00(){const _0x5684c2=window[_0x53e55d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53e55d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53e55d([0x6e,0x6f,0x77])]())[_0x53e55d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53e55d([0x2e]),'');let _0x562fe5=_0x53e55d([0x72]);for(let _0x5b13f8=0x0;_0x5b13f8<_0x5684c2[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b13f8+=0x2){let _0x53ad73=window[_0x53e55d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5684c2[_0x53e55d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b13f8,_0x5b13f8+0x2));_0x53ad73>=_0x20fa56[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x53ad73-=_0x20fa56[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x562fe5+=_0x20fa56[_0x53ad73];}return _0x562fe5;}function _0xe3b7b(){const _0x1f82f8=_0x540f58[_0x53e55d([0x73,0x70,0x6c,0x69,0x74])](_0x53e55d([0x2e]));if(0x3!=_0x1f82f8[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x545718(_0x1f82f8[0x1]);function _0x545718(_0x3723c8){const _0x4e8215=_0x118f4f(_0x3723c8);return _0x4e8215&&_0x357922()?_0x4e8215:null;function _0x357922(){const _0x4a7518=_0x4e8215[_0x53e55d([0x6a,0x74,0x69])],_0x4cf968=window[_0x53e55d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a7518[_0x53e55d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4a7518[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x27944c={..._0x4e8215,[_0x53e55d([0x6a,0x74,0x69])]:_0x4a7518[_0x53e55d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4a7518[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x27944c[_0x53e55d([0x76,0x63])],_0x3839cf(_0x27944c)==_0x4cf968;}}}async function _0x1eeb0c(){let _0x57ca57=!0x0;try{const _0x15f5d5=_0x540f58[_0x53e55d([0x73,0x70,0x6c,0x69,0x74])](_0x53e55d([0x2e])),[_0x3657b5,_0x3df25d,_0x2247bb]=_0x15f5d5;return _0xd6e75b(_0x3657b5),await _0x24e966(_0x3657b5,_0x3df25d,_0x2247bb),_0x57ca57;}catch{return!0x1;}function _0xd6e75b(_0x3d01b8){const _0x149d66=_0x118f4f(_0x3d01b8);_0x149d66&&_0x149d66[_0x53e55d([0x61,0x6c,0x67])]==_0x53e55d([0x45,0x53,0x32,0x35,0x36])||(_0x57ca57=!0x1);}async function _0x24e966(_0x5aeb7b,_0x42ef7f,_0xfea089){const _0x242e1a=window[_0x53e55d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53e55d([0x66,0x72,0x6f,0x6d])](_0x36acf4(_0xfea089),_0x1e8646=>_0x1e8646[_0x53e55d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2fe1ac=new window[(_0x53e55d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53e55d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5aeb7b+_0x53e55d([0x2e])+_0x42ef7f),_0x51af36=window[_0x53e55d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53e55d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51af36)return;const _0x439827=await _0x51af36[_0x53e55d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53e55d([0x6a,0x77,0x6b]),_0xd57589,{[_0x53e55d([0x6e,0x61,0x6d,0x65])]:_0x53e55d([0x45,0x43,0x44,0x53,0x41]),[_0x53e55d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53e55d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53e55d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51af36[_0x53e55d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53e55d([0x6e,0x61,0x6d,0x65])]:_0x53e55d([0x45,0x43,0x44,0x53,0x41]),[_0x53e55d([0x68,0x61,0x73,0x68])]:{[_0x53e55d([0x6e,0x61,0x6d,0x65])]:_0x53e55d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x439827,_0x242e1a,_0x2fe1ac)||(_0x57ca57=!0x1);}}function _0x118f4f(_0x55fe44){return _0x55fe44[_0x53e55d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53e55d([0x65,0x79]))?JSON[_0x53e55d([0x70,0x61,0x72,0x73,0x65])](_0x36acf4(_0x55fe44)):null;}function _0x36acf4(_0x3ec4ef){return window[_0x53e55d([0x61,0x74,0x6f,0x62])](_0x3ec4ef[_0x53e55d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53e55d([0x2b]))[_0x53e55d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53e55d([0x2f])));}function _0x3839cf(_0x50d1a2){let _0x4e54d5=0x1505;function _0xc4f12c(_0x319381){for(let _0x3b2e9a=0x0;_0x3b2e9a<_0x319381[_0x53e55d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b2e9a++){const _0x380b7e=_0x319381[_0x53e55d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3b2e9a);_0x4e54d5=(_0x4e54d5<<0x5)+_0x4e54d5+_0x380b7e,_0x4e54d5&=_0x4e54d5;}}function _0x47455a(_0x611a4f){Array[_0x53e55d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x611a4f)?_0x611a4f[_0x53e55d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47455a):_0x611a4f&&typeof _0x611a4f==_0x53e55d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53e55d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x611a4f)[_0x53e55d([0x73,0x6f,0x72,0x74])]()[_0x53e55d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x10551f,_0x32b038])=>{_0xc4f12c(_0x10551f),_0x47455a(_0x32b038);}):_0xc4f12c(window[_0x53e55d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x611a4f));}return _0x47455a(_0x50d1a2),_0x4e54d5>>>0x0;}function _0x446aea(_0x5b60cb){return _0x5b60cb[_0x53e55d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53e55d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53e55d([0x30]));}function _0x65e589(_0xd8c712){return _0xd8c712[_0x53e55d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53e55d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53e55d([0x6a,0x6f,0x69,0x6e])]('');}function _0x567023(){}function _0x53e55d(_0x19a105){const _0x5612ee=_0x4894;return _0x19a105[_0x5612ee(0xec)](_0xac49e7=>String[_0x5612ee(0xda)](_0xac49e7))[_0x5612ee(0xea)]('');}_0x143412(await _0x55f508());}(this);}[_0x4404fd(0x116)](){const _0x1f7b2c=_0x4404fd,_0x6117f=this[_0x1f7b2c(0x10c)][_0x1f7b2c(0x118)][_0x1f7b2c(0xf0)];_0x6117f[_0x1f7b2c(0x103)](_0x1f7b2c(0x11d))&&_0x6117f[_0x1f7b2c(0xfa)](_0x1f7b2c(0x11d),{'allowAttributes':[_0x1f7b2c(0xd8)]}),_0x6117f[_0x1f7b2c(0x103)](_0x1f7b2c(0x100))&&_0x6117f[_0x1f7b2c(0xfa)](_0x1f7b2c(0x100),{'allowAttributes':[_0x1f7b2c(0xd8)]});}[_0x4404fd(0xe9)](){const _0x46fd7c=_0x4404fd,_0x38c5f9=this[_0x46fd7c(0x10c)];_0x38c5f9[_0x46fd7c(0x107)][_0x46fd7c(0x11c)](_0x46fd7c(0xed))[_0x46fd7c(0x10d)]({'model':_0x46fd7c(0xd8),'view':_0x46fd7c(0xfe)}),_0x38c5f9[_0x46fd7c(0x107)][_0x46fd7c(0x11c)](_0x46fd7c(0x11e))[_0x46fd7c(0x10b)]({'model':{'key':_0x46fd7c(0xd8),'value':_0x1eee50=>_0x1eee50[_0x46fd7c(0x10a)](_0x46fd7c(0xfe))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x11c393=_0x38c5f9[_0x46fd7c(0x108)][_0x46fd7c(0xf5)](_0x46fd7c(0x126));_0x11c393&&this[_0x46fd7c(0xf9)](_0x11c393,_0x46fd7c(0x10f),(_0x2f4da1,[_0xcd3dbd,_0x35df33])=>{const _0x30a747=_0x46fd7c;_0xcd3dbd[_0x30a747(0x117)](_0x30a747(0xd8),_0x35df33);});}[_0x4404fd(0xf1)](){const _0x449da2=_0x4404fd,_0x3fd676=this[_0x449da2(0x10c)][_0x449da2(0xe6)][_0x449da2(0xf5)](_0x449da2(0xee))||{},_0x54e133=this[_0x449da2(0x10c)][_0x449da2(0xe6)][_0x449da2(0xf5)](_0x449da2(0x10e))||'';this[_0x449da2(0x111)]=_0x200d44(_0x4e4db6[_0x449da2(0xf8)],_0x449da2(0xfb),{..._0x3fd676,'pubkey':_0x54e133,'ctx-name':_0x449da2(0x115)+this[_0x449da2(0x109)],'sourceList':'','imgOnly':_0x449da2(0x122),'removeCopyright':_0x449da2(0x122),'localeName':this[_0x449da2(0x10c)][_0x449da2(0x127)][_0x449da2(0x113)],'externalSourcesEmbedCss':_0x449da2(0xdd)}),this[_0x449da2(0x111)][_0x449da2(0xe7)]=_0x483e53=>{const _0x2485d9=_0x449da2;if(_0x2485d9(0xe5)==_0x483e53)return _0x2485d9(0xf6);},_0x4e4db6[_0x449da2(0xf8)][_0x449da2(0xf7)][_0x449da2(0xfd)](this[_0x449da2(0x111)]);}[_0x4404fd(0x129)](){const _0x105cd1=_0x4404fd;this[_0x105cd1(0x11a)]=_0x200d44(_0x4e4db6[_0x105cd1(0xf8)],_0x105cd1(0xe8),{'ctx-name':_0x105cd1(0x115)+this[_0x105cd1(0x109)]}),_0x4e4db6[_0x105cd1(0xf8)][_0x105cd1(0xf7)][_0x105cd1(0xfd)](this[_0x105cd1(0x11a)]);}[_0x4404fd(0xff)](){const _0x5aad8b=_0x4404fd,_0xc42e30=this[_0x5aad8b(0x10c)][_0x5aad8b(0x108)][_0x5aad8b(0xf5)](_0x5aad8b(0xdc));_0xc42e30&&this[_0x5aad8b(0xf9)](_0xc42e30,_0x5aad8b(0xd7),()=>{const _0x2ea38b=_0x5aad8b,_0x5d068f=this[_0x2ea38b(0x10c)][_0x2ea38b(0x118)][_0x2ea38b(0xf8)][_0x2ea38b(0x11b)][_0x2ea38b(0x119)]();_0x5d068f&&_0x5d068f[_0x2ea38b(0x10a)](_0x2ea38b(0xd8))&&this[_0x2ea38b(0x10c)][_0x2ea38b(0x106)][_0x2ea38b(0xe4)][_0x2ea38b(0x120)](_0x2ea38b(0x123),()=>{const _0x8f484e=_0x2ea38b;_0x2e8bc0(this[_0x8f484e(0x10c)],_0x5d068f);});});const _0xca6c7b=this[_0x5aad8b(0x10c)][_0x5aad8b(0x108)][_0x5aad8b(0xf5)](_0x5aad8b(0x128));_0xca6c7b&&this[_0x5aad8b(0xf9)](_0xca6c7b,_0x5aad8b(0xd7),()=>{const _0x2e4b37=_0x5aad8b,_0x1485cb=this[_0x2e4b37(0x10c)][_0x2e4b37(0x118)][_0x2e4b37(0xf8)][_0x2e4b37(0x11b)][_0x2e4b37(0x119)]();_0x1485cb&&_0x1485cb[_0x2e4b37(0x10a)](_0x2e4b37(0xd8))&&this[_0x2e4b37(0x10c)][_0x2e4b37(0x106)][_0x2e4b37(0xe4)][_0x2e4b37(0x120)](_0x2e4b37(0x123),()=>{const _0x5c51f1=_0x2e4b37;_0x2e8bc0(this[_0x5c51f1(0x10c)],_0x1485cb);});});}}
|