@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250525.0 → 0.0.0-nightly-20250526.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/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x3b3d22,Command as _0x1376a6}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xcbaf02,IconGooglePhotos as _0x3343e4,IconGoogleDrive as _0x55ec43,IconFacebook as _0xca1371,IconDropbox as _0x4c4c68,IconUploadcareLink as _0x174dcf,IconUploadcareImageUpload as _0x225132,IconError as et,IconUploadcareImageEdit as _0xb1f3f5}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0xeb584,MenuBarMenuListItemButtonView as _0x4cc523,View as _0x182c89,FocusCycler as _0x2b684a,Dialog as _0x137a31,DialogViewPosition as _0x34e3d0,SpinnerView as _0x60a5d7,IconView as at,Notification as _0x27d959}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2c3bfc,DomEmitterMixin as _0x3102e1,global as _0x261a41,getAncestors as _0x3932f5,ObservableMixin as _0x9d7baf,createElement as _0x3c19db,uid as _0x3d74a3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x493b29}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x2d74d5,info as _0x1565af}from'@uploadcare/upload-client';import*as _0x4b5396 from'@uploadcare/file-uploader';var o=function(_0x4451fb){return _0x4451fb['Local']='local',_0x4451fb['URL']='url',_0x4451fb['Dropbox']='dropbox',_0x4451fb['GDrive']='gdrive',_0x4451fb['Facebook']='facebook',_0x4451fb['GPhotos']='gphotos',_0x4451fb['OneDrive']='onedrive',_0x4451fb;}({});function _(_0x403f8f,_0x38153f,_0xfa3e62){const t=_0x403f8f['t'],_0x5dfe50=_0x403f8f['t'];switch(_0x38153f){case o['Local']:return{'text':_0x5dfe50('Insert'===_0xfa3e62?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5dfe50('From\x20computer')};case o['URL']:return{'text':'Insert'===_0xfa3e62?_0x5dfe50('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5dfe50('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0xfa3e62?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0xfa3e62?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0xfa3e62?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0xfa3e62?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0xfa3e62?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x38153f;}}class e extends _0x3b3d22{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'UploadcareUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x417b47=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b1de0;for(const _0x3ff645 in _0x417b47){const _0x205421=_0x3ff645,_0x264c14=_0x417b47[_0x205421];if('uploadcareLicenseKeyValid'==_0x264c14||'uploadcareLicenseKeyInvalid'==_0x264c14||'uploadcareLicenseKeyExpired'==_0x264c14||'uploadcareLicenseKeyDomainLimit'==_0x264c14||'uploadcareLicenseKeyNotAllowed'==_0x264c14||'uploadcareLicenseKeyEvaluationLimit'==_0x264c14||'uploadcareLicenseKeyTrialLimit'==_0x264c14||'uploadcareLicenseKeyUsageLimit'==_0x264c14){delete _0x417b47[_0x205421],_0x4b1de0=_0x264c14,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4b1de0&&_0x417b47['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4b1de0&&_0x417b47['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4b1de0&&_0x417b47['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4b1de0&&_0x417b47['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4b1de0&&_0x417b47['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4b1de0&&_0x417b47['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4b1de0&&_0x417b47['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3031ee}=this,_0x36d82b=_0x3031ee['commands']['get']('uploadcare');if(!_0x36d82b)return;const _0x127273=this['_normalizeConfigSourceList'](_0x3031ee['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5bc299,_0x3937e3)=>{const _0x864355=this['_getIntegrationKey'](_0x3937e3['type']);return _0x5bc299[_0x864355]||(_0x5bc299[_0x864355]=[]),_0x5bc299[_0x864355]['push'](_0x3937e3),_0x5bc299;},{});_0x3031ee['plugins']['has']('ImageInsertUI')&&_0x3031ee['commands']['get']('uploadcare')&&Object['entries'](_0x127273)['forEach'](([_0x4e34d2,_0x17079c])=>{_0x3031ee['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x4e34d2,'observable':()=>_0x36d82b,'buttonViewCreator':()=>this['_createToolbarButton'](_0x17079c),'formViewCreator':()=>this['_createDropdownButtons'](_0x17079c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x17079c),'override':'assetManager'!==_0x4e34d2});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x12b790){const {locale:_0x3b3f03}=this['editor'];return _0x12b790['map'](_0x2dc547=>{const _0x5d818e=_(_0x3b3f03,_0x2dc547,'Insert');switch(_0x2dc547){case o['Local']:return{'icon':_0x225132,'type':o['Local'],..._0x5d818e};case o['URL']:return{'icon':_0x174dcf,'type':o['URL'],..._0x5d818e};case o['Dropbox']:return{'icon':_0x4c4c68,'type':o['Dropbox'],..._0x5d818e};case o['Facebook']:return{'icon':_0xca1371,'type':o['Facebook'],..._0x5d818e};case o['GDrive']:return{'icon':_0x55ec43,'type':o['GDrive'],..._0x5d818e};case o['GPhotos']:return{'icon':_0x3343e4,'type':o['GPhotos'],..._0x5d818e};case o['OneDrive']:return{'icon':_0xcbaf02,'type':o['OneDrive'],..._0x5d818e};}});}['_getIntegrationKey'](_0x379ac0){switch(_0x379ac0){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x3cfeb6,_0x5ea0ed){const _0x366af1=this['editor'],_0xf4a397=new _0x3cfeb6(_0x366af1['locale']),_0x574611=_0x366af1['commands']['get']('uploadcare');return _0xf4a397['bind']('isEnabled')['to'](_0x574611),_0xf4a397['on']('execute',()=>{_0x574611['execute'](_0x5ea0ed);}),_0xf4a397;}['_createToolbarButton'](_0x59fc06){const {locale:_0x2a5462}=this['editor'],_0x13a340=this['editor']['plugins']['get']('ImageInsertUI'),_0xdac4f9=_0x59fc06[0x0],_0x420e70=this['_createButton'](_0xeb584,_0xdac4f9['type']);return _0x420e70['icon']=_0xdac4f9['icon'],_0x420e70['bind']('label')['to'](_0x13a340,'isImageSelected',_0x1a0294=>_(_0x2a5462,_0xdac4f9['type'],_0x1a0294?'Replace':'Insert')['text']),_0x420e70['tooltip']=!0x0,_0x420e70;}['_createDropdownButtons'](_0x37e644){const {locale:_0xb5373c}=this['editor'],_0x34003b=this['editor']['plugins']['get']('ImageInsertUI');return _0x37e644['map'](_0x348195=>{const _0x44d2ec=this['_createButton'](_0xeb584,_0x348195['type']);return _0x44d2ec['withText']=!0x0,_0x44d2ec['icon']=_0x348195['icon'],_0x44d2ec['bind']('label')['to'](_0x34003b,'isImageSelected',_0x27ed00=>_(_0xb5373c,_0x348195['type'],_0x27ed00?'Replace':'Insert')['text']),_0x44d2ec;});}['_createMenuBarButtons'](_0x197afb){return _0x197afb['map'](_0x2115d1=>{const _0xbbfefd=this['_createButton'](_0x4cc523,_0x2115d1['type']);return _0xbbfefd['icon']=_0x2115d1['icon'],_0xbbfefd['label']=_0x2115d1['shortText'],_0xbbfefd;});}}class q extends _0x182c89{['focusTracker'];['focusCycler'];constructor(_0x452f8a){super(_0x452f8a),this['focusTracker']=new _0x2c3bfc(),this['focusCycler']=new _0x2b684a({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x2b6070){super(_0x2b6070),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x1ddf85,_0x44ba56){const _0xf81c1=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3ef305=>_0x3ef305<=_0x44ba56)['map'](_0x14ad68=>_0x1ddf85['replace'](/\/$/,'')+'/-/resize/'+_0x14ad68+'x/\x20'+_0x14ad68+'w');return{'imageFallbackUrl':_0x1ddf85,'imageSources':[{'srcset':_0xf81c1['join'](',\x20'),'sizes':'(max-width:\x20'+_0x44ba56+'px)\x20100vw,\x20'+_0x44ba56+'px','type':'image/webp'}]};}function A(_0x232a19,_0x3253bc,_0x2442b4){const _0x119090=_0x232a19['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x119090?parseInt(_0x119090[0x1],0xa):_0x3253bc,'height':_0x119090?parseInt(_0x119090[0x2],0xa):_0x2442b4};}function m(_0x171bc5,_0x2db910){const _0x19409f=Object['create'](_0x3102e1),_0x2f0fed=_0x171bc5['plugins']['get']('ImageUtils'),_0x15c3c8=_0x171bc5['editing']['mapper']['toViewElement'](_0x2db910),_0x4e5bed=_0x2f0fed['findViewImgElement'](_0x15c3c8),_0x412636=_0x171bc5['editing']['view']['domConverter']['viewToDom'](_0x4e5bed),_0x4e9147=_0x2db910['getAttribute']('width'),_0x74e03c=_0x2db910['getAttribute']('height'),_0xb03a5a='image-processing';_0x171bc5['editing']['view']['change'](_0x388b8b=>{_0x388b8b['addClass'](_0xb03a5a,_0x15c3c8),_0x388b8b['setStyle']('aspect-ratio',_0x4e9147+'/'+_0x74e03c,_0x4e5bed);}),_0x19409f['listenTo'](_0x412636,'load',()=>{_0x19409f['stopListening'](_0x412636,'load'),_0x171bc5['editing']['view']['change'](_0xeea451=>{_0xeea451['removeClass'](_0xb03a5a,_0x15c3c8),_0xeea451['removeStyle']('aspect-ratio',_0x4e5bed);});});}function R(_0x29916a){if(Array['isArray'](_0x29916a)){const _0xb2fecd=_0x29916a['map'](R);return _0x1bbcba=>_0xb2fecd['some'](_0x3a5415=>_0x3a5415(_0x1bbcba));}if('origin'==_0x29916a){const _0x535a37=_0x261a41['window']['location']['origin'];return _0x52b1bc=>new URL(_0x52b1bc,_0x261a41['document']['baseURI'])['origin']==_0x535a37;}return'function'==typeof _0x29916a?_0x29916a:_0x29916a instanceof RegExp?_0x2df8aa=>!(!_0x2df8aa['match'](_0x29916a)&&!_0x2df8aa['replace'](/^https?:\/\//,'')['match'](_0x29916a)):()=>!0x1;}function F(_0x42dd1e,_0x5c236e){return _0x3932f5(_0x42dd1e['target'])['includes'](_0x5c236e);}class l extends/* #__PURE__ -- @preserve */
24
- _0x9d7baf(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x55f452,_0x3bec7e,_0x4b2090){super(),this['_editor']=_0x55f452,this['_editing']=_0x3bec7e,this['_dialog']=_0x55f452['plugins']['get'](_0x137a31),this['_api']=_0x3bec7e['ctxElement']['getAPI'](),this['_type']=_0x4b2090,this['_editing']['configElement']['setAttribute']('source-list',this['_type']),this['_initDialog'](),this['_initListeners'](),this['_api']['initFlow']();}['destroy'](){this['_formView']&&(this['_formView']['destroy'](),this['_formView']=null),this['_api']&&this['_api']['doneFlow'](),this['stopListening'](),this['stopDelegating']();}['_initDialog'](){const {locale:_0x31b2ec,model:_0x2ddab2}=this['_editor'],_0x2416cc=_0x2ddab2['document']['selection']['getSelectedElement'](),_0x5a58b4=_0x2416cc&&(_0x2416cc['is']('element','imageBlock')||_0x2416cc['is']('element','imageInline'));this['_formView']=new S(_0x31b2ec),this['_dialog']['show']({'id':'uploadCare','icon':_0x225132,'title':_(_0x31b2ec,this['_type'],_0x5a58b4?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x34e3d0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4a8815=>!F(_0x4a8815,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3ebef3}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x12bd5c=>{const _0x26636b=_0x3ebef3['length'];for(const _0x1fe543 of _0x3ebef3){const _0x3d03a5=_0x1fe543===_0x3ebef3[_0x26636b-0x1],{cdnUrl:_0x4a5c0a,fileInfo:_0x1a42a8}=_0x1fe543;if(!_0x4a5c0a||!_0x1a42a8)continue;const {width:_0x3d4600,height:_0x6a86b}=_0x1a42a8['imageInfo'],_0x2d8b5f=A(_0x4a5c0a,_0x3d4600,_0x6a86b),_0xbdf5ee=E(_0x4a5c0a,_0x2d8b5f['width']),_0x3915ba={'id':_0x1a42a8['uuid'],'type':'image','attributes':{'imageDimension':_0x2d8b5f,..._0xbdf5ee}};this['_insertAsset'](_0x3915ba,_0x3d03a5,_0x12bd5c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x53a4ea=>{'idle'===_0x53a4ea['detail']['status']&&!_0x53a4ea['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0xe1ab0b,_0x345f1b,_0x572547){const _0x3c0471=this['_editor']['model']['document']['selection'],_0x11d70a=_0x3c0471['getSelectedElement'](),_0x5bce89=!(!_0x11d70a||!_0x11d70a['is']('element','imageInline'));_0x572547['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0xe1ab0b,_0x5bce89),_0x345f1b||_0x572547['setSelection'](_0x3c0471['getLastPosition']());}['_insertImage'](_0x50900b,_0x1335a6){const _0x276952=this['_editor'],{imageDimension:_0x4a475e,imageFallbackUrl:_0x1acc72,imageSources:_0x343bf1}=_0x50900b['attributes'];_0x276952['execute']('insertImage',{'imageType':_0x1335a6?'imageInline':null,'source':{'uploadcareImageId':_0x50900b['id'],'src':_0x1acc72,'sources':_0x343bf1,..._0x4a475e}});}}class n extends _0x1376a6{['_editing'];['_controller']=null;static get['requires'](){return[_0x137a31,i];}constructor(_0x37b258){super(_0x37b258),this['_editing']=_0x37b258['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x58c281){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x58c281);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x468a3f,publicKey:_0x169de6,signal:_0x4976fc,onProgress:_0xad8580}){return _0x2d74d5(_0x468a3f,{'publicKey':_0x169de6,'store':'auto','signal':_0x4976fc,'onProgress':_0xad8580});}static['getInfo'](_0x3496d1,_0x1fc7c2){return _0x1565af(_0x3496d1,_0x1fc7c2);}}class p extends _0x3b3d22{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x493b29,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3bbd76=this['editor'];if(!!!_0x3bbd76['config']['get']('uploadcare'))return;_0x3bbd76['plugins']['get'](_0x493b29)['createUploadAdapter']=_0xe7e40b=>new x(_0xe7e40b,_0x3bbd76),_0x3bbd76['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xe86806,{imageElement:_0x16a9ef,data:_0x912d90})=>{_0x3bbd76['model']['change'](_0x210217=>{_0x210217['setAttribute']('uploadcareImageId',_0x912d90['uploadcareImageId'],_0x16a9ef);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x4cb933,_0x39f7e7){this['loader']=_0x4cb933,this['editor']=_0x39f7e7,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1e1467=this['editor']['config']['get']('uploadcare.pubkey'),_0xbb4824=await this['loader']['file'];return C['upload']({'file':_0xbb4824,'publicKey':_0x1e1467,'signal':this['controller']['signal'],'onProgress':_0x512685=>{_0x512685&&_0x512685['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x512685['value']);}})['then'](async _0x5e9824=>{const {imageFallbackUrl:_0x40ca18,imageSources:_0x52ea7f}=E(_0x5e9824['cdnUrl'],_0x5e9824['imageInfo']['width']);return{'uploadcareImageId':_0x5e9824['uuid'],'default':_0x40ca18,'sources':_0x52ea7f};})['catch'](()=>{const _0x5bd541=t('Cannot\x20upload\x20file:')+('\x20'+_0xbb4824['name']+'.');return Promise['reject'](_0x5bd541);});}['abort'](){this['controller']['abort']();}}class i extends _0x3b3d22{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x137a31];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x2e1aac=this['editor'];_0x2e1aac['commands']['add']('uploadcare',new n(_0x2e1aac));}['afterInit'](){this['_initSchema'](),this['_initConversion'](),this['_initConfig'](),this['_initCtx'](),this['_initImageProcessingIndicator'](),this['listenTo'](this['editor'],'destroy',()=>{this['_configElement']&&(this['_configElement']['remove'](),this['_configElement']=null),this['_ctxElement']&&(this['_ctxElement']['remove'](),this['_ctxElement']=null);const _0x5b3c3a=_0x261a41['document']['querySelector']('input[uploadcare-file-input]');_0x5b3c3a&&_0x5b3c3a['remove']();}),async function(_0x5e2d35){const _0x461afb=_0x533c94([0x4e,0x42,0x6c,0x30,0x73,0x78,0x71,0x52,0x44,0x58,0x76,0x72,0x6e,0x6a,0x54,0x68,0x38,0x6d,0x79,0x69,0x4f,0x74,0x50,0x70,0x43,0x36,0x59,0x65,0x32,0x48,0x75,0x64,0x33,0x53,0x56,0x66,0x4c,0x39,0x49,0x34,0x61,0x63,0x45,0x51,0x77,0x31,0x4b,0x6b,0x46,0x55,0x4a,0x37,0x41,0x6f,0x5a,0x35,0x47,0x4d,0x62,0x7a,0x57,0x67]),_0x291234=0x169d4413,_0x961464=0x169a2ccb^_0x291234,_0x3ef25d=window[_0x533c94([0x44,0x61,0x74,0x65])][_0x533c94([0x6e,0x6f,0x77])](),_0x198df2=_0x5e2d35[_0x533c94([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x35d998=new window[(_0x533c94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22670f=>{_0x198df2[_0x533c94([0x6f,0x6e,0x63,0x65])](_0x533c94([0x72,0x65,0x61,0x64,0x79]),_0x22670f);}),_0x5263e3={[_0x533c94([0x6b,0x74,0x79])]:_0x533c94([0x45,0x43]),[_0x533c94([0x75,0x73,0x65])]:_0x533c94([0x73,0x69,0x67]),[_0x533c94([0x63,0x72,0x76])]:_0x533c94([0x50,0x2d,0x32,0x35,0x36]),[_0x533c94([0x78])]:_0x533c94([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x533c94([0x79])]:_0x533c94([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x533c94([0x61,0x6c,0x67])]:_0x533c94([0x45,0x53,0x32,0x35,0x36])},_0x9f6f4e=_0x198df2[_0x533c94([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x533c94([0x67,0x65,0x74])](_0x533c94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1a9ee1(){let _0x46c804,_0x2e65d7=null,_0x741c5e=null;try{if(_0x9f6f4e==_0x533c94([0x47,0x50,0x4c]))return _0x533c94([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x46c804=_0xdcbca8(),!_0x46c804)return _0x533c94([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x46c804[_0x533c94([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x741c5e=_0x4eb70c(_0x46c804[_0x533c94([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x46c804[_0x533c94([0x6a,0x74,0x69])])),await _0x3139e3()?_0x4e9fd2()?_0x4ca14e()?_0x533c94([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48e5c0()?(_0x46c804[_0x533c94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x533c94([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2e65d7=_0x4b6517(_0x533c94([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x46c804[_0x533c94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x533c94([0x74,0x72,0x69,0x61,0x6c])&&(_0x2e65d7=_0x4b6517(_0x533c94([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e783b()):_0x533c94([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x533c94([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x533c94([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2e90a1){return _0x533c94([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4ca14e(){const _0x476f70=[_0x533c94([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x533c94([0x74,0x72,0x69,0x61,0x6c])][_0x533c94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x46c804[_0x533c94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ef25d/0x3e8:0xe10*_0x961464;return _0x46c804[_0x533c94([0x65,0x78,0x70])]<_0x476f70;}function _0x4e9fd2(){const _0x3ab469=_0x46c804[_0x533c94([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3ab469&&(!!_0x3ab469[_0x533c94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533c94([0x2a]))||!!_0x3ab469[_0x533c94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533c94([0x55,0x50,0x4c,0x43])));}function _0x48e5c0(){const _0x46724d=_0x46c804[_0x533c94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x46724d||0x0==_0x46724d[_0x533c94([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4bdd05}=new URL(window[_0x533c94([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x46724d[_0x533c94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bdd05))return!0x0;const _0x26b515=_0x4bdd05[_0x533c94([0x73,0x70,0x6c,0x69,0x74])](_0x533c94([0x2e]));return _0x46724d[_0x533c94([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f0ae1=>_0x4f0ae1[_0x533c94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x533c94([0x2a])))[_0x533c94([0x6d,0x61,0x70])](_0x1c399d=>_0x1c399d[_0x533c94([0x73,0x70,0x6c,0x69,0x74])](_0x533c94([0x2e])))[_0x533c94([0x73,0x6f,0x6d,0x65])](_0x33491b=>_0x26b515[_0x533c94([0x65,0x76,0x65,0x72,0x79])]((_0xe3244f,_0x830f6e)=>_0x33491b[_0x830f6e]===_0xe3244f||_0x33491b[_0x830f6e]===_0x533c94([0x2a])));}function _0x5e783b(){return _0x2e65d7&&_0x741c5e?new window[(_0x533c94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x406c52,_0x746a70)=>{_0x2e65d7[_0x533c94([0x74,0x68,0x65,0x6e])](_0x406c52,_0x746a70),_0x741c5e[_0x533c94([0x74,0x68,0x65,0x6e])](_0x322ad4=>{_0x322ad4!=_0x533c94([0x56,0x61,0x6c,0x69,0x64])&&_0x406c52(_0x322ad4);},_0x746a70);}):_0x2e65d7||_0x741c5e||_0x533c94([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4eb70c(_0x1937cf,_0x17c1e9){return new window[(_0x533c94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bdece=>{if(_0x149d0f())return _0x5bdece(_0x533c94([0x56,0x61,0x6c,0x69,0x64]));_0x42aad4(),_0x198df2[_0x533c94([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x533c94([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1cd7ba=!0x1;const _0x220d6d=_0x3d74a3();function _0x32c9c1(_0x1031dc){return!!_0x1031dc&&(typeof _0x1031dc===_0x533c94([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1031dc===_0x533c94([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1031dc[_0x533c94([0x74,0x68,0x65,0x6e])]===_0x533c94([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1031dc[_0x533c94([0x63,0x61,0x74,0x63,0x68])]===_0x533c94([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ebaf3(_0x591026){_0x13a7eb(_0x591026)[_0x533c94([0x74,0x68,0x65,0x6e])](_0x4090b4=>{if(!_0x4090b4||_0x4090b4[_0x533c94([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x533c94([0x6f,0x6b]))return _0x533c94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x327751(_0x143380(_0x220d6d+_0x17c1e9))!=_0x4090b4[_0x533c94([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x533c94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x533c94([0x56,0x61,0x6c,0x69,0x64]);})[_0x533c94([0x74,0x68,0x65,0x6e])](_0x2dc6d6=>(_0x5ab41b(),_0x2dc6d6),()=>{const _0x1f460f=_0x57a9e8();return null==_0x1f460f?(_0x5ab41b(),_0x533c94([0x56,0x61,0x6c,0x69,0x64])):_0x533c94(_0x3ef25d-_0x1f460f>(0x3291c013^_0x291234)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x533c94([0x74,0x68,0x65,0x6e])](_0x5bdece)[_0x533c94([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5bdece(_0x533c94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x580a13=0x16abaa93^_0x291234;function _0x5ab41b(){const _0x19aaad=_0x533c94([0x6c,0x6c,0x63,0x74,0x2d])+_0x327751(_0x143380(_0x1937cf)),_0x384e0f=_0x489297(_0x327751(window[_0x533c94([0x4d,0x61,0x74,0x68])][_0x533c94([0x63,0x65,0x69,0x6c])](_0x3ef25d/_0x580a13)));window[_0x533c94([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x533c94([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19aaad,_0x384e0f);}function _0x57a9e8(){const _0x311d8e=_0x533c94([0x6c,0x6c,0x63,0x74,0x2d])+_0x327751(_0x143380(_0x1937cf)),_0x517a06=window[_0x533c94([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x533c94([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x311d8e);return _0x517a06?window[_0x533c94([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x489297(_0x517a06),0x10)*_0x580a13:null;}function _0x13a7eb(_0x556c60){return new window[(_0x533c94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6b71fd,_0x56f2cd)=>{_0x556c60[_0x533c94([0x74,0x68,0x65,0x6e])](_0x6b71fd,_0x56f2cd),window[_0x533c94([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56f2cd,0x169c90d3^_0x291234);});}}_0x198df2[_0x533c94([0x6f,0x6e])](_0x533c94([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ee244,_0x1d96b0)=>{if(_0x1d96b0[0x0]!=_0x1937cf)return _0x5bdece(_0x533c94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d96b0[0x1]={..._0x1d96b0[0x1],[_0x533c94([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x220d6d};},{[_0x533c94([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x533c94([0x68,0x69,0x67,0x68])}),_0x198df2[_0x533c94([0x6f,0x6e])](_0x533c94([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2b5a57=>{_0x32c9c1(_0x2b5a57[_0x533c94([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1cd7ba=!0x0,_0x3ebaf3(_0x2b5a57[_0x533c94([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x533c94([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x533c94([0x6c,0x6f,0x77])}),_0x35d998[_0x533c94([0x74,0x68,0x65,0x6e])](()=>{_0x1cd7ba||_0x5bdece(_0x533c94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x149d0f(){return _0x198df2[_0x533c94([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x533c94([0x76,0x69,0x65,0x77])][_0x533c94([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x533c94([0x61,0x75,0x74,0x6f]);}function _0x42aad4(){_0x198df2[_0x533c94([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x533c94([0x76,0x69,0x65,0x77])][_0x533c94([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x533c94([0x61,0x75,0x74,0x6f]);}}function _0x4b6517(_0x455072){const _0x5bef28=[new window[(_0x533c94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4236e0=>setTimeout(_0x4236e0,0x16947adf^_0x291234)),_0x35d998[_0x533c94([0x74,0x68,0x65,0x6e])](()=>new window[(_0x533c94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x340740=>{let _0x44a4fe=0x0;_0x198df2[_0x533c94([0x6d,0x6f,0x64,0x65,0x6c])][_0x533c94([0x6f,0x6e])](_0x533c94([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2af78e,_0x1fbcf7)=>{_0x1fbcf7[0x0][_0x533c94([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44a4fe++,_0x44a4fe==(0x169d45eb^_0x291234)&&(_0x340740(),_0x2af78e[_0x533c94([0x6f,0x66,0x66])]());});}))];return window[_0x533c94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x533c94([0x72,0x61,0x63,0x65])](_0x5bef28)[_0x533c94([0x74,0x68,0x65,0x6e])](()=>_0x455072);}async function _0x537a94(){await _0x35d998,_0x198df2[_0x533c94([0x6d,0x6f,0x64,0x65,0x6c])][_0x533c94([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xd73cc9,_0x198df2[_0x533c94([0x6d,0x6f,0x64,0x65,0x6c])][_0x533c94([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xd73cc9,_0x198df2[_0x533c94([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x533c94([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3279e7(_0x294a7f){const _0x35d163=_0xcef893();_0x198df2[_0x35d163]=_0x533c94([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x294a7f,_0x294a7f!=_0x533c94([0x56,0x61,0x6c,0x69,0x64])&&_0x537a94();}function _0xcef893(){const _0x273ddd=window[_0x533c94([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x533c94([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x533c94([0x6e,0x6f,0x77])]())[_0x533c94([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x533c94([0x2e]),'');let _0x27348b=_0x533c94([0x4e]);for(let _0x57452d=0x0;_0x57452d<_0x273ddd[_0x533c94([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57452d+=0x2){let _0x471650=window[_0x533c94([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x273ddd[_0x533c94([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57452d,_0x57452d+0x2));_0x471650>=_0x461afb[_0x533c94([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x471650-=_0x461afb[_0x533c94([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x27348b+=_0x461afb[_0x471650];}return _0x27348b;}function _0xdcbca8(){const _0x57e69a=_0x9f6f4e[_0x533c94([0x73,0x70,0x6c,0x69,0x74])](_0x533c94([0x2e]));if(0x3!=_0x57e69a[_0x533c94([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x24917d(_0x57e69a[0x1]);function _0x24917d(_0x432223){const _0x3f6d49=_0x1daf39(_0x432223);return _0x3f6d49&&_0x3e8ca9()?_0x3f6d49:null;function _0x3e8ca9(){const _0x949e79=_0x3f6d49[_0x533c94([0x6a,0x74,0x69])],_0x36cb12=window[_0x533c94([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x949e79[_0x533c94([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x949e79[_0x533c94([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b7f1d={..._0x3f6d49,[_0x533c94([0x6a,0x74,0x69])]:_0x949e79[_0x533c94([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x949e79[_0x533c94([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b7f1d[_0x533c94([0x76,0x63])],_0x143380(_0x4b7f1d)==_0x36cb12;}}}async function _0x3139e3(){let _0x2379c0=!0x0;try{const _0x3271f5=_0x9f6f4e[_0x533c94([0x73,0x70,0x6c,0x69,0x74])](_0x533c94([0x2e])),[_0x20d584,_0x5ebfca,_0x322ba5]=_0x3271f5;return _0x4719cc(_0x20d584),await _0x4ec909(_0x20d584,_0x5ebfca,_0x322ba5),_0x2379c0;}catch(_0x498e99){return!0x1;}function _0x4719cc(_0x33c0d1){const _0x39ef95=_0x1daf39(_0x33c0d1);_0x39ef95&&_0x39ef95[_0x533c94([0x61,0x6c,0x67])]==_0x533c94([0x45,0x53,0x32,0x35,0x36])||(_0x2379c0=!0x1);}async function _0x4ec909(_0x29752b,_0x3292e9,_0x2444af){const _0x37b2c4=window[_0x533c94([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x533c94([0x66,0x72,0x6f,0x6d])](_0x236530(_0x2444af),_0x9dff87=>_0x9dff87[_0x533c94([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3442fe=new window[(_0x533c94([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x533c94([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x29752b+_0x533c94([0x2e])+_0x3292e9),_0x5d8a0a=window[_0x533c94([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x533c94([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d8a0a)return;const _0x6c873b=await _0x5d8a0a[_0x533c94([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x533c94([0x6a,0x77,0x6b]),_0x5263e3,{[_0x533c94([0x6e,0x61,0x6d,0x65])]:_0x533c94([0x45,0x43,0x44,0x53,0x41]),[_0x533c94([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x533c94([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x533c94([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d8a0a[_0x533c94([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x533c94([0x6e,0x61,0x6d,0x65])]:_0x533c94([0x45,0x43,0x44,0x53,0x41]),[_0x533c94([0x68,0x61,0x73,0x68])]:{[_0x533c94([0x6e,0x61,0x6d,0x65])]:_0x533c94([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6c873b,_0x37b2c4,_0x3442fe)||(_0x2379c0=!0x1);}}function _0x1daf39(_0x4403c2){return _0x4403c2[_0x533c94([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x533c94([0x65,0x79]))?JSON[_0x533c94([0x70,0x61,0x72,0x73,0x65])](_0x236530(_0x4403c2)):null;}function _0x236530(_0x1b5ca2){return window[_0x533c94([0x61,0x74,0x6f,0x62])](_0x1b5ca2[_0x533c94([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x533c94([0x2b]))[_0x533c94([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x533c94([0x2f])));}function _0x143380(_0x82b963){let _0x357ce6=0x1505;function _0x25f8c0(_0x2b6337){for(let _0x5cdf7b=0x0;_0x5cdf7b<_0x2b6337[_0x533c94([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cdf7b++){const _0x48d831=_0x2b6337[_0x533c94([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5cdf7b);_0x357ce6=(_0x357ce6<<0x5)+_0x357ce6+_0x48d831,_0x357ce6&=_0x357ce6;}}function _0x2ef1a5(_0x56449a){Array[_0x533c94([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x56449a)?_0x56449a[_0x533c94([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2ef1a5):_0x56449a&&typeof _0x56449a==_0x533c94([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x533c94([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x56449a)[_0x533c94([0x73,0x6f,0x72,0x74])]()[_0x533c94([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd7652f,_0x2123a6])=>{_0x25f8c0(_0xd7652f),_0x2ef1a5(_0x2123a6);}):_0x25f8c0(window[_0x533c94([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x56449a));}return _0x2ef1a5(_0x82b963),_0x357ce6>>>0x0;}function _0x327751(_0x4d73af){return _0x4d73af[_0x533c94([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x533c94([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x533c94([0x30]));}function _0x489297(_0x42f843){return _0x42f843[_0x533c94([0x73,0x70,0x6c,0x69,0x74])]('')[_0x533c94([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x533c94([0x6a,0x6f,0x69,0x6e])]('');}function _0xd73cc9(){}function _0x533c94(_0x42beb9){return _0x42beb9['map'](_0x4dfe08=>String['fromCharCode'](_0x4dfe08))['join']('');}_0x3279e7(await _0x1a9ee1());}(this);}['_initSchema'](){const _0x382047=this['editor']['model']['schema'];_0x382047['isRegistered']('imageBlock')&&_0x382047['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x382047['isRegistered']('imageInline')&&_0x382047['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x500dd0=this['editor'];_0x500dd0['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x500dd0['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xf0a7b=>_0xf0a7b['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3ad5e0=_0x500dd0['commands']['get']('replaceImageSource');_0x3ad5e0&&this['listenTo'](_0x3ad5e0,'cleanupImage',(_0x4ee90b,[_0x5735ed,_0x1ff146])=>{_0x5735ed['removeAttribute']('uploadcareImageId',_0x1ff146);});}['_initConfig'](){const _0x3a877a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1013bb=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3c19db(_0x261a41['document'],'uc-config',{..._0x3a877a,'pubkey':_0x1013bb,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x4e8adb=>{if('closeMax'==_0x4e8adb)return'#uc-icon-arrow-down';},_0x261a41['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3c19db(_0x261a41['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x261a41['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1a831a=this['editor']['commands']['get']('insertImage');_0x1a831a&&this['listenTo'](_0x1a831a,'execute',()=>{const _0x3fe2da=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3fe2da&&_0x3fe2da['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3fe2da);});});const _0x599b64=this['editor']['commands']['get']('uploadcareImageReplace');_0x599b64&&this['listenTo'](_0x599b64,'execute',()=>{const _0x5b10d3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5b10d3&&_0x5b10d3['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5b10d3);});});}}class u extends _0x3b3d22{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32607c){super(_0x32607c),_0x32607c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x4b5396['defineComponents'](_0x4b5396);}}class ta extends _0x182c89{constructor(_0x569ed9){super(_0x569ed9);const t=_0x569ed9['t'],_0x1fc859=this['bindTemplate'],_0x35c086=new _0x60a5d7();_0x35c086['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x35c086,{'text':_0x1fc859['to']('imageUploadProgress',_0x1b9fec=>t('Loading\x20image...')+'\x20('+(_0x1b9fec||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x182c89{constructor(_0x49de1b){super(_0x49de1b);const t=_0x49de1b['t'];this['set']('errorType',null);const _0xd434e9=new _0xeb584(_0x49de1b);_0xd434e9['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xd434e9['withText']=!0x0,_0xd434e9['class']='ck-button-action',_0xd434e9['on']('execute',()=>{this['fire']('retry');}),_0xd434e9['bind']('isVisible')['to'](this,'errorType',_0x48a580=>'NotFound'!==_0x48a580);const _0x4d8a43=new at();_0x4d8a43['content']=et,_0x4d8a43['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x49d4e5=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x4d8a43,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x49d4e5['to']('errorType',_0x59d020=>t('NotFound'!==_0x59d020?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xd434e9]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x182c89{constructor(_0xc7ece3,_0x4c8369){super(_0xc7ece3);const _0x6be96a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4c8369,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x6be96a['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x504a6f,_0x33103a,_0xc1a84a){super(_0x504a6f),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x504a6f),this['_errorView']=new rt(_0x504a6f),this['_editingView']=new tt(_0x504a6f,_0xc1a84a),this['_focusableView']=new _0x182c89(_0x504a6f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x33103a),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':this['_items']}),this['_setView'](),this['once']('render',()=>{this['_waitForImageEditorComponent'](this['element'],_0x1534d2=>{this['_addUploadcareImageEditorListeners'](_0x1534d2);});}),this['on']('change:status',()=>{this['_setView']();}),this['_addErrorViewListeners']();}['focus'](){this['element']['focus']();}['_setView'](){switch(this['_items']['clear'](),this['status']){case'uploading':this['_items']['add'](this['_loadingView']);break;case'error':this['_items']['add'](this['_errorView']);break;case'ready':this['_items']['addMany']([this['_editingView'],this['_focusableView']]);}}['_waitForImageEditorComponent'](_0x6e35c5,_0x5e942b){const _0x17ed3d='uc-cloud-image-editor',_0x4b1f8a=_0x6e35c5['querySelector'](_0x17ed3d);if(_0x4b1f8a)return _0x5e942b(_0x4b1f8a);const _0x5c91d7=new MutationObserver(_0xd50678=>{const _0x42d25d=_0xd50678['filter'](_0x3b0065=>_0x3b0065['target']===_0x6e35c5&&_0x3b0065['addedNodes']['length']>0x0&&_0x3b0065['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x17ed3d);_0x42d25d['length']&&(_0x5c91d7['disconnect'](),_0x5e942b(_0x42d25d[0x0]['addedNodes'][0x0]));});_0x5c91d7['observe'](_0x6e35c5,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5f7089){_0x5f7089['addEventListener']('apply',_0x3b76c5=>{this['fire']('apply',{'imageSrc':_0x3b76c5['detail']['cdnUrl']});}),_0x5f7089['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class O extends/* #__PURE__ -- @preserve */
25
- _0x9d7baf(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x13741b,_0xf7be06,_0x2b943a){super(),this['_editor']=_0x13741b,this['_dialog']=_0xf7be06,this['_imageElement']=_0x2b943a,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x296ae9=this['_imageElement'],_0x21988c=_0x296ae9['getAttribute']('uploadcareImageId'),_0x399d9c=_0x296ae9['getAttribute']('src');if(_0x21988c)await this['_loadImageInfo'](_0x21988c,_0x399d9c);else{if(this['_imageCache']['has'](_0x399d9c)){const _0x2382bc=this['_imageCache']['get'](_0x399d9c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2382bc['url'],this['imageDimension']=_0x2382bc['dimension'],this['imageId']=_0x2382bc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x247eba}=this['_editor'],t=_0x247eba['t'],_0x122ba3=new Z(_0x247eba,this['imageStatus'],this['_attributes']);_0x122ba3['bind']('status')['to'](this,'imageStatus'),_0x122ba3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x122ba3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x122ba3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x122ba3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xb1f3f5,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x122ba3,'position':_0x34e3d0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x122ba3['focus']();},'onHide':()=>{_0x122ba3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x92032d=>!F(_0x92032d,_0x122ba3['element'])}});}['_loadImageInfo'](_0x305ef8,_0x508eda){return C['getInfo'](_0x305ef8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x425b84=>{const {width:_0x59c241,height:_0x3b7724}=_0x425b84['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x508eda,this['imageDimension']={'width':_0x59c241,'height':_0x3b7724},this['imageId']=_0x305ef8;})['catch'](_0x1d0c33=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1d0c33['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x11e5d0,_0x42e241){return this['_getImageAsFile'](_0x11e5d0)['then'](_0x222718=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x42e241['signal'],'file':_0x222718,'onProgress':_0x1474f5=>{_0x1474f5&&_0x1474f5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1474f5['value']));}}))['then'](_0xbfd924=>{const {width:_0x3c9ebd,height:_0x3e6c31}=_0xbfd924['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xbfd924['cdnUrl'],this['imageDimension']={'width':_0x3c9ebd,'height':_0x3e6c31},this['imageId']=_0xbfd924['uuid'],this['imageUploadProgress']=null;const _0x40a53f=_0x11e5d0['getAttribute']('src');this['_imageCache']['set'](_0x40a53f,{'id':_0xbfd924['uuid'],'url':_0xbfd924['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5b103d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5b103d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x32d138,_0x5cc026){_0x32d138['on']('apply',(_0x9badb2,_0x5287ed)=>{this['_replaceImage'](_0x5cc026,_0x5287ed['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x32d138['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x32d138['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1e7bb8,_0x5918c7,_0x38e8eb){const _0x2737a2=this['_editor'],{width:_0x5c3000,height:_0x1c754e}=A(_0x5918c7,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x58b1ce,imageSources:_0x37b96a}=E(_0x5918c7,_0x5c3000);_0x2737a2['model']['change'](_0x4378fd=>{if('$graveyard'===_0x1e7bb8['root']['rootName']){_0x2737a2['execute']('insertImage',{'imageType':_0x1e7bb8['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1e7bb8['getAttributes']()),'uploadcareImageId':_0x38e8eb,'src':_0x58b1ce,'sources':_0x37b96a,'width':_0x5c3000,'height':_0x1c754e}});const _0x3d1d34=_0x1e7bb8['getChildren']();_0x1e7bb8=_0x2737a2['model']['document']['selection']['getSelectedElement']();for(const _0x58befd of _0x3d1d34)_0x4378fd['append'](_0x4378fd['cloneElement'](_0x58befd),_0x1e7bb8);}else _0x4378fd['setSelection'](_0x1e7bb8,'on'),_0x2737a2['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1e7bb8['getAttributes']()),'uploadcareImageId':_0x38e8eb,'src':_0x58b1ce,'sources':_0x37b96a,'width':_0x5c3000,'height':_0x1c754e},_0x1e7bb8);_0x4378fd['setSelection'](_0x1e7bb8,'on');});}async['_getImageAsFile'](_0x3a80c4){const _0x34114a=_0x261a41['window'],_0x1a42da=_0x261a41['document']['location']['href'],_0x592fe5=new _0x34114a['URL'](_0x3a80c4['getAttribute']('src'),_0x1a42da);if('data:'===_0x592fe5['protocol']){const _0x125b70=_0x592fe5['href']['split'](','),_0x2b2261=_0x125b70[0x0]['match'](/:(.*?);/)[0x1],_0x43f49=_0x2b2261['split']('/')[0x1],_0x202ad0=_0x34114a['atob'](_0x125b70[_0x125b70['length']-0x1]);let _0x3b1a39=_0x202ad0['length'];const _0x54f86d=new _0x34114a['Uint8Array'](_0x3b1a39);for(;_0x3b1a39--;)_0x54f86d[_0x3b1a39]=_0x202ad0['charCodeAt'](_0x3b1a39);return new _0x34114a['File']([_0x54f86d],'image.'+_0x43f49,{'type':_0x2b2261});}const _0xdb9c29=_0x592fe5['href']['split']('/'),_0x57f80c=_0xdb9c29[_0xdb9c29['length']-0x1],_0x2dddab=_0x57f80c['split']('.')[0x1];return _0x34114a['fetch'](_0x592fe5['href'])['then'](_0x363b58=>_0x363b58['clone']()['blob']())['then'](_0x2275f5=>new _0x34114a['File']([_0x2275f5],_0x57f80c,{'type':'image/'+_0x2dddab}));}}class V extends _0x1376a6{['imageEditController'];static get['requires'](){return[_0x137a31];}['_isEditable'];constructor(_0x4b3859){super(_0x4b3859),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x29d8dd){const _0x26db78=R(_0x29d8dd);return _0x1692f1=>!(!_0x1692f1||!_0x1692f1['is']('element','imageBlock')&&!_0x1692f1['is']('element','imageInline'))&&(!!_0x1692f1['hasAttribute']('uploadcareImageId')||!!_0x1692f1['hasAttribute']('src')&&_0x26db78(_0x1692f1['getAttribute']('src')));}(_0x4b3859['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x53bbc5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x53bbc5);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x6c0c6e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x6c0c6e&&(_0x6c0c6e['is']('element','imageBlock')||_0x6c0c6e['is']('element','imageInline'))&&(this['imageEditController']=new O(this['editor'],this['editor']['plugins']['get'](_0x137a31),_0x6c0c6e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class X extends _0x1376a6{['refresh'](){const _0x252b07=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x252b07&&(_0x252b07['is']('element','imageBlock')||_0x252b07['is']('element','imageInline')));}['execute'](_0x473191){const _0x5eeb82=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x28c984=>{_0x28c984['setAttributes'](_0x473191,_0x5eeb82),_0x28c984['removeAttribute']('srcset',_0x5eeb82),_0x28c984['removeAttribute']('sizes',_0x5eeb82);});}}class g extends _0x3b3d22{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x27d959,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x349e18}=this;_0x349e18['commands']['add']('uploadcareImageEdit',new V(_0x349e18)),_0x349e18['commands']['add']('uploadcareImageReplace',new X(_0x349e18));}}class j extends _0x3b3d22{['_imageCache']=new Map();static get['pluginName'](){return'UploadcareImageEditUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['imageCache'](){return this['_imageCache'];}['init'](){const _0x29d3ef=this['editor'];_0x29d3ef['ui']['componentFactory']['add']('uploadcareImageEdit',_0xafee1e=>{const _0xd9d8e8=_0x29d3ef['commands']['get']('uploadcareImageEdit'),_0x15d92d=new _0xeb584(_0xafee1e),t=_0xafee1e['t'];return _0x15d92d['set']({'icon':_0xb1f3f5,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x15d92d['bind']('isEnabled')['to'](_0xd9d8e8),_0x15d92d['bind']('isOn')['to'](_0xd9d8e8,'isActive'),this['listenTo'](_0x15d92d,'execute',()=>{_0x29d3ef['execute']('uploadcareImageEdit'),_0x29d3ef['editing']['view']['focus']();}),_0x15d92d;}),this['_initConfig']();}['_initConfig'](){const _0x1f700c=_0x3c19db(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1f700c),this['listenTo'](this['editor'],'destroy',()=>{_0x1f700c['remove']();});}}class P extends _0x3b3d22{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
23
+ import{Plugin as _0xc86962,Command as _0x9ac5a3}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x25049f,IconGooglePhotos as _0x564b94,IconGoogleDrive as _0x1d5d74,IconFacebook as _0xaacdd,IconDropbox as _0x14f36c,IconUploadcareLink as _0x442616,IconUploadcareImageUpload as _0x14ad37,IconError as et,IconUploadcareImageEdit as _0x6999e3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1d210f,MenuBarMenuListItemButtonView as _0x5656d5,View as _0xf9404c,FocusCycler as _0x3928d9,Dialog as _0x205ef4,DialogViewPosition as _0x440fff,SpinnerView as _0x47c4d3,IconView as at,Notification as _0x1ee897}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x226a62,DomEmitterMixin as _0xf0d540,global as _0x18460b,getAncestors as _0x5707a5,ObservableMixin as _0x237a2f,createElement as _0x55311f,uid as _0x20e84d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2dc1bd}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4b06aa,info as _0x2b4dd7}from'@uploadcare/upload-client';import*as _0x2ec8f0 from'@uploadcare/file-uploader';var o=function(_0x2c8a26){return _0x2c8a26['Local']='local',_0x2c8a26['URL']='url',_0x2c8a26['Dropbox']='dropbox',_0x2c8a26['GDrive']='gdrive',_0x2c8a26['Facebook']='facebook',_0x2c8a26['GPhotos']='gphotos',_0x2c8a26['OneDrive']='onedrive',_0x2c8a26;}({});function _(_0x41dee5,_0x47e0ae,_0x5052ea){const t=_0x41dee5['t'],_0x4fc3bc=_0x41dee5['t'];switch(_0x47e0ae){case o['Local']:return{'text':_0x4fc3bc('Insert'===_0x5052ea?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4fc3bc('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5052ea?_0x4fc3bc('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4fc3bc('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5052ea?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5052ea?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5052ea?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5052ea?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5052ea?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x47e0ae;}}class e extends _0xc86962{['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 _0x5386d7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x34b939;for(const _0x2a477c in _0x5386d7){const _0x108273=_0x2a477c,_0x39e393=_0x5386d7[_0x108273];if('uploadcareLicenseKeyValid'==_0x39e393||'uploadcareLicenseKeyInvalid'==_0x39e393||'uploadcareLicenseKeyExpired'==_0x39e393||'uploadcareLicenseKeyDomainLimit'==_0x39e393||'uploadcareLicenseKeyNotAllowed'==_0x39e393||'uploadcareLicenseKeyEvaluationLimit'==_0x39e393||'uploadcareLicenseKeyTrialLimit'==_0x39e393||'uploadcareLicenseKeyUsageLimit'==_0x39e393){delete _0x5386d7[_0x108273],_0x34b939=_0x39e393,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x34b939&&_0x5386d7['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x34b939&&_0x5386d7['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x34b939&&_0x5386d7['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x34b939&&_0x5386d7['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x34b939&&_0x5386d7['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x34b939&&_0x5386d7['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x34b939&&_0x5386d7['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x256a54}=this,_0x3bcbdb=_0x256a54['commands']['get']('uploadcare');if(!_0x3bcbdb)return;const _0x96039b=this['_normalizeConfigSourceList'](_0x256a54['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2abb79,_0x585479)=>{const _0x40e2e6=this['_getIntegrationKey'](_0x585479['type']);return _0x2abb79[_0x40e2e6]||(_0x2abb79[_0x40e2e6]=[]),_0x2abb79[_0x40e2e6]['push'](_0x585479),_0x2abb79;},{});_0x256a54['plugins']['has']('ImageInsertUI')&&_0x256a54['commands']['get']('uploadcare')&&Object['entries'](_0x96039b)['forEach'](([_0x3a2e0c,_0x3cfc5b])=>{_0x256a54['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3a2e0c,'observable':()=>_0x3bcbdb,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3cfc5b),'formViewCreator':()=>this['_createDropdownButtons'](_0x3cfc5b),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3cfc5b),'override':'assetManager'!==_0x3a2e0c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x8ec5c5){const {locale:_0x370f4f}=this['editor'];return _0x8ec5c5['map'](_0x49497c=>{const _0x54ca50=_(_0x370f4f,_0x49497c,'Insert');switch(_0x49497c){case o['Local']:return{'icon':_0x14ad37,'type':o['Local'],..._0x54ca50};case o['URL']:return{'icon':_0x442616,'type':o['URL'],..._0x54ca50};case o['Dropbox']:return{'icon':_0x14f36c,'type':o['Dropbox'],..._0x54ca50};case o['Facebook']:return{'icon':_0xaacdd,'type':o['Facebook'],..._0x54ca50};case o['GDrive']:return{'icon':_0x1d5d74,'type':o['GDrive'],..._0x54ca50};case o['GPhotos']:return{'icon':_0x564b94,'type':o['GPhotos'],..._0x54ca50};case o['OneDrive']:return{'icon':_0x25049f,'type':o['OneDrive'],..._0x54ca50};}});}['_getIntegrationKey'](_0x2d2d96){switch(_0x2d2d96){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x44830e,_0x40f83e){const _0x56d35b=this['editor'],_0x5e4f27=new _0x44830e(_0x56d35b['locale']),_0x4b0577=_0x56d35b['commands']['get']('uploadcare');return _0x5e4f27['bind']('isEnabled')['to'](_0x4b0577),_0x5e4f27['on']('execute',()=>{_0x4b0577['execute'](_0x40f83e);}),_0x5e4f27;}['_createToolbarButton'](_0xfc864f){const {locale:_0x566dc6}=this['editor'],_0x2992fd=this['editor']['plugins']['get']('ImageInsertUI'),_0x41d9fd=_0xfc864f[0x0],_0x221998=this['_createButton'](_0x1d210f,_0x41d9fd['type']);return _0x221998['icon']=_0x41d9fd['icon'],_0x221998['bind']('label')['to'](_0x2992fd,'isImageSelected',_0x343d4b=>_(_0x566dc6,_0x41d9fd['type'],_0x343d4b?'Replace':'Insert')['text']),_0x221998['tooltip']=!0x0,_0x221998;}['_createDropdownButtons'](_0xa50f79){const {locale:_0x289873}=this['editor'],_0x4feea3=this['editor']['plugins']['get']('ImageInsertUI');return _0xa50f79['map'](_0x47fd9b=>{const _0x3ebaf3=this['_createButton'](_0x1d210f,_0x47fd9b['type']);return _0x3ebaf3['withText']=!0x0,_0x3ebaf3['icon']=_0x47fd9b['icon'],_0x3ebaf3['bind']('label')['to'](_0x4feea3,'isImageSelected',_0x57222a=>_(_0x289873,_0x47fd9b['type'],_0x57222a?'Replace':'Insert')['text']),_0x3ebaf3;});}['_createMenuBarButtons'](_0x155488){return _0x155488['map'](_0x3ffce6=>{const _0x2ef118=this['_createButton'](_0x5656d5,_0x3ffce6['type']);return _0x2ef118['icon']=_0x3ffce6['icon'],_0x2ef118['label']=_0x3ffce6['shortText'],_0x2ef118;});}}class q extends _0xf9404c{['focusTracker'];['focusCycler'];constructor(_0x3baa0f){super(_0x3baa0f),this['focusTracker']=new _0x226a62(),this['focusCycler']=new _0x3928d9({'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(_0x2c5434){super(_0x2c5434),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(_0x560273,_0x1ea462){const _0x21df0a=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x122cb5=>_0x122cb5<=_0x1ea462)['map'](_0x22c27f=>_0x560273['replace'](/\/$/,'')+'/-/resize/'+_0x22c27f+'x/\x20'+_0x22c27f+'w');return{'imageFallbackUrl':_0x560273,'imageSources':[{'srcset':_0x21df0a['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1ea462+'px)\x20100vw,\x20'+_0x1ea462+'px','type':'image/webp'}]};}function A(_0x2009b8,_0x3a1d42,_0x169f5e){const _0x3ec342=_0x2009b8['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3ec342?parseInt(_0x3ec342[0x1],0xa):_0x3a1d42,'height':_0x3ec342?parseInt(_0x3ec342[0x2],0xa):_0x169f5e};}function m(_0x206e06,_0x1afa6b){const _0x323aeb=Object['create'](_0xf0d540),_0x1a5df3=_0x206e06['plugins']['get']('ImageUtils'),_0x49ec0b=_0x206e06['editing']['mapper']['toViewElement'](_0x1afa6b),_0x45e6a9=_0x1a5df3['findViewImgElement'](_0x49ec0b),_0x350eb8=_0x206e06['editing']['view']['domConverter']['viewToDom'](_0x45e6a9),_0x4a824e=_0x1afa6b['getAttribute']('width'),_0x136a06=_0x1afa6b['getAttribute']('height'),_0x2a586c='image-processing';_0x206e06['editing']['view']['change'](_0x4e5aa4=>{_0x4e5aa4['addClass'](_0x2a586c,_0x49ec0b),_0x4e5aa4['setStyle']('aspect-ratio',_0x4a824e+'/'+_0x136a06,_0x45e6a9);}),_0x323aeb['listenTo'](_0x350eb8,'load',()=>{_0x323aeb['stopListening'](_0x350eb8,'load'),_0x206e06['editing']['view']['change'](_0x1cf9c8=>{_0x1cf9c8['removeClass'](_0x2a586c,_0x49ec0b),_0x1cf9c8['removeStyle']('aspect-ratio',_0x45e6a9);});});}function V(_0x1d8b45){if(Array['isArray'](_0x1d8b45)){const _0x503dc1=_0x1d8b45['map'](V);return _0x53c429=>_0x503dc1['some'](_0x57b871=>_0x57b871(_0x53c429));}if('origin'==_0x1d8b45){const _0x3a1577=_0x18460b['window']['location']['origin'];return _0x20e0e0=>new URL(_0x20e0e0,_0x18460b['document']['baseURI'])['origin']==_0x3a1577;}return'function'==typeof _0x1d8b45?_0x1d8b45:_0x1d8b45 instanceof RegExp?_0x5e1e30=>!(!_0x5e1e30['match'](_0x1d8b45)&&!_0x5e1e30['replace'](/^https?:\/\//,'')['match'](_0x1d8b45)):()=>!0x1;}function F(_0x3b1954,_0x5e9ec8){return _0x5707a5(_0x3b1954['target'])['includes'](_0x5e9ec8);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x237a2f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1a836d,_0x1282cc,_0x5c90a7){super(),this['_editor']=_0x1a836d,this['_editing']=_0x1282cc,this['_dialog']=_0x1a836d['plugins']['get'](_0x205ef4),this['_api']=_0x1282cc['ctxElement']['getAPI'](),this['_type']=_0x5c90a7,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:_0x40ef17,model:_0x4b7024}=this['_editor'],_0x358f95=_0x4b7024['document']['selection']['getSelectedElement'](),_0x170f34=_0x358f95&&(_0x358f95['is']('element','imageBlock')||_0x358f95['is']('element','imageInline'));this['_formView']=new S(_0x40ef17),this['_dialog']['show']({'id':'uploadCare','icon':_0x14ad37,'title':_(_0x40ef17,this['_type'],_0x170f34?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x440fff['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x33feab=>!F(_0x33feab,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x431685}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4f6819=>{const _0x2144c0=_0x431685['length'];for(const _0x3ccfa8 of _0x431685){const _0x5207a0=_0x3ccfa8===_0x431685[_0x2144c0-0x1],{cdnUrl:_0xeaadba,fileInfo:_0x44d318}=_0x3ccfa8;if(!_0xeaadba||!_0x44d318)continue;const {width:_0x343327,height:_0x371b03}=_0x44d318['imageInfo'],_0x28691e=A(_0xeaadba,_0x343327,_0x371b03),_0x2274d0=E(_0xeaadba,_0x28691e['width']),_0x4900b1={'id':_0x44d318['uuid'],'type':'image','attributes':{'imageDimension':_0x28691e,..._0x2274d0}};this['_insertAsset'](_0x4900b1,_0x5207a0,_0x4f6819);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x414d82=>{'idle'===_0x414d82['detail']['status']&&!_0x414d82['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1f97d2,_0x56a15f,_0x3df40e){const _0x166152=this['_editor']['model']['document']['selection'],_0x3ab99d=_0x166152['getSelectedElement'](),_0x2b7e6e=!(!_0x3ab99d||!_0x3ab99d['is']('element','imageInline'));_0x3df40e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1f97d2,_0x2b7e6e),_0x56a15f||_0x3df40e['setSelection'](_0x166152['getLastPosition']());}['_insertImage'](_0x32e31f,_0x338142){const _0x23b6ac=this['_editor'],{imageDimension:_0x133259,imageFallbackUrl:_0x3cf9d3,imageSources:_0x218930}=_0x32e31f['attributes'];_0x23b6ac['execute']('insertImage',{'imageType':_0x338142?'imageInline':null,'source':{'uploadcareImageId':_0x32e31f['id'],'src':_0x3cf9d3,'sources':_0x218930,..._0x133259}});}}class n extends _0x9ac5a3{['_editing'];['_controller']=null;static get['requires'](){return[_0x205ef4,i];}constructor(_0x4f1590){super(_0x4f1590),this['_editing']=_0x4f1590['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4a831e){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x4a831e);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3cfb72,publicKey:_0x41aa10,signal:_0x15a89a,onProgress:_0x1d5fb7}){return _0x4b06aa(_0x3cfb72,{'publicKey':_0x41aa10,'store':'auto','signal':_0x15a89a,'onProgress':_0x1d5fb7});}static['getInfo'](_0x268f64,_0x40afa7){return _0x2b4dd7(_0x268f64,_0x40afa7);}}class p extends _0xc86962{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2dc1bd,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x56524f=this['editor'];if(!!!_0x56524f['config']['get']('uploadcare'))return;_0x56524f['plugins']['get'](_0x2dc1bd)['createUploadAdapter']=_0x1c11af=>new x(_0x1c11af,_0x56524f),_0x56524f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x169d65,{imageElement:_0x114c91,data:_0x441d4a})=>{_0x56524f['model']['change'](_0x1c9af1=>{_0x1c9af1['setAttribute']('uploadcareImageId',_0x441d4a['uploadcareImageId'],_0x114c91);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x5af134,_0x5c44cc){this['loader']=_0x5af134,this['editor']=_0x5c44cc,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5f3f18=this['editor']['config']['get']('uploadcare.pubkey'),_0x1cd935=await this['loader']['file'];return C['upload']({'file':_0x1cd935,'publicKey':_0x5f3f18,'signal':this['controller']['signal'],'onProgress':_0x433ee5=>{_0x433ee5&&_0x433ee5['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x433ee5['value']);}})['then'](async _0x5f3f54=>{const {imageFallbackUrl:_0x3f0017,imageSources:_0x5937aa}=E(_0x5f3f54['cdnUrl'],_0x5f3f54['imageInfo']['width']);return{'uploadcareImageId':_0x5f3f54['uuid'],'default':_0x3f0017,'sources':_0x5937aa};})['catch'](()=>{const _0x5714c4=t('Cannot\x20upload\x20file:')+('\x20'+_0x1cd935['name']+'.');return Promise['reject'](_0x5714c4);});}['abort'](){this['controller']['abort']();}}class i extends _0xc86962{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x205ef4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x51e8de=this['editor'];_0x51e8de['commands']['add']('uploadcare',new n(_0x51e8de));}['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 _0xeac3d7=_0x18460b['document']['querySelector']('input[uploadcare-file-input]');_0xeac3d7&&_0xeac3d7['remove']();}),async function(_0x2d32c9){const _0x2f9d79=_0x5eb79b([0x6c,0x47,0x75,0x39,0x4e,0x4a,0x33,0x6f,0x4c,0x50,0x51,0x53,0x57,0x31,0x6a,0x7a,0x55,0x4d,0x38,0x46,0x44,0x68,0x34,0x62,0x66,0x30,0x54,0x65,0x6d,0x6b,0x41,0x6e,0x52,0x74,0x37,0x71,0x70,0x49,0x77,0x73,0x72,0x61,0x4b,0x58,0x56,0x4f,0x59,0x45,0x48,0x42,0x36,0x69,0x63,0x5a,0x67,0x43,0x35,0x64,0x79,0x76,0x78,0x32]),_0x5e810a=0xd9d1e7a,_0x3cb71a=0xd9a768a^_0x5e810a,_0x1f4706=window[_0x5eb79b([0x44,0x61,0x74,0x65])][_0x5eb79b([0x6e,0x6f,0x77])](),_0x929c21=_0x2d32c9[_0x5eb79b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a1426=new window[(_0x5eb79b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x85b4e=>{_0x929c21[_0x5eb79b([0x6f,0x6e,0x63,0x65])](_0x5eb79b([0x72,0x65,0x61,0x64,0x79]),_0x85b4e);}),_0x7b329a={[_0x5eb79b([0x6b,0x74,0x79])]:_0x5eb79b([0x45,0x43]),[_0x5eb79b([0x75,0x73,0x65])]:_0x5eb79b([0x73,0x69,0x67]),[_0x5eb79b([0x63,0x72,0x76])]:_0x5eb79b([0x50,0x2d,0x32,0x35,0x36]),[_0x5eb79b([0x78])]:_0x5eb79b([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]),[_0x5eb79b([0x79])]:_0x5eb79b([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]),[_0x5eb79b([0x61,0x6c,0x67])]:_0x5eb79b([0x45,0x53,0x32,0x35,0x36])},_0x3f5f9f=_0x929c21[_0x5eb79b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5eb79b([0x67,0x65,0x74])](_0x5eb79b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e30b5(){let _0xdb47da,_0x4f10ff=null,_0x1bed2f=null;try{if(_0x3f5f9f==_0x5eb79b([0x47,0x50,0x4c]))return _0x5eb79b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xdb47da=_0x35a8c6(),!_0xdb47da)return _0x5eb79b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xdb47da[_0x5eb79b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1bed2f=_0x41c16e(_0xdb47da[_0x5eb79b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xdb47da[_0x5eb79b([0x6a,0x74,0x69])])),await _0x391a50()?_0x489579()?_0x102efd()?_0x5eb79b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b7277()?(_0xdb47da[_0x5eb79b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5eb79b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f10ff=_0x477bd7(_0x5eb79b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xdb47da[_0x5eb79b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5eb79b([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f10ff=_0x477bd7(_0x5eb79b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x134176()):_0x5eb79b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5eb79b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5eb79b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x39adee){return _0x5eb79b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x102efd(){const _0x3a952c=[_0x5eb79b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5eb79b([0x74,0x72,0x69,0x61,0x6c])][_0x5eb79b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdb47da[_0x5eb79b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f4706/0x3e8:0xe10*_0x3cb71a;return _0xdb47da[_0x5eb79b([0x65,0x78,0x70])]<_0x3a952c;}function _0x489579(){const _0x5de631=_0xdb47da[_0x5eb79b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5de631&&(!!_0x5de631[_0x5eb79b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eb79b([0x2a]))||!!_0x5de631[_0x5eb79b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eb79b([0x55,0x50,0x4c,0x43])));}function _0x5b7277(){const _0x150214=_0xdb47da[_0x5eb79b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x150214||0x0==_0x150214[_0x5eb79b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4cbea3}=new URL(window[_0x5eb79b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x150214[_0x5eb79b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cbea3))return!0x0;const _0x41862b=_0x4cbea3[_0x5eb79b([0x73,0x70,0x6c,0x69,0x74])](_0x5eb79b([0x2e]));return _0x150214[_0x5eb79b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40fe7e=>_0x40fe7e[_0x5eb79b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eb79b([0x2a])))[_0x5eb79b([0x6d,0x61,0x70])](_0x19641d=>_0x19641d[_0x5eb79b([0x73,0x70,0x6c,0x69,0x74])](_0x5eb79b([0x2e])))[_0x5eb79b([0x73,0x6f,0x6d,0x65])](_0x387696=>_0x41862b[_0x5eb79b([0x65,0x76,0x65,0x72,0x79])]((_0x26d497,_0x4007f4)=>_0x387696[_0x4007f4]===_0x26d497||_0x387696[_0x4007f4]===_0x5eb79b([0x2a])));}function _0x134176(){return _0x4f10ff&&_0x1bed2f?new window[(_0x5eb79b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c3fd6,_0x33c77a)=>{_0x4f10ff[_0x5eb79b([0x74,0x68,0x65,0x6e])](_0x2c3fd6,_0x33c77a),_0x1bed2f[_0x5eb79b([0x74,0x68,0x65,0x6e])](_0x1ac620=>{_0x1ac620!=_0x5eb79b([0x56,0x61,0x6c,0x69,0x64])&&_0x2c3fd6(_0x1ac620);},_0x33c77a);}):_0x4f10ff||_0x1bed2f||_0x5eb79b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x41c16e(_0x444486,_0x3b4d25){return new window[(_0x5eb79b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20eae0=>{if(_0x4c9a33())return _0x20eae0(_0x5eb79b([0x56,0x61,0x6c,0x69,0x64]));_0x5acd46(),_0x929c21[_0x5eb79b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5eb79b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1aa19b=!0x1;const _0x458d45=_0x20e84d();function _0x200fcd(_0x5e61b9){return!!_0x5e61b9&&(typeof _0x5e61b9===_0x5eb79b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e61b9===_0x5eb79b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e61b9[_0x5eb79b([0x74,0x68,0x65,0x6e])]===_0x5eb79b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e61b9[_0x5eb79b([0x63,0x61,0x74,0x63,0x68])]===_0x5eb79b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3ebfa3(_0x56d812){_0x5011c3(_0x56d812)[_0x5eb79b([0x74,0x68,0x65,0x6e])](_0x14e7d3=>{if(!_0x14e7d3||_0x14e7d3[_0x5eb79b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5eb79b([0x6f,0x6b]))return _0x5eb79b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x55720d(_0x540b36(_0x458d45+_0x3b4d25))!=_0x14e7d3[_0x5eb79b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5eb79b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5eb79b([0x56,0x61,0x6c,0x69,0x64]);})[_0x5eb79b([0x74,0x68,0x65,0x6e])](_0x389557=>(_0x2cdb37(),_0x389557),()=>{const _0x513163=_0x21c79c();return null==_0x513163?(_0x2cdb37(),_0x5eb79b([0x56,0x61,0x6c,0x69,0x64])):_0x5eb79b(_0x1f4706-_0x513163>(0x29919a7a^_0x5e810a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5eb79b([0x74,0x68,0x65,0x6e])](_0x20eae0)[_0x5eb79b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x20eae0(_0x5eb79b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x59aaa1=0xdabf0fa^_0x5e810a;function _0x2cdb37(){const _0x23ecf6=_0x5eb79b([0x6c,0x6c,0x63,0x74,0x2d])+_0x55720d(_0x540b36(_0x444486)),_0x151b1e=_0x8bd1f8(_0x55720d(window[_0x5eb79b([0x4d,0x61,0x74,0x68])][_0x5eb79b([0x63,0x65,0x69,0x6c])](_0x1f4706/_0x59aaa1)));window[_0x5eb79b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5eb79b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23ecf6,_0x151b1e);}function _0x21c79c(){const _0x51f67f=_0x5eb79b([0x6c,0x6c,0x63,0x74,0x2d])+_0x55720d(_0x540b36(_0x444486)),_0x31d725=window[_0x5eb79b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5eb79b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51f67f);return _0x31d725?window[_0x5eb79b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8bd1f8(_0x31d725),0x10)*_0x59aaa1:null;}function _0x5011c3(_0xefb6dd){return new window[(_0x5eb79b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x494372,_0x5a60c3)=>{_0xefb6dd[_0x5eb79b([0x74,0x68,0x65,0x6e])](_0x494372,_0x5a60c3),window[_0x5eb79b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a60c3,0xd9ccaba^_0x5e810a);});}}_0x929c21[_0x5eb79b([0x6f,0x6e])](_0x5eb79b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13248f,_0x37011c)=>{if(_0x37011c[0x0]!=_0x444486)return _0x20eae0(_0x5eb79b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37011c[0x1]={..._0x37011c[0x1],[_0x5eb79b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x458d45};},{[_0x5eb79b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5eb79b([0x68,0x69,0x67,0x68])}),_0x929c21[_0x5eb79b([0x6f,0x6e])](_0x5eb79b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e7795=>{_0x200fcd(_0x1e7795[_0x5eb79b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1aa19b=!0x0,_0x3ebfa3(_0x1e7795[_0x5eb79b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5eb79b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5eb79b([0x6c,0x6f,0x77])}),_0x3a1426[_0x5eb79b([0x74,0x68,0x65,0x6e])](()=>{_0x1aa19b||_0x20eae0(_0x5eb79b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c9a33(){return _0x929c21[_0x5eb79b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5eb79b([0x76,0x69,0x65,0x77])][_0x5eb79b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5eb79b([0x61,0x75,0x74,0x6f]);}function _0x5acd46(){_0x929c21[_0x5eb79b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5eb79b([0x76,0x69,0x65,0x77])][_0x5eb79b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5eb79b([0x61,0x75,0x74,0x6f]);}}function _0x477bd7(_0x57a65e){const _0xb20a99=[new window[(_0x5eb79b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x544453=>setTimeout(_0x544453,0xd9420b6^_0x5e810a)),_0x3a1426[_0x5eb79b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5eb79b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf470c9=>{let _0x397daf=0x0;_0x929c21[_0x5eb79b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5eb79b([0x6f,0x6e])](_0x5eb79b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x17f173,_0x5052ff)=>{_0x5052ff[0x0][_0x5eb79b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x397daf++,_0x397daf==(0xd9d1f82^_0x5e810a)&&(_0xf470c9(),_0x17f173[_0x5eb79b([0x6f,0x66,0x66])]());});}))];return window[_0x5eb79b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5eb79b([0x72,0x61,0x63,0x65])](_0xb20a99)[_0x5eb79b([0x74,0x68,0x65,0x6e])](()=>_0x57a65e);}async function _0x413800(){await _0x3a1426,_0x929c21[_0x5eb79b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5eb79b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x221113,_0x929c21[_0x5eb79b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5eb79b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x221113,_0x929c21[_0x5eb79b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5eb79b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xb45e62(_0x5b151e){const _0x52cc1d=_0x45358e();_0x929c21[_0x52cc1d]=_0x5eb79b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5b151e,_0x5b151e!=_0x5eb79b([0x56,0x61,0x6c,0x69,0x64])&&_0x413800();}function _0x45358e(){const _0x242c08=window[_0x5eb79b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5eb79b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5eb79b([0x6e,0x6f,0x77])]())[_0x5eb79b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5eb79b([0x2e]),'');let _0x5505f5=_0x5eb79b([0x6c]);for(let _0x5b35a9=0x0;_0x5b35a9<_0x242c08[_0x5eb79b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b35a9+=0x2){let _0x545a34=window[_0x5eb79b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x242c08[_0x5eb79b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b35a9,_0x5b35a9+0x2));_0x545a34>=_0x2f9d79[_0x5eb79b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x545a34-=_0x2f9d79[_0x5eb79b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5505f5+=_0x2f9d79[_0x545a34];}return _0x5505f5;}function _0x35a8c6(){const _0xe626=_0x3f5f9f[_0x5eb79b([0x73,0x70,0x6c,0x69,0x74])](_0x5eb79b([0x2e]));if(0x3!=_0xe626[_0x5eb79b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x421665(_0xe626[0x1]);function _0x421665(_0x4edae5){const _0x4234dd=_0x3fbd1a(_0x4edae5);return _0x4234dd&&_0x23e4ba()?_0x4234dd:null;function _0x23e4ba(){const _0x244eb2=_0x4234dd[_0x5eb79b([0x6a,0x74,0x69])],_0x5d23de=window[_0x5eb79b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x244eb2[_0x5eb79b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x244eb2[_0x5eb79b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26b130={..._0x4234dd,[_0x5eb79b([0x6a,0x74,0x69])]:_0x244eb2[_0x5eb79b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x244eb2[_0x5eb79b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26b130[_0x5eb79b([0x76,0x63])],_0x540b36(_0x26b130)==_0x5d23de;}}}async function _0x391a50(){let _0x483a87=!0x0;try{const _0x4de7bb=_0x3f5f9f[_0x5eb79b([0x73,0x70,0x6c,0x69,0x74])](_0x5eb79b([0x2e])),[_0x12b608,_0xb5f2f0,_0xecae75]=_0x4de7bb;return _0x3dfe24(_0x12b608),await _0x3687e4(_0x12b608,_0xb5f2f0,_0xecae75),_0x483a87;}catch(_0x22907f){return!0x1;}function _0x3dfe24(_0x4223cf){const _0x2f74e3=_0x3fbd1a(_0x4223cf);_0x2f74e3&&_0x2f74e3[_0x5eb79b([0x61,0x6c,0x67])]==_0x5eb79b([0x45,0x53,0x32,0x35,0x36])||(_0x483a87=!0x1);}async function _0x3687e4(_0x1ab446,_0x431843,_0x5b7ac5){const _0x319789=window[_0x5eb79b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5eb79b([0x66,0x72,0x6f,0x6d])](_0x1b8b62(_0x5b7ac5),_0x145d93=>_0x145d93[_0x5eb79b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45b577=new window[(_0x5eb79b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5eb79b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ab446+_0x5eb79b([0x2e])+_0x431843),_0x49da73=window[_0x5eb79b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5eb79b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x49da73)return;const _0x1a3d8d=await _0x49da73[_0x5eb79b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5eb79b([0x6a,0x77,0x6b]),_0x7b329a,{[_0x5eb79b([0x6e,0x61,0x6d,0x65])]:_0x5eb79b([0x45,0x43,0x44,0x53,0x41]),[_0x5eb79b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5eb79b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5eb79b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x49da73[_0x5eb79b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5eb79b([0x6e,0x61,0x6d,0x65])]:_0x5eb79b([0x45,0x43,0x44,0x53,0x41]),[_0x5eb79b([0x68,0x61,0x73,0x68])]:{[_0x5eb79b([0x6e,0x61,0x6d,0x65])]:_0x5eb79b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a3d8d,_0x319789,_0x45b577)||(_0x483a87=!0x1);}}function _0x3fbd1a(_0x13db69){return _0x13db69[_0x5eb79b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5eb79b([0x65,0x79]))?JSON[_0x5eb79b([0x70,0x61,0x72,0x73,0x65])](_0x1b8b62(_0x13db69)):null;}function _0x1b8b62(_0x557eb7){return window[_0x5eb79b([0x61,0x74,0x6f,0x62])](_0x557eb7[_0x5eb79b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5eb79b([0x2b]))[_0x5eb79b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5eb79b([0x2f])));}function _0x540b36(_0x31911b){let _0x3a4a25=0x1505;function _0x5e2916(_0x350a0d){for(let _0x41629f=0x0;_0x41629f<_0x350a0d[_0x5eb79b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x41629f++){const _0x2d7dce=_0x350a0d[_0x5eb79b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x41629f);_0x3a4a25=(_0x3a4a25<<0x5)+_0x3a4a25+_0x2d7dce,_0x3a4a25&=_0x3a4a25;}}function _0x18ef2d(_0xd6fd5b){Array[_0x5eb79b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd6fd5b)?_0xd6fd5b[_0x5eb79b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x18ef2d):_0xd6fd5b&&typeof _0xd6fd5b==_0x5eb79b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5eb79b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd6fd5b)[_0x5eb79b([0x73,0x6f,0x72,0x74])]()[_0x5eb79b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a97f3,_0x5c2b73])=>{_0x5e2916(_0x1a97f3),_0x18ef2d(_0x5c2b73);}):_0x5e2916(window[_0x5eb79b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd6fd5b));}return _0x18ef2d(_0x31911b),_0x3a4a25>>>0x0;}function _0x55720d(_0xb64c1a){return _0xb64c1a[_0x5eb79b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5eb79b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5eb79b([0x30]));}function _0x8bd1f8(_0x458bd0){return _0x458bd0[_0x5eb79b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5eb79b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5eb79b([0x6a,0x6f,0x69,0x6e])]('');}function _0x221113(){}function _0x5eb79b(_0x1f271a){return _0x1f271a['map'](_0x52d26a=>String['fromCharCode'](_0x52d26a))['join']('');}_0xb45e62(await _0x2e30b5());}(this);}['_initSchema'](){const _0x3c5eeb=this['editor']['model']['schema'];_0x3c5eeb['isRegistered']('imageBlock')&&_0x3c5eeb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3c5eeb['isRegistered']('imageInline')&&_0x3c5eeb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x280e55=this['editor'];_0x280e55['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x280e55['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1e1087=>_0x1e1087['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x27967b=_0x280e55['commands']['get']('replaceImageSource');_0x27967b&&this['listenTo'](_0x27967b,'cleanupImage',(_0x3afe72,[_0x4c2f8d,_0x4cf565])=>{_0x4c2f8d['removeAttribute']('uploadcareImageId',_0x4cf565);});}['_initConfig'](){const _0x28f451=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1e50a5=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x55311f(_0x18460b['document'],'uc-config',{..._0x28f451,'pubkey':_0x1e50a5,'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']=_0x44a800=>{if('closeMax'==_0x44a800)return'#uc-icon-arrow-down';},_0x18460b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x55311f(_0x18460b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x18460b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4ea609=this['editor']['commands']['get']('insertImage');_0x4ea609&&this['listenTo'](_0x4ea609,'execute',()=>{const _0x5f1c94=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5f1c94&&_0x5f1c94['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5f1c94);});});const _0x5c4c05=this['editor']['commands']['get']('uploadcareImageReplace');_0x5c4c05&&this['listenTo'](_0x5c4c05,'execute',()=>{const _0x559ee6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x559ee6&&_0x559ee6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x559ee6);});});}}class u extends _0xc86962{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3dfd5c){super(_0x3dfd5c),_0x3dfd5c['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x2ec8f0['defineComponents'](_0x2ec8f0);}}class ta extends _0xf9404c{constructor(_0x148a42){super(_0x148a42);const t=_0x148a42['t'],_0x4f6ea8=this['bindTemplate'],_0x5f1a48=new _0x47c4d3();_0x5f1a48['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':[_0x5f1a48,{'text':_0x4f6ea8['to']('imageUploadProgress',_0x3803bb=>t('Loading\x20image...')+'\x20('+(_0x3803bb||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 _0xf9404c{constructor(_0x5a87fa){super(_0x5a87fa);const t=_0x5a87fa['t'];this['set']('errorType',null);const _0x30945e=new _0x1d210f(_0x5a87fa);_0x30945e['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x30945e['withText']=!0x0,_0x30945e['class']='ck-button-action',_0x30945e['on']('execute',()=>{this['fire']('retry');}),_0x30945e['bind']('isVisible')['to'](this,'errorType',_0x16e8d7=>'NotFound'!==_0x16e8d7);const _0x204c23=new at();_0x204c23['content']=et,_0x204c23['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2c5890=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':[_0x204c23,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2c5890['to']('errorType',_0x1a8f02=>t('NotFound'!==_0x1a8f02?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x30945e]},{'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 _0xf9404c{constructor(_0x511064,_0x543189){super(_0x511064);const _0x310678=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x543189,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x310678['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x20195a,_0x3533e8,_0x565869){super(_0x20195a),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x20195a),this['_errorView']=new rt(_0x20195a),this['_editingView']=new tt(_0x20195a,_0x565869),this['_focusableView']=new _0xf9404c(_0x20195a),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3533e8),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'],_0x434954=>{this['_addUploadcareImageEditorListeners'](_0x434954);});}),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'](_0x336936,_0x4f115c){const _0x4acd43='uc-cloud-image-editor',_0x5b34a2=_0x336936['querySelector'](_0x4acd43);if(_0x5b34a2)return _0x4f115c(_0x5b34a2);const _0x385f27=new MutationObserver(_0x159629=>{const _0x4e7d11=_0x159629['filter'](_0x4cdfcf=>_0x4cdfcf['target']===_0x336936&&_0x4cdfcf['addedNodes']['length']>0x0&&_0x4cdfcf['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4acd43);_0x4e7d11['length']&&(_0x385f27['disconnect'](),_0x4f115c(_0x4e7d11[0x0]['addedNodes'][0x0]));});_0x385f27['observe'](_0x336936,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2652bc){_0x2652bc['addEventListener']('apply',_0x9bd898=>{this['fire']('apply',{'imageSrc':_0x9bd898['detail']['cdnUrl']});}),_0x2652bc['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x237a2f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5536ab,_0x3604fd,_0x3f7f18){super(),this['_editor']=_0x5536ab,this['_dialog']=_0x3604fd,this['_imageElement']=_0x3f7f18,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 _0xa40932=this['_imageElement'],_0x26ef9a=_0xa40932['getAttribute']('uploadcareImageId'),_0x464b50=_0xa40932['getAttribute']('src');if(_0x26ef9a)await this['_loadImageInfo'](_0x26ef9a,_0x464b50);else{if(this['_imageCache']['has'](_0x464b50)){const _0x62ca2a=this['_imageCache']['get'](_0x464b50);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x62ca2a['url'],this['imageDimension']=_0x62ca2a['dimension'],this['imageId']=_0x62ca2a['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x51bb46}=this['_editor'],t=_0x51bb46['t'],_0x14b077=new Z(_0x51bb46,this['imageStatus'],this['_attributes']);_0x14b077['bind']('status')['to'](this,'imageStatus'),_0x14b077['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x14b077['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x14b077['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x14b077,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x6999e3,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x14b077,'position':_0x440fff['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x14b077['focus']();},'onHide':()=>{_0x14b077['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x58584=>!F(_0x58584,_0x14b077['element'])}});}['_loadImageInfo'](_0x7f8e52,_0x33d39a){return C['getInfo'](_0x7f8e52,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3a570d=>{const {width:_0x3351bf,height:_0x9a2b41}=_0x3a570d['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x33d39a,this['imageDimension']={'width':_0x3351bf,'height':_0x9a2b41},this['imageId']=_0x7f8e52;})['catch'](_0x4d5d49=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4d5d49['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1b6eb4,_0x2a4976){return this['_getImageAsFile'](_0x1b6eb4)['then'](_0x2c6579=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2a4976['signal'],'file':_0x2c6579,'onProgress':_0xe4056e=>{_0xe4056e&&_0xe4056e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xe4056e['value']));}}))['then'](_0x3a1da8=>{const {width:_0xa6290c,height:_0x1ec7c0}=_0x3a1da8['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3a1da8['cdnUrl'],this['imageDimension']={'width':_0xa6290c,'height':_0x1ec7c0},this['imageId']=_0x3a1da8['uuid'],this['imageUploadProgress']=null;const _0x2b2e7c=_0x1b6eb4['getAttribute']('src');this['_imageCache']['set'](_0x2b2e7c,{'id':_0x3a1da8['uuid'],'url':_0x3a1da8['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x163f03=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x163f03['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x35234a,_0x311ff6){_0x35234a['on']('apply',(_0x40b5cf,_0x1f32a4)=>{this['_replaceImage'](_0x311ff6,_0x1f32a4['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x35234a['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x35234a['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x46bf9e,_0x187a38,_0x406d5e){const _0x4b65c4=this['_editor'],{width:_0x4e8112,height:_0x28bf9a}=A(_0x187a38,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xd7aaea,imageSources:_0x46a85b}=E(_0x187a38,_0x4e8112);_0x4b65c4['model']['change'](_0x2f0379=>{if('$graveyard'===_0x46bf9e['root']['rootName']){_0x4b65c4['execute']('insertImage',{'imageType':_0x46bf9e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x46bf9e['getAttributes']()),'uploadcareImageId':_0x406d5e,'src':_0xd7aaea,'sources':_0x46a85b,'width':_0x4e8112,'height':_0x28bf9a}});const _0x2c2420=_0x46bf9e['getChildren']();_0x46bf9e=_0x4b65c4['model']['document']['selection']['getSelectedElement']();for(const _0x5068f1 of _0x2c2420)_0x2f0379['append'](_0x2f0379['cloneElement'](_0x5068f1),_0x46bf9e);}else _0x2f0379['setSelection'](_0x46bf9e,'on'),_0x4b65c4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x46bf9e['getAttributes']()),'uploadcareImageId':_0x406d5e,'src':_0xd7aaea,'sources':_0x46a85b,'width':_0x4e8112,'height':_0x28bf9a},_0x46bf9e);_0x2f0379['setSelection'](_0x46bf9e,'on');});}async['_getImageAsFile'](_0xf433b5){const _0x394aae=_0x18460b['window'],_0x10d5de=_0x18460b['document']['location']['href'],_0x30d7d0=new _0x394aae['URL'](_0xf433b5['getAttribute']('src'),_0x10d5de);if('data:'===_0x30d7d0['protocol']){const _0x1654d2=_0x30d7d0['href']['split'](','),_0x509931=_0x1654d2[0x0]['match'](/:(.*?);/)[0x1],_0x351b87=_0x509931['split']('/')[0x1],_0x3e350a=_0x394aae['atob'](_0x1654d2[_0x1654d2['length']-0x1]);let _0x12a696=_0x3e350a['length'];const _0x4dab3d=new _0x394aae['Uint8Array'](_0x12a696);for(;_0x12a696--;)_0x4dab3d[_0x12a696]=_0x3e350a['charCodeAt'](_0x12a696);return new _0x394aae['File']([_0x4dab3d],'image.'+_0x351b87,{'type':_0x509931});}const _0x50ee51=_0x30d7d0['href']['split']('/'),_0x308a37=_0x50ee51[_0x50ee51['length']-0x1],_0x31901d=_0x308a37['split']('.')[0x1];return _0x394aae['fetch'](_0x30d7d0['href'])['then'](_0x2b8e48=>_0x2b8e48['clone']()['blob']())['then'](_0x3edf67=>new _0x394aae['File']([_0x3edf67],_0x308a37,{'type':'image/'+_0x31901d}));}}class J extends _0x9ac5a3{['imageEditController'];static get['requires'](){return[_0x205ef4];}['_isEditable'];constructor(_0x1d9398){super(_0x1d9398),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x20c729){const _0x5ab95e=V(_0x20c729);return _0x4a0890=>!(!_0x4a0890||!_0x4a0890['is']('element','imageBlock')&&!_0x4a0890['is']('element','imageInline'))&&(!!_0x4a0890['hasAttribute']('uploadcareImageId')||!!_0x4a0890['hasAttribute']('src')&&_0x5ab95e(_0x4a0890['getAttribute']('src')));}(_0x1d9398['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xf2030c=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xf2030c);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x24a05a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x24a05a&&(_0x24a05a['is']('element','imageBlock')||_0x24a05a['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x205ef4),_0x24a05a),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x9ac5a3{['refresh'](){const _0x721644=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x721644&&(_0x721644['is']('element','imageBlock')||_0x721644['is']('element','imageInline')));}['execute'](_0x3e7d50){const _0x55b51c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x4fbe3b=>{_0x4fbe3b['setAttributes'](_0x3e7d50,_0x55b51c),_0x4fbe3b['removeAttribute']('srcset',_0x55b51c),_0x4fbe3b['removeAttribute']('sizes',_0x55b51c);});}}class g extends _0xc86962{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x1ee897,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5cc65e}=this;_0x5cc65e['commands']['add']('uploadcareImageEdit',new J(_0x5cc65e)),_0x5cc65e['commands']['add']('uploadcareImageReplace',new O(_0x5cc65e));}}class j extends _0xc86962{['_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 _0x487035=this['editor'];_0x487035['ui']['componentFactory']['add']('uploadcareImageEdit',_0x38aeef=>{const _0x4a2d64=_0x487035['commands']['get']('uploadcareImageEdit'),_0x128115=new _0x1d210f(_0x38aeef),t=_0x38aeef['t'];return _0x128115['set']({'icon':_0x6999e3,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x128115['bind']('isEnabled')['to'](_0x4a2d64),_0x128115['bind']('isOn')['to'](_0x4a2d64,'isActive'),this['listenTo'](_0x128115,'execute',()=>{_0x487035['execute']('uploadcareImageEdit'),_0x487035['editing']['view']['focus']();}),_0x128115;}),this['_initConfig']();}['_initConfig'](){const _0x2c007b=_0x55311f(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2c007b),this['listenTo'](this['editor'],'destroy',()=>{_0x2c007b['remove']();});}}class P extends _0xc86962{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-20250525.0",
3
+ "version": "0.0.0-nightly-20250526.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-20250525.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250525.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250525.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250525.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250525.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250525.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250525.0",
33
- "ckeditor5": "0.0.0-nightly-20250525.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250526.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250526.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250526.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250526.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250526.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250526.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250526.0",
33
+ "ckeditor5": "0.0.0-nightly-20250526.0",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29e3cc=_0xfe76;(function(_0x2f4661,_0x3deff0){const _0x486844=_0xfe76,_0x309c19=_0x2f4661();while(!![]){try{const _0x168555=parseInt(_0x486844(0x1b5))/0x1+-parseInt(_0x486844(0x1e9))/0x2+-parseInt(_0x486844(0x1d1))/0x3+-parseInt(_0x486844(0x1ef))/0x4*(parseInt(_0x486844(0x1c4))/0x5)+-parseInt(_0x486844(0x1c9))/0x6*(-parseInt(_0x486844(0x1d5))/0x7)+-parseInt(_0x486844(0x1ca))/0x8*(-parseInt(_0x486844(0x1c1))/0x9)+-parseInt(_0x486844(0x1b7))/0xa*(-parseInt(_0x486844(0x1f9))/0xb);if(_0x168555===_0x3deff0)break;else _0x309c19['push'](_0x309c19['shift']());}catch(_0x4e3876){_0x309c19['push'](_0x309c19['shift']());}}}(_0x25ee,0x58d37));import{Plugin as _0x2aada5}from'ckeditor5/src/core.js';import{Dialog as _0x6de04d}from'ckeditor5/src/ui.js';import{createElement as _0x29c041,global as _0x1af7f9,uid as _0x35652c}from'ckeditor5/src/utils.js';import _0x371731 from'./uploadcarecommand.js';function _0xfe76(_0x4423f6,_0xb6204f){const _0x25ee12=_0x25ee();return _0xfe76=function(_0xfe76e9,_0x275a5f){_0xfe76e9=_0xfe76e9-0x1b3;let _0x25560e=_0x25ee12[_0xfe76e9];return _0x25560e;},_0xfe76(_0x4423f6,_0xb6204f);}import _0x505d87 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x522da5}from'./utils/editingutils.js';function _0x25ee(){const _0x4ffe96=['once','extend','#uc-icon-arrow-down','getSelectedElement','12cbNgTz','142504fnNHuY','commands','closeMax','true','execute','upcast','uc-config','2169456BfPjLL','document','listenTo','afterInit','2203964tHXGHw','editing','map','ctxElement','uploadcareImageId','imageBlock','removeAttribute','_initConversion','isRegistered','configElement','schema','model','getAttribute','destroy','PictureEditing','_initConfig','editor','replaceImageSource','uploadcare.pubkey','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','1408404HSCkIy','render','data-uc-image-id','pluginName','downcast','add','4yZGuLg','locale','uploadcareImageReplace','attributeToAttribute','_initImageProcessingIndicator','href','appendChild','config','_ctxElement','view','22MhuXvf','init','_initCtx','UploadcareEditing','isOfficialPlugin','querySelector','join','uploadcare','fromCharCode','requires','cleanupImage','_configElement','isPremiumPlugin','input[uploadcare-file-input]','uc-upload-ctx-provider','get','iconHrefResolver','11750ntkuvH','uploader','8506870xGjypV','contentLanguage','_initSchema','selection','for','body','remove','imageInline','conversion','uploadcare.uploader','27peomlN','elementToAttribute','insertImage','3025410RCxBbc'];_0x25ee=function(){return _0x4ffe96;};return _0x25ee();}export default class i extends _0x2aada5{[_0x29e3cc(0x204)]=null;[_0x29e3cc(0x1f7)]=null;static get[_0x29e3cc(0x1ec)](){const _0x598999=_0x29e3cc;return _0x598999(0x1fc);}static get[_0x29e3cc(0x202)](){const _0x6bf219=_0x29e3cc;return[_0x6bf219(0x1e3),_0x505d87,_0x6de04d];}static get[_0x29e3cc(0x1fd)](){return!0x0;}static get[_0x29e3cc(0x205)](){return!0x0;}get[_0x29e3cc(0x1de)](){const _0x4259f5=_0x29e3cc;return this[_0x4259f5(0x204)];}get[_0x29e3cc(0x1d8)](){const _0x601645=_0x29e3cc;return this[_0x601645(0x1f7)];}[_0x29e3cc(0x1fa)](){const _0x83e4c3=_0x29e3cc,_0x72ab9a=this[_0x83e4c3(0x1e5)];_0x72ab9a[_0x83e4c3(0x1cb)][_0x83e4c3(0x1ee)](_0x83e4c3(0x200),new _0x371731(_0x72ab9a));}[_0x29e3cc(0x1d4)](){const _0x3a231a=_0x29e3cc;this[_0x3a231a(0x1b9)](),this[_0x3a231a(0x1dc)](),this[_0x3a231a(0x1e4)](),this[_0x3a231a(0x1fb)](),this[_0x3a231a(0x1f3)](),this[_0x3a231a(0x1d3)](this[_0x3a231a(0x1e5)],_0x3a231a(0x1e2),()=>{const _0x297e53=_0x3a231a;this[_0x297e53(0x204)]&&(this[_0x297e53(0x204)][_0x297e53(0x1bd)](),this[_0x297e53(0x204)]=null),this[_0x297e53(0x1f7)]&&(this[_0x297e53(0x1f7)][_0x297e53(0x1bd)](),this[_0x297e53(0x1f7)]=null);const _0x149283=_0x1af7f9[_0x297e53(0x1d2)][_0x297e53(0x1fe)](_0x297e53(0x206));_0x149283&&_0x149283[_0x297e53(0x1bd)]();}),async function(_0x538087){const _0x186e47=_0x5a413e([0x4e,0x42,0x6c,0x30,0x73,0x78,0x71,0x52,0x44,0x58,0x76,0x72,0x6e,0x6a,0x54,0x68,0x38,0x6d,0x79,0x69,0x4f,0x74,0x50,0x70,0x43,0x36,0x59,0x65,0x32,0x48,0x75,0x64,0x33,0x53,0x56,0x66,0x4c,0x39,0x49,0x34,0x61,0x63,0x45,0x51,0x77,0x31,0x4b,0x6b,0x46,0x55,0x4a,0x37,0x41,0x6f,0x5a,0x35,0x47,0x4d,0x62,0x7a,0x57,0x67]),_0x388419=0x169d4413,_0x63b9db=0x169a2ccb^_0x388419,_0x19a794=window[_0x5a413e([0x44,0x61,0x74,0x65])][_0x5a413e([0x6e,0x6f,0x77])](),_0x422adf=_0x538087[_0x5a413e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c94d7=new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f547a=>{_0x422adf[_0x5a413e([0x6f,0x6e,0x63,0x65])](_0x5a413e([0x72,0x65,0x61,0x64,0x79]),_0x3f547a);}),_0x49ec49={[_0x5a413e([0x6b,0x74,0x79])]:_0x5a413e([0x45,0x43]),[_0x5a413e([0x75,0x73,0x65])]:_0x5a413e([0x73,0x69,0x67]),[_0x5a413e([0x63,0x72,0x76])]:_0x5a413e([0x50,0x2d,0x32,0x35,0x36]),[_0x5a413e([0x78])]:_0x5a413e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x5a413e([0x79])]:_0x5a413e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x5a413e([0x61,0x6c,0x67])]:_0x5a413e([0x45,0x53,0x32,0x35,0x36])},_0x49b391=_0x422adf[_0x5a413e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a413e([0x67,0x65,0x74])](_0x5a413e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x145ec3(){let _0x69b0c4,_0x2fe12e=null,_0x2b5142=null;try{if(_0x49b391==_0x5a413e([0x47,0x50,0x4c]))return _0x5a413e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x69b0c4=_0x39c684(),!_0x69b0c4)return _0x5a413e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x69b0c4[_0x5a413e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b5142=_0xfc60df(_0x69b0c4[_0x5a413e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x69b0c4[_0x5a413e([0x6a,0x74,0x69])])),await _0x3a1dd3()?_0x579ab7()?_0x2270bc()?_0x5a413e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a8723()?(_0x69b0c4[_0x5a413e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a413e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fe12e=_0x1950cb(_0x5a413e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x69b0c4[_0x5a413e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a413e([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fe12e=_0x1950cb(_0x5a413e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16077c()):_0x5a413e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a413e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a413e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x11c0e6){return _0x5a413e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2270bc(){const _0x1670e0=[_0x5a413e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a413e([0x74,0x72,0x69,0x61,0x6c])][_0x5a413e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x69b0c4[_0x5a413e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19a794/0x3e8:0xe10*_0x63b9db;return _0x69b0c4[_0x5a413e([0x65,0x78,0x70])]<_0x1670e0;}function _0x579ab7(){const _0xe905c8=_0x69b0c4[_0x5a413e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xe905c8&&(!!_0xe905c8[_0x5a413e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a413e([0x2a]))||!!_0xe905c8[_0x5a413e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a413e([0x55,0x50,0x4c,0x43])));}function _0x5a8723(){const _0x5b9bb2=_0xfe76,_0x555e4a=_0x69b0c4[_0x5a413e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x555e4a||0x0==_0x555e4a[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x419c3a}=new URL(window[_0x5a413e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5b9bb2(0x1f4)]);if(_0x555e4a[_0x5a413e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x419c3a))return!0x0;const _0x320e5f=_0x419c3a[_0x5a413e([0x73,0x70,0x6c,0x69,0x74])](_0x5a413e([0x2e]));return _0x555e4a[_0x5a413e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d7a0d=>_0x3d7a0d[_0x5a413e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a413e([0x2a])))[_0x5a413e([0x6d,0x61,0x70])](_0x12616e=>_0x12616e[_0x5a413e([0x73,0x70,0x6c,0x69,0x74])](_0x5a413e([0x2e])))[_0x5a413e([0x73,0x6f,0x6d,0x65])](_0x44222d=>_0x320e5f[_0x5a413e([0x65,0x76,0x65,0x72,0x79])]((_0x2e59b5,_0x1424bc)=>_0x44222d[_0x1424bc]===_0x2e59b5||_0x44222d[_0x1424bc]===_0x5a413e([0x2a])));}function _0x16077c(){return _0x2fe12e&&_0x2b5142?new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b58e6,_0x14ac98)=>{_0x2fe12e[_0x5a413e([0x74,0x68,0x65,0x6e])](_0x2b58e6,_0x14ac98),_0x2b5142[_0x5a413e([0x74,0x68,0x65,0x6e])](_0x5c0f63=>{_0x5c0f63!=_0x5a413e([0x56,0x61,0x6c,0x69,0x64])&&_0x2b58e6(_0x5c0f63);},_0x14ac98);}):_0x2fe12e||_0x2b5142||_0x5a413e([0x56,0x61,0x6c,0x69,0x64]);}}function _0xfc60df(_0x47a6be,_0x313548){return new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18e453=>{if(_0x43faa0())return _0x18e453(_0x5a413e([0x56,0x61,0x6c,0x69,0x64]));_0x32c803(),_0x422adf[_0x5a413e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a413e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x410416=!0x1;const _0x324c22=_0x35652c();function _0x26b822(_0x1e3268){return!!_0x1e3268&&(typeof _0x1e3268===_0x5a413e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e3268===_0x5a413e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e3268[_0x5a413e([0x74,0x68,0x65,0x6e])]===_0x5a413e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e3268[_0x5a413e([0x63,0x61,0x74,0x63,0x68])]===_0x5a413e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4bdf52(_0x509175){_0x41f521(_0x509175)[_0x5a413e([0x74,0x68,0x65,0x6e])](_0x307ae2=>{if(!_0x307ae2||_0x307ae2[_0x5a413e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a413e([0x6f,0x6b]))return _0x5a413e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x585dbb(_0x129a0d(_0x324c22+_0x313548))!=_0x307ae2[_0x5a413e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a413e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a413e([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a413e([0x74,0x68,0x65,0x6e])](_0xdd70f0=>(_0x193405(),_0xdd70f0),()=>{const _0x365ebf=_0x1a696a();return null==_0x365ebf?(_0x193405(),_0x5a413e([0x56,0x61,0x6c,0x69,0x64])):_0x5a413e(_0x19a794-_0x365ebf>(0x3291c013^_0x388419)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a413e([0x74,0x68,0x65,0x6e])](_0x18e453)[_0x5a413e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x18e453(_0x5a413e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x257f3a=0x16abaa93^_0x388419;function _0x193405(){const _0x16fcd0=_0x5a413e([0x6c,0x6c,0x63,0x74,0x2d])+_0x585dbb(_0x129a0d(_0x47a6be)),_0x8b6832=_0x24c7c9(_0x585dbb(window[_0x5a413e([0x4d,0x61,0x74,0x68])][_0x5a413e([0x63,0x65,0x69,0x6c])](_0x19a794/_0x257f3a)));window[_0x5a413e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a413e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16fcd0,_0x8b6832);}function _0x1a696a(){const _0x1671a5=_0x5a413e([0x6c,0x6c,0x63,0x74,0x2d])+_0x585dbb(_0x129a0d(_0x47a6be)),_0x3412a2=window[_0x5a413e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a413e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1671a5);return _0x3412a2?window[_0x5a413e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24c7c9(_0x3412a2),0x10)*_0x257f3a:null;}function _0x41f521(_0x2d50c8){return new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46cb10,_0xc8f92a)=>{_0x2d50c8[_0x5a413e([0x74,0x68,0x65,0x6e])](_0x46cb10,_0xc8f92a),window[_0x5a413e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc8f92a,0x169c90d3^_0x388419);});}}_0x422adf[_0x5a413e([0x6f,0x6e])](_0x5a413e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x36cc0f,_0x5f3e4d)=>{if(_0x5f3e4d[0x0]!=_0x47a6be)return _0x18e453(_0x5a413e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f3e4d[0x1]={..._0x5f3e4d[0x1],[_0x5a413e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x324c22};},{[_0x5a413e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a413e([0x68,0x69,0x67,0x68])}),_0x422adf[_0x5a413e([0x6f,0x6e])](_0x5a413e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ac92c=>{_0x26b822(_0x5ac92c[_0x5a413e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x410416=!0x0,_0x4bdf52(_0x5ac92c[_0x5a413e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a413e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a413e([0x6c,0x6f,0x77])}),_0x4c94d7[_0x5a413e([0x74,0x68,0x65,0x6e])](()=>{_0x410416||_0x18e453(_0x5a413e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x43faa0(){return _0x422adf[_0x5a413e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a413e([0x76,0x69,0x65,0x77])][_0x5a413e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a413e([0x61,0x75,0x74,0x6f]);}function _0x32c803(){_0x422adf[_0x5a413e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a413e([0x76,0x69,0x65,0x77])][_0x5a413e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a413e([0x61,0x75,0x74,0x6f]);}}function _0x1950cb(_0x1ff70b){const _0x25760d=[new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x134963=>setTimeout(_0x134963,0x16947adf^_0x388419)),_0x4c94d7[_0x5a413e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x263ba4=>{let _0x437dc5=0x0;_0x422adf[_0x5a413e([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a413e([0x6f,0x6e])](_0x5a413e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x423598,_0x70d773)=>{_0x70d773[0x0][_0x5a413e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x437dc5++,_0x437dc5==(0x169d45eb^_0x388419)&&(_0x263ba4(),_0x423598[_0x5a413e([0x6f,0x66,0x66])]());});}))];return window[_0x5a413e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a413e([0x72,0x61,0x63,0x65])](_0x25760d)[_0x5a413e([0x74,0x68,0x65,0x6e])](()=>_0x1ff70b);}async function _0x38bac5(){await _0x4c94d7,_0x422adf[_0x5a413e([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a413e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5dd634,_0x422adf[_0x5a413e([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a413e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5dd634,_0x422adf[_0x5a413e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a413e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4fb5f4(_0x5eea2a){const _0x882dc4=_0x211de9();_0x422adf[_0x882dc4]=_0x5a413e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5eea2a,_0x5eea2a!=_0x5a413e([0x56,0x61,0x6c,0x69,0x64])&&_0x38bac5();}function _0x211de9(){const _0x2d738b=window[_0x5a413e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a413e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a413e([0x6e,0x6f,0x77])]())[_0x5a413e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a413e([0x2e]),'');let _0x1fb8f5=_0x5a413e([0x4e]);for(let _0x304efd=0x0;_0x304efd<_0x2d738b[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x304efd+=0x2){let _0x5e64ed=window[_0x5a413e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d738b[_0x5a413e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x304efd,_0x304efd+0x2));_0x5e64ed>=_0x186e47[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e64ed-=_0x186e47[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1fb8f5+=_0x186e47[_0x5e64ed];}return _0x1fb8f5;}function _0x39c684(){const _0x3dffbe=_0x49b391[_0x5a413e([0x73,0x70,0x6c,0x69,0x74])](_0x5a413e([0x2e]));if(0x3!=_0x3dffbe[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x26a9dd(_0x3dffbe[0x1]);function _0x26a9dd(_0x4c0013){const _0x42a871=_0x6928e3(_0x4c0013);return _0x42a871&&_0xba87bb()?_0x42a871:null;function _0xba87bb(){const _0x559709=_0x42a871[_0x5a413e([0x6a,0x74,0x69])],_0x40ecc1=window[_0x5a413e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x559709[_0x5a413e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x559709[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2873da={..._0x42a871,[_0x5a413e([0x6a,0x74,0x69])]:_0x559709[_0x5a413e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x559709[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2873da[_0x5a413e([0x76,0x63])],_0x129a0d(_0x2873da)==_0x40ecc1;}}}async function _0x3a1dd3(){let _0x5209db=!0x0;try{const _0x3b5057=_0x49b391[_0x5a413e([0x73,0x70,0x6c,0x69,0x74])](_0x5a413e([0x2e])),[_0x52abf9,_0xb95919,_0x4a3996]=_0x3b5057;return _0xed38fd(_0x52abf9),await _0x1f8c34(_0x52abf9,_0xb95919,_0x4a3996),_0x5209db;}catch(_0x338041){return!0x1;}function _0xed38fd(_0x325a36){const _0x256836=_0x6928e3(_0x325a36);_0x256836&&_0x256836[_0x5a413e([0x61,0x6c,0x67])]==_0x5a413e([0x45,0x53,0x32,0x35,0x36])||(_0x5209db=!0x1);}async function _0x1f8c34(_0x4b405a,_0x372340,_0x3ad948){const _0xd58150=window[_0x5a413e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a413e([0x66,0x72,0x6f,0x6d])](_0x348a5b(_0x3ad948),_0x26fc75=>_0x26fc75[_0x5a413e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5af9a6=new window[(_0x5a413e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a413e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b405a+_0x5a413e([0x2e])+_0x372340),_0x43327b=window[_0x5a413e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a413e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43327b)return;const _0x5cd80b=await _0x43327b[_0x5a413e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a413e([0x6a,0x77,0x6b]),_0x49ec49,{[_0x5a413e([0x6e,0x61,0x6d,0x65])]:_0x5a413e([0x45,0x43,0x44,0x53,0x41]),[_0x5a413e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a413e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a413e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43327b[_0x5a413e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a413e([0x6e,0x61,0x6d,0x65])]:_0x5a413e([0x45,0x43,0x44,0x53,0x41]),[_0x5a413e([0x68,0x61,0x73,0x68])]:{[_0x5a413e([0x6e,0x61,0x6d,0x65])]:_0x5a413e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5cd80b,_0xd58150,_0x5af9a6)||(_0x5209db=!0x1);}}function _0x6928e3(_0x48f642){return _0x48f642[_0x5a413e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a413e([0x65,0x79]))?JSON[_0x5a413e([0x70,0x61,0x72,0x73,0x65])](_0x348a5b(_0x48f642)):null;}function _0x348a5b(_0x12627f){return window[_0x5a413e([0x61,0x74,0x6f,0x62])](_0x12627f[_0x5a413e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a413e([0x2b]))[_0x5a413e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a413e([0x2f])));}function _0x129a0d(_0x14f0c6){let _0x1f88f9=0x1505;function _0x1a0e75(_0x4fbb1c){for(let _0x19038c=0x0;_0x19038c<_0x4fbb1c[_0x5a413e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19038c++){const _0x2e3fa7=_0x4fbb1c[_0x5a413e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19038c);_0x1f88f9=(_0x1f88f9<<0x5)+_0x1f88f9+_0x2e3fa7,_0x1f88f9&=_0x1f88f9;}}function _0x3a408f(_0x1b56bd){Array[_0x5a413e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1b56bd)?_0x1b56bd[_0x5a413e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a408f):_0x1b56bd&&typeof _0x1b56bd==_0x5a413e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a413e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1b56bd)[_0x5a413e([0x73,0x6f,0x72,0x74])]()[_0x5a413e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4fd69e,_0x178b2e])=>{_0x1a0e75(_0x4fd69e),_0x3a408f(_0x178b2e);}):_0x1a0e75(window[_0x5a413e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1b56bd));}return _0x3a408f(_0x14f0c6),_0x1f88f9>>>0x0;}function _0x585dbb(_0x475785){return _0x475785[_0x5a413e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a413e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a413e([0x30]));}function _0x24c7c9(_0x2e90b4){return _0x2e90b4[_0x5a413e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a413e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a413e([0x6a,0x6f,0x69,0x6e])]('');}function _0x5dd634(){}function _0x5a413e(_0x4256f9){const _0x13907c=_0xfe76;return _0x4256f9[_0x13907c(0x1d7)](_0x371229=>String[_0x13907c(0x201)](_0x371229))[_0x13907c(0x1ff)]('');}_0x4fb5f4(await _0x145ec3());}(this);}[_0x29e3cc(0x1b9)](){const _0x2f1943=_0x29e3cc,_0x4de793=this[_0x2f1943(0x1e5)][_0x2f1943(0x1e0)][_0x2f1943(0x1df)];_0x4de793[_0x2f1943(0x1dd)](_0x2f1943(0x1da))&&_0x4de793[_0x2f1943(0x1c6)](_0x2f1943(0x1da),{'allowAttributes':[_0x2f1943(0x1d9)]}),_0x4de793[_0x2f1943(0x1dd)](_0x2f1943(0x1be))&&_0x4de793[_0x2f1943(0x1c6)](_0x2f1943(0x1be),{'allowAttributes':[_0x2f1943(0x1d9)]});}[_0x29e3cc(0x1dc)](){const _0x354605=_0x29e3cc,_0x3bb947=this[_0x354605(0x1e5)];_0x3bb947[_0x354605(0x1bf)][_0x354605(0x1bb)](_0x354605(0x1ed))[_0x354605(0x1f2)]({'model':_0x354605(0x1d9),'view':_0x354605(0x1eb)}),_0x3bb947[_0x354605(0x1bf)][_0x354605(0x1bb)](_0x354605(0x1cf))[_0x354605(0x1c2)]({'model':{'key':_0x354605(0x1d9),'value':_0x2ec760=>_0x2ec760[_0x354605(0x1e1)](_0x354605(0x1eb))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x416977=_0x3bb947[_0x354605(0x1cb)][_0x354605(0x1b3)](_0x354605(0x1e6));_0x416977&&this[_0x354605(0x1d3)](_0x416977,_0x354605(0x203),(_0x23bdaf,[_0x511594,_0x12e432])=>{const _0x4493e1=_0x354605;_0x511594[_0x4493e1(0x1db)](_0x4493e1(0x1d9),_0x12e432);});}[_0x29e3cc(0x1e4)](){const _0x1ef009=_0x29e3cc,_0x455c53=this[_0x1ef009(0x1e5)][_0x1ef009(0x1f6)][_0x1ef009(0x1b3)](_0x1ef009(0x1c0))||{},_0x3a2f43=this[_0x1ef009(0x1e5)][_0x1ef009(0x1f6)][_0x1ef009(0x1b3)](_0x1ef009(0x1e7))||'';this[_0x1ef009(0x204)]=_0x29c041(_0x1af7f9[_0x1ef009(0x1d2)],_0x1ef009(0x1d0),{..._0x455c53,'pubkey':_0x3a2f43,'ctx-name':_0x1ef009(0x1b6),'sourceList':'','imgOnly':_0x1ef009(0x1cd),'removeCopyright':_0x1ef009(0x1cd),'localeName':this[_0x1ef009(0x1e5)][_0x1ef009(0x1f0)][_0x1ef009(0x1b8)],'externalSourcesEmbedCss':_0x1ef009(0x1e8)}),this[_0x1ef009(0x204)][_0x1ef009(0x1b4)]=_0x50e72b=>{const _0x21a7f0=_0x1ef009;if(_0x21a7f0(0x1cc)==_0x50e72b)return _0x21a7f0(0x1c7);},_0x1af7f9[_0x1ef009(0x1d2)][_0x1ef009(0x1bc)][_0x1ef009(0x1f5)](this[_0x1ef009(0x204)]);}[_0x29e3cc(0x1fb)](){const _0x400b05=_0x29e3cc;this[_0x400b05(0x1f7)]=_0x29c041(_0x1af7f9[_0x400b05(0x1d2)],_0x400b05(0x207),{'ctx-name':_0x400b05(0x1b6)}),_0x1af7f9[_0x400b05(0x1d2)][_0x400b05(0x1bc)][_0x400b05(0x1f5)](this[_0x400b05(0x1f7)]);}[_0x29e3cc(0x1f3)](){const _0x511a56=_0x29e3cc,_0x4589bf=this[_0x511a56(0x1e5)][_0x511a56(0x1cb)][_0x511a56(0x1b3)](_0x511a56(0x1c3));_0x4589bf&&this[_0x511a56(0x1d3)](_0x4589bf,_0x511a56(0x1ce),()=>{const _0x33c659=_0x511a56,_0x1d4aa2=this[_0x33c659(0x1e5)][_0x33c659(0x1e0)][_0x33c659(0x1d2)][_0x33c659(0x1ba)][_0x33c659(0x1c8)]();_0x1d4aa2&&_0x1d4aa2[_0x33c659(0x1e1)](_0x33c659(0x1d9))&&this[_0x33c659(0x1e5)][_0x33c659(0x1d6)][_0x33c659(0x1f8)][_0x33c659(0x1c5)](_0x33c659(0x1ea),()=>{const _0x436f47=_0x33c659;_0x522da5(this[_0x436f47(0x1e5)],_0x1d4aa2);});});const _0x36f18a=this[_0x511a56(0x1e5)][_0x511a56(0x1cb)][_0x511a56(0x1b3)](_0x511a56(0x1f1));_0x36f18a&&this[_0x511a56(0x1d3)](_0x36f18a,_0x511a56(0x1ce),()=>{const _0x352a5a=_0x511a56,_0x4095f5=this[_0x352a5a(0x1e5)][_0x352a5a(0x1e0)][_0x352a5a(0x1d2)][_0x352a5a(0x1ba)][_0x352a5a(0x1c8)]();_0x4095f5&&_0x4095f5[_0x352a5a(0x1e1)](_0x352a5a(0x1d9))&&this[_0x352a5a(0x1e5)][_0x352a5a(0x1d6)][_0x352a5a(0x1f8)][_0x352a5a(0x1c5)](_0x352a5a(0x1ea),()=>{const _0x1b321c=_0x352a5a;_0x522da5(this[_0x1b321c(0x1e5)],_0x4095f5);});});}}
23
+ const _0x3d40ea=_0x344c;(function(_0x4a9a1a,_0x4518de){const _0x1a1d6c=_0x344c,_0x1edc09=_0x4a9a1a();while(!![]){try{const _0x5a813a=-parseInt(_0x1a1d6c(0x129))/0x1+-parseInt(_0x1a1d6c(0x130))/0x2+parseInt(_0x1a1d6c(0x120))/0x3+parseInt(_0x1a1d6c(0x145))/0x4*(-parseInt(_0x1a1d6c(0x150))/0x5)+parseInt(_0x1a1d6c(0x15c))/0x6*(-parseInt(_0x1a1d6c(0x152))/0x7)+parseInt(_0x1a1d6c(0x146))/0x8*(parseInt(_0x1a1d6c(0x14e))/0x9)+parseInt(_0x1a1d6c(0x147))/0xa;if(_0x5a813a===_0x4518de)break;else _0x1edc09['push'](_0x1edc09['shift']());}catch(_0x288a20){_0x1edc09['push'](_0x1edc09['shift']());}}}(_0x5637,0xcefa5));import{Plugin as _0x1bc1ad}from'ckeditor5/src/core.js';import{Dialog as _0x18c7bd}from'ckeditor5/src/ui.js';import{createElement as _0x5365f3,global as _0x23433a,uid as _0x2115c0}from'ckeditor5/src/utils.js';function _0x5637(){const _0x2e0796=['_initImageProcessingIndicator','href','conversion','extend','imageBlock','_initConfig','replaceImageSource','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uploadcare','render','execute','upcast','editing','listenTo','getAttribute','document','init','closeMax','1657197UExaoF','pluginName','_ctxElement','add','editor','uc-config','_initSchema','commands','body','1325807twCQqT','remove','elementToAttribute','insertImage','true','_initCtx','isRegistered','1441366MRtRnN','configElement','map','contentLanguage','uploadcareImageReplace','selection','appendChild','getSelectedElement','view','#uc-icon-arrow-down','config','get','downcast','attributeToAttribute','for','schema','imageInline','_configElement','locale','uploadcare.uploader','uploadcare.pubkey','8rUENFS','8HsHnqY','44177160SmrVBI','querySelector','PictureEditing','data-uc-image-id','isOfficialPlugin','afterInit','join','236781vaneXH','model','2253205WQAyzJ','destroy','49MCWvnh','once','UploadcareEditing','fromCharCode','requires','uc-upload-ctx-provider','iconHrefResolver','uploader','input[uploadcare-file-input]','removeAttribute','1029318WQyBQH','ctxElement','_initConversion','uploadcareImageId','isPremiumPlugin','cleanupImage'];_0x5637=function(){return _0x2e0796;};return _0x5637();}function _0x344c(_0x4dbd7c,_0x254828){const _0x5637ae=_0x5637();return _0x344c=function(_0x344cdb,_0x22435b){_0x344cdb=_0x344cdb-0x112;let _0x223e69=_0x5637ae[_0x344cdb];return _0x223e69;},_0x344c(_0x4dbd7c,_0x254828);}import _0x5c3ced from'./uploadcarecommand.js';import _0x40da82 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x17fb7d}from'./utils/editingutils.js';export default class i extends _0x1bc1ad{[_0x3d40ea(0x141)]=null;[_0x3d40ea(0x122)]=null;static get[_0x3d40ea(0x121)](){const _0x5508b2=_0x3d40ea;return _0x5508b2(0x154);}static get[_0x3d40ea(0x156)](){const _0x59c3e8=_0x3d40ea;return[_0x59c3e8(0x149),_0x40da82,_0x18c7bd];}static get[_0x3d40ea(0x14b)](){return!0x0;}static get[_0x3d40ea(0x160)](){return!0x0;}get[_0x3d40ea(0x131)](){const _0x56e542=_0x3d40ea;return this[_0x56e542(0x141)];}get[_0x3d40ea(0x15d)](){const _0x40ee1b=_0x3d40ea;return this[_0x40ee1b(0x122)];}[_0x3d40ea(0x11e)](){const _0x1ef8da=_0x3d40ea,_0x207600=this[_0x1ef8da(0x124)];_0x207600[_0x1ef8da(0x127)][_0x1ef8da(0x123)](_0x1ef8da(0x116),new _0x5c3ced(_0x207600));}[_0x3d40ea(0x14c)](){const _0x2e4861=_0x3d40ea;this[_0x2e4861(0x126)](),this[_0x2e4861(0x15e)](),this[_0x2e4861(0x113)](),this[_0x2e4861(0x12e)](),this[_0x2e4861(0x162)](),this[_0x2e4861(0x11b)](this[_0x2e4861(0x124)],_0x2e4861(0x151),()=>{const _0x200c8b=_0x2e4861;this[_0x200c8b(0x141)]&&(this[_0x200c8b(0x141)][_0x200c8b(0x12a)](),this[_0x200c8b(0x141)]=null),this[_0x200c8b(0x122)]&&(this[_0x200c8b(0x122)][_0x200c8b(0x12a)](),this[_0x200c8b(0x122)]=null);const _0x7faddd=_0x23433a[_0x200c8b(0x11d)][_0x200c8b(0x148)](_0x200c8b(0x15a));_0x7faddd&&_0x7faddd[_0x200c8b(0x12a)]();}),async function(_0x5dcf97){const _0x2202c2=_0x52fa75([0x6c,0x47,0x75,0x39,0x4e,0x4a,0x33,0x6f,0x4c,0x50,0x51,0x53,0x57,0x31,0x6a,0x7a,0x55,0x4d,0x38,0x46,0x44,0x68,0x34,0x62,0x66,0x30,0x54,0x65,0x6d,0x6b,0x41,0x6e,0x52,0x74,0x37,0x71,0x70,0x49,0x77,0x73,0x72,0x61,0x4b,0x58,0x56,0x4f,0x59,0x45,0x48,0x42,0x36,0x69,0x63,0x5a,0x67,0x43,0x35,0x64,0x79,0x76,0x78,0x32]),_0x29db0a=0xd9d1e7a,_0xdf5b34=0xd9a768a^_0x29db0a,_0x28903b=window[_0x52fa75([0x44,0x61,0x74,0x65])][_0x52fa75([0x6e,0x6f,0x77])](),_0x2122ac=_0x5dcf97[_0x52fa75([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c4f5f=new window[(_0x52fa75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5956d9=>{_0x2122ac[_0x52fa75([0x6f,0x6e,0x63,0x65])](_0x52fa75([0x72,0x65,0x61,0x64,0x79]),_0x5956d9);}),_0x1da3c5={[_0x52fa75([0x6b,0x74,0x79])]:_0x52fa75([0x45,0x43]),[_0x52fa75([0x75,0x73,0x65])]:_0x52fa75([0x73,0x69,0x67]),[_0x52fa75([0x63,0x72,0x76])]:_0x52fa75([0x50,0x2d,0x32,0x35,0x36]),[_0x52fa75([0x78])]:_0x52fa75([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]),[_0x52fa75([0x79])]:_0x52fa75([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]),[_0x52fa75([0x61,0x6c,0x67])]:_0x52fa75([0x45,0x53,0x32,0x35,0x36])},_0x55f80c=_0x2122ac[_0x52fa75([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x52fa75([0x67,0x65,0x74])](_0x52fa75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22cc44(){let _0x58e499,_0x4b11e0=null,_0x30aaaa=null;try{if(_0x55f80c==_0x52fa75([0x47,0x50,0x4c]))return _0x52fa75([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x58e499=_0x3dfd0c(),!_0x58e499)return _0x52fa75([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x58e499[_0x52fa75([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x30aaaa=_0x1f492b(_0x58e499[_0x52fa75([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x58e499[_0x52fa75([0x6a,0x74,0x69])])),await _0x2f8cc7()?_0x3d04bd()?_0x37fd85()?_0x52fa75([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x72a1b0()?(_0x58e499[_0x52fa75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52fa75([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b11e0=_0x36dba0(_0x52fa75([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x58e499[_0x52fa75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x52fa75([0x74,0x72,0x69,0x61,0x6c])&&(_0x4b11e0=_0x36dba0(_0x52fa75([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14538d()):_0x52fa75([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x52fa75([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x52fa75([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x40b1e6){return _0x52fa75([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x37fd85(){const _0x395c56=[_0x52fa75([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x52fa75([0x74,0x72,0x69,0x61,0x6c])][_0x52fa75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58e499[_0x52fa75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x28903b/0x3e8:0xe10*_0xdf5b34;return _0x58e499[_0x52fa75([0x65,0x78,0x70])]<_0x395c56;}function _0x3d04bd(){const _0x419055=_0x58e499[_0x52fa75([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x419055&&(!!_0x419055[_0x52fa75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52fa75([0x2a]))||!!_0x419055[_0x52fa75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52fa75([0x55,0x50,0x4c,0x43])));}function _0x72a1b0(){const _0x4797ad=_0x344c,_0x31cabc=_0x58e499[_0x52fa75([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31cabc||0x0==_0x31cabc[_0x52fa75([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x343c89}=new URL(window[_0x52fa75([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4797ad(0x163)]);if(_0x31cabc[_0x52fa75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x343c89))return!0x0;const _0x58c353=_0x343c89[_0x52fa75([0x73,0x70,0x6c,0x69,0x74])](_0x52fa75([0x2e]));return _0x31cabc[_0x52fa75([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x443071=>_0x443071[_0x52fa75([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52fa75([0x2a])))[_0x52fa75([0x6d,0x61,0x70])](_0x25ae35=>_0x25ae35[_0x52fa75([0x73,0x70,0x6c,0x69,0x74])](_0x52fa75([0x2e])))[_0x52fa75([0x73,0x6f,0x6d,0x65])](_0xb8cffc=>_0x58c353[_0x52fa75([0x65,0x76,0x65,0x72,0x79])]((_0x3b3614,_0x5c5aeb)=>_0xb8cffc[_0x5c5aeb]===_0x3b3614||_0xb8cffc[_0x5c5aeb]===_0x52fa75([0x2a])));}function _0x14538d(){return _0x4b11e0&&_0x30aaaa?new window[(_0x52fa75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbf6a05,_0x5e3644)=>{_0x4b11e0[_0x52fa75([0x74,0x68,0x65,0x6e])](_0xbf6a05,_0x5e3644),_0x30aaaa[_0x52fa75([0x74,0x68,0x65,0x6e])](_0x56df3a=>{_0x56df3a!=_0x52fa75([0x56,0x61,0x6c,0x69,0x64])&&_0xbf6a05(_0x56df3a);},_0x5e3644);}):_0x4b11e0||_0x30aaaa||_0x52fa75([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1f492b(_0x4abcd3,_0x4b7fb0){return new window[(_0x52fa75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a1b75=>{if(_0x582e50())return _0x3a1b75(_0x52fa75([0x56,0x61,0x6c,0x69,0x64]));_0x553b47(),_0x2122ac[_0x52fa75([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x52fa75([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x532c2d=!0x1;const _0x278cc2=_0x2115c0();function _0xa057ac(_0x36327b){return!!_0x36327b&&(typeof _0x36327b===_0x52fa75([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x36327b===_0x52fa75([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x36327b[_0x52fa75([0x74,0x68,0x65,0x6e])]===_0x52fa75([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x36327b[_0x52fa75([0x63,0x61,0x74,0x63,0x68])]===_0x52fa75([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x518816(_0x44699e){_0x1db1b3(_0x44699e)[_0x52fa75([0x74,0x68,0x65,0x6e])](_0x3deecb=>{if(!_0x3deecb||_0x3deecb[_0x52fa75([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x52fa75([0x6f,0x6b]))return _0x52fa75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x18f51e(_0x42f07c(_0x278cc2+_0x4b7fb0))!=_0x3deecb[_0x52fa75([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x52fa75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x52fa75([0x56,0x61,0x6c,0x69,0x64]);})[_0x52fa75([0x74,0x68,0x65,0x6e])](_0x2b3b8d=>(_0x4ff72e(),_0x2b3b8d),()=>{const _0x4527ea=_0x1629f3();return null==_0x4527ea?(_0x4ff72e(),_0x52fa75([0x56,0x61,0x6c,0x69,0x64])):_0x52fa75(_0x28903b-_0x4527ea>(0x29919a7a^_0x29db0a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x52fa75([0x74,0x68,0x65,0x6e])](_0x3a1b75)[_0x52fa75([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3a1b75(_0x52fa75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1ef2ca=0xdabf0fa^_0x29db0a;function _0x4ff72e(){const _0x407254=_0x52fa75([0x6c,0x6c,0x63,0x74,0x2d])+_0x18f51e(_0x42f07c(_0x4abcd3)),_0x306129=_0xde321c(_0x18f51e(window[_0x52fa75([0x4d,0x61,0x74,0x68])][_0x52fa75([0x63,0x65,0x69,0x6c])](_0x28903b/_0x1ef2ca)));window[_0x52fa75([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52fa75([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x407254,_0x306129);}function _0x1629f3(){const _0x56524e=_0x52fa75([0x6c,0x6c,0x63,0x74,0x2d])+_0x18f51e(_0x42f07c(_0x4abcd3)),_0x40c805=window[_0x52fa75([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x52fa75([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56524e);return _0x40c805?window[_0x52fa75([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xde321c(_0x40c805),0x10)*_0x1ef2ca:null;}function _0x1db1b3(_0x2ca2f5){return new window[(_0x52fa75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58cfae,_0x79b778)=>{_0x2ca2f5[_0x52fa75([0x74,0x68,0x65,0x6e])](_0x58cfae,_0x79b778),window[_0x52fa75([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x79b778,0xd9ccaba^_0x29db0a);});}}_0x2122ac[_0x52fa75([0x6f,0x6e])](_0x52fa75([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x74896f,_0x2d7f83)=>{if(_0x2d7f83[0x0]!=_0x4abcd3)return _0x3a1b75(_0x52fa75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2d7f83[0x1]={..._0x2d7f83[0x1],[_0x52fa75([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x278cc2};},{[_0x52fa75([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52fa75([0x68,0x69,0x67,0x68])}),_0x2122ac[_0x52fa75([0x6f,0x6e])](_0x52fa75([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e76b5=>{_0xa057ac(_0x5e76b5[_0x52fa75([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x532c2d=!0x0,_0x518816(_0x5e76b5[_0x52fa75([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x52fa75([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x52fa75([0x6c,0x6f,0x77])}),_0x5c4f5f[_0x52fa75([0x74,0x68,0x65,0x6e])](()=>{_0x532c2d||_0x3a1b75(_0x52fa75([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x582e50(){return _0x2122ac[_0x52fa75([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52fa75([0x76,0x69,0x65,0x77])][_0x52fa75([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x52fa75([0x61,0x75,0x74,0x6f]);}function _0x553b47(){_0x2122ac[_0x52fa75([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x52fa75([0x76,0x69,0x65,0x77])][_0x52fa75([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x52fa75([0x61,0x75,0x74,0x6f]);}}function _0x36dba0(_0x3cfed2){const _0x1b18ad=[new window[(_0x52fa75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48d323=>setTimeout(_0x48d323,0xd9420b6^_0x29db0a)),_0x5c4f5f[_0x52fa75([0x74,0x68,0x65,0x6e])](()=>new window[(_0x52fa75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x575770=>{let _0x3c39ae=0x0;_0x2122ac[_0x52fa75([0x6d,0x6f,0x64,0x65,0x6c])][_0x52fa75([0x6f,0x6e])](_0x52fa75([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5c961a,_0x16d888)=>{_0x16d888[0x0][_0x52fa75([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c39ae++,_0x3c39ae==(0xd9d1f82^_0x29db0a)&&(_0x575770(),_0x5c961a[_0x52fa75([0x6f,0x66,0x66])]());});}))];return window[_0x52fa75([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x52fa75([0x72,0x61,0x63,0x65])](_0x1b18ad)[_0x52fa75([0x74,0x68,0x65,0x6e])](()=>_0x3cfed2);}async function _0x3e2241(){await _0x5c4f5f,_0x2122ac[_0x52fa75([0x6d,0x6f,0x64,0x65,0x6c])][_0x52fa75([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4a0977,_0x2122ac[_0x52fa75([0x6d,0x6f,0x64,0x65,0x6c])][_0x52fa75([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4a0977,_0x2122ac[_0x52fa75([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x52fa75([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x58c428(_0x1b6d70){const _0x2c004b=_0x335c9a();_0x2122ac[_0x2c004b]=_0x52fa75([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1b6d70,_0x1b6d70!=_0x52fa75([0x56,0x61,0x6c,0x69,0x64])&&_0x3e2241();}function _0x335c9a(){const _0x147e57=window[_0x52fa75([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x52fa75([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x52fa75([0x6e,0x6f,0x77])]())[_0x52fa75([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x52fa75([0x2e]),'');let _0x49f669=_0x52fa75([0x6c]);for(let _0x1f0bd0=0x0;_0x1f0bd0<_0x147e57[_0x52fa75([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f0bd0+=0x2){let _0x4c28d2=window[_0x52fa75([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x147e57[_0x52fa75([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f0bd0,_0x1f0bd0+0x2));_0x4c28d2>=_0x2202c2[_0x52fa75([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c28d2-=_0x2202c2[_0x52fa75([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x49f669+=_0x2202c2[_0x4c28d2];}return _0x49f669;}function _0x3dfd0c(){const _0x24093a=_0x55f80c[_0x52fa75([0x73,0x70,0x6c,0x69,0x74])](_0x52fa75([0x2e]));if(0x3!=_0x24093a[_0x52fa75([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x290101(_0x24093a[0x1]);function _0x290101(_0x32f05d){const _0x50ae16=_0x478549(_0x32f05d);return _0x50ae16&&_0x1dda00()?_0x50ae16:null;function _0x1dda00(){const _0xef16f5=_0x50ae16[_0x52fa75([0x6a,0x74,0x69])],_0xb90137=window[_0x52fa75([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xef16f5[_0x52fa75([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xef16f5[_0x52fa75([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x52c6fb={..._0x50ae16,[_0x52fa75([0x6a,0x74,0x69])]:_0xef16f5[_0x52fa75([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xef16f5[_0x52fa75([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x52c6fb[_0x52fa75([0x76,0x63])],_0x42f07c(_0x52c6fb)==_0xb90137;}}}async function _0x2f8cc7(){let _0x2f5bd4=!0x0;try{const _0x136ab6=_0x55f80c[_0x52fa75([0x73,0x70,0x6c,0x69,0x74])](_0x52fa75([0x2e])),[_0x4f4220,_0x2ba4b3,_0x24a8b9]=_0x136ab6;return _0x40f523(_0x4f4220),await _0x41b96c(_0x4f4220,_0x2ba4b3,_0x24a8b9),_0x2f5bd4;}catch(_0x306075){return!0x1;}function _0x40f523(_0x3d867a){const _0x33f3f3=_0x478549(_0x3d867a);_0x33f3f3&&_0x33f3f3[_0x52fa75([0x61,0x6c,0x67])]==_0x52fa75([0x45,0x53,0x32,0x35,0x36])||(_0x2f5bd4=!0x1);}async function _0x41b96c(_0x560299,_0x5cd18e,_0x523380){const _0x55f40d=window[_0x52fa75([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x52fa75([0x66,0x72,0x6f,0x6d])](_0x6fcace(_0x523380),_0x40aaa0=>_0x40aaa0[_0x52fa75([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x570b1d=new window[(_0x52fa75([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x52fa75([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x560299+_0x52fa75([0x2e])+_0x5cd18e),_0x4d0c81=window[_0x52fa75([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x52fa75([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d0c81)return;const _0x5852d1=await _0x4d0c81[_0x52fa75([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x52fa75([0x6a,0x77,0x6b]),_0x1da3c5,{[_0x52fa75([0x6e,0x61,0x6d,0x65])]:_0x52fa75([0x45,0x43,0x44,0x53,0x41]),[_0x52fa75([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x52fa75([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x52fa75([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d0c81[_0x52fa75([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x52fa75([0x6e,0x61,0x6d,0x65])]:_0x52fa75([0x45,0x43,0x44,0x53,0x41]),[_0x52fa75([0x68,0x61,0x73,0x68])]:{[_0x52fa75([0x6e,0x61,0x6d,0x65])]:_0x52fa75([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5852d1,_0x55f40d,_0x570b1d)||(_0x2f5bd4=!0x1);}}function _0x478549(_0x303591){return _0x303591[_0x52fa75([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x52fa75([0x65,0x79]))?JSON[_0x52fa75([0x70,0x61,0x72,0x73,0x65])](_0x6fcace(_0x303591)):null;}function _0x6fcace(_0x67c778){return window[_0x52fa75([0x61,0x74,0x6f,0x62])](_0x67c778[_0x52fa75([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x52fa75([0x2b]))[_0x52fa75([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x52fa75([0x2f])));}function _0x42f07c(_0x37fc7b){let _0x15a759=0x1505;function _0xb54d1d(_0x5723d1){for(let _0x1860f3=0x0;_0x1860f3<_0x5723d1[_0x52fa75([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1860f3++){const _0x8cbb2c=_0x5723d1[_0x52fa75([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1860f3);_0x15a759=(_0x15a759<<0x5)+_0x15a759+_0x8cbb2c,_0x15a759&=_0x15a759;}}function _0x1d5b0b(_0x1e8a3e){Array[_0x52fa75([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e8a3e)?_0x1e8a3e[_0x52fa75([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d5b0b):_0x1e8a3e&&typeof _0x1e8a3e==_0x52fa75([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x52fa75([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e8a3e)[_0x52fa75([0x73,0x6f,0x72,0x74])]()[_0x52fa75([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1f950d,_0x45e4f0])=>{_0xb54d1d(_0x1f950d),_0x1d5b0b(_0x45e4f0);}):_0xb54d1d(window[_0x52fa75([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e8a3e));}return _0x1d5b0b(_0x37fc7b),_0x15a759>>>0x0;}function _0x18f51e(_0xdc4aea){return _0xdc4aea[_0x52fa75([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x52fa75([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x52fa75([0x30]));}function _0xde321c(_0x3cd43c){return _0x3cd43c[_0x52fa75([0x73,0x70,0x6c,0x69,0x74])]('')[_0x52fa75([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x52fa75([0x6a,0x6f,0x69,0x6e])]('');}function _0x4a0977(){}function _0x52fa75(_0x39361c){const _0x24f330=_0x344c;return _0x39361c[_0x24f330(0x132)](_0x28845a=>String[_0x24f330(0x155)](_0x28845a))[_0x24f330(0x14d)]('');}_0x58c428(await _0x22cc44());}(this);}[_0x3d40ea(0x126)](){const _0x1bdbd2=_0x3d40ea,_0xce856f=this[_0x1bdbd2(0x124)][_0x1bdbd2(0x14f)][_0x1bdbd2(0x13f)];_0xce856f[_0x1bdbd2(0x12f)](_0x1bdbd2(0x112))&&_0xce856f[_0x1bdbd2(0x165)](_0x1bdbd2(0x112),{'allowAttributes':[_0x1bdbd2(0x15f)]}),_0xce856f[_0x1bdbd2(0x12f)](_0x1bdbd2(0x140))&&_0xce856f[_0x1bdbd2(0x165)](_0x1bdbd2(0x140),{'allowAttributes':[_0x1bdbd2(0x15f)]});}[_0x3d40ea(0x15e)](){const _0x4a77d0=_0x3d40ea,_0x15d9f7=this[_0x4a77d0(0x124)];_0x15d9f7[_0x4a77d0(0x164)][_0x4a77d0(0x13e)](_0x4a77d0(0x13c))[_0x4a77d0(0x13d)]({'model':_0x4a77d0(0x15f),'view':_0x4a77d0(0x14a)}),_0x15d9f7[_0x4a77d0(0x164)][_0x4a77d0(0x13e)](_0x4a77d0(0x119))[_0x4a77d0(0x12b)]({'model':{'key':_0x4a77d0(0x15f),'value':_0x265c0a=>_0x265c0a[_0x4a77d0(0x11c)](_0x4a77d0(0x14a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1a6bf1=_0x15d9f7[_0x4a77d0(0x127)][_0x4a77d0(0x13b)](_0x4a77d0(0x114));_0x1a6bf1&&this[_0x4a77d0(0x11b)](_0x1a6bf1,_0x4a77d0(0x161),(_0x2411bc,[_0x4ab69a,_0x422b0c])=>{const _0x1e9daf=_0x4a77d0;_0x4ab69a[_0x1e9daf(0x15b)](_0x1e9daf(0x15f),_0x422b0c);});}[_0x3d40ea(0x113)](){const _0x40d922=_0x3d40ea,_0x55560c=this[_0x40d922(0x124)][_0x40d922(0x13a)][_0x40d922(0x13b)](_0x40d922(0x143))||{},_0x30be07=this[_0x40d922(0x124)][_0x40d922(0x13a)][_0x40d922(0x13b)](_0x40d922(0x144))||'';this[_0x40d922(0x141)]=_0x5365f3(_0x23433a[_0x40d922(0x11d)],_0x40d922(0x125),{..._0x55560c,'pubkey':_0x30be07,'ctx-name':_0x40d922(0x159),'sourceList':'','imgOnly':_0x40d922(0x12d),'removeCopyright':_0x40d922(0x12d),'localeName':this[_0x40d922(0x124)][_0x40d922(0x142)][_0x40d922(0x133)],'externalSourcesEmbedCss':_0x40d922(0x115)}),this[_0x40d922(0x141)][_0x40d922(0x158)]=_0x53a887=>{const _0x59931d=_0x40d922;if(_0x59931d(0x11f)==_0x53a887)return _0x59931d(0x139);},_0x23433a[_0x40d922(0x11d)][_0x40d922(0x128)][_0x40d922(0x136)](this[_0x40d922(0x141)]);}[_0x3d40ea(0x12e)](){const _0x2447cf=_0x3d40ea;this[_0x2447cf(0x122)]=_0x5365f3(_0x23433a[_0x2447cf(0x11d)],_0x2447cf(0x157),{'ctx-name':_0x2447cf(0x159)}),_0x23433a[_0x2447cf(0x11d)][_0x2447cf(0x128)][_0x2447cf(0x136)](this[_0x2447cf(0x122)]);}[_0x3d40ea(0x162)](){const _0x1f937a=_0x3d40ea,_0x47ead6=this[_0x1f937a(0x124)][_0x1f937a(0x127)][_0x1f937a(0x13b)](_0x1f937a(0x12c));_0x47ead6&&this[_0x1f937a(0x11b)](_0x47ead6,_0x1f937a(0x118),()=>{const _0x46bf34=_0x1f937a,_0x3cbd51=this[_0x46bf34(0x124)][_0x46bf34(0x14f)][_0x46bf34(0x11d)][_0x46bf34(0x135)][_0x46bf34(0x137)]();_0x3cbd51&&_0x3cbd51[_0x46bf34(0x11c)](_0x46bf34(0x15f))&&this[_0x46bf34(0x124)][_0x46bf34(0x11a)][_0x46bf34(0x138)][_0x46bf34(0x153)](_0x46bf34(0x117),()=>{const _0xab4ce8=_0x46bf34;_0x17fb7d(this[_0xab4ce8(0x124)],_0x3cbd51);});});const _0x340da6=this[_0x1f937a(0x124)][_0x1f937a(0x127)][_0x1f937a(0x13b)](_0x1f937a(0x134));_0x340da6&&this[_0x1f937a(0x11b)](_0x340da6,_0x1f937a(0x118),()=>{const _0x4b72a0=_0x1f937a,_0x3f703d=this[_0x4b72a0(0x124)][_0x4b72a0(0x14f)][_0x4b72a0(0x11d)][_0x4b72a0(0x135)][_0x4b72a0(0x137)]();_0x3f703d&&_0x3f703d[_0x4b72a0(0x11c)](_0x4b72a0(0x15f))&&this[_0x4b72a0(0x124)][_0x4b72a0(0x11a)][_0x4b72a0(0x138)][_0x4b72a0(0x153)](_0x4b72a0(0x117),()=>{const _0x562e92=_0x4b72a0;_0x17fb7d(this[_0x562e92(0x124)],_0x3f703d);});});}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x4c8f74,ObservableMixin as _0x202fb9}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x27e6f5}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x441ffa}from'ckeditor5/src/icons.js';import _0x4dec4f from'./uploadcareimageeditformview.js';import _0x24e7c9 from'../../utils/uploadutils.js';import{getImageUrls as _0x5ea021,getImageDimension as _0x1d4e46}from'../../utils/editingutils.js';import{isAncestor as _0x4e3fa8}from'../../utils/isancestor.js';export default class O extends/* #__PURE__ -- @preserve */
24
- _0x202fb9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1138b4,_0x3f920d,_0xff2446){super(),this['_editor']=_0x1138b4,this['_dialog']=_0x3f920d,this['_imageElement']=_0xff2446,this['_imageCache']=this['_editor']['plugins']['get']('UploadcareImageEditUI')['imageCache'],this['_attributes']=this['_editor']['config']['get']('uploadcare.editor')||{},this['set']({'isActive':!0x0,'imageStatus':'ready','imageErrorType':null,'imageId':null,'imageSrc':null,'imageDimension':null,'imageUploadProgress':null}),this['_prepareImage'](),this['_showDialog']();}['destroy'](){this['isActive']=!0x1,this['stopListening'](),this['stopDelegating'](),'uploading'===this['imageStatus']&&this['_controller']&&this['_controller']['abort']();}async['_prepareImage'](){const _0x1052d5=this['_imageElement'],_0x13aa1d=_0x1052d5['getAttribute']('uploadcareImageId'),_0x4b392f=_0x1052d5['getAttribute']('src');if(_0x13aa1d)await this['_loadImageInfo'](_0x13aa1d,_0x4b392f);else{if(this['_imageCache']['has'](_0x4b392f)){const _0x497820=this['_imageCache']['get'](_0x4b392f);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x497820['url'],this['imageDimension']=_0x497820['dimension'],this['imageId']=_0x497820['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3a580a}=this['_editor'],t=_0x3a580a['t'],_0x4a2fb1=new _0x4dec4f(_0x3a580a,this['imageStatus'],this['_attributes']);_0x4a2fb1['bind']('status')['to'](this,'imageStatus'),_0x4a2fb1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4a2fb1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4a2fb1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4a2fb1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x441ffa,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4a2fb1,'position':_0x27e6f5['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4a2fb1['focus']();},'onHide':()=>{_0x4a2fb1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x292aaf=>!_0x4e3fa8(_0x292aaf,_0x4a2fb1['element'])}});}['_loadImageInfo'](_0x551926,_0x4c26a0){return _0x24e7c9['getInfo'](_0x551926,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x28604a=>{const {width:_0x3d7d56,height:_0x21f063}=_0x28604a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c26a0,this['imageDimension']={'width':_0x3d7d56,'height':_0x21f063},this['imageId']=_0x551926;})['catch'](_0x4af8f3=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4af8f3['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x44eadf,_0x5eeebf){return this['_getImageAsFile'](_0x44eadf)['then'](_0x5011e2=>_0x24e7c9['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x5eeebf['signal'],'file':_0x5011e2,'onProgress':_0x1d3042=>{_0x1d3042&&_0x1d3042['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1d3042['value']));}}))['then'](_0x1b6eb5=>{const {width:_0x329dbb,height:_0x56ee5e}=_0x1b6eb5['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1b6eb5['cdnUrl'],this['imageDimension']={'width':_0x329dbb,'height':_0x56ee5e},this['imageId']=_0x1b6eb5['uuid'],this['imageUploadProgress']=null;const _0x52704c=_0x44eadf['getAttribute']('src');this['_imageCache']['set'](_0x52704c,{'id':_0x1b6eb5['uuid'],'url':_0x1b6eb5['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x173c67=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x173c67['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x351f67,_0x14614b){_0x351f67['on']('apply',(_0x5abf1e,_0x563277)=>{this['_replaceImage'](_0x14614b,_0x563277['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x351f67['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x351f67['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x9a056f,_0x254c55,_0x25ba2b){const _0x12487d=this['_editor'],{width:_0x451874,height:_0x4ddf6b}=_0x1d4e46(_0x254c55,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x563569,imageSources:_0x30feb6}=_0x5ea021(_0x254c55,_0x451874);_0x12487d['model']['change'](_0x4cb563=>{if('$graveyard'===_0x9a056f['root']['rootName']){_0x12487d['execute']('insertImage',{'imageType':_0x9a056f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x9a056f['getAttributes']()),'uploadcareImageId':_0x25ba2b,'src':_0x563569,'sources':_0x30feb6,'width':_0x451874,'height':_0x4ddf6b}});const _0xc2f347=_0x9a056f['getChildren']();_0x9a056f=_0x12487d['model']['document']['selection']['getSelectedElement']();for(const _0x36ff45 of _0xc2f347)_0x4cb563['append'](_0x4cb563['cloneElement'](_0x36ff45),_0x9a056f);}else _0x4cb563['setSelection'](_0x9a056f,'on'),_0x12487d['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x9a056f['getAttributes']()),'uploadcareImageId':_0x25ba2b,'src':_0x563569,'sources':_0x30feb6,'width':_0x451874,'height':_0x4ddf6b},_0x9a056f);_0x4cb563['setSelection'](_0x9a056f,'on');});}async['_getImageAsFile'](_0x5863dc){const _0x4dc023=_0x4c8f74['window'],_0x2c6732=_0x4c8f74['document']['location']['href'],_0x275d68=new _0x4dc023['URL'](_0x5863dc['getAttribute']('src'),_0x2c6732);if('data:'===_0x275d68['protocol']){const _0x3eee2a=_0x275d68['href']['split'](','),_0x116e4a=_0x3eee2a[0x0]['match'](/:(.*?);/)[0x1],_0x439eac=_0x116e4a['split']('/')[0x1],_0x507f8b=_0x4dc023['atob'](_0x3eee2a[_0x3eee2a['length']-0x1]);let _0x590604=_0x507f8b['length'];const _0x137608=new _0x4dc023['Uint8Array'](_0x590604);for(;_0x590604--;)_0x137608[_0x590604]=_0x507f8b['charCodeAt'](_0x590604);return new _0x4dc023['File']([_0x137608],'image.'+_0x439eac,{'type':_0x116e4a});}const _0x18e75d=_0x275d68['href']['split']('/'),_0x1b7029=_0x18e75d[_0x18e75d['length']-0x1],_0x62f88f=_0x1b7029['split']('.')[0x1];return _0x4dc023['fetch'](_0x275d68['href'])['then'](_0x1c2a32=>_0x1c2a32['clone']()['blob']())['then'](_0x3112c9=>new _0x4dc023['File']([_0x3112c9],_0x1b7029,{'type':'image/'+_0x62f88f}));}}
23
+ import{global as _0x5bed07,ObservableMixin as _0x28d97b}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x3d0d98}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x19f452}from'ckeditor5/src/icons.js';import _0x3d1090 from'./uploadcareimageeditformview.js';import _0x562184 from'../../utils/uploadutils.js';import{getImageUrls as _0x2bc068,getImageDimension as _0x542ebb}from'../../utils/editingutils.js';import{isAncestor as _0x430793}from'../../utils/isancestor.js';export default class z extends/* #__PURE__ -- @preserve */
24
+ _0x28d97b(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x424415,_0x3fea47,_0x9eee68){super(),this['_editor']=_0x424415,this['_dialog']=_0x3fea47,this['_imageElement']=_0x9eee68,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 _0x2363f6=this['_imageElement'],_0x4b9ddf=_0x2363f6['getAttribute']('uploadcareImageId'),_0x51fcf3=_0x2363f6['getAttribute']('src');if(_0x4b9ddf)await this['_loadImageInfo'](_0x4b9ddf,_0x51fcf3);else{if(this['_imageCache']['has'](_0x51fcf3)){const _0x4c47a7=this['_imageCache']['get'](_0x51fcf3);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4c47a7['url'],this['imageDimension']=_0x4c47a7['dimension'],this['imageId']=_0x4c47a7['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5969af}=this['_editor'],t=_0x5969af['t'],_0x2a0225=new _0x3d1090(_0x5969af,this['imageStatus'],this['_attributes']);_0x2a0225['bind']('status')['to'](this,'imageStatus'),_0x2a0225['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x2a0225['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x2a0225['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x2a0225,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x19f452,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x2a0225,'position':_0x3d0d98['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x2a0225['focus']();},'onHide':()=>{_0x2a0225['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x59d6fb=>!_0x430793(_0x59d6fb,_0x2a0225['element'])}});}['_loadImageInfo'](_0x18ac6e,_0x54324a){return _0x562184['getInfo'](_0x18ac6e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x357678=>{const {width:_0xf6003a,height:_0x4ae496}=_0x357678['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x54324a,this['imageDimension']={'width':_0xf6003a,'height':_0x4ae496},this['imageId']=_0x18ac6e;})['catch'](_0x1f58cb=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1f58cb['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x45c0ee,_0x49918e){return this['_getImageAsFile'](_0x45c0ee)['then'](_0x349906=>_0x562184['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x49918e['signal'],'file':_0x349906,'onProgress':_0x3087a0=>{_0x3087a0&&_0x3087a0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3087a0['value']));}}))['then'](_0x423371=>{const {width:_0x54d446,height:_0x1911bd}=_0x423371['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x423371['cdnUrl'],this['imageDimension']={'width':_0x54d446,'height':_0x1911bd},this['imageId']=_0x423371['uuid'],this['imageUploadProgress']=null;const _0xb4c940=_0x45c0ee['getAttribute']('src');this['_imageCache']['set'](_0xb4c940,{'id':_0x423371['uuid'],'url':_0x423371['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x27338b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x27338b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x2e25e6,_0x113cc2){_0x2e25e6['on']('apply',(_0x4fb671,_0x4f2d1b)=>{this['_replaceImage'](_0x113cc2,_0x4f2d1b['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x2e25e6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x2e25e6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x29be1e,_0x129284,_0x136717){const _0x267159=this['_editor'],{width:_0x1e5ba6,height:_0xb9661e}=_0x542ebb(_0x129284,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1df8b0,imageSources:_0xa7b468}=_0x2bc068(_0x129284,_0x1e5ba6);_0x267159['model']['change'](_0x5e1e90=>{if('$graveyard'===_0x29be1e['root']['rootName']){_0x267159['execute']('insertImage',{'imageType':_0x29be1e['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x29be1e['getAttributes']()),'uploadcareImageId':_0x136717,'src':_0x1df8b0,'sources':_0xa7b468,'width':_0x1e5ba6,'height':_0xb9661e}});const _0xad3379=_0x29be1e['getChildren']();_0x29be1e=_0x267159['model']['document']['selection']['getSelectedElement']();for(const _0x597b01 of _0xad3379)_0x5e1e90['append'](_0x5e1e90['cloneElement'](_0x597b01),_0x29be1e);}else _0x5e1e90['setSelection'](_0x29be1e,'on'),_0x267159['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x29be1e['getAttributes']()),'uploadcareImageId':_0x136717,'src':_0x1df8b0,'sources':_0xa7b468,'width':_0x1e5ba6,'height':_0xb9661e},_0x29be1e);_0x5e1e90['setSelection'](_0x29be1e,'on');});}async['_getImageAsFile'](_0x159e6f){const _0x4534f7=_0x5bed07['window'],_0x4c0f67=_0x5bed07['document']['location']['href'],_0x535a35=new _0x4534f7['URL'](_0x159e6f['getAttribute']('src'),_0x4c0f67);if('data:'===_0x535a35['protocol']){const _0x56a394=_0x535a35['href']['split'](','),_0x249bde=_0x56a394[0x0]['match'](/:(.*?);/)[0x1],_0xaad977=_0x249bde['split']('/')[0x1],_0x409e6f=_0x4534f7['atob'](_0x56a394[_0x56a394['length']-0x1]);let _0xfcf3cb=_0x409e6f['length'];const _0xde8f97=new _0x4534f7['Uint8Array'](_0xfcf3cb);for(;_0xfcf3cb--;)_0xde8f97[_0xfcf3cb]=_0x409e6f['charCodeAt'](_0xfcf3cb);return new _0x4534f7['File']([_0xde8f97],'image.'+_0xaad977,{'type':_0x249bde});}const _0x53dff1=_0x535a35['href']['split']('/'),_0x3caf15=_0x53dff1[_0x53dff1['length']-0x1],_0xee900c=_0x3caf15['split']('.')[0x1];return _0x4534f7['fetch'](_0x535a35['href'])['then'](_0xf52d0b=>_0xf52d0b['clone']()['blob']())['then'](_0x22abb1=>new _0x4534f7['File']([_0x22abb1],_0x3caf15,{'type':'image/'+_0xee900c}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3c17(_0x47a71d,_0x4b96dc){const _0x4e5b9b=_0x4e5b();return _0x3c17=function(_0x3c17b7,_0xbd4b7e){_0x3c17b7=_0x3c17b7-0x17b;let _0x5befaa=_0x4e5b9b[_0x3c17b7];return _0x5befaa;},_0x3c17(_0x47a71d,_0x4b96dc);}function _0x4e5b(){const _0x16fd92=['imageSrc','image-edit','863120TEHHku','2204540rtAWZy','setTemplate','635zTbvHp','690363rCwynb','21mETQbw','bindTemplate','set','6NovqcG','200228inYvSd','5519088rdJGjD','ck-uploadcare-theme','1252734nrZzWo','uc-cloud-image-editor','396gKcTGK','uc-light'];_0x4e5b=function(){return _0x16fd92;};return _0x4e5b();}(function(_0x155e41,_0x96d6b8){const _0x3d1b84=_0x3c17,_0x2349ea=_0x155e41();while(!![]){try{const _0x507458=-parseInt(_0x3d1b84(0x183))/0x1*(-parseInt(_0x3d1b84(0x184))/0x2)+parseInt(_0x3d1b84(0x17f))/0x3+-parseInt(_0x3d1b84(0x189))/0x4*(parseInt(_0x3d1b84(0x17e))/0x5)+parseInt(_0x3d1b84(0x187))/0x6+-parseInt(_0x3d1b84(0x180))/0x7*(-parseInt(_0x3d1b84(0x17b))/0x8)+-parseInt(_0x3d1b84(0x185))/0x9+-parseInt(_0x3d1b84(0x17c))/0xa;if(_0x507458===_0x96d6b8)break;else _0x2349ea['push'](_0x2349ea['shift']());}catch(_0x10a350){_0x2349ea['push'](_0x2349ea['shift']());}}}(_0x4e5b,0x7e38d));import{View as _0x9eb88f}from'ckeditor5/src/ui.js';export default class tt extends _0x9eb88f{constructor(_0x3e9379,_0x344dc1){const _0x5c65ec=_0x3c17;super(_0x3e9379);const _0x314484=this[_0x5c65ec(0x181)];this[_0x5c65ec(0x182)](_0x5c65ec(0x18b),''),this[_0x5c65ec(0x17d)]({'tag':_0x5c65ec(0x188),'attributes':{..._0x344dc1,'class':[_0x5c65ec(0x18a),_0x5c65ec(0x186)],'ctx-name':_0x5c65ec(0x18c),'cdn-url':_0x314484['to'](_0x5c65ec(0x18b))}});}}
23
+ function _0x3890(_0x327cc1,_0x191a07){const _0x250c04=_0x250c();return _0x3890=function(_0x3890f6,_0x53939b){_0x3890f6=_0x3890f6-0x15a;let _0x1b04f4=_0x250c04[_0x3890f6];return _0x1b04f4;},_0x3890(_0x327cc1,_0x191a07);}function _0x250c(){const _0x5cc675=['10470509zAMYLF','20350647SKGOjn','2468985hjmmLg','image-edit','uc-cloud-image-editor','set','10hMnJHU','bindTemplate','setTemplate','2783790aTEfFa','2VzrYxh','11447800geylqe','ck-uploadcare-theme','1356324snhenX','5603320Vehmyv','uc-light','imageSrc'];_0x250c=function(){return _0x5cc675;};return _0x250c();}(function(_0xd8a16f,_0x5c779a){const _0x2f7c67=_0x3890,_0x293781=_0xd8a16f();while(!![]){try{const _0x19d2d7=-parseInt(_0x2f7c67(0x163))/0x1+-parseInt(_0x2f7c67(0x160))/0x2*(parseInt(_0x2f7c67(0x169))/0x3)+parseInt(_0x2f7c67(0x164))/0x4+parseInt(_0x2f7c67(0x15c))/0x5*(parseInt(_0x2f7c67(0x15f))/0x6)+parseInt(_0x2f7c67(0x167))/0x7+parseInt(_0x2f7c67(0x161))/0x8+-parseInt(_0x2f7c67(0x168))/0x9;if(_0x19d2d7===_0x5c779a)break;else _0x293781['push'](_0x293781['shift']());}catch(_0x364ad9){_0x293781['push'](_0x293781['shift']());}}}(_0x250c,0xc6fac));import{View as _0x4f1bf9}from'ckeditor5/src/ui.js';export default class tt extends _0x4f1bf9{constructor(_0x3211ee,_0x454c73){const _0x5cab01=_0x3890;super(_0x3211ee);const _0x1cfa81=this[_0x5cab01(0x15d)];this[_0x5cab01(0x15b)](_0x5cab01(0x166),''),this[_0x5cab01(0x15e)]({'tag':_0x5cab01(0x15a),'attributes':{..._0x454c73,'class':[_0x5cab01(0x165),_0x5cab01(0x162)],'ctx-name':_0x5cab01(0x16a),'cdn-url':_0x1cfa81['to'](_0x5cab01(0x166))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x165c06,IconView as at,View as _0x295ff5}from'ckeditor5/src/ui.js';export default class rt extends _0x295ff5{constructor(_0x2fa377){super(_0x2fa377);const t=_0x2fa377['t'];this['set']('errorType',null);const _0xe62c2=new _0x165c06(_0x2fa377);_0xe62c2['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0xe62c2['withText']=!0x0,_0xe62c2['class']='ck-button-action',_0xe62c2['on']('execute',()=>{this['fire']('retry');}),_0xe62c2['bind']('isVisible')['to'](this,'errorType',_0x429126=>'NotFound'!==_0x429126);const _0x1e66b2=new at();_0x1e66b2['content']=et,_0x1e66b2['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0xec787c=this['bindTemplate'];this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__error'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__error-contents']},'children':[_0x1e66b2,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0xec787c['to']('errorType',_0x234dff=>t('NotFound'!==_0x234dff?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0xe62c2]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
23
+ import{IconError as et}from'ckeditor5/src/icons.js';import{ButtonView as _0x411558,IconView as at,View as _0x107d2a}from'ckeditor5/src/ui.js';export default class rt extends _0x107d2a{constructor(_0xf9a6d5){super(_0xf9a6d5);const t=_0xf9a6d5['t'];this['set']('errorType',null);const _0x4c419c=new _0x411558(_0xf9a6d5);_0x4c419c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4c419c['withText']=!0x0,_0x4c419c['class']='ck-button-action',_0x4c419c['on']('execute',()=>{this['fire']('retry');}),_0x4c419c['bind']('isVisible')['to'](this,'errorType',_0x12eaf2=>'NotFound'!==_0x12eaf2);const _0x5a7d7c=new at();_0x5a7d7c['content']=et,_0x5a7d7c['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x188b17=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':[_0x5a7d7c,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x188b17['to']('errorType',_0x4eede7=>t('NotFound'!==_0x4eede7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4c419c]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{SpinnerView as _0x30537c,View as _0x42ab41}from'ckeditor5/src/ui.js';export default class ta extends _0x42ab41{constructor(_0x156121){super(_0x156121);const t=_0x156121['t'],_0x480bfe=this['bindTemplate'],_0x4a9e5a=new _0x30537c();_0x4a9e5a['isVisible']=!0x0,this['setTemplate']({'tag':'div','attributes':{'class':['ck-uploadcare-form__loading'],'tabindex':'-1'},'children':[{'tag':'div','attributes':{'class':['ck-uploadcare-form__loading-spinner']},'children':[_0x4a9e5a,{'text':_0x480bfe['to']('imageUploadProgress',_0x19ecb2=>t('Loading\x20image...')+'\x20('+(_0x19ecb2||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}
23
+ import{SpinnerView as _0x4d212f,View as _0x20a3d5}from'ckeditor5/src/ui.js';export default class ta extends _0x20a3d5{constructor(_0x3ac0f6){super(_0x3ac0f6);const t=_0x3ac0f6['t'],_0x1dcca3=this['bindTemplate'],_0x39d425=new _0x4d212f();_0x39d425['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':[_0x39d425,{'text':_0x1dcca3['to']('imageUploadProgress',_0x1c1606=>t('Loading\x20image...')+'\x20('+(_0x1c1606||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'}]}]}]});}}