@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-next-20250215.0 → 0.0.0-nightly-next-20250216.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/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 _0x4bf305,Command as _0x5e2484}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x1202e4,IconInstagram as _0x208c70,IconGooglePhotos as _0x1929cd,IconGoogleDrive as _0x442ab8,IconFacebook as _0x1d832f,IconDropbox as _0x3b709d,IconUploadcareLink as _0x1aa68d,IconUploadcareImageUpload as _0x344b8f,IconError as et,IconUploadcareImageEdit as _0x1aa9d8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x5789be,MenuBarMenuListItemButtonView as _0x8b0644,View as _0x230fa2,FocusCycler as _0x17f0db,Dialog as _0x31776d,DialogViewPosition as _0x3a764c,SpinnerView as _0x139bce,IconView as at,Notification as _0x4ff535}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x3d7490,DomEmitterMixin as _0x4a6713,global as _0xf500a3,getAncestors as _0x112b85,ObservableMixin as _0x5ce219,createElement as _0x1bd771,uid as _0x2701a3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x196fe4}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4073fa,info as _0x4ff86c}from'@uploadcare/upload-client';import*as _0x512567 from'@uploadcare/file-uploader';var o=function(_0x21d1e4){return _0x21d1e4['Local']='local',_0x21d1e4['URL']='url',_0x21d1e4['Dropbox']='dropbox',_0x21d1e4['GDrive']='gdrive',_0x21d1e4['Facebook']='facebook',_0x21d1e4['GPhotos']='gphotos',_0x21d1e4['Instagram']='instagram',_0x21d1e4['OneDrive']='onedrive',_0x21d1e4;}({});function x(_0x28b38c,_0x4a28c2,_0x7056b6){const t=_0x28b38c['t'],_0x27aac9=_0x28b38c['t'];switch(_0x4a28c2){case o['Local']:return{'text':_0x27aac9('Insert'===_0x7056b6?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x27aac9('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x7056b6?_0x27aac9('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x27aac9('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['Instagram']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case o['OneDrive']:return{'text':t('Insert'===_0x7056b6?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x4a28c2;}}class e extends _0x4bf305{['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 _0x4d91f3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xcb919a;for(const _0x127440 in _0x4d91f3){const _0x2e37d8=_0x127440,_0x1d87cc=_0x4d91f3[_0x2e37d8];if('uploadcareLicenseKeyValid'==_0x1d87cc||'uploadcareLicenseKeyInvalid'==_0x1d87cc||'uploadcareLicenseKeyExpired'==_0x1d87cc||'uploadcareLicenseKeyDomainLimit'==_0x1d87cc||'uploadcareLicenseKeyNotAllowed'==_0x1d87cc||'uploadcareLicenseKeyEvaluationLimit'==_0x1d87cc||'uploadcareLicenseKeyTrialLimit'==_0x1d87cc||'uploadcareLicenseKeyUsageLimit'==_0x1d87cc){delete _0x4d91f3[_0x2e37d8],_0xcb919a=_0x1d87cc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xcb919a&&_0x4d91f3['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xcb919a&&_0x4d91f3['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xcb919a&&_0x4d91f3['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xcb919a&&_0x4d91f3['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xcb919a&&_0x4d91f3['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xcb919a&&_0x4d91f3['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xcb919a&&_0x4d91f3['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x5a100a}=this,_0x6534eb=_0x5a100a['commands']['get']('uploadcare');if(!_0x6534eb)return;const _0x20b107=this['_normalizeConfigSourceList'](_0x5a100a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x84f43b,_0x2356d4)=>{const _0x181e87=this['_getIntegrationKey'](_0x2356d4['type']);return _0x84f43b[_0x181e87]||(_0x84f43b[_0x181e87]=[]),_0x84f43b[_0x181e87]['push'](_0x2356d4),_0x84f43b;},{});_0x5a100a['plugins']['has']('ImageInsertUI')&&_0x5a100a['commands']['get']('uploadcare')&&Object['entries'](_0x20b107)['forEach'](([_0x541a53,_0x18a32e])=>{_0x5a100a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x541a53,'observable':()=>_0x6534eb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x18a32e),'formViewCreator':()=>this['_createDropdownButtons'](_0x18a32e),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x18a32e),'override':'assetManager'!==_0x541a53});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x49e0e3){const {locale:_0x3fafc8}=this['editor'];return _0x49e0e3['map'](_0x1a21b8=>{const _0xe6a9c=x(_0x3fafc8,_0x1a21b8,'Insert');switch(_0x1a21b8){case o['Local']:return{'icon':_0x344b8f,'type':o['Local'],..._0xe6a9c};case o['URL']:return{'icon':_0x1aa68d,'type':o['URL'],..._0xe6a9c};case o['Dropbox']:return{'icon':_0x3b709d,'type':o['Dropbox'],..._0xe6a9c};case o['Facebook']:return{'icon':_0x1d832f,'type':o['Facebook'],..._0xe6a9c};case o['GDrive']:return{'icon':_0x442ab8,'type':o['GDrive'],..._0xe6a9c};case o['GPhotos']:return{'icon':_0x1929cd,'type':o['GPhotos'],..._0xe6a9c};case o['Instagram']:return{'icon':_0x208c70,'type':o['Instagram'],..._0xe6a9c};case o['OneDrive']:return{'icon':_0x1202e4,'type':o['OneDrive'],..._0xe6a9c};}});}['_getIntegrationKey'](_0xff165c){switch(_0xff165c){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x43b86f,_0x3e667c){const _0xeefef7=this['editor'],_0x4256d1=new _0x43b86f(_0xeefef7['locale']),_0x1cc011=_0xeefef7['commands']['get']('uploadcare');return _0x4256d1['bind']('isEnabled')['to'](_0x1cc011),_0x4256d1['on']('execute',()=>{_0x1cc011['execute'](_0x3e667c);}),_0x4256d1;}['_createToolbarButton'](_0xc6f44f){const {locale:_0x25d0ab}=this['editor'],_0x53f015=this['editor']['plugins']['get']('ImageInsertUI'),_0x411092=_0xc6f44f[0x0],_0x59d631=this['_createButton'](_0x5789be,_0x411092['type']);return _0x59d631['icon']=_0x411092['icon'],_0x59d631['bind']('label')['to'](_0x53f015,'isImageSelected',_0x5a9f8d=>x(_0x25d0ab,_0x411092['type'],_0x5a9f8d?'Replace':'Insert')['text']),_0x59d631['tooltip']=!0x0,_0x59d631;}['_createDropdownButtons'](_0x1a4eca){const {locale:_0x5de993}=this['editor'],_0x12be8e=this['editor']['plugins']['get']('ImageInsertUI');return _0x1a4eca['map'](_0x147dac=>{const _0x4536b1=this['_createButton'](_0x5789be,_0x147dac['type']);return _0x4536b1['withText']=!0x0,_0x4536b1['icon']=_0x147dac['icon'],_0x4536b1['bind']('label')['to'](_0x12be8e,'isImageSelected',_0x1e3638=>x(_0x5de993,_0x147dac['type'],_0x1e3638?'Replace':'Insert')['text']),_0x4536b1;});}['_createMenuBarButtons'](_0x45652e){return _0x45652e['map'](_0x3d5cb0=>{const _0x23056c=this['_createButton'](_0x8b0644,_0x3d5cb0['type']);return _0x23056c['icon']=_0x3d5cb0['icon'],_0x23056c['label']=_0x3d5cb0['shortText'],_0x23056c;});}}class q extends _0x230fa2{['focusTracker'];['focusCycler'];constructor(_0x1389e2){super(_0x1389e2),this['focusTracker']=new _0x3d7490(),this['focusCycler']=new _0x17f0db({'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(_0x4a7f4c){super(_0x4a7f4c),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(_0x3eccb2,_0x442fd2){const _0x4e35e9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x199616=>_0x199616<=_0x442fd2)['map'](_0x48f0f6=>_0x3eccb2['replace'](/\/$/,'')+'/-/resize/'+_0x48f0f6+'x/\x20'+_0x48f0f6+'w');return{'imageFallbackUrl':_0x3eccb2,'imageSources':[{'srcset':_0x4e35e9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x442fd2+'px)\x20100vw,\x20'+_0x442fd2+'px','type':'image/webp'}]};}function F(_0x26d061,_0x19ba7f,_0x39b3a1){const _0x721a32=_0x26d061['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x721a32?parseInt(_0x721a32[0x1],0xa):_0x19ba7f,'height':_0x721a32?parseInt(_0x721a32[0x2],0xa):_0x39b3a1};}function m(_0x114d61,_0x2be40b){const _0x5e5c3a=Object['create'](_0x4a6713),_0xb78c93=_0x114d61['plugins']['get']('ImageUtils'),_0x1779c0=_0x114d61['editing']['mapper']['toViewElement'](_0x2be40b),_0xee27f7=_0xb78c93['findViewImgElement'](_0x1779c0),_0x46272a=_0x114d61['editing']['view']['domConverter']['viewToDom'](_0xee27f7),_0x333490=_0x2be40b['getAttribute']('width'),_0x4db4af=_0x2be40b['getAttribute']('height'),_0x3c41fa='image-processing';_0x114d61['editing']['view']['change'](_0x5153fc=>{_0x5153fc['addClass'](_0x3c41fa,_0x1779c0),_0x5153fc['setStyle']('aspect-ratio',_0x333490+'/'+_0x4db4af,_0xee27f7);}),_0x5e5c3a['listenTo'](_0x46272a,'load',()=>{_0x5e5c3a['stopListening'](_0x46272a,'load'),_0x114d61['editing']['view']['change'](_0x613c1=>{_0x613c1['removeClass'](_0x3c41fa,_0x1779c0),_0x613c1['removeStyle']('aspect-ratio',_0xee27f7);});});}function R(_0x9b2ff1){if(Array['isArray'](_0x9b2ff1)){const _0x2b8607=_0x9b2ff1['map'](R);return _0x114092=>_0x2b8607['some'](_0x23dfe1=>_0x23dfe1(_0x114092));}if('origin'==_0x9b2ff1){const _0x403f6c=_0xf500a3['window']['location']['origin'];return _0x2f857a=>new URL(_0x2f857a,_0xf500a3['document']['baseURI'])['origin']==_0x403f6c;}return'function'==typeof _0x9b2ff1?_0x9b2ff1:_0x9b2ff1 instanceof RegExp?_0x47dd27=>!(!_0x47dd27['match'](_0x9b2ff1)&&!_0x47dd27['replace'](/^https?:\/\//,'')['match'](_0x9b2ff1)):()=>!0x1;}function M(_0x482b6e,_0x352090){return _0x112b85(_0x482b6e['target'])['includes'](_0x352090);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x5ce219(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x258503,_0x464e55,_0x4d86d2){super(),this['_editor']=_0x258503,this['_editing']=_0x464e55,this['_dialog']=_0x258503['plugins']['get'](_0x31776d),this['_api']=_0x464e55['ctxElement']['getAPI'](),this['_type']=_0x4d86d2,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:_0x11327c,model:_0xc312f9}=this['_editor'],_0x40c8b7=_0xc312f9['document']['selection']['getSelectedElement'](),_0x3749a3=_0x40c8b7&&(_0x40c8b7['is']('element','imageBlock')||_0x40c8b7['is']('element','imageInline'));this['_formView']=new S(_0x11327c),this['_dialog']['show']({'id':'uploadCare','icon':_0x344b8f,'title':x(_0x11327c,this['_type'],_0x3749a3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3a764c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0xfefe69=>!M(_0xfefe69,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x1ac3fe}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2655ad=>{const _0x348828=_0x1ac3fe['length'];for(const _0x488632 of _0x1ac3fe){const _0x246a4a=_0x488632===_0x1ac3fe[_0x348828-0x1],{cdnUrl:_0x503a34,fileInfo:_0x251baf}=_0x488632;if(!_0x503a34||!_0x251baf)continue;const {width:_0x1b7934,height:_0x2f21f9}=_0x251baf['imageInfo'],_0x1189a7=F(_0x503a34,_0x1b7934,_0x2f21f9),_0x24f36e=E(_0x503a34,_0x1189a7['width']),_0x5465c7={'id':_0x251baf['uuid'],'type':'image','attributes':{'imageDimension':_0x1189a7,..._0x24f36e}};this['_insertAsset'](_0x5465c7,_0x246a4a,_0x2655ad);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x36e487=>{'idle'===_0x36e487['detail']['status']&&!_0x36e487['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x14f6e0,_0x185353,_0x5033a9){const _0x310ba4=this['_editor']['model']['document']['selection'],_0x3fb81f=_0x310ba4['getSelectedElement'](),_0x18614b=!(!_0x3fb81f||!_0x3fb81f['is']('element','imageInline'));_0x5033a9['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x14f6e0,_0x18614b),_0x185353||_0x5033a9['setSelection'](_0x310ba4['getLastPosition']());}['_insertImage'](_0x191186,_0xf69811){const _0x15a126=this['_editor'],{imageDimension:_0x19d8a5,imageFallbackUrl:_0x246e99,imageSources:_0xed1a1b}=_0x191186['attributes'];_0x15a126['execute']('insertImage',{'imageType':_0xf69811?'imageInline':null,'source':{'uploadcareImageId':_0x191186['id'],'src':_0x246e99,'sources':_0xed1a1b,..._0x19d8a5}});}}class n extends _0x5e2484{['_editing'];['_controller']=null;static get['requires'](){return[_0x31776d,i];}constructor(_0x1cfff6){super(_0x1cfff6),this['_editing']=_0x1cfff6['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x2a1bf3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x2a1bf3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3745e6,publicKey:_0x770d,signal:_0x4ba38a,onProgress:_0x450134}){return _0x4073fa(_0x3745e6,{'publicKey':_0x770d,'store':'auto','signal':_0x4ba38a,'onProgress':_0x450134});}static['getInfo'](_0x48d678,_0x287008){return _0x4ff86c(_0x48d678,_0x287008);}}class p extends _0x4bf305{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x196fe4,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0xe20a5b=this['editor'];if(!!!_0xe20a5b['config']['get']('uploadcare'))return;_0xe20a5b['plugins']['get'](_0x196fe4)['createUploadAdapter']=_0x39338d=>new A(_0x39338d,_0xe20a5b),_0xe20a5b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x8cbf68,{imageElement:_0x68cc9f,data:_0x1906b2})=>{_0xe20a5b['model']['change'](_0x29bc41=>{_0x29bc41['setAttribute']('uploadcareImageId',_0x1906b2['uploadcareImageId'],_0x68cc9f);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xe44a7d,_0x425507){this['loader']=_0xe44a7d,this['editor']=_0x425507,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x2245d6=this['editor']['config']['get']('uploadcare.pubkey'),_0x539028=await this['loader']['file'];return C['upload']({'file':_0x539028,'publicKey':_0x2245d6,'signal':this['controller']['signal'],'onProgress':_0x415a10=>{_0x415a10&&_0x415a10['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x415a10['value']);}})['then'](async _0x25930b=>{const {imageFallbackUrl:_0x3192ee,imageSources:_0x3a3c35}=E(_0x25930b['cdnUrl'],_0x25930b['imageInfo']['width']);return{'uploadcareImageId':_0x25930b['uuid'],'default':_0x3192ee,'sources':_0x3a3c35};})['catch'](()=>{const _0x4c7e7f=t('Cannot\x20upload\x20file:')+('\x20'+_0x539028['name']+'.');return Promise['reject'](_0x4c7e7f);});}['abort'](){this['controller']['abort']();}}class i extends _0x4bf305{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x31776d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2a34c3=this['editor'];_0x2a34c3['commands']['add']('uploadcare',new n(_0x2a34c3));}['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 _0x23d7f2=_0xf500a3['document']['querySelector']('input[uploadcare-file-input]');_0x23d7f2&&_0x23d7f2['remove']();}),async function(_0x58cead){const _0x3bf864=_0x4599d6([0x65,0x76,0x56,0x75,0x64,0x41,0x51,0x43,0x4e,0x57,0x63,0x4c,0x54,0x44,0x6e,0x78,0x4d,0x77,0x72,0x42,0x31,0x59,0x39,0x36,0x62,0x5a,0x46,0x48,0x58,0x73,0x4f,0x35,0x61,0x7a,0x6c,0x69,0x68,0x74,0x6f,0x47,0x53,0x30,0x50,0x33,0x52,0x6a,0x70,0x49,0x32,0x67,0x79,0x37,0x45,0x4a,0x38,0x4b,0x71,0x34,0x6d,0x55,0x66,0x6b]),_0x4bf5d0=0x1b19ef99,_0x31eb64=0x1b1eb009^_0x4bf5d0,_0x391928=window[_0x4599d6([0x44,0x61,0x74,0x65])][_0x4599d6([0x6e,0x6f,0x77])](),_0x1366f4=_0x58cead[_0x4599d6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x573b1b=new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44cc64=>{_0x1366f4[_0x4599d6([0x6f,0x6e,0x63,0x65])](_0x4599d6([0x72,0x65,0x61,0x64,0x79]),_0x44cc64);}),_0xfd3e86={[_0x4599d6([0x6b,0x74,0x79])]:_0x4599d6([0x45,0x43]),[_0x4599d6([0x75,0x73,0x65])]:_0x4599d6([0x73,0x69,0x67]),[_0x4599d6([0x63,0x72,0x76])]:_0x4599d6([0x50,0x2d,0x32,0x35,0x36]),[_0x4599d6([0x78])]:_0x4599d6([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]),[_0x4599d6([0x79])]:_0x4599d6([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]),[_0x4599d6([0x61,0x6c,0x67])]:_0x4599d6([0x45,0x53,0x32,0x35,0x36])},_0x1fedac=_0x1366f4[_0x4599d6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4599d6([0x67,0x65,0x74])](_0x4599d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x11ea9d(){let _0x5bf713,_0xb6062d=null,_0x21b025=null;try{if(_0x1fedac==_0x4599d6([0x47,0x50,0x4c]))return _0x4599d6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5bf713=_0x17a504(),!_0x5bf713)return _0x4599d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5bf713[_0x4599d6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21b025=_0x1c1442(_0x5bf713[_0x4599d6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5bf713[_0x4599d6([0x6a,0x74,0x69])])),await _0x24ebbd()?_0x4bb4bb()?_0xe10859()?_0x4599d6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x28d6cc()?(_0x5bf713[_0x4599d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4599d6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xb6062d=_0x630017(_0x4599d6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5bf713[_0x4599d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4599d6([0x74,0x72,0x69,0x61,0x6c])&&(_0xb6062d=_0x630017(_0x4599d6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1f3f99()):_0x4599d6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4599d6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4599d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1676d0){return _0x4599d6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xe10859(){const _0x537370=[_0x4599d6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4599d6([0x74,0x72,0x69,0x61,0x6c])][_0x4599d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5bf713[_0x4599d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x391928/0x3e8:0xe10*_0x31eb64;return _0x5bf713[_0x4599d6([0x65,0x78,0x70])]<_0x537370;}function _0x4bb4bb(){const _0x1b6288=_0x5bf713[_0x4599d6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1b6288&&(!!_0x1b6288[_0x4599d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4599d6([0x2a]))||!!_0x1b6288[_0x4599d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4599d6([0x55,0x50,0x4c,0x43])));}function _0x28d6cc(){const _0x595992=_0x5bf713[_0x4599d6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x595992||0x0==_0x595992[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3655a2}=new URL(window[_0x4599d6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x595992[_0x4599d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3655a2))return!0x0;const _0x175b9e=_0x3655a2[_0x4599d6([0x73,0x70,0x6c,0x69,0x74])](_0x4599d6([0x2e]));return _0x595992[_0x4599d6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ad842=>_0x4ad842[_0x4599d6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4599d6([0x2a])))[_0x4599d6([0x6d,0x61,0x70])](_0x3cd27c=>_0x3cd27c[_0x4599d6([0x73,0x70,0x6c,0x69,0x74])](_0x4599d6([0x2e])))[_0x4599d6([0x73,0x6f,0x6d,0x65])](_0x24bb0b=>_0x175b9e[_0x4599d6([0x65,0x76,0x65,0x72,0x79])]((_0x109371,_0x37dbfb)=>_0x24bb0b[_0x37dbfb]===_0x109371||_0x24bb0b[_0x37dbfb]===_0x4599d6([0x2a])));}function _0x1f3f99(){return _0xb6062d&&_0x21b025?new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x533d7e,_0x35c5ab)=>{_0xb6062d[_0x4599d6([0x74,0x68,0x65,0x6e])](_0x533d7e,_0x35c5ab),_0x21b025[_0x4599d6([0x74,0x68,0x65,0x6e])](_0x549b94=>{_0x549b94!=_0x4599d6([0x56,0x61,0x6c,0x69,0x64])&&_0x533d7e(_0x549b94);},_0x35c5ab);}):_0xb6062d||_0x21b025||_0x4599d6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c1442(_0xcc2ee3,_0x5cc0dc){return new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xdc449a=>{if(_0x35e4ce())return _0xdc449a(_0x4599d6([0x56,0x61,0x6c,0x69,0x64]));_0x361c8b(),_0x1366f4[_0x4599d6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4599d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x278756=!0x1;const _0x23991b=_0x2701a3();function _0x1bbebf(_0x23fe03){return!!_0x23fe03&&(typeof _0x23fe03===_0x4599d6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x23fe03===_0x4599d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x23fe03[_0x4599d6([0x74,0x68,0x65,0x6e])]===_0x4599d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x23fe03[_0x4599d6([0x63,0x61,0x74,0x63,0x68])]===_0x4599d6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1da26b(_0xf2073d){_0x309354(_0xf2073d)[_0x4599d6([0x74,0x68,0x65,0x6e])](_0x483513=>{if(!_0x483513||_0x483513[_0x4599d6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4599d6([0x6f,0x6b]))return _0x4599d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5aec6f(_0x38d8ab(_0x23991b+_0x5cc0dc))!=_0x483513[_0x4599d6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4599d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4599d6([0x56,0x61,0x6c,0x69,0x64]);})[_0x4599d6([0x74,0x68,0x65,0x6e])](_0x1b607e=>(_0x395f71(),_0x1b607e),()=>{const _0x30b9f7=_0x1fa948();return null==_0x30b9f7?(_0x395f71(),_0x4599d6([0x56,0x61,0x6c,0x69,0x64])):_0x4599d6(_0x391928-_0x30b9f7>(0x3f156b99^_0x4bf5d0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4599d6([0x74,0x68,0x65,0x6e])](_0xdc449a)[_0x4599d6([0x63,0x61,0x74,0x63,0x68])](()=>{_0xdc449a(_0x4599d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57b733=0x1b2f0119^_0x4bf5d0;function _0x395f71(){const _0x247549=_0x4599d6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5aec6f(_0x38d8ab(_0xcc2ee3)),_0x14b2fc=_0x4797a5(_0x5aec6f(window[_0x4599d6([0x4d,0x61,0x74,0x68])][_0x4599d6([0x63,0x65,0x69,0x6c])](_0x391928/_0x57b733)));window[_0x4599d6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4599d6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x247549,_0x14b2fc);}function _0x1fa948(){const _0xc1b7dd=_0x4599d6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5aec6f(_0x38d8ab(_0xcc2ee3)),_0x20a1d4=window[_0x4599d6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4599d6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc1b7dd);return _0x20a1d4?window[_0x4599d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4797a5(_0x20a1d4),0x10)*_0x57b733:null;}function _0x309354(_0x35ebee){return new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d6896,_0x22a6f0)=>{_0x35ebee[_0x4599d6([0x74,0x68,0x65,0x6e])](_0x3d6896,_0x22a6f0),window[_0x4599d6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x22a6f0,0x1b183b59^_0x4bf5d0);});}}_0x1366f4[_0x4599d6([0x6f,0x6e])](_0x4599d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x239ba7,_0x42061a)=>{if(_0x42061a[0x0]!=_0xcc2ee3)return _0xdc449a(_0x4599d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x42061a[0x1]={..._0x42061a[0x1],[_0x4599d6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x23991b};},{[_0x4599d6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4599d6([0x68,0x69,0x67,0x68])}),_0x1366f4[_0x4599d6([0x6f,0x6e])](_0x4599d6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x498388=>{_0x1bbebf(_0x498388[_0x4599d6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x278756=!0x0,_0x1da26b(_0x498388[_0x4599d6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4599d6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4599d6([0x6c,0x6f,0x77])}),_0x573b1b[_0x4599d6([0x74,0x68,0x65,0x6e])](()=>{_0x278756||_0xdc449a(_0x4599d6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x35e4ce(){return _0x1366f4[_0x4599d6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4599d6([0x76,0x69,0x65,0x77])][_0x4599d6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4599d6([0x61,0x75,0x74,0x6f]);}function _0x361c8b(){_0x1366f4[_0x4599d6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4599d6([0x76,0x69,0x65,0x77])][_0x4599d6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4599d6([0x61,0x75,0x74,0x6f]);}}function _0x630017(_0x53f3d9){const _0x1f1227=[new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ecd4e=>setTimeout(_0x5ecd4e,0x1b10d155^_0x4bf5d0)),_0x573b1b[_0x4599d6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5741ad=>{let _0x32700b=0x0;_0x1366f4[_0x4599d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4599d6([0x6f,0x6e])](_0x4599d6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5dda50,_0x754cb6)=>{_0x754cb6[0x0][_0x4599d6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x32700b++,_0x32700b==(0x1b19ee61^_0x4bf5d0)&&(_0x5741ad(),_0x5dda50[_0x4599d6([0x6f,0x66,0x66])]());});}))];return window[_0x4599d6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4599d6([0x72,0x61,0x63,0x65])](_0x1f1227)[_0x4599d6([0x74,0x68,0x65,0x6e])](()=>_0x53f3d9);}async function _0x297412(){await _0x573b1b,_0x1366f4[_0x4599d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4599d6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x292d03,_0x1366f4[_0x4599d6([0x6d,0x6f,0x64,0x65,0x6c])][_0x4599d6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x292d03,_0x1366f4[_0x4599d6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4599d6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26214a(_0x530dfe){const _0x142ba8=_0xbc75b8();_0x1366f4[_0x142ba8]=_0x4599d6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x530dfe,_0x530dfe!=_0x4599d6([0x56,0x61,0x6c,0x69,0x64])&&_0x297412();}function _0xbc75b8(){const _0x332a97=window[_0x4599d6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4599d6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4599d6([0x6e,0x6f,0x77])]())[_0x4599d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4599d6([0x2e]),'');let _0x3fea2e=_0x4599d6([0x65]);for(let _0x1440b3=0x0;_0x1440b3<_0x332a97[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1440b3+=0x2){let _0x25747b=window[_0x4599d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x332a97[_0x4599d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1440b3,_0x1440b3+0x2));_0x25747b>=_0x3bf864[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x25747b-=_0x3bf864[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3fea2e+=_0x3bf864[_0x25747b];}return _0x3fea2e;}function _0x17a504(){const _0x4792ba=_0x1fedac[_0x4599d6([0x73,0x70,0x6c,0x69,0x74])](_0x4599d6([0x2e]));if(0x3!=_0x4792ba[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4dca03(_0x4792ba[0x1]);function _0x4dca03(_0x890454){const _0x3d9f56=_0x498bf4(_0x890454);return _0x3d9f56&&_0x36be11()?_0x3d9f56:null;function _0x36be11(){const _0x397d2b=_0x3d9f56[_0x4599d6([0x6a,0x74,0x69])],_0x47d278=window[_0x4599d6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x397d2b[_0x4599d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x397d2b[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9f22f1={..._0x3d9f56,[_0x4599d6([0x6a,0x74,0x69])]:_0x397d2b[_0x4599d6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x397d2b[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9f22f1[_0x4599d6([0x76,0x63])],_0x38d8ab(_0x9f22f1)==_0x47d278;}}}async function _0x24ebbd(){let _0x3c4f74=!0x0;try{const _0x41e3a7=_0x1fedac[_0x4599d6([0x73,0x70,0x6c,0x69,0x74])](_0x4599d6([0x2e])),[_0x539400,_0x387b97,_0x407a0b]=_0x41e3a7;return _0x472b4e(_0x539400),await _0xa5e5f1(_0x539400,_0x387b97,_0x407a0b),_0x3c4f74;}catch(_0x447fa5){return!0x1;}function _0x472b4e(_0x4acb15){const _0x3f6183=_0x498bf4(_0x4acb15);_0x3f6183&&_0x3f6183[_0x4599d6([0x61,0x6c,0x67])]==_0x4599d6([0x45,0x53,0x32,0x35,0x36])||(_0x3c4f74=!0x1);}async function _0xa5e5f1(_0x5174a1,_0x35e134,_0x2ad06f){const _0x18969d=window[_0x4599d6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4599d6([0x66,0x72,0x6f,0x6d])](_0x186688(_0x2ad06f),_0xdbc97=>_0xdbc97[_0x4599d6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3ae145=new window[(_0x4599d6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4599d6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5174a1+_0x4599d6([0x2e])+_0x35e134),_0x27b8c2=window[_0x4599d6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4599d6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27b8c2)return;const _0x4e8b31=await _0x27b8c2[_0x4599d6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4599d6([0x6a,0x77,0x6b]),_0xfd3e86,{[_0x4599d6([0x6e,0x61,0x6d,0x65])]:_0x4599d6([0x45,0x43,0x44,0x53,0x41]),[_0x4599d6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4599d6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4599d6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27b8c2[_0x4599d6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4599d6([0x6e,0x61,0x6d,0x65])]:_0x4599d6([0x45,0x43,0x44,0x53,0x41]),[_0x4599d6([0x68,0x61,0x73,0x68])]:{[_0x4599d6([0x6e,0x61,0x6d,0x65])]:_0x4599d6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e8b31,_0x18969d,_0x3ae145)||(_0x3c4f74=!0x1);}}function _0x498bf4(_0x3bc6af){return _0x3bc6af[_0x4599d6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4599d6([0x65,0x79]))?JSON[_0x4599d6([0x70,0x61,0x72,0x73,0x65])](_0x186688(_0x3bc6af)):null;}function _0x186688(_0x4a74c1){return window[_0x4599d6([0x61,0x74,0x6f,0x62])](_0x4a74c1[_0x4599d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4599d6([0x2b]))[_0x4599d6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4599d6([0x2f])));}function _0x38d8ab(_0x50ed84){let _0x314e1a=0x1505;function _0x42a9b7(_0x5c36dc){for(let _0x1fe8c0=0x0;_0x1fe8c0<_0x5c36dc[_0x4599d6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fe8c0++){const _0x33644b=_0x5c36dc[_0x4599d6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1fe8c0);_0x314e1a=(_0x314e1a<<0x5)+_0x314e1a+_0x33644b,_0x314e1a&=_0x314e1a;}}function _0x254887(_0x3881f2){Array[_0x4599d6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3881f2)?_0x3881f2[_0x4599d6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x254887):_0x3881f2&&typeof _0x3881f2==_0x4599d6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4599d6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3881f2)[_0x4599d6([0x73,0x6f,0x72,0x74])]()[_0x4599d6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4da3eb,_0x31fac3])=>{_0x42a9b7(_0x4da3eb),_0x254887(_0x31fac3);}):_0x42a9b7(window[_0x4599d6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3881f2));}return _0x254887(_0x50ed84),_0x314e1a>>>0x0;}function _0x5aec6f(_0x180655){return _0x180655[_0x4599d6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4599d6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4599d6([0x30]));}function _0x4797a5(_0x552ad8){return _0x552ad8[_0x4599d6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4599d6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4599d6([0x6a,0x6f,0x69,0x6e])]('');}function _0x292d03(){}function _0x4599d6(_0x2cd57b){return _0x2cd57b['map'](_0x549b06=>String['fromCharCode'](_0x549b06))['join']('');}_0x26214a(await _0x11ea9d());}(this);}['_initSchema'](){const _0x1d6dc0=this['editor']['model']['schema'];_0x1d6dc0['isRegistered']('imageBlock')&&_0x1d6dc0['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1d6dc0['isRegistered']('imageInline')&&_0x1d6dc0['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x29d3b8=this['editor'];_0x29d3b8['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x29d3b8['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1ee9a1=>_0x1ee9a1['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2c4b36=_0x29d3b8['commands']['get']('replaceImageSource');_0x2c4b36&&this['listenTo'](_0x2c4b36,'cleanupImage',(_0x31d9bd,[_0x42d3a8,_0x52648])=>{_0x42d3a8['removeAttribute']('uploadcareImageId',_0x52648);});}['_initConfig'](){const _0x5ec0f9=this['editor']['config']['get']('uploadcare.uploader')||{},_0x38d36c=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x1bd771(_0xf500a3['document'],'uc-config',{..._0x5ec0f9,'pubkey':_0x38d36c,'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']=_0x4e0b7d=>{if('closeMax'==_0x4e0b7d)return'#uc-icon-arrow-down';},_0xf500a3['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x1bd771(_0xf500a3['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0xf500a3['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1e4562=this['editor']['commands']['get']('insertImage');_0x1e4562&&this['listenTo'](_0x1e4562,'execute',()=>{const _0x3ef374=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3ef374&&_0x3ef374['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3ef374);});});const _0x2265eb=this['editor']['commands']['get']('uploadcareImageReplace');_0x2265eb&&this['listenTo'](_0x2265eb,'execute',()=>{const _0x49cc13=this['editor']['model']['document']['selection']['getSelectedElement']();_0x49cc13&&_0x49cc13['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x49cc13);});});}}class u extends _0x4bf305{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x566f7c){super(_0x566f7c),_0x566f7c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x512567['defineComponents'](_0x512567);}}class ta extends _0x230fa2{constructor(_0x5c8363){super(_0x5c8363);const t=_0x5c8363['t'],_0x3f6c2e=this['bindTemplate'],_0x2f9769=new _0x139bce();_0x2f9769['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':[_0x2f9769,{'text':_0x3f6c2e['to']('imageUploadProgress',_0x33862f=>t('Loading\x20image...')+'\x20('+(_0x33862f||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 _0x230fa2{constructor(_0x46428a){super(_0x46428a);const t=_0x46428a['t'];this['set']('errorType',null);const _0x3634f1=new _0x5789be(_0x46428a);_0x3634f1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3634f1['withText']=!0x0,_0x3634f1['class']='ck-button-action',_0x3634f1['on']('execute',()=>{this['fire']('retry');}),_0x3634f1['bind']('isVisible')['to'](this,'errorType',_0x58223a=>'NotFound'!==_0x58223a);const _0x5c0a55=new at();_0x5c0a55['content']=et,_0x5c0a55['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x292f50=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':[_0x5c0a55,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x292f50['to']('errorType',_0x5d9d2c=>t('NotFound'!==_0x5d9d2c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3634f1]},{'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 _0x230fa2{constructor(_0x32c506,_0xedf3f){super(_0x32c506);const _0x413f44=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xedf3f,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x413f44['to']('imageSrc')}});}}class ii extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x160e11,_0x19d339,_0x270510){super(_0x160e11),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x160e11),this['_errorView']=new rt(_0x160e11),this['_editingView']=new tt(_0x160e11,_0x270510),this['_focusableView']=new _0x230fa2(_0x160e11),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x19d339),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'],_0x2dc605=>{this['_addUploadcareImageEditorListeners'](_0x2dc605);});}),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'](_0xd0ab36,_0x4a71e2){const _0x3bfaf5='uc-cloud-image-editor',_0xcec999=_0xd0ab36['querySelector'](_0x3bfaf5);if(_0xcec999)return _0x4a71e2(_0xcec999);const _0x534632=new MutationObserver(_0x208529=>{const _0x538cf5=_0x208529['filter'](_0x48ed95=>_0x48ed95['target']===_0xd0ab36&&_0x48ed95['addedNodes']['length']>0x0&&_0x48ed95['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3bfaf5);_0x538cf5['length']&&(_0x534632['disconnect'](),_0x4a71e2(_0x538cf5[0x0]['addedNodes'][0x0]));});_0x534632['observe'](_0xd0ab36,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3a8acc){_0x3a8acc['addEventListener']('apply',_0x3b4374=>{this['fire']('apply',{'imageSrc':_0x3b4374['detail']['cdnUrl']});}),_0x3a8acc['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class Q extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5ce219(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x585e7d,_0x51cc75,_0x56af5d){super(),this['_editor']=_0x585e7d,this['_dialog']=_0x51cc75,this['_imageElement']=_0x56af5d,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 _0x63e254=this['_imageElement'],_0x4eaf1b=_0x63e254['getAttribute']('uploadcareImageId'),_0xd477b4=_0x63e254['getAttribute']('src');if(_0x4eaf1b)await this['_loadImageInfo'](_0x4eaf1b,_0xd477b4);else{if(this['_imageCache']['has'](_0xd477b4)){const _0x529734=this['_imageCache']['get'](_0xd477b4);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x529734['url'],this['imageDimension']=_0x529734['dimension'],this['imageId']=_0x529734['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xf555d0}=this['_editor'],t=_0xf555d0['t'],_0xa1b615=new ii(_0xf555d0,this['imageStatus'],this['_attributes']);_0xa1b615['bind']('status')['to'](this,'imageStatus'),_0xa1b615['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xa1b615['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xa1b615['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xa1b615,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1aa9d8,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xa1b615,'position':_0x3a764c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xa1b615['focus']();},'onHide':()=>{_0xa1b615['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3be535=>!M(_0x3be535,_0xa1b615['element'])}});}['_loadImageInfo'](_0x417c04,_0x593fff){return C['getInfo'](_0x417c04,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1cc4f9=>{const {width:_0x2a39b6,height:_0x3f4e34}=_0x1cc4f9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x593fff,this['imageDimension']={'width':_0x2a39b6,'height':_0x3f4e34},this['imageId']=_0x417c04;})['catch'](_0x91141f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x91141f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x551142,_0x1c428b){return this['_getImageAsFile'](_0x551142)['then'](_0x2de977=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x1c428b['signal'],'file':_0x2de977,'onProgress':_0x4dc5a4=>{_0x4dc5a4&&_0x4dc5a4['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4dc5a4['value']));}}))['then'](_0x17ad53=>{const {width:_0x3af84c,height:_0x26df6f}=_0x17ad53['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x17ad53['cdnUrl'],this['imageDimension']={'width':_0x3af84c,'height':_0x26df6f},this['imageId']=_0x17ad53['uuid'],this['imageUploadProgress']=null;const _0x4c6d93=_0x551142['getAttribute']('src');this['_imageCache']['set'](_0x4c6d93,{'id':_0x17ad53['uuid'],'url':_0x17ad53['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x11b184=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x11b184['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1db538,_0x18e756){_0x1db538['on']('apply',(_0x57e5c6,_0x41f651)=>{this['_replaceImage'](_0x18e756,_0x41f651['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1db538['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1db538['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4ea877,_0x398f76,_0x57c663){const _0xc1657c=this['_editor'],{width:_0x4c3405,height:_0xb5ffb6}=F(_0x398f76,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x2fb5a7,imageSources:_0x1dd19f}=E(_0x398f76,_0x4c3405);_0xc1657c['model']['change'](_0x309ea7=>{if('$graveyard'===_0x4ea877['root']['rootName']){_0xc1657c['execute']('insertImage',{'imageType':_0x4ea877['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4ea877['getAttributes']()),'uploadcareImageId':_0x57c663,'src':_0x2fb5a7,'sources':_0x1dd19f,'width':_0x4c3405,'height':_0xb5ffb6}});const _0x1432ab=_0x4ea877['getChildren']();_0x4ea877=_0xc1657c['model']['document']['selection']['getSelectedElement']();for(const _0x4fc290 of _0x1432ab)_0x309ea7['append'](_0x309ea7['cloneElement'](_0x4fc290),_0x4ea877);}else _0x309ea7['setSelection'](_0x4ea877,'on'),_0xc1657c['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4ea877['getAttributes']()),'uploadcareImageId':_0x57c663,'src':_0x2fb5a7,'sources':_0x1dd19f,'width':_0x4c3405,'height':_0xb5ffb6},_0x4ea877);_0x309ea7['setSelection'](_0x4ea877,'on');});}async['_getImageAsFile'](_0xdca733){const _0x12eb28=_0xf500a3['window'],_0x3d60af=_0xf500a3['document']['location']['href'],_0x3d643a=new _0x12eb28['URL'](_0xdca733['getAttribute']('src'),_0x3d60af);if('data:'===_0x3d643a['protocol']){const _0x51ffc7=_0x3d643a['href']['split'](','),_0x1cad6e=_0x51ffc7[0x0]['match'](/:(.*?);/)[0x1],_0x36c11f=_0x1cad6e['split']('/')[0x1],_0x15d794=_0x12eb28['atob'](_0x51ffc7[_0x51ffc7['length']-0x1]);let _0x15bd69=_0x15d794['length'];const _0x591c73=new _0x12eb28['Uint8Array'](_0x15bd69);for(;_0x15bd69--;)_0x591c73[_0x15bd69]=_0x15d794['charCodeAt'](_0x15bd69);return new _0x12eb28['File']([_0x591c73],'image.'+_0x36c11f,{'type':_0x1cad6e});}const _0x5a0806=_0x3d643a['href']['split']('/'),_0x39f096=_0x5a0806[_0x5a0806['length']-0x1],_0x2c5fe2=_0x39f096['split']('.')[0x1];return _0x12eb28['fetch'](_0x3d643a['href'])['then'](_0xdc5ebe=>_0xdc5ebe['clone']()['blob']())['then'](_0x49b13b=>new _0x12eb28['File']([_0x49b13b],_0x39f096,{'type':'image/'+_0x2c5fe2}));}}class W extends _0x5e2484{['imageEditController'];static get['requires'](){return[_0x31776d];}['_isEditable'];constructor(_0x46c3fe){super(_0x46c3fe),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x195bab){const _0x30047b=R(_0x195bab);return _0x2ac1bd=>!(!_0x2ac1bd||!_0x2ac1bd['is']('element','imageBlock')&&!_0x2ac1bd['is']('element','imageInline'))&&(!!_0x2ac1bd['hasAttribute']('uploadcareImageId')||!!_0x2ac1bd['hasAttribute']('src')&&_0x30047b(_0x2ac1bd['getAttribute']('src')));}(_0x46c3fe['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x13b5eb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x13b5eb);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x40804f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40804f&&(_0x40804f['is']('element','imageBlock')||_0x40804f['is']('element','imageInline'))&&(this['imageEditController']=new Q(this['editor'],this['editor']['plugins']['get'](_0x31776d),_0x40804f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class Y extends _0x5e2484{['refresh'](){const _0x325238=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x325238&&(_0x325238['is']('element','imageBlock')||_0x325238['is']('element','imageInline')));}['execute'](_0x5d8a47){const _0xefdfbb=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xe2e43d=>{_0xe2e43d['setAttributes'](_0x5d8a47,_0xefdfbb),_0xe2e43d['removeAttribute']('srcset',_0xefdfbb),_0xe2e43d['removeAttribute']('sizes',_0xefdfbb);});}}class g extends _0x4bf305{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x4ff535,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x402b75}=this;_0x402b75['commands']['add']('uploadcareImageEdit',new W(_0x402b75)),_0x402b75['commands']['add']('uploadcareImageReplace',new Y(_0x402b75));}}class j extends _0x4bf305{['_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 _0x114237=this['editor'];_0x114237['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1356d8=>{const _0x4239ad=_0x114237['commands']['get']('uploadcareImageEdit'),_0x2e7b3e=new _0x5789be(_0x1356d8),t=_0x1356d8['t'];return _0x2e7b3e['set']({'icon':_0x1aa9d8,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2e7b3e['bind']('isEnabled')['to'](_0x4239ad),_0x2e7b3e['bind']('isOn')['to'](_0x4239ad,'isActive'),this['listenTo'](_0x2e7b3e,'execute',()=>{_0x114237['execute']('uploadcareImageEdit'),_0x114237['editing']['view']['focus']();}),_0x2e7b3e;}),this['_initConfig']();}['_initConfig'](){const _0x1703bf=_0x1bd771(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1703bf),this['listenTo'](this['editor'],'destroy',()=>{_0x1703bf['remove']();});}}class P extends _0x4bf305{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 _0x4901ff,Command as _0x32ac5c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x28730b,IconInstagram as _0x12f9cb,IconGooglePhotos as _0x4bd289,IconGoogleDrive as _0x2ad3a5,IconFacebook as _0x1d2b30,IconDropbox as _0x47c40f,IconUploadcareLink as _0x9fb45a,IconUploadcareImageUpload as _0x5d7aa7,IconError as et,IconUploadcareImageEdit as _0x458217}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x47720a,MenuBarMenuListItemButtonView as _0x23b642,View as _0xfcfd96,FocusCycler as _0xeda4fc,Dialog as _0x10979b,DialogViewPosition as _0x17911b,SpinnerView as _0x284b0c,IconView as at,Notification as _0x3d7aa9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x666661,DomEmitterMixin as _0x35d879,global as _0x4316cb,getAncestors as _0x2eaeb9,ObservableMixin as _0x225e56,createElement as _0x3e6b3f,uid as _0xf4ea4b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x23cf9a}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x596486,info as _0x4356d8}from'@uploadcare/upload-client';import*as _0x271920 from'@uploadcare/file-uploader';var o=function(_0xbc5e33){return _0xbc5e33['Local']='local',_0xbc5e33['URL']='url',_0xbc5e33['Dropbox']='dropbox',_0xbc5e33['GDrive']='gdrive',_0xbc5e33['Facebook']='facebook',_0xbc5e33['GPhotos']='gphotos',_0xbc5e33['Instagram']='instagram',_0xbc5e33['OneDrive']='onedrive',_0xbc5e33;}({});function x(_0x5543b3,_0x21e367,_0x173859){const t=_0x5543b3['t'],_0x909f03=_0x5543b3['t'];switch(_0x21e367){case o['Local']:return{'text':_0x909f03('Insert'===_0x173859?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x909f03('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x173859?_0x909f03('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x909f03('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['Instagram']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20Instagram':'Replace\x20with\x20Instagram'),'shortText':t('With\x20Instagram')};case o['OneDrive']:return{'text':t('Insert'===_0x173859?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x21e367;}}class e extends _0x4901ff{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5f0dce=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x26bfc2;for(const _0x36f967 in _0x5f0dce){const _0x46d32f=_0x36f967,_0x1ea270=_0x5f0dce[_0x46d32f];if('uploadcareLicenseKeyValid'==_0x1ea270||'uploadcareLicenseKeyInvalid'==_0x1ea270||'uploadcareLicenseKeyExpired'==_0x1ea270||'uploadcareLicenseKeyDomainLimit'==_0x1ea270||'uploadcareLicenseKeyNotAllowed'==_0x1ea270||'uploadcareLicenseKeyEvaluationLimit'==_0x1ea270||'uploadcareLicenseKeyTrialLimit'==_0x1ea270||'uploadcareLicenseKeyUsageLimit'==_0x1ea270){delete _0x5f0dce[_0x46d32f],_0x26bfc2=_0x1ea270,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x26bfc2&&_0x5f0dce['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2fad1c}=this,_0x326a93=_0x2fad1c['commands']['get']('uploadcare');if(!_0x326a93)return;const _0x136921=this['_normalizeConfigSourceList'](_0x2fad1c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x1678a9,_0xafa8e0)=>{const _0x1751fb=this['_getIntegrationKey'](_0xafa8e0['type']);return _0x1678a9[_0x1751fb]||(_0x1678a9[_0x1751fb]=[]),_0x1678a9[_0x1751fb]['push'](_0xafa8e0),_0x1678a9;},{});_0x2fad1c['plugins']['has']('ImageInsertUI')&&_0x2fad1c['commands']['get']('uploadcare')&&Object['entries'](_0x136921)['forEach'](([_0xc0631,_0x4ca331])=>{_0x2fad1c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0xc0631,'observable':()=>_0x326a93,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4ca331),'formViewCreator':()=>this['_createDropdownButtons'](_0x4ca331),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4ca331),'override':'assetManager'!==_0xc0631});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x50acb7){const {locale:_0x1f32a7}=this['editor'];return _0x50acb7['map'](_0x4f3b3f=>{const _0x1ed337=x(_0x1f32a7,_0x4f3b3f,'Insert');switch(_0x4f3b3f){case o['Local']:return{'icon':_0x5d7aa7,'type':o['Local'],..._0x1ed337};case o['URL']:return{'icon':_0x9fb45a,'type':o['URL'],..._0x1ed337};case o['Dropbox']:return{'icon':_0x47c40f,'type':o['Dropbox'],..._0x1ed337};case o['Facebook']:return{'icon':_0x1d2b30,'type':o['Facebook'],..._0x1ed337};case o['GDrive']:return{'icon':_0x2ad3a5,'type':o['GDrive'],..._0x1ed337};case o['GPhotos']:return{'icon':_0x4bd289,'type':o['GPhotos'],..._0x1ed337};case o['Instagram']:return{'icon':_0x12f9cb,'type':o['Instagram'],..._0x1ed337};case o['OneDrive']:return{'icon':_0x28730b,'type':o['OneDrive'],..._0x1ed337};}});}['_getIntegrationKey'](_0x23e0b0){switch(_0x23e0b0){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x24306a,_0x5f35ea){const _0x3dfb90=this['editor'],_0x57b14b=new _0x24306a(_0x3dfb90['locale']),_0x1053d1=_0x3dfb90['commands']['get']('uploadcare');return _0x57b14b['bind']('isEnabled')['to'](_0x1053d1),_0x57b14b['on']('execute',()=>{_0x1053d1['execute'](_0x5f35ea);}),_0x57b14b;}['_createToolbarButton'](_0x2a6d82){const {locale:_0x2a9f2d}=this['editor'],_0x53308c=this['editor']['plugins']['get']('ImageInsertUI'),_0xd5f6ba=_0x2a6d82[0x0],_0x3ecbe8=this['_createButton'](_0x47720a,_0xd5f6ba['type']);return _0x3ecbe8['icon']=_0xd5f6ba['icon'],_0x3ecbe8['bind']('label')['to'](_0x53308c,'isImageSelected',_0x1e1d69=>x(_0x2a9f2d,_0xd5f6ba['type'],_0x1e1d69?'Replace':'Insert')['text']),_0x3ecbe8['tooltip']=!0x0,_0x3ecbe8;}['_createDropdownButtons'](_0x1e7644){const {locale:_0xce7859}=this['editor'],_0x380879=this['editor']['plugins']['get']('ImageInsertUI');return _0x1e7644['map'](_0xf2a80=>{const _0x560f56=this['_createButton'](_0x47720a,_0xf2a80['type']);return _0x560f56['withText']=!0x0,_0x560f56['icon']=_0xf2a80['icon'],_0x560f56['bind']('label')['to'](_0x380879,'isImageSelected',_0x265ea7=>x(_0xce7859,_0xf2a80['type'],_0x265ea7?'Replace':'Insert')['text']),_0x560f56;});}['_createMenuBarButtons'](_0x46a231){return _0x46a231['map'](_0x5b8455=>{const _0xd13c4f=this['_createButton'](_0x23b642,_0x5b8455['type']);return _0xd13c4f['icon']=_0x5b8455['icon'],_0xd13c4f['label']=_0x5b8455['shortText'],_0xd13c4f;});}}class G extends _0xfcfd96{['focusTracker'];['focusCycler'];constructor(_0x275e8c){super(_0x275e8c),this['focusTracker']=new _0x666661(),this['focusCycler']=new _0xeda4fc({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class F extends G{constructor(_0x4e6747){super(_0x4e6747),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x494a84,_0x20b7d4){const _0x2bcdb4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3677dc=>_0x3677dc<=_0x20b7d4)['map'](_0x477eb1=>_0x494a84['replace'](/\/$/,'')+'/-/resize/'+_0x477eb1+'x/\x20'+_0x477eb1+'w');return{'imageFallbackUrl':_0x494a84,'imageSources':[{'srcset':_0x2bcdb4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x20b7d4+'px)\x20100vw,\x20'+_0x20b7d4+'px','type':'image/webp'}]};}function R(_0x428ac5,_0x22ba01,_0x55086f){const _0x48dc2e=_0x428ac5['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x48dc2e?parseInt(_0x48dc2e[0x1],0xa):_0x22ba01,'height':_0x48dc2e?parseInt(_0x48dc2e[0x2],0xa):_0x55086f};}function m(_0x2abce0,_0x2762a7){const _0x18fa0e=Object['create'](_0x35d879),_0x217a5f=_0x2abce0['plugins']['get']('ImageUtils'),_0x3cf5bf=_0x2abce0['editing']['mapper']['toViewElement'](_0x2762a7),_0x7389ad=_0x217a5f['findViewImgElement'](_0x3cf5bf),_0x868254=_0x2abce0['editing']['view']['domConverter']['viewToDom'](_0x7389ad),_0x233e3c=_0x2762a7['getAttribute']('width'),_0x1f0a84=_0x2762a7['getAttribute']('height'),_0x391dbf='image-processing';_0x2abce0['editing']['view']['change'](_0x4213b0=>{_0x4213b0['addClass'](_0x391dbf,_0x3cf5bf),_0x4213b0['setStyle']('aspect-ratio',_0x233e3c+'/'+_0x1f0a84,_0x7389ad);}),_0x18fa0e['listenTo'](_0x868254,'load',()=>{_0x18fa0e['stopListening'](_0x868254,'load'),_0x2abce0['editing']['view']['change'](_0x2ac13b=>{_0x2ac13b['removeClass'](_0x391dbf,_0x3cf5bf),_0x2ac13b['removeStyle']('aspect-ratio',_0x7389ad);});});}function W(_0x4ae16e){if(Array['isArray'](_0x4ae16e)){const _0x396d36=_0x4ae16e['map'](W);return _0x168c32=>_0x396d36['some'](_0x3e885e=>_0x3e885e(_0x168c32));}if('origin'==_0x4ae16e){const _0xf2be31=_0x4316cb['window']['location']['origin'];return _0x39a2f2=>new URL(_0x39a2f2,_0x4316cb['document']['baseURI'])['origin']==_0xf2be31;}return'function'==typeof _0x4ae16e?_0x4ae16e:_0x4ae16e instanceof RegExp?_0x3c4ef0=>!(!_0x3c4ef0['match'](_0x4ae16e)&&!_0x3c4ef0['replace'](/^https?:\/\//,'')['match'](_0x4ae16e)):()=>!0x1;}function T(_0x499e3f,_0x43b5ff){return _0x2eaeb9(_0x499e3f['target'])['includes'](_0x43b5ff);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x225e56(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x21c48c,_0x49a18c,_0x32b440){super(),this['_editor']=_0x21c48c,this['_editing']=_0x49a18c,this['_dialog']=_0x21c48c['plugins']['get'](_0x10979b),this['_api']=_0x49a18c['ctxElement']['getAPI'](),this['_type']=_0x32b440,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x5970fe,model:_0x249a33}=this['_editor'],_0x3f2f93=_0x249a33['document']['selection']['getSelectedElement'](),_0x4683be=_0x3f2f93&&(_0x3f2f93['is']('element','imageBlock')||_0x3f2f93['is']('element','imageInline'));this['_formView']=new F(_0x5970fe),this['_dialog']['show']({'id':'uploadCare','icon':_0x5d7aa7,'title':x(_0x5970fe,this['_type'],_0x4683be?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x17911b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x586f51=>!T(_0x586f51,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xbf3256}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5e8a98=>{const _0x40272a=_0xbf3256['length'];for(const _0x121e27 of _0xbf3256){const _0x398219=_0x121e27===_0xbf3256[_0x40272a-0x1],{cdnUrl:_0x15976f,fileInfo:_0x2409c9}=_0x121e27;if(!_0x15976f||!_0x2409c9)continue;const {width:_0x413131,height:_0x391630}=_0x2409c9['imageInfo'],_0x15fbc2=R(_0x15976f,_0x413131,_0x391630),_0x257896=E(_0x15976f,_0x15fbc2['width']),_0x38a780={'id':_0x2409c9['uuid'],'type':'image','attributes':{'imageDimension':_0x15fbc2,..._0x257896}};this['_insertAsset'](_0x38a780,_0x398219,_0x5e8a98);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5c0bad=>{'idle'===_0x5c0bad['detail']['status']&&!_0x5c0bad['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x531796,_0x5cdef5,_0x4816b7){const _0xd9d69a=this['_editor']['model']['document']['selection'],_0x2067cf=_0xd9d69a['getSelectedElement'](),_0x238389=!(!_0x2067cf||!_0x2067cf['is']('element','imageInline'));_0x4816b7['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x531796,_0x238389),_0x5cdef5||_0x4816b7['setSelection'](_0xd9d69a['getLastPosition']());}['_insertImage'](_0x377961,_0x159037){const _0x556e8d=this['_editor'],{imageDimension:_0x4e6b13,imageFallbackUrl:_0x4efd51,imageSources:_0x2b8f10}=_0x377961['attributes'];_0x556e8d['execute']('insertImage',{'imageType':_0x159037?'imageInline':null,'source':{'uploadcareImageId':_0x377961['id'],'src':_0x4efd51,'sources':_0x2b8f10,..._0x4e6b13}});}}class n extends _0x32ac5c{['_editing'];['_controller']=null;static get['requires'](){return[_0x10979b,i];}constructor(_0x28b271){super(_0x28b271),this['_editing']=_0x28b271['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x29c352){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x29c352);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x5d7caa,publicKey:_0x44dd55,signal:_0x25fd24,onProgress:_0x3d5aad}){return _0x596486(_0x5d7caa,{'publicKey':_0x44dd55,'store':'auto','signal':_0x25fd24,'onProgress':_0x3d5aad});}static['getInfo'](_0x36de79,_0x3baae0){return _0x4356d8(_0x36de79,_0x3baae0);}}class p extends _0x4901ff{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x23cf9a,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x240b76=this['editor'];if(!!!_0x240b76['config']['get']('uploadcare'))return;_0x240b76['plugins']['get'](_0x23cf9a)['createUploadAdapter']=_0x248ab1=>new A(_0x248ab1,_0x240b76),_0x240b76['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xf97afb,{imageElement:_0x2235d8,data:_0x11f6a2})=>{_0x240b76['model']['change'](_0x205a03=>{_0x205a03['setAttribute']('uploadcareImageId',_0x11f6a2['uploadcareImageId'],_0x2235d8);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x34bc00,_0x35092a){this['loader']=_0x34bc00,this['editor']=_0x35092a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x589bab=this['editor']['config']['get']('uploadcare.pubkey'),_0x2aedd8=await this['loader']['file'];return C['upload']({'file':_0x2aedd8,'publicKey':_0x589bab,'signal':this['controller']['signal'],'onProgress':_0x526734=>{_0x526734&&_0x526734['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x526734['value']);}})['then'](async _0x1c80f7=>{const {imageFallbackUrl:_0x41fd1e,imageSources:_0x32d4c3}=E(_0x1c80f7['cdnUrl'],_0x1c80f7['imageInfo']['width']);return{'uploadcareImageId':_0x1c80f7['uuid'],'default':_0x41fd1e,'sources':_0x32d4c3};})['catch'](()=>{const _0xb7022a=t('Cannot\x20upload\x20file:')+('\x20'+_0x2aedd8['name']+'.');return Promise['reject'](_0xb7022a);});}['abort'](){this['controller']['abort']();}}class i extends _0x4901ff{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x10979b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x184021=this['editor'];_0x184021['commands']['add']('uploadcare',new n(_0x184021));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x2ab629=_0x4316cb['document']['querySelector']('input[uploadcare-file-input]');_0x2ab629&&_0x2ab629['remove']();}),async function(_0x537ac4){const _0x47db38=_0x3d0f89([0x43,0x48,0x44,0x51,0x64,0x7a,0x63,0x59,0x58,0x50,0x34,0x72,0x66,0x6f,0x38,0x61,0x53,0x31,0x71,0x75,0x4d,0x78,0x74,0x32,0x55,0x46,0x6c,0x65,0x47,0x35,0x6d,0x5a,0x30,0x4c,0x79,0x6a,0x54,0x57,0x4e,0x36,0x56,0x42,0x70,0x77,0x76,0x4a,0x4f,0x73,0x37,0x41,0x52,0x6e,0x33,0x62,0x39,0x67,0x68,0x49,0x6b,0x45,0x4b,0x69]),_0x5ab45b=0x3ab88d25,_0x4cfd35=0x3abfd28d^_0x5ab45b,_0xf69522=window[_0x3d0f89([0x44,0x61,0x74,0x65])][_0x3d0f89([0x6e,0x6f,0x77])](),_0x4938e8=_0x537ac4[_0x3d0f89([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x19bc13=new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x442374=>{_0x4938e8[_0x3d0f89([0x6f,0x6e,0x63,0x65])](_0x3d0f89([0x72,0x65,0x61,0x64,0x79]),_0x442374);}),_0x5c9c9c={[_0x3d0f89([0x6b,0x74,0x79])]:_0x3d0f89([0x45,0x43]),[_0x3d0f89([0x75,0x73,0x65])]:_0x3d0f89([0x73,0x69,0x67]),[_0x3d0f89([0x63,0x72,0x76])]:_0x3d0f89([0x50,0x2d,0x32,0x35,0x36]),[_0x3d0f89([0x78])]:_0x3d0f89([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3d0f89([0x79])]:_0x3d0f89([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3d0f89([0x61,0x6c,0x67])]:_0x3d0f89([0x45,0x53,0x32,0x35,0x36])},_0x456caf=_0x4938e8[_0x3d0f89([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d0f89([0x67,0x65,0x74])](_0x3d0f89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x322358(){let _0x413b8,_0x2d84cc=null,_0x57f1c5=null;try{if(_0x456caf==_0x3d0f89([0x47,0x50,0x4c]))return _0x3d0f89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x413b8=_0x111b91(),!_0x413b8)return _0x3d0f89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x413b8[_0x3d0f89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x57f1c5=_0x40a85f(_0x413b8[_0x3d0f89([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x413b8[_0x3d0f89([0x6a,0x74,0x69])])),await _0x3153c7()?_0x26279e()?_0x139126()?_0x3d0f89([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x468240()?(_0x413b8[_0x3d0f89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d0f89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d84cc=_0x2fb0df(_0x3d0f89([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x413b8[_0x3d0f89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d0f89([0x74,0x72,0x69,0x61,0x6c])&&(_0x2d84cc=_0x2fb0df(_0x3d0f89([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2fac17()):_0x3d0f89([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d0f89([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d0f89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x155f6c){return _0x3d0f89([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x139126(){const _0x41c2e4=[_0x3d0f89([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d0f89([0x74,0x72,0x69,0x61,0x6c])][_0x3d0f89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x413b8[_0x3d0f89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf69522/0x3e8:0xe10*_0x4cfd35;return _0x413b8[_0x3d0f89([0x65,0x78,0x70])]<_0x41c2e4;}function _0x26279e(){const _0x17530f=_0x413b8[_0x3d0f89([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x17530f&&(!!_0x17530f[_0x3d0f89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0f89([0x2a]))||!!_0x17530f[_0x3d0f89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0f89([0x55,0x50,0x4c,0x43])));}function _0x468240(){const _0x132697=_0x413b8[_0x3d0f89([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x132697||0x0==_0x132697[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x244eb6}=new URL(window[_0x3d0f89([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x132697[_0x3d0f89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x244eb6))return!0x0;const _0x3d83ea=_0x244eb6[_0x3d0f89([0x73,0x70,0x6c,0x69,0x74])](_0x3d0f89([0x2e]));return _0x132697[_0x3d0f89([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5dbc39=>_0x5dbc39[_0x3d0f89([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d0f89([0x2a])))[_0x3d0f89([0x6d,0x61,0x70])](_0x159175=>_0x159175[_0x3d0f89([0x73,0x70,0x6c,0x69,0x74])](_0x3d0f89([0x2e])))[_0x3d0f89([0x73,0x6f,0x6d,0x65])](_0x1e2b85=>_0x3d83ea[_0x3d0f89([0x65,0x76,0x65,0x72,0x79])]((_0x3219fb,_0x56b676)=>_0x1e2b85[_0x56b676]===_0x3219fb||_0x1e2b85[_0x56b676]===_0x3d0f89([0x2a])));}function _0x2fac17(){return _0x2d84cc&&_0x57f1c5?new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c2779,_0x2c153c)=>{_0x2d84cc[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x5c2779,_0x2c153c),_0x57f1c5[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x15c2f8=>{_0x15c2f8!=_0x3d0f89([0x56,0x61,0x6c,0x69,0x64])&&_0x5c2779(_0x15c2f8);},_0x2c153c);}):_0x2d84cc||_0x57f1c5||_0x3d0f89([0x56,0x61,0x6c,0x69,0x64]);}}function _0x40a85f(_0x48ff3c,_0x51639c){return new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x325605=>{if(_0x39b7ce())return _0x325605(_0x3d0f89([0x56,0x61,0x6c,0x69,0x64]));_0x557fdf(),_0x4938e8[_0x3d0f89([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d0f89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c39d2=!0x1;const _0x5e259e=_0xf4ea4b();function _0x370781(_0xb6a47c){return!!_0xb6a47c&&(typeof _0xb6a47c===_0x3d0f89([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb6a47c===_0x3d0f89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb6a47c[_0x3d0f89([0x74,0x68,0x65,0x6e])]===_0x3d0f89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb6a47c[_0x3d0f89([0x63,0x61,0x74,0x63,0x68])]===_0x3d0f89([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b5511(_0x3a5c3e){_0x1238db(_0x3a5c3e)[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x31593d=>{if(!_0x31593d||_0x31593d[_0x3d0f89([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d0f89([0x6f,0x6b]))return _0x3d0f89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40ddd7(_0x2ee1ac(_0x5e259e+_0x51639c))!=_0x31593d[_0x3d0f89([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d0f89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d0f89([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x3e28f5=>(_0xc5099d(),_0x3e28f5),()=>{const _0x3ec971=_0xf707ac();return null==_0x3ec971?(_0xc5099d(),_0x3d0f89([0x56,0x61,0x6c,0x69,0x64])):_0x3d0f89(_0xf69522-_0x3ec971>(0x1eb40925^_0x5ab45b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x325605)[_0x3d0f89([0x63,0x61,0x74,0x63,0x68])](()=>{_0x325605(_0x3d0f89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2388c5=0x3a8e63a5^_0x5ab45b;function _0xc5099d(){const _0x16e346=_0x3d0f89([0x6c,0x6c,0x63,0x74,0x2d])+_0x40ddd7(_0x2ee1ac(_0x48ff3c)),_0x3539f1=_0x2ba089(_0x40ddd7(window[_0x3d0f89([0x4d,0x61,0x74,0x68])][_0x3d0f89([0x63,0x65,0x69,0x6c])](_0xf69522/_0x2388c5)));window[_0x3d0f89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d0f89([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16e346,_0x3539f1);}function _0xf707ac(){const _0x1a457d=_0x3d0f89([0x6c,0x6c,0x63,0x74,0x2d])+_0x40ddd7(_0x2ee1ac(_0x48ff3c)),_0x5125e4=window[_0x3d0f89([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d0f89([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a457d);return _0x5125e4?window[_0x3d0f89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ba089(_0x5125e4),0x10)*_0x2388c5:null;}function _0x1238db(_0xa90bc5){return new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38153f,_0xc4bf43)=>{_0xa90bc5[_0x3d0f89([0x74,0x68,0x65,0x6e])](_0x38153f,_0xc4bf43),window[_0x3d0f89([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc4bf43,0x3ab959e5^_0x5ab45b);});}}_0x4938e8[_0x3d0f89([0x6f,0x6e])](_0x3d0f89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x275fe7,_0xfaba4d)=>{if(_0xfaba4d[0x0]!=_0x48ff3c)return _0x325605(_0x3d0f89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xfaba4d[0x1]={..._0xfaba4d[0x1],[_0x3d0f89([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5e259e};},{[_0x3d0f89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d0f89([0x68,0x69,0x67,0x68])}),_0x4938e8[_0x3d0f89([0x6f,0x6e])](_0x3d0f89([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5548bb=>{_0x370781(_0x5548bb[_0x3d0f89([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c39d2=!0x0,_0x2b5511(_0x5548bb[_0x3d0f89([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d0f89([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d0f89([0x6c,0x6f,0x77])}),_0x19bc13[_0x3d0f89([0x74,0x68,0x65,0x6e])](()=>{_0x1c39d2||_0x325605(_0x3d0f89([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x39b7ce(){return _0x4938e8[_0x3d0f89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d0f89([0x76,0x69,0x65,0x77])][_0x3d0f89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d0f89([0x61,0x75,0x74,0x6f]);}function _0x557fdf(){_0x4938e8[_0x3d0f89([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d0f89([0x76,0x69,0x65,0x77])][_0x3d0f89([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d0f89([0x61,0x75,0x74,0x6f]);}}function _0x2fb0df(_0x476443){const _0x2cdcf8=[new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x166d7b=>setTimeout(_0x166d7b,0x3ab1b3e9^_0x5ab45b)),_0x19bc13[_0x3d0f89([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x462f2c=>{let _0x8e31e2=0x0;_0x4938e8[_0x3d0f89([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d0f89([0x6f,0x6e])](_0x3d0f89([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x544f30,_0x52bfb0)=>{_0x52bfb0[0x0][_0x3d0f89([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x8e31e2++,_0x8e31e2==(0x3ab88cdd^_0x5ab45b)&&(_0x462f2c(),_0x544f30[_0x3d0f89([0x6f,0x66,0x66])]());});}))];return window[_0x3d0f89([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d0f89([0x72,0x61,0x63,0x65])](_0x2cdcf8)[_0x3d0f89([0x74,0x68,0x65,0x6e])](()=>_0x476443);}async function _0x5dec1f(){await _0x19bc13,_0x4938e8[_0x3d0f89([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d0f89([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c0a56,_0x4938e8[_0x3d0f89([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d0f89([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c0a56,_0x4938e8[_0x3d0f89([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d0f89([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x9a1b8f(_0x2e9cca){const _0x532119=_0x39c288();_0x4938e8[_0x532119]=_0x3d0f89([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2e9cca,_0x2e9cca!=_0x3d0f89([0x56,0x61,0x6c,0x69,0x64])&&_0x5dec1f();}function _0x39c288(){const _0x1ca57a=window[_0x3d0f89([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d0f89([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d0f89([0x6e,0x6f,0x77])]())[_0x3d0f89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d0f89([0x2e]),'');let _0x2fa928=_0x3d0f89([0x43]);for(let _0x4f4d2e=0x0;_0x4f4d2e<_0x1ca57a[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f4d2e+=0x2){let _0x2a7c77=window[_0x3d0f89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ca57a[_0x3d0f89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f4d2e,_0x4f4d2e+0x2));_0x2a7c77>=_0x47db38[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2a7c77-=_0x47db38[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2fa928+=_0x47db38[_0x2a7c77];}return _0x2fa928;}function _0x111b91(){const _0x11ef73=_0x456caf[_0x3d0f89([0x73,0x70,0x6c,0x69,0x74])](_0x3d0f89([0x2e]));if(0x3!=_0x11ef73[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b4083(_0x11ef73[0x1]);function _0x2b4083(_0x21e0c6){const _0x46b135=_0x213761(_0x21e0c6);return _0x46b135&&_0x114118()?_0x46b135:null;function _0x114118(){const _0x44e170=_0x46b135[_0x3d0f89([0x6a,0x74,0x69])],_0xef3faa=window[_0x3d0f89([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44e170[_0x3d0f89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x44e170[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5d7fd4={..._0x46b135,[_0x3d0f89([0x6a,0x74,0x69])]:_0x44e170[_0x3d0f89([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x44e170[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5d7fd4[_0x3d0f89([0x76,0x63])],_0x2ee1ac(_0x5d7fd4)==_0xef3faa;}}}async function _0x3153c7(){let _0x2604ca=!0x0;try{const _0x3e0365=_0x456caf[_0x3d0f89([0x73,0x70,0x6c,0x69,0x74])](_0x3d0f89([0x2e])),[_0x2c5134,_0xb5ad97,_0x13f03c]=_0x3e0365;return _0x180967(_0x2c5134),await _0xb4a1f2(_0x2c5134,_0xb5ad97,_0x13f03c),_0x2604ca;}catch(_0x8e5a6){return!0x1;}function _0x180967(_0x546005){const _0x189c8f=_0x213761(_0x546005);_0x189c8f&&_0x189c8f[_0x3d0f89([0x61,0x6c,0x67])]==_0x3d0f89([0x45,0x53,0x32,0x35,0x36])||(_0x2604ca=!0x1);}async function _0xb4a1f2(_0x473a40,_0x3691e1,_0x1de087){const _0x357f17=window[_0x3d0f89([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d0f89([0x66,0x72,0x6f,0x6d])](_0x208816(_0x1de087),_0x164c94=>_0x164c94[_0x3d0f89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43581e=new window[(_0x3d0f89([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d0f89([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x473a40+_0x3d0f89([0x2e])+_0x3691e1),_0x51cbf7=window[_0x3d0f89([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d0f89([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51cbf7)return;const _0x520cd6=await _0x51cbf7[_0x3d0f89([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d0f89([0x6a,0x77,0x6b]),_0x5c9c9c,{[_0x3d0f89([0x6e,0x61,0x6d,0x65])]:_0x3d0f89([0x45,0x43,0x44,0x53,0x41]),[_0x3d0f89([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d0f89([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d0f89([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51cbf7[_0x3d0f89([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d0f89([0x6e,0x61,0x6d,0x65])]:_0x3d0f89([0x45,0x43,0x44,0x53,0x41]),[_0x3d0f89([0x68,0x61,0x73,0x68])]:{[_0x3d0f89([0x6e,0x61,0x6d,0x65])]:_0x3d0f89([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x520cd6,_0x357f17,_0x43581e)||(_0x2604ca=!0x1);}}function _0x213761(_0x152d24){return _0x152d24[_0x3d0f89([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d0f89([0x65,0x79]))?JSON[_0x3d0f89([0x70,0x61,0x72,0x73,0x65])](_0x208816(_0x152d24)):null;}function _0x208816(_0x3b843c){return window[_0x3d0f89([0x61,0x74,0x6f,0x62])](_0x3b843c[_0x3d0f89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d0f89([0x2b]))[_0x3d0f89([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d0f89([0x2f])));}function _0x2ee1ac(_0x5be43e){let _0x2f3f5f=0x1505;function _0x5e40e8(_0x4b3c9d){for(let _0x161620=0x0;_0x161620<_0x4b3c9d[_0x3d0f89([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x161620++){const _0x5da03f=_0x4b3c9d[_0x3d0f89([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x161620);_0x2f3f5f=(_0x2f3f5f<<0x5)+_0x2f3f5f+_0x5da03f,_0x2f3f5f&=_0x2f3f5f;}}function _0x50b264(_0x4e167d){Array[_0x3d0f89([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e167d)?_0x4e167d[_0x3d0f89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50b264):_0x4e167d&&typeof _0x4e167d==_0x3d0f89([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d0f89([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e167d)[_0x3d0f89([0x73,0x6f,0x72,0x74])]()[_0x3d0f89([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x56a4d4,_0x54172c])=>{_0x5e40e8(_0x56a4d4),_0x50b264(_0x54172c);}):_0x5e40e8(window[_0x3d0f89([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e167d));}return _0x50b264(_0x5be43e),_0x2f3f5f>>>0x0;}function _0x40ddd7(_0x135f5e){return _0x135f5e[_0x3d0f89([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d0f89([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d0f89([0x30]));}function _0x2ba089(_0x1efe72){return _0x1efe72[_0x3d0f89([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d0f89([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d0f89([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c0a56(){}function _0x3d0f89(_0x205de2){return _0x205de2['map'](_0x5e478a=>String['fromCharCode'](_0x5e478a))['join']('');}_0x9a1b8f(await _0x322358());}(this);}['_initSchema'](){const _0x1c9591=this['editor']['model']['schema'];_0x1c9591['isRegistered']('imageBlock')&&_0x1c9591['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1c9591['isRegistered']('imageInline')&&_0x1c9591['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x526f99=this['editor'];_0x526f99['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x526f99['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xcbe379=>_0xcbe379['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x29c75c=_0x526f99['commands']['get']('replaceImageSource');_0x29c75c&&this['listenTo'](_0x29c75c,'cleanupImage',(_0x407a4b,[_0x569b55,_0x3987fa])=>{_0x569b55['removeAttribute']('uploadcareImageId',_0x3987fa);});}['_initConfig'](){const _0x5bd62c=this['editor']['config']['get']('uploadcare.uploader')||{},_0x11dd33=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3e6b3f(_0x4316cb['document'],'uc-config',{..._0x5bd62c,'pubkey':_0x11dd33,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2d2f9f=>{if('closeMax'==_0x2d2f9f)return'#uc-icon-arrow-down';},_0x4316cb['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3e6b3f(_0x4316cb['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x4316cb['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x32fd4f=this['editor']['commands']['get']('insertImage');_0x32fd4f&&this['listenTo'](_0x32fd4f,'execute',()=>{const _0x40fabc=this['editor']['model']['document']['selection']['getSelectedElement']();_0x40fabc&&_0x40fabc['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x40fabc);});});const _0x2a0f93=this['editor']['commands']['get']('uploadcareImageReplace');_0x2a0f93&&this['listenTo'](_0x2a0f93,'execute',()=>{const _0x2e412c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2e412c&&_0x2e412c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x2e412c);});});}}class u extends _0x4901ff{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3ba357){super(_0x3ba357),_0x3ba357['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x271920['defineComponents'](_0x271920);}}class ta extends _0xfcfd96{constructor(_0x1812d2){super(_0x1812d2);const t=_0x1812d2['t'],_0x5389ff=this['bindTemplate'],_0x41a8ca=new _0x284b0c();_0x41a8ca['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x41a8ca,{'text':_0x5389ff['to']('imageUploadProgress',_0x4f3947=>t('Loading\x20image...')+'\x20('+(_0x4f3947||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0xfcfd96{constructor(_0x510cb9){super(_0x510cb9);const t=_0x510cb9['t'];this['set']('errorType',null);const _0x811770=new _0x47720a(_0x510cb9);_0x811770['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x811770['withText']=!0x0,_0x811770['class']='ck-button-action',_0x811770['on']('execute',()=>{this['fire']('retry');}),_0x811770['bind']('isVisible')['to'](this,'errorType',_0x544b56=>'NotFound'!==_0x544b56);const _0x78dc0d=new at();_0x78dc0d['content']=et,_0x78dc0d['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x46faee=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x78dc0d,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x46faee['to']('errorType',_0x1f9d16=>t('NotFound'!==_0x1f9d16?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x811770]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0xfcfd96{constructor(_0x2cb2b1,_0x71a103){super(_0x2cb2b1);const _0x2550e4=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x71a103,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x2550e4['to']('imageSrc')}});}}class ii extends G{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x28f080,_0x54c482,_0x3de692){super(_0x28f080),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x28f080),this['_errorView']=new rt(_0x28f080),this['_editingView']=new tt(_0x28f080,_0x3de692),this['_focusableView']=new _0xfcfd96(_0x28f080),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x54c482),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x36af24=>{this['_addUploadcareImageEditorListeners'](_0x36af24);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x2e025f,_0x77270e){const _0x1f44fe='uc-cloud-image-editor',_0x11bfe9=_0x2e025f['querySelector'](_0x1f44fe);if(_0x11bfe9)return _0x77270e(_0x11bfe9);const _0x1ee01b=new MutationObserver(_0x16bf49=>{const _0x2ea0d9=_0x16bf49['filter'](_0x29fcc1=>_0x29fcc1['target']===_0x2e025f&&_0x29fcc1['addedNodes']['length']>0x0&&_0x29fcc1['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x1f44fe);_0x2ea0d9['length']&&(_0x1ee01b['disconnect'](),_0x77270e(_0x2ea0d9[0x0]['addedNodes'][0x0]));});_0x1ee01b['observe'](_0x2e025f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x3aa21d){_0x3aa21d['addEventListener']('apply',_0xecec43=>{this['fire']('apply',{'imageSrc':_0xecec43['detail']['cdnUrl']});}),_0x3aa21d['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class q extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x225e56(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xaddada,_0x22cece,_0x263a54){super(),this['_editor']=_0xaddada,this['_dialog']=_0x22cece,this['_imageElement']=_0x263a54,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x2aeeca=this['_imageElement'],_0x163bc4=_0x2aeeca['getAttribute']('uploadcareImageId'),_0x130aee=_0x2aeeca['getAttribute']('src');if(_0x163bc4)await this['_loadImageInfo'](_0x163bc4,_0x130aee);else{if(this['_imageCache']['has'](_0x130aee)){const _0x39e41d=this['_imageCache']['get'](_0x130aee);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x39e41d['url'],this['imageDimension']=_0x39e41d['dimension'],this['imageId']=_0x39e41d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x380042}=this['_editor'],t=_0x380042['t'],_0x59597=new ii(_0x380042,this['imageStatus'],this['_attributes']);_0x59597['bind']('status')['to'](this,'imageStatus'),_0x59597['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x59597['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x59597['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x59597,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x458217,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x59597,'position':_0x17911b['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x59597['focus']();},'onHide':()=>{_0x59597['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x20ce46=>!T(_0x20ce46,_0x59597['element'])}});}['_loadImageInfo'](_0x1d6d4c,_0x4185d9){return C['getInfo'](_0x1d6d4c,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5f4ebb=>{const {width:_0x4028ce,height:_0x36d081}=_0x5f4ebb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4185d9,this['imageDimension']={'width':_0x4028ce,'height':_0x36d081},this['imageId']=_0x1d6d4c;})['catch'](_0x5f4f6a=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5f4f6a['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1be9df,_0x3541ee){return this['_getImageAsFile'](_0x1be9df)['then'](_0x11c3b7=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3541ee['signal'],'file':_0x11c3b7,'onProgress':_0x1d9853=>{_0x1d9853&&_0x1d9853['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1d9853['value']));}}))['then'](_0x1b9448=>{const {width:_0x4cb610,height:_0x58844f}=_0x1b9448['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b9448['cdnUrl'],this['imageDimension']={'width':_0x4cb610,'height':_0x58844f},this['imageId']=_0x1b9448['uuid'],this['imageUploadProgress']=null;const _0x9cbb20=_0x1be9df['getAttribute']('src');this['_imageCache']['set'](_0x9cbb20,{'id':_0x1b9448['uuid'],'url':_0x1b9448['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x57b588=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x57b588['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x400399,_0xf243a5){_0x400399['on']('apply',(_0x34bae2,_0x52d7b8)=>{this['_replaceImage'](_0xf243a5,_0x52d7b8['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x400399['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x400399['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x58bffc,_0x47ddf3,_0x5d22a7){const _0x53eaa1=this['_editor'],{width:_0x227020,height:_0x1883aa}=R(_0x47ddf3,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x112dee,imageSources:_0x2c02d6}=E(_0x47ddf3,_0x227020);_0x53eaa1['model']['change'](_0x6231f0=>{if('$graveyard'===_0x58bffc['root']['rootName']){_0x53eaa1['execute']('insertImage',{'imageType':_0x58bffc['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x58bffc['getAttributes']()),'uploadcareImageId':_0x5d22a7,'src':_0x112dee,'sources':_0x2c02d6,'width':_0x227020,'height':_0x1883aa}});const _0x413279=_0x58bffc['getChildren']();_0x58bffc=_0x53eaa1['model']['document']['selection']['getSelectedElement']();for(const _0x2ccdb8 of _0x413279)_0x6231f0['append'](_0x6231f0['cloneElement'](_0x2ccdb8),_0x58bffc);}else _0x6231f0['setSelection'](_0x58bffc,'on'),_0x53eaa1['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x58bffc['getAttributes']()),'uploadcareImageId':_0x5d22a7,'src':_0x112dee,'sources':_0x2c02d6,'width':_0x227020,'height':_0x1883aa},_0x58bffc);_0x6231f0['setSelection'](_0x58bffc,'on');});}async['_getImageAsFile'](_0x9f84db){const _0x129aa6=_0x4316cb['window'],_0x1a3188=_0x4316cb['document']['location']['href'],_0x3174f=new _0x129aa6['URL'](_0x9f84db['getAttribute']('src'),_0x1a3188);if('data:'===_0x3174f['protocol']){const _0x32530e=_0x3174f['href']['split'](','),_0x7592bc=_0x32530e[0x0]['match'](/:(.*?);/)[0x1],_0x3d0bd3=_0x7592bc['split']('/')[0x1],_0x191f29=_0x129aa6['atob'](_0x32530e[_0x32530e['length']-0x1]);let _0x349e09=_0x191f29['length'];const _0x456170=new _0x129aa6['Uint8Array'](_0x349e09);for(;_0x349e09--;)_0x456170[_0x349e09]=_0x191f29['charCodeAt'](_0x349e09);return new _0x129aa6['File']([_0x456170],'image.'+_0x3d0bd3,{'type':_0x7592bc});}const _0x101605=_0x3174f['href']['split']('/'),_0x4f12e5=_0x101605[_0x101605['length']-0x1],_0x20449f=_0x4f12e5['split']('.')[0x1];return _0x129aa6['fetch'](_0x3174f['href'])['then'](_0x206b57=>_0x206b57['clone']()['blob']())['then'](_0x479271=>new _0x129aa6['File']([_0x479271],_0x4f12e5,{'type':'image/'+_0x20449f}));}}class D extends _0x32ac5c{['imageEditController'];static get['requires'](){return[_0x10979b];}['_isEditable'];constructor(_0x24d9f6){super(_0x24d9f6),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x45df8b){const _0x4979fc=W(_0x45df8b);return _0xcc008a=>!(!_0xcc008a||!_0xcc008a['is']('element','imageBlock')&&!_0xcc008a['is']('element','imageInline'))&&(!!_0xcc008a['hasAttribute']('uploadcareImageId')||!!_0xcc008a['hasAttribute']('src')&&_0x4979fc(_0xcc008a['getAttribute']('src')));}(_0x24d9f6['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2b68e6=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2b68e6);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4d49f9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4d49f9&&(_0x4d49f9['is']('element','imageBlock')||_0x4d49f9['is']('element','imageInline'))&&(this['imageEditController']=new q(this['editor'],this['editor']['plugins']['get'](_0x10979b),_0x4d49f9),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x32ac5c{['refresh'](){const _0x5608fb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x5608fb&&(_0x5608fb['is']('element','imageBlock')||_0x5608fb['is']('element','imageInline')));}['execute'](_0x39e91e){const _0x314d12=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3f16e3=>{_0x3f16e3['setAttributes'](_0x39e91e,_0x314d12),_0x3f16e3['removeAttribute']('srcset',_0x314d12),_0x3f16e3['removeAttribute']('sizes',_0x314d12);});}}class g extends _0x4901ff{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3d7aa9,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x391054}=this;_0x391054['commands']['add']('uploadcareImageEdit',new D(_0x391054)),_0x391054['commands']['add']('uploadcareImageReplace',new O(_0x391054));}}class j extends _0x4901ff{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x2b505e=this['editor'];_0x2b505e['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3c25cf=>{const _0x25d6ca=_0x2b505e['commands']['get']('uploadcareImageEdit'),_0x27c59d=new _0x47720a(_0x3c25cf),t=_0x3c25cf['t'];return _0x27c59d['set']({'icon':_0x458217,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x27c59d['bind']('isEnabled')['to'](_0x25d6ca),_0x27c59d['bind']('isOn')['to'](_0x25d6ca,'isActive'),this['listenTo'](_0x27c59d,'execute',()=>{_0x2b505e['execute']('uploadcareImageEdit'),_0x2b505e['editing']['view']['focus']();}),_0x27c59d;}),this['_initConfig']();}['_initConfig'](){const _0x2c8a94=_0x3e6b3f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2c8a94),this['listenTo'](this['editor'],'destroy',()=>{_0x2c8a94['remove']();});}}class P extends _0x4901ff{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-next-
|
|
3
|
+
"version": "0.0.0-nightly-next-20250216.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-next-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-next-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20250216.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20250216.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-next-20250216.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-next-20250216.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20250216.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-next-20250216.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20250216.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-next-20250216.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
36
36
|
},
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const _0x5de9b4=_0x4e4b;(function(_0x316c88,_0xf994c8){const _0x1beed5=_0x4e4b,_0x1d554d=_0x316c88();while(!![]){try{const _0x250757=-parseInt(_0x1beed5(0x146))/0x1+-parseInt(_0x1beed5(0x114))/0x2*(-parseInt(_0x1beed5(0x13e))/0x3)+parseInt(_0x1beed5(0x14b))/0x4+-parseInt(_0x1beed5(0x14a))/0x5+-parseInt(_0x1beed5(0x134))/0x6+-parseInt(_0x1beed5(0x144))/0x7+parseInt(_0x1beed5(0x14e))/0x8*(parseInt(_0x1beed5(0x12c))/0x9);if(_0x250757===_0xf994c8)break;else _0x1d554d['push'](_0x1d554d['shift']());}catch(_0x55151a){_0x1d554d['push'](_0x1d554d['shift']());}}}(_0x2dae,0xd0817));import{IconUploadcareImageUpload as _0x4ab539}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x559ceb}from'ckeditor5/src/utils.js';import{Dialog as _0x4f7966,DialogViewPosition as _0x5a6620}from'ckeditor5/src/ui.js';import _0x3ee8a7 from'./uploadcareformview.js';import{UploadcareSource as _0x2b5fc7}from'../uploadcareconfig.js';import{getTranslation as _0x1d3768}from'../utils/common-translations.js';import{getImageUrls as _0x1046dd,getImageDimension as _0x4e91c1}from'../utils/editingutils.js';function _0x4e4b(_0x4f8510,_0x1e03b7){const _0x2dae25=_0x2dae();return _0x4e4b=function(_0x4e4b46,_0x4f4ddd){_0x4e4b46=_0x4e4b46-0x10b;let _0x13a980=_0x2dae25[_0x4e4b46];return _0x13a980;},_0x4e4b(_0x4f8510,_0x1e03b7);}function _0x2dae(){const _0x1b427d=['removeSelectionAttribute','insertImage','_initDialog','addEventListener','_insertImage','document','477BpsDDa','removeAllFiles','plugins','hide','_insertAsset','status','Replace','_editing','6529248MCmWcs','getAPI','_api','change','done-click','uploadCare','element','Local','configElement','setCurrentActivity','3ySjOKd','get','initFlow','_dialog','Insert','_initListeners','7944699iqFleg','allEntries','1647434PRXkcL','linkHref','focus','idle','3085800qHRjsy','402304psyRzE','editing','getLastPosition','616696QUAcsx','view','image','show','getSelectedElement','attributes','selection','isOpen','imageInfo','stopListening','destroy','text','_editor','imageBlock','2311222yOFCxP','doneFlow','source-list','execute','getOutputCollectionState','EDITOR_TOP_CENTER','_formView','ctxElement','imageInline','uuid','width','stopDelegating','setAttribute','setSelection','_type','length','detail','model'];_0x2dae=function(){return _0x1b427d;};return _0x2dae();}import{isAncestor as _0x11145a}from'../utils/isancestor.js';export default class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x559ceb(){[_0x5de9b4(0x112)];[_0x5de9b4(0x141)];[_0x5de9b4(0x133)];[_0x5de9b4(0x136)];[_0x5de9b4(0x122)]=null;[_0x5de9b4(0x11a)]=null;constructor(_0x38d557,_0x1da4ec,_0x3653ff){const _0x5324ae=_0x5de9b4;super(),this[_0x5324ae(0x112)]=_0x38d557,this[_0x5324ae(0x133)]=_0x1da4ec,this[_0x5324ae(0x141)]=_0x38d557[_0x5324ae(0x12e)][_0x5324ae(0x13f)](_0x4f7966),this[_0x5324ae(0x136)]=_0x1da4ec[_0x5324ae(0x11b)][_0x5324ae(0x135)](),this[_0x5324ae(0x122)]=_0x3653ff,this[_0x5324ae(0x133)][_0x5324ae(0x13c)][_0x5324ae(0x120)](_0x5324ae(0x116),this[_0x5324ae(0x122)]),this[_0x5324ae(0x128)](),this[_0x5324ae(0x143)](),this[_0x5324ae(0x136)][_0x5324ae(0x140)]();}[_0x5de9b4(0x110)](){const _0x23c521=_0x5de9b4;this[_0x23c521(0x11a)]&&(this[_0x23c521(0x11a)][_0x23c521(0x110)](),this[_0x23c521(0x11a)]=null),this[_0x23c521(0x136)]&&this[_0x23c521(0x136)][_0x23c521(0x115)](),this[_0x23c521(0x10f)](),this[_0x23c521(0x11f)]();}[_0x5de9b4(0x128)](){const _0x3dc113=_0x5de9b4,{locale:_0x4ff111,model:_0xec5621}=this[_0x3dc113(0x112)],_0x298438=_0xec5621[_0x3dc113(0x12b)][_0x3dc113(0x10c)][_0x3dc113(0x152)](),_0xcba42e=_0x298438&&(_0x298438['is'](_0x3dc113(0x13a),_0x3dc113(0x113))||_0x298438['is'](_0x3dc113(0x13a),_0x3dc113(0x11c)));this[_0x3dc113(0x11a)]=new _0x3ee8a7(_0x4ff111),this[_0x3dc113(0x141)][_0x3dc113(0x151)]({'id':_0x3dc113(0x139),'icon':_0x4ab539,'title':_0x1d3768(_0x4ff111,this[_0x3dc113(0x122)],_0xcba42e?_0x3dc113(0x132):_0x3dc113(0x142))[_0x3dc113(0x111)],'content':this[_0x3dc113(0x11a)],'position':_0x5a6620[_0x3dc113(0x119)],'isModal':!0x0,'onShow':()=>{const _0x4afe58=_0x3dc113;this[_0x4afe58(0x11a)][_0x4afe58(0x148)]();},'onHide':()=>{const _0x57d923=_0x3dc113;this[_0x57d923(0x136)][_0x57d923(0x12d)](),this[_0x57d923(0x112)][_0x57d923(0x14c)][_0x57d923(0x14f)][_0x57d923(0x148)](),this[_0x57d923(0x110)]();},'keystrokeHandlerOptions':{'filter':_0x389d02=>!_0x11145a(_0x389d02,this[_0x3dc113(0x11a)][_0x3dc113(0x13a)])}});}[_0x5de9b4(0x143)](){const _0x1547a9=_0x5de9b4;this[_0x1547a9(0x133)][_0x1547a9(0x11b)][_0x1547a9(0x129)](_0x1547a9(0x138),()=>{const _0x27ccde=_0x1547a9,{allEntries:_0x21adb1}=this[_0x27ccde(0x136)][_0x27ccde(0x118)]();this[_0x27ccde(0x112)][_0x27ccde(0x125)][_0x27ccde(0x137)](_0x40e977=>{const _0x566331=_0x27ccde,_0x484fd7=_0x21adb1[_0x566331(0x123)];for(const _0x39ed3d of _0x21adb1){const _0x4af42d=_0x39ed3d===_0x21adb1[_0x484fd7-0x1],{cdnUrl:_0xb88f73,fileInfo:_0x8f0446}=_0x39ed3d;if(!_0xb88f73||!_0x8f0446)continue;const {width:_0x393882,height:_0x154c2b}=_0x8f0446[_0x566331(0x10e)],_0x578f57=_0x4e91c1(_0xb88f73,_0x393882,_0x154c2b),_0x38f570=_0x1046dd(_0xb88f73,_0x578f57[_0x566331(0x11e)]),_0x703740={'id':_0x8f0446[_0x566331(0x11d)],'type':_0x566331(0x150),'attributes':{'imageDimension':_0x578f57,..._0x38f570}};this[_0x566331(0x130)](_0x703740,_0x4af42d,_0x40e977);}}),this[_0x27ccde(0x141)][_0x27ccde(0x12f)]();}),this[_0x1547a9(0x133)][_0x1547a9(0x11b)][_0x1547a9(0x129)](_0x1547a9(0x137),_0x1f1370=>{const _0x2d2995=_0x1547a9;_0x2d2995(0x149)===_0x1f1370[_0x2d2995(0x124)][_0x2d2995(0x131)]&&!_0x1f1370[_0x2d2995(0x124)][_0x2d2995(0x145)][_0x2d2995(0x123)]&&this[_0x2d2995(0x141)][_0x2d2995(0x10d)]&&(this[_0x2d2995(0x122)]===_0x2b5fc7[_0x2d2995(0x13b)]?this[_0x2d2995(0x136)][_0x2d2995(0x13d)](_0x2b5fc7[_0x2d2995(0x13b)]):this[_0x2d2995(0x136)][_0x2d2995(0x140)]());});}[_0x5de9b4(0x130)](_0x6284c5,_0x277726,_0x233122){const _0xa47e65=_0x5de9b4,_0xd0c108=this[_0xa47e65(0x112)][_0xa47e65(0x125)][_0xa47e65(0x12b)][_0xa47e65(0x10c)],_0xc8737a=_0xd0c108[_0xa47e65(0x152)](),_0xbc5993=!(!_0xc8737a||!_0xc8737a['is'](_0xa47e65(0x13a),_0xa47e65(0x11c)));_0x233122[_0xa47e65(0x126)](_0xa47e65(0x147)),this[_0xa47e65(0x12a)](_0x6284c5,_0xbc5993),_0x277726||_0x233122[_0xa47e65(0x121)](_0xd0c108[_0xa47e65(0x14d)]());}[_0x5de9b4(0x12a)](_0x62f1d5,_0x146a7f){const _0x297c35=_0x5de9b4,_0x541621=this[_0x297c35(0x112)],{imageDimension:_0x372cb9,imageFallbackUrl:_0x12d8c2,imageSources:_0x559698}=_0x62f1d5[_0x297c35(0x10b)];_0x541621[_0x297c35(0x117)](_0x297c35(0x127),{'imageType':_0x146a7f?_0x297c35(0x11c):null,'source':{'uploadcareImageId':_0x62f1d5['id'],'src':_0x12d8c2,'sources':_0x559698,..._0x372cb9}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xb3e975=_0x3cae;(function(_0xf57bfb,_0x4e9de3){var _0x2e0fa3=_0x3cae,_0x432571=_0xf57bfb();while(!![]){try{var _0x2533d4=parseInt(_0x2e0fa3(0x1ec))/0x1*(parseInt(_0x2e0fa3(0x1f6))/0x2)+parseInt(_0x2e0fa3(0x1ed))/0x3+parseInt(_0x2e0fa3(0x1f3))/0x4*(parseInt(_0x2e0fa3(0x1e8))/0x5)+-parseInt(_0x2e0fa3(0x1e9))/0x6*(-parseInt(_0x2e0fa3(0x1ea))/0x7)+-parseInt(_0x2e0fa3(0x1e7))/0x8*(-parseInt(_0x2e0fa3(0x1eb))/0x9)+-parseInt(_0x2e0fa3(0x1ef))/0xa+-parseInt(_0x2e0fa3(0x1f9))/0xb;if(_0x2533d4===_0x4e9de3)break;else _0x432571['push'](_0x432571['shift']());}catch(_0x178032){_0x432571['push'](_0x432571['shift']());}}}(_0x4574,0x9c017));function _0x3cae(_0x30d5b8,_0x550fcd){var _0x4574e9=_0x4574();return _0x3cae=function(_0x3caeea,_0x4333af){_0x3caeea=_0x3caeea-0x1e4;var _0x1d73e4=_0x4574e9[_0x3caeea];return _0x1d73e4;},_0x3cae(_0x30d5b8,_0x550fcd);}function _0x4574(){var _0x2740af=['382011Xsxpvq','4302TspaOW','58771YwXrEZ','3367611SNQfed','element','3133180mvVqEV','ck-uploadcare-form','uploader','div','2624HNAeVK','ck-reset_all-excluded','uc-file-uploader-inline','14IvirBW','getFocusableElement','setTemplate','16812576pWDzjk','focus','uc-light','ck-uploadcare-theme','6152qWIXta','2335OhZkjg','30jFbJBt'];_0x4574=function(){return _0x2740af;};return _0x4574();}import _0x47a339 from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';export default class F extends _0x47a339{constructor(_0x31738f){var _0xc77d4b=_0x3cae;super(_0x31738f),this[_0xc77d4b(0x1f8)]({'tag':_0xc77d4b(0x1f2),'attributes':{'class':['ck',_0xc77d4b(0x1f4),_0xc77d4b(0x1f0)],'tabindex':'-1'},'children':[{'tag':_0xc77d4b(0x1f5),'attributes':{'class':[_0xc77d4b(0x1e5),_0xc77d4b(0x1e6)],'ctx-name':_0xc77d4b(0x1f1)}},this[_0xc77d4b(0x1f7)]()]});}[_0xb3e975(0x1e4)](){var _0x4f1d2e=_0xb3e975;this[_0x4f1d2e(0x1ee)][_0x4f1d2e(0x1e4)]();}}
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2d56d8=_0x53de;(function(_0x343374,_0x2c2b15){const _0x864a6d=_0x53de,_0x1672b9=_0x343374();while(!![]){try{const _0x55f35f=parseInt(_0x864a6d(0x11d))/0x1+-parseInt(_0x864a6d(0x133))/0x2+parseInt(_0x864a6d(0x13c))/0x3+-parseInt(_0x864a6d(0x148))/0x4+parseInt(_0x864a6d(0x141))/0x5*(-parseInt(_0x864a6d(0x13f))/0x6)+parseInt(_0x864a6d(0x122))/0x7*(-parseInt(_0x864a6d(0x12e))/0x8)+-parseInt(_0x864a6d(0x14b))/0x9;if(_0x55f35f===_0x2c2b15)break;else _0x1672b9['push'](_0x1672b9['shift']());}catch(_0x20644f){_0x1672b9['push'](_0x1672b9['shift']());}}}(_0x42e8,0x546e1));import{Plugin as _0x32516a}from'ckeditor5/src/core.js';import{Dialog as _0x2d2515}from'ckeditor5/src/ui.js';import{createElement as _0x158922,global as _0x108e74,uid as _0x50595f}from'ckeditor5/src/utils.js';function _0x53de(_0x490bf7,_0x3b7c33){const _0x42e8ab=_0x42e8();return _0x53de=function(_0x53de52,_0x36a398){_0x53de52=_0x53de52-0xf9;let _0x5930ab=_0x42e8ab[_0x53de52];return _0x5930ab;},_0x53de(_0x490bf7,_0x3b7c33);}import _0x45427a from'./uploadcarecommand.js';function _0x42e8(){const _0x2bdf06=['_initImageProcessingIndicator','16scOyTD','render','imageBlock','editor','attributeToAttribute','41338ZwqMXa','fromCharCode','uploadcare','insertImage','getSelectedElement','editing','_initSchema','execute','document','1698294nZwNxi','\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','requires','6NjuxnH','once','821375SsPYTV','configElement','model','destroy','contentLanguage','locale','getAttribute','516060mJoBmG','closeMax','_initConfig','1396881anPlcL','listenTo','commands','extend','config','uploader','true','isRegistered','selection','_ctxElement','_initCtx','elementToAttribute','uc-upload-ctx-provider','uploadcare.pubkey','remove','removeAttribute','input[uploadcare-file-input]','querySelector','map','init','view','href','iconHrefResolver','downcast','ctxElement','schema','replaceImageSource','UploadcareEditing','uc-config','_initConversion','isPremiumPlugin','uploadcare.uploader','upcast','isOfficialPlugin','pluginName','#uc-icon-arrow-down','_configElement','394229qjoLHY','PictureEditing','for','imageInline','uploadcareImageReplace','508669ZCvWTf','get','add','cleanupImage','data-uc-image-id','afterInit','body','join','uploadcareImageId','appendChild','conversion'];_0x42e8=function(){return _0x2bdf06;};return _0x42e8();}import _0x64c1f6 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x142de1}from'./utils/editingutils.js';export default class i extends _0x32516a{[_0x2d56d8(0x11c)]=null;[_0x2d56d8(0x101)]=null;static get[_0x2d56d8(0x11a)](){const _0x19a4b0=_0x2d56d8;return _0x19a4b0(0x113);}static get[_0x2d56d8(0x13e)](){const _0x724e2a=_0x2d56d8;return[_0x724e2a(0x11e),_0x64c1f6,_0x2d2515];}static get[_0x2d56d8(0x119)](){return!0x0;}static get[_0x2d56d8(0x116)](){return!0x0;}get[_0x2d56d8(0x142)](){const _0x3a9643=_0x2d56d8;return this[_0x3a9643(0x11c)];}get[_0x2d56d8(0x110)](){const _0x2089ba=_0x2d56d8;return this[_0x2089ba(0x101)];}[_0x2d56d8(0x10b)](){const _0x2610b4=_0x2d56d8,_0x951889=this[_0x2610b4(0x131)];_0x951889[_0x2610b4(0xfa)][_0x2610b4(0x124)](_0x2610b4(0x135),new _0x45427a(_0x951889));}[_0x2d56d8(0x127)](){const _0x4df6c7=_0x2d56d8;this[_0x4df6c7(0x139)](),this[_0x4df6c7(0x115)](),this[_0x4df6c7(0x14a)](),this[_0x4df6c7(0x102)](),this[_0x4df6c7(0x12d)](),this[_0x4df6c7(0xf9)](this[_0x4df6c7(0x131)],_0x4df6c7(0x144),()=>{const _0xafe178=_0x4df6c7;this[_0xafe178(0x11c)]&&(this[_0xafe178(0x11c)][_0xafe178(0x106)](),this[_0xafe178(0x11c)]=null),this[_0xafe178(0x101)]&&(this[_0xafe178(0x101)][_0xafe178(0x106)](),this[_0xafe178(0x101)]=null);const _0x146430=_0x108e74[_0xafe178(0x13b)][_0xafe178(0x109)](_0xafe178(0x108));_0x146430&&_0x146430[_0xafe178(0x106)]();}),async function(_0x58d47f){const _0x16c779=_0x52eaf6([0x65,0x76,0x56,0x75,0x64,0x41,0x51,0x43,0x4e,0x57,0x63,0x4c,0x54,0x44,0x6e,0x78,0x4d,0x77,0x72,0x42,0x31,0x59,0x39,0x36,0x62,0x5a,0x46,0x48,0x58,0x73,0x4f,0x35,0x61,0x7a,0x6c,0x69,0x68,0x74,0x6f,0x47,0x53,0x30,0x50,0x33,0x52,0x6a,0x70,0x49,0x32,0x67,0x79,0x37,0x45,0x4a,0x38,0x4b,0x71,0x34,0x6d,0x55,0x66,0x6b]),_0x56665f=0x1b19ef99,_0x18ec35=0x1b1eb009^_0x56665f,_0x5f1ad2=window[_0x52eaf6([0x44,0x61,0x74,0x65])][_0x52eaf6([0x6e,0x6f,0x77])](),_0x5eadab=_0x58d47f[_0x52eaf6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1921ad=new window[(_0x52eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x260c2f=>{_0x5eadab[_0x52eaf6([0x6f,0x6e,0x63,0x65])](_0x52eaf6([0x72,0x65,0x61,0x64,0x79]),_0x260c2f);}),_0x538dd7={[_0x52eaf6([0x6b,0x74,0x79])]:_0x52eaf6([0x45,0x43]),[_0x52eaf6([0x75,0x73,0x65])]:_0x52eaf6([0x73,0x69,0x67]),[_0x52eaf6([0x63,0x72,0x76])]:_0x52eaf6([0x50,0x2d,0x32,0x35,0x36]),[_0x52eaf6([0x78])]:_0x52eaf6([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]),[_0x52eaf6([0x79])]:_0x52eaf6([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]),[_0x52eaf6([0x61,0x6c,0x67])]:_0x52eaf6([0x45,0x53,0x32,0x35,0x36])},_0x443045=_0x5eadab[_0x52eaf6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52eaf6([0x67,0x65,0x74])](_0x52eaf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3a076b(){let _0x24317a,_0x39a0a9=null,_0x223a63=null;try{if(_0x443045==_0x52eaf6([0x47,0x50,0x4c]))return _0x52eaf6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x24317a=_0x174df5(),!_0x24317a)return _0x52eaf6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x24317a[_0x52eaf6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x223a63=_0x34c1c8(_0x24317a[_0x52eaf6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x24317a[_0x52eaf6([0x6a,0x74,0x69])])),await _0x5de7fb()?_0x35a63c()?_0x5d0902()?_0x52eaf6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4163a1()?(_0x24317a[_0x52eaf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52eaf6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39a0a9=_0x17656e(_0x52eaf6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x24317a[_0x52eaf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52eaf6([0x74,0x72,0x69,0x61,0x6c])&&(_0x39a0a9=_0x17656e(_0x52eaf6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xec81f8()):_0x52eaf6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52eaf6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52eaf6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4f7476){return _0x52eaf6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5d0902(){const _0x29ac0d=[_0x52eaf6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52eaf6([0x74,0x72,0x69,0x61,0x6c])][_0x52eaf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24317a[_0x52eaf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f1ad2/0x3e8:0xe10*_0x18ec35;return _0x24317a[_0x52eaf6([0x65,0x78,0x70])]<_0x29ac0d;}function _0x35a63c(){const _0x581084=_0x24317a[_0x52eaf6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x581084&&(!!_0x581084[_0x52eaf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52eaf6([0x2a]))||!!_0x581084[_0x52eaf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52eaf6([0x55,0x50,0x4c,0x43])));}function _0x4163a1(){const _0x5bdc7c=_0x53de,_0x46c8b0=_0x24317a[_0x52eaf6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46c8b0||0x0==_0x46c8b0[_0x52eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3177ce}=new URL(window[_0x52eaf6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5bdc7c(0x10d)]);if(_0x46c8b0[_0x52eaf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3177ce))return!0x0;const _0x39b0cc=_0x3177ce[_0x52eaf6([0x73,0x70,0x6c,0x69,0x74])](_0x52eaf6([0x2e]));return _0x46c8b0[_0x52eaf6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x28e64c=>_0x28e64c[_0x52eaf6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52eaf6([0x2a])))[_0x52eaf6([0x6d,0x61,0x70])](_0x270eb6=>_0x270eb6[_0x52eaf6([0x73,0x70,0x6c,0x69,0x74])](_0x52eaf6([0x2e])))[_0x52eaf6([0x73,0x6f,0x6d,0x65])](_0xef9ce2=>_0x39b0cc[_0x52eaf6([0x65,0x76,0x65,0x72,0x79])]((_0x5484f5,_0x3a4513)=>_0xef9ce2[_0x3a4513]===_0x5484f5||_0xef9ce2[_0x3a4513]===_0x52eaf6([0x2a])));}function _0xec81f8(){return _0x39a0a9&&_0x223a63?new window[(_0x52eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a02fb,_0x2af942)=>{_0x39a0a9[_0x52eaf6([0x74,0x68,0x65,0x6e])](_0x3a02fb,_0x2af942),_0x223a63[_0x52eaf6([0x74,0x68,0x65,0x6e])](_0x4a12aa=>{_0x4a12aa!=_0x52eaf6([0x56,0x61,0x6c,0x69,0x64])&&_0x3a02fb(_0x4a12aa);},_0x2af942);}):_0x39a0a9||_0x223a63||_0x52eaf6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x34c1c8(_0x58fdd7,_0x3710c9){return new window[(_0x52eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ee50e=>{if(_0x5baa38())return _0x4ee50e(_0x52eaf6([0x56,0x61,0x6c,0x69,0x64]));_0x4a28a8(),_0x5eadab[_0x52eaf6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52eaf6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c5b70=!0x1;const _0x3f7a41=_0x50595f();function _0xe412c9(_0x59c792){return!!_0x59c792&&(typeof _0x59c792===_0x52eaf6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59c792===_0x52eaf6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59c792[_0x52eaf6([0x74,0x68,0x65,0x6e])]===_0x52eaf6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59c792[_0x52eaf6([0x63,0x61,0x74,0x63,0x68])]===_0x52eaf6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x19584d(_0x4c584c){_0x33df39(_0x4c584c)[_0x52eaf6([0x74,0x68,0x65,0x6e])](_0xd258fa=>{if(!_0xd258fa||_0xd258fa[_0x52eaf6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52eaf6([0x6f,0x6b]))return _0x52eaf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1526bb(_0x5548b4(_0x3f7a41+_0x3710c9))!=_0xd258fa[_0x52eaf6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52eaf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52eaf6([0x56,0x61,0x6c,0x69,0x64]);})[_0x52eaf6([0x74,0x68,0x65,0x6e])](_0x842c19=>(_0x27f39d(),_0x842c19),()=>{const _0xf7930d=_0x34f55e();return null==_0xf7930d?(_0x27f39d(),_0x52eaf6([0x56,0x61,0x6c,0x69,0x64])):_0x52eaf6(_0x5f1ad2-_0xf7930d>(0x3f156b99^_0x56665f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52eaf6([0x74,0x68,0x65,0x6e])](_0x4ee50e)[_0x52eaf6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ee50e(_0x52eaf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x27d186=0x1b2f0119^_0x56665f;function _0x27f39d(){const _0x1095f0=_0x52eaf6([0x6c,0x6c,0x63,0x74,0x2d])+_0x1526bb(_0x5548b4(_0x58fdd7)),_0x1854ad=_0x3e943e(_0x1526bb(window[_0x52eaf6([0x4d,0x61,0x74,0x68])][_0x52eaf6([0x63,0x65,0x69,0x6c])](_0x5f1ad2/_0x27d186)));window[_0x52eaf6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52eaf6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1095f0,_0x1854ad);}function _0x34f55e(){const _0x2d49e7=_0x52eaf6([0x6c,0x6c,0x63,0x74,0x2d])+_0x1526bb(_0x5548b4(_0x58fdd7)),_0x52a2b7=window[_0x52eaf6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52eaf6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d49e7);return _0x52a2b7?window[_0x52eaf6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e943e(_0x52a2b7),0x10)*_0x27d186:null;}function _0x33df39(_0x920437){return new window[(_0x52eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bd38c,_0x342736)=>{_0x920437[_0x52eaf6([0x74,0x68,0x65,0x6e])](_0x4bd38c,_0x342736),window[_0x52eaf6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x342736,0x1b183b59^_0x56665f);});}}_0x5eadab[_0x52eaf6([0x6f,0x6e])](_0x52eaf6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1586fc,_0x2931ff)=>{if(_0x2931ff[0x0]!=_0x58fdd7)return _0x4ee50e(_0x52eaf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2931ff[0x1]={..._0x2931ff[0x1],[_0x52eaf6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f7a41};},{[_0x52eaf6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52eaf6([0x68,0x69,0x67,0x68])}),_0x5eadab[_0x52eaf6([0x6f,0x6e])](_0x52eaf6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ca3fd=>{_0xe412c9(_0x5ca3fd[_0x52eaf6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c5b70=!0x0,_0x19584d(_0x5ca3fd[_0x52eaf6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52eaf6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52eaf6([0x6c,0x6f,0x77])}),_0x1921ad[_0x52eaf6([0x74,0x68,0x65,0x6e])](()=>{_0x3c5b70||_0x4ee50e(_0x52eaf6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5baa38(){return _0x5eadab[_0x52eaf6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52eaf6([0x76,0x69,0x65,0x77])][_0x52eaf6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52eaf6([0x61,0x75,0x74,0x6f]);}function _0x4a28a8(){_0x5eadab[_0x52eaf6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52eaf6([0x76,0x69,0x65,0x77])][_0x52eaf6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52eaf6([0x61,0x75,0x74,0x6f]);}}function _0x17656e(_0x39f924){const _0x52ef9d=[new window[(_0x52eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x337f16=>setTimeout(_0x337f16,0x1b10d155^_0x56665f)),_0x1921ad[_0x52eaf6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xda4275=>{let _0x5ce61b=0x0;_0x5eadab[_0x52eaf6([0x6d,0x6f,0x64,0x65,0x6c])][_0x52eaf6([0x6f,0x6e])](_0x52eaf6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x47d040,_0x592384)=>{_0x592384[0x0][_0x52eaf6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5ce61b++,_0x5ce61b==(0x1b19ee61^_0x56665f)&&(_0xda4275(),_0x47d040[_0x52eaf6([0x6f,0x66,0x66])]());});}))];return window[_0x52eaf6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52eaf6([0x72,0x61,0x63,0x65])](_0x52ef9d)[_0x52eaf6([0x74,0x68,0x65,0x6e])](()=>_0x39f924);}async function _0x473e10(){await _0x1921ad,_0x5eadab[_0x52eaf6([0x6d,0x6f,0x64,0x65,0x6c])][_0x52eaf6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1fcd5b,_0x5eadab[_0x52eaf6([0x6d,0x6f,0x64,0x65,0x6c])][_0x52eaf6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1fcd5b,_0x5eadab[_0x52eaf6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52eaf6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x340c04(_0x5e7d01){const _0x3bfc10=_0x4934ab();_0x5eadab[_0x3bfc10]=_0x52eaf6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e7d01,_0x5e7d01!=_0x52eaf6([0x56,0x61,0x6c,0x69,0x64])&&_0x473e10();}function _0x4934ab(){const _0x360300=window[_0x52eaf6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52eaf6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52eaf6([0x6e,0x6f,0x77])]())[_0x52eaf6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52eaf6([0x2e]),'');let _0xd01864=_0x52eaf6([0x65]);for(let _0x1ac518=0x0;_0x1ac518<_0x360300[_0x52eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ac518+=0x2){let _0x49310b=window[_0x52eaf6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x360300[_0x52eaf6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ac518,_0x1ac518+0x2));_0x49310b>=_0x16c779[_0x52eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x49310b-=_0x16c779[_0x52eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xd01864+=_0x16c779[_0x49310b];}return _0xd01864;}function _0x174df5(){const _0x1eb6ad=_0x443045[_0x52eaf6([0x73,0x70,0x6c,0x69,0x74])](_0x52eaf6([0x2e]));if(0x3!=_0x1eb6ad[_0x52eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x32b26f(_0x1eb6ad[0x1]);function _0x32b26f(_0x457d74){const _0x26e58d=_0x532c67(_0x457d74);return _0x26e58d&&_0x2b2c81()?_0x26e58d:null;function _0x2b2c81(){const _0x37b554=_0x26e58d[_0x52eaf6([0x6a,0x74,0x69])],_0x259ea2=window[_0x52eaf6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37b554[_0x52eaf6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x37b554[_0x52eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3feda8={..._0x26e58d,[_0x52eaf6([0x6a,0x74,0x69])]:_0x37b554[_0x52eaf6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x37b554[_0x52eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3feda8[_0x52eaf6([0x76,0x63])],_0x5548b4(_0x3feda8)==_0x259ea2;}}}async function _0x5de7fb(){let _0x59ed8c=!0x0;try{const _0x2873fd=_0x443045[_0x52eaf6([0x73,0x70,0x6c,0x69,0x74])](_0x52eaf6([0x2e])),[_0x150258,_0x5d782b,_0x18899c]=_0x2873fd;return _0x41dd29(_0x150258),await _0x53e856(_0x150258,_0x5d782b,_0x18899c),_0x59ed8c;}catch(_0x450b2d){return!0x1;}function _0x41dd29(_0xa7f9a1){const _0x5ce2ee=_0x532c67(_0xa7f9a1);_0x5ce2ee&&_0x5ce2ee[_0x52eaf6([0x61,0x6c,0x67])]==_0x52eaf6([0x45,0x53,0x32,0x35,0x36])||(_0x59ed8c=!0x1);}async function _0x53e856(_0x23b675,_0x46444e,_0x220c1a){const _0x461881=window[_0x52eaf6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52eaf6([0x66,0x72,0x6f,0x6d])](_0x40518c(_0x220c1a),_0x58887b=>_0x58887b[_0x52eaf6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f6fa4=new window[(_0x52eaf6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52eaf6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23b675+_0x52eaf6([0x2e])+_0x46444e),_0x484aae=window[_0x52eaf6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52eaf6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x484aae)return;const _0x1354e2=await _0x484aae[_0x52eaf6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52eaf6([0x6a,0x77,0x6b]),_0x538dd7,{[_0x52eaf6([0x6e,0x61,0x6d,0x65])]:_0x52eaf6([0x45,0x43,0x44,0x53,0x41]),[_0x52eaf6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52eaf6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52eaf6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x484aae[_0x52eaf6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52eaf6([0x6e,0x61,0x6d,0x65])]:_0x52eaf6([0x45,0x43,0x44,0x53,0x41]),[_0x52eaf6([0x68,0x61,0x73,0x68])]:{[_0x52eaf6([0x6e,0x61,0x6d,0x65])]:_0x52eaf6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1354e2,_0x461881,_0x1f6fa4)||(_0x59ed8c=!0x1);}}function _0x532c67(_0x2a517e){return _0x2a517e[_0x52eaf6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52eaf6([0x65,0x79]))?JSON[_0x52eaf6([0x70,0x61,0x72,0x73,0x65])](_0x40518c(_0x2a517e)):null;}function _0x40518c(_0x28c238){return window[_0x52eaf6([0x61,0x74,0x6f,0x62])](_0x28c238[_0x52eaf6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52eaf6([0x2b]))[_0x52eaf6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52eaf6([0x2f])));}function _0x5548b4(_0x26bd6b){let _0x22cc6f=0x1505;function _0x39d6bc(_0x3092dd){for(let _0x54cbd0=0x0;_0x54cbd0<_0x3092dd[_0x52eaf6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54cbd0++){const _0x22c01f=_0x3092dd[_0x52eaf6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x54cbd0);_0x22cc6f=(_0x22cc6f<<0x5)+_0x22cc6f+_0x22c01f,_0x22cc6f&=_0x22cc6f;}}function _0x4e8751(_0x4f42cb){Array[_0x52eaf6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f42cb)?_0x4f42cb[_0x52eaf6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e8751):_0x4f42cb&&typeof _0x4f42cb==_0x52eaf6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52eaf6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f42cb)[_0x52eaf6([0x73,0x6f,0x72,0x74])]()[_0x52eaf6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x22c841,_0x47e11b])=>{_0x39d6bc(_0x22c841),_0x4e8751(_0x47e11b);}):_0x39d6bc(window[_0x52eaf6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f42cb));}return _0x4e8751(_0x26bd6b),_0x22cc6f>>>0x0;}function _0x1526bb(_0x2b7727){return _0x2b7727[_0x52eaf6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52eaf6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52eaf6([0x30]));}function _0x3e943e(_0x34da95){return _0x34da95[_0x52eaf6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52eaf6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52eaf6([0x6a,0x6f,0x69,0x6e])]('');}function _0x1fcd5b(){}function _0x52eaf6(_0x32c637){const _0x23877d=_0x53de;return _0x32c637[_0x23877d(0x10a)](_0x2e1e24=>String[_0x23877d(0x134)](_0x2e1e24))[_0x23877d(0x129)]('');}_0x340c04(await _0x3a076b());}(this);}[_0x2d56d8(0x139)](){const _0x1c28ce=_0x2d56d8,_0x117d07=this[_0x1c28ce(0x131)][_0x1c28ce(0x143)][_0x1c28ce(0x111)];_0x117d07[_0x1c28ce(0xff)](_0x1c28ce(0x130))&&_0x117d07[_0x1c28ce(0xfb)](_0x1c28ce(0x130),{'allowAttributes':[_0x1c28ce(0x12a)]}),_0x117d07[_0x1c28ce(0xff)](_0x1c28ce(0x120))&&_0x117d07[_0x1c28ce(0xfb)](_0x1c28ce(0x120),{'allowAttributes':[_0x1c28ce(0x12a)]});}[_0x2d56d8(0x115)](){const _0xc3e28=_0x2d56d8,_0x24c664=this[_0xc3e28(0x131)];_0x24c664[_0xc3e28(0x12c)][_0xc3e28(0x11f)](_0xc3e28(0x10f))[_0xc3e28(0x132)]({'model':_0xc3e28(0x12a),'view':_0xc3e28(0x126)}),_0x24c664[_0xc3e28(0x12c)][_0xc3e28(0x11f)](_0xc3e28(0x118))[_0xc3e28(0x103)]({'model':{'key':_0xc3e28(0x12a),'value':_0x3622e2=>_0x3622e2[_0xc3e28(0x147)](_0xc3e28(0x126))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x33b59f=_0x24c664[_0xc3e28(0xfa)][_0xc3e28(0x123)](_0xc3e28(0x112));_0x33b59f&&this[_0xc3e28(0xf9)](_0x33b59f,_0xc3e28(0x125),(_0x1b0973,[_0x3992a1,_0x39ee87])=>{const _0x4e1390=_0xc3e28;_0x3992a1[_0x4e1390(0x107)](_0x4e1390(0x12a),_0x39ee87);});}[_0x2d56d8(0x14a)](){const _0x2f9806=_0x2d56d8,_0x39cc60=this[_0x2f9806(0x131)][_0x2f9806(0xfc)][_0x2f9806(0x123)](_0x2f9806(0x117))||{},_0x57e296=this[_0x2f9806(0x131)][_0x2f9806(0xfc)][_0x2f9806(0x123)](_0x2f9806(0x105))||'';this[_0x2f9806(0x11c)]=_0x158922(_0x108e74[_0x2f9806(0x13b)],_0x2f9806(0x114),{..._0x39cc60,'pubkey':_0x57e296,'ctx-name':_0x2f9806(0xfd),'sourceList':'','imgOnly':_0x2f9806(0xfe),'removeCopyright':_0x2f9806(0xfe),'localeName':this[_0x2f9806(0x131)][_0x2f9806(0x146)][_0x2f9806(0x145)],'externalSourcesEmbedCss':_0x2f9806(0x13d)}),this[_0x2f9806(0x11c)][_0x2f9806(0x10e)]=_0x232e51=>{const _0x283e95=_0x2f9806;if(_0x283e95(0x149)==_0x232e51)return _0x283e95(0x11b);},_0x108e74[_0x2f9806(0x13b)][_0x2f9806(0x128)][_0x2f9806(0x12b)](this[_0x2f9806(0x11c)]);}[_0x2d56d8(0x102)](){const _0x4d78f3=_0x2d56d8;this[_0x4d78f3(0x101)]=_0x158922(_0x108e74[_0x4d78f3(0x13b)],_0x4d78f3(0x104),{'ctx-name':_0x4d78f3(0xfd)}),_0x108e74[_0x4d78f3(0x13b)][_0x4d78f3(0x128)][_0x4d78f3(0x12b)](this[_0x4d78f3(0x101)]);}[_0x2d56d8(0x12d)](){const _0x369342=_0x2d56d8,_0x446630=this[_0x369342(0x131)][_0x369342(0xfa)][_0x369342(0x123)](_0x369342(0x136));_0x446630&&this[_0x369342(0xf9)](_0x446630,_0x369342(0x13a),()=>{const _0x3f1ce3=_0x369342,_0x12c97a=this[_0x3f1ce3(0x131)][_0x3f1ce3(0x143)][_0x3f1ce3(0x13b)][_0x3f1ce3(0x100)][_0x3f1ce3(0x137)]();_0x12c97a&&_0x12c97a[_0x3f1ce3(0x147)](_0x3f1ce3(0x12a))&&this[_0x3f1ce3(0x131)][_0x3f1ce3(0x138)][_0x3f1ce3(0x10c)][_0x3f1ce3(0x140)](_0x3f1ce3(0x12f),()=>{const _0xcfcf3a=_0x3f1ce3;_0x142de1(this[_0xcfcf3a(0x131)],_0x12c97a);});});const _0x449aeb=this[_0x369342(0x131)][_0x369342(0xfa)][_0x369342(0x123)](_0x369342(0x121));_0x449aeb&&this[_0x369342(0xf9)](_0x449aeb,_0x369342(0x13a),()=>{const _0x1c6ed9=_0x369342,_0x49e892=this[_0x1c6ed9(0x131)][_0x1c6ed9(0x143)][_0x1c6ed9(0x13b)][_0x1c6ed9(0x100)][_0x1c6ed9(0x137)]();_0x49e892&&_0x49e892[_0x1c6ed9(0x147)](_0x1c6ed9(0x12a))&&this[_0x1c6ed9(0x131)][_0x1c6ed9(0x138)][_0x1c6ed9(0x10c)][_0x1c6ed9(0x140)](_0x1c6ed9(0x12f),()=>{const _0x3dce33=_0x1c6ed9;_0x142de1(this[_0x3dce33(0x131)],_0x49e892);});});}}
|
|
23
|
+
function _0x5b94(){const _0x28b40a=['154164UolvPp','uploadcareImageId','querySelector','config','257018UmDrVU','2255510PZQFFN','input[uploadcare-file-input]','fromCharCode','getAttribute','cleanupImage','uploadcareImageReplace','body','add','schema','map','6484QnHwUw','for','data-uc-image-id','_configElement','href','isOfficialPlugin','configElement','listenTo','_initCtx','imageInline','attributeToAttribute','pluginName','6019064SlsbdH','commands','join','document','1503FKqpBd','requires','execute','uploader','_initSchema','init','editor','remove','2508ZFspkj','2696226yDoDSt','#uc-icon-arrow-down','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','render','view','extend','downcast','uploadcare.pubkey','get','upcast','editing','replaceImageSource','true','iconHrefResolver','insertImage','conversion','298590GiOeSo','selection','isRegistered','_ctxElement','model','uploadcare','afterInit','uc-upload-ctx-provider','3LukVuy','7KmuPGl','UploadcareEditing','_initConfig','contentLanguage','removeAttribute','uploadcare.uploader','isPremiumPlugin','imageBlock','_initImageProcessingIndicator','getSelectedElement','ctxElement','closeMax','36Sbkxba','uc-config','elementToAttribute','appendChild','_initConversion','locale','once','destroy','PictureEditing'];_0x5b94=function(){return _0x28b40a;};return _0x5b94();}const _0x5a98ab=_0x3df3;function _0x3df3(_0x1d79b1,_0x5352e6){const _0x5b941c=_0x5b94();return _0x3df3=function(_0x3df334,_0x1c3418){_0x3df334=_0x3df334-0x18b;let _0x1c0e1e=_0x5b941c[_0x3df334];return _0x1c0e1e;},_0x3df3(_0x1d79b1,_0x5352e6);}(function(_0xfbb783,_0x134641){const _0x52d7e2=_0x3df3,_0x56be38=_0xfbb783();while(!![]){try{const _0x3666d2=parseInt(_0x52d7e2(0x1db))/0x1*(parseInt(_0x52d7e2(0x19f))/0x2)+parseInt(_0x52d7e2(0x1ba))/0x3*(-parseInt(_0x52d7e2(0x1aa))/0x4)+parseInt(_0x52d7e2(0x1d3))/0x5+-parseInt(_0x52d7e2(0x1c3))/0x6+-parseInt(_0x52d7e2(0x1dc))/0x7*(parseInt(_0x52d7e2(0x1b6))/0x8)+parseInt(_0x52d7e2(0x192))/0x9*(-parseInt(_0x52d7e2(0x1a0))/0xa)+parseInt(_0x52d7e2(0x1c2))/0xb*(parseInt(_0x52d7e2(0x19b))/0xc);if(_0x3666d2===_0x134641)break;else _0x56be38['push'](_0x56be38['shift']());}catch(_0x4259d7){_0x56be38['push'](_0x56be38['shift']());}}}(_0x5b94,0x6fe2a));import{Plugin as _0x110210}from'ckeditor5/src/core.js';import{Dialog as _0x2374ec}from'ckeditor5/src/ui.js';import{createElement as _0x5cfb3e,global as _0x5688f2,uid as _0x1ad64c}from'ckeditor5/src/utils.js';import _0x458cc6 from'./uploadcarecommand.js';import _0x2296a9 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x15a2ae}from'./utils/editingutils.js';export default class i extends _0x110210{[_0x5a98ab(0x1ad)]=null;[_0x5a98ab(0x1d6)]=null;static get[_0x5a98ab(0x1b5)](){const _0x5a58df=_0x5a98ab;return _0x5a58df(0x1dd);}static get[_0x5a98ab(0x1bb)](){const _0x4fdcf6=_0x5a98ab;return[_0x4fdcf6(0x19a),_0x2296a9,_0x2374ec];}static get[_0x5a98ab(0x1af)](){return!0x0;}static get[_0x5a98ab(0x18c)](){return!0x0;}get[_0x5a98ab(0x1b0)](){const _0x521e5f=_0x5a98ab;return this[_0x521e5f(0x1ad)];}get[_0x5a98ab(0x190)](){const _0x235186=_0x5a98ab;return this[_0x235186(0x1d6)];}[_0x5a98ab(0x1bf)](){const _0x56c1d4=_0x5a98ab,_0x57df70=this[_0x56c1d4(0x1c0)];_0x57df70[_0x56c1d4(0x1b7)][_0x56c1d4(0x1a7)](_0x56c1d4(0x1d8),new _0x458cc6(_0x57df70));}[_0x5a98ab(0x1d9)](){const _0x44239d=_0x5a98ab;this[_0x44239d(0x1be)](),this[_0x44239d(0x196)](),this[_0x44239d(0x1de)](),this[_0x44239d(0x1b2)](),this[_0x44239d(0x18e)](),this[_0x44239d(0x1b1)](this[_0x44239d(0x1c0)],_0x44239d(0x199),()=>{const _0x259759=_0x44239d;this[_0x259759(0x1ad)]&&(this[_0x259759(0x1ad)][_0x259759(0x1c1)](),this[_0x259759(0x1ad)]=null),this[_0x259759(0x1d6)]&&(this[_0x259759(0x1d6)][_0x259759(0x1c1)](),this[_0x259759(0x1d6)]=null);const _0x14c3be=_0x5688f2[_0x259759(0x1b9)][_0x259759(0x19d)](_0x259759(0x1a1));_0x14c3be&&_0x14c3be[_0x259759(0x1c1)]();}),async function(_0x237e73){const _0x8d584c=_0x31fd3b([0x43,0x48,0x44,0x51,0x64,0x7a,0x63,0x59,0x58,0x50,0x34,0x72,0x66,0x6f,0x38,0x61,0x53,0x31,0x71,0x75,0x4d,0x78,0x74,0x32,0x55,0x46,0x6c,0x65,0x47,0x35,0x6d,0x5a,0x30,0x4c,0x79,0x6a,0x54,0x57,0x4e,0x36,0x56,0x42,0x70,0x77,0x76,0x4a,0x4f,0x73,0x37,0x41,0x52,0x6e,0x33,0x62,0x39,0x67,0x68,0x49,0x6b,0x45,0x4b,0x69]),_0x16c58b=0x3ab88d25,_0x703cc4=0x3abfd28d^_0x16c58b,_0x4119ca=window[_0x31fd3b([0x44,0x61,0x74,0x65])][_0x31fd3b([0x6e,0x6f,0x77])](),_0x2bf5bf=_0x237e73[_0x31fd3b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1ea17f=new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4af9f7=>{_0x2bf5bf[_0x31fd3b([0x6f,0x6e,0x63,0x65])](_0x31fd3b([0x72,0x65,0x61,0x64,0x79]),_0x4af9f7);}),_0xb40758={[_0x31fd3b([0x6b,0x74,0x79])]:_0x31fd3b([0x45,0x43]),[_0x31fd3b([0x75,0x73,0x65])]:_0x31fd3b([0x73,0x69,0x67]),[_0x31fd3b([0x63,0x72,0x76])]:_0x31fd3b([0x50,0x2d,0x32,0x35,0x36]),[_0x31fd3b([0x78])]:_0x31fd3b([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x31fd3b([0x79])]:_0x31fd3b([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x31fd3b([0x61,0x6c,0x67])]:_0x31fd3b([0x45,0x53,0x32,0x35,0x36])},_0x32db9c=_0x2bf5bf[_0x31fd3b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x31fd3b([0x67,0x65,0x74])](_0x31fd3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2db450(){let _0x14707a,_0x9c6875=null,_0x32e964=null;try{if(_0x32db9c==_0x31fd3b([0x47,0x50,0x4c]))return _0x31fd3b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14707a=_0x5daa3e(),!_0x14707a)return _0x31fd3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14707a[_0x31fd3b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x32e964=_0x2dae55(_0x14707a[_0x31fd3b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14707a[_0x31fd3b([0x6a,0x74,0x69])])),await _0x533d33()?_0x5eb3df()?_0x8afdfe()?_0x31fd3b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c0cef()?(_0x14707a[_0x31fd3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31fd3b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x9c6875=_0x42557e(_0x31fd3b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x14707a[_0x31fd3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x31fd3b([0x74,0x72,0x69,0x61,0x6c])&&(_0x9c6875=_0x42557e(_0x31fd3b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c911e()):_0x31fd3b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x31fd3b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x31fd3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4d8f5d){return _0x31fd3b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x8afdfe(){const _0x1235a6=[_0x31fd3b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x31fd3b([0x74,0x72,0x69,0x61,0x6c])][_0x31fd3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14707a[_0x31fd3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4119ca/0x3e8:0xe10*_0x703cc4;return _0x14707a[_0x31fd3b([0x65,0x78,0x70])]<_0x1235a6;}function _0x5eb3df(){const _0x118c88=_0x14707a[_0x31fd3b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x118c88&&(!!_0x118c88[_0x31fd3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31fd3b([0x2a]))||!!_0x118c88[_0x31fd3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31fd3b([0x55,0x50,0x4c,0x43])));}function _0x1c0cef(){const _0x5b5afa=_0x3df3,_0xd54924=_0x14707a[_0x31fd3b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd54924||0x0==_0xd54924[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1a737d}=new URL(window[_0x31fd3b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5b5afa(0x1ae)]);if(_0xd54924[_0x31fd3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a737d))return!0x0;const _0x1a0f62=_0x1a737d[_0x31fd3b([0x73,0x70,0x6c,0x69,0x74])](_0x31fd3b([0x2e]));return _0xd54924[_0x31fd3b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5106e1=>_0x5106e1[_0x31fd3b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31fd3b([0x2a])))[_0x31fd3b([0x6d,0x61,0x70])](_0x595fcd=>_0x595fcd[_0x31fd3b([0x73,0x70,0x6c,0x69,0x74])](_0x31fd3b([0x2e])))[_0x31fd3b([0x73,0x6f,0x6d,0x65])](_0xb4909f=>_0x1a0f62[_0x31fd3b([0x65,0x76,0x65,0x72,0x79])]((_0x2ca4b4,_0x3b0fb2)=>_0xb4909f[_0x3b0fb2]===_0x2ca4b4||_0xb4909f[_0x3b0fb2]===_0x31fd3b([0x2a])));}function _0x5c911e(){return _0x9c6875&&_0x32e964?new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cc105,_0x58bc6c)=>{_0x9c6875[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x3cc105,_0x58bc6c),_0x32e964[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x9c0cd=>{_0x9c0cd!=_0x31fd3b([0x56,0x61,0x6c,0x69,0x64])&&_0x3cc105(_0x9c0cd);},_0x58bc6c);}):_0x9c6875||_0x32e964||_0x31fd3b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2dae55(_0x414a2b,_0x270c49){return new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x323508=>{if(_0x11461c())return _0x323508(_0x31fd3b([0x56,0x61,0x6c,0x69,0x64]));_0x30d34b(),_0x2bf5bf[_0x31fd3b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x31fd3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c9281=!0x1;const _0x35287a=_0x1ad64c();function _0x2295b2(_0x1ffcb6){return!!_0x1ffcb6&&(typeof _0x1ffcb6===_0x31fd3b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ffcb6===_0x31fd3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ffcb6[_0x31fd3b([0x74,0x68,0x65,0x6e])]===_0x31fd3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ffcb6[_0x31fd3b([0x63,0x61,0x74,0x63,0x68])]===_0x31fd3b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29f5e2(_0x58b499){_0x179871(_0x58b499)[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x1c2bce=>{if(!_0x1c2bce||_0x1c2bce[_0x31fd3b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x31fd3b([0x6f,0x6b]))return _0x31fd3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2148cc(_0x4785c2(_0x35287a+_0x270c49))!=_0x1c2bce[_0x31fd3b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x31fd3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x31fd3b([0x56,0x61,0x6c,0x69,0x64]);})[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x5232f6=>(_0x476b2d(),_0x5232f6),()=>{const _0x57a0b9=_0x1791d1();return null==_0x57a0b9?(_0x476b2d(),_0x31fd3b([0x56,0x61,0x6c,0x69,0x64])):_0x31fd3b(_0x4119ca-_0x57a0b9>(0x1eb40925^_0x16c58b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x323508)[_0x31fd3b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x323508(_0x31fd3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x113888=0x3a8e63a5^_0x16c58b;function _0x476b2d(){const _0x201ddb=_0x31fd3b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2148cc(_0x4785c2(_0x414a2b)),_0x577179=_0x4c5ee3(_0x2148cc(window[_0x31fd3b([0x4d,0x61,0x74,0x68])][_0x31fd3b([0x63,0x65,0x69,0x6c])](_0x4119ca/_0x113888)));window[_0x31fd3b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31fd3b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x201ddb,_0x577179);}function _0x1791d1(){const _0x26fe60=_0x31fd3b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2148cc(_0x4785c2(_0x414a2b)),_0x395d73=window[_0x31fd3b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x31fd3b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26fe60);return _0x395d73?window[_0x31fd3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c5ee3(_0x395d73),0x10)*_0x113888:null;}function _0x179871(_0xcec931){return new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e8f37,_0x37965a)=>{_0xcec931[_0x31fd3b([0x74,0x68,0x65,0x6e])](_0x5e8f37,_0x37965a),window[_0x31fd3b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37965a,0x3ab959e5^_0x16c58b);});}}_0x2bf5bf[_0x31fd3b([0x6f,0x6e])](_0x31fd3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x351af6,_0x301a9c)=>{if(_0x301a9c[0x0]!=_0x414a2b)return _0x323508(_0x31fd3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x301a9c[0x1]={..._0x301a9c[0x1],[_0x31fd3b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x35287a};},{[_0x31fd3b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31fd3b([0x68,0x69,0x67,0x68])}),_0x2bf5bf[_0x31fd3b([0x6f,0x6e])](_0x31fd3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x15c785=>{_0x2295b2(_0x15c785[_0x31fd3b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c9281=!0x0,_0x29f5e2(_0x15c785[_0x31fd3b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x31fd3b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x31fd3b([0x6c,0x6f,0x77])}),_0x1ea17f[_0x31fd3b([0x74,0x68,0x65,0x6e])](()=>{_0x4c9281||_0x323508(_0x31fd3b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x11461c(){return _0x2bf5bf[_0x31fd3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31fd3b([0x76,0x69,0x65,0x77])][_0x31fd3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x31fd3b([0x61,0x75,0x74,0x6f]);}function _0x30d34b(){_0x2bf5bf[_0x31fd3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31fd3b([0x76,0x69,0x65,0x77])][_0x31fd3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31fd3b([0x61,0x75,0x74,0x6f]);}}function _0x42557e(_0x28d723){const _0x307394=[new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x211a2b=>setTimeout(_0x211a2b,0x3ab1b3e9^_0x16c58b)),_0x1ea17f[_0x31fd3b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a3487=>{let _0x14dfe6=0x0;_0x2bf5bf[_0x31fd3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31fd3b([0x6f,0x6e])](_0x31fd3b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20061d,_0x3fd735)=>{_0x3fd735[0x0][_0x31fd3b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14dfe6++,_0x14dfe6==(0x3ab88cdd^_0x16c58b)&&(_0x2a3487(),_0x20061d[_0x31fd3b([0x6f,0x66,0x66])]());});}))];return window[_0x31fd3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31fd3b([0x72,0x61,0x63,0x65])](_0x307394)[_0x31fd3b([0x74,0x68,0x65,0x6e])](()=>_0x28d723);}async function _0x22522d(){await _0x1ea17f,_0x2bf5bf[_0x31fd3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31fd3b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3a4a6f,_0x2bf5bf[_0x31fd3b([0x6d,0x6f,0x64,0x65,0x6c])][_0x31fd3b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3a4a6f,_0x2bf5bf[_0x31fd3b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x31fd3b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x53936e(_0x6f248f){const _0x2fa316=_0x4aa5fe();_0x2bf5bf[_0x2fa316]=_0x31fd3b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6f248f,_0x6f248f!=_0x31fd3b([0x56,0x61,0x6c,0x69,0x64])&&_0x22522d();}function _0x4aa5fe(){const _0x181426=window[_0x31fd3b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x31fd3b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x31fd3b([0x6e,0x6f,0x77])]())[_0x31fd3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x31fd3b([0x2e]),'');let _0x17ab51=_0x31fd3b([0x43]);for(let _0x5048fb=0x0;_0x5048fb<_0x181426[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5048fb+=0x2){let _0x2f4514=window[_0x31fd3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x181426[_0x31fd3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5048fb,_0x5048fb+0x2));_0x2f4514>=_0x8d584c[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f4514-=_0x8d584c[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x17ab51+=_0x8d584c[_0x2f4514];}return _0x17ab51;}function _0x5daa3e(){const _0x49458e=_0x32db9c[_0x31fd3b([0x73,0x70,0x6c,0x69,0x74])](_0x31fd3b([0x2e]));if(0x3!=_0x49458e[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5cb1de(_0x49458e[0x1]);function _0x5cb1de(_0x453dfa){const _0x5705f3=_0x2b9af6(_0x453dfa);return _0x5705f3&&_0x11573f()?_0x5705f3:null;function _0x11573f(){const _0x4e16c3=_0x5705f3[_0x31fd3b([0x6a,0x74,0x69])],_0x389cfa=window[_0x31fd3b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e16c3[_0x31fd3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e16c3[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2250ae={..._0x5705f3,[_0x31fd3b([0x6a,0x74,0x69])]:_0x4e16c3[_0x31fd3b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4e16c3[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2250ae[_0x31fd3b([0x76,0x63])],_0x4785c2(_0x2250ae)==_0x389cfa;}}}async function _0x533d33(){let _0x459943=!0x0;try{const _0x13fd3d=_0x32db9c[_0x31fd3b([0x73,0x70,0x6c,0x69,0x74])](_0x31fd3b([0x2e])),[_0x4ca521,_0x19f26b,_0x240da6]=_0x13fd3d;return _0x3c73e7(_0x4ca521),await _0x323624(_0x4ca521,_0x19f26b,_0x240da6),_0x459943;}catch(_0x53dfde){return!0x1;}function _0x3c73e7(_0x2c1e7c){const _0xb586b4=_0x2b9af6(_0x2c1e7c);_0xb586b4&&_0xb586b4[_0x31fd3b([0x61,0x6c,0x67])]==_0x31fd3b([0x45,0x53,0x32,0x35,0x36])||(_0x459943=!0x1);}async function _0x323624(_0x6a854,_0x2497e5,_0x47ed0a){const _0x1e2ac3=window[_0x31fd3b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x31fd3b([0x66,0x72,0x6f,0x6d])](_0x57e151(_0x47ed0a),_0xf24681=>_0xf24681[_0x31fd3b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47b456=new window[(_0x31fd3b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x31fd3b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x6a854+_0x31fd3b([0x2e])+_0x2497e5),_0x5d3030=window[_0x31fd3b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x31fd3b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d3030)return;const _0x930352=await _0x5d3030[_0x31fd3b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x31fd3b([0x6a,0x77,0x6b]),_0xb40758,{[_0x31fd3b([0x6e,0x61,0x6d,0x65])]:_0x31fd3b([0x45,0x43,0x44,0x53,0x41]),[_0x31fd3b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x31fd3b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x31fd3b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d3030[_0x31fd3b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x31fd3b([0x6e,0x61,0x6d,0x65])]:_0x31fd3b([0x45,0x43,0x44,0x53,0x41]),[_0x31fd3b([0x68,0x61,0x73,0x68])]:{[_0x31fd3b([0x6e,0x61,0x6d,0x65])]:_0x31fd3b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x930352,_0x1e2ac3,_0x47b456)||(_0x459943=!0x1);}}function _0x2b9af6(_0x39cdbb){return _0x39cdbb[_0x31fd3b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x31fd3b([0x65,0x79]))?JSON[_0x31fd3b([0x70,0x61,0x72,0x73,0x65])](_0x57e151(_0x39cdbb)):null;}function _0x57e151(_0x4baeec){return window[_0x31fd3b([0x61,0x74,0x6f,0x62])](_0x4baeec[_0x31fd3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x31fd3b([0x2b]))[_0x31fd3b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x31fd3b([0x2f])));}function _0x4785c2(_0x13a70d){let _0x398e4b=0x1505;function _0x39ebbc(_0x4c85bf){for(let _0x2aa2a3=0x0;_0x2aa2a3<_0x4c85bf[_0x31fd3b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2aa2a3++){const _0x4076b0=_0x4c85bf[_0x31fd3b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2aa2a3);_0x398e4b=(_0x398e4b<<0x5)+_0x398e4b+_0x4076b0,_0x398e4b&=_0x398e4b;}}function _0x52b2cd(_0x13183b){Array[_0x31fd3b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x13183b)?_0x13183b[_0x31fd3b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x52b2cd):_0x13183b&&typeof _0x13183b==_0x31fd3b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x31fd3b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x13183b)[_0x31fd3b([0x73,0x6f,0x72,0x74])]()[_0x31fd3b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3076ea,_0x2abfc4])=>{_0x39ebbc(_0x3076ea),_0x52b2cd(_0x2abfc4);}):_0x39ebbc(window[_0x31fd3b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x13183b));}return _0x52b2cd(_0x13a70d),_0x398e4b>>>0x0;}function _0x2148cc(_0x50cb02){return _0x50cb02[_0x31fd3b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x31fd3b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x31fd3b([0x30]));}function _0x4c5ee3(_0x329f11){return _0x329f11[_0x31fd3b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x31fd3b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x31fd3b([0x6a,0x6f,0x69,0x6e])]('');}function _0x3a4a6f(){}function _0x31fd3b(_0x49cb99){const _0x270c88=_0x3df3;return _0x49cb99[_0x270c88(0x1a9)](_0x10ff2b=>String[_0x270c88(0x1a2)](_0x10ff2b))[_0x270c88(0x1b8)]('');}_0x53936e(await _0x2db450());}(this);}[_0x5a98ab(0x1be)](){const _0x42d885=_0x5a98ab,_0x240c65=this[_0x42d885(0x1c0)][_0x42d885(0x1d7)][_0x42d885(0x1a8)];_0x240c65[_0x42d885(0x1d5)](_0x42d885(0x18d))&&_0x240c65[_0x42d885(0x1c8)](_0x42d885(0x18d),{'allowAttributes':[_0x42d885(0x19c)]}),_0x240c65[_0x42d885(0x1d5)](_0x42d885(0x1b3))&&_0x240c65[_0x42d885(0x1c8)](_0x42d885(0x1b3),{'allowAttributes':[_0x42d885(0x19c)]});}[_0x5a98ab(0x196)](){const _0x1bdfcd=_0x5a98ab,_0x9350fe=this[_0x1bdfcd(0x1c0)];_0x9350fe[_0x1bdfcd(0x1d2)][_0x1bdfcd(0x1ab)](_0x1bdfcd(0x1c9))[_0x1bdfcd(0x1b4)]({'model':_0x1bdfcd(0x19c),'view':_0x1bdfcd(0x1ac)}),_0x9350fe[_0x1bdfcd(0x1d2)][_0x1bdfcd(0x1ab)](_0x1bdfcd(0x1cc))[_0x1bdfcd(0x194)]({'model':{'key':_0x1bdfcd(0x19c),'value':_0x1165ff=>_0x1165ff[_0x1bdfcd(0x1a3)](_0x1bdfcd(0x1ac))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x750518=_0x9350fe[_0x1bdfcd(0x1b7)][_0x1bdfcd(0x1cb)](_0x1bdfcd(0x1ce));_0x750518&&this[_0x1bdfcd(0x1b1)](_0x750518,_0x1bdfcd(0x1a4),(_0x2588ce,[_0x14519b,_0x385705])=>{const _0x5a2e59=_0x1bdfcd;_0x14519b[_0x5a2e59(0x1e0)](_0x5a2e59(0x19c),_0x385705);});}[_0x5a98ab(0x1de)](){const _0x4c05da=_0x5a98ab,_0x391126=this[_0x4c05da(0x1c0)][_0x4c05da(0x19e)][_0x4c05da(0x1cb)](_0x4c05da(0x18b))||{},_0x1989e2=this[_0x4c05da(0x1c0)][_0x4c05da(0x19e)][_0x4c05da(0x1cb)](_0x4c05da(0x1ca))||'';this[_0x4c05da(0x1ad)]=_0x5cfb3e(_0x5688f2[_0x4c05da(0x1b9)],_0x4c05da(0x193),{..._0x391126,'pubkey':_0x1989e2,'ctx-name':_0x4c05da(0x1bd),'sourceList':'','imgOnly':_0x4c05da(0x1cf),'removeCopyright':_0x4c05da(0x1cf),'localeName':this[_0x4c05da(0x1c0)][_0x4c05da(0x197)][_0x4c05da(0x1df)],'externalSourcesEmbedCss':_0x4c05da(0x1c5)}),this[_0x4c05da(0x1ad)][_0x4c05da(0x1d0)]=_0x554ce4=>{const _0x4fb49e=_0x4c05da;if(_0x4fb49e(0x191)==_0x554ce4)return _0x4fb49e(0x1c4);},_0x5688f2[_0x4c05da(0x1b9)][_0x4c05da(0x1a6)][_0x4c05da(0x195)](this[_0x4c05da(0x1ad)]);}[_0x5a98ab(0x1b2)](){const _0x391d3d=_0x5a98ab;this[_0x391d3d(0x1d6)]=_0x5cfb3e(_0x5688f2[_0x391d3d(0x1b9)],_0x391d3d(0x1da),{'ctx-name':_0x391d3d(0x1bd)}),_0x5688f2[_0x391d3d(0x1b9)][_0x391d3d(0x1a6)][_0x391d3d(0x195)](this[_0x391d3d(0x1d6)]);}[_0x5a98ab(0x18e)](){const _0x5b9355=_0x5a98ab,_0x529a52=this[_0x5b9355(0x1c0)][_0x5b9355(0x1b7)][_0x5b9355(0x1cb)](_0x5b9355(0x1d1));_0x529a52&&this[_0x5b9355(0x1b1)](_0x529a52,_0x5b9355(0x1bc),()=>{const _0x1545ab=_0x5b9355,_0x3f09d6=this[_0x1545ab(0x1c0)][_0x1545ab(0x1d7)][_0x1545ab(0x1b9)][_0x1545ab(0x1d4)][_0x1545ab(0x18f)]();_0x3f09d6&&_0x3f09d6[_0x1545ab(0x1a3)](_0x1545ab(0x19c))&&this[_0x1545ab(0x1c0)][_0x1545ab(0x1cd)][_0x1545ab(0x1c7)][_0x1545ab(0x198)](_0x1545ab(0x1c6),()=>{const _0x505f5c=_0x1545ab;_0x15a2ae(this[_0x505f5c(0x1c0)],_0x3f09d6);});});const _0x49f353=this[_0x5b9355(0x1c0)][_0x5b9355(0x1b7)][_0x5b9355(0x1cb)](_0x5b9355(0x1a5));_0x49f353&&this[_0x5b9355(0x1b1)](_0x49f353,_0x5b9355(0x1bc),()=>{const _0x1ea61c=_0x5b9355,_0x3a98b1=this[_0x1ea61c(0x1c0)][_0x1ea61c(0x1d7)][_0x1ea61c(0x1b9)][_0x1ea61c(0x1d4)][_0x1ea61c(0x18f)]();_0x3a98b1&&_0x3a98b1[_0x1ea61c(0x1a3)](_0x1ea61c(0x19c))&&this[_0x1ea61c(0x1c0)][_0x1ea61c(0x1cd)][_0x1ea61c(0x1c7)][_0x1ea61c(0x198)](_0x1ea61c(0x1c6),()=>{const _0x2b4535=_0x1ea61c;_0x15a2ae(this[_0x2b4535(0x1c0)],_0x3a98b1);});});}}
|