@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250404.0 → 0.0.0-nightly-20250406.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 _0x1dd4a0,Command as _0x3f38b4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4635ec,IconGooglePhotos as _0x5114cc,IconGoogleDrive as _0x4bc24a,IconFacebook as _0x1724ea,IconDropbox as _0x3f6ebe,IconUploadcareLink as _0x2542bf,IconUploadcareImageUpload as _0x511ef4,IconError as et,IconUploadcareImageEdit as _0x56a8ab}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x16b6ef,MenuBarMenuListItemButtonView as _0x4ea981,View as _0x1fa2e2,FocusCycler as _0x47f75a,Dialog as _0x5c5908,DialogViewPosition as _0x1c3d19,SpinnerView as _0x11ebe3,IconView as at,Notification as _0x43e758}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4569b8,DomEmitterMixin as _0x3626f0,global as _0x1cff4f,getAncestors as _0x16f5be,ObservableMixin as _0x31b995,createElement as _0x379973,uid as _0x4c5b6b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3ac3a5}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x40ee51,info as _0x2d12c3}from'@uploadcare/upload-client';import*as _0x44de83 from'@uploadcare/file-uploader';var o=function(_0x18275c){return _0x18275c['Local']='local',_0x18275c['URL']='url',_0x18275c['Dropbox']='dropbox',_0x18275c['GDrive']='gdrive',_0x18275c['Facebook']='facebook',_0x18275c['GPhotos']='gphotos',_0x18275c['OneDrive']='onedrive',_0x18275c;}({});function _(_0x4664aa,_0x4f4380,_0x404f28){const t=_0x4664aa['t'],_0x2d0237=_0x4664aa['t'];switch(_0x4f4380){case o['Local']:return{'text':_0x2d0237('Insert'===_0x404f28?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2d0237('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x404f28?_0x2d0237('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2d0237('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x404f28?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4f4380;}}class e extends _0x1dd4a0{['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 _0x5c6ef9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x34daf3;for(const _0x369c78 in _0x5c6ef9){const _0x1eb2f1=_0x369c78,_0x339ffe=_0x5c6ef9[_0x1eb2f1];if('uploadcareLicenseKeyValid'==_0x339ffe||'uploadcareLicenseKeyInvalid'==_0x339ffe||'uploadcareLicenseKeyExpired'==_0x339ffe||'uploadcareLicenseKeyDomainLimit'==_0x339ffe||'uploadcareLicenseKeyNotAllowed'==_0x339ffe||'uploadcareLicenseKeyEvaluationLimit'==_0x339ffe||'uploadcareLicenseKeyTrialLimit'==_0x339ffe||'uploadcareLicenseKeyUsageLimit'==_0x339ffe){delete _0x5c6ef9[_0x1eb2f1],_0x34daf3=_0x339ffe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x34daf3&&_0x5c6ef9['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x24db7d}=this,_0x28f5a7=_0x24db7d['commands']['get']('uploadcare');if(!_0x28f5a7)return;const _0x18e1c9=this['_normalizeConfigSourceList'](_0x24db7d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x599e63,_0x15a01b)=>{const _0x58595b=this['_getIntegrationKey'](_0x15a01b['type']);return _0x599e63[_0x58595b]||(_0x599e63[_0x58595b]=[]),_0x599e63[_0x58595b]['push'](_0x15a01b),_0x599e63;},{});_0x24db7d['plugins']['has']('ImageInsertUI')&&_0x24db7d['commands']['get']('uploadcare')&&Object['entries'](_0x18e1c9)['forEach'](([_0x1ade82,_0x11ee8b])=>{_0x24db7d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x1ade82,'observable':()=>_0x28f5a7,'buttonViewCreator':()=>this['_createToolbarButton'](_0x11ee8b),'formViewCreator':()=>this['_createDropdownButtons'](_0x11ee8b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x11ee8b),'override':'assetManager'!==_0x1ade82});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3c80dd){const {locale:_0x3a696b}=this['editor'];return _0x3c80dd['map'](_0x47ace3=>{const _0x40fa1b=_(_0x3a696b,_0x47ace3,'Insert');switch(_0x47ace3){case o['Local']:return{'icon':_0x511ef4,'type':o['Local'],..._0x40fa1b};case o['URL']:return{'icon':_0x2542bf,'type':o['URL'],..._0x40fa1b};case o['Dropbox']:return{'icon':_0x3f6ebe,'type':o['Dropbox'],..._0x40fa1b};case o['Facebook']:return{'icon':_0x1724ea,'type':o['Facebook'],..._0x40fa1b};case o['GDrive']:return{'icon':_0x4bc24a,'type':o['GDrive'],..._0x40fa1b};case o['GPhotos']:return{'icon':_0x5114cc,'type':o['GPhotos'],..._0x40fa1b};case o['OneDrive']:return{'icon':_0x4635ec,'type':o['OneDrive'],..._0x40fa1b};}});}['_getIntegrationKey'](_0x2ce3ff){switch(_0x2ce3ff){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4a7585,_0x2babdd){const _0xedcd72=this['editor'],_0x150ce1=new _0x4a7585(_0xedcd72['locale']),_0x6a59ae=_0xedcd72['commands']['get']('uploadcare');return _0x150ce1['bind']('isEnabled')['to'](_0x6a59ae),_0x150ce1['on']('execute',()=>{_0x6a59ae['execute'](_0x2babdd);}),_0x150ce1;}['_createToolbarButton'](_0x56ae6a){const {locale:_0xac7d54}=this['editor'],_0x1aed11=this['editor']['plugins']['get']('ImageInsertUI'),_0x2be731=_0x56ae6a[0x0],_0x16edba=this['_createButton'](_0x16b6ef,_0x2be731['type']);return _0x16edba['icon']=_0x2be731['icon'],_0x16edba['bind']('label')['to'](_0x1aed11,'isImageSelected',_0x246d04=>_(_0xac7d54,_0x2be731['type'],_0x246d04?'Replace':'Insert')['text']),_0x16edba['tooltip']=!0x0,_0x16edba;}['_createDropdownButtons'](_0x598ccc){const {locale:_0x311086}=this['editor'],_0x52d8c1=this['editor']['plugins']['get']('ImageInsertUI');return _0x598ccc['map'](_0x31c46b=>{const _0x4b1816=this['_createButton'](_0x16b6ef,_0x31c46b['type']);return _0x4b1816['withText']=!0x0,_0x4b1816['icon']=_0x31c46b['icon'],_0x4b1816['bind']('label')['to'](_0x52d8c1,'isImageSelected',_0x51ad66=>_(_0x311086,_0x31c46b['type'],_0x51ad66?'Replace':'Insert')['text']),_0x4b1816;});}['_createMenuBarButtons'](_0x3192b3){return _0x3192b3['map'](_0x5b7d5f=>{const _0x4039f1=this['_createButton'](_0x4ea981,_0x5b7d5f['type']);return _0x4039f1['icon']=_0x5b7d5f['icon'],_0x4039f1['label']=_0x5b7d5f['shortText'],_0x4039f1;});}}class q extends _0x1fa2e2{['focusTracker'];['focusCycler'];constructor(_0x4c64d2){super(_0x4c64d2),this['focusTracker']=new _0x4569b8(),this['focusCycler']=new _0x47f75a({'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(_0x670eae){super(_0x670eae),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(_0x5cbcfd,_0x5e397a){const _0x99959=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2f7e47=>_0x2f7e47<=_0x5e397a)['map'](_0x116375=>_0x5cbcfd['replace'](/\/$/,'')+'/-/resize/'+_0x116375+'x/\x20'+_0x116375+'w');return{'imageFallbackUrl':_0x5cbcfd,'imageSources':[{'srcset':_0x99959['join'](',\x20'),'sizes':'(max-width:\x20'+_0x5e397a+'px)\x20100vw,\x20'+_0x5e397a+'px','type':'image/webp'}]};}function A(_0xa2af93,_0x5d40d3,_0x5c658b){const _0x22a137=_0xa2af93['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x22a137?parseInt(_0x22a137[0x1],0xa):_0x5d40d3,'height':_0x22a137?parseInt(_0x22a137[0x2],0xa):_0x5c658b};}function m(_0x9c870c,_0x555675){const _0x3cb6c5=Object['create'](_0x3626f0),_0x4983c5=_0x9c870c['plugins']['get']('ImageUtils'),_0x47aeef=_0x9c870c['editing']['mapper']['toViewElement'](_0x555675),_0x32aad4=_0x4983c5['findViewImgElement'](_0x47aeef),_0x56be74=_0x9c870c['editing']['view']['domConverter']['viewToDom'](_0x32aad4),_0x26cbad=_0x555675['getAttribute']('width'),_0x4a63cf=_0x555675['getAttribute']('height'),_0x4f8003='image-processing';_0x9c870c['editing']['view']['change'](_0x329590=>{_0x329590['addClass'](_0x4f8003,_0x47aeef),_0x329590['setStyle']('aspect-ratio',_0x26cbad+'/'+_0x4a63cf,_0x32aad4);}),_0x3cb6c5['listenTo'](_0x56be74,'load',()=>{_0x3cb6c5['stopListening'](_0x56be74,'load'),_0x9c870c['editing']['view']['change'](_0x400509=>{_0x400509['removeClass'](_0x4f8003,_0x47aeef),_0x400509['removeStyle']('aspect-ratio',_0x32aad4);});});}function V(_0x33459f){if(Array['isArray'](_0x33459f)){const _0x59073b=_0x33459f['map'](V);return _0x33d372=>_0x59073b['some'](_0x3f407e=>_0x3f407e(_0x33d372));}if('origin'==_0x33459f){const _0x59d4f8=_0x1cff4f['window']['location']['origin'];return _0x4149e9=>new URL(_0x4149e9,_0x1cff4f['document']['baseURI'])['origin']==_0x59d4f8;}return'function'==typeof _0x33459f?_0x33459f:_0x33459f instanceof RegExp?_0x3fc669=>!(!_0x3fc669['match'](_0x33459f)&&!_0x3fc669['replace'](/^https?:\/\//,'')['match'](_0x33459f)):()=>!0x1;}function F(_0x2ff5ce,_0x2ec18e){return _0x16f5be(_0x2ff5ce['target'])['includes'](_0x2ec18e);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x31b995(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0xd61ffc,_0x4d3d36,_0x5ae613){super(),this['_editor']=_0xd61ffc,this['_editing']=_0x4d3d36,this['_dialog']=_0xd61ffc['plugins']['get'](_0x5c5908),this['_api']=_0x4d3d36['ctxElement']['getAPI'](),this['_type']=_0x5ae613,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:_0x1a2d6b,model:_0x5c0780}=this['_editor'],_0x63e331=_0x5c0780['document']['selection']['getSelectedElement'](),_0x1cdade=_0x63e331&&(_0x63e331['is']('element','imageBlock')||_0x63e331['is']('element','imageInline'));this['_formView']=new S(_0x1a2d6b),this['_dialog']['show']({'id':'uploadCare','icon':_0x511ef4,'title':_(_0x1a2d6b,this['_type'],_0x1cdade?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1c3d19['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x36a11f=>!F(_0x36a11f,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3874ed}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x54f9c9=>{const _0x3a6dd2=_0x3874ed['length'];for(const _0x4aa22a of _0x3874ed){const _0x51b5a8=_0x4aa22a===_0x3874ed[_0x3a6dd2-0x1],{cdnUrl:_0x54b33c,fileInfo:_0x157349}=_0x4aa22a;if(!_0x54b33c||!_0x157349)continue;const {width:_0x3485fd,height:_0x3c31ef}=_0x157349['imageInfo'],_0x1af81e=A(_0x54b33c,_0x3485fd,_0x3c31ef),_0x49aca7=E(_0x54b33c,_0x1af81e['width']),_0x35d3bd={'id':_0x157349['uuid'],'type':'image','attributes':{'imageDimension':_0x1af81e,..._0x49aca7}};this['_insertAsset'](_0x35d3bd,_0x51b5a8,_0x54f9c9);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x22ec39=>{'idle'===_0x22ec39['detail']['status']&&!_0x22ec39['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x4015a9,_0x35e60c,_0x204fae){const _0xe4f2e2=this['_editor']['model']['document']['selection'],_0x432264=_0xe4f2e2['getSelectedElement'](),_0x5b0879=!(!_0x432264||!_0x432264['is']('element','imageInline'));_0x204fae['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x4015a9,_0x5b0879),_0x35e60c||_0x204fae['setSelection'](_0xe4f2e2['getLastPosition']());}['_insertImage'](_0x239fcf,_0x2b502b){const _0xb1fa61=this['_editor'],{imageDimension:_0x57a5fa,imageFallbackUrl:_0x27a583,imageSources:_0x8c6962}=_0x239fcf['attributes'];_0xb1fa61['execute']('insertImage',{'imageType':_0x2b502b?'imageInline':null,'source':{'uploadcareImageId':_0x239fcf['id'],'src':_0x27a583,'sources':_0x8c6962,..._0x57a5fa}});}}class n extends _0x3f38b4{['_editing'];['_controller']=null;static get['requires'](){return[_0x5c5908,i];}constructor(_0x149f28){super(_0x149f28),this['_editing']=_0x149f28['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2115ae){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2115ae);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x1b6250,publicKey:_0xf3c293,signal:_0x39bd3d,onProgress:_0x56196c}){return _0x40ee51(_0x1b6250,{'publicKey':_0xf3c293,'store':'auto','signal':_0x39bd3d,'onProgress':_0x56196c});}static['getInfo'](_0x1f7336,_0x48d234){return _0x2d12c3(_0x1f7336,_0x48d234);}}class p extends _0x1dd4a0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3ac3a5,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x8c4cde=this['editor'];if(!!!_0x8c4cde['config']['get']('uploadcare'))return;_0x8c4cde['plugins']['get'](_0x3ac3a5)['createUploadAdapter']=_0x1136e7=>new x(_0x1136e7,_0x8c4cde),_0x8c4cde['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x344fa0,{imageElement:_0x4bdbe3,data:_0x4a5d47})=>{_0x8c4cde['model']['change'](_0x3d1d90=>{_0x3d1d90['setAttribute']('uploadcareImageId',_0x4a5d47['uploadcareImageId'],_0x4bdbe3);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x557b78,_0x1eabeb){this['loader']=_0x557b78,this['editor']=_0x1eabeb,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1af6cd=this['editor']['config']['get']('uploadcare.pubkey'),_0x341486=await this['loader']['file'];return C['upload']({'file':_0x341486,'publicKey':_0x1af6cd,'signal':this['controller']['signal'],'onProgress':_0x410561=>{_0x410561&&_0x410561['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x410561['value']);}})['then'](async _0x484416=>{const {imageFallbackUrl:_0x326d53,imageSources:_0x133d97}=E(_0x484416['cdnUrl'],_0x484416['imageInfo']['width']);return{'uploadcareImageId':_0x484416['uuid'],'default':_0x326d53,'sources':_0x133d97};})['catch'](()=>{const _0x21de68=t('Cannot\x20upload\x20file:')+('\x20'+_0x341486['name']+'.');return Promise['reject'](_0x21de68);});}['abort'](){this['controller']['abort']();}}class i extends _0x1dd4a0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x5c5908];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x96568a=this['editor'];_0x96568a['commands']['add']('uploadcare',new n(_0x96568a));}['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 _0x5d0e5e=_0x1cff4f['document']['querySelector']('input[uploadcare-file-input]');_0x5d0e5e&&_0x5d0e5e['remove']();}),async function(_0x299808){const _0x2809a2=_0x2296f5([0x4f,0x7a,0x6c,0x5a,0x30,0x56,0x52,0x49,0x39,0x50,0x4e,0x54,0x66,0x31,0x36,0x53,0x78,0x43,0x35,0x69,0x63,0x6b,0x4d,0x4c,0x55,0x46,0x73,0x71,0x79,0x41,0x58,0x6e,0x6a,0x67,0x47,0x61,0x76,0x37,0x48,0x32,0x72,0x33,0x6f,0x44,0x65,0x4b,0x4a,0x34,0x75,0x64,0x57,0x68,0x6d,0x59,0x51,0x42,0x45,0x62,0x38,0x77,0x70,0x74]),_0x30a921=0x3bcbc51c,_0x239c79=0x3bcca15c^_0x30a921,_0xdf3596=window[_0x2296f5([0x44,0x61,0x74,0x65])][_0x2296f5([0x6e,0x6f,0x77])](),_0x3bc9ba=_0x299808[_0x2296f5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1b3e9d=new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32904a=>{_0x3bc9ba[_0x2296f5([0x6f,0x6e,0x63,0x65])](_0x2296f5([0x72,0x65,0x61,0x64,0x79]),_0x32904a);}),_0x10a639={[_0x2296f5([0x6b,0x74,0x79])]:_0x2296f5([0x45,0x43]),[_0x2296f5([0x75,0x73,0x65])]:_0x2296f5([0x73,0x69,0x67]),[_0x2296f5([0x63,0x72,0x76])]:_0x2296f5([0x50,0x2d,0x32,0x35,0x36]),[_0x2296f5([0x78])]:_0x2296f5([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]),[_0x2296f5([0x79])]:_0x2296f5([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]),[_0x2296f5([0x61,0x6c,0x67])]:_0x2296f5([0x45,0x53,0x32,0x35,0x36])},_0x4e016a=_0x3bc9ba[_0x2296f5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2296f5([0x67,0x65,0x74])](_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52f8a5(){let _0x5c00ed,_0x449399=null,_0x1660dd=null;try{if(_0x4e016a==_0x2296f5([0x47,0x50,0x4c]))return _0x2296f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c00ed=_0x27f7da(),!_0x5c00ed)return _0x2296f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5c00ed[_0x2296f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1660dd=_0x23462e(_0x5c00ed[_0x2296f5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c00ed[_0x2296f5([0x6a,0x74,0x69])])),await _0x2c084e()?_0x4e61f3()?_0x400561()?_0x2296f5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1831f8()?(_0x5c00ed[_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2296f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x449399=_0x374308(_0x2296f5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5c00ed[_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2296f5([0x74,0x72,0x69,0x61,0x6c])&&(_0x449399=_0x374308(_0x2296f5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x24e63f()):_0x2296f5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2296f5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2296f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4a2790){return _0x2296f5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x400561(){const _0x51aac7=[_0x2296f5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2296f5([0x74,0x72,0x69,0x61,0x6c])][_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c00ed[_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xdf3596/0x3e8:0xe10*_0x239c79;return _0x5c00ed[_0x2296f5([0x65,0x78,0x70])]<_0x51aac7;}function _0x4e61f3(){const _0x36ce85=_0x5c00ed[_0x2296f5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x36ce85&&(!!_0x36ce85[_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2296f5([0x2a]))||!!_0x36ce85[_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2296f5([0x55,0x50,0x4c,0x43])));}function _0x1831f8(){const _0x3d1391=_0x5c00ed[_0x2296f5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d1391||0x0==_0x3d1391[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xc992f4}=new URL(window[_0x2296f5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d1391[_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc992f4))return!0x0;const _0x3470c4=_0xc992f4[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])](_0x2296f5([0x2e]));return _0x3d1391[_0x2296f5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b8ad3=>_0x2b8ad3[_0x2296f5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2296f5([0x2a])))[_0x2296f5([0x6d,0x61,0x70])](_0x3abc04=>_0x3abc04[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])](_0x2296f5([0x2e])))[_0x2296f5([0x73,0x6f,0x6d,0x65])](_0x5a7a95=>_0x3470c4[_0x2296f5([0x65,0x76,0x65,0x72,0x79])]((_0x5cdd18,_0x26a624)=>_0x5a7a95[_0x26a624]===_0x5cdd18||_0x5a7a95[_0x26a624]===_0x2296f5([0x2a])));}function _0x24e63f(){return _0x449399&&_0x1660dd?new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3c8751,_0x216f8d)=>{_0x449399[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x3c8751,_0x216f8d),_0x1660dd[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x447fb8=>{_0x447fb8!=_0x2296f5([0x56,0x61,0x6c,0x69,0x64])&&_0x3c8751(_0x447fb8);},_0x216f8d);}):_0x449399||_0x1660dd||_0x2296f5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x23462e(_0x286e17,_0x5bb5a6){return new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x92571f=>{if(_0xc2d07b())return _0x92571f(_0x2296f5([0x56,0x61,0x6c,0x69,0x64]));_0x1907ab(),_0x3bc9ba[_0x2296f5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2296f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4f5d15=!0x1;const _0x3e5327=_0x4c5b6b();function _0x559e55(_0x437e45){return!!_0x437e45&&(typeof _0x437e45===_0x2296f5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x437e45===_0x2296f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x437e45[_0x2296f5([0x74,0x68,0x65,0x6e])]===_0x2296f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x437e45[_0x2296f5([0x63,0x61,0x74,0x63,0x68])]===_0x2296f5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4be237(_0x5abaaf){_0x34ed4d(_0x5abaaf)[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x55ce11=>{if(!_0x55ce11||_0x55ce11[_0x2296f5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2296f5([0x6f,0x6b]))return _0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xec165a(_0x2d87d7(_0x3e5327+_0x5bb5a6))!=_0x55ce11[_0x2296f5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2296f5([0x56,0x61,0x6c,0x69,0x64]);})[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x41a0ec=>(_0x25d563(),_0x41a0ec),()=>{const _0x57581a=_0x32420e();return null==_0x57581a?(_0x25d563(),_0x2296f5([0x56,0x61,0x6c,0x69,0x64])):_0x2296f5(_0xdf3596-_0x57581a>(0x1fc7411c^_0x30a921)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x92571f)[_0x2296f5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x92571f(_0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39fe39=0x3bfd2b9c^_0x30a921;function _0x25d563(){const _0x4ded9b=_0x2296f5([0x6c,0x6c,0x63,0x74,0x2d])+_0xec165a(_0x2d87d7(_0x286e17)),_0x2c1fb3=_0x3ecc64(_0xec165a(window[_0x2296f5([0x4d,0x61,0x74,0x68])][_0x2296f5([0x63,0x65,0x69,0x6c])](_0xdf3596/_0x39fe39)));window[_0x2296f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2296f5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ded9b,_0x2c1fb3);}function _0x32420e(){const _0x44b4c=_0x2296f5([0x6c,0x6c,0x63,0x74,0x2d])+_0xec165a(_0x2d87d7(_0x286e17)),_0x3d8aa1=window[_0x2296f5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2296f5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44b4c);return _0x3d8aa1?window[_0x2296f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ecc64(_0x3d8aa1),0x10)*_0x39fe39:null;}function _0x34ed4d(_0x25ed76){return new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4990b8,_0xa29e66)=>{_0x25ed76[_0x2296f5([0x74,0x68,0x65,0x6e])](_0x4990b8,_0xa29e66),window[_0x2296f5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa29e66,0x3bca11dc^_0x30a921);});}}_0x3bc9ba[_0x2296f5([0x6f,0x6e])](_0x2296f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x594111,_0x528abb)=>{if(_0x528abb[0x0]!=_0x286e17)return _0x92571f(_0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x528abb[0x1]={..._0x528abb[0x1],[_0x2296f5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e5327};},{[_0x2296f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2296f5([0x68,0x69,0x67,0x68])}),_0x3bc9ba[_0x2296f5([0x6f,0x6e])](_0x2296f5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bb89d=>{_0x559e55(_0x2bb89d[_0x2296f5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4f5d15=!0x0,_0x4be237(_0x2bb89d[_0x2296f5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2296f5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2296f5([0x6c,0x6f,0x77])}),_0x1b3e9d[_0x2296f5([0x74,0x68,0x65,0x6e])](()=>{_0x4f5d15||_0x92571f(_0x2296f5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xc2d07b(){return _0x3bc9ba[_0x2296f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2296f5([0x76,0x69,0x65,0x77])][_0x2296f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2296f5([0x61,0x75,0x74,0x6f]);}function _0x1907ab(){_0x3bc9ba[_0x2296f5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2296f5([0x76,0x69,0x65,0x77])][_0x2296f5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2296f5([0x61,0x75,0x74,0x6f]);}}function _0x374308(_0x3bc433){const _0x3a0323=[new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28bb29=>setTimeout(_0x28bb29,0x3bc2fbd0^_0x30a921)),_0x1b3e9d[_0x2296f5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x261653=>{let _0x6600a5=0x0;_0x3bc9ba[_0x2296f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2296f5([0x6f,0x6e])](_0x2296f5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x226a6f,_0x1958ca)=>{_0x1958ca[0x0][_0x2296f5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x6600a5++,_0x6600a5==(0x3bcbc4e4^_0x30a921)&&(_0x261653(),_0x226a6f[_0x2296f5([0x6f,0x66,0x66])]());});}))];return window[_0x2296f5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2296f5([0x72,0x61,0x63,0x65])](_0x3a0323)[_0x2296f5([0x74,0x68,0x65,0x6e])](()=>_0x3bc433);}async function _0xe6f264(){await _0x1b3e9d,_0x3bc9ba[_0x2296f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2296f5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c272a,_0x3bc9ba[_0x2296f5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2296f5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c272a,_0x3bc9ba[_0x2296f5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2296f5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x273394(_0x4a4b5a){const _0x6ebdee=_0x202764();_0x3bc9ba[_0x6ebdee]=_0x2296f5([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4a4b5a,_0x4a4b5a!=_0x2296f5([0x56,0x61,0x6c,0x69,0x64])&&_0xe6f264();}function _0x202764(){const _0x23efcc=window[_0x2296f5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2296f5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2296f5([0x6e,0x6f,0x77])]())[_0x2296f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2296f5([0x2e]),'');let _0x5c5c7a=_0x2296f5([0x4f]);for(let _0x1ae4c5=0x0;_0x1ae4c5<_0x23efcc[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ae4c5+=0x2){let _0x3fe59d=window[_0x2296f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23efcc[_0x2296f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ae4c5,_0x1ae4c5+0x2));_0x3fe59d>=_0x2809a2[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3fe59d-=_0x2809a2[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5c5c7a+=_0x2809a2[_0x3fe59d];}return _0x5c5c7a;}function _0x27f7da(){const _0xbef4cd=_0x4e016a[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])](_0x2296f5([0x2e]));if(0x3!=_0xbef4cd[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x191320(_0xbef4cd[0x1]);function _0x191320(_0x2fecc6){const _0x14dc51=_0xedf7f4(_0x2fecc6);return _0x14dc51&&_0x5c7027()?_0x14dc51:null;function _0x5c7027(){const _0x5dbbc7=_0x14dc51[_0x2296f5([0x6a,0x74,0x69])],_0x12857e=window[_0x2296f5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dbbc7[_0x2296f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dbbc7[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xc25daa={..._0x14dc51,[_0x2296f5([0x6a,0x74,0x69])]:_0x5dbbc7[_0x2296f5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5dbbc7[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xc25daa[_0x2296f5([0x76,0x63])],_0x2d87d7(_0xc25daa)==_0x12857e;}}}async function _0x2c084e(){let _0x672588=!0x0;try{const _0x6509f9=_0x4e016a[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])](_0x2296f5([0x2e])),[_0x1effe2,_0x49f419,_0x32415b]=_0x6509f9;return _0x56adde(_0x1effe2),await _0x57e4d8(_0x1effe2,_0x49f419,_0x32415b),_0x672588;}catch(_0x48fa90){return!0x1;}function _0x56adde(_0x36610e){const _0x1f58a8=_0xedf7f4(_0x36610e);_0x1f58a8&&_0x1f58a8[_0x2296f5([0x61,0x6c,0x67])]==_0x2296f5([0x45,0x53,0x32,0x35,0x36])||(_0x672588=!0x1);}async function _0x57e4d8(_0x157fd0,_0x4e7e3f,_0x1aa553){const _0x352362=window[_0x2296f5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2296f5([0x66,0x72,0x6f,0x6d])](_0x498867(_0x1aa553),_0x165395=>_0x165395[_0x2296f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x504df3=new window[(_0x2296f5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2296f5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x157fd0+_0x2296f5([0x2e])+_0x4e7e3f),_0x6fb1c=window[_0x2296f5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2296f5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6fb1c)return;const _0x1a776f=await _0x6fb1c[_0x2296f5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2296f5([0x6a,0x77,0x6b]),_0x10a639,{[_0x2296f5([0x6e,0x61,0x6d,0x65])]:_0x2296f5([0x45,0x43,0x44,0x53,0x41]),[_0x2296f5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2296f5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2296f5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6fb1c[_0x2296f5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2296f5([0x6e,0x61,0x6d,0x65])]:_0x2296f5([0x45,0x43,0x44,0x53,0x41]),[_0x2296f5([0x68,0x61,0x73,0x68])]:{[_0x2296f5([0x6e,0x61,0x6d,0x65])]:_0x2296f5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a776f,_0x352362,_0x504df3)||(_0x672588=!0x1);}}function _0xedf7f4(_0x50796e){return _0x50796e[_0x2296f5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2296f5([0x65,0x79]))?JSON[_0x2296f5([0x70,0x61,0x72,0x73,0x65])](_0x498867(_0x50796e)):null;}function _0x498867(_0x24fb9c){return window[_0x2296f5([0x61,0x74,0x6f,0x62])](_0x24fb9c[_0x2296f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2296f5([0x2b]))[_0x2296f5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2296f5([0x2f])));}function _0x2d87d7(_0x129d6c){let _0x5542da=0x1505;function _0x398712(_0x40129d){for(let _0x2c8a4b=0x0;_0x2c8a4b<_0x40129d[_0x2296f5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c8a4b++){const _0x353f58=_0x40129d[_0x2296f5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2c8a4b);_0x5542da=(_0x5542da<<0x5)+_0x5542da+_0x353f58,_0x5542da&=_0x5542da;}}function _0x115170(_0x1562bc){Array[_0x2296f5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1562bc)?_0x1562bc[_0x2296f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x115170):_0x1562bc&&typeof _0x1562bc==_0x2296f5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2296f5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1562bc)[_0x2296f5([0x73,0x6f,0x72,0x74])]()[_0x2296f5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xdeed05,_0x322595])=>{_0x398712(_0xdeed05),_0x115170(_0x322595);}):_0x398712(window[_0x2296f5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1562bc));}return _0x115170(_0x129d6c),_0x5542da>>>0x0;}function _0xec165a(_0x2fed1e){return _0x2fed1e[_0x2296f5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2296f5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2296f5([0x30]));}function _0x3ecc64(_0x3a1142){return _0x3a1142[_0x2296f5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2296f5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2296f5([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c272a(){}function _0x2296f5(_0x475217){return _0x475217['map'](_0x44f032=>String['fromCharCode'](_0x44f032))['join']('');}_0x273394(await _0x52f8a5());}(this);}['_initSchema'](){const _0x26ce7a=this['editor']['model']['schema'];_0x26ce7a['isRegistered']('imageBlock')&&_0x26ce7a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x26ce7a['isRegistered']('imageInline')&&_0x26ce7a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x4d6fb3=this['editor'];_0x4d6fb3['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x4d6fb3['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x4eb29=>_0x4eb29['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4e14e6=_0x4d6fb3['commands']['get']('replaceImageSource');_0x4e14e6&&this['listenTo'](_0x4e14e6,'cleanupImage',(_0x2dad59,[_0x1c5ede,_0x4ccf86])=>{_0x1c5ede['removeAttribute']('uploadcareImageId',_0x4ccf86);});}['_initConfig'](){const _0x59266a=this['editor']['config']['get']('uploadcare.uploader')||{},_0xc14d05=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x379973(_0x1cff4f['document'],'uc-config',{..._0x59266a,'pubkey':_0xc14d05,'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']=_0x13927e=>{if('closeMax'==_0x13927e)return'#uc-icon-arrow-down';},_0x1cff4f['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x379973(_0x1cff4f['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x1cff4f['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x53f16e=this['editor']['commands']['get']('insertImage');_0x53f16e&&this['listenTo'](_0x53f16e,'execute',()=>{const _0x24d448=this['editor']['model']['document']['selection']['getSelectedElement']();_0x24d448&&_0x24d448['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x24d448);});});const _0x4ee7a8=this['editor']['commands']['get']('uploadcareImageReplace');_0x4ee7a8&&this['listenTo'](_0x4ee7a8,'execute',()=>{const _0x595132=this['editor']['model']['document']['selection']['getSelectedElement']();_0x595132&&_0x595132['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x595132);});});}}class u extends _0x1dd4a0{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3499ec){super(_0x3499ec),_0x3499ec['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x44de83['defineComponents'](_0x44de83);}}class ta extends _0x1fa2e2{constructor(_0x2d7ba7){super(_0x2d7ba7);const t=_0x2d7ba7['t'],_0x27ce46=this['bindTemplate'],_0x513e5f=new _0x11ebe3();_0x513e5f['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':[_0x513e5f,{'text':_0x27ce46['to']('imageUploadProgress',_0x3fdded=>t('Loading\x20image...')+'\x20('+(_0x3fdded||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 _0x1fa2e2{constructor(_0x410c87){super(_0x410c87);const t=_0x410c87['t'];this['set']('errorType',null);const _0x583d53=new _0x16b6ef(_0x410c87);_0x583d53['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x583d53['withText']=!0x0,_0x583d53['class']='ck-button-action',_0x583d53['on']('execute',()=>{this['fire']('retry');}),_0x583d53['bind']('isVisible')['to'](this,'errorType',_0x3114ab=>'NotFound'!==_0x3114ab);const _0x3ed5b0=new at();_0x3ed5b0['content']=et,_0x3ed5b0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x11415e=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':[_0x3ed5b0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x11415e['to']('errorType',_0x4db2cb=>t('NotFound'!==_0x4db2cb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x583d53]},{'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 _0x1fa2e2{constructor(_0x17391b,_0x1863ff){super(_0x17391b);const _0x29436d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x1863ff,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x29436d['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2ffe31,_0x23f942,_0x2d3b6f){super(_0x2ffe31),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x2ffe31),this['_errorView']=new rt(_0x2ffe31),this['_editingView']=new tt(_0x2ffe31,_0x2d3b6f),this['_focusableView']=new _0x1fa2e2(_0x2ffe31),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x23f942),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'],_0x23f2d8=>{this['_addUploadcareImageEditorListeners'](_0x23f2d8);});}),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'](_0x2395c5,_0x38ff9a){const _0x5ebbe4='uc-cloud-image-editor',_0x25d9e9=_0x2395c5['querySelector'](_0x5ebbe4);if(_0x25d9e9)return _0x38ff9a(_0x25d9e9);const _0x58a3be=new MutationObserver(_0x4f073c=>{const _0x5d9bcf=_0x4f073c['filter'](_0x502e95=>_0x502e95['target']===_0x2395c5&&_0x502e95['addedNodes']['length']>0x0&&_0x502e95['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5ebbe4);_0x5d9bcf['length']&&(_0x58a3be['disconnect'](),_0x38ff9a(_0x5d9bcf[0x0]['addedNodes'][0x0]));});_0x58a3be['observe'](_0x2395c5,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x42d7ba){_0x42d7ba['addEventListener']('apply',_0x1e88ea=>{this['fire']('apply',{'imageSrc':_0x1e88ea['detail']['cdnUrl']});}),_0x42d7ba['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x31b995(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5302a5,_0xbc0ae5,_0x8371d6){super(),this['_editor']=_0x5302a5,this['_dialog']=_0xbc0ae5,this['_imageElement']=_0x8371d6,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 _0x52a2dd=this['_imageElement'],_0x10ae4a=_0x52a2dd['getAttribute']('uploadcareImageId'),_0xef33f8=_0x52a2dd['getAttribute']('src');if(_0x10ae4a)await this['_loadImageInfo'](_0x10ae4a,_0xef33f8);else{if(this['_imageCache']['has'](_0xef33f8)){const _0x544db0=this['_imageCache']['get'](_0xef33f8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x544db0['url'],this['imageDimension']=_0x544db0['dimension'],this['imageId']=_0x544db0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x47073b}=this['_editor'],t=_0x47073b['t'],_0x8b1491=new Z(_0x47073b,this['imageStatus'],this['_attributes']);_0x8b1491['bind']('status')['to'](this,'imageStatus'),_0x8b1491['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x8b1491['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x8b1491['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x8b1491,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x56a8ab,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x8b1491,'position':_0x1c3d19['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x8b1491['focus']();},'onHide':()=>{_0x8b1491['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x588a12=>!F(_0x588a12,_0x8b1491['element'])}});}['_loadImageInfo'](_0x3aa8e8,_0x2d2c6e){return C['getInfo'](_0x3aa8e8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x549c70=>{const {width:_0x5ecaa7,height:_0x44c8b8}=_0x549c70['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2d2c6e,this['imageDimension']={'width':_0x5ecaa7,'height':_0x44c8b8},this['imageId']=_0x3aa8e8;})['catch'](_0xcae8a2=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xcae8a2['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x52ba99,_0x40df70){return this['_getImageAsFile'](_0x52ba99)['then'](_0xca12f7=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x40df70['signal'],'file':_0xca12f7,'onProgress':_0x3d6f68=>{_0x3d6f68&&_0x3d6f68['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3d6f68['value']));}}))['then'](_0x14955c=>{const {width:_0x359d1a,height:_0x32ceef}=_0x14955c['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x14955c['cdnUrl'],this['imageDimension']={'width':_0x359d1a,'height':_0x32ceef},this['imageId']=_0x14955c['uuid'],this['imageUploadProgress']=null;const _0x3f0b7e=_0x52ba99['getAttribute']('src');this['_imageCache']['set'](_0x3f0b7e,{'id':_0x14955c['uuid'],'url':_0x14955c['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x46bde6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x46bde6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xd19539,_0x5e0b6f){_0xd19539['on']('apply',(_0x57b3f4,_0x20e8cd)=>{this['_replaceImage'](_0x5e0b6f,_0x20e8cd['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xd19539['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xd19539['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x3fe5c9,_0x39ba6f,_0x366895){const _0x9da0e4=this['_editor'],{width:_0x258452,height:_0x59bff1}=A(_0x39ba6f,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x16a1a4,imageSources:_0x19299e}=E(_0x39ba6f,_0x258452);_0x9da0e4['model']['change'](_0xf7d8d7=>{if('$graveyard'===_0x3fe5c9['root']['rootName']){_0x9da0e4['execute']('insertImage',{'imageType':_0x3fe5c9['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x3fe5c9['getAttributes']()),'uploadcareImageId':_0x366895,'src':_0x16a1a4,'sources':_0x19299e,'width':_0x258452,'height':_0x59bff1}});const _0x510199=_0x3fe5c9['getChildren']();_0x3fe5c9=_0x9da0e4['model']['document']['selection']['getSelectedElement']();for(const _0x599273 of _0x510199)_0xf7d8d7['append'](_0xf7d8d7['cloneElement'](_0x599273),_0x3fe5c9);}else _0xf7d8d7['setSelection'](_0x3fe5c9,'on'),_0x9da0e4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x3fe5c9['getAttributes']()),'uploadcareImageId':_0x366895,'src':_0x16a1a4,'sources':_0x19299e,'width':_0x258452,'height':_0x59bff1},_0x3fe5c9);_0xf7d8d7['setSelection'](_0x3fe5c9,'on');});}async['_getImageAsFile'](_0x2f8747){const _0x3dfdb3=_0x1cff4f['window'],_0x3d5368=_0x1cff4f['document']['location']['href'],_0x124949=new _0x3dfdb3['URL'](_0x2f8747['getAttribute']('src'),_0x3d5368);if('data:'===_0x124949['protocol']){const _0x454616=_0x124949['href']['split'](','),_0x30b387=_0x454616[0x0]['match'](/:(.*?);/)[0x1],_0x432e81=_0x30b387['split']('/')[0x1],_0x30df7a=_0x3dfdb3['atob'](_0x454616[_0x454616['length']-0x1]);let _0x12e878=_0x30df7a['length'];const _0x3d73a6=new _0x3dfdb3['Uint8Array'](_0x12e878);for(;_0x12e878--;)_0x3d73a6[_0x12e878]=_0x30df7a['charCodeAt'](_0x12e878);return new _0x3dfdb3['File']([_0x3d73a6],'image.'+_0x432e81,{'type':_0x30b387});}const _0x19c1b3=_0x124949['href']['split']('/'),_0x16fbf4=_0x19c1b3[_0x19c1b3['length']-0x1],_0x110dac=_0x16fbf4['split']('.')[0x1];return _0x3dfdb3['fetch'](_0x124949['href'])['then'](_0x3b5034=>_0x3b5034['clone']()['blob']())['then'](_0x4f377f=>new _0x3dfdb3['File']([_0x4f377f],_0x16fbf4,{'type':'image/'+_0x110dac}));}}class J extends _0x3f38b4{['imageEditController'];static get['requires'](){return[_0x5c5908];}['_isEditable'];constructor(_0x99f578){super(_0x99f578),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x112ed3){const _0x3f448d=V(_0x112ed3);return _0x48b6aa=>!(!_0x48b6aa||!_0x48b6aa['is']('element','imageBlock')&&!_0x48b6aa['is']('element','imageInline'))&&(!!_0x48b6aa['hasAttribute']('uploadcareImageId')||!!_0x48b6aa['hasAttribute']('src')&&_0x3f448d(_0x48b6aa['getAttribute']('src')));}(_0x99f578['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5548b6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5548b6);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x559455=this['editor']['model']['document']['selection']['getSelectedElement']();_0x559455&&(_0x559455['is']('element','imageBlock')||_0x559455['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x5c5908),_0x559455),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3f38b4{['refresh'](){const _0x26f0b7=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x26f0b7&&(_0x26f0b7['is']('element','imageBlock')||_0x26f0b7['is']('element','imageInline')));}['execute'](_0x2e89f2){const _0x36a679=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x295ae0=>{_0x295ae0['setAttributes'](_0x2e89f2,_0x36a679),_0x295ae0['removeAttribute']('srcset',_0x36a679),_0x295ae0['removeAttribute']('sizes',_0x36a679);});}}class g extends _0x1dd4a0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x43e758,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x291ce8}=this;_0x291ce8['commands']['add']('uploadcareImageEdit',new J(_0x291ce8)),_0x291ce8['commands']['add']('uploadcareImageReplace',new O(_0x291ce8));}}class j extends _0x1dd4a0{['_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 _0xff4561=this['editor'];_0xff4561['ui']['componentFactory']['add']('uploadcareImageEdit',_0x100334=>{const _0x558767=_0xff4561['commands']['get']('uploadcareImageEdit'),_0x143343=new _0x16b6ef(_0x100334),t=_0x100334['t'];return _0x143343['set']({'icon':_0x56a8ab,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x143343['bind']('isEnabled')['to'](_0x558767),_0x143343['bind']('isOn')['to'](_0x558767,'isActive'),this['listenTo'](_0x143343,'execute',()=>{_0xff4561['execute']('uploadcareImageEdit'),_0xff4561['editing']['view']['focus']();}),_0x143343;}),this['_initConfig']();}['_initConfig'](){const _0x480b96=_0x379973(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x480b96),this['listenTo'](this['editor'],'destroy',()=>{_0x480b96['remove']();});}}class P extends _0x1dd4a0{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-20250406.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-20250406.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250406.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250406.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250406.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250406.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250406.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250406.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250406.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 _0x227719=_0x1f73;(function(_0x357def,_0xa63f12){const _0x161f89=_0x1f73,_0x356c3b=_0x357def();while(!![]){try{const _0x4cd4e3=parseInt(_0x161f89(0x167))/0x1*(-parseInt(_0x161f89(0x1a2))/0x2)+-parseInt(_0x161f89(0x170))/0x3+parseInt(_0x161f89(0x169))/0x4+parseInt(_0x161f89(0x178))/0x5*(parseInt(_0x161f89(0x163))/0x6)+-parseInt(_0x161f89(0x1b4))/0x7*(-parseInt(_0x161f89(0x19b))/0x8)+parseInt(_0x161f89(0x17c))/0x9*(-parseInt(_0x161f89(0x166))/0xa)+-parseInt(_0x161f89(0x1ab))/0xb*(-parseInt(_0x161f89(0x16f))/0xc);if(_0x4cd4e3===_0xa63f12)break;else _0x356c3b['push'](_0x356c3b['shift']());}catch(_0x28184b){_0x356c3b['push'](_0x356c3b['shift']());}}}(_0x1b44,0x2b942));import{Plugin as _0x37f1be}from'ckeditor5/src/core.js';import{Dialog as _0x139994}from'ckeditor5/src/ui.js';import{createElement as _0x11e4e8,global as _0x2fcac4,uid as _0x42b553}from'ckeditor5/src/utils.js';import _0x2c3884 from'./uploadcarecommand.js';function _0x1b44(){const _0x4ac84e=['view','870mqAjar','removeAttribute','schema','20HxXcXN','3CnogNf','attributeToAttribute','617728ITECJS','config','listenTo','contentLanguage','iconHrefResolver','_initSchema','363624cPoZGA','849960DGpnxG','uploadcareImageReplace','href','afterInit','uploader','querySelector','execute','appendChild','6975ImXXnO','getAttribute','join','isPremiumPlugin','561474gwlCvD','upcast','_initConfig','imageBlock','body','_initConversion','uc-config','uploadcare.pubkey','extend','PictureEditing','uploadcare.uploader','selection','insertImage','configElement','document','#uc-icon-arrow-down','_configElement','map','uploadcareImageId','closeMax','editor','editing','locale','elementToAttribute','imageInline','once','render','conversion','UploadcareEditing','remove','pluginName','1240224mPRhhA','data-uc-image-id','uploadcare','model','for','init','replaceImageSource','134254mGQuJY','_ctxElement','requires','true','isOfficialPlugin','input[uploadcare-file-input]','fromCharCode','get','commands','44waqemR','downcast','ctxElement','getSelectedElement','destroy','add','cleanupImage','_initCtx','_initImageProcessingIndicator','14wPVMDn','isRegistered','uc-upload-ctx-provider','\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'];_0x1b44=function(){return _0x4ac84e;};return _0x1b44();}import _0x30a3f9 from'./uploadcareuploadadapter.js';function _0x1f73(_0x261a39,_0x1e4e74){const _0x1b44b2=_0x1b44();return _0x1f73=function(_0x1f7381,_0x24803b){_0x1f7381=_0x1f7381-0x15f;let _0xca2a23=_0x1b44b2[_0x1f7381];return _0xca2a23;},_0x1f73(_0x261a39,_0x1e4e74);}import{showImageProcessingIndicator as _0x134534}from'./utils/editingutils.js';export default class i extends _0x37f1be{[_0x227719(0x18c)]=null;[_0x227719(0x1a3)]=null;static get[_0x227719(0x19a)](){const _0x547a57=_0x227719;return _0x547a57(0x198);}static get[_0x227719(0x1a4)](){const _0x25a6ce=_0x227719;return[_0x25a6ce(0x185),_0x30a3f9,_0x139994];}static get[_0x227719(0x1a6)](){return!0x0;}static get[_0x227719(0x17b)](){return!0x0;}get[_0x227719(0x189)](){const _0x322a91=_0x227719;return this[_0x322a91(0x18c)];}get[_0x227719(0x1ad)](){const _0x420fe5=_0x227719;return this[_0x420fe5(0x1a3)];}[_0x227719(0x1a0)](){const _0x5823f5=_0x227719,_0x25783a=this[_0x5823f5(0x190)];_0x25783a[_0x5823f5(0x1aa)][_0x5823f5(0x1b0)](_0x5823f5(0x19d),new _0x2c3884(_0x25783a));}[_0x227719(0x173)](){const _0x4c06e6=_0x227719;this[_0x4c06e6(0x16e)](),this[_0x4c06e6(0x181)](),this[_0x4c06e6(0x17e)](),this[_0x4c06e6(0x1b2)](),this[_0x4c06e6(0x1b3)](),this[_0x4c06e6(0x16b)](this[_0x4c06e6(0x190)],_0x4c06e6(0x1af),()=>{const _0x1b1273=_0x4c06e6;this[_0x1b1273(0x18c)]&&(this[_0x1b1273(0x18c)][_0x1b1273(0x199)](),this[_0x1b1273(0x18c)]=null),this[_0x1b1273(0x1a3)]&&(this[_0x1b1273(0x1a3)][_0x1b1273(0x199)](),this[_0x1b1273(0x1a3)]=null);const _0x5c6a14=_0x2fcac4[_0x1b1273(0x18a)][_0x1b1273(0x175)](_0x1b1273(0x1a7));_0x5c6a14&&_0x5c6a14[_0x1b1273(0x199)]();}),async function(_0x1ad8d5){const _0x4cd1d8=_0x541020([0x4f,0x7a,0x6c,0x5a,0x30,0x56,0x52,0x49,0x39,0x50,0x4e,0x54,0x66,0x31,0x36,0x53,0x78,0x43,0x35,0x69,0x63,0x6b,0x4d,0x4c,0x55,0x46,0x73,0x71,0x79,0x41,0x58,0x6e,0x6a,0x67,0x47,0x61,0x76,0x37,0x48,0x32,0x72,0x33,0x6f,0x44,0x65,0x4b,0x4a,0x34,0x75,0x64,0x57,0x68,0x6d,0x59,0x51,0x42,0x45,0x62,0x38,0x77,0x70,0x74]),_0x4a8f7c=0x3bcbc51c,_0x5d1399=0x3bcca15c^_0x4a8f7c,_0x487344=window[_0x541020([0x44,0x61,0x74,0x65])][_0x541020([0x6e,0x6f,0x77])](),_0xfe70ca=_0x1ad8d5[_0x541020([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a0580=new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59f60d=>{_0xfe70ca[_0x541020([0x6f,0x6e,0x63,0x65])](_0x541020([0x72,0x65,0x61,0x64,0x79]),_0x59f60d);}),_0x4aa0ef={[_0x541020([0x6b,0x74,0x79])]:_0x541020([0x45,0x43]),[_0x541020([0x75,0x73,0x65])]:_0x541020([0x73,0x69,0x67]),[_0x541020([0x63,0x72,0x76])]:_0x541020([0x50,0x2d,0x32,0x35,0x36]),[_0x541020([0x78])]:_0x541020([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]),[_0x541020([0x79])]:_0x541020([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]),[_0x541020([0x61,0x6c,0x67])]:_0x541020([0x45,0x53,0x32,0x35,0x36])},_0x43d5a3=_0xfe70ca[_0x541020([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x541020([0x67,0x65,0x74])](_0x541020([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6adee5(){let _0x35d53e,_0x37a73c=null,_0x2bcc11=null;try{if(_0x43d5a3==_0x541020([0x47,0x50,0x4c]))return _0x541020([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35d53e=_0x44f330(),!_0x35d53e)return _0x541020([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35d53e[_0x541020([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2bcc11=_0x5eaa04(_0x35d53e[_0x541020([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35d53e[_0x541020([0x6a,0x74,0x69])])),await _0x4f13bb()?_0x349a2f()?_0x245f2a()?_0x541020([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x45907a()?(_0x35d53e[_0x541020([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x541020([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x37a73c=_0x21f8c9(_0x541020([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x35d53e[_0x541020([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x541020([0x74,0x72,0x69,0x61,0x6c])&&(_0x37a73c=_0x21f8c9(_0x541020([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x230469()):_0x541020([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x541020([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x541020([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x46ecb0){return _0x541020([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x245f2a(){const _0x4211d5=[_0x541020([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x541020([0x74,0x72,0x69,0x61,0x6c])][_0x541020([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35d53e[_0x541020([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x487344/0x3e8:0xe10*_0x5d1399;return _0x35d53e[_0x541020([0x65,0x78,0x70])]<_0x4211d5;}function _0x349a2f(){const _0x367162=_0x35d53e[_0x541020([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x367162&&(!!_0x367162[_0x541020([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x541020([0x2a]))||!!_0x367162[_0x541020([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x541020([0x55,0x50,0x4c,0x43])));}function _0x45907a(){const _0x599c61=_0x1f73,_0x2ba88a=_0x35d53e[_0x541020([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ba88a||0x0==_0x2ba88a[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x38f01d}=new URL(window[_0x541020([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x599c61(0x172)]);if(_0x2ba88a[_0x541020([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f01d))return!0x0;const _0x38c328=_0x38f01d[_0x541020([0x73,0x70,0x6c,0x69,0x74])](_0x541020([0x2e]));return _0x2ba88a[_0x541020([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18e410=>_0x18e410[_0x541020([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x541020([0x2a])))[_0x541020([0x6d,0x61,0x70])](_0x3fe9d3=>_0x3fe9d3[_0x541020([0x73,0x70,0x6c,0x69,0x74])](_0x541020([0x2e])))[_0x541020([0x73,0x6f,0x6d,0x65])](_0x1c649b=>_0x38c328[_0x541020([0x65,0x76,0x65,0x72,0x79])]((_0x579083,_0x14f7e8)=>_0x1c649b[_0x14f7e8]===_0x579083||_0x1c649b[_0x14f7e8]===_0x541020([0x2a])));}function _0x230469(){return _0x37a73c&&_0x2bcc11?new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x281f2b,_0x93ac)=>{_0x37a73c[_0x541020([0x74,0x68,0x65,0x6e])](_0x281f2b,_0x93ac),_0x2bcc11[_0x541020([0x74,0x68,0x65,0x6e])](_0x391310=>{_0x391310!=_0x541020([0x56,0x61,0x6c,0x69,0x64])&&_0x281f2b(_0x391310);},_0x93ac);}):_0x37a73c||_0x2bcc11||_0x541020([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5eaa04(_0x5ee28d,_0x3d487a){return new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x496239=>{if(_0x2ecf5e())return _0x496239(_0x541020([0x56,0x61,0x6c,0x69,0x64]));_0x41c310(),_0xfe70ca[_0x541020([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x541020([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x533359=!0x1;const _0x24cad9=_0x42b553();function _0x4c5b5d(_0xd8b269){return!!_0xd8b269&&(typeof _0xd8b269===_0x541020([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xd8b269===_0x541020([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xd8b269[_0x541020([0x74,0x68,0x65,0x6e])]===_0x541020([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xd8b269[_0x541020([0x63,0x61,0x74,0x63,0x68])]===_0x541020([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x49b614(_0x6c4501){_0x2c2cfd(_0x6c4501)[_0x541020([0x74,0x68,0x65,0x6e])](_0x1cae9a=>{if(!_0x1cae9a||_0x1cae9a[_0x541020([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x541020([0x6f,0x6b]))return _0x541020([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1d6856(_0x342760(_0x24cad9+_0x3d487a))!=_0x1cae9a[_0x541020([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x541020([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x541020([0x56,0x61,0x6c,0x69,0x64]);})[_0x541020([0x74,0x68,0x65,0x6e])](_0x47d812=>(_0x51c6e2(),_0x47d812),()=>{const _0x25195a=_0x538599();return null==_0x25195a?(_0x51c6e2(),_0x541020([0x56,0x61,0x6c,0x69,0x64])):_0x541020(_0x487344-_0x25195a>(0x1fc7411c^_0x4a8f7c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x541020([0x74,0x68,0x65,0x6e])](_0x496239)[_0x541020([0x63,0x61,0x74,0x63,0x68])](()=>{_0x496239(_0x541020([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10d204=0x3bfd2b9c^_0x4a8f7c;function _0x51c6e2(){const _0x3d0eb7=_0x541020([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d6856(_0x342760(_0x5ee28d)),_0x38ad55=_0x385fe1(_0x1d6856(window[_0x541020([0x4d,0x61,0x74,0x68])][_0x541020([0x63,0x65,0x69,0x6c])](_0x487344/_0x10d204)));window[_0x541020([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x541020([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d0eb7,_0x38ad55);}function _0x538599(){const _0x27556c=_0x541020([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d6856(_0x342760(_0x5ee28d)),_0x3adba4=window[_0x541020([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x541020([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27556c);return _0x3adba4?window[_0x541020([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x385fe1(_0x3adba4),0x10)*_0x10d204:null;}function _0x2c2cfd(_0x152847){return new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x421a85,_0x3c4ed0)=>{_0x152847[_0x541020([0x74,0x68,0x65,0x6e])](_0x421a85,_0x3c4ed0),window[_0x541020([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c4ed0,0x3bca11dc^_0x4a8f7c);});}}_0xfe70ca[_0x541020([0x6f,0x6e])](_0x541020([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3d2ba6,_0x38a1a4)=>{if(_0x38a1a4[0x0]!=_0x5ee28d)return _0x496239(_0x541020([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x38a1a4[0x1]={..._0x38a1a4[0x1],[_0x541020([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x24cad9};},{[_0x541020([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x541020([0x68,0x69,0x67,0x68])}),_0xfe70ca[_0x541020([0x6f,0x6e])](_0x541020([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x12115e=>{_0x4c5b5d(_0x12115e[_0x541020([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x533359=!0x0,_0x49b614(_0x12115e[_0x541020([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x541020([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x541020([0x6c,0x6f,0x77])}),_0x4a0580[_0x541020([0x74,0x68,0x65,0x6e])](()=>{_0x533359||_0x496239(_0x541020([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2ecf5e(){return _0xfe70ca[_0x541020([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x541020([0x76,0x69,0x65,0x77])][_0x541020([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x541020([0x61,0x75,0x74,0x6f]);}function _0x41c310(){_0xfe70ca[_0x541020([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x541020([0x76,0x69,0x65,0x77])][_0x541020([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x541020([0x61,0x75,0x74,0x6f]);}}function _0x21f8c9(_0x277c89){const _0x4ad166=[new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x539835=>setTimeout(_0x539835,0x3bc2fbd0^_0x4a8f7c)),_0x4a0580[_0x541020([0x74,0x68,0x65,0x6e])](()=>new window[(_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cef98=>{let _0x101222=0x0;_0xfe70ca[_0x541020([0x6d,0x6f,0x64,0x65,0x6c])][_0x541020([0x6f,0x6e])](_0x541020([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x359106,_0x18e07d)=>{_0x18e07d[0x0][_0x541020([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x101222++,_0x101222==(0x3bcbc4e4^_0x4a8f7c)&&(_0x2cef98(),_0x359106[_0x541020([0x6f,0x66,0x66])]());});}))];return window[_0x541020([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x541020([0x72,0x61,0x63,0x65])](_0x4ad166)[_0x541020([0x74,0x68,0x65,0x6e])](()=>_0x277c89);}async function _0xf5c1dc(){await _0x4a0580,_0xfe70ca[_0x541020([0x6d,0x6f,0x64,0x65,0x6c])][_0x541020([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x13402c,_0xfe70ca[_0x541020([0x6d,0x6f,0x64,0x65,0x6c])][_0x541020([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x13402c,_0xfe70ca[_0x541020([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x541020([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3e3f30(_0x43fd0e){const _0x4536cb=_0x333dd5();_0xfe70ca[_0x4536cb]=_0x541020([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x43fd0e,_0x43fd0e!=_0x541020([0x56,0x61,0x6c,0x69,0x64])&&_0xf5c1dc();}function _0x333dd5(){const _0x595d92=window[_0x541020([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x541020([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x541020([0x6e,0x6f,0x77])]())[_0x541020([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x541020([0x2e]),'');let _0x12eede=_0x541020([0x4f]);for(let _0x5e9d5b=0x0;_0x5e9d5b<_0x595d92[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5e9d5b+=0x2){let _0x336110=window[_0x541020([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x595d92[_0x541020([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e9d5b,_0x5e9d5b+0x2));_0x336110>=_0x4cd1d8[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x336110-=_0x4cd1d8[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x12eede+=_0x4cd1d8[_0x336110];}return _0x12eede;}function _0x44f330(){const _0x435a55=_0x43d5a3[_0x541020([0x73,0x70,0x6c,0x69,0x74])](_0x541020([0x2e]));if(0x3!=_0x435a55[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f12ad(_0x435a55[0x1]);function _0x2f12ad(_0xb860b5){const _0x49d796=_0x2166b9(_0xb860b5);return _0x49d796&&_0x5babdb()?_0x49d796:null;function _0x5babdb(){const _0x2e0702=_0x49d796[_0x541020([0x6a,0x74,0x69])],_0x3617a5=window[_0x541020([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e0702[_0x541020([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e0702[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b7725={..._0x49d796,[_0x541020([0x6a,0x74,0x69])]:_0x2e0702[_0x541020([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e0702[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b7725[_0x541020([0x76,0x63])],_0x342760(_0x1b7725)==_0x3617a5;}}}async function _0x4f13bb(){let _0x3e6c70=!0x0;try{const _0x1e36c9=_0x43d5a3[_0x541020([0x73,0x70,0x6c,0x69,0x74])](_0x541020([0x2e])),[_0x2ae294,_0x574be2,_0x4d3afb]=_0x1e36c9;return _0x368ee2(_0x2ae294),await _0x24761f(_0x2ae294,_0x574be2,_0x4d3afb),_0x3e6c70;}catch(_0x5a7715){return!0x1;}function _0x368ee2(_0x1847cb){const _0x3d2ac1=_0x2166b9(_0x1847cb);_0x3d2ac1&&_0x3d2ac1[_0x541020([0x61,0x6c,0x67])]==_0x541020([0x45,0x53,0x32,0x35,0x36])||(_0x3e6c70=!0x1);}async function _0x24761f(_0x3a93ce,_0x21cc9c,_0x1a892b){const _0x16a362=window[_0x541020([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x541020([0x66,0x72,0x6f,0x6d])](_0x4fb994(_0x1a892b),_0x1efae8=>_0x1efae8[_0x541020([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f4c95=new window[(_0x541020([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x541020([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a93ce+_0x541020([0x2e])+_0x21cc9c),_0x4a8798=window[_0x541020([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x541020([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a8798)return;const _0xdfa5d=await _0x4a8798[_0x541020([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x541020([0x6a,0x77,0x6b]),_0x4aa0ef,{[_0x541020([0x6e,0x61,0x6d,0x65])]:_0x541020([0x45,0x43,0x44,0x53,0x41]),[_0x541020([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x541020([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x541020([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a8798[_0x541020([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x541020([0x6e,0x61,0x6d,0x65])]:_0x541020([0x45,0x43,0x44,0x53,0x41]),[_0x541020([0x68,0x61,0x73,0x68])]:{[_0x541020([0x6e,0x61,0x6d,0x65])]:_0x541020([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xdfa5d,_0x16a362,_0x4f4c95)||(_0x3e6c70=!0x1);}}function _0x2166b9(_0x46b049){return _0x46b049[_0x541020([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x541020([0x65,0x79]))?JSON[_0x541020([0x70,0x61,0x72,0x73,0x65])](_0x4fb994(_0x46b049)):null;}function _0x4fb994(_0x47bcd3){return window[_0x541020([0x61,0x74,0x6f,0x62])](_0x47bcd3[_0x541020([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x541020([0x2b]))[_0x541020([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x541020([0x2f])));}function _0x342760(_0x9d7a18){let _0xfb4e7c=0x1505;function _0x20225f(_0x1f9fc5){for(let _0x330a26=0x0;_0x330a26<_0x1f9fc5[_0x541020([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x330a26++){const _0xcca59b=_0x1f9fc5[_0x541020([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x330a26);_0xfb4e7c=(_0xfb4e7c<<0x5)+_0xfb4e7c+_0xcca59b,_0xfb4e7c&=_0xfb4e7c;}}function _0x444697(_0x358dbb){Array[_0x541020([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x358dbb)?_0x358dbb[_0x541020([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x444697):_0x358dbb&&typeof _0x358dbb==_0x541020([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x541020([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x358dbb)[_0x541020([0x73,0x6f,0x72,0x74])]()[_0x541020([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x49fd8c,_0x27923f])=>{_0x20225f(_0x49fd8c),_0x444697(_0x27923f);}):_0x20225f(window[_0x541020([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x358dbb));}return _0x444697(_0x9d7a18),_0xfb4e7c>>>0x0;}function _0x1d6856(_0x58b53b){return _0x58b53b[_0x541020([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x541020([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x541020([0x30]));}function _0x385fe1(_0x4acf62){return _0x4acf62[_0x541020([0x73,0x70,0x6c,0x69,0x74])]('')[_0x541020([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x541020([0x6a,0x6f,0x69,0x6e])]('');}function _0x13402c(){}function _0x541020(_0x92d3a){const _0x21e718=_0x1f73;return _0x92d3a[_0x21e718(0x18d)](_0x5e25c7=>String[_0x21e718(0x1a8)](_0x5e25c7))[_0x21e718(0x17a)]('');}_0x3e3f30(await _0x6adee5());}(this);}[_0x227719(0x16e)](){const _0x1a489b=_0x227719,_0x5236f1=this[_0x1a489b(0x190)][_0x1a489b(0x19e)][_0x1a489b(0x165)];_0x5236f1[_0x1a489b(0x15f)](_0x1a489b(0x17f))&&_0x5236f1[_0x1a489b(0x184)](_0x1a489b(0x17f),{'allowAttributes':[_0x1a489b(0x18e)]}),_0x5236f1[_0x1a489b(0x15f)](_0x1a489b(0x194))&&_0x5236f1[_0x1a489b(0x184)](_0x1a489b(0x194),{'allowAttributes':[_0x1a489b(0x18e)]});}[_0x227719(0x181)](){const _0x447a15=_0x227719,_0x303e8d=this[_0x447a15(0x190)];_0x303e8d[_0x447a15(0x197)][_0x447a15(0x19f)](_0x447a15(0x1ac))[_0x447a15(0x168)]({'model':_0x447a15(0x18e),'view':_0x447a15(0x19c)}),_0x303e8d[_0x447a15(0x197)][_0x447a15(0x19f)](_0x447a15(0x17d))[_0x447a15(0x193)]({'model':{'key':_0x447a15(0x18e),'value':_0x1d163f=>_0x1d163f[_0x447a15(0x179)](_0x447a15(0x19c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b9d07=_0x303e8d[_0x447a15(0x1aa)][_0x447a15(0x1a9)](_0x447a15(0x1a1));_0x2b9d07&&this[_0x447a15(0x16b)](_0x2b9d07,_0x447a15(0x1b1),(_0x26584f,[_0x4f21f1,_0x3d2f66])=>{const _0x432b7d=_0x447a15;_0x4f21f1[_0x432b7d(0x164)](_0x432b7d(0x18e),_0x3d2f66);});}[_0x227719(0x17e)](){const _0x3aa027=_0x227719,_0x572191=this[_0x3aa027(0x190)][_0x3aa027(0x16a)][_0x3aa027(0x1a9)](_0x3aa027(0x186))||{},_0x2ea11c=this[_0x3aa027(0x190)][_0x3aa027(0x16a)][_0x3aa027(0x1a9)](_0x3aa027(0x183))||'';this[_0x3aa027(0x18c)]=_0x11e4e8(_0x2fcac4[_0x3aa027(0x18a)],_0x3aa027(0x182),{..._0x572191,'pubkey':_0x2ea11c,'ctx-name':_0x3aa027(0x174),'sourceList':'','imgOnly':_0x3aa027(0x1a5),'removeCopyright':_0x3aa027(0x1a5),'localeName':this[_0x3aa027(0x190)][_0x3aa027(0x192)][_0x3aa027(0x16c)],'externalSourcesEmbedCss':_0x3aa027(0x161)}),this[_0x3aa027(0x18c)][_0x3aa027(0x16d)]=_0x4ad90a=>{const _0x158be5=_0x3aa027;if(_0x158be5(0x18f)==_0x4ad90a)return _0x158be5(0x18b);},_0x2fcac4[_0x3aa027(0x18a)][_0x3aa027(0x180)][_0x3aa027(0x177)](this[_0x3aa027(0x18c)]);}[_0x227719(0x1b2)](){const _0x16cad6=_0x227719;this[_0x16cad6(0x1a3)]=_0x11e4e8(_0x2fcac4[_0x16cad6(0x18a)],_0x16cad6(0x160),{'ctx-name':_0x16cad6(0x174)}),_0x2fcac4[_0x16cad6(0x18a)][_0x16cad6(0x180)][_0x16cad6(0x177)](this[_0x16cad6(0x1a3)]);}[_0x227719(0x1b3)](){const _0x1e724b=_0x227719,_0x27465b=this[_0x1e724b(0x190)][_0x1e724b(0x1aa)][_0x1e724b(0x1a9)](_0x1e724b(0x188));_0x27465b&&this[_0x1e724b(0x16b)](_0x27465b,_0x1e724b(0x176),()=>{const _0x311df6=_0x1e724b,_0x4ed501=this[_0x311df6(0x190)][_0x311df6(0x19e)][_0x311df6(0x18a)][_0x311df6(0x187)][_0x311df6(0x1ae)]();_0x4ed501&&_0x4ed501[_0x311df6(0x179)](_0x311df6(0x18e))&&this[_0x311df6(0x190)][_0x311df6(0x191)][_0x311df6(0x162)][_0x311df6(0x195)](_0x311df6(0x196),()=>{const _0x1c46e0=_0x311df6;_0x134534(this[_0x1c46e0(0x190)],_0x4ed501);});});const _0x381580=this[_0x1e724b(0x190)][_0x1e724b(0x1aa)][_0x1e724b(0x1a9)](_0x1e724b(0x171));_0x381580&&this[_0x1e724b(0x16b)](_0x381580,_0x1e724b(0x176),()=>{const _0x5478ec=_0x1e724b,_0x13d26a=this[_0x5478ec(0x190)][_0x5478ec(0x19e)][_0x5478ec(0x18a)][_0x5478ec(0x187)][_0x5478ec(0x1ae)]();_0x13d26a&&_0x13d26a[_0x5478ec(0x179)](_0x5478ec(0x18e))&&this[_0x5478ec(0x190)][_0x5478ec(0x191)][_0x5478ec(0x162)][_0x5478ec(0x195)](_0x5478ec(0x196),()=>{const _0x5a7de3=_0x5478ec;_0x134534(this[_0x5a7de3(0x190)],_0x13d26a);});});}}
|
|
@@ -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'}]}]}]});}}
|