@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250331.0 → 0.0.0-nightly-20250402.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 _0x4010c7,Command as _0x3dae3e}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x11d622,IconGooglePhotos as _0x5f1ded,IconGoogleDrive as _0x5ae396,IconFacebook as _0x4c7b33,IconDropbox as _0x48d373,IconUploadcareLink as _0x368abe,IconUploadcareImageUpload as _0x5832ee,IconError as et,IconUploadcareImageEdit as _0x543862}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2a3021,MenuBarMenuListItemButtonView as _0xaf96a1,View as _0xbb7b63,FocusCycler as _0x16fb38,Dialog as _0x14667d,DialogViewPosition as _0x28b575,SpinnerView as _0x3ccf28,IconView as at,Notification as _0x1aa3f8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x12662f,DomEmitterMixin as _0x131bcd,global as _0x3f3e3b,getAncestors as _0x41d5b4,ObservableMixin as _0x28dff0,createElement as _0x2de6a2,uid as _0xac372b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x2d3669}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1a6b96,info as _0x2e38be}from'@uploadcare/upload-client';import*as _0xb7c93a from'@uploadcare/file-uploader';var o=function(_0x363331){return _0x363331['Local']='local',_0x363331['URL']='url',_0x363331['Dropbox']='dropbox',_0x363331['GDrive']='gdrive',_0x363331['Facebook']='facebook',_0x363331['GPhotos']='gphotos',_0x363331['OneDrive']='onedrive',_0x363331;}({});function _(_0x1a7af8,_0x2d6993,_0x1f6fd4){const t=_0x1a7af8['t'],_0x4110d8=_0x1a7af8['t'];switch(_0x2d6993){case o['Local']:return{'text':_0x4110d8('Insert'===_0x1f6fd4?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4110d8('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x1f6fd4?_0x4110d8('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4110d8('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x1f6fd4?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x1f6fd4?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x1f6fd4?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x1f6fd4?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x1f6fd4?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2d6993;}}class e extends _0x4010c7{['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 _0x41a3ec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xc5b725;for(const _0x509f71 in _0x41a3ec){const _0x564930=_0x509f71,_0x293808=_0x41a3ec[_0x564930];if('uploadcareLicenseKeyValid'==_0x293808||'uploadcareLicenseKeyInvalid'==_0x293808||'uploadcareLicenseKeyExpired'==_0x293808||'uploadcareLicenseKeyDomainLimit'==_0x293808||'uploadcareLicenseKeyNotAllowed'==_0x293808||'uploadcareLicenseKeyEvaluationLimit'==_0x293808||'uploadcareLicenseKeyTrialLimit'==_0x293808||'uploadcareLicenseKeyUsageLimit'==_0x293808){delete _0x41a3ec[_0x564930],_0xc5b725=_0x293808,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xc5b725&&_0x41a3ec['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xc5b725&&_0x41a3ec['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xc5b725&&_0x41a3ec['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xc5b725&&_0x41a3ec['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xc5b725&&_0x41a3ec['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xc5b725&&_0x41a3ec['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xc5b725&&_0x41a3ec['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x10e24b}=this,_0x34ba9f=_0x10e24b['commands']['get']('uploadcare');if(!_0x34ba9f)return;const _0x54c766=this['_normalizeConfigSourceList'](_0x10e24b['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x3c19b9,_0x472f08)=>{const _0xfcf802=this['_getIntegrationKey'](_0x472f08['type']);return _0x3c19b9[_0xfcf802]||(_0x3c19b9[_0xfcf802]=[]),_0x3c19b9[_0xfcf802]['push'](_0x472f08),_0x3c19b9;},{});_0x10e24b['plugins']['has']('ImageInsertUI')&&_0x10e24b['commands']['get']('uploadcare')&&Object['entries'](_0x54c766)['forEach'](([_0x34f82c,_0x3058e0])=>{_0x10e24b['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x34f82c,'observable':()=>_0x34ba9f,'buttonViewCreator':()=>this['_createToolbarButton'](_0x3058e0),'formViewCreator':()=>this['_createDropdownButtons'](_0x3058e0),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x3058e0),'override':'assetManager'!==_0x34f82c});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x357918){const {locale:_0x58be12}=this['editor'];return _0x357918['map'](_0x1ca578=>{const _0x4abd06=_(_0x58be12,_0x1ca578,'Insert');switch(_0x1ca578){case o['Local']:return{'icon':_0x5832ee,'type':o['Local'],..._0x4abd06};case o['URL']:return{'icon':_0x368abe,'type':o['URL'],..._0x4abd06};case o['Dropbox']:return{'icon':_0x48d373,'type':o['Dropbox'],..._0x4abd06};case o['Facebook']:return{'icon':_0x4c7b33,'type':o['Facebook'],..._0x4abd06};case o['GDrive']:return{'icon':_0x5ae396,'type':o['GDrive'],..._0x4abd06};case o['GPhotos']:return{'icon':_0x5f1ded,'type':o['GPhotos'],..._0x4abd06};case o['OneDrive']:return{'icon':_0x11d622,'type':o['OneDrive'],..._0x4abd06};}});}['_getIntegrationKey'](_0x4738b2){switch(_0x4738b2){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x151f9f,_0x4bcbb4){const _0x50c66e=this['editor'],_0x48ceaa=new _0x151f9f(_0x50c66e['locale']),_0x4f89c1=_0x50c66e['commands']['get']('uploadcare');return _0x48ceaa['bind']('isEnabled')['to'](_0x4f89c1),_0x48ceaa['on']('execute',()=>{_0x4f89c1['execute'](_0x4bcbb4);}),_0x48ceaa;}['_createToolbarButton'](_0x425f74){const {locale:_0x346fee}=this['editor'],_0x1a763a=this['editor']['plugins']['get']('ImageInsertUI'),_0x26fb5b=_0x425f74[0x0],_0x14ace9=this['_createButton'](_0x2a3021,_0x26fb5b['type']);return _0x14ace9['icon']=_0x26fb5b['icon'],_0x14ace9['bind']('label')['to'](_0x1a763a,'isImageSelected',_0x3a5101=>_(_0x346fee,_0x26fb5b['type'],_0x3a5101?'Replace':'Insert')['text']),_0x14ace9['tooltip']=!0x0,_0x14ace9;}['_createDropdownButtons'](_0x437e5a){const {locale:_0x29c0b6}=this['editor'],_0x38195a=this['editor']['plugins']['get']('ImageInsertUI');return _0x437e5a['map'](_0x470ca9=>{const _0x42e998=this['_createButton'](_0x2a3021,_0x470ca9['type']);return _0x42e998['withText']=!0x0,_0x42e998['icon']=_0x470ca9['icon'],_0x42e998['bind']('label')['to'](_0x38195a,'isImageSelected',_0x4230b1=>_(_0x29c0b6,_0x470ca9['type'],_0x4230b1?'Replace':'Insert')['text']),_0x42e998;});}['_createMenuBarButtons'](_0x33fd46){return _0x33fd46['map'](_0x412cc5=>{const _0x371ec2=this['_createButton'](_0xaf96a1,_0x412cc5['type']);return _0x371ec2['icon']=_0x412cc5['icon'],_0x371ec2['label']=_0x412cc5['shortText'],_0x371ec2;});}}class q extends _0xbb7b63{['focusTracker'];['focusCycler'];constructor(_0x396f98){super(_0x396f98),this['focusTracker']=new _0x12662f(),this['focusCycler']=new _0x16fb38({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x472ff0){super(_0x472ff0),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x450b64,_0x28815b){const _0x2733f3=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x20338e=>_0x20338e<=_0x28815b)['map'](_0x10560a=>_0x450b64['replace'](/\/$/,'')+'/-/resize/'+_0x10560a+'x/\x20'+_0x10560a+'w');return{'imageFallbackUrl':_0x450b64,'imageSources':[{'srcset':_0x2733f3['join'](',\x20'),'sizes':'(max-width:\x20'+_0x28815b+'px)\x20100vw,\x20'+_0x28815b+'px','type':'image/webp'}]};}function A(_0x1ec631,_0x5f4439,_0x2ee434){const _0x50c9e5=_0x1ec631['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x50c9e5?parseInt(_0x50c9e5[0x1],0xa):_0x5f4439,'height':_0x50c9e5?parseInt(_0x50c9e5[0x2],0xa):_0x2ee434};}function m(_0xb03056,_0x4bd356){const _0x30df8b=Object['create'](_0x131bcd),_0x254b75=_0xb03056['plugins']['get']('ImageUtils'),_0x49b766=_0xb03056['editing']['mapper']['toViewElement'](_0x4bd356),_0x4ed2b2=_0x254b75['findViewImgElement'](_0x49b766),_0x43b7b0=_0xb03056['editing']['view']['domConverter']['viewToDom'](_0x4ed2b2),_0x21b3ec=_0x4bd356['getAttribute']('width'),_0xf072a1=_0x4bd356['getAttribute']('height'),_0x326772='image-processing';_0xb03056['editing']['view']['change'](_0x1a0466=>{_0x1a0466['addClass'](_0x326772,_0x49b766),_0x1a0466['setStyle']('aspect-ratio',_0x21b3ec+'/'+_0xf072a1,_0x4ed2b2);}),_0x30df8b['listenTo'](_0x43b7b0,'load',()=>{_0x30df8b['stopListening'](_0x43b7b0,'load'),_0xb03056['editing']['view']['change'](_0x4ace3f=>{_0x4ace3f['removeClass'](_0x326772,_0x49b766),_0x4ace3f['removeStyle']('aspect-ratio',_0x4ed2b2);});});}function V(_0x5bc2be){if(Array['isArray'](_0x5bc2be)){const _0x6408eb=_0x5bc2be['map'](V);return _0x478fe5=>_0x6408eb['some'](_0x4281c0=>_0x4281c0(_0x478fe5));}if('origin'==_0x5bc2be){const _0x58c216=_0x3f3e3b['window']['location']['origin'];return _0x140bd8=>new URL(_0x140bd8,_0x3f3e3b['document']['baseURI'])['origin']==_0x58c216;}return'function'==typeof _0x5bc2be?_0x5bc2be:_0x5bc2be instanceof RegExp?_0x4a0c7c=>!(!_0x4a0c7c['match'](_0x5bc2be)&&!_0x4a0c7c['replace'](/^https?:\/\//,'')['match'](_0x5bc2be)):()=>!0x1;}function F(_0x5784bc,_0x3b102c){return _0x41d5b4(_0x5784bc['target'])['includes'](_0x3b102c);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x28dff0(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x3f77aa,_0xa9bf0a,_0x195403){super(),this['_editor']=_0x3f77aa,this['_editing']=_0xa9bf0a,this['_dialog']=_0x3f77aa['plugins']['get'](_0x14667d),this['_api']=_0xa9bf0a['ctxElement']['getAPI'](),this['_type']=_0x195403,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:_0x5026d8,model:_0x10b6e0}=this['_editor'],_0x499c32=_0x10b6e0['document']['selection']['getSelectedElement'](),_0x537f77=_0x499c32&&(_0x499c32['is']('element','imageBlock')||_0x499c32['is']('element','imageInline'));this['_formView']=new S(_0x5026d8),this['_dialog']['show']({'id':'uploadCare','icon':_0x5832ee,'title':_(_0x5026d8,this['_type'],_0x537f77?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x28b575['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x28ee70=>!F(_0x28ee70,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x21682a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5098c5=>{const _0x1267d5=_0x21682a['length'];for(const _0x1acbba of _0x21682a){const _0x485243=_0x1acbba===_0x21682a[_0x1267d5-0x1],{cdnUrl:_0x58f839,fileInfo:_0x1294dd}=_0x1acbba;if(!_0x58f839||!_0x1294dd)continue;const {width:_0x5ca2b6,height:_0x1a276b}=_0x1294dd['imageInfo'],_0x2c7919=A(_0x58f839,_0x5ca2b6,_0x1a276b),_0x3fddb2=E(_0x58f839,_0x2c7919['width']),_0x5d1cc5={'id':_0x1294dd['uuid'],'type':'image','attributes':{'imageDimension':_0x2c7919,..._0x3fddb2}};this['_insertAsset'](_0x5d1cc5,_0x485243,_0x5098c5);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x411f4c=>{'idle'===_0x411f4c['detail']['status']&&!_0x411f4c['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x56410e,_0x1ff038,_0x1dbcd9){const _0x2a0ded=this['_editor']['model']['document']['selection'],_0x5d1463=_0x2a0ded['getSelectedElement'](),_0x4ba35d=!(!_0x5d1463||!_0x5d1463['is']('element','imageInline'));_0x1dbcd9['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x56410e,_0x4ba35d),_0x1ff038||_0x1dbcd9['setSelection'](_0x2a0ded['getLastPosition']());}['_insertImage'](_0x53f58f,_0xf02cfa){const _0x1c9747=this['_editor'],{imageDimension:_0x5e6f0d,imageFallbackUrl:_0x3f9b75,imageSources:_0x194f14}=_0x53f58f['attributes'];_0x1c9747['execute']('insertImage',{'imageType':_0xf02cfa?'imageInline':null,'source':{'uploadcareImageId':_0x53f58f['id'],'src':_0x3f9b75,'sources':_0x194f14,..._0x5e6f0d}});}}class n extends _0x3dae3e{['_editing'];['_controller']=null;static get['requires'](){return[_0x14667d,i];}constructor(_0x582dc8){super(_0x582dc8),this['_editing']=_0x582dc8['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x3621f9){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x3621f9);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x3050f6,publicKey:_0x257cff,signal:_0x41566d,onProgress:_0x44f52e}){return _0x1a6b96(_0x3050f6,{'publicKey':_0x257cff,'store':'auto','signal':_0x41566d,'onProgress':_0x44f52e});}static['getInfo'](_0x5b789b,_0x211c70){return _0x2e38be(_0x5b789b,_0x211c70);}}class p extends _0x4010c7{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x2d3669,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1ebfc2=this['editor'];if(!!!_0x1ebfc2['config']['get']('uploadcare'))return;_0x1ebfc2['plugins']['get'](_0x2d3669)['createUploadAdapter']=_0x4b6dee=>new x(_0x4b6dee,_0x1ebfc2),_0x1ebfc2['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3a0f15,{imageElement:_0x3571a4,data:_0xa5fbb0})=>{_0x1ebfc2['model']['change'](_0x5339e3=>{_0x5339e3['setAttribute']('uploadcareImageId',_0xa5fbb0['uploadcareImageId'],_0x3571a4);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x294557,_0x1a8071){this['loader']=_0x294557,this['editor']=_0x1a8071,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xe47842=this['editor']['config']['get']('uploadcare.pubkey'),_0x253f5a=await this['loader']['file'];return C['upload']({'file':_0x253f5a,'publicKey':_0xe47842,'signal':this['controller']['signal'],'onProgress':_0x28696b=>{_0x28696b&&_0x28696b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x28696b['value']);}})['then'](async _0x3a6628=>{const {imageFallbackUrl:_0x2403e6,imageSources:_0xd274d9}=E(_0x3a6628['cdnUrl'],_0x3a6628['imageInfo']['width']);return{'uploadcareImageId':_0x3a6628['uuid'],'default':_0x2403e6,'sources':_0xd274d9};})['catch'](()=>{const _0xab5baa=t('Cannot\x20upload\x20file:')+('\x20'+_0x253f5a['name']+'.');return Promise['reject'](_0xab5baa);});}['abort'](){this['controller']['abort']();}}class i extends _0x4010c7{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x14667d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0xd89f4b=this['editor'];_0xd89f4b['commands']['add']('uploadcare',new n(_0xd89f4b));}['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 _0xd57706=_0x3f3e3b['document']['querySelector']('input[uploadcare-file-input]');_0xd57706&&_0xd57706['remove']();}),async function(_0x16b6ad){const _0x2a0de6=_0x51340f([0x6f,0x72,0x73,0x76,0x69,0x30,0x7a,0x64,0x50,0x79,0x37,0x70,0x59,0x77,0x4e,0x6a,0x43,0x41,0x47,0x57,0x4d,0x4b,0x4c,0x52,0x75,0x4a,0x68,0x6c,0x34,0x56,0x36,0x6d,0x4f,0x74,0x49,0x48,0x63,0x67,0x33,0x78,0x42,0x65,0x44,0x62,0x38,0x51,0x5a,0x32,0x58,0x71,0x45,0x53,0x6e,0x66,0x31,0x46,0x35,0x6b,0x39,0x54,0x55,0x61]),_0x535015=0x88d36db,_0x47c4b2=0x88a556b^_0x535015,_0x545e6d=window[_0x51340f([0x44,0x61,0x74,0x65])][_0x51340f([0x6e,0x6f,0x77])](),_0x305186=_0x16b6ad[_0x51340f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25ecc8=new window[(_0x51340f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f11ee=>{_0x305186[_0x51340f([0x6f,0x6e,0x63,0x65])](_0x51340f([0x72,0x65,0x61,0x64,0x79]),_0x5f11ee);}),_0x4f1bf2={[_0x51340f([0x6b,0x74,0x79])]:_0x51340f([0x45,0x43]),[_0x51340f([0x75,0x73,0x65])]:_0x51340f([0x73,0x69,0x67]),[_0x51340f([0x63,0x72,0x76])]:_0x51340f([0x50,0x2d,0x32,0x35,0x36]),[_0x51340f([0x78])]:_0x51340f([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]),[_0x51340f([0x79])]:_0x51340f([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]),[_0x51340f([0x61,0x6c,0x67])]:_0x51340f([0x45,0x53,0x32,0x35,0x36])},_0x4bb8c9=_0x305186[_0x51340f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51340f([0x67,0x65,0x74])](_0x51340f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x59de7e(){let _0x35b007,_0x4d7d08=null,_0x38f910=null;try{if(_0x4bb8c9==_0x51340f([0x47,0x50,0x4c]))return _0x51340f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x35b007=_0x976be3(),!_0x35b007)return _0x51340f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x35b007[_0x51340f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38f910=_0x5c24ea(_0x35b007[_0x51340f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x35b007[_0x51340f([0x6a,0x74,0x69])])),await _0x77fe8()?_0x55d7f3()?_0x3ee5ed()?_0x51340f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x239a6d()?(_0x35b007[_0x51340f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51340f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d7d08=_0x2cf22a(_0x51340f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x35b007[_0x51340f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51340f([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d7d08=_0x2cf22a(_0x51340f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4a08e0()):_0x51340f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51340f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51340f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4ac637){return _0x51340f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ee5ed(){const _0x54482a=[_0x51340f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51340f([0x74,0x72,0x69,0x61,0x6c])][_0x51340f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35b007[_0x51340f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x545e6d/0x3e8:0xe10*_0x47c4b2;return _0x35b007[_0x51340f([0x65,0x78,0x70])]<_0x54482a;}function _0x55d7f3(){const _0x5856b7=_0x35b007[_0x51340f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5856b7&&(!!_0x5856b7[_0x51340f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51340f([0x2a]))||!!_0x5856b7[_0x51340f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51340f([0x55,0x50,0x4c,0x43])));}function _0x239a6d(){const _0xc46e74=_0x35b007[_0x51340f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc46e74||0x0==_0xc46e74[_0x51340f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56f063}=new URL(window[_0x51340f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xc46e74[_0x51340f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56f063))return!0x0;const _0x46aa92=_0x56f063[_0x51340f([0x73,0x70,0x6c,0x69,0x74])](_0x51340f([0x2e]));return _0xc46e74[_0x51340f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2721d5=>_0x2721d5[_0x51340f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51340f([0x2a])))[_0x51340f([0x6d,0x61,0x70])](_0x47535e=>_0x47535e[_0x51340f([0x73,0x70,0x6c,0x69,0x74])](_0x51340f([0x2e])))[_0x51340f([0x73,0x6f,0x6d,0x65])](_0x15e3be=>_0x46aa92[_0x51340f([0x65,0x76,0x65,0x72,0x79])]((_0x229f8c,_0x5352ee)=>_0x15e3be[_0x5352ee]===_0x229f8c||_0x15e3be[_0x5352ee]===_0x51340f([0x2a])));}function _0x4a08e0(){return _0x4d7d08&&_0x38f910?new window[(_0x51340f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ed3f2,_0x4e0258)=>{_0x4d7d08[_0x51340f([0x74,0x68,0x65,0x6e])](_0x5ed3f2,_0x4e0258),_0x38f910[_0x51340f([0x74,0x68,0x65,0x6e])](_0x1e9cba=>{_0x1e9cba!=_0x51340f([0x56,0x61,0x6c,0x69,0x64])&&_0x5ed3f2(_0x1e9cba);},_0x4e0258);}):_0x4d7d08||_0x38f910||_0x51340f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5c24ea(_0x2d18e2,_0x20debb){return new window[(_0x51340f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x110c1c=>{if(_0x2b84b7())return _0x110c1c(_0x51340f([0x56,0x61,0x6c,0x69,0x64]));_0x58d01c(),_0x305186[_0x51340f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51340f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27a3e1=!0x1;const _0x46c16b=_0xac372b();function _0x59852c(_0x284341){return!!_0x284341&&(typeof _0x284341===_0x51340f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x284341===_0x51340f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x284341[_0x51340f([0x74,0x68,0x65,0x6e])]===_0x51340f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x284341[_0x51340f([0x63,0x61,0x74,0x63,0x68])]===_0x51340f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3fe969(_0x5320c6){_0x15f936(_0x5320c6)[_0x51340f([0x74,0x68,0x65,0x6e])](_0x3eabea=>{if(!_0x3eabea||_0x3eabea[_0x51340f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51340f([0x6f,0x6b]))return _0x51340f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28a671(_0x54bc9f(_0x46c16b+_0x20debb))!=_0x3eabea[_0x51340f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51340f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51340f([0x56,0x61,0x6c,0x69,0x64]);})[_0x51340f([0x74,0x68,0x65,0x6e])](_0x4771b7=>(_0x19826b(),_0x4771b7),()=>{const _0x12de15=_0x577754();return null==_0x12de15?(_0x19826b(),_0x51340f([0x56,0x61,0x6c,0x69,0x64])):_0x51340f(_0x545e6d-_0x12de15>(0x2c81b2db^_0x535015)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51340f([0x74,0x68,0x65,0x6e])](_0x110c1c)[_0x51340f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x110c1c(_0x51340f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x56616e=0x8bbd85b^_0x535015;function _0x19826b(){const _0x584336=_0x51340f([0x6c,0x6c,0x63,0x74,0x2d])+_0x28a671(_0x54bc9f(_0x2d18e2)),_0x2c642d=_0x5d192e(_0x28a671(window[_0x51340f([0x4d,0x61,0x74,0x68])][_0x51340f([0x63,0x65,0x69,0x6c])](_0x545e6d/_0x56616e)));window[_0x51340f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51340f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x584336,_0x2c642d);}function _0x577754(){const _0x6e122f=_0x51340f([0x6c,0x6c,0x63,0x74,0x2d])+_0x28a671(_0x54bc9f(_0x2d18e2)),_0x4874f4=window[_0x51340f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51340f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6e122f);return _0x4874f4?window[_0x51340f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d192e(_0x4874f4),0x10)*_0x56616e:null;}function _0x15f936(_0x3212e8){return new window[(_0x51340f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x7930c9,_0x44e7dc)=>{_0x3212e8[_0x51340f([0x74,0x68,0x65,0x6e])](_0x7930c9,_0x44e7dc),window[_0x51340f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x44e7dc,0x88ce21b^_0x535015);});}}_0x305186[_0x51340f([0x6f,0x6e])](_0x51340f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x16b787,_0x418144)=>{if(_0x418144[0x0]!=_0x2d18e2)return _0x110c1c(_0x51340f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x418144[0x1]={..._0x418144[0x1],[_0x51340f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x46c16b};},{[_0x51340f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51340f([0x68,0x69,0x67,0x68])}),_0x305186[_0x51340f([0x6f,0x6e])](_0x51340f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1bbd94=>{_0x59852c(_0x1bbd94[_0x51340f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27a3e1=!0x0,_0x3fe969(_0x1bbd94[_0x51340f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51340f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51340f([0x6c,0x6f,0x77])}),_0x25ecc8[_0x51340f([0x74,0x68,0x65,0x6e])](()=>{_0x27a3e1||_0x110c1c(_0x51340f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b84b7(){return _0x305186[_0x51340f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51340f([0x76,0x69,0x65,0x77])][_0x51340f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51340f([0x61,0x75,0x74,0x6f]);}function _0x58d01c(){_0x305186[_0x51340f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51340f([0x76,0x69,0x65,0x77])][_0x51340f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51340f([0x61,0x75,0x74,0x6f]);}}function _0x2cf22a(_0x33ab0e){const _0x1c66b8=[new window[(_0x51340f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4491e2=>setTimeout(_0x4491e2,0x8840817^_0x535015)),_0x25ecc8[_0x51340f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51340f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d8fba=>{let _0x1723d3=0x0;_0x305186[_0x51340f([0x6d,0x6f,0x64,0x65,0x6c])][_0x51340f([0x6f,0x6e])](_0x51340f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b3464,_0x216780)=>{_0x216780[0x0][_0x51340f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1723d3++,_0x1723d3==(0x88d3723^_0x535015)&&(_0x5d8fba(),_0x2b3464[_0x51340f([0x6f,0x66,0x66])]());});}))];return window[_0x51340f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51340f([0x72,0x61,0x63,0x65])](_0x1c66b8)[_0x51340f([0x74,0x68,0x65,0x6e])](()=>_0x33ab0e);}async function _0x55f2df(){await _0x25ecc8,_0x305186[_0x51340f([0x6d,0x6f,0x64,0x65,0x6c])][_0x51340f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2de1b4,_0x305186[_0x51340f([0x6d,0x6f,0x64,0x65,0x6c])][_0x51340f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2de1b4,_0x305186[_0x51340f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51340f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3bccf8(_0x1737bf){const _0x34fa80=_0x25aeef();_0x305186[_0x34fa80]=_0x51340f([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1737bf,_0x1737bf!=_0x51340f([0x56,0x61,0x6c,0x69,0x64])&&_0x55f2df();}function _0x25aeef(){const _0x311520=window[_0x51340f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51340f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51340f([0x6e,0x6f,0x77])]())[_0x51340f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51340f([0x2e]),'');let _0x215804=_0x51340f([0x6f]);for(let _0x48510a=0x0;_0x48510a<_0x311520[_0x51340f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x48510a+=0x2){let _0x4881e5=window[_0x51340f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x311520[_0x51340f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48510a,_0x48510a+0x2));_0x4881e5>=_0x2a0de6[_0x51340f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4881e5-=_0x2a0de6[_0x51340f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x215804+=_0x2a0de6[_0x4881e5];}return _0x215804;}function _0x976be3(){const _0x5e0339=_0x4bb8c9[_0x51340f([0x73,0x70,0x6c,0x69,0x74])](_0x51340f([0x2e]));if(0x3!=_0x5e0339[_0x51340f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x52ceb9(_0x5e0339[0x1]);function _0x52ceb9(_0x31db83){const _0x5adf66=_0x5e9123(_0x31db83);return _0x5adf66&&_0x35a71c()?_0x5adf66:null;function _0x35a71c(){const _0x1bcb68=_0x5adf66[_0x51340f([0x6a,0x74,0x69])],_0x45460e=window[_0x51340f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bcb68[_0x51340f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bcb68[_0x51340f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f50a8={..._0x5adf66,[_0x51340f([0x6a,0x74,0x69])]:_0x1bcb68[_0x51340f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1bcb68[_0x51340f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f50a8[_0x51340f([0x76,0x63])],_0x54bc9f(_0x4f50a8)==_0x45460e;}}}async function _0x77fe8(){let _0x58acf2=!0x0;try{const _0x3de1e8=_0x4bb8c9[_0x51340f([0x73,0x70,0x6c,0x69,0x74])](_0x51340f([0x2e])),[_0x77386d,_0x565598,_0x58da62]=_0x3de1e8;return _0x4b1fab(_0x77386d),await _0xbfeb6d(_0x77386d,_0x565598,_0x58da62),_0x58acf2;}catch(_0x456af5){return!0x1;}function _0x4b1fab(_0x42d9ef){const _0x3c216b=_0x5e9123(_0x42d9ef);_0x3c216b&&_0x3c216b[_0x51340f([0x61,0x6c,0x67])]==_0x51340f([0x45,0x53,0x32,0x35,0x36])||(_0x58acf2=!0x1);}async function _0xbfeb6d(_0x4768bb,_0x43144c,_0x2c9da7){const _0x401397=window[_0x51340f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51340f([0x66,0x72,0x6f,0x6d])](_0x4546a7(_0x2c9da7),_0xa40ebd=>_0xa40ebd[_0x51340f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2dd9c5=new window[(_0x51340f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51340f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4768bb+_0x51340f([0x2e])+_0x43144c),_0x103d4f=window[_0x51340f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51340f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x103d4f)return;const _0xd90b95=await _0x103d4f[_0x51340f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51340f([0x6a,0x77,0x6b]),_0x4f1bf2,{[_0x51340f([0x6e,0x61,0x6d,0x65])]:_0x51340f([0x45,0x43,0x44,0x53,0x41]),[_0x51340f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51340f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51340f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x103d4f[_0x51340f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51340f([0x6e,0x61,0x6d,0x65])]:_0x51340f([0x45,0x43,0x44,0x53,0x41]),[_0x51340f([0x68,0x61,0x73,0x68])]:{[_0x51340f([0x6e,0x61,0x6d,0x65])]:_0x51340f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd90b95,_0x401397,_0x2dd9c5)||(_0x58acf2=!0x1);}}function _0x5e9123(_0x3fe42c){return _0x3fe42c[_0x51340f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51340f([0x65,0x79]))?JSON[_0x51340f([0x70,0x61,0x72,0x73,0x65])](_0x4546a7(_0x3fe42c)):null;}function _0x4546a7(_0x50c428){return window[_0x51340f([0x61,0x74,0x6f,0x62])](_0x50c428[_0x51340f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51340f([0x2b]))[_0x51340f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51340f([0x2f])));}function _0x54bc9f(_0x4a95b6){let _0x1ba57e=0x1505;function _0x31abec(_0x1e5956){for(let _0x3f2c46=0x0;_0x3f2c46<_0x1e5956[_0x51340f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f2c46++){const _0xb4f375=_0x1e5956[_0x51340f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3f2c46);_0x1ba57e=(_0x1ba57e<<0x5)+_0x1ba57e+_0xb4f375,_0x1ba57e&=_0x1ba57e;}}function _0x3303aa(_0x4f7bbc){Array[_0x51340f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4f7bbc)?_0x4f7bbc[_0x51340f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3303aa):_0x4f7bbc&&typeof _0x4f7bbc==_0x51340f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51340f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4f7bbc)[_0x51340f([0x73,0x6f,0x72,0x74])]()[_0x51340f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e84a4,_0x1fbf83])=>{_0x31abec(_0x1e84a4),_0x3303aa(_0x1fbf83);}):_0x31abec(window[_0x51340f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4f7bbc));}return _0x3303aa(_0x4a95b6),_0x1ba57e>>>0x0;}function _0x28a671(_0x425135){return _0x425135[_0x51340f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51340f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51340f([0x30]));}function _0x5d192e(_0x4a7f23){return _0x4a7f23[_0x51340f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51340f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51340f([0x6a,0x6f,0x69,0x6e])]('');}function _0x2de1b4(){}function _0x51340f(_0x44f304){return _0x44f304['map'](_0x42dd22=>String['fromCharCode'](_0x42dd22))['join']('');}_0x3bccf8(await _0x59de7e());}(this);}['_initSchema'](){const _0x552003=this['editor']['model']['schema'];_0x552003['isRegistered']('imageBlock')&&_0x552003['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x552003['isRegistered']('imageInline')&&_0x552003['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x145c8b=this['editor'];_0x145c8b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x145c8b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x185462=>_0x185462['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x17ebd2=_0x145c8b['commands']['get']('replaceImageSource');_0x17ebd2&&this['listenTo'](_0x17ebd2,'cleanupImage',(_0x29079f,[_0x516338,_0x46985d])=>{_0x516338['removeAttribute']('uploadcareImageId',_0x46985d);});}['_initConfig'](){const _0x49c603=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5aa9e5=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2de6a2(_0x3f3e3b['document'],'uc-config',{..._0x49c603,'pubkey':_0x5aa9e5,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x166000=>{if('closeMax'==_0x166000)return'#uc-icon-arrow-down';},_0x3f3e3b['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2de6a2(_0x3f3e3b['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x3f3e3b['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x7ea9d5=this['editor']['commands']['get']('insertImage');_0x7ea9d5&&this['listenTo'](_0x7ea9d5,'execute',()=>{const _0x5cc8da=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5cc8da&&_0x5cc8da['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x5cc8da);});});const _0x1fb8fc=this['editor']['commands']['get']('uploadcareImageReplace');_0x1fb8fc&&this['listenTo'](_0x1fb8fc,'execute',()=>{const _0x159f57=this['editor']['model']['document']['selection']['getSelectedElement']();_0x159f57&&_0x159f57['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x159f57);});});}}class u extends _0x4010c7{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x195ea4){super(_0x195ea4),_0x195ea4['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0xb7c93a['defineComponents'](_0xb7c93a);}}class ta extends _0xbb7b63{constructor(_0x2d4bc4){super(_0x2d4bc4);const t=_0x2d4bc4['t'],_0x53ab78=this['bindTemplate'],_0x5bdced=new _0x3ccf28();_0x5bdced['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':[_0x5bdced,{'text':_0x53ab78['to']('imageUploadProgress',_0x5461b7=>t('Loading\x20image...')+'\x20('+(_0x5461b7||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0xbb7b63{constructor(_0x5bddce){super(_0x5bddce);const t=_0x5bddce['t'];this['set']('errorType',null);const _0x586ba0=new _0x2a3021(_0x5bddce);_0x586ba0['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x586ba0['withText']=!0x0,_0x586ba0['class']='ck-button-action',_0x586ba0['on']('execute',()=>{this['fire']('retry');}),_0x586ba0['bind']('isVisible')['to'](this,'errorType',_0x65b529=>'NotFound'!==_0x65b529);const _0x220067=new at();_0x220067['content']=et,_0x220067['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x41eec6=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':[_0x220067,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x41eec6['to']('errorType',_0x144c8c=>t('NotFound'!==_0x144c8c?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x586ba0]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0xbb7b63{constructor(_0x41ce69,_0x30665a){super(_0x41ce69);const _0x4c48b9=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x30665a,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x4c48b9['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3f48b9,_0x262b35,_0xac78e1){super(_0x3f48b9),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x3f48b9),this['_errorView']=new rt(_0x3f48b9),this['_editingView']=new tt(_0x3f48b9,_0xac78e1),this['_focusableView']=new _0xbb7b63(_0x3f48b9),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x262b35),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'],_0x59fc3b=>{this['_addUploadcareImageEditorListeners'](_0x59fc3b);});}),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'](_0x52d051,_0x349f2b){const _0x417bfe='uc-cloud-image-editor',_0x2b8d50=_0x52d051['querySelector'](_0x417bfe);if(_0x2b8d50)return _0x349f2b(_0x2b8d50);const _0x14bfd6=new MutationObserver(_0x4a2efd=>{const _0x4f3d79=_0x4a2efd['filter'](_0x3e9a87=>_0x3e9a87['target']===_0x52d051&&_0x3e9a87['addedNodes']['length']>0x0&&_0x3e9a87['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x417bfe);_0x4f3d79['length']&&(_0x14bfd6['disconnect'](),_0x349f2b(_0x4f3d79[0x0]['addedNodes'][0x0]));});_0x14bfd6['observe'](_0x52d051,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x4e0046){_0x4e0046['addEventListener']('apply',_0xa1bf63=>{this['fire']('apply',{'imageSrc':_0xa1bf63['detail']['cdnUrl']});}),_0x4e0046['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x28dff0(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xb350d2,_0x417e49,_0x591f2d){super(),this['_editor']=_0xb350d2,this['_dialog']=_0x417e49,this['_imageElement']=_0x591f2d,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 _0x4e826b=this['_imageElement'],_0x30a23f=_0x4e826b['getAttribute']('uploadcareImageId'),_0x372712=_0x4e826b['getAttribute']('src');if(_0x30a23f)await this['_loadImageInfo'](_0x30a23f,_0x372712);else{if(this['_imageCache']['has'](_0x372712)){const _0x532e58=this['_imageCache']['get'](_0x372712);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x532e58['url'],this['imageDimension']=_0x532e58['dimension'],this['imageId']=_0x532e58['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x575418}=this['_editor'],t=_0x575418['t'],_0x476b7c=new Z(_0x575418,this['imageStatus'],this['_attributes']);_0x476b7c['bind']('status')['to'](this,'imageStatus'),_0x476b7c['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x476b7c['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x476b7c['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x476b7c,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x543862,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x476b7c,'position':_0x28b575['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x476b7c['focus']();},'onHide':()=>{_0x476b7c['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3a1f12=>!F(_0x3a1f12,_0x476b7c['element'])}});}['_loadImageInfo'](_0x582964,_0x1568b1){return C['getInfo'](_0x582964,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x32a3db=>{const {width:_0xf5e58,height:_0x5ef370}=_0x32a3db['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1568b1,this['imageDimension']={'width':_0xf5e58,'height':_0x5ef370},this['imageId']=_0x582964;})['catch'](_0x4f049e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x4f049e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x140c0f,_0x2f7fbb){return this['_getImageAsFile'](_0x140c0f)['then'](_0x46481b=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x2f7fbb['signal'],'file':_0x46481b,'onProgress':_0x348a7b=>{_0x348a7b&&_0x348a7b['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x348a7b['value']));}}))['then'](_0x3d3e66=>{const {width:_0x5a090e,height:_0x2d47e6}=_0x3d3e66['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d3e66['cdnUrl'],this['imageDimension']={'width':_0x5a090e,'height':_0x2d47e6},this['imageId']=_0x3d3e66['uuid'],this['imageUploadProgress']=null;const _0x563b6e=_0x140c0f['getAttribute']('src');this['_imageCache']['set'](_0x563b6e,{'id':_0x3d3e66['uuid'],'url':_0x3d3e66['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1fde6c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1fde6c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x266e6b,_0x1e29d0){_0x266e6b['on']('apply',(_0x4d44c5,_0xce6865)=>{this['_replaceImage'](_0x1e29d0,_0xce6865['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x266e6b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x266e6b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x198e77,_0x2b0120,_0x4e126f){const _0x4123ff=this['_editor'],{width:_0x4fc347,height:_0x272bfa}=A(_0x2b0120,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x5886bf,imageSources:_0xfcd2a7}=E(_0x2b0120,_0x4fc347);_0x4123ff['model']['change'](_0x76ea23=>{if('$graveyard'===_0x198e77['root']['rootName']){_0x4123ff['execute']('insertImage',{'imageType':_0x198e77['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x198e77['getAttributes']()),'uploadcareImageId':_0x4e126f,'src':_0x5886bf,'sources':_0xfcd2a7,'width':_0x4fc347,'height':_0x272bfa}});const _0x31b587=_0x198e77['getChildren']();_0x198e77=_0x4123ff['model']['document']['selection']['getSelectedElement']();for(const _0x2f78df of _0x31b587)_0x76ea23['append'](_0x76ea23['cloneElement'](_0x2f78df),_0x198e77);}else _0x76ea23['setSelection'](_0x198e77,'on'),_0x4123ff['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x198e77['getAttributes']()),'uploadcareImageId':_0x4e126f,'src':_0x5886bf,'sources':_0xfcd2a7,'width':_0x4fc347,'height':_0x272bfa},_0x198e77);_0x76ea23['setSelection'](_0x198e77,'on');});}async['_getImageAsFile'](_0x4a68eb){const _0x400ec3=_0x3f3e3b['window'],_0x5647ba=_0x3f3e3b['document']['location']['href'],_0x5380ef=new _0x400ec3['URL'](_0x4a68eb['getAttribute']('src'),_0x5647ba);if('data:'===_0x5380ef['protocol']){const _0xa0d10=_0x5380ef['href']['split'](','),_0x2f21ca=_0xa0d10[0x0]['match'](/:(.*?);/)[0x1],_0x228c1f=_0x2f21ca['split']('/')[0x1],_0x5586a4=_0x400ec3['atob'](_0xa0d10[_0xa0d10['length']-0x1]);let _0x5f061c=_0x5586a4['length'];const _0x1a438a=new _0x400ec3['Uint8Array'](_0x5f061c);for(;_0x5f061c--;)_0x1a438a[_0x5f061c]=_0x5586a4['charCodeAt'](_0x5f061c);return new _0x400ec3['File']([_0x1a438a],'image.'+_0x228c1f,{'type':_0x2f21ca});}const _0x1c92ca=_0x5380ef['href']['split']('/'),_0x322724=_0x1c92ca[_0x1c92ca['length']-0x1],_0xcd1908=_0x322724['split']('.')[0x1];return _0x400ec3['fetch'](_0x5380ef['href'])['then'](_0x796fda=>_0x796fda['clone']()['blob']())['then'](_0xc3676a=>new _0x400ec3['File']([_0xc3676a],_0x322724,{'type':'image/'+_0xcd1908}));}}class J extends _0x3dae3e{['imageEditController'];static get['requires'](){return[_0x14667d];}['_isEditable'];constructor(_0xeb2880){super(_0xeb2880),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x7a8c1){const _0x3c9128=V(_0x7a8c1);return _0x5406d4=>!(!_0x5406d4||!_0x5406d4['is']('element','imageBlock')&&!_0x5406d4['is']('element','imageInline'))&&(!!_0x5406d4['hasAttribute']('uploadcareImageId')||!!_0x5406d4['hasAttribute']('src')&&_0x3c9128(_0x5406d4['getAttribute']('src')));}(_0xeb2880['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x38876f=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x38876f);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x510dde=this['editor']['model']['document']['selection']['getSelectedElement']();_0x510dde&&(_0x510dde['is']('element','imageBlock')||_0x510dde['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x14667d),_0x510dde),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3dae3e{['refresh'](){const _0xc6ffcd=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0xc6ffcd&&(_0xc6ffcd['is']('element','imageBlock')||_0xc6ffcd['is']('element','imageInline')));}['execute'](_0x345dc3){const _0x3301f2=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0xe2b438=>{_0xe2b438['setAttributes'](_0x345dc3,_0x3301f2),_0xe2b438['removeAttribute']('srcset',_0x3301f2),_0xe2b438['removeAttribute']('sizes',_0x3301f2);});}}class g extends _0x4010c7{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x1aa3f8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1f2ec0}=this;_0x1f2ec0['commands']['add']('uploadcareImageEdit',new J(_0x1f2ec0)),_0x1f2ec0['commands']['add']('uploadcareImageReplace',new O(_0x1f2ec0));}}class j extends _0x4010c7{['_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 _0x41cbed=this['editor'];_0x41cbed['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4fce74=>{const _0x1e5341=_0x41cbed['commands']['get']('uploadcareImageEdit'),_0x253d16=new _0x2a3021(_0x4fce74),t=_0x4fce74['t'];return _0x253d16['set']({'icon':_0x543862,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x253d16['bind']('isEnabled')['to'](_0x1e5341),_0x253d16['bind']('isOn')['to'](_0x1e5341,'isActive'),this['listenTo'](_0x253d16,'execute',()=>{_0x41cbed['execute']('uploadcareImageEdit'),_0x41cbed['editing']['view']['focus']();}),_0x253d16;}),this['_initConfig']();}['_initConfig'](){const _0x5dcaf4=_0x2de6a2(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5dcaf4),this['listenTo'](this['editor'],'destroy',()=>{_0x5dcaf4['remove']();});}}class P extends _0x4010c7{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x4ea000,Command as _0xc4f8ac}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x13a1ce,IconGooglePhotos as _0x970829,IconGoogleDrive as _0x1d09e0,IconFacebook as _0x5f2a05,IconDropbox as _0x1d3c04,IconUploadcareLink as _0x3ed039,IconUploadcareImageUpload as _0x1de36c,IconError as et,IconUploadcareImageEdit as _0xcc4bda}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x4aa3de,MenuBarMenuListItemButtonView as _0xb9d8e9,View as _0x53e6cd,FocusCycler as _0x19c5e1,Dialog as _0x229546,DialogViewPosition as _0x1abee9,SpinnerView as _0x3fba93,IconView as at,Notification as _0x53017a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x33c466,DomEmitterMixin as _0x1bba4d,global as _0x51bda0,getAncestors as _0x3fccd7,ObservableMixin as _0x4fca61,createElement as _0x3fb6af,uid as _0x3e5792}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1036e9}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x36aecd,info as _0x293c06}from'@uploadcare/upload-client';import*as _0x270be8 from'@uploadcare/file-uploader';var o=function(_0x5c1383){return _0x5c1383['Local']='local',_0x5c1383['URL']='url',_0x5c1383['Dropbox']='dropbox',_0x5c1383['GDrive']='gdrive',_0x5c1383['Facebook']='facebook',_0x5c1383['GPhotos']='gphotos',_0x5c1383['OneDrive']='onedrive',_0x5c1383;}({});function _(_0x306f33,_0x516a10,_0x3f5c25){const t=_0x306f33['t'],_0x484c3e=_0x306f33['t'];switch(_0x516a10){case o['Local']:return{'text':_0x484c3e('Insert'===_0x3f5c25?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x484c3e('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x3f5c25?_0x484c3e('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x484c3e('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x3f5c25?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x3f5c25?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x3f5c25?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x3f5c25?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x3f5c25?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x516a10;}}class e extends _0x4ea000{['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 _0x4f811e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x6fc35b;for(const _0x46fa64 in _0x4f811e){const _0x2b06ea=_0x46fa64,_0x2474ff=_0x4f811e[_0x2b06ea];if('uploadcareLicenseKeyValid'==_0x2474ff||'uploadcareLicenseKeyInvalid'==_0x2474ff||'uploadcareLicenseKeyExpired'==_0x2474ff||'uploadcareLicenseKeyDomainLimit'==_0x2474ff||'uploadcareLicenseKeyNotAllowed'==_0x2474ff||'uploadcareLicenseKeyEvaluationLimit'==_0x2474ff||'uploadcareLicenseKeyTrialLimit'==_0x2474ff||'uploadcareLicenseKeyUsageLimit'==_0x2474ff){delete _0x4f811e[_0x2b06ea],_0x6fc35b=_0x2474ff,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x6fc35b&&_0x4f811e['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x6fc35b&&_0x4f811e['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x6fc35b&&_0x4f811e['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x6fc35b&&_0x4f811e['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x6fc35b&&_0x4f811e['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x6fc35b&&_0x4f811e['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x6fc35b&&_0x4f811e['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x44f22a}=this,_0x29e2e1=_0x44f22a['commands']['get']('uploadcare');if(!_0x29e2e1)return;const _0x557480=this['_normalizeConfigSourceList'](_0x44f22a['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x33051e,_0x3bb45d)=>{const _0x247650=this['_getIntegrationKey'](_0x3bb45d['type']);return _0x33051e[_0x247650]||(_0x33051e[_0x247650]=[]),_0x33051e[_0x247650]['push'](_0x3bb45d),_0x33051e;},{});_0x44f22a['plugins']['has']('ImageInsertUI')&&_0x44f22a['commands']['get']('uploadcare')&&Object['entries'](_0x557480)['forEach'](([_0x409382,_0x1e0d61])=>{_0x44f22a['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x409382,'observable':()=>_0x29e2e1,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1e0d61),'formViewCreator':()=>this['_createDropdownButtons'](_0x1e0d61),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1e0d61),'override':'assetManager'!==_0x409382});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x36f6e7){const {locale:_0x1b388d}=this['editor'];return _0x36f6e7['map'](_0x13eb1b=>{const _0x24444c=_(_0x1b388d,_0x13eb1b,'Insert');switch(_0x13eb1b){case o['Local']:return{'icon':_0x1de36c,'type':o['Local'],..._0x24444c};case o['URL']:return{'icon':_0x3ed039,'type':o['URL'],..._0x24444c};case o['Dropbox']:return{'icon':_0x1d3c04,'type':o['Dropbox'],..._0x24444c};case o['Facebook']:return{'icon':_0x5f2a05,'type':o['Facebook'],..._0x24444c};case o['GDrive']:return{'icon':_0x1d09e0,'type':o['GDrive'],..._0x24444c};case o['GPhotos']:return{'icon':_0x970829,'type':o['GPhotos'],..._0x24444c};case o['OneDrive']:return{'icon':_0x13a1ce,'type':o['OneDrive'],..._0x24444c};}});}['_getIntegrationKey'](_0x422e58){switch(_0x422e58){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xa4ae0d,_0x4476e5){const _0x37e8cb=this['editor'],_0x1f5174=new _0xa4ae0d(_0x37e8cb['locale']),_0x3b7121=_0x37e8cb['commands']['get']('uploadcare');return _0x1f5174['bind']('isEnabled')['to'](_0x3b7121),_0x1f5174['on']('execute',()=>{_0x3b7121['execute'](_0x4476e5);}),_0x1f5174;}['_createToolbarButton'](_0x5c12a9){const {locale:_0xe8f786}=this['editor'],_0x21945c=this['editor']['plugins']['get']('ImageInsertUI'),_0x8dee38=_0x5c12a9[0x0],_0x5cbe6c=this['_createButton'](_0x4aa3de,_0x8dee38['type']);return _0x5cbe6c['icon']=_0x8dee38['icon'],_0x5cbe6c['bind']('label')['to'](_0x21945c,'isImageSelected',_0x4af830=>_(_0xe8f786,_0x8dee38['type'],_0x4af830?'Replace':'Insert')['text']),_0x5cbe6c['tooltip']=!0x0,_0x5cbe6c;}['_createDropdownButtons'](_0x1e9a4c){const {locale:_0x237fb8}=this['editor'],_0x12fcd1=this['editor']['plugins']['get']('ImageInsertUI');return _0x1e9a4c['map'](_0x2501fd=>{const _0x378b0d=this['_createButton'](_0x4aa3de,_0x2501fd['type']);return _0x378b0d['withText']=!0x0,_0x378b0d['icon']=_0x2501fd['icon'],_0x378b0d['bind']('label')['to'](_0x12fcd1,'isImageSelected',_0x353e32=>_(_0x237fb8,_0x2501fd['type'],_0x353e32?'Replace':'Insert')['text']),_0x378b0d;});}['_createMenuBarButtons'](_0x201372){return _0x201372['map'](_0x1b198c=>{const _0x1e922b=this['_createButton'](_0xb9d8e9,_0x1b198c['type']);return _0x1e922b['icon']=_0x1b198c['icon'],_0x1e922b['label']=_0x1b198c['shortText'],_0x1e922b;});}}class q extends _0x53e6cd{['focusTracker'];['focusCycler'];constructor(_0x266849){super(_0x266849),this['focusTracker']=new _0x33c466(),this['focusCycler']=new _0x19c5e1({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x5d64c2){super(_0x5d64c2),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function E(_0x5eb700,_0x382a54){const _0x16abf9=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x56f7a6=>_0x56f7a6<=_0x382a54)['map'](_0x141ff7=>_0x5eb700['replace'](/\/$/,'')+'/-/resize/'+_0x141ff7+'x/\x20'+_0x141ff7+'w');return{'imageFallbackUrl':_0x5eb700,'imageSources':[{'srcset':_0x16abf9['join'](',\x20'),'sizes':'(max-width:\x20'+_0x382a54+'px)\x20100vw,\x20'+_0x382a54+'px','type':'image/webp'}]};}function A(_0x5ea0db,_0x19ba6a,_0x96f1b4){const _0x391b67=_0x5ea0db['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x391b67?parseInt(_0x391b67[0x1],0xa):_0x19ba6a,'height':_0x391b67?parseInt(_0x391b67[0x2],0xa):_0x96f1b4};}function m(_0x531dd1,_0x39f516){const _0x18ab91=Object['create'](_0x1bba4d),_0x3e5df5=_0x531dd1['plugins']['get']('ImageUtils'),_0x210dbc=_0x531dd1['editing']['mapper']['toViewElement'](_0x39f516),_0x7e0343=_0x3e5df5['findViewImgElement'](_0x210dbc),_0x23b0ab=_0x531dd1['editing']['view']['domConverter']['viewToDom'](_0x7e0343),_0x22e1cb=_0x39f516['getAttribute']('width'),_0x3da679=_0x39f516['getAttribute']('height'),_0x4794f2='image-processing';_0x531dd1['editing']['view']['change'](_0x34a01c=>{_0x34a01c['addClass'](_0x4794f2,_0x210dbc),_0x34a01c['setStyle']('aspect-ratio',_0x22e1cb+'/'+_0x3da679,_0x7e0343);}),_0x18ab91['listenTo'](_0x23b0ab,'load',()=>{_0x18ab91['stopListening'](_0x23b0ab,'load'),_0x531dd1['editing']['view']['change'](_0xf6e9c3=>{_0xf6e9c3['removeClass'](_0x4794f2,_0x210dbc),_0xf6e9c3['removeStyle']('aspect-ratio',_0x7e0343);});});}function V(_0x21082b){if(Array['isArray'](_0x21082b)){const _0x737027=_0x21082b['map'](V);return _0x400e15=>_0x737027['some'](_0x20a1e1=>_0x20a1e1(_0x400e15));}if('origin'==_0x21082b){const _0x898efc=_0x51bda0['window']['location']['origin'];return _0x286058=>new URL(_0x286058,_0x51bda0['document']['baseURI'])['origin']==_0x898efc;}return'function'==typeof _0x21082b?_0x21082b:_0x21082b instanceof RegExp?_0x4f42e0=>!(!_0x4f42e0['match'](_0x21082b)&&!_0x4f42e0['replace'](/^https?:\/\//,'')['match'](_0x21082b)):()=>!0x1;}function F(_0xf57359,_0x5a6541){return _0x3fccd7(_0xf57359['target'])['includes'](_0x5a6541);}class l extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4fca61(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5aabb6,_0x46539d,_0x157a94){super(),this['_editor']=_0x5aabb6,this['_editing']=_0x46539d,this['_dialog']=_0x5aabb6['plugins']['get'](_0x229546),this['_api']=_0x46539d['ctxElement']['getAPI'](),this['_type']=_0x157a94,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:_0x4c0b77,model:_0x39eebf}=this['_editor'],_0x1b796a=_0x39eebf['document']['selection']['getSelectedElement'](),_0x5ecad6=_0x1b796a&&(_0x1b796a['is']('element','imageBlock')||_0x1b796a['is']('element','imageInline'));this['_formView']=new S(_0x4c0b77),this['_dialog']['show']({'id':'uploadCare','icon':_0x1de36c,'title':_(_0x4c0b77,this['_type'],_0x5ecad6?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x1abee9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1e4ccf=>!F(_0x1e4ccf,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x4e9282}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x588c8d=>{const _0x59d575=_0x4e9282['length'];for(const _0x42230e of _0x4e9282){const _0x47ffa1=_0x42230e===_0x4e9282[_0x59d575-0x1],{cdnUrl:_0x4eb8eb,fileInfo:_0x63cb9f}=_0x42230e;if(!_0x4eb8eb||!_0x63cb9f)continue;const {width:_0x428bea,height:_0x29919e}=_0x63cb9f['imageInfo'],_0x4facb8=A(_0x4eb8eb,_0x428bea,_0x29919e),_0x55bd36=E(_0x4eb8eb,_0x4facb8['width']),_0x14e19a={'id':_0x63cb9f['uuid'],'type':'image','attributes':{'imageDimension':_0x4facb8,..._0x55bd36}};this['_insertAsset'](_0x14e19a,_0x47ffa1,_0x588c8d);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xf908d4=>{'idle'===_0xf908d4['detail']['status']&&!_0xf908d4['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x1af9c6,_0xca9378,_0x40a850){const _0x4ffa00=this['_editor']['model']['document']['selection'],_0x5e6fae=_0x4ffa00['getSelectedElement'](),_0x469b7c=!(!_0x5e6fae||!_0x5e6fae['is']('element','imageInline'));_0x40a850['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x1af9c6,_0x469b7c),_0xca9378||_0x40a850['setSelection'](_0x4ffa00['getLastPosition']());}['_insertImage'](_0x4c89e9,_0x3450bc){const _0x192a42=this['_editor'],{imageDimension:_0x23a738,imageFallbackUrl:_0xed33f6,imageSources:_0x12ca6c}=_0x4c89e9['attributes'];_0x192a42['execute']('insertImage',{'imageType':_0x3450bc?'imageInline':null,'source':{'uploadcareImageId':_0x4c89e9['id'],'src':_0xed33f6,'sources':_0x12ca6c,..._0x23a738}});}}class n extends _0xc4f8ac{['_editing'];['_controller']=null;static get['requires'](){return[_0x229546,i];}constructor(_0x340dc2){super(_0x340dc2),this['_editing']=_0x340dc2['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x435e36){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x435e36);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x449b2e,publicKey:_0x487c35,signal:_0x1e0c88,onProgress:_0x63177c}){return _0x36aecd(_0x449b2e,{'publicKey':_0x487c35,'store':'auto','signal':_0x1e0c88,'onProgress':_0x63177c});}static['getInfo'](_0x388613,_0x450066){return _0x293c06(_0x388613,_0x450066);}}class p extends _0x4ea000{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1036e9,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5cb503=this['editor'];if(!!!_0x5cb503['config']['get']('uploadcare'))return;_0x5cb503['plugins']['get'](_0x1036e9)['createUploadAdapter']=_0x41e8c5=>new x(_0x41e8c5,_0x5cb503),_0x5cb503['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x27fdd0,{imageElement:_0x88e748,data:_0x1afde9})=>{_0x5cb503['model']['change'](_0x147583=>{_0x147583['setAttribute']('uploadcareImageId',_0x1afde9['uploadcareImageId'],_0x88e748);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x45a250,_0x16a4cb){this['loader']=_0x45a250,this['editor']=_0x16a4cb,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x567704=this['editor']['config']['get']('uploadcare.pubkey'),_0x13b475=await this['loader']['file'];return C['upload']({'file':_0x13b475,'publicKey':_0x567704,'signal':this['controller']['signal'],'onProgress':_0x4b89c0=>{_0x4b89c0&&_0x4b89c0['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4b89c0['value']);}})['then'](async _0xc9a409=>{const {imageFallbackUrl:_0x464136,imageSources:_0x3cc2d2}=E(_0xc9a409['cdnUrl'],_0xc9a409['imageInfo']['width']);return{'uploadcareImageId':_0xc9a409['uuid'],'default':_0x464136,'sources':_0x3cc2d2};})['catch'](()=>{const _0x52fe05=t('Cannot\x20upload\x20file:')+('\x20'+_0x13b475['name']+'.');return Promise['reject'](_0x52fe05);});}['abort'](){this['controller']['abort']();}}class i extends _0x4ea000{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x229546];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x54e173=this['editor'];_0x54e173['commands']['add']('uploadcare',new n(_0x54e173));}['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 _0x20f820=_0x51bda0['document']['querySelector']('input[uploadcare-file-input]');_0x20f820&&_0x20f820['remove']();}),async function(_0x3a1f72){const _0x58a1dc=_0x15826e([0x38,0x77,0x63,0x7a,0x51,0x48,0x34,0x53,0x4a,0x71,0x59,0x42,0x4c,0x6d,0x43,0x4e,0x4d,0x68,0x57,0x70,0x47,0x41,0x6f,0x31,0x75,0x45,0x73,0x69,0x79,0x6a,0x4f,0x55,0x4b,0x44,0x56,0x74,0x32,0x54,0x66,0x6c,0x39,0x46,0x67,0x49,0x36,0x64,0x35,0x33,0x5a,0x72,0x52,0x65,0x37,0x76,0x78,0x61,0x58,0x30,0x6b,0x62,0x6e,0x50]),_0x297fd6=0x28372101,_0x31f957=0x283042e1^_0x297fd6,_0x22f19e=window[_0x15826e([0x44,0x61,0x74,0x65])][_0x15826e([0x6e,0x6f,0x77])](),_0x4bd9f2=_0x3a1f72[_0x15826e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc4fa82=new window[(_0x15826e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x515b25=>{_0x4bd9f2[_0x15826e([0x6f,0x6e,0x63,0x65])](_0x15826e([0x72,0x65,0x61,0x64,0x79]),_0x515b25);}),_0x1cf3e3={[_0x15826e([0x6b,0x74,0x79])]:_0x15826e([0x45,0x43]),[_0x15826e([0x75,0x73,0x65])]:_0x15826e([0x73,0x69,0x67]),[_0x15826e([0x63,0x72,0x76])]:_0x15826e([0x50,0x2d,0x32,0x35,0x36]),[_0x15826e([0x78])]:_0x15826e([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]),[_0x15826e([0x79])]:_0x15826e([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]),[_0x15826e([0x61,0x6c,0x67])]:_0x15826e([0x45,0x53,0x32,0x35,0x36])},_0x458333=_0x4bd9f2[_0x15826e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15826e([0x67,0x65,0x74])](_0x15826e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x161d8b(){let _0x3c2205,_0xd04300=null,_0x43cd83=null;try{if(_0x458333==_0x15826e([0x47,0x50,0x4c]))return _0x15826e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3c2205=_0x2c21b7(),!_0x3c2205)return _0x15826e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3c2205[_0x15826e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x43cd83=_0xd4a3(_0x3c2205[_0x15826e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3c2205[_0x15826e([0x6a,0x74,0x69])])),await _0x3cff69()?_0x18ac76()?_0x3733d6()?_0x15826e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3e5926()?(_0x3c2205[_0x15826e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15826e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xd04300=_0x278bb3(_0x15826e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3c2205[_0x15826e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15826e([0x74,0x72,0x69,0x61,0x6c])&&(_0xd04300=_0x278bb3(_0x15826e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x552d0e()):_0x15826e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15826e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15826e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x34f2f5){return _0x15826e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3733d6(){const _0x29067f=[_0x15826e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15826e([0x74,0x72,0x69,0x61,0x6c])][_0x15826e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c2205[_0x15826e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x22f19e/0x3e8:0xe10*_0x31f957;return _0x3c2205[_0x15826e([0x65,0x78,0x70])]<_0x29067f;}function _0x18ac76(){const _0x293f13=_0x3c2205[_0x15826e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x293f13&&(!!_0x293f13[_0x15826e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15826e([0x2a]))||!!_0x293f13[_0x15826e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15826e([0x55,0x50,0x4c,0x43])));}function _0x3e5926(){const _0xd0681a=_0x3c2205[_0x15826e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xd0681a||0x0==_0xd0681a[_0x15826e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1b325d}=new URL(window[_0x15826e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xd0681a[_0x15826e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b325d))return!0x0;const _0x35831f=_0x1b325d[_0x15826e([0x73,0x70,0x6c,0x69,0x74])](_0x15826e([0x2e]));return _0xd0681a[_0x15826e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f1ce3=>_0x1f1ce3[_0x15826e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15826e([0x2a])))[_0x15826e([0x6d,0x61,0x70])](_0x525e00=>_0x525e00[_0x15826e([0x73,0x70,0x6c,0x69,0x74])](_0x15826e([0x2e])))[_0x15826e([0x73,0x6f,0x6d,0x65])](_0x1bf913=>_0x35831f[_0x15826e([0x65,0x76,0x65,0x72,0x79])]((_0x521838,_0x7c92cb)=>_0x1bf913[_0x7c92cb]===_0x521838||_0x1bf913[_0x7c92cb]===_0x15826e([0x2a])));}function _0x552d0e(){return _0xd04300&&_0x43cd83?new window[(_0x15826e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e4fbc,_0x21618c)=>{_0xd04300[_0x15826e([0x74,0x68,0x65,0x6e])](_0x4e4fbc,_0x21618c),_0x43cd83[_0x15826e([0x74,0x68,0x65,0x6e])](_0x43e2f0=>{_0x43e2f0!=_0x15826e([0x56,0x61,0x6c,0x69,0x64])&&_0x4e4fbc(_0x43e2f0);},_0x21618c);}):_0xd04300||_0x43cd83||_0x15826e([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd4a3(_0x512d81,_0x31d4f7){return new window[(_0x15826e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57f0f0=>{if(_0x5185b3())return _0x57f0f0(_0x15826e([0x56,0x61,0x6c,0x69,0x64]));_0x2b7b94(),_0x4bd9f2[_0x15826e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15826e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47e3e8=!0x1;const _0x3ac9b9=_0x3e5792();function _0x255bb1(_0x3695f8){return!!_0x3695f8&&(typeof _0x3695f8===_0x15826e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3695f8===_0x15826e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3695f8[_0x15826e([0x74,0x68,0x65,0x6e])]===_0x15826e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3695f8[_0x15826e([0x63,0x61,0x74,0x63,0x68])]===_0x15826e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x301154(_0x2ae5e7){_0x5f56d2(_0x2ae5e7)[_0x15826e([0x74,0x68,0x65,0x6e])](_0x54afbc=>{if(!_0x54afbc||_0x54afbc[_0x15826e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15826e([0x6f,0x6b]))return _0x15826e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4995d2(_0x526555(_0x3ac9b9+_0x31d4f7))!=_0x54afbc[_0x15826e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15826e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15826e([0x56,0x61,0x6c,0x69,0x64]);})[_0x15826e([0x74,0x68,0x65,0x6e])](_0x402e04=>(_0x1272c9(),_0x402e04),()=>{const _0x31d4de=_0x493455();return null==_0x31d4de?(_0x1272c9(),_0x15826e([0x56,0x61,0x6c,0x69,0x64])):_0x15826e(_0x22f19e-_0x31d4de>(0xc3ba501^_0x297fd6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15826e([0x74,0x68,0x65,0x6e])](_0x57f0f0)[_0x15826e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x57f0f0(_0x15826e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x167b93=0x2801cf81^_0x297fd6;function _0x1272c9(){const _0x5d91b2=_0x15826e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4995d2(_0x526555(_0x512d81)),_0x262fd5=_0x197727(_0x4995d2(window[_0x15826e([0x4d,0x61,0x74,0x68])][_0x15826e([0x63,0x65,0x69,0x6c])](_0x22f19e/_0x167b93)));window[_0x15826e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15826e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d91b2,_0x262fd5);}function _0x493455(){const _0x54032c=_0x15826e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4995d2(_0x526555(_0x512d81)),_0x5e34a4=window[_0x15826e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15826e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54032c);return _0x5e34a4?window[_0x15826e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x197727(_0x5e34a4),0x10)*_0x167b93:null;}function _0x5f56d2(_0x58a68d){return new window[(_0x15826e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x47ac77,_0x3da650)=>{_0x58a68d[_0x15826e([0x74,0x68,0x65,0x6e])](_0x47ac77,_0x3da650),window[_0x15826e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3da650,0x2836f5c1^_0x297fd6);});}}_0x4bd9f2[_0x15826e([0x6f,0x6e])](_0x15826e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x11e2d1,_0x8b93d0)=>{if(_0x8b93d0[0x0]!=_0x512d81)return _0x57f0f0(_0x15826e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x8b93d0[0x1]={..._0x8b93d0[0x1],[_0x15826e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ac9b9};},{[_0x15826e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15826e([0x68,0x69,0x67,0x68])}),_0x4bd9f2[_0x15826e([0x6f,0x6e])](_0x15826e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5f5dfb=>{_0x255bb1(_0x5f5dfb[_0x15826e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47e3e8=!0x0,_0x301154(_0x5f5dfb[_0x15826e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15826e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15826e([0x6c,0x6f,0x77])}),_0xc4fa82[_0x15826e([0x74,0x68,0x65,0x6e])](()=>{_0x47e3e8||_0x57f0f0(_0x15826e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5185b3(){return _0x4bd9f2[_0x15826e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15826e([0x76,0x69,0x65,0x77])][_0x15826e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15826e([0x61,0x75,0x74,0x6f]);}function _0x2b7b94(){_0x4bd9f2[_0x15826e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15826e([0x76,0x69,0x65,0x77])][_0x15826e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15826e([0x61,0x75,0x74,0x6f]);}}function _0x278bb3(_0x4aa599){const _0x2ca106=[new window[(_0x15826e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x151c3c=>setTimeout(_0x151c3c,0x283e1fcd^_0x297fd6)),_0xc4fa82[_0x15826e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15826e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x478dfb=>{let _0x2ee864=0x0;_0x4bd9f2[_0x15826e([0x6d,0x6f,0x64,0x65,0x6c])][_0x15826e([0x6f,0x6e])](_0x15826e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x475861,_0x8c2f18)=>{_0x8c2f18[0x0][_0x15826e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ee864++,_0x2ee864==(0x283720f9^_0x297fd6)&&(_0x478dfb(),_0x475861[_0x15826e([0x6f,0x66,0x66])]());});}))];return window[_0x15826e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15826e([0x72,0x61,0x63,0x65])](_0x2ca106)[_0x15826e([0x74,0x68,0x65,0x6e])](()=>_0x4aa599);}async function _0x4ab4a3(){await _0xc4fa82,_0x4bd9f2[_0x15826e([0x6d,0x6f,0x64,0x65,0x6c])][_0x15826e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x591cd4,_0x4bd9f2[_0x15826e([0x6d,0x6f,0x64,0x65,0x6c])][_0x15826e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x591cd4,_0x4bd9f2[_0x15826e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15826e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3fe672(_0xf1f70d){const _0x33ed7e=_0x165ba7();_0x4bd9f2[_0x33ed7e]=_0x15826e([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xf1f70d,_0xf1f70d!=_0x15826e([0x56,0x61,0x6c,0x69,0x64])&&_0x4ab4a3();}function _0x165ba7(){const _0x117bd0=window[_0x15826e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15826e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15826e([0x6e,0x6f,0x77])]())[_0x15826e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15826e([0x2e]),'');let _0x3b1864=_0x15826e([0x77]);for(let _0x4cad49=0x0;_0x4cad49<_0x117bd0[_0x15826e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cad49+=0x2){let _0x4c7ac9=window[_0x15826e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x117bd0[_0x15826e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4cad49,_0x4cad49+0x2));_0x4c7ac9>=_0x58a1dc[_0x15826e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c7ac9-=_0x58a1dc[_0x15826e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b1864+=_0x58a1dc[_0x4c7ac9];}return _0x3b1864;}function _0x2c21b7(){const _0x5b3a43=_0x458333[_0x15826e([0x73,0x70,0x6c,0x69,0x74])](_0x15826e([0x2e]));if(0x3!=_0x5b3a43[_0x15826e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13afe0(_0x5b3a43[0x1]);function _0x13afe0(_0x5cfda8){const _0x2218fd=_0x24e538(_0x5cfda8);return _0x2218fd&&_0x557145()?_0x2218fd:null;function _0x557145(){const _0x1f1e8f=_0x2218fd[_0x15826e([0x6a,0x74,0x69])],_0x25fdee=window[_0x15826e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f1e8f[_0x15826e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f1e8f[_0x15826e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ad53d={..._0x2218fd,[_0x15826e([0x6a,0x74,0x69])]:_0x1f1e8f[_0x15826e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f1e8f[_0x15826e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ad53d[_0x15826e([0x76,0x63])],_0x526555(_0x4ad53d)==_0x25fdee;}}}async function _0x3cff69(){let _0x139c31=!0x0;try{const _0x394872=_0x458333[_0x15826e([0x73,0x70,0x6c,0x69,0x74])](_0x15826e([0x2e])),[_0x11fb49,_0x1f98be,_0x253d82]=_0x394872;return _0x564f9e(_0x11fb49),await _0x11dca3(_0x11fb49,_0x1f98be,_0x253d82),_0x139c31;}catch(_0x12a2f6){return!0x1;}function _0x564f9e(_0x4d512e){const _0x453efa=_0x24e538(_0x4d512e);_0x453efa&&_0x453efa[_0x15826e([0x61,0x6c,0x67])]==_0x15826e([0x45,0x53,0x32,0x35,0x36])||(_0x139c31=!0x1);}async function _0x11dca3(_0x470017,_0x335f0d,_0x18894e){const _0x2f1ac1=window[_0x15826e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15826e([0x66,0x72,0x6f,0x6d])](_0x3b103a(_0x18894e),_0xd0690d=>_0xd0690d[_0x15826e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f2cc9=new window[(_0x15826e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15826e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x470017+_0x15826e([0x2e])+_0x335f0d),_0x44852d=window[_0x15826e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15826e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x44852d)return;const _0x1572c4=await _0x44852d[_0x15826e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15826e([0x6a,0x77,0x6b]),_0x1cf3e3,{[_0x15826e([0x6e,0x61,0x6d,0x65])]:_0x15826e([0x45,0x43,0x44,0x53,0x41]),[_0x15826e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15826e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15826e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x44852d[_0x15826e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15826e([0x6e,0x61,0x6d,0x65])]:_0x15826e([0x45,0x43,0x44,0x53,0x41]),[_0x15826e([0x68,0x61,0x73,0x68])]:{[_0x15826e([0x6e,0x61,0x6d,0x65])]:_0x15826e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1572c4,_0x2f1ac1,_0x4f2cc9)||(_0x139c31=!0x1);}}function _0x24e538(_0x5b1cf5){return _0x5b1cf5[_0x15826e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15826e([0x65,0x79]))?JSON[_0x15826e([0x70,0x61,0x72,0x73,0x65])](_0x3b103a(_0x5b1cf5)):null;}function _0x3b103a(_0x9521d8){return window[_0x15826e([0x61,0x74,0x6f,0x62])](_0x9521d8[_0x15826e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15826e([0x2b]))[_0x15826e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15826e([0x2f])));}function _0x526555(_0x180ee5){let _0x309887=0x1505;function _0x3adb9d(_0x2efa9c){for(let _0x18afbf=0x0;_0x18afbf<_0x2efa9c[_0x15826e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18afbf++){const _0x228a1e=_0x2efa9c[_0x15826e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18afbf);_0x309887=(_0x309887<<0x5)+_0x309887+_0x228a1e,_0x309887&=_0x309887;}}function _0x583e8d(_0x14fc36){Array[_0x15826e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x14fc36)?_0x14fc36[_0x15826e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x583e8d):_0x14fc36&&typeof _0x14fc36==_0x15826e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15826e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x14fc36)[_0x15826e([0x73,0x6f,0x72,0x74])]()[_0x15826e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5b631e,_0x208308])=>{_0x3adb9d(_0x5b631e),_0x583e8d(_0x208308);}):_0x3adb9d(window[_0x15826e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x14fc36));}return _0x583e8d(_0x180ee5),_0x309887>>>0x0;}function _0x4995d2(_0x5cbd3d){return _0x5cbd3d[_0x15826e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15826e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15826e([0x30]));}function _0x197727(_0x7bb8f7){return _0x7bb8f7[_0x15826e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15826e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15826e([0x6a,0x6f,0x69,0x6e])]('');}function _0x591cd4(){}function _0x15826e(_0x31f272){return _0x31f272['map'](_0x31bdf2=>String['fromCharCode'](_0x31bdf2))['join']('');}_0x3fe672(await _0x161d8b());}(this);}['_initSchema'](){const _0x3fcefb=this['editor']['model']['schema'];_0x3fcefb['isRegistered']('imageBlock')&&_0x3fcefb['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x3fcefb['isRegistered']('imageInline')&&_0x3fcefb['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x2f099c=this['editor'];_0x2f099c['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x2f099c['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x593274=>_0x593274['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x14f57e=_0x2f099c['commands']['get']('replaceImageSource');_0x14f57e&&this['listenTo'](_0x14f57e,'cleanupImage',(_0x27a9a8,[_0x130c9e,_0x3562cf])=>{_0x130c9e['removeAttribute']('uploadcareImageId',_0x3562cf);});}['_initConfig'](){const _0x3d6110=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5b03f9=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x3fb6af(_0x51bda0['document'],'uc-config',{..._0x3d6110,'pubkey':_0x5b03f9,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x58e624=>{if('closeMax'==_0x58e624)return'#uc-icon-arrow-down';},_0x51bda0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x3fb6af(_0x51bda0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x51bda0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0xc5c47d=this['editor']['commands']['get']('insertImage');_0xc5c47d&&this['listenTo'](_0xc5c47d,'execute',()=>{const _0x96782f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x96782f&&_0x96782f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x96782f);});});const _0x3b9be4=this['editor']['commands']['get']('uploadcareImageReplace');_0x3b9be4&&this['listenTo'](_0x3b9be4,'execute',()=>{const _0x3b80be=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3b80be&&_0x3b80be['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3b80be);});});}}class u extends _0x4ea000{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb947f5){super(_0xb947f5),_0xb947f5['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x270be8['defineComponents'](_0x270be8);}}class ta extends _0x53e6cd{constructor(_0x45ba90){super(_0x45ba90);const t=_0x45ba90['t'],_0xecfb97=this['bindTemplate'],_0x19a409=new _0x3fba93();_0x19a409['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':[_0x19a409,{'text':_0xecfb97['to']('imageUploadProgress',_0x2399ee=>t('Loading\x20image...')+'\x20('+(_0x2399ee||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x53e6cd{constructor(_0x4279f4){super(_0x4279f4);const t=_0x4279f4['t'];this['set']('errorType',null);const _0x3382af=new _0x4aa3de(_0x4279f4);_0x3382af['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3382af['withText']=!0x0,_0x3382af['class']='ck-button-action',_0x3382af['on']('execute',()=>{this['fire']('retry');}),_0x3382af['bind']('isVisible')['to'](this,'errorType',_0x40cb24=>'NotFound'!==_0x40cb24);const _0x5b1c78=new at();_0x5b1c78['content']=et,_0x5b1c78['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x54f7b4=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':[_0x5b1c78,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x54f7b4['to']('errorType',_0x5346d7=>t('NotFound'!==_0x5346d7?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3382af]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x53e6cd{constructor(_0x393311,_0xfd1fb1){super(_0x393311);const _0x33306e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xfd1fb1,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x33306e['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x463954,_0x3e9d1d,_0x4c7d44){super(_0x463954),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x463954),this['_errorView']=new rt(_0x463954),this['_editingView']=new tt(_0x463954,_0x4c7d44),this['_focusableView']=new _0x53e6cd(_0x463954),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3e9d1d),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'],_0x310f49=>{this['_addUploadcareImageEditorListeners'](_0x310f49);});}),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'](_0x3717c7,_0x5ada74){const _0x9dbec3='uc-cloud-image-editor',_0x5a249e=_0x3717c7['querySelector'](_0x9dbec3);if(_0x5a249e)return _0x5ada74(_0x5a249e);const _0x56cc59=new MutationObserver(_0x2faf7d=>{const _0x5e4ffe=_0x2faf7d['filter'](_0x4865d4=>_0x4865d4['target']===_0x3717c7&&_0x4865d4['addedNodes']['length']>0x0&&_0x4865d4['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x9dbec3);_0x5e4ffe['length']&&(_0x56cc59['disconnect'](),_0x5ada74(_0x5e4ffe[0x0]['addedNodes'][0x0]));});_0x56cc59['observe'](_0x3717c7,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x571508){_0x571508['addEventListener']('apply',_0x1d0c63=>{this['fire']('apply',{'imageSrc':_0x1d0c63['detail']['cdnUrl']});}),_0x571508['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4fca61(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x28c1fa,_0x430124,_0x888590){super(),this['_editor']=_0x28c1fa,this['_dialog']=_0x430124,this['_imageElement']=_0x888590,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 _0x25f3cf=this['_imageElement'],_0xabb26e=_0x25f3cf['getAttribute']('uploadcareImageId'),_0x4fab9c=_0x25f3cf['getAttribute']('src');if(_0xabb26e)await this['_loadImageInfo'](_0xabb26e,_0x4fab9c);else{if(this['_imageCache']['has'](_0x4fab9c)){const _0x1dd1f9=this['_imageCache']['get'](_0x4fab9c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1dd1f9['url'],this['imageDimension']=_0x1dd1f9['dimension'],this['imageId']=_0x1dd1f9['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x4f32a2}=this['_editor'],t=_0x4f32a2['t'],_0x4c5947=new Z(_0x4f32a2,this['imageStatus'],this['_attributes']);_0x4c5947['bind']('status')['to'](this,'imageStatus'),_0x4c5947['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4c5947['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4c5947['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4c5947,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0xcc4bda,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4c5947,'position':_0x1abee9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4c5947['focus']();},'onHide':()=>{_0x4c5947['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x4b8cee=>!F(_0x4b8cee,_0x4c5947['element'])}});}['_loadImageInfo'](_0x1e0358,_0x44121c){return C['getInfo'](_0x1e0358,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x27db37=>{const {width:_0x4f7753,height:_0x5f1519}=_0x27db37['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x44121c,this['imageDimension']={'width':_0x4f7753,'height':_0x5f1519},this['imageId']=_0x1e0358;})['catch'](_0x554a62=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x554a62['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x17cfb0,_0x7f3605){return this['_getImageAsFile'](_0x17cfb0)['then'](_0x97bde9=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x7f3605['signal'],'file':_0x97bde9,'onProgress':_0x3bbda0=>{_0x3bbda0&&_0x3bbda0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3bbda0['value']));}}))['then'](_0x110ee9=>{const {width:_0x174650,height:_0x38d345}=_0x110ee9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x110ee9['cdnUrl'],this['imageDimension']={'width':_0x174650,'height':_0x38d345},this['imageId']=_0x110ee9['uuid'],this['imageUploadProgress']=null;const _0x38d7df=_0x17cfb0['getAttribute']('src');this['_imageCache']['set'](_0x38d7df,{'id':_0x110ee9['uuid'],'url':_0x110ee9['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x2fa465=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2fa465['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1ba08b,_0x4669f3){_0x1ba08b['on']('apply',(_0xeb6daa,_0x2b8c67)=>{this['_replaceImage'](_0x4669f3,_0x2b8c67['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1ba08b['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1ba08b['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x23a134,_0x54c04b,_0x1faec9){const _0x151cda=this['_editor'],{width:_0x295c9c,height:_0x5d231c}=A(_0x54c04b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x54e5ad,imageSources:_0x85b6f1}=E(_0x54c04b,_0x295c9c);_0x151cda['model']['change'](_0x1cb6e3=>{if('$graveyard'===_0x23a134['root']['rootName']){_0x151cda['execute']('insertImage',{'imageType':_0x23a134['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x23a134['getAttributes']()),'uploadcareImageId':_0x1faec9,'src':_0x54e5ad,'sources':_0x85b6f1,'width':_0x295c9c,'height':_0x5d231c}});const _0x1d843a=_0x23a134['getChildren']();_0x23a134=_0x151cda['model']['document']['selection']['getSelectedElement']();for(const _0xe8f9ad of _0x1d843a)_0x1cb6e3['append'](_0x1cb6e3['cloneElement'](_0xe8f9ad),_0x23a134);}else _0x1cb6e3['setSelection'](_0x23a134,'on'),_0x151cda['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x23a134['getAttributes']()),'uploadcareImageId':_0x1faec9,'src':_0x54e5ad,'sources':_0x85b6f1,'width':_0x295c9c,'height':_0x5d231c},_0x23a134);_0x1cb6e3['setSelection'](_0x23a134,'on');});}async['_getImageAsFile'](_0x29f692){const _0x11aa4d=_0x51bda0['window'],_0x5bd794=_0x51bda0['document']['location']['href'],_0x30c54b=new _0x11aa4d['URL'](_0x29f692['getAttribute']('src'),_0x5bd794);if('data:'===_0x30c54b['protocol']){const _0x330dcd=_0x30c54b['href']['split'](','),_0x3d876a=_0x330dcd[0x0]['match'](/:(.*?);/)[0x1],_0x328800=_0x3d876a['split']('/')[0x1],_0x106608=_0x11aa4d['atob'](_0x330dcd[_0x330dcd['length']-0x1]);let _0x332864=_0x106608['length'];const _0x5ae778=new _0x11aa4d['Uint8Array'](_0x332864);for(;_0x332864--;)_0x5ae778[_0x332864]=_0x106608['charCodeAt'](_0x332864);return new _0x11aa4d['File']([_0x5ae778],'image.'+_0x328800,{'type':_0x3d876a});}const _0x1067f4=_0x30c54b['href']['split']('/'),_0x1d6691=_0x1067f4[_0x1067f4['length']-0x1],_0x35d7e6=_0x1d6691['split']('.')[0x1];return _0x11aa4d['fetch'](_0x30c54b['href'])['then'](_0x3feaaf=>_0x3feaaf['clone']()['blob']())['then'](_0x54d1b1=>new _0x11aa4d['File']([_0x54d1b1],_0x1d6691,{'type':'image/'+_0x35d7e6}));}}class J extends _0xc4f8ac{['imageEditController'];static get['requires'](){return[_0x229546];}['_isEditable'];constructor(_0x28973c){super(_0x28973c),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x12c016){const _0x23f2e4=V(_0x12c016);return _0x2c2889=>!(!_0x2c2889||!_0x2c2889['is']('element','imageBlock')&&!_0x2c2889['is']('element','imageInline'))&&(!!_0x2c2889['hasAttribute']('uploadcareImageId')||!!_0x2c2889['hasAttribute']('src')&&_0x23f2e4(_0x2c2889['getAttribute']('src')));}(_0x28973c['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x45f6bc=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x45f6bc);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x4c1699=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4c1699&&(_0x4c1699['is']('element','imageBlock')||_0x4c1699['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x229546),_0x4c1699),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0xc4f8ac{['refresh'](){const _0x58071d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x58071d&&(_0x58071d['is']('element','imageBlock')||_0x58071d['is']('element','imageInline')));}['execute'](_0x3da3d5){const _0x5ec4d5=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x2ef20c=>{_0x2ef20c['setAttributes'](_0x3da3d5,_0x5ec4d5),_0x2ef20c['removeAttribute']('srcset',_0x5ec4d5),_0x2ef20c['removeAttribute']('sizes',_0x5ec4d5);});}}class g extends _0x4ea000{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x53017a,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1f370c}=this;_0x1f370c['commands']['add']('uploadcareImageEdit',new J(_0x1f370c)),_0x1f370c['commands']['add']('uploadcareImageReplace',new O(_0x1f370c));}}class j extends _0x4ea000{['_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 _0x32b532=this['editor'];_0x32b532['ui']['componentFactory']['add']('uploadcareImageEdit',_0x297061=>{const _0x362e50=_0x32b532['commands']['get']('uploadcareImageEdit'),_0x342b3b=new _0x4aa3de(_0x297061),t=_0x297061['t'];return _0x342b3b['set']({'icon':_0xcc4bda,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x342b3b['bind']('isEnabled')['to'](_0x362e50),_0x342b3b['bind']('isOn')['to'](_0x362e50,'isActive'),this['listenTo'](_0x342b3b,'execute',()=>{_0x32b532['execute']('uploadcareImageEdit'),_0x32b532['editing']['view']['focus']();}),_0x342b3b;}),this['_initConfig']();}['_initConfig'](){const _0x56b0bb=_0x3fb6af(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x56b0bb),this['listenTo'](this['editor'],'destroy',()=>{_0x56b0bb['remove']();});}}class P extends _0x4ea000{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[g,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,P as UploadcareImageEdit,g as UploadcareImageEditEditing,j as UploadcareImageEditUI,e as UploadcareUI};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-uploadcare",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250402.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-20250402.0",
|
|
27
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250402.0",
|
|
28
|
+
"@ckeditor/ckeditor5-image": "0.0.0-nightly-20250402.0",
|
|
29
|
+
"@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250402.0",
|
|
30
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250402.0",
|
|
31
|
+
"@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250402.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250402.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20250402.0",
|
|
34
34
|
"@uploadcare/file-uploader": "1.12.0",
|
|
35
35
|
"@uploadcare/upload-client": "6.14.1"
|
|
36
36
|
},
|
package/src/uploadcareediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x55af7e=_0x518f;(function(_0x4b3c47,_0x87ceba){const _0x4875d4=_0x518f,_0x5d4c32=_0x4b3c47();while(!![]){try{const _0xab2603=-parseInt(_0x4875d4(0xcb))/0x1+-parseInt(_0x4875d4(0xc9))/0x2+parseInt(_0x4875d4(0x110))/0x3+-parseInt(_0x4875d4(0x103))/0x4+-parseInt(_0x4875d4(0xe3))/0x5+parseInt(_0x4875d4(0xcc))/0x6+parseInt(_0x4875d4(0xe0))/0x7;if(_0xab2603===_0x87ceba)break;else _0x5d4c32['push'](_0x5d4c32['shift']());}catch(_0x30ab5d){_0x5d4c32['push'](_0x5d4c32['shift']());}}}(_0x66a0,0x3827e));import{Plugin as _0x42d22f}from'ckeditor5/src/core.js';import{Dialog as _0x363bda}from'ckeditor5/src/ui.js';function _0x66a0(){const _0x4bb52a=['listenTo','editor','uploader','view','join','PictureEditing','remove','getSelectedElement','_initConversion','conversion','add','selection','schema','_initCtx','querySelector','uc-upload-ctx-provider','render','locale','execute','configElement','requires','upcast','contentLanguage','extend','input[uploadcare-file-input]','UploadcareEditing','ctxElement','uploadcare.uploader','968232tNCtBW','isRegistered','insertImage','appendChild','removeAttribute','pluginName','closeMax','_configElement','elementToAttribute','cleanupImage','getAttribute','imageBlock','_initConfig','712734IlbRwU','_initImageProcessingIndicator','init','downcast','isOfficialPlugin','afterInit','attributeToAttribute','replaceImageSource','isPremiumPlugin','imageInline','824122aAiEse','for','74610rnCDfR','1372842dZKZdk','get','config','model','true','uploadcareImageReplace','data-uc-image-id','commands','once','uc-config','_initSchema','body','uploadcareImageId','document','#uc-icon-arrow-down','editing','iconHrefResolver','destroy','uploadcare.pubkey','\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09','4014213rzFMfb','href','uploadcare','405505roDSOb','map','_ctxElement','fromCharCode'];_0x66a0=function(){return _0x4bb52a;};return _0x66a0();}import{createElement as _0x478a41,global as _0x335bf2,uid as _0xdc22e6}from'ckeditor5/src/utils.js';import _0x4c8448 from'./uploadcarecommand.js';import _0x43e216 from'./uploadcareuploadadapter.js';function _0x518f(_0x2602ab,_0x232dd9){const _0x66a033=_0x66a0();return _0x518f=function(_0x518fd5,_0x451e1d){_0x518fd5=_0x518fd5-0xc8;let _0x8a0ed3=_0x66a033[_0x518fd5];return _0x8a0ed3;},_0x518f(_0x2602ab,_0x232dd9);}import{showImageProcessingIndicator as _0xc418a5}from'./utils/editingutils.js';export default class i extends _0x42d22f{[_0x55af7e(0x10a)]=null;[_0x55af7e(0xe5)]=null;static get[_0x55af7e(0x108)](){const _0x4c5297=_0x55af7e;return _0x4c5297(0x100);}static get[_0x55af7e(0xfb)](){const _0x119187=_0x55af7e;return[_0x119187(0xec),_0x43e216,_0x363bda];}static get[_0x55af7e(0x114)](){return!0x0;}static get[_0x55af7e(0x118)](){return!0x0;}get[_0x55af7e(0xfa)](){const _0x4dbf47=_0x55af7e;return this[_0x4dbf47(0x10a)];}get[_0x55af7e(0x101)](){const _0x3dc439=_0x55af7e;return this[_0x3dc439(0xe5)];}[_0x55af7e(0x112)](){const _0x2f192b=_0x55af7e,_0xbce51d=this[_0x2f192b(0xe8)];_0xbce51d[_0x2f192b(0xd3)][_0x2f192b(0xf1)](_0x2f192b(0xe2),new _0x4c8448(_0xbce51d));}[_0x55af7e(0x115)](){const _0x2d9f05=_0x55af7e;this[_0x2d9f05(0xd6)](),this[_0x2d9f05(0xef)](),this[_0x2d9f05(0x10f)](),this[_0x2d9f05(0xf4)](),this[_0x2d9f05(0x111)](),this[_0x2d9f05(0xe7)](this[_0x2d9f05(0xe8)],_0x2d9f05(0xdd),()=>{const _0x245659=_0x2d9f05;this[_0x245659(0x10a)]&&(this[_0x245659(0x10a)][_0x245659(0xed)](),this[_0x245659(0x10a)]=null),this[_0x245659(0xe5)]&&(this[_0x245659(0xe5)][_0x245659(0xed)](),this[_0x245659(0xe5)]=null);const _0x2288f7=_0x335bf2[_0x245659(0xd9)][_0x245659(0xf5)](_0x245659(0xff));_0x2288f7&&_0x2288f7[_0x245659(0xed)]();}),async function(_0x3df11e){const _0x16ab51=_0xc20d88([0x6f,0x72,0x73,0x76,0x69,0x30,0x7a,0x64,0x50,0x79,0x37,0x70,0x59,0x77,0x4e,0x6a,0x43,0x41,0x47,0x57,0x4d,0x4b,0x4c,0x52,0x75,0x4a,0x68,0x6c,0x34,0x56,0x36,0x6d,0x4f,0x74,0x49,0x48,0x63,0x67,0x33,0x78,0x42,0x65,0x44,0x62,0x38,0x51,0x5a,0x32,0x58,0x71,0x45,0x53,0x6e,0x66,0x31,0x46,0x35,0x6b,0x39,0x54,0x55,0x61]),_0x1fb0e3=0x88d36db,_0x32a18a=0x88a556b^_0x1fb0e3,_0x392f2d=window[_0xc20d88([0x44,0x61,0x74,0x65])][_0xc20d88([0x6e,0x6f,0x77])](),_0x5501fa=_0x3df11e[_0xc20d88([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xcfac53=new window[(_0xc20d88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x524857=>{_0x5501fa[_0xc20d88([0x6f,0x6e,0x63,0x65])](_0xc20d88([0x72,0x65,0x61,0x64,0x79]),_0x524857);}),_0x5ee562={[_0xc20d88([0x6b,0x74,0x79])]:_0xc20d88([0x45,0x43]),[_0xc20d88([0x75,0x73,0x65])]:_0xc20d88([0x73,0x69,0x67]),[_0xc20d88([0x63,0x72,0x76])]:_0xc20d88([0x50,0x2d,0x32,0x35,0x36]),[_0xc20d88([0x78])]:_0xc20d88([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]),[_0xc20d88([0x79])]:_0xc20d88([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]),[_0xc20d88([0x61,0x6c,0x67])]:_0xc20d88([0x45,0x53,0x32,0x35,0x36])},_0x58951a=_0x5501fa[_0xc20d88([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xc20d88([0x67,0x65,0x74])](_0xc20d88([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x14fc7a(){let _0x19aae8,_0x5c9f14=null,_0x6cc70d=null;try{if(_0x58951a==_0xc20d88([0x47,0x50,0x4c]))return _0xc20d88([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19aae8=_0x4ffb0d(),!_0x19aae8)return _0xc20d88([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19aae8[_0xc20d88([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x6cc70d=_0xfa4f2d(_0x19aae8[_0xc20d88([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19aae8[_0xc20d88([0x6a,0x74,0x69])])),await _0x152f20()?_0x482620()?_0x99e51a()?_0xc20d88([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29b3e2()?(_0x19aae8[_0xc20d88([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc20d88([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c9f14=_0x2efea7(_0xc20d88([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x19aae8[_0xc20d88([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc20d88([0x74,0x72,0x69,0x61,0x6c])&&(_0x5c9f14=_0x2efea7(_0xc20d88([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1d5076()):_0xc20d88([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xc20d88([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xc20d88([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x131af6){return _0xc20d88([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x99e51a(){const _0x2814aa=[_0xc20d88([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xc20d88([0x74,0x72,0x69,0x61,0x6c])][_0xc20d88([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19aae8[_0xc20d88([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x392f2d/0x3e8:0xe10*_0x32a18a;return _0x19aae8[_0xc20d88([0x65,0x78,0x70])]<_0x2814aa;}function _0x482620(){const _0x4a9e57=_0x19aae8[_0xc20d88([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4a9e57&&(!!_0x4a9e57[_0xc20d88([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc20d88([0x2a]))||!!_0x4a9e57[_0xc20d88([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc20d88([0x55,0x50,0x4c,0x43])));}function _0x29b3e2(){const _0x4b67a2=_0x518f,_0x1e0e8f=_0x19aae8[_0xc20d88([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1e0e8f||0x0==_0x1e0e8f[_0xc20d88([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x57a7c9}=new URL(window[_0xc20d88([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4b67a2(0xe1)]);if(_0x1e0e8f[_0xc20d88([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57a7c9))return!0x0;const _0x130cdf=_0x57a7c9[_0xc20d88([0x73,0x70,0x6c,0x69,0x74])](_0xc20d88([0x2e]));return _0x1e0e8f[_0xc20d88([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xcbeb0b=>_0xcbeb0b[_0xc20d88([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc20d88([0x2a])))[_0xc20d88([0x6d,0x61,0x70])](_0x45e74c=>_0x45e74c[_0xc20d88([0x73,0x70,0x6c,0x69,0x74])](_0xc20d88([0x2e])))[_0xc20d88([0x73,0x6f,0x6d,0x65])](_0x1b61ef=>_0x130cdf[_0xc20d88([0x65,0x76,0x65,0x72,0x79])]((_0x166a67,_0x1e9207)=>_0x1b61ef[_0x1e9207]===_0x166a67||_0x1b61ef[_0x1e9207]===_0xc20d88([0x2a])));}function _0x1d5076(){return _0x5c9f14&&_0x6cc70d?new window[(_0xc20d88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x177aed,_0x5ccbc4)=>{_0x5c9f14[_0xc20d88([0x74,0x68,0x65,0x6e])](_0x177aed,_0x5ccbc4),_0x6cc70d[_0xc20d88([0x74,0x68,0x65,0x6e])](_0x3afd92=>{_0x3afd92!=_0xc20d88([0x56,0x61,0x6c,0x69,0x64])&&_0x177aed(_0x3afd92);},_0x5ccbc4);}):_0x5c9f14||_0x6cc70d||_0xc20d88([0x56,0x61,0x6c,0x69,0x64]);}}function _0xfa4f2d(_0x2464e3,_0x4e3624){return new window[(_0xc20d88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d5e9c=>{if(_0x5f308d())return _0x2d5e9c(_0xc20d88([0x56,0x61,0x6c,0x69,0x64]));_0x1fb69d(),_0x5501fa[_0xc20d88([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xc20d88([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x211751=!0x1;const _0x1e8513=_0xdc22e6();function _0x1132b3(_0x488dd7){return!!_0x488dd7&&(typeof _0x488dd7===_0xc20d88([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x488dd7===_0xc20d88([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x488dd7[_0xc20d88([0x74,0x68,0x65,0x6e])]===_0xc20d88([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x488dd7[_0xc20d88([0x63,0x61,0x74,0x63,0x68])]===_0xc20d88([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27c3a6(_0x3d3d1d){_0x3c4dff(_0x3d3d1d)[_0xc20d88([0x74,0x68,0x65,0x6e])](_0x1fb223=>{if(!_0x1fb223||_0x1fb223[_0xc20d88([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xc20d88([0x6f,0x6b]))return _0xc20d88([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x6ea600(_0x590627(_0x1e8513+_0x4e3624))!=_0x1fb223[_0xc20d88([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xc20d88([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xc20d88([0x56,0x61,0x6c,0x69,0x64]);})[_0xc20d88([0x74,0x68,0x65,0x6e])](_0x17b5ab=>(_0x5acf9a(),_0x17b5ab),()=>{const _0x47bd11=_0x35aea1();return null==_0x47bd11?(_0x5acf9a(),_0xc20d88([0x56,0x61,0x6c,0x69,0x64])):_0xc20d88(_0x392f2d-_0x47bd11>(0x2c81b2db^_0x1fb0e3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xc20d88([0x74,0x68,0x65,0x6e])](_0x2d5e9c)[_0xc20d88([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d5e9c(_0xc20d88([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24818d=0x8bbd85b^_0x1fb0e3;function _0x5acf9a(){const _0x768370=_0xc20d88([0x6c,0x6c,0x63,0x74,0x2d])+_0x6ea600(_0x590627(_0x2464e3)),_0x114138=_0x9bc050(_0x6ea600(window[_0xc20d88([0x4d,0x61,0x74,0x68])][_0xc20d88([0x63,0x65,0x69,0x6c])](_0x392f2d/_0x24818d)));window[_0xc20d88([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc20d88([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x768370,_0x114138);}function _0x35aea1(){const _0x5505f0=_0xc20d88([0x6c,0x6c,0x63,0x74,0x2d])+_0x6ea600(_0x590627(_0x2464e3)),_0x56c796=window[_0xc20d88([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc20d88([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5505f0);return _0x56c796?window[_0xc20d88([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9bc050(_0x56c796),0x10)*_0x24818d:null;}function _0x3c4dff(_0x3710d5){return new window[(_0xc20d88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a5c4b,_0x228880)=>{_0x3710d5[_0xc20d88([0x74,0x68,0x65,0x6e])](_0x3a5c4b,_0x228880),window[_0xc20d88([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x228880,0x88ce21b^_0x1fb0e3);});}}_0x5501fa[_0xc20d88([0x6f,0x6e])](_0xc20d88([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4eb03c,_0xa12f25)=>{if(_0xa12f25[0x0]!=_0x2464e3)return _0x2d5e9c(_0xc20d88([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa12f25[0x1]={..._0xa12f25[0x1],[_0xc20d88([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e8513};},{[_0xc20d88([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc20d88([0x68,0x69,0x67,0x68])}),_0x5501fa[_0xc20d88([0x6f,0x6e])](_0xc20d88([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x63cd65=>{_0x1132b3(_0x63cd65[_0xc20d88([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x211751=!0x0,_0x27c3a6(_0x63cd65[_0xc20d88([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xc20d88([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc20d88([0x6c,0x6f,0x77])}),_0xcfac53[_0xc20d88([0x74,0x68,0x65,0x6e])](()=>{_0x211751||_0x2d5e9c(_0xc20d88([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5f308d(){return _0x5501fa[_0xc20d88([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc20d88([0x76,0x69,0x65,0x77])][_0xc20d88([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xc20d88([0x61,0x75,0x74,0x6f]);}function _0x1fb69d(){_0x5501fa[_0xc20d88([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc20d88([0x76,0x69,0x65,0x77])][_0xc20d88([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc20d88([0x61,0x75,0x74,0x6f]);}}function _0x2efea7(_0x3a36c3){const _0x4ae9e3=[new window[(_0xc20d88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6eca3b=>setTimeout(_0x6eca3b,0x8840817^_0x1fb0e3)),_0xcfac53[_0xc20d88([0x74,0x68,0x65,0x6e])](()=>new window[(_0xc20d88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e2724=>{let _0x3c967b=0x0;_0x5501fa[_0xc20d88([0x6d,0x6f,0x64,0x65,0x6c])][_0xc20d88([0x6f,0x6e])](_0xc20d88([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x42f8c0,_0x1fabd4)=>{_0x1fabd4[0x0][_0xc20d88([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c967b++,_0x3c967b==(0x88d3723^_0x1fb0e3)&&(_0x4e2724(),_0x42f8c0[_0xc20d88([0x6f,0x66,0x66])]());});}))];return window[_0xc20d88([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc20d88([0x72,0x61,0x63,0x65])](_0x4ae9e3)[_0xc20d88([0x74,0x68,0x65,0x6e])](()=>_0x3a36c3);}async function _0x55cfc0(){await _0xcfac53,_0x5501fa[_0xc20d88([0x6d,0x6f,0x64,0x65,0x6c])][_0xc20d88([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3029b1,_0x5501fa[_0xc20d88([0x6d,0x6f,0x64,0x65,0x6c])][_0xc20d88([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3029b1,_0x5501fa[_0xc20d88([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xc20d88([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x13b611(_0x4e6eb9){const _0x5c5227=_0x285607();_0x5501fa[_0x5c5227]=_0xc20d88([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e6eb9,_0x4e6eb9!=_0xc20d88([0x56,0x61,0x6c,0x69,0x64])&&_0x55cfc0();}function _0x285607(){const _0x5f54fb=window[_0xc20d88([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xc20d88([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xc20d88([0x6e,0x6f,0x77])]())[_0xc20d88([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xc20d88([0x2e]),'');let _0x37fb51=_0xc20d88([0x6f]);for(let _0x2645a3=0x0;_0x2645a3<_0x5f54fb[_0xc20d88([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2645a3+=0x2){let _0x4d3d45=window[_0xc20d88([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f54fb[_0xc20d88([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2645a3,_0x2645a3+0x2));_0x4d3d45>=_0x16ab51[_0xc20d88([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d3d45-=_0x16ab51[_0xc20d88([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x37fb51+=_0x16ab51[_0x4d3d45];}return _0x37fb51;}function _0x4ffb0d(){const _0x5a0741=_0x58951a[_0xc20d88([0x73,0x70,0x6c,0x69,0x74])](_0xc20d88([0x2e]));if(0x3!=_0x5a0741[_0xc20d88([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xc30169(_0x5a0741[0x1]);function _0xc30169(_0x263bec){const _0x5951c3=_0x11122d(_0x263bec);return _0x5951c3&&_0x390f33()?_0x5951c3:null;function _0x390f33(){const _0x4fe2d7=_0x5951c3[_0xc20d88([0x6a,0x74,0x69])],_0xa31574=window[_0xc20d88([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fe2d7[_0xc20d88([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fe2d7[_0xc20d88([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5ddf2f={..._0x5951c3,[_0xc20d88([0x6a,0x74,0x69])]:_0x4fe2d7[_0xc20d88([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4fe2d7[_0xc20d88([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5ddf2f[_0xc20d88([0x76,0x63])],_0x590627(_0x5ddf2f)==_0xa31574;}}}async function _0x152f20(){let _0x4d8f0c=!0x0;try{const _0x246aa7=_0x58951a[_0xc20d88([0x73,0x70,0x6c,0x69,0x74])](_0xc20d88([0x2e])),[_0x5c8f10,_0x575302,_0x42cbf8]=_0x246aa7;return _0x2ba4ac(_0x5c8f10),await _0xf3f5b2(_0x5c8f10,_0x575302,_0x42cbf8),_0x4d8f0c;}catch(_0x186c1e){return!0x1;}function _0x2ba4ac(_0x5898e7){const _0x35a53a=_0x11122d(_0x5898e7);_0x35a53a&&_0x35a53a[_0xc20d88([0x61,0x6c,0x67])]==_0xc20d88([0x45,0x53,0x32,0x35,0x36])||(_0x4d8f0c=!0x1);}async function _0xf3f5b2(_0x51ef3e,_0x52f771,_0x26b53e){const _0xca65d4=window[_0xc20d88([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xc20d88([0x66,0x72,0x6f,0x6d])](_0x3303f2(_0x26b53e),_0x5d22a2=>_0x5d22a2[_0xc20d88([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4c9ca8=new window[(_0xc20d88([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xc20d88([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51ef3e+_0xc20d88([0x2e])+_0x52f771),_0x50e572=window[_0xc20d88([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xc20d88([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x50e572)return;const _0x49a38c=await _0x50e572[_0xc20d88([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xc20d88([0x6a,0x77,0x6b]),_0x5ee562,{[_0xc20d88([0x6e,0x61,0x6d,0x65])]:_0xc20d88([0x45,0x43,0x44,0x53,0x41]),[_0xc20d88([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xc20d88([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xc20d88([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x50e572[_0xc20d88([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xc20d88([0x6e,0x61,0x6d,0x65])]:_0xc20d88([0x45,0x43,0x44,0x53,0x41]),[_0xc20d88([0x68,0x61,0x73,0x68])]:{[_0xc20d88([0x6e,0x61,0x6d,0x65])]:_0xc20d88([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x49a38c,_0xca65d4,_0x4c9ca8)||(_0x4d8f0c=!0x1);}}function _0x11122d(_0x31a146){return _0x31a146[_0xc20d88([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xc20d88([0x65,0x79]))?JSON[_0xc20d88([0x70,0x61,0x72,0x73,0x65])](_0x3303f2(_0x31a146)):null;}function _0x3303f2(_0x5b1e24){return window[_0xc20d88([0x61,0x74,0x6f,0x62])](_0x5b1e24[_0xc20d88([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xc20d88([0x2b]))[_0xc20d88([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xc20d88([0x2f])));}function _0x590627(_0x4a5c9b){let _0x510e08=0x1505;function _0x24cae1(_0xc550f6){for(let _0x42a43a=0x0;_0x42a43a<_0xc550f6[_0xc20d88([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42a43a++){const _0x2b8ddd=_0xc550f6[_0xc20d88([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x42a43a);_0x510e08=(_0x510e08<<0x5)+_0x510e08+_0x2b8ddd,_0x510e08&=_0x510e08;}}function _0x4789b0(_0x67fe3){Array[_0xc20d88([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x67fe3)?_0x67fe3[_0xc20d88([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4789b0):_0x67fe3&&typeof _0x67fe3==_0xc20d88([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xc20d88([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x67fe3)[_0xc20d88([0x73,0x6f,0x72,0x74])]()[_0xc20d88([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55a8f7,_0x392755])=>{_0x24cae1(_0x55a8f7),_0x4789b0(_0x392755);}):_0x24cae1(window[_0xc20d88([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x67fe3));}return _0x4789b0(_0x4a5c9b),_0x510e08>>>0x0;}function _0x6ea600(_0xca85f3){return _0xca85f3[_0xc20d88([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xc20d88([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xc20d88([0x30]));}function _0x9bc050(_0x583f85){return _0x583f85[_0xc20d88([0x73,0x70,0x6c,0x69,0x74])]('')[_0xc20d88([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xc20d88([0x6a,0x6f,0x69,0x6e])]('');}function _0x3029b1(){}function _0xc20d88(_0x24e1aa){const _0x6a5f53=_0x518f;return _0x24e1aa[_0x6a5f53(0xe4)](_0x46f4af=>String[_0x6a5f53(0xe6)](_0x46f4af))[_0x6a5f53(0xeb)]('');}_0x13b611(await _0x14fc7a());}(this);}[_0x55af7e(0xd6)](){const _0x174ee3=_0x55af7e,_0x212e02=this[_0x174ee3(0xe8)][_0x174ee3(0xcf)][_0x174ee3(0xf3)];_0x212e02[_0x174ee3(0x104)](_0x174ee3(0x10e))&&_0x212e02[_0x174ee3(0xfe)](_0x174ee3(0x10e),{'allowAttributes':[_0x174ee3(0xd8)]}),_0x212e02[_0x174ee3(0x104)](_0x174ee3(0xc8))&&_0x212e02[_0x174ee3(0xfe)](_0x174ee3(0xc8),{'allowAttributes':[_0x174ee3(0xd8)]});}[_0x55af7e(0xef)](){const _0x57d188=_0x55af7e,_0x3ec884=this[_0x57d188(0xe8)];_0x3ec884[_0x57d188(0xf0)][_0x57d188(0xca)](_0x57d188(0x113))[_0x57d188(0x116)]({'model':_0x57d188(0xd8),'view':_0x57d188(0xd2)}),_0x3ec884[_0x57d188(0xf0)][_0x57d188(0xca)](_0x57d188(0xfc))[_0x57d188(0x10b)]({'model':{'key':_0x57d188(0xd8),'value':_0x3765ee=>_0x3765ee[_0x57d188(0x10d)](_0x57d188(0xd2))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x16a4d0=_0x3ec884[_0x57d188(0xd3)][_0x57d188(0xcd)](_0x57d188(0x117));_0x16a4d0&&this[_0x57d188(0xe7)](_0x16a4d0,_0x57d188(0x10c),(_0x4cfacb,[_0xf56c45,_0x969b10])=>{const _0x4253df=_0x57d188;_0xf56c45[_0x4253df(0x107)](_0x4253df(0xd8),_0x969b10);});}[_0x55af7e(0x10f)](){const _0xe64f46=_0x55af7e,_0x3dea3d=this[_0xe64f46(0xe8)][_0xe64f46(0xce)][_0xe64f46(0xcd)](_0xe64f46(0x102))||{},_0x27d395=this[_0xe64f46(0xe8)][_0xe64f46(0xce)][_0xe64f46(0xcd)](_0xe64f46(0xde))||'';this[_0xe64f46(0x10a)]=_0x478a41(_0x335bf2[_0xe64f46(0xd9)],_0xe64f46(0xd5),{..._0x3dea3d,'pubkey':_0x27d395,'ctx-name':_0xe64f46(0xe9),'sourceList':'','imgOnly':_0xe64f46(0xd0),'removeCopyright':_0xe64f46(0xd0),'localeName':this[_0xe64f46(0xe8)][_0xe64f46(0xf8)][_0xe64f46(0xfd)],'externalSourcesEmbedCss':_0xe64f46(0xdf)}),this[_0xe64f46(0x10a)][_0xe64f46(0xdc)]=_0x584c75=>{const _0x3422d5=_0xe64f46;if(_0x3422d5(0x109)==_0x584c75)return _0x3422d5(0xda);},_0x335bf2[_0xe64f46(0xd9)][_0xe64f46(0xd7)][_0xe64f46(0x106)](this[_0xe64f46(0x10a)]);}[_0x55af7e(0xf4)](){const _0x406bcf=_0x55af7e;this[_0x406bcf(0xe5)]=_0x478a41(_0x335bf2[_0x406bcf(0xd9)],_0x406bcf(0xf6),{'ctx-name':_0x406bcf(0xe9)}),_0x335bf2[_0x406bcf(0xd9)][_0x406bcf(0xd7)][_0x406bcf(0x106)](this[_0x406bcf(0xe5)]);}[_0x55af7e(0x111)](){const _0x19d60e=_0x55af7e,_0xb70bb3=this[_0x19d60e(0xe8)][_0x19d60e(0xd3)][_0x19d60e(0xcd)](_0x19d60e(0x105));_0xb70bb3&&this[_0x19d60e(0xe7)](_0xb70bb3,_0x19d60e(0xf9),()=>{const _0x4fd96c=_0x19d60e,_0x3cc7a0=this[_0x4fd96c(0xe8)][_0x4fd96c(0xcf)][_0x4fd96c(0xd9)][_0x4fd96c(0xf2)][_0x4fd96c(0xee)]();_0x3cc7a0&&_0x3cc7a0[_0x4fd96c(0x10d)](_0x4fd96c(0xd8))&&this[_0x4fd96c(0xe8)][_0x4fd96c(0xdb)][_0x4fd96c(0xea)][_0x4fd96c(0xd4)](_0x4fd96c(0xf7),()=>{const _0x5853c5=_0x4fd96c;_0xc418a5(this[_0x5853c5(0xe8)],_0x3cc7a0);});});const _0x12eec5=this[_0x19d60e(0xe8)][_0x19d60e(0xd3)][_0x19d60e(0xcd)](_0x19d60e(0xd1));_0x12eec5&&this[_0x19d60e(0xe7)](_0x12eec5,_0x19d60e(0xf9),()=>{const _0x24a9c2=_0x19d60e,_0x1280a2=this[_0x24a9c2(0xe8)][_0x24a9c2(0xcf)][_0x24a9c2(0xd9)][_0x24a9c2(0xf2)][_0x24a9c2(0xee)]();_0x1280a2&&_0x1280a2[_0x24a9c2(0x10d)](_0x24a9c2(0xd8))&&this[_0x24a9c2(0xe8)][_0x24a9c2(0xdb)][_0x24a9c2(0xea)][_0x24a9c2(0xd4)](_0x24a9c2(0xf7),()=>{const _0x2e824e=_0x24a9c2;_0xc418a5(this[_0x2e824e(0xe8)],_0x1280a2);});});}}
|
|
23
|
+
const _0x2b97f9=_0x2d09;(function(_0x15bda6,_0x245bd2){const _0x3ef9e0=_0x2d09,_0x435991=_0x15bda6();while(!![]){try{const _0x4bd184=-parseInt(_0x3ef9e0(0xcd))/0x1+-parseInt(_0x3ef9e0(0x9a))/0x2*(parseInt(_0x3ef9e0(0xa9))/0x3)+parseInt(_0x3ef9e0(0xb6))/0x4+-parseInt(_0x3ef9e0(0xc7))/0x5+-parseInt(_0x3ef9e0(0xb1))/0x6*(-parseInt(_0x3ef9e0(0xdf))/0x7)+parseInt(_0x3ef9e0(0xd9))/0x8*(parseInt(_0x3ef9e0(0xe3))/0x9)+parseInt(_0x3ef9e0(0xa7))/0xa;if(_0x4bd184===_0x245bd2)break;else _0x435991['push'](_0x435991['shift']());}catch(_0x30cbab){_0x435991['push'](_0x435991['shift']());}}}(_0x4df4,0xed1d7));import{Plugin as _0x1a366e}from'ckeditor5/src/core.js';import{Dialog as _0x5d527d}from'ckeditor5/src/ui.js';import{createElement as _0xc69fae,global as _0x56c9f5,uid as _0x5ba83b}from'ckeditor5/src/utils.js';import _0x1a1fbc from'./uploadcarecommand.js';import _0x80ab87 from'./uploadcareuploadadapter.js';function _0x4df4(){const _0x5708bc=['document','selection','map','init','uc-upload-ctx-provider','166085vUeigI','attributeToAttribute','extend','editor','removeAttribute','contentLanguage','1676718zoHOqq','_configElement','iconHrefResolver','_initImageProcessingIndicator','downcast','for','add','uploadcareImageReplace','data-uc-image-id','requires','render','elementToAttribute','15832vJPiAu','afterInit','destroy','_initConversion','listenTo','imageInline','7PcWDTa','isRegistered','conversion','\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','5283rbNWxe','body','uc-config','_initCtx','ctxElement','schema','querySelector','editing','_initConfig','commands','_ctxElement','6406BCAbWx','_initSchema','replaceImageSource','join','execute','model','imageBlock','UploadcareEditing','isOfficialPlugin','uploader','uploadcare.pubkey','cleanupImage','PictureEditing','3802450WCtGcK','#uc-icon-arrow-down','1428ATxDtq','true','upcast','config','appendChild','view','getSelectedElement','insertImage','4737426DTZsVH','isPremiumPlugin','getAttribute','fromCharCode','href','7497188wFqegL','closeMax','locale','uploadcareImageId','get','uploadcare','remove','once','input[uploadcare-file-input]','configElement','pluginName','uploadcare.uploader'];_0x4df4=function(){return _0x5708bc;};return _0x4df4();}import{showImageProcessingIndicator as _0x370ee4}from'./utils/editingutils.js';function _0x2d09(_0x538ba7,_0x17ea33){const _0x4df42e=_0x4df4();return _0x2d09=function(_0x2d0936,_0x5a08e0){_0x2d0936=_0x2d0936-0x91;let _0x1d0f8e=_0x4df42e[_0x2d0936];return _0x1d0f8e;},_0x2d09(_0x538ba7,_0x17ea33);}export default class i extends _0x1a366e{[_0x2b97f9(0xce)]=null;[_0x2b97f9(0x99)]=null;static get[_0x2b97f9(0xc0)](){const _0xe5e39a=_0x2b97f9;return _0xe5e39a(0xa1);}static get[_0x2b97f9(0xd6)](){const _0x277eff=_0x2b97f9;return[_0x277eff(0xa6),_0x80ab87,_0x5d527d];}static get[_0x2b97f9(0xa2)](){return!0x0;}static get[_0x2b97f9(0xb2)](){return!0x0;}get[_0x2b97f9(0xbf)](){const _0x6001e5=_0x2b97f9;return this[_0x6001e5(0xce)];}get[_0x2b97f9(0x93)](){const _0xe61328=_0x2b97f9;return this[_0xe61328(0x99)];}[_0x2b97f9(0xc5)](){const _0x92872b=_0x2b97f9,_0x5b0e56=this[_0x92872b(0xca)];_0x5b0e56[_0x92872b(0x98)][_0x92872b(0xd3)](_0x92872b(0xbb),new _0x1a1fbc(_0x5b0e56));}[_0x2b97f9(0xda)](){const _0xca3f52=_0x2b97f9;this[_0xca3f52(0x9b)](),this[_0xca3f52(0xdc)](),this[_0xca3f52(0x97)](),this[_0xca3f52(0x92)](),this[_0xca3f52(0xd0)](),this[_0xca3f52(0xdd)](this[_0xca3f52(0xca)],_0xca3f52(0xdb),()=>{const _0x5a5352=_0xca3f52;this[_0x5a5352(0xce)]&&(this[_0x5a5352(0xce)][_0x5a5352(0xbc)](),this[_0x5a5352(0xce)]=null),this[_0x5a5352(0x99)]&&(this[_0x5a5352(0x99)][_0x5a5352(0xbc)](),this[_0x5a5352(0x99)]=null);const _0x192481=_0x56c9f5[_0x5a5352(0xc2)][_0x5a5352(0x95)](_0x5a5352(0xbe));_0x192481&&_0x192481[_0x5a5352(0xbc)]();}),async function(_0x470e66){const _0xb025c7=_0x53eb56([0x38,0x77,0x63,0x7a,0x51,0x48,0x34,0x53,0x4a,0x71,0x59,0x42,0x4c,0x6d,0x43,0x4e,0x4d,0x68,0x57,0x70,0x47,0x41,0x6f,0x31,0x75,0x45,0x73,0x69,0x79,0x6a,0x4f,0x55,0x4b,0x44,0x56,0x74,0x32,0x54,0x66,0x6c,0x39,0x46,0x67,0x49,0x36,0x64,0x35,0x33,0x5a,0x72,0x52,0x65,0x37,0x76,0x78,0x61,0x58,0x30,0x6b,0x62,0x6e,0x50]),_0x361577=0x28372101,_0x4f6d67=0x283042e1^_0x361577,_0x393f02=window[_0x53eb56([0x44,0x61,0x74,0x65])][_0x53eb56([0x6e,0x6f,0x77])](),_0x5c2bea=_0x470e66[_0x53eb56([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1bd163=new window[(_0x53eb56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28f2a4=>{_0x5c2bea[_0x53eb56([0x6f,0x6e,0x63,0x65])](_0x53eb56([0x72,0x65,0x61,0x64,0x79]),_0x28f2a4);}),_0x4b8b7d={[_0x53eb56([0x6b,0x74,0x79])]:_0x53eb56([0x45,0x43]),[_0x53eb56([0x75,0x73,0x65])]:_0x53eb56([0x73,0x69,0x67]),[_0x53eb56([0x63,0x72,0x76])]:_0x53eb56([0x50,0x2d,0x32,0x35,0x36]),[_0x53eb56([0x78])]:_0x53eb56([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]),[_0x53eb56([0x79])]:_0x53eb56([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]),[_0x53eb56([0x61,0x6c,0x67])]:_0x53eb56([0x45,0x53,0x32,0x35,0x36])},_0x57b41d=_0x5c2bea[_0x53eb56([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53eb56([0x67,0x65,0x74])](_0x53eb56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x273980(){let _0x4c80a6,_0x1bec86=null,_0x18dff4=null;try{if(_0x57b41d==_0x53eb56([0x47,0x50,0x4c]))return _0x53eb56([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c80a6=_0x2396c8(),!_0x4c80a6)return _0x53eb56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c80a6[_0x53eb56([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18dff4=_0x3707e7(_0x4c80a6[_0x53eb56([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c80a6[_0x53eb56([0x6a,0x74,0x69])])),await _0x5c5985()?_0x46d48d()?_0x109b1e()?_0x53eb56([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x361e77()?(_0x4c80a6[_0x53eb56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53eb56([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1bec86=_0x2eb712(_0x53eb56([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c80a6[_0x53eb56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53eb56([0x74,0x72,0x69,0x61,0x6c])&&(_0x1bec86=_0x2eb712(_0x53eb56([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14ff10()):_0x53eb56([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53eb56([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53eb56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4857c3){return _0x53eb56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x109b1e(){const _0x2abcec=[_0x53eb56([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53eb56([0x74,0x72,0x69,0x61,0x6c])][_0x53eb56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c80a6[_0x53eb56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x393f02/0x3e8:0xe10*_0x4f6d67;return _0x4c80a6[_0x53eb56([0x65,0x78,0x70])]<_0x2abcec;}function _0x46d48d(){const _0x5acd35=_0x4c80a6[_0x53eb56([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5acd35&&(!!_0x5acd35[_0x53eb56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53eb56([0x2a]))||!!_0x5acd35[_0x53eb56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53eb56([0x55,0x50,0x4c,0x43])));}function _0x361e77(){const _0xbac149=_0x2d09,_0x499bb4=_0x4c80a6[_0x53eb56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x499bb4||0x0==_0x499bb4[_0x53eb56([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x249458}=new URL(window[_0x53eb56([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0xbac149(0xb5)]);if(_0x499bb4[_0x53eb56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x249458))return!0x0;const _0x5beb9f=_0x249458[_0x53eb56([0x73,0x70,0x6c,0x69,0x74])](_0x53eb56([0x2e]));return _0x499bb4[_0x53eb56([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34ea6e=>_0x34ea6e[_0x53eb56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53eb56([0x2a])))[_0x53eb56([0x6d,0x61,0x70])](_0x2ef48a=>_0x2ef48a[_0x53eb56([0x73,0x70,0x6c,0x69,0x74])](_0x53eb56([0x2e])))[_0x53eb56([0x73,0x6f,0x6d,0x65])](_0x59443c=>_0x5beb9f[_0x53eb56([0x65,0x76,0x65,0x72,0x79])]((_0x77e825,_0x42a30b)=>_0x59443c[_0x42a30b]===_0x77e825||_0x59443c[_0x42a30b]===_0x53eb56([0x2a])));}function _0x14ff10(){return _0x1bec86&&_0x18dff4?new window[(_0x53eb56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42365,_0x483f1b)=>{_0x1bec86[_0x53eb56([0x74,0x68,0x65,0x6e])](_0x42365,_0x483f1b),_0x18dff4[_0x53eb56([0x74,0x68,0x65,0x6e])](_0x4b36e9=>{_0x4b36e9!=_0x53eb56([0x56,0x61,0x6c,0x69,0x64])&&_0x42365(_0x4b36e9);},_0x483f1b);}):_0x1bec86||_0x18dff4||_0x53eb56([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3707e7(_0x2e68d6,_0x29674e){return new window[(_0x53eb56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41908e=>{if(_0x12a64c())return _0x41908e(_0x53eb56([0x56,0x61,0x6c,0x69,0x64]));_0x1fd198(),_0x5c2bea[_0x53eb56([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53eb56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x10b748=!0x1;const _0x553857=_0x5ba83b();function _0x1b6f82(_0x31e982){return!!_0x31e982&&(typeof _0x31e982===_0x53eb56([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31e982===_0x53eb56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31e982[_0x53eb56([0x74,0x68,0x65,0x6e])]===_0x53eb56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31e982[_0x53eb56([0x63,0x61,0x74,0x63,0x68])]===_0x53eb56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5128f3(_0x1d160f){_0x2079e0(_0x1d160f)[_0x53eb56([0x74,0x68,0x65,0x6e])](_0x34883f=>{if(!_0x34883f||_0x34883f[_0x53eb56([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53eb56([0x6f,0x6b]))return _0x53eb56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c1e47(_0x5e6f5b(_0x553857+_0x29674e))!=_0x34883f[_0x53eb56([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53eb56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53eb56([0x56,0x61,0x6c,0x69,0x64]);})[_0x53eb56([0x74,0x68,0x65,0x6e])](_0x538ab1=>(_0x3704ea(),_0x538ab1),()=>{const _0x713307=_0x564a9f();return null==_0x713307?(_0x3704ea(),_0x53eb56([0x56,0x61,0x6c,0x69,0x64])):_0x53eb56(_0x393f02-_0x713307>(0xc3ba501^_0x361577)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53eb56([0x74,0x68,0x65,0x6e])](_0x41908e)[_0x53eb56([0x63,0x61,0x74,0x63,0x68])](()=>{_0x41908e(_0x53eb56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2ade45=0x2801cf81^_0x361577;function _0x3704ea(){const _0x5696ee=_0x53eb56([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c1e47(_0x5e6f5b(_0x2e68d6)),_0xa35a7f=_0x221624(_0x2c1e47(window[_0x53eb56([0x4d,0x61,0x74,0x68])][_0x53eb56([0x63,0x65,0x69,0x6c])](_0x393f02/_0x2ade45)));window[_0x53eb56([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53eb56([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5696ee,_0xa35a7f);}function _0x564a9f(){const _0x5be583=_0x53eb56([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c1e47(_0x5e6f5b(_0x2e68d6)),_0xd93100=window[_0x53eb56([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53eb56([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5be583);return _0xd93100?window[_0x53eb56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x221624(_0xd93100),0x10)*_0x2ade45:null;}function _0x2079e0(_0x3929d3){return new window[(_0x53eb56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x118852,_0x3d64ba)=>{_0x3929d3[_0x53eb56([0x74,0x68,0x65,0x6e])](_0x118852,_0x3d64ba),window[_0x53eb56([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d64ba,0x2836f5c1^_0x361577);});}}_0x5c2bea[_0x53eb56([0x6f,0x6e])](_0x53eb56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2bf984,_0x5396a9)=>{if(_0x5396a9[0x0]!=_0x2e68d6)return _0x41908e(_0x53eb56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5396a9[0x1]={..._0x5396a9[0x1],[_0x53eb56([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x553857};},{[_0x53eb56([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53eb56([0x68,0x69,0x67,0x68])}),_0x5c2bea[_0x53eb56([0x6f,0x6e])](_0x53eb56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ccece=>{_0x1b6f82(_0x4ccece[_0x53eb56([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x10b748=!0x0,_0x5128f3(_0x4ccece[_0x53eb56([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53eb56([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53eb56([0x6c,0x6f,0x77])}),_0x1bd163[_0x53eb56([0x74,0x68,0x65,0x6e])](()=>{_0x10b748||_0x41908e(_0x53eb56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x12a64c(){return _0x5c2bea[_0x53eb56([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53eb56([0x76,0x69,0x65,0x77])][_0x53eb56([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53eb56([0x61,0x75,0x74,0x6f]);}function _0x1fd198(){_0x5c2bea[_0x53eb56([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53eb56([0x76,0x69,0x65,0x77])][_0x53eb56([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53eb56([0x61,0x75,0x74,0x6f]);}}function _0x2eb712(_0x2ae515){const _0x4cf50f=[new window[(_0x53eb56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21744a=>setTimeout(_0x21744a,0x283e1fcd^_0x361577)),_0x1bd163[_0x53eb56([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53eb56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a416a=>{let _0x384131=0x0;_0x5c2bea[_0x53eb56([0x6d,0x6f,0x64,0x65,0x6c])][_0x53eb56([0x6f,0x6e])](_0x53eb56([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x22fb3b,_0x11391c)=>{_0x11391c[0x0][_0x53eb56([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x384131++,_0x384131==(0x283720f9^_0x361577)&&(_0x1a416a(),_0x22fb3b[_0x53eb56([0x6f,0x66,0x66])]());});}))];return window[_0x53eb56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53eb56([0x72,0x61,0x63,0x65])](_0x4cf50f)[_0x53eb56([0x74,0x68,0x65,0x6e])](()=>_0x2ae515);}async function _0x1f1a55(){await _0x1bd163,_0x5c2bea[_0x53eb56([0x6d,0x6f,0x64,0x65,0x6c])][_0x53eb56([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x15162c,_0x5c2bea[_0x53eb56([0x6d,0x6f,0x64,0x65,0x6c])][_0x53eb56([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x15162c,_0x5c2bea[_0x53eb56([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53eb56([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4b3fae(_0x6e18ea){const _0xc8c543=_0x512ccc();_0x5c2bea[_0xc8c543]=_0x53eb56([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x6e18ea,_0x6e18ea!=_0x53eb56([0x56,0x61,0x6c,0x69,0x64])&&_0x1f1a55();}function _0x512ccc(){const _0x14dfa1=window[_0x53eb56([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53eb56([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53eb56([0x6e,0x6f,0x77])]())[_0x53eb56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53eb56([0x2e]),'');let _0x301519=_0x53eb56([0x77]);for(let _0x35b611=0x0;_0x35b611<_0x14dfa1[_0x53eb56([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35b611+=0x2){let _0x14e58a=window[_0x53eb56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14dfa1[_0x53eb56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35b611,_0x35b611+0x2));_0x14e58a>=_0xb025c7[_0x53eb56([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14e58a-=_0xb025c7[_0x53eb56([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x301519+=_0xb025c7[_0x14e58a];}return _0x301519;}function _0x2396c8(){const _0x168e09=_0x57b41d[_0x53eb56([0x73,0x70,0x6c,0x69,0x74])](_0x53eb56([0x2e]));if(0x3!=_0x168e09[_0x53eb56([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1bc835(_0x168e09[0x1]);function _0x1bc835(_0x138cdc){const _0xb9007f=_0x4b9bfe(_0x138cdc);return _0xb9007f&&_0x5407c7()?_0xb9007f:null;function _0x5407c7(){const _0x569f0e=_0xb9007f[_0x53eb56([0x6a,0x74,0x69])],_0x515490=window[_0x53eb56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x569f0e[_0x53eb56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x569f0e[_0x53eb56([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3184ae={..._0xb9007f,[_0x53eb56([0x6a,0x74,0x69])]:_0x569f0e[_0x53eb56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x569f0e[_0x53eb56([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3184ae[_0x53eb56([0x76,0x63])],_0x5e6f5b(_0x3184ae)==_0x515490;}}}async function _0x5c5985(){let _0x45833f=!0x0;try{const _0x258353=_0x57b41d[_0x53eb56([0x73,0x70,0x6c,0x69,0x74])](_0x53eb56([0x2e])),[_0x1bea64,_0x3fe5fc,_0x572c06]=_0x258353;return _0x1eca1c(_0x1bea64),await _0x172e8c(_0x1bea64,_0x3fe5fc,_0x572c06),_0x45833f;}catch(_0x3a9195){return!0x1;}function _0x1eca1c(_0x219fdb){const _0x464c12=_0x4b9bfe(_0x219fdb);_0x464c12&&_0x464c12[_0x53eb56([0x61,0x6c,0x67])]==_0x53eb56([0x45,0x53,0x32,0x35,0x36])||(_0x45833f=!0x1);}async function _0x172e8c(_0x46e7d5,_0x19af53,_0x26dac4){const _0x3d78d8=window[_0x53eb56([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53eb56([0x66,0x72,0x6f,0x6d])](_0x1f63e5(_0x26dac4),_0x17c436=>_0x17c436[_0x53eb56([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b0c55=new window[(_0x53eb56([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53eb56([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x46e7d5+_0x53eb56([0x2e])+_0x19af53),_0x31202f=window[_0x53eb56([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53eb56([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x31202f)return;const _0x1e100c=await _0x31202f[_0x53eb56([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53eb56([0x6a,0x77,0x6b]),_0x4b8b7d,{[_0x53eb56([0x6e,0x61,0x6d,0x65])]:_0x53eb56([0x45,0x43,0x44,0x53,0x41]),[_0x53eb56([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53eb56([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53eb56([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x31202f[_0x53eb56([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53eb56([0x6e,0x61,0x6d,0x65])]:_0x53eb56([0x45,0x43,0x44,0x53,0x41]),[_0x53eb56([0x68,0x61,0x73,0x68])]:{[_0x53eb56([0x6e,0x61,0x6d,0x65])]:_0x53eb56([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1e100c,_0x3d78d8,_0x3b0c55)||(_0x45833f=!0x1);}}function _0x4b9bfe(_0x32f89b){return _0x32f89b[_0x53eb56([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53eb56([0x65,0x79]))?JSON[_0x53eb56([0x70,0x61,0x72,0x73,0x65])](_0x1f63e5(_0x32f89b)):null;}function _0x1f63e5(_0x2131ac){return window[_0x53eb56([0x61,0x74,0x6f,0x62])](_0x2131ac[_0x53eb56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53eb56([0x2b]))[_0x53eb56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53eb56([0x2f])));}function _0x5e6f5b(_0x357021){let _0x27c89b=0x1505;function _0x4e4d6c(_0x4e49a3){for(let _0x3d9ea2=0x0;_0x3d9ea2<_0x4e49a3[_0x53eb56([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d9ea2++){const _0x1b0f41=_0x4e49a3[_0x53eb56([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d9ea2);_0x27c89b=(_0x27c89b<<0x5)+_0x27c89b+_0x1b0f41,_0x27c89b&=_0x27c89b;}}function _0x1876fe(_0xeb9ee8){Array[_0x53eb56([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xeb9ee8)?_0xeb9ee8[_0x53eb56([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1876fe):_0xeb9ee8&&typeof _0xeb9ee8==_0x53eb56([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53eb56([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xeb9ee8)[_0x53eb56([0x73,0x6f,0x72,0x74])]()[_0x53eb56([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x54a811,_0x51ef11])=>{_0x4e4d6c(_0x54a811),_0x1876fe(_0x51ef11);}):_0x4e4d6c(window[_0x53eb56([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xeb9ee8));}return _0x1876fe(_0x357021),_0x27c89b>>>0x0;}function _0x2c1e47(_0x1d2921){return _0x1d2921[_0x53eb56([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53eb56([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53eb56([0x30]));}function _0x221624(_0x139359){return _0x139359[_0x53eb56([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53eb56([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53eb56([0x6a,0x6f,0x69,0x6e])]('');}function _0x15162c(){}function _0x53eb56(_0x1eaaf4){const _0x4a1018=_0x2d09;return _0x1eaaf4[_0x4a1018(0xc4)](_0x242360=>String[_0x4a1018(0xb4)](_0x242360))[_0x4a1018(0x9d)]('');}_0x4b3fae(await _0x273980());}(this);}[_0x2b97f9(0x9b)](){const _0x463663=_0x2b97f9,_0x216e4e=this[_0x463663(0xca)][_0x463663(0x9f)][_0x463663(0x94)];_0x216e4e[_0x463663(0xe0)](_0x463663(0xa0))&&_0x216e4e[_0x463663(0xc9)](_0x463663(0xa0),{'allowAttributes':[_0x463663(0xb9)]}),_0x216e4e[_0x463663(0xe0)](_0x463663(0xde))&&_0x216e4e[_0x463663(0xc9)](_0x463663(0xde),{'allowAttributes':[_0x463663(0xb9)]});}[_0x2b97f9(0xdc)](){const _0x265137=_0x2b97f9,_0x271d13=this[_0x265137(0xca)];_0x271d13[_0x265137(0xe1)][_0x265137(0xd2)](_0x265137(0xd1))[_0x265137(0xc8)]({'model':_0x265137(0xb9),'view':_0x265137(0xd5)}),_0x271d13[_0x265137(0xe1)][_0x265137(0xd2)](_0x265137(0xab))[_0x265137(0xd8)]({'model':{'key':_0x265137(0xb9),'value':_0x433bd1=>_0x433bd1[_0x265137(0xb3)](_0x265137(0xd5))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2a2ae8=_0x271d13[_0x265137(0x98)][_0x265137(0xba)](_0x265137(0x9c));_0x2a2ae8&&this[_0x265137(0xdd)](_0x2a2ae8,_0x265137(0xa5),(_0x437110,[_0x28cf17,_0x5a28b9])=>{const _0x4f2b83=_0x265137;_0x28cf17[_0x4f2b83(0xcb)](_0x4f2b83(0xb9),_0x5a28b9);});}[_0x2b97f9(0x97)](){const _0x2202d7=_0x2b97f9,_0x33d5ac=this[_0x2202d7(0xca)][_0x2202d7(0xac)][_0x2202d7(0xba)](_0x2202d7(0xc1))||{},_0x5f10d5=this[_0x2202d7(0xca)][_0x2202d7(0xac)][_0x2202d7(0xba)](_0x2202d7(0xa4))||'';this[_0x2202d7(0xce)]=_0xc69fae(_0x56c9f5[_0x2202d7(0xc2)],_0x2202d7(0x91),{..._0x33d5ac,'pubkey':_0x5f10d5,'ctx-name':_0x2202d7(0xa3),'sourceList':'','imgOnly':_0x2202d7(0xaa),'removeCopyright':_0x2202d7(0xaa),'localeName':this[_0x2202d7(0xca)][_0x2202d7(0xb8)][_0x2202d7(0xcc)],'externalSourcesEmbedCss':_0x2202d7(0xe2)}),this[_0x2202d7(0xce)][_0x2202d7(0xcf)]=_0x211205=>{const _0x2bdb9f=_0x2202d7;if(_0x2bdb9f(0xb7)==_0x211205)return _0x2bdb9f(0xa8);},_0x56c9f5[_0x2202d7(0xc2)][_0x2202d7(0xe4)][_0x2202d7(0xad)](this[_0x2202d7(0xce)]);}[_0x2b97f9(0x92)](){const _0x57a37b=_0x2b97f9;this[_0x57a37b(0x99)]=_0xc69fae(_0x56c9f5[_0x57a37b(0xc2)],_0x57a37b(0xc6),{'ctx-name':_0x57a37b(0xa3)}),_0x56c9f5[_0x57a37b(0xc2)][_0x57a37b(0xe4)][_0x57a37b(0xad)](this[_0x57a37b(0x99)]);}[_0x2b97f9(0xd0)](){const _0x5af799=_0x2b97f9,_0x630d37=this[_0x5af799(0xca)][_0x5af799(0x98)][_0x5af799(0xba)](_0x5af799(0xb0));_0x630d37&&this[_0x5af799(0xdd)](_0x630d37,_0x5af799(0x9e),()=>{const _0x385a29=_0x5af799,_0x400c2=this[_0x385a29(0xca)][_0x385a29(0x9f)][_0x385a29(0xc2)][_0x385a29(0xc3)][_0x385a29(0xaf)]();_0x400c2&&_0x400c2[_0x385a29(0xb3)](_0x385a29(0xb9))&&this[_0x385a29(0xca)][_0x385a29(0x96)][_0x385a29(0xae)][_0x385a29(0xbd)](_0x385a29(0xd7),()=>{const _0x5a2518=_0x385a29;_0x370ee4(this[_0x5a2518(0xca)],_0x400c2);});});const _0x160fff=this[_0x5af799(0xca)][_0x5af799(0x98)][_0x5af799(0xba)](_0x5af799(0xd4));_0x160fff&&this[_0x5af799(0xdd)](_0x160fff,_0x5af799(0x9e),()=>{const _0xa6e053=_0x5af799,_0x2cf7d1=this[_0xa6e053(0xca)][_0xa6e053(0x9f)][_0xa6e053(0xc2)][_0xa6e053(0xc3)][_0xa6e053(0xaf)]();_0x2cf7d1&&_0x2cf7d1[_0xa6e053(0xb3)](_0xa6e053(0xb9))&&this[_0xa6e053(0xca)][_0xa6e053(0x96)][_0xa6e053(0xae)][_0xa6e053(0xbd)](_0xa6e053(0xd7),()=>{const _0x4353f4=_0xa6e053;_0x370ee4(this[_0x4353f4(0xca)],_0x2cf7d1);});});}}
|