@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20260113.0 → 0.0.0-nightly-20260114.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 _0x7163ca,Command as _0x4df12c}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x4d5c02,IconGooglePhotos as _0x1a466b,IconGoogleDrive as _0x535615,IconFacebook as _0x713d35,IconDropbox as _0x191371,IconUploadcareLink as _0x58d259,IconUploadcareImageUpload as _0x522e0f,IconError as _0x1011b7,IconUploadcareImageEdit as _0x99bfc9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x436093,MenuBarMenuListItemButtonView as _0x1d56de,View as _0x202034,FocusCycler as _0x3803da,Dialog as _0x1b6dbc,DialogViewPosition as _0x15ecb3,SpinnerView as _0x515ce1,IconView as _0x2d1290,Notification as _0x3d0e66}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x551a34,DomEmitterMixin as _0x57e997,global as _0x27b7a0,getAncestors as _0x54214d,ObservableMixin as _0x4e83f8,uid as _0x210623,createElement as _0xd1ae02}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x55e3c6}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x751d95,info as _0x3a6b15}from'@uploadcare/upload-client';import*as _0x5ba2eb from'@uploadcare/file-uploader';var i=function(_0x4e09c5){return _0x4e09c5['Local']='local',_0x4e09c5['URL']='url',_0x4e09c5['Dropbox']='dropbox',_0x4e09c5['GDrive']='gdrive',_0x4e09c5['Facebook']='facebook',_0x4e09c5['GPhotos']='gphotos',_0x4e09c5['OneDrive']='onedrive',_0x4e09c5;}({});function _(_0x79d095,_0x319e70,_0x618abe){const t=_0x79d095['t'],_0x45bd6c=_0x79d095['t'];switch(_0x319e70){case i['Local']:return{'text':_0x45bd6c('Insert'===_0x618abe?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x45bd6c('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x618abe?_0x45bd6c('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x45bd6c('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x618abe?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x618abe?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x618abe?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x618abe?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x618abe?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x319e70;}}class e extends _0x7163ca{['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 _0x504b93=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e5348;for(const _0x5aef8a in _0x504b93){const _0x209e55=_0x5aef8a,_0x569f56=_0x504b93[_0x209e55];if('uploadcareLicenseKeyValid'==_0x569f56||'uploadcareLicenseKeyInvalid'==_0x569f56||'uploadcareLicenseKeyExpired'==_0x569f56||'uploadcareLicenseKeyDomainLimit'==_0x569f56||'uploadcareLicenseKeyNotAllowed'==_0x569f56||'uploadcareLicenseKeyEvaluationLimit'==_0x569f56||'uploadcareLicenseKeyUsageLimit'==_0x569f56){delete _0x504b93[_0x209e55],_0x1e5348=_0x569f56,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1e5348&&_0x504b93['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1e5348&&_0x504b93['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1e5348&&_0x504b93['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1e5348&&_0x504b93['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1e5348&&_0x504b93['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1e5348&&_0x504b93['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x11203b}=this,_0x5670d2=_0x11203b['commands']['get']('uploadcare');if(!_0x5670d2)return;const _0x2de6fa=this['_normalizeConfigSourceList'](_0x11203b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2a0546,_0x21ff82)=>{const _0xa7febf=this['_getIntegrationKey'](_0x21ff82['type']);return _0x2a0546[_0xa7febf]||(_0x2a0546[_0xa7febf]=[]),_0x2a0546[_0xa7febf]['push'](_0x21ff82),_0x2a0546;},{});_0x11203b['plugins']['has']('ImageInsertUI')&&_0x11203b['commands']['get']('uploadcare')&&Object['entries'](_0x2de6fa)['forEach'](([_0x41a412,_0x3e0953])=>{_0x11203b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x41a412,'observable':()=>_0x5670d2,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3e0953),'formViewCreator':()=>this['_createDropdownButtons'](_0x3e0953),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3e0953),'override':'assetManager'!==_0x41a412});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x539082){const {locale:_0x290ec3}=this['editor'];return _0x539082['map'](_0x389fbc=>{const _0x3fc7a1=_(_0x290ec3,_0x389fbc,'Insert');switch(_0x389fbc){case i['Local']:return{'icon':_0x522e0f,'type':i['Local'],..._0x3fc7a1};case i['URL']:return{'icon':_0x58d259,'type':i['URL'],..._0x3fc7a1};case i['Dropbox']:return{'icon':_0x191371,'type':i['Dropbox'],..._0x3fc7a1};case i['Facebook']:return{'icon':_0x713d35,'type':i['Facebook'],..._0x3fc7a1};case i['GDrive']:return{'icon':_0x535615,'type':i['GDrive'],..._0x3fc7a1};case i['GPhotos']:return{'icon':_0x1a466b,'type':i['GPhotos'],..._0x3fc7a1};case i['OneDrive']:return{'icon':_0x4d5c02,'type':i['OneDrive'],..._0x3fc7a1};}});}['_getIntegrationKey'](_0x1db9ba){switch(_0x1db9ba){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2f9d65,_0x428f43){const _0x31607a=this['editor'],_0x45bf29=new _0x2f9d65(_0x31607a['locale']),_0x5e853c=_0x31607a['commands']['get']('uploadcare');return _0x45bf29['bind']('isEnabled')['to'](_0x5e853c),_0x45bf29['on']('execute',()=>{_0x5e853c['execute'](_0x428f43);}),_0x45bf29;}['_createToolbarButton'](_0x121492){const {locale:_0xa752fd}=this['editor'],_0x2568d7=this['editor']['plugins']['get']('ImageInsertUI'),_0x1c26bd=_0x121492[0x0],_0x53a13c=this['_createButton'](_0x436093,_0x1c26bd['type']);return _0x53a13c['icon']=_0x1c26bd['icon'],_0x53a13c['bind']('label')['to'](_0x2568d7,'isImageSelected',_0x1f9a85=>_(_0xa752fd,_0x1c26bd['type'],_0x1f9a85?'Replace':'Insert')['text']),_0x53a13c['tooltip']=!0x0,_0x53a13c;}['_createDropdownButtons'](_0x50fbda){const {locale:_0xa56734}=this['editor'],_0x33a097=this['editor']['plugins']['get']('ImageInsertUI');return _0x50fbda['map'](_0x3baf15=>{const _0x2903ff=this['_createButton'](_0x436093,_0x3baf15['type']);return _0x2903ff['withText']=!0x0,_0x2903ff['icon']=_0x3baf15['icon'],_0x2903ff['bind']('label')['to'](_0x33a097,'isImageSelected',_0x254a02=>_(_0xa56734,_0x3baf15['type'],_0x254a02?'Replace':'Insert')['text']),_0x2903ff;});}['_createMenuBarButtons'](_0x218dc4){return _0x218dc4['map'](_0x551a37=>{const _0x4db683=this['_createButton'](_0x1d56de,_0x551a37['type']);return _0x4db683['icon']=_0x551a37['icon'],_0x4db683['label']=_0x551a37['shortText'],_0x4db683;});}}class F extends _0x202034{['focusTracker'];['focusCycler'];constructor(_0x20893f){super(_0x20893f),this['focusTracker']=new _0x551a34(),this['focusCycler']=new _0x3803da({'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(_0xa76e4c,_0x32643d){super(_0xa76e4c),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-'+_0x32643d}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x548f9f,_0x4be3ab){const _0x303cd3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0xdcc7f7=>_0xdcc7f7<=_0x4be3ab)['map'](_0x4234d5=>_0x548f9f['replace'](/\/$/,'')+'/-/resize/'+_0x4234d5+'x/\x20'+_0x4234d5+'w');return{'imageFallbackUrl':_0x548f9f,'imageSources':[{'srcset':_0x303cd3['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4be3ab+'px)\x20100vw,\x20'+_0x4be3ab+'px','type':'image/webp'}]};}function S(_0x34809f,_0x526c72,_0x398604){const _0x3d892a=_0x34809f['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x3d892a?parseInt(_0x3d892a[0x1],0xa):_0x526c72,'height':_0x3d892a?parseInt(_0x3d892a[0x2],0xa):_0x398604};}function p(_0x337e75,_0x1ee43a){const _0x3d8d7f=new(_0x57e997())(),_0x47ac3b=_0x337e75['plugins']['get']('ImageUtils'),_0x4bcf43=_0x337e75['editing']['mapper']['toViewElement'](_0x1ee43a),_0x4f2522=_0x47ac3b['findViewImgElement'](_0x4bcf43),_0x2cc1ba=_0x337e75['editing']['view']['domConverter']['viewToDom'](_0x4f2522),_0x12e0dc=_0x1ee43a['getAttribute']('width'),_0x4853bf=_0x1ee43a['getAttribute']('height'),_0x1f9eff='image-processing';_0x337e75['editing']['view']['change'](_0x25508a=>{_0x25508a['addClass'](_0x1f9eff,_0x4bcf43),_0x25508a['setStyle']('aspect-ratio',_0x12e0dc+'/'+_0x4853bf,_0x4f2522);}),_0x3d8d7f['listenTo'](_0x2cc1ba,'load',()=>{_0x3d8d7f['stopListening'](_0x2cc1ba,'load'),_0x337e75['editing']['view']['change'](_0x1439e8=>{_0x1439e8['removeClass'](_0x1f9eff,_0x4bcf43),_0x1439e8['removeStyle']('aspect-ratio',_0x4f2522);});});}function G(_0x23746b){if(Array['isArray'](_0x23746b)){const _0x206c41=_0x23746b['map'](G);return _0x532e50=>_0x206c41['some'](_0x1919e0=>_0x1919e0(_0x532e50));}if('origin'==_0x23746b){const _0x46c3db=_0x27b7a0['window']['location']['origin'];return _0x250358=>new URL(_0x250358,_0x27b7a0['document']['baseURI'])['origin']==_0x46c3db;}return'function'==typeof _0x23746b?_0x23746b:_0x23746b instanceof RegExp?_0xa87f73=>!(!_0xa87f73['match'](_0x23746b)&&!_0xa87f73['replace'](/^https?:\/\//,'')['match'](_0x23746b)):()=>!0x1;}function A(_0x446496,_0x45d2ab){return _0x54214d(_0x446496['target'])['includes'](_0x45d2ab);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x4e83f8(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x1c11a4,_0x257a80,_0x11cd0f){super(),this['_editor']=_0x1c11a4,this['_editing']=_0x257a80,this['_dialog']=_0x1c11a4['plugins']['get'](_0x1b6dbc),this['_api']=_0x257a80['ctxElement']['getAPI'](),this['_type']=_0x11cd0f,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:_0x1f888a,model:_0x19dbc9}=this['_editor'],_0x2741bf=_0x19dbc9['document']['selection']['getSelectedElement'](),_0x4be146=_0x2741bf&&(_0x2741bf['is']('element','imageBlock')||_0x2741bf['is']('element','imageInline'));this['_formView']=new x(_0x1f888a,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x522e0f,'title':_(_0x1f888a,this['_type'],_0x4be146?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x15ecb3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3f66e3=>!A(_0x3f66e3,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4d8b99}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x32f9a5=>{const _0x5c6c03=_0x4d8b99['length'];for(const _0x398053 of _0x4d8b99){const _0x22c332=_0x398053===_0x4d8b99[_0x5c6c03-0x1],{cdnUrl:_0x354b1b,fileInfo:_0x2cdc77}=_0x398053;if(!_0x354b1b||!_0x2cdc77)continue;const {width:_0x59dd85,height:_0x8e494a}=_0x2cdc77['imageInfo'],_0x36643e=S(_0x354b1b,_0x59dd85,_0x8e494a),_0x4340a3=C(_0x354b1b,_0x36643e['width']),_0x1cb470={'id':_0x2cdc77['uuid'],'type':'image','attributes':{'imageDimension':_0x36643e,..._0x4340a3}};this['_insertAsset'](_0x1cb470,_0x22c332,_0x32f9a5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x53db4f=>{'idle'===_0x53db4f['detail']['status']&&!_0x53db4f['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1704b6,_0x362ad5,_0x4e716a){const _0x5d8c00=this['_editor']['model']['document']['selection'],_0x1c6e58=_0x5d8c00['getSelectedElement'](),_0x324893=!(!_0x1c6e58||!_0x1c6e58['is']('element','imageInline'));_0x4e716a['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1704b6,_0x324893),_0x362ad5||_0x4e716a['setSelection'](_0x5d8c00['getLastPosition']());}['_insertImage'](_0xada5df,_0x225bce){const _0xe47b7c=this['_editor'],{imageDimension:_0x6eecb9,imageFallbackUrl:_0x5a9b7f,imageSources:_0x120db2}=_0xada5df['attributes'];_0xe47b7c['execute']('insertImage',{'imageType':_0x225bce?'imageInline':null,'source':{'uploadcareImageId':_0xada5df['id'],'src':_0x5a9b7f,'sources':_0x120db2,..._0x6eecb9}});}}class w extends _0x4df12c{['_editing'];['_controller']=null;static get['requires'](){return[_0x1b6dbc,o];}constructor(_0x3ed422){super(_0x3ed422),this['_editing']=_0x3ed422['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5b20aa){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x5b20aa);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x53d07d,..._0x48e8c4}){return _0x751d95(_0x53d07d,_0x48e8c4);}static['getInfo'](_0x1fbb1e,_0x643859){return _0x3a6b15(_0x1fbb1e,_0x643859);}}class f extends _0x7163ca{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x55e3c6,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x98e2fa=this['editor'];if(!!!_0x98e2fa['config']['get']('uploadcare'))return;_0x98e2fa['plugins']['get'](_0x55e3c6)['createUploadAdapter']=_0x19e88b=>new k(_0x19e88b,_0x98e2fa),_0x98e2fa['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x497025,{imageElement:_0x3daf36,data:_0x190e91})=>{_0x98e2fa['model']['change'](_0x1c2682=>{_0x1c2682['setAttribute']('uploadcareImageId',_0x190e91['uploadcareImageId'],_0x3daf36);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x534c35,_0x546da5){this['loader']=_0x534c35,this['editor']=_0x546da5,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x81ff0=await this['loader']['file'];return j['upload']({'file':_0x81ff0,'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':_0x475162=>{_0x475162&&_0x475162['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x475162['value']);}})['then'](async _0x4ccfef=>{const {imageFallbackUrl:_0x47225a,imageSources:_0x42f7ce}=C(_0x4ccfef['cdnUrl'],_0x4ccfef['imageInfo']['width']);return{'uploadcareImageId':_0x4ccfef['uuid'],'default':_0x47225a,'sources':_0x42f7ce};})['catch'](()=>{const _0x8f4dc0=t('Cannot\x20upload\x20file:')+('\x20'+_0x81ff0['name']+'.');return Promise['reject'](_0x8f4dc0);});}['abort'](){this['controller']['abort']();}}class o extends _0x7163ca{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1b6dbc];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x18bd69){super(_0x18bd69),this['ucContextId']=_0x210623();}['init'](){const _0x7f34b0=this['editor'];_0x7f34b0['commands']['add']('uploadcare',new w(_0x7f34b0));}['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 _0x4eb9c0=_0x27b7a0['document']['querySelector']('input[uploadcare-file-input]');_0x4eb9c0&&_0x4eb9c0['remove']();}),async function(_0x359f3b){const _0x4634e7=_0x27efc0([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x48fdd3=0x535f8c3a,_0x47a035=0x5358f28a^_0x48fdd3,_0x2cc991=window[_0x27efc0([0x44,0x61,0x74,0x65])][_0x27efc0([0x6e,0x6f,0x77])](),_0x316a98=_0x359f3b[_0x27efc0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xefef62=new window[(_0x27efc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e632d=>{_0x316a98[_0x27efc0([0x6f,0x6e,0x63,0x65])](_0x27efc0([0x72,0x65,0x61,0x64,0x79]),_0x5e632d);}),_0x3a426e={[_0x27efc0([0x6b,0x74,0x79])]:_0x27efc0([0x45,0x43]),[_0x27efc0([0x75,0x73,0x65])]:_0x27efc0([0x73,0x69,0x67]),[_0x27efc0([0x63,0x72,0x76])]:_0x27efc0([0x50,0x2d,0x32,0x35,0x36]),[_0x27efc0([0x78])]:_0x27efc0([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]),[_0x27efc0([0x79])]:_0x27efc0([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]),[_0x27efc0([0x61,0x6c,0x67])]:_0x27efc0([0x45,0x53,0x32,0x35,0x36])},_0x4a973c=_0x316a98[_0x27efc0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x27efc0([0x67,0x65,0x74])](_0x27efc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x71172e(){let _0x8899f7,_0x399de2=null,_0x27b553=null;try{if(_0x4a973c==_0x27efc0([0x47,0x50,0x4c]))return _0x27efc0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8899f7=_0x55c2c4(),!_0x8899f7)return _0x27efc0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8899f7[_0x27efc0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x27b553=_0x18c31d(_0x8899f7[_0x27efc0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8899f7[_0x27efc0([0x6a,0x74,0x69])])),await _0x97b2d8()?_0x4cb8d4()?_0xc604e1()?_0x27efc0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xfbde60()?(_0x8899f7[_0x27efc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27efc0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x399de2=_0x4f8ec8(_0x27efc0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45061d()):_0x27efc0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x27efc0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x27efc0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x27efc0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xc604e1(){const _0x321a55=[_0x27efc0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x27efc0([0x74,0x72,0x69,0x61,0x6c])][_0x27efc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8899f7[_0x27efc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2cc991/0x3e8:0xe10*_0x47a035;return _0x8899f7[_0x27efc0([0x65,0x78,0x70])]<_0x321a55;}function _0x4cb8d4(){const _0x4c5fcc=_0x8899f7[_0x27efc0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4c5fcc&&(!!_0x4c5fcc[_0x27efc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27efc0([0x2a]))||!!_0x4c5fcc[_0x27efc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27efc0([0x55,0x50,0x4c,0x43])));}function _0xfbde60(){const _0x1479b2=_0x8899f7[_0x27efc0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1479b2||0x0==_0x1479b2[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x359dd8}=new URL(window[_0x27efc0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1479b2[_0x27efc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x359dd8))return!0x0;const _0x2e1768=_0x359dd8[_0x27efc0([0x73,0x70,0x6c,0x69,0x74])](_0x27efc0([0x2e]));return _0x1479b2[_0x27efc0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11f83c=>_0x11f83c[_0x27efc0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27efc0([0x2a])))[_0x27efc0([0x6d,0x61,0x70])](_0x471b31=>_0x471b31[_0x27efc0([0x73,0x70,0x6c,0x69,0x74])](_0x27efc0([0x2e])))[_0x27efc0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1de176=>_0x1de176[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2e1768[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27efc0([0x6d,0x61,0x70])](_0x43ec2e=>Array(_0x2e1768[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x43ec2e[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27efc0([0x66,0x69,0x6c,0x6c])](_0x43ec2e[0x0]===_0x27efc0([0x2a])?_0x27efc0([0x2a]):'')[_0x27efc0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x43ec2e))[_0x27efc0([0x73,0x6f,0x6d,0x65])](_0x30bdb5=>_0x2e1768[_0x27efc0([0x65,0x76,0x65,0x72,0x79])]((_0x3549de,_0x46a66a)=>_0x30bdb5[_0x46a66a]===_0x3549de||_0x30bdb5[_0x46a66a]===_0x27efc0([0x2a])));}function _0x45061d(){return _0x399de2&&_0x27b553?new window[(_0x27efc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25ae9c,_0x2f6c31)=>{_0x399de2[_0x27efc0([0x74,0x68,0x65,0x6e])](_0x25ae9c,_0x2f6c31),_0x27b553[_0x27efc0([0x74,0x68,0x65,0x6e])](_0x395387=>{_0x395387!=_0x27efc0([0x56,0x61,0x6c,0x69,0x64])&&_0x25ae9c(_0x395387);},_0x2f6c31);}):_0x399de2||_0x27b553||_0x27efc0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x18c31d(_0xcff40,_0x47e2e3){return new window[(_0x27efc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a51e5=>{if(_0x3cdcdb())return _0x5a51e5(_0x27efc0([0x56,0x61,0x6c,0x69,0x64]));_0x1efd46(),_0x316a98[_0x27efc0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x27efc0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43a558=!0x1;const _0x2a97a1=_0x210623();function _0x4f06b4(_0x2e714b){return!!_0x2e714b&&(typeof _0x2e714b===_0x27efc0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2e714b===_0x27efc0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2e714b[_0x27efc0([0x74,0x68,0x65,0x6e])]===_0x27efc0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2e714b[_0x27efc0([0x63,0x61,0x74,0x63,0x68])]===_0x27efc0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4d858c(_0x189ddd){_0x16b06c(_0x189ddd)[_0x27efc0([0x74,0x68,0x65,0x6e])](_0x52f08=>{if(!_0x52f08||_0x52f08[_0x27efc0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x27efc0([0x6f,0x6b]))return _0x27efc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2347ef(_0x5072cb(_0x2a97a1+_0x47e2e3))!=_0x52f08[_0x27efc0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x27efc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x27efc0([0x56,0x61,0x6c,0x69,0x64]);})[_0x27efc0([0x74,0x68,0x65,0x6e])](_0x140fe3=>(_0xf6c629(),_0x140fe3),()=>{const _0x29e174=_0x32820b();return null==_0x29e174?(_0xf6c629(),_0x27efc0([0x56,0x61,0x6c,0x69,0x64])):_0x27efc0(_0x2cc991-_0x29e174>(0x7753083a^_0x48fdd3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x27efc0([0x74,0x68,0x65,0x6e])](_0x5a51e5)[_0x27efc0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a51e5(_0x27efc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2087c2=0x536962ba^_0x48fdd3;function _0xf6c629(){const _0x3d17f6=_0x27efc0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2347ef(_0x5072cb(_0xcff40)),_0x1a86d6=_0x35bb36(_0x2347ef(window[_0x27efc0([0x4d,0x61,0x74,0x68])][_0x27efc0([0x63,0x65,0x69,0x6c])](_0x2cc991/_0x2087c2)));window[_0x27efc0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27efc0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d17f6,_0x1a86d6);}function _0x32820b(){const _0x57129c=_0x27efc0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2347ef(_0x5072cb(_0xcff40)),_0x4fbd7d=window[_0x27efc0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27efc0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57129c);return _0x4fbd7d?window[_0x27efc0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35bb36(_0x4fbd7d),0x10)*_0x2087c2:null;}function _0x16b06c(_0x47802f){return new window[(_0x27efc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a7bf7,_0x3b58aa)=>{_0x47802f[_0x27efc0([0x74,0x68,0x65,0x6e])](_0x5a7bf7,_0x3b58aa),window[_0x27efc0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b58aa,0x535e58fa^_0x48fdd3);});}}_0x316a98[_0x27efc0([0x6f,0x6e])](_0x27efc0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e47c8,_0x5376a9)=>{if(_0x5376a9[0x0]!=_0xcff40)return _0x5a51e5(_0x27efc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5376a9[0x1]={..._0x5376a9[0x1],[_0x27efc0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a97a1};},{[_0x27efc0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27efc0([0x68,0x69,0x67,0x68])}),_0x316a98[_0x27efc0([0x6f,0x6e])](_0x27efc0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3275b1=>{_0x4f06b4(_0x3275b1[_0x27efc0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43a558=!0x0,_0x4d858c(_0x3275b1[_0x27efc0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x27efc0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27efc0([0x6c,0x6f,0x77])}),_0xefef62[_0x27efc0([0x74,0x68,0x65,0x6e])](()=>{_0x43a558||_0x5a51e5(_0x27efc0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3cdcdb(){return _0x316a98[_0x27efc0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27efc0([0x76,0x69,0x65,0x77])][_0x27efc0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x27efc0([0x61,0x75,0x74,0x6f]);}function _0x1efd46(){_0x316a98[_0x27efc0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27efc0([0x76,0x69,0x65,0x77])][_0x27efc0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27efc0([0x61,0x75,0x74,0x6f]);}}function _0x4f8ec8(_0x93937b){const _0x50a2af=[new window[(_0x27efc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b616e=>setTimeout(_0x4b616e,0x5356b2f6^_0x48fdd3)),_0xefef62[_0x27efc0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x27efc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x557c1c=>{let _0x4726d5=0x0;_0x316a98[_0x27efc0([0x6d,0x6f,0x64,0x65,0x6c])][_0x27efc0([0x6f,0x6e])](_0x27efc0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ef8ca,_0x2d8c9e)=>{_0x2d8c9e[0x0][_0x27efc0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4726d5++,_0x4726d5==(0x535f89d2^_0x48fdd3)&&(_0x557c1c(),_0x1ef8ca[_0x27efc0([0x6f,0x66,0x66])]());});}))];return window[_0x27efc0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27efc0([0x72,0x61,0x63,0x65])](_0x50a2af)[_0x27efc0([0x74,0x68,0x65,0x6e])](()=>_0x93937b);}async function _0x60d4ce(){await _0xefef62,_0x316a98[_0x27efc0([0x6d,0x6f,0x64,0x65,0x6c])][_0x27efc0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18fd8e,_0x316a98[_0x27efc0([0x6d,0x6f,0x64,0x65,0x6c])][_0x27efc0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18fd8e,_0x316a98[_0x27efc0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x27efc0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4838da(_0x2aa94c){const _0xfa5f3f=_0x58f7c4();_0x316a98[_0xfa5f3f]=_0x27efc0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2aa94c,_0x2aa94c!=_0x27efc0([0x56,0x61,0x6c,0x69,0x64])&&_0x60d4ce();}function _0x58f7c4(){const _0x4f4c87=window[_0x27efc0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x27efc0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x27efc0([0x6e,0x6f,0x77])]())[_0x27efc0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x27efc0([0x2e]),'');let _0x5570c9=_0x27efc0([0x68]);for(let _0x85497d=0x0;_0x85497d<_0x4f4c87[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x85497d+=0x2){let _0x31c653=window[_0x27efc0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f4c87[_0x27efc0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x85497d,_0x85497d+0x2));_0x31c653>=_0x4634e7[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31c653-=_0x4634e7[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5570c9+=_0x4634e7[_0x31c653];}return _0x5570c9;}function _0x55c2c4(){const _0x27899e=_0x4a973c[_0x27efc0([0x73,0x70,0x6c,0x69,0x74])](_0x27efc0([0x2e]));if(0x3!=_0x27899e[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e3a30(_0x27899e[0x1]);function _0x4e3a30(_0x18e140){const _0x5e992e=_0x159529(_0x18e140);return _0x5e992e&&_0x685c94()?_0x5e992e:null;function _0x685c94(){const _0x474774=_0x5e992e[_0x27efc0([0x6a,0x74,0x69])],_0x459ddc=window[_0x27efc0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x474774[_0x27efc0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x474774[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ebd11={..._0x5e992e,[_0x27efc0([0x6a,0x74,0x69])]:_0x474774[_0x27efc0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x474774[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ebd11[_0x27efc0([0x76,0x63])],_0x5072cb(_0x3ebd11)==_0x459ddc;}}}async function _0x97b2d8(){let _0x554d8a=!0x0;try{const _0x15bb16=_0x4a973c[_0x27efc0([0x73,0x70,0x6c,0x69,0x74])](_0x27efc0([0x2e])),[_0x3dc677,_0x4c6099,_0x7a0c9f]=_0x15bb16;return _0x31381e(_0x3dc677),await _0x5d93ce(_0x3dc677,_0x4c6099,_0x7a0c9f),_0x554d8a;}catch{return!0x1;}function _0x31381e(_0x4f8391){const _0x53ae15=_0x159529(_0x4f8391);_0x53ae15&&_0x53ae15[_0x27efc0([0x61,0x6c,0x67])]==_0x27efc0([0x45,0x53,0x32,0x35,0x36])||(_0x554d8a=!0x1);}async function _0x5d93ce(_0x9f3c73,_0x5f0dd8,_0x5cd44d){const _0x54fea0=window[_0x27efc0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x27efc0([0x66,0x72,0x6f,0x6d])](_0x106631(_0x5cd44d),_0x5f5d6e=>_0x5f5d6e[_0x27efc0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x47b94d=new window[(_0x27efc0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x27efc0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x9f3c73+_0x27efc0([0x2e])+_0x5f0dd8),_0x3bd20e=window[_0x27efc0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x27efc0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3bd20e)return;const _0x49a3e8=await _0x3bd20e[_0x27efc0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x27efc0([0x6a,0x77,0x6b]),_0x3a426e,{[_0x27efc0([0x6e,0x61,0x6d,0x65])]:_0x27efc0([0x45,0x43,0x44,0x53,0x41]),[_0x27efc0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x27efc0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x27efc0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3bd20e[_0x27efc0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x27efc0([0x6e,0x61,0x6d,0x65])]:_0x27efc0([0x45,0x43,0x44,0x53,0x41]),[_0x27efc0([0x68,0x61,0x73,0x68])]:{[_0x27efc0([0x6e,0x61,0x6d,0x65])]:_0x27efc0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x49a3e8,_0x54fea0,_0x47b94d)||(_0x554d8a=!0x1);}}function _0x159529(_0xc391b2){return _0xc391b2[_0x27efc0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x27efc0([0x65,0x79]))?JSON[_0x27efc0([0x70,0x61,0x72,0x73,0x65])](_0x106631(_0xc391b2)):null;}function _0x106631(_0x581d7c){return window[_0x27efc0([0x61,0x74,0x6f,0x62])](_0x581d7c[_0x27efc0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x27efc0([0x2b]))[_0x27efc0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x27efc0([0x2f])));}function _0x5072cb(_0x160d58){let _0x5478d6=0x1505;function _0x2b997d(_0x6b660e){for(let _0x4d9560=0x0;_0x4d9560<_0x6b660e[_0x27efc0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d9560++){const _0x2257a7=_0x6b660e[_0x27efc0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d9560);_0x5478d6=(_0x5478d6<<0x5)+_0x5478d6+_0x2257a7,_0x5478d6&=_0x5478d6;}}function _0x4971eb(_0x46f8a9){Array[_0x27efc0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x46f8a9)?_0x46f8a9[_0x27efc0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4971eb):_0x46f8a9&&typeof _0x46f8a9==_0x27efc0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x27efc0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x46f8a9)[_0x27efc0([0x73,0x6f,0x72,0x74])]()[_0x27efc0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a74fe,_0xefc0ef])=>{_0x2b997d(_0x4a74fe),_0x4971eb(_0xefc0ef);}):_0x2b997d(window[_0x27efc0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x46f8a9));}return _0x4971eb(_0x160d58),_0x5478d6>>>0x0;}function _0x2347ef(_0x56cedc){return _0x56cedc[_0x27efc0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x27efc0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x27efc0([0x30]));}function _0x35bb36(_0x2f34f6){return _0x2f34f6[_0x27efc0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x27efc0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x27efc0([0x6a,0x6f,0x69,0x6e])]('');}function _0x18fd8e(){}function _0x27efc0(_0x361148){return _0x361148['map'](_0x148c8a=>String['fromCharCode'](_0x148c8a))['join']('');}_0x4838da(await _0x71172e());}(this);}['_initSchema'](){const _0x5db65a=this['editor']['model']['schema'];_0x5db65a['isRegistered']('imageBlock')&&_0x5db65a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x5db65a['isRegistered']('imageInline')&&_0x5db65a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3fb03e=this['editor'];_0x3fb03e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3fb03e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x34ea62=>_0x34ea62['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2e9a43=_0x3fb03e['commands']['get']('replaceImageSource');_0x2e9a43&&this['listenTo'](_0x2e9a43,'cleanupImage',(_0x4bd59c,[_0x1a1be,_0x88373f])=>{_0x1a1be['removeAttribute']('uploadcareImageId',_0x88373f);});}['_initConfig'](){const _0x146f30=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3ec993=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0xd1ae02(_0x27b7a0['document'],'uc-config',{..._0x146f30,'pubkey':_0x3ec993,'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']=_0x5aaed2=>{if('closeMax'==_0x5aaed2)return'#uc-icon-arrow-down';},_0x27b7a0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0xd1ae02(_0x27b7a0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x27b7a0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x396bca=this['editor']['commands']['get']('insertImage');_0x396bca&&this['listenTo'](_0x396bca,'execute',()=>{const _0x277460=this['editor']['model']['document']['selection']['getSelectedElement']();_0x277460&&_0x277460['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x277460);});});const _0xcca4d1=this['editor']['commands']['get']('uploadcareImageReplace');_0xcca4d1&&this['listenTo'](_0xcca4d1,'execute',()=>{const _0x32976e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x32976e&&_0x32976e['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x32976e);});});}}class tt extends _0x7163ca{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40eeda){super(_0x40eeda),_0x40eeda['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x5ba2eb['defineComponents'](_0x5ba2eb),this['_defineLocale']();}['_defineLocale'](){const _0x340cfe=this['editor']['config']['get']('uploadcare.locale'),_0x20542b=this['editor']['locale']['contentLanguage'];_0x340cfe&&_0x5ba2eb['defineLocale'](_0x20542b,_0x340cfe);}}class ii extends _0x202034{constructor(_0x218f30){super(_0x218f30);const t=_0x218f30['t'],_0x228489=this['bindTemplate'],_0x2cd70e=new _0x515ce1();_0x2cd70e['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':[_0x2cd70e,{'text':_0x228489['to']('imageUploadProgress',_0x16f93e=>t('Loading\x20image...')+'\x20('+(_0x16f93e||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 _0x202034{constructor(_0x1c8a9a){super(_0x1c8a9a);const t=_0x1c8a9a['t'];this['set']('errorType',null);const _0x42af6a=new _0x436093(_0x1c8a9a);_0x42af6a['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x42af6a['withText']=!0x0,_0x42af6a['class']='ck-button-action',_0x42af6a['on']('execute',()=>{this['fire']('retry');}),_0x42af6a['bind']('isVisible')['to'](this,'errorType',_0x2936bf=>'NotFound'!==_0x2936bf);const _0x5c73e7=new _0x2d1290();_0x5c73e7['content']=_0x1011b7,_0x5c73e7['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x556c3a=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':[_0x5c73e7,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x556c3a['to']('errorType',_0x737a1f=>t('NotFound'!==_0x737a1f?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x42af6a]},{'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 _0x202034{constructor(_0x559676,_0x4b59d8){super(_0x559676);const _0x29a691=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4b59d8,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x29a691['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x23059f,_0x3af8e2,_0x3e1fe0){super(_0x23059f),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x23059f),this['_errorView']=new ti(_0x23059f),this['_editingView']=new ei(_0x23059f,_0x3e1fe0),this['_focusableView']=new _0x202034(_0x23059f),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3af8e2),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'],_0x24c9fa=>{this['_addUploadcareImageEditorListeners'](_0x24c9fa);});}),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'](_0xe189de,_0x28b8dc){const _0x20fb96='uc-cloud-image-editor',_0x59e034=_0xe189de['querySelector'](_0x20fb96);if(_0x59e034)return _0x28b8dc(_0x59e034);const _0x24eae3=new MutationObserver(_0x1e9a21=>{const _0x35b5ed=_0x1e9a21['filter'](_0x4a5167=>_0x4a5167['target']===_0xe189de&&_0x4a5167['addedNodes']['length']>0x0&&_0x4a5167['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x20fb96);_0x35b5ed['length']&&(_0x24eae3['disconnect'](),_0x28b8dc(_0x35b5ed[0x0]['addedNodes'][0x0]));});_0x24eae3['observe'](_0xe189de,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x1252a8){_0x1252a8['addEventListener']('apply',_0x4c6ab7=>{this['fire']('apply',{'imageSrc':_0x4c6ab7['detail']['cdnUrl']});}),_0x1252a8['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4e83f8(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x7b6894,_0xd99844,_0x3dc993){super(),this['_editor']=_0x7b6894,this['_dialog']=_0xd99844,this['_imageElement']=_0x3dc993,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 _0x4154b2=this['_imageElement'],_0x1defcd=_0x4154b2['getAttribute']('uploadcareImageId'),_0x26a3df=_0x4154b2['getAttribute']('src');if(_0x1defcd)await this['_loadImageInfo'](_0x1defcd,_0x26a3df);else{if(this['_imageCache']['has'](_0x26a3df)){const _0x229106=this['_imageCache']['get'](_0x26a3df);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x229106['url'],this['imageDimension']=_0x229106['dimension'],this['imageId']=_0x229106['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x117d96}=this['_editor'],t=_0x117d96['t'],_0x548051=new X(_0x117d96,this['imageStatus'],this['_attributes']);_0x548051['bind']('status')['to'](this,'imageStatus'),_0x548051['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x548051['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x548051['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x548051,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x99bfc9,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x548051,'position':_0x15ecb3['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x548051['focus']();},'onHide':()=>{_0x548051['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1ffdfa=>!A(_0x1ffdfa,_0x548051['element'])}});}['_loadImageInfo'](_0x37bc93,_0x13d583){return j['getInfo'](_0x37bc93,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x421c9f=>{const {width:_0x43cd18,height:_0x177ba6}=_0x421c9f['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x13d583,this['imageDimension']={'width':_0x43cd18,'height':_0x177ba6},this['imageId']=_0x37bc93;})['catch'](_0x1e5c3d=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1e5c3d['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x217709,_0xa913db){return this['_getImageAsFile'](_0x217709)['then'](_0x3c54a5=>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':_0xa913db['signal'],'file':_0x3c54a5,'onProgress':_0x381557=>{_0x381557&&_0x381557['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x381557['value']));}}))['then'](_0x5ce9aa=>{const {width:_0x4bc88e,height:_0x26fed1}=_0x5ce9aa['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5ce9aa['cdnUrl'],this['imageDimension']={'width':_0x4bc88e,'height':_0x26fed1},this['imageId']=_0x5ce9aa['uuid'],this['imageUploadProgress']=null;const _0x42a56a=_0x217709['getAttribute']('src');this['_imageCache']['set'](_0x42a56a,{'id':_0x5ce9aa['uuid'],'url':_0x5ce9aa['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x104560=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x104560['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x505e08,_0x1e5602){_0x505e08['on']('apply',(_0x513da9,_0x692ff)=>{this['_replaceImage'](_0x1e5602,_0x692ff['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x505e08['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x505e08['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1ea997,_0x4d59ea,_0x443185){const _0x3608cd=this['_editor'],{width:_0x44c6e3,height:_0x25953a}=S(_0x4d59ea,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4fa7de,imageSources:_0x184b22}=C(_0x4d59ea,_0x44c6e3);_0x3608cd['model']['change'](_0x22cc39=>{if('$graveyard'===_0x1ea997['root']['rootName']){_0x3608cd['execute']('insertImage',{'imageType':_0x1ea997['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1ea997['getAttributes']()),'uploadcareImageId':_0x443185,'src':_0x4fa7de,'sources':_0x184b22,'width':_0x44c6e3,'height':_0x25953a}});const _0x5888c8=_0x1ea997['getChildren']();_0x1ea997=_0x3608cd['model']['document']['selection']['getSelectedElement']();for(const _0x1f00a0 of _0x5888c8)_0x22cc39['append'](_0x22cc39['cloneElement'](_0x1f00a0),_0x1ea997);}else _0x22cc39['setSelection'](_0x1ea997,'on'),_0x3608cd['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1ea997['getAttributes']()),'uploadcareImageId':_0x443185,'src':_0x4fa7de,'sources':_0x184b22,'width':_0x44c6e3,'height':_0x25953a},_0x1ea997);_0x22cc39['setSelection'](_0x1ea997,'on');});}async['_getImageAsFile'](_0x2d25cf){const _0x11746f=_0x27b7a0['window'],_0x2df308=_0x27b7a0['document']['location']['href'],_0x16ab94=new _0x11746f['URL'](_0x2d25cf['getAttribute']('src'),_0x2df308);if('data:'===_0x16ab94['protocol']){const _0x33dfa0=_0x16ab94['href']['split'](','),_0xbd87a1=_0x33dfa0[0x0]['match'](/:(.*?);/)[0x1],_0x465443=_0xbd87a1['split']('/')[0x1],_0x44f5de=_0x11746f['atob'](_0x33dfa0[_0x33dfa0['length']-0x1]);let _0x241eb3=_0x44f5de['length'];const _0x11a74a=new _0x11746f['Uint8Array'](_0x241eb3);for(;_0x241eb3--;)_0x11a74a[_0x241eb3]=_0x44f5de['charCodeAt'](_0x241eb3);return new _0x11746f['File']([_0x11a74a],'image.'+_0x465443,{'type':_0xbd87a1});}const _0x54b893=_0x16ab94['href']['split']('/'),_0x124bf1=_0x54b893[_0x54b893['length']-0x1],_0x508a97=_0x124bf1['split']('.')[0x1];return _0x11746f['fetch'](_0x16ab94['href'])['then'](_0x4adce8=>_0x4adce8['clone']()['blob']())['then'](_0x142ac3=>new _0x11746f['File']([_0x142ac3],_0x124bf1,{'type':'image/'+_0x508a97}));}}class O extends _0x4df12c{['imageEditController'];static get['requires'](){return[_0x1b6dbc];}['_isEditable'];constructor(_0x5711bd){super(_0x5711bd),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x2f23b5){const _0x36a0b7=G(_0x2f23b5);return _0x2d6673=>!(!_0x2d6673||!_0x2d6673['is']('element','imageBlock')&&!_0x2d6673['is']('element','imageInline'))&&(!!_0x2d6673['hasAttribute']('uploadcareImageId')||!!_0x2d6673['hasAttribute']('src')&&_0x36a0b7(_0x2d6673['getAttribute']('src')));}(_0x5711bd['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x364ffd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x364ffd);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x1e398e=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1e398e&&(_0x1e398e['is']('element','imageBlock')||_0x1e398e['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1b6dbc),_0x1e398e),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x4df12c{['refresh'](){const _0x2f2f02=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2f2f02&&(_0x2f2f02['is']('element','imageBlock')||_0x2f2f02['is']('element','imageInline')));}['execute'](_0x1df7c3){const _0x1b8749=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x520d0c=>{_0x520d0c['setAttributes'](_0x1df7c3,_0x1b8749),_0x520d0c['removeAttribute']('srcset',_0x1b8749),_0x520d0c['removeAttribute']('sizes',_0x1b8749);});}}class m extends _0x7163ca{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x3d0e66,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x7228fe}=this;_0x7228fe['commands']['add']('uploadcareImageEdit',new O(_0x7228fe)),_0x7228fe['commands']['add']('uploadcareImageReplace',new R(_0x7228fe));}}class g extends _0x7163ca{['_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 _0x519dc4=this['editor'];_0x519dc4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x461a44=>{const _0x134c64=_0x519dc4['commands']['get']('uploadcareImageEdit'),_0xd24f85=new _0x436093(_0x461a44),t=_0x461a44['t'];return _0xd24f85['set']({'icon':_0x99bfc9,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0xd24f85['bind']('isEnabled')['to'](_0x134c64),_0xd24f85['bind']('isOn')['to'](_0x134c64,'isActive'),this['listenTo'](_0xd24f85,'execute',()=>{_0x519dc4['execute']('uploadcareImageEdit'),_0x519dc4['editing']['view']['focus']();}),_0xd24f85;}),this['_initConfig']();}['_initConfig'](){const _0x39dc4e=_0xd1ae02(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x39dc4e),this['listenTo'](this['editor'],'destroy',()=>{_0x39dc4e['remove']();});}}class et extends _0x7163ca{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 _0x560d60,Command as _0x535468}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x279bed,IconGooglePhotos as _0x5a0987,IconGoogleDrive as _0x51298d,IconFacebook as _0x505788,IconDropbox as _0x47932b,IconUploadcareLink as _0xe0db01,IconUploadcareImageUpload as _0x1f78d1,IconError as _0x58b3d1,IconUploadcareImageEdit as _0x2984bb}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x30d939,MenuBarMenuListItemButtonView as _0x29ba53,View as _0x413c47,FocusCycler as _0x4ddc8b,Dialog as _0x1dd5e7,DialogViewPosition as _0x32e211,SpinnerView as _0x1882d2,IconView as _0x52b910,Notification as _0x5ab41a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x2c9a92,DomEmitterMixin as _0x5893f8,global as _0x307abd,getAncestors as _0x180e64,ObservableMixin as _0x34e424,uid as _0x34dab9,createElement as _0x121370}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x17a602}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0xd74fe6,info as _0x431dad}from'@uploadcare/upload-client';import*as _0x254e66 from'@uploadcare/file-uploader';var i=function(_0x3a8971){return _0x3a8971['Local']='local',_0x3a8971['URL']='url',_0x3a8971['Dropbox']='dropbox',_0x3a8971['GDrive']='gdrive',_0x3a8971['Facebook']='facebook',_0x3a8971['GPhotos']='gphotos',_0x3a8971['OneDrive']='onedrive',_0x3a8971;}({});function _(_0x453910,_0x13531a,_0x27a72e){const t=_0x453910['t'],_0x3d3464=_0x453910['t'];switch(_0x13531a){case i['Local']:return{'text':_0x3d3464('Insert'===_0x27a72e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x3d3464('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x27a72e?_0x3d3464('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x3d3464('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x27a72e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x27a72e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x27a72e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x27a72e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x27a72e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x13531a;}}class e extends _0x560d60{['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 _0x35d8a2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1958df;for(const _0x5932d5 in _0x35d8a2){const _0x32c178=_0x5932d5,_0x54c01c=_0x35d8a2[_0x32c178];if('uploadcareLicenseKeyValid'==_0x54c01c||'uploadcareLicenseKeyInvalid'==_0x54c01c||'uploadcareLicenseKeyExpired'==_0x54c01c||'uploadcareLicenseKeyDomainLimit'==_0x54c01c||'uploadcareLicenseKeyNotAllowed'==_0x54c01c||'uploadcareLicenseKeyEvaluationLimit'==_0x54c01c||'uploadcareLicenseKeyUsageLimit'==_0x54c01c){delete _0x35d8a2[_0x32c178],_0x1958df=_0x54c01c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x1958df&&_0x35d8a2['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x1958df&&_0x35d8a2['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x1958df&&_0x35d8a2['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x1958df&&_0x35d8a2['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x1958df&&_0x35d8a2['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyUsageLimit'==_0x1958df&&_0x35d8a2['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x3ffe1f}=this,_0x1e7a8d=_0x3ffe1f['commands']['get']('uploadcare');if(!_0x1e7a8d)return;const _0x3723c5=this['_normalizeConfigSourceList'](_0x3ffe1f['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x5b0261,_0x28b21a)=>{const _0x3e4c49=this['_getIntegrationKey'](_0x28b21a['type']);return _0x5b0261[_0x3e4c49]||(_0x5b0261[_0x3e4c49]=[]),_0x5b0261[_0x3e4c49]['push'](_0x28b21a),_0x5b0261;},{});_0x3ffe1f['plugins']['has']('ImageInsertUI')&&_0x3ffe1f['commands']['get']('uploadcare')&&Object['entries'](_0x3723c5)['forEach'](([_0x3afc4e,_0x48b9cb])=>{_0x3ffe1f['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3afc4e,'observable':()=>_0x1e7a8d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x48b9cb),'formViewCreator':()=>this['_createDropdownButtons'](_0x48b9cb),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x48b9cb),'override':'assetManager'!==_0x3afc4e});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0xb95230){const {locale:_0x3fef7f}=this['editor'];return _0xb95230['map'](_0x5fa601=>{const _0x50d3e2=_(_0x3fef7f,_0x5fa601,'Insert');switch(_0x5fa601){case i['Local']:return{'icon':_0x1f78d1,'type':i['Local'],..._0x50d3e2};case i['URL']:return{'icon':_0xe0db01,'type':i['URL'],..._0x50d3e2};case i['Dropbox']:return{'icon':_0x47932b,'type':i['Dropbox'],..._0x50d3e2};case i['Facebook']:return{'icon':_0x505788,'type':i['Facebook'],..._0x50d3e2};case i['GDrive']:return{'icon':_0x51298d,'type':i['GDrive'],..._0x50d3e2};case i['GPhotos']:return{'icon':_0x5a0987,'type':i['GPhotos'],..._0x50d3e2};case i['OneDrive']:return{'icon':_0x279bed,'type':i['OneDrive'],..._0x50d3e2};}});}['_getIntegrationKey'](_0x2861d5){switch(_0x2861d5){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x584213,_0x437e16){const _0x3c5e7c=this['editor'],_0x3f3451=new _0x584213(_0x3c5e7c['locale']),_0x8638b0=_0x3c5e7c['commands']['get']('uploadcare');return _0x3f3451['bind']('isEnabled')['to'](_0x8638b0),_0x3f3451['on']('execute',()=>{_0x8638b0['execute'](_0x437e16);}),_0x3f3451;}['_createToolbarButton'](_0x1e5a9c){const {locale:_0x36492b}=this['editor'],_0x501894=this['editor']['plugins']['get']('ImageInsertUI'),_0x228f3e=_0x1e5a9c[0x0],_0x55294f=this['_createButton'](_0x30d939,_0x228f3e['type']);return _0x55294f['icon']=_0x228f3e['icon'],_0x55294f['bind']('label')['to'](_0x501894,'isImageSelected',_0x2db469=>_(_0x36492b,_0x228f3e['type'],_0x2db469?'Replace':'Insert')['text']),_0x55294f['tooltip']=!0x0,_0x55294f;}['_createDropdownButtons'](_0x5c3709){const {locale:_0x195a48}=this['editor'],_0x1d6bb6=this['editor']['plugins']['get']('ImageInsertUI');return _0x5c3709['map'](_0x5a1249=>{const _0x1c9099=this['_createButton'](_0x30d939,_0x5a1249['type']);return _0x1c9099['withText']=!0x0,_0x1c9099['icon']=_0x5a1249['icon'],_0x1c9099['bind']('label')['to'](_0x1d6bb6,'isImageSelected',_0x77b8fd=>_(_0x195a48,_0x5a1249['type'],_0x77b8fd?'Replace':'Insert')['text']),_0x1c9099;});}['_createMenuBarButtons'](_0x576ec8){return _0x576ec8['map'](_0x1ac2eb=>{const _0x3dd2d9=this['_createButton'](_0x29ba53,_0x1ac2eb['type']);return _0x3dd2d9['icon']=_0x1ac2eb['icon'],_0x3dd2d9['label']=_0x1ac2eb['shortText'],_0x3dd2d9;});}}class F extends _0x413c47{['focusTracker'];['focusCycler'];constructor(_0x2b4fbc){super(_0x2b4fbc),this['focusTracker']=new _0x2c9a92(),this['focusCycler']=new _0x4ddc8b({'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(_0x359ec8,_0x19a1f3){super(_0x359ec8),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-'+_0x19a1f3}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x5511ae,_0x4637b0){const _0x3a5ab9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x1441fb=>_0x1441fb<=_0x4637b0)['map'](_0x28d9ff=>_0x5511ae['replace'](/\/$/,'')+'/-/resize/'+_0x28d9ff+'x/\x20'+_0x28d9ff+'w');return{'imageFallbackUrl':_0x5511ae,'imageSources':[{'srcset':_0x3a5ab9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x4637b0+'px)\x20100vw,\x20'+_0x4637b0+'px','type':'image/webp'}]};}function S(_0x4d981,_0x25e7e2,_0x1493c8){const _0xe5fd7f=_0x4d981['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0xe5fd7f?parseInt(_0xe5fd7f[0x1],0xa):_0x25e7e2,'height':_0xe5fd7f?parseInt(_0xe5fd7f[0x2],0xa):_0x1493c8};}function p(_0x285a95,_0x1fb7d5){const _0x594615=new(_0x5893f8())(),_0x424a92=_0x285a95['plugins']['get']('ImageUtils'),_0x4f2ef9=_0x285a95['editing']['mapper']['toViewElement'](_0x1fb7d5),_0x31560e=_0x424a92['findViewImgElement'](_0x4f2ef9),_0x55a5de=_0x285a95['editing']['view']['domConverter']['viewToDom'](_0x31560e),_0x1cdaba=_0x1fb7d5['getAttribute']('width'),_0x4b337b=_0x1fb7d5['getAttribute']('height'),_0x4f3c9b='image-processing';_0x285a95['editing']['view']['change'](_0x1c94a9=>{_0x1c94a9['addClass'](_0x4f3c9b,_0x4f2ef9),_0x1c94a9['setStyle']('aspect-ratio',_0x1cdaba+'/'+_0x4b337b,_0x31560e);}),_0x594615['listenTo'](_0x55a5de,'load',()=>{_0x594615['stopListening'](_0x55a5de,'load'),_0x285a95['editing']['view']['change'](_0x5eb798=>{_0x5eb798['removeClass'](_0x4f3c9b,_0x4f2ef9),_0x5eb798['removeStyle']('aspect-ratio',_0x31560e);});});}function G(_0x10b5e1){if(Array['isArray'](_0x10b5e1)){const _0x4073fa=_0x10b5e1['map'](G);return _0x2fe6c9=>_0x4073fa['some'](_0x1f8a96=>_0x1f8a96(_0x2fe6c9));}if('origin'==_0x10b5e1){const _0x545b1e=_0x307abd['window']['location']['origin'];return _0x465acb=>new URL(_0x465acb,_0x307abd['document']['baseURI'])['origin']==_0x545b1e;}return'function'==typeof _0x10b5e1?_0x10b5e1:_0x10b5e1 instanceof RegExp?_0x1b2539=>!(!_0x1b2539['match'](_0x10b5e1)&&!_0x1b2539['replace'](/^https?:\/\//,'')['match'](_0x10b5e1)):()=>!0x1;}function A(_0x574861,_0x2ecac1){return _0x180e64(_0x574861['target'])['includes'](_0x2ecac1);}class n extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x34e424(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x196f30,_0x192d4b,_0xbba2a6){super(),this['_editor']=_0x196f30,this['_editing']=_0x192d4b,this['_dialog']=_0x196f30['plugins']['get'](_0x1dd5e7),this['_api']=_0x192d4b['ctxElement']['getAPI'](),this['_type']=_0xbba2a6,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:_0x3f3d4e,model:_0x5edb2c}=this['_editor'],_0x388a19=_0x5edb2c['document']['selection']['getSelectedElement'](),_0x241365=_0x388a19&&(_0x388a19['is']('element','imageBlock')||_0x388a19['is']('element','imageInline'));this['_formView']=new x(_0x3f3d4e,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x1f78d1,'title':_(_0x3f3d4e,this['_type'],_0x241365?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x32e211['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x594443=>!A(_0x594443,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x234fcb}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5db990=>{const _0x1eaad7=_0x234fcb['length'];for(const _0x11b5e3 of _0x234fcb){const _0xd35e9=_0x11b5e3===_0x234fcb[_0x1eaad7-0x1],{cdnUrl:_0x5cca87,fileInfo:_0x26d679}=_0x11b5e3;if(!_0x5cca87||!_0x26d679)continue;const {width:_0x2bc80f,height:_0x458634}=_0x26d679['imageInfo'],_0x460eda=S(_0x5cca87,_0x2bc80f,_0x458634),_0x5c7443=C(_0x5cca87,_0x460eda['width']),_0x4bcb0e={'id':_0x26d679['uuid'],'type':'image','attributes':{'imageDimension':_0x460eda,..._0x5c7443}};this['_insertAsset'](_0x4bcb0e,_0xd35e9,_0x5db990);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x128e60=>{'idle'===_0x128e60['detail']['status']&&!_0x128e60['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1c32ef,_0x4d0e66,_0x59ab8e){const _0x1bec24=this['_editor']['model']['document']['selection'],_0x5d794f=_0x1bec24['getSelectedElement'](),_0x5608ff=!(!_0x5d794f||!_0x5d794f['is']('element','imageInline'));_0x59ab8e['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1c32ef,_0x5608ff),_0x4d0e66||_0x59ab8e['setSelection'](_0x1bec24['getLastPosition']());}['_insertImage'](_0x23d50e,_0x297e4c){const _0x588714=this['_editor'],{imageDimension:_0x21a194,imageFallbackUrl:_0x215366,imageSources:_0x4eecbe}=_0x23d50e['attributes'];_0x588714['execute']('insertImage',{'imageType':_0x297e4c?'imageInline':null,'source':{'uploadcareImageId':_0x23d50e['id'],'src':_0x215366,'sources':_0x4eecbe,..._0x21a194}});}}class w extends _0x535468{['_editing'];['_controller']=null;static get['requires'](){return[_0x1dd5e7,o];}constructor(_0x366120){super(_0x366120),this['_editing']=_0x366120['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x480043){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x480043);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x1dc5cc,..._0x32f7a2}){return _0xd74fe6(_0x1dc5cc,_0x32f7a2);}static['getInfo'](_0x5de014,_0x5999fd){return _0x431dad(_0x5de014,_0x5999fd);}}class f extends _0x560d60{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x17a602,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x4970da=this['editor'];if(!!!_0x4970da['config']['get']('uploadcare'))return;_0x4970da['plugins']['get'](_0x17a602)['createUploadAdapter']=_0x2a18d6=>new k(_0x2a18d6,_0x4970da),_0x4970da['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x574881,{imageElement:_0x47f5a8,data:_0x3e3d10})=>{_0x4970da['model']['change'](_0x163f7d=>{_0x163f7d['setAttribute']('uploadcareImageId',_0x3e3d10['uploadcareImageId'],_0x47f5a8);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x415599,_0x10eb93){this['loader']=_0x415599,this['editor']=_0x10eb93,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x5ce7b3=await this['loader']['file'];return j['upload']({'file':_0x5ce7b3,'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':_0x1383dc=>{_0x1383dc&&_0x1383dc['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x1383dc['value']);}})['then'](async _0x4e9271=>{const {imageFallbackUrl:_0x4672bf,imageSources:_0x3071a8}=C(_0x4e9271['cdnUrl'],_0x4e9271['imageInfo']['width']);return{'uploadcareImageId':_0x4e9271['uuid'],'default':_0x4672bf,'sources':_0x3071a8};})['catch'](()=>{const _0x399f56=t('Cannot\x20upload\x20file:')+('\x20'+_0x5ce7b3['name']+'.');return Promise['reject'](_0x399f56);});}['abort'](){this['controller']['abort']();}}class o extends _0x560d60{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x1dd5e7];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x57c059){super(_0x57c059),this['ucContextId']=_0x34dab9();}['init'](){const _0x131f1f=this['editor'];_0x131f1f['commands']['add']('uploadcare',new w(_0x131f1f));}['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 _0x3ebc7a=_0x307abd['document']['querySelector']('input[uploadcare-file-input]');_0x3ebc7a&&_0x3ebc7a['remove']();}),async function(_0x132356){const _0x597e97=_0x4581b8([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x5e131d=0x535f8c3a,_0x350c87=0x5358f2f2^_0x5e131d,_0x5f1cd3=window[_0x4581b8([0x44,0x61,0x74,0x65])][_0x4581b8([0x6e,0x6f,0x77])](),_0x5aaec4=_0x132356[_0x4581b8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2cef0a=new window[(_0x4581b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e8030=>{_0x5aaec4[_0x4581b8([0x6f,0x6e,0x63,0x65])](_0x4581b8([0x72,0x65,0x61,0x64,0x79]),_0x3e8030);}),_0xeaf5cd={[_0x4581b8([0x6b,0x74,0x79])]:_0x4581b8([0x45,0x43]),[_0x4581b8([0x75,0x73,0x65])]:_0x4581b8([0x73,0x69,0x67]),[_0x4581b8([0x63,0x72,0x76])]:_0x4581b8([0x50,0x2d,0x32,0x35,0x36]),[_0x4581b8([0x78])]:_0x4581b8([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]),[_0x4581b8([0x79])]:_0x4581b8([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]),[_0x4581b8([0x61,0x6c,0x67])]:_0x4581b8([0x45,0x53,0x32,0x35,0x36])},_0x26ec91=_0x5aaec4[_0x4581b8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4581b8([0x67,0x65,0x74])](_0x4581b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x44f8d7(){let _0x460a84,_0x224797=null,_0x28f162=null;try{if(_0x26ec91==_0x4581b8([0x47,0x50,0x4c]))return _0x4581b8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x460a84=_0x224318(),!_0x460a84)return _0x4581b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x460a84[_0x4581b8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x28f162=_0x4dff37(_0x460a84[_0x4581b8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x460a84[_0x4581b8([0x6a,0x74,0x69])])),await _0x33b7bb()?_0x39c716()?_0x4105e3()?_0x4581b8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x310971()?(_0x460a84[_0x4581b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4581b8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x224797=_0x42c96e(_0x4581b8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e6ce8()):_0x4581b8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4581b8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4581b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4581b8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4105e3(){const _0x3a4a06=[_0x4581b8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4581b8([0x74,0x72,0x69,0x61,0x6c])][_0x4581b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x460a84[_0x4581b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f1cd3/0x3e8:0xe10*_0x350c87;return _0x460a84[_0x4581b8([0x65,0x78,0x70])]<_0x3a4a06;}function _0x39c716(){const _0x352d39=_0x460a84[_0x4581b8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x352d39&&(!!_0x352d39[_0x4581b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4581b8([0x2a]))||!!_0x352d39[_0x4581b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4581b8([0x55,0x50,0x4c,0x43])));}function _0x310971(){const _0x5ef7a8=_0x460a84[_0x4581b8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5ef7a8||0x0==_0x5ef7a8[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x107b0b}=new URL(window[_0x4581b8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5ef7a8[_0x4581b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x107b0b))return!0x0;const _0x1009e7=_0x107b0b[_0x4581b8([0x73,0x70,0x6c,0x69,0x74])](_0x4581b8([0x2e]));return _0x5ef7a8[_0x4581b8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc28ed=>_0xc28ed[_0x4581b8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4581b8([0x2a])))[_0x4581b8([0x6d,0x61,0x70])](_0x20f898=>_0x20f898[_0x4581b8([0x73,0x70,0x6c,0x69,0x74])](_0x4581b8([0x2e])))[_0x4581b8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x332f2f=>_0x332f2f[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1009e7[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4581b8([0x6d,0x61,0x70])](_0x19f6ce=>Array(_0x1009e7[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x19f6ce[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4581b8([0x66,0x69,0x6c,0x6c])](_0x19f6ce[0x0]===_0x4581b8([0x2a])?_0x4581b8([0x2a]):'')[_0x4581b8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x19f6ce))[_0x4581b8([0x73,0x6f,0x6d,0x65])](_0x95dd4e=>_0x1009e7[_0x4581b8([0x65,0x76,0x65,0x72,0x79])]((_0x50c685,_0x1d217e)=>_0x95dd4e[_0x1d217e]===_0x50c685||_0x95dd4e[_0x1d217e]===_0x4581b8([0x2a])));}function _0x2e6ce8(){return _0x224797&&_0x28f162?new window[(_0x4581b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x207326,_0x4cede8)=>{_0x224797[_0x4581b8([0x74,0x68,0x65,0x6e])](_0x207326,_0x4cede8),_0x28f162[_0x4581b8([0x74,0x68,0x65,0x6e])](_0x1adfad=>{_0x1adfad!=_0x4581b8([0x56,0x61,0x6c,0x69,0x64])&&_0x207326(_0x1adfad);},_0x4cede8);}):_0x224797||_0x28f162||_0x4581b8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4dff37(_0x2f4c1b,_0x575b34){return new window[(_0x4581b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dd7d0=>{if(_0x3037e5())return _0x2dd7d0(_0x4581b8([0x56,0x61,0x6c,0x69,0x64]));_0x18bf6d(),_0x5aaec4[_0x4581b8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4581b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x413696=!0x1;const _0x16b210=_0x34dab9();function _0x5d3fbc(_0x160671){return!!_0x160671&&(typeof _0x160671===_0x4581b8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x160671===_0x4581b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x160671[_0x4581b8([0x74,0x68,0x65,0x6e])]===_0x4581b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x160671[_0x4581b8([0x63,0x61,0x74,0x63,0x68])]===_0x4581b8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fdb26(_0x5448ba){_0x4ca30a(_0x5448ba)[_0x4581b8([0x74,0x68,0x65,0x6e])](_0x1201d5=>{if(!_0x1201d5||_0x1201d5[_0x4581b8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4581b8([0x6f,0x6b]))return _0x4581b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x58c2c0(_0x7505f3(_0x16b210+_0x575b34))!=_0x1201d5[_0x4581b8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4581b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4581b8([0x56,0x61,0x6c,0x69,0x64]);})[_0x4581b8([0x74,0x68,0x65,0x6e])](_0x20000a=>(_0x4f238f(),_0x20000a),()=>{const _0x2ed42b=_0x1f215c();return null==_0x2ed42b?(_0x4f238f(),_0x4581b8([0x56,0x61,0x6c,0x69,0x64])):_0x4581b8(_0x5f1cd3-_0x2ed42b>(0x7753083a^_0x5e131d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4581b8([0x74,0x68,0x65,0x6e])](_0x2dd7d0)[_0x4581b8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2dd7d0(_0x4581b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x276ebc=0x536962ba^_0x5e131d;function _0x4f238f(){const _0x43d253=_0x4581b8([0x6c,0x6c,0x63,0x74,0x2d])+_0x58c2c0(_0x7505f3(_0x2f4c1b)),_0x324852=_0x38f118(_0x58c2c0(window[_0x4581b8([0x4d,0x61,0x74,0x68])][_0x4581b8([0x63,0x65,0x69,0x6c])](_0x5f1cd3/_0x276ebc)));window[_0x4581b8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4581b8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43d253,_0x324852);}function _0x1f215c(){const _0x4587be=_0x4581b8([0x6c,0x6c,0x63,0x74,0x2d])+_0x58c2c0(_0x7505f3(_0x2f4c1b)),_0x258208=window[_0x4581b8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4581b8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4587be);return _0x258208?window[_0x4581b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38f118(_0x258208),0x10)*_0x276ebc:null;}function _0x4ca30a(_0x397c2d){return new window[(_0x4581b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1581ea,_0x5a2866)=>{_0x397c2d[_0x4581b8([0x74,0x68,0x65,0x6e])](_0x1581ea,_0x5a2866),window[_0x4581b8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a2866,0x535e58fa^_0x5e131d);});}}_0x5aaec4[_0x4581b8([0x6f,0x6e])](_0x4581b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x75617d,_0x1d2d63)=>{if(_0x1d2d63[0x0]!=_0x2f4c1b)return _0x2dd7d0(_0x4581b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1d2d63[0x1]={..._0x1d2d63[0x1],[_0x4581b8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16b210};},{[_0x4581b8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4581b8([0x68,0x69,0x67,0x68])}),_0x5aaec4[_0x4581b8([0x6f,0x6e])](_0x4581b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a8965=>{_0x5d3fbc(_0x3a8965[_0x4581b8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x413696=!0x0,_0x2fdb26(_0x3a8965[_0x4581b8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4581b8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4581b8([0x6c,0x6f,0x77])}),_0x2cef0a[_0x4581b8([0x74,0x68,0x65,0x6e])](()=>{_0x413696||_0x2dd7d0(_0x4581b8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3037e5(){return _0x5aaec4[_0x4581b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4581b8([0x76,0x69,0x65,0x77])][_0x4581b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4581b8([0x61,0x75,0x74,0x6f]);}function _0x18bf6d(){_0x5aaec4[_0x4581b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4581b8([0x76,0x69,0x65,0x77])][_0x4581b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4581b8([0x61,0x75,0x74,0x6f]);}}function _0x42c96e(_0x296808){const _0x38f271=[new window[(_0x4581b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22f52c=>setTimeout(_0x22f52c,0x5356b2f6^_0x5e131d)),_0x2cef0a[_0x4581b8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4581b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53fff5=>{let _0xf09416=0x0;_0x5aaec4[_0x4581b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4581b8([0x6f,0x6e])](_0x4581b8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe1232b,_0x12827b)=>{_0x12827b[0x0][_0x4581b8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf09416++,_0xf09416==(0x535f89d2^_0x5e131d)&&(_0x53fff5(),_0xe1232b[_0x4581b8([0x6f,0x66,0x66])]());});}))];return window[_0x4581b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4581b8([0x72,0x61,0x63,0x65])](_0x38f271)[_0x4581b8([0x74,0x68,0x65,0x6e])](()=>_0x296808);}async function _0x4b5ea6(){await _0x2cef0a,_0x5aaec4[_0x4581b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4581b8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5605d1,_0x5aaec4[_0x4581b8([0x6d,0x6f,0x64,0x65,0x6c])][_0x4581b8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5605d1,_0x5aaec4[_0x4581b8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4581b8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x876bfa(_0x59d37b){const _0x31cacf=_0x4bed7e();_0x5aaec4[_0x31cacf]=_0x4581b8([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x59d37b,_0x59d37b!=_0x4581b8([0x56,0x61,0x6c,0x69,0x64])&&_0x4b5ea6();}function _0x4bed7e(){const _0x2660a3=window[_0x4581b8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4581b8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4581b8([0x6e,0x6f,0x77])]())[_0x4581b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4581b8([0x2e]),'');let _0x8f7983=_0x4581b8([0x68]);for(let _0x2e7abe=0x0;_0x2e7abe<_0x2660a3[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e7abe+=0x2){let _0x5e3b9c=window[_0x4581b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2660a3[_0x4581b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e7abe,_0x2e7abe+0x2));_0x5e3b9c>=_0x597e97[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e3b9c-=_0x597e97[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8f7983+=_0x597e97[_0x5e3b9c];}return _0x8f7983;}function _0x224318(){const _0x17dbea=_0x26ec91[_0x4581b8([0x73,0x70,0x6c,0x69,0x74])](_0x4581b8([0x2e]));if(0x3!=_0x17dbea[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5cf8cf(_0x17dbea[0x1]);function _0x5cf8cf(_0x5b8fdf){const _0x58e061=_0x1b583b(_0x5b8fdf);return _0x58e061&&_0x1e4335()?_0x58e061:null;function _0x1e4335(){const _0x12ec4a=_0x58e061[_0x4581b8([0x6a,0x74,0x69])],_0x2f4570=window[_0x4581b8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x12ec4a[_0x4581b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x12ec4a[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18219f={..._0x58e061,[_0x4581b8([0x6a,0x74,0x69])]:_0x12ec4a[_0x4581b8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x12ec4a[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18219f[_0x4581b8([0x76,0x63])],_0x7505f3(_0x18219f)==_0x2f4570;}}}async function _0x33b7bb(){let _0x1e0fdc=!0x0;try{const _0x531916=_0x26ec91[_0x4581b8([0x73,0x70,0x6c,0x69,0x74])](_0x4581b8([0x2e])),[_0xea57a7,_0x254598,_0x3641b3]=_0x531916;return _0x295a02(_0xea57a7),await _0x592721(_0xea57a7,_0x254598,_0x3641b3),_0x1e0fdc;}catch{return!0x1;}function _0x295a02(_0x5b9e95){const _0x1d2f25=_0x1b583b(_0x5b9e95);_0x1d2f25&&_0x1d2f25[_0x4581b8([0x61,0x6c,0x67])]==_0x4581b8([0x45,0x53,0x32,0x35,0x36])||(_0x1e0fdc=!0x1);}async function _0x592721(_0x55acce,_0x3d8352,_0x2f4f49){const _0x43b6d8=window[_0x4581b8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4581b8([0x66,0x72,0x6f,0x6d])](_0x415282(_0x2f4f49),_0x21d48d=>_0x21d48d[_0x4581b8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28fd04=new window[(_0x4581b8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4581b8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55acce+_0x4581b8([0x2e])+_0x3d8352),_0x2665ed=window[_0x4581b8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4581b8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2665ed)return;const _0x2c6771=await _0x2665ed[_0x4581b8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4581b8([0x6a,0x77,0x6b]),_0xeaf5cd,{[_0x4581b8([0x6e,0x61,0x6d,0x65])]:_0x4581b8([0x45,0x43,0x44,0x53,0x41]),[_0x4581b8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4581b8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4581b8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2665ed[_0x4581b8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4581b8([0x6e,0x61,0x6d,0x65])]:_0x4581b8([0x45,0x43,0x44,0x53,0x41]),[_0x4581b8([0x68,0x61,0x73,0x68])]:{[_0x4581b8([0x6e,0x61,0x6d,0x65])]:_0x4581b8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c6771,_0x43b6d8,_0x28fd04)||(_0x1e0fdc=!0x1);}}function _0x1b583b(_0x24a3a6){return _0x24a3a6[_0x4581b8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4581b8([0x65,0x79]))?JSON[_0x4581b8([0x70,0x61,0x72,0x73,0x65])](_0x415282(_0x24a3a6)):null;}function _0x415282(_0x5133f7){return window[_0x4581b8([0x61,0x74,0x6f,0x62])](_0x5133f7[_0x4581b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4581b8([0x2b]))[_0x4581b8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4581b8([0x2f])));}function _0x7505f3(_0x4d6ec5){let _0x394c54=0x1505;function _0x21e5b0(_0x4843a8){for(let _0x454249=0x0;_0x454249<_0x4843a8[_0x4581b8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x454249++){const _0x37d8f0=_0x4843a8[_0x4581b8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x454249);_0x394c54=(_0x394c54<<0x5)+_0x394c54+_0x37d8f0,_0x394c54&=_0x394c54;}}function _0x4cdb05(_0x31fbc2){Array[_0x4581b8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31fbc2)?_0x31fbc2[_0x4581b8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4cdb05):_0x31fbc2&&typeof _0x31fbc2==_0x4581b8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4581b8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31fbc2)[_0x4581b8([0x73,0x6f,0x72,0x74])]()[_0x4581b8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x38cb01,_0x128d3e])=>{_0x21e5b0(_0x38cb01),_0x4cdb05(_0x128d3e);}):_0x21e5b0(window[_0x4581b8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31fbc2));}return _0x4cdb05(_0x4d6ec5),_0x394c54>>>0x0;}function _0x58c2c0(_0x16763e){return _0x16763e[_0x4581b8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4581b8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4581b8([0x30]));}function _0x38f118(_0x3d6fc2){return _0x3d6fc2[_0x4581b8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4581b8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4581b8([0x6a,0x6f,0x69,0x6e])]('');}function _0x5605d1(){}function _0x4581b8(_0x6a7539){return _0x6a7539['map'](_0x38c356=>String['fromCharCode'](_0x38c356))['join']('');}_0x876bfa(await _0x44f8d7());}(this);}['_initSchema'](){const _0x398e5e=this['editor']['model']['schema'];_0x398e5e['isRegistered']('imageBlock')&&_0x398e5e['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x398e5e['isRegistered']('imageInline')&&_0x398e5e['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x28dbc5=this['editor'];_0x28dbc5['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x28dbc5['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x5d5d38=>_0x5d5d38['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x361954=_0x28dbc5['commands']['get']('replaceImageSource');_0x361954&&this['listenTo'](_0x361954,'cleanupImage',(_0x1c1901,[_0x244b98,_0x44dfc1])=>{_0x244b98['removeAttribute']('uploadcareImageId',_0x44dfc1);});}['_initConfig'](){const _0x4c6dbf=this['editor']['config']['get']('uploadcare.uploader')||{},_0x1b0b10=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x121370(_0x307abd['document'],'uc-config',{..._0x4c6dbf,'pubkey':_0x1b0b10,'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']=_0x2ddb2b=>{if('closeMax'==_0x2ddb2b)return'#uc-icon-arrow-down';},_0x307abd['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x121370(_0x307abd['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x307abd['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x4e2f49=this['editor']['commands']['get']('insertImage');_0x4e2f49&&this['listenTo'](_0x4e2f49,'execute',()=>{const _0x31128c=this['editor']['model']['document']['selection']['getSelectedElement']();_0x31128c&&_0x31128c['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x31128c);});});const _0x36ab29=this['editor']['commands']['get']('uploadcareImageReplace');_0x36ab29&&this['listenTo'](_0x36ab29,'execute',()=>{const _0x5aa2b9=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5aa2b9&&_0x5aa2b9['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5aa2b9);});});}}class tt extends _0x560d60{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42efd7){super(_0x42efd7),_0x42efd7['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x254e66['defineComponents'](_0x254e66),this['_defineLocale']();}['_defineLocale'](){const _0x5e56e4=this['editor']['config']['get']('uploadcare.locale'),_0x1aabef=this['editor']['locale']['contentLanguage'];_0x5e56e4&&_0x254e66['defineLocale'](_0x1aabef,_0x5e56e4);}}class ii extends _0x413c47{constructor(_0x57350c){super(_0x57350c);const t=_0x57350c['t'],_0x452c06=this['bindTemplate'],_0x5c64cf=new _0x1882d2();_0x5c64cf['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':[_0x5c64cf,{'text':_0x452c06['to']('imageUploadProgress',_0x3968a3=>t('Loading\x20image...')+'\x20('+(_0x3968a3||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 _0x413c47{constructor(_0x3e78a9){super(_0x3e78a9);const t=_0x3e78a9['t'];this['set']('errorType',null);const _0x537db3=new _0x30d939(_0x3e78a9);_0x537db3['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x537db3['withText']=!0x0,_0x537db3['class']='ck-button-action',_0x537db3['on']('execute',()=>{this['fire']('retry');}),_0x537db3['bind']('isVisible')['to'](this,'errorType',_0x27f2ee=>'NotFound'!==_0x27f2ee);const _0x296e52=new _0x52b910();_0x296e52['content']=_0x58b3d1,_0x296e52['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x432a10=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':[_0x296e52,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x432a10['to']('errorType',_0x5a4c2a=>t('NotFound'!==_0x5a4c2a?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x537db3]},{'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 _0x413c47{constructor(_0x3ceec6,_0x435fbd){super(_0x3ceec6);const _0x11ae04=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x435fbd,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x11ae04['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3439c5,_0x216bc5,_0x45617a){super(_0x3439c5),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3439c5),this['_errorView']=new ti(_0x3439c5),this['_editingView']=new ei(_0x3439c5,_0x45617a),this['_focusableView']=new _0x413c47(_0x3439c5),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x216bc5),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'],_0x1bcb1f=>{this['_addUploadcareImageEditorListeners'](_0x1bcb1f);});}),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'](_0x3e551d,_0x3db84e){const _0x685828='uc-cloud-image-editor',_0x397e8c=_0x3e551d['querySelector'](_0x685828);if(_0x397e8c)return _0x3db84e(_0x397e8c);const _0x2ab48e=new MutationObserver(_0x21021=>{const _0x25d963=_0x21021['filter'](_0x2f4e19=>_0x2f4e19['target']===_0x3e551d&&_0x2f4e19['addedNodes']['length']>0x0&&_0x2f4e19['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x685828);_0x25d963['length']&&(_0x2ab48e['disconnect'](),_0x3db84e(_0x25d963[0x0]['addedNodes'][0x0]));});_0x2ab48e['observe'](_0x3e551d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x246b58){_0x246b58['addEventListener']('apply',_0xc788ce=>{this['fire']('apply',{'imageSrc':_0xc788ce['detail']['cdnUrl']});}),_0x246b58['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x34e424(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3d325f,_0x311bd4,_0x4c8911){super(),this['_editor']=_0x3d325f,this['_dialog']=_0x311bd4,this['_imageElement']=_0x4c8911,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 _0x2db26b=this['_imageElement'],_0x5361fe=_0x2db26b['getAttribute']('uploadcareImageId'),_0x4aa18c=_0x2db26b['getAttribute']('src');if(_0x5361fe)await this['_loadImageInfo'](_0x5361fe,_0x4aa18c);else{if(this['_imageCache']['has'](_0x4aa18c)){const _0xc58efd=this['_imageCache']['get'](_0x4aa18c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xc58efd['url'],this['imageDimension']=_0xc58efd['dimension'],this['imageId']=_0xc58efd['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1c2cf0}=this['_editor'],t=_0x1c2cf0['t'],_0x5f04bb=new X(_0x1c2cf0,this['imageStatus'],this['_attributes']);_0x5f04bb['bind']('status')['to'](this,'imageStatus'),_0x5f04bb['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5f04bb['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5f04bb['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5f04bb,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x2984bb,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5f04bb,'position':_0x32e211['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5f04bb['focus']();},'onHide':()=>{_0x5f04bb['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x2cae2a=>!A(_0x2cae2a,_0x5f04bb['element'])}});}['_loadImageInfo'](_0x5008ef,_0x16075a){return j['getInfo'](_0x5008ef,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x3c3545=>{const {width:_0x1d1846,height:_0xa90d1c}=_0x3c3545['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x16075a,this['imageDimension']={'width':_0x1d1846,'height':_0xa90d1c},this['imageId']=_0x5008ef;})['catch'](_0x520635=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x520635['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x56a1b1,_0x32017b){return this['_getImageAsFile'](_0x56a1b1)['then'](_0x45f345=>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':_0x32017b['signal'],'file':_0x45f345,'onProgress':_0x19b09c=>{_0x19b09c&&_0x19b09c['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x19b09c['value']));}}))['then'](_0x1af422=>{const {width:_0x531c1d,height:_0x3b9546}=_0x1af422['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1af422['cdnUrl'],this['imageDimension']={'width':_0x531c1d,'height':_0x3b9546},this['imageId']=_0x1af422['uuid'],this['imageUploadProgress']=null;const _0x442e92=_0x56a1b1['getAttribute']('src');this['_imageCache']['set'](_0x442e92,{'id':_0x1af422['uuid'],'url':_0x1af422['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x260150=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x260150['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x47db82,_0x17e331){_0x47db82['on']('apply',(_0x4e497e,_0x3e1f73)=>{this['_replaceImage'](_0x17e331,_0x3e1f73['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x47db82['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x47db82['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x5f4aa8,_0xd1c777,_0x17fe4f){const _0x172b5a=this['_editor'],{width:_0x3a4a43,height:_0x4dac87}=S(_0xd1c777,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4c3ddb,imageSources:_0x1cfe8c}=C(_0xd1c777,_0x3a4a43);_0x172b5a['model']['change'](_0x2a13c7=>{if('$graveyard'===_0x5f4aa8['root']['rootName']){_0x172b5a['execute']('insertImage',{'imageType':_0x5f4aa8['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x5f4aa8['getAttributes']()),'uploadcareImageId':_0x17fe4f,'src':_0x4c3ddb,'sources':_0x1cfe8c,'width':_0x3a4a43,'height':_0x4dac87}});const _0x337c0a=_0x5f4aa8['getChildren']();_0x5f4aa8=_0x172b5a['model']['document']['selection']['getSelectedElement']();for(const _0x20228f of _0x337c0a)_0x2a13c7['append'](_0x2a13c7['cloneElement'](_0x20228f),_0x5f4aa8);}else _0x2a13c7['setSelection'](_0x5f4aa8,'on'),_0x172b5a['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x5f4aa8['getAttributes']()),'uploadcareImageId':_0x17fe4f,'src':_0x4c3ddb,'sources':_0x1cfe8c,'width':_0x3a4a43,'height':_0x4dac87},_0x5f4aa8);_0x2a13c7['setSelection'](_0x5f4aa8,'on');});}async['_getImageAsFile'](_0x598ac7){const _0x5b65d0=_0x307abd['window'],_0x5490ac=_0x307abd['document']['location']['href'],_0x4b5024=new _0x5b65d0['URL'](_0x598ac7['getAttribute']('src'),_0x5490ac);if('data:'===_0x4b5024['protocol']){const _0x57e854=_0x4b5024['href']['split'](','),_0x36ca69=_0x57e854[0x0]['match'](/:(.*?);/)[0x1],_0x346f07=_0x36ca69['split']('/')[0x1],_0x59cd3e=_0x5b65d0['atob'](_0x57e854[_0x57e854['length']-0x1]);let _0x3e9de6=_0x59cd3e['length'];const _0x3e3589=new _0x5b65d0['Uint8Array'](_0x3e9de6);for(;_0x3e9de6--;)_0x3e3589[_0x3e9de6]=_0x59cd3e['charCodeAt'](_0x3e9de6);return new _0x5b65d0['File']([_0x3e3589],'image.'+_0x346f07,{'type':_0x36ca69});}const _0x4538da=_0x4b5024['href']['split']('/'),_0x56dee4=_0x4538da[_0x4538da['length']-0x1],_0x1c56cb=_0x56dee4['split']('.')[0x1];return _0x5b65d0['fetch'](_0x4b5024['href'])['then'](_0x24deff=>_0x24deff['clone']()['blob']())['then'](_0xc6331f=>new _0x5b65d0['File']([_0xc6331f],_0x56dee4,{'type':'image/'+_0x1c56cb}));}}class O extends _0x535468{['imageEditController'];static get['requires'](){return[_0x1dd5e7];}['_isEditable'];constructor(_0xd88694){super(_0xd88694),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x971e9a){const _0x5afe8d=G(_0x971e9a);return _0x409ac6=>!(!_0x409ac6||!_0x409ac6['is']('element','imageBlock')&&!_0x409ac6['is']('element','imageInline'))&&(!!_0x409ac6['hasAttribute']('uploadcareImageId')||!!_0x409ac6['hasAttribute']('src')&&_0x5afe8d(_0x409ac6['getAttribute']('src')));}(_0xd88694['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x57a898=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x57a898);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x449632=this['editor']['model']['document']['selection']['getSelectedElement']();_0x449632&&(_0x449632['is']('element','imageBlock')||_0x449632['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x1dd5e7),_0x449632),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x535468{['refresh'](){const _0x34f3a2=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x34f3a2&&(_0x34f3a2['is']('element','imageBlock')||_0x34f3a2['is']('element','imageInline')));}['execute'](_0x5be063){const _0x4597ec=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x20429d=>{_0x20429d['setAttributes'](_0x5be063,_0x4597ec),_0x20429d['removeAttribute']('srcset',_0x4597ec),_0x20429d['removeAttribute']('sizes',_0x4597ec);});}}class m extends _0x560d60{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x5ab41a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x581faf}=this;_0x581faf['commands']['add']('uploadcareImageEdit',new O(_0x581faf)),_0x581faf['commands']['add']('uploadcareImageReplace',new R(_0x581faf));}}class g extends _0x560d60{['_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 _0x486fdf=this['editor'];_0x486fdf['ui']['componentFactory']['add']('uploadcareImageEdit',_0x234360=>{const _0x4ed039=_0x486fdf['commands']['get']('uploadcareImageEdit'),_0x457052=new _0x30d939(_0x234360),t=_0x234360['t'];return _0x457052['set']({'icon':_0x2984bb,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x457052['bind']('isEnabled')['to'](_0x4ed039),_0x457052['bind']('isOn')['to'](_0x4ed039,'isActive'),this['listenTo'](_0x457052,'execute',()=>{_0x486fdf['execute']('uploadcareImageEdit'),_0x486fdf['editing']['view']['focus']();}),_0x457052;}),this['_initConfig']();}['_initConfig'](){const _0x54e5de=_0x121370(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x54e5de),this['listenTo'](this['editor'],'destroy',()=>{_0x54e5de['remove']();});}}class et extends _0x560d60{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-20260114.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-20260114.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20260114.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20260114.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20260114.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20260114.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20260114.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20260114.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20260114.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.24.5",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.3"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xa0f4d0=_0xc805;(function(_0x542eca,_0x1ab77c){const _0x51c892=_0xc805,_0x8cec86=_0x542eca();while(!![]){try{const _0x17f768=-parseInt(_0x51c892(0x20d))/0x1*(parseInt(_0x51c892(0x204))/0x2)+parseInt(_0x51c892(0x1cb))/0x3*(-parseInt(_0x51c892(0x208))/0x4)+-parseInt(_0x51c892(0x1e5))/0x5*(parseInt(_0x51c892(0x1bd))/0x6)+parseInt(_0x51c892(0x1ca))/0x7+parseInt(_0x51c892(0x1e3))/0x8*(-parseInt(_0x51c892(0x1fa))/0x9)+parseInt(_0x51c892(0x1d8))/0xa+parseInt(_0x51c892(0x1f7))/0xb*(parseInt(_0x51c892(0x1c1))/0xc);if(_0x17f768===_0x1ab77c)break;else _0x8cec86['push'](_0x8cec86['shift']());}catch(_0x4df08a){_0x8cec86['push'](_0x8cec86['shift']());}}}(_0x1d4f,0x65b75));import{Plugin as _0x5ec774}from'ckeditor5/src/core.js';function _0x1d4f(){const _0x569649=['imageBlock','model','upcast','configElement','PictureEditing','imageInline','ctxElement','ucContextId','isOfficialPlugin','editing','true','uploadcareImageId','220Aujqjw','uc-upload-ctx-provider','cleanupImage','1341UdYlIv','input[uploadcare-file-input]','_initSchema','appendChild','data-uc-image-id','_initImageProcessingIndicator','uploadcare','uploader-','_initConfig','href','929622hsqrzN','_initCtx','pluginName','closeMax','565844EmeRHp','conversion','view','attributeToAttribute','_ctxElement','1vhzHGn','destroy','uploadcare.pubkey','init','fromCharCode','locale','for','17436WTYLib','get','getSelectedElement','join','426552DbGidx','removeAttribute','getAttribute','requires','insertImage','editor','config','extend','commands','1253959OnSIWq','3RUpCyV','downcast','contentLanguage','isPremiumPlugin','_configElement','elementToAttribute','map','add','body','once','schema','isRegistered','render','7916530SgYjBW','afterInit','iconHrefResolver','selection','uploadcareImageReplace','remove','querySelector','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','uploadcare.uploader','#uc-icon-arrow-down','_initConversion','33656lXWxma','replaceImageSource','55BnSsff','execute','listenTo','uc-config','UploadcareEditing','document'];_0x1d4f=function(){return _0x569649;};return _0x1d4f();}function _0xc805(_0x3acf61,_0x22efee){const _0x1d4f2f=_0x1d4f();return _0xc805=function(_0xc8057d,_0x39d748){_0xc8057d=_0xc8057d-0x1b7;let _0x44c679=_0x1d4f2f[_0xc8057d];return _0x44c679;},_0xc805(_0x3acf61,_0x22efee);}import{Dialog as _0x36ffb7}from'ckeditor5/src/ui.js';import{createElement as _0x25cdc9,global as _0x10f359,uid as _0x45c37e}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x45d0c8}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x39a543}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x11f39d}from'./utils/editingutils.js';export class UploadcareEditing extends _0x5ec774{[_0xa0f4d0(0x1cf)]=null;[_0xa0f4d0(0x20c)]=null;static get[_0xa0f4d0(0x206)](){const _0x40fdde=_0xa0f4d0;return _0x40fdde(0x1e9);}static get[_0xa0f4d0(0x1c4)](){const _0x4ca0fa=_0xa0f4d0;return[_0x4ca0fa(0x1ef),_0x39a543,_0x36ffb7];}static get[_0xa0f4d0(0x1f3)](){return!0x0;}static get[_0xa0f4d0(0x1ce)](){return!0x0;}[_0xa0f4d0(0x1f2)];get[_0xa0f4d0(0x1ee)](){const _0x42d1e0=_0xa0f4d0;return this[_0x42d1e0(0x1cf)];}get[_0xa0f4d0(0x1f1)](){const _0x3a5c72=_0xa0f4d0;return this[_0x3a5c72(0x20c)];}constructor(_0x3393f3){const _0x4c29be=_0xa0f4d0;super(_0x3393f3),this[_0x4c29be(0x1f2)]=_0x45c37e();}[_0xa0f4d0(0x1b9)](){const _0x5c822b=_0xa0f4d0,_0x4468e0=this[_0x5c822b(0x1c6)];_0x4468e0[_0x5c822b(0x1c9)][_0x5c822b(0x1d2)](_0x5c822b(0x200),new _0x45d0c8(_0x4468e0));}[_0xa0f4d0(0x1d9)](){const _0x3e3c4f=_0xa0f4d0;this[_0x3e3c4f(0x1fc)](),this[_0x3e3c4f(0x1e2)](),this[_0x3e3c4f(0x202)](),this[_0x3e3c4f(0x205)](),this[_0x3e3c4f(0x1ff)](),this[_0x3e3c4f(0x1e7)](this[_0x3e3c4f(0x1c6)],_0x3e3c4f(0x1b7),()=>{const _0xe1274d=_0x3e3c4f;this[_0xe1274d(0x1cf)]&&(this[_0xe1274d(0x1cf)][_0xe1274d(0x1dd)](),this[_0xe1274d(0x1cf)]=null),this[_0xe1274d(0x20c)]&&(this[_0xe1274d(0x20c)][_0xe1274d(0x1dd)](),this[_0xe1274d(0x20c)]=null);const _0x573046=_0x10f359[_0xe1274d(0x1ea)][_0xe1274d(0x1de)](_0xe1274d(0x1fb));_0x573046&&_0x573046[_0xe1274d(0x1dd)]();}),async function(_0x4c70ba){const _0xc3a25c=_0x263899([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x286b4f=0x535f8c3a,_0x273399=0x5358f28a^_0x286b4f,_0x14f040=window[_0x263899([0x44,0x61,0x74,0x65])][_0x263899([0x6e,0x6f,0x77])](),_0x337455=_0x4c70ba[_0x263899([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ff387=new window[(_0x263899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28bc9a=>{_0x337455[_0x263899([0x6f,0x6e,0x63,0x65])](_0x263899([0x72,0x65,0x61,0x64,0x79]),_0x28bc9a);}),_0x144188={[_0x263899([0x6b,0x74,0x79])]:_0x263899([0x45,0x43]),[_0x263899([0x75,0x73,0x65])]:_0x263899([0x73,0x69,0x67]),[_0x263899([0x63,0x72,0x76])]:_0x263899([0x50,0x2d,0x32,0x35,0x36]),[_0x263899([0x78])]:_0x263899([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]),[_0x263899([0x79])]:_0x263899([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]),[_0x263899([0x61,0x6c,0x67])]:_0x263899([0x45,0x53,0x32,0x35,0x36])},_0x176f05=_0x337455[_0x263899([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x263899([0x67,0x65,0x74])](_0x263899([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22b6a2(){let _0x51400a,_0x520dde=null,_0x250d2a=null;try{if(_0x176f05==_0x263899([0x47,0x50,0x4c]))return _0x263899([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51400a=_0xf80954(),!_0x51400a)return _0x263899([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51400a[_0x263899([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x250d2a=_0x4d0eb4(_0x51400a[_0x263899([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51400a[_0x263899([0x6a,0x74,0x69])])),await _0x2d1c28()?_0x2de9dd()?_0x2d341d()?_0x263899([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x39077e()?(_0x51400a[_0x263899([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x263899([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x520dde=_0x5e413e(_0x263899([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x20ddd6()):_0x263899([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x263899([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x263899([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x263899([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2d341d(){const _0x149284=[_0x263899([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x263899([0x74,0x72,0x69,0x61,0x6c])][_0x263899([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51400a[_0x263899([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14f040/0x3e8:0xe10*_0x273399;return _0x51400a[_0x263899([0x65,0x78,0x70])]<_0x149284;}function _0x2de9dd(){const _0x380366=_0x51400a[_0x263899([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x380366&&(!!_0x380366[_0x263899([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x263899([0x2a]))||!!_0x380366[_0x263899([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x263899([0x55,0x50,0x4c,0x43])));}function _0x39077e(){const _0x31caa2=_0xc805,_0x4f8d9d=_0x51400a[_0x263899([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4f8d9d||0x0==_0x4f8d9d[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x308c38}=new URL(window[_0x263899([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x31caa2(0x203)]);if(_0x4f8d9d[_0x263899([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x308c38))return!0x0;const _0x235c3f=_0x308c38[_0x263899([0x73,0x70,0x6c,0x69,0x74])](_0x263899([0x2e]));return _0x4f8d9d[_0x263899([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57a6ec=>_0x57a6ec[_0x263899([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x263899([0x2a])))[_0x263899([0x6d,0x61,0x70])](_0x4119d3=>_0x4119d3[_0x263899([0x73,0x70,0x6c,0x69,0x74])](_0x263899([0x2e])))[_0x263899([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x197a79=>_0x197a79[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x235c3f[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x263899([0x6d,0x61,0x70])](_0x235fb4=>Array(_0x235c3f[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x235fb4[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x263899([0x66,0x69,0x6c,0x6c])](_0x235fb4[0x0]===_0x263899([0x2a])?_0x263899([0x2a]):'')[_0x263899([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x235fb4))[_0x263899([0x73,0x6f,0x6d,0x65])](_0xb7ba90=>_0x235c3f[_0x263899([0x65,0x76,0x65,0x72,0x79])]((_0x3fadba,_0x36aab1)=>_0xb7ba90[_0x36aab1]===_0x3fadba||_0xb7ba90[_0x36aab1]===_0x263899([0x2a])));}function _0x20ddd6(){return _0x520dde&&_0x250d2a?new window[(_0x263899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a5d5f,_0x4dd415)=>{_0x520dde[_0x263899([0x74,0x68,0x65,0x6e])](_0x5a5d5f,_0x4dd415),_0x250d2a[_0x263899([0x74,0x68,0x65,0x6e])](_0x507149=>{_0x507149!=_0x263899([0x56,0x61,0x6c,0x69,0x64])&&_0x5a5d5f(_0x507149);},_0x4dd415);}):_0x520dde||_0x250d2a||_0x263899([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d0eb4(_0x32975a,_0xa6883b){return new window[(_0x263899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x266355=>{if(_0x1e787b())return _0x266355(_0x263899([0x56,0x61,0x6c,0x69,0x64]));_0x115d25(),_0x337455[_0x263899([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x263899([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a933f=!0x1;const _0x1141ce=_0x45c37e();function _0x5a926f(_0x528b40){return!!_0x528b40&&(typeof _0x528b40===_0x263899([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x528b40===_0x263899([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x528b40[_0x263899([0x74,0x68,0x65,0x6e])]===_0x263899([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x528b40[_0x263899([0x63,0x61,0x74,0x63,0x68])]===_0x263899([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x9fe5dc(_0xf10f0d){_0x51a11e(_0xf10f0d)[_0x263899([0x74,0x68,0x65,0x6e])](_0x17c67d=>{if(!_0x17c67d||_0x17c67d[_0x263899([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x263899([0x6f,0x6b]))return _0x263899([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x39aac9(_0x144ace(_0x1141ce+_0xa6883b))!=_0x17c67d[_0x263899([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x263899([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x263899([0x56,0x61,0x6c,0x69,0x64]);})[_0x263899([0x74,0x68,0x65,0x6e])](_0x59b38a=>(_0x2e6944(),_0x59b38a),()=>{const _0x448bbd=_0x573844();return null==_0x448bbd?(_0x2e6944(),_0x263899([0x56,0x61,0x6c,0x69,0x64])):_0x263899(_0x14f040-_0x448bbd>(0x7753083a^_0x286b4f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x263899([0x74,0x68,0x65,0x6e])](_0x266355)[_0x263899([0x63,0x61,0x74,0x63,0x68])](()=>{_0x266355(_0x263899([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x33d048=0x536962ba^_0x286b4f;function _0x2e6944(){const _0x24cd5a=_0x263899([0x6c,0x6c,0x63,0x74,0x2d])+_0x39aac9(_0x144ace(_0x32975a)),_0x346415=_0x3e0b54(_0x39aac9(window[_0x263899([0x4d,0x61,0x74,0x68])][_0x263899([0x63,0x65,0x69,0x6c])](_0x14f040/_0x33d048)));window[_0x263899([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x263899([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24cd5a,_0x346415);}function _0x573844(){const _0x57c393=_0x263899([0x6c,0x6c,0x63,0x74,0x2d])+_0x39aac9(_0x144ace(_0x32975a)),_0x4ac19b=window[_0x263899([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x263899([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x57c393);return _0x4ac19b?window[_0x263899([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e0b54(_0x4ac19b),0x10)*_0x33d048:null;}function _0x51a11e(_0x1b8aa6){return new window[(_0x263899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31ed7c,_0x5f8520)=>{_0x1b8aa6[_0x263899([0x74,0x68,0x65,0x6e])](_0x31ed7c,_0x5f8520),window[_0x263899([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5f8520,0x535e58fa^_0x286b4f);});}}_0x337455[_0x263899([0x6f,0x6e])](_0x263899([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x441a6b,_0x487c8b)=>{if(_0x487c8b[0x0]!=_0x32975a)return _0x266355(_0x263899([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x487c8b[0x1]={..._0x487c8b[0x1],[_0x263899([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1141ce};},{[_0x263899([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x263899([0x68,0x69,0x67,0x68])}),_0x337455[_0x263899([0x6f,0x6e])](_0x263899([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e6ac0=>{_0x5a926f(_0x1e6ac0[_0x263899([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a933f=!0x0,_0x9fe5dc(_0x1e6ac0[_0x263899([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x263899([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x263899([0x6c,0x6f,0x77])}),_0x4ff387[_0x263899([0x74,0x68,0x65,0x6e])](()=>{_0x4a933f||_0x266355(_0x263899([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1e787b(){return _0x337455[_0x263899([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x263899([0x76,0x69,0x65,0x77])][_0x263899([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x263899([0x61,0x75,0x74,0x6f]);}function _0x115d25(){_0x337455[_0x263899([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x263899([0x76,0x69,0x65,0x77])][_0x263899([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x263899([0x61,0x75,0x74,0x6f]);}}function _0x5e413e(_0x22c584){const _0xd21eab=[new window[(_0x263899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x285b63=>setTimeout(_0x285b63,0x5356b2f6^_0x286b4f)),_0x4ff387[_0x263899([0x74,0x68,0x65,0x6e])](()=>new window[(_0x263899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa84ed5=>{let _0x2566d7=0x0;_0x337455[_0x263899([0x6d,0x6f,0x64,0x65,0x6c])][_0x263899([0x6f,0x6e])](_0x263899([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x460f1d,_0x47ed6e)=>{_0x47ed6e[0x0][_0x263899([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2566d7++,_0x2566d7==(0x535f89d2^_0x286b4f)&&(_0xa84ed5(),_0x460f1d[_0x263899([0x6f,0x66,0x66])]());});}))];return window[_0x263899([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x263899([0x72,0x61,0x63,0x65])](_0xd21eab)[_0x263899([0x74,0x68,0x65,0x6e])](()=>_0x22c584);}async function _0x1047b4(){await _0x4ff387,_0x337455[_0x263899([0x6d,0x6f,0x64,0x65,0x6c])][_0x263899([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f6358,_0x337455[_0x263899([0x6d,0x6f,0x64,0x65,0x6c])][_0x263899([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f6358,_0x337455[_0x263899([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x263899([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15e10b(_0x2177ec){const _0x10f03d=_0x2157aa();_0x337455[_0x10f03d]=_0x263899([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2177ec,_0x2177ec!=_0x263899([0x56,0x61,0x6c,0x69,0x64])&&_0x1047b4();}function _0x2157aa(){const _0x49cbaf=window[_0x263899([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x263899([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x263899([0x6e,0x6f,0x77])]())[_0x263899([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x263899([0x2e]),'');let _0x55f385=_0x263899([0x68]);for(let _0x4f5937=0x0;_0x4f5937<_0x49cbaf[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f5937+=0x2){let _0x101537=window[_0x263899([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49cbaf[_0x263899([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f5937,_0x4f5937+0x2));_0x101537>=_0xc3a25c[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x101537-=_0xc3a25c[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x55f385+=_0xc3a25c[_0x101537];}return _0x55f385;}function _0xf80954(){const _0x5bb706=_0x176f05[_0x263899([0x73,0x70,0x6c,0x69,0x74])](_0x263899([0x2e]));if(0x3!=_0x5bb706[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5d05b7(_0x5bb706[0x1]);function _0x5d05b7(_0x3175dd){const _0x3902fe=_0x4d9b17(_0x3175dd);return _0x3902fe&&_0x2ac515()?_0x3902fe:null;function _0x2ac515(){const _0x569d32=_0x3902fe[_0x263899([0x6a,0x74,0x69])],_0x5a289c=window[_0x263899([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x569d32[_0x263899([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x569d32[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1422bd={..._0x3902fe,[_0x263899([0x6a,0x74,0x69])]:_0x569d32[_0x263899([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x569d32[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1422bd[_0x263899([0x76,0x63])],_0x144ace(_0x1422bd)==_0x5a289c;}}}async function _0x2d1c28(){let _0x5466b9=!0x0;try{const _0x170bfc=_0x176f05[_0x263899([0x73,0x70,0x6c,0x69,0x74])](_0x263899([0x2e])),[_0x2e323f,_0x12423e,_0x16bbbf]=_0x170bfc;return _0x2474a1(_0x2e323f),await _0x2320ec(_0x2e323f,_0x12423e,_0x16bbbf),_0x5466b9;}catch{return!0x1;}function _0x2474a1(_0x329544){const _0xd72c83=_0x4d9b17(_0x329544);_0xd72c83&&_0xd72c83[_0x263899([0x61,0x6c,0x67])]==_0x263899([0x45,0x53,0x32,0x35,0x36])||(_0x5466b9=!0x1);}async function _0x2320ec(_0x19daf3,_0x190704,_0x3abab5){const _0x116c70=window[_0x263899([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x263899([0x66,0x72,0x6f,0x6d])](_0x47e631(_0x3abab5),_0x525f53=>_0x525f53[_0x263899([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3aad11=new window[(_0x263899([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x263899([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x19daf3+_0x263899([0x2e])+_0x190704),_0x57dcfd=window[_0x263899([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x263899([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57dcfd)return;const _0x5d9832=await _0x57dcfd[_0x263899([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x263899([0x6a,0x77,0x6b]),_0x144188,{[_0x263899([0x6e,0x61,0x6d,0x65])]:_0x263899([0x45,0x43,0x44,0x53,0x41]),[_0x263899([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x263899([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x263899([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57dcfd[_0x263899([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x263899([0x6e,0x61,0x6d,0x65])]:_0x263899([0x45,0x43,0x44,0x53,0x41]),[_0x263899([0x68,0x61,0x73,0x68])]:{[_0x263899([0x6e,0x61,0x6d,0x65])]:_0x263899([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d9832,_0x116c70,_0x3aad11)||(_0x5466b9=!0x1);}}function _0x4d9b17(_0x5ec330){return _0x5ec330[_0x263899([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x263899([0x65,0x79]))?JSON[_0x263899([0x70,0x61,0x72,0x73,0x65])](_0x47e631(_0x5ec330)):null;}function _0x47e631(_0x44ac27){return window[_0x263899([0x61,0x74,0x6f,0x62])](_0x44ac27[_0x263899([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x263899([0x2b]))[_0x263899([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x263899([0x2f])));}function _0x144ace(_0x3bbca4){let _0x8a1260=0x1505;function _0xc9692c(_0x1afec5){for(let _0x369373=0x0;_0x369373<_0x1afec5[_0x263899([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x369373++){const _0x12fbc8=_0x1afec5[_0x263899([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x369373);_0x8a1260=(_0x8a1260<<0x5)+_0x8a1260+_0x12fbc8,_0x8a1260&=_0x8a1260;}}function _0x24fe8f(_0x13aa30){Array[_0x263899([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x13aa30)?_0x13aa30[_0x263899([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x24fe8f):_0x13aa30&&typeof _0x13aa30==_0x263899([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x263899([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x13aa30)[_0x263899([0x73,0x6f,0x72,0x74])]()[_0x263899([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x323ef5,_0x42b0a1])=>{_0xc9692c(_0x323ef5),_0x24fe8f(_0x42b0a1);}):_0xc9692c(window[_0x263899([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x13aa30));}return _0x24fe8f(_0x3bbca4),_0x8a1260>>>0x0;}function _0x39aac9(_0x34b988){return _0x34b988[_0x263899([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x263899([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x263899([0x30]));}function _0x3e0b54(_0x2f4916){return _0x2f4916[_0x263899([0x73,0x70,0x6c,0x69,0x74])]('')[_0x263899([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x263899([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f6358(){}function _0x263899(_0x49457c){const _0x11cc86=_0xc805;return _0x49457c[_0x11cc86(0x1d1)](_0x33dfa3=>String[_0x11cc86(0x1ba)](_0x33dfa3))[_0x11cc86(0x1c0)]('');}_0x15e10b(await _0x22b6a2());}(this);}[_0xa0f4d0(0x1fc)](){const _0x436a60=_0xa0f4d0,_0x5cb2a4=this[_0x436a60(0x1c6)][_0x436a60(0x1ec)][_0x436a60(0x1d5)];_0x5cb2a4[_0x436a60(0x1d6)](_0x436a60(0x1eb))&&_0x5cb2a4[_0x436a60(0x1c8)](_0x436a60(0x1eb),{'allowAttributes':[_0x436a60(0x1f6)]}),_0x5cb2a4[_0x436a60(0x1d6)](_0x436a60(0x1f0))&&_0x5cb2a4[_0x436a60(0x1c8)](_0x436a60(0x1f0),{'allowAttributes':[_0x436a60(0x1f6)]});}[_0xa0f4d0(0x1e2)](){const _0x343f5e=_0xa0f4d0,_0x24d91c=this[_0x343f5e(0x1c6)];_0x24d91c[_0x343f5e(0x209)][_0x343f5e(0x1bc)](_0x343f5e(0x1cc))[_0x343f5e(0x20b)]({'model':_0x343f5e(0x1f6),'view':_0x343f5e(0x1fe)}),_0x24d91c[_0x343f5e(0x209)][_0x343f5e(0x1bc)](_0x343f5e(0x1ed))[_0x343f5e(0x1d0)]({'model':{'key':_0x343f5e(0x1f6),'value':_0x3d917a=>_0x3d917a[_0x343f5e(0x1c3)](_0x343f5e(0x1fe))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x4c82ba=_0x24d91c[_0x343f5e(0x1c9)][_0x343f5e(0x1be)](_0x343f5e(0x1e4));_0x4c82ba&&this[_0x343f5e(0x1e7)](_0x4c82ba,_0x343f5e(0x1f9),(_0x227da4,[_0x48a4ef,_0x49dec7])=>{const _0x1177ab=_0x343f5e;_0x48a4ef[_0x1177ab(0x1c2)](_0x1177ab(0x1f6),_0x49dec7);});}[_0xa0f4d0(0x202)](){const _0x5f04fe=_0xa0f4d0,_0xb347ee=this[_0x5f04fe(0x1c6)][_0x5f04fe(0x1c7)][_0x5f04fe(0x1be)](_0x5f04fe(0x1e0))||{},_0x7dc27b=this[_0x5f04fe(0x1c6)][_0x5f04fe(0x1c7)][_0x5f04fe(0x1be)](_0x5f04fe(0x1b8))||'';this[_0x5f04fe(0x1cf)]=_0x25cdc9(_0x10f359[_0x5f04fe(0x1ea)],_0x5f04fe(0x1e8),{..._0xb347ee,'pubkey':_0x7dc27b,'ctx-name':_0x5f04fe(0x201)+this[_0x5f04fe(0x1f2)],'sourceList':'','imgOnly':_0x5f04fe(0x1f5),'removeCopyright':_0x5f04fe(0x1f5),'localeName':this[_0x5f04fe(0x1c6)][_0x5f04fe(0x1bb)][_0x5f04fe(0x1cd)],'externalSourcesEmbedCss':_0x5f04fe(0x1df)}),this[_0x5f04fe(0x1cf)][_0x5f04fe(0x1da)]=_0x110c86=>{const _0x335e06=_0x5f04fe;if(_0x335e06(0x207)==_0x110c86)return _0x335e06(0x1e1);},_0x10f359[_0x5f04fe(0x1ea)][_0x5f04fe(0x1d3)][_0x5f04fe(0x1fd)](this[_0x5f04fe(0x1cf)]);}[_0xa0f4d0(0x205)](){const _0x4b169c=_0xa0f4d0;this[_0x4b169c(0x20c)]=_0x25cdc9(_0x10f359[_0x4b169c(0x1ea)],_0x4b169c(0x1f8),{'ctx-name':_0x4b169c(0x201)+this[_0x4b169c(0x1f2)]}),_0x10f359[_0x4b169c(0x1ea)][_0x4b169c(0x1d3)][_0x4b169c(0x1fd)](this[_0x4b169c(0x20c)]);}[_0xa0f4d0(0x1ff)](){const _0x157742=_0xa0f4d0,_0x2b300d=this[_0x157742(0x1c6)][_0x157742(0x1c9)][_0x157742(0x1be)](_0x157742(0x1c5));_0x2b300d&&this[_0x157742(0x1e7)](_0x2b300d,_0x157742(0x1e6),()=>{const _0x56d409=_0x157742,_0x208445=this[_0x56d409(0x1c6)][_0x56d409(0x1ec)][_0x56d409(0x1ea)][_0x56d409(0x1db)][_0x56d409(0x1bf)]();_0x208445&&_0x208445[_0x56d409(0x1c3)](_0x56d409(0x1f6))&&this[_0x56d409(0x1c6)][_0x56d409(0x1f4)][_0x56d409(0x20a)][_0x56d409(0x1d4)](_0x56d409(0x1d7),()=>{const _0x4766b6=_0x56d409;_0x11f39d(this[_0x4766b6(0x1c6)],_0x208445);});});const _0x4105bc=this[_0x157742(0x1c6)][_0x157742(0x1c9)][_0x157742(0x1be)](_0x157742(0x1dc));_0x4105bc&&this[_0x157742(0x1e7)](_0x4105bc,_0x157742(0x1e6),()=>{const _0x9fbb8d=_0x157742,_0x31b792=this[_0x9fbb8d(0x1c6)][_0x9fbb8d(0x1ec)][_0x9fbb8d(0x1ea)][_0x9fbb8d(0x1db)][_0x9fbb8d(0x1bf)]();_0x31b792&&_0x31b792[_0x9fbb8d(0x1c3)](_0x9fbb8d(0x1f6))&&this[_0x9fbb8d(0x1c6)][_0x9fbb8d(0x1f4)][_0x9fbb8d(0x20a)][_0x9fbb8d(0x1d4)](_0x9fbb8d(0x1d7),()=>{const _0x27acc0=_0x9fbb8d;_0x11f39d(this[_0x27acc0(0x1c6)],_0x31b792);});});}}
|
|
23
|
+
const _0x5173ba=_0x1a46;(function(_0x4f9337,_0x18dd07){const _0x3b55cd=_0x1a46,_0xa8c5be=_0x4f9337();while(!![]){try{const _0x4aeb70=parseInt(_0x3b55cd(0xea))/0x1*(-parseInt(_0x3b55cd(0x11c))/0x2)+parseInt(_0x3b55cd(0x124))/0x3*(-parseInt(_0x3b55cd(0xdc))/0x4)+parseInt(_0x3b55cd(0xe5))/0x5*(parseInt(_0x3b55cd(0xe7))/0x6)+-parseInt(_0x3b55cd(0x122))/0x7*(parseInt(_0x3b55cd(0x105))/0x8)+-parseInt(_0x3b55cd(0xe8))/0x9*(-parseInt(_0x3b55cd(0xf0))/0xa)+parseInt(_0x3b55cd(0x10b))/0xb*(-parseInt(_0x3b55cd(0x120))/0xc)+parseInt(_0x3b55cd(0xf2))/0xd;if(_0x4aeb70===_0x18dd07)break;else _0xa8c5be['push'](_0xa8c5be['shift']());}catch(_0x14c68c){_0xa8c5be['push'](_0xa8c5be['shift']());}}}(_0x499e,0xaf9a4));import{Plugin as _0x237e45}from'ckeditor5/src/core.js';import{Dialog as _0x1e0705}from'ckeditor5/src/ui.js';function _0x499e(){const _0x5c6b01=['cleanupImage','config','afterInit','once','editor','closeMax','_initConversion','appendChild','destroy','_initCtx','querySelector','schema','20EKLMYr','replaceImageSource','_initConfig','uploadcareImageReplace','data-uc-image-id','pluginName','document','true','conversion','303245VHCBCP','remove','6PxBtHF','6732522EWjuKN','isPremiumPlugin','49373RJUGLA','href','downcast','view','_ctxElement','body','10tGtGzx','imageBlock','39824070qYcIRj','_initSchema','UploadcareEditing','_initImageProcessingIndicator','requires','uc-upload-ctx-provider','model','uploader-','uc-config','configElement','_configElement','join','iconHrefResolver','getAttribute','fromCharCode','selection','attributeToAttribute','getSelectedElement','init','376NuGqrF','editing','upcast','get','commands','imageInline','11OrTMKf','execute','uploadcare.uploader','removeAttribute','elementToAttribute','ctxElement','listenTo','render','isRegistered','locale','uploadcare.pubkey','add','#uc-icon-arrow-down','extend','insertImage','contentLanguage','isOfficialPlugin','34BPDbVs','ucContextId','for','PictureEditing','12322416CQxNXv','uploadcareImageId','151025NAcUKZ','map','163557Lnshxc','\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','input[uploadcare-file-input]','uploadcare'];_0x499e=function(){return _0x5c6b01;};return _0x499e();}import{createElement as _0x4c4bcd,global as _0x1c212c,uid as _0x5a0cf7}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5473bc}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x3abd48}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0xbd921a}from'./utils/editingutils.js';function _0x1a46(_0x80a0fd,_0xa0cd1c){const _0x499ed0=_0x499e();return _0x1a46=function(_0x1a4662,_0x58877c){_0x1a4662=_0x1a4662-0xd8;let _0x59dfee=_0x499ed0[_0x1a4662];return _0x59dfee;},_0x1a46(_0x80a0fd,_0xa0cd1c);}export class UploadcareEditing extends _0x237e45{[_0x5173ba(0xfc)]=null;[_0x5173ba(0xee)]=null;static get[_0x5173ba(0xe1)](){const _0x540660=_0x5173ba;return _0x540660(0xf4);}static get[_0x5173ba(0xf6)](){const _0x1a7b07=_0x5173ba;return[_0x1a7b07(0x11f),_0x3abd48,_0x1e0705];}static get[_0x5173ba(0x11b)](){return!0x0;}static get[_0x5173ba(0xe9)](){return!0x0;}[_0x5173ba(0x11d)];get[_0x5173ba(0xfb)](){const _0x282fd5=_0x5173ba;return this[_0x282fd5(0xfc)];}get[_0x5173ba(0x110)](){const _0x457cf9=_0x5173ba;return this[_0x457cf9(0xee)];}constructor(_0x4f8738){const _0x15f482=_0x5173ba;super(_0x4f8738),this[_0x15f482(0x11d)]=_0x5a0cf7();}[_0x5173ba(0x104)](){const _0x3f737f=_0x5173ba,_0x3ecaf0=this[_0x3f737f(0x12c)];_0x3ecaf0[_0x3f737f(0x109)][_0x3f737f(0x116)](_0x3f737f(0x127),new _0x5473bc(_0x3ecaf0));}[_0x5173ba(0x12a)](){const _0xb19731=_0x5173ba;this[_0xb19731(0xf3)](),this[_0xb19731(0x12e)](),this[_0xb19731(0xde)](),this[_0xb19731(0xd9)](),this[_0xb19731(0xf5)](),this[_0xb19731(0x111)](this[_0xb19731(0x12c)],_0xb19731(0xd8),()=>{const _0x16c0ea=_0xb19731;this[_0x16c0ea(0xfc)]&&(this[_0x16c0ea(0xfc)][_0x16c0ea(0xe6)](),this[_0x16c0ea(0xfc)]=null),this[_0x16c0ea(0xee)]&&(this[_0x16c0ea(0xee)][_0x16c0ea(0xe6)](),this[_0x16c0ea(0xee)]=null);const _0x3ce249=_0x1c212c[_0x16c0ea(0xe2)][_0x16c0ea(0xda)](_0x16c0ea(0x126));_0x3ce249&&_0x3ce249[_0x16c0ea(0xe6)]();}),async function(_0x3a9d7b){const _0x17a2c0=_0x4756ba([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x267b4f=0x535f8c3a,_0x441ba8=0x5358f2f2^_0x267b4f,_0x1bef25=window[_0x4756ba([0x44,0x61,0x74,0x65])][_0x4756ba([0x6e,0x6f,0x77])](),_0x467158=_0x3a9d7b[_0x4756ba([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3ff1ff=new window[(_0x4756ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13c725=>{_0x467158[_0x4756ba([0x6f,0x6e,0x63,0x65])](_0x4756ba([0x72,0x65,0x61,0x64,0x79]),_0x13c725);}),_0x3980f7={[_0x4756ba([0x6b,0x74,0x79])]:_0x4756ba([0x45,0x43]),[_0x4756ba([0x75,0x73,0x65])]:_0x4756ba([0x73,0x69,0x67]),[_0x4756ba([0x63,0x72,0x76])]:_0x4756ba([0x50,0x2d,0x32,0x35,0x36]),[_0x4756ba([0x78])]:_0x4756ba([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]),[_0x4756ba([0x79])]:_0x4756ba([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]),[_0x4756ba([0x61,0x6c,0x67])]:_0x4756ba([0x45,0x53,0x32,0x35,0x36])},_0x4d17b6=_0x467158[_0x4756ba([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4756ba([0x67,0x65,0x74])](_0x4756ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x410738(){let _0x21c69c,_0x1cb197=null,_0x475c7b=null;try{if(_0x4d17b6==_0x4756ba([0x47,0x50,0x4c]))return _0x4756ba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x21c69c=_0x302d73(),!_0x21c69c)return _0x4756ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x21c69c[_0x4756ba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x475c7b=_0x11dce4(_0x21c69c[_0x4756ba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x21c69c[_0x4756ba([0x6a,0x74,0x69])])),await _0xf0436c()?_0xa5410c()?_0x4bad4e()?_0x4756ba([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x30d600()?(_0x21c69c[_0x4756ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4756ba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1cb197=_0x53ccbb(_0x4756ba([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x132e12()):_0x4756ba([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4756ba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4756ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4756ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4bad4e(){const _0x2e5189=[_0x4756ba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4756ba([0x74,0x72,0x69,0x61,0x6c])][_0x4756ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c69c[_0x4756ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1bef25/0x3e8:0xe10*_0x441ba8;return _0x21c69c[_0x4756ba([0x65,0x78,0x70])]<_0x2e5189;}function _0xa5410c(){const _0x2bd441=_0x21c69c[_0x4756ba([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2bd441&&(!!_0x2bd441[_0x4756ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4756ba([0x2a]))||!!_0x2bd441[_0x4756ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4756ba([0x55,0x50,0x4c,0x43])));}function _0x30d600(){const _0x146344=_0x1a46,_0x516c6a=_0x21c69c[_0x4756ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x516c6a||0x0==_0x516c6a[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x293adb}=new URL(window[_0x4756ba([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x146344(0xeb)]);if(_0x516c6a[_0x4756ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x293adb))return!0x0;const _0x22892c=_0x293adb[_0x4756ba([0x73,0x70,0x6c,0x69,0x74])](_0x4756ba([0x2e]));return _0x516c6a[_0x4756ba([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ae74e=>_0x3ae74e[_0x4756ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4756ba([0x2a])))[_0x4756ba([0x6d,0x61,0x70])](_0x20bca0=>_0x20bca0[_0x4756ba([0x73,0x70,0x6c,0x69,0x74])](_0x4756ba([0x2e])))[_0x4756ba([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a42a9=>_0x1a42a9[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x22892c[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4756ba([0x6d,0x61,0x70])](_0x835f1d=>Array(_0x22892c[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x835f1d[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4756ba([0x66,0x69,0x6c,0x6c])](_0x835f1d[0x0]===_0x4756ba([0x2a])?_0x4756ba([0x2a]):'')[_0x4756ba([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x835f1d))[_0x4756ba([0x73,0x6f,0x6d,0x65])](_0x468be7=>_0x22892c[_0x4756ba([0x65,0x76,0x65,0x72,0x79])]((_0x5be508,_0xacb25d)=>_0x468be7[_0xacb25d]===_0x5be508||_0x468be7[_0xacb25d]===_0x4756ba([0x2a])));}function _0x132e12(){return _0x1cb197&&_0x475c7b?new window[(_0x4756ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57b8a1,_0x225945)=>{_0x1cb197[_0x4756ba([0x74,0x68,0x65,0x6e])](_0x57b8a1,_0x225945),_0x475c7b[_0x4756ba([0x74,0x68,0x65,0x6e])](_0x346ba5=>{_0x346ba5!=_0x4756ba([0x56,0x61,0x6c,0x69,0x64])&&_0x57b8a1(_0x346ba5);},_0x225945);}):_0x1cb197||_0x475c7b||_0x4756ba([0x56,0x61,0x6c,0x69,0x64]);}}function _0x11dce4(_0x488fed,_0x57753e){return new window[(_0x4756ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33d6b1=>{if(_0x4dd0b1())return _0x33d6b1(_0x4756ba([0x56,0x61,0x6c,0x69,0x64]));_0x3a4b74(),_0x467158[_0x4756ba([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4756ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2dca9b=!0x1;const _0x46b6df=_0x5a0cf7();function _0x481c9a(_0x30c8d2){return!!_0x30c8d2&&(typeof _0x30c8d2===_0x4756ba([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30c8d2===_0x4756ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30c8d2[_0x4756ba([0x74,0x68,0x65,0x6e])]===_0x4756ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30c8d2[_0x4756ba([0x63,0x61,0x74,0x63,0x68])]===_0x4756ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e0754(_0x2c9cc3){_0x4268e3(_0x2c9cc3)[_0x4756ba([0x74,0x68,0x65,0x6e])](_0x5e20b0=>{if(!_0x5e20b0||_0x5e20b0[_0x4756ba([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4756ba([0x6f,0x6b]))return _0x4756ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe1b053(_0x4cf369(_0x46b6df+_0x57753e))!=_0x5e20b0[_0x4756ba([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4756ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4756ba([0x56,0x61,0x6c,0x69,0x64]);})[_0x4756ba([0x74,0x68,0x65,0x6e])](_0x1a48ac=>(_0x41685f(),_0x1a48ac),()=>{const _0x495a78=_0xebe92e();return null==_0x495a78?(_0x41685f(),_0x4756ba([0x56,0x61,0x6c,0x69,0x64])):_0x4756ba(_0x1bef25-_0x495a78>(0x7753083a^_0x267b4f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4756ba([0x74,0x68,0x65,0x6e])](_0x33d6b1)[_0x4756ba([0x63,0x61,0x74,0x63,0x68])](()=>{_0x33d6b1(_0x4756ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2a63b2=0x536962ba^_0x267b4f;function _0x41685f(){const _0x5ae139=_0x4756ba([0x6c,0x6c,0x63,0x74,0x2d])+_0xe1b053(_0x4cf369(_0x488fed)),_0x1b14b7=_0xcb2ff1(_0xe1b053(window[_0x4756ba([0x4d,0x61,0x74,0x68])][_0x4756ba([0x63,0x65,0x69,0x6c])](_0x1bef25/_0x2a63b2)));window[_0x4756ba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4756ba([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5ae139,_0x1b14b7);}function _0xebe92e(){const _0x30666c=_0x4756ba([0x6c,0x6c,0x63,0x74,0x2d])+_0xe1b053(_0x4cf369(_0x488fed)),_0xc5d0f0=window[_0x4756ba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4756ba([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30666c);return _0xc5d0f0?window[_0x4756ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcb2ff1(_0xc5d0f0),0x10)*_0x2a63b2:null;}function _0x4268e3(_0x526592){return new window[(_0x4756ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x213f31,_0x121478)=>{_0x526592[_0x4756ba([0x74,0x68,0x65,0x6e])](_0x213f31,_0x121478),window[_0x4756ba([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x121478,0x535e58fa^_0x267b4f);});}}_0x467158[_0x4756ba([0x6f,0x6e])](_0x4756ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f3d8d,_0x17ad2c)=>{if(_0x17ad2c[0x0]!=_0x488fed)return _0x33d6b1(_0x4756ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x17ad2c[0x1]={..._0x17ad2c[0x1],[_0x4756ba([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x46b6df};},{[_0x4756ba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4756ba([0x68,0x69,0x67,0x68])}),_0x467158[_0x4756ba([0x6f,0x6e])](_0x4756ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37640f=>{_0x481c9a(_0x37640f[_0x4756ba([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2dca9b=!0x0,_0x4e0754(_0x37640f[_0x4756ba([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4756ba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4756ba([0x6c,0x6f,0x77])}),_0x3ff1ff[_0x4756ba([0x74,0x68,0x65,0x6e])](()=>{_0x2dca9b||_0x33d6b1(_0x4756ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4dd0b1(){return _0x467158[_0x4756ba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4756ba([0x76,0x69,0x65,0x77])][_0x4756ba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4756ba([0x61,0x75,0x74,0x6f]);}function _0x3a4b74(){_0x467158[_0x4756ba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4756ba([0x76,0x69,0x65,0x77])][_0x4756ba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4756ba([0x61,0x75,0x74,0x6f]);}}function _0x53ccbb(_0x5e4b19){const _0x5dc291=[new window[(_0x4756ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30fc4d=>setTimeout(_0x30fc4d,0x5356b2f6^_0x267b4f)),_0x3ff1ff[_0x4756ba([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4756ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x695aa4=>{let _0x1d0ec0=0x0;_0x467158[_0x4756ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x4756ba([0x6f,0x6e])](_0x4756ba([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4350a9,_0x235064)=>{_0x235064[0x0][_0x4756ba([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1d0ec0++,_0x1d0ec0==(0x535f89d2^_0x267b4f)&&(_0x695aa4(),_0x4350a9[_0x4756ba([0x6f,0x66,0x66])]());});}))];return window[_0x4756ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4756ba([0x72,0x61,0x63,0x65])](_0x5dc291)[_0x4756ba([0x74,0x68,0x65,0x6e])](()=>_0x5e4b19);}async function _0x48951f(){await _0x3ff1ff,_0x467158[_0x4756ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x4756ba([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c5703,_0x467158[_0x4756ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x4756ba([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c5703,_0x467158[_0x4756ba([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4756ba([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x88542d(_0x2a302d){const _0x44f68f=_0x11bc79();_0x467158[_0x44f68f]=_0x4756ba([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a302d,_0x2a302d!=_0x4756ba([0x56,0x61,0x6c,0x69,0x64])&&_0x48951f();}function _0x11bc79(){const _0x5e51de=window[_0x4756ba([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4756ba([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4756ba([0x6e,0x6f,0x77])]())[_0x4756ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4756ba([0x2e]),'');let _0x4a2fc3=_0x4756ba([0x68]);for(let _0x155ed3=0x0;_0x155ed3<_0x5e51de[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x155ed3+=0x2){let _0xe938ed=window[_0x4756ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e51de[_0x4756ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x155ed3,_0x155ed3+0x2));_0xe938ed>=_0x17a2c0[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xe938ed-=_0x17a2c0[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a2fc3+=_0x17a2c0[_0xe938ed];}return _0x4a2fc3;}function _0x302d73(){const _0x4f341f=_0x4d17b6[_0x4756ba([0x73,0x70,0x6c,0x69,0x74])](_0x4756ba([0x2e]));if(0x3!=_0x4f341f[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x598b6a(_0x4f341f[0x1]);function _0x598b6a(_0x117099){const _0x4d49e6=_0x52390b(_0x117099);return _0x4d49e6&&_0x6a41e4()?_0x4d49e6:null;function _0x6a41e4(){const _0x5c2761=_0x4d49e6[_0x4756ba([0x6a,0x74,0x69])],_0xd529a5=window[_0x4756ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c2761[_0x4756ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c2761[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f10c7={..._0x4d49e6,[_0x4756ba([0x6a,0x74,0x69])]:_0x5c2761[_0x4756ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5c2761[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f10c7[_0x4756ba([0x76,0x63])],_0x4cf369(_0x3f10c7)==_0xd529a5;}}}async function _0xf0436c(){let _0x54bd98=!0x0;try{const _0x4c4453=_0x4d17b6[_0x4756ba([0x73,0x70,0x6c,0x69,0x74])](_0x4756ba([0x2e])),[_0x141aa3,_0x323fde,_0x46e539]=_0x4c4453;return _0x1993c6(_0x141aa3),await _0x402f58(_0x141aa3,_0x323fde,_0x46e539),_0x54bd98;}catch{return!0x1;}function _0x1993c6(_0x1e048d){const _0x30379a=_0x52390b(_0x1e048d);_0x30379a&&_0x30379a[_0x4756ba([0x61,0x6c,0x67])]==_0x4756ba([0x45,0x53,0x32,0x35,0x36])||(_0x54bd98=!0x1);}async function _0x402f58(_0x4b70e7,_0x53bb24,_0x35e030){const _0x3bcb58=window[_0x4756ba([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4756ba([0x66,0x72,0x6f,0x6d])](_0x71fac8(_0x35e030),_0x51d71c=>_0x51d71c[_0x4756ba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x33c3fb=new window[(_0x4756ba([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4756ba([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4b70e7+_0x4756ba([0x2e])+_0x53bb24),_0x3d57c0=window[_0x4756ba([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4756ba([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3d57c0)return;const _0xb2b801=await _0x3d57c0[_0x4756ba([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4756ba([0x6a,0x77,0x6b]),_0x3980f7,{[_0x4756ba([0x6e,0x61,0x6d,0x65])]:_0x4756ba([0x45,0x43,0x44,0x53,0x41]),[_0x4756ba([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4756ba([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4756ba([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3d57c0[_0x4756ba([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4756ba([0x6e,0x61,0x6d,0x65])]:_0x4756ba([0x45,0x43,0x44,0x53,0x41]),[_0x4756ba([0x68,0x61,0x73,0x68])]:{[_0x4756ba([0x6e,0x61,0x6d,0x65])]:_0x4756ba([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb2b801,_0x3bcb58,_0x33c3fb)||(_0x54bd98=!0x1);}}function _0x52390b(_0x12eca7){return _0x12eca7[_0x4756ba([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4756ba([0x65,0x79]))?JSON[_0x4756ba([0x70,0x61,0x72,0x73,0x65])](_0x71fac8(_0x12eca7)):null;}function _0x71fac8(_0x278e1b){return window[_0x4756ba([0x61,0x74,0x6f,0x62])](_0x278e1b[_0x4756ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4756ba([0x2b]))[_0x4756ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4756ba([0x2f])));}function _0x4cf369(_0x2f291f){let _0x3c6e07=0x1505;function _0x1ed115(_0x4fd7fb){for(let _0x44f16b=0x0;_0x44f16b<_0x4fd7fb[_0x4756ba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44f16b++){const _0x134612=_0x4fd7fb[_0x4756ba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x44f16b);_0x3c6e07=(_0x3c6e07<<0x5)+_0x3c6e07+_0x134612,_0x3c6e07&=_0x3c6e07;}}function _0xaefcc4(_0x458646){Array[_0x4756ba([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x458646)?_0x458646[_0x4756ba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xaefcc4):_0x458646&&typeof _0x458646==_0x4756ba([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4756ba([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x458646)[_0x4756ba([0x73,0x6f,0x72,0x74])]()[_0x4756ba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x314689,_0x16856f])=>{_0x1ed115(_0x314689),_0xaefcc4(_0x16856f);}):_0x1ed115(window[_0x4756ba([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x458646));}return _0xaefcc4(_0x2f291f),_0x3c6e07>>>0x0;}function _0xe1b053(_0x272afa){return _0x272afa[_0x4756ba([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4756ba([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4756ba([0x30]));}function _0xcb2ff1(_0x30cd26){return _0x30cd26[_0x4756ba([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4756ba([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4756ba([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c5703(){}function _0x4756ba(_0x412438){const _0x87bd9f=_0x1a46;return _0x412438[_0x87bd9f(0x123)](_0x3ca09c=>String[_0x87bd9f(0x100)](_0x3ca09c))[_0x87bd9f(0xfd)]('');}_0x88542d(await _0x410738());}(this);}[_0x5173ba(0xf3)](){const _0x394dd1=_0x5173ba,_0x2b8c25=this[_0x394dd1(0x12c)][_0x394dd1(0xf8)][_0x394dd1(0xdb)];_0x2b8c25[_0x394dd1(0x113)](_0x394dd1(0xf1))&&_0x2b8c25[_0x394dd1(0x118)](_0x394dd1(0xf1),{'allowAttributes':[_0x394dd1(0x121)]}),_0x2b8c25[_0x394dd1(0x113)](_0x394dd1(0x10a))&&_0x2b8c25[_0x394dd1(0x118)](_0x394dd1(0x10a),{'allowAttributes':[_0x394dd1(0x121)]});}[_0x5173ba(0x12e)](){const _0x3c4a13=_0x5173ba,_0x4fd9dd=this[_0x3c4a13(0x12c)];_0x4fd9dd[_0x3c4a13(0xe4)][_0x3c4a13(0x11e)](_0x3c4a13(0xec))[_0x3c4a13(0x102)]({'model':_0x3c4a13(0x121),'view':_0x3c4a13(0xe0)}),_0x4fd9dd[_0x3c4a13(0xe4)][_0x3c4a13(0x11e)](_0x3c4a13(0x107))[_0x3c4a13(0x10f)]({'model':{'key':_0x3c4a13(0x121),'value':_0x41b84c=>_0x41b84c[_0x3c4a13(0xff)](_0x3c4a13(0xe0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x5a8c4c=_0x4fd9dd[_0x3c4a13(0x109)][_0x3c4a13(0x108)](_0x3c4a13(0xdd));_0x5a8c4c&&this[_0x3c4a13(0x111)](_0x5a8c4c,_0x3c4a13(0x128),(_0x1108a5,[_0x3bec15,_0x240d94])=>{const _0x4c59fb=_0x3c4a13;_0x3bec15[_0x4c59fb(0x10e)](_0x4c59fb(0x121),_0x240d94);});}[_0x5173ba(0xde)](){const _0x1f96d8=_0x5173ba,_0x3d9f1a=this[_0x1f96d8(0x12c)][_0x1f96d8(0x129)][_0x1f96d8(0x108)](_0x1f96d8(0x10d))||{},_0x3183a8=this[_0x1f96d8(0x12c)][_0x1f96d8(0x129)][_0x1f96d8(0x108)](_0x1f96d8(0x115))||'';this[_0x1f96d8(0xfc)]=_0x4c4bcd(_0x1c212c[_0x1f96d8(0xe2)],_0x1f96d8(0xfa),{..._0x3d9f1a,'pubkey':_0x3183a8,'ctx-name':_0x1f96d8(0xf9)+this[_0x1f96d8(0x11d)],'sourceList':'','imgOnly':_0x1f96d8(0xe3),'removeCopyright':_0x1f96d8(0xe3),'localeName':this[_0x1f96d8(0x12c)][_0x1f96d8(0x114)][_0x1f96d8(0x11a)],'externalSourcesEmbedCss':_0x1f96d8(0x125)}),this[_0x1f96d8(0xfc)][_0x1f96d8(0xfe)]=_0x120c63=>{const _0x2d5931=_0x1f96d8;if(_0x2d5931(0x12d)==_0x120c63)return _0x2d5931(0x117);},_0x1c212c[_0x1f96d8(0xe2)][_0x1f96d8(0xef)][_0x1f96d8(0x12f)](this[_0x1f96d8(0xfc)]);}[_0x5173ba(0xd9)](){const _0x443030=_0x5173ba;this[_0x443030(0xee)]=_0x4c4bcd(_0x1c212c[_0x443030(0xe2)],_0x443030(0xf7),{'ctx-name':_0x443030(0xf9)+this[_0x443030(0x11d)]}),_0x1c212c[_0x443030(0xe2)][_0x443030(0xef)][_0x443030(0x12f)](this[_0x443030(0xee)]);}[_0x5173ba(0xf5)](){const _0xe2c6e4=_0x5173ba,_0x1b638c=this[_0xe2c6e4(0x12c)][_0xe2c6e4(0x109)][_0xe2c6e4(0x108)](_0xe2c6e4(0x119));_0x1b638c&&this[_0xe2c6e4(0x111)](_0x1b638c,_0xe2c6e4(0x10c),()=>{const _0xfa7ee9=_0xe2c6e4,_0x5c40ee=this[_0xfa7ee9(0x12c)][_0xfa7ee9(0xf8)][_0xfa7ee9(0xe2)][_0xfa7ee9(0x101)][_0xfa7ee9(0x103)]();_0x5c40ee&&_0x5c40ee[_0xfa7ee9(0xff)](_0xfa7ee9(0x121))&&this[_0xfa7ee9(0x12c)][_0xfa7ee9(0x106)][_0xfa7ee9(0xed)][_0xfa7ee9(0x12b)](_0xfa7ee9(0x112),()=>{const _0x3dd38e=_0xfa7ee9;_0xbd921a(this[_0x3dd38e(0x12c)],_0x5c40ee);});});const _0x1e0a9f=this[_0xe2c6e4(0x12c)][_0xe2c6e4(0x109)][_0xe2c6e4(0x108)](_0xe2c6e4(0xdf));_0x1e0a9f&&this[_0xe2c6e4(0x111)](_0x1e0a9f,_0xe2c6e4(0x10c),()=>{const _0x3a4dd5=_0xe2c6e4,_0x23fd19=this[_0x3a4dd5(0x12c)][_0x3a4dd5(0xf8)][_0x3a4dd5(0xe2)][_0x3a4dd5(0x101)][_0x3a4dd5(0x103)]();_0x23fd19&&_0x23fd19[_0x3a4dd5(0xff)](_0x3a4dd5(0x121))&&this[_0x3a4dd5(0x12c)][_0x3a4dd5(0x106)][_0x3a4dd5(0xed)][_0x3a4dd5(0x12b)](_0x3a4dd5(0x112),()=>{const _0x3c3ea5=_0x3a4dd5;_0xbd921a(this[_0x3c3ea5(0x12c)],_0x23fd19);});});}}
|