@qualityunit/liveagent-components-editor 0.0.81 → 0.0.83

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 (292) hide show
  1. package/dist/af-CyABYENr.js +6 -0
  2. package/dist/af.umd-CsNbNOlY.js +35 -0
  3. package/dist/{ar-Duc90WBQ.js → ar-CZTLcbRx.js} +2 -6
  4. package/dist/{ar.umd-BQViTPOQ.js → ar.umd-Bx9nQJ_M.js} +6 -10
  5. package/dist/ast-BunchKKN.js +6 -0
  6. package/dist/ast.umd-D38VI7-D.js +35 -0
  7. package/dist/az-CDWQXbOQ.js +6 -0
  8. package/dist/az.umd-BAsO8mQS.js +35 -0
  9. package/dist/be-Dq1Y9rJu.js +6 -0
  10. package/dist/be.umd-DtW5QK5i.js +35 -0
  11. package/dist/{bg-Da5GTM08.js → bg-DRErqdK5.js} +2 -6
  12. package/dist/{bg.umd-uBmPqgyJ.js → bg.umd-BhqMhsef.js} +6 -10
  13. package/dist/bn-BUKyNcCw.js +8 -0
  14. package/dist/bn.umd-B_V08KoT.js +37 -0
  15. package/dist/bs-Bwfs3--M.js +6 -0
  16. package/dist/bs.umd-bmOsKTYV.js +35 -0
  17. package/dist/ca-DJlV-SU8.js +6 -0
  18. package/dist/ca.umd-CBfxHrSP.js +35 -0
  19. package/dist/ckeditor.js +1 -1
  20. package/dist/{ckeditor5-wzeDqku8.js → ckeditor5-B7wvOImD.js} +7933 -11332
  21. package/dist/cs-DUh-ol0t.js +6 -0
  22. package/dist/cs.umd-BZriPVip.js +35 -0
  23. package/dist/da-CK8lgka7.js +6 -0
  24. package/dist/da.umd-Ca_VnQr0.js +35 -0
  25. package/dist/de-B_egTJXl.js +6 -0
  26. package/dist/de-ch-Cq5Rh7Gc.js +6 -0
  27. package/dist/de-ch.umd-DvUozGgZ.js +35 -0
  28. package/dist/de.umd-xojhNUHA.js +35 -0
  29. package/dist/editor-lib.js +374 -402
  30. package/dist/el-Dn7VS35a.js +6 -0
  31. package/dist/el.umd-BhGi6Uju.js +35 -0
  32. package/dist/{en.umd-BPvEN8TK.js → en-Cd-sBqKX.js} +4 -37
  33. package/dist/en-au-C-EIRqjh.js +6 -0
  34. package/dist/en-au.umd-BY0Qh9-R.js +35 -0
  35. package/dist/en-gb-B4gthm0M.js +6 -0
  36. package/dist/en-gb.umd-DErqJfnH.js +35 -0
  37. package/dist/en.umd-DoXYTLKW.js +35 -0
  38. package/dist/eo-CEy_P3Z5.js +6 -0
  39. package/dist/eo.umd-D3my4_cF.js +35 -0
  40. package/dist/es-3iP6TQZ4.js +6 -0
  41. package/dist/es-co-CeZYQugb.js +6 -0
  42. package/dist/es-co.umd-h6ap68Gm.js +35 -0
  43. package/dist/es.umd-DaIub5SW.js +35 -0
  44. package/dist/et-C9THjyf4.js +6 -0
  45. package/dist/et.umd-Cb2fpwdS.js +35 -0
  46. package/dist/eu-DSvxySq_.js +6 -0
  47. package/dist/eu.umd-ChdvIUfm.js +35 -0
  48. package/dist/fa-Q6qtx0iT.js +6 -0
  49. package/dist/fa.umd-BvKSB385.js +35 -0
  50. package/dist/fi-BklZr4iZ.js +6 -0
  51. package/dist/fi.umd-BegXf7V1.js +35 -0
  52. package/dist/fr-tvid5Nhu.js +6 -0
  53. package/dist/fr.umd-BbvQ9Jnz.js +35 -0
  54. package/dist/gl-CmJzJ7fB.js +6 -0
  55. package/dist/gl.umd-DaYVW6cb.js +35 -0
  56. package/dist/gu-XRreBKDW.js +6 -0
  57. package/dist/gu.umd-CMmkufj1.js +35 -0
  58. package/dist/he-Bbdy66GX.js +6 -0
  59. package/dist/he.umd-svDqoZFt.js +35 -0
  60. package/dist/hi-Dzcycmwz.js +6 -0
  61. package/dist/hi.umd-CmA1Yu7z.js +35 -0
  62. package/dist/hr-DK6MzdPB.js +6 -0
  63. package/dist/hr.umd-BBtsNapc.js +35 -0
  64. package/dist/hu-B5yQIZXJ.js +6 -0
  65. package/dist/hu.umd-DMRgtzXl.js +35 -0
  66. package/dist/hy-C8KjZQhi.js +6 -0
  67. package/dist/hy.umd-D_b6ZLka.js +35 -0
  68. package/dist/id-CbQ1bL38.js +6 -0
  69. package/dist/id.umd-BDdSxuu_.js +35 -0
  70. package/dist/it-Ih-wapfi.js +6 -0
  71. package/dist/it.umd-DnzHU8GF.js +35 -0
  72. package/dist/ja-SSxUIWjP.js +6 -0
  73. package/dist/ja.umd--RQ-o_CN.js +35 -0
  74. package/dist/jv-DCK1nXbY.js +6 -0
  75. package/dist/jv.umd-BNkrNyC_.js +35 -0
  76. package/dist/kk-Bd4YQh-9.js +6 -0
  77. package/dist/kk.umd-BlaGzM_P.js +35 -0
  78. package/dist/km-C0lY2wGy.js +6 -0
  79. package/dist/km.umd-lBCsXTl5.js +35 -0
  80. package/dist/kn-BFyXLNW3.js +6 -0
  81. package/dist/kn.umd-B0xqhUk6.js +35 -0
  82. package/dist/ko-DljO-r6k.js +6 -0
  83. package/dist/ko.umd-f3Zlp3h3.js +35 -0
  84. package/dist/ku-DKzG1Pt4.js +6 -0
  85. package/dist/ku.umd-DXHcGmfE.js +35 -0
  86. package/dist/liveagent-components-editor.css +1 -4
  87. package/dist/lt-DWpdM06d.js +6 -0
  88. package/dist/lt.umd-D2toeCjn.js +35 -0
  89. package/dist/lv-Ce5quVRv.js +6 -0
  90. package/dist/lv.umd-R16jAzIF.js +35 -0
  91. package/dist/ms-BDkp_hx0.js +6 -0
  92. package/dist/ms.umd-nFa0uKdm.js +35 -0
  93. package/dist/nb-DwJ35KXn.js +6 -0
  94. package/dist/nb.umd-CbVf1t8h.js +35 -0
  95. package/dist/ne-DcfdGlRW.js +6 -0
  96. package/dist/ne.umd-BV7pCr-x.js +35 -0
  97. package/dist/nl-DlNhC6dN.js +7 -0
  98. package/dist/nl.umd-D_FR-fWd.js +36 -0
  99. package/dist/no-pwrGwAsB.js +7 -0
  100. package/dist/no.umd-7aPotIem.js +36 -0
  101. package/dist/oc-Btl7Beea.js +6 -0
  102. package/dist/oc.umd-BWPQLpzX.js +35 -0
  103. package/dist/pl-2TBQYuW6.js +6 -0
  104. package/dist/pl.umd-BUjoyHLt.js +35 -0
  105. package/dist/pt-BgPcp7tZ.js +6 -0
  106. package/dist/pt-br-BK_tU8lU.js +6 -0
  107. package/dist/pt-br.umd-B_TS7DQe.js +35 -0
  108. package/dist/pt.umd-Cm4B0bFg.js +35 -0
  109. package/dist/ro-DdJipnlz.js +6 -0
  110. package/dist/ro.umd-B9jh-7yS.js +35 -0
  111. package/dist/ru-2yhaTtFF.js +6 -0
  112. package/dist/ru.umd-DT10lq_L.js +35 -0
  113. package/dist/si-Tq1E80Md.js +6 -0
  114. package/dist/si.umd-BlJaZbXs.js +35 -0
  115. package/dist/sk-DULWJmlz.js +6 -0
  116. package/dist/sk.umd-ZG0Y3b7A.js +35 -0
  117. package/dist/sl-BKDDpq4D.js +6 -0
  118. package/dist/sl.umd-ChYoHJeq.js +35 -0
  119. package/dist/sq-fVmWmevS.js +6 -0
  120. package/dist/sq.umd-bb4vfpap.js +35 -0
  121. package/dist/sr-KZ106Arx.js +6 -0
  122. package/dist/sr-latn-C_U1g1kk.js +6 -0
  123. package/dist/sr-latn.umd-BfoW5ADO.js +35 -0
  124. package/dist/sr.umd-BBMsbkDD.js +35 -0
  125. package/dist/sv-daY4QltS.js +6 -0
  126. package/dist/sv.umd-Bu8eMyt9.js +35 -0
  127. package/dist/th-DksrXkgD.js +6 -0
  128. package/dist/th.umd-BYIMZRqv.js +35 -0
  129. package/dist/ti-Ac61C-eK.js +6 -0
  130. package/dist/ti.umd-nYdt5l-P.js +35 -0
  131. package/dist/tk-DNcvA7pJ.js +6 -0
  132. package/dist/tk.umd-_dvDFgHo.js +35 -0
  133. package/dist/tr-Pbcf_p7S.js +6 -0
  134. package/dist/tr.umd-Cpvv6G2w.js +35 -0
  135. package/dist/tt-hVIDhgqB.js +6 -0
  136. package/dist/tt.umd-8lLMzWVx.js +35 -0
  137. package/dist/ug-B9gYWSn4.js +6 -0
  138. package/dist/ug.umd-BhtYKoyY.js +35 -0
  139. package/dist/uk-DZEvB8dj.js +6 -0
  140. package/dist/uk.umd-0GgDhERp.js +35 -0
  141. package/dist/ur-82etYnG_.js +6 -0
  142. package/dist/ur.umd-fOIBbR9V.js +35 -0
  143. package/dist/uz-DydxbuvY.js +6 -0
  144. package/dist/uz.umd-CUaeATAj.js +35 -0
  145. package/dist/vi-DbtfAYi2.js +6 -0
  146. package/dist/vi.umd-DOQgybst.js +35 -0
  147. package/dist/zh-cn-1gU16qSt.js +6 -0
  148. package/dist/zh-cn.umd-D8UbupvQ.js +35 -0
  149. package/dist/zh-esbxLm_y.js +6 -0
  150. package/dist/zh.umd-C5tcsGgB.js +35 -0
  151. package/package.json +6 -6
  152. package/dist/af-D5gaD6dV.js +0 -10
  153. package/dist/af.umd-BBObLzF1.js +0 -39
  154. package/dist/ast-B4SjHl2m.js +0 -10
  155. package/dist/ast.umd-Bg6PaFzl.js +0 -39
  156. package/dist/az-BQV6fh7D.js +0 -10
  157. package/dist/az.umd-CaouW5iZ.js +0 -39
  158. package/dist/be-QDIVTAH4.js +0 -10
  159. package/dist/be.umd-BzIkA30P.js +0 -39
  160. package/dist/bn-BxUFA2IM.js +0 -12
  161. package/dist/bn.umd-hN3SDLm7.js +0 -41
  162. package/dist/bs-CCoGGfDv.js +0 -10
  163. package/dist/bs.umd-BCbvYm6U.js +0 -39
  164. package/dist/ca-COoS88xr.js +0 -10
  165. package/dist/ca.umd-e6dlWUZS.js +0 -39
  166. package/dist/cs-REnlMT4Z.js +0 -10
  167. package/dist/cs.umd-B9WFu8Q_.js +0 -39
  168. package/dist/da-Bj_YNGam.js +0 -10
  169. package/dist/da.umd-BsFoASnq.js +0 -39
  170. package/dist/de-D4PAF07G.js +0 -10
  171. package/dist/de-ch-B29rPGLD.js +0 -10
  172. package/dist/de-ch.umd-Dqre3w4l.js +0 -39
  173. package/dist/de.umd-CBtZSMtH.js +0 -39
  174. package/dist/el-bBI_7ecr.js +0 -10
  175. package/dist/el.umd-CQLf_BdE.js +0 -39
  176. package/dist/en-CamKpIpi.js +0 -10
  177. package/dist/en-au-DZB2MHYQ.js +0 -10
  178. package/dist/en-au.umd-DoIPETMX.js +0 -39
  179. package/dist/en-gb-C2ofF-g0.js +0 -10
  180. package/dist/en-gb.umd-BIHRceWg.js +0 -39
  181. package/dist/eo-Bz3iidGR.js +0 -10
  182. package/dist/eo.umd-C8z3wGVR.js +0 -39
  183. package/dist/es-DAtHaT6w.js +0 -10
  184. package/dist/es-co-BP-P9i1g.js +0 -10
  185. package/dist/es-co.umd-SnkjnX-y.js +0 -39
  186. package/dist/es.umd-CuRrShuk.js +0 -39
  187. package/dist/et-BG-9vBh4.js +0 -10
  188. package/dist/et.umd-C4qx6dHB.js +0 -39
  189. package/dist/eu-CW-AP7Me.js +0 -10
  190. package/dist/eu.umd-DyqBMa0g.js +0 -39
  191. package/dist/fa-_kbqJEM_.js +0 -10
  192. package/dist/fa.umd-C1JCdzry.js +0 -39
  193. package/dist/fi-SBDlkQVj.js +0 -10
  194. package/dist/fi.umd-8gQMfog4.js +0 -39
  195. package/dist/fr-c3NQjTtN.js +0 -10
  196. package/dist/fr.umd-DWyOAq-t.js +0 -39
  197. package/dist/gl-DrS6PE22.js +0 -10
  198. package/dist/gl.umd-C-mNOTtJ.js +0 -39
  199. package/dist/gu-D_XFqGOb.js +0 -10
  200. package/dist/gu.umd-_SuGRhga.js +0 -39
  201. package/dist/he-B9Tcq9Mk.js +0 -10
  202. package/dist/he.umd-CZLQ_Qgf.js +0 -39
  203. package/dist/hi-XNs8BK2I.js +0 -10
  204. package/dist/hi.umd-DfZda_fB.js +0 -39
  205. package/dist/hr-CCbhDBjR.js +0 -10
  206. package/dist/hr.umd-ijHs0w9L.js +0 -39
  207. package/dist/hu-B7jOInH1.js +0 -10
  208. package/dist/hu.umd-BdapSzii.js +0 -39
  209. package/dist/hy-Ct_ukUje.js +0 -10
  210. package/dist/hy.umd-P_ZtATrt.js +0 -39
  211. package/dist/id-BsPu5NvU.js +0 -10
  212. package/dist/id.umd-DTDOEU5E.js +0 -39
  213. package/dist/it-BZyHroHN.js +0 -10
  214. package/dist/it.umd-CA0VOVAJ.js +0 -39
  215. package/dist/ja-riWopJWK.js +0 -10
  216. package/dist/ja.umd-MqZoEfTG.js +0 -39
  217. package/dist/jv-B6uO4gpy.js +0 -10
  218. package/dist/jv.umd-qn0vYgOA.js +0 -39
  219. package/dist/kk-B5skNwOC.js +0 -10
  220. package/dist/kk.umd-HmorD17q.js +0 -39
  221. package/dist/km-DgclFq1k.js +0 -10
  222. package/dist/km.umd-BSFKxLkR.js +0 -39
  223. package/dist/kn-BPjNEK4L.js +0 -10
  224. package/dist/kn.umd-DdfSyCeA.js +0 -39
  225. package/dist/ko-PPAEOQIa.js +0 -10
  226. package/dist/ko.umd--MFZycAu.js +0 -39
  227. package/dist/ku-S9OCPa0M.js +0 -10
  228. package/dist/ku.umd-D7Qp5xuL.js +0 -39
  229. package/dist/lt-nV_E82wu.js +0 -10
  230. package/dist/lt.umd-DMlgaS2R.js +0 -39
  231. package/dist/lv-CApSRjhU.js +0 -10
  232. package/dist/lv.umd-hhTw_lzs.js +0 -39
  233. package/dist/ms-PywTuTms.js +0 -10
  234. package/dist/ms.umd-CLXIOTQc.js +0 -39
  235. package/dist/nb-An2iqY2p.js +0 -10
  236. package/dist/nb.umd-WtygHW7n.js +0 -39
  237. package/dist/ne-BXJoeMS7.js +0 -10
  238. package/dist/ne.umd-eGVoHQDp.js +0 -39
  239. package/dist/nl-CfwHHD4P.js +0 -11
  240. package/dist/nl.umd-9AOF1osZ.js +0 -40
  241. package/dist/no-t7XFPNqE.js +0 -11
  242. package/dist/no.umd-CQsGmvN9.js +0 -40
  243. package/dist/oc-Cew2Itz6.js +0 -10
  244. package/dist/oc.umd-BvjGkAQ4.js +0 -39
  245. package/dist/pl-BXVHIUlK.js +0 -10
  246. package/dist/pl.umd-CXbrv-6g.js +0 -39
  247. package/dist/pt-Dv9tfe3q.js +0 -10
  248. package/dist/pt-br-BvR_kkEo.js +0 -10
  249. package/dist/pt-br.umd-CMP_cp3m.js +0 -39
  250. package/dist/pt.umd-C7UK6eA9.js +0 -39
  251. package/dist/ro-DOWVzO-A.js +0 -10
  252. package/dist/ro.umd-ClzltQIe.js +0 -39
  253. package/dist/ru-DHF6RXB5.js +0 -10
  254. package/dist/ru.umd-C61MQddk.js +0 -39
  255. package/dist/si--cbQS_bZ.js +0 -10
  256. package/dist/si.umd-CfVEdMdb.js +0 -39
  257. package/dist/sk--WNTOseI.js +0 -10
  258. package/dist/sk.umd-DDL6D2M-.js +0 -39
  259. package/dist/sl-DaUnOL11.js +0 -10
  260. package/dist/sl.umd-BQNKhuyZ.js +0 -39
  261. package/dist/sq-BFmmRG3C.js +0 -10
  262. package/dist/sq.umd-En5urIay.js +0 -39
  263. package/dist/sr-latn-iIip6wGE.js +0 -10
  264. package/dist/sr-latn.umd-Dq3e2RkH.js +0 -39
  265. package/dist/sr-pQclX2n3.js +0 -10
  266. package/dist/sr.umd-DSwMWmLL.js +0 -39
  267. package/dist/sv-CcGb9t81.js +0 -10
  268. package/dist/sv.umd-CINviyLc.js +0 -39
  269. package/dist/th-CbSYU2YL.js +0 -10
  270. package/dist/th.umd-DalpTEsq.js +0 -39
  271. package/dist/ti-Ds82dOA3.js +0 -10
  272. package/dist/ti.umd-80TYL5O4.js +0 -39
  273. package/dist/tk-Bokg8smS.js +0 -10
  274. package/dist/tk.umd-BtsH5AGM.js +0 -39
  275. package/dist/tr-kczJRBrH.js +0 -10
  276. package/dist/tr.umd-DUfc-YeR.js +0 -39
  277. package/dist/tt-CHBZ9vXT.js +0 -10
  278. package/dist/tt.umd-Bp2igUrV.js +0 -39
  279. package/dist/ug-rBtH-v-Q.js +0 -10
  280. package/dist/ug.umd-Dz5Ly_CG.js +0 -39
  281. package/dist/uk-DawCIxWD.js +0 -10
  282. package/dist/uk.umd-DXH3QnIS.js +0 -39
  283. package/dist/ur-rg47HiD9.js +0 -10
  284. package/dist/ur.umd-zyim_cMs.js +0 -39
  285. package/dist/uz-C57YwW61.js +0 -10
  286. package/dist/uz.umd-DZrGhXJY.js +0 -39
  287. package/dist/vi-BPK3sEjf.js +0 -10
  288. package/dist/vi.umd-CdLU1ET0.js +0 -39
  289. package/dist/zh-BNS15k0z.js +0 -10
  290. package/dist/zh-cn-C0KCdEMY.js +0 -10
  291. package/dist/zh-cn.umd-pCBgqBkC.js +0 -39
  292. package/dist/zh.umd-DVrcBwy5.js +0 -39
@@ -1,540 +1,512 @@
1
- import { c as N, r as ee, d as I, p as re, a as G, b as D, m as ge, s as se, h as E, e as k, f as ne, E as ye, g as ie, i as le, H as fe, j as J, k as Q, l as H, n as x, o as Ae, q as Me, t as Te, u as te, v as ue, w as xe, x as Ne, y as Se, z as we, I as q, A as ke, B as Ce, C as Ie, D as He, F as De, G as Re, J as Le, N as Pe, K as Fe, L as Oe, M as Ve, O as Be, P, Q as Ue, R as Ye, S as oe, T as $e, U as F, V as ce, W as Y, X as K, Y as V, Z as ve, _ as he, $ as B, a0 as Z, a1 as O, a2 as U, a3 as qe, a4 as Ke, a5 as We, a6 as Xe } from "./ckeditor5-wzeDqku8.js";
2
- class ze {
1
+ import { c as A, r as Q, d as D, p as Z, a as P, b as R, m as ge, s as se, h as g, e as C, f as ne, E as me, g as ie, i as fe, H as le, j as W, k as X, l as H, n as E, o as be, q as ee, t as k, u as te, v as Ee, w as j, x as ye, y as Ae, z as ke, A as Se, I as Y, B as Te, C as Me, D as we, F as Ne, N as xe, G as Ce, J as Ie, K as He, L as Re, M as F, O as De, P as Fe, Q as oe, R as Le, S as L, T as ue, U, V as $, W as z, X as ce, Y as ve, Z as V, _ as G, $ as O, a0 as B, a1 as Oe, a2 as Pe, a3 as ze, a4 as Ve } from "./ckeditor5-B7wvOImD.js";
2
+ class Be {
3
3
  /** @type {TemplateNode} */
4
4
  anchor;
5
5
  /** @type {Map<Batch, Key>} */
6
6
  #t = /* @__PURE__ */ new Map();
7
- /** @type {Map<Key, Effect>} */
8
- #a = /* @__PURE__ */ new Map();
9
- /** @type {Map<Key, Branch>} */
7
+ /**
8
+ * Map of keys to effects that are currently rendered in the DOM.
9
+ * These effects are visible and actively part of the document tree.
10
+ * Example:
11
+ * ```
12
+ * {#if condition}
13
+ * foo
14
+ * {:else}
15
+ * bar
16
+ * {/if}
17
+ * ```
18
+ * Can result in the entries `true->Effect` and `false->Effect`
19
+ * @type {Map<Key, Effect>}
20
+ */
21
+ #r = /* @__PURE__ */ new Map();
22
+ /**
23
+ * Similar to #onscreen with respect to the keys, but contains branches that are not yet
24
+ * in the DOM, because their insertion is deferred.
25
+ * @type {Map<Key, Branch>}
26
+ */
10
27
  #e = /* @__PURE__ */ new Map();
28
+ /**
29
+ * Keys of effects that are currently outroing
30
+ * @type {Set<Key>}
31
+ */
32
+ #a = /* @__PURE__ */ new Set();
11
33
  /**
12
34
  * Whether to pause (i.e. outro) on change, or destroy immediately.
13
35
  * This is necessary for `<svelte:element>`
14
36
  */
15
- #r = !0;
37
+ #s = !0;
16
38
  /**
17
39
  * @param {TemplateNode} anchor
18
40
  * @param {boolean} transition
19
41
  */
20
- constructor(a, t = !0) {
21
- this.anchor = a, this.#r = t;
42
+ constructor(t, r = !0) {
43
+ this.anchor = t, this.#s = r;
22
44
  }
23
- #s = () => {
24
- var a = (
45
+ #n = () => {
46
+ var t = (
25
47
  /** @type {Batch} */
26
- N
48
+ A
27
49
  );
28
- if (this.#t.has(a)) {
29
- var t = (
50
+ if (this.#t.has(t)) {
51
+ var r = (
30
52
  /** @type {Key} */
31
- this.#t.get(a)
32
- ), r = this.#a.get(t);
33
- if (r)
34
- ee(r);
53
+ this.#t.get(t)
54
+ ), a = this.#r.get(r);
55
+ if (a)
56
+ Q(a), this.#a.delete(r);
35
57
  else {
36
- var s = this.#e.get(t);
37
- s && (this.#a.set(t, s.effect), this.#e.delete(t), s.fragment.lastChild.remove(), this.anchor.before(s.fragment), r = s.effect);
58
+ var i = this.#e.get(r);
59
+ i && (this.#r.set(r, i.effect), this.#e.delete(r), i.fragment.lastChild.remove(), this.anchor.before(i.fragment), a = i.effect);
38
60
  }
39
- for (const [n, i] of this.#t) {
40
- if (this.#t.delete(n), n === a)
61
+ for (const [f, l] of this.#t) {
62
+ if (this.#t.delete(f), f === t)
41
63
  break;
42
- const l = this.#e.get(i);
43
- l && (I(l.effect), this.#e.delete(i));
64
+ const s = this.#e.get(l);
65
+ s && (D(s.effect), this.#e.delete(l));
44
66
  }
45
- for (const [n, i] of this.#a) {
46
- if (n === t) continue;
47
- const l = () => {
48
- if (Array.from(this.#t.values()).includes(n)) {
49
- var v = document.createDocumentFragment();
50
- ge(i, v), v.append(G()), this.#e.set(n, { effect: i, fragment: v });
67
+ for (const [f, l] of this.#r) {
68
+ if (f === r || this.#a.has(f)) continue;
69
+ const s = () => {
70
+ if (Array.from(this.#t.values()).includes(f)) {
71
+ var u = document.createDocumentFragment();
72
+ ge(l, u), u.append(P()), this.#e.set(f, { effect: l, fragment: u });
51
73
  } else
52
- I(i);
53
- this.#a.delete(n);
74
+ D(l);
75
+ this.#a.delete(f), this.#r.delete(f);
54
76
  };
55
- this.#r || !r ? re(i, l, !1) : l();
77
+ this.#s || !a ? (this.#a.add(f), Z(l, s, !1)) : s();
56
78
  }
57
79
  }
58
80
  };
59
81
  /**
60
82
  * @param {Batch} batch
61
83
  */
62
- #n = (a) => {
63
- this.#t.delete(a);
64
- const t = Array.from(this.#t.values());
65
- for (const [r, s] of this.#e)
66
- t.includes(r) || (I(s.effect), this.#e.delete(r));
84
+ #i = (t) => {
85
+ this.#t.delete(t);
86
+ const r = Array.from(this.#t.values());
87
+ for (const [a, i] of this.#e)
88
+ r.includes(a) || (D(i.effect), this.#e.delete(a));
67
89
  };
68
90
  /**
69
91
  *
70
92
  * @param {any} key
71
93
  * @param {null | ((target: TemplateNode) => void)} fn
72
94
  */
73
- ensure(a, t) {
74
- var r = (
95
+ ensure(t, r) {
96
+ var a = (
75
97
  /** @type {Batch} */
76
- N
77
- ), s = se();
78
- if (t && !this.#a.has(a) && !this.#e.has(a))
79
- if (s) {
80
- var n = document.createDocumentFragment(), i = G();
81
- n.append(i), this.#e.set(a, {
82
- effect: D(() => t(i)),
83
- fragment: n
98
+ A
99
+ ), i = se();
100
+ if (r && !this.#r.has(t) && !this.#e.has(t))
101
+ if (i) {
102
+ var f = document.createDocumentFragment(), l = P();
103
+ f.append(l), this.#e.set(t, {
104
+ effect: R(() => r(l)),
105
+ fragment: f
84
106
  });
85
107
  } else
86
- this.#a.set(
87
- a,
88
- D(() => t(this.anchor))
108
+ this.#r.set(
109
+ t,
110
+ R(() => r(this.anchor))
89
111
  );
90
- if (this.#t.set(r, a), s) {
91
- for (const [l, c] of this.#a)
92
- l === a ? r.skipped_effects.delete(c) : r.skipped_effects.add(c);
93
- for (const [l, c] of this.#e)
94
- l === a ? r.skipped_effects.delete(c.effect) : r.skipped_effects.add(c.effect);
95
- r.oncommit(this.#s), r.ondiscard(this.#n);
112
+ if (this.#t.set(a, t), i) {
113
+ for (const [s, o] of this.#r)
114
+ s === t ? a.skipped_effects.delete(o) : a.skipped_effects.add(o);
115
+ for (const [s, o] of this.#e)
116
+ s === t ? a.skipped_effects.delete(o.effect) : a.skipped_effects.add(o.effect);
117
+ a.oncommit(this.#n), a.ondiscard(this.#i);
96
118
  } else
97
- E && (this.anchor = k), this.#s();
119
+ g && (this.anchor = C), this.#n();
98
120
  }
99
121
  }
100
- function Ge(e, a, t = !1) {
101
- E && ie();
102
- var r = new ze(e), s = t ? ye : 0;
103
- function n(i, l) {
104
- if (E) {
105
- const v = le(e) === fe;
106
- if (i === v) {
107
- var c = J();
108
- Q(c), r.anchor = c, H(!1), r.ensure(i, l), H(!0);
122
+ function Ue(e, t, r = !1) {
123
+ g && ie();
124
+ var a = new Be(e), i = r ? me : 0;
125
+ function f(l, s) {
126
+ if (g) {
127
+ const u = fe(e) === le;
128
+ if (l === u) {
129
+ var o = W();
130
+ X(o), a.anchor = o, H(!1), a.ensure(l, s), H(!0);
109
131
  return;
110
132
  }
111
133
  }
112
- r.ensure(i, l);
134
+ a.ensure(l, s);
113
135
  }
114
136
  ne(() => {
115
- var i = !1;
116
- a((l, c = !0) => {
117
- i = !0, n(c, l);
118
- }), i || n(!1, null);
119
- }, s);
137
+ var l = !1;
138
+ t((s, o = !0) => {
139
+ l = !0, f(o, s);
140
+ }), l || f(!1, null);
141
+ }, i);
120
142
  }
121
- function Je(e, a) {
122
- return a;
143
+ function Ye(e, t) {
144
+ return t;
123
145
  }
124
- function Qe(e, a, t) {
125
- for (var r = e.items, s = [], n = a.length, i = 0; i < n; i++)
126
- Ce(a[i].e, s, !0);
127
- var l = n > 0 && s.length === 0 && t !== null;
128
- if (l) {
129
- var c = (
130
- /** @type {Element} */
131
- /** @type {Element} */
132
- t.parentNode
146
+ function $e(e, t, r) {
147
+ for (var a = [], i = t.length, f, l = t.length, s = 0; s < i; s++) {
148
+ let c = t[s];
149
+ Z(
150
+ c,
151
+ () => {
152
+ if (f) {
153
+ if (f.pending.delete(c), f.done.add(c), f.pending.size === 0) {
154
+ var d = (
155
+ /** @type {Set<EachOutroGroup>} */
156
+ e.outrogroups
157
+ );
158
+ J(j(f.done)), d.delete(f), d.size === 0 && (e.outrogroups = null);
159
+ }
160
+ } else
161
+ l -= 1;
162
+ },
163
+ !1
133
164
  );
134
- Ie(c), c.append(
135
- /** @type {Element} */
136
- t
137
- ), r.clear(), T(e, a[0].prev, a[n - 1].next);
138
165
  }
139
- He(s, () => {
140
- for (var v = 0; v < n; v++) {
141
- var m = a[v];
142
- l || (r.delete(m.k), T(e, m.prev, m.next)), I(m.e, !l);
166
+ if (l === 0) {
167
+ var o = a.length === 0 && r !== null;
168
+ if (o) {
169
+ var u = (
170
+ /** @type {Element} */
171
+ r
172
+ ), h = (
173
+ /** @type {Element} */
174
+ u.parentNode
175
+ );
176
+ Me(h), h.append(u), e.items.clear();
143
177
  }
144
- });
178
+ J(t, !o);
179
+ } else
180
+ f = {
181
+ pending: new Set(t),
182
+ done: /* @__PURE__ */ new Set()
183
+ }, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(f);
145
184
  }
146
- function Ze(e, a, t, r, s, n = null) {
147
- var i = e, l = { flags: a, items: /* @__PURE__ */ new Map(), first: null };
148
- E && ie();
149
- var c = null, v = !1, m = /* @__PURE__ */ new Map(), g = Ae(() => {
150
- var o = t();
151
- return xe(o) ? o : o == null ? [] : ue(o);
152
- }), u, d;
153
- function f() {
154
- je(
155
- d,
156
- u,
157
- l,
158
- m,
159
- i,
160
- s,
161
- a,
162
- r,
163
- t
164
- ), n !== null && (u.length === 0 ? c ? ee(c) : c = D(() => n(i)) : c !== null && re(c, () => {
165
- c = null;
185
+ function J(e, t = !0) {
186
+ for (var r = 0; r < e.length; r++)
187
+ D(e[r], t);
188
+ }
189
+ var re;
190
+ function qe(e, t, r, a, i, f = null) {
191
+ var l = e, s = /* @__PURE__ */ new Map();
192
+ g && ie();
193
+ var o = null, u = be(() => {
194
+ var v = r();
195
+ return ye(v) ? v : v == null ? [] : j(v);
196
+ }), h, c = !0;
197
+ function d() {
198
+ n.fallback = o, Ke(n, h, l, t, a), o !== null && (h.length === 0 ? (o.f & k) === 0 ? Q(o) : (o.f ^= k, I(o, null, l)) : Z(o, () => {
199
+ o = null;
166
200
  }));
167
201
  }
168
- ne(() => {
169
- d ??= /** @type {Effect} */
170
- De, u = /** @type {V[]} */
171
- x(g);
172
- var o = u.length;
173
- if (v && o === 0)
174
- return;
175
- v = o === 0;
176
- let b = !1;
177
- if (E) {
178
- var w = le(i) === fe;
179
- w !== (o === 0) && (i = J(), Q(i), H(!1), b = !0);
202
+ var p = ne(() => {
203
+ h = /** @type {V[]} */
204
+ E(u);
205
+ var v = h.length;
206
+ let T = !1;
207
+ if (g) {
208
+ var M = fe(l) === le;
209
+ M !== (v === 0) && (l = W(), X(l), H(!1), T = !0);
180
210
  }
181
- if (E) {
182
- for (var y = null, h, _ = 0; _ < o; _++) {
183
- if (k.nodeType === Re && /** @type {Comment} */
184
- k.data === Le) {
185
- i = /** @type {Comment} */
186
- k, b = !0, H(!1);
187
- break;
188
- }
189
- var p = u[_], A = r(p, _);
190
- h = j(
191
- k,
192
- l,
193
- y,
194
- null,
195
- p,
196
- A,
197
- _,
198
- s,
199
- a,
200
- t
201
- ), l.items.set(A, h), y = h;
202
- }
203
- o > 0 && Q(J());
211
+ for (var m = /* @__PURE__ */ new Set(), S = (
212
+ /** @type {Batch} */
213
+ A
214
+ ), w = se(), b = 0; b < v; b += 1) {
215
+ g && C.nodeType === we && /** @type {Comment} */
216
+ C.data === Ne && (l = /** @type {Comment} */
217
+ C, T = !0, H(!1));
218
+ var x = h[b], N = a(x, b), _ = c ? null : s.get(N);
219
+ _ ? (_.v && ee(_.v, x), _.i && ee(_.i, b), w && S.skipped_effects.delete(_.e)) : (_ = We(
220
+ s,
221
+ c ? l : re ??= P(),
222
+ x,
223
+ N,
224
+ b,
225
+ i,
226
+ t,
227
+ r
228
+ ), c || (_.e.f |= k), s.set(N, _)), m.add(N);
204
229
  }
205
- if (E)
206
- o === 0 && n && (c = D(() => n(i)));
207
- else if (se()) {
208
- var R = /* @__PURE__ */ new Set(), S = (
209
- /** @type {Batch} */
210
- N
211
- );
212
- for (_ = 0; _ < o; _ += 1) {
213
- p = u[_], A = r(p, _);
214
- var M = l.items.get(A) ?? m.get(A);
215
- M ? de(M, p, _) : (h = j(
216
- null,
217
- l,
218
- null,
219
- null,
220
- p,
221
- A,
222
- _,
223
- s,
224
- a,
225
- t,
226
- !0
227
- ), m.set(A, h)), R.add(A);
228
- }
229
- for (const [L, C] of l.items)
230
- R.has(L) || S.skipped_effects.add(C.e);
231
- S.oncommit(f);
232
- } else
233
- f();
234
- b && H(!0), x(g);
235
- }), E && (i = k);
230
+ if (v === 0 && f && !o && (c ? o = R(() => f(l)) : (o = R(() => f(re ??= P())), o.f |= k)), g && v > 0 && X(W()), !c)
231
+ if (w) {
232
+ for (const [_e, pe] of s)
233
+ m.has(_e) || S.skipped_effects.add(pe.e);
234
+ S.oncommit(d), S.ondiscard(() => {
235
+ });
236
+ } else
237
+ d();
238
+ T && H(!0), E(u);
239
+ }), n = { effect: p, items: s, outrogroups: null, fallback: o };
240
+ c = !1, g && (l = C);
236
241
  }
237
- function je(e, a, t, r, s, n, i, l, c) {
238
- var v = a.length, m = t.items, g = t.first, u = g, d, f = null, o = [], b = [], w, y, h, _;
239
- for (_ = 0; _ < v; _ += 1) {
240
- if (w = a[_], y = l(w, _), h = m.get(y), h === void 0) {
241
- var p = r.get(y);
242
- if (p !== void 0) {
243
- r.delete(y), m.set(y, p);
244
- var A = f ? f.next : u;
245
- T(t, f, p), T(t, p, A), W(p, A, s), f = p;
246
- } else {
247
- var R = u ? (
248
- /** @type {TemplateNode} */
249
- u.e.nodes_start
250
- ) : s;
251
- f = j(
252
- R,
253
- t,
254
- f,
255
- f === null ? t.first : f.next,
256
- w,
257
- y,
258
- _,
259
- n,
260
- i,
261
- c
262
- );
242
+ function Ke(e, t, r, a, i) {
243
+ var f = t.length, l = e.items, s = e.effect.first, o, u = null, h = [], c = [], d, p, n, v;
244
+ for (v = 0; v < f; v += 1) {
245
+ if (d = t[v], p = i(d, v), n = /** @type {EachItem} */
246
+ l.get(p).e, e.outrogroups !== null)
247
+ for (const _ of e.outrogroups)
248
+ _.pending.delete(n), _.done.delete(n);
249
+ if ((n.f & k) !== 0)
250
+ if (n.f ^= k, n === s)
251
+ I(n, null, r);
252
+ else {
253
+ var T = u ? u.next : s;
254
+ n === e.effect.last && (e.effect.last = n.prev), n.prev && (n.prev.next = n.next), n.next && (n.next.prev = n.prev), y(e, u, n), y(e, n, T), I(n, T, r), u = n, h = [], c = [], s = u.next;
255
+ continue;
263
256
  }
264
- m.set(y, f), o = [], b = [], u = f.next;
265
- continue;
266
- }
267
- if (de(h, w, _), (h.e.f & q) !== 0 && ee(h.e), h !== u) {
268
- if (d !== void 0 && d.has(h)) {
269
- if (o.length < b.length) {
270
- var S = b[0], M;
271
- f = S.prev;
272
- var L = o[0], C = o[o.length - 1];
273
- for (M = 0; M < o.length; M += 1)
274
- W(o[M], S, s);
275
- for (M = 0; M < b.length; M += 1)
276
- d.delete(b[M]);
277
- T(t, L.prev, C.next), T(t, f, L), T(t, C, S), u = S, f = C, _ -= 1, o = [], b = [];
257
+ if ((n.f & Y) !== 0 && Q(n), n !== s) {
258
+ if (o !== void 0 && o.has(n)) {
259
+ if (h.length < c.length) {
260
+ var M = c[0], m;
261
+ u = M.prev;
262
+ var S = h[0], w = h[h.length - 1];
263
+ for (m = 0; m < h.length; m += 1)
264
+ I(h[m], M, r);
265
+ for (m = 0; m < c.length; m += 1)
266
+ o.delete(c[m]);
267
+ y(e, S.prev, w.next), y(e, u, S), y(e, w, M), s = M, u = w, v -= 1, h = [], c = [];
278
268
  } else
279
- d.delete(h), W(h, u, s), T(t, h.prev, h.next), T(t, h, f === null ? t.first : f.next), T(t, f, h), f = h;
269
+ o.delete(n), I(n, s, r), y(e, n.prev, n.next), y(e, n, u === null ? e.effect.first : u.next), y(e, u, n), u = n;
280
270
  continue;
281
271
  }
282
- for (o = [], b = []; u !== null && u.k !== y; )
283
- (u.e.f & q) === 0 && (d ??= /* @__PURE__ */ new Set()).add(u), b.push(u), u = u.next;
284
- if (u === null)
272
+ for (h = [], c = []; s !== null && s !== n; )
273
+ (o ??= /* @__PURE__ */ new Set()).add(s), c.push(s), s = s.next;
274
+ if (s === null)
285
275
  continue;
286
- h = u;
287
276
  }
288
- o.push(h), f = h, u = h.next;
277
+ (n.f & k) === 0 && h.push(n), u = n, s = n.next;
289
278
  }
290
- if (u !== null || d !== void 0) {
291
- for (var $ = d === void 0 ? [] : ue(d); u !== null; )
292
- (u.e.f & q) === 0 && $.push(u), u = u.next;
293
- var be = $.length;
294
- if (be > 0) {
295
- var pe = null;
296
- Qe(t, $, pe);
279
+ if (e.outrogroups !== null) {
280
+ for (const _ of e.outrogroups)
281
+ _.pending.size === 0 && (J(j(_.done)), e.outrogroups?.delete(_));
282
+ e.outrogroups.size === 0 && (e.outrogroups = null);
283
+ }
284
+ if (s !== null || o !== void 0) {
285
+ var b = [];
286
+ if (o !== void 0)
287
+ for (n of o)
288
+ (n.f & Y) === 0 && b.push(n);
289
+ for (; s !== null; )
290
+ (s.f & Y) === 0 && s !== e.fallback && b.push(s), s = s.next;
291
+ var x = b.length;
292
+ if (x > 0) {
293
+ var N = null;
294
+ $e(e, b, N);
297
295
  }
298
296
  }
299
- e.first = t.first && t.first.e, e.last = f && f.e;
300
- for (var Ee of r.values())
301
- I(Ee.e);
302
- r.clear();
303
- }
304
- function de(e, a, t, r) {
305
- Me(e.v, a), e.i = t;
306
297
  }
307
- function j(e, a, t, r, s, n, i, l, c, v, m) {
308
- var g = (c & Se) !== 0, u = (c & we) === 0, d = g ? u ? Te(s, !1, !1) : te(s) : s, f = (c & Ne) === 0 ? i : te(i), o = {
309
- i: f,
310
- v: d,
311
- k: n,
312
- a: null,
313
- // @ts-expect-error
314
- e: null,
315
- prev: t,
316
- next: r
298
+ function We(e, t, r, a, i, f, l, s) {
299
+ var o = (l & Ae) !== 0 ? (l & ke) === 0 ? Ee(r, !1, !1) : te(r) : null, u = (l & Se) !== 0 ? te(i) : null;
300
+ return {
301
+ v: o,
302
+ i: u,
303
+ e: R(() => (f(t, o ?? r, u ?? i, s), () => {
304
+ e.delete(a);
305
+ }))
317
306
  };
318
- try {
319
- if (e === null) {
320
- var b = document.createDocumentFragment();
321
- b.append(e = G());
322
- }
323
- return o.e = D(() => l(
324
- /** @type {Node} */
325
- e,
326
- d,
327
- f,
328
- v
329
- ), E), o.e.prev = t && t.e, o.e.next = r && r.e, t === null ? m || (a.first = o) : (t.next = o, t.e.next = o.e), r !== null && (r.prev = o, r.e.prev = o.e), o;
330
- } finally {
331
- }
332
307
  }
333
- function W(e, a, t) {
334
- for (var r = e.next ? (
335
- /** @type {TemplateNode} */
336
- e.next.e.nodes_start
337
- ) : t, s = a ? (
338
- /** @type {TemplateNode} */
339
- a.e.nodes_start
340
- ) : t, n = (
341
- /** @type {TemplateNode} */
342
- e.e.nodes_start
343
- ); n !== null && n !== r; ) {
344
- var i = (
345
- /** @type {TemplateNode} */
346
- ke(n)
347
- );
348
- s.before(n), n = i;
349
- }
308
+ function I(e, t, r) {
309
+ if (e.nodes)
310
+ for (var a = e.nodes.start, i = e.nodes.end, f = t && (t.f & k) === 0 ? (
311
+ /** @type {EffectNodes} */
312
+ t.nodes.start
313
+ ) : r; a !== null; ) {
314
+ var l = (
315
+ /** @type {TemplateNode} */
316
+ Te(a)
317
+ );
318
+ if (f.before(a), a === i)
319
+ return;
320
+ a = l;
321
+ }
350
322
  }
351
- function T(e, a, t) {
352
- a === null ? e.first = t : (a.next = t, a.e.next = t && t.e), t !== null && (t.prev = a, t.e.prev = a && a.e);
323
+ function y(e, t, r) {
324
+ t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
353
325
  }
354
- function _e(e) {
355
- var a, t, r = "";
356
- if (typeof e == "string" || typeof e == "number") r += e;
326
+ function he(e) {
327
+ var t, r, a = "";
328
+ if (typeof e == "string" || typeof e == "number") a += e;
357
329
  else if (typeof e == "object") if (Array.isArray(e)) {
358
- var s = e.length;
359
- for (a = 0; a < s; a++) e[a] && (t = _e(e[a])) && (r && (r += " "), r += t);
360
- } else for (t in e) e[t] && (r && (r += " "), r += t);
361
- return r;
330
+ var i = e.length;
331
+ for (t = 0; t < i; t++) e[t] && (r = he(e[t])) && (a && (a += " "), a += r);
332
+ } else for (r in e) e[r] && (a && (a += " "), a += r);
333
+ return a;
362
334
  }
363
- function et() {
364
- for (var e, a, t = 0, r = "", s = arguments.length; t < s; t++) (e = arguments[t]) && (a = _e(e)) && (r && (r += " "), r += a);
365
- return r;
335
+ function Xe() {
336
+ for (var e, t, r = 0, a = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = he(e)) && (a && (a += " "), a += t);
337
+ return a;
366
338
  }
367
- function tt(e) {
368
- return typeof e == "object" ? et(e) : e ?? "";
339
+ function Ge(e) {
340
+ return typeof e == "object" ? Xe(e) : e ?? "";
369
341
  }
370
- function at(e, a, t) {
371
- var r = e == null ? "" : "" + e;
372
- return r === "" ? null : r;
342
+ function Je(e, t, r) {
343
+ var a = e == null ? "" : "" + e;
344
+ return a === "" ? null : a;
373
345
  }
374
- function rt(e, a, t, r, s, n) {
375
- var i = e.__className;
376
- if (E || i !== t || i === void 0) {
377
- var l = at(t);
378
- (!E || l !== e.getAttribute("class")) && (l == null ? e.removeAttribute("class") : e.className = l), e.__className = t;
346
+ function Qe(e, t, r, a, i, f) {
347
+ var l = e.__className;
348
+ if (g || l !== r || l === void 0) {
349
+ var s = Je(r);
350
+ (!g || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : e.className = s), e.__className = r;
379
351
  }
380
- return n;
352
+ return f;
381
353
  }
382
- const st = Symbol("is custom element"), nt = Symbol("is html");
383
- function it(e, a, t, r) {
384
- var s = lt(e);
385
- E && (s[a] = e.getAttribute(a)), s[a] !== (s[a] = t) && (t == null ? e.removeAttribute(a) : typeof t != "string" && ft(e).includes(a) ? e[a] = t : e.setAttribute(a, t));
354
+ const Ze = Symbol("is custom element"), je = Symbol("is html");
355
+ function et(e, t, r, a) {
356
+ var i = tt(e);
357
+ g && (i[t] = e.getAttribute(t)), i[t] !== (i[t] = r) && (r == null ? e.removeAttribute(t) : typeof r != "string" && rt(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
386
358
  }
387
- function lt(e) {
359
+ function tt(e) {
388
360
  return (
389
361
  /** @type {Record<string | symbol, unknown>} **/
390
362
  // @ts-expect-error
391
363
  e.__attributes ??= {
392
- [st]: e.nodeName.includes("-"),
393
- [nt]: e.namespaceURI === Pe
364
+ [Ze]: e.nodeName.includes("-"),
365
+ [je]: e.namespaceURI === xe
394
366
  }
395
367
  );
396
368
  }
397
369
  var ae = /* @__PURE__ */ new Map();
398
- function ft(e) {
399
- var a = e.getAttribute("is") || e.nodeName, t = ae.get(a);
400
- if (t) return t;
401
- ae.set(a, t = []);
402
- for (var r, s = e, n = Element.prototype; n !== s; ) {
403
- r = Oe(s);
404
- for (var i in r)
405
- r[i].set && t.push(i);
406
- s = Fe(s);
370
+ function rt(e) {
371
+ var t = e.getAttribute("is") || e.nodeName, r = ae.get(t);
372
+ if (r) return r;
373
+ ae.set(t, r = []);
374
+ for (var a, i = e, f = Element.prototype; f !== i; ) {
375
+ a = Ie(i);
376
+ for (var l in a)
377
+ a[l].set && r.push(l);
378
+ i = Ce(i);
407
379
  }
408
- return t;
380
+ return r;
409
381
  }
410
- function ut(e, a, t = a) {
411
- var r = /* @__PURE__ */ new WeakSet();
412
- Ve(e, "input", async (s) => {
413
- var n = s ? e.defaultValue : e.value;
414
- if (n = X(e) ? z(n) : n, t(n), N !== null && r.add(N), await Be(), n !== (n = a())) {
415
- var i = e.selectionStart, l = e.selectionEnd, c = e.value.length;
416
- if (e.value = n ?? "", l !== null) {
417
- var v = e.value.length;
418
- i === l && l === c && v > c ? (e.selectionStart = v, e.selectionEnd = v) : (e.selectionStart = i, e.selectionEnd = Math.min(l, v));
382
+ function at(e, t, r = t) {
383
+ var a = /* @__PURE__ */ new WeakSet();
384
+ He(e, "input", async (i) => {
385
+ var f = i ? e.defaultValue : e.value;
386
+ if (f = q(e) ? K(f) : f, r(f), A !== null && a.add(A), await Re(), f !== (f = t())) {
387
+ var l = e.selectionStart, s = e.selectionEnd, o = e.value.length;
388
+ if (e.value = f ?? "", s !== null) {
389
+ var u = e.value.length;
390
+ l === s && s === o && u > o ? (e.selectionStart = u, e.selectionEnd = u) : (e.selectionStart = l, e.selectionEnd = Math.min(s, u));
419
391
  }
420
392
  }
421
393
  }), // If we are hydrating and the value has since changed,
422
394
  // then use the updated value from the input instead.
423
- (E && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
395
+ (g && e.defaultValue !== e.value || // If defaultValue is set, then value == defaultValue
424
396
  // TODO Svelte 6: remove input.value check and set to empty string?
425
- P(a) == null && e.value) && (t(X(e) ? z(e.value) : e.value), N !== null && r.add(N)), Ue(() => {
426
- var s = a();
397
+ F(t) == null && e.value) && (r(q(e) ? K(e.value) : e.value), A !== null && a.add(A)), De(() => {
398
+ var i = t();
427
399
  if (e === document.activeElement) {
428
- var n = (
400
+ var f = (
429
401
  /** @type {Batch} */
430
- Ye ?? N
402
+ Fe ?? A
431
403
  );
432
- if (r.has(n))
404
+ if (a.has(f))
433
405
  return;
434
406
  }
435
- X(e) && s === z(e.value) || e.type === "date" && !s && !e.value || s !== e.value && (e.value = s ?? "");
407
+ q(e) && i === K(e.value) || e.type === "date" && !i && !e.value || i !== e.value && (e.value = i ?? "");
436
408
  });
437
409
  }
438
- function X(e) {
439
- var a = e.type;
440
- return a === "number" || a === "range";
410
+ function q(e) {
411
+ var t = e.type;
412
+ return t === "number" || t === "range";
441
413
  }
442
- function z(e) {
414
+ function K(e) {
443
415
  return e === "" ? null : +e;
444
416
  }
445
- var ot = Y("<button> </button>"), ct = Y('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
446
- function me(e, a) {
447
- he(a, !1);
448
- const t = $e();
449
- let r = F(a, "buttons", 28, () => []);
450
- function s() {
451
- t("html", {});
417
+ var st = U("<button> </button>"), nt = U('<div><button class="HTMLEditor">HTML</button> <button class="PlainEditor">Plain</button> <!></div>');
418
+ function de(e, t) {
419
+ ve(t, !1);
420
+ const r = Le();
421
+ let a = L(t, "buttons", 28, () => []);
422
+ function i() {
423
+ r("html", {});
452
424
  }
453
- function n() {
454
- t("plain", {});
425
+ function f() {
426
+ r("plain", {});
455
427
  }
456
- var i = {
428
+ var l = {
457
429
  get buttons() {
458
- return r();
430
+ return a();
459
431
  },
460
- set buttons(g) {
461
- r(g), O();
432
+ set buttons(c) {
433
+ a(c), O();
462
434
  }
463
435
  };
464
- ce();
465
- var l = ct(), c = B(l), v = Z(c, 2), m = Z(v, 2);
466
- return Ze(m, 1, r, Je, (g, u) => {
467
- var d = ot(), f = B(d, !0);
468
- U(d), qe(() => {
469
- rt(d, 1, tt((x(u), P(() => x(u).style)))), it(d, "title", (x(u), P(() => x(u).text))), Ke(f, (x(u), P(() => x(u).text)));
470
- }), K("click", d, function(...o) {
471
- x(u).handler?.apply(this, o);
472
- }), V(g, d);
473
- }), U(l), K("click", c, s), K("click", v, n), V(e, l), ve(i);
436
+ ue();
437
+ var s = nt(), o = V(s), u = G(o, 2), h = G(u, 2);
438
+ return qe(h, 1, a, Ye, (c, d) => {
439
+ var p = st(), n = V(p, !0);
440
+ B(p), Oe(() => {
441
+ Qe(p, 1, Ge((E(d), F(() => E(d).style)))), et(p, "title", (E(d), F(() => E(d).text))), Pe(n, (E(d), F(() => E(d).text)));
442
+ }), $("click", p, function(...v) {
443
+ E(d).handler?.apply(this, v);
444
+ }), z(c, p);
445
+ }), B(s), $("click", o, i), $("click", u, f), z(e, s), ce(l);
474
446
  }
475
- oe(me, { buttons: {} }, [], [], !0);
476
- var vt = Y("<textarea></textarea>"), ht = Y('<main><div class="Editor"><!></div> <!></main>');
477
- function dt(e, a) {
478
- he(a, !1);
479
- let t = F(a, "value", 12, ""), r = F(a, "buttons", 28, () => []), s = F(a, "html", 12, !0);
480
- function n() {
481
- s() || s(!0);
447
+ oe(de, { buttons: {} }, [], [], !0);
448
+ var it = U("<textarea></textarea>"), ft = U('<main><div class="Editor"><!></div> <!></main>');
449
+ function lt(e, t) {
450
+ ve(t, !1);
451
+ let r = L(t, "value", 12, ""), a = L(t, "buttons", 28, () => []), i = L(t, "html", 12, !0);
452
+ function f() {
453
+ i() || i(!0);
482
454
  }
483
- function i() {
484
- s() && (t(t().replace(/<[^>]*>?/gm, "")), s(!1));
455
+ function l() {
456
+ i() && (r(r().replace(/<[^>]*>?/gm, "")), i(!1));
485
457
  }
486
- var l = {
458
+ var s = {
487
459
  get value() {
488
- return t();
460
+ return r();
489
461
  },
490
- set value(f) {
491
- t(f), O();
462
+ set value(n) {
463
+ r(n), O();
492
464
  },
493
465
  get buttons() {
494
- return r();
466
+ return a();
495
467
  },
496
- set buttons(f) {
497
- r(f), O();
468
+ set buttons(n) {
469
+ a(n), O();
498
470
  },
499
471
  get html() {
500
- return s();
472
+ return i();
501
473
  },
502
- set html(f) {
503
- s(f), O();
474
+ set html(n) {
475
+ i(n), O();
504
476
  }
505
477
  };
506
- ce();
507
- var c = ht(), v = B(c), m = B(v);
478
+ ue();
479
+ var o = ft(), u = V(o), h = V(u);
508
480
  {
509
- var g = (f) => {
510
- We(f, {
481
+ var c = (n) => {
482
+ ze(n, {
511
483
  get value() {
512
- return t();
484
+ return r();
513
485
  },
514
- set value(o) {
515
- t(o);
486
+ set value(v) {
487
+ r(v);
516
488
  },
517
489
  $$legacy: !0
518
490
  });
519
- }, u = (f) => {
520
- var o = vt();
521
- Xe(o), ut(o, t), V(f, o);
491
+ }, d = (n) => {
492
+ var v = it();
493
+ Ve(v), at(v, r), z(n, v);
522
494
  };
523
- Ge(m, (f) => {
524
- s() ? f(g) : f(u, !1);
495
+ Ue(h, (n) => {
496
+ i() ? n(c) : n(d, !1);
525
497
  });
526
498
  }
527
- U(v);
528
- var d = Z(v, 2);
529
- return me(d, {
499
+ B(u);
500
+ var p = G(u, 2);
501
+ return de(p, {
530
502
  get buttons() {
531
- return r();
503
+ return a();
532
504
  },
533
- set buttons(f) {
534
- r(f);
505
+ set buttons(n) {
506
+ a(n);
535
507
  },
536
- $$events: { html: n, plain: i },
508
+ $$events: { html: f, plain: l },
537
509
  $$legacy: !0
538
- }), U(c), V(e, c), ve(l);
510
+ }), B(o), z(e, o), ce(s);
539
511
  }
540
- customElements.define("switchable-editor", oe(dt, { value: {}, buttons: {}, html: {} }, [], [], !1));
512
+ customElements.define("switchable-editor", oe(lt, { value: {}, buttons: {}, html: {} }, [], [], !1));