@ckeditor/ckeditor5-uploadcare 45.2.1-alpha.7 → 45.2.1-alpha.9

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/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x5152ce,Command as _0x3dcbcd}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x3a6605,IconGooglePhotos as _0x4c4376,IconGoogleDrive as _0x227aae,IconFacebook as _0x3d75a8,IconDropbox as _0x1da312,IconUploadcareLink as _0x23fe74,IconUploadcareImageUpload as _0x4af453,IconError as et,IconUploadcareImageEdit as _0x3dd6be}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x3025f1,MenuBarMenuListItemButtonView as _0x124218,View as _0x399b01,FocusCycler as _0x474b3a,Dialog as _0x1494e5,DialogViewPosition as _0x321c8c,SpinnerView as _0x53f266,IconView as at,Notification as _0x4245c1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4da7c4,DomEmitterMixin as _0x26e9ae,global as _0x321168,getAncestors as _0x14e6ef,ObservableMixin as _0x139640,createElement as _0x15d2d5,uid as _0x26781f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1bca7c}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x631b7b,info as _0x1d4b1e}from'@uploadcare/upload-client';import*as _0x26cfeb from'@uploadcare/file-uploader';var o=function(_0x5aae7d){return _0x5aae7d['Local']='local',_0x5aae7d['URL']='url',_0x5aae7d['Dropbox']='dropbox',_0x5aae7d['GDrive']='gdrive',_0x5aae7d['Facebook']='facebook',_0x5aae7d['GPhotos']='gphotos',_0x5aae7d['OneDrive']='onedrive',_0x5aae7d;}({});function _(_0x4a1820,_0x2d631c,_0x5f4876){const t=_0x4a1820['t'],_0x44a63d=_0x4a1820['t'];switch(_0x2d631c){case o['Local']:return{'text':_0x44a63d('Insert'===_0x5f4876?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x44a63d('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x5f4876?_0x44a63d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x44a63d('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x5f4876?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x5f4876?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x5f4876?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x5f4876?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x5f4876?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2d631c;}}class e extends _0x5152ce{['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 _0x1b934a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x80bd79;for(const _0x827c5 in _0x1b934a){const _0x46884e=_0x827c5,_0x4f7c3e=_0x1b934a[_0x46884e];if('uploadcareLicenseKeyValid'==_0x4f7c3e||'uploadcareLicenseKeyInvalid'==_0x4f7c3e||'uploadcareLicenseKeyExpired'==_0x4f7c3e||'uploadcareLicenseKeyDomainLimit'==_0x4f7c3e||'uploadcareLicenseKeyNotAllowed'==_0x4f7c3e||'uploadcareLicenseKeyEvaluationLimit'==_0x4f7c3e||'uploadcareLicenseKeyTrialLimit'==_0x4f7c3e||'uploadcareLicenseKeyUsageLimit'==_0x4f7c3e){delete _0x1b934a[_0x46884e],_0x80bd79=_0x4f7c3e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x80bd79&&_0x1b934a['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x80bd79&&_0x1b934a['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x80bd79&&_0x1b934a['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x80bd79&&_0x1b934a['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x80bd79&&_0x1b934a['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x80bd79&&_0x1b934a['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x80bd79&&_0x1b934a['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x47c81e}=this,_0x81a9e3=_0x47c81e['commands']['get']('uploadcare');if(!_0x81a9e3)return;const _0x454332=this['_normalizeConfigSourceList'](_0x47c81e['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x2a0225,_0x794f5a)=>{const _0x526362=this['_getIntegrationKey'](_0x794f5a['type']);return _0x2a0225[_0x526362]||(_0x2a0225[_0x526362]=[]),_0x2a0225[_0x526362]['push'](_0x794f5a),_0x2a0225;},{});_0x47c81e['plugins']['has']('ImageInsertUI')&&_0x47c81e['commands']['get']('uploadcare')&&Object['entries'](_0x454332)['forEach'](([_0x16a6f8,_0x2d79b7])=>{_0x47c81e['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x16a6f8,'observable':()=>_0x81a9e3,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2d79b7),'formViewCreator':()=>this['_createDropdownButtons'](_0x2d79b7),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2d79b7),'override':'assetManager'!==_0x16a6f8});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x18a33f){const {locale:_0x46a03b}=this['editor'];return _0x18a33f['map'](_0xf26c01=>{const _0x15084f=_(_0x46a03b,_0xf26c01,'Insert');switch(_0xf26c01){case o['Local']:return{'icon':_0x4af453,'type':o['Local'],..._0x15084f};case o['URL']:return{'icon':_0x23fe74,'type':o['URL'],..._0x15084f};case o['Dropbox']:return{'icon':_0x1da312,'type':o['Dropbox'],..._0x15084f};case o['Facebook']:return{'icon':_0x3d75a8,'type':o['Facebook'],..._0x15084f};case o['GDrive']:return{'icon':_0x227aae,'type':o['GDrive'],..._0x15084f};case o['GPhotos']:return{'icon':_0x4c4376,'type':o['GPhotos'],..._0x15084f};case o['OneDrive']:return{'icon':_0x3a6605,'type':o['OneDrive'],..._0x15084f};}});}['_getIntegrationKey'](_0x5acbd1){switch(_0x5acbd1){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x6caf8a,_0x3d4f05){const _0x534cc8=this['editor'],_0x26495a=new _0x6caf8a(_0x534cc8['locale']),_0x595776=_0x534cc8['commands']['get']('uploadcare');return _0x26495a['bind']('isEnabled')['to'](_0x595776),_0x26495a['on']('execute',()=>{_0x595776['execute'](_0x3d4f05);}),_0x26495a;}['_createToolbarButton'](_0x126838){const {locale:_0x2d81c2}=this['editor'],_0x708994=this['editor']['plugins']['get']('ImageInsertUI'),_0xc1e5d9=_0x126838[0x0],_0x3f779d=this['_createButton'](_0x3025f1,_0xc1e5d9['type']);return _0x3f779d['icon']=_0xc1e5d9['icon'],_0x3f779d['bind']('label')['to'](_0x708994,'isImageSelected',_0x474d9f=>_(_0x2d81c2,_0xc1e5d9['type'],_0x474d9f?'Replace':'Insert')['text']),_0x3f779d['tooltip']=!0x0,_0x3f779d;}['_createDropdownButtons'](_0x49fec5){const {locale:_0x40b360}=this['editor'],_0x44521c=this['editor']['plugins']['get']('ImageInsertUI');return _0x49fec5['map'](_0x18792d=>{const _0x56c4f4=this['_createButton'](_0x3025f1,_0x18792d['type']);return _0x56c4f4['withText']=!0x0,_0x56c4f4['icon']=_0x18792d['icon'],_0x56c4f4['bind']('label')['to'](_0x44521c,'isImageSelected',_0x4adca1=>_(_0x40b360,_0x18792d['type'],_0x4adca1?'Replace':'Insert')['text']),_0x56c4f4;});}['_createMenuBarButtons'](_0x2f3240){return _0x2f3240['map'](_0x271e43=>{const _0x4ee12f=this['_createButton'](_0x124218,_0x271e43['type']);return _0x4ee12f['icon']=_0x271e43['icon'],_0x4ee12f['label']=_0x271e43['shortText'],_0x4ee12f;});}}class q extends _0x399b01{['focusTracker'];['focusCycler'];constructor(_0x521660){super(_0x521660),this['focusTracker']=new _0x4da7c4(),this['focusCycler']=new _0x474b3a({'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(_0x194c04){super(_0x194c04),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(_0x9146ee,_0x14fa49){const _0x29d62e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x3ce12a=>_0x3ce12a<=_0x14fa49)['map'](_0x2dda16=>_0x9146ee['replace'](/\/$/,'')+'/-/resize/'+_0x2dda16+'x/\x20'+_0x2dda16+'w');return{'imageFallbackUrl':_0x9146ee,'imageSources':[{'srcset':_0x29d62e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x14fa49+'px)\x20100vw,\x20'+_0x14fa49+'px','type':'image/webp'}]};}function A(_0x54153c,_0x86888b,_0x4d54c2){const _0x397ed6=_0x54153c['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x397ed6?parseInt(_0x397ed6[0x1],0xa):_0x86888b,'height':_0x397ed6?parseInt(_0x397ed6[0x2],0xa):_0x4d54c2};}function m(_0x4ec138,_0x32ad2c){const _0x4c854c=Object['create'](_0x26e9ae),_0x2ad813=_0x4ec138['plugins']['get']('ImageUtils'),_0x430f59=_0x4ec138['editing']['mapper']['toViewElement'](_0x32ad2c),_0x35a6e3=_0x2ad813['findViewImgElement'](_0x430f59),_0x545934=_0x4ec138['editing']['view']['domConverter']['viewToDom'](_0x35a6e3),_0x5db052=_0x32ad2c['getAttribute']('width'),_0x4e6805=_0x32ad2c['getAttribute']('height'),_0x2acef9='image-processing';_0x4ec138['editing']['view']['change'](_0x5467b6=>{_0x5467b6['addClass'](_0x2acef9,_0x430f59),_0x5467b6['setStyle']('aspect-ratio',_0x5db052+'/'+_0x4e6805,_0x35a6e3);}),_0x4c854c['listenTo'](_0x545934,'load',()=>{_0x4c854c['stopListening'](_0x545934,'load'),_0x4ec138['editing']['view']['change'](_0x2ec716=>{_0x2ec716['removeClass'](_0x2acef9,_0x430f59),_0x2ec716['removeStyle']('aspect-ratio',_0x35a6e3);});});}function V(_0x5bfa99){if(Array['isArray'](_0x5bfa99)){const _0x4ae84e=_0x5bfa99['map'](V);return _0x65bdea=>_0x4ae84e['some'](_0x36c682=>_0x36c682(_0x65bdea));}if('origin'==_0x5bfa99){const _0x16920=_0x321168['window']['location']['origin'];return _0x234c81=>new URL(_0x234c81,_0x321168['document']['baseURI'])['origin']==_0x16920;}return'function'==typeof _0x5bfa99?_0x5bfa99:_0x5bfa99 instanceof RegExp?_0x10c155=>!(!_0x10c155['match'](_0x5bfa99)&&!_0x10c155['replace'](/^https?:\/\//,'')['match'](_0x5bfa99)):()=>!0x1;}function F(_0x6f129e,_0x3dd13e){return _0x14e6ef(_0x6f129e['target'])['includes'](_0x3dd13e);}class l extends/* #__PURE__ -- @preserve */
24
- _0x139640(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x32d8e2,_0x3f6e51,_0x5a41dd){super(),this['_editor']=_0x32d8e2,this['_editing']=_0x3f6e51,this['_dialog']=_0x32d8e2['plugins']['get'](_0x1494e5),this['_api']=_0x3f6e51['ctxElement']['getAPI'](),this['_type']=_0x5a41dd,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:_0x42cb64,model:_0x6a35f1}=this['_editor'],_0x28cad8=_0x6a35f1['document']['selection']['getSelectedElement'](),_0x29ea99=_0x28cad8&&(_0x28cad8['is']('element','imageBlock')||_0x28cad8['is']('element','imageInline'));this['_formView']=new S(_0x42cb64),this['_dialog']['show']({'id':'uploadCare','icon':_0x4af453,'title':_(_0x42cb64,this['_type'],_0x29ea99?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x321c8c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1125a4=>!F(_0x1125a4,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x543d3a}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x3d3166=>{const _0x5ebc6f=_0x543d3a['length'];for(const _0x4b0b1b of _0x543d3a){const _0x322c97=_0x4b0b1b===_0x543d3a[_0x5ebc6f-0x1],{cdnUrl:_0x26dd4a,fileInfo:_0x3f58b9}=_0x4b0b1b;if(!_0x26dd4a||!_0x3f58b9)continue;const {width:_0x3ca8d5,height:_0x4f8882}=_0x3f58b9['imageInfo'],_0xc18470=A(_0x26dd4a,_0x3ca8d5,_0x4f8882),_0x786822=E(_0x26dd4a,_0xc18470['width']),_0x59df3b={'id':_0x3f58b9['uuid'],'type':'image','attributes':{'imageDimension':_0xc18470,..._0x786822}};this['_insertAsset'](_0x59df3b,_0x322c97,_0x3d3166);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2998c3=>{'idle'===_0x2998c3['detail']['status']&&!_0x2998c3['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x3ba7ad,_0x104a44,_0x42ce13){const _0x4b0c05=this['_editor']['model']['document']['selection'],_0x2b6906=_0x4b0c05['getSelectedElement'](),_0x2df8f8=!(!_0x2b6906||!_0x2b6906['is']('element','imageInline'));_0x42ce13['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x3ba7ad,_0x2df8f8),_0x104a44||_0x42ce13['setSelection'](_0x4b0c05['getLastPosition']());}['_insertImage'](_0x429090,_0x239c72){const _0x7ac40b=this['_editor'],{imageDimension:_0x1bca58,imageFallbackUrl:_0x484547,imageSources:_0x20ba43}=_0x429090['attributes'];_0x7ac40b['execute']('insertImage',{'imageType':_0x239c72?'imageInline':null,'source':{'uploadcareImageId':_0x429090['id'],'src':_0x484547,'sources':_0x20ba43,..._0x1bca58}});}}class n extends _0x3dcbcd{['_editing'];['_controller']=null;static get['requires'](){return[_0x1494e5,i];}constructor(_0xaaf881){super(_0xaaf881),this['_editing']=_0xaaf881['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x537909){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x537909);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x239ff8,publicKey:_0x8804d0,signal:_0x527730,onProgress:_0xf25eba}){return _0x631b7b(_0x239ff8,{'publicKey':_0x8804d0,'store':'auto','signal':_0x527730,'onProgress':_0xf25eba});}static['getInfo'](_0x5167e5,_0x1a93eb){return _0x1d4b1e(_0x5167e5,_0x1a93eb);}}class p extends _0x5152ce{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1bca7c,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x1ec955=this['editor'];if(!!!_0x1ec955['config']['get']('uploadcare'))return;_0x1ec955['plugins']['get'](_0x1bca7c)['createUploadAdapter']=_0x4799bb=>new x(_0x4799bb,_0x1ec955),_0x1ec955['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3a2ffb,{imageElement:_0x3d954e,data:_0x10dae5})=>{_0x1ec955['model']['change'](_0x1f7142=>{_0x1f7142['setAttribute']('uploadcareImageId',_0x10dae5['uploadcareImageId'],_0x3d954e);});});}}class x{['loader'];['editor'];['controller'];constructor(_0x7a479f,_0x4fe3a6){this['loader']=_0x7a479f,this['editor']=_0x4fe3a6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x510725=this['editor']['config']['get']('uploadcare.pubkey'),_0x163bed=await this['loader']['file'];return C['upload']({'file':_0x163bed,'publicKey':_0x510725,'signal':this['controller']['signal'],'onProgress':_0xac2787=>{_0xac2787&&_0xac2787['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0xac2787['value']);}})['then'](async _0x18bfa1=>{const {imageFallbackUrl:_0x2ca6a9,imageSources:_0x592785}=E(_0x18bfa1['cdnUrl'],_0x18bfa1['imageInfo']['width']);return{'uploadcareImageId':_0x18bfa1['uuid'],'default':_0x2ca6a9,'sources':_0x592785};})['catch'](()=>{const _0x507001=t('Cannot\x20upload\x20file:')+('\x20'+_0x163bed['name']+'.');return Promise['reject'](_0x507001);});}['abort'](){this['controller']['abort']();}}class i extends _0x5152ce{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x1494e5];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x5ef1d5=this['editor'];_0x5ef1d5['commands']['add']('uploadcare',new n(_0x5ef1d5));}['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 _0x392253=_0x321168['document']['querySelector']('input[uploadcare-file-input]');_0x392253&&_0x392253['remove']();}),async function(_0x2789ce){const _0x25bf0b=_0x4034a0([0x55,0x44,0x51,0x4c,0x43,0x4d,0x47,0x77,0x72,0x38,0x41,0x34,0x6a,0x5a,0x69,0x4f,0x64,0x59,0x58,0x6b,0x75,0x7a,0x62,0x61,0x49,0x6f,0x31,0x46,0x54,0x78,0x66,0x63,0x53,0x73,0x68,0x30,0x79,0x70,0x56,0x4e,0x33,0x36,0x37,0x6d,0x6e,0x48,0x76,0x32,0x4b,0x42,0x52,0x71,0x67,0x65,0x39,0x6c,0x74,0x50,0x45,0x35,0x4a,0x57]),_0x445d52=0x37aafb51,_0x1af19e=0x37ad9031^_0x445d52,_0x38650e=window[_0x4034a0([0x44,0x61,0x74,0x65])][_0x4034a0([0x6e,0x6f,0x77])](),_0x53b871=_0x2789ce[_0x4034a0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x35c37f=new window[(_0x4034a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d2fa8=>{_0x53b871[_0x4034a0([0x6f,0x6e,0x63,0x65])](_0x4034a0([0x72,0x65,0x61,0x64,0x79]),_0x4d2fa8);}),_0x35adbb={[_0x4034a0([0x6b,0x74,0x79])]:_0x4034a0([0x45,0x43]),[_0x4034a0([0x75,0x73,0x65])]:_0x4034a0([0x73,0x69,0x67]),[_0x4034a0([0x63,0x72,0x76])]:_0x4034a0([0x50,0x2d,0x32,0x35,0x36]),[_0x4034a0([0x78])]:_0x4034a0([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]),[_0x4034a0([0x79])]:_0x4034a0([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]),[_0x4034a0([0x61,0x6c,0x67])]:_0x4034a0([0x45,0x53,0x32,0x35,0x36])},_0x33b764=_0x53b871[_0x4034a0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4034a0([0x67,0x65,0x74])](_0x4034a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5493f7(){let _0x114fed,_0x512827=null,_0x21ad0a=null;try{if(_0x33b764==_0x4034a0([0x47,0x50,0x4c]))return _0x4034a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x114fed=_0x2e32cd(),!_0x114fed)return _0x4034a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x114fed[_0x4034a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x21ad0a=_0x264843(_0x114fed[_0x4034a0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x114fed[_0x4034a0([0x6a,0x74,0x69])])),await _0x2f82c0()?_0x39cb99()?_0x40eb63()?_0x4034a0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4ec8cb()?(_0x114fed[_0x4034a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4034a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x512827=_0x367d18(_0x4034a0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x114fed[_0x4034a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4034a0([0x74,0x72,0x69,0x61,0x6c])&&(_0x512827=_0x367d18(_0x4034a0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b2dda()):_0x4034a0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4034a0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4034a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4034a0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x40eb63(){const _0x296212=[_0x4034a0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4034a0([0x74,0x72,0x69,0x61,0x6c])][_0x4034a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x114fed[_0x4034a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38650e/0x3e8:0xe10*_0x1af19e;return _0x114fed[_0x4034a0([0x65,0x78,0x70])]<_0x296212;}function _0x39cb99(){const _0x1c36dc=_0x114fed[_0x4034a0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1c36dc&&(!!_0x1c36dc[_0x4034a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4034a0([0x2a]))||!!_0x1c36dc[_0x4034a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4034a0([0x55,0x50,0x4c,0x43])));}function _0x4ec8cb(){const _0x100a54=_0x114fed[_0x4034a0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x100a54||0x0==_0x100a54[_0x4034a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x157392}=new URL(window[_0x4034a0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x100a54[_0x4034a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x157392))return!0x0;const _0x5e04d0=_0x157392[_0x4034a0([0x73,0x70,0x6c,0x69,0x74])](_0x4034a0([0x2e]));return _0x100a54[_0x4034a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc0dc45=>_0xc0dc45[_0x4034a0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4034a0([0x2a])))[_0x4034a0([0x6d,0x61,0x70])](_0x4942bf=>_0x4942bf[_0x4034a0([0x73,0x70,0x6c,0x69,0x74])](_0x4034a0([0x2e])))[_0x4034a0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xad54db=>_0xad54db[_0x4034a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5e04d0[_0x4034a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4034a0([0x6d,0x61,0x70])](_0x31502d=>Array(_0x5e04d0[_0x4034a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x31502d[_0x4034a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4034a0([0x66,0x69,0x6c,0x6c])](_0x31502d[0x0]===_0x4034a0([0x2a])?_0x4034a0([0x2a]):'')[_0x4034a0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x31502d))[_0x4034a0([0x73,0x6f,0x6d,0x65])](_0x154967=>_0x5e04d0[_0x4034a0([0x65,0x76,0x65,0x72,0x79])]((_0x576c1e,_0x4de793)=>_0x154967[_0x4de793]===_0x576c1e||_0x154967[_0x4de793]===_0x4034a0([0x2a])));}function _0x3b2dda(){return _0x512827&&_0x21ad0a?new window[(_0x4034a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d9b4b,_0x194c93)=>{_0x512827[_0x4034a0([0x74,0x68,0x65,0x6e])](_0x2d9b4b,_0x194c93),_0x21ad0a[_0x4034a0([0x74,0x68,0x65,0x6e])](_0x25afc8=>{_0x25afc8!=_0x4034a0([0x56,0x61,0x6c,0x69,0x64])&&_0x2d9b4b(_0x25afc8);},_0x194c93);}):_0x512827||_0x21ad0a||_0x4034a0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x264843(_0x11fc1b,_0x223784){return new window[(_0x4034a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x393481=>{if(_0x3d71fc())return _0x393481(_0x4034a0([0x56,0x61,0x6c,0x69,0x64]));_0xeedc7c(),_0x53b871[_0x4034a0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4034a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x130416=!0x1;const _0x1e4d65=_0x26781f();function _0x45e6e0(_0x4a7e7a){return!!_0x4a7e7a&&(typeof _0x4a7e7a===_0x4034a0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a7e7a===_0x4034a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a7e7a[_0x4034a0([0x74,0x68,0x65,0x6e])]===_0x4034a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a7e7a[_0x4034a0([0x63,0x61,0x74,0x63,0x68])]===_0x4034a0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x54fb16(_0x292832){_0x3f8ecc(_0x292832)[_0x4034a0([0x74,0x68,0x65,0x6e])](_0x2567a9=>{if(!_0x2567a9||_0x2567a9[_0x4034a0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4034a0([0x6f,0x6b]))return _0x4034a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2884b1(_0x2a4871(_0x1e4d65+_0x223784))!=_0x2567a9[_0x4034a0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4034a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4034a0([0x56,0x61,0x6c,0x69,0x64]);})[_0x4034a0([0x74,0x68,0x65,0x6e])](_0x4dbe21=>(_0x478f42(),_0x4dbe21),()=>{const _0x10d60c=_0x11ed98();return null==_0x10d60c?(_0x478f42(),_0x4034a0([0x56,0x61,0x6c,0x69,0x64])):_0x4034a0(_0x38650e-_0x10d60c>(0x13a67f51^_0x445d52)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4034a0([0x74,0x68,0x65,0x6e])](_0x393481)[_0x4034a0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x393481(_0x4034a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4f613e=0x379c15d1^_0x445d52;function _0x478f42(){const _0x2a1717=_0x4034a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2884b1(_0x2a4871(_0x11fc1b)),_0x12d48b=_0x4bc07e(_0x2884b1(window[_0x4034a0([0x4d,0x61,0x74,0x68])][_0x4034a0([0x63,0x65,0x69,0x6c])](_0x38650e/_0x4f613e)));window[_0x4034a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4034a0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a1717,_0x12d48b);}function _0x11ed98(){const _0x2e2ffb=_0x4034a0([0x6c,0x6c,0x63,0x74,0x2d])+_0x2884b1(_0x2a4871(_0x11fc1b)),_0x58af64=window[_0x4034a0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4034a0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e2ffb);return _0x58af64?window[_0x4034a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bc07e(_0x58af64),0x10)*_0x4f613e:null;}function _0x3f8ecc(_0x4270d5){return new window[(_0x4034a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f7b80,_0x51570b)=>{_0x4270d5[_0x4034a0([0x74,0x68,0x65,0x6e])](_0x2f7b80,_0x51570b),window[_0x4034a0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51570b,0x37ab2f91^_0x445d52);});}}_0x53b871[_0x4034a0([0x6f,0x6e])](_0x4034a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41bd2e,_0x40ad75)=>{if(_0x40ad75[0x0]!=_0x11fc1b)return _0x393481(_0x4034a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x40ad75[0x1]={..._0x40ad75[0x1],[_0x4034a0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e4d65};},{[_0x4034a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4034a0([0x68,0x69,0x67,0x68])}),_0x53b871[_0x4034a0([0x6f,0x6e])](_0x4034a0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x165c4e=>{_0x45e6e0(_0x165c4e[_0x4034a0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x130416=!0x0,_0x54fb16(_0x165c4e[_0x4034a0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4034a0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4034a0([0x6c,0x6f,0x77])}),_0x35c37f[_0x4034a0([0x74,0x68,0x65,0x6e])](()=>{_0x130416||_0x393481(_0x4034a0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d71fc(){return _0x53b871[_0x4034a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4034a0([0x76,0x69,0x65,0x77])][_0x4034a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4034a0([0x61,0x75,0x74,0x6f]);}function _0xeedc7c(){_0x53b871[_0x4034a0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4034a0([0x76,0x69,0x65,0x77])][_0x4034a0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4034a0([0x61,0x75,0x74,0x6f]);}}function _0x367d18(_0x353642){const _0x44a2ac=[new window[(_0x4034a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9838c3=>setTimeout(_0x9838c3,0x37a3c59d^_0x445d52)),_0x35c37f[_0x4034a0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4034a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d3724=>{let _0xf398c=0x0;_0x53b871[_0x4034a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4034a0([0x6f,0x6e])](_0x4034a0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x550fcd,_0x5a3320)=>{_0x5a3320[0x0][_0x4034a0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf398c++,_0xf398c==(0x37aafaa9^_0x445d52)&&(_0x1d3724(),_0x550fcd[_0x4034a0([0x6f,0x66,0x66])]());});}))];return window[_0x4034a0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4034a0([0x72,0x61,0x63,0x65])](_0x44a2ac)[_0x4034a0([0x74,0x68,0x65,0x6e])](()=>_0x353642);}async function _0x454982(){await _0x35c37f,_0x53b871[_0x4034a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4034a0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22557f,_0x53b871[_0x4034a0([0x6d,0x6f,0x64,0x65,0x6c])][_0x4034a0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22557f,_0x53b871[_0x4034a0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4034a0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x56c055(_0x14fee6){const _0x3ad22e=_0x1ffdbc();_0x53b871[_0x3ad22e]=_0x4034a0([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x14fee6,_0x14fee6!=_0x4034a0([0x56,0x61,0x6c,0x69,0x64])&&_0x454982();}function _0x1ffdbc(){const _0x1e8674=window[_0x4034a0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4034a0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4034a0([0x6e,0x6f,0x77])]())[_0x4034a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4034a0([0x2e]),'');let _0x1bee2d=_0x4034a0([0x55]);for(let _0x4441ca=0x0;_0x4441ca<_0x1e8674[_0x4034a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4441ca+=0x2){let _0x3c7b4c=window[_0x4034a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e8674[_0x4034a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4441ca,_0x4441ca+0x2));_0x3c7b4c>=_0x25bf0b[_0x4034a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3c7b4c-=_0x25bf0b[_0x4034a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1bee2d+=_0x25bf0b[_0x3c7b4c];}return _0x1bee2d;}function _0x2e32cd(){const _0x279f0d=_0x33b764[_0x4034a0([0x73,0x70,0x6c,0x69,0x74])](_0x4034a0([0x2e]));if(0x3!=_0x279f0d[_0x4034a0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1e5aae(_0x279f0d[0x1]);function _0x1e5aae(_0x3bd9b3){const _0x2e5513=_0x352a83(_0x3bd9b3);return _0x2e5513&&_0x565585()?_0x2e5513:null;function _0x565585(){const _0x338269=_0x2e5513[_0x4034a0([0x6a,0x74,0x69])],_0x2f2311=window[_0x4034a0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x338269[_0x4034a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x338269[_0x4034a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x37a1ad={..._0x2e5513,[_0x4034a0([0x6a,0x74,0x69])]:_0x338269[_0x4034a0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x338269[_0x4034a0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x37a1ad[_0x4034a0([0x76,0x63])],_0x2a4871(_0x37a1ad)==_0x2f2311;}}}async function _0x2f82c0(){let _0xd33506=!0x0;try{const _0x5ba11d=_0x33b764[_0x4034a0([0x73,0x70,0x6c,0x69,0x74])](_0x4034a0([0x2e])),[_0x4c910a,_0x205aa2,_0x3c6bec]=_0x5ba11d;return _0x167044(_0x4c910a),await _0x1ccaf5(_0x4c910a,_0x205aa2,_0x3c6bec),_0xd33506;}catch{return!0x1;}function _0x167044(_0x3e37da){const _0x1a28b3=_0x352a83(_0x3e37da);_0x1a28b3&&_0x1a28b3[_0x4034a0([0x61,0x6c,0x67])]==_0x4034a0([0x45,0x53,0x32,0x35,0x36])||(_0xd33506=!0x1);}async function _0x1ccaf5(_0x5f2407,_0x321b61,_0x24c726){const _0x5e9818=window[_0x4034a0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4034a0([0x66,0x72,0x6f,0x6d])](_0x2b09a2(_0x24c726),_0x26c76c=>_0x26c76c[_0x4034a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e1e00=new window[(_0x4034a0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4034a0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5f2407+_0x4034a0([0x2e])+_0x321b61),_0x4338fd=window[_0x4034a0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4034a0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4338fd)return;const _0x5bf569=await _0x4338fd[_0x4034a0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4034a0([0x6a,0x77,0x6b]),_0x35adbb,{[_0x4034a0([0x6e,0x61,0x6d,0x65])]:_0x4034a0([0x45,0x43,0x44,0x53,0x41]),[_0x4034a0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4034a0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4034a0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4338fd[_0x4034a0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4034a0([0x6e,0x61,0x6d,0x65])]:_0x4034a0([0x45,0x43,0x44,0x53,0x41]),[_0x4034a0([0x68,0x61,0x73,0x68])]:{[_0x4034a0([0x6e,0x61,0x6d,0x65])]:_0x4034a0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5bf569,_0x5e9818,_0x4e1e00)||(_0xd33506=!0x1);}}function _0x352a83(_0x51180e){return _0x51180e[_0x4034a0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4034a0([0x65,0x79]))?JSON[_0x4034a0([0x70,0x61,0x72,0x73,0x65])](_0x2b09a2(_0x51180e)):null;}function _0x2b09a2(_0x12ffba){return window[_0x4034a0([0x61,0x74,0x6f,0x62])](_0x12ffba[_0x4034a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4034a0([0x2b]))[_0x4034a0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4034a0([0x2f])));}function _0x2a4871(_0x26ec17){let _0x19ec19=0x1505;function _0x4b46fa(_0x2f095c){for(let _0x49dc5d=0x0;_0x49dc5d<_0x2f095c[_0x4034a0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49dc5d++){const _0x2b2415=_0x2f095c[_0x4034a0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x49dc5d);_0x19ec19=(_0x19ec19<<0x5)+_0x19ec19+_0x2b2415,_0x19ec19&=_0x19ec19;}}function _0x1a1545(_0xf1587c){Array[_0x4034a0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf1587c)?_0xf1587c[_0x4034a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a1545):_0xf1587c&&typeof _0xf1587c==_0x4034a0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4034a0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf1587c)[_0x4034a0([0x73,0x6f,0x72,0x74])]()[_0x4034a0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c3769,_0x169610])=>{_0x4b46fa(_0x2c3769),_0x1a1545(_0x169610);}):_0x4b46fa(window[_0x4034a0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf1587c));}return _0x1a1545(_0x26ec17),_0x19ec19>>>0x0;}function _0x2884b1(_0x3ec826){return _0x3ec826[_0x4034a0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4034a0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4034a0([0x30]));}function _0x4bc07e(_0xf26b63){return _0xf26b63[_0x4034a0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4034a0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4034a0([0x6a,0x6f,0x69,0x6e])]('');}function _0x22557f(){}function _0x4034a0(_0x201049){return _0x201049['map'](_0xcb605e=>String['fromCharCode'](_0xcb605e))['join']('');}_0x56c055(await _0x5493f7());}(this);}['_initSchema'](){const _0x6cceb3=this['editor']['model']['schema'];_0x6cceb3['isRegistered']('imageBlock')&&_0x6cceb3['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x6cceb3['isRegistered']('imageInline')&&_0x6cceb3['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x22b564=this['editor'];_0x22b564['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x22b564['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xeac24c=>_0xeac24c['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x53b2dd=_0x22b564['commands']['get']('replaceImageSource');_0x53b2dd&&this['listenTo'](_0x53b2dd,'cleanupImage',(_0x4b8bb0,[_0x4ec90a,_0x52c572])=>{_0x4ec90a['removeAttribute']('uploadcareImageId',_0x52c572);});}['_initConfig'](){const _0x33a470=this['editor']['config']['get']('uploadcare.uploader')||{},_0x5b90d8=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x15d2d5(_0x321168['document'],'uc-config',{..._0x33a470,'pubkey':_0x5b90d8,'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']=_0x205ab3=>{if('closeMax'==_0x205ab3)return'#uc-icon-arrow-down';},_0x321168['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x15d2d5(_0x321168['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x321168['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x3ed349=this['editor']['commands']['get']('insertImage');_0x3ed349&&this['listenTo'](_0x3ed349,'execute',()=>{const _0x357fa7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x357fa7&&_0x357fa7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x357fa7);});});const _0x171aa7=this['editor']['commands']['get']('uploadcareImageReplace');_0x171aa7&&this['listenTo'](_0x171aa7,'execute',()=>{const _0x1043e7=this['editor']['model']['document']['selection']['getSelectedElement']();_0x1043e7&&_0x1043e7['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x1043e7);});});}}class u extends _0x5152ce{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56ec8f){super(_0x56ec8f),_0x56ec8f['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x26cfeb['defineComponents'](_0x26cfeb);}}class ta extends _0x399b01{constructor(_0x4d948d){super(_0x4d948d);const t=_0x4d948d['t'],_0x10e2db=this['bindTemplate'],_0x4294e3=new _0x53f266();_0x4294e3['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':[_0x4294e3,{'text':_0x10e2db['to']('imageUploadProgress',_0x2e6f01=>t('Loading\x20image...')+'\x20('+(_0x2e6f01||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 _0x399b01{constructor(_0x483715){super(_0x483715);const t=_0x483715['t'];this['set']('errorType',null);const _0x278188=new _0x3025f1(_0x483715);_0x278188['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x278188['withText']=!0x0,_0x278188['class']='ck-button-action',_0x278188['on']('execute',()=>{this['fire']('retry');}),_0x278188['bind']('isVisible')['to'](this,'errorType',_0x2d7f6a=>'NotFound'!==_0x2d7f6a);const _0x195fe0=new at();_0x195fe0['content']=et,_0x195fe0['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x92bc8b=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':[_0x195fe0,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x92bc8b['to']('errorType',_0xfae60e=>t('NotFound'!==_0xfae60e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x278188]},{'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 _0x399b01{constructor(_0x2784c9,_0x25e9de){super(_0x2784c9);const _0x49721b=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x25e9de,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x49721b['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x343b1e,_0x4e6f00,_0x3acfdc){super(_0x343b1e),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x343b1e),this['_errorView']=new rt(_0x343b1e),this['_editingView']=new tt(_0x343b1e,_0x3acfdc),this['_focusableView']=new _0x399b01(_0x343b1e),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4e6f00),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'],_0x1ce2cb=>{this['_addUploadcareImageEditorListeners'](_0x1ce2cb);});}),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'](_0x2b868f,_0x78724e){const _0x443783='uc-cloud-image-editor',_0x41b2e3=_0x2b868f['querySelector'](_0x443783);if(_0x41b2e3)return _0x78724e(_0x41b2e3);const _0xdb9f5f=new MutationObserver(_0x57290d=>{const _0x345608=_0x57290d['filter'](_0x5b05b7=>_0x5b05b7['target']===_0x2b868f&&_0x5b05b7['addedNodes']['length']>0x0&&_0x5b05b7['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x443783);_0x345608['length']&&(_0xdb9f5f['disconnect'](),_0x78724e(_0x345608[0x0]['addedNodes'][0x0]));});_0xdb9f5f['observe'](_0x2b868f,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x569d07){_0x569d07['addEventListener']('apply',_0x3f6d1c=>{this['fire']('apply',{'imageSrc':_0x3f6d1c['detail']['cdnUrl']});}),_0x569d07['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
- _0x139640(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x5e27ec,_0x1cebe7,_0x52ef5f){super(),this['_editor']=_0x5e27ec,this['_dialog']=_0x1cebe7,this['_imageElement']=_0x52ef5f,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 _0x574479=this['_imageElement'],_0x2e693f=_0x574479['getAttribute']('uploadcareImageId'),_0x1815e2=_0x574479['getAttribute']('src');if(_0x2e693f)await this['_loadImageInfo'](_0x2e693f,_0x1815e2);else{if(this['_imageCache']['has'](_0x1815e2)){const _0x2a868b=this['_imageCache']['get'](_0x1815e2);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2a868b['url'],this['imageDimension']=_0x2a868b['dimension'],this['imageId']=_0x2a868b['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5eafe7}=this['_editor'],t=_0x5eafe7['t'],_0x59ba6a=new Z(_0x5eafe7,this['imageStatus'],this['_attributes']);_0x59ba6a['bind']('status')['to'](this,'imageStatus'),_0x59ba6a['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x59ba6a['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x59ba6a['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x59ba6a,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3dd6be,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x59ba6a,'position':_0x321c8c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x59ba6a['focus']();},'onHide':()=>{_0x59ba6a['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1ba59e=>!F(_0x1ba59e,_0x59ba6a['element'])}});}['_loadImageInfo'](_0x243aaf,_0x40474f){return C['getInfo'](_0x243aaf,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1bc9b9=>{const {width:_0x1df1e8,height:_0x802d07}=_0x1bc9b9['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x40474f,this['imageDimension']={'width':_0x1df1e8,'height':_0x802d07},this['imageId']=_0x243aaf;})['catch'](_0x2d4411=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2d4411['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x257529,_0x58e57d){return this['_getImageAsFile'](_0x257529)['then'](_0x4a457e=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x58e57d['signal'],'file':_0x4a457e,'onProgress':_0x4b8c01=>{_0x4b8c01&&_0x4b8c01['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4b8c01['value']));}}))['then'](_0xb3f92=>{const {width:_0x20c68c,height:_0x11fcf2}=_0xb3f92['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xb3f92['cdnUrl'],this['imageDimension']={'width':_0x20c68c,'height':_0x11fcf2},this['imageId']=_0xb3f92['uuid'],this['imageUploadProgress']=null;const _0x219685=_0x257529['getAttribute']('src');this['_imageCache']['set'](_0x219685,{'id':_0xb3f92['uuid'],'url':_0xb3f92['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x22b09c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x22b09c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x468606,_0x12e6ee){_0x468606['on']('apply',(_0x2c57a4,_0x5c6405)=>{this['_replaceImage'](_0x12e6ee,_0x5c6405['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x468606['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x468606['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2b9e65,_0x10a126,_0x3bb45d){const _0x2254d0=this['_editor'],{width:_0x5f388f,height:_0xbf4d07}=A(_0x10a126,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x4857d5,imageSources:_0x2e2574}=E(_0x10a126,_0x5f388f);_0x2254d0['model']['change'](_0x375b39=>{if('$graveyard'===_0x2b9e65['root']['rootName']){_0x2254d0['execute']('insertImage',{'imageType':_0x2b9e65['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2b9e65['getAttributes']()),'uploadcareImageId':_0x3bb45d,'src':_0x4857d5,'sources':_0x2e2574,'width':_0x5f388f,'height':_0xbf4d07}});const _0x395992=_0x2b9e65['getChildren']();_0x2b9e65=_0x2254d0['model']['document']['selection']['getSelectedElement']();for(const _0x1239d2 of _0x395992)_0x375b39['append'](_0x375b39['cloneElement'](_0x1239d2),_0x2b9e65);}else _0x375b39['setSelection'](_0x2b9e65,'on'),_0x2254d0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2b9e65['getAttributes']()),'uploadcareImageId':_0x3bb45d,'src':_0x4857d5,'sources':_0x2e2574,'width':_0x5f388f,'height':_0xbf4d07},_0x2b9e65);_0x375b39['setSelection'](_0x2b9e65,'on');});}async['_getImageAsFile'](_0x58f76f){const _0x482308=_0x321168['window'],_0x3a6a16=_0x321168['document']['location']['href'],_0x4140e9=new _0x482308['URL'](_0x58f76f['getAttribute']('src'),_0x3a6a16);if('data:'===_0x4140e9['protocol']){const _0x1de91e=_0x4140e9['href']['split'](','),_0x240cee=_0x1de91e[0x0]['match'](/:(.*?);/)[0x1],_0x3a9605=_0x240cee['split']('/')[0x1],_0x55988d=_0x482308['atob'](_0x1de91e[_0x1de91e['length']-0x1]);let _0x2eff9e=_0x55988d['length'];const _0x3564c1=new _0x482308['Uint8Array'](_0x2eff9e);for(;_0x2eff9e--;)_0x3564c1[_0x2eff9e]=_0x55988d['charCodeAt'](_0x2eff9e);return new _0x482308['File']([_0x3564c1],'image.'+_0x3a9605,{'type':_0x240cee});}const _0x425df2=_0x4140e9['href']['split']('/'),_0x4040b9=_0x425df2[_0x425df2['length']-0x1],_0x353920=_0x4040b9['split']('.')[0x1];return _0x482308['fetch'](_0x4140e9['href'])['then'](_0x4ee846=>_0x4ee846['clone']()['blob']())['then'](_0x5a6468=>new _0x482308['File']([_0x5a6468],_0x4040b9,{'type':'image/'+_0x353920}));}}class J extends _0x3dcbcd{['imageEditController'];static get['requires'](){return[_0x1494e5];}['_isEditable'];constructor(_0x1a6ea8){super(_0x1a6ea8),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x553297){const _0x35561f=V(_0x553297);return _0x2bab47=>!(!_0x2bab47||!_0x2bab47['is']('element','imageBlock')&&!_0x2bab47['is']('element','imageInline'))&&(!!_0x2bab47['hasAttribute']('uploadcareImageId')||!!_0x2bab47['hasAttribute']('src')&&_0x35561f(_0x2bab47['getAttribute']('src')));}(_0x1a6ea8['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x178e90=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x178e90);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x5164f3=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5164f3&&(_0x5164f3['is']('element','imageBlock')||_0x5164f3['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x1494e5),_0x5164f3),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3dcbcd{['refresh'](){const _0x14ceb=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x14ceb&&(_0x14ceb['is']('element','imageBlock')||_0x14ceb['is']('element','imageInline')));}['execute'](_0x48b029){const _0x4883bf=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x30692d=>{_0x30692d['setAttributes'](_0x48b029,_0x4883bf),_0x30692d['removeAttribute']('srcset',_0x4883bf),_0x30692d['removeAttribute']('sizes',_0x4883bf);});}}class g extends _0x5152ce{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x4245c1,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xa4b085}=this;_0xa4b085['commands']['add']('uploadcareImageEdit',new J(_0xa4b085)),_0xa4b085['commands']['add']('uploadcareImageReplace',new O(_0xa4b085));}}class j extends _0x5152ce{['_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 _0x325830=this['editor'];_0x325830['ui']['componentFactory']['add']('uploadcareImageEdit',_0x15526b=>{const _0x35d5e4=_0x325830['commands']['get']('uploadcareImageEdit'),_0x3ed936=new _0x3025f1(_0x15526b),t=_0x15526b['t'];return _0x3ed936['set']({'icon':_0x3dd6be,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3ed936['bind']('isEnabled')['to'](_0x35d5e4),_0x3ed936['bind']('isOn')['to'](_0x35d5e4,'isActive'),this['listenTo'](_0x3ed936,'execute',()=>{_0x325830['execute']('uploadcareImageEdit'),_0x325830['editing']['view']['focus']();}),_0x3ed936;}),this['_initConfig']();}['_initConfig'](){const _0x436769=_0x15d2d5(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x436769),this['listenTo'](this['editor'],'destroy',()=>{_0x436769['remove']();});}}class P extends _0x5152ce{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 _0x235cec,Command as _0x3e6fbf}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x146b8a,IconGooglePhotos as _0x295fb9,IconGoogleDrive as _0x40bd1d,IconFacebook as _0x4ef90f,IconDropbox as _0x1d6618,IconUploadcareLink as _0x18f5c4,IconUploadcareImageUpload as _0x4fce07,IconError as et,IconUploadcareImageEdit as _0x51fdd7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x1b8a4c,MenuBarMenuListItemButtonView as _0x24f818,View as _0x3d2ea6,FocusCycler as _0x5af8cd,Dialog as _0x1c972a,DialogViewPosition as _0x3818a0,SpinnerView as _0x2619a0,IconView as at,Notification as _0x3dcad6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x13d675,DomEmitterMixin as _0x1c8e8b,global as _0x58c00a,getAncestors as _0x2db418,ObservableMixin as _0x4155d8,createElement as _0x2f0913,uid as _0x243f71}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x7b6070}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x7ce2a9,info as _0xc9e5e8}from'@uploadcare/upload-client';import*as _0x34f4b0 from'@uploadcare/file-uploader';var o=function(_0x417222){return _0x417222['Local']='local',_0x417222['URL']='url',_0x417222['Dropbox']='dropbox',_0x417222['GDrive']='gdrive',_0x417222['Facebook']='facebook',_0x417222['GPhotos']='gphotos',_0x417222['OneDrive']='onedrive',_0x417222;}({});function _(_0x109e51,_0x2f077e,_0x4c4434){const t=_0x109e51['t'],_0x236189=_0x109e51['t'];switch(_0x2f077e){case o['Local']:return{'text':_0x236189('Insert'===_0x4c4434?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x236189('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x4c4434?_0x236189('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x236189('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x4c4434?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x4c4434?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x4c4434?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x4c4434?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x4c4434?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2f077e;}}class e extends _0x235cec{['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 _0x405145=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x473276;for(const _0x3f4766 in _0x405145){const _0x319947=_0x3f4766,_0x2242d6=_0x405145[_0x319947];if('uploadcareLicenseKeyValid'==_0x2242d6||'uploadcareLicenseKeyInvalid'==_0x2242d6||'uploadcareLicenseKeyExpired'==_0x2242d6||'uploadcareLicenseKeyDomainLimit'==_0x2242d6||'uploadcareLicenseKeyNotAllowed'==_0x2242d6||'uploadcareLicenseKeyEvaluationLimit'==_0x2242d6||'uploadcareLicenseKeyTrialLimit'==_0x2242d6||'uploadcareLicenseKeyUsageLimit'==_0x2242d6){delete _0x405145[_0x319947],_0x473276=_0x2242d6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x473276&&_0x405145['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x473276&&_0x405145['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x473276&&_0x405145['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x473276&&_0x405145['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x473276&&_0x405145['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x473276&&_0x405145['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x473276&&_0x405145['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0xf0d7a5}=this,_0x58ee3d=_0xf0d7a5['commands']['get']('uploadcare');if(!_0x58ee3d)return;const _0x5493e1=this['_normalizeConfigSourceList'](_0xf0d7a5['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x402b02,_0xbd5290)=>{const _0x4c31d8=this['_getIntegrationKey'](_0xbd5290['type']);return _0x402b02[_0x4c31d8]||(_0x402b02[_0x4c31d8]=[]),_0x402b02[_0x4c31d8]['push'](_0xbd5290),_0x402b02;},{});_0xf0d7a5['plugins']['has']('ImageInsertUI')&&_0xf0d7a5['commands']['get']('uploadcare')&&Object['entries'](_0x5493e1)['forEach'](([_0x57b317,_0x4dd23f])=>{_0xf0d7a5['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x57b317,'observable':()=>_0x58ee3d,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4dd23f),'formViewCreator':()=>this['_createDropdownButtons'](_0x4dd23f),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4dd23f),'override':'assetManager'!==_0x57b317});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3b1187){const {locale:_0x1b0443}=this['editor'];return _0x3b1187['map'](_0x367f7f=>{const _0x49ecbd=_(_0x1b0443,_0x367f7f,'Insert');switch(_0x367f7f){case o['Local']:return{'icon':_0x4fce07,'type':o['Local'],..._0x49ecbd};case o['URL']:return{'icon':_0x18f5c4,'type':o['URL'],..._0x49ecbd};case o['Dropbox']:return{'icon':_0x1d6618,'type':o['Dropbox'],..._0x49ecbd};case o['Facebook']:return{'icon':_0x4ef90f,'type':o['Facebook'],..._0x49ecbd};case o['GDrive']:return{'icon':_0x40bd1d,'type':o['GDrive'],..._0x49ecbd};case o['GPhotos']:return{'icon':_0x295fb9,'type':o['GPhotos'],..._0x49ecbd};case o['OneDrive']:return{'icon':_0x146b8a,'type':o['OneDrive'],..._0x49ecbd};}});}['_getIntegrationKey'](_0x29ba9f){switch(_0x29ba9f){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x440099,_0x1685f0){const _0xd81475=this['editor'],_0x7ab231=new _0x440099(_0xd81475['locale']),_0x394821=_0xd81475['commands']['get']('uploadcare');return _0x7ab231['bind']('isEnabled')['to'](_0x394821),_0x7ab231['on']('execute',()=>{_0x394821['execute'](_0x1685f0);}),_0x7ab231;}['_createToolbarButton'](_0x25c116){const {locale:_0x50ca8d}=this['editor'],_0x19da89=this['editor']['plugins']['get']('ImageInsertUI'),_0x133332=_0x25c116[0x0],_0x2653f1=this['_createButton'](_0x1b8a4c,_0x133332['type']);return _0x2653f1['icon']=_0x133332['icon'],_0x2653f1['bind']('label')['to'](_0x19da89,'isImageSelected',_0x59f9e3=>_(_0x50ca8d,_0x133332['type'],_0x59f9e3?'Replace':'Insert')['text']),_0x2653f1['tooltip']=!0x0,_0x2653f1;}['_createDropdownButtons'](_0x344239){const {locale:_0x2957e8}=this['editor'],_0x1f3076=this['editor']['plugins']['get']('ImageInsertUI');return _0x344239['map'](_0x57ba91=>{const _0x1d4528=this['_createButton'](_0x1b8a4c,_0x57ba91['type']);return _0x1d4528['withText']=!0x0,_0x1d4528['icon']=_0x57ba91['icon'],_0x1d4528['bind']('label')['to'](_0x1f3076,'isImageSelected',_0x471762=>_(_0x2957e8,_0x57ba91['type'],_0x471762?'Replace':'Insert')['text']),_0x1d4528;});}['_createMenuBarButtons'](_0x5e58a9){return _0x5e58a9['map'](_0x138422=>{const _0x52b6b0=this['_createButton'](_0x24f818,_0x138422['type']);return _0x52b6b0['icon']=_0x138422['icon'],_0x52b6b0['label']=_0x138422['shortText'],_0x52b6b0;});}}class q extends _0x3d2ea6{['focusTracker'];['focusCycler'];constructor(_0x532304){super(_0x532304),this['focusTracker']=new _0x13d675(),this['focusCycler']=new _0x5af8cd({'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(_0x1c34d3){super(_0x1c34d3),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(_0x39b272,_0x528a09){const _0x54a681=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x35feaa=>_0x35feaa<=_0x528a09)['map'](_0x4fce49=>_0x39b272['replace'](/\/$/,'')+'/-/resize/'+_0x4fce49+'x/\x20'+_0x4fce49+'w');return{'imageFallbackUrl':_0x39b272,'imageSources':[{'srcset':_0x54a681['join'](',\x20'),'sizes':'(max-width:\x20'+_0x528a09+'px)\x20100vw,\x20'+_0x528a09+'px','type':'image/webp'}]};}function A(_0xab6809,_0x3bd011,_0x2b9879){const _0x13b096=_0xab6809['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x13b096?parseInt(_0x13b096[0x1],0xa):_0x3bd011,'height':_0x13b096?parseInt(_0x13b096[0x2],0xa):_0x2b9879};}function m(_0x14c0a6,_0xa6c6cb){const _0x56aa11=Object['create'](_0x1c8e8b),_0x3ff381=_0x14c0a6['plugins']['get']('ImageUtils'),_0x26d6fe=_0x14c0a6['editing']['mapper']['toViewElement'](_0xa6c6cb),_0x2d676b=_0x3ff381['findViewImgElement'](_0x26d6fe),_0x5f262a=_0x14c0a6['editing']['view']['domConverter']['viewToDom'](_0x2d676b),_0x48c4d4=_0xa6c6cb['getAttribute']('width'),_0x57ef71=_0xa6c6cb['getAttribute']('height'),_0x240b09='image-processing';_0x14c0a6['editing']['view']['change'](_0x4d1d88=>{_0x4d1d88['addClass'](_0x240b09,_0x26d6fe),_0x4d1d88['setStyle']('aspect-ratio',_0x48c4d4+'/'+_0x57ef71,_0x2d676b);}),_0x56aa11['listenTo'](_0x5f262a,'load',()=>{_0x56aa11['stopListening'](_0x5f262a,'load'),_0x14c0a6['editing']['view']['change'](_0x500e6d=>{_0x500e6d['removeClass'](_0x240b09,_0x26d6fe),_0x500e6d['removeStyle']('aspect-ratio',_0x2d676b);});});}function V(_0x3f173f){if(Array['isArray'](_0x3f173f)){const _0x45d242=_0x3f173f['map'](V);return _0x442653=>_0x45d242['some'](_0xd32ba5=>_0xd32ba5(_0x442653));}if('origin'==_0x3f173f){const _0x38e3bb=_0x58c00a['window']['location']['origin'];return _0x442aba=>new URL(_0x442aba,_0x58c00a['document']['baseURI'])['origin']==_0x38e3bb;}return'function'==typeof _0x3f173f?_0x3f173f:_0x3f173f instanceof RegExp?_0x3a553c=>!(!_0x3a553c['match'](_0x3f173f)&&!_0x3a553c['replace'](/^https?:\/\//,'')['match'](_0x3f173f)):()=>!0x1;}function F(_0x458403,_0x4f0728){return _0x2db418(_0x458403['target'])['includes'](_0x4f0728);}class l extends/* #__PURE__ -- @preserve */
24
+ _0x4155d8(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5572b0,_0x169e41,_0x2b308c){super(),this['_editor']=_0x5572b0,this['_editing']=_0x169e41,this['_dialog']=_0x5572b0['plugins']['get'](_0x1c972a),this['_api']=_0x169e41['ctxElement']['getAPI'](),this['_type']=_0x2b308c,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:_0x454b5b,model:_0x3a75df}=this['_editor'],_0x464536=_0x3a75df['document']['selection']['getSelectedElement'](),_0x11d354=_0x464536&&(_0x464536['is']('element','imageBlock')||_0x464536['is']('element','imageInline'));this['_formView']=new S(_0x454b5b),this['_dialog']['show']({'id':'uploadCare','icon':_0x4fce07,'title':_(_0x454b5b,this['_type'],_0x11d354?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x3818a0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x413c8d=>!F(_0x413c8d,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x534f54}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5ec7c0=>{const _0x5c7d92=_0x534f54['length'];for(const _0x17ce92 of _0x534f54){const _0x582a85=_0x17ce92===_0x534f54[_0x5c7d92-0x1],{cdnUrl:_0x317ae1,fileInfo:_0x4c7006}=_0x17ce92;if(!_0x317ae1||!_0x4c7006)continue;const {width:_0x4f93d6,height:_0x2e7a73}=_0x4c7006['imageInfo'],_0x566733=A(_0x317ae1,_0x4f93d6,_0x2e7a73),_0x3e0bd3=E(_0x317ae1,_0x566733['width']),_0x441b2e={'id':_0x4c7006['uuid'],'type':'image','attributes':{'imageDimension':_0x566733,..._0x3e0bd3}};this['_insertAsset'](_0x441b2e,_0x582a85,_0x5ec7c0);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x2a4289=>{'idle'===_0x2a4289['detail']['status']&&!_0x2a4289['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x28c719,_0xd8f427,_0x4fcdf3){const _0x3592e0=this['_editor']['model']['document']['selection'],_0x400ec2=_0x3592e0['getSelectedElement'](),_0x45d808=!(!_0x400ec2||!_0x400ec2['is']('element','imageInline'));_0x4fcdf3['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x28c719,_0x45d808),_0xd8f427||_0x4fcdf3['setSelection'](_0x3592e0['getLastPosition']());}['_insertImage'](_0x1334be,_0x570318){const _0x45f3c0=this['_editor'],{imageDimension:_0x201f9d,imageFallbackUrl:_0x442ea0,imageSources:_0x2b81da}=_0x1334be['attributes'];_0x45f3c0['execute']('insertImage',{'imageType':_0x570318?'imageInline':null,'source':{'uploadcareImageId':_0x1334be['id'],'src':_0x442ea0,'sources':_0x2b81da,..._0x201f9d}});}}class n extends _0x3e6fbf{['_editing'];['_controller']=null;static get['requires'](){return[_0x1c972a,i];}constructor(_0x7be9a5){super(_0x7be9a5),this['_editing']=_0x7be9a5['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x19d6a3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new l(this['editor'],this['_editing'],_0x19d6a3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class C{static['upload']({file:_0x2c42d6,publicKey:_0x10d69e,signal:_0x3c6e8c,onProgress:_0x1f021c}){return _0x7ce2a9(_0x2c42d6,{'publicKey':_0x10d69e,'store':'auto','signal':_0x3c6e8c,'onProgress':_0x1f021c});}static['getInfo'](_0x56ce42,_0x18b727){return _0xc9e5e8(_0x56ce42,_0x18b727);}}class p extends _0x235cec{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x7b6070,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x28afb6=this['editor'];if(!!!_0x28afb6['config']['get']('uploadcare'))return;_0x28afb6['plugins']['get'](_0x7b6070)['createUploadAdapter']=_0x47ee4e=>new x(_0x47ee4e,_0x28afb6),_0x28afb6['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x346193,{imageElement:_0x5e0602,data:_0x3d6272})=>{_0x28afb6['model']['change'](_0xa528fd=>{_0xa528fd['setAttribute']('uploadcareImageId',_0x3d6272['uploadcareImageId'],_0x5e0602);});});}}class x{['loader'];['editor'];['controller'];constructor(_0xe41557,_0x3645a2){this['loader']=_0xe41557,this['editor']=_0x3645a2,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x352469=this['editor']['config']['get']('uploadcare.pubkey'),_0x5d649a=await this['loader']['file'];return C['upload']({'file':_0x5d649a,'publicKey':_0x352469,'signal':this['controller']['signal'],'onProgress':_0x4d739b=>{_0x4d739b&&_0x4d739b['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4d739b['value']);}})['then'](async _0x2e7712=>{const {imageFallbackUrl:_0x3d66c5,imageSources:_0xd10ba9}=E(_0x2e7712['cdnUrl'],_0x2e7712['imageInfo']['width']);return{'uploadcareImageId':_0x2e7712['uuid'],'default':_0x3d66c5,'sources':_0xd10ba9};})['catch'](()=>{const _0x49fb13=t('Cannot\x20upload\x20file:')+('\x20'+_0x5d649a['name']+'.');return Promise['reject'](_0x49fb13);});}['abort'](){this['controller']['abort']();}}class i extends _0x235cec{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',p,_0x1c972a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x517a92=this['editor'];_0x517a92['commands']['add']('uploadcare',new n(_0x517a92));}['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 _0x30d408=_0x58c00a['document']['querySelector']('input[uploadcare-file-input]');_0x30d408&&_0x30d408['remove']();}),async function(_0x1de610){const _0x190e45=_0x39dc00([0x53,0x65,0x38,0x43,0x4e,0x75,0x42,0x58,0x71,0x4a,0x31,0x77,0x66,0x70,0x78,0x72,0x6c,0x6e,0x52,0x45,0x48,0x35,0x6a,0x68,0x73,0x64,0x74,0x39,0x5a,0x69,0x59,0x61,0x4c,0x76,0x30,0x55,0x57,0x6b,0x4f,0x41,0x79,0x47,0x56,0x51,0x36,0x62,0x6d,0x4d,0x67,0x50,0x7a,0x32,0x54,0x44,0x37,0x49,0x46,0x6f,0x33,0x63,0x4b,0x34]),_0xda6464=0x59d118f7,_0x264690=0x59d67367^_0xda6464,_0x1e2b5a=window[_0x39dc00([0x44,0x61,0x74,0x65])][_0x39dc00([0x6e,0x6f,0x77])](),_0x468cd9=_0x1de610[_0x39dc00([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3556ee=new window[(_0x39dc00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x401028=>{_0x468cd9[_0x39dc00([0x6f,0x6e,0x63,0x65])](_0x39dc00([0x72,0x65,0x61,0x64,0x79]),_0x401028);}),_0x1c08ce={[_0x39dc00([0x6b,0x74,0x79])]:_0x39dc00([0x45,0x43]),[_0x39dc00([0x75,0x73,0x65])]:_0x39dc00([0x73,0x69,0x67]),[_0x39dc00([0x63,0x72,0x76])]:_0x39dc00([0x50,0x2d,0x32,0x35,0x36]),[_0x39dc00([0x78])]:_0x39dc00([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]),[_0x39dc00([0x79])]:_0x39dc00([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]),[_0x39dc00([0x61,0x6c,0x67])]:_0x39dc00([0x45,0x53,0x32,0x35,0x36])},_0x559091=_0x468cd9[_0x39dc00([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x39dc00([0x67,0x65,0x74])](_0x39dc00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x53ae98(){let _0xba6236,_0x5d64ec=null,_0x443f68=null;try{if(_0x559091==_0x39dc00([0x47,0x50,0x4c]))return _0x39dc00([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xba6236=_0x3783a7(),!_0xba6236)return _0x39dc00([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xba6236[_0x39dc00([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x443f68=_0x526e53(_0xba6236[_0x39dc00([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xba6236[_0x39dc00([0x6a,0x74,0x69])])),await _0x4ce722()?_0x1a7cac()?_0xd8962b()?_0x39dc00([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c005a()?(_0xba6236[_0x39dc00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39dc00([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5d64ec=_0x352c59(_0x39dc00([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xba6236[_0x39dc00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x39dc00([0x74,0x72,0x69,0x61,0x6c])&&(_0x5d64ec=_0x352c59(_0x39dc00([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x254b87()):_0x39dc00([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x39dc00([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x39dc00([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x39dc00([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xd8962b(){const _0x109ce3=[_0x39dc00([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x39dc00([0x74,0x72,0x69,0x61,0x6c])][_0x39dc00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xba6236[_0x39dc00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1e2b5a/0x3e8:0xe10*_0x264690;return _0xba6236[_0x39dc00([0x65,0x78,0x70])]<_0x109ce3;}function _0x1a7cac(){const _0x3d06f5=_0xba6236[_0x39dc00([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3d06f5&&(!!_0x3d06f5[_0x39dc00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39dc00([0x2a]))||!!_0x3d06f5[_0x39dc00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39dc00([0x55,0x50,0x4c,0x43])));}function _0x3c005a(){const _0x25bd60=_0xba6236[_0x39dc00([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x25bd60||0x0==_0x25bd60[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4faf45}=new URL(window[_0x39dc00([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x25bd60[_0x39dc00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4faf45))return!0x0;const _0xe2bba=_0x4faf45[_0x39dc00([0x73,0x70,0x6c,0x69,0x74])](_0x39dc00([0x2e]));return _0x25bd60[_0x39dc00([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13a86b=>_0x13a86b[_0x39dc00([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39dc00([0x2a])))[_0x39dc00([0x6d,0x61,0x70])](_0x57181e=>_0x57181e[_0x39dc00([0x73,0x70,0x6c,0x69,0x74])](_0x39dc00([0x2e])))[_0x39dc00([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x531f95=>_0x531f95[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe2bba[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x39dc00([0x6d,0x61,0x70])](_0x29af38=>Array(_0xe2bba[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x29af38[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x39dc00([0x66,0x69,0x6c,0x6c])](_0x29af38[0x0]===_0x39dc00([0x2a])?_0x39dc00([0x2a]):'')[_0x39dc00([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x29af38))[_0x39dc00([0x73,0x6f,0x6d,0x65])](_0x220433=>_0xe2bba[_0x39dc00([0x65,0x76,0x65,0x72,0x79])]((_0x48ab29,_0x53334b)=>_0x220433[_0x53334b]===_0x48ab29||_0x220433[_0x53334b]===_0x39dc00([0x2a])));}function _0x254b87(){return _0x5d64ec&&_0x443f68?new window[(_0x39dc00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe266ea,_0x3d7d7e)=>{_0x5d64ec[_0x39dc00([0x74,0x68,0x65,0x6e])](_0xe266ea,_0x3d7d7e),_0x443f68[_0x39dc00([0x74,0x68,0x65,0x6e])](_0x2f4700=>{_0x2f4700!=_0x39dc00([0x56,0x61,0x6c,0x69,0x64])&&_0xe266ea(_0x2f4700);},_0x3d7d7e);}):_0x5d64ec||_0x443f68||_0x39dc00([0x56,0x61,0x6c,0x69,0x64]);}}function _0x526e53(_0x106467,_0x48aac0){return new window[(_0x39dc00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x264e75=>{if(_0x459fc6())return _0x264e75(_0x39dc00([0x56,0x61,0x6c,0x69,0x64]));_0x431d23(),_0x468cd9[_0x39dc00([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x39dc00([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x582ac4=!0x1;const _0x201f44=_0x243f71();function _0x321a2a(_0xce897a){return!!_0xce897a&&(typeof _0xce897a===_0x39dc00([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xce897a===_0x39dc00([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xce897a[_0x39dc00([0x74,0x68,0x65,0x6e])]===_0x39dc00([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xce897a[_0x39dc00([0x63,0x61,0x74,0x63,0x68])]===_0x39dc00([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a7010(_0x29bbeb){_0x102c78(_0x29bbeb)[_0x39dc00([0x74,0x68,0x65,0x6e])](_0x4afdfa=>{if(!_0x4afdfa||_0x4afdfa[_0x39dc00([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x39dc00([0x6f,0x6b]))return _0x39dc00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x47c469(_0xed7402(_0x201f44+_0x48aac0))!=_0x4afdfa[_0x39dc00([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x39dc00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x39dc00([0x56,0x61,0x6c,0x69,0x64]);})[_0x39dc00([0x74,0x68,0x65,0x6e])](_0x27f2b5=>(_0x10b540(),_0x27f2b5),()=>{const _0x334303=_0x48e7c9();return null==_0x334303?(_0x10b540(),_0x39dc00([0x56,0x61,0x6c,0x69,0x64])):_0x39dc00(_0x1e2b5a-_0x334303>(0x7ddd9cf7^_0xda6464)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x39dc00([0x74,0x68,0x65,0x6e])](_0x264e75)[_0x39dc00([0x63,0x61,0x74,0x63,0x68])](()=>{_0x264e75(_0x39dc00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x10b617=0x59e7f677^_0xda6464;function _0x10b540(){const _0x26f587=_0x39dc00([0x6c,0x6c,0x63,0x74,0x2d])+_0x47c469(_0xed7402(_0x106467)),_0x333dc7=_0x4e6f86(_0x47c469(window[_0x39dc00([0x4d,0x61,0x74,0x68])][_0x39dc00([0x63,0x65,0x69,0x6c])](_0x1e2b5a/_0x10b617)));window[_0x39dc00([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39dc00([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26f587,_0x333dc7);}function _0x48e7c9(){const _0x614050=_0x39dc00([0x6c,0x6c,0x63,0x74,0x2d])+_0x47c469(_0xed7402(_0x106467)),_0x1b54e3=window[_0x39dc00([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x39dc00([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x614050);return _0x1b54e3?window[_0x39dc00([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e6f86(_0x1b54e3),0x10)*_0x10b617:null;}function _0x102c78(_0x179f2b){return new window[(_0x39dc00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36402b,_0x4d1c0c)=>{_0x179f2b[_0x39dc00([0x74,0x68,0x65,0x6e])](_0x36402b,_0x4d1c0c),window[_0x39dc00([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d1c0c,0x59d0cc37^_0xda6464);});}}_0x468cd9[_0x39dc00([0x6f,0x6e])](_0x39dc00([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x44cbcc,_0x18410b)=>{if(_0x18410b[0x0]!=_0x106467)return _0x264e75(_0x39dc00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18410b[0x1]={..._0x18410b[0x1],[_0x39dc00([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x201f44};},{[_0x39dc00([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39dc00([0x68,0x69,0x67,0x68])}),_0x468cd9[_0x39dc00([0x6f,0x6e])](_0x39dc00([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x47af0d=>{_0x321a2a(_0x47af0d[_0x39dc00([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x582ac4=!0x0,_0x2a7010(_0x47af0d[_0x39dc00([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x39dc00([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x39dc00([0x6c,0x6f,0x77])}),_0x3556ee[_0x39dc00([0x74,0x68,0x65,0x6e])](()=>{_0x582ac4||_0x264e75(_0x39dc00([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x459fc6(){return _0x468cd9[_0x39dc00([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39dc00([0x76,0x69,0x65,0x77])][_0x39dc00([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x39dc00([0x61,0x75,0x74,0x6f]);}function _0x431d23(){_0x468cd9[_0x39dc00([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x39dc00([0x76,0x69,0x65,0x77])][_0x39dc00([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x39dc00([0x61,0x75,0x74,0x6f]);}}function _0x352c59(_0x160089){const _0x3a2a75=[new window[(_0x39dc00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a26ff=>setTimeout(_0x3a26ff,0x59d8263b^_0xda6464)),_0x3556ee[_0x39dc00([0x74,0x68,0x65,0x6e])](()=>new window[(_0x39dc00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb94340=>{let _0x28c571=0x0;_0x468cd9[_0x39dc00([0x6d,0x6f,0x64,0x65,0x6c])][_0x39dc00([0x6f,0x6e])](_0x39dc00([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x14ecb6,_0x3f248e)=>{_0x3f248e[0x0][_0x39dc00([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x28c571++,_0x28c571==(0x59d1190f^_0xda6464)&&(_0xb94340(),_0x14ecb6[_0x39dc00([0x6f,0x66,0x66])]());});}))];return window[_0x39dc00([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x39dc00([0x72,0x61,0x63,0x65])](_0x3a2a75)[_0x39dc00([0x74,0x68,0x65,0x6e])](()=>_0x160089);}async function _0xf8054e(){await _0x3556ee,_0x468cd9[_0x39dc00([0x6d,0x6f,0x64,0x65,0x6c])][_0x39dc00([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c9798,_0x468cd9[_0x39dc00([0x6d,0x6f,0x64,0x65,0x6c])][_0x39dc00([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c9798,_0x468cd9[_0x39dc00([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x39dc00([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5c495d(_0x3dc436){const _0x5be09b=_0x3d95c9();_0x468cd9[_0x5be09b]=_0x39dc00([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3dc436,_0x3dc436!=_0x39dc00([0x56,0x61,0x6c,0x69,0x64])&&_0xf8054e();}function _0x3d95c9(){const _0x2135ef=window[_0x39dc00([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x39dc00([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x39dc00([0x6e,0x6f,0x77])]())[_0x39dc00([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x39dc00([0x2e]),'');let _0x36e247=_0x39dc00([0x53]);for(let _0x282766=0x0;_0x282766<_0x2135ef[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x282766+=0x2){let _0xdbaf5=window[_0x39dc00([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2135ef[_0x39dc00([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x282766,_0x282766+0x2));_0xdbaf5>=_0x190e45[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xdbaf5-=_0x190e45[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x36e247+=_0x190e45[_0xdbaf5];}return _0x36e247;}function _0x3783a7(){const _0x575f44=_0x559091[_0x39dc00([0x73,0x70,0x6c,0x69,0x74])](_0x39dc00([0x2e]));if(0x3!=_0x575f44[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47cd32(_0x575f44[0x1]);function _0x47cd32(_0x52f55c){const _0x52c390=_0x23619d(_0x52f55c);return _0x52c390&&_0x18a834()?_0x52c390:null;function _0x18a834(){const _0x4c3eca=_0x52c390[_0x39dc00([0x6a,0x74,0x69])],_0x4e553b=window[_0x39dc00([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c3eca[_0x39dc00([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4c3eca[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4906a3={..._0x52c390,[_0x39dc00([0x6a,0x74,0x69])]:_0x4c3eca[_0x39dc00([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4c3eca[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4906a3[_0x39dc00([0x76,0x63])],_0xed7402(_0x4906a3)==_0x4e553b;}}}async function _0x4ce722(){let _0x2385ad=!0x0;try{const _0x3fecdb=_0x559091[_0x39dc00([0x73,0x70,0x6c,0x69,0x74])](_0x39dc00([0x2e])),[_0x9627df,_0x5f82e6,_0x3840fa]=_0x3fecdb;return _0x54e082(_0x9627df),await _0x2fe6fa(_0x9627df,_0x5f82e6,_0x3840fa),_0x2385ad;}catch{return!0x1;}function _0x54e082(_0x5589e9){const _0x163053=_0x23619d(_0x5589e9);_0x163053&&_0x163053[_0x39dc00([0x61,0x6c,0x67])]==_0x39dc00([0x45,0x53,0x32,0x35,0x36])||(_0x2385ad=!0x1);}async function _0x2fe6fa(_0x57c08a,_0x147898,_0x487d25){const _0x1dd27b=window[_0x39dc00([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x39dc00([0x66,0x72,0x6f,0x6d])](_0x5bd49b(_0x487d25),_0x593978=>_0x593978[_0x39dc00([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x138459=new window[(_0x39dc00([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x39dc00([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x57c08a+_0x39dc00([0x2e])+_0x147898),_0x12fb59=window[_0x39dc00([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x39dc00([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12fb59)return;const _0x529a38=await _0x12fb59[_0x39dc00([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x39dc00([0x6a,0x77,0x6b]),_0x1c08ce,{[_0x39dc00([0x6e,0x61,0x6d,0x65])]:_0x39dc00([0x45,0x43,0x44,0x53,0x41]),[_0x39dc00([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x39dc00([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x39dc00([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12fb59[_0x39dc00([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x39dc00([0x6e,0x61,0x6d,0x65])]:_0x39dc00([0x45,0x43,0x44,0x53,0x41]),[_0x39dc00([0x68,0x61,0x73,0x68])]:{[_0x39dc00([0x6e,0x61,0x6d,0x65])]:_0x39dc00([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x529a38,_0x1dd27b,_0x138459)||(_0x2385ad=!0x1);}}function _0x23619d(_0x344e48){return _0x344e48[_0x39dc00([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x39dc00([0x65,0x79]))?JSON[_0x39dc00([0x70,0x61,0x72,0x73,0x65])](_0x5bd49b(_0x344e48)):null;}function _0x5bd49b(_0x385184){return window[_0x39dc00([0x61,0x74,0x6f,0x62])](_0x385184[_0x39dc00([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x39dc00([0x2b]))[_0x39dc00([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x39dc00([0x2f])));}function _0xed7402(_0x341e9b){let _0x31ccd8=0x1505;function _0x7962(_0x4d7af3){for(let _0x2bf8ac=0x0;_0x2bf8ac<_0x4d7af3[_0x39dc00([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bf8ac++){const _0x54146b=_0x4d7af3[_0x39dc00([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2bf8ac);_0x31ccd8=(_0x31ccd8<<0x5)+_0x31ccd8+_0x54146b,_0x31ccd8&=_0x31ccd8;}}function _0x3a3134(_0x3d5c93){Array[_0x39dc00([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d5c93)?_0x3d5c93[_0x39dc00([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a3134):_0x3d5c93&&typeof _0x3d5c93==_0x39dc00([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x39dc00([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d5c93)[_0x39dc00([0x73,0x6f,0x72,0x74])]()[_0x39dc00([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x29b4b0,_0xfdbe1])=>{_0x7962(_0x29b4b0),_0x3a3134(_0xfdbe1);}):_0x7962(window[_0x39dc00([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d5c93));}return _0x3a3134(_0x341e9b),_0x31ccd8>>>0x0;}function _0x47c469(_0x564046){return _0x564046[_0x39dc00([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x39dc00([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x39dc00([0x30]));}function _0x4e6f86(_0x4c63f6){return _0x4c63f6[_0x39dc00([0x73,0x70,0x6c,0x69,0x74])]('')[_0x39dc00([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x39dc00([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c9798(){}function _0x39dc00(_0xbc3d93){return _0xbc3d93['map'](_0x12ca67=>String['fromCharCode'](_0x12ca67))['join']('');}_0x5c495d(await _0x53ae98());}(this);}['_initSchema'](){const _0x1ec70a=this['editor']['model']['schema'];_0x1ec70a['isRegistered']('imageBlock')&&_0x1ec70a['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1ec70a['isRegistered']('imageInline')&&_0x1ec70a['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x50213b=this['editor'];_0x50213b['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x50213b['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x3c769d=>_0x3c769d['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1a8e08=_0x50213b['commands']['get']('replaceImageSource');_0x1a8e08&&this['listenTo'](_0x1a8e08,'cleanupImage',(_0x203015,[_0x1f4674,_0x2155a7])=>{_0x1f4674['removeAttribute']('uploadcareImageId',_0x2155a7);});}['_initConfig'](){const _0x1ef124=this['editor']['config']['get']('uploadcare.uploader')||{},_0x131d72=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x2f0913(_0x58c00a['document'],'uc-config',{..._0x1ef124,'pubkey':_0x131d72,'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']=_0x422ae0=>{if('closeMax'==_0x422ae0)return'#uc-icon-arrow-down';},_0x58c00a['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x2f0913(_0x58c00a['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x58c00a['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x476425=this['editor']['commands']['get']('insertImage');_0x476425&&this['listenTo'](_0x476425,'execute',()=>{const _0x30e074=this['editor']['model']['document']['selection']['getSelectedElement']();_0x30e074&&_0x30e074['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x30e074);});});const _0x3607af=this['editor']['commands']['get']('uploadcareImageReplace');_0x3607af&&this['listenTo'](_0x3607af,'execute',()=>{const _0x3907fd=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3907fd&&_0x3907fd['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{m(this['editor'],_0x3907fd);});});}}class u extends _0x235cec{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x226b4b){super(_0x226b4b),_0x226b4b['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x34f4b0['defineComponents'](_0x34f4b0);}}class ta extends _0x3d2ea6{constructor(_0x3bd477){super(_0x3bd477);const t=_0x3bd477['t'],_0xbc9a11=this['bindTemplate'],_0x45f9e5=new _0x2619a0();_0x45f9e5['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':[_0x45f9e5,{'text':_0xbc9a11['to']('imageUploadProgress',_0xdc29f9=>t('Loading\x20image...')+'\x20('+(_0xdc29f9||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 _0x3d2ea6{constructor(_0x4ae59){super(_0x4ae59);const t=_0x4ae59['t'];this['set']('errorType',null);const _0x3385ea=new _0x1b8a4c(_0x4ae59);_0x3385ea['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3385ea['withText']=!0x0,_0x3385ea['class']='ck-button-action',_0x3385ea['on']('execute',()=>{this['fire']('retry');}),_0x3385ea['bind']('isVisible')['to'](this,'errorType',_0x187f6f=>'NotFound'!==_0x187f6f);const _0x4f7bc9=new at();_0x4f7bc9['content']=et,_0x4f7bc9['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x1241e7=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':[_0x4f7bc9,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x1241e7['to']('errorType',_0x3145ec=>t('NotFound'!==_0x3145ec?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3385ea]},{'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 _0x3d2ea6{constructor(_0x10ebb9,_0x3a4e08){super(_0x10ebb9);const _0x34162d=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3a4e08,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x34162d['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4e245d,_0x3c0eb3,_0x407bd8){super(_0x4e245d),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x4e245d),this['_errorView']=new rt(_0x4e245d),this['_editingView']=new tt(_0x4e245d,_0x407bd8),this['_focusableView']=new _0x3d2ea6(_0x4e245d),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x3c0eb3),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'],_0x26b0a7=>{this['_addUploadcareImageEditorListeners'](_0x26b0a7);});}),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'](_0x375c98,_0x580926){const _0x330c4c='uc-cloud-image-editor',_0x5eaa33=_0x375c98['querySelector'](_0x330c4c);if(_0x5eaa33)return _0x580926(_0x5eaa33);const _0x52ec51=new MutationObserver(_0x2b2bae=>{const _0x52904b=_0x2b2bae['filter'](_0x15a926=>_0x15a926['target']===_0x375c98&&_0x15a926['addedNodes']['length']>0x0&&_0x15a926['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x330c4c);_0x52904b['length']&&(_0x52ec51['disconnect'](),_0x580926(_0x52904b[0x0]['addedNodes'][0x0]));});_0x52ec51['observe'](_0x375c98,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x6e3d4a){_0x6e3d4a['addEventListener']('apply',_0x8c883f=>{this['fire']('apply',{'imageSrc':_0x8c883f['detail']['cdnUrl']});}),_0x6e3d4a['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class z extends/* #__PURE__ -- @preserve */
25
+ _0x4155d8(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xa0d2b6,_0x2b8d00,_0xcd6588){super(),this['_editor']=_0xa0d2b6,this['_dialog']=_0x2b8d00,this['_imageElement']=_0xcd6588,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 _0x229f62=this['_imageElement'],_0x3b1742=_0x229f62['getAttribute']('uploadcareImageId'),_0x533ffc=_0x229f62['getAttribute']('src');if(_0x3b1742)await this['_loadImageInfo'](_0x3b1742,_0x533ffc);else{if(this['_imageCache']['has'](_0x533ffc)){const _0x107efb=this['_imageCache']['get'](_0x533ffc);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x107efb['url'],this['imageDimension']=_0x107efb['dimension'],this['imageId']=_0x107efb['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x261a8a}=this['_editor'],t=_0x261a8a['t'],_0x342f98=new Z(_0x261a8a,this['imageStatus'],this['_attributes']);_0x342f98['bind']('status')['to'](this,'imageStatus'),_0x342f98['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x342f98['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x342f98['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x342f98,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x51fdd7,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x342f98,'position':_0x3818a0['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x342f98['focus']();},'onHide':()=>{_0x342f98['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x703ade=>!F(_0x703ade,_0x342f98['element'])}});}['_loadImageInfo'](_0xe6641a,_0x339ff3){return C['getInfo'](_0xe6641a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x1c618e=>{const {width:_0x2abae2,height:_0x281f8e}=_0x1c618e['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x339ff3,this['imageDimension']={'width':_0x2abae2,'height':_0x281f8e},this['imageId']=_0xe6641a;})['catch'](_0x49d784=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x49d784['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x795ff2,_0x3a05a5){return this['_getImageAsFile'](_0x795ff2)['then'](_0x369b45=>C['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x3a05a5['signal'],'file':_0x369b45,'onProgress':_0x406db0=>{_0x406db0&&_0x406db0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x406db0['value']));}}))['then'](_0x392446=>{const {width:_0x1c6962,height:_0x438bf1}=_0x392446['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x392446['cdnUrl'],this['imageDimension']={'width':_0x1c6962,'height':_0x438bf1},this['imageId']=_0x392446['uuid'],this['imageUploadProgress']=null;const _0x77e1b0=_0x795ff2['getAttribute']('src');this['_imageCache']['set'](_0x77e1b0,{'id':_0x392446['uuid'],'url':_0x392446['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x576ba1=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x576ba1['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x24eb08,_0x3b750d){_0x24eb08['on']('apply',(_0x51255c,_0x33d49c)=>{this['_replaceImage'](_0x3b750d,_0x33d49c['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x24eb08['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x24eb08['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x28bfd7,_0x3ba839,_0x6439f9){const _0x4301e5=this['_editor'],{width:_0x345502,height:_0x2a9e24}=A(_0x3ba839,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x44574c,imageSources:_0x289f94}=E(_0x3ba839,_0x345502);_0x4301e5['model']['change'](_0x252c0c=>{if('$graveyard'===_0x28bfd7['root']['rootName']){_0x4301e5['execute']('insertImage',{'imageType':_0x28bfd7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x28bfd7['getAttributes']()),'uploadcareImageId':_0x6439f9,'src':_0x44574c,'sources':_0x289f94,'width':_0x345502,'height':_0x2a9e24}});const _0x19d3eb=_0x28bfd7['getChildren']();_0x28bfd7=_0x4301e5['model']['document']['selection']['getSelectedElement']();for(const _0x12a3d2 of _0x19d3eb)_0x252c0c['append'](_0x252c0c['cloneElement'](_0x12a3d2),_0x28bfd7);}else _0x252c0c['setSelection'](_0x28bfd7,'on'),_0x4301e5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x28bfd7['getAttributes']()),'uploadcareImageId':_0x6439f9,'src':_0x44574c,'sources':_0x289f94,'width':_0x345502,'height':_0x2a9e24},_0x28bfd7);_0x252c0c['setSelection'](_0x28bfd7,'on');});}async['_getImageAsFile'](_0x314778){const _0x140a21=_0x58c00a['window'],_0x3e3677=_0x58c00a['document']['location']['href'],_0x4ded68=new _0x140a21['URL'](_0x314778['getAttribute']('src'),_0x3e3677);if('data:'===_0x4ded68['protocol']){const _0x434b19=_0x4ded68['href']['split'](','),_0x2448fb=_0x434b19[0x0]['match'](/:(.*?);/)[0x1],_0x2ae3f9=_0x2448fb['split']('/')[0x1],_0x3bd4da=_0x140a21['atob'](_0x434b19[_0x434b19['length']-0x1]);let _0x2e8da9=_0x3bd4da['length'];const _0x3c30a0=new _0x140a21['Uint8Array'](_0x2e8da9);for(;_0x2e8da9--;)_0x3c30a0[_0x2e8da9]=_0x3bd4da['charCodeAt'](_0x2e8da9);return new _0x140a21['File']([_0x3c30a0],'image.'+_0x2ae3f9,{'type':_0x2448fb});}const _0x26e70e=_0x4ded68['href']['split']('/'),_0x40b7bc=_0x26e70e[_0x26e70e['length']-0x1],_0xd01544=_0x40b7bc['split']('.')[0x1];return _0x140a21['fetch'](_0x4ded68['href'])['then'](_0xc57aba=>_0xc57aba['clone']()['blob']())['then'](_0x76d89=>new _0x140a21['File']([_0x76d89],_0x40b7bc,{'type':'image/'+_0xd01544}));}}class J extends _0x3e6fbf{['imageEditController'];static get['requires'](){return[_0x1c972a];}['_isEditable'];constructor(_0x43e832){super(_0x43e832),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x4f2ffa){const _0x575181=V(_0x4f2ffa);return _0x2276c6=>!(!_0x2276c6||!_0x2276c6['is']('element','imageBlock')&&!_0x2276c6['is']('element','imageInline'))&&(!!_0x2276c6['hasAttribute']('uploadcareImageId')||!!_0x2276c6['hasAttribute']('src')&&_0x575181(_0x2276c6['getAttribute']('src')));}(_0x43e832['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5e71cf=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5e71cf);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x204c41=this['editor']['model']['document']['selection']['getSelectedElement']();_0x204c41&&(_0x204c41['is']('element','imageBlock')||_0x204c41['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x1c972a),_0x204c41),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x3e6fbf{['refresh'](){const _0x2d646=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x2d646&&(_0x2d646['is']('element','imageBlock')||_0x2d646['is']('element','imageInline')));}['execute'](_0x23e8ad){const _0x275265=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x99e31f=>{_0x99e31f['setAttributes'](_0x23e8ad,_0x275265),_0x99e31f['removeAttribute']('srcset',_0x275265),_0x99e31f['removeAttribute']('sizes',_0x275265);});}}class g extends _0x235cec{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x3dcad6,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x147190}=this;_0x147190['commands']['add']('uploadcareImageEdit',new J(_0x147190)),_0x147190['commands']['add']('uploadcareImageReplace',new O(_0x147190));}}class j extends _0x235cec{['_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 _0x1422c0=this['editor'];_0x1422c0['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4c5dc7=>{const _0x1f6ae4=_0x1422c0['commands']['get']('uploadcareImageEdit'),_0x18ccf9=new _0x1b8a4c(_0x4c5dc7),t=_0x4c5dc7['t'];return _0x18ccf9['set']({'icon':_0x51fdd7,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x18ccf9['bind']('isEnabled')['to'](_0x1f6ae4),_0x18ccf9['bind']('isOn')['to'](_0x1f6ae4,'isActive'),this['listenTo'](_0x18ccf9,'execute',()=>{_0x1422c0['execute']('uploadcareImageEdit'),_0x1422c0['editing']['view']['focus']();}),_0x18ccf9;}),this['_initConfig']();}['_initConfig'](){const _0x57d1bd=_0x2f0913(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x57d1bd),this['listenTo'](this['editor'],'destroy',()=>{_0x57d1bd['remove']();});}}class P extends _0x235cec{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": "45.2.1-alpha.7",
3
+ "version": "45.2.1-alpha.9",
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": "45.2.1-alpha.7",
27
- "@ckeditor/ckeditor5-icons": "45.2.1-alpha.7",
28
- "@ckeditor/ckeditor5-image": "45.2.1-alpha.7",
29
- "@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.7",
30
- "@ckeditor/ckeditor5-ui": "45.2.1-alpha.7",
31
- "@ckeditor/ckeditor5-upload": "45.2.1-alpha.7",
32
- "@ckeditor/ckeditor5-utils": "45.2.1-alpha.7",
33
- "ckeditor5": "45.2.1-alpha.7",
26
+ "@ckeditor/ckeditor5-core": "45.2.1-alpha.9",
27
+ "@ckeditor/ckeditor5-icons": "45.2.1-alpha.9",
28
+ "@ckeditor/ckeditor5-image": "45.2.1-alpha.9",
29
+ "@ckeditor/ckeditor5-theme-lark": "45.2.1-alpha.9",
30
+ "@ckeditor/ckeditor5-ui": "45.2.1-alpha.9",
31
+ "@ckeditor/ckeditor5-upload": "45.2.1-alpha.9",
32
+ "@ckeditor/ckeditor5-utils": "45.2.1-alpha.9",
33
+ "ckeditor5": "45.2.1-alpha.9",
34
34
  "@uploadcare/file-uploader": "1.12.0",
35
35
  "@uploadcare/upload-client": "6.14.1"
36
36
  },
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xb6249d=_0x53a0;function _0x53a0(_0x3127be,_0x204bad){const _0x4f929f=_0x4f92();return _0x53a0=function(_0x53a02a,_0x4479dc){_0x53a02a=_0x53a02a-0x14c;let _0x42d637=_0x4f929f[_0x53a02a];return _0x42d637;},_0x53a0(_0x3127be,_0x204bad);}(function(_0x3536a0,_0x111f43){const _0xd2a16=_0x53a0,_0x5faa83=_0x3536a0();while(!![]){try{const _0x47b9e3=-parseInt(_0xd2a16(0x14c))/0x1+-parseInt(_0xd2a16(0x194))/0x2+-parseInt(_0xd2a16(0x182))/0x3*(parseInt(_0xd2a16(0x159))/0x4)+parseInt(_0xd2a16(0x180))/0x5*(-parseInt(_0xd2a16(0x177))/0x6)+-parseInt(_0xd2a16(0x18a))/0x7*(parseInt(_0xd2a16(0x162))/0x8)+parseInt(_0xd2a16(0x14e))/0x9*(parseInt(_0xd2a16(0x196))/0xa)+parseInt(_0xd2a16(0x152))/0xb*(parseInt(_0xd2a16(0x161))/0xc);if(_0x47b9e3===_0x111f43)break;else _0x5faa83['push'](_0x5faa83['shift']());}catch(_0x3e018b){_0x5faa83['push'](_0x5faa83['shift']());}}}(_0x4f92,0x78835));import{Plugin as _0x1ca411}from'ckeditor5/src/core.js';function _0x4f92(){const _0x35ace9=['render','\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','25187371UUnEEK','fromCharCode','editor','uploadcare.pubkey','closeMax','selection','for','126100hXKaJC','body','commands','insertImage','requires','conversion','getSelectedElement','isRegistered','12UjIrXi','2824lcinNL','extend','uc-upload-ctx-provider','PictureEditing','remove','pluginName','_initSchema','iconHrefResolver','afterInit','config','imageInline','configElement','#uc-icon-arrow-down','upcast','getAttribute','join','schema','_ctxElement','_initCtx','editing','isOfficialPlugin','1049166qeukoq','data-uc-image-id','uploader','cleanupImage','querySelector','ctxElement','appendChild','uc-config','elementToAttribute','5sKKVdI','_initImageProcessingIndicator','18VBNqHz','add','listenTo','_initConfig','model','UploadcareEditing','replaceImageSource','_configElement','19299jmZNhM','imageBlock','uploadcareImageReplace','view','destroy','execute','once','attributeToAttribute','map','uploadcare','763730mWDACv','uploadcareImageId','10qnJNxP','init','href','document','input[uploadcare-file-input]','get','downcast','contentLanguage','locale','true','removeAttribute','_initConversion','606665JvNvcE','isPremiumPlugin','4766598WKhLsr','uploadcare.uploader'];_0x4f92=function(){return _0x35ace9;};return _0x4f92();}import{Dialog as _0x348fe2}from'ckeditor5/src/ui.js';import{createElement as _0x284c92,global as _0x1b3556,uid as _0xc00df}from'ckeditor5/src/utils.js';import _0x2aa697 from'./uploadcarecommand.js';import _0x22fa53 from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x16b9fa}from'./utils/editingutils.js';export default class i extends _0x1ca411{[_0xb6249d(0x189)]=null;[_0xb6249d(0x173)]=null;static get[_0xb6249d(0x167)](){const _0x3c2e67=_0xb6249d;return _0x3c2e67(0x187);}static get[_0xb6249d(0x15d)](){const _0x5bf406=_0xb6249d;return[_0x5bf406(0x165),_0x22fa53,_0x348fe2];}static get[_0xb6249d(0x176)](){return!0x0;}static get[_0xb6249d(0x14d)](){return!0x0;}get[_0xb6249d(0x16d)](){const _0x260892=_0xb6249d;return this[_0x260892(0x189)];}get[_0xb6249d(0x17c)](){const _0x250d6c=_0xb6249d;return this[_0x250d6c(0x173)];}[_0xb6249d(0x197)](){const _0x144a8b=_0xb6249d,_0x37e4b6=this[_0x144a8b(0x154)];_0x37e4b6[_0x144a8b(0x15b)][_0x144a8b(0x183)](_0x144a8b(0x193),new _0x2aa697(_0x37e4b6));}[_0xb6249d(0x16a)](){const _0xdc607=_0xb6249d;this[_0xdc607(0x168)](),this[_0xdc607(0x1a1)](),this[_0xdc607(0x185)](),this[_0xdc607(0x174)](),this[_0xdc607(0x181)](),this[_0xdc607(0x184)](this[_0xdc607(0x154)],_0xdc607(0x18e),()=>{const _0x51847b=_0xdc607;this[_0x51847b(0x189)]&&(this[_0x51847b(0x189)][_0x51847b(0x166)](),this[_0x51847b(0x189)]=null),this[_0x51847b(0x173)]&&(this[_0x51847b(0x173)][_0x51847b(0x166)](),this[_0x51847b(0x173)]=null);const _0x33981a=_0x1b3556[_0x51847b(0x199)][_0x51847b(0x17b)](_0x51847b(0x19a));_0x33981a&&_0x33981a[_0x51847b(0x166)]();}),async function(_0x309141){const _0x4f4e53=_0x5a1a5b([0x55,0x44,0x51,0x4c,0x43,0x4d,0x47,0x77,0x72,0x38,0x41,0x34,0x6a,0x5a,0x69,0x4f,0x64,0x59,0x58,0x6b,0x75,0x7a,0x62,0x61,0x49,0x6f,0x31,0x46,0x54,0x78,0x66,0x63,0x53,0x73,0x68,0x30,0x79,0x70,0x56,0x4e,0x33,0x36,0x37,0x6d,0x6e,0x48,0x76,0x32,0x4b,0x42,0x52,0x71,0x67,0x65,0x39,0x6c,0x74,0x50,0x45,0x35,0x4a,0x57]),_0x6e9796=0x37aafb51,_0xfee9e4=0x37ad9031^_0x6e9796,_0x130bea=window[_0x5a1a5b([0x44,0x61,0x74,0x65])][_0x5a1a5b([0x6e,0x6f,0x77])](),_0x148cad=_0x309141[_0x5a1a5b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x43466c=new window[(_0x5a1a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf44284=>{_0x148cad[_0x5a1a5b([0x6f,0x6e,0x63,0x65])](_0x5a1a5b([0x72,0x65,0x61,0x64,0x79]),_0xf44284);}),_0x35dbdf={[_0x5a1a5b([0x6b,0x74,0x79])]:_0x5a1a5b([0x45,0x43]),[_0x5a1a5b([0x75,0x73,0x65])]:_0x5a1a5b([0x73,0x69,0x67]),[_0x5a1a5b([0x63,0x72,0x76])]:_0x5a1a5b([0x50,0x2d,0x32,0x35,0x36]),[_0x5a1a5b([0x78])]:_0x5a1a5b([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]),[_0x5a1a5b([0x79])]:_0x5a1a5b([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]),[_0x5a1a5b([0x61,0x6c,0x67])]:_0x5a1a5b([0x45,0x53,0x32,0x35,0x36])},_0x3ed383=_0x148cad[_0x5a1a5b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a1a5b([0x67,0x65,0x74])](_0x5a1a5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x45628c(){let _0x4f9654,_0x4bf644=null,_0x2d0d65=null;try{if(_0x3ed383==_0x5a1a5b([0x47,0x50,0x4c]))return _0x5a1a5b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f9654=_0x332019(),!_0x4f9654)return _0x5a1a5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4f9654[_0x5a1a5b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d0d65=_0x754dec(_0x4f9654[_0x5a1a5b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f9654[_0x5a1a5b([0x6a,0x74,0x69])])),await _0x35b556()?_0x1fc6de()?_0x357796()?_0x5a1a5b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3b1c24()?(_0x4f9654[_0x5a1a5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a1a5b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4bf644=_0x304ab0(_0x5a1a5b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4f9654[_0x5a1a5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a1a5b([0x74,0x72,0x69,0x61,0x6c])&&(_0x4bf644=_0x304ab0(_0x5a1a5b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf30f88()):_0x5a1a5b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a1a5b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a1a5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5a1a5b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x357796(){const _0x335a4d=[_0x5a1a5b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a1a5b([0x74,0x72,0x69,0x61,0x6c])][_0x5a1a5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f9654[_0x5a1a5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x130bea/0x3e8:0xe10*_0xfee9e4;return _0x4f9654[_0x5a1a5b([0x65,0x78,0x70])]<_0x335a4d;}function _0x1fc6de(){const _0x1d8272=_0x4f9654[_0x5a1a5b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1d8272&&(!!_0x1d8272[_0x5a1a5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a1a5b([0x2a]))||!!_0x1d8272[_0x5a1a5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a1a5b([0x55,0x50,0x4c,0x43])));}function _0x3b1c24(){const _0x38f966=_0x53a0,_0x57f81a=_0x4f9654[_0x5a1a5b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x57f81a||0x0==_0x57f81a[_0x5a1a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x501a89}=new URL(window[_0x5a1a5b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x38f966(0x198)]);if(_0x57f81a[_0x5a1a5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x501a89))return!0x0;const _0x7e7dd6=_0x501a89[_0x5a1a5b([0x73,0x70,0x6c,0x69,0x74])](_0x5a1a5b([0x2e]));return _0x57f81a[_0x5a1a5b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x150c02=>_0x150c02[_0x5a1a5b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a1a5b([0x2a])))[_0x5a1a5b([0x6d,0x61,0x70])](_0x4d919e=>_0x4d919e[_0x5a1a5b([0x73,0x70,0x6c,0x69,0x74])](_0x5a1a5b([0x2e])))[_0x5a1a5b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21a3e7=>_0x21a3e7[_0x5a1a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x7e7dd6[_0x5a1a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a1a5b([0x6d,0x61,0x70])](_0x57d4c0=>Array(_0x7e7dd6[_0x5a1a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x57d4c0[_0x5a1a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a1a5b([0x66,0x69,0x6c,0x6c])](_0x57d4c0[0x0]===_0x5a1a5b([0x2a])?_0x5a1a5b([0x2a]):'')[_0x5a1a5b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x57d4c0))[_0x5a1a5b([0x73,0x6f,0x6d,0x65])](_0x1f5a98=>_0x7e7dd6[_0x5a1a5b([0x65,0x76,0x65,0x72,0x79])]((_0x31ce69,_0x205402)=>_0x1f5a98[_0x205402]===_0x31ce69||_0x1f5a98[_0x205402]===_0x5a1a5b([0x2a])));}function _0xf30f88(){return _0x4bf644&&_0x2d0d65?new window[(_0x5a1a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x26b813,_0x58d1d9)=>{_0x4bf644[_0x5a1a5b([0x74,0x68,0x65,0x6e])](_0x26b813,_0x58d1d9),_0x2d0d65[_0x5a1a5b([0x74,0x68,0x65,0x6e])](_0x457f45=>{_0x457f45!=_0x5a1a5b([0x56,0x61,0x6c,0x69,0x64])&&_0x26b813(_0x457f45);},_0x58d1d9);}):_0x4bf644||_0x2d0d65||_0x5a1a5b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x754dec(_0x13014a,_0xd426c8){return new window[(_0x5a1a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x352bd4=>{if(_0x4c7695())return _0x352bd4(_0x5a1a5b([0x56,0x61,0x6c,0x69,0x64]));_0x32c7e0(),_0x148cad[_0x5a1a5b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a1a5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x44d416=!0x1;const _0x118baa=_0xc00df();function _0x3d6653(_0x38bd76){return!!_0x38bd76&&(typeof _0x38bd76===_0x5a1a5b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38bd76===_0x5a1a5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38bd76[_0x5a1a5b([0x74,0x68,0x65,0x6e])]===_0x5a1a5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38bd76[_0x5a1a5b([0x63,0x61,0x74,0x63,0x68])]===_0x5a1a5b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x12edb2(_0x4139b9){_0xf8a4b9(_0x4139b9)[_0x5a1a5b([0x74,0x68,0x65,0x6e])](_0x5e5d8f=>{if(!_0x5e5d8f||_0x5e5d8f[_0x5a1a5b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a1a5b([0x6f,0x6b]))return _0x5a1a5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x415c09(_0x4353e8(_0x118baa+_0xd426c8))!=_0x5e5d8f[_0x5a1a5b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a1a5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a1a5b([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a1a5b([0x74,0x68,0x65,0x6e])](_0x40e39c=>(_0xa6a61f(),_0x40e39c),()=>{const _0x2cf761=_0x1c26a5();return null==_0x2cf761?(_0xa6a61f(),_0x5a1a5b([0x56,0x61,0x6c,0x69,0x64])):_0x5a1a5b(_0x130bea-_0x2cf761>(0x13a67f51^_0x6e9796)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a1a5b([0x74,0x68,0x65,0x6e])](_0x352bd4)[_0x5a1a5b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x352bd4(_0x5a1a5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1f6a2d=0x379c15d1^_0x6e9796;function _0xa6a61f(){const _0x2e7472=_0x5a1a5b([0x6c,0x6c,0x63,0x74,0x2d])+_0x415c09(_0x4353e8(_0x13014a)),_0x1b9158=_0x10385d(_0x415c09(window[_0x5a1a5b([0x4d,0x61,0x74,0x68])][_0x5a1a5b([0x63,0x65,0x69,0x6c])](_0x130bea/_0x1f6a2d)));window[_0x5a1a5b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a1a5b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e7472,_0x1b9158);}function _0x1c26a5(){const _0x3ea1ec=_0x5a1a5b([0x6c,0x6c,0x63,0x74,0x2d])+_0x415c09(_0x4353e8(_0x13014a)),_0x3a894d=window[_0x5a1a5b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a1a5b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3ea1ec);return _0x3a894d?window[_0x5a1a5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10385d(_0x3a894d),0x10)*_0x1f6a2d:null;}function _0xf8a4b9(_0x18e25d){return new window[(_0x5a1a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31b3f4,_0x8ccf18)=>{_0x18e25d[_0x5a1a5b([0x74,0x68,0x65,0x6e])](_0x31b3f4,_0x8ccf18),window[_0x5a1a5b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8ccf18,0x37ab2f91^_0x6e9796);});}}_0x148cad[_0x5a1a5b([0x6f,0x6e])](_0x5a1a5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x53d2fa,_0x13e70a)=>{if(_0x13e70a[0x0]!=_0x13014a)return _0x352bd4(_0x5a1a5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13e70a[0x1]={..._0x13e70a[0x1],[_0x5a1a5b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x118baa};},{[_0x5a1a5b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a1a5b([0x68,0x69,0x67,0x68])}),_0x148cad[_0x5a1a5b([0x6f,0x6e])](_0x5a1a5b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x591ab6=>{_0x3d6653(_0x591ab6[_0x5a1a5b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x44d416=!0x0,_0x12edb2(_0x591ab6[_0x5a1a5b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a1a5b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a1a5b([0x6c,0x6f,0x77])}),_0x43466c[_0x5a1a5b([0x74,0x68,0x65,0x6e])](()=>{_0x44d416||_0x352bd4(_0x5a1a5b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4c7695(){return _0x148cad[_0x5a1a5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a1a5b([0x76,0x69,0x65,0x77])][_0x5a1a5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a1a5b([0x61,0x75,0x74,0x6f]);}function _0x32c7e0(){_0x148cad[_0x5a1a5b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a1a5b([0x76,0x69,0x65,0x77])][_0x5a1a5b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a1a5b([0x61,0x75,0x74,0x6f]);}}function _0x304ab0(_0x3e3c3b){const _0x1b6d1f=[new window[(_0x5a1a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x474d76=>setTimeout(_0x474d76,0x37a3c59d^_0x6e9796)),_0x43466c[_0x5a1a5b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a1a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ca11a=>{let _0x5d4925=0x0;_0x148cad[_0x5a1a5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a1a5b([0x6f,0x6e])](_0x5a1a5b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x20f3d0,_0x1dbf8b)=>{_0x1dbf8b[0x0][_0x5a1a5b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5d4925++,_0x5d4925==(0x37aafaa9^_0x6e9796)&&(_0x2ca11a(),_0x20f3d0[_0x5a1a5b([0x6f,0x66,0x66])]());});}))];return window[_0x5a1a5b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a1a5b([0x72,0x61,0x63,0x65])](_0x1b6d1f)[_0x5a1a5b([0x74,0x68,0x65,0x6e])](()=>_0x3e3c3b);}async function _0x1c4af6(){await _0x43466c,_0x148cad[_0x5a1a5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a1a5b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2fb077,_0x148cad[_0x5a1a5b([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a1a5b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2fb077,_0x148cad[_0x5a1a5b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a1a5b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x286aeb(_0x15af97){const _0x2d00a3=_0x50887a();_0x148cad[_0x2d00a3]=_0x5a1a5b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x15af97,_0x15af97!=_0x5a1a5b([0x56,0x61,0x6c,0x69,0x64])&&_0x1c4af6();}function _0x50887a(){const _0x1b4021=window[_0x5a1a5b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a1a5b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a1a5b([0x6e,0x6f,0x77])]())[_0x5a1a5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a1a5b([0x2e]),'');let _0x45d884=_0x5a1a5b([0x55]);for(let _0x1811b8=0x0;_0x1811b8<_0x1b4021[_0x5a1a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1811b8+=0x2){let _0x1f995f=window[_0x5a1a5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b4021[_0x5a1a5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1811b8,_0x1811b8+0x2));_0x1f995f>=_0x4f4e53[_0x5a1a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f995f-=_0x4f4e53[_0x5a1a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45d884+=_0x4f4e53[_0x1f995f];}return _0x45d884;}function _0x332019(){const _0x16e939=_0x3ed383[_0x5a1a5b([0x73,0x70,0x6c,0x69,0x74])](_0x5a1a5b([0x2e]));if(0x3!=_0x16e939[_0x5a1a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53af5a(_0x16e939[0x1]);function _0x53af5a(_0x1406ec){const _0x1ab9f6=_0x205f62(_0x1406ec);return _0x1ab9f6&&_0x556080()?_0x1ab9f6:null;function _0x556080(){const _0x18aa97=_0x1ab9f6[_0x5a1a5b([0x6a,0x74,0x69])],_0x44d33a=window[_0x5a1a5b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18aa97[_0x5a1a5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18aa97[_0x5a1a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x17f932={..._0x1ab9f6,[_0x5a1a5b([0x6a,0x74,0x69])]:_0x18aa97[_0x5a1a5b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18aa97[_0x5a1a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x17f932[_0x5a1a5b([0x76,0x63])],_0x4353e8(_0x17f932)==_0x44d33a;}}}async function _0x35b556(){let _0x32e782=!0x0;try{const _0x202b7d=_0x3ed383[_0x5a1a5b([0x73,0x70,0x6c,0x69,0x74])](_0x5a1a5b([0x2e])),[_0x2a97fb,_0xdd27f4,_0x1b17d2]=_0x202b7d;return _0x24097b(_0x2a97fb),await _0x104ed6(_0x2a97fb,_0xdd27f4,_0x1b17d2),_0x32e782;}catch{return!0x1;}function _0x24097b(_0x38f8f3){const _0x328ae8=_0x205f62(_0x38f8f3);_0x328ae8&&_0x328ae8[_0x5a1a5b([0x61,0x6c,0x67])]==_0x5a1a5b([0x45,0x53,0x32,0x35,0x36])||(_0x32e782=!0x1);}async function _0x104ed6(_0x31fc63,_0x523d07,_0x5d174d){const _0x415f2f=window[_0x5a1a5b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a1a5b([0x66,0x72,0x6f,0x6d])](_0x3be57b(_0x5d174d),_0x24ca39=>_0x24ca39[_0x5a1a5b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x21ac5d=new window[(_0x5a1a5b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a1a5b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x31fc63+_0x5a1a5b([0x2e])+_0x523d07),_0x5927ea=window[_0x5a1a5b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a1a5b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5927ea)return;const _0x5d3e76=await _0x5927ea[_0x5a1a5b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a1a5b([0x6a,0x77,0x6b]),_0x35dbdf,{[_0x5a1a5b([0x6e,0x61,0x6d,0x65])]:_0x5a1a5b([0x45,0x43,0x44,0x53,0x41]),[_0x5a1a5b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a1a5b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a1a5b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5927ea[_0x5a1a5b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a1a5b([0x6e,0x61,0x6d,0x65])]:_0x5a1a5b([0x45,0x43,0x44,0x53,0x41]),[_0x5a1a5b([0x68,0x61,0x73,0x68])]:{[_0x5a1a5b([0x6e,0x61,0x6d,0x65])]:_0x5a1a5b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d3e76,_0x415f2f,_0x21ac5d)||(_0x32e782=!0x1);}}function _0x205f62(_0x46b3fb){return _0x46b3fb[_0x5a1a5b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a1a5b([0x65,0x79]))?JSON[_0x5a1a5b([0x70,0x61,0x72,0x73,0x65])](_0x3be57b(_0x46b3fb)):null;}function _0x3be57b(_0x335198){return window[_0x5a1a5b([0x61,0x74,0x6f,0x62])](_0x335198[_0x5a1a5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a1a5b([0x2b]))[_0x5a1a5b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a1a5b([0x2f])));}function _0x4353e8(_0x1d976f){let _0x1cbb50=0x1505;function _0x163dcb(_0x9b404b){for(let _0x37a6b3=0x0;_0x37a6b3<_0x9b404b[_0x5a1a5b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x37a6b3++){const _0x1a58f4=_0x9b404b[_0x5a1a5b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x37a6b3);_0x1cbb50=(_0x1cbb50<<0x5)+_0x1cbb50+_0x1a58f4,_0x1cbb50&=_0x1cbb50;}}function _0x19e9dd(_0x379543){Array[_0x5a1a5b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x379543)?_0x379543[_0x5a1a5b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19e9dd):_0x379543&&typeof _0x379543==_0x5a1a5b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a1a5b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x379543)[_0x5a1a5b([0x73,0x6f,0x72,0x74])]()[_0x5a1a5b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x15ffea,_0x3827b3])=>{_0x163dcb(_0x15ffea),_0x19e9dd(_0x3827b3);}):_0x163dcb(window[_0x5a1a5b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x379543));}return _0x19e9dd(_0x1d976f),_0x1cbb50>>>0x0;}function _0x415c09(_0x55ff77){return _0x55ff77[_0x5a1a5b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a1a5b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a1a5b([0x30]));}function _0x10385d(_0x1ef06b){return _0x1ef06b[_0x5a1a5b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a1a5b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a1a5b([0x6a,0x6f,0x69,0x6e])]('');}function _0x2fb077(){}function _0x5a1a5b(_0x5dab74){const _0x2bde8c=_0x53a0;return _0x5dab74[_0x2bde8c(0x192)](_0x66d526=>String[_0x2bde8c(0x153)](_0x66d526))[_0x2bde8c(0x171)]('');}_0x286aeb(await _0x45628c());}(this);}[_0xb6249d(0x168)](){const _0x5f06dc=_0xb6249d,_0x3a2e4a=this[_0x5f06dc(0x154)][_0x5f06dc(0x186)][_0x5f06dc(0x172)];_0x3a2e4a[_0x5f06dc(0x160)](_0x5f06dc(0x18b))&&_0x3a2e4a[_0x5f06dc(0x163)](_0x5f06dc(0x18b),{'allowAttributes':[_0x5f06dc(0x195)]}),_0x3a2e4a[_0x5f06dc(0x160)](_0x5f06dc(0x16c))&&_0x3a2e4a[_0x5f06dc(0x163)](_0x5f06dc(0x16c),{'allowAttributes':[_0x5f06dc(0x195)]});}[_0xb6249d(0x1a1)](){const _0x467f1b=_0xb6249d,_0x419413=this[_0x467f1b(0x154)];_0x419413[_0x467f1b(0x15e)][_0x467f1b(0x158)](_0x467f1b(0x19c))[_0x467f1b(0x191)]({'model':_0x467f1b(0x195),'view':_0x467f1b(0x178)}),_0x419413[_0x467f1b(0x15e)][_0x467f1b(0x158)](_0x467f1b(0x16f))[_0x467f1b(0x17f)]({'model':{'key':_0x467f1b(0x195),'value':_0x191a3f=>_0x191a3f[_0x467f1b(0x170)](_0x467f1b(0x178))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3fc0a6=_0x419413[_0x467f1b(0x15b)][_0x467f1b(0x19b)](_0x467f1b(0x188));_0x3fc0a6&&this[_0x467f1b(0x184)](_0x3fc0a6,_0x467f1b(0x17a),(_0x414613,[_0x2ee552,_0x4492e5])=>{const _0x35223f=_0x467f1b;_0x2ee552[_0x35223f(0x1a0)](_0x35223f(0x195),_0x4492e5);});}[_0xb6249d(0x185)](){const _0x140dac=_0xb6249d,_0x4139f0=this[_0x140dac(0x154)][_0x140dac(0x16b)][_0x140dac(0x19b)](_0x140dac(0x14f))||{},_0x634688=this[_0x140dac(0x154)][_0x140dac(0x16b)][_0x140dac(0x19b)](_0x140dac(0x155))||'';this[_0x140dac(0x189)]=_0x284c92(_0x1b3556[_0x140dac(0x199)],_0x140dac(0x17e),{..._0x4139f0,'pubkey':_0x634688,'ctx-name':_0x140dac(0x179),'sourceList':'','imgOnly':_0x140dac(0x19f),'removeCopyright':_0x140dac(0x19f),'localeName':this[_0x140dac(0x154)][_0x140dac(0x19e)][_0x140dac(0x19d)],'externalSourcesEmbedCss':_0x140dac(0x151)}),this[_0x140dac(0x189)][_0x140dac(0x169)]=_0x15fa4e=>{const _0x3a7a21=_0x140dac;if(_0x3a7a21(0x156)==_0x15fa4e)return _0x3a7a21(0x16e);},_0x1b3556[_0x140dac(0x199)][_0x140dac(0x15a)][_0x140dac(0x17d)](this[_0x140dac(0x189)]);}[_0xb6249d(0x174)](){const _0x477e7f=_0xb6249d;this[_0x477e7f(0x173)]=_0x284c92(_0x1b3556[_0x477e7f(0x199)],_0x477e7f(0x164),{'ctx-name':_0x477e7f(0x179)}),_0x1b3556[_0x477e7f(0x199)][_0x477e7f(0x15a)][_0x477e7f(0x17d)](this[_0x477e7f(0x173)]);}[_0xb6249d(0x181)](){const _0x5f2e42=_0xb6249d,_0x2fb5d8=this[_0x5f2e42(0x154)][_0x5f2e42(0x15b)][_0x5f2e42(0x19b)](_0x5f2e42(0x15c));_0x2fb5d8&&this[_0x5f2e42(0x184)](_0x2fb5d8,_0x5f2e42(0x18f),()=>{const _0x3dd272=_0x5f2e42,_0x546bf3=this[_0x3dd272(0x154)][_0x3dd272(0x186)][_0x3dd272(0x199)][_0x3dd272(0x157)][_0x3dd272(0x15f)]();_0x546bf3&&_0x546bf3[_0x3dd272(0x170)](_0x3dd272(0x195))&&this[_0x3dd272(0x154)][_0x3dd272(0x175)][_0x3dd272(0x18d)][_0x3dd272(0x190)](_0x3dd272(0x150),()=>{const _0x422a67=_0x3dd272;_0x16b9fa(this[_0x422a67(0x154)],_0x546bf3);});});const _0x14a2e8=this[_0x5f2e42(0x154)][_0x5f2e42(0x15b)][_0x5f2e42(0x19b)](_0x5f2e42(0x18c));_0x14a2e8&&this[_0x5f2e42(0x184)](_0x14a2e8,_0x5f2e42(0x18f),()=>{const _0x2010e4=_0x5f2e42,_0x5341f2=this[_0x2010e4(0x154)][_0x2010e4(0x186)][_0x2010e4(0x199)][_0x2010e4(0x157)][_0x2010e4(0x15f)]();_0x5341f2&&_0x5341f2[_0x2010e4(0x170)](_0x2010e4(0x195))&&this[_0x2010e4(0x154)][_0x2010e4(0x175)][_0x2010e4(0x18d)][_0x2010e4(0x190)](_0x2010e4(0x150),()=>{const _0x33688f=_0x2010e4;_0x16b9fa(this[_0x33688f(0x154)],_0x5341f2);});});}}
23
+ const _0x5c218b=_0x3876;(function(_0x1ca953,_0x3fde8d){const _0xeaafc5=_0x3876,_0x353fb9=_0x1ca953();while(!![]){try{const _0x55f39b=-parseInt(_0xeaafc5(0xd2))/0x1*(-parseInt(_0xeaafc5(0xf6))/0x2)+parseInt(_0xeaafc5(0xdd))/0x3*(-parseInt(_0xeaafc5(0xd7))/0x4)+parseInt(_0xeaafc5(0xe2))/0x5*(-parseInt(_0xeaafc5(0xd0))/0x6)+parseInt(_0xeaafc5(0xef))/0x7+-parseInt(_0xeaafc5(0xf3))/0x8*(parseInt(_0xeaafc5(0xd6))/0x9)+-parseInt(_0xeaafc5(0xd4))/0xa+parseInt(_0xeaafc5(0xb6))/0xb;if(_0x55f39b===_0x3fde8d)break;else _0x353fb9['push'](_0x353fb9['shift']());}catch(_0x273573){_0x353fb9['push'](_0x353fb9['shift']());}}}(_0x3f26,0x6b551));import{Plugin as _0x46bc52}from'ckeditor5/src/core.js';import{Dialog as _0x3e2561}from'ckeditor5/src/ui.js';function _0x3876(_0x16a2fb,_0xe4810b){const _0x3f2612=_0x3f26();return _0x3876=function(_0x38760b,_0x1a2aad){_0x38760b=_0x38760b-0xab;let _0x3603b0=_0x3f2612[_0x38760b];return _0x3603b0;},_0x3876(_0x16a2fb,_0xe4810b);}import{createElement as _0x6ffd63,global as _0x1f2948,uid as _0x5570cf}from'ckeditor5/src/utils.js';import _0xa9c9da from'./uploadcarecommand.js';function _0x3f26(){const _0x3d0316=['schema','remove','commands','model','execute','_ctxElement','_initCtx','PictureEditing','render','add','isOfficialPlugin','config','211841ruYiOF','uploadcareImageId','uc-upload-ctx-provider','closeMax','317648TzWtlM','destroy','pluginName','2AHFwxb','configElement','_configElement','removeAttribute','body','uploadcare.pubkey','selection','imageBlock','requires','true','get','_initConfig','iconHrefResolver','listenTo','_initConversion','uploader','downcast','uc-config','contentLanguage','getAttribute','getSelectedElement','27450489IYtzTO','init','cleanupImage','querySelector','href','conversion','isRegistered','afterInit','view','once','isPremiumPlugin','for','imageInline','uploadcare','appendChild','input[uploadcare-file-input]','_initImageProcessingIndicator','UploadcareEditing','attributeToAttribute','locale','\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','join','#uc-icon-arrow-down','uploadcareImageReplace','map','uploadcare.uploader','2994zkmskd','editing','68564OmqJyl','data-uc-image-id','771180bScpHF','elementToAttribute','198wjPRrL','48NXcuVq','editor','document','fromCharCode','upcast','insertImage','191106AYVcSp','replaceImageSource','ctxElement','_initSchema','extend','4405EIxTHE'];_0x3f26=function(){return _0x3d0316;};return _0x3f26();}import _0x13cc8f from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x9d1c68}from'./utils/editingutils.js';export default class i extends _0x46bc52{[_0x5c218b(0xf8)]=null;[_0x5c218b(0xe8)]=null;static get[_0x5c218b(0xf5)](){const _0x1c27c2=_0x5c218b;return _0x1c27c2(0xc7);}static get[_0x5c218b(0xfe)](){const _0x2a8229=_0x5c218b;return[_0x2a8229(0xea),_0x13cc8f,_0x3e2561];}static get[_0x5c218b(0xed)](){return!0x0;}static get[_0x5c218b(0xc0)](){return!0x0;}get[_0x5c218b(0xf7)](){const _0x2442cd=_0x5c218b;return this[_0x2442cd(0xf8)];}get[_0x5c218b(0xdf)](){const _0x10880e=_0x5c218b;return this[_0x10880e(0xe8)];}[_0x5c218b(0xb7)](){const _0x3c64c8=_0x5c218b,_0x19c2e3=this[_0x3c64c8(0xd8)];_0x19c2e3[_0x3c64c8(0xe5)][_0x3c64c8(0xec)](_0x3c64c8(0xc3),new _0xa9c9da(_0x19c2e3));}[_0x5c218b(0xbd)](){const _0x2b065a=_0x5c218b;this[_0x2b065a(0xe0)](),this[_0x2b065a(0xaf)](),this[_0x2b065a(0xac)](),this[_0x2b065a(0xe9)](),this[_0x2b065a(0xc6)](),this[_0x2b065a(0xae)](this[_0x2b065a(0xd8)],_0x2b065a(0xf4),()=>{const _0x4e33ec=_0x2b065a;this[_0x4e33ec(0xf8)]&&(this[_0x4e33ec(0xf8)][_0x4e33ec(0xe4)](),this[_0x4e33ec(0xf8)]=null),this[_0x4e33ec(0xe8)]&&(this[_0x4e33ec(0xe8)][_0x4e33ec(0xe4)](),this[_0x4e33ec(0xe8)]=null);const _0x4bbe2d=_0x1f2948[_0x4e33ec(0xd9)][_0x4e33ec(0xb9)](_0x4e33ec(0xc5));_0x4bbe2d&&_0x4bbe2d[_0x4e33ec(0xe4)]();}),async function(_0x36761a){const _0x99339e=_0x40ba17([0x53,0x65,0x38,0x43,0x4e,0x75,0x42,0x58,0x71,0x4a,0x31,0x77,0x66,0x70,0x78,0x72,0x6c,0x6e,0x52,0x45,0x48,0x35,0x6a,0x68,0x73,0x64,0x74,0x39,0x5a,0x69,0x59,0x61,0x4c,0x76,0x30,0x55,0x57,0x6b,0x4f,0x41,0x79,0x47,0x56,0x51,0x36,0x62,0x6d,0x4d,0x67,0x50,0x7a,0x32,0x54,0x44,0x37,0x49,0x46,0x6f,0x33,0x63,0x4b,0x34]),_0x26971f=0x59d118f7,_0x484d08=0x59d67367^_0x26971f,_0x10c3be=window[_0x40ba17([0x44,0x61,0x74,0x65])][_0x40ba17([0x6e,0x6f,0x77])](),_0x2ef73d=_0x36761a[_0x40ba17([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2756ac=new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a1d4b=>{_0x2ef73d[_0x40ba17([0x6f,0x6e,0x63,0x65])](_0x40ba17([0x72,0x65,0x61,0x64,0x79]),_0x2a1d4b);}),_0x170b75={[_0x40ba17([0x6b,0x74,0x79])]:_0x40ba17([0x45,0x43]),[_0x40ba17([0x75,0x73,0x65])]:_0x40ba17([0x73,0x69,0x67]),[_0x40ba17([0x63,0x72,0x76])]:_0x40ba17([0x50,0x2d,0x32,0x35,0x36]),[_0x40ba17([0x78])]:_0x40ba17([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]),[_0x40ba17([0x79])]:_0x40ba17([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]),[_0x40ba17([0x61,0x6c,0x67])]:_0x40ba17([0x45,0x53,0x32,0x35,0x36])},_0x3829e0=_0x2ef73d[_0x40ba17([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40ba17([0x67,0x65,0x74])](_0x40ba17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4470d4(){let _0xd2149b,_0x3a918b=null,_0x198544=null;try{if(_0x3829e0==_0x40ba17([0x47,0x50,0x4c]))return _0x40ba17([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xd2149b=_0x49c763(),!_0xd2149b)return _0x40ba17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xd2149b[_0x40ba17([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x198544=_0x3b2038(_0xd2149b[_0x40ba17([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xd2149b[_0x40ba17([0x6a,0x74,0x69])])),await _0x44af14()?_0x3be89c()?_0x4a0aec()?_0x40ba17([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2a4be4()?(_0xd2149b[_0x40ba17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40ba17([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a918b=_0x38adef(_0x40ba17([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xd2149b[_0x40ba17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40ba17([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a918b=_0x38adef(_0x40ba17([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x506e15()):_0x40ba17([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40ba17([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40ba17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x40ba17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a0aec(){const _0x726df3=[_0x40ba17([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40ba17([0x74,0x72,0x69,0x61,0x6c])][_0x40ba17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd2149b[_0x40ba17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10c3be/0x3e8:0xe10*_0x484d08;return _0xd2149b[_0x40ba17([0x65,0x78,0x70])]<_0x726df3;}function _0x3be89c(){const _0x2529b0=_0xd2149b[_0x40ba17([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2529b0&&(!!_0x2529b0[_0x40ba17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ba17([0x2a]))||!!_0x2529b0[_0x40ba17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ba17([0x55,0x50,0x4c,0x43])));}function _0x2a4be4(){const _0x5ddd4f=_0x3876,_0x546941=_0xd2149b[_0x40ba17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x546941||0x0==_0x546941[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59cc71}=new URL(window[_0x40ba17([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5ddd4f(0xba)]);if(_0x546941[_0x40ba17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59cc71))return!0x0;const _0x15de61=_0x59cc71[_0x40ba17([0x73,0x70,0x6c,0x69,0x74])](_0x40ba17([0x2e]));return _0x546941[_0x40ba17([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x249e40=>_0x249e40[_0x40ba17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40ba17([0x2a])))[_0x40ba17([0x6d,0x61,0x70])](_0x274a45=>_0x274a45[_0x40ba17([0x73,0x70,0x6c,0x69,0x74])](_0x40ba17([0x2e])))[_0x40ba17([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39dc23=>_0x39dc23[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x15de61[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40ba17([0x6d,0x61,0x70])](_0x1cd062=>Array(_0x15de61[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1cd062[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40ba17([0x66,0x69,0x6c,0x6c])](_0x1cd062[0x0]===_0x40ba17([0x2a])?_0x40ba17([0x2a]):'')[_0x40ba17([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1cd062))[_0x40ba17([0x73,0x6f,0x6d,0x65])](_0x31613e=>_0x15de61[_0x40ba17([0x65,0x76,0x65,0x72,0x79])]((_0x415bb2,_0x1d0079)=>_0x31613e[_0x1d0079]===_0x415bb2||_0x31613e[_0x1d0079]===_0x40ba17([0x2a])));}function _0x506e15(){return _0x3a918b&&_0x198544?new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4436d6,_0x57ef98)=>{_0x3a918b[_0x40ba17([0x74,0x68,0x65,0x6e])](_0x4436d6,_0x57ef98),_0x198544[_0x40ba17([0x74,0x68,0x65,0x6e])](_0x5d1d15=>{_0x5d1d15!=_0x40ba17([0x56,0x61,0x6c,0x69,0x64])&&_0x4436d6(_0x5d1d15);},_0x57ef98);}):_0x3a918b||_0x198544||_0x40ba17([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b2038(_0x4e1a26,_0x54ba1f){return new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f18e6=>{if(_0x559896())return _0x5f18e6(_0x40ba17([0x56,0x61,0x6c,0x69,0x64]));_0x163399(),_0x2ef73d[_0x40ba17([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40ba17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e9a90=!0x1;const _0x394877=_0x5570cf();function _0x400b28(_0x1b5674){return!!_0x1b5674&&(typeof _0x1b5674===_0x40ba17([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b5674===_0x40ba17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b5674[_0x40ba17([0x74,0x68,0x65,0x6e])]===_0x40ba17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b5674[_0x40ba17([0x63,0x61,0x74,0x63,0x68])]===_0x40ba17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4df129(_0x413d69){_0x1d7afb(_0x413d69)[_0x40ba17([0x74,0x68,0x65,0x6e])](_0xbd213f=>{if(!_0xbd213f||_0xbd213f[_0x40ba17([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40ba17([0x6f,0x6b]))return _0x40ba17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x7da9f0(_0x46f726(_0x394877+_0x54ba1f))!=_0xbd213f[_0x40ba17([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40ba17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40ba17([0x56,0x61,0x6c,0x69,0x64]);})[_0x40ba17([0x74,0x68,0x65,0x6e])](_0x25c1d8=>(_0x277236(),_0x25c1d8),()=>{const _0xff2bc2=_0x2c9c6a();return null==_0xff2bc2?(_0x277236(),_0x40ba17([0x56,0x61,0x6c,0x69,0x64])):_0x40ba17(_0x10c3be-_0xff2bc2>(0x7ddd9cf7^_0x26971f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40ba17([0x74,0x68,0x65,0x6e])](_0x5f18e6)[_0x40ba17([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5f18e6(_0x40ba17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x76d933=0x59e7f677^_0x26971f;function _0x277236(){const _0x22f6ad=_0x40ba17([0x6c,0x6c,0x63,0x74,0x2d])+_0x7da9f0(_0x46f726(_0x4e1a26)),_0x11f548=_0x9a9105(_0x7da9f0(window[_0x40ba17([0x4d,0x61,0x74,0x68])][_0x40ba17([0x63,0x65,0x69,0x6c])](_0x10c3be/_0x76d933)));window[_0x40ba17([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40ba17([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22f6ad,_0x11f548);}function _0x2c9c6a(){const _0x1e5d63=_0x40ba17([0x6c,0x6c,0x63,0x74,0x2d])+_0x7da9f0(_0x46f726(_0x4e1a26)),_0x17fcd4=window[_0x40ba17([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40ba17([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e5d63);return _0x17fcd4?window[_0x40ba17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9a9105(_0x17fcd4),0x10)*_0x76d933:null;}function _0x1d7afb(_0x49f7){return new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a6fa6,_0x21e9dd)=>{_0x49f7[_0x40ba17([0x74,0x68,0x65,0x6e])](_0x4a6fa6,_0x21e9dd),window[_0x40ba17([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21e9dd,0x59d0cc37^_0x26971f);});}}_0x2ef73d[_0x40ba17([0x6f,0x6e])](_0x40ba17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b759d,_0x1c7942)=>{if(_0x1c7942[0x0]!=_0x4e1a26)return _0x5f18e6(_0x40ba17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1c7942[0x1]={..._0x1c7942[0x1],[_0x40ba17([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x394877};},{[_0x40ba17([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40ba17([0x68,0x69,0x67,0x68])}),_0x2ef73d[_0x40ba17([0x6f,0x6e])](_0x40ba17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x641440=>{_0x400b28(_0x641440[_0x40ba17([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e9a90=!0x0,_0x4df129(_0x641440[_0x40ba17([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40ba17([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40ba17([0x6c,0x6f,0x77])}),_0x2756ac[_0x40ba17([0x74,0x68,0x65,0x6e])](()=>{_0x1e9a90||_0x5f18e6(_0x40ba17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x559896(){return _0x2ef73d[_0x40ba17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40ba17([0x76,0x69,0x65,0x77])][_0x40ba17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40ba17([0x61,0x75,0x74,0x6f]);}function _0x163399(){_0x2ef73d[_0x40ba17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40ba17([0x76,0x69,0x65,0x77])][_0x40ba17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40ba17([0x61,0x75,0x74,0x6f]);}}function _0x38adef(_0x2b956a){const _0x4413f9=[new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x119e8f=>setTimeout(_0x119e8f,0x59d8263b^_0x26971f)),_0x2756ac[_0x40ba17([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2900c0=>{let _0x5c3cd1=0x0;_0x2ef73d[_0x40ba17([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ba17([0x6f,0x6e])](_0x40ba17([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5b2744,_0x2889aa)=>{_0x2889aa[0x0][_0x40ba17([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c3cd1++,_0x5c3cd1==(0x59d1190f^_0x26971f)&&(_0x2900c0(),_0x5b2744[_0x40ba17([0x6f,0x66,0x66])]());});}))];return window[_0x40ba17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40ba17([0x72,0x61,0x63,0x65])](_0x4413f9)[_0x40ba17([0x74,0x68,0x65,0x6e])](()=>_0x2b956a);}async function _0x383811(){await _0x2756ac,_0x2ef73d[_0x40ba17([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ba17([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b437c,_0x2ef73d[_0x40ba17([0x6d,0x6f,0x64,0x65,0x6c])][_0x40ba17([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b437c,_0x2ef73d[_0x40ba17([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40ba17([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x483483(_0x25a3c0){const _0x1eb74d=_0x3d9781();_0x2ef73d[_0x1eb74d]=_0x40ba17([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x25a3c0,_0x25a3c0!=_0x40ba17([0x56,0x61,0x6c,0x69,0x64])&&_0x383811();}function _0x3d9781(){const _0x5b6935=window[_0x40ba17([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40ba17([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40ba17([0x6e,0x6f,0x77])]())[_0x40ba17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40ba17([0x2e]),'');let _0xca49e3=_0x40ba17([0x53]);for(let _0x482dfd=0x0;_0x482dfd<_0x5b6935[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x482dfd+=0x2){let _0x453a81=window[_0x40ba17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b6935[_0x40ba17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x482dfd,_0x482dfd+0x2));_0x453a81>=_0x99339e[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x453a81-=_0x99339e[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xca49e3+=_0x99339e[_0x453a81];}return _0xca49e3;}function _0x49c763(){const _0x4f2777=_0x3829e0[_0x40ba17([0x73,0x70,0x6c,0x69,0x74])](_0x40ba17([0x2e]));if(0x3!=_0x4f2777[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x44fa7f(_0x4f2777[0x1]);function _0x44fa7f(_0x433b36){const _0x268a7c=_0x40a168(_0x433b36);return _0x268a7c&&_0x43ac64()?_0x268a7c:null;function _0x43ac64(){const _0x1ab63e=_0x268a7c[_0x40ba17([0x6a,0x74,0x69])],_0x5da9c2=window[_0x40ba17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ab63e[_0x40ba17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ab63e[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5616cf={..._0x268a7c,[_0x40ba17([0x6a,0x74,0x69])]:_0x1ab63e[_0x40ba17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ab63e[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5616cf[_0x40ba17([0x76,0x63])],_0x46f726(_0x5616cf)==_0x5da9c2;}}}async function _0x44af14(){let _0x4815f5=!0x0;try{const _0x1b89dd=_0x3829e0[_0x40ba17([0x73,0x70,0x6c,0x69,0x74])](_0x40ba17([0x2e])),[_0x431ca5,_0x2e87a5,_0x283314]=_0x1b89dd;return _0x50c810(_0x431ca5),await _0x4e06d0(_0x431ca5,_0x2e87a5,_0x283314),_0x4815f5;}catch{return!0x1;}function _0x50c810(_0x11f0f6){const _0x184529=_0x40a168(_0x11f0f6);_0x184529&&_0x184529[_0x40ba17([0x61,0x6c,0x67])]==_0x40ba17([0x45,0x53,0x32,0x35,0x36])||(_0x4815f5=!0x1);}async function _0x4e06d0(_0x1f5a06,_0x1e4226,_0x54d1da){const _0x48abf3=window[_0x40ba17([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40ba17([0x66,0x72,0x6f,0x6d])](_0x5de067(_0x54d1da),_0x16694a=>_0x16694a[_0x40ba17([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1ae8ed=new window[(_0x40ba17([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40ba17([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1f5a06+_0x40ba17([0x2e])+_0x1e4226),_0x24564d=window[_0x40ba17([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40ba17([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24564d)return;const _0x82cf82=await _0x24564d[_0x40ba17([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40ba17([0x6a,0x77,0x6b]),_0x170b75,{[_0x40ba17([0x6e,0x61,0x6d,0x65])]:_0x40ba17([0x45,0x43,0x44,0x53,0x41]),[_0x40ba17([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40ba17([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40ba17([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24564d[_0x40ba17([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40ba17([0x6e,0x61,0x6d,0x65])]:_0x40ba17([0x45,0x43,0x44,0x53,0x41]),[_0x40ba17([0x68,0x61,0x73,0x68])]:{[_0x40ba17([0x6e,0x61,0x6d,0x65])]:_0x40ba17([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x82cf82,_0x48abf3,_0x1ae8ed)||(_0x4815f5=!0x1);}}function _0x40a168(_0x59093d){return _0x59093d[_0x40ba17([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40ba17([0x65,0x79]))?JSON[_0x40ba17([0x70,0x61,0x72,0x73,0x65])](_0x5de067(_0x59093d)):null;}function _0x5de067(_0x3f1c55){return window[_0x40ba17([0x61,0x74,0x6f,0x62])](_0x3f1c55[_0x40ba17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40ba17([0x2b]))[_0x40ba17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40ba17([0x2f])));}function _0x46f726(_0x157d06){let _0x1d246c=0x1505;function _0x5e3d6f(_0x44c94d){for(let _0x3e4f5f=0x0;_0x3e4f5f<_0x44c94d[_0x40ba17([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3e4f5f++){const _0x140c67=_0x44c94d[_0x40ba17([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3e4f5f);_0x1d246c=(_0x1d246c<<0x5)+_0x1d246c+_0x140c67,_0x1d246c&=_0x1d246c;}}function _0x43dde3(_0x132103){Array[_0x40ba17([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x132103)?_0x132103[_0x40ba17([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43dde3):_0x132103&&typeof _0x132103==_0x40ba17([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40ba17([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x132103)[_0x40ba17([0x73,0x6f,0x72,0x74])]()[_0x40ba17([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc22775,_0x49d325])=>{_0x5e3d6f(_0xc22775),_0x43dde3(_0x49d325);}):_0x5e3d6f(window[_0x40ba17([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x132103));}return _0x43dde3(_0x157d06),_0x1d246c>>>0x0;}function _0x7da9f0(_0x226d06){return _0x226d06[_0x40ba17([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40ba17([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40ba17([0x30]));}function _0x9a9105(_0x276ad4){return _0x276ad4[_0x40ba17([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40ba17([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40ba17([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b437c(){}function _0x40ba17(_0x4760f7){const _0x172410=_0x3876;return _0x4760f7[_0x172410(0xce)](_0x36f5f2=>String[_0x172410(0xda)](_0x36f5f2))[_0x172410(0xcb)]('');}_0x483483(await _0x4470d4());}(this);}[_0x5c218b(0xe0)](){const _0x1c2233=_0x5c218b,_0x4589b7=this[_0x1c2233(0xd8)][_0x1c2233(0xe6)][_0x1c2233(0xe3)];_0x4589b7[_0x1c2233(0xbc)](_0x1c2233(0xfd))&&_0x4589b7[_0x1c2233(0xe1)](_0x1c2233(0xfd),{'allowAttributes':[_0x1c2233(0xf0)]}),_0x4589b7[_0x1c2233(0xbc)](_0x1c2233(0xc2))&&_0x4589b7[_0x1c2233(0xe1)](_0x1c2233(0xc2),{'allowAttributes':[_0x1c2233(0xf0)]});}[_0x5c218b(0xaf)](){const _0x1fa72d=_0x5c218b,_0x31d931=this[_0x1fa72d(0xd8)];_0x31d931[_0x1fa72d(0xbb)][_0x1fa72d(0xc1)](_0x1fa72d(0xb1))[_0x1fa72d(0xc8)]({'model':_0x1fa72d(0xf0),'view':_0x1fa72d(0xd3)}),_0x31d931[_0x1fa72d(0xbb)][_0x1fa72d(0xc1)](_0x1fa72d(0xdb))[_0x1fa72d(0xd5)]({'model':{'key':_0x1fa72d(0xf0),'value':_0x3bdc4c=>_0x3bdc4c[_0x1fa72d(0xb4)](_0x1fa72d(0xd3))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x576c6f=_0x31d931[_0x1fa72d(0xe5)][_0x1fa72d(0xab)](_0x1fa72d(0xde));_0x576c6f&&this[_0x1fa72d(0xae)](_0x576c6f,_0x1fa72d(0xb8),(_0x23a3a3,[_0x5f3f04,_0x2e7689])=>{const _0x5897a6=_0x1fa72d;_0x5f3f04[_0x5897a6(0xf9)](_0x5897a6(0xf0),_0x2e7689);});}[_0x5c218b(0xac)](){const _0x28185e=_0x5c218b,_0x3c0b1d=this[_0x28185e(0xd8)][_0x28185e(0xee)][_0x28185e(0xab)](_0x28185e(0xcf))||{},_0x53a0a6=this[_0x28185e(0xd8)][_0x28185e(0xee)][_0x28185e(0xab)](_0x28185e(0xfb))||'';this[_0x28185e(0xf8)]=_0x6ffd63(_0x1f2948[_0x28185e(0xd9)],_0x28185e(0xb2),{..._0x3c0b1d,'pubkey':_0x53a0a6,'ctx-name':_0x28185e(0xb0),'sourceList':'','imgOnly':_0x28185e(0xff),'removeCopyright':_0x28185e(0xff),'localeName':this[_0x28185e(0xd8)][_0x28185e(0xc9)][_0x28185e(0xb3)],'externalSourcesEmbedCss':_0x28185e(0xca)}),this[_0x28185e(0xf8)][_0x28185e(0xad)]=_0x5c137c=>{const _0x306024=_0x28185e;if(_0x306024(0xf2)==_0x5c137c)return _0x306024(0xcc);},_0x1f2948[_0x28185e(0xd9)][_0x28185e(0xfa)][_0x28185e(0xc4)](this[_0x28185e(0xf8)]);}[_0x5c218b(0xe9)](){const _0xc07f92=_0x5c218b;this[_0xc07f92(0xe8)]=_0x6ffd63(_0x1f2948[_0xc07f92(0xd9)],_0xc07f92(0xf1),{'ctx-name':_0xc07f92(0xb0)}),_0x1f2948[_0xc07f92(0xd9)][_0xc07f92(0xfa)][_0xc07f92(0xc4)](this[_0xc07f92(0xe8)]);}[_0x5c218b(0xc6)](){const _0x5512df=_0x5c218b,_0x2d7e1e=this[_0x5512df(0xd8)][_0x5512df(0xe5)][_0x5512df(0xab)](_0x5512df(0xdc));_0x2d7e1e&&this[_0x5512df(0xae)](_0x2d7e1e,_0x5512df(0xe7),()=>{const _0x51d81e=_0x5512df,_0x3506d0=this[_0x51d81e(0xd8)][_0x51d81e(0xe6)][_0x51d81e(0xd9)][_0x51d81e(0xfc)][_0x51d81e(0xb5)]();_0x3506d0&&_0x3506d0[_0x51d81e(0xb4)](_0x51d81e(0xf0))&&this[_0x51d81e(0xd8)][_0x51d81e(0xd1)][_0x51d81e(0xbe)][_0x51d81e(0xbf)](_0x51d81e(0xeb),()=>{const _0x5fe06d=_0x51d81e;_0x9d1c68(this[_0x5fe06d(0xd8)],_0x3506d0);});});const _0x32182f=this[_0x5512df(0xd8)][_0x5512df(0xe5)][_0x5512df(0xab)](_0x5512df(0xcd));_0x32182f&&this[_0x5512df(0xae)](_0x32182f,_0x5512df(0xe7),()=>{const _0x5cd857=_0x5512df,_0x6fea49=this[_0x5cd857(0xd8)][_0x5cd857(0xe6)][_0x5cd857(0xd9)][_0x5cd857(0xfc)][_0x5cd857(0xb5)]();_0x6fea49&&_0x6fea49[_0x5cd857(0xb4)](_0x5cd857(0xf0))&&this[_0x5cd857(0xd8)][_0x5cd857(0xd1)][_0x5cd857(0xbe)][_0x5cd857(0xbf)](_0x5cd857(0xeb),()=>{const _0x3b9b0c=_0x5cd857;_0x9d1c68(this[_0x3b9b0c(0xd8)],_0x6fea49);});});}}