@directus/app 9.14.3 → 9.15.1

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 (371) hide show
  1. package/dist/assets/@directus_extensions-sdk.a04f8e82.entry.js +1 -0
  2. package/dist/assets/{accounts.d4221901.js → accounts.8fbf8699.js} +1 -1
  3. package/dist/assets/{active-line.c42b5ccc.js → active-line.ac98eb80.js} +1 -1
  4. package/dist/assets/{activity-log.0479877c.js → activity-log.edaa174f.js} +0 -0
  5. package/dist/assets/{activity.941cbf2b.js → activity.f03e4c50.js} +19 -19
  6. package/dist/assets/{apl.fc3177e6.js → apl.c701f3ad.js} +1 -1
  7. package/dist/assets/{architecture.ddda2484.js → architecture.a1dad632.js} +0 -0
  8. package/dist/assets/{asciiarmor.a8ce3f8e.js → asciiarmor.13c53f8b.js} +1 -1
  9. package/dist/assets/{asn.1.646b8b76.js → asn.1.37bc407d.js} +1 -1
  10. package/dist/assets/{asterisk.b941d12b.js → asterisk.a0939334.js} +1 -1
  11. package/dist/assets/{authentication.d5cd539e.js → authentication.a37290ac.js} +14 -14
  12. package/dist/assets/{autorefresh.567e17ed.js → autorefresh.f528afbe.js} +1 -1
  13. package/dist/assets/{aws.65b39fe1.js → aws.81dde688.js} +1 -1
  14. package/dist/assets/{backing-directus.2809dd5a.js → backing-directus.877781ff.js} +1 -1
  15. package/dist/assets/bg-BG.8d8c105a.js +1 -0
  16. package/dist/assets/{brainfuck.f26a5772.js → brainfuck.e5abbb42.js} +1 -1
  17. package/dist/assets/{cli.6ee7cfc0.js → cli.acbc6a21.js} +3 -3
  18. package/dist/assets/{cli.fce4fcbe.js → cli.e9c97474.js} +12 -12
  19. package/dist/assets/{clike.cfce5ee3.js → clike.8ac88bf2.js} +1 -1
  20. package/dist/assets/{clojure.2fe79f1b.js → clojure.80a76546.js} +1 -1
  21. package/dist/assets/{cloudron.735aeaf5.js → cloudron.ccb9f60b.js} +0 -0
  22. package/dist/assets/{cmake.3cfd7c00.js → cmake.ec5917fe.js} +1 -1
  23. package/dist/assets/{cobol.21633223.js → cobol.ef7a4b09.js} +1 -1
  24. package/dist/assets/{codebase-overview.3de1bbdc.js → codebase-overview.2867468d.js} +1 -1
  25. package/dist/assets/{coffeescript.9fc4b4fa.js → coffeescript.6f9481f3.js} +1 -1
  26. package/dist/assets/{collections.11aae4a8.js → collections.09fe8eef.js} +20 -20
  27. package/dist/assets/collections.d440e2c1.js +2 -0
  28. package/dist/assets/commonlisp.afc36432.js +1 -0
  29. package/dist/assets/{config-options.9b79feaf.js → config-options.592aab17.js} +15 -15
  30. package/dist/assets/content.d6024fae.js +1 -0
  31. package/dist/assets/{creating-extensions.054f4231.js → creating-extensions.028151bd.js} +5 -5
  32. package/dist/assets/{crystal.68fa9fad.js → crystal.19a410f7.js} +1 -1
  33. package/dist/assets/{cs-CZ.5045b098.js → cs-CZ.ba778ad2.js} +1 -1
  34. package/dist/assets/{css.05f1267f.js → css.79beeecf.js} +1 -1
  35. package/dist/assets/{cypher.3ba27a55.js → cypher.20e965cd.js} +1 -1
  36. package/dist/assets/{d.0b29fec8.js → d.c6bda58b.js} +1 -1
  37. package/dist/assets/{da-DK.3c379038.js → da-DK.38409d46.js} +1 -1
  38. package/dist/assets/{dart.47537d5c.js → dart.efdc21ef.js} +1 -1
  39. package/dist/assets/{data-model.eb5f7e27.js → data-model.b806a25a.js} +1 -1
  40. package/dist/assets/de-DE.e96978bc.js +1 -0
  41. package/dist/assets/{diff.bff206b2.js → diff.1cedea79.js} +1 -1
  42. package/dist/assets/{digitalocean-app-platform.62c81303.js → digitalocean-app-platform.542bac85.js} +1 -1
  43. package/dist/assets/{display-templates.2bbee0eb.js → display-templates.af38b75d.js} +1 -1
  44. package/dist/assets/{displays.037994a0.js → displays.027c9ffc.js} +4 -4
  45. package/dist/assets/django.255ac486.js +1 -0
  46. package/dist/assets/{docker.1f4e694b.js → docker.ce60011d.js} +5 -5
  47. package/dist/assets/{dockerfile.6988104d.js → dockerfile.00ff56e0.js} +1 -1
  48. package/dist/assets/{documentation.60e724e3.js → documentation.d5124166.js} +0 -0
  49. package/dist/assets/{dtd.8853bc1d.js → dtd.12790411.js} +1 -1
  50. package/dist/assets/{dylan.7091311e.js → dylan.b1ceee9c.js} +1 -1
  51. package/dist/assets/{ebnf.27bafe31.js → ebnf.24aa229e.js} +1 -1
  52. package/dist/assets/{ecl.e3862bc7.js → ecl.76031112.js} +1 -1
  53. package/dist/assets/{eiffel.bbe77ebc.js → eiffel.ab81ecdd.js} +1 -1
  54. package/dist/assets/{elm.3edb1cb8.js → elm.e9bedfdd.js} +1 -1
  55. package/dist/assets/{email-templates.062d08d1.js → email-templates.cf7de2aa.js} +1 -1
  56. package/dist/assets/en-GB.61c87be5.js +1 -0
  57. package/dist/assets/{endpoints.b6214ea4.js → endpoints.0f025685.js} +2 -2
  58. package/dist/assets/{erlang.5e30c077.js → erlang.fc3774cc.js} +1 -1
  59. package/dist/assets/{extensions.0f9a4545.js → extensions.27ee4742.js} +4 -4
  60. package/dist/assets/{factor.59d4e225.js → factor.a73b32af.js} +1 -1
  61. package/dist/assets/{faq.c134fb00.js → faq.633c25f1.js} +2 -2
  62. package/dist/assets/{fcl.e1c74774.js → fcl.05022ce6.js} +1 -1
  63. package/dist/assets/{fields.2c2cc037.js → fields.47aabeca.js} +24 -24
  64. package/dist/assets/file-library.82e96a16.js +1 -0
  65. package/dist/assets/{files.1d250203.js → files.97dd14f6.js} +34 -34
  66. package/dist/assets/{filter-rules.6cc70dd4.js → filter-rules.f7296d23.js} +6 -6
  67. package/dist/assets/{filters.0ef5a5ed.js → filters.b1397c95.js} +1 -1
  68. package/dist/assets/{flows.19c6599f.js → flows.0173f6d4.js} +36 -36
  69. package/dist/assets/{flows.03ed1b32.js → flows.7116f535.js} +3 -3
  70. package/dist/assets/{folders.e417fd8b.js → folders.0622ae98.js} +32 -32
  71. package/dist/assets/{forth.573974b7.js → forth.9f7f8152.js} +1 -1
  72. package/dist/assets/{fortran.43c825fe.js → fortran.52232d25.js} +1 -1
  73. package/dist/assets/fr-CA.87857f82.js +1 -0
  74. package/dist/assets/fr-FR.43594476.js +1 -0
  75. package/dist/assets/{gas.bf0e12f5.js → gas.be5a1084.js} +1 -1
  76. package/dist/assets/{gcp.293edb91.js → gcp.8ca78211.js} +2 -2
  77. package/dist/assets/{gfm.fdab0f12.js → gfm.5d303cf2.js} +1 -1
  78. package/dist/assets/{gherkin.cbdb3147.js → gherkin.9ee4b7a0.js} +1 -1
  79. package/dist/assets/{github-ci.20236bca.js → github-ci.40c9d16d.js} +1 -1
  80. package/dist/assets/{glossary.26a7ec6d.js → glossary.38068d72.js} +1 -1
  81. package/dist/assets/{glossary.c947165b.js → glossary.ecc8e7cf.js} +1 -1
  82. package/dist/assets/go.6e4d34e0.js +1 -0
  83. package/dist/assets/{groovy.d30f60f6.js → groovy.bff23487.js} +1 -1
  84. package/dist/assets/{haml.67008da4.js → haml.6815814f.js} +1 -1
  85. package/dist/assets/{handlebars.7db26db6.js → handlebars.66d3addf.js} +1 -1
  86. package/dist/assets/{haskell-literate.ff1f638d.js → haskell-literate.ac28a705.js} +1 -1
  87. package/dist/assets/{haskell.992c1ca3.js → haskell.c79f2f68.js} +1 -1
  88. package/dist/assets/{haxe.4a61b505.js → haxe.dff1069b.js} +1 -1
  89. package/dist/assets/he-IL.7b11dc5e.js +1 -0
  90. package/dist/assets/{hooks.619f1e3f.js → hooks.5488f34d.js} +4 -4
  91. package/dist/assets/hr-HR.076348b6.js +1 -0
  92. package/dist/assets/{htmlembedded.1307bd8e.js → htmlembedded.0b866530.js} +1 -1
  93. package/dist/assets/{htmlmixed.c0eeda2f.js → htmlmixed.51a1a55b.js} +1 -1
  94. package/dist/assets/http.ccc0b7c5.js +1 -0
  95. package/dist/assets/hu-HU.3c8e2cdc.js +1 -0
  96. package/dist/assets/{idl.dd23bb5b.js → idl.6480e5fb.js} +1 -1
  97. package/dist/assets/{iis.28211ce4.js → iis.9e682df0.js} +2 -2
  98. package/dist/assets/{import-export.34657c23.js → import-export.2114c732.js} +2 -2
  99. package/dist/assets/{index.7c8f7bca.js → index.0152af18.js} +1 -1
  100. package/dist/assets/{index.a2d2ff92.js → index.048bfcd4.js} +1 -1
  101. package/dist/assets/{index.e95f45d7.js → index.094d7435.js} +1 -1
  102. package/dist/assets/{index.ed3b88b9.entry.js → index.0ce698aa.entry.js} +642 -642
  103. package/dist/assets/{index.91fbefea.js → index.15e3c95b.js} +1 -1
  104. package/dist/assets/{index.65c58270.js → index.16102ca4.js} +1 -1
  105. package/dist/assets/{index.04f4681f.js → index.1c2bca61.js} +1 -1
  106. package/dist/assets/{index.e0295cb0.js → index.21e15966.js} +1 -1
  107. package/dist/assets/{index.51da8268.js → index.22cbe4df.js} +1 -1
  108. package/dist/assets/{index.7b1ae0e3.js → index.238d8ccc.js} +1 -1
  109. package/dist/assets/{index.632970d8.js → index.286f3139.js} +1 -1
  110. package/dist/assets/{index.610f817e.js → index.2fa94ca6.js} +1 -1
  111. package/dist/assets/{index.f3a47a7c.js → index.34e50685.js} +1 -1
  112. package/dist/assets/{index.a977949d.js → index.36361e5b.js} +1 -1
  113. package/dist/assets/{index.733f5f4d.js → index.38ca65a8.js} +1 -1
  114. package/dist/assets/{index.f1e5bfe4.js → index.3a449212.js} +1 -1
  115. package/dist/assets/{index.70c01091.js → index.3dbbeee8.js} +1 -1
  116. package/dist/assets/index.40baf28f.css +1 -0
  117. package/dist/assets/{index.b22c6489.js → index.43fc16cf.js} +1 -1
  118. package/dist/assets/{index.ba2729bd.js → index.44dfee18.js} +1 -1
  119. package/dist/assets/{index.998500ca.js → index.4caf473d.js} +1 -1
  120. package/dist/assets/{index.9c1c3dcb.js → index.4f3e1405.js} +1 -1
  121. package/dist/assets/{index.7fee55e4.js → index.504c871e.js} +1 -1
  122. package/dist/assets/{index.2aaac8bd.js → index.558dbe9d.js} +1 -1
  123. package/dist/assets/{index.a3a6d636.js → index.5785bd5b.js} +1 -1
  124. package/dist/assets/{index.062b5c4e.js → index.58ce5d3f.js} +1 -1
  125. package/dist/assets/{index.55f95a2f.js → index.5bccbb70.js} +1 -1
  126. package/dist/assets/{index.e975fc43.js → index.5e2156f1.js} +1 -1
  127. package/dist/assets/{index.dff2a130.js → index.5efaa053.js} +1 -1
  128. package/dist/assets/{index.552cd104.js → index.63beca13.js} +1 -1
  129. package/dist/assets/{index.2799a3fe.js → index.65ef9955.js} +1 -1
  130. package/dist/assets/{index.a968c50b.js → index.6ac5a367.js} +1 -1
  131. package/dist/assets/{index.0b930698.js → index.6b8582b3.js} +1 -1
  132. package/dist/assets/{index.55a57945.js → index.6be1ec19.js} +1 -1
  133. package/dist/assets/{index.888b390d.js → index.6c3cfd9d.js} +1 -1
  134. package/dist/assets/index.719a1bf6.css +1 -0
  135. package/dist/assets/{index.c1fc17bc.js → index.727f38c4.js} +1 -1
  136. package/dist/assets/{index.8849b22a.js → index.73791b0b.js} +1 -1
  137. package/dist/assets/{index.c62ebcc5.js → index.766f9329.js} +1 -1
  138. package/dist/assets/{index.899d7ee6.js → index.7f1515ca.js} +1 -1
  139. package/dist/assets/{index.2e81f792.js → index.7fe2a6c1.js} +1 -1
  140. package/dist/assets/{index.d3abd983.js → index.8627ddb4.js} +0 -0
  141. package/dist/assets/{index.903dc700.js → index.86900d0e.js} +1 -1
  142. package/dist/assets/{index.46f1f69a.js → index.87997092.js} +1 -1
  143. package/dist/assets/{index.9f57589f.js → index.8b6e1cf5.js} +1 -1
  144. package/dist/assets/{index.b62592c3.js → index.8b727b3d.js} +1 -1
  145. package/dist/assets/{index.172f9ed4.js → index.8b83352c.js} +1 -1
  146. package/dist/assets/{index.01a3b92d.js → index.8d64a2cc.js} +1 -1
  147. package/dist/assets/{index.74e00be8.js → index.8e6a2df6.js} +1 -1
  148. package/dist/assets/{index.107979f6.js → index.909efb92.js} +1 -1
  149. package/dist/assets/{index.64d37708.js → index.937b45e4.js} +1 -1
  150. package/dist/assets/{index.84179c87.js → index.938b9c64.js} +1 -1
  151. package/dist/assets/{index.5cee23da.js → index.970729f9.js} +1 -1
  152. package/dist/assets/{index.ad338b08.js → index.9a2ded43.js} +1 -1
  153. package/dist/assets/{index.7aa33ef4.js → index.a14f652a.js} +1 -1
  154. package/dist/assets/{index.e282364f.js → index.a157d24b.js} +1 -1
  155. package/dist/assets/{index.c859516b.js → index.ab135b59.js} +1 -1
  156. package/dist/assets/{index.e003b179.js → index.ac660d97.js} +1 -1
  157. package/dist/assets/{index.a0faf01e.js → index.aeca2d25.js} +1 -1
  158. package/dist/assets/index.af7bac4f.js +26 -0
  159. package/dist/assets/{index.243aba72.js → index.b3227ed5.js} +1 -1
  160. package/dist/assets/{index.df853543.js → index.b4512435.js} +1 -1
  161. package/dist/assets/{index.777553ca.js → index.b73eaa87.js} +1 -1
  162. package/dist/assets/{index.f6326954.js → index.b91f7cb9.js} +1 -1
  163. package/dist/assets/{index.a8265354.js → index.b990ffa7.js} +1 -1
  164. package/dist/assets/{index.3fc8253a.js → index.bb39eac1.js} +1 -1
  165. package/dist/assets/{index.4d7f8516.js → index.c0a6d945.js} +1 -1
  166. package/dist/assets/{index.9ac7a0ad.js → index.ca46607e.js} +1 -1
  167. package/dist/assets/{index.61092ae0.js → index.ce459a32.js} +1 -1
  168. package/dist/assets/{index.201cdc9c.js → index.d3e27d97.js} +1 -1
  169. package/dist/assets/{index.fe5f6362.js → index.d78b4dd1.js} +1 -1
  170. package/dist/assets/{index.60e074b9.js → index.d9e06c0f.js} +1 -1
  171. package/dist/assets/{index.76fb5db6.js → index.dae019ea.js} +1 -1
  172. package/dist/assets/{index.19099a8f.js → index.dccdb81c.js} +1 -1
  173. package/dist/assets/{index.640cb361.js → index.dd5b5aec.js} +1 -1
  174. package/dist/assets/{index.2598162d.js → index.e24720c2.js} +1 -1
  175. package/dist/assets/{index.ad869bd2.js → index.e7e3b4f1.js} +1 -1
  176. package/dist/assets/{index.0659d17a.js → index.ebace2a1.js} +1 -1
  177. package/dist/assets/{index.90f3c017.js → index.ebc5fd3e.js} +1 -1
  178. package/dist/assets/{index.28d160f6.js → index.ee33b489.js} +1 -1
  179. package/dist/assets/{index.476a4006.js → index.efb2f918.js} +1 -1
  180. package/dist/assets/{index.6a44e176.js → index.f45296e2.js} +1 -1
  181. package/dist/assets/{index.ca7fad51.js → index.fd19f059.js} +1 -1
  182. package/dist/assets/{index.2451efbb.js → index.fee1fadb.js} +1 -1
  183. package/dist/assets/{index.2ef6ea17.js → index.ffa2a1cd.js} +1 -1
  184. package/dist/assets/{input-rich-text-html.0cdbc326.css → input-rich-text-html.49906812.css} +1 -1
  185. package/dist/assets/{input-rich-text-html.912b9ed4.js → input-rich-text-html.9197018e.js} +2 -2
  186. package/dist/assets/{insights.9f2c43c6.js → insights.7988716a.js} +1 -1
  187. package/dist/assets/{installation.76fec85e.js → installation.5215ce07.js} +1 -1
  188. package/dist/assets/{interfaces.a65a79df.js → interfaces.38099de0.js} +3 -3
  189. package/dist/assets/introduction.807bce52.js +1 -0
  190. package/dist/assets/{introduction.eda1c2c4.js → introduction.a173e7ad.js} +7 -7
  191. package/dist/assets/{introduction.e73b1c6c.js → introduction.a6b2c1f0.js} +1 -1
  192. package/dist/assets/{introduction.32669a19.js → introduction.e6dc6284.js} +3 -3
  193. package/dist/assets/it-IT.d77d71da.js +1 -0
  194. package/dist/assets/items.02ad4f11.js +1 -0
  195. package/dist/assets/{items.f5cdbca8.js → items.ba1efbf4.js} +33 -33
  196. package/dist/assets/ja-JP.bfb2f81a.js +1 -0
  197. package/dist/assets/{javascript-hint.a6afcb0f.js → javascript-hint.c017b3f8.js} +1 -1
  198. package/dist/assets/{javascript.81a1b13a.js → javascript.f86e0b2b.js} +1 -1
  199. package/dist/assets/{jinja2.d776c6b3.js → jinja2.e82d5cfa.js} +1 -1
  200. package/dist/assets/{jsx.cfaedddf.js → jsx.41979cc2.js} +1 -1
  201. package/dist/assets/{julia.c8a2dbf1.js → julia.446093ae.js} +1 -1
  202. package/dist/assets/ku-TR.ad6b2677.js +1 -0
  203. package/dist/assets/{layouts.fc5fee9f.js → layouts.dded37a5.js} +1 -1
  204. package/dist/assets/{layouts.e590b93d.js → layouts.f9cfede4.js} +3 -3
  205. package/dist/assets/{livescript.320b6968.js → livescript.abc7a76e.js} +1 -1
  206. package/dist/assets/localization.f384f316.js +1 -0
  207. package/dist/assets/{lua.65570b21.js → lua.f54ca0a1.js} +1 -1
  208. package/dist/assets/{manual.363297f0.js → manual.cc05cff9.js} +4 -4
  209. package/dist/assets/{mark-selection.dfee1b48.js → mark-selection.e16eb3ef.js} +1 -1
  210. package/dist/assets/{match-highlighter.3c006119.js → match-highlighter.924de9a0.js} +1 -1
  211. package/dist/assets/{mathematica.5bc4b95d.js → mathematica.2dba3058.js} +1 -1
  212. package/dist/assets/{mbox.4c3828bc.js → mbox.1356b4dc.js} +1 -1
  213. package/dist/assets/{migrations.5af99cef.js → migrations.fa20b23d.js} +3 -3
  214. package/dist/assets/{mirc.3e3ace01.js → mirc.8c3e6323.js} +1 -1
  215. package/dist/assets/{mllike.ac84ca56.js → mllike.b0c31f4d.js} +1 -1
  216. package/dist/assets/{modelica.b0561309.js → modelica.2dcd76d8.js} +1 -1
  217. package/dist/assets/{modules.2403c678.js → modules.aed8795b.js} +4 -4
  218. package/dist/assets/{mscgen.96b8b96f.js → mscgen.a45be4f7.js} +1 -1
  219. package/dist/assets/{multiplex.f4e017d5.js → multiplex.5e22391c.js} +2 -2
  220. package/dist/assets/{mumps.2c131ef7.js → mumps.aa28a392.js} +1 -1
  221. package/dist/assets/{nginx.b585fef5.js → nginx.de5bffd7.js} +1 -1
  222. package/dist/assets/nl-NL.e613d40a.js +1 -0
  223. package/dist/assets/{notifications.152d86b7.js → notifications.5186ee54.js} +32 -32
  224. package/dist/assets/{nsis.237401b6.js → nsis.7db5c156.js} +1 -1
  225. package/dist/assets/{ntriples.22ef759c.js → ntriples.18820234.js} +1 -1
  226. package/dist/assets/{octave.c8b0b61b.js → octave.74e0d0bd.js} +1 -1
  227. package/dist/assets/{operations.f00b8c11.js → operations.51c06345.js} +1 -1
  228. package/dist/assets/operations.a263ba49.js +30 -0
  229. package/dist/assets/{operations.9b3b2514.js → operations.eaacfa1d.js} +34 -34
  230. package/dist/assets/{overlay.7ab0da68.js → overlay.2760550e.js} +1 -1
  231. package/dist/assets/{overview.c3e64ee1.js → overview.0fe284a4.js} +1 -1
  232. package/dist/assets/{overview.d2dd9f17.js → overview.21a42c2e.js} +1 -1
  233. package/dist/assets/{overview.288d5f54.js → overview.a1598534.js} +1 -1
  234. package/dist/assets/{oz.d4ded91b.js → oz.aff08f07.js} +1 -1
  235. package/dist/assets/{panels.f1f6334b.js → panels.d307c197.js} +3 -3
  236. package/dist/assets/{pascal.ab5e5d67.js → pascal.c766c910.js} +1 -1
  237. package/dist/assets/{pegjs.58ca75d7.js → pegjs.e1938455.js} +1 -1
  238. package/dist/assets/{perl.9cd37319.js → perl.15db43a0.js} +1 -1
  239. package/dist/assets/{permissions.de41ff3d.js → permissions.355cb88d.js} +32 -32
  240. package/dist/assets/{php.da63348a.js → php.246be7cf.js} +1 -1
  241. package/dist/assets/{pig.cf941ffa.js → pig.bcb2fd00.js} +1 -1
  242. package/dist/assets/{pl-PL.6e87b518.js → pl-PL.91a0c1e6.js} +1 -1
  243. package/dist/assets/{plesk.0ef5ab4c.js → plesk.c1379970.js} +6 -6
  244. package/dist/assets/{powershell.adf38a87.js → powershell.692ea617.js} +1 -1
  245. package/dist/assets/{presets-bookmarks.5ef79225.js → presets-bookmarks.668779cf.js} +1 -1
  246. package/dist/assets/{presets.db317f9f.js → presets.0d5dc9c6.js} +32 -32
  247. package/dist/assets/{project-settings.e940a11b.js → project-settings.2a64f071.js} +1 -1
  248. package/dist/assets/{projects.5cc2ad0c.js → projects.f82931e8.js} +1 -1
  249. package/dist/assets/{properties.43935bd7.js → properties.e3248646.js} +1 -1
  250. package/dist/assets/{protobuf.e76a4916.js → protobuf.8550becd.js} +1 -1
  251. package/dist/assets/pt-BR.ce1fdc59.js +1 -0
  252. package/dist/assets/{pug.d55a01ed.js → pug.74a05078.js} +1 -1
  253. package/dist/assets/{puppet.ed2aa69f.js → puppet.49359d8c.js} +1 -1
  254. package/dist/assets/{python.a4264fb2.js → python.b36f6a12.js} +1 -1
  255. package/dist/assets/{q.a9a6cb66.js → q.79121f75.js} +1 -1
  256. package/dist/assets/{query.f187b00c.js → query.8fb6cf04.js} +27 -27
  257. package/dist/assets/{quickstart.8d5c02c2.js → quickstart.c0e4b8bd.js} +2 -2
  258. package/dist/assets/{quickstart.62cbd1cd.js → quickstart.f2432960.js} +1 -1
  259. package/dist/assets/{r.d1d5b008.js → r.6faf9cab.js} +1 -1
  260. package/dist/assets/{relations.a37c187d.js → relations.2dfa7993.js} +24 -24
  261. package/dist/assets/{relationships.5cda18e3.js → relationships.eb7e340c.js} +5 -5
  262. package/dist/assets/{resources.540de098.js → resources.b4808e35.js} +1 -1
  263. package/dist/assets/{revisions.e044726e.js → revisions.cf799486.js} +8 -8
  264. package/dist/assets/{roles.83da9d9c.js → roles.b0107422.js} +32 -32
  265. package/dist/assets/{rpm.701e8769.js → rpm.bbceabdd.js} +1 -1
  266. package/dist/assets/{rst.78cdf25e.js → rst.018d994c.js} +1 -1
  267. package/dist/assets/ru-RU.74ac881b.js +1 -0
  268. package/dist/assets/{ruby.cf585e82.js → ruby.fdcf25d5.js} +1 -1
  269. package/dist/assets/{running-locally.31538f1b.js → running-locally.a3ec7567.js} +8 -8
  270. package/dist/assets/{rust.b1443070.js → rust.a67dfd6b.js} +1 -1
  271. package/dist/assets/{sas.4f0759f7.js → sas.fd12a184.js} +1 -1
  272. package/dist/assets/{sass.634b3ae3.js → sass.65a7e88b.js} +1 -1
  273. package/dist/assets/scheme.e1e3e8ef.js +1 -0
  274. package/dist/assets/{sdk.297840b0.js → sdk.ea5b0946.js} +54 -54
  275. package/dist/assets/security.b7fcc1c2.js +1 -0
  276. package/dist/assets/{server.d8bb0f4c.js → server.22f6f2c1.js} +17 -17
  277. package/dist/assets/{settings.6c879748.js → settings.509b7560.js} +0 -0
  278. package/dist/assets/{settings.65d8a9b5.js → settings.c4a634ae.js} +8 -8
  279. package/dist/assets/shares.4d7659d8.js +1 -0
  280. package/dist/assets/{shell.9d633861.js → shell.9a98567b.js} +1 -1
  281. package/dist/assets/{show-hint.88df65cb.js → show-hint.98eb1b17.js} +1 -1
  282. package/dist/assets/{sieve.a8542660.js → sieve.2d3535ad.js} +1 -1
  283. package/dist/assets/{slim.18070787.js → slim.4f6f559e.js} +1 -1
  284. package/dist/assets/smalltalk.5a5c92f8.js +1 -0
  285. package/dist/assets/{smarty.621ad4fc.js → smarty.e51d2da0.js} +1 -1
  286. package/dist/assets/solr.b7b7b09c.js +1 -0
  287. package/dist/assets/{soy.e1e21a03.js → soy.31202fc9.js} +1 -1
  288. package/dist/assets/{sparql.8edeb8b4.js → sparql.20d7ceed.js} +1 -1
  289. package/dist/assets/{spreadsheet.22b3715c.js → spreadsheet.ec393ccb.js} +1 -1
  290. package/dist/assets/{sql.2149b70c.js → sql.614b6588.js} +1 -1
  291. package/dist/assets/{sso-examples.a785e77c.js → sso-examples.ad647c9c.js} +11 -11
  292. package/dist/assets/{sso.36061e28.js → sso.cf805e38.js} +2 -2
  293. package/dist/assets/{stex.02a09785.js → stex.f20dd750.js} +1 -1
  294. package/dist/assets/{stylus.66d13c06.js → stylus.e8784ce8.js} +1 -1
  295. package/dist/assets/{support.a149b5a4.js → support.6594facf.js} +1 -1
  296. package/dist/assets/{swift.942cdada.js → swift.f97e9bb9.js} +1 -1
  297. package/dist/assets/{tcl.85852863.js → tcl.148d5060.js} +1 -1
  298. package/dist/assets/{teams.86e324d5.js → teams.f575332d.js} +1 -1
  299. package/dist/assets/{textile.6e394729.js → textile.e048968b.js} +1 -1
  300. package/dist/assets/{themes.3d8b2b78.js → themes.3d802c3b.js} +1 -1
  301. package/dist/assets/{tiddlywiki.7dd58c1c.js → tiddlywiki.4958dcc7.js} +1 -1
  302. package/dist/assets/{tiki.e51a3e37.js → tiki.380c7e34.js} +1 -1
  303. package/dist/assets/{toml.c0aa795a.js → toml.ae74cfd0.js} +1 -1
  304. package/dist/assets/{tornado.fc72bd58.js → tornado.dd336ee6.js} +1 -1
  305. package/dist/assets/{translation-strings.2d32b80f.js → translation-strings.fe88793b.js} +1 -1
  306. package/dist/assets/{translations.9a0e8cc4.js → translations.4be9ec77.js} +1 -1
  307. package/dist/assets/{triggers.49fa8cca.js → triggers.c34177a3.js} +1 -1
  308. package/dist/assets/{troff.0ed99260.js → troff.cf9dad81.js} +1 -1
  309. package/dist/assets/{ttcn-cfg.afedb04b.js → ttcn-cfg.c7077b78.js} +1 -1
  310. package/dist/assets/{ttcn.c0c80a5f.js → ttcn.0aa9c107.js} +1 -1
  311. package/dist/assets/{turtle.228b04a3.js → turtle.894859db.js} +1 -1
  312. package/dist/assets/{twig.f7e0b482.js → twig.35c17063.js} +1 -1
  313. package/dist/assets/{ubuntu.bd27c73d.js → ubuntu.cc908491.js} +0 -0
  314. package/dist/assets/{upgrades-migrations.e91a553b.js → upgrades-migrations.a57ef987.js} +1 -1
  315. package/dist/assets/{use-sync.138c50b0.js → use-sync.1dee2657.js} +14 -14
  316. package/dist/assets/{user-directory.8d94737c.js → user-directory.7b875602.js} +1 -1
  317. package/dist/assets/{users-roles-permissions.d63af527.js → users-roles-permissions.00ffdc25.js} +1 -1
  318. package/dist/assets/{users.9e656e05.js → users.0638ab5f.js} +58 -58
  319. package/dist/assets/{utilities.4a346b3b.js → utilities.b2f15bfd.js} +17 -17
  320. package/dist/assets/{vb.5451fc80.js → vb.7ed1702a.js} +1 -1
  321. package/dist/assets/{vbscript.59585329.js → vbscript.789ccb6b.js} +1 -1
  322. package/dist/assets/{velocity.50d6a1f3.js → velocity.d0772b29.js} +1 -1
  323. package/dist/assets/{verilog.aac2d6a2.js → verilog.74dc61b6.js} +1 -1
  324. package/dist/assets/{vhdl.699515be.js → vhdl.2600943e.js} +1 -1
  325. package/dist/assets/{vue.25b60243.js → vue.ea70bc55.js} +1 -1
  326. package/dist/assets/{wast.d2c6fea3.js → wast.cc084e5f.js} +1 -1
  327. package/dist/assets/{webhooks.256ac76b.js → webhooks.1f89f80a.js} +31 -31
  328. package/dist/assets/{webhooks.235f76fb.js → webhooks.3d6334e9.js} +1 -1
  329. package/dist/assets/{webidl.4134320a.js → webidl.5f0116bf.js} +1 -1
  330. package/dist/assets/{xquery.08fc8439.js → xquery.49d15210.js} +1 -1
  331. package/dist/assets/{yacas.c3220ac1.js → yacas.1c1146d4.js} +1 -1
  332. package/dist/assets/{yaml-frontmatter.769d44a6.js → yaml-frontmatter.47804237.js} +1 -1
  333. package/dist/assets/{yaml.f2dc0339.js → yaml.5a944a62.js} +1 -1
  334. package/dist/assets/{z80.22642123.js → z80.593af108.js} +1 -1
  335. package/dist/assets/zh-TW.2ac2bb07.js +1 -0
  336. package/dist/index.html +3 -3
  337. package/package.json +11 -9
  338. package/dist/assets/@directus_extensions-sdk.118c3166.entry.js +0 -1
  339. package/dist/assets/bg-BG.9288ea83.js +0 -1
  340. package/dist/assets/collections.e06a8b1f.js +0 -2
  341. package/dist/assets/commonlisp.f6b276ff.js +0 -1
  342. package/dist/assets/content.07b42fc5.js +0 -1
  343. package/dist/assets/data-sharing.8b80b0f4.js +0 -1
  344. package/dist/assets/de-DE.5535b278.js +0 -1
  345. package/dist/assets/django.bab533fa.js +0 -1
  346. package/dist/assets/en-GB.c55341c7.js +0 -1
  347. package/dist/assets/file-library.92f387e2.js +0 -1
  348. package/dist/assets/fr-CA.6b485ca2.js +0 -1
  349. package/dist/assets/fr-FR.77a5277c.js +0 -1
  350. package/dist/assets/go.ed3ba974.js +0 -1
  351. package/dist/assets/he-IL.62301c5a.js +0 -1
  352. package/dist/assets/hr-HR.467388ee.js +0 -1
  353. package/dist/assets/http.7edf5d36.js +0 -1
  354. package/dist/assets/hu-HU.47ab36e8.js +0 -1
  355. package/dist/assets/index.3d147166.css +0 -1
  356. package/dist/assets/index.d4c6a59b.js +0 -26
  357. package/dist/assets/index.dbec7bd8.css +0 -1
  358. package/dist/assets/introduction.e626ca8d.js +0 -1
  359. package/dist/assets/it-IT.c08c5546.js +0 -1
  360. package/dist/assets/items.ee26fa45.js +0 -1
  361. package/dist/assets/ja-JP.84597497.js +0 -1
  362. package/dist/assets/ku-TR.3a07a57e.js +0 -1
  363. package/dist/assets/localization.998790e9.js +0 -1
  364. package/dist/assets/nl-NL.2f00af44.js +0 -1
  365. package/dist/assets/pt-BR.02851ce6.js +0 -1
  366. package/dist/assets/ru-RU.1807a64c.js +0 -1
  367. package/dist/assets/scheme.dcfea99d.js +0 -1
  368. package/dist/assets/security.c18b2f34.js +0 -1
  369. package/dist/assets/smalltalk.efc2a0dc.js +0 -1
  370. package/dist/assets/solr.a732ca41.js +0 -1
  371. package/dist/assets/zh-TW.cac20c88.js +0 -1
@@ -1,4 +1,4 @@
1
- import{f as NO,d as $L,I as NL,r as Os,j as KU,K as XU,b0 as YU,b1 as JU,D as DL,c as xT,a as Ys,n as ZU,o as id,q as Yb,e as oo,v as RL,t as Js,u as BO,w as _u,B as MO,g as go,p as _L,b as $B,F as HF}from"./runtime-core.esm-bundler.e3d5f5b7.js";import{s as zB,v as $O,w as NB,x as QU,_ as eW,a as tW,y as nW}from"./index.ed3b88b9.entry.js";import{useI18n as rW}from"./vue-i18n.3cc3a25f.entry.js";import{c as TT}from"./use-sync.138c50b0.js";import"./pinia.b8e2dbe3.entry.js";import"./vue.runtime.esm-bundler.ee2a778f.js";import"./vue-router.1ad5ff1f.entry.js";var aW=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],oW=function(fe){return aW.map(function(rt){return rt.toLowerCase()}).indexOf(fe.toLowerCase())!==-1},iW=function(fe,rt,wn){Object.keys(rt).filter(oW).forEach(function(Jt){var vt=rt[Jt];typeof vt=="function"&&(Jt==="onInit"?vt(fe,wn):wn.on(Jt.substring(2),function(Yt){return vt(Yt,wn)}))})},uW=function(fe,rt,wn,Jt){var vt=fe.modelEvents?fe.modelEvents:null,Yt=Array.isArray(vt)?vt.join(" "):vt;NO(Jt,function(vn,Nn){wn&&typeof vn=="string"&&vn!==Nn&&vn!==wn.getContent({format:fe.outputFormat})&&wn.setContent(vn)}),wn.on(Yt||"change input undo redo",function(){rt.emit("update:modelValue",wn.getContent({format:fe.outputFormat}))})},sW=function(fe,rt,wn,Jt,vt,Yt){Jt.setContent(Yt()),wn.attrs["onUpdate:modelValue"]&&uW(rt,wn,Jt,vt),iW(fe,wn.attrs,Jt)},BL=0,IL=function(fe){var rt=Date.now(),wn=Math.floor(Math.random()*1e9);return BL++,fe+"_"+wn+BL+String(rt)},cW=function(fe){return fe!==null&&fe.tagName.toLowerCase()==="textarea"},ML=function(fe){return typeof fe=="undefined"||fe===""?[]:Array.isArray(fe)?fe:fe.split(" ")},lW=function(fe,rt){return ML(fe).concat(ML(rt))},fW=function(fe){return fe==null},PL=function(){return{listeners:[],scriptId:IL("tiny-script"),scriptLoaded:!1}},vW=function(){var fe=PL(),rt=function(vt,Yt,vn,Nn){var _n=Yt.createElement("script");_n.referrerPolicy="origin",_n.type="application/javascript",_n.id=vt,_n.src=vn;var Ar=function(){_n.removeEventListener("load",Ar),Nn()};_n.addEventListener("load",Ar),Yt.head&&Yt.head.appendChild(_n)},wn=function(vt,Yt,vn){fe.scriptLoaded?vn():(fe.listeners.push(vn),vt.getElementById(fe.scriptId)||rt(fe.scriptId,vt,Yt,function(){fe.listeners.forEach(function(Nn){return Nn()}),fe.scriptLoaded=!0}))},Jt=function(){fe=PL()};return{load:wn,reinitialize:Jt}},dW=vW(),mW=function(){return typeof window!="undefined"?window:global},PO=function(){var fe=mW();return fe&&fe.tinymce?fe.tinymce:null},gW={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(fe){return fe==="html"||fe==="text"}}},IB=globalThis&&globalThis.__assign||function(){return IB=Object.assign||function(fe){for(var rt,wn=1,Jt=arguments.length;wn<Jt;wn++){rt=arguments[wn];for(var vt in rt)Object.prototype.hasOwnProperty.call(rt,vt)&&(fe[vt]=rt[vt])}return fe},IB.apply(this,arguments)},hW=function(fe,rt,wn,Jt){return fe(Jt||"div",{id:rt,ref:wn})},pW=function(fe,rt,wn){return fe("textarea",{id:rt,visibility:"hidden",ref:wn})},bW=$L({props:gW,setup:function(fe,rt){var wn=NL(fe),Jt=wn.disabled,vt=wn.modelValue,Yt=Os(null),vn=null,Nn=fe.id||IL("tiny-vue"),_n=fe.init&&fe.init.inline||fe.inline,Ar=!!rt.attrs["onUpdate:modelValue"],On=!0,Le=fe.initialValue?fe.initialValue:"",zt="",hn=function(de){return Ar?function(){return vt!=null&&vt.value?vt.value:""}:function(){return de?Le:zt}},We=function(){var de=hn(On),xt=IB(IB({},fe.init),{readonly:fe.disabled,selector:"#"+Nn,plugins:lW(fe.init&&fe.init.plugins,fe.plugins),toolbar:fe.toolbar||fe.init&&fe.init.toolbar,inline:_n,setup:function(Fe){vn=Fe,Fe.on("init",function(sn){return sW(sn,fe,rt,Fe,vt,de)}),fe.init&&typeof fe.init.setup=="function"&&fe.init.setup(Fe)}});cW(Yt.value)&&(Yt.value.style.visibility=""),PO().init(xt),On=!1};return NO(Jt,function(de){vn!==null&&vn.setMode(de?"readonly":"design")}),KU(function(){if(PO()!==null)We();else if(Yt.value&&Yt.value.ownerDocument){var de=fe.cloudChannel?fe.cloudChannel:"5",xt=fe.apiKey?fe.apiKey:"no-api-key",Fe=fW(fe.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/"+xt+"/tinymce/"+de+"/tinymce.min.js":fe.tinymceScriptSrc;dW.load(Yt.value.ownerDocument,Fe,We)}}),XU(function(){PO()!==null&&PO().remove(vn)}),_n||(YU(function(){On||We()}),JU(function(){var de;Ar||(zt=vn.getContent()),(de=PO())===null||de===void 0||de.remove(vn)})),function(){return _n?hW(DL,Nn,Yt,fe.tagName):pW(DL,Nn,Yt)}}}),yW="assets/FiraMono-Medium.33e88fa9.woff2",wW="assets/FiraMono-Medium.f2ff9941.woff",CW="assets/merriweather-regular.2661709b.woff2",SW="assets/merriweather-regular.ff8db8bc.woff";function Bu(fe){return getComputedStyle(document.body).getPropertyValue(fe)}function xW(fe){return`
1
+ import{f as NO,d as $L,I as NL,r as Os,j as KU,K as XU,b0 as YU,b1 as JU,D as DL,c as xT,a as Ys,n as ZU,o as id,q as Yb,e as oo,v as RL,t as Js,u as BO,w as _u,B as MO,g as go,p as _L,b as $B,F as HF}from"./runtime-core.esm-bundler.e3d5f5b7.js";import{r as zB,s as $O,v as NB,w as QU,_ as eW,a as tW,x as nW}from"./index.0ce698aa.entry.js";import{useI18n as rW}from"./vue-i18n.3cc3a25f.entry.js";import{c as TT}from"./use-sync.1dee2657.js";import"./pinia.b8e2dbe3.entry.js";import"./vue.runtime.esm-bundler.ee2a778f.js";import"./vue-router.1ad5ff1f.entry.js";var aW=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],oW=function(fe){return aW.map(function(rt){return rt.toLowerCase()}).indexOf(fe.toLowerCase())!==-1},iW=function(fe,rt,wn){Object.keys(rt).filter(oW).forEach(function(Jt){var vt=rt[Jt];typeof vt=="function"&&(Jt==="onInit"?vt(fe,wn):wn.on(Jt.substring(2),function(Yt){return vt(Yt,wn)}))})},uW=function(fe,rt,wn,Jt){var vt=fe.modelEvents?fe.modelEvents:null,Yt=Array.isArray(vt)?vt.join(" "):vt;NO(Jt,function(vn,Nn){wn&&typeof vn=="string"&&vn!==Nn&&vn!==wn.getContent({format:fe.outputFormat})&&wn.setContent(vn)}),wn.on(Yt||"change input undo redo",function(){rt.emit("update:modelValue",wn.getContent({format:fe.outputFormat}))})},sW=function(fe,rt,wn,Jt,vt,Yt){Jt.setContent(Yt()),wn.attrs["onUpdate:modelValue"]&&uW(rt,wn,Jt,vt),iW(fe,wn.attrs,Jt)},BL=0,IL=function(fe){var rt=Date.now(),wn=Math.floor(Math.random()*1e9);return BL++,fe+"_"+wn+BL+String(rt)},cW=function(fe){return fe!==null&&fe.tagName.toLowerCase()==="textarea"},ML=function(fe){return typeof fe=="undefined"||fe===""?[]:Array.isArray(fe)?fe:fe.split(" ")},lW=function(fe,rt){return ML(fe).concat(ML(rt))},fW=function(fe){return fe==null},PL=function(){return{listeners:[],scriptId:IL("tiny-script"),scriptLoaded:!1}},vW=function(){var fe=PL(),rt=function(vt,Yt,vn,Nn){var _n=Yt.createElement("script");_n.referrerPolicy="origin",_n.type="application/javascript",_n.id=vt,_n.src=vn;var Ar=function(){_n.removeEventListener("load",Ar),Nn()};_n.addEventListener("load",Ar),Yt.head&&Yt.head.appendChild(_n)},wn=function(vt,Yt,vn){fe.scriptLoaded?vn():(fe.listeners.push(vn),vt.getElementById(fe.scriptId)||rt(fe.scriptId,vt,Yt,function(){fe.listeners.forEach(function(Nn){return Nn()}),fe.scriptLoaded=!0}))},Jt=function(){fe=PL()};return{load:wn,reinitialize:Jt}},dW=vW(),mW=function(){return typeof window!="undefined"?window:global},PO=function(){var fe=mW();return fe&&fe.tinymce?fe.tinymce:null},gW={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(fe){return fe==="html"||fe==="text"}}},IB=globalThis&&globalThis.__assign||function(){return IB=Object.assign||function(fe){for(var rt,wn=1,Jt=arguments.length;wn<Jt;wn++){rt=arguments[wn];for(var vt in rt)Object.prototype.hasOwnProperty.call(rt,vt)&&(fe[vt]=rt[vt])}return fe},IB.apply(this,arguments)},hW=function(fe,rt,wn,Jt){return fe(Jt||"div",{id:rt,ref:wn})},pW=function(fe,rt,wn){return fe("textarea",{id:rt,visibility:"hidden",ref:wn})},bW=$L({props:gW,setup:function(fe,rt){var wn=NL(fe),Jt=wn.disabled,vt=wn.modelValue,Yt=Os(null),vn=null,Nn=fe.id||IL("tiny-vue"),_n=fe.init&&fe.init.inline||fe.inline,Ar=!!rt.attrs["onUpdate:modelValue"],On=!0,Le=fe.initialValue?fe.initialValue:"",zt="",hn=function(de){return Ar?function(){return vt!=null&&vt.value?vt.value:""}:function(){return de?Le:zt}},We=function(){var de=hn(On),xt=IB(IB({},fe.init),{readonly:fe.disabled,selector:"#"+Nn,plugins:lW(fe.init&&fe.init.plugins,fe.plugins),toolbar:fe.toolbar||fe.init&&fe.init.toolbar,inline:_n,setup:function(Fe){vn=Fe,Fe.on("init",function(sn){return sW(sn,fe,rt,Fe,vt,de)}),fe.init&&typeof fe.init.setup=="function"&&fe.init.setup(Fe)}});cW(Yt.value)&&(Yt.value.style.visibility=""),PO().init(xt),On=!1};return NO(Jt,function(de){vn!==null&&vn.setMode(de?"readonly":"design")}),KU(function(){if(PO()!==null)We();else if(Yt.value&&Yt.value.ownerDocument){var de=fe.cloudChannel?fe.cloudChannel:"5",xt=fe.apiKey?fe.apiKey:"no-api-key",Fe=fW(fe.tinymceScriptSrc)?"https://cdn.tiny.cloud/1/"+xt+"/tinymce/"+de+"/tinymce.min.js":fe.tinymceScriptSrc;dW.load(Yt.value.ownerDocument,Fe,We)}}),XU(function(){PO()!==null&&PO().remove(vn)}),_n||(YU(function(){On||We()}),JU(function(){var de;Ar||(zt=vn.getContent()),(de=PO())===null||de===void 0||de.remove(vn)})),function(){return _n?hW(DL,Nn,Yt,fe.tagName):pW(DL,Nn,Yt)}}}),yW="assets/FiraMono-Medium.33e88fa9.woff2",wW="assets/FiraMono-Medium.f2ff9941.woff",CW="assets/merriweather-regular.2661709b.woff2",SW="assets/merriweather-regular.ff8db8bc.woff";function Bu(fe){return getComputedStyle(document.body).getPropertyValue(fe)}function xW(fe){return`
2
2
  @font-face {
3
3
  font-family: 'Fira Mono';
4
4
  font-style: normal;
@@ -236,4 +236,4 @@ Required: `+me.join(", "));return Ze[gn].apply(null,V)};return{fold:function(){f
236
236
  `),Q=Vi(w,L),ke=Fi(Q,bo(w),ta(w));uo(w,ke,!1,!0)},ka=function(w){var D={},L="data:text/mce-internal,";if(w){if(w.getData){var Q=w.getData("Text");Q&&Q.length>0&&Q.indexOf(L)===-1&&(D["text/plain"]=Q)}if(w.types)for(var ke=0;ke<w.types.length;ke++){var et=w.types[ke];try{D[et]=w.getData(et)}catch{D[et]=""}}}return D},Ra=function(w,D){return ka(D.clipboardData||w.getDoc().dataTransfer)},st=function(w,D){return D in w&&w[D].length>0},Ka=function(w){return st(w,"text/html")||st(w,"text/plain")},Ui=function(w){var D=/data:([^;]+);base64,([a-z0-9\+\/=]+)/i.exec(w);return D?{type:D[1],data:decodeURIComponent(D[2])}:{type:null,data:null}},ju=function(w,D){var L=eo(w);return L?L(D):!0},qu=function(w,D){var L=D.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);return Ar(L)?w.dom.encode(L[1]):null},wr=Mo("mceclip"),fs=function(w,D){var L=Ui(D.uri),Q=L.data,ke=L.type,et=wr(),dn=D.blob,Bn=new Image;if(Bn.src=D.uri,ju(w,Bn)){var Dt=w.editorUpload.blobCache,ln=void 0,nr=Dt.getByData(Q,ke);if(nr)ln=nr;else{var er=yi(w)&&Ar(dn.name),qn=er?qu(w,dn.name):et,Pa=er?dn.name:void 0;ln=Dt.create(et,dn,Q,qn,Pa),Dt.add(ln)}Yo(w,'<img src="'+ln.blobUri()+'">',!1)}else Yo(w,'<img src="'+D.uri+'">',!1)},Wi=function(w){return w.type==="paste"},Va=function(w){return Ar(w.getAsFile)},Gu=function(w){return ho.all(pt(w,function(D){return new ho(function(L){var Q=Va(D)?D.getAsFile():D,ke=new window.FileReader;ke.onload=function(){L({blob:Q,uri:ke.result})},ke.readAsDataURL(Q)})}))},Jo=function(w){var D=Ha(w);return function(L){return _(L.type,"image/")&&Gt(D,function(Q){return Hi(Q)===L.type})}},li=function(w,D){var L=D.items?Y(An(D.items),function(ke){return ke.kind==="file"?[ke.getAsFile()]:[]}):[],Q=D.files?An(D.files):[];return He(L.length>0?L:Q,Jo(w))},fa=function(w,D,L){var Q=Wi(D)?D.clipboardData:D.dataTransfer;if(Xo(w)&&Q){var ke=li(w,Q);if(ke.length>0)return D.preventDefault(),Gu(ke).then(function(et){L&&w.selection.setRng(L),Bt(et,function(dn){fs(w,dn)})}),!0}return!1},Ku=function(w){var D=w.clipboardData;return navigator.userAgent.indexOf("Android")!==-1&&D&&D.items&&D.items.length===0},q=function(w){return or.metaKeyPressed(w)&&w.keyCode===86||w.shiftKey&&w.keyCode===45},me=function(w,D,L){var Q=Ca(),ke=Ca(),et;w.on("keyup",ke.clear),w.on("keydown",function(Dt){var ln=function(nr){q(nr)&&!nr.isDefaultPrevented()&&D.remove()};if(q(Dt)&&!Dt.isDefaultPrevented()){if(et=Dt.shiftKey&&Dt.keyCode===86,et&&Vt.webkit&&navigator.userAgent.indexOf("Version/")!==-1)return;if(Dt.stopImmediatePropagation(),Q.set(Dt),ke.set(!0),Vt.ie&&et){Dt.preventDefault(),dt(w,!0);return}D.remove(),D.create(),w.once("keyup",ln),w.once("paste",function(){w.off("keyup",ln)})}});var dn=function(Dt,ln,nr,er,qn){var Pa;st(ln,"text/html")?Pa=ln["text/html"]:(Pa=D.getHtml(),qn=qn||cn(Pa),D.isDefaultContent(Pa)&&(er=!0)),Pa=ui(Pa),D.remove();var Hn=qn===!1&&bn(Pa),ga=ie(Pa);if((!Pa.length||Hn&&!ga)&&(er=!0),(er||ga)&&(st(ln,"text/plain")&&Hn?Pa=ln["text/plain"]:Pa=Li(Pa)),D.isDefaultContent(Pa)){nr||Dt.windowManager.alert("Please use Ctrl+V/Cmd+V keyboard shortcuts to paste contents.");return}er?au(Dt,Pa):Yo(Dt,Pa,qn)},Bn=function(){return D.getLastRng()||w.selection.getRng()};w.on("paste",function(Dt){var ln=Q.isSet()||ke.isSet();ln&&Q.clear();var nr=Ra(w,Dt),er=L.get()==="text"||et,qn=st(nr,Kt());if(et=!1,Dt.isDefaultPrevented()||Ku(Dt)){D.remove();return}if(!Ka(nr)&&fa(w,Dt,Bn())){D.remove();return}ln||Dt.preventDefault(),Vt.ie&&(!ln||Dt.ieFake)&&!st(nr,"text/html")&&(D.create(),w.dom.bind(D.getEl(),"paste",function(Pa){Pa.stopPropagation()}),w.getDoc().execCommand("Paste",!1,null),nr["text/html"]=D.getHtml()),st(nr,"text/html")?(Dt.preventDefault(),qn||(qn=cn(nr["text/html"])),dn(w,nr,ln,er,qn)):io.setEditorTimeout(w,function(){dn(w,nr,ln,er,qn)},0)})},De=function(w,D,L){me(w,D,L);var Q;w.parser.addNodeFilter("img",function(ke,et,dn){var Bn=function(qn){return qn.data&&qn.data.paste===!0},Dt=function(qn){!qn.attr("data-mce-object")&&Q!==Vt.transparentSrc&&qn.remove()},ln=function(qn){return qn.indexOf("webkit-fake-url")===0},nr=function(qn){return qn.indexOf("data:")===0};if(!Xo(w)&&Bn(dn))for(var er=ke.length;er--;)Q=ke[er].attr("src"),!!Q&&(ln(Q)||!oi(w)&&nr(Q))&&Dt(ke[er])})},Xe=function(w){return Vt.ie&&w.inline?document.body:w.getBody()},Pt=function(w){return Xe(w)!==w.getBody()},en=function(w,D,L){Pt(w)&&w.dom.bind(D,"paste keyup",function(Q){Ze(w,L)||w.fire("paste")})},gn=function(w,D,L){var Q=w.dom,ke=w.getBody();D.set(w.selection.getRng());var et=w.dom.add(Xe(w),"div",{id:"mcepastebin",class:"mce-pastebin",contentEditable:!0,"data-mce-bogus":"all",style:"position: fixed; top: 50%; width: 10px; height: 10px; overflow: hidden; opacity: 0"},L);(Vt.ie||Vt.gecko)&&Q.setStyle(et,"left",Q.getStyle(ke,"direction",!0)==="rtl"?65535:-65535),Q.bind(et,"beforedeactivate focusin focusout",function(dn){dn.stopPropagation()}),en(w,et,L),et.focus(),w.selection.select(et,!0)},lr=function(w,D){if(V(w)){for(var L=void 0,Q=D.get();L=w.dom.get("mcepastebin");)w.dom.remove(L),w.dom.unbind(L);Q&&w.selection.setRng(Q)}D.set(null)},V=function(w){return w.dom.get("mcepastebin")},le=function(w){var D=function(Bn,Dt){Bn.appendChild(Dt),w.dom.remove(Dt,!0)},L=Ft.grep(Xe(w).childNodes,function(Bn){return Bn.id==="mcepastebin"}),Q=L.shift();Ft.each(L,function(Bn){D(Q,Bn)});for(var ke=w.dom.select("div[id=mcepastebin]",Q),et=ke.length-1;et>=0;et--){var dn=w.dom.create("div");Q.insertBefore(dn,ke[et]),D(dn,ke[et])}return Q?Q.innerHTML:""},Te=function(w,D){return D===w},Me=function(w){return w&&w.id==="mcepastebin"},Ze=function(w,D){var L=V(w);return Me(L)&&Te(D,L.innerHTML)},jt=function(w){var D=fe(null),L="%MCEPASTEBIN%";return{create:function(){return gn(w,D,L)},remove:function(){return lr(w,D)},getEl:function(){return V(w)},getHtml:function(){return le(w)},getLastRng:D.get,isDefault:function(){return Ze(w,L)},isDefaultContent:function(Q){return Te(L,Q)}}},yn=function(w,D){var L=jt(w);return w.on("PreInit",function(){return De(w,L,D)}),{pasteFormat:D,pasteHtml:function(Q,ke){return Yo(w,Q,ke)},pasteText:function(Q){return au(w,Q)},pasteImageData:function(Q,ke){return fa(w,Q,ke)},getDataTransferItems:ka,hasHtmlOrText:Ka,hasContentType:st}},Pr=function(w,D){D.pasteFormat.get()==="text"?(D.pasteFormat.set("html"),Ja(w,!1)):(D.pasteFormat.set("text"),Ja(w,!0)),w.focus()},tr=function(w,D){w.addCommand("mceTogglePlainTextPaste",function(){Pr(w,D)}),w.addCommand("mceInsertClipboardContent",function(L,Q){Q.content&&D.pasteHtml(Q.content,Q.internal),Q.text&&D.pasteText(Q.text)})},na=function(w){return Vt.iOS===!1&&typeof(w==null?void 0:w.setData)=="function"},Sa=function(w,D,L){if(na(w))try{return w.clearData(),w.setData("text/html",D),w.setData("text/plain",L),w.setData(Kt(),D),!0}catch{return!1}else return!1},bu=function(w,D,L,Q){Sa(w.clipboardData,D.html,D.text)?(w.preventDefault(),Q()):L(D.html,Q)},Co=function(w){return function(D,L){var Q=Pe(D),ke=w.dom.create("div",{contenteditable:"false","data-mce-bogus":"all"}),et=w.dom.create("div",{contenteditable:"true"},Q);w.dom.setStyles(ke,{position:"fixed",top:"0",left:"-3000px",width:"1000px",overflow:"hidden"}),ke.appendChild(et),w.dom.add(w.getBody(),ke);var dn=w.selection.getRng();et.focus();var Bn=w.dom.createRng();Bn.selectNodeContents(et),w.selection.setRng(Bn),io.setTimeout(function(){w.selection.setRng(dn),ke.parentNode.removeChild(ke),L()},0)}},Cn=function(w){return{html:w.selection.getContent({contextual:!0}),text:w.selection.getContent({format:"text"})}},Ct=function(w){return!!w.dom.getParent(w.selection.getStart(),"td[data-mce-selected],th[data-mce-selected]",w.getBody())},oa=function(w){return!w.selection.isCollapsed()||Ct(w)},So=function(w){return function(D){oa(w)&&bu(D,Cn(w),Co(w),function(){if(Vt.browser.isChrome()||Vt.browser.isFirefox()){var L=w.selection.getRng();io.setEditorTimeout(w,function(){w.selection.setRng(L),w.execCommand("Delete")},0)}else w.execCommand("Delete")})}},Cr=function(w){return function(D){oa(w)&&bu(D,Cn(w),Co(w),Le)}},As=function(w){w.on("cut",So(w)),w.on("copy",Cr(w))},Xu=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),vc=function(w,D){return Xu.getCaretRangeFromPoint(D.clientX,D.clientY,w.getDoc())},Vr=function(w){var D=w["text/plain"];return D?D.indexOf("file://")===0:!1},wi=function(w,D){w.focus(),w.selection.setRng(D)},dc=function(w,D,L){po(w)&&w.on("dragend dragover draggesture dragdrop drop drag",function(Q){Q.preventDefault(),Q.stopPropagation()}),Sr(w)||w.on("drop",function(Q){var ke=Q.dataTransfer;ke&&ke.files&&ke.files.length>0&&Q.preventDefault()}),w.on("drop",function(Q){var ke=vc(w,Q);if(!(Q.isDefaultPrevented()||L.get())){var et=D.getDataTransferItems(Q.dataTransfer),dn=D.hasContentType(et,Kt());if(!((!D.hasHtmlOrText(et)||Vr(et))&&D.pasteImageData(Q,ke))&&ke&&Mt(w)){var Bn=et["mce-internal"]||et["text/html"]||et["text/plain"];Bn&&(Q.preventDefault(),io.setEditorTimeout(w,function(){w.undoManager.transact(function(){et["mce-internal"]&&w.execCommand("Delete"),wi(w,ke),Bn=ui(Bn),et["text/html"]?D.pasteHtml(Bn,dn):D.pasteText(Bn)})}))}}}),w.on("dragstart",function(Q){L.set(!0)}),w.on("dragover dragend",function(Q){Sr(w)&&L.get()===!1&&(Q.preventDefault(),wi(w,vc(w,Q))),Q.type==="dragend"&&L.set(!1)})},yu=function(w){var D=w.plugins.paste,L=Pn(w);L&&w.on("PastePreProcess",function(ke){L.call(D,D,ke)});var Q=$n(w);Q&&w.on("PastePostProcess",function(ke){Q.call(D,D,ke)})},to=function(w,D){w.on("PastePreProcess",function(L){L.content=D(w,L.content,L.internal,L.wordContent)})},Ds=function(w,D){w.on("PastePostProcess",function(L){D(w,L.node)})},je=function(w,D){if(!Mr(D))return D;var L=[];Ft.each(w.schema.getBlockElements(),function(ke,et){L.push(et)});var Q=new RegExp("(?:<br>&nbsp;[\\s\\r\\n]+|<br>)*(<\\/?("+L.join("|")+")[^>]*>)(?:<br>&nbsp;[\\s\\r\\n]+|<br>)*","g");return D=Lo(D,[[Q,"$1"]]),D=Lo(D,[[/<br><br>/g,"<BR><BR>"],[/<br>/g," "],[/<BR><BR>/g,"<br>"]]),D},Zs=function(w,D,L,Q){if(Q||L)return D;var ke=bt(w),et;if(ir(w)===!1||ke==="all")return D;if(ke&&(et=ke.split(/[, ]/)),et){var dn=w.dom,Bn=w.selection.getNode();D=D.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,function(Dt,ln,nr,er){var qn=dn.parseStyle(dn.decode(nr)),Pa={};if(et==="none")return ln+er;for(var Hn=0;Hn<et.length;Hn++){var ga=qn[et[Hn]],ia=dn.getStyle(Bn,et[Hn],!0);/color/.test(et[Hn])&&(ga=dn.toHex(ga),ia=dn.toHex(ia)),ia!==ga&&(Pa[et[Hn]]=ga)}var Ci=dn.serializeStyle(Pa,"span");return Ci?ln+' style="'+Ci+'"'+er:ln+er})}else D=D.replace(/(<[^>]+) style="([^"]*)"([^>]*>)/gi,"$1$3");return D=D.replace(/(<[^>]+) data-mce-style="([^"]+)"([^>]*>)/gi,function(Dt,ln,nr,er){return ln+' style="'+nr+'"'+er}),D},no=function(w,D){w.$("a",D).find("font,u").each(function(L,Q){w.dom.remove(Q,!0)})},ll=function(w){Vt.webkit&&to(w,Zs),Vt.ie&&(to(w,je),Ds(w,no))},vs=function(w,D){return function(L){L.setActive(D.pasteFormat.get()==="text");var Q=function(ke){return L.setActive(ke.state)};return w.on("PastePlainTextToggle",Q),function(){return w.off("PastePlainTextToggle",Q)}}},M=function(w,D){var L=function(){return w.execCommand("mceTogglePlainTextPaste")};w.ui.registry.addToggleButton("pastetext",{active:!1,icon:"paste-text",tooltip:"Paste as text",onAction:L,onSetup:vs(w,D)}),w.ui.registry.addToggleMenuItem("pastetext",{text:"Paste as text",icon:"paste-text",onAction:L,onSetup:vs(w,D)})};function T(){rt.add("paste",function(w){if(wn(w)===!1){var D=fe(!1),L=fe(Kr(w)?"text":"html"),Q=yn(w,L);return ll(w),M(w,Q),tr(w,Q),yu(w),As(w),dc(w,Q,D),Jt(Q)}})}T()})();(function(){var fe=tinymce.util.Tools.resolve("tinymce.PluginManager"),rt=tinymce.util.Tools.resolve("tinymce.Env"),wn=tinymce.util.Tools.resolve("tinymce.util.Tools"),Jt=function(We){return We.getParam("content_style","","string")},vt=function(We){return We.getParam("content_css_cors",!1,"boolean")},Yt=function(We){var de=We.getParam("body_class","","hash");return de[We.id]||""},vn=function(We){var de=We.getParam("body_class","","string");return de.indexOf("=")===-1?de:Yt(We)},Nn=function(We){var de=We.getParam("body_id","","hash");return de[We.id]||de},_n=function(We){var de=We.getParam("body_id","tinymce","string");return de.indexOf("=")===-1?de:Nn(We)},Ar=function(We){var de="",xt=We.dom.encode,Fe=Jt(We);de+='<base href="'+xt(We.documentBaseURI.getURI())+'">';var sn=vt(We)?' crossorigin="anonymous"':"";wn.each(We.contentCSS,function(He){de+='<link type="text/css" rel="stylesheet" href="'+xt(We.documentBaseURI.toAbsolute(He))+'"'+sn+">"}),Fe&&(de+='<style type="text/css">'+Fe+"</style>");var ee=_n(We),ze=vn(We),Ee=rt.mac?"e.metaKey":"e.ctrlKey && !e.altKey",Nt='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+Ee+")) {e.preventDefault();}}}, false);<\/script> ",Gt=We.getBody().dir,pt=Gt?' dir="'+xt(Gt)+'"':"",Bt="<!DOCTYPE html><html><head>"+de+'</head><body id="'+xt(ee)+'" class="mce-content-body '+xt(ze)+'"'+pt+">"+We.getContent()+Nt+"</body></html>";return Bt},On=function(We){var de=Ar(We),xt=We.windowManager.open({title:"Preview",size:"large",body:{type:"panel",items:[{name:"preview",type:"iframe",sandboxed:!0}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{preview:de}});xt.focus("close")},Le=function(We){We.addCommand("mcePreview",function(){On(We)})},zt=function(We){var de=function(){return We.execCommand("mcePreview")};We.ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:de}),We.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:de})};function hn(){fe.add("preview",function(We){Le(We),zt(We)})}hn()})();(function(){var fe=function(u){var l=typeof u;return u===null?"null":l==="object"&&(Array.prototype.isPrototypeOf(u)||u.constructor&&u.constructor.name==="Array")?"array":l==="object"&&(String.prototype.isPrototypeOf(u)||u.constructor&&u.constructor.name==="String")?"string":l},rt=function(u){return function(l){return fe(l)===u}},wn=function(u){return function(l){return typeof l===u}},Jt=function(u){return function(l){return u===l}},vt=rt("string"),Yt=rt("object"),vn=rt("array"),Nn=Jt(null),_n=wn("boolean"),Ar=Jt(void 0),On=function(u){return u==null},Le=function(u){return!On(u)},zt=wn("function"),hn=wn("number"),We=function(){},de=function(u,l){return function(){for(var d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];return u(l.apply(null,d))}},xt=function(u,l){return function(d){return u(l(d))}},Fe=function(u){return function(){return u}},sn=function(u){return u},ee=function(u,l){return u===l};function ze(u){for(var l=[],d=1;d<arguments.length;d++)l[d-1]=arguments[d];return function(){for(var h=[],y=0;y<arguments.length;y++)h[y]=arguments[y];var k=l.concat(h);return u.apply(null,k)}}var Ee=function(u){return function(l){return!u(l)}},Nt=function(u){return function(){throw new Error(u)}},Gt=Fe(!1),pt=Fe(!0),Bt=function(){return He},He=function(){var u=function(h){return h()},l=sn,d={fold:function(h,y){return h()},isSome:Gt,isNone:pt,getOr:l,getOrThunk:u,getOrDie:function(h){throw new Error(h||"error: getOrDie called on none.")},getOrNull:Fe(null),getOrUndefined:Fe(void 0),or:l,orThunk:u,map:Bt,each:We,bind:Bt,exists:Gt,forall:pt,filter:function(){return Bt()},toArray:function(){return[]},toString:Fe("none()")};return d}(),Fa=function(u){var l=Fe(u),d=function(){return y},h=function(k){return k(u)},y={fold:function(k,R){return R(u)},isSome:pt,isNone:Gt,getOr:l,getOrThunk:l,getOrDie:l,getOrNull:l,getOrUndefined:l,or:d,orThunk:d,map:function(k){return Fa(k(u))},each:function(k){k(u)},bind:h,exists:h,forall:h,filter:function(k){return k(u)?y:He},toArray:function(){return[u]},toString:function(){return"some("+u+")"}};return y},ve=function(u){return u==null?He:Fa(u)},Y={some:Fa,none:Bt,from:ve},An=Array.prototype.slice,wa=Array.prototype.indexOf,Rt=Array.prototype.push,Ca=function(u,l){return wa.call(u,l)},Ir=function(u,l){return Ca(u,l)>-1},_=function(u,l){for(var d=0,h=u.length;d<h;d++){var y=u[d];if(l(y,d))return!0}return!1},pa=function(u,l){for(var d=[],h=0;h<u;h++)d.push(l(h));return d},wt=function(u,l){for(var d=u.length,h=new Array(d),y=0;y<d;y++){var k=u[y];h[y]=l(k,y)}return h},Vt=function(u,l){for(var d=0,h=u.length;d<h;d++){var y=u[d];l(y,d)}},io=function(u,l){for(var d=u.length-1;d>=0;d--){var h=u[d];l(h,d)}},ho=function(u,l){for(var d=[],h=[],y=0,k=u.length;y<k;y++){var R=u[y],$=l(R,y)?d:h;$.push(R)}return{pass:d,fail:h}},or=function(u,l){for(var d=[],h=0,y=u.length;h<y;h++){var k=u[h];l(k,h)&&d.push(k)}return d},la=function(u,l,d){return io(u,function(h,y){d=l(d,h,y)}),d},J=function(u,l,d){return Vt(u,function(h,y){d=l(d,h,y)}),d},Ja=function(u,l,d){for(var h=0,y=u.length;h<y;h++){var k=u[h];if(l(k,h))return Y.some(k);if(d(k,h))break}return Y.none()},dt=function(u,l){return Ja(u,l,Gt)},Ft=function(u,l){for(var d=0,h=u.length;d<h;d++){var y=u[d];if(l(y,d))return Y.some(d)}return Y.none()},po=function(u){for(var l=[],d=0,h=u.length;d<h;++d){if(!vn(u[d]))throw new Error("Arr.flatten item "+d+" was not an array, input: "+u);Rt.apply(l,u[d])}return l},Sr=function(u,l){return po(wt(u,l))},Mt=function(u,l){for(var d=0,h=u.length;d<h;++d){var y=u[d];if(l(y,d)!==!0)return!1}return!0},Pn=function(u){var l=An.call(u,0);return l.reverse(),l},$n=function(u,l){for(var d={},h=0,y=u.length;h<y;h++){var k=u[h];d[String(k)]=l(k,h)}return d},bt=function(u){return[u]},ir=function(u,l){var d=An.call(u,0);return d.sort(l),d},La=function(u,l){return l>=0&&l<u.length?Y.some(u[l]):Y.none()},pn=function(u){return La(u,0)},Kr=function(u){return La(u,u.length-1)},Qr=function(u,l){for(var d=0;d<u.length;d++){var h=l(u[d],d);if(h.isSome())return h}return Y.none()},Dn=function(){return Dn=Object.assign||function(l){for(var d,h=1,y=arguments.length;h<y;h++){d=arguments[h];for(var k in d)Object.prototype.hasOwnProperty.call(d,k)&&(l[k]=d[k])}return l},Dn.apply(this,arguments)};function da(u,l,d){if(d||arguments.length===2)for(var h=0,y=l.length,k;h<y;h++)(k||!(h in l))&&(k||(k=Array.prototype.slice.call(l,0,h)),k[h]=l[h]);return u.concat(k||Array.prototype.slice.call(l))}var Fo=function(u){var l=!1,d;return function(){for(var h=[],y=0;y<arguments.length;y++)h[y]=arguments[y];return l||(l=!0,d=u.apply(null,h)),d}},bi=function(u,l,d,h){var y=u.isiOS()&&/ipad/i.test(d)===!0,k=u.isiOS()&&!y,R=u.isiOS()||u.isAndroid(),$=R||h("(pointer:coarse)"),j=y||!k&&R&&h("(min-device-width:768px)"),ne=k||R&&!j,he=l.isSafari()&&u.isiOS()&&/safari/i.test(d)===!1,Ge=!ne&&!j&&!he;return{isiPad:Fe(y),isiPhone:Fe(k),isTablet:Fe(j),isPhone:Fe(ne),isTouch:Fe($),isAndroid:u.isAndroid,isiOS:u.isiOS,isWebView:Fe(he),isDesktop:Fe(Ge)}},oi=function(u,l){for(var d=0;d<u.length;d++){var h=u[d];if(h.test(l))return h}},Xo=function(u,l){var d=oi(u,l);if(!d)return{major:0,minor:0};var h=function(y){return Number(l.replace(d,"$"+y))};return bo(h(1),h(2))},eo=function(u,l){var d=String(l).toLowerCase();return u.length===0?yi():Xo(u,d)},yi=function(){return bo(0,0)},bo=function(u,l){return{major:u,minor:l}},ta={nu:bo,detect:eo,unknown:yi},Yr=function(u,l){return Qr(l.brands,function(d){var h=d.brand.toLowerCase();return dt(u,function(y){var k;return h===((k=y.brand)===null||k===void 0?void 0:k.toLowerCase())}).map(function(y){return{current:y.name,version:ta.nu(parseInt(d.version,10),0)}})})},Ha=function(u,l){var d=String(l).toLowerCase();return dt(u,function(h){return h.search(d)})},ea=function(u,l){return Ha(u,l).map(function(d){var h=ta.detect(d.versionRegexes,l);return{current:d.name,version:h}})},Rr=function(u,l){return Ha(u,l).map(function(d){var h=ta.detect(d.versionRegexes,l);return{current:d.name,version:h}})},Pe=function(u,l){return u.substring(l)},Wt=function(u,l,d){return l===""||u.length>=l.length&&u.substr(d,d+l.length)===l},cn=function(u,l){return xr(u,l)?Pe(u,l.length):u},Kt=function(u,l){return u.indexOf(l)!==-1},xr=function(u,l){return Wt(u,l,0)},_r=function(u,l){return Wt(u,l,u.length-l.length)},Da=function(u){return function(l){return l.replace(u,"")}},bn=Da(/^\s+|\s+$/g),Tr=function(u){return u.length>0},ma=function(u){return!Tr(u)},ko=function(u){var l=parseFloat(u);return isNaN(l)?Y.none():Y.some(l)},Fi=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,Br=function(u){return function(l){return Kt(l,u)}},ur=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(u){return Kt(u,"edge/")&&Kt(u,"chrome")&&Kt(u,"safari")&&Kt(u,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,Fi],search:function(u){return Kt(u,"chrome")&&!Kt(u,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(u){return Kt(u,"msie")||Kt(u,"trident")}},{name:"Opera",versionRegexes:[Fi,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:Br("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:Br("firefox")},{name:"Safari",versionRegexes:[Fi,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(u){return(Kt(u,"safari")||Kt(u,"mobile/"))&&Kt(u,"applewebkit")}}],yo=[{name:"Windows",search:Br("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(u){return Kt(u,"iphone")||Kt(u,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:Br("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:Br("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:Br("linux"),versionRegexes:[]},{name:"Solaris",search:Br("sunos"),versionRegexes:[]},{name:"FreeBSD",search:Br("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:Br("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],ii={browsers:Fe(ur),oses:Fe(yo)},Bo="Edge",wo="Chrome",Lo="IE",Li="Opera",ui="Firefox",Mo="Safari",Hi=function(){return Mr({current:void 0,version:ta.unknown()})},Mr=function(u){var l=u.current,d=u.version,h=function(y){return function(){return l===y}};return{current:l,version:d,isEdge:h(Bo),isChrome:h(wo),isIE:h(Lo),isOpera:h(Li),isFirefox:h(ui),isSafari:h(Mo)}},si={unknown:Hi,nu:Mr,edge:Fe(Bo),chrome:Fe(wo),ie:Fe(Lo),opera:Fe(Li),firefox:Fe(ui),safari:Fe(Mo)},Sn="Windows",Uu="iOS",Ho="Android",_i="Linux",Vo="OSX",Bi="Solaris",Mu="FreeBSD",ci="ChromeOS",Wu=function(){return te({current:void 0,version:ta.unknown()})},te=function(u){var l=u.current,d=u.version,h=function(y){return function(){return l===y}};return{current:l,version:d,isWindows:h(Sn),isiOS:h(Uu),isAndroid:h(Ho),isOSX:h(Vo),isLinux:h(_i),isSolaris:h(Bi),isFreeBSD:h(Mu),isChromeOS:h(ci)}},we={unknown:Wu,nu:te,windows:Fe(Sn),ios:Fe(Uu),android:Fe(Ho),linux:Fe(_i),osx:Fe(Vo),solaris:Fe(Bi),freebsd:Fe(Mu),chromeos:Fe(ci)},ie=function(u,l,d){var h=ii.browsers(),y=ii.oses(),k=l.bind(function(j){return Yr(h,j)}).orThunk(function(){return ea(h,u)}).fold(si.unknown,si.nu),R=Rr(y,u).fold(we.unknown,we.nu),$=bi(R,k,u,d);return{browser:k,os:R,deviceType:$}},_e={detect:ie},At=function(u){return window.matchMedia(u).matches},Zt=Fo(function(){return _e.detect(navigator.userAgent,Y.from(navigator.userAgentData),At)}),Ln=function(){return Zt()},Wn=function(u,l,d){return(u.compareDocumentPosition(l)&d)!==0},Dr=function(u,l){return Wn(u,l,Node.DOCUMENT_POSITION_CONTAINED_BY)},zr=8,yr=9,xa=11,Ta=1,Vi=3,uo=function(u,l){var d=l||document,h=d.createElement("div");if(h.innerHTML=u,!h.hasChildNodes()||h.childNodes.length>1)throw console.error("HTML does not have a single root node",u),new Error("HTML must have a single root node");return ka(h.childNodes[0])},Yo=function(u,l){var d=l||document,h=d.createElement(u);return ka(h)},au=function(u,l){var d=l||document,h=d.createTextNode(u);return ka(h)},ka=function(u){if(u==null)throw new Error("Node cannot be null or undefined");return{dom:u}},Ra=function(u,l,d){return Y.from(u.dom.elementFromPoint(l,d)).map(ka)},st={fromHtml:uo,fromTag:Yo,fromText:au,fromDom:ka,fromPoint:Ra},Ka=function(u,l){var d=u.dom;if(d.nodeType!==Ta)return!1;var h=d;if(h.matches!==void 0)return h.matches(l);if(h.msMatchesSelector!==void 0)return h.msMatchesSelector(l);if(h.webkitMatchesSelector!==void 0)return h.webkitMatchesSelector(l);if(h.mozMatchesSelector!==void 0)return h.mozMatchesSelector(l);throw new Error("Browser lacks native selectors")},Ui=function(u){return u.nodeType!==Ta&&u.nodeType!==yr&&u.nodeType!==xa||u.childElementCount===0},ju=function(u,l){var d=l===void 0?document:l.dom;return Ui(d)?[]:wt(d.querySelectorAll(u),st.fromDom)},qu=function(u,l){var d=l===void 0?document:l.dom;return Ui(d)?Y.none():Y.from(d.querySelector(u)).map(st.fromDom)},wr=function(u,l){return u.dom===l.dom},fs=function(u,l){var d=u.dom,h=l.dom;return d===h?!1:d.contains(h)},Wi=function(u,l){return Dr(u.dom,l.dom)},Va=function(u,l){return Ln().browser.isIE()?Wi(u,l):fs(u,l)},Gu=Ka,Jo=Object.keys,li=Object.hasOwnProperty,fa=function(u,l){for(var d=Jo(u),h=0,y=d.length;h<y;h++){var k=d[h],R=u[k];l(R,k)}},Ku=function(u,l){return q(u,function(d,h){return{k:h,v:l(d,h)}})},q=function(u,l){var d={};return fa(u,function(h,y){var k=l(h,y);d[k.k]=k.v}),d},me=function(u){return function(l,d){u[d]=l}},De=function(u,l,d,h){var y={};return fa(u,function(k,R){(l(k,R)?d:h)(k,R)}),y},Xe=function(u,l){var d={};return De(u,l,me(d),We),d},Pt=function(u,l){var d=[];return fa(u,function(h,y){d.push(l(h,y))}),d},en=function(u){return Pt(u,sn)},gn=function(u){return Jo(u).length},lr=function(u,l){return V(u,l)?Y.from(u[l]):Y.none()},V=function(u,l){return li.call(u,l)},le=function(u,l){return V(u,l)&&u[l]!==void 0&&u[l]!==null},Te=function(u){for(var l in u)if(li.call(u,l))return!1;return!0},Me=["tfoot","thead","tbody","colgroup"],Ze=function(u){return Ir(Me,u)},jt=function(u,l){return{rows:u,columns:l}},yn=function(u,l){return{row:u,column:l}},Pr=function(u,l,d){return{element:u,rowspan:l,colspan:d}},tr=function(u,l,d,h){return{element:u,rowspan:l,colspan:d,isNew:h}},na=function(u,l,d,h,y,k){return{element:u,rowspan:l,colspan:d,row:h,column:y,isLocked:k}},Sa=function(u,l,d){return{element:u,cells:l,section:d}},bu=function(u,l,d,h){return{element:u,cells:l,section:d,isNew:h}},Co=function(u,l,d){return{element:u,isNew:l,isLocked:d}},Cn=function(u,l,d,h){return{element:u,cells:l,section:d,isNew:h}},Ct=function(u,l,d,h){return{startRow:u,startCol:l,finishRow:d,finishCol:h}},oa=function(u,l,d){return{element:u,colspan:l,column:d}},So=function(u,l){return{element:u,columns:l}};typeof window!="undefined"||Function("return this;")();var Cr=function(u){var l=u.dom.nodeName;return l.toLowerCase()},As=function(u){return u.dom.nodeType},Xu=function(u){return function(l){return As(l)===u}},vc=function(u){return As(u)===zr||Cr(u)==="#comment"},Vr=Xu(Ta),wi=Xu(Vi),dc=Xu(yr),yu=Xu(xa),to=function(u){return function(l){return Vr(l)&&Cr(l)===u}},Ds=function(u){return st.fromDom(u.dom.ownerDocument)},je=function(u){return dc(u)?u:Ds(u)},Zs=function(u){return st.fromDom(je(u).dom.defaultView)},no=function(u){return Y.from(u.dom.parentNode).map(st.fromDom)},ll=function(u){return Y.from(u.dom.parentElement).map(st.fromDom)},vs=function(u,l){for(var d=zt(l)?l:Gt,h=u.dom,y=[];h.parentNode!==null&&h.parentNode!==void 0;){var k=h.parentNode,R=st.fromDom(k);if(y.push(R),d(R)===!0)break;h=k}return y},M=function(u){return Y.from(u.dom.previousSibling).map(st.fromDom)},T=function(u){return Y.from(u.dom.nextSibling).map(st.fromDom)},w=function(u){return wt(u.dom.childNodes,st.fromDom)},D=function(u,l){var d=u.dom.childNodes;return Y.from(d[l]).map(st.fromDom)},L=function(u){return D(u,0)},Q=function(u){return yu(u)&&Le(u.dom.host)},ke=zt(Element.prototype.attachShadow)&&zt(Node.prototype.getRootNode),et=Fe(ke),dn=ke?function(u){return st.fromDom(u.dom.getRootNode())}:je,Bn=function(u){var l=dn(u);return Q(l)?Y.some(l):Y.none()},Dt=function(u){return st.fromDom(u.dom.host)},ln=function(u){if(et()&&Le(u.target)){var l=st.fromDom(u.target);if(Vr(l)&&nr(l)&&u.composed&&u.composedPath){var d=u.composedPath();if(d)return pn(d)}}return Y.from(u.target)},nr=function(u){return Le(u.dom.shadowRoot)},er=function(u){var l=wi(u)?u.dom.parentNode:u.dom;if(l==null||l.ownerDocument===null)return!1;var d=l.ownerDocument;return Bn(st.fromDom(l)).fold(function(){return d.body.contains(l)},xt(er,Dt))},qn=function(){return Pa(st.fromDom(document))},Pa=function(u){var l=u.dom.body;if(l==null)throw new Error("Body is not available yet");return st.fromDom(l)},Hn=function(u,l,d){return or(vs(u,d),l)},ga=function(u,l){return or(w(u),l)},ia=function(u,l){var d=[];return Vt(w(u),function(h){l(h)&&(d=d.concat([h])),d=d.concat(ia(h,l))}),d},Ci=function(u,l,d){return Hn(u,function(h){return Ka(h,l)},d)},fr=function(u,l){return ga(u,function(d){return Ka(d,l)})},Rs=function(u,l){return ju(l,u)};function ro(u,l,d,h,y){return u(d,h)?Y.some(d):zt(y)&&y(d)?Y.none():l(d,h,y)}var xo=function(u,l,d){for(var h=u.dom,y=zt(d)?d:Gt;h.parentNode;){h=h.parentNode;var k=st.fromDom(h);if(l(k))return Y.some(k);if(y(k))break}return Y.none()},Ep=function(u,l,d){var h=function(y,k){return k(y)};return ro(h,xo,u,l,d)},ji=function(u,l){var d=function(y){return l(st.fromDom(y))},h=dt(u.dom.childNodes,d);return h.map(st.fromDom)},Ig=function(u,l){var d=function(h){for(var y=0;y<h.childNodes.length;y++){var k=st.fromDom(h.childNodes[y]);if(l(k))return Y.some(k);var R=d(h.childNodes[y]);if(R.isSome())return R}return Y.none()};return d(u.dom)},Nc=function(u,l,d){return xo(u,function(h){return Ka(h,l)},d)},Xn=function(u,l){return ji(u,function(d){return Ka(d,l)})},_s=function(u,l){return qu(l,u)},Eo=function(u,l,d){var h=function(y,k){return Ka(y,k)};return ro(h,Nc,u,l,d)},Oo=function(u,l,d){if(vt(d)||_n(d)||hn(d))u.setAttribute(l,d+"");else throw console.error("Invalid call to Attribute.set. Key ",l,":: Value ",d,":: Element ",u),new Error("Attribute value was not simple")},Si=function(u,l,d){Oo(u.dom,l,d)},Zo=function(u,l){var d=u.dom;fa(l,function(h,y){Oo(d,y,h)})},hf=function(u,l){fa(l,function(d,h){d.fold(function(){Xa(u,h)},function(y){Oo(u.dom,h,y)})})},Qs=function(u,l){var d=u.dom.getAttribute(l);return d===null?void 0:d},ua=function(u,l){return Y.from(Qs(u,l))},Xa=function(u,l){u.dom.removeAttribute(l)},Pu=function(u){return J(u.dom.attributes,function(l,d){return l[d.name]=d.value,l},{})},fl=function(u,l,d){return d===void 0&&(d=ee),u.exists(function(h){return d(h,l)})},fi=function(u){for(var l=[],d=function(y){l.push(y)},h=0;h<u.length;h++)u[h].each(d);return l},Bs=function(u,l,d){return u.isSome()&&l.isSome()?Y.some(d(u.getOrDie(),l.getOrDie())):Y.none()},Op=function(u,l){return u!=null?l(u):Y.none()},pf=function(u){return u.bind(sn)},$a=function(u,l){return u?Y.some(l):Y.none()},mc=function(u){return u.style!==void 0&&zt(u.style.getPropertyValue)},Il=function(u,l,d){if(!vt(d))throw console.error("Invalid call to CSS.set. Property ",l,":: Value ",d,":: Element ",u),new Error("CSS value must be a string: "+d);mc(u)&&u.style.setProperty(l,d)},Yu=function(u,l){mc(u)&&u.style.removeProperty(l)},Po=function(u,l,d){var h=u.dom;Il(h,l,d)},zl=function(u,l){var d=u.dom;fa(l,function(h,y){Il(d,y,h)})},vl=function(u,l){var d=u.dom,h=window.getComputedStyle(d),y=h.getPropertyValue(l);return y===""&&!er(u)?wu(d,l):y},wu=function(u,l){return mc(u)?u.style.getPropertyValue(l):""},Ju=function(u,l){var d=u.dom,h=wu(d,l);return Y.from(h).filter(function(y){return y.length>0})},ou=function(u,l){var d=u.dom;Yu(d,l),fl(ua(u,"style").map(bn),"")&&Xa(u,"style")},ov=function(u,l){var d=u.dom,h=l.dom;mc(d)&&mc(h)&&(h.style.cssText=d.style.cssText)},gc=function(u,l,d){return d===void 0&&(d=0),ua(u,l).map(function(h){return parseInt(h,10)}).getOr(d)},xi=function(u,l){return gc(u,l,1)},ud=function(u){return to("col")(u)?gc(u,"span",1)>1:xi(u,"colspan")>1},Ap=function(u){return xi(u,"rowspan")>1},bf=function(u,l){return parseInt(vl(u,l),10)},yf=Fe(10),$o=Fe(10),wf=function(u,l){return Cf(u,l,pt)},Cf=function(u,l,d){return Sr(w(u),function(h){return Ka(h,l)?d(h)?[h]:[]:Cf(h,l,d)})},Cu=function(u,l,d){if(d===void 0&&(d=Gt),d(l))return Y.none();if(Ir(u,Cr(l)))return Y.some(l);var h=function(y){return Ka(y,"table")||d(y)};return Nc(l,u.join(","),h)},dl=function(u,l){return Cu(["td","th"],u,l)},Sf=function(u){return wf(u,"th,td")},ml=function(u){return Ka(u,"colgroup")?fr(u,"col"):Sr(bm(u),function(l){return fr(l,"col")})},so=function(u,l){return Eo(u,"table",l)},ds=function(u){return wf(u,"tr")},bm=function(u){return so(u).fold(Fe([]),function(l){return fr(l,"colgroup")})},Ms=function(u,l){return wt(u,function(d){if(Cr(d)==="colgroup"){var h=wt(ml(d),function(y){var k=gc(y,"span",1);return Pr(y,1,k)});return Sa(d,h,"colgroup")}else{var h=wt(Sf(d),function(k){var R=gc(k,"rowspan",1),$=gc(k,"colspan",1);return Pr(k,R,$)});return Sa(d,h,l(d))}})},ym=function(u){return no(u).map(function(l){var d=Cr(l);return Ze(d)?d:"tbody"}).getOr("tbody")},Dp=function(u){var l=ds(u),d=bm(u),h=da(da([],d,!0),l,!0);return Ms(h,ym)},zg=function(u,l){return Ms(u,function(){return l})},xf=function(u,l,d){var h=u.cells,y=h.slice(0,l),k=h.slice(l),R=y.concat(d).concat(k);return Zn(u,R)},Tf=function(u,l,d){return xf(u,l,[d])},Fl=function(u,l,d){var h=u.cells;h[l]=d},Zn=function(u,l){return Cn(u.element,l,u.section,u.isNew)},ec=function(u,l){var d=u.cells,h=wt(d,l);return Cn(u.element,h,u.section,u.isNew)},Zu=function(u,l){return u.cells[l]},Su=function(u,l){return Zu(u,l).element},tc=function(u){return u.cells.length},Uo=function(u){var l=ho(u,function(d){return d.section==="colgroup"});return{rows:l.fail,cols:l.pass}},Ti=function(u,l,d){var h=wt(u.cells,d);return Cn(l(u.element),h,u.section,!0)},Qo="data-snooker-locked-cols",Ll=function(u){return ua(u,Qo).bind(function(l){return Y.from(l.match(/\d+/g))}).map(function(l){return $n(l,pt)})},iu=function(u){var l=J(Uo(u).rows,function(h,y){return Vt(y.cells,function(k,R){k.isLocked&&(h[R]=!0)}),h},{}),d=Pt(l,function(h,y){return parseInt(y,10)});return ir(d)},an=function(u,l){return u+","+l},kf=function(u,l,d){return Y.from(u.access[an(l,d)])},Fg=function(u,l,d){var h=mr(u,function(y){return d(l,y.element)});return h.length>0?Y.some(h[0]):Y.none()},mr=function(u,l){var d=Sr(u.all,function(h){return h.cells});return or(d,l)},Na=function(u){var l={},d=0;return Vt(u.cells,function(h){var y=h.colspan;pa(y,function(k){var R=d+k;l[R]=oa(h.element,y,R)}),d+=y}),l},wm=function(u){var l={},d=[],h=pn(u).map(function(Ot){return Ot.element}).bind(so),y=h.bind(Ll).getOr({}),k=0,R=0,$=0,j=ho(u,function(Ot){return Ot.section==="colgroup"}),ne=j.pass,he=j.fail;Vt(he,function(Ot){var Et=[];Vt(Ot.cells,function(kn){for(var Jr=0;l[an($,Jr)]!==void 0;)Jr++;for(var In=le(y,Jr.toString()),Jn=na(kn.element,kn.rowspan,kn.colspan,$,Jr,In),Hr=0;Hr<kn.colspan;Hr++)for(var br=0;br<kn.rowspan;br++){var Io=$+br,Ni=Jr+Hr,Hu=an(Io,Ni);l[Hu]=Jn,R=Math.max(R,Ni+1)}Et.push(Jn)}),k++,d.push(Sa(Ot.element,Et,Ot.section)),$++});var Ge=Kr(ne).map(function(Ot){var Et=Na(Ot),kn=So(Ot.element,en(Et));return{colgroups:[kn],columns:Et}}).getOrThunk(function(){return{colgroups:[],columns:{}}}),yt=Ge.columns,at=Ge.colgroups,Ke=jt(k,R);return{grid:Ke,access:l,all:d,columns:yt,colgroups:at}},Ic=function(u){var l=Dp(u);return wm(l)},ao=function(u){return Sr(u.all,function(l){return l.cells})},Cm=function(u){return en(u.columns)},ms=function(u){return Jo(u.columns).length>0},sd=function(u,l){return Y.from(u.columns[l])},hr={fromTable:Ic,generate:wm,getAt:kf,findItem:Fg,filterItems:mr,justCells:ao,justColumns:Cm,hasColumns:ms,getColumnAt:sd},$u=function(u,l){var d=l.column,h=l.column+l.colspan-1,y=l.row,k=l.row+l.rowspan-1;return d<=u.finishCol&&h>=u.startCol&&y<=u.finishRow&&k>=u.startRow},Jb=function(u,l){return l.column>=u.startCol&&l.column+l.colspan-1<=u.finishCol&&l.row>=u.startRow&&l.row+l.rowspan-1<=u.finishRow},Zb=function(u,l){for(var d=!0,h=ze(Jb,l),y=l.startRow;y<=l.finishRow;y++)for(var k=l.startCol;k<=l.finishCol;k++)d=d&&hr.getAt(u,y,k).exists(h);return d?Y.some(l):Y.none()},co=function(u,l){return Ct(Math.min(u.row,l.row),Math.min(u.column,l.column),Math.max(u.row+u.rowspan-1,l.row+l.rowspan-1),Math.max(u.column+u.colspan-1,l.column+l.colspan-1))},Sm=function(u,l,d){var h=hr.findItem(u,l,wr),y=hr.findItem(u,d,wr);return h.bind(function(k){return y.map(function(R){return co(k,R)})})},O=function(u,l,d){return Sm(u,l,d).bind(function(h){return Zb(u,h)})},I=function(u,l,d,h){return hr.findItem(u,l,wr).bind(function(y){var k=d>0?y.row+y.rowspan-1:y.row,R=h>0?y.column+y.colspan-1:y.column,$=hr.getAt(u,k+d,R+h);return $.map(function(j){return j.element})})},U=function(u,l,d){return Sm(u,l,d).map(function(h){var y=hr.filterItems(u,ze($u,h));return wt(y,function(k){return k.element})})},oe=function(u,l){var d=function(h,y){return Va(y,h)};return hr.findItem(u,l,d).map(function(h){return h.element})},Oe=function(u,l,d){return so(u).bind(function(h){var y=Fr(h);return I(y,u,l,d)})},Ye=function(u,l,d){var h=Fr(u);return U(h,l,d)},Tn=function(u,l,d,h,y){var k=Fr(u),R=wr(u,d)?Y.some(l):oe(k,l),$=wr(u,y)?Y.some(h):oe(k,h);return R.bind(function(j){return $.bind(function(ne){return U(k,j,ne)})})},rr=function(u,l,d){var h=Fr(u);return O(h,l,d)},Fr=hr.fromTable,pr=function(u,l){var d=no(u);d.each(function(h){h.dom.insertBefore(l.dom,u.dom)})},Ua=function(u,l){var d=T(u);d.fold(function(){var h=no(u);h.each(function(y){Ao(y,l)})},function(h){pr(h,l)})},uu=function(u,l){var d=L(u);d.fold(function(){Ao(u,l)},function(h){u.dom.insertBefore(l.dom,h.dom)})},Ao=function(u,l){u.dom.appendChild(l.dom)},kT=function(u,l,d){D(u,d).fold(function(){Ao(u,l)},function(h){pr(h,l)})},v2=function(u,l){pr(u,l),Ao(l,u)},d2=function(u,l){Vt(l,function(d){pr(u,d)})},ET=function(u,l){Vt(l,function(d,h){var y=h===0?u:l[h-1];Ua(y,d)})},gl=function(u,l){Vt(l,function(d){Ao(u,d)})},Lg=function(u){u.dom.textContent="",Vt(w(u),function(l){gs(l)})},gs=function(u){var l=u.dom;l.parentNode!==null&&l.parentNode.removeChild(l)},xm=function(u){var l=w(u);l.length>0&&d2(u,l),gs(u)},Qb=function(u,l){var d=function(k){if(!u(k))throw new Error("Can only get "+l+" value of a "+l+" node");return h(k).getOr("")},h=function(k){return u(k)?Y.from(k.dom.nodeValue):Y.none()},y=function(k,R){if(!u(k))throw new Error("Can only set raw "+l+" value of a "+l+" node");k.dom.nodeValue=R};return{get:d,getOption:h,set:y}},Hg=Qb(wi,"text"),Rp=function(u){return Hg.get(u)},m2=function(u){return Hg.getOption(u)},OT=function(u,l){return Hg.set(u,l)},hl=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","li","table","thead","tbody","tfoot","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"];function Vg(){var u=function(ne){return st.fromDom(ne.dom.cloneNode(!1))},l=function(ne){return je(ne).dom},d=function(ne){return Vr(ne)?Cr(ne)==="body"?!0:Ir(hl,Cr(ne)):!1},h=function(ne){return Vr(ne)?Ir(["br","img","hr","input"],Cr(ne)):!1},y=function(ne){return Vr(ne)&&Qs(ne,"contenteditable")==="false"},k=function(ne,he){return ne.dom.compareDocumentPosition(he.dom)},R=function(ne,he){var Ge=Pu(ne);Zo(he,Ge)},$=function(ne){var he=Cr(ne);return Ir(["script","noscript","iframe","noframes","noembed","title","style","textarea","xmp"],he)},j=function(ne){return Vr(ne)?ua(ne,"lang"):Y.none()};return{up:Fe({selector:Nc,closest:Eo,predicate:xo,all:vs}),down:Fe({selector:Rs,predicate:ia}),styles:Fe({get:vl,getRaw:Ju,set:Po,remove:ou}),attrs:Fe({get:Qs,set:Si,remove:Xa,copyTo:R}),insert:Fe({before:pr,after:Ua,afterAll:ET,append:Ao,appendAll:gl,prepend:uu,wrap:v2}),remove:Fe({unwrap:xm,remove:gs}),create:Fe({nu:st.fromTag,clone:u,text:st.fromText}),query:Fe({comparePosition:k,prevSibling:M,nextSibling:T}),property:Fe({children:w,name:Cr,parent:no,document:l,isText:wi,isComment:vc,isElement:Vr,isSpecial:$,getLanguage:j,getText:Rp,setText:OT,isBoundary:d,isEmptyTag:h,isNonEditable:y}),eq:wr,is:Gu}}var AT=function(u,l,d,h){var y=d[0],k=d.slice(1);return h(u,l,y,k)},e0=function(u,l,d){return d.length>0?AT(u,l,d,DT):Y.none()},DT=function(u,l,d,h){var y=l(u,d);return la(h,function(k,R){var $=l(u,R);return RT(u,k,$)},y)},RT=function(u,l,d){return l.bind(function(h){return d.filter(ze(u.eq,h))})},Tm=function(u,l){return ze(u.eq,l)},Ug=function(u,l,d,h){h===void 0&&(h=Gt);var y=[l].concat(u.up().all(l)),k=[d].concat(u.up().all(d)),R=function(he){var Ge=Ft(he,h);return Ge.fold(function(){return he},function(yt){return he.slice(0,yt+1)})},$=R(y),j=R(k),ne=dt($,function(he){return _(j,Tm(u,he))});return{firstpath:$,secondpath:j,shared:ne}},g2=e0,h2=Ug,Ps=Vg(),Rn=function(u,l){return g2(Ps,function(d,h){return u(h)},l)},Ef=function(u,l,d){return h2(Ps,u,l,d)},Wg=function(u){return Nc(u,"table")},iv=function(u,l,d){var h=function(y){return function(k){return d!==void 0&&d(k)||wr(k,y)}};return wr(u,l)?Y.some({boxes:Y.some([u]),start:u,finish:l}):Wg(u).bind(function(y){return Wg(l).bind(function(k){if(wr(y,k))return Y.some({boxes:Ye(y,u,l),start:u,finish:l});if(Va(y,k)){var R=Ci(l,"td,th",h(y)),$=R.length>0?R[R.length-1]:l;return Y.some({boxes:Tn(y,u,y,l,k),start:u,finish:$})}else if(Va(k,y)){var R=Ci(u,"td,th",h(k)),j=R.length>0?R[R.length-1]:u;return Y.some({boxes:Tn(k,u,y,l,k),start:u,finish:j})}else return Ef(u,l).shared.bind(function(ne){return Eo(ne,"table",d).bind(function(he){var Ge=Ci(l,"td,th",h(he)),yt=Ge.length>0?Ge[Ge.length-1]:l,at=Ci(u,"td,th",h(he)),Ke=at.length>0?at[at.length-1]:u;return Y.some({boxes:Tn(he,u,y,l,k),start:Ke,finish:yt})})})})})},km=function(u,l){var d=Rs(u,l);return d.length>0?Y.some(d):Y.none()},t0=function(u,l){return dt(u,function(d){return Ka(d,l)})},zc=function(u,l,d){return _s(u,l).bind(function(h){return _s(u,d).bind(function(y){return Rn(Wg,[h,y]).map(function(k){return{first:h,last:y,table:k}})})})},cd=function(u,l){return Nc(u,"table").bind(function(d){return _s(d,l).bind(function(h){return iv(h,u).bind(function(y){return y.boxes.map(function(k){return{boxes:k,start:y.start,finish:y.finish}})})})})},Em=function(u,l,d,h,y){return t0(u,y).bind(function(k){return Oe(k,l,d).bind(function(R){return cd(R,h)})})},Wo=function(u,l){return km(u,l)},qi=function(u,l,d){return zc(u,l,d).bind(function(h){var y=function(j){return wr(u,j)},k="thead,tfoot,tbody,table",R=Nc(h.first,k,y),$=Nc(h.last,k,y);return R.bind(function(j){return $.bind(function(ne){return wr(j,ne)?rr(h.table,h.first,h.last):Y.none()})})})},jg=function(u){if(!vn(u))throw new Error("cases must be an array");if(u.length===0)throw new Error("there must be at least one case");var l=[],d={};return Vt(u,function(h,y){var k=Jo(h);if(k.length!==1)throw new Error("one and only one name per case");var R=k[0],$=h[R];if(d[R]!==void 0)throw new Error("duplicate key detected:"+R);if(R==="cata")throw new Error("cannot have a case named cata (sorry)");if(!vn($))throw new Error("case arguments must be an array");l.push(R),d[R]=function(){for(var j=[],ne=0;ne<arguments.length;ne++)j[ne]=arguments[ne];var he=j.length;if(he!==$.length)throw new Error("Wrong number of arguments to case "+R+". Expected "+$.length+" ("+$+"), got "+he);var Ge=function(yt){var at=Jo(yt);if(l.length!==at.length)throw new Error("Wrong number of arguments to match. Expected: "+l.join(",")+`
237
237
  Actual: `+at.join(","));var Ke=Mt(l,function(Ot){return Ir(at,Ot)});if(!Ke)throw new Error("Not all branches were specified when using match. Specified: "+at.join(", ")+`
238
238
  Required: `+l.join(", "));return yt[R].apply(null,j)};return{fold:function(){for(var yt=[],at=0;at<arguments.length;at++)yt[at]=arguments[at];if(yt.length!==u.length)throw new Error("Wrong number of arguments to fold. Expected "+u.length+", got "+yt.length);var Ke=yt[y];return Ke.apply(null,j)},match:Ge,log:function(yt){console.log(yt,{constructors:l,constructor:R,params:j})}}}}),d},Hl={generate:jg},qg=Hl.generate([{none:[]},{multiple:["elements"]},{single:["element"]}]),_p=function(u,l,d,h){return u.fold(l,d,h)},Bp=qg.none,_T=qg.multiple,Om=qg.single,xu=function(u,l,d){var h=function(){return Wo(u(),d).fold(function(){return l().fold(Bp,Om)},function(y){return _T(y)})};return{get:h}},p2=tinymce.util.Tools.resolve("tinymce.PluginManager"),To=function(u,l){return st.fromDom(u.dom.cloneNode(l))},Fc=function(u){return To(u,!1)},ba=function(u){return To(u,!0)},uv=function(u,l){var d=st.fromTag(l),h=Pu(u);return Zo(d,h),d},hc=function(u,l){var d=uv(u,l),h=w(ba(u));return gl(d,h),d},BT=function(u,l){var d=uv(u,l);pr(u,d);var h=w(u);return gl(d,h),gs(u),d},ki=function(u,l){var d=function($,j){if(!hn(j)&&!j.match(/^[0-9]+$/))throw new Error(u+".set accepts only positive integer values. Value was "+j);var ne=$.dom;mc(ne)&&(ne.style[u]=j+"px")},h=function($){var j=l($);if(j<=0||j===null){var ne=vl($,u);return parseFloat(ne)||0}return j},y=h,k=function($,j){return J(j,function(ne,he){var Ge=vl($,he),yt=Ge===void 0?0:parseInt(Ge,10);return isNaN(yt)?ne:ne+yt},0)},R=function($,j,ne){var he=k($,ne),Ge=j>he?j-he:0;return Ge};return{set:d,get:h,getOuter:y,aggregate:k,max:R}},Qu=function(){var u=Ln().browser;return u.isIE()||u.isEdge()},b2=function(u,l){return ko(u).getOr(l)},nt=function(u,l,d){return b2(vl(u,l),d)},hs=function(u){return vl(u,"box-sizing")},Of=function(u,l,d,h){var y=nt(u,"padding-"+d,0),k=nt(u,"padding-"+h,0),R=nt(u,"border-"+d+"-width",0),$=nt(u,"border-"+h+"-width",0);return l-y-k-R-$},Qn=function(u,l){var d=u.dom,h=d.getBoundingClientRect().height||d.offsetHeight;return l==="border-box"?h:Of(u,h,"top","bottom")},nc=function(u,l){var d=u.dom,h=d.getBoundingClientRect().width||d.offsetWidth;return l==="border-box"?h:Of(u,h,"left","right")},MT=function(u){return Qu()?Qn(u,hs(u)):nt(u,"height",u.dom.offsetHeight)},Nu=function(u){return Qu()?nc(u,hs(u)):nt(u,"width",u.dom.offsetWidth)},Am=function(u){return nc(u,"content-box")},Vl=ki("width",function(u){return u.dom.offsetWidth}),Lc=function(u){return Vl.get(u)},Tu=function(u){return Vl.getOuter(u)},sa=Am,pl=Nu,ld=function(u,l){l===void 0&&(l=pt);var d=u.grid,h=pa(d.columns,sn),y=pa(d.rows,sn);return wt(h,function(k){var R=function(){return Sr(y,function(ne){return hr.getAt(u,ne,k).filter(function(he){return he.column===k}).toArray()})},$=function(ne){return ne.colspan===1&&l(ne.element)},j=function(){return hr.getAt(u,0,k)};return ja(R,$,j)})},ja=function(u,l,d){var h=u(),y=dt(h,l),k=y.orThunk(function(){return Y.from(h[0]).orThunk(d)});return k.map(function(R){return R.element})},sv=function(u){var l=u.grid,d=pa(l.rows,sn),h=pa(l.columns,sn);return wt(d,function(y){var k=function(){return Sr(h,function(j){return hr.getAt(u,y,j).filter(function(ne){return ne.row===y}).fold(Fe([]),function(ne){return[ne]})})},R=function(j){return j.rowspan===1},$=function(){return hr.getAt(u,y,0)};return ja(k,R,$)})},$s=function(u,l){if(l<0||l>=u.length-1)return Y.none();var d=u[l].fold(function(){var y=Pn(u.slice(0,l));return Qr(y,function(k,R){return k.map(function($){return{value:$,delta:R+1}})})},function(y){return Y.some({value:y,delta:0})}),h=u[l+1].fold(function(){var y=u.slice(l+1);return Qr(y,function(k,R){return k.map(function($){return{value:$,delta:R+1}})})},function(y){return Y.some({value:y,delta:1})});return d.bind(function(y){return h.map(function(k){var R=k.delta+y.delta;return Math.abs(k.value-y.value)/R})})},Ns=function(u,l){return function(d){return PT(d)==="rtl"?l:u}},PT=function(u){return vl(u,"direction")==="rtl"?"rtl":"ltr"},Se=ki("height",function(u){var l=u.dom;return er(u)?l.getBoundingClientRect().height:l.offsetHeight}),es=function(u){return Se.get(u)},bl=function(u){return Se.getOuter(u)},Dm=MT,rc=function(u,l){var d=function(h,y){return rc(u+h,l+y)};return{left:u,top:l,translate:d}},Ia=rc,qa=function(u){var l=u.getBoundingClientRect();return Ia(l.left,l.top)},ps=function(u,l){return u!==void 0?u:l!==void 0?l:0},Af=function(u){var l=u.dom.ownerDocument,d=l.body,h=l.defaultView,y=l.documentElement;if(d===u.dom)return Ia(d.offsetLeft,d.offsetTop);var k=ps(h==null?void 0:h.pageYOffset,y.scrollTop),R=ps(h==null?void 0:h.pageXOffset,y.scrollLeft),$=ps(y.clientTop,d.clientTop),j=ps(y.clientLeft,d.clientLeft);return n0(u).translate(R-j,k-$)},n0=function(u){var l=u.dom,d=l.ownerDocument,h=d.body;return h===l?Ia(h.offsetLeft,h.offsetTop):er(u)?qa(l):Ia(0,0)},zn=function(u,l){return{row:u,y:l}},Mp=function(u,l){return{col:u,x:l}},ac=function(u){var l=Af(u);return l.left+Tu(u)},y2=function(u){return Af(u).left},Gg=function(u,l){return Mp(u,y2(l))},Kg=function(u,l){return Mp(u,ac(l))},r0=function(u){return Af(u).top},a0=function(u,l){return zn(u,r0(l))},Ul=function(u,l){return zn(u,r0(l)+bl(l))},Df=function(u,l,d){if(d.length===0)return[];var h=wt(d.slice(1),function(k,R){return k.map(function($){return u(R,$)})}),y=d[d.length-1].map(function(k){return l(d.length-1,k)});return h.concat([y])},$T=function(u){return-u},o0={delta:sn,positions:function(u){return Df(a0,Ul,u)},edge:r0},NT={delta:sn,edge:y2,positions:function(u){return Df(Gg,Kg,u)}},w2={delta:$T,edge:ac,positions:function(u){return Df(Kg,Gg,u)}},Xg=Ns(NT,w2),Rm={delta:function(u,l){return Xg(l).delta(u,l)},positions:function(u,l){return Xg(l).positions(u,l)},edge:function(u){return Xg(u).edge(u)}},C2={unsupportedLength:["em","ex","cap","ch","ic","rem","lh","rlh","vw","vh","vi","vb","vmin","vmax","cm","mm","Q","in","pc","pt","px"],fixed:["px","pt"],relative:["%"],empty:[""]},Wl=function(){var u="[0-9]+",l="[+-]?"+u,d="[eE]"+l,h="\\.",y=function($){return"(?:"+$+")?"},k=["Infinity",u+h+y(u)+y(d),h+u+y(d),u+y(d)].join("|"),R="[+-]?(?:"+k+")";return new RegExp("^("+R+")(.*)$")}(),_m=function(u,l){return _(l,function(d){return _(C2[d],function(h){return u===h})})},i0=function(u,l){var d=Y.from(Wl.exec(u));return d.bind(function(h){var y=Number(h[1]),k=h[2];return _m(k,l)?Y.some({value:y,unit:k}):Y.none()})},S2=/(\d+(\.\d+)?)%/,IT=/(\d+(\.\d+)?)px|em/,zT=to("col"),vi=function(u,l,d){var h=ll(u).getOrThunk(function(){return Pa(Ds(u))});return l(u)/d(h)*100},jl=function(u,l){Po(u,"width",l+"px")},Hc=function(u,l){Po(u,"width",l+"%")},cv=function(u,l){Po(u,"height",l+"px")},x2=function(u){return Dm(u)+"px"},Vc=function(u,l,d,h){var y=so(u).map(function(k){var R=d(k);return Math.floor(l/100*R)}).getOr(l);return h(u,y),y},fd=function(u,l,d,h){var y=parseFloat(u);return _r(u,"%")&&Cr(l)!=="table"?Vc(l,y,d,h):y},u0=function(u){var l=x2(u);return l?fd(l,u,es,cv):es(u)},s0=function(u,l,d){var h=d(u),y=xi(u,l);return h/y},Rf=function(u,l){return Ju(u,l).orThunk(function(){return ua(u,l).map(function(d){return d+"px"})})},pc=function(u){return Rf(u,"width")},su=function(u){return Rf(u,"height")},Pp=function(u){return vi(u,Lc,sa)},c0=function(u){return zT(u)?Lc(u):pl(u)},vd=function(u){return s0(u,"rowspan",u0)},Bm=function(u){var l=pc(u);return l.bind(function(d){return i0(d,["fixed","relative","empty"])})},Mm=function(u,l,d){Po(u,"width",l+d)},FT=function(u){return Lc(u)+"px"},Pm=function(u){return vi(u,Lc,sa)+"%"},l0=function(u){return pc(u).exists(function(l){return S2.test(l)})},LT=function(u){return pc(u).exists(function(l){return IT.test(l)})},Do=function(u){return pc(u).isNone()},$p=Fe(S2),lv=to("col"),f0=function(u){return pc(u).getOrThunk(function(){return c0(u)+"px"})},v0=function(u){return su(u).getOrThunk(function(){return vd(u)+"px"})},bc=function(u){return wt(hr.justColumns(u),function(l){return Y.from(l.element)})},oc=function(u){var l=Ln().browser,d=l.isChrome()||l.isFirefox();return lv(u)?d:!0},dd=function(u,l,d,h,y,k){return u.filter(h).fold(function(){return k($s(d,l))},function(R){return y(R)})},fv=function(u,l,d,h){var y=ld(u),k=hr.hasColumns(u)?bc(u):y,R=[Y.some(Rm.edge(l))].concat(wt(Rm.positions(y,l),function(j){return j.map(function(ne){return ne.x})})),$=Ee(ud);return wt(k,function(j,ne){return dd(j,ne,R,$,function(he){if(oc(he))return d(he);var Ge=Op(y[ne],sn);return dd(Ge,ne,R,$,function(yt){return h(Y.some(Lc(yt)))},h)},h)})},Np=function(u){return u.map(function(l){return l+"px"}).getOr("")},Yg=function(u,l){return fv(u,l,f0,Np)},d0=function(u,l,d){return fv(u,l,Pp,function(h){return h.fold(function(){return d.minCellWidth()},function(y){return y/d.pixelWidth()*100})})},md=function(u,l,d){return fv(u,l,c0,function(h){return h.getOrThunk(d.minCellWidth)})},Ip=function(u,l,d,h,y){var k=sv(u),R=[Y.some(d.edge(l))].concat(wt(d.positions(k,l),function($){return $.map(function(j){return j.y})}));return wt(k,function($,j){return dd($,j,R,Ee(Ap),h,y)})},HT=function(u,l,d){return Ip(u,l,d,vd,function(h){return h.getOrThunk($o)})},m0=function(u,l,d){return Ip(u,l,d,v0,Np)},ic=function(u,l){return function(){return er(u)?l(u):parseFloat(Ju(u,"width").getOr("0"))}},Is=function(u){var l=ic(u,Lc),d=Fe(0),h=function(y,k){return md(y,u,k)};return{width:l,pixelWidth:l,getWidths:h,getCellDelta:d,singleColumnWidth:Fe([0]),minCellWidth:d,setElementWidth:We,adjustTableWidth:We,isRelative:!0,label:"none"}},$m=function(u){var l=ic(u,function(j){return parseFloat(Pm(j))}),d=ic(u,Lc),h=function(j){return j/d()*100},y=function(j,ne){return[100-j]},k=function(){return yf()/d()*100},R=function(j){var ne=l(),he=j/100*ne,Ge=ne+he;Hc(u,Ge)},$=function(j,ne){return d0(j,u,ne)};return{width:l,pixelWidth:d,getWidths:$,getCellDelta:h,singleColumnWidth:y,minCellWidth:k,setElementWidth:Hc,adjustTableWidth:R,isRelative:!0,label:"percent"}},Uc=function(u){var l=ic(u,Lc),d=sn,h=function(R,$){var j=Math.max(yf(),R+$);return[j-R]},y=function(R){var $=l()+R;jl(u,$)},k=function(R,$){return md(R,u,$)};return{width:l,pixelWidth:l,getWidths:k,getCellDelta:d,singleColumnWidth:h,minCellWidth:yf,setElementWidth:jl,adjustTableWidth:y,isRelative:!1,label:"pixel"}},Iu=function(u,l){var d=$p().exec(l);return d!==null?$m(u):Uc(u)},zp=function(u){var l=pc(u);return l.fold(function(){return Is(u)},function(d){return Iu(u,d)})},_f={getTableSize:zp,pixelSize:Uc,percentageSize:$m,noneSize:Is},T2=function(u,l,d,h,y,k){return{minRow:u,minCol:l,maxRow:d,maxCol:h,allCells:y,selectedCells:k}},cu=function(u,l){var d=u.grid.columns,h=u.grid.rows,y=h,k=d,R=0,$=0,j=[],ne=[];return fa(u.access,function(he){if(j.push(he),l(he)){ne.push(he);var Ge=he.row,yt=Ge+he.rowspan-1,at=he.column,Ke=at+he.colspan-1;Ge<y?y=Ge:yt>R&&(R=yt),at<k?k=at:Ke>$&&($=Ke)}}),T2(y,k,R,$,j,ne)},k2=function(u,l,d){var h=u[d].element,y=st.fromTag("td");Ao(y,st.fromTag("br"));var k=l?Ao:uu;k(h,y)},Jg=function(u,l,d,h){for(var y=l.grid.columns,k=l.grid.rows,R=0;R<k;R++)for(var $=!1,j=0;j<y;j++)if(!(R<d.minRow||R>d.maxRow||j<d.minCol||j>d.maxCol)){var ne=hr.getAt(l,R,j).filter(h).isNone();ne?k2(u,$,R):$=!0}},$r=function(u,l,d,h){fa(d.columns,function(R){(R.column<l.minCol||R.column>l.maxCol)&&gs(R.element)});var y=or(wf(u,"tr"),function(R){return R.dom.childElementCount===0});Vt(y,gs),(l.minCol===l.maxCol||l.minRow===l.maxRow)&&Vt(wf(u,"th,td"),function(R){Xa(R,"rowspan"),Xa(R,"colspan")}),Xa(u,Qo),Xa(u,"data-snooker-col-series");var k=_f.getTableSize(u);k.adjustTableWidth(h)},Vn=function(u,l,d,h){if(h.minCol===0&&l.grid.columns===h.maxCol+1)return 0;var y=md(l,u,d),k=J(y,function(ne,he){return ne+he},0),R=J(y.slice(h.minCol,h.maxCol+1),function(ne,he){return ne+he},0),$=R/k*d.pixelWidth(),j=$-d.pixelWidth();return d.getCellDelta(j)},Bf=function(u,l){var d=function(yt){return Ka(yt.element,l)},h=ba(u),y=Dp(h),k=_f.getTableSize(u),R=hr.generate(y),$=cu(R,d),j="th:not("+l+"),td:not("+l+")",ne=Cf(h,"th,td",function(yt){return Ka(yt,j)});Vt(ne,gs),Jg(y,R,$,d);var he=hr.fromTable(u),Ge=Vn(u,he,k,$);return $r(h,$,R,Ge),h},g0="\xA0",Wc=function(u){return Cr(u)==="img"?1:m2(u).fold(function(){return w(u).length},function(l){return l.length})},E2=function(u){return m2(u).filter(function(l){return l.trim().length!==0||l.indexOf(g0)>-1}).isSome()},Ga=["img","br"],h0=function(u){var l=E2(u);return l||Ir(Ga,Cr(u))},Zg=function(u){return Ig(u,h0)},Fp=function(u){return it(u,h0)},it=function(u,l){var d=function(h){for(var y=w(h),k=y.length-1;k>=0;k--){var R=y[k];if(l(R))return Y.some(R);var $=d(R);if($.isSome())return $}return Y.none()};return d(u)},Qg={scope:["row","col"]},Nm=function(u){return function(){var l=st.fromTag("td",u.dom);return Ao(l,st.fromTag("br",u.dom)),l}},Im=function(u){return function(){return st.fromTag("col",u.dom)}},gd=function(u){return function(){return st.fromTag("colgroup",u.dom)}},hd=function(u){return function(){return st.fromTag("tr",u.dom)}},vv=function(u,l,d){var h=hc(u,l);return fa(d,function(y,k){y===null?Xa(h,k):Si(h,k,y)}),h},jo=function(u){return u},Za=function(u,l,d){var h=Zg(u);return h.map(function(y){var k=d.join(","),R=Ci(y,k,function($){return wr($,u)});return la(R,function($,j){var ne=Fc(j);return Xa(ne,"contenteditable"),Ao($,ne),ne},l)}).getOr(l)},Mf=function(u,l){fa(Qg,function(d,h){return ua(u,h).filter(function(y){return Ir(d,y)}).each(function(y){return Si(l,h,y)})})},lo=function(u,l,d){var h=function(R,$){ov(R.element,$),ou($,"height"),R.colspan!==1&&ou($,"width")},y=function(R){var $=st.fromTag(Cr(R.element),l.dom),j=d.getOr(["strong","em","b","i","span","font","h1","h2","h3","h4","h5","h6","p","div"]),ne=j.length>0?Za(R.element,$,j):$;return Ao(ne,st.fromTag("br")),h(R,$),Mf(R.element,$),u(R.element,$),$},k=function(R){var $=st.fromTag(Cr(R.element),l.dom);return h(R,$),u(R.element,$),$};return{col:k,colgroup:gd(l),row:hd(l),cell:y,replace:vv,colGap:Im(l),gap:Nm(l)}},zs=function(u){return{col:Im(u),colgroup:gd(u),row:hd(u),cell:Nm(u),replace:jo,colGap:Im(u),gap:Nm(u)}},p0=function(u,l){var d=l||document,h=d.createElement("div");return h.innerHTML=u,w(st.fromDom(h))},jc=function(u){return wt(u,st.fromDom)},Lp=function(u){return u.nodeName.toLowerCase()},bs=function(u){return st.fromDom(u.getBody())},yl=function(u){return u.getBoundingClientRect().width},Pf=function(u){return u.getBoundingClientRect().height},Gi=function(u){return function(l){return wr(l,bs(u))}},Hp=function(u){return u?u.replace(/px$/,""):""},ku=function(u){return/^\d+(\.\d+)?$/.test(u)?u+"px":u},Ki=function(u){Xa(u,"data-mce-style");var l=function(d){return Xa(d,"data-mce-style")};Vt(Sf(u),l),Vt(ml(u),l),Vt(ds(u),l)},zm=function(u,l){var d=u.dom.getStyle(l,"width")||u.dom.getAttrib(l,"width");return Y.from(d).filter(Tr)},VT=function(u){return/^(\d+(\.\d+)?)%$/.test(u)},eh=function(u){return/^(\d+(\.\d+)?)px$/.test(u)},di=function(u){return st.fromDom(u.selection.getStart())},on=function(u){return st.fromDom(u.selection.getEnd())},yc=function(u){return _p(u.get(),Fe([]),sn,bt)},UT=function(u){var l=function(y,k){return ua(y,k).exists(function(R){return parseInt(R,10)>1})},d=function(y){return l(y,"rowspan")||l(y,"colspan")},h=yc(u);return h.length>0&&Mt(h,d)?Y.some(h):Y.none()},O2=function(u,l,d){return _p(l.get(),Y.none,function(h){return h.length<=1?Y.none():qi(u,d.firstSelectedSelector,d.lastSelectedSelector).map(function(y){return{bounds:y,cells:h}})},Y.none)},Fm="data-mce-selected",A2="td["+Fm+"],th["+Fm+"]",th="["+Fm+"]",ql="data-mce-first-selected",pd="td["+ql+"],th["+ql+"]",b0="data-mce-last-selected",wl="td["+b0+"],th["+b0+"]",WT=th,bd={selected:Fm,selectedSelector:A2,firstSelected:ql,firstSelectedSelector:pd,lastSelected:b0,lastSelectedSelector:wl},Gl=function(u){return{element:u,mergable:Y.none(),unmergable:Y.none(),selection:[u]}},dv=function(u,l,d){return{element:d,mergable:O2(l,u,bd),unmergable:UT(u),selection:yc(u)}},yd=function(u,l,d){return{element:u,clipboard:l,generators:d}},D2=function(u,l,d,h){return{selection:yc(u),clipboard:d,generators:h}},ei=function(u){return so(u).bind(function(l){return Wo(l,bd.firstSelectedSelector)}).fold(Fe(u),function(l){return l[0]})},mv=function(u){return function(l,d){var h=Cr(l),y=h==="col"||h==="colgroup"?ei(l):l;return Eo(y,u,d)}},wd=mv("th,td,caption"),Fs=mv("th,td"),Xi=function(u){return yc(u)},jT=function(u,l){var d=Fs(u),h=d.bind(function(y){return so(y)}).map(function(y){return ds(y)});return Bs(d,h,function(y,k){return or(k,function(R){return _(jc(R.dom.cells),function($){return Qs($,l)==="1"||wr($,y)})})}).getOr([])},qT=function(u){return so(u[0]).map(function(l){var d=Bf(l,WT);return Ki(d),[d]})},GT=function(u,l){return wt(l,function(d){return u.selection.serializer.serialize(d.dom,{})}).join("")},R2=function(u){return wt(u,function(l){return l.dom.innerText}).join("")},qc=function(u,l,d){u.on("BeforeGetContent",function(h){var y=function(k){h.preventDefault(),qT(k).each(function(R){h.content=h.format==="text"?R2(R):GT(u,R)})};h.selection===!0&&_p(l.get(),We,y,We)}),u.on("BeforeSetContent",function(h){if(h.selection===!0&&h.paste===!0){var y=Xi(l);pn(y).each(function(k){so(k).each(function(R){var $=or(p0(h.content),function(yt){return Cr(yt)!=="meta"}),j=to("table");if($.length===1&&j($[0])){h.preventDefault();var ne=st.fromDom(u.getDoc()),he=zs(ne),Ge=yd(k,$[0],he);d.pasteCells(R,Ge).each(function(){u.focus()})}})})}})},Vp=Hl.generate([{none:[]},{only:["index"]},{left:["index","next"]},{middle:["prev","index","next"]},{right:["prev","index"]}]),Lm=Dn({},Vp),KT=function(u,l){return u.length===0?Lm.none():u.length===1?Lm.only(0):l===0?Lm.left(0,1):l===u.length-1?Lm.right(l-1,l):l>0&&l<u.length-1?Lm.middle(l-1,l,l+1):Lm.none()},y0=function(u,l,d,h,y){var k=u.slice(0),R=KT(u,l),$=Fe(wt(k,Fe(0))),j=function(yt){return h.singleColumnWidth(k[yt],d)},ne=function(yt,at){return y.calcLeftEdgeDeltas(k,yt,at,d,h.minCellWidth(),h.isRelative)},he=function(yt,at,Ke){return y.calcMiddleDeltas(k,yt,at,Ke,d,h.minCellWidth(),h.isRelative)},Ge=function(yt,at){return y.calcRightEdgeDeltas(k,yt,at,d,h.minCellWidth(),h.isRelative)};return R.fold($,j,ne,he,Ge)},_2=function(u,l,d){for(var h=0,y=u;y<l;y++)h+=d[y]!==void 0?d[y]:0;return h},w0=function(u,l){var d=hr.justCells(u);return wt(d,function(h){var y=_2(h.column,h.column+h.colspan,l);return{element:h.element,width:y,colspan:h.colspan}})},C0=function(u,l){var d=hr.justColumns(u);return wt(d,function(h,y){return{element:h.element,width:l[y],colspan:h.colspan}})},gv=function(u,l){var d=hr.justCells(u);return wt(d,function(h){var y=_2(h.row,h.row+h.rowspan,l);return{element:h.element,height:y,rowspan:h.rowspan}})},hv=function(u,l){return wt(u.all,function(d,h){return{element:d.element,height:l[h]}})},Wa=function(u){return la(u,function(l,d){return l+d},0)},S0=function(u,l){return hr.hasColumns(u)?C0(u,l):w0(u,l)},wc=function(u,l,d){var h=S0(u,l);Vt(h,function(y){d.setElementWidth(y.element,y.width)})},x0=function(u,l,d,h,y){var k=hr.fromTable(u),R=y.getCellDelta(l),$=y.getWidths(k,y),j=d===k.grid.columns-1,ne=h.clampTableDelta($,d,R,y.minCellWidth(),j),he=y0($,d,ne,y,h),Ge=wt(he,function(yt,at){return yt+$[at]});wc(k,Ge,y),h.resizeTable(y.adjustTableWidth,ne,j)},XT=function(u,l,d,h){var y=hr.fromTable(u),k=HT(y,u,h),R=wt(k,function(he,Ge){return d===Ge?Math.max(l+he,$o()):he}),$=gv(y,R),j=hv(y,R);Vt(j,function(he){cv(he.element,he.height)}),Vt($,function(he){cv(he.element,he.height)});var ne=Wa(R);cv(u,ne)},YT=function(u,l,d,h,y){var k=hr.generate(l),R=h.getWidths(k,h),$=h.pixelWidth(),j=y.calcRedestributedWidths(R,$,d.pixelDelta,h.isRelative),ne=j.newSizes,he=j.delta;wc(k,ne,h),h.adjustTableWidth(he)},ts=function(u,l,d,h){var y=hr.generate(l),k=h.getWidths(y,h);wc(y,k,h)},Gc=function(u){return wt(u,Fe(0))},T0=function(u,l,d,h,y){return y(u.slice(0,l)).concat(h).concat(y(u.slice(d)))},nh=function(u){return function(l,d,h,y){if(u(h)){var k=Math.max(y,l[d]-Math.abs(h)),R=Math.abs(k-l[d]);return h>=0?R:-R}else return h}},Hm=nh(function(u){return u<0}),k0=nh(pt),B2=function(){var u=function($,j,ne,he,Ge){var yt=Hm($,j,he,Ge);return T0($,j,ne+1,[yt,0],Gc)},l=function($,j,ne,he){var Ge=(100+ne)/100,yt=Math.max(he,($[j]+ne)/Ge);return wt($,function(at,Ke){var Ot=Ke===j?yt:at/Ge;return Ot-at})},d=function($,j,ne,he,Ge,yt){return yt?l($,j,he,Ge):u($,j,ne,he,Ge)},h=function($,j,ne,he,Ge,yt,at){return d($,ne,he,Ge,yt,at)},y=function($,j){return $(j)},k=function($,j,ne,he,Ge,yt){if(yt)return l($,ne,he,Ge);var at=Hm($,ne,he,Ge);return Gc($.slice(0,ne)).concat([at])},R=function($,j,ne,he){if(he){var Ge=j+ne,yt=Ge/j,at=wt($,function(Ke){return Ke/yt});return{delta:yt*100-100,newSizes:at}}else return{delta:ne,newSizes:$}};return{resizeTable:y,clampTableDelta:Hm,calcLeftEdgeDeltas:d,calcMiddleDeltas:h,calcRightEdgeDeltas:k,calcRedestributedWidths:R}},pv=function(){var u=function(R,$,j,ne,he){var Ge=ne>=0?j:$,yt=k0(R,Ge,ne,he);return T0(R,$,j+1,[yt,-yt],Gc)},l=function(R,$,j,ne,he,Ge){return u(R,j,ne,he,Ge)},d=function(R,$,j){j&&R($)},h=function(R,$,j,ne,he,Ge){if(Ge)return Gc(R);var yt=ne/R.length;return wt(R,Fe(yt))},y=function(R,$,j,ne,he){if(he){if(j>=0)return j;var Ge=J(R,function(yt,at){return yt+at-ne},0);return Math.max(-Ge,j)}else return Hm(R,$,j,ne)},k=function(R,$,j,ne){return{delta:0,newSizes:R}};return{resizeTable:d,clampTableDelta:y,calcLeftEdgeDeltas:u,calcMiddleDeltas:l,calcRightEdgeDeltas:h,calcRedestributedWidths:k}},E0=function(u,l){var d=Y.from(u.dom.documentElement).map(st.fromDom).getOr(u);return{parent:Fe(d),view:Fe(u),origin:Fe(Ia(0,0)),isResizable:l}},O0=function(u,l,d){var h=function(){return Af(l)};return{parent:Fe(l),view:Fe(u),origin:h,isResizable:d}},Up=function(u,l,d){return{parent:Fe(l),view:Fe(u),origin:Fe(Ia(0,0)),isResizable:d}},Wp={only:E0,detached:O0,body:Up},Cd=Hl.generate([{invalid:["raw"]},{pixels:["value"]},{percent:["value"]}]),M2=function(u,l,d){var h=d.substring(0,d.length-u.length),y=parseFloat(h);return h===y.toString()?l(y):Cd.invalid(d)},Yi=function(u){return _r(u,"%")?M2("%",Cd.percent,u):_r(u,"px")?M2("px",Cd.pixels,u):Cd.invalid(u)},Cl=Dn(Dn({},Cd),{from:Yi}),mi=function(u,l){return wt(u,function(d){var h=Cl.from(d);return h.fold(function(){return d},function(y){var k=y/l*100;return k+"%"},function(y){return y+"%"})})},ns=function(u,l,d){var h=d/l;return wt(u,function(y){var k=Cl.from(y);return k.fold(function(){return y},function(R){return R*h+"px"},function(R){return R/100*d+"px"})})},$f=function(u,l){var d=u.fold(function(){return Fe("")},function(h){var y=h/l;return Fe(y+"px")},function(){var h=100/l;return Fe(h+"%")});return pa(l,d)},Kl=function(u,l,d){return u.fold(function(){return l},function(h){return ns(l,d,h)},function(h){return mi(l,d)})},A0=function(u,l,d){var h=Cl.from(d),y=Mt(u,function(k){return k==="0px"})?$f(h,u.length):Kl(h,u,l);return JT(y)},Ls=function(u,l){return u.length===0?l:la(u,function(d,h){return Cl.from(h).fold(Fe(0),sn,sn)+d},0)},Vm=function(u,l){var d=Math.floor(u);return{value:d+l,remainder:u-d}},P2=function(u,l){return Cl.from(u).fold(Fe(u),function(d){return d+l+"px"},function(d){return d+l+"%"})},JT=function(u){if(u.length===0)return u;var l=la(u,function(h,y){var k=Cl.from(y).fold(function(){return{value:y,remainder:0}},function(R){return Vm(R,"px")},function(R){return{value:R+"%",remainder:0}});return{output:[k.value].concat(h.output),remainder:h.remainder+k.remainder}},{output:[],remainder:0}),d=l.output;return d.slice(0,d.length-1).concat([P2(d[d.length-1],Math.round(l.remainder))])},ZT=Cl.from,QT=function(u,l,d){Vt(l,function(h){var y=u.slice(h.column,h.colspan+h.column),k=Ls(y,yf());Po(h.element,"width",k+d)})},ek=function(u,l,d){Vt(l,function(h,y){var k=Ls([u[y]],yf());Po(h.element,"width",k+d)})},D0=function(u,l,d,h){Vt(d,function(y){var k=u.slice(y.row,y.rowspan+y.row),R=Ls(k,$o());Po(y.element,"height",R+h)}),Vt(l,function(y,k){Po(y.element,"height",u[k])})},jp=function(u){return ZT(u).fold(Fe("px"),Fe("px"),Fe("%"))},uc=function(u,l,d){var h=hr.fromTable(u),y=h.all,k=hr.justCells(h),R=hr.justColumns(h);l.each(function($){var j=jp($),ne=Lc(u),he=Yg(h,u),Ge=A0(he,ne,$);hr.hasColumns(h)?ek(Ge,R,j):QT(Ge,k,j),Po(u,"width",$)}),d.each(function($){var j=jp($),ne=es(u),he=m0(h,u,o0),Ge=A0(he,ne,$);D0(Ge,y,k,j),Po(u,"height",$)})},$2=l0,bv=LT,rh=Do,Sl=function(u){var l=hr.fromTable(u);return l.grid},Cc=function(u){var l=[],d=function(k){if(k===void 0)throw new Error("Event bind error: undefined handler");l.push(k)},h=function(k){l=or(l,function(R){return R!==k})},y=function(){for(var k=[],R=0;R<arguments.length;R++)k[R]=arguments[R];var $={};Vt(u,function(j,ne){$[j]=k[ne]}),Vt(l,function(j){j($)})};return{bind:d,unbind:h,trigger:y}},ti=function(u){var l=Ku(u,function(h){return{bind:h.bind,unbind:h.unbind}}),d=Ku(u,function(h){return h.trigger});return{registry:l,trigger:d}},sc=function(u,l){var d=null,h=function(){Nn(d)||(clearTimeout(d),d=null)},y=function(){for(var k=[],R=0;R<arguments.length;R++)k[R]=arguments[R];h(),d=setTimeout(function(){d=null,u.apply(null,k)},l)};return{cancel:h,throttle:y}},yv=function(u){return u.slice(0).sort()},R0=function(u,l){throw new Error("All required keys ("+yv(u).join(", ")+") were not specified. Specified keys were: "+yv(l).join(", ")+".")},vr=function(u){throw new Error("Unsupported keys for object: "+yv(u).join(", "))},ah=function(u,l){if(!vn(l))throw new Error("The "+u+" fields must be an array. Was: "+l+".");Vt(l,function(d){if(!vt(d))throw new Error("The value "+d+" in the "+u+" fields was not a string.")})},tk=function(u,l){throw new Error("All values need to be of type: "+l+". Keys ("+yv(u).join(", ")+") were not.")},qp=function(u){var l=yv(u),d=dt(l,function(h,y){return y<l.length-1&&h===l[y+1]});d.each(function(h){throw new Error("The field: "+h+" occurs more than once in the combined fields: ["+l.join(", ")+"].")})},Gp=function(u,l){return nk(u,l,{validate:zt,label:"function"})},nk=function(u,l,d){if(l.length===0)throw new Error("You must specify at least one required field.");return ah("required",l),qp(l),function(h){var y=Jo(h),k=Mt(l,function($){return Ir(y,$)});k||R0(l,y),u(l,y);var R=or(l,function($){return!d.validate(h[$],$)});return R.length>0&&tk(R,d.label),h}},gi=function(u,l){var d=or(l,function(h){return!Ir(u,h)});d.length>0&&vr(d)},zu=function(u){return Gp(gi,u)},Qa=zu(["compare","extract","mutate","sink"]),N2=zu(["element","start","stop","destroy"]),_0=zu(["forceDrop","drop","move","delayDrop"]),Sd=function(){var u=Y.none(),l=function(){u=Y.none()},d=function(k,R){var $=u.map(function(j){return k.compare(j,R)});return u=Y.some(R),$},h=function(k,R){var $=R.extract(k);$.each(function(j){var ne=d(R,j);ne.each(function(he){y.trigger.move(he)})})},y=ti({move:Cc(["info"])});return{onEvent:h,reset:l,events:y.registry}},I2=function(){var u=ti({move:Cc(["info"])});return{onEvent:We,reset:We,events:u.registry}},xd=function(){var u=I2(),l=Sd(),d=u,h=function(){d.reset(),d=l},y=function(){d.reset(),d=u},k=function($,j){d.onEvent($,j)},R=function(){return d===l};return{on:h,off:y,isOn:R,onEvent:k,events:l.events}},Um=function(u,l,d){var h=!1,y=ti({start:Cc([]),stop:Cc([])}),k=xd(),R=function(){at.stop(),k.isOn()&&(k.off(),y.trigger.stop())},$=sc(R,200),j=function(Ot){at.start(Ot),k.on(),y.trigger.start()},ne=function(Ot){$.cancel(),k.onEvent(Ot,l)};k.events.move.bind(function(Ot){l.mutate(u,Ot.info)});var he=function(){h=!0},Ge=function(){h=!1},yt=function(Ot){return function(){for(var Et=[],kn=0;kn<arguments.length;kn++)Et[kn]=arguments[kn];h&&Ot.apply(null,Et)}},at=l.sink(_0({forceDrop:R,drop:yt(R),move:yt(ne),delayDrop:yt($.throttle)}),d),Ke=function(){at.destroy()};return{element:at.element,go:j,on:he,off:Ge,destroy:Ke,events:y.registry}},z2=function(u,l,d,h,y,k,R){return{target:u,x:l,y:d,stop:h,prevent:y,kill:k,raw:R}},Xl=function(u){var l=st.fromDom(ln(u).getOr(u.target)),d=function(){return u.stopPropagation()},h=function(){return u.preventDefault()},y=de(h,d);return z2(l,u.clientX,u.clientY,d,h,y,u)},rs=function(u,l){return function(d){u(d)&&l(Xl(d))}},rk=function(u,l,d,h,y){var k=rs(d,h);return u.dom.addEventListener(l,k,y),{unbind:ze(Td,u,l,k,y)}},ak=function(u,l,d,h){return rk(u,l,d,h,!1)},Td=function(u,l,d,h){u.dom.removeEventListener(l,d,h)},B0=pt,wv=function(u,l,d){return ak(u,l,B0,d)},kd=Xl,M0=function(u,l){var d=Qs(u,l);return d===void 0||d===""?[]:d.split(" ")},ok=function(u,l,d){var h=M0(u,l),y=h.concat([d]);return Si(u,l,y.join(" ")),!0},ik=function(u,l,d){var h=or(M0(u,l),function(y){return y!==d});return h.length>0?Si(u,l,h.join(" ")):Xa(u,l),!1},Ed=function(u){return u.dom.classList!==void 0},Od=function(u){return M0(u,"class")},Kp=function(u,l){return ok(u,"class",l)},Er=function(u,l){return ik(u,"class",l)},za=function(u,l){Ed(u)?u.dom.classList.add(l):Kp(u,l)},Ad=function(u){var l=Ed(u)?u.dom.classList:Od(u);l.length===0&&Xa(u,"class")},Cv=function(u,l){if(Ed(u)){var d=u.dom.classList;d.remove(l)}else Er(u,l);Ad(u)},_a=function(u,l){return Ed(u)&&u.dom.classList.contains(l)},Xp=function(u){var l=u.replace(/\./g,"-"),d=function(h){return l+"-"+h};return{resolve:d}},Yp=Xp("ephox-dragster"),Ji=Yp.resolve,Sv=function(u){var l=Dn({layerClass:Ji("blocker")},u),d=st.fromTag("div");Si(d,"role","presentation"),zl(d,{position:"fixed",left:"0px",top:"0px",width:"100%",height:"100%"}),za(d,Ji("blocker")),za(d,l.layerClass);var h=Fe(d),y=function(){gs(d)};return{element:h,destroy:y}},Jp=function(u,l){return Ia(l.left-u.left,l.top-u.top)},uk=function(u){return Y.some(Ia(u.x,u.y))},sk=function(u,l){u.mutate(l.left,l.top)},Zp=function(u,l){var d=Sv(l),h=wv(d.element(),"mousedown",u.forceDrop),y=wv(d.element(),"mouseup",u.drop),k=wv(d.element(),"mousemove",u.move),R=wv(d.element(),"mouseout",u.delayDrop),$=function(){d.destroy(),y.unbind(),k.unbind(),R.unbind(),h.unbind()},j=function(he){Ao(he,d.element())},ne=function(){gs(d.element())};return N2({element:d.element,start:j,stop:ne,destroy:$})},Wm=Qa({compare:Jp,extract:uk,sink:Zp,mutate:sk}),P0=function(u,l){l===void 0&&(l={});var d=l.mode!==void 0?l.mode:Wm;return Um(u,d,l)},Qp=function(u){return Eo(u,"[contenteditable]")},jm=function(u,l){return l===void 0&&(l=!1),!Ln().browser.isIE()&&er(u)?u.dom.isContentEditable:Qp(u).fold(Fe(l),function(d){return e1(d)==="true"})},e1=function(u){return u.dom.contentEditable},ys=Xp("ephox-snooker"),Dd=ys.resolve,Yl=function(){var u=ti({drag:Cc(["xDelta","yDelta"])}),l=function(d,h){u.trigger.drag(d,h)};return{mutate:l,events:u.registry}},ws=function(){var u=ti({drag:Cc(["xDelta","yDelta","target"])}),l=Y.none(),d=Yl();d.events.drag.bind(function(k){l.each(function(R){u.trigger.drag(k.xDelta,k.yDelta,R)})});var h=function(k){l=Y.some(k)},y=function(){return l};return{assign:h,get:y,mutate:d.mutate,events:u.registry}},F2=function(u,l,d,h,y){var k=st.fromTag("div");return zl(k,{position:"absolute",left:l-h/2+"px",top:d+"px",height:y+"px",width:h+"px"}),Zo(k,{"data-column":u,role:"presentation"}),k},lu=function(u,l,d,h,y){var k=st.fromTag("div");return zl(k,{position:"absolute",left:l+"px",top:d-y/2+"px",height:y+"px",width:h+"px"}),Zo(k,{"data-row":u,role:"presentation"}),k},$0=Dd("resizer-bar"),Nf=Dd("resizer-rows"),N0=Dd("resizer-cols"),I0=7,L2=function(u,l){return Sr(u.all,function(d,h){return l(d.element)?[h]:[]})},t1=function(u,l){var d=[];return pa(u.grid.columns,function(h){var y=hr.getColumnAt(u,h).map(function(k){return k.element});y.forall(l)&&d.push(h)}),or(d,function(h){var y=hr.filterItems(u,function(k){return k.column===h});return Mt(y,function(k){return l(k.element)})})},qm=function(u){var l=Rs(u.parent(),"."+$0);Vt(l,gs)},z0=function(u,l,d){var h=u.origin();Vt(l,function(y){y.each(function(k){var R=d(h,k);za(R,$0),Ao(u.parent(),R)})})},ck=function(u,l,d,h){z0(u,l,function(y,k){var R=F2(k.col,k.x-y.left,d.top-y.top,I0,h);return za(R,N0),R})},lk=function(u,l,d,h){z0(u,l,function(y,k){var R=lu(k.row,d.left-y.left,k.y-y.top,h,I0);return za(R,Nf),R})},Eu=function(u,l,d,h,y){var k=Af(d),R=l.isResizable,$=h.length>0?o0.positions(h,d):[],j=$.length>0?L2(u,R):[],ne=or($,function(at,Ke){return _(j,function(Ot){return Ke===Ot})});lk(l,ne,k,Tu(d));var he=y.length>0?Rm.positions(y,d):[],Ge=he.length>0?t1(u,R):[],yt=or(he,function(at,Ke){return _(Ge,function(Ot){return Ke===Ot})});ck(l,yt,k,bl(d))},Ei=function(u,l){if(qm(u),u.isResizable(l)){var d=hr.fromTable(l),h=sv(d),y=ld(d);Eu(d,u,l,h,y)}},Fu=function(u,l){var d=Rs(u.parent(),"."+$0);Vt(d,l)},Zi=function(u){Fu(u,function(l){Po(l,"display","none")})},Cs=function(u){Fu(u,function(l){Po(l,"display","block")})},fu=function(u){return _a(u,Nf)},n1=function(u){return _a(u,N0)},xv=Dd("resizer-bar-dragging"),Tv=function(u){var l=ws(),d=P0(l,{}),h=Y.none(),y=function(Ke,Ot){return Y.from(Qs(Ke,Ot))};l.events.drag.bind(function(Ke){y(Ke.target,"data-row").each(function(Ot){var Et=bf(Ke.target,"top");Po(Ke.target,"top",Et+Ke.yDelta+"px")}),y(Ke.target,"data-column").each(function(Ot){var Et=bf(Ke.target,"left");Po(Ke.target,"left",Et+Ke.xDelta+"px")})});var k=function(Ke,Ot){var Et=bf(Ke,Ot),kn=gc(Ke,"data-initial-"+Ot,0);return Et-kn};d.events.stop.bind(function(){l.get().each(function(Ke){h.each(function(Ot){y(Ke,"data-row").each(function(Et){var kn=k(Ke,"top");Xa(Ke,"data-initial-top"),at.trigger.adjustHeight(Ot,kn,parseInt(Et,10))}),y(Ke,"data-column").each(function(Et){var kn=k(Ke,"left");Xa(Ke,"data-initial-left"),at.trigger.adjustWidth(Ot,kn,parseInt(Et,10))}),Ei(u,Ot)})})});var R=function(Ke,Ot){at.trigger.startAdjust(),l.assign(Ke),Si(Ke,"data-initial-"+Ot,bf(Ke,Ot)),za(Ke,xv),Po(Ke,"opacity","0.2"),d.go(u.parent())},$=wv(u.parent(),"mousedown",function(Ke){fu(Ke.target)&&R(Ke.target,"top"),n1(Ke.target)&&R(Ke.target,"left")}),j=function(Ke){return wr(Ke,u.view())},ne=function(Ke){return Eo(Ke,"table",j).filter(jm)},he=wv(u.view(),"mouseover",function(Ke){ne(Ke.target).fold(function(){er(Ke.target)&&qm(u)},function(Ot){h=Y.some(Ot),Ei(u,Ot)})}),Ge=function(){$.unbind(),he.unbind(),d.destroy(),qm(u)},yt=function(Ke){Ei(u,Ke)},at=ti({adjustHeight:Cc(["table","delta","row"]),adjustWidth:Cc(["table","delta","column"]),startAdjust:Cc([])});return{destroy:Ge,refresh:yt,on:d.on,off:d.off,hideBars:ze(Zi,u),showBars:ze(Cs,u),events:at.registry}},F0=function(u,l,d){var h=o0,y=Rm,k=Tv(u),R=ti({beforeResize:Cc(["table","type"]),afterResize:Cc(["table","type"]),startDrag:Cc([])});return k.events.adjustHeight.bind(function($){var j=$.table;R.trigger.beforeResize(j,"row");var ne=h.delta($.delta,j);XT(j,ne,$.row,h),R.trigger.afterResize(j,"row")}),k.events.startAdjust.bind(function($){R.trigger.startDrag()}),k.events.adjustWidth.bind(function($){var j=$.table;R.trigger.beforeResize(j,"col");var ne=y.delta($.delta,j),he=d(j);x0(j,ne,$.column,l,he),R.trigger.afterResize(j,"col")}),{on:k.on,off:k.off,hideBars:k.hideBars,showBars:k.showBars,destroy:k.destroy,events:R.registry}},H2={create:F0},r1=function(u,l){return u.fire("newrow",{node:l})},If=function(u,l){return u.fire("newcell",{node:l})},kv=function(u,l,d,h,y){u.fire("ObjectResizeStart",{target:l,width:d,height:h,origin:y})},V2=function(u,l,d,h,y){u.fire("ObjectResized",{target:l,width:d,height:h,origin:y})},fk=function(u,l,d,h,y){u.fire("TableSelectionChange",{cells:l,start:d,finish:h,otherCells:y})},a1=function(u){u.fire("TableSelectionClear")},as=function(u,l,d){u.fire("TableModified",Dn(Dn({},d),{table:l}))},o1={structure:!1,style:!0},Oi={structure:!0,style:!1},U2={structure:!0,style:!0},vk="tableprops tabledelete | tableinsertrowbefore tableinsertrowafter tabledeleterow | tableinsertcolbefore tableinsertcolafter tabledeletecol",L0={"border-collapse":"collapse",width:"100%"},W2=pa(5,function(u){var l=u+1+"px";return{title:l,value:l}}),j2=wt(["Solid","Dotted","Dashed","Double","Groove","Ridge","Inset","Outset","None","Hidden"],function(u){return{title:u,value:u.toLowerCase()}}),_t=function(u){var l;if(Km(u)){var d=u.dom,h=(l=d.getParent(u.selection.getStart(),d.isBlock))!==null&&l!==void 0?l:u.getBody(),y=sa(st.fromDom(h));return Dn(Dn({},L0),{width:y+"px"})}else return Ov(u)?Xe(L0,function(k,R){return R!=="width"}):L0},dk={border:"1"},qo="preservetable",H0=function(u){return u.getParam("table_sizing_mode","auto")},Rd=function(u){return u.getParam("table_responsive_width")},i1=function(u){return u.getParam("table_border_widths",W2,"array")},Hs=function(u){return u.getParam("table_border_styles",j2,"array")},Gm=function(u){return u.getParam("table_default_attributes",dk,"object")},oh=function(u){return u.getParam("table_default_styles",_t(u),"object")},u1=function(u){return u.getParam("table_resize_bars",!0,"boolean")},Jl=function(u){return u.getParam("table_tab_navigation",!0,"boolean")},ih=function(u){return u.getParam("table_cell_advtab",!0,"boolean")},s1=function(u){return u.getParam("table_row_advtab",!0,"boolean")},Vs=function(u){return u.getParam("table_advtab",!0,"boolean")},Kc=function(u){return u.getParam("table_appearance_options",!0,"boolean")},zf=function(u){return u.getParam("table_grid",!0,"boolean")},Ai=function(u){return u.getParam("table_style_by_css",!1,"boolean")},V0=function(u){return u.getParam("table_cell_class_list",[],"array")},Ve=function(u){return u.getParam("table_row_class_list",[],"array")},Ev=function(u){return u.getParam("table_class_list",[],"array")},uh=function(u){return H0(u)==="relative"||Rd(u)===!0},Km=function(u){return H0(u)==="fixed"||Rd(u)===!1},Ov=function(u){return H0(u)==="responsive"},xl=function(u){return u.getParam("table_toolbar",vk)},U0=function(u){return u.getParam("table_use_colgroups",!1,"boolean")},W0=function(u){var l="section",d=u.getParam("table_header_type",l,"string"),h=["section","cells","sectionCells","auto"];return Ir(h,d)?d:l},c1=function(u){var l=["preservetable","resizetable"],d=u.getParam("table_column_resizing",qo,"string");return dt(l,function(h){return h===d}).getOr(qo)},l1=function(u){return c1(u)==="preservetable"},q2=function(u){return c1(u)==="resizetable"},j0=function(u){var l=u.getParam("table_clone_elements");return vt(l)?Y.some(l.split(/[ ,]/)):Array.isArray(l)?Y.some(l):Y.none()},q0=function(u){var l=u.getParam("object_resizing",!0);return vt(l)?l==="table":l},G0=function(u){return u.getParam("table_background_color_map",[],"array")},K0=function(u){return u.getParam("table_border_color_map",[],"array")},X0=function(u,l){return uh(u)?_f.percentageSize(l):Km(u)?_f.pixelSize(l):_f.getTableSize(l)},_d=function(u){Xa(u,"width")},mk=function(u){var l=Pm(u);uc(u,Y.some(l),Y.none()),_d(u)},G2=function(u){var l=FT(u);uc(u,Y.some(l),Y.none()),_d(u)},f1=function(u){ou(u,"width");var l=ml(u),d=l.length>0?l:Sf(u);Vt(d,function(h){ou(h,"width"),_d(h)}),_d(u)},sh=mk,v1=G2,d1=f1,m1=function(u){var l=hr.fromTable(u);hr.hasColumns(l)||Vt(Sf(u),function(d){var h=vl(d,"width");Po(d,"width",h),Xa(d,"width")})},Bd=function(){var u=st.fromTag("div");return zl(u,{position:"static",height:"0",width:"0",padding:"0",margin:"0",border:"0"}),Ao(qn(),u),u},K2=function(u,l){return u.inline?Wp.body(bs(u),Bd(),l):Wp.only(st.fromDom(u.getDoc()),l)},No=function(u,l){u.inline&&gs(l.parent())},g1="bar-",Go=function(u){return Qs(u,"data-mce-resize")!=="false"},h1=function(u){var l=Y.none(),d=Y.none(),h=Y.none(),y,k,R=function(Ke){return Ke.nodeName==="TABLE"},$=function(){return d},j=function(){return h.getOr(Wp.only(st.fromDom(u.getBody()),Go))},ne=function(Ke){return X0(u,Ke)},he=function(){return l1(u)?pv():B2()},Ge=function(Ke){return Sl(Ke).columns},yt=function(Ke,Ot,Et){var kn=_r(Ot,"e");if(k===""&&sh(Ke),Et!==y&&k!==""){Po(Ke,"width",k);var Jr=he(),In=ne(Ke),Jn=l1(u)||kn?Ge(Ke)-1:0;x0(Ke,Et-y,Jn,Jr,In)}else if(VT(k)){var Hr=parseFloat(k.replace("%","")),br=Et*Hr/y;Po(Ke,"width",br+"%")}eh(k)&&m1(Ke)},at=function(){d.each(function(Ke){Ke.destroy()}),h.each(function(Ke){No(u,Ke)})};return u.on("init",function(){var Ke=K2(u,Go);if(h=Y.some(Ke),q0(u)&&u1(u)){var Ot=he(),Et=H2.create(Ke,Ot,ne);Et.on(),Et.events.startDrag.bind(function(kn){l=Y.some(u.selection.getRng())}),Et.events.beforeResize.bind(function(kn){var Jr=kn.table.dom;kv(u,Jr,yl(Jr),Pf(Jr),g1+kn.type)}),Et.events.afterResize.bind(function(kn){var Jr=kn.table,In=Jr.dom;Ki(Jr),l.each(function(Jn){u.selection.setRng(Jn),u.focus()}),V2(u,In,yl(In),Pf(In),g1+kn.type),u.undoManager.add()}),d=Y.some(Et)}}),u.on("ObjectResizeStart",function(Ke){var Ot=Ke.target;if(R(Ot)){var Et=st.fromDom(Ot);Vt(u.dom.select(".mce-clonedresizable"),function(kn){u.dom.addClass(kn,"mce-"+c1(u)+"-columns")}),!bv(Et)&&Km(u)?v1(Et):!$2(Et)&&uh(u)&&sh(Et),rh(Et)&&xr(Ke.origin,g1)&&sh(Et),y=Ke.width,k=Ov(u)?"":zm(u,Ot).getOr("")}}),u.on("ObjectResized",function(Ke){var Ot=Ke.target;if(R(Ot)){var Et=st.fromDom(Ot),kn=Ke.origin;xr(kn,"corner-")&&yt(Et,kn,Ke.width),Ki(Et),as(u,Et.dom,o1)}}),u.on("SwitchMode",function(){$().each(function(Ke){u.mode.isReadOnly()?Ke.hideBars():Ke.showBars()})}),{lazyResize:$,lazyWire:j,destroy:at}},Xm=function(u,l){return{element:u,offset:l}},p1=function(u,l,d){return u.property().isText(l)&&u.property().getText(l).trim().length===0||u.property().isComment(l)?d(l).bind(function(h){return p1(u,h,d).orThunk(function(){return Y.some(h)})}):Y.none()},Ym=function(u,l){if(u.property().isText(l))return u.property().getText(l).length;var d=u.property().children(l);return d.length},X2=function(u,l){var d=p1(u,l,u.query().prevSibling).getOr(l);if(u.property().isText(d))return Xm(d,Ym(u,d));var h=u.property().children(d);return h.length>0?X2(u,h[h.length-1]):Xm(d,Ym(u,d))},Y2=X2,gk=Vg(),hk=function(u){return Y2(gk,u)},J2=function(u,l){var d=xi(u,"colspan");if(d===1){var h=Bm(u);h.each(function(y){var k=y.value/2;Mm(u,k,y.unit),Mm(l,k,y.unit)})}},b1=to("th"),y1=function(u){return Mt(u,function(l){return b1(l.element)})},pk=function(u,l){return u&&l?"sectionCells":u?"section":"cells"},Z2=function(u){var l=u.section==="thead",d=fl(Y0(u.cells),"th");return l||d?{type:"header",subType:pk(l,d)}:u.section==="tfoot"?{type:"footer"}:{type:"body"}},Y0=function(u){var l=or(u,function(d){return b1(d.element)});return l.length===0?Y.some("td"):l.length===u.length?Y.some("th"):Y.none()},Q2=function(u){var l=wt(u,function(k){return Z2(k).type}),d=Ir(l,"header"),h=Ir(l,"footer");if(!d&&!h)return Y.some("body");var y=Ir(l,"body");return d&&!y&&!h?Y.some("header"):!d&&!y&&h?Y.some("footer"):Y.none()},bk=function(u){return Qr(u.all,function(l){var d=Z2(l);return d.type==="header"?Y.from(d.subType):Y.none()})},vu=function(u,l,d){return Co(d(u.element,l),!0,u.isLocked)},Md=function(u,l){return u.section!==l?Cn(u.element,u.cells,l,u.isNew):u},J0=function(){return{transformRow:Md,transformCell:function(u,l,d){var h=d(u.element,l),y=Cr(h)!=="td"?BT(h,"td"):h;return Co(y,u.isNew,u.isLocked)}}},eC=function(){return{transformRow:Md,transformCell:vu}},Jm=function(){return{transformRow:function(u,l){var d=l==="thead"?"tbody":l;return Md(u,d)},transformCell:vu}},tC=function(){return{transformRow:sn,transformCell:vu}},yk=function(u,l){var d=hr.fromTable(u),h=bk(d).getOr(l);switch(h){case"section":return J0();case"sectionCells":return eC();case"cells":return Jm()}},ch={getTableSectionType:yk,section:J0,sectionCells:eC,cells:Jm,fallback:tC},lh=function(u,l,d,h){d===h?Xa(u,l):Si(u,l,d)},Av=function(u,l,d){Kr(fr(u,l)).fold(function(){return uu(u,d)},function(h){return Ua(h,d)})},w1=function(u,l){var d=Xn(u,l).getOrThunk(function(){var h=st.fromTag(l,Ds(u).dom);return l==="thead"?Av(u,"caption,colgroup",h):l==="colgroup"?Av(u,"caption",h):Ao(u,h),h});return Lg(d),d},C1=function(u,l){var d=[],h=[],y=function(at){return wt(at,function(Ke){Ke.isNew&&d.push(Ke.element);var Ot=Ke.element;return Lg(Ot),Vt(Ke.cells,function(Et){Et.isNew&&h.push(Et.element),lh(Et.element,"colspan",Et.colspan,1),lh(Et.element,"rowspan",Et.rowspan,1),Ao(Ot,Et.element)}),Ot})},k=function(at){return Sr(at,function(Ke){return wt(Ke.cells,function(Ot){return lh(Ot.element,"span",Ot.colspan,1),Ot.element})})},R=function(at,Ke){var Ot=w1(u,Ke),Et=Ke==="colgroup"?k:y,kn=Et(at);gl(Ot,kn)},$=function(at){Xn(u,at).each(gs)},j=function(at,Ke){at.length>0?R(at,Ke):$(Ke)},ne=[],he=[],Ge=[],yt=[];return Vt(l,function(at){switch(at.section){case"thead":ne.push(at);break;case"tbody":he.push(at);break;case"tfoot":Ge.push(at);break;case"colgroup":yt.push(at);break}}),j(yt,"colgroup"),j(ne,"thead"),j(he,"tbody"),j(Ge,"tfoot"),{newRows:d,newCells:h}},S1=function(u){return wt(u,function(l){var d=Fc(l.element);return Vt(l.cells,function(h){var y=ba(h.element);lh(y,"colspan",h.colspan,1),lh(y,"rowspan",h.rowspan,1),Ao(d,y)}),d})},wk=function(u,l){return wt(u,function(d){return Zu(d,l)})},Ff=function(u,l){return u[l]},x1=function(u,l){if(u.length===0)return 0;var d=u[0],h=Ft(u,function(y){return!l(d.element,y.element)});return h.getOr(u.length)},Ck=function(u,l,d,h){var y=Ff(u,l),k=y.section==="colgroup",R=x1(y.cells.slice(d),h),$=k?1:x1(wk(u.slice(l),d),h);return{colspan:R,rowspan:$}},Dv=function(u,l){var d=wt(u,function(y){return wt(y.cells,Gt)}),h=function(y,k,R,$){for(var j=y;j<y+R;j++)for(var ne=k;ne<k+$;ne++)d[j][ne]=!0};return wt(u,function(y,k){var R=Sr(y.cells,function($,j){if(d[k][j]===!1){var ne=Ck(u,k,j,l);return h(k,j,ne.rowspan,ne.colspan),[tr($.element,ne.rowspan,ne.colspan,$.isNew)]}else return[]});return bu(y.element,R,y.section,y.isNew)})},Rv=function(u,l,d){var h=[];Vt(u.colgroups,function(he){for(var Ge=[],yt=0;yt<u.grid.columns;yt++){var at=hr.getColumnAt(u,yt).map(function(Ke){return Co(Ke.element,d,!1)}).getOrThunk(function(){return Co(l.colGap(),!0,!1)});Ge.push(at)}h.push(Cn(he.element,Ge,"colgroup",d))});for(var y=0;y<u.grid.rows;y++){for(var k=[],R=0;R<u.grid.columns;R++){var $=hr.getAt(u,y,R).map(function(he){return Co(he.element,d,he.isLocked)}).getOrThunk(function(){return Co(l.gap(),!0,!1)});k.push($)}var j=u.all[y],ne=Cn(j.element,k,j.section,d);h.push(ne)}return h},nC=function(u,l){return Rv(u,l,!1)},fh=function(u){return Dv(u,wr)},Z0=function(u,l){return Qr(u.all,function(d){return dt(d.cells,function(h){return wr(l,h.element)})})},T1=function(u,l,d){var h=wt(l.selection,function(k){return dl(k).bind(function(R){return Z0(u,R)}).filter(d)}),y=fi(h);return $a(y.length>0,y)},Qi=function(u,l,d,h,y){return function(k,R,$,j,ne){var he=hr.fromTable(R),Ge=Y.from(ne==null?void 0:ne.section).getOrThunk(ch.fallback),yt=l(he,$).map(function(at){var Ke=nC(he,j),Ot=u(Ke,at,wr,y(j),Ge),Et=iu(Ot.grid),kn=fh(Ot.grid);return{info:at,grid:kn,cursor:Ot.cursor,lockedColumns:Et}});return yt.bind(function(at){var Ke=C1(R,at.grid),Ot=Y.from(ne==null?void 0:ne.sizing).getOrThunk(function(){return _f.getTableSize(R)}),Et=Y.from(ne==null?void 0:ne.resize).getOrThunk(pv);return d(R,at.grid,at.info,{sizing:Ot,resize:Et,section:Ge}),h(R),Ei(k,R),Xa(R,Qo),at.lockedColumns.length>0&&Si(R,Qo,at.lockedColumns.join(",")),Y.some({cursor:at.cursor,newRows:Ke.newRows,newCells:Ke.newCells})})}},Sk=function(u,l){return dl(l.element).bind(function(d){return Z0(u,d).map(function(h){var y=Dn(Dn({},h),{generators:l.generators,clipboard:l.clipboard});return y})})},k1=function(u,l){return T1(u,l,pt).map(function(d){return{cells:d,generators:l.generators,clipboard:l.clipboard}})},rC=function(u,l){return l.mergable},xk=function(u,l){return l.unmergable},Xc=function(u,l){return T1(u,l,pt)},Lf=function(u,l){return T1(u,l,function(d){return!d.isLocked})},Tk=function(u,l){return Z0(u,l).exists(function(d){return!d.isLocked})},Q0=function(u,l){return Mt(l,function(d){return Tk(u,d)})},ey=function(u,l){return rC(u,l).filter(function(d){return Q0(u,d.cells)})},Pd=function(u,l){return xk(u,l).filter(function(d){return Q0(u,d)})},aC=function(u,l,d,h){var y=Uo(u).rows;if(y.length===0)return u;for(var k=l.startRow;k<=l.finishRow;k++)for(var R=l.startCol;R<=l.finishCol;R++){var $=y[k],j=Zu($,R).isLocked;Fl($,R,Co(h(),!1,j))}return u},Zm=function(u,l,d,h){for(var y=Uo(u).rows,k=!0,R=0;R<y.length;R++)for(var $=0;$<tc(y[0]);$++){var j=y[R],ne=Zu(j,$),he=ne.element,Ge=d(he,l);Ge===!0&&k===!1?Fl(j,$,Co(h(),!0,ne.isLocked)):Ge===!0&&(k=!1)}return u},kk=function(u,l){return J(u,function(d,h){return _(d,function(y){return l(y.element,h.element)})?d:d.concat([h])},[])},Ek=function(u,l,d,h){return l>0&&l<u[0].cells.length&&Vt(u,function(y){var k=y.cells[l-1],R=y.cells[l],$=d(R.element,k.element);$&&Fl(y,l,Co(h(),!0,R.isLocked))}),u},Ok=function(u,l,d,h){var y=Uo(u).rows;if(l>0&&l<y.length){var k=y[l-1].cells,R=kk(k,d);Vt(R,function($){for(var j=Y.none(),ne=l;ne<y.length;ne++)for(var he=function(yt){var at=y[ne],Ke=Zu(at,yt),Ot=d(Ke.element,$.element);Ot&&(j.isNone()&&(j=Y.some(h())),j.each(function(Et){Fl(at,yt,Co(Et,!0,Ke.isLocked))}))},Ge=0;Ge<tc(y[0]);Ge++)he(Ge)})}return u},Qm=function(u){var l=function(Ge){return Qm(u)},d=function(Ge){return Qm(u)},h=function(Ge){return Qm(Ge(u))},y=function(Ge){return Qm(u)},k=function(Ge){Ge(u)},R=function(Ge){return Ge(u)},$=function(Ge,yt){return yt(u)},j=function(Ge){return Ge(u)},ne=function(Ge){return Ge(u)},he=function(){return Y.some(u)};return{isValue:pt,isError:Gt,getOr:Fe(u),getOrThunk:Fe(u),getOrDie:Fe(u),or:l,orThunk:d,fold:$,map:h,mapError:y,each:k,bind:R,exists:j,forall:ne,toOptional:he}},$d=function(u){var l=function(ne){return ne()},d=function(){return Nt(String(u))()},h=sn,y=function(ne){return ne()},k=function(ne){return $d(u)},R=function(ne){return $d(ne(u))},$=function(ne){return $d(u)},j=function(ne,he){return ne(u)};return{isValue:Gt,isError:pt,getOr:sn,getOrThunk:l,getOrDie:d,or:h,orThunk:y,fold:j,map:k,mapError:R,each:We,bind:$,exists:Gt,forall:pt,toOptional:Y.none}},ty=function(u,l){return u.fold(function(){return $d(l)},Qm)},oC={value:Qm,error:$d,fromOption:ty},Ak=function(u,l,d){if(u.row>=l.length||u.column>tc(l[0]))return oC.error("invalid start address out of table bounds, row: "+u.row+", column: "+u.column);var h=l.slice(u.row),y=h[0].cells.slice(u.column),k=tc(d[0]),R=d.length;return oC.value({rowDelta:h.length-R,colDelta:y.length-k})},iC=function(u,l){var d=tc(u[0]),h=tc(l[0]);return{rowDelta:0,colDelta:d-h}},uC=function(u,l){var d=u.length,h=l.length;return{rowDelta:d-h,colDelta:0}},ny=function(u,l,d,h){var y=l.section==="colgroup"?d.col:d.cell;return pa(u,function(k){return Co(y(),!0,h(k))})},Dk=function(u,l,d,h){var y=u[u.length-1];return u.concat(pa(l,function(){var k=y.section==="colgroup"?d.colgroup:d.row,R=Ti(y,k,sn),$=ny(R.cells.length,R,d,function(j){return V(h,j.toString())});return Zn(R,$)}))},E1=function(u,l,d,h){return wt(u,function(y){var k=ny(l,y,d,Gt);return xf(y,h,k)})},Rk=function(u,l,d){return wt(u,function(h){return J(d,function(y,k){var R=ny(1,h,l,pt)[0];return Tf(y,k,R)},h)})},vh=function(u,l,d){var h=l.colDelta<0?E1:sn,y=l.rowDelta<0?Dk:sn,k=iu(u),R=tc(u[0]),$=_(k,function(he){return he===R-1}),j=h(u,Math.abs(l.colDelta),d,$?R-1:R),ne=iu(j);return y(j,Math.abs(l.rowDelta),d,$n(ne,pt))},_k=function(u,l,d,h){var y=Zu(u[l],d),k=ze(h,y.element),R=u[l];return u.length>1&&tc(R)>1&&(d>0&&k(Su(R,d-1))||d<R.cells.length-1&&k(Su(R,d+1))||l>0&&k(Su(u[l-1],d))||l<u.length-1&&k(Su(u[l+1],d)))},ry=function(u,l,d,h,y,k){for(var R=u.row,$=u.column,j=d.length,ne=tc(d[0]),he=R+j,Ge=$+ne+k.length,yt=$n(k,pt),at=R;at<he;at++)for(var Ke=0,Ot=$;Ot<Ge;Ot++){if(yt[Ot]){Ke++;continue}_k(l,at,Ot,y)&&Zm(l,Su(l[at],Ot),y,h.cell);var Et=Ot-$-Ke,kn=Zu(d[at-R],Et),Jr=kn.element,In=h.replace(Jr);Fl(l[at],Ot,Co(In,!0,kn.isLocked))}return l},Bk=function(u,l,d){var h=tc(l[0]),y=Uo(l).cols.length+u.row,k=pa(h-u.column,function($){return $+u.column}),R=dt(k,function($){return Mt(d,function(j){return j!==$})}).getOr(h-1);return{row:y,column:R}},sC=function(u,l,d){return or(d,function(h){return h>=u.column&&h<=tc(l[0])+u.column})},Mk=function(u,l,d,h,y){var k=iu(l),R=Bk(u,l,k),$=Uo(d).rows,j=sC(R,$,k),ne=Ak(R,l,$);return ne.map(function(he){var Ge=Dn(Dn({},he),{colDelta:he.colDelta-j.length}),yt=vh(l,Ge,h),at=iu(yt),Ke=sC(R,$,at);return ry(R,yt,$,h,y,Ke)})},eg=function(u,l,d,h,y){Ek(l,u,y,h.cell);var k=uC(d,l),R=vh(d,k,h),$=uC(l,R),j=vh(l,$,h);return wt(j,function(ne,he){return xf(ne,u,R[he].cells)})},cC=function(u,l,d,h,y){Ok(l,u,y,h.cell);var k=iu(l),R=iC(l,d),$=Dn(Dn({},R),{colDelta:R.colDelta-k.length}),j=vh(l,$,h),ne=Uo(j),he=ne.cols,Ge=ne.rows,yt=iu(j),at=iC(d,l),Ke=Dn(Dn({},at),{colDelta:at.colDelta+yt.length}),Ot=Rk(d,h,yt),Et=vh(Ot,Ke,h);return he.concat(Ge.slice(0,u)).concat(Et).concat(Ge.slice(u,Ge.length))},Pk=function(u,l,d,h){return Ti(u,function(y){return h(y,d)},l)},ay=function(u,l,d,h,y){var k=Uo(u),R=k.rows,$=k.cols,j=R.slice(0,l),ne=R.slice(l),he=Pk(R[d],function(Ge,yt){var at=l>0&&l<R.length&&h(Su(R[l-1],yt),Su(R[l],yt)),Ke=at?Zu(R[l],yt):Co(y(Ge.element,h),!0,Ge.isLocked);return Ke},h,y);return $.concat(j).concat([he]).concat(ne)},oy=function(u,l,d,h,y,k,R){if(d==="colgroup"||!h){var $=Zu(u,y);return Co(R($.element,k),!0,!1)}else return Zu(u,l)},O1=function(u,l,d,h,y){return wt(u,function(k){var R=l>0&&l<tc(k)&&h(Su(k,l-1),Su(k,l)),$=oy(k,l,k.section,R,d,h,y);return Tf(k,l,$)})},lC=function(u,l){return Sr(u,function(d){var h=d.cells,y=la(l,function(k,R){return R>=0&&R<k.length?k.slice(0,R).concat(k.slice(R+1)):k},h);return y.length>0?[Cn(d.element,y,d.section,d.isNew)]:[]})},fC=function(u,l,d){var h=Uo(u),y=h.rows,k=h.cols;return k.concat(y.slice(0,l)).concat(y.slice(d+1))},tg=function(u,l,d,h){return Su(u[l],d)!==void 0&&l>0&&h(Su(u[l-1],d),Su(u[l],d))},vC=function(u,l,d){return l>0&&d(Su(u,l-1),Su(u,l))},dC=function(u,l,d,h){return tg(u,l,d,h)||vC(u[l],d,h)},$k=function(u,l){var d=Mt(l,sn)&&y1(u.cells);return d?pt:function(h,y,k){var R=Cr(h.element);return!(R==="th"&&l[k])}},Nk=function(u,l){var d=Mt(l,sn)&&y1(u);return d?pt:function(h,y,k){var R=Cr(h.element);return!(R==="th"&&l[y])}},iy=function(u,l,d,h){var y=function($){return $==="row"?Ap(l):ud(l)},k=function($){return y($)?$+"group":$};if(u)return b1(l)?k(d):null;if(h&&b1(l)){var R=d==="row"?"col":"row";return k(R)}else return null},Nd=function(u,l){return function(d,h,y){return Y.some(iy(u,d.element,"col",l[y]))}},A1=function(u,l){return function(d,h){return Y.some(iy(u,d.element,"row",l[h]))}},mC=function(u,l,d){return Co(d(u.element,l),!0,u.isLocked)},D1=function(u,l,d,h,y,k,R){var $=function(j){return _(l,function(ne){return d(j.element,ne.element)})};return wt(u,function(j,ne){return ec(j,function(he,Ge){if($(he)){var yt=R(he,ne,Ge)?y(he,d,h):he;return k(yt,ne,Ge).each(function(at){hf(yt.element,{scope:Y.from(at)})}),yt}else return he})})},gC=function(u,l,d){return Sr(u,function(h,y){return dC(u,y,l,d)?[]:[Zu(h,l)]})},Ik=function(u,l,d){var h=u[l];return Sr(h.cells,function(y,k){return dC(u,l,k,d)?[]:[y]})},uy=function(u,l,d,h,y){var k=Uo(u).rows,R=Sr(l,function(he){return gC(k,he,h)}),$=wt(u,function(he){return y1(he.cells)}),j=Nk(R,$),ne=A1(d,$);return D1(u,R,h,y,mC,ne,j)},zk=function(u,l,d,h,y,k,R){var $=Uo(u),j=$.cols,ne=$.rows,he=ne[l[0]],Ge=Sr(l,function(kn){return Ik(ne,kn,y)}),yt=wt(he.cells,function(kn,Jr){return y1(gC(ne,Jr,y))}),at=da([],ne,!0);Vt(l,function(kn){at[kn]=R.transformRow(ne[kn],d)});var Ke=j.concat(at),Ot=$k(he,yt),Et=Nd(h,yt);return D1(Ke,Ge,y,k,R.transformCell,Et,Ot)},hC=function(u,l,d,h){var y=Uo(u).rows,k=wt(l,function(R){return Zu(y[R.row],R.column)});return D1(u,k,d,h,mC,Y.none,pt)},Id=function(u){var l=function(d,h){var y=_(d,function(k){return k.column===h.column});return y?d:d.concat([h])};return J(u,l,[]).sort(function(d,h){return d.column-h.column})},Mi=to("col"),_v=to("colgroup"),R1=function(u){return Cr(u)==="tr"||_v(u)},Fk=function(u){var l=gc(u,"colspan",1),d=gc(u,"rowspan",1);return{element:u,colspan:l,rowspan:d}},pC=function(u,l){l===void 0&&(l=Fk);var d=function($){return Mi($.element)?u.col($):u.cell($)},h=function($){return _v($.element)?u.colgroup($):u.row($)},y=function($){if(R1($))return h({element:$});var j=d(l($));return k=Y.some({item:$,replacement:j}),j},k=Y.none(),R=function($,j){return k.fold(function(){return y($)},function(ne){return j($,ne.item)?ne.replacement:y($)})};return{getOrInit:R}},bC=function(u){return function(l){var d=[],h=function(R,$){return dt(d,function(j){return $(j.item,R)})},y=function(R){var $=u==="td"?{scope:null}:{},j=l.replace(R,u,$);return d.push({item:R,sub:j}),j},k=function(R,$){return R1(R)||Mi(R)?R:h(R,$).fold(function(){return y(R)},function(j){return $(R,j.item)?j.sub:y(R)})};return{replaceOrInit:k}}},sy=function(u){return ua(u,"scope").map(function(l){return l.substr(0,3)})},cy=function(u){var l=function(h){var y=sy(h);return y.each(function(k){return Si(h,"scope",k)}),function(){var k=u.cell({element:h,colspan:1,rowspan:1});return ou(k,"width"),ou(h,"width"),y.each(function(R){return Si(k,"scope",R)}),k}},d=function(h){var y=function(){var k=fi(wt(h,sy));if(k.length===0)return Y.none();var R=k[0],$=["row","col"],j=_(k,function(ne){return ne!==R&&Ir($,ne)});return j?Y.none():Y.from(R)};return ou(h[0],"width"),y().fold(function(){return Xa(h[0],"scope")},function(k){return Si(h[0],"scope",k+"group")}),Fe(h[0])};return{unmerge:l,merge:d}},Us={modification:pC,transform:bC,merging:cy},Hf=["body","p","div","article","aside","figcaption","figure","footer","header","nav","section","ol","ul","table","thead","tfoot","tbody","caption","tr","td","th","h1","h2","h3","h4","h5","h6","blockquote","pre","address"],zd=function(u,l){var d=u.property().name(l);return Ir(["ol","ul"],d)},dh=function(u,l){var d=u.property().name(l);return Ir(Hf,d)},Fd=function(u,l){return Ir(["br","img","hr","input"],u.property().name(l))},Zl=Vg(),Yc=function(u){return dh(Zl,u)},ng=function(u){return zd(Zl,u)},ly=function(u){return Fd(Zl,u)},yC=function(u){var l=function(j){return Cr(j)==="br"},d=function(j){return Mt(j,function(ne){return l(ne)||wi(ne)&&Rp(ne).trim().length===0})},h=function(j){return Cr(j)==="li"||xo(j,ng).isSome()},y=function(j){return T(j).map(function(ne){return Yc(ne)?!0:ly(ne)?Cr(ne)!=="img":!1}).getOr(!1)},k=function(j){return Fp(j).bind(function(ne){var he=y(ne);return no(ne).map(function(Ge){return he===!0||h(Ge)||l(ne)||Yc(Ge)&&!wr(j,Ge)?[]:[st.fromTag("br")]})}).getOr([])},R=function(){var j=Sr(u,function(ne){var he=w(ne);return d(he)?[]:he.concat(k(ne))});return j.length===0?[st.fromTag("br")]:j},$=R();Lg(u[0]),gl(u[0],$)},_1=function(u){return jm(u,!0)},Ld=function(u){var l=Sf(u);l.length===0&&gs(u)},Vf=function(u,l){return{grid:u,cursor:l}},B1=function(u){return Qr(u,function(l){return Qr(l.cells,function(d){var h=d.element;return $a(_1(h),h)})})},fy=function(u,l,d){var h,y,k=Uo(u).rows;return Y.from((y=(h=k[l])===null||h===void 0?void 0:h.cells[d])===null||y===void 0?void 0:y.element).filter(_1).orThunk(function(){return B1(k)})},eu=function(u,l,d){var h=fy(u,l,d);return Vf(u,h)},Bv=function(u){var l=function(d,h){var y=_(d,function(k){return k.row===h.row});return y?d:d.concat([h])};return J(u,l,[]).sort(function(d,h){return d.row-h.row})},wC=function(u,l,d,h){var y=l[0].row,k=Bv(l),R=la(k,function($,j){var ne=ay($.grid,y,j.row+$.delta,d,h.getOrInit);return{grid:ne,delta:$.delta+1}},{grid:u,delta:0}).grid;return eu(R,y,l[0].column)},vy=function(u,l,d,h){var y=Bv(l),k=y[y.length-1],R=k.row+k.rowspan,$=la(y,function(j,ne){return ay(j,R,ne.row,d,h.getOrInit)},u);return eu($,R,l[0].column)},M1=function(u,l,d,h){var y=l.details,k=Id(y),R=k[0].column,$=la(k,function(j,ne){var he=O1(j.grid,R,ne.column+j.delta,d,h.getOrInit);return{grid:he,delta:j.delta+1}},{grid:u,delta:0}).grid;return eu($,y[0].row,R)},du=function(u,l,d,h){var y=l.details,k=y[y.length-1],R=k.column+k.colspan,$=Id(y),j=la($,function(ne,he){return O1(ne,R,he.column,d,h.getOrInit)},u);return eu(j,y[0].row,R)},Lk=function(u,l,d,h){var y=Id(l),k=wt(y,function($){return $.column}),R=uy(u,k,!0,d,h.replaceOrInit);return eu(R,l[0].row,l[0].column)},Ql=function(u,l,d,h){var y=hC(u,l,d,h.replaceOrInit);return eu(y,l[0].row,l[0].column)},CC=function(u,l,d,h){var y=Id(l),k=wt(y,function($){return $.column}),R=uy(u,k,!1,d,h.replaceOrInit);return eu(R,l[0].row,l[0].column)},dy=function(u,l,d,h){var y=hC(u,l,d,h.replaceOrInit);return eu(y,l[0].row,l[0].column)},Mv=function(u,l){return function(d,h,y,k,R){var $=Bv(h),j=wt($,function(he){return he.row}),ne=zk(d,j,u,l,y,k.replaceOrInit,R);return eu(ne,h[0].row,h[0].column)}},SC=Mv("thead",!0),P1=Mv("tbody",!1),xC=Mv("tfoot",!1),my=function(u,l,d,h){var y=Id(l.details),k=lC(u,wt(y,function($){return $.column})),R=k.length>0?k[0].cells.length-1:0;return eu(k,y[0].row,Math.min(y[0].column,R))},TC=function(u,l,d,h){var y=Bv(l),k=fC(u,y[0].row,y[y.length-1].row),R=k.length>0?k.length-1:0;return eu(k,Math.min(l[0].row,R),l[0].column)},Hk=function(u,l,d,h){var y=l.cells;yC(y);var k=aC(u,l.bounds,d,h.merge(y));return Vf(k,Y.from(y[0]))},gy=function(u,l,d,h){var y=function(R,$){return Zm(R,$,d,h.unmerge($))},k=la(l,y,u);return Vf(k,Y.from(l[0]))},Tl=function(u,l,d,h){var y=function(j,ne){var he=hr.fromTable(j);return Rv(he,ne,!0)},k=y(l.clipboard,l.generators),R=yn(l.row,l.column),$=Mk(R,u,k,l.generators,d);return $.fold(function(){return Vf(u,Y.some(l.element))},function(j){return eu(j,l.row,l.column)})},$1=function(u,l,d){var h=zg(u,d.section),y=hr.generate(h);return Rv(y,l,!0)},os=function(u,l,d,h){var y=Uo(u).rows,k=l.cells[0].column,R=y[l.cells[0].row],$=$1(l.clipboard,l.generators,R),j=eg(k,u,$,l.generators,d);return eu(j,l.cells[0].row,l.cells[0].column)},mh=function(u,l,d,h){var y=Uo(u).rows,k=l.cells[l.cells.length-1].column+l.cells[l.cells.length-1].colspan,R=y[l.cells[0].row],$=$1(l.clipboard,l.generators,R),j=eg(k,u,$,l.generators,d);return eu(j,l.cells[0].row,l.cells[0].column)},gh=function(u,l,d,h){var y=Uo(u).rows,k=l.cells[0].row,R=y[k],$=$1(l.clipboard,l.generators,R),j=cC(k,u,$,l.generators,d);return eu(j,l.cells[0].row,l.cells[0].column)},hy=function(u,l,d,h){var y=Uo(u).rows,k=l.cells[l.cells.length-1].row+l.cells[l.cells.length-1].rowspan,R=y[l.cells[0].row],$=$1(l.clipboard,l.generators,R),j=cC(k,u,$,l.generators,d);return eu(j,l.cells[0].row,l.cells[0].column)},Vk=function(u,l){var d=hr.fromTable(u),h=Xc(d,l);return h.bind(function(y){var k=y[y.length-1],R=y[0].column,$=k.column+k.colspan,j=po(wt(d.all,function(ne){return or(ne.cells,function(he){return he.column>=R&&he.column<$})}));return Y0(j)}).getOr("")},kC=function(u,l){var d=hr.fromTable(u),h=Xc(d,l);return h.bind(Y0).getOr("")},Ou=function(u,l){var d=hr.fromTable(u),h=Xc(d,l);return h.bind(function(y){var k=y[y.length-1],R=y[0].row,$=k.row+k.rowspan,j=d.all.slice(R,$);return Q2(j)}).getOr("")},Hd=function(u,l,d,h){return ts(u,l,d,h.sizing)},hh=function(u,l,d,h){return YT(u,l,d,h.sizing,h.resize)},Sc=function(u,l){return _(l,function(d){return d.column===0&&d.isLocked})},xc=function(u,l){return _(l,function(d){return d.column+d.colspan>=u.grid.columns&&d.isLocked})},Tc=function(u,l){var d=ld(u),h=Id(l);return J(h,function(y,k){var R=d[k.column],$=R.map(Tu).getOr(0);return y+$},0)},is=function(u){return function(l,d){return Xc(l,d).filter(function(h){var y=u?Sc:xc;return!y(l,h)}).map(function(h){return{details:h,pixelDelta:Tc(l,h)}})}},kl=function(u,l){return Lf(u,l).map(function(d){return{details:d,pixelDelta:-Tc(u,d)}})},N1=function(u){return function(l,d){return k1(l,d).filter(function(h){var y=u?Sc:xc;return!y(l,h.cells)})}},kc=Us.transform("th"),El=Us.transform("td"),Uk=Qi(wC,Xc,We,We,Us.modification),Wk=Qi(vy,Xc,We,We,Us.modification),EC=Qi(M1,is(!0),hh,We,Us.modification),OC=Qi(du,is(!1),hh,We,Us.modification),AC=Qi(my,kl,hh,Ld,Us.modification),DC=Qi(TC,Xc,We,Ld,Us.modification),jk=Qi(Lk,Lf,We,We,kc),qk=Qi(CC,Lf,We,We,El),RC=Qi(SC,Lf,We,We,kc),Gk=Qi(P1,Lf,We,We,El),py=Qi(xC,Lf,We,We,El),_C=Qi(Ql,Lf,We,We,kc),by=Qi(dy,Lf,We,We,El),BC=Qi(Hk,ey,Hd,We,Us.merging),Kk=Qi(gy,Pd,Hd,We,Us.merging),Xk=Qi(Tl,Sk,Hd,We,Us.modification),Yk=Qi(os,N1(!0),We,We,Us.modification),Ur=Qi(mh,N1(!1),We,We,Us.modification),Vd=Qi(gh,k1,We,We,Us.modification),rg=Qi(hy,k1,We,We,Us.modification),Ws=Vk,Jk=kC,Pv=Ou,ag=function(u,l,d){var h=function(gu){return Cr(bs(gu))==="table"},y=function(gu){return h(u)===!1||Sl(gu).rows>1},k=function(gu){return h(u)===!1||Sl(gu).columns>1},R=j0(u),$=q2(u)?We:J2,j=function(gu){switch(W0(u)){case"section":return ch.section();case"sectionCells":return ch.sectionCells();case"cells":return ch.cells();default:return ch.getTableSectionType(gu,"section")}},ne=function(gu,Gh){return Gh.cursor.fold(function(){var am=Sf(gu);return pn(am).filter(er).map(function(Dl){l.clear(gu);var Dc=u.dom.createRng();return Dc.selectNode(Dl.dom),u.selection.setRng(Dc),Si(Dl,"data-mce-selected","1"),Dc})},function(am){var Dl=hk(am),Dc=u.dom.createRng();return Dc.setStart(Dl.element.dom,Dl.offset),Dc.setEnd(Dl.element.dom,Dl.offset),u.selection.setRng(Dc),l.clear(gu),Y.some(Dc)})},he=function(gu,Gh,am,Dl,Dc){return function(Rl,Kh,kg){kg===void 0&&(kg=!1),Ki(Rl);var Xh=Dl(),om=st.fromDom(u.getDoc()),tl=lo(am,om,R),im={sizing:X0(u,Rl),resize:q2(u)?B2():pv(),section:j(Rl)};return Gh(Rl)?gu(Xh,Rl,Kh,tl,im).bind(function(wb){Vt(wb.newRows,function(Yh){r1(u,Yh.dom)}),Vt(wb.newCells,function(Yh){If(u,Yh.dom)});var Cb=ne(Rl,wb);return er(Rl)&&(Ki(Rl),kg||as(u,Rl.dom,Dc)),Cb.map(function(Yh){return{rng:Yh,effect:Dc}})}):Y.none()}},Ge=he(DC,y,We,d,Oi),yt=he(AC,k,We,d,Oi),at=he(Uk,pt,We,d,Oi),Ke=he(Wk,pt,We,d,Oi),Ot=he(EC,pt,$,d,Oi),Et=he(OC,pt,$,d,Oi),kn=he(BC,pt,We,d,Oi),Jr=he(Kk,pt,We,d,Oi),In=he(Yk,pt,We,d,Oi),Jn=he(Ur,pt,We,d,Oi),Hr=he(Vd,pt,We,d,Oi),br=he(rg,pt,We,d,Oi),Io=he(Xk,pt,We,d,U2),Ni=he(_C,pt,We,d,Oi),Hu=he(by,pt,We,d,Oi),ra=he(jk,pt,We,d,Oi),sr=he(qk,pt,We,d,Oi),qr=he(RC,pt,We,d,Oi),Ea=he(Gk,pt,We,d,Oi),fo=he(py,pt,We,d,Oi),uf=Jk,ya=Ws,qs=Pv;return{deleteRow:Ge,deleteColumn:yt,insertRowsBefore:at,insertRowsAfter:Ke,insertColumnsBefore:Ot,insertColumnsAfter:Et,mergeCells:kn,unmergeCells:Jr,pasteColsBefore:In,pasteColsAfter:Jn,pasteRowsBefore:Hr,pasteRowsAfter:br,pasteCells:Io,makeCellsHeader:Ni,unmakeCellsHeader:Hu,makeColumnsHeader:ra,unmakeColumnsHeader:sr,makeRowsHeader:qr,makeRowsBody:Ea,makeRowsFooter:fo,getTableRowType:qs,getTableCellType:uf,getTableColType:ya}},ph={styles:{"border-collapse":"collapse",width:"100%"},attributes:{border:"1"},colGroups:!1},og=function(){return st.fromTag("th")},MC=function(){return st.fromTag("td")},PC=function(){return st.fromTag("col")},yy=function(u,l,d,h){for(var y=st.fromTag("tr"),k=0;k<u;k++){var R=h<l||k<d?og():MC();k<d&&Si(R,"scope","row"),h<l&&Si(R,"scope","col"),Ao(R,st.fromTag("br")),Ao(y,R)}return y},wy=function(u){var l=st.fromTag("colgroup");return pa(u,function(){return Ao(l,PC())}),l},Ud=function(u,l,d,h){return pa(u,function(y){return yy(l,d,h,y)})},Cy=function(u,l,d,h,y,k){k===void 0&&(k=ph);var R=st.fromTag("table"),$=y!=="cells";zl(R,k.styles),Zo(R,k.attributes),k.colGroups&&Ao(R,wy(l));var j=Math.min(u,d);if($&&d>0){var ne=st.fromTag("thead");Ao(R,ne);var he=y==="sectionCells"?j:0,Ge=Ud(d,l,he,h);gl(ne,Ge)}var yt=st.fromTag("tbody");Ao(R,yt);var at=$?u-j:u,Ke=$?0:d,Ot=Ud(at,l,Ke,h);return gl(yt,Ot),R},Zk=function(u){return u.dom.innerHTML},ef=function(u){var l=st.fromTag("div"),d=st.fromDom(u.dom.cloneNode(!0));return Ao(l,d),Zk(l)},Sy=function(u,l){u.selection.select(l.dom,!0),u.selection.collapse(!0)},I1=function(u,l){_s(l,"td,th").each(ze(Sy,u))},z1=function(u,l){Vt(Rs(l,"tr"),function(d){r1(u,d.dom),Vt(Rs(d,"th,td"),function(h){If(u,h.dom)})})},$C=function(u){return vt(u)&&u.indexOf("%")!==-1},ig=function(u,l,d,h,y){var k=oh(u),R={styles:k,attributes:Gm(u),colGroups:U0(u)};return u.undoManager.ignore(function(){var $=Cy(d,l,y,h,W0(u),R);Si($,"data-mce-id","__mce");var j=ef($);u.insertContent(j),u.addVisual()}),_s(bs(u),'table[data-mce-id="__mce"]').map(function($){return Km(u)?v1($):Ov(u)?d1($):(uh(u)||$C(k.width))&&sh($),Ki($),Xa($,"data-mce-id"),z1(u,$),I1(u,$),$.dom}).getOr(null)},NC=function(u,l,d,h,y){h===void 0&&(h={});var k=function(j){return hn(j)&&j>0};if(k(l)&&k(d)){var R=h.headerRows||0,$=h.headerColumns||0;return ig(u,d,l,$,R)}else return console.error(y),null},IC=function(u){return function(){return u().fold(function(){return[]},function(l){return wt(l,function(d){return d.dom})})}},Ol=function(u){return function(l){var d=l.length>0?Y.some(jc(l)):Y.none();u(d)}},cc=function(u){return function(l,d,h){h===void 0&&(h={});var y=NC(u,d,l,h,"Invalid values for insertTable - rows and columns values are required to insert a table.");return u.undoManager.add(),y}},mu=function(u,l,d,h){return{insertTable:cc(u),setClipboardRows:Ol(l.setRows),getClipboardRows:IC(l.getRows),setClipboardCols:Ol(l.setColumns),getClipboardCols:IC(l.getColumns),resizeHandler:d,selectionTargets:h}},zC=function(u,l,d){var h=gc(u,l,1);d===1||h<=1?Xa(u,l):Si(u,l,Math.min(d,h))},xy=function(u,l,d){if(hr.hasColumns(u)){var h=or(hr.justColumns(u),function(R){return R.column>=l&&R.column<d}),y=wt(h,function(R){var $=ba(R.element);return zC($,"span",d-l),$}),k=st.fromTag("colgroup");return gl(k,y),[k]}else return[]},ug=function(u,l,d){return wt(u.all,function(h){var y=or(h.cells,function($){return $.column>=l&&$.column<d}),k=wt(y,function($){var j=ba($.element);return zC(j,"colspan",d-l),j}),R=st.fromTag("tr");return gl(R,k),R})},FC=function(u,l){var d=hr.fromTable(u),h=Lf(d,l);return h.map(function(y){var k=y[y.length-1],R=y[0].column,$=k.column+k.colspan,j=xy(d,R,$),ne=ug(d,R,$);return da(da([],j,!0),ne,!0)})},LC=function(u,l,d){var h=hr.fromTable(u),y=Xc(h,l);return y.bind(function(k){var R=Rv(h,d,!1),$=Uo(R).rows,j=$.slice(k[0].row,k[k.length-1].row+k[k.length-1].rowspan),ne=Sr(j,function(Ge){var yt=or(Ge.cells,function(at){return!at.isLocked});return yt.length>0?[Dn(Dn({},Ge),{cells:yt})]:[]}),he=fh(ne);return $a(he.length>0,he)}).map(function(k){return S1(k)})},HC=tinymce.util.Tools.resolve("tinymce.util.Tools"),F1=function(u,l,d){var h=u.select("td,th",l),y,k=function(R,$){for(var j=0;j<$.length;j++){var ne=u.getStyle($[j],d);if(typeof R=="undefined"&&(R=ne),R!==ne)return""}return R};return k(y,h)},L1=function(u,l,d){d&&u.formatter.apply("align"+d,{},l)},VC=function(u,l,d){d&&u.formatter.apply("valign"+d,{},l)},Ut=function(u,l){HC.each("left center right".split(" "),function(d){u.formatter.remove("align"+d,{},l)})},Pi=function(u,l){HC.each("top middle bottom".split(" "),function(d){u.formatter.remove("valign"+d,{},l)})},Wd=[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}],$i=function(u){return{value:u}},Ec=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Ty=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,jd=function(u){return Ec.test(u)||Ty.test(u)},H1=function(u){return cn(u,"#").toUpperCase()},sg=function(u){return jd(u)?Y.some({value:H1(u)}):Y.none()},qd=function(u){var l=u.toString(16);return(l.length===1?"0"+l:l).toUpperCase()},bh=function(u){var l=qd(u.red)+qd(u.green)+qd(u.blue);return $i(l)},Qk=/^rgb\((\d+),\s*(\d+),\s*(\d+)\)/,eE=/^rgba\((\d+),\s*(\d+),\s*(\d+),\s*(\d?(?:\.\d+)?)\)/,ky=function(u,l,d,h){return{red:u,green:l,blue:d,alpha:h}},Ey=function(u,l,d,h){var y=parseInt(u,10),k=parseInt(l,10),R=parseInt(d,10),$=parseFloat(h);return ky(y,k,R,$)},UC=function(u){if(u==="transparent")return Y.some(ky(0,0,0,0));var l=Qk.exec(u);if(l!==null)return Y.some(Ey(l[1],l[2],l[3],"1"));var d=eE.exec(u);return d!==null?Y.some(Ey(d[1],d[2],d[3],d[4])):Y.none()},Gd=function(u){return sg(u).orThunk(function(){return UC(u).map(bh)}).getOrThunk(function(){var l=document.createElement("canvas");l.height=1,l.width=1;var d=l.getContext("2d");d.clearRect(0,0,l.width,l.height),d.fillStyle="#FFFFFF",d.fillStyle=u,d.fillRect(0,0,1,1);var h=d.getImageData(0,0,1,1).data,y=h[0],k=h[1],R=h[2],$=h[3];return bh(ky(y,k,R,$))})},Jc=function(u){var l=u,d=function(){return l},h=function(y){l=y};return{get:d,set:h}},yh=function(u){var l=Jc(Y.none()),d=function(){return l.get().each(u)},h=function(){d(),l.set(Y.none())},y=function(){return l.get().isSome()},k=function(){return l.get()},R=function($){d(),l.set(Y.some($))};return{clear:h,isSet:y,get:k,set:R}},Oy=function(){return yh(function(u){return u.unbind()})},Kd=function(){var u=yh(We),l=function(d){return u.get().each(d)};return Dn(Dn({},u),{on:l})},wh=function(u,l,d,h){return function(y){var k=Oy(),R=ma(h),$=function(){var j=Xi(l),ne=function(he){return u.formatter.match(d,{value:h},he.dom,R)};R?(y.setActive(!_(j,ne)),k.set(u.formatter.formatChanged(d,function(he){return y.setActive(!he)},!0))):(y.setActive(Mt(j,ne)),k.set(u.formatter.formatChanged(d,y.setActive,!1,{value:h})))};return u.initialized?$():u.on("init",$),k.clear}},Ch=function(u){return le(u,"menu")},tf=function(u){return wt(u,function(l){var d=l.text||l.title;return Ch(l)?{text:d,items:tf(l.menu)}:{text:d,value:l.value}})},Oc=function(u,l,d,h,y){return wt(d,function(k){var R=k.text||k.title;return Ch(k)?{type:"nestedmenuitem",text:R,getSubmenuItems:function(){return Oc(u,l,k.menu,h,y)}}:{text:R,type:"togglemenuitem",onAction:function(){return y(k.value)},onSetup:wh(u,l,h,k.value)}})},$v=function(u,l){return function(d){var h;u.execCommand("mceTableApplyCellStyle",!1,(h={},h[l]=d,h))}},Xd=function(u){return Sr(u,function(l){return Ch(l)?[Dn(Dn({},l),{menu:Xd(l.menu)})]:Tr(l.value)?[l]:[]})},Sh=function(u,l,d,h,y){return function(k){return k(Oc(u,l,d,h,y))}},V1=function(u,l,d){var h=wt(l,function(y){return{text:y.title,value:"#"+Gd(y.value).value,type:"choiceitem"}});return[{type:"fancymenuitem",fancytype:"colorswatch",initData:{colors:h.length>0?h:void 0,allowCustomColors:!1},onAction:function(y){var k,R=y.value==="remove"?"":y.value;u.execCommand("mceTableApplyCellStyle",!1,(k={},k[d]=R,k))}}]},xh=function(u){return function(){var l=u.queryCommandValue("mceTableRowType"),d=l==="header"?"body":"header";u.execCommand("mceTableRowType",!1,{type:d})}},Ay=function(u){return function(){var l=u.queryCommandValue("mceTableColType"),d=l==="th"?"td":"th";u.execCommand("mceTableColType",!1,{type:d})}},tE=function(u){var l=tf(V0(u));return l.length>0?Y.some({name:"class",type:"listbox",label:"Class",items:l}):Y.none()},U1=[{name:"width",type:"input",label:"Width"},{name:"height",type:"input",label:"Height"},{name:"celltype",type:"listbox",label:"Cell type",items:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{name:"scope",type:"listbox",label:"Scope",items:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{name:"halign",type:"listbox",label:"Horizontal align",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{name:"valign",type:"listbox",label:"Vertical align",items:Wd}],tu=function(u){return U1.concat(tE(u).toArray())},lc=function(u,l){var d=[{text:"Select...",value:""}],h=[{name:"borderstyle",type:"listbox",label:"Border style",items:d.concat(tf(Hs(u)))},{name:"bordercolor",type:"colorinput",label:"Border color"},{name:"backgroundcolor",type:"colorinput",label:"Background color"}],y={name:"borderwidth",type:"input",label:"Border width"},k=l==="cell"?[y].concat(h):h;return{title:"Advanced",name:"advanced",items:k}},Zc=function(u){return function(l,d){var h=l.dom,y=function($,j){(!u||j)&&h.setAttrib(d,$,j)},k=function($,j){(!u||j)&&h.setStyle(d,$,j)},R=function($,j){(!u||j)&&(j===""?l.formatter.remove($,{value:null},d,!0):l.formatter.apply($,{value:j},d))};return{setAttrib:y,setStyle:k,setFormat:R}}},Al={normal:Zc(!1),ifTruthy:Zc(!0)},nf=function(u){return function(l){return xr(l,"rgb")?u.toHex(l):l}},Nv=function(u,l){var d=st.fromDom(l);return{borderwidth:Ju(d,"border-width").getOr(""),borderstyle:Ju(d,"border-style").getOr(""),bordercolor:Ju(d,"border-color").map(nf(u)).getOr(""),backgroundcolor:Ju(d,"background-color").map(nf(u)).getOr("")}},cg=function(u){var l=u[0],d=u.slice(1);return Vt(d,function(h){Vt(Jo(l),function(y){fa(h,function(k,R){var $=l[y];$!==""&&y===R&&$!==k&&(l[y]="")})})}),l},WC=function(u,l,d,h){return dt(u,function(y){return!Ar(d.formatter.matchNode(h,l+y))}).getOr("")},Th=ze(WC,["left","center","right"],"align"),nE=ze(WC,["top","middle","bottom"],"valign"),Dy=function(u,l){var d=oh(u),h=Gm(u),y=function(he){return{borderstyle:lr(d,"border-style").getOr(""),bordercolor:nf(he)(lr(d,"border-color").getOr("")),backgroundcolor:nf(he)(lr(d,"background-color").getOr(""))}},k={height:"",width:"100%",cellspacing:"",cellpadding:"",caption:!1,class:"",align:"",border:""},R=function(){var he=d["border-width"];return Ai(u)&&he?{border:he}:lr(h,"border").fold(function(){return{}},function(Ge){return{border:Ge}})},$=l?y(u.dom):{},j=function(){var he=lr(d,"border-spacing").or(lr(h,"cellspacing")).fold(function(){return{}},function(yt){return{cellspacing:yt}}),Ge=lr(d,"border-padding").or(lr(h,"cellpadding")).fold(function(){return{}},function(yt){return{cellpadding:yt}});return Dn(Dn({},he),Ge)},ne=Dn(Dn(Dn(Dn(Dn(Dn({},k),d),h),$),R()),j());return ne},jC=function(u){return so(st.fromDom(u)).map(function(l){var d={selection:jc(u.cells)};return Pv(l,d)}).getOr("")},qC=function(u,l,d){var h=function($,j){var ne=Ju(st.fromDom(j),"border-width");return Ai(u)&&ne.isSome()?ne.getOr(""):$.getAttrib(j,"border")||F1(u.dom,j,"border-width")||F1(u.dom,j,"border")},y=u.dom,k=Ai(u)?y.getStyle(l,"border-spacing")||y.getAttrib(l,"cellspacing"):y.getAttrib(l,"cellspacing")||y.getStyle(l,"border-spacing"),R=Ai(u)?F1(y,l,"padding")||y.getAttrib(l,"cellpadding"):y.getAttrib(l,"cellpadding")||F1(y,l,"padding");return Dn({width:y.getStyle(l,"width")||y.getAttrib(l,"width"),height:y.getStyle(l,"height")||y.getAttrib(l,"height"),cellspacing:k,cellpadding:R,border:h(y,l),caption:!!y.select("caption",l)[0],class:y.getAttrib(l,"class",""),align:Th(u,l)},d?Nv(y,l):{})},Ry=function(u,l,d){var h=u.dom;return Dn({height:h.getStyle(l,"height")||h.getAttrib(l,"height"),class:h.getAttrib(l,"class",""),type:jC(l),align:Th(u,l)},d?Nv(h,l):{})},_y=function(u,l,d,h){var y=u.dom,k=h.getOr(l),R=function($,j){return y.getStyle($,j)||y.getAttrib($,j)};return Dn({width:R(k,"width"),height:R(l,"height"),scope:y.getAttrib(l,"scope"),celltype:Lp(l),class:y.getAttrib(l,"class",""),halign:Th(u,l),valign:nE(u,l)},d?Nv(y,l):{})},Ba=function(u,l){var d=hr.fromTable(u),h=hr.justCells(d),y=or(h,function(k){return _(l,function(R){return wr(k.element,R)})});return wt(y,function(k){return{element:k.element.dom,column:hr.getColumnAt(d,k.column).map(function(R){return R.element.dom})}})},rf=function(u,l,d){u.setAttrib("scope",d.scope),u.setAttrib("class",d.class),u.setStyle("height",ku(d.height)),l.setStyle("width",ku(d.width))},GC=function(u,l){u.setFormat("tablecellbackgroundcolor",l.backgroundcolor),u.setFormat("tablecellbordercolor",l.bordercolor),u.setFormat("tablecellborderstyle",l.borderstyle),u.setFormat("tablecellborderwidth",ku(l.borderwidth))},By=function(u,l,d){var h=l.length===1;Vt(l,function(y){var k=y.element,R=h?Al.normal(u,k):Al.ifTruthy(u,k),$=y.column.map(function(j){return h?Al.normal(u,j):Al.ifTruthy(u,j)}).getOr(R);rf(R,$,d),ih(u)&&GC(R,d),h&&(Ut(u,k),Pi(u,k)),d.halign&&L1(u,k,d.halign),d.valign&&VC(u,k,d.valign)})},My=function(u,l){u.execCommand("mceTableCellType",!1,{type:l.celltype,no_events:!0})},kh=function(u,l,d,h){var y=Xe(h,function(k,R){return d[R]!==k});gn(y)>0&&l.length>=1&&so(l[0]).each(function(k){var R=Ba(k,l),$=gn(Xe(y,function(ne,he){return he!=="scope"&&he!=="celltype"}))>0,j=V(y,"celltype");($||V(y,"scope"))&&By(u,R,h),j&&My(u,h),as(u,k.dom,{structure:j,style:$})})},jn=function(u,l,d,h){var y=h.getData();h.close(),u.undoManager.transact(function(){kh(u,l,d,y),u.focus()})},Py=function(u,l){var d=so(l[0]).map(function(h){return wt(Ba(h,l),function(y){return _y(u,y.element,ih(u),y.column)})});return cg(d.getOrDie())},KC=function(u,l){var d=Xi(l);if(d.length!==0){var h=Py(u,d),y={type:"tabpanel",tabs:[{title:"General",name:"general",items:tu(u)},lc(u,"cell")]},k={type:"panel",items:[{type:"grid",columns:2,items:tu(u)}]};u.windowManager.open({title:"Cell Properties",size:"normal",body:ih(u)?y:k,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:h,onSubmit:ze(jn,u,d,h)})}},rE=function(u){var l=tf(Ve(u));return l.length>0?Y.some({name:"class",type:"listbox",label:"Class",items:l}):Y.none()},XC=[{type:"listbox",name:"type",label:"Row type",items:[{text:"Header",value:"header"},{text:"Body",value:"body"},{text:"Footer",value:"footer"}]},{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height",type:"input"}],YC=function(u){return XC.concat(rE(u).toArray())},$y=function(u,l){u.setAttrib("class",l.class),u.setStyle("height",ku(l.height))},Ny=function(u,l){u.setStyle("background-color",l.backgroundcolor),u.setStyle("border-color",l.bordercolor),u.setStyle("border-style",l.borderstyle)},W1=function(u,l,d,h){var y=l.length===1;Vt(l,function(k){var R=y?Al.normal(u,k):Al.ifTruthy(u,k);$y(R,d),s1(u)&&Ny(R,d),d.align!==h.align&&(Ut(u,k),L1(u,k,d.align))})},aE=function(u,l){u.execCommand("mceTableRowType",!1,{type:l.type,no_events:!0})},JC=function(u,l,d,h){var y=Xe(h,function($,j){return d[j]!==$});if(gn(y)>0){var k=V(y,"type"),R=k?gn(y)>1:!0;R&&W1(u,l,h,d),k&&aE(u,h),so(st.fromDom(l[0])).each(function($){return as(u,$.dom,{structure:k,style:R})})}},oE=function(u,l,d,h){var y=h.getData();h.close(),u.undoManager.transact(function(){JC(u,l,d,y),u.focus()})},js=function(u){var l=jT(di(u),bd.selected);if(l.length!==0){var d=wt(l,function(R){return Ry(u,R.dom,s1(u))}),h=cg(d),y={type:"tabpanel",tabs:[{title:"General",name:"general",items:YC(u)},lc(u,"row")]},k={type:"panel",items:[{type:"grid",columns:2,items:YC(u)}]};u.windowManager.open({title:"Row Properties",size:"normal",body:s1(u)?y:k,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:h,onSubmit:ze(oE,u,wt(l,function(R){return R.dom}),h)})}},us=function(u,l,d){var h=d?[{type:"input",name:"cols",label:"Cols",inputMode:"numeric"},{type:"input",name:"rows",label:"Rows",inputMode:"numeric"}]:[],y=[{type:"input",name:"width",label:"Width"},{type:"input",name:"height",label:"Height"}],k=Kc(u)?[{type:"input",name:"cellspacing",label:"Cell spacing",inputMode:"numeric"},{type:"input",name:"cellpadding",label:"Cell padding",inputMode:"numeric"},{type:"input",name:"border",label:"Border width"},{type:"label",label:"Caption",items:[{type:"checkbox",name:"caption",label:"Show caption"}]}]:[],R=[{type:"listbox",name:"align",label:"Alignment",items:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]}],$=l.length>0?[{type:"listbox",name:"class",label:"Class",items:l}]:[];return h.concat(y).concat(k).concat(R).concat($)},Iv=function(u,l,d,h){if(l.tagName==="TD"||l.tagName==="TH")vt(d)?u.setStyle(l,d,h):u.setStyle(l,d);else if(l.children)for(var y=0;y<l.children.length;y++)Iv(u,l.children[y],d,h)},ZC=function(u,l,d){var h=u.dom,y={},k={};if(y.class=d.class,k.height=ku(d.height),h.getAttrib(l,"width")&&!Ai(u)?y.width=Hp(d.width):k.width=ku(d.width),Ai(u)?(k["border-width"]=ku(d.border),k["border-spacing"]=ku(d.cellspacing)):(y.border=d.border,y.cellpadding=d.cellpadding,y.cellspacing=d.cellspacing),Ai(u)&&l.children)for(var R=0;R<l.children.length;R++)Iv(h,l.children[R],{"border-width":ku(d.border),padding:ku(d.cellpadding)}),Vs(u)&&Iv(h,l.children[R],{"border-color":d.bordercolor});Vs(u)&&(k["background-color"]=d.backgroundcolor,k["border-color"]=d.bordercolor,k["border-style"]=d.borderstyle),y.style=h.serializeStyle(Dn(Dn({},oh(u)),k)),h.setAttribs(l,Dn(Dn({},Gm(u)),y))},iE=function(u,l,d,h){var y=u.dom,k=h.getData(),R=Xe(k,function($,j){return d[j]!==$});h.close(),k.class===""&&delete k.class,u.undoManager.transact(function(){if(!l){var $=parseInt(k.cols,10)||1,j=parseInt(k.rows,10)||1;l=ig(u,$,j,0,0)}if(gn(R)>0){ZC(u,l,k);var ne=y.select("caption",l)[0];(ne&&!k.caption||!ne&&k.caption)&&u.execCommand("mceTableToggleCaption"),k.align===""?Ut(u,l):L1(u,l,k.align)}if(u.focus(),u.addVisual(),gn(R)>0){var he=V(R,"caption"),Ge=he?gn(R)>1:!0;as(u,l,{structure:he,style:Ge})}})},QC=function(u,l){var d=u.dom,h,y=Dy(u,Vs(u));l===!1?(h=d.getParent(u.selection.getStart(),"table",u.getBody()),h?y=qC(u,h,Vs(u)):Vs(u)&&(y.borderstyle="",y.bordercolor="",y.backgroundcolor="")):(y.cols="1",y.rows="1",Vs(u)&&(y.borderstyle="",y.bordercolor="",y.backgroundcolor=""));var k=tf(Ev(u));k.length>0&&y.class&&(y.class=y.class.replace(/\s*mce\-item\-table\s*/g,""));var R={type:"grid",columns:2,items:us(u,k,l)},$=function(){return{type:"panel",items:[R]}},j=function(){return{type:"tabpanel",tabs:[{title:"General",name:"general",items:[R]},lc(u,"table")]}},ne=Vs(u)?j():$();u.windowManager.open({title:"Table Properties",size:"normal",body:ne,onSubmit:ze(iE,u,h,y),buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:y})},Or=function(u){return wd(di(u),Gi(u))},eS=function(u){return Fs(di(u),Gi(u))},Eh=function(u,l,d,h,y){var k=Gi(u),R=function(){return Or(u).each(function(In){so(In,k).filter(Ee(k)).each(function(Jn){var Hr=st.fromText("");if(Ua(Jn,Hr),gs(Jn),u.dom.isEmpty(u.getBody()))u.setContent(""),u.selection.setCursorLocation();else{var br=u.dom.createRng();br.setStart(Hr.dom,0),br.setEnd(Hr.dom,0),u.selection.setRng(br),u.nodeChanged()}})})},$=function(In){return Or(u).each(function(Jn){var Hr=Ov(u)||Km(u)||uh(u);Hr||so(Jn,k).each(function(br){In==="relative"&&!$2(br)?sh(br):In==="fixed"&&!bv(br)?v1(br):In==="responsive"&&!rh(br)&&d1(br),Ki(br),as(u,br.dom,Oi)})})},j=function(In){return so(In,k)},ne=function(In){return eS(u).bind(function(Jn){return j(Jn).map(function(Hr){return In(Hr,Jn)})})},he=function(In,Jn){ne(function(Hr){u.formatter.toggle("tableclass",{value:Jn},Hr.dom),as(u,Hr.dom,o1)})},Ge=function(In,Jn){ne(function(Hr){var br=Xi(h),Io=Mt(br,function(Hu){return u.formatter.match("tablecellclass",{value:Jn},Hu.dom)}),Ni=Io?u.formatter.remove:u.formatter.apply;Vt(br,function(Hu){return Ni("tablecellclass",{value:Jn},Hu.dom)}),as(u,Hr.dom,o1)})},yt=function(){Or(u).each(function(In){so(In,k).each(function(Jn){Xn(Jn,"caption").fold(function(){var Hr=st.fromTag("caption");Ao(Hr,st.fromText("Caption")),kT(Jn,Hr,0),u.selection.setCursorLocation(Hr.dom,0)},function(Hr){to("caption")(In)&&qu("td",Jn).each(function(br){return u.selection.setCursorLocation(br.dom,0)}),gs(Hr)}),as(u,Jn.dom,Oi)})})},at=function(In){u.focus()},Ke=function(In,Jn){return Jn===void 0&&(Jn=!1),ne(function(Hr,br){var Io=dv(h,Hr,br);In(Hr,Io,Jn).each(at)})},Ot=function(){return ne(function(In,Jn){var Hr=dv(h,In,Jn),br=lo(We,st.fromDom(u.getDoc()),Y.none());return LC(In,Hr,br)})},Et=function(){return ne(function(In,Jn){var Hr=dv(h,In,Jn);return FC(In,Hr)})},kn=function(In,Jn){return Jn().each(function(Hr){var br=wt(Hr,function(Io){return ba(Io)});ne(function(Io,Ni){var Hu=zs(st.fromDom(u.getDoc())),ra=D2(h,Ni,br,Hu);In(Io,ra).each(at)})})},Jr=function(In){return function(Jn,Hr){return lr(Hr,"type").each(function(br){Ke(In(br),Hr.no_events)})}};fa({mceTableSplitCells:function(){return Ke(l.unmergeCells)},mceTableMergeCells:function(){return Ke(l.mergeCells)},mceTableInsertRowBefore:function(){return Ke(l.insertRowsBefore)},mceTableInsertRowAfter:function(){return Ke(l.insertRowsAfter)},mceTableInsertColBefore:function(){return Ke(l.insertColumnsBefore)},mceTableInsertColAfter:function(){return Ke(l.insertColumnsAfter)},mceTableDeleteCol:function(){return Ke(l.deleteColumn)},mceTableDeleteRow:function(){return Ke(l.deleteRow)},mceTableCutCol:function(){return Et().each(function(In){y.setColumns(In),Ke(l.deleteColumn)})},mceTableCutRow:function(){return Ot().each(function(In){y.setRows(In),Ke(l.deleteRow)})},mceTableCopyCol:function(){return Et().each(function(In){return y.setColumns(In)})},mceTableCopyRow:function(){return Ot().each(function(In){return y.setRows(In)})},mceTablePasteColBefore:function(){return kn(l.pasteColsBefore,y.getColumns)},mceTablePasteColAfter:function(){return kn(l.pasteColsAfter,y.getColumns)},mceTablePasteRowBefore:function(){return kn(l.pasteRowsBefore,y.getRows)},mceTablePasteRowAfter:function(){return kn(l.pasteRowsAfter,y.getRows)},mceTableDelete:R,mceTableCellToggleClass:Ge,mceTableToggleClass:he,mceTableToggleCaption:yt,mceTableSizingMode:function(In,Jn){return $(Jn)},mceTableCellType:Jr(function(In){return In==="th"?l.makeCellsHeader:l.unmakeCellsHeader}),mceTableColType:Jr(function(In){return In==="th"?l.makeColumnsHeader:l.unmakeColumnsHeader}),mceTableRowType:Jr(function(In){switch(In){case"header":return l.makeRowsHeader;case"footer":return l.makeRowsFooter;default:return l.makeRowsBody}})},function(In,Jn){return u.addCommand(Jn,In)}),fa({mceTableProps:ze(QC,u,!1),mceTableRowProps:ze(js,u),mceTableCellProps:ze(KC,u,h)},function(In,Jn){return u.addCommand(Jn,function(){return In()})}),u.addCommand("mceInsertTable",function(In,Jn){Yt(Jn)&&Jo(Jn).length>0?NC(u,Jn.rows,Jn.columns,Jn.options,"Invalid values for mceInsertTable - rows and columns values are required to insert a table."):QC(u,!0)}),u.addCommand("mceTableApplyCellStyle",function(In,Jn){var Hr=function(Ni){return"tablecell"+Ni.toLowerCase().replace("-","")};if(!!Yt(Jn)){var br=Xi(h);if(br.length!==0){var Io=Xe(Jn,function(Ni,Hu){return u.formatter.has(Hr(Hu))&&vt(Ni)});Te(Io)||(fa(Io,function(Ni,Hu){Vt(br,function(ra){Al.normal(u,ra.dom).setFormat(Hr(Hu),Ni)})}),j(br[0]).each(function(Ni){return as(u,Ni.dom,o1)}))}}})},lg=function(u,l,d){var h=Gi(u),y=function(k){return Fs(di(u)).bind(function(R){return so(R,h).map(function($){var j=dv(d,$,R);return k($,j)})}).getOr("")};fa({mceTableRowType:function(){return y(l.getTableRowType)},mceTableCellType:function(){return y(l.getTableCellType)},mceTableColType:function(){return y(l.getTableColType)}},function(k,R){return u.addQueryValueHandler(R,k)})},j1=function(){var u=Kd(),l=Kd();return{getRows:u.get,setRows:function(d){d.fold(u.clear,u.set),l.clear()},clearRows:u.clear,getColumns:l.get,setColumns:function(d){d.fold(l.clear,l.set),u.clear()},clearColumns:l.clear}},fg={remove_similar:!0,inherit:!1},vg=Dn({selector:"td,th"},fg),uE={tablecellbackgroundcolor:Dn({styles:{backgroundColor:"%value"}},vg),tablecellverticalalign:Dn({styles:{"vertical-align":"%value"}},vg),tablecellbordercolor:Dn({styles:{borderColor:"%value"}},vg),tablecellclass:Dn({classes:["%value"]},vg),tableclass:Dn({selector:"table",classes:["%value"]},fg),tablecellborderstyle:Dn({styles:{borderStyle:"%value"}},vg),tablecellborderwidth:Dn({styles:{borderWidth:"%value"}},vg)},sE=function(u){u.formatter.register(uE)},Iy=Hl.generate([{none:["current"]},{first:["current"]},{middle:["current","target"]},{last:["current"]}]),zy=function(u){return u===void 0&&(u=void 0),Iy.none(u)},Yd=Dn(Dn({},Iy),{none:zy}),q1=function(u,l,d,h,y){y===void 0&&(y=pt);var k=h===1;if(!k&&d<=0)return Yd.first(u[0]);if(k&&d>=u.length-1)return Yd.last(u[u.length-1]);var R=d+h,$=u[R];return y($)?Yd.middle(l,$):q1(u,l,R,h,y)},tS=function(u,l){return so(u,l).bind(function(d){var h=Sf(d),y=Ft(h,function(k){return wr(u,k)});return y.map(function(k){return{index:k,all:h}})})},cE=function(u,l,d){var h=tS(u,d);return h.fold(function(){return Yd.none(u)},function(y){return q1(y.all,u,y.index,1,l)})},Fy=function(u,l,d){var h=tS(u,d);return h.fold(function(){return Yd.none()},function(y){return q1(y.all,u,y.index,-1,l)})},lE=function(u,l,d,h){return{start:u,soffset:l,finish:d,foffset:h}},Oh={create:lE},Ly=Hl.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),Mn=function(u,l,d,h){return u.fold(l,d,h)},nS=function(u){return u.fold(sn,sn,sn)},fE=Ly.before,rS=Ly.on,dg=Ly.after,ss={before:fE,on:rS,after:dg,cata:Mn,getStart:nS},Ah=Hl.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),vE=function(u){return Ah.exact(u.start,u.soffset,u.finish,u.foffset)},Hy=function(u){return u.match({domRange:function(l){return st.fromDom(l.startContainer)},relative:function(l,d){return ss.getStart(l)},exact:function(l,d,h,y){return l}})},G1=Ah.domRange,aS=Ah.relative,oS=Ah.exact,iS=function(u){var l=Hy(u);return Zs(l)},uS=Oh.create,Uf={domRange:G1,relative:aS,exact:oS,exactFromRange:vE,getWin:iS,range:uS},dE=function(u,l){var d=u.document.createRange();return d.selectNode(l.dom),d},mE=function(u,l){var d=u.document.createRange();return mg(d,l),d},mg=function(u,l){return u.selectNodeContents(l.dom)},gE=function(u,l){l.fold(function(d){u.setStartBefore(d.dom)},function(d,h){u.setStart(d.dom,h)},function(d){u.setStartAfter(d.dom)})},hE=function(u,l){l.fold(function(d){u.setEndBefore(d.dom)},function(d,h){u.setEnd(d.dom,h)},function(d){u.setEndAfter(d.dom)})},ca=function(u,l,d){var h=u.document.createRange();return gE(h,l),hE(h,d),h},gg=function(u,l,d,h,y){var k=u.document.createRange();return k.setStart(l.dom,d),k.setEnd(h.dom,y),k},zv=function(u){return{left:u.left,top:u.top,right:u.right,bottom:u.bottom,width:u.width,height:u.height}},af=function(u){var l=u.getClientRects(),d=l.length>0?l[0]:u.getBoundingClientRect();return d.width>0||d.height>0?Y.some(d).map(zv):Y.none()},Fv=Hl.generate([{ltr:["start","soffset","finish","foffset"]},{rtl:["start","soffset","finish","foffset"]}]),Lu=function(u,l,d){return l(st.fromDom(d.startContainer),d.startOffset,st.fromDom(d.endContainer),d.endOffset)},K1=function(u,l){return l.match({domRange:function(d){return{ltr:Fe(d),rtl:Y.none}},relative:function(d,h){return{ltr:Fo(function(){return ca(u,d,h)}),rtl:Fo(function(){return Y.some(ca(u,h,d))})}},exact:function(d,h,y,k){return{ltr:Fo(function(){return gg(u,d,h,y,k)}),rtl:Fo(function(){return Y.some(gg(u,y,k,d,h))})}}})},Dh=function(u,l){var d=l.ltr();if(d.collapsed){var h=l.rtl().filter(function(y){return y.collapsed===!1});return h.map(function(y){return Fv.rtl(st.fromDom(y.endContainer),y.endOffset,st.fromDom(y.startContainer),y.startOffset)}).getOrThunk(function(){return Lu(u,Fv.ltr,d)})}else return Lu(u,Fv.ltr,d)},hg=function(u,l){var d=K1(u,l);return Dh(u,d)},Lv=function(u,l){var d=hg(u,l);return d.match({ltr:function(h,y,k,R){var $=u.document.createRange();return $.setStart(h.dom,y),$.setEnd(k.dom,R),$},rtl:function(h,y,k,R){var $=u.document.createRange();return $.setStart(k.dom,R),$.setEnd(h.dom,y),$}})};Fv.ltr,Fv.rtl;var pE=function(u,l,d,h,y){if(y===0)return 0;if(l===h)return y-1;for(var k=h,R=1;R<y;R++){var $=u(R),j=Math.abs(l-$.left);if(d<=$.bottom){if(d<$.top||j>k)return R-1;k=j}}return 0},sS=function(u,l,d){return l>=u.left&&l<=u.right&&d>=u.top&&d<=u.bottom},X1=function(u,l,d,h,y){var k=function(ne){var he=u.dom.createRange();return he.setStart(l.dom,ne),he.collapse(!0),he},R=function(ne){var he=k(ne);return he.getBoundingClientRect()},$=Rp(l).length,j=pE(R,d,h,y.right,$);return k(j)},bE=function(u,l,d,h){var y=u.dom.createRange();y.selectNode(l.dom);var k=y.getClientRects(),R=Qr(k,function($){return sS($,d,h)?Y.some($):Y.none()});return R.map(function($){return X1(u,l,d,h,$)})},Lr=function(u,l,d,h){var y=u.dom.createRange(),k=w(l);return Qr(k,function(R){return y.selectNode(R.dom),sS(y.getBoundingClientRect(),d,h)?Qc(u,R,d,h):Y.none()})},Qc=function(u,l,d,h){return wi(l)?bE(u,l,d,h):Lr(u,l,d,h)},pg=function(u,l,d,h){var y=u.dom.createRange();y.selectNode(l.dom);var k=y.getBoundingClientRect(),R=Math.max(k.left,Math.min(k.right,d)),$=Math.max(k.top,Math.min(k.bottom,h));return Qc(u,l,R,$)},cS=!0,Rh=!1,Wr=function(u,l){return l-u.left<u.right-l?cS:Rh},Vy=function(u,l,d){var h=u.dom.createRange();return h.selectNode(l.dom),h.collapse(d),h},lS=function(u,l,d){var h=u.dom.createRange();h.selectNode(l.dom);var y=h.getBoundingClientRect(),k=Wr(y,d),R=k===cS?Zg:Fp;return R(l).map(function($){return Vy(u,$,k)})},_h=function(u,l,d){var h=l.dom.getBoundingClientRect(),y=Wr(h,d);return Y.some(Vy(u,l,y))},fS=function(u,l,d){var h=w(l).length===0?_h:lS;return h(u,l,d)},Bh=function(u,l,d){var h,y;return Y.from((y=(h=u.dom).caretPositionFromPoint)===null||y===void 0?void 0:y.call(h,l,d)).bind(function(k){if(k.offsetNode===null)return Y.none();var R=u.dom.createRange();return R.setStart(k.offsetNode,k.offset),R.collapse(),Y.some(R)})},Wf=function(u,l,d){var h,y;return Y.from((y=(h=u.dom).caretRangeFromPoint)===null||y===void 0?void 0:y.call(h,l,d))},Uy=function(u,l,d,h){var y=u.dom.createRange();y.selectNode(l.dom);var k=y.getBoundingClientRect(),R=Math.max(k.left,Math.min(k.right,d)),$=Math.max(k.top,Math.min(k.bottom,h));return pg(u,l,R,$)},vS=function(u,l,d){return st.fromPoint(u,l,d).bind(function(h){var y=function(){return fS(u,h,l)};return w(h).length===0?y():Uy(u,h,l,d).orThunk(y)})},yE=function(){return document.caretPositionFromPoint?Bh:document.caretRangeFromPoint?Wf:vS}(),wE=function(u,l,d){var h=st.fromDom(u.document);return yE(h,l,d).map(function(y){return Oh.create(st.fromDom(y.startContainer),y.startOffset,st.fromDom(y.endContainer),y.endOffset)})},Hv=function(u,l){var d=Cr(u);return d==="input"?ss.after(u):Ir(["br","img"],d)?l===0?ss.before(u):ss.after(u):ss.on(u,l)},Jd=function(u,l){var d=u.fold(ss.before,Hv,ss.after),h=l.fold(ss.before,Hv,ss.after);return Uf.relative(d,h)},bg=function(u,l,d,h){var y=Hv(u,l),k=Hv(d,h);return Uf.relative(y,k)},dS=function(u){return u.match({domRange:function(l){var d=st.fromDom(l.startContainer),h=st.fromDom(l.endContainer);return bg(d,l.startOffset,h,l.endOffset)},relative:Jd,exact:bg})},Wy=function(u,l,d,h){var y=Ds(u),k=y.dom.createRange();return k.setStart(u.dom,l),k.setEnd(d.dom,h),k},CE=function(u,l,d,h){var y=Wy(u,l,d,h),k=wr(u,d)&&l===h;return y.collapsed&&!k},Y1=function(u){return Y.from(u.getSelection())},J1=function(u,l){Y1(u).each(function(d){d.removeAllRanges(),d.addRange(l)})},jy=function(u,l,d,h,y){var k=gg(u,l,d,h,y);J1(u,k)},SE=function(u,l,d,h,y,k){l.collapse(d.dom,h),l.extend(y.dom,k)},qy=function(u,l){return hg(u,l).match({ltr:function(d,h,y,k){jy(u,d,h,y,k)},rtl:function(d,h,y,k){Y1(u).each(function(R){if(R.setBaseAndExtent)R.setBaseAndExtent(d.dom,h,y.dom,k);else if(R.extend)try{SE(u,R,d,h,y,k)}catch{jy(u,y,k,d,h)}else jy(u,y,k,d,h)})}})},Z1=function(u,l,d,h,y){var k=bg(l,d,h,y);qy(u,k)},Q1=function(u,l,d){var h=Jd(l,d);qy(u,h)},Gy=function(u){var l=Uf.getWin(u).dom,d=function(y,k,R,$){return gg(l,y,k,R,$)},h=dS(u);return hg(l,h).match({ltr:d,rtl:d})},Zd=function(u){if(u.rangeCount>0){var l=u.getRangeAt(0),d=u.getRangeAt(u.rangeCount-1);return Y.some(Oh.create(st.fromDom(l.startContainer),l.startOffset,st.fromDom(d.endContainer),d.endOffset))}else return Y.none()},eb=function(u){if(u.anchorNode===null||u.focusNode===null)return Zd(u);var l=st.fromDom(u.anchorNode),d=st.fromDom(u.focusNode);return CE(l,u.anchorOffset,d,u.focusOffset)?Y.some(Oh.create(l,u.anchorOffset,d,u.focusOffset)):Zd(u)},Ky=function(u,l,d){d===void 0&&(d=!0);var h=d?mE:dE,y=h(u,l);J1(u,y)},tb=function(u){return Y1(u).filter(function(l){return l.rangeCount>0}).bind(eb)},Mh=function(u){return tb(u).map(function(l){return Uf.exact(l.start,l.soffset,l.finish,l.foffset)})},mS=function(u,l){var d=Lv(u,l);return af(d)},xE=function(u,l,d){return wE(u,l,d)},gS=function(u){Y1(u).each(function(l){return l.removeAllRanges()})},hS=tinymce.util.Tools.resolve("tinymce.util.VK"),Xy=function(u,l,d){return Yy(u,l,cE(d,jm))},pS=function(u,l,d){return Yy(u,l,Fy(d,jm))},bS=function(u,l){var d=Uf.exact(l,0,l,0);return Gy(d)},Yy=function(u,l,d){return d.fold(Y.none,Y.none,function(h,y){return Zg(y).map(function(k){return bS(u,k)})},function(h){return u.execCommand("mceTableInsertRowAfter"),Xy(u,l,h)})},Jy=["table","li","dl"],TE=function(u,l,d){if(u.keyCode===hS.TAB){var h=bs(l),y=function($){var j=Cr($);return wr($,h)||Ir(Jy,j)},k=l.selection.getRng(),R=st.fromDom(u.shiftKey?k.startContainer:k.endContainer);dl(R,y).each(function($){u.preventDefault(),so($,y).each(d.clear),l.selection.collapse(u.shiftKey);var j=u.shiftKey?pS:Xy,ne=j(l,y,$);ne.each(function(he){l.selection.setRng(he)})})}},kE=function(u,l){return{selection:u,kill:l}},yg={create:kE},EE=function(u,l,d,h){return{start:ss.on(u,l),finish:ss.on(d,h)}},Vv={create:EE},yS=function(u,l){var d=Lv(u,l);return Oh.create(st.fromDom(d.startContainer),d.startOffset,st.fromDom(d.endContainer),d.endOffset)},Qd=Vv.create,nb=function(u,l,d,h,y,k,R){return wr(d,y)&&h===k?Y.none():Eo(d,"td,th",l).bind(function($){return Eo(y,"td,th",l).bind(function(j){return wS(u,l,$,j,R)})})},wS=function(u,l,d,h,y){return wr(d,h)?Y.none():iv(d,h,l).bind(function(k){var R=k.boxes.getOr([]);return R.length>1?(y(u,R,k.start,k.finish),Y.some(yg.create(Y.some(Qd(d,0,d,Wc(d))),!0))):Y.none()})},Zy=function(u,l,d,h,y){var k=function(R){return y.clearBeforeUpdate(d),y.selectRange(d,R.boxes,R.start,R.finish),R.boxes};return Em(h,u,l,y.firstSelectedSelector,y.lastSelectedSelector).map(k)},Ph=function(u,l){return{item:u,mode:l}},Qy=function(u,l,d,h){return h===void 0&&(h=em),u.property().parent(l).map(function(y){return Ph(y,h)})},em=function(u,l,d,h){return h===void 0&&(h=$h),d.sibling(u,l).map(function(y){return Ph(y,h)})},$h=function(u,l,d,h){h===void 0&&(h=$h);var y=u.property().children(l),k=d.first(y);return k.map(function(R){return Ph(R,h)})},OE=[{current:Qy,next:em,fallback:Y.none()},{current:em,next:$h,fallback:Y.some(Qy)},{current:$h,next:$h,fallback:Y.some(em)}],CS=function(u,l,d,h,y){y===void 0&&(y=OE);var k=dt(y,function(R){return R.current===d});return k.bind(function(R){return R.current(u,l,h,R.next).orThunk(function(){return R.fallback.bind(function($){return CS(u,l,$,h)})})})},wg=function(){var u=function(d,h){return d.query().prevSibling(h)},l=function(d){return d.length>0?Y.some(d[d.length-1]):Y.none()};return{sibling:u,first:l}},AE=function(){var u=function(d,h){return d.query().nextSibling(h)},l=function(d){return d.length>0?Y.some(d[0]):Y.none()};return{sibling:u,first:l}},Nh={left:wg,right:AE},Ih=function(u,l,d,h,y,k){var R=CS(u,l,h,y);return R.bind(function($){return k($.item)?Y.none():d($.item)?Y.some($.item):Ih(u,$.item,d,$.mode,y,k)})},SS=function(u,l,d,h){return Ih(u,l,d,em,Nh.left(),h)},Ac=function(u,l,d,h){return Ih(u,l,d,em,Nh.right(),h)},ew=function(u){return function(l){return u.property().children(l).length===0}},rb=function(u,l,d){return tw(u,l,ew(u),d)},DE=function(u,l,d){return xS(u,l,ew(u),d)},tw=SS,xS=Ac,ab=Vg(),zh=function(u,l){return rb(ab,u,l)},nw=function(u,l){return DE(ab,u,l)},TS=function(u,l,d){return tw(ab,u,l,d)},kS=function(u,l,d){return xS(ab,u,l,d)},jf=function(u,l,d){return xo(u,l,d).isSome()},ob=Hl.generate([{none:["message"]},{success:[]},{failedUp:["cell"]},{failedDown:["cell"]}]),RE=function(u,l,d){var h=u.getRect(l),y=u.getRect(d);return y.right>h.left&&y.left<h.right},rw=function(u){return Eo(u,"tr")},_E=function(u,l,d,h,y,k,R){return Eo(h,"td,th",R).bind(function($){return Eo(l,"td,th",R).map(function(j){return wr($,j)?wr(h,$)&&Wc($)===y?k(j):ob.none("in same cell"):Rn(rw,[$,j]).fold(function(){return RE(u,j,$)?ob.success():k(j)},function(ne){return k(j)})})}).getOr(ob.none("default"))},aw=function(u,l,d,h,y){return u.fold(l,d,h,y)},Cg=Dn(Dn({},ob),{verify:_E,cata:aw}),ib=function(u,l,d,h){return{parent:u,children:l,element:d,index:h}},BE=function(u){return no(u).bind(function(l){var d=w(l);return ES(d,u).map(function(h){return ib(l,d,u,h)})})},ES=function(u,l){return Ft(u,ze(wr,l))},ow=function(u){return Cr(u)==="br"},iw=function(u,l,d){return l(u,d).bind(function(h){return wi(h)&&Rp(h).trim().length===0?iw(h,l,d):Y.some(h)})},ME=function(u,l,d){return d.traverse(l).orThunk(function(){return iw(l,d.gather,u)}).map(d.relative)},ub=function(u,l){return D(u,l).filter(ow).orThunk(function(){return D(u,l-1).filter(ow)})},OS=function(u,l,d,h){return ub(l,d).bind(function(y){return h.traverse(y).fold(function(){return iw(y,h.gather,u).map(h.relative)},function(k){return BE(k).map(function(R){return ss.on(R.parent,R.index)})})})},AS=function(u,l,d,h){var y=ow(l)?ME(u,l,h):OS(u,l,d,h);return y.map(function(k){return{start:k,finish:k}})},DS=function(u){return Cg.cata(u,function(l){return Y.none()},function(){return Y.none()},function(l){return Y.some(Xm(l,0))},function(l){return Y.some(Xm(l,Wc(l)))})},Fh=function(u,l){return{left:u.left,top:u.top+l,right:u.right,bottom:u.bottom+l}},Lh=function(u,l){return{left:u.left,top:u.top-l,right:u.right,bottom:u.bottom-l}},tm=function(u,l,d){return{left:u.left+l,top:u.top+d,right:u.right+l,bottom:u.bottom+d}},RS=function(u){return u.top},_S=function(u){return u.bottom},sb=function(u,l,d){return d>=0&&d<Wc(l)?u.getRangedRect(l,d,l,d+1):d>0?u.getRangedRect(l,d-1,l,d):Y.none()},cb=function(u){return{left:u.left,top:u.top,right:u.right,bottom:u.bottom}},uw=function(u,l){return Y.some(u.getRect(l))},sw=function(u,l,d){return Vr(l)?uw(u,l).map(cb):wi(l)?sb(u,l,d).map(cb):Y.none()},BS=function(u,l){return Vr(l)?uw(u,l).map(cb):wi(l)?u.getRangedRect(l,0,l,Wc(l)).map(cb):Y.none()},of=5,cw=100,el=Hl.generate([{none:[]},{retry:["caret"]}]),PE=function(u,l){return u.left<l.left||Math.abs(l.right-u.left)<1||u.left>l.right},qf=function(u,l,d){return Ep(l,Yc).fold(Gt,function(h){return BS(u,h).exists(function(y){return PE(d,y)})})},MS=function(u,l,d,h,y){var k=Fh(y,of);return Math.abs(d.bottom-h.bottom)<1||d.top>y.bottom?el.retry(k):d.top===y.bottom?el.retry(Fh(y,1)):qf(u,l,y)?el.retry(tm(k,of,0)):el.none()},PS=function(u,l,d,h,y){var k=Lh(y,of);return Math.abs(d.top-h.top)<1||d.bottom<y.top?el.retry(k):d.bottom===y.top?el.retry(Lh(y,1)):qf(u,l,y)?el.retry(tm(k,of,0)):el.none()},$E={point:RS,adjuster:PS,move:Lh,gather:zh},NE={point:_S,adjuster:MS,move:Fh,gather:nw},Sg=function(u,l,d){return u.elementFromPoint(l,d).filter(function(h){return Cr(h)==="table"}).isSome()},xg=function(u,l,d,h,y){return lb(u,l,d,l.move(h,of),y)},lb=function(u,l,d,h,y){return y===0?Y.some(h):Sg(u,h.left,l.point(h))?xg(u,l,d,h,y-1):u.situsFromPoint(h.left,l.point(h)).bind(function(k){return k.start.fold(Y.none,function(R){return BS(u,R).bind(function($){return l.adjuster(u,R,$,d,h).fold(Y.none,function(j){return lb(u,l,d,j,y-1)})}).orThunk(function(){return Y.some(h)})},Y.none)})},$S=function(u,l){return u.situsFromPoint(l.left,l.bottom+of)},Uv=function(u,l){return u.situsFromPoint(l.left,l.top-of)},Wv=function(u,l,d){return u.point(l)>d.getInnerHeight()?Y.some(u.point(l)-d.getInnerHeight()):u.point(l)<0?Y.some(-u.point(l)):Y.none()},NS=function(u,l,d){var h=u.move(d,of),y=lb(l,u,d,h,cw).getOr(h);return Wv(u,y,l).fold(function(){return l.situsFromPoint(y.left,u.point(y))},function(k){return l.scrollBy(0,k),l.situsFromPoint(y.left,u.point(y)-k)})},Hh={tryUp:ze(NS,$E),tryDown:ze(NS,NE),ieTryUp:Uv,ieTryDown:$S,getJumpSize:Fe(of)},nm=20,Un=function(u,l,d){return u.getSelection().bind(function(h){return AS(l,h.finish,h.foffset,d).fold(function(){return Y.some(Xm(h.finish,h.foffset))},function(y){var k=u.fromSitus(y),R=Cg.verify(u,h.finish,h.foffset,k.finish,k.foffset,d.failure,l);return DS(R)})})},lw=function(u,l,d,h,y,k){return k===0?Y.none():Gf(u,l,d,h,y).bind(function(R){var $=u.fromSitus(R),j=Cg.verify(u,d,h,$.finish,$.foffset,y.failure,l);return Cg.cata(j,function(){return Y.none()},function(){return Y.some(R)},function(ne){return wr(d,ne)&&h===0?fb(u,d,h,Lh,y):lw(u,l,ne,0,y,k-1)},function(ne){return wr(d,ne)&&h===Wc(ne)?fb(u,d,h,Fh,y):lw(u,l,ne,Wc(ne),y,k-1)})})},fb=function(u,l,d,h,y){return sw(u,l,d).bind(function(k){return fw(u,y,h(k,Hh.getJumpSize()))})},fw=function(u,l,d){var h=Ln().browser;return h.isChrome()||h.isSafari()||h.isFirefox()||h.isEdge()?l.otherRetry(u,d):h.isIE()?l.ieRetry(u,d):Y.none()},Gf=function(u,l,d,h,y){return sw(u,d,h).bind(function(k){return fw(u,y,k)})},vb=function(u,l,d){return Un(u,l,d).bind(function(h){return lw(u,l,h.element,h.offset,d,nm).map(u.fromSitus)})},Vh=function(u,l){return jf(u,function(d){return no(d).exists(function(h){return wr(h,l)})})},db=function(u,l,d,h,y){return Eo(h,"td,th",l).bind(function(k){return Eo(k,"table",l).bind(function(R){return Vh(y,R)?vb(u,l,d).bind(function($){return Eo($.finish,"td,th",l).map(function(j){return{start:k,finish:j,range:$}})}):Y.none()})})},vw=function(u,l,d,h,y,k){return Ln().browser.isIE()?Y.none():k(h,l).orThunk(function(){return db(u,l,d,h,y).map(function(R){var $=R.range;return yg.create(Y.some(Qd($.start,$.soffset,$.finish,$.foffset)),!0)})})},dw=function(u,l){return Eo(u,"tr",l).bind(function(d){return Eo(d,"table",l).bind(function(h){var y=Rs(h,"tr");return wr(d,y[0])?TS(h,function(k){return Fp(k).isSome()},l).map(function(k){var R=Wc(k);return yg.create(Y.some(Qd(k,R,k,R)),!0)}):Y.none()})})},ar=function(u,l){return Eo(u,"tr",l).bind(function(d){return Eo(d,"table",l).bind(function(h){var y=Rs(h,"tr");return wr(d,y[y.length-1])?kS(h,function(k){return Zg(k).isSome()},l).map(function(k){return yg.create(Y.some(Qd(k,0,k,0)),!0)}):Y.none()})})},IS=function(u,l,d,h,y,k,R){return db(u,d,h,y,k).bind(function($){return wS(l,d,$.start,$.finish,R)})},gr=function(u,l){return Eo(u,"td,th",l)},zS=function(u,l,d,h){var y=Kd(),k=y.clear,R=function(he){y.on(function(Ge){h.clearBeforeUpdate(l),gr(he.target,d).each(function(yt){iv(Ge,yt,d).each(function(at){var Ke=at.boxes.getOr([]);if(Ke.length===1){var Ot=Ke[0],Et=e1(Ot)==="false",kn=fl(Qp(he.target),Ot,wr);Et&&kn&&(h.selectRange(l,Ke,Ot,Ot),u.selectContents(Ot))}else Ke.length>1&&(h.selectRange(l,Ke,at.start,at.finish),u.selectContents(yt))})})})},$=function(he){h.clear(l),gr(he.target,d).each(y.set)},j=function(he){R(he)},ne=function(he){R(he),k()};return{clearstate:k,mousedown:$,mouseover:j,mouseup:ne}},Uh={traverse:T,gather:nw,relative:ss.before,otherRetry:Hh.tryDown,ieRetry:Hh.ieTryDown,failure:Cg.failedDown},mb={traverse:M,gather:zh,relative:ss.before,otherRetry:Hh.tryUp,ieRetry:Hh.ieTryUp,failure:Cg.failedUp},jv=function(u){return function(l){return l===u}},mw=jv(38),gb=jv(40),Wh=function(u){return u>=37&&u<=40},FS={isBackward:jv(37),isForward:jv(39)},Yn={isBackward:jv(39),isForward:jv(37)},LS=function(u){var l=u!==void 0?u.dom:document,d=l.body.scrollLeft||l.documentElement.scrollLeft,h=l.body.scrollTop||l.documentElement.scrollTop;return Ia(d,h)},HS=function(u,l,d){var h=d!==void 0?d.dom:document,y=h.defaultView;y&&y.scrollBy(u,l)},Tg=function(u){var l=function(Et,kn){return st.fromPoint(st.fromDom(u.document),Et,kn)},d=function(Et){return Et.dom.getBoundingClientRect()},h=function(Et,kn,Jr,In){var Jn=Uf.exact(Et,kn,Jr,In);return mS(u,Jn)},y=function(){return Mh(u).map(function(Et){return yS(u,Et)})},k=function(Et){var kn=Uf.relative(Et.start,Et.finish);return yS(u,kn)},R=function(Et,kn){return xE(u,Et,kn).map(function(Jr){return Vv.create(Jr.start,Jr.soffset,Jr.finish,Jr.foffset)})},$=function(){gS(u)},j=function(Et){Et===void 0&&(Et=!1),Mh(u).each(function(kn){return kn.fold(function(Jr){return Jr.collapse(Et)},function(Jr,In){var Jn=Et?Jr:In;Q1(u,Jn,Jn)},function(Jr,In,Jn,Hr){var br=Et?Jr:Jn,Io=Et?In:Hr;Z1(u,br,Io,br,Io)})})},ne=function(Et){Ky(u,Et,!1)},he=function(Et){Ky(u,Et)},Ge=function(Et){Z1(u,Et.start,Et.soffset,Et.finish,Et.foffset)},yt=function(Et,kn){Q1(u,Et,kn)},at=function(){return u.innerHeight},Ke=function(){var Et=LS(st.fromDom(u.document));return Et.top},Ot=function(Et,kn){HS(Et,kn,st.fromDom(u.document))};return{elementFromPoint:l,getRect:d,getRangedRect:h,getSelection:y,fromSitus:k,situsFromPoint:R,clearSelection:$,collapseSelection:j,setSelection:Ge,setRelativeSelection:yt,selectNode:ne,selectContents:he,getInnerHeight:at,getScrollY:Ke,scrollBy:Ot}},rm=function(u,l){return{rows:u,cols:l}},VS=function(u,l,d,h){var y=Tg(u),k=zS(y,l,d,h);return{clearstate:k.clearstate,mousedown:k.mousedown,mouseover:k.mouseover,mouseup:k.mouseup}},US=function(u,l,d,h){var y=Tg(u),k=function(){return h.clear(l),Y.none()},R=function(j,ne,he,Ge,yt,at){var Ke=j.raw,Ot=Ke.which,Et=Ke.shiftKey===!0,kn=km(l,h.selectedSelector).fold(function(){return Wh(Ot)&&!Et&&h.clearBeforeUpdate(l),gb(Ot)&&Et?ze(IS,y,l,d,Uh,Ge,ne,h.selectRange):mw(Ot)&&Et?ze(IS,y,l,d,mb,Ge,ne,h.selectRange):gb(Ot)?ze(vw,y,d,Uh,Ge,ne,ar):mw(Ot)?ze(vw,y,d,mb,Ge,ne,dw):Y.none},function(Jr){var In=function(Jn){return function(){var Hr=Qr(Jn,function(br){return Zy(br.rows,br.cols,l,Jr,h)});return Hr.fold(function(){return zc(l,h.firstSelectedSelector,h.lastSelectedSelector).map(function(br){var Io=gb(Ot)||at.isForward(Ot)?ss.after:ss.before;return y.setRelativeSelection(ss.on(br.first,0),Io(br.table)),h.clear(l),yg.create(Y.none(),!0)})},function(br){return Y.some(yg.create(Y.none(),!0))})}};return gb(Ot)&&Et?In([rm(1,0)]):mw(Ot)&&Et?In([rm(-1,0)]):at.isBackward(Ot)&&Et?In([rm(0,-1),rm(-1,0)]):at.isForward(Ot)&&Et?In([rm(0,1),rm(1,0)]):Wh(Ot)&&!Et?k:Y.none});return kn()},$=function(j,ne,he,Ge,yt){return km(l,h.selectedSelector).fold(function(){var at=j.raw,Ke=at.which,Ot=at.shiftKey===!0;return Ot&&Wh(Ke)?nb(l,d,ne,he,Ge,yt,h.selectRange):Y.none()},Y.none)};return{keydown:R,keyup:$}},gw=function(u,l,d,h){var y=Tg(u);return function(k,R){h.clearBeforeUpdate(l),iv(k,R,d).each(function($){var j=$.boxes.getOr([]);h.selectRange(l,j,$.start,$.finish),y.selectContents(R),y.collapseSelection()})}},hb=function(u,l){Vt(l,function(d){Cv(u,d)})},WS=function(u){return function(l){za(l,u)}},pb=function(u){return function(l){hb(l,u)}},jS=function(u){var l=WS(u.selected),d=pb([u.selected,u.lastSelected,u.firstSelected]),h=function(k){var R=Rs(k,u.selectedSelector);Vt(R,d)},y=function(k,R,$,j){h(k),Vt(R,l),za($,u.firstSelected),za(j,u.lastSelected)};return{clearBeforeUpdate:h,clear:h,selectRange:y,selectedSelector:u.selectedSelector,firstSelectedSelector:u.firstSelectedSelector,lastSelectedSelector:u.lastSelectedSelector}},qS=function(u,l,d){var h=function(j){Xa(j,u.selected),Xa(j,u.firstSelected),Xa(j,u.lastSelected)},y=function(j){Si(j,u.selected,"1")},k=function(j){R(j),d()},R=function(j){var ne=Rs(j,u.selectedSelector+","+u.firstSelectedSelector+","+u.lastSelectedSelector);Vt(ne,h)},$=function(j,ne,he,Ge){k(j),Vt(ne,y),Si(he,u.firstSelected,"1"),Si(Ge,u.lastSelected,"1"),l(ne,he,Ge)};return{clearBeforeUpdate:R,clear:k,selectRange:$,selectedSelector:u.selectedSelector,firstSelectedSelector:u.firstSelectedSelector,lastSelectedSelector:u.lastSelectedSelector}},IE={byClass:jS,byAttr:qS},zE=function(u,l){var d=u.slice(0,l[l.length-1].row+1),h=fh(d);return Sr(h,function(y){var k=y.cells.slice(0,l[l.length-1].column+1);return wt(k,function(R){return R.element})})},FE=function(u,l){var d=u.slice(l[0].row+l[0].rowspan-1,u.length),h=fh(d);return Sr(h,function(y){var k=y.cells.slice(l[0].column+l[0].colspan-1,y.cells.length);return wt(k,function(R){return R.element})})},LE=function(u,l,d){var h=hr.fromTable(u),y=Xc(h,l);return y.map(function(k){var R=Rv(h,d,!1),$=zE(R,k),j=FE(R,k);return{upOrLeftCells:$,downOrRightCells:j}})},GS=tinymce.util.Tools.resolve("tinymce.Env"),hw=function(u){return _a(st.fromDom(u.target),"ephox-snooker-resizer-bar")===!1};function jr(u,l,d){var h=function(R,$,j){d.targets().each(function(ne){var he=so($);he.each(function(Ge){var yt=j0(u),at=lo(We,st.fromDom(u.getDoc()),yt),Ke=LE(Ge,ne,at);fk(u,R,$,j,Ke)})})},y=function(){return a1(u)},k=IE.byAttr(bd,h,y);return u.on("init",function(R){var $=u.getWin(),j=bs(u),ne=Gi(u),he=function(){var ra=u.selection,sr=st.fromDom(ra.getStart()),qr=st.fromDom(ra.getEnd()),Ea=Rn(so,[sr,qr]);Ea.fold(function(){return k.clear(j)},We)},Ge=VS($,j,ne,k),yt=US($,j,ne,k),at=gw($,j,ne,k),Ke=function(ra){return ra.raw.shiftKey===!0};u.on("TableSelectorChange",function(ra){return at(ra.start,ra.finish)});var Ot=function(ra,sr){!Ke(ra)||(sr.kill&&ra.kill(),sr.selection.each(function(qr){var Ea=Uf.relative(qr.start,qr.finish),fo=Lv($,Ea);u.selection.setRng(fo)}))},Et=function(ra){var sr=kd(ra);if(sr.raw.shiftKey&&Wh(sr.raw.which)){var qr=u.selection.getRng(),Ea=st.fromDom(qr.startContainer),fo=st.fromDom(qr.endContainer);yt.keyup(sr,Ea,qr.startOffset,fo,qr.endOffset).each(function(uf){Ot(sr,uf)})}},kn=function(ra){var sr=kd(ra);l().each(function(ya){return ya.hideBars()});var qr=u.selection.getRng(),Ea=st.fromDom(qr.startContainer),fo=st.fromDom(qr.endContainer),uf=Ns(FS,Yn)(st.fromDom(u.selection.getStart()));yt.keydown(sr,Ea,qr.startOffset,fo,qr.endOffset,uf).each(function(ya){Ot(sr,ya)}),l().each(function(ya){return ya.showBars()})},Jr=function(ra){return ra.button===0},In=function(ra){return ra.buttons===void 0||GS.browser.isEdge()&&ra.buttons===0?!0:(ra.buttons&1)!==0},Jn=function(ra){Ge.clearstate()},Hr=function(ra){Jr(ra)&&hw(ra)&&Ge.mousedown(kd(ra))},br=function(ra){In(ra)&&hw(ra)&&Ge.mouseover(kd(ra))},Io=function(ra){Jr(ra)&&hw(ra)&&Ge.mouseup(kd(ra))},Ni=function(){var ra=Jc(st.fromDom(j)),sr=Jc(0),qr=function(Ea){var fo=st.fromDom(Ea.target);if(Cr(fo)==="td"||Cr(fo)==="th"){var uf=ra.get(),ya=sr.get();wr(uf,fo)&&Ea.timeStamp-ya<300&&(Ea.preventDefault(),at(fo,fo))}ra.set(fo),sr.set(Ea.timeStamp)};return{touchEnd:qr}},Hu=Ni();u.on("dragstart",Jn),u.on("mousedown",Hr),u.on("mouseover",br),u.on("mouseup",Io),u.on("touchend",Hu.touchEnd),u.on("keyup",Et),u.on("keydown",kn),u.on("NodeChange",he)}),{clear:k.clear}}var KS=function(u,l){return Xn(u,l).isSome()},jh=function(u,l){var d=Jc(Y.none()),h=Jc([]),y=Y.none(),k=to("caption"),R=function(sr){return y.forall(function(qr){return!qr[sr]})},$=function(){return wd(di(u),Gi(u))},j=function(){return wd(on(u),Gi(u))},ne=function(){return $().bind(function(sr){return pf(Bs(so(sr),j().bind(so),function(qr,Ea){return wr(qr,Ea)?k(sr)?Y.some(Gl(sr)):Y.some(dv(l,qr,sr)):Y.none()}))})},he=function(sr){var qr=so(sr.element);return qr.map(function(Ea){var fo=hr.fromTable(Ea),uf=Xc(fo,sr).getOr([]),ya=J(uf,function(qs,gu){return gu.isLocked&&(qs.onAny=!0,gu.column===0?qs.onFirst=!0:gu.column+gu.colspan>=fo.grid.columns&&(qs.onLast=!0)),qs},{onAny:!1,onFirst:!1,onLast:!1});return{mergeable:ey(fo,sr).isSome(),unmergeable:Pd(fo,sr).isSome(),locked:ya}})},Ge=function(){d.set(Fo(ne)()),y=d.get().bind(he),Vt(h.get(),function(sr){return sr()})},yt=function(sr){return sr(),h.set(h.get().concat([sr])),function(){h.set(or(h.get(),function(qr){return qr!==sr}))}},at=function(sr,qr){return yt(function(){return d.get().fold(function(){sr.setDisabled(!0)},function(Ea){sr.setDisabled(qr(Ea))})})},Ke=function(sr,qr,Ea){return yt(function(){return d.get().fold(function(){sr.setDisabled(!0),sr.setActive(!1)},function(fo){sr.setDisabled(qr(fo)),sr.setActive(Ea(fo))})})},Ot=function(sr){return y.exists(function(qr){return qr.locked[sr]})},Et=function(sr){return at(sr,function(qr){return!1})},kn=function(sr){return at(sr,function(qr){return k(qr.element)})},Jr=function(sr){return function(qr){return at(qr,function(Ea){return k(Ea.element)||Ot(sr)})}},In=function(sr){return function(qr){return at(qr,function(Ea){return k(Ea.element)||sr().isNone()})}},Jn=function(sr,qr){return function(Ea){return at(Ea,function(fo){return k(fo.element)||sr().isNone()||Ot(qr)})}},Hr=function(sr){return at(sr,function(qr){return R("mergeable")})},br=function(sr){return at(sr,function(qr){return R("unmergeable")})},Io=function(sr){return Ke(sr,Gt,function(qr){var Ea=so(qr.element,Gi(u));return Ea.exists(function(fo){return KS(fo,"caption")})})},Ni=function(sr,qr){return function(Ea){return Ke(Ea,function(fo){return k(fo.element)},function(){return u.queryCommandValue(sr)===qr})}},Hu=Ni("mceTableRowType","header"),ra=Ni("mceTableColType","th");return u.on("NodeChange ExecCommand TableSelectorChange",Ge),{onSetupTable:Et,onSetupCellOrRow:kn,onSetupColumn:Jr,onSetupPasteable:In,onSetupPasteableColumn:Jn,onSetupMergeable:Hr,onSetupUnmergeable:br,resetTargets:Ge,onSetupTableWithCaption:Io,onSetupTableRowHeaders:Hu,onSetupTableColumnHeaders:ra,targets:d.get}},qh=function(u,l,d,h){u.ui.registry.addMenuButton("table",{tooltip:"Table",icon:"table",fetch:function($){return $("inserttable | cell row column | advtablesort | tableprops deletetable")}});var y=function($){return function(){return u.execCommand($)}};u.ui.registry.addButton("tableprops",{tooltip:"Table properties",onAction:y("mceTableProps"),icon:"table",onSetup:d.onSetupTable}),u.ui.registry.addButton("tabledelete",{tooltip:"Delete table",onAction:y("mceTableDelete"),icon:"table-delete-table",onSetup:d.onSetupTable}),u.ui.registry.addButton("tablecellprops",{tooltip:"Cell properties",onAction:y("mceTableCellProps"),icon:"table-cell-properties",onSetup:d.onSetupCellOrRow}),u.ui.registry.addButton("tablemergecells",{tooltip:"Merge cells",onAction:y("mceTableMergeCells"),icon:"table-merge-cells",onSetup:d.onSetupMergeable}),u.ui.registry.addButton("tablesplitcells",{tooltip:"Split cell",onAction:y("mceTableSplitCells"),icon:"table-split-cells",onSetup:d.onSetupUnmergeable}),u.ui.registry.addButton("tableinsertrowbefore",{tooltip:"Insert row before",onAction:y("mceTableInsertRowBefore"),icon:"table-insert-row-above",onSetup:d.onSetupCellOrRow}),u.ui.registry.addButton("tableinsertrowafter",{tooltip:"Insert row after",onAction:y("mceTableInsertRowAfter"),icon:"table-insert-row-after",onSetup:d.onSetupCellOrRow}),u.ui.registry.addButton("tabledeleterow",{tooltip:"Delete row",onAction:y("mceTableDeleteRow"),icon:"table-delete-row",onSetup:d.onSetupCellOrRow}),u.ui.registry.addButton("tablerowprops",{tooltip:"Row properties",onAction:y("mceTableRowProps"),icon:"table-row-properties",onSetup:d.onSetupCellOrRow}),u.ui.registry.addButton("tableinsertcolbefore",{tooltip:"Insert column before",onAction:y("mceTableInsertColBefore"),icon:"table-insert-column-before",onSetup:d.onSetupColumn("onFirst")}),u.ui.registry.addButton("tableinsertcolafter",{tooltip:"Insert column after",onAction:y("mceTableInsertColAfter"),icon:"table-insert-column-after",onSetup:d.onSetupColumn("onLast")}),u.ui.registry.addButton("tabledeletecol",{tooltip:"Delete column",onAction:y("mceTableDeleteCol"),icon:"table-delete-column",onSetup:d.onSetupColumn("onAny")}),u.ui.registry.addButton("tablecutrow",{tooltip:"Cut row",icon:"cut-row",onAction:y("mceTableCutRow"),onSetup:d.onSetupCellOrRow}),u.ui.registry.addButton("tablecopyrow",{tooltip:"Copy row",icon:"duplicate-row",onAction:y("mceTableCopyRow"),onSetup:d.onSetupCellOrRow}),u.ui.registry.addButton("tablepasterowbefore",{tooltip:"Paste row before",icon:"paste-row-before",onAction:y("mceTablePasteRowBefore"),onSetup:d.onSetupPasteable(h.getRows)}),u.ui.registry.addButton("tablepasterowafter",{tooltip:"Paste row after",icon:"paste-row-after",onAction:y("mceTablePasteRowAfter"),onSetup:d.onSetupPasteable(h.getRows)}),u.ui.registry.addButton("tablecutcol",{tooltip:"Cut column",icon:"cut-column",onAction:y("mceTableCutCol"),onSetup:d.onSetupColumn("onAny")}),u.ui.registry.addButton("tablecopycol",{tooltip:"Copy column",icon:"duplicate-column",onAction:y("mceTableCopyCol"),onSetup:d.onSetupColumn("onAny")}),u.ui.registry.addButton("tablepastecolbefore",{tooltip:"Paste column before",icon:"paste-column-before",onAction:y("mceTablePasteColBefore"),onSetup:d.onSetupPasteableColumn(h.getColumns,"onFirst")}),u.ui.registry.addButton("tablepastecolafter",{tooltip:"Paste column after",icon:"paste-column-after",onAction:y("mceTablePasteColAfter"),onSetup:d.onSetupPasteableColumn(h.getColumns,"onLast")}),u.ui.registry.addButton("tableinsertdialog",{tooltip:"Insert table",onAction:y("mceInsertTable"),icon:"table"});var k=Xd(Ev(u));k.length!==0&&u.ui.registry.addMenuButton("tableclass",{icon:"table-classes",tooltip:"Table styles",fetch:Sh(u,l,k,"tableclass",function($){return u.execCommand("mceTableToggleClass",!1,$)}),onSetup:d.onSetupTable});var R=Xd(V0(u));R.length!==0&&u.ui.registry.addMenuButton("tablecellclass",{icon:"table-cell-classes",tooltip:"Cell styles",fetch:Sh(u,l,R,"tablecellclass",function($){return u.execCommand("mceTableCellToggleClass",!1,$)}),onSetup:d.onSetupCellOrRow}),u.ui.registry.addMenuButton("tablecellvalign",{icon:"vertical-align",tooltip:"Vertical align",fetch:Sh(u,l,Wd,"tablecellverticalalign",$v(u,"vertical-align")),onSetup:d.onSetupCellOrRow}),u.ui.registry.addMenuButton("tablecellborderwidth",{icon:"border-width",tooltip:"Border width",fetch:Sh(u,l,i1(u),"tablecellborderwidth",$v(u,"border-width")),onSetup:d.onSetupCellOrRow}),u.ui.registry.addMenuButton("tablecellborderstyle",{icon:"border-style",tooltip:"Border style",fetch:Sh(u,l,Hs(u),"tablecellborderstyle",$v(u,"border-style")),onSetup:d.onSetupCellOrRow}),u.ui.registry.addToggleButton("tablecaption",{tooltip:"Table caption",onAction:y("mceTableToggleCaption"),icon:"table-caption",onSetup:d.onSetupTableWithCaption}),u.ui.registry.addMenuButton("tablecellbackgroundcolor",{icon:"cell-background-color",tooltip:"Background color",fetch:function($){return $(V1(u,G0(u),"background-color"))},onSetup:d.onSetupCellOrRow}),u.ui.registry.addMenuButton("tablecellbordercolor",{icon:"cell-border-color",tooltip:"Border color",fetch:function($){return $(V1(u,K0(u),"border-color"))},onSetup:d.onSetupCellOrRow}),u.ui.registry.addToggleButton("tablerowheader",{tooltip:"Row header",icon:"table-top-header",onAction:xh(u),onSetup:d.onSetupTableRowHeaders}),u.ui.registry.addToggleButton("tablecolheader",{tooltip:"Column header",icon:"table-left-header",onAction:Ay(u),onSetup:d.onSetupTableColumnHeaders})},bb=function(u){var l=function(h){return u.dom.is(h,"table")&&u.getBody().contains(h)},d=xl(u);d.length>0&&u.ui.registry.addContextToolbar("table",{predicate:l,items:d,scope:"node",position:"node"})},yb=function(u,l,d,h){var y=function(at){return function(){return u.execCommand(at)}},k=function(at){u.execCommand("mceInsertTable",!1,{rows:at.numRows,columns:at.numColumns})},R={text:"Table properties",onSetup:d.onSetupTable,onAction:y("mceTableProps")},$={text:"Delete table",icon:"table-delete-table",onSetup:d.onSetupTable,onAction:y("mceTableDelete")};u.ui.registry.addMenuItem("tableinsertrowbefore",{text:"Insert row before",icon:"table-insert-row-above",onAction:y("mceTableInsertRowBefore"),onSetup:d.onSetupCellOrRow}),u.ui.registry.addMenuItem("tableinsertrowafter",{text:"Insert row after",icon:"table-insert-row-after",onAction:y("mceTableInsertRowAfter"),onSetup:d.onSetupCellOrRow}),u.ui.registry.addMenuItem("tabledeleterow",{text:"Delete row",icon:"table-delete-row",onAction:y("mceTableDeleteRow"),onSetup:d.onSetupCellOrRow}),u.ui.registry.addMenuItem("tablerowprops",{text:"Row properties",icon:"table-row-properties",onAction:y("mceTableRowProps"),onSetup:d.onSetupCellOrRow}),u.ui.registry.addMenuItem("tablecutrow",{text:"Cut row",icon:"cut-row",onAction:y("mceTableCutRow"),onSetup:d.onSetupCellOrRow}),u.ui.registry.addMenuItem("tablecopyrow",{text:"Copy row",icon:"duplicate-row",onAction:y("mceTableCopyRow"),onSetup:d.onSetupCellOrRow}),u.ui.registry.addMenuItem("tablepasterowbefore",{text:"Paste row before",icon:"paste-row-before",onAction:y("mceTablePasteRowBefore"),onSetup:d.onSetupPasteable(h.getRows)}),u.ui.registry.addMenuItem("tablepasterowafter",{text:"Paste row after",icon:"paste-row-after",onAction:y("mceTablePasteRowAfter"),onSetup:d.onSetupPasteable(h.getRows)});var j={type:"nestedmenuitem",text:"Row",getSubmenuItems:Fe("tableinsertrowbefore tableinsertrowafter tabledeleterow tablerowprops | tablecutrow tablecopyrow tablepasterowbefore tablepasterowafter")};u.ui.registry.addMenuItem("tableinsertcolumnbefore",{text:"Insert column before",icon:"table-insert-column-before",onAction:y("mceTableInsertColBefore"),onSetup:d.onSetupColumn("onFirst")}),u.ui.registry.addMenuItem("tableinsertcolumnafter",{text:"Insert column after",icon:"table-insert-column-after",onAction:y("mceTableInsertColAfter"),onSetup:d.onSetupColumn("onLast")}),u.ui.registry.addMenuItem("tabledeletecolumn",{text:"Delete column",icon:"table-delete-column",onAction:y("mceTableDeleteCol"),onSetup:d.onSetupColumn("onAny")}),u.ui.registry.addMenuItem("tablecutcolumn",{text:"Cut column",icon:"cut-column",onAction:y("mceTableCutCol"),onSetup:d.onSetupColumn("onAny")}),u.ui.registry.addMenuItem("tablecopycolumn",{text:"Copy column",icon:"duplicate-column",onAction:y("mceTableCopyCol"),onSetup:d.onSetupColumn("onAny")}),u.ui.registry.addMenuItem("tablepastecolumnbefore",{text:"Paste column before",icon:"paste-column-before",onAction:y("mceTablePasteColBefore"),onSetup:d.onSetupPasteableColumn(h.getColumns,"onFirst")}),u.ui.registry.addMenuItem("tablepastecolumnafter",{text:"Paste column after",icon:"paste-column-after",onAction:y("mceTablePasteColAfter"),onSetup:d.onSetupPasteableColumn(h.getColumns,"onLast")});var ne={type:"nestedmenuitem",text:"Column",getSubmenuItems:Fe("tableinsertcolumnbefore tableinsertcolumnafter tabledeletecolumn | tablecutcolumn tablecopycolumn tablepastecolumnbefore tablepastecolumnafter")};u.ui.registry.addMenuItem("tablecellprops",{text:"Cell properties",icon:"table-cell-properties",onAction:y("mceTableCellProps"),onSetup:d.onSetupCellOrRow}),u.ui.registry.addMenuItem("tablemergecells",{text:"Merge cells",icon:"table-merge-cells",onAction:y("mceTableMergeCells"),onSetup:d.onSetupMergeable}),u.ui.registry.addMenuItem("tablesplitcells",{text:"Split cell",icon:"table-split-cells",onAction:y("mceTableSplitCells"),onSetup:d.onSetupUnmergeable});var he={type:"nestedmenuitem",text:"Cell",getSubmenuItems:Fe("tablecellprops tablemergecells tablesplitcells")};zf(u)===!1?u.ui.registry.addMenuItem("inserttable",{text:"Table",icon:"table",onAction:y("mceInsertTable")}):u.ui.registry.addNestedMenuItem("inserttable",{text:"Table",icon:"table",getSubmenuItems:function(){return[{type:"fancymenuitem",fancytype:"inserttable",onAction:k}]}}),u.ui.registry.addMenuItem("inserttabledialog",{text:"Insert table",icon:"table",onAction:y("mceInsertTable")}),u.ui.registry.addMenuItem("tableprops",R),u.ui.registry.addMenuItem("deletetable",$),u.ui.registry.addNestedMenuItem("row",j),u.ui.registry.addNestedMenuItem("column",ne),u.ui.registry.addNestedMenuItem("cell",he),u.ui.registry.addContextMenu("table",{update:function(){return d.resetTargets(),d.targets().fold(Fe(""),function(at){return Cr(at.element)==="caption"?"tableprops deletetable":"cell row column | advtablesort | tableprops deletetable"})}});var Ge=Xd(Ev(u));Ge.length!==0&&u.ui.registry.addNestedMenuItem("tableclass",{icon:"table-classes",text:"Table styles",getSubmenuItems:function(){return Oc(u,l,Ge,"tableclass",function(at){return u.execCommand("mceTableToggleClass",!1,at)})},onSetup:d.onSetupTable});var yt=Xd(V0(u));yt.length!==0&&u.ui.registry.addNestedMenuItem("tablecellclass",{icon:"table-cell-classes",text:"Cell styles",getSubmenuItems:function(){return Oc(u,l,yt,"tablecellclass",function(at){return u.execCommand("mceTableCellToggleClass",!1,at)})},onSetup:d.onSetupCellOrRow}),u.ui.registry.addNestedMenuItem("tablecellvalign",{icon:"vertical-align",text:"Vertical align",getSubmenuItems:function(){return Oc(u,l,Wd,"tablecellverticalalign",$v(u,"vertical-align"))},onSetup:d.onSetupCellOrRow}),u.ui.registry.addNestedMenuItem("tablecellborderwidth",{icon:"border-width",text:"Border width",getSubmenuItems:function(){return Oc(u,l,i1(u),"tablecellborderwidth",$v(u,"border-width"))},onSetup:d.onSetupCellOrRow}),u.ui.registry.addNestedMenuItem("tablecellborderstyle",{icon:"border-style",text:"Border style",getSubmenuItems:function(){return Oc(u,l,Hs(u),"tablecellborderstyle",$v(u,"border-style"))},onSetup:d.onSetupCellOrRow}),u.ui.registry.addToggleMenuItem("tablecaption",{icon:"table-caption",text:"Table caption",onAction:y("mceTableToggleCaption"),onSetup:d.onSetupTableWithCaption}),u.ui.registry.addNestedMenuItem("tablecellbackgroundcolor",{icon:"cell-background-color",text:"Background color",getSubmenuItems:function(){return V1(u,G0(u),"background-color")},onSetup:d.onSetupCellOrRow}),u.ui.registry.addNestedMenuItem("tablecellbordercolor",{icon:"cell-border-color",text:"Border color",getSubmenuItems:function(){return V1(u,K0(u),"border-color")},onSetup:d.onSetupCellOrRow}),u.ui.registry.addToggleMenuItem("tablerowheader",{text:"Row header",icon:"table-top-header",onAction:xh(u),onSetup:d.onSetupTableRowHeaders}),u.ui.registry.addToggleMenuItem("tablecolheader",{text:"Column header",icon:"table-left-header",onAction:Ay(u),onSetup:d.onSetupTableColumnHeaders})},XS=function(u){var l=xu(function(){return bs(u)},function(){return Fs(di(u),Gi(u))},bd.selectedSelector),d=jh(u,l),h=h1(u),y=jr(u,h.lazyResize,d),k=ag(u,y,h.lazyWire),R=j1();return Eh(u,k,y,l,R),lg(u,k,l),qc(u,l,k),yb(u,l,d,R),qh(u,l,d,R),bb(u),u.on("PreInit",function(){u.serializer.addTempAttr(bd.firstSelected),u.serializer.addTempAttr(bd.lastSelected),sE(u)}),Jl(u)&&u.on("keydown",function($){TE($,u,y)}),u.on("remove",function(){h.destroy()}),mu(u,R,h,d)};function YS(){p2.add("table",XS)}YS()})();tinymce.IconManager.add("default",{icons:{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 01-1-1v-5c0-.6-.4-1-1-1a1 1 0 00-1 1v5c0 .6-.4 1-1 1a1 1 0 01-1-1V9H4a1 1 0 110-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 00-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 10-1.4-1.4L12 13.6 5.7 7.3z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 001.4-1.4L12 6.6l-7.7 7.7a1 1 0 001.4 1.4L12 9.4l6.3 6.3z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 110-2h9.2zm4 0h.8a1 1 0 010 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h6.8zm4 0H19a1 1 0 010 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 010-2h4.4zm4 0H19a1 1 0 010 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 010-2h2zm4 0h8a1 1 0 010 2H9.8l1.2-2zm5.2-13.5l1.3.7-9.7 16.3-1.3-.7 9.7-16.3z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 001.4-1V6a1 1 0 00-1.4-.9l-12 6a1 1 0 000 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 015 18V6a1 1 0 011.4-.9l12 6a1 1 0 010 1.8z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 01-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 00-1 1z" fill-rule="nonzero"/></svg>',"border-style":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="2" x="3" y="6" rx="1"/><rect width="2.8" height="2" x="3" y="16" rx="1"/><rect width="2.8" height="2" x="6.8" y="16" rx="1"/><rect width="2.8" height="2" x="10.6" y="16" rx="1"/><rect width="2.8" height="2" x="14.4" y="16" rx="1"/><rect width="2.8" height="2" x="18.2" y="16" rx="1"/><rect width="8" height="2" x="3" y="11" rx="1"/><rect width="8" height="2" x="13" y="11" rx="1"/></g></svg>',"border-width":'<svg width="24" height="24"><g fill-rule="evenodd"><rect width="18" height="5" x="3" y="5" rx="1"/><rect width="18" height="3.5" x="3" y="11.5" rx="1"/><rect width="18" height="2" x="3" y="17" rx="1"/></g></svg>',brightness:'<svg width="24" height="24"><path d="M12 17c.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 01-.7-.3A1 1 0 0111 6V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 01-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3h-1a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 01-.7.3H5a1 1 0 01-.7-.3A1 1 0 014 12c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1c.3 0 .5.1.7.3.2.2.3.4.3.7zm10 3.5l.7.8c.2.1.3.4.3.6 0 .3-.1.6-.3.8a1 1 0 01-.8.3 1 1 0 01-.6-.3l-.8-.7a1 1 0 01-.3-.8c0-.2.1-.5.3-.7a1 1 0 011.4 0zm-10-7l-.7-.8a1 1 0 01-.3-.6c0-.3.1-.6.3-.8.2-.2.5-.3.8-.3.2 0 .5.1.7.3l.7.7c.2.2.3.5.3.8 0 .2-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.8-.3zm10 0a1 1 0 01-.8.3 1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.6.3-.8l.8-.7c.1-.2.4-.3.6-.3.3 0 .6.1.8.3.2.2.3.5.3.8 0 .2-.1.5-.3.7l-.7.7zm-10 7c.2-.2.5-.3.8-.3.2 0 .5.1.7.3a1 1 0 010 1.4l-.8.8a1 1 0 01-.6.3 1 1 0 01-.8-.3 1 1 0 01-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 013.7 2.4 4 4 0 010 3.2A4 4 0 0112 16a4 4 0 01-3.7-2.4 4 4 0 010-3.2A4 4 0 0112 8zm0 6.5c.7 0 1.3-.2 1.8-.7.5-.5.7-1.1.7-1.8s-.2-1.3-.7-1.8c-.5-.5-1.1-.7-1.8-.7s-1.3.2-1.8.7c-.5.5-.7 1.1-.7 1.8s.2 1.3.7 1.8c.5.5 1.1.7 1.8.7z" fill-rule="evenodd"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 11-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 01-1.4 1.4L13 13.4V20a1 1 0 01-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 110 14.8 7.4 7.4 0 010-14.8zM12 3a9 9 0 100 18 9 9 0 000-18zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7z" fill-rule="nonzero"/></svg>',"cell-background-color":'<svg width="24" height="24"><path d="M15.7 2l1.6 1.6-2.7 2.6 5.9 5.8c.7.7.7 1.7 0 2.4l-6.3 6.1a1.7 1.7 0 01-2.4 0l-6.3-6.1c-.7-.7-.7-1.7 0-2.4L15.7 2zM18 12l-4.5-4L9 12h9zM4 16s2 2.4 2 3.8C6 21 5.1 22 4 22s-2-1-2-2.2C2 18.4 4 16 4 16z"/></svg>',"cell-border-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M5 13v5h2v2H5a2 2 0 01-2-2v-5h2zm8-7V4h6a2 2 0 012 2h-8z" opacity=".2"/><path fill-rule="nonzero" d="M13 4v2H5v7H3V6c0-1.1.9-2 2-2h8zm-2.6 14.1l.1-.1.1.1.2.3.2.2.2.2c.4.6.8 1.2.8 1.7 0 .8-.7 1.5-1.5 1.5S9 21.3 9 20.5c0-.5.4-1.1.8-1.7l.2-.2.2-.2.2-.3z"/><path d="M13 11l-2 2H5v-2h6V6h2z"/><path fill-rule="nonzero" d="M18.4 8l1 1-1.8 1.9 4 4c.5.4.5 1.1 0 1.6l-4.3 4.2a1.2 1.2 0 01-1.6 0l-4.4-4.2c-.4-.5-.4-1.2 0-1.7l7-6.8zm1.6 7l-3-3-3 3h6z"/></g></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 01-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 01-1 .7h-.2a.7.7 0 01-.7-1l4-12a1 1 0 012 0l4 12a.7.7 0 01-.8 1h-.2a1 1 0 01-1-.7l-.8-2.6zm-.3-1.5l-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1zm4.8-6.8V10H7.7V5.8h-1v-1h2zM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1zM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2v-.1-.2l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 01-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 00-.5-.1 1 1 0 00-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 00-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 001.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 00-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 00-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 01-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 01-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 110-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8a1 1 0 010 2h-8a1 1 0 010-2zM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 010-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 011.6 1.2l-8 12a1 1 0 01-1.5.1l-5-5a1 1 0 111.4-1.4l4.1 4.1 7.4-11z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 010-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3L4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 010-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 010-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 010-1.1L6 5 2.2 1.3z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8L5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 010-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24"><path d="M17.3 8.2L13.4 12l3.9 3.8a1 1 0 01-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 01-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 011.5-1.5l3.8 3.9 3.8-3.9a1 1 0 011.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 01-.8 2 2.8 2.8 0 01.8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 01-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 01-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 01.8-2 2.8 2.8 0 01-.8-2zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2zM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 01-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 01-.5-.5V17a3 3 0 001-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0118 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 01-3.7 3 5.7 5.7 0 01-3.2 0A5.9 5.9 0 017.6 18a6.2 6.2 0 01-1.4-2.6 6.7 6.7 0 010-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 012.3-4A20 20 0 0112 4a26.4 26.4 0 013.2 3.4 18.2 18.2 0 012.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 00-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 01-1.3 3 5.3 5.3 0 01-2.3 1.5 4.9 4.9 0 01-2 .1 4.3 4.3 0 002.4.8 4 4 0 002-.6 4 4 0 001.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 000 18 1.5 1.5 0 001.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 005-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3-4a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm5 0a1.5 1.5 0 110-3 1.5 1.5 0 010 3zm3 4a1.5 1.5 0 110-3 1.5 1.5 0 010 3z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24"><path stroke="#000" stroke-width="2" d="M21 3L3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 010 2h-2v2a1 1 0 01-2 0v-2H9a1 1 0 010-2h2V8a1 1 0 012 0v2z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 00-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 01-3-3V6a3 3 0 013-3h14a3 3 0 013 3v10a3 3 0 01-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-6 8a6 6 0 006 6V6a6 6 0 00-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 00-2 2v11h2V5h10V3zm1 4a2 2 0 012 2v10a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7zm0 12V9h-7v10h7z" fill-rule="nonzero"/></svg>',crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 01-1-1v-2H7V9H5a1 1 0 110-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3zM9 9v5l5-5H9zm1 6h5v-5l-5 5z" fill-rule="evenodd"/></svg>',"cut-column":'<svg width="24" height="24"><path fill-rule="evenodd" d="M7.2 4.5c.9 0 1.6.4 2.2 1A3.7 3.7 0 0110.5 8v.5l1 1 4-4 1-.5a3.3 3.3 0 012 0c.4 0 .7.3 1 .5L17 8h4v13h-6V10l-1.5 1.5.5.5v4l-2.5-2.5-1 1v.5c0 .4 0 .8-.3 1.2-.2.5-.4.9-.8 1.2-.6.7-1.3 1-2.2 1-.8.2-1.5 0-2-.6l-.5-.8-.2-1c0-.4 0-.8.3-1.2A3.9 3.9 0 017 12.7c.5-.2 1-.3 1.5-.2l1-1-1-1c-.5 0-1 0-1.5-.2-.5-.1-1-.4-1.4-.9-.4-.3-.6-.7-.8-1.2L4.5 7c0-.4 0-.7.2-1 0-.3.3-.6.5-.8.5-.5 1.2-.8 2-.7zm12.3 5h-3v10h3v-10zM8 13.8h-.3l-.4.2a2.8 2.8 0 00-.7.4v.1a2.8 2.8 0 00-.6.8l-.1.4v.7l.2.5.5.2h.7a2.6 2.6 0 00.8-.3 2.4 2.4 0 00.7-.7 2.5 2.5 0 00.3-.8 1.5 1.5 0 000-.8 1 1 0 00-.2-.4 1 1 0 00-.5-.2H8zm3.5-3.7c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zM7 5.8h-.4a1 1 0 00-.5.3 1 1 0 00-.2.5v.7a2.5 2.5 0 00.3.8l.2.3h.1l.4.4.4.2.4.1h.7L9 9l.2-.4a1.6 1.6 0 000-.8 2.6 2.6 0 00-.3-.8A2.5 2.5 0 007.7 6l-.4-.1H7z"/></svg>',"cut-row":'<svg width="24" height="24"><path fill-rule="evenodd" d="M22 3v5H9l3 3 2-2h4l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8.7.6 1 1.3 1 2.2.2.8 0 1.5-.6 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l2 2V3h14zM8.5 15.3h-.3a2.6 2.6 0 00-.8.4 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3L9 18V18l.4-.4.2-.4.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2h-.5zm7 0H15a1 1 0 00-.4.3 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4a2.8 2.8 0 00.5.7h.1a2.8 2.8 0 00.8.6l.4.1h.7l.5-.2.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3h-.3zM12 11.6c-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4s.7-.1 1-.4c.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4zm8.5-7.1h-11v2h11v-2z"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 01-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 018.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 010-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 010 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8zm-8.5 2.2l.1-.4v-.3-.4a1 1 0 00-.2-.5 1 1 0 00-.4-.2 1.6 1.6 0 00-.8 0 2.6 2.6 0 00-.8.3 2.5 2.5 0 00-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 00.8-.3 2.8 2.8 0 001-1zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4zm5.4 4l.2-.5v-.4-.3a2.6 2.6 0 00-.3-.8 2.4 2.4 0 00-.7-.7 2.5 2.5 0 00-.8-.3 1.5 1.5 0 00-.8 0 1 1 0 00-.4.2 1 1 0 00-.2.5 1.5 1.5 0 000 .7v.4l.3.4.3.4a2.8 2.8 0 00.8.5l.4.1h.7l.5-.2z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5zm0 4h2v2h-2V9zM9 9h2v2H9V9zm4 4h2v2h-2v-2zm-4 0h2v2H9v-2zm0 4h2v2H9v-2zm4 0h2v2h-2v-2zM9 5h2v2H9V5z" fill-rule="evenodd"/></svg>',"duplicate-column":'<svg width="24" height="24"><path d="M17 6v16h-7V6h7zm-2 2h-3v12h3V8zm-2-6v2H8v15H6V2h7z"/></svg>',"duplicate-row":'<svg width="24" height="24"><path d="M22 11v7H6v-7h16zm-2 2H8v3h12v-3zm-1-6v2H4v5H2V7h17z"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 01-2 2h-7a2 2 0 01-2-2V9c0-1.2.9-2 2-2h7a2 2 0 012 2v2z"/><path d="M17 14h1a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1h-1a1 1 0 010-2h1v-1a1 1 0 012 0v1z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19.8 8.8l-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5zm-2-.2l1-.9v-.3l-2.2-2.2a.3.3 0 00-.3 0l-1 1L18 8.5zm-1 1l-2.5-2.4-6 6 2.5 2.5 6-6zm-7 7.1l-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 00-2-2H7v2h11v9zM6 17h15a1 1 0 010 2h-1v1a1 1 0 01-2 0v-1H6a2 2 0 01-2-2V7H3a1 1 0 110-2h1V4a1 1 0 112 0v13zm3-5.3l1.3 2 3-4.7 3.7 6H7l2-3.3z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0119 6zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 008 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 00-4 4.5h2.2zm-3.4 0a12 12 0 012.8-4 12 12 0 00-5 4h2.2z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 010 .8l-5.6 4A.5.5 0 019 16V8a.5.5 0 01.8-.4z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 00-1 1c0 .6.4 1 1 1zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5zM12 4a8 8 0 100 16 8 8 0 000-16zm0 14.5a6.5 6.5 0 110-13 6.5 6.5 0 010 13z" fill-rule="nonzero"/></svg>',export:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M14.4 3L18 7v1h-5V5H7v14h9a1 1 0 012 0c0 1-.8 2-1.9 2H7c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2h7.5z"/><path d="M18.1 12c.5 0 .9.4.9 1 0 .5-.3 1-.8 1h-7.3c-.5 0-.9-.4-.9-1 0-.5.3-1 .8-1h7.3z"/><path d="M16.4 9.2a1 1 0 011.4.2l2.4 3.6-2.4 3.6a1 1 0 01-1.7-1v-.2l1.7-2.4-1.6-2.4a1 1 0 01.2-1.4z"/></g></svg>',fill:'<svg width="24" height="26"><path d="M16.6 12l-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 002.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2zM5.2 13L10 8.2l4.8 4.8H5.2zM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 002-2c0-1.3-2-3.5-2-3.5z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2zm4-8h2V9h-2v2zM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 00-2 2zm14-2v2h2a2 2 0 00-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 002-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 00-2 2v3h2V6h10v3h2V6a2 2 0 00-2-2zm2 14h-2v2a2 2 0 002-2zM3 11v2h18v-2H3zm6 7v2h2v-2H9zm8-4v2h2v-2h-2zM5 18c0 1.1.9 2 2 2v-2H5z" fill-rule="nonzero"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 00-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3z" fill-rule="nonzero"/></svg>',format:'<svg width="24" height="24"><path fill-rule="evenodd" d="M17 5a1 1 0 010 2h-4v11a1 1 0 01-2 0V7H7a1 1 0 110-2h10z"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 110-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 11-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 111.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 110-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 110 1.7H5a.9.9 0 01-.9-.9v-4.4a.9.9 0 111.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 01-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 010 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="M5 15.7l2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7zM5 18V19h3l1.8-1.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 01-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 110-4 2 2 0 010 4zM4.5 4h15a.5.5 0 110 1h-15a.5.5 0 010-1zm2-2h11a.5.5 0 110 1h-11a.5.5 0 010-1z"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 00-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 01.6.5l.1.3a8.5 8.5 0 01.3.6l1.9 4.6 2-5.2a1 1 0 011-.6.5.5 0 01.5.6L13 14v2.8a.7.7 0 01-1.4 0z" fill-rule="nonzero"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 00-6 9 6.3 6.3 0 001.4 2l1 1a6.3 6.3 0 003.6 1 6.5 6.5 0 006-9 6.3 6.3 0 00-1.4-2l-1-1a6.3 6.3 0 00-3.6-1zM12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4z"/><path d="M9.6 9.7a.7.7 0 01-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 00-.8.8.8.8 0 01-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 012.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="M5 15.7l3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7zM5 18V19h3l2.8-2.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 01-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 100-4 2 2 0 000 4z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 015.7 2.3A8 8 0 1112 4zm-1 3v2h2V7h-2zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 001.8-2.9 6.3 6.3 0 00-.1-4.1 5.8 5.8 0 00-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 00-3.9 1.8 6.3 6.3 0 00-1.3 6 6.2 6.2 0 001.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 014 11c0-1 .2-1.9.6-2.7A7 7 0 016.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 015.7 2 7 7 0 011.7 2.3 6 6 0 01.2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 01-3.6 2.5v.5z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 100-14 7 7 0 000 14zm0 2a9 9 0 110-18 9 9 0 010 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 00-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></svg>',invert:'<svg width="24" height="24"><path d="M18 19.3L16.5 18a5.8 5.8 0 01-3.1 1.9 6.1 6.1 0 01-5.5-1.6A5.8 5.8 0 016 14v-.3l.1-1.2A13.9 13.9 0 017.7 9l-3-3 .7-.8 2.8 2.9 9 8.9 1.5 1.6-.7.6zm0-5.5v.3l-.1 1.1-.4 1-1.2-1.2a4.3 4.3 0 00.2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 00-3-4.2L12 6a26.1 26.1 0 00-2.2 2.5l-1-1a20.9 20.9 0 012.9-3.3L12 4l1 .8a22.2 22.2 0 014 5.4c.6 1.2 1 2.4 1 3.6z" fill-rule="evenodd"/></svg>',italic:'<svg width="24" height="24"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8z" fill-rule="evenodd"/></svg>',language:'<svg width="24" height="24"><path d="M12 3a9 9 0 110 18 9 9 0 010-18zm4.3 13.3c-.5 1-1.2 2-2 2.9a7.5 7.5 0 003.2-2.1l-.2-.2a6 6 0 00-1-.6zm-8.6 0c-.5.2-.9.5-1.2.8.9 1 2 1.7 3.2 2a10 10 0 01-2-2.8zm3.6-.8c-.8 0-1.6.1-2.2.3.5 1 1.2 1.9 2.1 2.7zm1.5 0v3c.9-.8 1.6-1.7 2.1-2.7-.6-.2-1.4-.3-2.1-.3zm-6-2.7H4.5c.2 1 .5 2.1 1 3h.3l1.3-1a10 10 0 01-.3-2zm12.7 0h-2.3c0 .7-.1 1.4-.3 2l1.6 1.1c.5-1 .9-2 1-3.1zm-3.8 0h-3V14c1 0 2 .1 2.7.4.2-.5.3-1 .3-1.6zm-4.4 0h-3l.3 1.6c.8-.3 1.7-.4 2.7-.4v-1.3zm-5.5-5c-.7 1-1.1 2.2-1.3 3.5h2.3c0-1 .2-1.8.5-2.6l-1.5-1zm2.9 1.4v.1c-.2.6-.4 1.3-.4 2h3V9.4c-1 0-1.8-.1-2.6-.3zm6.6 0h-.1l-2.4.3v1.8h3l-.5-2.1zm3-1.4l-.3.1-1.3.8c.3.8.5 1.6.5 2.6h2.3a7.5 7.5 0 00-1.3-3.5zm-9 0l2 .2V5.5a9 9 0 00-2 2.2zm3.5-2.3V8c.6 0 1.3 0 1.9-.2a9 9 0 00-2-2.3zm-3-.7h-.1c-1.1.4-2.1 1-3 1.8l1.2.7a10 10 0 011.9-2.5zm4.4 0l.1.1a10 10 0 011.8 2.4l1.1-.7a7.5 7.5 0 00-3-1.8z"/></svg>',"line-height":'<svg width="24" height="24"><path d="M21 5a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zm0 4a1 1 0 01.1 2H13a1 1 0 01-.1-2H21zM7 3.6l3.7 3.7a1 1 0 01-1.3 1.5h-.1L8 7.3v9.2l1.3-1.3a1 1 0 011.3 0h.1c.4.4.4 1 0 1.3v.1L7 20.4l-3.7-3.7a1 1 0 011.3-1.5h.1L6 16.7V7.4L4.7 8.7a1 1 0 01-1.3 0h-.1a1 1 0 010-1.3v-.1L7 3.6z"/></svg>',line:'<svg width="24" height="24"><path d="M15 9l-8 8H4v-3l8-8 3 3zm1-1l-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1zM4 18h16v2H4v-2z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2.1 2a2 2 0 102.7 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2-2a2 2 0 10-2.6-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M11 16a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 26a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6zM11 36a2 2 0 100-4 2 2 0 000 4zm0 1a3 3 0 110-6 3 3 0 010 6z" fill-rule="nonzero"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-default":'<svg width="48" height="48"><g fill-rule="evenodd"><circle cx="11" cy="14" r="3"/><circle cx="11" cy="24" r="3"/><circle cx="11" cy="34" r="3"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-square":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M8 11h6v6H8zM8 21h6v6H8zM8 31h6v6H8z"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8l-1.6 1v-1.1l1.6-1h1.2V17zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6zM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3zM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4zM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3zM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM37.1 34.6L34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3zM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 00-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33zm0 10v-1.2h-1.3V26H33zm0 10v-1.2h-1.3V36H33z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15zm0 10v-1.2h1.3V26H15zm0 10v-1.2h1.3V36H15z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M39.3 17l-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3zm-1.6-4.7l-.7 2.3h1.6l-.8-2.3zM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26zM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M12.6 17l-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3zM11 12.3l-.7 2.3h1.6l-.8-2.3zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3zm0 10v-1.2H33V27h-1.3zm0 10v-1.2H33V37h-1.3z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15zm0 10v-1.2h1.3V27H15zm0 10v-1.2h1.3V37H15z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24"><path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3zM10 8v3h4V8a1 1 0 00-.3-.7A1 1 0 0013 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 017.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 011.2-1.6l3 2a1 1 0 010 1.6l-3 2a1 1 0 11-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm12 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2zm-6 0a2 2 0 00-2 2c0 1.1.9 2 2 2a2 2 0 002-2 2 2 0 00-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 00-2 2v14c0 1.1.9 2 2 2h10a2 2 0 002-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="M15 13l2-2v8H5V7h8l-2 2H7v8h8v-4zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 110-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 01-1-1v-3zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M17.8 9.8L15.4 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7l2.3 5.8zm0 0l2.2 5.7-2.3-5.8zM13 17v-2h-2v2h2zm0-4V7h-2v6h2z" fill-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 010-2zm0-6h8a1 1 0 010 2H6a1 1 0 110-2zm13-1v3.5a.5.5 0 11-1 0V5h-.5a.5.5 0 110-1H19zm-1 8.8l.2.2h1.3a.5.5 0 110 1h-1.6a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2h-1.3a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 010-1h1.2a.3.3 0 100-.6h-1.3a.4.4 0 110-.8h1.3a.3.3 0 000-.6h-1.2a.5.5 0 110-1H19c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 110-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 01-.5-.5V5h-.5a.5.5 0 010-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 01-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 00-.2-.2H4.5a.5.5 0 01-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 010-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 110-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 110-1H6c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4L1 13l6.4 6.5 6.5-6.5-6.5-6.5zM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7zM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 010-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 11-4.3 16.9l1.5-1.5A7 7 0 1013 6h-1z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 110-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 010-2zm-5 4h12a1 1 0 010 2H7a1 1 0 010-2zm1.6-3.8a1 1 0 01-1.2 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 011.2 1.6L6.8 12l1.8 1.2z" fill-rule="evenodd"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 010-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 01-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 01-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',paragraph:'<svg width="24" height="24"><path fill-rule="evenodd" d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z"/></svg>',"paste-column-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h7v2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm8 7v12h-6V8h6zm-1.5 1.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-column-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V18c0 1-.8 2-1.9 2H11v-2h7V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v2H4V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm-2 7v12H4V8h6zM8.5 9.5h-3v9h3v-9zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-after":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V11h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h14c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 11v5H8v-5h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-row-before":'<svg width="24" height="24"><path fill-rule="evenodd" d="M12 1a3 3 0 012.8 2H18c1 0 2 .8 2 1.9V7h-2V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h12v-4h2v4c0 1-.8 2-1.9 2H6c-1 0-2-.8-2-1.9V5c0-1 .8-2 1.9-2H9.2A3 3 0 0112 1zm10 7v5H8V8h14zm-1.5 1.5h-11v2h11v-2zM12 3a1 1 0 100 2 1 1 0 000-2z"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 01-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 01-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0112 1a3 3 0 012.8 2H18a2 2 0 012 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 00-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5L8 20H3v-3l3.5-3.5a2 2 0 010-3L14 3l1 1-7.3 7.3a1 1 0 000 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 01-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><path d="M12 4c.5 0 1 .4 1 .9V11h6a1 1 0 01.1 2H13v6a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H11V5c0-.6.4-1 1-1z"/></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 01-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 01-1.4 0l-1.5-1.2a6.2 6.2 0 01-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 01-1-.9l-.2-1.9a5.8 5.8 0 01-1.5-.6l-1.5 1.2a1 1 0 01-1.4 0l-.7-.7a1 1 0 010-1.4l1.2-1.5a6.2 6.2 0 01-.6-1.5l-1.9-.2a1 1 0 01-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 01.6-1.5L5.2 7.3a1 1 0 010-1.4l.7-.7a1 1 0 011.4 0l1.5 1.2a6.2 6.2 0 011.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 011.5.6l1.5-1.2a1 1 0 011.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 01.6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 100-6 3 3 0 000 6z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 002.1-2.8 15.7 15.7 0 00-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 00-6.7 3.2A16.2 16.2 0 003.2 12c0 .2.2.3.3.5zm-2.4-1l.7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 012.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 01-2.8-3.7 1 1 0 010-1zm12-3.3a2 2 0 102.7 2.6 4 4 0 11-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 00-3 3v6h2v3h14v-3h2v-6a3 3 0 00-3-3zm-1 10H7v-4h10v4zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm.5-8H6v2h12V5z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 00-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 00.8 1.3z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 11-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 111.4-1.4l5 5a1 1 0 010 1.4l-5 5a1 1 0 01-1.4-1.4l3.3-3.3z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5 22.1l-1.2-4.7v-.2a1 1 0 011-1l5 .4a1 1 0 11-.2 2l-2.2-.2a7.8 7.8 0 008.4.2 7.5 7.5 0 003.5-6.4 1 1 0 112 0 9.5 9.5 0 01-4.5 8 9.9 9.9 0 01-10.2 0l.4 1.4a1 1 0 11-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 00-9.5-1 7.5 7.5 0 00-3.6 7 1 1 0 01-2 0 9.5 9.5 0 014.5-8.6 10 10 0 0110.9.3l-.3-1a1 1 0 012-.5l1.1 4.8a1 1 0 01-1 1.2l-5-.4a1 1 0 01-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 010 .2l-2.6 10a1 1 0 01-1 .8h-.2a.8.8 0 01-.8-1l2.6-10H8a1 1 0 110-2h9a1 1 0 010 2h-3.8zM5 18h7a1 1 0 010 2H5a1 1 0 010-2zm13 1.5L16.5 18 15 19.5a.7.7 0 01-1-1l1.5-1.5-1.5-1.5a.7.7 0 011-1l1.5 1.5 1.5-1.5a.7.7 0 011 1L17.5 17l1.5 1.5a.7.7 0 01-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 010 2h-1v9a3 3 0 01-3 3H9a3 3 0 01-3-3V9H5a1 1 0 110-2h3V6a3 3 0 013-3h2a3 3 0 013 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 00-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 012 0v4a1 1 0 01-2 0v-4zm4 0a1 1 0 012 0v4a1 1 0 01-2 0v-4z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 119 2l-7 7A.5.5 0 111 8l7-7zM8.1 5.1A.5.5 0 119 6l-3 3A.5.5 0 115 8l3-3z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 01-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-6a1 1 0 01-.7-.3 1 1 0 01-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 01-.7.3 1 1 0 01-.7-.3A1 1 0 014 11V5z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1z"/><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 010 2H3a1 1 0 01-1-1V5a1 1 0 112 0v3l2.5-2.4a9.2 9.2 0 0110.8-1.5A9 9 0 0113.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 111.3-1.5 7.2 7.2 0 0011.6-3.7 7 7 0 00-3.5-7.7A7.2 7.2 0 008 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 012 0v6c0 .6-.4 1-1 1h-6a1 1 0 010-2h4.3L16 7A7.2 7.2 0 007.7 6a7 7 0 003 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 011.4 1.5A9.2 9.2 0 012.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 014.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L8 5zm12 11.2a1 1 0 11-1 1.6l-3-2a1 1 0 010-1.6l3-2a1 1 0 111 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 012 2v2a2 2 0 01-2 2H5a2 2 0 01-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 10-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 10-1.4-1.4L13 11.6V4a1 1 0 00-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 00-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 00-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 002-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 00-1 1L9.6 17 18 8.6a.7.7 0 000-1 .7.7 0 00-1 0l-7.4 7.3z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V8H5a1 1 0 110-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6zM8 8h2V6H8v2zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V13H5a1 1 0 010-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6V18H5a1 1 0 010-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 10.2l5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2z" fill-rule="evenodd"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 010-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7zM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 00-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6zm0-3v2h2V5H6zm13 0h-3v5h3v1h-3a1 1 0 01-.7-.3 1 1 0 01-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1zm-5 1.5l-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 01-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5zM13 10V8h-2v2h2zm0-3V5h-2v2h2zm3 5l1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12z" fill-rule="evenodd"/></svg>',"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 017 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1z"/><path d="M5 11h14a1 1 0 010 2H5a1 1 0 010-2z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="M10.4 10l4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10zM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 00-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 01-1.3 1.3l-.6.6h2.6V19z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4L10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11z" fill-rule="nonzero"/></svg>',"table-caption":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="12" height="2" x="3" y="4" rx="1"/><path d="M19 8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2v-8c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></g></svg>',"table-cell-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M13 4v9H3V6c0-1.1.9-2 2-2h8zm-2 2H5v5h6V6z"/><path fill-rule="nonzero" d="M13 4h6a2 2 0 012 2v7h-8v-2h6V6h-6V4z" opacity=".2"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/><path fill-rule="nonzero" d="M3 13v5c0 1.1.9 2 2 2h8v-7h-2v5H5v-5H3z" opacity=".2"/></g></svg>',"table-cell-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8 0h-6v5h6v-5zm-8-7H5v5h6V6z"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z" opacity=".2"/></g></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v12h14V6z" opacity=".2"/><path d="M13 6v5h6v2h-6v5h-2v-5H5v-2h6V6h2z"/></g></svg>',"table-classes":'<svg width="24" height="24"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v7h-8v7H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 9H5v5h6v-5zm8-7h-6v5h6V6zm-8 0H5v5h6V6z"/><path d="M18 20l-2.6 1.6.7-3-2.4-2 3.1-.2 1.2-2.9 1.2 2.9 3 .2-2.3 2 .7 3z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-4 4h-2V6h-2v2H9V6H5v12h4v-2h2v2h2v-2h2v2h4V6h-4v2zm.3.5l1 1.2-3 2.3 3 2.3-1 1.2L12 13l-3.3 2.6-1-1.2 3-2.3-3-2.3 1-1.2L12 11l3.3-2.5z"/></svg>',"table-delete-row":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 2H5v3h2.5v2H5v2h2.5v2H5v3h14v-3h-2.5v-2H19v-2h-2.5V9H19V6zm-4.7 1.8l1.2 1L13 12l2.6 3.3-1.2 1-2.3-3-2.3 3-1.2-1L11 12 8.5 8.7l1.2-1 2.3 3 2.3-3z"/></svg>',"table-delete-table":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 6v12h14V6H5z"/><path d="M14.4 8.6l1 1-2.3 2.4 2.3 2.4-1 1-2.4-2.3-2.4 2.3-1-1 2.3-2.4-2.3-2.4 1-1 2.4 2.3z"/></g></svg>',"table-insert-column-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M20 4c.6 0 1 .4 1 1v2a1 1 0 01-2 0V6h-8v12h8v-1a1 1 0 012 0v2c0 .5-.4 1-.9 1H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h15zM9 13H5v5h4v-5zm7-5c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H17v2a1 1 0 01-2 .1V13h-2a1 1 0 01-.1-2H15V9c0-.6.4-1 1-1zM9 6H5v5h4V6z"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H4a1 1 0 01-1-1v-2a1 1 0 012 0v1h8V6H5v1a1 1 0 11-2 0V5c0-.6.4-1 1-1h15zm0 9h-4v5h4v-5zM8 8c.5 0 1 .4 1 .9V11h2a1 1 0 01.1 2H9v2a1 1 0 01-2 .1V13H5a1 1 0 01-.1-2H7V9c0-.6.4-1 1-1zm11-2h-4v5h4V6z"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4a1 1 0 110 2H5v6h14V6h-1a1 1 0 010-2h2c.6 0 1 .4 1 1v13a2 2 0 01-2 2H5a2 2 0 01-2-2V5c0-.6.4-1 1-1h2zm5 10H5v4h6v-4zm8 0h-6v4h6v-4zM12 3c.5 0 1 .4 1 .9V6h2a1 1 0 010 2h-2v2a1 1 0 01-2 .1V8H9a1 1 0 010-2h2V4c0-.6.4-1 1-1z"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path fill-rule="nonzero" d="M12 13c.5 0 1 .4 1 .9V16h2a1 1 0 01.1 2H13v2a1 1 0 01-2 .1V18H9a1 1 0 01-.1-2H11v-2c0-.6.4-1 1-1zm6 7a1 1 0 010-2h1v-6H5v6h1a1 1 0 010 2H4a1 1 0 01-1-1V6c0-1.1.9-2 2-2h14a2 2 0 012 2v13c0 .5-.4 1-.9 1H18zM11 6H5v4h6V6zm8 0h-6v4h6V6z"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm0 9h-4v5h4v-5zm-6 0H9v5h4v-5zm0-7H9v5h4V6zm6 0h-4v5h4V6z"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15.5V18h3v-2.5H5zm14-5h-9V18h9v-7.5zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6zm-8 7.5h3v-3H5v3z"/></svg>',"table-row-numbering-rtl":'<svg width="24" height="24"><path d="M6 4a2 2 0 00-2 2v13c0 1.1.9 2 2 2h12a2 2 0 002-2V6a2 2 0 00-2-2H6zm0 12h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 11h8v3H6v-3zm11 0c.6 0 1 .4 1 1v1a1 1 0 01-2 0v-1c0-.6.4-1 1-1zM6 6h8v3H6V6zm11 0c.6 0 1 .4 1 1v1a1 1 0 11-2 0V7c0-.6.4-1 1-1z"/></svg>',"table-row-numbering":'<svg width="24" height="24"><path d="M18 4a2 2 0 012 2v13a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2h12zm0 12h-8v3h8v-3zM7 16a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8v-3zM7 11a1 1 0 00-1 1v1a1 1 0 002 0v-1c0-.6-.4-1-1-1zm11-5h-8v3h8V6zM7 6a1 1 0 00-1 1v1a1 1 0 102 0V7c0-.6-.4-1-1-1z"/></svg>',"table-row-properties":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 15v3h6v-3H5zm14 0h-6v3h6v-3zm0-9h-6v3h6V6zM5 9h6V6H5v3z"/></svg>',"table-split-cells":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM8 15.5H5V18h3v-2.5zm11-5h-9V18h9v-7.5zm-2.5 1l1 1-2 2 2 2-1 1-2-2-2 2-1-1 2-2-2-2 1-1 2 2 2-2zm-8.5-1H5v3h3v-3zM19 6h-4v2.5h4V6zM8 6H5v2.5h3V6zm5 0h-3v2.5h3V6z"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zm-8 11H5v3h6v-3zm8 0h-6v3h6v-3zm0-5h-6v3h6v-3zM5 13h6v-3H5v3z"/></svg>',table:'<svg width="24" height="24"><path fill-rule="nonzero" d="M19 4a2 2 0 012 2v12a2 2 0 01-2 2H5a2 2 0 01-2-2V6c0-1.1.9-2 2-2h14zM5 14v4h6v-4H5zm14 0h-6v4h6v-4zm0-6h-6v4h6V8zM5 12h6V8H5v4z"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 116 0v4h4a2 2 0 012 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 10-3.6 0l.8.6v5h2z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 111 0V6H15v1.6a8 8 0 11-6 0zm-2.6 5.3a.5.5 0 00.3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 013.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 00-4.1 3.7z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 01-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 01-.5.6h-.8a.5.5 0 01-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 00.5.6h1.6a.5.5 0 00.5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z"/></g></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 110-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 110-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 010-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="M12.7 14.3l-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 010-1l3.1-3A12.4 12.4 0 016.7 9H8a10.1 10.1 0 001.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 110-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 01-1 2.4 13.5 13.5 0 01-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 01-.4.7 1 1 0 01-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 01-1 .7.5.5 0 01-.4-.7l2.7-7.4a1 1 0 012 0zm-2.2 4.4h2.4L16 12.5l-1.2 3.2z" fill-rule="evenodd"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 01-.4 1.8l-1 1.4a5.3 5.3 0 01-5.5 1 5 5 0 01-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 01-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 002.2.8 3.4 3.4 0 002.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1zM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 010-2z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 01-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 11-1.4 1.4l-5-5a1 1 0 010-1.4l5-5a1 1 0 011.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 011.4 1.4l-2 2a2 2 0 102.6 2.8l4.8-4.8a1 1 0 000-1.4 1 1 0 111.4-1.3 2.9 2.9 0 010 4L9.6 20a3.9 3.9 0 01-5.5-5.5l2-2zm11.6-.6a1 1 0 01-1.4-1.4l2.1-2a2 2 0 10-2.7-2.8L11 10.3a1 1 0 000 1.4A1 1 0 119.6 13a2.9 2.9 0 010-4L14.4 4a3.9 3.9 0 015.5 5.5l-2 2zM7.6 6.3a.8.8 0 01-1 1.1L3.3 4.2a.7.7 0 111-1l3.2 3.1zM5.1 8.6a.8.8 0 010 1.5H3a.8.8 0 010-1.5H5zm5-3.5a.8.8 0 01-1.5 0V3a.8.8 0 011.5 0V5zm6 11.8a.8.8 0 011-1l3.2 3.2a.8.8 0 01-1 1L16 17zm-2.2 2a.8.8 0 011.5 0V21a.8.8 0 01-1.5 0V19zm5-3.5a.7.7 0 110-1.5H21a.8.8 0 010 1.5H19z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 00-.3-.7A1 1 0 0016 7h-2a1 1 0 00-.7.3 1 1 0 00-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 01-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 010-2zM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 00-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 012 0v3c0 .6-.4 1-1 1H5a1 1 0 01-1-1v-3a1 1 0 012 0v2h12zM11 6.4L8.7 8.7a1 1 0 01-1.4-1.4l4-4a1 1 0 011.4 0l4 4a1 1 0 11-1.4 1.4L13 6.4V16a1 1 0 01-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 110-24 12 12 0 010 24zm-8.7-5.3a11 11 0 0017.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7zM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13z" fill-rule="nonzero"/></svg>',"vertical-align":'<svg width="24" height="24"><g fill-rule="nonzero"><rect width="18" height="2" x="3" y="11" rx="1"/><path d="M12 2c.6 0 1 .4 1 1v4l2-1.3a1 1 0 011.2 1.5l-.1.1-4.1 3-4-3a1 1 0 011-1.7l2 1.5V3c0-.6.4-1 1-1zm0 11.8l4 2.9a1 1 0 01-1 1.7l-2-1.5V21c0 .5-.4 1-.9 1H12a1 1 0 01-1-1v-4l-2 1.3a1 1 0 01-1.2-.1l-.1-.1a1 1 0 01.1-1.3l.1-.1 4.1-3z"/></g></svg>',visualblocks:'<svg width="24" height="24"><path d="M9 19v2H7v-2h2zm-4 0v2a2 2 0 01-2-2h2zm8 0v2h-2v-2h2zm8 0a2 2 0 01-2 2v-2h2zm-4 0v2h-2v-2h2zM15 7a1 1 0 010 2v7a1 1 0 01-2 0V9h-1v7a1 1 0 01-2 0v-4a2.5 2.5 0 01-.2-5H15zM5 15v2H3v-2h2zm16 0v2h-2v-2h2zM5 11v2H3v-2h2zm16 0v2h-2v-2h2zM5 7v2H3V7h2zm16 0v2h-2V7h2zM5 3v2H3c0-1.1.9-2 2-2zm8 0v2h-2V3h2zm6 0a2 2 0 012 2h-2V3zM9 3v2H7V3h2zm8 0v2h-2V3h2z" fill-rule="evenodd"/></svg>',visualchars:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 010 2h-1v11a1 1 0 01-2 0V7h-2v11a1 1 0 01-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 016.8 10a3.3 3.3 0 010-2.8 3.4 3.4 0 011.8-1.8L10 5z" fill-rule="evenodd"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6zM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 00-.3-.7 1 1 0 00-.7-.3 1 1 0 00-.7.3 1 1 0 00-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-1-9a1 1 0 012 0v6a1 1 0 01-2 0V8zm-2 4a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 111.4-1.4l4.3 4.4a1 1 0 01-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 100-12 6 6 0 000 12zm-3-5a1 1 0 010-2h6a1 1 0 010 2H8z" fill-rule="nonzero"/></svg>'}});const DW=$L({components:{Editor:bW},props:{value:{type:String,default:""},field:{type:String,default:""},toolbar:{type:Array,default:()=>["bold","italic","underline","h1","h2","h3","numlist","bullist","removeformat","blockquote","customLink","customImage","customMedia","hr","code","fullscreen"]},font:{type:String,default:"sans-serif"},customFormats:{type:Array,default:()=>[]},tinymceOverrides:{type:Object,default:null},disabled:{type:Boolean,default:!0},imageToken:{type:String,default:void 0},folder:{type:String,default:void 0},softLength:{type:Number,default:void 0}},emits:["input"],setup(fe,{emit:rt}){var po,Sr;const{t:wn}=rW(),Jt=Os(null),vt=Os(null),{imageToken:Yt}=NL(fe),vn=tW();let Nn=Os("all"),_n=Os([]);(po=vn.settings)!=null&&po.storage_asset_transform&&(Nn.value=vn.settings.storage_asset_transform,_n.value=(Sr=vn.settings.storage_asset_presets)!=null?Sr:[]);let Ar=Os(0);const{imageDrawerOpen:On,imageSelection:Le,closeImageDrawer:zt,onImageSelect:hn,saveImage:We,imageButton:de}=TW(Jt,Yt,{storageAssetTransform:Nn,storageAssetPresets:_n}),{mediaDrawerOpen:xt,mediaSelection:Fe,closeMediaDrawer:sn,openMediaTab:ee,onMediaSelect:ze,embed:Ee,saveMedia:Nt,mediaHeight:Gt,mediaWidth:pt,mediaSource:Bt,mediaButton:He}=EW(Jt,Yt),{linkButton:Fa,linkDrawerOpen:ve,closeLinkDrawer:Y,saveLink:An,linkSelection:wa}=kW(Jt),{codeDrawerOpen:Rt,code:Ca,closeCodeDrawer:Ir,saveCode:_,sourceCodeButton:pa}=OW(Jt),wt=xT({get(){return fe.value||""},set(){}}),Vt=xT(()=>{var $n;let Mt=null;Array.isArray(fe.customFormats)&&fe.customFormats.length>0&&(Mt=fe.customFormats);let Pn=(($n=fe.toolbar)!=null?$n:[]).map(bt=>bt.replace(/^link$/g,"customLink").replace(/^media$/g,"customMedia").replace(/^code$/g,"customCode").replace(/^image$/g,"customImage")).join(" ");return Mt&&(Pn+=" styleselect"),{skin:!1,skin_url:!1,content_css:!1,content_style:xW(fe.font),plugins:"media table hr lists image link pagebreak code insertdatetime autoresize paste preview fullscreen directionality",branding:!1,max_height:1e3,elementpath:!1,statusbar:!1,menubar:!1,convert_urls:!1,image_dimensions:!1,extended_valid_elements:"audio[loop|controls],source[src|type]",toolbar:Pn,style_formats:Mt,file_picker_types:"customImage customMedia image media",link_default_protocol:"https",browser_spellcheck:!0,setup:dt,...fe.tinymceOverrides||{}}}),io=xT(()=>{var Mt;return(Mt=nW(Ar.value,fe.softLength))!=null?Mt:100});let ho,or;return{t:wn,percRemaining:io,count:Ar,editorElement:vt,editorOptions:Vt,internalValue:wt,setFocus:Ft,onImageSelect:hn,saveImage:We,imageDrawerOpen:On,closeImageDrawer:zt,imageSelection:Le,mediaDrawerOpen:xt,mediaSelection:Fe,closeMediaDrawer:sn,openMediaTab:ee,embed:Ee,onMediaSelect:ze,saveMedia:Nt,mediaHeight:Gt,mediaWidth:pt,mediaSource:Bt,linkButton:Fa,linkDrawerOpen:ve,closeLinkDrawer:Y,saveLink:An,linkSelection:wa,codeDrawerOpen:Rt,code:Ca,closeCodeDrawer:Ir,saveCode:_,sourceCodeButton:pa,setupContentWatcher:Ja,setCount:la,contentUpdated:J,storageAssetTransform:Nn,storageAssetPresets:_n};function la(){var Pn,$n,bt,ir;const Mt=(Pn=Jt.value)==null?void 0:Pn.contentWindow.document.getElementById("tinymce");Ar.value=(ir=(bt=($n=Mt==null?void 0:Mt.textContent)==null?void 0:$n.replace(`
239
- `,""))==null?void 0:bt.length)!=null?ir:0}function J(){if(la(),!ho)return;const Mt=Jt.value.getContent()?Jt.value.getContent():null;Mt!==or&&(or=Mt,rt("input",Mt))}function Ja(){if(ho)return;const Mt=Jt.value.contentWindow.document.getElementById("tinymce");ho=new MutationObserver($n=>{J()});const Pn={characterData:!0,childList:!0,subtree:!0};ho.observe(Mt,Pn)}function dt(Mt){Jt.value=Mt,Mt.ui.registry.addToggleButton("customImage",de),Mt.ui.registry.addToggleButton("customMedia",He),Mt.ui.registry.addToggleButton("customLink",Fa),Mt.ui.registry.addButton("customCode",pa),Mt.on("init",function(){Mt.shortcuts.remove("meta+k"),Mt.addShortcut("meta+k","Insert Link",()=>{Mt.ui.registry.getAll().buttons.customlink.onAction()}),la()}),Mt.on("OpenWindow",function(Pn){var $n,bt;if(($n=Pn.dialog)!=null&&$n.getData){const ir=(bt=Pn.dialog)==null?void 0:bt.getData();ir&&(ir.url&&(Pn.dialog.close(),Mt.ui.registry.getAll().buttons.customlink.onAction()),ir.src&&(Pn.dialog.close(),Mt.ui.registry.getAll().buttons.customimage.onAction(!0)))}})}function Ft(Mt){var $n;if(vt.value==null)return;const Pn=($n=vt.value.$el.parentElement)==null?void 0:$n.querySelector(".tox-tinymce");Pn!=null&&(Mt?Pn.classList.add("focus"):Pn.classList.remove("focus"))}}}),RW=["id"],_W={class:"grid"},BW={class:"field"},MW={class:"type-label"},PW={class:"field"},$W={class:"type-label"},NW={class:"field half"},IW={class:"type-label"},zW={class:"field half-right"},FW={class:"type-label"},LW={class:"content"},HW={class:"content"},VW=["src"],UW={class:"grid"},WW={class:"field half"},jW={class:"type-label"},qW={class:"field half-right"},GW={class:"type-label"},KW={class:"field half"},XW={class:"type-label"},YW={class:"field half-right"},JW={class:"type-label"},ZW={key:1,class:"field half"},QW={class:"type-label"},ej={class:"content"},tj={key:0,class:"media-preview",controls:"true"},nj=["src"],rj=["src"],aj={class:"grid"},oj={class:"field"},ij={class:"type-label"},uj={class:"field half"},sj={class:"type-label"},cj={class:"field half-right"},lj={class:"type-label"},fj={class:"grid"},vj={class:"field"},dj={class:"type-label"};function mj(fe,rt,wn,Jt,vt,Yt){const vn=Ys("editor"),Nn=Ys("v-card-title"),_n=Ys("v-input"),Ar=Ys("v-checkbox"),On=Ys("v-card-text"),Le=Ys("v-button"),zt=Ys("v-card-actions"),hn=Ys("v-card"),We=Ys("v-dialog"),de=Ys("interface-input-code"),xt=Ys("v-icon"),Fe=Ys("v-drawer"),sn=Ys("v-select"),ee=Ys("v-upload"),ze=Ys("v-tab"),Ee=Ys("v-tabs"),Nt=Ys("v-tab-item"),Gt=Ys("v-textarea"),pt=Ys("v-tabs-items"),Bt=ZU("tooltip");return id(),Yb("div",{id:fe.field,class:RL(["wysiwyg",{disabled:fe.disabled}])},[oo(vn,{ref:"editorElement",modelValue:fe.internalValue,"onUpdate:modelValue":rt[0]||(rt[0]=He=>fe.internalValue=He),init:fe.editorOptions,disabled:fe.disabled,"model-events":"change keydown blur focus paste ExecCommand SetContent",onFocusin:rt[1]||(rt[1]=He=>fe.setFocus(!0)),onFocusout:rt[2]||(rt[2]=He=>fe.setFocus(!1)),onFocus:fe.setupContentWatcher,onSetContent:fe.contentUpdated},null,8,["modelValue","init","disabled","onFocus","onSetContent"]),fe.softLength?(id(),Yb("span",{key:0,class:RL(["remaining",{warning:fe.percRemaining<10,danger:fe.percRemaining<5}])},Js(fe.softLength-fe.count),3)):BO("",!0),oo(We,{modelValue:fe.linkDrawerOpen,"onUpdate:modelValue":rt[7]||(rt[7]=He=>fe.linkDrawerOpen=He)},{default:_u(()=>[oo(hn,null,{default:_u(()=>[oo(Nn,{class:"card-title"},{default:_u(()=>[MO(Js(fe.t("wysiwyg_options.link")),1)]),_:1}),oo(On,null,{default:_u(()=>[go("div",_W,[go("div",BW,[go("div",MW,Js(fe.t("url")),1),oo(_n,{modelValue:fe.linkSelection.url,"onUpdate:modelValue":rt[3]||(rt[3]=He=>fe.linkSelection.url=He),placeholder:fe.t("url_placeholder")},null,8,["modelValue","placeholder"])]),go("div",PW,[go("div",$W,Js(fe.t("display_text")),1),oo(_n,{modelValue:fe.linkSelection.displayText,"onUpdate:modelValue":rt[4]||(rt[4]=He=>fe.linkSelection.displayText=He),placeholder:fe.t("display_text_placeholder")},null,8,["modelValue","placeholder"])]),go("div",NW,[go("div",IW,Js(fe.t("tooltip")),1),oo(_n,{modelValue:fe.linkSelection.title,"onUpdate:modelValue":rt[5]||(rt[5]=He=>fe.linkSelection.title=He),placeholder:fe.t("tooltip_placeholder")},null,8,["modelValue","placeholder"])]),go("div",zW,[go("div",FW,Js(fe.t("open_link_in")),1),oo(Ar,{modelValue:fe.linkSelection.newTab,"onUpdate:modelValue":rt[6]||(rt[6]=He=>fe.linkSelection.newTab=He),block:"",label:fe.t(fe.linkSelection.newTab?"new_tab":"current_tab")},null,8,["modelValue","label"])])])]),_:1}),oo(zt,null,{default:_u(()=>[oo(Le,{secondary:"",onClick:fe.closeLinkDrawer},{default:_u(()=>[MO(Js(fe.t("cancel")),1)]),_:1},8,["onClick"]),oo(Le,{disabled:fe.linkSelection.url===null,onClick:fe.saveLink},{default:_u(()=>[MO(Js(fe.t("save")),1)]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),oo(Fe,{modelValue:fe.codeDrawerOpen,"onUpdate:modelValue":rt[9]||(rt[9]=He=>fe.codeDrawerOpen=He),title:fe.t("wysiwyg_options.source_code"),icon:"code",onCancel:fe.closeCodeDrawer},{actions:_u(()=>[oo(Le,{icon:"",rounded:"",onClick:fe.saveCode},{default:_u(()=>[oo(xt,{name:"check"})]),_:1},8,["onClick"])]),default:_u(()=>[go("div",LW,[oo(de,{value:fe.code,language:"htmlmixed","line-wrapping":!0,onInput:rt[8]||(rt[8]=He=>fe.code=He)},null,8,["value"])])]),_:1},8,["modelValue","title","onCancel"]),oo(Fe,{modelValue:fe.imageDrawerOpen,"onUpdate:modelValue":rt[15]||(rt[15]=He=>fe.imageDrawerOpen=He),title:fe.t("wysiwyg_options.image"),icon:"image",onCancel:fe.closeImageDrawer},{actions:_u(()=>[_L((id(),$B(Le,{icon:"",rounded:"",onClick:fe.saveImage},{default:_u(()=>[oo(xt,{name:"check"})]),_:1},8,["onClick"])),[[Bt,fe.t("save_image"),void 0,{bottom:!0}]])]),default:_u(()=>[go("div",HW,[fe.imageSelection?(id(),Yb(HF,{key:0},[go("img",{class:"image-preview",src:fe.imageSelection.previewUrl},null,8,VW),go("div",UW,[go("div",WW,[go("div",jW,Js(fe.t("image_url")),1),oo(_n,{modelValue:fe.imageSelection.imageUrl,"onUpdate:modelValue":rt[10]||(rt[10]=He=>fe.imageSelection.imageUrl=He)},null,8,["modelValue"])]),go("div",qW,[go("div",GW,Js(fe.t("alt_text")),1),oo(_n,{modelValue:fe.imageSelection.alt,"onUpdate:modelValue":rt[11]||(rt[11]=He=>fe.imageSelection.alt=He)},null,8,["modelValue"])]),fe.storageAssetTransform==="all"?(id(),Yb(HF,{key:0},[go("div",KW,[go("div",XW,Js(fe.t("width")),1),oo(_n,{modelValue:fe.imageSelection.width,"onUpdate:modelValue":rt[12]||(rt[12]=He=>fe.imageSelection.width=He),disabled:!!fe.imageSelection.transformationKey},null,8,["modelValue","disabled"])]),go("div",YW,[go("div",JW,Js(fe.t("height")),1),oo(_n,{modelValue:fe.imageSelection.height,"onUpdate:modelValue":rt[13]||(rt[13]=He=>fe.imageSelection.height=He),disabled:!!fe.imageSelection.transformationKey},null,8,["modelValue","disabled"])])],64)):BO("",!0),fe.storageAssetTransform!=="none"&&fe.storageAssetPresets.length>0?(id(),Yb("div",ZW,[go("div",QW,Js(fe.t("transformation_preset_key")),1),oo(sn,{modelValue:fe.imageSelection.transformationKey,"onUpdate:modelValue":rt[14]||(rt[14]=He=>fe.imageSelection.transformationKey=He),items:fe.storageAssetPresets.map(He=>({text:He.key,value:He.key})),"show-deselect":!0},null,8,["modelValue","items"])])):BO("",!0)])],64)):(id(),$B(ee,{key:1,multiple:!1,"from-library":"","from-url":"",folder:fe.folder,onInput:fe.onImageSelect},null,8,["folder","onInput"]))])]),_:1},8,["modelValue","title","onCancel"]),oo(Fe,{modelValue:fe.mediaDrawerOpen,"onUpdate:modelValue":rt[22]||(rt[22]=He=>fe.mediaDrawerOpen=He),title:fe.t("wysiwyg_options.media"),icon:"slideshow",onCancel:fe.closeMediaDrawer},{sidebar:_u(()=>[oo(Ee,{modelValue:fe.openMediaTab,"onUpdate:modelValue":rt[16]||(rt[16]=He=>fe.openMediaTab=He),vertical:""},{default:_u(()=>[oo(ze,{value:"video"},{default:_u(()=>[MO(Js(fe.t("media")),1)]),_:1}),oo(ze,{value:"embed"},{default:_u(()=>[MO(Js(fe.t("embed")),1)]),_:1})]),_:1},8,["modelValue"])]),actions:_u(()=>[_L((id(),$B(Le,{icon:"",rounded:"",onClick:fe.saveMedia},{default:_u(()=>[oo(xt,{name:"check"})]),_:1},8,["onClick"])),[[Bt,fe.t("save_media"),void 0,{bottom:!0}]])]),default:_u(()=>[go("div",ej,[oo(pt,{modelValue:fe.openMediaTab,"onUpdate:modelValue":rt[21]||(rt[21]=He=>fe.openMediaTab=He)},{default:_u(()=>[oo(Nt,{value:"video"},{default:_u(()=>[fe.mediaSelection?(id(),Yb(HF,{key:0},[fe.mediaSelection.tag!=="iframe"?(id(),Yb("video",tj,[go("source",{src:fe.mediaSelection.previewUrl},null,8,nj)])):BO("",!0),fe.mediaSelection.tag==="iframe"?(id(),Yb("iframe",{key:1,class:"media-preview",src:fe.mediaSelection.previewUrl},null,8,rj)):BO("",!0),go("div",aj,[go("div",oj,[go("div",ij,Js(fe.t("source")),1),oo(_n,{modelValue:fe.mediaSource,"onUpdate:modelValue":rt[17]||(rt[17]=He=>fe.mediaSource=He)},null,8,["modelValue"])]),go("div",uj,[go("div",sj,Js(fe.t("width")),1),oo(_n,{modelValue:fe.mediaWidth,"onUpdate:modelValue":rt[18]||(rt[18]=He=>fe.mediaWidth=He)},null,8,["modelValue"])]),go("div",cj,[go("div",lj,Js(fe.t("height")),1),oo(_n,{modelValue:fe.mediaHeight,"onUpdate:modelValue":rt[19]||(rt[19]=He=>fe.mediaHeight=He)},null,8,["modelValue"])])])],64)):(id(),$B(ee,{key:1,multiple:!1,"from-library":"","from-url":"",folder:fe.folder,onInput:fe.onMediaSelect},null,8,["folder","onInput"]))]),_:1}),oo(Nt,{value:"embed"},{default:_u(()=>[go("div",fj,[go("div",vj,[go("div",dj,Js(fe.t("embed")),1),oo(Gt,{modelValue:fe.embed,"onUpdate:modelValue":rt[20]||(rt[20]=He=>fe.embed=He),nullable:!1},null,8,["modelValue"])])])]),_:1})]),_:1},8,["modelValue"])])]),_:1},8,["modelValue","title","onCancel"])],10,RW)}var Sj=eW(DW,[["render",mj],["__scopeId","data-v-1d9660e5"]]);export{Sj as default};
239
+ `,""))==null?void 0:bt.length)!=null?ir:0}function J(){if(la(),!ho)return;const Mt=Jt.value.getContent()?Jt.value.getContent():null;Mt!==or&&(or=Mt,rt("input",Mt))}function Ja(){if(ho)return;const Mt=Jt.value.contentWindow.document.getElementById("tinymce");ho=new MutationObserver($n=>{J()});const Pn={characterData:!0,childList:!0,subtree:!0};ho.observe(Mt,Pn)}function dt(Mt){Jt.value=Mt,Mt.ui.registry.addToggleButton("customImage",de),Mt.ui.registry.addToggleButton("customMedia",He),Mt.ui.registry.addToggleButton("customLink",Fa),Mt.ui.registry.addButton("customCode",pa),Mt.on("init",function(){Mt.shortcuts.remove("meta+k"),Mt.addShortcut("meta+k","Insert Link",()=>{Mt.ui.registry.getAll().buttons.customlink.onAction()}),la()}),Mt.on("OpenWindow",function(Pn){var $n,bt;if(($n=Pn.dialog)!=null&&$n.getData){const ir=(bt=Pn.dialog)==null?void 0:bt.getData();ir&&(ir.url&&(Pn.dialog.close(),Mt.ui.registry.getAll().buttons.customlink.onAction()),ir.src&&(Pn.dialog.close(),Mt.ui.registry.getAll().buttons.customimage.onAction(!0)))}})}function Ft(Mt){var $n;if(vt.value==null)return;const Pn=($n=vt.value.$el.parentElement)==null?void 0:$n.querySelector(".tox-tinymce");Pn!=null&&(Mt?Pn.classList.add("focus"):Pn.classList.remove("focus"))}}}),RW=["id"],_W={class:"grid"},BW={class:"field"},MW={class:"type-label"},PW={class:"field"},$W={class:"type-label"},NW={class:"field half"},IW={class:"type-label"},zW={class:"field half-right"},FW={class:"type-label"},LW={class:"content"},HW={class:"content"},VW=["src"],UW={class:"grid"},WW={class:"field half"},jW={class:"type-label"},qW={class:"field half-right"},GW={class:"type-label"},KW={class:"field half"},XW={class:"type-label"},YW={class:"field half-right"},JW={class:"type-label"},ZW={key:1,class:"field half"},QW={class:"type-label"},ej={class:"content"},tj={key:0,class:"media-preview",controls:"true"},nj=["src"],rj=["src"],aj={class:"grid"},oj={class:"field"},ij={class:"type-label"},uj={class:"field half"},sj={class:"type-label"},cj={class:"field half-right"},lj={class:"type-label"},fj={class:"grid"},vj={class:"field"},dj={class:"type-label"};function mj(fe,rt,wn,Jt,vt,Yt){const vn=Ys("editor"),Nn=Ys("v-card-title"),_n=Ys("v-input"),Ar=Ys("v-checkbox"),On=Ys("v-card-text"),Le=Ys("v-button"),zt=Ys("v-card-actions"),hn=Ys("v-card"),We=Ys("v-dialog"),de=Ys("interface-input-code"),xt=Ys("v-icon"),Fe=Ys("v-drawer"),sn=Ys("v-select"),ee=Ys("v-upload"),ze=Ys("v-tab"),Ee=Ys("v-tabs"),Nt=Ys("v-tab-item"),Gt=Ys("v-textarea"),pt=Ys("v-tabs-items"),Bt=ZU("tooltip");return id(),Yb("div",{id:fe.field,class:RL(["wysiwyg",{disabled:fe.disabled}])},[oo(vn,{ref:"editorElement",modelValue:fe.internalValue,"onUpdate:modelValue":rt[0]||(rt[0]=He=>fe.internalValue=He),init:fe.editorOptions,disabled:fe.disabled,"model-events":"change keydown blur focus paste ExecCommand SetContent",onFocusin:rt[1]||(rt[1]=He=>fe.setFocus(!0)),onFocusout:rt[2]||(rt[2]=He=>fe.setFocus(!1)),onFocus:fe.setupContentWatcher,onSetContent:fe.contentUpdated},null,8,["modelValue","init","disabled","onFocus","onSetContent"]),fe.softLength?(id(),Yb("span",{key:0,class:RL(["remaining",{warning:fe.percRemaining<10,danger:fe.percRemaining<5}])},Js(fe.softLength-fe.count),3)):BO("",!0),oo(We,{modelValue:fe.linkDrawerOpen,"onUpdate:modelValue":rt[7]||(rt[7]=He=>fe.linkDrawerOpen=He)},{default:_u(()=>[oo(hn,null,{default:_u(()=>[oo(Nn,{class:"card-title"},{default:_u(()=>[MO(Js(fe.t("wysiwyg_options.link")),1)]),_:1}),oo(On,null,{default:_u(()=>[go("div",_W,[go("div",BW,[go("div",MW,Js(fe.t("url")),1),oo(_n,{modelValue:fe.linkSelection.url,"onUpdate:modelValue":rt[3]||(rt[3]=He=>fe.linkSelection.url=He),placeholder:fe.t("url_placeholder")},null,8,["modelValue","placeholder"])]),go("div",PW,[go("div",$W,Js(fe.t("display_text")),1),oo(_n,{modelValue:fe.linkSelection.displayText,"onUpdate:modelValue":rt[4]||(rt[4]=He=>fe.linkSelection.displayText=He),placeholder:fe.t("display_text_placeholder")},null,8,["modelValue","placeholder"])]),go("div",NW,[go("div",IW,Js(fe.t("tooltip")),1),oo(_n,{modelValue:fe.linkSelection.title,"onUpdate:modelValue":rt[5]||(rt[5]=He=>fe.linkSelection.title=He),placeholder:fe.t("tooltip_placeholder")},null,8,["modelValue","placeholder"])]),go("div",zW,[go("div",FW,Js(fe.t("open_link_in")),1),oo(Ar,{modelValue:fe.linkSelection.newTab,"onUpdate:modelValue":rt[6]||(rt[6]=He=>fe.linkSelection.newTab=He),block:"",label:fe.t(fe.linkSelection.newTab?"new_tab":"current_tab")},null,8,["modelValue","label"])])])]),_:1}),oo(zt,null,{default:_u(()=>[oo(Le,{secondary:"",onClick:fe.closeLinkDrawer},{default:_u(()=>[MO(Js(fe.t("cancel")),1)]),_:1},8,["onClick"]),oo(Le,{disabled:fe.linkSelection.url===null,onClick:fe.saveLink},{default:_u(()=>[MO(Js(fe.t("save")),1)]),_:1},8,["disabled","onClick"])]),_:1})]),_:1})]),_:1},8,["modelValue"]),oo(Fe,{modelValue:fe.codeDrawerOpen,"onUpdate:modelValue":rt[9]||(rt[9]=He=>fe.codeDrawerOpen=He),title:fe.t("wysiwyg_options.source_code"),icon:"code",onCancel:fe.closeCodeDrawer},{actions:_u(()=>[oo(Le,{icon:"",rounded:"",onClick:fe.saveCode},{default:_u(()=>[oo(xt,{name:"check"})]),_:1},8,["onClick"])]),default:_u(()=>[go("div",LW,[oo(de,{value:fe.code,language:"htmlmixed","line-wrapping":!0,onInput:rt[8]||(rt[8]=He=>fe.code=He)},null,8,["value"])])]),_:1},8,["modelValue","title","onCancel"]),oo(Fe,{modelValue:fe.imageDrawerOpen,"onUpdate:modelValue":rt[15]||(rt[15]=He=>fe.imageDrawerOpen=He),title:fe.t("wysiwyg_options.image"),icon:"image",onCancel:fe.closeImageDrawer},{actions:_u(()=>[_L((id(),$B(Le,{icon:"",rounded:"",onClick:fe.saveImage},{default:_u(()=>[oo(xt,{name:"check"})]),_:1},8,["onClick"])),[[Bt,fe.t("save_image"),void 0,{bottom:!0}]])]),default:_u(()=>[go("div",HW,[fe.imageSelection?(id(),Yb(HF,{key:0},[go("img",{class:"image-preview",src:fe.imageSelection.previewUrl},null,8,VW),go("div",UW,[go("div",WW,[go("div",jW,Js(fe.t("image_url")),1),oo(_n,{modelValue:fe.imageSelection.imageUrl,"onUpdate:modelValue":rt[10]||(rt[10]=He=>fe.imageSelection.imageUrl=He)},null,8,["modelValue"])]),go("div",qW,[go("div",GW,Js(fe.t("alt_text")),1),oo(_n,{modelValue:fe.imageSelection.alt,"onUpdate:modelValue":rt[11]||(rt[11]=He=>fe.imageSelection.alt=He)},null,8,["modelValue"])]),fe.storageAssetTransform==="all"?(id(),Yb(HF,{key:0},[go("div",KW,[go("div",XW,Js(fe.t("width")),1),oo(_n,{modelValue:fe.imageSelection.width,"onUpdate:modelValue":rt[12]||(rt[12]=He=>fe.imageSelection.width=He),disabled:!!fe.imageSelection.transformationKey},null,8,["modelValue","disabled"])]),go("div",YW,[go("div",JW,Js(fe.t("height")),1),oo(_n,{modelValue:fe.imageSelection.height,"onUpdate:modelValue":rt[13]||(rt[13]=He=>fe.imageSelection.height=He),disabled:!!fe.imageSelection.transformationKey},null,8,["modelValue","disabled"])])],64)):BO("",!0),fe.storageAssetTransform!=="none"&&fe.storageAssetPresets.length>0?(id(),Yb("div",ZW,[go("div",QW,Js(fe.t("transformation_preset_key")),1),oo(sn,{modelValue:fe.imageSelection.transformationKey,"onUpdate:modelValue":rt[14]||(rt[14]=He=>fe.imageSelection.transformationKey=He),items:fe.storageAssetPresets.map(He=>({text:He.key,value:He.key})),"show-deselect":!0},null,8,["modelValue","items"])])):BO("",!0)])],64)):(id(),$B(ee,{key:1,multiple:!1,"from-library":"","from-url":"",folder:fe.folder,onInput:fe.onImageSelect},null,8,["folder","onInput"]))])]),_:1},8,["modelValue","title","onCancel"]),oo(Fe,{modelValue:fe.mediaDrawerOpen,"onUpdate:modelValue":rt[22]||(rt[22]=He=>fe.mediaDrawerOpen=He),title:fe.t("wysiwyg_options.media"),icon:"slideshow",onCancel:fe.closeMediaDrawer},{sidebar:_u(()=>[oo(Ee,{modelValue:fe.openMediaTab,"onUpdate:modelValue":rt[16]||(rt[16]=He=>fe.openMediaTab=He),vertical:""},{default:_u(()=>[oo(ze,{value:"video"},{default:_u(()=>[MO(Js(fe.t("media")),1)]),_:1}),oo(ze,{value:"embed"},{default:_u(()=>[MO(Js(fe.t("embed")),1)]),_:1})]),_:1},8,["modelValue"])]),actions:_u(()=>[_L((id(),$B(Le,{icon:"",rounded:"",onClick:fe.saveMedia},{default:_u(()=>[oo(xt,{name:"check"})]),_:1},8,["onClick"])),[[Bt,fe.t("save_media"),void 0,{bottom:!0}]])]),default:_u(()=>[go("div",ej,[oo(pt,{modelValue:fe.openMediaTab,"onUpdate:modelValue":rt[21]||(rt[21]=He=>fe.openMediaTab=He)},{default:_u(()=>[oo(Nt,{value:"video"},{default:_u(()=>[fe.mediaSelection?(id(),Yb(HF,{key:0},[fe.mediaSelection.tag!=="iframe"?(id(),Yb("video",tj,[go("source",{src:fe.mediaSelection.previewUrl},null,8,nj)])):BO("",!0),fe.mediaSelection.tag==="iframe"?(id(),Yb("iframe",{key:1,class:"media-preview",src:fe.mediaSelection.previewUrl},null,8,rj)):BO("",!0),go("div",aj,[go("div",oj,[go("div",ij,Js(fe.t("source")),1),oo(_n,{modelValue:fe.mediaSource,"onUpdate:modelValue":rt[17]||(rt[17]=He=>fe.mediaSource=He)},null,8,["modelValue"])]),go("div",uj,[go("div",sj,Js(fe.t("width")),1),oo(_n,{modelValue:fe.mediaWidth,"onUpdate:modelValue":rt[18]||(rt[18]=He=>fe.mediaWidth=He)},null,8,["modelValue"])]),go("div",cj,[go("div",lj,Js(fe.t("height")),1),oo(_n,{modelValue:fe.mediaHeight,"onUpdate:modelValue":rt[19]||(rt[19]=He=>fe.mediaHeight=He)},null,8,["modelValue"])])])],64)):(id(),$B(ee,{key:1,multiple:!1,"from-library":"","from-url":"",folder:fe.folder,onInput:fe.onMediaSelect},null,8,["folder","onInput"]))]),_:1}),oo(Nt,{value:"embed"},{default:_u(()=>[go("div",fj,[go("div",vj,[go("div",dj,Js(fe.t("embed")),1),oo(Gt,{modelValue:fe.embed,"onUpdate:modelValue":rt[20]||(rt[20]=He=>fe.embed=He),nullable:!1},null,8,["modelValue"])])])]),_:1})]),_:1},8,["modelValue"])])]),_:1},8,["modelValue","title","onCancel"])],10,RW)}var Sj=eW(DW,[["render",mj],["__scopeId","data-v-50d12c62"]]);export{Sj as default};