@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250404.0 → 0.0.0-nightly-20250405.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/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/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x510bda,Command as _0x29f821}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x44ce61,IconGooglePhotos as _0x586e39,IconGoogleDrive as _0x720729,IconFacebook as _0x384c4e,IconDropbox as _0x4ed869,IconUploadcareLink as _0x1d73e2,IconUploadcareImageUpload as _0xdd8124,IconError as et,IconUploadcareImageEdit as _0x17de08}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x337eee,MenuBarMenuListItemButtonView as _0x4ab264,View as _0x5dd053,FocusCycler as _0x4688d9,Dialog as _0x971214,DialogViewPosition as _0x42b264,SpinnerView as _0x258d43,IconView as at,Notification as _0x54db13}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xfc14d3,DomEmitterMixin as _0x5ee508,global as _0x5b6665,getAncestors as _0x6b3053,ObservableMixin as _0x315153,createElement as _0xee2fdc,uid as _0x4fcd3f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x182f2a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x3af6fd,info as _0x21ba82}from'@uploadcare/upload-client';import*as _0x52fb9d from'@uploadcare/file-uploader';var o=function(_0x1794c8){return _0x1794c8['Local']='local',_0x1794c8['URL']='url',_0x1794c8['Dropbox']='dropbox',_0x1794c8['GDrive']='gdrive',_0x1794c8['Facebook']='facebook',_0x1794c8['GPhotos']='gphotos',_0x1794c8['OneDrive']='onedrive',_0x1794c8;}({});function _(_0x3433fb,_0x156e95,_0x41a57f){const t=_0x3433fb['t'],_0x3e974c=_0x3433fb['t'];switch(_0x156e95){case o['Local']:return{'text':_0x3e974c('Insert'===_0x41a57f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3e974c('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x41a57f?_0x3e974c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3e974c('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x41a57f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x41a57f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x41a57f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x41a57f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x41a57f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x156e95;}}class e extends _0x510bda{['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 _0x4f2f9c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5f33fe;for(const _0x3e0a7e in _0x4f2f9c){const _0x5ac762=_0x3e0a7e,_0x12f9ca=_0x4f2f9c[_0x5ac762];if('uploadcareLicenseKeyValid'==_0x12f9ca||'uploadcareLicenseKeyInvalid'==_0x12f9ca||'uploadcareLicenseKeyExpired'==_0x12f9ca||'uploadcareLicenseKeyDomainLimit'==_0x12f9ca||'uploadcareLicenseKeyNotAllowed'==_0x12f9ca||'uploadcareLicenseKeyEvaluationLimit'==_0x12f9ca||'uploadcareLicenseKeyTrialLimit'==_0x12f9ca||'uploadcareLicenseKeyUsageLimit'==_0x12f9ca){delete _0x4f2f9c[_0x5ac762],_0x5f33fe=_0x12f9ca,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5f33fe&&_0x4f2f9c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5f33fe&&_0x4f2f9c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5f33fe&&_0x4f2f9c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5f33fe&&_0x4f2f9c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5f33fe&&_0x4f2f9c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5f33fe&&_0x4f2f9c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5f33fe&&_0x4f2f9c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3e8ca7}=this,_0x1cd6ee=_0x3e8ca7['commands']['get']('uploadcare');if(!_0x1cd6ee)return;const _0x5995e9=this['_normalizeConfigSourceList'](_0x3e8ca7['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x453dd0,_0x24f6cc)=>{const _0x18d914=this['_getIntegrationKey'](_0x24f6cc['type']);return _0x453dd0[_0x18d914]||(_0x453dd0[_0x18d914]=[]),_0x453dd0[_0x18d914]['push'](_0x24f6cc),_0x453dd0;},{});_0x3e8ca7['plugins']['has']('ImageInsertUI')&&_0x3e8ca7['commands']['get']('uploadcare')&&Object['entries'](_0x5995e9)['forEach'](([_0x293ca9,_0x1f598a])=>{_0x3e8ca7['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x293ca9,'observable':()=>_0x1cd6ee,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1f598a),'formViewCreator':()=>this['_createDropdownButtons'](_0x1f598a),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1f598a),'override':'assetManager'!==_0x293ca9});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x89e382){const {locale:_0x114a99}=this['editor'];return _0x89e382['map'](_0x49df0d=>{const _0x266eed=_(_0x114a99,_0x49df0d,'Insert');switch(_0x49df0d){case o['Local']:return{'icon':_0xdd8124,'type':o['Local'],..._0x266eed};case o['URL']:return{'icon':_0x1d73e2,'type':o['URL'],..._0x266eed};case o['Dropbox']:return{'icon':_0x4ed869,'type':o['Dropbox'],..._0x266eed};case o['Facebook']:return{'icon':_0x384c4e,'type':o['Facebook'],..._0x266eed};case o['GDrive']:return{'icon':_0x720729,'type':o['GDrive'],..._0x266eed};case o['GPhotos']:return{'icon':_0x586e39,'type':o['GPhotos'],..._0x266eed};case o['OneDrive']:return{'icon':_0x44ce61,'type':o['OneDrive'],..._0x266eed};}});}['_getIntegrationKey'](_0x151fb6){switch(_0x151fb6){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3307fd,_0x22d86c){const _0x3e410b=this['editor'],_0x4c8bf5=new _0x3307fd(_0x3e410b['locale']),_0x3d1e0e=_0x3e410b['commands']['get']('uploadcare');return _0x4c8bf5['bind']('isEnabled')['to'](_0x3d1e0e),_0x4c8bf5['on']('execute',()=>{_0x3d1e0e['execute'](_0x22d86c);}),_0x4c8bf5;}['_createToolbarButton'](_0x2a192b){const {locale:_0x386e59}=this['editor'],_0x3c92e0=this['editor']['plugins']['get']('ImageInsertUI'),_0x34758a=_0x2a192b[0x0],_0x2e2a7f=this['_createButton'](_0x337eee,_0x34758a['type']);return _0x2e2a7f['icon']=_0x34758a['icon'],_0x2e2a7f['bind']('label')['to'](_0x3c92e0,'isImageSelected',_0x425350=>_(_0x386e59,_0x34758a['type'],_0x425350?'Replace':'Insert')['text']),_0x2e2a7f['tooltip']=!0x0,_0x2e2a7f;}['_createDropdownButtons'](_0x3cc573){const {locale:_0x1c1f87}=this['editor'],_0x3745de=this['editor']['plugins']['get']('ImageInsertUI');return _0x3cc573['map'](_0x3825a7=>{const _0x218ccb=this['_createButton'](_0x337eee,_0x3825a7['type']);return _0x218ccb['withText']=!0x0,_0x218ccb['icon']=_0x3825a7['icon'],_0x218ccb['bind']('label')['to'](_0x3745de,'isImageSelected',_0x1298ee=>_(_0x1c1f87,_0x3825a7['type'],_0x1298ee?'Replace':'Insert')['text']),_0x218ccb;});}['_createMenuBarButtons'](_0x5939a6){return _0x5939a6['map'](_0x291a88=>{const _0x34bfbd=this['_createButton'](_0x4ab264,_0x291a88['type']);return _0x34bfbd['icon']=_0x291a88['icon'],_0x34bfbd['label']=_0x291a88['shortText'],_0x34bfbd;});}}class q extends _0x5dd053{['focusTracker'];['focusCycler'];constructor(_0x433ce0){super(_0x433ce0),this['focusTracker']=new _0xfc14d3(),this['focusCycler']=new _0x4688d9({'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(_0x70a1ec){super(_0x70a1ec),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(_0x606c28,_0x115105){const _0x13552b=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1a89c3=>_0x1a89c3<=_0x115105)['map'](_0x46c039=>_0x606c28['replace'](/\/$/,'')+'/-/resize/'+_0x46c039+'x/\x20'+_0x46c039+'w');return{'imageFallbackUrl':_0x606c28,'imageSources':[{'srcset':_0x13552b['join'](',\x20'),'sizes':'(max-width:\x20'+_0x115105+'px)\x20100vw,\x20'+_0x115105+'px','type':'image/webp'}]};}function A(_0xbc5349,_0x2be112,_0x32ffff){const _0x2e92ff=_0xbc5349['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2e92ff?parseInt(_0x2e92ff[0x1],0xa):_0x2be112,'height':_0x2e92ff?parseInt(_0x2e92ff[0x2],0xa):_0x32ffff};}function m(_0x566687,_0x6a9b72){const _0x17bfd7=Object['create'](_0x5ee508),_0x4ffa05=_0x566687['plugins']['get']('ImageUtils'),_0x3e2ce5=_0x566687['editing']['mapper']['toViewElement'](_0x6a9b72),_0x4ae164=_0x4ffa05['findViewImgElement'](_0x3e2ce5),_0x5c0184=_0x566687['editing']['view']['domConverter']['viewToDom'](_0x4ae164),_0x57b66a=_0x6a9b72['getAttribute']('width'),_0x1f2172=_0x6a9b72['getAttribute']('height'),_0x5a2483='image-processing';_0x566687['editing']['view']['change'](_0x3bc811=>{_0x3bc811['addClass'](_0x5a2483,_0x3e2ce5),_0x3bc811['setStyle']('aspect-ratio',_0x57b66a+'/'+_0x1f2172,_0x4ae164);}),_0x17bfd7['listenTo'](_0x5c0184,'load',()=>{_0x17bfd7['stopListening'](_0x5c0184,'load'),_0x566687['editing']['view']['change'](_0x8b658=>{_0x8b658['removeClass'](_0x5a2483,_0x3e2ce5),_0x8b658['removeStyle']('aspect-ratio',_0x4ae164);});});}function R(_0x33c831){if(Array['isArray'](_0x33c831)){const _0x5ea3cb=_0x33c831['map'](R);return _0x17ab26=>_0x5ea3cb['some'](_0x8ab0bc=>_0x8ab0bc(_0x17ab26));}if('origin'==_0x33c831){const _0x3481e3=_0x5b6665['window']['location']['origin'];return _0x1f9364=>new URL(_0x1f9364,_0x5b6665['document']['baseURI'])['origin']==_0x3481e3;}return'function'==typeof _0x33c831?_0x33c831:_0x33c831 instanceof RegExp?_0x1326a0=>!(!_0x1326a0['match'](_0x33c831)&&!_0x1326a0['replace'](/^https?:\/\//,'')['match'](_0x33c831)):()=>!0x1;}function F(_0x4f3f20,_0x5a754a){return _0x6b3053(_0x4f3f20['target'])['includes'](_0x5a754a);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x315153(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2f2ad1,_0x225200,_0x1b3c21){super(),this['_editor']=_0x2f2ad1,this['_editing']=_0x225200,this['_dialog']=_0x2f2ad1['plugins']['get'](_0x971214),this['_api']=_0x225200['ctxElement']['getAPI'](),this['_type']=_0x1b3c21,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:_0x5211ca,model:_0x1d4af1}=this['_editor'],_0xe7aa85=_0x1d4af1['document']['selection']['getSelectedElement'](),_0x4b3516=_0xe7aa85&&(_0xe7aa85['is']('element','imageBlock')||_0xe7aa85['is']('element','imageInline'));this['_formView']=new S(_0x5211ca),this['_dialog']['show']({'id':'uploadCare','icon':_0xdd8124,'title':_(_0x5211ca,this['_type'],_0x4b3516?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x42b264['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1f0801=>!F(_0x1f0801,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3993c3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x340cf5=>{const _0x30f7ff=_0x3993c3['length'];for(const _0x1733a6 of _0x3993c3){const _0x13ebdc=_0x1733a6===_0x3993c3[_0x30f7ff-0x1],{cdnUrl:_0x2acf60,fileInfo:_0x39b4b4}=_0x1733a6;if(!_0x2acf60||!_0x39b4b4)continue;const {width:_0x58ae87,height:_0x223bf5}=_0x39b4b4['imageInfo'],_0x1c3e6d=A(_0x2acf60,_0x58ae87,_0x223bf5),_0x1ff431=E(_0x2acf60,_0x1c3e6d['width']),_0x419041={'id':_0x39b4b4['uuid'],'type':'image','attributes':{'imageDimension':_0x1c3e6d,..._0x1ff431}};this['_insertAsset'](_0x419041,_0x13ebdc,_0x340cf5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x548867=>{'idle'===_0x548867['detail']['status']&&!_0x548867['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3c5965,_0x350ebe,_0x4854ec){const _0x4dc340=this['_editor']['model']['document']['selection'],_0x24127b=_0x4dc340['getSelectedElement'](),_0x20079c=!(!_0x24127b||!_0x24127b['is']('element','imageInline'));_0x4854ec['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3c5965,_0x20079c),_0x350ebe||_0x4854ec['setSelection'](_0x4dc340['getLastPosition']());}['_insertImage'](_0x1128a1,_0xe08ff5){const _0x51fef1=this['_editor'],{imageDimension:_0x3e8478,imageFallbackUrl:_0x5f3b4c,imageSources:_0x23c036}=_0x1128a1['attributes'];_0x51fef1['execute']('insertImage',{'imageType':_0xe08ff5?'imageInline':null,'source':{'uploadcareImageId':_0x1128a1['id'],'src':_0x5f3b4c,'sources':_0x23c036,..._0x3e8478}});}}class n extends _0x29f821{['_editing'];['_controller']=null;static get['requires'](){return[_0x971214,i];}constructor(_0x8dc416){super(_0x8dc416),this['_editing']=_0x8dc416['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x12bb32){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x12bb32);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5c99d4,publicKey:_0x5276be,signal:_0x484776,onProgress:_0x21e47b}){return _0x3af6fd(_0x5c99d4,{'publicKey':_0x5276be,'store':'auto','signal':_0x484776,'onProgress':_0x21e47b});}static['getInfo'](_0x59e733,_0xa2ac56){return _0x21ba82(_0x59e733,_0xa2ac56);}}class p extends _0x510bda{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x182f2a,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x107afd=this['editor'];if(!!!_0x107afd['config']['get']('uploadcare'))return;_0x107afd['plugins']['get'](_0x182f2a)['createUploadAdapter']=_0x380b65=>new x(_0x380b65,_0x107afd),_0x107afd['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x31af32,{imageElement:_0x1821ed,data:_0x544040})=>{_0x107afd['model']['change'](_0x298264=>{_0x298264['setAttribute']('uploadcareImageId',_0x544040['uploadcareImageId'],_0x1821ed);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2b23a2,_0x2f5302){this['loader']=_0x2b23a2,this['editor']=_0x2f5302,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x4bf5cb=this['editor']['config']['get']('uploadcare.pubkey'),_0x4b91f4=await this['loader']['file'];return C['upload']({'file':_0x4b91f4,'publicKey':_0x4bf5cb,'signal':this['controller']['signal'],'onProgress':_0x279cf8=>{_0x279cf8&&_0x279cf8['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x279cf8['value']);}})['then'](async _0x1ea5e0=>{const {imageFallbackUrl:_0xce24c7,imageSources:_0x36a6be}=E(_0x1ea5e0['cdnUrl'],_0x1ea5e0['imageInfo']['width']);return{'uploadcareImageId':_0x1ea5e0['uuid'],'default':_0xce24c7,'sources':_0x36a6be};})['catch'](()=>{const _0xf3b3e=t('Cannot\x20upload\x20file:')+('\x20'+_0x4b91f4['name']+'.');return Promise['reject'](_0xf3b3e);});}['abort'](){this['controller']['abort']();}}class i extends _0x510bda{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x971214];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x186539=this['editor'];_0x186539['commands']['add']('uploadcare',new n(_0x186539));}['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 _0x1c2f82=_0x5b6665['document']['querySelector']('input[uploadcare-file-input]');_0x1c2f82&&_0x1c2f82['remove']();}),async function(_0xecb13b){const _0x652357=_0x373924([0x36,0x53,0x5a,0x56,0x76,0x79,0x69,0x43,0x62,0x4e,0x51,0x54,0x4f,0x70,0x64,0x33,0x6e,0x57,0x61,0x46,0x31,0x7a,0x4b,0x4c,0x49,0x34,0x6d,0x73,0x48,0x6f,0x67,0x77,0x39,0x45,0x6a,0x78,0x66,0x37,0x41,0x52,0x63,0x65,0x32,0x58,0x4a,0x44,0x6b,0x47,0x6c,0x35,0x50,0x75,0x30,0x38,0x71,0x42,0x72,0x4d,0x74,0x59,0x68,0x55]),_0x9dd09e=0x1949f838,_0x465469=0x194e9c28^_0x9dd09e,_0x2f110e=window[_0x373924([0x44,0x61,0x74,0x65])][_0x373924([0x6e,0x6f,0x77])](),_0x123359=_0xecb13b[_0x373924([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x17f4f0=new window[(_0x373924([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43ce87=>{_0x123359[_0x373924([0x6f,0x6e,0x63,0x65])](_0x373924([0x72,0x65,0x61,0x64,0x79]),_0x43ce87);}),_0x9d14a0={[_0x373924([0x6b,0x74,0x79])]:_0x373924([0x45,0x43]),[_0x373924([0x75,0x73,0x65])]:_0x373924([0x73,0x69,0x67]),[_0x373924([0x63,0x72,0x76])]:_0x373924([0x50,0x2d,0x32,0x35,0x36]),[_0x373924([0x78])]:_0x373924([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]),[_0x373924([0x79])]:_0x373924([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]),[_0x373924([0x61,0x6c,0x67])]:_0x373924([0x45,0x53,0x32,0x35,0x36])},_0x15d915=_0x123359[_0x373924([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x373924([0x67,0x65,0x74])](_0x373924([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8397fa(){let _0x179da1,_0x192981=null,_0xfd7f88=null;try{if(_0x15d915==_0x373924([0x47,0x50,0x4c]))return _0x373924([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x179da1=_0x537151(),!_0x179da1)return _0x373924([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x179da1[_0x373924([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xfd7f88=_0x5a0321(_0x179da1[_0x373924([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x179da1[_0x373924([0x6a,0x74,0x69])])),await _0x364525()?_0x4015f2()?_0x173e44()?_0x373924([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x23f9d5()?(_0x179da1[_0x373924([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x373924([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x192981=_0x1d17a9(_0x373924([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x179da1[_0x373924([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x373924([0x74,0x72,0x69,0x61,0x6c])&&(_0x192981=_0x1d17a9(_0x373924([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1986bc()):_0x373924([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x373924([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x373924([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x262a74){return _0x373924([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x173e44(){const _0x44ccd1=[_0x373924([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x373924([0x74,0x72,0x69,0x61,0x6c])][_0x373924([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x179da1[_0x373924([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f110e/0x3e8:0xe10*_0x465469;return _0x179da1[_0x373924([0x65,0x78,0x70])]<_0x44ccd1;}function _0x4015f2(){const _0x402df2=_0x179da1[_0x373924([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x402df2&&(!!_0x402df2[_0x373924([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x373924([0x2a]))||!!_0x402df2[_0x373924([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x373924([0x55,0x50,0x4c,0x43])));}function _0x23f9d5(){const _0xf26187=_0x179da1[_0x373924([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf26187||0x0==_0xf26187[_0x373924([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d666d}=new URL(window[_0x373924([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xf26187[_0x373924([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d666d))return!0x0;const _0x45d759=_0x3d666d[_0x373924([0x73,0x70,0x6c,0x69,0x74])](_0x373924([0x2e]));return _0xf26187[_0x373924([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18fbe2=>_0x18fbe2[_0x373924([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x373924([0x2a])))[_0x373924([0x6d,0x61,0x70])](_0x49bdaf=>_0x49bdaf[_0x373924([0x73,0x70,0x6c,0x69,0x74])](_0x373924([0x2e])))[_0x373924([0x73,0x6f,0x6d,0x65])](_0x295179=>_0x45d759[_0x373924([0x65,0x76,0x65,0x72,0x79])]((_0x5662ef,_0x25fdf2)=>_0x295179[_0x25fdf2]===_0x5662ef||_0x295179[_0x25fdf2]===_0x373924([0x2a])));}function _0x1986bc(){return _0x192981&&_0xfd7f88?new window[(_0x373924([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9d56f9,_0x48709d)=>{_0x192981[_0x373924([0x74,0x68,0x65,0x6e])](_0x9d56f9,_0x48709d),_0xfd7f88[_0x373924([0x74,0x68,0x65,0x6e])](_0x21a86f=>{_0x21a86f!=_0x373924([0x56,0x61,0x6c,0x69,0x64])&&_0x9d56f9(_0x21a86f);},_0x48709d);}):_0x192981||_0xfd7f88||_0x373924([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a0321(_0x29aaeb,_0xe766c8){return new window[(_0x373924([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4472ee=>{if(_0x579032())return _0x4472ee(_0x373924([0x56,0x61,0x6c,0x69,0x64]));_0x5e3fdc(),_0x123359[_0x373924([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x373924([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a21f3=!0x1;const _0xced271=_0x4fcd3f();function _0x2be313(_0x192d0d){return!!_0x192d0d&&(typeof _0x192d0d===_0x373924([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x192d0d===_0x373924([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x192d0d[_0x373924([0x74,0x68,0x65,0x6e])]===_0x373924([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x192d0d[_0x373924([0x63,0x61,0x74,0x63,0x68])]===_0x373924([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4344e4(_0x321f7a){_0x2cfd10(_0x321f7a)[_0x373924([0x74,0x68,0x65,0x6e])](_0x3b210e=>{if(!_0x3b210e||_0x3b210e[_0x373924([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x373924([0x6f,0x6b]))return _0x373924([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd7eec8(_0x113eac(_0xced271+_0xe766c8))!=_0x3b210e[_0x373924([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x373924([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x373924([0x56,0x61,0x6c,0x69,0x64]);})[_0x373924([0x74,0x68,0x65,0x6e])](_0x4300fa=>(_0x237cd9(),_0x4300fa),()=>{const _0x1c461b=_0x1640b4();return null==_0x1c461b?(_0x237cd9(),_0x373924([0x56,0x61,0x6c,0x69,0x64])):_0x373924(_0x2f110e-_0x1c461b>(0x3d457c38^_0x9dd09e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x373924([0x74,0x68,0x65,0x6e])](_0x4472ee)[_0x373924([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4472ee(_0x373924([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d9734=0x197f16b8^_0x9dd09e;function _0x237cd9(){const _0x335e30=_0x373924([0x6c,0x6c,0x63,0x74,0x2d])+_0xd7eec8(_0x113eac(_0x29aaeb)),_0x6d18af=_0x19322b(_0xd7eec8(window[_0x373924([0x4d,0x61,0x74,0x68])][_0x373924([0x63,0x65,0x69,0x6c])](_0x2f110e/_0x4d9734)));window[_0x373924([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x373924([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x335e30,_0x6d18af);}function _0x1640b4(){const _0x2fa593=_0x373924([0x6c,0x6c,0x63,0x74,0x2d])+_0xd7eec8(_0x113eac(_0x29aaeb)),_0x2dd44c=window[_0x373924([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x373924([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fa593);return _0x2dd44c?window[_0x373924([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19322b(_0x2dd44c),0x10)*_0x4d9734:null;}function _0x2cfd10(_0x58a850){return new window[(_0x373924([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bf619,_0x1e53bd)=>{_0x58a850[_0x373924([0x74,0x68,0x65,0x6e])](_0x4bf619,_0x1e53bd),window[_0x373924([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e53bd,0x19482cf8^_0x9dd09e);});}}_0x123359[_0x373924([0x6f,0x6e])](_0x373924([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x530369,_0x470487)=>{if(_0x470487[0x0]!=_0x29aaeb)return _0x4472ee(_0x373924([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x470487[0x1]={..._0x470487[0x1],[_0x373924([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xced271};},{[_0x373924([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x373924([0x68,0x69,0x67,0x68])}),_0x123359[_0x373924([0x6f,0x6e])](_0x373924([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b3fd4=>{_0x2be313(_0x2b3fd4[_0x373924([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a21f3=!0x0,_0x4344e4(_0x2b3fd4[_0x373924([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x373924([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x373924([0x6c,0x6f,0x77])}),_0x17f4f0[_0x373924([0x74,0x68,0x65,0x6e])](()=>{_0x4a21f3||_0x4472ee(_0x373924([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x579032(){return _0x123359[_0x373924([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x373924([0x76,0x69,0x65,0x77])][_0x373924([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x373924([0x61,0x75,0x74,0x6f]);}function _0x5e3fdc(){_0x123359[_0x373924([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x373924([0x76,0x69,0x65,0x77])][_0x373924([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x373924([0x61,0x75,0x74,0x6f]);}}function _0x1d17a9(_0x44e41c){const _0x338af1=[new window[(_0x373924([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x510430=>setTimeout(_0x510430,0x1940c6f4^_0x9dd09e)),_0x17f4f0[_0x373924([0x74,0x68,0x65,0x6e])](()=>new window[(_0x373924([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x124403=>{let _0x326676=0x0;_0x123359[_0x373924([0x6d,0x6f,0x64,0x65,0x6c])][_0x373924([0x6f,0x6e])](_0x373924([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3194e1,_0x139613)=>{_0x139613[0x0][_0x373924([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x326676++,_0x326676==(0x1949f9c0^_0x9dd09e)&&(_0x124403(),_0x3194e1[_0x373924([0x6f,0x66,0x66])]());});}))];return window[_0x373924([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x373924([0x72,0x61,0x63,0x65])](_0x338af1)[_0x373924([0x74,0x68,0x65,0x6e])](()=>_0x44e41c);}async function _0x9f82dc(){await _0x17f4f0,_0x123359[_0x373924([0x6d,0x6f,0x64,0x65,0x6c])][_0x373924([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xecbaa4,_0x123359[_0x373924([0x6d,0x6f,0x64,0x65,0x6c])][_0x373924([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xecbaa4,_0x123359[_0x373924([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x373924([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4cd3e4(_0x2bf4d0){const _0x4b9462=_0x242f9d();_0x123359[_0x4b9462]=_0x373924([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2bf4d0,_0x2bf4d0!=_0x373924([0x56,0x61,0x6c,0x69,0x64])&&_0x9f82dc();}function _0x242f9d(){const _0x4ad06e=window[_0x373924([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x373924([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x373924([0x6e,0x6f,0x77])]())[_0x373924([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x373924([0x2e]),'');let _0x23d1af=_0x373924([0x53]);for(let _0x20ff7c=0x0;_0x20ff7c<_0x4ad06e[_0x373924([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20ff7c+=0x2){let _0x4d71dc=window[_0x373924([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ad06e[_0x373924([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20ff7c,_0x20ff7c+0x2));_0x4d71dc>=_0x652357[_0x373924([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d71dc-=_0x652357[_0x373924([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x23d1af+=_0x652357[_0x4d71dc];}return _0x23d1af;}function _0x537151(){const _0x11f2db=_0x15d915[_0x373924([0x73,0x70,0x6c,0x69,0x74])](_0x373924([0x2e]));if(0x3!=_0x11f2db[_0x373924([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xd519a5(_0x11f2db[0x1]);function _0xd519a5(_0x42aef3){const _0x3344dd=_0x1128ed(_0x42aef3);return _0x3344dd&&_0x4f638d()?_0x3344dd:null;function _0x4f638d(){const _0x30b740=_0x3344dd[_0x373924([0x6a,0x74,0x69])],_0x2cab89=window[_0x373924([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30b740[_0x373924([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30b740[_0x373924([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57dda9={..._0x3344dd,[_0x373924([0x6a,0x74,0x69])]:_0x30b740[_0x373924([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x30b740[_0x373924([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57dda9[_0x373924([0x76,0x63])],_0x113eac(_0x57dda9)==_0x2cab89;}}}async function _0x364525(){let _0xc53c27=!0x0;try{const _0x4cec69=_0x15d915[_0x373924([0x73,0x70,0x6c,0x69,0x74])](_0x373924([0x2e])),[_0x556be6,_0xc3a8f4,_0x476a9b]=_0x4cec69;return _0x558d05(_0x556be6),await _0x280a29(_0x556be6,_0xc3a8f4,_0x476a9b),_0xc53c27;}catch(_0x5643ac){return!0x1;}function _0x558d05(_0x4283b3){const _0x5b316d=_0x1128ed(_0x4283b3);_0x5b316d&&_0x5b316d[_0x373924([0x61,0x6c,0x67])]==_0x373924([0x45,0x53,0x32,0x35,0x36])||(_0xc53c27=!0x1);}async function _0x280a29(_0xaae517,_0x3d0c82,_0x4e7ac2){const _0x27f647=window[_0x373924([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x373924([0x66,0x72,0x6f,0x6d])](_0xf84a6(_0x4e7ac2),_0x5e1cc2=>_0x5e1cc2[_0x373924([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3f9e21=new window[(_0x373924([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x373924([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xaae517+_0x373924([0x2e])+_0x3d0c82),_0x4f60f3=window[_0x373924([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x373924([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f60f3)return;const _0x5cf398=await _0x4f60f3[_0x373924([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x373924([0x6a,0x77,0x6b]),_0x9d14a0,{[_0x373924([0x6e,0x61,0x6d,0x65])]:_0x373924([0x45,0x43,0x44,0x53,0x41]),[_0x373924([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x373924([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x373924([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f60f3[_0x373924([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x373924([0x6e,0x61,0x6d,0x65])]:_0x373924([0x45,0x43,0x44,0x53,0x41]),[_0x373924([0x68,0x61,0x73,0x68])]:{[_0x373924([0x6e,0x61,0x6d,0x65])]:_0x373924([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5cf398,_0x27f647,_0x3f9e21)||(_0xc53c27=!0x1);}}function _0x1128ed(_0x24abfa){return _0x24abfa[_0x373924([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x373924([0x65,0x79]))?JSON[_0x373924([0x70,0x61,0x72,0x73,0x65])](_0xf84a6(_0x24abfa)):null;}function _0xf84a6(_0x2ac5ec){return window[_0x373924([0x61,0x74,0x6f,0x62])](_0x2ac5ec[_0x373924([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x373924([0x2b]))[_0x373924([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x373924([0x2f])));}function _0x113eac(_0x4c43a1){let _0x2905bb=0x1505;function _0x96a139(_0xaa9bf8){for(let _0x438e20=0x0;_0x438e20<_0xaa9bf8[_0x373924([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x438e20++){const _0x5a76d9=_0xaa9bf8[_0x373924([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x438e20);_0x2905bb=(_0x2905bb<<0x5)+_0x2905bb+_0x5a76d9,_0x2905bb&=_0x2905bb;}}function _0x249a87(_0x44d8b8){Array[_0x373924([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x44d8b8)?_0x44d8b8[_0x373924([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x249a87):_0x44d8b8&&typeof _0x44d8b8==_0x373924([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x373924([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x44d8b8)[_0x373924([0x73,0x6f,0x72,0x74])]()[_0x373924([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x91fb15,_0x4971f7])=>{_0x96a139(_0x91fb15),_0x249a87(_0x4971f7);}):_0x96a139(window[_0x373924([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x44d8b8));}return _0x249a87(_0x4c43a1),_0x2905bb>>>0x0;}function _0xd7eec8(_0x28942e){return _0x28942e[_0x373924([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x373924([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x373924([0x30]));}function _0x19322b(_0x3ddd65){return _0x3ddd65[_0x373924([0x73,0x70,0x6c,0x69,0x74])]('')[_0x373924([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x373924([0x6a,0x6f,0x69,0x6e])]('');}function _0xecbaa4(){}function _0x373924(_0x3eb1f7){return _0x3eb1f7['map'](_0x49f884=>String['fromCharCode'](_0x49f884))['join']('');}_0x4cd3e4(await _0x8397fa());}(this);}['_initSchema'](){const _0x4d0a86=this['editor']['model']['schema'];_0x4d0a86['isRegistered']('imageBlock')&&_0x4d0a86['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4d0a86['isRegistered']('imageInline')&&_0x4d0a86['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2db5d5=this['editor'];_0x2db5d5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2db5d5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x25b445=>_0x25b445['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x12885d=_0x2db5d5['commands']['get']('replaceImageSource');_0x12885d&&this['listenTo'](_0x12885d,'cleanupImage',(_0x21d9ea,[_0x430976,_0x4d9f45])=>{_0x430976['removeAttribute']('uploadcareImageId',_0x4d9f45);});}['_initConfig'](){const _0x4f76d5=this['editor']['config']['get']('uploadcare.uploader')||{},_0xcbf3d2=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xee2fdc(_0x5b6665['document'],'uc-config',{..._0x4f76d5,'pubkey':_0xcbf3d2,'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']=_0x3b3a80=>{if('closeMax'==_0x3b3a80)return'#uc-icon-arrow-down';},_0x5b6665['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xee2fdc(_0x5b6665['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x5b6665['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x2555ac=this['editor']['commands']['get']('insertImage');_0x2555ac&&this['listenTo'](_0x2555ac,'execute',()=>{const _0x125439=this['editor']['model']['document']['selection']['getSelectedElement']();_0x125439&&_0x125439['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x125439);});});const _0x469c75=this['editor']['commands']['get']('uploadcareImageReplace');_0x469c75&&this['listenTo'](_0x469c75,'execute',()=>{const _0xd8d14f=this['editor']['model']['document']['selection']['getSelectedElement']();_0xd8d14f&&_0xd8d14f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xd8d14f);});});}}class u extends _0x510bda{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3948e8){super(_0x3948e8),_0x3948e8['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x52fb9d['defineComponents'](_0x52fb9d);}}class ta extends _0x5dd053{constructor(_0x2c183d){super(_0x2c183d);const t=_0x2c183d['t'],_0x48e2c0=this['bindTemplate'],_0x2b8715=new _0x258d43();_0x2b8715['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':[_0x2b8715,{'text':_0x48e2c0['to']('imageUploadProgress',_0x5683e4=>t('Loading\x20image...')+'\x20('+(_0x5683e4||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 _0x5dd053{constructor(_0x55bba9){super(_0x55bba9);const t=_0x55bba9['t'];this['set']('errorType',null);const _0x367cb8=new _0x337eee(_0x55bba9);_0x367cb8['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x367cb8['withText']=!0x0,_0x367cb8['class']='ck-button-action',_0x367cb8['on']('execute',()=>{this['fire']('retry');}),_0x367cb8['bind']('isVisible')['to'](this,'errorType',_0x41daad=>'NotFound'!==_0x41daad);const _0x552757=new at();_0x552757['content']=et,_0x552757['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4f51c8=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':[_0x552757,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4f51c8['to']('errorType',_0x25968a=>t('NotFound'!==_0x25968a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x367cb8]},{'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 _0x5dd053{constructor(_0x3dbd40,_0x391641){super(_0x3dbd40);const _0x140229=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x391641,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x140229['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2f915e,_0x309a68,_0x648525){super(_0x2f915e),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2f915e),this['_errorView']=new rt(_0x2f915e),this['_editingView']=new tt(_0x2f915e,_0x648525),this['_focusableView']=new _0x5dd053(_0x2f915e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x309a68),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'],_0x301f92=>{this['_addUploadcareImageEditorListeners'](_0x301f92);});}),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'](_0x1c0069,_0x1a41b2){const _0x45b1e7='uc-cloud-image-editor',_0x3bfef5=_0x1c0069['querySelector'](_0x45b1e7);if(_0x3bfef5)return _0x1a41b2(_0x3bfef5);const _0xe4e020=new MutationObserver(_0x1cde24=>{const _0x3be671=_0x1cde24['filter'](_0x432d5e=>_0x432d5e['target']===_0x1c0069&&_0x432d5e['addedNodes']['length']>0x0&&_0x432d5e['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x45b1e7);_0x3be671['length']&&(_0xe4e020['disconnect'](),_0x1a41b2(_0x3be671[0x0]['addedNodes'][0x0]));});_0xe4e020['observe'](_0x1c0069,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x64818){_0x64818['addEventListener']('apply',_0x5afd39=>{this['fire']('apply',{'imageSrc':_0x5afd39['detail']['cdnUrl']});}),_0x64818['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class O extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x315153(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x22d7a2,_0x5a908c,_0x4f7eba){super(),this['_editor']=_0x22d7a2,this['_dialog']=_0x5a908c,this['_imageElement']=_0x4f7eba,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 _0x8d26e=this['_imageElement'],_0x154956=_0x8d26e['getAttribute']('uploadcareImageId'),_0x1fdd74=_0x8d26e['getAttribute']('src');if(_0x154956)await this['_loadImageInfo'](_0x154956,_0x1fdd74);else{if(this['_imageCache']['has'](_0x1fdd74)){const _0x42c188=this['_imageCache']['get'](_0x1fdd74);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x42c188['url'],this['imageDimension']=_0x42c188['dimension'],this['imageId']=_0x42c188['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x29ac17}=this['_editor'],t=_0x29ac17['t'],_0x540bfe=new Z(_0x29ac17,this['imageStatus'],this['_attributes']);_0x540bfe['bind']('status')['to'](this,'imageStatus'),_0x540bfe['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x540bfe['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x540bfe['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x540bfe,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x17de08,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x540bfe,'position':_0x42b264['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x540bfe['focus']();},'onHide':()=>{_0x540bfe['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xe1b064=>!F(_0xe1b064,_0x540bfe['element'])}});}['_loadImageInfo'](_0x35caea,_0x125975){return C['getInfo'](_0x35caea,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2e6c7b=>{const {width:_0x10b6ee,height:_0x1ef47c}=_0x2e6c7b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x125975,this['imageDimension']={'width':_0x10b6ee,'height':_0x1ef47c},this['imageId']=_0x35caea;})['catch'](_0x39aeed=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x39aeed['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x37202a,_0x1e747c){return this['_getImageAsFile'](_0x37202a)['then'](_0x4933c0=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1e747c['signal'],'file':_0x4933c0,'onProgress':_0x37dbdd=>{_0x37dbdd&&_0x37dbdd['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x37dbdd['value']));}}))['then'](_0x4166e3=>{const {width:_0x181eda,height:_0x41de0a}=_0x4166e3['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4166e3['cdnUrl'],this['imageDimension']={'width':_0x181eda,'height':_0x41de0a},this['imageId']=_0x4166e3['uuid'],this['imageUploadProgress']=null;const _0xc7e55b=_0x37202a['getAttribute']('src');this['_imageCache']['set'](_0xc7e55b,{'id':_0x4166e3['uuid'],'url':_0x4166e3['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x22479f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22479f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3aa11f,_0x190962){_0x3aa11f['on']('apply',(_0x124e4b,_0x5b6581)=>{this['_replaceImage'](_0x190962,_0x5b6581['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3aa11f['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3aa11f['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x102249,_0x1cdaef,_0x10bbad){const _0x207324=this['_editor'],{width:_0x1bc626,height:_0xc32a76}=A(_0x1cdaef,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x25a045,imageSources:_0x508ef8}=E(_0x1cdaef,_0x1bc626);_0x207324['model']['change'](_0x5f21ae=>{if('$graveyard'===_0x102249['root']['rootName']){_0x207324['execute']('insertImage',{'imageType':_0x102249['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x102249['getAttributes']()),'uploadcareImageId':_0x10bbad,'src':_0x25a045,'sources':_0x508ef8,'width':_0x1bc626,'height':_0xc32a76}});const _0x334e39=_0x102249['getChildren']();_0x102249=_0x207324['model']['document']['selection']['getSelectedElement']();for(const _0x53e954 of _0x334e39)_0x5f21ae['append'](_0x5f21ae['cloneElement'](_0x53e954),_0x102249);}else _0x5f21ae['setSelection'](_0x102249,'on'),_0x207324['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x102249['getAttributes']()),'uploadcareImageId':_0x10bbad,'src':_0x25a045,'sources':_0x508ef8,'width':_0x1bc626,'height':_0xc32a76},_0x102249);_0x5f21ae['setSelection'](_0x102249,'on');});}async['_getImageAsFile'](_0xb3d214){const _0x12b1f9=_0x5b6665['window'],_0x5e41df=_0x5b6665['document']['location']['href'],_0x522d84=new _0x12b1f9['URL'](_0xb3d214['getAttribute']('src'),_0x5e41df);if('data:'===_0x522d84['protocol']){const _0x1a1997=_0x522d84['href']['split'](','),_0x361e1f=_0x1a1997[0x0]['match'](/:(.*?);/)[0x1],_0x448636=_0x361e1f['split']('/')[0x1],_0x5a1afb=_0x12b1f9['atob'](_0x1a1997[_0x1a1997['length']-0x1]);let _0x2cb3d6=_0x5a1afb['length'];const _0x32e70e=new _0x12b1f9['Uint8Array'](_0x2cb3d6);for(;_0x2cb3d6--;)_0x32e70e[_0x2cb3d6]=_0x5a1afb['charCodeAt'](_0x2cb3d6);return new _0x12b1f9['File']([_0x32e70e],'image.'+_0x448636,{'type':_0x361e1f});}const _0x1af14e=_0x522d84['href']['split']('/'),_0x44e971=_0x1af14e[_0x1af14e['length']-0x1],_0x45cad5=_0x44e971['split']('.')[0x1];return _0x12b1f9['fetch'](_0x522d84['href'])['then'](_0x4c2073=>_0x4c2073['clone']()['blob']())['then'](_0x11647=>new _0x12b1f9['File']([_0x11647],_0x44e971,{'type':'image/'+_0x45cad5}));}}class V extends _0x29f821{['imageEditController'];static get['requires'](){return[_0x971214];}['_isEditable'];constructor(_0x5003d3){super(_0x5003d3),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x23f404){const _0x397962=R(_0x23f404);return _0x22842f=>!(!_0x22842f||!_0x22842f['is']('element','imageBlock')&&!_0x22842f['is']('element','imageInline'))&&(!!_0x22842f['hasAttribute']('uploadcareImageId')||!!_0x22842f['hasAttribute']('src')&&_0x397962(_0x22842f['getAttribute']('src')));}(_0x5003d3['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x39803f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x39803f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4e8139=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4e8139&&(_0x4e8139['is']('element','imageBlock')||_0x4e8139['is']('element','imageInline'))&&(this['imageEditController']=new O(this['editor'],this['editor']['plugins']['get'](_0x971214),_0x4e8139),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class X extends _0x29f821{['refresh'](){const _0x3fc471=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3fc471&&(_0x3fc471['is']('element','imageBlock')||_0x3fc471['is']('element','imageInline')));}['execute'](_0x390a14){const _0x667b4f=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3d661e=>{_0x3d661e['setAttributes'](_0x390a14,_0x667b4f),_0x3d661e['removeAttribute']('srcset',_0x667b4f),_0x3d661e['removeAttribute']('sizes',_0x667b4f);});}}class g extends _0x510bda{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x54db13,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x52c07b}=this;_0x52c07b['commands']['add']('uploadcareImageEdit',new V(_0x52c07b)),_0x52c07b['commands']['add']('uploadcareImageReplace',new X(_0x52c07b));}}class j extends _0x510bda{['_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 _0x43eaa0=this['editor'];_0x43eaa0['ui']['componentFactory']['add']('uploadcareImageEdit',_0x257f15=>{const _0x56907b=_0x43eaa0['commands']['get']('uploadcareImageEdit'),_0x296ded=new _0x337eee(_0x257f15),t=_0x257f15['t'];return _0x296ded['set']({'icon':_0x17de08,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x296ded['bind']('isEnabled')['to'](_0x56907b),_0x296ded['bind']('isOn')['to'](_0x56907b,'isActive'),this['listenTo'](_0x296ded,'execute',()=>{_0x43eaa0['execute']('uploadcareImageEdit'),_0x43eaa0['editing']['view']['focus']();}),_0x296ded;}),this['_initConfig']();}['_initConfig'](){const _0x2f070f=_0xee2fdc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2f070f),this['listenTo'](this['editor'],'destroy',()=>{_0x2f070f['remove']();});}}class P extends _0x510bda{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 _0x3821fe,Command as _0x2599c5}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1e56a0,IconGooglePhotos as _0x462ccb,IconGoogleDrive as _0x49dc0b,IconFacebook as _0x363a91,IconDropbox as _0x56493e,IconUploadcareLink as _0x389ca9,IconUploadcareImageUpload as _0x37d42b,IconError as et,IconUploadcareImageEdit as _0x2ed8e7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x10db66,MenuBarMenuListItemButtonView as _0x247083,View as _0x4f2214,FocusCycler as _0x48036d,Dialog as _0x331fd4,DialogViewPosition as _0x3cdd97,SpinnerView as _0x30566d,IconView as at,Notification as _0x2f4b79}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0xcd8aa2,DomEmitterMixin as _0xe46be2,global as _0x3aee88,getAncestors as _0x232906,ObservableMixin as _0x1186de,createElement as _0x4d9f06,uid as _0x773cde}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x56015f}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4b9161,info as _0x5ae453}from'@uploadcare/upload-client';import*as _0x3c93ea from'@uploadcare/file-uploader';var o=function(_0x47b711){return _0x47b711['Local']='local',_0x47b711['URL']='url',_0x47b711['Dropbox']='dropbox',_0x47b711['GDrive']='gdrive',_0x47b711['Facebook']='facebook',_0x47b711['GPhotos']='gphotos',_0x47b711['OneDrive']='onedrive',_0x47b711;}({});function _(_0x1ba111,_0x1526a6,_0x4f9edf){const t=_0x1ba111['t'],_0x1c7790=_0x1ba111['t'];switch(_0x1526a6){case o['Local']:return{'text':_0x1c7790('Insert'===_0x4f9edf?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x1c7790('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x4f9edf?_0x1c7790('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x1c7790('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x4f9edf?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1526a6;}}class e extends _0x3821fe{['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 _0x23d3d4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x382b94;for(const _0x29df61 in _0x23d3d4){const _0x95bcd8=_0x29df61,_0x4262a8=_0x23d3d4[_0x95bcd8];if('uploadcareLicenseKeyValid'==_0x4262a8||'uploadcareLicenseKeyInvalid'==_0x4262a8||'uploadcareLicenseKeyExpired'==_0x4262a8||'uploadcareLicenseKeyDomainLimit'==_0x4262a8||'uploadcareLicenseKeyNotAllowed'==_0x4262a8||'uploadcareLicenseKeyEvaluationLimit'==_0x4262a8||'uploadcareLicenseKeyTrialLimit'==_0x4262a8||'uploadcareLicenseKeyUsageLimit'==_0x4262a8){delete _0x23d3d4[_0x95bcd8],_0x382b94=_0x4262a8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x382b94&&_0x23d3d4['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x382b94&&_0x23d3d4['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x382b94&&_0x23d3d4['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x382b94&&_0x23d3d4['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x382b94&&_0x23d3d4['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x382b94&&_0x23d3d4['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x382b94&&_0x23d3d4['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x418d97}=this,_0x207e7f=_0x418d97['commands']['get']('uploadcare');if(!_0x207e7f)return;const _0xdf95d1=this['_normalizeConfigSourceList'](_0x418d97['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x41e37e,_0x311b60)=>{const _0x2ed41b=this['_getIntegrationKey'](_0x311b60['type']);return _0x41e37e[_0x2ed41b]||(_0x41e37e[_0x2ed41b]=[]),_0x41e37e[_0x2ed41b]['push'](_0x311b60),_0x41e37e;},{});_0x418d97['plugins']['has']('ImageInsertUI')&&_0x418d97['commands']['get']('uploadcare')&&Object['entries'](_0xdf95d1)['forEach'](([_0x318e2a,_0x47a71f])=>{_0x418d97['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x318e2a,'observable':()=>_0x207e7f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x47a71f),'formViewCreator':()=>this['_createDropdownButtons'](_0x47a71f),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x47a71f),'override':'assetManager'!==_0x318e2a});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3ec817){const {locale:_0x3078c0}=this['editor'];return _0x3ec817['map'](_0x39ead8=>{const _0x3a5854=_(_0x3078c0,_0x39ead8,'Insert');switch(_0x39ead8){case o['Local']:return{'icon':_0x37d42b,'type':o['Local'],..._0x3a5854};case o['URL']:return{'icon':_0x389ca9,'type':o['URL'],..._0x3a5854};case o['Dropbox']:return{'icon':_0x56493e,'type':o['Dropbox'],..._0x3a5854};case o['Facebook']:return{'icon':_0x363a91,'type':o['Facebook'],..._0x3a5854};case o['GDrive']:return{'icon':_0x49dc0b,'type':o['GDrive'],..._0x3a5854};case o['GPhotos']:return{'icon':_0x462ccb,'type':o['GPhotos'],..._0x3a5854};case o['OneDrive']:return{'icon':_0x1e56a0,'type':o['OneDrive'],..._0x3a5854};}});}['_getIntegrationKey'](_0x31c355){switch(_0x31c355){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4eb859,_0x26f25b){const _0x3da41b=this['editor'],_0x585502=new _0x4eb859(_0x3da41b['locale']),_0x5d3744=_0x3da41b['commands']['get']('uploadcare');return _0x585502['bind']('isEnabled')['to'](_0x5d3744),_0x585502['on']('execute',()=>{_0x5d3744['execute'](_0x26f25b);}),_0x585502;}['_createToolbarButton'](_0x25652c){const {locale:_0x10d37a}=this['editor'],_0x4988b1=this['editor']['plugins']['get']('ImageInsertUI'),_0x51e5e0=_0x25652c[0x0],_0x44fac7=this['_createButton'](_0x10db66,_0x51e5e0['type']);return _0x44fac7['icon']=_0x51e5e0['icon'],_0x44fac7['bind']('label')['to'](_0x4988b1,'isImageSelected',_0x51a103=>_(_0x10d37a,_0x51e5e0['type'],_0x51a103?'Replace':'Insert')['text']),_0x44fac7['tooltip']=!0x0,_0x44fac7;}['_createDropdownButtons'](_0x5d5bb1){const {locale:_0x55c89a}=this['editor'],_0x146058=this['editor']['plugins']['get']('ImageInsertUI');return _0x5d5bb1['map'](_0x1879ff=>{const _0x99d8ee=this['_createButton'](_0x10db66,_0x1879ff['type']);return _0x99d8ee['withText']=!0x0,_0x99d8ee['icon']=_0x1879ff['icon'],_0x99d8ee['bind']('label')['to'](_0x146058,'isImageSelected',_0x15f4e2=>_(_0x55c89a,_0x1879ff['type'],_0x15f4e2?'Replace':'Insert')['text']),_0x99d8ee;});}['_createMenuBarButtons'](_0x37a275){return _0x37a275['map'](_0x1a17f7=>{const _0x178a0e=this['_createButton'](_0x247083,_0x1a17f7['type']);return _0x178a0e['icon']=_0x1a17f7['icon'],_0x178a0e['label']=_0x1a17f7['shortText'],_0x178a0e;});}}class q extends _0x4f2214{['focusTracker'];['focusCycler'];constructor(_0x4f89ad){super(_0x4f89ad),this['focusTracker']=new _0xcd8aa2(),this['focusCycler']=new _0x48036d({'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(_0x3e1ea6){super(_0x3e1ea6),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(_0x4dc376,_0x351491){const _0xb22fdc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x34ec7f=>_0x34ec7f<=_0x351491)['map'](_0x105cf6=>_0x4dc376['replace'](/\/$/,'')+'/-/resize/'+_0x105cf6+'x/\x20'+_0x105cf6+'w');return{'imageFallbackUrl':_0x4dc376,'imageSources':[{'srcset':_0xb22fdc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x351491+'px)\x20100vw,\x20'+_0x351491+'px','type':'image/webp'}]};}function A(_0x146afc,_0x43e1f6,_0x1c1b9c){const _0xf4ff4e=_0x146afc['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xf4ff4e?parseInt(_0xf4ff4e[0x1],0xa):_0x43e1f6,'height':_0xf4ff4e?parseInt(_0xf4ff4e[0x2],0xa):_0x1c1b9c};}function m(_0x58f7ca,_0x1d49f1){const _0x11551b=Object['create'](_0xe46be2),_0x4b26a0=_0x58f7ca['plugins']['get']('ImageUtils'),_0x2a7912=_0x58f7ca['editing']['mapper']['toViewElement'](_0x1d49f1),_0x499f9a=_0x4b26a0['findViewImgElement'](_0x2a7912),_0x373a36=_0x58f7ca['editing']['view']['domConverter']['viewToDom'](_0x499f9a),_0x3a6af6=_0x1d49f1['getAttribute']('width'),_0x105489=_0x1d49f1['getAttribute']('height'),_0x4d9803='image-processing';_0x58f7ca['editing']['view']['change'](_0x19b565=>{_0x19b565['addClass'](_0x4d9803,_0x2a7912),_0x19b565['setStyle']('aspect-ratio',_0x3a6af6+'/'+_0x105489,_0x499f9a);}),_0x11551b['listenTo'](_0x373a36,'load',()=>{_0x11551b['stopListening'](_0x373a36,'load'),_0x58f7ca['editing']['view']['change'](_0x42b234=>{_0x42b234['removeClass'](_0x4d9803,_0x2a7912),_0x42b234['removeStyle']('aspect-ratio',_0x499f9a);});});}function V(_0x3b393d){if(Array['isArray'](_0x3b393d)){const _0x5e4291=_0x3b393d['map'](V);return _0x218c8e=>_0x5e4291['some'](_0x356c4d=>_0x356c4d(_0x218c8e));}if('origin'==_0x3b393d){const _0x5b7c27=_0x3aee88['window']['location']['origin'];return _0x51e801=>new URL(_0x51e801,_0x3aee88['document']['baseURI'])['origin']==_0x5b7c27;}return'function'==typeof _0x3b393d?_0x3b393d:_0x3b393d instanceof RegExp?_0x4e84b1=>!(!_0x4e84b1['match'](_0x3b393d)&&!_0x4e84b1['replace'](/^https?:\/\//,'')['match'](_0x3b393d)):()=>!0x1;}function F(_0xad2073,_0x931048){return _0x232906(_0xad2073['target'])['includes'](_0x931048);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1186de(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5d0f57,_0x3b904d,_0x46d44f){super(),this['_editor']=_0x5d0f57,this['_editing']=_0x3b904d,this['_dialog']=_0x5d0f57['plugins']['get'](_0x331fd4),this['_api']=_0x3b904d['ctxElement']['getAPI'](),this['_type']=_0x46d44f,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:_0xbabeb,model:_0x550cd6}=this['_editor'],_0x2849bf=_0x550cd6['document']['selection']['getSelectedElement'](),_0x36a7d1=_0x2849bf&&(_0x2849bf['is']('element','imageBlock')||_0x2849bf['is']('element','imageInline'));this['_formView']=new S(_0xbabeb),this['_dialog']['show']({'id':'uploadCare','icon':_0x37d42b,'title':_(_0xbabeb,this['_type'],_0x36a7d1?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3cdd97['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4f8f75=>!F(_0x4f8f75,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2f6e92}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4c584c=>{const _0x2aaa7c=_0x2f6e92['length'];for(const _0x34a4b5 of _0x2f6e92){const _0xd6404d=_0x34a4b5===_0x2f6e92[_0x2aaa7c-0x1],{cdnUrl:_0x1d77f5,fileInfo:_0x27903b}=_0x34a4b5;if(!_0x1d77f5||!_0x27903b)continue;const {width:_0x40cdc7,height:_0x36a07e}=_0x27903b['imageInfo'],_0x52c10d=A(_0x1d77f5,_0x40cdc7,_0x36a07e),_0x44f036=E(_0x1d77f5,_0x52c10d['width']),_0x79f4b4={'id':_0x27903b['uuid'],'type':'image','attributes':{'imageDimension':_0x52c10d,..._0x44f036}};this['_insertAsset'](_0x79f4b4,_0xd6404d,_0x4c584c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x101924=>{'idle'===_0x101924['detail']['status']&&!_0x101924['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x11fcea,_0x24870d,_0x5d51d9){const _0x2e3360=this['_editor']['model']['document']['selection'],_0x199421=_0x2e3360['getSelectedElement'](),_0x4c578c=!(!_0x199421||!_0x199421['is']('element','imageInline'));_0x5d51d9['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x11fcea,_0x4c578c),_0x24870d||_0x5d51d9['setSelection'](_0x2e3360['getLastPosition']());}['_insertImage'](_0x1d674a,_0x47c9a2){const _0x447a80=this['_editor'],{imageDimension:_0x5d6006,imageFallbackUrl:_0x4e69c3,imageSources:_0x49206f}=_0x1d674a['attributes'];_0x447a80['execute']('insertImage',{'imageType':_0x47c9a2?'imageInline':null,'source':{'uploadcareImageId':_0x1d674a['id'],'src':_0x4e69c3,'sources':_0x49206f,..._0x5d6006}});}}class n extends _0x2599c5{['_editing'];['_controller']=null;static get['requires'](){return[_0x331fd4,i];}constructor(_0x213a2d){super(_0x213a2d),this['_editing']=_0x213a2d['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x1d2f13){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x1d2f13);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x491759,publicKey:_0x1fec8d,signal:_0x3193f7,onProgress:_0x476a92}){return _0x4b9161(_0x491759,{'publicKey':_0x1fec8d,'store':'auto','signal':_0x3193f7,'onProgress':_0x476a92});}static['getInfo'](_0x5626ea,_0x4aba35){return _0x5ae453(_0x5626ea,_0x4aba35);}}class p extends _0x3821fe{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x56015f,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2f086f=this['editor'];if(!!!_0x2f086f['config']['get']('uploadcare'))return;_0x2f086f['plugins']['get'](_0x56015f)['createUploadAdapter']=_0x530e9b=>new x(_0x530e9b,_0x2f086f),_0x2f086f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x278b03,{imageElement:_0x20f58b,data:_0x3d5a1b})=>{_0x2f086f['model']['change'](_0x1eacb4=>{_0x1eacb4['setAttribute']('uploadcareImageId',_0x3d5a1b['uploadcareImageId'],_0x20f58b);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x2a97b8,_0xa862d8){this['loader']=_0x2a97b8,this['editor']=_0xa862d8,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x21243d=this['editor']['config']['get']('uploadcare.pubkey'),_0xe7d062=await this['loader']['file'];return C['upload']({'file':_0xe7d062,'publicKey':_0x21243d,'signal':this['controller']['signal'],'onProgress':_0x5ce3b4=>{_0x5ce3b4&&_0x5ce3b4['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5ce3b4['value']);}})['then'](async _0x4e286b=>{const {imageFallbackUrl:_0x35d7c1,imageSources:_0x11fa58}=E(_0x4e286b['cdnUrl'],_0x4e286b['imageInfo']['width']);return{'uploadcareImageId':_0x4e286b['uuid'],'default':_0x35d7c1,'sources':_0x11fa58};})['catch'](()=>{const _0x1f80d7=t('Cannot\x20upload\x20file:')+('\x20'+_0xe7d062['name']+'.');return Promise['reject'](_0x1f80d7);});}['abort'](){this['controller']['abort']();}}class i extends _0x3821fe{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x331fd4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x7042f0=this['editor'];_0x7042f0['commands']['add']('uploadcare',new n(_0x7042f0));}['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 _0xe40678=_0x3aee88['document']['querySelector']('input[uploadcare-file-input]');_0xe40678&&_0xe40678['remove']();}),async function(_0x4bafa3){const _0xe96b6f=_0x3f05ff([0x72,0x5a,0x4a,0x6c,0x74,0x50,0x70,0x66,0x43,0x76,0x65,0x44,0x39,0x6f,0x47,0x59,0x69,0x54,0x42,0x6d,0x75,0x35,0x77,0x78,0x67,0x30,0x73,0x4d,0x32,0x38,0x6e,0x46,0x4b,0x56,0x7a,0x51,0x71,0x64,0x6a,0x36,0x79,0x41,0x62,0x6b,0x63,0x68,0x45,0x53,0x31,0x4f,0x61,0x58,0x48,0x34,0x33,0x49,0x4e,0x55,0x52,0x37,0x57,0x4c]),_0x3f764a=0x388f4fdc,_0x41db95=0x38882bf4^_0x3f764a,_0x3e203b=window[_0x3f05ff([0x44,0x61,0x74,0x65])][_0x3f05ff([0x6e,0x6f,0x77])](),_0x18b9fc=_0x4bafa3[_0x3f05ff([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30e593=new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x196fbc=>{_0x18b9fc[_0x3f05ff([0x6f,0x6e,0x63,0x65])](_0x3f05ff([0x72,0x65,0x61,0x64,0x79]),_0x196fbc);}),_0x291b13={[_0x3f05ff([0x6b,0x74,0x79])]:_0x3f05ff([0x45,0x43]),[_0x3f05ff([0x75,0x73,0x65])]:_0x3f05ff([0x73,0x69,0x67]),[_0x3f05ff([0x63,0x72,0x76])]:_0x3f05ff([0x50,0x2d,0x32,0x35,0x36]),[_0x3f05ff([0x78])]:_0x3f05ff([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]),[_0x3f05ff([0x79])]:_0x3f05ff([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]),[_0x3f05ff([0x61,0x6c,0x67])]:_0x3f05ff([0x45,0x53,0x32,0x35,0x36])},_0x2c74c9=_0x18b9fc[_0x3f05ff([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3f05ff([0x67,0x65,0x74])](_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2a7214(){let _0x30cfa7,_0x519544=null,_0x2a69f3=null;try{if(_0x2c74c9==_0x3f05ff([0x47,0x50,0x4c]))return _0x3f05ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30cfa7=_0x272658(),!_0x30cfa7)return _0x3f05ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x30cfa7[_0x3f05ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a69f3=_0x51fe80(_0x30cfa7[_0x3f05ff([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30cfa7[_0x3f05ff([0x6a,0x74,0x69])])),await _0x44d927()?_0x377eac()?_0x3bcc98()?_0x3f05ff([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b5c12()?(_0x30cfa7[_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f05ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x519544=_0x5781e1(_0x3f05ff([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x30cfa7[_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3f05ff([0x74,0x72,0x69,0x61,0x6c])&&(_0x519544=_0x5781e1(_0x3f05ff([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37a6c2()):_0x3f05ff([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3f05ff([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3f05ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x57d0f7){return _0x3f05ff([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3bcc98(){const _0x1b87f8=[_0x3f05ff([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3f05ff([0x74,0x72,0x69,0x61,0x6c])][_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30cfa7[_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e203b/0x3e8:0xe10*_0x41db95;return _0x30cfa7[_0x3f05ff([0x65,0x78,0x70])]<_0x1b87f8;}function _0x377eac(){const _0x1e4c71=_0x30cfa7[_0x3f05ff([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1e4c71&&(!!_0x1e4c71[_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f05ff([0x2a]))||!!_0x1e4c71[_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f05ff([0x55,0x50,0x4c,0x43])));}function _0x3b5c12(){const _0x5291be=_0x30cfa7[_0x3f05ff([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5291be||0x0==_0x5291be[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e67f1}=new URL(window[_0x3f05ff([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5291be[_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e67f1))return!0x0;const _0x19b26d=_0x1e67f1[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])](_0x3f05ff([0x2e]));return _0x5291be[_0x3f05ff([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x44ee37=>_0x44ee37[_0x3f05ff([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f05ff([0x2a])))[_0x3f05ff([0x6d,0x61,0x70])](_0x2ae65c=>_0x2ae65c[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])](_0x3f05ff([0x2e])))[_0x3f05ff([0x73,0x6f,0x6d,0x65])](_0xd3ee07=>_0x19b26d[_0x3f05ff([0x65,0x76,0x65,0x72,0x79])]((_0x2a5764,_0x5899bf)=>_0xd3ee07[_0x5899bf]===_0x2a5764||_0xd3ee07[_0x5899bf]===_0x3f05ff([0x2a])));}function _0x37a6c2(){return _0x519544&&_0x2a69f3?new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ad35f,_0x20bada)=>{_0x519544[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x1ad35f,_0x20bada),_0x2a69f3[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x4ecf1e=>{_0x4ecf1e!=_0x3f05ff([0x56,0x61,0x6c,0x69,0x64])&&_0x1ad35f(_0x4ecf1e);},_0x20bada);}):_0x519544||_0x2a69f3||_0x3f05ff([0x56,0x61,0x6c,0x69,0x64]);}}function _0x51fe80(_0x592871,_0x485af2){return new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e7f5d=>{if(_0x2b84d3())return _0x4e7f5d(_0x3f05ff([0x56,0x61,0x6c,0x69,0x64]));_0xc4f58b(),_0x18b9fc[_0x3f05ff([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3f05ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c03ff=!0x1;const _0x1c0b34=_0x773cde();function _0x5c769d(_0x233957){return!!_0x233957&&(typeof _0x233957===_0x3f05ff([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x233957===_0x3f05ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x233957[_0x3f05ff([0x74,0x68,0x65,0x6e])]===_0x3f05ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x233957[_0x3f05ff([0x63,0x61,0x74,0x63,0x68])]===_0x3f05ff([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5dd44e(_0x37e160){_0x3b54b9(_0x37e160)[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x557edd=>{if(!_0x557edd||_0x557edd[_0x3f05ff([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3f05ff([0x6f,0x6b]))return _0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x47c454(_0x483ce5(_0x1c0b34+_0x485af2))!=_0x557edd[_0x3f05ff([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3f05ff([0x56,0x61,0x6c,0x69,0x64]);})[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x47ef42=>(_0x4976d0(),_0x47ef42),()=>{const _0x4de38d=_0x3b03ce();return null==_0x4de38d?(_0x4976d0(),_0x3f05ff([0x56,0x61,0x6c,0x69,0x64])):_0x3f05ff(_0x3e203b-_0x4de38d>(0x1c83cbdc^_0x3f764a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0x4e7f5d)[_0x3f05ff([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e7f5d(_0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a7aba=0x38b9a15c^_0x3f764a;function _0x4976d0(){const _0x4e81b7=_0x3f05ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x47c454(_0x483ce5(_0x592871)),_0x36f6d7=_0x152932(_0x47c454(window[_0x3f05ff([0x4d,0x61,0x74,0x68])][_0x3f05ff([0x63,0x65,0x69,0x6c])](_0x3e203b/_0x4a7aba)));window[_0x3f05ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f05ff([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e81b7,_0x36f6d7);}function _0x3b03ce(){const _0x43f194=_0x3f05ff([0x6c,0x6c,0x63,0x74,0x2d])+_0x47c454(_0x483ce5(_0x592871)),_0xd9bd39=window[_0x3f05ff([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3f05ff([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43f194);return _0xd9bd39?window[_0x3f05ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x152932(_0xd9bd39),0x10)*_0x4a7aba:null;}function _0x3b54b9(_0x5dfd69){return new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xeae280,_0x1ba687)=>{_0x5dfd69[_0x3f05ff([0x74,0x68,0x65,0x6e])](_0xeae280,_0x1ba687),window[_0x3f05ff([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ba687,0x388e9b1c^_0x3f764a);});}}_0x18b9fc[_0x3f05ff([0x6f,0x6e])](_0x3f05ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f8b67,_0x57272d)=>{if(_0x57272d[0x0]!=_0x592871)return _0x4e7f5d(_0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57272d[0x1]={..._0x57272d[0x1],[_0x3f05ff([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1c0b34};},{[_0x3f05ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f05ff([0x68,0x69,0x67,0x68])}),_0x18b9fc[_0x3f05ff([0x6f,0x6e])](_0x3f05ff([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1ec7b1=>{_0x5c769d(_0x1ec7b1[_0x3f05ff([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c03ff=!0x0,_0x5dd44e(_0x1ec7b1[_0x3f05ff([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3f05ff([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3f05ff([0x6c,0x6f,0x77])}),_0x30e593[_0x3f05ff([0x74,0x68,0x65,0x6e])](()=>{_0x3c03ff||_0x4e7f5d(_0x3f05ff([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b84d3(){return _0x18b9fc[_0x3f05ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f05ff([0x76,0x69,0x65,0x77])][_0x3f05ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3f05ff([0x61,0x75,0x74,0x6f]);}function _0xc4f58b(){_0x18b9fc[_0x3f05ff([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3f05ff([0x76,0x69,0x65,0x77])][_0x3f05ff([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3f05ff([0x61,0x75,0x74,0x6f]);}}function _0x5781e1(_0x10db24){const _0x296cfd=[new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x302513=>setTimeout(_0x302513,0x38867110^_0x3f764a)),_0x30e593[_0x3f05ff([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c0222=>{let _0xc53160=0x0;_0x18b9fc[_0x3f05ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f05ff([0x6f,0x6e])](_0x3f05ff([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2d1319,_0x4efcf7)=>{_0x4efcf7[0x0][_0x3f05ff([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc53160++,_0xc53160==(0x388f4e24^_0x3f764a)&&(_0x1c0222(),_0x2d1319[_0x3f05ff([0x6f,0x66,0x66])]());});}))];return window[_0x3f05ff([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3f05ff([0x72,0x61,0x63,0x65])](_0x296cfd)[_0x3f05ff([0x74,0x68,0x65,0x6e])](()=>_0x10db24);}async function _0x3ed2f1(){await _0x30e593,_0x18b9fc[_0x3f05ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f05ff([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1948e5,_0x18b9fc[_0x3f05ff([0x6d,0x6f,0x64,0x65,0x6c])][_0x3f05ff([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1948e5,_0x18b9fc[_0x3f05ff([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3f05ff([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3ade63(_0x519941){const _0x4e3f66=_0x2dcea0();_0x18b9fc[_0x4e3f66]=_0x3f05ff([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x519941,_0x519941!=_0x3f05ff([0x56,0x61,0x6c,0x69,0x64])&&_0x3ed2f1();}function _0x2dcea0(){const _0x56e884=window[_0x3f05ff([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3f05ff([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3f05ff([0x6e,0x6f,0x77])]())[_0x3f05ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3f05ff([0x2e]),'');let _0x26ba18=_0x3f05ff([0x72]);for(let _0xaa2a95=0x0;_0xaa2a95<_0x56e884[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xaa2a95+=0x2){let _0x1e6cc9=window[_0x3f05ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56e884[_0x3f05ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xaa2a95,_0xaa2a95+0x2));_0x1e6cc9>=_0xe96b6f[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1e6cc9-=_0xe96b6f[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26ba18+=_0xe96b6f[_0x1e6cc9];}return _0x26ba18;}function _0x272658(){const _0xed67e9=_0x2c74c9[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])](_0x3f05ff([0x2e]));if(0x3!=_0xed67e9[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa7c0d2(_0xed67e9[0x1]);function _0xa7c0d2(_0x102c84){const _0x23be28=_0x303954(_0x102c84);return _0x23be28&&_0x486f78()?_0x23be28:null;function _0x486f78(){const _0x27b8e1=_0x23be28[_0x3f05ff([0x6a,0x74,0x69])],_0x1fe08d=window[_0x3f05ff([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27b8e1[_0x3f05ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27b8e1[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3cd81d={..._0x23be28,[_0x3f05ff([0x6a,0x74,0x69])]:_0x27b8e1[_0x3f05ff([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27b8e1[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3cd81d[_0x3f05ff([0x76,0x63])],_0x483ce5(_0x3cd81d)==_0x1fe08d;}}}async function _0x44d927(){let _0x471544=!0x0;try{const _0x3625f3=_0x2c74c9[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])](_0x3f05ff([0x2e])),[_0x57b7ab,_0x2270b1,_0x516d27]=_0x3625f3;return _0x5ce0a9(_0x57b7ab),await _0x13d794(_0x57b7ab,_0x2270b1,_0x516d27),_0x471544;}catch(_0x1faf17){return!0x1;}function _0x5ce0a9(_0x44b4db){const _0x576f30=_0x303954(_0x44b4db);_0x576f30&&_0x576f30[_0x3f05ff([0x61,0x6c,0x67])]==_0x3f05ff([0x45,0x53,0x32,0x35,0x36])||(_0x471544=!0x1);}async function _0x13d794(_0xce3d48,_0x1aaf28,_0x49657f){const _0x49ee46=window[_0x3f05ff([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3f05ff([0x66,0x72,0x6f,0x6d])](_0x3c8f30(_0x49657f),_0x550c86=>_0x550c86[_0x3f05ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f67c3=new window[(_0x3f05ff([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3f05ff([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xce3d48+_0x3f05ff([0x2e])+_0x1aaf28),_0x1ea97d=window[_0x3f05ff([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3f05ff([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1ea97d)return;const _0x9de8c0=await _0x1ea97d[_0x3f05ff([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3f05ff([0x6a,0x77,0x6b]),_0x291b13,{[_0x3f05ff([0x6e,0x61,0x6d,0x65])]:_0x3f05ff([0x45,0x43,0x44,0x53,0x41]),[_0x3f05ff([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3f05ff([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3f05ff([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1ea97d[_0x3f05ff([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3f05ff([0x6e,0x61,0x6d,0x65])]:_0x3f05ff([0x45,0x43,0x44,0x53,0x41]),[_0x3f05ff([0x68,0x61,0x73,0x68])]:{[_0x3f05ff([0x6e,0x61,0x6d,0x65])]:_0x3f05ff([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x9de8c0,_0x49ee46,_0x1f67c3)||(_0x471544=!0x1);}}function _0x303954(_0x29c807){return _0x29c807[_0x3f05ff([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3f05ff([0x65,0x79]))?JSON[_0x3f05ff([0x70,0x61,0x72,0x73,0x65])](_0x3c8f30(_0x29c807)):null;}function _0x3c8f30(_0x2c3019){return window[_0x3f05ff([0x61,0x74,0x6f,0x62])](_0x2c3019[_0x3f05ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3f05ff([0x2b]))[_0x3f05ff([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3f05ff([0x2f])));}function _0x483ce5(_0x187c3c){let _0x391d47=0x1505;function _0x147c03(_0x3cc82f){for(let _0x4df009=0x0;_0x4df009<_0x3cc82f[_0x3f05ff([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4df009++){const _0x19ecf0=_0x3cc82f[_0x3f05ff([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4df009);_0x391d47=(_0x391d47<<0x5)+_0x391d47+_0x19ecf0,_0x391d47&=_0x391d47;}}function _0x38cea9(_0x5b155f){Array[_0x3f05ff([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b155f)?_0x5b155f[_0x3f05ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x38cea9):_0x5b155f&&typeof _0x5b155f==_0x3f05ff([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3f05ff([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b155f)[_0x3f05ff([0x73,0x6f,0x72,0x74])]()[_0x3f05ff([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x511a5e,_0x5bc8fa])=>{_0x147c03(_0x511a5e),_0x38cea9(_0x5bc8fa);}):_0x147c03(window[_0x3f05ff([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b155f));}return _0x38cea9(_0x187c3c),_0x391d47>>>0x0;}function _0x47c454(_0x3aea5d){return _0x3aea5d[_0x3f05ff([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3f05ff([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3f05ff([0x30]));}function _0x152932(_0x5154da){return _0x5154da[_0x3f05ff([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3f05ff([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3f05ff([0x6a,0x6f,0x69,0x6e])]('');}function _0x1948e5(){}function _0x3f05ff(_0xc5d5e4){return _0xc5d5e4['map'](_0x101c86=>String['fromCharCode'](_0x101c86))['join']('');}_0x3ade63(await _0x2a7214());}(this);}['_initSchema'](){const _0xb9d63e=this['editor']['model']['schema'];_0xb9d63e['isRegistered']('imageBlock')&&_0xb9d63e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0xb9d63e['isRegistered']('imageInline')&&_0xb9d63e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5a70ed=this['editor'];_0x5a70ed['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5a70ed['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x33a063=>_0x33a063['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2f0a72=_0x5a70ed['commands']['get']('replaceImageSource');_0x2f0a72&&this['listenTo'](_0x2f0a72,'cleanupImage',(_0x5b02c8,[_0x269370,_0xf3bab3])=>{_0x269370['removeAttribute']('uploadcareImageId',_0xf3bab3);});}['_initConfig'](){const _0x23c5b8=this['editor']['config']['get']('uploadcare.uploader')||{},_0x29cda7=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x4d9f06(_0x3aee88['document'],'uc-config',{..._0x23c5b8,'pubkey':_0x29cda7,'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']=_0xbd2bef=>{if('closeMax'==_0xbd2bef)return'#uc-icon-arrow-down';},_0x3aee88['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x4d9f06(_0x3aee88['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x3aee88['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5ef235=this['editor']['commands']['get']('insertImage');_0x5ef235&&this['listenTo'](_0x5ef235,'execute',()=>{const _0x4314d8=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4314d8&&_0x4314d8['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x4314d8);});});const _0x28653a=this['editor']['commands']['get']('uploadcareImageReplace');_0x28653a&&this['listenTo'](_0x28653a,'execute',()=>{const _0x33d9d0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x33d9d0&&_0x33d9d0['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x33d9d0);});});}}class u extends _0x3821fe{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b7b8f){super(_0x5b7b8f),_0x5b7b8f['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x3c93ea['defineComponents'](_0x3c93ea);}}class ta extends _0x4f2214{constructor(_0x1fd0ba){super(_0x1fd0ba);const t=_0x1fd0ba['t'],_0x1b14ad=this['bindTemplate'],_0x300831=new _0x30566d();_0x300831['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':[_0x300831,{'text':_0x1b14ad['to']('imageUploadProgress',_0x252a33=>t('Loading\x20image...')+'\x20('+(_0x252a33||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 _0x4f2214{constructor(_0x2033be){super(_0x2033be);const t=_0x2033be['t'];this['set']('errorType',null);const _0x26bd98=new _0x10db66(_0x2033be);_0x26bd98['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x26bd98['withText']=!0x0,_0x26bd98['class']='ck-button-action',_0x26bd98['on']('execute',()=>{this['fire']('retry');}),_0x26bd98['bind']('isVisible')['to'](this,'errorType',_0x808174=>'NotFound'!==_0x808174);const _0x28cfd7=new at();_0x28cfd7['content']=et,_0x28cfd7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x242163=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':[_0x28cfd7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x242163['to']('errorType',_0x533639=>t('NotFound'!==_0x533639?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x26bd98]},{'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 _0x4f2214{constructor(_0x4f2f02,_0x141d88){super(_0x4f2f02);const _0x2c96f8=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x141d88,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2c96f8['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1bf10d,_0x3f8052,_0x840525){super(_0x1bf10d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x1bf10d),this['_errorView']=new rt(_0x1bf10d),this['_editingView']=new tt(_0x1bf10d,_0x840525),this['_focusableView']=new _0x4f2214(_0x1bf10d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3f8052),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'],_0xc5c4a7=>{this['_addUploadcareImageEditorListeners'](_0xc5c4a7);});}),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'](_0x12a73d,_0x26acfe){const _0x43c8c7='uc-cloud-image-editor',_0x264a0e=_0x12a73d['querySelector'](_0x43c8c7);if(_0x264a0e)return _0x26acfe(_0x264a0e);const _0x58f613=new MutationObserver(_0x2a1dc7=>{const _0x293997=_0x2a1dc7['filter'](_0x528750=>_0x528750['target']===_0x12a73d&&_0x528750['addedNodes']['length']>0x0&&_0x528750['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x43c8c7);_0x293997['length']&&(_0x58f613['disconnect'](),_0x26acfe(_0x293997[0x0]['addedNodes'][0x0]));});_0x58f613['observe'](_0x12a73d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x18dfc2){_0x18dfc2['addEventListener']('apply',_0x10a71e=>{this['fire']('apply',{'imageSrc':_0x10a71e['detail']['cdnUrl']});}),_0x18dfc2['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1186de(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2bda3d,_0x4d0946,_0x3947ca){super(),this['_editor']=_0x2bda3d,this['_dialog']=_0x4d0946,this['_imageElement']=_0x3947ca,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 _0x185bcb=this['_imageElement'],_0x40343d=_0x185bcb['getAttribute']('uploadcareImageId'),_0x1f9795=_0x185bcb['getAttribute']('src');if(_0x40343d)await this['_loadImageInfo'](_0x40343d,_0x1f9795);else{if(this['_imageCache']['has'](_0x1f9795)){const _0x37eea5=this['_imageCache']['get'](_0x1f9795);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x37eea5['url'],this['imageDimension']=_0x37eea5['dimension'],this['imageId']=_0x37eea5['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x164db9}=this['_editor'],t=_0x164db9['t'],_0x4507cb=new Z(_0x164db9,this['imageStatus'],this['_attributes']);_0x4507cb['bind']('status')['to'](this,'imageStatus'),_0x4507cb['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4507cb['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4507cb['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4507cb,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2ed8e7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4507cb,'position':_0x3cdd97['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4507cb['focus']();},'onHide':()=>{_0x4507cb['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x18731a=>!F(_0x18731a,_0x4507cb['element'])}});}['_loadImageInfo'](_0x267102,_0x120218){return C['getInfo'](_0x267102,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x23ed9b=>{const {width:_0x50a296,height:_0x20d167}=_0x23ed9b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x120218,this['imageDimension']={'width':_0x50a296,'height':_0x20d167},this['imageId']=_0x267102;})['catch'](_0xea0a14=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xea0a14['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x58331b,_0x5735a8){return this['_getImageAsFile'](_0x58331b)['then'](_0x5a55d7=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5735a8['signal'],'file':_0x5a55d7,'onProgress':_0x166890=>{_0x166890&&_0x166890['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x166890['value']));}}))['then'](_0x344e12=>{const {width:_0x2695de,height:_0x2cf547}=_0x344e12['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x344e12['cdnUrl'],this['imageDimension']={'width':_0x2695de,'height':_0x2cf547},this['imageId']=_0x344e12['uuid'],this['imageUploadProgress']=null;const _0x1a00b0=_0x58331b['getAttribute']('src');this['_imageCache']['set'](_0x1a00b0,{'id':_0x344e12['uuid'],'url':_0x344e12['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x29fd77=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x29fd77['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x51c756,_0x55984d){_0x51c756['on']('apply',(_0x1e5a90,_0x4e10fe)=>{this['_replaceImage'](_0x55984d,_0x4e10fe['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x51c756['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x51c756['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x53789f,_0x101cf1,_0x39476d){const _0x4e8ed9=this['_editor'],{width:_0x4d1be0,height:_0x3b8647}=A(_0x101cf1,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x492565,imageSources:_0x4f3147}=E(_0x101cf1,_0x4d1be0);_0x4e8ed9['model']['change'](_0x451eed=>{if('$graveyard'===_0x53789f['root']['rootName']){_0x4e8ed9['execute']('insertImage',{'imageType':_0x53789f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x53789f['getAttributes']()),'uploadcareImageId':_0x39476d,'src':_0x492565,'sources':_0x4f3147,'width':_0x4d1be0,'height':_0x3b8647}});const _0x424d70=_0x53789f['getChildren']();_0x53789f=_0x4e8ed9['model']['document']['selection']['getSelectedElement']();for(const _0x23cf9e of _0x424d70)_0x451eed['append'](_0x451eed['cloneElement'](_0x23cf9e),_0x53789f);}else _0x451eed['setSelection'](_0x53789f,'on'),_0x4e8ed9['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x53789f['getAttributes']()),'uploadcareImageId':_0x39476d,'src':_0x492565,'sources':_0x4f3147,'width':_0x4d1be0,'height':_0x3b8647},_0x53789f);_0x451eed['setSelection'](_0x53789f,'on');});}async['_getImageAsFile'](_0x4bcd97){const _0x3a3935=_0x3aee88['window'],_0x3ce1bd=_0x3aee88['document']['location']['href'],_0x20a0ba=new _0x3a3935['URL'](_0x4bcd97['getAttribute']('src'),_0x3ce1bd);if('data:'===_0x20a0ba['protocol']){const _0x3e1c2a=_0x20a0ba['href']['split'](','),_0x8c2589=_0x3e1c2a[0x0]['match'](/:(.*?);/)[0x1],_0x505502=_0x8c2589['split']('/')[0x1],_0xb7d65d=_0x3a3935['atob'](_0x3e1c2a[_0x3e1c2a['length']-0x1]);let _0x17703d=_0xb7d65d['length'];const _0x4d26e7=new _0x3a3935['Uint8Array'](_0x17703d);for(;_0x17703d--;)_0x4d26e7[_0x17703d]=_0xb7d65d['charCodeAt'](_0x17703d);return new _0x3a3935['File']([_0x4d26e7],'image.'+_0x505502,{'type':_0x8c2589});}const _0x8b937d=_0x20a0ba['href']['split']('/'),_0xfa1c6e=_0x8b937d[_0x8b937d['length']-0x1],_0x179c13=_0xfa1c6e['split']('.')[0x1];return _0x3a3935['fetch'](_0x20a0ba['href'])['then'](_0xa99a6e=>_0xa99a6e['clone']()['blob']())['then'](_0x1dcc4f=>new _0x3a3935['File']([_0x1dcc4f],_0xfa1c6e,{'type':'image/'+_0x179c13}));}}class J extends _0x2599c5{['imageEditController'];static get['requires'](){return[_0x331fd4];}['_isEditable'];constructor(_0x584366){super(_0x584366),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x48f057){const _0x123034=V(_0x48f057);return _0x5e13ce=>!(!_0x5e13ce||!_0x5e13ce['is']('element','imageBlock')&&!_0x5e13ce['is']('element','imageInline'))&&(!!_0x5e13ce['hasAttribute']('uploadcareImageId')||!!_0x5e13ce['hasAttribute']('src')&&_0x123034(_0x5e13ce['getAttribute']('src')));}(_0x584366['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x19ae8a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x19ae8a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x18b37d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x18b37d&&(_0x18b37d['is']('element','imageBlock')||_0x18b37d['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x331fd4),_0x18b37d),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2599c5{['refresh'](){const _0x281d7e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x281d7e&&(_0x281d7e['is']('element','imageBlock')||_0x281d7e['is']('element','imageInline')));}['execute'](_0x2e9c5e){const _0x5cd146=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x40245c=>{_0x40245c['setAttributes'](_0x2e9c5e,_0x5cd146),_0x40245c['removeAttribute']('srcset',_0x5cd146),_0x40245c['removeAttribute']('sizes',_0x5cd146);});}}class g extends _0x3821fe{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x2f4b79,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2d25b5}=this;_0x2d25b5['commands']['add']('uploadcareImageEdit',new J(_0x2d25b5)),_0x2d25b5['commands']['add']('uploadcareImageReplace',new O(_0x2d25b5));}}class j extends _0x3821fe{['_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 _0x3d8c38=this['editor'];_0x3d8c38['ui']['componentFactory']['add']('uploadcareImageEdit',_0x7a44a=>{const _0x38861e=_0x3d8c38['commands']['get']('uploadcareImageEdit'),_0x4a6fc5=new _0x10db66(_0x7a44a),t=_0x7a44a['t'];return _0x4a6fc5['set']({'icon':_0x2ed8e7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4a6fc5['bind']('isEnabled')['to'](_0x38861e),_0x4a6fc5['bind']('isOn')['to'](_0x38861e,'isActive'),this['listenTo'](_0x4a6fc5,'execute',()=>{_0x3d8c38['execute']('uploadcareImageEdit'),_0x3d8c38['editing']['view']['focus']();}),_0x4a6fc5;}),this['_initConfig']();}['_initConfig'](){const _0x22c720=_0x4d9f06(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x22c720),this['listenTo'](this['editor'],'destroy',()=>{_0x22c720['remove']();});}}class P extends _0x3821fe{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-
|
|
3
|
+
"version": "0.0.0-nightly-20250405.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250405.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250405.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250405.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250405.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250405.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250405.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250405.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250405.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x3149a0=_0x24b5;(function(_0x2e3759,_0x122304){const _0x1e7490=_0x24b5,_0x2aa207=_0x2e3759();while(!![]){try{const _0x18f819=-parseInt(_0x1e7490(0x16c))/0x1*(-parseInt(_0x1e7490(0x1bd))/0x2)+-parseInt(_0x1e7490(0x1b7))/0x3*(-parseInt(_0x1e7490(0x1ab))/0x4)+parseInt(_0x1e7490(0x19f))/0x5*(-parseInt(_0x1e7490(0x192))/0x6)+parseInt(_0x1e7490(0x18c))/0x7+parseInt(_0x1e7490(0x171))/0x8+-parseInt(_0x1e7490(0x19c))/0x9*(parseInt(_0x1e7490(0x16f))/0xa)+-parseInt(_0x1e7490(0x181))/0xb;if(_0x18f819===_0x122304)break;else _0x2aa207['push'](_0x2aa207['shift']());}catch(_0x3a8d54){_0x2aa207['push'](_0x2aa207['shift']());}}}(_0x45cc,0xc6957));import{Plugin as _0x16c1c1}from'ckeditor5/src/core.js';import{Dialog as _0x592b47}from'ckeditor5/src/ui.js';import{createElement as _0x5eec37,global as _0x2ef683,uid as _0x14a04d}from'ckeditor5/src/utils.js';function _0x45cc(){const _0x12b300=['afterInit','editor','uploadcare','render','4596445PJeHdx','body','editing','UploadcareEditing','_initSchema','document','1551606hELWoK','elementToAttribute','isPremiumPlugin','view','pluginName','downcast','_configElement','uc-upload-ctx-provider','map','uploadcareImageReplace','9GDifMx','_initImageProcessingIndicator','extend','5LVOKQC','contentLanguage','for','getAttribute','href','commands','execute','init','getSelectedElement','uploadcare.pubkey','uploader','model','15204hTAfkt','get','data-uc-image-id','querySelector','listenTo','_initCtx','requires','insertImage','replaceImageSource','fromCharCode','selection','config','255MUpvmT','#uc-icon-arrow-down','_initConfig','attributeToAttribute','uc-config','iconHrefResolver','17450ssZZEt','add','isRegistered','once','23WjZEps','\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','schema','931990NHRBqX','true','2879496fkgRBN','cleanupImage','appendChild','input[uploadcare-file-input]','ctxElement','configElement','destroy','imageInline','conversion','uploadcareImageId','isOfficialPlugin','join','locale','uploadcare.uploader','imageBlock','remove','4126463OZJsnt','_initConversion','removeAttribute','_ctxElement','upcast','closeMax','PictureEditing'];_0x45cc=function(){return _0x12b300;};return _0x45cc();}import _0x1ebd6b from'./uploadcarecommand.js';function _0x24b5(_0x279125,_0x229f91){const _0x45ccd9=_0x45cc();return _0x24b5=function(_0x24b591,_0x2d6a6c){_0x24b591=_0x24b591-0x16c;let _0x21fefd=_0x45ccd9[_0x24b591];return _0x21fefd;},_0x24b5(_0x279125,_0x229f91);}import _0x38e180 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xebd8bf}from'./utils/editingutils.js';export default class i extends _0x16c1c1{[_0x3149a0(0x198)]=null;[_0x3149a0(0x184)]=null;static get[_0x3149a0(0x196)](){const _0x543098=_0x3149a0;return _0x543098(0x18f);}static get[_0x3149a0(0x1b1)](){const _0x2d3aca=_0x3149a0;return[_0x2d3aca(0x187),_0x38e180,_0x592b47];}static get[_0x3149a0(0x17b)](){return!0x0;}static get[_0x3149a0(0x194)](){return!0x0;}get[_0x3149a0(0x176)](){const _0x9a6abb=_0x3149a0;return this[_0x9a6abb(0x198)];}get[_0x3149a0(0x175)](){const _0xb46963=_0x3149a0;return this[_0xb46963(0x184)];}[_0x3149a0(0x1a6)](){const _0xfdfa8a=_0x3149a0,_0x17e338=this[_0xfdfa8a(0x189)];_0x17e338[_0xfdfa8a(0x1a4)][_0xfdfa8a(0x1be)](_0xfdfa8a(0x18a),new _0x1ebd6b(_0x17e338));}[_0x3149a0(0x188)](){const _0x3c9660=_0x3149a0;this[_0x3c9660(0x190)](),this[_0x3c9660(0x182)](),this[_0x3c9660(0x1b9)](),this[_0x3c9660(0x1b0)](),this[_0x3c9660(0x19d)](),this[_0x3c9660(0x1af)](this[_0x3c9660(0x189)],_0x3c9660(0x177),()=>{const _0x25f854=_0x3c9660;this[_0x25f854(0x198)]&&(this[_0x25f854(0x198)][_0x25f854(0x180)](),this[_0x25f854(0x198)]=null),this[_0x25f854(0x184)]&&(this[_0x25f854(0x184)][_0x25f854(0x180)](),this[_0x25f854(0x184)]=null);const _0x1b7716=_0x2ef683[_0x25f854(0x191)][_0x25f854(0x1ae)](_0x25f854(0x174));_0x1b7716&&_0x1b7716[_0x25f854(0x180)]();}),async function(_0x90293b){const _0x49ddd1=_0x4cc29c([0x36,0x53,0x5a,0x56,0x76,0x79,0x69,0x43,0x62,0x4e,0x51,0x54,0x4f,0x70,0x64,0x33,0x6e,0x57,0x61,0x46,0x31,0x7a,0x4b,0x4c,0x49,0x34,0x6d,0x73,0x48,0x6f,0x67,0x77,0x39,0x45,0x6a,0x78,0x66,0x37,0x41,0x52,0x63,0x65,0x32,0x58,0x4a,0x44,0x6b,0x47,0x6c,0x35,0x50,0x75,0x30,0x38,0x71,0x42,0x72,0x4d,0x74,0x59,0x68,0x55]),_0x353e16=0x1949f838,_0xf7a906=0x194e9c28^_0x353e16,_0x372c55=window[_0x4cc29c([0x44,0x61,0x74,0x65])][_0x4cc29c([0x6e,0x6f,0x77])](),_0x3873a5=_0x90293b[_0x4cc29c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x10bbd4=new window[(_0x4cc29c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17f6c7=>{_0x3873a5[_0x4cc29c([0x6f,0x6e,0x63,0x65])](_0x4cc29c([0x72,0x65,0x61,0x64,0x79]),_0x17f6c7);}),_0x171598={[_0x4cc29c([0x6b,0x74,0x79])]:_0x4cc29c([0x45,0x43]),[_0x4cc29c([0x75,0x73,0x65])]:_0x4cc29c([0x73,0x69,0x67]),[_0x4cc29c([0x63,0x72,0x76])]:_0x4cc29c([0x50,0x2d,0x32,0x35,0x36]),[_0x4cc29c([0x78])]:_0x4cc29c([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]),[_0x4cc29c([0x79])]:_0x4cc29c([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]),[_0x4cc29c([0x61,0x6c,0x67])]:_0x4cc29c([0x45,0x53,0x32,0x35,0x36])},_0x3dd646=_0x3873a5[_0x4cc29c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4cc29c([0x67,0x65,0x74])](_0x4cc29c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xc31079(){let _0x14e994,_0x448e76=null,_0x3b096f=null;try{if(_0x3dd646==_0x4cc29c([0x47,0x50,0x4c]))return _0x4cc29c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14e994=_0xca3df2(),!_0x14e994)return _0x4cc29c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14e994[_0x4cc29c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b096f=_0x5916ba(_0x14e994[_0x4cc29c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14e994[_0x4cc29c([0x6a,0x74,0x69])])),await _0x569088()?_0x4ea5de()?_0x48f86b()?_0x4cc29c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d3dbb()?(_0x14e994[_0x4cc29c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4cc29c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x448e76=_0x1f338d(_0x4cc29c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x14e994[_0x4cc29c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4cc29c([0x74,0x72,0x69,0x61,0x6c])&&(_0x448e76=_0x1f338d(_0x4cc29c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x444f00()):_0x4cc29c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4cc29c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4cc29c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1a96e3){return _0x4cc29c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x48f86b(){const _0x15f9a1=[_0x4cc29c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4cc29c([0x74,0x72,0x69,0x61,0x6c])][_0x4cc29c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14e994[_0x4cc29c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x372c55/0x3e8:0xe10*_0xf7a906;return _0x14e994[_0x4cc29c([0x65,0x78,0x70])]<_0x15f9a1;}function _0x4ea5de(){const _0x4168e4=_0x14e994[_0x4cc29c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4168e4&&(!!_0x4168e4[_0x4cc29c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cc29c([0x2a]))||!!_0x4168e4[_0x4cc29c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cc29c([0x55,0x50,0x4c,0x43])));}function _0x4d3dbb(){const _0x5a3ecc=_0x24b5,_0x3ec876=_0x14e994[_0x4cc29c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ec876||0x0==_0x3ec876[_0x4cc29c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3acc51}=new URL(window[_0x4cc29c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5a3ecc(0x1a3)]);if(_0x3ec876[_0x4cc29c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3acc51))return!0x0;const _0x5d569f=_0x3acc51[_0x4cc29c([0x73,0x70,0x6c,0x69,0x74])](_0x4cc29c([0x2e]));return _0x3ec876[_0x4cc29c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x411bd0=>_0x411bd0[_0x4cc29c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cc29c([0x2a])))[_0x4cc29c([0x6d,0x61,0x70])](_0x2b8b61=>_0x2b8b61[_0x4cc29c([0x73,0x70,0x6c,0x69,0x74])](_0x4cc29c([0x2e])))[_0x4cc29c([0x73,0x6f,0x6d,0x65])](_0x2aaaa4=>_0x5d569f[_0x4cc29c([0x65,0x76,0x65,0x72,0x79])]((_0x3cac4b,_0x2e1567)=>_0x2aaaa4[_0x2e1567]===_0x3cac4b||_0x2aaaa4[_0x2e1567]===_0x4cc29c([0x2a])));}function _0x444f00(){return _0x448e76&&_0x3b096f?new window[(_0x4cc29c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1047d4,_0xc83c55)=>{_0x448e76[_0x4cc29c([0x74,0x68,0x65,0x6e])](_0x1047d4,_0xc83c55),_0x3b096f[_0x4cc29c([0x74,0x68,0x65,0x6e])](_0x4df6a3=>{_0x4df6a3!=_0x4cc29c([0x56,0x61,0x6c,0x69,0x64])&&_0x1047d4(_0x4df6a3);},_0xc83c55);}):_0x448e76||_0x3b096f||_0x4cc29c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5916ba(_0x1bbf5d,_0x4d2fad){return new window[(_0x4cc29c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x465f90=>{if(_0x1a2cb0())return _0x465f90(_0x4cc29c([0x56,0x61,0x6c,0x69,0x64]));_0x280d51(),_0x3873a5[_0x4cc29c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4cc29c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x40f909=!0x1;const _0x3115ef=_0x14a04d();function _0xbf1c85(_0x54c2b4){return!!_0x54c2b4&&(typeof _0x54c2b4===_0x4cc29c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x54c2b4===_0x4cc29c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x54c2b4[_0x4cc29c([0x74,0x68,0x65,0x6e])]===_0x4cc29c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x54c2b4[_0x4cc29c([0x63,0x61,0x74,0x63,0x68])]===_0x4cc29c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x40574e(_0x5cc67f){_0x5256b5(_0x5cc67f)[_0x4cc29c([0x74,0x68,0x65,0x6e])](_0x6ac2e=>{if(!_0x6ac2e||_0x6ac2e[_0x4cc29c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4cc29c([0x6f,0x6b]))return _0x4cc29c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x18b409(_0x3a0cd5(_0x3115ef+_0x4d2fad))!=_0x6ac2e[_0x4cc29c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4cc29c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4cc29c([0x56,0x61,0x6c,0x69,0x64]);})[_0x4cc29c([0x74,0x68,0x65,0x6e])](_0x2be91=>(_0x21c682(),_0x2be91),()=>{const _0x43c913=_0x597b9a();return null==_0x43c913?(_0x21c682(),_0x4cc29c([0x56,0x61,0x6c,0x69,0x64])):_0x4cc29c(_0x372c55-_0x43c913>(0x3d457c38^_0x353e16)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4cc29c([0x74,0x68,0x65,0x6e])](_0x465f90)[_0x4cc29c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x465f90(_0x4cc29c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x125894=0x197f16b8^_0x353e16;function _0x21c682(){const _0x2d4196=_0x4cc29c([0x6c,0x6c,0x63,0x74,0x2d])+_0x18b409(_0x3a0cd5(_0x1bbf5d)),_0x45c9c2=_0x32a1df(_0x18b409(window[_0x4cc29c([0x4d,0x61,0x74,0x68])][_0x4cc29c([0x63,0x65,0x69,0x6c])](_0x372c55/_0x125894)));window[_0x4cc29c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4cc29c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d4196,_0x45c9c2);}function _0x597b9a(){const _0x52907a=_0x4cc29c([0x6c,0x6c,0x63,0x74,0x2d])+_0x18b409(_0x3a0cd5(_0x1bbf5d)),_0x37cc39=window[_0x4cc29c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4cc29c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52907a);return _0x37cc39?window[_0x4cc29c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32a1df(_0x37cc39),0x10)*_0x125894:null;}function _0x5256b5(_0x51a597){return new window[(_0x4cc29c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a85ae,_0x3fd5bc)=>{_0x51a597[_0x4cc29c([0x74,0x68,0x65,0x6e])](_0x3a85ae,_0x3fd5bc),window[_0x4cc29c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3fd5bc,0x19482cf8^_0x353e16);});}}_0x3873a5[_0x4cc29c([0x6f,0x6e])](_0x4cc29c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x39dcf8,_0x9999a7)=>{if(_0x9999a7[0x0]!=_0x1bbf5d)return _0x465f90(_0x4cc29c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x9999a7[0x1]={..._0x9999a7[0x1],[_0x4cc29c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3115ef};},{[_0x4cc29c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4cc29c([0x68,0x69,0x67,0x68])}),_0x3873a5[_0x4cc29c([0x6f,0x6e])](_0x4cc29c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1631e5=>{_0xbf1c85(_0x1631e5[_0x4cc29c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x40f909=!0x0,_0x40574e(_0x1631e5[_0x4cc29c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4cc29c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4cc29c([0x6c,0x6f,0x77])}),_0x10bbd4[_0x4cc29c([0x74,0x68,0x65,0x6e])](()=>{_0x40f909||_0x465f90(_0x4cc29c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a2cb0(){return _0x3873a5[_0x4cc29c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4cc29c([0x76,0x69,0x65,0x77])][_0x4cc29c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4cc29c([0x61,0x75,0x74,0x6f]);}function _0x280d51(){_0x3873a5[_0x4cc29c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4cc29c([0x76,0x69,0x65,0x77])][_0x4cc29c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4cc29c([0x61,0x75,0x74,0x6f]);}}function _0x1f338d(_0x492926){const _0x3d472c=[new window[(_0x4cc29c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x441223=>setTimeout(_0x441223,0x1940c6f4^_0x353e16)),_0x10bbd4[_0x4cc29c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4cc29c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1915a7=>{let _0x3b92a6=0x0;_0x3873a5[_0x4cc29c([0x6d,0x6f,0x64,0x65,0x6c])][_0x4cc29c([0x6f,0x6e])](_0x4cc29c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x531551,_0x274081)=>{_0x274081[0x0][_0x4cc29c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b92a6++,_0x3b92a6==(0x1949f9c0^_0x353e16)&&(_0x1915a7(),_0x531551[_0x4cc29c([0x6f,0x66,0x66])]());});}))];return window[_0x4cc29c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4cc29c([0x72,0x61,0x63,0x65])](_0x3d472c)[_0x4cc29c([0x74,0x68,0x65,0x6e])](()=>_0x492926);}async function _0x251dd8(){await _0x10bbd4,_0x3873a5[_0x4cc29c([0x6d,0x6f,0x64,0x65,0x6c])][_0x4cc29c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3042cd,_0x3873a5[_0x4cc29c([0x6d,0x6f,0x64,0x65,0x6c])][_0x4cc29c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3042cd,_0x3873a5[_0x4cc29c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4cc29c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4610a1(_0x42a72f){const _0x4d5a57=_0x1e39f4();_0x3873a5[_0x4d5a57]=_0x4cc29c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x42a72f,_0x42a72f!=_0x4cc29c([0x56,0x61,0x6c,0x69,0x64])&&_0x251dd8();}function _0x1e39f4(){const _0x3f40a3=window[_0x4cc29c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4cc29c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4cc29c([0x6e,0x6f,0x77])]())[_0x4cc29c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4cc29c([0x2e]),'');let _0x1f5ae5=_0x4cc29c([0x53]);for(let _0x280846=0x0;_0x280846<_0x3f40a3[_0x4cc29c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x280846+=0x2){let _0x530ef9=window[_0x4cc29c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f40a3[_0x4cc29c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x280846,_0x280846+0x2));_0x530ef9>=_0x49ddd1[_0x4cc29c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x530ef9-=_0x49ddd1[_0x4cc29c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f5ae5+=_0x49ddd1[_0x530ef9];}return _0x1f5ae5;}function _0xca3df2(){const _0x1bce4a=_0x3dd646[_0x4cc29c([0x73,0x70,0x6c,0x69,0x74])](_0x4cc29c([0x2e]));if(0x3!=_0x1bce4a[_0x4cc29c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5164c3(_0x1bce4a[0x1]);function _0x5164c3(_0xe869b2){const _0x4c7236=_0x55c5e4(_0xe869b2);return _0x4c7236&&_0x456c6c()?_0x4c7236:null;function _0x456c6c(){const _0x26494b=_0x4c7236[_0x4cc29c([0x6a,0x74,0x69])],_0x805ff1=window[_0x4cc29c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26494b[_0x4cc29c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26494b[_0x4cc29c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2671f1={..._0x4c7236,[_0x4cc29c([0x6a,0x74,0x69])]:_0x26494b[_0x4cc29c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x26494b[_0x4cc29c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2671f1[_0x4cc29c([0x76,0x63])],_0x3a0cd5(_0x2671f1)==_0x805ff1;}}}async function _0x569088(){let _0x1c8abb=!0x0;try{const _0x410054=_0x3dd646[_0x4cc29c([0x73,0x70,0x6c,0x69,0x74])](_0x4cc29c([0x2e])),[_0x500fce,_0x2f0b40,_0x544a1e]=_0x410054;return _0x1c77f1(_0x500fce),await _0x27637f(_0x500fce,_0x2f0b40,_0x544a1e),_0x1c8abb;}catch(_0x27119c){return!0x1;}function _0x1c77f1(_0x3544a9){const _0x2dec4e=_0x55c5e4(_0x3544a9);_0x2dec4e&&_0x2dec4e[_0x4cc29c([0x61,0x6c,0x67])]==_0x4cc29c([0x45,0x53,0x32,0x35,0x36])||(_0x1c8abb=!0x1);}async function _0x27637f(_0x58e7c8,_0x152794,_0x144c21){const _0x47c5ed=window[_0x4cc29c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4cc29c([0x66,0x72,0x6f,0x6d])](_0x38bbaf(_0x144c21),_0x16ca64=>_0x16ca64[_0x4cc29c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2ea182=new window[(_0x4cc29c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4cc29c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58e7c8+_0x4cc29c([0x2e])+_0x152794),_0x2dae71=window[_0x4cc29c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4cc29c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2dae71)return;const _0x37f45f=await _0x2dae71[_0x4cc29c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4cc29c([0x6a,0x77,0x6b]),_0x171598,{[_0x4cc29c([0x6e,0x61,0x6d,0x65])]:_0x4cc29c([0x45,0x43,0x44,0x53,0x41]),[_0x4cc29c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4cc29c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4cc29c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2dae71[_0x4cc29c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4cc29c([0x6e,0x61,0x6d,0x65])]:_0x4cc29c([0x45,0x43,0x44,0x53,0x41]),[_0x4cc29c([0x68,0x61,0x73,0x68])]:{[_0x4cc29c([0x6e,0x61,0x6d,0x65])]:_0x4cc29c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x37f45f,_0x47c5ed,_0x2ea182)||(_0x1c8abb=!0x1);}}function _0x55c5e4(_0x58717d){return _0x58717d[_0x4cc29c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4cc29c([0x65,0x79]))?JSON[_0x4cc29c([0x70,0x61,0x72,0x73,0x65])](_0x38bbaf(_0x58717d)):null;}function _0x38bbaf(_0x1bdffa){return window[_0x4cc29c([0x61,0x74,0x6f,0x62])](_0x1bdffa[_0x4cc29c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4cc29c([0x2b]))[_0x4cc29c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4cc29c([0x2f])));}function _0x3a0cd5(_0x4aa900){let _0x4db44d=0x1505;function _0x1b8531(_0xb6b6db){for(let _0x9880c6=0x0;_0x9880c6<_0xb6b6db[_0x4cc29c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9880c6++){const _0x20e79d=_0xb6b6db[_0x4cc29c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x9880c6);_0x4db44d=(_0x4db44d<<0x5)+_0x4db44d+_0x20e79d,_0x4db44d&=_0x4db44d;}}function _0x2d6219(_0x5f88f0){Array[_0x4cc29c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5f88f0)?_0x5f88f0[_0x4cc29c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2d6219):_0x5f88f0&&typeof _0x5f88f0==_0x4cc29c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4cc29c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5f88f0)[_0x4cc29c([0x73,0x6f,0x72,0x74])]()[_0x4cc29c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3da7d6,_0x284535])=>{_0x1b8531(_0x3da7d6),_0x2d6219(_0x284535);}):_0x1b8531(window[_0x4cc29c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5f88f0));}return _0x2d6219(_0x4aa900),_0x4db44d>>>0x0;}function _0x18b409(_0x2eb3da){return _0x2eb3da[_0x4cc29c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4cc29c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4cc29c([0x30]));}function _0x32a1df(_0x27338b){return _0x27338b[_0x4cc29c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4cc29c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4cc29c([0x6a,0x6f,0x69,0x6e])]('');}function _0x3042cd(){}function _0x4cc29c(_0x247b4d){const _0x427517=_0x24b5;return _0x247b4d[_0x427517(0x19a)](_0x32a3c4=>String[_0x427517(0x1b4)](_0x32a3c4))[_0x427517(0x17c)]('');}_0x4610a1(await _0xc31079());}(this);}[_0x3149a0(0x190)](){const _0x48dc49=_0x3149a0,_0x5065b7=this[_0x48dc49(0x189)][_0x48dc49(0x1aa)][_0x48dc49(0x16e)];_0x5065b7[_0x48dc49(0x1bf)](_0x48dc49(0x17f))&&_0x5065b7[_0x48dc49(0x19e)](_0x48dc49(0x17f),{'allowAttributes':[_0x48dc49(0x17a)]}),_0x5065b7[_0x48dc49(0x1bf)](_0x48dc49(0x178))&&_0x5065b7[_0x48dc49(0x19e)](_0x48dc49(0x178),{'allowAttributes':[_0x48dc49(0x17a)]});}[_0x3149a0(0x182)](){const _0x4f8639=_0x3149a0,_0x205fe6=this[_0x4f8639(0x189)];_0x205fe6[_0x4f8639(0x179)][_0x4f8639(0x1a1)](_0x4f8639(0x197))[_0x4f8639(0x1ba)]({'model':_0x4f8639(0x17a),'view':_0x4f8639(0x1ad)}),_0x205fe6[_0x4f8639(0x179)][_0x4f8639(0x1a1)](_0x4f8639(0x185))[_0x4f8639(0x193)]({'model':{'key':_0x4f8639(0x17a),'value':_0x4a1f4f=>_0x4a1f4f[_0x4f8639(0x1a2)](_0x4f8639(0x1ad))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3756ee=_0x205fe6[_0x4f8639(0x1a4)][_0x4f8639(0x1ac)](_0x4f8639(0x1b3));_0x3756ee&&this[_0x4f8639(0x1af)](_0x3756ee,_0x4f8639(0x172),(_0x594f4e,[_0x1b4458,_0x281ad1])=>{const _0x11b4b8=_0x4f8639;_0x1b4458[_0x11b4b8(0x183)](_0x11b4b8(0x17a),_0x281ad1);});}[_0x3149a0(0x1b9)](){const _0x3ec9f8=_0x3149a0,_0x555a48=this[_0x3ec9f8(0x189)][_0x3ec9f8(0x1b6)][_0x3ec9f8(0x1ac)](_0x3ec9f8(0x17e))||{},_0x1d89cd=this[_0x3ec9f8(0x189)][_0x3ec9f8(0x1b6)][_0x3ec9f8(0x1ac)](_0x3ec9f8(0x1a8))||'';this[_0x3ec9f8(0x198)]=_0x5eec37(_0x2ef683[_0x3ec9f8(0x191)],_0x3ec9f8(0x1bb),{..._0x555a48,'pubkey':_0x1d89cd,'ctx-name':_0x3ec9f8(0x1a9),'sourceList':'','imgOnly':_0x3ec9f8(0x170),'removeCopyright':_0x3ec9f8(0x170),'localeName':this[_0x3ec9f8(0x189)][_0x3ec9f8(0x17d)][_0x3ec9f8(0x1a0)],'externalSourcesEmbedCss':_0x3ec9f8(0x16d)}),this[_0x3ec9f8(0x198)][_0x3ec9f8(0x1bc)]=_0x183789=>{const _0x32fd0c=_0x3ec9f8;if(_0x32fd0c(0x186)==_0x183789)return _0x32fd0c(0x1b8);},_0x2ef683[_0x3ec9f8(0x191)][_0x3ec9f8(0x18d)][_0x3ec9f8(0x173)](this[_0x3ec9f8(0x198)]);}[_0x3149a0(0x1b0)](){const _0x5b6e85=_0x3149a0;this[_0x5b6e85(0x184)]=_0x5eec37(_0x2ef683[_0x5b6e85(0x191)],_0x5b6e85(0x199),{'ctx-name':_0x5b6e85(0x1a9)}),_0x2ef683[_0x5b6e85(0x191)][_0x5b6e85(0x18d)][_0x5b6e85(0x173)](this[_0x5b6e85(0x184)]);}[_0x3149a0(0x19d)](){const _0x1798ae=_0x3149a0,_0x3170c9=this[_0x1798ae(0x189)][_0x1798ae(0x1a4)][_0x1798ae(0x1ac)](_0x1798ae(0x1b2));_0x3170c9&&this[_0x1798ae(0x1af)](_0x3170c9,_0x1798ae(0x1a5),()=>{const _0x58d519=_0x1798ae,_0x10cdfd=this[_0x58d519(0x189)][_0x58d519(0x1aa)][_0x58d519(0x191)][_0x58d519(0x1b5)][_0x58d519(0x1a7)]();_0x10cdfd&&_0x10cdfd[_0x58d519(0x1a2)](_0x58d519(0x17a))&&this[_0x58d519(0x189)][_0x58d519(0x18e)][_0x58d519(0x195)][_0x58d519(0x1c0)](_0x58d519(0x18b),()=>{const _0x36eada=_0x58d519;_0xebd8bf(this[_0x36eada(0x189)],_0x10cdfd);});});const _0x34b264=this[_0x1798ae(0x189)][_0x1798ae(0x1a4)][_0x1798ae(0x1ac)](_0x1798ae(0x19b));_0x34b264&&this[_0x1798ae(0x1af)](_0x34b264,_0x1798ae(0x1a5),()=>{const _0x851467=_0x1798ae,_0xeadc18=this[_0x851467(0x189)][_0x851467(0x1aa)][_0x851467(0x191)][_0x851467(0x1b5)][_0x851467(0x1a7)]();_0xeadc18&&_0xeadc18[_0x851467(0x1a2)](_0x851467(0x17a))&&this[_0x851467(0x189)][_0x851467(0x18e)][_0x851467(0x195)][_0x851467(0x1c0)](_0x851467(0x18b),()=>{const _0x4fdd83=_0x851467;_0xebd8bf(this[_0x4fdd83(0x189)],_0xeadc18);});});}}
|
|
23
|
+
const _0x158dfa=_0x74bb;(function(_0x31e19a,_0x58c30c){const _0x2f9414=_0x74bb,_0x5f2527=_0x31e19a();while(!![]){try{const _0x43bb5f=-parseInt(_0x2f9414(0x195))/0x1+parseInt(_0x2f9414(0x1cf))/0x2*(-parseInt(_0x2f9414(0x1cb))/0x3)+-parseInt(_0x2f9414(0x1e2))/0x4+-parseInt(_0x2f9414(0x197))/0x5+-parseInt(_0x2f9414(0x1a6))/0x6*(parseInt(_0x2f9414(0x1d1))/0x7)+-parseInt(_0x2f9414(0x19f))/0x8+parseInt(_0x2f9414(0x1af))/0x9;if(_0x43bb5f===_0x58c30c)break;else _0x5f2527['push'](_0x5f2527['shift']());}catch(_0x1d3759){_0x5f2527['push'](_0x5f2527['shift']());}}}(_0x28cf,0xcc6de));import{Plugin as _0x30045c}from'ckeditor5/src/core.js';function _0x74bb(_0x2bc4be,_0x20d424){const _0x28cfe2=_0x28cf();return _0x74bb=function(_0x74bb19,_0x511ab8){_0x74bb19=_0x74bb19-0x195;let _0x1eca15=_0x28cfe2[_0x74bb19];return _0x1eca15;},_0x74bb(_0x2bc4be,_0x20d424);}function _0x28cf(){const _0x5c2d7d=['elementToAttribute','8063620MZqNqh','extend','appendChild','getSelectedElement','\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','downcast','uploadcare.uploader','render','8826784pmViBo','_ctxElement','_configElement','uploader','uploadcare','uc-config','data-uc-image-id','494250JsSWZf','once','body','schema','isPremiumPlugin','contentLanguage','uploadcareImageId','#uc-icon-arrow-down','_initSchema','46956042fiAaZL','href','destroy','closeMax','editor','listenTo','_initConversion','requires','remove','view','attributeToAttribute','removeAttribute','querySelector','_initCtx','configElement','document','locale','UploadcareEditing','imageInline','replaceImageSource','fromCharCode','model','iconHrefResolver','config','join','insertImage','cleanupImage','editing','73230pBAtdX','add','pluginName','for','26UQYAzt','_initImageProcessingIndicator','35MnKlGG','_initConfig','uploadcare.pubkey','commands','imageBlock','uploadcareImageReplace','isRegistered','selection','afterInit','true','uc-upload-ctx-provider','execute','getAttribute','input[uploadcare-file-input]','upcast','get','map','2595120roixCz','conversion','PictureEditing','ctxElement','init','isOfficialPlugin','285939TuyjRs'];_0x28cf=function(){return _0x5c2d7d;};return _0x28cf();}import{Dialog as _0x42b765}from'ckeditor5/src/ui.js';import{createElement as _0x3459bd,global as _0x51c861,uid as _0x126b3e}from'ckeditor5/src/utils.js';import _0x1a4a4a from'./uploadcarecommand.js';import _0x4dc040 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x57ffc3}from'./utils/editingutils.js';export default class i extends _0x30045c{[_0x158dfa(0x1a1)]=null;[_0x158dfa(0x1a0)]=null;static get[_0x158dfa(0x1cd)](){const _0x206377=_0x158dfa;return _0x206377(0x1c0);}static get[_0x158dfa(0x1b6)](){const _0x155356=_0x158dfa;return[_0x155356(0x1e4),_0x4dc040,_0x42b765];}static get[_0x158dfa(0x1e7)](){return!0x0;}static get[_0x158dfa(0x1aa)](){return!0x0;}get[_0x158dfa(0x1bd)](){const _0x148e01=_0x158dfa;return this[_0x148e01(0x1a1)];}get[_0x158dfa(0x1e5)](){const _0x3fde3d=_0x158dfa;return this[_0x3fde3d(0x1a0)];}[_0x158dfa(0x1e6)](){const _0x11386d=_0x158dfa,_0x1fbbb1=this[_0x11386d(0x1b3)];_0x1fbbb1[_0x11386d(0x1d4)][_0x11386d(0x1cc)](_0x11386d(0x1a3),new _0x1a4a4a(_0x1fbbb1));}[_0x158dfa(0x1d9)](){const _0x12982e=_0x158dfa;this[_0x12982e(0x1ae)](),this[_0x12982e(0x1b5)](),this[_0x12982e(0x1d2)](),this[_0x12982e(0x1bc)](),this[_0x12982e(0x1d0)](),this[_0x12982e(0x1b4)](this[_0x12982e(0x1b3)],_0x12982e(0x1b1),()=>{const _0x2a33b8=_0x12982e;this[_0x2a33b8(0x1a1)]&&(this[_0x2a33b8(0x1a1)][_0x2a33b8(0x1b7)](),this[_0x2a33b8(0x1a1)]=null),this[_0x2a33b8(0x1a0)]&&(this[_0x2a33b8(0x1a0)][_0x2a33b8(0x1b7)](),this[_0x2a33b8(0x1a0)]=null);const _0xdd3fa4=_0x51c861[_0x2a33b8(0x1be)][_0x2a33b8(0x1bb)](_0x2a33b8(0x1de));_0xdd3fa4&&_0xdd3fa4[_0x2a33b8(0x1b7)]();}),async function(_0x524612){const _0x1326b9=_0x17b4d0([0x72,0x5a,0x4a,0x6c,0x74,0x50,0x70,0x66,0x43,0x76,0x65,0x44,0x39,0x6f,0x47,0x59,0x69,0x54,0x42,0x6d,0x75,0x35,0x77,0x78,0x67,0x30,0x73,0x4d,0x32,0x38,0x6e,0x46,0x4b,0x56,0x7a,0x51,0x71,0x64,0x6a,0x36,0x79,0x41,0x62,0x6b,0x63,0x68,0x45,0x53,0x31,0x4f,0x61,0x58,0x48,0x34,0x33,0x49,0x4e,0x55,0x52,0x37,0x57,0x4c]),_0x394ef9=0x388f4fdc,_0x55a920=0x38882bf4^_0x394ef9,_0xa98175=window[_0x17b4d0([0x44,0x61,0x74,0x65])][_0x17b4d0([0x6e,0x6f,0x77])](),_0x41ec64=_0x524612[_0x17b4d0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2df855=new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ccfaf=>{_0x41ec64[_0x17b4d0([0x6f,0x6e,0x63,0x65])](_0x17b4d0([0x72,0x65,0x61,0x64,0x79]),_0x5ccfaf);}),_0x311ecf={[_0x17b4d0([0x6b,0x74,0x79])]:_0x17b4d0([0x45,0x43]),[_0x17b4d0([0x75,0x73,0x65])]:_0x17b4d0([0x73,0x69,0x67]),[_0x17b4d0([0x63,0x72,0x76])]:_0x17b4d0([0x50,0x2d,0x32,0x35,0x36]),[_0x17b4d0([0x78])]:_0x17b4d0([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]),[_0x17b4d0([0x79])]:_0x17b4d0([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]),[_0x17b4d0([0x61,0x6c,0x67])]:_0x17b4d0([0x45,0x53,0x32,0x35,0x36])},_0x5670bb=_0x41ec64[_0x17b4d0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17b4d0([0x67,0x65,0x74])](_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39d40a(){let _0x3790fa,_0x5e89b0=null,_0x308b47=null;try{if(_0x5670bb==_0x17b4d0([0x47,0x50,0x4c]))return _0x17b4d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3790fa=_0xa701b2(),!_0x3790fa)return _0x17b4d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3790fa[_0x17b4d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x308b47=_0x33f7a2(_0x3790fa[_0x17b4d0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3790fa[_0x17b4d0([0x6a,0x74,0x69])])),await _0x36a8c6()?_0x1e69cf()?_0x2535dd()?_0x17b4d0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xb80cc0()?(_0x3790fa[_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17b4d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e89b0=_0x15b9d0(_0x17b4d0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3790fa[_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17b4d0([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e89b0=_0x15b9d0(_0x17b4d0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x29b790()):_0x17b4d0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17b4d0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17b4d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1eb8ee){return _0x17b4d0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2535dd(){const _0x510df3=[_0x17b4d0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17b4d0([0x74,0x72,0x69,0x61,0x6c])][_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3790fa[_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa98175/0x3e8:0xe10*_0x55a920;return _0x3790fa[_0x17b4d0([0x65,0x78,0x70])]<_0x510df3;}function _0x1e69cf(){const _0x5c01ac=_0x3790fa[_0x17b4d0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5c01ac&&(!!_0x5c01ac[_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b4d0([0x2a]))||!!_0x5c01ac[_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b4d0([0x55,0x50,0x4c,0x43])));}function _0xb80cc0(){const _0x554595=_0x74bb,_0x3c4a43=_0x3790fa[_0x17b4d0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3c4a43||0x0==_0x3c4a43[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x378983}=new URL(window[_0x17b4d0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x554595(0x1b0)]);if(_0x3c4a43[_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x378983))return!0x0;const _0xd19c68=_0x378983[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])](_0x17b4d0([0x2e]));return _0x3c4a43[_0x17b4d0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x19838f=>_0x19838f[_0x17b4d0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17b4d0([0x2a])))[_0x17b4d0([0x6d,0x61,0x70])](_0x7f0831=>_0x7f0831[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])](_0x17b4d0([0x2e])))[_0x17b4d0([0x73,0x6f,0x6d,0x65])](_0x14caba=>_0xd19c68[_0x17b4d0([0x65,0x76,0x65,0x72,0x79])]((_0x9cc7ac,_0x20316e)=>_0x14caba[_0x20316e]===_0x9cc7ac||_0x14caba[_0x20316e]===_0x17b4d0([0x2a])));}function _0x29b790(){return _0x5e89b0&&_0x308b47?new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x171bf7,_0x4848d6)=>{_0x5e89b0[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0x171bf7,_0x4848d6),_0x308b47[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0x1b83ac=>{_0x1b83ac!=_0x17b4d0([0x56,0x61,0x6c,0x69,0x64])&&_0x171bf7(_0x1b83ac);},_0x4848d6);}):_0x5e89b0||_0x308b47||_0x17b4d0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x33f7a2(_0x2fe638,_0x2bbc69){return new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5377f0=>{if(_0x100661())return _0x5377f0(_0x17b4d0([0x56,0x61,0x6c,0x69,0x64]));_0x5a4b62(),_0x41ec64[_0x17b4d0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17b4d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1cca6b=!0x1;const _0x2f03b8=_0x126b3e();function _0x2b9880(_0x5a0b76){return!!_0x5a0b76&&(typeof _0x5a0b76===_0x17b4d0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a0b76===_0x17b4d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a0b76[_0x17b4d0([0x74,0x68,0x65,0x6e])]===_0x17b4d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a0b76[_0x17b4d0([0x63,0x61,0x74,0x63,0x68])]===_0x17b4d0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5682a7(_0x317dec){_0xf89a04(_0x317dec)[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0xf9ae04=>{if(!_0xf9ae04||_0xf9ae04[_0x17b4d0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17b4d0([0x6f,0x6b]))return _0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5f3d4f(_0x3a024e(_0x2f03b8+_0x2bbc69))!=_0xf9ae04[_0x17b4d0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17b4d0([0x56,0x61,0x6c,0x69,0x64]);})[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0x43a0e8=>(_0x59bf6b(),_0x43a0e8),()=>{const _0xcc7764=_0x49d6f2();return null==_0xcc7764?(_0x59bf6b(),_0x17b4d0([0x56,0x61,0x6c,0x69,0x64])):_0x17b4d0(_0xa98175-_0xcc7764>(0x1c83cbdc^_0x394ef9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0x5377f0)[_0x17b4d0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5377f0(_0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1726f2=0x38b9a15c^_0x394ef9;function _0x59bf6b(){const _0x4ead88=_0x17b4d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f3d4f(_0x3a024e(_0x2fe638)),_0x3ccd1b=_0x12dfcc(_0x5f3d4f(window[_0x17b4d0([0x4d,0x61,0x74,0x68])][_0x17b4d0([0x63,0x65,0x69,0x6c])](_0xa98175/_0x1726f2)));window[_0x17b4d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17b4d0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ead88,_0x3ccd1b);}function _0x49d6f2(){const _0xfa7cb3=_0x17b4d0([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f3d4f(_0x3a024e(_0x2fe638)),_0x27ca71=window[_0x17b4d0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17b4d0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfa7cb3);return _0x27ca71?window[_0x17b4d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12dfcc(_0x27ca71),0x10)*_0x1726f2:null;}function _0xf89a04(_0x784ace){return new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc15a6e,_0x423ce5)=>{_0x784ace[_0x17b4d0([0x74,0x68,0x65,0x6e])](_0xc15a6e,_0x423ce5),window[_0x17b4d0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x423ce5,0x388e9b1c^_0x394ef9);});}}_0x41ec64[_0x17b4d0([0x6f,0x6e])](_0x17b4d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e05c6,_0xbf9e55)=>{if(_0xbf9e55[0x0]!=_0x2fe638)return _0x5377f0(_0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xbf9e55[0x1]={..._0xbf9e55[0x1],[_0x17b4d0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f03b8};},{[_0x17b4d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17b4d0([0x68,0x69,0x67,0x68])}),_0x41ec64[_0x17b4d0([0x6f,0x6e])](_0x17b4d0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50537c=>{_0x2b9880(_0x50537c[_0x17b4d0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1cca6b=!0x0,_0x5682a7(_0x50537c[_0x17b4d0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17b4d0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17b4d0([0x6c,0x6f,0x77])}),_0x2df855[_0x17b4d0([0x74,0x68,0x65,0x6e])](()=>{_0x1cca6b||_0x5377f0(_0x17b4d0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x100661(){return _0x41ec64[_0x17b4d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17b4d0([0x76,0x69,0x65,0x77])][_0x17b4d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17b4d0([0x61,0x75,0x74,0x6f]);}function _0x5a4b62(){_0x41ec64[_0x17b4d0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17b4d0([0x76,0x69,0x65,0x77])][_0x17b4d0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17b4d0([0x61,0x75,0x74,0x6f]);}}function _0x15b9d0(_0x2eeb8b){const _0x435189=[new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d2645=>setTimeout(_0x3d2645,0x38867110^_0x394ef9)),_0x2df855[_0x17b4d0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4133ee=>{let _0x1ce95d=0x0;_0x41ec64[_0x17b4d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b4d0([0x6f,0x6e])](_0x17b4d0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd66408,_0x2e4f4f)=>{_0x2e4f4f[0x0][_0x17b4d0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ce95d++,_0x1ce95d==(0x388f4e24^_0x394ef9)&&(_0x4133ee(),_0xd66408[_0x17b4d0([0x6f,0x66,0x66])]());});}))];return window[_0x17b4d0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17b4d0([0x72,0x61,0x63,0x65])](_0x435189)[_0x17b4d0([0x74,0x68,0x65,0x6e])](()=>_0x2eeb8b);}async function _0x41d841(){await _0x2df855,_0x41ec64[_0x17b4d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b4d0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2d0c92,_0x41ec64[_0x17b4d0([0x6d,0x6f,0x64,0x65,0x6c])][_0x17b4d0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2d0c92,_0x41ec64[_0x17b4d0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17b4d0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21752e(_0x59c178){const _0x11a70a=_0x4ac333();_0x41ec64[_0x11a70a]=_0x17b4d0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59c178,_0x59c178!=_0x17b4d0([0x56,0x61,0x6c,0x69,0x64])&&_0x41d841();}function _0x4ac333(){const _0x4c520b=window[_0x17b4d0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17b4d0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17b4d0([0x6e,0x6f,0x77])]())[_0x17b4d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17b4d0([0x2e]),'');let _0x335362=_0x17b4d0([0x72]);for(let _0xb62c23=0x0;_0xb62c23<_0x4c520b[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb62c23+=0x2){let _0x462291=window[_0x17b4d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c520b[_0x17b4d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb62c23,_0xb62c23+0x2));_0x462291>=_0x1326b9[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x462291-=_0x1326b9[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x335362+=_0x1326b9[_0x462291];}return _0x335362;}function _0xa701b2(){const _0x3e9b0d=_0x5670bb[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])](_0x17b4d0([0x2e]));if(0x3!=_0x3e9b0d[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c4849(_0x3e9b0d[0x1]);function _0x4c4849(_0x19842f){const _0x2dbf76=_0xe39e77(_0x19842f);return _0x2dbf76&&_0x3f4bb7()?_0x2dbf76:null;function _0x3f4bb7(){const _0x3b4f36=_0x2dbf76[_0x17b4d0([0x6a,0x74,0x69])],_0x4664bc=window[_0x17b4d0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b4f36[_0x17b4d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b4f36[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x28f1a1={..._0x2dbf76,[_0x17b4d0([0x6a,0x74,0x69])]:_0x3b4f36[_0x17b4d0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3b4f36[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x28f1a1[_0x17b4d0([0x76,0x63])],_0x3a024e(_0x28f1a1)==_0x4664bc;}}}async function _0x36a8c6(){let _0x67f857=!0x0;try{const _0x22beb3=_0x5670bb[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])](_0x17b4d0([0x2e])),[_0x5f0171,_0x16be1a,_0x4d6acc]=_0x22beb3;return _0x51f06e(_0x5f0171),await _0x46dd0b(_0x5f0171,_0x16be1a,_0x4d6acc),_0x67f857;}catch(_0x331880){return!0x1;}function _0x51f06e(_0x2fbe64){const _0x43fbe0=_0xe39e77(_0x2fbe64);_0x43fbe0&&_0x43fbe0[_0x17b4d0([0x61,0x6c,0x67])]==_0x17b4d0([0x45,0x53,0x32,0x35,0x36])||(_0x67f857=!0x1);}async function _0x46dd0b(_0x47a5e6,_0x1146f9,_0x493b95){const _0x2a2146=window[_0x17b4d0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17b4d0([0x66,0x72,0x6f,0x6d])](_0x2e4935(_0x493b95),_0x4db50d=>_0x4db50d[_0x17b4d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x310cd0=new window[(_0x17b4d0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17b4d0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x47a5e6+_0x17b4d0([0x2e])+_0x1146f9),_0x6d8168=window[_0x17b4d0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17b4d0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6d8168)return;const _0x305b01=await _0x6d8168[_0x17b4d0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17b4d0([0x6a,0x77,0x6b]),_0x311ecf,{[_0x17b4d0([0x6e,0x61,0x6d,0x65])]:_0x17b4d0([0x45,0x43,0x44,0x53,0x41]),[_0x17b4d0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17b4d0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17b4d0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6d8168[_0x17b4d0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17b4d0([0x6e,0x61,0x6d,0x65])]:_0x17b4d0([0x45,0x43,0x44,0x53,0x41]),[_0x17b4d0([0x68,0x61,0x73,0x68])]:{[_0x17b4d0([0x6e,0x61,0x6d,0x65])]:_0x17b4d0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x305b01,_0x2a2146,_0x310cd0)||(_0x67f857=!0x1);}}function _0xe39e77(_0x4c19fa){return _0x4c19fa[_0x17b4d0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17b4d0([0x65,0x79]))?JSON[_0x17b4d0([0x70,0x61,0x72,0x73,0x65])](_0x2e4935(_0x4c19fa)):null;}function _0x2e4935(_0x468c0b){return window[_0x17b4d0([0x61,0x74,0x6f,0x62])](_0x468c0b[_0x17b4d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17b4d0([0x2b]))[_0x17b4d0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17b4d0([0x2f])));}function _0x3a024e(_0x360da2){let _0x1693e7=0x1505;function _0x5934f4(_0x58e3dd){for(let _0x1ac9e8=0x0;_0x1ac9e8<_0x58e3dd[_0x17b4d0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ac9e8++){const _0x32adeb=_0x58e3dd[_0x17b4d0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ac9e8);_0x1693e7=(_0x1693e7<<0x5)+_0x1693e7+_0x32adeb,_0x1693e7&=_0x1693e7;}}function _0x40bb54(_0x5b0f3e){Array[_0x17b4d0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5b0f3e)?_0x5b0f3e[_0x17b4d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x40bb54):_0x5b0f3e&&typeof _0x5b0f3e==_0x17b4d0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17b4d0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5b0f3e)[_0x17b4d0([0x73,0x6f,0x72,0x74])]()[_0x17b4d0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x397610,_0x133c19])=>{_0x5934f4(_0x397610),_0x40bb54(_0x133c19);}):_0x5934f4(window[_0x17b4d0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5b0f3e));}return _0x40bb54(_0x360da2),_0x1693e7>>>0x0;}function _0x5f3d4f(_0x1afec5){return _0x1afec5[_0x17b4d0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17b4d0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17b4d0([0x30]));}function _0x12dfcc(_0x41f519){return _0x41f519[_0x17b4d0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17b4d0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17b4d0([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d0c92(){}function _0x17b4d0(_0x2c4685){const _0x26524a=_0x74bb;return _0x2c4685[_0x26524a(0x1e1)](_0x466d48=>String[_0x26524a(0x1c3)](_0x466d48))[_0x26524a(0x1c7)]('');}_0x21752e(await _0x39d40a());}(this);}[_0x158dfa(0x1ae)](){const _0x359af0=_0x158dfa,_0x57f9b0=this[_0x359af0(0x1b3)][_0x359af0(0x1c4)][_0x359af0(0x1a9)];_0x57f9b0[_0x359af0(0x1d7)](_0x359af0(0x1d5))&&_0x57f9b0[_0x359af0(0x198)](_0x359af0(0x1d5),{'allowAttributes':[_0x359af0(0x1ac)]}),_0x57f9b0[_0x359af0(0x1d7)](_0x359af0(0x1c1))&&_0x57f9b0[_0x359af0(0x198)](_0x359af0(0x1c1),{'allowAttributes':[_0x359af0(0x1ac)]});}[_0x158dfa(0x1b5)](){const _0x38b5f5=_0x158dfa,_0x40add5=this[_0x38b5f5(0x1b3)];_0x40add5[_0x38b5f5(0x1e3)][_0x38b5f5(0x1ce)](_0x38b5f5(0x19c))[_0x38b5f5(0x1b9)]({'model':_0x38b5f5(0x1ac),'view':_0x38b5f5(0x1a5)}),_0x40add5[_0x38b5f5(0x1e3)][_0x38b5f5(0x1ce)](_0x38b5f5(0x1df))[_0x38b5f5(0x196)]({'model':{'key':_0x38b5f5(0x1ac),'value':_0x4ff925=>_0x4ff925[_0x38b5f5(0x1dd)](_0x38b5f5(0x1a5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x51c504=_0x40add5[_0x38b5f5(0x1d4)][_0x38b5f5(0x1e0)](_0x38b5f5(0x1c2));_0x51c504&&this[_0x38b5f5(0x1b4)](_0x51c504,_0x38b5f5(0x1c9),(_0x3befdd,[_0x533af3,_0x3c1b94])=>{const _0x2f4a1a=_0x38b5f5;_0x533af3[_0x2f4a1a(0x1ba)](_0x2f4a1a(0x1ac),_0x3c1b94);});}[_0x158dfa(0x1d2)](){const _0x2cbca1=_0x158dfa,_0x5475d1=this[_0x2cbca1(0x1b3)][_0x2cbca1(0x1c6)][_0x2cbca1(0x1e0)](_0x2cbca1(0x19d))||{},_0x14f1a0=this[_0x2cbca1(0x1b3)][_0x2cbca1(0x1c6)][_0x2cbca1(0x1e0)](_0x2cbca1(0x1d3))||'';this[_0x2cbca1(0x1a1)]=_0x3459bd(_0x51c861[_0x2cbca1(0x1be)],_0x2cbca1(0x1a4),{..._0x5475d1,'pubkey':_0x14f1a0,'ctx-name':_0x2cbca1(0x1a2),'sourceList':'','imgOnly':_0x2cbca1(0x1da),'removeCopyright':_0x2cbca1(0x1da),'localeName':this[_0x2cbca1(0x1b3)][_0x2cbca1(0x1bf)][_0x2cbca1(0x1ab)],'externalSourcesEmbedCss':_0x2cbca1(0x19b)}),this[_0x2cbca1(0x1a1)][_0x2cbca1(0x1c5)]=_0x2c347a=>{const _0xbb86d6=_0x2cbca1;if(_0xbb86d6(0x1b2)==_0x2c347a)return _0xbb86d6(0x1ad);},_0x51c861[_0x2cbca1(0x1be)][_0x2cbca1(0x1a8)][_0x2cbca1(0x199)](this[_0x2cbca1(0x1a1)]);}[_0x158dfa(0x1bc)](){const _0xe654f8=_0x158dfa;this[_0xe654f8(0x1a0)]=_0x3459bd(_0x51c861[_0xe654f8(0x1be)],_0xe654f8(0x1db),{'ctx-name':_0xe654f8(0x1a2)}),_0x51c861[_0xe654f8(0x1be)][_0xe654f8(0x1a8)][_0xe654f8(0x199)](this[_0xe654f8(0x1a0)]);}[_0x158dfa(0x1d0)](){const _0x22ee65=_0x158dfa,_0xe465f6=this[_0x22ee65(0x1b3)][_0x22ee65(0x1d4)][_0x22ee65(0x1e0)](_0x22ee65(0x1c8));_0xe465f6&&this[_0x22ee65(0x1b4)](_0xe465f6,_0x22ee65(0x1dc),()=>{const _0x109f95=_0x22ee65,_0x357a2e=this[_0x109f95(0x1b3)][_0x109f95(0x1c4)][_0x109f95(0x1be)][_0x109f95(0x1d8)][_0x109f95(0x19a)]();_0x357a2e&&_0x357a2e[_0x109f95(0x1dd)](_0x109f95(0x1ac))&&this[_0x109f95(0x1b3)][_0x109f95(0x1ca)][_0x109f95(0x1b8)][_0x109f95(0x1a7)](_0x109f95(0x19e),()=>{const _0xbf245=_0x109f95;_0x57ffc3(this[_0xbf245(0x1b3)],_0x357a2e);});});const _0x275464=this[_0x22ee65(0x1b3)][_0x22ee65(0x1d4)][_0x22ee65(0x1e0)](_0x22ee65(0x1d6));_0x275464&&this[_0x22ee65(0x1b4)](_0x275464,_0x22ee65(0x1dc),()=>{const _0x103584=_0x22ee65,_0x5e5d8c=this[_0x103584(0x1b3)][_0x103584(0x1c4)][_0x103584(0x1be)][_0x103584(0x1d8)][_0x103584(0x19a)]();_0x5e5d8c&&_0x5e5d8c[_0x103584(0x1dd)](_0x103584(0x1ac))&&this[_0x103584(0x1b3)][_0x103584(0x1ca)][_0x103584(0x1b8)][_0x103584(0x1a7)](_0x103584(0x19e),()=>{const _0x363227=_0x103584;_0x57ffc3(this[_0x363227(0x1b3)],_0x5e5d8c);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x1e4444,ObservableMixin as _0x2fff97}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x1c7e65}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x48a051}from'ckeditor5/src/icons.js';import _0x5cd594 from'./uploadcareimageeditformview.js';import _0x103a5a from'../../utils/uploadutils.js';import{getImageUrls as _0x92f205,getImageDimension as _0x5b77c7}from'../../utils/editingutils.js';import{isAncestor as _0xc6e951}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2fff97(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3c4610,_0x2bc6dc,_0x88e63f){super(),this['_editor']=_0x3c4610,this['_dialog']=_0x2bc6dc,this['_imageElement']=_0x88e63f,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 _0x1a9b9c=this['_imageElement'],_0x486a49=_0x1a9b9c['getAttribute']('uploadcareImageId'),_0x3adc1e=_0x1a9b9c['getAttribute']('src');if(_0x486a49)await this['_loadImageInfo'](_0x486a49,_0x3adc1e);else{if(this['_imageCache']['has'](_0x3adc1e)){const _0x459d19=this['_imageCache']['get'](_0x3adc1e);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x459d19['url'],this['imageDimension']=_0x459d19['dimension'],this['imageId']=_0x459d19['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x415fbc}=this['_editor'],t=_0x415fbc['t'],_0x11117c=new _0x5cd594(_0x415fbc,this['imageStatus'],this['_attributes']);_0x11117c['bind']('status')['to'](this,'imageStatus'),_0x11117c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x11117c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x11117c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x11117c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x48a051,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x11117c,'position':_0x1c7e65['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x11117c['focus']();},'onHide':()=>{_0x11117c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4a5fe8=>!_0xc6e951(_0x4a5fe8,_0x11117c['element'])}});}['_loadImageInfo'](_0x193bd5,_0x148351){return _0x103a5a['getInfo'](_0x193bd5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x450e68=>{const {width:_0x59bc72,height:_0x5e985a}=_0x450e68['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x148351,this['imageDimension']={'width':_0x59bc72,'height':_0x5e985a},this['imageId']=_0x193bd5;})['catch'](_0x34cbd5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x34cbd5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4499b5,_0x2300a0){return this['_getImageAsFile'](_0x4499b5)['then'](_0x4ff083=>_0x103a5a['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2300a0['signal'],'file':_0x4ff083,'onProgress':_0x35611b=>{_0x35611b&&_0x35611b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x35611b['value']));}}))['then'](_0x24e1a2=>{const {width:_0x43cc84,height:_0x476fe6}=_0x24e1a2['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x24e1a2['cdnUrl'],this['imageDimension']={'width':_0x43cc84,'height':_0x476fe6},this['imageId']=_0x24e1a2['uuid'],this['imageUploadProgress']=null;const _0xfc6ea6=_0x4499b5['getAttribute']('src');this['_imageCache']['set'](_0xfc6ea6,{'id':_0x24e1a2['uuid'],'url':_0x24e1a2['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x197f51=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x197f51['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x4e92bf,_0x55ce19){_0x4e92bf['on']('apply',(_0x33ae21,_0xed36b3)=>{this['_replaceImage'](_0x55ce19,_0xed36b3['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x4e92bf['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x4e92bf['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x12b219,_0x53ae34,_0x4a4464){const _0x4857be=this['_editor'],{width:_0xcf8062,height:_0x3b2f10}=_0x5b77c7(_0x53ae34,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xd13fe8,imageSources:_0x49cbf8}=_0x92f205(_0x53ae34,_0xcf8062);_0x4857be['model']['change'](_0x34139e=>{if('$graveyard'===_0x12b219['root']['rootName']){_0x4857be['execute']('insertImage',{'imageType':_0x12b219['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x12b219['getAttributes']()),'uploadcareImageId':_0x4a4464,'src':_0xd13fe8,'sources':_0x49cbf8,'width':_0xcf8062,'height':_0x3b2f10}});const _0x165519=_0x12b219['getChildren']();_0x12b219=_0x4857be['model']['document']['selection']['getSelectedElement']();for(const _0x39e2cc of _0x165519)_0x34139e['append'](_0x34139e['cloneElement'](_0x39e2cc),_0x12b219);}else _0x34139e['setSelection'](_0x12b219,'on'),_0x4857be['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x12b219['getAttributes']()),'uploadcareImageId':_0x4a4464,'src':_0xd13fe8,'sources':_0x49cbf8,'width':_0xcf8062,'height':_0x3b2f10},_0x12b219);_0x34139e['setSelection'](_0x12b219,'on');});}async['_getImageAsFile'](_0xa3accc){const _0x24f8ed=_0x1e4444['window'],_0x366249=_0x1e4444['document']['location']['href'],_0x3525aa=new _0x24f8ed['URL'](_0xa3accc['getAttribute']('src'),_0x366249);if('data:'===_0x3525aa['protocol']){const _0x52d3d2=_0x3525aa['href']['split'](','),_0x13b650=_0x52d3d2[0x0]['match'](/:(.*?);/)[0x1],_0x1b4ba1=_0x13b650['split']('/')[0x1],_0x5aff4b=_0x24f8ed['atob'](_0x52d3d2[_0x52d3d2['length']-0x1]);let _0x345f9b=_0x5aff4b['length'];const _0x3e25fd=new _0x24f8ed['Uint8Array'](_0x345f9b);for(;_0x345f9b--;)_0x3e25fd[_0x345f9b]=_0x5aff4b['charCodeAt'](_0x345f9b);return new _0x24f8ed['File']([_0x3e25fd],'image.'+_0x1b4ba1,{'type':_0x13b650});}const _0x1e33eb=_0x3525aa['href']['split']('/'),_0x23ce62=_0x1e33eb[_0x1e33eb['length']-0x1],_0x2ae2cf=_0x23ce62['split']('.')[0x1];return _0x24f8ed['fetch'](_0x3525aa['href'])['then'](_0x37572d=>_0x37572d['clone']()['blob']())['then'](_0x48932e=>new _0x24f8ed['File']([_0x48932e],_0x23ce62,{'type':'image/'+_0x2ae2cf}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x5d76f3,_0x15d98d){const _0x36c318=_0x59e7,_0x14add7=_0x5d76f3();while(!![]){try{const _0x6b2e0=-parseInt(_0x36c318(0xef))/0x1+parseInt(_0x36c318(0xec))/0x2+parseInt(_0x36c318(0xe8))/0x3+-parseInt(_0x36c318(0xf1))/0x4+parseInt(_0x36c318(0xf4))/0x5*(parseInt(_0x36c318(0xf2))/0x6)+parseInt(_0x36c318(0xee))/0x7*(-parseInt(_0x36c318(0xe7))/0x8)+parseInt(_0x36c318(0xe5))/0x9;if(_0x6b2e0===_0x15d98d)break;else _0x14add7['push'](_0x14add7['shift']());}catch(_0x2be4c8){_0x14add7['push'](_0x14add7['shift']());}}}(_0x5bba,0x48ecc));function _0x5bba(){const _0x5a97c8=['5589342FLTbNS','uc-light','208uxEbYj','855336WeTyNe','setTemplate','bindTemplate','uc-cloud-image-editor','887344faCWbI','image-edit','71267FMPePg','446518gUGDIH','set','2265344IPcDsA','12CxJqqj','imageSrc','566095AvekRa','ck-uploadcare-theme'];_0x5bba=function(){return _0x5a97c8;};return _0x5bba();}function _0x59e7(_0x4006c3,_0x1e1fcd){const _0x5bba05=_0x5bba();return _0x59e7=function(_0x59e72c,_0x3e285f){_0x59e72c=_0x59e72c-0xe4;let _0x7858ab=_0x5bba05[_0x59e72c];return _0x7858ab;},_0x59e7(_0x4006c3,_0x1e1fcd);}import{View as _0xa1d880}from'ckeditor5/src/ui.js';export default class tt extends _0xa1d880{constructor(_0x4226f1,_0x4a6ad3){const _0x1b79e4=_0x59e7;super(_0x4226f1);const _0x102cee=this[_0x1b79e4(0xea)];this[_0x1b79e4(0xf0)](_0x1b79e4(0xf3),''),this[_0x1b79e4(0xe9)]({'tag':_0x1b79e4(0xeb),'attributes':{..._0x4a6ad3,'class':[_0x1b79e4(0xe6),_0x1b79e4(0xe4)],'ctx-name':_0x1b79e4(0xed),'cdn-url':_0x102cee['to'](_0x1b79e4(0xf3))}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as
|
|
23
|
+
import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x1973d8,IconView as at,View as _0x9cc931}from'ckeditor5/src/ui.js';export default class rt extends _0x9cc931{constructor(_0x1b5504){super(_0x1b5504);const t=_0x1b5504['t'];this['set']('errorType',null);const _0x4f2db1=new _0x1973d8(_0x1b5504);_0x4f2db1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4f2db1['withText']=!0x0,_0x4f2db1['class']='ck-button-action',_0x4f2db1['on']('execute',()=>{this['fire']('retry');}),_0x4f2db1['bind']('isVisible')['to'](this,'errorType',_0x41ed4e=>'NotFound'!==_0x41ed4e);const _0x28c992=new at();_0x28c992['content']=et,_0x28c992['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x538ae2=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':[_0x28c992,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x538ae2['to']('errorType',_0x563318=>t('NotFound'!==_0x563318?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4f2db1]},{'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'}]}]}]});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{SpinnerView as
|
|
23
|
+
import{SpinnerView as _0xd6a86,View as _0x4714b4}from'ckeditor5/src/ui.js';export default class ta extends _0x4714b4{constructor(_0x2e9c96){super(_0x2e9c96);const t=_0x2e9c96['t'],_0x300994=this['bindTemplate'],_0x679624=new _0xd6a86();_0x679624['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':[_0x679624,{'text':_0x300994['to']('imageUploadProgress',_0x4d5b69=>t('Loading\x20image...')+'\x20('+(_0x4d5b69||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'}]}]}]});}}
|