@ckeditor/ckeditor5-uploadcare 44.2.0-alpha.7 → 44.2.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/uploadcare.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +8 -8
- package/src/index.js +1 -1
- package/src/ui/uploadcarecontroller.js +2 -2
- package/src/ui/uploadcareformview.js +1 -1
- package/src/uploadcare.js +1 -1
- package/src/uploadcarecommand.js +1 -1
- package/src/uploadcareconfig.d.ts +2 -2
- package/src/uploadcareconfig.js +1 -1
- package/src/uploadcareediting.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
- package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
- package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
- package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
- package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
- package/src/uploadcareimageedit.js +1 -1
- package/src/uploadcareui.js +1 -1
- package/src/uploadcareuploadadapter.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/dialogfocusmanagerview.js +1 -1
- package/src/utils/editingutils.js +1 -1
- package/src/utils/isancestor.js +1 -1
- package/src/utils/uploadutils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xc9bb13,icons as _0x5eecbe,Command as _0x5f43c1}from'@ckeditor/ckeditor5-core/dist/index.js';import{ButtonView as _0x335ad,MenuBarMenuListItemButtonView as _0x518d0e,View as _0x2dc8da,FocusCycler as _0x4a5e29,Dialog as _0x97aa65,DialogViewPosition as _0x57d3e7,SpinnerView as _0x1e1fbe,IconView as et,Notification as _0x4658d8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x51a72a,DomEmitterMixin as _0x4e871e,global as _0x123042,getAncestors as _0x45cfde,ObservableMixin as _0x1449d6,createElement as _0x315b84,uid as _0x1c0c72}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x1f2ac9}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x1a815e,info as _0x5b9ca0}from'@uploadcare/upload-client';import*as _0x13e66d from'@uploadcare/file-uploader';var o=function(_0x1444e8){return _0x1444e8['Local']='local',_0x1444e8['URL']='url',_0x1444e8['Dropbox']='dropbox',_0x1444e8['GDrive']='gdrive',_0x1444e8['Facebook']='facebook',_0x1444e8['GPhotos']='gphotos',_0x1444e8['OneDrive']='onedrive',_0x1444e8;}({});function _(_0x2d4026,_0x54061b,_0x2c8de9){const t=_0x2d4026['t'],_0x5ca837=_0x2d4026['t'];switch(_0x54061b){case o['Local']:return{'text':_0x5ca837('Insert'===_0x2c8de9?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x5ca837('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x2c8de9?_0x5ca837('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x5ca837('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x2c8de9?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x2c8de9?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x2c8de9?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x2c8de9?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x2c8de9?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x54061b;}}class e extends _0xc9bb13{['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 _0x304eb4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x539e9f;for(const _0x567a7e in _0x304eb4){const _0x1b2a0e=_0x567a7e,_0x25ac6d=_0x304eb4[_0x1b2a0e];if('uploadcareLicenseKeyValid'==_0x25ac6d||'uploadcareLicenseKeyInvalid'==_0x25ac6d||'uploadcareLicenseKeyExpired'==_0x25ac6d||'uploadcareLicenseKeyDomainLimit'==_0x25ac6d||'uploadcareLicenseKeyNotAllowed'==_0x25ac6d||'uploadcareLicenseKeyEvaluationLimit'==_0x25ac6d||'uploadcareLicenseKeyTrialLimit'==_0x25ac6d||'uploadcareLicenseKeyUsageLimit'==_0x25ac6d){delete _0x304eb4[_0x1b2a0e],_0x539e9f=_0x25ac6d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x539e9f&&_0x304eb4['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x539e9f&&_0x304eb4['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x539e9f&&_0x304eb4['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x539e9f&&_0x304eb4['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x539e9f&&_0x304eb4['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x539e9f&&_0x304eb4['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x539e9f&&_0x304eb4['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x4f507d}=this,_0x531c6b=_0x4f507d['commands']['get']('uploadcare');if(!_0x531c6b)return;const _0x53980a=this['_normalizeConfigSourceList'](_0x4f507d['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x291c8e,_0x352f5f)=>{const _0x27f130=this['_getIntegrationKey'](_0x352f5f['type']);return _0x291c8e[_0x27f130]||(_0x291c8e[_0x27f130]=[]),_0x291c8e[_0x27f130]['push'](_0x352f5f),_0x291c8e;},{});_0x4f507d['plugins']['has']('ImageInsertUI')&&_0x4f507d['commands']['get']('uploadcare')&&Object['entries'](_0x53980a)['forEach'](([_0x124ce3,_0x55ed1d])=>{_0x4f507d['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x124ce3,'observable':()=>_0x531c6b,'buttonViewCreator':()=>this['_createToolbarButton'](_0x55ed1d),'formViewCreator':()=>this['_createDropdownButtons'](_0x55ed1d),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x55ed1d),'override':'assetManager'!==_0x124ce3});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x33f22d){const {locale:_0x31ce72}=this['editor'];return _0x33f22d['map'](_0x4156a7=>{const _0x451f6f=_(_0x31ce72,_0x4156a7,'Insert');switch(_0x4156a7){case o['Local']:return{'icon':_0x5eecbe['imageUpload'],'type':o['Local'],..._0x451f6f};case o['URL']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M12.748\x202a4.622\x204.622\x200\x200\x200-3.174\x201.362L8.02\x204.915a.783.783\x200\x200\x200\x20.002\x201.11.786.786\x200\x200\x200\x201.11\x200l1.55-1.553c1.185-1.185\x203.024-1.195\x204.116-.104l.851.854c1.092\x201.091\x201.083\x202.927-.101\x204.11l-1.555\x201.554a.787.787\x200\x200\x200\x20.557\x201.34.78.78\x200\x200\x200\x20.553-.23l1.554-1.552c1.758-1.757\x201.838-4.597.102-6.332l-.854-.853A4.31\x204.31\x200\x200\x200\x2012.748\x202Zm-.488\x204.973a.78.78\x200\x200\x200-.553.23L7.2\x2011.71l-.004.002a.784.784\x200\x200\x200\x201.11\x201.107l.003-.002\x204.504-4.505a.785.785\x200\x200\x200-.554-1.339Zm-6.79.815a.791.791\x200\x200\x200-.554.234L3.36\x209.573c-1.757\x201.758-1.836\x204.597-.101\x206.332l.853.852c1.736\x201.734\x204.572\x201.655\x206.33-.102l1.547-1.547.006-.008a.777.777\x200\x200\x200\x20.244-.554.782.782\x200\x200\x200-.799-.797.774.774\x200\x200\x200-.56.248l-1.545\x201.547c-1.184\x201.184-3.021\x201.195-4.113.104l-.854-.854c-1.091-1.091-1.083-2.927.102-4.111l1.552-1.555a.787.787\x200\x200\x200\x20.233-.555.79.79\x200\x200\x200-.06-.3.793.793\x200\x200\x200-.173-.253s-.104-.14-.183-.185c-.051-.03-.133-.047-.37-.047Z\x22/></svg>\x0a','type':o['URL'],..._0x451f6f};case o['Dropbox']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M5.972\x203.115A.746.746\x200\x200\x201\x206.374\x203c.14\x200\x20.28.037.402.115l3.229\x202.059\x203.228-2.057a.75.75\x200\x200\x201\x20.805\x200l3.629\x202.31h.002a.757.757\x200\x200\x201\x200\x201.264h-.002L15.034\x208.37l2.633\x201.678h.002a.756.756\x200\x200\x201\x200\x201.262h-.002l-3.63\x202.312a.746.746\x200\x200\x201-.161.076c.234.08.409.275.482.5a.75.75\x200\x200\x201-.322.854l-3.629\x202.308a.75.75\x200\x200\x201-.805\x200l-3.63-2.31a.75.75\x200\x200\x201-.229-1.031l.076-.122h.022a.746.746\x200\x200\x201\x20.32-.189.75.75\x200\x200\x201-.19-.086l-3.63-2.312a.756.756\x200\x200\x201\x200-1.264l2.632-1.678-2.632-1.676a.757.757\x200\x200\x201\x200-1.263l3.63-2.313Zm2.64\x202.946L6.374\x204.635\x204.136\x206.06l2.238\x201.423\x202.238-1.423Zm7.262\x200-2.236-1.426-2.239\x201.426\x202.237\x201.423\x202.238-1.423Zm-3.637\x202.306-2.232-1.422-2.233\x201.422\x202.235\x201.422\x202.23-1.422Zm-3.625\x202.31L6.374\x209.253l-2.238\x201.426\x202.238\x201.424\x202.238-1.424Zm7.262\x200-2.236-1.425-2.239\x201.426\x202.237\x201.424\x202.238-1.424Zm-2.64\x202.944-3.23-2.056-3.228\x202.056a.75.75\x200\x200\x201-.185.084.724.724\x200\x200\x201\x20.185.08l3.229\x202.057\x203.226-2.055a.827.827\x200\x200\x201\x20.18-.084.746.746\x200\x200\x201-.178-.082Z\x22/></svg>\x0a','type':o['Dropbox'],..._0x451f6f};case o['Facebook']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M10.01\x202C5.59\x202\x202\x205.59\x202\x2010.01a8.011\x208.011\x200\x200\x200\x206.775\x207.914.754.754\x200\x200\x200\x20.598-.17.75.75\x200\x200\x200\x20.262-.565v-5.02a.745.745\x200\x200\x200-.22-.524.745.745\x200\x200\x200-.526-.221H7.77v-.627H8.89a.745.745\x200\x200\x200\x20.525-.22c.14-.14.22-.329.22-.526V8.324c0-.466.122-1.083.524-1.48.33-.326\x201.017-.6\x202.332-.43v.408c-.152.012-.305.017-.457.04-.335.048-.662.136-.943.326-.313.21-.497.505-.59.804-.093.3-.107.602-.107.88v1.18a.746.746\x200\x200\x200\x20.744.746h1.158l-.098.63h-1.06a.744.744\x200\x200\x200-.744.744v5.017a.752.752\x200\x200\x200\x20.26.567c.081.07.177.119.28.148a.75.75\x200\x200\x200\x20.319.022A8.012\x208.012\x200\x200\x200\x2010.01\x202Zm0\x201.486a6.52\x206.52\x200\x200\x201\x206.521\x206.524c0\x202.945-1.973\x205.386-4.65\x206.197v-3.291h.951a.749.749\x200\x200\x200\x20.736-.63l.332-2.12a.742.742\x200\x200\x200-.17-.6.745.745\x200\x200\x200-.564-.26h-1.285V8.87c0-.252.024-.384.039-.433.003-.008.002-.012.002-.016.016-.011.104-.055.326-.088a7\x207\x200\x200\x201\x20.984-.05.746.746\x200\x200\x200\x20.528-.218c.14-.139.217-.33.217-.527V5.76a.747.747\x200\x200\x200-.586-.729c-2.04-.438-3.433-.083-4.278.75-.818.807-.968\x201.884-.968\x202.543v.983H7.027a.744.744\x200\x200\x200-.525.22.743.743\x200\x200\x200-.219.526v2.119c0\x20.197.08.386.219.525.14.14.328.221.525.221h1.118v3.291c-2.681-.809-4.659-3.25-4.659-6.197a6.523\x206.523\x200\x200\x201\x206.524-6.526Z\x22/></svg>\x0a','type':o['Facebook'],..._0x451f6f};case o['GDrive']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M7.666\x203a.736.736\x200\x200\x200-.371.1.748.748\x200\x200\x200-.275.267l-4.918\x208.397a.743.743\x200\x200\x200-.006.744l2.46\x204.318a.747.747\x200\x200\x200\x20.65.377h9.606a.754.754\x200\x200\x200\x20.65-.377l2.46-4.318a.74.74\x200\x200\x200\x20.002-.735l-4.688-8.392a.754.754\x200\x200\x200-.654-.38H7.666Zm1.285\x201.492h3.195l3.854\x206.9h-3.1l-3.949-6.9Zm-1.293.742L9.223\x207.97l-4.016\x206.988-1.6-2.813\x204.051-6.91Zm2.424\x204.237\x201.098\x201.922H8.977l1.105-1.922ZM8.12\x2012.885h7.87L14.38\x2015.71H6.494l1.625-2.826Z\x22/></svg>\x0a','type':o['GDrive'],..._0x451f6f};case o['GPhotos']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M9.258\x203.082c0-.594.486-1.082\x201.08-1.082a4.38\x204.38\x200\x200\x201\x204.239\x205.489c-.18.688-.633\x201.245-1.109\x201.767h3.468c.595\x200\x201.082.488\x201.082\x201.082a4.382\x204.382\x200\x200\x201-5.49\x204.24v-.001c-.689-.18-1.246-.633-1.768-1.109v3.468c0\x20.595-.487\x201.082-1.082\x201.082a4.384\x204.384\x200\x200\x201-4.111-2.866\x204.382\x204.382\x200\x200\x201-.125-2.624c.18-.689.632-1.246\x201.108-1.768H3.082A1.085\x201.085\x200\x200\x201\x202\x209.68a4.382\x204.382\x200\x200\x201\x205.49-4.238c.69.18\x201.246.632\x201.768\x201.108V3.082Zm3.164\x201.32c-.435-.46-1.043-.667-1.662-.767v5.49c.619-.1\x201.227-.307\x201.662-.766a2.875\x202.875\x200\x200\x200\x200-3.958ZM7.21\x206.918a2.876\x202.876\x200\x200\x200-2.93.789c-.396.423-.569.983-.658\x201.55h5.56c-.045-.295-.091-.59-.224-.859a2.879\x202.879\x200\x200\x200-1.748-1.48Zm9.254\x203.841h-5.653l.013.1c.012.098.025.197.053.292a2.873\x202.873\x200\x200\x200\x204.862\x201.158\x202.87\x202.87\x200\x200\x200\x20.398-.54v-.001c.111-.195.2-.403.263-.619.026-.092.038-.188.05-.283l.014-.107Zm-8.872\x204.86c.437.459\x201.045.666\x201.665.766V10.89c-1.369.222-2.456\x201.314-2.456\x202.747\x200\x20.738.283\x201.447.791\x201.981Z\x22/></svg>\x0a','type':o['GPhotos'],..._0x451f6f};case o['OneDrive']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M10.223\x205.001a5.277\x205.277\x200\x200\x200-4.408\x202.258c-3.224.423-4.908\x204.123-3.032\x206.814l.004.008.002.004c.48.627\x201.712\x201.84\x203.588\x201.84h7.936c.667\x200\x201.32-.179\x201.894-.522a3.838\x203.838\x200\x200\x200\x201.381-1.46v-.005c1.13-2.16-.133-4.777-2.488-5.298-.617-1.853-2.177-3.242-4.111-3.565a5.273\x205.273\x200\x200\x200-.766-.074Zm-.092\x201.5c.078\x200\x20.154.001.23.008.077.004.154.014.231.021l.226.035a5.203\x205.203\x200\x200\x201\x20.45.116\x203.31\x203.31\x200\x200\x201\x20.433.166\x204.079\x204.079\x200\x200\x201\x20.606.348\x204.195\x204.195\x200\x200\x201\x20.37.293\x203.54\x203.54\x200\x200\x201\x20.33.348\x203.517\x203.517\x200\x200\x201\x20.505.778\x203.182\x203.182\x200\x200\x200-.42.117c-.082.03-.164.06-.244.094l-1.49.627-2.686-1.61a4.39\x204.39\x200\x200\x200-1.002-.445c.015-.01.032-.026.047-.039a3.744\x203.744\x200\x200\x201\x20.4-.289\x203.713\x203.713\x200\x200\x201\x20.424-.23\x203.02\x203.02\x200\x200\x201\x20.219-.094c.074-.03.15-.053.225-.076a3.77\x203.77\x200\x200\x201\x20.222-.06c.077-.02.157-.035.233-.05.075-.015.15-.025.228-.033.077-.007.154-.015.233-.02.078-.003.154-.005.23-.005Zm-3.8\x202.193h.003c.54.001\x201.111.156\x201.551.428l1.783\x201.07-5.867\x202.471c-.535-1.29-.15-2.788\x201.059-3.537l.007-.004c.441-.271.946-.42\x201.463-.428Zm7.974\x201.33.152.008c.086.008.173.018.258.033a1.956\x201.956\x200\x200\x201\x20.477.145\x202.179\x202.179\x200\x200\x201\x20.918.756c.046.066.09.133.127.2a2.284\x202.284\x200\x200\x201\x20.269.919c.004.081.008.165.002.248-.003.055-.012.111-.02.166l-3.507-2.102.459-.193.015-.008a2.118\x202.118\x200\x200\x201\x20.41-.125\x202.297\x202.297\x200\x200\x201\x20.44-.047Zm-3.008\x201.112\x204.506\x202.699a2.217\x202.217\x200\x200\x201-.338.26\x202.228\x202.228\x200\x200\x201-.668.275c-.078.019-.157.03-.24.04-.081.007-.164.015-.246.015H6.373c-.057\x200-.113-.001-.168-.004a1.904\x201.904\x200\x200\x201-.164-.016l-.154-.023c-.051-.008-.102-.014-.15-.026a2.942\x202.942\x200\x200\x201-.77-.3\x202.889\x202.889\x200\x200\x201-.21-.133c-.012-.008-.019-.016-.03-.024l6.57-2.763Z\x22/></svg>\x0a','type':o['OneDrive'],..._0x451f6f};}});}['_getIntegrationKey'](_0x436206){switch(_0x436206){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x2d3f5a,_0x1f6c2c){const _0x3d4fca=this['editor'],_0x52bab1=new _0x2d3f5a(_0x3d4fca['locale']),_0x545cfc=_0x3d4fca['commands']['get']('uploadcare');return _0x52bab1['bind']('isEnabled')['to'](_0x545cfc),_0x52bab1['on']('execute',()=>{_0x545cfc['execute'](_0x1f6c2c);}),_0x52bab1;}['_createToolbarButton'](_0xc4c215){const {locale:_0x11558f}=this['editor'],_0x3d4998=this['editor']['plugins']['get']('ImageInsertUI'),_0x5f4cb8=_0xc4c215[0x0],_0x37abb5=this['_createButton'](_0x335ad,_0x5f4cb8['type']);return _0x37abb5['icon']=_0x5f4cb8['icon'],_0x37abb5['bind']('label')['to'](_0x3d4998,'isImageSelected',_0x417ece=>_(_0x11558f,_0x5f4cb8['type'],_0x417ece?'Replace':'Insert')['text']),_0x37abb5['tooltip']=!0x0,_0x37abb5;}['_createDropdownButtons'](_0x364a56){const {locale:_0x466b9a}=this['editor'],_0x25d01c=this['editor']['plugins']['get']('ImageInsertUI');return _0x364a56['map'](_0x3df577=>{const _0x4c3fbb=this['_createButton'](_0x335ad,_0x3df577['type']);return _0x4c3fbb['withText']=!0x0,_0x4c3fbb['icon']=_0x3df577['icon'],_0x4c3fbb['bind']('label')['to'](_0x25d01c,'isImageSelected',_0x1682b5=>_(_0x466b9a,_0x3df577['type'],_0x1682b5?'Replace':'Insert')['text']),_0x4c3fbb;});}['_createMenuBarButtons'](_0x3512b8){return _0x3512b8['map'](_0x46b595=>{const _0x416c25=this['_createButton'](_0x518d0e,_0x46b595['type']);return _0x416c25['icon']=_0x46b595['icon'],_0x416c25['label']=_0x46b595['shortText'],_0x416c25;});}}class q extends _0x2dc8da{['focusTracker'];['focusCycler'];constructor(_0x6cccb8){super(_0x6cccb8),this['focusTracker']=new _0x51a72a(),this['focusCycler']=new _0x4a5e29({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x4c4b8f){super(_0x4c4b8f),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0xc41c18,_0x21ec7b){const _0x2b835e=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x4a60d3=>_0x4a60d3<=_0x21ec7b)['map'](_0x48dfa1=>_0xc41c18['replace'](/\/$/,'')+'/-/resize/'+_0x48dfa1+'x/\x20'+_0x48dfa1+'w');return{'imageFallbackUrl':_0xc41c18,'imageSources':[{'srcset':_0x2b835e['join'](',\x20'),'sizes':'(max-width:\x20'+_0x21ec7b+'px)\x20100vw,\x20'+_0x21ec7b+'px','type':'image/webp'}]};}function A(_0x1a0d60,_0xc82d79,_0x1e8383){const _0x503602=_0x1a0d60['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x503602?parseInt(_0x503602[0x1],0xa):_0xc82d79,'height':_0x503602?parseInt(_0x503602[0x2],0xa):_0x1e8383};}function p(_0x362098,_0x3895a4){const _0x1c38ad=Object['create'](_0x4e871e),_0x678451=_0x362098['plugins']['get']('ImageUtils'),_0x5645df=_0x362098['editing']['mapper']['toViewElement'](_0x3895a4),_0x2d395a=_0x678451['findViewImgElement'](_0x5645df),_0x3c80f2=_0x362098['editing']['view']['domConverter']['viewToDom'](_0x2d395a),_0x21521b=_0x3895a4['getAttribute']('width'),_0x325a06=_0x3895a4['getAttribute']('height'),_0x2d6215='image-processing';_0x362098['editing']['view']['change'](_0x2d1fa1=>{_0x2d1fa1['addClass'](_0x2d6215,_0x5645df),_0x2d1fa1['setStyle']('aspect-ratio',_0x21521b+'/'+_0x325a06,_0x2d395a);}),_0x1c38ad['listenTo'](_0x3c80f2,'load',()=>{_0x1c38ad['stopListening'](_0x3c80f2,'load'),_0x362098['editing']['view']['change'](_0x29c93c=>{_0x29c93c['removeClass'](_0x2d6215,_0x5645df),_0x29c93c['removeStyle']('aspect-ratio',_0x2d395a);});});}function R(_0x176538){if(Array['isArray'](_0x176538)){const _0xc9ccd7=_0x176538['map'](R);return _0x5d511c=>_0xc9ccd7['some'](_0x5d47e0=>_0x5d47e0(_0x5d511c));}if('origin'==_0x176538){const _0x3a17b1=_0x123042['window']['location']['origin'];return _0x1ad88a=>new URL(_0x1ad88a,_0x123042['document']['baseURI'])['origin']==_0x3a17b1;}return'function'==typeof _0x176538?_0x176538:_0x176538 instanceof RegExp?_0x2b13e8=>!(!_0x2b13e8['match'](_0x176538)&&!_0x2b13e8['replace'](/^https?:\/\//,'')['match'](_0x176538)):()=>!0x1;}function F(_0x55b43f,_0x1fad87){return _0x45cfde(_0x55b43f['target'])['includes'](_0x1fad87);}class h extends/* #__PURE__ -- @preserve */
|
|
24
|
-
_0x1449d6(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x5657f4,_0x5f2f60,_0x490d31){super(),this['_editor']=_0x5657f4,this['_editing']=_0x5f2f60,this['_dialog']=_0x5657f4['plugins']['get'](_0x97aa65),this['_api']=_0x5f2f60['ctxElement']['getAPI'](),this['_type']=_0x490d31,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:_0xeb20d4,model:_0x5b2214}=this['_editor'],_0x27c562=_0x5b2214['document']['selection']['getSelectedElement'](),_0x3a3629=_0x27c562&&(_0x27c562['is']('element','imageBlock')||_0x27c562['is']('element','imageInline'));this['_formView']=new S(_0xeb20d4),this['_dialog']['show']({'id':'uploadCare','icon':_0x5eecbe['imageUpload'],'title':_(_0xeb20d4,this['_type'],_0x3a3629?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x57d3e7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x44af80=>!F(_0x44af80,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0xfc214f}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x2a6365=>{const _0x2a84c0=_0xfc214f['length'];for(const _0x542468 of _0xfc214f){const _0x5efede=_0x542468===_0xfc214f[_0x2a84c0-0x1],{cdnUrl:_0x2f5d57,fileInfo:_0x13993f}=_0x542468;if(!_0x2f5d57||!_0x13993f)continue;const {width:_0x3dee9d,height:_0x15e015}=_0x13993f['imageInfo'],_0x4410be=A(_0x2f5d57,_0x3dee9d,_0x15e015),_0x33cf73=C(_0x2f5d57,_0x4410be['width']),_0x4598c1={'id':_0x13993f['uuid'],'type':'image','attributes':{'imageDimension':_0x4410be,..._0x33cf73}};this['_insertAsset'](_0x4598c1,_0x5efede,_0x2a6365);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x345fa2=>{'idle'===_0x345fa2['detail']['status']&&!_0x345fa2['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x141706,_0x19d126,_0x2cf4d7){const _0xbab921=this['_editor']['model']['document']['selection'],_0x3e31f2=_0xbab921['getSelectedElement'](),_0x349e41=!(!_0x3e31f2||!_0x3e31f2['is']('element','imageInline'));_0x2cf4d7['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x141706,_0x349e41),_0x19d126||_0x2cf4d7['setSelection'](_0xbab921['getLastPosition']());}['_insertImage'](_0x4da2c9,_0x5924db){const _0x4132ca=this['_editor'],{imageDimension:_0x596e06,imageFallbackUrl:_0x14c7be,imageSources:_0x32708b}=_0x4da2c9['attributes'];_0x4132ca['execute']('insertImage',{'imageType':_0x5924db?'imageInline':null,'source':{'uploadcareImageId':_0x4da2c9['id'],'src':_0x14c7be,'sources':_0x32708b,..._0x596e06}});}}class l extends _0x5f43c1{['_editing'];['_controller']=null;static get['requires'](){return[_0x97aa65,i];}constructor(_0x536b01){super(_0x536b01),this['_editing']=_0x536b01['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x5f0a85){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new h(this['editor'],this['_editing'],_0x5f0a85);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class k{static['upload']({file:_0x1c1ce7,publicKey:_0x2c176e,signal:_0xe6e2e3,onProgress:_0x2933eb}){return _0x1a815e(_0x1c1ce7,{'publicKey':_0x2c176e,'store':'auto','signal':_0xe6e2e3,'onProgress':_0x2933eb});}static['getInfo'](_0x54b44d,_0x5bc659){return _0x5b9ca0(_0x54b44d,_0x5bc659);}}class f extends _0xc9bb13{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x1f2ac9,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x2f795c=this['editor'];if(!!!_0x2f795c['config']['get']('uploadcare'))return;_0x2f795c['plugins']['get'](_0x1f2ac9)['createUploadAdapter']=_0x17685f=>new E(_0x17685f,_0x2f795c),_0x2f795c['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x35efc7,{imageElement:_0x538590,data:_0x244948})=>{_0x2f795c['model']['change'](_0xbd3180=>{_0xbd3180['setAttribute']('uploadcareImageId',_0x244948['uploadcareImageId'],_0x538590);});});}}class E{['loader'];['editor'];['controller'];constructor(_0x1f7958,_0x270409){this['loader']=_0x1f7958,this['editor']=_0x270409,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3aacdf=this['editor']['config']['get']('uploadcare.pubkey'),_0x2abce9=await this['loader']['file'];return k['upload']({'file':_0x2abce9,'publicKey':_0x3aacdf,'signal':this['controller']['signal'],'onProgress':_0x294795=>{_0x294795&&_0x294795['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x294795['value']);}})['then'](async _0x234d69=>{const {imageFallbackUrl:_0x6d0377,imageSources:_0xbca67}=C(_0x234d69['cdnUrl'],_0x234d69['imageInfo']['width']);return{'uploadcareImageId':_0x234d69['uuid'],'default':_0x6d0377,'sources':_0xbca67};})['catch'](()=>{const _0x55cecd=t('Cannot\x20upload\x20file:')+('\x20'+_0x2abce9['name']+'.');return Promise['reject'](_0x55cecd);});}['abort'](){this['controller']['abort']();}}class i extends _0xc9bb13{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x97aa65];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x15351b=this['editor'];_0x15351b['commands']['add']('uploadcare',new l(_0x15351b));}['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 _0xa0fee7=_0x123042['document']['querySelector']('input[uploadcare-file-input]');_0xa0fee7&&_0xa0fee7['remove']();}),async function(_0x3dfc9a){const _0x1f33e4=_0x1c423c([0x55,0x37,0x32,0x54,0x72,0x41,0x44,0x33,0x79,0x53,0x78,0x48,0x4c,0x6b,0x64,0x6f,0x68,0x4f,0x36,0x50,0x39,0x69,0x56,0x51,0x5a,0x6d,0x42,0x49,0x6c,0x77,0x4d,0x71,0x73,0x4e,0x7a,0x34,0x67,0x74,0x4b,0x76,0x38,0x62,0x6e,0x75,0x35,0x70,0x46,0x6a,0x65,0x66,0x61,0x58,0x4a,0x30,0x57,0x59,0x31,0x63,0x47,0x43,0x45,0x52]),_0x3d823b=0x51d5e13e,_0x51ef83=0x51d2bfb6^_0x3d823b,_0xd8edcd=window[_0x1c423c([0x44,0x61,0x74,0x65])][_0x1c423c([0x6e,0x6f,0x77])](),_0x578861=_0x3dfc9a[_0x1c423c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5ce46b=new window[(_0x1c423c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18d4c0=>{_0x578861[_0x1c423c([0x6f,0x6e,0x63,0x65])](_0x1c423c([0x72,0x65,0x61,0x64,0x79]),_0x18d4c0);}),_0x307b15={[_0x1c423c([0x6b,0x74,0x79])]:_0x1c423c([0x45,0x43]),[_0x1c423c([0x75,0x73,0x65])]:_0x1c423c([0x73,0x69,0x67]),[_0x1c423c([0x63,0x72,0x76])]:_0x1c423c([0x50,0x2d,0x32,0x35,0x36]),[_0x1c423c([0x78])]:_0x1c423c([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]),[_0x1c423c([0x79])]:_0x1c423c([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]),[_0x1c423c([0x61,0x6c,0x67])]:_0x1c423c([0x45,0x53,0x32,0x35,0x36])},_0x46f98a=_0x578861[_0x1c423c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c423c([0x67,0x65,0x74])](_0x1c423c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c2e18(){let _0xc300bb,_0x5bcb6a=null,_0xecb023=null;try{if(_0x46f98a==_0x1c423c([0x47,0x50,0x4c]))return _0x1c423c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xc300bb=_0x578274(),!_0xc300bb)return _0x1c423c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xc300bb[_0x1c423c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xecb023=_0x3e93fc(_0xc300bb[_0x1c423c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xc300bb[_0x1c423c([0x6a,0x74,0x69])])),await _0x2b10af()?_0x4d4286()?_0x226bd7()?_0x1c423c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4b12a0()?(_0xc300bb[_0x1c423c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c423c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5bcb6a=_0x2a2d2(_0x1c423c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xc300bb[_0x1c423c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c423c([0x74,0x72,0x69,0x61,0x6c])&&(_0x5bcb6a=_0x2a2d2(_0x1c423c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x15f5c3()):_0x1c423c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c423c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c423c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2666f6){return _0x1c423c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x226bd7(){const _0x1fda2c=[_0x1c423c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c423c([0x74,0x72,0x69,0x61,0x6c])][_0x1c423c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc300bb[_0x1c423c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd8edcd/0x3e8:0xe10*_0x51ef83;return _0xc300bb[_0x1c423c([0x65,0x78,0x70])]<_0x1fda2c;}function _0x4d4286(){const _0x4b726e=_0xc300bb[_0x1c423c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4b726e&&(!!_0x4b726e[_0x1c423c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c423c([0x2a]))||!!_0x4b726e[_0x1c423c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c423c([0x55,0x50,0x4c,0x43])));}function _0x4b12a0(){const _0xc49fda=_0xc300bb[_0x1c423c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc49fda||0x0==_0xc49fda[_0x1c423c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3a3dc1}=new URL(window[_0x1c423c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xc49fda[_0x1c423c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3a3dc1))return!0x0;const _0x279b94=_0x3a3dc1[_0x1c423c([0x73,0x70,0x6c,0x69,0x74])](_0x1c423c([0x2e]));return _0xc49fda[_0x1c423c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5f0ae9=>_0x5f0ae9[_0x1c423c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c423c([0x2a])))[_0x1c423c([0x6d,0x61,0x70])](_0x38e8e7=>_0x38e8e7[_0x1c423c([0x73,0x70,0x6c,0x69,0x74])](_0x1c423c([0x2e])))[_0x1c423c([0x73,0x6f,0x6d,0x65])](_0x432057=>_0x279b94[_0x1c423c([0x65,0x76,0x65,0x72,0x79])]((_0x1d1c8b,_0x3bc0b0)=>_0x432057[_0x3bc0b0]===_0x1d1c8b||_0x432057[_0x3bc0b0]===_0x1c423c([0x2a])));}function _0x15f5c3(){return _0x5bcb6a&&_0xecb023?new window[(_0x1c423c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf54f9d,_0x16db4e)=>{_0x5bcb6a[_0x1c423c([0x74,0x68,0x65,0x6e])](_0xf54f9d,_0x16db4e),_0xecb023[_0x1c423c([0x74,0x68,0x65,0x6e])](_0x21bebe=>{_0x21bebe!=_0x1c423c([0x56,0x61,0x6c,0x69,0x64])&&_0xf54f9d(_0x21bebe);},_0x16db4e);}):_0x5bcb6a||_0xecb023||_0x1c423c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3e93fc(_0x4fbd1b,_0x15e3d2){return new window[(_0x1c423c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18ac00=>{if(_0x1b7d06())return _0x18ac00(_0x1c423c([0x56,0x61,0x6c,0x69,0x64]));_0x406527(),_0x578861[_0x1c423c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c423c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5ba737=!0x1;const _0x44783f=_0x1c0c72();function _0x5a0602(_0x1de85d){return!!_0x1de85d&&(typeof _0x1de85d===_0x1c423c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1de85d===_0x1c423c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1de85d[_0x1c423c([0x74,0x68,0x65,0x6e])]===_0x1c423c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1de85d[_0x1c423c([0x63,0x61,0x74,0x63,0x68])]===_0x1c423c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x19e5a4(_0x428f81){_0x21a0ad(_0x428f81)[_0x1c423c([0x74,0x68,0x65,0x6e])](_0x58662c=>{if(!_0x58662c||_0x58662c[_0x1c423c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c423c([0x6f,0x6b]))return _0x1c423c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5ba708(_0x125fea(_0x44783f+_0x15e3d2))!=_0x58662c[_0x1c423c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c423c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c423c([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c423c([0x74,0x68,0x65,0x6e])](_0x80e2e6=>(_0x5438d9(),_0x80e2e6),()=>{const _0x1dc4f7=_0x3d8d0a();return null==_0x1dc4f7?(_0x5438d9(),_0x1c423c([0x56,0x61,0x6c,0x69,0x64])):_0x1c423c(_0xd8edcd-_0x1dc4f7>(0x75d9653e^_0x3d823b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c423c([0x74,0x68,0x65,0x6e])](_0x18ac00)[_0x1c423c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x18ac00(_0x1c423c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x515765=0x51e30fbe^_0x3d823b;function _0x5438d9(){const _0x4b3716=_0x1c423c([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ba708(_0x125fea(_0x4fbd1b)),_0x4cc043=_0x2c1b2c(_0x5ba708(window[_0x1c423c([0x4d,0x61,0x74,0x68])][_0x1c423c([0x63,0x65,0x69,0x6c])](_0xd8edcd/_0x515765)));window[_0x1c423c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c423c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b3716,_0x4cc043);}function _0x3d8d0a(){const _0x52d2c3=_0x1c423c([0x6c,0x6c,0x63,0x74,0x2d])+_0x5ba708(_0x125fea(_0x4fbd1b)),_0x20c147=window[_0x1c423c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c423c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x52d2c3);return _0x20c147?window[_0x1c423c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c1b2c(_0x20c147),0x10)*_0x515765:null;}function _0x21a0ad(_0x2e3b67){return new window[(_0x1c423c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e645a,_0x5c2bb5)=>{_0x2e3b67[_0x1c423c([0x74,0x68,0x65,0x6e])](_0x1e645a,_0x5c2bb5),window[_0x1c423c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c2bb5,0x51d435fe^_0x3d823b);});}}_0x578861[_0x1c423c([0x6f,0x6e])](_0x1c423c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x211e56,_0xbed664)=>{if(_0xbed664[0x0]!=_0x4fbd1b)return _0x18ac00(_0x1c423c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xbed664[0x1]={..._0xbed664[0x1],[_0x1c423c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x44783f};},{[_0x1c423c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c423c([0x68,0x69,0x67,0x68])}),_0x578861[_0x1c423c([0x6f,0x6e])](_0x1c423c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x213525=>{_0x5a0602(_0x213525[_0x1c423c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5ba737=!0x0,_0x19e5a4(_0x213525[_0x1c423c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c423c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c423c([0x6c,0x6f,0x77])}),_0x5ce46b[_0x1c423c([0x74,0x68,0x65,0x6e])](()=>{_0x5ba737||_0x18ac00(_0x1c423c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b7d06(){return _0x578861[_0x1c423c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c423c([0x76,0x69,0x65,0x77])][_0x1c423c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c423c([0x61,0x75,0x74,0x6f]);}function _0x406527(){_0x578861[_0x1c423c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c423c([0x76,0x69,0x65,0x77])][_0x1c423c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c423c([0x61,0x75,0x74,0x6f]);}}function _0x2a2d2(_0x57b338){const _0x4b8826=[new window[(_0x1c423c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x138777=>setTimeout(_0x138777,0x51dcdff2^_0x3d823b)),_0x5ce46b[_0x1c423c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c423c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x215bcf=>{let _0x88a305=0x0;_0x578861[_0x1c423c([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c423c([0x6f,0x6e])](_0x1c423c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5085a3,_0xdae319)=>{_0xdae319[0x0][_0x1c423c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x88a305++,_0x88a305==(0x51d5e0c6^_0x3d823b)&&(_0x215bcf(),_0x5085a3[_0x1c423c([0x6f,0x66,0x66])]());});}))];return window[_0x1c423c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c423c([0x72,0x61,0x63,0x65])](_0x4b8826)[_0x1c423c([0x74,0x68,0x65,0x6e])](()=>_0x57b338);}async function _0x2b4bce(){await _0x5ce46b,_0x578861[_0x1c423c([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c423c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33eb54,_0x578861[_0x1c423c([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c423c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33eb54,_0x578861[_0x1c423c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c423c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x10fad9(_0x15024c){const _0x39e6ec=_0x504a94();_0x578861[_0x39e6ec]=_0x1c423c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x15024c,_0x15024c!=_0x1c423c([0x56,0x61,0x6c,0x69,0x64])&&_0x2b4bce();}function _0x504a94(){const _0x44dff6=window[_0x1c423c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c423c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c423c([0x6e,0x6f,0x77])]())[_0x1c423c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c423c([0x2e]),'');let _0x18a646=_0x1c423c([0x55]);for(let _0x39f83f=0x0;_0x39f83f<_0x44dff6[_0x1c423c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39f83f+=0x2){let _0x48597d=window[_0x1c423c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x44dff6[_0x1c423c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39f83f,_0x39f83f+0x2));_0x48597d>=_0x1f33e4[_0x1c423c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x48597d-=_0x1f33e4[_0x1c423c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x18a646+=_0x1f33e4[_0x48597d];}return _0x18a646;}function _0x578274(){const _0x2a3073=_0x46f98a[_0x1c423c([0x73,0x70,0x6c,0x69,0x74])](_0x1c423c([0x2e]));if(0x3!=_0x2a3073[_0x1c423c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x378df4(_0x2a3073[0x1]);function _0x378df4(_0x419e62){const _0x55890d=_0xacaf36(_0x419e62);return _0x55890d&&_0xc516f1()?_0x55890d:null;function _0xc516f1(){const _0x4fb480=_0x55890d[_0x1c423c([0x6a,0x74,0x69])],_0x460807=window[_0x1c423c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fb480[_0x1c423c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4fb480[_0x1c423c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48cd95={..._0x55890d,[_0x1c423c([0x6a,0x74,0x69])]:_0x4fb480[_0x1c423c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4fb480[_0x1c423c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48cd95[_0x1c423c([0x76,0x63])],_0x125fea(_0x48cd95)==_0x460807;}}}async function _0x2b10af(){let _0x38625d=!0x0;try{const _0x1bdd86=_0x46f98a[_0x1c423c([0x73,0x70,0x6c,0x69,0x74])](_0x1c423c([0x2e])),[_0x31f251,_0x204cff,_0x17db07]=_0x1bdd86;return _0x510f2e(_0x31f251),await _0x5203e5(_0x31f251,_0x204cff,_0x17db07),_0x38625d;}catch(_0x210452){return!0x1;}function _0x510f2e(_0x39b670){const _0x32e18a=_0xacaf36(_0x39b670);_0x32e18a&&_0x32e18a[_0x1c423c([0x61,0x6c,0x67])]==_0x1c423c([0x45,0x53,0x32,0x35,0x36])||(_0x38625d=!0x1);}async function _0x5203e5(_0xedbbed,_0x5e84e6,_0x1107a3){const _0x19d7be=window[_0x1c423c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c423c([0x66,0x72,0x6f,0x6d])](_0x44943a(_0x1107a3),_0xfc8e33=>_0xfc8e33[_0x1c423c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3db91a=new window[(_0x1c423c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c423c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xedbbed+_0x1c423c([0x2e])+_0x5e84e6),_0x25ce82=window[_0x1c423c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c423c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x25ce82)return;const _0x4a3e60=await _0x25ce82[_0x1c423c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c423c([0x6a,0x77,0x6b]),_0x307b15,{[_0x1c423c([0x6e,0x61,0x6d,0x65])]:_0x1c423c([0x45,0x43,0x44,0x53,0x41]),[_0x1c423c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c423c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c423c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x25ce82[_0x1c423c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c423c([0x6e,0x61,0x6d,0x65])]:_0x1c423c([0x45,0x43,0x44,0x53,0x41]),[_0x1c423c([0x68,0x61,0x73,0x68])]:{[_0x1c423c([0x6e,0x61,0x6d,0x65])]:_0x1c423c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a3e60,_0x19d7be,_0x3db91a)||(_0x38625d=!0x1);}}function _0xacaf36(_0x7f9fb){return _0x7f9fb[_0x1c423c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c423c([0x65,0x79]))?JSON[_0x1c423c([0x70,0x61,0x72,0x73,0x65])](_0x44943a(_0x7f9fb)):null;}function _0x44943a(_0x4b36f8){return window[_0x1c423c([0x61,0x74,0x6f,0x62])](_0x4b36f8[_0x1c423c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c423c([0x2b]))[_0x1c423c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c423c([0x2f])));}function _0x125fea(_0x2662f7){let _0x4adefb=0x1505;function _0xaa4f88(_0x25b32a){for(let _0x53fd69=0x0;_0x53fd69<_0x25b32a[_0x1c423c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53fd69++){const _0x324d50=_0x25b32a[_0x1c423c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53fd69);_0x4adefb=(_0x4adefb<<0x5)+_0x4adefb+_0x324d50,_0x4adefb&=_0x4adefb;}}function _0xbfe96f(_0x149c3c){Array[_0x1c423c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x149c3c)?_0x149c3c[_0x1c423c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xbfe96f):_0x149c3c&&typeof _0x149c3c==_0x1c423c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c423c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x149c3c)[_0x1c423c([0x73,0x6f,0x72,0x74])]()[_0x1c423c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x232511,_0x1cef0e])=>{_0xaa4f88(_0x232511),_0xbfe96f(_0x1cef0e);}):_0xaa4f88(window[_0x1c423c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x149c3c));}return _0xbfe96f(_0x2662f7),_0x4adefb>>>0x0;}function _0x5ba708(_0x1b6b78){return _0x1b6b78[_0x1c423c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c423c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c423c([0x30]));}function _0x2c1b2c(_0x151aff){return _0x151aff[_0x1c423c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c423c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c423c([0x6a,0x6f,0x69,0x6e])]('');}function _0x33eb54(){}function _0x1c423c(_0x1f707d){return _0x1f707d['map'](_0x2aa1ec=>String['fromCharCode'](_0x2aa1ec))['join']('');}_0x10fad9(await _0x3c2e18());}(this);}['_initSchema'](){const _0x453714=this['editor']['model']['schema'];_0x453714['isRegistered']('imageBlock')&&_0x453714['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x453714['isRegistered']('imageInline')&&_0x453714['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x5adce9=this['editor'];_0x5adce9['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x5adce9['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x46eb46=>_0x46eb46['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1ed574=_0x5adce9['commands']['get']('replaceImageSource');_0x1ed574&&this['listenTo'](_0x1ed574,'cleanupImage',(_0x5c8002,[_0x5f190d,_0x5efe2c])=>{_0x5f190d['removeAttribute']('uploadcareImageId',_0x5efe2c);});}['_initConfig'](){const _0x226bf3=this['editor']['config']['get']('uploadcare.uploader')||{},_0x140564=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x315b84(_0x123042['document'],'uc-config',{..._0x226bf3,'pubkey':_0x140564,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x33a0d5=>{if('closeMax'==_0x33a0d5)return'#uc-icon-arrow-down';},_0x123042['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x315b84(_0x123042['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x123042['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x293620=this['editor']['commands']['get']('insertImage');_0x293620&&this['listenTo'](_0x293620,'execute',()=>{const _0xeb4433=this['editor']['model']['document']['selection']['getSelectedElement']();_0xeb4433&&_0xeb4433['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0xeb4433);});});const _0x258ad7=this['editor']['commands']['get']('uploadcareImageReplace');_0x258ad7&&this['listenTo'](_0x258ad7,'execute',()=>{const _0x22e49a=this['editor']['model']['document']['selection']['getSelectedElement']();_0x22e49a&&_0x22e49a['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x22e49a);});});}}class u extends _0xc9bb13{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d5c0e){super(_0x4d5c0e),_0x4d5c0e['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x13e66d['defineComponents'](_0x13e66d);}}class ta extends _0x2dc8da{constructor(_0x510cd7){super(_0x510cd7);const t=_0x510cd7['t'],_0x41ce38=this['bindTemplate'],_0x87f4aa=new _0x1e1fbe();_0x87f4aa['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':[_0x87f4aa,{'text':_0x41ce38['to']('imageUploadProgress',_0x37e616=>t('Loading\x20image...')+'\x20('+(_0x37e616||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x2dc8da{constructor(_0x220a8a){super(_0x220a8a);const t=_0x220a8a['t'];this['set']('errorType',null);const _0x1c4555=new _0x335ad(_0x220a8a);_0x1c4555['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1c4555['withText']=!0x0,_0x1c4555['class']='ck-button-action',_0x1c4555['on']('execute',()=>{this['fire']('retry');}),_0x1c4555['bind']('isVisible')['to'](this,'errorType',_0x1a9c0b=>'NotFound'!==_0x1a9c0b);const _0x2523c8=new et();_0x2523c8['content']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M9.9\x204.385a1.2\x201.2\x200\x200\x200-.44.44h.002l-5.284\x209.15a1.2\x201.2\x200\x200\x200\x201.04\x201.8h10.564a1.2\x201.2\x200\x200\x200\x201.04-1.8l-5.282-9.15a1.2\x201.2\x200\x200\x200-1.64-.44Zm.05\x208.363a.301.301\x200\x200\x201\x20.115-.023h.9a.301.301\x200\x200\x201\x20.3.3v.9a.3.3\x200\x200\x201-.3.3h-.9a.3.3\x200\x200\x201-.3-.3v-.9a.3.3\x200\x200\x201\x20.185-.277Zm-.185-4.723a.3.3\x200\x200\x201\x20.3-.3h.9a.3.3\x200\x200\x201\x20.3.3v3.4a.3.3\x200\x200\x201-.3.3h-.9a.301.301\x200\x200\x201-.3-.3v-3.4Z\x22/></svg>\x0a',_0x2523c8['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2ddc0e=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':[_0x2523c8,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2ddc0e['to']('errorType',_0x3e6be0=>t('NotFound'!==_0x3e6be0?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1c4555]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x2dc8da{constructor(_0x1cbb80,_0x3e75af){super(_0x1cbb80);const _0x5f067c=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0x3e75af,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x5f067c['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x1576a6,_0x4c6074,_0x5c08e4){super(_0x1576a6),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x1576a6),this['_errorView']=new rt(_0x1576a6),this['_editingView']=new tt(_0x1576a6,_0x5c08e4),this['_focusableView']=new _0x2dc8da(_0x1576a6),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x4c6074),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'],_0x358cae=>{this['_addUploadcareImageEditorListeners'](_0x358cae);});}),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'](_0x33c95c,_0x3a3497){const _0x3e9e00='uc-cloud-image-editor',_0x5059c6=_0x33c95c['querySelector'](_0x3e9e00);if(_0x5059c6)return _0x3a3497(_0x5059c6);const _0x2169bc=new MutationObserver(_0x455f0d=>{const _0x50c715=_0x455f0d['filter'](_0xd8afb=>_0xd8afb['target']===_0x33c95c&&_0xd8afb['addedNodes']['length']>0x0&&_0xd8afb['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x3e9e00);_0x50c715['length']&&(_0x2169bc['disconnect'](),_0x3a3497(_0x50c715[0x0]['addedNodes'][0x0]));});_0x2169bc['observe'](_0x33c95c,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x450156){_0x450156['addEventListener']('apply',_0x2ce3d4=>{this['fire']('apply',{'imageSrc':_0x2ce3d4['detail']['cdnUrl']});}),_0x450156['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}var Y='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M1.201\x201C.538\x201\x200\x201.47\x200\x202.1v14.363c0\x20.64.534\x201.037\x201.186\x201.037H5.06l5.058-5.078L6.617\x209.15a.696.696\x200\x200\x200-.957-.033L1.5\x2013.6V2.5h15v4.354a3.478\x203.478\x200\x200\x201\x201.5.049V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713\x202.803a2.147\x202.147\x200\x200\x200-2.049\x201.992\x202.14\x202.14\x200\x200\x200\x201.28\x202.096\x202.13\x202.13\x200\x200\x200\x202.642-3.11\x202.129\x202.129\x200\x200\x200-1.873-.978ZM8.089\x2017.635v2.388h2.389l7.046-7.046-2.39-2.39-7.045\x207.048Zm11.282-6.507a.637.637\x200\x200\x200\x20.139-.692.603.603\x200\x200\x200-.139-.205l-1.49-1.488a.63.63\x200\x200\x200-.899\x200l-1.166\x201.163\x202.39\x202.39\x201.165-1.168Z\x22/></svg>\x0a';class O extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1449d6(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x30bb7c,_0x51865,_0x565a0a){super(),this['_editor']=_0x30bb7c,this['_dialog']=_0x51865,this['_imageElement']=_0x565a0a,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 _0x5ed270=this['_imageElement'],_0x437a08=_0x5ed270['getAttribute']('uploadcareImageId'),_0x5b3e72=_0x5ed270['getAttribute']('src');if(_0x437a08)await this['_loadImageInfo'](_0x437a08,_0x5b3e72);else{if(this['_imageCache']['has'](_0x5b3e72)){const _0x43dacc=this['_imageCache']['get'](_0x5b3e72);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x43dacc['url'],this['imageDimension']=_0x43dacc['dimension'],this['imageId']=_0x43dacc['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x555b34}=this['_editor'],t=_0x555b34['t'],_0x5c81c0=new Z(_0x555b34,this['imageStatus'],this['_attributes']);_0x5c81c0['bind']('status')['to'](this,'imageStatus'),_0x5c81c0['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5c81c0['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5c81c0['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5c81c0,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':Y,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5c81c0,'position':_0x57d3e7['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5c81c0['focus']();},'onHide':()=>{_0x5c81c0['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1bf040=>!F(_0x1bf040,_0x5c81c0['element'])}});}['_loadImageInfo'](_0x1bf248,_0x3f76c1){return k['getInfo'](_0x1bf248,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x109fde=>{const {width:_0x2e08e1,height:_0x9be889}=_0x109fde['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3f76c1,this['imageDimension']={'width':_0x2e08e1,'height':_0x9be889},this['imageId']=_0x1bf248;})['catch'](_0x429f3e=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x429f3e['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x6dc29d,_0x38c52c){return this['_getImageAsFile'](_0x6dc29d)['then'](_0x465a4b=>k['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x38c52c['signal'],'file':_0x465a4b,'onProgress':_0x3a2762=>{_0x3a2762&&_0x3a2762['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3a2762['value']));}}))['then'](_0x5b007a=>{const {width:_0x2653a2,height:_0x35dbd1}=_0x5b007a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5b007a['cdnUrl'],this['imageDimension']={'width':_0x2653a2,'height':_0x35dbd1},this['imageId']=_0x5b007a['uuid'],this['imageUploadProgress']=null;const _0x4619d3=_0x6dc29d['getAttribute']('src');this['_imageCache']['set'](_0x4619d3,{'id':_0x5b007a['uuid'],'url':_0x5b007a['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x1f1556=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1f1556['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x594482,_0x3fe15){_0x594482['on']('apply',(_0x5a5f14,_0x2a2480)=>{this['_replaceImage'](_0x3fe15,_0x2a2480['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x594482['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x594482['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x221c66,_0x156e07,_0x4fd008){const _0x4fd3b4=this['_editor'],{width:_0x4ac66e,height:_0x17a054}=A(_0x156e07,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3f26df,imageSources:_0x45ef4e}=C(_0x156e07,_0x4ac66e);_0x4fd3b4['model']['change'](_0x1c8d80=>{if('$graveyard'===_0x221c66['root']['rootName']){_0x4fd3b4['execute']('insertImage',{'imageType':_0x221c66['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x221c66['getAttributes']()),'uploadcareImageId':_0x4fd008,'src':_0x3f26df,'sources':_0x45ef4e,'width':_0x4ac66e,'height':_0x17a054}});const _0x17fec2=_0x221c66['getChildren']();_0x221c66=_0x4fd3b4['model']['document']['selection']['getSelectedElement']();for(const _0x5b1f9a of _0x17fec2)_0x1c8d80['append'](_0x1c8d80['cloneElement'](_0x5b1f9a),_0x221c66);}else _0x1c8d80['setSelection'](_0x221c66,'on'),_0x4fd3b4['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x221c66['getAttributes']()),'uploadcareImageId':_0x4fd008,'src':_0x3f26df,'sources':_0x45ef4e,'width':_0x4ac66e,'height':_0x17a054},_0x221c66);_0x1c8d80['setSelection'](_0x221c66,'on');});}async['_getImageAsFile'](_0x31c959){const _0x39a903=_0x123042['window'],_0x53446e=_0x123042['document']['location']['href'],_0x123d7b=new _0x39a903['URL'](_0x31c959['getAttribute']('src'),_0x53446e);if('data:'===_0x123d7b['protocol']){const _0x14a342=_0x123d7b['href']['split'](','),_0x36a47f=_0x14a342[0x0]['match'](/:(.*?);/)[0x1],_0x34841b=_0x36a47f['split']('/')[0x1],_0x171d0d=_0x39a903['atob'](_0x14a342[_0x14a342['length']-0x1]);let _0x153b74=_0x171d0d['length'];const _0x4ca0e6=new _0x39a903['Uint8Array'](_0x153b74);for(;_0x153b74--;)_0x4ca0e6[_0x153b74]=_0x171d0d['charCodeAt'](_0x153b74);return new _0x39a903['File']([_0x4ca0e6],'image.'+_0x34841b,{'type':_0x36a47f});}const _0xb89d49=_0x123d7b['href']['split']('/'),_0x376487=_0xb89d49[_0xb89d49['length']-0x1],_0x527f22=_0x376487['split']('.')[0x1];return _0x39a903['fetch'](_0x123d7b['href'])['then'](_0x1c1a86=>_0x1c1a86['clone']()['blob']())['then'](_0x330228=>new _0x39a903['File']([_0x330228],_0x376487,{'type':'image/'+_0x527f22}));}}class V extends _0x5f43c1{['imageEditController'];static get['requires'](){return[_0x97aa65];}['_isEditable'];constructor(_0x44e6e1){super(_0x44e6e1),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x59e5a9){const _0x5e899f=R(_0x59e5a9);return _0x1556d1=>!(!_0x1556d1||!_0x1556d1['is']('element','imageBlock')&&!_0x1556d1['is']('element','imageInline'))&&(!!_0x1556d1['hasAttribute']('uploadcareImageId')||!!_0x1556d1['hasAttribute']('src')&&_0x5e899f(_0x1556d1['getAttribute']('src')));}(_0x44e6e1['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0xe14262=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0xe14262);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x269611=this['editor']['model']['document']['selection']['getSelectedElement']();_0x269611&&(_0x269611['is']('element','imageBlock')||_0x269611['is']('element','imageInline'))&&(this['imageEditController']=new O(this['editor'],this['editor']['plugins']['get'](_0x97aa65),_0x269611),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class X extends _0x5f43c1{['refresh'](){const _0x44760b=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x44760b&&(_0x44760b['is']('element','imageBlock')||_0x44760b['is']('element','imageInline')));}['execute'](_0x540b0b){const _0x482de4=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x5a67ee=>{_0x5a67ee['setAttributes'](_0x540b0b,_0x482de4),_0x5a67ee['removeAttribute']('srcset',_0x482de4),_0x5a67ee['removeAttribute']('sizes',_0x482de4);});}}class m extends _0xc9bb13{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x4658d8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x20d912}=this;_0x20d912['commands']['add']('uploadcareImageEdit',new V(_0x20d912)),_0x20d912['commands']['add']('uploadcareImageReplace',new X(_0x20d912));}}class g extends _0xc9bb13{['_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 _0x5cc8d2=this['editor'];_0x5cc8d2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x182fda=>{const _0x3e623e=_0x5cc8d2['commands']['get']('uploadcareImageEdit'),_0x792760=new _0x335ad(_0x182fda),t=_0x182fda['t'];return _0x792760['set']({'icon':Y,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x792760['bind']('isEnabled')['to'](_0x3e623e),_0x792760['bind']('isOn')['to'](_0x3e623e,'isActive'),this['listenTo'](_0x792760,'execute',()=>{_0x5cc8d2['execute']('uploadcareImageEdit'),_0x5cc8d2['editing']['view']['focus']();}),_0x792760;}),this['_initConfig']();}['_initConfig'](){const _0x38f597=_0x315b84(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x38f597),this['listenTo'](this['editor'],'destroy',()=>{_0x38f597['remove']();});}}class j extends _0xc9bb13{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,j as UploadcareImageEdit,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI};
|
|
23
|
+
import{Plugin as _0x2f49ee,icons as _0x5725fb,Command as _0x4b93b2}from'@ckeditor/ckeditor5-core/dist/index.js';import{ButtonView as _0xf6f54e,MenuBarMenuListItemButtonView as _0x439629,View as _0x5bd0f4,FocusCycler as _0x5c9cbd,Dialog as _0x2a0edf,DialogViewPosition as _0x4703a4,SpinnerView as _0x91ced8,IconView as et,Notification as _0x361be8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{FocusTracker as _0x384654,DomEmitterMixin as _0x42ee83,global as _0x46f0a0,getAncestors as _0x256ee0,ObservableMixin as _0x4d1856,createElement as _0x241dfd,uid as _0x33bd9a}from'@ckeditor/ckeditor5-utils/dist/index.js';import{FileRepository as _0x27aa03}from'@ckeditor/ckeditor5-upload/dist/index.js';import{uploadFile as _0x4740df,info as _0x2d4df2}from'@uploadcare/upload-client';import*as _0x317691 from'@uploadcare/file-uploader';var o=function(_0x66a094){return _0x66a094['Local']='local',_0x66a094['URL']='url',_0x66a094['Dropbox']='dropbox',_0x66a094['GDrive']='gdrive',_0x66a094['Facebook']='facebook',_0x66a094['GPhotos']='gphotos',_0x66a094['OneDrive']='onedrive',_0x66a094;}({});function _(_0x5083be,_0x3fb3f0,_0x365fdf){const t=_0x5083be['t'],_0x44e6e0=_0x5083be['t'];switch(_0x3fb3f0){case o['Local']:return{'text':_0x44e6e0('Insert'===_0x365fdf?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x44e6e0('From\x20computer')};case o['URL']:return{'text':'Insert'===_0x365fdf?_0x44e6e0('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x44e6e0('Via\x20URL')};case o['Dropbox']:return{'text':t('Insert'===_0x365fdf?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case o['Facebook']:return{'text':t('Insert'===_0x365fdf?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case o['GDrive']:return{'text':t('Insert'===_0x365fdf?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case o['GPhotos']:return{'text':t('Insert'===_0x365fdf?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case o['OneDrive']:return{'text':t('Insert'===_0x365fdf?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x3fb3f0;}}class e extends _0x2f49ee{['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 _0x5aaa72=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x107d20;for(const _0x57c1e9 in _0x5aaa72){const _0x489bfb=_0x57c1e9,_0x30418b=_0x5aaa72[_0x489bfb];if('uploadcareLicenseKeyValid'==_0x30418b||'uploadcareLicenseKeyInvalid'==_0x30418b||'uploadcareLicenseKeyExpired'==_0x30418b||'uploadcareLicenseKeyDomainLimit'==_0x30418b||'uploadcareLicenseKeyNotAllowed'==_0x30418b||'uploadcareLicenseKeyEvaluationLimit'==_0x30418b||'uploadcareLicenseKeyTrialLimit'==_0x30418b||'uploadcareLicenseKeyUsageLimit'==_0x30418b){delete _0x5aaa72[_0x489bfb],_0x107d20=_0x30418b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'uploadcareLicenseKeyInvalid'==_0x107d20&&_0x5aaa72['_showLicenseError']('invalid'),'uploadcareLicenseKeyExpired'==_0x107d20&&_0x5aaa72['_showLicenseError']('expired'),'uploadcareLicenseKeyDomainLimit'==_0x107d20&&_0x5aaa72['_showLicenseError']('domainLimit'),'uploadcareLicenseKeyNotAllowed'==_0x107d20&&_0x5aaa72['_showLicenseError']('featureNotAllowed','Uploadcare'),'uploadcareLicenseKeyEvaluationLimit'==_0x107d20&&_0x5aaa72['_showLicenseError']('evaluationLimit'),'uploadcareLicenseKeyTrialLimit'==_0x107d20&&_0x5aaa72['_showLicenseError']('trialLimit'),'uploadcareLicenseKeyUsageLimit'==_0x107d20&&_0x5aaa72['_showLicenseError']('usageLimit');},0x3e8);}['afterInit'](){const {editor:_0x234a59}=this,_0x37c4c8=_0x234a59['commands']['get']('uploadcare');if(!_0x37c4c8)return;const _0x1b4b2b=this['_normalizeConfigSourceList'](_0x234a59['config']['get']('uploadcare.uploader.sourceList'))['reduce']((_0x58151b,_0x548300)=>{const _0x226554=this['_getIntegrationKey'](_0x548300['type']);return _0x58151b[_0x226554]||(_0x58151b[_0x226554]=[]),_0x58151b[_0x226554]['push'](_0x548300),_0x58151b;},{});_0x234a59['plugins']['has']('ImageInsertUI')&&_0x234a59['commands']['get']('uploadcare')&&Object['entries'](_0x1b4b2b)['forEach'](([_0x17d135,_0x4440f9])=>{_0x234a59['plugins']['get']('ImageInsertUI')['registerIntegration']({'name':_0x17d135,'observable':()=>_0x37c4c8,'buttonViewCreator':()=>this['_createToolbarButton'](_0x4440f9),'formViewCreator':()=>this['_createDropdownButtons'](_0x4440f9),'menuBarButtonViewCreator':()=>this['_createMenuBarButtons'](_0x4440f9),'override':'assetManager'!==_0x17d135});});}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['_normalizeConfigSourceList'](_0x5141f0){const {locale:_0x2b060c}=this['editor'];return _0x5141f0['map'](_0x376a5f=>{const _0xed3fa9=_(_0x2b060c,_0x376a5f,'Insert');switch(_0x376a5f){case o['Local']:return{'icon':_0x5725fb['imageUpload'],'type':o['Local'],..._0xed3fa9};case o['URL']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M12.748\x202a4.622\x204.622\x200\x200\x200-3.174\x201.362L8.02\x204.915a.783.783\x200\x200\x200\x20.002\x201.11.786.786\x200\x200\x200\x201.11\x200l1.55-1.553c1.185-1.185\x203.024-1.195\x204.116-.104l.851.854c1.092\x201.091\x201.083\x202.927-.101\x204.11l-1.555\x201.554a.787.787\x200\x200\x200\x20.557\x201.34.78.78\x200\x200\x200\x20.553-.23l1.554-1.552c1.758-1.757\x201.838-4.597.102-6.332l-.854-.853A4.31\x204.31\x200\x200\x200\x2012.748\x202Zm-.488\x204.973a.78.78\x200\x200\x200-.553.23L7.2\x2011.71l-.004.002a.784.784\x200\x200\x200\x201.11\x201.107l.003-.002\x204.504-4.505a.785.785\x200\x200\x200-.554-1.339Zm-6.79.815a.791.791\x200\x200\x200-.554.234L3.36\x209.573c-1.757\x201.758-1.836\x204.597-.101\x206.332l.853.852c1.736\x201.734\x204.572\x201.655\x206.33-.102l1.547-1.547.006-.008a.777.777\x200\x200\x200\x20.244-.554.782.782\x200\x200\x200-.799-.797.774.774\x200\x200\x200-.56.248l-1.545\x201.547c-1.184\x201.184-3.021\x201.195-4.113.104l-.854-.854c-1.091-1.091-1.083-2.927.102-4.111l1.552-1.555a.787.787\x200\x200\x200\x20.233-.555.79.79\x200\x200\x200-.06-.3.793.793\x200\x200\x200-.173-.253s-.104-.14-.183-.185c-.051-.03-.133-.047-.37-.047Z\x22/></svg>\x0a','type':o['URL'],..._0xed3fa9};case o['Dropbox']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M5.972\x203.115A.746.746\x200\x200\x201\x206.374\x203c.14\x200\x20.28.037.402.115l3.229\x202.059\x203.228-2.057a.75.75\x200\x200\x201\x20.805\x200l3.629\x202.31h.002a.757.757\x200\x200\x201\x200\x201.264h-.002L15.034\x208.37l2.633\x201.678h.002a.756.756\x200\x200\x201\x200\x201.262h-.002l-3.63\x202.312a.746.746\x200\x200\x201-.161.076c.234.08.409.275.482.5a.75.75\x200\x200\x201-.322.854l-3.629\x202.308a.75.75\x200\x200\x201-.805\x200l-3.63-2.31a.75.75\x200\x200\x201-.229-1.031l.076-.122h.022a.746.746\x200\x200\x201\x20.32-.189.75.75\x200\x200\x201-.19-.086l-3.63-2.312a.756.756\x200\x200\x201\x200-1.264l2.632-1.678-2.632-1.676a.757.757\x200\x200\x201\x200-1.263l3.63-2.313Zm2.64\x202.946L6.374\x204.635\x204.136\x206.06l2.238\x201.423\x202.238-1.423Zm7.262\x200-2.236-1.426-2.239\x201.426\x202.237\x201.423\x202.238-1.423Zm-3.637\x202.306-2.232-1.422-2.233\x201.422\x202.235\x201.422\x202.23-1.422Zm-3.625\x202.31L6.374\x209.253l-2.238\x201.426\x202.238\x201.424\x202.238-1.424Zm7.262\x200-2.236-1.425-2.239\x201.426\x202.237\x201.424\x202.238-1.424Zm-2.64\x202.944-3.23-2.056-3.228\x202.056a.75.75\x200\x200\x201-.185.084.724.724\x200\x200\x201\x20.185.08l3.229\x202.057\x203.226-2.055a.827.827\x200\x200\x201\x20.18-.084.746.746\x200\x200\x201-.178-.082Z\x22/></svg>\x0a','type':o['Dropbox'],..._0xed3fa9};case o['Facebook']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M10.01\x202C5.59\x202\x202\x205.59\x202\x2010.01a8.011\x208.011\x200\x200\x200\x206.775\x207.914.754.754\x200\x200\x200\x20.598-.17.75.75\x200\x200\x200\x20.262-.565v-5.02a.745.745\x200\x200\x200-.22-.524.745.745\x200\x200\x200-.526-.221H7.77v-.627H8.89a.745.745\x200\x200\x200\x20.525-.22c.14-.14.22-.329.22-.526V8.324c0-.466.122-1.083.524-1.48.33-.326\x201.017-.6\x202.332-.43v.408c-.152.012-.305.017-.457.04-.335.048-.662.136-.943.326-.313.21-.497.505-.59.804-.093.3-.107.602-.107.88v1.18a.746.746\x200\x200\x200\x20.744.746h1.158l-.098.63h-1.06a.744.744\x200\x200\x200-.744.744v5.017a.752.752\x200\x200\x200\x20.26.567c.081.07.177.119.28.148a.75.75\x200\x200\x200\x20.319.022A8.012\x208.012\x200\x200\x200\x2010.01\x202Zm0\x201.486a6.52\x206.52\x200\x200\x201\x206.521\x206.524c0\x202.945-1.973\x205.386-4.65\x206.197v-3.291h.951a.749.749\x200\x200\x200\x20.736-.63l.332-2.12a.742.742\x200\x200\x200-.17-.6.745.745\x200\x200\x200-.564-.26h-1.285V8.87c0-.252.024-.384.039-.433.003-.008.002-.012.002-.016.016-.011.104-.055.326-.088a7\x207\x200\x200\x201\x20.984-.05.746.746\x200\x200\x200\x20.528-.218c.14-.139.217-.33.217-.527V5.76a.747.747\x200\x200\x200-.586-.729c-2.04-.438-3.433-.083-4.278.75-.818.807-.968\x201.884-.968\x202.543v.983H7.027a.744.744\x200\x200\x200-.525.22.743.743\x200\x200\x200-.219.526v2.119c0\x20.197.08.386.219.525.14.14.328.221.525.221h1.118v3.291c-2.681-.809-4.659-3.25-4.659-6.197a6.523\x206.523\x200\x200\x201\x206.524-6.526Z\x22/></svg>\x0a','type':o['Facebook'],..._0xed3fa9};case o['GDrive']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M7.666\x203a.736.736\x200\x200\x200-.371.1.748.748\x200\x200\x200-.275.267l-4.918\x208.397a.743.743\x200\x200\x200-.006.744l2.46\x204.318a.747.747\x200\x200\x200\x20.65.377h9.606a.754.754\x200\x200\x200\x20.65-.377l2.46-4.318a.74.74\x200\x200\x200\x20.002-.735l-4.688-8.392a.754.754\x200\x200\x200-.654-.38H7.666Zm1.285\x201.492h3.195l3.854\x206.9h-3.1l-3.949-6.9Zm-1.293.742L9.223\x207.97l-4.016\x206.988-1.6-2.813\x204.051-6.91Zm2.424\x204.237\x201.098\x201.922H8.977l1.105-1.922ZM8.12\x2012.885h7.87L14.38\x2015.71H6.494l1.625-2.826Z\x22/></svg>\x0a','type':o['GDrive'],..._0xed3fa9};case o['GPhotos']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M9.258\x203.082c0-.594.486-1.082\x201.08-1.082a4.38\x204.38\x200\x200\x201\x204.239\x205.489c-.18.688-.633\x201.245-1.109\x201.767h3.468c.595\x200\x201.082.488\x201.082\x201.082a4.382\x204.382\x200\x200\x201-5.49\x204.24v-.001c-.689-.18-1.246-.633-1.768-1.109v3.468c0\x20.595-.487\x201.082-1.082\x201.082a4.384\x204.384\x200\x200\x201-4.111-2.866\x204.382\x204.382\x200\x200\x201-.125-2.624c.18-.689.632-1.246\x201.108-1.768H3.082A1.085\x201.085\x200\x200\x201\x202\x209.68a4.382\x204.382\x200\x200\x201\x205.49-4.238c.69.18\x201.246.632\x201.768\x201.108V3.082Zm3.164\x201.32c-.435-.46-1.043-.667-1.662-.767v5.49c.619-.1\x201.227-.307\x201.662-.766a2.875\x202.875\x200\x200\x200\x200-3.958ZM7.21\x206.918a2.876\x202.876\x200\x200\x200-2.93.789c-.396.423-.569.983-.658\x201.55h5.56c-.045-.295-.091-.59-.224-.859a2.879\x202.879\x200\x200\x200-1.748-1.48Zm9.254\x203.841h-5.653l.013.1c.012.098.025.197.053.292a2.873\x202.873\x200\x200\x200\x204.862\x201.158\x202.87\x202.87\x200\x200\x200\x20.398-.54v-.001c.111-.195.2-.403.263-.619.026-.092.038-.188.05-.283l.014-.107Zm-8.872\x204.86c.437.459\x201.045.666\x201.665.766V10.89c-1.369.222-2.456\x201.314-2.456\x202.747\x200\x20.738.283\x201.447.791\x201.981Z\x22/></svg>\x0a','type':o['GPhotos'],..._0xed3fa9};case o['OneDrive']:return{'icon':'<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M10.223\x205.001a5.277\x205.277\x200\x200\x200-4.408\x202.258c-3.224.423-4.908\x204.123-3.032\x206.814l.004.008.002.004c.48.627\x201.712\x201.84\x203.588\x201.84h7.936c.667\x200\x201.32-.179\x201.894-.522a3.838\x203.838\x200\x200\x200\x201.381-1.46v-.005c1.13-2.16-.133-4.777-2.488-5.298-.617-1.853-2.177-3.242-4.111-3.565a5.273\x205.273\x200\x200\x200-.766-.074Zm-.092\x201.5c.078\x200\x20.154.001.23.008.077.004.154.014.231.021l.226.035a5.203\x205.203\x200\x200\x201\x20.45.116\x203.31\x203.31\x200\x200\x201\x20.433.166\x204.079\x204.079\x200\x200\x201\x20.606.348\x204.195\x204.195\x200\x200\x201\x20.37.293\x203.54\x203.54\x200\x200\x201\x20.33.348\x203.517\x203.517\x200\x200\x201\x20.505.778\x203.182\x203.182\x200\x200\x200-.42.117c-.082.03-.164.06-.244.094l-1.49.627-2.686-1.61a4.39\x204.39\x200\x200\x200-1.002-.445c.015-.01.032-.026.047-.039a3.744\x203.744\x200\x200\x201\x20.4-.289\x203.713\x203.713\x200\x200\x201\x20.424-.23\x203.02\x203.02\x200\x200\x201\x20.219-.094c.074-.03.15-.053.225-.076a3.77\x203.77\x200\x200\x201\x20.222-.06c.077-.02.157-.035.233-.05.075-.015.15-.025.228-.033.077-.007.154-.015.233-.02.078-.003.154-.005.23-.005Zm-3.8\x202.193h.003c.54.001\x201.111.156\x201.551.428l1.783\x201.07-5.867\x202.471c-.535-1.29-.15-2.788\x201.059-3.537l.007-.004c.441-.271.946-.42\x201.463-.428Zm7.974\x201.33.152.008c.086.008.173.018.258.033a1.956\x201.956\x200\x200\x201\x20.477.145\x202.179\x202.179\x200\x200\x201\x20.918.756c.046.066.09.133.127.2a2.284\x202.284\x200\x200\x201\x20.269.919c.004.081.008.165.002.248-.003.055-.012.111-.02.166l-3.507-2.102.459-.193.015-.008a2.118\x202.118\x200\x200\x201\x20.41-.125\x202.297\x202.297\x200\x200\x201\x20.44-.047Zm-3.008\x201.112\x204.506\x202.699a2.217\x202.217\x200\x200\x201-.338.26\x202.228\x202.228\x200\x200\x201-.668.275c-.078.019-.157.03-.24.04-.081.007-.164.015-.246.015H6.373c-.057\x200-.113-.001-.168-.004a1.904\x201.904\x200\x200\x201-.164-.016l-.154-.023c-.051-.008-.102-.014-.15-.026a2.942\x202.942\x200\x200\x201-.77-.3\x202.889\x202.889\x200\x200\x201-.21-.133c-.012-.008-.019-.016-.03-.024l6.57-2.763Z\x22/></svg>\x0a','type':o['OneDrive'],..._0xed3fa9};}});}['_getIntegrationKey'](_0x2ce915){switch(_0x2ce915){case o['Local']:return'upload';case o['URL']:return'url';default:return'assetManager';}}['_createButton'](_0x4cc118,_0xb39db3){const _0x28c3ee=this['editor'],_0x351570=new _0x4cc118(_0x28c3ee['locale']),_0x523095=_0x28c3ee['commands']['get']('uploadcare');return _0x351570['bind']('isEnabled')['to'](_0x523095),_0x351570['on']('execute',()=>{_0x523095['execute'](_0xb39db3);}),_0x351570;}['_createToolbarButton'](_0x3681c2){const {locale:_0x44a91a}=this['editor'],_0x3cef60=this['editor']['plugins']['get']('ImageInsertUI'),_0x372428=_0x3681c2[0x0],_0x3b976b=this['_createButton'](_0xf6f54e,_0x372428['type']);return _0x3b976b['icon']=_0x372428['icon'],_0x3b976b['bind']('label')['to'](_0x3cef60,'isImageSelected',_0x482b9f=>_(_0x44a91a,_0x372428['type'],_0x482b9f?'Replace':'Insert')['text']),_0x3b976b['tooltip']=!0x0,_0x3b976b;}['_createDropdownButtons'](_0x1c46bc){const {locale:_0x1d60d1}=this['editor'],_0x38873a=this['editor']['plugins']['get']('ImageInsertUI');return _0x1c46bc['map'](_0x367d93=>{const _0x36f883=this['_createButton'](_0xf6f54e,_0x367d93['type']);return _0x36f883['withText']=!0x0,_0x36f883['icon']=_0x367d93['icon'],_0x36f883['bind']('label')['to'](_0x38873a,'isImageSelected',_0xf05356=>_(_0x1d60d1,_0x367d93['type'],_0xf05356?'Replace':'Insert')['text']),_0x36f883;});}['_createMenuBarButtons'](_0x313412){return _0x313412['map'](_0x2bcc35=>{const _0xc48ddb=this['_createButton'](_0x439629,_0x2bcc35['type']);return _0xc48ddb['icon']=_0x2bcc35['icon'],_0xc48ddb['label']=_0x2bcc35['shortText'],_0xc48ddb;});}}class q extends _0x5bd0f4{['focusTracker'];['focusCycler'];constructor(_0x5ad912){super(_0x5ad912),this['focusTracker']=new _0x384654(),this['focusCycler']=new _0x5c9cbd({'focusables':this['createCollection'](),'focusTracker':this['focusTracker']});}['getFocusableElement'](){return{'tag':'div','attributes':{'aria-hidden':'true','tabindex':'0'},'on':{'focus':this['bindTemplate']['to'](()=>{this['focusCycler']['fire']('forwardCycle');})}};}}class S extends q{constructor(_0x2eb687){super(_0x2eb687),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all-excluded','ck-uploadcare-form'],'tabindex':'-1'},'children':[{'tag':'uc-file-uploader-inline','attributes':{'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'uploader'}},this['getFocusableElement']()]});}['focus'](){this['element']['focus']();}}function C(_0x3d2fa6,_0x418409){const _0x5e21e0=[0x140,0x1e0,0x300,0x400,0x4b0,0x640,0x780,0x960]['filter'](_0x2c19fc=>_0x2c19fc<=_0x418409)['map'](_0x27f1a7=>_0x3d2fa6['replace'](/\/$/,'')+'/-/resize/'+_0x27f1a7+'x/\x20'+_0x27f1a7+'w');return{'imageFallbackUrl':_0x3d2fa6,'imageSources':[{'srcset':_0x5e21e0['join'](',\x20'),'sizes':'(max-width:\x20'+_0x418409+'px)\x20100vw,\x20'+_0x418409+'px','type':'image/webp'}]};}function A(_0x5571b6,_0x47c3ec,_0x5403d8){const _0x2ae267=_0x5571b6['match'](/\/crop\/(\d+)x(\d+)\//);return{'width':_0x2ae267?parseInt(_0x2ae267[0x1],0xa):_0x47c3ec,'height':_0x2ae267?parseInt(_0x2ae267[0x2],0xa):_0x5403d8};}function p(_0x3aa78b,_0xcfafb8){const _0x21dfee=Object['create'](_0x42ee83),_0xa58860=_0x3aa78b['plugins']['get']('ImageUtils'),_0x340966=_0x3aa78b['editing']['mapper']['toViewElement'](_0xcfafb8),_0x1615d6=_0xa58860['findViewImgElement'](_0x340966),_0x73bf14=_0x3aa78b['editing']['view']['domConverter']['viewToDom'](_0x1615d6),_0x54b1a0=_0xcfafb8['getAttribute']('width'),_0x25d58c=_0xcfafb8['getAttribute']('height'),_0x44ce6c='image-processing';_0x3aa78b['editing']['view']['change'](_0x306f31=>{_0x306f31['addClass'](_0x44ce6c,_0x340966),_0x306f31['setStyle']('aspect-ratio',_0x54b1a0+'/'+_0x25d58c,_0x1615d6);}),_0x21dfee['listenTo'](_0x73bf14,'load',()=>{_0x21dfee['stopListening'](_0x73bf14,'load'),_0x3aa78b['editing']['view']['change'](_0x3298f5=>{_0x3298f5['removeClass'](_0x44ce6c,_0x340966),_0x3298f5['removeStyle']('aspect-ratio',_0x1615d6);});});}function V(_0x582444){if(Array['isArray'](_0x582444)){const _0x52fe51=_0x582444['map'](V);return _0x4ed162=>_0x52fe51['some'](_0x4d714c=>_0x4d714c(_0x4ed162));}if('origin'==_0x582444){const _0x27eb54=_0x46f0a0['window']['location']['origin'];return _0x3ab668=>new URL(_0x3ab668,_0x46f0a0['document']['baseURI'])['origin']==_0x27eb54;}return'function'==typeof _0x582444?_0x582444:_0x582444 instanceof RegExp?_0x37b1d5=>!(!_0x37b1d5['match'](_0x582444)&&!_0x37b1d5['replace'](/^https?:\/\//,'')['match'](_0x582444)):()=>!0x1;}function F(_0x3c4bd6,_0x2fc73f){return _0x256ee0(_0x3c4bd6['target'])['includes'](_0x2fc73f);}class h extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4d1856(){['_editor'];['_dialog'];['_editing'];['_api'];['_type']=null;['_formView']=null;constructor(_0x537f16,_0x54862b,_0xd29867){super(),this['_editor']=_0x537f16,this['_editing']=_0x54862b,this['_dialog']=_0x537f16['plugins']['get'](_0x2a0edf),this['_api']=_0x54862b['ctxElement']['getAPI'](),this['_type']=_0xd29867,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:_0x67fdca,model:_0x1f0584}=this['_editor'],_0x23c77c=_0x1f0584['document']['selection']['getSelectedElement'](),_0x4740a8=_0x23c77c&&(_0x23c77c['is']('element','imageBlock')||_0x23c77c['is']('element','imageInline'));this['_formView']=new S(_0x67fdca),this['_dialog']['show']({'id':'uploadCare','icon':_0x5725fb['imageUpload'],'title':_(_0x67fdca,this['_type'],_0x4740a8?'Replace':'Insert')['text'],'content':this['_formView'],'position':_0x4703a4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{this['_formView']['focus']();},'onHide':()=>{this['_api']['removeAllFiles'](),this['_editor']['editing']['view']['focus'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x188564=>!F(_0x188564,this['_formView']['element'])}});}['_initListeners'](){this['_editing']['ctxElement']['addEventListener']('done-click',()=>{const {allEntries:_0x5d19bd}=this['_api']['getOutputCollectionState']();this['_editor']['model']['change'](_0x52d99c=>{const _0x47bce1=_0x5d19bd['length'];for(const _0x1549c8 of _0x5d19bd){const _0x16b3f7=_0x1549c8===_0x5d19bd[_0x47bce1-0x1],{cdnUrl:_0x1c78fd,fileInfo:_0x20a692}=_0x1549c8;if(!_0x1c78fd||!_0x20a692)continue;const {width:_0x5c373b,height:_0x42d382}=_0x20a692['imageInfo'],_0x1b8efd=A(_0x1c78fd,_0x5c373b,_0x42d382),_0x53639c=C(_0x1c78fd,_0x1b8efd['width']),_0x5aa58a={'id':_0x20a692['uuid'],'type':'image','attributes':{'imageDimension':_0x1b8efd,..._0x53639c}};this['_insertAsset'](_0x5aa58a,_0x16b3f7,_0x52d99c);}}),this['_dialog']['hide']();}),this['_editing']['ctxElement']['addEventListener']('change',_0x1d9313=>{'idle'===_0x1d9313['detail']['status']&&!_0x1d9313['detail']['allEntries']['length']&&this['_dialog']['isOpen']&&(this['_type']===o['Local']?this['_api']['setCurrentActivity'](o['Local']):this['_api']['initFlow']());});}['_insertAsset'](_0x10892e,_0x3fcbb1,_0x34b4d2){const _0x5cfc92=this['_editor']['model']['document']['selection'],_0x3d6cd8=_0x5cfc92['getSelectedElement'](),_0x36af83=!(!_0x3d6cd8||!_0x3d6cd8['is']('element','imageInline'));_0x34b4d2['removeSelectionAttribute']('linkHref'),this['_insertImage'](_0x10892e,_0x36af83),_0x3fcbb1||_0x34b4d2['setSelection'](_0x5cfc92['getLastPosition']());}['_insertImage'](_0xb5a713,_0x149242){const _0x1cf2c4=this['_editor'],{imageDimension:_0x2c7b73,imageFallbackUrl:_0x47c0b6,imageSources:_0x22bd69}=_0xb5a713['attributes'];_0x1cf2c4['execute']('insertImage',{'imageType':_0x149242?'imageInline':null,'source':{'uploadcareImageId':_0xb5a713['id'],'src':_0x47c0b6,'sources':_0x22bd69,..._0x2c7b73}});}}class l extends _0x4b93b2{['_editing'];['_controller']=null;static get['requires'](){return[_0x2a0edf,i];}constructor(_0xc77365){super(_0xc77365),this['_editing']=_0xc77365['plugins']['get'](i);}['refresh'](){this['isEnabled']=this['_checkEnabled']();}['execute'](_0x28d4e7){this['_controller']&&(this['_controller']['destroy'](),this['_controller']=null),this['_controller']=new h(this['editor'],this['_editing'],_0x28d4e7);}['_checkEnabled'](){return this['editor']['commands']['get']('insertImage')['isEnabled'];}}class k{static['upload']({file:_0xc4a57,publicKey:_0x5c9404,signal:_0x1417e4,onProgress:_0x69121c}){return _0x4740df(_0xc4a57,{'publicKey':_0x5c9404,'store':'auto','signal':_0x1417e4,'onProgress':_0x69121c});}static['getInfo'](_0x80a652,_0x1e27bf){return _0x2d4df2(_0x80a652,_0x1e27bf);}}class f extends _0x2f49ee{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x27aa03,i];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x317f40=this['editor'];if(!!!_0x317f40['config']['get']('uploadcare'))return;_0x317f40['plugins']['get'](_0x27aa03)['createUploadAdapter']=_0x5bd370=>new E(_0x5bd370,_0x317f40),_0x317f40['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x220f2f,{imageElement:_0x125b6e,data:_0x7b460d})=>{_0x317f40['model']['change'](_0x20c98c=>{_0x20c98c['setAttribute']('uploadcareImageId',_0x7b460d['uploadcareImageId'],_0x125b6e);});});}}class E{['loader'];['editor'];['controller'];constructor(_0x2a40c9,_0x5e9619){this['loader']=_0x2a40c9,this['editor']=_0x5e9619,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1514ad=this['editor']['config']['get']('uploadcare.pubkey'),_0x5a9298=await this['loader']['file'];return k['upload']({'file':_0x5a9298,'publicKey':_0x1514ad,'signal':this['controller']['signal'],'onProgress':_0x4980d1=>{_0x4980d1&&_0x4980d1['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x4980d1['value']);}})['then'](async _0x36665f=>{const {imageFallbackUrl:_0x497eb0,imageSources:_0x3ae866}=C(_0x36665f['cdnUrl'],_0x36665f['imageInfo']['width']);return{'uploadcareImageId':_0x36665f['uuid'],'default':_0x497eb0,'sources':_0x3ae866};})['catch'](()=>{const _0x2e6f08=t('Cannot\x20upload\x20file:')+('\x20'+_0x5a9298['name']+'.');return Promise['reject'](_0x2e6f08);});}['abort'](){this['controller']['abort']();}}class i extends _0x2f49ee{['_configElement']=null;['_ctxElement']=null;static get['pluginName'](){return'UploadcareEditing';}static get['requires'](){return['PictureEditing',f,_0x2a0edf];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['configElement'](){return this['_configElement'];}get['ctxElement'](){return this['_ctxElement'];}['init'](){const _0x482b87=this['editor'];_0x482b87['commands']['add']('uploadcare',new l(_0x482b87));}['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 _0x370c1a=_0x46f0a0['document']['querySelector']('input[uploadcare-file-input]');_0x370c1a&&_0x370c1a['remove']();}),async function(_0xb98dae){const _0x41e13=_0x3d7363([0x65,0x66,0x39,0x50,0x52,0x51,0x57,0x4c,0x6e,0x59,0x6f,0x48,0x64,0x38,0x58,0x37,0x55,0x63,0x78,0x75,0x44,0x6c,0x68,0x33,0x56,0x69,0x43,0x32,0x71,0x41,0x31,0x73,0x6b,0x79,0x4d,0x62,0x30,0x70,0x47,0x77,0x6d,0x5a,0x46,0x4a,0x35,0x34,0x6a,0x4e,0x76,0x4f,0x36,0x49,0x4b,0x61,0x42,0x7a,0x67,0x45,0x74,0x54,0x53,0x72]),_0x1aab4a=0x24bae9cd,_0x28f848=0x24bdb76d^_0x1aab4a,_0x413e55=window[_0x3d7363([0x44,0x61,0x74,0x65])][_0x3d7363([0x6e,0x6f,0x77])](),_0x27ef02=_0xb98dae[_0x3d7363([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4333dd=new window[(_0x3d7363([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x599079=>{_0x27ef02[_0x3d7363([0x6f,0x6e,0x63,0x65])](_0x3d7363([0x72,0x65,0x61,0x64,0x79]),_0x599079);}),_0x3d4017={[_0x3d7363([0x6b,0x74,0x79])]:_0x3d7363([0x45,0x43]),[_0x3d7363([0x75,0x73,0x65])]:_0x3d7363([0x73,0x69,0x67]),[_0x3d7363([0x63,0x72,0x76])]:_0x3d7363([0x50,0x2d,0x32,0x35,0x36]),[_0x3d7363([0x78])]:_0x3d7363([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]),[_0x3d7363([0x79])]:_0x3d7363([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]),[_0x3d7363([0x61,0x6c,0x67])]:_0x3d7363([0x45,0x53,0x32,0x35,0x36])},_0x3b0b1f=_0x27ef02[_0x3d7363([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d7363([0x67,0x65,0x74])](_0x3d7363([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8be788(){let _0x160ce0,_0x26c181=null,_0x1b7da6=null;try{if(_0x3b0b1f==_0x3d7363([0x47,0x50,0x4c]))return _0x3d7363([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x160ce0=_0x5c086b(),!_0x160ce0)return _0x3d7363([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x160ce0[_0x3d7363([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1b7da6=_0xba20b1(_0x160ce0[_0x3d7363([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x160ce0[_0x3d7363([0x6a,0x74,0x69])])),await _0x1a3b25()?_0x1d66d0()?_0x27591f()?_0x3d7363([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5112f4()?(_0x160ce0[_0x3d7363([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d7363([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26c181=_0x53e7a3(_0x3d7363([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x160ce0[_0x3d7363([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d7363([0x74,0x72,0x69,0x61,0x6c])&&(_0x26c181=_0x53e7a3(_0x3d7363([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2e16a3()):_0x3d7363([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d7363([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d7363([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x555792){return _0x3d7363([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x27591f(){const _0x1acd00=[_0x3d7363([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d7363([0x74,0x72,0x69,0x61,0x6c])][_0x3d7363([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x160ce0[_0x3d7363([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x413e55/0x3e8:0xe10*_0x28f848;return _0x160ce0[_0x3d7363([0x65,0x78,0x70])]<_0x1acd00;}function _0x1d66d0(){const _0x30f227=_0x160ce0[_0x3d7363([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x30f227&&(!!_0x30f227[_0x3d7363([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d7363([0x2a]))||!!_0x30f227[_0x3d7363([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d7363([0x55,0x50,0x4c,0x43])));}function _0x5112f4(){const _0x9320c4=_0x160ce0[_0x3d7363([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9320c4||0x0==_0x9320c4[_0x3d7363([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x414169}=new URL(window[_0x3d7363([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9320c4[_0x3d7363([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x414169))return!0x0;const _0x5b1052=_0x414169[_0x3d7363([0x73,0x70,0x6c,0x69,0x74])](_0x3d7363([0x2e]));return _0x9320c4[_0x3d7363([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x514bdd=>_0x514bdd[_0x3d7363([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d7363([0x2a])))[_0x3d7363([0x6d,0x61,0x70])](_0x1d8b18=>_0x1d8b18[_0x3d7363([0x73,0x70,0x6c,0x69,0x74])](_0x3d7363([0x2e])))[_0x3d7363([0x73,0x6f,0x6d,0x65])](_0x22744b=>_0x5b1052[_0x3d7363([0x65,0x76,0x65,0x72,0x79])]((_0xca1b09,_0x45dc82)=>_0x22744b[_0x45dc82]===_0xca1b09||_0x22744b[_0x45dc82]===_0x3d7363([0x2a])));}function _0x2e16a3(){return _0x26c181&&_0x1b7da6?new window[(_0x3d7363([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e66bc,_0x39fbba)=>{_0x26c181[_0x3d7363([0x74,0x68,0x65,0x6e])](_0x2e66bc,_0x39fbba),_0x1b7da6[_0x3d7363([0x74,0x68,0x65,0x6e])](_0x22a38c=>{_0x22a38c!=_0x3d7363([0x56,0x61,0x6c,0x69,0x64])&&_0x2e66bc(_0x22a38c);},_0x39fbba);}):_0x26c181||_0x1b7da6||_0x3d7363([0x56,0x61,0x6c,0x69,0x64]);}}function _0xba20b1(_0x1d629c,_0x4276bc){return new window[(_0x3d7363([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f5910=>{if(_0x3e0623())return _0x1f5910(_0x3d7363([0x56,0x61,0x6c,0x69,0x64]));_0x57e29d(),_0x27ef02[_0x3d7363([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d7363([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x111612=!0x1;const _0x4f1975=_0x33bd9a();function _0x203924(_0x5d4ea5){return!!_0x5d4ea5&&(typeof _0x5d4ea5===_0x3d7363([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5d4ea5===_0x3d7363([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5d4ea5[_0x3d7363([0x74,0x68,0x65,0x6e])]===_0x3d7363([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5d4ea5[_0x3d7363([0x63,0x61,0x74,0x63,0x68])]===_0x3d7363([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c8ea5(_0x36ec5b){_0x390421(_0x36ec5b)[_0x3d7363([0x74,0x68,0x65,0x6e])](_0x3ef860=>{if(!_0x3ef860||_0x3ef860[_0x3d7363([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d7363([0x6f,0x6b]))return _0x3d7363([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e8610(_0x1f364e(_0x4f1975+_0x4276bc))!=_0x3ef860[_0x3d7363([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d7363([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d7363([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d7363([0x74,0x68,0x65,0x6e])](_0x4ab361=>(_0x1ad074(),_0x4ab361),()=>{const _0xb4693a=_0x11dc0e();return null==_0xb4693a?(_0x1ad074(),_0x3d7363([0x56,0x61,0x6c,0x69,0x64])):_0x3d7363(_0x413e55-_0xb4693a>(0xb66dcd^_0x1aab4a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d7363([0x74,0x68,0x65,0x6e])](_0x1f5910)[_0x3d7363([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1f5910(_0x3d7363([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x56ebdc=0x248c074d^_0x1aab4a;function _0x1ad074(){const _0x13d4d1=_0x3d7363([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e8610(_0x1f364e(_0x1d629c)),_0x22bfa7=_0x7aa532(_0x4e8610(window[_0x3d7363([0x4d,0x61,0x74,0x68])][_0x3d7363([0x63,0x65,0x69,0x6c])](_0x413e55/_0x56ebdc)));window[_0x3d7363([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d7363([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13d4d1,_0x22bfa7);}function _0x11dc0e(){const _0x69800f=_0x3d7363([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e8610(_0x1f364e(_0x1d629c)),_0x14a41b=window[_0x3d7363([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d7363([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x69800f);return _0x14a41b?window[_0x3d7363([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x7aa532(_0x14a41b),0x10)*_0x56ebdc:null;}function _0x390421(_0x30599f){return new window[(_0x3d7363([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44edef,_0x4e1c0e)=>{_0x30599f[_0x3d7363([0x74,0x68,0x65,0x6e])](_0x44edef,_0x4e1c0e),window[_0x3d7363([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e1c0e,0x24bb3d0d^_0x1aab4a);});}}_0x27ef02[_0x3d7363([0x6f,0x6e])](_0x3d7363([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3118f8,_0x227601)=>{if(_0x227601[0x0]!=_0x1d629c)return _0x1f5910(_0x3d7363([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x227601[0x1]={..._0x227601[0x1],[_0x3d7363([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4f1975};},{[_0x3d7363([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d7363([0x68,0x69,0x67,0x68])}),_0x27ef02[_0x3d7363([0x6f,0x6e])](_0x3d7363([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x22801e=>{_0x203924(_0x22801e[_0x3d7363([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x111612=!0x0,_0x4c8ea5(_0x22801e[_0x3d7363([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d7363([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d7363([0x6c,0x6f,0x77])}),_0x4333dd[_0x3d7363([0x74,0x68,0x65,0x6e])](()=>{_0x111612||_0x1f5910(_0x3d7363([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3e0623(){return _0x27ef02[_0x3d7363([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d7363([0x76,0x69,0x65,0x77])][_0x3d7363([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d7363([0x61,0x75,0x74,0x6f]);}function _0x57e29d(){_0x27ef02[_0x3d7363([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d7363([0x76,0x69,0x65,0x77])][_0x3d7363([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d7363([0x61,0x75,0x74,0x6f]);}}function _0x53e7a3(_0x49bd8c){const _0x4c015a=[new window[(_0x3d7363([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x370d7a=>setTimeout(_0x370d7a,0x24b3d701^_0x1aab4a)),_0x4333dd[_0x3d7363([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d7363([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f7c68=>{let _0x12f10d=0x0;_0x27ef02[_0x3d7363([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d7363([0x6f,0x6e])](_0x3d7363([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f6198,_0xfdfc23)=>{_0xfdfc23[0x0][_0x3d7363([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x12f10d++,_0x12f10d==(0x24bae835^_0x1aab4a)&&(_0x3f7c68(),_0x3f6198[_0x3d7363([0x6f,0x66,0x66])]());});}))];return window[_0x3d7363([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d7363([0x72,0x61,0x63,0x65])](_0x4c015a)[_0x3d7363([0x74,0x68,0x65,0x6e])](()=>_0x49bd8c);}async function _0x5641e6(){await _0x4333dd,_0x27ef02[_0x3d7363([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d7363([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3bb6ec,_0x27ef02[_0x3d7363([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d7363([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3bb6ec,_0x27ef02[_0x3d7363([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d7363([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4d7866(_0x3345fe){const _0x34c3d8=_0x513b35();_0x27ef02[_0x34c3d8]=_0x3d7363([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3345fe,_0x3345fe!=_0x3d7363([0x56,0x61,0x6c,0x69,0x64])&&_0x5641e6();}function _0x513b35(){const _0x555b68=window[_0x3d7363([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d7363([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d7363([0x6e,0x6f,0x77])]())[_0x3d7363([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d7363([0x2e]),'');let _0x26327a=_0x3d7363([0x65]);for(let _0x3332ce=0x0;_0x3332ce<_0x555b68[_0x3d7363([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3332ce+=0x2){let _0x2d0985=window[_0x3d7363([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x555b68[_0x3d7363([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3332ce,_0x3332ce+0x2));_0x2d0985>=_0x41e13[_0x3d7363([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d0985-=_0x41e13[_0x3d7363([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x26327a+=_0x41e13[_0x2d0985];}return _0x26327a;}function _0x5c086b(){const _0x4a210c=_0x3b0b1f[_0x3d7363([0x73,0x70,0x6c,0x69,0x74])](_0x3d7363([0x2e]));if(0x3!=_0x4a210c[_0x3d7363([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x516ff6(_0x4a210c[0x1]);function _0x516ff6(_0x6d5c08){const _0x3d57c2=_0x33b6f1(_0x6d5c08);return _0x3d57c2&&_0x4cb06f()?_0x3d57c2:null;function _0x4cb06f(){const _0x2f4097=_0x3d57c2[_0x3d7363([0x6a,0x74,0x69])],_0x3b05bf=window[_0x3d7363([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f4097[_0x3d7363([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f4097[_0x3d7363([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd2c881={..._0x3d57c2,[_0x3d7363([0x6a,0x74,0x69])]:_0x2f4097[_0x3d7363([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f4097[_0x3d7363([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd2c881[_0x3d7363([0x76,0x63])],_0x1f364e(_0xd2c881)==_0x3b05bf;}}}async function _0x1a3b25(){let _0x24caf3=!0x0;try{const _0x549889=_0x3b0b1f[_0x3d7363([0x73,0x70,0x6c,0x69,0x74])](_0x3d7363([0x2e])),[_0xb0657f,_0x50c1df,_0x428245]=_0x549889;return _0x261b55(_0xb0657f),await _0x5c01c5(_0xb0657f,_0x50c1df,_0x428245),_0x24caf3;}catch(_0x1a6dd9){return!0x1;}function _0x261b55(_0x150dff){const _0x506db3=_0x33b6f1(_0x150dff);_0x506db3&&_0x506db3[_0x3d7363([0x61,0x6c,0x67])]==_0x3d7363([0x45,0x53,0x32,0x35,0x36])||(_0x24caf3=!0x1);}async function _0x5c01c5(_0x4603f1,_0x56feb5,_0x3a25bc){const _0x52922a=window[_0x3d7363([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d7363([0x66,0x72,0x6f,0x6d])](_0x6eb5e0(_0x3a25bc),_0x299ec6=>_0x299ec6[_0x3d7363([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x45acd2=new window[(_0x3d7363([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d7363([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4603f1+_0x3d7363([0x2e])+_0x56feb5),_0x26bd84=window[_0x3d7363([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d7363([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x26bd84)return;const _0x25c116=await _0x26bd84[_0x3d7363([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d7363([0x6a,0x77,0x6b]),_0x3d4017,{[_0x3d7363([0x6e,0x61,0x6d,0x65])]:_0x3d7363([0x45,0x43,0x44,0x53,0x41]),[_0x3d7363([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d7363([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d7363([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x26bd84[_0x3d7363([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d7363([0x6e,0x61,0x6d,0x65])]:_0x3d7363([0x45,0x43,0x44,0x53,0x41]),[_0x3d7363([0x68,0x61,0x73,0x68])]:{[_0x3d7363([0x6e,0x61,0x6d,0x65])]:_0x3d7363([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x25c116,_0x52922a,_0x45acd2)||(_0x24caf3=!0x1);}}function _0x33b6f1(_0x531f21){return _0x531f21[_0x3d7363([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d7363([0x65,0x79]))?JSON[_0x3d7363([0x70,0x61,0x72,0x73,0x65])](_0x6eb5e0(_0x531f21)):null;}function _0x6eb5e0(_0x71e0ba){return window[_0x3d7363([0x61,0x74,0x6f,0x62])](_0x71e0ba[_0x3d7363([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d7363([0x2b]))[_0x3d7363([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d7363([0x2f])));}function _0x1f364e(_0x488a62){let _0x55556d=0x1505;function _0x520294(_0x5904bd){for(let _0x18314e=0x0;_0x18314e<_0x5904bd[_0x3d7363([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x18314e++){const _0x127d8b=_0x5904bd[_0x3d7363([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x18314e);_0x55556d=(_0x55556d<<0x5)+_0x55556d+_0x127d8b,_0x55556d&=_0x55556d;}}function _0x55af93(_0x590452){Array[_0x3d7363([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x590452)?_0x590452[_0x3d7363([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x55af93):_0x590452&&typeof _0x590452==_0x3d7363([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d7363([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x590452)[_0x3d7363([0x73,0x6f,0x72,0x74])]()[_0x3d7363([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5f156f,_0x52e95e])=>{_0x520294(_0x5f156f),_0x55af93(_0x52e95e);}):_0x520294(window[_0x3d7363([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x590452));}return _0x55af93(_0x488a62),_0x55556d>>>0x0;}function _0x4e8610(_0x45df72){return _0x45df72[_0x3d7363([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d7363([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d7363([0x30]));}function _0x7aa532(_0x5a188a){return _0x5a188a[_0x3d7363([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d7363([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d7363([0x6a,0x6f,0x69,0x6e])]('');}function _0x3bb6ec(){}function _0x3d7363(_0x9ea289){return _0x9ea289['map'](_0x1371ab=>String['fromCharCode'](_0x1371ab))['join']('');}_0x4d7866(await _0x8be788());}(this);}['_initSchema'](){const _0x379389=this['editor']['model']['schema'];_0x379389['isRegistered']('imageBlock')&&_0x379389['extend']('imageBlock',{'allowAttributes':['uploadcareImageId']}),_0x379389['isRegistered']('imageInline')&&_0x379389['extend']('imageInline',{'allowAttributes':['uploadcareImageId']});}['_initConversion'](){const _0x116e6e=this['editor'];_0x116e6e['conversion']['for']('downcast')['attributeToAttribute']({'model':'uploadcareImageId','view':'data-uc-image-id'}),_0x116e6e['conversion']['for']('upcast')['elementToAttribute']({'model':{'key':'uploadcareImageId','value':_0x27740a=>_0x27740a['getAttribute']('data-uc-image-id')},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x44a48a=_0x116e6e['commands']['get']('replaceImageSource');_0x44a48a&&this['listenTo'](_0x44a48a,'cleanupImage',(_0x33146b,[_0x24961f,_0x300d00])=>{_0x24961f['removeAttribute']('uploadcareImageId',_0x300d00);});}['_initConfig'](){const _0x5e3c4d=this['editor']['config']['get']('uploadcare.uploader')||{},_0x374079=this['editor']['config']['get']('uploadcare.pubkey')||'';this['_configElement']=_0x241dfd(_0x46f0a0['document'],'uc-config',{..._0x5e3c4d,'pubkey':_0x374079,'ctx-name':'uploader','sourceList':'','imgOnly':'true','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage'],'externalSourcesEmbedCss':'\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup\x20{\x20padding:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-menu\x20{\x20gap:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__popup-footer\x20{\x20padding-top:\x200;\x20}\x0a\x09\x09\x09\x09.uc-dropdown-menu__separator\x20{\x20margin:\x200;\x20}\x0a\x09\x09\x09'}),this['_configElement']['iconHrefResolver']=_0x12d948=>{if('closeMax'==_0x12d948)return'#uc-icon-arrow-down';},_0x46f0a0['document']['body']['appendChild'](this['_configElement']);}['_initCtx'](){this['_ctxElement']=_0x241dfd(_0x46f0a0['document'],'uc-upload-ctx-provider',{'ctx-name':'uploader'}),_0x46f0a0['document']['body']['appendChild'](this['_ctxElement']);}['_initImageProcessingIndicator'](){const _0x1e4f2a=this['editor']['commands']['get']('insertImage');_0x1e4f2a&&this['listenTo'](_0x1e4f2a,'execute',()=>{const _0x4a623f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4a623f&&_0x4a623f['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4a623f);});});const _0xa3eb6f=this['editor']['commands']['get']('uploadcareImageReplace');_0xa3eb6f&&this['listenTo'](_0xa3eb6f,'execute',()=>{const _0x4bd103=this['editor']['model']['document']['selection']['getSelectedElement']();_0x4bd103&&_0x4bd103['getAttribute']('uploadcareImageId')&&this['editor']['editing']['view']['once']('render',()=>{p(this['editor'],_0x4bd103);});});}}class u extends _0x2f49ee{static get['requires'](){return[i,e];}static get['pluginName'](){return'Uploadcare';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3bfa8a){super(_0x3bfa8a),_0x3bfa8a['config']['define']('uploadcare.uploader.sourceList',[o['Local'],o['URL']]),_0x317691['defineComponents'](_0x317691);}}class ta extends _0x5bd0f4{constructor(_0xd5063){super(_0xd5063);const t=_0xd5063['t'],_0x1b3b8b=this['bindTemplate'],_0x56aecd=new _0x91ced8();_0x56aecd['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':[_0x56aecd,{'text':_0x1b3b8b['to']('imageUploadProgress',_0x3aafaf=>t('Loading\x20image...')+'\x20('+(_0x3aafaf||0x0)+'%)')}]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class rt extends _0x5bd0f4{constructor(_0x365cc2){super(_0x365cc2);const t=_0x365cc2['t'];this['set']('errorType',null);const _0x5a8ad1=new _0xf6f54e(_0x365cc2);_0x5a8ad1['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x5a8ad1['withText']=!0x0,_0x5a8ad1['class']='ck-button-action',_0x5a8ad1['on']('execute',()=>{this['fire']('retry');}),_0x5a8ad1['bind']('isVisible')['to'](this,'errorType',_0x1ff110=>'NotFound'!==_0x1ff110);const _0x2e0efc=new et();_0x2e0efc['content']='<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M9.9\x204.385a1.2\x201.2\x200\x200\x200-.44.44h.002l-5.284\x209.15a1.2\x201.2\x200\x200\x200\x201.04\x201.8h10.564a1.2\x201.2\x200\x200\x200\x201.04-1.8l-5.282-9.15a1.2\x201.2\x200\x200\x200-1.64-.44Zm.05\x208.363a.301.301\x200\x200\x201\x20.115-.023h.9a.301.301\x200\x200\x201\x20.3.3v.9a.3.3\x200\x200\x201-.3.3h-.9a.3.3\x200\x200\x201-.3-.3v-.9a.3.3\x200\x200\x201\x20.185-.277Zm-.185-4.723a.3.3\x200\x200\x201\x20.3-.3h.9a.3.3\x200\x200\x201\x20.3.3v3.4a.3.3\x200\x200\x201-.3.3h-.9a.301.301\x200\x200\x201-.3-.3v-3.4Z\x22/></svg>\x0a',_0x2e0efc['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x2370d8=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':[_0x2e0efc,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x2370d8['to']('errorType',_0xa05ba=>t('NotFound'!==_0xa05ba?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x5a8ad1]},{'tag':'div','attributes':{'class':['ck-uploadcare-form__skeleton']},'children':[{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'}]},{'tag':'div','children':[{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'},{'tag':'span'}]}]}]});}}class tt extends _0x5bd0f4{constructor(_0x3fb897,_0xcf8755){super(_0x3fb897);const _0x1c854a=this['bindTemplate'];this['set']('imageSrc',''),this['setTemplate']({'tag':'uc-cloud-image-editor','attributes':{..._0xcf8755,'class':['uc-light','ck-uploadcare-theme'],'ctx-name':'image-edit','cdn-url':_0x1c854a['to']('imageSrc')}});}}class Z extends q{['_items'];['_loadingView'];['_errorView'];['_editingView'];['_focusableView'];constructor(_0x4059f2,_0x467297,_0xc53213){super(_0x4059f2),this['_items']=this['createCollection'](),this['_loadingView']=new ta(_0x4059f2),this['_errorView']=new rt(_0x4059f2),this['_editingView']=new tt(_0x4059f2,_0xc53213),this['_focusableView']=new _0x5bd0f4(_0x4059f2),this['_focusableView']['setTemplate'](this['getFocusableElement']()),this['set']('status',_0x467297),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'],_0x116bf4=>{this['_addUploadcareImageEditorListeners'](_0x116bf4);});}),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'](_0x131bca,_0x3a9429){const _0x351ea0='uc-cloud-image-editor',_0xc7fb3c=_0x131bca['querySelector'](_0x351ea0);if(_0xc7fb3c)return _0x3a9429(_0xc7fb3c);const _0x5a0b99=new MutationObserver(_0xe3bfeb=>{const _0x1f77d2=_0xe3bfeb['filter'](_0x15fb18=>_0x15fb18['target']===_0x131bca&&_0x15fb18['addedNodes']['length']>0x0&&_0x15fb18['addedNodes'][0x0]['nodeName']['toLowerCase']()===_0x351ea0);_0x1f77d2['length']&&(_0x5a0b99['disconnect'](),_0x3a9429(_0x1f77d2[0x0]['addedNodes'][0x0]));});_0x5a0b99['observe'](_0x131bca,{'childList':!0x0,'subtree':!0x0});}['_addUploadcareImageEditorListeners'](_0x5a75b7){_0x5a75b7['addEventListener']('apply',_0x176bc7=>{this['fire']('apply',{'imageSrc':_0x176bc7['detail']['cdnUrl']});}),_0x5a75b7['addEventListener']('cancel',()=>{this['fire']('cancel');});}['_addErrorViewListeners'](){this['_errorView']['on']('retry',()=>{this['fire']('retry');});}}var M='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M1.201\x201C.538\x201\x200\x201.47\x200\x202.1v14.363c0\x20.64.534\x201.037\x201.186\x201.037H5.06l5.058-5.078L6.617\x209.15a.696.696\x200\x200\x200-.957-.033L1.5\x2013.6V2.5h15v4.354a3.478\x203.478\x200\x200\x201\x201.5.049V2.1c0-.63-.547-1.1-1.2-1.1H1.202Zm11.713\x202.803a2.147\x202.147\x200\x200\x200-2.049\x201.992\x202.14\x202.14\x200\x200\x200\x201.28\x202.096\x202.13\x202.13\x200\x200\x200\x202.642-3.11\x202.129\x202.129\x200\x200\x200-1.873-.978ZM8.089\x2017.635v2.388h2.389l7.046-7.046-2.39-2.39-7.045\x207.048Zm11.282-6.507a.637.637\x200\x200\x200\x20.139-.692.603.603\x200\x200\x200-.139-.205l-1.49-1.488a.63.63\x200\x200\x200-.899\x200l-1.166\x201.163\x202.39\x202.39\x201.165-1.168Z\x22/></svg>\x0a';class z extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4d1856(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x185ebd,_0x4f966f,_0x101030){super(),this['_editor']=_0x185ebd,this['_dialog']=_0x4f966f,this['_imageElement']=_0x101030,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 _0x531c7b=this['_imageElement'],_0x4c4ee6=_0x531c7b['getAttribute']('uploadcareImageId'),_0x5dd7da=_0x531c7b['getAttribute']('src');if(_0x4c4ee6)await this['_loadImageInfo'](_0x4c4ee6,_0x5dd7da);else{if(this['_imageCache']['has'](_0x5dd7da)){const _0x3ca689=this['_imageCache']['get'](_0x5dd7da);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3ca689['url'],this['imageDimension']=_0x3ca689['dimension'],this['imageId']=_0x3ca689['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1a3025}=this['_editor'],t=_0x1a3025['t'],_0x29e6ac=new Z(_0x1a3025,this['imageStatus'],this['_attributes']);_0x29e6ac['bind']('status')['to'](this,'imageStatus'),_0x29e6ac['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x29e6ac['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x29e6ac['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x29e6ac,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':M,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x29e6ac,'position':_0x4703a4['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x29e6ac['focus']();},'onHide':()=>{_0x29e6ac['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x5018d1=>!F(_0x5018d1,_0x29e6ac['element'])}});}['_loadImageInfo'](_0x3b7802,_0x4eb93f){return k['getInfo'](_0x3b7802,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x3ba7ca=>{const {width:_0x505118,height:_0x1048dd}=_0x3ba7ca['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x4eb93f,this['imageDimension']={'width':_0x505118,'height':_0x1048dd},this['imageId']=_0x3b7802;})['catch'](_0x28a22b=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x28a22b['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x32c9c4,_0x492189){return this['_getImageAsFile'](_0x32c9c4)['then'](_0xe940de=>k['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x492189['signal'],'file':_0xe940de,'onProgress':_0x5b44f0=>{_0x5b44f0&&_0x5b44f0['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x5b44f0['value']));}}))['then'](_0xe5c0bd=>{const {width:_0x557e46,height:_0x183b29}=_0xe5c0bd['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xe5c0bd['cdnUrl'],this['imageDimension']={'width':_0x557e46,'height':_0x183b29},this['imageId']=_0xe5c0bd['uuid'],this['imageUploadProgress']=null;const _0x2e8f0a=_0x32c9c4['getAttribute']('src');this['_imageCache']['set'](_0x2e8f0a,{'id':_0xe5c0bd['uuid'],'url':_0xe5c0bd['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3d7cee=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3d7cee['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x1ce546,_0x58e2a0){_0x1ce546['on']('apply',(_0x396e4c,_0x14512e)=>{this['_replaceImage'](_0x58e2a0,_0x14512e['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x1ce546['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x1ce546['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x55dee1,_0x50a2d9,_0xba6410){const _0x1e08e0=this['_editor'],{width:_0xd6f58f,height:_0x524358}=A(_0x50a2d9,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x49ac60,imageSources:_0x4a5b5f}=C(_0x50a2d9,_0xd6f58f);_0x1e08e0['model']['change'](_0x31805f=>{if('$graveyard'===_0x55dee1['root']['rootName']){_0x1e08e0['execute']('insertImage',{'imageType':_0x55dee1['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x55dee1['getAttributes']()),'uploadcareImageId':_0xba6410,'src':_0x49ac60,'sources':_0x4a5b5f,'width':_0xd6f58f,'height':_0x524358}});const _0x1c00f1=_0x55dee1['getChildren']();_0x55dee1=_0x1e08e0['model']['document']['selection']['getSelectedElement']();for(const _0x2612fb of _0x1c00f1)_0x31805f['append'](_0x31805f['cloneElement'](_0x2612fb),_0x55dee1);}else _0x31805f['setSelection'](_0x55dee1,'on'),_0x1e08e0['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x55dee1['getAttributes']()),'uploadcareImageId':_0xba6410,'src':_0x49ac60,'sources':_0x4a5b5f,'width':_0xd6f58f,'height':_0x524358},_0x55dee1);_0x31805f['setSelection'](_0x55dee1,'on');});}async['_getImageAsFile'](_0x3ce5e0){const _0x17461c=_0x46f0a0['window'],_0x89e0da=_0x46f0a0['document']['location']['href'],_0x36f688=new _0x17461c['URL'](_0x3ce5e0['getAttribute']('src'),_0x89e0da);if('data:'===_0x36f688['protocol']){const _0x3c61e7=_0x36f688['href']['split'](','),_0x2cf798=_0x3c61e7[0x0]['match'](/:(.*?);/)[0x1],_0x1b9939=_0x2cf798['split']('/')[0x1],_0x1170b7=_0x17461c['atob'](_0x3c61e7[_0x3c61e7['length']-0x1]);let _0x21ff6f=_0x1170b7['length'];const _0x130525=new _0x17461c['Uint8Array'](_0x21ff6f);for(;_0x21ff6f--;)_0x130525[_0x21ff6f]=_0x1170b7['charCodeAt'](_0x21ff6f);return new _0x17461c['File']([_0x130525],'image.'+_0x1b9939,{'type':_0x2cf798});}const _0x344a29=_0x36f688['href']['split']('/'),_0x3f96ed=_0x344a29[_0x344a29['length']-0x1],_0x3a6cf6=_0x3f96ed['split']('.')[0x1];return _0x17461c['fetch'](_0x36f688['href'])['then'](_0x2039c2=>_0x2039c2['clone']()['blob']())['then'](_0x20bf16=>new _0x17461c['File']([_0x20bf16],_0x3f96ed,{'type':'image/'+_0x3a6cf6}));}}class J extends _0x4b93b2{['imageEditController'];static get['requires'](){return[_0x2a0edf];}['_isEditable'];constructor(_0x17dc21){super(_0x17dc21),this['imageEditController']=void 0x0,this['_isEditable']=function(_0x447d9f){const _0xbe185c=V(_0x447d9f);return _0x39f7e9=>!(!_0x39f7e9||!_0x39f7e9['is']('element','imageBlock')&&!_0x39f7e9['is']('element','imageInline'))&&(!!_0x39f7e9['hasAttribute']('uploadcareImageId')||!!_0x39f7e9['hasAttribute']('src')&&_0xbe185c(_0x39f7e9['getAttribute']('src')));}(_0x17dc21['config']['get']('uploadcare.allowExternalImagesEditing')||[]),this['set']({'isActive':!0x1});}['refresh'](){const _0x117eea=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=this['_isEditable'](_0x117eea);}['execute'](){this['imageEditController']&&(this['unbind']('isActive'),this['imageEditController']=void 0x0);const _0x2a30f=this['editor']['model']['document']['selection']['getSelectedElement']();_0x2a30f&&(_0x2a30f['is']('element','imageBlock')||_0x2a30f['is']('element','imageInline'))&&(this['imageEditController']=new z(this['editor'],this['editor']['plugins']['get'](_0x2a0edf),_0x2a30f),this['bind']('isActive')['to'](this['imageEditController'],'isActive'));}}class O extends _0x4b93b2{['refresh'](){const _0x30c07d=this['editor']['model']['document']['selection']['getSelectedElement']();this['isEnabled']=Boolean(_0x30c07d&&(_0x30c07d['is']('element','imageBlock')||_0x30c07d['is']('element','imageInline')));}['execute'](_0x46181e){const _0x46bd73=this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](_0x40b0e3=>{_0x40b0e3['setAttributes'](_0x46181e,_0x46bd73),_0x40b0e3['removeAttribute']('srcset',_0x46bd73),_0x40b0e3['removeAttribute']('sizes',_0x46bd73);});}}class m extends _0x2f49ee{static get['pluginName'](){return'UploadcareImageEditEditing';}static get['requires'](){return[i,_0x361be8,'ImageUtils','ImageEditing'];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x75051e}=this;_0x75051e['commands']['add']('uploadcareImageEdit',new J(_0x75051e)),_0x75051e['commands']['add']('uploadcareImageReplace',new O(_0x75051e));}}class g extends _0x2f49ee{['_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 _0xe7d432=this['editor'];_0xe7d432['ui']['componentFactory']['add']('uploadcareImageEdit',_0x441aad=>{const _0x2f9a1f=_0xe7d432['commands']['get']('uploadcareImageEdit'),_0x4c7866=new _0xf6f54e(_0x441aad),t=_0x441aad['t'];return _0x4c7866['set']({'icon':M,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x4c7866['bind']('isEnabled')['to'](_0x2f9a1f),_0x4c7866['bind']('isOn')['to'](_0x2f9a1f,'isActive'),this['listenTo'](_0x4c7866,'execute',()=>{_0xe7d432['execute']('uploadcareImageEdit'),_0xe7d432['editing']['view']['focus']();}),_0x4c7866;}),this['_initConfig']();}['_initConfig'](){const _0x223c51=_0x241dfd(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x223c51),this['listenTo'](this['editor'],'destroy',()=>{_0x223c51['remove']();});}}class j extends _0x2f49ee{static get['pluginName'](){return'UploadcareImageEdit';}static get['requires'](){return[m,g];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{u as Uploadcare,i as UploadcareEditing,j as UploadcareImageEdit,m as UploadcareImageEditEditing,g as UploadcareImageEditUI,e as UploadcareUI};
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x26db95=>0x1!=_0x26db95}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x35a330=>{const {af:{dictionary:_0x502ed7,getPluralForm:_0x41b61a}}={'af':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x38e3fe=>0x1!=_0x38e3fe}};_0x35a330['af']||={'dictionary':{},'getPluralForm':null},_0x35a330['af']['dictionary']=Object['assign'](_0x35a330['af']['dictionary'],_0x502ed7),_0x35a330['af']['getPluralForm']=_0x41b61a;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ar.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':
|
|
23
|
+
export default{'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x37be1d=>0x0==_0x37be1d?0x0:0x1==_0x37be1d?0x1:0x2==_0x37be1d?0x2:_0x37be1d%0x64>=0x3&&_0x37be1d%0x64<=0xa?0x3:_0x37be1d%0x64>=0xb?0x4:0x5}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x5e5557=>{const {ar:{dictionary:_0x1a7aa5,getPluralForm:_0x310043}}={'ar':{'dictionary':{'Insert\x20with\x20Dropbox':'إدراج\x20باستخدام\x20Dropbox','Replace\x20with\x20Dropbox':'استبدال\x20باستخدام\x20Dropbox','With\x20Dropbox':'باستخدام\x20Dropbox','Insert\x20with\x20Facebook':'إدراج\x20باستخدام\x20Facebook','Replace\x20with\x20Facebook':'استبدال\x20باستخدام\x20Facebook','With\x20Facebook':'باستخدام\x20Facebook','Insert\x20with\x20Google\x20Drive':'إدراج\x20باستخدام\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'استبدال\x20باستخدام\x20Google\x20Drive','With\x20Google\x20Drive':'باستخدام\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'إدراج\x20باستخدام\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'استبدال\x20باستخدام\x20Google\x20Photos','With\x20Google\x20Photos':'باستخدام\x20Google\x20Photos','Insert\x20with\x20OneDrive':'إدراج\x20باستخدام\x20OneDrive','Replace\x20with\x20OneDrive':'استبدال\x20باستخدام\x20OneDrive','With\x20OneDrive':'باستخدام\x20OneDrive','Replace\x20via\x20URL':'استبدال\x20باستخدام\x20رابط','Edit\x20Image\x20(Uploadcare)':'تحرير\x20الصورة','Loading\x20image...':'جارٍ\x20تحميل\x20الصورة...','Unable\x20to\x20load':'تعذر\x20التحميل','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'تعذّر\x20علينا\x20تحميل\x20الصورة\x20بسبب\x20مشكلات\x20في\x20اتصال\x20الشبكة.','Try\x20again\x20(Uploadcare)':'حاول\x20مجددًا','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'لم\x20نعثر\x20على\x20الصورة.\x20ربما\x20حُذف\x20مصدرها.'},'getPluralForm':_0x5dc02d=>0x0==_0x5dc02d?0x0:0x1==_0x5dc02d?0x1:0x2==_0x5dc02d?0x2:_0x5dc02d%0x64>=0x3&&_0x5dc02d%0x64<=0xa?0x3:_0x5dc02d%0x64>=0xb?0x4:0x5}};_0x5e5557['ar']||={'dictionary':{},'getPluralForm':null},_0x5e5557['ar']['dictionary']=Object['assign'](_0x5e5557['ar']['dictionary'],_0x1a7aa5),_0x5e5557['ar']['getPluralForm']=_0x310043;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/ast.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x6d85d=>0x1!=_0x6d85d}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x21f744=>{const {ast:{dictionary:_0x5e94e4,getPluralForm:_0x4d4755}}={'ast':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x3d16bc=>0x1!=_0x3d16bc}};_0x21f744['ast']||={'dictionary':{},'getPluralForm':null},_0x21f744['ast']['dictionary']=Object['assign'](_0x21f744['ast']['dictionary'],_0x5e94e4),_0x21f744['ast']['getPluralForm']=_0x4d4755;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/az.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':
|
|
23
|
+
export default{'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x83b370=>0x1!=_0x83b370}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0xe80285=>{const {az:{dictionary:_0x1141f0,getPluralForm:_0x133cc8}}={'az':{'dictionary':{'Insert\x20with\x20Dropbox':'','Replace\x20with\x20Dropbox':'','With\x20Dropbox':'','Insert\x20with\x20Facebook':'','Replace\x20with\x20Facebook':'','With\x20Facebook':'','Insert\x20with\x20Google\x20Drive':'','Replace\x20with\x20Google\x20Drive':'','With\x20Google\x20Drive':'','Insert\x20with\x20Google\x20Photos':'','Replace\x20with\x20Google\x20Photos':'','With\x20Google\x20Photos':'','Insert\x20with\x20OneDrive':'','Replace\x20with\x20OneDrive':'','With\x20OneDrive':'','Replace\x20via\x20URL':'','Edit\x20Image\x20(Uploadcare)':'','Loading\x20image...':'','Unable\x20to\x20load':'','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'','Try\x20again\x20(Uploadcare)':'','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':''},'getPluralForm':_0x4cda2f=>0x1!=_0x4cda2f}};_0xe80285['az']||={'dictionary':{},'getPluralForm':null},_0xe80285['az']['dictionary']=Object['assign'](_0xe80285['az']['dictionary'],_0x1141f0),_0xe80285['az']['getPluralForm']=_0x133cc8;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bg.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':
|
|
23
|
+
export default{'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x27903e=>0x1!=_0x27903e}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x47ea16=>{const {bg:{dictionary:_0x537133,getPluralForm:_0x4f53b8}}={'bg':{'dictionary':{'Insert\x20with\x20Dropbox':'Вмъкни\x20с\x20Dropbox','Replace\x20with\x20Dropbox':'Замени\x20с\x20Dropbox','With\x20Dropbox':'С\x20Dropbox','Insert\x20with\x20Facebook':'Вмъкни\x20с\x20Facebook','Replace\x20with\x20Facebook':'Замени\x20с\x20Facebook','With\x20Facebook':'С\x20Facebook','Insert\x20with\x20Google\x20Drive':'Вмъкни\x20с\x20Google\x20Drive','Replace\x20with\x20Google\x20Drive':'Замени\x20с\x20Google\x20Drive','With\x20Google\x20Drive':'С\x20Google\x20Drive','Insert\x20with\x20Google\x20Photos':'Вмъкни\x20с\x20Google\x20Photos','Replace\x20with\x20Google\x20Photos':'Замени\x20с\x20Google\x20Photos','With\x20Google\x20Photos':'С\x20Google\x20Photos','Insert\x20with\x20OneDrive':'Вмъкни\x20с\x20OneDrive','Replace\x20with\x20OneDrive':'Замени\x20с\x20OneDrive','With\x20OneDrive':'С\x20OneDrive','Replace\x20via\x20URL':'Замени\x20през\x20URL','Edit\x20Image\x20(Uploadcare)':'Редактиране\x20на\x20изображението','Loading\x20image...':'Изображението\x20се\x20зарежда...','Unable\x20to\x20load':'Не\x20може\x20да\x20зареди','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'Не\x20успяхме\x20да\x20заредим\x20изображението\x20поради\x20проблем\x20с\x20интернет\x20връзката.','Try\x20again\x20(Uploadcare)':'Опитайте\x20отново','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'Изображението\x20не\x20беше\x20намерено.\x20Източникът\x20му\x20може\x20да\x20е\x20премахнат.'},'getPluralForm':_0x2a274a=>0x1!=_0x2a274a}};_0x47ea16['bg']||={'dictionary':{},'getPluralForm':null},_0x47ea16['bg']['dictionary']=Object['assign'](_0x47ea16['bg']['dictionary'],_0x537133),_0x47ea16['bg']['getPluralForm']=_0x4f53b8;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/dist/translations/bn.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':
|
|
23
|
+
export default{'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x5ad7ad=>0x1!=_0x5ad7ad}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x219b9c=>{const {bn:{dictionary:_0x7743f5,getPluralForm:_0x52a172}}={'bn':{'dictionary':{'Insert\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Dropbox':'Dropbox\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Dropbox':'Dropbox\x20দিয়ে','Insert\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Facebook':'Facebook\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Facebook':'Facebook\x20দিয়ে','Insert\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Drive':'Google\x20Drive\x20দিয়ে','Insert\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20Google\x20Photos':'Google\x20Photos\x20দিয়ে','Insert\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রবেশ\x20করান','Replace\x20with\x20OneDrive':'OneDrive\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','With\x20OneDrive':'OneDrive\x20দিয়ে','Replace\x20via\x20URL':'URL\x20দিয়ে\x20প্রতিস্থাপন\x20করুন','Edit\x20Image\x20(Uploadcare)':'ছবি\x20এডিট\x20করুন','Loading\x20image...':'ছবি\x20লোড\x20হচ্ছে...','Unable\x20to\x20load':'লোড\x20করা\x20যাচ্ছে\x20না','We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'নেটওয়ার্ক\x20সংযোগের\x20সমস্যার\x20কারণে\x20আমরা\x20ছবিটি\x20লোড\x20করতে\x20পারিনি।','Try\x20again\x20(Uploadcare)':'আবার\x20চেষ্টা\x20করুন','The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.':'ছবিটি\x20পাওয়া\x20যায়নি।\x20এর\x20উৎস\x20হয়তো\x20মুছে\x20ফেলা\x20হয়েছে।'},'getPluralForm':_0x4edada=>0x1!=_0x4edada}};_0x219b9c['bn']||={'dictionary':{},'getPluralForm':null},_0x219b9c['bn']['dictionary']=Object['assign'](_0x219b9c['bn']['dictionary'],_0x7743f5),_0x219b9c['bn']['getPluralForm']=_0x52a172;})(window['CKEDITOR_TRANSLATIONS']||={});
|