@ckeditor/ckeditor5-uploadcare 0.0.0-nightly-20251207.0 → 0.0.0-nightly-20251209.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/LICENSE.md +1 -1
  2. package/build/uploadcare.js +2 -2
  3. package/dist/index-editor.css +2 -4
  4. package/dist/index.css +50 -2
  5. package/dist/index.js +3 -3
  6. package/dist/translations/af.js +1 -1
  7. package/dist/translations/af.umd.js +1 -1
  8. package/dist/translations/ar.js +1 -1
  9. package/dist/translations/ar.umd.js +1 -1
  10. package/dist/translations/ast.js +1 -1
  11. package/dist/translations/ast.umd.js +1 -1
  12. package/dist/translations/az.js +1 -1
  13. package/dist/translations/az.umd.js +1 -1
  14. package/dist/translations/be.js +1 -1
  15. package/dist/translations/be.umd.js +1 -1
  16. package/dist/translations/bg.js +1 -1
  17. package/dist/translations/bg.umd.js +1 -1
  18. package/dist/translations/bn.js +1 -1
  19. package/dist/translations/bn.umd.js +1 -1
  20. package/dist/translations/bs.js +1 -1
  21. package/dist/translations/bs.umd.js +1 -1
  22. package/dist/translations/ca.js +1 -1
  23. package/dist/translations/ca.umd.js +1 -1
  24. package/dist/translations/cs.js +1 -1
  25. package/dist/translations/cs.umd.js +1 -1
  26. package/dist/translations/da.js +1 -1
  27. package/dist/translations/da.umd.js +1 -1
  28. package/dist/translations/de-ch.js +1 -1
  29. package/dist/translations/de-ch.umd.js +1 -1
  30. package/dist/translations/de.js +1 -1
  31. package/dist/translations/de.umd.js +1 -1
  32. package/dist/translations/el.js +1 -1
  33. package/dist/translations/el.umd.js +1 -1
  34. package/dist/translations/en-au.js +1 -1
  35. package/dist/translations/en-au.umd.js +1 -1
  36. package/dist/translations/en-gb.js +1 -1
  37. package/dist/translations/en-gb.umd.js +1 -1
  38. package/dist/translations/en.js +1 -1
  39. package/dist/translations/en.umd.js +1 -1
  40. package/dist/translations/eo.js +1 -1
  41. package/dist/translations/eo.umd.js +1 -1
  42. package/dist/translations/es-co.js +1 -1
  43. package/dist/translations/es-co.umd.js +1 -1
  44. package/dist/translations/es.js +1 -1
  45. package/dist/translations/es.umd.js +1 -1
  46. package/dist/translations/et.js +1 -1
  47. package/dist/translations/et.umd.js +1 -1
  48. package/dist/translations/eu.js +1 -1
  49. package/dist/translations/eu.umd.js +1 -1
  50. package/dist/translations/fa.js +1 -1
  51. package/dist/translations/fa.umd.js +1 -1
  52. package/dist/translations/fi.js +1 -1
  53. package/dist/translations/fi.umd.js +1 -1
  54. package/dist/translations/fr.js +1 -1
  55. package/dist/translations/fr.umd.js +1 -1
  56. package/dist/translations/gl.js +1 -1
  57. package/dist/translations/gl.umd.js +1 -1
  58. package/dist/translations/gu.js +1 -1
  59. package/dist/translations/gu.umd.js +1 -1
  60. package/dist/translations/he.js +1 -1
  61. package/dist/translations/he.umd.js +1 -1
  62. package/dist/translations/hi.js +1 -1
  63. package/dist/translations/hi.umd.js +1 -1
  64. package/dist/translations/hr.js +1 -1
  65. package/dist/translations/hr.umd.js +1 -1
  66. package/dist/translations/hu.js +1 -1
  67. package/dist/translations/hu.umd.js +1 -1
  68. package/dist/translations/hy.js +1 -1
  69. package/dist/translations/hy.umd.js +1 -1
  70. package/dist/translations/id.js +1 -1
  71. package/dist/translations/id.umd.js +1 -1
  72. package/dist/translations/it.js +1 -1
  73. package/dist/translations/it.umd.js +1 -1
  74. package/dist/translations/ja.js +1 -1
  75. package/dist/translations/ja.umd.js +1 -1
  76. package/dist/translations/jv.js +1 -1
  77. package/dist/translations/jv.umd.js +1 -1
  78. package/dist/translations/kk.js +1 -1
  79. package/dist/translations/kk.umd.js +1 -1
  80. package/dist/translations/km.js +1 -1
  81. package/dist/translations/km.umd.js +1 -1
  82. package/dist/translations/kn.js +1 -1
  83. package/dist/translations/kn.umd.js +1 -1
  84. package/dist/translations/ko.js +1 -1
  85. package/dist/translations/ko.umd.js +1 -1
  86. package/dist/translations/ku.js +1 -1
  87. package/dist/translations/ku.umd.js +1 -1
  88. package/dist/translations/lt.js +1 -1
  89. package/dist/translations/lt.umd.js +1 -1
  90. package/dist/translations/lv.js +1 -1
  91. package/dist/translations/lv.umd.js +1 -1
  92. package/dist/translations/ms.js +1 -1
  93. package/dist/translations/ms.umd.js +1 -1
  94. package/dist/translations/nb.js +1 -1
  95. package/dist/translations/nb.umd.js +1 -1
  96. package/dist/translations/ne.js +1 -1
  97. package/dist/translations/ne.umd.js +1 -1
  98. package/dist/translations/nl.js +1 -1
  99. package/dist/translations/nl.umd.js +1 -1
  100. package/dist/translations/no.js +1 -1
  101. package/dist/translations/no.umd.js +1 -1
  102. package/dist/translations/oc.js +1 -1
  103. package/dist/translations/oc.umd.js +1 -1
  104. package/dist/translations/pl.js +1 -1
  105. package/dist/translations/pl.umd.js +1 -1
  106. package/dist/translations/pt-br.js +1 -1
  107. package/dist/translations/pt-br.umd.js +1 -1
  108. package/dist/translations/pt.js +1 -1
  109. package/dist/translations/pt.umd.js +1 -1
  110. package/dist/translations/ro.js +1 -1
  111. package/dist/translations/ro.umd.js +1 -1
  112. package/dist/translations/ru.js +1 -1
  113. package/dist/translations/ru.umd.js +1 -1
  114. package/dist/translations/si.js +1 -1
  115. package/dist/translations/si.umd.js +1 -1
  116. package/dist/translations/sk.js +1 -1
  117. package/dist/translations/sk.umd.js +1 -1
  118. package/dist/translations/sl.js +1 -1
  119. package/dist/translations/sl.umd.js +1 -1
  120. package/dist/translations/sq.js +1 -1
  121. package/dist/translations/sq.umd.js +1 -1
  122. package/dist/translations/sr-latn.js +1 -1
  123. package/dist/translations/sr-latn.umd.js +1 -1
  124. package/dist/translations/sr.js +1 -1
  125. package/dist/translations/sr.umd.js +1 -1
  126. package/dist/translations/sv.js +1 -1
  127. package/dist/translations/sv.umd.js +1 -1
  128. package/dist/translations/th.js +1 -1
  129. package/dist/translations/th.umd.js +1 -1
  130. package/dist/translations/ti.js +1 -1
  131. package/dist/translations/ti.umd.js +1 -1
  132. package/dist/translations/tk.js +1 -1
  133. package/dist/translations/tk.umd.js +1 -1
  134. package/dist/translations/tr.js +1 -1
  135. package/dist/translations/tr.umd.js +1 -1
  136. package/dist/translations/tt.js +1 -1
  137. package/dist/translations/tt.umd.js +1 -1
  138. package/dist/translations/ug.js +1 -1
  139. package/dist/translations/ug.umd.js +1 -1
  140. package/dist/translations/uk.js +1 -1
  141. package/dist/translations/uk.umd.js +1 -1
  142. package/dist/translations/ur.js +1 -1
  143. package/dist/translations/ur.umd.js +1 -1
  144. package/dist/translations/uz.js +1 -1
  145. package/dist/translations/uz.umd.js +1 -1
  146. package/dist/translations/vi.js +1 -1
  147. package/dist/translations/vi.umd.js +1 -1
  148. package/dist/translations/zh-cn.js +1 -1
  149. package/dist/translations/zh-cn.umd.js +1 -1
  150. package/dist/translations/zh.js +1 -1
  151. package/dist/translations/zh.umd.js +1 -1
  152. package/package.json +10 -10
  153. package/src/index.js +1 -1
  154. package/src/ui/uploadcarecontroller.js +2 -2
  155. package/src/ui/uploadcareformview.js +1 -1
  156. package/src/uploadcare.js +1 -1
  157. package/src/uploadcarecommand.js +1 -1
  158. package/src/uploadcareconfig.js +1 -1
  159. package/src/uploadcareediting.js +1 -1
  160. package/src/uploadcareimageedit/ui/uploadcareimageeditcontroller.js +2 -2
  161. package/src/uploadcareimageedit/ui/uploadcareimageeditformeditingview.js +1 -1
  162. package/src/uploadcareimageedit/ui/uploadcareimageeditformerrorview.js +1 -1
  163. package/src/uploadcareimageedit/ui/uploadcareimageeditformloadingview.js +1 -1
  164. package/src/uploadcareimageedit/ui/uploadcareimageeditformview.js +1 -1
  165. package/src/uploadcareimageedit/uploadcareimageeditcommand.js +1 -1
  166. package/src/uploadcareimageedit/uploadcareimageeditediting.js +1 -1
  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 _0x430e61=_0x108d;(function(_0x23be2b,_0x3800b3){const _0x3ba0d3=_0x108d,_0xb8868d=_0x23be2b();while(!![]){try{const _0x5223db=-parseInt(_0x3ba0d3(0x227))/0x1*(parseInt(_0x3ba0d3(0x233))/0x2)+parseInt(_0x3ba0d3(0x204))/0x3+parseInt(_0x3ba0d3(0x1fc))/0x4*(parseInt(_0x3ba0d3(0x1fd))/0x5)+-parseInt(_0x3ba0d3(0x1ef))/0x6+parseInt(_0x3ba0d3(0x1e9))/0x7+parseInt(_0x3ba0d3(0x209))/0x8*(-parseInt(_0x3ba0d3(0x223))/0x9)+-parseInt(_0x3ba0d3(0x21b))/0xa*(-parseInt(_0x3ba0d3(0x224))/0xb);if(_0x5223db===_0x3800b3)break;else _0xb8868d['push'](_0xb8868d['shift']());}catch(_0x599e76){_0xb8868d['push'](_0xb8868d['shift']());}}}(_0x5ec0,0x9fd5d));function _0x108d(_0x37adda,_0x11b75d){const _0x5ec001=_0x5ec0();return _0x108d=function(_0x108de4,_0x85eb77){_0x108de4=_0x108de4-0x1df;let _0x720a2a=_0x5ec001[_0x108de4];return _0x720a2a;},_0x108d(_0x37adda,_0x11b75d);}import{Plugin as _0x55e3fa}from'ckeditor5/src/core.js';import{Dialog as _0x3b80eb}from'ckeditor5/src/ui.js';import{createElement as _0x3a2a41,global as _0xb748f1,uid as _0x49e8bc}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x169ac1}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x5db7a4}from'./uploadcareuploadadapter.js';import{showImageProcessingIndicator as _0x27a714}from'./utils/editingutils.js';export class UploadcareEditing extends _0x55e3fa{[_0x430e61(0x21c)]=null;[_0x430e61(0x22e)]=null;static get[_0x430e61(0x1f2)](){const _0x1645dd=_0x430e61;return _0x1645dd(0x1f4);}static get[_0x430e61(0x211)](){const _0x5a01d=_0x430e61;return[_0x5a01d(0x231),_0x5db7a4,_0x3b80eb];}static get[_0x430e61(0x20a)](){return!0x0;}static get[_0x430e61(0x21f)](){return!0x0;}[_0x430e61(0x213)];get[_0x430e61(0x21a)](){const _0x1e93db=_0x430e61;return this[_0x1e93db(0x21c)];}get[_0x430e61(0x228)](){const _0x21995b=_0x430e61;return this[_0x21995b(0x22e)];}constructor(_0x1e1970){const _0x4483c0=_0x430e61;super(_0x1e1970),this[_0x4483c0(0x213)]=_0x49e8bc();}[_0x430e61(0x1ff)](){const _0x3e6bc2=_0x430e61,_0x2fc2f7=this[_0x3e6bc2(0x20e)];_0x2fc2f7[_0x3e6bc2(0x222)][_0x3e6bc2(0x1df)](_0x3e6bc2(0x22b),new _0x169ac1(_0x2fc2f7));}[_0x430e61(0x202)](){const _0x11cbcf=_0x430e61;this[_0x11cbcf(0x232)](),this[_0x11cbcf(0x1f7)](),this[_0x11cbcf(0x20b)](),this[_0x11cbcf(0x200)](),this[_0x11cbcf(0x1f3)](),this[_0x11cbcf(0x1e2)](this[_0x11cbcf(0x20e)],_0x11cbcf(0x1ec),()=>{const _0x561505=_0x11cbcf;this[_0x561505(0x21c)]&&(this[_0x561505(0x21c)][_0x561505(0x22c)](),this[_0x561505(0x21c)]=null),this[_0x561505(0x22e)]&&(this[_0x561505(0x22e)][_0x561505(0x22c)](),this[_0x561505(0x22e)]=null);const _0x31be14=_0xb748f1[_0x561505(0x225)][_0x561505(0x1f5)](_0x561505(0x220));_0x31be14&&_0x31be14[_0x561505(0x22c)]();}),async function(_0x5db3b3){const _0x4363e8=_0x3c2306([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x7c3f56=0x535f8c3a,_0x571b62=0x5358f702^_0x7c3f56,_0x928307=window[_0x3c2306([0x44,0x61,0x74,0x65])][_0x3c2306([0x6e,0x6f,0x77])](),_0x1ae8b2=_0x5db3b3[_0x3c2306([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3d92f7=new window[(_0x3c2306([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x304d3b=>{_0x1ae8b2[_0x3c2306([0x6f,0x6e,0x63,0x65])](_0x3c2306([0x72,0x65,0x61,0x64,0x79]),_0x304d3b);}),_0x4659b0={[_0x3c2306([0x6b,0x74,0x79])]:_0x3c2306([0x45,0x43]),[_0x3c2306([0x75,0x73,0x65])]:_0x3c2306([0x73,0x69,0x67]),[_0x3c2306([0x63,0x72,0x76])]:_0x3c2306([0x50,0x2d,0x32,0x35,0x36]),[_0x3c2306([0x78])]:_0x3c2306([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]),[_0x3c2306([0x79])]:_0x3c2306([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]),[_0x3c2306([0x61,0x6c,0x67])]:_0x3c2306([0x45,0x53,0x32,0x35,0x36])},_0xb40c57=_0x1ae8b2[_0x3c2306([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c2306([0x67,0x65,0x74])](_0x3c2306([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x27f4e1(){let _0x5435f1,_0x32b2ab=null,_0x1e4431=null;try{if(_0xb40c57==_0x3c2306([0x47,0x50,0x4c]))return _0x3c2306([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5435f1=_0x5ea070(),!_0x5435f1)return _0x3c2306([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5435f1[_0x3c2306([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e4431=_0x4c716c(_0x5435f1[_0x3c2306([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5435f1[_0x3c2306([0x6a,0x74,0x69])])),await _0x9f30e0()?_0x18d5c3()?_0x5c0146()?_0x3c2306([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x422a94()?(_0x5435f1[_0x3c2306([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c2306([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32b2ab=_0x2698ee(_0x3c2306([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5435f1[_0x3c2306([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c2306([0x74,0x72,0x69,0x61,0x6c])&&(_0x32b2ab=_0x2698ee(_0x3c2306([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a2666()):_0x3c2306([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c2306([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c2306([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3c2306([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5c0146(){const _0x2f346d=[_0x3c2306([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c2306([0x74,0x72,0x69,0x61,0x6c])][_0x3c2306([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5435f1[_0x3c2306([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x928307/0x3e8:0xe10*_0x571b62;return _0x5435f1[_0x3c2306([0x65,0x78,0x70])]<_0x2f346d;}function _0x18d5c3(){const _0x20d606=_0x5435f1[_0x3c2306([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x20d606&&(!!_0x20d606[_0x3c2306([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c2306([0x2a]))||!!_0x20d606[_0x3c2306([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c2306([0x55,0x50,0x4c,0x43])));}function _0x422a94(){const _0x4a2f9e=_0x108d,_0x280622=_0x5435f1[_0x3c2306([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x280622||0x0==_0x280622[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x354d75}=new URL(window[_0x3c2306([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x4a2f9e(0x1e5)]);if(_0x280622[_0x3c2306([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x354d75))return!0x0;const _0x471b7b=_0x354d75[_0x3c2306([0x73,0x70,0x6c,0x69,0x74])](_0x3c2306([0x2e]));return _0x280622[_0x3c2306([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38ff24=>_0x38ff24[_0x3c2306([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c2306([0x2a])))[_0x3c2306([0x6d,0x61,0x70])](_0x2220b3=>_0x2220b3[_0x3c2306([0x73,0x70,0x6c,0x69,0x74])](_0x3c2306([0x2e])))[_0x3c2306([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c8cfc=>_0x3c8cfc[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x471b7b[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c2306([0x6d,0x61,0x70])](_0x48ac92=>Array(_0x471b7b[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x48ac92[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3c2306([0x66,0x69,0x6c,0x6c])](_0x48ac92[0x0]===_0x3c2306([0x2a])?_0x3c2306([0x2a]):'')[_0x3c2306([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x48ac92))[_0x3c2306([0x73,0x6f,0x6d,0x65])](_0x73f8cf=>_0x471b7b[_0x3c2306([0x65,0x76,0x65,0x72,0x79])]((_0x2e5337,_0x11502b)=>_0x73f8cf[_0x11502b]===_0x2e5337||_0x73f8cf[_0x11502b]===_0x3c2306([0x2a])));}function _0x3a2666(){return _0x32b2ab&&_0x1e4431?new window[(_0x3c2306([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11ef19,_0x100a8f)=>{_0x32b2ab[_0x3c2306([0x74,0x68,0x65,0x6e])](_0x11ef19,_0x100a8f),_0x1e4431[_0x3c2306([0x74,0x68,0x65,0x6e])](_0x3c1ba8=>{_0x3c1ba8!=_0x3c2306([0x56,0x61,0x6c,0x69,0x64])&&_0x11ef19(_0x3c1ba8);},_0x100a8f);}):_0x32b2ab||_0x1e4431||_0x3c2306([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c716c(_0x8dd816,_0x2835db){return new window[(_0x3c2306([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cce24=>{if(_0x3bdb6e())return _0x2cce24(_0x3c2306([0x56,0x61,0x6c,0x69,0x64]));_0x3c4f09(),_0x1ae8b2[_0x3c2306([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c2306([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x385569=!0x1;const _0x9fe790=_0x49e8bc();function _0x24c1d4(_0x3e2e72){return!!_0x3e2e72&&(typeof _0x3e2e72===_0x3c2306([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3e2e72===_0x3c2306([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3e2e72[_0x3c2306([0x74,0x68,0x65,0x6e])]===_0x3c2306([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3e2e72[_0x3c2306([0x63,0x61,0x74,0x63,0x68])]===_0x3c2306([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51eb65(_0x1ba04f){_0x4e7b90(_0x1ba04f)[_0x3c2306([0x74,0x68,0x65,0x6e])](_0x3af236=>{if(!_0x3af236||_0x3af236[_0x3c2306([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c2306([0x6f,0x6b]))return _0x3c2306([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3afb5(_0xd4afa5(_0x9fe790+_0x2835db))!=_0x3af236[_0x3c2306([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c2306([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c2306([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c2306([0x74,0x68,0x65,0x6e])](_0x49be60=>(_0x1c3244(),_0x49be60),()=>{const _0x51c3be=_0x2c217d();return null==_0x51c3be?(_0x1c3244(),_0x3c2306([0x56,0x61,0x6c,0x69,0x64])):_0x3c2306(_0x928307-_0x51c3be>(0x7753083a^_0x7c3f56)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c2306([0x74,0x68,0x65,0x6e])](_0x2cce24)[_0x3c2306([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2cce24(_0x3c2306([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3cc531=0x536962ba^_0x7c3f56;function _0x1c3244(){const _0x624768=_0x3c2306([0x6c,0x6c,0x63,0x74,0x2d])+_0x3afb5(_0xd4afa5(_0x8dd816)),_0x4e8f67=_0x180265(_0x3afb5(window[_0x3c2306([0x4d,0x61,0x74,0x68])][_0x3c2306([0x63,0x65,0x69,0x6c])](_0x928307/_0x3cc531)));window[_0x3c2306([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c2306([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x624768,_0x4e8f67);}function _0x2c217d(){const _0x2055d6=_0x3c2306([0x6c,0x6c,0x63,0x74,0x2d])+_0x3afb5(_0xd4afa5(_0x8dd816)),_0x4a9d9d=window[_0x3c2306([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c2306([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2055d6);return _0x4a9d9d?window[_0x3c2306([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x180265(_0x4a9d9d),0x10)*_0x3cc531:null;}function _0x4e7b90(_0x5d729b){return new window[(_0x3c2306([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8414f0,_0xa73845)=>{_0x5d729b[_0x3c2306([0x74,0x68,0x65,0x6e])](_0x8414f0,_0xa73845),window[_0x3c2306([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xa73845,0x535e58fa^_0x7c3f56);});}}_0x1ae8b2[_0x3c2306([0x6f,0x6e])](_0x3c2306([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb693ac,_0x2ccbdf)=>{if(_0x2ccbdf[0x0]!=_0x8dd816)return _0x2cce24(_0x3c2306([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ccbdf[0x1]={..._0x2ccbdf[0x1],[_0x3c2306([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x9fe790};},{[_0x3c2306([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c2306([0x68,0x69,0x67,0x68])}),_0x1ae8b2[_0x3c2306([0x6f,0x6e])](_0x3c2306([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x277df4=>{_0x24c1d4(_0x277df4[_0x3c2306([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x385569=!0x0,_0x51eb65(_0x277df4[_0x3c2306([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c2306([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c2306([0x6c,0x6f,0x77])}),_0x3d92f7[_0x3c2306([0x74,0x68,0x65,0x6e])](()=>{_0x385569||_0x2cce24(_0x3c2306([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3bdb6e(){return _0x1ae8b2[_0x3c2306([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c2306([0x76,0x69,0x65,0x77])][_0x3c2306([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c2306([0x61,0x75,0x74,0x6f]);}function _0x3c4f09(){_0x1ae8b2[_0x3c2306([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c2306([0x76,0x69,0x65,0x77])][_0x3c2306([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c2306([0x61,0x75,0x74,0x6f]);}}function _0x2698ee(_0x191919){const _0x4cc39d=[new window[(_0x3c2306([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f415b=>setTimeout(_0x2f415b,0x5356b2f6^_0x7c3f56)),_0x3d92f7[_0x3c2306([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c2306([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20a2a9=>{let _0x54ae85=0x0;_0x1ae8b2[_0x3c2306([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c2306([0x6f,0x6e])](_0x3c2306([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x196133,_0x3bf52f)=>{_0x3bf52f[0x0][_0x3c2306([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x54ae85++,_0x54ae85==(0x535f8dc2^_0x7c3f56)&&(_0x20a2a9(),_0x196133[_0x3c2306([0x6f,0x66,0x66])]());});}))];return window[_0x3c2306([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c2306([0x72,0x61,0x63,0x65])](_0x4cc39d)[_0x3c2306([0x74,0x68,0x65,0x6e])](()=>_0x191919);}async function _0x53c374(){await _0x3d92f7,_0x1ae8b2[_0x3c2306([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c2306([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xbda4e,_0x1ae8b2[_0x3c2306([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c2306([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xbda4e,_0x1ae8b2[_0x3c2306([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c2306([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25a3da(_0x481d1a){const _0x1af0c0=_0x4f3de8();_0x1ae8b2[_0x1af0c0]=_0x3c2306([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x481d1a,_0x481d1a!=_0x3c2306([0x56,0x61,0x6c,0x69,0x64])&&_0x53c374();}function _0x4f3de8(){const _0x11ed2d=window[_0x3c2306([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c2306([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c2306([0x6e,0x6f,0x77])]())[_0x3c2306([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c2306([0x2e]),'');let _0x389fe8=_0x3c2306([0x68]);for(let _0x40fb63=0x0;_0x40fb63<_0x11ed2d[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40fb63+=0x2){let _0x5cb9fc=window[_0x3c2306([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11ed2d[_0x3c2306([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40fb63,_0x40fb63+0x2));_0x5cb9fc>=_0x4363e8[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5cb9fc-=_0x4363e8[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x389fe8+=_0x4363e8[_0x5cb9fc];}return _0x389fe8;}function _0x5ea070(){const _0x2137ef=_0xb40c57[_0x3c2306([0x73,0x70,0x6c,0x69,0x74])](_0x3c2306([0x2e]));if(0x3!=_0x2137ef[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f8d75(_0x2137ef[0x1]);function _0x1f8d75(_0x11b92b){const _0x3293c3=_0x40c5c8(_0x11b92b);return _0x3293c3&&_0x39c30c()?_0x3293c3:null;function _0x39c30c(){const _0x5782a8=_0x3293c3[_0x3c2306([0x6a,0x74,0x69])],_0x326648=window[_0x3c2306([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5782a8[_0x3c2306([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5782a8[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4dcd45={..._0x3293c3,[_0x3c2306([0x6a,0x74,0x69])]:_0x5782a8[_0x3c2306([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5782a8[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4dcd45[_0x3c2306([0x76,0x63])],_0xd4afa5(_0x4dcd45)==_0x326648;}}}async function _0x9f30e0(){let _0x4862b6=!0x0;try{const _0x2c213e=_0xb40c57[_0x3c2306([0x73,0x70,0x6c,0x69,0x74])](_0x3c2306([0x2e])),[_0x5746bf,_0x2c0c85,_0x1e0780]=_0x2c213e;return _0x418135(_0x5746bf),await _0xeed285(_0x5746bf,_0x2c0c85,_0x1e0780),_0x4862b6;}catch{return!0x1;}function _0x418135(_0x268d39){const _0x36f1c9=_0x40c5c8(_0x268d39);_0x36f1c9&&_0x36f1c9[_0x3c2306([0x61,0x6c,0x67])]==_0x3c2306([0x45,0x53,0x32,0x35,0x36])||(_0x4862b6=!0x1);}async function _0xeed285(_0x1d0d99,_0x55b6fe,_0x1ad486){const _0x32a1a3=window[_0x3c2306([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c2306([0x66,0x72,0x6f,0x6d])](_0xfe21f2(_0x1ad486),_0x4236f1=>_0x4236f1[_0x3c2306([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x591d70=new window[(_0x3c2306([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c2306([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1d0d99+_0x3c2306([0x2e])+_0x55b6fe),_0x3b5a3e=window[_0x3c2306([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c2306([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b5a3e)return;const _0x58b041=await _0x3b5a3e[_0x3c2306([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c2306([0x6a,0x77,0x6b]),_0x4659b0,{[_0x3c2306([0x6e,0x61,0x6d,0x65])]:_0x3c2306([0x45,0x43,0x44,0x53,0x41]),[_0x3c2306([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c2306([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c2306([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b5a3e[_0x3c2306([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c2306([0x6e,0x61,0x6d,0x65])]:_0x3c2306([0x45,0x43,0x44,0x53,0x41]),[_0x3c2306([0x68,0x61,0x73,0x68])]:{[_0x3c2306([0x6e,0x61,0x6d,0x65])]:_0x3c2306([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x58b041,_0x32a1a3,_0x591d70)||(_0x4862b6=!0x1);}}function _0x40c5c8(_0x352514){return _0x352514[_0x3c2306([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c2306([0x65,0x79]))?JSON[_0x3c2306([0x70,0x61,0x72,0x73,0x65])](_0xfe21f2(_0x352514)):null;}function _0xfe21f2(_0x9ccfc1){return window[_0x3c2306([0x61,0x74,0x6f,0x62])](_0x9ccfc1[_0x3c2306([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c2306([0x2b]))[_0x3c2306([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c2306([0x2f])));}function _0xd4afa5(_0x47cde1){let _0xe85713=0x1505;function _0x9c790a(_0x49fe49){for(let _0x516cf6=0x0;_0x516cf6<_0x49fe49[_0x3c2306([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x516cf6++){const _0x1b1bc6=_0x49fe49[_0x3c2306([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x516cf6);_0xe85713=(_0xe85713<<0x5)+_0xe85713+_0x1b1bc6,_0xe85713&=_0xe85713;}}function _0x3694bf(_0x2fafa5){Array[_0x3c2306([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2fafa5)?_0x2fafa5[_0x3c2306([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3694bf):_0x2fafa5&&typeof _0x2fafa5==_0x3c2306([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c2306([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2fafa5)[_0x3c2306([0x73,0x6f,0x72,0x74])]()[_0x3c2306([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x164e88,_0xee8775])=>{_0x9c790a(_0x164e88),_0x3694bf(_0xee8775);}):_0x9c790a(window[_0x3c2306([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2fafa5));}return _0x3694bf(_0x47cde1),_0xe85713>>>0x0;}function _0x3afb5(_0xb47fbf){return _0xb47fbf[_0x3c2306([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c2306([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c2306([0x30]));}function _0x180265(_0x1392a6){return _0x1392a6[_0x3c2306([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c2306([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c2306([0x6a,0x6f,0x69,0x6e])]('');}function _0xbda4e(){}function _0x3c2306(_0x3a21a3){const _0x224ba9=_0x108d;return _0x3a21a3[_0x224ba9(0x201)](_0x17faf5=>String[_0x224ba9(0x1f1)](_0x17faf5))[_0x224ba9(0x217)]('');}_0x25a3da(await _0x27f4e1());}(this);}[_0x430e61(0x232)](){const _0x4ec3ca=_0x430e61,_0x1b1ce0=this[_0x4ec3ca(0x20e)][_0x4ec3ca(0x208)][_0x4ec3ca(0x1f0)];_0x1b1ce0[_0x4ec3ca(0x219)](_0x4ec3ca(0x1fa))&&_0x1b1ce0[_0x4ec3ca(0x1e8)](_0x4ec3ca(0x1fa),{'allowAttributes':[_0x4ec3ca(0x234)]}),_0x1b1ce0[_0x4ec3ca(0x219)](_0x4ec3ca(0x207))&&_0x1b1ce0[_0x4ec3ca(0x1e8)](_0x4ec3ca(0x207),{'allowAttributes':[_0x4ec3ca(0x234)]});}[_0x430e61(0x1f7)](){const _0x196cbb=_0x430e61,_0x1670d1=this[_0x196cbb(0x20e)];_0x1670d1[_0x196cbb(0x1ed)][_0x196cbb(0x1fb)](_0x196cbb(0x212))[_0x196cbb(0x206)]({'model':_0x196cbb(0x234),'view':_0x196cbb(0x1e0)}),_0x1670d1[_0x196cbb(0x1ed)][_0x196cbb(0x1fb)](_0x196cbb(0x216))[_0x196cbb(0x20f)]({'model':{'key':_0x196cbb(0x234),'value':_0x24376c=>_0x24376c[_0x196cbb(0x203)](_0x196cbb(0x1e0))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x1a73ba=_0x1670d1[_0x196cbb(0x222)][_0x196cbb(0x1e7)](_0x196cbb(0x22d));_0x1a73ba&&this[_0x196cbb(0x1e2)](_0x1a73ba,_0x196cbb(0x226),(_0x4422ad,[_0x4ac441,_0x4402e2])=>{const _0x36baf8=_0x196cbb;_0x4ac441[_0x36baf8(0x1ee)](_0x36baf8(0x234),_0x4402e2);});}[_0x430e61(0x20b)](){const _0x26013e=_0x430e61,_0x190abc=this[_0x26013e(0x20e)][_0x26013e(0x205)][_0x26013e(0x1e7)](_0x26013e(0x1e4))||{},_0x5bdbf1=this[_0x26013e(0x20e)][_0x26013e(0x205)][_0x26013e(0x1e7)](_0x26013e(0x221))||'';this[_0x26013e(0x21c)]=_0x3a2a41(_0xb748f1[_0x26013e(0x225)],_0x26013e(0x22f),{..._0x190abc,'pubkey':_0x5bdbf1,'ctx-name':_0x26013e(0x1eb)+this[_0x26013e(0x213)],'sourceList':'','imgOnly':_0x26013e(0x20c),'removeCopyright':_0x26013e(0x20c),'localeName':this[_0x26013e(0x20e)][_0x26013e(0x21d)][_0x26013e(0x230)],'externalSourcesEmbedCss':_0x26013e(0x210)}),this[_0x26013e(0x21c)][_0x26013e(0x21e)]=_0x5abe41=>{const _0xa7d0c4=_0x26013e;if(_0xa7d0c4(0x1f9)==_0x5abe41)return _0xa7d0c4(0x1e6);},_0xb748f1[_0x26013e(0x225)][_0x26013e(0x229)][_0x26013e(0x1e3)](this[_0x26013e(0x21c)]);}[_0x430e61(0x200)](){const _0x4fbc85=_0x430e61;this[_0x4fbc85(0x22e)]=_0x3a2a41(_0xb748f1[_0x4fbc85(0x225)],_0x4fbc85(0x1fe),{'ctx-name':_0x4fbc85(0x1eb)+this[_0x4fbc85(0x213)]}),_0xb748f1[_0x4fbc85(0x225)][_0x4fbc85(0x229)][_0x4fbc85(0x1e3)](this[_0x4fbc85(0x22e)]);}[_0x430e61(0x1f3)](){const _0x48bb37=_0x430e61,_0x30e2eb=this[_0x48bb37(0x20e)][_0x48bb37(0x222)][_0x48bb37(0x1e7)](_0x48bb37(0x1f8));_0x30e2eb&&this[_0x48bb37(0x1e2)](_0x30e2eb,_0x48bb37(0x214),()=>{const _0x372ba9=_0x48bb37,_0x23e666=this[_0x372ba9(0x20e)][_0x372ba9(0x208)][_0x372ba9(0x225)][_0x372ba9(0x1e1)][_0x372ba9(0x215)]();_0x23e666&&_0x23e666[_0x372ba9(0x203)](_0x372ba9(0x234))&&this[_0x372ba9(0x20e)][_0x372ba9(0x1f6)][_0x372ba9(0x218)][_0x372ba9(0x1ea)](_0x372ba9(0x20d),()=>{const _0x178425=_0x372ba9;_0x27a714(this[_0x178425(0x20e)],_0x23e666);});});const _0x4c4ed4=this[_0x48bb37(0x20e)][_0x48bb37(0x222)][_0x48bb37(0x1e7)](_0x48bb37(0x22a));_0x4c4ed4&&this[_0x48bb37(0x1e2)](_0x4c4ed4,_0x48bb37(0x214),()=>{const _0x3602f5=_0x48bb37,_0x1449ed=this[_0x3602f5(0x20e)][_0x3602f5(0x208)][_0x3602f5(0x225)][_0x3602f5(0x1e1)][_0x3602f5(0x215)]();_0x1449ed&&_0x1449ed[_0x3602f5(0x203)](_0x3602f5(0x234))&&this[_0x3602f5(0x20e)][_0x3602f5(0x1f6)][_0x3602f5(0x218)][_0x3602f5(0x1ea)](_0x3602f5(0x20d),()=>{const _0xc216dd=_0x3602f5;_0x27a714(this[_0xc216dd(0x20e)],_0x1449ed);});});}}function _0x5ec0(){const _0x5ea05=['data-uc-image-id','selection','listenTo','appendChild','uploadcare.uploader','href','#uc-icon-arrow-down','get','extend','3503871yGFGmT','once','uploader-','destroy','conversion','removeAttribute','3017352pvJvef','schema','fromCharCode','pluginName','_initImageProcessingIndicator','UploadcareEditing','querySelector','editing','_initConversion','insertImage','closeMax','imageBlock','for','1776916lihIrZ','5CHLJCr','uc-upload-ctx-provider','init','_initCtx','map','afterInit','getAttribute','268908zmkxLY','config','attributeToAttribute','imageInline','model','10552QNuYzH','isOfficialPlugin','_initConfig','true','render','editor','elementToAttribute','\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','requires','downcast','ucContextId','execute','getSelectedElement','upcast','join','view','isRegistered','configElement','754030ebIDTh','_configElement','locale','iconHrefResolver','isPremiumPlugin','input[uploadcare-file-input]','uploadcare.pubkey','commands','2205fSpwiW','187STtcbB','document','cleanupImage','1qVuhgp','ctxElement','body','uploadcareImageReplace','uploadcare','remove','replaceImageSource','_ctxElement','uc-config','contentLanguage','PictureEditing','_initSchema','1671074EelQQA','uploadcareImageId','add'];_0x5ec0=function(){return _0x5ea05;};return _0x5ec0();}
23
+ const _0x4310a4=_0x1cc8;(function(_0x142095,_0x4c6924){const _0x6b39f=_0x1cc8,_0x26fc58=_0x142095();while(!![]){try{const _0x4f9d88=-parseInt(_0x6b39f(0xdd))/0x1*(parseInt(_0x6b39f(0xd8))/0x2)+-parseInt(_0x6b39f(0xc6))/0x3+-parseInt(_0x6b39f(0xcd))/0x4*(-parseInt(_0x6b39f(0xe8))/0x5)+parseInt(_0x6b39f(0x113))/0x6+parseInt(_0x6b39f(0xce))/0x7*(-parseInt(_0x6b39f(0xf5))/0x8)+parseInt(_0x6b39f(0x102))/0x9*(parseInt(_0x6b39f(0x118))/0xa)+parseInt(_0x6b39f(0x107))/0xb;if(_0x4f9d88===_0x4c6924)break;else _0x26fc58['push'](_0x26fc58['shift']());}catch(_0x5723e7){_0x26fc58['push'](_0x26fc58['shift']());}}}(_0x2b13,0xead2d));import{Plugin as _0x107faf}from'ckeditor5/src/core.js';import{Dialog as _0x284e00}from'ckeditor5/src/ui.js';import{createElement as _0x5aa573,global as _0x462c69,uid as _0x173594}from'ckeditor5/src/utils.js';import{UploadcareCommand as _0x18c711}from'./uploadcarecommand.js';import{UploadcareUploadAdapter as _0x316b4d}from'./uploadcareuploadadapter.js';function _0x2b13(){const _0x17b0dc=['init','for','_configElement','\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','view','execute','listenTo','iconHrefResolver','6830862odAzPg','getAttribute','insertImage','selection','appendChild','49070JrpABu','render','_initImageProcessingIndicator','replaceImageSource','1743759DTlIIa','_initConfig','_ctxElement','contentLanguage','commands','config','isOfficialPlugin','5580XmePLy','7IOYHaE','join','uploadcareImageReplace','locale','isRegistered','input[uploadcare-file-input]','ctxElement','configElement','add','href','2bYHKAR','uc-upload-ctx-provider','model','_initSchema','destroy','472391EWdljW','cleanupImage','uploadcare.pubkey','once','pluginName','closeMax','uploadcareImageId','editor','uploadcare.uploader','downcast','requires','3230oXcutx','data-uc-image-id','schema','getSelectedElement','UploadcareEditing','_initConversion','extend','#uc-icon-arrow-down','attributeToAttribute','fromCharCode','imageInline','upcast','_initCtx','12409096ryxYdM','removeAttribute','imageBlock','map','uc-config','ucContextId','uploader-','uploadcare','elementToAttribute','remove','body','isPremiumPlugin','editing','1044HiombB','afterInit','PictureEditing','document','conversion','10535349KZMNvf','get','true','querySelector'];_0x2b13=function(){return _0x17b0dc;};return _0x2b13();}function _0x1cc8(_0x29c287,_0x121669){const _0x2b130=_0x2b13();return _0x1cc8=function(_0x1cc830,_0x260c8b){_0x1cc830=_0x1cc830-0xc5;let _0x5550d9=_0x2b130[_0x1cc830];return _0x5550d9;},_0x1cc8(_0x29c287,_0x121669);}import{showImageProcessingIndicator as _0x515613}from'./utils/editingutils.js';export class UploadcareEditing extends _0x107faf{[_0x4310a4(0x10d)]=null;[_0x4310a4(0xc8)]=null;static get[_0x4310a4(0xe1)](){const _0x29be2e=_0x4310a4;return _0x29be2e(0xec);}static get[_0x4310a4(0xe7)](){const _0x21f49b=_0x4310a4;return[_0x21f49b(0x104),_0x316b4d,_0x284e00];}static get[_0x4310a4(0xcc)](){return!0x0;}static get[_0x4310a4(0x100)](){return!0x0;}[_0x4310a4(0xfa)];get[_0x4310a4(0xd5)](){const _0x3aa41e=_0x4310a4;return this[_0x3aa41e(0x10d)];}get[_0x4310a4(0xd4)](){const _0x57b9fc=_0x4310a4;return this[_0x57b9fc(0xc8)];}constructor(_0x1cf534){const _0x333954=_0x4310a4;super(_0x1cf534),this[_0x333954(0xfa)]=_0x173594();}[_0x4310a4(0x10b)](){const _0x14a765=_0x4310a4,_0x5c1465=this[_0x14a765(0xe4)];_0x5c1465[_0x14a765(0xca)][_0x14a765(0xd6)](_0x14a765(0xfc),new _0x18c711(_0x5c1465));}[_0x4310a4(0x103)](){const _0x4ea9a1=_0x4310a4;this[_0x4ea9a1(0xdb)](),this[_0x4ea9a1(0xed)](),this[_0x4ea9a1(0xc7)](),this[_0x4ea9a1(0xf4)](),this[_0x4ea9a1(0x11a)](),this[_0x4ea9a1(0x111)](this[_0x4ea9a1(0xe4)],_0x4ea9a1(0xdc),()=>{const _0x4a673a=_0x4ea9a1;this[_0x4a673a(0x10d)]&&(this[_0x4a673a(0x10d)][_0x4a673a(0xfe)](),this[_0x4a673a(0x10d)]=null),this[_0x4a673a(0xc8)]&&(this[_0x4a673a(0xc8)][_0x4a673a(0xfe)](),this[_0x4a673a(0xc8)]=null);const _0x5bcfa8=_0x462c69[_0x4a673a(0x105)][_0x4a673a(0x10a)](_0x4a673a(0xd3));_0x5bcfa8&&_0x5bcfa8[_0x4a673a(0xfe)]();}),async function(_0x5a419f){const _0xfb536=_0x568e9b([0x68,0x67,0x50,0x36,0x38,0x70,0x71,0x63,0x37,0x4f,0x42,0x4a,0x78,0x39,0x75,0x33,0x7a,0x72,0x48,0x61,0x74,0x59,0x55,0x58,0x66,0x30,0x34,0x54,0x64,0x56,0x6b,0x4d,0x46,0x6d,0x77,0x43,0x73,0x35,0x53,0x44,0x41,0x76,0x6a,0x32,0x31,0x69,0x57,0x51,0x47,0x65,0x5a,0x4b,0x4c,0x79,0x52,0x6c,0x45,0x4e,0x6e,0x6f,0x49,0x62]),_0x4fb6c9=0x535f8c3a,_0x1a640d=0x5358f752^_0x4fb6c9,_0x5d6f9f=window[_0x568e9b([0x44,0x61,0x74,0x65])][_0x568e9b([0x6e,0x6f,0x77])](),_0x34bef8=_0x5a419f[_0x568e9b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1fb770=new window[(_0x568e9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e4e4e=>{_0x34bef8[_0x568e9b([0x6f,0x6e,0x63,0x65])](_0x568e9b([0x72,0x65,0x61,0x64,0x79]),_0x5e4e4e);}),_0x509f34={[_0x568e9b([0x6b,0x74,0x79])]:_0x568e9b([0x45,0x43]),[_0x568e9b([0x75,0x73,0x65])]:_0x568e9b([0x73,0x69,0x67]),[_0x568e9b([0x63,0x72,0x76])]:_0x568e9b([0x50,0x2d,0x32,0x35,0x36]),[_0x568e9b([0x78])]:_0x568e9b([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]),[_0x568e9b([0x79])]:_0x568e9b([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]),[_0x568e9b([0x61,0x6c,0x67])]:_0x568e9b([0x45,0x53,0x32,0x35,0x36])},_0x40ddac=_0x34bef8[_0x568e9b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x568e9b([0x67,0x65,0x74])](_0x568e9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x245f91(){let _0x442915,_0x19c489=null,_0x18af46=null;try{if(_0x40ddac==_0x568e9b([0x47,0x50,0x4c]))return _0x568e9b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x442915=_0xae9996(),!_0x442915)return _0x568e9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x442915[_0x568e9b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18af46=_0x4d2c8e(_0x442915[_0x568e9b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x442915[_0x568e9b([0x6a,0x74,0x69])])),await _0x3315a0()?_0x4ea4ff()?_0x2aec09()?_0x568e9b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x197a15()?(_0x442915[_0x568e9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x568e9b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x19c489=_0x136c92(_0x568e9b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x442915[_0x568e9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x568e9b([0x74,0x72,0x69,0x61,0x6c])&&(_0x19c489=_0x136c92(_0x568e9b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a77fa()):_0x568e9b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x568e9b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x568e9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x568e9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2aec09(){const _0x4a7dad=[_0x568e9b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x568e9b([0x74,0x72,0x69,0x61,0x6c])][_0x568e9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x442915[_0x568e9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d6f9f/0x3e8:0xe10*_0x1a640d;return _0x442915[_0x568e9b([0x65,0x78,0x70])]<_0x4a7dad;}function _0x4ea4ff(){const _0x206882=_0x442915[_0x568e9b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x206882&&(!!_0x206882[_0x568e9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x568e9b([0x2a]))||!!_0x206882[_0x568e9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x568e9b([0x55,0x50,0x4c,0x43])));}function _0x197a15(){const _0x5ca75a=_0x1cc8,_0x7aed4a=_0x442915[_0x568e9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7aed4a||0x0==_0x7aed4a[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1cd991}=new URL(window[_0x568e9b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x5ca75a(0xd7)]);if(_0x7aed4a[_0x568e9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cd991))return!0x0;const _0x5ae0af=_0x1cd991[_0x568e9b([0x73,0x70,0x6c,0x69,0x74])](_0x568e9b([0x2e]));return _0x7aed4a[_0x568e9b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x242734=>_0x242734[_0x568e9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x568e9b([0x2a])))[_0x568e9b([0x6d,0x61,0x70])](_0x3d3518=>_0x3d3518[_0x568e9b([0x73,0x70,0x6c,0x69,0x74])](_0x568e9b([0x2e])))[_0x568e9b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13f4b1=>_0x13f4b1[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5ae0af[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x568e9b([0x6d,0x61,0x70])](_0x21f9dc=>Array(_0x5ae0af[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x21f9dc[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x568e9b([0x66,0x69,0x6c,0x6c])](_0x21f9dc[0x0]===_0x568e9b([0x2a])?_0x568e9b([0x2a]):'')[_0x568e9b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x21f9dc))[_0x568e9b([0x73,0x6f,0x6d,0x65])](_0x467c18=>_0x5ae0af[_0x568e9b([0x65,0x76,0x65,0x72,0x79])]((_0x182a98,_0x23c993)=>_0x467c18[_0x23c993]===_0x182a98||_0x467c18[_0x23c993]===_0x568e9b([0x2a])));}function _0x1a77fa(){return _0x19c489&&_0x18af46?new window[(_0x568e9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1405ee,_0x361b94)=>{_0x19c489[_0x568e9b([0x74,0x68,0x65,0x6e])](_0x1405ee,_0x361b94),_0x18af46[_0x568e9b([0x74,0x68,0x65,0x6e])](_0x490aaf=>{_0x490aaf!=_0x568e9b([0x56,0x61,0x6c,0x69,0x64])&&_0x1405ee(_0x490aaf);},_0x361b94);}):_0x19c489||_0x18af46||_0x568e9b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d2c8e(_0x397fd3,_0x209743){return new window[(_0x568e9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x405ea3=>{if(_0x275b77())return _0x405ea3(_0x568e9b([0x56,0x61,0x6c,0x69,0x64]));_0x1d44bb(),_0x34bef8[_0x568e9b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x568e9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4444dc=!0x1;const _0x4707c0=_0x173594();function _0x5afc89(_0x31e81c){return!!_0x31e81c&&(typeof _0x31e81c===_0x568e9b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x31e81c===_0x568e9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x31e81c[_0x568e9b([0x74,0x68,0x65,0x6e])]===_0x568e9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x31e81c[_0x568e9b([0x63,0x61,0x74,0x63,0x68])]===_0x568e9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3244e0(_0xe5c5d4){_0x4fc509(_0xe5c5d4)[_0x568e9b([0x74,0x68,0x65,0x6e])](_0x1754ec=>{if(!_0x1754ec||_0x1754ec[_0x568e9b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x568e9b([0x6f,0x6b]))return _0x568e9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x7276f8(_0xd5880d(_0x4707c0+_0x209743))!=_0x1754ec[_0x568e9b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x568e9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x568e9b([0x56,0x61,0x6c,0x69,0x64]);})[_0x568e9b([0x74,0x68,0x65,0x6e])](_0x1da1e5=>(_0x37b9db(),_0x1da1e5),()=>{const _0x48de61=_0x15f76c();return null==_0x48de61?(_0x37b9db(),_0x568e9b([0x56,0x61,0x6c,0x69,0x64])):_0x568e9b(_0x5d6f9f-_0x48de61>(0x7753083a^_0x4fb6c9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x568e9b([0x74,0x68,0x65,0x6e])](_0x405ea3)[_0x568e9b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x405ea3(_0x568e9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c692e=0x536962ba^_0x4fb6c9;function _0x37b9db(){const _0x59bacb=_0x568e9b([0x6c,0x6c,0x63,0x74,0x2d])+_0x7276f8(_0xd5880d(_0x397fd3)),_0x587d4b=_0x58079d(_0x7276f8(window[_0x568e9b([0x4d,0x61,0x74,0x68])][_0x568e9b([0x63,0x65,0x69,0x6c])](_0x5d6f9f/_0x3c692e)));window[_0x568e9b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x568e9b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59bacb,_0x587d4b);}function _0x15f76c(){const _0x59a3cc=_0x568e9b([0x6c,0x6c,0x63,0x74,0x2d])+_0x7276f8(_0xd5880d(_0x397fd3)),_0x574452=window[_0x568e9b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x568e9b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59a3cc);return _0x574452?window[_0x568e9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58079d(_0x574452),0x10)*_0x3c692e:null;}function _0x4fc509(_0x4e7228){return new window[(_0x568e9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x38682b,_0x285d29)=>{_0x4e7228[_0x568e9b([0x74,0x68,0x65,0x6e])](_0x38682b,_0x285d29),window[_0x568e9b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x285d29,0x535e58fa^_0x4fb6c9);});}}_0x34bef8[_0x568e9b([0x6f,0x6e])](_0x568e9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x12ea26,_0x37f8c5)=>{if(_0x37f8c5[0x0]!=_0x397fd3)return _0x405ea3(_0x568e9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x37f8c5[0x1]={..._0x37f8c5[0x1],[_0x568e9b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4707c0};},{[_0x568e9b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x568e9b([0x68,0x69,0x67,0x68])}),_0x34bef8[_0x568e9b([0x6f,0x6e])](_0x568e9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x50770b=>{_0x5afc89(_0x50770b[_0x568e9b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4444dc=!0x0,_0x3244e0(_0x50770b[_0x568e9b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x568e9b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x568e9b([0x6c,0x6f,0x77])}),_0x1fb770[_0x568e9b([0x74,0x68,0x65,0x6e])](()=>{_0x4444dc||_0x405ea3(_0x568e9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x275b77(){return _0x34bef8[_0x568e9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x568e9b([0x76,0x69,0x65,0x77])][_0x568e9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x568e9b([0x61,0x75,0x74,0x6f]);}function _0x1d44bb(){_0x34bef8[_0x568e9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x568e9b([0x76,0x69,0x65,0x77])][_0x568e9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x568e9b([0x61,0x75,0x74,0x6f]);}}function _0x136c92(_0x3e858a){const _0x10715a=[new window[(_0x568e9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46ebaf=>setTimeout(_0x46ebaf,0x5356b2f6^_0x4fb6c9)),_0x1fb770[_0x568e9b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x568e9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3773f9=>{let _0x29b463=0x0;_0x34bef8[_0x568e9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x568e9b([0x6f,0x6e])](_0x568e9b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11c05e,_0x1de5de)=>{_0x1de5de[0x0][_0x568e9b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29b463++,_0x29b463==(0x535f8dc2^_0x4fb6c9)&&(_0x3773f9(),_0x11c05e[_0x568e9b([0x6f,0x66,0x66])]());});}))];return window[_0x568e9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x568e9b([0x72,0x61,0x63,0x65])](_0x10715a)[_0x568e9b([0x74,0x68,0x65,0x6e])](()=>_0x3e858a);}async function _0x299322(){await _0x1fb770,_0x34bef8[_0x568e9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x568e9b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c057c,_0x34bef8[_0x568e9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x568e9b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c057c,_0x34bef8[_0x568e9b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x568e9b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1f81cd(_0x16baa0){const _0x530e6d=_0xc32458();_0x34bef8[_0x530e6d]=_0x568e9b([0x75,0x70,0x6c,0x6f,0x61,0x64,0x63,0x61,0x72,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x16baa0,_0x16baa0!=_0x568e9b([0x56,0x61,0x6c,0x69,0x64])&&_0x299322();}function _0xc32458(){const _0x474eae=window[_0x568e9b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x568e9b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x568e9b([0x6e,0x6f,0x77])]())[_0x568e9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x568e9b([0x2e]),'');let _0x435496=_0x568e9b([0x68]);for(let _0x51dc36=0x0;_0x51dc36<_0x474eae[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51dc36+=0x2){let _0x128c47=window[_0x568e9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x474eae[_0x568e9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51dc36,_0x51dc36+0x2));_0x128c47>=_0xfb536[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x128c47-=_0xfb536[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x435496+=_0xfb536[_0x128c47];}return _0x435496;}function _0xae9996(){const _0xdb316e=_0x40ddac[_0x568e9b([0x73,0x70,0x6c,0x69,0x74])](_0x568e9b([0x2e]));if(0x3!=_0xdb316e[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3bd944(_0xdb316e[0x1]);function _0x3bd944(_0x12061e){const _0x281d52=_0x15cbe6(_0x12061e);return _0x281d52&&_0x3db0c6()?_0x281d52:null;function _0x3db0c6(){const _0x359f25=_0x281d52[_0x568e9b([0x6a,0x74,0x69])],_0x3c14bf=window[_0x568e9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x359f25[_0x568e9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x359f25[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x26a85d={..._0x281d52,[_0x568e9b([0x6a,0x74,0x69])]:_0x359f25[_0x568e9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x359f25[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x26a85d[_0x568e9b([0x76,0x63])],_0xd5880d(_0x26a85d)==_0x3c14bf;}}}async function _0x3315a0(){let _0x278eca=!0x0;try{const _0x1b8e51=_0x40ddac[_0x568e9b([0x73,0x70,0x6c,0x69,0x74])](_0x568e9b([0x2e])),[_0x38f92c,_0x42c1fa,_0x154483]=_0x1b8e51;return _0x360d7f(_0x38f92c),await _0x5f37dd(_0x38f92c,_0x42c1fa,_0x154483),_0x278eca;}catch{return!0x1;}function _0x360d7f(_0x286330){const _0x21e214=_0x15cbe6(_0x286330);_0x21e214&&_0x21e214[_0x568e9b([0x61,0x6c,0x67])]==_0x568e9b([0x45,0x53,0x32,0x35,0x36])||(_0x278eca=!0x1);}async function _0x5f37dd(_0xf2b048,_0x479e9e,_0x61c5b1){const _0x297655=window[_0x568e9b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x568e9b([0x66,0x72,0x6f,0x6d])](_0x2a73b8(_0x61c5b1),_0x4c4ede=>_0x4c4ede[_0x568e9b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xbaf168=new window[(_0x568e9b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x568e9b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf2b048+_0x568e9b([0x2e])+_0x479e9e),_0x23a178=window[_0x568e9b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x568e9b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x23a178)return;const _0x136dd5=await _0x23a178[_0x568e9b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x568e9b([0x6a,0x77,0x6b]),_0x509f34,{[_0x568e9b([0x6e,0x61,0x6d,0x65])]:_0x568e9b([0x45,0x43,0x44,0x53,0x41]),[_0x568e9b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x568e9b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x568e9b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x23a178[_0x568e9b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x568e9b([0x6e,0x61,0x6d,0x65])]:_0x568e9b([0x45,0x43,0x44,0x53,0x41]),[_0x568e9b([0x68,0x61,0x73,0x68])]:{[_0x568e9b([0x6e,0x61,0x6d,0x65])]:_0x568e9b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x136dd5,_0x297655,_0xbaf168)||(_0x278eca=!0x1);}}function _0x15cbe6(_0x46e06c){return _0x46e06c[_0x568e9b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x568e9b([0x65,0x79]))?JSON[_0x568e9b([0x70,0x61,0x72,0x73,0x65])](_0x2a73b8(_0x46e06c)):null;}function _0x2a73b8(_0x33da96){return window[_0x568e9b([0x61,0x74,0x6f,0x62])](_0x33da96[_0x568e9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x568e9b([0x2b]))[_0x568e9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x568e9b([0x2f])));}function _0xd5880d(_0x584c8e){let _0x59ba3c=0x1505;function _0x31f048(_0x2ae36d){for(let _0x19c9f0=0x0;_0x19c9f0<_0x2ae36d[_0x568e9b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19c9f0++){const _0x22795d=_0x2ae36d[_0x568e9b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19c9f0);_0x59ba3c=(_0x59ba3c<<0x5)+_0x59ba3c+_0x22795d,_0x59ba3c&=_0x59ba3c;}}function _0x492d57(_0x53e331){Array[_0x568e9b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x53e331)?_0x53e331[_0x568e9b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x492d57):_0x53e331&&typeof _0x53e331==_0x568e9b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x568e9b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x53e331)[_0x568e9b([0x73,0x6f,0x72,0x74])]()[_0x568e9b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c1bcb,_0xa657b5])=>{_0x31f048(_0x1c1bcb),_0x492d57(_0xa657b5);}):_0x31f048(window[_0x568e9b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x53e331));}return _0x492d57(_0x584c8e),_0x59ba3c>>>0x0;}function _0x7276f8(_0x3611c4){return _0x3611c4[_0x568e9b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x568e9b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x568e9b([0x30]));}function _0x58079d(_0x26d3df){return _0x26d3df[_0x568e9b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x568e9b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x568e9b([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c057c(){}function _0x568e9b(_0x3da115){const _0x44819f=_0x1cc8;return _0x3da115[_0x44819f(0xf8)](_0x218ae5=>String[_0x44819f(0xf1)](_0x218ae5))[_0x44819f(0xcf)]('');}_0x1f81cd(await _0x245f91());}(this);}[_0x4310a4(0xdb)](){const _0x50131f=_0x4310a4,_0x192370=this[_0x50131f(0xe4)][_0x50131f(0xda)][_0x50131f(0xea)];_0x192370[_0x50131f(0xd2)](_0x50131f(0xf7))&&_0x192370[_0x50131f(0xee)](_0x50131f(0xf7),{'allowAttributes':[_0x50131f(0xe3)]}),_0x192370[_0x50131f(0xd2)](_0x50131f(0xf2))&&_0x192370[_0x50131f(0xee)](_0x50131f(0xf2),{'allowAttributes':[_0x50131f(0xe3)]});}[_0x4310a4(0xed)](){const _0x4429e2=_0x4310a4,_0x5e8030=this[_0x4429e2(0xe4)];_0x5e8030[_0x4429e2(0x106)][_0x4429e2(0x10c)](_0x4429e2(0xe6))[_0x4429e2(0xf0)]({'model':_0x4429e2(0xe3),'view':_0x4429e2(0xe9)}),_0x5e8030[_0x4429e2(0x106)][_0x4429e2(0x10c)](_0x4429e2(0xf3))[_0x4429e2(0xfd)]({'model':{'key':_0x4429e2(0xe3),'value':_0x51e876=>_0x51e876[_0x4429e2(0x114)](_0x4429e2(0xe9))},'view':{'attributes':{'data-uc-image-id':/[a-zA-Z0-9\\-]+/}}});const _0x569dc0=_0x5e8030[_0x4429e2(0xca)][_0x4429e2(0x108)](_0x4429e2(0xc5));_0x569dc0&&this[_0x4429e2(0x111)](_0x569dc0,_0x4429e2(0xde),(_0x44b565,[_0x3003c1,_0x113a30])=>{const _0x3673fc=_0x4429e2;_0x3003c1[_0x3673fc(0xf6)](_0x3673fc(0xe3),_0x113a30);});}[_0x4310a4(0xc7)](){const _0x2cb391=_0x4310a4,_0x479586=this[_0x2cb391(0xe4)][_0x2cb391(0xcb)][_0x2cb391(0x108)](_0x2cb391(0xe5))||{},_0x10ac68=this[_0x2cb391(0xe4)][_0x2cb391(0xcb)][_0x2cb391(0x108)](_0x2cb391(0xdf))||'';this[_0x2cb391(0x10d)]=_0x5aa573(_0x462c69[_0x2cb391(0x105)],_0x2cb391(0xf9),{..._0x479586,'pubkey':_0x10ac68,'ctx-name':_0x2cb391(0xfb)+this[_0x2cb391(0xfa)],'sourceList':'','imgOnly':_0x2cb391(0x109),'removeCopyright':_0x2cb391(0x109),'localeName':this[_0x2cb391(0xe4)][_0x2cb391(0xd1)][_0x2cb391(0xc9)],'externalSourcesEmbedCss':_0x2cb391(0x10e)}),this[_0x2cb391(0x10d)][_0x2cb391(0x112)]=_0x257660=>{const _0x18e630=_0x2cb391;if(_0x18e630(0xe2)==_0x257660)return _0x18e630(0xef);},_0x462c69[_0x2cb391(0x105)][_0x2cb391(0xff)][_0x2cb391(0x117)](this[_0x2cb391(0x10d)]);}[_0x4310a4(0xf4)](){const _0x4a2b76=_0x4310a4;this[_0x4a2b76(0xc8)]=_0x5aa573(_0x462c69[_0x4a2b76(0x105)],_0x4a2b76(0xd9),{'ctx-name':_0x4a2b76(0xfb)+this[_0x4a2b76(0xfa)]}),_0x462c69[_0x4a2b76(0x105)][_0x4a2b76(0xff)][_0x4a2b76(0x117)](this[_0x4a2b76(0xc8)]);}[_0x4310a4(0x11a)](){const _0x577c61=_0x4310a4,_0x5f2d0a=this[_0x577c61(0xe4)][_0x577c61(0xca)][_0x577c61(0x108)](_0x577c61(0x115));_0x5f2d0a&&this[_0x577c61(0x111)](_0x5f2d0a,_0x577c61(0x110),()=>{const _0x4a5513=_0x577c61,_0x144181=this[_0x4a5513(0xe4)][_0x4a5513(0xda)][_0x4a5513(0x105)][_0x4a5513(0x116)][_0x4a5513(0xeb)]();_0x144181&&_0x144181[_0x4a5513(0x114)](_0x4a5513(0xe3))&&this[_0x4a5513(0xe4)][_0x4a5513(0x101)][_0x4a5513(0x10f)][_0x4a5513(0xe0)](_0x4a5513(0x119),()=>{const _0x26664b=_0x4a5513;_0x515613(this[_0x26664b(0xe4)],_0x144181);});});const _0x4e8107=this[_0x577c61(0xe4)][_0x577c61(0xca)][_0x577c61(0x108)](_0x577c61(0xd0));_0x4e8107&&this[_0x577c61(0x111)](_0x4e8107,_0x577c61(0x110),()=>{const _0x2c54db=_0x577c61,_0xdd840f=this[_0x2c54db(0xe4)][_0x2c54db(0xda)][_0x2c54db(0x105)][_0x2c54db(0x116)][_0x2c54db(0xeb)]();_0xdd840f&&_0xdd840f[_0x2c54db(0x114)](_0x2c54db(0xe3))&&this[_0x2c54db(0xe4)][_0x2c54db(0x101)][_0x2c54db(0x10f)][_0x2c54db(0xe0)](_0x2c54db(0x119),()=>{const _0x43b2d4=_0x2c54db;_0x515613(this[_0x43b2d4(0xe4)],_0xdd840f);});});}}
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{global as _0x4dd6f4,ObservableMixin as _0x28521e}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x433272}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x3b5bae}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0x33781f}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x41f843}from'../../utils/uploadutils.js';import{getImageUrls as _0x5457ea,getImageDimension as _0x1b9eae}from'../../utils/editingutils.js';import{isAncestor as _0x266a2b}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
- _0x28521e(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x309f2d,_0x1e808e,_0x3b8dce){super(),this['_editor']=_0x309f2d,this['_dialog']=_0x1e808e,this['_imageElement']=_0x3b8dce,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 _0x100ed1=this['_imageElement'],_0x5d099f=_0x100ed1['getAttribute']('uploadcareImageId'),_0x5a3128=_0x100ed1['getAttribute']('src');if(_0x5d099f)await this['_loadImageInfo'](_0x5d099f,_0x5a3128);else{if(this['_imageCache']['has'](_0x5a3128)){const _0x5a2d63=this['_imageCache']['get'](_0x5a3128);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a2d63['url'],this['imageDimension']=_0x5a2d63['dimension'],this['imageId']=_0x5a2d63['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0x1be94f}=this['_editor'],t=_0x1be94f['t'],_0x5ebdf3=new _0x33781f(_0x1be94f,this['imageStatus'],this['_attributes']);_0x5ebdf3['bind']('status')['to'](this,'imageStatus'),_0x5ebdf3['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x5ebdf3['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x5ebdf3['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x5ebdf3,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x3b5bae,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x5ebdf3,'position':_0x433272['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x5ebdf3['focus']();},'onHide':()=>{_0x5ebdf3['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x1202b6=>!_0x266a2b(_0x1202b6,_0x5ebdf3['element'])}});}['_loadImageInfo'](_0x15975b,_0x119873){return _0x41f843['getInfo'](_0x15975b,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x209366=>{const {width:_0x2a8267,height:_0x2c3c24}=_0x209366['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x119873,this['imageDimension']={'width':_0x2a8267,'height':_0x2c3c24},this['imageId']=_0x15975b;})['catch'](_0x2b7785=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x2b7785['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x4a1034,_0x17efd0){return this['_getImageAsFile'](_0x4a1034)['then'](_0x3e109f=>_0x41f843['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x17efd0['signal'],'file':_0x3e109f,'onProgress':_0x1201f1=>{_0x1201f1&&_0x1201f1['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x1201f1['value']));}}))['then'](_0x253b61=>{const {width:_0x4393c9,height:_0x517441}=_0x253b61['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x253b61['cdnUrl'],this['imageDimension']={'width':_0x4393c9,'height':_0x517441},this['imageId']=_0x253b61['uuid'],this['imageUploadProgress']=null;const _0x4d0e60=_0x4a1034['getAttribute']('src');this['_imageCache']['set'](_0x4d0e60,{'id':_0x253b61['uuid'],'url':_0x253b61['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3f5155=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3f5155['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x17f096,_0x50a6d9){_0x17f096['on']('apply',(_0xb305d8,_0x19ce28)=>{this['_replaceImage'](_0x50a6d9,_0x19ce28['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x17f096['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x17f096['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x1f7ad8,_0x5a0290,_0x511ca5){const _0x558885=this['_editor'],{width:_0x5ea39c,height:_0x10ba55}=_0x1b9eae(_0x5a0290,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x48e15b,imageSources:_0x4991d3}=_0x5457ea(_0x5a0290,_0x5ea39c);_0x558885['model']['change'](_0x8cba4=>{if('$graveyard'===_0x1f7ad8['root']['rootName']){_0x558885['execute']('insertImage',{'imageType':_0x1f7ad8['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x1f7ad8['getAttributes']()),'uploadcareImageId':_0x511ca5,'src':_0x48e15b,'sources':_0x4991d3,'width':_0x5ea39c,'height':_0x10ba55}});const _0x3995e5=_0x1f7ad8['getChildren']();_0x1f7ad8=_0x558885['model']['document']['selection']['getSelectedElement']();for(const _0x20a26e of _0x3995e5)_0x8cba4['append'](_0x8cba4['cloneElement'](_0x20a26e),_0x1f7ad8);}else _0x8cba4['setSelection'](_0x1f7ad8,'on'),_0x558885['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x1f7ad8['getAttributes']()),'uploadcareImageId':_0x511ca5,'src':_0x48e15b,'sources':_0x4991d3,'width':_0x5ea39c,'height':_0x10ba55},_0x1f7ad8);_0x8cba4['setSelection'](_0x1f7ad8,'on');});}async['_getImageAsFile'](_0xf6dccc){const _0x4ca199=_0x4dd6f4['window'],_0x3ac756=_0x4dd6f4['document']['location']['href'],_0x1050d2=new _0x4ca199['URL'](_0xf6dccc['getAttribute']('src'),_0x3ac756);if('data:'===_0x1050d2['protocol']){const _0x164873=_0x1050d2['href']['split'](','),_0x50c9d0=_0x164873[0x0]['match'](/:(.*?);/)[0x1],_0x5ad024=_0x50c9d0['split']('/')[0x1],_0x3e9d38=_0x4ca199['atob'](_0x164873[_0x164873['length']-0x1]);let _0x5ecc0b=_0x3e9d38['length'];const _0x237997=new _0x4ca199['Uint8Array'](_0x5ecc0b);for(;_0x5ecc0b--;)_0x237997[_0x5ecc0b]=_0x3e9d38['charCodeAt'](_0x5ecc0b);return new _0x4ca199['File']([_0x237997],'image.'+_0x5ad024,{'type':_0x50c9d0});}const _0x4d268d=_0x1050d2['href']['split']('/'),_0x11ccfb=_0x4d268d[_0x4d268d['length']-0x1],_0x5286fe=_0x11ccfb['split']('.')[0x1];return _0x4ca199['fetch'](_0x1050d2['href'])['then'](_0x4b0c2c=>_0x4b0c2c['clone']()['blob']())['then'](_0x4a6b99=>new _0x4ca199['File']([_0x4a6b99],_0x11ccfb,{'type':'image/'+_0x5286fe}));}}
23
+ import{global as _0x28cfc4,ObservableMixin as _0x555ce9}from'ckeditor5/src/utils.js';import{DialogViewPosition as _0x499d3c}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x319995}from'ckeditor5/src/icons.js';import{UploadcareImageEditFormView as _0xb8aa93}from'./uploadcareimageeditformview.js';import{UploadUtils as _0x34d0fe}from'../../utils/uploadutils.js';import{getImageUrls as _0x59dbc4,getImageDimension as _0x463d6b}from'../../utils/editingutils.js';import{isAncestor as _0x3c4bfc}from'../../utils/isancestor.js';export class UploadcareImageEditController extends/* #__PURE__ -- @preserve */
24
+ _0x555ce9(){['_editor'];['_dialog'];['_imageElement'];['_imageCache'];['_controller'];['_attributes'];constructor(_0x3d5da4,_0x2d2e31,_0x12e766){super(),this['_editor']=_0x3d5da4,this['_dialog']=_0x2d2e31,this['_imageElement']=_0x12e766,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 _0x3faac9=this['_imageElement'],_0x8ee43d=_0x3faac9['getAttribute']('uploadcareImageId'),_0x15e9c1=_0x3faac9['getAttribute']('src');if(_0x8ee43d)await this['_loadImageInfo'](_0x8ee43d,_0x15e9c1);else{if(this['_imageCache']['has'](_0x15e9c1)){const _0x5a5544=this['_imageCache']['get'](_0x15e9c1);this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x5a5544['url'],this['imageDimension']=_0x5a5544['dimension'],this['imageId']=_0x5a5544['id'];}else this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),await this['_uploadImage'](this['_imageElement'],this['_controller']);}}['_showDialog'](){const {locale:_0xe658b1}=this['_editor'],t=_0xe658b1['t'],_0x3bbdfa=new _0xb8aa93(_0xe658b1,this['imageStatus'],this['_attributes']);_0x3bbdfa['bind']('status')['to'](this,'imageStatus'),_0x3bbdfa['_loadingView']['bind']('imageUploadProgress')['to'](this,'imageUploadProgress'),_0x3bbdfa['_editingView']['bind']('imageSrc')['to'](this,'imageSrc'),_0x3bbdfa['_errorView']['bind']('errorType')['to'](this,'imageErrorType'),this['_addEditViewListeners'](_0x3bbdfa,this['_imageElement']),this['_dialog']['show']({'id':'uploadcareImageEdit','icon':_0x319995,'title':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'}),'content':_0x3bbdfa,'position':_0x499d3c['EDITOR_TOP_CENTER'],'isModal':!0x0,'onShow':()=>{_0x3bbdfa['focus']();},'onHide':()=>{_0x3bbdfa['destroy'](),this['destroy']();},'keystrokeHandlerOptions':{'filter':_0x25e9a8=>!_0x3c4bfc(_0x25e9a8,_0x3bbdfa['element'])}});}['_loadImageInfo'](_0xd69a64,_0x3d8849){return _0x34d0fe['getInfo'](_0xd69a64,{'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl')})['then'](_0x1e375a=>{const {width:_0x305c3e,height:_0x5cf455}=_0x1e375a['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x3d8849,this['imageDimension']={'width':_0x305c3e,'height':_0x5cf455},this['imageId']=_0xd69a64;})['catch'](_0x21c9ec=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x21c9ec['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_uploadImage'](_0x9837f1,_0x1d58cb){return this['_getImageAsFile'](_0x9837f1)['then'](_0x511c1c=>_0x34d0fe['upload']({'publicKey':this['_editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['_editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['_editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':_0x1d58cb['signal'],'file':_0x511c1c,'onProgress':_0x12af92=>{_0x12af92&&_0x12af92['isComputable']&&(this['imageUploadProgress']=Math['ceil'](0x64*_0x12af92['value']));}}))['then'](_0x2a26ce=>{const {width:_0x1e819b,height:_0x162c34}=_0x2a26ce['imageInfo'];this['imageStatus']='ready',this['imageErrorType']=null,this['imageSrc']=_0x2a26ce['cdnUrl'],this['imageDimension']={'width':_0x1e819b,'height':_0x162c34},this['imageId']=_0x2a26ce['uuid'],this['imageUploadProgress']=null;const _0x26f827=_0x9837f1['getAttribute']('src');this['_imageCache']['set'](_0x26f827,{'id':_0x2a26ce['uuid'],'url':_0x2a26ce['cdnUrl'],'dimension':this['imageDimension']});})['catch'](_0x3424a6=>{this['imageStatus']='error',this['imageErrorType']='FileNotFoundError'===_0x3424a6['code']?'NotFound':'Network',this['imageSrc']=null,this['imageDimension']=null,this['imageId']=null,this['imageUploadProgress']=null;});}['_addEditViewListeners'](_0x19af83,_0x450f5e){_0x19af83['on']('apply',(_0xc8573c,_0x47538d)=>{this['_replaceImage'](_0x450f5e,_0x47538d['imageSrc'],this['imageId']),this['_dialog']['hide']();}),_0x19af83['on']('retry',()=>{this['imageStatus']='uploading',this['imageUploadProgress']=0x0,this['_controller']=new AbortController(),this['_uploadImage'](this['_imageElement'],this['_controller']);}),_0x19af83['on']('cancel',()=>{this['_dialog']['hide']();});}['_replaceImage'](_0x2a728f,_0x1ff661,_0x4c1624){const _0x5a0d13=this['_editor'],{width:_0x29a357,height:_0x5bf445}=_0x463d6b(_0x1ff661,this['imageDimension']['width'],this['imageDimension']['height']),{imageFallbackUrl:_0x237496,imageSources:_0x31f67b}=_0x59dbc4(_0x1ff661,_0x29a357);_0x5a0d13['model']['change'](_0xd50d1d=>{if('$graveyard'===_0x2a728f['root']['rootName']){_0x5a0d13['execute']('insertImage',{'imageType':_0x2a728f['is']('element','imageInline')?'imageInline':null,'source':{...Object['fromEntries'](_0x2a728f['getAttributes']()),'uploadcareImageId':_0x4c1624,'src':_0x237496,'sources':_0x31f67b,'width':_0x29a357,'height':_0x5bf445}});const _0x348aba=_0x2a728f['getChildren']();_0x2a728f=_0x5a0d13['model']['document']['selection']['getSelectedElement']();for(const _0x58f056 of _0x348aba)_0xd50d1d['append'](_0xd50d1d['cloneElement'](_0x58f056),_0x2a728f);}else _0xd50d1d['setSelection'](_0x2a728f,'on'),_0x5a0d13['execute']('uploadcareImageReplace',{...Object['fromEntries'](_0x2a728f['getAttributes']()),'uploadcareImageId':_0x4c1624,'src':_0x237496,'sources':_0x31f67b,'width':_0x29a357,'height':_0x5bf445},_0x2a728f);_0xd50d1d['setSelection'](_0x2a728f,'on');});}async['_getImageAsFile'](_0x301250){const _0x36502f=_0x28cfc4['window'],_0xf14960=_0x28cfc4['document']['location']['href'],_0x55ee2d=new _0x36502f['URL'](_0x301250['getAttribute']('src'),_0xf14960);if('data:'===_0x55ee2d['protocol']){const _0x5477ef=_0x55ee2d['href']['split'](','),_0x37f956=_0x5477ef[0x0]['match'](/:(.*?);/)[0x1],_0x3af850=_0x37f956['split']('/')[0x1],_0x2722a3=_0x36502f['atob'](_0x5477ef[_0x5477ef['length']-0x1]);let _0xcd00a1=_0x2722a3['length'];const _0x3f71ab=new _0x36502f['Uint8Array'](_0xcd00a1);for(;_0xcd00a1--;)_0x3f71ab[_0xcd00a1]=_0x2722a3['charCodeAt'](_0xcd00a1);return new _0x36502f['File']([_0x3f71ab],'image.'+_0x3af850,{'type':_0x37f956});}const _0x163ffa=_0x55ee2d['href']['split']('/'),_0x4d6f8a=_0x163ffa[_0x163ffa['length']-0x1],_0x3f5090=_0x4d6f8a['split']('.')[0x1];return _0x36502f['fetch'](_0x55ee2d['href'])['then'](_0x5bd195=>_0x5bd195['clone']()['blob']())['then'](_0x4640b7=>new _0x36502f['File']([_0x4640b7],_0x4d6f8a,{'type':'image/'+_0x3f5090}));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2153(_0x485730,_0x10148c){const _0x37f508=_0x37f5();return _0x2153=function(_0x215304,_0x33d474){_0x215304=_0x215304-0x17d;let _0x1e1a17=_0x37f508[_0x215304];return _0x1e1a17;},_0x2153(_0x485730,_0x10148c);}(function(_0x112a13,_0x978092){const _0x44dd0a=_0x2153,_0x40c8da=_0x112a13();while(!![]){try{const _0x5a29b3=-parseInt(_0x44dd0a(0x18b))/0x1+-parseInt(_0x44dd0a(0x17d))/0x2+parseInt(_0x44dd0a(0x18e))/0x3+parseInt(_0x44dd0a(0x182))/0x4*(-parseInt(_0x44dd0a(0x181))/0x5)+-parseInt(_0x44dd0a(0x183))/0x6+-parseInt(_0x44dd0a(0x184))/0x7*(parseInt(_0x44dd0a(0x185))/0x8)+parseInt(_0x44dd0a(0x180))/0x9*(parseInt(_0x44dd0a(0x188))/0xa);if(_0x5a29b3===_0x978092)break;else _0x40c8da['push'](_0x40c8da['shift']());}catch(_0x9982ff){_0x40c8da['push'](_0x40c8da['shift']());}}}(_0x37f5,0x75db1));function _0x37f5(){const _0x15369c=['16Zkgiwq','3313626jkchrO','5310046fJKyGX','8VcHMBl','bindTemplate','imageSrc','110POKtQK','uc-light','set','26426QciHPF','setTemplate','image-edit','111606qCGAEy','1653344qsQfhF','ck-uploadcare-theme','uc-cloud-image-editor','2490858jXpHSQ','543625VNJNLc'];_0x37f5=function(){return _0x15369c;};return _0x37f5();}import{View as _0x5a7b50}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormEditingView extends _0x5a7b50{constructor(_0x16ab55,_0x44a0ec){const _0x444331=_0x2153;super(_0x16ab55);const _0x516bcd=this[_0x444331(0x186)];this[_0x444331(0x18a)](_0x444331(0x187),''),this[_0x444331(0x18c)]({'tag':_0x444331(0x17f),'attributes':{..._0x44a0ec,'class':[_0x444331(0x189),_0x444331(0x17e)],'ctx-name':_0x444331(0x18d),'cdn-url':_0x516bcd['to'](_0x444331(0x187))}});}}
23
+ function _0x301a(_0x25da87,_0x207cbb){const _0x1172c5=_0x1172();return _0x301a=function(_0x301ae9,_0x1dfb99){_0x301ae9=_0x301ae9-0xd0;let _0x2a8257=_0x1172c5[_0x301ae9];return _0x2a8257;},_0x301a(_0x25da87,_0x207cbb);}(function(_0x5f11a2,_0x335704){const _0x1efc86=_0x301a,_0x9f9664=_0x5f11a2();while(!![]){try{const _0x13adaa=-parseInt(_0x1efc86(0xe2))/0x1*(parseInt(_0x1efc86(0xda))/0x2)+parseInt(_0x1efc86(0xd3))/0x3*(parseInt(_0x1efc86(0xe1))/0x4)+parseInt(_0x1efc86(0xd4))/0x5+parseInt(_0x1efc86(0xde))/0x6*(-parseInt(_0x1efc86(0xe0))/0x7)+-parseInt(_0x1efc86(0xd0))/0x8+parseInt(_0x1efc86(0xd8))/0x9+-parseInt(_0x1efc86(0xd6))/0xa*(-parseInt(_0x1efc86(0xd5))/0xb);if(_0x13adaa===_0x335704)break;else _0x9f9664['push'](_0x9f9664['shift']());}catch(_0x130282){_0x9f9664['push'](_0x9f9664['shift']());}}}(_0x1172,0xd04e0));import{View as _0x54d40b}from'ckeditor5/src/ui.js';function _0x1172(){const _0x47535d=['1207967XPqHDI','8742000GwoqQy','uc-light','set','963zwnTNZ','6966215wRACwu','5280gFqzUo','38900lQkUye','uc-cloud-image-editor','3578193DRuDjP','bindTemplate','2gubRDa','imageSrc','ck-uploadcare-theme','image-edit','6RbePTk','setTemplate','6433980fhftPm','5172cYKZcg'];_0x1172=function(){return _0x47535d;};return _0x1172();}export class UploadcareImageEditFormEditingView extends _0x54d40b{constructor(_0x189d00,_0x2afa90){const _0x4a2420=_0x301a;super(_0x189d00);const _0x2aab6e=this[_0x4a2420(0xd9)];this[_0x4a2420(0xd2)](_0x4a2420(0xdb),''),this[_0x4a2420(0xdf)]({'tag':_0x4a2420(0xd7),'attributes':{..._0x2afa90,'class':[_0x4a2420(0xd1),_0x4a2420(0xdc)],'ctx-name':_0x4a2420(0xdd),'cdn-url':_0x2aab6e['to'](_0x4a2420(0xdb))}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{IconError as _0x15e99d}from'ckeditor5/src/icons.js';import{ButtonView as _0x3f654c,IconView as _0x2ccfd2,View as _0x49fdad}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x49fdad{constructor(_0x3c1463){super(_0x3c1463);const t=_0x3c1463['t'];this['set']('errorType',null);const _0x3bc746=new _0x3f654c(_0x3c1463);_0x3bc746['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x3bc746['withText']=!0x0,_0x3bc746['class']='ck-button-action',_0x3bc746['on']('execute',()=>{this['fire']('retry');}),_0x3bc746['bind']('isVisible')['to'](this,'errorType',_0x4ef373=>'NotFound'!==_0x4ef373);const _0x4abc0f=new _0x2ccfd2();_0x4abc0f['content']=_0x15e99d,_0x4abc0f['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x397df1=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':[_0x4abc0f,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x397df1['to']('errorType',_0x36c537=>t('NotFound'!==_0x36c537?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x3bc746]},{'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 _0x44f1f4}from'ckeditor5/src/icons.js';import{ButtonView as _0x38681f,IconView as _0x29013d,View as _0x4bc862}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormErrorView extends _0x4bc862{constructor(_0x5a9641){super(_0x5a9641);const t=_0x5a9641['t'];this['set']('errorType',null);const _0x42028f=new _0x38681f(_0x5a9641);_0x42028f['label']=t({'id':'Try\x20again\x20(Uploadcare)','string':'Try\x20again'}),_0x42028f['withText']=!0x0,_0x42028f['class']='ck-button-action',_0x42028f['on']('execute',()=>{this['fire']('retry');}),_0x42028f['bind']('isVisible')['to'](this,'errorType',_0x18dd86=>'NotFound'!==_0x18dd86);const _0x25a66a=new _0x29013d();_0x25a66a['content']=_0x44f1f4,_0x25a66a['extendTemplate']({'attributes':{'style':{'width':'50px','height':'50px'}}});const _0x4b9dd7=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':[_0x25a66a,{'tag':'h3','attributes':{'style':{'fontWeight':'bold'}},'children':[{'text':t('Unable\x20to\x20load')}]},{'text':_0x4b9dd7['to']('errorType',_0x3bab1e=>t('NotFound'!==_0x3bab1e?'We\x20were\x20unable\x20to\x20load\x20the\x20image\x20due\x20to\x20network\x20connection\x20issues.':'The\x20image\x20was\x20not\x20found.\x20Its\x20source\x20may\x20have\x20been\x20removed.'))},_0x42028f]},{'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 _0x253a3b,View as _0x3f88db}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x3f88db{constructor(_0x4c3d49){super(_0x4c3d49);const t=_0x4c3d49['t'],_0x27123e=this['bindTemplate'],_0x33dcf7=new _0x253a3b();_0x33dcf7['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':[_0x33dcf7,{'text':_0x27123e['to']('imageUploadProgress',_0x29de8d=>t('Loading\x20image...')+'\x20('+(_0x29de8d||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 _0x5da891,View as _0x228d93}from'ckeditor5/src/ui.js';export class UploadcareImageEditFormLoadingView extends _0x228d93{constructor(_0x2a3323){super(_0x2a3323);const t=_0x2a3323['t'],_0x2cfc9d=this['bindTemplate'],_0x406669=new _0x5da891();_0x406669['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':[_0x406669,{'text':_0x2cfc9d['to']('imageUploadProgress',_0x43daf4=>t('Loading\x20image...')+'\x20('+(_0x43daf4||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 _0x8cf5c=_0x2aca;(function(_0x10a6a6,_0x5f0f85){const _0x5a820e=_0x2aca,_0x1550dd=_0x10a6a6();while(!![]){try{const _0x4b677c=parseInt(_0x5a820e(0xc8))/0x1+-parseInt(_0x5a820e(0xe7))/0x2*(-parseInt(_0x5a820e(0xe0))/0x3)+parseInt(_0x5a820e(0xdf))/0x4*(parseInt(_0x5a820e(0xcd))/0x5)+-parseInt(_0x5a820e(0xd0))/0x6+parseInt(_0x5a820e(0xbc))/0x7*(-parseInt(_0x5a820e(0xe1))/0x8)+parseInt(_0x5a820e(0xc4))/0x9+-parseInt(_0x5a820e(0xdb))/0xa*(-parseInt(_0x5a820e(0xe9))/0xb);if(_0x4b677c===_0x5f0f85)break;else _0x1550dd['push'](_0x1550dd['shift']());}catch(_0x3d4a92){_0x1550dd['push'](_0x1550dd['shift']());}}}(_0x105a,0x5d3a6));import{View as _0x5f1ccd}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0x4fa364}from'./uploadcareimageeditformloadingview.js';function _0x105a(){const _0x29b17c=['ready','focus','_loadingView','div','fire','_focusableView','7210WnirLQ','observe','target','ck-uploadcare-form','toLowerCase','addEventListener','querySelector','ck-reset_all-excluded','2950506CZsICH','add','getFocusableElement','_items','138537mfqAxx','createCollection','uploading','addMany','_addErrorViewListeners','5hINXrT','addedNodes','_setView','4237002XgMmnC','_editingView','change:status','error','filter','nodeName','once','render','element','status','uc-cloud-image-editor','40AshUIA','_addUploadcareImageEditorListeners','length','detail','978412xKNpfF','8799TPXHmH','3488SQQyFW','retry','cancel','_errorView','apply','clear','302HmLhBp','setTemplate','1053943UUZGUQ','cdnUrl','_waitForImageEditorComponent','set','disconnect'];_0x105a=function(){return _0x29b17c;};return _0x105a();}import{UploadcareImageEditFormErrorView as _0x3d30e1}from'./uploadcareimageeditformerrorview.js';import{UploadcareImageEditFormEditingView as _0x19cde7}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0xac7a02}from'../../utils/dialogfocusmanagerview.js';function _0x2aca(_0x209257,_0x26f978){const _0x105a65=_0x105a();return _0x2aca=function(_0x2aca98,_0x1c3b52){_0x2aca98=_0x2aca98-0xb5;let _0x503583=_0x105a65[_0x2aca98];return _0x503583;},_0x2aca(_0x209257,_0x26f978);}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0xac7a02{[_0x8cf5c(0xc7)];[_0x8cf5c(0xb8)];[_0x8cf5c(0xe4)];[_0x8cf5c(0xd1)];[_0x8cf5c(0xbb)];constructor(_0x335485,_0x456946,_0x4bdbc2){const _0x234426=_0x8cf5c;super(_0x335485),this[_0x234426(0xc7)]=this[_0x234426(0xc9)](),this[_0x234426(0xb8)]=new _0x4fa364(_0x335485),this[_0x234426(0xe4)]=new _0x3d30e1(_0x335485),this[_0x234426(0xd1)]=new _0x19cde7(_0x335485,_0x4bdbc2),this[_0x234426(0xbb)]=new _0x5f1ccd(_0x335485),this[_0x234426(0xbb)][_0x234426(0xe8)](this[_0x234426(0xc6)]()),this[_0x234426(0xec)](_0x234426(0xd9),_0x456946),this[_0x234426(0xe8)]({'tag':_0x234426(0xb9),'attributes':{'class':['ck',_0x234426(0xc3),_0x234426(0xbf)],'tabindex':'-1'},'children':this[_0x234426(0xc7)]}),this[_0x234426(0xcf)](),this[_0x234426(0xd6)](_0x234426(0xd7),()=>{const _0x1615d3=_0x234426;this[_0x1615d3(0xeb)](this[_0x1615d3(0xd8)],_0x501c27=>{const _0xa75660=_0x1615d3;this[_0xa75660(0xdc)](_0x501c27);});}),this['on'](_0x234426(0xd2),()=>{const _0x116ada=_0x234426;this[_0x116ada(0xcf)]();}),this[_0x234426(0xcc)]();}[_0x8cf5c(0xb7)](){const _0x2c66c6=_0x8cf5c;this[_0x2c66c6(0xd8)][_0x2c66c6(0xb7)]();}[_0x8cf5c(0xcf)](){const _0x29a8f5=_0x8cf5c;switch(this[_0x29a8f5(0xc7)][_0x29a8f5(0xe6)](),this[_0x29a8f5(0xd9)]){case _0x29a8f5(0xca):this[_0x29a8f5(0xc7)][_0x29a8f5(0xc5)](this[_0x29a8f5(0xb8)]);break;case _0x29a8f5(0xd3):this[_0x29a8f5(0xc7)][_0x29a8f5(0xc5)](this[_0x29a8f5(0xe4)]);break;case _0x29a8f5(0xb6):this[_0x29a8f5(0xc7)][_0x29a8f5(0xcb)]([this[_0x29a8f5(0xd1)],this[_0x29a8f5(0xbb)]]);}}[_0x8cf5c(0xeb)](_0x204a92,_0x44c1bb){const _0x58a698=_0x8cf5c,_0x447176=_0x58a698(0xda),_0x89a76f=_0x204a92[_0x58a698(0xc2)](_0x447176);if(_0x89a76f)return _0x44c1bb(_0x89a76f);const _0xc9451d=new MutationObserver(_0x194683=>{const _0x3c51bd=_0x58a698,_0x474589=_0x194683[_0x3c51bd(0xd4)](_0x531a91=>_0x531a91[_0x3c51bd(0xbe)]===_0x204a92&&_0x531a91[_0x3c51bd(0xce)][_0x3c51bd(0xdd)]>0x0&&_0x531a91[_0x3c51bd(0xce)][0x0][_0x3c51bd(0xd5)][_0x3c51bd(0xc0)]()===_0x447176);_0x474589[_0x3c51bd(0xdd)]&&(_0xc9451d[_0x3c51bd(0xb5)](),_0x44c1bb(_0x474589[0x0][_0x3c51bd(0xce)][0x0]));});_0xc9451d[_0x58a698(0xbd)](_0x204a92,{'childList':!0x0,'subtree':!0x0});}[_0x8cf5c(0xdc)](_0x227f4e){const _0x1eb4af=_0x8cf5c;_0x227f4e[_0x1eb4af(0xc1)](_0x1eb4af(0xe5),_0x4daca8=>{const _0x26ef4b=_0x1eb4af;this[_0x26ef4b(0xba)](_0x26ef4b(0xe5),{'imageSrc':_0x4daca8[_0x26ef4b(0xde)][_0x26ef4b(0xea)]});}),_0x227f4e[_0x1eb4af(0xc1)](_0x1eb4af(0xe3),()=>{const _0x71bc0d=_0x1eb4af;this[_0x71bc0d(0xba)](_0x71bc0d(0xe3));});}[_0x8cf5c(0xcc)](){const _0x5b1cbf=_0x8cf5c;this[_0x5b1cbf(0xe4)]['on'](_0x5b1cbf(0xe2),()=>{const _0x336962=_0x5b1cbf;this[_0x336962(0xba)](_0x336962(0xe2));});}}
23
+ const _0x59bc15=_0x4fd0;(function(_0x12e3ca,_0x161b48){const _0x49dbcf=_0x4fd0,_0x3ebcd2=_0x12e3ca();while(!![]){try{const _0x3c54f5=parseInt(_0x49dbcf(0x1ea))/0x1*(parseInt(_0x49dbcf(0x1db))/0x2)+-parseInt(_0x49dbcf(0x1f2))/0x3*(parseInt(_0x49dbcf(0x1eb))/0x4)+-parseInt(_0x49dbcf(0x1f6))/0x5*(parseInt(_0x49dbcf(0x202))/0x6)+parseInt(_0x49dbcf(0x1e0))/0x7*(-parseInt(_0x49dbcf(0x1d7))/0x8)+-parseInt(_0x49dbcf(0x20b))/0x9*(-parseInt(_0x49dbcf(0x20e))/0xa)+-parseInt(_0x49dbcf(0x1e6))/0xb*(-parseInt(_0x49dbcf(0x1e9))/0xc)+-parseInt(_0x49dbcf(0x1da))/0xd*(-parseInt(_0x49dbcf(0x1f8))/0xe);if(_0x3c54f5===_0x161b48)break;else _0x3ebcd2['push'](_0x3ebcd2['shift']());}catch(_0x224dff){_0x3ebcd2['push'](_0x3ebcd2['shift']());}}}(_0x2e45,0x19231));import{View as _0x71ecfb}from'ckeditor5/src/ui.js';import{UploadcareImageEditFormLoadingView as _0xad3740}from'./uploadcareimageeditformloadingview.js';import{UploadcareImageEditFormErrorView as _0x45dbfb}from'./uploadcareimageeditformerrorview.js';function _0x4fd0(_0x59fea6,_0x364398){const _0x2e457c=_0x2e45();return _0x4fd0=function(_0x4fd0a1,_0x5e9357){_0x4fd0a1=_0x4fd0a1-0x1d7;let _0x4c2434=_0x2e457c[_0x4fd0a1];return _0x4c2434;},_0x4fd0(_0x59fea6,_0x364398);}import{UploadcareImageEditFormEditingView as _0x5ce75a}from'./uploadcareimageeditformeditingview.js';import{DialogFocusManagerView as _0x59371b}from'../../utils/dialogfocusmanagerview.js';function _0x2e45(){const _0x35e263=['cdnUrl','_editingView','427NHGUye','setTemplate','detail','addEventListener','_loadingView','uc-cloud-image-editor','1136564aarXqJ','observe','querySelector','12QxWEwu','7411CMTyUj','412CgrXfR','toLowerCase','ck-uploadcare-form','nodeName','_focusableView','_waitForImageEditorComponent','once','1281XaQaUo','length','status','fire','3305lcupLM','focus','812KGKKCJ','cancel','_addErrorViewListeners','div','add','createCollection','getFocusableElement','element','retry','addedNodes','924lZNYPS','ready','_addUploadcareImageEditorListeners','render','error','apply','_errorView','uploading','ck-reset_all-excluded','459AAdRKq','target','change:status','12710sOYCbr','clear','set','_items','18688QWmUpW','filter','_setView','45019pyWIrt','6UqQQXn','addMany','disconnect'];_0x2e45=function(){return _0x35e263;};return _0x2e45();}import'../../../theme/uploadcare-form.css';export class UploadcareImageEditFormView extends _0x59371b{[_0x59bc15(0x211)];[_0x59bc15(0x1e4)];[_0x59bc15(0x208)];[_0x59bc15(0x1df)];[_0x59bc15(0x1ef)];constructor(_0x3e0588,_0x4243ba,_0x329545){const _0x1a7e36=_0x59bc15;super(_0x3e0588),this[_0x1a7e36(0x211)]=this[_0x1a7e36(0x1fd)](),this[_0x1a7e36(0x1e4)]=new _0xad3740(_0x3e0588),this[_0x1a7e36(0x208)]=new _0x45dbfb(_0x3e0588),this[_0x1a7e36(0x1df)]=new _0x5ce75a(_0x3e0588,_0x329545),this[_0x1a7e36(0x1ef)]=new _0x71ecfb(_0x3e0588),this[_0x1a7e36(0x1ef)][_0x1a7e36(0x1e1)](this[_0x1a7e36(0x1fe)]()),this[_0x1a7e36(0x210)](_0x1a7e36(0x1f4),_0x4243ba),this[_0x1a7e36(0x1e1)]({'tag':_0x1a7e36(0x1fb),'attributes':{'class':['ck',_0x1a7e36(0x20a),_0x1a7e36(0x1ed)],'tabindex':'-1'},'children':this[_0x1a7e36(0x211)]}),this[_0x1a7e36(0x1d9)](),this[_0x1a7e36(0x1f1)](_0x1a7e36(0x205),()=>{const _0x142159=_0x1a7e36;this[_0x142159(0x1f0)](this[_0x142159(0x1ff)],_0x515385=>{const _0xd72ade=_0x142159;this[_0xd72ade(0x204)](_0x515385);});}),this['on'](_0x1a7e36(0x20d),()=>{const _0x50b5e5=_0x1a7e36;this[_0x50b5e5(0x1d9)]();}),this[_0x1a7e36(0x1fa)]();}[_0x59bc15(0x1f7)](){const _0x3339bb=_0x59bc15;this[_0x3339bb(0x1ff)][_0x3339bb(0x1f7)]();}[_0x59bc15(0x1d9)](){const _0x28c10d=_0x59bc15;switch(this[_0x28c10d(0x211)][_0x28c10d(0x20f)](),this[_0x28c10d(0x1f4)]){case _0x28c10d(0x209):this[_0x28c10d(0x211)][_0x28c10d(0x1fc)](this[_0x28c10d(0x1e4)]);break;case _0x28c10d(0x206):this[_0x28c10d(0x211)][_0x28c10d(0x1fc)](this[_0x28c10d(0x208)]);break;case _0x28c10d(0x203):this[_0x28c10d(0x211)][_0x28c10d(0x1dc)]([this[_0x28c10d(0x1df)],this[_0x28c10d(0x1ef)]]);}}[_0x59bc15(0x1f0)](_0x3d2b8e,_0x343c83){const _0x46e53a=_0x59bc15,_0x4b72bb=_0x46e53a(0x1e5),_0x4ef4d0=_0x3d2b8e[_0x46e53a(0x1e8)](_0x4b72bb);if(_0x4ef4d0)return _0x343c83(_0x4ef4d0);const _0x49dae0=new MutationObserver(_0x1c4d85=>{const _0x3f5364=_0x46e53a,_0x4057cd=_0x1c4d85[_0x3f5364(0x1d8)](_0x3e3463=>_0x3e3463[_0x3f5364(0x20c)]===_0x3d2b8e&&_0x3e3463[_0x3f5364(0x201)][_0x3f5364(0x1f3)]>0x0&&_0x3e3463[_0x3f5364(0x201)][0x0][_0x3f5364(0x1ee)][_0x3f5364(0x1ec)]()===_0x4b72bb);_0x4057cd[_0x3f5364(0x1f3)]&&(_0x49dae0[_0x3f5364(0x1dd)](),_0x343c83(_0x4057cd[0x0][_0x3f5364(0x201)][0x0]));});_0x49dae0[_0x46e53a(0x1e7)](_0x3d2b8e,{'childList':!0x0,'subtree':!0x0});}[_0x59bc15(0x204)](_0x3e4d32){const _0x154283=_0x59bc15;_0x3e4d32[_0x154283(0x1e3)](_0x154283(0x207),_0x1fa87f=>{const _0x7c29f9=_0x154283;this[_0x7c29f9(0x1f5)](_0x7c29f9(0x207),{'imageSrc':_0x1fa87f[_0x7c29f9(0x1e2)][_0x7c29f9(0x1de)]});}),_0x3e4d32[_0x154283(0x1e3)](_0x154283(0x1f9),()=>{const _0x32d076=_0x154283;this[_0x32d076(0x1f5)](_0x32d076(0x1f9));});}[_0x59bc15(0x1fa)](){const _0x224bcd=_0x59bc15;this[_0x224bcd(0x208)]['on'](_0x224bcd(0x200),()=>{const _0x5a634b=_0x224bcd;this[_0x5a634b(0x1f5)](_0x5a634b(0x200));});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5c543f=_0x47ba;function _0x47ba(_0x4b2557,_0x23bf5c){const _0x2ea06c=_0x2ea0();return _0x47ba=function(_0x47ba4d,_0x54f384){_0x47ba4d=_0x47ba4d-0x115;let _0x19b9ce=_0x2ea06c[_0x47ba4d];return _0x19b9ce;},_0x47ba(_0x4b2557,_0x23bf5c);}(function(_0x3970aa,_0x589045){const _0x1b269d=_0x47ba,_0x229477=_0x3970aa();while(!![]){try{const _0x370ac5=-parseInt(_0x1b269d(0x134))/0x1*(-parseInt(_0x1b269d(0x121))/0x2)+-parseInt(_0x1b269d(0x11d))/0x3+parseInt(_0x1b269d(0x116))/0x4+parseInt(_0x1b269d(0x127))/0x5*(parseInt(_0x1b269d(0x123))/0x6)+-parseInt(_0x1b269d(0x118))/0x7*(parseInt(_0x1b269d(0x11e))/0x8)+parseInt(_0x1b269d(0x12a))/0x9+-parseInt(_0x1b269d(0x130))/0xa*(-parseInt(_0x1b269d(0x12c))/0xb);if(_0x370ac5===_0x589045)break;else _0x229477['push'](_0x229477['shift']());}catch(_0x30cb6e){_0x229477['push'](_0x229477['shift']());}}}(_0x2ea0,0xcbdb9));import{Command as _0xf339f5}from'ckeditor5/src/core.js';import{Dialog as _0x59cbe5}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x41846a}from'./ui/uploadcareimageeditcontroller.js';function _0x2ea0(){const _0x375414=['685165JXmyOA','isActive','config','5391153YyDXgL','plugins','196724zGpQrM','selection','imageEditController','element','460ZhADvy','model','get','uploadcare.allowExternalImagesEditing','3DzCgxp','isEnabled','refresh','2279132FOrzPh','_isEditable','1199891AhqzQR','getSelectedElement','bind','execute','imageInline','4355202YAOgZu','32MlLTWD','requires','document','197172qIfeXL','set','30zBiDCo','unbind','editor','imageBlock'];_0x2ea0=function(){return _0x375414;};return _0x2ea0();}import{createEditabilityChecker as _0x540877}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0xf339f5{[_0x5c543f(0x12e)];static get[_0x5c543f(0x11f)](){return[_0x59cbe5];}[_0x5c543f(0x117)];constructor(_0x1cd19e){const _0x165b8a=_0x5c543f;super(_0x1cd19e),this[_0x165b8a(0x12e)]=void 0x0,this[_0x165b8a(0x117)]=_0x540877(_0x1cd19e[_0x165b8a(0x129)][_0x165b8a(0x132)](_0x165b8a(0x133))||[]),this[_0x165b8a(0x122)]({'isActive':!0x1});}[_0x5c543f(0x115)](){const _0x4859fb=_0x5c543f,_0x27b2be=this[_0x4859fb(0x125)][_0x4859fb(0x131)][_0x4859fb(0x120)][_0x4859fb(0x12d)][_0x4859fb(0x119)]();this[_0x4859fb(0x135)]=this[_0x4859fb(0x117)](_0x27b2be);}[_0x5c543f(0x11b)](){const _0x14e456=_0x5c543f;this[_0x14e456(0x12e)]&&(this[_0x14e456(0x124)](_0x14e456(0x128)),this[_0x14e456(0x12e)]=void 0x0);const _0x3ccde8=this[_0x14e456(0x125)][_0x14e456(0x131)][_0x14e456(0x120)][_0x14e456(0x12d)][_0x14e456(0x119)]();_0x3ccde8&&(_0x3ccde8['is'](_0x14e456(0x12f),_0x14e456(0x126))||_0x3ccde8['is'](_0x14e456(0x12f),_0x14e456(0x11c)))&&(this[_0x14e456(0x12e)]=new _0x41846a(this[_0x14e456(0x125)],this[_0x14e456(0x125)][_0x14e456(0x12b)][_0x14e456(0x132)](_0x59cbe5),_0x3ccde8),this[_0x14e456(0x11a)](_0x14e456(0x128))['to'](this[_0x14e456(0x12e)],_0x14e456(0x128)));}}
23
+ const _0x559e6b=_0x4e73;(function(_0x1acc6c,_0x3bd63){const _0x47543e=_0x4e73,_0x3470ef=_0x1acc6c();while(!![]){try{const _0x3028c4=-parseInt(_0x47543e(0x8d))/0x1+parseInt(_0x47543e(0x81))/0x2+parseInt(_0x47543e(0x7c))/0x3+-parseInt(_0x47543e(0x85))/0x4*(parseInt(_0x47543e(0x7b))/0x5)+-parseInt(_0x47543e(0x94))/0x6*(-parseInt(_0x47543e(0x98))/0x7)+-parseInt(_0x47543e(0x95))/0x8+parseInt(_0x47543e(0x87))/0x9*(parseInt(_0x47543e(0x80))/0xa);if(_0x3028c4===_0x3bd63)break;else _0x3470ef['push'](_0x3470ef['shift']());}catch(_0x463449){_0x3470ef['push'](_0x3470ef['shift']());}}}(_0x5f16,0x3011a));function _0x5f16(){const _0xd8b3d3=['get','_isEditable','set','plugins','refresh','315080GJnQgP','isEnabled','imageBlock','isActive','uploadcare.allowExternalImagesEditing','execute','element','14172TSyWcb','2416616AQGKrv','editor','selection','672hwiFKc','getSelectedElement','bind','25RelNCt','810588UoTkOc','imageInline','unbind','config','80lcDlQk','479780UXHSCU','requires','model','document','67308igULiA','imageEditController','181512AmZNRI'];_0x5f16=function(){return _0xd8b3d3;};return _0x5f16();}function _0x4e73(_0x33badc,_0x11f301){const _0x5f1625=_0x5f16();return _0x4e73=function(_0x4e73c2,_0x172e8d){_0x4e73c2=_0x4e73c2-0x7a;let _0x1d06f6=_0x5f1625[_0x4e73c2];return _0x1d06f6;},_0x4e73(_0x33badc,_0x11f301);}import{Command as _0x35b064}from'ckeditor5/src/core.js';import{Dialog as _0x298567}from'ckeditor5/src/ui.js';import{UploadcareImageEditController as _0x5bd983}from'./ui/uploadcareimageeditcontroller.js';import{createEditabilityChecker as _0x252ebe}from'../utils/editingutils.js';export class UploadcareImageEditCommand extends _0x35b064{[_0x559e6b(0x86)];static get[_0x559e6b(0x82)](){return[_0x298567];}[_0x559e6b(0x89)];constructor(_0xffeab7){const _0x2ed790=_0x559e6b;super(_0xffeab7),this[_0x2ed790(0x86)]=void 0x0,this[_0x2ed790(0x89)]=_0x252ebe(_0xffeab7[_0x2ed790(0x7f)][_0x2ed790(0x88)](_0x2ed790(0x91))||[]),this[_0x2ed790(0x8a)]({'isActive':!0x1});}[_0x559e6b(0x8c)](){const _0x4f2503=_0x559e6b,_0x37ba3f=this[_0x4f2503(0x96)][_0x4f2503(0x83)][_0x4f2503(0x84)][_0x4f2503(0x97)][_0x4f2503(0x99)]();this[_0x4f2503(0x8e)]=this[_0x4f2503(0x89)](_0x37ba3f);}[_0x559e6b(0x92)](){const _0xa18a22=_0x559e6b;this[_0xa18a22(0x86)]&&(this[_0xa18a22(0x7e)](_0xa18a22(0x90)),this[_0xa18a22(0x86)]=void 0x0);const _0x12fbc1=this[_0xa18a22(0x96)][_0xa18a22(0x83)][_0xa18a22(0x84)][_0xa18a22(0x97)][_0xa18a22(0x99)]();_0x12fbc1&&(_0x12fbc1['is'](_0xa18a22(0x93),_0xa18a22(0x8f))||_0x12fbc1['is'](_0xa18a22(0x93),_0xa18a22(0x7d)))&&(this[_0xa18a22(0x86)]=new _0x5bd983(this[_0xa18a22(0x96)],this[_0xa18a22(0x96)][_0xa18a22(0x8b)][_0xa18a22(0x88)](_0x298567),_0x12fbc1),this[_0xa18a22(0x7a)](_0xa18a22(0x90))['to'](this[_0xa18a22(0x86)],_0xa18a22(0x90)));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1ba6(_0x27e83c,_0x5ef488){const _0x351fb5=_0x351f();return _0x1ba6=function(_0x1ba65e,_0x3207c7){_0x1ba65e=_0x1ba65e-0x1a8;let _0xf1a4f0=_0x351fb5[_0x1ba65e];return _0xf1a4f0;},_0x1ba6(_0x27e83c,_0x5ef488);}function _0x351f(){const _0x3766f7=['ImageUtils','requires','ImageEditing','add','init','commands','isPremiumPlugin','pluginName','9223911DlIoUL','5489640IGBXwv','326277OMTacE','726192MTMdpc','uploadcareImageEdit','927204RhUgud','isOfficialPlugin','5506ZwQlAT','21WSqvHC','240RhaOrA','UploadcareImageEditEditing','579515AJvGvn','uploadcareImageReplace'];_0x351f=function(){return _0x3766f7;};return _0x351f();}const _0x4e81c8=_0x1ba6;(function(_0x3ec565,_0x418439){const _0x2e974d=_0x1ba6,_0x3d5be6=_0x3ec565();while(!![]){try{const _0x1bf850=parseInt(_0x2e974d(0x1b3))/0x1*(parseInt(_0x2e974d(0x1b5))/0x2)+parseInt(_0x2e974d(0x1ae))/0x3+-parseInt(_0x2e974d(0x1af))/0x4+-parseInt(_0x2e974d(0x1b7))/0x5+-parseInt(_0x2e974d(0x1b1))/0x6*(parseInt(_0x2e974d(0x1b4))/0x7)+-parseInt(_0x2e974d(0x1ad))/0x8+parseInt(_0x2e974d(0x1ac))/0x9;if(_0x1bf850===_0x418439)break;else _0x3d5be6['push'](_0x3d5be6['shift']());}catch(_0x2cd9ff){_0x3d5be6['push'](_0x3d5be6['shift']());}}}(_0x351f,0x54bdc));import{Plugin as _0x1a33b5}from'ckeditor5/src/core.js';import{Notification as _0x5669ad}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x24e918}from'./uploadcareimageeditcommand.js';import{UploadcareImageReplaceCommand as _0x51f2fc}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x21f0e7}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x1a33b5{static get[_0x4e81c8(0x1ab)](){const _0x38d0f3=_0x4e81c8;return _0x38d0f3(0x1b6);}static get[_0x4e81c8(0x1ba)](){const _0x27f440=_0x4e81c8;return[_0x21f0e7,_0x5669ad,_0x27f440(0x1b9),_0x27f440(0x1bb)];}static get[_0x4e81c8(0x1b2)](){return!0x0;}static get[_0x4e81c8(0x1aa)](){return!0x0;}[_0x4e81c8(0x1a8)](){const _0x4ba7a0=_0x4e81c8,{editor:_0x2a95ef}=this;_0x2a95ef[_0x4ba7a0(0x1a9)][_0x4ba7a0(0x1bc)](_0x4ba7a0(0x1b0),new _0x24e918(_0x2a95ef)),_0x2a95ef[_0x4ba7a0(0x1a9)][_0x4ba7a0(0x1bc)](_0x4ba7a0(0x1b8),new _0x51f2fc(_0x2a95ef));}}
23
+ const _0x829e69=_0x3250;(function(_0x52a8d5,_0x2e16b0){const _0x34b11b=_0x3250,_0x5916e3=_0x52a8d5();while(!![]){try{const _0x3ec6b1=parseInt(_0x34b11b(0xa3))/0x1*(-parseInt(_0x34b11b(0x93))/0x2)+-parseInt(_0x34b11b(0xa7))/0x3*(-parseInt(_0x34b11b(0x9b))/0x4)+-parseInt(_0x34b11b(0x9c))/0x5+parseInt(_0x34b11b(0x92))/0x6*(parseInt(_0x34b11b(0x9f))/0x7)+-parseInt(_0x34b11b(0x97))/0x8+-parseInt(_0x34b11b(0x9e))/0x9*(parseInt(_0x34b11b(0x91))/0xa)+parseInt(_0x34b11b(0x9d))/0xb;if(_0x3ec6b1===_0x2e16b0)break;else _0x5916e3['push'](_0x5916e3['shift']());}catch(_0x4f8b5d){_0x5916e3['push'](_0x5916e3['shift']());}}}(_0x3dca,0x82e38));import{Plugin as _0x4b2e1d}from'ckeditor5/src/core.js';import{Notification as _0x33b6c1}from'ckeditor5/src/ui.js';import{UploadcareImageEditCommand as _0x2ed247}from'./uploadcareimageeditcommand.js';function _0x3dca(){const _0x2a9967=['commands','isPremiumPlugin','ImageUtils','7896696HzGAKO','ImageEditing','uploadcareImageEdit','pluginName','56ltlhVO','1119030IYGxPy','25059881MDlkGW','5553xOetTC','1690423MSomZo','isOfficialPlugin','requires','add','13358GVPgKI','uploadcareImageReplace','UploadcareImageEditEditing','init','39087NlumGk','9850WNfgCd','6aPAhLF','52IefGsz'];_0x3dca=function(){return _0x2a9967;};return _0x3dca();}function _0x3250(_0x126a73,_0x4a3695){const _0x3dcab1=_0x3dca();return _0x3250=function(_0x325018,_0x55e821){_0x325018=_0x325018-0x91;let _0x1ab266=_0x3dcab1[_0x325018];return _0x1ab266;},_0x3250(_0x126a73,_0x4a3695);}import{UploadcareImageReplaceCommand as _0x23acaf}from'./uploadcareimagereplacecommand.js';import{UploadcareEditing as _0x37e784}from'../uploadcareediting.js';export class UploadcareImageEditEditing extends _0x4b2e1d{static get[_0x829e69(0x9a)](){const _0x463f6f=_0x829e69;return _0x463f6f(0xa5);}static get[_0x829e69(0xa1)](){const _0x290fbe=_0x829e69;return[_0x37e784,_0x33b6c1,_0x290fbe(0x96),_0x290fbe(0x98)];}static get[_0x829e69(0xa0)](){return!0x0;}static get[_0x829e69(0x95)](){return!0x0;}[_0x829e69(0xa6)](){const _0x476c79=_0x829e69,{editor:_0x47d425}=this;_0x47d425[_0x476c79(0x94)][_0x476c79(0xa2)](_0x476c79(0x99),new _0x2ed247(_0x47d425)),_0x47d425[_0x476c79(0x94)][_0x476c79(0xa2)](_0x476c79(0xa4),new _0x23acaf(_0x47d425));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x537c37}from'ckeditor5/src/core.js';import{ButtonView as _0x4e22b5}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x31b7ca}from'ckeditor5/src/icons.js';import{createElement as _0x5beac4}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 _0x537c37{['_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 _0x5a3eae=this['editor'];_0x5a3eae['ui']['componentFactory']['add']('uploadcareImageEdit',_0x258ce9=>{const _0x335f5e=_0x5a3eae['commands']['get']('uploadcareImageEdit'),_0x2a2fe5=new _0x4e22b5(_0x258ce9),t=_0x258ce9['t'];return _0x2a2fe5['set']({'icon':_0x31b7ca,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x2a2fe5['bind']('isEnabled')['to'](_0x335f5e),_0x2a2fe5['bind']('isOn')['to'](_0x335f5e,'isActive'),this['listenTo'](_0x2a2fe5,'execute',()=>{_0x5a3eae['execute']('uploadcareImageEdit'),_0x5a3eae['editing']['view']['focus']();}),_0x2a2fe5;}),this['_initConfig']();}['_initConfig'](){const _0x36bbe7=_0x5beac4(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x36bbe7),this['listenTo'](this['editor'],'destroy',()=>{_0x36bbe7['remove']();});}}
23
+ import{Plugin as _0x5ef17d}from'ckeditor5/src/core.js';import{ButtonView as _0x57ad8b}from'ckeditor5/src/ui.js';import{IconUploadcareImageEdit as _0x210ccc}from'ckeditor5/src/icons.js';import{createElement as _0x4d524c}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 _0x5ef17d{['_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 _0x23f5a4=this['editor'];_0x23f5a4['ui']['componentFactory']['add']('uploadcareImageEdit',_0x4a7e33=>{const _0x2c3a2a=_0x23f5a4['commands']['get']('uploadcareImageEdit'),_0x1d7d1f=new _0x57ad8b(_0x4a7e33),t=_0x4a7e33['t'];return _0x1d7d1f['set']({'icon':_0x210ccc,'tooltip':!0x0,'label':t({'id':'Edit\x20Image\x20(Uploadcare)','string':'Edit\x20image'})}),_0x1d7d1f['bind']('isEnabled')['to'](_0x2c3a2a),_0x1d7d1f['bind']('isOn')['to'](_0x2c3a2a,'isActive'),this['listenTo'](_0x1d7d1f,'execute',()=>{_0x23f5a4['execute']('uploadcareImageEdit'),_0x23f5a4['editing']['view']['focus']();}),_0x1d7d1f;}),this['_initConfig']();}['_initConfig'](){const _0x453393=_0x4d524c(document,'uc-config',{'ctx-name':'image-edit','removeCopyright':'true','localeName':this['editor']['locale']['contentLanguage']});document['body']['appendChild'](_0x453393),this['listenTo'](this['editor'],'destroy',()=>{_0x453393['remove']();});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x14b3d6=_0x580e;function _0x2b7f(){const _0x2f9f6d=['refresh','isEnabled','setAttributes','208172vvxGQT','imageInline','editor','18gCmKYa','execute','change','8zsOqKO','selection','27fVSNiL','document','2232378AHooKR','getSelectedElement','srcset','model','sizes','724577jcopmW','4600850tgaGJu','imageBlock','1303925KbydHn','element','238924oxEZJD','570406XXImtn','removeAttribute'];_0x2b7f=function(){return _0x2f9f6d;};return _0x2b7f();}(function(_0x48bd40,_0x268fbd){const _0x4fa623=_0x580e,_0x5e90a9=_0x48bd40();while(!![]){try{const _0x27005b=parseInt(_0x4fa623(0x109))/0x1+-parseInt(_0x4fa623(0x10a))/0x2+-parseInt(_0x4fa623(0x117))/0x3*(-parseInt(_0x4fa623(0x10f))/0x4)+parseInt(_0x4fa623(0x107))/0x5+parseInt(_0x4fa623(0x119))/0x6+-parseInt(_0x4fa623(0x11e))/0x7*(-parseInt(_0x4fa623(0x115))/0x8)+parseInt(_0x4fa623(0x112))/0x9*(-parseInt(_0x4fa623(0x11f))/0xa);if(_0x27005b===_0x268fbd)break;else _0x5e90a9['push'](_0x5e90a9['shift']());}catch(_0x1b450d){_0x5e90a9['push'](_0x5e90a9['shift']());}}}(_0x2b7f,0x3a2d9));function _0x580e(_0x53a43c,_0x3050a8){const _0x2b7f16=_0x2b7f();return _0x580e=function(_0x580e69,_0xf523e9){_0x580e69=_0x580e69-0x106;let _0x2c26ff=_0x2b7f16[_0x580e69];return _0x2c26ff;},_0x580e(_0x53a43c,_0x3050a8);}import{Command as _0x438ce0}from'ckeditor5/src/core.js';export class UploadcareImageReplaceCommand extends _0x438ce0{[_0x14b3d6(0x10c)](){const _0xc0bb5a=_0x14b3d6,_0x1cb92f=this[_0xc0bb5a(0x111)][_0xc0bb5a(0x11c)][_0xc0bb5a(0x118)][_0xc0bb5a(0x116)][_0xc0bb5a(0x11a)]();this[_0xc0bb5a(0x10d)]=Boolean(_0x1cb92f&&(_0x1cb92f['is'](_0xc0bb5a(0x108),_0xc0bb5a(0x106))||_0x1cb92f['is'](_0xc0bb5a(0x108),_0xc0bb5a(0x110))));}[_0x14b3d6(0x113)](_0x147912){const _0x5916f2=_0x14b3d6,_0x5e029b=this[_0x5916f2(0x111)][_0x5916f2(0x11c)][_0x5916f2(0x118)][_0x5916f2(0x116)][_0x5916f2(0x11a)]();this[_0x5916f2(0x111)][_0x5916f2(0x11c)][_0x5916f2(0x114)](_0x20084f=>{const _0x32a16d=_0x5916f2;_0x20084f[_0x32a16d(0x10e)](_0x147912,_0x5e029b),_0x20084f[_0x32a16d(0x10b)](_0x32a16d(0x11b),_0x5e029b),_0x20084f[_0x32a16d(0x10b)](_0x32a16d(0x11d),_0x5e029b);});}}
23
+ function _0x386f(){const _0x3443b4=['2179385jYXpml','3550zUTEcR','11751439vjoQkn','imageInline','33jCmFIe','isEnabled','587112YqsAFa','execute','imageBlock','element','sizes','934Mdjxyg','81tuegLi','document','srcset','getSelectedElement','2028714UFdVOO','3325136lvoFSF','editor','change','model','removeAttribute','setAttributes','refresh','1307110GElPhd','selection'];_0x386f=function(){return _0x3443b4;};return _0x386f();}const _0x2d6527=_0x561f;(function(_0x3ba14d,_0x58ed90){const _0x38ebe1=_0x561f,_0x5477c9=_0x3ba14d();while(!![]){try{const _0x159dd4=parseInt(_0x38ebe1(0x120))/0x1*(parseInt(_0x38ebe1(0x130))/0x2)+parseInt(_0x38ebe1(0x119))/0x3*(-parseInt(_0x38ebe1(0x11b))/0x4)+-parseInt(_0x38ebe1(0x12f))/0x5+parseInt(_0x38ebe1(0x125))/0x6+parseInt(_0x38ebe1(0x117))/0x7+parseInt(_0x38ebe1(0x126))/0x8+parseInt(_0x38ebe1(0x121))/0x9*(-parseInt(_0x38ebe1(0x12d))/0xa);if(_0x159dd4===_0x58ed90)break;else _0x5477c9['push'](_0x5477c9['shift']());}catch(_0x43a39c){_0x5477c9['push'](_0x5477c9['shift']());}}}(_0x386f,0xd2d42));import{Command as _0x36960e}from'ckeditor5/src/core.js';function _0x561f(_0x33d5bc,_0x534f12){const _0x386f7c=_0x386f();return _0x561f=function(_0x561f85,_0x4eda7d){_0x561f85=_0x561f85-0x117;let _0x51253=_0x386f7c[_0x561f85];return _0x51253;},_0x561f(_0x33d5bc,_0x534f12);}export class UploadcareImageReplaceCommand extends _0x36960e{[_0x2d6527(0x12c)](){const _0x3b6839=_0x2d6527,_0x3c340f=this[_0x3b6839(0x127)][_0x3b6839(0x129)][_0x3b6839(0x122)][_0x3b6839(0x12e)][_0x3b6839(0x124)]();this[_0x3b6839(0x11a)]=Boolean(_0x3c340f&&(_0x3c340f['is'](_0x3b6839(0x11e),_0x3b6839(0x11d))||_0x3c340f['is'](_0x3b6839(0x11e),_0x3b6839(0x118))));}[_0x2d6527(0x11c)](_0x39fbfe){const _0xe39d8d=_0x2d6527,_0x3852fb=this[_0xe39d8d(0x127)][_0xe39d8d(0x129)][_0xe39d8d(0x122)][_0xe39d8d(0x12e)][_0xe39d8d(0x124)]();this[_0xe39d8d(0x127)][_0xe39d8d(0x129)][_0xe39d8d(0x128)](_0x539247=>{const _0x1006cc=_0xe39d8d;_0x539247[_0x1006cc(0x12b)](_0x39fbfe,_0x3852fb),_0x539247[_0x1006cc(0x12a)](_0x1006cc(0x123),_0x3852fb),_0x539247[_0x1006cc(0x12a)](_0x1006cc(0x11f),_0x3852fb);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3737(){var _0x5ed7de=['110920qPTUyd','1262072mWPsxD','UploadcareImageEdit','7gVqCBV','123686DMIgKx','1946870xFDsyE','63wRENfo','2096742LVxhoD','pluginName','requires','429201QKRAQn','isOfficialPlugin','isPremiumPlugin','368348BVACTb'];_0x3737=function(){return _0x5ed7de;};return _0x3737();}function _0x5701(_0x2cf585,_0x40e83f){var _0x37377a=_0x3737();return _0x5701=function(_0x570196,_0x3f3bbd){_0x570196=_0x570196-0xf2;var _0x23c19b=_0x37377a[_0x570196];return _0x23c19b;},_0x5701(_0x2cf585,_0x40e83f);}var _0x2c7064=_0x5701;(function(_0x507bb2,_0x88e2b5){var _0x568264=_0x5701,_0x5e5563=_0x507bb2();while(!![]){try{var _0xc0e950=-parseInt(_0x568264(0xff))/0x1+parseInt(_0x568264(0xfa))/0x2+-parseInt(_0x568264(0xf7))/0x3+-parseInt(_0x568264(0xfb))/0x4+-parseInt(_0x568264(0xf2))/0x5+parseInt(_0x568264(0xf4))/0x6*(-parseInt(_0x568264(0xfe))/0x7)+parseInt(_0x568264(0xfc))/0x8*(parseInt(_0x568264(0xf3))/0x9);if(_0xc0e950===_0x88e2b5)break;else _0x5e5563['push'](_0x5e5563['shift']());}catch(_0x2eb334){_0x5e5563['push'](_0x5e5563['shift']());}}}(_0x3737,0x3e4c5));import{Plugin as _0x66b221}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0xd7ae66}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x54cf90}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x66b221{static get[_0x2c7064(0xf5)](){var _0x4c7d1a=_0x2c7064;return _0x4c7d1a(0xfd);}static get[_0x2c7064(0xf6)](){return[_0xd7ae66,_0x54cf90];}static get[_0x2c7064(0xf8)](){return!0x0;}static get[_0x2c7064(0xf9)](){return!0x0;}}
23
+ function _0x353c(){var _0xe1c3c7=['18428jcpNSD','4870NIpgor','738050lvHZxL','1098dNnZbo','requires','2559935ZGwkLd','1828OnBllU','UploadcareImageEdit','171OcXVie','8FYhPWg','isPremiumPlugin','6822948jMsnog','pluginName','42259243eLfOVp','isOfficialPlugin','4374OfnSOF','12ArbQGX','85XZBqMD'];_0x353c=function(){return _0xe1c3c7;};return _0x353c();}function _0xd321(_0x176807,_0x4b8608){var _0x353c0b=_0x353c();return _0xd321=function(_0xd321d5,_0x528fe5){_0xd321d5=_0xd321d5-0x1e5;var _0xd8a1c2=_0x353c0b[_0xd321d5];return _0xd8a1c2;},_0xd321(_0x176807,_0x4b8608);}var _0x329144=_0xd321;(function(_0x2cd86d,_0x5daf69){var _0x2392a0=_0xd321,_0x3aa864=_0x2cd86d();while(!![]){try{var _0x51104a=parseInt(_0x2392a0(0x1eb))/0x1*(parseInt(_0x2392a0(0x1ec))/0x2)+-parseInt(_0x2392a0(0x1ef))/0x3*(-parseInt(_0x2392a0(0x1f2))/0x4)+parseInt(_0x2392a0(0x1ed))/0x5*(parseInt(_0x2392a0(0x1e9))/0x6)+parseInt(_0x2392a0(0x1f1))/0x7*(parseInt(_0x2392a0(0x1f5))/0x8)+-parseInt(_0x2392a0(0x1f4))/0x9*(-parseInt(_0x2392a0(0x1ee))/0xa)+parseInt(_0x2392a0(0x1e5))/0xb+-parseInt(_0x2392a0(0x1ea))/0xc*(parseInt(_0x2392a0(0x1e7))/0xd);if(_0x51104a===_0x5daf69)break;else _0x3aa864['push'](_0x3aa864['shift']());}catch(_0x220c75){_0x3aa864['push'](_0x3aa864['shift']());}}}(_0x353c,0xc2d67));import{Plugin as _0x58ecf1}from'ckeditor5/src/core.js';import{UploadcareImageEditEditing as _0x861e18}from'./uploadcareimageedit/uploadcareimageeditediting.js';import{UploadcareImageEditUI as _0x35c562}from'./uploadcareimageedit/uploadcareimageeditui.js';export class UploadcareImageEdit extends _0x58ecf1{static get[_0x329144(0x1e6)](){var _0x40788a=_0x329144;return _0x40788a(0x1f3);}static get[_0x329144(0x1f0)](){return[_0x861e18,_0x35c562];}static get[_0x329144(0x1e8)](){return!0x0;}static get[_0x329144(0x1f6)](){return!0x0;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x13c601=_0x17a4;(function(_0x35b888,_0x5985cf){const _0x3665de=_0x17a4,_0x663673=_0x35b888();while(!![]){try{const _0x52bc30=parseInt(_0x3665de(0xb9))/0x1*(parseInt(_0x3665de(0xc4))/0x2)+-parseInt(_0x3665de(0xa8))/0x3+-parseInt(_0x3665de(0xef))/0x4+parseInt(_0x3665de(0xe3))/0x5*(-parseInt(_0x3665de(0xcb))/0x6)+-parseInt(_0x3665de(0xf1))/0x7+parseInt(_0x3665de(0xac))/0x8+parseInt(_0x3665de(0xeb))/0x9*(parseInt(_0x3665de(0xf5))/0xa);if(_0x52bc30===_0x5985cf)break;else _0x663673['push'](_0x663673['shift']());}catch(_0x371d31){_0x663673['push'](_0x663673['shift']());}}}(_0x3d02,0x51cff));import{Plugin as _0x23109d}from'ckeditor5/src/core.js';import{IconDropbox as _0x229b47,IconFacebook as _0x49a184,IconGoogleDrive as _0x26a09c,IconGooglePhotos as _0x4f0374,IconUploadcareImageUpload as _0x3e0e0d,IconUploadcareLink as _0x30eb19,IconOneDrive as _0x313d2e}from'ckeditor5/src/icons.js';function _0x17a4(_0x18dcec,_0x5b9c9b){const _0x3d02f9=_0x3d02();return _0x17a4=function(_0x17a454,_0x39707a){_0x17a454=_0x17a454-0xa7;let _0x32f261=_0x3d02f9[_0x17a454];return _0x32f261;},_0x17a4(_0x18dcec,_0x5b9c9b);}import{ButtonView as _0x2a1eb1,MenuBarMenuListItemButtonView as _0x117e29}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x50d7f1}from'./uploadcareconfig.js';import{getTranslation as _0x9534fa}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 _0x3d02(){const _0x335197=['destroy','evaluationLimit','has','GDrive','isPremiumPlugin','uploadcareLicenseKeyExpired','upload','3auGnsd','isEnabled','GPhotos','shortText','_showLicenseError','_createMenuBarButtons','Dropbox','uploadcareLicenseKeyInvalid','locale','execute','type','157308CTganp','invalid','_normalizeConfigSourceList','bind','expired','_createButton','afterInit','4626tRLawr','Uploadcare','editor','pluginName','assetManager','isImageSelected','_getIntegrationKey','Facebook','text','_createDropdownButtons','get','plugins','forEach','Local','_licenseKeyCheckInterval','uploadcareLicenseKeyValid','map','icon','registerIntegration','commands','entries','push','UploadcareUI','uploadcareLicenseKeyNotAllowed','545uPrAwg','uploadcareLicenseKeyTrialLimit','OneDrive','usageLimit','uploadcareLicenseKeyDomainLimit','init','config','uploadcareLicenseKeyEvaluationLimit','9jvPsHh','ImageInsertUI','url','Replace','1743952ckoFAd','URL','3647252mVPpdD','_createToolbarButton','withText','Insert','11511130lfTYxX','licenseKey','uploadcareLicenseKeyUsageLimit','featureNotAllowed','716097iUsaCG','trialLimit','isOfficialPlugin','uploadcare','1822320aOwgCL','tooltip','uploadcare.uploader.sourceList','domainLimit','reduce','label'];_0x3d02=function(){return _0x335197;};return _0x3d02();}export class UploadcareUI extends _0x23109d{[_0x13c601(0xf6)];[_0x13c601(0xd9)];static get[_0x13c601(0xce)](){const _0x3f2c4c=_0x13c601;return _0x3f2c4c(0xe1);}static get[_0x13c601(0xaa)](){return!0x0;}static get[_0x13c601(0xb6)](){return!0x0;}[_0x13c601(0xe8)](){const _0x48e29c=_0x13c601;this[_0x48e29c(0xf6)]=this[_0x48e29c(0xcd)][_0x48e29c(0xe9)][_0x48e29c(0xd5)](_0x48e29c(0xf6));const _0x226511=this[_0x48e29c(0xcd)];this[_0x48e29c(0xd9)]=setInterval(()=>{const _0x5d90b3=_0x48e29c;let _0x3b1657;for(const _0x49d4c9 in _0x226511){const _0x2ba5e2=_0x49d4c9,_0x2a7c16=_0x226511[_0x2ba5e2];if(_0x5d90b3(0xda)==_0x2a7c16||_0x5d90b3(0xc0)==_0x2a7c16||_0x5d90b3(0xb7)==_0x2a7c16||_0x5d90b3(0xe7)==_0x2a7c16||_0x5d90b3(0xe2)==_0x2a7c16||_0x5d90b3(0xea)==_0x2a7c16||_0x5d90b3(0xe4)==_0x2a7c16||_0x5d90b3(0xf7)==_0x2a7c16){delete _0x226511[_0x2ba5e2],_0x3b1657=_0x2a7c16,clearInterval(this[_0x5d90b3(0xd9)]),this[_0x5d90b3(0xd9)]=void 0x0;break;}}_0x5d90b3(0xc0)==_0x3b1657&&_0x226511[_0x5d90b3(0xbd)](_0x5d90b3(0xc5)),_0x5d90b3(0xb7)==_0x3b1657&&_0x226511[_0x5d90b3(0xbd)](_0x5d90b3(0xc8)),_0x5d90b3(0xe7)==_0x3b1657&&_0x226511[_0x5d90b3(0xbd)](_0x5d90b3(0xaf)),_0x5d90b3(0xe2)==_0x3b1657&&_0x226511[_0x5d90b3(0xbd)](_0x5d90b3(0xa7),_0x5d90b3(0xcc)),_0x5d90b3(0xea)==_0x3b1657&&_0x226511[_0x5d90b3(0xbd)](_0x5d90b3(0xb3)),_0x5d90b3(0xe4)==_0x3b1657&&_0x226511[_0x5d90b3(0xbd)](_0x5d90b3(0xa9)),_0x5d90b3(0xf7)==_0x3b1657&&_0x226511[_0x5d90b3(0xbd)](_0x5d90b3(0xe6));},0x3e8);}[_0x13c601(0xca)](){const _0x432106=_0x13c601,{editor:_0x13a066}=this,_0x2ddbdf=_0x13a066[_0x432106(0xde)][_0x432106(0xd5)](_0x432106(0xab));if(!_0x2ddbdf)return;const _0x4cd3b6=this[_0x432106(0xc6)](_0x13a066[_0x432106(0xe9)][_0x432106(0xd5)](_0x432106(0xae)))[_0x432106(0xb0)]((_0x4e7f7c,_0x276d3e)=>{const _0x1a9ab5=_0x432106,_0x27ac94=this[_0x1a9ab5(0xd1)](_0x276d3e[_0x1a9ab5(0xc3)]);return _0x4e7f7c[_0x27ac94]||(_0x4e7f7c[_0x27ac94]=[]),_0x4e7f7c[_0x27ac94][_0x1a9ab5(0xe0)](_0x276d3e),_0x4e7f7c;},{});_0x13a066[_0x432106(0xd6)][_0x432106(0xb4)](_0x432106(0xec))&&_0x13a066[_0x432106(0xde)][_0x432106(0xd5)](_0x432106(0xab))&&Object[_0x432106(0xdf)](_0x4cd3b6)[_0x432106(0xd7)](([_0x476720,_0x341ece])=>{const _0x5606f2=_0x432106;_0x13a066[_0x5606f2(0xd6)][_0x5606f2(0xd5)](_0x5606f2(0xec))[_0x5606f2(0xdd)]({'name':_0x476720,'observable':()=>_0x2ddbdf,'buttonViewCreator':()=>this[_0x5606f2(0xf2)](_0x341ece),'formViewCreator':()=>this[_0x5606f2(0xd4)](_0x341ece),'menuBarButtonViewCreator':()=>this[_0x5606f2(0xbe)](_0x341ece),'override':_0x5606f2(0xcf)!==_0x476720});});}[_0x13c601(0xb2)](){const _0x271f95=_0x13c601;super[_0x271f95(0xb2)](),this[_0x271f95(0xd9)]&&clearInterval(this[_0x271f95(0xd9)]);}[_0x13c601(0xc6)](_0x3862ed){const _0x1a21ed=_0x13c601,{locale:_0x2bb790}=this[_0x1a21ed(0xcd)];return _0x3862ed[_0x1a21ed(0xdb)](_0x170c6f=>{const _0x4db7f0=_0x1a21ed,_0x58b129=_0x9534fa(_0x2bb790,_0x170c6f,_0x4db7f0(0xf4));switch(_0x170c6f){case _0x50d7f1[_0x4db7f0(0xd8)]:return{'icon':_0x3e0e0d,'type':_0x50d7f1[_0x4db7f0(0xd8)],..._0x58b129};case _0x50d7f1[_0x4db7f0(0xf0)]:return{'icon':_0x30eb19,'type':_0x50d7f1[_0x4db7f0(0xf0)],..._0x58b129};case _0x50d7f1[_0x4db7f0(0xbf)]:return{'icon':_0x229b47,'type':_0x50d7f1[_0x4db7f0(0xbf)],..._0x58b129};case _0x50d7f1[_0x4db7f0(0xd2)]:return{'icon':_0x49a184,'type':_0x50d7f1[_0x4db7f0(0xd2)],..._0x58b129};case _0x50d7f1[_0x4db7f0(0xb5)]:return{'icon':_0x26a09c,'type':_0x50d7f1[_0x4db7f0(0xb5)],..._0x58b129};case _0x50d7f1[_0x4db7f0(0xbb)]:return{'icon':_0x4f0374,'type':_0x50d7f1[_0x4db7f0(0xbb)],..._0x58b129};case _0x50d7f1[_0x4db7f0(0xe5)]:return{'icon':_0x313d2e,'type':_0x50d7f1[_0x4db7f0(0xe5)],..._0x58b129};}});}[_0x13c601(0xd1)](_0x5625ec){const _0x50a460=_0x13c601;switch(_0x5625ec){case _0x50d7f1[_0x50a460(0xd8)]:return _0x50a460(0xb8);case _0x50d7f1[_0x50a460(0xf0)]:return _0x50a460(0xed);default:return _0x50a460(0xcf);}}[_0x13c601(0xc9)](_0x53d44a,_0x1f32d6){const _0xfd9979=_0x13c601,_0x42b647=this[_0xfd9979(0xcd)],_0x14c331=new _0x53d44a(_0x42b647[_0xfd9979(0xc1)]),_0x478e6d=_0x42b647[_0xfd9979(0xde)][_0xfd9979(0xd5)](_0xfd9979(0xab));return _0x14c331[_0xfd9979(0xc7)](_0xfd9979(0xba))['to'](_0x478e6d),_0x14c331['on'](_0xfd9979(0xc2),()=>{const _0x461005=_0xfd9979;_0x478e6d[_0x461005(0xc2)](_0x1f32d6);}),_0x14c331;}[_0x13c601(0xf2)](_0x124c8a){const _0x2dc283=_0x13c601,{locale:_0x4b48cb}=this[_0x2dc283(0xcd)],_0x17877f=this[_0x2dc283(0xcd)][_0x2dc283(0xd6)][_0x2dc283(0xd5)](_0x2dc283(0xec)),_0x33668e=_0x124c8a[0x0],_0x5a1bcc=this[_0x2dc283(0xc9)](_0x2a1eb1,_0x33668e[_0x2dc283(0xc3)]);return _0x5a1bcc[_0x2dc283(0xdc)]=_0x33668e[_0x2dc283(0xdc)],_0x5a1bcc[_0x2dc283(0xc7)](_0x2dc283(0xb1))['to'](_0x17877f,_0x2dc283(0xd0),_0xba8019=>_0x9534fa(_0x4b48cb,_0x33668e[_0x2dc283(0xc3)],_0xba8019?_0x2dc283(0xee):_0x2dc283(0xf4))[_0x2dc283(0xd3)]),_0x5a1bcc[_0x2dc283(0xad)]=!0x0,_0x5a1bcc;}[_0x13c601(0xd4)](_0x54e0a3){const _0x5c5571=_0x13c601,{locale:_0x35dd20}=this[_0x5c5571(0xcd)],_0x4cd2cb=this[_0x5c5571(0xcd)][_0x5c5571(0xd6)][_0x5c5571(0xd5)](_0x5c5571(0xec));return _0x54e0a3[_0x5c5571(0xdb)](_0x40d431=>{const _0x504068=_0x5c5571,_0x196aad=this[_0x504068(0xc9)](_0x2a1eb1,_0x40d431[_0x504068(0xc3)]);return _0x196aad[_0x504068(0xf3)]=!0x0,_0x196aad[_0x504068(0xdc)]=_0x40d431[_0x504068(0xdc)],_0x196aad[_0x504068(0xc7)](_0x504068(0xb1))['to'](_0x4cd2cb,_0x504068(0xd0),_0x34fba8=>_0x9534fa(_0x35dd20,_0x40d431[_0x504068(0xc3)],_0x34fba8?_0x504068(0xee):_0x504068(0xf4))[_0x504068(0xd3)]),_0x196aad;});}[_0x13c601(0xbe)](_0x1958ad){const _0x2f23ae=_0x13c601;return _0x1958ad[_0x2f23ae(0xdb)](_0x5e7f0f=>{const _0x554fad=_0x2f23ae,_0xec1b38=this[_0x554fad(0xc9)](_0x117e29,_0x5e7f0f[_0x554fad(0xc3)]);return _0xec1b38[_0x554fad(0xdc)]=_0x5e7f0f[_0x554fad(0xdc)],_0xec1b38[_0x554fad(0xb1)]=_0x5e7f0f[_0x554fad(0xbc)],_0xec1b38;});}}
23
+ const _0x4ab763=_0x58d6;function _0x4cd0(){const _0x3ad154=['has','ImageInsertUI','label','push','OneDrive','GPhotos','_normalizeConfigSourceList','8nvnUUW','config','editor','uploadcare.uploader.sourceList','reduce','init','_getIntegrationKey','_createDropdownButtons','map','uploadcareLicenseKeyNotAllowed','shortText','evaluationLimit','Facebook','_createMenuBarButtons','isImageSelected','withText','uploadcareLicenseKeyInvalid','uploadcareLicenseKeyEvaluationLimit','licenseKey','assetManager','uploadcareLicenseKeyDomainLimit','Replace','_createToolbarButton','114128Jnicss','16925OvPseq','_showLicenseError','entries','204CDHAhv','2970541mYjwqS','destroy','commands','isPremiumPlugin','uploadcareLicenseKeyUsageLimit','type','uploadcare','6ISrAVW','17163eCBWPm','invalid','afterInit','upload','plugins','locale','expired','Uploadcare','_licenseKeyCheckInterval','GDrive','bind','get','Local','132rClrAN','domainLimit','uploadcareLicenseKeyExpired','564414qZLFrA','tooltip','_createButton','icon','uploadcareLicenseKeyTrialLimit','1019799HHJQIg','forEach','uploadcareLicenseKeyValid','Dropbox','pluginName','URL','text','usageLimit','url','150iJqnTY','40MnyLZO','543068NKoEDQ','registerIntegration','execute','5629RUZaqP','isOfficialPlugin','featureNotAllowed','trialLimit','Insert','isEnabled','UploadcareUI'];_0x4cd0=function(){return _0x3ad154;};return _0x4cd0();}(function(_0x271ad1,_0x39665e){const _0x2626bc=_0x58d6,_0x566cc7=_0x271ad1();while(!![]){try{const _0x119bf8=-parseInt(_0x2626bc(0x17e))/0x1*(parseInt(_0x2626bc(0x142))/0x2)+-parseInt(_0x2626bc(0x189))/0x3*(parseInt(_0x2626bc(0x155))/0x4)+parseInt(_0x2626bc(0x154))/0x5*(parseInt(_0x2626bc(0x145))/0x6)+-parseInt(_0x2626bc(0x182))/0x7*(parseInt(_0x2626bc(0x166))/0x8)+-parseInt(_0x2626bc(0x18a))/0x9*(parseInt(_0x2626bc(0x153))/0xa)+parseInt(_0x2626bc(0x14a))/0xb*(-parseInt(_0x2626bc(0x181))/0xc)+-parseInt(_0x2626bc(0x158))/0xd*(-parseInt(_0x2626bc(0x17d))/0xe);if(_0x119bf8===_0x39665e)break;else _0x566cc7['push'](_0x566cc7['shift']());}catch(_0x39fe9e){_0x566cc7['push'](_0x566cc7['shift']());}}}(_0x4cd0,0xd31fb));import{Plugin as _0x4163f4}from'ckeditor5/src/core.js';import{IconDropbox as _0xf3d82b,IconFacebook as _0x62677e,IconGoogleDrive as _0xa4f369,IconGooglePhotos as _0x75c592,IconUploadcareImageUpload as _0x189410,IconUploadcareLink as _0xcccead,IconOneDrive as _0x717ce2}from'ckeditor5/src/icons.js';import{ButtonView as _0x5d9e95,MenuBarMenuListItemButtonView as _0x66efd6}from'ckeditor5/src/ui.js';import{UploadcareSource as _0x330151}from'./uploadcareconfig.js';import{getTranslation as _0x47ea94}from'./utils/common-translations.js';import'@uploadcare/file-uploader/web/uc-file-uploader-inline.min.css';import'../theme/uploadcare-theme.css';function _0x58d6(_0x39a325,_0xee4d26){const _0x4cd068=_0x4cd0();return _0x58d6=function(_0x58d614,_0x1fc923){_0x58d614=_0x58d614-0x140;let _0x5269ac=_0x4cd068[_0x58d614];return _0x5269ac;},_0x58d6(_0x39a325,_0xee4d26);}import'../theme/uploadcareimageedit.css';export class UploadcareUI extends _0x4163f4{[_0x4ab763(0x178)];[_0x4ab763(0x192)];static get[_0x4ab763(0x14e)](){const _0x4f483d=_0x4ab763;return _0x4f483d(0x15e);}static get[_0x4ab763(0x159)](){return!0x0;}static get[_0x4ab763(0x185)](){return!0x0;}[_0x4ab763(0x16b)](){const _0x226c73=_0x4ab763;this[_0x226c73(0x178)]=this[_0x226c73(0x168)][_0x226c73(0x167)][_0x226c73(0x140)](_0x226c73(0x178));const _0x20ec28=this[_0x226c73(0x168)];this[_0x226c73(0x192)]=setInterval(()=>{const _0x456a15=_0x226c73;let _0x2b3e84;for(const _0x299632 in _0x20ec28){const _0x5d1c73=_0x299632,_0x57c45e=_0x20ec28[_0x5d1c73];if(_0x456a15(0x14c)==_0x57c45e||_0x456a15(0x176)==_0x57c45e||_0x456a15(0x144)==_0x57c45e||_0x456a15(0x17a)==_0x57c45e||_0x456a15(0x16f)==_0x57c45e||_0x456a15(0x177)==_0x57c45e||_0x456a15(0x149)==_0x57c45e||_0x456a15(0x186)==_0x57c45e){delete _0x20ec28[_0x5d1c73],_0x2b3e84=_0x57c45e,clearInterval(this[_0x456a15(0x192)]),this[_0x456a15(0x192)]=void 0x0;break;}}_0x456a15(0x176)==_0x2b3e84&&_0x20ec28[_0x456a15(0x17f)](_0x456a15(0x18b)),_0x456a15(0x144)==_0x2b3e84&&_0x20ec28[_0x456a15(0x17f)](_0x456a15(0x190)),_0x456a15(0x17a)==_0x2b3e84&&_0x20ec28[_0x456a15(0x17f)](_0x456a15(0x143)),_0x456a15(0x16f)==_0x2b3e84&&_0x20ec28[_0x456a15(0x17f)](_0x456a15(0x15a),_0x456a15(0x191)),_0x456a15(0x177)==_0x2b3e84&&_0x20ec28[_0x456a15(0x17f)](_0x456a15(0x171)),_0x456a15(0x149)==_0x2b3e84&&_0x20ec28[_0x456a15(0x17f)](_0x456a15(0x15b)),_0x456a15(0x186)==_0x2b3e84&&_0x20ec28[_0x456a15(0x17f)](_0x456a15(0x151));},0x3e8);}[_0x4ab763(0x18c)](){const _0x360cb=_0x4ab763,{editor:_0x534e4e}=this,_0x40393b=_0x534e4e[_0x360cb(0x184)][_0x360cb(0x140)](_0x360cb(0x188));if(!_0x40393b)return;const _0x1db59d=this[_0x360cb(0x165)](_0x534e4e[_0x360cb(0x167)][_0x360cb(0x140)](_0x360cb(0x169)))[_0x360cb(0x16a)]((_0x38ec97,_0x889bc1)=>{const _0x43a33d=_0x360cb,_0x900420=this[_0x43a33d(0x16c)](_0x889bc1[_0x43a33d(0x187)]);return _0x38ec97[_0x900420]||(_0x38ec97[_0x900420]=[]),_0x38ec97[_0x900420][_0x43a33d(0x162)](_0x889bc1),_0x38ec97;},{});_0x534e4e[_0x360cb(0x18e)][_0x360cb(0x15f)](_0x360cb(0x160))&&_0x534e4e[_0x360cb(0x184)][_0x360cb(0x140)](_0x360cb(0x188))&&Object[_0x360cb(0x180)](_0x1db59d)[_0x360cb(0x14b)](([_0x309f79,_0x165253])=>{const _0x4014b6=_0x360cb;_0x534e4e[_0x4014b6(0x18e)][_0x4014b6(0x140)](_0x4014b6(0x160))[_0x4014b6(0x156)]({'name':_0x309f79,'observable':()=>_0x40393b,'buttonViewCreator':()=>this[_0x4014b6(0x17c)](_0x165253),'formViewCreator':()=>this[_0x4014b6(0x16d)](_0x165253),'menuBarButtonViewCreator':()=>this[_0x4014b6(0x173)](_0x165253),'override':_0x4014b6(0x179)!==_0x309f79});});}[_0x4ab763(0x183)](){const _0x1b298c=_0x4ab763;super[_0x1b298c(0x183)](),this[_0x1b298c(0x192)]&&clearInterval(this[_0x1b298c(0x192)]);}[_0x4ab763(0x165)](_0xd35740){const _0x1546c8=_0x4ab763,{locale:_0x350ac9}=this[_0x1546c8(0x168)];return _0xd35740[_0x1546c8(0x16e)](_0x5a0550=>{const _0x552baa=_0x1546c8,_0x3ad934=_0x47ea94(_0x350ac9,_0x5a0550,_0x552baa(0x15c));switch(_0x5a0550){case _0x330151[_0x552baa(0x141)]:return{'icon':_0x189410,'type':_0x330151[_0x552baa(0x141)],..._0x3ad934};case _0x330151[_0x552baa(0x14f)]:return{'icon':_0xcccead,'type':_0x330151[_0x552baa(0x14f)],..._0x3ad934};case _0x330151[_0x552baa(0x14d)]:return{'icon':_0xf3d82b,'type':_0x330151[_0x552baa(0x14d)],..._0x3ad934};case _0x330151[_0x552baa(0x172)]:return{'icon':_0x62677e,'type':_0x330151[_0x552baa(0x172)],..._0x3ad934};case _0x330151[_0x552baa(0x193)]:return{'icon':_0xa4f369,'type':_0x330151[_0x552baa(0x193)],..._0x3ad934};case _0x330151[_0x552baa(0x164)]:return{'icon':_0x75c592,'type':_0x330151[_0x552baa(0x164)],..._0x3ad934};case _0x330151[_0x552baa(0x163)]:return{'icon':_0x717ce2,'type':_0x330151[_0x552baa(0x163)],..._0x3ad934};}});}[_0x4ab763(0x16c)](_0x4c5827){const _0x7d23f3=_0x4ab763;switch(_0x4c5827){case _0x330151[_0x7d23f3(0x141)]:return _0x7d23f3(0x18d);case _0x330151[_0x7d23f3(0x14f)]:return _0x7d23f3(0x152);default:return _0x7d23f3(0x179);}}[_0x4ab763(0x147)](_0x31aebb,_0x1a7286){const _0x2e3738=_0x4ab763,_0x4bede1=this[_0x2e3738(0x168)],_0x3ee78c=new _0x31aebb(_0x4bede1[_0x2e3738(0x18f)]),_0x21283f=_0x4bede1[_0x2e3738(0x184)][_0x2e3738(0x140)](_0x2e3738(0x188));return _0x3ee78c[_0x2e3738(0x194)](_0x2e3738(0x15d))['to'](_0x21283f),_0x3ee78c['on'](_0x2e3738(0x157),()=>{const _0x405a6e=_0x2e3738;_0x21283f[_0x405a6e(0x157)](_0x1a7286);}),_0x3ee78c;}[_0x4ab763(0x17c)](_0x4d2f07){const _0x422c47=_0x4ab763,{locale:_0xc3a8e4}=this[_0x422c47(0x168)],_0x29383a=this[_0x422c47(0x168)][_0x422c47(0x18e)][_0x422c47(0x140)](_0x422c47(0x160)),_0x2586bc=_0x4d2f07[0x0],_0xd44f91=this[_0x422c47(0x147)](_0x5d9e95,_0x2586bc[_0x422c47(0x187)]);return _0xd44f91[_0x422c47(0x148)]=_0x2586bc[_0x422c47(0x148)],_0xd44f91[_0x422c47(0x194)](_0x422c47(0x161))['to'](_0x29383a,_0x422c47(0x174),_0x527faa=>_0x47ea94(_0xc3a8e4,_0x2586bc[_0x422c47(0x187)],_0x527faa?_0x422c47(0x17b):_0x422c47(0x15c))[_0x422c47(0x150)]),_0xd44f91[_0x422c47(0x146)]=!0x0,_0xd44f91;}[_0x4ab763(0x16d)](_0x5efce3){const _0x147cf4=_0x4ab763,{locale:_0x23c4d5}=this[_0x147cf4(0x168)],_0xd9e35e=this[_0x147cf4(0x168)][_0x147cf4(0x18e)][_0x147cf4(0x140)](_0x147cf4(0x160));return _0x5efce3[_0x147cf4(0x16e)](_0x432ddc=>{const _0x6e3860=_0x147cf4,_0x6f098d=this[_0x6e3860(0x147)](_0x5d9e95,_0x432ddc[_0x6e3860(0x187)]);return _0x6f098d[_0x6e3860(0x175)]=!0x0,_0x6f098d[_0x6e3860(0x148)]=_0x432ddc[_0x6e3860(0x148)],_0x6f098d[_0x6e3860(0x194)](_0x6e3860(0x161))['to'](_0xd9e35e,_0x6e3860(0x174),_0x5d2ee9=>_0x47ea94(_0x23c4d5,_0x432ddc[_0x6e3860(0x187)],_0x5d2ee9?_0x6e3860(0x17b):_0x6e3860(0x15c))[_0x6e3860(0x150)]),_0x6f098d;});}[_0x4ab763(0x173)](_0x45c44a){const _0x11e92c=_0x4ab763;return _0x45c44a[_0x11e92c(0x16e)](_0x2a6468=>{const _0xb4e0dc=_0x11e92c,_0x55bee3=this[_0xb4e0dc(0x147)](_0x66efd6,_0x2a6468[_0xb4e0dc(0x187)]);return _0x55bee3[_0xb4e0dc(0x148)]=_0x2a6468[_0xb4e0dc(0x148)],_0x55bee3[_0xb4e0dc(0x161)]=_0x2a6468[_0xb4e0dc(0x170)],_0x55bee3;});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1abf0d}from'ckeditor5/src/core.js';import{FileRepository as _0x5c7b45}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x4d7c1f}from'./uploadcareediting.js';import{UploadUtils as _0x1fdf86}from'./utils/uploadutils.js';import{getImageUrls as _0x158375}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x1abf0d{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x5c7b45,_0x4d7c1f];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x45fad3=this['editor'];if(!!!_0x45fad3['config']['get']('uploadcare'))return;_0x45fad3['plugins']['get'](_0x5c7b45)['createUploadAdapter']=_0x4409d0=>new k(_0x4409d0,_0x45fad3),_0x45fad3['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0xea4179,{imageElement:_0x4996ee,data:_0xca2fbd})=>{_0x45fad3['model']['change'](_0x15659e=>{_0x15659e['setAttribute']('uploadcareImageId',_0xca2fbd['uploadcareImageId'],_0x4996ee);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x330e29,_0x408da6){this['loader']=_0x330e29,this['editor']=_0x408da6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x19b201=await this['loader']['file'];return _0x1fdf86['upload']({'file':_0x19b201,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x5e6061=>{_0x5e6061&&_0x5e6061['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x5e6061['value']);}})['then'](async _0x28ce6a=>{const {imageFallbackUrl:_0x22f368,imageSources:_0x5380aa}=_0x158375(_0x28ce6a['cdnUrl'],_0x28ce6a['imageInfo']['width']);return{'uploadcareImageId':_0x28ce6a['uuid'],'default':_0x22f368,'sources':_0x5380aa};})['catch'](()=>{const _0x35f65c=t('Cannot\x20upload\x20file:')+('\x20'+_0x19b201['name']+'.');return Promise['reject'](_0x35f65c);});}['abort'](){this['controller']['abort']();}}
23
+ import{Plugin as _0x4551f3}from'ckeditor5/src/core.js';import{FileRepository as _0x4b40d9}from'ckeditor5/src/upload.js';import{UploadcareEditing as _0x2b0f42}from'./uploadcareediting.js';import{UploadUtils as _0x58544a}from'./utils/uploadutils.js';import{getImageUrls as _0x189785}from'./utils/editingutils.js';export class UploadcareUploadAdapter extends _0x4551f3{static get['requires'](){return['ImageUploadEditing','ImageUploadProgress',_0x4b40d9,_0x2b0f42];}static get['pluginName'](){return'UploadcareUploadAdapter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}async['afterInit'](){const _0x306b0f=this['editor'];if(!!!_0x306b0f['config']['get']('uploadcare'))return;_0x306b0f['plugins']['get'](_0x4b40d9)['createUploadAdapter']=_0x2f0af1=>new k(_0x2f0af1,_0x306b0f),_0x306b0f['plugins']['get']('ImageUploadEditing')['on']('uploadComplete',(_0x4636a4,{imageElement:_0xf44a97,data:_0x4ae9db})=>{_0x306b0f['model']['change'](_0x204c60=>{_0x204c60['setAttribute']('uploadcareImageId',_0x4ae9db['uploadcareImageId'],_0xf44a97);});});}}class k{['loader'];['editor'];['controller'];constructor(_0x34aa69,_0x3f5aa6){this['loader']=_0x34aa69,this['editor']=_0x3f5aa6,this['controller']=new AbortController();}async['upload'](){const t=this['editor']['t'],_0x3378f3=await this['loader']['file'];return _0x58544a['upload']({'file':_0x3378f3,'publicKey':this['editor']['config']['get']('uploadcare.pubkey'),'baseURL':this['editor']['config']['get']('uploadcare.uploader.baseUrl'),'baseCDN':this['editor']['config']['get']('uploadcare.uploader.cdnCname'),'signal':this['controller']['signal'],'onProgress':_0x150975=>{_0x150975&&_0x150975['isComputable']&&(this['loader']['uploadTotal']=0x1,this['loader']['uploaded']=_0x150975['value']);}})['then'](async _0x4282a2=>{const {imageFallbackUrl:_0x11aca5,imageSources:_0x1d3994}=_0x189785(_0x4282a2['cdnUrl'],_0x4282a2['imageInfo']['width']);return{'uploadcareImageId':_0x4282a2['uuid'],'default':_0x11aca5,'sources':_0x1d3994};})['catch'](()=>{const _0xf73fc0=t('Cannot\x20upload\x20file:')+('\x20'+_0x3378f3['name']+'.');return Promise['reject'](_0xf73fc0);});}['abort'](){this['controller']['abort']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{UploadcareSource as _0x3d0473}from'../uploadcareconfig.js';export function getTranslation(_0x33aa28,_0x55914f,_0x16ef4d){const t=_0x33aa28['t'],_0x129c7a=_0x33aa28['t'];switch(_0x55914f){case _0x3d0473['Local']:return{'text':_0x129c7a('Insert'===_0x16ef4d?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x129c7a('From\x20computer')};case _0x3d0473['URL']:return{'text':'Insert'===_0x16ef4d?_0x129c7a('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x129c7a('Via\x20URL')};case _0x3d0473['Dropbox']:return{'text':t('Insert'===_0x16ef4d?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x3d0473['Facebook']:return{'text':t('Insert'===_0x16ef4d?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x3d0473['GDrive']:return{'text':t('Insert'===_0x16ef4d?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x3d0473['GPhotos']:return{'text':t('Insert'===_0x16ef4d?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x3d0473['OneDrive']:return{'text':t('Insert'===_0x16ef4d?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x55914f;}}
23
+ import{UploadcareSource as _0x2f25d7}from'../uploadcareconfig.js';export function getTranslation(_0x189d50,_0x2b438e,_0x45202f){const t=_0x189d50['t'],_0x2e9aa6=_0x189d50['t'];switch(_0x2b438e){case _0x2f25d7['Local']:return{'text':_0x2e9aa6('Insert'===_0x45202f?'Upload\x20from\x20computer':'Replace\x20from\x20computer'),'shortText':_0x2e9aa6('From\x20computer')};case _0x2f25d7['URL']:return{'text':'Insert'===_0x45202f?_0x2e9aa6('Insert\x20via\x20URL'):t('Replace\x20via\x20URL'),'shortText':_0x2e9aa6('Via\x20URL')};case _0x2f25d7['Dropbox']:return{'text':t('Insert'===_0x45202f?'Insert\x20with\x20Dropbox':'Replace\x20with\x20Dropbox'),'shortText':t('With\x20Dropbox')};case _0x2f25d7['Facebook']:return{'text':t('Insert'===_0x45202f?'Insert\x20with\x20Facebook':'Replace\x20with\x20Facebook'),'shortText':t('With\x20Facebook')};case _0x2f25d7['GDrive']:return{'text':t('Insert'===_0x45202f?'Insert\x20with\x20Google\x20Drive':'Replace\x20with\x20Google\x20Drive'),'shortText':t('With\x20Google\x20Drive')};case _0x2f25d7['GPhotos']:return{'text':t('Insert'===_0x45202f?'Insert\x20with\x20Google\x20Photos':'Replace\x20with\x20Google\x20Photos'),'shortText':t('With\x20Google\x20Photos')};case _0x2f25d7['OneDrive']:return{'text':t('Insert'===_0x45202f?'Insert\x20with\x20OneDrive':'Replace\x20with\x20OneDrive'),'shortText':t('With\x20OneDrive')};default:return _0x2b438e;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x3706(_0x4b4d14,_0x148f36){var _0x3951d8=_0x3951();return _0x3706=function(_0x37062d,_0x192985){_0x37062d=_0x37062d-0x16f;var _0x7696f4=_0x3951d8[_0x37062d];return _0x7696f4;},_0x3706(_0x4b4d14,_0x148f36);}var _0x27a09e=_0x3706;(function(_0x31d14c,_0x34487c){var _0x3e91da=_0x3706,_0x2f2eed=_0x31d14c();while(!![]){try{var _0x12f45b=-parseInt(_0x3e91da(0x17c))/0x1*(parseInt(_0x3e91da(0x172))/0x2)+-parseInt(_0x3e91da(0x16f))/0x3+parseInt(_0x3e91da(0x171))/0x4+-parseInt(_0x3e91da(0x175))/0x5*(parseInt(_0x3e91da(0x17d))/0x6)+parseInt(_0x3e91da(0x17e))/0x7+parseInt(_0x3e91da(0x17f))/0x8+parseInt(_0x3e91da(0x178))/0x9;if(_0x12f45b===_0x34487c)break;else _0x2f2eed['push'](_0x2f2eed['shift']());}catch(_0x2831ce){_0x2f2eed['push'](_0x2f2eed['shift']());}}}(_0x3951,0x7ba18));import{FocusTracker as _0x2eea2f}from'ckeditor5/src/utils.js';import{View as _0x469884,FocusCycler as _0x3fb544}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';export class DialogFocusManagerView extends _0x469884{[_0x27a09e(0x177)];[_0x27a09e(0x17a)];constructor(_0xa4904d){var _0x11c3c6=_0x27a09e;super(_0xa4904d),this[_0x11c3c6(0x177)]=new _0x2eea2f(),this[_0x11c3c6(0x17a)]=new _0x3fb544({'focusables':this[_0x11c3c6(0x173)](),'focusTracker':this[_0x11c3c6(0x177)]});}[_0x27a09e(0x170)](){var _0x3eb236=_0x27a09e;return{'tag':_0x3eb236(0x180),'attributes':{'aria-hidden':_0x3eb236(0x179),'tabindex':'0'},'on':{'focus':this[_0x3eb236(0x176)]['to'](()=>{var _0x5d6c38=_0x3eb236;this[_0x5d6c38(0x17a)][_0x5d6c38(0x17b)](_0x5d6c38(0x174));})}};}}function _0x3951(){var _0x26b9c9=['div','985518dbQKXK','getFocusableElement','3531308VwSzpo','1893026EbHOTN','createCollection','forwardCycle','5yvmOTh','bindTemplate','focusTracker','4980906uEZBFL','true','focusCycler','fire','1XurECg','77316fPJVKA','1548988rJRjlj','1094016vqdwWo'];_0x3951=function(){return _0x26b9c9;};return _0x3951();}
23
+ var _0x2e11fe=_0x4de0;(function(_0xe93633,_0x2a0871){var _0x97cd7c=_0x4de0,_0x26de7e=_0xe93633();while(!![]){try{var _0x1da1c7=parseInt(_0x97cd7c(0x1e6))/0x1+parseInt(_0x97cd7c(0x1f3))/0x2+-parseInt(_0x97cd7c(0x1e8))/0x3+-parseInt(_0x97cd7c(0x1ec))/0x4+-parseInt(_0x97cd7c(0x1f5))/0x5*(parseInt(_0x97cd7c(0x1e7))/0x6)+parseInt(_0x97cd7c(0x1f0))/0x7*(-parseInt(_0x97cd7c(0x1eb))/0x8)+parseInt(_0x97cd7c(0x1ee))/0x9*(parseInt(_0x97cd7c(0x1ea))/0xa);if(_0x1da1c7===_0x2a0871)break;else _0x26de7e['push'](_0x26de7e['shift']());}catch(_0x5bdb83){_0x26de7e['push'](_0x26de7e['shift']());}}}(_0x26d4,0xde5ed));function _0x26d4(){var _0x3b87f5=['bindTemplate','getFocusableElement','1620166JYFFIT','focusCycler','6475ABXGps','fire','focusTracker','forwardCycle','1289383PjbHrM','3732YNDcEC','5413761PBkpSG','div','32720yZdTQK','1344144fCrlsI','3589048wyRxFy','true','6840WFyIdT','createCollection','7cxfsop'];_0x26d4=function(){return _0x3b87f5;};return _0x26d4();}import{FocusTracker as _0x393bc7}from'ckeditor5/src/utils.js';import{View as _0x19a760,FocusCycler as _0x199f3b}from'ckeditor5/src/ui.js';import'../../theme/uploadcare-form.css';function _0x4de0(_0x853252,_0x52a817){var _0x26d498=_0x26d4();return _0x4de0=function(_0x4de0a4,_0x1d5f24){_0x4de0a4=_0x4de0a4-0x1e5;var _0x1e9809=_0x26d498[_0x4de0a4];return _0x1e9809;},_0x4de0(_0x853252,_0x52a817);}export class DialogFocusManagerView extends _0x19a760{[_0x2e11fe(0x1f7)];[_0x2e11fe(0x1f4)];constructor(_0x10826a){var _0x1c8424=_0x2e11fe;super(_0x10826a),this[_0x1c8424(0x1f7)]=new _0x393bc7(),this[_0x1c8424(0x1f4)]=new _0x199f3b({'focusables':this[_0x1c8424(0x1ef)](),'focusTracker':this[_0x1c8424(0x1f7)]});}[_0x2e11fe(0x1f2)](){var _0x57c424=_0x2e11fe;return{'tag':_0x57c424(0x1e9),'attributes':{'aria-hidden':_0x57c424(0x1ed),'tabindex':'0'},'on':{'focus':this[_0x57c424(0x1f1)]['to'](()=>{var _0x4bbe7e=_0x57c424;this[_0x4bbe7e(0x1f4)][_0x4bbe7e(0x1f6)](_0x4bbe7e(0x1e5));})}};}}