@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250523.0 → 0.0.0-nightly-20250525.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 _0x4ccabe,Command as _0x1f121c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4776e9,IconGooglePhotos as _0x148e31,IconGoogleDrive as _0x4d31d7,IconFacebook as _0x48d634,IconDropbox as _0x4c48cd,IconUploadcareLink as _0xb3ae16,IconUploadcareImageUpload as _0x225825,IconError as et,IconUploadcareImageEdit as _0x35790c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x171128,MenuBarMenuListItemButtonView as _0x4d6005,View as _0xeadad4,FocusCycler as _0x1379f7,Dialog as _0x113065,DialogViewPosition as _0xdb3862,SpinnerView as _0x57f954,IconView as at,Notification as _0x56e4cb}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x1d74d3,DomEmitterMixin as _0x552dad,global as _0xd3f9e6,getAncestors as _0x3d8ce1,ObservableMixin as _0x1cfdc6,createElement as _0x92306,uid as _0x3c3dde}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x57679b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x217590,info as _0x4a6334}from'@uploadcare/upload-client';import*as _0x50c149 from'@uploadcare/file-uploader';var o=function(_0x5bf381){return _0x5bf381['Local']='local',_0x5bf381['URL']='url',_0x5bf381['Dropbox']='dropbox',_0x5bf381['GDrive']='gdrive',_0x5bf381['Facebook']='facebook',_0x5bf381['GPhotos']='gphotos',_0x5bf381['OneDrive']='onedrive',_0x5bf381;}({});function _(_0x1a5987,_0x1d29f2,_0x1b7d5d){const t=_0x1a5987['t'],_0x2ab69d=_0x1a5987['t'];switch(_0x1d29f2){case o['Local']:return{'text':_0x2ab69d('Insert'===_0x1b7d5d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2ab69d('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x1b7d5d?_0x2ab69d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2ab69d('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x1b7d5d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x1b7d5d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x1b7d5d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x1b7d5d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x1b7d5d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1d29f2;}}class e extends _0x4ccabe{['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 _0x37c37=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x32b054;for(const _0x2031ee in _0x37c37){const _0xd5c972=_0x2031ee,_0x546dba=_0x37c37[_0xd5c972];if('uploadcareLicenseKeyValid'==_0x546dba||'uploadcareLicenseKeyInvalid'==_0x546dba||'uploadcareLicenseKeyExpired'==_0x546dba||'uploadcareLicenseKeyDomainLimit'==_0x546dba||'uploadcareLicenseKeyNotAllowed'==_0x546dba||'uploadcareLicenseKeyEvaluationLimit'==_0x546dba||'uploadcareLicenseKeyTrialLimit'==_0x546dba||'uploadcareLicenseKeyUsageLimit'==_0x546dba){delete _0x37c37[_0xd5c972],_0x32b054=_0x546dba,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x32b054&&_0x37c37['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x32b054&&_0x37c37['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x32b054&&_0x37c37['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x32b054&&_0x37c37['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x32b054&&_0x37c37['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x32b054&&_0x37c37['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x32b054&&_0x37c37['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x41abc1}=this,_0x2de904=_0x41abc1['commands']['get']('uploadcare');if(!_0x2de904)return;const _0x10d39c=this['_normalizeConfigSourceList'](_0x41abc1['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5d3b93,_0x43d566)=>{const _0x1b927b=this['_getIntegrationKey'](_0x43d566['type']);return _0x5d3b93[_0x1b927b]||(_0x5d3b93[_0x1b927b]=[]),_0x5d3b93[_0x1b927b]['push'](_0x43d566),_0x5d3b93;},{});_0x41abc1['plugins']['has']('ImageInsertUI')&&_0x41abc1['commands']['get']('uploadcare')&&Object['entries'](_0x10d39c)['forEach'](([_0x3b8dc4,_0x4a0687])=>{_0x41abc1['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3b8dc4,'observable':()=>_0x2de904,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4a0687),'formViewCreator':()=>this['_createDropdownButtons'](_0x4a0687),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4a0687),'override':'assetManager'!==_0x3b8dc4});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xa08805){const {locale:_0x9f0eb1}=this['editor'];return _0xa08805['map'](_0x455c1b=>{const _0x5de406=_(_0x9f0eb1,_0x455c1b,'Insert');switch(_0x455c1b){case o['Local']:return{'icon':_0x225825,'type':o['Local'],..._0x5de406};case o['URL']:return{'icon':_0xb3ae16,'type':o['URL'],..._0x5de406};case o['Dropbox']:return{'icon':_0x4c48cd,'type':o['Dropbox'],..._0x5de406};case o['Facebook']:return{'icon':_0x48d634,'type':o['Facebook'],..._0x5de406};case o['GDrive']:return{'icon':_0x4d31d7,'type':o['GDrive'],..._0x5de406};case o['GPhotos']:return{'icon':_0x148e31,'type':o['GPhotos'],..._0x5de406};case o['OneDrive']:return{'icon':_0x4776e9,'type':o['OneDrive'],..._0x5de406};}});}['_getIntegrationKey'](_0xfb97b6){switch(_0xfb97b6){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x409a20,_0x2c28a2){const _0x5d5150=this['editor'],_0x55360c=new _0x409a20(_0x5d5150['locale']),_0x5ab577=_0x5d5150['commands']['get']('uploadcare');return _0x55360c['bind']('isEnabled')['to'](_0x5ab577),_0x55360c['on']('execute',()=>{_0x5ab577['execute'](_0x2c28a2);}),_0x55360c;}['_createToolbarButton'](_0x51ed71){const {locale:_0x1f3c07}=this['editor'],_0x507154=this['editor']['plugins']['get']('ImageInsertUI'),_0x7e0987=_0x51ed71[0x0],_0x46b39b=this['_createButton'](_0x171128,_0x7e0987['type']);return _0x46b39b['icon']=_0x7e0987['icon'],_0x46b39b['bind']('label')['to'](_0x507154,'isImageSelected',_0x36147d=>_(_0x1f3c07,_0x7e0987['type'],_0x36147d?'Replace':'Insert')['text']),_0x46b39b['tooltip']=!0x0,_0x46b39b;}['_createDropdownButtons'](_0x446c18){const {locale:_0x4a6ae1}=this['editor'],_0x4d1648=this['editor']['plugins']['get']('ImageInsertUI');return _0x446c18['map'](_0x888e6e=>{const _0x521feb=this['_createButton'](_0x171128,_0x888e6e['type']);return _0x521feb['withText']=!0x0,_0x521feb['icon']=_0x888e6e['icon'],_0x521feb['bind']('label')['to'](_0x4d1648,'isImageSelected',_0x192ac0=>_(_0x4a6ae1,_0x888e6e['type'],_0x192ac0?'Replace':'Insert')['text']),_0x521feb;});}['_createMenuBarButtons'](_0x4529da){return _0x4529da['map'](_0x22fbc8=>{const _0x4d8f17=this['_createButton'](_0x4d6005,_0x22fbc8['type']);return _0x4d8f17['icon']=_0x22fbc8['icon'],_0x4d8f17['label']=_0x22fbc8['shortText'],_0x4d8f17;});}}class q extends _0xeadad4{['focusTracker'];['focusCycler'];constructor(_0x46d8de){super(_0x46d8de),this['focusTracker']=new _0x1d74d3(),this['focusCycler']=new _0x1379f7({'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(_0x262e50){super(_0x262e50),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(_0x354a90,_0xf35bbe){const _0x5f7746=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x319663=>_0x319663<=_0xf35bbe)['map'](_0x2f191b=>_0x354a90['replace'](/\/$/,'')+'/-/resize/'+_0x2f191b+'x/\x20'+_0x2f191b+'w');return{'imageFallbackUrl':_0x354a90,'imageSources':[{'srcset':_0x5f7746['join'](',\x20'),'sizes':'(max-width:\x20'+_0xf35bbe+'px)\x20100vw,\x20'+_0xf35bbe+'px','type':'image/webp'}]};}function A(_0x12030d,_0x24ceff,_0x15b336){const _0x3e8023=_0x12030d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3e8023?parseInt(_0x3e8023[0x1],0xa):_0x24ceff,'height':_0x3e8023?parseInt(_0x3e8023[0x2],0xa):_0x15b336};}function m(_0x5c9257,_0x58069c){const _0x35c665=Object['create'](_0x552dad),_0x49889e=_0x5c9257['plugins']['get']('ImageUtils'),_0x5ce329=_0x5c9257['editing']['mapper']['toViewElement'](_0x58069c),_0xd3d95a=_0x49889e['findViewImgElement'](_0x5ce329),_0x2d7f08=_0x5c9257['editing']['view']['domConverter']['viewToDom'](_0xd3d95a),_0x12bf79=_0x58069c['getAttribute']('width'),_0x170b3e=_0x58069c['getAttribute']('height'),_0x45a575='image-processing';_0x5c9257['editing']['view']['change'](_0x1f8653=>{_0x1f8653['addClass'](_0x45a575,_0x5ce329),_0x1f8653['setStyle']('aspect-ratio',_0x12bf79+'/'+_0x170b3e,_0xd3d95a);}),_0x35c665['listenTo'](_0x2d7f08,'load',()=>{_0x35c665['stopListening'](_0x2d7f08,'load'),_0x5c9257['editing']['view']['change'](_0x2be4b8=>{_0x2be4b8['removeClass'](_0x45a575,_0x5ce329),_0x2be4b8['removeStyle']('aspect-ratio',_0xd3d95a);});});}function V(_0x282fba){if(Array['isArray'](_0x282fba)){const _0x2f0847=_0x282fba['map'](V);return _0x434cdb=>_0x2f0847['some'](_0x476d5b=>_0x476d5b(_0x434cdb));}if('origin'==_0x282fba){const _0x5b7451=_0xd3f9e6['window']['location']['origin'];return _0x57a15e=>new URL(_0x57a15e,_0xd3f9e6['document']['baseURI'])['origin']==_0x5b7451;}return'function'==typeof _0x282fba?_0x282fba:_0x282fba instanceof RegExp?_0x388528=>!(!_0x388528['match'](_0x282fba)&&!_0x388528['replace'](/^https?:\/\//,'')['match'](_0x282fba)):()=>!0x1;}function F(_0x3d8f5f,_0x4a4ef4){return _0x3d8ce1(_0x3d8f5f['target'])['includes'](_0x4a4ef4);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1cfdc6(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4a06f0,_0x541463,_0x98e65d){super(),this['_editor']=_0x4a06f0,this['_editing']=_0x541463,this['_dialog']=_0x4a06f0['plugins']['get'](_0x113065),this['_api']=_0x541463['ctxElement']['getAPI'](),this['_type']=_0x98e65d,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:_0x1ed826,model:_0x4e1016}=this['_editor'],_0x39e7f5=_0x4e1016['document']['selection']['getSelectedElement'](),_0x3460a2=_0x39e7f5&&(_0x39e7f5['is']('element','imageBlock')||_0x39e7f5['is']('element','imageInline'));this['_formView']=new S(_0x1ed826),this['_dialog']['show']({'id':'uploadCare','icon':_0x225825,'title':_(_0x1ed826,this['_type'],_0x3460a2?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xdb3862['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1f7cc8=>!F(_0x1f7cc8,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5db9da}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x35481e=>{const _0x459a8f=_0x5db9da['length'];for(const _0x255878 of _0x5db9da){const _0x475276=_0x255878===_0x5db9da[_0x459a8f-0x1],{cdnUrl:_0x2b1da7,fileInfo:_0x2fd328}=_0x255878;if(!_0x2b1da7||!_0x2fd328)continue;const {width:_0x4644b5,height:_0x3f8551}=_0x2fd328['imageInfo'],_0x11d08f=A(_0x2b1da7,_0x4644b5,_0x3f8551),_0xb4574c=E(_0x2b1da7,_0x11d08f['width']),_0x4337a9={'id':_0x2fd328['uuid'],'type':'image','attributes':{'imageDimension':_0x11d08f,..._0xb4574c}};this['_insertAsset'](_0x4337a9,_0x475276,_0x35481e);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5d97b5=>{'idle'===_0x5d97b5['detail']['status']&&!_0x5d97b5['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x48881a,_0x321ca0,_0x810aa7){const _0x5a86b4=this['_editor']['model']['document']['selection'],_0x187634=_0x5a86b4['getSelectedElement'](),_0x24f4b7=!(!_0x187634||!_0x187634['is']('element','imageInline'));_0x810aa7['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x48881a,_0x24f4b7),_0x321ca0||_0x810aa7['setSelection'](_0x5a86b4['getLastPosition']());}['_insertImage'](_0x5c2a3d,_0x28d6a5){const _0x5def76=this['_editor'],{imageDimension:_0x2e903b,imageFallbackUrl:_0x183d5b,imageSources:_0x292276}=_0x5c2a3d['attributes'];_0x5def76['execute']('insertImage',{'imageType':_0x28d6a5?'imageInline':null,'source':{'uploadcareImageId':_0x5c2a3d['id'],'src':_0x183d5b,'sources':_0x292276,..._0x2e903b}});}}class n extends _0x1f121c{['_editing'];['_controller']=null;static get['requires'](){return[_0x113065,i];}constructor(_0x13c614){super(_0x13c614),this['_editing']=_0x13c614['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x56abf1){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x56abf1);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5d9019,publicKey:_0x33d023,signal:_0xff52f5,onProgress:_0x47d70c}){return _0x217590(_0x5d9019,{'publicKey':_0x33d023,'store':'auto','signal':_0xff52f5,'onProgress':_0x47d70c});}static['getInfo'](_0x5cee14,_0x1bff37){return _0x4a6334(_0x5cee14,_0x1bff37);}}class p extends _0x4ccabe{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x57679b,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x22d6bc=this['editor'];if(!!!_0x22d6bc['config']['get']('uploadcare'))return;_0x22d6bc['plugins']['get'](_0x57679b)['createUploadAdapter']=_0x4096b3=>new x(_0x4096b3,_0x22d6bc),_0x22d6bc['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xc6f681,{imageElement:_0x476184,data:_0x11b7b4})=>{_0x22d6bc['model']['change'](_0x3c9750=>{_0x3c9750['setAttribute']('uploadcareImageId',_0x11b7b4['uploadcareImageId'],_0x476184);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x3b173f,_0x2186be){this['loader']=_0x3b173f,this['editor']=_0x2186be,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x46a5fa=this['editor']['config']['get']('uploadcare.pubkey'),_0x3f7ec4=await this['loader']['file'];return C['upload']({'file':_0x3f7ec4,'publicKey':_0x46a5fa,'signal':this['controller']['signal'],'onProgress':_0x369619=>{_0x369619&&_0x369619['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x369619['value']);}})['then'](async _0xca707c=>{const {imageFallbackUrl:_0x29a16d,imageSources:_0x10124d}=E(_0xca707c['cdnUrl'],_0xca707c['imageInfo']['width']);return{'uploadcareImageId':_0xca707c['uuid'],'default':_0x29a16d,'sources':_0x10124d};})['catch'](()=>{const _0x3141dc=t('Cannot\x20upload\x20file:')+('\x20'+_0x3f7ec4['name']+'.');return Promise['reject'](_0x3141dc);});}['abort'](){this['controller']['abort']();}}class i extends _0x4ccabe{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x113065];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x398ae3=this['editor'];_0x398ae3['commands']['add']('uploadcare',new n(_0x398ae3));}['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 _0x42aef3=_0xd3f9e6['document']['querySelector']('input[uploadcare-file-input]');_0x42aef3&&_0x42aef3['remove']();}),async function(_0x3ae091){const _0x3f05ef=_0x43abe4([0x32,0x76,0x4d,0x4b,0x51,0x44,0x49,0x6d,0x56,0x77,0x34,0x42,0x6f,0x70,0x4c,0x30,0x5a,0x50,0x57,0x53,0x65,0x63,0x4e,0x6b,0x6e,0x35,0x39,0x45,0x72,0x62,0x4f,0x6a,0x36,0x59,0x54,0x73,0x61,0x48,0x55,0x38,0x69,0x58,0x47,0x46,0x79,0x37,0x31,0x68,0x64,0x71,0x78,0x66,0x67,0x52,0x33,0x75,0x43,0x4a,0x7a,0x74,0x41,0x6c]),_0xba4699=0x10876822,_0x34a2cb=0x1080008a^_0xba4699,_0x52ae4c=window[_0x43abe4([0x44,0x61,0x74,0x65])][_0x43abe4([0x6e,0x6f,0x77])](),_0x390a5f=_0x3ae091[_0x43abe4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa1018=new window[(_0x43abe4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33cc7a=>{_0x390a5f[_0x43abe4([0x6f,0x6e,0x63,0x65])](_0x43abe4([0x72,0x65,0x61,0x64,0x79]),_0x33cc7a);}),_0x2d998c={[_0x43abe4([0x6b,0x74,0x79])]:_0x43abe4([0x45,0x43]),[_0x43abe4([0x75,0x73,0x65])]:_0x43abe4([0x73,0x69,0x67]),[_0x43abe4([0x63,0x72,0x76])]:_0x43abe4([0x50,0x2d,0x32,0x35,0x36]),[_0x43abe4([0x78])]:_0x43abe4([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]),[_0x43abe4([0x79])]:_0x43abe4([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]),[_0x43abe4([0x61,0x6c,0x67])]:_0x43abe4([0x45,0x53,0x32,0x35,0x36])},_0x5df782=_0x390a5f[_0x43abe4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x43abe4([0x67,0x65,0x74])](_0x43abe4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xf00044(){let _0x458ed8,_0x45f449=null,_0x29dc52=null;try{if(_0x5df782==_0x43abe4([0x47,0x50,0x4c]))return _0x43abe4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x458ed8=_0x32a70b(),!_0x458ed8)return _0x43abe4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x458ed8[_0x43abe4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x29dc52=_0x26c694(_0x458ed8[_0x43abe4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x458ed8[_0x43abe4([0x6a,0x74,0x69])])),await _0x31f47c()?_0x15756f()?_0x38f2d0()?_0x43abe4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x344a5e()?(_0x458ed8[_0x43abe4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43abe4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x45f449=_0x5b00ec(_0x43abe4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x458ed8[_0x43abe4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43abe4([0x74,0x72,0x69,0x61,0x6c])&&(_0x45f449=_0x5b00ec(_0x43abe4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b0744()):_0x43abe4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x43abe4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x43abe4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x37924a){return _0x43abe4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38f2d0(){const _0x583199=[_0x43abe4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x43abe4([0x74,0x72,0x69,0x61,0x6c])][_0x43abe4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x458ed8[_0x43abe4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52ae4c/0x3e8:0xe10*_0x34a2cb;return _0x458ed8[_0x43abe4([0x65,0x78,0x70])]<_0x583199;}function _0x15756f(){const _0x520483=_0x458ed8[_0x43abe4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x520483&&(!!_0x520483[_0x43abe4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43abe4([0x2a]))||!!_0x520483[_0x43abe4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43abe4([0x55,0x50,0x4c,0x43])));}function _0x344a5e(){const _0x33aefa=_0x458ed8[_0x43abe4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33aefa||0x0==_0x33aefa[_0x43abe4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4ffb9}=new URL(window[_0x43abe4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x33aefa[_0x43abe4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4ffb9))return!0x0;const _0x4c1ff2=_0x4ffb9[_0x43abe4([0x73,0x70,0x6c,0x69,0x74])](_0x43abe4([0x2e]));return _0x33aefa[_0x43abe4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e36cd=>_0x4e36cd[_0x43abe4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43abe4([0x2a])))[_0x43abe4([0x6d,0x61,0x70])](_0x3b3f73=>_0x3b3f73[_0x43abe4([0x73,0x70,0x6c,0x69,0x74])](_0x43abe4([0x2e])))[_0x43abe4([0x73,0x6f,0x6d,0x65])](_0x438efd=>_0x4c1ff2[_0x43abe4([0x65,0x76,0x65,0x72,0x79])]((_0x3cc7f1,_0x1032ed)=>_0x438efd[_0x1032ed]===_0x3cc7f1||_0x438efd[_0x1032ed]===_0x43abe4([0x2a])));}function _0x4b0744(){return _0x45f449&&_0x29dc52?new window[(_0x43abe4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x353e25,_0x1e14ec)=>{_0x45f449[_0x43abe4([0x74,0x68,0x65,0x6e])](_0x353e25,_0x1e14ec),_0x29dc52[_0x43abe4([0x74,0x68,0x65,0x6e])](_0x1b9839=>{_0x1b9839!=_0x43abe4([0x56,0x61,0x6c,0x69,0x64])&&_0x353e25(_0x1b9839);},_0x1e14ec);}):_0x45f449||_0x29dc52||_0x43abe4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26c694(_0xdd22b4,_0x3a3b2e){return new window[(_0x43abe4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xad48ea=>{if(_0x22f693())return _0xad48ea(_0x43abe4([0x56,0x61,0x6c,0x69,0x64]));_0x33ec1b(),_0x390a5f[_0x43abe4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x43abe4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5cb794=!0x1;const _0xaed93e=_0x3c3dde();function _0x53d5ba(_0x2493da){return!!_0x2493da&&(typeof _0x2493da===_0x43abe4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2493da===_0x43abe4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2493da[_0x43abe4([0x74,0x68,0x65,0x6e])]===_0x43abe4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2493da[_0x43abe4([0x63,0x61,0x74,0x63,0x68])]===_0x43abe4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4410b7(_0x210fb9){_0x272724(_0x210fb9)[_0x43abe4([0x74,0x68,0x65,0x6e])](_0x3dcf09=>{if(!_0x3dcf09||_0x3dcf09[_0x43abe4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x43abe4([0x6f,0x6b]))return _0x43abe4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1e4fa9(_0x5c43fb(_0xaed93e+_0x3a3b2e))!=_0x3dcf09[_0x43abe4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x43abe4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x43abe4([0x56,0x61,0x6c,0x69,0x64]);})[_0x43abe4([0x74,0x68,0x65,0x6e])](_0x3db5be=>(_0x2346d6(),_0x3db5be),()=>{const _0x3363e8=_0x2d8520();return null==_0x3363e8?(_0x2346d6(),_0x43abe4([0x56,0x61,0x6c,0x69,0x64])):_0x43abe4(_0x52ae4c-_0x3363e8>(0x348bec22^_0xba4699)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x43abe4([0x74,0x68,0x65,0x6e])](_0xad48ea)[_0x43abe4([0x63,0x61,0x74,0x63,0x68])](()=>{_0xad48ea(_0x43abe4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x58cda6=0x10b186a2^_0xba4699;function _0x2346d6(){const _0xa54e8f=_0x43abe4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e4fa9(_0x5c43fb(_0xdd22b4)),_0x59c42f=_0x2f3e10(_0x1e4fa9(window[_0x43abe4([0x4d,0x61,0x74,0x68])][_0x43abe4([0x63,0x65,0x69,0x6c])](_0x52ae4c/_0x58cda6)));window[_0x43abe4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43abe4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa54e8f,_0x59c42f);}function _0x2d8520(){const _0x40a901=_0x43abe4([0x6c,0x6c,0x63,0x74,0x2d])+_0x1e4fa9(_0x5c43fb(_0xdd22b4)),_0x3cc606=window[_0x43abe4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43abe4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40a901);return _0x3cc606?window[_0x43abe4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f3e10(_0x3cc606),0x10)*_0x58cda6:null;}function _0x272724(_0x1c0056){return new window[(_0x43abe4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7f1d7b,_0x2f71d5)=>{_0x1c0056[_0x43abe4([0x74,0x68,0x65,0x6e])](_0x7f1d7b,_0x2f71d5),window[_0x43abe4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f71d5,0x1086bce2^_0xba4699);});}}_0x390a5f[_0x43abe4([0x6f,0x6e])](_0x43abe4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x57ba5f,_0x108ee3)=>{if(_0x108ee3[0x0]!=_0xdd22b4)return _0xad48ea(_0x43abe4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x108ee3[0x1]={..._0x108ee3[0x1],[_0x43abe4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xaed93e};},{[_0x43abe4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43abe4([0x68,0x69,0x67,0x68])}),_0x390a5f[_0x43abe4([0x6f,0x6e])](_0x43abe4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5d0225=>{_0x53d5ba(_0x5d0225[_0x43abe4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5cb794=!0x0,_0x4410b7(_0x5d0225[_0x43abe4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x43abe4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43abe4([0x6c,0x6f,0x77])}),_0xa1018[_0x43abe4([0x74,0x68,0x65,0x6e])](()=>{_0x5cb794||_0xad48ea(_0x43abe4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x22f693(){return _0x390a5f[_0x43abe4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43abe4([0x76,0x69,0x65,0x77])][_0x43abe4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x43abe4([0x61,0x75,0x74,0x6f]);}function _0x33ec1b(){_0x390a5f[_0x43abe4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43abe4([0x76,0x69,0x65,0x77])][_0x43abe4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43abe4([0x61,0x75,0x74,0x6f]);}}function _0x5b00ec(_0x2f70b9){const _0x1a6999=[new window[(_0x43abe4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13b5b2=>setTimeout(_0x13b5b2,0x108e56ee^_0xba4699)),_0xa1018[_0x43abe4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x43abe4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c8b68=>{let _0x40f986=0x0;_0x390a5f[_0x43abe4([0x6d,0x6f,0x64,0x65,0x6c])][_0x43abe4([0x6f,0x6e])](_0x43abe4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ca9ce,_0x56af16)=>{_0x56af16[0x0][_0x43abe4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40f986++,_0x40f986==(0x108769da^_0xba4699)&&(_0x4c8b68(),_0x1ca9ce[_0x43abe4([0x6f,0x66,0x66])]());});}))];return window[_0x43abe4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43abe4([0x72,0x61,0x63,0x65])](_0x1a6999)[_0x43abe4([0x74,0x68,0x65,0x6e])](()=>_0x2f70b9);}async function _0x4f14bd(){await _0xa1018,_0x390a5f[_0x43abe4([0x6d,0x6f,0x64,0x65,0x6c])][_0x43abe4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x380fd5,_0x390a5f[_0x43abe4([0x6d,0x6f,0x64,0x65,0x6c])][_0x43abe4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x380fd5,_0x390a5f[_0x43abe4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x43abe4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f65e1(_0x3416fb){const _0x405ac1=_0x235c6c();_0x390a5f[_0x405ac1]=_0x43abe4([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3416fb,_0x3416fb!=_0x43abe4([0x56,0x61,0x6c,0x69,0x64])&&_0x4f14bd();}function _0x235c6c(){const _0x29a41f=window[_0x43abe4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x43abe4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x43abe4([0x6e,0x6f,0x77])]())[_0x43abe4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x43abe4([0x2e]),'');let _0x259c4f=_0x43abe4([0x76]);for(let _0x40e923=0x0;_0x40e923<_0x29a41f[_0x43abe4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40e923+=0x2){let _0x1882f0=window[_0x43abe4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29a41f[_0x43abe4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40e923,_0x40e923+0x2));_0x1882f0>=_0x3f05ef[_0x43abe4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1882f0-=_0x3f05ef[_0x43abe4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x259c4f+=_0x3f05ef[_0x1882f0];}return _0x259c4f;}function _0x32a70b(){const _0x16efb9=_0x5df782[_0x43abe4([0x73,0x70,0x6c,0x69,0x74])](_0x43abe4([0x2e]));if(0x3!=_0x16efb9[_0x43abe4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3fd084(_0x16efb9[0x1]);function _0x3fd084(_0x25735d){const _0xcfe2d8=_0x2a365f(_0x25735d);return _0xcfe2d8&&_0x1d104f()?_0xcfe2d8:null;function _0x1d104f(){const _0x521c18=_0xcfe2d8[_0x43abe4([0x6a,0x74,0x69])],_0x261540=window[_0x43abe4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x521c18[_0x43abe4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x521c18[_0x43abe4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3d67f2={..._0xcfe2d8,[_0x43abe4([0x6a,0x74,0x69])]:_0x521c18[_0x43abe4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x521c18[_0x43abe4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3d67f2[_0x43abe4([0x76,0x63])],_0x5c43fb(_0x3d67f2)==_0x261540;}}}async function _0x31f47c(){let _0x28b828=!0x0;try{const _0x1aafc1=_0x5df782[_0x43abe4([0x73,0x70,0x6c,0x69,0x74])](_0x43abe4([0x2e])),[_0x4438c6,_0x3b1315,_0xe75fa1]=_0x1aafc1;return _0x523cbd(_0x4438c6),await _0x2064f3(_0x4438c6,_0x3b1315,_0xe75fa1),_0x28b828;}catch(_0x584046){return!0x1;}function _0x523cbd(_0x327aa9){const _0x1c914c=_0x2a365f(_0x327aa9);_0x1c914c&&_0x1c914c[_0x43abe4([0x61,0x6c,0x67])]==_0x43abe4([0x45,0x53,0x32,0x35,0x36])||(_0x28b828=!0x1);}async function _0x2064f3(_0x3de0df,_0x4d66d9,_0xae5d68){const _0x27c02d=window[_0x43abe4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x43abe4([0x66,0x72,0x6f,0x6d])](_0x1709a2(_0xae5d68),_0x4b6990=>_0x4b6990[_0x43abe4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20a7c3=new window[(_0x43abe4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x43abe4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3de0df+_0x43abe4([0x2e])+_0x4d66d9),_0x31c79f=window[_0x43abe4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x43abe4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31c79f)return;const _0x53ee96=await _0x31c79f[_0x43abe4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x43abe4([0x6a,0x77,0x6b]),_0x2d998c,{[_0x43abe4([0x6e,0x61,0x6d,0x65])]:_0x43abe4([0x45,0x43,0x44,0x53,0x41]),[_0x43abe4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x43abe4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x43abe4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31c79f[_0x43abe4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x43abe4([0x6e,0x61,0x6d,0x65])]:_0x43abe4([0x45,0x43,0x44,0x53,0x41]),[_0x43abe4([0x68,0x61,0x73,0x68])]:{[_0x43abe4([0x6e,0x61,0x6d,0x65])]:_0x43abe4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x53ee96,_0x27c02d,_0x20a7c3)||(_0x28b828=!0x1);}}function _0x2a365f(_0x2d3fe1){return _0x2d3fe1[_0x43abe4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x43abe4([0x65,0x79]))?JSON[_0x43abe4([0x70,0x61,0x72,0x73,0x65])](_0x1709a2(_0x2d3fe1)):null;}function _0x1709a2(_0x57801f){return window[_0x43abe4([0x61,0x74,0x6f,0x62])](_0x57801f[_0x43abe4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x43abe4([0x2b]))[_0x43abe4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x43abe4([0x2f])));}function _0x5c43fb(_0x2b7f07){let _0x4f0633=0x1505;function _0x5bdf57(_0x1a9069){for(let _0x3cce29=0x0;_0x3cce29<_0x1a9069[_0x43abe4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3cce29++){const _0xde05ab=_0x1a9069[_0x43abe4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3cce29);_0x4f0633=(_0x4f0633<<0x5)+_0x4f0633+_0xde05ab,_0x4f0633&=_0x4f0633;}}function _0x2fe1bd(_0x47f2d6){Array[_0x43abe4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47f2d6)?_0x47f2d6[_0x43abe4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2fe1bd):_0x47f2d6&&typeof _0x47f2d6==_0x43abe4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x43abe4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47f2d6)[_0x43abe4([0x73,0x6f,0x72,0x74])]()[_0x43abe4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1998f4,_0x290a11])=>{_0x5bdf57(_0x1998f4),_0x2fe1bd(_0x290a11);}):_0x5bdf57(window[_0x43abe4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47f2d6));}return _0x2fe1bd(_0x2b7f07),_0x4f0633>>>0x0;}function _0x1e4fa9(_0x5d37b4){return _0x5d37b4[_0x43abe4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x43abe4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x43abe4([0x30]));}function _0x2f3e10(_0x494c5b){return _0x494c5b[_0x43abe4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x43abe4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x43abe4([0x6a,0x6f,0x69,0x6e])]('');}function _0x380fd5(){}function _0x43abe4(_0x1ba43d){return _0x1ba43d['map'](_0x298d26=>String['fromCharCode'](_0x298d26))['join']('');}_0x4f65e1(await _0xf00044());}(this);}['_initSchema'](){const _0x1fa6bf=this['editor']['model']['schema'];_0x1fa6bf['isRegistered']('imageBlock')&&_0x1fa6bf['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1fa6bf['isRegistered']('imageInline')&&_0x1fa6bf['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x50c819=this['editor'];_0x50c819['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x50c819['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x298ced=>_0x298ced['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3c8519=_0x50c819['commands']['get']('replaceImageSource');_0x3c8519&&this['listenTo'](_0x3c8519,'cleanupImage',(_0x22bd62,[_0x5d3083,_0x7fd05d])=>{_0x5d3083['removeAttribute']('uploadcareImageId',_0x7fd05d);});}['_initConfig'](){const _0x566f4c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x118bab=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x92306(_0xd3f9e6['document'],'uc-config',{..._0x566f4c,'pubkey':_0x118bab,'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']=_0x5cd6d8=>{if('closeMax'==_0x5cd6d8)return'#uc-icon-arrow-down';},_0xd3f9e6['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x92306(_0xd3f9e6['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xd3f9e6['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5cb503=this['editor']['commands']['get']('insertImage');_0x5cb503&&this['listenTo'](_0x5cb503,'execute',()=>{const _0x490dee=this['editor']['model']['document']['selection']['getSelectedElement']();_0x490dee&&_0x490dee['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x490dee);});});const _0x48d18d=this['editor']['commands']['get']('uploadcareImageReplace');_0x48d18d&&this['listenTo'](_0x48d18d,'execute',()=>{const _0xdc6043=this['editor']['model']['document']['selection']['getSelectedElement']();_0xdc6043&&_0xdc6043['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0xdc6043);});});}}class u extends _0x4ccabe{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f638d){super(_0x1f638d),_0x1f638d['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x50c149['defineComponents'](_0x50c149);}}class ta extends _0xeadad4{constructor(_0x3d7aa9){super(_0x3d7aa9);const t=_0x3d7aa9['t'],_0x5bd6fb=this['bindTemplate'],_0x2034e7=new _0x57f954();_0x2034e7['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':[_0x2034e7,{'text':_0x5bd6fb['to']('imageUploadProgress',_0x5118ff=>t('Loading\x20image...')+'\x20('+(_0x5118ff||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 _0xeadad4{constructor(_0x5251e9){super(_0x5251e9);const t=_0x5251e9['t'];this['set']('errorType',null);const _0x4084b7=new _0x171128(_0x5251e9);_0x4084b7['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4084b7['withText']=!0x0,_0x4084b7['class']='ck-button-action',_0x4084b7['on']('execute',()=>{this['fire']('retry');}),_0x4084b7['bind']('isVisible')['to'](this,'errorType',_0x180196=>'NotFound'!==_0x180196);const _0x2174b4=new at();_0x2174b4['content']=et,_0x2174b4['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x153d6d=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':[_0x2174b4,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x153d6d['to']('errorType',_0x5bf112=>t('NotFound'!==_0x5bf112?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4084b7]},{'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 _0xeadad4{constructor(_0x45ea45,_0x13bff8){super(_0x45ea45);const _0x41b49b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x13bff8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x41b49b['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x47524f,_0x489ee8,_0x22f383){super(_0x47524f),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x47524f),this['_errorView']=new rt(_0x47524f),this['_editingView']=new tt(_0x47524f,_0x22f383),this['_focusableView']=new _0xeadad4(_0x47524f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x489ee8),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'],_0x4e116e=>{this['_addUploadcareImageEditorListeners'](_0x4e116e);});}),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'](_0x313534,_0xd998b3){const _0x477b3d='uc-cloud-image-editor',_0x20d058=_0x313534['querySelector'](_0x477b3d);if(_0x20d058)return _0xd998b3(_0x20d058);const _0x21de29=new MutationObserver(_0x5f46da=>{const _0x1311b5=_0x5f46da['filter'](_0x5f4358=>_0x5f4358['target']===_0x313534&&_0x5f4358['addedNodes']['length']>0x0&&_0x5f4358['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x477b3d);_0x1311b5['length']&&(_0x21de29['disconnect'](),_0xd998b3(_0x1311b5[0x0]['addedNodes'][0x0]));});_0x21de29['observe'](_0x313534,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x23717f){_0x23717f['addEventListener']('apply',_0x3ab267=>{this['fire']('apply',{'imageSrc':_0x3ab267['detail']['cdnUrl']});}),_0x23717f['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1cfdc6(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xc243aa,_0x248d10,_0x3e5c37){super(),this['_editor']=_0xc243aa,this['_dialog']=_0x248d10,this['_imageElement']=_0x3e5c37,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 _0x13756a=this['_imageElement'],_0x551882=_0x13756a['getAttribute']('uploadcareImageId'),_0x541c05=_0x13756a['getAttribute']('src');if(_0x551882)await this['_loadImageInfo'](_0x551882,_0x541c05);else{if(this['_imageCache']['has'](_0x541c05)){const _0x3b2216=this['_imageCache']['get'](_0x541c05);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3b2216['url'],this['imageDimension']=_0x3b2216['dimension'],this['imageId']=_0x3b2216['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4e2b6e}=this['_editor'],t=_0x4e2b6e['t'],_0x3d9733=new Z(_0x4e2b6e,this['imageStatus'],this['_attributes']);_0x3d9733['bind']('status')['to'](this,'imageStatus'),_0x3d9733['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3d9733['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3d9733['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3d9733,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x35790c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3d9733,'position':_0xdb3862['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3d9733['focus']();},'onHide':()=>{_0x3d9733['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e9a35=>!F(_0x1e9a35,_0x3d9733['element'])}});}['_loadImageInfo'](_0x2ded6c,_0x642898){return C['getInfo'](_0x2ded6c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1fa689=>{const {width:_0x4b45a4,height:_0x368da0}=_0x1fa689['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x642898,this['imageDimension']={'width':_0x4b45a4,'height':_0x368da0},this['imageId']=_0x2ded6c;})['catch'](_0x26c5df=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x26c5df['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4268de,_0x4dc106){return this['_getImageAsFile'](_0x4268de)['then'](_0x72b635=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x4dc106['signal'],'file':_0x72b635,'onProgress':_0x1df634=>{_0x1df634&&_0x1df634['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1df634['value']));}}))['then'](_0x471bce=>{const {width:_0x17a9ef,height:_0x483906}=_0x471bce['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x471bce['cdnUrl'],this['imageDimension']={'width':_0x17a9ef,'height':_0x483906},this['imageId']=_0x471bce['uuid'],this['imageUploadProgress']=null;const _0x525e26=_0x4268de['getAttribute']('src');this['_imageCache']['set'](_0x525e26,{'id':_0x471bce['uuid'],'url':_0x471bce['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x385b98=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x385b98['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3ef139,_0x255e29){_0x3ef139['on']('apply',(_0x2885c5,_0x526af1)=>{this['_replaceImage'](_0x255e29,_0x526af1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3ef139['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3ef139['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4e4ba2,_0x3bfcf2,_0x242b07){const _0x34795b=this['_editor'],{width:_0x1544e4,height:_0x1c0760}=A(_0x3bfcf2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x412e21,imageSources:_0x4f3b36}=E(_0x3bfcf2,_0x1544e4);_0x34795b['model']['change'](_0x5f2e26=>{if('$graveyard'===_0x4e4ba2['root']['rootName']){_0x34795b['execute']('insertImage',{'imageType':_0x4e4ba2['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4e4ba2['getAttributes']()),'uploadcareImageId':_0x242b07,'src':_0x412e21,'sources':_0x4f3b36,'width':_0x1544e4,'height':_0x1c0760}});const _0x188022=_0x4e4ba2['getChildren']();_0x4e4ba2=_0x34795b['model']['document']['selection']['getSelectedElement']();for(const _0x374918 of _0x188022)_0x5f2e26['append'](_0x5f2e26['cloneElement'](_0x374918),_0x4e4ba2);}else _0x5f2e26['setSelection'](_0x4e4ba2,'on'),_0x34795b['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4e4ba2['getAttributes']()),'uploadcareImageId':_0x242b07,'src':_0x412e21,'sources':_0x4f3b36,'width':_0x1544e4,'height':_0x1c0760},_0x4e4ba2);_0x5f2e26['setSelection'](_0x4e4ba2,'on');});}async['_getImageAsFile'](_0x4d33ae){const _0x464569=_0xd3f9e6['window'],_0x1ba82d=_0xd3f9e6['document']['location']['href'],_0x1cf66d=new _0x464569['URL'](_0x4d33ae['getAttribute']('src'),_0x1ba82d);if('data:'===_0x1cf66d['protocol']){const _0x7fbf45=_0x1cf66d['href']['split'](','),_0x23ea45=_0x7fbf45[0x0]['match'](/:(.*?);/)[0x1],_0x46a0e8=_0x23ea45['split']('/')[0x1],_0x2df71d=_0x464569['atob'](_0x7fbf45[_0x7fbf45['length']-0x1]);let _0x6293a1=_0x2df71d['length'];const _0x360ac3=new _0x464569['Uint8Array'](_0x6293a1);for(;_0x6293a1--;)_0x360ac3[_0x6293a1]=_0x2df71d['charCodeAt'](_0x6293a1);return new _0x464569['File']([_0x360ac3],'image.'+_0x46a0e8,{'type':_0x23ea45});}const _0xc7516a=_0x1cf66d['href']['split']('/'),_0x2b3355=_0xc7516a[_0xc7516a['length']-0x1],_0x47feb6=_0x2b3355['split']('.')[0x1];return _0x464569['fetch'](_0x1cf66d['href'])['then'](_0x284e80=>_0x284e80['clone']()['blob']())['then'](_0x1d520e=>new _0x464569['File']([_0x1d520e],_0x2b3355,{'type':'image/'+_0x47feb6}));}}class J extends _0x1f121c{['imageEditController'];static get['requires'](){return[_0x113065];}['_isEditable'];constructor(_0x1a5c70){super(_0x1a5c70),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xfaf6e0){const _0x46996c=V(_0xfaf6e0);return _0x388695=>!(!_0x388695||!_0x388695['is']('element','imageBlock')&&!_0x388695['is']('element','imageInline'))&&(!!_0x388695['hasAttribute']('uploadcareImageId')||!!_0x388695['hasAttribute']('src')&&_0x46996c(_0x388695['getAttribute']('src')));}(_0x1a5c70['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x4ba870=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x4ba870);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x177698=this['editor']['model']['document']['selection']['getSelectedElement']();_0x177698&&(_0x177698['is']('element','imageBlock')||_0x177698['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x113065),_0x177698),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x1f121c{['refresh'](){const _0x49325e=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x49325e&&(_0x49325e['is']('element','imageBlock')||_0x49325e['is']('element','imageInline')));}['execute'](_0x226e38){const _0x3baa39=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x18fbab=>{_0x18fbab['setAttributes'](_0x226e38,_0x3baa39),_0x18fbab['removeAttribute']('srcset',_0x3baa39),_0x18fbab['removeAttribute']('sizes',_0x3baa39);});}}class g extends _0x4ccabe{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x56e4cb,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x56da84}=this;_0x56da84['commands']['add']('uploadcareImageEdit',new J(_0x56da84)),_0x56da84['commands']['add']('uploadcareImageReplace',new O(_0x56da84));}}class j extends _0x4ccabe{['_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 _0x30c468=this['editor'];_0x30c468['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4e47ad=>{const _0x3c30d2=_0x30c468['commands']['get']('uploadcareImageEdit'),_0x520f64=new _0x171128(_0x4e47ad),t=_0x4e47ad['t'];return _0x520f64['set']({'icon':_0x35790c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x520f64['bind']('isEnabled')['to'](_0x3c30d2),_0x520f64['bind']('isOn')['to'](_0x3c30d2,'isActive'),this['listenTo'](_0x520f64,'execute',()=>{_0x30c468['execute']('uploadcareImageEdit'),_0x30c468['editing']['view']['focus']();}),_0x520f64;}),this['_initConfig']();}['_initConfig'](){const _0x5e2be6=_0x92306(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5e2be6),this['listenTo'](this['editor'],'destroy',()=>{_0x5e2be6['remove']();});}}class P extends _0x4ccabe{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 _0x3b3d22,Command as _0x1376a6}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xcbaf02,IconGooglePhotos as _0x3343e4,IconGoogleDrive as _0x55ec43,IconFacebook as _0xca1371,IconDropbox as _0x4c4c68,IconUploadcareLink as _0x174dcf,IconUploadcareImageUpload as _0x225132,IconError as et,IconUploadcareImageEdit as _0xb1f3f5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xeb584,MenuBarMenuListItemButtonView as _0x4cc523,View as _0x182c89,FocusCycler as _0x2b684a,Dialog as _0x137a31,DialogViewPosition as _0x34e3d0,SpinnerView as _0x60a5d7,IconView as at,Notification as _0x27d959}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2c3bfc,DomEmitterMixin as _0x3102e1,global as _0x261a41,getAncestors as _0x3932f5,ObservableMixin as _0x9d7baf,createElement as _0x3c19db,uid as _0x3d74a3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x493b29}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2d74d5,info as _0x1565af}from'@uploadcare/upload-client';import*as _0x4b5396 from'@uploadcare/file-uploader';var o=function(_0x4451fb){return _0x4451fb['Local']='local',_0x4451fb['URL']='url',_0x4451fb['Dropbox']='dropbox',_0x4451fb['GDrive']='gdrive',_0x4451fb['Facebook']='facebook',_0x4451fb['GPhotos']='gphotos',_0x4451fb['OneDrive']='onedrive',_0x4451fb;}({});function _(_0x403f8f,_0x38153f,_0xfa3e62){const t=_0x403f8f['t'],_0x5dfe50=_0x403f8f['t'];switch(_0x38153f){case o['Local']:return{'text':_0x5dfe50('Insert'===_0xfa3e62?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5dfe50('From\x20computer')};case o['URL']:return{'text':'Insert'===_0xfa3e62?_0x5dfe50('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5dfe50('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0xfa3e62?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0xfa3e62?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0xfa3e62?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0xfa3e62?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0xfa3e62?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x38153f;}}class e extends _0x3b3d22{['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 _0x417b47=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b1de0;for(const _0x3ff645 in _0x417b47){const _0x205421=_0x3ff645,_0x264c14=_0x417b47[_0x205421];if('uploadcareLicenseKeyValid'==_0x264c14||'uploadcareLicenseKeyInvalid'==_0x264c14||'uploadcareLicenseKeyExpired'==_0x264c14||'uploadcareLicenseKeyDomainLimit'==_0x264c14||'uploadcareLicenseKeyNotAllowed'==_0x264c14||'uploadcareLicenseKeyEvaluationLimit'==_0x264c14||'uploadcareLicenseKeyTrialLimit'==_0x264c14||'uploadcareLicenseKeyUsageLimit'==_0x264c14){delete _0x417b47[_0x205421],_0x4b1de0=_0x264c14,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4b1de0&&_0x417b47['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4b1de0&&_0x417b47['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4b1de0&&_0x417b47['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4b1de0&&_0x417b47['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4b1de0&&_0x417b47['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4b1de0&&_0x417b47['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4b1de0&&_0x417b47['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3031ee}=this,_0x36d82b=_0x3031ee['commands']['get']('uploadcare');if(!_0x36d82b)return;const _0x127273=this['_normalizeConfigSourceList'](_0x3031ee['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5bc299,_0x3937e3)=>{const _0x864355=this['_getIntegrationKey'](_0x3937e3['type']);return _0x5bc299[_0x864355]||(_0x5bc299[_0x864355]=[]),_0x5bc299[_0x864355]['push'](_0x3937e3),_0x5bc299;},{});_0x3031ee['plugins']['has']('ImageInsertUI')&&_0x3031ee['commands']['get']('uploadcare')&&Object['entries'](_0x127273)['forEach'](([_0x4e34d2,_0x17079c])=>{_0x3031ee['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4e34d2,'observable':()=>_0x36d82b,'buttonViewCreator':()=>this['_createToolbarButton'](_0x17079c),'formViewCreator':()=>this['_createDropdownButtons'](_0x17079c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x17079c),'override':'assetManager'!==_0x4e34d2});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x12b790){const {locale:_0x3b3f03}=this['editor'];return _0x12b790['map'](_0x2dc547=>{const _0x5d818e=_(_0x3b3f03,_0x2dc547,'Insert');switch(_0x2dc547){case o['Local']:return{'icon':_0x225132,'type':o['Local'],..._0x5d818e};case o['URL']:return{'icon':_0x174dcf,'type':o['URL'],..._0x5d818e};case o['Dropbox']:return{'icon':_0x4c4c68,'type':o['Dropbox'],..._0x5d818e};case o['Facebook']:return{'icon':_0xca1371,'type':o['Facebook'],..._0x5d818e};case o['GDrive']:return{'icon':_0x55ec43,'type':o['GDrive'],..._0x5d818e};case o['GPhotos']:return{'icon':_0x3343e4,'type':o['GPhotos'],..._0x5d818e};case o['OneDrive']:return{'icon':_0xcbaf02,'type':o['OneDrive'],..._0x5d818e};}});}['_getIntegrationKey'](_0x379ac0){switch(_0x379ac0){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3cfeb6,_0x5ea0ed){const _0x366af1=this['editor'],_0xf4a397=new _0x3cfeb6(_0x366af1['locale']),_0x574611=_0x366af1['commands']['get']('uploadcare');return _0xf4a397['bind']('isEnabled')['to'](_0x574611),_0xf4a397['on']('execute',()=>{_0x574611['execute'](_0x5ea0ed);}),_0xf4a397;}['_createToolbarButton'](_0x59fc06){const {locale:_0x2a5462}=this['editor'],_0x13a340=this['editor']['plugins']['get']('ImageInsertUI'),_0xdac4f9=_0x59fc06[0x0],_0x420e70=this['_createButton'](_0xeb584,_0xdac4f9['type']);return _0x420e70['icon']=_0xdac4f9['icon'],_0x420e70['bind']('label')['to'](_0x13a340,'isImageSelected',_0x1a0294=>_(_0x2a5462,_0xdac4f9['type'],_0x1a0294?'Replace':'Insert')['text']),_0x420e70['tooltip']=!0x0,_0x420e70;}['_createDropdownButtons'](_0x37e644){const {locale:_0xb5373c}=this['editor'],_0x34003b=this['editor']['plugins']['get']('ImageInsertUI');return _0x37e644['map'](_0x348195=>{const _0x44d2ec=this['_createButton'](_0xeb584,_0x348195['type']);return _0x44d2ec['withText']=!0x0,_0x44d2ec['icon']=_0x348195['icon'],_0x44d2ec['bind']('label')['to'](_0x34003b,'isImageSelected',_0x27ed00=>_(_0xb5373c,_0x348195['type'],_0x27ed00?'Replace':'Insert')['text']),_0x44d2ec;});}['_createMenuBarButtons'](_0x197afb){return _0x197afb['map'](_0x2115d1=>{const _0xbbfefd=this['_createButton'](_0x4cc523,_0x2115d1['type']);return _0xbbfefd['icon']=_0x2115d1['icon'],_0xbbfefd['label']=_0x2115d1['shortText'],_0xbbfefd;});}}class q extends _0x182c89{['focusTracker'];['focusCycler'];constructor(_0x452f8a){super(_0x452f8a),this['focusTracker']=new _0x2c3bfc(),this['focusCycler']=new _0x2b684a({'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(_0x2b6070){super(_0x2b6070),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(_0x1ddf85,_0x44ba56){const _0xf81c1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3ef305=>_0x3ef305<=_0x44ba56)['map'](_0x14ad68=>_0x1ddf85['replace'](/\/$/,'')+'/-/resize/'+_0x14ad68+'x/\x20'+_0x14ad68+'w');return{'imageFallbackUrl':_0x1ddf85,'imageSources':[{'srcset':_0xf81c1['join'](',\x20'),'sizes':'(max-width:\x20'+_0x44ba56+'px)\x20100vw,\x20'+_0x44ba56+'px','type':'image/webp'}]};}function A(_0x232a19,_0x3253bc,_0x2442b4){const _0x119090=_0x232a19['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x119090?parseInt(_0x119090[0x1],0xa):_0x3253bc,'height':_0x119090?parseInt(_0x119090[0x2],0xa):_0x2442b4};}function m(_0x171bc5,_0x2db910){const _0x19409f=Object['create'](_0x3102e1),_0x2f0fed=_0x171bc5['plugins']['get']('ImageUtils'),_0x15c3c8=_0x171bc5['editing']['mapper']['toViewElement'](_0x2db910),_0x4e5bed=_0x2f0fed['findViewImgElement'](_0x15c3c8),_0x412636=_0x171bc5['editing']['view']['domConverter']['viewToDom'](_0x4e5bed),_0x4e9147=_0x2db910['getAttribute']('width'),_0x74e03c=_0x2db910['getAttribute']('height'),_0xb03a5a='image-processing';_0x171bc5['editing']['view']['change'](_0x388b8b=>{_0x388b8b['addClass'](_0xb03a5a,_0x15c3c8),_0x388b8b['setStyle']('aspect-ratio',_0x4e9147+'/'+_0x74e03c,_0x4e5bed);}),_0x19409f['listenTo'](_0x412636,'load',()=>{_0x19409f['stopListening'](_0x412636,'load'),_0x171bc5['editing']['view']['change'](_0xeea451=>{_0xeea451['removeClass'](_0xb03a5a,_0x15c3c8),_0xeea451['removeStyle']('aspect-ratio',_0x4e5bed);});});}function R(_0x29916a){if(Array['isArray'](_0x29916a)){const _0xb2fecd=_0x29916a['map'](R);return _0x1bbcba=>_0xb2fecd['some'](_0x3a5415=>_0x3a5415(_0x1bbcba));}if('origin'==_0x29916a){const _0x535a37=_0x261a41['window']['location']['origin'];return _0x52b1bc=>new URL(_0x52b1bc,_0x261a41['document']['baseURI'])['origin']==_0x535a37;}return'function'==typeof _0x29916a?_0x29916a:_0x29916a instanceof RegExp?_0x2df8aa=>!(!_0x2df8aa['match'](_0x29916a)&&!_0x2df8aa['replace'](/^https?:\/\//,'')['match'](_0x29916a)):()=>!0x1;}function F(_0x42dd1e,_0x5c236e){return _0x3932f5(_0x42dd1e['target'])['includes'](_0x5c236e);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x9d7baf(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x55f452,_0x3bec7e,_0x4b2090){super(),this['_editor']=_0x55f452,this['_editing']=_0x3bec7e,this['_dialog']=_0x55f452['plugins']['get'](_0x137a31),this['_api']=_0x3bec7e['ctxElement']['getAPI'](),this['_type']=_0x4b2090,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:_0x31b2ec,model:_0x2ddab2}=this['_editor'],_0x2416cc=_0x2ddab2['document']['selection']['getSelectedElement'](),_0x5a58b4=_0x2416cc&&(_0x2416cc['is']('element','imageBlock')||_0x2416cc['is']('element','imageInline'));this['_formView']=new S(_0x31b2ec),this['_dialog']['show']({'id':'uploadCare','icon':_0x225132,'title':_(_0x31b2ec,this['_type'],_0x5a58b4?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x34e3d0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4a8815=>!F(_0x4a8815,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3ebef3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x12bd5c=>{const _0x26636b=_0x3ebef3['length'];for(const _0x1fe543 of _0x3ebef3){const _0x3d03a5=_0x1fe543===_0x3ebef3[_0x26636b-0x1],{cdnUrl:_0x4a5c0a,fileInfo:_0x1a42a8}=_0x1fe543;if(!_0x4a5c0a||!_0x1a42a8)continue;const {width:_0x3d4600,height:_0x6a86b}=_0x1a42a8['imageInfo'],_0x2d8b5f=A(_0x4a5c0a,_0x3d4600,_0x6a86b),_0xbdf5ee=E(_0x4a5c0a,_0x2d8b5f['width']),_0x3915ba={'id':_0x1a42a8['uuid'],'type':'image','attributes':{'imageDimension':_0x2d8b5f,..._0xbdf5ee}};this['_insertAsset'](_0x3915ba,_0x3d03a5,_0x12bd5c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x53a4ea=>{'idle'===_0x53a4ea['detail']['status']&&!_0x53a4ea['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xe1ab0b,_0x345f1b,_0x572547){const _0x3c0471=this['_editor']['model']['document']['selection'],_0x11d70a=_0x3c0471['getSelectedElement'](),_0x5bce89=!(!_0x11d70a||!_0x11d70a['is']('element','imageInline'));_0x572547['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xe1ab0b,_0x5bce89),_0x345f1b||_0x572547['setSelection'](_0x3c0471['getLastPosition']());}['_insertImage'](_0x50900b,_0x1335a6){const _0x276952=this['_editor'],{imageDimension:_0x4a475e,imageFallbackUrl:_0x1acc72,imageSources:_0x343bf1}=_0x50900b['attributes'];_0x276952['execute']('insertImage',{'imageType':_0x1335a6?'imageInline':null,'source':{'uploadcareImageId':_0x50900b['id'],'src':_0x1acc72,'sources':_0x343bf1,..._0x4a475e}});}}class n extends _0x1376a6{['_editing'];['_controller']=null;static get['requires'](){return[_0x137a31,i];}constructor(_0x37b258){super(_0x37b258),this['_editing']=_0x37b258['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x58c281){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x58c281);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x468a3f,publicKey:_0x169de6,signal:_0x4976fc,onProgress:_0xad8580}){return _0x2d74d5(_0x468a3f,{'publicKey':_0x169de6,'store':'auto','signal':_0x4976fc,'onProgress':_0xad8580});}static['getInfo'](_0x3496d1,_0x1fc7c2){return _0x1565af(_0x3496d1,_0x1fc7c2);}}class p extends _0x3b3d22{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x493b29,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3bbd76=this['editor'];if(!!!_0x3bbd76['config']['get']('uploadcare'))return;_0x3bbd76['plugins']['get'](_0x493b29)['createUploadAdapter']=_0xe7e40b=>new x(_0xe7e40b,_0x3bbd76),_0x3bbd76['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xe86806,{imageElement:_0x16a9ef,data:_0x912d90})=>{_0x3bbd76['model']['change'](_0x210217=>{_0x210217['setAttribute']('uploadcareImageId',_0x912d90['uploadcareImageId'],_0x16a9ef);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4cb933,_0x39f7e7){this['loader']=_0x4cb933,this['editor']=_0x39f7e7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1e1467=this['editor']['config']['get']('uploadcare.pubkey'),_0xbb4824=await this['loader']['file'];return C['upload']({'file':_0xbb4824,'publicKey':_0x1e1467,'signal':this['controller']['signal'],'onProgress':_0x512685=>{_0x512685&&_0x512685['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x512685['value']);}})['then'](async _0x5e9824=>{const {imageFallbackUrl:_0x40ca18,imageSources:_0x52ea7f}=E(_0x5e9824['cdnUrl'],_0x5e9824['imageInfo']['width']);return{'uploadcareImageId':_0x5e9824['uuid'],'default':_0x40ca18,'sources':_0x52ea7f};})['catch'](()=>{const _0x5bd541=t('Cannot\x20upload\x20file:')+('\x20'+_0xbb4824['name']+'.');return Promise['reject'](_0x5bd541);});}['abort'](){this['controller']['abort']();}}class i extends _0x3b3d22{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x137a31];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2e1aac=this['editor'];_0x2e1aac['commands']['add']('uploadcare',new n(_0x2e1aac));}['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 _0x5b3c3a=_0x261a41['document']['querySelector']('input[uploadcare-file-input]');_0x5b3c3a&&_0x5b3c3a['remove']();}),async function(_0x5e2d35){const _0x461afb=_0x533c94([0x4e,0x42,0x6c,0x30,0x73,0x78,0x71,0x52,0x44,0x58,0x76,0x72,0x6e,0x6a,0x54,0x68,0x38,0x6d,0x79,0x69,0x4f,0x74,0x50,0x70,0x43,0x36,0x59,0x65,0x32,0x48,0x75,0x64,0x33,0x53,0x56,0x66,0x4c,0x39,0x49,0x34,0x61,0x63,0x45,0x51,0x77,0x31,0x4b,0x6b,0x46,0x55,0x4a,0x37,0x41,0x6f,0x5a,0x35,0x47,0x4d,0x62,0x7a,0x57,0x67]),_0x291234=0x169d4413,_0x961464=0x169a2ccb^_0x291234,_0x3ef25d=window[_0x533c94([0x44,0x61,0x74,0x65])][_0x533c94([0x6e,0x6f,0x77])](),_0x198df2=_0x5e2d35[_0x533c94([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x35d998=new window[(_0x533c94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22670f=>{_0x198df2[_0x533c94([0x6f,0x6e,0x63,0x65])](_0x533c94([0x72,0x65,0x61,0x64,0x79]),_0x22670f);}),_0x5263e3={[_0x533c94([0x6b,0x74,0x79])]:_0x533c94([0x45,0x43]),[_0x533c94([0x75,0x73,0x65])]:_0x533c94([0x73,0x69,0x67]),[_0x533c94([0x63,0x72,0x76])]:_0x533c94([0x50,0x2d,0x32,0x35,0x36]),[_0x533c94([0x78])]:_0x533c94([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]),[_0x533c94([0x79])]:_0x533c94([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]),[_0x533c94([0x61,0x6c,0x67])]:_0x533c94([0x45,0x53,0x32,0x35,0x36])},_0x9f6f4e=_0x198df2[_0x533c94([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x533c94([0x67,0x65,0x74])](_0x533c94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a9ee1(){let _0x46c804,_0x2e65d7=null,_0x741c5e=null;try{if(_0x9f6f4e==_0x533c94([0x47,0x50,0x4c]))return _0x533c94([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x46c804=_0xdcbca8(),!_0x46c804)return _0x533c94([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x46c804[_0x533c94([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x741c5e=_0x4eb70c(_0x46c804[_0x533c94([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x46c804[_0x533c94([0x6a,0x74,0x69])])),await _0x3139e3()?_0x4e9fd2()?_0x4ca14e()?_0x533c94([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48e5c0()?(_0x46c804[_0x533c94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x533c94([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e65d7=_0x4b6517(_0x533c94([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x46c804[_0x533c94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x533c94([0x74,0x72,0x69,0x61,0x6c])&&(_0x2e65d7=_0x4b6517(_0x533c94([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e783b()):_0x533c94([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x533c94([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x533c94([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2e90a1){return _0x533c94([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4ca14e(){const _0x476f70=[_0x533c94([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x533c94([0x74,0x72,0x69,0x61,0x6c])][_0x533c94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46c804[_0x533c94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ef25d/0x3e8:0xe10*_0x961464;return _0x46c804[_0x533c94([0x65,0x78,0x70])]<_0x476f70;}function _0x4e9fd2(){const _0x3ab469=_0x46c804[_0x533c94([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ab469&&(!!_0x3ab469[_0x533c94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533c94([0x2a]))||!!_0x3ab469[_0x533c94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533c94([0x55,0x50,0x4c,0x43])));}function _0x48e5c0(){const _0x46724d=_0x46c804[_0x533c94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46724d||0x0==_0x46724d[_0x533c94([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4bdd05}=new URL(window[_0x533c94([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x46724d[_0x533c94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bdd05))return!0x0;const _0x26b515=_0x4bdd05[_0x533c94([0x73,0x70,0x6c,0x69,0x74])](_0x533c94([0x2e]));return _0x46724d[_0x533c94([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f0ae1=>_0x4f0ae1[_0x533c94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533c94([0x2a])))[_0x533c94([0x6d,0x61,0x70])](_0x1c399d=>_0x1c399d[_0x533c94([0x73,0x70,0x6c,0x69,0x74])](_0x533c94([0x2e])))[_0x533c94([0x73,0x6f,0x6d,0x65])](_0x33491b=>_0x26b515[_0x533c94([0x65,0x76,0x65,0x72,0x79])]((_0xe3244f,_0x830f6e)=>_0x33491b[_0x830f6e]===_0xe3244f||_0x33491b[_0x830f6e]===_0x533c94([0x2a])));}function _0x5e783b(){return _0x2e65d7&&_0x741c5e?new window[(_0x533c94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x406c52,_0x746a70)=>{_0x2e65d7[_0x533c94([0x74,0x68,0x65,0x6e])](_0x406c52,_0x746a70),_0x741c5e[_0x533c94([0x74,0x68,0x65,0x6e])](_0x322ad4=>{_0x322ad4!=_0x533c94([0x56,0x61,0x6c,0x69,0x64])&&_0x406c52(_0x322ad4);},_0x746a70);}):_0x2e65d7||_0x741c5e||_0x533c94([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4eb70c(_0x1937cf,_0x17c1e9){return new window[(_0x533c94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bdece=>{if(_0x149d0f())return _0x5bdece(_0x533c94([0x56,0x61,0x6c,0x69,0x64]));_0x42aad4(),_0x198df2[_0x533c94([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x533c94([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1cd7ba=!0x1;const _0x220d6d=_0x3d74a3();function _0x32c9c1(_0x1031dc){return!!_0x1031dc&&(typeof _0x1031dc===_0x533c94([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1031dc===_0x533c94([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1031dc[_0x533c94([0x74,0x68,0x65,0x6e])]===_0x533c94([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1031dc[_0x533c94([0x63,0x61,0x74,0x63,0x68])]===_0x533c94([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ebaf3(_0x591026){_0x13a7eb(_0x591026)[_0x533c94([0x74,0x68,0x65,0x6e])](_0x4090b4=>{if(!_0x4090b4||_0x4090b4[_0x533c94([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x533c94([0x6f,0x6b]))return _0x533c94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x327751(_0x143380(_0x220d6d+_0x17c1e9))!=_0x4090b4[_0x533c94([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x533c94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x533c94([0x56,0x61,0x6c,0x69,0x64]);})[_0x533c94([0x74,0x68,0x65,0x6e])](_0x2dc6d6=>(_0x5ab41b(),_0x2dc6d6),()=>{const _0x1f460f=_0x57a9e8();return null==_0x1f460f?(_0x5ab41b(),_0x533c94([0x56,0x61,0x6c,0x69,0x64])):_0x533c94(_0x3ef25d-_0x1f460f>(0x3291c013^_0x291234)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x533c94([0x74,0x68,0x65,0x6e])](_0x5bdece)[_0x533c94([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5bdece(_0x533c94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x580a13=0x16abaa93^_0x291234;function _0x5ab41b(){const _0x19aaad=_0x533c94([0x6c,0x6c,0x63,0x74,0x2d])+_0x327751(_0x143380(_0x1937cf)),_0x384e0f=_0x489297(_0x327751(window[_0x533c94([0x4d,0x61,0x74,0x68])][_0x533c94([0x63,0x65,0x69,0x6c])](_0x3ef25d/_0x580a13)));window[_0x533c94([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x533c94([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19aaad,_0x384e0f);}function _0x57a9e8(){const _0x311d8e=_0x533c94([0x6c,0x6c,0x63,0x74,0x2d])+_0x327751(_0x143380(_0x1937cf)),_0x517a06=window[_0x533c94([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x533c94([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x311d8e);return _0x517a06?window[_0x533c94([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x489297(_0x517a06),0x10)*_0x580a13:null;}function _0x13a7eb(_0x556c60){return new window[(_0x533c94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6b71fd,_0x56f2cd)=>{_0x556c60[_0x533c94([0x74,0x68,0x65,0x6e])](_0x6b71fd,_0x56f2cd),window[_0x533c94([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56f2cd,0x169c90d3^_0x291234);});}}_0x198df2[_0x533c94([0x6f,0x6e])](_0x533c94([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ee244,_0x1d96b0)=>{if(_0x1d96b0[0x0]!=_0x1937cf)return _0x5bdece(_0x533c94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d96b0[0x1]={..._0x1d96b0[0x1],[_0x533c94([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x220d6d};},{[_0x533c94([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x533c94([0x68,0x69,0x67,0x68])}),_0x198df2[_0x533c94([0x6f,0x6e])](_0x533c94([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b5a57=>{_0x32c9c1(_0x2b5a57[_0x533c94([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1cd7ba=!0x0,_0x3ebaf3(_0x2b5a57[_0x533c94([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x533c94([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x533c94([0x6c,0x6f,0x77])}),_0x35d998[_0x533c94([0x74,0x68,0x65,0x6e])](()=>{_0x1cd7ba||_0x5bdece(_0x533c94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x149d0f(){return _0x198df2[_0x533c94([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x533c94([0x76,0x69,0x65,0x77])][_0x533c94([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x533c94([0x61,0x75,0x74,0x6f]);}function _0x42aad4(){_0x198df2[_0x533c94([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x533c94([0x76,0x69,0x65,0x77])][_0x533c94([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x533c94([0x61,0x75,0x74,0x6f]);}}function _0x4b6517(_0x455072){const _0x5bef28=[new window[(_0x533c94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4236e0=>setTimeout(_0x4236e0,0x16947adf^_0x291234)),_0x35d998[_0x533c94([0x74,0x68,0x65,0x6e])](()=>new window[(_0x533c94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x340740=>{let _0x44a4fe=0x0;_0x198df2[_0x533c94([0x6d,0x6f,0x64,0x65,0x6c])][_0x533c94([0x6f,0x6e])](_0x533c94([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2af78e,_0x1fbcf7)=>{_0x1fbcf7[0x0][_0x533c94([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44a4fe++,_0x44a4fe==(0x169d45eb^_0x291234)&&(_0x340740(),_0x2af78e[_0x533c94([0x6f,0x66,0x66])]());});}))];return window[_0x533c94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x533c94([0x72,0x61,0x63,0x65])](_0x5bef28)[_0x533c94([0x74,0x68,0x65,0x6e])](()=>_0x455072);}async function _0x537a94(){await _0x35d998,_0x198df2[_0x533c94([0x6d,0x6f,0x64,0x65,0x6c])][_0x533c94([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd73cc9,_0x198df2[_0x533c94([0x6d,0x6f,0x64,0x65,0x6c])][_0x533c94([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd73cc9,_0x198df2[_0x533c94([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x533c94([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3279e7(_0x294a7f){const _0x35d163=_0xcef893();_0x198df2[_0x35d163]=_0x533c94([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x294a7f,_0x294a7f!=_0x533c94([0x56,0x61,0x6c,0x69,0x64])&&_0x537a94();}function _0xcef893(){const _0x273ddd=window[_0x533c94([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x533c94([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x533c94([0x6e,0x6f,0x77])]())[_0x533c94([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x533c94([0x2e]),'');let _0x27348b=_0x533c94([0x4e]);for(let _0x57452d=0x0;_0x57452d<_0x273ddd[_0x533c94([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57452d+=0x2){let _0x471650=window[_0x533c94([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x273ddd[_0x533c94([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57452d,_0x57452d+0x2));_0x471650>=_0x461afb[_0x533c94([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x471650-=_0x461afb[_0x533c94([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x27348b+=_0x461afb[_0x471650];}return _0x27348b;}function _0xdcbca8(){const _0x57e69a=_0x9f6f4e[_0x533c94([0x73,0x70,0x6c,0x69,0x74])](_0x533c94([0x2e]));if(0x3!=_0x57e69a[_0x533c94([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x24917d(_0x57e69a[0x1]);function _0x24917d(_0x432223){const _0x3f6d49=_0x1daf39(_0x432223);return _0x3f6d49&&_0x3e8ca9()?_0x3f6d49:null;function _0x3e8ca9(){const _0x949e79=_0x3f6d49[_0x533c94([0x6a,0x74,0x69])],_0x36cb12=window[_0x533c94([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x949e79[_0x533c94([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x949e79[_0x533c94([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b7f1d={..._0x3f6d49,[_0x533c94([0x6a,0x74,0x69])]:_0x949e79[_0x533c94([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x949e79[_0x533c94([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b7f1d[_0x533c94([0x76,0x63])],_0x143380(_0x4b7f1d)==_0x36cb12;}}}async function _0x3139e3(){let _0x2379c0=!0x0;try{const _0x3271f5=_0x9f6f4e[_0x533c94([0x73,0x70,0x6c,0x69,0x74])](_0x533c94([0x2e])),[_0x20d584,_0x5ebfca,_0x322ba5]=_0x3271f5;return _0x4719cc(_0x20d584),await _0x4ec909(_0x20d584,_0x5ebfca,_0x322ba5),_0x2379c0;}catch(_0x498e99){return!0x1;}function _0x4719cc(_0x33c0d1){const _0x39ef95=_0x1daf39(_0x33c0d1);_0x39ef95&&_0x39ef95[_0x533c94([0x61,0x6c,0x67])]==_0x533c94([0x45,0x53,0x32,0x35,0x36])||(_0x2379c0=!0x1);}async function _0x4ec909(_0x29752b,_0x3292e9,_0x2444af){const _0x37b2c4=window[_0x533c94([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x533c94([0x66,0x72,0x6f,0x6d])](_0x236530(_0x2444af),_0x9dff87=>_0x9dff87[_0x533c94([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3442fe=new window[(_0x533c94([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x533c94([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x29752b+_0x533c94([0x2e])+_0x3292e9),_0x5d8a0a=window[_0x533c94([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x533c94([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d8a0a)return;const _0x6c873b=await _0x5d8a0a[_0x533c94([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x533c94([0x6a,0x77,0x6b]),_0x5263e3,{[_0x533c94([0x6e,0x61,0x6d,0x65])]:_0x533c94([0x45,0x43,0x44,0x53,0x41]),[_0x533c94([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x533c94([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x533c94([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d8a0a[_0x533c94([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x533c94([0x6e,0x61,0x6d,0x65])]:_0x533c94([0x45,0x43,0x44,0x53,0x41]),[_0x533c94([0x68,0x61,0x73,0x68])]:{[_0x533c94([0x6e,0x61,0x6d,0x65])]:_0x533c94([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6c873b,_0x37b2c4,_0x3442fe)||(_0x2379c0=!0x1);}}function _0x1daf39(_0x4403c2){return _0x4403c2[_0x533c94([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x533c94([0x65,0x79]))?JSON[_0x533c94([0x70,0x61,0x72,0x73,0x65])](_0x236530(_0x4403c2)):null;}function _0x236530(_0x1b5ca2){return window[_0x533c94([0x61,0x74,0x6f,0x62])](_0x1b5ca2[_0x533c94([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x533c94([0x2b]))[_0x533c94([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x533c94([0x2f])));}function _0x143380(_0x82b963){let _0x357ce6=0x1505;function _0x25f8c0(_0x2b6337){for(let _0x5cdf7b=0x0;_0x5cdf7b<_0x2b6337[_0x533c94([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cdf7b++){const _0x48d831=_0x2b6337[_0x533c94([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5cdf7b);_0x357ce6=(_0x357ce6<<0x5)+_0x357ce6+_0x48d831,_0x357ce6&=_0x357ce6;}}function _0x2ef1a5(_0x56449a){Array[_0x533c94([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x56449a)?_0x56449a[_0x533c94([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ef1a5):_0x56449a&&typeof _0x56449a==_0x533c94([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x533c94([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x56449a)[_0x533c94([0x73,0x6f,0x72,0x74])]()[_0x533c94([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd7652f,_0x2123a6])=>{_0x25f8c0(_0xd7652f),_0x2ef1a5(_0x2123a6);}):_0x25f8c0(window[_0x533c94([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x56449a));}return _0x2ef1a5(_0x82b963),_0x357ce6>>>0x0;}function _0x327751(_0x4d73af){return _0x4d73af[_0x533c94([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x533c94([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x533c94([0x30]));}function _0x489297(_0x42f843){return _0x42f843[_0x533c94([0x73,0x70,0x6c,0x69,0x74])]('')[_0x533c94([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x533c94([0x6a,0x6f,0x69,0x6e])]('');}function _0xd73cc9(){}function _0x533c94(_0x42beb9){return _0x42beb9['map'](_0x4dfe08=>String['fromCharCode'](_0x4dfe08))['join']('');}_0x3279e7(await _0x1a9ee1());}(this);}['_initSchema'](){const _0x382047=this['editor']['model']['schema'];_0x382047['isRegistered']('imageBlock')&&_0x382047['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x382047['isRegistered']('imageInline')&&_0x382047['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x500dd0=this['editor'];_0x500dd0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x500dd0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xf0a7b=>_0xf0a7b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3ad5e0=_0x500dd0['commands']['get']('replaceImageSource');_0x3ad5e0&&this['listenTo'](_0x3ad5e0,'cleanupImage',(_0x4ee90b,[_0x5735ed,_0x1ff146])=>{_0x5735ed['removeAttribute']('uploadcareImageId',_0x1ff146);});}['_initConfig'](){const _0x3a877a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1013bb=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3c19db(_0x261a41['document'],'uc-config',{..._0x3a877a,'pubkey':_0x1013bb,'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']=_0x4e8adb=>{if('closeMax'==_0x4e8adb)return'#uc-icon-arrow-down';},_0x261a41['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3c19db(_0x261a41['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x261a41['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1a831a=this['editor']['commands']['get']('insertImage');_0x1a831a&&this['listenTo'](_0x1a831a,'execute',()=>{const _0x3fe2da=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3fe2da&&_0x3fe2da['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3fe2da);});});const _0x599b64=this['editor']['commands']['get']('uploadcareImageReplace');_0x599b64&&this['listenTo'](_0x599b64,'execute',()=>{const _0x5b10d3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5b10d3&&_0x5b10d3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5b10d3);});});}}class u extends _0x3b3d22{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32607c){super(_0x32607c),_0x32607c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x4b5396['defineComponents'](_0x4b5396);}}class ta extends _0x182c89{constructor(_0x569ed9){super(_0x569ed9);const t=_0x569ed9['t'],_0x1fc859=this['bindTemplate'],_0x35c086=new _0x60a5d7();_0x35c086['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':[_0x35c086,{'text':_0x1fc859['to']('imageUploadProgress',_0x1b9fec=>t('Loading\x20image...')+'\x20('+(_0x1b9fec||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 _0x182c89{constructor(_0x49de1b){super(_0x49de1b);const t=_0x49de1b['t'];this['set']('errorType',null);const _0xd434e9=new _0xeb584(_0x49de1b);_0xd434e9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xd434e9['withText']=!0x0,_0xd434e9['class']='ck-button-action',_0xd434e9['on']('execute',()=>{this['fire']('retry');}),_0xd434e9['bind']('isVisible')['to'](this,'errorType',_0x48a580=>'NotFound'!==_0x48a580);const _0x4d8a43=new at();_0x4d8a43['content']=et,_0x4d8a43['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x49d4e5=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':[_0x4d8a43,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x49d4e5['to']('errorType',_0x59d020=>t('NotFound'!==_0x59d020?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xd434e9]},{'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 _0x182c89{constructor(_0xc7ece3,_0x4c8369){super(_0xc7ece3);const _0x6be96a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4c8369,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x6be96a['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x504a6f,_0x33103a,_0xc1a84a){super(_0x504a6f),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x504a6f),this['_errorView']=new rt(_0x504a6f),this['_editingView']=new tt(_0x504a6f,_0xc1a84a),this['_focusableView']=new _0x182c89(_0x504a6f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x33103a),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'],_0x1534d2=>{this['_addUploadcareImageEditorListeners'](_0x1534d2);});}),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'](_0x6e35c5,_0x5e942b){const _0x17ed3d='uc-cloud-image-editor',_0x4b1f8a=_0x6e35c5['querySelector'](_0x17ed3d);if(_0x4b1f8a)return _0x5e942b(_0x4b1f8a);const _0x5c91d7=new MutationObserver(_0xd50678=>{const _0x42d25d=_0xd50678['filter'](_0x3b0065=>_0x3b0065['target']===_0x6e35c5&&_0x3b0065['addedNodes']['length']>0x0&&_0x3b0065['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x17ed3d);_0x42d25d['length']&&(_0x5c91d7['disconnect'](),_0x5e942b(_0x42d25d[0x0]['addedNodes'][0x0]));});_0x5c91d7['observe'](_0x6e35c5,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5f7089){_0x5f7089['addEventListener']('apply',_0x3b76c5=>{this['fire']('apply',{'imageSrc':_0x3b76c5['detail']['cdnUrl']});}),_0x5f7089['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class O extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x9d7baf(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x13741b,_0xf7be06,_0x2b943a){super(),this['_editor']=_0x13741b,this['_dialog']=_0xf7be06,this['_imageElement']=_0x2b943a,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 _0x296ae9=this['_imageElement'],_0x21988c=_0x296ae9['getAttribute']('uploadcareImageId'),_0x399d9c=_0x296ae9['getAttribute']('src');if(_0x21988c)await this['_loadImageInfo'](_0x21988c,_0x399d9c);else{if(this['_imageCache']['has'](_0x399d9c)){const _0x2382bc=this['_imageCache']['get'](_0x399d9c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2382bc['url'],this['imageDimension']=_0x2382bc['dimension'],this['imageId']=_0x2382bc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x247eba}=this['_editor'],t=_0x247eba['t'],_0x122ba3=new Z(_0x247eba,this['imageStatus'],this['_attributes']);_0x122ba3['bind']('status')['to'](this,'imageStatus'),_0x122ba3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x122ba3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x122ba3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x122ba3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xb1f3f5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x122ba3,'position':_0x34e3d0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x122ba3['focus']();},'onHide':()=>{_0x122ba3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x92032d=>!F(_0x92032d,_0x122ba3['element'])}});}['_loadImageInfo'](_0x305ef8,_0x508eda){return C['getInfo'](_0x305ef8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x425b84=>{const {width:_0x59c241,height:_0x3b7724}=_0x425b84['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x508eda,this['imageDimension']={'width':_0x59c241,'height':_0x3b7724},this['imageId']=_0x305ef8;})['catch'](_0x1d0c33=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1d0c33['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x11e5d0,_0x42e241){return this['_getImageAsFile'](_0x11e5d0)['then'](_0x222718=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x42e241['signal'],'file':_0x222718,'onProgress':_0x1474f5=>{_0x1474f5&&_0x1474f5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1474f5['value']));}}))['then'](_0xbfd924=>{const {width:_0x3c9ebd,height:_0x3e6c31}=_0xbfd924['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xbfd924['cdnUrl'],this['imageDimension']={'width':_0x3c9ebd,'height':_0x3e6c31},this['imageId']=_0xbfd924['uuid'],this['imageUploadProgress']=null;const _0x40a53f=_0x11e5d0['getAttribute']('src');this['_imageCache']['set'](_0x40a53f,{'id':_0xbfd924['uuid'],'url':_0xbfd924['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5b103d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5b103d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x32d138,_0x5cc026){_0x32d138['on']('apply',(_0x9badb2,_0x5287ed)=>{this['_replaceImage'](_0x5cc026,_0x5287ed['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x32d138['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x32d138['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1e7bb8,_0x5918c7,_0x38e8eb){const _0x2737a2=this['_editor'],{width:_0x5c3000,height:_0x1c754e}=A(_0x5918c7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x58b1ce,imageSources:_0x37b96a}=E(_0x5918c7,_0x5c3000);_0x2737a2['model']['change'](_0x4378fd=>{if('$graveyard'===_0x1e7bb8['root']['rootName']){_0x2737a2['execute']('insertImage',{'imageType':_0x1e7bb8['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1e7bb8['getAttributes']()),'uploadcareImageId':_0x38e8eb,'src':_0x58b1ce,'sources':_0x37b96a,'width':_0x5c3000,'height':_0x1c754e}});const _0x3d1d34=_0x1e7bb8['getChildren']();_0x1e7bb8=_0x2737a2['model']['document']['selection']['getSelectedElement']();for(const _0x58befd of _0x3d1d34)_0x4378fd['append'](_0x4378fd['cloneElement'](_0x58befd),_0x1e7bb8);}else _0x4378fd['setSelection'](_0x1e7bb8,'on'),_0x2737a2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1e7bb8['getAttributes']()),'uploadcareImageId':_0x38e8eb,'src':_0x58b1ce,'sources':_0x37b96a,'width':_0x5c3000,'height':_0x1c754e},_0x1e7bb8);_0x4378fd['setSelection'](_0x1e7bb8,'on');});}async['_getImageAsFile'](_0x3a80c4){const _0x34114a=_0x261a41['window'],_0x1a42da=_0x261a41['document']['location']['href'],_0x592fe5=new _0x34114a['URL'](_0x3a80c4['getAttribute']('src'),_0x1a42da);if('data:'===_0x592fe5['protocol']){const _0x125b70=_0x592fe5['href']['split'](','),_0x2b2261=_0x125b70[0x0]['match'](/:(.*?);/)[0x1],_0x43f49=_0x2b2261['split']('/')[0x1],_0x202ad0=_0x34114a['atob'](_0x125b70[_0x125b70['length']-0x1]);let _0x3b1a39=_0x202ad0['length'];const _0x54f86d=new _0x34114a['Uint8Array'](_0x3b1a39);for(;_0x3b1a39--;)_0x54f86d[_0x3b1a39]=_0x202ad0['charCodeAt'](_0x3b1a39);return new _0x34114a['File']([_0x54f86d],'image.'+_0x43f49,{'type':_0x2b2261});}const _0xdb9c29=_0x592fe5['href']['split']('/'),_0x57f80c=_0xdb9c29[_0xdb9c29['length']-0x1],_0x2dddab=_0x57f80c['split']('.')[0x1];return _0x34114a['fetch'](_0x592fe5['href'])['then'](_0x363b58=>_0x363b58['clone']()['blob']())['then'](_0x2275f5=>new _0x34114a['File']([_0x2275f5],_0x57f80c,{'type':'image/'+_0x2dddab}));}}class V extends _0x1376a6{['imageEditController'];static get['requires'](){return[_0x137a31];}['_isEditable'];constructor(_0x4b3859){super(_0x4b3859),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x29d8dd){const _0x26db78=R(_0x29d8dd);return _0x1692f1=>!(!_0x1692f1||!_0x1692f1['is']('element','imageBlock')&&!_0x1692f1['is']('element','imageInline'))&&(!!_0x1692f1['hasAttribute']('uploadcareImageId')||!!_0x1692f1['hasAttribute']('src')&&_0x26db78(_0x1692f1['getAttribute']('src')));}(_0x4b3859['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x53bbc5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x53bbc5);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x6c0c6e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x6c0c6e&&(_0x6c0c6e['is']('element','imageBlock')||_0x6c0c6e['is']('element','imageInline'))&&(this['imageEditController']=new O(this['editor'],this['editor']['plugins']['get'](_0x137a31),_0x6c0c6e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class X extends _0x1376a6{['refresh'](){const _0x252b07=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x252b07&&(_0x252b07['is']('element','imageBlock')||_0x252b07['is']('element','imageInline')));}['execute'](_0x473191){const _0x5eeb82=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x28c984=>{_0x28c984['setAttributes'](_0x473191,_0x5eeb82),_0x28c984['removeAttribute']('srcset',_0x5eeb82),_0x28c984['removeAttribute']('sizes',_0x5eeb82);});}}class g extends _0x3b3d22{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x27d959,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x349e18}=this;_0x349e18['commands']['add']('uploadcareImageEdit',new V(_0x349e18)),_0x349e18['commands']['add']('uploadcareImageReplace',new X(_0x349e18));}}class j extends _0x3b3d22{['_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 _0x29d3ef=this['editor'];_0x29d3ef['ui']['componentFactory']['add']('uploadcareImageEdit',_0xafee1e=>{const _0xd9d8e8=_0x29d3ef['commands']['get']('uploadcareImageEdit'),_0x15d92d=new _0xeb584(_0xafee1e),t=_0xafee1e['t'];return _0x15d92d['set']({'icon':_0xb1f3f5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x15d92d['bind']('isEnabled')['to'](_0xd9d8e8),_0x15d92d['bind']('isOn')['to'](_0xd9d8e8,'isActive'),this['listenTo'](_0x15d92d,'execute',()=>{_0x29d3ef['execute']('uploadcareImageEdit'),_0x29d3ef['editing']['view']['focus']();}),_0x15d92d;}),this['_initConfig']();}['_initConfig'](){const _0x1f700c=_0x3c19db(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1f700c),this['listenTo'](this['editor'],'destroy',()=>{_0x1f700c['remove']();});}}class P extends _0x3b3d22{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-20250525.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-20250525.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250525.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250525.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250525.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250525.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250525.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250525.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250525.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 _0x3f3269=_0x490f;function _0x490f(_0x206e2c,_0x5a4182){const _0x3ab75e=_0x3ab7();return _0x490f=function(_0x490ff2,_0x35b110){_0x490ff2=_0x490ff2-0xae;let _0x4da872=_0x3ab75e[_0x490ff2];return _0x4da872;},_0x490f(_0x206e2c,_0x5a4182);}(function(_0x1def99,_0xaebe1d){const _0x35ed45=_0x490f,_0xc37968=_0x1def99();while(!![]){try{const _0x549284=parseInt(_0x35ed45(0xb8))/0x1*(parseInt(_0x35ed45(0xd7))/0x2)+-parseInt(_0x35ed45(0xae))/0x3+-parseInt(_0x35ed45(0xfe))/0x4*(parseInt(_0x35ed45(0xe9))/0x5)+parseInt(_0x35ed45(0xd1))/0x6+-parseInt(_0x35ed45(0xf3))/0x7+parseInt(_0x35ed45(0xbd))/0x8+-parseInt(_0x35ed45(0xe4))/0x9;if(_0x549284===_0xaebe1d)break;else _0xc37968['push'](_0xc37968['shift']());}catch(_0x2f44d9){_0xc37968['push'](_0xc37968['shift']());}}}(_0x3ab7,0x2f99e));import{Plugin as _0x227d74}from'ckeditor5/src/core.js';import{Dialog as _0x1c9a61}from'ckeditor5/src/ui.js';function _0x3ab7(){const _0x3434d3=['getAttribute','_initConfig','execute','config','upcast','true','editor','attributeToAttribute','1872315eggnFJ','document','ctxElement','input[uploadcare-file-input]','removeAttribute','47915mTFlgq','body','data-uc-image-id','uploadcare.uploader','conversion','get','closeMax','fromCharCode','selection','elementToAttribute','92085WvdmxX','appendChild','imageInline','insertImage','downcast','_configElement','_initConversion','_initSchema','#uc-icon-arrow-down','view','locale','40RFzxTl','init','contentLanguage','460995dEjgOA','uploadcareImageId','_initCtx','UploadcareEditing','isOfficialPlugin','listenTo','configElement','schema','extend','render','1fUjOwW','model','replaceImageSource','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uc-config','558688opqgvk','iconHrefResolver','destroy','pluginName','commands','once','isRegistered','PictureEditing','join','_initImageProcessingIndicator','imageBlock','cleanupImage','_ctxElement','editing','isPremiumPlugin','href','uploadcare.pubkey','remove','for','uc-upload-ctx-provider','2065776VrjCiS','uploader','requires','querySelector','add','uploadcareImageReplace','503054qwQpoS','getSelectedElement','uploadcare','map','afterInit'];_0x3ab7=function(){return _0x3434d3;};return _0x3ab7();}import{createElement as _0x2802cf,global as _0x358b59,uid as _0x17eedd}from'ckeditor5/src/utils.js';import _0x458b58 from'./uploadcarecommand.js';import _0x136a52 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4cc0f8}from'./utils/editingutils.js';export default class i extends _0x227d74{[_0x3f3269(0xf8)]=null;[_0x3f3269(0xc9)]=null;static get[_0x3f3269(0xc0)](){const _0x3ca331=_0x3f3269;return _0x3ca331(0xb1);}static get[_0x3f3269(0xd3)](){const _0x434a06=_0x3f3269;return[_0x434a06(0xc4),_0x136a52,_0x1c9a61];}static get[_0x3f3269(0xb2)](){return!0x0;}static get[_0x3f3269(0xcb)](){return!0x0;}get[_0x3f3269(0xb4)](){const _0xe0ad54=_0x3f3269;return this[_0xe0ad54(0xf8)];}get[_0x3f3269(0xe6)](){const _0x206ac7=_0x3f3269;return this[_0x206ac7(0xc9)];}[_0x3f3269(0xff)](){const _0x54cf19=_0x3f3269,_0x5cef3f=this[_0x54cf19(0xe2)];_0x5cef3f[_0x54cf19(0xc1)][_0x54cf19(0xd5)](_0x54cf19(0xd9),new _0x458b58(_0x5cef3f));}[_0x3f3269(0xdb)](){const _0x5c5ac0=_0x3f3269;this[_0x5c5ac0(0xfa)](),this[_0x5c5ac0(0xf9)](),this[_0x5c5ac0(0xdd)](),this[_0x5c5ac0(0xb0)](),this[_0x5c5ac0(0xc6)](),this[_0x5c5ac0(0xb3)](this[_0x5c5ac0(0xe2)],_0x5c5ac0(0xbf),()=>{const _0x305c3b=_0x5c5ac0;this[_0x305c3b(0xf8)]&&(this[_0x305c3b(0xf8)][_0x305c3b(0xce)](),this[_0x305c3b(0xf8)]=null),this[_0x305c3b(0xc9)]&&(this[_0x305c3b(0xc9)][_0x305c3b(0xce)](),this[_0x305c3b(0xc9)]=null);const _0x3c4a15=_0x358b59[_0x305c3b(0xe5)][_0x305c3b(0xd4)](_0x305c3b(0xe7));_0x3c4a15&&_0x3c4a15[_0x305c3b(0xce)]();}),async function(_0x694b50){const _0x17ccf0=_0x14de27([0x32,0x76,0x4d,0x4b,0x51,0x44,0x49,0x6d,0x56,0x77,0x34,0x42,0x6f,0x70,0x4c,0x30,0x5a,0x50,0x57,0x53,0x65,0x63,0x4e,0x6b,0x6e,0x35,0x39,0x45,0x72,0x62,0x4f,0x6a,0x36,0x59,0x54,0x73,0x61,0x48,0x55,0x38,0x69,0x58,0x47,0x46,0x79,0x37,0x31,0x68,0x64,0x71,0x78,0x66,0x67,0x52,0x33,0x75,0x43,0x4a,0x7a,0x74,0x41,0x6c]),_0x2e6d4b=0x10876822,_0x237040=0x1080008a^_0x2e6d4b,_0x58c5eb=window[_0x14de27([0x44,0x61,0x74,0x65])][_0x14de27([0x6e,0x6f,0x77])](),_0x3e0411=_0x694b50[_0x14de27([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x42c071=new window[(_0x14de27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38596e=>{_0x3e0411[_0x14de27([0x6f,0x6e,0x63,0x65])](_0x14de27([0x72,0x65,0x61,0x64,0x79]),_0x38596e);}),_0x5e60fc={[_0x14de27([0x6b,0x74,0x79])]:_0x14de27([0x45,0x43]),[_0x14de27([0x75,0x73,0x65])]:_0x14de27([0x73,0x69,0x67]),[_0x14de27([0x63,0x72,0x76])]:_0x14de27([0x50,0x2d,0x32,0x35,0x36]),[_0x14de27([0x78])]:_0x14de27([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]),[_0x14de27([0x79])]:_0x14de27([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]),[_0x14de27([0x61,0x6c,0x67])]:_0x14de27([0x45,0x53,0x32,0x35,0x36])},_0x5b9e03=_0x3e0411[_0x14de27([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14de27([0x67,0x65,0x74])](_0x14de27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4566c6(){let _0x4a39f5,_0xe460b=null,_0x1e4ef5=null;try{if(_0x5b9e03==_0x14de27([0x47,0x50,0x4c]))return _0x14de27([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4a39f5=_0x117d0e(),!_0x4a39f5)return _0x14de27([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4a39f5[_0x14de27([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e4ef5=_0x306121(_0x4a39f5[_0x14de27([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4a39f5[_0x14de27([0x6a,0x74,0x69])])),await _0x5ae400()?_0x5c5ce2()?_0x47188e()?_0x14de27([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x42942d()?(_0x4a39f5[_0x14de27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14de27([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe460b=_0x3da08c(_0x14de27([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4a39f5[_0x14de27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14de27([0x74,0x72,0x69,0x61,0x6c])&&(_0xe460b=_0x3da08c(_0x14de27([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5738e8()):_0x14de27([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14de27([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14de27([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x53aee5){return _0x14de27([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47188e(){const _0x387a09=[_0x14de27([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14de27([0x74,0x72,0x69,0x61,0x6c])][_0x14de27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a39f5[_0x14de27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x58c5eb/0x3e8:0xe10*_0x237040;return _0x4a39f5[_0x14de27([0x65,0x78,0x70])]<_0x387a09;}function _0x5c5ce2(){const _0x490e06=_0x4a39f5[_0x14de27([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x490e06&&(!!_0x490e06[_0x14de27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14de27([0x2a]))||!!_0x490e06[_0x14de27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14de27([0x55,0x50,0x4c,0x43])));}function _0x42942d(){const _0x328d2d=_0x490f,_0x92a459=_0x4a39f5[_0x14de27([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x92a459||0x0==_0x92a459[_0x14de27([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x151745}=new URL(window[_0x14de27([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x328d2d(0xcc)]);if(_0x92a459[_0x14de27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x151745))return!0x0;const _0xa7583c=_0x151745[_0x14de27([0x73,0x70,0x6c,0x69,0x74])](_0x14de27([0x2e]));return _0x92a459[_0x14de27([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2fd6ab=>_0x2fd6ab[_0x14de27([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14de27([0x2a])))[_0x14de27([0x6d,0x61,0x70])](_0x42a48d=>_0x42a48d[_0x14de27([0x73,0x70,0x6c,0x69,0x74])](_0x14de27([0x2e])))[_0x14de27([0x73,0x6f,0x6d,0x65])](_0x1693fc=>_0xa7583c[_0x14de27([0x65,0x76,0x65,0x72,0x79])]((_0x3da4c7,_0x286d4e)=>_0x1693fc[_0x286d4e]===_0x3da4c7||_0x1693fc[_0x286d4e]===_0x14de27([0x2a])));}function _0x5738e8(){return _0xe460b&&_0x1e4ef5?new window[(_0x14de27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a12a3,_0x27dd2c)=>{_0xe460b[_0x14de27([0x74,0x68,0x65,0x6e])](_0x5a12a3,_0x27dd2c),_0x1e4ef5[_0x14de27([0x74,0x68,0x65,0x6e])](_0x5dd629=>{_0x5dd629!=_0x14de27([0x56,0x61,0x6c,0x69,0x64])&&_0x5a12a3(_0x5dd629);},_0x27dd2c);}):_0xe460b||_0x1e4ef5||_0x14de27([0x56,0x61,0x6c,0x69,0x64]);}}function _0x306121(_0x5218d5,_0x3aa1e4){return new window[(_0x14de27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ea6ba=>{if(_0x6ddfdf())return _0x3ea6ba(_0x14de27([0x56,0x61,0x6c,0x69,0x64]));_0x348b48(),_0x3e0411[_0x14de27([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14de27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x463959=!0x1;const _0x392346=_0x17eedd();function _0x332a45(_0x512b86){return!!_0x512b86&&(typeof _0x512b86===_0x14de27([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x512b86===_0x14de27([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x512b86[_0x14de27([0x74,0x68,0x65,0x6e])]===_0x14de27([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x512b86[_0x14de27([0x63,0x61,0x74,0x63,0x68])]===_0x14de27([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x32aa3b(_0x130f8b){_0x2a5995(_0x130f8b)[_0x14de27([0x74,0x68,0x65,0x6e])](_0x46684e=>{if(!_0x46684e||_0x46684e[_0x14de27([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14de27([0x6f,0x6b]))return _0x14de27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd86249(_0x399eed(_0x392346+_0x3aa1e4))!=_0x46684e[_0x14de27([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14de27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14de27([0x56,0x61,0x6c,0x69,0x64]);})[_0x14de27([0x74,0x68,0x65,0x6e])](_0x2cd04e=>(_0x46f771(),_0x2cd04e),()=>{const _0x42d814=_0x247439();return null==_0x42d814?(_0x46f771(),_0x14de27([0x56,0x61,0x6c,0x69,0x64])):_0x14de27(_0x58c5eb-_0x42d814>(0x348bec22^_0x2e6d4b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14de27([0x74,0x68,0x65,0x6e])](_0x3ea6ba)[_0x14de27([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ea6ba(_0x14de27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x368547=0x10b186a2^_0x2e6d4b;function _0x46f771(){const _0x1d93e2=_0x14de27([0x6c,0x6c,0x63,0x74,0x2d])+_0xd86249(_0x399eed(_0x5218d5)),_0x46d29b=_0x411c62(_0xd86249(window[_0x14de27([0x4d,0x61,0x74,0x68])][_0x14de27([0x63,0x65,0x69,0x6c])](_0x58c5eb/_0x368547)));window[_0x14de27([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14de27([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d93e2,_0x46d29b);}function _0x247439(){const _0xe3d81d=_0x14de27([0x6c,0x6c,0x63,0x74,0x2d])+_0xd86249(_0x399eed(_0x5218d5)),_0x4fa606=window[_0x14de27([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14de27([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe3d81d);return _0x4fa606?window[_0x14de27([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x411c62(_0x4fa606),0x10)*_0x368547:null;}function _0x2a5995(_0xe9c2a6){return new window[(_0x14de27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x23a812,_0x276af7)=>{_0xe9c2a6[_0x14de27([0x74,0x68,0x65,0x6e])](_0x23a812,_0x276af7),window[_0x14de27([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x276af7,0x1086bce2^_0x2e6d4b);});}}_0x3e0411[_0x14de27([0x6f,0x6e])](_0x14de27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21e1b2,_0x5a3e84)=>{if(_0x5a3e84[0x0]!=_0x5218d5)return _0x3ea6ba(_0x14de27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a3e84[0x1]={..._0x5a3e84[0x1],[_0x14de27([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x392346};},{[_0x14de27([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14de27([0x68,0x69,0x67,0x68])}),_0x3e0411[_0x14de27([0x6f,0x6e])](_0x14de27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1f36e5=>{_0x332a45(_0x1f36e5[_0x14de27([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x463959=!0x0,_0x32aa3b(_0x1f36e5[_0x14de27([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14de27([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14de27([0x6c,0x6f,0x77])}),_0x42c071[_0x14de27([0x74,0x68,0x65,0x6e])](()=>{_0x463959||_0x3ea6ba(_0x14de27([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6ddfdf(){return _0x3e0411[_0x14de27([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14de27([0x76,0x69,0x65,0x77])][_0x14de27([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14de27([0x61,0x75,0x74,0x6f]);}function _0x348b48(){_0x3e0411[_0x14de27([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14de27([0x76,0x69,0x65,0x77])][_0x14de27([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14de27([0x61,0x75,0x74,0x6f]);}}function _0x3da08c(_0x3f1605){const _0x4c5538=[new window[(_0x14de27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a9245=>setTimeout(_0x2a9245,0x108e56ee^_0x2e6d4b)),_0x42c071[_0x14de27([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14de27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x99ac7a=>{let _0x29f22e=0x0;_0x3e0411[_0x14de27([0x6d,0x6f,0x64,0x65,0x6c])][_0x14de27([0x6f,0x6e])](_0x14de27([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5867f0,_0x57b4c1)=>{_0x57b4c1[0x0][_0x14de27([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29f22e++,_0x29f22e==(0x108769da^_0x2e6d4b)&&(_0x99ac7a(),_0x5867f0[_0x14de27([0x6f,0x66,0x66])]());});}))];return window[_0x14de27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14de27([0x72,0x61,0x63,0x65])](_0x4c5538)[_0x14de27([0x74,0x68,0x65,0x6e])](()=>_0x3f1605);}async function _0x587b52(){await _0x42c071,_0x3e0411[_0x14de27([0x6d,0x6f,0x64,0x65,0x6c])][_0x14de27([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f338e,_0x3e0411[_0x14de27([0x6d,0x6f,0x64,0x65,0x6c])][_0x14de27([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f338e,_0x3e0411[_0x14de27([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14de27([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2383cb(_0x5e0f37){const _0x2dd245=_0x1b6079();_0x3e0411[_0x2dd245]=_0x14de27([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e0f37,_0x5e0f37!=_0x14de27([0x56,0x61,0x6c,0x69,0x64])&&_0x587b52();}function _0x1b6079(){const _0x5f4058=window[_0x14de27([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14de27([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14de27([0x6e,0x6f,0x77])]())[_0x14de27([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14de27([0x2e]),'');let _0x3fe7fb=_0x14de27([0x76]);for(let _0x1cc103=0x0;_0x1cc103<_0x5f4058[_0x14de27([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cc103+=0x2){let _0x318773=window[_0x14de27([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f4058[_0x14de27([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1cc103,_0x1cc103+0x2));_0x318773>=_0x17ccf0[_0x14de27([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x318773-=_0x17ccf0[_0x14de27([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3fe7fb+=_0x17ccf0[_0x318773];}return _0x3fe7fb;}function _0x117d0e(){const _0x30f379=_0x5b9e03[_0x14de27([0x73,0x70,0x6c,0x69,0x74])](_0x14de27([0x2e]));if(0x3!=_0x30f379[_0x14de27([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x409708(_0x30f379[0x1]);function _0x409708(_0x3d185c){const _0x566f0f=_0x3c569a(_0x3d185c);return _0x566f0f&&_0x378928()?_0x566f0f:null;function _0x378928(){const _0x4c5855=_0x566f0f[_0x14de27([0x6a,0x74,0x69])],_0x22693a=window[_0x14de27([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c5855[_0x14de27([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c5855[_0x14de27([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x27ae57={..._0x566f0f,[_0x14de27([0x6a,0x74,0x69])]:_0x4c5855[_0x14de27([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c5855[_0x14de27([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x27ae57[_0x14de27([0x76,0x63])],_0x399eed(_0x27ae57)==_0x22693a;}}}async function _0x5ae400(){let _0x59db57=!0x0;try{const _0x30f7d8=_0x5b9e03[_0x14de27([0x73,0x70,0x6c,0x69,0x74])](_0x14de27([0x2e])),[_0xe4c6d9,_0x32d746,_0x22f956]=_0x30f7d8;return _0x53f75c(_0xe4c6d9),await _0x38ec70(_0xe4c6d9,_0x32d746,_0x22f956),_0x59db57;}catch(_0xfcc33){return!0x1;}function _0x53f75c(_0x219ed6){const _0x26bc96=_0x3c569a(_0x219ed6);_0x26bc96&&_0x26bc96[_0x14de27([0x61,0x6c,0x67])]==_0x14de27([0x45,0x53,0x32,0x35,0x36])||(_0x59db57=!0x1);}async function _0x38ec70(_0x2afa74,_0x5ac19c,_0x492c93){const _0x46a250=window[_0x14de27([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14de27([0x66,0x72,0x6f,0x6d])](_0x27c66a(_0x492c93),_0x4f2cb7=>_0x4f2cb7[_0x14de27([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2e940e=new window[(_0x14de27([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14de27([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2afa74+_0x14de27([0x2e])+_0x5ac19c),_0x14c2e1=window[_0x14de27([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14de27([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14c2e1)return;const _0x36d9ba=await _0x14c2e1[_0x14de27([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14de27([0x6a,0x77,0x6b]),_0x5e60fc,{[_0x14de27([0x6e,0x61,0x6d,0x65])]:_0x14de27([0x45,0x43,0x44,0x53,0x41]),[_0x14de27([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14de27([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14de27([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14c2e1[_0x14de27([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14de27([0x6e,0x61,0x6d,0x65])]:_0x14de27([0x45,0x43,0x44,0x53,0x41]),[_0x14de27([0x68,0x61,0x73,0x68])]:{[_0x14de27([0x6e,0x61,0x6d,0x65])]:_0x14de27([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x36d9ba,_0x46a250,_0x2e940e)||(_0x59db57=!0x1);}}function _0x3c569a(_0x21d12c){return _0x21d12c[_0x14de27([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14de27([0x65,0x79]))?JSON[_0x14de27([0x70,0x61,0x72,0x73,0x65])](_0x27c66a(_0x21d12c)):null;}function _0x27c66a(_0x558777){return window[_0x14de27([0x61,0x74,0x6f,0x62])](_0x558777[_0x14de27([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14de27([0x2b]))[_0x14de27([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14de27([0x2f])));}function _0x399eed(_0x2e120a){let _0x472131=0x1505;function _0x328068(_0x3275ca){for(let _0x4f2383=0x0;_0x4f2383<_0x3275ca[_0x14de27([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f2383++){const _0x2390ce=_0x3275ca[_0x14de27([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f2383);_0x472131=(_0x472131<<0x5)+_0x472131+_0x2390ce,_0x472131&=_0x472131;}}function _0x465931(_0x42f896){Array[_0x14de27([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x42f896)?_0x42f896[_0x14de27([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x465931):_0x42f896&&typeof _0x42f896==_0x14de27([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14de27([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x42f896)[_0x14de27([0x73,0x6f,0x72,0x74])]()[_0x14de27([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x215938,_0x3575d1])=>{_0x328068(_0x215938),_0x465931(_0x3575d1);}):_0x328068(window[_0x14de27([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x42f896));}return _0x465931(_0x2e120a),_0x472131>>>0x0;}function _0xd86249(_0xdc5a5e){return _0xdc5a5e[_0x14de27([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14de27([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14de27([0x30]));}function _0x411c62(_0x1d3b05){return _0x1d3b05[_0x14de27([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14de27([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14de27([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f338e(){}function _0x14de27(_0x3ea6df){const _0x5e51ab=_0x490f;return _0x3ea6df[_0x5e51ab(0xda)](_0x58ba9f=>String[_0x5e51ab(0xf0)](_0x58ba9f))[_0x5e51ab(0xc5)]('');}_0x2383cb(await _0x4566c6());}(this);}[_0x3f3269(0xfa)](){const _0x418b54=_0x3f3269,_0x33e253=this[_0x418b54(0xe2)][_0x418b54(0xb9)][_0x418b54(0xb5)];_0x33e253[_0x418b54(0xc3)](_0x418b54(0xc7))&&_0x33e253[_0x418b54(0xb6)](_0x418b54(0xc7),{'allowAttributes':[_0x418b54(0xaf)]}),_0x33e253[_0x418b54(0xc3)](_0x418b54(0xf5))&&_0x33e253[_0x418b54(0xb6)](_0x418b54(0xf5),{'allowAttributes':[_0x418b54(0xaf)]});}[_0x3f3269(0xf9)](){const _0x52c482=_0x3f3269,_0x507346=this[_0x52c482(0xe2)];_0x507346[_0x52c482(0xed)][_0x52c482(0xcf)](_0x52c482(0xf7))[_0x52c482(0xe3)]({'model':_0x52c482(0xaf),'view':_0x52c482(0xeb)}),_0x507346[_0x52c482(0xed)][_0x52c482(0xcf)](_0x52c482(0xe0))[_0x52c482(0xf2)]({'model':{'key':_0x52c482(0xaf),'value':_0x559abc=>_0x559abc[_0x52c482(0xdc)](_0x52c482(0xeb))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x17c83a=_0x507346[_0x52c482(0xc1)][_0x52c482(0xee)](_0x52c482(0xba));_0x17c83a&&this[_0x52c482(0xb3)](_0x17c83a,_0x52c482(0xc8),(_0x4ef120,[_0x46ba4f,_0x3a09b1])=>{const _0x5ab884=_0x52c482;_0x46ba4f[_0x5ab884(0xe8)](_0x5ab884(0xaf),_0x3a09b1);});}[_0x3f3269(0xdd)](){const _0x1a6b57=_0x3f3269,_0x59169c=this[_0x1a6b57(0xe2)][_0x1a6b57(0xdf)][_0x1a6b57(0xee)](_0x1a6b57(0xec))||{},_0x2ee9d2=this[_0x1a6b57(0xe2)][_0x1a6b57(0xdf)][_0x1a6b57(0xee)](_0x1a6b57(0xcd))||'';this[_0x1a6b57(0xf8)]=_0x2802cf(_0x358b59[_0x1a6b57(0xe5)],_0x1a6b57(0xbc),{..._0x59169c,'pubkey':_0x2ee9d2,'ctx-name':_0x1a6b57(0xd2),'sourceList':'','imgOnly':_0x1a6b57(0xe1),'removeCopyright':_0x1a6b57(0xe1),'localeName':this[_0x1a6b57(0xe2)][_0x1a6b57(0xfd)][_0x1a6b57(0x100)],'externalSourcesEmbedCss':_0x1a6b57(0xbb)}),this[_0x1a6b57(0xf8)][_0x1a6b57(0xbe)]=_0x32c908=>{const _0x356257=_0x1a6b57;if(_0x356257(0xef)==_0x32c908)return _0x356257(0xfb);},_0x358b59[_0x1a6b57(0xe5)][_0x1a6b57(0xea)][_0x1a6b57(0xf4)](this[_0x1a6b57(0xf8)]);}[_0x3f3269(0xb0)](){const _0x32c52d=_0x3f3269;this[_0x32c52d(0xc9)]=_0x2802cf(_0x358b59[_0x32c52d(0xe5)],_0x32c52d(0xd0),{'ctx-name':_0x32c52d(0xd2)}),_0x358b59[_0x32c52d(0xe5)][_0x32c52d(0xea)][_0x32c52d(0xf4)](this[_0x32c52d(0xc9)]);}[_0x3f3269(0xc6)](){const _0x2577d8=_0x3f3269,_0x3574c6=this[_0x2577d8(0xe2)][_0x2577d8(0xc1)][_0x2577d8(0xee)](_0x2577d8(0xf6));_0x3574c6&&this[_0x2577d8(0xb3)](_0x3574c6,_0x2577d8(0xde),()=>{const _0xb8fe22=_0x2577d8,_0x3e3a87=this[_0xb8fe22(0xe2)][_0xb8fe22(0xb9)][_0xb8fe22(0xe5)][_0xb8fe22(0xf1)][_0xb8fe22(0xd8)]();_0x3e3a87&&_0x3e3a87[_0xb8fe22(0xdc)](_0xb8fe22(0xaf))&&this[_0xb8fe22(0xe2)][_0xb8fe22(0xca)][_0xb8fe22(0xfc)][_0xb8fe22(0xc2)](_0xb8fe22(0xb7),()=>{const _0x25ab55=_0xb8fe22;_0x4cc0f8(this[_0x25ab55(0xe2)],_0x3e3a87);});});const _0x3ef4a6=this[_0x2577d8(0xe2)][_0x2577d8(0xc1)][_0x2577d8(0xee)](_0x2577d8(0xd6));_0x3ef4a6&&this[_0x2577d8(0xb3)](_0x3ef4a6,_0x2577d8(0xde),()=>{const _0x304653=_0x2577d8,_0x1e5e7e=this[_0x304653(0xe2)][_0x304653(0xb9)][_0x304653(0xe5)][_0x304653(0xf1)][_0x304653(0xd8)]();_0x1e5e7e&&_0x1e5e7e[_0x304653(0xdc)](_0x304653(0xaf))&&this[_0x304653(0xe2)][_0x304653(0xca)][_0x304653(0xfc)][_0x304653(0xc2)](_0x304653(0xb7),()=>{const _0x4eecf8=_0x304653;_0x4cc0f8(this[_0x4eecf8(0xe2)],_0x1e5e7e);});});}}
|
|
23
|
+
const _0x29e3cc=_0xfe76;(function(_0x2f4661,_0x3deff0){const _0x486844=_0xfe76,_0x309c19=_0x2f4661();while(!![]){try{const _0x168555=parseInt(_0x486844(0x1b5))/0x1+-parseInt(_0x486844(0x1e9))/0x2+-parseInt(_0x486844(0x1d1))/0x3+-parseInt(_0x486844(0x1ef))/0x4*(parseInt(_0x486844(0x1c4))/0x5)+-parseInt(_0x486844(0x1c9))/0x6*(-parseInt(_0x486844(0x1d5))/0x7)+-parseInt(_0x486844(0x1ca))/0x8*(-parseInt(_0x486844(0x1c1))/0x9)+-parseInt(_0x486844(0x1b7))/0xa*(-parseInt(_0x486844(0x1f9))/0xb);if(_0x168555===_0x3deff0)break;else _0x309c19['push'](_0x309c19['shift']());}catch(_0x4e3876){_0x309c19['push'](_0x309c19['shift']());}}}(_0x25ee,0x58d37));import{Plugin as _0x2aada5}from'ckeditor5/src/core.js';import{Dialog as _0x6de04d}from'ckeditor5/src/ui.js';import{createElement as _0x29c041,global as _0x1af7f9,uid as _0x35652c}from'ckeditor5/src/utils.js';import _0x371731 from'./uploadcarecommand.js';function _0xfe76(_0x4423f6,_0xb6204f){const _0x25ee12=_0x25ee();return _0xfe76=function(_0xfe76e9,_0x275a5f){_0xfe76e9=_0xfe76e9-0x1b3;let _0x25560e=_0x25ee12[_0xfe76e9];return _0x25560e;},_0xfe76(_0x4423f6,_0xb6204f);}import _0x505d87 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x522da5}from'./utils/editingutils.js';function _0x25ee(){const _0x4ffe96=['once','extend','#uc-icon-arrow-down','getSelectedElement','12cbNgTz','142504fnNHuY','commands','closeMax','true','execute','upcast','uc-config','2169456BfPjLL','document','listenTo','afterInit','2203964tHXGHw','editing','map','ctxElement','uploadcareImageId','imageBlock','removeAttribute','_initConversion','isRegistered','configElement','schema','model','getAttribute','destroy','PictureEditing','_initConfig','editor','replaceImageSource','uploadcare.pubkey','\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','1408404HSCkIy','render','data-uc-image-id','pluginName','downcast','add','4yZGuLg','locale','uploadcareImageReplace','attributeToAttribute','_initImageProcessingIndicator','href','appendChild','config','_ctxElement','view','22MhuXvf','init','_initCtx','UploadcareEditing','isOfficialPlugin','querySelector','join','uploadcare','fromCharCode','requires','cleanupImage','_configElement','isPremiumPlugin','input[uploadcare-file-input]','uc-upload-ctx-provider','get','iconHrefResolver','11750ntkuvH','uploader','8506870xGjypV','contentLanguage','_initSchema','selection','for','body','remove','imageInline','conversion','uploadcare.uploader','27peomlN','elementToAttribute','insertImage','3025410RCxBbc'];_0x25ee=function(){return _0x4ffe96;};return _0x25ee();}export default class i extends _0x2aada5{[_0x29e3cc(0x204)]=null;[_0x29e3cc(0x1f7)]=null;static get[_0x29e3cc(0x1ec)](){const _0x598999=_0x29e3cc;return _0x598999(0x1fc);}static get[_0x29e3cc(0x202)](){const _0x6bf219=_0x29e3cc;return[_0x6bf219(0x1e3),_0x505d87,_0x6de04d];}static get[_0x29e3cc(0x1fd)](){return!0x0;}static get[_0x29e3cc(0x205)](){return!0x0;}get[_0x29e3cc(0x1de)](){const _0x4259f5=_0x29e3cc;return this[_0x4259f5(0x204)];}get[_0x29e3cc(0x1d8)](){const _0x601645=_0x29e3cc;return this[_0x601645(0x1f7)];}[_0x29e3cc(0x1fa)](){const _0x83e4c3=_0x29e3cc,_0x72ab9a=this[_0x83e4c3(0x1e5)];_0x72ab9a[_0x83e4c3(0x1cb)][_0x83e4c3(0x1ee)](_0x83e4c3(0x200),new _0x371731(_0x72ab9a));}[_0x29e3cc(0x1d4)](){const _0x3a231a=_0x29e3cc;this[_0x3a231a(0x1b9)](),this[_0x3a231a(0x1dc)](),this[_0x3a231a(0x1e4)](),this[_0x3a231a(0x1fb)](),this[_0x3a231a(0x1f3)](),this[_0x3a231a(0x1d3)](this[_0x3a231a(0x1e5)],_0x3a231a(0x1e2),()=>{const _0x297e53=_0x3a231a;this[_0x297e53(0x204)]&&(this[_0x297e53(0x204)][_0x297e53(0x1bd)](),this[_0x297e53(0x204)]=null),this[_0x297e53(0x1f7)]&&(this[_0x297e53(0x1f7)][_0x297e53(0x1bd)](),this[_0x297e53(0x1f7)]=null);const _0x149283=_0x1af7f9[_0x297e53(0x1d2)][_0x297e53(0x1fe)](_0x297e53(0x206));_0x149283&&_0x149283[_0x297e53(0x1bd)]();}),async function(_0x538087){const _0x186e47=_0x5a413e([0x4e,0x42,0x6c,0x30,0x73,0x78,0x71,0x52,0x44,0x58,0x76,0x72,0x6e,0x6a,0x54,0x68,0x38,0x6d,0x79,0x69,0x4f,0x74,0x50,0x70,0x43,0x36,0x59,0x65,0x32,0x48,0x75,0x64,0x33,0x53,0x56,0x66,0x4c,0x39,0x49,0x34,0x61,0x63,0x45,0x51,0x77,0x31,0x4b,0x6b,0x46,0x55,0x4a,0x37,0x41,0x6f,0x5a,0x35,0x47,0x4d,0x62,0x7a,0x57,0x67]),_0x388419=0x169d4413,_0x63b9db=0x169a2ccb^_0x388419,_0x19a794=window[_0x5a413e([0x44,0x61,0x74,0x65])][_0x5a413e([0x6e,0x6f,0x77])](),_0x422adf=_0x538087[_0x5a413e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c94d7=new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f547a=>{_0x422adf[_0x5a413e([0x6f,0x6e,0x63,0x65])](_0x5a413e([0x72,0x65,0x61,0x64,0x79]),_0x3f547a);}),_0x49ec49={[_0x5a413e([0x6b,0x74,0x79])]:_0x5a413e([0x45,0x43]),[_0x5a413e([0x75,0x73,0x65])]:_0x5a413e([0x73,0x69,0x67]),[_0x5a413e([0x63,0x72,0x76])]:_0x5a413e([0x50,0x2d,0x32,0x35,0x36]),[_0x5a413e([0x78])]:_0x5a413e([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]),[_0x5a413e([0x79])]:_0x5a413e([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]),[_0x5a413e([0x61,0x6c,0x67])]:_0x5a413e([0x45,0x53,0x32,0x35,0x36])},_0x49b391=_0x422adf[_0x5a413e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a413e([0x67,0x65,0x74])](_0x5a413e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x145ec3(){let _0x69b0c4,_0x2fe12e=null,_0x2b5142=null;try{if(_0x49b391==_0x5a413e([0x47,0x50,0x4c]))return _0x5a413e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x69b0c4=_0x39c684(),!_0x69b0c4)return _0x5a413e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x69b0c4[_0x5a413e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b5142=_0xfc60df(_0x69b0c4[_0x5a413e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x69b0c4[_0x5a413e([0x6a,0x74,0x69])])),await _0x3a1dd3()?_0x579ab7()?_0x2270bc()?_0x5a413e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a8723()?(_0x69b0c4[_0x5a413e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a413e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fe12e=_0x1950cb(_0x5a413e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x69b0c4[_0x5a413e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a413e([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fe12e=_0x1950cb(_0x5a413e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16077c()):_0x5a413e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a413e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a413e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x11c0e6){return _0x5a413e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2270bc(){const _0x1670e0=[_0x5a413e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a413e([0x74,0x72,0x69,0x61,0x6c])][_0x5a413e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x69b0c4[_0x5a413e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19a794/0x3e8:0xe10*_0x63b9db;return _0x69b0c4[_0x5a413e([0x65,0x78,0x70])]<_0x1670e0;}function _0x579ab7(){const _0xe905c8=_0x69b0c4[_0x5a413e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xe905c8&&(!!_0xe905c8[_0x5a413e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a413e([0x2a]))||!!_0xe905c8[_0x5a413e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a413e([0x55,0x50,0x4c,0x43])));}function _0x5a8723(){const _0x5b9bb2=_0xfe76,_0x555e4a=_0x69b0c4[_0x5a413e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x555e4a||0x0==_0x555e4a[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x419c3a}=new URL(window[_0x5a413e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5b9bb2(0x1f4)]);if(_0x555e4a[_0x5a413e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x419c3a))return!0x0;const _0x320e5f=_0x419c3a[_0x5a413e([0x73,0x70,0x6c,0x69,0x74])](_0x5a413e([0x2e]));return _0x555e4a[_0x5a413e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d7a0d=>_0x3d7a0d[_0x5a413e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a413e([0x2a])))[_0x5a413e([0x6d,0x61,0x70])](_0x12616e=>_0x12616e[_0x5a413e([0x73,0x70,0x6c,0x69,0x74])](_0x5a413e([0x2e])))[_0x5a413e([0x73,0x6f,0x6d,0x65])](_0x44222d=>_0x320e5f[_0x5a413e([0x65,0x76,0x65,0x72,0x79])]((_0x2e59b5,_0x1424bc)=>_0x44222d[_0x1424bc]===_0x2e59b5||_0x44222d[_0x1424bc]===_0x5a413e([0x2a])));}function _0x16077c(){return _0x2fe12e&&_0x2b5142?new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b58e6,_0x14ac98)=>{_0x2fe12e[_0x5a413e([0x74,0x68,0x65,0x6e])](_0x2b58e6,_0x14ac98),_0x2b5142[_0x5a413e([0x74,0x68,0x65,0x6e])](_0x5c0f63=>{_0x5c0f63!=_0x5a413e([0x56,0x61,0x6c,0x69,0x64])&&_0x2b58e6(_0x5c0f63);},_0x14ac98);}):_0x2fe12e||_0x2b5142||_0x5a413e([0x56,0x61,0x6c,0x69,0x64]);}}function _0xfc60df(_0x47a6be,_0x313548){return new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18e453=>{if(_0x43faa0())return _0x18e453(_0x5a413e([0x56,0x61,0x6c,0x69,0x64]));_0x32c803(),_0x422adf[_0x5a413e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a413e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x410416=!0x1;const _0x324c22=_0x35652c();function _0x26b822(_0x1e3268){return!!_0x1e3268&&(typeof _0x1e3268===_0x5a413e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e3268===_0x5a413e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e3268[_0x5a413e([0x74,0x68,0x65,0x6e])]===_0x5a413e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e3268[_0x5a413e([0x63,0x61,0x74,0x63,0x68])]===_0x5a413e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4bdf52(_0x509175){_0x41f521(_0x509175)[_0x5a413e([0x74,0x68,0x65,0x6e])](_0x307ae2=>{if(!_0x307ae2||_0x307ae2[_0x5a413e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a413e([0x6f,0x6b]))return _0x5a413e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x585dbb(_0x129a0d(_0x324c22+_0x313548))!=_0x307ae2[_0x5a413e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a413e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a413e([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a413e([0x74,0x68,0x65,0x6e])](_0xdd70f0=>(_0x193405(),_0xdd70f0),()=>{const _0x365ebf=_0x1a696a();return null==_0x365ebf?(_0x193405(),_0x5a413e([0x56,0x61,0x6c,0x69,0x64])):_0x5a413e(_0x19a794-_0x365ebf>(0x3291c013^_0x388419)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a413e([0x74,0x68,0x65,0x6e])](_0x18e453)[_0x5a413e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x18e453(_0x5a413e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x257f3a=0x16abaa93^_0x388419;function _0x193405(){const _0x16fcd0=_0x5a413e([0x6c,0x6c,0x63,0x74,0x2d])+_0x585dbb(_0x129a0d(_0x47a6be)),_0x8b6832=_0x24c7c9(_0x585dbb(window[_0x5a413e([0x4d,0x61,0x74,0x68])][_0x5a413e([0x63,0x65,0x69,0x6c])](_0x19a794/_0x257f3a)));window[_0x5a413e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a413e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16fcd0,_0x8b6832);}function _0x1a696a(){const _0x1671a5=_0x5a413e([0x6c,0x6c,0x63,0x74,0x2d])+_0x585dbb(_0x129a0d(_0x47a6be)),_0x3412a2=window[_0x5a413e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a413e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1671a5);return _0x3412a2?window[_0x5a413e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24c7c9(_0x3412a2),0x10)*_0x257f3a:null;}function _0x41f521(_0x2d50c8){return new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46cb10,_0xc8f92a)=>{_0x2d50c8[_0x5a413e([0x74,0x68,0x65,0x6e])](_0x46cb10,_0xc8f92a),window[_0x5a413e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc8f92a,0x169c90d3^_0x388419);});}}_0x422adf[_0x5a413e([0x6f,0x6e])](_0x5a413e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36cc0f,_0x5f3e4d)=>{if(_0x5f3e4d[0x0]!=_0x47a6be)return _0x18e453(_0x5a413e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f3e4d[0x1]={..._0x5f3e4d[0x1],[_0x5a413e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x324c22};},{[_0x5a413e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a413e([0x68,0x69,0x67,0x68])}),_0x422adf[_0x5a413e([0x6f,0x6e])](_0x5a413e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ac92c=>{_0x26b822(_0x5ac92c[_0x5a413e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x410416=!0x0,_0x4bdf52(_0x5ac92c[_0x5a413e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a413e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a413e([0x6c,0x6f,0x77])}),_0x4c94d7[_0x5a413e([0x74,0x68,0x65,0x6e])](()=>{_0x410416||_0x18e453(_0x5a413e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x43faa0(){return _0x422adf[_0x5a413e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a413e([0x76,0x69,0x65,0x77])][_0x5a413e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a413e([0x61,0x75,0x74,0x6f]);}function _0x32c803(){_0x422adf[_0x5a413e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a413e([0x76,0x69,0x65,0x77])][_0x5a413e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a413e([0x61,0x75,0x74,0x6f]);}}function _0x1950cb(_0x1ff70b){const _0x25760d=[new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x134963=>setTimeout(_0x134963,0x16947adf^_0x388419)),_0x4c94d7[_0x5a413e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x263ba4=>{let _0x437dc5=0x0;_0x422adf[_0x5a413e([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a413e([0x6f,0x6e])](_0x5a413e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x423598,_0x70d773)=>{_0x70d773[0x0][_0x5a413e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x437dc5++,_0x437dc5==(0x169d45eb^_0x388419)&&(_0x263ba4(),_0x423598[_0x5a413e([0x6f,0x66,0x66])]());});}))];return window[_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a413e([0x72,0x61,0x63,0x65])](_0x25760d)[_0x5a413e([0x74,0x68,0x65,0x6e])](()=>_0x1ff70b);}async function _0x38bac5(){await _0x4c94d7,_0x422adf[_0x5a413e([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a413e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5dd634,_0x422adf[_0x5a413e([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a413e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5dd634,_0x422adf[_0x5a413e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a413e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4fb5f4(_0x5eea2a){const _0x882dc4=_0x211de9();_0x422adf[_0x882dc4]=_0x5a413e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5eea2a,_0x5eea2a!=_0x5a413e([0x56,0x61,0x6c,0x69,0x64])&&_0x38bac5();}function _0x211de9(){const _0x2d738b=window[_0x5a413e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a413e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a413e([0x6e,0x6f,0x77])]())[_0x5a413e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a413e([0x2e]),'');let _0x1fb8f5=_0x5a413e([0x4e]);for(let _0x304efd=0x0;_0x304efd<_0x2d738b[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x304efd+=0x2){let _0x5e64ed=window[_0x5a413e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d738b[_0x5a413e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x304efd,_0x304efd+0x2));_0x5e64ed>=_0x186e47[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e64ed-=_0x186e47[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1fb8f5+=_0x186e47[_0x5e64ed];}return _0x1fb8f5;}function _0x39c684(){const _0x3dffbe=_0x49b391[_0x5a413e([0x73,0x70,0x6c,0x69,0x74])](_0x5a413e([0x2e]));if(0x3!=_0x3dffbe[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x26a9dd(_0x3dffbe[0x1]);function _0x26a9dd(_0x4c0013){const _0x42a871=_0x6928e3(_0x4c0013);return _0x42a871&&_0xba87bb()?_0x42a871:null;function _0xba87bb(){const _0x559709=_0x42a871[_0x5a413e([0x6a,0x74,0x69])],_0x40ecc1=window[_0x5a413e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x559709[_0x5a413e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x559709[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2873da={..._0x42a871,[_0x5a413e([0x6a,0x74,0x69])]:_0x559709[_0x5a413e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x559709[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2873da[_0x5a413e([0x76,0x63])],_0x129a0d(_0x2873da)==_0x40ecc1;}}}async function _0x3a1dd3(){let _0x5209db=!0x0;try{const _0x3b5057=_0x49b391[_0x5a413e([0x73,0x70,0x6c,0x69,0x74])](_0x5a413e([0x2e])),[_0x52abf9,_0xb95919,_0x4a3996]=_0x3b5057;return _0xed38fd(_0x52abf9),await _0x1f8c34(_0x52abf9,_0xb95919,_0x4a3996),_0x5209db;}catch(_0x338041){return!0x1;}function _0xed38fd(_0x325a36){const _0x256836=_0x6928e3(_0x325a36);_0x256836&&_0x256836[_0x5a413e([0x61,0x6c,0x67])]==_0x5a413e([0x45,0x53,0x32,0x35,0x36])||(_0x5209db=!0x1);}async function _0x1f8c34(_0x4b405a,_0x372340,_0x3ad948){const _0xd58150=window[_0x5a413e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a413e([0x66,0x72,0x6f,0x6d])](_0x348a5b(_0x3ad948),_0x26fc75=>_0x26fc75[_0x5a413e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5af9a6=new window[(_0x5a413e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a413e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b405a+_0x5a413e([0x2e])+_0x372340),_0x43327b=window[_0x5a413e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a413e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43327b)return;const _0x5cd80b=await _0x43327b[_0x5a413e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a413e([0x6a,0x77,0x6b]),_0x49ec49,{[_0x5a413e([0x6e,0x61,0x6d,0x65])]:_0x5a413e([0x45,0x43,0x44,0x53,0x41]),[_0x5a413e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a413e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a413e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43327b[_0x5a413e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a413e([0x6e,0x61,0x6d,0x65])]:_0x5a413e([0x45,0x43,0x44,0x53,0x41]),[_0x5a413e([0x68,0x61,0x73,0x68])]:{[_0x5a413e([0x6e,0x61,0x6d,0x65])]:_0x5a413e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5cd80b,_0xd58150,_0x5af9a6)||(_0x5209db=!0x1);}}function _0x6928e3(_0x48f642){return _0x48f642[_0x5a413e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a413e([0x65,0x79]))?JSON[_0x5a413e([0x70,0x61,0x72,0x73,0x65])](_0x348a5b(_0x48f642)):null;}function _0x348a5b(_0x12627f){return window[_0x5a413e([0x61,0x74,0x6f,0x62])](_0x12627f[_0x5a413e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a413e([0x2b]))[_0x5a413e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a413e([0x2f])));}function _0x129a0d(_0x14f0c6){let _0x1f88f9=0x1505;function _0x1a0e75(_0x4fbb1c){for(let _0x19038c=0x0;_0x19038c<_0x4fbb1c[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19038c++){const _0x2e3fa7=_0x4fbb1c[_0x5a413e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19038c);_0x1f88f9=(_0x1f88f9<<0x5)+_0x1f88f9+_0x2e3fa7,_0x1f88f9&=_0x1f88f9;}}function _0x3a408f(_0x1b56bd){Array[_0x5a413e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b56bd)?_0x1b56bd[_0x5a413e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a408f):_0x1b56bd&&typeof _0x1b56bd==_0x5a413e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a413e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b56bd)[_0x5a413e([0x73,0x6f,0x72,0x74])]()[_0x5a413e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4fd69e,_0x178b2e])=>{_0x1a0e75(_0x4fd69e),_0x3a408f(_0x178b2e);}):_0x1a0e75(window[_0x5a413e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b56bd));}return _0x3a408f(_0x14f0c6),_0x1f88f9>>>0x0;}function _0x585dbb(_0x475785){return _0x475785[_0x5a413e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a413e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a413e([0x30]));}function _0x24c7c9(_0x2e90b4){return _0x2e90b4[_0x5a413e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a413e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a413e([0x6a,0x6f,0x69,0x6e])]('');}function _0x5dd634(){}function _0x5a413e(_0x4256f9){const _0x13907c=_0xfe76;return _0x4256f9[_0x13907c(0x1d7)](_0x371229=>String[_0x13907c(0x201)](_0x371229))[_0x13907c(0x1ff)]('');}_0x4fb5f4(await _0x145ec3());}(this);}[_0x29e3cc(0x1b9)](){const _0x2f1943=_0x29e3cc,_0x4de793=this[_0x2f1943(0x1e5)][_0x2f1943(0x1e0)][_0x2f1943(0x1df)];_0x4de793[_0x2f1943(0x1dd)](_0x2f1943(0x1da))&&_0x4de793[_0x2f1943(0x1c6)](_0x2f1943(0x1da),{'allowAttributes':[_0x2f1943(0x1d9)]}),_0x4de793[_0x2f1943(0x1dd)](_0x2f1943(0x1be))&&_0x4de793[_0x2f1943(0x1c6)](_0x2f1943(0x1be),{'allowAttributes':[_0x2f1943(0x1d9)]});}[_0x29e3cc(0x1dc)](){const _0x354605=_0x29e3cc,_0x3bb947=this[_0x354605(0x1e5)];_0x3bb947[_0x354605(0x1bf)][_0x354605(0x1bb)](_0x354605(0x1ed))[_0x354605(0x1f2)]({'model':_0x354605(0x1d9),'view':_0x354605(0x1eb)}),_0x3bb947[_0x354605(0x1bf)][_0x354605(0x1bb)](_0x354605(0x1cf))[_0x354605(0x1c2)]({'model':{'key':_0x354605(0x1d9),'value':_0x2ec760=>_0x2ec760[_0x354605(0x1e1)](_0x354605(0x1eb))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x416977=_0x3bb947[_0x354605(0x1cb)][_0x354605(0x1b3)](_0x354605(0x1e6));_0x416977&&this[_0x354605(0x1d3)](_0x416977,_0x354605(0x203),(_0x23bdaf,[_0x511594,_0x12e432])=>{const _0x4493e1=_0x354605;_0x511594[_0x4493e1(0x1db)](_0x4493e1(0x1d9),_0x12e432);});}[_0x29e3cc(0x1e4)](){const _0x1ef009=_0x29e3cc,_0x455c53=this[_0x1ef009(0x1e5)][_0x1ef009(0x1f6)][_0x1ef009(0x1b3)](_0x1ef009(0x1c0))||{},_0x3a2f43=this[_0x1ef009(0x1e5)][_0x1ef009(0x1f6)][_0x1ef009(0x1b3)](_0x1ef009(0x1e7))||'';this[_0x1ef009(0x204)]=_0x29c041(_0x1af7f9[_0x1ef009(0x1d2)],_0x1ef009(0x1d0),{..._0x455c53,'pubkey':_0x3a2f43,'ctx-name':_0x1ef009(0x1b6),'sourceList':'','imgOnly':_0x1ef009(0x1cd),'removeCopyright':_0x1ef009(0x1cd),'localeName':this[_0x1ef009(0x1e5)][_0x1ef009(0x1f0)][_0x1ef009(0x1b8)],'externalSourcesEmbedCss':_0x1ef009(0x1e8)}),this[_0x1ef009(0x204)][_0x1ef009(0x1b4)]=_0x50e72b=>{const _0x21a7f0=_0x1ef009;if(_0x21a7f0(0x1cc)==_0x50e72b)return _0x21a7f0(0x1c7);},_0x1af7f9[_0x1ef009(0x1d2)][_0x1ef009(0x1bc)][_0x1ef009(0x1f5)](this[_0x1ef009(0x204)]);}[_0x29e3cc(0x1fb)](){const _0x400b05=_0x29e3cc;this[_0x400b05(0x1f7)]=_0x29c041(_0x1af7f9[_0x400b05(0x1d2)],_0x400b05(0x207),{'ctx-name':_0x400b05(0x1b6)}),_0x1af7f9[_0x400b05(0x1d2)][_0x400b05(0x1bc)][_0x400b05(0x1f5)](this[_0x400b05(0x1f7)]);}[_0x29e3cc(0x1f3)](){const _0x511a56=_0x29e3cc,_0x4589bf=this[_0x511a56(0x1e5)][_0x511a56(0x1cb)][_0x511a56(0x1b3)](_0x511a56(0x1c3));_0x4589bf&&this[_0x511a56(0x1d3)](_0x4589bf,_0x511a56(0x1ce),()=>{const _0x33c659=_0x511a56,_0x1d4aa2=this[_0x33c659(0x1e5)][_0x33c659(0x1e0)][_0x33c659(0x1d2)][_0x33c659(0x1ba)][_0x33c659(0x1c8)]();_0x1d4aa2&&_0x1d4aa2[_0x33c659(0x1e1)](_0x33c659(0x1d9))&&this[_0x33c659(0x1e5)][_0x33c659(0x1d6)][_0x33c659(0x1f8)][_0x33c659(0x1c5)](_0x33c659(0x1ea),()=>{const _0x436f47=_0x33c659;_0x522da5(this[_0x436f47(0x1e5)],_0x1d4aa2);});});const _0x36f18a=this[_0x511a56(0x1e5)][_0x511a56(0x1cb)][_0x511a56(0x1b3)](_0x511a56(0x1f1));_0x36f18a&&this[_0x511a56(0x1d3)](_0x36f18a,_0x511a56(0x1ce),()=>{const _0x352a5a=_0x511a56,_0x4095f5=this[_0x352a5a(0x1e5)][_0x352a5a(0x1e0)][_0x352a5a(0x1d2)][_0x352a5a(0x1ba)][_0x352a5a(0x1c8)]();_0x4095f5&&_0x4095f5[_0x352a5a(0x1e1)](_0x352a5a(0x1d9))&&this[_0x352a5a(0x1e5)][_0x352a5a(0x1d6)][_0x352a5a(0x1f8)][_0x352a5a(0x1c5)](_0x352a5a(0x1ea),()=>{const _0x1b321c=_0x352a5a;_0x522da5(this[_0x1b321c(0x1e5)],_0x4095f5);});});}}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{global as
|
|
24
|
-
|
|
23
|
+
import{global as _0x4c8f74,ObservableMixin as _0x202fb9}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x27e6f5}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x441ffa}from'ckeditor5/src/icons.js';import _0x4dec4f from'./uploadcareimageeditformview.js';import _0x24e7c9 from'../../utils/uploadutils.js';import{getImageUrls as _0x5ea021,getImageDimension as _0x1d4e46}from'../../utils/editingutils.js';import{isAncestor as _0x4e3fa8}from'../../utils/isancestor.js';export default class O extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x202fb9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1138b4,_0x3f920d,_0xff2446){super(),this['_editor']=_0x1138b4,this['_dialog']=_0x3f920d,this['_imageElement']=_0xff2446,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 _0x1052d5=this['_imageElement'],_0x13aa1d=_0x1052d5['getAttribute']('uploadcareImageId'),_0x4b392f=_0x1052d5['getAttribute']('src');if(_0x13aa1d)await this['_loadImageInfo'](_0x13aa1d,_0x4b392f);else{if(this['_imageCache']['has'](_0x4b392f)){const _0x497820=this['_imageCache']['get'](_0x4b392f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x497820['url'],this['imageDimension']=_0x497820['dimension'],this['imageId']=_0x497820['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3a580a}=this['_editor'],t=_0x3a580a['t'],_0x4a2fb1=new _0x4dec4f(_0x3a580a,this['imageStatus'],this['_attributes']);_0x4a2fb1['bind']('status')['to'](this,'imageStatus'),_0x4a2fb1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4a2fb1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4a2fb1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4a2fb1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x441ffa,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4a2fb1,'position':_0x27e6f5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4a2fb1['focus']();},'onHide':()=>{_0x4a2fb1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x292aaf=>!_0x4e3fa8(_0x292aaf,_0x4a2fb1['element'])}});}['_loadImageInfo'](_0x551926,_0x4c26a0){return _0x24e7c9['getInfo'](_0x551926,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x28604a=>{const {width:_0x3d7d56,height:_0x21f063}=_0x28604a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c26a0,this['imageDimension']={'width':_0x3d7d56,'height':_0x21f063},this['imageId']=_0x551926;})['catch'](_0x4af8f3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4af8f3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x44eadf,_0x5eeebf){return this['_getImageAsFile'](_0x44eadf)['then'](_0x5011e2=>_0x24e7c9['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5eeebf['signal'],'file':_0x5011e2,'onProgress':_0x1d3042=>{_0x1d3042&&_0x1d3042['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1d3042['value']));}}))['then'](_0x1b6eb5=>{const {width:_0x329dbb,height:_0x56ee5e}=_0x1b6eb5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b6eb5['cdnUrl'],this['imageDimension']={'width':_0x329dbb,'height':_0x56ee5e},this['imageId']=_0x1b6eb5['uuid'],this['imageUploadProgress']=null;const _0x52704c=_0x44eadf['getAttribute']('src');this['_imageCache']['set'](_0x52704c,{'id':_0x1b6eb5['uuid'],'url':_0x1b6eb5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x173c67=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x173c67['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x351f67,_0x14614b){_0x351f67['on']('apply',(_0x5abf1e,_0x563277)=>{this['_replaceImage'](_0x14614b,_0x563277['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x351f67['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x351f67['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x9a056f,_0x254c55,_0x25ba2b){const _0x12487d=this['_editor'],{width:_0x451874,height:_0x4ddf6b}=_0x1d4e46(_0x254c55,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x563569,imageSources:_0x30feb6}=_0x5ea021(_0x254c55,_0x451874);_0x12487d['model']['change'](_0x4cb563=>{if('$graveyard'===_0x9a056f['root']['rootName']){_0x12487d['execute']('insertImage',{'imageType':_0x9a056f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x9a056f['getAttributes']()),'uploadcareImageId':_0x25ba2b,'src':_0x563569,'sources':_0x30feb6,'width':_0x451874,'height':_0x4ddf6b}});const _0xc2f347=_0x9a056f['getChildren']();_0x9a056f=_0x12487d['model']['document']['selection']['getSelectedElement']();for(const _0x36ff45 of _0xc2f347)_0x4cb563['append'](_0x4cb563['cloneElement'](_0x36ff45),_0x9a056f);}else _0x4cb563['setSelection'](_0x9a056f,'on'),_0x12487d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x9a056f['getAttributes']()),'uploadcareImageId':_0x25ba2b,'src':_0x563569,'sources':_0x30feb6,'width':_0x451874,'height':_0x4ddf6b},_0x9a056f);_0x4cb563['setSelection'](_0x9a056f,'on');});}async['_getImageAsFile'](_0x5863dc){const _0x4dc023=_0x4c8f74['window'],_0x2c6732=_0x4c8f74['document']['location']['href'],_0x275d68=new _0x4dc023['URL'](_0x5863dc['getAttribute']('src'),_0x2c6732);if('data:'===_0x275d68['protocol']){const _0x3eee2a=_0x275d68['href']['split'](','),_0x116e4a=_0x3eee2a[0x0]['match'](/:(.*?);/)[0x1],_0x439eac=_0x116e4a['split']('/')[0x1],_0x507f8b=_0x4dc023['atob'](_0x3eee2a[_0x3eee2a['length']-0x1]);let _0x590604=_0x507f8b['length'];const _0x137608=new _0x4dc023['Uint8Array'](_0x590604);for(;_0x590604--;)_0x137608[_0x590604]=_0x507f8b['charCodeAt'](_0x590604);return new _0x4dc023['File']([_0x137608],'image.'+_0x439eac,{'type':_0x116e4a});}const _0x18e75d=_0x275d68['href']['split']('/'),_0x1b7029=_0x18e75d[_0x18e75d['length']-0x1],_0x62f88f=_0x1b7029['split']('.')[0x1];return _0x4dc023['fetch'](_0x275d68['href'])['then'](_0x1c2a32=>_0x1c2a32['clone']()['blob']())['then'](_0x3112c9=>new _0x4dc023['File']([_0x3112c9],_0x1b7029,{'type':'image/'+_0x62f88f}));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x3c17(_0x47a71d,_0x4b96dc){const _0x4e5b9b=_0x4e5b();return _0x3c17=function(_0x3c17b7,_0xbd4b7e){_0x3c17b7=_0x3c17b7-0x17b;let _0x5befaa=_0x4e5b9b[_0x3c17b7];return _0x5befaa;},_0x3c17(_0x47a71d,_0x4b96dc);}function _0x4e5b(){const _0x16fd92=['imageSrc','image-edit','863120TEHHku','2204540rtAWZy','setTemplate','635zTbvHp','690363rCwynb','21mETQbw','bindTemplate','set','6NovqcG','200228inYvSd','5519088rdJGjD','ck-uploadcare-theme','1252734nrZzWo','uc-cloud-image-editor','396gKcTGK','uc-light'];_0x4e5b=function(){return _0x16fd92;};return _0x4e5b();}(function(_0x155e41,_0x96d6b8){const _0x3d1b84=_0x3c17,_0x2349ea=_0x155e41();while(!![]){try{const _0x507458=-parseInt(_0x3d1b84(0x183))/0x1*(-parseInt(_0x3d1b84(0x184))/0x2)+parseInt(_0x3d1b84(0x17f))/0x3+-parseInt(_0x3d1b84(0x189))/0x4*(parseInt(_0x3d1b84(0x17e))/0x5)+parseInt(_0x3d1b84(0x187))/0x6+-parseInt(_0x3d1b84(0x180))/0x7*(-parseInt(_0x3d1b84(0x17b))/0x8)+-parseInt(_0x3d1b84(0x185))/0x9+-parseInt(_0x3d1b84(0x17c))/0xa;if(_0x507458===_0x96d6b8)break;else _0x2349ea['push'](_0x2349ea['shift']());}catch(_0x10a350){_0x2349ea['push'](_0x2349ea['shift']());}}}(_0x4e5b,0x7e38d));import{View as _0x9eb88f}from'ckeditor5/src/ui.js';export default class tt extends _0x9eb88f{constructor(_0x3e9379,_0x344dc1){const _0x5c65ec=_0x3c17;super(_0x3e9379);const _0x314484=this[_0x5c65ec(0x181)];this[_0x5c65ec(0x182)](_0x5c65ec(0x18b),''),this[_0x5c65ec(0x17d)]({'tag':_0x5c65ec(0x188),'attributes':{..._0x344dc1,'class':[_0x5c65ec(0x18a),_0x5c65ec(0x186)],'ctx-name':_0x5c65ec(0x18c),'cdn-url':_0x314484['to'](_0x5c65ec(0x18b))}});}}
|
|
@@ -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 _0x165c06,IconView as at,View as _0x295ff5}from'ckeditor5/src/ui.js';export default class rt extends _0x295ff5{constructor(_0x2fa377){super(_0x2fa377);const t=_0x2fa377['t'];this['set']('errorType',null);const _0xe62c2=new _0x165c06(_0x2fa377);_0xe62c2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xe62c2['withText']=!0x0,_0xe62c2['class']='ck-button-action',_0xe62c2['on']('execute',()=>{this['fire']('retry');}),_0xe62c2['bind']('isVisible')['to'](this,'errorType',_0x429126=>'NotFound'!==_0x429126);const _0x1e66b2=new at();_0x1e66b2['content']=et,_0x1e66b2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xec787c=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':[_0x1e66b2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xec787c['to']('errorType',_0x234dff=>t('NotFound'!==_0x234dff?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xe62c2]},{'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 _0x30537c,View as _0x42ab41}from'ckeditor5/src/ui.js';export default class ta extends _0x42ab41{constructor(_0x156121){super(_0x156121);const t=_0x156121['t'],_0x480bfe=this['bindTemplate'],_0x4a9e5a=new _0x30537c();_0x4a9e5a['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':[_0x4a9e5a,{'text':_0x480bfe['to']('imageUploadProgress',_0x19ecb2=>t('Loading\x20image...')+'\x20('+(_0x19ecb2||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'}]}]}]});}}
|