@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250216.0 → 0.0.0-nightly-next-20250217.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/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x4901ff,Command as _0x32ac5c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x28730b,IconInstagram as _0x12f9cb,IconGooglePhotos as _0x4bd289,IconGoogleDrive as _0x2ad3a5,IconFacebook as _0x1d2b30,IconDropbox as _0x47c40f,IconUploadcareLink as _0x9fb45a,IconUploadcareImageUpload as _0x5d7aa7,IconError as et,IconUploadcareImageEdit as _0x458217}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x47720a,MenuBarMenuListItemButtonView as _0x23b642,View as _0xfcfd96,FocusCycler as _0xeda4fc,Dialog as _0x10979b,DialogViewPosition as _0x17911b,SpinnerView as _0x284b0c,IconView as at,Notification as _0x3d7aa9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x666661,DomEmitterMixin as _0x35d879,global as _0x4316cb,getAncestors as _0x2eaeb9,ObservableMixin as _0x225e56,createElement as _0x3e6b3f,uid as _0xf4ea4b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x23cf9a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x596486,info as _0x4356d8}from'@uploadcare/upload-client';import*as _0x271920 from'@uploadcare/file-uploader';var o=function(_0xbc5e33){return _0xbc5e33['Local']='local',_0xbc5e33['URL']='url',_0xbc5e33['Dropbox']='dropbox',_0xbc5e33['GDrive']='gdrive',_0xbc5e33['Facebook']='facebook',_0xbc5e33['GPhotos']='gphotos',_0xbc5e33['Instagram']='instagram',_0xbc5e33['OneDrive']='onedrive',_0xbc5e33;}({});function x(_0x5543b3,_0x21e367,_0x173859){const t=_0x5543b3['t'],_0x909f03=_0x5543b3['t'];switch(_0x21e367){case o['Local']:return{'text':_0x909f03('Insert'===_0x173859?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x909f03('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x173859?_0x909f03('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x909f03('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['Instagram']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case o['OneDrive']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x21e367;}}class e extends _0x4901ff{['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 _0x5f0dce=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x26bfc2;for(const _0x36f967 in _0x5f0dce){const _0x46d32f=_0x36f967,_0x1ea270=_0x5f0dce[_0x46d32f];if('uploadcareLicenseKeyValid'==_0x1ea270||'uploadcareLicenseKeyInvalid'==_0x1ea270||'uploadcareLicenseKeyExpired'==_0x1ea270||'uploadcareLicenseKeyDomainLimit'==_0x1ea270||'uploadcareLicenseKeyNotAllowed'==_0x1ea270||'uploadcareLicenseKeyEvaluationLimit'==_0x1ea270||'uploadcareLicenseKeyTrialLimit'==_0x1ea270||'uploadcareLicenseKeyUsageLimit'==_0x1ea270){delete _0x5f0dce[_0x46d32f],_0x26bfc2=_0x1ea270,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2fad1c}=this,_0x326a93=_0x2fad1c['commands']['get']('uploadcare');if(!_0x326a93)return;const _0x136921=this['_normalizeConfigSourceList'](_0x2fad1c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1678a9,_0xafa8e0)=>{const _0x1751fb=this['_getIntegrationKey'](_0xafa8e0['type']);return _0x1678a9[_0x1751fb]||(_0x1678a9[_0x1751fb]=[]),_0x1678a9[_0x1751fb]['push'](_0xafa8e0),_0x1678a9;},{});_0x2fad1c['plugins']['has']('ImageInsertUI')&&_0x2fad1c['commands']['get']('uploadcare')&&Object['entries'](_0x136921)['forEach'](([_0xc0631,_0x4ca331])=>{_0x2fad1c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xc0631,'observable':()=>_0x326a93,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4ca331),'formViewCreator':()=>this['_createDropdownButtons'](_0x4ca331),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4ca331),'override':'assetManager'!==_0xc0631});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x50acb7){const {locale:_0x1f32a7}=this['editor'];return _0x50acb7['map'](_0x4f3b3f=>{const _0x1ed337=x(_0x1f32a7,_0x4f3b3f,'Insert');switch(_0x4f3b3f){case o['Local']:return{'icon':_0x5d7aa7,'type':o['Local'],..._0x1ed337};case o['URL']:return{'icon':_0x9fb45a,'type':o['URL'],..._0x1ed337};case o['Dropbox']:return{'icon':_0x47c40f,'type':o['Dropbox'],..._0x1ed337};case o['Facebook']:return{'icon':_0x1d2b30,'type':o['Facebook'],..._0x1ed337};case o['GDrive']:return{'icon':_0x2ad3a5,'type':o['GDrive'],..._0x1ed337};case o['GPhotos']:return{'icon':_0x4bd289,'type':o['GPhotos'],..._0x1ed337};case o['Instagram']:return{'icon':_0x12f9cb,'type':o['Instagram'],..._0x1ed337};case o['OneDrive']:return{'icon':_0x28730b,'type':o['OneDrive'],..._0x1ed337};}});}['_getIntegrationKey'](_0x23e0b0){switch(_0x23e0b0){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x24306a,_0x5f35ea){const _0x3dfb90=this['editor'],_0x57b14b=new _0x24306a(_0x3dfb90['locale']),_0x1053d1=_0x3dfb90['commands']['get']('uploadcare');return _0x57b14b['bind']('isEnabled')['to'](_0x1053d1),_0x57b14b['on']('execute',()=>{_0x1053d1['execute'](_0x5f35ea);}),_0x57b14b;}['_createToolbarButton'](_0x2a6d82){const {locale:_0x2a9f2d}=this['editor'],_0x53308c=this['editor']['plugins']['get']('ImageInsertUI'),_0xd5f6ba=_0x2a6d82[0x0],_0x3ecbe8=this['_createButton'](_0x47720a,_0xd5f6ba['type']);return _0x3ecbe8['icon']=_0xd5f6ba['icon'],_0x3ecbe8['bind']('label')['to'](_0x53308c,'isImageSelected',_0x1e1d69=>x(_0x2a9f2d,_0xd5f6ba['type'],_0x1e1d69?'Replace':'Insert')['text']),_0x3ecbe8['tooltip']=!0x0,_0x3ecbe8;}['_createDropdownButtons'](_0x1e7644){const {locale:_0xce7859}=this['editor'],_0x380879=this['editor']['plugins']['get']('ImageInsertUI');return _0x1e7644['map'](_0xf2a80=>{const _0x560f56=this['_createButton'](_0x47720a,_0xf2a80['type']);return _0x560f56['withText']=!0x0,_0x560f56['icon']=_0xf2a80['icon'],_0x560f56['bind']('label')['to'](_0x380879,'isImageSelected',_0x265ea7=>x(_0xce7859,_0xf2a80['type'],_0x265ea7?'Replace':'Insert')['text']),_0x560f56;});}['_createMenuBarButtons'](_0x46a231){return _0x46a231['map'](_0x5b8455=>{const _0xd13c4f=this['_createButton'](_0x23b642,_0x5b8455['type']);return _0xd13c4f['icon']=_0x5b8455['icon'],_0xd13c4f['label']=_0x5b8455['shortText'],_0xd13c4f;});}}class G extends _0xfcfd96{['focusTracker'];['focusCycler'];constructor(_0x275e8c){super(_0x275e8c),this['focusTracker']=new _0x666661(),this['focusCycler']=new _0xeda4fc({'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 F extends G{constructor(_0x4e6747){super(_0x4e6747),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x494a84,_0x20b7d4){const _0x2bcdb4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3677dc=>_0x3677dc<=_0x20b7d4)['map'](_0x477eb1=>_0x494a84['replace'](/\/$/,'')+'/-/resize/'+_0x477eb1+'x/\x20'+_0x477eb1+'w');return{'imageFallbackUrl':_0x494a84,'imageSources':[{'srcset':_0x2bcdb4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x20b7d4+'px)\x20100vw,\x20'+_0x20b7d4+'px','type':'image/webp'}]};}function R(_0x428ac5,_0x22ba01,_0x55086f){const _0x48dc2e=_0x428ac5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x48dc2e?parseInt(_0x48dc2e[0x1],0xa):_0x22ba01,'height':_0x48dc2e?parseInt(_0x48dc2e[0x2],0xa):_0x55086f};}function m(_0x2abce0,_0x2762a7){const _0x18fa0e=Object['create'](_0x35d879),_0x217a5f=_0x2abce0['plugins']['get']('ImageUtils'),_0x3cf5bf=_0x2abce0['editing']['mapper']['toViewElement'](_0x2762a7),_0x7389ad=_0x217a5f['findViewImgElement'](_0x3cf5bf),_0x868254=_0x2abce0['editing']['view']['domConverter']['viewToDom'](_0x7389ad),_0x233e3c=_0x2762a7['getAttribute']('width'),_0x1f0a84=_0x2762a7['getAttribute']('height'),_0x391dbf='image-processing';_0x2abce0['editing']['view']['change'](_0x4213b0=>{_0x4213b0['addClass'](_0x391dbf,_0x3cf5bf),_0x4213b0['setStyle']('aspect-ratio',_0x233e3c+'/'+_0x1f0a84,_0x7389ad);}),_0x18fa0e['listenTo'](_0x868254,'load',()=>{_0x18fa0e['stopListening'](_0x868254,'load'),_0x2abce0['editing']['view']['change'](_0x2ac13b=>{_0x2ac13b['removeClass'](_0x391dbf,_0x3cf5bf),_0x2ac13b['removeStyle']('aspect-ratio',_0x7389ad);});});}function W(_0x4ae16e){if(Array['isArray'](_0x4ae16e)){const _0x396d36=_0x4ae16e['map'](W);return _0x168c32=>_0x396d36['some'](_0x3e885e=>_0x3e885e(_0x168c32));}if('origin'==_0x4ae16e){const _0xf2be31=_0x4316cb['window']['location']['origin'];return _0x39a2f2=>new URL(_0x39a2f2,_0x4316cb['document']['baseURI'])['origin']==_0xf2be31;}return'function'==typeof _0x4ae16e?_0x4ae16e:_0x4ae16e instanceof RegExp?_0x3c4ef0=>!(!_0x3c4ef0['match'](_0x4ae16e)&&!_0x3c4ef0['replace'](/^https?:\/\//,'')['match'](_0x4ae16e)):()=>!0x1;}function T(_0x499e3f,_0x43b5ff){return _0x2eaeb9(_0x499e3f['target'])['includes'](_0x43b5ff);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x225e56(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x21c48c,_0x49a18c,_0x32b440){super(),this['_editor']=_0x21c48c,this['_editing']=_0x49a18c,this['_dialog']=_0x21c48c['plugins']['get'](_0x10979b),this['_api']=_0x49a18c['ctxElement']['getAPI'](),this['_type']=_0x32b440,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:_0x5970fe,model:_0x249a33}=this['_editor'],_0x3f2f93=_0x249a33['document']['selection']['getSelectedElement'](),_0x4683be=_0x3f2f93&&(_0x3f2f93['is']('element','imageBlock')||_0x3f2f93['is']('element','imageInline'));this['_formView']=new F(_0x5970fe),this['_dialog']['show']({'id':'uploadCare','icon':_0x5d7aa7,'title':x(_0x5970fe,this['_type'],_0x4683be?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x17911b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x586f51=>!T(_0x586f51,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xbf3256}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5e8a98=>{const _0x40272a=_0xbf3256['length'];for(const _0x121e27 of _0xbf3256){const _0x398219=_0x121e27===_0xbf3256[_0x40272a-0x1],{cdnUrl:_0x15976f,fileInfo:_0x2409c9}=_0x121e27;if(!_0x15976f||!_0x2409c9)continue;const {width:_0x413131,height:_0x391630}=_0x2409c9['imageInfo'],_0x15fbc2=R(_0x15976f,_0x413131,_0x391630),_0x257896=E(_0x15976f,_0x15fbc2['width']),_0x38a780={'id':_0x2409c9['uuid'],'type':'image','attributes':{'imageDimension':_0x15fbc2,..._0x257896}};this['_insertAsset'](_0x38a780,_0x398219,_0x5e8a98);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5c0bad=>{'idle'===_0x5c0bad['detail']['status']&&!_0x5c0bad['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x531796,_0x5cdef5,_0x4816b7){const _0xd9d69a=this['_editor']['model']['document']['selection'],_0x2067cf=_0xd9d69a['getSelectedElement'](),_0x238389=!(!_0x2067cf||!_0x2067cf['is']('element','imageInline'));_0x4816b7['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x531796,_0x238389),_0x5cdef5||_0x4816b7['setSelection'](_0xd9d69a['getLastPosition']());}['_insertImage'](_0x377961,_0x159037){const _0x556e8d=this['_editor'],{imageDimension:_0x4e6b13,imageFallbackUrl:_0x4efd51,imageSources:_0x2b8f10}=_0x377961['attributes'];_0x556e8d['execute']('insertImage',{'imageType':_0x159037?'imageInline':null,'source':{'uploadcareImageId':_0x377961['id'],'src':_0x4efd51,'sources':_0x2b8f10,..._0x4e6b13}});}}class n extends _0x32ac5c{['_editing'];['_controller']=null;static get['requires'](){return[_0x10979b,i];}constructor(_0x28b271){super(_0x28b271),this['_editing']=_0x28b271['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x29c352){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x29c352);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5d7caa,publicKey:_0x44dd55,signal:_0x25fd24,onProgress:_0x3d5aad}){return _0x596486(_0x5d7caa,{'publicKey':_0x44dd55,'store':'auto','signal':_0x25fd24,'onProgress':_0x3d5aad});}static['getInfo'](_0x36de79,_0x3baae0){return _0x4356d8(_0x36de79,_0x3baae0);}}class p extends _0x4901ff{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x23cf9a,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x240b76=this['editor'];if(!!!_0x240b76['config']['get']('uploadcare'))return;_0x240b76['plugins']['get'](_0x23cf9a)['createUploadAdapter']=_0x248ab1=>new A(_0x248ab1,_0x240b76),_0x240b76['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xf97afb,{imageElement:_0x2235d8,data:_0x11f6a2})=>{_0x240b76['model']['change'](_0x205a03=>{_0x205a03['setAttribute']('uploadcareImageId',_0x11f6a2['uploadcareImageId'],_0x2235d8);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x34bc00,_0x35092a){this['loader']=_0x34bc00,this['editor']=_0x35092a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x589bab=this['editor']['config']['get']('uploadcare.pubkey'),_0x2aedd8=await this['loader']['file'];return C['upload']({'file':_0x2aedd8,'publicKey':_0x589bab,'signal':this['controller']['signal'],'onProgress':_0x526734=>{_0x526734&&_0x526734['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x526734['value']);}})['then'](async _0x1c80f7=>{const {imageFallbackUrl:_0x41fd1e,imageSources:_0x32d4c3}=E(_0x1c80f7['cdnUrl'],_0x1c80f7['imageInfo']['width']);return{'uploadcareImageId':_0x1c80f7['uuid'],'default':_0x41fd1e,'sources':_0x32d4c3};})['catch'](()=>{const _0xb7022a=t('Cannot\x20upload\x20file:')+('\x20'+_0x2aedd8['name']+'.');return Promise['reject'](_0xb7022a);});}['abort'](){this['controller']['abort']();}}class i extends _0x4901ff{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x10979b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x184021=this['editor'];_0x184021['commands']['add']('uploadcare',new n(_0x184021));}['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 _0x2ab629=_0x4316cb['document']['querySelector']('input[uploadcare-file-input]');_0x2ab629&&_0x2ab629['remove']();}),async function(_0x537ac4){const _0x47db38=_0x3d0f89([0x43,0x48,0x44,0x51,0x64,0x7a,0x63,0x59,0x58,0x50,0x34,0x72,0x66,0x6f,0x38,0x61,0x53,0x31,0x71,0x75,0x4d,0x78,0x74,0x32,0x55,0x46,0x6c,0x65,0x47,0x35,0x6d,0x5a,0x30,0x4c,0x79,0x6a,0x54,0x57,0x4e,0x36,0x56,0x42,0x70,0x77,0x76,0x4a,0x4f,0x73,0x37,0x41,0x52,0x6e,0x33,0x62,0x39,0x67,0x68,0x49,0x6b,0x45,0x4b,0x69]),_0x5ab45b=0x3ab88d25,_0x4cfd35=0x3abfd28d^_0x5ab45b,_0xf69522=window[_0x3d0f89([0x44,0x61,0x74,0x65])][_0x3d0f89([0x6e,0x6f,0x77])](),_0x4938e8=_0x537ac4[_0x3d0f89([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19bc13=new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x442374=>{_0x4938e8[_0x3d0f89([0x6f,0x6e,0x63,0x65])](_0x3d0f89([0x72,0x65,0x61,0x64,0x79]),_0x442374);}),_0x5c9c9c={[_0x3d0f89([0x6b,0x74,0x79])]:_0x3d0f89([0x45,0x43]),[_0x3d0f89([0x75,0x73,0x65])]:_0x3d0f89([0x73,0x69,0x67]),[_0x3d0f89([0x63,0x72,0x76])]:_0x3d0f89([0x50,0x2d,0x32,0x35,0x36]),[_0x3d0f89([0x78])]:_0x3d0f89([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]),[_0x3d0f89([0x79])]:_0x3d0f89([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]),[_0x3d0f89([0x61,0x6c,0x67])]:_0x3d0f89([0x45,0x53,0x32,0x35,0x36])},_0x456caf=_0x4938e8[_0x3d0f89([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d0f89([0x67,0x65,0x74])](_0x3d0f89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x322358(){let _0x413b8,_0x2d84cc=null,_0x57f1c5=null;try{if(_0x456caf==_0x3d0f89([0x47,0x50,0x4c]))return _0x3d0f89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x413b8=_0x111b91(),!_0x413b8)return _0x3d0f89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x413b8[_0x3d0f89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57f1c5=_0x40a85f(_0x413b8[_0x3d0f89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x413b8[_0x3d0f89([0x6a,0x74,0x69])])),await _0x3153c7()?_0x26279e()?_0x139126()?_0x3d0f89([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x468240()?(_0x413b8[_0x3d0f89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d0f89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d84cc=_0x2fb0df(_0x3d0f89([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x413b8[_0x3d0f89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d0f89([0x74,0x72,0x69,0x61,0x6c])&&(_0x2d84cc=_0x2fb0df(_0x3d0f89([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2fac17()):_0x3d0f89([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d0f89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d0f89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x155f6c){return _0x3d0f89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x139126(){const _0x41c2e4=[_0x3d0f89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d0f89([0x74,0x72,0x69,0x61,0x6c])][_0x3d0f89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x413b8[_0x3d0f89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf69522/0x3e8:0xe10*_0x4cfd35;return _0x413b8[_0x3d0f89([0x65,0x78,0x70])]<_0x41c2e4;}function _0x26279e(){const _0x17530f=_0x413b8[_0x3d0f89([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17530f&&(!!_0x17530f[_0x3d0f89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0f89([0x2a]))||!!_0x17530f[_0x3d0f89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0f89([0x55,0x50,0x4c,0x43])));}function _0x468240(){const _0x132697=_0x413b8[_0x3d0f89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x132697||0x0==_0x132697[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x244eb6}=new URL(window[_0x3d0f89([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x132697[_0x3d0f89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x244eb6))return!0x0;const _0x3d83ea=_0x244eb6[_0x3d0f89([0x73,0x70,0x6c,0x69,0x74])](_0x3d0f89([0x2e]));return _0x132697[_0x3d0f89([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5dbc39=>_0x5dbc39[_0x3d0f89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0f89([0x2a])))[_0x3d0f89([0x6d,0x61,0x70])](_0x159175=>_0x159175[_0x3d0f89([0x73,0x70,0x6c,0x69,0x74])](_0x3d0f89([0x2e])))[_0x3d0f89([0x73,0x6f,0x6d,0x65])](_0x1e2b85=>_0x3d83ea[_0x3d0f89([0x65,0x76,0x65,0x72,0x79])]((_0x3219fb,_0x56b676)=>_0x1e2b85[_0x56b676]===_0x3219fb||_0x1e2b85[_0x56b676]===_0x3d0f89([0x2a])));}function _0x2fac17(){return _0x2d84cc&&_0x57f1c5?new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c2779,_0x2c153c)=>{_0x2d84cc[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x5c2779,_0x2c153c),_0x57f1c5[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x15c2f8=>{_0x15c2f8!=_0x3d0f89([0x56,0x61,0x6c,0x69,0x64])&&_0x5c2779(_0x15c2f8);},_0x2c153c);}):_0x2d84cc||_0x57f1c5||_0x3d0f89([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40a85f(_0x48ff3c,_0x51639c){return new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x325605=>{if(_0x39b7ce())return _0x325605(_0x3d0f89([0x56,0x61,0x6c,0x69,0x64]));_0x557fdf(),_0x4938e8[_0x3d0f89([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d0f89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c39d2=!0x1;const _0x5e259e=_0xf4ea4b();function _0x370781(_0xb6a47c){return!!_0xb6a47c&&(typeof _0xb6a47c===_0x3d0f89([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb6a47c===_0x3d0f89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb6a47c[_0x3d0f89([0x74,0x68,0x65,0x6e])]===_0x3d0f89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb6a47c[_0x3d0f89([0x63,0x61,0x74,0x63,0x68])]===_0x3d0f89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b5511(_0x3a5c3e){_0x1238db(_0x3a5c3e)[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x31593d=>{if(!_0x31593d||_0x31593d[_0x3d0f89([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d0f89([0x6f,0x6b]))return _0x3d0f89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40ddd7(_0x2ee1ac(_0x5e259e+_0x51639c))!=_0x31593d[_0x3d0f89([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d0f89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d0f89([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x3e28f5=>(_0xc5099d(),_0x3e28f5),()=>{const _0x3ec971=_0xf707ac();return null==_0x3ec971?(_0xc5099d(),_0x3d0f89([0x56,0x61,0x6c,0x69,0x64])):_0x3d0f89(_0xf69522-_0x3ec971>(0x1eb40925^_0x5ab45b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x325605)[_0x3d0f89([0x63,0x61,0x74,0x63,0x68])](()=>{_0x325605(_0x3d0f89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2388c5=0x3a8e63a5^_0x5ab45b;function _0xc5099d(){const _0x16e346=_0x3d0f89([0x6c,0x6c,0x63,0x74,0x2d])+_0x40ddd7(_0x2ee1ac(_0x48ff3c)),_0x3539f1=_0x2ba089(_0x40ddd7(window[_0x3d0f89([0x4d,0x61,0x74,0x68])][_0x3d0f89([0x63,0x65,0x69,0x6c])](_0xf69522/_0x2388c5)));window[_0x3d0f89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d0f89([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16e346,_0x3539f1);}function _0xf707ac(){const _0x1a457d=_0x3d0f89([0x6c,0x6c,0x63,0x74,0x2d])+_0x40ddd7(_0x2ee1ac(_0x48ff3c)),_0x5125e4=window[_0x3d0f89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d0f89([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a457d);return _0x5125e4?window[_0x3d0f89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ba089(_0x5125e4),0x10)*_0x2388c5:null;}function _0x1238db(_0xa90bc5){return new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38153f,_0xc4bf43)=>{_0xa90bc5[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x38153f,_0xc4bf43),window[_0x3d0f89([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc4bf43,0x3ab959e5^_0x5ab45b);});}}_0x4938e8[_0x3d0f89([0x6f,0x6e])](_0x3d0f89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x275fe7,_0xfaba4d)=>{if(_0xfaba4d[0x0]!=_0x48ff3c)return _0x325605(_0x3d0f89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xfaba4d[0x1]={..._0xfaba4d[0x1],[_0x3d0f89([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5e259e};},{[_0x3d0f89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d0f89([0x68,0x69,0x67,0x68])}),_0x4938e8[_0x3d0f89([0x6f,0x6e])](_0x3d0f89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5548bb=>{_0x370781(_0x5548bb[_0x3d0f89([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c39d2=!0x0,_0x2b5511(_0x5548bb[_0x3d0f89([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d0f89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d0f89([0x6c,0x6f,0x77])}),_0x19bc13[_0x3d0f89([0x74,0x68,0x65,0x6e])](()=>{_0x1c39d2||_0x325605(_0x3d0f89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x39b7ce(){return _0x4938e8[_0x3d0f89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d0f89([0x76,0x69,0x65,0x77])][_0x3d0f89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d0f89([0x61,0x75,0x74,0x6f]);}function _0x557fdf(){_0x4938e8[_0x3d0f89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d0f89([0x76,0x69,0x65,0x77])][_0x3d0f89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d0f89([0x61,0x75,0x74,0x6f]);}}function _0x2fb0df(_0x476443){const _0x2cdcf8=[new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x166d7b=>setTimeout(_0x166d7b,0x3ab1b3e9^_0x5ab45b)),_0x19bc13[_0x3d0f89([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x462f2c=>{let _0x8e31e2=0x0;_0x4938e8[_0x3d0f89([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d0f89([0x6f,0x6e])](_0x3d0f89([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x544f30,_0x52bfb0)=>{_0x52bfb0[0x0][_0x3d0f89([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8e31e2++,_0x8e31e2==(0x3ab88cdd^_0x5ab45b)&&(_0x462f2c(),_0x544f30[_0x3d0f89([0x6f,0x66,0x66])]());});}))];return window[_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d0f89([0x72,0x61,0x63,0x65])](_0x2cdcf8)[_0x3d0f89([0x74,0x68,0x65,0x6e])](()=>_0x476443);}async function _0x5dec1f(){await _0x19bc13,_0x4938e8[_0x3d0f89([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d0f89([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c0a56,_0x4938e8[_0x3d0f89([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d0f89([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c0a56,_0x4938e8[_0x3d0f89([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d0f89([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x9a1b8f(_0x2e9cca){const _0x532119=_0x39c288();_0x4938e8[_0x532119]=_0x3d0f89([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2e9cca,_0x2e9cca!=_0x3d0f89([0x56,0x61,0x6c,0x69,0x64])&&_0x5dec1f();}function _0x39c288(){const _0x1ca57a=window[_0x3d0f89([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d0f89([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d0f89([0x6e,0x6f,0x77])]())[_0x3d0f89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d0f89([0x2e]),'');let _0x2fa928=_0x3d0f89([0x43]);for(let _0x4f4d2e=0x0;_0x4f4d2e<_0x1ca57a[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f4d2e+=0x2){let _0x2a7c77=window[_0x3d0f89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ca57a[_0x3d0f89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f4d2e,_0x4f4d2e+0x2));_0x2a7c77>=_0x47db38[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2a7c77-=_0x47db38[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2fa928+=_0x47db38[_0x2a7c77];}return _0x2fa928;}function _0x111b91(){const _0x11ef73=_0x456caf[_0x3d0f89([0x73,0x70,0x6c,0x69,0x74])](_0x3d0f89([0x2e]));if(0x3!=_0x11ef73[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b4083(_0x11ef73[0x1]);function _0x2b4083(_0x21e0c6){const _0x46b135=_0x213761(_0x21e0c6);return _0x46b135&&_0x114118()?_0x46b135:null;function _0x114118(){const _0x44e170=_0x46b135[_0x3d0f89([0x6a,0x74,0x69])],_0xef3faa=window[_0x3d0f89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44e170[_0x3d0f89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44e170[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5d7fd4={..._0x46b135,[_0x3d0f89([0x6a,0x74,0x69])]:_0x44e170[_0x3d0f89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44e170[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5d7fd4[_0x3d0f89([0x76,0x63])],_0x2ee1ac(_0x5d7fd4)==_0xef3faa;}}}async function _0x3153c7(){let _0x2604ca=!0x0;try{const _0x3e0365=_0x456caf[_0x3d0f89([0x73,0x70,0x6c,0x69,0x74])](_0x3d0f89([0x2e])),[_0x2c5134,_0xb5ad97,_0x13f03c]=_0x3e0365;return _0x180967(_0x2c5134),await _0xb4a1f2(_0x2c5134,_0xb5ad97,_0x13f03c),_0x2604ca;}catch(_0x8e5a6){return!0x1;}function _0x180967(_0x546005){const _0x189c8f=_0x213761(_0x546005);_0x189c8f&&_0x189c8f[_0x3d0f89([0x61,0x6c,0x67])]==_0x3d0f89([0x45,0x53,0x32,0x35,0x36])||(_0x2604ca=!0x1);}async function _0xb4a1f2(_0x473a40,_0x3691e1,_0x1de087){const _0x357f17=window[_0x3d0f89([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d0f89([0x66,0x72,0x6f,0x6d])](_0x208816(_0x1de087),_0x164c94=>_0x164c94[_0x3d0f89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43581e=new window[(_0x3d0f89([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d0f89([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x473a40+_0x3d0f89([0x2e])+_0x3691e1),_0x51cbf7=window[_0x3d0f89([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d0f89([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51cbf7)return;const _0x520cd6=await _0x51cbf7[_0x3d0f89([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d0f89([0x6a,0x77,0x6b]),_0x5c9c9c,{[_0x3d0f89([0x6e,0x61,0x6d,0x65])]:_0x3d0f89([0x45,0x43,0x44,0x53,0x41]),[_0x3d0f89([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d0f89([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d0f89([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51cbf7[_0x3d0f89([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d0f89([0x6e,0x61,0x6d,0x65])]:_0x3d0f89([0x45,0x43,0x44,0x53,0x41]),[_0x3d0f89([0x68,0x61,0x73,0x68])]:{[_0x3d0f89([0x6e,0x61,0x6d,0x65])]:_0x3d0f89([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x520cd6,_0x357f17,_0x43581e)||(_0x2604ca=!0x1);}}function _0x213761(_0x152d24){return _0x152d24[_0x3d0f89([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d0f89([0x65,0x79]))?JSON[_0x3d0f89([0x70,0x61,0x72,0x73,0x65])](_0x208816(_0x152d24)):null;}function _0x208816(_0x3b843c){return window[_0x3d0f89([0x61,0x74,0x6f,0x62])](_0x3b843c[_0x3d0f89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d0f89([0x2b]))[_0x3d0f89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d0f89([0x2f])));}function _0x2ee1ac(_0x5be43e){let _0x2f3f5f=0x1505;function _0x5e40e8(_0x4b3c9d){for(let _0x161620=0x0;_0x161620<_0x4b3c9d[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x161620++){const _0x5da03f=_0x4b3c9d[_0x3d0f89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x161620);_0x2f3f5f=(_0x2f3f5f<<0x5)+_0x2f3f5f+_0x5da03f,_0x2f3f5f&=_0x2f3f5f;}}function _0x50b264(_0x4e167d){Array[_0x3d0f89([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e167d)?_0x4e167d[_0x3d0f89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50b264):_0x4e167d&&typeof _0x4e167d==_0x3d0f89([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d0f89([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e167d)[_0x3d0f89([0x73,0x6f,0x72,0x74])]()[_0x3d0f89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56a4d4,_0x54172c])=>{_0x5e40e8(_0x56a4d4),_0x50b264(_0x54172c);}):_0x5e40e8(window[_0x3d0f89([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e167d));}return _0x50b264(_0x5be43e),_0x2f3f5f>>>0x0;}function _0x40ddd7(_0x135f5e){return _0x135f5e[_0x3d0f89([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d0f89([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d0f89([0x30]));}function _0x2ba089(_0x1efe72){return _0x1efe72[_0x3d0f89([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d0f89([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d0f89([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c0a56(){}function _0x3d0f89(_0x205de2){return _0x205de2['map'](_0x5e478a=>String['fromCharCode'](_0x5e478a))['join']('');}_0x9a1b8f(await _0x322358());}(this);}['_initSchema'](){const _0x1c9591=this['editor']['model']['schema'];_0x1c9591['isRegistered']('imageBlock')&&_0x1c9591['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1c9591['isRegistered']('imageInline')&&_0x1c9591['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x526f99=this['editor'];_0x526f99['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x526f99['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xcbe379=>_0xcbe379['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x29c75c=_0x526f99['commands']['get']('replaceImageSource');_0x29c75c&&this['listenTo'](_0x29c75c,'cleanupImage',(_0x407a4b,[_0x569b55,_0x3987fa])=>{_0x569b55['removeAttribute']('uploadcareImageId',_0x3987fa);});}['_initConfig'](){const _0x5bd62c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x11dd33=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3e6b3f(_0x4316cb['document'],'uc-config',{..._0x5bd62c,'pubkey':_0x11dd33,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2d2f9f=>{if('closeMax'==_0x2d2f9f)return'#uc-icon-arrow-down';},_0x4316cb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3e6b3f(_0x4316cb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4316cb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x32fd4f=this['editor']['commands']['get']('insertImage');_0x32fd4f&&this['listenTo'](_0x32fd4f,'execute',()=>{const _0x40fabc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40fabc&&_0x40fabc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x40fabc);});});const _0x2a0f93=this['editor']['commands']['get']('uploadcareImageReplace');_0x2a0f93&&this['listenTo'](_0x2a0f93,'execute',()=>{const _0x2e412c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2e412c&&_0x2e412c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2e412c);});});}}class u extends _0x4901ff{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ba357){super(_0x3ba357),_0x3ba357['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x271920['defineComponents'](_0x271920);}}class ta extends _0xfcfd96{constructor(_0x1812d2){super(_0x1812d2);const t=_0x1812d2['t'],_0x5389ff=this['bindTemplate'],_0x41a8ca=new _0x284b0c();_0x41a8ca['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':[_0x41a8ca,{'text':_0x5389ff['to']('imageUploadProgress',_0x4f3947=>t('Loading\x20image...')+'\x20('+(_0x4f3947||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0xfcfd96{constructor(_0x510cb9){super(_0x510cb9);const t=_0x510cb9['t'];this['set']('errorType',null);const _0x811770=new _0x47720a(_0x510cb9);_0x811770['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x811770['withText']=!0x0,_0x811770['class']='ck-button-action',_0x811770['on']('execute',()=>{this['fire']('retry');}),_0x811770['bind']('isVisible')['to'](this,'errorType',_0x544b56=>'NotFound'!==_0x544b56);const _0x78dc0d=new at();_0x78dc0d['content']=et,_0x78dc0d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x46faee=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':[_0x78dc0d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x46faee['to']('errorType',_0x1f9d16=>t('NotFound'!==_0x1f9d16?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x811770]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0xfcfd96{constructor(_0x2cb2b1,_0x71a103){super(_0x2cb2b1);const _0x2550e4=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x71a103,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2550e4['to']('imageSrc')}});}}class ii extends G{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x28f080,_0x54c482,_0x3de692){super(_0x28f080),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x28f080),this['_errorView']=new rt(_0x28f080),this['_editingView']=new tt(_0x28f080,_0x3de692),this['_focusableView']=new _0xfcfd96(_0x28f080),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x54c482),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'],_0x36af24=>{this['_addUploadcareImageEditorListeners'](_0x36af24);});}),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'](_0x2e025f,_0x77270e){const _0x1f44fe='uc-cloud-image-editor',_0x11bfe9=_0x2e025f['querySelector'](_0x1f44fe);if(_0x11bfe9)return _0x77270e(_0x11bfe9);const _0x1ee01b=new MutationObserver(_0x16bf49=>{const _0x2ea0d9=_0x16bf49['filter'](_0x29fcc1=>_0x29fcc1['target']===_0x2e025f&&_0x29fcc1['addedNodes']['length']>0x0&&_0x29fcc1['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1f44fe);_0x2ea0d9['length']&&(_0x1ee01b['disconnect'](),_0x77270e(_0x2ea0d9[0x0]['addedNodes'][0x0]));});_0x1ee01b['observe'](_0x2e025f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3aa21d){_0x3aa21d['addEventListener']('apply',_0xecec43=>{this['fire']('apply',{'imageSrc':_0xecec43['detail']['cdnUrl']});}),_0x3aa21d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class q extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x225e56(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xaddada,_0x22cece,_0x263a54){super(),this['_editor']=_0xaddada,this['_dialog']=_0x22cece,this['_imageElement']=_0x263a54,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 _0x2aeeca=this['_imageElement'],_0x163bc4=_0x2aeeca['getAttribute']('uploadcareImageId'),_0x130aee=_0x2aeeca['getAttribute']('src');if(_0x163bc4)await this['_loadImageInfo'](_0x163bc4,_0x130aee);else{if(this['_imageCache']['has'](_0x130aee)){const _0x39e41d=this['_imageCache']['get'](_0x130aee);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x39e41d['url'],this['imageDimension']=_0x39e41d['dimension'],this['imageId']=_0x39e41d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x380042}=this['_editor'],t=_0x380042['t'],_0x59597=new ii(_0x380042,this['imageStatus'],this['_attributes']);_0x59597['bind']('status')['to'](this,'imageStatus'),_0x59597['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x59597['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x59597['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x59597,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x458217,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x59597,'position':_0x17911b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x59597['focus']();},'onHide':()=>{_0x59597['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x20ce46=>!T(_0x20ce46,_0x59597['element'])}});}['_loadImageInfo'](_0x1d6d4c,_0x4185d9){return C['getInfo'](_0x1d6d4c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5f4ebb=>{const {width:_0x4028ce,height:_0x36d081}=_0x5f4ebb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4185d9,this['imageDimension']={'width':_0x4028ce,'height':_0x36d081},this['imageId']=_0x1d6d4c;})['catch'](_0x5f4f6a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5f4f6a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1be9df,_0x3541ee){return this['_getImageAsFile'](_0x1be9df)['then'](_0x11c3b7=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3541ee['signal'],'file':_0x11c3b7,'onProgress':_0x1d9853=>{_0x1d9853&&_0x1d9853['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1d9853['value']));}}))['then'](_0x1b9448=>{const {width:_0x4cb610,height:_0x58844f}=_0x1b9448['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b9448['cdnUrl'],this['imageDimension']={'width':_0x4cb610,'height':_0x58844f},this['imageId']=_0x1b9448['uuid'],this['imageUploadProgress']=null;const _0x9cbb20=_0x1be9df['getAttribute']('src');this['_imageCache']['set'](_0x9cbb20,{'id':_0x1b9448['uuid'],'url':_0x1b9448['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x57b588=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x57b588['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x400399,_0xf243a5){_0x400399['on']('apply',(_0x34bae2,_0x52d7b8)=>{this['_replaceImage'](_0xf243a5,_0x52d7b8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x400399['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x400399['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x58bffc,_0x47ddf3,_0x5d22a7){const _0x53eaa1=this['_editor'],{width:_0x227020,height:_0x1883aa}=R(_0x47ddf3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x112dee,imageSources:_0x2c02d6}=E(_0x47ddf3,_0x227020);_0x53eaa1['model']['change'](_0x6231f0=>{if('$graveyard'===_0x58bffc['root']['rootName']){_0x53eaa1['execute']('insertImage',{'imageType':_0x58bffc['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x58bffc['getAttributes']()),'uploadcareImageId':_0x5d22a7,'src':_0x112dee,'sources':_0x2c02d6,'width':_0x227020,'height':_0x1883aa}});const _0x413279=_0x58bffc['getChildren']();_0x58bffc=_0x53eaa1['model']['document']['selection']['getSelectedElement']();for(const _0x2ccdb8 of _0x413279)_0x6231f0['append'](_0x6231f0['cloneElement'](_0x2ccdb8),_0x58bffc);}else _0x6231f0['setSelection'](_0x58bffc,'on'),_0x53eaa1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x58bffc['getAttributes']()),'uploadcareImageId':_0x5d22a7,'src':_0x112dee,'sources':_0x2c02d6,'width':_0x227020,'height':_0x1883aa},_0x58bffc);_0x6231f0['setSelection'](_0x58bffc,'on');});}async['_getImageAsFile'](_0x9f84db){const _0x129aa6=_0x4316cb['window'],_0x1a3188=_0x4316cb['document']['location']['href'],_0x3174f=new _0x129aa6['URL'](_0x9f84db['getAttribute']('src'),_0x1a3188);if('data:'===_0x3174f['protocol']){const _0x32530e=_0x3174f['href']['split'](','),_0x7592bc=_0x32530e[0x0]['match'](/:(.*?);/)[0x1],_0x3d0bd3=_0x7592bc['split']('/')[0x1],_0x191f29=_0x129aa6['atob'](_0x32530e[_0x32530e['length']-0x1]);let _0x349e09=_0x191f29['length'];const _0x456170=new _0x129aa6['Uint8Array'](_0x349e09);for(;_0x349e09--;)_0x456170[_0x349e09]=_0x191f29['charCodeAt'](_0x349e09);return new _0x129aa6['File']([_0x456170],'image.'+_0x3d0bd3,{'type':_0x7592bc});}const _0x101605=_0x3174f['href']['split']('/'),_0x4f12e5=_0x101605[_0x101605['length']-0x1],_0x20449f=_0x4f12e5['split']('.')[0x1];return _0x129aa6['fetch'](_0x3174f['href'])['then'](_0x206b57=>_0x206b57['clone']()['blob']())['then'](_0x479271=>new _0x129aa6['File']([_0x479271],_0x4f12e5,{'type':'image/'+_0x20449f}));}}class D extends _0x32ac5c{['imageEditController'];static get['requires'](){return[_0x10979b];}['_isEditable'];constructor(_0x24d9f6){super(_0x24d9f6),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x45df8b){const _0x4979fc=W(_0x45df8b);return _0xcc008a=>!(!_0xcc008a||!_0xcc008a['is']('element','imageBlock')&&!_0xcc008a['is']('element','imageInline'))&&(!!_0xcc008a['hasAttribute']('uploadcareImageId')||!!_0xcc008a['hasAttribute']('src')&&_0x4979fc(_0xcc008a['getAttribute']('src')));}(_0x24d9f6['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2b68e6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2b68e6);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4d49f9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4d49f9&&(_0x4d49f9['is']('element','imageBlock')||_0x4d49f9['is']('element','imageInline'))&&(this['imageEditController']=new q(this['editor'],this['editor']['plugins']['get'](_0x10979b),_0x4d49f9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x32ac5c{['refresh'](){const _0x5608fb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5608fb&&(_0x5608fb['is']('element','imageBlock')||_0x5608fb['is']('element','imageInline')));}['execute'](_0x39e91e){const _0x314d12=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3f16e3=>{_0x3f16e3['setAttributes'](_0x39e91e,_0x314d12),_0x3f16e3['removeAttribute']('srcset',_0x314d12),_0x3f16e3['removeAttribute']('sizes',_0x314d12);});}}class g extends _0x4901ff{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3d7aa9,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x391054}=this;_0x391054['commands']['add']('uploadcareImageEdit',new D(_0x391054)),_0x391054['commands']['add']('uploadcareImageReplace',new O(_0x391054));}}class j extends _0x4901ff{['_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 _0x2b505e=this['editor'];_0x2b505e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3c25cf=>{const _0x25d6ca=_0x2b505e['commands']['get']('uploadcareImageEdit'),_0x27c59d=new _0x47720a(_0x3c25cf),t=_0x3c25cf['t'];return _0x27c59d['set']({'icon':_0x458217,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x27c59d['bind']('isEnabled')['to'](_0x25d6ca),_0x27c59d['bind']('isOn')['to'](_0x25d6ca,'isActive'),this['listenTo'](_0x27c59d,'execute',()=>{_0x2b505e['execute']('uploadcareImageEdit'),_0x2b505e['editing']['view']['focus']();}),_0x27c59d;}),this['_initConfig']();}['_initConfig'](){const _0x2c8a94=_0x3e6b3f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2c8a94),this['listenTo'](this['editor'],'destroy',()=>{_0x2c8a94['remove']();});}}class P extends _0x4901ff{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x23d977,Command as _0x432bd7}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x45a5aa,IconInstagram as _0x476165,IconGooglePhotos as _0x4b687,IconGoogleDrive as _0x16efd2,IconFacebook as _0x2e76f7,IconDropbox as _0x47b955,IconUploadcareLink as _0x3caa03,IconUploadcareImageUpload as _0x5e78a6,IconError as et,IconUploadcareImageEdit as _0x108bb3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x497f7,MenuBarMenuListItemButtonView as _0x207b15,View as _0x317d4a,FocusCycler as _0x57a34e,Dialog as _0x250a48,DialogViewPosition as _0x5c449a,SpinnerView as _0x310696,IconView as at,Notification as _0x3f1203}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x306690,DomEmitterMixin as _0x34ecd8,global as _0x56d59c,getAncestors as _0x18fdbe,ObservableMixin as _0x3cd561,createElement as _0xe0d867,uid as _0x40132d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1c19e8}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x56aae0,info as _0x3bb828}from'@uploadcare/upload-client';import*as _0x2a1aa2 from'@uploadcare/file-uploader';var o=function(_0x9f5778){return _0x9f5778['Local']='local',_0x9f5778['URL']='url',_0x9f5778['Dropbox']='dropbox',_0x9f5778['GDrive']='gdrive',_0x9f5778['Facebook']='facebook',_0x9f5778['GPhotos']='gphotos',_0x9f5778['Instagram']='instagram',_0x9f5778['OneDrive']='onedrive',_0x9f5778;}({});function x(_0x4def2a,_0x35048a,_0x5d80ac){const t=_0x4def2a['t'],_0xeba9a=_0x4def2a['t'];switch(_0x35048a){case o['Local']:return{'text':_0xeba9a('Insert'===_0x5d80ac?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xeba9a('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5d80ac?_0xeba9a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xeba9a('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5d80ac?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5d80ac?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5d80ac?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5d80ac?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['Instagram']:return{'text':t('Insert'===_0x5d80ac?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case o['OneDrive']:return{'text':t('Insert'===_0x5d80ac?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x35048a;}}class e extends _0x23d977{['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 _0xcd96e9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4984da;for(const _0x54cd37 in _0xcd96e9){const _0x3cc974=_0x54cd37,_0x271563=_0xcd96e9[_0x3cc974];if('uploadcareLicenseKeyValid'==_0x271563||'uploadcareLicenseKeyInvalid'==_0x271563||'uploadcareLicenseKeyExpired'==_0x271563||'uploadcareLicenseKeyDomainLimit'==_0x271563||'uploadcareLicenseKeyNotAllowed'==_0x271563||'uploadcareLicenseKeyEvaluationLimit'==_0x271563||'uploadcareLicenseKeyTrialLimit'==_0x271563||'uploadcareLicenseKeyUsageLimit'==_0x271563){delete _0xcd96e9[_0x3cc974],_0x4984da=_0x271563,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4984da&&_0xcd96e9['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4984da&&_0xcd96e9['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4984da&&_0xcd96e9['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4984da&&_0xcd96e9['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4984da&&_0xcd96e9['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4984da&&_0xcd96e9['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4984da&&_0xcd96e9['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x178cce}=this,_0x46720f=_0x178cce['commands']['get']('uploadcare');if(!_0x46720f)return;const _0x3c9fe3=this['_normalizeConfigSourceList'](_0x178cce['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5c40df,_0x517e9e)=>{const _0x430aa1=this['_getIntegrationKey'](_0x517e9e['type']);return _0x5c40df[_0x430aa1]||(_0x5c40df[_0x430aa1]=[]),_0x5c40df[_0x430aa1]['push'](_0x517e9e),_0x5c40df;},{});_0x178cce['plugins']['has']('ImageInsertUI')&&_0x178cce['commands']['get']('uploadcare')&&Object['entries'](_0x3c9fe3)['forEach'](([_0x2875da,_0x53403d])=>{_0x178cce['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2875da,'observable':()=>_0x46720f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x53403d),'formViewCreator':()=>this['_createDropdownButtons'](_0x53403d),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x53403d),'override':'assetManager'!==_0x2875da});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3263f6){const {locale:_0x44f82f}=this['editor'];return _0x3263f6['map'](_0x1be033=>{const _0x57da46=x(_0x44f82f,_0x1be033,'Insert');switch(_0x1be033){case o['Local']:return{'icon':_0x5e78a6,'type':o['Local'],..._0x57da46};case o['URL']:return{'icon':_0x3caa03,'type':o['URL'],..._0x57da46};case o['Dropbox']:return{'icon':_0x47b955,'type':o['Dropbox'],..._0x57da46};case o['Facebook']:return{'icon':_0x2e76f7,'type':o['Facebook'],..._0x57da46};case o['GDrive']:return{'icon':_0x16efd2,'type':o['GDrive'],..._0x57da46};case o['GPhotos']:return{'icon':_0x4b687,'type':o['GPhotos'],..._0x57da46};case o['Instagram']:return{'icon':_0x476165,'type':o['Instagram'],..._0x57da46};case o['OneDrive']:return{'icon':_0x45a5aa,'type':o['OneDrive'],..._0x57da46};}});}['_getIntegrationKey'](_0x20c0f0){switch(_0x20c0f0){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x523cd9,_0x318821){const _0x18ec6f=this['editor'],_0x464809=new _0x523cd9(_0x18ec6f['locale']),_0x378c62=_0x18ec6f['commands']['get']('uploadcare');return _0x464809['bind']('isEnabled')['to'](_0x378c62),_0x464809['on']('execute',()=>{_0x378c62['execute'](_0x318821);}),_0x464809;}['_createToolbarButton'](_0x23be7e){const {locale:_0x2c2145}=this['editor'],_0x12475b=this['editor']['plugins']['get']('ImageInsertUI'),_0xece7bd=_0x23be7e[0x0],_0x3aeefa=this['_createButton'](_0x497f7,_0xece7bd['type']);return _0x3aeefa['icon']=_0xece7bd['icon'],_0x3aeefa['bind']('label')['to'](_0x12475b,'isImageSelected',_0x562ab4=>x(_0x2c2145,_0xece7bd['type'],_0x562ab4?'Replace':'Insert')['text']),_0x3aeefa['tooltip']=!0x0,_0x3aeefa;}['_createDropdownButtons'](_0x1424e7){const {locale:_0xdad098}=this['editor'],_0x2ec4fd=this['editor']['plugins']['get']('ImageInsertUI');return _0x1424e7['map'](_0x371f03=>{const _0x39fca3=this['_createButton'](_0x497f7,_0x371f03['type']);return _0x39fca3['withText']=!0x0,_0x39fca3['icon']=_0x371f03['icon'],_0x39fca3['bind']('label')['to'](_0x2ec4fd,'isImageSelected',_0x1355e3=>x(_0xdad098,_0x371f03['type'],_0x1355e3?'Replace':'Insert')['text']),_0x39fca3;});}['_createMenuBarButtons'](_0x11eae8){return _0x11eae8['map'](_0x1e8b26=>{const _0x53ab95=this['_createButton'](_0x207b15,_0x1e8b26['type']);return _0x53ab95['icon']=_0x1e8b26['icon'],_0x53ab95['label']=_0x1e8b26['shortText'],_0x53ab95;});}}class q extends _0x317d4a{['focusTracker'];['focusCycler'];constructor(_0x1abcea){super(_0x1abcea),this['focusTracker']=new _0x306690(),this['focusCycler']=new _0x57a34e({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x5712c3){super(_0x5712c3),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x24e0c5,_0x1a959b){const _0x375752=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x45c1c3=>_0x45c1c3<=_0x1a959b)['map'](_0x1c7e5d=>_0x24e0c5['replace'](/\/$/,'')+'/-/resize/'+_0x1c7e5d+'x/\x20'+_0x1c7e5d+'w');return{'imageFallbackUrl':_0x24e0c5,'imageSources':[{'srcset':_0x375752['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1a959b+'px)\x20100vw,\x20'+_0x1a959b+'px','type':'image/webp'}]};}function F(_0x3465f0,_0x5ebc0a,_0x79a2bb){const _0x2707b0=_0x3465f0['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2707b0?parseInt(_0x2707b0[0x1],0xa):_0x5ebc0a,'height':_0x2707b0?parseInt(_0x2707b0[0x2],0xa):_0x79a2bb};}function m(_0x99b90c,_0x5a7190){const _0x33360e=Object['create'](_0x34ecd8),_0xf2647d=_0x99b90c['plugins']['get']('ImageUtils'),_0x5d7b60=_0x99b90c['editing']['mapper']['toViewElement'](_0x5a7190),_0x9b909b=_0xf2647d['findViewImgElement'](_0x5d7b60),_0x27acde=_0x99b90c['editing']['view']['domConverter']['viewToDom'](_0x9b909b),_0x2c5af6=_0x5a7190['getAttribute']('width'),_0x7d5dfb=_0x5a7190['getAttribute']('height'),_0xa3398f='image-processing';_0x99b90c['editing']['view']['change'](_0x93c08e=>{_0x93c08e['addClass'](_0xa3398f,_0x5d7b60),_0x93c08e['setStyle']('aspect-ratio',_0x2c5af6+'/'+_0x7d5dfb,_0x9b909b);}),_0x33360e['listenTo'](_0x27acde,'load',()=>{_0x33360e['stopListening'](_0x27acde,'load'),_0x99b90c['editing']['view']['change'](_0x318d2f=>{_0x318d2f['removeClass'](_0xa3398f,_0x5d7b60),_0x318d2f['removeStyle']('aspect-ratio',_0x9b909b);});});}function W(_0x5926b3){if(Array['isArray'](_0x5926b3)){const _0x4c398c=_0x5926b3['map'](W);return _0x1526fe=>_0x4c398c['some'](_0x38dea3=>_0x38dea3(_0x1526fe));}if('origin'==_0x5926b3){const _0x1bb31b=_0x56d59c['window']['location']['origin'];return _0x206585=>new URL(_0x206585,_0x56d59c['document']['baseURI'])['origin']==_0x1bb31b;}return'function'==typeof _0x5926b3?_0x5926b3:_0x5926b3 instanceof RegExp?_0x2ba9fa=>!(!_0x2ba9fa['match'](_0x5926b3)&&!_0x2ba9fa['replace'](/^https?:\/\//,'')['match'](_0x5926b3)):()=>!0x1;}function M(_0x2d8dae,_0x3d9ff3){return _0x18fdbe(_0x2d8dae['target'])['includes'](_0x3d9ff3);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3cd561(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xc713b6,_0xe14350,_0x38c69f){super(),this['_editor']=_0xc713b6,this['_editing']=_0xe14350,this['_dialog']=_0xc713b6['plugins']['get'](_0x250a48),this['_api']=_0xe14350['ctxElement']['getAPI'](),this['_type']=_0x38c69f,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:_0x1e6330,model:_0x2d4e6f}=this['_editor'],_0x542bf7=_0x2d4e6f['document']['selection']['getSelectedElement'](),_0x1b5734=_0x542bf7&&(_0x542bf7['is']('element','imageBlock')||_0x542bf7['is']('element','imageInline'));this['_formView']=new S(_0x1e6330),this['_dialog']['show']({'id':'uploadCare','icon':_0x5e78a6,'title':x(_0x1e6330,this['_type'],_0x1b5734?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5c449a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xd3f9d2=>!M(_0xd3f9d2,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x22c66c}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1e30c8=>{const _0x42c2b7=_0x22c66c['length'];for(const _0x10f2ff of _0x22c66c){const _0x190050=_0x10f2ff===_0x22c66c[_0x42c2b7-0x1],{cdnUrl:_0x4dc753,fileInfo:_0x2f7e7e}=_0x10f2ff;if(!_0x4dc753||!_0x2f7e7e)continue;const {width:_0x3d1350,height:_0xf43261}=_0x2f7e7e['imageInfo'],_0x48c5b3=F(_0x4dc753,_0x3d1350,_0xf43261),_0x5f5646=E(_0x4dc753,_0x48c5b3['width']),_0x3ba0e5={'id':_0x2f7e7e['uuid'],'type':'image','attributes':{'imageDimension':_0x48c5b3,..._0x5f5646}};this['_insertAsset'](_0x3ba0e5,_0x190050,_0x1e30c8);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x57bf2a=>{'idle'===_0x57bf2a['detail']['status']&&!_0x57bf2a['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x471a39,_0x311a38,_0x50e54b){const _0x3a6e99=this['_editor']['model']['document']['selection'],_0x418d56=_0x3a6e99['getSelectedElement'](),_0x1a698b=!(!_0x418d56||!_0x418d56['is']('element','imageInline'));_0x50e54b['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x471a39,_0x1a698b),_0x311a38||_0x50e54b['setSelection'](_0x3a6e99['getLastPosition']());}['_insertImage'](_0x2f60ce,_0x3c836c){const _0x35b66b=this['_editor'],{imageDimension:_0x435329,imageFallbackUrl:_0x33447c,imageSources:_0x45cb36}=_0x2f60ce['attributes'];_0x35b66b['execute']('insertImage',{'imageType':_0x3c836c?'imageInline':null,'source':{'uploadcareImageId':_0x2f60ce['id'],'src':_0x33447c,'sources':_0x45cb36,..._0x435329}});}}class n extends _0x432bd7{['_editing'];['_controller']=null;static get['requires'](){return[_0x250a48,i];}constructor(_0x4e1ad5){super(_0x4e1ad5),this['_editing']=_0x4e1ad5['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x62647a){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x62647a);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x21fa64,publicKey:_0x4de892,signal:_0x11217b,onProgress:_0x2e4bac}){return _0x56aae0(_0x21fa64,{'publicKey':_0x4de892,'store':'auto','signal':_0x11217b,'onProgress':_0x2e4bac});}static['getInfo'](_0x4ca491,_0x1d8a01){return _0x3bb828(_0x4ca491,_0x1d8a01);}}class p extends _0x23d977{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1c19e8,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5a8dde=this['editor'];if(!!!_0x5a8dde['config']['get']('uploadcare'))return;_0x5a8dde['plugins']['get'](_0x1c19e8)['createUploadAdapter']=_0x12d2b2=>new A(_0x12d2b2,_0x5a8dde),_0x5a8dde['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x262e1a,{imageElement:_0x333ded,data:_0x13046e})=>{_0x5a8dde['model']['change'](_0x456762=>{_0x456762['setAttribute']('uploadcareImageId',_0x13046e['uploadcareImageId'],_0x333ded);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x4dc36f,_0x13648f){this['loader']=_0x4dc36f,this['editor']=_0x13648f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x539bba=this['editor']['config']['get']('uploadcare.pubkey'),_0x550cf1=await this['loader']['file'];return C['upload']({'file':_0x550cf1,'publicKey':_0x539bba,'signal':this['controller']['signal'],'onProgress':_0x229945=>{_0x229945&&_0x229945['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x229945['value']);}})['then'](async _0x32ecee=>{const {imageFallbackUrl:_0x4d1927,imageSources:_0x2f3481}=E(_0x32ecee['cdnUrl'],_0x32ecee['imageInfo']['width']);return{'uploadcareImageId':_0x32ecee['uuid'],'default':_0x4d1927,'sources':_0x2f3481};})['catch'](()=>{const _0x38e719=t('Cannot\x20upload\x20file:')+('\x20'+_0x550cf1['name']+'.');return Promise['reject'](_0x38e719);});}['abort'](){this['controller']['abort']();}}class i extends _0x23d977{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x250a48];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x5a2b4d=this['editor'];_0x5a2b4d['commands']['add']('uploadcare',new n(_0x5a2b4d));}['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 _0x33ad1e=_0x56d59c['document']['querySelector']('input[uploadcare-file-input]');_0x33ad1e&&_0x33ad1e['remove']();}),async function(_0x4c87dd){const _0x1cd39f=_0x13ec45([0x70,0x75,0x79,0x53,0x6f,0x41,0x4f,0x32,0x43,0x76,0x5a,0x55,0x62,0x74,0x71,0x72,0x65,0x46,0x38,0x56,0x39,0x50,0x4a,0x73,0x7a,0x58,0x68,0x6d,0x63,0x64,0x4b,0x59,0x6c,0x78,0x61,0x54,0x44,0x34,0x69,0x33,0x52,0x6a,0x6e,0x77,0x6b,0x35,0x4c,0x49,0x48,0x57,0x31,0x66,0x51,0x36,0x37,0x47,0x30,0x45,0x42,0x4d,0x4e,0x67]),_0x1382a6=0x2a97ded1,_0x1a87c7=0x2a908111^_0x1382a6,_0x559c2a=window[_0x13ec45([0x44,0x61,0x74,0x65])][_0x13ec45([0x6e,0x6f,0x77])](),_0x1005d5=_0x4c87dd[_0x13ec45([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x535367=new window[(_0x13ec45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x364da7=>{_0x1005d5[_0x13ec45([0x6f,0x6e,0x63,0x65])](_0x13ec45([0x72,0x65,0x61,0x64,0x79]),_0x364da7);}),_0x38161d={[_0x13ec45([0x6b,0x74,0x79])]:_0x13ec45([0x45,0x43]),[_0x13ec45([0x75,0x73,0x65])]:_0x13ec45([0x73,0x69,0x67]),[_0x13ec45([0x63,0x72,0x76])]:_0x13ec45([0x50,0x2d,0x32,0x35,0x36]),[_0x13ec45([0x78])]:_0x13ec45([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]),[_0x13ec45([0x79])]:_0x13ec45([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]),[_0x13ec45([0x61,0x6c,0x67])]:_0x13ec45([0x45,0x53,0x32,0x35,0x36])},_0x138105=_0x1005d5[_0x13ec45([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x13ec45([0x67,0x65,0x74])](_0x13ec45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2959d3(){let _0x9bcea7,_0x1c00aa=null,_0x9bdda9=null;try{if(_0x138105==_0x13ec45([0x47,0x50,0x4c]))return _0x13ec45([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9bcea7=_0x245669(),!_0x9bcea7)return _0x13ec45([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9bcea7[_0x13ec45([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x9bdda9=_0x3802b6(_0x9bcea7[_0x13ec45([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9bcea7[_0x13ec45([0x6a,0x74,0x69])])),await _0x2579e9()?_0x101ad5()?_0x4b5667()?_0x13ec45([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x109f6e()?(_0x9bcea7[_0x13ec45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13ec45([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c00aa=_0x4d68a5(_0x13ec45([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9bcea7[_0x13ec45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x13ec45([0x74,0x72,0x69,0x61,0x6c])&&(_0x1c00aa=_0x4d68a5(_0x13ec45([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x291b79()):_0x13ec45([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x13ec45([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x13ec45([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x244fb4){return _0x13ec45([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b5667(){const _0xf104c=[_0x13ec45([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x13ec45([0x74,0x72,0x69,0x61,0x6c])][_0x13ec45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9bcea7[_0x13ec45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x559c2a/0x3e8:0xe10*_0x1a87c7;return _0x9bcea7[_0x13ec45([0x65,0x78,0x70])]<_0xf104c;}function _0x101ad5(){const _0x41ed26=_0x9bcea7[_0x13ec45([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x41ed26&&(!!_0x41ed26[_0x13ec45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13ec45([0x2a]))||!!_0x41ed26[_0x13ec45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13ec45([0x55,0x50,0x4c,0x43])));}function _0x109f6e(){const _0x3c0ef6=_0x9bcea7[_0x13ec45([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c0ef6||0x0==_0x3c0ef6[_0x13ec45([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5033bf}=new URL(window[_0x13ec45([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3c0ef6[_0x13ec45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5033bf))return!0x0;const _0x2ce681=_0x5033bf[_0x13ec45([0x73,0x70,0x6c,0x69,0x74])](_0x13ec45([0x2e]));return _0x3c0ef6[_0x13ec45([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b9ed2=>_0x4b9ed2[_0x13ec45([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13ec45([0x2a])))[_0x13ec45([0x6d,0x61,0x70])](_0x245d9b=>_0x245d9b[_0x13ec45([0x73,0x70,0x6c,0x69,0x74])](_0x13ec45([0x2e])))[_0x13ec45([0x73,0x6f,0x6d,0x65])](_0x130400=>_0x2ce681[_0x13ec45([0x65,0x76,0x65,0x72,0x79])]((_0x404e12,_0x56a5bd)=>_0x130400[_0x56a5bd]===_0x404e12||_0x130400[_0x56a5bd]===_0x13ec45([0x2a])));}function _0x291b79(){return _0x1c00aa&&_0x9bdda9?new window[(_0x13ec45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x150760,_0x3edbc5)=>{_0x1c00aa[_0x13ec45([0x74,0x68,0x65,0x6e])](_0x150760,_0x3edbc5),_0x9bdda9[_0x13ec45([0x74,0x68,0x65,0x6e])](_0x2683f0=>{_0x2683f0!=_0x13ec45([0x56,0x61,0x6c,0x69,0x64])&&_0x150760(_0x2683f0);},_0x3edbc5);}):_0x1c00aa||_0x9bdda9||_0x13ec45([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3802b6(_0x1dfe45,_0x22e88b){return new window[(_0x13ec45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13899e=>{if(_0xcb3682())return _0x13899e(_0x13ec45([0x56,0x61,0x6c,0x69,0x64]));_0x1041e6(),_0x1005d5[_0x13ec45([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x13ec45([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x59d6a4=!0x1;const _0x41a341=_0x40132d();function _0x5e8a7f(_0x1aa586){return!!_0x1aa586&&(typeof _0x1aa586===_0x13ec45([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1aa586===_0x13ec45([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1aa586[_0x13ec45([0x74,0x68,0x65,0x6e])]===_0x13ec45([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1aa586[_0x13ec45([0x63,0x61,0x74,0x63,0x68])]===_0x13ec45([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e76c3(_0x395956){_0x1090ac(_0x395956)[_0x13ec45([0x74,0x68,0x65,0x6e])](_0x2a2b18=>{if(!_0x2a2b18||_0x2a2b18[_0x13ec45([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x13ec45([0x6f,0x6b]))return _0x13ec45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a800a(_0x23f4fd(_0x41a341+_0x22e88b))!=_0x2a2b18[_0x13ec45([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x13ec45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x13ec45([0x56,0x61,0x6c,0x69,0x64]);})[_0x13ec45([0x74,0x68,0x65,0x6e])](_0x55bccd=>(_0x2b01a6(),_0x55bccd),()=>{const _0x53d7e2=_0x313d0e();return null==_0x53d7e2?(_0x2b01a6(),_0x13ec45([0x56,0x61,0x6c,0x69,0x64])):_0x13ec45(_0x559c2a-_0x53d7e2>(0xe9b5ad1^_0x1382a6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x13ec45([0x74,0x68,0x65,0x6e])](_0x13899e)[_0x13ec45([0x63,0x61,0x74,0x63,0x68])](()=>{_0x13899e(_0x13ec45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x468789=0x2aa13051^_0x1382a6;function _0x2b01a6(){const _0x997952=_0x13ec45([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a800a(_0x23f4fd(_0x1dfe45)),_0x4bf6bd=_0x57934e(_0x5a800a(window[_0x13ec45([0x4d,0x61,0x74,0x68])][_0x13ec45([0x63,0x65,0x69,0x6c])](_0x559c2a/_0x468789)));window[_0x13ec45([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13ec45([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x997952,_0x4bf6bd);}function _0x313d0e(){const _0x140812=_0x13ec45([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a800a(_0x23f4fd(_0x1dfe45)),_0x76a690=window[_0x13ec45([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x13ec45([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x140812);return _0x76a690?window[_0x13ec45([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57934e(_0x76a690),0x10)*_0x468789:null;}function _0x1090ac(_0x1399b5){return new window[(_0x13ec45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x417b75,_0x4631e1)=>{_0x1399b5[_0x13ec45([0x74,0x68,0x65,0x6e])](_0x417b75,_0x4631e1),window[_0x13ec45([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4631e1,0x2a960a11^_0x1382a6);});}}_0x1005d5[_0x13ec45([0x6f,0x6e])](_0x13ec45([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x588ff0,_0x28b05b)=>{if(_0x28b05b[0x0]!=_0x1dfe45)return _0x13899e(_0x13ec45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x28b05b[0x1]={..._0x28b05b[0x1],[_0x13ec45([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41a341};},{[_0x13ec45([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13ec45([0x68,0x69,0x67,0x68])}),_0x1005d5[_0x13ec45([0x6f,0x6e])](_0x13ec45([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x59cb21=>{_0x5e8a7f(_0x59cb21[_0x13ec45([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x59d6a4=!0x0,_0x3e76c3(_0x59cb21[_0x13ec45([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x13ec45([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x13ec45([0x6c,0x6f,0x77])}),_0x535367[_0x13ec45([0x74,0x68,0x65,0x6e])](()=>{_0x59d6a4||_0x13899e(_0x13ec45([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xcb3682(){return _0x1005d5[_0x13ec45([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13ec45([0x76,0x69,0x65,0x77])][_0x13ec45([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x13ec45([0x61,0x75,0x74,0x6f]);}function _0x1041e6(){_0x1005d5[_0x13ec45([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x13ec45([0x76,0x69,0x65,0x77])][_0x13ec45([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x13ec45([0x61,0x75,0x74,0x6f]);}}function _0x4d68a5(_0x5b6eac){const _0x4d54b3=[new window[(_0x13ec45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dad8e=>setTimeout(_0x3dad8e,0x2a9ee01d^_0x1382a6)),_0x535367[_0x13ec45([0x74,0x68,0x65,0x6e])](()=>new window[(_0x13ec45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x293a64=>{let _0x117aaf=0x0;_0x1005d5[_0x13ec45([0x6d,0x6f,0x64,0x65,0x6c])][_0x13ec45([0x6f,0x6e])](_0x13ec45([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x388258,_0x490595)=>{_0x490595[0x0][_0x13ec45([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x117aaf++,_0x117aaf==(0x2a97df29^_0x1382a6)&&(_0x293a64(),_0x388258[_0x13ec45([0x6f,0x66,0x66])]());});}))];return window[_0x13ec45([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x13ec45([0x72,0x61,0x63,0x65])](_0x4d54b3)[_0x13ec45([0x74,0x68,0x65,0x6e])](()=>_0x5b6eac);}async function _0x2427f7(){await _0x535367,_0x1005d5[_0x13ec45([0x6d,0x6f,0x64,0x65,0x6c])][_0x13ec45([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a1a0e,_0x1005d5[_0x13ec45([0x6d,0x6f,0x64,0x65,0x6c])][_0x13ec45([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a1a0e,_0x1005d5[_0x13ec45([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x13ec45([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4900ef(_0x51ff17){const _0x13c57a=_0x5d5456();_0x1005d5[_0x13c57a]=_0x13ec45([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x51ff17,_0x51ff17!=_0x13ec45([0x56,0x61,0x6c,0x69,0x64])&&_0x2427f7();}function _0x5d5456(){const _0x21ffec=window[_0x13ec45([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x13ec45([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x13ec45([0x6e,0x6f,0x77])]())[_0x13ec45([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x13ec45([0x2e]),'');let _0x1eeb8a=_0x13ec45([0x70]);for(let _0x2d0049=0x0;_0x2d0049<_0x21ffec[_0x13ec45([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d0049+=0x2){let _0x4d2fc5=window[_0x13ec45([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21ffec[_0x13ec45([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d0049,_0x2d0049+0x2));_0x4d2fc5>=_0x1cd39f[_0x13ec45([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d2fc5-=_0x1cd39f[_0x13ec45([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1eeb8a+=_0x1cd39f[_0x4d2fc5];}return _0x1eeb8a;}function _0x245669(){const _0x4e68f6=_0x138105[_0x13ec45([0x73,0x70,0x6c,0x69,0x74])](_0x13ec45([0x2e]));if(0x3!=_0x4e68f6[_0x13ec45([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x240a78(_0x4e68f6[0x1]);function _0x240a78(_0x5e4a3c){const _0x431d8b=_0x2e6528(_0x5e4a3c);return _0x431d8b&&_0x3b754d()?_0x431d8b:null;function _0x3b754d(){const _0x440f54=_0x431d8b[_0x13ec45([0x6a,0x74,0x69])],_0x4dcc2a=window[_0x13ec45([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x440f54[_0x13ec45([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x440f54[_0x13ec45([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3c551e={..._0x431d8b,[_0x13ec45([0x6a,0x74,0x69])]:_0x440f54[_0x13ec45([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x440f54[_0x13ec45([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3c551e[_0x13ec45([0x76,0x63])],_0x23f4fd(_0x3c551e)==_0x4dcc2a;}}}async function _0x2579e9(){let _0x1fee0d=!0x0;try{const _0x348261=_0x138105[_0x13ec45([0x73,0x70,0x6c,0x69,0x74])](_0x13ec45([0x2e])),[_0x3dc922,_0x4283c0,_0xf5f9a7]=_0x348261;return _0x7f4319(_0x3dc922),await _0x4ed5ed(_0x3dc922,_0x4283c0,_0xf5f9a7),_0x1fee0d;}catch(_0x10881a){return!0x1;}function _0x7f4319(_0x4ae913){const _0x29418c=_0x2e6528(_0x4ae913);_0x29418c&&_0x29418c[_0x13ec45([0x61,0x6c,0x67])]==_0x13ec45([0x45,0x53,0x32,0x35,0x36])||(_0x1fee0d=!0x1);}async function _0x4ed5ed(_0x394a38,_0xe738a8,_0xfa7c0c){const _0x359133=window[_0x13ec45([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x13ec45([0x66,0x72,0x6f,0x6d])](_0x2c7678(_0xfa7c0c),_0x12dd0d=>_0x12dd0d[_0x13ec45([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a21c9=new window[(_0x13ec45([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x13ec45([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x394a38+_0x13ec45([0x2e])+_0xe738a8),_0x520b21=window[_0x13ec45([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x13ec45([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x520b21)return;const _0xf515a6=await _0x520b21[_0x13ec45([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x13ec45([0x6a,0x77,0x6b]),_0x38161d,{[_0x13ec45([0x6e,0x61,0x6d,0x65])]:_0x13ec45([0x45,0x43,0x44,0x53,0x41]),[_0x13ec45([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x13ec45([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x13ec45([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x520b21[_0x13ec45([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x13ec45([0x6e,0x61,0x6d,0x65])]:_0x13ec45([0x45,0x43,0x44,0x53,0x41]),[_0x13ec45([0x68,0x61,0x73,0x68])]:{[_0x13ec45([0x6e,0x61,0x6d,0x65])]:_0x13ec45([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xf515a6,_0x359133,_0x5a21c9)||(_0x1fee0d=!0x1);}}function _0x2e6528(_0x204dd0){return _0x204dd0[_0x13ec45([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x13ec45([0x65,0x79]))?JSON[_0x13ec45([0x70,0x61,0x72,0x73,0x65])](_0x2c7678(_0x204dd0)):null;}function _0x2c7678(_0x5091c1){return window[_0x13ec45([0x61,0x74,0x6f,0x62])](_0x5091c1[_0x13ec45([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x13ec45([0x2b]))[_0x13ec45([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x13ec45([0x2f])));}function _0x23f4fd(_0x5ee208){let _0x4cc5f3=0x1505;function _0x314ff0(_0x2a7373){for(let _0x48b4e3=0x0;_0x48b4e3<_0x2a7373[_0x13ec45([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x48b4e3++){const _0x50d14c=_0x2a7373[_0x13ec45([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x48b4e3);_0x4cc5f3=(_0x4cc5f3<<0x5)+_0x4cc5f3+_0x50d14c,_0x4cc5f3&=_0x4cc5f3;}}function _0xaabcd(_0x5d5ea5){Array[_0x13ec45([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5d5ea5)?_0x5d5ea5[_0x13ec45([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xaabcd):_0x5d5ea5&&typeof _0x5d5ea5==_0x13ec45([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x13ec45([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5d5ea5)[_0x13ec45([0x73,0x6f,0x72,0x74])]()[_0x13ec45([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4dbdd6,_0x4e1ec7])=>{_0x314ff0(_0x4dbdd6),_0xaabcd(_0x4e1ec7);}):_0x314ff0(window[_0x13ec45([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5d5ea5));}return _0xaabcd(_0x5ee208),_0x4cc5f3>>>0x0;}function _0x5a800a(_0x52017d){return _0x52017d[_0x13ec45([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x13ec45([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x13ec45([0x30]));}function _0x57934e(_0x4c5299){return _0x4c5299[_0x13ec45([0x73,0x70,0x6c,0x69,0x74])]('')[_0x13ec45([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x13ec45([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a1a0e(){}function _0x13ec45(_0x1be9f7){return _0x1be9f7['map'](_0x1104e9=>String['fromCharCode'](_0x1104e9))['join']('');}_0x4900ef(await _0x2959d3());}(this);}['_initSchema'](){const _0x24b60c=this['editor']['model']['schema'];_0x24b60c['isRegistered']('imageBlock')&&_0x24b60c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x24b60c['isRegistered']('imageInline')&&_0x24b60c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2e5af1=this['editor'];_0x2e5af1['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2e5af1['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x63e7e9=>_0x63e7e9['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2481eb=_0x2e5af1['commands']['get']('replaceImageSource');_0x2481eb&&this['listenTo'](_0x2481eb,'cleanupImage',(_0x229be0,[_0x37f4fc,_0x1b16c6])=>{_0x37f4fc['removeAttribute']('uploadcareImageId',_0x1b16c6);});}['_initConfig'](){const _0x3e601f=this['editor']['config']['get']('uploadcare.uploader')||{},_0x28867f=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xe0d867(_0x56d59c['document'],'uc-config',{..._0x3e601f,'pubkey':_0x28867f,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x3e4dc1=>{if('closeMax'==_0x3e4dc1)return'#uc-icon-arrow-down';},_0x56d59c['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xe0d867(_0x56d59c['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x56d59c['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2742be=this['editor']['commands']['get']('insertImage');_0x2742be&&this['listenTo'](_0x2742be,'execute',()=>{const _0x5925b8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5925b8&&_0x5925b8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5925b8);});});const _0x5ee060=this['editor']['commands']['get']('uploadcareImageReplace');_0x5ee060&&this['listenTo'](_0x5ee060,'execute',()=>{const _0x2269da=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2269da&&_0x2269da['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2269da);});});}}class u extends _0x23d977{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20f61c){super(_0x20f61c),_0x20f61c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2a1aa2['defineComponents'](_0x2a1aa2);}}class ta extends _0x317d4a{constructor(_0x2419e8){super(_0x2419e8);const t=_0x2419e8['t'],_0x2f6f1d=this['bindTemplate'],_0x115f73=new _0x310696();_0x115f73['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':[_0x115f73,{'text':_0x2f6f1d['to']('imageUploadProgress',_0x24cf23=>t('Loading\x20image...')+'\x20('+(_0x24cf23||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x317d4a{constructor(_0xeb00e9){super(_0xeb00e9);const t=_0xeb00e9['t'];this['set']('errorType',null);const _0x46b3aa=new _0x497f7(_0xeb00e9);_0x46b3aa['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x46b3aa['withText']=!0x0,_0x46b3aa['class']='ck-button-action',_0x46b3aa['on']('execute',()=>{this['fire']('retry');}),_0x46b3aa['bind']('isVisible')['to'](this,'errorType',_0x3aad58=>'NotFound'!==_0x3aad58);const _0x51b553=new at();_0x51b553['content']=et,_0x51b553['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x34b487=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':[_0x51b553,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x34b487['to']('errorType',_0x499dc9=>t('NotFound'!==_0x499dc9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x46b3aa]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x317d4a{constructor(_0x6356c2,_0x5cfc22){super(_0x6356c2);const _0x42a9b1=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5cfc22,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x42a9b1['to']('imageSrc')}});}}class ii extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x562d2c,_0x4bdcf8,_0x2bc0e1){super(_0x562d2c),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x562d2c),this['_errorView']=new rt(_0x562d2c),this['_editingView']=new tt(_0x562d2c,_0x2bc0e1),this['_focusableView']=new _0x317d4a(_0x562d2c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4bdcf8),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'],_0x11d79f=>{this['_addUploadcareImageEditorListeners'](_0x11d79f);});}),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'](_0x10c7e0,_0x17c01a){const _0x21ae14='uc-cloud-image-editor',_0x57a317=_0x10c7e0['querySelector'](_0x21ae14);if(_0x57a317)return _0x17c01a(_0x57a317);const _0x3005d0=new MutationObserver(_0x4cb81d=>{const _0x8411cb=_0x4cb81d['filter'](_0x2f2c6b=>_0x2f2c6b['target']===_0x10c7e0&&_0x2f2c6b['addedNodes']['length']>0x0&&_0x2f2c6b['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x21ae14);_0x8411cb['length']&&(_0x3005d0['disconnect'](),_0x17c01a(_0x8411cb[0x0]['addedNodes'][0x0]));});_0x3005d0['observe'](_0x10c7e0,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4b5478){_0x4b5478['addEventListener']('apply',_0x5a2ef2=>{this['fire']('apply',{'imageSrc':_0x5a2ef2['detail']['cdnUrl']});}),_0x4b5478['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3cd561(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3f2cd9,_0x373f8f,_0x1b4f38){super(),this['_editor']=_0x3f2cd9,this['_dialog']=_0x373f8f,this['_imageElement']=_0x1b4f38,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 _0x56976c=this['_imageElement'],_0x3f7a5f=_0x56976c['getAttribute']('uploadcareImageId'),_0x27d1c4=_0x56976c['getAttribute']('src');if(_0x3f7a5f)await this['_loadImageInfo'](_0x3f7a5f,_0x27d1c4);else{if(this['_imageCache']['has'](_0x27d1c4)){const _0x10bed3=this['_imageCache']['get'](_0x27d1c4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x10bed3['url'],this['imageDimension']=_0x10bed3['dimension'],this['imageId']=_0x10bed3['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x20471e}=this['_editor'],t=_0x20471e['t'],_0x21d10f=new ii(_0x20471e,this['imageStatus'],this['_attributes']);_0x21d10f['bind']('status')['to'](this,'imageStatus'),_0x21d10f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x21d10f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x21d10f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x21d10f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x108bb3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x21d10f,'position':_0x5c449a['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x21d10f['focus']();},'onHide':()=>{_0x21d10f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x17a815=>!M(_0x17a815,_0x21d10f['element'])}});}['_loadImageInfo'](_0x18e83c,_0x534e46){return C['getInfo'](_0x18e83c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x739de3=>{const {width:_0x118ab7,height:_0x1b6cd6}=_0x739de3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x534e46,this['imageDimension']={'width':_0x118ab7,'height':_0x1b6cd6},this['imageId']=_0x18e83c;})['catch'](_0x210082=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x210082['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4dcf25,_0x56c132){return this['_getImageAsFile'](_0x4dcf25)['then'](_0x549c88=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x56c132['signal'],'file':_0x549c88,'onProgress':_0x130ee5=>{_0x130ee5&&_0x130ee5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x130ee5['value']));}}))['then'](_0x3de157=>{const {width:_0x156657,height:_0x510cd3}=_0x3de157['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3de157['cdnUrl'],this['imageDimension']={'width':_0x156657,'height':_0x510cd3},this['imageId']=_0x3de157['uuid'],this['imageUploadProgress']=null;const _0x43b4eb=_0x4dcf25['getAttribute']('src');this['_imageCache']['set'](_0x43b4eb,{'id':_0x3de157['uuid'],'url':_0x3de157['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x31c9c4=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x31c9c4['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x10a336,_0x3e6d19){_0x10a336['on']('apply',(_0x588384,_0x5ed0f2)=>{this['_replaceImage'](_0x3e6d19,_0x5ed0f2['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x10a336['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x10a336['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1ebfcd,_0x565fce,_0x471ad7){const _0x2dfb70=this['_editor'],{width:_0x23bb14,height:_0x337a85}=F(_0x565fce,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x172d4c,imageSources:_0xe16546}=E(_0x565fce,_0x23bb14);_0x2dfb70['model']['change'](_0x2f91ee=>{if('$graveyard'===_0x1ebfcd['root']['rootName']){_0x2dfb70['execute']('insertImage',{'imageType':_0x1ebfcd['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1ebfcd['getAttributes']()),'uploadcareImageId':_0x471ad7,'src':_0x172d4c,'sources':_0xe16546,'width':_0x23bb14,'height':_0x337a85}});const _0x287ebf=_0x1ebfcd['getChildren']();_0x1ebfcd=_0x2dfb70['model']['document']['selection']['getSelectedElement']();for(const _0x18ed4d of _0x287ebf)_0x2f91ee['append'](_0x2f91ee['cloneElement'](_0x18ed4d),_0x1ebfcd);}else _0x2f91ee['setSelection'](_0x1ebfcd,'on'),_0x2dfb70['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1ebfcd['getAttributes']()),'uploadcareImageId':_0x471ad7,'src':_0x172d4c,'sources':_0xe16546,'width':_0x23bb14,'height':_0x337a85},_0x1ebfcd);_0x2f91ee['setSelection'](_0x1ebfcd,'on');});}async['_getImageAsFile'](_0x1f15d8){const _0x545508=_0x56d59c['window'],_0x186016=_0x56d59c['document']['location']['href'],_0x4e39b1=new _0x545508['URL'](_0x1f15d8['getAttribute']('src'),_0x186016);if('data:'===_0x4e39b1['protocol']){const _0x5e157b=_0x4e39b1['href']['split'](','),_0x584c5f=_0x5e157b[0x0]['match'](/:(.*?);/)[0x1],_0x26327b=_0x584c5f['split']('/')[0x1],_0x390a16=_0x545508['atob'](_0x5e157b[_0x5e157b['length']-0x1]);let _0x207c1a=_0x390a16['length'];const _0x342cea=new _0x545508['Uint8Array'](_0x207c1a);for(;_0x207c1a--;)_0x342cea[_0x207c1a]=_0x390a16['charCodeAt'](_0x207c1a);return new _0x545508['File']([_0x342cea],'image.'+_0x26327b,{'type':_0x584c5f});}const _0x3451b5=_0x4e39b1['href']['split']('/'),_0x35bb23=_0x3451b5[_0x3451b5['length']-0x1],_0x4c45e2=_0x35bb23['split']('.')[0x1];return _0x545508['fetch'](_0x4e39b1['href'])['then'](_0x4200f6=>_0x4200f6['clone']()['blob']())['then'](_0x3d5f86=>new _0x545508['File']([_0x3d5f86],_0x35bb23,{'type':'image/'+_0x4c45e2}));}}class J extends _0x432bd7{['imageEditController'];static get['requires'](){return[_0x250a48];}['_isEditable'];constructor(_0x3261c3){super(_0x3261c3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2ad6be){const _0x12373d=W(_0x2ad6be);return _0x38a4fb=>!(!_0x38a4fb||!_0x38a4fb['is']('element','imageBlock')&&!_0x38a4fb['is']('element','imageInline'))&&(!!_0x38a4fb['hasAttribute']('uploadcareImageId')||!!_0x38a4fb['hasAttribute']('src')&&_0x12373d(_0x38a4fb['getAttribute']('src')));}(_0x3261c3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4db9e8=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4db9e8);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x464c94=this['editor']['model']['document']['selection']['getSelectedElement']();_0x464c94&&(_0x464c94['is']('element','imageBlock')||_0x464c94['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x250a48),_0x464c94),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x432bd7{['refresh'](){const _0x3c2b2a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3c2b2a&&(_0x3c2b2a['is']('element','imageBlock')||_0x3c2b2a['is']('element','imageInline')));}['execute'](_0x1dae50){const _0x5e942f=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3acc9d=>{_0x3acc9d['setAttributes'](_0x1dae50,_0x5e942f),_0x3acc9d['removeAttribute']('srcset',_0x5e942f),_0x3acc9d['removeAttribute']('sizes',_0x5e942f);});}}class g extends _0x23d977{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3f1203,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xcd1ba8}=this;_0xcd1ba8['commands']['add']('uploadcareImageEdit',new J(_0xcd1ba8)),_0xcd1ba8['commands']['add']('uploadcareImageReplace',new O(_0xcd1ba8));}}class j extends _0x23d977{['_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 _0x10e67c=this['editor'];_0x10e67c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1f29de=>{const _0x33b05c=_0x10e67c['commands']['get']('uploadcareImageEdit'),_0xae2d43=new _0x497f7(_0x1f29de),t=_0x1f29de['t'];return _0xae2d43['set']({'icon':_0x108bb3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xae2d43['bind']('isEnabled')['to'](_0x33b05c),_0xae2d43['bind']('isOn')['to'](_0x33b05c,'isActive'),this['listenTo'](_0xae2d43,'execute',()=>{_0x10e67c['execute']('uploadcareImageEdit'),_0x10e67c['editing']['view']['focus']();}),_0xae2d43;}),this['_initConfig']();}['_initConfig'](){const _0x3f6854=_0xe0d867(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3f6854),this['listenTo'](this['editor'],'destroy',()=>{_0x3f6854['remove']();});}}class P extends _0x23d977{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-next-
|
|
3
|
+
"version": "0.0.0-nightly-next-20250217.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-next-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-next-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-next-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250217.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250217.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250217.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250217.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250217.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250217.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250217.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-next-20250217.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
36
36
|
},
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x51c4e4=_0xf1f4;(function(_0x5cb197,_0x3532a4){const _0x12b8bb=_0xf1f4,_0x37b2fa=_0x5cb197();while(!![]){try{const _0x1b1904=-parseInt(_0x12b8bb(0x9a))/0x1*(parseInt(_0x12b8bb(0xbb))/0x2)+parseInt(_0x12b8bb(0xad))/0x3*(-parseInt(_0x12b8bb(0x98))/0x4)+-parseInt(_0x12b8bb(0xb6))/0x5+parseInt(_0x12b8bb(0xaf))/0x6+-parseInt(_0x12b8bb(0x8d))/0x7+parseInt(_0x12b8bb(0xb8))/0x8*(-parseInt(_0x12b8bb(0x97))/0x9)+parseInt(_0x12b8bb(0x85))/0xa;if(_0x1b1904===_0x3532a4)break;else _0x37b2fa['push'](_0x37b2fa['shift']());}catch(_0xf39865){_0x37b2fa['push'](_0x37b2fa['shift']());}}}(_0x3dac,0xe65ec));import{IconUploadcareImageUpload as _0x407ef3}from'ckeditor5/src/icons.js';function _0xf1f4(_0x4fa6ce,_0x44afe4){const _0x3dacd5=_0x3dac();return _0xf1f4=function(_0xf1f4c8,_0x1074c5){_0xf1f4c8=_0xf1f4c8-0x83;let _0x4909ed=_0x3dacd5[_0xf1f4c8];return _0x4909ed;},_0xf1f4(_0x4fa6ce,_0x44afe4);}import{ObservableMixin as _0x139d0c}from'ckeditor5/src/utils.js';import{Dialog as _0x495882,DialogViewPosition as _0x5d2dce}from'ckeditor5/src/ui.js';import _0x5d6c67 from'./uploadcareformview.js';import{UploadcareSource as _0x3d6106}from'../uploadcareconfig.js';import{getTranslation as _0x25a9ff}from'../utils/common-translations.js';function _0x3dac(){const _0x22cd73=['isOpen','11066004bodRes','Local','_initDialog','configElement','getLastPosition','execute','_initListeners','5824030NEWyIn','uploadCare','16yXPnxm','setAttribute','_api','836174epOxyd','element','Insert','_dialog','_insertImage','detail','_formView','plugins','hide','view','model','EDITOR_TOP_CENTER','getSelectedElement','getOutputCollectionState','initFlow','destroy','editing','uuid','insertImage','48955830xipeHn','Replace','selection','_insertAsset','imageInline','change','width','addEventListener','12042114fomLBG','imageInfo','source-list','attributes','setCurrentActivity','removeSelectionAttribute','get','ctxElement','_editor','_editing','5221611aurEaJ','396SMXTvR','allEntries','4AeXDsG','getAPI','length','document','text','removeAllFiles','show','_type','setSelection','status','linkHref','doneFlow','image','idle','stopDelegating','imageBlock','focus','stopListening','done-click','2379erMtQQ'];_0x3dac=function(){return _0x22cd73;};return _0x3dac();}import{getImageUrls as _0x5cec98,getImageDimension as _0x46727b}from'../utils/editingutils.js';import{isAncestor as _0x35ccc2}from'../utils/isancestor.js';export default class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x139d0c(){[_0x51c4e4(0x95)];[_0x51c4e4(0xbe)];[_0x51c4e4(0x96)];[_0x51c4e4(0xba)];[_0x51c4e4(0xa1)]=null;[_0x51c4e4(0xc1)]=null;constructor(_0x34d4b4,_0x9c277b,_0x15ffe2){const _0x41ba8b=_0x51c4e4;super(),this[_0x41ba8b(0x95)]=_0x34d4b4,this[_0x41ba8b(0x96)]=_0x9c277b,this[_0x41ba8b(0xbe)]=_0x34d4b4[_0x41ba8b(0xc2)][_0x41ba8b(0x93)](_0x495882),this[_0x41ba8b(0xba)]=_0x9c277b[_0x41ba8b(0x94)][_0x41ba8b(0x9b)](),this[_0x41ba8b(0xa1)]=_0x15ffe2,this[_0x41ba8b(0x96)][_0x41ba8b(0xb2)][_0x41ba8b(0xb9)](_0x41ba8b(0x8f),this[_0x41ba8b(0xa1)]),this[_0x41ba8b(0xb1)](),this[_0x41ba8b(0xb5)](),this[_0x41ba8b(0xba)][_0x41ba8b(0xc9)]();}[_0x51c4e4(0xca)](){const _0x41659e=_0x51c4e4;this[_0x41659e(0xc1)]&&(this[_0x41659e(0xc1)][_0x41659e(0xca)](),this[_0x41659e(0xc1)]=null),this[_0x41659e(0xba)]&&this[_0x41659e(0xba)][_0x41659e(0xa5)](),this[_0x41659e(0xab)](),this[_0x41659e(0xa8)]();}[_0x51c4e4(0xb1)](){const _0x4ba10a=_0x51c4e4,{locale:_0x1e6c9f,model:_0x4a2fd9}=this[_0x4ba10a(0x95)],_0x1f912d=_0x4a2fd9[_0x4ba10a(0x9d)][_0x4ba10a(0x87)][_0x4ba10a(0xc7)](),_0x3e176b=_0x1f912d&&(_0x1f912d['is'](_0x4ba10a(0xbc),_0x4ba10a(0xa9))||_0x1f912d['is'](_0x4ba10a(0xbc),_0x4ba10a(0x89)));this[_0x4ba10a(0xc1)]=new _0x5d6c67(_0x1e6c9f),this[_0x4ba10a(0xbe)][_0x4ba10a(0xa0)]({'id':_0x4ba10a(0xb7),'icon':_0x407ef3,'title':_0x25a9ff(_0x1e6c9f,this[_0x4ba10a(0xa1)],_0x3e176b?_0x4ba10a(0x86):_0x4ba10a(0xbd))[_0x4ba10a(0x9e)],'content':this[_0x4ba10a(0xc1)],'position':_0x5d2dce[_0x4ba10a(0xc6)],'isModal':!0x0,'onShow':()=>{const _0x55f2b5=_0x4ba10a;this[_0x55f2b5(0xc1)][_0x55f2b5(0xaa)]();},'onHide':()=>{const _0x34897f=_0x4ba10a;this[_0x34897f(0xba)][_0x34897f(0x9f)](),this[_0x34897f(0x95)][_0x34897f(0xcb)][_0x34897f(0xc4)][_0x34897f(0xaa)](),this[_0x34897f(0xca)]();},'keystrokeHandlerOptions':{'filter':_0x1e157c=>!_0x35ccc2(_0x1e157c,this[_0x4ba10a(0xc1)][_0x4ba10a(0xbc)])}});}[_0x51c4e4(0xb5)](){const _0x3aff57=_0x51c4e4;this[_0x3aff57(0x96)][_0x3aff57(0x94)][_0x3aff57(0x8c)](_0x3aff57(0xac),()=>{const _0x49fd69=_0x3aff57,{allEntries:_0x64f2de}=this[_0x49fd69(0xba)][_0x49fd69(0xc8)]();this[_0x49fd69(0x95)][_0x49fd69(0xc5)][_0x49fd69(0x8a)](_0x217754=>{const _0x521b38=_0x49fd69,_0x91557e=_0x64f2de[_0x521b38(0x9c)];for(const _0x48b886 of _0x64f2de){const _0x5b9bdb=_0x48b886===_0x64f2de[_0x91557e-0x1],{cdnUrl:_0x4837f6,fileInfo:_0x35665e}=_0x48b886;if(!_0x4837f6||!_0x35665e)continue;const {width:_0xc605a5,height:_0x32813e}=_0x35665e[_0x521b38(0x8e)],_0x4fc7ed=_0x46727b(_0x4837f6,_0xc605a5,_0x32813e),_0x237d7f=_0x5cec98(_0x4837f6,_0x4fc7ed[_0x521b38(0x8b)]),_0x27c162={'id':_0x35665e[_0x521b38(0x83)],'type':_0x521b38(0xa6),'attributes':{'imageDimension':_0x4fc7ed,..._0x237d7f}};this[_0x521b38(0x88)](_0x27c162,_0x5b9bdb,_0x217754);}}),this[_0x49fd69(0xbe)][_0x49fd69(0xc3)]();}),this[_0x3aff57(0x96)][_0x3aff57(0x94)][_0x3aff57(0x8c)](_0x3aff57(0x8a),_0x5ce1fb=>{const _0xe340ba=_0x3aff57;_0xe340ba(0xa7)===_0x5ce1fb[_0xe340ba(0xc0)][_0xe340ba(0xa3)]&&!_0x5ce1fb[_0xe340ba(0xc0)][_0xe340ba(0x99)][_0xe340ba(0x9c)]&&this[_0xe340ba(0xbe)][_0xe340ba(0xae)]&&(this[_0xe340ba(0xa1)]===_0x3d6106[_0xe340ba(0xb0)]?this[_0xe340ba(0xba)][_0xe340ba(0x91)](_0x3d6106[_0xe340ba(0xb0)]):this[_0xe340ba(0xba)][_0xe340ba(0xc9)]());});}[_0x51c4e4(0x88)](_0x50535c,_0x5cf8fc,_0x1d3233){const _0x3984ce=_0x51c4e4,_0x361bce=this[_0x3984ce(0x95)][_0x3984ce(0xc5)][_0x3984ce(0x9d)][_0x3984ce(0x87)],_0x4b0963=_0x361bce[_0x3984ce(0xc7)](),_0x1d501c=!(!_0x4b0963||!_0x4b0963['is'](_0x3984ce(0xbc),_0x3984ce(0x89)));_0x1d3233[_0x3984ce(0x92)](_0x3984ce(0xa4)),this[_0x3984ce(0xbf)](_0x50535c,_0x1d501c),_0x5cf8fc||_0x1d3233[_0x3984ce(0xa2)](_0x361bce[_0x3984ce(0xb3)]());}[_0x51c4e4(0xbf)](_0x1f7d48,_0x28ff20){const _0x11cc98=_0x51c4e4,_0x3d4043=this[_0x11cc98(0x95)],{imageDimension:_0x4c80a6,imageFallbackUrl:_0x2ece4a,imageSources:_0x13470e}=_0x1f7d48[_0x11cc98(0x90)];_0x3d4043[_0x11cc98(0xb4)](_0x11cc98(0x84),{'imageType':_0x28ff20?_0x11cc98(0x89):null,'source':{'uploadcareImageId':_0x1f7d48['id'],'src':_0x2ece4a,'sources':_0x13470e,..._0x4c80a6}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x361dfc=_0x1b97;function _0x1b97(_0x2499e6,_0x43dad8){var _0x282b7f=_0x282b();return _0x1b97=function(_0x1b97c0,_0x196ad4){_0x1b97c0=_0x1b97c0-0x134;var _0x102128=_0x282b7f[_0x1b97c0];return _0x102128;},_0x1b97(_0x2499e6,_0x43dad8);}(function(_0x2a6584,_0x29cade){var _0x346160=_0x1b97,_0x738fc4=_0x2a6584();while(!![]){try{var _0x3ff758=-parseInt(_0x346160(0x144))/0x1+parseInt(_0x346160(0x140))/0x2*(-parseInt(_0x346160(0x137))/0x3)+parseInt(_0x346160(0x138))/0x4+-parseInt(_0x346160(0x13b))/0x5*(-parseInt(_0x346160(0x149))/0x6)+-parseInt(_0x346160(0x143))/0x7*(-parseInt(_0x346160(0x148))/0x8)+parseInt(_0x346160(0x145))/0x9+parseInt(_0x346160(0x134))/0xa*(-parseInt(_0x346160(0x142))/0xb);if(_0x3ff758===_0x29cade)break;else _0x738fc4['push'](_0x738fc4['shift']());}catch(_0x41ee00){_0x738fc4['push'](_0x738fc4['shift']());}}}(_0x282b,0x78735));import _0x528393 from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export default class S extends _0x528393{constructor(_0x4f3416){var _0x5b28bb=_0x1b97;super(_0x4f3416),this[_0x5b28bb(0x135)]({'tag':_0x5b28bb(0x13c),'attributes':{'class':['ck',_0x5b28bb(0x141),_0x5b28bb(0x139)],'tabindex':'-1'},'children':[{'tag':_0x5b28bb(0x13d),'attributes':{'class':[_0x5b28bb(0x13e),_0x5b28bb(0x13f)],'ctx-name':_0x5b28bb(0x136)}},this[_0x5b28bb(0x147)]()]});}[_0x361dfc(0x13a)](){var _0x561499=_0x361dfc;this[_0x561499(0x146)][_0x561499(0x13a)]();}}function _0x282b(){var _0xe68726=['uc-file-uploader-inline','uc-light','ck-uploadcare-theme','62vSPGAK','ck-reset_all-excluded','55jmbezH','6013TePHYL','165070hgePCl','5675382iRYVXr','element','getFocusableElement','1352ADTxOG','60IoEdkT','232970nvhxIo','setTemplate','uploader','46581VRIYHt','1657992FJZkJF','ck-uploadcare-form','focus','32995BkZeTY','div'];_0x282b=function(){return _0xe68726;};return _0x282b();}
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0x5b94(){const _0x28b40a=['154164UolvPp','uploadcareImageId','querySelector','config','257018UmDrVU','2255510PZQFFN','input[uploadcare-file-input]','fromCharCode','getAttribute','cleanupImage','uploadcareImageReplace','body','add','schema','map','6484QnHwUw','for','data-uc-image-id','_configElement','href','isOfficialPlugin','configElement','listenTo','_initCtx','imageInline','attributeToAttribute','pluginName','6019064SlsbdH','commands','join','document','1503FKqpBd','requires','execute','uploader','_initSchema','init','editor','remove','2508ZFspkj','2696226yDoDSt','#uc-icon-arrow-down','\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','render','view','extend','downcast','uploadcare.pubkey','get','upcast','editing','replaceImageSource','true','iconHrefResolver','insertImage','conversion','298590GiOeSo','selection','isRegistered','_ctxElement','model','uploadcare','afterInit','uc-upload-ctx-provider','3LukVuy','7KmuPGl','UploadcareEditing','_initConfig','contentLanguage','removeAttribute','uploadcare.uploader','isPremiumPlugin','imageBlock','_initImageProcessingIndicator','getSelectedElement','ctxElement','closeMax','36Sbkxba','uc-config','elementToAttribute','appendChild','_initConversion','locale','once','destroy','PictureEditing'];_0x5b94=function(){return _0x28b40a;};return _0x5b94();}const _0x5a98ab=_0x3df3;function _0x3df3(_0x1d79b1,_0x5352e6){const _0x5b941c=_0x5b94();return _0x3df3=function(_0x3df334,_0x1c3418){_0x3df334=_0x3df334-0x18b;let _0x1c0e1e=_0x5b941c[_0x3df334];return _0x1c0e1e;},_0x3df3(_0x1d79b1,_0x5352e6);}(function(_0xfbb783,_0x134641){const _0x52d7e2=_0x3df3,_0x56be38=_0xfbb783();while(!![]){try{const _0x3666d2=parseInt(_0x52d7e2(0x1db))/0x1*(parseInt(_0x52d7e2(0x19f))/0x2)+parseInt(_0x52d7e2(0x1ba))/0x3*(-parseInt(_0x52d7e2(0x1aa))/0x4)+parseInt(_0x52d7e2(0x1d3))/0x5+-parseInt(_0x52d7e2(0x1c3))/0x6+-parseInt(_0x52d7e2(0x1dc))/0x7*(parseInt(_0x52d7e2(0x1b6))/0x8)+parseInt(_0x52d7e2(0x192))/0x9*(-parseInt(_0x52d7e2(0x1a0))/0xa)+parseInt(_0x52d7e2(0x1c2))/0xb*(parseInt(_0x52d7e2(0x19b))/0xc);if(_0x3666d2===_0x134641)break;else _0x56be38['push'](_0x56be38['shift']());}catch(_0x4259d7){_0x56be38['push'](_0x56be38['shift']());}}}(_0x5b94,0x6fe2a));import{Plugin as _0x110210}from'ckeditor5/src/core.js';import{Dialog as _0x2374ec}from'ckeditor5/src/ui.js';import{createElement as _0x5cfb3e,global as _0x5688f2,uid as _0x1ad64c}from'ckeditor5/src/utils.js';import _0x458cc6 from'./uploadcarecommand.js';import _0x2296a9 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x15a2ae}from'./utils/editingutils.js';export default class i extends _0x110210{[_0x5a98ab(0x1ad)]=null;[_0x5a98ab(0x1d6)]=null;static get[_0x5a98ab(0x1b5)](){const _0x5a58df=_0x5a98ab;return _0x5a58df(0x1dd);}static get[_0x5a98ab(0x1bb)](){const _0x4fdcf6=_0x5a98ab;return[_0x4fdcf6(0x19a),_0x2296a9,_0x2374ec];}static get[_0x5a98ab(0x1af)](){return!0x0;}static get[_0x5a98ab(0x18c)](){return!0x0;}get[_0x5a98ab(0x1b0)](){const _0x521e5f=_0x5a98ab;return this[_0x521e5f(0x1ad)];}get[_0x5a98ab(0x190)](){const _0x235186=_0x5a98ab;return this[_0x235186(0x1d6)];}[_0x5a98ab(0x1bf)](){const _0x56c1d4=_0x5a98ab,_0x57df70=this[_0x56c1d4(0x1c0)];_0x57df70[_0x56c1d4(0x1b7)][_0x56c1d4(0x1a7)](_0x56c1d4(0x1d8),new _0x458cc6(_0x57df70));}[_0x5a98ab(0x1d9)](){const _0x44239d=_0x5a98ab;this[_0x44239d(0x1be)](),this[_0x44239d(0x196)](),this[_0x44239d(0x1de)](),this[_0x44239d(0x1b2)](),this[_0x44239d(0x18e)](),this[_0x44239d(0x1b1)](this[_0x44239d(0x1c0)],_0x44239d(0x199),()=>{const _0x259759=_0x44239d;this[_0x259759(0x1ad)]&&(this[_0x259759(0x1ad)][_0x259759(0x1c1)](),this[_0x259759(0x1ad)]=null),this[_0x259759(0x1d6)]&&(this[_0x259759(0x1d6)][_0x259759(0x1c1)](),this[_0x259759(0x1d6)]=null);const _0x14c3be=_0x5688f2[_0x259759(0x1b9)][_0x259759(0x19d)](_0x259759(0x1a1));_0x14c3be&&_0x14c3be[_0x259759(0x1c1)]();}),async function(_0x237e73){const _0x8d584c=_0x31fd3b([0x43,0x48,0x44,0x51,0x64,0x7a,0x63,0x59,0x58,0x50,0x34,0x72,0x66,0x6f,0x38,0x61,0x53,0x31,0x71,0x75,0x4d,0x78,0x74,0x32,0x55,0x46,0x6c,0x65,0x47,0x35,0x6d,0x5a,0x30,0x4c,0x79,0x6a,0x54,0x57,0x4e,0x36,0x56,0x42,0x70,0x77,0x76,0x4a,0x4f,0x73,0x37,0x41,0x52,0x6e,0x33,0x62,0x39,0x67,0x68,0x49,0x6b,0x45,0x4b,0x69]),_0x16c58b=0x3ab88d25,_0x703cc4=0x3abfd28d^_0x16c58b,_0x4119ca=window[_0x31fd3b([0x44,0x61,0x74,0x65])][_0x31fd3b([0x6e,0x6f,0x77])](),_0x2bf5bf=_0x237e73[_0x31fd3b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1ea17f=new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4af9f7=>{_0x2bf5bf[_0x31fd3b([0x6f,0x6e,0x63,0x65])](_0x31fd3b([0x72,0x65,0x61,0x64,0x79]),_0x4af9f7);}),_0xb40758={[_0x31fd3b([0x6b,0x74,0x79])]:_0x31fd3b([0x45,0x43]),[_0x31fd3b([0x75,0x73,0x65])]:_0x31fd3b([0x73,0x69,0x67]),[_0x31fd3b([0x63,0x72,0x76])]:_0x31fd3b([0x50,0x2d,0x32,0x35,0x36]),[_0x31fd3b([0x78])]:_0x31fd3b([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]),[_0x31fd3b([0x79])]:_0x31fd3b([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]),[_0x31fd3b([0x61,0x6c,0x67])]:_0x31fd3b([0x45,0x53,0x32,0x35,0x36])},_0x32db9c=_0x2bf5bf[_0x31fd3b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31fd3b([0x67,0x65,0x74])](_0x31fd3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2db450(){let _0x14707a,_0x9c6875=null,_0x32e964=null;try{if(_0x32db9c==_0x31fd3b([0x47,0x50,0x4c]))return _0x31fd3b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14707a=_0x5daa3e(),!_0x14707a)return _0x31fd3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14707a[_0x31fd3b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x32e964=_0x2dae55(_0x14707a[_0x31fd3b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14707a[_0x31fd3b([0x6a,0x74,0x69])])),await _0x533d33()?_0x5eb3df()?_0x8afdfe()?_0x31fd3b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c0cef()?(_0x14707a[_0x31fd3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31fd3b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x9c6875=_0x42557e(_0x31fd3b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x14707a[_0x31fd3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31fd3b([0x74,0x72,0x69,0x61,0x6c])&&(_0x9c6875=_0x42557e(_0x31fd3b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c911e()):_0x31fd3b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31fd3b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31fd3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4d8f5d){return _0x31fd3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x8afdfe(){const _0x1235a6=[_0x31fd3b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31fd3b([0x74,0x72,0x69,0x61,0x6c])][_0x31fd3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14707a[_0x31fd3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4119ca/0x3e8:0xe10*_0x703cc4;return _0x14707a[_0x31fd3b([0x65,0x78,0x70])]<_0x1235a6;}function _0x5eb3df(){const _0x118c88=_0x14707a[_0x31fd3b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x118c88&&(!!_0x118c88[_0x31fd3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31fd3b([0x2a]))||!!_0x118c88[_0x31fd3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31fd3b([0x55,0x50,0x4c,0x43])));}function _0x1c0cef(){const _0x5b5afa=_0x3df3,_0xd54924=_0x14707a[_0x31fd3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd54924||0x0==_0xd54924[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a737d}=new URL(window[_0x31fd3b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5b5afa(0x1ae)]);if(_0xd54924[_0x31fd3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a737d))return!0x0;const _0x1a0f62=_0x1a737d[_0x31fd3b([0x73,0x70,0x6c,0x69,0x74])](_0x31fd3b([0x2e]));return _0xd54924[_0x31fd3b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5106e1=>_0x5106e1[_0x31fd3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31fd3b([0x2a])))[_0x31fd3b([0x6d,0x61,0x70])](_0x595fcd=>_0x595fcd[_0x31fd3b([0x73,0x70,0x6c,0x69,0x74])](_0x31fd3b([0x2e])))[_0x31fd3b([0x73,0x6f,0x6d,0x65])](_0xb4909f=>_0x1a0f62[_0x31fd3b([0x65,0x76,0x65,0x72,0x79])]((_0x2ca4b4,_0x3b0fb2)=>_0xb4909f[_0x3b0fb2]===_0x2ca4b4||_0xb4909f[_0x3b0fb2]===_0x31fd3b([0x2a])));}function _0x5c911e(){return _0x9c6875&&_0x32e964?new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cc105,_0x58bc6c)=>{_0x9c6875[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x3cc105,_0x58bc6c),_0x32e964[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x9c0cd=>{_0x9c0cd!=_0x31fd3b([0x56,0x61,0x6c,0x69,0x64])&&_0x3cc105(_0x9c0cd);},_0x58bc6c);}):_0x9c6875||_0x32e964||_0x31fd3b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2dae55(_0x414a2b,_0x270c49){return new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x323508=>{if(_0x11461c())return _0x323508(_0x31fd3b([0x56,0x61,0x6c,0x69,0x64]));_0x30d34b(),_0x2bf5bf[_0x31fd3b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31fd3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c9281=!0x1;const _0x35287a=_0x1ad64c();function _0x2295b2(_0x1ffcb6){return!!_0x1ffcb6&&(typeof _0x1ffcb6===_0x31fd3b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ffcb6===_0x31fd3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ffcb6[_0x31fd3b([0x74,0x68,0x65,0x6e])]===_0x31fd3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ffcb6[_0x31fd3b([0x63,0x61,0x74,0x63,0x68])]===_0x31fd3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29f5e2(_0x58b499){_0x179871(_0x58b499)[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x1c2bce=>{if(!_0x1c2bce||_0x1c2bce[_0x31fd3b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31fd3b([0x6f,0x6b]))return _0x31fd3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2148cc(_0x4785c2(_0x35287a+_0x270c49))!=_0x1c2bce[_0x31fd3b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31fd3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31fd3b([0x56,0x61,0x6c,0x69,0x64]);})[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x5232f6=>(_0x476b2d(),_0x5232f6),()=>{const _0x57a0b9=_0x1791d1();return null==_0x57a0b9?(_0x476b2d(),_0x31fd3b([0x56,0x61,0x6c,0x69,0x64])):_0x31fd3b(_0x4119ca-_0x57a0b9>(0x1eb40925^_0x16c58b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x323508)[_0x31fd3b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x323508(_0x31fd3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x113888=0x3a8e63a5^_0x16c58b;function _0x476b2d(){const _0x201ddb=_0x31fd3b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2148cc(_0x4785c2(_0x414a2b)),_0x577179=_0x4c5ee3(_0x2148cc(window[_0x31fd3b([0x4d,0x61,0x74,0x68])][_0x31fd3b([0x63,0x65,0x69,0x6c])](_0x4119ca/_0x113888)));window[_0x31fd3b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31fd3b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x201ddb,_0x577179);}function _0x1791d1(){const _0x26fe60=_0x31fd3b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2148cc(_0x4785c2(_0x414a2b)),_0x395d73=window[_0x31fd3b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31fd3b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26fe60);return _0x395d73?window[_0x31fd3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c5ee3(_0x395d73),0x10)*_0x113888:null;}function _0x179871(_0xcec931){return new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e8f37,_0x37965a)=>{_0xcec931[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x5e8f37,_0x37965a),window[_0x31fd3b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37965a,0x3ab959e5^_0x16c58b);});}}_0x2bf5bf[_0x31fd3b([0x6f,0x6e])](_0x31fd3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x351af6,_0x301a9c)=>{if(_0x301a9c[0x0]!=_0x414a2b)return _0x323508(_0x31fd3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x301a9c[0x1]={..._0x301a9c[0x1],[_0x31fd3b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x35287a};},{[_0x31fd3b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31fd3b([0x68,0x69,0x67,0x68])}),_0x2bf5bf[_0x31fd3b([0x6f,0x6e])](_0x31fd3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15c785=>{_0x2295b2(_0x15c785[_0x31fd3b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c9281=!0x0,_0x29f5e2(_0x15c785[_0x31fd3b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31fd3b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31fd3b([0x6c,0x6f,0x77])}),_0x1ea17f[_0x31fd3b([0x74,0x68,0x65,0x6e])](()=>{_0x4c9281||_0x323508(_0x31fd3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x11461c(){return _0x2bf5bf[_0x31fd3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31fd3b([0x76,0x69,0x65,0x77])][_0x31fd3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31fd3b([0x61,0x75,0x74,0x6f]);}function _0x30d34b(){_0x2bf5bf[_0x31fd3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31fd3b([0x76,0x69,0x65,0x77])][_0x31fd3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31fd3b([0x61,0x75,0x74,0x6f]);}}function _0x42557e(_0x28d723){const _0x307394=[new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x211a2b=>setTimeout(_0x211a2b,0x3ab1b3e9^_0x16c58b)),_0x1ea17f[_0x31fd3b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a3487=>{let _0x14dfe6=0x0;_0x2bf5bf[_0x31fd3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31fd3b([0x6f,0x6e])](_0x31fd3b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20061d,_0x3fd735)=>{_0x3fd735[0x0][_0x31fd3b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14dfe6++,_0x14dfe6==(0x3ab88cdd^_0x16c58b)&&(_0x2a3487(),_0x20061d[_0x31fd3b([0x6f,0x66,0x66])]());});}))];return window[_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31fd3b([0x72,0x61,0x63,0x65])](_0x307394)[_0x31fd3b([0x74,0x68,0x65,0x6e])](()=>_0x28d723);}async function _0x22522d(){await _0x1ea17f,_0x2bf5bf[_0x31fd3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31fd3b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a4a6f,_0x2bf5bf[_0x31fd3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31fd3b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a4a6f,_0x2bf5bf[_0x31fd3b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31fd3b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x53936e(_0x6f248f){const _0x2fa316=_0x4aa5fe();_0x2bf5bf[_0x2fa316]=_0x31fd3b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6f248f,_0x6f248f!=_0x31fd3b([0x56,0x61,0x6c,0x69,0x64])&&_0x22522d();}function _0x4aa5fe(){const _0x181426=window[_0x31fd3b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31fd3b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31fd3b([0x6e,0x6f,0x77])]())[_0x31fd3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31fd3b([0x2e]),'');let _0x17ab51=_0x31fd3b([0x43]);for(let _0x5048fb=0x0;_0x5048fb<_0x181426[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5048fb+=0x2){let _0x2f4514=window[_0x31fd3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x181426[_0x31fd3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5048fb,_0x5048fb+0x2));_0x2f4514>=_0x8d584c[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f4514-=_0x8d584c[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17ab51+=_0x8d584c[_0x2f4514];}return _0x17ab51;}function _0x5daa3e(){const _0x49458e=_0x32db9c[_0x31fd3b([0x73,0x70,0x6c,0x69,0x74])](_0x31fd3b([0x2e]));if(0x3!=_0x49458e[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5cb1de(_0x49458e[0x1]);function _0x5cb1de(_0x453dfa){const _0x5705f3=_0x2b9af6(_0x453dfa);return _0x5705f3&&_0x11573f()?_0x5705f3:null;function _0x11573f(){const _0x4e16c3=_0x5705f3[_0x31fd3b([0x6a,0x74,0x69])],_0x389cfa=window[_0x31fd3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e16c3[_0x31fd3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e16c3[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2250ae={..._0x5705f3,[_0x31fd3b([0x6a,0x74,0x69])]:_0x4e16c3[_0x31fd3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e16c3[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2250ae[_0x31fd3b([0x76,0x63])],_0x4785c2(_0x2250ae)==_0x389cfa;}}}async function _0x533d33(){let _0x459943=!0x0;try{const _0x13fd3d=_0x32db9c[_0x31fd3b([0x73,0x70,0x6c,0x69,0x74])](_0x31fd3b([0x2e])),[_0x4ca521,_0x19f26b,_0x240da6]=_0x13fd3d;return _0x3c73e7(_0x4ca521),await _0x323624(_0x4ca521,_0x19f26b,_0x240da6),_0x459943;}catch(_0x53dfde){return!0x1;}function _0x3c73e7(_0x2c1e7c){const _0xb586b4=_0x2b9af6(_0x2c1e7c);_0xb586b4&&_0xb586b4[_0x31fd3b([0x61,0x6c,0x67])]==_0x31fd3b([0x45,0x53,0x32,0x35,0x36])||(_0x459943=!0x1);}async function _0x323624(_0x6a854,_0x2497e5,_0x47ed0a){const _0x1e2ac3=window[_0x31fd3b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31fd3b([0x66,0x72,0x6f,0x6d])](_0x57e151(_0x47ed0a),_0xf24681=>_0xf24681[_0x31fd3b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47b456=new window[(_0x31fd3b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31fd3b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6a854+_0x31fd3b([0x2e])+_0x2497e5),_0x5d3030=window[_0x31fd3b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31fd3b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d3030)return;const _0x930352=await _0x5d3030[_0x31fd3b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31fd3b([0x6a,0x77,0x6b]),_0xb40758,{[_0x31fd3b([0x6e,0x61,0x6d,0x65])]:_0x31fd3b([0x45,0x43,0x44,0x53,0x41]),[_0x31fd3b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31fd3b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31fd3b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d3030[_0x31fd3b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31fd3b([0x6e,0x61,0x6d,0x65])]:_0x31fd3b([0x45,0x43,0x44,0x53,0x41]),[_0x31fd3b([0x68,0x61,0x73,0x68])]:{[_0x31fd3b([0x6e,0x61,0x6d,0x65])]:_0x31fd3b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x930352,_0x1e2ac3,_0x47b456)||(_0x459943=!0x1);}}function _0x2b9af6(_0x39cdbb){return _0x39cdbb[_0x31fd3b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31fd3b([0x65,0x79]))?JSON[_0x31fd3b([0x70,0x61,0x72,0x73,0x65])](_0x57e151(_0x39cdbb)):null;}function _0x57e151(_0x4baeec){return window[_0x31fd3b([0x61,0x74,0x6f,0x62])](_0x4baeec[_0x31fd3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31fd3b([0x2b]))[_0x31fd3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31fd3b([0x2f])));}function _0x4785c2(_0x13a70d){let _0x398e4b=0x1505;function _0x39ebbc(_0x4c85bf){for(let _0x2aa2a3=0x0;_0x2aa2a3<_0x4c85bf[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2aa2a3++){const _0x4076b0=_0x4c85bf[_0x31fd3b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2aa2a3);_0x398e4b=(_0x398e4b<<0x5)+_0x398e4b+_0x4076b0,_0x398e4b&=_0x398e4b;}}function _0x52b2cd(_0x13183b){Array[_0x31fd3b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x13183b)?_0x13183b[_0x31fd3b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x52b2cd):_0x13183b&&typeof _0x13183b==_0x31fd3b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31fd3b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x13183b)[_0x31fd3b([0x73,0x6f,0x72,0x74])]()[_0x31fd3b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3076ea,_0x2abfc4])=>{_0x39ebbc(_0x3076ea),_0x52b2cd(_0x2abfc4);}):_0x39ebbc(window[_0x31fd3b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x13183b));}return _0x52b2cd(_0x13a70d),_0x398e4b>>>0x0;}function _0x2148cc(_0x50cb02){return _0x50cb02[_0x31fd3b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31fd3b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31fd3b([0x30]));}function _0x4c5ee3(_0x329f11){return _0x329f11[_0x31fd3b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31fd3b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31fd3b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a4a6f(){}function _0x31fd3b(_0x49cb99){const _0x270c88=_0x3df3;return _0x49cb99[_0x270c88(0x1a9)](_0x10ff2b=>String[_0x270c88(0x1a2)](_0x10ff2b))[_0x270c88(0x1b8)]('');}_0x53936e(await _0x2db450());}(this);}[_0x5a98ab(0x1be)](){const _0x42d885=_0x5a98ab,_0x240c65=this[_0x42d885(0x1c0)][_0x42d885(0x1d7)][_0x42d885(0x1a8)];_0x240c65[_0x42d885(0x1d5)](_0x42d885(0x18d))&&_0x240c65[_0x42d885(0x1c8)](_0x42d885(0x18d),{'allowAttributes':[_0x42d885(0x19c)]}),_0x240c65[_0x42d885(0x1d5)](_0x42d885(0x1b3))&&_0x240c65[_0x42d885(0x1c8)](_0x42d885(0x1b3),{'allowAttributes':[_0x42d885(0x19c)]});}[_0x5a98ab(0x196)](){const _0x1bdfcd=_0x5a98ab,_0x9350fe=this[_0x1bdfcd(0x1c0)];_0x9350fe[_0x1bdfcd(0x1d2)][_0x1bdfcd(0x1ab)](_0x1bdfcd(0x1c9))[_0x1bdfcd(0x1b4)]({'model':_0x1bdfcd(0x19c),'view':_0x1bdfcd(0x1ac)}),_0x9350fe[_0x1bdfcd(0x1d2)][_0x1bdfcd(0x1ab)](_0x1bdfcd(0x1cc))[_0x1bdfcd(0x194)]({'model':{'key':_0x1bdfcd(0x19c),'value':_0x1165ff=>_0x1165ff[_0x1bdfcd(0x1a3)](_0x1bdfcd(0x1ac))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x750518=_0x9350fe[_0x1bdfcd(0x1b7)][_0x1bdfcd(0x1cb)](_0x1bdfcd(0x1ce));_0x750518&&this[_0x1bdfcd(0x1b1)](_0x750518,_0x1bdfcd(0x1a4),(_0x2588ce,[_0x14519b,_0x385705])=>{const _0x5a2e59=_0x1bdfcd;_0x14519b[_0x5a2e59(0x1e0)](_0x5a2e59(0x19c),_0x385705);});}[_0x5a98ab(0x1de)](){const _0x4c05da=_0x5a98ab,_0x391126=this[_0x4c05da(0x1c0)][_0x4c05da(0x19e)][_0x4c05da(0x1cb)](_0x4c05da(0x18b))||{},_0x1989e2=this[_0x4c05da(0x1c0)][_0x4c05da(0x19e)][_0x4c05da(0x1cb)](_0x4c05da(0x1ca))||'';this[_0x4c05da(0x1ad)]=_0x5cfb3e(_0x5688f2[_0x4c05da(0x1b9)],_0x4c05da(0x193),{..._0x391126,'pubkey':_0x1989e2,'ctx-name':_0x4c05da(0x1bd),'sourceList':'','imgOnly':_0x4c05da(0x1cf),'removeCopyright':_0x4c05da(0x1cf),'localeName':this[_0x4c05da(0x1c0)][_0x4c05da(0x197)][_0x4c05da(0x1df)],'externalSourcesEmbedCss':_0x4c05da(0x1c5)}),this[_0x4c05da(0x1ad)][_0x4c05da(0x1d0)]=_0x554ce4=>{const _0x4fb49e=_0x4c05da;if(_0x4fb49e(0x191)==_0x554ce4)return _0x4fb49e(0x1c4);},_0x5688f2[_0x4c05da(0x1b9)][_0x4c05da(0x1a6)][_0x4c05da(0x195)](this[_0x4c05da(0x1ad)]);}[_0x5a98ab(0x1b2)](){const _0x391d3d=_0x5a98ab;this[_0x391d3d(0x1d6)]=_0x5cfb3e(_0x5688f2[_0x391d3d(0x1b9)],_0x391d3d(0x1da),{'ctx-name':_0x391d3d(0x1bd)}),_0x5688f2[_0x391d3d(0x1b9)][_0x391d3d(0x1a6)][_0x391d3d(0x195)](this[_0x391d3d(0x1d6)]);}[_0x5a98ab(0x18e)](){const _0x5b9355=_0x5a98ab,_0x529a52=this[_0x5b9355(0x1c0)][_0x5b9355(0x1b7)][_0x5b9355(0x1cb)](_0x5b9355(0x1d1));_0x529a52&&this[_0x5b9355(0x1b1)](_0x529a52,_0x5b9355(0x1bc),()=>{const _0x1545ab=_0x5b9355,_0x3f09d6=this[_0x1545ab(0x1c0)][_0x1545ab(0x1d7)][_0x1545ab(0x1b9)][_0x1545ab(0x1d4)][_0x1545ab(0x18f)]();_0x3f09d6&&_0x3f09d6[_0x1545ab(0x1a3)](_0x1545ab(0x19c))&&this[_0x1545ab(0x1c0)][_0x1545ab(0x1cd)][_0x1545ab(0x1c7)][_0x1545ab(0x198)](_0x1545ab(0x1c6),()=>{const _0x505f5c=_0x1545ab;_0x15a2ae(this[_0x505f5c(0x1c0)],_0x3f09d6);});});const _0x49f353=this[_0x5b9355(0x1c0)][_0x5b9355(0x1b7)][_0x5b9355(0x1cb)](_0x5b9355(0x1a5));_0x49f353&&this[_0x5b9355(0x1b1)](_0x49f353,_0x5b9355(0x1bc),()=>{const _0x1ea61c=_0x5b9355,_0x3a98b1=this[_0x1ea61c(0x1c0)][_0x1ea61c(0x1d7)][_0x1ea61c(0x1b9)][_0x1ea61c(0x1d4)][_0x1ea61c(0x18f)]();_0x3a98b1&&_0x3a98b1[_0x1ea61c(0x1a3)](_0x1ea61c(0x19c))&&this[_0x1ea61c(0x1c0)][_0x1ea61c(0x1cd)][_0x1ea61c(0x1c7)][_0x1ea61c(0x198)](_0x1ea61c(0x1c6),()=>{const _0x2b4535=_0x1ea61c;_0x15a2ae(this[_0x2b4535(0x1c0)],_0x3a98b1);});});}}
|
|
23
|
+
const _0x36de28=_0x40e0;(function(_0x435f9e,_0x2ce0bd){const _0x413db9=_0x40e0,_0x398199=_0x435f9e();while(!![]){try{const _0x1382df=-parseInt(_0x413db9(0xb8))/0x1+-parseInt(_0x413db9(0xc5))/0x2+-parseInt(_0x413db9(0x8a))/0x3+parseInt(_0x413db9(0xc2))/0x4+parseInt(_0x413db9(0x93))/0x5*(-parseInt(_0x413db9(0x9b))/0x6)+parseInt(_0x413db9(0xa2))/0x7*(parseInt(_0x413db9(0xd5))/0x8)+parseInt(_0x413db9(0xa5))/0x9;if(_0x1382df===_0x2ce0bd)break;else _0x398199['push'](_0x398199['shift']());}catch(_0x5dada0){_0x398199['push'](_0x398199['shift']());}}}(_0x2ff3,0xab76c));function _0x2ff3(){const _0x135181=['once','editing','requires','uc-upload-ctx-provider','model','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','replaceImageSource','true','appendChild','downcast','uploadcareImageId','contentLanguage','uploadcare.pubkey','document','_configElement','uploadcareImageReplace','config','681804OAXXbP','insertImage','attributeToAttribute','isOfficialPlugin','removeAttribute','pluginName','conversion','map','add','querySelector','3984944ThGBZe','destroy','getAttribute','2778260olGoCs','fromCharCode','ctxElement','afterInit','init','execute','uploader','_initConfig','extend','schema','body','render','UploadcareEditing','uc-config','imageBlock','iconHrefResolver','16AoDnDw','get','href','editor','view','join','remove','getSelectedElement','3427890CrUZpO','imageInline','locale','listenTo','_initImageProcessingIndicator','data-uc-image-id','selection','_initConversion','#uc-icon-arrow-down','20kqQwfc','isPremiumPlugin','_ctxElement','uploadcare','PictureEditing','cleanupImage','_initCtx','closeMax','1046592aRidCn','for','uploadcare.uploader','elementToAttribute','isRegistered','commands','_initSchema','893445swAifC','upcast','input[uploadcare-file-input]','30258918MRGgao'];_0x2ff3=function(){return _0x135181;};return _0x2ff3();}import{Plugin as _0x3e45ef}from'ckeditor5/src/core.js';function _0x40e0(_0xcc7625,_0x4985e4){const _0x2ff3a6=_0x2ff3();return _0x40e0=function(_0x40e0ca,_0x797ce1){_0x40e0ca=_0x40e0ca-0x85;let _0x42c1c1=_0x2ff3a6[_0x40e0ca];return _0x42c1c1;},_0x40e0(_0xcc7625,_0x4985e4);}import{Dialog as _0x26085c}from'ckeditor5/src/ui.js';import{createElement as _0x1a6e33,global as _0x52aafd,uid as _0x349875}from'ckeditor5/src/utils.js';import _0x340ead from'./uploadcarecommand.js';import _0x5d3b40 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xd066e5}from'./utils/editingutils.js';export default class i extends _0x3e45ef{[_0x36de28(0xb5)]=null;[_0x36de28(0x95)]=null;static get[_0x36de28(0xbd)](){const _0x4e73af=_0x36de28;return _0x4e73af(0xd1);}static get[_0x36de28(0xa8)](){const _0x21e63d=_0x36de28;return[_0x21e63d(0x97),_0x5d3b40,_0x26085c];}static get[_0x36de28(0xbb)](){return!0x0;}static get[_0x36de28(0x94)](){return!0x0;}get[_0x36de28(0xab)](){const _0x386ad4=_0x36de28;return this[_0x386ad4(0xb5)];}get[_0x36de28(0xc7)](){const _0x398a9e=_0x36de28;return this[_0x398a9e(0x95)];}[_0x36de28(0xc9)](){const _0x5392f9=_0x36de28,_0x3843e6=this[_0x5392f9(0x85)];_0x3843e6[_0x5392f9(0xa0)][_0x5392f9(0xc0)](_0x5392f9(0x96),new _0x340ead(_0x3843e6));}[_0x36de28(0xc8)](){const _0x513b6f=_0x36de28;this[_0x513b6f(0xa1)](),this[_0x513b6f(0x91)](),this[_0x513b6f(0xcc)](),this[_0x513b6f(0x99)](),this[_0x513b6f(0x8e)](),this[_0x513b6f(0x8d)](this[_0x513b6f(0x85)],_0x513b6f(0xc3),()=>{const _0x384403=_0x513b6f;this[_0x384403(0xb5)]&&(this[_0x384403(0xb5)][_0x384403(0x88)](),this[_0x384403(0xb5)]=null),this[_0x384403(0x95)]&&(this[_0x384403(0x95)][_0x384403(0x88)](),this[_0x384403(0x95)]=null);const _0x31e28a=_0x52aafd[_0x384403(0xb4)][_0x384403(0xc1)](_0x384403(0xa4));_0x31e28a&&_0x31e28a[_0x384403(0x88)]();}),async function(_0x1beeaf){const _0x49f14c=_0x24ab9e([0x70,0x75,0x79,0x53,0x6f,0x41,0x4f,0x32,0x43,0x76,0x5a,0x55,0x62,0x74,0x71,0x72,0x65,0x46,0x38,0x56,0x39,0x50,0x4a,0x73,0x7a,0x58,0x68,0x6d,0x63,0x64,0x4b,0x59,0x6c,0x78,0x61,0x54,0x44,0x34,0x69,0x33,0x52,0x6a,0x6e,0x77,0x6b,0x35,0x4c,0x49,0x48,0x57,0x31,0x66,0x51,0x36,0x37,0x47,0x30,0x45,0x42,0x4d,0x4e,0x67]),_0x1a20ee=0x2a97ded1,_0x53ae02=0x2a908111^_0x1a20ee,_0x200b45=window[_0x24ab9e([0x44,0x61,0x74,0x65])][_0x24ab9e([0x6e,0x6f,0x77])](),_0x5f5a43=_0x1beeaf[_0x24ab9e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x532651=new window[(_0x24ab9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b9818=>{_0x5f5a43[_0x24ab9e([0x6f,0x6e,0x63,0x65])](_0x24ab9e([0x72,0x65,0x61,0x64,0x79]),_0x2b9818);}),_0x26f4dc={[_0x24ab9e([0x6b,0x74,0x79])]:_0x24ab9e([0x45,0x43]),[_0x24ab9e([0x75,0x73,0x65])]:_0x24ab9e([0x73,0x69,0x67]),[_0x24ab9e([0x63,0x72,0x76])]:_0x24ab9e([0x50,0x2d,0x32,0x35,0x36]),[_0x24ab9e([0x78])]:_0x24ab9e([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]),[_0x24ab9e([0x79])]:_0x24ab9e([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]),[_0x24ab9e([0x61,0x6c,0x67])]:_0x24ab9e([0x45,0x53,0x32,0x35,0x36])},_0x18c00f=_0x5f5a43[_0x24ab9e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24ab9e([0x67,0x65,0x74])](_0x24ab9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x12e1b9(){let _0x1c378a,_0x413f64=null,_0x768daa=null;try{if(_0x18c00f==_0x24ab9e([0x47,0x50,0x4c]))return _0x24ab9e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c378a=_0x47aab3(),!_0x1c378a)return _0x24ab9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c378a[_0x24ab9e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x768daa=_0x42897a(_0x1c378a[_0x24ab9e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c378a[_0x24ab9e([0x6a,0x74,0x69])])),await _0x1f8772()?_0x362c76()?_0x44245a()?_0x24ab9e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e9589()?(_0x1c378a[_0x24ab9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24ab9e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x413f64=_0x576241(_0x24ab9e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1c378a[_0x24ab9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24ab9e([0x74,0x72,0x69,0x61,0x6c])&&(_0x413f64=_0x576241(_0x24ab9e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x52f577()):_0x24ab9e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24ab9e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24ab9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xfc54e){return _0x24ab9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x44245a(){const _0x129886=[_0x24ab9e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24ab9e([0x74,0x72,0x69,0x61,0x6c])][_0x24ab9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c378a[_0x24ab9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x200b45/0x3e8:0xe10*_0x53ae02;return _0x1c378a[_0x24ab9e([0x65,0x78,0x70])]<_0x129886;}function _0x362c76(){const _0x14898d=_0x1c378a[_0x24ab9e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x14898d&&(!!_0x14898d[_0x24ab9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24ab9e([0x2a]))||!!_0x14898d[_0x24ab9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24ab9e([0x55,0x50,0x4c,0x43])));}function _0x3e9589(){const _0x259e27=_0x40e0,_0x59997d=_0x1c378a[_0x24ab9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59997d||0x0==_0x59997d[_0x24ab9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xfa2df0}=new URL(window[_0x24ab9e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x259e27(0xd7)]);if(_0x59997d[_0x24ab9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfa2df0))return!0x0;const _0x1042a9=_0xfa2df0[_0x24ab9e([0x73,0x70,0x6c,0x69,0x74])](_0x24ab9e([0x2e]));return _0x59997d[_0x24ab9e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5a4cb2=>_0x5a4cb2[_0x24ab9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24ab9e([0x2a])))[_0x24ab9e([0x6d,0x61,0x70])](_0x369afc=>_0x369afc[_0x24ab9e([0x73,0x70,0x6c,0x69,0x74])](_0x24ab9e([0x2e])))[_0x24ab9e([0x73,0x6f,0x6d,0x65])](_0x414a2e=>_0x1042a9[_0x24ab9e([0x65,0x76,0x65,0x72,0x79])]((_0x376669,_0x2afaea)=>_0x414a2e[_0x2afaea]===_0x376669||_0x414a2e[_0x2afaea]===_0x24ab9e([0x2a])));}function _0x52f577(){return _0x413f64&&_0x768daa?new window[(_0x24ab9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x304e5e,_0x4647ad)=>{_0x413f64[_0x24ab9e([0x74,0x68,0x65,0x6e])](_0x304e5e,_0x4647ad),_0x768daa[_0x24ab9e([0x74,0x68,0x65,0x6e])](_0x3ac279=>{_0x3ac279!=_0x24ab9e([0x56,0x61,0x6c,0x69,0x64])&&_0x304e5e(_0x3ac279);},_0x4647ad);}):_0x413f64||_0x768daa||_0x24ab9e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x42897a(_0x6129f5,_0x3c2e23){return new window[(_0x24ab9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x270711=>{if(_0x946b44())return _0x270711(_0x24ab9e([0x56,0x61,0x6c,0x69,0x64]));_0x4b7092(),_0x5f5a43[_0x24ab9e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24ab9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x363546=!0x1;const _0xb1a37d=_0x349875();function _0x2e1fdd(_0x3cb056){return!!_0x3cb056&&(typeof _0x3cb056===_0x24ab9e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3cb056===_0x24ab9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3cb056[_0x24ab9e([0x74,0x68,0x65,0x6e])]===_0x24ab9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3cb056[_0x24ab9e([0x63,0x61,0x74,0x63,0x68])]===_0x24ab9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x499afd(_0x33f57d){_0x2ec3d5(_0x33f57d)[_0x24ab9e([0x74,0x68,0x65,0x6e])](_0x11d3e1=>{if(!_0x11d3e1||_0x11d3e1[_0x24ab9e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24ab9e([0x6f,0x6b]))return _0x24ab9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ec18c(_0xf15712(_0xb1a37d+_0x3c2e23))!=_0x11d3e1[_0x24ab9e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24ab9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24ab9e([0x56,0x61,0x6c,0x69,0x64]);})[_0x24ab9e([0x74,0x68,0x65,0x6e])](_0x3de68e=>(_0x841dde(),_0x3de68e),()=>{const _0x21c8be=_0x1e90a3();return null==_0x21c8be?(_0x841dde(),_0x24ab9e([0x56,0x61,0x6c,0x69,0x64])):_0x24ab9e(_0x200b45-_0x21c8be>(0xe9b5ad1^_0x1a20ee)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24ab9e([0x74,0x68,0x65,0x6e])](_0x270711)[_0x24ab9e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x270711(_0x24ab9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x58b8e0=0x2aa13051^_0x1a20ee;function _0x841dde(){const _0x3d75de=_0x24ab9e([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ec18c(_0xf15712(_0x6129f5)),_0x3ba0e3=_0xaaf5ad(_0x1ec18c(window[_0x24ab9e([0x4d,0x61,0x74,0x68])][_0x24ab9e([0x63,0x65,0x69,0x6c])](_0x200b45/_0x58b8e0)));window[_0x24ab9e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24ab9e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d75de,_0x3ba0e3);}function _0x1e90a3(){const _0x3bcb14=_0x24ab9e([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ec18c(_0xf15712(_0x6129f5)),_0x284658=window[_0x24ab9e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24ab9e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3bcb14);return _0x284658?window[_0x24ab9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xaaf5ad(_0x284658),0x10)*_0x58b8e0:null;}function _0x2ec3d5(_0x2700ef){return new window[(_0x24ab9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30ead7,_0x1d27ee)=>{_0x2700ef[_0x24ab9e([0x74,0x68,0x65,0x6e])](_0x30ead7,_0x1d27ee),window[_0x24ab9e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d27ee,0x2a960a11^_0x1a20ee);});}}_0x5f5a43[_0x24ab9e([0x6f,0x6e])](_0x24ab9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd337b2,_0x221cf1)=>{if(_0x221cf1[0x0]!=_0x6129f5)return _0x270711(_0x24ab9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x221cf1[0x1]={..._0x221cf1[0x1],[_0x24ab9e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xb1a37d};},{[_0x24ab9e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24ab9e([0x68,0x69,0x67,0x68])}),_0x5f5a43[_0x24ab9e([0x6f,0x6e])](_0x24ab9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f8555=>{_0x2e1fdd(_0x4f8555[_0x24ab9e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x363546=!0x0,_0x499afd(_0x4f8555[_0x24ab9e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24ab9e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24ab9e([0x6c,0x6f,0x77])}),_0x532651[_0x24ab9e([0x74,0x68,0x65,0x6e])](()=>{_0x363546||_0x270711(_0x24ab9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x946b44(){return _0x5f5a43[_0x24ab9e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24ab9e([0x76,0x69,0x65,0x77])][_0x24ab9e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24ab9e([0x61,0x75,0x74,0x6f]);}function _0x4b7092(){_0x5f5a43[_0x24ab9e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24ab9e([0x76,0x69,0x65,0x77])][_0x24ab9e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24ab9e([0x61,0x75,0x74,0x6f]);}}function _0x576241(_0x231c9a){const _0x135cb1=[new window[(_0x24ab9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20369b=>setTimeout(_0x20369b,0x2a9ee01d^_0x1a20ee)),_0x532651[_0x24ab9e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24ab9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x304208=>{let _0x2616df=0x0;_0x5f5a43[_0x24ab9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x24ab9e([0x6f,0x6e])](_0x24ab9e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5b2e06,_0x3f4d87)=>{_0x3f4d87[0x0][_0x24ab9e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2616df++,_0x2616df==(0x2a97df29^_0x1a20ee)&&(_0x304208(),_0x5b2e06[_0x24ab9e([0x6f,0x66,0x66])]());});}))];return window[_0x24ab9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24ab9e([0x72,0x61,0x63,0x65])](_0x135cb1)[_0x24ab9e([0x74,0x68,0x65,0x6e])](()=>_0x231c9a);}async function _0x5d1f6a(){await _0x532651,_0x5f5a43[_0x24ab9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x24ab9e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x141d6a,_0x5f5a43[_0x24ab9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x24ab9e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x141d6a,_0x5f5a43[_0x24ab9e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24ab9e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x30455d(_0x3b575a){const _0x257b1d=_0x15fc11();_0x5f5a43[_0x257b1d]=_0x24ab9e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3b575a,_0x3b575a!=_0x24ab9e([0x56,0x61,0x6c,0x69,0x64])&&_0x5d1f6a();}function _0x15fc11(){const _0x4fcbc4=window[_0x24ab9e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24ab9e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24ab9e([0x6e,0x6f,0x77])]())[_0x24ab9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24ab9e([0x2e]),'');let _0x3ca9bc=_0x24ab9e([0x70]);for(let _0x502cb1=0x0;_0x502cb1<_0x4fcbc4[_0x24ab9e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x502cb1+=0x2){let _0x81982e=window[_0x24ab9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fcbc4[_0x24ab9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x502cb1,_0x502cb1+0x2));_0x81982e>=_0x49f14c[_0x24ab9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x81982e-=_0x49f14c[_0x24ab9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ca9bc+=_0x49f14c[_0x81982e];}return _0x3ca9bc;}function _0x47aab3(){const _0x3e83b2=_0x18c00f[_0x24ab9e([0x73,0x70,0x6c,0x69,0x74])](_0x24ab9e([0x2e]));if(0x3!=_0x3e83b2[_0x24ab9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x530bda(_0x3e83b2[0x1]);function _0x530bda(_0x2dd851){const _0x18475c=_0x51eee5(_0x2dd851);return _0x18475c&&_0x2983a7()?_0x18475c:null;function _0x2983a7(){const _0x5a1767=_0x18475c[_0x24ab9e([0x6a,0x74,0x69])],_0x5de04f=window[_0x24ab9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a1767[_0x24ab9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a1767[_0x24ab9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3380e5={..._0x18475c,[_0x24ab9e([0x6a,0x74,0x69])]:_0x5a1767[_0x24ab9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a1767[_0x24ab9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3380e5[_0x24ab9e([0x76,0x63])],_0xf15712(_0x3380e5)==_0x5de04f;}}}async function _0x1f8772(){let _0x22bed9=!0x0;try{const _0x4d3cd1=_0x18c00f[_0x24ab9e([0x73,0x70,0x6c,0x69,0x74])](_0x24ab9e([0x2e])),[_0x5791df,_0x245fc8,_0x4de8b9]=_0x4d3cd1;return _0x3a948d(_0x5791df),await _0x3a7ab8(_0x5791df,_0x245fc8,_0x4de8b9),_0x22bed9;}catch(_0x3b69c0){return!0x1;}function _0x3a948d(_0x3671bd){const _0x204e9b=_0x51eee5(_0x3671bd);_0x204e9b&&_0x204e9b[_0x24ab9e([0x61,0x6c,0x67])]==_0x24ab9e([0x45,0x53,0x32,0x35,0x36])||(_0x22bed9=!0x1);}async function _0x3a7ab8(_0x45cb8e,_0x42d73f,_0x4b04b2){const _0xae1886=window[_0x24ab9e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24ab9e([0x66,0x72,0x6f,0x6d])](_0x39d8f7(_0x4b04b2),_0x2770f1=>_0x2770f1[_0x24ab9e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x26f1d8=new window[(_0x24ab9e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24ab9e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45cb8e+_0x24ab9e([0x2e])+_0x42d73f),_0x3633d3=window[_0x24ab9e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24ab9e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3633d3)return;const _0x587566=await _0x3633d3[_0x24ab9e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24ab9e([0x6a,0x77,0x6b]),_0x26f4dc,{[_0x24ab9e([0x6e,0x61,0x6d,0x65])]:_0x24ab9e([0x45,0x43,0x44,0x53,0x41]),[_0x24ab9e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24ab9e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24ab9e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3633d3[_0x24ab9e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24ab9e([0x6e,0x61,0x6d,0x65])]:_0x24ab9e([0x45,0x43,0x44,0x53,0x41]),[_0x24ab9e([0x68,0x61,0x73,0x68])]:{[_0x24ab9e([0x6e,0x61,0x6d,0x65])]:_0x24ab9e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x587566,_0xae1886,_0x26f1d8)||(_0x22bed9=!0x1);}}function _0x51eee5(_0x2c98e4){return _0x2c98e4[_0x24ab9e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24ab9e([0x65,0x79]))?JSON[_0x24ab9e([0x70,0x61,0x72,0x73,0x65])](_0x39d8f7(_0x2c98e4)):null;}function _0x39d8f7(_0x2e1a88){return window[_0x24ab9e([0x61,0x74,0x6f,0x62])](_0x2e1a88[_0x24ab9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24ab9e([0x2b]))[_0x24ab9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24ab9e([0x2f])));}function _0xf15712(_0x54fa30){let _0x2d3419=0x1505;function _0x360f24(_0x4c50c0){for(let _0x2d061e=0x0;_0x2d061e<_0x4c50c0[_0x24ab9e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d061e++){const _0x5747a8=_0x4c50c0[_0x24ab9e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2d061e);_0x2d3419=(_0x2d3419<<0x5)+_0x2d3419+_0x5747a8,_0x2d3419&=_0x2d3419;}}function _0x4b579e(_0x39bbeb){Array[_0x24ab9e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x39bbeb)?_0x39bbeb[_0x24ab9e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4b579e):_0x39bbeb&&typeof _0x39bbeb==_0x24ab9e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24ab9e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x39bbeb)[_0x24ab9e([0x73,0x6f,0x72,0x74])]()[_0x24ab9e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ad005,_0x10b63a])=>{_0x360f24(_0x4ad005),_0x4b579e(_0x10b63a);}):_0x360f24(window[_0x24ab9e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x39bbeb));}return _0x4b579e(_0x54fa30),_0x2d3419>>>0x0;}function _0x1ec18c(_0x21c2a5){return _0x21c2a5[_0x24ab9e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24ab9e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24ab9e([0x30]));}function _0xaaf5ad(_0x285f54){return _0x285f54[_0x24ab9e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24ab9e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24ab9e([0x6a,0x6f,0x69,0x6e])]('');}function _0x141d6a(){}function _0x24ab9e(_0x890ffa){const _0x37164f=_0x40e0;return _0x890ffa[_0x37164f(0xbf)](_0x1c0688=>String[_0x37164f(0xc6)](_0x1c0688))[_0x37164f(0x87)]('');}_0x30455d(await _0x12e1b9());}(this);}[_0x36de28(0xa1)](){const _0x41a5bd=_0x36de28,_0x16022e=this[_0x41a5bd(0x85)][_0x41a5bd(0xaa)][_0x41a5bd(0xce)];_0x16022e[_0x41a5bd(0x9f)](_0x41a5bd(0xd3))&&_0x16022e[_0x41a5bd(0xcd)](_0x41a5bd(0xd3),{'allowAttributes':[_0x41a5bd(0xb1)]}),_0x16022e[_0x41a5bd(0x9f)](_0x41a5bd(0x8b))&&_0x16022e[_0x41a5bd(0xcd)](_0x41a5bd(0x8b),{'allowAttributes':[_0x41a5bd(0xb1)]});}[_0x36de28(0x91)](){const _0x5b86d7=_0x36de28,_0x34500a=this[_0x5b86d7(0x85)];_0x34500a[_0x5b86d7(0xbe)][_0x5b86d7(0x9c)](_0x5b86d7(0xb0))[_0x5b86d7(0xba)]({'model':_0x5b86d7(0xb1),'view':_0x5b86d7(0x8f)}),_0x34500a[_0x5b86d7(0xbe)][_0x5b86d7(0x9c)](_0x5b86d7(0xa3))[_0x5b86d7(0x9e)]({'model':{'key':_0x5b86d7(0xb1),'value':_0x4afae5=>_0x4afae5[_0x5b86d7(0xc4)](_0x5b86d7(0x8f))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x244d7c=_0x34500a[_0x5b86d7(0xa0)][_0x5b86d7(0xd6)](_0x5b86d7(0xad));_0x244d7c&&this[_0x5b86d7(0x8d)](_0x244d7c,_0x5b86d7(0x98),(_0x48e38a,[_0x3f2e54,_0x236670])=>{const _0x4a7643=_0x5b86d7;_0x3f2e54[_0x4a7643(0xbc)](_0x4a7643(0xb1),_0x236670);});}[_0x36de28(0xcc)](){const _0x48b22b=_0x36de28,_0xb7076=this[_0x48b22b(0x85)][_0x48b22b(0xb7)][_0x48b22b(0xd6)](_0x48b22b(0x9d))||{},_0x1e30fd=this[_0x48b22b(0x85)][_0x48b22b(0xb7)][_0x48b22b(0xd6)](_0x48b22b(0xb3))||'';this[_0x48b22b(0xb5)]=_0x1a6e33(_0x52aafd[_0x48b22b(0xb4)],_0x48b22b(0xd2),{..._0xb7076,'pubkey':_0x1e30fd,'ctx-name':_0x48b22b(0xcb),'sourceList':'','imgOnly':_0x48b22b(0xae),'removeCopyright':_0x48b22b(0xae),'localeName':this[_0x48b22b(0x85)][_0x48b22b(0x8c)][_0x48b22b(0xb2)],'externalSourcesEmbedCss':_0x48b22b(0xac)}),this[_0x48b22b(0xb5)][_0x48b22b(0xd4)]=_0x35cdea=>{const _0x4e3f92=_0x48b22b;if(_0x4e3f92(0x9a)==_0x35cdea)return _0x4e3f92(0x92);},_0x52aafd[_0x48b22b(0xb4)][_0x48b22b(0xcf)][_0x48b22b(0xaf)](this[_0x48b22b(0xb5)]);}[_0x36de28(0x99)](){const _0x4ba214=_0x36de28;this[_0x4ba214(0x95)]=_0x1a6e33(_0x52aafd[_0x4ba214(0xb4)],_0x4ba214(0xa9),{'ctx-name':_0x4ba214(0xcb)}),_0x52aafd[_0x4ba214(0xb4)][_0x4ba214(0xcf)][_0x4ba214(0xaf)](this[_0x4ba214(0x95)]);}[_0x36de28(0x8e)](){const _0x78bf2b=_0x36de28,_0x84f403=this[_0x78bf2b(0x85)][_0x78bf2b(0xa0)][_0x78bf2b(0xd6)](_0x78bf2b(0xb9));_0x84f403&&this[_0x78bf2b(0x8d)](_0x84f403,_0x78bf2b(0xca),()=>{const _0x5f0e26=_0x78bf2b,_0x362557=this[_0x5f0e26(0x85)][_0x5f0e26(0xaa)][_0x5f0e26(0xb4)][_0x5f0e26(0x90)][_0x5f0e26(0x89)]();_0x362557&&_0x362557[_0x5f0e26(0xc4)](_0x5f0e26(0xb1))&&this[_0x5f0e26(0x85)][_0x5f0e26(0xa7)][_0x5f0e26(0x86)][_0x5f0e26(0xa6)](_0x5f0e26(0xd0),()=>{const _0x52452f=_0x5f0e26;_0xd066e5(this[_0x52452f(0x85)],_0x362557);});});const _0x22dcda=this[_0x78bf2b(0x85)][_0x78bf2b(0xa0)][_0x78bf2b(0xd6)](_0x78bf2b(0xb6));_0x22dcda&&this[_0x78bf2b(0x8d)](_0x22dcda,_0x78bf2b(0xca),()=>{const _0x283323=_0x78bf2b,_0xced04=this[_0x283323(0x85)][_0x283323(0xaa)][_0x283323(0xb4)][_0x283323(0x90)][_0x283323(0x89)]();_0xced04&&_0xced04[_0x283323(0xc4)](_0x283323(0xb1))&&this[_0x283323(0x85)][_0x283323(0xa7)][_0x283323(0x86)][_0x283323(0xa6)](_0x283323(0xd0),()=>{const _0x44c4f0=_0x283323;_0xd066e5(this[_0x44c4f0(0x85)],_0xced04);});});}}
|