@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251209.0 → 0.0.0-nightly-20251210.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/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 _0x5b4246,Command as _0x2008ef}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1b0b75,IconGooglePhotos as _0x1f79c9,IconGoogleDrive as _0x4875f3,IconFacebook as _0x30d57f,IconDropbox as _0x47edc9,IconUploadcareLink as _0x49fb91,IconUploadcareImageUpload as _0xf07c5e,IconError as _0x43b2ad,IconUploadcareImageEdit as _0x1e0cb0}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xf57840,MenuBarMenuListItemButtonView as _0x25f13d,View as _0x495c6e,FocusCycler as _0x433bf6,Dialog as _0x1601b4,DialogViewPosition as _0x1cff5e,SpinnerView as _0x50ee97,IconView as _0x573e41,Notification as _0x544ee2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x42f51d,DomEmitterMixin as _0x3767d1,global as _0x344656,getAncestors as _0x5660b5,ObservableMixin as _0x41f4aa,uid as _0x53d791,createElement as _0x237d8e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x58936e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3d6545,info as _0x39c98d}from'@uploadcare/upload-client';import*as _0x15364e from'@uploadcare/file-uploader';var i=function(_0x549c36){return _0x549c36['Local']='local',_0x549c36['URL']='url',_0x549c36['Dropbox']='dropbox',_0x549c36['GDrive']='gdrive',_0x549c36['Facebook']='facebook',_0x549c36['GPhotos']='gphotos',_0x549c36['OneDrive']='onedrive',_0x549c36;}({});function _(_0x493185,_0x167f4b,_0x448731){const t=_0x493185['t'],_0x10c461=_0x493185['t'];switch(_0x167f4b){case i['Local']:return{'text':_0x10c461('Insert'===_0x448731?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x10c461('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x448731?_0x10c461('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x10c461('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x448731?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x448731?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x448731?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x448731?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x448731?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x167f4b;}}class e extends _0x5b4246{['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 _0x30a556=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x50c4c3;for(const _0x48e366 in _0x30a556){const _0x3ee853=_0x48e366,_0x3da7be=_0x30a556[_0x3ee853];if('uploadcareLicenseKeyValid'==_0x3da7be||'uploadcareLicenseKeyInvalid'==_0x3da7be||'uploadcareLicenseKeyExpired'==_0x3da7be||'uploadcareLicenseKeyDomainLimit'==_0x3da7be||'uploadcareLicenseKeyNotAllowed'==_0x3da7be||'uploadcareLicenseKeyEvaluationLimit'==_0x3da7be||'uploadcareLicenseKeyTrialLimit'==_0x3da7be||'uploadcareLicenseKeyUsageLimit'==_0x3da7be){delete _0x30a556[_0x3ee853],_0x50c4c3=_0x3da7be,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x50c4c3&&_0x30a556['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x50c4c3&&_0x30a556['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x50c4c3&&_0x30a556['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x50c4c3&&_0x30a556['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x50c4c3&&_0x30a556['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x50c4c3&&_0x30a556['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x50c4c3&&_0x30a556['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x13a8a8}=this,_0x5e5cd9=_0x13a8a8['commands']['get']('uploadcare');if(!_0x5e5cd9)return;const _0x5948a8=this['_normalizeConfigSourceList'](_0x13a8a8['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5bfda8,_0x226301)=>{const _0x1a05cf=this['_getIntegrationKey'](_0x226301['type']);return _0x5bfda8[_0x1a05cf]||(_0x5bfda8[_0x1a05cf]=[]),_0x5bfda8[_0x1a05cf]['push'](_0x226301),_0x5bfda8;},{});_0x13a8a8['plugins']['has']('ImageInsertUI')&&_0x13a8a8['commands']['get']('uploadcare')&&Object['entries'](_0x5948a8)['forEach'](([_0x29577c,_0xe790d7])=>{_0x13a8a8['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x29577c,'observable':()=>_0x5e5cd9,'buttonViewCreator':()=>this['_createToolbarButton'](_0xe790d7),'formViewCreator':()=>this['_createDropdownButtons'](_0xe790d7),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0xe790d7),'override':'assetManager'!==_0x29577c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x2c9ca8){const {locale:_0x2b8344}=this['editor'];return _0x2c9ca8['map'](_0x3c75f1=>{const _0x460677=_(_0x2b8344,_0x3c75f1,'Insert');switch(_0x3c75f1){case i['Local']:return{'icon':_0xf07c5e,'type':i['Local'],..._0x460677};case i['URL']:return{'icon':_0x49fb91,'type':i['URL'],..._0x460677};case i['Dropbox']:return{'icon':_0x47edc9,'type':i['Dropbox'],..._0x460677};case i['Facebook']:return{'icon':_0x30d57f,'type':i['Facebook'],..._0x460677};case i['GDrive']:return{'icon':_0x4875f3,'type':i['GDrive'],..._0x460677};case i['GPhotos']:return{'icon':_0x1f79c9,'type':i['GPhotos'],..._0x460677};case i['OneDrive']:return{'icon':_0x1b0b75,'type':i['OneDrive'],..._0x460677};}});}['_getIntegrationKey'](_0x39e790){switch(_0x39e790){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4041a3,_0x1e544f){const _0x13f2ec=this['editor'],_0x483227=new _0x4041a3(_0x13f2ec['locale']),_0x487076=_0x13f2ec['commands']['get']('uploadcare');return _0x483227['bind']('isEnabled')['to'](_0x487076),_0x483227['on']('execute',()=>{_0x487076['execute'](_0x1e544f);}),_0x483227;}['_createToolbarButton'](_0x329d5c){const {locale:_0x1af9cd}=this['editor'],_0x26475c=this['editor']['plugins']['get']('ImageInsertUI'),_0x30e66e=_0x329d5c[0x0],_0x2736e5=this['_createButton'](_0xf57840,_0x30e66e['type']);return _0x2736e5['icon']=_0x30e66e['icon'],_0x2736e5['bind']('label')['to'](_0x26475c,'isImageSelected',_0x5ae776=>_(_0x1af9cd,_0x30e66e['type'],_0x5ae776?'Replace':'Insert')['text']),_0x2736e5['tooltip']=!0x0,_0x2736e5;}['_createDropdownButtons'](_0x3eda65){const {locale:_0x36964d}=this['editor'],_0x22ab37=this['editor']['plugins']['get']('ImageInsertUI');return _0x3eda65['map'](_0x51dcdf=>{const _0xb7139f=this['_createButton'](_0xf57840,_0x51dcdf['type']);return _0xb7139f['withText']=!0x0,_0xb7139f['icon']=_0x51dcdf['icon'],_0xb7139f['bind']('label')['to'](_0x22ab37,'isImageSelected',_0x2e7725=>_(_0x36964d,_0x51dcdf['type'],_0x2e7725?'Replace':'Insert')['text']),_0xb7139f;});}['_createMenuBarButtons'](_0x21d1e8){return _0x21d1e8['map'](_0x15344f=>{const _0xafe9dd=this['_createButton'](_0x25f13d,_0x15344f['type']);return _0xafe9dd['icon']=_0x15344f['icon'],_0xafe9dd['label']=_0x15344f['shortText'],_0xafe9dd;});}}class V extends _0x495c6e{['focusTracker'];['focusCycler'];constructor(_0x55e00d){super(_0x55e00d),this['focusTracker']=new _0x42f51d(),this['focusCycler']=new _0x433bf6({'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(_0x23f2ab,_0x16150c){super(_0x23f2ab),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-'+_0x16150c}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4c63e6,_0xff863d){const _0x719abd=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x478fa=>_0x478fa<=_0xff863d)['map'](_0x30ae2f=>_0x4c63e6['replace'](/\/$/,'')+'/-/resize/'+_0x30ae2f+'x/\x20'+_0x30ae2f+'w');return{'imageFallbackUrl':_0x4c63e6,'imageSources':[{'srcset':_0x719abd['join'](',\x20'),'sizes':'(max-width:\x20'+_0xff863d+'px)\x20100vw,\x20'+_0xff863d+'px','type':'image/webp'}]};}function F(_0x5a5022,_0x364b62,_0x28123e){const _0x488906=_0x5a5022['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x488906?parseInt(_0x488906[0x1],0xa):_0x364b62,'height':_0x488906?parseInt(_0x488906[0x2],0xa):_0x28123e};}function p(_0x3326c4,_0x102bbe){const _0x514d81=new(_0x3767d1())(),_0x12f9a6=_0x3326c4['plugins']['get']('ImageUtils'),_0x1687dc=_0x3326c4['editing']['mapper']['toViewElement'](_0x102bbe),_0xaef310=_0x12f9a6['findViewImgElement'](_0x1687dc),_0x14c711=_0x3326c4['editing']['view']['domConverter']['viewToDom'](_0xaef310),_0x4ac275=_0x102bbe['getAttribute']('width'),_0x18ede4=_0x102bbe['getAttribute']('height'),_0x3c67ab='image-processing';_0x3326c4['editing']['view']['change'](_0x289983=>{_0x289983['addClass'](_0x3c67ab,_0x1687dc),_0x289983['setStyle']('aspect-ratio',_0x4ac275+'/'+_0x18ede4,_0xaef310);}),_0x514d81['listenTo'](_0x14c711,'load',()=>{_0x514d81['stopListening'](_0x14c711,'load'),_0x3326c4['editing']['view']['change'](_0x47cdcb=>{_0x47cdcb['removeClass'](_0x3c67ab,_0x1687dc),_0x47cdcb['removeStyle']('aspect-ratio',_0xaef310);});});}function R(_0x1b0540){if(Array['isArray'](_0x1b0540)){const _0x343524=_0x1b0540['map'](R);return _0x42c505=>_0x343524['some'](_0x13de90=>_0x13de90(_0x42c505));}if('origin'==_0x1b0540){const _0x781e25=_0x344656['window']['location']['origin'];return _0x324383=>new URL(_0x324383,_0x344656['document']['baseURI'])['origin']==_0x781e25;}return'function'==typeof _0x1b0540?_0x1b0540:_0x1b0540 instanceof RegExp?_0x25473d=>!(!_0x25473d['match'](_0x1b0540)&&!_0x25473d['replace'](/^https?:\/\//,'')['match'](_0x1b0540)):()=>!0x1;}function M(_0x3fed28,_0x3c158b){return _0x5660b5(_0x3fed28['target'])['includes'](_0x3c158b);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x41f4aa(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2e601c,_0x356543,_0x5c32d9){super(),this['_editor']=_0x2e601c,this['_editing']=_0x356543,this['_dialog']=_0x2e601c['plugins']['get'](_0x1601b4),this['_api']=_0x356543['ctxElement']['getAPI'](),this['_type']=_0x5c32d9,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:_0x3b02f7,model:_0x7adc6f}=this['_editor'],_0x409fa7=_0x7adc6f['document']['selection']['getSelectedElement'](),_0xff8741=_0x409fa7&&(_0x409fa7['is']('element','imageBlock')||_0x409fa7['is']('element','imageInline'));this['_formView']=new S(_0x3b02f7,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0xf07c5e,'title':_(_0x3b02f7,this['_type'],_0xff8741?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1cff5e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x25c90c=>!M(_0x25c90c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2c7243}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2ef224=>{const _0x5029b2=_0x2c7243['length'];for(const _0x57949e of _0x2c7243){const _0x4b63e9=_0x57949e===_0x2c7243[_0x5029b2-0x1],{cdnUrl:_0x234a4a,fileInfo:_0x577623}=_0x57949e;if(!_0x234a4a||!_0x577623)continue;const {width:_0x276360,height:_0x571f2a}=_0x577623['imageInfo'],_0xabb5d3=F(_0x234a4a,_0x276360,_0x571f2a),_0x49a457=C(_0x234a4a,_0xabb5d3['width']),_0x46abe7={'id':_0x577623['uuid'],'type':'image','attributes':{'imageDimension':_0xabb5d3,..._0x49a457}};this['_insertAsset'](_0x46abe7,_0x4b63e9,_0x2ef224);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x3eac05=>{'idle'===_0x3eac05['detail']['status']&&!_0x3eac05['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x82b71a,_0x2ede64,_0x4675c5){const _0x14175a=this['_editor']['model']['document']['selection'],_0x206f69=_0x14175a['getSelectedElement'](),_0x4031a3=!(!_0x206f69||!_0x206f69['is']('element','imageInline'));_0x4675c5['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x82b71a,_0x4031a3),_0x2ede64||_0x4675c5['setSelection'](_0x14175a['getLastPosition']());}['_insertImage'](_0x27f66b,_0xcd1d77){const _0x3ff4a1=this['_editor'],{imageDimension:_0x334d15,imageFallbackUrl:_0x131adb,imageSources:_0x11cdc3}=_0x27f66b['attributes'];_0x3ff4a1['execute']('insertImage',{'imageType':_0xcd1d77?'imageInline':null,'source':{'uploadcareImageId':_0x27f66b['id'],'src':_0x131adb,'sources':_0x11cdc3,..._0x334d15}});}}class w extends _0x2008ef{['_editing'];['_controller']=null;static get['requires'](){return[_0x1601b4,o];}constructor(_0x1c40cb){super(_0x1c40cb),this['_editing']=_0x1c40cb['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x481e9f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x481e9f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x5ea976,..._0x2541ac}){return _0x3d6545(_0x5ea976,_0x2541ac);}static['getInfo'](_0x594e36,_0x483654){return _0x39c98d(_0x594e36,_0x483654);}}class f extends _0x5b4246{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x58936e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3d0f19=this['editor'];if(!!!_0x3d0f19['config']['get']('uploadcare'))return;_0x3d0f19['plugins']['get'](_0x58936e)['createUploadAdapter']=_0x340212=>new k(_0x340212,_0x3d0f19),_0x3d0f19['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x32e1e3,{imageElement:_0x150f62,data:_0x579427})=>{_0x3d0f19['model']['change'](_0x554939=>{_0x554939['setAttribute']('uploadcareImageId',_0x579427['uploadcareImageId'],_0x150f62);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x3b1008,_0x5f21d0){this['loader']=_0x3b1008,this['editor']=_0x5f21d0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x8678e3=await this['loader']['file'];return j['upload']({'file':_0x8678e3,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0xe63625=>{_0xe63625&&_0xe63625['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xe63625['value']);}})['then'](async _0x370151=>{const {imageFallbackUrl:_0x5df038,imageSources:_0x46d00a}=C(_0x370151['cdnUrl'],_0x370151['imageInfo']['width']);return{'uploadcareImageId':_0x370151['uuid'],'default':_0x5df038,'sources':_0x46d00a};})['catch'](()=>{const _0x1f6118=t('Cannot\x20upload\x20file:')+('\x20'+_0x8678e3['name']+'.');return Promise['reject'](_0x1f6118);});}['abort'](){this['controller']['abort']();}}class o extends _0x5b4246{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1601b4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x249574){super(_0x249574),this['ucContextId']=_0x53d791();}['init'](){const _0x27ca15=this['editor'];_0x27ca15['commands']['add']('uploadcare',new w(_0x27ca15));}['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 _0x437a31=_0x344656['document']['querySelector']('input[uploadcare-file-input]');_0x437a31&&_0x437a31['remove']();}),async function(_0x402ca6){const _0x62904c=_0x255129([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1fbae7=0x535f8c3a,_0xfafd7a=0x5358f752^_0x1fbae7,_0x3a300e=window[_0x255129([0x44,0x61,0x74,0x65])][_0x255129([0x6e,0x6f,0x77])](),_0x5a63f0=_0x402ca6[_0x255129([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f7536=new window[(_0x255129([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a31f9=>{_0x5a63f0[_0x255129([0x6f,0x6e,0x63,0x65])](_0x255129([0x72,0x65,0x61,0x64,0x79]),_0x5a31f9);}),_0x46b751={[_0x255129([0x6b,0x74,0x79])]:_0x255129([0x45,0x43]),[_0x255129([0x75,0x73,0x65])]:_0x255129([0x73,0x69,0x67]),[_0x255129([0x63,0x72,0x76])]:_0x255129([0x50,0x2d,0x32,0x35,0x36]),[_0x255129([0x78])]:_0x255129([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]),[_0x255129([0x79])]:_0x255129([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]),[_0x255129([0x61,0x6c,0x67])]:_0x255129([0x45,0x53,0x32,0x35,0x36])},_0x373372=_0x5a63f0[_0x255129([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x255129([0x67,0x65,0x74])](_0x255129([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x68b288(){let _0x14c19c,_0x330547=null,_0x473211=null;try{if(_0x373372==_0x255129([0x47,0x50,0x4c]))return _0x255129([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14c19c=_0x162a4f(),!_0x14c19c)return _0x255129([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14c19c[_0x255129([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x473211=_0x59b942(_0x14c19c[_0x255129([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14c19c[_0x255129([0x6a,0x74,0x69])])),await _0x4e82ef()?_0x303aa2()?_0x493f96()?_0x255129([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa45666()?(_0x14c19c[_0x255129([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x255129([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x330547=_0x22e52a(_0x255129([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x14c19c[_0x255129([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x255129([0x74,0x72,0x69,0x61,0x6c])&&(_0x330547=_0x22e52a(_0x255129([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xdc3536()):_0x255129([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x255129([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x255129([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x255129([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x493f96(){const _0x128ca8=[_0x255129([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x255129([0x74,0x72,0x69,0x61,0x6c])][_0x255129([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14c19c[_0x255129([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a300e/0x3e8:0xe10*_0xfafd7a;return _0x14c19c[_0x255129([0x65,0x78,0x70])]<_0x128ca8;}function _0x303aa2(){const _0x119b91=_0x14c19c[_0x255129([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x119b91&&(!!_0x119b91[_0x255129([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x255129([0x2a]))||!!_0x119b91[_0x255129([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x255129([0x55,0x50,0x4c,0x43])));}function _0xa45666(){const _0xc9070d=_0x14c19c[_0x255129([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc9070d||0x0==_0xc9070d[_0x255129([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d365d}=new URL(window[_0x255129([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xc9070d[_0x255129([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d365d))return!0x0;const _0x6c8b4b=_0x2d365d[_0x255129([0x73,0x70,0x6c,0x69,0x74])](_0x255129([0x2e]));return _0xc9070d[_0x255129([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28d76f=>_0x28d76f[_0x255129([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x255129([0x2a])))[_0x255129([0x6d,0x61,0x70])](_0xa189b9=>_0xa189b9[_0x255129([0x73,0x70,0x6c,0x69,0x74])](_0x255129([0x2e])))[_0x255129([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a3237=>_0x4a3237[_0x255129([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x6c8b4b[_0x255129([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x255129([0x6d,0x61,0x70])](_0x50953a=>Array(_0x6c8b4b[_0x255129([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x50953a[_0x255129([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x255129([0x66,0x69,0x6c,0x6c])](_0x50953a[0x0]===_0x255129([0x2a])?_0x255129([0x2a]):'')[_0x255129([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x50953a))[_0x255129([0x73,0x6f,0x6d,0x65])](_0x15d1ab=>_0x6c8b4b[_0x255129([0x65,0x76,0x65,0x72,0x79])]((_0x508906,_0x2ca2f4)=>_0x15d1ab[_0x2ca2f4]===_0x508906||_0x15d1ab[_0x2ca2f4]===_0x255129([0x2a])));}function _0xdc3536(){return _0x330547&&_0x473211?new window[(_0x255129([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49ffce,_0xf5a6fa)=>{_0x330547[_0x255129([0x74,0x68,0x65,0x6e])](_0x49ffce,_0xf5a6fa),_0x473211[_0x255129([0x74,0x68,0x65,0x6e])](_0xb873fe=>{_0xb873fe!=_0x255129([0x56,0x61,0x6c,0x69,0x64])&&_0x49ffce(_0xb873fe);},_0xf5a6fa);}):_0x330547||_0x473211||_0x255129([0x56,0x61,0x6c,0x69,0x64]);}}function _0x59b942(_0xe3ae09,_0x49fccd){return new window[(_0x255129([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f5c27=>{if(_0x56f11b())return _0x4f5c27(_0x255129([0x56,0x61,0x6c,0x69,0x64]));_0x2f9533(),_0x5a63f0[_0x255129([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x255129([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5899bc=!0x1;const _0x4adcf5=_0x53d791();function _0x48330e(_0x3d77d1){return!!_0x3d77d1&&(typeof _0x3d77d1===_0x255129([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3d77d1===_0x255129([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3d77d1[_0x255129([0x74,0x68,0x65,0x6e])]===_0x255129([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3d77d1[_0x255129([0x63,0x61,0x74,0x63,0x68])]===_0x255129([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x48d587(_0x419ff0){_0x345e1e(_0x419ff0)[_0x255129([0x74,0x68,0x65,0x6e])](_0x4e21ef=>{if(!_0x4e21ef||_0x4e21ef[_0x255129([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x255129([0x6f,0x6b]))return _0x255129([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5818fe(_0x814579(_0x4adcf5+_0x49fccd))!=_0x4e21ef[_0x255129([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x255129([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x255129([0x56,0x61,0x6c,0x69,0x64]);})[_0x255129([0x74,0x68,0x65,0x6e])](_0xbf128c=>(_0x5057eb(),_0xbf128c),()=>{const _0x5914d5=_0x2ad58b();return null==_0x5914d5?(_0x5057eb(),_0x255129([0x56,0x61,0x6c,0x69,0x64])):_0x255129(_0x3a300e-_0x5914d5>(0x7753083a^_0x1fbae7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x255129([0x74,0x68,0x65,0x6e])](_0x4f5c27)[_0x255129([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f5c27(_0x255129([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x282d8c=0x536962ba^_0x1fbae7;function _0x5057eb(){const _0x3ade98=_0x255129([0x6c,0x6c,0x63,0x74,0x2d])+_0x5818fe(_0x814579(_0xe3ae09)),_0x1b14b2=_0x5778ca(_0x5818fe(window[_0x255129([0x4d,0x61,0x74,0x68])][_0x255129([0x63,0x65,0x69,0x6c])](_0x3a300e/_0x282d8c)));window[_0x255129([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x255129([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ade98,_0x1b14b2);}function _0x2ad58b(){const _0x1835ce=_0x255129([0x6c,0x6c,0x63,0x74,0x2d])+_0x5818fe(_0x814579(_0xe3ae09)),_0x1091dc=window[_0x255129([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x255129([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1835ce);return _0x1091dc?window[_0x255129([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5778ca(_0x1091dc),0x10)*_0x282d8c:null;}function _0x345e1e(_0x354944){return new window[(_0x255129([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x94344e,_0x26bedd)=>{_0x354944[_0x255129([0x74,0x68,0x65,0x6e])](_0x94344e,_0x26bedd),window[_0x255129([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26bedd,0x535e58fa^_0x1fbae7);});}}_0x5a63f0[_0x255129([0x6f,0x6e])](_0x255129([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5231de,_0x4e9d7c)=>{if(_0x4e9d7c[0x0]!=_0xe3ae09)return _0x4f5c27(_0x255129([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e9d7c[0x1]={..._0x4e9d7c[0x1],[_0x255129([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4adcf5};},{[_0x255129([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x255129([0x68,0x69,0x67,0x68])}),_0x5a63f0[_0x255129([0x6f,0x6e])](_0x255129([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2d2a09=>{_0x48330e(_0x2d2a09[_0x255129([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5899bc=!0x0,_0x48d587(_0x2d2a09[_0x255129([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x255129([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x255129([0x6c,0x6f,0x77])}),_0x1f7536[_0x255129([0x74,0x68,0x65,0x6e])](()=>{_0x5899bc||_0x4f5c27(_0x255129([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x56f11b(){return _0x5a63f0[_0x255129([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x255129([0x76,0x69,0x65,0x77])][_0x255129([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x255129([0x61,0x75,0x74,0x6f]);}function _0x2f9533(){_0x5a63f0[_0x255129([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x255129([0x76,0x69,0x65,0x77])][_0x255129([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x255129([0x61,0x75,0x74,0x6f]);}}function _0x22e52a(_0x1b3bdb){const _0x3d246c=[new window[(_0x255129([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b220d=>setTimeout(_0x2b220d,0x5356b2f6^_0x1fbae7)),_0x1f7536[_0x255129([0x74,0x68,0x65,0x6e])](()=>new window[(_0x255129([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5afbb8=>{let _0x1d8950=0x0;_0x5a63f0[_0x255129([0x6d,0x6f,0x64,0x65,0x6c])][_0x255129([0x6f,0x6e])](_0x255129([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2524af,_0x959eaf)=>{_0x959eaf[0x0][_0x255129([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1d8950++,_0x1d8950==(0x535f8dc2^_0x1fbae7)&&(_0x5afbb8(),_0x2524af[_0x255129([0x6f,0x66,0x66])]());});}))];return window[_0x255129([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x255129([0x72,0x61,0x63,0x65])](_0x3d246c)[_0x255129([0x74,0x68,0x65,0x6e])](()=>_0x1b3bdb);}async function _0x146d64(){await _0x1f7536,_0x5a63f0[_0x255129([0x6d,0x6f,0x64,0x65,0x6c])][_0x255129([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4a6f67,_0x5a63f0[_0x255129([0x6d,0x6f,0x64,0x65,0x6c])][_0x255129([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4a6f67,_0x5a63f0[_0x255129([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x255129([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45c733(_0xc6247){const _0x4d7c1a=_0x5f0e86();_0x5a63f0[_0x4d7c1a]=_0x255129([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xc6247,_0xc6247!=_0x255129([0x56,0x61,0x6c,0x69,0x64])&&_0x146d64();}function _0x5f0e86(){const _0x4abe35=window[_0x255129([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x255129([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x255129([0x6e,0x6f,0x77])]())[_0x255129([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x255129([0x2e]),'');let _0x5c9122=_0x255129([0x68]);for(let _0xc0e63d=0x0;_0xc0e63d<_0x4abe35[_0x255129([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc0e63d+=0x2){let _0x32d272=window[_0x255129([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4abe35[_0x255129([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc0e63d,_0xc0e63d+0x2));_0x32d272>=_0x62904c[_0x255129([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x32d272-=_0x62904c[_0x255129([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5c9122+=_0x62904c[_0x32d272];}return _0x5c9122;}function _0x162a4f(){const _0x25147e=_0x373372[_0x255129([0x73,0x70,0x6c,0x69,0x74])](_0x255129([0x2e]));if(0x3!=_0x25147e[_0x255129([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x44da2a(_0x25147e[0x1]);function _0x44da2a(_0x4da34c){const _0x57124b=_0x4dff70(_0x4da34c);return _0x57124b&&_0x36c7d3()?_0x57124b:null;function _0x36c7d3(){const _0x15b5e7=_0x57124b[_0x255129([0x6a,0x74,0x69])],_0x4e776c=window[_0x255129([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15b5e7[_0x255129([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15b5e7[_0x255129([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11a66a={..._0x57124b,[_0x255129([0x6a,0x74,0x69])]:_0x15b5e7[_0x255129([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15b5e7[_0x255129([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11a66a[_0x255129([0x76,0x63])],_0x814579(_0x11a66a)==_0x4e776c;}}}async function _0x4e82ef(){let _0x3734e9=!0x0;try{const _0x50968d=_0x373372[_0x255129([0x73,0x70,0x6c,0x69,0x74])](_0x255129([0x2e])),[_0x3053a5,_0x1a11a6,_0x4c6725]=_0x50968d;return _0x3f6821(_0x3053a5),await _0x33dcee(_0x3053a5,_0x1a11a6,_0x4c6725),_0x3734e9;}catch{return!0x1;}function _0x3f6821(_0x44065b){const _0x56b505=_0x4dff70(_0x44065b);_0x56b505&&_0x56b505[_0x255129([0x61,0x6c,0x67])]==_0x255129([0x45,0x53,0x32,0x35,0x36])||(_0x3734e9=!0x1);}async function _0x33dcee(_0x1660ba,_0x16225e,_0x200996){const _0xf3dbb7=window[_0x255129([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x255129([0x66,0x72,0x6f,0x6d])](_0x4f3c69(_0x200996),_0x15b462=>_0x15b462[_0x255129([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f0305=new window[(_0x255129([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x255129([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1660ba+_0x255129([0x2e])+_0x16225e),_0x2cebef=window[_0x255129([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x255129([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2cebef)return;const _0x2fb42b=await _0x2cebef[_0x255129([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x255129([0x6a,0x77,0x6b]),_0x46b751,{[_0x255129([0x6e,0x61,0x6d,0x65])]:_0x255129([0x45,0x43,0x44,0x53,0x41]),[_0x255129([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x255129([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x255129([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2cebef[_0x255129([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x255129([0x6e,0x61,0x6d,0x65])]:_0x255129([0x45,0x43,0x44,0x53,0x41]),[_0x255129([0x68,0x61,0x73,0x68])]:{[_0x255129([0x6e,0x61,0x6d,0x65])]:_0x255129([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2fb42b,_0xf3dbb7,_0x4f0305)||(_0x3734e9=!0x1);}}function _0x4dff70(_0x274f9a){return _0x274f9a[_0x255129([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x255129([0x65,0x79]))?JSON[_0x255129([0x70,0x61,0x72,0x73,0x65])](_0x4f3c69(_0x274f9a)):null;}function _0x4f3c69(_0x38a199){return window[_0x255129([0x61,0x74,0x6f,0x62])](_0x38a199[_0x255129([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x255129([0x2b]))[_0x255129([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x255129([0x2f])));}function _0x814579(_0x402abf){let _0x1fa52d=0x1505;function _0x277fdc(_0x274780){for(let _0x5aefb7=0x0;_0x5aefb7<_0x274780[_0x255129([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5aefb7++){const _0x1bda7c=_0x274780[_0x255129([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5aefb7);_0x1fa52d=(_0x1fa52d<<0x5)+_0x1fa52d+_0x1bda7c,_0x1fa52d&=_0x1fa52d;}}function _0x2cb9ee(_0x506212){Array[_0x255129([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x506212)?_0x506212[_0x255129([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2cb9ee):_0x506212&&typeof _0x506212==_0x255129([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x255129([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x506212)[_0x255129([0x73,0x6f,0x72,0x74])]()[_0x255129([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x273b43,_0x460da7])=>{_0x277fdc(_0x273b43),_0x2cb9ee(_0x460da7);}):_0x277fdc(window[_0x255129([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x506212));}return _0x2cb9ee(_0x402abf),_0x1fa52d>>>0x0;}function _0x5818fe(_0x3ff3eb){return _0x3ff3eb[_0x255129([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x255129([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x255129([0x30]));}function _0x5778ca(_0x4a7faa){return _0x4a7faa[_0x255129([0x73,0x70,0x6c,0x69,0x74])]('')[_0x255129([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x255129([0x6a,0x6f,0x69,0x6e])]('');}function _0x4a6f67(){}function _0x255129(_0x20f59f){return _0x20f59f['map'](_0xc35db=>String['fromCharCode'](_0xc35db))['join']('');}_0x45c733(await _0x68b288());}(this);}['_initSchema'](){const _0x3b511f=this['editor']['model']['schema'];_0x3b511f['isRegistered']('imageBlock')&&_0x3b511f['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3b511f['isRegistered']('imageInline')&&_0x3b511f['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1a231b=this['editor'];_0x1a231b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1a231b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x579b8c=>_0x579b8c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5191fa=_0x1a231b['commands']['get']('replaceImageSource');_0x5191fa&&this['listenTo'](_0x5191fa,'cleanupImage',(_0x196484,[_0x5299f5,_0x4ad425])=>{_0x5299f5['removeAttribute']('uploadcareImageId',_0x4ad425);});}['_initConfig'](){const _0x32df77=this['editor']['config']['get']('uploadcare.uploader')||{},_0xa63bba=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x237d8e(_0x344656['document'],'uc-config',{..._0x32df77,'pubkey':_0xa63bba,'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']=_0x4566cd=>{if('closeMax'==_0x4566cd)return'#uc-icon-arrow-down';},_0x344656['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x237d8e(_0x344656['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x344656['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x50bbd8=this['editor']['commands']['get']('insertImage');_0x50bbd8&&this['listenTo'](_0x50bbd8,'execute',()=>{const _0x149a54=this['editor']['model']['document']['selection']['getSelectedElement']();_0x149a54&&_0x149a54['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x149a54);});});const _0x258e97=this['editor']['commands']['get']('uploadcareImageReplace');_0x258e97&&this['listenTo'](_0x258e97,'execute',()=>{const _0x2f6d9c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2f6d9c&&_0x2f6d9c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2f6d9c);});});}}class tt extends _0x5b4246{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xfbc0d4){super(_0xfbc0d4),_0xfbc0d4['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x15364e['defineComponents'](_0x15364e),this['_defineLocale']();}['_defineLocale'](){const _0x30ba52=this['editor']['config']['get']('uploadcare.locale'),_0x88aeac=this['editor']['locale']['contentLanguage'];_0x30ba52&&_0x15364e['defineLocale'](_0x88aeac,_0x30ba52);}}class ii extends _0x495c6e{constructor(_0x556df9){super(_0x556df9);const t=_0x556df9['t'],_0x4bbe22=this['bindTemplate'],_0x3c97b8=new _0x50ee97();_0x3c97b8['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':[_0x3c97b8,{'text':_0x4bbe22['to']('imageUploadProgress',_0x1b6984=>t('Loading\x20image...')+'\x20('+(_0x1b6984||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 _0x495c6e{constructor(_0x154a94){super(_0x154a94);const t=_0x154a94['t'];this['set']('errorType',null);const _0x1d8489=new _0xf57840(_0x154a94);_0x1d8489['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1d8489['withText']=!0x0,_0x1d8489['class']='ck-button-action',_0x1d8489['on']('execute',()=>{this['fire']('retry');}),_0x1d8489['bind']('isVisible')['to'](this,'errorType',_0x1db04c=>'NotFound'!==_0x1db04c);const _0x487243=new _0x573e41();_0x487243['content']=_0x43b2ad,_0x487243['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x16d1bf=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':[_0x487243,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x16d1bf['to']('errorType',_0x5c4ff9=>t('NotFound'!==_0x5c4ff9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1d8489]},{'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 _0x495c6e{constructor(_0x201381,_0x164d07){super(_0x201381);const _0x542eed=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x164d07,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x542eed['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x39658c,_0x25e1bd,_0x2bf333){super(_0x39658c),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x39658c),this['_errorView']=new ti(_0x39658c),this['_editingView']=new ei(_0x39658c,_0x2bf333),this['_focusableView']=new _0x495c6e(_0x39658c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x25e1bd),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'],_0x153abe=>{this['_addUploadcareImageEditorListeners'](_0x153abe);});}),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'](_0x448a57,_0x2fb9c3){const _0x54e2fe='uc-cloud-image-editor',_0x4b5bee=_0x448a57['querySelector'](_0x54e2fe);if(_0x4b5bee)return _0x2fb9c3(_0x4b5bee);const _0x546da3=new MutationObserver(_0x12755c=>{const _0x14de21=_0x12755c['filter'](_0x6c6ea0=>_0x6c6ea0['target']===_0x448a57&&_0x6c6ea0['addedNodes']['length']>0x0&&_0x6c6ea0['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x54e2fe);_0x14de21['length']&&(_0x546da3['disconnect'](),_0x2fb9c3(_0x14de21[0x0]['addedNodes'][0x0]));});_0x546da3['observe'](_0x448a57,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x11b86c){_0x11b86c['addEventListener']('apply',_0x4d1b91=>{this['fire']('apply',{'imageSrc':_0x4d1b91['detail']['cdnUrl']});}),_0x11b86c['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x41f4aa(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5d60a8,_0xcd25a2,_0x1630c4){super(),this['_editor']=_0x5d60a8,this['_dialog']=_0xcd25a2,this['_imageElement']=_0x1630c4,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 _0x1d57af=this['_imageElement'],_0x495470=_0x1d57af['getAttribute']('uploadcareImageId'),_0x39529a=_0x1d57af['getAttribute']('src');if(_0x495470)await this['_loadImageInfo'](_0x495470,_0x39529a);else{if(this['_imageCache']['has'](_0x39529a)){const _0x37918f=this['_imageCache']['get'](_0x39529a);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x37918f['url'],this['imageDimension']=_0x37918f['dimension'],this['imageId']=_0x37918f['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x2ab2ad}=this['_editor'],t=_0x2ab2ad['t'],_0x3688a4=new X(_0x2ab2ad,this['imageStatus'],this['_attributes']);_0x3688a4['bind']('status')['to'](this,'imageStatus'),_0x3688a4['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3688a4['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3688a4['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3688a4,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1e0cb0,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3688a4,'position':_0x1cff5e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3688a4['focus']();},'onHide':()=>{_0x3688a4['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xafbca1=>!M(_0xafbca1,_0x3688a4['element'])}});}['_loadImageInfo'](_0x391775,_0x2fd2d7){return j['getInfo'](_0x391775,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x2d325c=>{const {width:_0x50e244,height:_0x336401}=_0x2d325c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2fd2d7,this['imageDimension']={'width':_0x50e244,'height':_0x336401},this['imageId']=_0x391775;})['catch'](_0x5181bc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5181bc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0xad446,_0x4e7466){return this['_getImageAsFile'](_0xad446)['then'](_0x29919f=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x4e7466['signal'],'file':_0x29919f,'onProgress':_0x229032=>{_0x229032&&_0x229032['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x229032['value']));}}))['then'](_0x3114f7=>{const {width:_0x269e5c,height:_0x4b3104}=_0x3114f7['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3114f7['cdnUrl'],this['imageDimension']={'width':_0x269e5c,'height':_0x4b3104},this['imageId']=_0x3114f7['uuid'],this['imageUploadProgress']=null;const _0x41ec00=_0xad446['getAttribute']('src');this['_imageCache']['set'](_0x41ec00,{'id':_0x3114f7['uuid'],'url':_0x3114f7['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x395c77=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x395c77['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x17a77e,_0x496496){_0x17a77e['on']('apply',(_0xd7b3e0,_0x3f7b76)=>{this['_replaceImage'](_0x496496,_0x3f7b76['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x17a77e['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x17a77e['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0xd20b6d,_0x3c60b0,_0x2c8d2f){const _0x43bfbe=this['_editor'],{width:_0x3104e3,height:_0x2400ea}=F(_0x3c60b0,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4423a3,imageSources:_0x6a39d0}=C(_0x3c60b0,_0x3104e3);_0x43bfbe['model']['change'](_0x15659d=>{if('$graveyard'===_0xd20b6d['root']['rootName']){_0x43bfbe['execute']('insertImage',{'imageType':_0xd20b6d['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0xd20b6d['getAttributes']()),'uploadcareImageId':_0x2c8d2f,'src':_0x4423a3,'sources':_0x6a39d0,'width':_0x3104e3,'height':_0x2400ea}});const _0x814e3c=_0xd20b6d['getChildren']();_0xd20b6d=_0x43bfbe['model']['document']['selection']['getSelectedElement']();for(const _0x68a92 of _0x814e3c)_0x15659d['append'](_0x15659d['cloneElement'](_0x68a92),_0xd20b6d);}else _0x15659d['setSelection'](_0xd20b6d,'on'),_0x43bfbe['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0xd20b6d['getAttributes']()),'uploadcareImageId':_0x2c8d2f,'src':_0x4423a3,'sources':_0x6a39d0,'width':_0x3104e3,'height':_0x2400ea},_0xd20b6d);_0x15659d['setSelection'](_0xd20b6d,'on');});}async['_getImageAsFile'](_0xe23df8){const _0xd28832=_0x344656['window'],_0x1eadf8=_0x344656['document']['location']['href'],_0xa70613=new _0xd28832['URL'](_0xe23df8['getAttribute']('src'),_0x1eadf8);if('data:'===_0xa70613['protocol']){const _0x48cc1d=_0xa70613['href']['split'](','),_0x25aa47=_0x48cc1d[0x0]['match'](/:(.*?);/)[0x1],_0x4021dd=_0x25aa47['split']('/')[0x1],_0x4ad869=_0xd28832['atob'](_0x48cc1d[_0x48cc1d['length']-0x1]);let _0x2e4eb2=_0x4ad869['length'];const _0x240825=new _0xd28832['Uint8Array'](_0x2e4eb2);for(;_0x2e4eb2--;)_0x240825[_0x2e4eb2]=_0x4ad869['charCodeAt'](_0x2e4eb2);return new _0xd28832['File']([_0x240825],'image.'+_0x4021dd,{'type':_0x25aa47});}const _0x4b96d3=_0xa70613['href']['split']('/'),_0x5a31a1=_0x4b96d3[_0x4b96d3['length']-0x1],_0x49f5ea=_0x5a31a1['split']('.')[0x1];return _0xd28832['fetch'](_0xa70613['href'])['then'](_0x130ae4=>_0x130ae4['clone']()['blob']())['then'](_0x38a617=>new _0xd28832['File']([_0x38a617],_0x5a31a1,{'type':'image/'+_0x49f5ea}));}}class N extends _0x2008ef{['imageEditController'];static get['requires'](){return[_0x1601b4];}['_isEditable'];constructor(_0x3b4e5b){super(_0x3b4e5b),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x539f6f){const _0x379972=R(_0x539f6f);return _0x260c02=>!(!_0x260c02||!_0x260c02['is']('element','imageBlock')&&!_0x260c02['is']('element','imageInline'))&&(!!_0x260c02['hasAttribute']('uploadcareImageId')||!!_0x260c02['hasAttribute']('src')&&_0x379972(_0x260c02['getAttribute']('src')));}(_0x3b4e5b['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1b175e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1b175e);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1cff31=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1cff31&&(_0x1cff31['is']('element','imageBlock')||_0x1cff31['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1601b4),_0x1cff31),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2008ef{['refresh'](){const _0x4edea5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4edea5&&(_0x4edea5['is']('element','imageBlock')||_0x4edea5['is']('element','imageInline')));}['execute'](_0x1554c8){const _0x34b400=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3a70ef=>{_0x3a70ef['setAttributes'](_0x1554c8,_0x34b400),_0x3a70ef['removeAttribute']('srcset',_0x34b400),_0x3a70ef['removeAttribute']('sizes',_0x34b400);});}}class m extends _0x5b4246{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x544ee2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2cb273}=this;_0x2cb273['commands']['add']('uploadcareImageEdit',new N(_0x2cb273)),_0x2cb273['commands']['add']('uploadcareImageReplace',new O(_0x2cb273));}}class g extends _0x5b4246{['_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 _0x3f5d03=this['editor'];_0x3f5d03['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3a3191=>{const _0x4df9fc=_0x3f5d03['commands']['get']('uploadcareImageEdit'),_0x3dfb59=new _0xf57840(_0x3a3191),t=_0x3a3191['t'];return _0x3dfb59['set']({'icon':_0x1e0cb0,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3dfb59['bind']('isEnabled')['to'](_0x4df9fc),_0x3dfb59['bind']('isOn')['to'](_0x4df9fc,'isActive'),this['listenTo'](_0x3dfb59,'execute',()=>{_0x3f5d03['execute']('uploadcareImageEdit'),_0x3f5d03['editing']['view']['focus']();}),_0x3dfb59;}),this['_initConfig']();}['_initConfig'](){const _0x4b04f8=_0x237d8e(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4b04f8),this['listenTo'](this['editor'],'destroy',()=>{_0x4b04f8['remove']();});}}class et extends _0x5b4246{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 _0x3a1a05,Command as _0x52bb4f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x2f034a,IconGooglePhotos as _0x30f923,IconGoogleDrive as _0x2f1c9b,IconFacebook as _0xe15202,IconDropbox as _0x2d3392,IconUploadcareLink as _0x3d8e84,IconUploadcareImageUpload as _0x3b04ac,IconError as _0x55dab6,IconUploadcareImageEdit as _0x125b31}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4e4686,MenuBarMenuListItemButtonView as _0x3d3c7f,View as _0x248a7e,FocusCycler as _0x13a210,Dialog as _0x1e307c,DialogViewPosition as _0x2a0755,SpinnerView as _0x348c94,IconView as _0x2c122b,Notification as _0x2d41bd}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x37cf0f,DomEmitterMixin as _0xf7d239,global as _0x818c6,getAncestors as _0x181be2,ObservableMixin as _0x40fb6a,uid as _0x4cb41b,createElement as _0x18e4f8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x879fab}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3fb043,info as _0x176ffe}from'@uploadcare/upload-client';import*as _0x5c02eb from'@uploadcare/file-uploader';var i=function(_0x2ae887){return _0x2ae887['Local']='local',_0x2ae887['URL']='url',_0x2ae887['Dropbox']='dropbox',_0x2ae887['GDrive']='gdrive',_0x2ae887['Facebook']='facebook',_0x2ae887['GPhotos']='gphotos',_0x2ae887['OneDrive']='onedrive',_0x2ae887;}({});function _(_0x575eda,_0x2f0727,_0x4d29fc){const t=_0x575eda['t'],_0x21cc5b=_0x575eda['t'];switch(_0x2f0727){case i['Local']:return{'text':_0x21cc5b('Insert'===_0x4d29fc?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x21cc5b('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x4d29fc?_0x21cc5b('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x21cc5b('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x4d29fc?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x4d29fc?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x4d29fc?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x4d29fc?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x4d29fc?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2f0727;}}class e extends _0x3a1a05{['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 _0x25b718=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x18f59f;for(const _0x558878 in _0x25b718){const _0x452191=_0x558878,_0x519cc1=_0x25b718[_0x452191];if('uploadcareLicenseKeyValid'==_0x519cc1||'uploadcareLicenseKeyInvalid'==_0x519cc1||'uploadcareLicenseKeyExpired'==_0x519cc1||'uploadcareLicenseKeyDomainLimit'==_0x519cc1||'uploadcareLicenseKeyNotAllowed'==_0x519cc1||'uploadcareLicenseKeyEvaluationLimit'==_0x519cc1||'uploadcareLicenseKeyTrialLimit'==_0x519cc1||'uploadcareLicenseKeyUsageLimit'==_0x519cc1){delete _0x25b718[_0x452191],_0x18f59f=_0x519cc1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x18f59f&&_0x25b718['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x18f59f&&_0x25b718['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x18f59f&&_0x25b718['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x18f59f&&_0x25b718['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x18f59f&&_0x25b718['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x18f59f&&_0x25b718['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x18f59f&&_0x25b718['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x85031a}=this,_0x1d98a8=_0x85031a['commands']['get']('uploadcare');if(!_0x1d98a8)return;const _0x1085d2=this['_normalizeConfigSourceList'](_0x85031a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x291b48,_0x280950)=>{const _0x51d6d1=this['_getIntegrationKey'](_0x280950['type']);return _0x291b48[_0x51d6d1]||(_0x291b48[_0x51d6d1]=[]),_0x291b48[_0x51d6d1]['push'](_0x280950),_0x291b48;},{});_0x85031a['plugins']['has']('ImageInsertUI')&&_0x85031a['commands']['get']('uploadcare')&&Object['entries'](_0x1085d2)['forEach'](([_0xc5f01a,_0x9eeff3])=>{_0x85031a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xc5f01a,'observable':()=>_0x1d98a8,'buttonViewCreator':()=>this['_createToolbarButton'](_0x9eeff3),'formViewCreator':()=>this['_createDropdownButtons'](_0x9eeff3),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x9eeff3),'override':'assetManager'!==_0xc5f01a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x13e14d){const {locale:_0x2af9ba}=this['editor'];return _0x13e14d['map'](_0x3ee07b=>{const _0x5d6074=_(_0x2af9ba,_0x3ee07b,'Insert');switch(_0x3ee07b){case i['Local']:return{'icon':_0x3b04ac,'type':i['Local'],..._0x5d6074};case i['URL']:return{'icon':_0x3d8e84,'type':i['URL'],..._0x5d6074};case i['Dropbox']:return{'icon':_0x2d3392,'type':i['Dropbox'],..._0x5d6074};case i['Facebook']:return{'icon':_0xe15202,'type':i['Facebook'],..._0x5d6074};case i['GDrive']:return{'icon':_0x2f1c9b,'type':i['GDrive'],..._0x5d6074};case i['GPhotos']:return{'icon':_0x30f923,'type':i['GPhotos'],..._0x5d6074};case i['OneDrive']:return{'icon':_0x2f034a,'type':i['OneDrive'],..._0x5d6074};}});}['_getIntegrationKey'](_0x1e66e1){switch(_0x1e66e1){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x22334f,_0x4a979b){const _0x53ed53=this['editor'],_0x34ca2c=new _0x22334f(_0x53ed53['locale']),_0x33598c=_0x53ed53['commands']['get']('uploadcare');return _0x34ca2c['bind']('isEnabled')['to'](_0x33598c),_0x34ca2c['on']('execute',()=>{_0x33598c['execute'](_0x4a979b);}),_0x34ca2c;}['_createToolbarButton'](_0x5bebc5){const {locale:_0x3ff129}=this['editor'],_0x7c2512=this['editor']['plugins']['get']('ImageInsertUI'),_0x380a74=_0x5bebc5[0x0],_0x1051eb=this['_createButton'](_0x4e4686,_0x380a74['type']);return _0x1051eb['icon']=_0x380a74['icon'],_0x1051eb['bind']('label')['to'](_0x7c2512,'isImageSelected',_0x43344d=>_(_0x3ff129,_0x380a74['type'],_0x43344d?'Replace':'Insert')['text']),_0x1051eb['tooltip']=!0x0,_0x1051eb;}['_createDropdownButtons'](_0x786f67){const {locale:_0x1b8c16}=this['editor'],_0x850bb4=this['editor']['plugins']['get']('ImageInsertUI');return _0x786f67['map'](_0x3987c7=>{const _0x4d7e3f=this['_createButton'](_0x4e4686,_0x3987c7['type']);return _0x4d7e3f['withText']=!0x0,_0x4d7e3f['icon']=_0x3987c7['icon'],_0x4d7e3f['bind']('label')['to'](_0x850bb4,'isImageSelected',_0x3b2415=>_(_0x1b8c16,_0x3987c7['type'],_0x3b2415?'Replace':'Insert')['text']),_0x4d7e3f;});}['_createMenuBarButtons'](_0x51d585){return _0x51d585['map'](_0x5b5334=>{const _0x368906=this['_createButton'](_0x3d3c7f,_0x5b5334['type']);return _0x368906['icon']=_0x5b5334['icon'],_0x368906['label']=_0x5b5334['shortText'],_0x368906;});}}class F extends _0x248a7e{['focusTracker'];['focusCycler'];constructor(_0x5dc27c){super(_0x5dc27c),this['focusTracker']=new _0x37cf0f(),this['focusCycler']=new _0x13a210({'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(_0x47fd15,_0x5302c4){super(_0x47fd15),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-'+_0x5302c4}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5090b7,_0x491a08){const _0x39cc89=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x599adb=>_0x599adb<=_0x491a08)['map'](_0x5c75c6=>_0x5090b7['replace'](/\/$/,'')+'/-/resize/'+_0x5c75c6+'x/\x20'+_0x5c75c6+'w');return{'imageFallbackUrl':_0x5090b7,'imageSources':[{'srcset':_0x39cc89['join'](',\x20'),'sizes':'(max-width:\x20'+_0x491a08+'px)\x20100vw,\x20'+_0x491a08+'px','type':'image/webp'}]};}function S(_0x21a0be,_0x206996,_0x57e252){const _0xa4d116=_0x21a0be['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xa4d116?parseInt(_0xa4d116[0x1],0xa):_0x206996,'height':_0xa4d116?parseInt(_0xa4d116[0x2],0xa):_0x57e252};}function p(_0x39f240,_0x232160){const _0x14c5f2=new(_0xf7d239())(),_0x49b309=_0x39f240['plugins']['get']('ImageUtils'),_0xd2b7e7=_0x39f240['editing']['mapper']['toViewElement'](_0x232160),_0x4d2839=_0x49b309['findViewImgElement'](_0xd2b7e7),_0x299101=_0x39f240['editing']['view']['domConverter']['viewToDom'](_0x4d2839),_0x41767b=_0x232160['getAttribute']('width'),_0x200987=_0x232160['getAttribute']('height'),_0x4f4c4a='image-processing';_0x39f240['editing']['view']['change'](_0xfbf5d1=>{_0xfbf5d1['addClass'](_0x4f4c4a,_0xd2b7e7),_0xfbf5d1['setStyle']('aspect-ratio',_0x41767b+'/'+_0x200987,_0x4d2839);}),_0x14c5f2['listenTo'](_0x299101,'load',()=>{_0x14c5f2['stopListening'](_0x299101,'load'),_0x39f240['editing']['view']['change'](_0x59026b=>{_0x59026b['removeClass'](_0x4f4c4a,_0xd2b7e7),_0x59026b['removeStyle']('aspect-ratio',_0x4d2839);});});}function G(_0x19f89d){if(Array['isArray'](_0x19f89d)){const _0x518f6f=_0x19f89d['map'](G);return _0x2a0250=>_0x518f6f['some'](_0x9ec002=>_0x9ec002(_0x2a0250));}if('origin'==_0x19f89d){const _0x279813=_0x818c6['window']['location']['origin'];return _0x4172ee=>new URL(_0x4172ee,_0x818c6['document']['baseURI'])['origin']==_0x279813;}return'function'==typeof _0x19f89d?_0x19f89d:_0x19f89d instanceof RegExp?_0x42c3cc=>!(!_0x42c3cc['match'](_0x19f89d)&&!_0x42c3cc['replace'](/^https?:\/\//,'')['match'](_0x19f89d)):()=>!0x1;}function A(_0x4ad735,_0x3824c6){return _0x181be2(_0x4ad735['target'])['includes'](_0x3824c6);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x40fb6a(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xf51b84,_0x112bfc,_0x44f73a){super(),this['_editor']=_0xf51b84,this['_editing']=_0x112bfc,this['_dialog']=_0xf51b84['plugins']['get'](_0x1e307c),this['_api']=_0x112bfc['ctxElement']['getAPI'](),this['_type']=_0x44f73a,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:_0x183e8a,model:_0x406cf6}=this['_editor'],_0x53c893=_0x406cf6['document']['selection']['getSelectedElement'](),_0xa024d0=_0x53c893&&(_0x53c893['is']('element','imageBlock')||_0x53c893['is']('element','imageInline'));this['_formView']=new x(_0x183e8a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x3b04ac,'title':_(_0x183e8a,this['_type'],_0xa024d0?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x2a0755['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4d74e3=>!A(_0x4d74e3,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x58f30e}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x390ba3=>{const _0x3509da=_0x58f30e['length'];for(const _0x123f41 of _0x58f30e){const _0x591c4b=_0x123f41===_0x58f30e[_0x3509da-0x1],{cdnUrl:_0x31bc06,fileInfo:_0x563cd2}=_0x123f41;if(!_0x31bc06||!_0x563cd2)continue;const {width:_0x343d48,height:_0x4f9588}=_0x563cd2['imageInfo'],_0x2057da=S(_0x31bc06,_0x343d48,_0x4f9588),_0x105917=C(_0x31bc06,_0x2057da['width']),_0x2eec67={'id':_0x563cd2['uuid'],'type':'image','attributes':{'imageDimension':_0x2057da,..._0x105917}};this['_insertAsset'](_0x2eec67,_0x591c4b,_0x390ba3);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x95a51=>{'idle'===_0x95a51['detail']['status']&&!_0x95a51['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x108ff6,_0x12ecc9,_0x569616){const _0x8c91b2=this['_editor']['model']['document']['selection'],_0x997908=_0x8c91b2['getSelectedElement'](),_0x23edfd=!(!_0x997908||!_0x997908['is']('element','imageInline'));_0x569616['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x108ff6,_0x23edfd),_0x12ecc9||_0x569616['setSelection'](_0x8c91b2['getLastPosition']());}['_insertImage'](_0x5d231e,_0xdb7253){const _0x19e057=this['_editor'],{imageDimension:_0x216108,imageFallbackUrl:_0x40e0b9,imageSources:_0x3f00ba}=_0x5d231e['attributes'];_0x19e057['execute']('insertImage',{'imageType':_0xdb7253?'imageInline':null,'source':{'uploadcareImageId':_0x5d231e['id'],'src':_0x40e0b9,'sources':_0x3f00ba,..._0x216108}});}}class w extends _0x52bb4f{['_editing'];['_controller']=null;static get['requires'](){return[_0x1e307c,o];}constructor(_0x524527){super(_0x524527),this['_editing']=_0x524527['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x23e52e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x23e52e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x244ec4,..._0x451747}){return _0x3fb043(_0x244ec4,_0x451747);}static['getInfo'](_0x1821a7,_0x5ad5bd){return _0x176ffe(_0x1821a7,_0x5ad5bd);}}class f extends _0x3a1a05{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x879fab,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1d714a=this['editor'];if(!!!_0x1d714a['config']['get']('uploadcare'))return;_0x1d714a['plugins']['get'](_0x879fab)['createUploadAdapter']=_0x323f5e=>new k(_0x323f5e,_0x1d714a),_0x1d714a['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x2cc64e,{imageElement:_0xb488ff,data:_0x26efee})=>{_0x1d714a['model']['change'](_0x216519=>{_0x216519['setAttribute']('uploadcareImageId',_0x26efee['uploadcareImageId'],_0xb488ff);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x52e37b,_0x43d5fd){this['loader']=_0x52e37b,this['editor']=_0x43d5fd,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x50bc13=await this['loader']['file'];return j['upload']({'file':_0x50bc13,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x1c0421=>{_0x1c0421&&_0x1c0421['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1c0421['value']);}})['then'](async _0x5a09db=>{const {imageFallbackUrl:_0x18f78a,imageSources:_0x14f8d7}=C(_0x5a09db['cdnUrl'],_0x5a09db['imageInfo']['width']);return{'uploadcareImageId':_0x5a09db['uuid'],'default':_0x18f78a,'sources':_0x14f8d7};})['catch'](()=>{const _0x298b3a=t('Cannot\x20upload\x20file:')+('\x20'+_0x50bc13['name']+'.');return Promise['reject'](_0x298b3a);});}['abort'](){this['controller']['abort']();}}class o extends _0x3a1a05{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1e307c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x18f4fe){super(_0x18f4fe),this['ucContextId']=_0x4cb41b();}['init'](){const _0x48ac32=this['editor'];_0x48ac32['commands']['add']('uploadcare',new w(_0x48ac32));}['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 _0x53b3b2=_0x818c6['document']['querySelector']('input[uploadcare-file-input]');_0x53b3b2&&_0x53b3b2['remove']();}),async function(_0x4c2f23){const _0x10662a=_0x112285([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x2a7598=0x535f8c3a,_0x2d635f=0x5358f7ba^_0x2a7598,_0x3353b3=window[_0x112285([0x44,0x61,0x74,0x65])][_0x112285([0x6e,0x6f,0x77])](),_0x4e5d3a=_0x4c2f23[_0x112285([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x7fa8a3=new window[(_0x112285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x473243=>{_0x4e5d3a[_0x112285([0x6f,0x6e,0x63,0x65])](_0x112285([0x72,0x65,0x61,0x64,0x79]),_0x473243);}),_0x2ae597={[_0x112285([0x6b,0x74,0x79])]:_0x112285([0x45,0x43]),[_0x112285([0x75,0x73,0x65])]:_0x112285([0x73,0x69,0x67]),[_0x112285([0x63,0x72,0x76])]:_0x112285([0x50,0x2d,0x32,0x35,0x36]),[_0x112285([0x78])]:_0x112285([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]),[_0x112285([0x79])]:_0x112285([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]),[_0x112285([0x61,0x6c,0x67])]:_0x112285([0x45,0x53,0x32,0x35,0x36])},_0x1067a5=_0x4e5d3a[_0x112285([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x112285([0x67,0x65,0x74])](_0x112285([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x20909a(){let _0x28e3af,_0x20c6c8=null,_0xf894af=null;try{if(_0x1067a5==_0x112285([0x47,0x50,0x4c]))return _0x112285([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x28e3af=_0x648811(),!_0x28e3af)return _0x112285([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x28e3af[_0x112285([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf894af=_0x185d29(_0x28e3af[_0x112285([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x28e3af[_0x112285([0x6a,0x74,0x69])])),await _0x410506()?_0x253ff3()?_0x231fa8()?_0x112285([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1facb8()?(_0x28e3af[_0x112285([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x112285([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x20c6c8=_0x1e8b5a(_0x112285([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x28e3af[_0x112285([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x112285([0x74,0x72,0x69,0x61,0x6c])&&(_0x20c6c8=_0x1e8b5a(_0x112285([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x25beea()):_0x112285([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x112285([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x112285([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x112285([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x231fa8(){const _0x2861d9=[_0x112285([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x112285([0x74,0x72,0x69,0x61,0x6c])][_0x112285([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28e3af[_0x112285([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3353b3/0x3e8:0xe10*_0x2d635f;return _0x28e3af[_0x112285([0x65,0x78,0x70])]<_0x2861d9;}function _0x253ff3(){const _0x3d29c9=_0x28e3af[_0x112285([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3d29c9&&(!!_0x3d29c9[_0x112285([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x112285([0x2a]))||!!_0x3d29c9[_0x112285([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x112285([0x55,0x50,0x4c,0x43])));}function _0x1facb8(){const _0x41eceb=_0x28e3af[_0x112285([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x41eceb||0x0==_0x41eceb[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x38f04f}=new URL(window[_0x112285([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x41eceb[_0x112285([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f04f))return!0x0;const _0x44958c=_0x38f04f[_0x112285([0x73,0x70,0x6c,0x69,0x74])](_0x112285([0x2e]));return _0x41eceb[_0x112285([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12a12c=>_0x12a12c[_0x112285([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x112285([0x2a])))[_0x112285([0x6d,0x61,0x70])](_0x1ad47c=>_0x1ad47c[_0x112285([0x73,0x70,0x6c,0x69,0x74])](_0x112285([0x2e])))[_0x112285([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59ba74=>_0x59ba74[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x44958c[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x112285([0x6d,0x61,0x70])](_0x4cf477=>Array(_0x44958c[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4cf477[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x112285([0x66,0x69,0x6c,0x6c])](_0x4cf477[0x0]===_0x112285([0x2a])?_0x112285([0x2a]):'')[_0x112285([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4cf477))[_0x112285([0x73,0x6f,0x6d,0x65])](_0x55d7a3=>_0x44958c[_0x112285([0x65,0x76,0x65,0x72,0x79])]((_0x2512c4,_0x312361)=>_0x55d7a3[_0x312361]===_0x2512c4||_0x55d7a3[_0x312361]===_0x112285([0x2a])));}function _0x25beea(){return _0x20c6c8&&_0xf894af?new window[(_0x112285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c1bc6,_0x1d446d)=>{_0x20c6c8[_0x112285([0x74,0x68,0x65,0x6e])](_0x2c1bc6,_0x1d446d),_0xf894af[_0x112285([0x74,0x68,0x65,0x6e])](_0x3774f1=>{_0x3774f1!=_0x112285([0x56,0x61,0x6c,0x69,0x64])&&_0x2c1bc6(_0x3774f1);},_0x1d446d);}):_0x20c6c8||_0xf894af||_0x112285([0x56,0x61,0x6c,0x69,0x64]);}}function _0x185d29(_0x59ce3b,_0x494f06){return new window[(_0x112285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfec0ac=>{if(_0x2e1a4f())return _0xfec0ac(_0x112285([0x56,0x61,0x6c,0x69,0x64]));_0x4724a8(),_0x4e5d3a[_0x112285([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x112285([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3b3dcb=!0x1;const _0x495046=_0x4cb41b();function _0x4ceed5(_0x4a0ce2){return!!_0x4a0ce2&&(typeof _0x4a0ce2===_0x112285([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a0ce2===_0x112285([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a0ce2[_0x112285([0x74,0x68,0x65,0x6e])]===_0x112285([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a0ce2[_0x112285([0x63,0x61,0x74,0x63,0x68])]===_0x112285([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29d12e(_0x4beac3){_0x45c7e5(_0x4beac3)[_0x112285([0x74,0x68,0x65,0x6e])](_0x59dfea=>{if(!_0x59dfea||_0x59dfea[_0x112285([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x112285([0x6f,0x6b]))return _0x112285([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x491e84(_0x48e136(_0x495046+_0x494f06))!=_0x59dfea[_0x112285([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x112285([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x112285([0x56,0x61,0x6c,0x69,0x64]);})[_0x112285([0x74,0x68,0x65,0x6e])](_0x45028c=>(_0x37c2c3(),_0x45028c),()=>{const _0x5463fa=_0x374f39();return null==_0x5463fa?(_0x37c2c3(),_0x112285([0x56,0x61,0x6c,0x69,0x64])):_0x112285(_0x3353b3-_0x5463fa>(0x7753083a^_0x2a7598)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x112285([0x74,0x68,0x65,0x6e])](_0xfec0ac)[_0x112285([0x63,0x61,0x74,0x63,0x68])](()=>{_0xfec0ac(_0x112285([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2b91d2=0x536962ba^_0x2a7598;function _0x37c2c3(){const _0x527ecd=_0x112285([0x6c,0x6c,0x63,0x74,0x2d])+_0x491e84(_0x48e136(_0x59ce3b)),_0x31aff4=_0x3deeba(_0x491e84(window[_0x112285([0x4d,0x61,0x74,0x68])][_0x112285([0x63,0x65,0x69,0x6c])](_0x3353b3/_0x2b91d2)));window[_0x112285([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x112285([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x527ecd,_0x31aff4);}function _0x374f39(){const _0x369c16=_0x112285([0x6c,0x6c,0x63,0x74,0x2d])+_0x491e84(_0x48e136(_0x59ce3b)),_0x38be8a=window[_0x112285([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x112285([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x369c16);return _0x38be8a?window[_0x112285([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3deeba(_0x38be8a),0x10)*_0x2b91d2:null;}function _0x45c7e5(_0x14cc06){return new window[(_0x112285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a0409,_0x44fba1)=>{_0x14cc06[_0x112285([0x74,0x68,0x65,0x6e])](_0x5a0409,_0x44fba1),window[_0x112285([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x44fba1,0x535e58fa^_0x2a7598);});}}_0x4e5d3a[_0x112285([0x6f,0x6e])](_0x112285([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12a31c,_0x64d4d1)=>{if(_0x64d4d1[0x0]!=_0x59ce3b)return _0xfec0ac(_0x112285([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x64d4d1[0x1]={..._0x64d4d1[0x1],[_0x112285([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x495046};},{[_0x112285([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x112285([0x68,0x69,0x67,0x68])}),_0x4e5d3a[_0x112285([0x6f,0x6e])](_0x112285([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x224da8=>{_0x4ceed5(_0x224da8[_0x112285([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3b3dcb=!0x0,_0x29d12e(_0x224da8[_0x112285([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x112285([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x112285([0x6c,0x6f,0x77])}),_0x7fa8a3[_0x112285([0x74,0x68,0x65,0x6e])](()=>{_0x3b3dcb||_0xfec0ac(_0x112285([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e1a4f(){return _0x4e5d3a[_0x112285([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x112285([0x76,0x69,0x65,0x77])][_0x112285([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x112285([0x61,0x75,0x74,0x6f]);}function _0x4724a8(){_0x4e5d3a[_0x112285([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x112285([0x76,0x69,0x65,0x77])][_0x112285([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x112285([0x61,0x75,0x74,0x6f]);}}function _0x1e8b5a(_0x28d357){const _0x26593e=[new window[(_0x112285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29e03d=>setTimeout(_0x29e03d,0x5356b2f6^_0x2a7598)),_0x7fa8a3[_0x112285([0x74,0x68,0x65,0x6e])](()=>new window[(_0x112285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa42929=>{let _0x26abe7=0x0;_0x4e5d3a[_0x112285([0x6d,0x6f,0x64,0x65,0x6c])][_0x112285([0x6f,0x6e])](_0x112285([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d77af,_0x5bead1)=>{_0x5bead1[0x0][_0x112285([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x26abe7++,_0x26abe7==(0x535f8dc2^_0x2a7598)&&(_0xa42929(),_0x4d77af[_0x112285([0x6f,0x66,0x66])]());});}))];return window[_0x112285([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x112285([0x72,0x61,0x63,0x65])](_0x26593e)[_0x112285([0x74,0x68,0x65,0x6e])](()=>_0x28d357);}async function _0x1b3255(){await _0x7fa8a3,_0x4e5d3a[_0x112285([0x6d,0x6f,0x64,0x65,0x6c])][_0x112285([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26b218,_0x4e5d3a[_0x112285([0x6d,0x6f,0x64,0x65,0x6c])][_0x112285([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26b218,_0x4e5d3a[_0x112285([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x112285([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x523805(_0x2e5d6d){const _0x4f6a2d=_0xe1b4d3();_0x4e5d3a[_0x4f6a2d]=_0x112285([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2e5d6d,_0x2e5d6d!=_0x112285([0x56,0x61,0x6c,0x69,0x64])&&_0x1b3255();}function _0xe1b4d3(){const _0x1f1e67=window[_0x112285([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x112285([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x112285([0x6e,0x6f,0x77])]())[_0x112285([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x112285([0x2e]),'');let _0x282052=_0x112285([0x68]);for(let _0x4568af=0x0;_0x4568af<_0x1f1e67[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4568af+=0x2){let _0x5c3ec9=window[_0x112285([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f1e67[_0x112285([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4568af,_0x4568af+0x2));_0x5c3ec9>=_0x10662a[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5c3ec9-=_0x10662a[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x282052+=_0x10662a[_0x5c3ec9];}return _0x282052;}function _0x648811(){const _0x780a6=_0x1067a5[_0x112285([0x73,0x70,0x6c,0x69,0x74])](_0x112285([0x2e]));if(0x3!=_0x780a6[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a2cb4(_0x780a6[0x1]);function _0x1a2cb4(_0x27c315){const _0x412189=_0x23c291(_0x27c315);return _0x412189&&_0x4946eb()?_0x412189:null;function _0x4946eb(){const _0x570795=_0x412189[_0x112285([0x6a,0x74,0x69])],_0x2a1824=window[_0x112285([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x570795[_0x112285([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x570795[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x41b6f6={..._0x412189,[_0x112285([0x6a,0x74,0x69])]:_0x570795[_0x112285([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x570795[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x41b6f6[_0x112285([0x76,0x63])],_0x48e136(_0x41b6f6)==_0x2a1824;}}}async function _0x410506(){let _0x51eb88=!0x0;try{const _0x35506f=_0x1067a5[_0x112285([0x73,0x70,0x6c,0x69,0x74])](_0x112285([0x2e])),[_0x21d828,_0x293ef8,_0xa51040]=_0x35506f;return _0x1285e6(_0x21d828),await _0x1ff3a6(_0x21d828,_0x293ef8,_0xa51040),_0x51eb88;}catch{return!0x1;}function _0x1285e6(_0x11967e){const _0xaf82b5=_0x23c291(_0x11967e);_0xaf82b5&&_0xaf82b5[_0x112285([0x61,0x6c,0x67])]==_0x112285([0x45,0x53,0x32,0x35,0x36])||(_0x51eb88=!0x1);}async function _0x1ff3a6(_0x546260,_0x1f51c2,_0x3f0238){const _0x2cb67b=window[_0x112285([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x112285([0x66,0x72,0x6f,0x6d])](_0x3d2702(_0x3f0238),_0x3588c1=>_0x3588c1[_0x112285([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x398540=new window[(_0x112285([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x112285([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x546260+_0x112285([0x2e])+_0x1f51c2),_0x582cbd=window[_0x112285([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x112285([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x582cbd)return;const _0x50a897=await _0x582cbd[_0x112285([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x112285([0x6a,0x77,0x6b]),_0x2ae597,{[_0x112285([0x6e,0x61,0x6d,0x65])]:_0x112285([0x45,0x43,0x44,0x53,0x41]),[_0x112285([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x112285([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x112285([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x582cbd[_0x112285([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x112285([0x6e,0x61,0x6d,0x65])]:_0x112285([0x45,0x43,0x44,0x53,0x41]),[_0x112285([0x68,0x61,0x73,0x68])]:{[_0x112285([0x6e,0x61,0x6d,0x65])]:_0x112285([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x50a897,_0x2cb67b,_0x398540)||(_0x51eb88=!0x1);}}function _0x23c291(_0x45adad){return _0x45adad[_0x112285([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x112285([0x65,0x79]))?JSON[_0x112285([0x70,0x61,0x72,0x73,0x65])](_0x3d2702(_0x45adad)):null;}function _0x3d2702(_0x57a6bb){return window[_0x112285([0x61,0x74,0x6f,0x62])](_0x57a6bb[_0x112285([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x112285([0x2b]))[_0x112285([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x112285([0x2f])));}function _0x48e136(_0x42a9a3){let _0x302b86=0x1505;function _0x4b67d3(_0x5277e5){for(let _0x2938b2=0x0;_0x2938b2<_0x5277e5[_0x112285([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2938b2++){const _0x39e657=_0x5277e5[_0x112285([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2938b2);_0x302b86=(_0x302b86<<0x5)+_0x302b86+_0x39e657,_0x302b86&=_0x302b86;}}function _0x4f93ea(_0xdf705){Array[_0x112285([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xdf705)?_0xdf705[_0x112285([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4f93ea):_0xdf705&&typeof _0xdf705==_0x112285([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x112285([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xdf705)[_0x112285([0x73,0x6f,0x72,0x74])]()[_0x112285([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x59775e,_0x480a62])=>{_0x4b67d3(_0x59775e),_0x4f93ea(_0x480a62);}):_0x4b67d3(window[_0x112285([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xdf705));}return _0x4f93ea(_0x42a9a3),_0x302b86>>>0x0;}function _0x491e84(_0x4da661){return _0x4da661[_0x112285([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x112285([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x112285([0x30]));}function _0x3deeba(_0x543407){return _0x543407[_0x112285([0x73,0x70,0x6c,0x69,0x74])]('')[_0x112285([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x112285([0x6a,0x6f,0x69,0x6e])]('');}function _0x26b218(){}function _0x112285(_0x1e806a){return _0x1e806a['map'](_0xa7d0b5=>String['fromCharCode'](_0xa7d0b5))['join']('');}_0x523805(await _0x20909a());}(this);}['_initSchema'](){const _0x2b662d=this['editor']['model']['schema'];_0x2b662d['isRegistered']('imageBlock')&&_0x2b662d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x2b662d['isRegistered']('imageInline')&&_0x2b662d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3c4b2e=this['editor'];_0x3c4b2e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3c4b2e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5bb3bb=>_0x5bb3bb['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3a9716=_0x3c4b2e['commands']['get']('replaceImageSource');_0x3a9716&&this['listenTo'](_0x3a9716,'cleanupImage',(_0x4c0ef0,[_0x31cd8a,_0x38d93f])=>{_0x31cd8a['removeAttribute']('uploadcareImageId',_0x38d93f);});}['_initConfig'](){const _0x48e731=this['editor']['config']['get']('uploadcare.uploader')||{},_0x321da6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x18e4f8(_0x818c6['document'],'uc-config',{..._0x48e731,'pubkey':_0x321da6,'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']=_0x989e9e=>{if('closeMax'==_0x989e9e)return'#uc-icon-arrow-down';},_0x818c6['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x18e4f8(_0x818c6['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x818c6['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x26a901=this['editor']['commands']['get']('insertImage');_0x26a901&&this['listenTo'](_0x26a901,'execute',()=>{const _0x35d08b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x35d08b&&_0x35d08b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x35d08b);});});const _0x3ce456=this['editor']['commands']['get']('uploadcareImageReplace');_0x3ce456&&this['listenTo'](_0x3ce456,'execute',()=>{const _0x1bebae=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1bebae&&_0x1bebae['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1bebae);});});}}class tt extends _0x3a1a05{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ecc67){super(_0x2ecc67),_0x2ecc67['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5c02eb['defineComponents'](_0x5c02eb),this['_defineLocale']();}['_defineLocale'](){const _0x2be2e9=this['editor']['config']['get']('uploadcare.locale'),_0x47ffc5=this['editor']['locale']['contentLanguage'];_0x2be2e9&&_0x5c02eb['defineLocale'](_0x47ffc5,_0x2be2e9);}}class ii extends _0x248a7e{constructor(_0x2f3671){super(_0x2f3671);const t=_0x2f3671['t'],_0x5ec0c7=this['bindTemplate'],_0x55f956=new _0x348c94();_0x55f956['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':[_0x55f956,{'text':_0x5ec0c7['to']('imageUploadProgress',_0xd427c1=>t('Loading\x20image...')+'\x20('+(_0xd427c1||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 _0x248a7e{constructor(_0xd561b0){super(_0xd561b0);const t=_0xd561b0['t'];this['set']('errorType',null);const _0x381bae=new _0x4e4686(_0xd561b0);_0x381bae['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x381bae['withText']=!0x0,_0x381bae['class']='ck-button-action',_0x381bae['on']('execute',()=>{this['fire']('retry');}),_0x381bae['bind']('isVisible')['to'](this,'errorType',_0x1087f6=>'NotFound'!==_0x1087f6);const _0x78f9cc=new _0x2c122b();_0x78f9cc['content']=_0x55dab6,_0x78f9cc['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2fc70e=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':[_0x78f9cc,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2fc70e['to']('errorType',_0x502d67=>t('NotFound'!==_0x502d67?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x381bae]},{'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 _0x248a7e{constructor(_0x242f1e,_0x7ced54){super(_0x242f1e);const _0x4a6219=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x7ced54,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4a6219['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4b9dd6,_0x549459,_0x4924a2){super(_0x4b9dd6),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4b9dd6),this['_errorView']=new ti(_0x4b9dd6),this['_editingView']=new ei(_0x4b9dd6,_0x4924a2),this['_focusableView']=new _0x248a7e(_0x4b9dd6),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x549459),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'],_0x2493b5=>{this['_addUploadcareImageEditorListeners'](_0x2493b5);});}),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'](_0x5b04aa,_0x4eb2a2){const _0x54a020='uc-cloud-image-editor',_0x4b2a61=_0x5b04aa['querySelector'](_0x54a020);if(_0x4b2a61)return _0x4eb2a2(_0x4b2a61);const _0x41c7b7=new MutationObserver(_0x1100c0=>{const _0x43584a=_0x1100c0['filter'](_0x543862=>_0x543862['target']===_0x5b04aa&&_0x543862['addedNodes']['length']>0x0&&_0x543862['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x54a020);_0x43584a['length']&&(_0x41c7b7['disconnect'](),_0x4eb2a2(_0x43584a[0x0]['addedNodes'][0x0]));});_0x41c7b7['observe'](_0x5b04aa,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x277635){_0x277635['addEventListener']('apply',_0x44bbb6=>{this['fire']('apply',{'imageSrc':_0x44bbb6['detail']['cdnUrl']});}),_0x277635['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x40fb6a(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x32fe3c,_0x53d3b6,_0x234f39){super(),this['_editor']=_0x32fe3c,this['_dialog']=_0x53d3b6,this['_imageElement']=_0x234f39,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 _0x3536d7=this['_imageElement'],_0x348175=_0x3536d7['getAttribute']('uploadcareImageId'),_0x2ccc8b=_0x3536d7['getAttribute']('src');if(_0x348175)await this['_loadImageInfo'](_0x348175,_0x2ccc8b);else{if(this['_imageCache']['has'](_0x2ccc8b)){const _0x1a6272=this['_imageCache']['get'](_0x2ccc8b);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1a6272['url'],this['imageDimension']=_0x1a6272['dimension'],this['imageId']=_0x1a6272['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x12e2a1}=this['_editor'],t=_0x12e2a1['t'],_0x292484=new X(_0x12e2a1,this['imageStatus'],this['_attributes']);_0x292484['bind']('status')['to'](this,'imageStatus'),_0x292484['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x292484['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x292484['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x292484,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x125b31,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x292484,'position':_0x2a0755['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x292484['focus']();},'onHide':()=>{_0x292484['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3c457c=>!A(_0x3c457c,_0x292484['element'])}});}['_loadImageInfo'](_0x3dbc7d,_0x3fbd10){return j['getInfo'](_0x3dbc7d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x4e76bf=>{const {width:_0x363826,height:_0x45f378}=_0x4e76bf['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3fbd10,this['imageDimension']={'width':_0x363826,'height':_0x45f378},this['imageId']=_0x3dbc7d;})['catch'](_0x3b1c52=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3b1c52['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4a2544,_0x3232a7){return this['_getImageAsFile'](_0x4a2544)['then'](_0x5115b1=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x3232a7['signal'],'file':_0x5115b1,'onProgress':_0x47ea47=>{_0x47ea47&&_0x47ea47['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x47ea47['value']));}}))['then'](_0x4e3229=>{const {width:_0x22e685,height:_0x32e4bf}=_0x4e3229['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e3229['cdnUrl'],this['imageDimension']={'width':_0x22e685,'height':_0x32e4bf},this['imageId']=_0x4e3229['uuid'],this['imageUploadProgress']=null;const _0x509741=_0x4a2544['getAttribute']('src');this['_imageCache']['set'](_0x509741,{'id':_0x4e3229['uuid'],'url':_0x4e3229['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1bc9d3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1bc9d3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4f37f8,_0x3a4e0d){_0x4f37f8['on']('apply',(_0x55b078,_0x15bf89)=>{this['_replaceImage'](_0x3a4e0d,_0x15bf89['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4f37f8['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4f37f8['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x50fbec,_0x2b0e52,_0x116a63){const _0x31d818=this['_editor'],{width:_0x3beafa,height:_0x501606}=S(_0x2b0e52,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1783f1,imageSources:_0x5d381a}=C(_0x2b0e52,_0x3beafa);_0x31d818['model']['change'](_0x583780=>{if('$graveyard'===_0x50fbec['root']['rootName']){_0x31d818['execute']('insertImage',{'imageType':_0x50fbec['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x50fbec['getAttributes']()),'uploadcareImageId':_0x116a63,'src':_0x1783f1,'sources':_0x5d381a,'width':_0x3beafa,'height':_0x501606}});const _0x202afe=_0x50fbec['getChildren']();_0x50fbec=_0x31d818['model']['document']['selection']['getSelectedElement']();for(const _0x566218 of _0x202afe)_0x583780['append'](_0x583780['cloneElement'](_0x566218),_0x50fbec);}else _0x583780['setSelection'](_0x50fbec,'on'),_0x31d818['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x50fbec['getAttributes']()),'uploadcareImageId':_0x116a63,'src':_0x1783f1,'sources':_0x5d381a,'width':_0x3beafa,'height':_0x501606},_0x50fbec);_0x583780['setSelection'](_0x50fbec,'on');});}async['_getImageAsFile'](_0x4b3a24){const _0x374186=_0x818c6['window'],_0x155391=_0x818c6['document']['location']['href'],_0x3eca30=new _0x374186['URL'](_0x4b3a24['getAttribute']('src'),_0x155391);if('data:'===_0x3eca30['protocol']){const _0x2deb86=_0x3eca30['href']['split'](','),_0x15e2c1=_0x2deb86[0x0]['match'](/:(.*?);/)[0x1],_0x30a81b=_0x15e2c1['split']('/')[0x1],_0x2c0eef=_0x374186['atob'](_0x2deb86[_0x2deb86['length']-0x1]);let _0x319ce5=_0x2c0eef['length'];const _0x271c9e=new _0x374186['Uint8Array'](_0x319ce5);for(;_0x319ce5--;)_0x271c9e[_0x319ce5]=_0x2c0eef['charCodeAt'](_0x319ce5);return new _0x374186['File']([_0x271c9e],'image.'+_0x30a81b,{'type':_0x15e2c1});}const _0xf45323=_0x3eca30['href']['split']('/'),_0x57ed33=_0xf45323[_0xf45323['length']-0x1],_0x4da1e5=_0x57ed33['split']('.')[0x1];return _0x374186['fetch'](_0x3eca30['href'])['then'](_0x13f6a1=>_0x13f6a1['clone']()['blob']())['then'](_0x4f9351=>new _0x374186['File']([_0x4f9351],_0x57ed33,{'type':'image/'+_0x4da1e5}));}}class O extends _0x52bb4f{['imageEditController'];static get['requires'](){return[_0x1e307c];}['_isEditable'];constructor(_0x38c716){super(_0x38c716),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xfbb39e){const _0x5708c6=G(_0xfbb39e);return _0x47924a=>!(!_0x47924a||!_0x47924a['is']('element','imageBlock')&&!_0x47924a['is']('element','imageInline'))&&(!!_0x47924a['hasAttribute']('uploadcareImageId')||!!_0x47924a['hasAttribute']('src')&&_0x5708c6(_0x47924a['getAttribute']('src')));}(_0x38c716['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xb5e795=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xb5e795);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5642a2=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5642a2&&(_0x5642a2['is']('element','imageBlock')||_0x5642a2['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1e307c),_0x5642a2),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x52bb4f{['refresh'](){const _0xa6466a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xa6466a&&(_0xa6466a['is']('element','imageBlock')||_0xa6466a['is']('element','imageInline')));}['execute'](_0x46197c){const _0x102335=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x239bf9=>{_0x239bf9['setAttributes'](_0x46197c,_0x102335),_0x239bf9['removeAttribute']('srcset',_0x102335),_0x239bf9['removeAttribute']('sizes',_0x102335);});}}class m extends _0x3a1a05{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x2d41bd,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4e07d0}=this;_0x4e07d0['commands']['add']('uploadcareImageEdit',new O(_0x4e07d0)),_0x4e07d0['commands']['add']('uploadcareImageReplace',new R(_0x4e07d0));}}class g extends _0x3a1a05{['_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 _0x25411c=this['editor'];_0x25411c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x2a2e82=>{const _0x42f7a8=_0x25411c['commands']['get']('uploadcareImageEdit'),_0x45ae35=new _0x4e4686(_0x2a2e82),t=_0x2a2e82['t'];return _0x45ae35['set']({'icon':_0x125b31,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x45ae35['bind']('isEnabled')['to'](_0x42f7a8),_0x45ae35['bind']('isOn')['to'](_0x42f7a8,'isActive'),this['listenTo'](_0x45ae35,'execute',()=>{_0x25411c['execute']('uploadcareImageEdit'),_0x25411c['editing']['view']['focus']();}),_0x45ae35;}),this['_initConfig']();}['_initConfig'](){const _0x4c91dc=_0x18e4f8(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4c91dc),this['listenTo'](this['editor'],'destroy',()=>{_0x4c91dc['remove']();});}}class et extends _0x3a1a05{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251210.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251210.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251210.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20251210.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251210.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251210.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251210.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251210.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251210.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.24.5",
|
|
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 _0x5c1a1a=_0x2f79;function _0x2f79(_0x33a3f5,_0x31c30d){const _0x5c0046=_0x5c00();return _0x2f79=function(_0x2f79d6,_0xa365eb){_0x2f79d6=_0x2f79d6-0x194;let _0x1eb9e8=_0x5c0046[_0x2f79d6];return _0x1eb9e8;},_0x2f79(_0x33a3f5,_0x31c30d);}(function(_0x365bda,_0x3ec5dc){const _0x1d1041=_0x2f79,_0x1ffe2d=_0x365bda();while(!![]){try{const _0x5a6678=parseInt(_0x1d1041(0x1bb))/0x1*(-parseInt(_0x1d1041(0x1af))/0x2)+parseInt(_0x1d1041(0x1a1))/0x3+parseInt(_0x1d1041(0x1ba))/0x4+-parseInt(_0x1d1041(0x1b5))/0x5+-parseInt(_0x1d1041(0x1b4))/0x6*(-parseInt(_0x1d1041(0x1b1))/0x7)+-parseInt(_0x1d1041(0x195))/0x8+-parseInt(_0x1d1041(0x1b8))/0x9;if(_0x5a6678===_0x3ec5dc)break;else _0x1ffe2d['push'](_0x1ffe2d['shift']());}catch(_0x514c5e){_0x1ffe2d['push'](_0x1ffe2d['shift']());}}}(_0x5c00,0xa60e2));import{IconUploadcareImageUpload as _0x50efe6}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x42e3b6}from'ckeditor5/src/utils.js';import{Dialog as _0x438ef4,DialogViewPosition as _0x24fc4e}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x20d092}from'./uploadcareformview.js';import{UploadcareSource as _0x52cc2a}from'../uploadcareconfig.js';import{getTranslation as _0x4d7d31}from'../utils/common-translations.js';function _0x5c00(){const _0x274331=['4976883UBmbOq','_editing','3054172HKhoyN','107ZfXsCb','editing','done-click','getLastPosition','insertImage','getAPI','model','_dialog','getOutputCollectionState','view','ucContextId','image','Replace','focus','Local','document','show','initFlow','change','setSelection','linkHref','_insertAsset','_api','getSelectedElement','imageInfo','removeAllFiles','_formView','selection','_initListeners','removeSelectionAttribute','allEntries','isOpen','plugins','_initDialog','doneFlow','5272888vwjJNn','execute','width','stopListening','uuid','hide','text','attributes','Insert','_editor','EDITOR_TOP_CENTER','status','3812067RROakv','uploadCare','destroy','configElement','setAttribute','_insertImage','ctxElement','source-list','imageBlock','_type','element','get','addEventListener','length','8442KntJzl','imageInline','14yBVcbV','stopDelegating','detail','2783076DabjYp','3090085VdgaEE','setCurrentActivity','idle'];_0x5c00=function(){return _0x274331;};return _0x5c00();}import{getImageUrls as _0x10bb2f,getImageDimension as _0x5a03b2}from'../utils/editingutils.js';import{isAncestor as _0x49649c}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x42e3b6(){[_0x5c1a1a(0x19e)];[_0x5c1a1a(0x1c2)];[_0x5c1a1a(0x1b9)];[_0x5c1a1a(0x1d1)];[_0x5c1a1a(0x1aa)]=null;[_0x5c1a1a(0x1d5)]=null;constructor(_0x5faa9a,_0x4833ca,_0x4d2b28){const _0x311997=_0x5c1a1a;super(),this[_0x311997(0x19e)]=_0x5faa9a,this[_0x311997(0x1b9)]=_0x4833ca,this[_0x311997(0x1c2)]=_0x5faa9a[_0x311997(0x1db)][_0x311997(0x1ac)](_0x438ef4),this[_0x311997(0x1d1)]=_0x4833ca[_0x311997(0x1a7)][_0x311997(0x1c0)](),this[_0x311997(0x1aa)]=_0x4d2b28,this[_0x311997(0x1b9)][_0x311997(0x1a4)][_0x311997(0x1a5)](_0x311997(0x1a8),this[_0x311997(0x1aa)]),this[_0x311997(0x1dc)](),this[_0x311997(0x1d7)](),this[_0x311997(0x1d1)][_0x311997(0x1cc)]();}[_0x5c1a1a(0x1a3)](){const _0x52d15f=_0x5c1a1a;this[_0x52d15f(0x1d5)]&&(this[_0x52d15f(0x1d5)][_0x52d15f(0x1a3)](),this[_0x52d15f(0x1d5)]=null),this[_0x52d15f(0x1d1)]&&this[_0x52d15f(0x1d1)][_0x52d15f(0x194)](),this[_0x52d15f(0x198)](),this[_0x52d15f(0x1b2)]();}[_0x5c1a1a(0x1dc)](){const _0x3ed7fb=_0x5c1a1a,{locale:_0x34bafc,model:_0x13e5dc}=this[_0x3ed7fb(0x19e)],_0x1a9b11=_0x13e5dc[_0x3ed7fb(0x1ca)][_0x3ed7fb(0x1d6)][_0x3ed7fb(0x1d2)](),_0x48a8ff=_0x1a9b11&&(_0x1a9b11['is'](_0x3ed7fb(0x1ab),_0x3ed7fb(0x1a9))||_0x1a9b11['is'](_0x3ed7fb(0x1ab),_0x3ed7fb(0x1b0)));this[_0x3ed7fb(0x1d5)]=new _0x20d092(_0x34bafc,this[_0x3ed7fb(0x1b9)][_0x3ed7fb(0x1c5)]),this[_0x3ed7fb(0x1c2)][_0x3ed7fb(0x1cb)]({'id':_0x3ed7fb(0x1a2),'icon':_0x50efe6,'title':_0x4d7d31(_0x34bafc,this[_0x3ed7fb(0x1aa)],_0x48a8ff?_0x3ed7fb(0x1c7):_0x3ed7fb(0x19d))[_0x3ed7fb(0x19b)],'content':this[_0x3ed7fb(0x1d5)],'position':_0x24fc4e[_0x3ed7fb(0x19f)],'isModal':!0x0,'onShow':()=>{const _0x3a05a1=_0x3ed7fb;this[_0x3a05a1(0x1d5)][_0x3a05a1(0x1c8)]();},'onHide':()=>{const _0x469c76=_0x3ed7fb;this[_0x469c76(0x1d1)][_0x469c76(0x1d4)](),this[_0x469c76(0x19e)][_0x469c76(0x1bc)][_0x469c76(0x1c4)][_0x469c76(0x1c8)](),this[_0x469c76(0x1a3)]();},'keystrokeHandlerOptions':{'filter':_0x19956c=>!_0x49649c(_0x19956c,this[_0x3ed7fb(0x1d5)][_0x3ed7fb(0x1ab)])}});}[_0x5c1a1a(0x1d7)](){const _0x292a36=_0x5c1a1a;this[_0x292a36(0x1b9)][_0x292a36(0x1a7)][_0x292a36(0x1ad)](_0x292a36(0x1bd),()=>{const _0x13cbda=_0x292a36,{allEntries:_0x590ae8}=this[_0x13cbda(0x1d1)][_0x13cbda(0x1c3)]();this[_0x13cbda(0x19e)][_0x13cbda(0x1c1)][_0x13cbda(0x1cd)](_0x401832=>{const _0x3bc67a=_0x13cbda,_0x1db278=_0x590ae8[_0x3bc67a(0x1ae)];for(const _0x41f039 of _0x590ae8){const _0x32154c=_0x41f039===_0x590ae8[_0x1db278-0x1],{cdnUrl:_0x340ad6,fileInfo:_0x123897}=_0x41f039;if(!_0x340ad6||!_0x123897)continue;const {width:_0x27ebf3,height:_0x5a440c}=_0x123897[_0x3bc67a(0x1d3)],_0x26c6b8=_0x5a03b2(_0x340ad6,_0x27ebf3,_0x5a440c),_0x5ca53b=_0x10bb2f(_0x340ad6,_0x26c6b8[_0x3bc67a(0x197)]),_0x528527={'id':_0x123897[_0x3bc67a(0x199)],'type':_0x3bc67a(0x1c6),'attributes':{'imageDimension':_0x26c6b8,..._0x5ca53b}};this[_0x3bc67a(0x1d0)](_0x528527,_0x32154c,_0x401832);}}),this[_0x13cbda(0x1c2)][_0x13cbda(0x19a)]();}),this[_0x292a36(0x1b9)][_0x292a36(0x1a7)][_0x292a36(0x1ad)](_0x292a36(0x1cd),_0x3c7049=>{const _0x65fd3a=_0x292a36;_0x65fd3a(0x1b7)===_0x3c7049[_0x65fd3a(0x1b3)][_0x65fd3a(0x1a0)]&&!_0x3c7049[_0x65fd3a(0x1b3)][_0x65fd3a(0x1d9)][_0x65fd3a(0x1ae)]&&this[_0x65fd3a(0x1c2)][_0x65fd3a(0x1da)]&&(this[_0x65fd3a(0x1aa)]===_0x52cc2a[_0x65fd3a(0x1c9)]?this[_0x65fd3a(0x1d1)][_0x65fd3a(0x1b6)](_0x52cc2a[_0x65fd3a(0x1c9)]):this[_0x65fd3a(0x1d1)][_0x65fd3a(0x1cc)]());});}[_0x5c1a1a(0x1d0)](_0x347ae3,_0x2722a2,_0x389fbd){const _0x1d4243=_0x5c1a1a,_0x2834f5=this[_0x1d4243(0x19e)][_0x1d4243(0x1c1)][_0x1d4243(0x1ca)][_0x1d4243(0x1d6)],_0x35d834=_0x2834f5[_0x1d4243(0x1d2)](),_0x549120=!(!_0x35d834||!_0x35d834['is'](_0x1d4243(0x1ab),_0x1d4243(0x1b0)));_0x389fbd[_0x1d4243(0x1d8)](_0x1d4243(0x1cf)),this[_0x1d4243(0x1a6)](_0x347ae3,_0x549120),_0x2722a2||_0x389fbd[_0x1d4243(0x1ce)](_0x2834f5[_0x1d4243(0x1be)]());}[_0x5c1a1a(0x1a6)](_0x2618e3,_0x48a65a){const _0x1d94d8=_0x5c1a1a,_0x3679ea=this[_0x1d94d8(0x19e)],{imageDimension:_0xf01cc2,imageFallbackUrl:_0x1a01e2,imageSources:_0x2821ac}=_0x2618e3[_0x1d94d8(0x19c)];_0x3679ea[_0x1d94d8(0x196)](_0x1d94d8(0x1bf),{'imageType':_0x48a65a?_0x1d94d8(0x1b0):null,'source':{'uploadcareImageId':_0x2618e3['id'],'src':_0x1a01e2,'sources':_0x2821ac,..._0xf01cc2}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x7baf4b=_0x5580;function _0x3ce1(){var _0x5ad1db=['div','2359368qongtX','808CKDBkz','uploader-','186557ObBdeI','uc-file-uploader-inline','ck-reset_all-excluded','uc-light','1071952feSoAl','element','focus','ck-uploadcare-form','getFocusableElement','7043045Pimpls','setTemplate','1285260bNQBms','13698lPoZlV','2312564afbIUE','ck-uploadcare-theme'];_0x3ce1=function(){return _0x5ad1db;};return _0x3ce1();}(function(_0xaf64ee,_0x260fcd){var _0x4a3c9b=_0x5580,_0xcc0969=_0xaf64ee();while(!![]){try{var _0x269d10=-parseInt(_0x4a3c9b(0x175))/0x1+-parseInt(_0x4a3c9b(0x16e))/0x2+-parseInt(_0x4a3c9b(0x17c))/0x3+-parseInt(_0x4a3c9b(0x16b))/0x4+parseInt(_0x4a3c9b(0x17a))/0x5+parseInt(_0x4a3c9b(0x16a))/0x6+-parseInt(_0x4a3c9b(0x171))/0x7*(-parseInt(_0x4a3c9b(0x16f))/0x8);if(_0x269d10===_0x260fcd)break;else _0xcc0969['push'](_0xcc0969['shift']());}catch(_0x4232d8){_0xcc0969['push'](_0xcc0969['shift']());}}}(_0x3ce1,0xce29e));function _0x5580(_0x51f7fc,_0x495185){var _0x3ce1ac=_0x3ce1();return _0x5580=function(_0x558020,_0x2e48d3){_0x558020=_0x558020-0x16a;var _0x1311ca=_0x3ce1ac[_0x558020];return _0x1311ca;},_0x5580(_0x51f7fc,_0x495185);}import{DialogFocusManagerView as _0x28f117}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export class UploadcareFormView extends _0x28f117{constructor(_0x46b3d9,_0x394311){var _0x54678f=_0x5580;super(_0x46b3d9),this[_0x54678f(0x17b)]({'tag':_0x54678f(0x16d),'attributes':{'class':['ck',_0x54678f(0x173),_0x54678f(0x178)],'tabindex':'-1'},'children':[{'tag':_0x54678f(0x172),'attributes':{'class':[_0x54678f(0x174),_0x54678f(0x16c)],'ctx-name':_0x54678f(0x170)+_0x394311}},this[_0x54678f(0x179)]()]});}[_0x7baf4b(0x177)](){var _0x1069c8=_0x7baf4b;this[_0x1069c8(0x176)][_0x1069c8(0x177)]();}}
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4310a4=_0x1cc8;(function(_0x142095,_0x4c6924){const _0x6b39f=_0x1cc8,_0x26fc58=_0x142095();while(!![]){try{const _0x4f9d88=-parseInt(_0x6b39f(0xdd))/0x1*(parseInt(_0x6b39f(0xd8))/0x2)+-parseInt(_0x6b39f(0xc6))/0x3+-parseInt(_0x6b39f(0xcd))/0x4*(-parseInt(_0x6b39f(0xe8))/0x5)+parseInt(_0x6b39f(0x113))/0x6+parseInt(_0x6b39f(0xce))/0x7*(-parseInt(_0x6b39f(0xf5))/0x8)+parseInt(_0x6b39f(0x102))/0x9*(parseInt(_0x6b39f(0x118))/0xa)+parseInt(_0x6b39f(0x107))/0xb;if(_0x4f9d88===_0x4c6924)break;else _0x26fc58['push'](_0x26fc58['shift']());}catch(_0x5723e7){_0x26fc58['push'](_0x26fc58['shift']());}}}(_0x2b13,0xead2d));import{Plugin as _0x107faf}from'ckeditor5/src/core.js';import{Dialog as _0x284e00}from'ckeditor5/src/ui.js';import{createElement as _0x5aa573,global as _0x462c69,uid as _0x173594}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x18c711}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x316b4d}from'./uploadcareuploadadapter.js';function _0x2b13(){const _0x17b0dc=['init','for','_configElement','\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','view','execute','listenTo','iconHrefResolver','6830862odAzPg','getAttribute','insertImage','selection','appendChild','49070JrpABu','render','_initImageProcessingIndicator','replaceImageSource','1743759DTlIIa','_initConfig','_ctxElement','contentLanguage','commands','config','isOfficialPlugin','5580XmePLy','7IOYHaE','join','uploadcareImageReplace','locale','isRegistered','input[uploadcare-file-input]','ctxElement','configElement','add','href','2bYHKAR','uc-upload-ctx-provider','model','_initSchema','destroy','472391EWdljW','cleanupImage','uploadcare.pubkey','once','pluginName','closeMax','uploadcareImageId','editor','uploadcare.uploader','downcast','requires','3230oXcutx','data-uc-image-id','schema','getSelectedElement','UploadcareEditing','_initConversion','extend','#uc-icon-arrow-down','attributeToAttribute','fromCharCode','imageInline','upcast','_initCtx','12409096ryxYdM','removeAttribute','imageBlock','map','uc-config','ucContextId','uploader-','uploadcare','elementToAttribute','remove','body','isPremiumPlugin','editing','1044HiombB','afterInit','PictureEditing','document','conversion','10535349KZMNvf','get','true','querySelector'];_0x2b13=function(){return _0x17b0dc;};return _0x2b13();}function _0x1cc8(_0x29c287,_0x121669){const _0x2b130=_0x2b13();return _0x1cc8=function(_0x1cc830,_0x260c8b){_0x1cc830=_0x1cc830-0xc5;let _0x5550d9=_0x2b130[_0x1cc830];return _0x5550d9;},_0x1cc8(_0x29c287,_0x121669);}import{showImageProcessingIndicator as _0x515613}from'./utils/editingutils.js';export class UploadcareEditing extends _0x107faf{[_0x4310a4(0x10d)]=null;[_0x4310a4(0xc8)]=null;static get[_0x4310a4(0xe1)](){const _0x29be2e=_0x4310a4;return _0x29be2e(0xec);}static get[_0x4310a4(0xe7)](){const _0x21f49b=_0x4310a4;return[_0x21f49b(0x104),_0x316b4d,_0x284e00];}static get[_0x4310a4(0xcc)](){return!0x0;}static get[_0x4310a4(0x100)](){return!0x0;}[_0x4310a4(0xfa)];get[_0x4310a4(0xd5)](){const _0x3aa41e=_0x4310a4;return this[_0x3aa41e(0x10d)];}get[_0x4310a4(0xd4)](){const _0x57b9fc=_0x4310a4;return this[_0x57b9fc(0xc8)];}constructor(_0x1cf534){const _0x333954=_0x4310a4;super(_0x1cf534),this[_0x333954(0xfa)]=_0x173594();}[_0x4310a4(0x10b)](){const _0x14a765=_0x4310a4,_0x5c1465=this[_0x14a765(0xe4)];_0x5c1465[_0x14a765(0xca)][_0x14a765(0xd6)](_0x14a765(0xfc),new _0x18c711(_0x5c1465));}[_0x4310a4(0x103)](){const _0x4ea9a1=_0x4310a4;this[_0x4ea9a1(0xdb)](),this[_0x4ea9a1(0xed)](),this[_0x4ea9a1(0xc7)](),this[_0x4ea9a1(0xf4)](),this[_0x4ea9a1(0x11a)](),this[_0x4ea9a1(0x111)](this[_0x4ea9a1(0xe4)],_0x4ea9a1(0xdc),()=>{const _0x4a673a=_0x4ea9a1;this[_0x4a673a(0x10d)]&&(this[_0x4a673a(0x10d)][_0x4a673a(0xfe)](),this[_0x4a673a(0x10d)]=null),this[_0x4a673a(0xc8)]&&(this[_0x4a673a(0xc8)][_0x4a673a(0xfe)](),this[_0x4a673a(0xc8)]=null);const _0x5bcfa8=_0x462c69[_0x4a673a(0x105)][_0x4a673a(0x10a)](_0x4a673a(0xd3));_0x5bcfa8&&_0x5bcfa8[_0x4a673a(0xfe)]();}),async function(_0x5a419f){const _0xfb536=_0x568e9b([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4fb6c9=0x535f8c3a,_0x1a640d=0x5358f752^_0x4fb6c9,_0x5d6f9f=window[_0x568e9b([0x44,0x61,0x74,0x65])][_0x568e9b([0x6e,0x6f,0x77])](),_0x34bef8=_0x5a419f[_0x568e9b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1fb770=new window[(_0x568e9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e4e4e=>{_0x34bef8[_0x568e9b([0x6f,0x6e,0x63,0x65])](_0x568e9b([0x72,0x65,0x61,0x64,0x79]),_0x5e4e4e);}),_0x509f34={[_0x568e9b([0x6b,0x74,0x79])]:_0x568e9b([0x45,0x43]),[_0x568e9b([0x75,0x73,0x65])]:_0x568e9b([0x73,0x69,0x67]),[_0x568e9b([0x63,0x72,0x76])]:_0x568e9b([0x50,0x2d,0x32,0x35,0x36]),[_0x568e9b([0x78])]:_0x568e9b([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]),[_0x568e9b([0x79])]:_0x568e9b([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]),[_0x568e9b([0x61,0x6c,0x67])]:_0x568e9b([0x45,0x53,0x32,0x35,0x36])},_0x40ddac=_0x34bef8[_0x568e9b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x568e9b([0x67,0x65,0x74])](_0x568e9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x245f91(){let _0x442915,_0x19c489=null,_0x18af46=null;try{if(_0x40ddac==_0x568e9b([0x47,0x50,0x4c]))return _0x568e9b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x442915=_0xae9996(),!_0x442915)return _0x568e9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x442915[_0x568e9b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18af46=_0x4d2c8e(_0x442915[_0x568e9b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x442915[_0x568e9b([0x6a,0x74,0x69])])),await _0x3315a0()?_0x4ea4ff()?_0x2aec09()?_0x568e9b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x197a15()?(_0x442915[_0x568e9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x568e9b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19c489=_0x136c92(_0x568e9b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x442915[_0x568e9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x568e9b([0x74,0x72,0x69,0x61,0x6c])&&(_0x19c489=_0x136c92(_0x568e9b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a77fa()):_0x568e9b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x568e9b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x568e9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x568e9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2aec09(){const _0x4a7dad=[_0x568e9b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x568e9b([0x74,0x72,0x69,0x61,0x6c])][_0x568e9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x442915[_0x568e9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d6f9f/0x3e8:0xe10*_0x1a640d;return _0x442915[_0x568e9b([0x65,0x78,0x70])]<_0x4a7dad;}function _0x4ea4ff(){const _0x206882=_0x442915[_0x568e9b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x206882&&(!!_0x206882[_0x568e9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x568e9b([0x2a]))||!!_0x206882[_0x568e9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x568e9b([0x55,0x50,0x4c,0x43])));}function _0x197a15(){const _0x5ca75a=_0x1cc8,_0x7aed4a=_0x442915[_0x568e9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7aed4a||0x0==_0x7aed4a[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1cd991}=new URL(window[_0x568e9b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5ca75a(0xd7)]);if(_0x7aed4a[_0x568e9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cd991))return!0x0;const _0x5ae0af=_0x1cd991[_0x568e9b([0x73,0x70,0x6c,0x69,0x74])](_0x568e9b([0x2e]));return _0x7aed4a[_0x568e9b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x242734=>_0x242734[_0x568e9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x568e9b([0x2a])))[_0x568e9b([0x6d,0x61,0x70])](_0x3d3518=>_0x3d3518[_0x568e9b([0x73,0x70,0x6c,0x69,0x74])](_0x568e9b([0x2e])))[_0x568e9b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13f4b1=>_0x13f4b1[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5ae0af[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x568e9b([0x6d,0x61,0x70])](_0x21f9dc=>Array(_0x5ae0af[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21f9dc[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x568e9b([0x66,0x69,0x6c,0x6c])](_0x21f9dc[0x0]===_0x568e9b([0x2a])?_0x568e9b([0x2a]):'')[_0x568e9b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21f9dc))[_0x568e9b([0x73,0x6f,0x6d,0x65])](_0x467c18=>_0x5ae0af[_0x568e9b([0x65,0x76,0x65,0x72,0x79])]((_0x182a98,_0x23c993)=>_0x467c18[_0x23c993]===_0x182a98||_0x467c18[_0x23c993]===_0x568e9b([0x2a])));}function _0x1a77fa(){return _0x19c489&&_0x18af46?new window[(_0x568e9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1405ee,_0x361b94)=>{_0x19c489[_0x568e9b([0x74,0x68,0x65,0x6e])](_0x1405ee,_0x361b94),_0x18af46[_0x568e9b([0x74,0x68,0x65,0x6e])](_0x490aaf=>{_0x490aaf!=_0x568e9b([0x56,0x61,0x6c,0x69,0x64])&&_0x1405ee(_0x490aaf);},_0x361b94);}):_0x19c489||_0x18af46||_0x568e9b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d2c8e(_0x397fd3,_0x209743){return new window[(_0x568e9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x405ea3=>{if(_0x275b77())return _0x405ea3(_0x568e9b([0x56,0x61,0x6c,0x69,0x64]));_0x1d44bb(),_0x34bef8[_0x568e9b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x568e9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4444dc=!0x1;const _0x4707c0=_0x173594();function _0x5afc89(_0x31e81c){return!!_0x31e81c&&(typeof _0x31e81c===_0x568e9b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31e81c===_0x568e9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31e81c[_0x568e9b([0x74,0x68,0x65,0x6e])]===_0x568e9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31e81c[_0x568e9b([0x63,0x61,0x74,0x63,0x68])]===_0x568e9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3244e0(_0xe5c5d4){_0x4fc509(_0xe5c5d4)[_0x568e9b([0x74,0x68,0x65,0x6e])](_0x1754ec=>{if(!_0x1754ec||_0x1754ec[_0x568e9b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x568e9b([0x6f,0x6b]))return _0x568e9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x7276f8(_0xd5880d(_0x4707c0+_0x209743))!=_0x1754ec[_0x568e9b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x568e9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x568e9b([0x56,0x61,0x6c,0x69,0x64]);})[_0x568e9b([0x74,0x68,0x65,0x6e])](_0x1da1e5=>(_0x37b9db(),_0x1da1e5),()=>{const _0x48de61=_0x15f76c();return null==_0x48de61?(_0x37b9db(),_0x568e9b([0x56,0x61,0x6c,0x69,0x64])):_0x568e9b(_0x5d6f9f-_0x48de61>(0x7753083a^_0x4fb6c9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x568e9b([0x74,0x68,0x65,0x6e])](_0x405ea3)[_0x568e9b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x405ea3(_0x568e9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c692e=0x536962ba^_0x4fb6c9;function _0x37b9db(){const _0x59bacb=_0x568e9b([0x6c,0x6c,0x63,0x74,0x2d])+_0x7276f8(_0xd5880d(_0x397fd3)),_0x587d4b=_0x58079d(_0x7276f8(window[_0x568e9b([0x4d,0x61,0x74,0x68])][_0x568e9b([0x63,0x65,0x69,0x6c])](_0x5d6f9f/_0x3c692e)));window[_0x568e9b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x568e9b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59bacb,_0x587d4b);}function _0x15f76c(){const _0x59a3cc=_0x568e9b([0x6c,0x6c,0x63,0x74,0x2d])+_0x7276f8(_0xd5880d(_0x397fd3)),_0x574452=window[_0x568e9b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x568e9b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59a3cc);return _0x574452?window[_0x568e9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58079d(_0x574452),0x10)*_0x3c692e:null;}function _0x4fc509(_0x4e7228){return new window[(_0x568e9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38682b,_0x285d29)=>{_0x4e7228[_0x568e9b([0x74,0x68,0x65,0x6e])](_0x38682b,_0x285d29),window[_0x568e9b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x285d29,0x535e58fa^_0x4fb6c9);});}}_0x34bef8[_0x568e9b([0x6f,0x6e])](_0x568e9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12ea26,_0x37f8c5)=>{if(_0x37f8c5[0x0]!=_0x397fd3)return _0x405ea3(_0x568e9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37f8c5[0x1]={..._0x37f8c5[0x1],[_0x568e9b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4707c0};},{[_0x568e9b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x568e9b([0x68,0x69,0x67,0x68])}),_0x34bef8[_0x568e9b([0x6f,0x6e])](_0x568e9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50770b=>{_0x5afc89(_0x50770b[_0x568e9b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4444dc=!0x0,_0x3244e0(_0x50770b[_0x568e9b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x568e9b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x568e9b([0x6c,0x6f,0x77])}),_0x1fb770[_0x568e9b([0x74,0x68,0x65,0x6e])](()=>{_0x4444dc||_0x405ea3(_0x568e9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x275b77(){return _0x34bef8[_0x568e9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x568e9b([0x76,0x69,0x65,0x77])][_0x568e9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x568e9b([0x61,0x75,0x74,0x6f]);}function _0x1d44bb(){_0x34bef8[_0x568e9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x568e9b([0x76,0x69,0x65,0x77])][_0x568e9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x568e9b([0x61,0x75,0x74,0x6f]);}}function _0x136c92(_0x3e858a){const _0x10715a=[new window[(_0x568e9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46ebaf=>setTimeout(_0x46ebaf,0x5356b2f6^_0x4fb6c9)),_0x1fb770[_0x568e9b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x568e9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3773f9=>{let _0x29b463=0x0;_0x34bef8[_0x568e9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x568e9b([0x6f,0x6e])](_0x568e9b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11c05e,_0x1de5de)=>{_0x1de5de[0x0][_0x568e9b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29b463++,_0x29b463==(0x535f8dc2^_0x4fb6c9)&&(_0x3773f9(),_0x11c05e[_0x568e9b([0x6f,0x66,0x66])]());});}))];return window[_0x568e9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x568e9b([0x72,0x61,0x63,0x65])](_0x10715a)[_0x568e9b([0x74,0x68,0x65,0x6e])](()=>_0x3e858a);}async function _0x299322(){await _0x1fb770,_0x34bef8[_0x568e9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x568e9b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c057c,_0x34bef8[_0x568e9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x568e9b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c057c,_0x34bef8[_0x568e9b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x568e9b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f81cd(_0x16baa0){const _0x530e6d=_0xc32458();_0x34bef8[_0x530e6d]=_0x568e9b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x16baa0,_0x16baa0!=_0x568e9b([0x56,0x61,0x6c,0x69,0x64])&&_0x299322();}function _0xc32458(){const _0x474eae=window[_0x568e9b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x568e9b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x568e9b([0x6e,0x6f,0x77])]())[_0x568e9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x568e9b([0x2e]),'');let _0x435496=_0x568e9b([0x68]);for(let _0x51dc36=0x0;_0x51dc36<_0x474eae[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51dc36+=0x2){let _0x128c47=window[_0x568e9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x474eae[_0x568e9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51dc36,_0x51dc36+0x2));_0x128c47>=_0xfb536[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x128c47-=_0xfb536[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x435496+=_0xfb536[_0x128c47];}return _0x435496;}function _0xae9996(){const _0xdb316e=_0x40ddac[_0x568e9b([0x73,0x70,0x6c,0x69,0x74])](_0x568e9b([0x2e]));if(0x3!=_0xdb316e[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3bd944(_0xdb316e[0x1]);function _0x3bd944(_0x12061e){const _0x281d52=_0x15cbe6(_0x12061e);return _0x281d52&&_0x3db0c6()?_0x281d52:null;function _0x3db0c6(){const _0x359f25=_0x281d52[_0x568e9b([0x6a,0x74,0x69])],_0x3c14bf=window[_0x568e9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x359f25[_0x568e9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x359f25[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26a85d={..._0x281d52,[_0x568e9b([0x6a,0x74,0x69])]:_0x359f25[_0x568e9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x359f25[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26a85d[_0x568e9b([0x76,0x63])],_0xd5880d(_0x26a85d)==_0x3c14bf;}}}async function _0x3315a0(){let _0x278eca=!0x0;try{const _0x1b8e51=_0x40ddac[_0x568e9b([0x73,0x70,0x6c,0x69,0x74])](_0x568e9b([0x2e])),[_0x38f92c,_0x42c1fa,_0x154483]=_0x1b8e51;return _0x360d7f(_0x38f92c),await _0x5f37dd(_0x38f92c,_0x42c1fa,_0x154483),_0x278eca;}catch{return!0x1;}function _0x360d7f(_0x286330){const _0x21e214=_0x15cbe6(_0x286330);_0x21e214&&_0x21e214[_0x568e9b([0x61,0x6c,0x67])]==_0x568e9b([0x45,0x53,0x32,0x35,0x36])||(_0x278eca=!0x1);}async function _0x5f37dd(_0xf2b048,_0x479e9e,_0x61c5b1){const _0x297655=window[_0x568e9b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x568e9b([0x66,0x72,0x6f,0x6d])](_0x2a73b8(_0x61c5b1),_0x4c4ede=>_0x4c4ede[_0x568e9b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xbaf168=new window[(_0x568e9b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x568e9b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf2b048+_0x568e9b([0x2e])+_0x479e9e),_0x23a178=window[_0x568e9b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x568e9b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23a178)return;const _0x136dd5=await _0x23a178[_0x568e9b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x568e9b([0x6a,0x77,0x6b]),_0x509f34,{[_0x568e9b([0x6e,0x61,0x6d,0x65])]:_0x568e9b([0x45,0x43,0x44,0x53,0x41]),[_0x568e9b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x568e9b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x568e9b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23a178[_0x568e9b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x568e9b([0x6e,0x61,0x6d,0x65])]:_0x568e9b([0x45,0x43,0x44,0x53,0x41]),[_0x568e9b([0x68,0x61,0x73,0x68])]:{[_0x568e9b([0x6e,0x61,0x6d,0x65])]:_0x568e9b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x136dd5,_0x297655,_0xbaf168)||(_0x278eca=!0x1);}}function _0x15cbe6(_0x46e06c){return _0x46e06c[_0x568e9b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x568e9b([0x65,0x79]))?JSON[_0x568e9b([0x70,0x61,0x72,0x73,0x65])](_0x2a73b8(_0x46e06c)):null;}function _0x2a73b8(_0x33da96){return window[_0x568e9b([0x61,0x74,0x6f,0x62])](_0x33da96[_0x568e9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x568e9b([0x2b]))[_0x568e9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x568e9b([0x2f])));}function _0xd5880d(_0x584c8e){let _0x59ba3c=0x1505;function _0x31f048(_0x2ae36d){for(let _0x19c9f0=0x0;_0x19c9f0<_0x2ae36d[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19c9f0++){const _0x22795d=_0x2ae36d[_0x568e9b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19c9f0);_0x59ba3c=(_0x59ba3c<<0x5)+_0x59ba3c+_0x22795d,_0x59ba3c&=_0x59ba3c;}}function _0x492d57(_0x53e331){Array[_0x568e9b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x53e331)?_0x53e331[_0x568e9b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x492d57):_0x53e331&&typeof _0x53e331==_0x568e9b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x568e9b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x53e331)[_0x568e9b([0x73,0x6f,0x72,0x74])]()[_0x568e9b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c1bcb,_0xa657b5])=>{_0x31f048(_0x1c1bcb),_0x492d57(_0xa657b5);}):_0x31f048(window[_0x568e9b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x53e331));}return _0x492d57(_0x584c8e),_0x59ba3c>>>0x0;}function _0x7276f8(_0x3611c4){return _0x3611c4[_0x568e9b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x568e9b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x568e9b([0x30]));}function _0x58079d(_0x26d3df){return _0x26d3df[_0x568e9b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x568e9b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x568e9b([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c057c(){}function _0x568e9b(_0x3da115){const _0x44819f=_0x1cc8;return _0x3da115[_0x44819f(0xf8)](_0x218ae5=>String[_0x44819f(0xf1)](_0x218ae5))[_0x44819f(0xcf)]('');}_0x1f81cd(await _0x245f91());}(this);}[_0x4310a4(0xdb)](){const _0x50131f=_0x4310a4,_0x192370=this[_0x50131f(0xe4)][_0x50131f(0xda)][_0x50131f(0xea)];_0x192370[_0x50131f(0xd2)](_0x50131f(0xf7))&&_0x192370[_0x50131f(0xee)](_0x50131f(0xf7),{'allowAttributes':[_0x50131f(0xe3)]}),_0x192370[_0x50131f(0xd2)](_0x50131f(0xf2))&&_0x192370[_0x50131f(0xee)](_0x50131f(0xf2),{'allowAttributes':[_0x50131f(0xe3)]});}[_0x4310a4(0xed)](){const _0x4429e2=_0x4310a4,_0x5e8030=this[_0x4429e2(0xe4)];_0x5e8030[_0x4429e2(0x106)][_0x4429e2(0x10c)](_0x4429e2(0xe6))[_0x4429e2(0xf0)]({'model':_0x4429e2(0xe3),'view':_0x4429e2(0xe9)}),_0x5e8030[_0x4429e2(0x106)][_0x4429e2(0x10c)](_0x4429e2(0xf3))[_0x4429e2(0xfd)]({'model':{'key':_0x4429e2(0xe3),'value':_0x51e876=>_0x51e876[_0x4429e2(0x114)](_0x4429e2(0xe9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x569dc0=_0x5e8030[_0x4429e2(0xca)][_0x4429e2(0x108)](_0x4429e2(0xc5));_0x569dc0&&this[_0x4429e2(0x111)](_0x569dc0,_0x4429e2(0xde),(_0x44b565,[_0x3003c1,_0x113a30])=>{const _0x3673fc=_0x4429e2;_0x3003c1[_0x3673fc(0xf6)](_0x3673fc(0xe3),_0x113a30);});}[_0x4310a4(0xc7)](){const _0x2cb391=_0x4310a4,_0x479586=this[_0x2cb391(0xe4)][_0x2cb391(0xcb)][_0x2cb391(0x108)](_0x2cb391(0xe5))||{},_0x10ac68=this[_0x2cb391(0xe4)][_0x2cb391(0xcb)][_0x2cb391(0x108)](_0x2cb391(0xdf))||'';this[_0x2cb391(0x10d)]=_0x5aa573(_0x462c69[_0x2cb391(0x105)],_0x2cb391(0xf9),{..._0x479586,'pubkey':_0x10ac68,'ctx-name':_0x2cb391(0xfb)+this[_0x2cb391(0xfa)],'sourceList':'','imgOnly':_0x2cb391(0x109),'removeCopyright':_0x2cb391(0x109),'localeName':this[_0x2cb391(0xe4)][_0x2cb391(0xd1)][_0x2cb391(0xc9)],'externalSourcesEmbedCss':_0x2cb391(0x10e)}),this[_0x2cb391(0x10d)][_0x2cb391(0x112)]=_0x257660=>{const _0x18e630=_0x2cb391;if(_0x18e630(0xe2)==_0x257660)return _0x18e630(0xef);},_0x462c69[_0x2cb391(0x105)][_0x2cb391(0xff)][_0x2cb391(0x117)](this[_0x2cb391(0x10d)]);}[_0x4310a4(0xf4)](){const _0x4a2b76=_0x4310a4;this[_0x4a2b76(0xc8)]=_0x5aa573(_0x462c69[_0x4a2b76(0x105)],_0x4a2b76(0xd9),{'ctx-name':_0x4a2b76(0xfb)+this[_0x4a2b76(0xfa)]}),_0x462c69[_0x4a2b76(0x105)][_0x4a2b76(0xff)][_0x4a2b76(0x117)](this[_0x4a2b76(0xc8)]);}[_0x4310a4(0x11a)](){const _0x577c61=_0x4310a4,_0x5f2d0a=this[_0x577c61(0xe4)][_0x577c61(0xca)][_0x577c61(0x108)](_0x577c61(0x115));_0x5f2d0a&&this[_0x577c61(0x111)](_0x5f2d0a,_0x577c61(0x110),()=>{const _0x4a5513=_0x577c61,_0x144181=this[_0x4a5513(0xe4)][_0x4a5513(0xda)][_0x4a5513(0x105)][_0x4a5513(0x116)][_0x4a5513(0xeb)]();_0x144181&&_0x144181[_0x4a5513(0x114)](_0x4a5513(0xe3))&&this[_0x4a5513(0xe4)][_0x4a5513(0x101)][_0x4a5513(0x10f)][_0x4a5513(0xe0)](_0x4a5513(0x119),()=>{const _0x26664b=_0x4a5513;_0x515613(this[_0x26664b(0xe4)],_0x144181);});});const _0x4e8107=this[_0x577c61(0xe4)][_0x577c61(0xca)][_0x577c61(0x108)](_0x577c61(0xd0));_0x4e8107&&this[_0x577c61(0x111)](_0x4e8107,_0x577c61(0x110),()=>{const _0x2c54db=_0x577c61,_0xdd840f=this[_0x2c54db(0xe4)][_0x2c54db(0xda)][_0x2c54db(0x105)][_0x2c54db(0x116)][_0x2c54db(0xeb)]();_0xdd840f&&_0xdd840f[_0x2c54db(0x114)](_0x2c54db(0xe3))&&this[_0x2c54db(0xe4)][_0x2c54db(0x101)][_0x2c54db(0x10f)][_0x2c54db(0xe0)](_0x2c54db(0x119),()=>{const _0x43b2d4=_0x2c54db;_0x515613(this[_0x43b2d4(0xe4)],_0xdd840f);});});}}
|
|
23
|
+
const _0x6b630d=_0xa04b;(function(_0x1019f1,_0x172a68){const _0x52d0bd=_0xa04b,_0x350727=_0x1019f1();while(!![]){try{const _0x848f48=-parseInt(_0x52d0bd(0x178))/0x1+-parseInt(_0x52d0bd(0x187))/0x2+parseInt(_0x52d0bd(0x1c3))/0x3*(parseInt(_0x52d0bd(0x182))/0x4)+parseInt(_0x52d0bd(0x1cb))/0x5*(-parseInt(_0x52d0bd(0x19b))/0x6)+parseInt(_0x52d0bd(0x1b3))/0x7*(-parseInt(_0x52d0bd(0x1ca))/0x8)+parseInt(_0x52d0bd(0x1bf))/0x9*(parseInt(_0x52d0bd(0x1b0))/0xa)+parseInt(_0x52d0bd(0x1b9))/0xb*(parseInt(_0x52d0bd(0x1c8))/0xc);if(_0x848f48===_0x172a68)break;else _0x350727['push'](_0x350727['shift']());}catch(_0x2c9bac){_0x350727['push'](_0x350727['shift']());}}}(_0x4f91,0x6bd8d));import{Plugin as _0xee4b4d}from'ckeditor5/src/core.js';import{Dialog as _0x736ec6}from'ckeditor5/src/ui.js';import{createElement as _0x369d61,global as _0x3be056,uid as _0x59c115}from'ckeditor5/src/utils.js';function _0xa04b(_0x25f688,_0x5a7709){const _0x4f91ab=_0x4f91();return _0xa04b=function(_0xa04bd7,_0x505e47){_0xa04bd7=_0xa04bd7-0x177;let _0x2aaa1e=_0x4f91ab[_0xa04bd7];return _0x2aaa1e;},_0xa04b(_0x25f688,_0x5a7709);}function _0x4f91(){const _0x1cbb0a=['editor','closeMax','PictureEditing','426449sqldkk','_initCtx','uploadcareImageId','insertImage','_initConversion','document','selection','querySelector','uploader-','extend','206500CEUwzS','imageBlock','isRegistered','data-uc-image-id','editing','1007682TZKknN','remove','isOfficialPlugin','replaceImageSource','model','elementToAttribute','_initSchema','iconHrefResolver','_initImageProcessingIndicator','isPremiumPlugin','ucContextId','uc-upload-ctx-provider','input[uploadcare-file-input]','ctxElement','execute','uploadcare','get','config','listenTo','uploadcareImageReplace','60uAihTt','UploadcareEditing','configElement','_ctxElement','init','commands','add','\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-icon-arrow-down','downcast','for','map','body','attributeToAttribute','getAttribute','_initConfig','locale','true','destroy','once','requires','180QCDwms','cleanupImage','appendChild','482853OmFycW','conversion','join','uploadcare.pubkey','schema','pluginName','11UIlBxO','upcast','view','afterInit','imageInline','render','7839RYcJCL','fromCharCode','removeAttribute','_configElement','9nyPTmp','href','uploadcare.uploader','uc-config','getSelectedElement','26930592apoIfX','contentLanguage','96JBbUMm','107495JFYNPk'];_0x4f91=function(){return _0x1cbb0a;};return _0x4f91();}import{UploadcareCommand as _0x5adcd5}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x2b205f}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xc834a4}from'./utils/editingutils.js';export class UploadcareEditing extends _0xee4b4d{[_0x6b630d(0x1c2)]=null;[_0x6b630d(0x19e)]=null;static get[_0x6b630d(0x1b8)](){const _0x138562=_0x6b630d;return _0x138562(0x19c);}static get[_0x6b630d(0x1af)](){const _0x58ec6a=_0x6b630d;return[_0x58ec6a(0x177),_0x2b205f,_0x736ec6];}static get[_0x6b630d(0x189)](){return!0x0;}static get[_0x6b630d(0x190)](){return!0x0;}[_0x6b630d(0x191)];get[_0x6b630d(0x19d)](){const _0x48ec79=_0x6b630d;return this[_0x48ec79(0x1c2)];}get[_0x6b630d(0x194)](){const _0xbd23b=_0x6b630d;return this[_0xbd23b(0x19e)];}constructor(_0x108ad7){const _0x19731f=_0x6b630d;super(_0x108ad7),this[_0x19731f(0x191)]=_0x59c115();}[_0x6b630d(0x19f)](){const _0x293abe=_0x6b630d,_0x4b9b2c=this[_0x293abe(0x1cc)];_0x4b9b2c[_0x293abe(0x1a0)][_0x293abe(0x1a1)](_0x293abe(0x196),new _0x5adcd5(_0x4b9b2c));}[_0x6b630d(0x1bc)](){const _0x29675d=_0x6b630d;this[_0x29675d(0x18d)](),this[_0x29675d(0x17c)](),this[_0x29675d(0x1aa)](),this[_0x29675d(0x179)](),this[_0x29675d(0x18f)](),this[_0x29675d(0x199)](this[_0x29675d(0x1cc)],_0x29675d(0x1ad),()=>{const _0x4b1bc8=_0x29675d;this[_0x4b1bc8(0x1c2)]&&(this[_0x4b1bc8(0x1c2)][_0x4b1bc8(0x188)](),this[_0x4b1bc8(0x1c2)]=null),this[_0x4b1bc8(0x19e)]&&(this[_0x4b1bc8(0x19e)][_0x4b1bc8(0x188)](),this[_0x4b1bc8(0x19e)]=null);const _0x53a281=_0x3be056[_0x4b1bc8(0x17d)][_0x4b1bc8(0x17f)](_0x4b1bc8(0x193));_0x53a281&&_0x53a281[_0x4b1bc8(0x188)]();}),async function(_0x20260b){const _0x561e44=_0x5d68fb([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x1082f7=0x535f8c3a,_0x31519f=0x5358f7ba^_0x1082f7,_0x214abf=window[_0x5d68fb([0x44,0x61,0x74,0x65])][_0x5d68fb([0x6e,0x6f,0x77])](),_0x594dc7=_0x20260b[_0x5d68fb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x71b69d=new window[(_0x5d68fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40a343=>{_0x594dc7[_0x5d68fb([0x6f,0x6e,0x63,0x65])](_0x5d68fb([0x72,0x65,0x61,0x64,0x79]),_0x40a343);}),_0x20b4e5={[_0x5d68fb([0x6b,0x74,0x79])]:_0x5d68fb([0x45,0x43]),[_0x5d68fb([0x75,0x73,0x65])]:_0x5d68fb([0x73,0x69,0x67]),[_0x5d68fb([0x63,0x72,0x76])]:_0x5d68fb([0x50,0x2d,0x32,0x35,0x36]),[_0x5d68fb([0x78])]:_0x5d68fb([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]),[_0x5d68fb([0x79])]:_0x5d68fb([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]),[_0x5d68fb([0x61,0x6c,0x67])]:_0x5d68fb([0x45,0x53,0x32,0x35,0x36])},_0x37cc77=_0x594dc7[_0x5d68fb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d68fb([0x67,0x65,0x74])](_0x5d68fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x124623(){let _0x210b13,_0x41b3d1=null,_0x56741c=null;try{if(_0x37cc77==_0x5d68fb([0x47,0x50,0x4c]))return _0x5d68fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x210b13=_0x21cd95(),!_0x210b13)return _0x5d68fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x210b13[_0x5d68fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x56741c=_0x1ec03f(_0x210b13[_0x5d68fb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x210b13[_0x5d68fb([0x6a,0x74,0x69])])),await _0x2c64b1()?_0x2cf16f()?_0x1a0e6a()?_0x5d68fb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xd0120a()?(_0x210b13[_0x5d68fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d68fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x41b3d1=_0x20849d(_0x5d68fb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x210b13[_0x5d68fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d68fb([0x74,0x72,0x69,0x61,0x6c])&&(_0x41b3d1=_0x20849d(_0x5d68fb([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3cb6af()):_0x5d68fb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d68fb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d68fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d68fb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a0e6a(){const _0x3894c7=[_0x5d68fb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d68fb([0x74,0x72,0x69,0x61,0x6c])][_0x5d68fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x210b13[_0x5d68fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x214abf/0x3e8:0xe10*_0x31519f;return _0x210b13[_0x5d68fb([0x65,0x78,0x70])]<_0x3894c7;}function _0x2cf16f(){const _0x4249c5=_0x210b13[_0x5d68fb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4249c5&&(!!_0x4249c5[_0x5d68fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d68fb([0x2a]))||!!_0x4249c5[_0x5d68fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d68fb([0x55,0x50,0x4c,0x43])));}function _0xd0120a(){const _0xf0e312=_0xa04b,_0x298500=_0x210b13[_0x5d68fb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x298500||0x0==_0x298500[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ae2f0}=new URL(window[_0x5d68fb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xf0e312(0x1c4)]);if(_0x298500[_0x5d68fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ae2f0))return!0x0;const _0x14c24a=_0x3ae2f0[_0x5d68fb([0x73,0x70,0x6c,0x69,0x74])](_0x5d68fb([0x2e]));return _0x298500[_0x5d68fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19c0ea=>_0x19c0ea[_0x5d68fb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d68fb([0x2a])))[_0x5d68fb([0x6d,0x61,0x70])](_0xed21a=>_0xed21a[_0x5d68fb([0x73,0x70,0x6c,0x69,0x74])](_0x5d68fb([0x2e])))[_0x5d68fb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb796df=>_0xb796df[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x14c24a[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d68fb([0x6d,0x61,0x70])](_0x4ab601=>Array(_0x14c24a[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4ab601[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d68fb([0x66,0x69,0x6c,0x6c])](_0x4ab601[0x0]===_0x5d68fb([0x2a])?_0x5d68fb([0x2a]):'')[_0x5d68fb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4ab601))[_0x5d68fb([0x73,0x6f,0x6d,0x65])](_0x29dcfa=>_0x14c24a[_0x5d68fb([0x65,0x76,0x65,0x72,0x79])]((_0x473444,_0x430fb0)=>_0x29dcfa[_0x430fb0]===_0x473444||_0x29dcfa[_0x430fb0]===_0x5d68fb([0x2a])));}function _0x3cb6af(){return _0x41b3d1&&_0x56741c?new window[(_0x5d68fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x130cca,_0x72be86)=>{_0x41b3d1[_0x5d68fb([0x74,0x68,0x65,0x6e])](_0x130cca,_0x72be86),_0x56741c[_0x5d68fb([0x74,0x68,0x65,0x6e])](_0x2b05cc=>{_0x2b05cc!=_0x5d68fb([0x56,0x61,0x6c,0x69,0x64])&&_0x130cca(_0x2b05cc);},_0x72be86);}):_0x41b3d1||_0x56741c||_0x5d68fb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1ec03f(_0x5b03d1,_0x354f48){return new window[(_0x5d68fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a3e82=>{if(_0x2ae14c())return _0x1a3e82(_0x5d68fb([0x56,0x61,0x6c,0x69,0x64]));_0x1449d0(),_0x594dc7[_0x5d68fb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d68fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x6f1d00=!0x1;const _0x47946f=_0x59c115();function _0x246c7d(_0xcfcc1a){return!!_0xcfcc1a&&(typeof _0xcfcc1a===_0x5d68fb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xcfcc1a===_0x5d68fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xcfcc1a[_0x5d68fb([0x74,0x68,0x65,0x6e])]===_0x5d68fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xcfcc1a[_0x5d68fb([0x63,0x61,0x74,0x63,0x68])]===_0x5d68fb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25642b(_0x56cb90){_0x431fa3(_0x56cb90)[_0x5d68fb([0x74,0x68,0x65,0x6e])](_0x9a9409=>{if(!_0x9a9409||_0x9a9409[_0x5d68fb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d68fb([0x6f,0x6b]))return _0x5d68fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf32189(_0x4597e6(_0x47946f+_0x354f48))!=_0x9a9409[_0x5d68fb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d68fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d68fb([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d68fb([0x74,0x68,0x65,0x6e])](_0x3d2aa7=>(_0x2824f3(),_0x3d2aa7),()=>{const _0xd5cdec=_0x5d4a1d();return null==_0xd5cdec?(_0x2824f3(),_0x5d68fb([0x56,0x61,0x6c,0x69,0x64])):_0x5d68fb(_0x214abf-_0xd5cdec>(0x7753083a^_0x1082f7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d68fb([0x74,0x68,0x65,0x6e])](_0x1a3e82)[_0x5d68fb([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1a3e82(_0x5d68fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x298951=0x536962ba^_0x1082f7;function _0x2824f3(){const _0x3d98b9=_0x5d68fb([0x6c,0x6c,0x63,0x74,0x2d])+_0xf32189(_0x4597e6(_0x5b03d1)),_0x1c1ff3=_0x1eb4df(_0xf32189(window[_0x5d68fb([0x4d,0x61,0x74,0x68])][_0x5d68fb([0x63,0x65,0x69,0x6c])](_0x214abf/_0x298951)));window[_0x5d68fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d68fb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d98b9,_0x1c1ff3);}function _0x5d4a1d(){const _0x588967=_0x5d68fb([0x6c,0x6c,0x63,0x74,0x2d])+_0xf32189(_0x4597e6(_0x5b03d1)),_0x1ef267=window[_0x5d68fb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d68fb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x588967);return _0x1ef267?window[_0x5d68fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1eb4df(_0x1ef267),0x10)*_0x298951:null;}function _0x431fa3(_0x4c6d3e){return new window[(_0x5d68fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3570e5,_0x170351)=>{_0x4c6d3e[_0x5d68fb([0x74,0x68,0x65,0x6e])](_0x3570e5,_0x170351),window[_0x5d68fb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x170351,0x535e58fa^_0x1082f7);});}}_0x594dc7[_0x5d68fb([0x6f,0x6e])](_0x5d68fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x6e5315,_0x48c0ee)=>{if(_0x48c0ee[0x0]!=_0x5b03d1)return _0x1a3e82(_0x5d68fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x48c0ee[0x1]={..._0x48c0ee[0x1],[_0x5d68fb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x47946f};},{[_0x5d68fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d68fb([0x68,0x69,0x67,0x68])}),_0x594dc7[_0x5d68fb([0x6f,0x6e])](_0x5d68fb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x369596=>{_0x246c7d(_0x369596[_0x5d68fb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x6f1d00=!0x0,_0x25642b(_0x369596[_0x5d68fb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d68fb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d68fb([0x6c,0x6f,0x77])}),_0x71b69d[_0x5d68fb([0x74,0x68,0x65,0x6e])](()=>{_0x6f1d00||_0x1a3e82(_0x5d68fb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2ae14c(){return _0x594dc7[_0x5d68fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d68fb([0x76,0x69,0x65,0x77])][_0x5d68fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d68fb([0x61,0x75,0x74,0x6f]);}function _0x1449d0(){_0x594dc7[_0x5d68fb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d68fb([0x76,0x69,0x65,0x77])][_0x5d68fb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d68fb([0x61,0x75,0x74,0x6f]);}}function _0x20849d(_0x3a1f0c){const _0x573e89=[new window[(_0x5d68fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e11c0=>setTimeout(_0x2e11c0,0x5356b2f6^_0x1082f7)),_0x71b69d[_0x5d68fb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d68fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52d921=>{let _0xe4ced2=0x0;_0x594dc7[_0x5d68fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d68fb([0x6f,0x6e])](_0x5d68fb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d3364,_0x252918)=>{_0x252918[0x0][_0x5d68fb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xe4ced2++,_0xe4ced2==(0x535f8dc2^_0x1082f7)&&(_0x52d921(),_0x5d3364[_0x5d68fb([0x6f,0x66,0x66])]());});}))];return window[_0x5d68fb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d68fb([0x72,0x61,0x63,0x65])](_0x573e89)[_0x5d68fb([0x74,0x68,0x65,0x6e])](()=>_0x3a1f0c);}async function _0x9e42c7(){await _0x71b69d,_0x594dc7[_0x5d68fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d68fb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x59dafe,_0x594dc7[_0x5d68fb([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d68fb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x59dafe,_0x594dc7[_0x5d68fb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d68fb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x459380(_0x11c156){const _0x99e0b7=_0x331601();_0x594dc7[_0x99e0b7]=_0x5d68fb([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11c156,_0x11c156!=_0x5d68fb([0x56,0x61,0x6c,0x69,0x64])&&_0x9e42c7();}function _0x331601(){const _0x4b71f0=window[_0x5d68fb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d68fb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d68fb([0x6e,0x6f,0x77])]())[_0x5d68fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d68fb([0x2e]),'');let _0x22d4b0=_0x5d68fb([0x68]);for(let _0x42e71b=0x0;_0x42e71b<_0x4b71f0[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42e71b+=0x2){let _0x455cbe=window[_0x5d68fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b71f0[_0x5d68fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42e71b,_0x42e71b+0x2));_0x455cbe>=_0x561e44[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x455cbe-=_0x561e44[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22d4b0+=_0x561e44[_0x455cbe];}return _0x22d4b0;}function _0x21cd95(){const _0x12a3f3=_0x37cc77[_0x5d68fb([0x73,0x70,0x6c,0x69,0x74])](_0x5d68fb([0x2e]));if(0x3!=_0x12a3f3[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd2ee75(_0x12a3f3[0x1]);function _0xd2ee75(_0x24d184){const _0x433e8c=_0x2bd260(_0x24d184);return _0x433e8c&&_0x485738()?_0x433e8c:null;function _0x485738(){const _0x1e01be=_0x433e8c[_0x5d68fb([0x6a,0x74,0x69])],_0x446815=window[_0x5d68fb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e01be[_0x5d68fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e01be[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b9784={..._0x433e8c,[_0x5d68fb([0x6a,0x74,0x69])]:_0x1e01be[_0x5d68fb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1e01be[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b9784[_0x5d68fb([0x76,0x63])],_0x4597e6(_0x4b9784)==_0x446815;}}}async function _0x2c64b1(){let _0x276e26=!0x0;try{const _0x13141c=_0x37cc77[_0x5d68fb([0x73,0x70,0x6c,0x69,0x74])](_0x5d68fb([0x2e])),[_0x545465,_0x168990,_0x972662]=_0x13141c;return _0x10d4a3(_0x545465),await _0x1175db(_0x545465,_0x168990,_0x972662),_0x276e26;}catch{return!0x1;}function _0x10d4a3(_0x429610){const _0x59d194=_0x2bd260(_0x429610);_0x59d194&&_0x59d194[_0x5d68fb([0x61,0x6c,0x67])]==_0x5d68fb([0x45,0x53,0x32,0x35,0x36])||(_0x276e26=!0x1);}async function _0x1175db(_0x40a4a9,_0x3d099f,_0x294557){const _0x5f3349=window[_0x5d68fb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d68fb([0x66,0x72,0x6f,0x6d])](_0x5c88d7(_0x294557),_0x544af8=>_0x544af8[_0x5d68fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xd0b03f=new window[(_0x5d68fb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d68fb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40a4a9+_0x5d68fb([0x2e])+_0x3d099f),_0x3ac384=window[_0x5d68fb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d68fb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3ac384)return;const _0x1beeed=await _0x3ac384[_0x5d68fb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d68fb([0x6a,0x77,0x6b]),_0x20b4e5,{[_0x5d68fb([0x6e,0x61,0x6d,0x65])]:_0x5d68fb([0x45,0x43,0x44,0x53,0x41]),[_0x5d68fb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d68fb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d68fb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3ac384[_0x5d68fb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d68fb([0x6e,0x61,0x6d,0x65])]:_0x5d68fb([0x45,0x43,0x44,0x53,0x41]),[_0x5d68fb([0x68,0x61,0x73,0x68])]:{[_0x5d68fb([0x6e,0x61,0x6d,0x65])]:_0x5d68fb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1beeed,_0x5f3349,_0xd0b03f)||(_0x276e26=!0x1);}}function _0x2bd260(_0xd833bb){return _0xd833bb[_0x5d68fb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d68fb([0x65,0x79]))?JSON[_0x5d68fb([0x70,0x61,0x72,0x73,0x65])](_0x5c88d7(_0xd833bb)):null;}function _0x5c88d7(_0x25d94f){return window[_0x5d68fb([0x61,0x74,0x6f,0x62])](_0x25d94f[_0x5d68fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d68fb([0x2b]))[_0x5d68fb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d68fb([0x2f])));}function _0x4597e6(_0x7297bb){let _0x3195aa=0x1505;function _0x3c3d13(_0x29abbf){for(let _0x54935a=0x0;_0x54935a<_0x29abbf[_0x5d68fb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54935a++){const _0xd5e739=_0x29abbf[_0x5d68fb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x54935a);_0x3195aa=(_0x3195aa<<0x5)+_0x3195aa+_0xd5e739,_0x3195aa&=_0x3195aa;}}function _0x20b667(_0x5eea49){Array[_0x5d68fb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5eea49)?_0x5eea49[_0x5d68fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x20b667):_0x5eea49&&typeof _0x5eea49==_0x5d68fb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d68fb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5eea49)[_0x5d68fb([0x73,0x6f,0x72,0x74])]()[_0x5d68fb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a04f3,_0x5d4f03])=>{_0x3c3d13(_0x2a04f3),_0x20b667(_0x5d4f03);}):_0x3c3d13(window[_0x5d68fb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5eea49));}return _0x20b667(_0x7297bb),_0x3195aa>>>0x0;}function _0xf32189(_0x3a3e8c){return _0x3a3e8c[_0x5d68fb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d68fb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d68fb([0x30]));}function _0x1eb4df(_0x184ce2){return _0x184ce2[_0x5d68fb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d68fb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d68fb([0x6a,0x6f,0x69,0x6e])]('');}function _0x59dafe(){}function _0x5d68fb(_0x5b188a){const _0x45429f=_0xa04b;return _0x5b188a[_0x45429f(0x1a6)](_0x7ca2d8=>String[_0x45429f(0x1c0)](_0x7ca2d8))[_0x45429f(0x1b5)]('');}_0x459380(await _0x124623());}(this);}[_0x6b630d(0x18d)](){const _0x18bc21=_0x6b630d,_0x24050e=this[_0x18bc21(0x1cc)][_0x18bc21(0x18b)][_0x18bc21(0x1b7)];_0x24050e[_0x18bc21(0x184)](_0x18bc21(0x183))&&_0x24050e[_0x18bc21(0x181)](_0x18bc21(0x183),{'allowAttributes':[_0x18bc21(0x17a)]}),_0x24050e[_0x18bc21(0x184)](_0x18bc21(0x1bd))&&_0x24050e[_0x18bc21(0x181)](_0x18bc21(0x1bd),{'allowAttributes':[_0x18bc21(0x17a)]});}[_0x6b630d(0x17c)](){const _0x2fd536=_0x6b630d,_0x54a5ac=this[_0x2fd536(0x1cc)];_0x54a5ac[_0x2fd536(0x1b4)][_0x2fd536(0x1a5)](_0x2fd536(0x1a4))[_0x2fd536(0x1a8)]({'model':_0x2fd536(0x17a),'view':_0x2fd536(0x185)}),_0x54a5ac[_0x2fd536(0x1b4)][_0x2fd536(0x1a5)](_0x2fd536(0x1ba))[_0x2fd536(0x18c)]({'model':{'key':_0x2fd536(0x17a),'value':_0x2c45f8=>_0x2c45f8[_0x2fd536(0x1a9)](_0x2fd536(0x185))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5da8c5=_0x54a5ac[_0x2fd536(0x1a0)][_0x2fd536(0x197)](_0x2fd536(0x18a));_0x5da8c5&&this[_0x2fd536(0x199)](_0x5da8c5,_0x2fd536(0x1b1),(_0x52cf75,[_0x4b3b40,_0x5038a4])=>{const _0x852dfe=_0x2fd536;_0x4b3b40[_0x852dfe(0x1c1)](_0x852dfe(0x17a),_0x5038a4);});}[_0x6b630d(0x1aa)](){const _0x12ae60=_0x6b630d,_0x2ebc11=this[_0x12ae60(0x1cc)][_0x12ae60(0x198)][_0x12ae60(0x197)](_0x12ae60(0x1c5))||{},_0xb997bb=this[_0x12ae60(0x1cc)][_0x12ae60(0x198)][_0x12ae60(0x197)](_0x12ae60(0x1b6))||'';this[_0x12ae60(0x1c2)]=_0x369d61(_0x3be056[_0x12ae60(0x17d)],_0x12ae60(0x1c6),{..._0x2ebc11,'pubkey':_0xb997bb,'ctx-name':_0x12ae60(0x180)+this[_0x12ae60(0x191)],'sourceList':'','imgOnly':_0x12ae60(0x1ac),'removeCopyright':_0x12ae60(0x1ac),'localeName':this[_0x12ae60(0x1cc)][_0x12ae60(0x1ab)][_0x12ae60(0x1c9)],'externalSourcesEmbedCss':_0x12ae60(0x1a2)}),this[_0x12ae60(0x1c2)][_0x12ae60(0x18e)]=_0x1da5b8=>{const _0x3fc147=_0x12ae60;if(_0x3fc147(0x1cd)==_0x1da5b8)return _0x3fc147(0x1a3);},_0x3be056[_0x12ae60(0x17d)][_0x12ae60(0x1a7)][_0x12ae60(0x1b2)](this[_0x12ae60(0x1c2)]);}[_0x6b630d(0x179)](){const _0x75938e=_0x6b630d;this[_0x75938e(0x19e)]=_0x369d61(_0x3be056[_0x75938e(0x17d)],_0x75938e(0x192),{'ctx-name':_0x75938e(0x180)+this[_0x75938e(0x191)]}),_0x3be056[_0x75938e(0x17d)][_0x75938e(0x1a7)][_0x75938e(0x1b2)](this[_0x75938e(0x19e)]);}[_0x6b630d(0x18f)](){const _0x2f9867=_0x6b630d,_0x19fac7=this[_0x2f9867(0x1cc)][_0x2f9867(0x1a0)][_0x2f9867(0x197)](_0x2f9867(0x17b));_0x19fac7&&this[_0x2f9867(0x199)](_0x19fac7,_0x2f9867(0x195),()=>{const _0x360cd5=_0x2f9867,_0x5c2821=this[_0x360cd5(0x1cc)][_0x360cd5(0x18b)][_0x360cd5(0x17d)][_0x360cd5(0x17e)][_0x360cd5(0x1c7)]();_0x5c2821&&_0x5c2821[_0x360cd5(0x1a9)](_0x360cd5(0x17a))&&this[_0x360cd5(0x1cc)][_0x360cd5(0x186)][_0x360cd5(0x1bb)][_0x360cd5(0x1ae)](_0x360cd5(0x1be),()=>{const _0x154d8e=_0x360cd5;_0xc834a4(this[_0x154d8e(0x1cc)],_0x5c2821);});});const _0x17bc19=this[_0x2f9867(0x1cc)][_0x2f9867(0x1a0)][_0x2f9867(0x197)](_0x2f9867(0x19a));_0x17bc19&&this[_0x2f9867(0x199)](_0x17bc19,_0x2f9867(0x195),()=>{const _0x3def34=_0x2f9867,_0x3d1d60=this[_0x3def34(0x1cc)][_0x3def34(0x18b)][_0x3def34(0x17d)][_0x3def34(0x17e)][_0x3def34(0x1c7)]();_0x3d1d60&&_0x3d1d60[_0x3def34(0x1a9)](_0x3def34(0x17a))&&this[_0x3def34(0x1cc)][_0x3def34(0x186)][_0x3def34(0x1bb)][_0x3def34(0x1ae)](_0x3def34(0x1be),()=>{const _0x2c73c9=_0x3def34;_0xc834a4(this[_0x2c73c9(0x1cc)],_0x3d1d60);});});}}
|