@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251004.0 → 0.0.0-nightly-20251005.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +9 -9
- package/src/uploadcareediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x4e90a5,Command as _0x5f1d1f}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0xefbf34,IconGooglePhotos as _0x5ca237,IconGoogleDrive as _0x4ad234,IconFacebook as _0x26ec44,IconDropbox as _0x13f295,IconUploadcareLink as _0x24a875,IconUploadcareImageUpload as _0x44ac62,IconError as _0x3480a4,IconUploadcareImageEdit as _0x2e3c93}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x566edc,MenuBarMenuListItemButtonView as _0x113034,View as _0x3d5001,FocusCycler as _0x3dff4b,Dialog as _0x1e0111,DialogViewPosition as _0x5a2fae,SpinnerView as _0x5ae89b,IconView as _0x72e258,Notification as _0x56b5e2}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x40aa83,DomEmitterMixin as _0x1b9d30,global as _0x1a5972,getAncestors as _0x1f8380,ObservableMixin as _0x5d37c8,uid as _0x21e5c6,createElement as _0xef2b99}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x49458e}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x20b2c0,info as _0x290f71}from'@uploadcare/upload-client';import*as _0x2fc93b from'@uploadcare/file-uploader';var i=function(_0x4d9ba4){return _0x4d9ba4['Local']='local',_0x4d9ba4['URL']='url',_0x4d9ba4['Dropbox']='dropbox',_0x4d9ba4['GDrive']='gdrive',_0x4d9ba4['Facebook']='facebook',_0x4d9ba4['GPhotos']='gphotos',_0x4d9ba4['OneDrive']='onedrive',_0x4d9ba4;}({});function _(_0x3d0b6b,_0x2f5317,_0x5926da){const t=_0x3d0b6b['t'],_0x5a1d64=_0x3d0b6b['t'];switch(_0x2f5317){case i['Local']:return{'text':_0x5a1d64('Insert'===_0x5926da?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5a1d64('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x5926da?_0x5a1d64('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5a1d64('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x5926da?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x5926da?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x5926da?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x5926da?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x5926da?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2f5317;}}class e extends _0x4e90a5{['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 _0x4dd69d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2b33a9;for(const _0x362e52 in _0x4dd69d){const _0x36bef8=_0x362e52,_0xe54880=_0x4dd69d[_0x36bef8];if('uploadcareLicenseKeyValid'==_0xe54880||'uploadcareLicenseKeyInvalid'==_0xe54880||'uploadcareLicenseKeyExpired'==_0xe54880||'uploadcareLicenseKeyDomainLimit'==_0xe54880||'uploadcareLicenseKeyNotAllowed'==_0xe54880||'uploadcareLicenseKeyEvaluationLimit'==_0xe54880||'uploadcareLicenseKeyTrialLimit'==_0xe54880||'uploadcareLicenseKeyUsageLimit'==_0xe54880){delete _0x4dd69d[_0x36bef8],_0x2b33a9=_0xe54880,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x2b33a9&&_0x4dd69d['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x96666c}=this,_0x21c20a=_0x96666c['commands']['get']('uploadcare');if(!_0x21c20a)return;const _0x4fb71b=this['_normalizeConfigSourceList'](_0x96666c['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x25be8c,_0x185144)=>{const _0x36b135=this['_getIntegrationKey'](_0x185144['type']);return _0x25be8c[_0x36b135]||(_0x25be8c[_0x36b135]=[]),_0x25be8c[_0x36b135]['push'](_0x185144),_0x25be8c;},{});_0x96666c['plugins']['has']('ImageInsertUI')&&_0x96666c['commands']['get']('uploadcare')&&Object['entries'](_0x4fb71b)['forEach'](([_0x2050f7,_0x3d7749])=>{_0x96666c['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x2050f7,'observable':()=>_0x21c20a,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3d7749),'formViewCreator':()=>this['_createDropdownButtons'](_0x3d7749),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3d7749),'override':'assetManager'!==_0x2050f7});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x131933){const {locale:_0x57d460}=this['editor'];return _0x131933['map'](_0x198a07=>{const _0x4c75ef=_(_0x57d460,_0x198a07,'Insert');switch(_0x198a07){case i['Local']:return{'icon':_0x44ac62,'type':i['Local'],..._0x4c75ef};case i['URL']:return{'icon':_0x24a875,'type':i['URL'],..._0x4c75ef};case i['Dropbox']:return{'icon':_0x13f295,'type':i['Dropbox'],..._0x4c75ef};case i['Facebook']:return{'icon':_0x26ec44,'type':i['Facebook'],..._0x4c75ef};case i['GDrive']:return{'icon':_0x4ad234,'type':i['GDrive'],..._0x4c75ef};case i['GPhotos']:return{'icon':_0x5ca237,'type':i['GPhotos'],..._0x4c75ef};case i['OneDrive']:return{'icon':_0xefbf34,'type':i['OneDrive'],..._0x4c75ef};}});}['_getIntegrationKey'](_0x1dabcf){switch(_0x1dabcf){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4e4c3e,_0x18b7ef){const _0x1be268=this['editor'],_0x443bb7=new _0x4e4c3e(_0x1be268['locale']),_0x4dfd1c=_0x1be268['commands']['get']('uploadcare');return _0x443bb7['bind']('isEnabled')['to'](_0x4dfd1c),_0x443bb7['on']('execute',()=>{_0x4dfd1c['execute'](_0x18b7ef);}),_0x443bb7;}['_createToolbarButton'](_0x27d310){const {locale:_0x18ecaf}=this['editor'],_0x4908f3=this['editor']['plugins']['get']('ImageInsertUI'),_0x23b268=_0x27d310[0x0],_0x11be6e=this['_createButton'](_0x566edc,_0x23b268['type']);return _0x11be6e['icon']=_0x23b268['icon'],_0x11be6e['bind']('label')['to'](_0x4908f3,'isImageSelected',_0x2d6746=>_(_0x18ecaf,_0x23b268['type'],_0x2d6746?'Replace':'Insert')['text']),_0x11be6e['tooltip']=!0x0,_0x11be6e;}['_createDropdownButtons'](_0x54dd29){const {locale:_0xc3374e}=this['editor'],_0xa96b90=this['editor']['plugins']['get']('ImageInsertUI');return _0x54dd29['map'](_0x4363c6=>{const _0xa78a8d=this['_createButton'](_0x566edc,_0x4363c6['type']);return _0xa78a8d['withText']=!0x0,_0xa78a8d['icon']=_0x4363c6['icon'],_0xa78a8d['bind']('label')['to'](_0xa96b90,'isImageSelected',_0x1620f8=>_(_0xc3374e,_0x4363c6['type'],_0x1620f8?'Replace':'Insert')['text']),_0xa78a8d;});}['_createMenuBarButtons'](_0x41133b){return _0x41133b['map'](_0x5c94e9=>{const _0x561bd8=this['_createButton'](_0x113034,_0x5c94e9['type']);return _0x561bd8['icon']=_0x5c94e9['icon'],_0x561bd8['label']=_0x5c94e9['shortText'],_0x561bd8;});}}class F extends _0x3d5001{['focusTracker'];['focusCycler'];constructor(_0x1e8f7f){super(_0x1e8f7f),this['focusTracker']=new _0x40aa83(),this['focusCycler']=new _0x3dff4b({'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(_0x5ccbfd,_0x50d225){super(_0x5ccbfd),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-'+_0x50d225}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x4b8489,_0x47f212){const _0x173bb4=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x35fb92=>_0x35fb92<=_0x47f212)['map'](_0x240ada=>_0x4b8489['replace'](/\/$/,'')+'/-/resize/'+_0x240ada+'x/\x20'+_0x240ada+'w');return{'imageFallbackUrl':_0x4b8489,'imageSources':[{'srcset':_0x173bb4['join'](',\x20'),'sizes':'(max-width:\x20'+_0x47f212+'px)\x20100vw,\x20'+_0x47f212+'px','type':'image/webp'}]};}function S(_0x3837ea,_0x2ce254,_0xddc663){const _0x5e4296=_0x3837ea['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x5e4296?parseInt(_0x5e4296[0x1],0xa):_0x2ce254,'height':_0x5e4296?parseInt(_0x5e4296[0x2],0xa):_0xddc663};}function p(_0x582cd0,_0x193df7){const _0xd9c8da=new(_0x1b9d30())(),_0x2abad1=_0x582cd0['plugins']['get']('ImageUtils'),_0x454b43=_0x582cd0['editing']['mapper']['toViewElement'](_0x193df7),_0x3a6ac5=_0x2abad1['findViewImgElement'](_0x454b43),_0x4686b6=_0x582cd0['editing']['view']['domConverter']['viewToDom'](_0x3a6ac5),_0x23ce9c=_0x193df7['getAttribute']('width'),_0x260f8d=_0x193df7['getAttribute']('height'),_0x1a81cb='image-processing';_0x582cd0['editing']['view']['change'](_0xcaa40e=>{_0xcaa40e['addClass'](_0x1a81cb,_0x454b43),_0xcaa40e['setStyle']('aspect-ratio',_0x23ce9c+'/'+_0x260f8d,_0x3a6ac5);}),_0xd9c8da['listenTo'](_0x4686b6,'load',()=>{_0xd9c8da['stopListening'](_0x4686b6,'load'),_0x582cd0['editing']['view']['change'](_0x3fc5c4=>{_0x3fc5c4['removeClass'](_0x1a81cb,_0x454b43),_0x3fc5c4['removeStyle']('aspect-ratio',_0x3a6ac5);});});}function G(_0x353035){if(Array['isArray'](_0x353035)){const _0x2f3a44=_0x353035['map'](G);return _0x4e180a=>_0x2f3a44['some'](_0x50a79f=>_0x50a79f(_0x4e180a));}if('origin'==_0x353035){const _0x5e4354=_0x1a5972['window']['location']['origin'];return _0xf6ea32=>new URL(_0xf6ea32,_0x1a5972['document']['baseURI'])['origin']==_0x5e4354;}return'function'==typeof _0x353035?_0x353035:_0x353035 instanceof RegExp?_0x4f1547=>!(!_0x4f1547['match'](_0x353035)&&!_0x4f1547['replace'](/^https?:\/\//,'')['match'](_0x353035)):()=>!0x1;}function A(_0x1d8020,_0x5f41fc){return _0x1f8380(_0x1d8020['target'])['includes'](_0x5f41fc);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x5d37c8(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x2c8af6,_0x224ffb,_0x3f0cc3){super(),this['_editor']=_0x2c8af6,this['_editing']=_0x224ffb,this['_dialog']=_0x2c8af6['plugins']['get'](_0x1e0111),this['_api']=_0x224ffb['ctxElement']['getAPI'](),this['_type']=_0x3f0cc3,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:_0x4558bd,model:_0xbbb3f7}=this['_editor'],_0x1d43e6=_0xbbb3f7['document']['selection']['getSelectedElement'](),_0x28034f=_0x1d43e6&&(_0x1d43e6['is']('element','imageBlock')||_0x1d43e6['is']('element','imageInline'));this['_formView']=new x(_0x4558bd,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x44ac62,'title':_(_0x4558bd,this['_type'],_0x28034f?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5a2fae['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3b0225=>!A(_0x3b0225,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x597834}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2d34a4=>{const _0x4ca8c0=_0x597834['length'];for(const _0x3fb01b of _0x597834){const _0xaf7f70=_0x3fb01b===_0x597834[_0x4ca8c0-0x1],{cdnUrl:_0x1710a4,fileInfo:_0xfa90f1}=_0x3fb01b;if(!_0x1710a4||!_0xfa90f1)continue;const {width:_0x2cfa69,height:_0x59c61a}=_0xfa90f1['imageInfo'],_0x50bfe8=S(_0x1710a4,_0x2cfa69,_0x59c61a),_0x4ed66d=C(_0x1710a4,_0x50bfe8['width']),_0x2f8179={'id':_0xfa90f1['uuid'],'type':'image','attributes':{'imageDimension':_0x50bfe8,..._0x4ed66d}};this['_insertAsset'](_0x2f8179,_0xaf7f70,_0x2d34a4);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1267e7=>{'idle'===_0x1267e7['detail']['status']&&!_0x1267e7['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3b1776,_0xb5fbba,_0x231b0a){const _0x58c9a2=this['_editor']['model']['document']['selection'],_0x1beef2=_0x58c9a2['getSelectedElement'](),_0x59e22e=!(!_0x1beef2||!_0x1beef2['is']('element','imageInline'));_0x231b0a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3b1776,_0x59e22e),_0xb5fbba||_0x231b0a['setSelection'](_0x58c9a2['getLastPosition']());}['_insertImage'](_0x1d2dcb,_0x19aed4){const _0x4a1f44=this['_editor'],{imageDimension:_0x2cc1c8,imageFallbackUrl:_0xbc969d,imageSources:_0x54e983}=_0x1d2dcb['attributes'];_0x4a1f44['execute']('insertImage',{'imageType':_0x19aed4?'imageInline':null,'source':{'uploadcareImageId':_0x1d2dcb['id'],'src':_0xbc969d,'sources':_0x54e983,..._0x2cc1c8}});}}class w extends _0x5f1d1f{['_editing'];['_controller']=null;static get['requires'](){return[_0x1e0111,o];}constructor(_0x1fcb54){super(_0x1fcb54),this['_editing']=_0x1fcb54['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x590244){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x590244);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x388d2c,..._0x23cf86}){return _0x20b2c0(_0x388d2c,_0x23cf86);}static['getInfo'](_0x27c599,_0x261227){return _0x290f71(_0x27c599,_0x261227);}}class f extends _0x4e90a5{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x49458e,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x3bedca=this['editor'];if(!!!_0x3bedca['config']['get']('uploadcare'))return;_0x3bedca['plugins']['get'](_0x49458e)['createUploadAdapter']=_0x565726=>new k(_0x565726,_0x3bedca),_0x3bedca['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x14b272,{imageElement:_0x3e01c1,data:_0x5e4700})=>{_0x3bedca['model']['change'](_0x723e22=>{_0x723e22['setAttribute']('uploadcareImageId',_0x5e4700['uploadcareImageId'],_0x3e01c1);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x28d1ac,_0x11bff9){this['loader']=_0x28d1ac,this['editor']=_0x11bff9,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x59dba5=await this['loader']['file'];return j['upload']({'file':_0x59dba5,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x28d03b=>{_0x28d03b&&_0x28d03b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x28d03b['value']);}})['then'](async _0x49a3af=>{const {imageFallbackUrl:_0x2a0d74,imageSources:_0x40ea65}=C(_0x49a3af['cdnUrl'],_0x49a3af['imageInfo']['width']);return{'uploadcareImageId':_0x49a3af['uuid'],'default':_0x2a0d74,'sources':_0x40ea65};})['catch'](()=>{const _0x3ddcbc=t('Cannot\x20upload\x20file:')+('\x20'+_0x59dba5['name']+'.');return Promise['reject'](_0x3ddcbc);});}['abort'](){this['controller']['abort']();}}class o extends _0x4e90a5{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1e0111];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0xa89ff9){super(_0xa89ff9),this['ucContextId']=_0x21e5c6();}['init'](){const _0x456b9a=this['editor'];_0x456b9a['commands']['add']('uploadcare',new w(_0x456b9a));}['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 _0x414a6b=_0x1a5972['document']['querySelector']('input[uploadcare-file-input]');_0x414a6b&&_0x414a6b['remove']();}),async function(_0x20f052){const _0x462146=_0x2cdbc6([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x1ca9e2=0x3d8d0df,_0x58484b=0x3dfa5e7^_0x1ca9e2,_0xe3da73=window[_0x2cdbc6([0x44,0x61,0x74,0x65])][_0x2cdbc6([0x6e,0x6f,0x77])](),_0x3367b3=_0x20f052[_0x2cdbc6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x59c1f2=new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37d521=>{_0x3367b3[_0x2cdbc6([0x6f,0x6e,0x63,0x65])](_0x2cdbc6([0x72,0x65,0x61,0x64,0x79]),_0x37d521);}),_0x47addd={[_0x2cdbc6([0x6b,0x74,0x79])]:_0x2cdbc6([0x45,0x43]),[_0x2cdbc6([0x75,0x73,0x65])]:_0x2cdbc6([0x73,0x69,0x67]),[_0x2cdbc6([0x63,0x72,0x76])]:_0x2cdbc6([0x50,0x2d,0x32,0x35,0x36]),[_0x2cdbc6([0x78])]:_0x2cdbc6([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]),[_0x2cdbc6([0x79])]:_0x2cdbc6([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]),[_0x2cdbc6([0x61,0x6c,0x67])]:_0x2cdbc6([0x45,0x53,0x32,0x35,0x36])},_0x59e972=_0x3367b3[_0x2cdbc6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cdbc6([0x67,0x65,0x74])](_0x2cdbc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e5e1c(){let _0x19d645,_0x463a89=null,_0x1950b4=null;try{if(_0x59e972==_0x2cdbc6([0x47,0x50,0x4c]))return _0x2cdbc6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19d645=_0x27e5c4(),!_0x19d645)return _0x2cdbc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19d645[_0x2cdbc6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1950b4=_0x2ab04a(_0x19d645[_0x2cdbc6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19d645[_0x2cdbc6([0x6a,0x74,0x69])])),await _0x38f2ef()?_0x512642()?_0x85e9bd()?_0x2cdbc6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3acad9()?(_0x19d645[_0x2cdbc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cdbc6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x463a89=_0xb1f36f(_0x2cdbc6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19d645[_0x2cdbc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cdbc6([0x74,0x72,0x69,0x61,0x6c])&&(_0x463a89=_0xb1f36f(_0x2cdbc6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x575828()):_0x2cdbc6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cdbc6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cdbc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2cdbc6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x85e9bd(){const _0xc0d0ab=[_0x2cdbc6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cdbc6([0x74,0x72,0x69,0x61,0x6c])][_0x2cdbc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19d645[_0x2cdbc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe3da73/0x3e8:0xe10*_0x58484b;return _0x19d645[_0x2cdbc6([0x65,0x78,0x70])]<_0xc0d0ab;}function _0x512642(){const _0x2109f3=_0x19d645[_0x2cdbc6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2109f3&&(!!_0x2109f3[_0x2cdbc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cdbc6([0x2a]))||!!_0x2109f3[_0x2cdbc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cdbc6([0x55,0x50,0x4c,0x43])));}function _0x3acad9(){const _0x67962b=_0x19d645[_0x2cdbc6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x67962b||0x0==_0x67962b[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1756ee}=new URL(window[_0x2cdbc6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x67962b[_0x2cdbc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1756ee))return!0x0;const _0xd66a3=_0x1756ee[_0x2cdbc6([0x73,0x70,0x6c,0x69,0x74])](_0x2cdbc6([0x2e]));return _0x67962b[_0x2cdbc6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41cdee=>_0x41cdee[_0x2cdbc6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cdbc6([0x2a])))[_0x2cdbc6([0x6d,0x61,0x70])](_0x119500=>_0x119500[_0x2cdbc6([0x73,0x70,0x6c,0x69,0x74])](_0x2cdbc6([0x2e])))[_0x2cdbc6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c5844=>_0x1c5844[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xd66a3[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cdbc6([0x6d,0x61,0x70])](_0xc3b9f1=>Array(_0xd66a3[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xc3b9f1[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cdbc6([0x66,0x69,0x6c,0x6c])](_0xc3b9f1[0x0]===_0x2cdbc6([0x2a])?_0x2cdbc6([0x2a]):'')[_0x2cdbc6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xc3b9f1))[_0x2cdbc6([0x73,0x6f,0x6d,0x65])](_0x7e9c87=>_0xd66a3[_0x2cdbc6([0x65,0x76,0x65,0x72,0x79])]((_0x4d84a8,_0x1b4648)=>_0x7e9c87[_0x1b4648]===_0x4d84a8||_0x7e9c87[_0x1b4648]===_0x2cdbc6([0x2a])));}function _0x575828(){return _0x463a89&&_0x1950b4?new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54fb43,_0x2b7265)=>{_0x463a89[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x54fb43,_0x2b7265),_0x1950b4[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x53f922=>{_0x53f922!=_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64])&&_0x54fb43(_0x53f922);},_0x2b7265);}):_0x463a89||_0x1950b4||_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ab04a(_0x33d974,_0xd9561){return new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x557344=>{if(_0x55d1f3())return _0x557344(_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64]));_0xc55e4e(),_0x3367b3[_0x2cdbc6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cdbc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x54de2d=!0x1;const _0x510ea1=_0x21e5c6();function _0x58b3b8(_0x34f82f){return!!_0x34f82f&&(typeof _0x34f82f===_0x2cdbc6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x34f82f===_0x2cdbc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x34f82f[_0x2cdbc6([0x74,0x68,0x65,0x6e])]===_0x2cdbc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x34f82f[_0x2cdbc6([0x63,0x61,0x74,0x63,0x68])]===_0x2cdbc6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xd2bd57(_0x105579){_0x36d412(_0x105579)[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x36916e=>{if(!_0x36916e||_0x36916e[_0x2cdbc6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cdbc6([0x6f,0x6b]))return _0x2cdbc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x898364(_0x2e82dc(_0x510ea1+_0xd9561))!=_0x36916e[_0x2cdbc6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cdbc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x54fa79=>(_0x1e4fc4(),_0x54fa79),()=>{const _0x47b8bd=_0x4c3c94();return null==_0x47b8bd?(_0x1e4fc4(),_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64])):_0x2cdbc6(_0xe3da73-_0x47b8bd>(0x27d454df^_0x1ca9e2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x557344)[_0x2cdbc6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x557344(_0x2cdbc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1fddef=0x3ee3e5f^_0x1ca9e2;function _0x1e4fc4(){const _0xaa2244=_0x2cdbc6([0x6c,0x6c,0x63,0x74,0x2d])+_0x898364(_0x2e82dc(_0x33d974)),_0x4e4c2b=_0x443399(_0x898364(window[_0x2cdbc6([0x4d,0x61,0x74,0x68])][_0x2cdbc6([0x63,0x65,0x69,0x6c])](_0xe3da73/_0x1fddef)));window[_0x2cdbc6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cdbc6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xaa2244,_0x4e4c2b);}function _0x4c3c94(){const _0x286565=_0x2cdbc6([0x6c,0x6c,0x63,0x74,0x2d])+_0x898364(_0x2e82dc(_0x33d974)),_0xee2c26=window[_0x2cdbc6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cdbc6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x286565);return _0xee2c26?window[_0x2cdbc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x443399(_0xee2c26),0x10)*_0x1fddef:null;}function _0x36d412(_0x455595){return new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cdd74,_0x41c127)=>{_0x455595[_0x2cdbc6([0x74,0x68,0x65,0x6e])](_0x2cdd74,_0x41c127),window[_0x2cdbc6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x41c127,0x3d9041f^_0x1ca9e2);});}}_0x3367b3[_0x2cdbc6([0x6f,0x6e])](_0x2cdbc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb271cf,_0x1f5d87)=>{if(_0x1f5d87[0x0]!=_0x33d974)return _0x557344(_0x2cdbc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1f5d87[0x1]={..._0x1f5d87[0x1],[_0x2cdbc6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x510ea1};},{[_0x2cdbc6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cdbc6([0x68,0x69,0x67,0x68])}),_0x3367b3[_0x2cdbc6([0x6f,0x6e])](_0x2cdbc6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13a24e=>{_0x58b3b8(_0x13a24e[_0x2cdbc6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x54de2d=!0x0,_0xd2bd57(_0x13a24e[_0x2cdbc6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cdbc6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cdbc6([0x6c,0x6f,0x77])}),_0x59c1f2[_0x2cdbc6([0x74,0x68,0x65,0x6e])](()=>{_0x54de2d||_0x557344(_0x2cdbc6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55d1f3(){return _0x3367b3[_0x2cdbc6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cdbc6([0x76,0x69,0x65,0x77])][_0x2cdbc6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cdbc6([0x61,0x75,0x74,0x6f]);}function _0xc55e4e(){_0x3367b3[_0x2cdbc6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cdbc6([0x76,0x69,0x65,0x77])][_0x2cdbc6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cdbc6([0x61,0x75,0x74,0x6f]);}}function _0xb1f36f(_0x5c46bf){const _0x698305=[new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47c401=>setTimeout(_0x47c401,0x3d1ee13^_0x1ca9e2)),_0x59c1f2[_0x2cdbc6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x522295=>{let _0x55dc16=0x0;_0x3367b3[_0x2cdbc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cdbc6([0x6f,0x6e])](_0x2cdbc6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e8d3f,_0x1b3983)=>{_0x1b3983[0x0][_0x2cdbc6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55dc16++,_0x55dc16==(0x3d8d127^_0x1ca9e2)&&(_0x522295(),_0x4e8d3f[_0x2cdbc6([0x6f,0x66,0x66])]());});}))];return window[_0x2cdbc6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cdbc6([0x72,0x61,0x63,0x65])](_0x698305)[_0x2cdbc6([0x74,0x68,0x65,0x6e])](()=>_0x5c46bf);}async function _0x42e3b1(){await _0x59c1f2,_0x3367b3[_0x2cdbc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cdbc6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x15c4e4,_0x3367b3[_0x2cdbc6([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cdbc6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x15c4e4,_0x3367b3[_0x2cdbc6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cdbc6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c7299(_0x2df966){const _0x595211=_0x1706e8();_0x3367b3[_0x595211]=_0x2cdbc6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2df966,_0x2df966!=_0x2cdbc6([0x56,0x61,0x6c,0x69,0x64])&&_0x42e3b1();}function _0x1706e8(){const _0x173ba9=window[_0x2cdbc6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cdbc6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cdbc6([0x6e,0x6f,0x77])]())[_0x2cdbc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cdbc6([0x2e]),'');let _0x4fa80c=_0x2cdbc6([0x52]);for(let _0x72ef02=0x0;_0x72ef02<_0x173ba9[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x72ef02+=0x2){let _0x2df548=window[_0x2cdbc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x173ba9[_0x2cdbc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x72ef02,_0x72ef02+0x2));_0x2df548>=_0x462146[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2df548-=_0x462146[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4fa80c+=_0x462146[_0x2df548];}return _0x4fa80c;}function _0x27e5c4(){const _0xb82e62=_0x59e972[_0x2cdbc6([0x73,0x70,0x6c,0x69,0x74])](_0x2cdbc6([0x2e]));if(0x3!=_0xb82e62[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ea30a(_0xb82e62[0x1]);function _0x1ea30a(_0x28f80d){const _0x88348a=_0x45cf9f(_0x28f80d);return _0x88348a&&_0x26b8b7()?_0x88348a:null;function _0x26b8b7(){const _0x193862=_0x88348a[_0x2cdbc6([0x6a,0x74,0x69])],_0x2147ed=window[_0x2cdbc6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x193862[_0x2cdbc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x193862[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd7b65f={..._0x88348a,[_0x2cdbc6([0x6a,0x74,0x69])]:_0x193862[_0x2cdbc6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x193862[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd7b65f[_0x2cdbc6([0x76,0x63])],_0x2e82dc(_0xd7b65f)==_0x2147ed;}}}async function _0x38f2ef(){let _0x4d8e00=!0x0;try{const _0x38cc6e=_0x59e972[_0x2cdbc6([0x73,0x70,0x6c,0x69,0x74])](_0x2cdbc6([0x2e])),[_0x3333ba,_0x361232,_0x20926a]=_0x38cc6e;return _0x4fbdae(_0x3333ba),await _0x44cdc1(_0x3333ba,_0x361232,_0x20926a),_0x4d8e00;}catch{return!0x1;}function _0x4fbdae(_0x1af6c1){const _0x4ad5ae=_0x45cf9f(_0x1af6c1);_0x4ad5ae&&_0x4ad5ae[_0x2cdbc6([0x61,0x6c,0x67])]==_0x2cdbc6([0x45,0x53,0x32,0x35,0x36])||(_0x4d8e00=!0x1);}async function _0x44cdc1(_0xaddb3b,_0x5ac705,_0x1f5be1){const _0x3607f6=window[_0x2cdbc6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cdbc6([0x66,0x72,0x6f,0x6d])](_0x53559e(_0x1f5be1),_0x1ad5d0=>_0x1ad5d0[_0x2cdbc6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x30deca=new window[(_0x2cdbc6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cdbc6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xaddb3b+_0x2cdbc6([0x2e])+_0x5ac705),_0x142e15=window[_0x2cdbc6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cdbc6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x142e15)return;const _0x3c13e3=await _0x142e15[_0x2cdbc6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cdbc6([0x6a,0x77,0x6b]),_0x47addd,{[_0x2cdbc6([0x6e,0x61,0x6d,0x65])]:_0x2cdbc6([0x45,0x43,0x44,0x53,0x41]),[_0x2cdbc6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cdbc6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cdbc6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x142e15[_0x2cdbc6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cdbc6([0x6e,0x61,0x6d,0x65])]:_0x2cdbc6([0x45,0x43,0x44,0x53,0x41]),[_0x2cdbc6([0x68,0x61,0x73,0x68])]:{[_0x2cdbc6([0x6e,0x61,0x6d,0x65])]:_0x2cdbc6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3c13e3,_0x3607f6,_0x30deca)||(_0x4d8e00=!0x1);}}function _0x45cf9f(_0x349d80){return _0x349d80[_0x2cdbc6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cdbc6([0x65,0x79]))?JSON[_0x2cdbc6([0x70,0x61,0x72,0x73,0x65])](_0x53559e(_0x349d80)):null;}function _0x53559e(_0x56914d){return window[_0x2cdbc6([0x61,0x74,0x6f,0x62])](_0x56914d[_0x2cdbc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cdbc6([0x2b]))[_0x2cdbc6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cdbc6([0x2f])));}function _0x2e82dc(_0x48b922){let _0x2a6164=0x1505;function _0x1d5e83(_0x131181){for(let _0x3142f9=0x0;_0x3142f9<_0x131181[_0x2cdbc6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3142f9++){const _0x434570=_0x131181[_0x2cdbc6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3142f9);_0x2a6164=(_0x2a6164<<0x5)+_0x2a6164+_0x434570,_0x2a6164&=_0x2a6164;}}function _0xdb76ae(_0x4f6332){Array[_0x2cdbc6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f6332)?_0x4f6332[_0x2cdbc6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xdb76ae):_0x4f6332&&typeof _0x4f6332==_0x2cdbc6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cdbc6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f6332)[_0x2cdbc6([0x73,0x6f,0x72,0x74])]()[_0x2cdbc6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x417852,_0xa1a708])=>{_0x1d5e83(_0x417852),_0xdb76ae(_0xa1a708);}):_0x1d5e83(window[_0x2cdbc6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f6332));}return _0xdb76ae(_0x48b922),_0x2a6164>>>0x0;}function _0x898364(_0x4a798d){return _0x4a798d[_0x2cdbc6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cdbc6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cdbc6([0x30]));}function _0x443399(_0x27fa0c){return _0x27fa0c[_0x2cdbc6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cdbc6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cdbc6([0x6a,0x6f,0x69,0x6e])]('');}function _0x15c4e4(){}function _0x2cdbc6(_0x35a2ae){return _0x35a2ae['map'](_0x1562ee=>String['fromCharCode'](_0x1562ee))['join']('');}_0x1c7299(await _0x5e5e1c());}(this);}['_initSchema'](){const _0x41934d=this['editor']['model']['schema'];_0x41934d['isRegistered']('imageBlock')&&_0x41934d['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x41934d['isRegistered']('imageInline')&&_0x41934d['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5b32eb=this['editor'];_0x5b32eb['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5b32eb['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x1c319c=>_0x1c319c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1db1ad=_0x5b32eb['commands']['get']('replaceImageSource');_0x1db1ad&&this['listenTo'](_0x1db1ad,'cleanupImage',(_0x351b40,[_0x98ccbe,_0x505c4b])=>{_0x98ccbe['removeAttribute']('uploadcareImageId',_0x505c4b);});}['_initConfig'](){const _0x316bfe=this['editor']['config']['get']('uploadcare.uploader')||{},_0x4d41f4=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xef2b99(_0x1a5972['document'],'uc-config',{..._0x316bfe,'pubkey':_0x4d41f4,'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']=_0x55bd48=>{if('closeMax'==_0x55bd48)return'#uc-icon-arrow-down';},_0x1a5972['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xef2b99(_0x1a5972['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x1a5972['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x5987f4=this['editor']['commands']['get']('insertImage');_0x5987f4&&this['listenTo'](_0x5987f4,'execute',()=>{const _0x54b742=this['editor']['model']['document']['selection']['getSelectedElement']();_0x54b742&&_0x54b742['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x54b742);});});const _0x2900ce=this['editor']['commands']['get']('uploadcareImageReplace');_0x2900ce&&this['listenTo'](_0x2900ce,'execute',()=>{const _0xdfeae1=this['editor']['model']['document']['selection']['getSelectedElement']();_0xdfeae1&&_0xdfeae1['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xdfeae1);});});}}class tt extends _0x4e90a5{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f84db){super(_0x1f84db),_0x1f84db['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2fc93b['defineComponents'](_0x2fc93b);}}class ii extends _0x3d5001{constructor(_0x80e0a8){super(_0x80e0a8);const t=_0x80e0a8['t'],_0x3715da=this['bindTemplate'],_0x44e4ae=new _0x5ae89b();_0x44e4ae['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':[_0x44e4ae,{'text':_0x3715da['to']('imageUploadProgress',_0x595758=>t('Loading\x20image...')+'\x20('+(_0x595758||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 _0x3d5001{constructor(_0x5df11e){super(_0x5df11e);const t=_0x5df11e['t'];this['set']('errorType',null);const _0x9c216b=new _0x566edc(_0x5df11e);_0x9c216b['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x9c216b['withText']=!0x0,_0x9c216b['class']='ck-button-action',_0x9c216b['on']('execute',()=>{this['fire']('retry');}),_0x9c216b['bind']('isVisible')['to'](this,'errorType',_0x1f303=>'NotFound'!==_0x1f303);const _0x1cd938=new _0x72e258();_0x1cd938['content']=_0x3480a4,_0x1cd938['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x41bbc9=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':[_0x1cd938,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x41bbc9['to']('errorType',_0x5624f9=>t('NotFound'!==_0x5624f9?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x9c216b]},{'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 _0x3d5001{constructor(_0x5dd1b6,_0x40ebd3){super(_0x5dd1b6);const _0x14ebb6=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x40ebd3,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x14ebb6['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1add45,_0x2364d5,_0x449f7d){super(_0x1add45),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x1add45),this['_errorView']=new ti(_0x1add45),this['_editingView']=new ei(_0x1add45,_0x449f7d),this['_focusableView']=new _0x3d5001(_0x1add45),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2364d5),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'],_0x9866cd=>{this['_addUploadcareImageEditorListeners'](_0x9866cd);});}),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'](_0x1528e4,_0x5b0960){const _0x5a905f='uc-cloud-image-editor',_0x4df5e9=_0x1528e4['querySelector'](_0x5a905f);if(_0x4df5e9)return _0x5b0960(_0x4df5e9);const _0x5a5913=new MutationObserver(_0x59f110=>{const _0xa12018=_0x59f110['filter'](_0x146f81=>_0x146f81['target']===_0x1528e4&&_0x146f81['addedNodes']['length']>0x0&&_0x146f81['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x5a905f);_0xa12018['length']&&(_0x5a5913['disconnect'](),_0x5b0960(_0xa12018[0x0]['addedNodes'][0x0]));});_0x5a5913['observe'](_0x1528e4,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x49fb77){_0x49fb77['addEventListener']('apply',_0x371d45=>{this['fire']('apply',{'imageSrc':_0x371d45['detail']['cdnUrl']});}),_0x49fb77['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5d37c8(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x1cfa26,_0x5ebb83,_0x238cd2){super(),this['_editor']=_0x1cfa26,this['_dialog']=_0x5ebb83,this['_imageElement']=_0x238cd2,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 _0xa78bfa=this['_imageElement'],_0x230762=_0xa78bfa['getAttribute']('uploadcareImageId'),_0xcd7612=_0xa78bfa['getAttribute']('src');if(_0x230762)await this['_loadImageInfo'](_0x230762,_0xcd7612);else{if(this['_imageCache']['has'](_0xcd7612)){const _0x7b58a0=this['_imageCache']['get'](_0xcd7612);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x7b58a0['url'],this['imageDimension']=_0x7b58a0['dimension'],this['imageId']=_0x7b58a0['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xd5140b}=this['_editor'],t=_0xd5140b['t'],_0x161bae=new X(_0xd5140b,this['imageStatus'],this['_attributes']);_0x161bae['bind']('status')['to'](this,'imageStatus'),_0x161bae['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x161bae['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x161bae['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x161bae,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2e3c93,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x161bae,'position':_0x5a2fae['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x161bae['focus']();},'onHide':()=>{_0x161bae['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x11e651=>!A(_0x11e651,_0x161bae['element'])}});}['_loadImageInfo'](_0x2f9757,_0x5ad4f5){return j['getInfo'](_0x2f9757,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x5edfce=>{const {width:_0x48a590,height:_0x39e42d}=_0x5edfce['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ad4f5,this['imageDimension']={'width':_0x48a590,'height':_0x39e42d},this['imageId']=_0x2f9757;})['catch'](_0xc67d0f=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xc67d0f['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x484a1e,_0x29179f){return this['_getImageAsFile'](_0x484a1e)['then'](_0x5679fd=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x29179f['signal'],'file':_0x5679fd,'onProgress':_0xb2632f=>{_0xb2632f&&_0xb2632f['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0xb2632f['value']));}}))['then'](_0x349064=>{const {width:_0x5c8e60,height:_0x27a92b}=_0x349064['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x349064['cdnUrl'],this['imageDimension']={'width':_0x5c8e60,'height':_0x27a92b},this['imageId']=_0x349064['uuid'],this['imageUploadProgress']=null;const _0x436e2f=_0x484a1e['getAttribute']('src');this['_imageCache']['set'](_0x436e2f,{'id':_0x349064['uuid'],'url':_0x349064['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1c8b3d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1c8b3d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1596b6,_0x2eafde){_0x1596b6['on']('apply',(_0x154f13,_0x78c8e0)=>{this['_replaceImage'](_0x2eafde,_0x78c8e0['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1596b6['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1596b6['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x16eeb3,_0x1ac334,_0x39ae1a){const _0x3dfe46=this['_editor'],{width:_0x1f1744,height:_0x48cfb6}=S(_0x1ac334,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x12546,imageSources:_0x597e11}=C(_0x1ac334,_0x1f1744);_0x3dfe46['model']['change'](_0x4bfb86=>{if('$graveyard'===_0x16eeb3['root']['rootName']){_0x3dfe46['execute']('insertImage',{'imageType':_0x16eeb3['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x16eeb3['getAttributes']()),'uploadcareImageId':_0x39ae1a,'src':_0x12546,'sources':_0x597e11,'width':_0x1f1744,'height':_0x48cfb6}});const _0x242104=_0x16eeb3['getChildren']();_0x16eeb3=_0x3dfe46['model']['document']['selection']['getSelectedElement']();for(const _0x20fc9f of _0x242104)_0x4bfb86['append'](_0x4bfb86['cloneElement'](_0x20fc9f),_0x16eeb3);}else _0x4bfb86['setSelection'](_0x16eeb3,'on'),_0x3dfe46['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x16eeb3['getAttributes']()),'uploadcareImageId':_0x39ae1a,'src':_0x12546,'sources':_0x597e11,'width':_0x1f1744,'height':_0x48cfb6},_0x16eeb3);_0x4bfb86['setSelection'](_0x16eeb3,'on');});}async['_getImageAsFile'](_0x54994b){const _0x94a41=_0x1a5972['window'],_0x253be0=_0x1a5972['document']['location']['href'],_0x493091=new _0x94a41['URL'](_0x54994b['getAttribute']('src'),_0x253be0);if('data:'===_0x493091['protocol']){const _0x120fe6=_0x493091['href']['split'](','),_0x3139be=_0x120fe6[0x0]['match'](/:(.*?);/)[0x1],_0x39ff10=_0x3139be['split']('/')[0x1],_0x425130=_0x94a41['atob'](_0x120fe6[_0x120fe6['length']-0x1]);let _0x163dc4=_0x425130['length'];const _0x4c7bc8=new _0x94a41['Uint8Array'](_0x163dc4);for(;_0x163dc4--;)_0x4c7bc8[_0x163dc4]=_0x425130['charCodeAt'](_0x163dc4);return new _0x94a41['File']([_0x4c7bc8],'image.'+_0x39ff10,{'type':_0x3139be});}const _0x20d3cb=_0x493091['href']['split']('/'),_0x5aa84d=_0x20d3cb[_0x20d3cb['length']-0x1],_0x265df2=_0x5aa84d['split']('.')[0x1];return _0x94a41['fetch'](_0x493091['href'])['then'](_0x3293be=>_0x3293be['clone']()['blob']())['then'](_0x2230bc=>new _0x94a41['File']([_0x2230bc],_0x5aa84d,{'type':'image/'+_0x265df2}));}}class O extends _0x5f1d1f{['imageEditController'];static get['requires'](){return[_0x1e0111];}['_isEditable'];constructor(_0x5d2644){super(_0x5d2644),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x268941){const _0x471b2b=G(_0x268941);return _0x372e53=>!(!_0x372e53||!_0x372e53['is']('element','imageBlock')&&!_0x372e53['is']('element','imageInline'))&&(!!_0x372e53['hasAttribute']('uploadcareImageId')||!!_0x372e53['hasAttribute']('src')&&_0x471b2b(_0x372e53['getAttribute']('src')));}(_0x5d2644['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x17f09f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x17f09f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2fe239=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2fe239&&(_0x2fe239['is']('element','imageBlock')||_0x2fe239['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1e0111),_0x2fe239),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x5f1d1f{['refresh'](){const _0x4753a5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4753a5&&(_0x4753a5['is']('element','imageBlock')||_0x4753a5['is']('element','imageInline')));}['execute'](_0x87557){const _0x162717=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x24ac0e=>{_0x24ac0e['setAttributes'](_0x87557,_0x162717),_0x24ac0e['removeAttribute']('srcset',_0x162717),_0x24ac0e['removeAttribute']('sizes',_0x162717);});}}class m extends _0x4e90a5{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x56b5e2,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x411518}=this;_0x411518['commands']['add']('uploadcareImageEdit',new O(_0x411518)),_0x411518['commands']['add']('uploadcareImageReplace',new R(_0x411518));}}class g extends _0x4e90a5{['_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 _0x197d8f=this['editor'];_0x197d8f['ui']['componentFactory']['add']('uploadcareImageEdit',_0x1329be=>{const _0x2dd6a6=_0x197d8f['commands']['get']('uploadcareImageEdit'),_0x53c66e=new _0x566edc(_0x1329be),t=_0x1329be['t'];return _0x53c66e['set']({'icon':_0x2e3c93,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x53c66e['bind']('isEnabled')['to'](_0x2dd6a6),_0x53c66e['bind']('isOn')['to'](_0x2dd6a6,'isActive'),this['listenTo'](_0x53c66e,'execute',()=>{_0x197d8f['execute']('uploadcareImageEdit'),_0x197d8f['editing']['view']['focus']();}),_0x53c66e;}),this['_initConfig']();}['_initConfig'](){const _0x3e9b60=_0xef2b99(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x3e9b60),this['listenTo'](this['editor'],'destroy',()=>{_0x3e9b60['remove']();});}}class et extends _0x4e90a5{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 _0x75a889,Command as _0xf7caf6}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x13abb5,IconGooglePhotos as _0x44fe9b,IconGoogleDrive as _0x382bf4,IconFacebook as _0xd27adf,IconDropbox as _0x58ed9f,IconUploadcareLink as _0x484bb8,IconUploadcareImageUpload as _0x5cd2b3,IconError as _0x33ebaa,IconUploadcareImageEdit as _0x2e2692}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x149532,MenuBarMenuListItemButtonView as _0x40b3dc,View as _0xa2b4cf,FocusCycler as _0x4b44dd,Dialog as _0x11310b,DialogViewPosition as _0x3fde09,SpinnerView as _0x975c7d,IconView as _0x74fe94,Notification as _0x425d38}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x186bf3,DomEmitterMixin as _0x509f01,global as _0x144693,getAncestors as _0x1c2c16,ObservableMixin as _0x420e81,uid as _0x2f1573,createElement as _0xd23753}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x54226c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xfc070d,info as _0x27cf3b}from'@uploadcare/upload-client';import*as _0x2fded0 from'@uploadcare/file-uploader';var i=function(_0x2c3f78){return _0x2c3f78['Local']='local',_0x2c3f78['URL']='url',_0x2c3f78['Dropbox']='dropbox',_0x2c3f78['GDrive']='gdrive',_0x2c3f78['Facebook']='facebook',_0x2c3f78['GPhotos']='gphotos',_0x2c3f78['OneDrive']='onedrive',_0x2c3f78;}({});function _(_0x8fb40,_0x3a8bbd,_0x35f21b){const t=_0x8fb40['t'],_0x3f88e0=_0x8fb40['t'];switch(_0x3a8bbd){case i['Local']:return{'text':_0x3f88e0('Insert'===_0x35f21b?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3f88e0('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x35f21b?_0x3f88e0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3f88e0('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x35f21b?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x35f21b?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x35f21b?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x35f21b?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x35f21b?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3a8bbd;}}class e extends _0x75a889{['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 _0x6bfc28=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4da96a;for(const _0x27e166 in _0x6bfc28){const _0x1eb518=_0x27e166,_0x47860d=_0x6bfc28[_0x1eb518];if('uploadcareLicenseKeyValid'==_0x47860d||'uploadcareLicenseKeyInvalid'==_0x47860d||'uploadcareLicenseKeyExpired'==_0x47860d||'uploadcareLicenseKeyDomainLimit'==_0x47860d||'uploadcareLicenseKeyNotAllowed'==_0x47860d||'uploadcareLicenseKeyEvaluationLimit'==_0x47860d||'uploadcareLicenseKeyTrialLimit'==_0x47860d||'uploadcareLicenseKeyUsageLimit'==_0x47860d){delete _0x6bfc28[_0x1eb518],_0x4da96a=_0x47860d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x4da96a&&_0x6bfc28['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x4da96a&&_0x6bfc28['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x4da96a&&_0x6bfc28['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x4da96a&&_0x6bfc28['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x4da96a&&_0x6bfc28['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x4da96a&&_0x6bfc28['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x4da96a&&_0x6bfc28['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x31fb0a}=this,_0xd01bcf=_0x31fb0a['commands']['get']('uploadcare');if(!_0xd01bcf)return;const _0x44500c=this['_normalizeConfigSourceList'](_0x31fb0a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5d4af4,_0x3e51a0)=>{const _0x4204f1=this['_getIntegrationKey'](_0x3e51a0['type']);return _0x5d4af4[_0x4204f1]||(_0x5d4af4[_0x4204f1]=[]),_0x5d4af4[_0x4204f1]['push'](_0x3e51a0),_0x5d4af4;},{});_0x31fb0a['plugins']['has']('ImageInsertUI')&&_0x31fb0a['commands']['get']('uploadcare')&&Object['entries'](_0x44500c)['forEach'](([_0x10d3c8,_0x1164d4])=>{_0x31fb0a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x10d3c8,'observable':()=>_0xd01bcf,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1164d4),'formViewCreator':()=>this['_createDropdownButtons'](_0x1164d4),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1164d4),'override':'assetManager'!==_0x10d3c8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x52ca18){const {locale:_0x21fde3}=this['editor'];return _0x52ca18['map'](_0x12b3f4=>{const _0xea6565=_(_0x21fde3,_0x12b3f4,'Insert');switch(_0x12b3f4){case i['Local']:return{'icon':_0x5cd2b3,'type':i['Local'],..._0xea6565};case i['URL']:return{'icon':_0x484bb8,'type':i['URL'],..._0xea6565};case i['Dropbox']:return{'icon':_0x58ed9f,'type':i['Dropbox'],..._0xea6565};case i['Facebook']:return{'icon':_0xd27adf,'type':i['Facebook'],..._0xea6565};case i['GDrive']:return{'icon':_0x382bf4,'type':i['GDrive'],..._0xea6565};case i['GPhotos']:return{'icon':_0x44fe9b,'type':i['GPhotos'],..._0xea6565};case i['OneDrive']:return{'icon':_0x13abb5,'type':i['OneDrive'],..._0xea6565};}});}['_getIntegrationKey'](_0x357ce2){switch(_0x357ce2){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x334432,_0x4d6623){const _0x168f58=this['editor'],_0x5be0ed=new _0x334432(_0x168f58['locale']),_0x4a58cd=_0x168f58['commands']['get']('uploadcare');return _0x5be0ed['bind']('isEnabled')['to'](_0x4a58cd),_0x5be0ed['on']('execute',()=>{_0x4a58cd['execute'](_0x4d6623);}),_0x5be0ed;}['_createToolbarButton'](_0x5e3061){const {locale:_0x26cab7}=this['editor'],_0x71210c=this['editor']['plugins']['get']('ImageInsertUI'),_0xca109f=_0x5e3061[0x0],_0x56eb94=this['_createButton'](_0x149532,_0xca109f['type']);return _0x56eb94['icon']=_0xca109f['icon'],_0x56eb94['bind']('label')['to'](_0x71210c,'isImageSelected',_0x1d983b=>_(_0x26cab7,_0xca109f['type'],_0x1d983b?'Replace':'Insert')['text']),_0x56eb94['tooltip']=!0x0,_0x56eb94;}['_createDropdownButtons'](_0x995457){const {locale:_0x48afbf}=this['editor'],_0x548d85=this['editor']['plugins']['get']('ImageInsertUI');return _0x995457['map'](_0x3e2201=>{const _0x53b7d6=this['_createButton'](_0x149532,_0x3e2201['type']);return _0x53b7d6['withText']=!0x0,_0x53b7d6['icon']=_0x3e2201['icon'],_0x53b7d6['bind']('label')['to'](_0x548d85,'isImageSelected',_0x1d62bd=>_(_0x48afbf,_0x3e2201['type'],_0x1d62bd?'Replace':'Insert')['text']),_0x53b7d6;});}['_createMenuBarButtons'](_0x4d7636){return _0x4d7636['map'](_0x4c528a=>{const _0x43aef5=this['_createButton'](_0x40b3dc,_0x4c528a['type']);return _0x43aef5['icon']=_0x4c528a['icon'],_0x43aef5['label']=_0x4c528a['shortText'],_0x43aef5;});}}class F extends _0xa2b4cf{['focusTracker'];['focusCycler'];constructor(_0x115d2a){super(_0x115d2a),this['focusTracker']=new _0x186bf3(),this['focusCycler']=new _0x4b44dd({'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(_0x21b613,_0x400a32){super(_0x21b613),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-'+_0x400a32}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3fff8b,_0x3a9923){const _0x44e2da=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x135218=>_0x135218<=_0x3a9923)['map'](_0x2374a1=>_0x3fff8b['replace'](/\/$/,'')+'/-/resize/'+_0x2374a1+'x/\x20'+_0x2374a1+'w');return{'imageFallbackUrl':_0x3fff8b,'imageSources':[{'srcset':_0x44e2da['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3a9923+'px)\x20100vw,\x20'+_0x3a9923+'px','type':'image/webp'}]};}function S(_0x1a907d,_0x28ef19,_0x5b70f0){const _0x1512a1=_0x1a907d['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x1512a1?parseInt(_0x1512a1[0x1],0xa):_0x28ef19,'height':_0x1512a1?parseInt(_0x1512a1[0x2],0xa):_0x5b70f0};}function p(_0x1bf729,_0x13bff4){const _0x370135=new(_0x509f01())(),_0x72300a=_0x1bf729['plugins']['get']('ImageUtils'),_0x578723=_0x1bf729['editing']['mapper']['toViewElement'](_0x13bff4),_0x721c53=_0x72300a['findViewImgElement'](_0x578723),_0x2239c5=_0x1bf729['editing']['view']['domConverter']['viewToDom'](_0x721c53),_0x50bcd7=_0x13bff4['getAttribute']('width'),_0x576479=_0x13bff4['getAttribute']('height'),_0x389474='image-processing';_0x1bf729['editing']['view']['change'](_0x345d7a=>{_0x345d7a['addClass'](_0x389474,_0x578723),_0x345d7a['setStyle']('aspect-ratio',_0x50bcd7+'/'+_0x576479,_0x721c53);}),_0x370135['listenTo'](_0x2239c5,'load',()=>{_0x370135['stopListening'](_0x2239c5,'load'),_0x1bf729['editing']['view']['change'](_0x3fd93e=>{_0x3fd93e['removeClass'](_0x389474,_0x578723),_0x3fd93e['removeStyle']('aspect-ratio',_0x721c53);});});}function G(_0x5d2b94){if(Array['isArray'](_0x5d2b94)){const _0x334c5c=_0x5d2b94['map'](G);return _0x173b68=>_0x334c5c['some'](_0x2185af=>_0x2185af(_0x173b68));}if('origin'==_0x5d2b94){const _0x5a4d7f=_0x144693['window']['location']['origin'];return _0x5a2779=>new URL(_0x5a2779,_0x144693['document']['baseURI'])['origin']==_0x5a4d7f;}return'function'==typeof _0x5d2b94?_0x5d2b94:_0x5d2b94 instanceof RegExp?_0x504cac=>!(!_0x504cac['match'](_0x5d2b94)&&!_0x504cac['replace'](/^https?:\/\//,'')['match'](_0x5d2b94)):()=>!0x1;}function A(_0x13539b,_0x5e0bd0){return _0x1c2c16(_0x13539b['target'])['includes'](_0x5e0bd0);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x420e81(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x58b9ea,_0x28022a,_0x4aa3ac){super(),this['_editor']=_0x58b9ea,this['_editing']=_0x28022a,this['_dialog']=_0x58b9ea['plugins']['get'](_0x11310b),this['_api']=_0x28022a['ctxElement']['getAPI'](),this['_type']=_0x4aa3ac,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:_0x2c9bc2,model:_0x5145f9}=this['_editor'],_0x34e44c=_0x5145f9['document']['selection']['getSelectedElement'](),_0x1d4954=_0x34e44c&&(_0x34e44c['is']('element','imageBlock')||_0x34e44c['is']('element','imageInline'));this['_formView']=new x(_0x2c9bc2,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x5cd2b3,'title':_(_0x2c9bc2,this['_type'],_0x1d4954?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3fde09['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x16eea0=>!A(_0x16eea0,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5f1ffe}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x13ddaa=>{const _0xd0a12e=_0x5f1ffe['length'];for(const _0x3ed141 of _0x5f1ffe){const _0x494459=_0x3ed141===_0x5f1ffe[_0xd0a12e-0x1],{cdnUrl:_0xa47000,fileInfo:_0x4e8d0c}=_0x3ed141;if(!_0xa47000||!_0x4e8d0c)continue;const {width:_0x1c63d2,height:_0x58c953}=_0x4e8d0c['imageInfo'],_0xa3c745=S(_0xa47000,_0x1c63d2,_0x58c953),_0x51a355=C(_0xa47000,_0xa3c745['width']),_0x4efd7d={'id':_0x4e8d0c['uuid'],'type':'image','attributes':{'imageDimension':_0xa3c745,..._0x51a355}};this['_insertAsset'](_0x4efd7d,_0x494459,_0x13ddaa);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x44edb2=>{'idle'===_0x44edb2['detail']['status']&&!_0x44edb2['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x150e7f,_0x325f4b,_0x586043){const _0x141e43=this['_editor']['model']['document']['selection'],_0x22abff=_0x141e43['getSelectedElement'](),_0x314513=!(!_0x22abff||!_0x22abff['is']('element','imageInline'));_0x586043['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x150e7f,_0x314513),_0x325f4b||_0x586043['setSelection'](_0x141e43['getLastPosition']());}['_insertImage'](_0x47819d,_0x162157){const _0xb3e308=this['_editor'],{imageDimension:_0x457be6,imageFallbackUrl:_0x133643,imageSources:_0xd024f6}=_0x47819d['attributes'];_0xb3e308['execute']('insertImage',{'imageType':_0x162157?'imageInline':null,'source':{'uploadcareImageId':_0x47819d['id'],'src':_0x133643,'sources':_0xd024f6,..._0x457be6}});}}class w extends _0xf7caf6{['_editing'];['_controller']=null;static get['requires'](){return[_0x11310b,o];}constructor(_0x206bc9){super(_0x206bc9),this['_editing']=_0x206bc9['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x54d38d){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x54d38d);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x39a751,..._0x12fb26}){return _0xfc070d(_0x39a751,_0x12fb26);}static['getInfo'](_0x50e2c8,_0x2eb17b){return _0x27cf3b(_0x50e2c8,_0x2eb17b);}}class f extends _0x75a889{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x54226c,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x19fb3c=this['editor'];if(!!!_0x19fb3c['config']['get']('uploadcare'))return;_0x19fb3c['plugins']['get'](_0x54226c)['createUploadAdapter']=_0x262be7=>new k(_0x262be7,_0x19fb3c),_0x19fb3c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x5edafb,{imageElement:_0x4a242a,data:_0x1847e5})=>{_0x19fb3c['model']['change'](_0x513de7=>{_0x513de7['setAttribute']('uploadcareImageId',_0x1847e5['uploadcareImageId'],_0x4a242a);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x1321c7,_0x47e104){this['loader']=_0x1321c7,this['editor']=_0x47e104,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1ede78=await this['loader']['file'];return j['upload']({'file':_0x1ede78,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x5f3982=>{_0x5f3982&&_0x5f3982['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5f3982['value']);}})['then'](async _0x379131=>{const {imageFallbackUrl:_0x3a6310,imageSources:_0x61deed}=C(_0x379131['cdnUrl'],_0x379131['imageInfo']['width']);return{'uploadcareImageId':_0x379131['uuid'],'default':_0x3a6310,'sources':_0x61deed};})['catch'](()=>{const _0x1bfc0e=t('Cannot\x20upload\x20file:')+('\x20'+_0x1ede78['name']+'.');return Promise['reject'](_0x1bfc0e);});}['abort'](){this['controller']['abort']();}}class o extends _0x75a889{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x11310b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x284c15){super(_0x284c15),this['ucContextId']=_0x2f1573();}['init'](){const _0x4422fb=this['editor'];_0x4422fb['commands']['add']('uploadcare',new w(_0x4422fb));}['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 _0x1e4abf=_0x144693['document']['querySelector']('input[uploadcare-file-input]');_0x1e4abf&&_0x1e4abf['remove']();}),async function(_0x3d67d6){const _0x148a16=_0x5d1549([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x30ae8a=0x3d8d0df,_0x3dc783=0x3dfa58f^_0x30ae8a,_0x326d6b=window[_0x5d1549([0x44,0x61,0x74,0x65])][_0x5d1549([0x6e,0x6f,0x77])](),_0x3efb6b=_0x3d67d6[_0x5d1549([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54d4e4=new window[(_0x5d1549([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43ec80=>{_0x3efb6b[_0x5d1549([0x6f,0x6e,0x63,0x65])](_0x5d1549([0x72,0x65,0x61,0x64,0x79]),_0x43ec80);}),_0x1297be={[_0x5d1549([0x6b,0x74,0x79])]:_0x5d1549([0x45,0x43]),[_0x5d1549([0x75,0x73,0x65])]:_0x5d1549([0x73,0x69,0x67]),[_0x5d1549([0x63,0x72,0x76])]:_0x5d1549([0x50,0x2d,0x32,0x35,0x36]),[_0x5d1549([0x78])]:_0x5d1549([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]),[_0x5d1549([0x79])]:_0x5d1549([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]),[_0x5d1549([0x61,0x6c,0x67])]:_0x5d1549([0x45,0x53,0x32,0x35,0x36])},_0x2ac06e=_0x3efb6b[_0x5d1549([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5d1549([0x67,0x65,0x74])](_0x5d1549([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xf35bd3(){let _0x56739e,_0x1c1482=null,_0x266c4c=null;try{if(_0x2ac06e==_0x5d1549([0x47,0x50,0x4c]))return _0x5d1549([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x56739e=_0x49d063(),!_0x56739e)return _0x5d1549([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x56739e[_0x5d1549([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x266c4c=_0xcee511(_0x56739e[_0x5d1549([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x56739e[_0x5d1549([0x6a,0x74,0x69])])),await _0x430743()?_0x1fa61c()?_0x4e1d7a()?_0x5d1549([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x925283()?(_0x56739e[_0x5d1549([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d1549([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c1482=_0x470b8d(_0x5d1549([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x56739e[_0x5d1549([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5d1549([0x74,0x72,0x69,0x61,0x6c])&&(_0x1c1482=_0x470b8d(_0x5d1549([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x393d4a()):_0x5d1549([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5d1549([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5d1549([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5d1549([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e1d7a(){const _0xb4804e=[_0x5d1549([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5d1549([0x74,0x72,0x69,0x61,0x6c])][_0x5d1549([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56739e[_0x5d1549([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x326d6b/0x3e8:0xe10*_0x3dc783;return _0x56739e[_0x5d1549([0x65,0x78,0x70])]<_0xb4804e;}function _0x1fa61c(){const _0x40f130=_0x56739e[_0x5d1549([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x40f130&&(!!_0x40f130[_0x5d1549([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d1549([0x2a]))||!!_0x40f130[_0x5d1549([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d1549([0x55,0x50,0x4c,0x43])));}function _0x925283(){const _0x5e0870=_0x56739e[_0x5d1549([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e0870||0x0==_0x5e0870[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b6d17}=new URL(window[_0x5d1549([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e0870[_0x5d1549([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b6d17))return!0x0;const _0x44385f=_0x1b6d17[_0x5d1549([0x73,0x70,0x6c,0x69,0x74])](_0x5d1549([0x2e]));return _0x5e0870[_0x5d1549([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x220810=>_0x220810[_0x5d1549([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d1549([0x2a])))[_0x5d1549([0x6d,0x61,0x70])](_0x3fec03=>_0x3fec03[_0x5d1549([0x73,0x70,0x6c,0x69,0x74])](_0x5d1549([0x2e])))[_0x5d1549([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d088d=>_0x5d088d[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x44385f[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d1549([0x6d,0x61,0x70])](_0x273075=>Array(_0x44385f[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x273075[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5d1549([0x66,0x69,0x6c,0x6c])](_0x273075[0x0]===_0x5d1549([0x2a])?_0x5d1549([0x2a]):'')[_0x5d1549([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x273075))[_0x5d1549([0x73,0x6f,0x6d,0x65])](_0x48de94=>_0x44385f[_0x5d1549([0x65,0x76,0x65,0x72,0x79])]((_0x3e9527,_0x472eef)=>_0x48de94[_0x472eef]===_0x3e9527||_0x48de94[_0x472eef]===_0x5d1549([0x2a])));}function _0x393d4a(){return _0x1c1482&&_0x266c4c?new window[(_0x5d1549([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b6dfd,_0x4b59f)=>{_0x1c1482[_0x5d1549([0x74,0x68,0x65,0x6e])](_0x4b6dfd,_0x4b59f),_0x266c4c[_0x5d1549([0x74,0x68,0x65,0x6e])](_0x394034=>{_0x394034!=_0x5d1549([0x56,0x61,0x6c,0x69,0x64])&&_0x4b6dfd(_0x394034);},_0x4b59f);}):_0x1c1482||_0x266c4c||_0x5d1549([0x56,0x61,0x6c,0x69,0x64]);}}function _0xcee511(_0x54f7f0,_0x2a66c4){return new window[(_0x5d1549([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f6895=>{if(_0x4a0494())return _0x4f6895(_0x5d1549([0x56,0x61,0x6c,0x69,0x64]));_0x3fd6ca(),_0x3efb6b[_0x5d1549([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5d1549([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4147f9=!0x1;const _0x26bce1=_0x2f1573();function _0x1d4e91(_0x4e1c4a){return!!_0x4e1c4a&&(typeof _0x4e1c4a===_0x5d1549([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e1c4a===_0x5d1549([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e1c4a[_0x5d1549([0x74,0x68,0x65,0x6e])]===_0x5d1549([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e1c4a[_0x5d1549([0x63,0x61,0x74,0x63,0x68])]===_0x5d1549([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fb6ee(_0x3a3553){_0x111b7f(_0x3a3553)[_0x5d1549([0x74,0x68,0x65,0x6e])](_0x21dacc=>{if(!_0x21dacc||_0x21dacc[_0x5d1549([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5d1549([0x6f,0x6b]))return _0x5d1549([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x81200d(_0x46d0c9(_0x26bce1+_0x2a66c4))!=_0x21dacc[_0x5d1549([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5d1549([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5d1549([0x56,0x61,0x6c,0x69,0x64]);})[_0x5d1549([0x74,0x68,0x65,0x6e])](_0x4aa0cc=>(_0x289c64(),_0x4aa0cc),()=>{const _0x37e2c8=_0x252bd8();return null==_0x37e2c8?(_0x289c64(),_0x5d1549([0x56,0x61,0x6c,0x69,0x64])):_0x5d1549(_0x326d6b-_0x37e2c8>(0x27d454df^_0x30ae8a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5d1549([0x74,0x68,0x65,0x6e])](_0x4f6895)[_0x5d1549([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f6895(_0x5d1549([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x11092f=0x3ee3e5f^_0x30ae8a;function _0x289c64(){const _0x19c870=_0x5d1549([0x6c,0x6c,0x63,0x74,0x2d])+_0x81200d(_0x46d0c9(_0x54f7f0)),_0xd49afe=_0x255844(_0x81200d(window[_0x5d1549([0x4d,0x61,0x74,0x68])][_0x5d1549([0x63,0x65,0x69,0x6c])](_0x326d6b/_0x11092f)));window[_0x5d1549([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d1549([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19c870,_0xd49afe);}function _0x252bd8(){const _0x269102=_0x5d1549([0x6c,0x6c,0x63,0x74,0x2d])+_0x81200d(_0x46d0c9(_0x54f7f0)),_0x2c5af5=window[_0x5d1549([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5d1549([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x269102);return _0x2c5af5?window[_0x5d1549([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x255844(_0x2c5af5),0x10)*_0x11092f:null;}function _0x111b7f(_0x64b3ee){return new window[(_0x5d1549([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9ca0e7,_0x36c9eb)=>{_0x64b3ee[_0x5d1549([0x74,0x68,0x65,0x6e])](_0x9ca0e7,_0x36c9eb),window[_0x5d1549([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x36c9eb,0x3d9041f^_0x30ae8a);});}}_0x3efb6b[_0x5d1549([0x6f,0x6e])](_0x5d1549([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x30e629,_0x4fef43)=>{if(_0x4fef43[0x0]!=_0x54f7f0)return _0x4f6895(_0x5d1549([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4fef43[0x1]={..._0x4fef43[0x1],[_0x5d1549([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x26bce1};},{[_0x5d1549([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d1549([0x68,0x69,0x67,0x68])}),_0x3efb6b[_0x5d1549([0x6f,0x6e])](_0x5d1549([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x498671=>{_0x1d4e91(_0x498671[_0x5d1549([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4147f9=!0x0,_0x2fb6ee(_0x498671[_0x5d1549([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5d1549([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5d1549([0x6c,0x6f,0x77])}),_0x54d4e4[_0x5d1549([0x74,0x68,0x65,0x6e])](()=>{_0x4147f9||_0x4f6895(_0x5d1549([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a0494(){return _0x3efb6b[_0x5d1549([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d1549([0x76,0x69,0x65,0x77])][_0x5d1549([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5d1549([0x61,0x75,0x74,0x6f]);}function _0x3fd6ca(){_0x3efb6b[_0x5d1549([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5d1549([0x76,0x69,0x65,0x77])][_0x5d1549([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5d1549([0x61,0x75,0x74,0x6f]);}}function _0x470b8d(_0x1cdb5b){const _0xc7467b=[new window[(_0x5d1549([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x154ca4=>setTimeout(_0x154ca4,0x3d1ee13^_0x30ae8a)),_0x54d4e4[_0x5d1549([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5d1549([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x448fb6=>{let _0x40f824=0x0;_0x3efb6b[_0x5d1549([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d1549([0x6f,0x6e])](_0x5d1549([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3ec6b9,_0xf8d61e)=>{_0xf8d61e[0x0][_0x5d1549([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40f824++,_0x40f824==(0x3d8d127^_0x30ae8a)&&(_0x448fb6(),_0x3ec6b9[_0x5d1549([0x6f,0x66,0x66])]());});}))];return window[_0x5d1549([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5d1549([0x72,0x61,0x63,0x65])](_0xc7467b)[_0x5d1549([0x74,0x68,0x65,0x6e])](()=>_0x1cdb5b);}async function _0x2c8175(){await _0x54d4e4,_0x3efb6b[_0x5d1549([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d1549([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x53a832,_0x3efb6b[_0x5d1549([0x6d,0x6f,0x64,0x65,0x6c])][_0x5d1549([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x53a832,_0x3efb6b[_0x5d1549([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5d1549([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4cacea(_0x154178){const _0x4a7e94=_0x5bd4f2();_0x3efb6b[_0x4a7e94]=_0x5d1549([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x154178,_0x154178!=_0x5d1549([0x56,0x61,0x6c,0x69,0x64])&&_0x2c8175();}function _0x5bd4f2(){const _0x2fea0e=window[_0x5d1549([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5d1549([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5d1549([0x6e,0x6f,0x77])]())[_0x5d1549([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5d1549([0x2e]),'');let _0x1342c8=_0x5d1549([0x52]);for(let _0x2e7b8a=0x0;_0x2e7b8a<_0x2fea0e[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e7b8a+=0x2){let _0x428dc3=window[_0x5d1549([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fea0e[_0x5d1549([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e7b8a,_0x2e7b8a+0x2));_0x428dc3>=_0x148a16[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x428dc3-=_0x148a16[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1342c8+=_0x148a16[_0x428dc3];}return _0x1342c8;}function _0x49d063(){const _0x25b87a=_0x2ac06e[_0x5d1549([0x73,0x70,0x6c,0x69,0x74])](_0x5d1549([0x2e]));if(0x3!=_0x25b87a[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16719b(_0x25b87a[0x1]);function _0x16719b(_0x6e52d2){const _0x179fb6=_0x39c879(_0x6e52d2);return _0x179fb6&&_0x17e62c()?_0x179fb6:null;function _0x17e62c(){const _0x213527=_0x179fb6[_0x5d1549([0x6a,0x74,0x69])],_0x4ea6d3=window[_0x5d1549([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x213527[_0x5d1549([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x213527[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x206edb={..._0x179fb6,[_0x5d1549([0x6a,0x74,0x69])]:_0x213527[_0x5d1549([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x213527[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x206edb[_0x5d1549([0x76,0x63])],_0x46d0c9(_0x206edb)==_0x4ea6d3;}}}async function _0x430743(){let _0x4932a4=!0x0;try{const _0x6cf3ee=_0x2ac06e[_0x5d1549([0x73,0x70,0x6c,0x69,0x74])](_0x5d1549([0x2e])),[_0x219f48,_0x374388,_0x55e38b]=_0x6cf3ee;return _0x5645e0(_0x219f48),await _0xe57aae(_0x219f48,_0x374388,_0x55e38b),_0x4932a4;}catch{return!0x1;}function _0x5645e0(_0x1fb271){const _0x577769=_0x39c879(_0x1fb271);_0x577769&&_0x577769[_0x5d1549([0x61,0x6c,0x67])]==_0x5d1549([0x45,0x53,0x32,0x35,0x36])||(_0x4932a4=!0x1);}async function _0xe57aae(_0x3ce341,_0x4c33d3,_0x591152){const _0x13fb41=window[_0x5d1549([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5d1549([0x66,0x72,0x6f,0x6d])](_0x57cd20(_0x591152),_0xd7b765=>_0xd7b765[_0x5d1549([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x35800a=new window[(_0x5d1549([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5d1549([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ce341+_0x5d1549([0x2e])+_0x4c33d3),_0x4022d1=window[_0x5d1549([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5d1549([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4022d1)return;const _0x3db88d=await _0x4022d1[_0x5d1549([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5d1549([0x6a,0x77,0x6b]),_0x1297be,{[_0x5d1549([0x6e,0x61,0x6d,0x65])]:_0x5d1549([0x45,0x43,0x44,0x53,0x41]),[_0x5d1549([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5d1549([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5d1549([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4022d1[_0x5d1549([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5d1549([0x6e,0x61,0x6d,0x65])]:_0x5d1549([0x45,0x43,0x44,0x53,0x41]),[_0x5d1549([0x68,0x61,0x73,0x68])]:{[_0x5d1549([0x6e,0x61,0x6d,0x65])]:_0x5d1549([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3db88d,_0x13fb41,_0x35800a)||(_0x4932a4=!0x1);}}function _0x39c879(_0x58920e){return _0x58920e[_0x5d1549([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5d1549([0x65,0x79]))?JSON[_0x5d1549([0x70,0x61,0x72,0x73,0x65])](_0x57cd20(_0x58920e)):null;}function _0x57cd20(_0x1d7316){return window[_0x5d1549([0x61,0x74,0x6f,0x62])](_0x1d7316[_0x5d1549([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5d1549([0x2b]))[_0x5d1549([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5d1549([0x2f])));}function _0x46d0c9(_0x59b27b){let _0x35524e=0x1505;function _0x22a743(_0x51dcae){for(let _0x4f6a47=0x0;_0x4f6a47<_0x51dcae[_0x5d1549([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f6a47++){const _0x4f4cf8=_0x51dcae[_0x5d1549([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4f6a47);_0x35524e=(_0x35524e<<0x5)+_0x35524e+_0x4f4cf8,_0x35524e&=_0x35524e;}}function _0xffe0a2(_0x4972f2){Array[_0x5d1549([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4972f2)?_0x4972f2[_0x5d1549([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xffe0a2):_0x4972f2&&typeof _0x4972f2==_0x5d1549([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5d1549([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4972f2)[_0x5d1549([0x73,0x6f,0x72,0x74])]()[_0x5d1549([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40aa2b,_0x2054ed])=>{_0x22a743(_0x40aa2b),_0xffe0a2(_0x2054ed);}):_0x22a743(window[_0x5d1549([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4972f2));}return _0xffe0a2(_0x59b27b),_0x35524e>>>0x0;}function _0x81200d(_0x3fe9bb){return _0x3fe9bb[_0x5d1549([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5d1549([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5d1549([0x30]));}function _0x255844(_0x1329a4){return _0x1329a4[_0x5d1549([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5d1549([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5d1549([0x6a,0x6f,0x69,0x6e])]('');}function _0x53a832(){}function _0x5d1549(_0x11dae5){return _0x11dae5['map'](_0xac811=>String['fromCharCode'](_0xac811))['join']('');}_0x4cacea(await _0xf35bd3());}(this);}['_initSchema'](){const _0x27dc5b=this['editor']['model']['schema'];_0x27dc5b['isRegistered']('imageBlock')&&_0x27dc5b['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x27dc5b['isRegistered']('imageInline')&&_0x27dc5b['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x1406ba=this['editor'];_0x1406ba['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x1406ba['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x2652a6=>_0x2652a6['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x384ae2=_0x1406ba['commands']['get']('replaceImageSource');_0x384ae2&&this['listenTo'](_0x384ae2,'cleanupImage',(_0x806988,[_0x30f5e1,_0x41c472])=>{_0x30f5e1['removeAttribute']('uploadcareImageId',_0x41c472);});}['_initConfig'](){const _0x4fc4ca=this['editor']['config']['get']('uploadcare.uploader')||{},_0x29119e=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xd23753(_0x144693['document'],'uc-config',{..._0x4fc4ca,'pubkey':_0x29119e,'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']=_0x476711=>{if('closeMax'==_0x476711)return'#uc-icon-arrow-down';},_0x144693['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xd23753(_0x144693['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x144693['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x440e2a=this['editor']['commands']['get']('insertImage');_0x440e2a&&this['listenTo'](_0x440e2a,'execute',()=>{const _0x1034a9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1034a9&&_0x1034a9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x1034a9);});});const _0x548725=this['editor']['commands']['get']('uploadcareImageReplace');_0x548725&&this['listenTo'](_0x548725,'execute',()=>{const _0x99eada=this['editor']['model']['document']['selection']['getSelectedElement']();_0x99eada&&_0x99eada['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x99eada);});});}}class tt extends _0x75a889{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x431c9f){super(_0x431c9f),_0x431c9f['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x2fded0['defineComponents'](_0x2fded0);}}class ii extends _0xa2b4cf{constructor(_0x4655d1){super(_0x4655d1);const t=_0x4655d1['t'],_0x162cd2=this['bindTemplate'],_0x125dee=new _0x975c7d();_0x125dee['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':[_0x125dee,{'text':_0x162cd2['to']('imageUploadProgress',_0x440d15=>t('Loading\x20image...')+'\x20('+(_0x440d15||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 _0xa2b4cf{constructor(_0x2320ae){super(_0x2320ae);const t=_0x2320ae['t'];this['set']('errorType',null);const _0x2f0af3=new _0x149532(_0x2320ae);_0x2f0af3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x2f0af3['withText']=!0x0,_0x2f0af3['class']='ck-button-action',_0x2f0af3['on']('execute',()=>{this['fire']('retry');}),_0x2f0af3['bind']('isVisible')['to'](this,'errorType',_0x3b7441=>'NotFound'!==_0x3b7441);const _0x47c16e=new _0x74fe94();_0x47c16e['content']=_0x33ebaa,_0x47c16e['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x49a634=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':[_0x47c16e,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x49a634['to']('errorType',_0x5ceb72=>t('NotFound'!==_0x5ceb72?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x2f0af3]},{'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 _0xa2b4cf{constructor(_0x2d2673,_0x3fd415){super(_0x2d2673);const _0x3a230c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3fd415,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x3a230c['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x32aee0,_0x575711,_0x47953a){super(_0x32aee0),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x32aee0),this['_errorView']=new ti(_0x32aee0),this['_editingView']=new ei(_0x32aee0,_0x47953a),this['_focusableView']=new _0xa2b4cf(_0x32aee0),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x575711),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'],_0x21e981=>{this['_addUploadcareImageEditorListeners'](_0x21e981);});}),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'](_0x377213,_0x1f721e){const _0x2785c3='uc-cloud-image-editor',_0x5b6997=_0x377213['querySelector'](_0x2785c3);if(_0x5b6997)return _0x1f721e(_0x5b6997);const _0x3bfe9a=new MutationObserver(_0x2bd647=>{const _0x1da7fd=_0x2bd647['filter'](_0x49870f=>_0x49870f['target']===_0x377213&&_0x49870f['addedNodes']['length']>0x0&&_0x49870f['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x2785c3);_0x1da7fd['length']&&(_0x3bfe9a['disconnect'](),_0x1f721e(_0x1da7fd[0x0]['addedNodes'][0x0]));});_0x3bfe9a['observe'](_0x377213,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x37758b){_0x37758b['addEventListener']('apply',_0x4e0ba4=>{this['fire']('apply',{'imageSrc':_0x4e0ba4['detail']['cdnUrl']});}),_0x37758b['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x420e81(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x4b567a,_0x2737b1,_0x10d87f){super(),this['_editor']=_0x4b567a,this['_dialog']=_0x2737b1,this['_imageElement']=_0x10d87f,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 _0x42e10d=this['_imageElement'],_0x4144e7=_0x42e10d['getAttribute']('uploadcareImageId'),_0x315324=_0x42e10d['getAttribute']('src');if(_0x4144e7)await this['_loadImageInfo'](_0x4144e7,_0x315324);else{if(this['_imageCache']['has'](_0x315324)){const _0x48214e=this['_imageCache']['get'](_0x315324);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x48214e['url'],this['imageDimension']=_0x48214e['dimension'],this['imageId']=_0x48214e['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xc963ff}=this['_editor'],t=_0xc963ff['t'],_0x495c9b=new X(_0xc963ff,this['imageStatus'],this['_attributes']);_0x495c9b['bind']('status')['to'](this,'imageStatus'),_0x495c9b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x495c9b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x495c9b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x495c9b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2e2692,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x495c9b,'position':_0x3fde09['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x495c9b['focus']();},'onHide':()=>{_0x495c9b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x33d505=>!A(_0x33d505,_0x495c9b['element'])}});}['_loadImageInfo'](_0x179ebd,_0x541914){return j['getInfo'](_0x179ebd,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x282988=>{const {width:_0x1c3010,height:_0x48a593}=_0x282988['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x541914,this['imageDimension']={'width':_0x1c3010,'height':_0x48a593},this['imageId']=_0x179ebd;})['catch'](_0x476aed=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x476aed['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x10a1f6,_0x34f738){return this['_getImageAsFile'](_0x10a1f6)['then'](_0x5e9c89=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x34f738['signal'],'file':_0x5e9c89,'onProgress':_0x4be5be=>{_0x4be5be&&_0x4be5be['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4be5be['value']));}}))['then'](_0x2a96ed=>{const {width:_0x20aad4,height:_0x1642f3}=_0x2a96ed['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2a96ed['cdnUrl'],this['imageDimension']={'width':_0x20aad4,'height':_0x1642f3},this['imageId']=_0x2a96ed['uuid'],this['imageUploadProgress']=null;const _0x23de0e=_0x10a1f6['getAttribute']('src');this['_imageCache']['set'](_0x23de0e,{'id':_0x2a96ed['uuid'],'url':_0x2a96ed['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x4aa545=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4aa545['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x155d3b,_0x2f39ec){_0x155d3b['on']('apply',(_0x31686f,_0xe0ef27)=>{this['_replaceImage'](_0x2f39ec,_0xe0ef27['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x155d3b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x155d3b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x500b49,_0x5be7d2,_0x8262bd){const _0x1cf2f5=this['_editor'],{width:_0x445f9a,height:_0x888d57}=S(_0x5be7d2,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0xa887a6,imageSources:_0x27d4c7}=C(_0x5be7d2,_0x445f9a);_0x1cf2f5['model']['change'](_0x4cf152=>{if('$graveyard'===_0x500b49['root']['rootName']){_0x1cf2f5['execute']('insertImage',{'imageType':_0x500b49['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x500b49['getAttributes']()),'uploadcareImageId':_0x8262bd,'src':_0xa887a6,'sources':_0x27d4c7,'width':_0x445f9a,'height':_0x888d57}});const _0x532d4a=_0x500b49['getChildren']();_0x500b49=_0x1cf2f5['model']['document']['selection']['getSelectedElement']();for(const _0x829778 of _0x532d4a)_0x4cf152['append'](_0x4cf152['cloneElement'](_0x829778),_0x500b49);}else _0x4cf152['setSelection'](_0x500b49,'on'),_0x1cf2f5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x500b49['getAttributes']()),'uploadcareImageId':_0x8262bd,'src':_0xa887a6,'sources':_0x27d4c7,'width':_0x445f9a,'height':_0x888d57},_0x500b49);_0x4cf152['setSelection'](_0x500b49,'on');});}async['_getImageAsFile'](_0x3b73c4){const _0x5aea8c=_0x144693['window'],_0x5eeded=_0x144693['document']['location']['href'],_0x3422ee=new _0x5aea8c['URL'](_0x3b73c4['getAttribute']('src'),_0x5eeded);if('data:'===_0x3422ee['protocol']){const _0x435df6=_0x3422ee['href']['split'](','),_0x2598a7=_0x435df6[0x0]['match'](/:(.*?);/)[0x1],_0x2c950e=_0x2598a7['split']('/')[0x1],_0x1e4263=_0x5aea8c['atob'](_0x435df6[_0x435df6['length']-0x1]);let _0x54335f=_0x1e4263['length'];const _0x563529=new _0x5aea8c['Uint8Array'](_0x54335f);for(;_0x54335f--;)_0x563529[_0x54335f]=_0x1e4263['charCodeAt'](_0x54335f);return new _0x5aea8c['File']([_0x563529],'image.'+_0x2c950e,{'type':_0x2598a7});}const _0x2e692a=_0x3422ee['href']['split']('/'),_0x4047be=_0x2e692a[_0x2e692a['length']-0x1],_0x328f2a=_0x4047be['split']('.')[0x1];return _0x5aea8c['fetch'](_0x3422ee['href'])['then'](_0x33e0f9=>_0x33e0f9['clone']()['blob']())['then'](_0x3efecc=>new _0x5aea8c['File']([_0x3efecc],_0x4047be,{'type':'image/'+_0x328f2a}));}}class O extends _0xf7caf6{['imageEditController'];static get['requires'](){return[_0x11310b];}['_isEditable'];constructor(_0x574fc2){super(_0x574fc2),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x1b869f){const _0x1a8f9b=G(_0x1b869f);return _0x4de4bf=>!(!_0x4de4bf||!_0x4de4bf['is']('element','imageBlock')&&!_0x4de4bf['is']('element','imageInline'))&&(!!_0x4de4bf['hasAttribute']('uploadcareImageId')||!!_0x4de4bf['hasAttribute']('src')&&_0x1a8f9b(_0x4de4bf['getAttribute']('src')));}(_0x574fc2['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x3fb49b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x3fb49b);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x372def=this['editor']['model']['document']['selection']['getSelectedElement']();_0x372def&&(_0x372def['is']('element','imageBlock')||_0x372def['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x11310b),_0x372def),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0xf7caf6{['refresh'](){const _0x4f44f5=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x4f44f5&&(_0x4f44f5['is']('element','imageBlock')||_0x4f44f5['is']('element','imageInline')));}['execute'](_0x3b9873){const _0x57ea1a=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1fe6e2=>{_0x1fe6e2['setAttributes'](_0x3b9873,_0x57ea1a),_0x1fe6e2['removeAttribute']('srcset',_0x57ea1a),_0x1fe6e2['removeAttribute']('sizes',_0x57ea1a);});}}class m extends _0x75a889{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x425d38,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4630b9}=this;_0x4630b9['commands']['add']('uploadcareImageEdit',new O(_0x4630b9)),_0x4630b9['commands']['add']('uploadcareImageReplace',new R(_0x4630b9));}}class g extends _0x75a889{['_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 _0x3dec39=this['editor'];_0x3dec39['ui']['componentFactory']['add']('uploadcareImageEdit',_0x366b0d=>{const _0x27957e=_0x3dec39['commands']['get']('uploadcareImageEdit'),_0x26fa0e=new _0x149532(_0x366b0d),t=_0x366b0d['t'];return _0x26fa0e['set']({'icon':_0x2e2692,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x26fa0e['bind']('isEnabled')['to'](_0x27957e),_0x26fa0e['bind']('isOn')['to'](_0x27957e,'isActive'),this['listenTo'](_0x26fa0e,'execute',()=>{_0x3dec39['execute']('uploadcareImageEdit'),_0x3dec39['editing']['view']['focus']();}),_0x26fa0e;}),this['_initConfig']();}['_initConfig'](){const _0x4fdb70=_0xd23753(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x4fdb70),this['listenTo'](this['editor'],'destroy',()=>{_0x4fdb70['remove']();});}}class et extends _0x75a889{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251005.0",
|
|
4
4
|
"description": "Uploadcare feature for CKEditor 5.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"framework"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-image": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251005.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251005.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20251005.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251005.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251005.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251005.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251005.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251005.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.19.4",
|
|
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
|
-
function _0x13bf(){const _0x28a383=['destroy','data-uc-image-id','removeAttribute','config','once','editor','uploader-','afterInit','downcast','266229NzSABl','_initConfig','configElement','isOfficialPlugin','selection','UploadcareEditing','26ETvQdR','conversion','imageInline','for','22953870sCsukJ','fromCharCode','getAttribute','1444xtPmeP','1162213mEAkka','render','uploadcareImageReplace','9811000WFgkSU','commands','7786242LkoZra','editing','input[uploadcare-file-input]','pluginName','upcast','ucContextId','isPremiumPlugin','get','body','attributeToAttribute','1211OcIkEF','closeMax','_configElement','uploadcareImageId','schema','locale','elementToAttribute','_initImageProcessingIndicator','58326mBubiL','view','contentLanguage','map','uploadcare.pubkey','cleanupImage','uploadcare','_initConversion','uploadcare.uploader','true','href','getSelectedElement','imageBlock','listenTo','model','\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','remove','isRegistered','uc-upload-ctx-provider','join','init','_initSchema','appendChild','document','ctxElement','replaceImageSource','#uc-icon-arrow-down','335azewTW','_ctxElement','requires','insertImage','execute','add','iconHrefResolver','PictureEditing','_initCtx','uc-config','extend','querySelector'];_0x13bf=function(){return _0x28a383;};return _0x13bf();}const _0x40bde4=_0x2c37;function _0x2c37(_0x3c06a8,_0x3000ac){const _0x13bfd6=_0x13bf();return _0x2c37=function(_0x2c370c,_0x3978ca){_0x2c370c=_0x2c370c-0x12b;let _0x131a66=_0x13bfd6[_0x2c370c];return _0x131a66;},_0x2c37(_0x3c06a8,_0x3000ac);}(function(_0x40cf7d,_0x17e72e){const _0x7979f3=_0x2c37,_0x5a294f=_0x40cf7d();while(!![]){try{const _0x1553de=parseInt(_0x7979f3(0x13b))/0x1+parseInt(_0x7979f3(0x133))/0x2*(-parseInt(_0x7979f3(0x12d))/0x3)+-parseInt(_0x7979f3(0x13a))/0x4*(parseInt(_0x7979f3(0x16d))/0x5)+-parseInt(_0x7979f3(0x152))/0x6*(parseInt(_0x7979f3(0x14a))/0x7)+parseInt(_0x7979f3(0x13e))/0x8+-parseInt(_0x7979f3(0x140))/0x9+parseInt(_0x7979f3(0x137))/0xa;if(_0x1553de===_0x17e72e)break;else _0x5a294f['push'](_0x5a294f['shift']());}catch(_0x4d6176){_0x5a294f['push'](_0x5a294f['shift']());}}}(_0x13bf,0xea31a));import{Plugin as _0x1deb27}from'ckeditor5/src/core.js';import{Dialog as _0x301d62}from'ckeditor5/src/ui.js';import{createElement as _0x34def0,global as _0x2aff99,uid as _0x1c9d2d}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x258d89}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5efc46}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x46ec16}from'./utils/editingutils.js';export class UploadcareEditing extends _0x1deb27{[_0x40bde4(0x14c)]=null;[_0x40bde4(0x16e)]=null;static get[_0x40bde4(0x143)](){const _0x3b3ab9=_0x40bde4;return _0x3b3ab9(0x132);}static get[_0x40bde4(0x16f)](){const _0x2590fe=_0x40bde4;return[_0x2590fe(0x174),_0x5efc46,_0x301d62];}static get[_0x40bde4(0x130)](){return!0x0;}static get[_0x40bde4(0x146)](){return!0x0;}[_0x40bde4(0x145)];get[_0x40bde4(0x12f)](){const _0x3ec7ae=_0x40bde4;return this[_0x3ec7ae(0x14c)];}get[_0x40bde4(0x16a)](){const _0x1ab699=_0x40bde4;return this[_0x1ab699(0x16e)];}constructor(_0x40f2bb){const _0x142736=_0x40bde4;super(_0x40f2bb),this[_0x142736(0x145)]=_0x1c9d2d();}[_0x40bde4(0x166)](){const _0x439345=_0x40bde4,_0xc7e12a=this[_0x439345(0x17e)];_0xc7e12a[_0x439345(0x13f)][_0x439345(0x172)](_0x439345(0x158),new _0x258d89(_0xc7e12a));}[_0x40bde4(0x12b)](){const _0x27527e=_0x40bde4;this[_0x27527e(0x167)](),this[_0x27527e(0x159)](),this[_0x27527e(0x12e)](),this[_0x27527e(0x175)](),this[_0x27527e(0x151)](),this[_0x27527e(0x15f)](this[_0x27527e(0x17e)],_0x27527e(0x179),()=>{const _0x4227f6=_0x27527e;this[_0x4227f6(0x14c)]&&(this[_0x4227f6(0x14c)][_0x4227f6(0x162)](),this[_0x4227f6(0x14c)]=null),this[_0x4227f6(0x16e)]&&(this[_0x4227f6(0x16e)][_0x4227f6(0x162)](),this[_0x4227f6(0x16e)]=null);const _0x353d05=_0x2aff99[_0x4227f6(0x169)][_0x4227f6(0x178)](_0x4227f6(0x142));_0x353d05&&_0x353d05[_0x4227f6(0x162)]();}),async function(_0x5a9b3d){const _0x44ce9b=_0x513808([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x45fc13=0x3d8d0df,_0x2d9171=0x3dfa5e7^_0x45fc13,_0x2f0ef6=window[_0x513808([0x44,0x61,0x74,0x65])][_0x513808([0x6e,0x6f,0x77])](),_0x59112e=_0x5a9b3d[_0x513808([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe5ee3e=new window[(_0x513808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x559533=>{_0x59112e[_0x513808([0x6f,0x6e,0x63,0x65])](_0x513808([0x72,0x65,0x61,0x64,0x79]),_0x559533);}),_0x47be9d={[_0x513808([0x6b,0x74,0x79])]:_0x513808([0x45,0x43]),[_0x513808([0x75,0x73,0x65])]:_0x513808([0x73,0x69,0x67]),[_0x513808([0x63,0x72,0x76])]:_0x513808([0x50,0x2d,0x32,0x35,0x36]),[_0x513808([0x78])]:_0x513808([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]),[_0x513808([0x79])]:_0x513808([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]),[_0x513808([0x61,0x6c,0x67])]:_0x513808([0x45,0x53,0x32,0x35,0x36])},_0x1055da=_0x59112e[_0x513808([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x513808([0x67,0x65,0x74])](_0x513808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4da140(){let _0x2453f0,_0x1452f2=null,_0x23e96e=null;try{if(_0x1055da==_0x513808([0x47,0x50,0x4c]))return _0x513808([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2453f0=_0x3fe415(),!_0x2453f0)return _0x513808([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2453f0[_0x513808([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23e96e=_0xeeaa5a(_0x2453f0[_0x513808([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2453f0[_0x513808([0x6a,0x74,0x69])])),await _0x24618d()?_0x172255()?_0x36c8e8()?_0x513808([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x145c76()?(_0x2453f0[_0x513808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x513808([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1452f2=_0x2d2b23(_0x513808([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2453f0[_0x513808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x513808([0x74,0x72,0x69,0x61,0x6c])&&(_0x1452f2=_0x2d2b23(_0x513808([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4b3bdd()):_0x513808([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x513808([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x513808([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x513808([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x36c8e8(){const _0x355ae2=[_0x513808([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x513808([0x74,0x72,0x69,0x61,0x6c])][_0x513808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2453f0[_0x513808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2f0ef6/0x3e8:0xe10*_0x2d9171;return _0x2453f0[_0x513808([0x65,0x78,0x70])]<_0x355ae2;}function _0x172255(){const _0x1f5ebe=_0x2453f0[_0x513808([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1f5ebe&&(!!_0x1f5ebe[_0x513808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x513808([0x2a]))||!!_0x1f5ebe[_0x513808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x513808([0x55,0x50,0x4c,0x43])));}function _0x145c76(){const _0x270c00=_0x2c37,_0x311d66=_0x2453f0[_0x513808([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x311d66||0x0==_0x311d66[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c8486}=new URL(window[_0x513808([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x270c00(0x15c)]);if(_0x311d66[_0x513808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c8486))return!0x0;const _0x5305b7=_0x4c8486[_0x513808([0x73,0x70,0x6c,0x69,0x74])](_0x513808([0x2e]));return _0x311d66[_0x513808([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c2b0d=>_0x5c2b0d[_0x513808([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x513808([0x2a])))[_0x513808([0x6d,0x61,0x70])](_0x383b0d=>_0x383b0d[_0x513808([0x73,0x70,0x6c,0x69,0x74])](_0x513808([0x2e])))[_0x513808([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ea0a4=>_0x3ea0a4[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5305b7[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x513808([0x6d,0x61,0x70])](_0x5b1478=>Array(_0x5305b7[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5b1478[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x513808([0x66,0x69,0x6c,0x6c])](_0x5b1478[0x0]===_0x513808([0x2a])?_0x513808([0x2a]):'')[_0x513808([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5b1478))[_0x513808([0x73,0x6f,0x6d,0x65])](_0x36c08d=>_0x5305b7[_0x513808([0x65,0x76,0x65,0x72,0x79])]((_0xdbca7b,_0xec65d1)=>_0x36c08d[_0xec65d1]===_0xdbca7b||_0x36c08d[_0xec65d1]===_0x513808([0x2a])));}function _0x4b3bdd(){return _0x1452f2&&_0x23e96e?new window[(_0x513808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39da1d,_0x1e7c3c)=>{_0x1452f2[_0x513808([0x74,0x68,0x65,0x6e])](_0x39da1d,_0x1e7c3c),_0x23e96e[_0x513808([0x74,0x68,0x65,0x6e])](_0x5ce271=>{_0x5ce271!=_0x513808([0x56,0x61,0x6c,0x69,0x64])&&_0x39da1d(_0x5ce271);},_0x1e7c3c);}):_0x1452f2||_0x23e96e||_0x513808([0x56,0x61,0x6c,0x69,0x64]);}}function _0xeeaa5a(_0x4952d3,_0x175c28){return new window[(_0x513808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x245d8c=>{if(_0x1049c7())return _0x245d8c(_0x513808([0x56,0x61,0x6c,0x69,0x64]));_0x27512b(),_0x59112e[_0x513808([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x513808([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x493f2f=!0x1;const _0x5b514b=_0x1c9d2d();function _0x241227(_0x2642b9){return!!_0x2642b9&&(typeof _0x2642b9===_0x513808([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2642b9===_0x513808([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2642b9[_0x513808([0x74,0x68,0x65,0x6e])]===_0x513808([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2642b9[_0x513808([0x63,0x61,0x74,0x63,0x68])]===_0x513808([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x10b98e(_0x4113c1){_0x3070d0(_0x4113c1)[_0x513808([0x74,0x68,0x65,0x6e])](_0x4f6bdb=>{if(!_0x4f6bdb||_0x4f6bdb[_0x513808([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x513808([0x6f,0x6b]))return _0x513808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x19680a(_0x20ee95(_0x5b514b+_0x175c28))!=_0x4f6bdb[_0x513808([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x513808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x513808([0x56,0x61,0x6c,0x69,0x64]);})[_0x513808([0x74,0x68,0x65,0x6e])](_0x273204=>(_0x1f3b6e(),_0x273204),()=>{const _0x262735=_0x2e4a9a();return null==_0x262735?(_0x1f3b6e(),_0x513808([0x56,0x61,0x6c,0x69,0x64])):_0x513808(_0x2f0ef6-_0x262735>(0x27d454df^_0x45fc13)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x513808([0x74,0x68,0x65,0x6e])](_0x245d8c)[_0x513808([0x63,0x61,0x74,0x63,0x68])](()=>{_0x245d8c(_0x513808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x548105=0x3ee3e5f^_0x45fc13;function _0x1f3b6e(){const _0x5242a4=_0x513808([0x6c,0x6c,0x63,0x74,0x2d])+_0x19680a(_0x20ee95(_0x4952d3)),_0x215f3c=_0x51c9a9(_0x19680a(window[_0x513808([0x4d,0x61,0x74,0x68])][_0x513808([0x63,0x65,0x69,0x6c])](_0x2f0ef6/_0x548105)));window[_0x513808([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x513808([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5242a4,_0x215f3c);}function _0x2e4a9a(){const _0x1a921a=_0x513808([0x6c,0x6c,0x63,0x74,0x2d])+_0x19680a(_0x20ee95(_0x4952d3)),_0x30b7dc=window[_0x513808([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x513808([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a921a);return _0x30b7dc?window[_0x513808([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51c9a9(_0x30b7dc),0x10)*_0x548105:null;}function _0x3070d0(_0x45b185){return new window[(_0x513808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d9e15,_0x424f62)=>{_0x45b185[_0x513808([0x74,0x68,0x65,0x6e])](_0x4d9e15,_0x424f62),window[_0x513808([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x424f62,0x3d9041f^_0x45fc13);});}}_0x59112e[_0x513808([0x6f,0x6e])](_0x513808([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2887c4,_0xe6120b)=>{if(_0xe6120b[0x0]!=_0x4952d3)return _0x245d8c(_0x513808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xe6120b[0x1]={..._0xe6120b[0x1],[_0x513808([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5b514b};},{[_0x513808([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x513808([0x68,0x69,0x67,0x68])}),_0x59112e[_0x513808([0x6f,0x6e])](_0x513808([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19751a=>{_0x241227(_0x19751a[_0x513808([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x493f2f=!0x0,_0x10b98e(_0x19751a[_0x513808([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x513808([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x513808([0x6c,0x6f,0x77])}),_0xe5ee3e[_0x513808([0x74,0x68,0x65,0x6e])](()=>{_0x493f2f||_0x245d8c(_0x513808([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1049c7(){return _0x59112e[_0x513808([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x513808([0x76,0x69,0x65,0x77])][_0x513808([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x513808([0x61,0x75,0x74,0x6f]);}function _0x27512b(){_0x59112e[_0x513808([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x513808([0x76,0x69,0x65,0x77])][_0x513808([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x513808([0x61,0x75,0x74,0x6f]);}}function _0x2d2b23(_0x4db538){const _0x5a1d36=[new window[(_0x513808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5add01=>setTimeout(_0x5add01,0x3d1ee13^_0x45fc13)),_0xe5ee3e[_0x513808([0x74,0x68,0x65,0x6e])](()=>new window[(_0x513808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x345663=>{let _0x33f981=0x0;_0x59112e[_0x513808([0x6d,0x6f,0x64,0x65,0x6c])][_0x513808([0x6f,0x6e])](_0x513808([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5c59c3,_0x1c58b9)=>{_0x1c58b9[0x0][_0x513808([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33f981++,_0x33f981==(0x3d8d127^_0x45fc13)&&(_0x345663(),_0x5c59c3[_0x513808([0x6f,0x66,0x66])]());});}))];return window[_0x513808([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x513808([0x72,0x61,0x63,0x65])](_0x5a1d36)[_0x513808([0x74,0x68,0x65,0x6e])](()=>_0x4db538);}async function _0x3163a9(){await _0xe5ee3e,_0x59112e[_0x513808([0x6d,0x6f,0x64,0x65,0x6c])][_0x513808([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x521700,_0x59112e[_0x513808([0x6d,0x6f,0x64,0x65,0x6c])][_0x513808([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x521700,_0x59112e[_0x513808([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x513808([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e2a92(_0x19cb7d){const _0xc9ea0a=_0x3d4181();_0x59112e[_0xc9ea0a]=_0x513808([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x19cb7d,_0x19cb7d!=_0x513808([0x56,0x61,0x6c,0x69,0x64])&&_0x3163a9();}function _0x3d4181(){const _0xb93d8a=window[_0x513808([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x513808([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x513808([0x6e,0x6f,0x77])]())[_0x513808([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x513808([0x2e]),'');let _0xdc5f3c=_0x513808([0x52]);for(let _0x5c2c06=0x0;_0x5c2c06<_0xb93d8a[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c2c06+=0x2){let _0x2d4256=window[_0x513808([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb93d8a[_0x513808([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c2c06,_0x5c2c06+0x2));_0x2d4256>=_0x44ce9b[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d4256-=_0x44ce9b[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xdc5f3c+=_0x44ce9b[_0x2d4256];}return _0xdc5f3c;}function _0x3fe415(){const _0x2e487b=_0x1055da[_0x513808([0x73,0x70,0x6c,0x69,0x74])](_0x513808([0x2e]));if(0x3!=_0x2e487b[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d8cfc(_0x2e487b[0x1]);function _0x4d8cfc(_0x58a07d){const _0x516e3e=_0xdfa0d(_0x58a07d);return _0x516e3e&&_0x51ab54()?_0x516e3e:null;function _0x51ab54(){const _0x176e36=_0x516e3e[_0x513808([0x6a,0x74,0x69])],_0x1bdb0b=window[_0x513808([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x176e36[_0x513808([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x176e36[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x11781f={..._0x516e3e,[_0x513808([0x6a,0x74,0x69])]:_0x176e36[_0x513808([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x176e36[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x11781f[_0x513808([0x76,0x63])],_0x20ee95(_0x11781f)==_0x1bdb0b;}}}async function _0x24618d(){let _0x2e140c=!0x0;try{const _0x1c4c9b=_0x1055da[_0x513808([0x73,0x70,0x6c,0x69,0x74])](_0x513808([0x2e])),[_0x49ffab,_0x48dc0c,_0x42e7a7]=_0x1c4c9b;return _0x54bd0a(_0x49ffab),await _0x318fd1(_0x49ffab,_0x48dc0c,_0x42e7a7),_0x2e140c;}catch{return!0x1;}function _0x54bd0a(_0x5cba59){const _0xfa1eb2=_0xdfa0d(_0x5cba59);_0xfa1eb2&&_0xfa1eb2[_0x513808([0x61,0x6c,0x67])]==_0x513808([0x45,0x53,0x32,0x35,0x36])||(_0x2e140c=!0x1);}async function _0x318fd1(_0x48b1bb,_0x40fa72,_0x36fd9d){const _0x1164d8=window[_0x513808([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x513808([0x66,0x72,0x6f,0x6d])](_0x314d13(_0x36fd9d),_0x483437=>_0x483437[_0x513808([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x32210b=new window[(_0x513808([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x513808([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48b1bb+_0x513808([0x2e])+_0x40fa72),_0x3c519e=window[_0x513808([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x513808([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c519e)return;const _0x29a521=await _0x3c519e[_0x513808([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x513808([0x6a,0x77,0x6b]),_0x47be9d,{[_0x513808([0x6e,0x61,0x6d,0x65])]:_0x513808([0x45,0x43,0x44,0x53,0x41]),[_0x513808([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x513808([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x513808([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c519e[_0x513808([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x513808([0x6e,0x61,0x6d,0x65])]:_0x513808([0x45,0x43,0x44,0x53,0x41]),[_0x513808([0x68,0x61,0x73,0x68])]:{[_0x513808([0x6e,0x61,0x6d,0x65])]:_0x513808([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x29a521,_0x1164d8,_0x32210b)||(_0x2e140c=!0x1);}}function _0xdfa0d(_0x38acd8){return _0x38acd8[_0x513808([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x513808([0x65,0x79]))?JSON[_0x513808([0x70,0x61,0x72,0x73,0x65])](_0x314d13(_0x38acd8)):null;}function _0x314d13(_0x4b9827){return window[_0x513808([0x61,0x74,0x6f,0x62])](_0x4b9827[_0x513808([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x513808([0x2b]))[_0x513808([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x513808([0x2f])));}function _0x20ee95(_0x13ff82){let _0x497ee2=0x1505;function _0x262fd4(_0x607944){for(let _0x11d83a=0x0;_0x11d83a<_0x607944[_0x513808([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11d83a++){const _0x86a242=_0x607944[_0x513808([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x11d83a);_0x497ee2=(_0x497ee2<<0x5)+_0x497ee2+_0x86a242,_0x497ee2&=_0x497ee2;}}function _0x26d06e(_0x3be619){Array[_0x513808([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3be619)?_0x3be619[_0x513808([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x26d06e):_0x3be619&&typeof _0x3be619==_0x513808([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x513808([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3be619)[_0x513808([0x73,0x6f,0x72,0x74])]()[_0x513808([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x53ff2a,_0x927903])=>{_0x262fd4(_0x53ff2a),_0x26d06e(_0x927903);}):_0x262fd4(window[_0x513808([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3be619));}return _0x26d06e(_0x13ff82),_0x497ee2>>>0x0;}function _0x19680a(_0x2e42c6){return _0x2e42c6[_0x513808([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x513808([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x513808([0x30]));}function _0x51c9a9(_0x3d0980){return _0x3d0980[_0x513808([0x73,0x70,0x6c,0x69,0x74])]('')[_0x513808([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x513808([0x6a,0x6f,0x69,0x6e])]('');}function _0x521700(){}function _0x513808(_0x40b315){const _0x380ed1=_0x2c37;return _0x40b315[_0x380ed1(0x155)](_0x33073c=>String[_0x380ed1(0x138)](_0x33073c))[_0x380ed1(0x165)]('');}_0x1e2a92(await _0x4da140());}(this);}[_0x40bde4(0x167)](){const _0x3976d9=_0x40bde4,_0x4a399f=this[_0x3976d9(0x17e)][_0x3976d9(0x160)][_0x3976d9(0x14e)];_0x4a399f[_0x3976d9(0x163)](_0x3976d9(0x15e))&&_0x4a399f[_0x3976d9(0x177)](_0x3976d9(0x15e),{'allowAttributes':[_0x3976d9(0x14d)]}),_0x4a399f[_0x3976d9(0x163)](_0x3976d9(0x135))&&_0x4a399f[_0x3976d9(0x177)](_0x3976d9(0x135),{'allowAttributes':[_0x3976d9(0x14d)]});}[_0x40bde4(0x159)](){const _0x291145=_0x40bde4,_0x150bdb=this[_0x291145(0x17e)];_0x150bdb[_0x291145(0x134)][_0x291145(0x136)](_0x291145(0x12c))[_0x291145(0x149)]({'model':_0x291145(0x14d),'view':_0x291145(0x17a)}),_0x150bdb[_0x291145(0x134)][_0x291145(0x136)](_0x291145(0x144))[_0x291145(0x150)]({'model':{'key':_0x291145(0x14d),'value':_0x4e4d3a=>_0x4e4d3a[_0x291145(0x139)](_0x291145(0x17a))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4fdb0d=_0x150bdb[_0x291145(0x13f)][_0x291145(0x147)](_0x291145(0x16b));_0x4fdb0d&&this[_0x291145(0x15f)](_0x4fdb0d,_0x291145(0x157),(_0x35b786,[_0x36a07f,_0x5bf072])=>{const _0x1c578f=_0x291145;_0x36a07f[_0x1c578f(0x17b)](_0x1c578f(0x14d),_0x5bf072);});}[_0x40bde4(0x12e)](){const _0x310f9f=_0x40bde4,_0x1d952e=this[_0x310f9f(0x17e)][_0x310f9f(0x17c)][_0x310f9f(0x147)](_0x310f9f(0x15a))||{},_0x19875b=this[_0x310f9f(0x17e)][_0x310f9f(0x17c)][_0x310f9f(0x147)](_0x310f9f(0x156))||'';this[_0x310f9f(0x14c)]=_0x34def0(_0x2aff99[_0x310f9f(0x169)],_0x310f9f(0x176),{..._0x1d952e,'pubkey':_0x19875b,'ctx-name':_0x310f9f(0x17f)+this[_0x310f9f(0x145)],'sourceList':'','imgOnly':_0x310f9f(0x15b),'removeCopyright':_0x310f9f(0x15b),'localeName':this[_0x310f9f(0x17e)][_0x310f9f(0x14f)][_0x310f9f(0x154)],'externalSourcesEmbedCss':_0x310f9f(0x161)}),this[_0x310f9f(0x14c)][_0x310f9f(0x173)]=_0x2ff159=>{const _0x475f6b=_0x310f9f;if(_0x475f6b(0x14b)==_0x2ff159)return _0x475f6b(0x16c);},_0x2aff99[_0x310f9f(0x169)][_0x310f9f(0x148)][_0x310f9f(0x168)](this[_0x310f9f(0x14c)]);}[_0x40bde4(0x175)](){const _0x143cba=_0x40bde4;this[_0x143cba(0x16e)]=_0x34def0(_0x2aff99[_0x143cba(0x169)],_0x143cba(0x164),{'ctx-name':_0x143cba(0x17f)+this[_0x143cba(0x145)]}),_0x2aff99[_0x143cba(0x169)][_0x143cba(0x148)][_0x143cba(0x168)](this[_0x143cba(0x16e)]);}[_0x40bde4(0x151)](){const _0x40b722=_0x40bde4,_0x5e18b2=this[_0x40b722(0x17e)][_0x40b722(0x13f)][_0x40b722(0x147)](_0x40b722(0x170));_0x5e18b2&&this[_0x40b722(0x15f)](_0x5e18b2,_0x40b722(0x171),()=>{const _0x3bac56=_0x40b722,_0xb87a31=this[_0x3bac56(0x17e)][_0x3bac56(0x160)][_0x3bac56(0x169)][_0x3bac56(0x131)][_0x3bac56(0x15d)]();_0xb87a31&&_0xb87a31[_0x3bac56(0x139)](_0x3bac56(0x14d))&&this[_0x3bac56(0x17e)][_0x3bac56(0x141)][_0x3bac56(0x153)][_0x3bac56(0x17d)](_0x3bac56(0x13c),()=>{const _0x36f203=_0x3bac56;_0x46ec16(this[_0x36f203(0x17e)],_0xb87a31);});});const _0x2c043a=this[_0x40b722(0x17e)][_0x40b722(0x13f)][_0x40b722(0x147)](_0x40b722(0x13d));_0x2c043a&&this[_0x40b722(0x15f)](_0x2c043a,_0x40b722(0x171),()=>{const _0x45fa3d=_0x40b722,_0x189aa6=this[_0x45fa3d(0x17e)][_0x45fa3d(0x160)][_0x45fa3d(0x169)][_0x45fa3d(0x131)][_0x45fa3d(0x15d)]();_0x189aa6&&_0x189aa6[_0x45fa3d(0x139)](_0x45fa3d(0x14d))&&this[_0x45fa3d(0x17e)][_0x45fa3d(0x141)][_0x45fa3d(0x153)][_0x45fa3d(0x17d)](_0x45fa3d(0x13c),()=>{const _0x2d44ed=_0x45fa3d;_0x46ec16(this[_0x2d44ed(0x17e)],_0x189aa6);});});}}
|
|
23
|
+
const _0x52a420=_0x52d6;(function(_0x166615,_0x43af26){const _0x398bf6=_0x52d6,_0x5ea972=_0x166615();while(!![]){try{const _0x49d9ef=parseInt(_0x398bf6(0x211))/0x1+-parseInt(_0x398bf6(0x238))/0x2+-parseInt(_0x398bf6(0x208))/0x3*(-parseInt(_0x398bf6(0x1ee))/0x4)+parseInt(_0x398bf6(0x210))/0x5*(parseInt(_0x398bf6(0x223))/0x6)+parseInt(_0x398bf6(0x1eb))/0x7*(-parseInt(_0x398bf6(0x1ec))/0x8)+parseInt(_0x398bf6(0x205))/0x9+-parseInt(_0x398bf6(0x1ef))/0xa*(parseInt(_0x398bf6(0x22e))/0xb);if(_0x49d9ef===_0x43af26)break;else _0x5ea972['push'](_0x5ea972['shift']());}catch(_0x20a37e){_0x5ea972['push'](_0x5ea972['shift']());}}}(_0x4130,0x51aec));import{Plugin as _0x423fd0}from'ckeditor5/src/core.js';import{Dialog as _0x7d44d8}from'ckeditor5/src/ui.js';import{createElement as _0xea3555,global as _0x378b89,uid as _0x364c01}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x375486}from'./uploadcarecommand.js';function _0x4130(){const _0x33a35d=['227856NwKOID','uploader-','listenTo','for','requires','isRegistered','afterInit','once','uploadcareImageReplace','7Bqlptb','3421496zYckUG','contentLanguage','1766320yUdxNI','10tiaENu','get','_initCtx','replaceImageSource','_ctxElement','insertImage','locale','view','schema','remove','init','ctxElement','_initConversion','imageInline','removeAttribute','uploadcareImageId','downcast','\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','appendChild','input[uploadcare-file-input]','destroy','attributeToAttribute','2921769eWVIZt','uc-config','iconHrefResolver','3diaZzb','ucContextId','render','uploadcare','elementToAttribute','UploadcareEditing','add','closeMax','477605JelZIH','352488phesAe','editor','uc-upload-ctx-provider','config','upcast','_initSchema','conversion','commands','uploadcare.pubkey','_initConfig','data-uc-image-id','cleanupImage','fromCharCode','isPremiumPlugin','body','PictureEditing','uploadcare.uploader','model','30pLjASs','imageBlock','#uc-icon-arrow-down','true','href','selection','getSelectedElement','configElement','execute','querySelector','_initImageProcessingIndicator','7921397UgqQCh','map','isOfficialPlugin','editing','getAttribute','document','extend','_configElement','join','pluginName'];_0x4130=function(){return _0x33a35d;};return _0x4130();}function _0x52d6(_0x34c9b3,_0x3a1b75){const _0x413009=_0x4130();return _0x52d6=function(_0x52d6f7,_0x41d59b){_0x52d6f7=_0x52d6f7-0x1e7;let _0x3277a8=_0x413009[_0x52d6f7];return _0x3277a8;},_0x52d6(_0x34c9b3,_0x3a1b75);}import{UploadcareUploadAdapter as _0x4ffcc0}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x42299f}from'./utils/editingutils.js';export class UploadcareEditing extends _0x423fd0{[_0x52a420(0x235)]=null;[_0x52a420(0x1f3)]=null;static get[_0x52a420(0x237)](){const _0x1ce5f4=_0x52a420;return _0x1ce5f4(0x20d);}static get[_0x52a420(0x23c)](){const _0x5cba20=_0x52a420;return[_0x5cba20(0x220),_0x4ffcc0,_0x7d44d8];}static get[_0x52a420(0x230)](){return!0x0;}static get[_0x52a420(0x21e)](){return!0x0;}[_0x52a420(0x209)];get[_0x52a420(0x22a)](){const _0x454157=_0x52a420;return this[_0x454157(0x235)];}get[_0x52a420(0x1fa)](){const _0x5c44b7=_0x52a420;return this[_0x5c44b7(0x1f3)];}constructor(_0x2b6b14){const _0x357ba9=_0x52a420;super(_0x2b6b14),this[_0x357ba9(0x209)]=_0x364c01();}[_0x52a420(0x1f9)](){const _0x199138=_0x52a420,_0x1f0f68=this[_0x199138(0x212)];_0x1f0f68[_0x199138(0x218)][_0x199138(0x20e)](_0x199138(0x20b),new _0x375486(_0x1f0f68));}[_0x52a420(0x1e8)](){const _0x1eae84=_0x52a420;this[_0x1eae84(0x216)](),this[_0x1eae84(0x1fb)](),this[_0x1eae84(0x21a)](),this[_0x1eae84(0x1f1)](),this[_0x1eae84(0x22d)](),this[_0x1eae84(0x23a)](this[_0x1eae84(0x212)],_0x1eae84(0x203),()=>{const _0x36c3ec=_0x1eae84;this[_0x36c3ec(0x235)]&&(this[_0x36c3ec(0x235)][_0x36c3ec(0x1f8)](),this[_0x36c3ec(0x235)]=null),this[_0x36c3ec(0x1f3)]&&(this[_0x36c3ec(0x1f3)][_0x36c3ec(0x1f8)](),this[_0x36c3ec(0x1f3)]=null);const _0x111a36=_0x378b89[_0x36c3ec(0x233)][_0x36c3ec(0x22c)](_0x36c3ec(0x202));_0x111a36&&_0x111a36[_0x36c3ec(0x1f8)]();}),async function(_0x114811){const _0x18fbc8=_0x593239([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x407c53=0x3d8d0df,_0x6101e=0x3dfa58f^_0x407c53,_0xe5bb3=window[_0x593239([0x44,0x61,0x74,0x65])][_0x593239([0x6e,0x6f,0x77])](),_0x1d5a61=_0x114811[_0x593239([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xaebd9e=new window[(_0x593239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f46af=>{_0x1d5a61[_0x593239([0x6f,0x6e,0x63,0x65])](_0x593239([0x72,0x65,0x61,0x64,0x79]),_0x1f46af);}),_0x3fe4c2={[_0x593239([0x6b,0x74,0x79])]:_0x593239([0x45,0x43]),[_0x593239([0x75,0x73,0x65])]:_0x593239([0x73,0x69,0x67]),[_0x593239([0x63,0x72,0x76])]:_0x593239([0x50,0x2d,0x32,0x35,0x36]),[_0x593239([0x78])]:_0x593239([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]),[_0x593239([0x79])]:_0x593239([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]),[_0x593239([0x61,0x6c,0x67])]:_0x593239([0x45,0x53,0x32,0x35,0x36])},_0x29d9ef=_0x1d5a61[_0x593239([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x593239([0x67,0x65,0x74])](_0x593239([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x775dc1(){let _0x569cf1,_0x42fd10=null,_0x409c25=null;try{if(_0x29d9ef==_0x593239([0x47,0x50,0x4c]))return _0x593239([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x569cf1=_0x28ea05(),!_0x569cf1)return _0x593239([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x569cf1[_0x593239([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x409c25=_0x15ac9d(_0x569cf1[_0x593239([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x569cf1[_0x593239([0x6a,0x74,0x69])])),await _0x36d9d3()?_0x4a2a2e()?_0x56fb43()?_0x593239([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x42a3af()?(_0x569cf1[_0x593239([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x593239([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42fd10=_0x17eec2(_0x593239([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x569cf1[_0x593239([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x593239([0x74,0x72,0x69,0x61,0x6c])&&(_0x42fd10=_0x17eec2(_0x593239([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4409cc()):_0x593239([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x593239([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x593239([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x593239([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x56fb43(){const _0x4b8b10=[_0x593239([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x593239([0x74,0x72,0x69,0x61,0x6c])][_0x593239([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x569cf1[_0x593239([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe5bb3/0x3e8:0xe10*_0x6101e;return _0x569cf1[_0x593239([0x65,0x78,0x70])]<_0x4b8b10;}function _0x4a2a2e(){const _0x31de12=_0x569cf1[_0x593239([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x31de12&&(!!_0x31de12[_0x593239([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593239([0x2a]))||!!_0x31de12[_0x593239([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593239([0x55,0x50,0x4c,0x43])));}function _0x42a3af(){const _0x4e416f=_0x52d6,_0x269a09=_0x569cf1[_0x593239([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x269a09||0x0==_0x269a09[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x532e22}=new URL(window[_0x593239([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4e416f(0x227)]);if(_0x269a09[_0x593239([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x532e22))return!0x0;const _0x40692c=_0x532e22[_0x593239([0x73,0x70,0x6c,0x69,0x74])](_0x593239([0x2e]));return _0x269a09[_0x593239([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3003c9=>_0x3003c9[_0x593239([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593239([0x2a])))[_0x593239([0x6d,0x61,0x70])](_0x467a0e=>_0x467a0e[_0x593239([0x73,0x70,0x6c,0x69,0x74])](_0x593239([0x2e])))[_0x593239([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1d8f08=>_0x1d8f08[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x40692c[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x593239([0x6d,0x61,0x70])](_0x1c8e01=>Array(_0x40692c[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1c8e01[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x593239([0x66,0x69,0x6c,0x6c])](_0x1c8e01[0x0]===_0x593239([0x2a])?_0x593239([0x2a]):'')[_0x593239([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1c8e01))[_0x593239([0x73,0x6f,0x6d,0x65])](_0x433e1b=>_0x40692c[_0x593239([0x65,0x76,0x65,0x72,0x79])]((_0x152d40,_0x5a56f3)=>_0x433e1b[_0x5a56f3]===_0x152d40||_0x433e1b[_0x5a56f3]===_0x593239([0x2a])));}function _0x4409cc(){return _0x42fd10&&_0x409c25?new window[(_0x593239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51bae6,_0x37e6ba)=>{_0x42fd10[_0x593239([0x74,0x68,0x65,0x6e])](_0x51bae6,_0x37e6ba),_0x409c25[_0x593239([0x74,0x68,0x65,0x6e])](_0x4da2c5=>{_0x4da2c5!=_0x593239([0x56,0x61,0x6c,0x69,0x64])&&_0x51bae6(_0x4da2c5);},_0x37e6ba);}):_0x42fd10||_0x409c25||_0x593239([0x56,0x61,0x6c,0x69,0x64]);}}function _0x15ac9d(_0x2c98dd,_0x4dc593){return new window[(_0x593239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16792c=>{if(_0x2de74a())return _0x16792c(_0x593239([0x56,0x61,0x6c,0x69,0x64]));_0x174cf6(),_0x1d5a61[_0x593239([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x593239([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f8017=!0x1;const _0xe6c3c=_0x364c01();function _0x37fb89(_0x366e6c){return!!_0x366e6c&&(typeof _0x366e6c===_0x593239([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x366e6c===_0x593239([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x366e6c[_0x593239([0x74,0x68,0x65,0x6e])]===_0x593239([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x366e6c[_0x593239([0x63,0x61,0x74,0x63,0x68])]===_0x593239([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c0b50(_0x5a5d00){_0x563788(_0x5a5d00)[_0x593239([0x74,0x68,0x65,0x6e])](_0x510021=>{if(!_0x510021||_0x510021[_0x593239([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x593239([0x6f,0x6b]))return _0x593239([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x65f94d(_0x4ffc47(_0xe6c3c+_0x4dc593))!=_0x510021[_0x593239([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x593239([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x593239([0x56,0x61,0x6c,0x69,0x64]);})[_0x593239([0x74,0x68,0x65,0x6e])](_0x2e63db=>(_0x34ca9f(),_0x2e63db),()=>{const _0x4d7e7f=_0x415df3();return null==_0x4d7e7f?(_0x34ca9f(),_0x593239([0x56,0x61,0x6c,0x69,0x64])):_0x593239(_0xe5bb3-_0x4d7e7f>(0x27d454df^_0x407c53)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x593239([0x74,0x68,0x65,0x6e])](_0x16792c)[_0x593239([0x63,0x61,0x74,0x63,0x68])](()=>{_0x16792c(_0x593239([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x161ebf=0x3ee3e5f^_0x407c53;function _0x34ca9f(){const _0x1cd177=_0x593239([0x6c,0x6c,0x63,0x74,0x2d])+_0x65f94d(_0x4ffc47(_0x2c98dd)),_0xeb699d=_0x1e4172(_0x65f94d(window[_0x593239([0x4d,0x61,0x74,0x68])][_0x593239([0x63,0x65,0x69,0x6c])](_0xe5bb3/_0x161ebf)));window[_0x593239([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x593239([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cd177,_0xeb699d);}function _0x415df3(){const _0x4292c4=_0x593239([0x6c,0x6c,0x63,0x74,0x2d])+_0x65f94d(_0x4ffc47(_0x2c98dd)),_0x195fe4=window[_0x593239([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x593239([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4292c4);return _0x195fe4?window[_0x593239([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e4172(_0x195fe4),0x10)*_0x161ebf:null;}function _0x563788(_0x52a3b8){return new window[(_0x593239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b87b5,_0x24114f)=>{_0x52a3b8[_0x593239([0x74,0x68,0x65,0x6e])](_0x1b87b5,_0x24114f),window[_0x593239([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x24114f,0x3d9041f^_0x407c53);});}}_0x1d5a61[_0x593239([0x6f,0x6e])](_0x593239([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xfa5074,_0x386a0a)=>{if(_0x386a0a[0x0]!=_0x2c98dd)return _0x16792c(_0x593239([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x386a0a[0x1]={..._0x386a0a[0x1],[_0x593239([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe6c3c};},{[_0x593239([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x593239([0x68,0x69,0x67,0x68])}),_0x1d5a61[_0x593239([0x6f,0x6e])](_0x593239([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x530e4a=>{_0x37fb89(_0x530e4a[_0x593239([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f8017=!0x0,_0x5c0b50(_0x530e4a[_0x593239([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x593239([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x593239([0x6c,0x6f,0x77])}),_0xaebd9e[_0x593239([0x74,0x68,0x65,0x6e])](()=>{_0x2f8017||_0x16792c(_0x593239([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2de74a(){return _0x1d5a61[_0x593239([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x593239([0x76,0x69,0x65,0x77])][_0x593239([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x593239([0x61,0x75,0x74,0x6f]);}function _0x174cf6(){_0x1d5a61[_0x593239([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x593239([0x76,0x69,0x65,0x77])][_0x593239([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x593239([0x61,0x75,0x74,0x6f]);}}function _0x17eec2(_0x169f1a){const _0x4b4c5e=[new window[(_0x593239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34308a=>setTimeout(_0x34308a,0x3d1ee13^_0x407c53)),_0xaebd9e[_0x593239([0x74,0x68,0x65,0x6e])](()=>new window[(_0x593239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xac9ff1=>{let _0x4b5320=0x0;_0x1d5a61[_0x593239([0x6d,0x6f,0x64,0x65,0x6c])][_0x593239([0x6f,0x6e])](_0x593239([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x516fe6,_0x4a00e3)=>{_0x4a00e3[0x0][_0x593239([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4b5320++,_0x4b5320==(0x3d8d127^_0x407c53)&&(_0xac9ff1(),_0x516fe6[_0x593239([0x6f,0x66,0x66])]());});}))];return window[_0x593239([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x593239([0x72,0x61,0x63,0x65])](_0x4b4c5e)[_0x593239([0x74,0x68,0x65,0x6e])](()=>_0x169f1a);}async function _0x13a477(){await _0xaebd9e,_0x1d5a61[_0x593239([0x6d,0x6f,0x64,0x65,0x6c])][_0x593239([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2058df,_0x1d5a61[_0x593239([0x6d,0x6f,0x64,0x65,0x6c])][_0x593239([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2058df,_0x1d5a61[_0x593239([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x593239([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b62ba(_0x491287){const _0x437fb3=_0x3ed10d();_0x1d5a61[_0x437fb3]=_0x593239([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x491287,_0x491287!=_0x593239([0x56,0x61,0x6c,0x69,0x64])&&_0x13a477();}function _0x3ed10d(){const _0x330ed9=window[_0x593239([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x593239([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x593239([0x6e,0x6f,0x77])]())[_0x593239([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x593239([0x2e]),'');let _0x1b61c5=_0x593239([0x52]);for(let _0x7f1c1b=0x0;_0x7f1c1b<_0x330ed9[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7f1c1b+=0x2){let _0x5af568=window[_0x593239([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x330ed9[_0x593239([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x7f1c1b,_0x7f1c1b+0x2));_0x5af568>=_0x18fbc8[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5af568-=_0x18fbc8[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b61c5+=_0x18fbc8[_0x5af568];}return _0x1b61c5;}function _0x28ea05(){const _0x3a4a92=_0x29d9ef[_0x593239([0x73,0x70,0x6c,0x69,0x74])](_0x593239([0x2e]));if(0x3!=_0x3a4a92[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3ac139(_0x3a4a92[0x1]);function _0x3ac139(_0x96fd84){const _0x400e4d=_0x427807(_0x96fd84);return _0x400e4d&&_0x1b8f25()?_0x400e4d:null;function _0x1b8f25(){const _0x40de29=_0x400e4d[_0x593239([0x6a,0x74,0x69])],_0x4e1d49=window[_0x593239([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40de29[_0x593239([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40de29[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36c4b2={..._0x400e4d,[_0x593239([0x6a,0x74,0x69])]:_0x40de29[_0x593239([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x40de29[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36c4b2[_0x593239([0x76,0x63])],_0x4ffc47(_0x36c4b2)==_0x4e1d49;}}}async function _0x36d9d3(){let _0x21a14d=!0x0;try{const _0x305bb9=_0x29d9ef[_0x593239([0x73,0x70,0x6c,0x69,0x74])](_0x593239([0x2e])),[_0x19ef50,_0x2b4ac8,_0x395602]=_0x305bb9;return _0xe37148(_0x19ef50),await _0x3a3ba2(_0x19ef50,_0x2b4ac8,_0x395602),_0x21a14d;}catch{return!0x1;}function _0xe37148(_0x2b638b){const _0x567885=_0x427807(_0x2b638b);_0x567885&&_0x567885[_0x593239([0x61,0x6c,0x67])]==_0x593239([0x45,0x53,0x32,0x35,0x36])||(_0x21a14d=!0x1);}async function _0x3a3ba2(_0x49686d,_0x462ede,_0x347d33){const _0x4a2211=window[_0x593239([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x593239([0x66,0x72,0x6f,0x6d])](_0x578cb2(_0x347d33),_0x411b12=>_0x411b12[_0x593239([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c6b6d=new window[(_0x593239([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x593239([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x49686d+_0x593239([0x2e])+_0x462ede),_0x1b0771=window[_0x593239([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x593239([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b0771)return;const _0xd38514=await _0x1b0771[_0x593239([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x593239([0x6a,0x77,0x6b]),_0x3fe4c2,{[_0x593239([0x6e,0x61,0x6d,0x65])]:_0x593239([0x45,0x43,0x44,0x53,0x41]),[_0x593239([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x593239([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x593239([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b0771[_0x593239([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x593239([0x6e,0x61,0x6d,0x65])]:_0x593239([0x45,0x43,0x44,0x53,0x41]),[_0x593239([0x68,0x61,0x73,0x68])]:{[_0x593239([0x6e,0x61,0x6d,0x65])]:_0x593239([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd38514,_0x4a2211,_0x1c6b6d)||(_0x21a14d=!0x1);}}function _0x427807(_0x16fbc1){return _0x16fbc1[_0x593239([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x593239([0x65,0x79]))?JSON[_0x593239([0x70,0x61,0x72,0x73,0x65])](_0x578cb2(_0x16fbc1)):null;}function _0x578cb2(_0x3a580e){return window[_0x593239([0x61,0x74,0x6f,0x62])](_0x3a580e[_0x593239([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x593239([0x2b]))[_0x593239([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x593239([0x2f])));}function _0x4ffc47(_0x5ea172){let _0x4d41b7=0x1505;function _0x44eab5(_0x55cb5e){for(let _0x3c56a2=0x0;_0x3c56a2<_0x55cb5e[_0x593239([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c56a2++){const _0x23d096=_0x55cb5e[_0x593239([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c56a2);_0x4d41b7=(_0x4d41b7<<0x5)+_0x4d41b7+_0x23d096,_0x4d41b7&=_0x4d41b7;}}function _0x165fad(_0x247df7){Array[_0x593239([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x247df7)?_0x247df7[_0x593239([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x165fad):_0x247df7&&typeof _0x247df7==_0x593239([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x593239([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x247df7)[_0x593239([0x73,0x6f,0x72,0x74])]()[_0x593239([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16d09b,_0x234940])=>{_0x44eab5(_0x16d09b),_0x165fad(_0x234940);}):_0x44eab5(window[_0x593239([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x247df7));}return _0x165fad(_0x5ea172),_0x4d41b7>>>0x0;}function _0x65f94d(_0x1a21f6){return _0x1a21f6[_0x593239([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x593239([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x593239([0x30]));}function _0x1e4172(_0x3cc232){return _0x3cc232[_0x593239([0x73,0x70,0x6c,0x69,0x74])]('')[_0x593239([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x593239([0x6a,0x6f,0x69,0x6e])]('');}function _0x2058df(){}function _0x593239(_0xb9d8fd){const _0x474d87=_0x52d6;return _0xb9d8fd[_0x474d87(0x22f)](_0x53d623=>String[_0x474d87(0x21d)](_0x53d623))[_0x474d87(0x236)]('');}_0x4b62ba(await _0x775dc1());}(this);}[_0x52a420(0x216)](){const _0x1765b1=_0x52a420,_0x5d9cd3=this[_0x1765b1(0x212)][_0x1765b1(0x222)][_0x1765b1(0x1f7)];_0x5d9cd3[_0x1765b1(0x1e7)](_0x1765b1(0x224))&&_0x5d9cd3[_0x1765b1(0x234)](_0x1765b1(0x224),{'allowAttributes':[_0x1765b1(0x1fe)]}),_0x5d9cd3[_0x1765b1(0x1e7)](_0x1765b1(0x1fc))&&_0x5d9cd3[_0x1765b1(0x234)](_0x1765b1(0x1fc),{'allowAttributes':[_0x1765b1(0x1fe)]});}[_0x52a420(0x1fb)](){const _0x511f57=_0x52a420,_0x544efe=this[_0x511f57(0x212)];_0x544efe[_0x511f57(0x217)][_0x511f57(0x23b)](_0x511f57(0x1ff))[_0x511f57(0x204)]({'model':_0x511f57(0x1fe),'view':_0x511f57(0x21b)}),_0x544efe[_0x511f57(0x217)][_0x511f57(0x23b)](_0x511f57(0x215))[_0x511f57(0x20c)]({'model':{'key':_0x511f57(0x1fe),'value':_0x155ccb=>_0x155ccb[_0x511f57(0x232)](_0x511f57(0x21b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x569c0c=_0x544efe[_0x511f57(0x218)][_0x511f57(0x1f0)](_0x511f57(0x1f2));_0x569c0c&&this[_0x511f57(0x23a)](_0x569c0c,_0x511f57(0x21c),(_0x466748,[_0x484de2,_0x2b2b51])=>{const _0x3a01a5=_0x511f57;_0x484de2[_0x3a01a5(0x1fd)](_0x3a01a5(0x1fe),_0x2b2b51);});}[_0x52a420(0x21a)](){const _0x45e7c5=_0x52a420,_0x48b6b1=this[_0x45e7c5(0x212)][_0x45e7c5(0x214)][_0x45e7c5(0x1f0)](_0x45e7c5(0x221))||{},_0x270a84=this[_0x45e7c5(0x212)][_0x45e7c5(0x214)][_0x45e7c5(0x1f0)](_0x45e7c5(0x219))||'';this[_0x45e7c5(0x235)]=_0xea3555(_0x378b89[_0x45e7c5(0x233)],_0x45e7c5(0x206),{..._0x48b6b1,'pubkey':_0x270a84,'ctx-name':_0x45e7c5(0x239)+this[_0x45e7c5(0x209)],'sourceList':'','imgOnly':_0x45e7c5(0x226),'removeCopyright':_0x45e7c5(0x226),'localeName':this[_0x45e7c5(0x212)][_0x45e7c5(0x1f5)][_0x45e7c5(0x1ed)],'externalSourcesEmbedCss':_0x45e7c5(0x200)}),this[_0x45e7c5(0x235)][_0x45e7c5(0x207)]=_0x3e82b7=>{const _0x1e8e84=_0x45e7c5;if(_0x1e8e84(0x20f)==_0x3e82b7)return _0x1e8e84(0x225);},_0x378b89[_0x45e7c5(0x233)][_0x45e7c5(0x21f)][_0x45e7c5(0x201)](this[_0x45e7c5(0x235)]);}[_0x52a420(0x1f1)](){const _0x11e521=_0x52a420;this[_0x11e521(0x1f3)]=_0xea3555(_0x378b89[_0x11e521(0x233)],_0x11e521(0x213),{'ctx-name':_0x11e521(0x239)+this[_0x11e521(0x209)]}),_0x378b89[_0x11e521(0x233)][_0x11e521(0x21f)][_0x11e521(0x201)](this[_0x11e521(0x1f3)]);}[_0x52a420(0x22d)](){const _0x1ae22a=_0x52a420,_0x423404=this[_0x1ae22a(0x212)][_0x1ae22a(0x218)][_0x1ae22a(0x1f0)](_0x1ae22a(0x1f4));_0x423404&&this[_0x1ae22a(0x23a)](_0x423404,_0x1ae22a(0x22b),()=>{const _0x16b2f8=_0x1ae22a,_0x5d2d4a=this[_0x16b2f8(0x212)][_0x16b2f8(0x222)][_0x16b2f8(0x233)][_0x16b2f8(0x228)][_0x16b2f8(0x229)]();_0x5d2d4a&&_0x5d2d4a[_0x16b2f8(0x232)](_0x16b2f8(0x1fe))&&this[_0x16b2f8(0x212)][_0x16b2f8(0x231)][_0x16b2f8(0x1f6)][_0x16b2f8(0x1e9)](_0x16b2f8(0x20a),()=>{const _0x2bd406=_0x16b2f8;_0x42299f(this[_0x2bd406(0x212)],_0x5d2d4a);});});const _0x34f2bc=this[_0x1ae22a(0x212)][_0x1ae22a(0x218)][_0x1ae22a(0x1f0)](_0x1ae22a(0x1ea));_0x34f2bc&&this[_0x1ae22a(0x23a)](_0x34f2bc,_0x1ae22a(0x22b),()=>{const _0x459389=_0x1ae22a,_0x4c2c8a=this[_0x459389(0x212)][_0x459389(0x222)][_0x459389(0x233)][_0x459389(0x228)][_0x459389(0x229)]();_0x4c2c8a&&_0x4c2c8a[_0x459389(0x232)](_0x459389(0x1fe))&&this[_0x459389(0x212)][_0x459389(0x231)][_0x459389(0x1f6)][_0x459389(0x1e9)](_0x459389(0x20a),()=>{const _0x5ef0a1=_0x459389;_0x42299f(this[_0x5ef0a1(0x212)],_0x4c2c8a);});});}}
|