@ckeditor/ckeditor5-uploadcare 46.0.1-alpha.11 → 46.0.1-alpha.13
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 _0x29a0bc,Command as _0x10354e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x56d4cd,IconGooglePhotos as _0x21148e,IconGoogleDrive as _0x1047d0,IconFacebook as _0x453530,IconDropbox as _0x55d99b,IconUploadcareLink as _0x3f9dc5,IconUploadcareImageUpload as _0x2711cc,IconError as _0xd502a6,IconUploadcareImageEdit as _0x3d6c5f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1d4a1e,MenuBarMenuListItemButtonView as _0x394a09,View as _0x2109bd,FocusCycler as _0x21b226,Dialog as _0x1c0e49,DialogViewPosition as _0x190573,SpinnerView as _0x2395ff,IconView as _0x1b8027,Notification as _0x19a146}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x41409c,DomEmitterMixin as _0x398419,global as _0x1b1233,getAncestors as _0x4c58cc,ObservableMixin as _0x3d136f,uid as _0x3fb264,createElement as _0x26a26b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x348d39}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x338941,info as _0x4c11db}from'@uploadcare/upload-client';import*as _0x2b4456 from'@uploadcare/file-uploader';var i=function(_0x45ab1d){return _0x45ab1d['Local']='local',_0x45ab1d['URL']='url',_0x45ab1d['Dropbox']='dropbox',_0x45ab1d['GDrive']='gdrive',_0x45ab1d['Facebook']='facebook',_0x45ab1d['GPhotos']='gphotos',_0x45ab1d['OneDrive']='onedrive',_0x45ab1d;}({});function _(_0x28b4e6,_0x1c6753,_0x11fc1b){const t=_0x28b4e6['t'],_0xcaad7a=_0x28b4e6['t'];switch(_0x1c6753){case i['Local']:return{'text':_0xcaad7a('Insert'===_0x11fc1b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0xcaad7a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x11fc1b?_0xcaad7a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0xcaad7a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x11fc1b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x11fc1b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x11fc1b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x11fc1b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x11fc1b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x1c6753;}}class e extends _0x29a0bc{['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 _0x28f148=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x556c45;for(const _0x399209 in _0x28f148){const _0x404860=_0x399209,_0x1707b8=_0x28f148[_0x404860];if('uploadcareLicenseKeyValid'==_0x1707b8||'uploadcareLicenseKeyInvalid'==_0x1707b8||'uploadcareLicenseKeyExpired'==_0x1707b8||'uploadcareLicenseKeyDomainLimit'==_0x1707b8||'uploadcareLicenseKeyNotAllowed'==_0x1707b8||'uploadcareLicenseKeyEvaluationLimit'==_0x1707b8||'uploadcareLicenseKeyTrialLimit'==_0x1707b8||'uploadcareLicenseKeyUsageLimit'==_0x1707b8){delete _0x28f148[_0x404860],_0x556c45=_0x1707b8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x556c45&&_0x28f148['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x556c45&&_0x28f148['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x556c45&&_0x28f148['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x556c45&&_0x28f148['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x556c45&&_0x28f148['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x556c45&&_0x28f148['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x556c45&&_0x28f148['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x2cc2ab}=this,_0x1f16fc=_0x2cc2ab['commands']['get']('uploadcare');if(!_0x1f16fc)return;const _0x12a3a5=this['_normalizeConfigSourceList'](_0x2cc2ab['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3f2ba4,_0x6ea21e)=>{const _0x178575=this['_getIntegrationKey'](_0x6ea21e['type']);return _0x3f2ba4[_0x178575]||(_0x3f2ba4[_0x178575]=[]),_0x3f2ba4[_0x178575]['push'](_0x6ea21e),_0x3f2ba4;},{});_0x2cc2ab['plugins']['has']('ImageInsertUI')&&_0x2cc2ab['commands']['get']('uploadcare')&&Object['entries'](_0x12a3a5)['forEach'](([_0x2cd106,_0x558ce9])=>{_0x2cc2ab['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2cd106,'observable':()=>_0x1f16fc,'buttonViewCreator':()=>this['_createToolbarButton'](_0x558ce9),'formViewCreator':()=>this['_createDropdownButtons'](_0x558ce9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x558ce9),'override':'assetManager'!==_0x2cd106});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x36a299){const {locale:_0x3bedd8}=this['editor'];return _0x36a299['map'](_0x56b914=>{const _0x20c260=_(_0x3bedd8,_0x56b914,'Insert');switch(_0x56b914){case i['Local']:return{'icon':_0x2711cc,'type':i['Local'],..._0x20c260};case i['URL']:return{'icon':_0x3f9dc5,'type':i['URL'],..._0x20c260};case i['Dropbox']:return{'icon':_0x55d99b,'type':i['Dropbox'],..._0x20c260};case i['Facebook']:return{'icon':_0x453530,'type':i['Facebook'],..._0x20c260};case i['GDrive']:return{'icon':_0x1047d0,'type':i['GDrive'],..._0x20c260};case i['GPhotos']:return{'icon':_0x21148e,'type':i['GPhotos'],..._0x20c260};case i['OneDrive']:return{'icon':_0x56d4cd,'type':i['OneDrive'],..._0x20c260};}});}['_getIntegrationKey'](_0x2c6177){switch(_0x2c6177){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x682459,_0x91680a){const _0x4555f8=this['editor'],_0x191933=new _0x682459(_0x4555f8['locale']),_0x544f69=_0x4555f8['commands']['get']('uploadcare');return _0x191933['bind']('isEnabled')['to'](_0x544f69),_0x191933['on']('execute',()=>{_0x544f69['execute'](_0x91680a);}),_0x191933;}['_createToolbarButton'](_0x4bf051){const {locale:_0x585f25}=this['editor'],_0x4f995c=this['editor']['plugins']['get']('ImageInsertUI'),_0x4aa081=_0x4bf051[0x0],_0xfa5234=this['_createButton'](_0x1d4a1e,_0x4aa081['type']);return _0xfa5234['icon']=_0x4aa081['icon'],_0xfa5234['bind']('label')['to'](_0x4f995c,'isImageSelected',_0x34474c=>_(_0x585f25,_0x4aa081['type'],_0x34474c?'Replace':'Insert')['text']),_0xfa5234['tooltip']=!0x0,_0xfa5234;}['_createDropdownButtons'](_0x10707a){const {locale:_0xb5f27a}=this['editor'],_0x3361d9=this['editor']['plugins']['get']('ImageInsertUI');return _0x10707a['map'](_0x398f8b=>{const _0x38c8f0=this['_createButton'](_0x1d4a1e,_0x398f8b['type']);return _0x38c8f0['withText']=!0x0,_0x38c8f0['icon']=_0x398f8b['icon'],_0x38c8f0['bind']('label')['to'](_0x3361d9,'isImageSelected',_0x4397fd=>_(_0xb5f27a,_0x398f8b['type'],_0x4397fd?'Replace':'Insert')['text']),_0x38c8f0;});}['_createMenuBarButtons'](_0xd0d43c){return _0xd0d43c['map'](_0xc1e74d=>{const _0x5eee50=this['_createButton'](_0x394a09,_0xc1e74d['type']);return _0x5eee50['icon']=_0xc1e74d['icon'],_0x5eee50['label']=_0xc1e74d['shortText'],_0x5eee50;});}}class F extends _0x2109bd{['focusTracker'];['focusCycler'];constructor(_0x559273){super(_0x559273),this['focusTracker']=new _0x41409c(),this['focusCycler']=new _0x21b226({'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(_0xe99bdb,_0x33b7c6){super(_0xe99bdb),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-'+_0x33b7c6}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x2f03e9,_0x57282f){const _0x41e189=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2dcc2b=>_0x2dcc2b<=_0x57282f)['map'](_0x277d12=>_0x2f03e9['replace'](/\/$/,'')+'/-/resize/'+_0x277d12+'x/\x20'+_0x277d12+'w');return{'imageFallbackUrl':_0x2f03e9,'imageSources':[{'srcset':_0x41e189['join'](',\x20'),'sizes':'(max-width:\x20'+_0x57282f+'px)\x20100vw,\x20'+_0x57282f+'px','type':'image/webp'}]};}function C(_0x118ce1,_0x699b89,_0x30d09e){const _0x43177f=_0x118ce1['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x43177f?parseInt(_0x43177f[0x1],0xa):_0x699b89,'height':_0x43177f?parseInt(_0x43177f[0x2],0xa):_0x30d09e};}function p(_0x25a6cc,_0x2e531f){const _0x5d8414=new(_0x398419())(),_0x1be97e=_0x25a6cc['plugins']['get']('ImageUtils'),_0x31e2a0=_0x25a6cc['editing']['mapper']['toViewElement'](_0x2e531f),_0x1c392f=_0x1be97e['findViewImgElement'](_0x31e2a0),_0x3fa47e=_0x25a6cc['editing']['view']['domConverter']['viewToDom'](_0x1c392f),_0x3470b3=_0x2e531f['getAttribute']('width'),_0x3cb857=_0x2e531f['getAttribute']('height'),_0x3e261d='image-processing';_0x25a6cc['editing']['view']['change'](_0x34ad91=>{_0x34ad91['addClass'](_0x3e261d,_0x31e2a0),_0x34ad91['setStyle']('aspect-ratio',_0x3470b3+'/'+_0x3cb857,_0x1c392f);}),_0x5d8414['listenTo'](_0x3fa47e,'load',()=>{_0x5d8414['stopListening'](_0x3fa47e,'load'),_0x25a6cc['editing']['view']['change'](_0x42d678=>{_0x42d678['removeClass'](_0x3e261d,_0x31e2a0),_0x42d678['removeStyle']('aspect-ratio',_0x1c392f);});});}function G(_0x55bb28){if(Array['isArray'](_0x55bb28)){const _0x2c27b8=_0x55bb28['map'](G);return _0xa52dad=>_0x2c27b8['some'](_0x1b4c55=>_0x1b4c55(_0xa52dad));}if('origin'==_0x55bb28){const _0x51e698=_0x1b1233['window']['location']['origin'];return _0x1ce64a=>new URL(_0x1ce64a,_0x1b1233['document']['baseURI'])['origin']==_0x51e698;}return'function'==typeof _0x55bb28?_0x55bb28:_0x55bb28 instanceof RegExp?_0x25a7ec=>!(!_0x25a7ec['match'](_0x55bb28)&&!_0x25a7ec['replace'](/^https?:\/\//,'')['match'](_0x55bb28)):()=>!0x1;}function S(_0x8f7409,_0x106e8f){return _0x4c58cc(_0x8f7409['target'])['includes'](_0x106e8f);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x3d136f(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2e299f,_0x5e979a,_0x5df51a){super(),this['_editor']=_0x2e299f,this['_editing']=_0x5e979a,this['_dialog']=_0x2e299f['plugins']['get'](_0x1c0e49),this['_api']=_0x5e979a['ctxElement']['getAPI'](),this['_type']=_0x5df51a,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:_0x21b66c,model:_0x47b40e}=this['_editor'],_0x540104=_0x47b40e['document']['selection']['getSelectedElement'](),_0x3285cf=_0x540104&&(_0x540104['is']('element','imageBlock')||_0x540104['is']('element','imageInline'));this['_formView']=new x(_0x21b66c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x2711cc,'title':_(_0x21b66c,this['_type'],_0x3285cf?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x190573['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4b4b67=>!S(_0x4b4b67,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x44fc97}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x4990cf=>{const _0x16cea4=_0x44fc97['length'];for(const _0x2edd48 of _0x44fc97){const _0x36dc94=_0x2edd48===_0x44fc97[_0x16cea4-0x1],{cdnUrl:_0x402fa2,fileInfo:_0x27e8b0}=_0x2edd48;if(!_0x402fa2||!_0x27e8b0)continue;const {width:_0x5bdfbf,height:_0x173315}=_0x27e8b0['imageInfo'],_0x56da44=C(_0x402fa2,_0x5bdfbf,_0x173315),_0x2ad445=k(_0x402fa2,_0x56da44['width']),_0x3ceba5={'id':_0x27e8b0['uuid'],'type':'image','attributes':{'imageDimension':_0x56da44,..._0x2ad445}};this['_insertAsset'](_0x3ceba5,_0x36dc94,_0x4990cf);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1afdfd=>{'idle'===_0x1afdfd['detail']['status']&&!_0x1afdfd['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x506be3,_0x370ee0,_0x1cd864){const _0x3f8df7=this['_editor']['model']['document']['selection'],_0x54a44a=_0x3f8df7['getSelectedElement'](),_0xd3de55=!(!_0x54a44a||!_0x54a44a['is']('element','imageInline'));_0x1cd864['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x506be3,_0xd3de55),_0x370ee0||_0x1cd864['setSelection'](_0x3f8df7['getLastPosition']());}['_insertImage'](_0x777e0a,_0x4aecd4){const _0x518f39=this['_editor'],{imageDimension:_0x3ba11d,imageFallbackUrl:_0x402eec,imageSources:_0x3523b8}=_0x777e0a['attributes'];_0x518f39['execute']('insertImage',{'imageType':_0x4aecd4?'imageInline':null,'source':{'uploadcareImageId':_0x777e0a['id'],'src':_0x402eec,'sources':_0x3523b8,..._0x3ba11d}});}}class w extends _0x10354e{['_editing'];['_controller']=null;static get['requires'](){return[_0x1c0e49,o];}constructor(_0x4535b4){super(_0x4535b4),this['_editing']=_0x4535b4['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0xd8fc60){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0xd8fc60);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x51b326,publicKey:_0x20152b,signal:_0x1892fc,onProgress:_0x47d237}){return _0x338941(_0x51b326,{'publicKey':_0x20152b,'store':'auto','signal':_0x1892fc,'onProgress':_0x47d237});}static['getInfo'](_0x4c9fee,_0x47a509){return _0x4c11db(_0x4c9fee,_0x47a509);}}class f extends _0x29a0bc{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x348d39,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1f1229=this['editor'];if(!!!_0x1f1229['config']['get']('uploadcare'))return;_0x1f1229['plugins']['get'](_0x348d39)['createUploadAdapter']=_0x40a11c=>new A(_0x40a11c,_0x1f1229),_0x1f1229['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x32e050,{imageElement:_0x45a3ed,data:_0x3f4680})=>{_0x1f1229['model']['change'](_0x58494e=>{_0x58494e['setAttribute']('uploadcareImageId',_0x3f4680['uploadcareImageId'],_0x45a3ed);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xe813b1,_0x22be7a){this['loader']=_0xe813b1,this['editor']=_0x22be7a,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5bb9cd=this['editor']['config']['get']('uploadcare.pubkey'),_0x3d9d47=await this['loader']['file'];return j['upload']({'file':_0x3d9d47,'publicKey':_0x5bb9cd,'signal':this['controller']['signal'],'onProgress':_0x3917d7=>{_0x3917d7&&_0x3917d7['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x3917d7['value']);}})['then'](async _0x2cf80f=>{const {imageFallbackUrl:_0x9b0d2,imageSources:_0x4f9fbb}=k(_0x2cf80f['cdnUrl'],_0x2cf80f['imageInfo']['width']);return{'uploadcareImageId':_0x2cf80f['uuid'],'default':_0x9b0d2,'sources':_0x4f9fbb};})['catch'](()=>{const _0x3b3e22=t('Cannot\x20upload\x20file:')+('\x20'+_0x3d9d47['name']+'.');return Promise['reject'](_0x3b3e22);});}['abort'](){this['controller']['abort']();}}class o extends _0x29a0bc{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1c0e49];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1d4eba){super(_0x1d4eba),this['ucContextId']=_0x3fb264();}['init'](){const _0x3777f7=this['editor'];_0x3777f7['commands']['add']('uploadcare',new w(_0x3777f7));}['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 _0x955525=_0x1b1233['document']['querySelector']('input[uploadcare-file-input]');_0x955525&&_0x955525['remove']();}),async function(_0x25f729){const _0x2d3d28=_0x2ccb2d([0x38,0x31,0x34,0x75,0x58,0x70,0x46,0x36,0x76,0x4b,0x66,0x59,0x72,0x74,0x57,0x4f,0x41,0x5a,0x4a,0x33,0x43,0x64,0x6e,0x50,0x52,0x69,0x49,0x6d,0x77,0x35,0x4e,0x30,0x6b,0x42,0x65,0x37,0x7a,0x51,0x53,0x62,0x78,0x56,0x45,0x71,0x44,0x61,0x32,0x68,0x63,0x6a,0x6c,0x47,0x55,0x6f,0x54,0x39,0x48,0x73,0x79,0x4d,0x4c,0x67]),_0x30b15f=0x4bda1088,_0x6291b=0x4bdd7f68^_0x30b15f,_0x5f17b4=window[_0x2ccb2d([0x44,0x61,0x74,0x65])][_0x2ccb2d([0x6e,0x6f,0x77])](),_0x3ae547=_0x25f729[_0x2ccb2d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x21843c=new window[(_0x2ccb2d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e54e6=>{_0x3ae547[_0x2ccb2d([0x6f,0x6e,0x63,0x65])](_0x2ccb2d([0x72,0x65,0x61,0x64,0x79]),_0x3e54e6);}),_0x340c9e={[_0x2ccb2d([0x6b,0x74,0x79])]:_0x2ccb2d([0x45,0x43]),[_0x2ccb2d([0x75,0x73,0x65])]:_0x2ccb2d([0x73,0x69,0x67]),[_0x2ccb2d([0x63,0x72,0x76])]:_0x2ccb2d([0x50,0x2d,0x32,0x35,0x36]),[_0x2ccb2d([0x78])]:_0x2ccb2d([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]),[_0x2ccb2d([0x79])]:_0x2ccb2d([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]),[_0x2ccb2d([0x61,0x6c,0x67])]:_0x2ccb2d([0x45,0x53,0x32,0x35,0x36])},_0x3a2c39=_0x3ae547[_0x2ccb2d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2ccb2d([0x67,0x65,0x74])](_0x2ccb2d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47dc4e(){let _0x1ba408,_0x5390f2=null,_0x3a7ff2=null;try{if(_0x3a2c39==_0x2ccb2d([0x47,0x50,0x4c]))return _0x2ccb2d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1ba408=_0x44a93c(),!_0x1ba408)return _0x2ccb2d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1ba408[_0x2ccb2d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3a7ff2=_0x17d93a(_0x1ba408[_0x2ccb2d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1ba408[_0x2ccb2d([0x6a,0x74,0x69])])),await _0x4aa14d()?_0x4f1b45()?_0x4bd87b()?_0x2ccb2d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x38a3b7()?(_0x1ba408[_0x2ccb2d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ccb2d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5390f2=_0x1d81c0(_0x2ccb2d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1ba408[_0x2ccb2d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ccb2d([0x74,0x72,0x69,0x61,0x6c])&&(_0x5390f2=_0x1d81c0(_0x2ccb2d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x379447()):_0x2ccb2d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2ccb2d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2ccb2d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2ccb2d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4bd87b(){const _0x4f7481=[_0x2ccb2d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2ccb2d([0x74,0x72,0x69,0x61,0x6c])][_0x2ccb2d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ba408[_0x2ccb2d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f17b4/0x3e8:0xe10*_0x6291b;return _0x1ba408[_0x2ccb2d([0x65,0x78,0x70])]<_0x4f7481;}function _0x4f1b45(){const _0x2f6be9=_0x1ba408[_0x2ccb2d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2f6be9&&(!!_0x2f6be9[_0x2ccb2d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ccb2d([0x2a]))||!!_0x2f6be9[_0x2ccb2d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ccb2d([0x55,0x50,0x4c,0x43])));}function _0x38a3b7(){const _0x2d2411=_0x1ba408[_0x2ccb2d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2d2411||0x0==_0x2d2411[_0x2ccb2d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa7f131}=new URL(window[_0x2ccb2d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2d2411[_0x2ccb2d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa7f131))return!0x0;const _0x9ed4f7=_0xa7f131[_0x2ccb2d([0x73,0x70,0x6c,0x69,0x74])](_0x2ccb2d([0x2e]));return _0x2d2411[_0x2ccb2d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d3d12=>_0x4d3d12[_0x2ccb2d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ccb2d([0x2a])))[_0x2ccb2d([0x6d,0x61,0x70])](_0x4d9826=>_0x4d9826[_0x2ccb2d([0x73,0x70,0x6c,0x69,0x74])](_0x2ccb2d([0x2e])))[_0x2ccb2d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35732b=>_0x35732b[_0x2ccb2d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x9ed4f7[_0x2ccb2d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ccb2d([0x6d,0x61,0x70])](_0x5b048f=>Array(_0x9ed4f7[_0x2ccb2d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5b048f[_0x2ccb2d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ccb2d([0x66,0x69,0x6c,0x6c])](_0x5b048f[0x0]===_0x2ccb2d([0x2a])?_0x2ccb2d([0x2a]):'')[_0x2ccb2d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5b048f))[_0x2ccb2d([0x73,0x6f,0x6d,0x65])](_0x25547a=>_0x9ed4f7[_0x2ccb2d([0x65,0x76,0x65,0x72,0x79])]((_0x135a03,_0x1e74a7)=>_0x25547a[_0x1e74a7]===_0x135a03||_0x25547a[_0x1e74a7]===_0x2ccb2d([0x2a])));}function _0x379447(){return _0x5390f2&&_0x3a7ff2?new window[(_0x2ccb2d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9b9e54,_0x34dcc6)=>{_0x5390f2[_0x2ccb2d([0x74,0x68,0x65,0x6e])](_0x9b9e54,_0x34dcc6),_0x3a7ff2[_0x2ccb2d([0x74,0x68,0x65,0x6e])](_0x13413c=>{_0x13413c!=_0x2ccb2d([0x56,0x61,0x6c,0x69,0x64])&&_0x9b9e54(_0x13413c);},_0x34dcc6);}):_0x5390f2||_0x3a7ff2||_0x2ccb2d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17d93a(_0xd385d1,_0x47b519){return new window[(_0x2ccb2d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x204e2e=>{if(_0x58af95())return _0x204e2e(_0x2ccb2d([0x56,0x61,0x6c,0x69,0x64]));_0x5a6731(),_0x3ae547[_0x2ccb2d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2ccb2d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x90f1ee=!0x1;const _0x1f6458=_0x3fb264();function _0x526632(_0x340ecd){return!!_0x340ecd&&(typeof _0x340ecd===_0x2ccb2d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x340ecd===_0x2ccb2d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x340ecd[_0x2ccb2d([0x74,0x68,0x65,0x6e])]===_0x2ccb2d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x340ecd[_0x2ccb2d([0x63,0x61,0x74,0x63,0x68])]===_0x2ccb2d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x975975(_0x4209b5){_0x35a1ad(_0x4209b5)[_0x2ccb2d([0x74,0x68,0x65,0x6e])](_0x23c650=>{if(!_0x23c650||_0x23c650[_0x2ccb2d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2ccb2d([0x6f,0x6b]))return _0x2ccb2d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a33fb(_0x27891c(_0x1f6458+_0x47b519))!=_0x23c650[_0x2ccb2d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2ccb2d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2ccb2d([0x56,0x61,0x6c,0x69,0x64]);})[_0x2ccb2d([0x74,0x68,0x65,0x6e])](_0x30a7f6=>(_0x3c074a(),_0x30a7f6),()=>{const _0x421f0c=_0x44ca5c();return null==_0x421f0c?(_0x3c074a(),_0x2ccb2d([0x56,0x61,0x6c,0x69,0x64])):_0x2ccb2d(_0x5f17b4-_0x421f0c>(0x6fd69488^_0x30b15f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2ccb2d([0x74,0x68,0x65,0x6e])](_0x204e2e)[_0x2ccb2d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x204e2e(_0x2ccb2d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf18355=0x4becfe08^_0x30b15f;function _0x3c074a(){const _0x4dcb35=_0x2ccb2d([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a33fb(_0x27891c(_0xd385d1)),_0x1ae89c=_0x6be146(_0x1a33fb(window[_0x2ccb2d([0x4d,0x61,0x74,0x68])][_0x2ccb2d([0x63,0x65,0x69,0x6c])](_0x5f17b4/_0xf18355)));window[_0x2ccb2d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ccb2d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dcb35,_0x1ae89c);}function _0x44ca5c(){const _0x268e3e=_0x2ccb2d([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a33fb(_0x27891c(_0xd385d1)),_0x297f14=window[_0x2ccb2d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ccb2d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x268e3e);return _0x297f14?window[_0x2ccb2d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6be146(_0x297f14),0x10)*_0xf18355:null;}function _0x35a1ad(_0x27392d){return new window[(_0x2ccb2d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xebbff7,_0x26fa9e)=>{_0x27392d[_0x2ccb2d([0x74,0x68,0x65,0x6e])](_0xebbff7,_0x26fa9e),window[_0x2ccb2d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26fa9e,0x4bdbc448^_0x30b15f);});}}_0x3ae547[_0x2ccb2d([0x6f,0x6e])](_0x2ccb2d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x370f4f,_0x43e516)=>{if(_0x43e516[0x0]!=_0xd385d1)return _0x204e2e(_0x2ccb2d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x43e516[0x1]={..._0x43e516[0x1],[_0x2ccb2d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f6458};},{[_0x2ccb2d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ccb2d([0x68,0x69,0x67,0x68])}),_0x3ae547[_0x2ccb2d([0x6f,0x6e])](_0x2ccb2d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1c4f7a=>{_0x526632(_0x1c4f7a[_0x2ccb2d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x90f1ee=!0x0,_0x975975(_0x1c4f7a[_0x2ccb2d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2ccb2d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ccb2d([0x6c,0x6f,0x77])}),_0x21843c[_0x2ccb2d([0x74,0x68,0x65,0x6e])](()=>{_0x90f1ee||_0x204e2e(_0x2ccb2d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x58af95(){return _0x3ae547[_0x2ccb2d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ccb2d([0x76,0x69,0x65,0x77])][_0x2ccb2d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2ccb2d([0x61,0x75,0x74,0x6f]);}function _0x5a6731(){_0x3ae547[_0x2ccb2d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ccb2d([0x76,0x69,0x65,0x77])][_0x2ccb2d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ccb2d([0x61,0x75,0x74,0x6f]);}}function _0x1d81c0(_0x570712){const _0x5b47f5=[new window[(_0x2ccb2d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13bbd4=>setTimeout(_0x13bbd4,0x4bd32e44^_0x30b15f)),_0x21843c[_0x2ccb2d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2ccb2d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e8d20=>{let _0x258b64=0x0;_0x3ae547[_0x2ccb2d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ccb2d([0x6f,0x6e])](_0x2ccb2d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4c766a,_0xc351ea)=>{_0xc351ea[0x0][_0x2ccb2d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x258b64++,_0x258b64==(0x4bda1170^_0x30b15f)&&(_0x4e8d20(),_0x4c766a[_0x2ccb2d([0x6f,0x66,0x66])]());});}))];return window[_0x2ccb2d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ccb2d([0x72,0x61,0x63,0x65])](_0x5b47f5)[_0x2ccb2d([0x74,0x68,0x65,0x6e])](()=>_0x570712);}async function _0xc0f9fe(){await _0x21843c,_0x3ae547[_0x2ccb2d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ccb2d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36068c,_0x3ae547[_0x2ccb2d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ccb2d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36068c,_0x3ae547[_0x2ccb2d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2ccb2d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26da8f(_0x533e96){const _0x5141d9=_0x2de96c();_0x3ae547[_0x5141d9]=_0x2ccb2d([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x533e96,_0x533e96!=_0x2ccb2d([0x56,0x61,0x6c,0x69,0x64])&&_0xc0f9fe();}function _0x2de96c(){const _0x3baa77=window[_0x2ccb2d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2ccb2d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2ccb2d([0x6e,0x6f,0x77])]())[_0x2ccb2d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2ccb2d([0x2e]),'');let _0xcbce46=_0x2ccb2d([0x75]);for(let _0x2f4bda=0x0;_0x2f4bda<_0x3baa77[_0x2ccb2d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f4bda+=0x2){let _0x6e239a=window[_0x2ccb2d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3baa77[_0x2ccb2d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f4bda,_0x2f4bda+0x2));_0x6e239a>=_0x2d3d28[_0x2ccb2d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x6e239a-=_0x2d3d28[_0x2ccb2d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcbce46+=_0x2d3d28[_0x6e239a];}return _0xcbce46;}function _0x44a93c(){const _0x370214=_0x3a2c39[_0x2ccb2d([0x73,0x70,0x6c,0x69,0x74])](_0x2ccb2d([0x2e]));if(0x3!=_0x370214[_0x2ccb2d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3fb4e3(_0x370214[0x1]);function _0x3fb4e3(_0x2ec1b9){const _0x3290a9=_0x4af9d9(_0x2ec1b9);return _0x3290a9&&_0x153cef()?_0x3290a9:null;function _0x153cef(){const _0x31b7e3=_0x3290a9[_0x2ccb2d([0x6a,0x74,0x69])],_0xca008e=window[_0x2ccb2d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31b7e3[_0x2ccb2d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31b7e3[_0x2ccb2d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x329d83={..._0x3290a9,[_0x2ccb2d([0x6a,0x74,0x69])]:_0x31b7e3[_0x2ccb2d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31b7e3[_0x2ccb2d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x329d83[_0x2ccb2d([0x76,0x63])],_0x27891c(_0x329d83)==_0xca008e;}}}async function _0x4aa14d(){let _0x3d5d82=!0x0;try{const _0x55fb5e=_0x3a2c39[_0x2ccb2d([0x73,0x70,0x6c,0x69,0x74])](_0x2ccb2d([0x2e])),[_0x4a5b0b,_0x3f1b2f,_0x38f988]=_0x55fb5e;return _0x50b478(_0x4a5b0b),await _0x3d231a(_0x4a5b0b,_0x3f1b2f,_0x38f988),_0x3d5d82;}catch{return!0x1;}function _0x50b478(_0x23198f){const _0x123b17=_0x4af9d9(_0x23198f);_0x123b17&&_0x123b17[_0x2ccb2d([0x61,0x6c,0x67])]==_0x2ccb2d([0x45,0x53,0x32,0x35,0x36])||(_0x3d5d82=!0x1);}async function _0x3d231a(_0x1dccd2,_0x54001a,_0x224a49){const _0x51d8ed=window[_0x2ccb2d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2ccb2d([0x66,0x72,0x6f,0x6d])](_0x9738be(_0x224a49),_0x31dcc0=>_0x31dcc0[_0x2ccb2d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xb272d2=new window[(_0x2ccb2d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2ccb2d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1dccd2+_0x2ccb2d([0x2e])+_0x54001a),_0x29c4fc=window[_0x2ccb2d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2ccb2d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x29c4fc)return;const _0xfb1c72=await _0x29c4fc[_0x2ccb2d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2ccb2d([0x6a,0x77,0x6b]),_0x340c9e,{[_0x2ccb2d([0x6e,0x61,0x6d,0x65])]:_0x2ccb2d([0x45,0x43,0x44,0x53,0x41]),[_0x2ccb2d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2ccb2d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2ccb2d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x29c4fc[_0x2ccb2d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2ccb2d([0x6e,0x61,0x6d,0x65])]:_0x2ccb2d([0x45,0x43,0x44,0x53,0x41]),[_0x2ccb2d([0x68,0x61,0x73,0x68])]:{[_0x2ccb2d([0x6e,0x61,0x6d,0x65])]:_0x2ccb2d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xfb1c72,_0x51d8ed,_0xb272d2)||(_0x3d5d82=!0x1);}}function _0x4af9d9(_0x22d8e8){return _0x22d8e8[_0x2ccb2d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2ccb2d([0x65,0x79]))?JSON[_0x2ccb2d([0x70,0x61,0x72,0x73,0x65])](_0x9738be(_0x22d8e8)):null;}function _0x9738be(_0x5349b3){return window[_0x2ccb2d([0x61,0x74,0x6f,0x62])](_0x5349b3[_0x2ccb2d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2ccb2d([0x2b]))[_0x2ccb2d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2ccb2d([0x2f])));}function _0x27891c(_0x399c82){let _0x5cbd03=0x1505;function _0x4a6498(_0x558010){for(let _0x19ce88=0x0;_0x19ce88<_0x558010[_0x2ccb2d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19ce88++){const _0x30ba15=_0x558010[_0x2ccb2d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19ce88);_0x5cbd03=(_0x5cbd03<<0x5)+_0x5cbd03+_0x30ba15,_0x5cbd03&=_0x5cbd03;}}function _0x1a1a72(_0x828a4){Array[_0x2ccb2d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x828a4)?_0x828a4[_0x2ccb2d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a1a72):_0x828a4&&typeof _0x828a4==_0x2ccb2d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2ccb2d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x828a4)[_0x2ccb2d([0x73,0x6f,0x72,0x74])]()[_0x2ccb2d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xad8ec2,_0x33e0f4])=>{_0x4a6498(_0xad8ec2),_0x1a1a72(_0x33e0f4);}):_0x4a6498(window[_0x2ccb2d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x828a4));}return _0x1a1a72(_0x399c82),_0x5cbd03>>>0x0;}function _0x1a33fb(_0x381f97){return _0x381f97[_0x2ccb2d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2ccb2d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2ccb2d([0x30]));}function _0x6be146(_0x5cf1c1){return _0x5cf1c1[_0x2ccb2d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2ccb2d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2ccb2d([0x6a,0x6f,0x69,0x6e])]('');}function _0x36068c(){}function _0x2ccb2d(_0x50887a){return _0x50887a['map'](_0x2906ef=>String['fromCharCode'](_0x2906ef))['join']('');}_0x26da8f(await _0x47dc4e());}(this);}['_initSchema'](){const _0x265587=this['editor']['model']['schema'];_0x265587['isRegistered']('imageBlock')&&_0x265587['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x265587['isRegistered']('imageInline')&&_0x265587['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x46fea6=this['editor'];_0x46fea6['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x46fea6['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2d0671=>_0x2d0671['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x6fddee=_0x46fea6['commands']['get']('replaceImageSource');_0x6fddee&&this['listenTo'](_0x6fddee,'cleanupImage',(_0x3e8299,[_0x4c03b5,_0x48d106])=>{_0x4c03b5['removeAttribute']('uploadcareImageId',_0x48d106);});}['_initConfig'](){const _0x5c1eb4=this['editor']['config']['get']('uploadcare.uploader')||{},_0x489e02=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x26a26b(_0x1b1233['document'],'uc-config',{..._0x5c1eb4,'pubkey':_0x489e02,'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']=_0xfbc971=>{if('closeMax'==_0xfbc971)return'#uc-icon-arrow-down';},_0x1b1233['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x26a26b(_0x1b1233['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1b1233['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x466d2b=this['editor']['commands']['get']('insertImage');_0x466d2b&&this['listenTo'](_0x466d2b,'execute',()=>{const _0x5db985=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5db985&&_0x5db985['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5db985);});});const _0x588e5b=this['editor']['commands']['get']('uploadcareImageReplace');_0x588e5b&&this['listenTo'](_0x588e5b,'execute',()=>{const _0x51f816=this['editor']['model']['document']['selection']['getSelectedElement']();_0x51f816&&_0x51f816['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x51f816);});});}}class tt extends _0x29a0bc{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x26fd6a){super(_0x26fd6a),_0x26fd6a['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2b4456['defineComponents'](_0x2b4456);}}class ii extends _0x2109bd{constructor(_0xe0b3fc){super(_0xe0b3fc);const t=_0xe0b3fc['t'],_0x3b87c4=this['bindTemplate'],_0x3e6b09=new _0x2395ff();_0x3e6b09['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':[_0x3e6b09,{'text':_0x3b87c4['to']('imageUploadProgress',_0x4ad566=>t('Loading\x20image...')+'\x20('+(_0x4ad566||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 _0x2109bd{constructor(_0x4d1a54){super(_0x4d1a54);const t=_0x4d1a54['t'];this['set']('errorType',null);const _0x1da7fe=new _0x1d4a1e(_0x4d1a54);_0x1da7fe['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1da7fe['withText']=!0x0,_0x1da7fe['class']='ck-button-action',_0x1da7fe['on']('execute',()=>{this['fire']('retry');}),_0x1da7fe['bind']('isVisible')['to'](this,'errorType',_0x43dafb=>'NotFound'!==_0x43dafb);const _0x43ed26=new _0x1b8027();_0x43ed26['content']=_0xd502a6,_0x43ed26['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3dbfbf=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':[_0x43ed26,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3dbfbf['to']('errorType',_0x105485=>t('NotFound'!==_0x105485?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1da7fe]},{'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 _0x2109bd{constructor(_0x2e7ce2,_0x2629ab){super(_0x2e7ce2);const _0x3d58a6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x2629ab,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3d58a6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x2fab21,_0x5657fc,_0xe044b8){super(_0x2fab21),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x2fab21),this['_errorView']=new ti(_0x2fab21),this['_editingView']=new ei(_0x2fab21,_0xe044b8),this['_focusableView']=new _0x2109bd(_0x2fab21),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x5657fc),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'],_0x346e2b=>{this['_addUploadcareImageEditorListeners'](_0x346e2b);});}),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'](_0x5d4302,_0x362fcd){const _0x41ec76='uc-cloud-image-editor',_0x38286b=_0x5d4302['querySelector'](_0x41ec76);if(_0x38286b)return _0x362fcd(_0x38286b);const _0x563539=new MutationObserver(_0x25090c=>{const _0x4d9acc=_0x25090c['filter'](_0x51526a=>_0x51526a['target']===_0x5d4302&&_0x51526a['addedNodes']['length']>0x0&&_0x51526a['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x41ec76);_0x4d9acc['length']&&(_0x563539['disconnect'](),_0x362fcd(_0x4d9acc[0x0]['addedNodes'][0x0]));});_0x563539['observe'](_0x5d4302,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x35658a){_0x35658a['addEventListener']('apply',_0x222b9a=>{this['fire']('apply',{'imageSrc':_0x222b9a['detail']['cdnUrl']});}),_0x35658a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3d136f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x37e186,_0x10c13d,_0x1acabb){super(),this['_editor']=_0x37e186,this['_dialog']=_0x10c13d,this['_imageElement']=_0x1acabb,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 _0xb8224b=this['_imageElement'],_0x24a29d=_0xb8224b['getAttribute']('uploadcareImageId'),_0xc547e5=_0xb8224b['getAttribute']('src');if(_0x24a29d)await this['_loadImageInfo'](_0x24a29d,_0xc547e5);else{if(this['_imageCache']['has'](_0xc547e5)){const _0x4a6975=this['_imageCache']['get'](_0xc547e5);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4a6975['url'],this['imageDimension']=_0x4a6975['dimension'],this['imageId']=_0x4a6975['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x3e1350}=this['_editor'],t=_0x3e1350['t'],_0x281b7f=new X(_0x3e1350,this['imageStatus'],this['_attributes']);_0x281b7f['bind']('status')['to'](this,'imageStatus'),_0x281b7f['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x281b7f['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x281b7f['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x281b7f,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3d6c5f,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x281b7f,'position':_0x190573['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x281b7f['focus']();},'onHide':()=>{_0x281b7f['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4c1b87=>!S(_0x4c1b87,_0x281b7f['element'])}});}['_loadImageInfo'](_0x5c5f0d,_0x3043fe){return j['getInfo'](_0x5c5f0d,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0xd1077b=>{const {width:_0x26a117,height:_0x18646b}=_0xd1077b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3043fe,this['imageDimension']={'width':_0x26a117,'height':_0x18646b},this['imageId']=_0x5c5f0d;})['catch'](_0x403dcc=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x403dcc['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x25ae88,_0x21ee93){return this['_getImageAsFile'](_0x25ae88)['then'](_0x528a0d=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x21ee93['signal'],'file':_0x528a0d,'onProgress':_0x295887=>{_0x295887&&_0x295887['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x295887['value']));}}))['then'](_0x31f29e=>{const {width:_0x5a4692,height:_0x3e20c4}=_0x31f29e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x31f29e['cdnUrl'],this['imageDimension']={'width':_0x5a4692,'height':_0x3e20c4},this['imageId']=_0x31f29e['uuid'],this['imageUploadProgress']=null;const _0x2f93cb=_0x25ae88['getAttribute']('src');this['_imageCache']['set'](_0x2f93cb,{'id':_0x31f29e['uuid'],'url':_0x31f29e['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x36b39f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x36b39f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1b5115,_0x5168e4){_0x1b5115['on']('apply',(_0x51cba0,_0x2ac8c1)=>{this['_replaceImage'](_0x5168e4,_0x2ac8c1['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1b5115['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1b5115['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x6c47d3,_0x43e7dc,_0x339bfb){const _0x1e77fa=this['_editor'],{width:_0x2f6a7b,height:_0x2f9964}=C(_0x43e7dc,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4aacea,imageSources:_0x229124}=k(_0x43e7dc,_0x2f6a7b);_0x1e77fa['model']['change'](_0x18c0f1=>{if('$graveyard'===_0x6c47d3['root']['rootName']){_0x1e77fa['execute']('insertImage',{'imageType':_0x6c47d3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x6c47d3['getAttributes']()),'uploadcareImageId':_0x339bfb,'src':_0x4aacea,'sources':_0x229124,'width':_0x2f6a7b,'height':_0x2f9964}});const _0x4fa50e=_0x6c47d3['getChildren']();_0x6c47d3=_0x1e77fa['model']['document']['selection']['getSelectedElement']();for(const _0x326e1f of _0x4fa50e)_0x18c0f1['append'](_0x18c0f1['cloneElement'](_0x326e1f),_0x6c47d3);}else _0x18c0f1['setSelection'](_0x6c47d3,'on'),_0x1e77fa['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x6c47d3['getAttributes']()),'uploadcareImageId':_0x339bfb,'src':_0x4aacea,'sources':_0x229124,'width':_0x2f6a7b,'height':_0x2f9964},_0x6c47d3);_0x18c0f1['setSelection'](_0x6c47d3,'on');});}async['_getImageAsFile'](_0x342202){const _0x55af7f=_0x1b1233['window'],_0x448f93=_0x1b1233['document']['location']['href'],_0x3938ec=new _0x55af7f['URL'](_0x342202['getAttribute']('src'),_0x448f93);if('data:'===_0x3938ec['protocol']){const _0x36b665=_0x3938ec['href']['split'](','),_0x1db996=_0x36b665[0x0]['match'](/:(.*?);/)[0x1],_0x54d221=_0x1db996['split']('/')[0x1],_0x131780=_0x55af7f['atob'](_0x36b665[_0x36b665['length']-0x1]);let _0x515ec4=_0x131780['length'];const _0x2ef40e=new _0x55af7f['Uint8Array'](_0x515ec4);for(;_0x515ec4--;)_0x2ef40e[_0x515ec4]=_0x131780['charCodeAt'](_0x515ec4);return new _0x55af7f['File']([_0x2ef40e],'image.'+_0x54d221,{'type':_0x1db996});}const _0x35a5da=_0x3938ec['href']['split']('/'),_0x327a54=_0x35a5da[_0x35a5da['length']-0x1],_0x1cd615=_0x327a54['split']('.')[0x1];return _0x55af7f['fetch'](_0x3938ec['href'])['then'](_0x7acbfb=>_0x7acbfb['clone']()['blob']())['then'](_0x2d52a1=>new _0x55af7f['File']([_0x2d52a1],_0x327a54,{'type':'image/'+_0x1cd615}));}}class O extends _0x10354e{['imageEditController'];static get['requires'](){return[_0x1c0e49];}['_isEditable'];constructor(_0x14ccf8){super(_0x14ccf8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x379d95){const _0x533d9b=G(_0x379d95);return _0x3ec715=>!(!_0x3ec715||!_0x3ec715['is']('element','imageBlock')&&!_0x3ec715['is']('element','imageInline'))&&(!!_0x3ec715['hasAttribute']('uploadcareImageId')||!!_0x3ec715['hasAttribute']('src')&&_0x533d9b(_0x3ec715['getAttribute']('src')));}(_0x14ccf8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x30f63b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x30f63b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x35523f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x35523f&&(_0x35523f['is']('element','imageBlock')||_0x35523f['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1c0e49),_0x35523f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x10354e{['refresh'](){const _0x8de183=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x8de183&&(_0x8de183['is']('element','imageBlock')||_0x8de183['is']('element','imageInline')));}['execute'](_0x23b6d7){const _0x16fdc3=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x11531e=>{_0x11531e['setAttributes'](_0x23b6d7,_0x16fdc3),_0x11531e['removeAttribute']('srcset',_0x16fdc3),_0x11531e['removeAttribute']('sizes',_0x16fdc3);});}}class m extends _0x29a0bc{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x19a146,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x23521a}=this;_0x23521a['commands']['add']('uploadcareImageEdit',new O(_0x23521a)),_0x23521a['commands']['add']('uploadcareImageReplace',new R(_0x23521a));}}class g extends _0x29a0bc{['_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 _0x28f09f=this['editor'];_0x28f09f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x360d7a=>{const _0x1c825d=_0x28f09f['commands']['get']('uploadcareImageEdit'),_0x110946=new _0x1d4a1e(_0x360d7a),t=_0x360d7a['t'];return _0x110946['set']({'icon':_0x3d6c5f,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x110946['bind']('isEnabled')['to'](_0x1c825d),_0x110946['bind']('isOn')['to'](_0x1c825d,'isActive'),this['listenTo'](_0x110946,'execute',()=>{_0x28f09f['execute']('uploadcareImageEdit'),_0x28f09f['editing']['view']['focus']();}),_0x110946;}),this['_initConfig']();}['_initConfig'](){const _0x49ee14=_0x26a26b(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x49ee14),this['listenTo'](this['editor'],'destroy',()=>{_0x49ee14['remove']();});}}class et extends _0x29a0bc{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 _0x17d3c0,Command as _0x371fa4}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x58f4d0,IconGooglePhotos as _0x3ae4a5,IconGoogleDrive as _0x415072,IconFacebook as _0x12e5f7,IconDropbox as _0x37babc,IconUploadcareLink as _0x5705c9,IconUploadcareImageUpload as _0x19dcc4,IconError as _0x23cb5c,IconUploadcareImageEdit as _0x3008bd}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x432ee6,MenuBarMenuListItemButtonView as _0x4f07f5,View as _0x2e234f,FocusCycler as _0x105b34,Dialog as _0x2b6820,DialogViewPosition as _0x30357e,SpinnerView as _0x73312c,IconView as _0x148007,Notification as _0x3c3f6e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x67f8b8,DomEmitterMixin as _0x32cbe3,global as _0x4e8a95,getAncestors as _0x4eb747,ObservableMixin as _0x2d13b4,uid as _0x3a08f5,createElement as _0x124f34}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x16af72}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4d40e6,info as _0x3f59a3}from'@uploadcare/upload-client';import*as _0x2b731d from'@uploadcare/file-uploader';var i=function(_0x4f59e2){return _0x4f59e2['Local']='local',_0x4f59e2['URL']='url',_0x4f59e2['Dropbox']='dropbox',_0x4f59e2['GDrive']='gdrive',_0x4f59e2['Facebook']='facebook',_0x4f59e2['GPhotos']='gphotos',_0x4f59e2['OneDrive']='onedrive',_0x4f59e2;}({});function _(_0xf31df2,_0x8e3d15,_0x981d6f){const t=_0xf31df2['t'],_0x17d46a=_0xf31df2['t'];switch(_0x8e3d15){case i['Local']:return{'text':_0x17d46a('Insert'===_0x981d6f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x17d46a('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x981d6f?_0x17d46a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x17d46a('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x981d6f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x981d6f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x981d6f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x981d6f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x981d6f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x8e3d15;}}class e extends _0x17d3c0{['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 _0x2f4cc9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3dd60b;for(const _0x654daf in _0x2f4cc9){const _0x51b3cf=_0x654daf,_0x3ab7d5=_0x2f4cc9[_0x51b3cf];if('uploadcareLicenseKeyValid'==_0x3ab7d5||'uploadcareLicenseKeyInvalid'==_0x3ab7d5||'uploadcareLicenseKeyExpired'==_0x3ab7d5||'uploadcareLicenseKeyDomainLimit'==_0x3ab7d5||'uploadcareLicenseKeyNotAllowed'==_0x3ab7d5||'uploadcareLicenseKeyEvaluationLimit'==_0x3ab7d5||'uploadcareLicenseKeyTrialLimit'==_0x3ab7d5||'uploadcareLicenseKeyUsageLimit'==_0x3ab7d5){delete _0x2f4cc9[_0x51b3cf],_0x3dd60b=_0x3ab7d5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x3dd60b&&_0x2f4cc9['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x3dd60b&&_0x2f4cc9['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x3dd60b&&_0x2f4cc9['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x3dd60b&&_0x2f4cc9['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x3dd60b&&_0x2f4cc9['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x3dd60b&&_0x2f4cc9['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x3dd60b&&_0x2f4cc9['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x22eef3}=this,_0x141fae=_0x22eef3['commands']['get']('uploadcare');if(!_0x141fae)return;const _0x5213bd=this['_normalizeConfigSourceList'](_0x22eef3['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x538599,_0x2976d5)=>{const _0x3db616=this['_getIntegrationKey'](_0x2976d5['type']);return _0x538599[_0x3db616]||(_0x538599[_0x3db616]=[]),_0x538599[_0x3db616]['push'](_0x2976d5),_0x538599;},{});_0x22eef3['plugins']['has']('ImageInsertUI')&&_0x22eef3['commands']['get']('uploadcare')&&Object['entries'](_0x5213bd)['forEach'](([_0x391678,_0x336233])=>{_0x22eef3['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x391678,'observable':()=>_0x141fae,'buttonViewCreator':()=>this['_createToolbarButton'](_0x336233),'formViewCreator':()=>this['_createDropdownButtons'](_0x336233),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x336233),'override':'assetManager'!==_0x391678});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x1f3f7d){const {locale:_0xeb3e42}=this['editor'];return _0x1f3f7d['map'](_0x4f645e=>{const _0x6a8bb=_(_0xeb3e42,_0x4f645e,'Insert');switch(_0x4f645e){case i['Local']:return{'icon':_0x19dcc4,'type':i['Local'],..._0x6a8bb};case i['URL']:return{'icon':_0x5705c9,'type':i['URL'],..._0x6a8bb};case i['Dropbox']:return{'icon':_0x37babc,'type':i['Dropbox'],..._0x6a8bb};case i['Facebook']:return{'icon':_0x12e5f7,'type':i['Facebook'],..._0x6a8bb};case i['GDrive']:return{'icon':_0x415072,'type':i['GDrive'],..._0x6a8bb};case i['GPhotos']:return{'icon':_0x3ae4a5,'type':i['GPhotos'],..._0x6a8bb};case i['OneDrive']:return{'icon':_0x58f4d0,'type':i['OneDrive'],..._0x6a8bb};}});}['_getIntegrationKey'](_0x1a7c58){switch(_0x1a7c58){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2b2448,_0x47622c){const _0xa90fce=this['editor'],_0x3f576e=new _0x2b2448(_0xa90fce['locale']),_0x26b999=_0xa90fce['commands']['get']('uploadcare');return _0x3f576e['bind']('isEnabled')['to'](_0x26b999),_0x3f576e['on']('execute',()=>{_0x26b999['execute'](_0x47622c);}),_0x3f576e;}['_createToolbarButton'](_0x2e3eba){const {locale:_0x3f8b01}=this['editor'],_0x4f65ea=this['editor']['plugins']['get']('ImageInsertUI'),_0xb9a3f5=_0x2e3eba[0x0],_0x575948=this['_createButton'](_0x432ee6,_0xb9a3f5['type']);return _0x575948['icon']=_0xb9a3f5['icon'],_0x575948['bind']('label')['to'](_0x4f65ea,'isImageSelected',_0x328cc6=>_(_0x3f8b01,_0xb9a3f5['type'],_0x328cc6?'Replace':'Insert')['text']),_0x575948['tooltip']=!0x0,_0x575948;}['_createDropdownButtons'](_0x5aff18){const {locale:_0x12a36f}=this['editor'],_0x412909=this['editor']['plugins']['get']('ImageInsertUI');return _0x5aff18['map'](_0x36decc=>{const _0x53f219=this['_createButton'](_0x432ee6,_0x36decc['type']);return _0x53f219['withText']=!0x0,_0x53f219['icon']=_0x36decc['icon'],_0x53f219['bind']('label')['to'](_0x412909,'isImageSelected',_0x305e68=>_(_0x12a36f,_0x36decc['type'],_0x305e68?'Replace':'Insert')['text']),_0x53f219;});}['_createMenuBarButtons'](_0xd42af1){return _0xd42af1['map'](_0x290c4e=>{const _0x53fea9=this['_createButton'](_0x4f07f5,_0x290c4e['type']);return _0x53fea9['icon']=_0x290c4e['icon'],_0x53fea9['label']=_0x290c4e['shortText'],_0x53fea9;});}}class F extends _0x2e234f{['focusTracker'];['focusCycler'];constructor(_0x2ee711){super(_0x2ee711),this['focusTracker']=new _0x67f8b8(),this['focusCycler']=new _0x105b34({'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(_0x14ab23,_0x53d76d){super(_0x14ab23),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-'+_0x53d76d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function k(_0x5b64d9,_0x165d23){const _0x169c43=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x13a8f7=>_0x13a8f7<=_0x165d23)['map'](_0x4e62af=>_0x5b64d9['replace'](/\/$/,'')+'/-/resize/'+_0x4e62af+'x/\x20'+_0x4e62af+'w');return{'imageFallbackUrl':_0x5b64d9,'imageSources':[{'srcset':_0x169c43['join'](',\x20'),'sizes':'(max-width:\x20'+_0x165d23+'px)\x20100vw,\x20'+_0x165d23+'px','type':'image/webp'}]};}function C(_0x270397,_0x5a91d1,_0x16d716){const _0x3a82dd=_0x270397['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3a82dd?parseInt(_0x3a82dd[0x1],0xa):_0x5a91d1,'height':_0x3a82dd?parseInt(_0x3a82dd[0x2],0xa):_0x16d716};}function p(_0xf17688,_0x575618){const _0x514c09=new(_0x32cbe3())(),_0x492191=_0xf17688['plugins']['get']('ImageUtils'),_0x150959=_0xf17688['editing']['mapper']['toViewElement'](_0x575618),_0x59ae3e=_0x492191['findViewImgElement'](_0x150959),_0x4ac577=_0xf17688['editing']['view']['domConverter']['viewToDom'](_0x59ae3e),_0x2610a1=_0x575618['getAttribute']('width'),_0x3348c9=_0x575618['getAttribute']('height'),_0xad0fb8='image-processing';_0xf17688['editing']['view']['change'](_0x5b5c86=>{_0x5b5c86['addClass'](_0xad0fb8,_0x150959),_0x5b5c86['setStyle']('aspect-ratio',_0x2610a1+'/'+_0x3348c9,_0x59ae3e);}),_0x514c09['listenTo'](_0x4ac577,'load',()=>{_0x514c09['stopListening'](_0x4ac577,'load'),_0xf17688['editing']['view']['change'](_0x11825b=>{_0x11825b['removeClass'](_0xad0fb8,_0x150959),_0x11825b['removeStyle']('aspect-ratio',_0x59ae3e);});});}function G(_0x3f659a){if(Array['isArray'](_0x3f659a)){const _0x1efb36=_0x3f659a['map'](G);return _0x48846d=>_0x1efb36['some'](_0x36d12a=>_0x36d12a(_0x48846d));}if('origin'==_0x3f659a){const _0x48e423=_0x4e8a95['window']['location']['origin'];return _0x5dceb5=>new URL(_0x5dceb5,_0x4e8a95['document']['baseURI'])['origin']==_0x48e423;}return'function'==typeof _0x3f659a?_0x3f659a:_0x3f659a instanceof RegExp?_0x8aeb69=>!(!_0x8aeb69['match'](_0x3f659a)&&!_0x8aeb69['replace'](/^https?:\/\//,'')['match'](_0x3f659a)):()=>!0x1;}function S(_0x42303b,_0x471987){return _0x4eb747(_0x42303b['target'])['includes'](_0x471987);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2d13b4(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x34e472,_0x415e08,_0x44b2af){super(),this['_editor']=_0x34e472,this['_editing']=_0x415e08,this['_dialog']=_0x34e472['plugins']['get'](_0x2b6820),this['_api']=_0x415e08['ctxElement']['getAPI'](),this['_type']=_0x44b2af,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:_0x4ba06c,model:_0x721413}=this['_editor'],_0x43acff=_0x721413['document']['selection']['getSelectedElement'](),_0x2ec1cc=_0x43acff&&(_0x43acff['is']('element','imageBlock')||_0x43acff['is']('element','imageInline'));this['_formView']=new x(_0x4ba06c,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x19dcc4,'title':_(_0x4ba06c,this['_type'],_0x2ec1cc?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x30357e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1ce8b9=>!S(_0x1ce8b9,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x3c0000}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5a3c85=>{const _0x108935=_0x3c0000['length'];for(const _0x4576f6 of _0x3c0000){const _0x1b72a2=_0x4576f6===_0x3c0000[_0x108935-0x1],{cdnUrl:_0x3fe0d7,fileInfo:_0x41baa2}=_0x4576f6;if(!_0x3fe0d7||!_0x41baa2)continue;const {width:_0x1ec8e3,height:_0x5b675f}=_0x41baa2['imageInfo'],_0xd4a37f=C(_0x3fe0d7,_0x1ec8e3,_0x5b675f),_0x3961ed=k(_0x3fe0d7,_0xd4a37f['width']),_0x29d8e7={'id':_0x41baa2['uuid'],'type':'image','attributes':{'imageDimension':_0xd4a37f,..._0x3961ed}};this['_insertAsset'](_0x29d8e7,_0x1b72a2,_0x5a3c85);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1ffa19=>{'idle'===_0x1ffa19['detail']['status']&&!_0x1ffa19['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x58cbc6,_0x4d26de,_0x24ae90){const _0x1b3b86=this['_editor']['model']['document']['selection'],_0x2ba635=_0x1b3b86['getSelectedElement'](),_0x257d7f=!(!_0x2ba635||!_0x2ba635['is']('element','imageInline'));_0x24ae90['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x58cbc6,_0x257d7f),_0x4d26de||_0x24ae90['setSelection'](_0x1b3b86['getLastPosition']());}['_insertImage'](_0x532bc8,_0x3f6e42){const _0x310a7a=this['_editor'],{imageDimension:_0x259224,imageFallbackUrl:_0x7d99d5,imageSources:_0x3c13fd}=_0x532bc8['attributes'];_0x310a7a['execute']('insertImage',{'imageType':_0x3f6e42?'imageInline':null,'source':{'uploadcareImageId':_0x532bc8['id'],'src':_0x7d99d5,'sources':_0x3c13fd,..._0x259224}});}}class w extends _0x371fa4{['_editing'];['_controller']=null;static get['requires'](){return[_0x2b6820,o];}constructor(_0x442a5d){super(_0x442a5d),this['_editing']=_0x442a5d['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x41c26f){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x41c26f);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1fa9f5,publicKey:_0x362000,signal:_0x50a432,onProgress:_0x49e75f}){return _0x4d40e6(_0x1fa9f5,{'publicKey':_0x362000,'store':'auto','signal':_0x50a432,'onProgress':_0x49e75f});}static['getInfo'](_0x3f2d2d,_0x2ef999){return _0x3f59a3(_0x3f2d2d,_0x2ef999);}}class f extends _0x17d3c0{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x16af72,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x27cc5b=this['editor'];if(!!!_0x27cc5b['config']['get']('uploadcare'))return;_0x27cc5b['plugins']['get'](_0x16af72)['createUploadAdapter']=_0x2c8795=>new A(_0x2c8795,_0x27cc5b),_0x27cc5b['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4412b8,{imageElement:_0x4b6d3e,data:_0x1cc037})=>{_0x27cc5b['model']['change'](_0x411348=>{_0x411348['setAttribute']('uploadcareImageId',_0x1cc037['uploadcareImageId'],_0x4b6d3e);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x5e6f83,_0x587f0b){this['loader']=_0x5e6f83,this['editor']=_0x587f0b,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x182d27=this['editor']['config']['get']('uploadcare.pubkey'),_0x122f38=await this['loader']['file'];return j['upload']({'file':_0x122f38,'publicKey':_0x182d27,'signal':this['controller']['signal'],'onProgress':_0x32bb3c=>{_0x32bb3c&&_0x32bb3c['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x32bb3c['value']);}})['then'](async _0x4e7743=>{const {imageFallbackUrl:_0x51ac87,imageSources:_0x491ae6}=k(_0x4e7743['cdnUrl'],_0x4e7743['imageInfo']['width']);return{'uploadcareImageId':_0x4e7743['uuid'],'default':_0x51ac87,'sources':_0x491ae6};})['catch'](()=>{const _0x1ffc0f=t('Cannot\x20upload\x20file:')+('\x20'+_0x122f38['name']+'.');return Promise['reject'](_0x1ffc0f);});}['abort'](){this['controller']['abort']();}}class o extends _0x17d3c0{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2b6820];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x171fc0){super(_0x171fc0),this['ucContextId']=_0x3a08f5();}['init'](){const _0x1c29b1=this['editor'];_0x1c29b1['commands']['add']('uploadcare',new w(_0x1c29b1));}['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 _0x1b5565=_0x4e8a95['document']['querySelector']('input[uploadcare-file-input]');_0x1b5565&&_0x1b5565['remove']();}),async function(_0x1cdb15){const _0x111cd1=_0x7c2b77([0x71,0x72,0x39,0x70,0x65,0x69,0x66,0x78,0x4d,0x5a,0x6d,0x74,0x68,0x73,0x7a,0x75,0x6f,0x32,0x53,0x59,0x36,0x48,0x76,0x52,0x47,0x4a,0x34,0x63,0x56,0x37,0x6b,0x43,0x45,0x4e,0x4b,0x6a,0x62,0x61,0x35,0x57,0x38,0x4c,0x6c,0x55,0x51,0x44,0x6e,0x64,0x33,0x42,0x77,0x49,0x4f,0x79,0x46,0x54,0x50,0x30,0x31,0x41,0x58,0x67]),_0xca9258=0x44cde989,_0x3d63fb=0x44ca9999^_0xca9258,_0x4436b7=window[_0x7c2b77([0x44,0x61,0x74,0x65])][_0x7c2b77([0x6e,0x6f,0x77])](),_0x3f230d=_0x1cdb15[_0x7c2b77([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x551fd9=new window[(_0x7c2b77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20ebe7=>{_0x3f230d[_0x7c2b77([0x6f,0x6e,0x63,0x65])](_0x7c2b77([0x72,0x65,0x61,0x64,0x79]),_0x20ebe7);}),_0x1369bf={[_0x7c2b77([0x6b,0x74,0x79])]:_0x7c2b77([0x45,0x43]),[_0x7c2b77([0x75,0x73,0x65])]:_0x7c2b77([0x73,0x69,0x67]),[_0x7c2b77([0x63,0x72,0x76])]:_0x7c2b77([0x50,0x2d,0x32,0x35,0x36]),[_0x7c2b77([0x78])]:_0x7c2b77([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]),[_0x7c2b77([0x79])]:_0x7c2b77([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]),[_0x7c2b77([0x61,0x6c,0x67])]:_0x7c2b77([0x45,0x53,0x32,0x35,0x36])},_0x21adc5=_0x3f230d[_0x7c2b77([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x7c2b77([0x67,0x65,0x74])](_0x7c2b77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x57cf0b(){let _0x256742,_0x12cfa5=null,_0x5d23f0=null;try{if(_0x21adc5==_0x7c2b77([0x47,0x50,0x4c]))return _0x7c2b77([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x256742=_0x4a4f79(),!_0x256742)return _0x7c2b77([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x256742[_0x7c2b77([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5d23f0=_0x26bf40(_0x256742[_0x7c2b77([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x256742[_0x7c2b77([0x6a,0x74,0x69])])),await _0x4bf2df()?_0x13cd6d()?_0x3f54ad()?_0x7c2b77([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x215760()?(_0x256742[_0x7c2b77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7c2b77([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x12cfa5=_0x16a3a3(_0x7c2b77([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x256742[_0x7c2b77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7c2b77([0x74,0x72,0x69,0x61,0x6c])&&(_0x12cfa5=_0x16a3a3(_0x7c2b77([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x353811()):_0x7c2b77([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x7c2b77([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x7c2b77([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x7c2b77([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f54ad(){const _0x1fd9d1=[_0x7c2b77([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x7c2b77([0x74,0x72,0x69,0x61,0x6c])][_0x7c2b77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x256742[_0x7c2b77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4436b7/0x3e8:0xe10*_0x3d63fb;return _0x256742[_0x7c2b77([0x65,0x78,0x70])]<_0x1fd9d1;}function _0x13cd6d(){const _0x36662b=_0x256742[_0x7c2b77([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x36662b&&(!!_0x36662b[_0x7c2b77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7c2b77([0x2a]))||!!_0x36662b[_0x7c2b77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7c2b77([0x55,0x50,0x4c,0x43])));}function _0x215760(){const _0x3d9026=_0x256742[_0x7c2b77([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d9026||0x0==_0x3d9026[_0x7c2b77([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x135a61}=new URL(window[_0x7c2b77([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d9026[_0x7c2b77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x135a61))return!0x0;const _0x394f8b=_0x135a61[_0x7c2b77([0x73,0x70,0x6c,0x69,0x74])](_0x7c2b77([0x2e]));return _0x3d9026[_0x7c2b77([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x120f92=>_0x120f92[_0x7c2b77([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7c2b77([0x2a])))[_0x7c2b77([0x6d,0x61,0x70])](_0x2f0ce9=>_0x2f0ce9[_0x7c2b77([0x73,0x70,0x6c,0x69,0x74])](_0x7c2b77([0x2e])))[_0x7c2b77([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4fbc4c=>_0x4fbc4c[_0x7c2b77([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x394f8b[_0x7c2b77([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7c2b77([0x6d,0x61,0x70])](_0x3f5787=>Array(_0x394f8b[_0x7c2b77([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3f5787[_0x7c2b77([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7c2b77([0x66,0x69,0x6c,0x6c])](_0x3f5787[0x0]===_0x7c2b77([0x2a])?_0x7c2b77([0x2a]):'')[_0x7c2b77([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3f5787))[_0x7c2b77([0x73,0x6f,0x6d,0x65])](_0xabd416=>_0x394f8b[_0x7c2b77([0x65,0x76,0x65,0x72,0x79])]((_0x150c09,_0x40d476)=>_0xabd416[_0x40d476]===_0x150c09||_0xabd416[_0x40d476]===_0x7c2b77([0x2a])));}function _0x353811(){return _0x12cfa5&&_0x5d23f0?new window[(_0x7c2b77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdf0481,_0x5513d1)=>{_0x12cfa5[_0x7c2b77([0x74,0x68,0x65,0x6e])](_0xdf0481,_0x5513d1),_0x5d23f0[_0x7c2b77([0x74,0x68,0x65,0x6e])](_0x43e2cf=>{_0x43e2cf!=_0x7c2b77([0x56,0x61,0x6c,0x69,0x64])&&_0xdf0481(_0x43e2cf);},_0x5513d1);}):_0x12cfa5||_0x5d23f0||_0x7c2b77([0x56,0x61,0x6c,0x69,0x64]);}}function _0x26bf40(_0x29353d,_0x24f5c5){return new window[(_0x7c2b77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34136a=>{if(_0x2cfc02())return _0x34136a(_0x7c2b77([0x56,0x61,0x6c,0x69,0x64]));_0x4dc107(),_0x3f230d[_0x7c2b77([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x7c2b77([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x228386=!0x1;const _0xc2f7de=_0x3a08f5();function _0x335e7a(_0x4172b3){return!!_0x4172b3&&(typeof _0x4172b3===_0x7c2b77([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4172b3===_0x7c2b77([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4172b3[_0x7c2b77([0x74,0x68,0x65,0x6e])]===_0x7c2b77([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4172b3[_0x7c2b77([0x63,0x61,0x74,0x63,0x68])]===_0x7c2b77([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf7d90a(_0x1a8290){_0x34dcab(_0x1a8290)[_0x7c2b77([0x74,0x68,0x65,0x6e])](_0x474edd=>{if(!_0x474edd||_0x474edd[_0x7c2b77([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x7c2b77([0x6f,0x6b]))return _0x7c2b77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x47cbdc(_0x27100b(_0xc2f7de+_0x24f5c5))!=_0x474edd[_0x7c2b77([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x7c2b77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x7c2b77([0x56,0x61,0x6c,0x69,0x64]);})[_0x7c2b77([0x74,0x68,0x65,0x6e])](_0x2324bf=>(_0xc5a3b(),_0x2324bf),()=>{const _0x43f43e=_0x20abaa();return null==_0x43f43e?(_0xc5a3b(),_0x7c2b77([0x56,0x61,0x6c,0x69,0x64])):_0x7c2b77(_0x4436b7-_0x43f43e>(0x60c16d89^_0xca9258)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x7c2b77([0x74,0x68,0x65,0x6e])](_0x34136a)[_0x7c2b77([0x63,0x61,0x74,0x63,0x68])](()=>{_0x34136a(_0x7c2b77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2c10d8=0x44fb0709^_0xca9258;function _0xc5a3b(){const _0x389b4c=_0x7c2b77([0x6c,0x6c,0x63,0x74,0x2d])+_0x47cbdc(_0x27100b(_0x29353d)),_0xa42bd3=_0x588b52(_0x47cbdc(window[_0x7c2b77([0x4d,0x61,0x74,0x68])][_0x7c2b77([0x63,0x65,0x69,0x6c])](_0x4436b7/_0x2c10d8)));window[_0x7c2b77([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7c2b77([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x389b4c,_0xa42bd3);}function _0x20abaa(){const _0x3679c6=_0x7c2b77([0x6c,0x6c,0x63,0x74,0x2d])+_0x47cbdc(_0x27100b(_0x29353d)),_0x1a49c8=window[_0x7c2b77([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7c2b77([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3679c6);return _0x1a49c8?window[_0x7c2b77([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x588b52(_0x1a49c8),0x10)*_0x2c10d8:null;}function _0x34dcab(_0x226a85){return new window[(_0x7c2b77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x429cf1,_0x342dc4)=>{_0x226a85[_0x7c2b77([0x74,0x68,0x65,0x6e])](_0x429cf1,_0x342dc4),window[_0x7c2b77([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x342dc4,0x44cc3d49^_0xca9258);});}}_0x3f230d[_0x7c2b77([0x6f,0x6e])](_0x7c2b77([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4283a3,_0x4fe62f)=>{if(_0x4fe62f[0x0]!=_0x29353d)return _0x34136a(_0x7c2b77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4fe62f[0x1]={..._0x4fe62f[0x1],[_0x7c2b77([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc2f7de};},{[_0x7c2b77([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7c2b77([0x68,0x69,0x67,0x68])}),_0x3f230d[_0x7c2b77([0x6f,0x6e])](_0x7c2b77([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x17563a=>{_0x335e7a(_0x17563a[_0x7c2b77([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x228386=!0x0,_0xf7d90a(_0x17563a[_0x7c2b77([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x7c2b77([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7c2b77([0x6c,0x6f,0x77])}),_0x551fd9[_0x7c2b77([0x74,0x68,0x65,0x6e])](()=>{_0x228386||_0x34136a(_0x7c2b77([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2cfc02(){return _0x3f230d[_0x7c2b77([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7c2b77([0x76,0x69,0x65,0x77])][_0x7c2b77([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x7c2b77([0x61,0x75,0x74,0x6f]);}function _0x4dc107(){_0x3f230d[_0x7c2b77([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7c2b77([0x76,0x69,0x65,0x77])][_0x7c2b77([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7c2b77([0x61,0x75,0x74,0x6f]);}}function _0x16a3a3(_0x200ceb){const _0x446665=[new window[(_0x7c2b77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b85d1=>setTimeout(_0x2b85d1,0x44c4d745^_0xca9258)),_0x551fd9[_0x7c2b77([0x74,0x68,0x65,0x6e])](()=>new window[(_0x7c2b77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8fc43e=>{let _0x5a846b=0x0;_0x3f230d[_0x7c2b77([0x6d,0x6f,0x64,0x65,0x6c])][_0x7c2b77([0x6f,0x6e])](_0x7c2b77([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x48b159,_0x6325e0)=>{_0x6325e0[0x0][_0x7c2b77([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5a846b++,_0x5a846b==(0x44cde871^_0xca9258)&&(_0x8fc43e(),_0x48b159[_0x7c2b77([0x6f,0x66,0x66])]());});}))];return window[_0x7c2b77([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7c2b77([0x72,0x61,0x63,0x65])](_0x446665)[_0x7c2b77([0x74,0x68,0x65,0x6e])](()=>_0x200ceb);}async function _0x480edf(){await _0x551fd9,_0x3f230d[_0x7c2b77([0x6d,0x6f,0x64,0x65,0x6c])][_0x7c2b77([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2fde6a,_0x3f230d[_0x7c2b77([0x6d,0x6f,0x64,0x65,0x6c])][_0x7c2b77([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2fde6a,_0x3f230d[_0x7c2b77([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x7c2b77([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19c080(_0x48ea01){const _0x3f21ea=_0x3f5532();_0x3f230d[_0x3f21ea]=_0x7c2b77([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x48ea01,_0x48ea01!=_0x7c2b77([0x56,0x61,0x6c,0x69,0x64])&&_0x480edf();}function _0x3f5532(){const _0x920f09=window[_0x7c2b77([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x7c2b77([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x7c2b77([0x6e,0x6f,0x77])]())[_0x7c2b77([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x7c2b77([0x2e]),'');let _0x6b611a=_0x7c2b77([0x71]);for(let _0x218321=0x0;_0x218321<_0x920f09[_0x7c2b77([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x218321+=0x2){let _0x467827=window[_0x7c2b77([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x920f09[_0x7c2b77([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x218321,_0x218321+0x2));_0x467827>=_0x111cd1[_0x7c2b77([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x467827-=_0x111cd1[_0x7c2b77([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x6b611a+=_0x111cd1[_0x467827];}return _0x6b611a;}function _0x4a4f79(){const _0x18c8ef=_0x21adc5[_0x7c2b77([0x73,0x70,0x6c,0x69,0x74])](_0x7c2b77([0x2e]));if(0x3!=_0x18c8ef[_0x7c2b77([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b150f(_0x18c8ef[0x1]);function _0x2b150f(_0x3a9e76){const _0xe07714=_0x5bda45(_0x3a9e76);return _0xe07714&&_0x29ff78()?_0xe07714:null;function _0x29ff78(){const _0x1ff38f=_0xe07714[_0x7c2b77([0x6a,0x74,0x69])],_0xb4a8e6=window[_0x7c2b77([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ff38f[_0x7c2b77([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ff38f[_0x7c2b77([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x40522b={..._0xe07714,[_0x7c2b77([0x6a,0x74,0x69])]:_0x1ff38f[_0x7c2b77([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ff38f[_0x7c2b77([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x40522b[_0x7c2b77([0x76,0x63])],_0x27100b(_0x40522b)==_0xb4a8e6;}}}async function _0x4bf2df(){let _0x5b8a40=!0x0;try{const _0x1f1f09=_0x21adc5[_0x7c2b77([0x73,0x70,0x6c,0x69,0x74])](_0x7c2b77([0x2e])),[_0x45107e,_0x51c6f4,_0x3c3841]=_0x1f1f09;return _0x3008a3(_0x45107e),await _0x1c3164(_0x45107e,_0x51c6f4,_0x3c3841),_0x5b8a40;}catch{return!0x1;}function _0x3008a3(_0x381719){const _0x1c7a90=_0x5bda45(_0x381719);_0x1c7a90&&_0x1c7a90[_0x7c2b77([0x61,0x6c,0x67])]==_0x7c2b77([0x45,0x53,0x32,0x35,0x36])||(_0x5b8a40=!0x1);}async function _0x1c3164(_0x41c4f9,_0x237e78,_0x2f4488){const _0x33d80d=window[_0x7c2b77([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x7c2b77([0x66,0x72,0x6f,0x6d])](_0x5156ef(_0x2f4488),_0x305a68=>_0x305a68[_0x7c2b77([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x384593=new window[(_0x7c2b77([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x7c2b77([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x41c4f9+_0x7c2b77([0x2e])+_0x237e78),_0x5232c3=window[_0x7c2b77([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x7c2b77([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5232c3)return;const _0x5e6aca=await _0x5232c3[_0x7c2b77([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x7c2b77([0x6a,0x77,0x6b]),_0x1369bf,{[_0x7c2b77([0x6e,0x61,0x6d,0x65])]:_0x7c2b77([0x45,0x43,0x44,0x53,0x41]),[_0x7c2b77([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x7c2b77([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x7c2b77([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5232c3[_0x7c2b77([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x7c2b77([0x6e,0x61,0x6d,0x65])]:_0x7c2b77([0x45,0x43,0x44,0x53,0x41]),[_0x7c2b77([0x68,0x61,0x73,0x68])]:{[_0x7c2b77([0x6e,0x61,0x6d,0x65])]:_0x7c2b77([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5e6aca,_0x33d80d,_0x384593)||(_0x5b8a40=!0x1);}}function _0x5bda45(_0x419725){return _0x419725[_0x7c2b77([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x7c2b77([0x65,0x79]))?JSON[_0x7c2b77([0x70,0x61,0x72,0x73,0x65])](_0x5156ef(_0x419725)):null;}function _0x5156ef(_0x9fce7e){return window[_0x7c2b77([0x61,0x74,0x6f,0x62])](_0x9fce7e[_0x7c2b77([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x7c2b77([0x2b]))[_0x7c2b77([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x7c2b77([0x2f])));}function _0x27100b(_0x2d4e2f){let _0x168e64=0x1505;function _0x55e179(_0x51ec2d){for(let _0xe255fe=0x0;_0xe255fe<_0x51ec2d[_0x7c2b77([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe255fe++){const _0x9508ed=_0x51ec2d[_0x7c2b77([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe255fe);_0x168e64=(_0x168e64<<0x5)+_0x168e64+_0x9508ed,_0x168e64&=_0x168e64;}}function _0x65da14(_0xefeb4f){Array[_0x7c2b77([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xefeb4f)?_0xefeb4f[_0x7c2b77([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x65da14):_0xefeb4f&&typeof _0xefeb4f==_0x7c2b77([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x7c2b77([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xefeb4f)[_0x7c2b77([0x73,0x6f,0x72,0x74])]()[_0x7c2b77([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3ec7e8,_0x3bd89e])=>{_0x55e179(_0x3ec7e8),_0x65da14(_0x3bd89e);}):_0x55e179(window[_0x7c2b77([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xefeb4f));}return _0x65da14(_0x2d4e2f),_0x168e64>>>0x0;}function _0x47cbdc(_0x1852a2){return _0x1852a2[_0x7c2b77([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x7c2b77([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x7c2b77([0x30]));}function _0x588b52(_0x1bc2d6){return _0x1bc2d6[_0x7c2b77([0x73,0x70,0x6c,0x69,0x74])]('')[_0x7c2b77([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x7c2b77([0x6a,0x6f,0x69,0x6e])]('');}function _0x2fde6a(){}function _0x7c2b77(_0x313814){return _0x313814['map'](_0x22402a=>String['fromCharCode'](_0x22402a))['join']('');}_0x19c080(await _0x57cf0b());}(this);}['_initSchema'](){const _0x4368a4=this['editor']['model']['schema'];_0x4368a4['isRegistered']('imageBlock')&&_0x4368a4['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4368a4['isRegistered']('imageInline')&&_0x4368a4['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x75635=this['editor'];_0x75635['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x75635['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1a7196=>_0x1a7196['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3ba503=_0x75635['commands']['get']('replaceImageSource');_0x3ba503&&this['listenTo'](_0x3ba503,'cleanupImage',(_0x24fbff,[_0x10c37e,_0x522d9f])=>{_0x10c37e['removeAttribute']('uploadcareImageId',_0x522d9f);});}['_initConfig'](){const _0x2be50a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x23794c=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x124f34(_0x4e8a95['document'],'uc-config',{..._0x2be50a,'pubkey':_0x23794c,'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']=_0x1ae262=>{if('closeMax'==_0x1ae262)return'#uc-icon-arrow-down';},_0x4e8a95['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x124f34(_0x4e8a95['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x4e8a95['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x22aec9=this['editor']['commands']['get']('insertImage');_0x22aec9&&this['listenTo'](_0x22aec9,'execute',()=>{const _0x1b4335=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1b4335&&_0x1b4335['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1b4335);});});const _0xd5c1cd=this['editor']['commands']['get']('uploadcareImageReplace');_0xd5c1cd&&this['listenTo'](_0xd5c1cd,'execute',()=>{const _0x5dbc8b=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5dbc8b&&_0x5dbc8b['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5dbc8b);});});}}class tt extends _0x17d3c0{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x323a2b){super(_0x323a2b),_0x323a2b['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2b731d['defineComponents'](_0x2b731d);}}class ii extends _0x2e234f{constructor(_0xa68773){super(_0xa68773);const t=_0xa68773['t'],_0x2afa8d=this['bindTemplate'],_0x28c24d=new _0x73312c();_0x28c24d['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':[_0x28c24d,{'text':_0x2afa8d['to']('imageUploadProgress',_0x1c867a=>t('Loading\x20image...')+'\x20('+(_0x1c867a||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 _0x2e234f{constructor(_0x5e3c38){super(_0x5e3c38);const t=_0x5e3c38['t'];this['set']('errorType',null);const _0x25e5e6=new _0x432ee6(_0x5e3c38);_0x25e5e6['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x25e5e6['withText']=!0x0,_0x25e5e6['class']='ck-button-action',_0x25e5e6['on']('execute',()=>{this['fire']('retry');}),_0x25e5e6['bind']('isVisible')['to'](this,'errorType',_0x3d0561=>'NotFound'!==_0x3d0561);const _0xba149b=new _0x148007();_0xba149b['content']=_0x23cb5c,_0xba149b['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x26e7be=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':[_0xba149b,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x26e7be['to']('errorType',_0x2c2645=>t('NotFound'!==_0x2c2645?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x25e5e6]},{'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 _0x2e234f{constructor(_0x6ac5c2,_0x7529ff){super(_0x6ac5c2);const _0x340ffb=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x7529ff,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x340ffb['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4dbb7c,_0x570bac,_0x587906){super(_0x4dbb7c),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x4dbb7c),this['_errorView']=new ti(_0x4dbb7c),this['_editingView']=new ei(_0x4dbb7c,_0x587906),this['_focusableView']=new _0x2e234f(_0x4dbb7c),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x570bac),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'],_0x544679=>{this['_addUploadcareImageEditorListeners'](_0x544679);});}),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'](_0x146657,_0x547f75){const _0x39dbce='uc-cloud-image-editor',_0x5ca6a9=_0x146657['querySelector'](_0x39dbce);if(_0x5ca6a9)return _0x547f75(_0x5ca6a9);const _0x4502c6=new MutationObserver(_0x181d96=>{const _0x38ae43=_0x181d96['filter'](_0x2e6be6=>_0x2e6be6['target']===_0x146657&&_0x2e6be6['addedNodes']['length']>0x0&&_0x2e6be6['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x39dbce);_0x38ae43['length']&&(_0x4502c6['disconnect'](),_0x547f75(_0x38ae43[0x0]['addedNodes'][0x0]));});_0x4502c6['observe'](_0x146657,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x100d83){_0x100d83['addEventListener']('apply',_0x264faa=>{this['fire']('apply',{'imageSrc':_0x264faa['detail']['cdnUrl']});}),_0x100d83['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2d13b4(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x2bd891,_0x3075b0,_0x33514f){super(),this['_editor']=_0x2bd891,this['_dialog']=_0x3075b0,this['_imageElement']=_0x33514f,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 _0x58a7ee=this['_imageElement'],_0x2b2963=_0x58a7ee['getAttribute']('uploadcareImageId'),_0xca453c=_0x58a7ee['getAttribute']('src');if(_0x2b2963)await this['_loadImageInfo'](_0x2b2963,_0xca453c);else{if(this['_imageCache']['has'](_0xca453c)){const _0xc54e7c=this['_imageCache']['get'](_0xca453c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xc54e7c['url'],this['imageDimension']=_0xc54e7c['dimension'],this['imageId']=_0xc54e7c['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5cbe13}=this['_editor'],t=_0x5cbe13['t'],_0x5d9d5a=new X(_0x5cbe13,this['imageStatus'],this['_attributes']);_0x5d9d5a['bind']('status')['to'](this,'imageStatus'),_0x5d9d5a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5d9d5a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5d9d5a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5d9d5a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3008bd,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5d9d5a,'position':_0x30357e['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5d9d5a['focus']();},'onHide':()=>{_0x5d9d5a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x30679d=>!S(_0x30679d,_0x5d9d5a['element'])}});}['_loadImageInfo'](_0x3bf5ed,_0x101a0d){return j['getInfo'](_0x3bf5ed,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x2f0555=>{const {width:_0x2bda34,height:_0x4d342b}=_0x2f0555['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x101a0d,this['imageDimension']={'width':_0x2bda34,'height':_0x4d342b},this['imageId']=_0x3bf5ed;})['catch'](_0x38881c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x38881c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x360160,_0x360ae0){return this['_getImageAsFile'](_0x360160)['then'](_0x2a416b=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x360ae0['signal'],'file':_0x2a416b,'onProgress':_0x3ea1e8=>{_0x3ea1e8&&_0x3ea1e8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3ea1e8['value']));}}))['then'](_0x3909ef=>{const {width:_0x4ae923,height:_0x47375d}=_0x3909ef['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3909ef['cdnUrl'],this['imageDimension']={'width':_0x4ae923,'height':_0x47375d},this['imageId']=_0x3909ef['uuid'],this['imageUploadProgress']=null;const _0x1abd61=_0x360160['getAttribute']('src');this['_imageCache']['set'](_0x1abd61,{'id':_0x3909ef['uuid'],'url':_0x3909ef['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x5538d6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x5538d6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x3d6da1,_0x4f7c48){_0x3d6da1['on']('apply',(_0x40a00d,_0x612c72)=>{this['_replaceImage'](_0x4f7c48,_0x612c72['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x3d6da1['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x3d6da1['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5997a0,_0x4e4e72,_0x2d8fb1){const _0x566212=this['_editor'],{width:_0x2614ae,height:_0x17f6cb}=C(_0x4e4e72,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x1b87c9,imageSources:_0x3d17c6}=k(_0x4e4e72,_0x2614ae);_0x566212['model']['change'](_0x7ec699=>{if('$graveyard'===_0x5997a0['root']['rootName']){_0x566212['execute']('insertImage',{'imageType':_0x5997a0['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5997a0['getAttributes']()),'uploadcareImageId':_0x2d8fb1,'src':_0x1b87c9,'sources':_0x3d17c6,'width':_0x2614ae,'height':_0x17f6cb}});const _0x5ec671=_0x5997a0['getChildren']();_0x5997a0=_0x566212['model']['document']['selection']['getSelectedElement']();for(const _0x1d5a2b of _0x5ec671)_0x7ec699['append'](_0x7ec699['cloneElement'](_0x1d5a2b),_0x5997a0);}else _0x7ec699['setSelection'](_0x5997a0,'on'),_0x566212['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5997a0['getAttributes']()),'uploadcareImageId':_0x2d8fb1,'src':_0x1b87c9,'sources':_0x3d17c6,'width':_0x2614ae,'height':_0x17f6cb},_0x5997a0);_0x7ec699['setSelection'](_0x5997a0,'on');});}async['_getImageAsFile'](_0x3ff7cd){const _0x44e55e=_0x4e8a95['window'],_0x28caef=_0x4e8a95['document']['location']['href'],_0x1218e8=new _0x44e55e['URL'](_0x3ff7cd['getAttribute']('src'),_0x28caef);if('data:'===_0x1218e8['protocol']){const _0x2bb932=_0x1218e8['href']['split'](','),_0xa0fd4d=_0x2bb932[0x0]['match'](/:(.*?);/)[0x1],_0x231f32=_0xa0fd4d['split']('/')[0x1],_0x48ed43=_0x44e55e['atob'](_0x2bb932[_0x2bb932['length']-0x1]);let _0x26a689=_0x48ed43['length'];const _0x8d1e3f=new _0x44e55e['Uint8Array'](_0x26a689);for(;_0x26a689--;)_0x8d1e3f[_0x26a689]=_0x48ed43['charCodeAt'](_0x26a689);return new _0x44e55e['File']([_0x8d1e3f],'image.'+_0x231f32,{'type':_0xa0fd4d});}const _0x6d8c37=_0x1218e8['href']['split']('/'),_0x27cc14=_0x6d8c37[_0x6d8c37['length']-0x1],_0x557b1d=_0x27cc14['split']('.')[0x1];return _0x44e55e['fetch'](_0x1218e8['href'])['then'](_0x3fd0b8=>_0x3fd0b8['clone']()['blob']())['then'](_0x7796a=>new _0x44e55e['File']([_0x7796a],_0x27cc14,{'type':'image/'+_0x557b1d}));}}class O extends _0x371fa4{['imageEditController'];static get['requires'](){return[_0x2b6820];}['_isEditable'];constructor(_0x4e11d1){super(_0x4e11d1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0xdacc1a){const _0x809b67=G(_0xdacc1a);return _0x42323f=>!(!_0x42323f||!_0x42323f['is']('element','imageBlock')&&!_0x42323f['is']('element','imageInline'))&&(!!_0x42323f['hasAttribute']('uploadcareImageId')||!!_0x42323f['hasAttribute']('src')&&_0x809b67(_0x42323f['getAttribute']('src')));}(_0x4e11d1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x2f0dea=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x2f0dea);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2c067f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2c067f&&(_0x2c067f['is']('element','imageBlock')||_0x2c067f['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x2b6820),_0x2c067f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x371fa4{['refresh'](){const _0x12d48a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x12d48a&&(_0x12d48a['is']('element','imageBlock')||_0x12d48a['is']('element','imageInline')));}['execute'](_0x27a175){const _0x1fa581=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1f3ec6=>{_0x1f3ec6['setAttributes'](_0x27a175,_0x1fa581),_0x1f3ec6['removeAttribute']('srcset',_0x1fa581),_0x1f3ec6['removeAttribute']('sizes',_0x1fa581);});}}class m extends _0x17d3c0{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3c3f6e,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x271167}=this;_0x271167['commands']['add']('uploadcareImageEdit',new O(_0x271167)),_0x271167['commands']['add']('uploadcareImageReplace',new R(_0x271167));}}class g extends _0x17d3c0{['_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 _0xf3488b=this['editor'];_0xf3488b['ui']['componentFactory']['add']('uploadcareImageEdit',_0x12b641=>{const _0x5bc828=_0xf3488b['commands']['get']('uploadcareImageEdit'),_0x11136c=new _0x432ee6(_0x12b641),t=_0x12b641['t'];return _0x11136c['set']({'icon':_0x3008bd,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x11136c['bind']('isEnabled')['to'](_0x5bc828),_0x11136c['bind']('isOn')['to'](_0x5bc828,'isActive'),this['listenTo'](_0x11136c,'execute',()=>{_0xf3488b['execute']('uploadcareImageEdit'),_0xf3488b['editing']['view']['focus']();}),_0x11136c;}),this['_initConfig']();}['_initConfig'](){const _0x1db862=_0x124f34(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x1db862),this['listenTo'](this['editor'],'destroy',()=>{_0x1db862['remove']();});}}class et extends _0x17d3c0{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": "46.0.1-alpha.
|
|
3
|
+
"version": "46.0.1-alpha.13",
|
|
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": "46.0.1-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "46.0.1-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-image": "46.0.1-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "46.0.1-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.
|
|
33
|
-
"ckeditor5": "46.0.1-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "46.0.1-alpha.13",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "46.0.1-alpha.13",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "46.0.1-alpha.13",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "46.0.1-alpha.13",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "46.0.1-alpha.13",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "46.0.1-alpha.13",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "46.0.1-alpha.13",
|
|
33
|
+
"ckeditor5": "46.0.1-alpha.13",
|
|
34
34
|
"@uploadcare/file-uploader": "1.17.1",
|
|
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 _0x44c891=_0x5a90;(function(_0xe19174,_0x2751bf){const _0x2c4763=_0x5a90,_0xf8ca63=_0xe19174();while(!![]){try{const _0x296c04=parseInt(_0x2c4763(0x15c))/0x1+-parseInt(_0x2c4763(0x167))/0x2+parseInt(_0x2c4763(0x161))/0x3+parseInt(_0x2c4763(0x1a1))/0x4+-parseInt(_0x2c4763(0x194))/0x5+-parseInt(_0x2c4763(0x18e))/0x6*(-parseInt(_0x2c4763(0x17f))/0x7)+-parseInt(_0x2c4763(0x185))/0x8;if(_0x296c04===_0x2751bf)break;else _0xf8ca63['push'](_0xf8ca63['shift']());}catch(_0x3314ea){_0xf8ca63['push'](_0xf8ca63['shift']());}}}(_0x1167,0xa9981));import{Plugin as _0x35a118}from'ckeditor5/src/core.js';import{Dialog as _0x4f2df3}from'ckeditor5/src/ui.js';function _0x1167(){const _0x5193a2=['isRegistered','7mAoNNd','ctxElement','map','uploadcare','upcast','schema','11972360WvcmGL','render','configElement','_ctxElement','PictureEditing','init','true','replaceImageSource','pluginName','2341176wBqOpt','document','UploadcareEditing','\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','add','2732500XsSrzl','uploader-','appendChild','href','ucContextId','uploadcare.uploader','uploadcare.pubkey','_initConfig','model','uc-config','iconHrefResolver','imageBlock','input[uploadcare-file-input]','2527352dcfecg','cleanupImage','editing','body','locale','afterInit','remove','getSelectedElement','imageInline','_initSchema','attributeToAttribute','downcast','uc-upload-ctx-provider','uploadcareImageReplace','1328678IijmSL','closeMax','removeAttribute','get','editor','3604980YehNjE','conversion','elementToAttribute','once','selection','querySelector','1629340rPLIwL','isOfficialPlugin','getAttribute','fromCharCode','listenTo','_initImageProcessingIndicator','config','uploadcareImageId','isPremiumPlugin','view','requires','destroy','execute','_initCtx','join','_configElement','_initConversion','commands','extend','contentLanguage','data-uc-image-id','#uc-icon-arrow-down','insertImage'];_0x1167=function(){return _0x5193a2;};return _0x1167();}import{createElement as _0x3c89c9,global as _0x3b939a,uid as _0x5d22c6}from'ckeditor5/src/utils.js';function _0x5a90(_0x51e3a2,_0x4bd2f8){const _0x116755=_0x1167();return _0x5a90=function(_0x5a904c,_0x33f66b){_0x5a904c=_0x5a904c-0x153;let _0x52822e=_0x116755[_0x5a904c];return _0x52822e;},_0x5a90(_0x51e3a2,_0x4bd2f8);}import{UploadcareCommand as _0x56d449}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x408fdf}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x453ac8}from'./utils/editingutils.js';export class UploadcareEditing extends _0x35a118{[_0x44c891(0x176)]=null;[_0x44c891(0x188)]=null;static get[_0x44c891(0x18d)](){const _0x5b58a6=_0x44c891;return _0x5b58a6(0x190);}static get[_0x44c891(0x171)](){const _0x592e36=_0x44c891;return[_0x592e36(0x189),_0x408fdf,_0x4f2df3];}static get[_0x44c891(0x168)](){return!0x0;}static get[_0x44c891(0x16f)](){return!0x0;}[_0x44c891(0x198)];get[_0x44c891(0x187)](){const _0x376266=_0x44c891;return this[_0x376266(0x176)];}get[_0x44c891(0x180)](){const _0x2d1478=_0x44c891;return this[_0x2d1478(0x188)];}constructor(_0x128bd5){const _0x16b08a=_0x44c891;super(_0x128bd5),this[_0x16b08a(0x198)]=_0x5d22c6();}[_0x44c891(0x18a)](){const _0x50771a=_0x44c891,_0x3e4f0d=this[_0x50771a(0x160)];_0x3e4f0d[_0x50771a(0x178)][_0x50771a(0x193)](_0x50771a(0x182),new _0x56d449(_0x3e4f0d));}[_0x44c891(0x153)](){const _0x6c5158=_0x44c891;this[_0x6c5158(0x157)](),this[_0x6c5158(0x177)](),this[_0x6c5158(0x19b)](),this[_0x6c5158(0x174)](),this[_0x6c5158(0x16c)](),this[_0x6c5158(0x16b)](this[_0x6c5158(0x160)],_0x6c5158(0x172),()=>{const _0x147a63=_0x6c5158;this[_0x147a63(0x176)]&&(this[_0x147a63(0x176)][_0x147a63(0x154)](),this[_0x147a63(0x176)]=null),this[_0x147a63(0x188)]&&(this[_0x147a63(0x188)][_0x147a63(0x154)](),this[_0x147a63(0x188)]=null);const _0x135bfb=_0x3b939a[_0x147a63(0x18f)][_0x147a63(0x166)](_0x147a63(0x1a0));_0x135bfb&&_0x135bfb[_0x147a63(0x154)]();}),async function(_0x4e274b){const _0xe44e7=_0x27f8db([0x38,0x31,0x34,0x75,0x58,0x70,0x46,0x36,0x76,0x4b,0x66,0x59,0x72,0x74,0x57,0x4f,0x41,0x5a,0x4a,0x33,0x43,0x64,0x6e,0x50,0x52,0x69,0x49,0x6d,0x77,0x35,0x4e,0x30,0x6b,0x42,0x65,0x37,0x7a,0x51,0x53,0x62,0x78,0x56,0x45,0x71,0x44,0x61,0x32,0x68,0x63,0x6a,0x6c,0x47,0x55,0x6f,0x54,0x39,0x48,0x73,0x79,0x4d,0x4c,0x67]),_0xe4ba0a=0x4bda1088,_0x3ca562=0x4bdd7f68^_0xe4ba0a,_0x1bc4f9=window[_0x27f8db([0x44,0x61,0x74,0x65])][_0x27f8db([0x6e,0x6f,0x77])](),_0x229612=_0x4e274b[_0x27f8db([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x129f87=new window[(_0x27f8db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35c52e=>{_0x229612[_0x27f8db([0x6f,0x6e,0x63,0x65])](_0x27f8db([0x72,0x65,0x61,0x64,0x79]),_0x35c52e);}),_0x2d4707={[_0x27f8db([0x6b,0x74,0x79])]:_0x27f8db([0x45,0x43]),[_0x27f8db([0x75,0x73,0x65])]:_0x27f8db([0x73,0x69,0x67]),[_0x27f8db([0x63,0x72,0x76])]:_0x27f8db([0x50,0x2d,0x32,0x35,0x36]),[_0x27f8db([0x78])]:_0x27f8db([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]),[_0x27f8db([0x79])]:_0x27f8db([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]),[_0x27f8db([0x61,0x6c,0x67])]:_0x27f8db([0x45,0x53,0x32,0x35,0x36])},_0x2ef735=_0x229612[_0x27f8db([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x27f8db([0x67,0x65,0x74])](_0x27f8db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b4fdd(){let _0x2c9a48,_0x40b0f8=null,_0x3fccc3=null;try{if(_0x2ef735==_0x27f8db([0x47,0x50,0x4c]))return _0x27f8db([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c9a48=_0x2291d1(),!_0x2c9a48)return _0x27f8db([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2c9a48[_0x27f8db([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3fccc3=_0x378c43(_0x2c9a48[_0x27f8db([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c9a48[_0x27f8db([0x6a,0x74,0x69])])),await _0x5ed480()?_0x178eef()?_0x4b7aae()?_0x27f8db([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x59a5dd()?(_0x2c9a48[_0x27f8db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27f8db([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x40b0f8=_0x679bcb(_0x27f8db([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2c9a48[_0x27f8db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27f8db([0x74,0x72,0x69,0x61,0x6c])&&(_0x40b0f8=_0x679bcb(_0x27f8db([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb26d96()):_0x27f8db([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x27f8db([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x27f8db([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x27f8db([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b7aae(){const _0x491ca5=[_0x27f8db([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x27f8db([0x74,0x72,0x69,0x61,0x6c])][_0x27f8db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c9a48[_0x27f8db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1bc4f9/0x3e8:0xe10*_0x3ca562;return _0x2c9a48[_0x27f8db([0x65,0x78,0x70])]<_0x491ca5;}function _0x178eef(){const _0x3de463=_0x2c9a48[_0x27f8db([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3de463&&(!!_0x3de463[_0x27f8db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27f8db([0x2a]))||!!_0x3de463[_0x27f8db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27f8db([0x55,0x50,0x4c,0x43])));}function _0x59a5dd(){const _0x52b5f4=_0x5a90,_0x4b6220=_0x2c9a48[_0x27f8db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4b6220||0x0==_0x4b6220[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58e55b}=new URL(window[_0x27f8db([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x52b5f4(0x197)]);if(_0x4b6220[_0x27f8db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58e55b))return!0x0;const _0x2b4e2c=_0x58e55b[_0x27f8db([0x73,0x70,0x6c,0x69,0x74])](_0x27f8db([0x2e]));return _0x4b6220[_0x27f8db([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x74de8c=>_0x74de8c[_0x27f8db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27f8db([0x2a])))[_0x27f8db([0x6d,0x61,0x70])](_0x4be3a0=>_0x4be3a0[_0x27f8db([0x73,0x70,0x6c,0x69,0x74])](_0x27f8db([0x2e])))[_0x27f8db([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1742e8=>_0x1742e8[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2b4e2c[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27f8db([0x6d,0x61,0x70])](_0x36d296=>Array(_0x2b4e2c[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x36d296[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27f8db([0x66,0x69,0x6c,0x6c])](_0x36d296[0x0]===_0x27f8db([0x2a])?_0x27f8db([0x2a]):'')[_0x27f8db([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x36d296))[_0x27f8db([0x73,0x6f,0x6d,0x65])](_0x1c7a3a=>_0x2b4e2c[_0x27f8db([0x65,0x76,0x65,0x72,0x79])]((_0x17b2c0,_0x255764)=>_0x1c7a3a[_0x255764]===_0x17b2c0||_0x1c7a3a[_0x255764]===_0x27f8db([0x2a])));}function _0xb26d96(){return _0x40b0f8&&_0x3fccc3?new window[(_0x27f8db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x874c01,_0x34df91)=>{_0x40b0f8[_0x27f8db([0x74,0x68,0x65,0x6e])](_0x874c01,_0x34df91),_0x3fccc3[_0x27f8db([0x74,0x68,0x65,0x6e])](_0x39f6bb=>{_0x39f6bb!=_0x27f8db([0x56,0x61,0x6c,0x69,0x64])&&_0x874c01(_0x39f6bb);},_0x34df91);}):_0x40b0f8||_0x3fccc3||_0x27f8db([0x56,0x61,0x6c,0x69,0x64]);}}function _0x378c43(_0x303993,_0x164abb){return new window[(_0x27f8db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13b86d=>{if(_0xfc3be1())return _0x13b86d(_0x27f8db([0x56,0x61,0x6c,0x69,0x64]));_0x17ed69(),_0x229612[_0x27f8db([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x27f8db([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x20a582=!0x1;const _0x15877f=_0x5d22c6();function _0x5114dd(_0x384da5){return!!_0x384da5&&(typeof _0x384da5===_0x27f8db([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x384da5===_0x27f8db([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x384da5[_0x27f8db([0x74,0x68,0x65,0x6e])]===_0x27f8db([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x384da5[_0x27f8db([0x63,0x61,0x74,0x63,0x68])]===_0x27f8db([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4feaf5(_0x4078ff){_0x5b87aa(_0x4078ff)[_0x27f8db([0x74,0x68,0x65,0x6e])](_0x430b24=>{if(!_0x430b24||_0x430b24[_0x27f8db([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x27f8db([0x6f,0x6b]))return _0x27f8db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5b9eb7(_0x5df92e(_0x15877f+_0x164abb))!=_0x430b24[_0x27f8db([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x27f8db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x27f8db([0x56,0x61,0x6c,0x69,0x64]);})[_0x27f8db([0x74,0x68,0x65,0x6e])](_0x6238af=>(_0x228a21(),_0x6238af),()=>{const _0x2ce0ac=_0x260d7e();return null==_0x2ce0ac?(_0x228a21(),_0x27f8db([0x56,0x61,0x6c,0x69,0x64])):_0x27f8db(_0x1bc4f9-_0x2ce0ac>(0x6fd69488^_0xe4ba0a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x27f8db([0x74,0x68,0x65,0x6e])](_0x13b86d)[_0x27f8db([0x63,0x61,0x74,0x63,0x68])](()=>{_0x13b86d(_0x27f8db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7cff7a=0x4becfe08^_0xe4ba0a;function _0x228a21(){const _0x10102f=_0x27f8db([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b9eb7(_0x5df92e(_0x303993)),_0x3db09e=_0x23f667(_0x5b9eb7(window[_0x27f8db([0x4d,0x61,0x74,0x68])][_0x27f8db([0x63,0x65,0x69,0x6c])](_0x1bc4f9/_0x7cff7a)));window[_0x27f8db([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27f8db([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10102f,_0x3db09e);}function _0x260d7e(){const _0x4d106e=_0x27f8db([0x6c,0x6c,0x63,0x74,0x2d])+_0x5b9eb7(_0x5df92e(_0x303993)),_0xfc2bf=window[_0x27f8db([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27f8db([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4d106e);return _0xfc2bf?window[_0x27f8db([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23f667(_0xfc2bf),0x10)*_0x7cff7a:null;}function _0x5b87aa(_0x2ec5cd){return new window[(_0x27f8db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e0398,_0x3ddfeb)=>{_0x2ec5cd[_0x27f8db([0x74,0x68,0x65,0x6e])](_0x1e0398,_0x3ddfeb),window[_0x27f8db([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3ddfeb,0x4bdbc448^_0xe4ba0a);});}}_0x229612[_0x27f8db([0x6f,0x6e])](_0x27f8db([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3e5ef6,_0x4de1e5)=>{if(_0x4de1e5[0x0]!=_0x303993)return _0x13b86d(_0x27f8db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4de1e5[0x1]={..._0x4de1e5[0x1],[_0x27f8db([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15877f};},{[_0x27f8db([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27f8db([0x68,0x69,0x67,0x68])}),_0x229612[_0x27f8db([0x6f,0x6e])](_0x27f8db([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27c762=>{_0x5114dd(_0x27c762[_0x27f8db([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x20a582=!0x0,_0x4feaf5(_0x27c762[_0x27f8db([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x27f8db([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27f8db([0x6c,0x6f,0x77])}),_0x129f87[_0x27f8db([0x74,0x68,0x65,0x6e])](()=>{_0x20a582||_0x13b86d(_0x27f8db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xfc3be1(){return _0x229612[_0x27f8db([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27f8db([0x76,0x69,0x65,0x77])][_0x27f8db([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x27f8db([0x61,0x75,0x74,0x6f]);}function _0x17ed69(){_0x229612[_0x27f8db([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27f8db([0x76,0x69,0x65,0x77])][_0x27f8db([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27f8db([0x61,0x75,0x74,0x6f]);}}function _0x679bcb(_0x3bf28a){const _0x1cb8a1=[new window[(_0x27f8db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3678ef=>setTimeout(_0x3678ef,0x4bd32e44^_0xe4ba0a)),_0x129f87[_0x27f8db([0x74,0x68,0x65,0x6e])](()=>new window[(_0x27f8db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16b16d=>{let _0x3c7629=0x0;_0x229612[_0x27f8db([0x6d,0x6f,0x64,0x65,0x6c])][_0x27f8db([0x6f,0x6e])](_0x27f8db([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3ce76f,_0x26aa5c)=>{_0x26aa5c[0x0][_0x27f8db([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c7629++,_0x3c7629==(0x4bda1170^_0xe4ba0a)&&(_0x16b16d(),_0x3ce76f[_0x27f8db([0x6f,0x66,0x66])]());});}))];return window[_0x27f8db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27f8db([0x72,0x61,0x63,0x65])](_0x1cb8a1)[_0x27f8db([0x74,0x68,0x65,0x6e])](()=>_0x3bf28a);}async function _0x3ef0fe(){await _0x129f87,_0x229612[_0x27f8db([0x6d,0x6f,0x64,0x65,0x6c])][_0x27f8db([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x90bede,_0x229612[_0x27f8db([0x6d,0x6f,0x64,0x65,0x6c])][_0x27f8db([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x90bede,_0x229612[_0x27f8db([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x27f8db([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35b3e5(_0x44045e){const _0xf4d228=_0x150599();_0x229612[_0xf4d228]=_0x27f8db([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x44045e,_0x44045e!=_0x27f8db([0x56,0x61,0x6c,0x69,0x64])&&_0x3ef0fe();}function _0x150599(){const _0x161eb2=window[_0x27f8db([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x27f8db([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x27f8db([0x6e,0x6f,0x77])]())[_0x27f8db([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x27f8db([0x2e]),'');let _0x2dd471=_0x27f8db([0x75]);for(let _0x5df708=0x0;_0x5df708<_0x161eb2[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5df708+=0x2){let _0x57785f=window[_0x27f8db([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x161eb2[_0x27f8db([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5df708,_0x5df708+0x2));_0x57785f>=_0xe44e7[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x57785f-=_0xe44e7[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2dd471+=_0xe44e7[_0x57785f];}return _0x2dd471;}function _0x2291d1(){const _0x616f23=_0x2ef735[_0x27f8db([0x73,0x70,0x6c,0x69,0x74])](_0x27f8db([0x2e]));if(0x3!=_0x616f23[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x190327(_0x616f23[0x1]);function _0x190327(_0x55c43f){const _0x3805c1=_0x1801e0(_0x55c43f);return _0x3805c1&&_0x54d1b9()?_0x3805c1:null;function _0x54d1b9(){const _0x5dba3e=_0x3805c1[_0x27f8db([0x6a,0x74,0x69])],_0xe118cd=window[_0x27f8db([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dba3e[_0x27f8db([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5dba3e[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26be1f={..._0x3805c1,[_0x27f8db([0x6a,0x74,0x69])]:_0x5dba3e[_0x27f8db([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5dba3e[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26be1f[_0x27f8db([0x76,0x63])],_0x5df92e(_0x26be1f)==_0xe118cd;}}}async function _0x5ed480(){let _0x1e8b13=!0x0;try{const _0x17038c=_0x2ef735[_0x27f8db([0x73,0x70,0x6c,0x69,0x74])](_0x27f8db([0x2e])),[_0x49afc,_0x657011,_0x25d7b3]=_0x17038c;return _0x3fb476(_0x49afc),await _0x332388(_0x49afc,_0x657011,_0x25d7b3),_0x1e8b13;}catch{return!0x1;}function _0x3fb476(_0x1f2f6e){const _0x29b091=_0x1801e0(_0x1f2f6e);_0x29b091&&_0x29b091[_0x27f8db([0x61,0x6c,0x67])]==_0x27f8db([0x45,0x53,0x32,0x35,0x36])||(_0x1e8b13=!0x1);}async function _0x332388(_0x35394d,_0x25e90b,_0x360286){const _0x282845=window[_0x27f8db([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x27f8db([0x66,0x72,0x6f,0x6d])](_0x28d616(_0x360286),_0x72a077=>_0x72a077[_0x27f8db([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a044b=new window[(_0x27f8db([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x27f8db([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35394d+_0x27f8db([0x2e])+_0x25e90b),_0x1851de=window[_0x27f8db([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x27f8db([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1851de)return;const _0x10b405=await _0x1851de[_0x27f8db([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x27f8db([0x6a,0x77,0x6b]),_0x2d4707,{[_0x27f8db([0x6e,0x61,0x6d,0x65])]:_0x27f8db([0x45,0x43,0x44,0x53,0x41]),[_0x27f8db([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x27f8db([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x27f8db([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1851de[_0x27f8db([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x27f8db([0x6e,0x61,0x6d,0x65])]:_0x27f8db([0x45,0x43,0x44,0x53,0x41]),[_0x27f8db([0x68,0x61,0x73,0x68])]:{[_0x27f8db([0x6e,0x61,0x6d,0x65])]:_0x27f8db([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10b405,_0x282845,_0x5a044b)||(_0x1e8b13=!0x1);}}function _0x1801e0(_0x3a7261){return _0x3a7261[_0x27f8db([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x27f8db([0x65,0x79]))?JSON[_0x27f8db([0x70,0x61,0x72,0x73,0x65])](_0x28d616(_0x3a7261)):null;}function _0x28d616(_0x34d8bb){return window[_0x27f8db([0x61,0x74,0x6f,0x62])](_0x34d8bb[_0x27f8db([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x27f8db([0x2b]))[_0x27f8db([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x27f8db([0x2f])));}function _0x5df92e(_0x7fb643){let _0x53b035=0x1505;function _0xf2c44f(_0x404cb8){for(let _0x28b1a3=0x0;_0x28b1a3<_0x404cb8[_0x27f8db([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28b1a3++){const _0x5236e6=_0x404cb8[_0x27f8db([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x28b1a3);_0x53b035=(_0x53b035<<0x5)+_0x53b035+_0x5236e6,_0x53b035&=_0x53b035;}}function _0x124411(_0x3cb4e4){Array[_0x27f8db([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3cb4e4)?_0x3cb4e4[_0x27f8db([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x124411):_0x3cb4e4&&typeof _0x3cb4e4==_0x27f8db([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x27f8db([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3cb4e4)[_0x27f8db([0x73,0x6f,0x72,0x74])]()[_0x27f8db([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24be16,_0x234a71])=>{_0xf2c44f(_0x24be16),_0x124411(_0x234a71);}):_0xf2c44f(window[_0x27f8db([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3cb4e4));}return _0x124411(_0x7fb643),_0x53b035>>>0x0;}function _0x5b9eb7(_0xe8891c){return _0xe8891c[_0x27f8db([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x27f8db([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x27f8db([0x30]));}function _0x23f667(_0x3f0189){return _0x3f0189[_0x27f8db([0x73,0x70,0x6c,0x69,0x74])]('')[_0x27f8db([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x27f8db([0x6a,0x6f,0x69,0x6e])]('');}function _0x90bede(){}function _0x27f8db(_0x583b95){const _0x5d3141=_0x5a90;return _0x583b95[_0x5d3141(0x181)](_0x47bfcc=>String[_0x5d3141(0x16a)](_0x47bfcc))[_0x5d3141(0x175)]('');}_0x35b3e5(await _0x3b4fdd());}(this);}[_0x44c891(0x157)](){const _0x48a059=_0x44c891,_0x1efe49=this[_0x48a059(0x160)][_0x48a059(0x19c)][_0x48a059(0x184)];_0x1efe49[_0x48a059(0x17e)](_0x48a059(0x19f))&&_0x1efe49[_0x48a059(0x179)](_0x48a059(0x19f),{'allowAttributes':[_0x48a059(0x16e)]}),_0x1efe49[_0x48a059(0x17e)](_0x48a059(0x156))&&_0x1efe49[_0x48a059(0x179)](_0x48a059(0x156),{'allowAttributes':[_0x48a059(0x16e)]});}[_0x44c891(0x177)](){const _0x12a3cb=_0x44c891,_0x111a36=this[_0x12a3cb(0x160)];_0x111a36[_0x12a3cb(0x162)][_0x12a3cb(0x192)](_0x12a3cb(0x159))[_0x12a3cb(0x158)]({'model':_0x12a3cb(0x16e),'view':_0x12a3cb(0x17b)}),_0x111a36[_0x12a3cb(0x162)][_0x12a3cb(0x192)](_0x12a3cb(0x183))[_0x12a3cb(0x163)]({'model':{'key':_0x12a3cb(0x16e),'value':_0x1e0e90=>_0x1e0e90[_0x12a3cb(0x169)](_0x12a3cb(0x17b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5d0cc9=_0x111a36[_0x12a3cb(0x178)][_0x12a3cb(0x15f)](_0x12a3cb(0x18c));_0x5d0cc9&&this[_0x12a3cb(0x16b)](_0x5d0cc9,_0x12a3cb(0x1a2),(_0x2c1671,[_0x21edeb,_0x3b7cb6])=>{const _0x680f6c=_0x12a3cb;_0x21edeb[_0x680f6c(0x15e)](_0x680f6c(0x16e),_0x3b7cb6);});}[_0x44c891(0x19b)](){const _0x59353e=_0x44c891,_0x418ffd=this[_0x59353e(0x160)][_0x59353e(0x16d)][_0x59353e(0x15f)](_0x59353e(0x199))||{},_0x528bc5=this[_0x59353e(0x160)][_0x59353e(0x16d)][_0x59353e(0x15f)](_0x59353e(0x19a))||'';this[_0x59353e(0x176)]=_0x3c89c9(_0x3b939a[_0x59353e(0x18f)],_0x59353e(0x19d),{..._0x418ffd,'pubkey':_0x528bc5,'ctx-name':_0x59353e(0x195)+this[_0x59353e(0x198)],'sourceList':'','imgOnly':_0x59353e(0x18b),'removeCopyright':_0x59353e(0x18b),'localeName':this[_0x59353e(0x160)][_0x59353e(0x1a5)][_0x59353e(0x17a)],'externalSourcesEmbedCss':_0x59353e(0x191)}),this[_0x59353e(0x176)][_0x59353e(0x19e)]=_0x5cf8a2=>{const _0x1d3469=_0x59353e;if(_0x1d3469(0x15d)==_0x5cf8a2)return _0x1d3469(0x17c);},_0x3b939a[_0x59353e(0x18f)][_0x59353e(0x1a4)][_0x59353e(0x196)](this[_0x59353e(0x176)]);}[_0x44c891(0x174)](){const _0x45145e=_0x44c891;this[_0x45145e(0x188)]=_0x3c89c9(_0x3b939a[_0x45145e(0x18f)],_0x45145e(0x15a),{'ctx-name':_0x45145e(0x195)+this[_0x45145e(0x198)]}),_0x3b939a[_0x45145e(0x18f)][_0x45145e(0x1a4)][_0x45145e(0x196)](this[_0x45145e(0x188)]);}[_0x44c891(0x16c)](){const _0x48b5da=_0x44c891,_0x510bbe=this[_0x48b5da(0x160)][_0x48b5da(0x178)][_0x48b5da(0x15f)](_0x48b5da(0x17d));_0x510bbe&&this[_0x48b5da(0x16b)](_0x510bbe,_0x48b5da(0x173),()=>{const _0x45f417=_0x48b5da,_0x279f0e=this[_0x45f417(0x160)][_0x45f417(0x19c)][_0x45f417(0x18f)][_0x45f417(0x165)][_0x45f417(0x155)]();_0x279f0e&&_0x279f0e[_0x45f417(0x169)](_0x45f417(0x16e))&&this[_0x45f417(0x160)][_0x45f417(0x1a3)][_0x45f417(0x170)][_0x45f417(0x164)](_0x45f417(0x186),()=>{const _0x1be854=_0x45f417;_0x453ac8(this[_0x1be854(0x160)],_0x279f0e);});});const _0x3eadde=this[_0x48b5da(0x160)][_0x48b5da(0x178)][_0x48b5da(0x15f)](_0x48b5da(0x15b));_0x3eadde&&this[_0x48b5da(0x16b)](_0x3eadde,_0x48b5da(0x173),()=>{const _0x5b5ebf=_0x48b5da,_0x2f0ffe=this[_0x5b5ebf(0x160)][_0x5b5ebf(0x19c)][_0x5b5ebf(0x18f)][_0x5b5ebf(0x165)][_0x5b5ebf(0x155)]();_0x2f0ffe&&_0x2f0ffe[_0x5b5ebf(0x169)](_0x5b5ebf(0x16e))&&this[_0x5b5ebf(0x160)][_0x5b5ebf(0x1a3)][_0x5b5ebf(0x170)][_0x5b5ebf(0x164)](_0x5b5ebf(0x186),()=>{const _0x5b1f24=_0x5b5ebf;_0x453ac8(this[_0x5b1f24(0x160)],_0x2f0ffe);});});}}
|
|
23
|
+
function _0x267f(){const _0x420cc7=['for','schema','isRegistered','init','_initImageProcessingIndicator','appendChild','contentLanguage','model','commands','uploadcare.uploader','cleanupImage','data-uc-image-id','#uc-icon-arrow-down','afterInit','downcast','input[uploadcare-file-input]','2254401lWiqUn','closeMax','elementToAttribute','isOfficialPlugin','editor','fromCharCode','get','30WZBGpA','insertImage','true','add','once','_initCtx','\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','820096nDwOsB','isPremiumPlugin','body','36498yQTCYb','_initConversion','href','view','conversion','imageBlock','uploadcareImageId','join','listenTo','extend','remove','render','1471QuDQDC','map','document','uploadcare','uc-upload-ctx-provider','464zoWlrC','replaceImageSource','pluginName','attributeToAttribute','_initConfig','removeAttribute','execute','selection','ucContextId','_ctxElement','UploadcareEditing','_configElement','querySelector','10GIrIlg','destroy','imageInline','iconHrefResolver','3440185CVOQhn','getAttribute','requires','locale','PictureEditing','getSelectedElement','configElement','uploadcareImageReplace','_initSchema','1257135dGcSqU','editing','uploader-','uploadcare.pubkey','config','upcast','uc-config','3458952VKcdnj','ctxElement'];_0x267f=function(){return _0x420cc7;};return _0x267f();}const _0x56de91=_0x1a72;(function(_0x4ec8b1,_0x184ab5){const _0x30bbc1=_0x1a72,_0x3dc51d=_0x4ec8b1();while(!![]){try{const _0x4edeb1=-parseInt(_0x30bbc1(0x1f6))/0x1*(-parseInt(_0x30bbc1(0x1fb))/0x2)+parseInt(_0x30bbc1(0x1c0))/0x3+parseInt(_0x30bbc1(0x1e7))/0x4+-parseInt(_0x30bbc1(0x208))/0x5*(-parseInt(_0x30bbc1(0x1ea))/0x6)+parseInt(_0x30bbc1(0x1b7))/0x7+-parseInt(_0x30bbc1(0x1c7))/0x8+-parseInt(_0x30bbc1(0x1d9))/0x9*(parseInt(_0x30bbc1(0x1e0))/0xa);if(_0x4edeb1===_0x184ab5)break;else _0x3dc51d['push'](_0x3dc51d['shift']());}catch(_0x3d082a){_0x3dc51d['push'](_0x3dc51d['shift']());}}}(_0x267f,0x459c6));import{Plugin as _0x584e40}from'ckeditor5/src/core.js';import{Dialog as _0x3aa71b}from'ckeditor5/src/ui.js';function _0x1a72(_0x5eb52b,_0x48bda8){const _0x267f24=_0x267f();return _0x1a72=function(_0x1a7209,_0x17c304){_0x1a7209=_0x1a7209-0x1b6;let _0x43bc77=_0x267f24[_0x1a7209];return _0x43bc77;},_0x1a72(_0x5eb52b,_0x48bda8);}import{createElement as _0x599feb,global as _0x180f5a,uid as _0x4469da}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x125769}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0xc3c4a3}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x4d3e18}from'./utils/editingutils.js';export class UploadcareEditing extends _0x584e40{[_0x56de91(0x206)]=null;[_0x56de91(0x204)]=null;static get[_0x56de91(0x1fd)](){const _0x5d65f4=_0x56de91;return _0x5d65f4(0x205);}static get[_0x56de91(0x1b9)](){const _0x92fedd=_0x56de91;return[_0x92fedd(0x1bb),_0xc3c4a3,_0x3aa71b];}static get[_0x56de91(0x1dc)](){return!0x0;}static get[_0x56de91(0x1e8)](){return!0x0;}[_0x56de91(0x203)];get[_0x56de91(0x1bd)](){const _0x30234e=_0x56de91;return this[_0x30234e(0x206)];}get[_0x56de91(0x1c8)](){const _0x5d6bde=_0x56de91;return this[_0x5d6bde(0x204)];}constructor(_0x15be87){const _0xed7b0c=_0x56de91;super(_0x15be87),this[_0xed7b0c(0x203)]=_0x4469da();}[_0x56de91(0x1cc)](){const _0x41230f=_0x56de91,_0x1ea771=this[_0x41230f(0x1dd)];_0x1ea771[_0x41230f(0x1d1)][_0x41230f(0x1e3)](_0x41230f(0x1f9),new _0x125769(_0x1ea771));}[_0x56de91(0x1d6)](){const _0x14fe6a=_0x56de91;this[_0x14fe6a(0x1bf)](),this[_0x14fe6a(0x1eb)](),this[_0x14fe6a(0x1ff)](),this[_0x14fe6a(0x1e5)](),this[_0x14fe6a(0x1cd)](),this[_0x14fe6a(0x1f2)](this[_0x14fe6a(0x1dd)],_0x14fe6a(0x209),()=>{const _0x513379=_0x14fe6a;this[_0x513379(0x206)]&&(this[_0x513379(0x206)][_0x513379(0x1f4)](),this[_0x513379(0x206)]=null),this[_0x513379(0x204)]&&(this[_0x513379(0x204)][_0x513379(0x1f4)](),this[_0x513379(0x204)]=null);const _0x532944=_0x180f5a[_0x513379(0x1f8)][_0x513379(0x207)](_0x513379(0x1d8));_0x532944&&_0x532944[_0x513379(0x1f4)]();}),async function(_0x44aead){const _0x6f5ce3=_0x1acdc6([0x71,0x72,0x39,0x70,0x65,0x69,0x66,0x78,0x4d,0x5a,0x6d,0x74,0x68,0x73,0x7a,0x75,0x6f,0x32,0x53,0x59,0x36,0x48,0x76,0x52,0x47,0x4a,0x34,0x63,0x56,0x37,0x6b,0x43,0x45,0x4e,0x4b,0x6a,0x62,0x61,0x35,0x57,0x38,0x4c,0x6c,0x55,0x51,0x44,0x6e,0x64,0x33,0x42,0x77,0x49,0x4f,0x79,0x46,0x54,0x50,0x30,0x31,0x41,0x58,0x67]),_0x7a7cfd=0x44cde989,_0x171fad=0x44ca9999^_0x7a7cfd,_0x38f3b6=window[_0x1acdc6([0x44,0x61,0x74,0x65])][_0x1acdc6([0x6e,0x6f,0x77])](),_0x5bcb09=_0x44aead[_0x1acdc6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53e28b=new window[(_0x1acdc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x232acc=>{_0x5bcb09[_0x1acdc6([0x6f,0x6e,0x63,0x65])](_0x1acdc6([0x72,0x65,0x61,0x64,0x79]),_0x232acc);}),_0x880327={[_0x1acdc6([0x6b,0x74,0x79])]:_0x1acdc6([0x45,0x43]),[_0x1acdc6([0x75,0x73,0x65])]:_0x1acdc6([0x73,0x69,0x67]),[_0x1acdc6([0x63,0x72,0x76])]:_0x1acdc6([0x50,0x2d,0x32,0x35,0x36]),[_0x1acdc6([0x78])]:_0x1acdc6([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]),[_0x1acdc6([0x79])]:_0x1acdc6([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]),[_0x1acdc6([0x61,0x6c,0x67])]:_0x1acdc6([0x45,0x53,0x32,0x35,0x36])},_0x3e154d=_0x5bcb09[_0x1acdc6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1acdc6([0x67,0x65,0x74])](_0x1acdc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5d60db(){let _0x1515f7,_0x483eb8=null,_0xd731e3=null;try{if(_0x3e154d==_0x1acdc6([0x47,0x50,0x4c]))return _0x1acdc6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1515f7=_0x1806d2(),!_0x1515f7)return _0x1acdc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1515f7[_0x1acdc6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd731e3=_0x2d2c1e(_0x1515f7[_0x1acdc6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1515f7[_0x1acdc6([0x6a,0x74,0x69])])),await _0x3e743e()?_0x140745()?_0x11467e()?_0x1acdc6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x292057()?(_0x1515f7[_0x1acdc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1acdc6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x483eb8=_0x2c81a7(_0x1acdc6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1515f7[_0x1acdc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1acdc6([0x74,0x72,0x69,0x61,0x6c])&&(_0x483eb8=_0x2c81a7(_0x1acdc6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x15db48()):_0x1acdc6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1acdc6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1acdc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1acdc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x11467e(){const _0x65db8=[_0x1acdc6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1acdc6([0x74,0x72,0x69,0x61,0x6c])][_0x1acdc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1515f7[_0x1acdc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38f3b6/0x3e8:0xe10*_0x171fad;return _0x1515f7[_0x1acdc6([0x65,0x78,0x70])]<_0x65db8;}function _0x140745(){const _0x1e14ab=_0x1515f7[_0x1acdc6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1e14ab&&(!!_0x1e14ab[_0x1acdc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1acdc6([0x2a]))||!!_0x1e14ab[_0x1acdc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1acdc6([0x55,0x50,0x4c,0x43])));}function _0x292057(){const _0x597d6d=_0x1a72,_0x3a582f=_0x1515f7[_0x1acdc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3a582f||0x0==_0x3a582f[_0x1acdc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xd62280}=new URL(window[_0x1acdc6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x597d6d(0x1ec)]);if(_0x3a582f[_0x1acdc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd62280))return!0x0;const _0x5b5a22=_0xd62280[_0x1acdc6([0x73,0x70,0x6c,0x69,0x74])](_0x1acdc6([0x2e]));return _0x3a582f[_0x1acdc6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a96b0=>_0x1a96b0[_0x1acdc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1acdc6([0x2a])))[_0x1acdc6([0x6d,0x61,0x70])](_0x5d725a=>_0x5d725a[_0x1acdc6([0x73,0x70,0x6c,0x69,0x74])](_0x1acdc6([0x2e])))[_0x1acdc6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31054a=>_0x31054a[_0x1acdc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5b5a22[_0x1acdc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1acdc6([0x6d,0x61,0x70])](_0xe8a456=>Array(_0x5b5a22[_0x1acdc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xe8a456[_0x1acdc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1acdc6([0x66,0x69,0x6c,0x6c])](_0xe8a456[0x0]===_0x1acdc6([0x2a])?_0x1acdc6([0x2a]):'')[_0x1acdc6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xe8a456))[_0x1acdc6([0x73,0x6f,0x6d,0x65])](_0x1683af=>_0x5b5a22[_0x1acdc6([0x65,0x76,0x65,0x72,0x79])]((_0x295df6,_0x4a1748)=>_0x1683af[_0x4a1748]===_0x295df6||_0x1683af[_0x4a1748]===_0x1acdc6([0x2a])));}function _0x15db48(){return _0x483eb8&&_0xd731e3?new window[(_0x1acdc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a8b79,_0x5f4081)=>{_0x483eb8[_0x1acdc6([0x74,0x68,0x65,0x6e])](_0x3a8b79,_0x5f4081),_0xd731e3[_0x1acdc6([0x74,0x68,0x65,0x6e])](_0x2943b8=>{_0x2943b8!=_0x1acdc6([0x56,0x61,0x6c,0x69,0x64])&&_0x3a8b79(_0x2943b8);},_0x5f4081);}):_0x483eb8||_0xd731e3||_0x1acdc6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d2c1e(_0x493332,_0x281925){return new window[(_0x1acdc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x567672=>{if(_0x20ac05())return _0x567672(_0x1acdc6([0x56,0x61,0x6c,0x69,0x64]));_0x186b9e(),_0x5bcb09[_0x1acdc6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1acdc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b83b3=!0x1;const _0x36557d=_0x4469da();function _0x25dc29(_0x5d2f95){return!!_0x5d2f95&&(typeof _0x5d2f95===_0x1acdc6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5d2f95===_0x1acdc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5d2f95[_0x1acdc6([0x74,0x68,0x65,0x6e])]===_0x1acdc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5d2f95[_0x1acdc6([0x63,0x61,0x74,0x63,0x68])]===_0x1acdc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x293453(_0x43a8f9){_0x1b4955(_0x43a8f9)[_0x1acdc6([0x74,0x68,0x65,0x6e])](_0x470b8d=>{if(!_0x470b8d||_0x470b8d[_0x1acdc6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1acdc6([0x6f,0x6b]))return _0x1acdc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3753d2(_0x18c824(_0x36557d+_0x281925))!=_0x470b8d[_0x1acdc6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1acdc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1acdc6([0x56,0x61,0x6c,0x69,0x64]);})[_0x1acdc6([0x74,0x68,0x65,0x6e])](_0x3c4fa7=>(_0x376312(),_0x3c4fa7),()=>{const _0x19249d=_0x48d25b();return null==_0x19249d?(_0x376312(),_0x1acdc6([0x56,0x61,0x6c,0x69,0x64])):_0x1acdc6(_0x38f3b6-_0x19249d>(0x60c16d89^_0x7a7cfd)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1acdc6([0x74,0x68,0x65,0x6e])](_0x567672)[_0x1acdc6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x567672(_0x1acdc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1464fe=0x44fb0709^_0x7a7cfd;function _0x376312(){const _0x2c2a05=_0x1acdc6([0x6c,0x6c,0x63,0x74,0x2d])+_0x3753d2(_0x18c824(_0x493332)),_0x1ecb81=_0x255579(_0x3753d2(window[_0x1acdc6([0x4d,0x61,0x74,0x68])][_0x1acdc6([0x63,0x65,0x69,0x6c])](_0x38f3b6/_0x1464fe)));window[_0x1acdc6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1acdc6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c2a05,_0x1ecb81);}function _0x48d25b(){const _0x8a7a16=_0x1acdc6([0x6c,0x6c,0x63,0x74,0x2d])+_0x3753d2(_0x18c824(_0x493332)),_0xa2dbb9=window[_0x1acdc6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1acdc6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8a7a16);return _0xa2dbb9?window[_0x1acdc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x255579(_0xa2dbb9),0x10)*_0x1464fe:null;}function _0x1b4955(_0x34cfce){return new window[(_0x1acdc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47176d,_0x4d96f7)=>{_0x34cfce[_0x1acdc6([0x74,0x68,0x65,0x6e])](_0x47176d,_0x4d96f7),window[_0x1acdc6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d96f7,0x44cc3d49^_0x7a7cfd);});}}_0x5bcb09[_0x1acdc6([0x6f,0x6e])](_0x1acdc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13dfde,_0x2c68e7)=>{if(_0x2c68e7[0x0]!=_0x493332)return _0x567672(_0x1acdc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c68e7[0x1]={..._0x2c68e7[0x1],[_0x1acdc6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x36557d};},{[_0x1acdc6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1acdc6([0x68,0x69,0x67,0x68])}),_0x5bcb09[_0x1acdc6([0x6f,0x6e])](_0x1acdc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53faa5=>{_0x25dc29(_0x53faa5[_0x1acdc6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b83b3=!0x0,_0x293453(_0x53faa5[_0x1acdc6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1acdc6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1acdc6([0x6c,0x6f,0x77])}),_0x53e28b[_0x1acdc6([0x74,0x68,0x65,0x6e])](()=>{_0x5b83b3||_0x567672(_0x1acdc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x20ac05(){return _0x5bcb09[_0x1acdc6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1acdc6([0x76,0x69,0x65,0x77])][_0x1acdc6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1acdc6([0x61,0x75,0x74,0x6f]);}function _0x186b9e(){_0x5bcb09[_0x1acdc6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1acdc6([0x76,0x69,0x65,0x77])][_0x1acdc6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1acdc6([0x61,0x75,0x74,0x6f]);}}function _0x2c81a7(_0x46af3a){const _0x120bf8=[new window[(_0x1acdc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58596c=>setTimeout(_0x58596c,0x44c4d745^_0x7a7cfd)),_0x53e28b[_0x1acdc6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1acdc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4eb2a8=>{let _0x3a0bf3=0x0;_0x5bcb09[_0x1acdc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1acdc6([0x6f,0x6e])](_0x1acdc6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x78d9e1,_0x3cd0eb)=>{_0x3cd0eb[0x0][_0x1acdc6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3a0bf3++,_0x3a0bf3==(0x44cde871^_0x7a7cfd)&&(_0x4eb2a8(),_0x78d9e1[_0x1acdc6([0x6f,0x66,0x66])]());});}))];return window[_0x1acdc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1acdc6([0x72,0x61,0x63,0x65])](_0x120bf8)[_0x1acdc6([0x74,0x68,0x65,0x6e])](()=>_0x46af3a);}async function _0x2cee04(){await _0x53e28b,_0x5bcb09[_0x1acdc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1acdc6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x141129,_0x5bcb09[_0x1acdc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1acdc6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x141129,_0x5bcb09[_0x1acdc6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1acdc6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa667cb(_0x1bf919){const _0x465274=_0x428143();_0x5bcb09[_0x465274]=_0x1acdc6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bf919,_0x1bf919!=_0x1acdc6([0x56,0x61,0x6c,0x69,0x64])&&_0x2cee04();}function _0x428143(){const _0x234ddc=window[_0x1acdc6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1acdc6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1acdc6([0x6e,0x6f,0x77])]())[_0x1acdc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1acdc6([0x2e]),'');let _0x27cfe1=_0x1acdc6([0x71]);for(let _0x2b0dd2=0x0;_0x2b0dd2<_0x234ddc[_0x1acdc6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2b0dd2+=0x2){let _0x545cbb=window[_0x1acdc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x234ddc[_0x1acdc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b0dd2,_0x2b0dd2+0x2));_0x545cbb>=_0x6f5ce3[_0x1acdc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x545cbb-=_0x6f5ce3[_0x1acdc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x27cfe1+=_0x6f5ce3[_0x545cbb];}return _0x27cfe1;}function _0x1806d2(){const _0xc22ee4=_0x3e154d[_0x1acdc6([0x73,0x70,0x6c,0x69,0x74])](_0x1acdc6([0x2e]));if(0x3!=_0xc22ee4[_0x1acdc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4212fd(_0xc22ee4[0x1]);function _0x4212fd(_0xeb20d8){const _0x14b70d=_0x4b98d4(_0xeb20d8);return _0x14b70d&&_0xd0024a()?_0x14b70d:null;function _0xd0024a(){const _0x169231=_0x14b70d[_0x1acdc6([0x6a,0x74,0x69])],_0xd7b9f7=window[_0x1acdc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x169231[_0x1acdc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x169231[_0x1acdc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x192916={..._0x14b70d,[_0x1acdc6([0x6a,0x74,0x69])]:_0x169231[_0x1acdc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x169231[_0x1acdc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x192916[_0x1acdc6([0x76,0x63])],_0x18c824(_0x192916)==_0xd7b9f7;}}}async function _0x3e743e(){let _0x32ff71=!0x0;try{const _0x5a8e41=_0x3e154d[_0x1acdc6([0x73,0x70,0x6c,0x69,0x74])](_0x1acdc6([0x2e])),[_0x2b9a11,_0x4154ea,_0xddc0ab]=_0x5a8e41;return _0x1b02ba(_0x2b9a11),await _0x1a0b4c(_0x2b9a11,_0x4154ea,_0xddc0ab),_0x32ff71;}catch{return!0x1;}function _0x1b02ba(_0x3e62fd){const _0x3cb078=_0x4b98d4(_0x3e62fd);_0x3cb078&&_0x3cb078[_0x1acdc6([0x61,0x6c,0x67])]==_0x1acdc6([0x45,0x53,0x32,0x35,0x36])||(_0x32ff71=!0x1);}async function _0x1a0b4c(_0x32f6f5,_0x3a38bc,_0x188ead){const _0x43c78d=window[_0x1acdc6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1acdc6([0x66,0x72,0x6f,0x6d])](_0x51c3ce(_0x188ead),_0x5d1a4d=>_0x5d1a4d[_0x1acdc6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x538f51=new window[(_0x1acdc6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1acdc6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32f6f5+_0x1acdc6([0x2e])+_0x3a38bc),_0xdac2da=window[_0x1acdc6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1acdc6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xdac2da)return;const _0x2c7249=await _0xdac2da[_0x1acdc6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1acdc6([0x6a,0x77,0x6b]),_0x880327,{[_0x1acdc6([0x6e,0x61,0x6d,0x65])]:_0x1acdc6([0x45,0x43,0x44,0x53,0x41]),[_0x1acdc6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1acdc6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1acdc6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xdac2da[_0x1acdc6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1acdc6([0x6e,0x61,0x6d,0x65])]:_0x1acdc6([0x45,0x43,0x44,0x53,0x41]),[_0x1acdc6([0x68,0x61,0x73,0x68])]:{[_0x1acdc6([0x6e,0x61,0x6d,0x65])]:_0x1acdc6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c7249,_0x43c78d,_0x538f51)||(_0x32ff71=!0x1);}}function _0x4b98d4(_0x1fc72e){return _0x1fc72e[_0x1acdc6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1acdc6([0x65,0x79]))?JSON[_0x1acdc6([0x70,0x61,0x72,0x73,0x65])](_0x51c3ce(_0x1fc72e)):null;}function _0x51c3ce(_0x4a8fce){return window[_0x1acdc6([0x61,0x74,0x6f,0x62])](_0x4a8fce[_0x1acdc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1acdc6([0x2b]))[_0x1acdc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1acdc6([0x2f])));}function _0x18c824(_0x33ee10){let _0x3e7b36=0x1505;function _0x559e4c(_0x42b653){for(let _0x32c170=0x0;_0x32c170<_0x42b653[_0x1acdc6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32c170++){const _0x229bf9=_0x42b653[_0x1acdc6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x32c170);_0x3e7b36=(_0x3e7b36<<0x5)+_0x3e7b36+_0x229bf9,_0x3e7b36&=_0x3e7b36;}}function _0xed4d01(_0x1eac66){Array[_0x1acdc6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1eac66)?_0x1eac66[_0x1acdc6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xed4d01):_0x1eac66&&typeof _0x1eac66==_0x1acdc6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1acdc6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1eac66)[_0x1acdc6([0x73,0x6f,0x72,0x74])]()[_0x1acdc6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x18cab1,_0xc60a45])=>{_0x559e4c(_0x18cab1),_0xed4d01(_0xc60a45);}):_0x559e4c(window[_0x1acdc6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1eac66));}return _0xed4d01(_0x33ee10),_0x3e7b36>>>0x0;}function _0x3753d2(_0x45bbc6){return _0x45bbc6[_0x1acdc6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1acdc6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1acdc6([0x30]));}function _0x255579(_0x245e28){return _0x245e28[_0x1acdc6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1acdc6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1acdc6([0x6a,0x6f,0x69,0x6e])]('');}function _0x141129(){}function _0x1acdc6(_0x27097e){const _0x361c47=_0x1a72;return _0x27097e[_0x361c47(0x1f7)](_0x135bbc=>String[_0x361c47(0x1de)](_0x135bbc))[_0x361c47(0x1f1)]('');}_0xa667cb(await _0x5d60db());}(this);}[_0x56de91(0x1bf)](){const _0x56d44c=_0x56de91,_0x3837e0=this[_0x56d44c(0x1dd)][_0x56d44c(0x1d0)][_0x56d44c(0x1ca)];_0x3837e0[_0x56d44c(0x1cb)](_0x56d44c(0x1ef))&&_0x3837e0[_0x56d44c(0x1f3)](_0x56d44c(0x1ef),{'allowAttributes':[_0x56d44c(0x1f0)]}),_0x3837e0[_0x56d44c(0x1cb)](_0x56d44c(0x20a))&&_0x3837e0[_0x56d44c(0x1f3)](_0x56d44c(0x20a),{'allowAttributes':[_0x56d44c(0x1f0)]});}[_0x56de91(0x1eb)](){const _0x782f5c=_0x56de91,_0x45fb17=this[_0x782f5c(0x1dd)];_0x45fb17[_0x782f5c(0x1ee)][_0x782f5c(0x1c9)](_0x782f5c(0x1d7))[_0x782f5c(0x1fe)]({'model':_0x782f5c(0x1f0),'view':_0x782f5c(0x1d4)}),_0x45fb17[_0x782f5c(0x1ee)][_0x782f5c(0x1c9)](_0x782f5c(0x1c5))[_0x782f5c(0x1db)]({'model':{'key':_0x782f5c(0x1f0),'value':_0x6bfd09=>_0x6bfd09[_0x782f5c(0x1b8)](_0x782f5c(0x1d4))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x178531=_0x45fb17[_0x782f5c(0x1d1)][_0x782f5c(0x1df)](_0x782f5c(0x1fc));_0x178531&&this[_0x782f5c(0x1f2)](_0x178531,_0x782f5c(0x1d3),(_0xd6e047,[_0x3f8031,_0x174bb7])=>{const _0x49329c=_0x782f5c;_0x3f8031[_0x49329c(0x200)](_0x49329c(0x1f0),_0x174bb7);});}[_0x56de91(0x1ff)](){const _0x3ad321=_0x56de91,_0x43a94b=this[_0x3ad321(0x1dd)][_0x3ad321(0x1c4)][_0x3ad321(0x1df)](_0x3ad321(0x1d2))||{},_0x11c1da=this[_0x3ad321(0x1dd)][_0x3ad321(0x1c4)][_0x3ad321(0x1df)](_0x3ad321(0x1c3))||'';this[_0x3ad321(0x206)]=_0x599feb(_0x180f5a[_0x3ad321(0x1f8)],_0x3ad321(0x1c6),{..._0x43a94b,'pubkey':_0x11c1da,'ctx-name':_0x3ad321(0x1c2)+this[_0x3ad321(0x203)],'sourceList':'','imgOnly':_0x3ad321(0x1e2),'removeCopyright':_0x3ad321(0x1e2),'localeName':this[_0x3ad321(0x1dd)][_0x3ad321(0x1ba)][_0x3ad321(0x1cf)],'externalSourcesEmbedCss':_0x3ad321(0x1e6)}),this[_0x3ad321(0x206)][_0x3ad321(0x1b6)]=_0x443a64=>{const _0x27d09b=_0x3ad321;if(_0x27d09b(0x1da)==_0x443a64)return _0x27d09b(0x1d5);},_0x180f5a[_0x3ad321(0x1f8)][_0x3ad321(0x1e9)][_0x3ad321(0x1ce)](this[_0x3ad321(0x206)]);}[_0x56de91(0x1e5)](){const _0x2018f3=_0x56de91;this[_0x2018f3(0x204)]=_0x599feb(_0x180f5a[_0x2018f3(0x1f8)],_0x2018f3(0x1fa),{'ctx-name':_0x2018f3(0x1c2)+this[_0x2018f3(0x203)]}),_0x180f5a[_0x2018f3(0x1f8)][_0x2018f3(0x1e9)][_0x2018f3(0x1ce)](this[_0x2018f3(0x204)]);}[_0x56de91(0x1cd)](){const _0x22aa74=_0x56de91,_0x473d54=this[_0x22aa74(0x1dd)][_0x22aa74(0x1d1)][_0x22aa74(0x1df)](_0x22aa74(0x1e1));_0x473d54&&this[_0x22aa74(0x1f2)](_0x473d54,_0x22aa74(0x201),()=>{const _0x1fee3e=_0x22aa74,_0x547033=this[_0x1fee3e(0x1dd)][_0x1fee3e(0x1d0)][_0x1fee3e(0x1f8)][_0x1fee3e(0x202)][_0x1fee3e(0x1bc)]();_0x547033&&_0x547033[_0x1fee3e(0x1b8)](_0x1fee3e(0x1f0))&&this[_0x1fee3e(0x1dd)][_0x1fee3e(0x1c1)][_0x1fee3e(0x1ed)][_0x1fee3e(0x1e4)](_0x1fee3e(0x1f5),()=>{const _0x3495c5=_0x1fee3e;_0x4d3e18(this[_0x3495c5(0x1dd)],_0x547033);});});const _0x4f2f85=this[_0x22aa74(0x1dd)][_0x22aa74(0x1d1)][_0x22aa74(0x1df)](_0x22aa74(0x1be));_0x4f2f85&&this[_0x22aa74(0x1f2)](_0x4f2f85,_0x22aa74(0x201),()=>{const _0x3f5c2b=_0x22aa74,_0x5859ad=this[_0x3f5c2b(0x1dd)][_0x3f5c2b(0x1d0)][_0x3f5c2b(0x1f8)][_0x3f5c2b(0x202)][_0x3f5c2b(0x1bc)]();_0x5859ad&&_0x5859ad[_0x3f5c2b(0x1b8)](_0x3f5c2b(0x1f0))&&this[_0x3f5c2b(0x1dd)][_0x3f5c2b(0x1c1)][_0x3f5c2b(0x1ed)][_0x3f5c2b(0x1e4)](_0x3f5c2b(0x1f5),()=>{const _0xefd396=_0x3f5c2b;_0x4d3e18(this[_0xefd396(0x1dd)],_0x5859ad);});});}}
|