@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20250610.0 → 0.0.0-nightly-20250613.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/build/uploadcare.js +1 -1
  2. package/dist/index.js +3 -3
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/index.d.ts +4 -2
  151. package/src/index.js +1 -1
  152. package/src/ui/uploadcarecontroller.js +2 -2
  153. package/src/ui/uploadcareformview.js +1 -1
  154. package/src/uploadcare.js +1 -1
  155. package/src/uploadcarecommand.js +1 -1
  156. package/src/uploadcareconfig.d.ts +2 -3
  157. package/src/uploadcareconfig.js +1 -1
  158. package/src/uploadcareediting.js +1 -1
  159. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
  160. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
  161. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
  162. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
  163. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
  164. package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
  165. package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
  166. package/src/uploadcareimageedit/uploadcareimageeditui.d.ts +2 -3
  167. package/src/uploadcareimageedit/uploadcareimageeditui.js +1 -1
  168. package/src/uploadcareimageedit/uploadcareimagereplacecommand.js +1 -1
  169. package/src/uploadcareimageedit.js +1 -1
  170. package/src/uploadcareui.js +1 -1
  171. package/src/uploadcareuploadadapter.js +1 -1
  172. package/src/utils/common-translations.js +1 -1
  173. package/src/utils/dialogfocusmanagerview.js +1 -1
  174. package/src/utils/editingutils.js +1 -1
  175. package/src/utils/isancestor.js +1 -1
  176. package/src/utils/uploadutils.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2e6d5d=_0x3bb7;(function(_0x94763,_0x43919f){const _0x51868a=_0x3bb7,_0x4de9ef=_0x94763();while(!![]){try{const _0x2a55d0=parseInt(_0x51868a(0x11b))/0x1*(-parseInt(_0x51868a(0x11a))/0x2)+parseInt(_0x51868a(0x124))/0x3*(-parseInt(_0x51868a(0xfb))/0x4)+-parseInt(_0x51868a(0x12f))/0x5*(parseInt(_0x51868a(0xeb))/0x6)+-parseInt(_0x51868a(0xe7))/0x7*(parseInt(_0x51868a(0x114))/0x8)+-parseInt(_0x51868a(0xee))/0x9+parseInt(_0x51868a(0xf5))/0xa+parseInt(_0x51868a(0x106))/0xb*(parseInt(_0x51868a(0x126))/0xc);if(_0x2a55d0===_0x43919f)break;else _0x4de9ef['push'](_0x4de9ef['shift']());}catch(_0x3c7d84){_0x4de9ef['push'](_0x4de9ef['shift']());}}}(_0x1523,0xab081));import{Plugin as _0x55f286}from'ckeditor5/src/core.js';import{Dialog as _0x57bf75}from'ckeditor5/src/ui.js';function _0x3bb7(_0x5546c7,_0x1ee64d){const _0x1523db=_0x1523();return _0x3bb7=function(_0x3bb7ab,_0x46a714){_0x3bb7ab=_0x3bb7ab-0xe4;let _0x98ba07=_0x1523db[_0x3bb7ab];return _0x98ba07;},_0x3bb7(_0x5546c7,_0x1ee64d);}import{createElement as _0x5260fb,global as _0x8ffc3a,uid as _0x348406}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x3afdfd}from'./uploadcarecommand.js';function _0x1523(){const _0x15c5a9=['href','272JlfImY','uploadcare.uploader','uploadcareImageId','extend','model','imageBlock','856238dZRqOr','2JwsJbz','isPremiumPlugin','render','locale','imageInline','true','_ctxElement','document','getAttribute','6ozYbyq','configElement','1634340fqMTtu','uploadcare.pubkey','listenTo','elementToAttribute','uc-config','uploader','#uc-icon-arrow-down','\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','once','10630gHdhDI','map','execute','insertImage','isRegistered','upcast','replaceImageSource','remove','attributeToAttribute','commands','for','schema','_initCtx','querySelector','140903mNCcpE','data-uc-image-id','removeAttribute','ctxElement','2328ZwdszN','selection','cleanupImage','10441872tCAESv','uc-upload-ctx-provider','pluginName','view','conversion','_initConfig','_initConversion','9261700rPHCmj','uploadcareImageReplace','downcast','add','editing','requires','754340VPwXaU','_initSchema','get','afterInit','PictureEditing','UploadcareEditing','join','isOfficialPlugin','_configElement','body','destroy','297juTRRm','appendChild','contentLanguage','uploadcare','closeMax','config','fromCharCode','iconHrefResolver','getSelectedElement','_initImageProcessingIndicator','init','editor','input[uploadcare-file-input]'];_0x1523=function(){return _0x15c5a9;};return _0x1523();}import{UploadcareUploadAdapter as _0x263827}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x393ca8}from'./utils/editingutils.js';export class UploadcareEditing extends _0x55f286{[_0x2e6d5d(0x103)]=null;[_0x2e6d5d(0x121)]=null;static get[_0x2e6d5d(0xf0)](){const _0x5e5dd5=_0x2e6d5d;return _0x5e5dd5(0x100);}static get[_0x2e6d5d(0xfa)](){const _0x4274aa=_0x2e6d5d;return[_0x4274aa(0xff),_0x263827,_0x57bf75];}static get[_0x2e6d5d(0x102)](){return!0x0;}static get[_0x2e6d5d(0x11c)](){return!0x0;}get[_0x2e6d5d(0x125)](){const _0x43f9fe=_0x2e6d5d;return this[_0x43f9fe(0x103)];}get[_0x2e6d5d(0xea)](){const _0x4b9d80=_0x2e6d5d;return this[_0x4b9d80(0x121)];}[_0x2e6d5d(0x110)](){const _0x4eca98=_0x2e6d5d,_0x38e089=this[_0x4eca98(0x111)];_0x38e089[_0x4eca98(0x138)][_0x4eca98(0xf8)](_0x4eca98(0x109),new _0x3afdfd(_0x38e089));}[_0x2e6d5d(0xfe)](){const _0x141ff4=_0x2e6d5d;this[_0x141ff4(0xfc)](),this[_0x141ff4(0xf4)](),this[_0x141ff4(0xf3)](),this[_0x141ff4(0xe5)](),this[_0x141ff4(0x10f)](),this[_0x141ff4(0x128)](this[_0x141ff4(0x111)],_0x141ff4(0x105),()=>{const _0x45ebe7=_0x141ff4;this[_0x45ebe7(0x103)]&&(this[_0x45ebe7(0x103)][_0x45ebe7(0x136)](),this[_0x45ebe7(0x103)]=null),this[_0x45ebe7(0x121)]&&(this[_0x45ebe7(0x121)][_0x45ebe7(0x136)](),this[_0x45ebe7(0x121)]=null);const _0x7d248c=_0x8ffc3a[_0x45ebe7(0x122)][_0x45ebe7(0xe6)](_0x45ebe7(0x112));_0x7d248c&&_0x7d248c[_0x45ebe7(0x136)]();}),async function(_0x3630ab){const _0x4fa57d=_0x47fb8c([0x72,0x51,0x69,0x49,0x4e,0x4c,0x43,0x55,0x37,0x75,0x54,0x59,0x32,0x56,0x31,0x68,0x79,0x76,0x50,0x34,0x7a,0x38,0x77,0x71,0x6a,0x46,0x67,0x33,0x4a,0x6b,0x74,0x57,0x78,0x64,0x5a,0x6e,0x70,0x41,0x63,0x4f,0x36,0x62,0x52,0x73,0x61,0x39,0x4d,0x66,0x53,0x6f,0x30,0x35,0x65,0x6c,0x6d,0x58,0x45,0x4b,0x47,0x44,0x48,0x42]),_0x2ea34b=0x52479035,_0x4c8058=0x5240fa6d^_0x2ea34b,_0x1735da=window[_0x47fb8c([0x44,0x61,0x74,0x65])][_0x47fb8c([0x6e,0x6f,0x77])](),_0x27649d=_0x3630ab[_0x47fb8c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x15bc86=new window[(_0x47fb8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5300ec=>{_0x27649d[_0x47fb8c([0x6f,0x6e,0x63,0x65])](_0x47fb8c([0x72,0x65,0x61,0x64,0x79]),_0x5300ec);}),_0x10fbd9={[_0x47fb8c([0x6b,0x74,0x79])]:_0x47fb8c([0x45,0x43]),[_0x47fb8c([0x75,0x73,0x65])]:_0x47fb8c([0x73,0x69,0x67]),[_0x47fb8c([0x63,0x72,0x76])]:_0x47fb8c([0x50,0x2d,0x32,0x35,0x36]),[_0x47fb8c([0x78])]:_0x47fb8c([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]),[_0x47fb8c([0x79])]:_0x47fb8c([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]),[_0x47fb8c([0x61,0x6c,0x67])]:_0x47fb8c([0x45,0x53,0x32,0x35,0x36])},_0x44649d=_0x27649d[_0x47fb8c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x47fb8c([0x67,0x65,0x74])](_0x47fb8c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2da155(){let _0xccb22c,_0x40fba9=null,_0x3d02e0=null;try{if(_0x44649d==_0x47fb8c([0x47,0x50,0x4c]))return _0x47fb8c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xccb22c=_0x26eb08(),!_0xccb22c)return _0x47fb8c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xccb22c[_0x47fb8c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d02e0=_0x1b59a6(_0xccb22c[_0x47fb8c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xccb22c[_0x47fb8c([0x6a,0x74,0x69])])),await _0x3173a3()?_0x3f2d9f()?_0x16d476()?_0x47fb8c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f8843()?(_0xccb22c[_0x47fb8c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47fb8c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x40fba9=_0x56dfda(_0x47fb8c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xccb22c[_0x47fb8c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x47fb8c([0x74,0x72,0x69,0x61,0x6c])&&(_0x40fba9=_0x56dfda(_0x47fb8c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2149d6()):_0x47fb8c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x47fb8c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x47fb8c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x47fb8c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x16d476(){const _0x9b84c0=[_0x47fb8c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x47fb8c([0x74,0x72,0x69,0x61,0x6c])][_0x47fb8c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xccb22c[_0x47fb8c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1735da/0x3e8:0xe10*_0x4c8058;return _0xccb22c[_0x47fb8c([0x65,0x78,0x70])]<_0x9b84c0;}function _0x3f2d9f(){const _0x53d45f=_0xccb22c[_0x47fb8c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x53d45f&&(!!_0x53d45f[_0x47fb8c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47fb8c([0x2a]))||!!_0x53d45f[_0x47fb8c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47fb8c([0x55,0x50,0x4c,0x43])));}function _0x4f8843(){const _0x509350=_0x3bb7,_0x34bd93=_0xccb22c[_0x47fb8c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x34bd93||0x0==_0x34bd93[_0x47fb8c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ec995}=new URL(window[_0x47fb8c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x509350(0x113)]);if(_0x34bd93[_0x47fb8c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ec995))return!0x0;const _0x5c3cb0=_0x1ec995[_0x47fb8c([0x73,0x70,0x6c,0x69,0x74])](_0x47fb8c([0x2e]));return _0x34bd93[_0x47fb8c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x235d50=>_0x235d50[_0x47fb8c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47fb8c([0x2a])))[_0x47fb8c([0x6d,0x61,0x70])](_0x19ab9d=>_0x19ab9d[_0x47fb8c([0x73,0x70,0x6c,0x69,0x74])](_0x47fb8c([0x2e])))[_0x47fb8c([0x73,0x6f,0x6d,0x65])](_0x1c0efa=>_0x5c3cb0[_0x47fb8c([0x65,0x76,0x65,0x72,0x79])]((_0x2b6aa2,_0x43be81)=>_0x1c0efa[_0x43be81]===_0x2b6aa2||_0x1c0efa[_0x43be81]===_0x47fb8c([0x2a])));}function _0x2149d6(){return _0x40fba9&&_0x3d02e0?new window[(_0x47fb8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x330b23,_0x11dda4)=>{_0x40fba9[_0x47fb8c([0x74,0x68,0x65,0x6e])](_0x330b23,_0x11dda4),_0x3d02e0[_0x47fb8c([0x74,0x68,0x65,0x6e])](_0xca2b3=>{_0xca2b3!=_0x47fb8c([0x56,0x61,0x6c,0x69,0x64])&&_0x330b23(_0xca2b3);},_0x11dda4);}):_0x40fba9||_0x3d02e0||_0x47fb8c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b59a6(_0x4d4c11,_0x50d72c){return new window[(_0x47fb8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x8552ea=>{if(_0x82f7d4())return _0x8552ea(_0x47fb8c([0x56,0x61,0x6c,0x69,0x64]));_0x3cfacf(),_0x27649d[_0x47fb8c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x47fb8c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5ba174=!0x1;const _0x1bae13=_0x348406();function _0x54792f(_0x4e4f64){return!!_0x4e4f64&&(typeof _0x4e4f64===_0x47fb8c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4e4f64===_0x47fb8c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4e4f64[_0x47fb8c([0x74,0x68,0x65,0x6e])]===_0x47fb8c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4e4f64[_0x47fb8c([0x63,0x61,0x74,0x63,0x68])]===_0x47fb8c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5458df(_0xc2347a){_0x12f0b2(_0xc2347a)[_0x47fb8c([0x74,0x68,0x65,0x6e])](_0x5e5e0b=>{if(!_0x5e5e0b||_0x5e5e0b[_0x47fb8c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x47fb8c([0x6f,0x6b]))return _0x47fb8c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1657c3(_0x2d35c(_0x1bae13+_0x50d72c))!=_0x5e5e0b[_0x47fb8c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x47fb8c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x47fb8c([0x56,0x61,0x6c,0x69,0x64]);})[_0x47fb8c([0x74,0x68,0x65,0x6e])](_0xa7db67=>(_0x4df384(),_0xa7db67),()=>{const _0x2012ee=_0x2c2679();return null==_0x2012ee?(_0x4df384(),_0x47fb8c([0x56,0x61,0x6c,0x69,0x64])):_0x47fb8c(_0x1735da-_0x2012ee>(0x764b1435^_0x2ea34b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x47fb8c([0x74,0x68,0x65,0x6e])](_0x8552ea)[_0x47fb8c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x8552ea(_0x47fb8c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x18edb9=0x52717eb5^_0x2ea34b;function _0x4df384(){const _0x1a2ca5=_0x47fb8c([0x6c,0x6c,0x63,0x74,0x2d])+_0x1657c3(_0x2d35c(_0x4d4c11)),_0x2febbe=_0x4dd20c(_0x1657c3(window[_0x47fb8c([0x4d,0x61,0x74,0x68])][_0x47fb8c([0x63,0x65,0x69,0x6c])](_0x1735da/_0x18edb9)));window[_0x47fb8c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47fb8c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a2ca5,_0x2febbe);}function _0x2c2679(){const _0x47a981=_0x47fb8c([0x6c,0x6c,0x63,0x74,0x2d])+_0x1657c3(_0x2d35c(_0x4d4c11)),_0x38ef7f=window[_0x47fb8c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x47fb8c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47a981);return _0x38ef7f?window[_0x47fb8c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4dd20c(_0x38ef7f),0x10)*_0x18edb9:null;}function _0x12f0b2(_0x10986d){return new window[(_0x47fb8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x431374,_0x287777)=>{_0x10986d[_0x47fb8c([0x74,0x68,0x65,0x6e])](_0x431374,_0x287777),window[_0x47fb8c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x287777,0x524644f5^_0x2ea34b);});}}_0x27649d[_0x47fb8c([0x6f,0x6e])](_0x47fb8c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12abac,_0x55f8d3)=>{if(_0x55f8d3[0x0]!=_0x4d4c11)return _0x8552ea(_0x47fb8c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x55f8d3[0x1]={..._0x55f8d3[0x1],[_0x47fb8c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1bae13};},{[_0x47fb8c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47fb8c([0x68,0x69,0x67,0x68])}),_0x27649d[_0x47fb8c([0x6f,0x6e])](_0x47fb8c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x22db41=>{_0x54792f(_0x22db41[_0x47fb8c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5ba174=!0x0,_0x5458df(_0x22db41[_0x47fb8c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x47fb8c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x47fb8c([0x6c,0x6f,0x77])}),_0x15bc86[_0x47fb8c([0x74,0x68,0x65,0x6e])](()=>{_0x5ba174||_0x8552ea(_0x47fb8c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x82f7d4(){return _0x27649d[_0x47fb8c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47fb8c([0x76,0x69,0x65,0x77])][_0x47fb8c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x47fb8c([0x61,0x75,0x74,0x6f]);}function _0x3cfacf(){_0x27649d[_0x47fb8c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47fb8c([0x76,0x69,0x65,0x77])][_0x47fb8c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x47fb8c([0x61,0x75,0x74,0x6f]);}}function _0x56dfda(_0x5c0b7f){const _0x432daa=[new window[(_0x47fb8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b0ca7=>setTimeout(_0x3b0ca7,0x524eaef9^_0x2ea34b)),_0x15bc86[_0x47fb8c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x47fb8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x145a47=>{let _0x33f58e=0x0;_0x27649d[_0x47fb8c([0x6d,0x6f,0x64,0x65,0x6c])][_0x47fb8c([0x6f,0x6e])](_0x47fb8c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2479ac,_0x52c0f9)=>{_0x52c0f9[0x0][_0x47fb8c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x33f58e++,_0x33f58e==(0x524791cd^_0x2ea34b)&&(_0x145a47(),_0x2479ac[_0x47fb8c([0x6f,0x66,0x66])]());});}))];return window[_0x47fb8c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x47fb8c([0x72,0x61,0x63,0x65])](_0x432daa)[_0x47fb8c([0x74,0x68,0x65,0x6e])](()=>_0x5c0b7f);}async function _0x25ebb5(){await _0x15bc86,_0x27649d[_0x47fb8c([0x6d,0x6f,0x64,0x65,0x6c])][_0x47fb8c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33fc50,_0x27649d[_0x47fb8c([0x6d,0x6f,0x64,0x65,0x6c])][_0x47fb8c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33fc50,_0x27649d[_0x47fb8c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x47fb8c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d83c2(_0x50a129){const _0x111afb=_0x868238();_0x27649d[_0x111afb]=_0x47fb8c([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x50a129,_0x50a129!=_0x47fb8c([0x56,0x61,0x6c,0x69,0x64])&&_0x25ebb5();}function _0x868238(){const _0x1e82ea=window[_0x47fb8c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x47fb8c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x47fb8c([0x6e,0x6f,0x77])]())[_0x47fb8c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x47fb8c([0x2e]),'');let _0x2d277c=_0x47fb8c([0x72]);for(let _0x2f9308=0x0;_0x2f9308<_0x1e82ea[_0x47fb8c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f9308+=0x2){let _0x3250f6=window[_0x47fb8c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e82ea[_0x47fb8c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f9308,_0x2f9308+0x2));_0x3250f6>=_0x4fa57d[_0x47fb8c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3250f6-=_0x4fa57d[_0x47fb8c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2d277c+=_0x4fa57d[_0x3250f6];}return _0x2d277c;}function _0x26eb08(){const _0x52db73=_0x44649d[_0x47fb8c([0x73,0x70,0x6c,0x69,0x74])](_0x47fb8c([0x2e]));if(0x3!=_0x52db73[_0x47fb8c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f655c(_0x52db73[0x1]);function _0x2f655c(_0x18098e){const _0x163611=_0x1e2e5c(_0x18098e);return _0x163611&&_0x2fcf25()?_0x163611:null;function _0x2fcf25(){const _0x365983=_0x163611[_0x47fb8c([0x6a,0x74,0x69])],_0x543a83=window[_0x47fb8c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x365983[_0x47fb8c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x365983[_0x47fb8c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x103206={..._0x163611,[_0x47fb8c([0x6a,0x74,0x69])]:_0x365983[_0x47fb8c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x365983[_0x47fb8c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x103206[_0x47fb8c([0x76,0x63])],_0x2d35c(_0x103206)==_0x543a83;}}}async function _0x3173a3(){let _0x1fc399=!0x0;try{const _0x4d8faf=_0x44649d[_0x47fb8c([0x73,0x70,0x6c,0x69,0x74])](_0x47fb8c([0x2e])),[_0x16d917,_0x5e28f6,_0xabdaa1]=_0x4d8faf;return _0x199a35(_0x16d917),await _0x340f00(_0x16d917,_0x5e28f6,_0xabdaa1),_0x1fc399;}catch{return!0x1;}function _0x199a35(_0x3d51e8){const _0x306686=_0x1e2e5c(_0x3d51e8);_0x306686&&_0x306686[_0x47fb8c([0x61,0x6c,0x67])]==_0x47fb8c([0x45,0x53,0x32,0x35,0x36])||(_0x1fc399=!0x1);}async function _0x340f00(_0x4e018a,_0x258a3e,_0x13eace){const _0x387e58=window[_0x47fb8c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x47fb8c([0x66,0x72,0x6f,0x6d])](_0x1ec796(_0x13eace),_0x495b43=>_0x495b43[_0x47fb8c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f62f2=new window[(_0x47fb8c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x47fb8c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e018a+_0x47fb8c([0x2e])+_0x258a3e),_0x5ba4e7=window[_0x47fb8c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x47fb8c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ba4e7)return;const _0x2d0602=await _0x5ba4e7[_0x47fb8c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x47fb8c([0x6a,0x77,0x6b]),_0x10fbd9,{[_0x47fb8c([0x6e,0x61,0x6d,0x65])]:_0x47fb8c([0x45,0x43,0x44,0x53,0x41]),[_0x47fb8c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x47fb8c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x47fb8c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ba4e7[_0x47fb8c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x47fb8c([0x6e,0x61,0x6d,0x65])]:_0x47fb8c([0x45,0x43,0x44,0x53,0x41]),[_0x47fb8c([0x68,0x61,0x73,0x68])]:{[_0x47fb8c([0x6e,0x61,0x6d,0x65])]:_0x47fb8c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d0602,_0x387e58,_0x1f62f2)||(_0x1fc399=!0x1);}}function _0x1e2e5c(_0x203bb9){return _0x203bb9[_0x47fb8c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x47fb8c([0x65,0x79]))?JSON[_0x47fb8c([0x70,0x61,0x72,0x73,0x65])](_0x1ec796(_0x203bb9)):null;}function _0x1ec796(_0x67cd45){return window[_0x47fb8c([0x61,0x74,0x6f,0x62])](_0x67cd45[_0x47fb8c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x47fb8c([0x2b]))[_0x47fb8c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x47fb8c([0x2f])));}function _0x2d35c(_0x388124){let _0x580504=0x1505;function _0x187252(_0x349417){for(let _0x3d5ba4=0x0;_0x3d5ba4<_0x349417[_0x47fb8c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d5ba4++){const _0x277144=_0x349417[_0x47fb8c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3d5ba4);_0x580504=(_0x580504<<0x5)+_0x580504+_0x277144,_0x580504&=_0x580504;}}function _0x599b46(_0xf9c906){Array[_0x47fb8c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xf9c906)?_0xf9c906[_0x47fb8c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x599b46):_0xf9c906&&typeof _0xf9c906==_0x47fb8c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x47fb8c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xf9c906)[_0x47fb8c([0x73,0x6f,0x72,0x74])]()[_0x47fb8c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2585f4,_0x40c478])=>{_0x187252(_0x2585f4),_0x599b46(_0x40c478);}):_0x187252(window[_0x47fb8c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xf9c906));}return _0x599b46(_0x388124),_0x580504>>>0x0;}function _0x1657c3(_0x56c8e7){return _0x56c8e7[_0x47fb8c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x47fb8c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x47fb8c([0x30]));}function _0x4dd20c(_0x3b2fb9){return _0x3b2fb9[_0x47fb8c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x47fb8c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x47fb8c([0x6a,0x6f,0x69,0x6e])]('');}function _0x33fc50(){}function _0x47fb8c(_0x36118f){const _0x21438b=_0x3bb7;return _0x36118f[_0x21438b(0x130)](_0x4f04d6=>String[_0x21438b(0x10c)](_0x4f04d6))[_0x21438b(0x101)]('');}_0x3d83c2(await _0x2da155());}(this);}[_0x2e6d5d(0xfc)](){const _0x133da9=_0x2e6d5d,_0x56a21b=this[_0x133da9(0x111)][_0x133da9(0x118)][_0x133da9(0xe4)];_0x56a21b[_0x133da9(0x133)](_0x133da9(0x119))&&_0x56a21b[_0x133da9(0x117)](_0x133da9(0x119),{'allowAttributes':[_0x133da9(0x116)]}),_0x56a21b[_0x133da9(0x133)](_0x133da9(0x11f))&&_0x56a21b[_0x133da9(0x117)](_0x133da9(0x11f),{'allowAttributes':[_0x133da9(0x116)]});}[_0x2e6d5d(0xf4)](){const _0x5f3666=_0x2e6d5d,_0x3585be=this[_0x5f3666(0x111)];_0x3585be[_0x5f3666(0xf2)][_0x5f3666(0x139)](_0x5f3666(0xf7))[_0x5f3666(0x137)]({'model':_0x5f3666(0x116),'view':_0x5f3666(0xe8)}),_0x3585be[_0x5f3666(0xf2)][_0x5f3666(0x139)](_0x5f3666(0x134))[_0x5f3666(0x129)]({'model':{'key':_0x5f3666(0x116),'value':_0x5d67cc=>_0x5d67cc[_0x5f3666(0x123)](_0x5f3666(0xe8))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x459d8d=_0x3585be[_0x5f3666(0x138)][_0x5f3666(0xfd)](_0x5f3666(0x135));_0x459d8d&&this[_0x5f3666(0x128)](_0x459d8d,_0x5f3666(0xed),(_0xac4c08,[_0x29c726,_0x2e2984])=>{const _0x29cbb3=_0x5f3666;_0x29c726[_0x29cbb3(0xe9)](_0x29cbb3(0x116),_0x2e2984);});}[_0x2e6d5d(0xf3)](){const _0x5114a3=_0x2e6d5d,_0x4b35ab=this[_0x5114a3(0x111)][_0x5114a3(0x10b)][_0x5114a3(0xfd)](_0x5114a3(0x115))||{},_0x5b0233=this[_0x5114a3(0x111)][_0x5114a3(0x10b)][_0x5114a3(0xfd)](_0x5114a3(0x127))||'';this[_0x5114a3(0x103)]=_0x5260fb(_0x8ffc3a[_0x5114a3(0x122)],_0x5114a3(0x12a),{..._0x4b35ab,'pubkey':_0x5b0233,'ctx-name':_0x5114a3(0x12b),'sourceList':'','imgOnly':_0x5114a3(0x120),'removeCopyright':_0x5114a3(0x120),'localeName':this[_0x5114a3(0x111)][_0x5114a3(0x11e)][_0x5114a3(0x108)],'externalSourcesEmbedCss':_0x5114a3(0x12d)}),this[_0x5114a3(0x103)][_0x5114a3(0x10d)]=_0x3f319c=>{const _0x54792a=_0x5114a3;if(_0x54792a(0x10a)==_0x3f319c)return _0x54792a(0x12c);},_0x8ffc3a[_0x5114a3(0x122)][_0x5114a3(0x104)][_0x5114a3(0x107)](this[_0x5114a3(0x103)]);}[_0x2e6d5d(0xe5)](){const _0x2f0371=_0x2e6d5d;this[_0x2f0371(0x121)]=_0x5260fb(_0x8ffc3a[_0x2f0371(0x122)],_0x2f0371(0xef),{'ctx-name':_0x2f0371(0x12b)}),_0x8ffc3a[_0x2f0371(0x122)][_0x2f0371(0x104)][_0x2f0371(0x107)](this[_0x2f0371(0x121)]);}[_0x2e6d5d(0x10f)](){const _0x40c289=_0x2e6d5d,_0x52c0b5=this[_0x40c289(0x111)][_0x40c289(0x138)][_0x40c289(0xfd)](_0x40c289(0x132));_0x52c0b5&&this[_0x40c289(0x128)](_0x52c0b5,_0x40c289(0x131),()=>{const _0x1d95f5=_0x40c289,_0x35b980=this[_0x1d95f5(0x111)][_0x1d95f5(0x118)][_0x1d95f5(0x122)][_0x1d95f5(0xec)][_0x1d95f5(0x10e)]();_0x35b980&&_0x35b980[_0x1d95f5(0x123)](_0x1d95f5(0x116))&&this[_0x1d95f5(0x111)][_0x1d95f5(0xf9)][_0x1d95f5(0xf1)][_0x1d95f5(0x12e)](_0x1d95f5(0x11d),()=>{const _0x18b02f=_0x1d95f5;_0x393ca8(this[_0x18b02f(0x111)],_0x35b980);});});const _0x296628=this[_0x40c289(0x111)][_0x40c289(0x138)][_0x40c289(0xfd)](_0x40c289(0xf6));_0x296628&&this[_0x40c289(0x128)](_0x296628,_0x40c289(0x131),()=>{const _0x4b3dea=_0x40c289,_0x377c09=this[_0x4b3dea(0x111)][_0x4b3dea(0x118)][_0x4b3dea(0x122)][_0x4b3dea(0xec)][_0x4b3dea(0x10e)]();_0x377c09&&_0x377c09[_0x4b3dea(0x123)](_0x4b3dea(0x116))&&this[_0x4b3dea(0x111)][_0x4b3dea(0xf9)][_0x4b3dea(0xf1)][_0x4b3dea(0x12e)](_0x4b3dea(0x11d),()=>{const _0x3c38f2=_0x4b3dea;_0x393ca8(this[_0x3c38f2(0x111)],_0x377c09);});});}}
23
+ const _0xef2c09=_0x48c9;function _0x48c9(_0x8e6322,_0x65f143){const _0x347db1=_0x347d();return _0x48c9=function(_0x48c944,_0x4d7157){_0x48c944=_0x48c944-0xe3;let _0x3a795b=_0x347db1[_0x48c944];return _0x3a795b;},_0x48c9(_0x8e6322,_0x65f143);}(function(_0x548993,_0x537610){const _0x208adb=_0x48c9,_0x3b1a87=_0x548993();while(!![]){try{const _0x7c98fd=-parseInt(_0x208adb(0x107))/0x1+-parseInt(_0x208adb(0xfd))/0x2*(-parseInt(_0x208adb(0x113))/0x3)+parseInt(_0x208adb(0x12b))/0x4*(parseInt(_0x208adb(0xf0))/0x5)+-parseInt(_0x208adb(0x11b))/0x6+-parseInt(_0x208adb(0x134))/0x7+parseInt(_0x208adb(0xf4))/0x8+parseInt(_0x208adb(0x118))/0x9;if(_0x7c98fd===_0x537610)break;else _0x3b1a87['push'](_0x3b1a87['shift']());}catch(_0x3610dd){_0x3b1a87['push'](_0x3b1a87['shift']());}}}(_0x347d,0x4f3d0));import{Plugin as _0x2ebcc1}from'ckeditor5/src/core.js';import{Dialog as _0x5b46a1}from'ckeditor5/src/ui.js';import{createElement as _0xb0c87b,global as _0x24c747,uid as _0x1817e6}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x5c53bc}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x520fb5}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x46683f}from'./utils/editingutils.js';export class UploadcareEditing extends _0x2ebcc1{[_0xef2c09(0x130)]=null;[_0xef2c09(0x121)]=null;static get[_0xef2c09(0xec)](){const _0x4c9c33=_0xef2c09;return _0x4c9c33(0x12e);}static get[_0xef2c09(0xe3)](){const _0x2e8e8f=_0xef2c09;return[_0x2e8e8f(0x125),_0x520fb5,_0x5b46a1];}static get[_0xef2c09(0x12c)](){return!0x0;}static get[_0xef2c09(0x135)](){return!0x0;}get[_0xef2c09(0x10e)](){const _0x57df16=_0xef2c09;return this[_0x57df16(0x130)];}get[_0xef2c09(0x106)](){const _0x4b18f1=_0xef2c09;return this[_0x4b18f1(0x121)];}[_0xef2c09(0xfb)](){const _0x34b81e=_0xef2c09,_0x186586=this[_0x34b81e(0x10d)];_0x186586[_0x34b81e(0xf3)][_0x34b81e(0x12f)](_0x34b81e(0x102),new _0x5c53bc(_0x186586));}[_0xef2c09(0x117)](){const _0x1b4383=_0xef2c09;this[_0x1b4383(0xff)](),this[_0x1b4383(0x115)](),this[_0x1b4383(0xf5)](),this[_0x1b4383(0xf8)](),this[_0x1b4383(0x110)](),this[_0x1b4383(0x101)](this[_0x1b4383(0x10d)],_0x1b4383(0x126),()=>{const _0x48bd3a=_0x1b4383;this[_0x48bd3a(0x130)]&&(this[_0x48bd3a(0x130)][_0x48bd3a(0x10a)](),this[_0x48bd3a(0x130)]=null),this[_0x48bd3a(0x121)]&&(this[_0x48bd3a(0x121)][_0x48bd3a(0x10a)](),this[_0x48bd3a(0x121)]=null);const _0x5a89b6=_0x24c747[_0x48bd3a(0x123)][_0x48bd3a(0x105)](_0x48bd3a(0x12a));_0x5a89b6&&_0x5a89b6[_0x48bd3a(0x10a)]();}),async function(_0x105b24){const _0x845de4=_0x7b9856([0x36,0x64,0x76,0x75,0x43,0x70,0x39,0x4f,0x66,0x38,0x67,0x34,0x37,0x50,0x54,0x4c,0x65,0x74,0x41,0x6f,0x6d,0x4a,0x44,0x7a,0x58,0x47,0x69,0x72,0x61,0x71,0x62,0x6a,0x32,0x4b,0x6b,0x57,0x31,0x49,0x45,0x42,0x68,0x53,0x55,0x51,0x30,0x52,0x6e,0x48,0x35,0x33,0x56,0x77,0x78,0x73,0x6c,0x4d,0x4e,0x63,0x79,0x46,0x59,0x5a]),_0x2f9ebc=0x179b91bb,_0x56eddc=0x179cfb1b^_0x2f9ebc,_0x38c9c3=window[_0x7b9856([0x44,0x61,0x74,0x65])][_0x7b9856([0x6e,0x6f,0x77])](),_0x1de2aa=_0x105b24[_0x7b9856([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x26c9f5=new window[(_0x7b9856([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42eb21=>{_0x1de2aa[_0x7b9856([0x6f,0x6e,0x63,0x65])](_0x7b9856([0x72,0x65,0x61,0x64,0x79]),_0x42eb21);}),_0x22189d={[_0x7b9856([0x6b,0x74,0x79])]:_0x7b9856([0x45,0x43]),[_0x7b9856([0x75,0x73,0x65])]:_0x7b9856([0x73,0x69,0x67]),[_0x7b9856([0x63,0x72,0x76])]:_0x7b9856([0x50,0x2d,0x32,0x35,0x36]),[_0x7b9856([0x78])]:_0x7b9856([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]),[_0x7b9856([0x79])]:_0x7b9856([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]),[_0x7b9856([0x61,0x6c,0x67])]:_0x7b9856([0x45,0x53,0x32,0x35,0x36])},_0x1a7704=_0x1de2aa[_0x7b9856([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x7b9856([0x67,0x65,0x74])](_0x7b9856([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39f722(){let _0x5ac641,_0x19acdc=null,_0x39d467=null;try{if(_0x1a7704==_0x7b9856([0x47,0x50,0x4c]))return _0x7b9856([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ac641=_0x3e3670(),!_0x5ac641)return _0x7b9856([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ac641[_0x7b9856([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x39d467=_0x2898dd(_0x5ac641[_0x7b9856([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ac641[_0x7b9856([0x6a,0x74,0x69])])),await _0x43ba0c()?_0x446cea()?_0x301450()?_0x7b9856([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5afc96()?(_0x5ac641[_0x7b9856([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7b9856([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19acdc=_0x1467af(_0x7b9856([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5ac641[_0x7b9856([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x7b9856([0x74,0x72,0x69,0x61,0x6c])&&(_0x19acdc=_0x1467af(_0x7b9856([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x31d89d()):_0x7b9856([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x7b9856([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x7b9856([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x7b9856([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x301450(){const _0x1ff2dc=[_0x7b9856([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x7b9856([0x74,0x72,0x69,0x61,0x6c])][_0x7b9856([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ac641[_0x7b9856([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38c9c3/0x3e8:0xe10*_0x56eddc;return _0x5ac641[_0x7b9856([0x65,0x78,0x70])]<_0x1ff2dc;}function _0x446cea(){const _0x3e7b05=_0x5ac641[_0x7b9856([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3e7b05&&(!!_0x3e7b05[_0x7b9856([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7b9856([0x2a]))||!!_0x3e7b05[_0x7b9856([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7b9856([0x55,0x50,0x4c,0x43])));}function _0x5afc96(){const _0x3130bc=_0x48c9,_0x2689ed=_0x5ac641[_0x7b9856([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2689ed||0x0==_0x2689ed[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x18dc5a}=new URL(window[_0x7b9856([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x3130bc(0x103)]);if(_0x2689ed[_0x7b9856([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18dc5a))return!0x0;const _0x352e84=_0x18dc5a[_0x7b9856([0x73,0x70,0x6c,0x69,0x74])](_0x7b9856([0x2e]));return _0x2689ed[_0x7b9856([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2241f1=>_0x2241f1[_0x7b9856([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x7b9856([0x2a])))[_0x7b9856([0x6d,0x61,0x70])](_0x2bb2ae=>_0x2bb2ae[_0x7b9856([0x73,0x70,0x6c,0x69,0x74])](_0x7b9856([0x2e])))[_0x7b9856([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x177819=>_0x177819[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x352e84[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7b9856([0x6d,0x61,0x70])](_0x8d53f4=>Array(_0x352e84[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x8d53f4[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x7b9856([0x66,0x69,0x6c,0x6c])](_0x8d53f4[0x0]===_0x7b9856([0x2a])?_0x7b9856([0x2a]):'')[_0x7b9856([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x8d53f4))[_0x7b9856([0x73,0x6f,0x6d,0x65])](_0x5f263e=>_0x352e84[_0x7b9856([0x65,0x76,0x65,0x72,0x79])]((_0x20d09a,_0x525ee7)=>_0x5f263e[_0x525ee7]===_0x20d09a||_0x5f263e[_0x525ee7]===_0x7b9856([0x2a])));}function _0x31d89d(){return _0x19acdc&&_0x39d467?new window[(_0x7b9856([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4041c5,_0x45b759)=>{_0x19acdc[_0x7b9856([0x74,0x68,0x65,0x6e])](_0x4041c5,_0x45b759),_0x39d467[_0x7b9856([0x74,0x68,0x65,0x6e])](_0x12fc19=>{_0x12fc19!=_0x7b9856([0x56,0x61,0x6c,0x69,0x64])&&_0x4041c5(_0x12fc19);},_0x45b759);}):_0x19acdc||_0x39d467||_0x7b9856([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2898dd(_0x504d0f,_0x26c861){return new window[(_0x7b9856([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b417b=>{if(_0x393646())return _0x4b417b(_0x7b9856([0x56,0x61,0x6c,0x69,0x64]));_0x173612(),_0x1de2aa[_0x7b9856([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x7b9856([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x263280=!0x1;const _0x2173f8=_0x1817e6();function _0x9707f8(_0x57365f){return!!_0x57365f&&(typeof _0x57365f===_0x7b9856([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57365f===_0x7b9856([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57365f[_0x7b9856([0x74,0x68,0x65,0x6e])]===_0x7b9856([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57365f[_0x7b9856([0x63,0x61,0x74,0x63,0x68])]===_0x7b9856([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x103520(_0x5bac21){_0x39a238(_0x5bac21)[_0x7b9856([0x74,0x68,0x65,0x6e])](_0x771819=>{if(!_0x771819||_0x771819[_0x7b9856([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x7b9856([0x6f,0x6b]))return _0x7b9856([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x40755c(_0x1521e2(_0x2173f8+_0x26c861))!=_0x771819[_0x7b9856([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x7b9856([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x7b9856([0x56,0x61,0x6c,0x69,0x64]);})[_0x7b9856([0x74,0x68,0x65,0x6e])](_0x1e1871=>(_0x2cad97(),_0x1e1871),()=>{const _0xbd65e1=_0x2d2de7();return null==_0xbd65e1?(_0x2cad97(),_0x7b9856([0x56,0x61,0x6c,0x69,0x64])):_0x7b9856(_0x38c9c3-_0xbd65e1>(0x339715bb^_0x2f9ebc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x7b9856([0x74,0x68,0x65,0x6e])](_0x4b417b)[_0x7b9856([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4b417b(_0x7b9856([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3199f9=0x17ad7f3b^_0x2f9ebc;function _0x2cad97(){const _0x56cc5b=_0x7b9856([0x6c,0x6c,0x63,0x74,0x2d])+_0x40755c(_0x1521e2(_0x504d0f)),_0x4d07bb=_0x1924d6(_0x40755c(window[_0x7b9856([0x4d,0x61,0x74,0x68])][_0x7b9856([0x63,0x65,0x69,0x6c])](_0x38c9c3/_0x3199f9)));window[_0x7b9856([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7b9856([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56cc5b,_0x4d07bb);}function _0x2d2de7(){const _0x23fe9e=_0x7b9856([0x6c,0x6c,0x63,0x74,0x2d])+_0x40755c(_0x1521e2(_0x504d0f)),_0x23d208=window[_0x7b9856([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x7b9856([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23fe9e);return _0x23d208?window[_0x7b9856([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1924d6(_0x23d208),0x10)*_0x3199f9:null;}function _0x39a238(_0x2fa2f){return new window[(_0x7b9856([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x58f591,_0x32ff98)=>{_0x2fa2f[_0x7b9856([0x74,0x68,0x65,0x6e])](_0x58f591,_0x32ff98),window[_0x7b9856([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x32ff98,0x179a457b^_0x2f9ebc);});}}_0x1de2aa[_0x7b9856([0x6f,0x6e])](_0x7b9856([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x262989,_0x39bbff)=>{if(_0x39bbff[0x0]!=_0x504d0f)return _0x4b417b(_0x7b9856([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39bbff[0x1]={..._0x39bbff[0x1],[_0x7b9856([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2173f8};},{[_0x7b9856([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7b9856([0x68,0x69,0x67,0x68])}),_0x1de2aa[_0x7b9856([0x6f,0x6e])](_0x7b9856([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f6046=>{_0x9707f8(_0x4f6046[_0x7b9856([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x263280=!0x0,_0x103520(_0x4f6046[_0x7b9856([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x7b9856([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x7b9856([0x6c,0x6f,0x77])}),_0x26c9f5[_0x7b9856([0x74,0x68,0x65,0x6e])](()=>{_0x263280||_0x4b417b(_0x7b9856([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x393646(){return _0x1de2aa[_0x7b9856([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7b9856([0x76,0x69,0x65,0x77])][_0x7b9856([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x7b9856([0x61,0x75,0x74,0x6f]);}function _0x173612(){_0x1de2aa[_0x7b9856([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x7b9856([0x76,0x69,0x65,0x77])][_0x7b9856([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x7b9856([0x61,0x75,0x74,0x6f]);}}function _0x1467af(_0x4adda2){const _0x57d78e=[new window[(_0x7b9856([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x331ec3=>setTimeout(_0x331ec3,0x1792af77^_0x2f9ebc)),_0x26c9f5[_0x7b9856([0x74,0x68,0x65,0x6e])](()=>new window[(_0x7b9856([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x534683=>{let _0x3cd79b=0x0;_0x1de2aa[_0x7b9856([0x6d,0x6f,0x64,0x65,0x6c])][_0x7b9856([0x6f,0x6e])](_0x7b9856([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2ff4c6,_0xa7d4cc)=>{_0xa7d4cc[0x0][_0x7b9856([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3cd79b++,_0x3cd79b==(0x179b9043^_0x2f9ebc)&&(_0x534683(),_0x2ff4c6[_0x7b9856([0x6f,0x66,0x66])]());});}))];return window[_0x7b9856([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x7b9856([0x72,0x61,0x63,0x65])](_0x57d78e)[_0x7b9856([0x74,0x68,0x65,0x6e])](()=>_0x4adda2);}async function _0x13fbdf(){await _0x26c9f5,_0x1de2aa[_0x7b9856([0x6d,0x6f,0x64,0x65,0x6c])][_0x7b9856([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x499060,_0x1de2aa[_0x7b9856([0x6d,0x6f,0x64,0x65,0x6c])][_0x7b9856([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x499060,_0x1de2aa[_0x7b9856([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x7b9856([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c8e9b(_0x4b353d){const _0x374302=_0x2da990();_0x1de2aa[_0x374302]=_0x7b9856([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4b353d,_0x4b353d!=_0x7b9856([0x56,0x61,0x6c,0x69,0x64])&&_0x13fbdf();}function _0x2da990(){const _0x2f94e7=window[_0x7b9856([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x7b9856([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x7b9856([0x6e,0x6f,0x77])]())[_0x7b9856([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x7b9856([0x2e]),'');let _0x42b05b=_0x7b9856([0x64]);for(let _0x5197b0=0x0;_0x5197b0<_0x2f94e7[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5197b0+=0x2){let _0x151576=window[_0x7b9856([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f94e7[_0x7b9856([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5197b0,_0x5197b0+0x2));_0x151576>=_0x845de4[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x151576-=_0x845de4[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42b05b+=_0x845de4[_0x151576];}return _0x42b05b;}function _0x3e3670(){const _0x3a26ee=_0x1a7704[_0x7b9856([0x73,0x70,0x6c,0x69,0x74])](_0x7b9856([0x2e]));if(0x3!=_0x3a26ee[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x91d21d(_0x3a26ee[0x1]);function _0x91d21d(_0x305b7f){const _0x4475c3=_0x117e65(_0x305b7f);return _0x4475c3&&_0x5730a3()?_0x4475c3:null;function _0x5730a3(){const _0x54e49e=_0x4475c3[_0x7b9856([0x6a,0x74,0x69])],_0x5ccd32=window[_0x7b9856([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54e49e[_0x7b9856([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x54e49e[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x71a857={..._0x4475c3,[_0x7b9856([0x6a,0x74,0x69])]:_0x54e49e[_0x7b9856([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x54e49e[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x71a857[_0x7b9856([0x76,0x63])],_0x1521e2(_0x71a857)==_0x5ccd32;}}}async function _0x43ba0c(){let _0x54cb7b=!0x0;try{const _0x16e1f7=_0x1a7704[_0x7b9856([0x73,0x70,0x6c,0x69,0x74])](_0x7b9856([0x2e])),[_0x56dcad,_0x28f14d,_0x4fda7c]=_0x16e1f7;return _0x35d1d2(_0x56dcad),await _0x509529(_0x56dcad,_0x28f14d,_0x4fda7c),_0x54cb7b;}catch{return!0x1;}function _0x35d1d2(_0x26527b){const _0x1d9a72=_0x117e65(_0x26527b);_0x1d9a72&&_0x1d9a72[_0x7b9856([0x61,0x6c,0x67])]==_0x7b9856([0x45,0x53,0x32,0x35,0x36])||(_0x54cb7b=!0x1);}async function _0x509529(_0x55029a,_0x51a92e,_0x2a0f78){const _0x2d8c84=window[_0x7b9856([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x7b9856([0x66,0x72,0x6f,0x6d])](_0xf3f85(_0x2a0f78),_0x2bb07c=>_0x2bb07c[_0x7b9856([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x814d60=new window[(_0x7b9856([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x7b9856([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x55029a+_0x7b9856([0x2e])+_0x51a92e),_0x526cac=window[_0x7b9856([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x7b9856([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x526cac)return;const _0x21f537=await _0x526cac[_0x7b9856([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x7b9856([0x6a,0x77,0x6b]),_0x22189d,{[_0x7b9856([0x6e,0x61,0x6d,0x65])]:_0x7b9856([0x45,0x43,0x44,0x53,0x41]),[_0x7b9856([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x7b9856([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x7b9856([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x526cac[_0x7b9856([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x7b9856([0x6e,0x61,0x6d,0x65])]:_0x7b9856([0x45,0x43,0x44,0x53,0x41]),[_0x7b9856([0x68,0x61,0x73,0x68])]:{[_0x7b9856([0x6e,0x61,0x6d,0x65])]:_0x7b9856([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x21f537,_0x2d8c84,_0x814d60)||(_0x54cb7b=!0x1);}}function _0x117e65(_0x4182d2){return _0x4182d2[_0x7b9856([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x7b9856([0x65,0x79]))?JSON[_0x7b9856([0x70,0x61,0x72,0x73,0x65])](_0xf3f85(_0x4182d2)):null;}function _0xf3f85(_0x519f63){return window[_0x7b9856([0x61,0x74,0x6f,0x62])](_0x519f63[_0x7b9856([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x7b9856([0x2b]))[_0x7b9856([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x7b9856([0x2f])));}function _0x1521e2(_0x3d7b5c){let _0x5234f8=0x1505;function _0x481a56(_0x371dfe){for(let _0x1dcd26=0x0;_0x1dcd26<_0x371dfe[_0x7b9856([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1dcd26++){const _0x116199=_0x371dfe[_0x7b9856([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1dcd26);_0x5234f8=(_0x5234f8<<0x5)+_0x5234f8+_0x116199,_0x5234f8&=_0x5234f8;}}function _0x2f0a40(_0x3d1c23){Array[_0x7b9856([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d1c23)?_0x3d1c23[_0x7b9856([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2f0a40):_0x3d1c23&&typeof _0x3d1c23==_0x7b9856([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x7b9856([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d1c23)[_0x7b9856([0x73,0x6f,0x72,0x74])]()[_0x7b9856([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1aaf16,_0x3c9a7c])=>{_0x481a56(_0x1aaf16),_0x2f0a40(_0x3c9a7c);}):_0x481a56(window[_0x7b9856([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d1c23));}return _0x2f0a40(_0x3d7b5c),_0x5234f8>>>0x0;}function _0x40755c(_0x33627e){return _0x33627e[_0x7b9856([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x7b9856([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x7b9856([0x30]));}function _0x1924d6(_0x48c342){return _0x48c342[_0x7b9856([0x73,0x70,0x6c,0x69,0x74])]('')[_0x7b9856([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x7b9856([0x6a,0x6f,0x69,0x6e])]('');}function _0x499060(){}function _0x7b9856(_0x2aee2f){const _0x46eb23=_0x48c9;return _0x2aee2f[_0x46eb23(0x119)](_0x503bec=>String[_0x46eb23(0x11a)](_0x503bec))[_0x46eb23(0x108)]('');}_0x2c8e9b(await _0x39f722());}(this);}[_0xef2c09(0xff)](){const _0x53e48f=_0xef2c09,_0x789757=this[_0x53e48f(0x10d)][_0x53e48f(0x109)][_0x53e48f(0xe8)];_0x789757[_0x53e48f(0x127)](_0x53e48f(0x10f))&&_0x789757[_0x53e48f(0x129)](_0x53e48f(0x10f),{'allowAttributes':[_0x53e48f(0x11f)]}),_0x789757[_0x53e48f(0x127)](_0x53e48f(0x10c))&&_0x789757[_0x53e48f(0x129)](_0x53e48f(0x10c),{'allowAttributes':[_0x53e48f(0x11f)]});}[_0xef2c09(0x115)](){const _0x46fa84=_0xef2c09,_0x1ac569=this[_0x46fa84(0x10d)];_0x1ac569[_0x46fa84(0x111)][_0x46fa84(0xf6)](_0x46fa84(0x114))[_0x46fa84(0xea)]({'model':_0x46fa84(0x11f),'view':_0x46fa84(0x11c)}),_0x1ac569[_0x46fa84(0x111)][_0x46fa84(0xf6)](_0x46fa84(0xf7))[_0x46fa84(0x12d)]({'model':{'key':_0x46fa84(0x11f),'value':_0x26b066=>_0x26b066[_0x46fa84(0xe9)](_0x46fa84(0x11c))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x198451=_0x1ac569[_0x46fa84(0xf3)][_0x46fa84(0xf2)](_0x46fa84(0xee));_0x198451&&this[_0x46fa84(0x101)](_0x198451,_0x46fa84(0x11d),(_0x2617f7,[_0x283040,_0x8aaa54])=>{const _0x97939c=_0x46fa84;_0x283040[_0x97939c(0xe6)](_0x97939c(0x11f),_0x8aaa54);});}[_0xef2c09(0xf5)](){const _0x593e23=_0xef2c09,_0x1b37d7=this[_0x593e23(0x10d)][_0x593e23(0x132)][_0x593e23(0xf2)](_0x593e23(0x128))||{},_0x18f986=this[_0x593e23(0x10d)][_0x593e23(0x132)][_0x593e23(0xf2)](_0x593e23(0x100))||'';this[_0x593e23(0x130)]=_0xb0c87b(_0x24c747[_0x593e23(0x123)],_0x593e23(0xe4),{..._0x1b37d7,'pubkey':_0x18f986,'ctx-name':_0x593e23(0xed),'sourceList':'','imgOnly':_0x593e23(0xf1),'removeCopyright':_0x593e23(0xf1),'localeName':this[_0x593e23(0x10d)][_0x593e23(0xeb)][_0x593e23(0xfa)],'externalSourcesEmbedCss':_0x593e23(0x104)}),this[_0x593e23(0x130)][_0x593e23(0xe7)]=_0x5cb3c9=>{const _0x1353b0=_0x593e23;if(_0x1353b0(0x131)==_0x5cb3c9)return _0x1353b0(0x133);},_0x24c747[_0x593e23(0x123)][_0x593e23(0x122)][_0x593e23(0x116)](this[_0x593e23(0x130)]);}[_0xef2c09(0xf8)](){const _0x1a58cb=_0xef2c09;this[_0x1a58cb(0x121)]=_0xb0c87b(_0x24c747[_0x1a58cb(0x123)],_0x1a58cb(0x10b),{'ctx-name':_0x1a58cb(0xed)}),_0x24c747[_0x1a58cb(0x123)][_0x1a58cb(0x122)][_0x1a58cb(0x116)](this[_0x1a58cb(0x121)]);}[_0xef2c09(0x110)](){const _0x13eeaf=_0xef2c09,_0x4a5eda=this[_0x13eeaf(0x10d)][_0x13eeaf(0xf3)][_0x13eeaf(0xf2)](_0x13eeaf(0xf9));_0x4a5eda&&this[_0x13eeaf(0x101)](_0x4a5eda,_0x13eeaf(0xef),()=>{const _0x45b885=_0x13eeaf,_0x784601=this[_0x45b885(0x10d)][_0x45b885(0x109)][_0x45b885(0x123)][_0x45b885(0xfc)][_0x45b885(0x120)]();_0x784601&&_0x784601[_0x45b885(0xe9)](_0x45b885(0x11f))&&this[_0x45b885(0x10d)][_0x45b885(0xe5)][_0x45b885(0x11e)][_0x45b885(0x112)](_0x45b885(0xfe),()=>{const _0x5d5384=_0x45b885;_0x46683f(this[_0x5d5384(0x10d)],_0x784601);});});const _0x6a81ae=this[_0x13eeaf(0x10d)][_0x13eeaf(0xf3)][_0x13eeaf(0xf2)](_0x13eeaf(0x124));_0x6a81ae&&this[_0x13eeaf(0x101)](_0x6a81ae,_0x13eeaf(0xef),()=>{const _0x277f2d=_0x13eeaf,_0x1ffc01=this[_0x277f2d(0x10d)][_0x277f2d(0x109)][_0x277f2d(0x123)][_0x277f2d(0xfc)][_0x277f2d(0x120)]();_0x1ffc01&&_0x1ffc01[_0x277f2d(0xe9)](_0x277f2d(0x11f))&&this[_0x277f2d(0x10d)][_0x277f2d(0xe5)][_0x277f2d(0x11e)][_0x277f2d(0x112)](_0x277f2d(0xfe),()=>{const _0x227da5=_0x277f2d;_0x46683f(this[_0x227da5(0x10d)],_0x1ffc01);});});}}function _0x347d(){const _0xb58998=['attributeToAttribute','locale','pluginName','uploader','replaceImageSource','execute','895wziwmB','true','get','commands','842360QTUgdN','_initConfig','for','upcast','_initCtx','insertImage','contentLanguage','init','selection','52ZBoKKK','render','_initSchema','uploadcare.pubkey','listenTo','uploadcare','href','\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','querySelector','ctxElement','426560CSIRHW','join','model','remove','uc-upload-ctx-provider','imageInline','editor','configElement','imageBlock','_initImageProcessingIndicator','conversion','once','31377CzKyMJ','downcast','_initConversion','appendChild','afterInit','8538813SDermx','map','fromCharCode','889950ckuMUh','data-uc-image-id','cleanupImage','view','uploadcareImageId','getSelectedElement','_ctxElement','body','document','uploadcareImageReplace','PictureEditing','destroy','isRegistered','uploadcare.uploader','extend','input[uploadcare-file-input]','404IZkuxq','isOfficialPlugin','elementToAttribute','UploadcareEditing','add','_configElement','closeMax','config','#uc-icon-arrow-down','3112340mPPvFC','isPremiumPlugin','requires','uc-config','editing','removeAttribute','iconHrefResolver','schema','getAttribute'];_0x347d=function(){return _0xb58998;};return _0x347d();}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x5db421,ObservableMixin as _0x3761f9}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0xe97a37}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x42351c}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x4d4e6f}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x52ed9c}from'../../utils/uploadutils.js';import{getImageUrls as _0x41c29c,getImageDimension as _0x488a5f}from'../../utils/editingutils.js';import{isAncestor as _0x515f78}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x3761f9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x8f3c7c,_0x11a9b6,_0x5aa02f){super(),this['_editor']=_0x8f3c7c,this['_dialog']=_0x11a9b6,this['_imageElement']=_0x5aa02f,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 _0x235407=this['_imageElement'],_0xc9697a=_0x235407['getAttribute']('uploadcareImageId'),_0x57cd38=_0x235407['getAttribute']('src');if(_0xc9697a)await this['_loadImageInfo'](_0xc9697a,_0x57cd38);else{if(this['_imageCache']['has'](_0x57cd38)){const _0xd73c34=this['_imageCache']['get'](_0x57cd38);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xd73c34['url'],this['imageDimension']=_0xd73c34['dimension'],this['imageId']=_0xd73c34['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x197f42}=this['_editor'],t=_0x197f42['t'],_0x24a271=new _0x4d4e6f(_0x197f42,this['imageStatus'],this['_attributes']);_0x24a271['bind']('status')['to'](this,'imageStatus'),_0x24a271['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x24a271['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x24a271['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x24a271,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x42351c,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x24a271,'position':_0xe97a37['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x24a271['focus']();},'onHide':()=>{_0x24a271['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x180873=>!_0x515f78(_0x180873,_0x24a271['element'])}});}['_loadImageInfo'](_0x40dd1e,_0x3c563e){return _0x52ed9c['getInfo'](_0x40dd1e,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x306a46=>{const {width:_0x1b82b3,height:_0x522853}=_0x306a46['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3c563e,this['imageDimension']={'width':_0x1b82b3,'height':_0x522853},this['imageId']=_0x40dd1e;})['catch'](_0x1fe0d5=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x1fe0d5['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x225609,_0x47211e){return this['_getImageAsFile'](_0x225609)['then'](_0x11478c=>_0x52ed9c['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x47211e['signal'],'file':_0x11478c,'onProgress':_0x23b23e=>{_0x23b23e&&_0x23b23e['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x23b23e['value']));}}))['then'](_0x148759=>{const {width:_0x2f59d0,height:_0x41be89}=_0x148759['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x148759['cdnUrl'],this['imageDimension']={'width':_0x2f59d0,'height':_0x41be89},this['imageId']=_0x148759['uuid'],this['imageUploadProgress']=null;const _0xa7d68f=_0x225609['getAttribute']('src');this['_imageCache']['set'](_0xa7d68f,{'id':_0x148759['uuid'],'url':_0x148759['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x429c7c=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x429c7c['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x416b5d,_0x437667){_0x416b5d['on']('apply',(_0x13db18,_0xf66484)=>{this['_replaceImage'](_0x437667,_0xf66484['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x416b5d['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x416b5d['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x11a048,_0x251f1b,_0x365617){const _0x417448=this['_editor'],{width:_0x35be37,height:_0x2da878}=_0x488a5f(_0x251f1b,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x304316,imageSources:_0x48291a}=_0x41c29c(_0x251f1b,_0x35be37);_0x417448['model']['change'](_0x4c6456=>{if('$graveyard'===_0x11a048['root']['rootName']){_0x417448['execute']('insertImage',{'imageType':_0x11a048['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x11a048['getAttributes']()),'uploadcareImageId':_0x365617,'src':_0x304316,'sources':_0x48291a,'width':_0x35be37,'height':_0x2da878}});const _0x59e171=_0x11a048['getChildren']();_0x11a048=_0x417448['model']['document']['selection']['getSelectedElement']();for(const _0x44af86 of _0x59e171)_0x4c6456['append'](_0x4c6456['cloneElement'](_0x44af86),_0x11a048);}else _0x4c6456['setSelection'](_0x11a048,'on'),_0x417448['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x11a048['getAttributes']()),'uploadcareImageId':_0x365617,'src':_0x304316,'sources':_0x48291a,'width':_0x35be37,'height':_0x2da878},_0x11a048);_0x4c6456['setSelection'](_0x11a048,'on');});}async['_getImageAsFile'](_0x750ef2){const _0x30af6a=_0x5db421['window'],_0x19a27c=_0x5db421['document']['location']['href'],_0x51bad5=new _0x30af6a['URL'](_0x750ef2['getAttribute']('src'),_0x19a27c);if('data:'===_0x51bad5['protocol']){const _0x46e372=_0x51bad5['href']['split'](','),_0x17d10b=_0x46e372[0x0]['match'](/:(.*?);/)[0x1],_0x1b534c=_0x17d10b['split']('/')[0x1],_0x26c29b=_0x30af6a['atob'](_0x46e372[_0x46e372['length']-0x1]);let _0x3decdc=_0x26c29b['length'];const _0xd6fc68=new _0x30af6a['Uint8Array'](_0x3decdc);for(;_0x3decdc--;)_0xd6fc68[_0x3decdc]=_0x26c29b['charCodeAt'](_0x3decdc);return new _0x30af6a['File']([_0xd6fc68],'image.'+_0x1b534c,{'type':_0x17d10b});}const _0x3d9fd0=_0x51bad5['href']['split']('/'),_0x98f6cd=_0x3d9fd0[_0x3d9fd0['length']-0x1],_0x15e800=_0x98f6cd['split']('.')[0x1];return _0x30af6a['fetch'](_0x51bad5['href'])['then'](_0x22a3a2=>_0x22a3a2['clone']()['blob']())['then'](_0x211507=>new _0x30af6a['File']([_0x211507],_0x98f6cd,{'type':'image/'+_0x15e800}));}}
23
+ import{global as _0x52c464,ObservableMixin as _0xf8735f}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x2f5d78}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x1b0a61}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x283b87}from'./uploadcareimageeditformview.js';import{UploadUtils as _0xf5b7e6}from'../../utils/uploadutils.js';import{getImageUrls as _0x274d18,getImageDimension as _0x499616}from'../../utils/editingutils.js';import{isAncestor as _0x976f25}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0xf8735f(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x48fcf6,_0xcb8f1c,_0x18771d){super(),this['_editor']=_0x48fcf6,this['_dialog']=_0xcb8f1c,this['_imageElement']=_0x18771d,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 _0x37ff03=this['_imageElement'],_0x4e10aa=_0x37ff03['getAttribute']('uploadcareImageId'),_0x19150c=_0x37ff03['getAttribute']('src');if(_0x4e10aa)await this['_loadImageInfo'](_0x4e10aa,_0x19150c);else{if(this['_imageCache']['has'](_0x19150c)){const _0xff5451=this['_imageCache']['get'](_0x19150c);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0xff5451['url'],this['imageDimension']=_0xff5451['dimension'],this['imageId']=_0xff5451['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x26e065}=this['_editor'],t=_0x26e065['t'],_0x4e7a03=new _0x283b87(_0x26e065,this['imageStatus'],this['_attributes']);_0x4e7a03['bind']('status')['to'](this,'imageStatus'),_0x4e7a03['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x4e7a03['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x4e7a03['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x4e7a03,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x1b0a61,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x4e7a03,'position':_0x2f5d78['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x4e7a03['focus']();},'onHide':()=>{_0x4e7a03['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x3bd346=>!_0x976f25(_0x3bd346,_0x4e7a03['element'])}});}['_loadImageInfo'](_0x3ad1f5,_0x12a51c){return _0xf5b7e6['getInfo'](_0x3ad1f5,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey')})['then'](_0x35e96b=>{const {width:_0x6e3211,height:_0x31b282}=_0x35e96b['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x12a51c,this['imageDimension']={'width':_0x6e3211,'height':_0x31b282},this['imageId']=_0x3ad1f5;})['catch'](_0x3d6a37=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3d6a37['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x464385,_0x219ad9){return this['_getImageAsFile'](_0x464385)['then'](_0x314e7b=>_0xf5b7e6['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'signal':_0x219ad9['signal'],'file':_0x314e7b,'onProgress':_0x3d7684=>{_0x3d7684&&_0x3d7684['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x3d7684['value']));}}))['then'](_0x37aedb=>{const {width:_0x5aecde,height:_0x1a55b6}=_0x37aedb['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x37aedb['cdnUrl'],this['imageDimension']={'width':_0x5aecde,'height':_0x1a55b6},this['imageId']=_0x37aedb['uuid'],this['imageUploadProgress']=null;const _0x3e6d98=_0x464385['getAttribute']('src');this['_imageCache']['set'](_0x3e6d98,{'id':_0x37aedb['uuid'],'url':_0x37aedb['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x501452=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x501452['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x172e19,_0x14c724){_0x172e19['on']('apply',(_0x26a8b2,_0x303d7d)=>{this['_replaceImage'](_0x14c724,_0x303d7d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x172e19['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x172e19['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x4c68b7,_0x1bd919,_0x451446){const _0x1d4c56=this['_editor'],{width:_0x38b007,height:_0x526b97}=_0x499616(_0x1bd919,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x3ea6bc,imageSources:_0x52fb3f}=_0x274d18(_0x1bd919,_0x38b007);_0x1d4c56['model']['change'](_0x13bd35=>{if('$graveyard'===_0x4c68b7['root']['rootName']){_0x1d4c56['execute']('insertImage',{'imageType':_0x4c68b7['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x4c68b7['getAttributes']()),'uploadcareImageId':_0x451446,'src':_0x3ea6bc,'sources':_0x52fb3f,'width':_0x38b007,'height':_0x526b97}});const _0xd2d918=_0x4c68b7['getChildren']();_0x4c68b7=_0x1d4c56['model']['document']['selection']['getSelectedElement']();for(const _0x52015e of _0xd2d918)_0x13bd35['append'](_0x13bd35['cloneElement'](_0x52015e),_0x4c68b7);}else _0x13bd35['setSelection'](_0x4c68b7,'on'),_0x1d4c56['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x4c68b7['getAttributes']()),'uploadcareImageId':_0x451446,'src':_0x3ea6bc,'sources':_0x52fb3f,'width':_0x38b007,'height':_0x526b97},_0x4c68b7);_0x13bd35['setSelection'](_0x4c68b7,'on');});}async['_getImageAsFile'](_0x13883a){const _0x1188a1=_0x52c464['window'],_0x19cf2e=_0x52c464['document']['location']['href'],_0x42c244=new _0x1188a1['URL'](_0x13883a['getAttribute']('src'),_0x19cf2e);if('data:'===_0x42c244['protocol']){const _0x3efad5=_0x42c244['href']['split'](','),_0x1fb32d=_0x3efad5[0x0]['match'](/:(.*?);/)[0x1],_0xead1f2=_0x1fb32d['split']('/')[0x1],_0x3c5f4b=_0x1188a1['atob'](_0x3efad5[_0x3efad5['length']-0x1]);let _0x358a5d=_0x3c5f4b['length'];const _0x461773=new _0x1188a1['Uint8Array'](_0x358a5d);for(;_0x358a5d--;)_0x461773[_0x358a5d]=_0x3c5f4b['charCodeAt'](_0x358a5d);return new _0x1188a1['File']([_0x461773],'image.'+_0xead1f2,{'type':_0x1fb32d});}const _0x119ca7=_0x42c244['href']['split']('/'),_0x50099a=_0x119ca7[_0x119ca7['length']-0x1],_0x3f4b4e=_0x50099a['split']('.')[0x1];return _0x1188a1['fetch'](_0x42c244['href'])['then'](_0x3f0f04=>_0x3f0f04['clone']()['blob']())['then'](_0x3dbcfc=>new _0x1188a1['File']([_0x3dbcfc],_0x50099a,{'type':'image/'+_0x3f4b4e}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x1dec29,_0x449155){const _0x1c303e=_0x2920,_0x27174a=_0x1dec29();while(!![]){try{const _0x2bf6e6=-parseInt(_0x1c303e(0x9b))/0x1+-parseInt(_0x1c303e(0xa0))/0x2+parseInt(_0x1c303e(0xa8))/0x3+-parseInt(_0x1c303e(0x9d))/0x4+parseInt(_0x1c303e(0xa4))/0x5*(-parseInt(_0x1c303e(0x9a))/0x6)+-parseInt(_0x1c303e(0x9c))/0x7+parseInt(_0x1c303e(0xa9))/0x8;if(_0x2bf6e6===_0x449155)break;else _0x27174a['push'](_0x27174a['shift']());}catch(_0x318b59){_0x27174a['push'](_0x27174a['shift']());}}}(_0x4bf1,0x3456d));import{View as _0x24f905}from'ckeditor5/src/ui.js';function _0x4bf1(){const _0x3f3154=['image-edit','ck-uploadcare-theme','uc-light','20UOrxPd','imageSrc','bindTemplate','setTemplate','48204plNmjm','12872160GLSnNh','278796ayMESt','192574SGUWtx','2391186lPGFbU','1664124hswsWc','uc-cloud-image-editor','set','549280WljeSS'];_0x4bf1=function(){return _0x3f3154;};return _0x4bf1();}function _0x2920(_0x5734d9,_0x534a87){const _0x4bf107=_0x4bf1();return _0x2920=function(_0x2920c1,_0x429f39){_0x2920c1=_0x2920c1-0x9a;let _0xa4d773=_0x4bf107[_0x2920c1];return _0xa4d773;},_0x2920(_0x5734d9,_0x534a87);}export class UploadcareImageEditFormEditingView extends _0x24f905{constructor(_0x4fb3d9,_0x3231f7){const _0x56fe63=_0x2920;super(_0x4fb3d9);const _0x336c8e=this[_0x56fe63(0xa6)];this[_0x56fe63(0x9f)](_0x56fe63(0xa5),''),this[_0x56fe63(0xa7)]({'tag':_0x56fe63(0x9e),'attributes':{..._0x3231f7,'class':[_0x56fe63(0xa3),_0x56fe63(0xa2)],'ctx-name':_0x56fe63(0xa1),'cdn-url':_0x336c8e['to'](_0x56fe63(0xa5))}});}}
23
+ function _0x540b(){const _0x2fec08=['30812rNicgw','125740DAAdMJ','587112OMocMO','5lrtwVQ','1320277JlTTcV','15894DzJVfn','319TNwCeC','32061iBCROn','uc-cloud-image-editor','ck-uploadcare-theme','12npOqvj','setTemplate','image-edit','imageSrc','610490zZdPrM','set','bindTemplate','408QDSyvl','uc-light'];_0x540b=function(){return _0x2fec08;};return _0x540b();}(function(_0x2a71d2,_0xe7d709){const _0x4c12f9=_0x5e41,_0x1d5955=_0x2a71d2();while(!![]){try{const _0x363e5f=-parseInt(_0x4c12f9(0x12e))/0x1*(-parseInt(_0x4c12f9(0x12b))/0x2)+parseInt(_0x4c12f9(0x132))/0x3*(-parseInt(_0x4c12f9(0x135))/0x4)+-parseInt(_0x4c12f9(0x139))/0x5+parseInt(_0x4c12f9(0x12d))/0x6+-parseInt(_0x4c12f9(0x12f))/0x7+-parseInt(_0x4c12f9(0x129))/0x8*(parseInt(_0x4c12f9(0x130))/0x9)+parseInt(_0x4c12f9(0x12c))/0xa*(parseInt(_0x4c12f9(0x131))/0xb);if(_0x363e5f===_0xe7d709)break;else _0x1d5955['push'](_0x1d5955['shift']());}catch(_0x3bf154){_0x1d5955['push'](_0x1d5955['shift']());}}}(_0x540b,0x1a0c4));import{View as _0x4314d7}from'ckeditor5/src/ui.js';function _0x5e41(_0x565738,_0x1c6f15){const _0x540beb=_0x540b();return _0x5e41=function(_0x5e4100,_0x1276c3){_0x5e4100=_0x5e4100-0x129;let _0x532ea0=_0x540beb[_0x5e4100];return _0x532ea0;},_0x5e41(_0x565738,_0x1c6f15);}export class UploadcareImageEditFormEditingView extends _0x4314d7{constructor(_0x2e363d,_0x414f3e){const _0xf695f7=_0x5e41;super(_0x2e363d);const _0x58bba7=this[_0xf695f7(0x13b)];this[_0xf695f7(0x13a)](_0xf695f7(0x138),''),this[_0xf695f7(0x136)]({'tag':_0xf695f7(0x133),'attributes':{..._0x414f3e,'class':[_0xf695f7(0x12a),_0xf695f7(0x134)],'ctx-name':_0xf695f7(0x137),'cdn-url':_0x58bba7['to'](_0xf695f7(0x138))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x53a814}from'ckeditor5/src/icons.js';import{ButtonView as _0x189fce,IconView as _0x128a50,View as _0x51133a}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x51133a{constructor(_0x39f6b6){super(_0x39f6b6);const t=_0x39f6b6['t'];this['set']('errorType',null);const _0x1718bb=new _0x189fce(_0x39f6b6);_0x1718bb['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x1718bb['withText']=!0x0,_0x1718bb['class']='ck-button-action',_0x1718bb['on']('execute',()=>{this['fire']('retry');}),_0x1718bb['bind']('isVisible')['to'](this,'errorType',_0x1ffe9a=>'NotFound'!==_0x1ffe9a);const _0x236619=new _0x128a50();_0x236619['content']=_0x53a814,_0x236619['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x12cc08=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':[_0x236619,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x12cc08['to']('errorType',_0xda1efb=>t('NotFound'!==_0xda1efb?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x1718bb]},{'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'}]}]}]});}}
23
+ import{IconError as _0x4a686e}from'ckeditor5/src/icons.js';import{ButtonView as _0x2ad34b,IconView as _0xf1d694,View as _0x5a47ce}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x5a47ce{constructor(_0x15c5c6){super(_0x15c5c6);const t=_0x15c5c6['t'];this['set']('errorType',null);const _0x23f798=new _0x2ad34b(_0x15c5c6);_0x23f798['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x23f798['withText']=!0x0,_0x23f798['class']='ck-button-action',_0x23f798['on']('execute',()=>{this['fire']('retry');}),_0x23f798['bind']('isVisible')['to'](this,'errorType',_0xb6d146=>'NotFound'!==_0xb6d146);const _0x4bba81=new _0xf1d694();_0x4bba81['content']=_0x4a686e,_0x4bba81['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x27c466=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':[_0x4bba81,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x27c466['to']('errorType',_0x32d83e=>t('NotFound'!==_0x32d83e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x23f798]},{'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'}]}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{SpinnerView as _0x2add94,View as _0x28f505}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x28f505{constructor(_0x1b13a5){super(_0x1b13a5);const t=_0x1b13a5['t'],_0x5c141=this['bindTemplate'],_0x3401d4=new _0x2add94();_0x3401d4['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':[_0x3401d4,{'text':_0x5c141['to']('imageUploadProgress',_0x6ec899=>t('Loading\x20image...')+'\x20('+(_0x6ec899||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'}]}]}]});}}
23
+ import{SpinnerView as _0xbfcaae,View as _0x40cfcd}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x40cfcd{constructor(_0x2014c4){super(_0x2014c4);const t=_0x2014c4['t'],_0x38bbbc=this['bindTemplate'],_0x54a2b7=new _0xbfcaae();_0x54a2b7['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':[_0x54a2b7,{'text':_0x38bbbc['to']('imageUploadProgress',_0xd4b10a=>t('Loading\x20image...')+'\x20('+(_0xd4b10a||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'}]}]}]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4f5d47=_0x8e5e;(function(_0x36566c,_0x511be4){const _0x2cae05=_0x8e5e,_0x1857ef=_0x36566c();while(!![]){try{const _0x371b30=parseInt(_0x2cae05(0x150))/0x1+parseInt(_0x2cae05(0x129))/0x2*(-parseInt(_0x2cae05(0x13a))/0x3)+-parseInt(_0x2cae05(0x13c))/0x4*(-parseInt(_0x2cae05(0x15c))/0x5)+-parseInt(_0x2cae05(0x157))/0x6+parseInt(_0x2cae05(0x147))/0x7*(-parseInt(_0x2cae05(0x160))/0x8)+-parseInt(_0x2cae05(0x140))/0x9*(parseInt(_0x2cae05(0x15e))/0xa)+parseInt(_0x2cae05(0x134))/0xb;if(_0x371b30===_0x511be4)break;else _0x1857ef['push'](_0x1857ef['shift']());}catch(_0x47b0a8){_0x1857ef['push'](_0x1857ef['shift']());}}}(_0x1a7e,0xa1936));import{View as _0x3db415}from'ckeditor5/src/ui.js';function _0x8e5e(_0x3e829b,_0x1c339f){const _0x1a7ef8=_0x1a7e();return _0x8e5e=function(_0x8e5e2,_0xd6500c){_0x8e5e2=_0x8e5e2-0x129;let _0x2558aa=_0x1a7ef8[_0x8e5e2];return _0x2558aa;},_0x8e5e(_0x3e829b,_0x1c339f);}function _0x1a7e(){const _0x5d86b2=['createCollection','retry','cdnUrl','setTemplate','185003vBpuXY','ready','change:status','_errorView','addMany','apply','_addUploadcareImageEditorListeners','clear','_loadingView','1298431uJDExn','toLowerCase','uploading','render','error','target','set','178002PjKSZl','addedNodes','length','disconnect','addEventListener','25UbRXPq','getFocusableElement','20WjQEyo','status','104zySVBk','1005044vHKRKz','element','_editingView','div','focus','observe','ck-uploadcare-form','_items','_setView','once','add','918522tHyWfE','detail','_addErrorViewListeners','_focusableView','querySelector','uc-cloud-image-editor','3xaibJP','_waitForImageEditorComponent','191972FPUXtK','fire','filter','nodeName','379431MdXHOd','ck-reset_all-excluded','cancel'];_0x1a7e=function(){return _0x5d86b2;};return _0x1a7e();}import{UploadcareImageEditFormLoadingView as _0x33b113}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x3c56bf}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x492b1e}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x28940e}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x28940e{[_0x4f5d47(0x130)];[_0x4f5d47(0x14f)];[_0x4f5d47(0x14a)];[_0x4f5d47(0x12b)];[_0x4f5d47(0x137)];constructor(_0x204ecd,_0x13751a,_0x485d9d){const _0x290165=_0x4f5d47;super(_0x204ecd),this[_0x290165(0x130)]=this[_0x290165(0x143)](),this[_0x290165(0x14f)]=new _0x33b113(_0x204ecd),this[_0x290165(0x14a)]=new _0x3c56bf(_0x204ecd),this[_0x290165(0x12b)]=new _0x492b1e(_0x204ecd,_0x485d9d),this[_0x290165(0x137)]=new _0x3db415(_0x204ecd),this[_0x290165(0x137)][_0x290165(0x146)](this[_0x290165(0x15d)]()),this[_0x290165(0x156)](_0x290165(0x15f),_0x13751a),this[_0x290165(0x146)]({'tag':_0x290165(0x12c),'attributes':{'class':['ck',_0x290165(0x141),_0x290165(0x12f)],'tabindex':'-1'},'children':this[_0x290165(0x130)]}),this[_0x290165(0x131)](),this[_0x290165(0x132)](_0x290165(0x153),()=>{const _0x411709=_0x290165;this[_0x411709(0x13b)](this[_0x411709(0x12a)],_0x154465=>{const _0xa631b9=_0x411709;this[_0xa631b9(0x14d)](_0x154465);});}),this['on'](_0x290165(0x149),()=>{const _0x197a85=_0x290165;this[_0x197a85(0x131)]();}),this[_0x290165(0x136)]();}[_0x4f5d47(0x12d)](){const _0x26bc09=_0x4f5d47;this[_0x26bc09(0x12a)][_0x26bc09(0x12d)]();}[_0x4f5d47(0x131)](){const _0x1d93de=_0x4f5d47;switch(this[_0x1d93de(0x130)][_0x1d93de(0x14e)](),this[_0x1d93de(0x15f)]){case _0x1d93de(0x152):this[_0x1d93de(0x130)][_0x1d93de(0x133)](this[_0x1d93de(0x14f)]);break;case _0x1d93de(0x154):this[_0x1d93de(0x130)][_0x1d93de(0x133)](this[_0x1d93de(0x14a)]);break;case _0x1d93de(0x148):this[_0x1d93de(0x130)][_0x1d93de(0x14b)]([this[_0x1d93de(0x12b)],this[_0x1d93de(0x137)]]);}}[_0x4f5d47(0x13b)](_0x340dae,_0x8456ea){const _0x661ab1=_0x4f5d47,_0x490f7a=_0x661ab1(0x139),_0x15387c=_0x340dae[_0x661ab1(0x138)](_0x490f7a);if(_0x15387c)return _0x8456ea(_0x15387c);const _0x23a5ea=new MutationObserver(_0x20bd84=>{const _0x5745d3=_0x661ab1,_0x45519b=_0x20bd84[_0x5745d3(0x13e)](_0x4aef52=>_0x4aef52[_0x5745d3(0x155)]===_0x340dae&&_0x4aef52[_0x5745d3(0x158)][_0x5745d3(0x159)]>0x0&&_0x4aef52[_0x5745d3(0x158)][0x0][_0x5745d3(0x13f)][_0x5745d3(0x151)]()===_0x490f7a);_0x45519b[_0x5745d3(0x159)]&&(_0x23a5ea[_0x5745d3(0x15a)](),_0x8456ea(_0x45519b[0x0][_0x5745d3(0x158)][0x0]));});_0x23a5ea[_0x661ab1(0x12e)](_0x340dae,{'childList':!0x0,'subtree':!0x0});}[_0x4f5d47(0x14d)](_0x216737){const _0x1214bc=_0x4f5d47;_0x216737[_0x1214bc(0x15b)](_0x1214bc(0x14c),_0x95377f=>{const _0x418b02=_0x1214bc;this[_0x418b02(0x13d)](_0x418b02(0x14c),{'imageSrc':_0x95377f[_0x418b02(0x135)][_0x418b02(0x145)]});}),_0x216737[_0x1214bc(0x15b)](_0x1214bc(0x142),()=>{const _0x309429=_0x1214bc;this[_0x309429(0x13d)](_0x309429(0x142));});}[_0x4f5d47(0x136)](){const _0x4d4a89=_0x4f5d47;this[_0x4d4a89(0x14a)]['on'](_0x4d4a89(0x144),()=>{const _0x2756f8=_0x4d4a89;this[_0x2756f8(0x13d)](_0x2756f8(0x144));});}}
23
+ const _0x2b69ed=_0x3426;(function(_0x2b423b,_0x30e75d){const _0x2f3f0d=_0x3426,_0x5cd335=_0x2b423b();while(!![]){try{const _0x3a0e37=parseInt(_0x2f3f0d(0xe7))/0x1*(-parseInt(_0x2f3f0d(0xb8))/0x2)+parseInt(_0x2f3f0d(0xde))/0x3+-parseInt(_0x2f3f0d(0xc0))/0x4+parseInt(_0x2f3f0d(0xc1))/0x5*(-parseInt(_0x2f3f0d(0xbc))/0x6)+-parseInt(_0x2f3f0d(0xbe))/0x7*(parseInt(_0x2f3f0d(0xd5))/0x8)+-parseInt(_0x2f3f0d(0xc5))/0x9*(-parseInt(_0x2f3f0d(0xcb))/0xa)+parseInt(_0x2f3f0d(0xdd))/0xb;if(_0x3a0e37===_0x30e75d)break;else _0x5cd335['push'](_0x5cd335['shift']());}catch(_0xb8f88c){_0x5cd335['push'](_0x5cd335['shift']());}}}(_0x5c1a,0xc7692));import{View as _0x9761c0}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x1a2769}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x97b33}from'./uploadcareimageeditformerrorview.js';function _0x3426(_0x2e687e,_0x28eca6){const _0x5c1a18=_0x5c1a();return _0x3426=function(_0x342657,_0xfa5879){_0x342657=_0x342657-0xb0;let _0x4ea957=_0x5c1a18[_0x342657];return _0x4ea957;},_0x3426(_0x2e687e,_0x28eca6);}import{UploadcareImageEditFormEditingView as _0x1e7c09}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x50ef9d}from'../../utils/dialogfocusmanagerview.js';import'../../../theme/uploadcare-form.css';function _0x5c1a(){const _0x1d0353=['_editingView','querySelector','clear','_loadingView','_setView','900730ZIAzMr','error','fire','cdnUrl','addMany','once','toLowerCase','ck-reset_all-excluded','nodeName','apply','24MQMQAk','_addErrorViewListeners','change:status','uploading','div','_errorView','filter','element','37888697epVAnj','1177158ZfBoDY','_addUploadcareImageEditorListeners','add','setTemplate','ready','detail','status','set','getFocusableElement','1516899pdQnqr','addedNodes','ck-uploadcare-form','_focusableView','addEventListener','cancel','createCollection','disconnect','uc-cloud-image-editor','2WGkCty','target','length','_items','8219598cwcPkl','_waitForImageEditorComponent','4893zdAchN','render','5208188uQFjcK','5TOWfGU','retry','focus','observe','117OkdVUS'];_0x5c1a=function(){return _0x1d0353;};return _0x5c1a();}export class UploadcareImageEditFormView extends _0x50ef9d{[_0x2b69ed(0xbb)];[_0x2b69ed(0xc9)];[_0x2b69ed(0xda)];[_0x2b69ed(0xc6)];[_0x2b69ed(0xb2)];constructor(_0x4209a6,_0x3ded7b,_0x900b69){const _0x2fe5c8=_0x2b69ed;super(_0x4209a6),this[_0x2fe5c8(0xbb)]=this[_0x2fe5c8(0xb5)](),this[_0x2fe5c8(0xc9)]=new _0x1a2769(_0x4209a6),this[_0x2fe5c8(0xda)]=new _0x97b33(_0x4209a6),this[_0x2fe5c8(0xc6)]=new _0x1e7c09(_0x4209a6,_0x900b69),this[_0x2fe5c8(0xb2)]=new _0x9761c0(_0x4209a6),this[_0x2fe5c8(0xb2)][_0x2fe5c8(0xe1)](this[_0x2fe5c8(0xe6)]()),this[_0x2fe5c8(0xe5)](_0x2fe5c8(0xe4),_0x3ded7b),this[_0x2fe5c8(0xe1)]({'tag':_0x2fe5c8(0xd9),'attributes':{'class':['ck',_0x2fe5c8(0xd2),_0x2fe5c8(0xb1)],'tabindex':'-1'},'children':this[_0x2fe5c8(0xbb)]}),this[_0x2fe5c8(0xca)](),this[_0x2fe5c8(0xd0)](_0x2fe5c8(0xbf),()=>{const _0x105281=_0x2fe5c8;this[_0x105281(0xbd)](this[_0x105281(0xdc)],_0x1424d4=>{const _0x389c30=_0x105281;this[_0x389c30(0xdf)](_0x1424d4);});}),this['on'](_0x2fe5c8(0xd7),()=>{const _0x542d88=_0x2fe5c8;this[_0x542d88(0xca)]();}),this[_0x2fe5c8(0xd6)]();}[_0x2b69ed(0xc3)](){const _0x469622=_0x2b69ed;this[_0x469622(0xdc)][_0x469622(0xc3)]();}[_0x2b69ed(0xca)](){const _0x284560=_0x2b69ed;switch(this[_0x284560(0xbb)][_0x284560(0xc8)](),this[_0x284560(0xe4)]){case _0x284560(0xd8):this[_0x284560(0xbb)][_0x284560(0xe0)](this[_0x284560(0xc9)]);break;case _0x284560(0xcc):this[_0x284560(0xbb)][_0x284560(0xe0)](this[_0x284560(0xda)]);break;case _0x284560(0xe2):this[_0x284560(0xbb)][_0x284560(0xcf)]([this[_0x284560(0xc6)],this[_0x284560(0xb2)]]);}}[_0x2b69ed(0xbd)](_0x4737e7,_0x3d4c12){const _0x3feaf2=_0x2b69ed,_0x5a8f43=_0x3feaf2(0xb7),_0x515427=_0x4737e7[_0x3feaf2(0xc7)](_0x5a8f43);if(_0x515427)return _0x3d4c12(_0x515427);const _0x35db4e=new MutationObserver(_0x41d57d=>{const _0x50418d=_0x3feaf2,_0x5d5007=_0x41d57d[_0x50418d(0xdb)](_0x2cfab1=>_0x2cfab1[_0x50418d(0xb9)]===_0x4737e7&&_0x2cfab1[_0x50418d(0xb0)][_0x50418d(0xba)]>0x0&&_0x2cfab1[_0x50418d(0xb0)][0x0][_0x50418d(0xd3)][_0x50418d(0xd1)]()===_0x5a8f43);_0x5d5007[_0x50418d(0xba)]&&(_0x35db4e[_0x50418d(0xb6)](),_0x3d4c12(_0x5d5007[0x0][_0x50418d(0xb0)][0x0]));});_0x35db4e[_0x3feaf2(0xc4)](_0x4737e7,{'childList':!0x0,'subtree':!0x0});}[_0x2b69ed(0xdf)](_0x1c65b2){const _0x55044c=_0x2b69ed;_0x1c65b2[_0x55044c(0xb3)](_0x55044c(0xd4),_0x2b423d=>{const _0x160cfb=_0x55044c;this[_0x160cfb(0xcd)](_0x160cfb(0xd4),{'imageSrc':_0x2b423d[_0x160cfb(0xe3)][_0x160cfb(0xce)]});}),_0x1c65b2[_0x55044c(0xb3)](_0x55044c(0xb4),()=>{const _0x2d22da=_0x55044c;this[_0x2d22da(0xcd)](_0x2d22da(0xb4));});}[_0x2b69ed(0xd6)](){const _0x42fba5=_0x2b69ed;this[_0x42fba5(0xda)]['on'](_0x42fba5(0xc2),()=>{const _0x5eb280=_0x42fba5;this[_0x5eb280(0xcd)](_0x5eb280(0xc2));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x269bb6=_0x24e2;(function(_0x5cddcf,_0x5d16b8){const _0x11d3f2=_0x24e2,_0x3e7be7=_0x5cddcf();while(!![]){try{const _0xdac3c6=parseInt(_0x11d3f2(0xbc))/0x1+parseInt(_0x11d3f2(0xba))/0x2*(parseInt(_0x11d3f2(0xb9))/0x3)+parseInt(_0x11d3f2(0xb7))/0x4+-parseInt(_0x11d3f2(0xce))/0x5+-parseInt(_0x11d3f2(0xbf))/0x6+-parseInt(_0x11d3f2(0xbb))/0x7*(parseInt(_0x11d3f2(0xbd))/0x8)+parseInt(_0x11d3f2(0xc1))/0x9*(parseInt(_0x11d3f2(0xc5))/0xa);if(_0xdac3c6===_0x5d16b8)break;else _0x3e7be7['push'](_0x3e7be7['shift']());}catch(_0x5cd768){_0x3e7be7['push'](_0x3e7be7['shift']());}}}(_0x4d92,0xe32bc));function _0x24e2(_0x5bbe1a,_0x4b3db2){const _0x4d922c=_0x4d92();return _0x24e2=function(_0x24e268,_0x59e899){_0x24e268=_0x24e268-0xaf;let _0x18ed2e=_0x4d922c[_0x24e268];return _0x18ed2e;},_0x24e2(_0x5bbe1a,_0x4b3db2);}import{Command as _0x4e4608}from'ckeditor5/src/core.js';import{Dialog as _0x586158}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x399f51}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x28aa7d}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x4e4608{[_0x269bb6(0xaf)];static get[_0x269bb6(0xb6)](){return[_0x586158];}[_0x269bb6(0xb4)];constructor(_0x5c9265){const _0x4eac26=_0x269bb6;super(_0x5c9265),this[_0x4eac26(0xaf)]=void 0x0,this[_0x4eac26(0xb4)]=_0x28aa7d(_0x5c9265[_0x4eac26(0xb1)][_0x4eac26(0xcd)](_0x4eac26(0xcc))||[]),this[_0x4eac26(0xb0)]({'isActive':!0x1});}[_0x269bb6(0xc3)](){const _0x59a16b=_0x269bb6,_0x2cfd42=this[_0x59a16b(0xc6)][_0x59a16b(0xb5)][_0x59a16b(0xca)][_0x59a16b(0xb3)][_0x59a16b(0xc7)]();this[_0x59a16b(0xc0)]=this[_0x59a16b(0xb4)](_0x2cfd42);}[_0x269bb6(0xc4)](){const _0xc4fdfa=_0x269bb6;this[_0xc4fdfa(0xaf)]&&(this[_0xc4fdfa(0xbe)](_0xc4fdfa(0xc9)),this[_0xc4fdfa(0xaf)]=void 0x0);const _0x81189e=this[_0xc4fdfa(0xc6)][_0xc4fdfa(0xb5)][_0xc4fdfa(0xca)][_0xc4fdfa(0xb3)][_0xc4fdfa(0xc7)]();_0x81189e&&(_0x81189e['is'](_0xc4fdfa(0xc2),_0xc4fdfa(0xb8))||_0x81189e['is'](_0xc4fdfa(0xc2),_0xc4fdfa(0xc8)))&&(this[_0xc4fdfa(0xaf)]=new _0x399f51(this[_0xc4fdfa(0xc6)],this[_0xc4fdfa(0xc6)][_0xc4fdfa(0xcb)][_0xc4fdfa(0xcd)](_0x586158),_0x81189e),this[_0xc4fdfa(0xb2)](_0xc4fdfa(0xc9))['to'](this[_0xc4fdfa(0xaf)],_0xc4fdfa(0xc9)));}}function _0x4d92(){const _0x25dd6c=['isEnabled','4026231FhbzbX','element','refresh','execute','50KbdEmq','editor','getSelectedElement','imageInline','isActive','document','plugins','uploadcare.allowExternalImagesEditing','get','8080170znGend','imageEditController','set','config','bind','selection','_isEditable','model','requires','209020rSjmeJ','imageBlock','4356237HjTcxP','2tAouSd','6034hAIswD','356051QgIXnZ','13400ETOeBO','unbind','640824hAEndS'];_0x4d92=function(){return _0x25dd6c;};return _0x4d92();}
23
+ const _0x22fad0=_0x2208;(function(_0x2b8386,_0x1e0b89){const _0x467dfc=_0x2208,_0x5c9e28=_0x2b8386();while(!![]){try{const _0x4f6838=-parseInt(_0x467dfc(0x14f))/0x1*(parseInt(_0x467dfc(0x151))/0x2)+parseInt(_0x467dfc(0x140))/0x3*(-parseInt(_0x467dfc(0x154))/0x4)+-parseInt(_0x467dfc(0x14e))/0x5+-parseInt(_0x467dfc(0x14c))/0x6+parseInt(_0x467dfc(0x14a))/0x7+parseInt(_0x467dfc(0x13a))/0x8+parseInt(_0x467dfc(0x13b))/0x9;if(_0x4f6838===_0x1e0b89)break;else _0x5c9e28['push'](_0x5c9e28['shift']());}catch(_0x26c7a5){_0x5c9e28['push'](_0x5c9e28['shift']());}}}(_0x235b,0x39994));import{Command as _0x5e53a8}from'ckeditor5/src/core.js';import{Dialog as _0x73f70e}from'ckeditor5/src/ui.js';function _0x2208(_0x135132,_0xeb1bfe){const _0x235b37=_0x235b();return _0x2208=function(_0x220826,_0x1ad462){_0x220826=_0x220826-0x139;let _0x21db6b=_0x235b37[_0x220826];return _0x21db6b;},_0x2208(_0x135132,_0xeb1bfe);}import{UploadcareImageEditController as _0x2178a0}from'./ui/uploadcareimageeditcontroller.js';function _0x235b(){const _0x303f4c=['1946085QyzLnP','1FUfNEw','get','917222gQPotP','selection','editor','2560EfNflr','imageBlock','model','getSelectedElement','unbind','2052792lKKwog','7341669XXTiAS','requires','uploadcare.allowExternalImagesEditing','plugins','isEnabled','348nbjTvy','isActive','imageEditController','set','document','execute','element','config','refresh','_isEditable','652141DSGKUh','bind','45066cpOoci','imageInline'];_0x235b=function(){return _0x303f4c;};return _0x235b();}import{createEditabilityChecker as _0xf45284}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x5e53a8{[_0x22fad0(0x142)];static get[_0x22fad0(0x13c)](){return[_0x73f70e];}[_0x22fad0(0x149)];constructor(_0x213105){const _0x1aaa35=_0x22fad0;super(_0x213105),this[_0x1aaa35(0x142)]=void 0x0,this[_0x1aaa35(0x149)]=_0xf45284(_0x213105[_0x1aaa35(0x147)][_0x1aaa35(0x150)](_0x1aaa35(0x13d))||[]),this[_0x1aaa35(0x143)]({'isActive':!0x1});}[_0x22fad0(0x148)](){const _0x28fb05=_0x22fad0,_0x38e871=this[_0x28fb05(0x153)][_0x28fb05(0x156)][_0x28fb05(0x144)][_0x28fb05(0x152)][_0x28fb05(0x157)]();this[_0x28fb05(0x13f)]=this[_0x28fb05(0x149)](_0x38e871);}[_0x22fad0(0x145)](){const _0x88a5c4=_0x22fad0;this[_0x88a5c4(0x142)]&&(this[_0x88a5c4(0x139)](_0x88a5c4(0x141)),this[_0x88a5c4(0x142)]=void 0x0);const _0x25e2c1=this[_0x88a5c4(0x153)][_0x88a5c4(0x156)][_0x88a5c4(0x144)][_0x88a5c4(0x152)][_0x88a5c4(0x157)]();_0x25e2c1&&(_0x25e2c1['is'](_0x88a5c4(0x146),_0x88a5c4(0x155))||_0x25e2c1['is'](_0x88a5c4(0x146),_0x88a5c4(0x14d)))&&(this[_0x88a5c4(0x142)]=new _0x2178a0(this[_0x88a5c4(0x153)],this[_0x88a5c4(0x153)][_0x88a5c4(0x13e)][_0x88a5c4(0x150)](_0x73f70e),_0x25e2c1),this[_0x88a5c4(0x14b)](_0x88a5c4(0x141))['to'](this[_0x88a5c4(0x142)],_0x88a5c4(0x141)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xcd5ae0=_0x32e8;(function(_0x26d165,_0x4bf524){const _0x438fef=_0x32e8,_0x19fab0=_0x26d165();while(!![]){try{const _0x4c000b=-parseInt(_0x438fef(0x1c8))/0x1+parseInt(_0x438fef(0x1ce))/0x2*(parseInt(_0x438fef(0x1cb))/0x3)+-parseInt(_0x438fef(0x1cd))/0x4*(parseInt(_0x438fef(0x1cf))/0x5)+parseInt(_0x438fef(0x1da))/0x6+parseInt(_0x438fef(0x1ca))/0x7*(parseInt(_0x438fef(0x1d7))/0x8)+parseInt(_0x438fef(0x1db))/0x9+parseInt(_0x438fef(0x1d6))/0xa*(-parseInt(_0x438fef(0x1d4))/0xb);if(_0x4c000b===_0x4bf524)break;else _0x19fab0['push'](_0x19fab0['shift']());}catch(_0x1953f2){_0x19fab0['push'](_0x19fab0['shift']());}}}(_0x94ea,0x4dbef));import{Plugin as _0x4aec91}from'ckeditor5/src/core.js';import{Notification as _0x44f564}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x54cdf4}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x2060b3}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x2a46ce}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x4aec91{static get[_0xcd5ae0(0x1d0)](){const _0x4c78e9=_0xcd5ae0;return _0x4c78e9(0x1d3);}static get[_0xcd5ae0(0x1d2)](){const _0x4a32d8=_0xcd5ae0;return[_0x2a46ce,_0x44f564,_0x4a32d8(0x1cc),_0x4a32d8(0x1d5)];}static get[_0xcd5ae0(0x1dc)](){return!0x0;}static get[_0xcd5ae0(0x1d8)](){return!0x0;}[_0xcd5ae0(0x1c9)](){const _0x290d38=_0xcd5ae0,{editor:_0x4dd68a}=this;_0x4dd68a[_0x290d38(0x1c6)][_0x290d38(0x1d1)](_0x290d38(0x1d9),new _0x54cdf4(_0x4dd68a)),_0x4dd68a[_0x290d38(0x1c6)][_0x290d38(0x1d1)](_0x290d38(0x1c7),new _0x2060b3(_0x4dd68a));}}function _0x32e8(_0x5a1071,_0x4d1fe0){const _0x94ea38=_0x94ea();return _0x32e8=function(_0x32e8e,_0x7a4639){_0x32e8e=_0x32e8e-0x1c6;let _0x222980=_0x94ea38[_0x32e8e];return _0x222980;},_0x32e8(_0x5a1071,_0x4d1fe0);}function _0x94ea(){const _0x49368f=['uploadcareImageReplace','288741hdBahk','init','2506pjBUBN','9bqBSAj','ImageUtils','16abMucS','401572fBGUrd','22495GLwhUM','pluginName','add','requires','UploadcareImageEditEditing','11aJnzLD','ImageEditing','7589410SxAztT','5888qDeDdl','isPremiumPlugin','uploadcareImageEdit','1653006KTyxfE','2185002LQkQuY','isOfficialPlugin','commands'];_0x94ea=function(){return _0x49368f;};return _0x94ea();}
23
+ const _0x46bc96=_0x542c;function _0x542c(_0x47a073,_0x231f1e){const _0x59afcc=_0x59af();return _0x542c=function(_0x542c1c,_0x4c7163){_0x542c1c=_0x542c1c-0x8c;let _0x37822a=_0x59afcc[_0x542c1c];return _0x37822a;},_0x542c(_0x47a073,_0x231f1e);}(function(_0x2f6939,_0x56a618){const _0x26e53a=_0x542c,_0x3baebd=_0x2f6939();while(!![]){try{const _0x5019cc=-parseInt(_0x26e53a(0x91))/0x1+parseInt(_0x26e53a(0x8d))/0x2*(-parseInt(_0x26e53a(0x9b))/0x3)+-parseInt(_0x26e53a(0x9e))/0x4+-parseInt(_0x26e53a(0x95))/0x5*(parseInt(_0x26e53a(0xa2))/0x6)+-parseInt(_0x26e53a(0x8f))/0x7*(-parseInt(_0x26e53a(0x92))/0x8)+parseInt(_0x26e53a(0x9d))/0x9+-parseInt(_0x26e53a(0x9f))/0xa*(-parseInt(_0x26e53a(0x96))/0xb);if(_0x5019cc===_0x56a618)break;else _0x3baebd['push'](_0x3baebd['shift']());}catch(_0x43b651){_0x3baebd['push'](_0x3baebd['shift']());}}}(_0x59af,0x7f38f));import{Plugin as _0x373710}from'ckeditor5/src/core.js';import{Notification as _0x37c957}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x5b6598}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x38284b}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x1e8f6f}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x373710{static get[_0x46bc96(0x90)](){const _0x3da580=_0x46bc96;return _0x3da580(0x98);}static get[_0x46bc96(0x99)](){const _0x26bfb7=_0x46bc96;return[_0x1e8f6f,_0x37c957,_0x26bfb7(0x94),_0x26bfb7(0x9c)];}static get[_0x46bc96(0xa0)](){return!0x0;}static get[_0x46bc96(0x8e)](){return!0x0;}[_0x46bc96(0x8c)](){const _0x59a6d1=_0x46bc96,{editor:_0x3eba18}=this;_0x3eba18[_0x59a6d1(0x9a)][_0x59a6d1(0xa1)](_0x59a6d1(0x97),new _0x5b6598(_0x3eba18)),_0x3eba18[_0x59a6d1(0x9a)][_0x59a6d1(0xa1)](_0x59a6d1(0x93),new _0x38284b(_0x3eba18));}}function _0x59af(){const _0x1908ee=['requires','commands','2355oGtDTv','ImageEditing','9308304tKbpxG','814268oTswuS','13462390uLlyGC','isOfficialPlugin','add','6RAUHnZ','init','754Cpexau','isPremiumPlugin','7FVThBv','pluginName','765512USaugJ','1153520WbZaLw','uploadcareImageReplace','ImageUtils','3692790qOEaLZ','11tGjBJp','uploadcareImageEdit','UploadcareImageEditEditing'];_0x59af=function(){return _0x1908ee;};return _0x59af();}
@@ -31,13 +31,13 @@ export declare class UploadcareImageEditUI extends Plugin {
31
31
  /**
32
32
  * The cache of image URLs that had been uploaded to Uploadcare.
33
33
  */
34
- get imageCache(): ImageCache;
34
+ get imageCache(): UploadcareImageCache;
35
35
  /**
36
36
  * @inheritDoc
37
37
  */
38
38
  init(): void;
39
39
  }
40
- type ImageCache = Map<string, {
40
+ export type UploadcareImageCache = Map<string, {
41
41
  id: string;
42
42
  url: string;
43
43
  dimension: {
@@ -45,4 +45,3 @@ type ImageCache = Map<string, {
45
45
  height: number;
46
46
  };
47
47
  }>;
48
- export {};
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x18be05}from'ckeditor5/src/core.js';import{ButtonView as _0x569ac9}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x4bfc3c}from'ckeditor5/src/icons.js';import{createElement as _0x52eb23}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x18be05{['_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 _0x12e728=this['editor'];_0x12e728['ui']['componentFactory']['add']('uploadcareImageEdit',_0x47ece9=>{const _0x4c74dc=_0x12e728['commands']['get']('uploadcareImageEdit'),_0x3d146d=new _0x569ac9(_0x47ece9),t=_0x47ece9['t'];return _0x3d146d['set']({'icon':_0x4bfc3c,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x3d146d['bind']('isEnabled')['to'](_0x4c74dc),_0x3d146d['bind']('isOn')['to'](_0x4c74dc,'isActive'),this['listenTo'](_0x3d146d,'execute',()=>{_0x12e728['execute']('uploadcareImageEdit'),_0x12e728['editing']['view']['focus']();}),_0x3d146d;}),this['_initConfig']();}['_initConfig'](){const _0x5ee0a1=_0x52eb23(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x5ee0a1),this['listenTo'](this['editor'],'destroy',()=>{_0x5ee0a1['remove']();});}}
23
+ import{Plugin as _0x5554a9}from'ckeditor5/src/core.js';import{ButtonView as _0x239a8b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x15beb6}from'ckeditor5/src/icons.js';import{createElement as _0x1e5031}from'ckeditor5/src/utils.js';import'@uploadcare/file-uploader/web/uc-cloud-image-editor.min.css';import'../../theme/uploadcare-theme.css';export class UploadcareImageEditUI extends _0x5554a9{['_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 _0x4580f2=this['editor'];_0x4580f2['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4043bb=>{const _0x3483a9=_0x4580f2['commands']['get']('uploadcareImageEdit'),_0x1a8a63=new _0x239a8b(_0x4043bb),t=_0x4043bb['t'];return _0x1a8a63['set']({'icon':_0x15beb6,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1a8a63['bind']('isEnabled')['to'](_0x3483a9),_0x1a8a63['bind']('isOn')['to'](_0x3483a9,'isActive'),this['listenTo'](_0x1a8a63,'execute',()=>{_0x4580f2['execute']('uploadcareImageEdit'),_0x4580f2['editing']['view']['focus']();}),_0x1a8a63;}),this['_initConfig']();}['_initConfig'](){const _0x15f585=_0x1e5031(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x15f585),this['listenTo'](this['editor'],'destroy',()=>{_0x15f585['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x51cdc1=_0x3ba1;function _0x2a60(){const _0x5cbc8a=['2oVVhzZ','setAttributes','model','76KVEOas','11559320kiDgnt','change','refresh','sizes','35595TAqQkh','5678330hNRWcy','getSelectedElement','srcset','isEnabled','990sAQNtQ','131646Loqdyj','editor','element','document','6140617eSTMxz','6496236RvqGDM','imageInline','execute','selection','removeAttribute','139352Vwxobl','imageBlock'];_0x2a60=function(){return _0x5cbc8a;};return _0x2a60();}(function(_0x2ab5fa,_0x16bf03){const _0x5bfdb6=_0x3ba1,_0xb810da=_0x2ab5fa();while(!![]){try{const _0x1bc44f=parseInt(_0x5bfdb6(0x1f5))/0x1*(parseInt(_0x5bfdb6(0x1f7))/0x2)+-parseInt(_0x5bfdb6(0x205))/0x3*(-parseInt(_0x5bfdb6(0x1fa))/0x4)+-parseInt(_0x5bfdb6(0x200))/0x5+parseInt(_0x5bfdb6(0x20a))/0x6+parseInt(_0x5bfdb6(0x209))/0x7+-parseInt(_0x5bfdb6(0x1fb))/0x8+parseInt(_0x5bfdb6(0x1ff))/0x9*(parseInt(_0x5bfdb6(0x204))/0xa);if(_0x1bc44f===_0x16bf03)break;else _0xb810da['push'](_0xb810da['shift']());}catch(_0x3d3636){_0xb810da['push'](_0xb810da['shift']());}}}(_0x2a60,0xb5a4b));import{Command as _0xf301ce}from'ckeditor5/src/core.js';function _0x3ba1(_0x275847,_0xc08a0c){const _0x2a607a=_0x2a60();return _0x3ba1=function(_0x3ba152,_0xc5aa4b){_0x3ba152=_0x3ba152-0x1f4;let _0x19a440=_0x2a607a[_0x3ba152];return _0x19a440;},_0x3ba1(_0x275847,_0xc08a0c);}export class UploadcareImageReplaceCommand extends _0xf301ce{[_0x51cdc1(0x1fd)](){const _0x25a60a=_0x51cdc1,_0x3f9dc8=this[_0x25a60a(0x206)][_0x25a60a(0x1f9)][_0x25a60a(0x208)][_0x25a60a(0x20d)][_0x25a60a(0x201)]();this[_0x25a60a(0x203)]=Boolean(_0x3f9dc8&&(_0x3f9dc8['is'](_0x25a60a(0x207),_0x25a60a(0x1f6))||_0x3f9dc8['is'](_0x25a60a(0x207),_0x25a60a(0x20b))));}[_0x51cdc1(0x20c)](_0x5ac7d8){const _0x1750ef=_0x51cdc1,_0x1bf840=this[_0x1750ef(0x206)][_0x1750ef(0x1f9)][_0x1750ef(0x208)][_0x1750ef(0x20d)][_0x1750ef(0x201)]();this[_0x1750ef(0x206)][_0x1750ef(0x1f9)][_0x1750ef(0x1fc)](_0x2ea2d9=>{const _0xe04486=_0x1750ef;_0x2ea2d9[_0xe04486(0x1f8)](_0x5ac7d8,_0x1bf840),_0x2ea2d9[_0xe04486(0x1f4)](_0xe04486(0x202),_0x1bf840),_0x2ea2d9[_0xe04486(0x1f4)](_0xe04486(0x1fe),_0x1bf840);});}}
23
+ function _0x5af9(){const _0x518efc=['setAttributes','refresh','1765708AmOFrY','srcset','imageBlock','3748145ULJhDQ','element','change','selection','model','imageInline','document','removeAttribute','isEnabled','getSelectedElement','603suXYCa','sizes','4955830fjwqtb','6JGjMOn','10ndhBZe','2548872ysdGQx','293049LAsdRJ','9660224YLUomg','editor','24872RJaHrn','execute'];_0x5af9=function(){return _0x518efc;};return _0x5af9();}function _0x1abd(_0x276f90,_0x6fef5e){const _0x5af999=_0x5af9();return _0x1abd=function(_0x1abd51,_0x5ae10a){_0x1abd51=_0x1abd51-0xc9;let _0x475f52=_0x5af999[_0x1abd51];return _0x475f52;},_0x1abd(_0x276f90,_0x6fef5e);}const _0x48cf4b=_0x1abd;(function(_0x2ffce7,_0x4fb0e8){const _0x465fe6=_0x1abd,_0x1c8787=_0x2ffce7();while(!![]){try{const _0x2f47bc=-parseInt(_0x465fe6(0xda))/0x1*(parseInt(_0x465fe6(0xd8))/0x2)+parseInt(_0x465fe6(0xd4))/0x3*(parseInt(_0x465fe6(0xdd))/0x4)+-parseInt(_0x465fe6(0xca))/0x5*(parseInt(_0x465fe6(0xd7))/0x6)+-parseInt(_0x465fe6(0xe1))/0x7+parseInt(_0x465fe6(0xdb))/0x8+parseInt(_0x465fe6(0xd9))/0x9+parseInt(_0x465fe6(0xd6))/0xa;if(_0x2f47bc===_0x4fb0e8)break;else _0x1c8787['push'](_0x1c8787['shift']());}catch(_0x5ce002){_0x1c8787['push'](_0x1c8787['shift']());}}}(_0x5af9,0xbbbfb));import{Command as _0x6ba420}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x6ba420{[_0x48cf4b(0xe0)](){const _0x28291d=_0x48cf4b,_0x277b17=this[_0x28291d(0xdc)][_0x28291d(0xce)][_0x28291d(0xd0)][_0x28291d(0xcd)][_0x28291d(0xd3)]();this[_0x28291d(0xd2)]=Boolean(_0x277b17&&(_0x277b17['is'](_0x28291d(0xcb),_0x28291d(0xc9))||_0x277b17['is'](_0x28291d(0xcb),_0x28291d(0xcf))));}[_0x48cf4b(0xde)](_0x53bfc4){const _0x5ad2fd=_0x48cf4b,_0xdc36c3=this[_0x5ad2fd(0xdc)][_0x5ad2fd(0xce)][_0x5ad2fd(0xd0)][_0x5ad2fd(0xcd)][_0x5ad2fd(0xd3)]();this[_0x5ad2fd(0xdc)][_0x5ad2fd(0xce)][_0x5ad2fd(0xcc)](_0x1abf82=>{const _0x19927c=_0x5ad2fd;_0x1abf82[_0x19927c(0xdf)](_0x53bfc4,_0xdc36c3),_0x1abf82[_0x19927c(0xd1)](_0x19927c(0xe2),_0xdc36c3),_0x1abf82[_0x19927c(0xd1)](_0x19927c(0xd5),_0xdc36c3);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x576013=_0xc66c;(function(_0x3b9c0d,_0x2cffd5){var _0x1f07a8=_0xc66c,_0x229851=_0x3b9c0d();while(!![]){try{var _0x3c779c=-parseInt(_0x1f07a8(0xed))/0x1+parseInt(_0x1f07a8(0xe4))/0x2+parseInt(_0x1f07a8(0xee))/0x3+parseInt(_0x1f07a8(0xe8))/0x4+parseInt(_0x1f07a8(0xef))/0x5*(parseInt(_0x1f07a8(0xe2))/0x6)+-parseInt(_0x1f07a8(0xe3))/0x7+-parseInt(_0x1f07a8(0xe7))/0x8*(-parseInt(_0x1f07a8(0xec))/0x9);if(_0x3c779c===_0x2cffd5)break;else _0x229851['push'](_0x229851['shift']());}catch(_0x25f0ee){_0x229851['push'](_0x229851['shift']());}}}(_0x5a51,0xa3a83));function _0xc66c(_0x5e6037,_0x41542){var _0x5a51c7=_0x5a51();return _0xc66c=function(_0xc66cbc,_0xd804f4){_0xc66cbc=_0xc66cbc-0xe2;var _0x127a39=_0x5a51c7[_0xc66cbc];return _0x127a39;},_0xc66c(_0x5e6037,_0x41542);}import{Plugin as _0x248b31}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x33ecb3}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x2230bd}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x248b31{static get[_0x576013(0xea)](){var _0x5adde0=_0x576013;return _0x5adde0(0xe9);}static get[_0x576013(0xeb)](){return[_0x33ecb3,_0x2230bd];}static get[_0x576013(0xe6)](){return!0x0;}static get[_0x576013(0xe5)](){return!0x0;}}function _0x5a51(){var _0x5ee663=['isOfficialPlugin','157736elhtSg','844892cVzFpa','UploadcareImageEdit','pluginName','requires','297ebldpy','1171157HiFpdp','2460942OivhuI','750495rOKBka','6fpzeRt','6540023PNLUqK','1886976pjmDSU','isPremiumPlugin'];_0x5a51=function(){return _0x5ee663;};return _0x5a51();}
23
+ var _0x466f25=_0x34a2;function _0x34a2(_0x3df091,_0x26316f){var _0x51b37a=_0x51b3();return _0x34a2=function(_0x34a258,_0x2d7519){_0x34a258=_0x34a258-0xcb;var _0x37e44d=_0x51b37a[_0x34a258];return _0x37e44d;},_0x34a2(_0x3df091,_0x26316f);}(function(_0x54bd2a,_0x17dc6b){var _0x1e9a28=_0x34a2,_0x30fd0b=_0x54bd2a();while(!![]){try{var _0x19d8a5=parseInt(_0x1e9a28(0xcb))/0x1+parseInt(_0x1e9a28(0xd2))/0x2*(-parseInt(_0x1e9a28(0xcc))/0x3)+-parseInt(_0x1e9a28(0xd4))/0x4+parseInt(_0x1e9a28(0xcf))/0x5+parseInt(_0x1e9a28(0xd1))/0x6+parseInt(_0x1e9a28(0xd6))/0x7+parseInt(_0x1e9a28(0xd7))/0x8*(-parseInt(_0x1e9a28(0xce))/0x9);if(_0x19d8a5===_0x17dc6b)break;else _0x30fd0b['push'](_0x30fd0b['shift']());}catch(_0x50bbb7){_0x30fd0b['push'](_0x30fd0b['shift']());}}}(_0x51b3,0xcb79e));import{Plugin as _0x9b051}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0xa44bdd}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x32843d}from'./uploadcareimageedit/uploadcareimageeditui.js';function _0x51b3(){var _0x15e1c0=['3184430hSTClr','isOfficialPlugin','2714532MpnAOB','8vWSWkb','pluginName','483376FioOOl','requires','3147165ejEWZa','488FHwyGu','isPremiumPlugin','667972sTzYcr','213438owGpFm','UploadcareImageEdit','142821eKDMsq'];_0x51b3=function(){return _0x15e1c0;};return _0x51b3();}export class UploadcareImageEdit extends _0x9b051{static get[_0x466f25(0xd3)](){var _0x436059=_0x466f25;return _0x436059(0xcd);}static get[_0x466f25(0xd5)](){return[_0xa44bdd,_0x32843d];}static get[_0x466f25(0xd0)](){return!0x0;}static get[_0x466f25(0xd8)](){return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4d759e=_0x4c40;(function(_0x223782,_0x221bb0){const _0x1796d9=_0x4c40,_0xe1b9=_0x223782();while(!![]){try{const _0xb7e560=-parseInt(_0x1796d9(0x1bd))/0x1+parseInt(_0x1796d9(0x1da))/0x2+parseInt(_0x1796d9(0x1e3))/0x3+-parseInt(_0x1796d9(0x1c6))/0x4+-parseInt(_0x1796d9(0x1d0))/0x5*(parseInt(_0x1796d9(0x1db))/0x6)+-parseInt(_0x1796d9(0x1fa))/0x7+parseInt(_0x1796d9(0x1d3))/0x8;if(_0xb7e560===_0x221bb0)break;else _0xe1b9['push'](_0xe1b9['shift']());}catch(_0x2bd054){_0xe1b9['push'](_0xe1b9['shift']());}}}(_0x32cf,0x31498));import{Plugin as _0x37c00b}from'ckeditor5/src/core.js';function _0x32cf(){const _0x27c8bd=['icon','map','Local','destroy','assetManager','uploadcareLicenseKeyExpired','uploadcare','afterInit','evaluationLimit','_normalizeConfigSourceList','344878wzoxoA','has','push','plugins','ImageInsertUI','featureNotAllowed','uploadcareLicenseKeyValid','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyNotAllowed','526388nFjkOK','_getIntegrationKey','upload','tooltip','uploadcareLicenseKeyDomainLimit','editor','reduce','isEnabled','GDrive','OneDrive','640545zyRDjs','_createMenuBarButtons','execute','5614888HBuOee','GPhotos','type','withText','registerIntegration','isPremiumPlugin','entries','312672VqJoWJ','6oTkGxT','commands','invalid','Uploadcare','_createButton','expired','isOfficialPlugin','_licenseKeyCheckInterval','202578KGeKGJ','bind','Dropbox','uploadcareLicenseKeyUsageLimit','UploadcareUI','forEach','label','trialLimit','URL','locale','_createToolbarButton','pluginName','shortText','domainLimit','text','get','usageLimit','url','_showLicenseError','isImageSelected','uploadcareLicenseKeyEvaluationLimit','uploadcareLicenseKeyTrialLimit','config','834813xDvgEl','uploadcare.uploader.sourceList','Facebook','Insert','licenseKey','Replace','_createDropdownButtons','init'];_0x32cf=function(){return _0x27c8bd;};return _0x32cf();}import{IconDropbox as _0x335e43,IconFacebook as _0x3485ff,IconGoogleDrive as _0x52a2cd,IconGooglePhotos as _0x3051cd,IconUploadcareImageUpload as _0x202dff,IconUploadcareLink as _0x4e0b40,IconOneDrive as _0x27d120}from'ckeditor5/src/icons.js';import{ButtonView as _0x21a4e4,MenuBarMenuListItemButtonView as _0x12654b}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x821569}from'./uploadcareconfig.js';import{getTranslation as _0x5e82fe}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';function _0x4c40(_0x403150,_0x17e885){const _0x32cfa1=_0x32cf();return _0x4c40=function(_0x4c4000,_0x7c38ac){_0x4c4000=_0x4c4000-0x1b9;let _0x318367=_0x32cfa1[_0x4c4000];return _0x318367;},_0x4c40(_0x403150,_0x17e885);}import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x37c00b{[_0x4d759e(0x1fe)];[_0x4d759e(0x1e2)];static get[_0x4d759e(0x1ee)](){const _0x67edb=_0x4d759e;return _0x67edb(0x1e7);}static get[_0x4d759e(0x1e1)](){return!0x0;}static get[_0x4d759e(0x1d8)](){return!0x0;}[_0x4d759e(0x201)](){const _0x93889=_0x4d759e;this[_0x93889(0x1fe)]=this[_0x93889(0x1cb)][_0x93889(0x1f9)][_0x93889(0x1f2)](_0x93889(0x1fe));const _0x786065=this[_0x93889(0x1cb)];this[_0x93889(0x1e2)]=setInterval(()=>{const _0xed8da7=_0x93889;let _0x100dc3;for(const _0x2d98fc in _0x786065){const _0x571bd2=_0x2d98fc,_0x7e6c09=_0x786065[_0x571bd2];if(_0xed8da7(0x1c3)==_0x7e6c09||_0xed8da7(0x1c4)==_0x7e6c09||_0xed8da7(0x207)==_0x7e6c09||_0xed8da7(0x1ca)==_0x7e6c09||_0xed8da7(0x1c5)==_0x7e6c09||_0xed8da7(0x1f7)==_0x7e6c09||_0xed8da7(0x1f8)==_0x7e6c09||_0xed8da7(0x1e6)==_0x7e6c09){delete _0x786065[_0x571bd2],_0x100dc3=_0x7e6c09,clearInterval(this[_0xed8da7(0x1e2)]),this[_0xed8da7(0x1e2)]=void 0x0;break;}}_0xed8da7(0x1c4)==_0x100dc3&&_0x786065[_0xed8da7(0x1f5)](_0xed8da7(0x1dd)),_0xed8da7(0x207)==_0x100dc3&&_0x786065[_0xed8da7(0x1f5)](_0xed8da7(0x1e0)),_0xed8da7(0x1ca)==_0x100dc3&&_0x786065[_0xed8da7(0x1f5)](_0xed8da7(0x1f0)),_0xed8da7(0x1c5)==_0x100dc3&&_0x786065[_0xed8da7(0x1f5)](_0xed8da7(0x1c2),_0xed8da7(0x1de)),_0xed8da7(0x1f7)==_0x100dc3&&_0x786065[_0xed8da7(0x1f5)](_0xed8da7(0x1bb)),_0xed8da7(0x1f8)==_0x100dc3&&_0x786065[_0xed8da7(0x1f5)](_0xed8da7(0x1ea)),_0xed8da7(0x1e6)==_0x100dc3&&_0x786065[_0xed8da7(0x1f5)](_0xed8da7(0x1f3));},0x3e8);}[_0x4d759e(0x1ba)](){const _0x4c4ca9=_0x4d759e,{editor:_0x143da4}=this,_0xbc62dd=_0x143da4[_0x4c4ca9(0x1dc)][_0x4c4ca9(0x1f2)](_0x4c4ca9(0x1b9));if(!_0xbc62dd)return;const _0x3b45da=this[_0x4c4ca9(0x1bc)](_0x143da4[_0x4c4ca9(0x1f9)][_0x4c4ca9(0x1f2)](_0x4c4ca9(0x1fb)))[_0x4c4ca9(0x1cc)]((_0x1d3c4b,_0x18c94c)=>{const _0x4788c1=_0x4c4ca9,_0x206552=this[_0x4788c1(0x1c7)](_0x18c94c[_0x4788c1(0x1d5)]);return _0x1d3c4b[_0x206552]||(_0x1d3c4b[_0x206552]=[]),_0x1d3c4b[_0x206552][_0x4788c1(0x1bf)](_0x18c94c),_0x1d3c4b;},{});_0x143da4[_0x4c4ca9(0x1c0)][_0x4c4ca9(0x1be)](_0x4c4ca9(0x1c1))&&_0x143da4[_0x4c4ca9(0x1dc)][_0x4c4ca9(0x1f2)](_0x4c4ca9(0x1b9))&&Object[_0x4c4ca9(0x1d9)](_0x3b45da)[_0x4c4ca9(0x1e8)](([_0xa5214a,_0x4105b7])=>{const _0x4811b8=_0x4c4ca9;_0x143da4[_0x4811b8(0x1c0)][_0x4811b8(0x1f2)](_0x4811b8(0x1c1))[_0x4811b8(0x1d7)]({'name':_0xa5214a,'observable':()=>_0xbc62dd,'buttonViewCreator':()=>this[_0x4811b8(0x1ed)](_0x4105b7),'formViewCreator':()=>this[_0x4811b8(0x200)](_0x4105b7),'menuBarButtonViewCreator':()=>this[_0x4811b8(0x1d1)](_0x4105b7),'override':_0x4811b8(0x206)!==_0xa5214a});});}[_0x4d759e(0x205)](){const _0x244ff3=_0x4d759e;super[_0x244ff3(0x205)](),this[_0x244ff3(0x1e2)]&&clearInterval(this[_0x244ff3(0x1e2)]);}[_0x4d759e(0x1bc)](_0x3e9913){const _0x17a94c=_0x4d759e,{locale:_0x3d7c12}=this[_0x17a94c(0x1cb)];return _0x3e9913[_0x17a94c(0x203)](_0x12518c=>{const _0x2cd957=_0x17a94c,_0x3a1049=_0x5e82fe(_0x3d7c12,_0x12518c,_0x2cd957(0x1fd));switch(_0x12518c){case _0x821569[_0x2cd957(0x204)]:return{'icon':_0x202dff,'type':_0x821569[_0x2cd957(0x204)],..._0x3a1049};case _0x821569[_0x2cd957(0x1eb)]:return{'icon':_0x4e0b40,'type':_0x821569[_0x2cd957(0x1eb)],..._0x3a1049};case _0x821569[_0x2cd957(0x1e5)]:return{'icon':_0x335e43,'type':_0x821569[_0x2cd957(0x1e5)],..._0x3a1049};case _0x821569[_0x2cd957(0x1fc)]:return{'icon':_0x3485ff,'type':_0x821569[_0x2cd957(0x1fc)],..._0x3a1049};case _0x821569[_0x2cd957(0x1ce)]:return{'icon':_0x52a2cd,'type':_0x821569[_0x2cd957(0x1ce)],..._0x3a1049};case _0x821569[_0x2cd957(0x1d4)]:return{'icon':_0x3051cd,'type':_0x821569[_0x2cd957(0x1d4)],..._0x3a1049};case _0x821569[_0x2cd957(0x1cf)]:return{'icon':_0x27d120,'type':_0x821569[_0x2cd957(0x1cf)],..._0x3a1049};}});}[_0x4d759e(0x1c7)](_0x3b7f4c){const _0x270460=_0x4d759e;switch(_0x3b7f4c){case _0x821569[_0x270460(0x204)]:return _0x270460(0x1c8);case _0x821569[_0x270460(0x1eb)]:return _0x270460(0x1f4);default:return _0x270460(0x206);}}[_0x4d759e(0x1df)](_0x27e77c,_0x2dc4ab){const _0x55319e=_0x4d759e,_0xbfb670=this[_0x55319e(0x1cb)],_0x40039d=new _0x27e77c(_0xbfb670[_0x55319e(0x1ec)]),_0xe63475=_0xbfb670[_0x55319e(0x1dc)][_0x55319e(0x1f2)](_0x55319e(0x1b9));return _0x40039d[_0x55319e(0x1e4)](_0x55319e(0x1cd))['to'](_0xe63475),_0x40039d['on'](_0x55319e(0x1d2),()=>{const _0x472783=_0x55319e;_0xe63475[_0x472783(0x1d2)](_0x2dc4ab);}),_0x40039d;}[_0x4d759e(0x1ed)](_0x12921f){const _0x7e4eb8=_0x4d759e,{locale:_0x4e84ca}=this[_0x7e4eb8(0x1cb)],_0x1fef9=this[_0x7e4eb8(0x1cb)][_0x7e4eb8(0x1c0)][_0x7e4eb8(0x1f2)](_0x7e4eb8(0x1c1)),_0x1ed5ba=_0x12921f[0x0],_0x468231=this[_0x7e4eb8(0x1df)](_0x21a4e4,_0x1ed5ba[_0x7e4eb8(0x1d5)]);return _0x468231[_0x7e4eb8(0x202)]=_0x1ed5ba[_0x7e4eb8(0x202)],_0x468231[_0x7e4eb8(0x1e4)](_0x7e4eb8(0x1e9))['to'](_0x1fef9,_0x7e4eb8(0x1f6),_0x1bf6b8=>_0x5e82fe(_0x4e84ca,_0x1ed5ba[_0x7e4eb8(0x1d5)],_0x1bf6b8?_0x7e4eb8(0x1ff):_0x7e4eb8(0x1fd))[_0x7e4eb8(0x1f1)]),_0x468231[_0x7e4eb8(0x1c9)]=!0x0,_0x468231;}[_0x4d759e(0x200)](_0x40191a){const _0x389de3=_0x4d759e,{locale:_0x33b3cf}=this[_0x389de3(0x1cb)],_0xc93902=this[_0x389de3(0x1cb)][_0x389de3(0x1c0)][_0x389de3(0x1f2)](_0x389de3(0x1c1));return _0x40191a[_0x389de3(0x203)](_0x432849=>{const _0x1e1478=_0x389de3,_0x1748ba=this[_0x1e1478(0x1df)](_0x21a4e4,_0x432849[_0x1e1478(0x1d5)]);return _0x1748ba[_0x1e1478(0x1d6)]=!0x0,_0x1748ba[_0x1e1478(0x202)]=_0x432849[_0x1e1478(0x202)],_0x1748ba[_0x1e1478(0x1e4)](_0x1e1478(0x1e9))['to'](_0xc93902,_0x1e1478(0x1f6),_0x3436fd=>_0x5e82fe(_0x33b3cf,_0x432849[_0x1e1478(0x1d5)],_0x3436fd?_0x1e1478(0x1ff):_0x1e1478(0x1fd))[_0x1e1478(0x1f1)]),_0x1748ba;});}[_0x4d759e(0x1d1)](_0x5bca04){const _0x312587=_0x4d759e;return _0x5bca04[_0x312587(0x203)](_0x394367=>{const _0x4a3a7a=_0x312587,_0x3ece85=this[_0x4a3a7a(0x1df)](_0x12654b,_0x394367[_0x4a3a7a(0x1d5)]);return _0x3ece85[_0x4a3a7a(0x202)]=_0x394367[_0x4a3a7a(0x202)],_0x3ece85[_0x4a3a7a(0x1e9)]=_0x394367[_0x4a3a7a(0x1ef)],_0x3ece85;});}}
23
+ const _0x37358b=_0x5c02;(function(_0x412887,_0x27b8bf){const _0x3a1988=_0x5c02,_0x38dc8b=_0x412887();while(!![]){try{const _0x20c086=parseInt(_0x3a1988(0x1f4))/0x1*(parseInt(_0x3a1988(0x1b9))/0x2)+parseInt(_0x3a1988(0x1ce))/0x3*(-parseInt(_0x3a1988(0x1c9))/0x4)+parseInt(_0x3a1988(0x1b8))/0x5+parseInt(_0x3a1988(0x1f7))/0x6*(parseInt(_0x3a1988(0x1bd))/0x7)+-parseInt(_0x3a1988(0x1d1))/0x8+parseInt(_0x3a1988(0x1f0))/0x9*(-parseInt(_0x3a1988(0x1be))/0xa)+parseInt(_0x3a1988(0x1c1))/0xb;if(_0x20c086===_0x27b8bf)break;else _0x38dc8b['push'](_0x38dc8b['shift']());}catch(_0x4d28ec){_0x38dc8b['push'](_0x38dc8b['shift']());}}}(_0x157a,0x4e060));import{Plugin as _0x2aaa9f}from'ckeditor5/src/core.js';import{IconDropbox as _0x5d82fc,IconFacebook as _0x1e5c04,IconGoogleDrive as _0xdb3dda,IconGooglePhotos as _0x4a3c0e,IconUploadcareImageUpload as _0x265fcb,IconUploadcareLink as _0xa50ea9,IconOneDrive as _0x5c8651}from'ckeditor5/src/icons.js';function _0x5c02(_0x41aec7,_0x829709){const _0x157a21=_0x157a();return _0x5c02=function(_0x5c02e5,_0x2ff1b4){_0x5c02e5=_0x5c02e5-0x1ac;let _0x60c7f8=_0x157a21[_0x5c02e5];return _0x60c7f8;},_0x5c02(_0x41aec7,_0x829709);}import{ButtonView as _0x4d36b2,MenuBarMenuListItemButtonView as _0x6a7eee}from'ckeditor5/src/ui.js';import{UploadcareSource as _0xf8c5fd}from'./uploadcareconfig.js';import{getTranslation as _0x31c62f}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';import'../theme/uploadcareimageedit.css';function _0x157a(){const _0x3b16b2=['expired','icon','19077RaoYSK','locale','uploadcareLicenseKeyInvalid','4141760HFgOWq','_showLicenseError','withText','type','upload','reduce','uploadcareLicenseKeyEvaluationLimit','GPhotos','assetManager','registerIntegration','text','shortText','domainLimit','has','Replace','ImageInsertUI','push','URL','invalid','url','uploadcareLicenseKeyExpired','uploadcareLicenseKeyTrialLimit','init','_getIntegrationKey','tooltip','bind','Dropbox','_createMenuBarButtons','destroy','Local','map','9RTRoAW','_createDropdownButtons','Insert','config','1bqbWyF','entries','GDrive','930lzcwCi','uploadcareLicenseKeyDomainLimit','uploadcareLicenseKeyNotAllowed','pluginName','UploadcareUI','Uploadcare','uploadcareLicenseKeyUsageLimit','execute','forEach','_createButton','plugins','usageLimit','OneDrive','afterInit','_createToolbarButton','editor','featureNotAllowed','isOfficialPlugin','evaluationLimit','453565uGeZqE','125418aOjIHE','uploadcare.uploader.sourceList','commands','get','28357xhmkdP','2394460WHZUqm','trialLimit','label','3389551FBhlVK','isEnabled','isImageSelected','isPremiumPlugin','_licenseKeyCheckInterval','Facebook','uploadcare','licenseKey','8vGhlhf','uploadcareLicenseKeyValid','_normalizeConfigSourceList'];_0x157a=function(){return _0x3b16b2;};return _0x157a();}export class UploadcareUI extends _0x2aaa9f{[_0x37358b(0x1c8)];[_0x37358b(0x1c5)];static get[_0x37358b(0x1fa)](){const _0x4b21be=_0x37358b;return _0x4b21be(0x1fb);}static get[_0x37358b(0x1b6)](){return!0x0;}static get[_0x37358b(0x1c4)](){return!0x0;}[_0x37358b(0x1e7)](){const _0x306ba0=_0x37358b;this[_0x306ba0(0x1c8)]=this[_0x306ba0(0x1b4)][_0x306ba0(0x1f3)][_0x306ba0(0x1bc)](_0x306ba0(0x1c8));const _0x3a740f=this[_0x306ba0(0x1b4)];this[_0x306ba0(0x1c5)]=setInterval(()=>{const _0x4419a8=_0x306ba0;let _0x324f34;for(const _0x5c5060 in _0x3a740f){const _0x3ad16e=_0x5c5060,_0xd5d710=_0x3a740f[_0x3ad16e];if(_0x4419a8(0x1ca)==_0xd5d710||_0x4419a8(0x1d0)==_0xd5d710||_0x4419a8(0x1e5)==_0xd5d710||_0x4419a8(0x1f8)==_0xd5d710||_0x4419a8(0x1f9)==_0xd5d710||_0x4419a8(0x1d7)==_0xd5d710||_0x4419a8(0x1e6)==_0xd5d710||_0x4419a8(0x1fd)==_0xd5d710){delete _0x3a740f[_0x3ad16e],_0x324f34=_0xd5d710,clearInterval(this[_0x4419a8(0x1c5)]),this[_0x4419a8(0x1c5)]=void 0x0;break;}}_0x4419a8(0x1d0)==_0x324f34&&_0x3a740f[_0x4419a8(0x1d2)](_0x4419a8(0x1e3)),_0x4419a8(0x1e5)==_0x324f34&&_0x3a740f[_0x4419a8(0x1d2)](_0x4419a8(0x1cc)),_0x4419a8(0x1f8)==_0x324f34&&_0x3a740f[_0x4419a8(0x1d2)](_0x4419a8(0x1dd)),_0x4419a8(0x1f9)==_0x324f34&&_0x3a740f[_0x4419a8(0x1d2)](_0x4419a8(0x1b5),_0x4419a8(0x1fc)),_0x4419a8(0x1d7)==_0x324f34&&_0x3a740f[_0x4419a8(0x1d2)](_0x4419a8(0x1b7)),_0x4419a8(0x1e6)==_0x324f34&&_0x3a740f[_0x4419a8(0x1d2)](_0x4419a8(0x1bf)),_0x4419a8(0x1fd)==_0x324f34&&_0x3a740f[_0x4419a8(0x1d2)](_0x4419a8(0x1b0));},0x3e8);}[_0x37358b(0x1b2)](){const _0x224be4=_0x37358b,{editor:_0xde55e1}=this,_0x1a233e=_0xde55e1[_0x224be4(0x1bb)][_0x224be4(0x1bc)](_0x224be4(0x1c7));if(!_0x1a233e)return;const _0x134a2d=this[_0x224be4(0x1cb)](_0xde55e1[_0x224be4(0x1f3)][_0x224be4(0x1bc)](_0x224be4(0x1ba)))[_0x224be4(0x1d6)]((_0x392112,_0x137d34)=>{const _0x16b411=_0x224be4,_0xa12b54=this[_0x16b411(0x1e8)](_0x137d34[_0x16b411(0x1d4)]);return _0x392112[_0xa12b54]||(_0x392112[_0xa12b54]=[]),_0x392112[_0xa12b54][_0x16b411(0x1e1)](_0x137d34),_0x392112;},{});_0xde55e1[_0x224be4(0x1af)][_0x224be4(0x1de)](_0x224be4(0x1e0))&&_0xde55e1[_0x224be4(0x1bb)][_0x224be4(0x1bc)](_0x224be4(0x1c7))&&Object[_0x224be4(0x1f5)](_0x134a2d)[_0x224be4(0x1ad)](([_0x26a31b,_0x268a06])=>{const _0x36d5f0=_0x224be4;_0xde55e1[_0x36d5f0(0x1af)][_0x36d5f0(0x1bc)](_0x36d5f0(0x1e0))[_0x36d5f0(0x1da)]({'name':_0x26a31b,'observable':()=>_0x1a233e,'buttonViewCreator':()=>this[_0x36d5f0(0x1b3)](_0x268a06),'formViewCreator':()=>this[_0x36d5f0(0x1f1)](_0x268a06),'menuBarButtonViewCreator':()=>this[_0x36d5f0(0x1ec)](_0x268a06),'override':_0x36d5f0(0x1d9)!==_0x26a31b});});}[_0x37358b(0x1ed)](){const _0x2f0923=_0x37358b;super[_0x2f0923(0x1ed)](),this[_0x2f0923(0x1c5)]&&clearInterval(this[_0x2f0923(0x1c5)]);}[_0x37358b(0x1cb)](_0x161882){const _0x2ffd82=_0x37358b,{locale:_0x3c1a8e}=this[_0x2ffd82(0x1b4)];return _0x161882[_0x2ffd82(0x1ef)](_0x2b3a04=>{const _0x2d07ee=_0x2ffd82,_0x4f07bf=_0x31c62f(_0x3c1a8e,_0x2b3a04,_0x2d07ee(0x1f2));switch(_0x2b3a04){case _0xf8c5fd[_0x2d07ee(0x1ee)]:return{'icon':_0x265fcb,'type':_0xf8c5fd[_0x2d07ee(0x1ee)],..._0x4f07bf};case _0xf8c5fd[_0x2d07ee(0x1e2)]:return{'icon':_0xa50ea9,'type':_0xf8c5fd[_0x2d07ee(0x1e2)],..._0x4f07bf};case _0xf8c5fd[_0x2d07ee(0x1eb)]:return{'icon':_0x5d82fc,'type':_0xf8c5fd[_0x2d07ee(0x1eb)],..._0x4f07bf};case _0xf8c5fd[_0x2d07ee(0x1c6)]:return{'icon':_0x1e5c04,'type':_0xf8c5fd[_0x2d07ee(0x1c6)],..._0x4f07bf};case _0xf8c5fd[_0x2d07ee(0x1f6)]:return{'icon':_0xdb3dda,'type':_0xf8c5fd[_0x2d07ee(0x1f6)],..._0x4f07bf};case _0xf8c5fd[_0x2d07ee(0x1d8)]:return{'icon':_0x4a3c0e,'type':_0xf8c5fd[_0x2d07ee(0x1d8)],..._0x4f07bf};case _0xf8c5fd[_0x2d07ee(0x1b1)]:return{'icon':_0x5c8651,'type':_0xf8c5fd[_0x2d07ee(0x1b1)],..._0x4f07bf};}});}[_0x37358b(0x1e8)](_0x2e0557){const _0x492a85=_0x37358b;switch(_0x2e0557){case _0xf8c5fd[_0x492a85(0x1ee)]:return _0x492a85(0x1d5);case _0xf8c5fd[_0x492a85(0x1e2)]:return _0x492a85(0x1e4);default:return _0x492a85(0x1d9);}}[_0x37358b(0x1ae)](_0x3bb4ec,_0x37b1d5){const _0x22cd85=_0x37358b,_0x6114a=this[_0x22cd85(0x1b4)],_0x3cdd34=new _0x3bb4ec(_0x6114a[_0x22cd85(0x1cf)]),_0x50bb89=_0x6114a[_0x22cd85(0x1bb)][_0x22cd85(0x1bc)](_0x22cd85(0x1c7));return _0x3cdd34[_0x22cd85(0x1ea)](_0x22cd85(0x1c2))['to'](_0x50bb89),_0x3cdd34['on'](_0x22cd85(0x1ac),()=>{const _0x17e8f0=_0x22cd85;_0x50bb89[_0x17e8f0(0x1ac)](_0x37b1d5);}),_0x3cdd34;}[_0x37358b(0x1b3)](_0x3958ec){const _0x381d9b=_0x37358b,{locale:_0x1b35d5}=this[_0x381d9b(0x1b4)],_0x3f6405=this[_0x381d9b(0x1b4)][_0x381d9b(0x1af)][_0x381d9b(0x1bc)](_0x381d9b(0x1e0)),_0x27f2b6=_0x3958ec[0x0],_0x303a8c=this[_0x381d9b(0x1ae)](_0x4d36b2,_0x27f2b6[_0x381d9b(0x1d4)]);return _0x303a8c[_0x381d9b(0x1cd)]=_0x27f2b6[_0x381d9b(0x1cd)],_0x303a8c[_0x381d9b(0x1ea)](_0x381d9b(0x1c0))['to'](_0x3f6405,_0x381d9b(0x1c3),_0x376adf=>_0x31c62f(_0x1b35d5,_0x27f2b6[_0x381d9b(0x1d4)],_0x376adf?_0x381d9b(0x1df):_0x381d9b(0x1f2))[_0x381d9b(0x1db)]),_0x303a8c[_0x381d9b(0x1e9)]=!0x0,_0x303a8c;}[_0x37358b(0x1f1)](_0x3dfc2e){const _0x1fab6a=_0x37358b,{locale:_0x2b3366}=this[_0x1fab6a(0x1b4)],_0x544186=this[_0x1fab6a(0x1b4)][_0x1fab6a(0x1af)][_0x1fab6a(0x1bc)](_0x1fab6a(0x1e0));return _0x3dfc2e[_0x1fab6a(0x1ef)](_0x35475e=>{const _0x5d86e2=_0x1fab6a,_0x136b0e=this[_0x5d86e2(0x1ae)](_0x4d36b2,_0x35475e[_0x5d86e2(0x1d4)]);return _0x136b0e[_0x5d86e2(0x1d3)]=!0x0,_0x136b0e[_0x5d86e2(0x1cd)]=_0x35475e[_0x5d86e2(0x1cd)],_0x136b0e[_0x5d86e2(0x1ea)](_0x5d86e2(0x1c0))['to'](_0x544186,_0x5d86e2(0x1c3),_0x1db330=>_0x31c62f(_0x2b3366,_0x35475e[_0x5d86e2(0x1d4)],_0x1db330?_0x5d86e2(0x1df):_0x5d86e2(0x1f2))[_0x5d86e2(0x1db)]),_0x136b0e;});}[_0x37358b(0x1ec)](_0x2f95f9){const _0x27a2fa=_0x37358b;return _0x2f95f9[_0x27a2fa(0x1ef)](_0x105ccf=>{const _0x44dc01=_0x27a2fa,_0x10c056=this[_0x44dc01(0x1ae)](_0x6a7eee,_0x105ccf[_0x44dc01(0x1d4)]);return _0x10c056[_0x44dc01(0x1cd)]=_0x105ccf[_0x44dc01(0x1cd)],_0x10c056[_0x44dc01(0x1c0)]=_0x105ccf[_0x44dc01(0x1dc)],_0x10c056;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0xbfea1a}from'ckeditor5/src/core.js';import{FileRepository as _0x25352a}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x5120ea}from'./uploadcareediting.js';import{UploadUtils as _0x169b9f}from'./utils/uploadutils.js';import{getImageUrls as _0x43c49c}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0xbfea1a{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x25352a,_0x5120ea];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x5c51fa=this['editor'];if(!!!_0x5c51fa['config']['get']('uploadcare'))return;_0x5c51fa['plugins']['get'](_0x25352a)['createUploadAdapter']=_0xe8ce2e=>new A(_0xe8ce2e,_0x5c51fa),_0x5c51fa['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x68430b,{imageElement:_0xeee15d,data:_0x491cc8})=>{_0x5c51fa['model']['change'](_0x39730e=>{_0x39730e['setAttribute']('uploadcareImageId',_0x491cc8['uploadcareImageId'],_0xeee15d);});});}}class A{['loader'];['editor'];['controller'];constructor(_0xe97ba7,_0x259ad6){this['loader']=_0xe97ba7,this['editor']=_0x259ad6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1bc334=this['editor']['config']['get']('uploadcare.pubkey'),_0x279bd0=await this['loader']['file'];return _0x169b9f['upload']({'file':_0x279bd0,'publicKey':_0x1bc334,'signal':this['controller']['signal'],'onProgress':_0x5e6aad=>{_0x5e6aad&&_0x5e6aad['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5e6aad['value']);}})['then'](async _0x3562db=>{const {imageFallbackUrl:_0x205d80,imageSources:_0x4f3e49}=_0x43c49c(_0x3562db['cdnUrl'],_0x3562db['imageInfo']['width']);return{'uploadcareImageId':_0x3562db['uuid'],'default':_0x205d80,'sources':_0x4f3e49};})['catch'](()=>{const _0x4070d1=t('Cannot\x20upload\x20file:')+('\x20'+_0x279bd0['name']+'.');return Promise['reject'](_0x4070d1);});}['abort'](){this['controller']['abort']();}}
23
+ import{Plugin as _0xb661b3}from'ckeditor5/src/core.js';import{FileRepository as _0x21ed56}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x285c44}from'./uploadcareediting.js';import{UploadUtils as _0x37e563}from'./utils/uploadutils.js';import{getImageUrls as _0x568ca5}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0xb661b3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x21ed56,_0x285c44];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x304352=this['editor'];if(!!!_0x304352['config']['get']('uploadcare'))return;_0x304352['plugins']['get'](_0x21ed56)['createUploadAdapter']=_0x51ef2c=>new A(_0x51ef2c,_0x304352),_0x304352['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x3a957d,{imageElement:_0x5cafaf,data:_0x56dea7})=>{_0x304352['model']['change'](_0x96ad1a=>{_0x96ad1a['setAttribute']('uploadcareImageId',_0x56dea7['uploadcareImageId'],_0x5cafaf);});});}}class A{['loader'];['editor'];['controller'];constructor(_0x835d79,_0x2e5ae0){this['loader']=_0x835d79,this['editor']=_0x2e5ae0,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x1d3e31=this['editor']['config']['get']('uploadcare.pubkey'),_0x328af7=await this['loader']['file'];return _0x37e563['upload']({'file':_0x328af7,'publicKey':_0x1d3e31,'signal':this['controller']['signal'],'onProgress':_0x5cdb2d=>{_0x5cdb2d&&_0x5cdb2d['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5cdb2d['value']);}})['then'](async _0x1cc2de=>{const {imageFallbackUrl:_0x27cd8f,imageSources:_0xe69547}=_0x568ca5(_0x1cc2de['cdnUrl'],_0x1cc2de['imageInfo']['width']);return{'uploadcareImageId':_0x1cc2de['uuid'],'default':_0x27cd8f,'sources':_0xe69547};})['catch'](()=>{const _0x10f977=t('Cannot\x20upload\x20file:')+('\x20'+_0x328af7['name']+'.');return Promise['reject'](_0x10f977);});}['abort'](){this['controller']['abort']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{UploadcareSource as _0x529de0}from'../uploadcareconfig.js';export function getTranslation(_0x3a492b,_0x13fd96,_0x57a557){const t=_0x3a492b['t'],_0x9a3f6d=_0x3a492b['t'];switch(_0x13fd96){case _0x529de0['Local']:return{'text':_0x9a3f6d('Insert'===_0x57a557?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x9a3f6d('From\x20computer')};case _0x529de0['URL']:return{'text':'Insert'===_0x57a557?_0x9a3f6d('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x9a3f6d('Via\x20URL')};case _0x529de0['Dropbox']:return{'text':t('Insert'===_0x57a557?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x529de0['Facebook']:return{'text':t('Insert'===_0x57a557?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x529de0['GDrive']:return{'text':t('Insert'===_0x57a557?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x529de0['GPhotos']:return{'text':t('Insert'===_0x57a557?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x529de0['OneDrive']:return{'text':t('Insert'===_0x57a557?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x13fd96;}}
23
+ import{UploadcareSource as _0x474ac6}from'../uploadcareconfig.js';export function getTranslation(_0x13e348,_0x497327,_0x1e0c18){const t=_0x13e348['t'],_0x272e65=_0x13e348['t'];switch(_0x497327){case _0x474ac6['Local']:return{'text':_0x272e65('Insert'===_0x1e0c18?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x272e65('From\x20computer')};case _0x474ac6['URL']:return{'text':'Insert'===_0x1e0c18?_0x272e65('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x272e65('Via\x20URL')};case _0x474ac6['Dropbox']:return{'text':t('Insert'===_0x1e0c18?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x474ac6['Facebook']:return{'text':t('Insert'===_0x1e0c18?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x474ac6['GDrive']:return{'text':t('Insert'===_0x1e0c18?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x474ac6['GPhotos']:return{'text':t('Insert'===_0x1e0c18?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x474ac6['OneDrive']:return{'text':t('Insert'===_0x1e0c18?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x497327;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4189(){var _0x189f3e=['3123558sFOhTK','focusCycler','div','focusTracker','3438232ZbNAeN','1061538QEgysO','10DprDZL','3594402tZfFvC','10937490RmEkOL','bindTemplate','2gmBEcn','1315887PAiEvr','867071TKpYFK','createCollection','getFocusableElement','fire','forwardCycle','8uymZCt','true'];_0x4189=function(){return _0x189f3e;};return _0x4189();}function _0x4fcb(_0x107c19,_0x34bb91){var _0x41895e=_0x4189();return _0x4fcb=function(_0x4fcbd8,_0x197628){_0x4fcbd8=_0x4fcbd8-0x153;var _0xdce977=_0x41895e[_0x4fcbd8];return _0xdce977;},_0x4fcb(_0x107c19,_0x34bb91);}var _0xa2e0e3=_0x4fcb;(function(_0x9c7eb9,_0x41cfeb){var _0x3a0bc8=_0x4fcb,_0xb919bb=_0x9c7eb9();while(!![]){try{var _0x2de606=parseInt(_0x3a0bc8(0x15d))/0x1*(parseInt(_0x3a0bc8(0x15b))/0x2)+parseInt(_0x3a0bc8(0x15c))/0x3+-parseInt(_0x3a0bc8(0x155))/0x4+-parseInt(_0x3a0bc8(0x157))/0x5*(-parseInt(_0x3a0bc8(0x156))/0x6)+parseInt(_0x3a0bc8(0x158))/0x7+parseInt(_0x3a0bc8(0x162))/0x8*(parseInt(_0x3a0bc8(0x164))/0x9)+-parseInt(_0x3a0bc8(0x159))/0xa;if(_0x2de606===_0x41cfeb)break;else _0xb919bb['push'](_0xb919bb['shift']());}catch(_0x239134){_0xb919bb['push'](_0xb919bb['shift']());}}}(_0x4189,0x8a603));import{FocusTracker as _0x564916}from'ckeditor5/src/utils.js';import{View as _0x46464f,FocusCycler as _0x4e7030}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x46464f{[_0xa2e0e3(0x154)];[_0xa2e0e3(0x165)];constructor(_0x970d62){var _0x9e903f=_0xa2e0e3;super(_0x970d62),this[_0x9e903f(0x154)]=new _0x564916(),this[_0x9e903f(0x165)]=new _0x4e7030({'focusables':this[_0x9e903f(0x15e)](),'focusTracker':this[_0x9e903f(0x154)]});}[_0xa2e0e3(0x15f)](){var _0x5db4b5=_0xa2e0e3;return{'tag':_0x5db4b5(0x153),'attributes':{'aria-hidden':_0x5db4b5(0x163),'tabindex':'0'},'on':{'focus':this[_0x5db4b5(0x15a)]['to'](()=>{var _0x1a7acc=_0x5db4b5;this[_0x1a7acc(0x165)][_0x1a7acc(0x160)](_0x1a7acc(0x161));})}};}}
23
+ var _0x549360=_0x7f56;(function(_0x360671,_0x5d3926){var _0x5b00d3=_0x7f56,_0x2f1eae=_0x360671();while(!![]){try{var _0x38a9c1=-parseInt(_0x5b00d3(0x191))/0x1*(parseInt(_0x5b00d3(0x185))/0x2)+parseInt(_0x5b00d3(0x186))/0x3+-parseInt(_0x5b00d3(0x18b))/0x4*(parseInt(_0x5b00d3(0x195))/0x5)+parseInt(_0x5b00d3(0x18d))/0x6*(-parseInt(_0x5b00d3(0x194))/0x7)+parseInt(_0x5b00d3(0x193))/0x8+parseInt(_0x5b00d3(0x18a))/0x9+parseInt(_0x5b00d3(0x188))/0xa;if(_0x38a9c1===_0x5d3926)break;else _0x2f1eae['push'](_0x2f1eae['shift']());}catch(_0x595d16){_0x2f1eae['push'](_0x2f1eae['shift']());}}}(_0x5ef7,0x63e04));import{FocusTracker as _0x554986}from'ckeditor5/src/utils.js';function _0x7f56(_0x52f291,_0x1c28e0){var _0x5ef787=_0x5ef7();return _0x7f56=function(_0x7f56e8,_0x651446){_0x7f56e8=_0x7f56e8-0x184;var _0x22c63a=_0x5ef787[_0x7f56e8];return _0x22c63a;},_0x7f56(_0x52f291,_0x1c28e0);}import{View as _0x3b69aa,FocusCycler as _0x2dce00}from'ckeditor5/src/ui.js';function _0x5ef7(){var _0x55f933=['30647jAKBtX','bindTemplate','634168SurCad','41482tugksA','712930SlblXt','true','fire','8FTfZXd','697308uEqrjJ','focusCycler','8399250puORQp','createCollection','1370142lBfnHN','20fGHmSQ','focusTracker','60NmnBwN','div','forwardCycle','getFocusableElement'];_0x5ef7=function(){return _0x55f933;};return _0x5ef7();}import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x3b69aa{[_0x549360(0x18c)];[_0x549360(0x187)];constructor(_0x4ff550){var _0x267f10=_0x549360;super(_0x4ff550),this[_0x267f10(0x18c)]=new _0x554986(),this[_0x267f10(0x187)]=new _0x2dce00({'focusables':this[_0x267f10(0x189)](),'focusTracker':this[_0x267f10(0x18c)]});}[_0x549360(0x190)](){var _0x24ffce=_0x549360;return{'tag':_0x24ffce(0x18e),'attributes':{'aria-hidden':_0x24ffce(0x196),'tabindex':'0'},'on':{'focus':this[_0x24ffce(0x192)]['to'](()=>{var _0x3d86b9=_0x24ffce;this[_0x3d86b9(0x187)][_0x3d86b9(0x184)](_0x3d86b9(0x18f));})}};}}