@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250929.0 → 0.0.0-nightly-20251001.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1067e6,Command as _0x182881}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x44c660,IconGooglePhotos as _0x4af761,IconGoogleDrive as _0x1c2894,IconFacebook as _0xcb6e49,IconDropbox as _0x570ab0,IconUploadcareLink as _0x581444,IconUploadcareImageUpload as _0x33ebb2,IconError as _0x35eed4,IconUploadcareImageEdit as _0x5a71e2}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x2b9da2,MenuBarMenuListItemButtonView as _0x36c075,View as _0xeb4cbe,FocusCycler as _0x144a9a,Dialog as _0x426cac,DialogViewPosition as _0x5219d9,SpinnerView as _0x4f8f5b,IconView as _0x2bf52b,Notification as _0x20f455}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x5b403d,DomEmitterMixin as _0x3a1312,global as _0x48e503,getAncestors as _0x541020,ObservableMixin as _0x1b4532,uid as _0x275994,createElement as _0x5425f1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x29c714}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x21f967,info as _0x355532}from'@uploadcare/upload-client';import*as _0x8e94fb from'@uploadcare/file-uploader';var i=function(_0x22c641){return _0x22c641['Local']='local',_0x22c641['URL']='url',_0x22c641['Dropbox']='dropbox',_0x22c641['GDrive']='gdrive',_0x22c641['Facebook']='facebook',_0x22c641['GPhotos']='gphotos',_0x22c641['OneDrive']='onedrive',_0x22c641;}({});function _(_0x3b288c,_0x276610,_0x3f1cc2){const t=_0x3b288c['t'],_0x14e1db=_0x3b288c['t'];switch(_0x276610){case i['Local']:return{'text':_0x14e1db('Insert'===_0x3f1cc2?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x14e1db('From\x20computer')};case i['URL']:return{'text':'Insert'===_0x3f1cc2?_0x14e1db('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x14e1db('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0x3f1cc2?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0x3f1cc2?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0x3f1cc2?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0x3f1cc2?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0x3f1cc2?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x276610;}}class e extends _0x1067e6{['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 _0xf6c3be=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x43e335;for(const _0xec9978 in _0xf6c3be){const _0x3acd34=_0xec9978,_0x18e071=_0xf6c3be[_0x3acd34];if('uploadcareLicenseKeyValid'==_0x18e071||'uploadcareLicenseKeyInvalid'==_0x18e071||'uploadcareLicenseKeyExpired'==_0x18e071||'uploadcareLicenseKeyDomainLimit'==_0x18e071||'uploadcareLicenseKeyNotAllowed'==_0x18e071||'uploadcareLicenseKeyEvaluationLimit'==_0x18e071||'uploadcareLicenseKeyTrialLimit'==_0x18e071||'uploadcareLicenseKeyUsageLimit'==_0x18e071){delete _0xf6c3be[_0x3acd34],_0x43e335=_0x18e071,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x43e335&&_0xf6c3be['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x43e335&&_0xf6c3be['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x43e335&&_0xf6c3be['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x43e335&&_0xf6c3be['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x43e335&&_0xf6c3be['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x43e335&&_0xf6c3be['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x43e335&&_0xf6c3be['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x40dfa2}=this,_0x24cc48=_0x40dfa2['commands']['get']('uploadcare');if(!_0x24cc48)return;const _0x12e178=this['_normalizeConfigSourceList'](_0x40dfa2['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x39b6c3,_0x54ef5f)=>{const _0x44592c=this['_getIntegrationKey'](_0x54ef5f['type']);return _0x39b6c3[_0x44592c]||(_0x39b6c3[_0x44592c]=[]),_0x39b6c3[_0x44592c]['push'](_0x54ef5f),_0x39b6c3;},{});_0x40dfa2['plugins']['has']('ImageInsertUI')&&_0x40dfa2['commands']['get']('uploadcare')&&Object['entries'](_0x12e178)['forEach'](([_0x179763,_0x2d4d75])=>{_0x40dfa2['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x179763,'observable':()=>_0x24cc48,'buttonViewCreator':()=>this['_createToolbarButton'](_0x2d4d75),'formViewCreator':()=>this['_createDropdownButtons'](_0x2d4d75),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x2d4d75),'override':'assetManager'!==_0x179763});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x3663f0){const {locale:_0x464166}=this['editor'];return _0x3663f0['map'](_0xf658ab=>{const _0x43100a=_(_0x464166,_0xf658ab,'Insert');switch(_0xf658ab){case i['Local']:return{'icon':_0x33ebb2,'type':i['Local'],..._0x43100a};case i['URL']:return{'icon':_0x581444,'type':i['URL'],..._0x43100a};case i['Dropbox']:return{'icon':_0x570ab0,'type':i['Dropbox'],..._0x43100a};case i['Facebook']:return{'icon':_0xcb6e49,'type':i['Facebook'],..._0x43100a};case i['GDrive']:return{'icon':_0x1c2894,'type':i['GDrive'],..._0x43100a};case i['GPhotos']:return{'icon':_0x4af761,'type':i['GPhotos'],..._0x43100a};case i['OneDrive']:return{'icon':_0x44c660,'type':i['OneDrive'],..._0x43100a};}});}['_getIntegrationKey'](_0x31ee2f){switch(_0x31ee2f){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0xc6eba3,_0x599477){const _0x43481c=this['editor'],_0x55d215=new _0xc6eba3(_0x43481c['locale']),_0x5250b5=_0x43481c['commands']['get']('uploadcare');return _0x55d215['bind']('isEnabled')['to'](_0x5250b5),_0x55d215['on']('execute',()=>{_0x5250b5['execute'](_0x599477);}),_0x55d215;}['_createToolbarButton'](_0x1fe6b6){const {locale:_0x5d0d2a}=this['editor'],_0x54f7b7=this['editor']['plugins']['get']('ImageInsertUI'),_0xb5c93b=_0x1fe6b6[0x0],_0xba33a7=this['_createButton'](_0x2b9da2,_0xb5c93b['type']);return _0xba33a7['icon']=_0xb5c93b['icon'],_0xba33a7['bind']('label')['to'](_0x54f7b7,'isImageSelected',_0x3ae956=>_(_0x5d0d2a,_0xb5c93b['type'],_0x3ae956?'Replace':'Insert')['text']),_0xba33a7['tooltip']=!0x0,_0xba33a7;}['_createDropdownButtons'](_0x4bae7e){const {locale:_0x2a87dd}=this['editor'],_0x175a74=this['editor']['plugins']['get']('ImageInsertUI');return _0x4bae7e['map'](_0x355d89=>{const _0x1e8195=this['_createButton'](_0x2b9da2,_0x355d89['type']);return _0x1e8195['withText']=!0x0,_0x1e8195['icon']=_0x355d89['icon'],_0x1e8195['bind']('label')['to'](_0x175a74,'isImageSelected',_0x3e9420=>_(_0x2a87dd,_0x355d89['type'],_0x3e9420?'Replace':'Insert')['text']),_0x1e8195;});}['_createMenuBarButtons'](_0x2cc1a5){return _0x2cc1a5['map'](_0x15c834=>{const _0x408f54=this['_createButton'](_0x36c075,_0x15c834['type']);return _0x408f54['icon']=_0x15c834['icon'],_0x408f54['label']=_0x15c834['shortText'],_0x408f54;});}}class F extends _0xeb4cbe{['focusTracker'];['focusCycler'];constructor(_0x1d67cb){super(_0x1d67cb),this['focusTracker']=new _0x5b403d(),this['focusCycler']=new _0x144a9a({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class x extends F{constructor(_0xcbc381,_0x92e964){super(_0xcbc381),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-'+_0x92e964}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x1735cc,_0x3de400){const _0xa5ab63=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2f70b8=>_0x2f70b8<=_0x3de400)['map'](_0x1a51c6=>_0x1735cc['replace'](/\/$/,'')+'/-/resize/'+_0x1a51c6+'x/\x20'+_0x1a51c6+'w');return{'imageFallbackUrl':_0x1735cc,'imageSources':[{'srcset':_0xa5ab63['join'](',\x20'),'sizes':'(max-width:\x20'+_0x3de400+'px)\x20100vw,\x20'+_0x3de400+'px','type':'image/webp'}]};}function S(_0x17a17b,_0x4a9a6c,_0xc1955a){const _0x4d845c=_0x17a17b['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4d845c?parseInt(_0x4d845c[0x1],0xa):_0x4a9a6c,'height':_0x4d845c?parseInt(_0x4d845c[0x2],0xa):_0xc1955a};}function p(_0x2c7f31,_0x1ae446){const _0x3f0937=new(_0x3a1312())(),_0x2a77a7=_0x2c7f31['plugins']['get']('ImageUtils'),_0x40215b=_0x2c7f31['editing']['mapper']['toViewElement'](_0x1ae446),_0x12d620=_0x2a77a7['findViewImgElement'](_0x40215b),_0x4b8480=_0x2c7f31['editing']['view']['domConverter']['viewToDom'](_0x12d620),_0x5563b2=_0x1ae446['getAttribute']('width'),_0xd5e4f8=_0x1ae446['getAttribute']('height'),_0x460fd0='image-processing';_0x2c7f31['editing']['view']['change'](_0x4098ff=>{_0x4098ff['addClass'](_0x460fd0,_0x40215b),_0x4098ff['setStyle']('aspect-ratio',_0x5563b2+'/'+_0xd5e4f8,_0x12d620);}),_0x3f0937['listenTo'](_0x4b8480,'load',()=>{_0x3f0937['stopListening'](_0x4b8480,'load'),_0x2c7f31['editing']['view']['change'](_0x13fd71=>{_0x13fd71['removeClass'](_0x460fd0,_0x40215b),_0x13fd71['removeStyle']('aspect-ratio',_0x12d620);});});}function G(_0x5de3c1){if(Array['isArray'](_0x5de3c1)){const _0x25051e=_0x5de3c1['map'](G);return _0xc20f79=>_0x25051e['some'](_0x2696c9=>_0x2696c9(_0xc20f79));}if('origin'==_0x5de3c1){const _0x4d4159=_0x48e503['window']['location']['origin'];return _0x2fda03=>new URL(_0x2fda03,_0x48e503['document']['baseURI'])['origin']==_0x4d4159;}return'function'==typeof _0x5de3c1?_0x5de3c1:_0x5de3c1 instanceof RegExp?_0x4e46e6=>!(!_0x4e46e6['match'](_0x5de3c1)&&!_0x4e46e6['replace'](/^https?:\/\//,'')['match'](_0x5de3c1)):()=>!0x1;}function A(_0x66d55b,_0x5418e1){return _0x541020(_0x66d55b['target'])['includes'](_0x5418e1);}class n extends/* #__PURE__ -- @preserve */
24
- _0x1b4532(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4669fa,_0x26e1bc,_0x9f6e8a){super(),this['_editor']=_0x4669fa,this['_editing']=_0x26e1bc,this['_dialog']=_0x4669fa['plugins']['get'](_0x426cac),this['_api']=_0x26e1bc['ctxElement']['getAPI'](),this['_type']=_0x9f6e8a,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:_0xa3593,model:_0x5c927}=this['_editor'],_0x21b94f=_0x5c927['document']['selection']['getSelectedElement'](),_0x322278=_0x21b94f&&(_0x21b94f['is']('element','imageBlock')||_0x21b94f['is']('element','imageInline'));this['_formView']=new x(_0xa3593,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x33ebb2,'title':_(_0xa3593,this['_type'],_0x322278?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5219d9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x27545c=>!A(_0x27545c,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x411785}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x1344e3=>{const _0x40406f=_0x411785['length'];for(const _0x442fcc of _0x411785){const _0x1992c9=_0x442fcc===_0x411785[_0x40406f-0x1],{cdnUrl:_0x1d5fa2,fileInfo:_0x8ca0d3}=_0x442fcc;if(!_0x1d5fa2||!_0x8ca0d3)continue;const {width:_0x299238,height:_0x3d6ab9}=_0x8ca0d3['imageInfo'],_0x5774fa=S(_0x1d5fa2,_0x299238,_0x3d6ab9),_0x342621=C(_0x1d5fa2,_0x5774fa['width']),_0xf1362e={'id':_0x8ca0d3['uuid'],'type':'image','attributes':{'imageDimension':_0x5774fa,..._0x342621}};this['_insertAsset'](_0xf1362e,_0x1992c9,_0x1344e3);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0xf8e4f4=>{'idle'===_0xf8e4f4['detail']['status']&&!_0xf8e4f4['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x7054d7,_0x30aec6,_0x414f3f){const _0x2b3d92=this['_editor']['model']['document']['selection'],_0x3e9602=_0x2b3d92['getSelectedElement'](),_0x7bd9b7=!(!_0x3e9602||!_0x3e9602['is']('element','imageInline'));_0x414f3f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x7054d7,_0x7bd9b7),_0x30aec6||_0x414f3f['setSelection'](_0x2b3d92['getLastPosition']());}['_insertImage'](_0x420f78,_0x91092b){const _0x3993d3=this['_editor'],{imageDimension:_0x54a252,imageFallbackUrl:_0x17cdcb,imageSources:_0x51bf25}=_0x420f78['attributes'];_0x3993d3['execute']('insertImage',{'imageType':_0x91092b?'imageInline':null,'source':{'uploadcareImageId':_0x420f78['id'],'src':_0x17cdcb,'sources':_0x51bf25,..._0x54a252}});}}class w extends _0x182881{['_editing'];['_controller']=null;static get['requires'](){return[_0x426cac,o];}constructor(_0x140bdb){super(_0x140bdb),this['_editing']=_0x140bdb['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x396ecb){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x396ecb);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x346db1,..._0x395aaa}){return _0x21f967(_0x346db1,_0x395aaa);}static['getInfo'](_0x5e9176,_0xc31cdd){return _0x355532(_0x5e9176,_0xc31cdd);}}class f extends _0x1067e6{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x29c714,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x16ce80=this['editor'];if(!!!_0x16ce80['config']['get']('uploadcare'))return;_0x16ce80['plugins']['get'](_0x29c714)['createUploadAdapter']=_0x373b88=>new k(_0x373b88,_0x16ce80),_0x16ce80['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x57de43,{imageElement:_0x20a068,data:_0x33ca02})=>{_0x16ce80['model']['change'](_0x1ce00a=>{_0x1ce00a['setAttribute']('uploadcareImageId',_0x33ca02['uploadcareImageId'],_0x20a068);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x58a4e7,_0x4b077d){this['loader']=_0x58a4e7,this['editor']=_0x4b077d,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x109a1e=await this['loader']['file'];return j['upload']({'file':_0x109a1e,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x4afe34=>{_0x4afe34&&_0x4afe34['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4afe34['value']);}})['then'](async _0x5a225e=>{const {imageFallbackUrl:_0x1ea4b5,imageSources:_0x196848}=C(_0x5a225e['cdnUrl'],_0x5a225e['imageInfo']['width']);return{'uploadcareImageId':_0x5a225e['uuid'],'default':_0x1ea4b5,'sources':_0x196848};})['catch'](()=>{const _0x32e59a=t('Cannot\x20upload\x20file:')+('\x20'+_0x109a1e['name']+'.');return Promise['reject'](_0x32e59a);});}['abort'](){this['controller']['abort']();}}class o extends _0x1067e6{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x426cac];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x49c804){super(_0x49c804),this['ucContextId']=_0x275994();}['init'](){const _0x2e1142=this['editor'];_0x2e1142['commands']['add']('uploadcare',new w(_0x2e1142));}['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 _0x55bc57=_0x48e503['document']['querySelector']('input[uploadcare-file-input]');_0x55bc57&&_0x55bc57['remove']();}),async function(_0x35c3d4){const _0x60bf56=_0x1d1fd6([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x5b8bea=0x3d8d0df,_0x121887=0x3dfa41f^_0x5b8bea,_0x41b6a5=window[_0x1d1fd6([0x44,0x61,0x74,0x65])][_0x1d1fd6([0x6e,0x6f,0x77])](),_0x158811=_0x35c3d4[_0x1d1fd6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x25184e=new window[(_0x1d1fd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x530276=>{_0x158811[_0x1d1fd6([0x6f,0x6e,0x63,0x65])](_0x1d1fd6([0x72,0x65,0x61,0x64,0x79]),_0x530276);}),_0x3fb82f={[_0x1d1fd6([0x6b,0x74,0x79])]:_0x1d1fd6([0x45,0x43]),[_0x1d1fd6([0x75,0x73,0x65])]:_0x1d1fd6([0x73,0x69,0x67]),[_0x1d1fd6([0x63,0x72,0x76])]:_0x1d1fd6([0x50,0x2d,0x32,0x35,0x36]),[_0x1d1fd6([0x78])]:_0x1d1fd6([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]),[_0x1d1fd6([0x79])]:_0x1d1fd6([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]),[_0x1d1fd6([0x61,0x6c,0x67])]:_0x1d1fd6([0x45,0x53,0x32,0x35,0x36])},_0x332285=_0x158811[_0x1d1fd6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d1fd6([0x67,0x65,0x74])](_0x1d1fd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x25604e(){let _0x4db380,_0x50254a=null,_0xd0fe5b=null;try{if(_0x332285==_0x1d1fd6([0x47,0x50,0x4c]))return _0x1d1fd6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4db380=_0x47f3a1(),!_0x4db380)return _0x1d1fd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4db380[_0x1d1fd6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd0fe5b=_0x2f08bb(_0x4db380[_0x1d1fd6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4db380[_0x1d1fd6([0x6a,0x74,0x69])])),await _0x3510df()?_0x4c1748()?_0x40bb2b()?_0x1d1fd6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x20538c()?(_0x4db380[_0x1d1fd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d1fd6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x50254a=_0x3829fe(_0x1d1fd6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4db380[_0x1d1fd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d1fd6([0x74,0x72,0x69,0x61,0x6c])&&(_0x50254a=_0x3829fe(_0x1d1fd6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56c03f()):_0x1d1fd6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d1fd6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d1fd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1d1fd6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x40bb2b(){const _0x55e0c4=[_0x1d1fd6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d1fd6([0x74,0x72,0x69,0x61,0x6c])][_0x1d1fd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db380[_0x1d1fd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x41b6a5/0x3e8:0xe10*_0x121887;return _0x4db380[_0x1d1fd6([0x65,0x78,0x70])]<_0x55e0c4;}function _0x4c1748(){const _0x290bff=_0x4db380[_0x1d1fd6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x290bff&&(!!_0x290bff[_0x1d1fd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d1fd6([0x2a]))||!!_0x290bff[_0x1d1fd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d1fd6([0x55,0x50,0x4c,0x43])));}function _0x20538c(){const _0x60773=_0x4db380[_0x1d1fd6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x60773||0x0==_0x60773[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3c2c6d}=new URL(window[_0x1d1fd6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x60773[_0x1d1fd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c2c6d))return!0x0;const _0x3f3f7b=_0x3c2c6d[_0x1d1fd6([0x73,0x70,0x6c,0x69,0x74])](_0x1d1fd6([0x2e]));return _0x60773[_0x1d1fd6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48fa4a=>_0x48fa4a[_0x1d1fd6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d1fd6([0x2a])))[_0x1d1fd6([0x6d,0x61,0x70])](_0x101cfc=>_0x101cfc[_0x1d1fd6([0x73,0x70,0x6c,0x69,0x74])](_0x1d1fd6([0x2e])))[_0x1d1fd6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57e8fd=>_0x57e8fd[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3f3f7b[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d1fd6([0x6d,0x61,0x70])](_0xfd5cf=>Array(_0x3f3f7b[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xfd5cf[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d1fd6([0x66,0x69,0x6c,0x6c])](_0xfd5cf[0x0]===_0x1d1fd6([0x2a])?_0x1d1fd6([0x2a]):'')[_0x1d1fd6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xfd5cf))[_0x1d1fd6([0x73,0x6f,0x6d,0x65])](_0x254394=>_0x3f3f7b[_0x1d1fd6([0x65,0x76,0x65,0x72,0x79])]((_0x25324e,_0x211c6f)=>_0x254394[_0x211c6f]===_0x25324e||_0x254394[_0x211c6f]===_0x1d1fd6([0x2a])));}function _0x56c03f(){return _0x50254a&&_0xd0fe5b?new window[(_0x1d1fd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43007c,_0x4c4d4f)=>{_0x50254a[_0x1d1fd6([0x74,0x68,0x65,0x6e])](_0x43007c,_0x4c4d4f),_0xd0fe5b[_0x1d1fd6([0x74,0x68,0x65,0x6e])](_0x1cc700=>{_0x1cc700!=_0x1d1fd6([0x56,0x61,0x6c,0x69,0x64])&&_0x43007c(_0x1cc700);},_0x4c4d4f);}):_0x50254a||_0xd0fe5b||_0x1d1fd6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f08bb(_0x227c0d,_0x1e4ff1){return new window[(_0x1d1fd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4696cf=>{if(_0x3d9cc1())return _0x4696cf(_0x1d1fd6([0x56,0x61,0x6c,0x69,0x64]));_0x18bb7f(),_0x158811[_0x1d1fd6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d1fd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2719d3=!0x1;const _0x574b6c=_0x275994();function _0x48585c(_0x39f321){return!!_0x39f321&&(typeof _0x39f321===_0x1d1fd6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x39f321===_0x1d1fd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x39f321[_0x1d1fd6([0x74,0x68,0x65,0x6e])]===_0x1d1fd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x39f321[_0x1d1fd6([0x63,0x61,0x74,0x63,0x68])]===_0x1d1fd6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c3494(_0x1f7682){_0x555209(_0x1f7682)[_0x1d1fd6([0x74,0x68,0x65,0x6e])](_0x2860a6=>{if(!_0x2860a6||_0x2860a6[_0x1d1fd6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d1fd6([0x6f,0x6b]))return _0x1d1fd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x427b0b(_0x2a4025(_0x574b6c+_0x1e4ff1))!=_0x2860a6[_0x1d1fd6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d1fd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d1fd6([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d1fd6([0x74,0x68,0x65,0x6e])](_0x45d526=>(_0xa240fc(),_0x45d526),()=>{const _0x317001=_0x3c7e19();return null==_0x317001?(_0xa240fc(),_0x1d1fd6([0x56,0x61,0x6c,0x69,0x64])):_0x1d1fd6(_0x41b6a5-_0x317001>(0x27d454df^_0x5b8bea)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d1fd6([0x74,0x68,0x65,0x6e])](_0x4696cf)[_0x1d1fd6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4696cf(_0x1d1fd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x317692=0x3ee3e5f^_0x5b8bea;function _0xa240fc(){const _0x5d81d6=_0x1d1fd6([0x6c,0x6c,0x63,0x74,0x2d])+_0x427b0b(_0x2a4025(_0x227c0d)),_0x19bde7=_0x42ae6c(_0x427b0b(window[_0x1d1fd6([0x4d,0x61,0x74,0x68])][_0x1d1fd6([0x63,0x65,0x69,0x6c])](_0x41b6a5/_0x317692)));window[_0x1d1fd6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d1fd6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5d81d6,_0x19bde7);}function _0x3c7e19(){const _0x29e634=_0x1d1fd6([0x6c,0x6c,0x63,0x74,0x2d])+_0x427b0b(_0x2a4025(_0x227c0d)),_0x52aec1=window[_0x1d1fd6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d1fd6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29e634);return _0x52aec1?window[_0x1d1fd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42ae6c(_0x52aec1),0x10)*_0x317692:null;}function _0x555209(_0x373f9a){return new window[(_0x1d1fd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e5b1b,_0x353670)=>{_0x373f9a[_0x1d1fd6([0x74,0x68,0x65,0x6e])](_0x2e5b1b,_0x353670),window[_0x1d1fd6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x353670,0x3d9041f^_0x5b8bea);});}}_0x158811[_0x1d1fd6([0x6f,0x6e])](_0x1d1fd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x386c88,_0x1e79f9)=>{if(_0x1e79f9[0x0]!=_0x227c0d)return _0x4696cf(_0x1d1fd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1e79f9[0x1]={..._0x1e79f9[0x1],[_0x1d1fd6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x574b6c};},{[_0x1d1fd6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d1fd6([0x68,0x69,0x67,0x68])}),_0x158811[_0x1d1fd6([0x6f,0x6e])](_0x1d1fd6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f651c=>{_0x48585c(_0x2f651c[_0x1d1fd6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2719d3=!0x0,_0x3c3494(_0x2f651c[_0x1d1fd6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d1fd6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d1fd6([0x6c,0x6f,0x77])}),_0x25184e[_0x1d1fd6([0x74,0x68,0x65,0x6e])](()=>{_0x2719d3||_0x4696cf(_0x1d1fd6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d9cc1(){return _0x158811[_0x1d1fd6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d1fd6([0x76,0x69,0x65,0x77])][_0x1d1fd6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d1fd6([0x61,0x75,0x74,0x6f]);}function _0x18bb7f(){_0x158811[_0x1d1fd6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d1fd6([0x76,0x69,0x65,0x77])][_0x1d1fd6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d1fd6([0x61,0x75,0x74,0x6f]);}}function _0x3829fe(_0x2afdf1){const _0x3b8057=[new window[(_0x1d1fd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x104e84=>setTimeout(_0x104e84,0x3d1ee13^_0x5b8bea)),_0x25184e[_0x1d1fd6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d1fd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x280b58=>{let _0xf0fae1=0x0;_0x158811[_0x1d1fd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d1fd6([0x6f,0x6e])](_0x1d1fd6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b279c,_0x1c74ca)=>{_0x1c74ca[0x0][_0x1d1fd6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xf0fae1++,_0xf0fae1==(0x3d8d127^_0x5b8bea)&&(_0x280b58(),_0x3b279c[_0x1d1fd6([0x6f,0x66,0x66])]());});}))];return window[_0x1d1fd6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d1fd6([0x72,0x61,0x63,0x65])](_0x3b8057)[_0x1d1fd6([0x74,0x68,0x65,0x6e])](()=>_0x2afdf1);}async function _0x392e0d(){await _0x25184e,_0x158811[_0x1d1fd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d1fd6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x497ee4,_0x158811[_0x1d1fd6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d1fd6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x497ee4,_0x158811[_0x1d1fd6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d1fd6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x56eb73(_0x39a6c9){const _0x3877fe=_0x13e59b();_0x158811[_0x3877fe]=_0x1d1fd6([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x39a6c9,_0x39a6c9!=_0x1d1fd6([0x56,0x61,0x6c,0x69,0x64])&&_0x392e0d();}function _0x13e59b(){const _0x2a017c=window[_0x1d1fd6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d1fd6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d1fd6([0x6e,0x6f,0x77])]())[_0x1d1fd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d1fd6([0x2e]),'');let _0x3cbf9f=_0x1d1fd6([0x52]);for(let _0x4f2c3c=0x0;_0x4f2c3c<_0x2a017c[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f2c3c+=0x2){let _0x3e9141=window[_0x1d1fd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a017c[_0x1d1fd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f2c3c,_0x4f2c3c+0x2));_0x3e9141>=_0x60bf56[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3e9141-=_0x60bf56[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3cbf9f+=_0x60bf56[_0x3e9141];}return _0x3cbf9f;}function _0x47f3a1(){const _0x2b02f0=_0x332285[_0x1d1fd6([0x73,0x70,0x6c,0x69,0x74])](_0x1d1fd6([0x2e]));if(0x3!=_0x2b02f0[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x251fdd(_0x2b02f0[0x1]);function _0x251fdd(_0x24291b){const _0x4f50a4=_0xd03039(_0x24291b);return _0x4f50a4&&_0x317a76()?_0x4f50a4:null;function _0x317a76(){const _0x518998=_0x4f50a4[_0x1d1fd6([0x6a,0x74,0x69])],_0x1be6a7=window[_0x1d1fd6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x518998[_0x1d1fd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x518998[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2caa7d={..._0x4f50a4,[_0x1d1fd6([0x6a,0x74,0x69])]:_0x518998[_0x1d1fd6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x518998[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2caa7d[_0x1d1fd6([0x76,0x63])],_0x2a4025(_0x2caa7d)==_0x1be6a7;}}}async function _0x3510df(){let _0x3f5a27=!0x0;try{const _0x5cd392=_0x332285[_0x1d1fd6([0x73,0x70,0x6c,0x69,0x74])](_0x1d1fd6([0x2e])),[_0x42740c,_0x34fc47,_0x3ab238]=_0x5cd392;return _0x4e83a1(_0x42740c),await _0x5408ac(_0x42740c,_0x34fc47,_0x3ab238),_0x3f5a27;}catch{return!0x1;}function _0x4e83a1(_0xba25fd){const _0x581719=_0xd03039(_0xba25fd);_0x581719&&_0x581719[_0x1d1fd6([0x61,0x6c,0x67])]==_0x1d1fd6([0x45,0x53,0x32,0x35,0x36])||(_0x3f5a27=!0x1);}async function _0x5408ac(_0x2ba624,_0x3ae21e,_0x5495cb){const _0xe18130=window[_0x1d1fd6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d1fd6([0x66,0x72,0x6f,0x6d])](_0x2a9edb(_0x5495cb),_0x22b186=>_0x22b186[_0x1d1fd6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x458de0=new window[(_0x1d1fd6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d1fd6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2ba624+_0x1d1fd6([0x2e])+_0x3ae21e),_0x4b7259=window[_0x1d1fd6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d1fd6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b7259)return;const _0x2c4506=await _0x4b7259[_0x1d1fd6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d1fd6([0x6a,0x77,0x6b]),_0x3fb82f,{[_0x1d1fd6([0x6e,0x61,0x6d,0x65])]:_0x1d1fd6([0x45,0x43,0x44,0x53,0x41]),[_0x1d1fd6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d1fd6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d1fd6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b7259[_0x1d1fd6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d1fd6([0x6e,0x61,0x6d,0x65])]:_0x1d1fd6([0x45,0x43,0x44,0x53,0x41]),[_0x1d1fd6([0x68,0x61,0x73,0x68])]:{[_0x1d1fd6([0x6e,0x61,0x6d,0x65])]:_0x1d1fd6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c4506,_0xe18130,_0x458de0)||(_0x3f5a27=!0x1);}}function _0xd03039(_0x5cdc82){return _0x5cdc82[_0x1d1fd6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d1fd6([0x65,0x79]))?JSON[_0x1d1fd6([0x70,0x61,0x72,0x73,0x65])](_0x2a9edb(_0x5cdc82)):null;}function _0x2a9edb(_0x1d9644){return window[_0x1d1fd6([0x61,0x74,0x6f,0x62])](_0x1d9644[_0x1d1fd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d1fd6([0x2b]))[_0x1d1fd6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d1fd6([0x2f])));}function _0x2a4025(_0x26e7ff){let _0xd86d44=0x1505;function _0x3493cc(_0x107200){for(let _0x3dd0a1=0x0;_0x3dd0a1<_0x107200[_0x1d1fd6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3dd0a1++){const _0x1e8d1c=_0x107200[_0x1d1fd6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3dd0a1);_0xd86d44=(_0xd86d44<<0x5)+_0xd86d44+_0x1e8d1c,_0xd86d44&=_0xd86d44;}}function _0x377869(_0x356888){Array[_0x1d1fd6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x356888)?_0x356888[_0x1d1fd6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x377869):_0x356888&&typeof _0x356888==_0x1d1fd6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d1fd6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x356888)[_0x1d1fd6([0x73,0x6f,0x72,0x74])]()[_0x1d1fd6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4ee1a3,_0x5b5932])=>{_0x3493cc(_0x4ee1a3),_0x377869(_0x5b5932);}):_0x3493cc(window[_0x1d1fd6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x356888));}return _0x377869(_0x26e7ff),_0xd86d44>>>0x0;}function _0x427b0b(_0x56996b){return _0x56996b[_0x1d1fd6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d1fd6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d1fd6([0x30]));}function _0x42ae6c(_0x45d012){return _0x45d012[_0x1d1fd6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d1fd6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d1fd6([0x6a,0x6f,0x69,0x6e])]('');}function _0x497ee4(){}function _0x1d1fd6(_0xa424d4){return _0xa424d4['map'](_0x59330a=>String['fromCharCode'](_0x59330a))['join']('');}_0x56eb73(await _0x25604e());}(this);}['_initSchema'](){const _0x1ca532=this['editor']['model']['schema'];_0x1ca532['isRegistered']('imageBlock')&&_0x1ca532['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x1ca532['isRegistered']('imageInline')&&_0x1ca532['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x31ba10=this['editor'];_0x31ba10['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x31ba10['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xc98ede=>_0xc98ede['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x44b70c=_0x31ba10['commands']['get']('replaceImageSource');_0x44b70c&&this['listenTo'](_0x44b70c,'cleanupImage',(_0x1f5114,[_0x3cb87d,_0x2ad65c])=>{_0x3cb87d['removeAttribute']('uploadcareImageId',_0x2ad65c);});}['_initConfig'](){const _0x13357a=this['editor']['config']['get']('uploadcare.uploader')||{},_0x3836b6=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x5425f1(_0x48e503['document'],'uc-config',{..._0x13357a,'pubkey':_0x3836b6,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x2aedd7=>{if('closeMax'==_0x2aedd7)return'#uc-icon-arrow-down';},_0x48e503['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x5425f1(_0x48e503['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x48e503['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1d58b6=this['editor']['commands']['get']('insertImage');_0x1d58b6&&this['listenTo'](_0x1d58b6,'execute',()=>{const _0xe42479=this['editor']['model']['document']['selection']['getSelectedElement']();_0xe42479&&_0xe42479['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xe42479);});});const _0x583f78=this['editor']['commands']['get']('uploadcareImageReplace');_0x583f78&&this['listenTo'](_0x583f78,'execute',()=>{const _0x5321ad=this['editor']['model']['document']['selection']['getSelectedElement']();_0x5321ad&&_0x5321ad['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x5321ad);});});}}class tt extends _0x1067e6{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51b868){super(_0x51b868),_0x51b868['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0x8e94fb['defineComponents'](_0x8e94fb);}}class ii extends _0xeb4cbe{constructor(_0xf894a5){super(_0xf894a5);const t=_0xf894a5['t'],_0x536346=this['bindTemplate'],_0xa67e55=new _0x4f8f5b();_0xa67e55['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':[_0xa67e55,{'text':_0x536346['to']('imageUploadProgress',_0x4ff4fd=>t('Loading\x20image...')+'\x20('+(_0x4ff4fd||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0xeb4cbe{constructor(_0x177ab3){super(_0x177ab3);const t=_0x177ab3['t'];this['set']('errorType',null);const _0x726eff=new _0x2b9da2(_0x177ab3);_0x726eff['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x726eff['withText']=!0x0,_0x726eff['class']='ck-button-action',_0x726eff['on']('execute',()=>{this['fire']('retry');}),_0x726eff['bind']('isVisible')['to'](this,'errorType',_0x3014dc=>'NotFound'!==_0x3014dc);const _0x272faf=new _0x2bf52b();_0x272faf['content']=_0x35eed4,_0x272faf['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x545dc6=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':[_0x272faf,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x545dc6['to']('errorType',_0x294df6=>t('NotFound'!==_0x294df6?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x726eff]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0xeb4cbe{constructor(_0xf6d49c,_0x8a37e4){super(_0xf6d49c);const _0x11ece5=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x8a37e4,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x11ece5['to']('imageSrc')}});}}class X extends F{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x47643b,_0x2a2217,_0x338fe6){super(_0x47643b),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x47643b),this['_errorView']=new ti(_0x47643b),this['_editingView']=new ei(_0x47643b,_0x338fe6),this['_focusableView']=new _0xeb4cbe(_0x47643b),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x2a2217),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'],_0x5b5b85=>{this['_addUploadcareImageEditorListeners'](_0x5b5b85);});}),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'](_0x18dd18,_0x4e37de){const _0x533d42='uc-cloud-image-editor',_0x3df550=_0x18dd18['querySelector'](_0x533d42);if(_0x3df550)return _0x4e37de(_0x3df550);const _0x1bf92a=new MutationObserver(_0x5547ca=>{const _0x56c23e=_0x5547ca['filter'](_0x461155=>_0x461155['target']===_0x18dd18&&_0x461155['addedNodes']['length']>0x0&&_0x461155['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x533d42);_0x56c23e['length']&&(_0x1bf92a['disconnect'](),_0x4e37de(_0x56c23e[0x0]['addedNodes'][0x0]));});_0x1bf92a['observe'](_0x18dd18,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x459d3c){_0x459d3c['addEventListener']('apply',_0x915531=>{this['fire']('apply',{'imageSrc':_0x915531['detail']['cdnUrl']});}),_0x459d3c['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
- _0x1b4532(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0xa8cc10,_0x465661,_0x3a654c){super(),this['_editor']=_0xa8cc10,this['_dialog']=_0x465661,this['_imageElement']=_0x3a654c,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 _0x43172c=this['_imageElement'],_0x47cefa=_0x43172c['getAttribute']('uploadcareImageId'),_0x1765c8=_0x43172c['getAttribute']('src');if(_0x47cefa)await this['_loadImageInfo'](_0x47cefa,_0x1765c8);else{if(this['_imageCache']['has'](_0x1765c8)){const _0x1cd997=this['_imageCache']['get'](_0x1765c8);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1cd997['url'],this['imageDimension']=_0x1cd997['dimension'],this['imageId']=_0x1cd997['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5533f0}=this['_editor'],t=_0x5533f0['t'],_0x1109a1=new X(_0x5533f0,this['imageStatus'],this['_attributes']);_0x1109a1['bind']('status')['to'](this,'imageStatus'),_0x1109a1['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x1109a1['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x1109a1['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x1109a1,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x5a71e2,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x1109a1,'position':_0x5219d9['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x1109a1['focus']();},'onHide':()=>{_0x1109a1['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x25c681=>!A(_0x25c681,_0x1109a1['element'])}});}['_loadImageInfo'](_0x46fcb8,_0x3d97b4){return j['getInfo'](_0x46fcb8,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1bfb81=>{const {width:_0x1c23b8,height:_0x1a5147}=_0x1bfb81['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d97b4,this['imageDimension']={'width':_0x1c23b8,'height':_0x1a5147},this['imageId']=_0x46fcb8;})['catch'](_0xa63d30=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0xa63d30['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x1d9a21,_0x2fed2f){return this['_getImageAsFile'](_0x1d9a21)['then'](_0x39a9b4=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x2fed2f['signal'],'file':_0x39a9b4,'onProgress':_0x35c769=>{_0x35c769&&_0x35c769['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x35c769['value']));}}))['then'](_0x344a1a=>{const {width:_0x2f48d3,height:_0x43d530}=_0x344a1a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x344a1a['cdnUrl'],this['imageDimension']={'width':_0x2f48d3,'height':_0x43d530},this['imageId']=_0x344a1a['uuid'],this['imageUploadProgress']=null;const _0x288b8d=_0x1d9a21['getAttribute']('src');this['_imageCache']['set'](_0x288b8d,{'id':_0x344a1a['uuid'],'url':_0x344a1a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1b5d58=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1b5d58['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x498012,_0x1c9e01){_0x498012['on']('apply',(_0x59030f,_0x2a6f85)=>{this['_replaceImage'](_0x1c9e01,_0x2a6f85['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x498012['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x498012['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x47eb45,_0x49d9fe,_0x21ba36){const _0x1fac67=this['_editor'],{width:_0x1da549,height:_0x3501ad}=S(_0x49d9fe,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x34c24f,imageSources:_0x2007ff}=C(_0x49d9fe,_0x1da549);_0x1fac67['model']['change'](_0x4f459c=>{if('$graveyard'===_0x47eb45['root']['rootName']){_0x1fac67['execute']('insertImage',{'imageType':_0x47eb45['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x47eb45['getAttributes']()),'uploadcareImageId':_0x21ba36,'src':_0x34c24f,'sources':_0x2007ff,'width':_0x1da549,'height':_0x3501ad}});const _0x30b743=_0x47eb45['getChildren']();_0x47eb45=_0x1fac67['model']['document']['selection']['getSelectedElement']();for(const _0x3e2fcd of _0x30b743)_0x4f459c['append'](_0x4f459c['cloneElement'](_0x3e2fcd),_0x47eb45);}else _0x4f459c['setSelection'](_0x47eb45,'on'),_0x1fac67['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x47eb45['getAttributes']()),'uploadcareImageId':_0x21ba36,'src':_0x34c24f,'sources':_0x2007ff,'width':_0x1da549,'height':_0x3501ad},_0x47eb45);_0x4f459c['setSelection'](_0x47eb45,'on');});}async['_getImageAsFile'](_0x1979a6){const _0x5f20eb=_0x48e503['window'],_0x5c9e71=_0x48e503['document']['location']['href'],_0x2e970e=new _0x5f20eb['URL'](_0x1979a6['getAttribute']('src'),_0x5c9e71);if('data:'===_0x2e970e['protocol']){const _0x1994e6=_0x2e970e['href']['split'](','),_0x3ffa5a=_0x1994e6[0x0]['match'](/:(.*?);/)[0x1],_0x2c858f=_0x3ffa5a['split']('/')[0x1],_0x63b152=_0x5f20eb['atob'](_0x1994e6[_0x1994e6['length']-0x1]);let _0x58330c=_0x63b152['length'];const _0x15982b=new _0x5f20eb['Uint8Array'](_0x58330c);for(;_0x58330c--;)_0x15982b[_0x58330c]=_0x63b152['charCodeAt'](_0x58330c);return new _0x5f20eb['File']([_0x15982b],'image.'+_0x2c858f,{'type':_0x3ffa5a});}const _0xd44cd=_0x2e970e['href']['split']('/'),_0x2e2d70=_0xd44cd[_0xd44cd['length']-0x1],_0x5d1b65=_0x2e2d70['split']('.')[0x1];return _0x5f20eb['fetch'](_0x2e970e['href'])['then'](_0xa3786a=>_0xa3786a['clone']()['blob']())['then'](_0x25f95e=>new _0x5f20eb['File']([_0x25f95e],_0x2e2d70,{'type':'image/'+_0x5d1b65}));}}class O extends _0x182881{['imageEditController'];static get['requires'](){return[_0x426cac];}['_isEditable'];constructor(_0x3a9197){super(_0x3a9197),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x79ee0f){const _0xcb92b5=G(_0x79ee0f);return _0x241dfe=>!(!_0x241dfe||!_0x241dfe['is']('element','imageBlock')&&!_0x241dfe['is']('element','imageInline'))&&(!!_0x241dfe['hasAttribute']('uploadcareImageId')||!!_0x241dfe['hasAttribute']('src')&&_0xcb92b5(_0x241dfe['getAttribute']('src')));}(_0x3a9197['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x11013a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x11013a);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0xce8d73=this['editor']['model']['document']['selection']['getSelectedElement']();_0xce8d73&&(_0xce8d73['is']('element','imageBlock')||_0xce8d73['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x426cac),_0xce8d73),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class R extends _0x182881{['refresh'](){const _0x8ec4d4=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x8ec4d4&&(_0x8ec4d4['is']('element','imageBlock')||_0x8ec4d4['is']('element','imageInline')));}['execute'](_0x5ce7ab){const _0x104f11=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x3c7deb=>{_0x3c7deb['setAttributes'](_0x5ce7ab,_0x104f11),_0x3c7deb['removeAttribute']('srcset',_0x104f11),_0x3c7deb['removeAttribute']('sizes',_0x104f11);});}}class m extends _0x1067e6{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x20f455,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5a78d4}=this;_0x5a78d4['commands']['add']('uploadcareImageEdit',new O(_0x5a78d4)),_0x5a78d4['commands']['add']('uploadcareImageReplace',new R(_0x5a78d4));}}class g extends _0x1067e6{['_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 _0x279be5=this['editor'];_0x279be5['ui']['componentFactory']['add']('uploadcareImageEdit',_0x3dec91=>{const _0x227788=_0x279be5['commands']['get']('uploadcareImageEdit'),_0x34f7e1=new _0x2b9da2(_0x3dec91),t=_0x3dec91['t'];return _0x34f7e1['set']({'icon':_0x5a71e2,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x34f7e1['bind']('isEnabled')['to'](_0x227788),_0x34f7e1['bind']('isOn')['to'](_0x227788,'isActive'),this['listenTo'](_0x34f7e1,'execute',()=>{_0x279be5['execute']('uploadcareImageEdit'),_0x279be5['editing']['view']['focus']();}),_0x34f7e1;}),this['_initConfig']();}['_initConfig'](){const _0x10aad2=_0x5425f1(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x10aad2),this['listenTo'](this['editor'],'destroy',()=>{_0x10aad2['remove']();});}}class et extends _0x1067e6{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,O as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
23
+ import{Plugin as _0x545bcb,Command as _0x2a5e38}from'@ckeditor/ckeditor5-core/dist/index.js';import{IconOneDrive as _0x45e20d,IconGooglePhotos as _0x578e7f,IconGoogleDrive as _0x53909b,IconFacebook as _0x502043,IconDropbox as _0x4a2cc1,IconUploadcareLink as _0x2b4817,IconUploadcareImageUpload as _0x9b5872,IconError as _0x18f25a,IconUploadcareImageEdit as _0x3f0c8a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{ButtonView as _0x20dfad,MenuBarMenuListItemButtonView as _0x282965,View as _0x3a3437,FocusCycler as _0x41fc20,Dialog as _0x100467,DialogViewPosition as _0x5813bf,SpinnerView as _0x3685e8,IconView as _0x4d7be3,Notification as _0x26fabf}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x4ef742,DomEmitterMixin as _0x3201e7,global as _0x3f6e57,getAncestors as _0x10c94a,ObservableMixin as _0xffbb29,uid as _0xd2867e,createElement as _0x6ccec9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x263fd5}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4f3782,info as _0x3dd099}from'@uploadcare/upload-client';import*as _0xba342b from'@uploadcare/file-uploader';var i=function(_0x158120){return _0x158120['Local']='local',_0x158120['URL']='url',_0x158120['Dropbox']='dropbox',_0x158120['GDrive']='gdrive',_0x158120['Facebook']='facebook',_0x158120['GPhotos']='gphotos',_0x158120['OneDrive']='onedrive',_0x158120;}({});function _(_0x30c770,_0x25df60,_0xe7858e){const t=_0x30c770['t'],_0x4c63b5=_0x30c770['t'];switch(_0x25df60){case i['Local']:return{'text':_0x4c63b5('Insert'===_0xe7858e?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x4c63b5('From\x20computer')};case i['URL']:return{'text':'Insert'===_0xe7858e?_0x4c63b5('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x4c63b5('Via\x20URL')};case i['Dropbox']:return{'text':t('Insert'===_0xe7858e?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case i['Facebook']:return{'text':t('Insert'===_0xe7858e?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case i['GDrive']:return{'text':t('Insert'===_0xe7858e?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case i['GPhotos']:return{'text':t('Insert'===_0xe7858e?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case i['OneDrive']:return{'text':t('Insert'===_0xe7858e?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x25df60;}}class e extends _0x545bcb{['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 _0x4226ae=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf8e9ff;for(const _0x37d6a1 in _0x4226ae){const _0x5bdc0f=_0x37d6a1,_0x158fad=_0x4226ae[_0x5bdc0f];if('uploadcareLicenseKeyValid'==_0x158fad||'uploadcareLicenseKeyInvalid'==_0x158fad||'uploadcareLicenseKeyExpired'==_0x158fad||'uploadcareLicenseKeyDomainLimit'==_0x158fad||'uploadcareLicenseKeyNotAllowed'==_0x158fad||'uploadcareLicenseKeyEvaluationLimit'==_0x158fad||'uploadcareLicenseKeyTrialLimit'==_0x158fad||'uploadcareLicenseKeyUsageLimit'==_0x158fad){delete _0x4226ae[_0x5bdc0f],_0xf8e9ff=_0x158fad,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0xf8e9ff&&_0x4226ae['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0xf8e9ff&&_0x4226ae['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0xf8e9ff&&_0x4226ae['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0xf8e9ff&&_0x4226ae['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0xf8e9ff&&_0x4226ae['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0xf8e9ff&&_0x4226ae['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0xf8e9ff&&_0x4226ae['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x57a3b2}=this,_0x5a5701=_0x57a3b2['commands']['get']('uploadcare');if(!_0x5a5701)return;const _0x3e6ff0=this['_normalizeConfigSourceList'](_0x57a3b2['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x14796a,_0x3d4625)=>{const _0x107690=this['_getIntegrationKey'](_0x3d4625['type']);return _0x14796a[_0x107690]||(_0x14796a[_0x107690]=[]),_0x14796a[_0x107690]['push'](_0x3d4625),_0x14796a;},{});_0x57a3b2['plugins']['has']('ImageInsertUI')&&_0x57a3b2['commands']['get']('uploadcare')&&Object['entries'](_0x3e6ff0)['forEach'](([_0x3100d3,_0x1cfecf])=>{_0x57a3b2['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x3100d3,'observable':()=>_0x5a5701,'buttonViewCreator':()=>this['_createToolbarButton'](_0x1cfecf),'formViewCreator':()=>this['_createDropdownButtons'](_0x1cfecf),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x1cfecf),'override':'assetManager'!==_0x3100d3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x33c04e){const {locale:_0x2807fb}=this['editor'];return _0x33c04e['map'](_0x18e9bd=>{const _0x143942=_(_0x2807fb,_0x18e9bd,'Insert');switch(_0x18e9bd){case i['Local']:return{'icon':_0x9b5872,'type':i['Local'],..._0x143942};case i['URL']:return{'icon':_0x2b4817,'type':i['URL'],..._0x143942};case i['Dropbox']:return{'icon':_0x4a2cc1,'type':i['Dropbox'],..._0x143942};case i['Facebook']:return{'icon':_0x502043,'type':i['Facebook'],..._0x143942};case i['GDrive']:return{'icon':_0x53909b,'type':i['GDrive'],..._0x143942};case i['GPhotos']:return{'icon':_0x578e7f,'type':i['GPhotos'],..._0x143942};case i['OneDrive']:return{'icon':_0x45e20d,'type':i['OneDrive'],..._0x143942};}});}['_getIntegrationKey'](_0x4749af){switch(_0x4749af){case i['Local']:return'upload';case i['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x1d1652,_0x3bb303){const _0x34fec1=this['editor'],_0x4abda0=new _0x1d1652(_0x34fec1['locale']),_0x339a67=_0x34fec1['commands']['get']('uploadcare');return _0x4abda0['bind']('isEnabled')['to'](_0x339a67),_0x4abda0['on']('execute',()=>{_0x339a67['execute'](_0x3bb303);}),_0x4abda0;}['_createToolbarButton'](_0x10b82d){const {locale:_0x3b35b6}=this['editor'],_0x5c498f=this['editor']['plugins']['get']('ImageInsertUI'),_0x5ca80e=_0x10b82d[0x0],_0x9c8cc3=this['_createButton'](_0x20dfad,_0x5ca80e['type']);return _0x9c8cc3['icon']=_0x5ca80e['icon'],_0x9c8cc3['bind']('label')['to'](_0x5c498f,'isImageSelected',_0x135cb1=>_(_0x3b35b6,_0x5ca80e['type'],_0x135cb1?'Replace':'Insert')['text']),_0x9c8cc3['tooltip']=!0x0,_0x9c8cc3;}['_createDropdownButtons'](_0x256363){const {locale:_0x11aa2a}=this['editor'],_0x13d409=this['editor']['plugins']['get']('ImageInsertUI');return _0x256363['map'](_0x427510=>{const _0x380c00=this['_createButton'](_0x20dfad,_0x427510['type']);return _0x380c00['withText']=!0x0,_0x380c00['icon']=_0x427510['icon'],_0x380c00['bind']('label')['to'](_0x13d409,'isImageSelected',_0x554991=>_(_0x11aa2a,_0x427510['type'],_0x554991?'Replace':'Insert')['text']),_0x380c00;});}['_createMenuBarButtons'](_0x14bff7){return _0x14bff7['map'](_0x289430=>{const _0x5af562=this['_createButton'](_0x282965,_0x289430['type']);return _0x5af562['icon']=_0x289430['icon'],_0x5af562['label']=_0x289430['shortText'],_0x5af562;});}}class V extends _0x3a3437{['focusTracker'];['focusCycler'];constructor(_0x2e060e){super(_0x2e060e),this['focusTracker']=new _0x4ef742(),this['focusCycler']=new _0x41fc20({'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 V{constructor(_0x528a09,_0x4a8145){super(_0x528a09),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-'+_0x4a8145}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x2a2783,_0x1ad15a){const _0x59e3dc=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x25b822=>_0x25b822<=_0x1ad15a)['map'](_0x24fede=>_0x2a2783['replace'](/\/$/,'')+'/-/resize/'+_0x24fede+'x/\x20'+_0x24fede+'w');return{'imageFallbackUrl':_0x2a2783,'imageSources':[{'srcset':_0x59e3dc['join'](',\x20'),'sizes':'(max-width:\x20'+_0x1ad15a+'px)\x20100vw,\x20'+_0x1ad15a+'px','type':'image/webp'}]};}function F(_0x237cb9,_0x38a696,_0x2b0929){const _0x4212d4=_0x237cb9['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x4212d4?parseInt(_0x4212d4[0x1],0xa):_0x38a696,'height':_0x4212d4?parseInt(_0x4212d4[0x2],0xa):_0x2b0929};}function p(_0x53b3fd,_0x10f880){const _0x43ba72=new(_0x3201e7())(),_0x4bcc7a=_0x53b3fd['plugins']['get']('ImageUtils'),_0x48f36e=_0x53b3fd['editing']['mapper']['toViewElement'](_0x10f880),_0xaa395d=_0x4bcc7a['findViewImgElement'](_0x48f36e),_0x2e1990=_0x53b3fd['editing']['view']['domConverter']['viewToDom'](_0xaa395d),_0x299754=_0x10f880['getAttribute']('width'),_0x429859=_0x10f880['getAttribute']('height'),_0x20754c='image-processing';_0x53b3fd['editing']['view']['change'](_0x3b1b2b=>{_0x3b1b2b['addClass'](_0x20754c,_0x48f36e),_0x3b1b2b['setStyle']('aspect-ratio',_0x299754+'/'+_0x429859,_0xaa395d);}),_0x43ba72['listenTo'](_0x2e1990,'load',()=>{_0x43ba72['stopListening'](_0x2e1990,'load'),_0x53b3fd['editing']['view']['change'](_0xcbbe9=>{_0xcbbe9['removeClass'](_0x20754c,_0x48f36e),_0xcbbe9['removeStyle']('aspect-ratio',_0xaa395d);});});}function R(_0x117786){if(Array['isArray'](_0x117786)){const _0x513d84=_0x117786['map'](R);return _0x29b1f6=>_0x513d84['some'](_0x145736=>_0x145736(_0x29b1f6));}if('origin'==_0x117786){const _0x210c3f=_0x3f6e57['window']['location']['origin'];return _0x491d1c=>new URL(_0x491d1c,_0x3f6e57['document']['baseURI'])['origin']==_0x210c3f;}return'function'==typeof _0x117786?_0x117786:_0x117786 instanceof RegExp?_0x8e8d90=>!(!_0x8e8d90['match'](_0x117786)&&!_0x8e8d90['replace'](/^https?:\/\//,'')['match'](_0x117786)):()=>!0x1;}function M(_0x54617e,_0x490aae){return _0x10c94a(_0x54617e['target'])['includes'](_0x490aae);}class n extends/* #__PURE__ -- @preserve */
24
+ _0xffbb29(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x4a60c5,_0x4ea7f2,_0x3c444f){super(),this['_editor']=_0x4a60c5,this['_editing']=_0x4ea7f2,this['_dialog']=_0x4a60c5['plugins']['get'](_0x100467),this['_api']=_0x4ea7f2['ctxElement']['getAPI'](),this['_type']=_0x3c444f,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:_0x4ec1b2,model:_0x23032e}=this['_editor'],_0x448a80=_0x23032e['document']['selection']['getSelectedElement'](),_0x2c7780=_0x448a80&&(_0x448a80['is']('element','imageBlock')||_0x448a80['is']('element','imageInline'));this['_formView']=new S(_0x4ec1b2,this['_editing']['ucContextId']),this['_dialog']['show']({'id':'uploadCare','icon':_0x9b5872,'title':_(_0x4ec1b2,this['_type'],_0x2c7780?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x5813bf['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x291d4d=>!M(_0x291d4d,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xb6e463}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x5347af=>{const _0x54b5e7=_0xb6e463['length'];for(const _0x12f273 of _0xb6e463){const _0x3155b5=_0x12f273===_0xb6e463[_0x54b5e7-0x1],{cdnUrl:_0x46eed4,fileInfo:_0x570e6a}=_0x12f273;if(!_0x46eed4||!_0x570e6a)continue;const {width:_0x33573d,height:_0xcadeda}=_0x570e6a['imageInfo'],_0x24ddb9=F(_0x46eed4,_0x33573d,_0xcadeda),_0x4495a5=C(_0x46eed4,_0x24ddb9['width']),_0x32cda2={'id':_0x570e6a['uuid'],'type':'image','attributes':{'imageDimension':_0x24ddb9,..._0x4495a5}};this['_insertAsset'](_0x32cda2,_0x3155b5,_0x5347af);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x5de6ed=>{'idle'===_0x5de6ed['detail']['status']&&!_0x5de6ed['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===i['Local']?this['_api']['setCurrentActivity'](i['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x2f3608,_0x5ea994,_0x28570f){const _0x39e8e1=this['_editor']['model']['document']['selection'],_0x1e4622=_0x39e8e1['getSelectedElement'](),_0x952613=!(!_0x1e4622||!_0x1e4622['is']('element','imageInline'));_0x28570f['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x2f3608,_0x952613),_0x5ea994||_0x28570f['setSelection'](_0x39e8e1['getLastPosition']());}['_insertImage'](_0x2c10d9,_0x50d969){const _0x27ffee=this['_editor'],{imageDimension:_0x120ed2,imageFallbackUrl:_0x31b1e9,imageSources:_0x14764b}=_0x2c10d9['attributes'];_0x27ffee['execute']('insertImage',{'imageType':_0x50d969?'imageInline':null,'source':{'uploadcareImageId':_0x2c10d9['id'],'src':_0x31b1e9,'sources':_0x14764b,..._0x120ed2}});}}class w extends _0x2a5e38{['_editing'];['_controller']=null;static get['requires'](){return[_0x100467,o];}constructor(_0x42d27a){super(_0x42d27a),this['_editing']=_0x42d27a['plugins']['get'](o);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x16b9a3){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new n(this['editor'],this['_editing'],_0x16b9a3);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class j{static['upload']({file:_0x296a7d,..._0x225d83}){return _0x4f3782(_0x296a7d,_0x225d83);}static['getInfo'](_0x1030d5,_0x57d392){return _0x3dd099(_0x1030d5,_0x57d392);}}class f extends _0x545bcb{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x263fd5,o];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5f507c=this['editor'];if(!!!_0x5f507c['config']['get']('uploadcare'))return;_0x5f507c['plugins']['get'](_0x263fd5)['createUploadAdapter']=_0x3b23f1=>new k(_0x3b23f1,_0x5f507c),_0x5f507c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x30d4d1,{imageElement:_0x3b9f7d,data:_0x288115})=>{_0x5f507c['model']['change'](_0x1d610f=>{_0x1d610f['setAttribute']('uploadcareImageId',_0x288115['uploadcareImageId'],_0x3b9f7d);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x2b5907,_0x33efdc){this['loader']=_0x2b5907,this['editor']=_0x33efdc,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0xa60fad=await this['loader']['file'];return j['upload']({'file':_0xa60fad,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x550e1d=>{_0x550e1d&&_0x550e1d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x550e1d['value']);}})['then'](async _0x1b7a79=>{const {imageFallbackUrl:_0x1fb088,imageSources:_0x28af72}=C(_0x1b7a79['cdnUrl'],_0x1b7a79['imageInfo']['width']);return{'uploadcareImageId':_0x1b7a79['uuid'],'default':_0x1fb088,'sources':_0x28af72};})['catch'](()=>{const _0x2f7c65=t('Cannot\x20upload\x20file:')+('\x20'+_0xa60fad['name']+'.');return Promise['reject'](_0x2f7c65);});}['abort'](){this['controller']['abort']();}}class o extends _0x545bcb{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x100467];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['ucContextId'];get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}constructor(_0x1804bc){super(_0x1804bc),this['ucContextId']=_0xd2867e();}['init'](){const _0x27d869=this['editor'];_0x27d869['commands']['add']('uploadcare',new w(_0x27d869));}['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 _0x16a36c=_0x3f6e57['document']['querySelector']('input[uploadcare-file-input]');_0x16a36c&&_0x16a36c['remove']();}),async function(_0x28a9c3){const _0x55f34c=_0x559703([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x2b2506=0x3d8d0df,_0xfbde57=0x3dfa42f^_0x2b2506,_0x27834a=window[_0x559703([0x44,0x61,0x74,0x65])][_0x559703([0x6e,0x6f,0x77])](),_0x17aeee=_0x28a9c3[_0x559703([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa2cac9=new window[(_0x559703([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x708098=>{_0x17aeee[_0x559703([0x6f,0x6e,0x63,0x65])](_0x559703([0x72,0x65,0x61,0x64,0x79]),_0x708098);}),_0x25f807={[_0x559703([0x6b,0x74,0x79])]:_0x559703([0x45,0x43]),[_0x559703([0x75,0x73,0x65])]:_0x559703([0x73,0x69,0x67]),[_0x559703([0x63,0x72,0x76])]:_0x559703([0x50,0x2d,0x32,0x35,0x36]),[_0x559703([0x78])]:_0x559703([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]),[_0x559703([0x79])]:_0x559703([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]),[_0x559703([0x61,0x6c,0x67])]:_0x559703([0x45,0x53,0x32,0x35,0x36])},_0x4235a2=_0x17aeee[_0x559703([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x559703([0x67,0x65,0x74])](_0x559703([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x331330(){let _0x247a61,_0x631399=null,_0x214bbe=null;try{if(_0x4235a2==_0x559703([0x47,0x50,0x4c]))return _0x559703([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x247a61=_0x297a50(),!_0x247a61)return _0x559703([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x247a61[_0x559703([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x214bbe=_0x2297a3(_0x247a61[_0x559703([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x247a61[_0x559703([0x6a,0x74,0x69])])),await _0x3b5835()?_0x278d06()?_0x4b8f30()?_0x559703([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4ad773()?(_0x247a61[_0x559703([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x559703([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x631399=_0x4d61ca(_0x559703([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x247a61[_0x559703([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x559703([0x74,0x72,0x69,0x61,0x6c])&&(_0x631399=_0x4d61ca(_0x559703([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4d13dc()):_0x559703([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x559703([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x559703([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x559703([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b8f30(){const _0x26aff1=[_0x559703([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x559703([0x74,0x72,0x69,0x61,0x6c])][_0x559703([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x247a61[_0x559703([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x27834a/0x3e8:0xe10*_0xfbde57;return _0x247a61[_0x559703([0x65,0x78,0x70])]<_0x26aff1;}function _0x278d06(){const _0x591bfd=_0x247a61[_0x559703([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x591bfd&&(!!_0x591bfd[_0x559703([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x559703([0x2a]))||!!_0x591bfd[_0x559703([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x559703([0x55,0x50,0x4c,0x43])));}function _0x4ad773(){const _0x5d191c=_0x247a61[_0x559703([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d191c||0x0==_0x5d191c[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x420aa3}=new URL(window[_0x559703([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d191c[_0x559703([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x420aa3))return!0x0;const _0x106393=_0x420aa3[_0x559703([0x73,0x70,0x6c,0x69,0x74])](_0x559703([0x2e]));return _0x5d191c[_0x559703([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3a0824=>_0x3a0824[_0x559703([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x559703([0x2a])))[_0x559703([0x6d,0x61,0x70])](_0x52ca05=>_0x52ca05[_0x559703([0x73,0x70,0x6c,0x69,0x74])](_0x559703([0x2e])))[_0x559703([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x231e72=>_0x231e72[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x106393[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x559703([0x6d,0x61,0x70])](_0x130194=>Array(_0x106393[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x130194[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x559703([0x66,0x69,0x6c,0x6c])](_0x130194[0x0]===_0x559703([0x2a])?_0x559703([0x2a]):'')[_0x559703([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x130194))[_0x559703([0x73,0x6f,0x6d,0x65])](_0xbe6133=>_0x106393[_0x559703([0x65,0x76,0x65,0x72,0x79])]((_0x3c6d8b,_0x4c892d)=>_0xbe6133[_0x4c892d]===_0x3c6d8b||_0xbe6133[_0x4c892d]===_0x559703([0x2a])));}function _0x4d13dc(){return _0x631399&&_0x214bbe?new window[(_0x559703([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d2c07,_0x2cdadf)=>{_0x631399[_0x559703([0x74,0x68,0x65,0x6e])](_0x2d2c07,_0x2cdadf),_0x214bbe[_0x559703([0x74,0x68,0x65,0x6e])](_0x478c62=>{_0x478c62!=_0x559703([0x56,0x61,0x6c,0x69,0x64])&&_0x2d2c07(_0x478c62);},_0x2cdadf);}):_0x631399||_0x214bbe||_0x559703([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2297a3(_0x5f1d1c,_0x5beacc){return new window[(_0x559703([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54ee3d=>{if(_0x3ac1d3())return _0x54ee3d(_0x559703([0x56,0x61,0x6c,0x69,0x64]));_0x178646(),_0x17aeee[_0x559703([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x559703([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x490ff3=!0x1;const _0x475315=_0xd2867e();function _0xfde5a0(_0x4ca43f){return!!_0x4ca43f&&(typeof _0x4ca43f===_0x559703([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ca43f===_0x559703([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ca43f[_0x559703([0x74,0x68,0x65,0x6e])]===_0x559703([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ca43f[_0x559703([0x63,0x61,0x74,0x63,0x68])]===_0x559703([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c96b2(_0x5df11d){_0x105ad1(_0x5df11d)[_0x559703([0x74,0x68,0x65,0x6e])](_0x2e3d25=>{if(!_0x2e3d25||_0x2e3d25[_0x559703([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x559703([0x6f,0x6b]))return _0x559703([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x25997d(_0x215410(_0x475315+_0x5beacc))!=_0x2e3d25[_0x559703([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x559703([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x559703([0x56,0x61,0x6c,0x69,0x64]);})[_0x559703([0x74,0x68,0x65,0x6e])](_0x55b27a=>(_0x45fff4(),_0x55b27a),()=>{const _0x35c95e=_0x41e78f();return null==_0x35c95e?(_0x45fff4(),_0x559703([0x56,0x61,0x6c,0x69,0x64])):_0x559703(_0x27834a-_0x35c95e>(0x27d454df^_0x2b2506)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x559703([0x74,0x68,0x65,0x6e])](_0x54ee3d)[_0x559703([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54ee3d(_0x559703([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f511f=0x3ee3e5f^_0x2b2506;function _0x45fff4(){const _0x42df5f=_0x559703([0x6c,0x6c,0x63,0x74,0x2d])+_0x25997d(_0x215410(_0x5f1d1c)),_0x57653d=_0x4d6fe1(_0x25997d(window[_0x559703([0x4d,0x61,0x74,0x68])][_0x559703([0x63,0x65,0x69,0x6c])](_0x27834a/_0x2f511f)));window[_0x559703([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x559703([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42df5f,_0x57653d);}function _0x41e78f(){const _0x12add3=_0x559703([0x6c,0x6c,0x63,0x74,0x2d])+_0x25997d(_0x215410(_0x5f1d1c)),_0x39a5f5=window[_0x559703([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x559703([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x12add3);return _0x39a5f5?window[_0x559703([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d6fe1(_0x39a5f5),0x10)*_0x2f511f:null;}function _0x105ad1(_0x11410d){return new window[(_0x559703([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xbb8e44,_0x1429b9)=>{_0x11410d[_0x559703([0x74,0x68,0x65,0x6e])](_0xbb8e44,_0x1429b9),window[_0x559703([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1429b9,0x3d9041f^_0x2b2506);});}}_0x17aeee[_0x559703([0x6f,0x6e])](_0x559703([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x95c941,_0x12db0c)=>{if(_0x12db0c[0x0]!=_0x5f1d1c)return _0x54ee3d(_0x559703([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12db0c[0x1]={..._0x12db0c[0x1],[_0x559703([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x475315};},{[_0x559703([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x559703([0x68,0x69,0x67,0x68])}),_0x17aeee[_0x559703([0x6f,0x6e])](_0x559703([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55fe16=>{_0xfde5a0(_0x55fe16[_0x559703([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x490ff3=!0x0,_0x1c96b2(_0x55fe16[_0x559703([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x559703([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x559703([0x6c,0x6f,0x77])}),_0xa2cac9[_0x559703([0x74,0x68,0x65,0x6e])](()=>{_0x490ff3||_0x54ee3d(_0x559703([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3ac1d3(){return _0x17aeee[_0x559703([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x559703([0x76,0x69,0x65,0x77])][_0x559703([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x559703([0x61,0x75,0x74,0x6f]);}function _0x178646(){_0x17aeee[_0x559703([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x559703([0x76,0x69,0x65,0x77])][_0x559703([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x559703([0x61,0x75,0x74,0x6f]);}}function _0x4d61ca(_0x439d16){const _0x18b877=[new window[(_0x559703([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c413a=>setTimeout(_0x2c413a,0x3d1ee13^_0x2b2506)),_0xa2cac9[_0x559703([0x74,0x68,0x65,0x6e])](()=>new window[(_0x559703([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f3594=>{let _0x14d918=0x0;_0x17aeee[_0x559703([0x6d,0x6f,0x64,0x65,0x6c])][_0x559703([0x6f,0x6e])](_0x559703([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4e7172,_0x5b448c)=>{_0x5b448c[0x0][_0x559703([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14d918++,_0x14d918==(0x3d8d127^_0x2b2506)&&(_0x2f3594(),_0x4e7172[_0x559703([0x6f,0x66,0x66])]());});}))];return window[_0x559703([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x559703([0x72,0x61,0x63,0x65])](_0x18b877)[_0x559703([0x74,0x68,0x65,0x6e])](()=>_0x439d16);}async function _0x1cb96c(){await _0xa2cac9,_0x17aeee[_0x559703([0x6d,0x6f,0x64,0x65,0x6c])][_0x559703([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x54053f,_0x17aeee[_0x559703([0x6d,0x6f,0x64,0x65,0x6c])][_0x559703([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x54053f,_0x17aeee[_0x559703([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x559703([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25bf40(_0x7b38da){const _0x2010f2=_0x4d6d0a();_0x17aeee[_0x2010f2]=_0x559703([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x7b38da,_0x7b38da!=_0x559703([0x56,0x61,0x6c,0x69,0x64])&&_0x1cb96c();}function _0x4d6d0a(){const _0xf6ca3b=window[_0x559703([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x559703([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x559703([0x6e,0x6f,0x77])]())[_0x559703([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x559703([0x2e]),'');let _0x2c0fb6=_0x559703([0x52]);for(let _0x183386=0x0;_0x183386<_0xf6ca3b[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x183386+=0x2){let _0x3d2fd0=window[_0x559703([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf6ca3b[_0x559703([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x183386,_0x183386+0x2));_0x3d2fd0>=_0x55f34c[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3d2fd0-=_0x55f34c[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c0fb6+=_0x55f34c[_0x3d2fd0];}return _0x2c0fb6;}function _0x297a50(){const _0xc31b2a=_0x4235a2[_0x559703([0x73,0x70,0x6c,0x69,0x74])](_0x559703([0x2e]));if(0x3!=_0xc31b2a[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x454381(_0xc31b2a[0x1]);function _0x454381(_0x3e9247){const _0x13c3a5=_0x56bc38(_0x3e9247);return _0x13c3a5&&_0x2b1720()?_0x13c3a5:null;function _0x2b1720(){const _0x26c637=_0x13c3a5[_0x559703([0x6a,0x74,0x69])],_0x22eac=window[_0x559703([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26c637[_0x559703([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x26c637[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4466f1={..._0x13c3a5,[_0x559703([0x6a,0x74,0x69])]:_0x26c637[_0x559703([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x26c637[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4466f1[_0x559703([0x76,0x63])],_0x215410(_0x4466f1)==_0x22eac;}}}async function _0x3b5835(){let _0x3202b1=!0x0;try{const _0x3c9c7e=_0x4235a2[_0x559703([0x73,0x70,0x6c,0x69,0x74])](_0x559703([0x2e])),[_0x5df179,_0x5320dd,_0x53c42b]=_0x3c9c7e;return _0x2a276d(_0x5df179),await _0x36bae5(_0x5df179,_0x5320dd,_0x53c42b),_0x3202b1;}catch{return!0x1;}function _0x2a276d(_0xb955cf){const _0x4e83c2=_0x56bc38(_0xb955cf);_0x4e83c2&&_0x4e83c2[_0x559703([0x61,0x6c,0x67])]==_0x559703([0x45,0x53,0x32,0x35,0x36])||(_0x3202b1=!0x1);}async function _0x36bae5(_0x490f23,_0x57b3ea,_0x2f893f){const _0x1bd5bf=window[_0x559703([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x559703([0x66,0x72,0x6f,0x6d])](_0x78647(_0x2f893f),_0x2f3950=>_0x2f3950[_0x559703([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe9faba=new window[(_0x559703([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x559703([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x490f23+_0x559703([0x2e])+_0x57b3ea),_0x13832d=window[_0x559703([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x559703([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13832d)return;const _0x4244d5=await _0x13832d[_0x559703([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x559703([0x6a,0x77,0x6b]),_0x25f807,{[_0x559703([0x6e,0x61,0x6d,0x65])]:_0x559703([0x45,0x43,0x44,0x53,0x41]),[_0x559703([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x559703([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x559703([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13832d[_0x559703([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x559703([0x6e,0x61,0x6d,0x65])]:_0x559703([0x45,0x43,0x44,0x53,0x41]),[_0x559703([0x68,0x61,0x73,0x68])]:{[_0x559703([0x6e,0x61,0x6d,0x65])]:_0x559703([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4244d5,_0x1bd5bf,_0xe9faba)||(_0x3202b1=!0x1);}}function _0x56bc38(_0x591846){return _0x591846[_0x559703([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x559703([0x65,0x79]))?JSON[_0x559703([0x70,0x61,0x72,0x73,0x65])](_0x78647(_0x591846)):null;}function _0x78647(_0x291eab){return window[_0x559703([0x61,0x74,0x6f,0x62])](_0x291eab[_0x559703([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x559703([0x2b]))[_0x559703([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x559703([0x2f])));}function _0x215410(_0x4d9587){let _0x165d44=0x1505;function _0x632748(_0x59ffb4){for(let _0x145756=0x0;_0x145756<_0x59ffb4[_0x559703([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x145756++){const _0x3241f7=_0x59ffb4[_0x559703([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x145756);_0x165d44=(_0x165d44<<0x5)+_0x165d44+_0x3241f7,_0x165d44&=_0x165d44;}}function _0x8afed4(_0x30bce4){Array[_0x559703([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x30bce4)?_0x30bce4[_0x559703([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x8afed4):_0x30bce4&&typeof _0x30bce4==_0x559703([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x559703([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x30bce4)[_0x559703([0x73,0x6f,0x72,0x74])]()[_0x559703([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x457dbc,_0x35e1d0])=>{_0x632748(_0x457dbc),_0x8afed4(_0x35e1d0);}):_0x632748(window[_0x559703([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x30bce4));}return _0x8afed4(_0x4d9587),_0x165d44>>>0x0;}function _0x25997d(_0x53f8ff){return _0x53f8ff[_0x559703([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x559703([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x559703([0x30]));}function _0x4d6fe1(_0x13ed99){return _0x13ed99[_0x559703([0x73,0x70,0x6c,0x69,0x74])]('')[_0x559703([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x559703([0x6a,0x6f,0x69,0x6e])]('');}function _0x54053f(){}function _0x559703(_0x2ad8fc){return _0x2ad8fc['map'](_0x4c0cf1=>String['fromCharCode'](_0x4c0cf1))['join']('');}_0x25bf40(await _0x331330());}(this);}['_initSchema'](){const _0x4d783c=this['editor']['model']['schema'];_0x4d783c['isRegistered']('imageBlock')&&_0x4d783c['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x4d783c['isRegistered']('imageInline')&&_0x4d783c['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x3a7e49=this['editor'];_0x3a7e49['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x3a7e49['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0xad69c9=>_0xad69c9['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x3c7482=_0x3a7e49['commands']['get']('replaceImageSource');_0x3c7482&&this['listenTo'](_0x3c7482,'cleanupImage',(_0x3dffb0,[_0x568910,_0x12cc10])=>{_0x568910['removeAttribute']('uploadcareImageId',_0x12cc10);});}['_initConfig'](){const _0xb557f6=this['editor']['config']['get']('uploadcare.uploader')||{},_0x148a26=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x6ccec9(_0x3f6e57['document'],'uc-config',{..._0xb557f6,'pubkey':_0x148a26,'ctx-name':'uploader-'+this['ucContextId'],'sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x139c0f=>{if('closeMax'==_0x139c0f)return'#uc-icon-arrow-down';},_0x3f6e57['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x6ccec9(_0x3f6e57['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader-'+this['ucContextId']}),_0x3f6e57['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1ae141=this['editor']['commands']['get']('insertImage');_0x1ae141&&this['listenTo'](_0x1ae141,'execute',()=>{const _0x3fba2a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3fba2a&&_0x3fba2a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x3fba2a);});});const _0x4c3860=this['editor']['commands']['get']('uploadcareImageReplace');_0x4c3860&&this['listenTo'](_0x4c3860,'execute',()=>{const _0x19c654=this['editor']['model']['document']['selection']['getSelectedElement']();_0x19c654&&_0x19c654['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x19c654);});});}}class tt extends _0x545bcb{static get['requires'](){return[o,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x471b52){super(_0x471b52),_0x471b52['config']['define']('uploadcare.uploader.sourceList',[i['Local'],i['URL']]),_0xba342b['defineComponents'](_0xba342b);}}class ii extends _0x3a3437{constructor(_0x1ed090){super(_0x1ed090);const t=_0x1ed090['t'],_0x3980d4=this['bindTemplate'],_0x1fbbb0=new _0x3685e8();_0x1fbbb0['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':[_0x1fbbb0,{'text':_0x3980d4['to']('imageUploadProgress',_0x53e4a4=>t('Loading\x20image...')+'\x20('+(_0x53e4a4||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ti extends _0x3a3437{constructor(_0x4c5c11){super(_0x4c5c11);const t=_0x4c5c11['t'];this['set']('errorType',null);const _0x43614c=new _0x20dfad(_0x4c5c11);_0x43614c['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x43614c['withText']=!0x0,_0x43614c['class']='ck-button-action',_0x43614c['on']('execute',()=>{this['fire']('retry');}),_0x43614c['bind']('isVisible')['to'](this,'errorType',_0x4b3d04=>'NotFound'!==_0x4b3d04);const _0x10a0bd=new _0x4d7be3();_0x10a0bd['content']=_0x18f25a,_0x10a0bd['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x3d0d6b=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':[_0x10a0bd,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x3d0d6b['to']('errorType',_0x4ae8f1=>t('NotFound'!==_0x4ae8f1?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x43614c]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class ei extends _0x3a3437{constructor(_0x25ee2e,_0x4dfc64){super(_0x25ee2e);const _0x34005e=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x4dfc64,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x34005e['to']('imageSrc')}});}}class X extends V{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x3ca3f9,_0x4988e2,_0x4c303b){super(_0x3ca3f9),this['_items']=this['createCollection'](),this['_loadingView']=new ii(_0x3ca3f9),this['_errorView']=new ti(_0x3ca3f9),this['_editingView']=new ei(_0x3ca3f9,_0x4c303b),this['_focusableView']=new _0x3a3437(_0x3ca3f9),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4988e2),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'],_0x534eb0=>{this['_addUploadcareImageEditorListeners'](_0x534eb0);});}),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'](_0x387a1d,_0x5e4b5f){const _0x4d2fd9='uc-cloud-image-editor',_0x3d264e=_0x387a1d['querySelector'](_0x4d2fd9);if(_0x3d264e)return _0x5e4b5f(_0x3d264e);const _0xd42fd4=new MutationObserver(_0x552c91=>{const _0xb2dfee=_0x552c91['filter'](_0xc79026=>_0xc79026['target']===_0x387a1d&&_0xc79026['addedNodes']['length']>0x0&&_0xc79026['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x4d2fd9);_0xb2dfee['length']&&(_0xd42fd4['disconnect'](),_0x5e4b5f(_0xb2dfee[0x0]['addedNodes'][0x0]));});_0xd42fd4['observe'](_0x387a1d,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5ed0d3){_0x5ed0d3['addEventListener']('apply',_0x45e77d=>{this['fire']('apply',{'imageSrc':_0x45e77d['detail']['cdnUrl']});}),_0x5ed0d3['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}class E extends/* #__PURE__ -- @preserve */
25
+ _0xffbb29(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3521ec,_0x41d31c,_0x16456d){super(),this['_editor']=_0x3521ec,this['_dialog']=_0x41d31c,this['_imageElement']=_0x16456d,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 _0x29e76d=this['_imageElement'],_0x375068=_0x29e76d['getAttribute']('uploadcareImageId'),_0x198846=_0x29e76d['getAttribute']('src');if(_0x375068)await this['_loadImageInfo'](_0x375068,_0x198846);else{if(this['_imageCache']['has'](_0x198846)){const _0x1782ed=this['_imageCache']['get'](_0x198846);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x1782ed['url'],this['imageDimension']=_0x1782ed['dimension'],this['imageId']=_0x1782ed['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x5685fb}=this['_editor'],t=_0x5685fb['t'],_0x45008b=new X(_0x5685fb,this['imageStatus'],this['_attributes']);_0x45008b['bind']('status')['to'](this,'imageStatus'),_0x45008b['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x45008b['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x45008b['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x45008b,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3f0c8a,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x45008b,'position':_0x5813bf['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x45008b['focus']();},'onHide':()=>{_0x45008b['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x187dc6=>!M(_0x187dc6,_0x45008b['element'])}});}['_loadImageInfo'](_0xa5341a,_0x2ad603){return j['getInfo'](_0xa5341a,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x351c04=>{const {width:_0x22ede5,height:_0x2fb0b8}=_0x351c04['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2ad603,this['imageDimension']={'width':_0x22ede5,'height':_0x2fb0b8},this['imageId']=_0xa5341a;})['catch'](_0x1c153b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1c153b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x13a633,_0x139516){return this['_getImageAsFile'](_0x13a633)['then'](_0x38fee5=>j['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x139516['signal'],'file':_0x38fee5,'onProgress':_0x4ca0f8=>{_0x4ca0f8&&_0x4ca0f8['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x4ca0f8['value']));}}))['then'](_0x5c7999=>{const {width:_0x7dfd13,height:_0x1551b9}=_0x5c7999['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5c7999['cdnUrl'],this['imageDimension']={'width':_0x7dfd13,'height':_0x1551b9},this['imageId']=_0x5c7999['uuid'],this['imageUploadProgress']=null;const _0xf6a8e3=_0x13a633['getAttribute']('src');this['_imageCache']['set'](_0xf6a8e3,{'id':_0x5c7999['uuid'],'url':_0x5c7999['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x416536=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x416536['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x26b6d3,_0x4d6e69){_0x26b6d3['on']('apply',(_0xecb03c,_0x42c511)=>{this['_replaceImage'](_0x4d6e69,_0x42c511['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x26b6d3['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x26b6d3['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2e5a94,_0x184f59,_0x344a4b){const _0x1607c5=this['_editor'],{width:_0xe05c6a,height:_0x4144b3}=F(_0x184f59,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x34123f,imageSources:_0x11efec}=C(_0x184f59,_0xe05c6a);_0x1607c5['model']['change'](_0x5d74ff=>{if('$graveyard'===_0x2e5a94['root']['rootName']){_0x1607c5['execute']('insertImage',{'imageType':_0x2e5a94['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2e5a94['getAttributes']()),'uploadcareImageId':_0x344a4b,'src':_0x34123f,'sources':_0x11efec,'width':_0xe05c6a,'height':_0x4144b3}});const _0xffb5c5=_0x2e5a94['getChildren']();_0x2e5a94=_0x1607c5['model']['document']['selection']['getSelectedElement']();for(const _0x51decb of _0xffb5c5)_0x5d74ff['append'](_0x5d74ff['cloneElement'](_0x51decb),_0x2e5a94);}else _0x5d74ff['setSelection'](_0x2e5a94,'on'),_0x1607c5['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2e5a94['getAttributes']()),'uploadcareImageId':_0x344a4b,'src':_0x34123f,'sources':_0x11efec,'width':_0xe05c6a,'height':_0x4144b3},_0x2e5a94);_0x5d74ff['setSelection'](_0x2e5a94,'on');});}async['_getImageAsFile'](_0x500c83){const _0x5d7f35=_0x3f6e57['window'],_0x5493f1=_0x3f6e57['document']['location']['href'],_0x4eb020=new _0x5d7f35['URL'](_0x500c83['getAttribute']('src'),_0x5493f1);if('data:'===_0x4eb020['protocol']){const _0x392fc2=_0x4eb020['href']['split'](','),_0x25771f=_0x392fc2[0x0]['match'](/:(.*?);/)[0x1],_0x4bfffe=_0x25771f['split']('/')[0x1],_0x22ef8d=_0x5d7f35['atob'](_0x392fc2[_0x392fc2['length']-0x1]);let _0x85fa1f=_0x22ef8d['length'];const _0x42fd1b=new _0x5d7f35['Uint8Array'](_0x85fa1f);for(;_0x85fa1f--;)_0x42fd1b[_0x85fa1f]=_0x22ef8d['charCodeAt'](_0x85fa1f);return new _0x5d7f35['File']([_0x42fd1b],'image.'+_0x4bfffe,{'type':_0x25771f});}const _0x82dcf4=_0x4eb020['href']['split']('/'),_0x376ce5=_0x82dcf4[_0x82dcf4['length']-0x1],_0x45e828=_0x376ce5['split']('.')[0x1];return _0x5d7f35['fetch'](_0x4eb020['href'])['then'](_0x51e7ad=>_0x51e7ad['clone']()['blob']())['then'](_0x2b3ac0=>new _0x5d7f35['File']([_0x2b3ac0],_0x376ce5,{'type':'image/'+_0x45e828}));}}class N extends _0x2a5e38{['imageEditController'];static get['requires'](){return[_0x100467];}['_isEditable'];constructor(_0x3b9984){super(_0x3b9984),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x443a17){const _0x3738ba=R(_0x443a17);return _0xbba707=>!(!_0xbba707||!_0xbba707['is']('element','imageBlock')&&!_0xbba707['is']('element','imageInline'))&&(!!_0xbba707['hasAttribute']('uploadcareImageId')||!!_0xbba707['hasAttribute']('src')&&_0x3738ba(_0xbba707['getAttribute']('src')));}(_0x3b9984['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x5c2e46=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x5c2e46);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x3c8749=this['editor']['model']['document']['selection']['getSelectedElement']();_0x3c8749&&(_0x3c8749['is']('element','imageBlock')||_0x3c8749['is']('element','imageInline'))&&(this['imageEditController']=new E(this['editor'],this['editor']['plugins']['get'](_0x100467),_0x3c8749),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x2a5e38{['refresh'](){const _0x214b5a=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x214b5a&&(_0x214b5a['is']('element','imageBlock')||_0x214b5a['is']('element','imageInline')));}['execute'](_0x1f49a5){const _0x4d111c=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x1bd918=>{_0x1bd918['setAttributes'](_0x1f49a5,_0x4d111c),_0x1bd918['removeAttribute']('srcset',_0x4d111c),_0x1bd918['removeAttribute']('sizes',_0x4d111c);});}}class m extends _0x545bcb{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[o,_0x26fabf,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xf0d932}=this;_0xf0d932['commands']['add']('uploadcareImageEdit',new N(_0xf0d932)),_0xf0d932['commands']['add']('uploadcareImageReplace',new O(_0xf0d932));}}class g extends _0x545bcb{['_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 _0x13637c=this['editor'];_0x13637c['ui']['componentFactory']['add']('uploadcareImageEdit',_0x22facc=>{const _0x202f05=_0x13637c['commands']['get']('uploadcareImageEdit'),_0x1ccc1b=new _0x20dfad(_0x22facc),t=_0x22facc['t'];return _0x1ccc1b['set']({'icon':_0x3f0c8a,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1ccc1b['bind']('isEnabled')['to'](_0x202f05),_0x1ccc1b['bind']('isOn')['to'](_0x202f05,'isActive'),this['listenTo'](_0x1ccc1b,'execute',()=>{_0x13637c['execute']('uploadcareImageEdit'),_0x13637c['editing']['view']['focus']();}),_0x1ccc1b;}),this['_initConfig']();}['_initConfig'](){const _0xf56527=_0x6ccec9(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0xf56527),this['listenTo'](this['editor'],'destroy',()=>{_0xf56527['remove']();});}}class et extends _0x545bcb{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{tt as Uploadcare,w as UploadcareCommand,o as UploadcareEditing,et as UploadcareImageEdit,N as UploadcareImageEditCommand,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI,f as UploadcareUploadAdapter};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-uploadcare",
3
- "version": "0.0.0-nightly-20250929.0",
3
+ "version": "0.0.0-nightly-20251001.0",
4
4
  "description": "Uploadcare feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -23,14 +23,14 @@
23
23
  "framework"
24
24
  ],
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "0.0.0-nightly-20250929.0",
27
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20250929.0",
28
- "@ckeditor/ckeditor5-image": "0.0.0-nightly-20250929.0",
29
- "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20250929.0",
30
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20250929.0",
31
- "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20250929.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250929.0",
33
- "ckeditor5": "0.0.0-nightly-20250929.0",
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251001.0",
27
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251001.0",
28
+ "@ckeditor/ckeditor5-image": "0.0.0-nightly-20251001.0",
29
+ "@ckeditor/ckeditor5-theme-lark": "0.0.0-nightly-20251001.0",
30
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251001.0",
31
+ "@ckeditor/ckeditor5-upload": "0.0.0-nightly-20251001.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251001.0",
33
+ "ckeditor5": "0.0.0-nightly-20251001.0",
34
34
  "@uploadcare/file-uploader": "1.19.4",
35
35
  "@uploadcare/upload-client": "6.14.3"
36
36
  },
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1d18(_0x211512,_0x46ff7d){const _0x20407b=_0x2040();return _0x1d18=function(_0x1d1815,_0x261643){_0x1d1815=_0x1d1815-0xbc;let _0x338c42=_0x20407b[_0x1d1815];return _0x338c42;},_0x1d18(_0x211512,_0x46ff7d);}const _0x4f7ed9=_0x1d18;(function(_0x34ab39,_0x1a1de1){const _0x489853=_0x1d18,_0x211992=_0x34ab39();while(!![]){try{const _0x246e37=parseInt(_0x489853(0xd2))/0x1*(parseInt(_0x489853(0xec))/0x2)+parseInt(_0x489853(0xe7))/0x3+parseInt(_0x489853(0xcc))/0x4*(-parseInt(_0x489853(0xeb))/0x5)+parseInt(_0x489853(0xcd))/0x6+-parseInt(_0x489853(0x101))/0x7+parseInt(_0x489853(0x104))/0x8*(-parseInt(_0x489853(0xf9))/0x9)+parseInt(_0x489853(0xdf))/0xa;if(_0x246e37===_0x1a1de1)break;else _0x211992['push'](_0x211992['shift']());}catch(_0x52d88e){_0x211992['push'](_0x211992['shift']());}}}(_0x2040,0xefaba));import{IconUploadcareImageUpload as _0x32f59a}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x1db601}from'ckeditor5/src/utils.js';import{Dialog as _0x5da5eb,DialogViewPosition as _0xde0061}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x3e37b2}from'./uploadcareformview.js';import{UploadcareSource as _0x45c69c}from'../uploadcareconfig.js';import{getTranslation as _0x20caef}from'../utils/common-translations.js';import{getImageUrls as _0x320aa8,getImageDimension as _0x1bfd3e}from'../utils/editingutils.js';import{isAncestor as _0x45fa79}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
- _0x1db601(){[_0x4f7ed9(0xfa)];[_0x4f7ed9(0xe0)];[_0x4f7ed9(0xed)];[_0x4f7ed9(0xf1)];[_0x4f7ed9(0xd0)]=null;[_0x4f7ed9(0xc0)]=null;constructor(_0x45a71f,_0x2e9cc8,_0x5195ef){const _0xf355cc=_0x4f7ed9;super(),this[_0xf355cc(0xfa)]=_0x45a71f,this[_0xf355cc(0xed)]=_0x2e9cc8,this[_0xf355cc(0xe0)]=_0x45a71f[_0xf355cc(0xc6)][_0xf355cc(0xc4)](_0x5da5eb),this[_0xf355cc(0xf1)]=_0x2e9cc8[_0xf355cc(0xf4)][_0xf355cc(0xe6)](),this[_0xf355cc(0xd0)]=_0x5195ef,this[_0xf355cc(0xed)][_0xf355cc(0xbe)][_0xf355cc(0xe1)](_0xf355cc(0xd6),this[_0xf355cc(0xd0)]),this[_0xf355cc(0xd3)](),this[_0xf355cc(0xdc)](),this[_0xf355cc(0xf1)][_0xf355cc(0xe4)]();}[_0x4f7ed9(0x105)](){const _0x488204=_0x4f7ed9;this[_0x488204(0xc0)]&&(this[_0x488204(0xc0)][_0x488204(0x105)](),this[_0x488204(0xc0)]=null),this[_0x488204(0xf1)]&&this[_0x488204(0xf1)][_0x488204(0xff)](),this[_0x488204(0xc5)](),this[_0x488204(0xef)]();}[_0x4f7ed9(0xd3)](){const _0xfec6d7=_0x4f7ed9,{locale:_0x238878,model:_0x2acda7}=this[_0xfec6d7(0xfa)],_0x10206b=_0x2acda7[_0xfec6d7(0xc7)][_0xfec6d7(0xd8)][_0xfec6d7(0xd7)](),_0x9716f7=_0x10206b&&(_0x10206b['is'](_0xfec6d7(0xe9),_0xfec6d7(0xf0))||_0x10206b['is'](_0xfec6d7(0xe9),_0xfec6d7(0xbd)));this[_0xfec6d7(0xc0)]=new _0x3e37b2(_0x238878,this[_0xfec6d7(0xed)][_0xfec6d7(0xe5)]),this[_0xfec6d7(0xe0)][_0xfec6d7(0xf7)]({'id':_0xfec6d7(0xf6),'icon':_0x32f59a,'title':_0x20caef(_0x238878,this[_0xfec6d7(0xd0)],_0x9716f7?_0xfec6d7(0xde):_0xfec6d7(0xcf))[_0xfec6d7(0xc2)],'content':this[_0xfec6d7(0xc0)],'position':_0xde0061[_0xfec6d7(0xe3)],'isModal':!0x0,'onShow':()=>{const _0x3132f1=_0xfec6d7;this[_0x3132f1(0xc0)][_0x3132f1(0xd1)]();},'onHide':()=>{const _0x1059c7=_0xfec6d7;this[_0x1059c7(0xf1)][_0x1059c7(0xf3)](),this[_0x1059c7(0xfa)][_0x1059c7(0xee)][_0x1059c7(0xfb)][_0x1059c7(0xd1)](),this[_0x1059c7(0x105)]();},'keystrokeHandlerOptions':{'filter':_0x305df7=>!_0x45fa79(_0x305df7,this[_0xfec6d7(0xc0)][_0xfec6d7(0xe9)])}});}[_0x4f7ed9(0xdc)](){const _0x19a1b5=_0x4f7ed9;this[_0x19a1b5(0xed)][_0x19a1b5(0xf4)][_0x19a1b5(0xe8)](_0x19a1b5(0xc3),()=>{const _0x2b7ae8=_0x19a1b5,{allEntries:_0x5e8fcc}=this[_0x2b7ae8(0xf1)][_0x2b7ae8(0x102)]();this[_0x2b7ae8(0xfa)][_0x2b7ae8(0x100)][_0x2b7ae8(0xc8)](_0xe6b1f1=>{const _0x5c2893=_0x2b7ae8,_0x3cb887=_0x5e8fcc[_0x5c2893(0xce)];for(const _0x4725f5 of _0x5e8fcc){const _0x777bf5=_0x4725f5===_0x5e8fcc[_0x3cb887-0x1],{cdnUrl:_0x5e165b,fileInfo:_0x2106b5}=_0x4725f5;if(!_0x5e165b||!_0x2106b5)continue;const {width:_0x590190,height:_0x1aa976}=_0x2106b5[_0x5c2893(0xf5)],_0x579c17=_0x1bfd3e(_0x5e165b,_0x590190,_0x1aa976),_0x415eef=_0x320aa8(_0x5e165b,_0x579c17[_0x5c2893(0xc9)]),_0x588c89={'id':_0x2106b5[_0x5c2893(0xf8)],'type':_0x5c2893(0xe2),'attributes':{'imageDimension':_0x579c17,..._0x415eef}};this[_0x5c2893(0xc1)](_0x588c89,_0x777bf5,_0xe6b1f1);}}),this[_0x2b7ae8(0xe0)][_0x2b7ae8(0xbc)]();}),this[_0x19a1b5(0xed)][_0x19a1b5(0xf4)][_0x19a1b5(0xe8)](_0x19a1b5(0xc8),_0x4c3cb6=>{const _0x5d4f1b=_0x19a1b5;_0x5d4f1b(0xd9)===_0x4c3cb6[_0x5d4f1b(0xfe)][_0x5d4f1b(0xea)]&&!_0x4c3cb6[_0x5d4f1b(0xfe)][_0x5d4f1b(0xbf)][_0x5d4f1b(0xce)]&&this[_0x5d4f1b(0xe0)][_0x5d4f1b(0xda)]&&(this[_0x5d4f1b(0xd0)]===_0x45c69c[_0x5d4f1b(0xd4)]?this[_0x5d4f1b(0xf1)][_0x5d4f1b(0xfd)](_0x45c69c[_0x5d4f1b(0xd4)]):this[_0x5d4f1b(0xf1)][_0x5d4f1b(0xe4)]());});}[_0x4f7ed9(0xc1)](_0x504539,_0x11e51e,_0x574fd6){const _0x4bc1a9=_0x4f7ed9,_0x3c2e7f=this[_0x4bc1a9(0xfa)][_0x4bc1a9(0x100)][_0x4bc1a9(0xc7)][_0x4bc1a9(0xd8)],_0x18530b=_0x3c2e7f[_0x4bc1a9(0xd7)](),_0x2c140f=!(!_0x18530b||!_0x18530b['is'](_0x4bc1a9(0xe9),_0x4bc1a9(0xbd)));_0x574fd6[_0x4bc1a9(0xcb)](_0x4bc1a9(0xfc)),this[_0x4bc1a9(0xf2)](_0x504539,_0x2c140f),_0x11e51e||_0x574fd6[_0x4bc1a9(0xdb)](_0x3c2e7f[_0x4bc1a9(0x103)]());}[_0x4f7ed9(0xf2)](_0x2dfb64,_0x2049da){const _0x515809=_0x4f7ed9,_0x2587fa=this[_0x515809(0xfa)],{imageDimension:_0x47cdd7,imageFallbackUrl:_0x4cdced,imageSources:_0x1efdda}=_0x2dfb64[_0x515809(0xca)];_0x2587fa[_0x515809(0xd5)](_0x515809(0xdd),{'imageType':_0x2049da?_0x515809(0xbd):null,'source':{'uploadcareImageId':_0x2dfb64['id'],'src':_0x4cdced,'sources':_0x1efdda,..._0x47cdd7}});}}function _0x2040(){const _0x112ca2=['length','Insert','_type','focus','2641JyiCqM','_initDialog','Local','execute','source-list','getSelectedElement','selection','idle','isOpen','setSelection','_initListeners','insertImage','Replace','4353270AuUkDZ','_dialog','setAttribute','image','EDITOR_TOP_CENTER','initFlow','ucContextId','getAPI','177633aFeOcO','addEventListener','element','status','590530Ptihln','862KGFdTN','_editing','editing','stopDelegating','imageBlock','_api','_insertImage','removeAllFiles','ctxElement','imageInfo','uploadCare','show','uuid','324639NPlWkf','_editor','view','linkHref','setCurrentActivity','detail','doneFlow','model','4917976yGRTPd','getOutputCollectionState','getLastPosition','280TJoCRy','destroy','hide','imageInline','configElement','allEntries','_formView','_insertAsset','text','done-click','get','stopListening','plugins','document','change','width','attributes','removeSelectionAttribute','4UXywHt','8592240RcmNUN'];_0x2040=function(){return _0x112ca2;};return _0x2040();}
23
+ const _0x5b2cc4=_0x28ec;(function(_0x41d106,_0x1e0e08){const _0x597501=_0x28ec,_0x3f0a9b=_0x41d106();while(!![]){try{const _0x33ef90=-parseInt(_0x597501(0xca))/0x1*(-parseInt(_0x597501(0xb5))/0x2)+parseInt(_0x597501(0xd5))/0x3*(parseInt(_0x597501(0xc8))/0x4)+-parseInt(_0x597501(0x92))/0x5*(-parseInt(_0x597501(0x9d))/0x6)+-parseInt(_0x597501(0xb7))/0x7*(-parseInt(_0x597501(0x94))/0x8)+-parseInt(_0x597501(0xb2))/0x9+parseInt(_0x597501(0xd1))/0xa*(-parseInt(_0x597501(0xa1))/0xb)+-parseInt(_0x597501(0xd7))/0xc;if(_0x33ef90===_0x1e0e08)break;else _0x3f0a9b['push'](_0x3f0a9b['shift']());}catch(_0x38a102){_0x3f0a9b['push'](_0x3f0a9b['shift']());}}}(_0x1895,0x6f71f));import{IconUploadcareImageUpload as _0x554fe9}from'ckeditor5/src/icons.js';import{ObservableMixin as _0x3309d0}from'ckeditor5/src/utils.js';import{Dialog as _0x59fd88,DialogViewPosition as _0x5c4afa}from'ckeditor5/src/ui.js';import{UploadcareFormView as _0x3adbb8}from'./uploadcareformview.js';import{UploadcareSource as _0x294cae}from'../uploadcareconfig.js';function _0x28ec(_0xc2b696,_0x2cd0a9){const _0x1895e7=_0x1895();return _0x28ec=function(_0x28ec35,_0x14980b){_0x28ec35=_0x28ec35-0x8f;let _0x4cf82a=_0x1895e7[_0x28ec35];return _0x4cf82a;},_0x28ec(_0xc2b696,_0x2cd0a9);}import{getTranslation as _0x2ad5f4}from'../utils/common-translations.js';import{getImageUrls as _0xbbc589,getImageDimension as _0xc4bf0b}from'../utils/editingutils.js';function _0x1895(){const _0x2e509f=['hide','1019478jxvUZa','ctxElement','4464312Cawvwu','initFlow','getOutputCollectionState','done-click','_insertImage','Insert','doneFlow','1382005ormtjV','detail','4648gvUPhj','length','uuid','removeAllFiles','selection','width','view','Replace','removeSelectionAttribute','12azEIrs','getLastPosition','stopDelegating','idle','227491luyHRk','_initDialog','getSelectedElement','isOpen','imageInline','_insertAsset','_editing','execute','plugins','imageInfo','insertImage','status','_editor','model','_api','_type','destroy','2330361ZHyMiC','getAPI','_formView','1440374jxFCzK','setCurrentActivity','896sokGHf','EDITOR_TOP_CENTER','imageBlock','setAttribute','source-list','focus','allEntries','editing','show','image','element','configElement','_dialog','get','linkHref','uploadCare','document','4iWwDYk','setSelection','1BHNhQq','text','addEventListener','Local','stopListening','ucContextId','change','290vHJzQs','_initListeners','attributes'];_0x1895=function(){return _0x2e509f;};return _0x1895();}import{isAncestor as _0x187a03}from'../utils/isancestor.js';export class UploadcareController extends/* #__PURE__ -- @preserve */
24
+ _0x3309d0(){[_0x5b2cc4(0xad)];[_0x5b2cc4(0xc3)];[_0x5b2cc4(0xa7)];[_0x5b2cc4(0xaf)];[_0x5b2cc4(0xb0)]=null;[_0x5b2cc4(0xb4)]=null;constructor(_0x4157a5,_0x24ef15,_0x57e8f4){const _0x363307=_0x5b2cc4;super(),this[_0x363307(0xad)]=_0x4157a5,this[_0x363307(0xa7)]=_0x24ef15,this[_0x363307(0xc3)]=_0x4157a5[_0x363307(0xa9)][_0x363307(0xc4)](_0x59fd88),this[_0x363307(0xaf)]=_0x24ef15[_0x363307(0xd6)][_0x363307(0xb3)](),this[_0x363307(0xb0)]=_0x57e8f4,this[_0x363307(0xa7)][_0x363307(0xc2)][_0x363307(0xba)](_0x363307(0xbb),this[_0x363307(0xb0)]),this[_0x363307(0xa2)](),this[_0x363307(0xd2)](),this[_0x363307(0xaf)][_0x363307(0xd8)]();}[_0x5b2cc4(0xb1)](){const _0x391720=_0x5b2cc4;this[_0x391720(0xb4)]&&(this[_0x391720(0xb4)][_0x391720(0xb1)](),this[_0x391720(0xb4)]=null),this[_0x391720(0xaf)]&&this[_0x391720(0xaf)][_0x391720(0x91)](),this[_0x391720(0xce)](),this[_0x391720(0x9f)]();}[_0x5b2cc4(0xa2)](){const _0x4eb7c8=_0x5b2cc4,{locale:_0x1a167f,model:_0x488926}=this[_0x4eb7c8(0xad)],_0x2fef5a=_0x488926[_0x4eb7c8(0xc7)][_0x4eb7c8(0x98)][_0x4eb7c8(0xa3)](),_0x5323ca=_0x2fef5a&&(_0x2fef5a['is'](_0x4eb7c8(0xc1),_0x4eb7c8(0xb9))||_0x2fef5a['is'](_0x4eb7c8(0xc1),_0x4eb7c8(0xa5)));this[_0x4eb7c8(0xb4)]=new _0x3adbb8(_0x1a167f,this[_0x4eb7c8(0xa7)][_0x4eb7c8(0xcf)]),this[_0x4eb7c8(0xc3)][_0x4eb7c8(0xbf)]({'id':_0x4eb7c8(0xc6),'icon':_0x554fe9,'title':_0x2ad5f4(_0x1a167f,this[_0x4eb7c8(0xb0)],_0x5323ca?_0x4eb7c8(0x9b):_0x4eb7c8(0x90))[_0x4eb7c8(0xcb)],'content':this[_0x4eb7c8(0xb4)],'position':_0x5c4afa[_0x4eb7c8(0xb8)],'isModal':!0x0,'onShow':()=>{const _0x3aa26b=_0x4eb7c8;this[_0x3aa26b(0xb4)][_0x3aa26b(0xbc)]();},'onHide':()=>{const _0x4a9f6a=_0x4eb7c8;this[_0x4a9f6a(0xaf)][_0x4a9f6a(0x97)](),this[_0x4a9f6a(0xad)][_0x4a9f6a(0xbe)][_0x4a9f6a(0x9a)][_0x4a9f6a(0xbc)](),this[_0x4a9f6a(0xb1)]();},'keystrokeHandlerOptions':{'filter':_0x32ab99=>!_0x187a03(_0x32ab99,this[_0x4eb7c8(0xb4)][_0x4eb7c8(0xc1)])}});}[_0x5b2cc4(0xd2)](){const _0x599592=_0x5b2cc4;this[_0x599592(0xa7)][_0x599592(0xd6)][_0x599592(0xcc)](_0x599592(0xda),()=>{const _0x335e07=_0x599592,{allEntries:_0xe4af44}=this[_0x335e07(0xaf)][_0x335e07(0xd9)]();this[_0x335e07(0xad)][_0x335e07(0xae)][_0x335e07(0xd0)](_0x4e4e04=>{const _0x394988=_0x335e07,_0x5c2115=_0xe4af44[_0x394988(0x95)];for(const _0x209ac4 of _0xe4af44){const _0x5c0fe6=_0x209ac4===_0xe4af44[_0x5c2115-0x1],{cdnUrl:_0x949a23,fileInfo:_0x1a3124}=_0x209ac4;if(!_0x949a23||!_0x1a3124)continue;const {width:_0x6510db,height:_0x57ce1d}=_0x1a3124[_0x394988(0xaa)],_0x2dc3ec=_0xc4bf0b(_0x949a23,_0x6510db,_0x57ce1d),_0x5cc815=_0xbbc589(_0x949a23,_0x2dc3ec[_0x394988(0x99)]),_0x3c0a5a={'id':_0x1a3124[_0x394988(0x96)],'type':_0x394988(0xc0),'attributes':{'imageDimension':_0x2dc3ec,..._0x5cc815}};this[_0x394988(0xa6)](_0x3c0a5a,_0x5c0fe6,_0x4e4e04);}}),this[_0x335e07(0xc3)][_0x335e07(0xd4)]();}),this[_0x599592(0xa7)][_0x599592(0xd6)][_0x599592(0xcc)](_0x599592(0xd0),_0xb49ace=>{const _0x25bd14=_0x599592;_0x25bd14(0xa0)===_0xb49ace[_0x25bd14(0x93)][_0x25bd14(0xac)]&&!_0xb49ace[_0x25bd14(0x93)][_0x25bd14(0xbd)][_0x25bd14(0x95)]&&this[_0x25bd14(0xc3)][_0x25bd14(0xa4)]&&(this[_0x25bd14(0xb0)]===_0x294cae[_0x25bd14(0xcd)]?this[_0x25bd14(0xaf)][_0x25bd14(0xb6)](_0x294cae[_0x25bd14(0xcd)]):this[_0x25bd14(0xaf)][_0x25bd14(0xd8)]());});}[_0x5b2cc4(0xa6)](_0x2765ac,_0x364b49,_0x304312){const _0x4a2694=_0x5b2cc4,_0x1056f0=this[_0x4a2694(0xad)][_0x4a2694(0xae)][_0x4a2694(0xc7)][_0x4a2694(0x98)],_0x48b260=_0x1056f0[_0x4a2694(0xa3)](),_0x1a7ffc=!(!_0x48b260||!_0x48b260['is'](_0x4a2694(0xc1),_0x4a2694(0xa5)));_0x304312[_0x4a2694(0x9c)](_0x4a2694(0xc5)),this[_0x4a2694(0x8f)](_0x2765ac,_0x1a7ffc),_0x364b49||_0x304312[_0x4a2694(0xc9)](_0x1056f0[_0x4a2694(0x9e)]());}[_0x5b2cc4(0x8f)](_0x5022d2,_0xc468a7){const _0x45df02=_0x5b2cc4,_0x14c4d0=this[_0x45df02(0xad)],{imageDimension:_0x4e7619,imageFallbackUrl:_0x572f20,imageSources:_0x418424}=_0x5022d2[_0x45df02(0xd3)];_0x14c4d0[_0x45df02(0xa8)](_0x45df02(0xab),{'imageType':_0xc468a7?_0x45df02(0xa5):null,'source':{'uploadcareImageId':_0x5022d2['id'],'src':_0x572f20,'sources':_0x418424,..._0x4e7619}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x325ffc=_0x27e5;(function(_0x5e7f,_0x4c0a55){var _0x1a8f40=_0x27e5,_0x285289=_0x5e7f();while(!![]){try{var _0x27bc24=parseInt(_0x1a8f40(0x1d5))/0x1*(parseInt(_0x1a8f40(0x1cf))/0x2)+-parseInt(_0x1a8f40(0x1cc))/0x3+-parseInt(_0x1a8f40(0x1ca))/0x4+parseInt(_0x1a8f40(0x1c6))/0x5+parseInt(_0x1a8f40(0x1d3))/0x6*(parseInt(_0x1a8f40(0x1c4))/0x7)+-parseInt(_0x1a8f40(0x1ce))/0x8*(-parseInt(_0x1a8f40(0x1c8))/0x9)+-parseInt(_0x1a8f40(0x1cb))/0xa*(parseInt(_0x1a8f40(0x1d2))/0xb);if(_0x27bc24===_0x4c0a55)break;else _0x285289['push'](_0x285289['shift']());}catch(_0x249bc1){_0x285289['push'](_0x285289['shift']());}}}(_0x92f3,0xc66e5));function _0x27e5(_0x501d08,_0x2def68){var _0x92f3ae=_0x92f3();return _0x27e5=function(_0x27e5e4,_0x5da220){_0x27e5e4=_0x27e5e4-0x1c4;var _0x186c32=_0x92f3ae[_0x27e5e4];return _0x186c32;},_0x27e5(_0x501d08,_0x2def68);}import{DialogFocusManagerView as _0x49ae7c}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';function _0x92f3(){var _0x3fb470=['2592642PIJTjS','div','1uUlMKx','uploader-','setTemplate','ck-uploadcare-form','ck-uploadcare-theme','7buwNsB','focus','2529425AJMEyH','ck-reset_all-excluded','8412597CwFkvg','getFocusableElement','2722544EubHhy','10rvemgD','2202612TKbVQg','uc-light','8ikPevI','951254GHBPlx','uc-file-uploader-inline','element','1328129ZYQhub'];_0x92f3=function(){return _0x3fb470;};return _0x92f3();}export class UploadcareFormView extends _0x49ae7c{constructor(_0x37e630,_0x3c8f60){var _0x5e3410=_0x27e5;super(_0x37e630),this[_0x5e3410(0x1d7)]({'tag':_0x5e3410(0x1d4),'attributes':{'class':['ck',_0x5e3410(0x1c7),_0x5e3410(0x1d8)],'tabindex':'-1'},'children':[{'tag':_0x5e3410(0x1d0),'attributes':{'class':[_0x5e3410(0x1cd),_0x5e3410(0x1d9)],'ctx-name':_0x5e3410(0x1d6)+_0x3c8f60}},this[_0x5e3410(0x1c9)]()]});}[_0x325ffc(0x1c5)](){var _0x56aa0a=_0x325ffc;this[_0x56aa0a(0x1d1)][_0x56aa0a(0x1c5)]();}}
23
+ var _0x2cbcc8=_0x1a57;(function(_0x334753,_0x31b22a){var _0x436ef8=_0x1a57,_0x166a26=_0x334753();while(!![]){try{var _0x6c8e90=-parseInt(_0x436ef8(0x168))/0x1*(parseInt(_0x436ef8(0x164))/0x2)+parseInt(_0x436ef8(0x160))/0x3+-parseInt(_0x436ef8(0x173))/0x4*(-parseInt(_0x436ef8(0x16c))/0x5)+parseInt(_0x436ef8(0x171))/0x6+parseInt(_0x436ef8(0x165))/0x7+-parseInt(_0x436ef8(0x16a))/0x8+parseInt(_0x436ef8(0x166))/0x9*(-parseInt(_0x436ef8(0x16f))/0xa);if(_0x6c8e90===_0x31b22a)break;else _0x166a26['push'](_0x166a26['shift']());}catch(_0x4fc26f){_0x166a26['push'](_0x166a26['shift']());}}}(_0x482a,0x18b72));function _0x482a(){var _0x41ca7f=['element','1167450BoYwHE','div','28uYICmP','uc-file-uploader-inline','551670sFXtJZ','focus','ck-uploadcare-theme','setTemplate','9254mkAPOy','711900mBGIyb','27KoOKbP','uc-light','1HErOsE','ck-uploadcare-form','252576LTSrak','ck-reset_all-excluded','8310zXYoeW','getFocusableElement','uploader-','1181220aZzEPr'];_0x482a=function(){return _0x41ca7f;};return _0x482a();}import{DialogFocusManagerView as _0x5440ab}from'../utils/dialogfocusmanagerview.js';import'../../theme/uploadcare-form.css';function _0x1a57(_0xcb5d88,_0x3d09bc){var _0x482a7a=_0x482a();return _0x1a57=function(_0x1a57aa,_0x475ea1){_0x1a57aa=_0x1a57aa-0x15f;var _0x29f9e9=_0x482a7a[_0x1a57aa];return _0x29f9e9;},_0x1a57(_0xcb5d88,_0x3d09bc);}export class UploadcareFormView extends _0x5440ab{constructor(_0x5e7306,_0x173dab){var _0x52a91c=_0x1a57;super(_0x5e7306),this[_0x52a91c(0x163)]({'tag':_0x52a91c(0x172),'attributes':{'class':['ck',_0x52a91c(0x16b),_0x52a91c(0x169)],'tabindex':'-1'},'children':[{'tag':_0x52a91c(0x15f),'attributes':{'class':[_0x52a91c(0x167),_0x52a91c(0x162)],'ctx-name':_0x52a91c(0x16e)+_0x173dab}},this[_0x52a91c(0x16d)]()]});}[_0x2cbcc8(0x161)](){var _0x2431e4=_0x2cbcc8;this[_0x2431e4(0x170)][_0x2431e4(0x161)]();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x35b9(_0x2880fa,_0x3be966){const _0x2a5953=_0x2a59();return _0x35b9=function(_0x35b951,_0x3fc1fa){_0x35b951=_0x35b951-0x19a;let _0xad28f7=_0x2a5953[_0x35b951];return _0xad28f7;},_0x35b9(_0x2880fa,_0x3be966);}function _0x2a59(){const _0x4d5101=['configElement','448899ZqoZqN','isRegistered','extend','uploadcare.uploader','upcast','imageInline','input[uploadcare-file-input]','for','join','isOfficialPlugin','fromCharCode','_configElement','PictureEditing','model','ctxElement','remove','uploader-','data-uc-image-id','uploadcare','UploadcareEditing','#uc-icon-arrow-down','schema','destroy','_initConfig','\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','afterInit','2368974bKzKUv','elementToAttribute','downcast','insertImage','_initSchema','locale','body','uploadcare.pubkey','replaceImageSource','uc-upload-ctx-provider','attributeToAttribute','map','cleanupImage','_initImageProcessingIndicator','document','isPremiumPlugin','editing','querySelector','closeMax','3WNtqAp','contentLanguage','getSelectedElement','config','add','once','get','uc-config','iconHrefResolver','3498280ervbpe','2341392EUXTuO','init','uploadcareImageReplace','ucContextId','appendChild','render','1022784NiOgmC','true','_initConversion','removeAttribute','getAttribute','selection','2188902aEKdZB','execute','editor','href','_ctxElement','view','9170815XkVgZs','commands','requires','uploadcareImageId','conversion','pluginName','listenTo','_initCtx','imageBlock'];_0x2a59=function(){return _0x4d5101;};return _0x2a59();}const _0x19e0f3=_0x35b9;(function(_0x3ce85e,_0x2007a4){const _0x4f9b99=_0x35b9,_0x472eb2=_0x3ce85e();while(!![]){try{const _0x39e905=parseInt(_0x4f9b99(0x1dd))/0x1+parseInt(_0x4f9b99(0x1cd))/0x2+parseInt(_0x4f9b99(0x1b7))/0x3*(parseInt(_0x4f9b99(0x1c1))/0x4)+-parseInt(_0x4f9b99(0x1d3))/0x5+parseInt(_0x4f9b99(0x1a4))/0x6+-parseInt(_0x4f9b99(0x1c7))/0x7+parseInt(_0x4f9b99(0x1c0))/0x8;if(_0x39e905===_0x2007a4)break;else _0x472eb2['push'](_0x472eb2['shift']());}catch(_0x2e4b4d){_0x472eb2['push'](_0x472eb2['shift']());}}}(_0x2a59,0xef639));import{Plugin as _0x519cc5}from'ckeditor5/src/core.js';import{Dialog as _0x1ea8c8}from'ckeditor5/src/ui.js';import{createElement as _0x33cd1e,global as _0x50baa7,uid as _0x71dab0}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3d1e07}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5f28aa}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x5a1f4d}from'./utils/editingutils.js';export class UploadcareEditing extends _0x519cc5{[_0x19e0f3(0x1e8)]=null;[_0x19e0f3(0x1d1)]=null;static get[_0x19e0f3(0x1d8)](){const _0x5a9920=_0x19e0f3;return _0x5a9920(0x19d);}static get[_0x19e0f3(0x1d5)](){const _0x3e0e3=_0x19e0f3;return[_0x3e0e3(0x1e9),_0x5f28aa,_0x1ea8c8];}static get[_0x19e0f3(0x1e6)](){return!0x0;}static get[_0x19e0f3(0x1b3)](){return!0x0;}[_0x19e0f3(0x1c4)];get[_0x19e0f3(0x1dc)](){const _0x51fb6c=_0x19e0f3;return this[_0x51fb6c(0x1e8)];}get[_0x19e0f3(0x1eb)](){const _0x4ef85f=_0x19e0f3;return this[_0x4ef85f(0x1d1)];}constructor(_0x3cd84e){const _0x156f79=_0x19e0f3;super(_0x3cd84e),this[_0x156f79(0x1c4)]=_0x71dab0();}[_0x19e0f3(0x1c2)](){const _0x4984ef=_0x19e0f3,_0xb0000b=this[_0x4984ef(0x1cf)];_0xb0000b[_0x4984ef(0x1d4)][_0x4984ef(0x1bb)](_0x4984ef(0x19c),new _0x3d1e07(_0xb0000b));}[_0x19e0f3(0x1a3)](){const _0x3aa554=_0x19e0f3;this[_0x3aa554(0x1a8)](),this[_0x3aa554(0x1c9)](),this[_0x3aa554(0x1a1)](),this[_0x3aa554(0x1da)](),this[_0x3aa554(0x1b1)](),this[_0x3aa554(0x1d9)](this[_0x3aa554(0x1cf)],_0x3aa554(0x1a0),()=>{const _0x2c6a28=_0x3aa554;this[_0x2c6a28(0x1e8)]&&(this[_0x2c6a28(0x1e8)][_0x2c6a28(0x1ec)](),this[_0x2c6a28(0x1e8)]=null),this[_0x2c6a28(0x1d1)]&&(this[_0x2c6a28(0x1d1)][_0x2c6a28(0x1ec)](),this[_0x2c6a28(0x1d1)]=null);const _0x4a07a4=_0x50baa7[_0x2c6a28(0x1b2)][_0x2c6a28(0x1b5)](_0x2c6a28(0x1e3));_0x4a07a4&&_0x4a07a4[_0x2c6a28(0x1ec)]();}),async function(_0xbfaba){const _0x4f15ab=_0x4bf68b([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x18c707=0x3d8d0df,_0x3a06ca=0x3dfa41f^_0x18c707,_0x1d9f75=window[_0x4bf68b([0x44,0x61,0x74,0x65])][_0x4bf68b([0x6e,0x6f,0x77])](),_0x5b20d3=_0xbfaba[_0x4bf68b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x17699d=new window[(_0x4bf68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1124a5=>{_0x5b20d3[_0x4bf68b([0x6f,0x6e,0x63,0x65])](_0x4bf68b([0x72,0x65,0x61,0x64,0x79]),_0x1124a5);}),_0x5e2269={[_0x4bf68b([0x6b,0x74,0x79])]:_0x4bf68b([0x45,0x43]),[_0x4bf68b([0x75,0x73,0x65])]:_0x4bf68b([0x73,0x69,0x67]),[_0x4bf68b([0x63,0x72,0x76])]:_0x4bf68b([0x50,0x2d,0x32,0x35,0x36]),[_0x4bf68b([0x78])]:_0x4bf68b([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]),[_0x4bf68b([0x79])]:_0x4bf68b([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]),[_0x4bf68b([0x61,0x6c,0x67])]:_0x4bf68b([0x45,0x53,0x32,0x35,0x36])},_0xf3f52d=_0x5b20d3[_0x4bf68b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4bf68b([0x67,0x65,0x74])](_0x4bf68b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2e3b98(){let _0x282c5f,_0x1c71bb=null,_0x310b34=null;try{if(_0xf3f52d==_0x4bf68b([0x47,0x50,0x4c]))return _0x4bf68b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x282c5f=_0x259544(),!_0x282c5f)return _0x4bf68b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x282c5f[_0x4bf68b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x310b34=_0x5e26ee(_0x282c5f[_0x4bf68b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x282c5f[_0x4bf68b([0x6a,0x74,0x69])])),await _0x27c27a()?_0x1ed6ca()?_0x53c1af()?_0x4bf68b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x313cd7()?(_0x282c5f[_0x4bf68b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4bf68b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1c71bb=_0x559dba(_0x4bf68b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x282c5f[_0x4bf68b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4bf68b([0x74,0x72,0x69,0x61,0x6c])&&(_0x1c71bb=_0x559dba(_0x4bf68b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x437d1a()):_0x4bf68b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4bf68b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4bf68b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4bf68b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x53c1af(){const _0x54fec8=[_0x4bf68b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4bf68b([0x74,0x72,0x69,0x61,0x6c])][_0x4bf68b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x282c5f[_0x4bf68b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d9f75/0x3e8:0xe10*_0x3a06ca;return _0x282c5f[_0x4bf68b([0x65,0x78,0x70])]<_0x54fec8;}function _0x1ed6ca(){const _0x258e4d=_0x282c5f[_0x4bf68b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x258e4d&&(!!_0x258e4d[_0x4bf68b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bf68b([0x2a]))||!!_0x258e4d[_0x4bf68b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bf68b([0x55,0x50,0x4c,0x43])));}function _0x313cd7(){const _0x540c72=_0x35b9,_0x38c9e1=_0x282c5f[_0x4bf68b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x38c9e1||0x0==_0x38c9e1[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4064a1}=new URL(window[_0x4bf68b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x540c72(0x1d0)]);if(_0x38c9e1[_0x4bf68b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4064a1))return!0x0;const _0x42884f=_0x4064a1[_0x4bf68b([0x73,0x70,0x6c,0x69,0x74])](_0x4bf68b([0x2e]));return _0x38c9e1[_0x4bf68b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x105c0e=>_0x105c0e[_0x4bf68b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4bf68b([0x2a])))[_0x4bf68b([0x6d,0x61,0x70])](_0x55b970=>_0x55b970[_0x4bf68b([0x73,0x70,0x6c,0x69,0x74])](_0x4bf68b([0x2e])))[_0x4bf68b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4236f7=>_0x4236f7[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x42884f[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4bf68b([0x6d,0x61,0x70])](_0x314018=>Array(_0x42884f[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x314018[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4bf68b([0x66,0x69,0x6c,0x6c])](_0x314018[0x0]===_0x4bf68b([0x2a])?_0x4bf68b([0x2a]):'')[_0x4bf68b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x314018))[_0x4bf68b([0x73,0x6f,0x6d,0x65])](_0x15243f=>_0x42884f[_0x4bf68b([0x65,0x76,0x65,0x72,0x79])]((_0x58d46b,_0x2f9069)=>_0x15243f[_0x2f9069]===_0x58d46b||_0x15243f[_0x2f9069]===_0x4bf68b([0x2a])));}function _0x437d1a(){return _0x1c71bb&&_0x310b34?new window[(_0x4bf68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ebf2d,_0x1bd9eb)=>{_0x1c71bb[_0x4bf68b([0x74,0x68,0x65,0x6e])](_0x2ebf2d,_0x1bd9eb),_0x310b34[_0x4bf68b([0x74,0x68,0x65,0x6e])](_0x13d88c=>{_0x13d88c!=_0x4bf68b([0x56,0x61,0x6c,0x69,0x64])&&_0x2ebf2d(_0x13d88c);},_0x1bd9eb);}):_0x1c71bb||_0x310b34||_0x4bf68b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e26ee(_0x538bcb,_0x41ee8e){return new window[(_0x4bf68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x610cf1=>{if(_0x1d4fca())return _0x610cf1(_0x4bf68b([0x56,0x61,0x6c,0x69,0x64]));_0x156d05(),_0x5b20d3[_0x4bf68b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4bf68b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a103b=!0x1;const _0x230aa4=_0x71dab0();function _0x34060f(_0x28bf70){return!!_0x28bf70&&(typeof _0x28bf70===_0x4bf68b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x28bf70===_0x4bf68b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x28bf70[_0x4bf68b([0x74,0x68,0x65,0x6e])]===_0x4bf68b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x28bf70[_0x4bf68b([0x63,0x61,0x74,0x63,0x68])]===_0x4bf68b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5433a3(_0x489d33){_0x5a7acb(_0x489d33)[_0x4bf68b([0x74,0x68,0x65,0x6e])](_0x3f9e7b=>{if(!_0x3f9e7b||_0x3f9e7b[_0x4bf68b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4bf68b([0x6f,0x6b]))return _0x4bf68b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x58592e(_0x28777d(_0x230aa4+_0x41ee8e))!=_0x3f9e7b[_0x4bf68b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4bf68b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4bf68b([0x56,0x61,0x6c,0x69,0x64]);})[_0x4bf68b([0x74,0x68,0x65,0x6e])](_0x52eab0=>(_0x2c5751(),_0x52eab0),()=>{const _0x5b160c=_0x2f22db();return null==_0x5b160c?(_0x2c5751(),_0x4bf68b([0x56,0x61,0x6c,0x69,0x64])):_0x4bf68b(_0x1d9f75-_0x5b160c>(0x27d454df^_0x18c707)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4bf68b([0x74,0x68,0x65,0x6e])](_0x610cf1)[_0x4bf68b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x610cf1(_0x4bf68b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x230a40=0x3ee3e5f^_0x18c707;function _0x2c5751(){const _0x5888e2=_0x4bf68b([0x6c,0x6c,0x63,0x74,0x2d])+_0x58592e(_0x28777d(_0x538bcb)),_0x90fd94=_0x45308c(_0x58592e(window[_0x4bf68b([0x4d,0x61,0x74,0x68])][_0x4bf68b([0x63,0x65,0x69,0x6c])](_0x1d9f75/_0x230a40)));window[_0x4bf68b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4bf68b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5888e2,_0x90fd94);}function _0x2f22db(){const _0x5b3d8a=_0x4bf68b([0x6c,0x6c,0x63,0x74,0x2d])+_0x58592e(_0x28777d(_0x538bcb)),_0x2b6d0e=window[_0x4bf68b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4bf68b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b3d8a);return _0x2b6d0e?window[_0x4bf68b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45308c(_0x2b6d0e),0x10)*_0x230a40:null;}function _0x5a7acb(_0x59fbb5){return new window[(_0x4bf68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x364c31,_0x2f57b2)=>{_0x59fbb5[_0x4bf68b([0x74,0x68,0x65,0x6e])](_0x364c31,_0x2f57b2),window[_0x4bf68b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f57b2,0x3d9041f^_0x18c707);});}}_0x5b20d3[_0x4bf68b([0x6f,0x6e])](_0x4bf68b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2eb919,_0x46fa0e)=>{if(_0x46fa0e[0x0]!=_0x538bcb)return _0x610cf1(_0x4bf68b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46fa0e[0x1]={..._0x46fa0e[0x1],[_0x4bf68b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x230aa4};},{[_0x4bf68b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4bf68b([0x68,0x69,0x67,0x68])}),_0x5b20d3[_0x4bf68b([0x6f,0x6e])](_0x4bf68b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x251386=>{_0x34060f(_0x251386[_0x4bf68b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a103b=!0x0,_0x5433a3(_0x251386[_0x4bf68b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4bf68b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4bf68b([0x6c,0x6f,0x77])}),_0x17699d[_0x4bf68b([0x74,0x68,0x65,0x6e])](()=>{_0x1a103b||_0x610cf1(_0x4bf68b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1d4fca(){return _0x5b20d3[_0x4bf68b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bf68b([0x76,0x69,0x65,0x77])][_0x4bf68b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4bf68b([0x61,0x75,0x74,0x6f]);}function _0x156d05(){_0x5b20d3[_0x4bf68b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4bf68b([0x76,0x69,0x65,0x77])][_0x4bf68b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4bf68b([0x61,0x75,0x74,0x6f]);}}function _0x559dba(_0x115a73){const _0x320b17=[new window[(_0x4bf68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1354b0=>setTimeout(_0x1354b0,0x3d1ee13^_0x18c707)),_0x17699d[_0x4bf68b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4bf68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a5d57=>{let _0xc2584a=0x0;_0x5b20d3[_0x4bf68b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bf68b([0x6f,0x6e])](_0x4bf68b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x506824,_0x2ca65e)=>{_0x2ca65e[0x0][_0x4bf68b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc2584a++,_0xc2584a==(0x3d8d127^_0x18c707)&&(_0x3a5d57(),_0x506824[_0x4bf68b([0x6f,0x66,0x66])]());});}))];return window[_0x4bf68b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4bf68b([0x72,0x61,0x63,0x65])](_0x320b17)[_0x4bf68b([0x74,0x68,0x65,0x6e])](()=>_0x115a73);}async function _0x3a73c4(){await _0x17699d,_0x5b20d3[_0x4bf68b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bf68b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xbffaf6,_0x5b20d3[_0x4bf68b([0x6d,0x6f,0x64,0x65,0x6c])][_0x4bf68b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xbffaf6,_0x5b20d3[_0x4bf68b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4bf68b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x17c0ec(_0x727dd8){const _0x3c2944=_0x2c4138();_0x5b20d3[_0x3c2944]=_0x4bf68b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x727dd8,_0x727dd8!=_0x4bf68b([0x56,0x61,0x6c,0x69,0x64])&&_0x3a73c4();}function _0x2c4138(){const _0x335584=window[_0x4bf68b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4bf68b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4bf68b([0x6e,0x6f,0x77])]())[_0x4bf68b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4bf68b([0x2e]),'');let _0x1d5b28=_0x4bf68b([0x52]);for(let _0x11f4c1=0x0;_0x11f4c1<_0x335584[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x11f4c1+=0x2){let _0xb65c17=window[_0x4bf68b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x335584[_0x4bf68b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11f4c1,_0x11f4c1+0x2));_0xb65c17>=_0x4f15ab[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb65c17-=_0x4f15ab[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1d5b28+=_0x4f15ab[_0xb65c17];}return _0x1d5b28;}function _0x259544(){const _0x50c975=_0xf3f52d[_0x4bf68b([0x73,0x70,0x6c,0x69,0x74])](_0x4bf68b([0x2e]));if(0x3!=_0x50c975[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x50d089(_0x50c975[0x1]);function _0x50d089(_0x236b89){const _0x1bdc80=_0x26c221(_0x236b89);return _0x1bdc80&&_0x455359()?_0x1bdc80:null;function _0x455359(){const _0x27c456=_0x1bdc80[_0x4bf68b([0x6a,0x74,0x69])],_0xaeb3af=window[_0x4bf68b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27c456[_0x4bf68b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27c456[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d02b3={..._0x1bdc80,[_0x4bf68b([0x6a,0x74,0x69])]:_0x27c456[_0x4bf68b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x27c456[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d02b3[_0x4bf68b([0x76,0x63])],_0x28777d(_0x4d02b3)==_0xaeb3af;}}}async function _0x27c27a(){let _0x5efc5a=!0x0;try{const _0x2645c4=_0xf3f52d[_0x4bf68b([0x73,0x70,0x6c,0x69,0x74])](_0x4bf68b([0x2e])),[_0x23fdb1,_0x2433d2,_0x1c3a8c]=_0x2645c4;return _0x45306d(_0x23fdb1),await _0x4a5db4(_0x23fdb1,_0x2433d2,_0x1c3a8c),_0x5efc5a;}catch{return!0x1;}function _0x45306d(_0x2fbf0a){const _0x3a49bf=_0x26c221(_0x2fbf0a);_0x3a49bf&&_0x3a49bf[_0x4bf68b([0x61,0x6c,0x67])]==_0x4bf68b([0x45,0x53,0x32,0x35,0x36])||(_0x5efc5a=!0x1);}async function _0x4a5db4(_0x18a6df,_0x29545b,_0x7b1afc){const _0x3e324f=window[_0x4bf68b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4bf68b([0x66,0x72,0x6f,0x6d])](_0x3a904a(_0x7b1afc),_0xda70dd=>_0xda70dd[_0x4bf68b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x231071=new window[(_0x4bf68b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4bf68b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x18a6df+_0x4bf68b([0x2e])+_0x29545b),_0x182734=window[_0x4bf68b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4bf68b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x182734)return;const _0x1c32b1=await _0x182734[_0x4bf68b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4bf68b([0x6a,0x77,0x6b]),_0x5e2269,{[_0x4bf68b([0x6e,0x61,0x6d,0x65])]:_0x4bf68b([0x45,0x43,0x44,0x53,0x41]),[_0x4bf68b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4bf68b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4bf68b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x182734[_0x4bf68b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4bf68b([0x6e,0x61,0x6d,0x65])]:_0x4bf68b([0x45,0x43,0x44,0x53,0x41]),[_0x4bf68b([0x68,0x61,0x73,0x68])]:{[_0x4bf68b([0x6e,0x61,0x6d,0x65])]:_0x4bf68b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c32b1,_0x3e324f,_0x231071)||(_0x5efc5a=!0x1);}}function _0x26c221(_0x3bc379){return _0x3bc379[_0x4bf68b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4bf68b([0x65,0x79]))?JSON[_0x4bf68b([0x70,0x61,0x72,0x73,0x65])](_0x3a904a(_0x3bc379)):null;}function _0x3a904a(_0x404236){return window[_0x4bf68b([0x61,0x74,0x6f,0x62])](_0x404236[_0x4bf68b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4bf68b([0x2b]))[_0x4bf68b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4bf68b([0x2f])));}function _0x28777d(_0x6025d4){let _0x280824=0x1505;function _0x5f1b0d(_0x2874cb){for(let _0x81ed2b=0x0;_0x81ed2b<_0x2874cb[_0x4bf68b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x81ed2b++){const _0x4e713e=_0x2874cb[_0x4bf68b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x81ed2b);_0x280824=(_0x280824<<0x5)+_0x280824+_0x4e713e,_0x280824&=_0x280824;}}function _0x497182(_0x4c57f8){Array[_0x4bf68b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4c57f8)?_0x4c57f8[_0x4bf68b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x497182):_0x4c57f8&&typeof _0x4c57f8==_0x4bf68b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4bf68b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4c57f8)[_0x4bf68b([0x73,0x6f,0x72,0x74])]()[_0x4bf68b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2fe12e,_0x3f70fa])=>{_0x5f1b0d(_0x2fe12e),_0x497182(_0x3f70fa);}):_0x5f1b0d(window[_0x4bf68b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4c57f8));}return _0x497182(_0x6025d4),_0x280824>>>0x0;}function _0x58592e(_0x7b05cd){return _0x7b05cd[_0x4bf68b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4bf68b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4bf68b([0x30]));}function _0x45308c(_0x1d5b41){return _0x1d5b41[_0x4bf68b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4bf68b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4bf68b([0x6a,0x6f,0x69,0x6e])]('');}function _0xbffaf6(){}function _0x4bf68b(_0x15da57){const _0x23d7a3=_0x35b9;return _0x15da57[_0x23d7a3(0x1af)](_0x362ae3=>String[_0x23d7a3(0x1e7)](_0x362ae3))[_0x23d7a3(0x1e5)]('');}_0x17c0ec(await _0x2e3b98());}(this);}[_0x19e0f3(0x1a8)](){const _0x5bf6cf=_0x19e0f3,_0x3060d3=this[_0x5bf6cf(0x1cf)][_0x5bf6cf(0x1ea)][_0x5bf6cf(0x19f)];_0x3060d3[_0x5bf6cf(0x1de)](_0x5bf6cf(0x1db))&&_0x3060d3[_0x5bf6cf(0x1df)](_0x5bf6cf(0x1db),{'allowAttributes':[_0x5bf6cf(0x1d6)]}),_0x3060d3[_0x5bf6cf(0x1de)](_0x5bf6cf(0x1e2))&&_0x3060d3[_0x5bf6cf(0x1df)](_0x5bf6cf(0x1e2),{'allowAttributes':[_0x5bf6cf(0x1d6)]});}[_0x19e0f3(0x1c9)](){const _0x55a73b=_0x19e0f3,_0x295573=this[_0x55a73b(0x1cf)];_0x295573[_0x55a73b(0x1d7)][_0x55a73b(0x1e4)](_0x55a73b(0x1a6))[_0x55a73b(0x1ae)]({'model':_0x55a73b(0x1d6),'view':_0x55a73b(0x19b)}),_0x295573[_0x55a73b(0x1d7)][_0x55a73b(0x1e4)](_0x55a73b(0x1e1))[_0x55a73b(0x1a5)]({'model':{'key':_0x55a73b(0x1d6),'value':_0x315b0b=>_0x315b0b[_0x55a73b(0x1cb)](_0x55a73b(0x19b))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0xc152ac=_0x295573[_0x55a73b(0x1d4)][_0x55a73b(0x1bd)](_0x55a73b(0x1ac));_0xc152ac&&this[_0x55a73b(0x1d9)](_0xc152ac,_0x55a73b(0x1b0),(_0x164c12,[_0x2697e8,_0x2e3210])=>{const _0x6b8152=_0x55a73b;_0x2697e8[_0x6b8152(0x1ca)](_0x6b8152(0x1d6),_0x2e3210);});}[_0x19e0f3(0x1a1)](){const _0x224add=_0x19e0f3,_0x218e38=this[_0x224add(0x1cf)][_0x224add(0x1ba)][_0x224add(0x1bd)](_0x224add(0x1e0))||{},_0x1d8829=this[_0x224add(0x1cf)][_0x224add(0x1ba)][_0x224add(0x1bd)](_0x224add(0x1ab))||'';this[_0x224add(0x1e8)]=_0x33cd1e(_0x50baa7[_0x224add(0x1b2)],_0x224add(0x1be),{..._0x218e38,'pubkey':_0x1d8829,'ctx-name':_0x224add(0x19a)+this[_0x224add(0x1c4)],'sourceList':'','imgOnly':_0x224add(0x1c8),'removeCopyright':_0x224add(0x1c8),'localeName':this[_0x224add(0x1cf)][_0x224add(0x1a9)][_0x224add(0x1b8)],'externalSourcesEmbedCss':_0x224add(0x1a2)}),this[_0x224add(0x1e8)][_0x224add(0x1bf)]=_0x1ee99b=>{const _0x5ea4c8=_0x224add;if(_0x5ea4c8(0x1b6)==_0x1ee99b)return _0x5ea4c8(0x19e);},_0x50baa7[_0x224add(0x1b2)][_0x224add(0x1aa)][_0x224add(0x1c5)](this[_0x224add(0x1e8)]);}[_0x19e0f3(0x1da)](){const _0x1e79f7=_0x19e0f3;this[_0x1e79f7(0x1d1)]=_0x33cd1e(_0x50baa7[_0x1e79f7(0x1b2)],_0x1e79f7(0x1ad),{'ctx-name':_0x1e79f7(0x19a)+this[_0x1e79f7(0x1c4)]}),_0x50baa7[_0x1e79f7(0x1b2)][_0x1e79f7(0x1aa)][_0x1e79f7(0x1c5)](this[_0x1e79f7(0x1d1)]);}[_0x19e0f3(0x1b1)](){const _0x6a1a9b=_0x19e0f3,_0x3f9e17=this[_0x6a1a9b(0x1cf)][_0x6a1a9b(0x1d4)][_0x6a1a9b(0x1bd)](_0x6a1a9b(0x1a7));_0x3f9e17&&this[_0x6a1a9b(0x1d9)](_0x3f9e17,_0x6a1a9b(0x1ce),()=>{const _0x195266=_0x6a1a9b,_0x3adff8=this[_0x195266(0x1cf)][_0x195266(0x1ea)][_0x195266(0x1b2)][_0x195266(0x1cc)][_0x195266(0x1b9)]();_0x3adff8&&_0x3adff8[_0x195266(0x1cb)](_0x195266(0x1d6))&&this[_0x195266(0x1cf)][_0x195266(0x1b4)][_0x195266(0x1d2)][_0x195266(0x1bc)](_0x195266(0x1c6),()=>{const _0x4f748b=_0x195266;_0x5a1f4d(this[_0x4f748b(0x1cf)],_0x3adff8);});});const _0xa6d789=this[_0x6a1a9b(0x1cf)][_0x6a1a9b(0x1d4)][_0x6a1a9b(0x1bd)](_0x6a1a9b(0x1c3));_0xa6d789&&this[_0x6a1a9b(0x1d9)](_0xa6d789,_0x6a1a9b(0x1ce),()=>{const _0xa98f3d=_0x6a1a9b,_0x557929=this[_0xa98f3d(0x1cf)][_0xa98f3d(0x1ea)][_0xa98f3d(0x1b2)][_0xa98f3d(0x1cc)][_0xa98f3d(0x1b9)]();_0x557929&&_0x557929[_0xa98f3d(0x1cb)](_0xa98f3d(0x1d6))&&this[_0xa98f3d(0x1cf)][_0xa98f3d(0x1b4)][_0xa98f3d(0x1d2)][_0xa98f3d(0x1bc)](_0xa98f3d(0x1c6),()=>{const _0x1878f1=_0xa98f3d;_0x5a1f4d(this[_0x1878f1(0x1cf)],_0x557929);});});}}
23
+ const _0x5cfba5=_0x2271;(function(_0xda2bb1,_0x392556){const _0x32bfa4=_0x2271,_0x55e77c=_0xda2bb1();while(!![]){try{const _0x33c713=parseInt(_0x32bfa4(0xdf))/0x1*(parseInt(_0x32bfa4(0xb4))/0x2)+parseInt(_0x32bfa4(0xbe))/0x3+-parseInt(_0x32bfa4(0xd9))/0x4+parseInt(_0x32bfa4(0xb9))/0x5*(parseInt(_0x32bfa4(0xcf))/0x6)+parseInt(_0x32bfa4(0xae))/0x7*(parseInt(_0x32bfa4(0xeb))/0x8)+parseInt(_0x32bfa4(0xbb))/0x9+-parseInt(_0x32bfa4(0xb2))/0xa;if(_0x33c713===_0x392556)break;else _0x55e77c['push'](_0x55e77c['shift']());}catch(_0x186169){_0x55e77c['push'](_0x55e77c['shift']());}}}(_0x5ec9,0xee5da));import{Plugin as _0x409dfa}from'ckeditor5/src/core.js';function _0x2271(_0x7f4983,_0x4e4d28){const _0x5ec990=_0x5ec9();return _0x2271=function(_0x227197,_0x358452){_0x227197=_0x227197-0xa2;let _0x15d31a=_0x5ec990[_0x227197];return _0x15d31a;},_0x2271(_0x7f4983,_0x4e4d28);}import{Dialog as _0x5ce83d}from'ckeditor5/src/ui.js';import{createElement as _0x4ea8a4,global as _0x1c2d5a,uid as _0x3468c3}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x1e8b2b}from'./uploadcarecommand.js';function _0x5ec9(){const _0x43c16b=['true','678438BFcGdk','input[uploadcare-file-input]','isPremiumPlugin','closeMax','getSelectedElement','uc-upload-ctx-provider','replaceImageSource','view','render','destroy','5127800AuocVs','uploadcare','uploadcare.uploader','cleanupImage','requires','join','879829JbnIyG','extend','uc-config','_initImageProcessingIndicator','get','configElement','href','PictureEditing','uploadcareImageId','add','appendChild','uploadcare.pubkey','32uhryBQ','schema','uploadcareImageReplace','_initConversion','getAttribute','_initSchema','#uc-icon-arrow-down','iconHrefResolver','elementToAttribute','init','querySelector','_initConfig','fromCharCode','conversion','ctxElement','uploader-','contentLanguage','imageInline','attributeToAttribute','body','UploadcareEditing','once','ucContextId','imageBlock','3021067svckeD','config','removeAttribute','execute','39480920JfZUKI','_initCtx','4erjfJf','downcast','document','insertImage','selection','20dpNDfw','for','13877496cSKAVV','isRegistered','data-uc-image-id','2178510MvjBmp','\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','map','isOfficialPlugin','remove','editor','locale','pluginName','model','_configElement','editing','afterInit','_ctxElement','listenTo','upcast','commands'];_0x5ec9=function(){return _0x43c16b;};return _0x5ec9();}import{UploadcareUploadAdapter as _0x3c6c22}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x28d16b}from'./utils/editingutils.js';export class UploadcareEditing extends _0x409dfa{[_0x5cfba5(0xc7)]=null;[_0x5cfba5(0xca)]=null;static get[_0x5cfba5(0xc5)](){const _0x455f52=_0x5cfba5;return _0x455f52(0xaa);}static get[_0x5cfba5(0xdd)](){const _0x192067=_0x5cfba5;return[_0x192067(0xe6),_0x3c6c22,_0x5ce83d];}static get[_0x5cfba5(0xc1)](){return!0x0;}static get[_0x5cfba5(0xd1)](){return!0x0;}[_0x5cfba5(0xac)];get[_0x5cfba5(0xe4)](){const _0x27ad42=_0x5cfba5;return this[_0x27ad42(0xc7)];}get[_0x5cfba5(0xa4)](){const _0x2298b8=_0x5cfba5;return this[_0x2298b8(0xca)];}constructor(_0x54f774){const _0x206ced=_0x5cfba5;super(_0x54f774),this[_0x206ced(0xac)]=_0x3468c3();}[_0x5cfba5(0xf4)](){const _0xe28b97=_0x5cfba5,_0x46c81b=this[_0xe28b97(0xc3)];_0x46c81b[_0xe28b97(0xcd)][_0xe28b97(0xe8)](_0xe28b97(0xda),new _0x1e8b2b(_0x46c81b));}[_0x5cfba5(0xc9)](){const _0x4fa84d=_0x5cfba5;this[_0x4fa84d(0xf0)](),this[_0x4fa84d(0xee)](),this[_0x4fa84d(0xf6)](),this[_0x4fa84d(0xb3)](),this[_0x4fa84d(0xe2)](),this[_0x4fa84d(0xcb)](this[_0x4fa84d(0xc3)],_0x4fa84d(0xd8),()=>{const _0xb92bfb=_0x4fa84d;this[_0xb92bfb(0xc7)]&&(this[_0xb92bfb(0xc7)][_0xb92bfb(0xc2)](),this[_0xb92bfb(0xc7)]=null),this[_0xb92bfb(0xca)]&&(this[_0xb92bfb(0xca)][_0xb92bfb(0xc2)](),this[_0xb92bfb(0xca)]=null);const _0x5cf34b=_0x1c2d5a[_0xb92bfb(0xb6)][_0xb92bfb(0xf5)](_0xb92bfb(0xd0));_0x5cf34b&&_0x5cf34b[_0xb92bfb(0xc2)]();}),async function(_0xd144ba){const _0x1850c2=_0x361157([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x5d5aa2=0x3d8d0df,_0xe187d0=0x3dfa42f^_0x5d5aa2,_0x39414f=window[_0x361157([0x44,0x61,0x74,0x65])][_0x361157([0x6e,0x6f,0x77])](),_0x20ced9=_0xd144ba[_0x361157([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x94436b=new window[(_0x361157([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x275415=>{_0x20ced9[_0x361157([0x6f,0x6e,0x63,0x65])](_0x361157([0x72,0x65,0x61,0x64,0x79]),_0x275415);}),_0x1c2770={[_0x361157([0x6b,0x74,0x79])]:_0x361157([0x45,0x43]),[_0x361157([0x75,0x73,0x65])]:_0x361157([0x73,0x69,0x67]),[_0x361157([0x63,0x72,0x76])]:_0x361157([0x50,0x2d,0x32,0x35,0x36]),[_0x361157([0x78])]:_0x361157([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]),[_0x361157([0x79])]:_0x361157([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]),[_0x361157([0x61,0x6c,0x67])]:_0x361157([0x45,0x53,0x32,0x35,0x36])},_0x5dfb15=_0x20ced9[_0x361157([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x361157([0x67,0x65,0x74])](_0x361157([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x416b17(){let _0x421be4,_0x3e6b23=null,_0x3d43e1=null;try{if(_0x5dfb15==_0x361157([0x47,0x50,0x4c]))return _0x361157([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x421be4=_0x4e285d(),!_0x421be4)return _0x361157([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x421be4[_0x361157([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d43e1=_0x349691(_0x421be4[_0x361157([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x421be4[_0x361157([0x6a,0x74,0x69])])),await _0x2afe51()?_0x396430()?_0x310f16()?_0x361157([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47159e()?(_0x421be4[_0x361157([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x361157([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3e6b23=_0x4e9079(_0x361157([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x421be4[_0x361157([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x361157([0x74,0x72,0x69,0x61,0x6c])&&(_0x3e6b23=_0x4e9079(_0x361157([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3aed75()):_0x361157([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x361157([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x361157([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x361157([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x310f16(){const _0x533f0c=[_0x361157([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x361157([0x74,0x72,0x69,0x61,0x6c])][_0x361157([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x421be4[_0x361157([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x39414f/0x3e8:0xe10*_0xe187d0;return _0x421be4[_0x361157([0x65,0x78,0x70])]<_0x533f0c;}function _0x396430(){const _0x468c12=_0x421be4[_0x361157([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x468c12&&(!!_0x468c12[_0x361157([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x361157([0x2a]))||!!_0x468c12[_0x361157([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x361157([0x55,0x50,0x4c,0x43])));}function _0x47159e(){const _0x2b812b=_0x2271,_0x2fc2c3=_0x421be4[_0x361157([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2fc2c3||0x0==_0x2fc2c3[_0x361157([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3c2745}=new URL(window[_0x361157([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x2b812b(0xe5)]);if(_0x2fc2c3[_0x361157([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c2745))return!0x0;const _0x551e09=_0x3c2745[_0x361157([0x73,0x70,0x6c,0x69,0x74])](_0x361157([0x2e]));return _0x2fc2c3[_0x361157([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5490f6=>_0x5490f6[_0x361157([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x361157([0x2a])))[_0x361157([0x6d,0x61,0x70])](_0x10a62a=>_0x10a62a[_0x361157([0x73,0x70,0x6c,0x69,0x74])](_0x361157([0x2e])))[_0x361157([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf0325d=>_0xf0325d[_0x361157([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x551e09[_0x361157([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x361157([0x6d,0x61,0x70])](_0x402074=>Array(_0x551e09[_0x361157([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x402074[_0x361157([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x361157([0x66,0x69,0x6c,0x6c])](_0x402074[0x0]===_0x361157([0x2a])?_0x361157([0x2a]):'')[_0x361157([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x402074))[_0x361157([0x73,0x6f,0x6d,0x65])](_0x265591=>_0x551e09[_0x361157([0x65,0x76,0x65,0x72,0x79])]((_0x1b8620,_0x267b91)=>_0x265591[_0x267b91]===_0x1b8620||_0x265591[_0x267b91]===_0x361157([0x2a])));}function _0x3aed75(){return _0x3e6b23&&_0x3d43e1?new window[(_0x361157([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4664df,_0x4ac92f)=>{_0x3e6b23[_0x361157([0x74,0x68,0x65,0x6e])](_0x4664df,_0x4ac92f),_0x3d43e1[_0x361157([0x74,0x68,0x65,0x6e])](_0x515ec0=>{_0x515ec0!=_0x361157([0x56,0x61,0x6c,0x69,0x64])&&_0x4664df(_0x515ec0);},_0x4ac92f);}):_0x3e6b23||_0x3d43e1||_0x361157([0x56,0x61,0x6c,0x69,0x64]);}}function _0x349691(_0xede031,_0xce1d26){return new window[(_0x361157([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfe1f61=>{if(_0x51748c())return _0xfe1f61(_0x361157([0x56,0x61,0x6c,0x69,0x64]));_0x5804c2(),_0x20ced9[_0x361157([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x361157([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b1a72=!0x1;const _0x5ee0be=_0x3468c3();function _0x253011(_0x2271ec){return!!_0x2271ec&&(typeof _0x2271ec===_0x361157([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2271ec===_0x361157([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2271ec[_0x361157([0x74,0x68,0x65,0x6e])]===_0x361157([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2271ec[_0x361157([0x63,0x61,0x74,0x63,0x68])]===_0x361157([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x14d8f4(_0x49d466){_0x156ae6(_0x49d466)[_0x361157([0x74,0x68,0x65,0x6e])](_0xdfdcf1=>{if(!_0xdfdcf1||_0xdfdcf1[_0x361157([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x361157([0x6f,0x6b]))return _0x361157([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x17ece4(_0x47c1d1(_0x5ee0be+_0xce1d26))!=_0xdfdcf1[_0x361157([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x361157([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x361157([0x56,0x61,0x6c,0x69,0x64]);})[_0x361157([0x74,0x68,0x65,0x6e])](_0x30dde8=>(_0x2d6e21(),_0x30dde8),()=>{const _0xeba002=_0x347bd4();return null==_0xeba002?(_0x2d6e21(),_0x361157([0x56,0x61,0x6c,0x69,0x64])):_0x361157(_0x39414f-_0xeba002>(0x27d454df^_0x5d5aa2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x361157([0x74,0x68,0x65,0x6e])](_0xfe1f61)[_0x361157([0x63,0x61,0x74,0x63,0x68])](()=>{_0xfe1f61(_0x361157([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1394b6=0x3ee3e5f^_0x5d5aa2;function _0x2d6e21(){const _0x45700c=_0x361157([0x6c,0x6c,0x63,0x74,0x2d])+_0x17ece4(_0x47c1d1(_0xede031)),_0xef803a=_0x558722(_0x17ece4(window[_0x361157([0x4d,0x61,0x74,0x68])][_0x361157([0x63,0x65,0x69,0x6c])](_0x39414f/_0x1394b6)));window[_0x361157([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x361157([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45700c,_0xef803a);}function _0x347bd4(){const _0x4bfbc6=_0x361157([0x6c,0x6c,0x63,0x74,0x2d])+_0x17ece4(_0x47c1d1(_0xede031)),_0x915015=window[_0x361157([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x361157([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4bfbc6);return _0x915015?window[_0x361157([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x558722(_0x915015),0x10)*_0x1394b6:null;}function _0x156ae6(_0x4ee63c){return new window[(_0x361157([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x255ac4,_0x488836)=>{_0x4ee63c[_0x361157([0x74,0x68,0x65,0x6e])](_0x255ac4,_0x488836),window[_0x361157([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x488836,0x3d9041f^_0x5d5aa2);});}}_0x20ced9[_0x361157([0x6f,0x6e])](_0x361157([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12ecdc,_0x1915a2)=>{if(_0x1915a2[0x0]!=_0xede031)return _0xfe1f61(_0x361157([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1915a2[0x1]={..._0x1915a2[0x1],[_0x361157([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ee0be};},{[_0x361157([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x361157([0x68,0x69,0x67,0x68])}),_0x20ced9[_0x361157([0x6f,0x6e])](_0x361157([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x559d79=>{_0x253011(_0x559d79[_0x361157([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b1a72=!0x0,_0x14d8f4(_0x559d79[_0x361157([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x361157([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x361157([0x6c,0x6f,0x77])}),_0x94436b[_0x361157([0x74,0x68,0x65,0x6e])](()=>{_0x4b1a72||_0xfe1f61(_0x361157([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x51748c(){return _0x20ced9[_0x361157([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x361157([0x76,0x69,0x65,0x77])][_0x361157([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x361157([0x61,0x75,0x74,0x6f]);}function _0x5804c2(){_0x20ced9[_0x361157([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x361157([0x76,0x69,0x65,0x77])][_0x361157([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x361157([0x61,0x75,0x74,0x6f]);}}function _0x4e9079(_0x322df9){const _0x513b19=[new window[(_0x361157([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35570d=>setTimeout(_0x35570d,0x3d1ee13^_0x5d5aa2)),_0x94436b[_0x361157([0x74,0x68,0x65,0x6e])](()=>new window[(_0x361157([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ddbc8=>{let _0x143b20=0x0;_0x20ced9[_0x361157([0x6d,0x6f,0x64,0x65,0x6c])][_0x361157([0x6f,0x6e])](_0x361157([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5de352,_0x12a57b)=>{_0x12a57b[0x0][_0x361157([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x143b20++,_0x143b20==(0x3d8d127^_0x5d5aa2)&&(_0x4ddbc8(),_0x5de352[_0x361157([0x6f,0x66,0x66])]());});}))];return window[_0x361157([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x361157([0x72,0x61,0x63,0x65])](_0x513b19)[_0x361157([0x74,0x68,0x65,0x6e])](()=>_0x322df9);}async function _0x50f568(){await _0x94436b,_0x20ced9[_0x361157([0x6d,0x6f,0x64,0x65,0x6c])][_0x361157([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1d80b4,_0x20ced9[_0x361157([0x6d,0x6f,0x64,0x65,0x6c])][_0x361157([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1d80b4,_0x20ced9[_0x361157([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x361157([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x200c61(_0x11f73b){const _0x38bd7a=_0x196dae();_0x20ced9[_0x38bd7a]=_0x361157([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11f73b,_0x11f73b!=_0x361157([0x56,0x61,0x6c,0x69,0x64])&&_0x50f568();}function _0x196dae(){const _0x32b218=window[_0x361157([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x361157([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x361157([0x6e,0x6f,0x77])]())[_0x361157([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x361157([0x2e]),'');let _0x1818a9=_0x361157([0x52]);for(let _0x4d4e87=0x0;_0x4d4e87<_0x32b218[_0x361157([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d4e87+=0x2){let _0x596b8a=window[_0x361157([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32b218[_0x361157([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4d4e87,_0x4d4e87+0x2));_0x596b8a>=_0x1850c2[_0x361157([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x596b8a-=_0x1850c2[_0x361157([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1818a9+=_0x1850c2[_0x596b8a];}return _0x1818a9;}function _0x4e285d(){const _0x335c14=_0x5dfb15[_0x361157([0x73,0x70,0x6c,0x69,0x74])](_0x361157([0x2e]));if(0x3!=_0x335c14[_0x361157([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2da394(_0x335c14[0x1]);function _0x2da394(_0xbb16ab){const _0x1fec1a=_0x2e3d36(_0xbb16ab);return _0x1fec1a&&_0x5d6d97()?_0x1fec1a:null;function _0x5d6d97(){const _0x2bee06=_0x1fec1a[_0x361157([0x6a,0x74,0x69])],_0x559d97=window[_0x361157([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bee06[_0x361157([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bee06[_0x361157([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b9e48={..._0x1fec1a,[_0x361157([0x6a,0x74,0x69])]:_0x2bee06[_0x361157([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2bee06[_0x361157([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b9e48[_0x361157([0x76,0x63])],_0x47c1d1(_0x2b9e48)==_0x559d97;}}}async function _0x2afe51(){let _0x33eb4d=!0x0;try{const _0x3d75f9=_0x5dfb15[_0x361157([0x73,0x70,0x6c,0x69,0x74])](_0x361157([0x2e])),[_0x159d58,_0x273114,_0x1c3ea2]=_0x3d75f9;return _0x5bdaad(_0x159d58),await _0x44d025(_0x159d58,_0x273114,_0x1c3ea2),_0x33eb4d;}catch{return!0x1;}function _0x5bdaad(_0x3078e6){const _0x374fbe=_0x2e3d36(_0x3078e6);_0x374fbe&&_0x374fbe[_0x361157([0x61,0x6c,0x67])]==_0x361157([0x45,0x53,0x32,0x35,0x36])||(_0x33eb4d=!0x1);}async function _0x44d025(_0x162460,_0x5ccab2,_0xb93e4e){const _0x2ddaa2=window[_0x361157([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x361157([0x66,0x72,0x6f,0x6d])](_0x2a4c75(_0xb93e4e),_0x2a2a49=>_0x2a2a49[_0x361157([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16a848=new window[(_0x361157([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x361157([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x162460+_0x361157([0x2e])+_0x5ccab2),_0x24c888=window[_0x361157([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x361157([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x24c888)return;const _0x130d8f=await _0x24c888[_0x361157([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x361157([0x6a,0x77,0x6b]),_0x1c2770,{[_0x361157([0x6e,0x61,0x6d,0x65])]:_0x361157([0x45,0x43,0x44,0x53,0x41]),[_0x361157([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x361157([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x361157([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x24c888[_0x361157([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x361157([0x6e,0x61,0x6d,0x65])]:_0x361157([0x45,0x43,0x44,0x53,0x41]),[_0x361157([0x68,0x61,0x73,0x68])]:{[_0x361157([0x6e,0x61,0x6d,0x65])]:_0x361157([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x130d8f,_0x2ddaa2,_0x16a848)||(_0x33eb4d=!0x1);}}function _0x2e3d36(_0x1df2ca){return _0x1df2ca[_0x361157([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x361157([0x65,0x79]))?JSON[_0x361157([0x70,0x61,0x72,0x73,0x65])](_0x2a4c75(_0x1df2ca)):null;}function _0x2a4c75(_0x10e160){return window[_0x361157([0x61,0x74,0x6f,0x62])](_0x10e160[_0x361157([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x361157([0x2b]))[_0x361157([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x361157([0x2f])));}function _0x47c1d1(_0x167fe7){let _0xa95b8a=0x1505;function _0x27283f(_0x4a3a99){for(let _0xba6984=0x0;_0xba6984<_0x4a3a99[_0x361157([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xba6984++){const _0xccd4cd=_0x4a3a99[_0x361157([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xba6984);_0xa95b8a=(_0xa95b8a<<0x5)+_0xa95b8a+_0xccd4cd,_0xa95b8a&=_0xa95b8a;}}function _0x3cd075(_0x31acd4){Array[_0x361157([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x31acd4)?_0x31acd4[_0x361157([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3cd075):_0x31acd4&&typeof _0x31acd4==_0x361157([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x361157([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x31acd4)[_0x361157([0x73,0x6f,0x72,0x74])]()[_0x361157([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4be159,_0x1c46dd])=>{_0x27283f(_0x4be159),_0x3cd075(_0x1c46dd);}):_0x27283f(window[_0x361157([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x31acd4));}return _0x3cd075(_0x167fe7),_0xa95b8a>>>0x0;}function _0x17ece4(_0x2ebb40){return _0x2ebb40[_0x361157([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x361157([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x361157([0x30]));}function _0x558722(_0x4aacbf){return _0x4aacbf[_0x361157([0x73,0x70,0x6c,0x69,0x74])]('')[_0x361157([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x361157([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d80b4(){}function _0x361157(_0x35660b){const _0x494e2d=_0x2271;return _0x35660b[_0x494e2d(0xc0)](_0xc662e=>String[_0x494e2d(0xa2)](_0xc662e))[_0x494e2d(0xde)]('');}_0x200c61(await _0x416b17());}(this);}[_0x5cfba5(0xf0)](){const _0xcb3071=_0x5cfba5,_0x2e2169=this[_0xcb3071(0xc3)][_0xcb3071(0xc6)][_0xcb3071(0xec)];_0x2e2169[_0xcb3071(0xbc)](_0xcb3071(0xad))&&_0x2e2169[_0xcb3071(0xe0)](_0xcb3071(0xad),{'allowAttributes':[_0xcb3071(0xe7)]}),_0x2e2169[_0xcb3071(0xbc)](_0xcb3071(0xa7))&&_0x2e2169[_0xcb3071(0xe0)](_0xcb3071(0xa7),{'allowAttributes':[_0xcb3071(0xe7)]});}[_0x5cfba5(0xee)](){const _0x3815a2=_0x5cfba5,_0xb4b189=this[_0x3815a2(0xc3)];_0xb4b189[_0x3815a2(0xa3)][_0x3815a2(0xba)](_0x3815a2(0xb5))[_0x3815a2(0xa8)]({'model':_0x3815a2(0xe7),'view':_0x3815a2(0xbd)}),_0xb4b189[_0x3815a2(0xa3)][_0x3815a2(0xba)](_0x3815a2(0xcc))[_0x3815a2(0xf3)]({'model':{'key':_0x3815a2(0xe7),'value':_0x21d718=>_0x21d718[_0x3815a2(0xef)](_0x3815a2(0xbd))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x2d1ebc=_0xb4b189[_0x3815a2(0xcd)][_0x3815a2(0xe3)](_0x3815a2(0xd5));_0x2d1ebc&&this[_0x3815a2(0xcb)](_0x2d1ebc,_0x3815a2(0xdc),(_0x326cfb,[_0x550614,_0x687a95])=>{const _0x160896=_0x3815a2;_0x550614[_0x160896(0xb0)](_0x160896(0xe7),_0x687a95);});}[_0x5cfba5(0xf6)](){const _0x1893b7=_0x5cfba5,_0x2174c5=this[_0x1893b7(0xc3)][_0x1893b7(0xaf)][_0x1893b7(0xe3)](_0x1893b7(0xdb))||{},_0x1ec02c=this[_0x1893b7(0xc3)][_0x1893b7(0xaf)][_0x1893b7(0xe3)](_0x1893b7(0xea))||'';this[_0x1893b7(0xc7)]=_0x4ea8a4(_0x1c2d5a[_0x1893b7(0xb6)],_0x1893b7(0xe1),{..._0x2174c5,'pubkey':_0x1ec02c,'ctx-name':_0x1893b7(0xa5)+this[_0x1893b7(0xac)],'sourceList':'','imgOnly':_0x1893b7(0xce),'removeCopyright':_0x1893b7(0xce),'localeName':this[_0x1893b7(0xc3)][_0x1893b7(0xc4)][_0x1893b7(0xa6)],'externalSourcesEmbedCss':_0x1893b7(0xbf)}),this[_0x1893b7(0xc7)][_0x1893b7(0xf2)]=_0x132900=>{const _0x280f9e=_0x1893b7;if(_0x280f9e(0xd2)==_0x132900)return _0x280f9e(0xf1);},_0x1c2d5a[_0x1893b7(0xb6)][_0x1893b7(0xa9)][_0x1893b7(0xe9)](this[_0x1893b7(0xc7)]);}[_0x5cfba5(0xb3)](){const _0x5dabec=_0x5cfba5;this[_0x5dabec(0xca)]=_0x4ea8a4(_0x1c2d5a[_0x5dabec(0xb6)],_0x5dabec(0xd4),{'ctx-name':_0x5dabec(0xa5)+this[_0x5dabec(0xac)]}),_0x1c2d5a[_0x5dabec(0xb6)][_0x5dabec(0xa9)][_0x5dabec(0xe9)](this[_0x5dabec(0xca)]);}[_0x5cfba5(0xe2)](){const _0x29f14e=_0x5cfba5,_0x1c4e19=this[_0x29f14e(0xc3)][_0x29f14e(0xcd)][_0x29f14e(0xe3)](_0x29f14e(0xb7));_0x1c4e19&&this[_0x29f14e(0xcb)](_0x1c4e19,_0x29f14e(0xb1),()=>{const _0x1ee339=_0x29f14e,_0x316a46=this[_0x1ee339(0xc3)][_0x1ee339(0xc6)][_0x1ee339(0xb6)][_0x1ee339(0xb8)][_0x1ee339(0xd3)]();_0x316a46&&_0x316a46[_0x1ee339(0xef)](_0x1ee339(0xe7))&&this[_0x1ee339(0xc3)][_0x1ee339(0xc8)][_0x1ee339(0xd6)][_0x1ee339(0xab)](_0x1ee339(0xd7),()=>{const _0x40d349=_0x1ee339;_0x28d16b(this[_0x40d349(0xc3)],_0x316a46);});});const _0x21e771=this[_0x29f14e(0xc3)][_0x29f14e(0xcd)][_0x29f14e(0xe3)](_0x29f14e(0xed));_0x21e771&&this[_0x29f14e(0xcb)](_0x21e771,_0x29f14e(0xb1),()=>{const _0x13b005=_0x29f14e,_0x55f8cb=this[_0x13b005(0xc3)][_0x13b005(0xc6)][_0x13b005(0xb6)][_0x13b005(0xb8)][_0x13b005(0xd3)]();_0x55f8cb&&_0x55f8cb[_0x13b005(0xef)](_0x13b005(0xe7))&&this[_0x13b005(0xc3)][_0x13b005(0xc8)][_0x13b005(0xd6)][_0x13b005(0xab)](_0x13b005(0xd7),()=>{const _0x1b4959=_0x13b005;_0x28d16b(this[_0x1b4959(0xc3)],_0x55f8cb);});});}}