@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250706.0 → 0.0.0-nightly-20250707.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x58583c,Command as _0x1b10a0}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x32bad8,IconGooglePhotos as _0x250c66,IconGoogleDrive as _0x1dac75,IconFacebook as _0x43e14e,IconDropbox as _0x3aec10,IconUploadcareLink as _0x1bc5bc,IconUploadcareImageUpload as _0x2ff7a4,IconError as _0x3baf70,IconUploadcareImageEdit as _0x24bf91}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x483a74,MenuBarMenuListItemButtonView as _0x46362b,View as _0x5820df,FocusCycler as _0x8b054b,Dialog as _0x26566a,DialogViewPosition as _0xa923de,SpinnerView as _0x1f1e03,IconView as _0x37bb23,Notification as _0xc60d5f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x279d3e,DomEmitterMixin as _0x531c9b,global as _0xff7e6a,getAncestors as _0xdfaf31,ObservableMixin as _0x461ce9,uid as _0x5c6de3,createElement as _0xecd3bc}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x54092b}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1fcff1,info as _0x5916f2}from'@uploadcare/upload-client';import*as _0x405b7c from'@uploadcare/file-uploader';var i=function(_0x14256d){return _0x14256d['Local']='local',_0x14256d['URL']='url',_0x14256d['Dropbox']='dropbox',_0x14256d['GDrive']='gdrive',_0x14256d['Facebook']='facebook',_0x14256d['GPhotos']='gphotos',_0x14256d['OneDrive']='onedrive',_0x14256d;}({});function _(_0x4ec7b0,_0x24cfac,_0xb69b94){const t=_0x4ec7b0['t'],_0x4122ea=_0x4ec7b0['t'];switch(_0x24cfac){case i['Local']:return{'text':_0x4122ea('Insert'===_0xb69b94?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4122ea('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xb69b94?_0x4122ea('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4122ea('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xb69b94?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xb69b94?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xb69b94?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xb69b94?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xb69b94?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x24cfac;}}class e extends _0x58583c{['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 _0x272e7c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3b6323;for(const _0x4686ac in _0x272e7c){const _0x4a01ae=_0x4686ac,_0x4bfc52=_0x272e7c[_0x4a01ae];if('uploadcareLicenseKeyValid'==_0x4bfc52||'uploadcareLicenseKeyInvalid'==_0x4bfc52||'uploadcareLicenseKeyExpired'==_0x4bfc52||'uploadcareLicenseKeyDomainLimit'==_0x4bfc52||'uploadcareLicenseKeyNotAllowed'==_0x4bfc52||'uploadcareLicenseKeyEvaluationLimit'==_0x4bfc52||'uploadcareLicenseKeyTrialLimit'==_0x4bfc52||'uploadcareLicenseKeyUsageLimit'==_0x4bfc52){delete _0x272e7c[_0x4a01ae],_0x3b6323=_0x4bfc52,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3b6323&&_0x272e7c['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3b6323&&_0x272e7c['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3b6323&&_0x272e7c['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3b6323&&_0x272e7c['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3b6323&&_0x272e7c['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3b6323&&_0x272e7c['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3b6323&&_0x272e7c['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x50a32e}=this,_0x9ee7ea=_0x50a32e['commands']['get']('uploadcare');if(!_0x9ee7ea)return;const _0x5872ef=this['_normalizeConfigSourceList'](_0x50a32e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2f4563,_0xbd7963)=>{const _0x346d43=this['_getIntegrationKey'](_0xbd7963['type']);return _0x2f4563[_0x346d43]||(_0x2f4563[_0x346d43]=[]),_0x2f4563[_0x346d43]['push'](_0xbd7963),_0x2f4563;},{});_0x50a32e['plugins']['has']('ImageInsertUI')&&_0x50a32e['commands']['get']('uploadcare')&&Object['entries'](_0x5872ef)['forEach'](([_0x294957,_0x55f64c])=>{_0x50a32e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x294957,'observable':()=>_0x9ee7ea,'buttonViewCreator':()=>this['_createToolbarButton'](_0x55f64c),'formViewCreator':()=>this['_createDropdownButtons'](_0x55f64c),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x55f64c),'override':'assetManager'!==_0x294957});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1327bf){const {locale:_0x113bbf}=this['editor'];return _0x1327bf['map'](_0x20a5ab=>{const _0x8501b0=_(_0x113bbf,_0x20a5ab,'Insert');switch(_0x20a5ab){case i['Local']:return{'icon':_0x2ff7a4,'type':i['Local'],..._0x8501b0};case i['URL']:return{'icon':_0x1bc5bc,'type':i['URL'],..._0x8501b0};case i['Dropbox']:return{'icon':_0x3aec10,'type':i['Dropbox'],..._0x8501b0};case i['Facebook']:return{'icon':_0x43e14e,'type':i['Facebook'],..._0x8501b0};case i['GDrive']:return{'icon':_0x1dac75,'type':i['GDrive'],..._0x8501b0};case i['GPhotos']:return{'icon':_0x250c66,'type':i['GPhotos'],..._0x8501b0};case i['OneDrive']:return{'icon':_0x32bad8,'type':i['OneDrive'],..._0x8501b0};}});}['_getIntegrationKey'](_0x2b0381){switch(_0x2b0381){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x44e811,_0x49a469){const _0x4cdcf3=this['editor'],_0x30c479=new _0x44e811(_0x4cdcf3['locale']),_0x14ef4c=_0x4cdcf3['commands']['get']('uploadcare');return _0x30c479['bind']('isEnabled')['to'](_0x14ef4c),_0x30c479['on']('execute',()=>{_0x14ef4c['execute'](_0x49a469);}),_0x30c479;}['_createToolbarButton'](_0x586b44){const {locale:_0x3b1231}=this['editor'],_0x1b2871=this['editor']['plugins']['get']('ImageInsertUI'),_0x17b956=_0x586b44[0x0],_0x8af542=this['_createButton'](_0x483a74,_0x17b956['type']);return _0x8af542['icon']=_0x17b956['icon'],_0x8af542['bind']('label')['to'](_0x1b2871,'isImageSelected',_0x2055bb=>_(_0x3b1231,_0x17b956['type'],_0x2055bb?'Replace':'Insert')['text']),_0x8af542['tooltip']=!0x0,_0x8af542;}['_createDropdownButtons'](_0x13673e){const {locale:_0x8a972e}=this['editor'],_0x161cbb=this['editor']['plugins']['get']('ImageInsertUI');return _0x13673e['map'](_0x362e58=>{const _0x7a1d25=this['_createButton'](_0x483a74,_0x362e58['type']);return _0x7a1d25['withText']=!0x0,_0x7a1d25['icon']=_0x362e58['icon'],_0x7a1d25['bind']('label')['to'](_0x161cbb,'isImageSelected',_0xfd77e8=>_(_0x8a972e,_0x362e58['type'],_0xfd77e8?'Replace':'Insert')['text']),_0x7a1d25;});}['_createMenuBarButtons'](_0x145528){return _0x145528['map'](_0x2d2f4a=>{const _0x180d32=this['_createButton'](_0x46362b,_0x2d2f4a['type']);return _0x180d32['icon']=_0x2d2f4a['icon'],_0x180d32['label']=_0x2d2f4a['shortText'],_0x180d32;});}}class F extends _0x5820df{['focusTracker'];['focusCycler'];constructor(_0x553f7e){super(_0x553f7e),this['focusTracker']=new _0x279d3e(),this['focusCycler']=new _0x8b054b({'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 x extends F{constructor(_0x486c0d,_0x20bbae){super(_0x486c0d),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-'+_0x20bbae}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x4f0853,_0x4f3456){const _0x1ca133=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x29f4e5=>_0x29f4e5<=_0x4f3456)['map'](_0x1e25eb=>_0x4f0853['replace'](/\/$/,'')+'/-/resize/'+_0x1e25eb+'x/\x20'+_0x1e25eb+'w');return{'imageFallbackUrl':_0x4f0853,'imageSources':[{'srcset':_0x1ca133['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4f3456+'px)\x20100vw,\x20'+_0x4f3456+'px','type':'image/webp'}]};}function C(_0x47d2c3,_0x3e370a,_0x543328){const _0x4bc8ca=_0x47d2c3['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4bc8ca?parseInt(_0x4bc8ca[0x1],0xa):_0x3e370a,'height':_0x4bc8ca?parseInt(_0x4bc8ca[0x2],0xa):_0x543328};}function p(_0x3b6665,_0x4988ad){const _0x2542d7=new(_0x531c9b())(),_0x54c302=_0x3b6665['plugins']['get']('ImageUtils'),_0x49adc1=_0x3b6665['editing']['mapper']['toViewElement'](_0x4988ad),_0x1c7f90=_0x54c302['findViewImgElement'](_0x49adc1),_0x494911=_0x3b6665['editing']['view']['domConverter']['viewToDom'](_0x1c7f90),_0x349837=_0x4988ad['getAttribute']('width'),_0x326ac9=_0x4988ad['getAttribute']('height'),_0x5cdbfb='image-processing';_0x3b6665['editing']['view']['change'](_0x38ee94=>{_0x38ee94['addClass'](_0x5cdbfb,_0x49adc1),_0x38ee94['setStyle']('aspect-ratio',_0x349837+'/'+_0x326ac9,_0x1c7f90);}),_0x2542d7['listenTo'](_0x494911,'load',()=>{_0x2542d7['stopListening'](_0x494911,'load'),_0x3b6665['editing']['view']['change'](_0x17e2fc=>{_0x17e2fc['removeClass'](_0x5cdbfb,_0x49adc1),_0x17e2fc['removeStyle']('aspect-ratio',_0x1c7f90);});});}function G(_0x4abe7a){if(Array['isArray'](_0x4abe7a)){const _0x17a2b3=_0x4abe7a['map'](G);return _0x446354=>_0x17a2b3['some'](_0x2102a8=>_0x2102a8(_0x446354));}if('origin'==_0x4abe7a){const _0x4dd949=_0xff7e6a['window']['location']['origin'];return _0x1b2ff6=>new URL(_0x1b2ff6,_0xff7e6a['document']['baseURI'])['origin']==_0x4dd949;}return'function'==typeof _0x4abe7a?_0x4abe7a:_0x4abe7a instanceof RegExp?_0x1daea3=>!(!_0x1daea3['match'](_0x4abe7a)&&!_0x1daea3['replace'](/^https?:\/\//,'')['match'](_0x4abe7a)):()=>!0x1;}function S(_0x28660c,_0x45971c){return _0xdfaf31(_0x28660c['target'])['includes'](_0x45971c);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x461ce9(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x597102,_0x46953e,_0x18f193){super(),this['_editor']=_0x597102,this['_editing']=_0x46953e,this['_dialog']=_0x597102['plugins']['get'](_0x26566a),this['_api']=_0x46953e['ctxElement']['getAPI'](),this['_type']=_0x18f193,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:_0x340349,model:_0x2d7aa1}=this['_editor'],_0x402fd5=_0x2d7aa1['document']['selection']['getSelectedElement'](),_0x29ade3=_0x402fd5&&(_0x402fd5['is']('element','imageBlock')||_0x402fd5['is']('element','imageInline'));this['_formView']=new x(_0x340349,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2ff7a4,'title':_(_0x340349,this['_type'],_0x29ade3?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0xa923de['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3ff98e=>!S(_0x3ff98e,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x479d63}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2c6995=>{const _0x5934e8=_0x479d63['length'];for(const _0x3962af of _0x479d63){const _0x295832=_0x3962af===_0x479d63[_0x5934e8-0x1],{cdnUrl:_0x34d111,fileInfo:_0x23e870}=_0x3962af;if(!_0x34d111||!_0x23e870)continue;const {width:_0x18922b,height:_0x2fa80f}=_0x23e870['imageInfo'],_0x2145e6=C(_0x34d111,_0x18922b,_0x2fa80f),_0x46db36=k(_0x34d111,_0x2145e6['width']),_0x127f14={'id':_0x23e870['uuid'],'type':'image','attributes':{'imageDimension':_0x2145e6,..._0x46db36}};this['_insertAsset'](_0x127f14,_0x295832,_0x2c6995);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x6b2838=>{'idle'===_0x6b2838['detail']['status']&&!_0x6b2838['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x5a1913,_0x3304f7,_0xcb5f7f){const _0xcc6c15=this['_editor']['model']['document']['selection'],_0x164a4a=_0xcc6c15['getSelectedElement'](),_0x2538bc=!(!_0x164a4a||!_0x164a4a['is']('element','imageInline'));_0xcb5f7f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x5a1913,_0x2538bc),_0x3304f7||_0xcb5f7f['setSelection'](_0xcc6c15['getLastPosition']());}['_insertImage'](_0x3eea4c,_0x5d0e11){const _0x35b06a=this['_editor'],{imageDimension:_0x2bfe3c,imageFallbackUrl:_0x53bdcb,imageSources:_0x558599}=_0x3eea4c['attributes'];_0x35b06a['execute']('insertImage',{'imageType':_0x5d0e11?'imageInline':null,'source':{'uploadcareImageId':_0x3eea4c['id'],'src':_0x53bdcb,'sources':_0x558599,..._0x2bfe3c}});}}class w extends _0x1b10a0{['_editing'];['_controller']=null;static get['requires'](){return[_0x26566a,o];}constructor(_0x469d71){super(_0x469d71),this['_editing']=_0x469d71['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3b6e71){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x3b6e71);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x46fc84,publicKey:_0x23482a,signal:_0x47c361,onProgress:_0x2d32a4}){return _0x1fcff1(_0x46fc84,{'publicKey':_0x23482a,'store':'auto','signal':_0x47c361,'onProgress':_0x2d32a4});}static['getInfo'](_0x5e953c,_0x3739a3){return _0x5916f2(_0x5e953c,_0x3739a3);}}class f extends _0x58583c{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x54092b,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1eae98=this['editor'];if(!!!_0x1eae98['config']['get']('uploadcare'))return;_0x1eae98['plugins']['get'](_0x54092b)['createUploadAdapter']=_0xa00da6=>new A(_0xa00da6,_0x1eae98),_0x1eae98['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x57a51e,{imageElement:_0x46ea10,data:_0x63de6a})=>{_0x1eae98['model']['change'](_0x10e0f7=>{_0x10e0f7['setAttribute']('uploadcareImageId',_0x63de6a['uploadcareImageId'],_0x46ea10);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x1a40d8,_0x3c317b){this['loader']=_0x1a40d8,this['editor']=_0x3c317b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x317f9b=this['editor']['config']['get']('uploadcare.pubkey'),_0x54acaf=await this['loader']['file'];return j['upload']({'file':_0x54acaf,'publicKey':_0x317f9b,'signal':this['controller']['signal'],'onProgress':_0x796d05=>{_0x796d05&&_0x796d05['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x796d05['value']);}})['then'](async _0x117899=>{const {imageFallbackUrl:_0x20dd54,imageSources:_0x20f7f7}=k(_0x117899['cdnUrl'],_0x117899['imageInfo']['width']);return{'uploadcareImageId':_0x117899['uuid'],'default':_0x20dd54,'sources':_0x20f7f7};})['catch'](()=>{const _0x1ec146=t('Cannot\x20upload\x20file:')+('\x20'+_0x54acaf['name']+'.');return Promise['reject'](_0x1ec146);});}['abort'](){this['controller']['abort']();}}class o extends _0x58583c{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x26566a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xc1862e){super(_0xc1862e),this['ucContextId']=_0x5c6de3();}['init'](){const _0x4e7041=this['editor'];_0x4e7041['commands']['add']('uploadcare',new w(_0x4e7041));}['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 _0x16e312=_0xff7e6a['document']['querySelector']('input[uploadcare-file-input]');_0x16e312&&_0x16e312['remove']();}),async function(_0x11c751){const _0x2f5f87=_0x1c19f6([0x32,0x6e,0x6b,0x68,0x76,0x65,0x35,0x53,0x79,0x51,0x36,0x5a,0x52,0x69,0x73,0x42,0x57,0x4c,0x61,0x50,0x4a,0x4f,0x49,0x59,0x33,0x6c,0x30,0x67,0x6d,0x54,0x63,0x39,0x47,0x7a,0x70,0x64,0x38,0x72,0x34,0x4b,0x77,0x31,0x46,0x58,0x48,0x43,0x66,0x37,0x6f,0x45,0x4d,0x56,0x78,0x74,0x62,0x44,0x71,0x75,0x4e,0x6a,0x41,0x55]),_0x2e1e87=0x1900003,_0x2715b7=0x1976ccb^_0x2e1e87,_0x5b0dd0=window[_0x1c19f6([0x44,0x61,0x74,0x65])][_0x1c19f6([0x6e,0x6f,0x77])](),_0x143d5e=_0x11c751[_0x1c19f6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x242667=new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x270577=>{_0x143d5e[_0x1c19f6([0x6f,0x6e,0x63,0x65])](_0x1c19f6([0x72,0x65,0x61,0x64,0x79]),_0x270577);}),_0x5ea513={[_0x1c19f6([0x6b,0x74,0x79])]:_0x1c19f6([0x45,0x43]),[_0x1c19f6([0x75,0x73,0x65])]:_0x1c19f6([0x73,0x69,0x67]),[_0x1c19f6([0x63,0x72,0x76])]:_0x1c19f6([0x50,0x2d,0x32,0x35,0x36]),[_0x1c19f6([0x78])]:_0x1c19f6([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]),[_0x1c19f6([0x79])]:_0x1c19f6([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]),[_0x1c19f6([0x61,0x6c,0x67])]:_0x1c19f6([0x45,0x53,0x32,0x35,0x36])},_0x3552b5=_0x143d5e[_0x1c19f6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c19f6([0x67,0x65,0x74])](_0x1c19f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x444f7d(){let _0x227d46,_0x4579f9=null,_0x1c4db3=null;try{if(_0x3552b5==_0x1c19f6([0x47,0x50,0x4c]))return _0x1c19f6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x227d46=_0x426488(),!_0x227d46)return _0x1c19f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x227d46[_0x1c19f6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c4db3=_0x5ce682(_0x227d46[_0x1c19f6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x227d46[_0x1c19f6([0x6a,0x74,0x69])])),await _0x470d9e()?_0x30f363()?_0x47a8e0()?_0x1c19f6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2094e9()?(_0x227d46[_0x1c19f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c19f6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4579f9=_0x1e066f(_0x1c19f6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x227d46[_0x1c19f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c19f6([0x74,0x72,0x69,0x61,0x6c])&&(_0x4579f9=_0x1e066f(_0x1c19f6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ae59b()):_0x1c19f6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c19f6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c19f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1c19f6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47a8e0(){const _0x2bb192=[_0x1c19f6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c19f6([0x74,0x72,0x69,0x61,0x6c])][_0x1c19f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x227d46[_0x1c19f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5b0dd0/0x3e8:0xe10*_0x2715b7;return _0x227d46[_0x1c19f6([0x65,0x78,0x70])]<_0x2bb192;}function _0x30f363(){const _0x20d83e=_0x227d46[_0x1c19f6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x20d83e&&(!!_0x20d83e[_0x1c19f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c19f6([0x2a]))||!!_0x20d83e[_0x1c19f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c19f6([0x55,0x50,0x4c,0x43])));}function _0x2094e9(){const _0x38fa2a=_0x227d46[_0x1c19f6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x38fa2a||0x0==_0x38fa2a[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x98184c}=new URL(window[_0x1c19f6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x38fa2a[_0x1c19f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x98184c))return!0x0;const _0x6d10d4=_0x98184c[_0x1c19f6([0x73,0x70,0x6c,0x69,0x74])](_0x1c19f6([0x2e]));return _0x38fa2a[_0x1c19f6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bb877=>_0x4bb877[_0x1c19f6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c19f6([0x2a])))[_0x1c19f6([0x6d,0x61,0x70])](_0x2361ea=>_0x2361ea[_0x1c19f6([0x73,0x70,0x6c,0x69,0x74])](_0x1c19f6([0x2e])))[_0x1c19f6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3dd575=>_0x3dd575[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x6d10d4[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c19f6([0x6d,0x61,0x70])](_0x1f1442=>Array(_0x6d10d4[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1f1442[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c19f6([0x66,0x69,0x6c,0x6c])](_0x1f1442[0x0]===_0x1c19f6([0x2a])?_0x1c19f6([0x2a]):'')[_0x1c19f6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1f1442))[_0x1c19f6([0x73,0x6f,0x6d,0x65])](_0x320e16=>_0x6d10d4[_0x1c19f6([0x65,0x76,0x65,0x72,0x79])]((_0x328bdc,_0x39a449)=>_0x320e16[_0x39a449]===_0x328bdc||_0x320e16[_0x39a449]===_0x1c19f6([0x2a])));}function _0x5ae59b(){return _0x4579f9&&_0x1c4db3?new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5420ea,_0x51da7b)=>{_0x4579f9[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0x5420ea,_0x51da7b),_0x1c4db3[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0x451a10=>{_0x451a10!=_0x1c19f6([0x56,0x61,0x6c,0x69,0x64])&&_0x5420ea(_0x451a10);},_0x51da7b);}):_0x4579f9||_0x1c4db3||_0x1c19f6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ce682(_0x249a4d,_0x410a79){return new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xead873=>{if(_0x3042b0())return _0xead873(_0x1c19f6([0x56,0x61,0x6c,0x69,0x64]));_0x1b78e8(),_0x143d5e[_0x1c19f6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c19f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2ae552=!0x1;const _0x72bfa9=_0x5c6de3();function _0xe72cf2(_0x588dae){return!!_0x588dae&&(typeof _0x588dae===_0x1c19f6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x588dae===_0x1c19f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x588dae[_0x1c19f6([0x74,0x68,0x65,0x6e])]===_0x1c19f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x588dae[_0x1c19f6([0x63,0x61,0x74,0x63,0x68])]===_0x1c19f6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5baff8(_0x249d97){_0x208651(_0x249d97)[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0x4efc97=>{if(!_0x4efc97||_0x4efc97[_0x1c19f6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c19f6([0x6f,0x6b]))return _0x1c19f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5ad6fb(_0x36e100(_0x72bfa9+_0x410a79))!=_0x4efc97[_0x1c19f6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c19f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c19f6([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0x996d00=>(_0x2786b7(),_0x996d00),()=>{const _0x375434=_0x1ff18e();return null==_0x375434?(_0x2786b7(),_0x1c19f6([0x56,0x61,0x6c,0x69,0x64])):_0x1c19f6(_0x5b0dd0-_0x375434>(0x259c8403^_0x2e1e87)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0xead873)[_0x1c19f6([0x63,0x61,0x74,0x63,0x68])](()=>{_0xead873(_0x1c19f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x866ff5=0x1a6ee83^_0x2e1e87;function _0x2786b7(){const _0x3b8376=_0x1c19f6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ad6fb(_0x36e100(_0x249a4d)),_0x2a3eaf=_0x10e1d8(_0x5ad6fb(window[_0x1c19f6([0x4d,0x61,0x74,0x68])][_0x1c19f6([0x63,0x65,0x69,0x6c])](_0x5b0dd0/_0x866ff5)));window[_0x1c19f6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c19f6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3b8376,_0x2a3eaf);}function _0x1ff18e(){const _0x3408fe=_0x1c19f6([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ad6fb(_0x36e100(_0x249a4d)),_0x202ebc=window[_0x1c19f6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c19f6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3408fe);return _0x202ebc?window[_0x1c19f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10e1d8(_0x202ebc),0x10)*_0x866ff5:null;}function _0x208651(_0x2fbc1d){return new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ee6fd,_0x31a6ab)=>{_0x2fbc1d[_0x1c19f6([0x74,0x68,0x65,0x6e])](_0x2ee6fd,_0x31a6ab),window[_0x1c19f6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x31a6ab,0x191d4c3^_0x2e1e87);});}}_0x143d5e[_0x1c19f6([0x6f,0x6e])](_0x1c19f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2dfb3e,_0x36767e)=>{if(_0x36767e[0x0]!=_0x249a4d)return _0xead873(_0x1c19f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36767e[0x1]={..._0x36767e[0x1],[_0x1c19f6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x72bfa9};},{[_0x1c19f6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c19f6([0x68,0x69,0x67,0x68])}),_0x143d5e[_0x1c19f6([0x6f,0x6e])](_0x1c19f6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28d747=>{_0xe72cf2(_0x28d747[_0x1c19f6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2ae552=!0x0,_0x5baff8(_0x28d747[_0x1c19f6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c19f6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c19f6([0x6c,0x6f,0x77])}),_0x242667[_0x1c19f6([0x74,0x68,0x65,0x6e])](()=>{_0x2ae552||_0xead873(_0x1c19f6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3042b0(){return _0x143d5e[_0x1c19f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c19f6([0x76,0x69,0x65,0x77])][_0x1c19f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c19f6([0x61,0x75,0x74,0x6f]);}function _0x1b78e8(){_0x143d5e[_0x1c19f6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c19f6([0x76,0x69,0x65,0x77])][_0x1c19f6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c19f6([0x61,0x75,0x74,0x6f]);}}function _0x1e066f(_0xf9c347){const _0x5ec31d=[new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x598189=>setTimeout(_0x598189,0x1993ecf^_0x2e1e87)),_0x242667[_0x1c19f6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18f7ff=>{let _0x441e35=0x0;_0x143d5e[_0x1c19f6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c19f6([0x6f,0x6e])](_0x1c19f6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xbe73dc,_0x5d7107)=>{_0x5d7107[0x0][_0x1c19f6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x441e35++,_0x441e35==(0x19001fb^_0x2e1e87)&&(_0x18f7ff(),_0xbe73dc[_0x1c19f6([0x6f,0x66,0x66])]());});}))];return window[_0x1c19f6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c19f6([0x72,0x61,0x63,0x65])](_0x5ec31d)[_0x1c19f6([0x74,0x68,0x65,0x6e])](()=>_0xf9c347);}async function _0x3799c0(){await _0x242667,_0x143d5e[_0x1c19f6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c19f6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42ea27,_0x143d5e[_0x1c19f6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c19f6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42ea27,_0x143d5e[_0x1c19f6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c19f6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x52ac4f(_0x242446){const _0x3719b1=_0x46bd06();_0x143d5e[_0x3719b1]=_0x1c19f6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x242446,_0x242446!=_0x1c19f6([0x56,0x61,0x6c,0x69,0x64])&&_0x3799c0();}function _0x46bd06(){const _0x9576b2=window[_0x1c19f6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c19f6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c19f6([0x6e,0x6f,0x77])]())[_0x1c19f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c19f6([0x2e]),'');let _0x3ce3ec=_0x1c19f6([0x6e]);for(let _0x39972d=0x0;_0x39972d<_0x9576b2[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39972d+=0x2){let _0x21b694=window[_0x1c19f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9576b2[_0x1c19f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39972d,_0x39972d+0x2));_0x21b694>=_0x2f5f87[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x21b694-=_0x2f5f87[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ce3ec+=_0x2f5f87[_0x21b694];}return _0x3ce3ec;}function _0x426488(){const _0x105e29=_0x3552b5[_0x1c19f6([0x73,0x70,0x6c,0x69,0x74])](_0x1c19f6([0x2e]));if(0x3!=_0x105e29[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d49ee(_0x105e29[0x1]);function _0x2d49ee(_0x546943){const _0x563d2a=_0x52c66f(_0x546943);return _0x563d2a&&_0x23de07()?_0x563d2a:null;function _0x23de07(){const _0x3f4390=_0x563d2a[_0x1c19f6([0x6a,0x74,0x69])],_0x3b2521=window[_0x1c19f6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f4390[_0x1c19f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f4390[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x585e22={..._0x563d2a,[_0x1c19f6([0x6a,0x74,0x69])]:_0x3f4390[_0x1c19f6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f4390[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x585e22[_0x1c19f6([0x76,0x63])],_0x36e100(_0x585e22)==_0x3b2521;}}}async function _0x470d9e(){let _0x5ea198=!0x0;try{const _0xb636dd=_0x3552b5[_0x1c19f6([0x73,0x70,0x6c,0x69,0x74])](_0x1c19f6([0x2e])),[_0x2029c6,_0x54d6d8,_0x38b686]=_0xb636dd;return _0x39b89e(_0x2029c6),await _0x482caf(_0x2029c6,_0x54d6d8,_0x38b686),_0x5ea198;}catch{return!0x1;}function _0x39b89e(_0x573edf){const _0x1433af=_0x52c66f(_0x573edf);_0x1433af&&_0x1433af[_0x1c19f6([0x61,0x6c,0x67])]==_0x1c19f6([0x45,0x53,0x32,0x35,0x36])||(_0x5ea198=!0x1);}async function _0x482caf(_0x349824,_0x1103a4,_0x4bda41){const _0x3dbaa3=window[_0x1c19f6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c19f6([0x66,0x72,0x6f,0x6d])](_0xe7b3bd(_0x4bda41),_0x5ebfd5=>_0x5ebfd5[_0x1c19f6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe8388b=new window[(_0x1c19f6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c19f6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x349824+_0x1c19f6([0x2e])+_0x1103a4),_0x4e1db7=window[_0x1c19f6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c19f6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e1db7)return;const _0x559f43=await _0x4e1db7[_0x1c19f6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c19f6([0x6a,0x77,0x6b]),_0x5ea513,{[_0x1c19f6([0x6e,0x61,0x6d,0x65])]:_0x1c19f6([0x45,0x43,0x44,0x53,0x41]),[_0x1c19f6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c19f6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c19f6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e1db7[_0x1c19f6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c19f6([0x6e,0x61,0x6d,0x65])]:_0x1c19f6([0x45,0x43,0x44,0x53,0x41]),[_0x1c19f6([0x68,0x61,0x73,0x68])]:{[_0x1c19f6([0x6e,0x61,0x6d,0x65])]:_0x1c19f6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x559f43,_0x3dbaa3,_0xe8388b)||(_0x5ea198=!0x1);}}function _0x52c66f(_0x5d1691){return _0x5d1691[_0x1c19f6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c19f6([0x65,0x79]))?JSON[_0x1c19f6([0x70,0x61,0x72,0x73,0x65])](_0xe7b3bd(_0x5d1691)):null;}function _0xe7b3bd(_0x5e4492){return window[_0x1c19f6([0x61,0x74,0x6f,0x62])](_0x5e4492[_0x1c19f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c19f6([0x2b]))[_0x1c19f6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c19f6([0x2f])));}function _0x36e100(_0xd1b484){let _0x15f4aa=0x1505;function _0xe926a9(_0x58cd56){for(let _0x2763f0=0x0;_0x2763f0<_0x58cd56[_0x1c19f6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2763f0++){const _0x50ed13=_0x58cd56[_0x1c19f6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2763f0);_0x15f4aa=(_0x15f4aa<<0x5)+_0x15f4aa+_0x50ed13,_0x15f4aa&=_0x15f4aa;}}function _0x17f835(_0x2fb5b3){Array[_0x1c19f6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2fb5b3)?_0x2fb5b3[_0x1c19f6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17f835):_0x2fb5b3&&typeof _0x2fb5b3==_0x1c19f6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c19f6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2fb5b3)[_0x1c19f6([0x73,0x6f,0x72,0x74])]()[_0x1c19f6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3abb04,_0x2dbc22])=>{_0xe926a9(_0x3abb04),_0x17f835(_0x2dbc22);}):_0xe926a9(window[_0x1c19f6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2fb5b3));}return _0x17f835(_0xd1b484),_0x15f4aa>>>0x0;}function _0x5ad6fb(_0x22d19f){return _0x22d19f[_0x1c19f6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c19f6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c19f6([0x30]));}function _0x10e1d8(_0x1739d2){return _0x1739d2[_0x1c19f6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c19f6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c19f6([0x6a,0x6f,0x69,0x6e])]('');}function _0x42ea27(){}function _0x1c19f6(_0x1a3aef){return _0x1a3aef['map'](_0x142827=>String['fromCharCode'](_0x142827))['join']('');}_0x52ac4f(await _0x444f7d());}(this);}['_initSchema'](){const _0x1685a9=this['editor']['model']['schema'];_0x1685a9['isRegistered']('imageBlock')&&_0x1685a9['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1685a9['isRegistered']('imageInline')&&_0x1685a9['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3034af=this['editor'];_0x3034af['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3034af['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2ae715=>_0x2ae715['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5114f3=_0x3034af['commands']['get']('replaceImageSource');_0x5114f3&&this['listenTo'](_0x5114f3,'cleanupImage',(_0x3ebc93,[_0x1495c6,_0x5be9db])=>{_0x1495c6['removeAttribute']('uploadcareImageId',_0x5be9db);});}['_initConfig'](){const _0xa23d98=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1f8dd8=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xecd3bc(_0xff7e6a['document'],'uc-config',{..._0xa23d98,'pubkey':_0x1f8dd8,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0x247757=>{if('closeMax'==_0x247757)return'#uc-icon-arrow-down';},_0xff7e6a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xecd3bc(_0xff7e6a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0xff7e6a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x14b31e=this['editor']['commands']['get']('insertImage');_0x14b31e&&this['listenTo'](_0x14b31e,'execute',()=>{const _0x210d7d=this['editor']['model']['document']['selection']['getSelectedElement']();_0x210d7d&&_0x210d7d['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x210d7d);});});const _0x26150d=this['editor']['commands']['get']('uploadcareImageReplace');_0x26150d&&this['listenTo'](_0x26150d,'execute',()=>{const _0x23dbe4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x23dbe4&&_0x23dbe4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x23dbe4);});});}}class tt extends _0x58583c{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x522ad2){super(_0x522ad2),_0x522ad2['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x405b7c['defineComponents'](_0x405b7c);}}class ii extends _0x5820df{constructor(_0x2cf2d1){super(_0x2cf2d1);const t=_0x2cf2d1['t'],_0x4cf10c=this['bindTemplate'],_0x1f07b8=new _0x1f1e03();_0x1f07b8['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':[_0x1f07b8,{'text':_0x4cf10c['to']('imageUploadProgress',_0x5bd87f=>t('Loading\x20image...')+'\x20('+(_0x5bd87f||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 ti extends _0x5820df{constructor(_0x2d1884){super(_0x2d1884);const t=_0x2d1884['t'];this['set']('errorType',null);const _0x4eb104=new _0x483a74(_0x2d1884);_0x4eb104['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x4eb104['withText']=!0x0,_0x4eb104['class']='ck-button-action',_0x4eb104['on']('execute',()=>{this['fire']('retry');}),_0x4eb104['bind']('isVisible')['to'](this,'errorType',_0x172dc1=>'NotFound'!==_0x172dc1);const _0x1a5e1a=new _0x37bb23();_0x1a5e1a['content']=_0x3baf70,_0x1a5e1a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x18fce6=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':[_0x1a5e1a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x18fce6['to']('errorType',_0x597f96=>t('NotFound'!==_0x597f96?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x4eb104]},{'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 ei extends _0x5820df{constructor(_0x49bb90,_0x5e1de4){super(_0x49bb90);const _0x4c5fb9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x5e1de4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4c5fb9['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x48856c,_0x2c4da9,_0x4da13e){super(_0x48856c),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x48856c),this['_errorView']=new ti(_0x48856c),this['_editingView']=new ei(_0x48856c,_0x4da13e),this['_focusableView']=new _0x5820df(_0x48856c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2c4da9),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'],_0xc8445a=>{this['_addUploadcareImageEditorListeners'](_0xc8445a);});}),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'](_0x456279,_0x5f46fb){const _0x47d0aa='uc-cloud-image-editor',_0x308638=_0x456279['querySelector'](_0x47d0aa);if(_0x308638)return _0x5f46fb(_0x308638);const _0x23ea13=new MutationObserver(_0x45f4a3=>{const _0x50162a=_0x45f4a3['filter'](_0x3d3ed9=>_0x3d3ed9['target']===_0x456279&&_0x3d3ed9['addedNodes']['length']>0x0&&_0x3d3ed9['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x47d0aa);_0x50162a['length']&&(_0x23ea13['disconnect'](),_0x5f46fb(_0x50162a[0x0]['addedNodes'][0x0]));});_0x23ea13['observe'](_0x456279,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x2aa1d9){_0x2aa1d9['addEventListener']('apply',_0x212e6b=>{this['fire']('apply',{'imageSrc':_0x212e6b['detail']['cdnUrl']});}),_0x2aa1d9['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x461ce9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3f279a,_0x8f521,_0x4a3043){super(),this['_editor']=_0x3f279a,this['_dialog']=_0x8f521,this['_imageElement']=_0x4a3043,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 _0x24d53f=this['_imageElement'],_0x1b878e=_0x24d53f['getAttribute']('uploadcareImageId'),_0x418985=_0x24d53f['getAttribute']('src');if(_0x1b878e)await this['_loadImageInfo'](_0x1b878e,_0x418985);else{if(this['_imageCache']['has'](_0x418985)){const _0x4b9ef9=this['_imageCache']['get'](_0x418985);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4b9ef9['url'],this['imageDimension']=_0x4b9ef9['dimension'],this['imageId']=_0x4b9ef9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x33a982}=this['_editor'],t=_0x33a982['t'],_0xe105bf=new X(_0x33a982,this['imageStatus'],this['_attributes']);_0xe105bf['bind']('status')['to'](this,'imageStatus'),_0xe105bf['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0xe105bf['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0xe105bf['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0xe105bf,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x24bf91,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0xe105bf,'position':_0xa923de['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0xe105bf['focus']();},'onHide':()=>{_0xe105bf['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4b451e=>!S(_0x4b451e,_0xe105bf['element'])}});}['_loadImageInfo'](_0x2160c6,_0x2eacb3){return j['getInfo'](_0x2160c6,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x5aa0e9=>{const {width:_0x16bfc8,height:_0x34bd12}=_0x5aa0e9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2eacb3,this['imageDimension']={'width':_0x16bfc8,'height':_0x34bd12},this['imageId']=_0x2160c6;})['catch'](_0xda3956=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xda3956['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x468ecd,_0x48b63c){return this['_getImageAsFile'](_0x468ecd)['then'](_0x177c49=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x48b63c['signal'],'file':_0x177c49,'onProgress':_0xc59f4a=>{_0xc59f4a&&_0xc59f4a['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xc59f4a['value']));}}))['then'](_0x4e907f=>{const {width:_0x2fb1b1,height:_0x1426c1}=_0x4e907f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4e907f['cdnUrl'],this['imageDimension']={'width':_0x2fb1b1,'height':_0x1426c1},this['imageId']=_0x4e907f['uuid'],this['imageUploadProgress']=null;const _0x4cec81=_0x468ecd['getAttribute']('src');this['_imageCache']['set'](_0x4cec81,{'id':_0x4e907f['uuid'],'url':_0x4e907f['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2ad84e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2ad84e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0xc7c658,_0x54048f){_0xc7c658['on']('apply',(_0xf78f36,_0x61136e)=>{this['_replaceImage'](_0x54048f,_0x61136e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0xc7c658['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0xc7c658['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1d4048,_0x13c367,_0x427eeb){const _0x9999d0=this['_editor'],{width:_0x3d7b78,height:_0x33e560}=C(_0x13c367,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xf7d5e2,imageSources:_0x4d91e3}=k(_0x13c367,_0x3d7b78);_0x9999d0['model']['change'](_0x47bb88=>{if('$graveyard'===_0x1d4048['root']['rootName']){_0x9999d0['execute']('insertImage',{'imageType':_0x1d4048['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1d4048['getAttributes']()),'uploadcareImageId':_0x427eeb,'src':_0xf7d5e2,'sources':_0x4d91e3,'width':_0x3d7b78,'height':_0x33e560}});const _0x179e3b=_0x1d4048['getChildren']();_0x1d4048=_0x9999d0['model']['document']['selection']['getSelectedElement']();for(const _0x5f1b89 of _0x179e3b)_0x47bb88['append'](_0x47bb88['cloneElement'](_0x5f1b89),_0x1d4048);}else _0x47bb88['setSelection'](_0x1d4048,'on'),_0x9999d0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1d4048['getAttributes']()),'uploadcareImageId':_0x427eeb,'src':_0xf7d5e2,'sources':_0x4d91e3,'width':_0x3d7b78,'height':_0x33e560},_0x1d4048);_0x47bb88['setSelection'](_0x1d4048,'on');});}async['_getImageAsFile'](_0x4af092){const _0x4afc38=_0xff7e6a['window'],_0x5e6f48=_0xff7e6a['document']['location']['href'],_0x58e223=new _0x4afc38['URL'](_0x4af092['getAttribute']('src'),_0x5e6f48);if('data:'===_0x58e223['protocol']){const _0x3e524f=_0x58e223['href']['split'](','),_0x3ab386=_0x3e524f[0x0]['match'](/:(.*?);/)[0x1],_0x47933a=_0x3ab386['split']('/')[0x1],_0x294c82=_0x4afc38['atob'](_0x3e524f[_0x3e524f['length']-0x1]);let _0x6e7072=_0x294c82['length'];const _0x507d47=new _0x4afc38['Uint8Array'](_0x6e7072);for(;_0x6e7072--;)_0x507d47[_0x6e7072]=_0x294c82['charCodeAt'](_0x6e7072);return new _0x4afc38['File']([_0x507d47],'image.'+_0x47933a,{'type':_0x3ab386});}const _0x2299bc=_0x58e223['href']['split']('/'),_0x4894be=_0x2299bc[_0x2299bc['length']-0x1],_0x320a29=_0x4894be['split']('.')[0x1];return _0x4afc38['fetch'](_0x58e223['href'])['then'](_0x651ec3=>_0x651ec3['clone']()['blob']())['then'](_0x27257c=>new _0x4afc38['File']([_0x27257c],_0x4894be,{'type':'image/'+_0x320a29}));}}class O extends _0x1b10a0{['imageEditController'];static get['requires'](){return[_0x26566a];}['_isEditable'];constructor(_0x21a5bc){super(_0x21a5bc),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x413b91){const _0x210e27=G(_0x413b91);return _0x5231b3=>!(!_0x5231b3||!_0x5231b3['is']('element','imageBlock')&&!_0x5231b3['is']('element','imageInline'))&&(!!_0x5231b3['hasAttribute']('uploadcareImageId')||!!_0x5231b3['hasAttribute']('src')&&_0x210e27(_0x5231b3['getAttribute']('src')));}(_0x21a5bc['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x1fb2b0=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x1fb2b0);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x23bde0=this['editor']['model']['document']['selection']['getSelectedElement']();_0x23bde0&&(_0x23bde0['is']('element','imageBlock')||_0x23bde0['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x26566a),_0x23bde0),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x1b10a0{['refresh'](){const _0x3e37e9=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x3e37e9&&(_0x3e37e9['is']('element','imageBlock')||_0x3e37e9['is']('element','imageInline')));}['execute'](_0x46c215){const _0x2bd197=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x148703=>{_0x148703['setAttributes'](_0x46c215,_0x2bd197),_0x148703['removeAttribute']('srcset',_0x2bd197),_0x148703['removeAttribute']('sizes',_0x2bd197);});}}class m extends _0x58583c{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0xc60d5f,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3fcf11}=this;_0x3fcf11['commands']['add']('uploadcareImageEdit',new O(_0x3fcf11)),_0x3fcf11['commands']['add']('uploadcareImageReplace',new R(_0x3fcf11));}}class g extends _0x58583c{['_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 _0x1fbe56=this['editor'];_0x1fbe56['ui']['componentFactory']['add']('uploadcareImageEdit',_0x8b1091=>{const _0x545feb=_0x1fbe56['commands']['get']('uploadcareImageEdit'),_0x5b8198=new _0x483a74(_0x8b1091),t=_0x8b1091['t'];return _0x5b8198['set']({'icon':_0x24bf91,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5b8198['bind']('isEnabled')['to'](_0x545feb),_0x5b8198['bind']('isOn')['to'](_0x545feb,'isActive'),this['listenTo'](_0x5b8198,'execute',()=>{_0x1fbe56['execute']('uploadcareImageEdit'),_0x1fbe56['editing']['view']['focus']();}),_0x5b8198;}),this['_initConfig']();}['_initConfig'](){const _0x332574=_0xecd3bc(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x332574),this['listenTo'](this['editor'],'destroy',()=>{_0x332574['remove']();});}}class et extends _0x58583c{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
|
23
|
+
import{Plugin as _0x13dee5,Command as _0x2238a1}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xf9d2e3,IconGooglePhotos as _0x4c33a5,IconGoogleDrive as _0x2c9c0b,IconFacebook as _0x38ef7c,IconDropbox as _0xeb9bdd,IconUploadcareLink as _0x19864a,IconUploadcareImageUpload as _0x4c2a3d,IconError as _0x27f870,IconUploadcareImageEdit as _0x1a6202}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4040c0,MenuBarMenuListItemButtonView as _0x34ecce,View as _0x1d1954,FocusCycler as _0x37b011,Dialog as _0x32df1c,DialogViewPosition as _0x44068c,SpinnerView as _0x421329,IconView as _0x37a4fe,Notification as _0x50102b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5e3156,DomEmitterMixin as _0x3d36c3,global as _0x3ac262,getAncestors as _0x24939d,ObservableMixin as _0x2d734c,uid as _0x1c4800,createElement as _0x564f8a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x3ad206}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x578aab,info as _0x12117b}from'@uploadcare/upload-client';import*as _0x3ad904 from'@uploadcare/file-uploader';var i=function(_0xa1d57){return _0xa1d57['Local']='local',_0xa1d57['URL']='url',_0xa1d57['Dropbox']='dropbox',_0xa1d57['GDrive']='gdrive',_0xa1d57['Facebook']='facebook',_0xa1d57['GPhotos']='gphotos',_0xa1d57['OneDrive']='onedrive',_0xa1d57;}({});function _(_0x6a6970,_0x3b3f8d,_0x3c84e1){const t=_0x6a6970['t'],_0x5ee87c=_0x6a6970['t'];switch(_0x3b3f8d){case i['Local']:return{'text':_0x5ee87c('Insert'===_0x3c84e1?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5ee87c('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3c84e1?_0x5ee87c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5ee87c('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3c84e1?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3c84e1?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3c84e1?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3c84e1?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3c84e1?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3b3f8d;}}class e extends _0x13dee5{['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 _0x4d1e65=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5314a9;for(const _0x706f67 in _0x4d1e65){const _0x5f2dbd=_0x706f67,_0x33af65=_0x4d1e65[_0x5f2dbd];if('uploadcareLicenseKeyValid'==_0x33af65||'uploadcareLicenseKeyInvalid'==_0x33af65||'uploadcareLicenseKeyExpired'==_0x33af65||'uploadcareLicenseKeyDomainLimit'==_0x33af65||'uploadcareLicenseKeyNotAllowed'==_0x33af65||'uploadcareLicenseKeyEvaluationLimit'==_0x33af65||'uploadcareLicenseKeyTrialLimit'==_0x33af65||'uploadcareLicenseKeyUsageLimit'==_0x33af65){delete _0x4d1e65[_0x5f2dbd],_0x5314a9=_0x33af65,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x5314a9&&_0x4d1e65['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x5314a9&&_0x4d1e65['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x5314a9&&_0x4d1e65['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x5314a9&&_0x4d1e65['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x5314a9&&_0x4d1e65['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x5314a9&&_0x4d1e65['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x5314a9&&_0x4d1e65['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xdd433b}=this,_0x26494b=_0xdd433b['commands']['get']('uploadcare');if(!_0x26494b)return;const _0x16b9e2=this['_normalizeConfigSourceList'](_0xdd433b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0xb811b3,_0x30ed8a)=>{const _0x124edc=this['_getIntegrationKey'](_0x30ed8a['type']);return _0xb811b3[_0x124edc]||(_0xb811b3[_0x124edc]=[]),_0xb811b3[_0x124edc]['push'](_0x30ed8a),_0xb811b3;},{});_0xdd433b['plugins']['has']('ImageInsertUI')&&_0xdd433b['commands']['get']('uploadcare')&&Object['entries'](_0x16b9e2)['forEach'](([_0x976819,_0x4b4795])=>{_0xdd433b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x976819,'observable':()=>_0x26494b,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4b4795),'formViewCreator':()=>this['_createDropdownButtons'](_0x4b4795),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4b4795),'override':'assetManager'!==_0x976819});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x4a4144){const {locale:_0x11ff01}=this['editor'];return _0x4a4144['map'](_0xce2f9e=>{const _0x26a929=_(_0x11ff01,_0xce2f9e,'Insert');switch(_0xce2f9e){case i['Local']:return{'icon':_0x4c2a3d,'type':i['Local'],..._0x26a929};case i['URL']:return{'icon':_0x19864a,'type':i['URL'],..._0x26a929};case i['Dropbox']:return{'icon':_0xeb9bdd,'type':i['Dropbox'],..._0x26a929};case i['Facebook']:return{'icon':_0x38ef7c,'type':i['Facebook'],..._0x26a929};case i['GDrive']:return{'icon':_0x2c9c0b,'type':i['GDrive'],..._0x26a929};case i['GPhotos']:return{'icon':_0x4c33a5,'type':i['GPhotos'],..._0x26a929};case i['OneDrive']:return{'icon':_0xf9d2e3,'type':i['OneDrive'],..._0x26a929};}});}['_getIntegrationKey'](_0x44dbb3){switch(_0x44dbb3){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x965d40,_0x374ec8){const _0x375228=this['editor'],_0x1fcd6e=new _0x965d40(_0x375228['locale']),_0xe04921=_0x375228['commands']['get']('uploadcare');return _0x1fcd6e['bind']('isEnabled')['to'](_0xe04921),_0x1fcd6e['on']('execute',()=>{_0xe04921['execute'](_0x374ec8);}),_0x1fcd6e;}['_createToolbarButton'](_0x2b2e22){const {locale:_0x2fcc4f}=this['editor'],_0x5d5b4b=this['editor']['plugins']['get']('ImageInsertUI'),_0x1dc5e4=_0x2b2e22[0x0],_0xd857a4=this['_createButton'](_0x4040c0,_0x1dc5e4['type']);return _0xd857a4['icon']=_0x1dc5e4['icon'],_0xd857a4['bind']('label')['to'](_0x5d5b4b,'isImageSelected',_0x5df605=>_(_0x2fcc4f,_0x1dc5e4['type'],_0x5df605?'Replace':'Insert')['text']),_0xd857a4['tooltip']=!0x0,_0xd857a4;}['_createDropdownButtons'](_0x2c184a){const {locale:_0x56e1fd}=this['editor'],_0x51d8fd=this['editor']['plugins']['get']('ImageInsertUI');return _0x2c184a['map'](_0x2922eb=>{const _0x115d6c=this['_createButton'](_0x4040c0,_0x2922eb['type']);return _0x115d6c['withText']=!0x0,_0x115d6c['icon']=_0x2922eb['icon'],_0x115d6c['bind']('label')['to'](_0x51d8fd,'isImageSelected',_0x2ddcbd=>_(_0x56e1fd,_0x2922eb['type'],_0x2ddcbd?'Replace':'Insert')['text']),_0x115d6c;});}['_createMenuBarButtons'](_0x44426a){return _0x44426a['map'](_0x4273bb=>{const _0xb0bb16=this['_createButton'](_0x34ecce,_0x4273bb['type']);return _0xb0bb16['icon']=_0x4273bb['icon'],_0xb0bb16['label']=_0x4273bb['shortText'],_0xb0bb16;});}}class F extends _0x1d1954{['focusTracker'];['focusCycler'];constructor(_0x1ff471){super(_0x1ff471),this['focusTracker']=new _0x5e3156(),this['focusCycler']=new _0x37b011({'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 x extends F{constructor(_0x16aa00,_0x29eb19){super(_0x16aa00),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-'+_0x29eb19}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x2212c7,_0x348be0){const _0x4ece11=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4dd4ae=>_0x4dd4ae<=_0x348be0)['map'](_0x3f59d2=>_0x2212c7['replace'](/\/$/,'')+'/-/resize/'+_0x3f59d2+'x/\x20'+_0x3f59d2+'w');return{'imageFallbackUrl':_0x2212c7,'imageSources':[{'srcset':_0x4ece11['join'](',\x20'),'sizes':'(max-width:\x20'+_0x348be0+'px)\x20100vw,\x20'+_0x348be0+'px','type':'image/webp'}]};}function C(_0x43ac45,_0x3d13bd,_0x5967a9){const _0x4f7299=_0x43ac45['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4f7299?parseInt(_0x4f7299[0x1],0xa):_0x3d13bd,'height':_0x4f7299?parseInt(_0x4f7299[0x2],0xa):_0x5967a9};}function p(_0x56763f,_0x1ea1ab){const _0x2586a5=new(_0x3d36c3())(),_0x299a4c=_0x56763f['plugins']['get']('ImageUtils'),_0x36d2d3=_0x56763f['editing']['mapper']['toViewElement'](_0x1ea1ab),_0x37a49c=_0x299a4c['findViewImgElement'](_0x36d2d3),_0x40bba2=_0x56763f['editing']['view']['domConverter']['viewToDom'](_0x37a49c),_0x12e778=_0x1ea1ab['getAttribute']('width'),_0x110067=_0x1ea1ab['getAttribute']('height'),_0xf471ac='image-processing';_0x56763f['editing']['view']['change'](_0x63d242=>{_0x63d242['addClass'](_0xf471ac,_0x36d2d3),_0x63d242['setStyle']('aspect-ratio',_0x12e778+'/'+_0x110067,_0x37a49c);}),_0x2586a5['listenTo'](_0x40bba2,'load',()=>{_0x2586a5['stopListening'](_0x40bba2,'load'),_0x56763f['editing']['view']['change'](_0x22d220=>{_0x22d220['removeClass'](_0xf471ac,_0x36d2d3),_0x22d220['removeStyle']('aspect-ratio',_0x37a49c);});});}function G(_0x4b8659){if(Array['isArray'](_0x4b8659)){const _0x12e352=_0x4b8659['map'](G);return _0x4bba0a=>_0x12e352['some'](_0x32496a=>_0x32496a(_0x4bba0a));}if('origin'==_0x4b8659){const _0x117c6f=_0x3ac262['window']['location']['origin'];return _0x413c64=>new URL(_0x413c64,_0x3ac262['document']['baseURI'])['origin']==_0x117c6f;}return'function'==typeof _0x4b8659?_0x4b8659:_0x4b8659 instanceof RegExp?_0x49fb8d=>!(!_0x49fb8d['match'](_0x4b8659)&&!_0x49fb8d['replace'](/^https?:\/\//,'')['match'](_0x4b8659)):()=>!0x1;}function S(_0x9f79e5,_0x26b0a9){return _0x24939d(_0x9f79e5['target'])['includes'](_0x26b0a9);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2d734c(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3ad649,_0x47598c,_0x2d8912){super(),this['_editor']=_0x3ad649,this['_editing']=_0x47598c,this['_dialog']=_0x3ad649['plugins']['get'](_0x32df1c),this['_api']=_0x47598c['ctxElement']['getAPI'](),this['_type']=_0x2d8912,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:_0x227ba2,model:_0x356d61}=this['_editor'],_0x37ed57=_0x356d61['document']['selection']['getSelectedElement'](),_0x377ccd=_0x37ed57&&(_0x37ed57['is']('element','imageBlock')||_0x37ed57['is']('element','imageInline'));this['_formView']=new x(_0x227ba2,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x4c2a3d,'title':_(_0x227ba2,this['_type'],_0x377ccd?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x44068c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x180c6a=>!S(_0x180c6a,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x2dbc74}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x24e664=>{const _0x11d527=_0x2dbc74['length'];for(const _0x50adc1 of _0x2dbc74){const _0x54039f=_0x50adc1===_0x2dbc74[_0x11d527-0x1],{cdnUrl:_0x5b20ae,fileInfo:_0x4de667}=_0x50adc1;if(!_0x5b20ae||!_0x4de667)continue;const {width:_0x5280a5,height:_0x4c4d80}=_0x4de667['imageInfo'],_0x3c9069=C(_0x5b20ae,_0x5280a5,_0x4c4d80),_0x54d128=k(_0x5b20ae,_0x3c9069['width']),_0x59fab0={'id':_0x4de667['uuid'],'type':'image','attributes':{'imageDimension':_0x3c9069,..._0x54d128}};this['_insertAsset'](_0x59fab0,_0x54039f,_0x24e664);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5f1495=>{'idle'===_0x5f1495['detail']['status']&&!_0x5f1495['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x557018,_0x287397,_0x1b4494){const _0x59fee6=this['_editor']['model']['document']['selection'],_0x2c0f4a=_0x59fee6['getSelectedElement'](),_0x5a7c16=!(!_0x2c0f4a||!_0x2c0f4a['is']('element','imageInline'));_0x1b4494['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x557018,_0x5a7c16),_0x287397||_0x1b4494['setSelection'](_0x59fee6['getLastPosition']());}['_insertImage'](_0x4065e6,_0x1b725e){const _0x3e0c05=this['_editor'],{imageDimension:_0x84efdc,imageFallbackUrl:_0x23efc4,imageSources:_0x847577}=_0x4065e6['attributes'];_0x3e0c05['execute']('insertImage',{'imageType':_0x1b725e?'imageInline':null,'source':{'uploadcareImageId':_0x4065e6['id'],'src':_0x23efc4,'sources':_0x847577,..._0x84efdc}});}}class w extends _0x2238a1{['_editing'];['_controller']=null;static get['requires'](){return[_0x32df1c,o];}constructor(_0x584c64){super(_0x584c64),this['_editing']=_0x584c64['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x4a4ceb){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x4a4ceb);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x11778a,publicKey:_0x59cb2f,signal:_0x40d88e,onProgress:_0x540f56}){return _0x578aab(_0x11778a,{'publicKey':_0x59cb2f,'store':'auto','signal':_0x40d88e,'onProgress':_0x540f56});}static['getInfo'](_0x3b6a26,_0x48e96f){return _0x12117b(_0x3b6a26,_0x48e96f);}}class f extends _0x13dee5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x3ad206,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x7bd917=this['editor'];if(!!!_0x7bd917['config']['get']('uploadcare'))return;_0x7bd917['plugins']['get'](_0x3ad206)['createUploadAdapter']=_0x4fc795=>new A(_0x4fc795,_0x7bd917),_0x7bd917['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x1c089b,{imageElement:_0x5b91bb,data:_0x88e922})=>{_0x7bd917['model']['change'](_0x575988=>{_0x575988['setAttribute']('uploadcareImageId',_0x88e922['uploadcareImageId'],_0x5b91bb);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x5308fa,_0x4abb6f){this['loader']=_0x5308fa,this['editor']=_0x4abb6f,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1c878c=this['editor']['config']['get']('uploadcare.pubkey'),_0x1659e7=await this['loader']['file'];return j['upload']({'file':_0x1659e7,'publicKey':_0x1c878c,'signal':this['controller']['signal'],'onProgress':_0xadc9d7=>{_0xadc9d7&&_0xadc9d7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xadc9d7['value']);}})['then'](async _0x3e8224=>{const {imageFallbackUrl:_0x172f39,imageSources:_0x23390a}=k(_0x3e8224['cdnUrl'],_0x3e8224['imageInfo']['width']);return{'uploadcareImageId':_0x3e8224['uuid'],'default':_0x172f39,'sources':_0x23390a};})['catch'](()=>{const _0x3cb56b=t('Cannot\x20upload\x20file:')+('\x20'+_0x1659e7['name']+'.');return Promise['reject'](_0x3cb56b);});}['abort'](){this['controller']['abort']();}}class o extends _0x13dee5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x32df1c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x50376e){super(_0x50376e),this['ucContextId']=_0x1c4800();}['init'](){const _0x2a2635=this['editor'];_0x2a2635['commands']['add']('uploadcare',new w(_0x2a2635));}['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 _0xce385e=_0x3ac262['document']['querySelector']('input[uploadcare-file-input]');_0xce385e&&_0xce385e['remove']();}),async function(_0x34c1ea){const _0x1e765=_0xf66755([0x39,0x30,0x45,0x68,0x76,0x47,0x53,0x6d,0x4f,0x56,0x6b,0x65,0x57,0x73,0x33,0x50,0x34,0x69,0x43,0x46,0x62,0x4a,0x79,0x67,0x64,0x7a,0x35,0x44,0x71,0x59,0x58,0x70,0x42,0x36,0x77,0x6c,0x51,0x37,0x4e,0x66,0x54,0x72,0x55,0x6f,0x4b,0x6e,0x31,0x41,0x4d,0x48,0x6a,0x74,0x78,0x52,0x61,0x63,0x32,0x38,0x5a,0x75,0x4c,0x49]),_0x2ea1d5=0x271d5d9,_0x5602b6=0x276b939^_0x2ea1d5,_0x7fa89=window[_0xf66755([0x44,0x61,0x74,0x65])][_0xf66755([0x6e,0x6f,0x77])](),_0x521ecb=_0x34c1ea[_0xf66755([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1bcb2c=new window[(_0xf66755([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x62364f=>{_0x521ecb[_0xf66755([0x6f,0x6e,0x63,0x65])](_0xf66755([0x72,0x65,0x61,0x64,0x79]),_0x62364f);}),_0x28ea09={[_0xf66755([0x6b,0x74,0x79])]:_0xf66755([0x45,0x43]),[_0xf66755([0x75,0x73,0x65])]:_0xf66755([0x73,0x69,0x67]),[_0xf66755([0x63,0x72,0x76])]:_0xf66755([0x50,0x2d,0x32,0x35,0x36]),[_0xf66755([0x78])]:_0xf66755([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]),[_0xf66755([0x79])]:_0xf66755([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]),[_0xf66755([0x61,0x6c,0x67])]:_0xf66755([0x45,0x53,0x32,0x35,0x36])},_0x3b3ff0=_0x521ecb[_0xf66755([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xf66755([0x67,0x65,0x74])](_0xf66755([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x537588(){let _0x423dd3,_0x34caea=null,_0x1ffb18=null;try{if(_0x3b3ff0==_0xf66755([0x47,0x50,0x4c]))return _0xf66755([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x423dd3=_0x1637fa(),!_0x423dd3)return _0xf66755([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x423dd3[_0xf66755([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1ffb18=_0xa10206(_0x423dd3[_0xf66755([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x423dd3[_0xf66755([0x6a,0x74,0x69])])),await _0x47f7e2()?_0x5ca747()?_0x499976()?_0xf66755([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x309000()?(_0x423dd3[_0xf66755([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf66755([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34caea=_0x428cb7(_0xf66755([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x423dd3[_0xf66755([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xf66755([0x74,0x72,0x69,0x61,0x6c])&&(_0x34caea=_0x428cb7(_0xf66755([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4229f0()):_0xf66755([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xf66755([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xf66755([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xf66755([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x499976(){const _0xc66b77=[_0xf66755([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xf66755([0x74,0x72,0x69,0x61,0x6c])][_0xf66755([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x423dd3[_0xf66755([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7fa89/0x3e8:0xe10*_0x5602b6;return _0x423dd3[_0xf66755([0x65,0x78,0x70])]<_0xc66b77;}function _0x5ca747(){const _0x1ed6a3=_0x423dd3[_0xf66755([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1ed6a3&&(!!_0x1ed6a3[_0xf66755([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf66755([0x2a]))||!!_0x1ed6a3[_0xf66755([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf66755([0x55,0x50,0x4c,0x43])));}function _0x309000(){const _0x14fc0e=_0x423dd3[_0xf66755([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x14fc0e||0x0==_0x14fc0e[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5c57ae}=new URL(window[_0xf66755([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x14fc0e[_0xf66755([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c57ae))return!0x0;const _0x1c0064=_0x5c57ae[_0xf66755([0x73,0x70,0x6c,0x69,0x74])](_0xf66755([0x2e]));return _0x14fc0e[_0xf66755([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21cdc9=>_0x21cdc9[_0xf66755([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf66755([0x2a])))[_0xf66755([0x6d,0x61,0x70])](_0x140896=>_0x140896[_0xf66755([0x73,0x70,0x6c,0x69,0x74])](_0xf66755([0x2e])))[_0xf66755([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4a3309=>_0x4a3309[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1c0064[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf66755([0x6d,0x61,0x70])](_0x2363d2=>Array(_0x1c0064[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2363d2[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xf66755([0x66,0x69,0x6c,0x6c])](_0x2363d2[0x0]===_0xf66755([0x2a])?_0xf66755([0x2a]):'')[_0xf66755([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2363d2))[_0xf66755([0x73,0x6f,0x6d,0x65])](_0x1340ad=>_0x1c0064[_0xf66755([0x65,0x76,0x65,0x72,0x79])]((_0x4ef18b,_0x1ab0cd)=>_0x1340ad[_0x1ab0cd]===_0x4ef18b||_0x1340ad[_0x1ab0cd]===_0xf66755([0x2a])));}function _0x4229f0(){return _0x34caea&&_0x1ffb18?new window[(_0xf66755([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d0b7e,_0x17e564)=>{_0x34caea[_0xf66755([0x74,0x68,0x65,0x6e])](_0x3d0b7e,_0x17e564),_0x1ffb18[_0xf66755([0x74,0x68,0x65,0x6e])](_0x377030=>{_0x377030!=_0xf66755([0x56,0x61,0x6c,0x69,0x64])&&_0x3d0b7e(_0x377030);},_0x17e564);}):_0x34caea||_0x1ffb18||_0xf66755([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa10206(_0x54d73d,_0x5314b7){return new window[(_0xf66755([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x493f2a=>{if(_0x386bdf())return _0x493f2a(_0xf66755([0x56,0x61,0x6c,0x69,0x64]));_0x1d317e(),_0x521ecb[_0xf66755([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xf66755([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a78ca=!0x1;const _0x1e79cc=_0x1c4800();function _0x2ca1ee(_0xb36215){return!!_0xb36215&&(typeof _0xb36215===_0xf66755([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb36215===_0xf66755([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb36215[_0xf66755([0x74,0x68,0x65,0x6e])]===_0xf66755([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb36215[_0xf66755([0x63,0x61,0x74,0x63,0x68])]===_0xf66755([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x9a6de1(_0x23a66f){_0x40479e(_0x23a66f)[_0xf66755([0x74,0x68,0x65,0x6e])](_0xe608e7=>{if(!_0xe608e7||_0xe608e7[_0xf66755([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xf66755([0x6f,0x6b]))return _0xf66755([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4c43a4(_0x5198a9(_0x1e79cc+_0x5314b7))!=_0xe608e7[_0xf66755([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xf66755([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xf66755([0x56,0x61,0x6c,0x69,0x64]);})[_0xf66755([0x74,0x68,0x65,0x6e])](_0x589473=>(_0x3076be(),_0x589473),()=>{const _0x304252=_0x2bb210();return null==_0x304252?(_0x3076be(),_0xf66755([0x56,0x61,0x6c,0x69,0x64])):_0xf66755(_0x7fa89-_0x304252>(0x267d51d9^_0x2ea1d5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xf66755([0x74,0x68,0x65,0x6e])](_0x493f2a)[_0xf66755([0x63,0x61,0x74,0x63,0x68])](()=>{_0x493f2a(_0xf66755([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d5289=0x2473b59^_0x2ea1d5;function _0x3076be(){const _0x3a3f2d=_0xf66755([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c43a4(_0x5198a9(_0x54d73d)),_0x5da7ae=_0x3e6a4e(_0x4c43a4(window[_0xf66755([0x4d,0x61,0x74,0x68])][_0xf66755([0x63,0x65,0x69,0x6c])](_0x7fa89/_0x1d5289)));window[_0xf66755([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf66755([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a3f2d,_0x5da7ae);}function _0x2bb210(){const _0x8acec3=_0xf66755([0x6c,0x6c,0x63,0x74,0x2d])+_0x4c43a4(_0x5198a9(_0x54d73d)),_0x237e6f=window[_0xf66755([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xf66755([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8acec3);return _0x237e6f?window[_0xf66755([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e6a4e(_0x237e6f),0x10)*_0x1d5289:null;}function _0x40479e(_0xdae0b7){return new window[(_0xf66755([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50d012,_0x355729)=>{_0xdae0b7[_0xf66755([0x74,0x68,0x65,0x6e])](_0x50d012,_0x355729),window[_0xf66755([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x355729,0x2700119^_0x2ea1d5);});}}_0x521ecb[_0xf66755([0x6f,0x6e])](_0xf66755([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2c7939,_0xe0816d)=>{if(_0xe0816d[0x0]!=_0x54d73d)return _0x493f2a(_0xf66755([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe0816d[0x1]={..._0xe0816d[0x1],[_0xf66755([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e79cc};},{[_0xf66755([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf66755([0x68,0x69,0x67,0x68])}),_0x521ecb[_0xf66755([0x6f,0x6e])](_0xf66755([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b2567=>{_0x2ca1ee(_0x3b2567[_0xf66755([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a78ca=!0x0,_0x9a6de1(_0x3b2567[_0xf66755([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xf66755([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xf66755([0x6c,0x6f,0x77])}),_0x1bcb2c[_0xf66755([0x74,0x68,0x65,0x6e])](()=>{_0x1a78ca||_0x493f2a(_0xf66755([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x386bdf(){return _0x521ecb[_0xf66755([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf66755([0x76,0x69,0x65,0x77])][_0xf66755([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xf66755([0x61,0x75,0x74,0x6f]);}function _0x1d317e(){_0x521ecb[_0xf66755([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xf66755([0x76,0x69,0x65,0x77])][_0xf66755([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xf66755([0x61,0x75,0x74,0x6f]);}}function _0x428cb7(_0x331c7d){const _0x118684=[new window[(_0xf66755([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x331254=>setTimeout(_0x331254,0x278eb15^_0x2ea1d5)),_0x1bcb2c[_0xf66755([0x74,0x68,0x65,0x6e])](()=>new window[(_0xf66755([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e728e=>{let _0x41abf1=0x0;_0x521ecb[_0xf66755([0x6d,0x6f,0x64,0x65,0x6c])][_0xf66755([0x6f,0x6e])](_0xf66755([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3161ab,_0x3c0d1b)=>{_0x3c0d1b[0x0][_0xf66755([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x41abf1++,_0x41abf1==(0x271d421^_0x2ea1d5)&&(_0x2e728e(),_0x3161ab[_0xf66755([0x6f,0x66,0x66])]());});}))];return window[_0xf66755([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xf66755([0x72,0x61,0x63,0x65])](_0x118684)[_0xf66755([0x74,0x68,0x65,0x6e])](()=>_0x331c7d);}async function _0x4c68a4(){await _0x1bcb2c,_0x521ecb[_0xf66755([0x6d,0x6f,0x64,0x65,0x6c])][_0xf66755([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26dcf2,_0x521ecb[_0xf66755([0x6d,0x6f,0x64,0x65,0x6c])][_0xf66755([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26dcf2,_0x521ecb[_0xf66755([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xf66755([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x38c1f9(_0x107a2b){const _0x5070dd=_0x2cbfe1();_0x521ecb[_0x5070dd]=_0xf66755([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x107a2b,_0x107a2b!=_0xf66755([0x56,0x61,0x6c,0x69,0x64])&&_0x4c68a4();}function _0x2cbfe1(){const _0x1176f1=window[_0xf66755([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xf66755([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xf66755([0x6e,0x6f,0x77])]())[_0xf66755([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xf66755([0x2e]),'');let _0x1a36ff=_0xf66755([0x45]);for(let _0x447510=0x0;_0x447510<_0x1176f1[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x447510+=0x2){let _0x45ee4c=window[_0xf66755([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1176f1[_0xf66755([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x447510,_0x447510+0x2));_0x45ee4c>=_0x1e765[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45ee4c-=_0x1e765[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a36ff+=_0x1e765[_0x45ee4c];}return _0x1a36ff;}function _0x1637fa(){const _0x8995a1=_0x3b3ff0[_0xf66755([0x73,0x70,0x6c,0x69,0x74])](_0xf66755([0x2e]));if(0x3!=_0x8995a1[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x29f405(_0x8995a1[0x1]);function _0x29f405(_0x278609){const _0x435637=_0x135f3d(_0x278609);return _0x435637&&_0x416340()?_0x435637:null;function _0x416340(){const _0x309122=_0x435637[_0xf66755([0x6a,0x74,0x69])],_0x175866=window[_0xf66755([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x309122[_0xf66755([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x309122[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xed5349={..._0x435637,[_0xf66755([0x6a,0x74,0x69])]:_0x309122[_0xf66755([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x309122[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xed5349[_0xf66755([0x76,0x63])],_0x5198a9(_0xed5349)==_0x175866;}}}async function _0x47f7e2(){let _0x3453e3=!0x0;try{const _0x1c5a73=_0x3b3ff0[_0xf66755([0x73,0x70,0x6c,0x69,0x74])](_0xf66755([0x2e])),[_0x3df88b,_0x24e395,_0x2df3d7]=_0x1c5a73;return _0x58b3b0(_0x3df88b),await _0xd62c15(_0x3df88b,_0x24e395,_0x2df3d7),_0x3453e3;}catch{return!0x1;}function _0x58b3b0(_0x39c6e8){const _0x5adbf0=_0x135f3d(_0x39c6e8);_0x5adbf0&&_0x5adbf0[_0xf66755([0x61,0x6c,0x67])]==_0xf66755([0x45,0x53,0x32,0x35,0x36])||(_0x3453e3=!0x1);}async function _0xd62c15(_0x176944,_0x51ea7e,_0x15cc56){const _0x3bbf09=window[_0xf66755([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xf66755([0x66,0x72,0x6f,0x6d])](_0x455fca(_0x15cc56),_0x4598e8=>_0x4598e8[_0xf66755([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d5392=new window[(_0xf66755([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xf66755([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x176944+_0xf66755([0x2e])+_0x51ea7e),_0x96143e=window[_0xf66755([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xf66755([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x96143e)return;const _0x5ee135=await _0x96143e[_0xf66755([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xf66755([0x6a,0x77,0x6b]),_0x28ea09,{[_0xf66755([0x6e,0x61,0x6d,0x65])]:_0xf66755([0x45,0x43,0x44,0x53,0x41]),[_0xf66755([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xf66755([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xf66755([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x96143e[_0xf66755([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xf66755([0x6e,0x61,0x6d,0x65])]:_0xf66755([0x45,0x43,0x44,0x53,0x41]),[_0xf66755([0x68,0x61,0x73,0x68])]:{[_0xf66755([0x6e,0x61,0x6d,0x65])]:_0xf66755([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5ee135,_0x3bbf09,_0x2d5392)||(_0x3453e3=!0x1);}}function _0x135f3d(_0x5ce43d){return _0x5ce43d[_0xf66755([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xf66755([0x65,0x79]))?JSON[_0xf66755([0x70,0x61,0x72,0x73,0x65])](_0x455fca(_0x5ce43d)):null;}function _0x455fca(_0xf0a003){return window[_0xf66755([0x61,0x74,0x6f,0x62])](_0xf0a003[_0xf66755([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xf66755([0x2b]))[_0xf66755([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xf66755([0x2f])));}function _0x5198a9(_0x4198ad){let _0x1d7808=0x1505;function _0x457987(_0x4d6784){for(let _0x204a3f=0x0;_0x204a3f<_0x4d6784[_0xf66755([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x204a3f++){const _0x2da0ae=_0x4d6784[_0xf66755([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x204a3f);_0x1d7808=(_0x1d7808<<0x5)+_0x1d7808+_0x2da0ae,_0x1d7808&=_0x1d7808;}}function _0x2e98d1(_0x1c4538){Array[_0xf66755([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1c4538)?_0x1c4538[_0xf66755([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e98d1):_0x1c4538&&typeof _0x1c4538==_0xf66755([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xf66755([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1c4538)[_0xf66755([0x73,0x6f,0x72,0x74])]()[_0xf66755([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3b9be4,_0x33e093])=>{_0x457987(_0x3b9be4),_0x2e98d1(_0x33e093);}):_0x457987(window[_0xf66755([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1c4538));}return _0x2e98d1(_0x4198ad),_0x1d7808>>>0x0;}function _0x4c43a4(_0x57d337){return _0x57d337[_0xf66755([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xf66755([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xf66755([0x30]));}function _0x3e6a4e(_0x57a651){return _0x57a651[_0xf66755([0x73,0x70,0x6c,0x69,0x74])]('')[_0xf66755([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xf66755([0x6a,0x6f,0x69,0x6e])]('');}function _0x26dcf2(){}function _0xf66755(_0xc94e5c){return _0xc94e5c['map'](_0x1e88cf=>String['fromCharCode'](_0x1e88cf))['join']('');}_0x38c1f9(await _0x537588());}(this);}['_initSchema'](){const _0x42d85b=this['editor']['model']['schema'];_0x42d85b['isRegistered']('imageBlock')&&_0x42d85b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x42d85b['isRegistered']('imageInline')&&_0x42d85b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2498ea=this['editor'];_0x2498ea['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2498ea['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x301737=>_0x301737['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x14041c=_0x2498ea['commands']['get']('replaceImageSource');_0x14041c&&this['listenTo'](_0x14041c,'cleanupImage',(_0x63cf9e,[_0x5dbec2,_0x338ebf])=>{_0x5dbec2['removeAttribute']('uploadcareImageId',_0x338ebf);});}['_initConfig'](){const _0x22cbf9=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3c6531=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x564f8a(_0x3ac262['document'],'uc-config',{..._0x22cbf9,'pubkey':_0x3c6531,'ctx-name':'uploader-'+this['ucContextId'],'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']=_0x85d720=>{if('closeMax'==_0x85d720)return'#uc-icon-arrow-down';},_0x3ac262['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x564f8a(_0x3ac262['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3ac262['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x19c6f7=this['editor']['commands']['get']('insertImage');_0x19c6f7&&this['listenTo'](_0x19c6f7,'execute',()=>{const _0x2a8de6=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a8de6&&_0x2a8de6['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2a8de6);});});const _0xb9a1ab=this['editor']['commands']['get']('uploadcareImageReplace');_0xb9a1ab&&this['listenTo'](_0xb9a1ab,'execute',()=>{const _0x2027c4=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2027c4&&_0x2027c4['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x2027c4);});});}}class tt extends _0x13dee5{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4082c1){super(_0x4082c1),_0x4082c1['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x3ad904['defineComponents'](_0x3ad904);}}class ii extends _0x1d1954{constructor(_0x59e9df){super(_0x59e9df);const t=_0x59e9df['t'],_0x4ed2f8=this['bindTemplate'],_0x468c7a=new _0x421329();_0x468c7a['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':[_0x468c7a,{'text':_0x4ed2f8['to']('imageUploadProgress',_0x36711d=>t('Loading\x20image...')+'\x20('+(_0x36711d||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 ti extends _0x1d1954{constructor(_0x2f0c6a){super(_0x2f0c6a);const t=_0x2f0c6a['t'];this['set']('errorType',null);const _0x22e511=new _0x4040c0(_0x2f0c6a);_0x22e511['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x22e511['withText']=!0x0,_0x22e511['class']='ck-button-action',_0x22e511['on']('execute',()=>{this['fire']('retry');}),_0x22e511['bind']('isVisible')['to'](this,'errorType',_0x4ddb5b=>'NotFound'!==_0x4ddb5b);const _0x2128ec=new _0x37a4fe();_0x2128ec['content']=_0x27f870,_0x2128ec['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x125d1b=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':[_0x2128ec,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x125d1b['to']('errorType',_0xbb495=>t('NotFound'!==_0xbb495?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x22e511]},{'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 ei extends _0x1d1954{constructor(_0x22b283,_0x3fa382){super(_0x22b283);const _0x5d5fca=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3fa382,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5d5fca['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x5d77ca,_0x103f6c,_0x459a54){super(_0x5d77ca),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x5d77ca),this['_errorView']=new ti(_0x5d77ca),this['_editingView']=new ei(_0x5d77ca,_0x459a54),this['_focusableView']=new _0x1d1954(_0x5d77ca),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x103f6c),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'],_0x4567a1=>{this['_addUploadcareImageEditorListeners'](_0x4567a1);});}),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'](_0x4fc7f9,_0x378dfb){const _0x195473='uc-cloud-image-editor',_0x1da1ed=_0x4fc7f9['querySelector'](_0x195473);if(_0x1da1ed)return _0x378dfb(_0x1da1ed);const _0x12f41e=new MutationObserver(_0x526e29=>{const _0x2ba13f=_0x526e29['filter'](_0x19eac2=>_0x19eac2['target']===_0x4fc7f9&&_0x19eac2['addedNodes']['length']>0x0&&_0x19eac2['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x195473);_0x2ba13f['length']&&(_0x12f41e['disconnect'](),_0x378dfb(_0x2ba13f[0x0]['addedNodes'][0x0]));});_0x12f41e['observe'](_0x4fc7f9,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x54f3d1){_0x54f3d1['addEventListener']('apply',_0x538c7c=>{this['fire']('apply',{'imageSrc':_0x538c7c['detail']['cdnUrl']});}),_0x54f3d1['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2d734c(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1cb674,_0x26d77e,_0x3759e9){super(),this['_editor']=_0x1cb674,this['_dialog']=_0x26d77e,this['_imageElement']=_0x3759e9,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 _0x459fcd=this['_imageElement'],_0x5dcec4=_0x459fcd['getAttribute']('uploadcareImageId'),_0x168ba2=_0x459fcd['getAttribute']('src');if(_0x5dcec4)await this['_loadImageInfo'](_0x5dcec4,_0x168ba2);else{if(this['_imageCache']['has'](_0x168ba2)){const _0x3d885d=this['_imageCache']['get'](_0x168ba2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d885d['url'],this['imageDimension']=_0x3d885d['dimension'],this['imageId']=_0x3d885d['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4c5a4c}=this['_editor'],t=_0x4c5a4c['t'],_0x159e9a=new X(_0x4c5a4c,this['imageStatus'],this['_attributes']);_0x159e9a['bind']('status')['to'](this,'imageStatus'),_0x159e9a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x159e9a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x159e9a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x159e9a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1a6202,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x159e9a,'position':_0x44068c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x159e9a['focus']();},'onHide':()=>{_0x159e9a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4e4e97=>!S(_0x4e4e97,_0x159e9a['element'])}});}['_loadImageInfo'](_0x2a2317,_0x335ee0){return j['getInfo'](_0x2a2317,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xf0a16f=>{const {width:_0x8e879b,height:_0x207474}=_0xf0a16f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x335ee0,this['imageDimension']={'width':_0x8e879b,'height':_0x207474},this['imageId']=_0x2a2317;})['catch'](_0x59e53d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x59e53d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x3b5881,_0x755cad){return this['_getImageAsFile'](_0x3b5881)['then'](_0xbd4a61=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x755cad['signal'],'file':_0xbd4a61,'onProgress':_0x23e6a5=>{_0x23e6a5&&_0x23e6a5['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x23e6a5['value']));}}))['then'](_0x5b53b=>{const {width:_0x545b97,height:_0x3227e8}=_0x5b53b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b53b['cdnUrl'],this['imageDimension']={'width':_0x545b97,'height':_0x3227e8},this['imageId']=_0x5b53b['uuid'],this['imageUploadProgress']=null;const _0x25aa5c=_0x3b5881['getAttribute']('src');this['_imageCache']['set'](_0x25aa5c,{'id':_0x5b53b['uuid'],'url':_0x5b53b['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x49d4aa=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x49d4aa['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x59da27,_0x5d1dd9){_0x59da27['on']('apply',(_0x5e45a0,_0x9e332d)=>{this['_replaceImage'](_0x5d1dd9,_0x9e332d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x59da27['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x59da27['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5ddc42,_0x115e46,_0x81091e){const _0xe8ab65=this['_editor'],{width:_0x738253,height:_0x438276}=C(_0x115e46,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4302a1,imageSources:_0x303abd}=k(_0x115e46,_0x738253);_0xe8ab65['model']['change'](_0x4e1faa=>{if('$graveyard'===_0x5ddc42['root']['rootName']){_0xe8ab65['execute']('insertImage',{'imageType':_0x5ddc42['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5ddc42['getAttributes']()),'uploadcareImageId':_0x81091e,'src':_0x4302a1,'sources':_0x303abd,'width':_0x738253,'height':_0x438276}});const _0x147bbd=_0x5ddc42['getChildren']();_0x5ddc42=_0xe8ab65['model']['document']['selection']['getSelectedElement']();for(const _0x54b022 of _0x147bbd)_0x4e1faa['append'](_0x4e1faa['cloneElement'](_0x54b022),_0x5ddc42);}else _0x4e1faa['setSelection'](_0x5ddc42,'on'),_0xe8ab65['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5ddc42['getAttributes']()),'uploadcareImageId':_0x81091e,'src':_0x4302a1,'sources':_0x303abd,'width':_0x738253,'height':_0x438276},_0x5ddc42);_0x4e1faa['setSelection'](_0x5ddc42,'on');});}async['_getImageAsFile'](_0x459137){const _0x19f3be=_0x3ac262['window'],_0x1aaa7f=_0x3ac262['document']['location']['href'],_0x25a38c=new _0x19f3be['URL'](_0x459137['getAttribute']('src'),_0x1aaa7f);if('data:'===_0x25a38c['protocol']){const _0x4abb97=_0x25a38c['href']['split'](','),_0x42d8d9=_0x4abb97[0x0]['match'](/:(.*?);/)[0x1],_0x44ff5a=_0x42d8d9['split']('/')[0x1],_0x2c35ed=_0x19f3be['atob'](_0x4abb97[_0x4abb97['length']-0x1]);let _0xca3bc4=_0x2c35ed['length'];const _0x15ef76=new _0x19f3be['Uint8Array'](_0xca3bc4);for(;_0xca3bc4--;)_0x15ef76[_0xca3bc4]=_0x2c35ed['charCodeAt'](_0xca3bc4);return new _0x19f3be['File']([_0x15ef76],'image.'+_0x44ff5a,{'type':_0x42d8d9});}const _0x42da00=_0x25a38c['href']['split']('/'),_0xe9b620=_0x42da00[_0x42da00['length']-0x1],_0x355fc5=_0xe9b620['split']('.')[0x1];return _0x19f3be['fetch'](_0x25a38c['href'])['then'](_0x5edaac=>_0x5edaac['clone']()['blob']())['then'](_0xd29145=>new _0x19f3be['File']([_0xd29145],_0xe9b620,{'type':'image/'+_0x355fc5}));}}class O extends _0x2238a1{['imageEditController'];static get['requires'](){return[_0x32df1c];}['_isEditable'];constructor(_0x3f911e){super(_0x3f911e),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4a3109){const _0x1af731=G(_0x4a3109);return _0x249e74=>!(!_0x249e74||!_0x249e74['is']('element','imageBlock')&&!_0x249e74['is']('element','imageInline'))&&(!!_0x249e74['hasAttribute']('uploadcareImageId')||!!_0x249e74['hasAttribute']('src')&&_0x1af731(_0x249e74['getAttribute']('src')));}(_0x3f911e['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3d451f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3d451f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x93cc57=this['editor']['model']['document']['selection']['getSelectedElement']();_0x93cc57&&(_0x93cc57['is']('element','imageBlock')||_0x93cc57['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x32df1c),_0x93cc57),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x2238a1{['refresh'](){const _0x113a2d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x113a2d&&(_0x113a2d['is']('element','imageBlock')||_0x113a2d['is']('element','imageInline')));}['execute'](_0x428f24){const _0xa8e114=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x21be6a=>{_0x21be6a['setAttributes'](_0x428f24,_0xa8e114),_0x21be6a['removeAttribute']('srcset',_0xa8e114),_0x21be6a['removeAttribute']('sizes',_0xa8e114);});}}class m extends _0x13dee5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x50102b,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x41e09b}=this;_0x41e09b['commands']['add']('uploadcareImageEdit',new O(_0x41e09b)),_0x41e09b['commands']['add']('uploadcareImageReplace',new R(_0x41e09b));}}class g extends _0x13dee5{['_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 _0xde1caf=this['editor'];_0xde1caf['ui']['componentFactory']['add']('uploadcareImageEdit',_0x85554d=>{const _0x54d4f5=_0xde1caf['commands']['get']('uploadcareImageEdit'),_0x5b9bb3=new _0x4040c0(_0x85554d),t=_0x85554d['t'];return _0x5b9bb3['set']({'icon':_0x1a6202,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x5b9bb3['bind']('isEnabled')['to'](_0x54d4f5),_0x5b9bb3['bind']('isOn')['to'](_0x54d4f5,'isActive'),this['listenTo'](_0x5b9bb3,'execute',()=>{_0xde1caf['execute']('uploadcareImageEdit'),_0xde1caf['editing']['view']['focus']();}),_0x5b9bb3;}),this['_initConfig']();}['_initConfig'](){const _0x2d39ef=_0x564f8a(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x2d39ef),this['listenTo'](this['editor'],'destroy',()=>{_0x2d39ef['remove']();});}}class et extends _0x13dee5{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250707.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250707.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250707.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250707.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250707.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250707.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250707.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250707.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250707.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.16.3-alpha.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x1eb0d4=_0x5266;(function(_0x19bec2,_0x527102){const _0x447d10=_0x5266,_0x2de41d=_0x19bec2();while(!![]){try{const _0x2ff5ef=parseInt(_0x447d10(0x1d1))/0x1+parseInt(_0x447d10(0x203))/0x2*(parseInt(_0x447d10(0x1f8))/0x3)+parseInt(_0x447d10(0x1fc))/0x4*(-parseInt(_0x447d10(0x1f5))/0x5)+-parseInt(_0x447d10(0x1de))/0x6+-parseInt(_0x447d10(0x1e4))/0x7*(parseInt(_0x447d10(0x1c0))/0x8)+parseInt(_0x447d10(0x1b7))/0x9*(parseInt(_0x447d10(0x1cd))/0xa)+parseInt(_0x447d10(0x1dd))/0xb;if(_0x2ff5ef===_0x527102)break;else _0x2de41d['push'](_0x2de41d['shift']());}catch(_0x2b89be){_0x2de41d['push'](_0x2de41d['shift']());}}}(_0xda81,0xd5fe0));import{Plugin as _0x38678b}from'ckeditor5/src/core.js';import{Dialog as _0x4f9f11}from'ckeditor5/src/ui.js';import{createElement as _0x44aa0e,global as _0x50ece4,uid as _0x5e0d2e}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x2f5d3a}from'./uploadcarecommand.js';function _0x5266(_0x1d6279,_0x50f569){const _0xda81bb=_0xda81();return _0x5266=function(_0x526657,_0x3e63af){_0x526657=_0x526657-0x1b7;let _0x366e12=_0xda81bb[_0x526657];return _0x366e12;},_0x5266(_0x1d6279,_0x50f569);}import{UploadcareUploadAdapter as _0x5daee1}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x358f69}from'./utils/editingutils.js';export class UploadcareEditing extends _0x38678b{[_0x1eb0d4(0x1d3)]=null;[_0x1eb0d4(0x1db)]=null;static get[_0x1eb0d4(0x201)](){const _0x3a1b16=_0x1eb0d4;return _0x3a1b16(0x1ec);}static get[_0x1eb0d4(0x1cf)](){const _0x312f38=_0x1eb0d4;return[_0x312f38(0x1cc),_0x5daee1,_0x4f9f11];}static get[_0x1eb0d4(0x1e1)](){return!0x0;}static get[_0x1eb0d4(0x1f2)](){return!0x0;}[_0x1eb0d4(0x1ef)];get[_0x1eb0d4(0x1ca)](){const _0x34e364=_0x1eb0d4;return this[_0x34e364(0x1d3)];}get[_0x1eb0d4(0x1d2)](){const _0x9f8dc=_0x1eb0d4;return this[_0x9f8dc(0x1db)];}constructor(_0x401390){const _0x496d88=_0x1eb0d4;super(_0x401390),this[_0x496d88(0x1ef)]=_0x5e0d2e();}[_0x1eb0d4(0x1c5)](){const _0x3437f2=_0x1eb0d4,_0x2b3449=this[_0x3437f2(0x1e8)];_0x2b3449[_0x3437f2(0x202)][_0x3437f2(0x1dc)](_0x3437f2(0x1fa),new _0x2f5d3a(_0x2b3449));}[_0x1eb0d4(0x1f4)](){const _0x42f834=_0x1eb0d4;this[_0x42f834(0x200)](),this[_0x42f834(0x1e0)](),this[_0x42f834(0x20a)](),this[_0x42f834(0x1d5)](),this[_0x42f834(0x20c)](),this[_0x42f834(0x1f1)](this[_0x42f834(0x1e8)],_0x42f834(0x1c6),()=>{const _0x477ba4=_0x42f834;this[_0x477ba4(0x1d3)]&&(this[_0x477ba4(0x1d3)][_0x477ba4(0x1ba)](),this[_0x477ba4(0x1d3)]=null),this[_0x477ba4(0x1db)]&&(this[_0x477ba4(0x1db)][_0x477ba4(0x1ba)](),this[_0x477ba4(0x1db)]=null);const _0x1bc75a=_0x50ece4[_0x477ba4(0x1bd)][_0x477ba4(0x1e2)](_0x477ba4(0x1e3));_0x1bc75a&&_0x1bc75a[_0x477ba4(0x1ba)]();}),async function(_0x1b162d){const _0x245e83=_0x1c252b([0x32,0x6e,0x6b,0x68,0x76,0x65,0x35,0x53,0x79,0x51,0x36,0x5a,0x52,0x69,0x73,0x42,0x57,0x4c,0x61,0x50,0x4a,0x4f,0x49,0x59,0x33,0x6c,0x30,0x67,0x6d,0x54,0x63,0x39,0x47,0x7a,0x70,0x64,0x38,0x72,0x34,0x4b,0x77,0x31,0x46,0x58,0x48,0x43,0x66,0x37,0x6f,0x45,0x4d,0x56,0x78,0x74,0x62,0x44,0x71,0x75,0x4e,0x6a,0x41,0x55]),_0x582042=0x1900003,_0x3400b4=0x1976ccb^_0x582042,_0x6c2b31=window[_0x1c252b([0x44,0x61,0x74,0x65])][_0x1c252b([0x6e,0x6f,0x77])](),_0x263181=_0x1b162d[_0x1c252b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x391623=new window[(_0x1c252b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ab6be=>{_0x263181[_0x1c252b([0x6f,0x6e,0x63,0x65])](_0x1c252b([0x72,0x65,0x61,0x64,0x79]),_0x2ab6be);}),_0x508694={[_0x1c252b([0x6b,0x74,0x79])]:_0x1c252b([0x45,0x43]),[_0x1c252b([0x75,0x73,0x65])]:_0x1c252b([0x73,0x69,0x67]),[_0x1c252b([0x63,0x72,0x76])]:_0x1c252b([0x50,0x2d,0x32,0x35,0x36]),[_0x1c252b([0x78])]:_0x1c252b([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]),[_0x1c252b([0x79])]:_0x1c252b([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]),[_0x1c252b([0x61,0x6c,0x67])]:_0x1c252b([0x45,0x53,0x32,0x35,0x36])},_0x25b7ce=_0x263181[_0x1c252b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c252b([0x67,0x65,0x74])](_0x1c252b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1fc032(){let _0x33f43e,_0x285225=null,_0x363cc5=null;try{if(_0x25b7ce==_0x1c252b([0x47,0x50,0x4c]))return _0x1c252b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x33f43e=_0x2c55d7(),!_0x33f43e)return _0x1c252b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x33f43e[_0x1c252b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x363cc5=_0xf6070e(_0x33f43e[_0x1c252b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x33f43e[_0x1c252b([0x6a,0x74,0x69])])),await _0x5ee1f8()?_0x40a8e0()?_0x22a2a4()?_0x1c252b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5dee60()?(_0x33f43e[_0x1c252b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c252b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x285225=_0xc8329(_0x1c252b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x33f43e[_0x1c252b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c252b([0x74,0x72,0x69,0x61,0x6c])&&(_0x285225=_0xc8329(_0x1c252b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4449f5()):_0x1c252b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c252b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c252b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1c252b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x22a2a4(){const _0x45107c=[_0x1c252b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c252b([0x74,0x72,0x69,0x61,0x6c])][_0x1c252b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33f43e[_0x1c252b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x6c2b31/0x3e8:0xe10*_0x3400b4;return _0x33f43e[_0x1c252b([0x65,0x78,0x70])]<_0x45107c;}function _0x40a8e0(){const _0x2df55b=_0x33f43e[_0x1c252b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2df55b&&(!!_0x2df55b[_0x1c252b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c252b([0x2a]))||!!_0x2df55b[_0x1c252b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c252b([0x55,0x50,0x4c,0x43])));}function _0x5dee60(){const _0x2ef70b=_0x5266,_0x41f762=_0x33f43e[_0x1c252b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x41f762||0x0==_0x41f762[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x453661}=new URL(window[_0x1c252b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2ef70b(0x1c1)]);if(_0x41f762[_0x1c252b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x453661))return!0x0;const _0x57a734=_0x453661[_0x1c252b([0x73,0x70,0x6c,0x69,0x74])](_0x1c252b([0x2e]));return _0x41f762[_0x1c252b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24a91a=>_0x24a91a[_0x1c252b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c252b([0x2a])))[_0x1c252b([0x6d,0x61,0x70])](_0x1bf746=>_0x1bf746[_0x1c252b([0x73,0x70,0x6c,0x69,0x74])](_0x1c252b([0x2e])))[_0x1c252b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43ab09=>_0x43ab09[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x57a734[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c252b([0x6d,0x61,0x70])](_0x5184d0=>Array(_0x57a734[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5184d0[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c252b([0x66,0x69,0x6c,0x6c])](_0x5184d0[0x0]===_0x1c252b([0x2a])?_0x1c252b([0x2a]):'')[_0x1c252b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5184d0))[_0x1c252b([0x73,0x6f,0x6d,0x65])](_0x584f4e=>_0x57a734[_0x1c252b([0x65,0x76,0x65,0x72,0x79])]((_0x5231e0,_0xd54ac8)=>_0x584f4e[_0xd54ac8]===_0x5231e0||_0x584f4e[_0xd54ac8]===_0x1c252b([0x2a])));}function _0x4449f5(){return _0x285225&&_0x363cc5?new window[(_0x1c252b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x762ebe,_0xac5f)=>{_0x285225[_0x1c252b([0x74,0x68,0x65,0x6e])](_0x762ebe,_0xac5f),_0x363cc5[_0x1c252b([0x74,0x68,0x65,0x6e])](_0x5bdf78=>{_0x5bdf78!=_0x1c252b([0x56,0x61,0x6c,0x69,0x64])&&_0x762ebe(_0x5bdf78);},_0xac5f);}):_0x285225||_0x363cc5||_0x1c252b([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf6070e(_0x1d7478,_0x6347e5){return new window[(_0x1c252b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4eccfd=>{if(_0x4acd5e())return _0x4eccfd(_0x1c252b([0x56,0x61,0x6c,0x69,0x64]));_0x4af1b4(),_0x263181[_0x1c252b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c252b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4e94a2=!0x1;const _0xa6ab11=_0x5e0d2e();function _0x2e9d13(_0x505396){return!!_0x505396&&(typeof _0x505396===_0x1c252b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x505396===_0x1c252b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x505396[_0x1c252b([0x74,0x68,0x65,0x6e])]===_0x1c252b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x505396[_0x1c252b([0x63,0x61,0x74,0x63,0x68])]===_0x1c252b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x16a03d(_0x29c4a7){_0x1a10c5(_0x29c4a7)[_0x1c252b([0x74,0x68,0x65,0x6e])](_0xa0ed37=>{if(!_0xa0ed37||_0xa0ed37[_0x1c252b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c252b([0x6f,0x6b]))return _0x1c252b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x212a15(_0x37a1a3(_0xa6ab11+_0x6347e5))!=_0xa0ed37[_0x1c252b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c252b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c252b([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c252b([0x74,0x68,0x65,0x6e])](_0x5368da=>(_0xeea518(),_0x5368da),()=>{const _0x5b1916=_0x395495();return null==_0x5b1916?(_0xeea518(),_0x1c252b([0x56,0x61,0x6c,0x69,0x64])):_0x1c252b(_0x6c2b31-_0x5b1916>(0x259c8403^_0x582042)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c252b([0x74,0x68,0x65,0x6e])](_0x4eccfd)[_0x1c252b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4eccfd(_0x1c252b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ee7f2=0x1a6ee83^_0x582042;function _0xeea518(){const _0x243545=_0x1c252b([0x6c,0x6c,0x63,0x74,0x2d])+_0x212a15(_0x37a1a3(_0x1d7478)),_0x34ed58=_0x2072dc(_0x212a15(window[_0x1c252b([0x4d,0x61,0x74,0x68])][_0x1c252b([0x63,0x65,0x69,0x6c])](_0x6c2b31/_0x5ee7f2)));window[_0x1c252b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c252b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x243545,_0x34ed58);}function _0x395495(){const _0x567d02=_0x1c252b([0x6c,0x6c,0x63,0x74,0x2d])+_0x212a15(_0x37a1a3(_0x1d7478)),_0x45235b=window[_0x1c252b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c252b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x567d02);return _0x45235b?window[_0x1c252b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2072dc(_0x45235b),0x10)*_0x5ee7f2:null;}function _0x1a10c5(_0x2d7207){return new window[(_0x1c252b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b1a25,_0x3e31b7)=>{_0x2d7207[_0x1c252b([0x74,0x68,0x65,0x6e])](_0x4b1a25,_0x3e31b7),window[_0x1c252b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3e31b7,0x191d4c3^_0x582042);});}}_0x263181[_0x1c252b([0x6f,0x6e])](_0x1c252b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f422d,_0x2171a4)=>{if(_0x2171a4[0x0]!=_0x1d7478)return _0x4eccfd(_0x1c252b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2171a4[0x1]={..._0x2171a4[0x1],[_0x1c252b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa6ab11};},{[_0x1c252b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c252b([0x68,0x69,0x67,0x68])}),_0x263181[_0x1c252b([0x6f,0x6e])](_0x1c252b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xde7b9a=>{_0x2e9d13(_0xde7b9a[_0x1c252b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4e94a2=!0x0,_0x16a03d(_0xde7b9a[_0x1c252b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c252b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c252b([0x6c,0x6f,0x77])}),_0x391623[_0x1c252b([0x74,0x68,0x65,0x6e])](()=>{_0x4e94a2||_0x4eccfd(_0x1c252b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4acd5e(){return _0x263181[_0x1c252b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c252b([0x76,0x69,0x65,0x77])][_0x1c252b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c252b([0x61,0x75,0x74,0x6f]);}function _0x4af1b4(){_0x263181[_0x1c252b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c252b([0x76,0x69,0x65,0x77])][_0x1c252b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c252b([0x61,0x75,0x74,0x6f]);}}function _0xc8329(_0x11bc8b){const _0x2c1af8=[new window[(_0x1c252b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18ad84=>setTimeout(_0x18ad84,0x1993ecf^_0x582042)),_0x391623[_0x1c252b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c252b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e7005=>{let _0x1cd9aa=0x0;_0x263181[_0x1c252b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c252b([0x6f,0x6e])](_0x1c252b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x49de9b,_0x2548cd)=>{_0x2548cd[0x0][_0x1c252b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1cd9aa++,_0x1cd9aa==(0x19001fb^_0x582042)&&(_0x4e7005(),_0x49de9b[_0x1c252b([0x6f,0x66,0x66])]());});}))];return window[_0x1c252b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c252b([0x72,0x61,0x63,0x65])](_0x2c1af8)[_0x1c252b([0x74,0x68,0x65,0x6e])](()=>_0x11bc8b);}async function _0x2a9648(){await _0x391623,_0x263181[_0x1c252b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c252b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4989fe,_0x263181[_0x1c252b([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c252b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4989fe,_0x263181[_0x1c252b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c252b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x42cb39(_0x3ddf86){const _0x18fecd=_0x5eac74();_0x263181[_0x18fecd]=_0x1c252b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ddf86,_0x3ddf86!=_0x1c252b([0x56,0x61,0x6c,0x69,0x64])&&_0x2a9648();}function _0x5eac74(){const _0x2d0ea5=window[_0x1c252b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c252b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c252b([0x6e,0x6f,0x77])]())[_0x1c252b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c252b([0x2e]),'');let _0x15b171=_0x1c252b([0x6e]);for(let _0x8f9f4f=0x0;_0x8f9f4f<_0x2d0ea5[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8f9f4f+=0x2){let _0x48791e=window[_0x1c252b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d0ea5[_0x1c252b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8f9f4f,_0x8f9f4f+0x2));_0x48791e>=_0x245e83[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x48791e-=_0x245e83[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x15b171+=_0x245e83[_0x48791e];}return _0x15b171;}function _0x2c55d7(){const _0x3876d5=_0x25b7ce[_0x1c252b([0x73,0x70,0x6c,0x69,0x74])](_0x1c252b([0x2e]));if(0x3!=_0x3876d5[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d13f6(_0x3876d5[0x1]);function _0x1d13f6(_0x537a7e){const _0x9d1f62=_0x1e44fc(_0x537a7e);return _0x9d1f62&&_0x3b8969()?_0x9d1f62:null;function _0x3b8969(){const _0x561446=_0x9d1f62[_0x1c252b([0x6a,0x74,0x69])],_0x570192=window[_0x1c252b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x561446[_0x1c252b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x561446[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x58e783={..._0x9d1f62,[_0x1c252b([0x6a,0x74,0x69])]:_0x561446[_0x1c252b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x561446[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x58e783[_0x1c252b([0x76,0x63])],_0x37a1a3(_0x58e783)==_0x570192;}}}async function _0x5ee1f8(){let _0x13a4dd=!0x0;try{const _0x25c2a3=_0x25b7ce[_0x1c252b([0x73,0x70,0x6c,0x69,0x74])](_0x1c252b([0x2e])),[_0x242cf1,_0x576bd2,_0x185281]=_0x25c2a3;return _0x5e5a14(_0x242cf1),await _0x409f48(_0x242cf1,_0x576bd2,_0x185281),_0x13a4dd;}catch{return!0x1;}function _0x5e5a14(_0x58262f){const _0x359b20=_0x1e44fc(_0x58262f);_0x359b20&&_0x359b20[_0x1c252b([0x61,0x6c,0x67])]==_0x1c252b([0x45,0x53,0x32,0x35,0x36])||(_0x13a4dd=!0x1);}async function _0x409f48(_0x5d7e8d,_0x318619,_0x16f133){const _0xedf1cb=window[_0x1c252b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c252b([0x66,0x72,0x6f,0x6d])](_0x442266(_0x16f133),_0x2a77a2=>_0x2a77a2[_0x1c252b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe3ca9c=new window[(_0x1c252b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c252b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5d7e8d+_0x1c252b([0x2e])+_0x318619),_0x4b1331=window[_0x1c252b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c252b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b1331)return;const _0x285f09=await _0x4b1331[_0x1c252b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c252b([0x6a,0x77,0x6b]),_0x508694,{[_0x1c252b([0x6e,0x61,0x6d,0x65])]:_0x1c252b([0x45,0x43,0x44,0x53,0x41]),[_0x1c252b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c252b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c252b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b1331[_0x1c252b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c252b([0x6e,0x61,0x6d,0x65])]:_0x1c252b([0x45,0x43,0x44,0x53,0x41]),[_0x1c252b([0x68,0x61,0x73,0x68])]:{[_0x1c252b([0x6e,0x61,0x6d,0x65])]:_0x1c252b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x285f09,_0xedf1cb,_0xe3ca9c)||(_0x13a4dd=!0x1);}}function _0x1e44fc(_0x248076){return _0x248076[_0x1c252b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c252b([0x65,0x79]))?JSON[_0x1c252b([0x70,0x61,0x72,0x73,0x65])](_0x442266(_0x248076)):null;}function _0x442266(_0x4a6266){return window[_0x1c252b([0x61,0x74,0x6f,0x62])](_0x4a6266[_0x1c252b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c252b([0x2b]))[_0x1c252b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c252b([0x2f])));}function _0x37a1a3(_0x4d96e1){let _0x59f089=0x1505;function _0x433673(_0x4cd59d){for(let _0x2487fa=0x0;_0x2487fa<_0x4cd59d[_0x1c252b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2487fa++){const _0x9e3566=_0x4cd59d[_0x1c252b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2487fa);_0x59f089=(_0x59f089<<0x5)+_0x59f089+_0x9e3566,_0x59f089&=_0x59f089;}}function _0x499685(_0x582830){Array[_0x1c252b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x582830)?_0x582830[_0x1c252b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x499685):_0x582830&&typeof _0x582830==_0x1c252b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c252b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x582830)[_0x1c252b([0x73,0x6f,0x72,0x74])]()[_0x1c252b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x41141f,_0x28d6d2])=>{_0x433673(_0x41141f),_0x499685(_0x28d6d2);}):_0x433673(window[_0x1c252b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x582830));}return _0x499685(_0x4d96e1),_0x59f089>>>0x0;}function _0x212a15(_0x449262){return _0x449262[_0x1c252b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c252b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c252b([0x30]));}function _0x2072dc(_0x4d7800){return _0x4d7800[_0x1c252b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c252b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c252b([0x6a,0x6f,0x69,0x6e])]('');}function _0x4989fe(){}function _0x1c252b(_0x506dbe){const _0x3eec91=_0x5266;return _0x506dbe[_0x3eec91(0x1e9)](_0x5d1314=>String[_0x3eec91(0x1bf)](_0x5d1314))[_0x3eec91(0x1d0)]('');}_0x42cb39(await _0x1fc032());}(this);}[_0x1eb0d4(0x200)](){const _0x1d462c=_0x1eb0d4,_0x4c0054=this[_0x1d462c(0x1e8)][_0x1d462c(0x1fd)][_0x1d462c(0x1eb)];_0x4c0054[_0x1d462c(0x1c4)](_0x1d462c(0x1c8))&&_0x4c0054[_0x1d462c(0x1ed)](_0x1d462c(0x1c8),{'allowAttributes':[_0x1d462c(0x1c9)]}),_0x4c0054[_0x1d462c(0x1c4)](_0x1d462c(0x1e7))&&_0x4c0054[_0x1d462c(0x1ed)](_0x1d462c(0x1e7),{'allowAttributes':[_0x1d462c(0x1c9)]});}[_0x1eb0d4(0x1e0)](){const _0x1b4cd3=_0x1eb0d4,_0x2c0af1=this[_0x1b4cd3(0x1e8)];_0x2c0af1[_0x1b4cd3(0x1f0)][_0x1b4cd3(0x207)](_0x1b4cd3(0x1e5))[_0x1b4cd3(0x1be)]({'model':_0x1b4cd3(0x1c9),'view':_0x1b4cd3(0x204)}),_0x2c0af1[_0x1b4cd3(0x1f0)][_0x1b4cd3(0x207)](_0x1b4cd3(0x1f6))[_0x1b4cd3(0x1ff)]({'model':{'key':_0x1b4cd3(0x1c9),'value':_0x508a5d=>_0x508a5d[_0x1b4cd3(0x1bb)](_0x1b4cd3(0x204))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2b67d3=_0x2c0af1[_0x1b4cd3(0x202)][_0x1b4cd3(0x1d6)](_0x1b4cd3(0x1e6));_0x2b67d3&&this[_0x1b4cd3(0x1f1)](_0x2b67d3,_0x1b4cd3(0x1b8),(_0x511874,[_0x5d2d54,_0x2a7aa2])=>{const _0x3363d8=_0x1b4cd3;_0x5d2d54[_0x3363d8(0x1f7)](_0x3363d8(0x1c9),_0x2a7aa2);});}[_0x1eb0d4(0x20a)](){const _0x384522=_0x1eb0d4,_0x50a819=this[_0x384522(0x1e8)][_0x384522(0x1c2)][_0x384522(0x1d6)](_0x384522(0x20b))||{},_0x12ea1c=this[_0x384522(0x1e8)][_0x384522(0x1c2)][_0x384522(0x1d6)](_0x384522(0x1c7))||'';this[_0x384522(0x1d3)]=_0x44aa0e(_0x50ece4[_0x384522(0x1bd)],_0x384522(0x1f9),{..._0x50a819,'pubkey':_0x12ea1c,'ctx-name':_0x384522(0x205)+this[_0x384522(0x1ef)],'sourceList':'','imgOnly':_0x384522(0x1d8),'removeCopyright':_0x384522(0x1d8),'localeName':this[_0x384522(0x1e8)][_0x384522(0x209)][_0x384522(0x1ea)],'externalSourcesEmbedCss':_0x384522(0x206)}),this[_0x384522(0x1d3)][_0x384522(0x1df)]=_0x59b6c3=>{const _0x3e12ed=_0x384522;if(_0x3e12ed(0x1da)==_0x59b6c3)return _0x3e12ed(0x1d9);},_0x50ece4[_0x384522(0x1bd)][_0x384522(0x1ee)][_0x384522(0x1c3)](this[_0x384522(0x1d3)]);}[_0x1eb0d4(0x1d5)](){const _0x119f8e=_0x1eb0d4;this[_0x119f8e(0x1db)]=_0x44aa0e(_0x50ece4[_0x119f8e(0x1bd)],_0x119f8e(0x208),{'ctx-name':_0x119f8e(0x205)+this[_0x119f8e(0x1ef)]}),_0x50ece4[_0x119f8e(0x1bd)][_0x119f8e(0x1ee)][_0x119f8e(0x1c3)](this[_0x119f8e(0x1db)]);}[_0x1eb0d4(0x20c)](){const _0x2afe8e=_0x1eb0d4,_0x423c95=this[_0x2afe8e(0x1e8)][_0x2afe8e(0x202)][_0x2afe8e(0x1d6)](_0x2afe8e(0x1cb));_0x423c95&&this[_0x2afe8e(0x1f1)](_0x423c95,_0x2afe8e(0x1fb),()=>{const _0x503c42=_0x2afe8e,_0x192b36=this[_0x503c42(0x1e8)][_0x503c42(0x1fd)][_0x503c42(0x1bd)][_0x503c42(0x1f3)][_0x503c42(0x1d4)]();_0x192b36&&_0x192b36[_0x503c42(0x1bb)](_0x503c42(0x1c9))&&this[_0x503c42(0x1e8)][_0x503c42(0x1ce)][_0x503c42(0x1b9)][_0x503c42(0x1fe)](_0x503c42(0x1d7),()=>{const _0x540b40=_0x503c42;_0x358f69(this[_0x540b40(0x1e8)],_0x192b36);});});const _0x5701e4=this[_0x2afe8e(0x1e8)][_0x2afe8e(0x202)][_0x2afe8e(0x1d6)](_0x2afe8e(0x1bc));_0x5701e4&&this[_0x2afe8e(0x1f1)](_0x5701e4,_0x2afe8e(0x1fb),()=>{const _0x2763e0=_0x2afe8e,_0x412c4a=this[_0x2763e0(0x1e8)][_0x2763e0(0x1fd)][_0x2763e0(0x1bd)][_0x2763e0(0x1f3)][_0x2763e0(0x1d4)]();_0x412c4a&&_0x412c4a[_0x2763e0(0x1bb)](_0x2763e0(0x1c9))&&this[_0x2763e0(0x1e8)][_0x2763e0(0x1ce)][_0x2763e0(0x1b9)][_0x2763e0(0x1fe)](_0x2763e0(0x1d7),()=>{const _0x2a7745=_0x2763e0;_0x358f69(this[_0x2a7745(0x1e8)],_0x412c4a);});});}}function _0xda81(){const _0x24634e=['downcast','replaceImageSource','imageInline','editor','map','contentLanguage','schema','UploadcareEditing','extend','body','ucContextId','conversion','listenTo','isPremiumPlugin','selection','afterInit','8100895PQDJsl','upcast','removeAttribute','1119rRTgRR','uc-config','uploadcare','execute','4zKauxv','model','once','elementToAttribute','_initSchema','pluginName','commands','7322XjQOuG','data-uc-image-id','uploader-','\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','for','uc-upload-ctx-provider','locale','_initConfig','uploadcare.uploader','_initImageProcessingIndicator','272682CwiAxx','cleanupImage','view','remove','getAttribute','uploadcareImageReplace','document','attributeToAttribute','fromCharCode','24USOzgo','href','config','appendChild','isRegistered','init','destroy','uploadcare.pubkey','imageBlock','uploadcareImageId','configElement','insertImage','PictureEditing','220NmXHfO','editing','requires','join','1140501KhWRHb','ctxElement','_configElement','getSelectedElement','_initCtx','get','render','true','#uc-icon-arrow-down','closeMax','_ctxElement','add','15669247srPRmQ','2771226alkhOD','iconHrefResolver','_initConversion','isOfficialPlugin','querySelector','input[uploadcare-file-input]','3823225uNynXe'];_0xda81=function(){return _0x24634e;};return _0xda81();}
|
|
23
|
+
const _0x44ea8c=_0x4f66;function _0xbd7c(){const _0xe89360=['href','map','extend','downcast','uc-config','pluginName','editing','imageBlock','isRegistered','cleanupImage','iconHrefResolver','editor','render','view','removeAttribute','428SaxHrV','#uc-icon-arrow-down','_configElement','listenTo','for','schema','_initConfig','configElement','model','attributeToAttribute','getSelectedElement','input[uploadcare-file-input]','_initConversion','3216190kCHoMa','body','1176672zRQQCF','4109949usNXmK','config','insertImage','afterInit','once','locale','getAttribute','imageInline','PictureEditing','7157766iaQfFP','_initCtx','elementToAttribute','document','true','add','destroy','_ctxElement','_initImageProcessingIndicator','uc-upload-ctx-provider','_initSchema','5018kERcNL','replaceImageSource','remove','uploadcare.uploader','uploadcare.pubkey','data-uc-image-id','ucContextId','contentLanguage','fromCharCode','requires','2717016KwCYUb','closeMax','ctxElement','upcast','\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','querySelector','6xyUjfm','execute','selection','get','join','commands','uploader-','uploadcareImageId','conversion','16pfXFyy','uploadcare','appendChild','init','10074160JBZDmC','UploadcareEditing','isOfficialPlugin','uploadcareImageReplace','isPremiumPlugin'];_0xbd7c=function(){return _0xe89360;};return _0xbd7c();}(function(_0x3a1a5d,_0x4dc5d6){const _0x15c734=_0x4f66,_0x4c7e98=_0x3a1a5d();while(!![]){try{const _0x525acf=parseInt(_0x15c734(0xab))/0x1*(parseInt(_0x15c734(0x87))/0x2)+parseInt(_0x15c734(0x96))/0x3+parseInt(_0x15c734(0xb5))/0x4+parseInt(_0x15c734(0x94))/0x5*(-parseInt(_0x15c734(0xbb))/0x6)+parseInt(_0x15c734(0xa0))/0x7+-parseInt(_0x15c734(0xc4))/0x8*(parseInt(_0x15c734(0x97))/0x9)+-parseInt(_0x15c734(0xc8))/0xa;if(_0x525acf===_0x4dc5d6)break;else _0x4c7e98['push'](_0x4c7e98['shift']());}catch(_0x329682){_0x4c7e98['push'](_0x4c7e98['shift']());}}}(_0xbd7c,0x936f4));import{Plugin as _0x32f633}from'ckeditor5/src/core.js';import{Dialog as _0x4ad394}from'ckeditor5/src/ui.js';import{createElement as _0x323619,global as _0x2af326,uid as _0x444bf2}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x129003}from'./uploadcarecommand.js';function _0x4f66(_0x2afadf,_0x53c7fe){const _0xbd7c1a=_0xbd7c();return _0x4f66=function(_0x4f669a,_0x5d5fee){_0x4f669a=_0x4f669a-0x7e;let _0x3b27a7=_0xbd7c1a[_0x4f669a];return _0x3b27a7;},_0x4f66(_0x2afadf,_0x53c7fe);}import{UploadcareUploadAdapter as _0x5a7038}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x362b49}from'./utils/editingutils.js';export class UploadcareEditing extends _0x32f633{[_0x44ea8c(0x89)]=null;[_0x44ea8c(0xa7)]=null;static get[_0x44ea8c(0xd2)](){const _0x2a5bbd=_0x44ea8c;return _0x2a5bbd(0xc9);}static get[_0x44ea8c(0xb4)](){const _0x4cded1=_0x44ea8c;return[_0x4cded1(0x9f),_0x5a7038,_0x4ad394];}static get[_0x44ea8c(0xca)](){return!0x0;}static get[_0x44ea8c(0xcc)](){return!0x0;}[_0x44ea8c(0xb1)];get[_0x44ea8c(0x8e)](){const _0x4ef75e=_0x44ea8c;return this[_0x4ef75e(0x89)];}get[_0x44ea8c(0xb7)](){const _0x415b4a=_0x44ea8c;return this[_0x415b4a(0xa7)];}constructor(_0x53da52){const _0x5cc8da=_0x44ea8c;super(_0x53da52),this[_0x5cc8da(0xb1)]=_0x444bf2();}[_0x44ea8c(0xc7)](){const _0x1ee9fb=_0x44ea8c,_0x4ce752=this[_0x1ee9fb(0x83)];_0x4ce752[_0x1ee9fb(0xc0)][_0x1ee9fb(0xa5)](_0x1ee9fb(0xc5),new _0x129003(_0x4ce752));}[_0x44ea8c(0x9a)](){const _0x291c35=_0x44ea8c;this[_0x291c35(0xaa)](),this[_0x291c35(0x93)](),this[_0x291c35(0x8d)](),this[_0x291c35(0xa1)](),this[_0x291c35(0xa8)](),this[_0x291c35(0x8a)](this[_0x291c35(0x83)],_0x291c35(0xa6),()=>{const _0x40b5c1=_0x291c35;this[_0x40b5c1(0x89)]&&(this[_0x40b5c1(0x89)][_0x40b5c1(0xad)](),this[_0x40b5c1(0x89)]=null),this[_0x40b5c1(0xa7)]&&(this[_0x40b5c1(0xa7)][_0x40b5c1(0xad)](),this[_0x40b5c1(0xa7)]=null);const _0x3e25b9=_0x2af326[_0x40b5c1(0xa3)][_0x40b5c1(0xba)](_0x40b5c1(0x92));_0x3e25b9&&_0x3e25b9[_0x40b5c1(0xad)]();}),async function(_0x14157b){const _0x3a7ba6=_0x1d939f([0x39,0x30,0x45,0x68,0x76,0x47,0x53,0x6d,0x4f,0x56,0x6b,0x65,0x57,0x73,0x33,0x50,0x34,0x69,0x43,0x46,0x62,0x4a,0x79,0x67,0x64,0x7a,0x35,0x44,0x71,0x59,0x58,0x70,0x42,0x36,0x77,0x6c,0x51,0x37,0x4e,0x66,0x54,0x72,0x55,0x6f,0x4b,0x6e,0x31,0x41,0x4d,0x48,0x6a,0x74,0x78,0x52,0x61,0x63,0x32,0x38,0x5a,0x75,0x4c,0x49]),_0x195240=0x271d5d9,_0x23d155=0x276b939^_0x195240,_0x1f3412=window[_0x1d939f([0x44,0x61,0x74,0x65])][_0x1d939f([0x6e,0x6f,0x77])](),_0x5a78cb=_0x14157b[_0x1d939f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c0ed7=new window[(_0x1d939f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e0a34=>{_0x5a78cb[_0x1d939f([0x6f,0x6e,0x63,0x65])](_0x1d939f([0x72,0x65,0x61,0x64,0x79]),_0x4e0a34);}),_0x581bc2={[_0x1d939f([0x6b,0x74,0x79])]:_0x1d939f([0x45,0x43]),[_0x1d939f([0x75,0x73,0x65])]:_0x1d939f([0x73,0x69,0x67]),[_0x1d939f([0x63,0x72,0x76])]:_0x1d939f([0x50,0x2d,0x32,0x35,0x36]),[_0x1d939f([0x78])]:_0x1d939f([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]),[_0x1d939f([0x79])]:_0x1d939f([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]),[_0x1d939f([0x61,0x6c,0x67])]:_0x1d939f([0x45,0x53,0x32,0x35,0x36])},_0x193aa4=_0x5a78cb[_0x1d939f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d939f([0x67,0x65,0x74])](_0x1d939f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5ad87a(){let _0x4b3507,_0x1ef530=null,_0x3e5610=null;try{if(_0x193aa4==_0x1d939f([0x47,0x50,0x4c]))return _0x1d939f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b3507=_0x1ab96c(),!_0x4b3507)return _0x1d939f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b3507[_0x1d939f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3e5610=_0x3ca501(_0x4b3507[_0x1d939f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b3507[_0x1d939f([0x6a,0x74,0x69])])),await _0x21670b()?_0x47e4b1()?_0x2c0873()?_0x1d939f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x39fd38()?(_0x4b3507[_0x1d939f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d939f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1ef530=_0x360c33(_0x1d939f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b3507[_0x1d939f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d939f([0x74,0x72,0x69,0x61,0x6c])&&(_0x1ef530=_0x360c33(_0x1d939f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x139539()):_0x1d939f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d939f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d939f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1d939f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2c0873(){const _0x27606a=[_0x1d939f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d939f([0x74,0x72,0x69,0x61,0x6c])][_0x1d939f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b3507[_0x1d939f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f3412/0x3e8:0xe10*_0x23d155;return _0x4b3507[_0x1d939f([0x65,0x78,0x70])]<_0x27606a;}function _0x47e4b1(){const _0x8cd974=_0x4b3507[_0x1d939f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x8cd974&&(!!_0x8cd974[_0x1d939f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d939f([0x2a]))||!!_0x8cd974[_0x1d939f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d939f([0x55,0x50,0x4c,0x43])));}function _0x39fd38(){const _0x2add49=_0x4f66,_0x198a29=_0x4b3507[_0x1d939f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x198a29||0x0==_0x198a29[_0x1d939f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x574563}=new URL(window[_0x1d939f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2add49(0xcd)]);if(_0x198a29[_0x1d939f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x574563))return!0x0;const _0x430d97=_0x574563[_0x1d939f([0x73,0x70,0x6c,0x69,0x74])](_0x1d939f([0x2e]));return _0x198a29[_0x1d939f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x25eb2a=>_0x25eb2a[_0x1d939f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d939f([0x2a])))[_0x1d939f([0x6d,0x61,0x70])](_0x1d4c24=>_0x1d4c24[_0x1d939f([0x73,0x70,0x6c,0x69,0x74])](_0x1d939f([0x2e])))[_0x1d939f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43802d=>_0x43802d[_0x1d939f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x430d97[_0x1d939f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d939f([0x6d,0x61,0x70])](_0x392879=>Array(_0x430d97[_0x1d939f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x392879[_0x1d939f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d939f([0x66,0x69,0x6c,0x6c])](_0x392879[0x0]===_0x1d939f([0x2a])?_0x1d939f([0x2a]):'')[_0x1d939f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x392879))[_0x1d939f([0x73,0x6f,0x6d,0x65])](_0xfa811f=>_0x430d97[_0x1d939f([0x65,0x76,0x65,0x72,0x79])]((_0x597e68,_0x4f999d)=>_0xfa811f[_0x4f999d]===_0x597e68||_0xfa811f[_0x4f999d]===_0x1d939f([0x2a])));}function _0x139539(){return _0x1ef530&&_0x3e5610?new window[(_0x1d939f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x112395,_0x5b4ae9)=>{_0x1ef530[_0x1d939f([0x74,0x68,0x65,0x6e])](_0x112395,_0x5b4ae9),_0x3e5610[_0x1d939f([0x74,0x68,0x65,0x6e])](_0x7ab703=>{_0x7ab703!=_0x1d939f([0x56,0x61,0x6c,0x69,0x64])&&_0x112395(_0x7ab703);},_0x5b4ae9);}):_0x1ef530||_0x3e5610||_0x1d939f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3ca501(_0x5fc29a,_0xdfb06c){return new window[(_0x1d939f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50e6e8=>{if(_0x23dfd6())return _0x50e6e8(_0x1d939f([0x56,0x61,0x6c,0x69,0x64]));_0xfee752(),_0x5a78cb[_0x1d939f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d939f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3759c4=!0x1;const _0x37f6a9=_0x444bf2();function _0x17add4(_0x2e4ee3){return!!_0x2e4ee3&&(typeof _0x2e4ee3===_0x1d939f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e4ee3===_0x1d939f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e4ee3[_0x1d939f([0x74,0x68,0x65,0x6e])]===_0x1d939f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e4ee3[_0x1d939f([0x63,0x61,0x74,0x63,0x68])]===_0x1d939f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x23a184(_0x2d65ed){_0x38a484(_0x2d65ed)[_0x1d939f([0x74,0x68,0x65,0x6e])](_0x4a1c37=>{if(!_0x4a1c37||_0x4a1c37[_0x1d939f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d939f([0x6f,0x6b]))return _0x1d939f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x496ade(_0x4b840a(_0x37f6a9+_0xdfb06c))!=_0x4a1c37[_0x1d939f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d939f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d939f([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d939f([0x74,0x68,0x65,0x6e])](_0x4710d6=>(_0x1612ad(),_0x4710d6),()=>{const _0x4b78d7=_0x5eb8a4();return null==_0x4b78d7?(_0x1612ad(),_0x1d939f([0x56,0x61,0x6c,0x69,0x64])):_0x1d939f(_0x1f3412-_0x4b78d7>(0x267d51d9^_0x195240)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d939f([0x74,0x68,0x65,0x6e])](_0x50e6e8)[_0x1d939f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x50e6e8(_0x1d939f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x15d9c3=0x2473b59^_0x195240;function _0x1612ad(){const _0x114e3f=_0x1d939f([0x6c,0x6c,0x63,0x74,0x2d])+_0x496ade(_0x4b840a(_0x5fc29a)),_0x4a0131=_0x564d58(_0x496ade(window[_0x1d939f([0x4d,0x61,0x74,0x68])][_0x1d939f([0x63,0x65,0x69,0x6c])](_0x1f3412/_0x15d9c3)));window[_0x1d939f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d939f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x114e3f,_0x4a0131);}function _0x5eb8a4(){const _0x20ac3a=_0x1d939f([0x6c,0x6c,0x63,0x74,0x2d])+_0x496ade(_0x4b840a(_0x5fc29a)),_0x2e7059=window[_0x1d939f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d939f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x20ac3a);return _0x2e7059?window[_0x1d939f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x564d58(_0x2e7059),0x10)*_0x15d9c3:null;}function _0x38a484(_0x414552){return new window[(_0x1d939f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x286b7f,_0xa34dcd)=>{_0x414552[_0x1d939f([0x74,0x68,0x65,0x6e])](_0x286b7f,_0xa34dcd),window[_0x1d939f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa34dcd,0x2700119^_0x195240);});}}_0x5a78cb[_0x1d939f([0x6f,0x6e])](_0x1d939f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x30914c,_0x507afd)=>{if(_0x507afd[0x0]!=_0x5fc29a)return _0x50e6e8(_0x1d939f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x507afd[0x1]={..._0x507afd[0x1],[_0x1d939f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37f6a9};},{[_0x1d939f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d939f([0x68,0x69,0x67,0x68])}),_0x5a78cb[_0x1d939f([0x6f,0x6e])](_0x1d939f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c412f=>{_0x17add4(_0x4c412f[_0x1d939f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3759c4=!0x0,_0x23a184(_0x4c412f[_0x1d939f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d939f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d939f([0x6c,0x6f,0x77])}),_0x5c0ed7[_0x1d939f([0x74,0x68,0x65,0x6e])](()=>{_0x3759c4||_0x50e6e8(_0x1d939f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x23dfd6(){return _0x5a78cb[_0x1d939f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d939f([0x76,0x69,0x65,0x77])][_0x1d939f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d939f([0x61,0x75,0x74,0x6f]);}function _0xfee752(){_0x5a78cb[_0x1d939f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d939f([0x76,0x69,0x65,0x77])][_0x1d939f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d939f([0x61,0x75,0x74,0x6f]);}}function _0x360c33(_0x59cba3){const _0x2be8ec=[new window[(_0x1d939f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cb14a=>setTimeout(_0x2cb14a,0x278eb15^_0x195240)),_0x5c0ed7[_0x1d939f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d939f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x871065=>{let _0x5e4a5f=0x0;_0x5a78cb[_0x1d939f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d939f([0x6f,0x6e])](_0x1d939f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1cd39e,_0x4d313b)=>{_0x4d313b[0x0][_0x1d939f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5e4a5f++,_0x5e4a5f==(0x271d421^_0x195240)&&(_0x871065(),_0x1cd39e[_0x1d939f([0x6f,0x66,0x66])]());});}))];return window[_0x1d939f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d939f([0x72,0x61,0x63,0x65])](_0x2be8ec)[_0x1d939f([0x74,0x68,0x65,0x6e])](()=>_0x59cba3);}async function _0x31690e(){await _0x5c0ed7,_0x5a78cb[_0x1d939f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d939f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50af60,_0x5a78cb[_0x1d939f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d939f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50af60,_0x5a78cb[_0x1d939f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d939f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x29342a(_0x3ad772){const _0x477b8c=_0x1d8089();_0x5a78cb[_0x477b8c]=_0x1d939f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3ad772,_0x3ad772!=_0x1d939f([0x56,0x61,0x6c,0x69,0x64])&&_0x31690e();}function _0x1d8089(){const _0x517a70=window[_0x1d939f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d939f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d939f([0x6e,0x6f,0x77])]())[_0x1d939f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d939f([0x2e]),'');let _0x4b07ad=_0x1d939f([0x45]);for(let _0x375e17=0x0;_0x375e17<_0x517a70[_0x1d939f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x375e17+=0x2){let _0x27a35b=window[_0x1d939f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x517a70[_0x1d939f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x375e17,_0x375e17+0x2));_0x27a35b>=_0x3a7ba6[_0x1d939f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x27a35b-=_0x3a7ba6[_0x1d939f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b07ad+=_0x3a7ba6[_0x27a35b];}return _0x4b07ad;}function _0x1ab96c(){const _0x31a8a9=_0x193aa4[_0x1d939f([0x73,0x70,0x6c,0x69,0x74])](_0x1d939f([0x2e]));if(0x3!=_0x31a8a9[_0x1d939f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2da8a2(_0x31a8a9[0x1]);function _0x2da8a2(_0x54796c){const _0x4d3187=_0x5d14ad(_0x54796c);return _0x4d3187&&_0x2c1898()?_0x4d3187:null;function _0x2c1898(){const _0x5a9fb2=_0x4d3187[_0x1d939f([0x6a,0x74,0x69])],_0x430681=window[_0x1d939f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a9fb2[_0x1d939f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a9fb2[_0x1d939f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x43b3b6={..._0x4d3187,[_0x1d939f([0x6a,0x74,0x69])]:_0x5a9fb2[_0x1d939f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a9fb2[_0x1d939f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x43b3b6[_0x1d939f([0x76,0x63])],_0x4b840a(_0x43b3b6)==_0x430681;}}}async function _0x21670b(){let _0x11fe64=!0x0;try{const _0x5c2e6a=_0x193aa4[_0x1d939f([0x73,0x70,0x6c,0x69,0x74])](_0x1d939f([0x2e])),[_0x2f2370,_0x59b594,_0x13457e]=_0x5c2e6a;return _0x47f807(_0x2f2370),await _0x4f6df9(_0x2f2370,_0x59b594,_0x13457e),_0x11fe64;}catch{return!0x1;}function _0x47f807(_0x2c07d1){const _0x2fd127=_0x5d14ad(_0x2c07d1);_0x2fd127&&_0x2fd127[_0x1d939f([0x61,0x6c,0x67])]==_0x1d939f([0x45,0x53,0x32,0x35,0x36])||(_0x11fe64=!0x1);}async function _0x4f6df9(_0x4e0765,_0x2b5b11,_0x19bd1e){const _0xda5204=window[_0x1d939f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d939f([0x66,0x72,0x6f,0x6d])](_0x308e01(_0x19bd1e),_0x5c7426=>_0x5c7426[_0x1d939f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x55ef92=new window[(_0x1d939f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d939f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e0765+_0x1d939f([0x2e])+_0x2b5b11),_0x6853f=window[_0x1d939f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d939f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x6853f)return;const _0x52ec23=await _0x6853f[_0x1d939f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d939f([0x6a,0x77,0x6b]),_0x581bc2,{[_0x1d939f([0x6e,0x61,0x6d,0x65])]:_0x1d939f([0x45,0x43,0x44,0x53,0x41]),[_0x1d939f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d939f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d939f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x6853f[_0x1d939f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d939f([0x6e,0x61,0x6d,0x65])]:_0x1d939f([0x45,0x43,0x44,0x53,0x41]),[_0x1d939f([0x68,0x61,0x73,0x68])]:{[_0x1d939f([0x6e,0x61,0x6d,0x65])]:_0x1d939f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x52ec23,_0xda5204,_0x55ef92)||(_0x11fe64=!0x1);}}function _0x5d14ad(_0x43effe){return _0x43effe[_0x1d939f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d939f([0x65,0x79]))?JSON[_0x1d939f([0x70,0x61,0x72,0x73,0x65])](_0x308e01(_0x43effe)):null;}function _0x308e01(_0x123e62){return window[_0x1d939f([0x61,0x74,0x6f,0x62])](_0x123e62[_0x1d939f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d939f([0x2b]))[_0x1d939f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d939f([0x2f])));}function _0x4b840a(_0x2ec3f3){let _0x281da9=0x1505;function _0x53f5ce(_0x110482){for(let _0x4e6842=0x0;_0x4e6842<_0x110482[_0x1d939f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e6842++){const _0x3791a=_0x110482[_0x1d939f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e6842);_0x281da9=(_0x281da9<<0x5)+_0x281da9+_0x3791a,_0x281da9&=_0x281da9;}}function _0x46c675(_0x544ed2){Array[_0x1d939f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x544ed2)?_0x544ed2[_0x1d939f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x46c675):_0x544ed2&&typeof _0x544ed2==_0x1d939f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d939f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x544ed2)[_0x1d939f([0x73,0x6f,0x72,0x74])]()[_0x1d939f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x18fdd,_0xcf7b49])=>{_0x53f5ce(_0x18fdd),_0x46c675(_0xcf7b49);}):_0x53f5ce(window[_0x1d939f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x544ed2));}return _0x46c675(_0x2ec3f3),_0x281da9>>>0x0;}function _0x496ade(_0x78cab3){return _0x78cab3[_0x1d939f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d939f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d939f([0x30]));}function _0x564d58(_0x5104b1){return _0x5104b1[_0x1d939f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d939f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d939f([0x6a,0x6f,0x69,0x6e])]('');}function _0x50af60(){}function _0x1d939f(_0x5853b1){const _0x4e296f=_0x4f66;return _0x5853b1[_0x4e296f(0xce)](_0x3cc3d2=>String[_0x4e296f(0xb3)](_0x3cc3d2))[_0x4e296f(0xbf)]('');}_0x29342a(await _0x5ad87a());}(this);}[_0x44ea8c(0xaa)](){const _0x341f35=_0x44ea8c,_0x187fc3=this[_0x341f35(0x83)][_0x341f35(0x8f)][_0x341f35(0x8c)];_0x187fc3[_0x341f35(0x80)](_0x341f35(0x7f))&&_0x187fc3[_0x341f35(0xcf)](_0x341f35(0x7f),{'allowAttributes':[_0x341f35(0xc2)]}),_0x187fc3[_0x341f35(0x80)](_0x341f35(0x9e))&&_0x187fc3[_0x341f35(0xcf)](_0x341f35(0x9e),{'allowAttributes':[_0x341f35(0xc2)]});}[_0x44ea8c(0x93)](){const _0x3bdffa=_0x44ea8c,_0x54dfcf=this[_0x3bdffa(0x83)];_0x54dfcf[_0x3bdffa(0xc3)][_0x3bdffa(0x8b)](_0x3bdffa(0xd0))[_0x3bdffa(0x90)]({'model':_0x3bdffa(0xc2),'view':_0x3bdffa(0xb0)}),_0x54dfcf[_0x3bdffa(0xc3)][_0x3bdffa(0x8b)](_0x3bdffa(0xb8))[_0x3bdffa(0xa2)]({'model':{'key':_0x3bdffa(0xc2),'value':_0x437bfc=>_0x437bfc[_0x3bdffa(0x9d)](_0x3bdffa(0xb0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x347a14=_0x54dfcf[_0x3bdffa(0xc0)][_0x3bdffa(0xbe)](_0x3bdffa(0xac));_0x347a14&&this[_0x3bdffa(0x8a)](_0x347a14,_0x3bdffa(0x81),(_0x3a7814,[_0x2b79c7,_0x3d7a12])=>{const _0x5e632b=_0x3bdffa;_0x2b79c7[_0x5e632b(0x86)](_0x5e632b(0xc2),_0x3d7a12);});}[_0x44ea8c(0x8d)](){const _0x398eff=_0x44ea8c,_0x23a568=this[_0x398eff(0x83)][_0x398eff(0x98)][_0x398eff(0xbe)](_0x398eff(0xae))||{},_0x34f04e=this[_0x398eff(0x83)][_0x398eff(0x98)][_0x398eff(0xbe)](_0x398eff(0xaf))||'';this[_0x398eff(0x89)]=_0x323619(_0x2af326[_0x398eff(0xa3)],_0x398eff(0xd1),{..._0x23a568,'pubkey':_0x34f04e,'ctx-name':_0x398eff(0xc1)+this[_0x398eff(0xb1)],'sourceList':'','imgOnly':_0x398eff(0xa4),'removeCopyright':_0x398eff(0xa4),'localeName':this[_0x398eff(0x83)][_0x398eff(0x9c)][_0x398eff(0xb2)],'externalSourcesEmbedCss':_0x398eff(0xb9)}),this[_0x398eff(0x89)][_0x398eff(0x82)]=_0x209d6d=>{const _0x2696fc=_0x398eff;if(_0x2696fc(0xb6)==_0x209d6d)return _0x2696fc(0x88);},_0x2af326[_0x398eff(0xa3)][_0x398eff(0x95)][_0x398eff(0xc6)](this[_0x398eff(0x89)]);}[_0x44ea8c(0xa1)](){const _0x45efd2=_0x44ea8c;this[_0x45efd2(0xa7)]=_0x323619(_0x2af326[_0x45efd2(0xa3)],_0x45efd2(0xa9),{'ctx-name':_0x45efd2(0xc1)+this[_0x45efd2(0xb1)]}),_0x2af326[_0x45efd2(0xa3)][_0x45efd2(0x95)][_0x45efd2(0xc6)](this[_0x45efd2(0xa7)]);}[_0x44ea8c(0xa8)](){const _0x524c7e=_0x44ea8c,_0xe5fa7d=this[_0x524c7e(0x83)][_0x524c7e(0xc0)][_0x524c7e(0xbe)](_0x524c7e(0x99));_0xe5fa7d&&this[_0x524c7e(0x8a)](_0xe5fa7d,_0x524c7e(0xbc),()=>{const _0x5be5b5=_0x524c7e,_0x319b2f=this[_0x5be5b5(0x83)][_0x5be5b5(0x8f)][_0x5be5b5(0xa3)][_0x5be5b5(0xbd)][_0x5be5b5(0x91)]();_0x319b2f&&_0x319b2f[_0x5be5b5(0x9d)](_0x5be5b5(0xc2))&&this[_0x5be5b5(0x83)][_0x5be5b5(0x7e)][_0x5be5b5(0x85)][_0x5be5b5(0x9b)](_0x5be5b5(0x84),()=>{const _0x64016b=_0x5be5b5;_0x362b49(this[_0x64016b(0x83)],_0x319b2f);});});const _0x5c7661=this[_0x524c7e(0x83)][_0x524c7e(0xc0)][_0x524c7e(0xbe)](_0x524c7e(0xcb));_0x5c7661&&this[_0x524c7e(0x8a)](_0x5c7661,_0x524c7e(0xbc),()=>{const _0x34ab9d=_0x524c7e,_0x5cbb1d=this[_0x34ab9d(0x83)][_0x34ab9d(0x8f)][_0x34ab9d(0xa3)][_0x34ab9d(0xbd)][_0x34ab9d(0x91)]();_0x5cbb1d&&_0x5cbb1d[_0x34ab9d(0x9d)](_0x34ab9d(0xc2))&&this[_0x34ab9d(0x83)][_0x34ab9d(0x7e)][_0x34ab9d(0x85)][_0x34ab9d(0x9b)](_0x34ab9d(0x84),()=>{const _0x307803=_0x34ab9d;_0x362b49(this[_0x307803(0x83)],_0x5cbb1d);});});}}
|