@waline/client 2.15.2 → 2.15.3

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 (51) hide show
  1. package/package.json +15 -11
  2. package/src/composables/turnstile.ts +3 -0
  3. package/dist/api.cjs +0 -2
  4. package/dist/api.cjs.map +0 -1
  5. package/dist/api.d.cts +0 -445
  6. package/dist/api.d.mts +0 -445
  7. package/dist/api.d.ts +0 -445
  8. package/dist/api.mjs +0 -2
  9. package/dist/api.mjs.map +0 -1
  10. package/dist/comment.cjs +0 -2
  11. package/dist/comment.cjs.map +0 -1
  12. package/dist/comment.d.cts +0 -39
  13. package/dist/comment.d.mts +0 -39
  14. package/dist/comment.d.ts +0 -39
  15. package/dist/comment.js +0 -2
  16. package/dist/comment.js.map +0 -1
  17. package/dist/comment.mjs +0 -2
  18. package/dist/comment.mjs.map +0 -1
  19. package/dist/component.mjs +0 -2
  20. package/dist/component.mjs.map +0 -1
  21. package/dist/legacy.umd.d.ts +0 -628
  22. package/dist/legacy.umd.js +0 -2
  23. package/dist/legacy.umd.js.map +0 -1
  24. package/dist/pageview.cjs +0 -2
  25. package/dist/pageview.cjs.map +0 -1
  26. package/dist/pageview.d.cts +0 -47
  27. package/dist/pageview.d.mts +0 -47
  28. package/dist/pageview.d.ts +0 -47
  29. package/dist/pageview.js +0 -2
  30. package/dist/pageview.js.map +0 -1
  31. package/dist/pageview.mjs +0 -2
  32. package/dist/pageview.mjs.map +0 -1
  33. package/dist/shim.cjs +0 -2
  34. package/dist/shim.cjs.map +0 -1
  35. package/dist/shim.d.cts +0 -718
  36. package/dist/shim.d.mts +0 -718
  37. package/dist/shim.mjs +0 -2
  38. package/dist/shim.mjs.map +0 -1
  39. package/dist/waline-meta.css +0 -1
  40. package/dist/waline-meta.css.map +0 -1
  41. package/dist/waline.cjs +0 -2
  42. package/dist/waline.cjs.map +0 -1
  43. package/dist/waline.css +0 -1
  44. package/dist/waline.css.map +0 -1
  45. package/dist/waline.d.cts +0 -718
  46. package/dist/waline.d.mts +0 -718
  47. package/dist/waline.d.ts +0 -718
  48. package/dist/waline.js +0 -2
  49. package/dist/waline.js.map +0 -1
  50. package/dist/waline.mjs +0 -2
  51. package/dist/waline.mjs.map +0 -1
@@ -1 +0,0 @@
1
- .wl-meta>span::before{content:"";display:inline-block;width:1em;height:1em;margin-inline-end:2px;background-position:center center;background-repeat:no-repeat}.wl-meta>.wl-addr::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23999'%3E%3Cpath d='M444.52 3.52 28.74 195.42c-47.97 22.39-31.98 92.75 19.19 92.75h175.91v175.91c0 51.17 70.36 67.17 92.75 19.19l191.9-415.78c15.99-38.39-25.59-79.97-63.97-63.97z'/%3E%3C/svg%3E")}.wl-meta>.wl-os::before,.wl-meta>.wl-browser::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23999'%3E%3Cpath d='M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 394c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V192h416v234z'/%3E%3C/svg%3E")}.wl-meta>.wl-os[data-value^=windows i]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' fill='%23999'%3E%3Cpath d='m0 93.7 183.6-25.3v177.4H0V93.7zm0 324.6 183.6 25.3V268.4H0v149.9zm203.8 28L448 480V268.4H203.8v177.9zm0-380.6v180.1H448V32L203.8 65.7z'/%3E%3C/svg%3E")}.wl-meta>.wl-os[data-value^=mac i]::before,.wl-meta>.wl-os[data-value^=ios i]::before,.wl-meta>.wl-os[data-value^=iphone i]::before,.wl-meta>.wl-os[data-value^=ipad i]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512' fill='%23999'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zm-56.6-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E")}.wl-meta>.wl-os[data-value^=linux i]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512' fill='%23999'%3E%3Cpath d='M220.8 123.3c1 .5 1.8 1.7 3 1.7 1.1 0 2.8-.4 2.9-1.5.2-1.4-1.9-2.3-3.2-2.9-1.7-.7-3.9-1-5.5-.1-.4.2-.8.7-.6 1.1.3 1.3 2.3 1.1 3.4 1.7zm-21.9 1.7c1.2 0 2-1.2 3-1.7 1.1-.6 3.1-.4 3.5-1.6.2-.4-.2-.9-.6-1.1-1.6-.9-3.8-.6-5.5.1-1.3.6-3.4 1.5-3.2 2.9.1 1 1.8 1.5 2.8 1.4zM420 403.8c-3.6-4-5.3-11.6-7.2-19.7-1.8-8.1-3.9-16.8-10.5-22.4-1.3-1.1-2.6-2.1-4-2.9-1.3-.8-2.7-1.5-4.1-2 9.2-27.3 5.6-54.5-3.7-79.1-11.4-30.1-31.3-56.4-46.5-74.4-17.1-21.5-33.7-41.9-33.4-72C311.1 85.4 315.7.1 234.8 0 132.4-.2 158 103.4 156.9 135.2c-1.7 23.4-6.4 41.8-22.5 64.7-18.9 22.5-45.5 58.8-58.1 96.7-6 17.9-8.8 36.1-6.2 53.3-6.5 5.8-11.4 14.7-16.6 20.2-4.2 4.3-10.3 5.9-17 8.3s-14 6-18.5 14.5c-2.1 3.9-2.8 8.1-2.8 12.4 0 3.9.6 7.9 1.2 11.8 1.2 8.1 2.5 15.7.8 20.8-5.2 14.4-5.9 24.4-2.2 31.7 3.8 7.3 11.4 10.5 20.1 12.3 17.3 3.6 40.8 2.7 59.3 12.5 19.8 10.4 39.9 14.1 55.9 10.4 11.6-2.6 21.1-9.6 25.9-20.2 12.5-.1 26.3-5.4 48.3-6.6 14.9-1.2 33.6 5.3 55.1 4.1.6 2.3 1.4 4.6 2.5 6.7v.1c8.3 16.7 23.8 24.3 40.3 23 16.6-1.3 34.1-11 48.3-27.9 13.6-16.4 36-23.2 50.9-32.2 7.4-4.5 13.4-10.1 13.9-18.3.4-8.2-4.4-17.3-15.5-29.7zM223.7 87.3c9.8-22.2 34.2-21.8 44-.4 6.5 14.2 3.6 30.9-4.3 40.4-1.6-.8-5.9-2.6-12.6-4.9 1.1-1.2 3.1-2.7 3.9-4.6 4.8-11.8-.2-27-9.1-27.3-7.3-.5-13.9 10.8-11.8 23-4.1-2-9.4-3.5-13-4.4-1-6.9-.3-14.6 2.9-21.8zM183 75.8c10.1 0 20.8 14.2 19.1 33.5-3.5 1-7.1 2.5-10.2 4.6 1.2-8.9-3.3-20.1-9.6-19.6-8.4.7-9.8 21.2-1.8 28.1 1 .8 1.9-.2-5.9 5.5-15.6-14.6-10.5-52.1 8.4-52.1zm-13.6 60.7c6.2-4.6 13.6-10 14.1-10.5 4.7-4.4 13.5-14.2 27.9-14.2 7.1 0 15.6 2.3 25.9 8.9 6.3 4.1 11.3 4.4 22.6 9.3 8.4 3.5 13.7 9.7 10.5 18.2-2.6 7.1-11 14.4-22.7 18.1-11.1 3.6-19.8 16-38.2 14.9-3.9-.2-7-1-9.6-2.1-8-3.5-12.2-10.4-20-15-8.6-4.8-13.2-10.4-14.7-15.3-1.4-4.9 0-9 4.2-12.3zm3.3 334c-2.7 35.1-43.9 34.4-75.3 18-29.9-15.8-68.6-6.5-76.5-21.9-2.4-4.7-2.4-12.7 2.6-26.4v-.2c2.4-7.6.6-16-.6-23.9-1.2-7.8-1.8-15 .9-20 3.5-6.7 8.5-9.1 14.8-11.3 10.3-3.7 11.8-3.4 19.6-9.9 5.5-5.7 9.5-12.9 14.3-18 5.1-5.5 10-8.1 17.7-6.9 8.1 1.2 15.1 6.8 21.9 16l19.6 35.6c9.5 19.9 43.1 48.4 41 68.9zm-1.4-25.9c-4.1-6.6-9.6-13.6-14.4-19.6 7.1 0 14.2-2.2 16.7-8.9 2.3-6.2 0-14.9-7.4-24.9-13.5-18.2-38.3-32.5-38.3-32.5-13.5-8.4-21.1-18.7-24.6-29.9s-3-23.3-.3-35.2c5.2-22.9 18.6-45.2 27.2-59.2 2.3-1.7.8 3.2-8.7 20.8-8.5 16.1-24.4 53.3-2.6 82.4.6-20.7 5.5-41.8 13.8-61.5 12-27.4 37.3-74.9 39.3-112.7 1.1.8 4.6 3.2 6.2 4.1 4.6 2.7 8.1 6.7 12.6 10.3 12.4 10 28.5 9.2 42.4 1.2 6.2-3.5 11.2-7.5 15.9-9 9.9-3.1 17.8-8.6 22.3-15 7.7 30.4 25.7 74.3 37.2 95.7 6.1 11.4 18.3 35.5 23.6 64.6 3.3-.1 7 .4 10.9 1.4 13.8-35.7-11.7-74.2-23.3-84.9-4.7-4.6-4.9-6.6-2.6-6.5 12.6 11.2 29.2 33.7 35.2 59 2.8 11.6 3.3 23.7.4 35.7 16.4 6.8 35.9 17.9 30.7 34.8-2.2-.1-3.2 0-4.2 0 3.2-10.1-3.9-17.6-22.8-26.1-19.6-8.6-36-8.6-38.3 12.5-12.1 4.2-18.3 14.7-21.4 27.3-2.8 11.2-3.6 24.7-4.4 39.9-.5 7.7-3.6 18-6.8 29-32.1 22.9-76.7 32.9-114.3 7.2zm257.4-11.5c-.9 16.8-41.2 19.9-63.2 46.5-13.2 15.7-29.4 24.4-43.6 25.5s-26.5-4.8-33.7-19.3c-4.7-11.1-2.4-23.1 1.1-36.3 3.7-14.2 9.2-28.8 9.9-40.6.8-15.2 1.7-28.5 4.2-38.7 2.6-10.3 6.6-17.2 13.7-21.1.3-.2.7-.3 1-.5.8 13.2 7.3 26.6 18.8 29.5 12.6 3.3 30.7-7.5 38.4-16.3 9-.3 15.7-.9 22.6 5.1 9.9 8.5 7.1 30.3 17.1 41.6 10.6 11.6 14 19.5 13.7 24.6zM173.3 148.7c2 1.9 4.7 4.5 8 7.1 6.6 5.2 15.8 10.6 27.3 10.6 11.6 0 22.5-5.9 31.8-10.8 4.9-2.6 10.9-7 14.8-10.4s5.9-6.3 3.1-6.6-2.6 2.6-6 5.1c-4.4 3.2-9.7 7.4-13.9 9.8-7.4 4.2-19.5 10.2-29.9 10.2s-18.7-4.8-24.9-9.7c-3.1-2.5-5.7-5-7.7-6.9-1.5-1.4-1.9-4.6-4.3-4.9-1.4-.1-1.8 3.7 1.7 6.5z'/%3E%3C/svg%3E")}.wl-meta>.wl-os[data-value^=ubuntu i]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512' fill='%23999'%3E%3Cpath d='M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm52.7 93c8.8-15.2 28.3-20.5 43.5-11.7 15.3 8.8 20.5 28.3 11.7 43.6-8.8 15.2-28.3 20.5-43.5 11.7-15.3-8.9-20.5-28.4-11.7-43.6zM87.4 287.9c-17.6 0-31.9-14.3-31.9-31.9 0-17.6 14.3-31.9 31.9-31.9 17.6 0 31.9 14.3 31.9 31.9 0 17.6-14.3 31.9-31.9 31.9zm28.1 3.1c22.3-17.9 22.4-51.9 0-69.9 8.6-32.8 29.1-60.7 56.5-79.1l23.7 39.6c-51.5 36.3-51.5 112.5 0 148.8L172 370c-27.4-18.3-47.8-46.3-56.5-79zm228.7 131.7c-15.3 8.8-34.7 3.6-43.5-11.7-8.8-15.3-3.6-34.8 11.7-43.6 15.2-8.8 34.7-3.6 43.5 11.7 8.8 15.3 3.6 34.8-11.7 43.6zm.3-69.5c-26.7-10.3-56.1 6.6-60.5 35-5.2 1.4-48.9 14.3-96.7-9.4l22.5-40.3c57 26.5 123.4-11.7 128.9-74.4l46.1.7c-2.3 34.5-17.3 65.5-40.3 88.4zm-5.9-105.3c-5.4-62-71.3-101.2-128.9-74.4l-22.5-40.3c47.9-23.7 91.5-10.8 96.7-9.4 4.4 28.3 33.8 45.3 60.5 35 23.1 22.9 38 53.9 40.2 88.5l-46 .6z'/%3E%3C/svg%3E")}.wl-meta>.wl-os[data-value^=android i]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512' fill='%23999'%3E%3Cpath d='M420.55 301.93a24 24 0 1 1 24-24 24 24 0 0 1-24 24m-265.1 0a24 24 0 1 1 24-24 24 24 0 0 1-24 24m273.7-144.48 47.94-83a10 10 0 1 0-17.27-10l-48.54 84.07a301.25 301.25 0 0 0-246.56 0l-48.54-84.07a10 10 0 1 0-17.27 10l47.94 83C64.53 202.22 8.24 285.55 0 384h576c-8.24-98.45-64.54-181.78-146.85-226.55'/%3E%3C/svg%3E")}.wl-meta>.wl-browser[data-value^=chrome i]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512' fill='%23999'%3E%3Cpath d='M131.5 217.5 55.1 100.1c47.6-59.2 119-91.8 192-92.1 42.3-.3 85.5 10.5 124.8 33.2 43.4 25.2 76.4 61.4 97.4 103L264 133.4c-58.1-3.4-113.4 29.3-132.5 84.1zm32.9 38.5c0 46.2 37.4 83.6 83.6 83.6s83.6-37.4 83.6-83.6-37.4-83.6-83.6-83.6-83.6 37.3-83.6 83.6zm314.9-89.2L339.6 174c37.9 44.3 38.5 108.2 6.6 157.2L234.1 503.6c46.5 2.5 94.4-7.7 137.8-32.9 107.4-62 150.9-192 107.4-303.9zM133.7 303.6 40.4 120.1C14.9 159.1 0 205.9 0 256c0 124 90.8 226.7 209.5 244.9l63.7-124.8c-57.6 10.8-113.2-20.8-139.5-72.5z'/%3E%3C/svg%3E")}.wl-meta>.wl-browser[data-value^=edge i]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23999'%3E%3Cpath d='M481.92 134.48C440.87 54.18 352.26 8 255.91 8 137.05 8 37.51 91.68 13.47 203.66c26-46.49 86.22-79.14 149.46-79.14 79.27 0 121.09 48.93 122.25 50.18 22 23.8 33 50.39 33 83.1 0 10.4-5.31 25.82-15.11 38.57-1.57 2-6.39 4.84-6.39 11 0 5.06 3.29 9.92 9.14 14 27.86 19.37 80.37 16.81 80.51 16.81A115.39 115.39 0 0 0 444.94 322a118.92 118.92 0 0 0 58.95-102.44c.5-43.43-15.5-72.3-21.97-85.08ZM212.77 475.67a154.88 154.88 0 0 1-46.64-45c-32.94-47.42-34.24-95.6-20.1-136A155.5 155.5 0 0 1 203 215.75c59-45.2 94.84-5.65 99.06-1a80 80 0 0 0-4.89-10.14c-9.24-15.93-24-36.41-56.56-53.51-33.72-17.69-70.59-18.59-77.64-18.59-38.71 0-77.9 13-107.53 35.69C35.68 183.3 12.77 208.72 8.6 243c-1.08 12.31-2.75 62.8 23 118.27a248 248 0 0 0 248.3 141.61c-38.12-6.62-65.85-26.64-67.13-27.21Zm250.72-98.33a7.76 7.76 0 0 0-7.92-.23 181.66 181.66 0 0 1-20.41 9.12 197.54 197.54 0 0 1-69.55 12.52c-91.67 0-171.52-63.06-171.52-144a61.12 61.12 0 0 1 6.52-26.75 168.72 168.72 0 0 0-38.76 50c-14.92 29.37-33 88.13 13.33 151.66 6.51 8.91 23 30 56 47.67 23.57 12.65 49 19.61 71.7 19.61 35.14 0 115.43-33.44 163-108.87a7.75 7.75 0 0 0-2.39-10.73Z'/%3E%3C/svg%3E")}.wl-meta>.wl-browser[data-value^=firefox i]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23999'%3E%3Cpath d='M189.37 152.86Zm-58.74-29.37c.16.01.08.01 0 0Zm351.42 45.35c-10.61-25.5-32.08-53-48.94-61.73 13.72 26.89 21.67 53.88 24.7 74 0 0 0 .14.05.41-27.58-68.75-74.35-96.47-112.55-156.83-1.93-3.05-3.86-6.11-5.74-9.33-1-1.65-1.86-3.34-2.69-5.05a44.88 44.88 0 0 1-3.64-9.62.63.63 0 0 0-.55-.66.9.9 0 0 0-.46 0l-.12.07-.18.1.1-.14c-54.23 31.77-76.72 87.38-82.5 122.78a130 130 0 0 0-48.33 12.33 6.25 6.25 0 0 0-3.09 7.75 6.13 6.13 0 0 0 7.79 3.79l.52-.21a117.84 117.84 0 0 1 42.11-11l1.42-.1c2-.12 4-.2 6-.22A122.61 122.61 0 0 1 291 140c.67.2 1.32.42 2 .63 1.89.57 3.76 1.2 5.62 1.87 1.36.5 2.71 1 4.05 1.58 1.09.44 2.18.88 3.25 1.35q2.52 1.13 5 2.35c.75.37 1.5.74 2.25 1.13q2.4 1.26 4.74 2.63 1.51.87 3 1.8a124.89 124.89 0 0 1 42.66 44.13c-13-9.15-36.35-18.19-58.82-14.28 87.74 43.86 64.18 194.9-57.39 189.2a108.43 108.43 0 0 1-31.74-6.12 139.5 139.5 0 0 1-7.16-2.93c-1.38-.63-2.76-1.27-4.12-2-29.84-15.34-54.44-44.42-57.51-79.75 0 0 11.25-41.95 80.62-41.95 7.5 0 28.93-20.92 29.33-27-.09-2-42.54-18.87-59.09-35.18-8.85-8.71-13.05-12.91-16.77-16.06a69.58 69.58 0 0 0-6.31-4.77 113.05 113.05 0 0 1-.69-59.63c-25.06 11.41-44.55 29.45-58.71 45.37h-.12c-9.67-12.25-9-52.65-8.43-61.08-.12-.53-7.22 3.68-8.15 4.31a178.54 178.54 0 0 0-23.84 20.43 214 214 0 0 0-22.77 27.33 205.84 205.84 0 0 0-32.73 73.9c-.06.27-2.33 10.21-4 22.48q-.42 2.87-.78 5.74c-.57 3.69-1 7.71-1.44 14 0 .24 0 .48-.05.72-.18 2.71-.34 5.41-.49 8.12v1.24c0 134.7 109.21 243.89 243.92 243.89 120.64 0 220.82-87.58 240.43-202.62.41-3.12.74-6.26 1.11-9.41 4.85-41.83-.54-85.79-15.82-122.55Z'/%3E%3C/svg%3E")}.wl-meta>.wl-browser[data-value^=safari i]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23999'%3E%3Cpath d='m274.69 274.69-37.38-37.38L166 346ZM256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8Zm155.85 174.79 14.78-6.13a8 8 0 0 1 10.45 4.34 8 8 0 0 1-4.33 10.46L418 197.57a8 8 0 0 1-10.45-4.33 8 8 0 0 1 4.3-10.45ZM314.43 94l6.12-14.78a8 8 0 0 1 10.45-4.3 8 8 0 0 1 4.33 10.45l-6.13 14.78a8 8 0 0 1-10.45 4.33A8 8 0 0 1 314.43 94ZM256 60a8 8 0 0 1 8 8v16a8 8 0 0 1-8 8 8 8 0 0 1-8-8V68a8 8 0 0 1 8-8Zm-75 14.92a8 8 0 0 1 10.46 4.33L197.57 94a8 8 0 1 1-14.78 6.12l-6.13-14.78A8 8 0 0 1 181 74.92Zm-63.58 42.49a8 8 0 0 1 11.31 0L140 128.72a8 8 0 0 1 0 11.28 8 8 0 0 1-11.31 0l-11.31-11.31a8 8 0 0 1 .03-11.28ZM60 256a8 8 0 0 1 8-8h16a8 8 0 0 1 8 8 8 8 0 0 1-8 8H68a8 8 0 0 1-8-8Zm40.15 73.21-14.78 6.13A8 8 0 0 1 74.92 331a8 8 0 0 1 4.33-10.46L94 314.43a8 8 0 0 1 10.45 4.33 8 8 0 0 1-4.3 10.45Zm4.33-136A8 8 0 0 1 94 197.57l-14.78-6.12a8 8 0 0 1-4.3-10.45 8 8 0 0 1 10.45-4.33l14.78 6.13a8 8 0 0 1 4.33 10.44ZM197.57 418l-6.12 14.78a8 8 0 0 1-14.79-6.12l6.13-14.78a8 8 0 1 1 14.78 6.12ZM264 444a8 8 0 0 1-8 8 8 8 0 0 1-8-8v-16a8 8 0 0 1 8-8 8 8 0 0 1 8 8Zm67-6.92a8 8 0 0 1-10.46-4.33L314.43 418a8 8 0 0 1 4.33-10.45 8 8 0 0 1 10.45 4.33l6.13 14.78a8 8 0 0 1-4.34 10.42Zm63.58-42.49a8 8 0 0 1-11.31 0L372 383.28a8 8 0 0 1 0-11.28 8 8 0 0 1 11.31 0l11.31 11.31a8 8 0 0 1-.03 11.28ZM286.25 286.25 110.34 401.66l115.41-175.91 175.91-115.41ZM437.08 331a8 8 0 0 1-10.45 4.33l-14.78-6.13a8 8 0 0 1-4.33-10.45 8 8 0 0 1 10.48-4.32l14.78 6.12a8 8 0 0 1 4.3 10.45Zm6.92-67h-16a8 8 0 0 1-8-8 8 8 0 0 1 8-8h16a8 8 0 0 1 8 8 8 8 0 0 1-8 8Z'/%3E%3C/svg%3E")}.wl-meta>.wl-browser[data-value^=ie i]::before,.wl-meta>.wl-browser[data-value^=explorer i]::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23999'%3E%3Cpath d='M483.049 159.706c10.855-24.575 21.424-60.438 21.424-87.871 0-72.722-79.641-98.371-209.673-38.577-107.632-7.181-211.221 73.67-237.098 186.457 30.852-34.862 78.271-82.298 121.977-101.158C125.404 166.85 79.128 228.002 43.992 291.725 23.246 329.651 0 390.94 0 436.747c0 98.575 92.854 86.5 180.251 42.006 31.423 15.43 66.559 15.573 101.695 15.573 97.124 0 184.249-54.294 216.814-146.022H377.927c-52.509 88.593-196.819 52.996-196.819-47.436H509.9c6.407-43.581-1.655-95.715-26.851-141.162zM64.559 346.877c17.711 51.15 53.703 95.871 100.266 123.304-88.741 48.94-173.267 29.096-100.266-123.304zm115.977-108.873c2-55.151 50.276-94.871 103.98-94.871 53.418 0 101.981 39.72 103.981 94.871H180.536zm184.536-187.6c21.425-10.287 48.563-22.003 72.558-22.003 31.422 0 54.274 21.717 54.274 53.722 0 20.003-7.427 49.007-14.569 67.867-26.28-42.292-65.986-81.584-112.263-99.586z'/%3E%3C/svg%3E")}/*# sourceMappingURL=waline-meta.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sourceRoot":"","sources":["../src/styles/meta.scss","../src/styles/helpers/_svg.scss"],"names":[],"mappings":"AAgBE,sBACE,WAEA,qBAEA,UACA,WACA,sBAEA,kCACA,4BAGF,0BCoBA,oTDhBA,qDCgBA,sTDXA,+CCWA,6RDPA,gLCOA,4qIDIA,8CCJA,2/BDQA,+CCRA,+bDYA,mDCZA,uoBDgBA,iDChBA,4uCDoBA,oDCpBA,0pDDwBA,mDCxBA,spDD4BA,oGC5BA","file":"waline-meta.css"}
package/dist/waline.cjs DELETED
@@ -1,2 +0,0 @@
1
- "use strict";const e=["nick","mail","link"],t=t=>t.filter((t=>e.includes(t))),n=["//unpkg.com/@waline/emojis@1.1.0/weibo"],r="en-US",l=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],i=e=>new Promise(((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>t(r.result?.toString()||""),r.onerror=n})),s=e=>!0===e?'<p class="wl-tex">Tex is not available in preview</p>':'<span class="wl-tex">Tex is not available in preview</span>',o=e=>{const t=async(t,n={})=>fetch(`https://api.giphy.com/v1/gifs/${t}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...n}).toString()}`).then((e=>e.json())).then((({data:e})=>e.map((e=>({title:e.title,src:e.images.downsized_medium.url})))));return{search:e=>t("search",{q:e,offset:"0"}),default:()=>t("trending",{}),more:(e,n=0)=>t("search",{q:e,offset:n.toString()})}},a=new RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source}|${/</.source})|((?:${/(?:^|\s)\/\/(.+?)$/gm.source})|(?:${/\/\*([\S\s]*?)\*\//gm.source}))`,"gmi"),c=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"],u={},p=e=>{let t=0;return e.replace(a,((e,n,r)=>{if(r)return`<span style="color: slategray">${r}</span>`;if("<"===n)return"&lt;";let l;u[n]?l=u[n]:(l=c[t],u[n]=l);const i=`<span style="color: #${l}">${n}</span>`;return t=++t%c.length,i}))},d=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile","approved","waiting","spam","unsticky","oldest","latest","hottest","reactionTitle"],h=e=>Object.fromEntries(e.map(((e,t)=>[d[t],e])));var f=h(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words","Please input comments between $0 and $1 words!\n Current word number: $2","Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),g=h(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),m=h(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras","Favor enviar comentário com $0 a $1 palavras!\n Número de palavras atuais: $2","Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),v=h(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),y=h(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),w=h(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說","表情包","搜索表情包","個人資料","通過","待審核","垃圾","取消置頂","按倒序","按正序","按熱度","你認為這篇文章怎麼樣?"]);const b={zh:y,"zh-cn":y,"zh-CN":y,"zh-tw":w,"zh-TW":w,en:f,"en-US":f,"en-us":f,jp:g,ja:g,"jp-jp":g,"jp-JP":g,"pt-br":m,"pt-BR":m,ru:v,"ru-ru":v,"ru-RU":v},k={"Content-Type":"application/json"},x=(e,t="")=>{if("object"==typeof e&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},_=({serverURL:e,lang:t,paths:n,type:r,signal:l})=>fetch(`${e}/article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:l}).then((e=>e.json())),$=({serverURL:e,lang:t,path:n,type:r,action:l})=>fetch(`${e}/article?lang=${t}`,{method:"POST",headers:k,body:JSON.stringify({path:n,type:r,action:l})}).then((e=>e.json())),C=({serverURL:e,lang:t,token:n,objectId:r,comment:l})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"PUT",headers:{...k,Authorization:`Bearer ${n}`},body:JSON.stringify(l)}).then((e=>e.json())).then((e=>x(e,"Update comment"))),S=e=>{try{e=decodeURI(e)}catch(e){}return e},R=(e="")=>e.replace(/\/$/u,""),A=e=>/^(https?:)?\/\//.test(e),E=e=>{const t=R(e);return A(t)?t:`https://${t}`},L=e=>Array.isArray(e)?e:!!e&&[0,e],z=(e,t)=>"function"==typeof e?e:!1!==e&&t,I="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bgcolor:#1e1e1e;--waline-bgcolor-light:#272727;--waline-bgcolor-hover: #444;--waline-border-color:#333;--waline-disable-bgcolor:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bgcolor:#272727;--waline-info-color:#666}",j=(e,t)=>{let n=e.toString();for(;n.length<t;)n="0"+n;return n},O=(e,t,n)=>{if(!e)return"";const r="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,l=t.getTime()-r.getTime(),i=Math.floor(l/864e5);if(0===i){const e=l%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,r=Math.floor(t/6e4);if(0===r){const e=t%6e4;return`${Math.round(e/1e3)} ${n.seconds}`}return`${r} ${n.minutes}`}return`${t} ${n.hours}`}return i<0?n.now:i<8?`${i} ${n.days}`:(e=>{const t=j(e.getDate(),2),n=j(e.getMonth()+1,2);return`${j(e.getFullYear(),2)}-${n}-${t}`})(r)};function T(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}function U(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],l=ue(r)?N(r):U(r);if(l)for(const e in l)t[e]=l[e]}return t}return ue(e)||de(e)?e:void 0}const P=/;(?![^(]*\))/g,M=/:([^]+)/,F=/\/\*.*?\*\//gs;function N(e){const t={};return e.replace(F,"").split(P).forEach((e=>{if(e){const n=e.split(M);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function V(e){let t="";if(ue(e))t=e;else if(ie(e))for(let n=0;n<e.length;n++){const r=V(e[n]);r&&(t+=r+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const D=T("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function H(e){return!!e||""===e}function B(e,t){if(e===t)return!0;let n=ae(e),r=ae(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=pe(e),r=pe(t),n||r)return e===t;if(n=ie(e),r=ie(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=B(e[r],t[r]);return n}(e,t);if(n=de(e),r=de(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),l=t.hasOwnProperty(n);if(r&&!l||!r&&l||!B(e[n],t[n]))return!1}}return String(e)===String(t)}function W(e,t){return e.findIndex((e=>B(e,t)))}const q=e=>ue(e)?e:null==e?"":ie(e)||de(e)&&(e.toString===fe||!ce(e.toString))?JSON.stringify(e,Z,2):String(e),Z=(e,t)=>t&&t.__v_isRef?Z(e,t.value):se(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:oe(t)?{[`Set(${t.size})`]:[...t.values()]}:!de(t)||ie(t)||ve(t)?t:String(t),K={},G=[],Q=()=>{},J=()=>!1,X=/^on[^a-z]/,Y=e=>X.test(e),ee=e=>e.startsWith("onUpdate:"),te=Object.assign,ne=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},re=Object.prototype.hasOwnProperty,le=(e,t)=>re.call(e,t),ie=Array.isArray,se=e=>"[object Map]"===ge(e),oe=e=>"[object Set]"===ge(e),ae=e=>"[object Date]"===ge(e),ce=e=>"function"==typeof e,ue=e=>"string"==typeof e,pe=e=>"symbol"==typeof e,de=e=>null!==e&&"object"==typeof e,he=e=>de(e)&&ce(e.then)&&ce(e.catch),fe=Object.prototype.toString,ge=e=>fe.call(e),me=e=>ge(e).slice(8,-1),ve=e=>"[object Object]"===ge(e),ye=e=>ue(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,we=T(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),be=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ke=/-(\w)/g,xe=be((e=>e.replace(ke,((e,t)=>t?t.toUpperCase():"")))),_e=/\B([A-Z])/g,$e=be((e=>e.replace(_e,"-$1").toLowerCase())),Ce=be((e=>e.charAt(0).toUpperCase()+e.slice(1))),Se=be((e=>e?`on${Ce(e)}`:"")),Re=(e,t)=>!Object.is(e,t),Ae=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ee=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Le=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ze;const Ie=()=>ze||(ze="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});let je;class Oe{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=je,!e&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=je;try{return je=this,e()}finally{je=t}}}on(){je=this}off(){je=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function Te(){return je}const Ue=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Pe=e=>(e.w&Ve)>0,Me=e=>(e.n&Ve)>0,Fe=new WeakMap;let Ne=0,Ve=1;const De=30;let He;const Be=Symbol(""),We=Symbol("");class qe{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=je){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=He,t=Ke;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=He,He=this,Ke=!0,Ve=1<<++Ne,Ne<=De?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ve})(this):Ze(this),this.fn()}finally{Ne<=De&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const l=t[r];Pe(l)&&!Me(l)?l.delete(e):t[n++]=l,l.w&=~Ve,l.n&=~Ve}t.length=n}})(this),Ve=1<<--Ne,He=this.parent,Ke=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){He===this?this.deferStop=!0:this.active&&(Ze(this),this.onStop&&this.onStop(),this.active=!1)}}function Ze(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ke=!0;const Ge=[];function Qe(){Ge.push(Ke),Ke=!1}function Je(){const e=Ge.pop();Ke=void 0===e||e}function Xe(e,t,n){if(Ke&&He){let t=Fe.get(e);t||Fe.set(e,t=new Map);let r=t.get(n);r||t.set(n,r=Ue()),Ye(r)}}function Ye(e,t){let n=!1;Ne<=De?Me(e)||(e.n|=Ve,n=!Pe(e)):n=!e.has(He),n&&(e.add(He),He.deps.push(e))}function et(e,t,n,r,l,i){const s=Fe.get(e);if(!s)return;let o=[];if("clear"===t)o=[...s.values()];else if("length"===n&&ie(e)){const e=Number(r);s.forEach(((t,n)=>{("length"===n||n>=e)&&o.push(t)}))}else switch(void 0!==n&&o.push(s.get(n)),t){case"add":ie(e)?ye(n)&&o.push(s.get("length")):(o.push(s.get(Be)),se(e)&&o.push(s.get(We)));break;case"delete":ie(e)||(o.push(s.get(Be)),se(e)&&o.push(s.get(We)));break;case"set":se(e)&&o.push(s.get(Be))}if(1===o.length)o[0]&&tt(o[0]);else{const e=[];for(const t of o)t&&e.push(...t);tt(Ue(e))}}function tt(e,t){const n=ie(e)?e:[...e];for(const e of n)e.computed&&nt(e);for(const e of n)e.computed||nt(e)}function nt(e,t){(e!==He||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const rt=T("__proto__,__v_isRef,__isVue"),lt=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(pe)),it=pt(),st=pt(!1,!0),ot=pt(!0),at=ct();function ct(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Kt(this);for(let e=0,t=this.length;e<t;e++)Xe(n,0,e+"");const r=n[t](...e);return-1===r||!1===r?n[t](...e.map(Kt)):r}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Qe();const n=Kt(this)[t].apply(this,e);return Je(),n}})),e}function ut(e){const t=Kt(this);return Xe(t,0,e),t.hasOwnProperty(e)}function pt(e=!1,t=!1){return function(n,r,l){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&l===(e?t?Nt:Ft:t?Mt:Pt).get(n))return n;const i=ie(n);if(!e){if(i&&le(at,r))return Reflect.get(at,r,l);if("hasOwnProperty"===r)return ut}const s=Reflect.get(n,r,l);return(pe(r)?lt.has(r):rt(r))?s:(e||Xe(n,0,r),t?s:en(s)?i&&ye(r)?s:s.value:de(s)?e?Dt(s):Vt(s):s)}}function dt(e=!1){return function(t,n,r,l){let i=t[n];if(Wt(i)&&en(i)&&!en(r))return!1;if(!e&&(qt(r)||Wt(r)||(i=Kt(i),r=Kt(r)),!ie(t)&&en(i)&&!en(r)))return i.value=r,!0;const s=ie(t)&&ye(n)?Number(n)<t.length:le(t,n),o=Reflect.set(t,n,r,l);return t===Kt(l)&&(s?Re(r,i)&&et(t,"set",n,r):et(t,"add",n,r)),o}}const ht={get:it,set:dt(),deleteProperty:function(e,t){const n=le(e,t),r=Reflect.deleteProperty(e,t);return r&&n&&et(e,"delete",t,void 0),r},has:function(e,t){const n=Reflect.has(e,t);return pe(t)&&lt.has(t)||Xe(e,0,t),n},ownKeys:function(e){return Xe(e,0,ie(e)?"length":Be),Reflect.ownKeys(e)}},ft={get:ot,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},gt=te({},ht,{get:st,set:dt(!0)}),mt=e=>e,vt=e=>Reflect.getPrototypeOf(e);function yt(e,t,n=!1,r=!1){const l=Kt(e=e.__v_raw),i=Kt(t);n||(t!==i&&Xe(l,0,t),Xe(l,0,i));const{has:s}=vt(l),o=r?mt:n?Jt:Qt;return s.call(l,t)?o(e.get(t)):s.call(l,i)?o(e.get(i)):void(e!==l&&e.get(t))}function wt(e,t=!1){const n=this.__v_raw,r=Kt(n),l=Kt(e);return t||(e!==l&&Xe(r,0,e),Xe(r,0,l)),e===l?n.has(e):n.has(e)||n.has(l)}function bt(e,t=!1){return e=e.__v_raw,!t&&Xe(Kt(e),0,Be),Reflect.get(e,"size",e)}function kt(e){e=Kt(e);const t=Kt(this);return vt(t).has.call(t,e)||(t.add(e),et(t,"add",e,e)),this}function xt(e,t){t=Kt(t);const n=Kt(this),{has:r,get:l}=vt(n);let i=r.call(n,e);i||(e=Kt(e),i=r.call(n,e));const s=l.call(n,e);return n.set(e,t),i?Re(t,s)&&et(n,"set",e,t):et(n,"add",e,t),this}function _t(e){const t=Kt(this),{has:n,get:r}=vt(t);let l=n.call(t,e);l||(e=Kt(e),l=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return l&&et(t,"delete",e,void 0),i}function $t(){const e=Kt(this),t=0!==e.size,n=e.clear();return t&&et(e,"clear",void 0,void 0),n}function Ct(e,t){return function(n,r){const l=this,i=l.__v_raw,s=Kt(i),o=t?mt:e?Jt:Qt;return!e&&Xe(s,0,Be),i.forEach(((e,t)=>n.call(r,o(e),o(t),l)))}}function St(e,t,n){return function(...r){const l=this.__v_raw,i=Kt(l),s=se(i),o="entries"===e||e===Symbol.iterator&&s,a="keys"===e&&s,c=l[e](...r),u=n?mt:t?Jt:Qt;return!t&&Xe(i,0,a?We:Be),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:o?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Rt(e){return function(...t){return"delete"!==e&&this}}function At(){const e={get(e){return yt(this,e)},get size(){return bt(this)},has:wt,add:kt,set:xt,delete:_t,clear:$t,forEach:Ct(!1,!1)},t={get(e){return yt(this,e,!1,!0)},get size(){return bt(this)},has:wt,add:kt,set:xt,delete:_t,clear:$t,forEach:Ct(!1,!0)},n={get(e){return yt(this,e,!0)},get size(){return bt(this,!0)},has(e){return wt.call(this,e,!0)},add:Rt("add"),set:Rt("set"),delete:Rt("delete"),clear:Rt("clear"),forEach:Ct(!0,!1)},r={get(e){return yt(this,e,!0,!0)},get size(){return bt(this,!0)},has(e){return wt.call(this,e,!0)},add:Rt("add"),set:Rt("set"),delete:Rt("delete"),clear:Rt("clear"),forEach:Ct(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((l=>{e[l]=St(l,!1,!1),n[l]=St(l,!0,!1),t[l]=St(l,!1,!0),r[l]=St(l,!0,!0)})),[e,n,t,r]}const[Et,Lt,zt,It]=At();function jt(e,t){const n=t?e?It:zt:e?Lt:Et;return(t,r,l)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(le(n,r)&&r in t?n:t,r,l)}const Ot={get:jt(!1,!1)},Tt={get:jt(!1,!0)},Ut={get:jt(!0,!1)},Pt=new WeakMap,Mt=new WeakMap,Ft=new WeakMap,Nt=new WeakMap;function Vt(e){return Wt(e)?e:Ht(e,!1,ht,Ot,Pt)}function Dt(e){return Ht(e,!0,ft,Ut,Ft)}function Ht(e,t,n,r,l){if(!de(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=l.get(e);if(i)return i;const s=(o=e).__v_skip||!Object.isExtensible(o)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(me(o));var o;if(0===s)return e;const a=new Proxy(e,2===s?r:n);return l.set(e,a),a}function Bt(e){return Wt(e)?Bt(e.__v_raw):!(!e||!e.__v_isReactive)}function Wt(e){return!(!e||!e.__v_isReadonly)}function qt(e){return!(!e||!e.__v_isShallow)}function Zt(e){return Bt(e)||Wt(e)}function Kt(e){const t=e&&e.__v_raw;return t?Kt(t):e}function Gt(e){return Ee(e,"__v_skip",!0),e}const Qt=e=>de(e)?Vt(e):e,Jt=e=>de(e)?Dt(e):e;function Xt(e){Ke&&He&&Ye((e=Kt(e)).dep||(e.dep=Ue()))}function Yt(e,t){const n=(e=Kt(e)).dep;n&&tt(n)}function en(e){return!(!e||!0!==e.__v_isRef)}function tn(e){return rn(e,!1)}function nn(e){return rn(e,!0)}function rn(e,t){return en(e)?e:new ln(e,t)}class ln{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Kt(e),this._value=t?e:Qt(e)}get value(){return Xt(this),this._value}set value(e){const t=this.__v_isShallow||qt(e)||Wt(e);e=t?e:Kt(e),Re(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Qt(e),Yt(this))}}function sn(e){return en(e)?e.value:e}const on={get:(e,t,n)=>sn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const l=e[t];return en(l)&&!en(n)?(l.value=n,!0):Reflect.set(e,t,n,r)}};function an(e){return Bt(e)?e:new Proxy(e,on)}var cn;class un{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[cn]=!1,this._dirty=!0,this.effect=new qe(e,(()=>{this._dirty||(this._dirty=!0,Yt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Kt(this);return Xt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function pn(e,t,n,r){let l;try{l=r?e(...r):e()}catch(e){hn(e,t,n)}return l}function dn(e,t,n,r){if(ce(e)){const l=pn(e,t,n,r);return l&&he(l)&&l.catch((e=>{hn(e,t,n)})),l}const l=[];for(let i=0;i<e.length;i++)l.push(dn(e[i],t,n,r));return l}function hn(e,t,n,r=!0){t&&t.vnode;if(t){let r=t.parent;const l=t.proxy,i=n;for(;r;){const t=r.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,l,i))return;r=r.parent}const s=t.appContext.config.errorHandler;if(s)return void pn(s,null,10,[e,l,i])}!function(e,t,n,r=!0){console.error(e)}(e,0,0,r)}cn="__v_isReadonly";let fn=!1,gn=!1;const mn=[];let vn=0;const yn=[];let wn=null,bn=0;const kn=Promise.resolve();let xn=null;function _n(e){const t=xn||kn;return e?t.then(this?e.bind(this):e):t}function $n(e){mn.length&&mn.includes(e,fn&&e.allowRecurse?vn+1:vn)||(null==e.id?mn.push(e):mn.splice(function(e){let t=vn+1,n=mn.length;for(;t<n;){const r=t+n>>>1;An(mn[r])<e?t=r+1:n=r}return t}(e.id),0,e),Cn())}function Cn(){fn||gn||(gn=!0,xn=kn.then(Ln))}function Sn(e,t=(fn?vn+1:0)){for(;t<mn.length;t++){const e=mn[t];e&&e.pre&&(mn.splice(t,1),t--,e())}}function Rn(e){if(yn.length){const e=[...new Set(yn)];if(yn.length=0,wn)return void wn.push(...e);for(wn=e,wn.sort(((e,t)=>An(e)-An(t))),bn=0;bn<wn.length;bn++)wn[bn]();wn=null,bn=0}}const An=e=>null==e.id?1/0:e.id,En=(e,t)=>{const n=An(e)-An(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ln(e){gn=!1,fn=!0,mn.sort(En);try{for(vn=0;vn<mn.length;vn++){const e=mn[vn];e&&!1!==e.active&&pn(e,null,14)}}finally{vn=0,mn.length=0,Rn(),fn=!1,xn=null,(mn.length||yn.length)&&Ln()}}function zn(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||K;let l=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in r){const e=`${"modelValue"===s?"model":s}Modifiers`,{number:t,trim:i}=r[e]||K;i&&(l=n.map((e=>ue(e)?e.trim():e))),t&&(l=n.map(Le))}let o,a=r[o=Se(t)]||r[o=Se(xe(t))];!a&&i&&(a=r[o=Se($e(t))]),a&&dn(a,e,6,l);const c=r[o+"Once"];if(c){if(e.emitted){if(e.emitted[o])return}else e.emitted={};e.emitted[o]=!0,dn(c,e,6,l)}}function In(e,t,n=!1){const r=t.emitsCache,l=r.get(e);if(void 0!==l)return l;const i=e.emits;let s={};return i?(ie(i)?i.forEach((e=>s[e]=null)):te(s,i),de(e)&&r.set(e,s),s):(de(e)&&r.set(e,null),null)}function jn(e,t){return!(!e||!Y(t))&&(t=t.slice(2).replace(/Once$/,""),le(e,t[0].toLowerCase()+t.slice(1))||le(e,$e(t))||le(e,t))}let On=null,Tn=null;function Un(e){const t=On;return On=e,Tn=e&&e.type.__scopeId||null,t}function Pn(e){const{type:t,vnode:n,proxy:r,withProxy:l,props:i,propsOptions:[s],slots:o,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:g}=e;let m,v;const y=Un(e);try{if(4&n.shapeFlag){const e=l||r;m=al(u.call(e,e,p,i,h,d,f)),v=a}else{const e=t;m=al(e.length>1?e(i,{attrs:a,slots:o,emit:c}):e(i,null)),v=t.props?a:Mn(a)}}catch(t){Br.length=0,hn(t,e,1),m=ll(Dr)}let w=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=w;e.length&&7&t&&(s&&e.some(ee)&&(v=Fn(v,s)),w=il(w,v))}return n.dirs&&(w=il(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),m=w,Un(y),m}const Mn=e=>{let t;for(const n in e)("class"===n||"style"===n||Y(n))&&((t||(t={}))[n]=e[n]);return t},Fn=(e,t)=>{const n={};for(const r in e)ee(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Nn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let l=0;l<r.length;l++){const i=r[l];if(t[i]!==e[i]&&!jn(n,i))return!0}return!1}function Vn(e,t,n=!1){const r=fl||On;if(r){const l=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&ce(t)?t.call(r.proxy):t}}function Dn(e,t){return Wn(e,null,t)}const Hn={};function Bn(e,t,n){return Wn(e,t,n)}function Wn(e,t,{immediate:n,deep:r,flush:l,onTrack:i,onTrigger:s}=K){const o=Te()===(null==fl?void 0:fl.scope)?fl:null;let a,c,u=!1,p=!1;if(en(e)?(a=()=>e.value,u=qt(e)):Bt(e)?(a=()=>e,r=!0):ie(e)?(p=!0,u=e.some((e=>Bt(e)||qt(e))),a=()=>e.map((e=>en(e)?e.value:Bt(e)?qn(e):ce(e)?pn(e,o,2):void 0))):a=ce(e)?t?()=>pn(e,o,2):()=>{if(!o||!o.isUnmounted)return c&&c(),dn(e,o,3,[h])}:Q,t&&r){const e=a;a=()=>qn(e())}let d,h=e=>{c=v.onStop=()=>{pn(e,o,4)}};if(bl){if(h=Q,t?n&&dn(t,o,3,[a(),p?[]:void 0,h]):a(),"sync"!==l)return Q;{const e=Rl();d=e.__watcherHandles||(e.__watcherHandles=[])}}let f=p?new Array(e.length).fill(Hn):Hn;const g=()=>{if(v.active)if(t){const e=v.run();(r||u||(p?e.some(((e,t)=>Re(e,f[t]))):Re(e,f)))&&(c&&c(),dn(t,o,3,[e,f===Hn?void 0:p&&f[0]===Hn?[]:f,h]),f=e)}else v.run()};let m;g.allowRecurse=!!t,"sync"===l?m=g:"post"===l?m=()=>Ur(g,o&&o.suspense):(g.pre=!0,o&&(g.id=o.uid),m=()=>$n(g));const v=new qe(a,m);t?n?g():f=v.run():"post"===l?Ur(v.run.bind(v),o&&o.suspense):v.run();const y=()=>{v.stop(),o&&o.scope&&ne(o.scope.effects,v)};return d&&d.push(y),y}function qn(e,t){if(!de(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),en(e))qn(e.value,t);else if(ie(e))for(let n=0;n<e.length;n++)qn(e[n],t);else if(oe(e)||se(e))e.forEach((e=>{qn(e,t)}));else if(ve(e))for(const n in e)qn(e[n],t);return e}function Zn(e){return ce(e)?{setup:e,name:e.name}:e}const Kn=e=>!!e.type.__asyncLoader,Gn=e=>e.type.__isKeepAlive;const Qn=e=>(t,n=fl)=>(!bl||"sp"===e)&&function(e,t,n=fl,r=!1){if(n){const l=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;Qe(),ml(n);const l=dn(t,n,e,r);return vl(),Je(),l});return r?l.unshift(i):l.push(i),i}}(e,((...e)=>t(...e)),n),Jn=Qn("m"),Xn=Qn("bum"),Yn=Qn("um");function er(e,t){const n=On;if(null===n)return e;const r=_l(n)||n.proxy,l=e.dirs||(e.dirs=[]);for(let e=0;e<t.length;e++){let[n,i,s,o=K]=t[e];n&&(ce(n)&&(n={mounted:n,updated:n}),n.deep&&qn(i),l.push({dir:n,instance:r,value:i,oldValue:void 0,arg:s,modifiers:o}))}return e}function tr(e,t,n,r){const l=e.dirs,i=t&&t.dirs;for(let s=0;s<l.length;s++){const o=l[s];i&&(o.oldValue=i[s].value);let a=o.dir[r];a&&(Qe(),dn(a,n,8,[e.el,o,e,t]),Je())}}const nr="components";function rr(e,t){return function(e,t,n=!0,r=!1){const l=On||fl;if(l){const n=l.type;if(e===nr){const e=function(e,t=!0){return ce(e)?e.displayName||e.name:e.name||t&&e.__name}(n,!1);if(e&&(e===t||e===xe(t)||e===Ce(xe(t))))return n}const i=ir(l[e]||n[e],t)||ir(l.appContext[e],t);return!i&&r?n:i}}(nr,e,!0,t)||e}const lr=Symbol();function ir(e,t){return e&&(e[t]||e[xe(t)]||e[Ce(xe(t))])}function sr(e,t,n,r){let l;const i=n&&n[r];if(ie(e)||ue(e)){l=new Array(e.length);for(let n=0,r=e.length;n<r;n++)l[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){l=new Array(e);for(let n=0;n<e;n++)l[n]=t(n+1,n,void 0,i&&i[n])}else if(de(e))if(e[Symbol.iterator])l=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);l=new Array(n.length);for(let r=0,s=n.length;r<s;r++){const s=n[r];l[r]=t(e[s],s,r,i&&i[r])}}else l=[];return n&&(n[r]=l),l}const or=e=>e?yl(e)?_l(e)||e.proxy:or(e.parent):null,ar=te(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>or(e.parent),$root:e=>or(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>$n(e.update)),$nextTick:e=>e.n||(e.n=_n.bind(e.proxy)),$watch:e=>Q}),cr=(e,t)=>e!==K&&!e.__isScriptSetup&&le(e,t),ur={get({_:e},t){const{ctx:n,setupState:r,data:l,props:i,accessCache:s,type:o,appContext:a}=e;let c;if("$"!==t[0]){const o=s[t];if(void 0!==o)switch(o){case 1:return r[t];case 2:return l[t];case 4:return n[t];case 3:return i[t]}else{if(cr(r,t))return s[t]=1,r[t];if(l!==K&&le(l,t))return s[t]=2,l[t];if((c=e.propsOptions[0])&&le(c,t))return s[t]=3,i[t];if(n!==K&&le(n,t))return s[t]=4,n[t];s[t]=0}}const u=ar[t];let p,d;return u?("$attrs"===t&&Xe(e,0,t),u(e)):(p=o.__cssModules)&&(p=p[t])?p:n!==K&&le(n,t)?(s[t]=4,n[t]):(d=a.config.globalProperties,le(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:r,setupState:l,ctx:i}=e;return cr(l,t)?(l[t]=n,!0):r!==K&&le(r,t)?(r[t]=n,!0):!le(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:l,propsOptions:i}},s){let o;return!!n[s]||e!==K&&le(e,s)||cr(t,s)||(o=i[0])&&le(o,s)||le(r,s)||le(ar,s)||le(l.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function pr(e,t,n,r=!1){const{mixins:l,extends:i}=t;i&&pr(e,i,n,!0),l&&l.forEach((t=>pr(e,t,n,!0)));for(const l in t)if(r&&"expose"===l);else{const r=dr[l]||n&&n[l];e[l]=r?r(e[l],t[l]):t[l]}return e}const dr={data:hr,props:mr,emits:mr,methods:mr,computed:mr,beforeCreate:gr,created:gr,beforeMount:gr,mounted:gr,beforeUpdate:gr,updated:gr,beforeDestroy:gr,beforeUnmount:gr,destroyed:gr,unmounted:gr,activated:gr,deactivated:gr,errorCaptured:gr,serverPrefetch:gr,components:mr,directives:mr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=te(Object.create(null),e);for(const r in t)n[r]=gr(e[r],t[r]);return n},provide:hr,inject:function(e,t){return mr(fr(e),fr(t))}};function hr(e,t){return t?e?function(){return te(ce(e)?e.call(this,this):e,ce(t)?t.call(this,this):t)}:t:e}function fr(e){if(ie(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function gr(e,t){return e?[...new Set([].concat(e,t))]:t}function mr(e,t){return e?te(te(Object.create(null),e),t):t}function vr(e,t,n,r=!1){const l={},i={};Ee(i,el,1),e.propsDefaults=Object.create(null),yr(e,t,l,i);for(const t in e.propsOptions[0])t in l||(l[t]=void 0);n?e.props=r?l:Ht(l,!1,gt,Tt,Mt):e.type.props?e.props=l:e.props=i,e.attrs=i}function yr(e,t,n,r){const[l,i]=e.propsOptions;let s,o=!1;if(t)for(let a in t){if(we(a))continue;const c=t[a];let u;l&&le(l,u=xe(a))?i&&i.includes(u)?(s||(s={}))[u]=c:n[u]=c:jn(e.emitsOptions,a)||a in r&&c===r[a]||(r[a]=c,o=!0)}if(i){const t=Kt(n),r=s||K;for(let s=0;s<i.length;s++){const o=i[s];n[o]=wr(l,t,o,r[o],e,!le(r,o))}}return o}function wr(e,t,n,r,l,i){const s=e[n];if(null!=s){const e=le(s,"default");if(e&&void 0===r){const e=s.default;if(s.type!==Function&&ce(e)){const{propsDefaults:i}=l;n in i?r=i[n]:(ml(l),r=i[n]=e.call(null,t),vl())}else r=e}s[0]&&(i&&!e?r=!1:!s[1]||""!==r&&r!==$e(n)||(r=!0))}return r}function br(e,t,n=!1){const r=t.propsCache,l=r.get(e);if(l)return l;const i=e.props,s={},o=[];if(!i)return de(e)&&r.set(e,G),G;if(ie(i))for(let e=0;e<i.length;e++){const t=xe(i[e]);kr(t)&&(s[t]=K)}else if(i)for(const e in i){const t=xe(e);if(kr(t)){const n=i[e],r=s[t]=ie(n)||ce(n)?{type:n}:Object.assign({},n);if(r){const e=$r(Boolean,r.type),n=$r(String,r.type);r[0]=e>-1,r[1]=n<0||e<n,(e>-1||le(r,"default"))&&o.push(t)}}}const a=[s,o];return de(e)&&r.set(e,a),a}function kr(e){return"$"!==e[0]}function xr(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function _r(e,t){return xr(e)===xr(t)}function $r(e,t){return ie(t)?t.findIndex((t=>_r(t,e))):ce(t)&&_r(t,e)?0:-1}const Cr=e=>"_"===e[0]||"$stable"===e,Sr=e=>ie(e)?e.map(al):[al(e)],Rr=(e,t,n)=>{if(t._n)return t;const r=function(e,t=On,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Kr(-1);const l=Un(t);let i;try{i=e(...n)}finally{Un(l),r._d&&Kr(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}(((...e)=>Sr(t(...e))),n);return r._c=!1,r},Ar=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Cr(n))continue;const l=e[n];if(ce(l))t[n]=Rr(0,l,r);else if(null!=l){const e=Sr(l);t[n]=()=>e}}},Er=(e,t)=>{const n=Sr(t);e.slots.default=()=>n},Lr=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Kt(t),Ee(t,"_",n)):Ar(t,e.slots={})}else e.slots={},t&&Er(e,t);Ee(e.slots,el,1)},zr=(e,t,n)=>{const{vnode:r,slots:l}=e;let i=!0,s=K;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:(te(l,t),n||1!==e||delete l._):(i=!t.$stable,Ar(t,l)),s=t}else t&&(Er(e,t),s={default:1});if(i)for(const e in l)Cr(e)||e in s||delete l[e]};function Ir(){return{app:null,config:{isNativeTag:J,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let jr=0;function Or(e,t){return function(n,r=null){ce(n)||(n=Object.assign({},n)),null==r||de(r)||(r=null);const l=Ir(),i=new Set;let s=!1;const o=l.app={_uid:jr++,_component:n,_props:r,_container:null,_context:l,_instance:null,version:Al,get config(){return l.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&ce(e.install)?(i.add(e),e.install(o,...t)):ce(e)&&(i.add(e),e(o,...t))),o),mixin:e=>o,component:(e,t)=>t?(l.components[e]=t,o):l.components[e],directive:(e,t)=>t?(l.directives[e]=t,o):l.directives[e],mount(i,a,c){if(!s){const u=ll(n,r);return u.appContext=l,a&&t?t(u,i):e(u,i,c),s=!0,o._container=i,i.__vue_app__=o,_l(u.component)||u.component.proxy}},unmount(){s&&(e(null,o._container),delete o._container.__vue_app__)},provide:(e,t)=>(l.provides[e]=t,o)};return o}}function Tr(e,t,n,r,l=!1){if(ie(e))return void e.forEach(((e,i)=>Tr(e,t&&(ie(t)?t[i]:t),n,r,l)));if(Kn(r)&&!l)return;const i=4&r.shapeFlag?_l(r.component)||r.component.proxy:r.el,s=l?null:i,{i:o,r:a}=e,c=t&&t.r,u=o.refs===K?o.refs={}:o.refs,p=o.setupState;if(null!=c&&c!==a&&(ue(c)?(u[c]=null,le(p,c)&&(p[c]=null)):en(c)&&(c.value=null)),ce(a))pn(a,o,12,[s,u]);else{const t=ue(a),r=en(a);if(t||r){const o=()=>{if(e.f){const n=t?le(p,a)?p[a]:u[a]:a.value;l?ie(n)&&ne(n,i):ie(n)?n.includes(i)||n.push(i):t?(u[a]=[i],le(p,a)&&(p[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else t?(u[a]=s,le(p,a)&&(p[a]=s)):r&&(a.value=s,e.k&&(u[e.k]=s))};s?(o.id=-1,Ur(o,n)):o()}}}const Ur=function(e,t){var n;t&&t.pendingBranch?ie(e)?t.effects.push(...e):t.effects.push(e):(ie(n=e)?yn.push(...n):wn&&wn.includes(n,n.allowRecurse?bn+1:bn)||yn.push(n),Cn())};function Pr(e){return function(e,t){Ie().__VUE__=!0;const{insert:n,remove:r,patchProp:l,createElement:i,createText:s,createComment:o,setText:a,setElementText:c,parentNode:u,nextSibling:p,setScopeId:d=Q,insertStaticContent:h}=e,f=(e,t,n,r=null,l=null,i=null,s=!1,o=null,a=!!t.dynamicChildren)=>{if(e===t)return;e&&!Yr(e,t)&&(r=D(e),P(e,l,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case Vr:g(e,t,n,r);break;case Dr:m(e,t,n,r);break;case Hr:null==e&&v(t,n,r,s);break;case Nr:R(e,t,n,r,l,i,s,o,a);break;default:1&p?b(e,t,n,r,l,i,s,o,a):6&p?A(e,t,n,r,l,i,s,o,a):(64&p||128&p)&&c.process(e,t,n,r,l,i,s,o,a,B)}null!=u&&l&&Tr(u,e&&e.ref,i,t||e,!t)},g=(e,t,r,l)=>{if(null==e)n(t.el=s(t.children),r,l);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},m=(e,t,r,l)=>{null==e?n(t.el=o(t.children||""),r,l):t.el=e.el},v=(e,t,n,r)=>{[e.el,e.anchor]=h(e.children,t,n,r,e.el,e.anchor)},y=({el:e,anchor:t},r,l)=>{let i;for(;e&&e!==t;)i=p(e),n(e,r,l),e=i;n(t,r,l)},w=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=p(e),r(e),e=n;r(t)},b=(e,t,n,r,l,i,s,o,a)=>{s=s||"svg"===t.type,null==e?k(t,n,r,l,i,s,o,a):$(e,t,l,i,s,o,a)},k=(e,t,r,s,o,a,u,p)=>{let d,h;const{type:f,props:g,shapeFlag:m,transition:v,dirs:y}=e;if(d=e.el=i(e.type,a,g&&g.is,g),8&m?c(d,e.children):16&m&&_(e.children,d,null,s,o,a&&"foreignObject"!==f,u,p),y&&tr(e,null,s,"created"),x(d,e,e.scopeId,u,s),g){for(const t in g)"value"===t||we(t)||l(d,t,null,g[t],a,e.children,s,o,V);"value"in g&&l(d,"value",null,g.value),(h=g.onVnodeBeforeMount)&&pl(h,s,e)}y&&tr(e,null,s,"beforeMount");const w=(!o||o&&!o.pendingBranch)&&v&&!v.persisted;w&&v.beforeEnter(d),n(d,t,r),((h=g&&g.onVnodeMounted)||w||y)&&Ur((()=>{h&&pl(h,s,e),w&&v.enter(d),y&&tr(e,null,s,"mounted")}),o)},x=(e,t,n,r,l)=>{if(n&&d(e,n),r)for(let t=0;t<r.length;t++)d(e,r[t]);if(l){if(t===l.subTree){const t=l.vnode;x(e,t,t.scopeId,t.slotScopeIds,l.parent)}}},_=(e,t,n,r,l,i,s,o,a=0)=>{for(let c=a;c<e.length;c++){const a=e[c]=o?cl(e[c]):al(e[c]);f(null,a,t,n,r,l,i,s,o)}},$=(e,t,n,r,i,s,o)=>{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:d}=t;u|=16&e.patchFlag;const h=e.props||K,f=t.props||K;let g;n&&Mr(n,!1),(g=f.onVnodeBeforeUpdate)&&pl(g,n,t,e),d&&tr(t,e,n,"beforeUpdate"),n&&Mr(n,!0);const m=i&&"foreignObject"!==t.type;if(p?C(e.dynamicChildren,p,a,n,r,m,s):o||j(e,t,a,null,n,r,m,s,!1),u>0){if(16&u)S(a,t,h,f,n,r,i);else if(2&u&&h.class!==f.class&&l(a,"class",null,f.class,i),4&u&&l(a,"style",h.style,f.style,i),8&u){const s=t.dynamicProps;for(let t=0;t<s.length;t++){const o=s[t],c=h[o],u=f[o];u===c&&"value"!==o||l(a,o,c,u,i,e.children,n,r,V)}}1&u&&e.children!==t.children&&c(a,t.children)}else o||null!=p||S(a,t,h,f,n,r,i);((g=f.onVnodeUpdated)||d)&&Ur((()=>{g&&pl(g,n,t,e),d&&tr(t,e,n,"updated")}),r)},C=(e,t,n,r,l,i,s)=>{for(let o=0;o<t.length;o++){const a=e[o],c=t[o],p=a.el&&(a.type===Nr||!Yr(a,c)||70&a.shapeFlag)?u(a.el):n;f(a,c,p,null,r,l,i,s,!0)}},S=(e,t,n,r,i,s,o)=>{if(n!==r){if(n!==K)for(const a in n)we(a)||a in r||l(e,a,n[a],null,o,t.children,i,s,V);for(const a in r){if(we(a))continue;const c=r[a],u=n[a];c!==u&&"value"!==a&&l(e,a,u,c,o,t.children,i,s,V)}"value"in r&&l(e,"value",n.value,r.value)}},R=(e,t,r,l,i,o,a,c,u)=>{const p=t.el=e?e.el:s(""),d=t.anchor=e?e.anchor:s("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(p,r,l),n(d,r,l),_(t.children,r,d,i,o,a,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(C(e.dynamicChildren,f,r,i,o,a,c),(null!=t.key||i&&t===i.subTree)&&Fr(e,t,!0)):j(e,t,r,d,i,o,a,c,u)},A=(e,t,n,r,l,i,s,o,a)=>{t.slotScopeIds=o,null==e?512&t.shapeFlag?l.ctx.activate(t,n,r,s,a):E(t,n,r,l,i,s,a):L(e,t,a)},E=(e,t,n,r,l,i,s)=>{const o=e.component=function(e,t,n){const r=e.type,l=(t?t.appContext:e.appContext)||dl,i={uid:hl++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new Oe(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:br(r,l),emitsOptions:In(r,l),emit:null,emitted:null,propsDefaults:K,inheritAttrs:r.inheritAttrs,ctx:K,data:K,props:K,attrs:K,slots:K,refs:K,setupState:K,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};i.ctx={_:i},i.root=t?t.root:i,i.emit=zn.bind(null,i),e.ce&&e.ce(i);return i}(e,r,l);if(Gn(e)&&(o.ctx.renderer=B),function(e,t=!1){bl=t;const{props:n,children:r}=e.vnode,l=yl(e);vr(e,n,l,t),Lr(e,r);const i=l?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Gt(new Proxy(e.ctx,ur));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Xe(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;ml(e),Qe();const l=pn(r,e,0,[e.props,n]);if(Je(),vl(),he(l)){if(l.then(vl,vl),t)return l.then((n=>{kl(e,n,t)})).catch((t=>{hn(t,e,0)}));e.asyncDep=l}else kl(e,l,t)}else xl(e,t)}(e,t):void 0;bl=!1}(o),o.asyncDep){if(l&&l.registerDep(o,z),!e.el){const e=o.subTree=ll(Dr);m(null,e,t,n)}}else z(o,e,t,n,l,i,s)},L=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:l,component:i}=e,{props:s,children:o,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!l&&!o||o&&o.$stable)||r!==s&&(r?!s||Nn(r,s,c):!!s);if(1024&a)return!0;if(16&a)return r?Nn(r,s,c):!!s;if(8&a){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(s[n]!==r[n]&&!jn(c,n))return!0}}return!1}(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return void I(r,t,n);r.next=t,function(e){const t=mn.indexOf(e);t>vn&&mn.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},z=(e,t,n,r,l,i,s)=>{const o=()=>{if(e.isMounted){let t,{next:n,bu:r,u:o,parent:a,vnode:c}=e,p=n;Mr(e,!1),n?(n.el=c.el,I(e,n,s)):n=c,r&&Ae(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&pl(t,a,n,c),Mr(e,!0);const d=Pn(e),h=e.subTree;e.subTree=d,f(h,d,u(h.el),D(h),e,l,i),n.el=d.el,null===p&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,d.el),o&&Ur(o,l),(t=n.props&&n.props.onVnodeUpdated)&&Ur((()=>pl(t,a,n,c)),l)}else{let s;const{el:o,props:a}=t,{bm:c,m:u,parent:p}=e,d=Kn(t);if(Mr(e,!1),c&&Ae(c),!d&&(s=a&&a.onVnodeBeforeMount)&&pl(s,p,t),Mr(e,!0),o&&q){const n=()=>{e.subTree=Pn(e),q(o,e.subTree,e,l,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const s=e.subTree=Pn(e);f(null,s,n,r,e,l,i),t.el=s.el}if(u&&Ur(u,l),!d&&(s=a&&a.onVnodeMounted)){const e=t;Ur((()=>pl(s,p,e)),l)}(256&t.shapeFlag||p&&Kn(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&Ur(e.a,l),e.isMounted=!0,t=n=r=null}},a=e.effect=new qe(o,(()=>$n(c)),e.scope),c=e.update=()=>a.run();c.id=e.uid,Mr(e,!0),c()},I=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:l,attrs:i,vnode:{patchFlag:s}}=e,o=Kt(l),[a]=e.propsOptions;let c=!1;if(!(r||s>0)||16&s){let r;yr(e,t,l,i)&&(c=!0);for(const i in o)t&&(le(t,i)||(r=$e(i))!==i&&le(t,r))||(a?!n||void 0===n[i]&&void 0===n[r]||(l[i]=wr(a,o,i,void 0,e,!0)):delete l[i]);if(i!==o)for(const e in i)t&&le(t,e)||(delete i[e],c=!0)}else if(8&s){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let s=n[r];if(jn(e.emitsOptions,s))continue;const u=t[s];if(a)if(le(i,s))u!==i[s]&&(i[s]=u,c=!0);else{const t=xe(s);l[t]=wr(a,o,t,u,e,!1)}else u!==i[s]&&(i[s]=u,c=!0)}}c&&et(e,"set","$attrs")}(e,t.props,r,n),zr(e,t.children,n),Qe(),Sn(),Je()},j=(e,t,n,r,l,i,s,o,a=!1)=>{const u=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void T(u,d,n,r,l,i,s,o,a);if(256&h)return void O(u,d,n,r,l,i,s,o,a)}8&f?(16&p&&V(u,l,i),d!==u&&c(n,d)):16&p?16&f?T(u,d,n,r,l,i,s,o,a):V(u,l,i,!0):(8&p&&c(n,""),16&f&&_(d,n,r,l,i,s,o,a))},O=(e,t,n,r,l,i,s,o,a)=>{t=t||G;const c=(e=e||G).length,u=t.length,p=Math.min(c,u);let d;for(d=0;d<p;d++){const r=t[d]=a?cl(t[d]):al(t[d]);f(e[d],r,n,null,l,i,s,o,a)}c>u?V(e,l,i,!0,!1,p):_(t,n,r,l,i,s,o,a,p)},T=(e,t,n,r,l,i,s,o,a)=>{let c=0;const u=t.length;let p=e.length-1,d=u-1;for(;c<=p&&c<=d;){const r=e[c],u=t[c]=a?cl(t[c]):al(t[c]);if(!Yr(r,u))break;f(r,u,n,null,l,i,s,o,a),c++}for(;c<=p&&c<=d;){const r=e[p],c=t[d]=a?cl(t[d]):al(t[d]);if(!Yr(r,c))break;f(r,c,n,null,l,i,s,o,a),p--,d--}if(c>p){if(c<=d){const e=d+1,p=e<u?t[e].el:r;for(;c<=d;)f(null,t[c]=a?cl(t[c]):al(t[c]),n,p,l,i,s,o,a),c++}}else if(c>d)for(;c<=p;)P(e[c],l,i,!0),c++;else{const h=c,g=c,m=new Map;for(c=g;c<=d;c++){const e=t[c]=a?cl(t[c]):al(t[c]);null!=e.key&&m.set(e.key,c)}let v,y=0;const w=d-g+1;let b=!1,k=0;const x=new Array(w);for(c=0;c<w;c++)x[c]=0;for(c=h;c<=p;c++){const r=e[c];if(y>=w){P(r,l,i,!0);continue}let u;if(null!=r.key)u=m.get(r.key);else for(v=g;v<=d;v++)if(0===x[v-g]&&Yr(r,t[v])){u=v;break}void 0===u?P(r,l,i,!0):(x[u-g]=c+1,u>=k?k=u:b=!0,f(r,t[u],n,null,l,i,s,o,a),y++)}const _=b?function(e){const t=e.slice(),n=[0];let r,l,i,s,o;const a=e.length;for(r=0;r<a;r++){const a=e[r];if(0!==a){if(l=n[n.length-1],e[l]<a){t[r]=l,n.push(r);continue}for(i=0,s=n.length-1;i<s;)o=i+s>>1,e[n[o]]<a?i=o+1:s=o;a<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,s=n[i-1];for(;i-- >0;)n[i]=s,s=t[s];return n}(x):G;for(v=_.length-1,c=w-1;c>=0;c--){const e=g+c,p=t[e],d=e+1<u?t[e+1].el:r;0===x[c]?f(null,p,n,d,l,i,s,o,a):b&&(v<0||c!==_[v]?U(p,n,d,2):v--)}}},U=(e,t,r,l,i=null)=>{const{el:s,type:o,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void U(e.component.subTree,t,r,l);if(128&u)return void e.suspense.move(t,r,l);if(64&u)return void o.move(e,t,r,B);if(o===Nr){n(s,t,r);for(let e=0;e<c.length;e++)U(c[e],t,r,l);return void n(e.anchor,t,r)}if(o===Hr)return void y(e,t,r);if(2!==l&&1&u&&a)if(0===l)a.beforeEnter(s),n(s,t,r),Ur((()=>a.enter(s)),i);else{const{leave:e,delayLeave:l,afterLeave:i}=a,o=()=>n(s,t,r),c=()=>{e(s,(()=>{o(),i&&i()}))};l?l(s,o,c):c()}else n(s,t,r)},P=(e,t,n,r=!1,l=!1)=>{const{type:i,props:s,ref:o,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=o&&Tr(o,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!Kn(e);let g;if(f&&(g=s&&s.onVnodeBeforeUnmount)&&pl(g,t,e),6&u)N(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&tr(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,l,B,r):c&&(i!==Nr||p>0&&64&p)?V(c,t,n,!1,!0):(i===Nr&&384&p||!l&&16&u)&&V(a,t,n),r&&M(e)}(f&&(g=s&&s.onVnodeUnmounted)||h)&&Ur((()=>{g&&pl(g,t,e),h&&tr(e,null,t,"unmounted")}),n)},M=e=>{const{type:t,el:n,anchor:l,transition:i}=e;if(t===Nr)return void F(n,l);if(t===Hr)return void w(e);const s=()=>{r(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,l=()=>t(n,s);r?r(e.el,s,l):l()}else s()},F=(e,t)=>{let n;for(;e!==t;)n=p(e),r(e),e=n;r(t)},N=(e,t,n)=>{const{bum:r,scope:l,update:i,subTree:s,um:o}=e;r&&Ae(r),l.stop(),i&&(i.active=!1,P(s,e,t,n)),o&&Ur(o,t),Ur((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},V=(e,t,n,r=!1,l=!1,i=0)=>{for(let s=i;s<e.length;s++)P(e[s],t,n,r,l)},D=e=>6&e.shapeFlag?D(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),H=(e,t,n)=>{null==e?t._vnode&&P(t._vnode,null,null,!0):f(t._vnode||null,e,t,null,null,null,n),Sn(),Rn(),t._vnode=e},B={p:f,um:P,m:U,r:M,mt:E,mc:_,pc:j,pbc:C,n:D,o:e};let W,q;t&&([W,q]=t(B));return{render:H,hydrate:W,createApp:Or(H,W)}}(e)}function Mr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Fr(e,t,n=!1){const r=e.children,l=t.children;if(ie(r)&&ie(l))for(let e=0;e<r.length;e++){const t=r[e];let i=l[e];1&i.shapeFlag&&!i.dynamicChildren&&((i.patchFlag<=0||32===i.patchFlag)&&(i=l[e]=cl(l[e]),i.el=t.el),n||Fr(t,i)),i.type===Vr&&(i.el=t.el)}}const Nr=Symbol(void 0),Vr=Symbol(void 0),Dr=Symbol(void 0),Hr=Symbol(void 0),Br=[];let Wr=null;function qr(e=!1){Br.push(Wr=e?null:[])}let Zr=1;function Kr(e){Zr+=e}function Gr(e){return e.dynamicChildren=Zr>0?Wr||G:null,Br.pop(),Wr=Br[Br.length-1]||null,Zr>0&&Wr&&Wr.push(e),e}function Qr(e,t,n,r,l,i){return Gr(rl(e,t,n,r,l,i,!0))}function Jr(e,t,n,r,l){return Gr(ll(e,t,n,r,l,!0))}function Xr(e){return!!e&&!0===e.__v_isVNode}function Yr(e,t){return e.type===t.type&&e.key===t.key}const el="__vInternal",tl=({key:e})=>null!=e?e:null,nl=({ref:e,ref_key:t,ref_for:n})=>null!=e?ue(e)||en(e)||ce(e)?{i:On,r:e,k:t,f:!!n}:e:null;function rl(e,t=null,n=null,r=0,l=null,i=(e===Nr?0:1),s=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&tl(t),ref:t&&nl(t),scopeId:Tn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:On};return o?(ul(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=ue(n)?8:16),Zr>0&&!s&&Wr&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&Wr.push(a),a}const ll=function(e,t=null,n=null,r=0,l=null,i=!1){e&&e!==lr||(e=Dr);if(Xr(e)){const r=il(e,t,!0);return n&&ul(r,n),Zr>0&&!i&&Wr&&(6&r.shapeFlag?Wr[Wr.indexOf(e)]=r:Wr.push(r)),r.patchFlag|=-2,r}s=e,ce(s)&&"__vccOpts"in s&&(e=e.__vccOpts);var s;if(t){t=function(e){return e?Zt(e)||el in e?te({},e):e:null}(t);let{class:e,style:n}=t;e&&!ue(e)&&(t.class=V(e)),de(n)&&(Zt(n)&&!ie(n)&&(n=te({},n)),t.style=U(n))}const o=ue(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:de(e)?4:ce(e)?2:0;return rl(e,t,n,r,l,o,i,!0)};function il(e,t,n=!1){const{props:r,ref:l,patchFlag:i,children:s}=e,o=t?function(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=V([t.class,r.class]));else if("style"===e)t.style=U([t.style,r.style]);else if(Y(e)){const n=t[e],l=r[e];!l||n===l||ie(n)&&n.includes(l)||(t[e]=n?[].concat(n,l):l)}else""!==e&&(t[e]=r[e])}return t}(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&tl(o),ref:t&&t.ref?n&&l?ie(l)?l.concat(nl(t)):[l,nl(t)]:nl(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Nr?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&il(e.ssContent),ssFallback:e.ssFallback&&il(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function sl(e=" ",t=0){return ll(Vr,null,e,t)}function ol(e="",t=!1){return t?(qr(),Jr(Dr,null,e)):ll(Dr,null,e)}function al(e){return null==e||"boolean"==typeof e?ll(Dr):ie(e)?ll(Nr,null,e.slice()):"object"==typeof e?cl(e):ll(Vr,null,String(e))}function cl(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:il(e)}function ul(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(ie(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),ul(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||el in t?3===r&&On&&(1===On.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=On}}else ce(t)?(t={default:t,_ctx:On},n=32):(t=String(t),64&r?(n=16,t=[sl(t)]):n=8);e.children=t,e.shapeFlag|=n}function pl(e,t,n,r=null){dn(e,t,7,[n,r])}const dl=Ir();let hl=0;let fl=null;const gl=()=>fl||On,ml=e=>{fl=e,e.scope.on()},vl=()=>{fl&&fl.scope.off(),fl=null};function yl(e){return 4&e.vnode.shapeFlag}let wl,bl=!1;function kl(e,t,n){ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=an(t)),xl(e,n)}function xl(e,t,n){const r=e.type;if(!e.render){if(!t&&wl&&!r.render){const t=r.template||function(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:l,optionsCache:i,config:{optionMergeStrategies:s}}=e.appContext,o=i.get(t);let a;return o?a=o:l.length||n||r?(a={},l.length&&l.forEach((e=>pr(a,e,s,!0))),pr(a,t,s)):a=t,de(t)&&i.set(t,a),a}(e).template;if(t){const{isCustomElement:n,compilerOptions:l}=e.appContext.config,{delimiters:i,compilerOptions:s}=r,o=te(te({isCustomElement:n,delimiters:i},l),s);r.render=wl(t,o)}}e.render=r.render||Q}}function _l(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(an(Gt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in ar?ar[n](e):void 0,has:(e,t)=>t in e||t in ar}))}const $l=(e,t)=>function(e,t,n=!1){let r,l;const i=ce(e);return i?(r=e,l=Q):(r=e.get,l=e.set),new un(r,l,i||!l,n)}(e,0,bl);function Cl(e,t,n){const r=arguments.length;return 2===r?de(t)&&!ie(t)?Xr(t)?ll(e,null,[t]):ll(e,t):ll(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Xr(n)&&(n=[n]),ll(e,t,n))}const Sl=Symbol(""),Rl=()=>Vn(Sl),Al="3.2.47",El="undefined"!=typeof document?document:null,Ll=El&&El.createElement("template"),zl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const l=t?El.createElementNS("http://www.w3.org/2000/svg",e):El.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&l.setAttribute("multiple",r.multiple),l},createText:e=>El.createTextNode(e),createComment:e=>El.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>El.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,l,i){const s=n?n.previousSibling:t.lastChild;if(l&&(l===i||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),l!==i&&(l=l.nextSibling););else{Ll.innerHTML=r?`<svg>${e}</svg>`:e;const l=Ll.content;if(r){const e=l.firstChild;for(;e.firstChild;)l.appendChild(e.firstChild);l.removeChild(e)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const Il=/\s*!important$/;function jl(e,t,n){if(ie(n))n.forEach((n=>jl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Tl[t];if(n)return n;let r=xe(t);if("filter"!==r&&r in e)return Tl[t]=r;r=Ce(r);for(let n=0;n<Ol.length;n++){const l=Ol[n]+r;if(l in e)return Tl[t]=l}return t}(e,t);Il.test(n)?e.setProperty($e(r),n.replace(Il,""),"important"):e[r]=n}}const Ol=["Webkit","Moz","ms"],Tl={};const Ul="http://www.w3.org/1999/xlink";function Pl(e,t,n,r){e.addEventListener(t,n,r)}function Ml(e,t,n,r,l=null){const i=e._vei||(e._vei={}),s=i[t];if(r&&s)s.value=r;else{const[n,o]=function(e){let t;if(Fl.test(e)){let n;for(t={};n=e.match(Fl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):$e(e.slice(2));return[n,t]}(t);if(r){const s=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();dn(function(e,t){if(ie(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Dl(),n}(r,l);Pl(e,n,s,o)}else s&&(!function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,s,o),i[t]=void 0)}}const Fl=/(?:Once|Passive|Capture)$/;let Nl=0;const Vl=Promise.resolve(),Dl=()=>Nl||(Vl.then((()=>Nl=0)),Nl=Date.now());const Hl=/^on[a-z]/;const Bl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ie(t)?e=>Ae(t,e):t};function Wl(e){e.target.composing=!0}function ql(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Zl={created(e,{modifiers:{lazy:t,trim:n,number:r}},l){e._assign=Bl(l);const i=r||l.props&&"number"===l.props.type;Pl(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n&&(r=r.trim()),i&&(r=Le(r)),e._assign(r)})),n&&Pl(e,"change",(()=>{e.value=e.value.trim()})),t||(Pl(e,"compositionstart",Wl),Pl(e,"compositionend",ql),Pl(e,"change",ql))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:l}},i){if(e._assign=Bl(i),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(r&&e.value.trim()===t)return;if((l||"number"===e.type)&&Le(e.value)===t)return}const s=null==t?"":t;e.value!==s&&(e.value=s)}},Kl={deep:!0,created(e,t,n){e._assign=Bl(n),Pl(e,"change",(()=>{const t=e._modelValue,n=Yl(e),r=e.checked,l=e._assign;if(ie(t)){const e=W(t,n),i=-1!==e;if(r&&!i)l(t.concat(n));else if(!r&&i){const n=[...t];n.splice(e,1),l(n)}}else if(oe(t)){const e=new Set(t);r?e.add(n):e.delete(n),l(e)}else l(ei(e,r))}))},mounted:Gl,beforeUpdate(e,t,n){e._assign=Bl(n),Gl(e,t,n)}};function Gl(e,{value:t,oldValue:n},r){e._modelValue=t,ie(t)?e.checked=W(t,r.props.value)>-1:oe(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=B(t,ei(e,!0)))}const Ql={created(e,{value:t},n){e.checked=B(t,n.props.value),e._assign=Bl(n),Pl(e,"change",(()=>{e._assign(Yl(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Bl(r),t!==n&&(e.checked=B(t,r.props.value))}},Jl={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const l=oe(t);Pl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?Le(Yl(e)):Yl(e)));e._assign(e.multiple?l?new Set(t):t:t[0])})),e._assign=Bl(r)},mounted(e,{value:t}){Xl(e,t)},beforeUpdate(e,t,n){e._assign=Bl(n)},updated(e,{value:t}){Xl(e,t)}};function Xl(e,t){const n=e.multiple;if(!n||ie(t)||oe(t)){for(let r=0,l=e.options.length;r<l;r++){const l=e.options[r],i=Yl(l);if(n)ie(t)?l.selected=W(t,i)>-1:l.selected=t.has(i);else if(B(Yl(l),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Yl(e){return"_value"in e?e._value:e.value}function ei(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ti={created(e,t,n){ni(e,t,n,null,"created")},mounted(e,t,n){ni(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){ni(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){ni(e,t,n,r,"updated")}};function ni(e,t,n,r,l){const i=function(e,t){switch(e){case"SELECT":return Jl;case"TEXTAREA":return Zl;default:switch(t){case"checkbox":return Kl;case"radio":return Ql;default:return Zl}}}(e.tagName,n.props&&n.props.type)[l];i&&i(e,t,n,r)}const ri={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):li(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),li(e,!0),r.enter(e)):r.leave(e,(()=>{li(e,!1)})):li(e,t))},beforeUnmount(e,{value:t}){li(e,t)}};function li(e,t){e.style.display=t?e._vod:"none"}const ii=te({patchProp:(e,t,n,r,l=!1,i,s,o,a)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,l):"style"===t?function(e,t,n){const r=e.style,l=ue(n);if(n&&!l){if(t&&!ue(t))for(const e in t)null==n[e]&&jl(r,e,"");for(const e in n)jl(r,e,n[e])}else{const i=r.display;l?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}(e,n,r):Y(t)?ee(t)||Ml(e,t,0,r,s):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&Hl.test(t)&&ce(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(Hl.test(t)&&ue(n))return!1;return t in e}(e,t,r,l))?function(e,t,n,r,l,i,s){if("innerHTML"===t||"textContent"===t)return r&&s(r,l,i),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let o=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=H(n):null==n&&"string"===r?(n="",o=!0):"number"===r&&(n=0,o=!0)}try{e[t]=n}catch(e){}o&&e.removeAttribute(t)}(e,t,r,i,s,o,a):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,l){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Ul,t.slice(6,t.length)):e.setAttributeNS(Ul,t,n);else{const r=D(t);null==n||r&&!H(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,l))}},zl);let si;const oi=(...e)=>{const t=(si||(si=Pr(ii))).createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){if(ue(e)){return document.querySelector(e)}return e}(e);if(!r)return;const l=t._component;ce(l)||l.render||l.template||(l.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function ai(e){return!!Te()&&(function(e){je&&je.cleanups.push(e)}(e),!0)}function ci(e){return"function"==typeof e?e():sn(e)}const ui="undefined"!=typeof window,pi=()=>{};function di(e,t){return function(...n){return new Promise(((r,l)=>{Promise.resolve(e((()=>t.apply(this,n)),{fn:t,thisArg:this,args:n})).then(r).catch(l)}))}}const hi=e=>e();function fi(e,t=200,n={}){return di(function(e,t={}){let n,r,l=pi;const i=e=>{clearTimeout(e),l(),l=pi};return s=>{const o=ci(e),a=ci(t.maxWait);return n&&i(n),o<=0||void 0!==a&&a<=0?(r&&(i(r),r=null),Promise.resolve(s())):new Promise(((e,c)=>{l=t.rejectOnCancel?c:e,a&&!r&&(r=setTimeout((()=>{n&&i(n),r=null,e(s())}),a)),n=setTimeout((()=>{r&&i(r),r=null,e(s())}),o)}))}}(t,n),e)}function gi(e,t=!0){gl()?Jn(e):t?e():_n(e)}var mi=Object.getOwnPropertySymbols,vi=Object.prototype.hasOwnProperty,yi=Object.prototype.propertyIsEnumerable,wi=(e,t)=>{var n={};for(var r in e)vi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&mi)for(var r of mi(e))t.indexOf(r)<0&&yi.call(e,r)&&(n[r]=e[r]);return n};var bi=Object.defineProperty,ki=Object.defineProperties,xi=Object.getOwnPropertyDescriptors,_i=Object.getOwnPropertySymbols,$i=Object.prototype.hasOwnProperty,Ci=Object.prototype.propertyIsEnumerable,Si=(e,t,n)=>t in e?bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ri=(e,t)=>{for(var n in t||(t={}))$i.call(t,n)&&Si(e,n,t[n]);if(_i)for(var n of _i(t))Ci.call(t,n)&&Si(e,n,t[n]);return e},Ai=(e,t)=>ki(e,xi(t)),Ei=(e,t)=>{var n={};for(var r in e)$i.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&_i)for(var r of _i(e))t.indexOf(r)<0&&Ci.call(e,r)&&(n[r]=e[r]);return n};function Li(e,t,n={}){const r=n,{eventFilter:l}=r,i=Ei(r,["eventFilter"]),{eventFilter:s,pause:o,resume:a,isActive:c}=function(e=hi){const t=tn(!0);return{isActive:Dt(t),pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...n)=>{t.value&&e(...n)}}}(l),u=function(e,t,n={}){const r=n,{eventFilter:l=hi}=r,i=wi(r,["eventFilter"]);return Bn(e,di(l,t),i)}(e,t,Ai(Ri({},i),{eventFilter:s}));return{stop:u,pause:o,resume:a,isActive:c}}function zi(e){var t;const n=ci(e);return null!=(t=null==n?void 0:n.$el)?t:n}const Ii=ui?window:void 0,ji=ui?window.document:void 0;function Oi(...e){let t,n,r,l;if("string"==typeof e[0]||Array.isArray(e[0])?([n,r,l]=e,t=Ii):[t,n,r,l]=e,!t)return pi;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const i=[],s=()=>{i.forEach((e=>e())),i.length=0},o=Bn((()=>[zi(t),ci(l)]),(([e,t])=>{s(),e&&i.push(...n.flatMap((n=>r.map((r=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(e,n,r,t))))))}),{immediate:!0,flush:"post"}),a=()=>{o(),s()};return ai(a),a}const Ti="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Ui="__vueuse_ssr_handlers__",Pi=Mi();function Mi(){return Ui in Ti||(Ti[Ui]=Ti[Ui]||{}),Ti[Ui]}var Fi=Object.defineProperty,Ni=Object.getOwnPropertySymbols,Vi=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,Hi=(e,t,n)=>t in e?Fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Bi=(e,t)=>{for(var n in t||(t={}))Vi.call(t,n)&&Hi(e,n,t[n]);if(Ni)for(var n of Ni(t))Di.call(t,n)&&Hi(e,n,t[n]);return e};const Wi={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},qi="vueuse-storage";function Zi(e,t,n,r={}){var l;const{flush:i="pre",deep:s=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:p=Ii,eventFilter:d,onError:h=(e=>{console.error(e)})}=r,f=(u?nn:tn)(t);if(!n)try{n=function(e,t){return Pi[e]||t}("getDefaultStorage",(()=>{var e;return null==(e=Ii)?void 0:e.localStorage}))()}catch(e){h(e)}if(!n)return f;const g=ci(t),m=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e?"object":Number.isNaN(e)?"any":"number"}(g),v=null!=(l=r.serializer)?l:Wi[m],{pause:y,resume:w}=Li(f,(()=>function(t){try{if(null==t)n.removeItem(e);else{const r=v.write(t),l=n.getItem(e);l!==r&&(n.setItem(e,r),p&&p.dispatchEvent(new CustomEvent(qi,{detail:{key:e,oldValue:l,newValue:r,storageArea:n}})))}}catch(e){h(e)}}(f.value)),{flush:i,deep:s,eventFilter:d});return p&&o&&(Oi(p,"storage",b),Oi(p,qi,(function(e){b(e.detail)}))),b(),f;function b(t){if(!t||t.storageArea===n)if(t&&null==t.key)f.value=g;else if(!t||t.key===e){y();try{f.value=function(t){const r=t?t.newValue:n.getItem(e);if(null==r)return a&&null!==g&&n.setItem(e,v.write(g)),g;if(!t&&c){const e=v.read(r);return"function"==typeof c?c(e,g):"object"!==m||Array.isArray(e)?e:Bi(Bi({},g),e)}return"string"!=typeof r?r:v.read(r)}(t)}catch(e){h(e)}finally{t?_n(w):w()}}}}var Ki=Object.defineProperty,Gi=Object.getOwnPropertySymbols,Qi=Object.prototype.hasOwnProperty,Ji=Object.prototype.propertyIsEnumerable,Xi=(e,t,n)=>t in e?Ki(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;function Yi(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=tn(new Date),l=()=>r.value=new Date,i="requestAnimationFrame"===n?function(e,t={}){const{immediate:n=!0,window:r=Ii}=t,l=tn(!1);let i=0,s=null;function o(t){l.value&&r&&(e({delta:t-i,timestamp:t}),i=t,s=r.requestAnimationFrame(o))}function a(){!l.value&&r&&(l.value=!0,s=r.requestAnimationFrame(o))}function c(){l.value=!1,null!=s&&r&&(r.cancelAnimationFrame(s),s=null)}return n&&a(),ai(c),{isActive:Dt(l),pause:c,resume:a}}(l,{immediate:!0}):function(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:l=!1}=n;let i=null;const s=tn(!1);function o(){i&&(clearInterval(i),i=null)}function a(){s.value=!1,o()}function c(){const n=ci(t);n<=0||(s.value=!0,l&&e(),o(),i=setInterval(e,n))}r&&ui&&c(),(en(t)||"function"==typeof t)&&ai(Bn(t,(()=>{s.value&&ui&&c()})));return ai(a),{isActive:s,pause:a,resume:c}}(l,n,{immediate:!0});return t?((e,t)=>{for(var n in t||(t={}))Qi.call(t,n)&&Xi(e,n,t[n]);if(Gi)for(var n of Gi(t))Ji.call(t,n)&&Xi(e,n,t[n]);return e})({now:r},i):r}function es(e,t=pi,n={}){const{immediate:r=!0,manual:l=!1,type:i="text/javascript",async:s=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:u,document:p=ji,attrs:d={}}=n,h=tn(null);let f=null;const g=(n=!0)=>(f||(f=(n=>new Promise(((r,l)=>{const f=e=>(h.value=e,r(e),e);if(!p)return void r(!1);let g=!1,m=p.querySelector(`script[src="${ci(e)}"]`);m?m.hasAttribute("data-loaded")&&f(m):(m=p.createElement("script"),m.type=i,m.async=s,m.src=ci(e),u&&(m.defer=u),o&&(m.crossOrigin=o),c&&(m.noModule=c),a&&(m.referrerPolicy=a),Object.entries(d).forEach((([e,t])=>null==m?void 0:m.setAttribute(e,t))),g=!0),m.addEventListener("error",(e=>l(e))),m.addEventListener("abort",(e=>l(e))),m.addEventListener("load",(()=>{m.setAttribute("data-loaded","true"),t(m),f(m)})),g&&(m=p.head.appendChild(m)),n||f(m)})))(n)),f),m=()=>{if(!p)return;f=null,h.value&&(h.value=null);const t=p.querySelector(`script[src="${ci(e)}"]`);t&&p.head.removeChild(t)};var v;return r&&!l&&gi(g),l||(v=m,gl()&&Yn(v)),{scriptTag:h,load:g,unload:m}}let ts=0;const ns=e=>{const t=Zi("WALINE_EMOJI",{}),n=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(n){const n=t.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then((e=>e.json())).then((r=>{const l={folder:e,...r};return n&&(t.value[e]=l),l}))},rs=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,ls=e=>{"AbortError"!==e.name&&console.error(e.message)},is=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,ss=e=>e.type.includes("image"),os=e=>{const t=Array.from(e).find(ss);return t?t.getAsFile():null};function as(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let cs={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const us=/[&<>"']/,ps=new RegExp(us.source,"g"),ds=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,hs=new RegExp(ds.source,"g"),fs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},gs=e=>fs[e];function ms(e,t){if(t){if(us.test(e))return e.replace(ps,gs)}else if(ds.test(e))return e.replace(hs,gs);return e}const vs=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function ys(e){return e.replace(vs,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const ws=/(^|[^\[])\^/g;function bs(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(ws,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const ks=/[^\w:]/g,xs=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function _s(e,t,n){if(e){let e;try{e=decodeURIComponent(ys(n)).replace(ks,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!xs.test(n)&&(n=function(e,t){$s[" "+e]||(Cs.test(e)?$s[" "+e]=e+"/":$s[" "+e]=Ls(e,"/",!0));e=$s[" "+e];const n=-1===e.indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(Ss,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(Rs,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const $s={},Cs=/^[^:]+:\/*[^/]*$/,Ss=/^([^:]+:)[\s\S]*$/,Rs=/^([^:]+:\/*[^/]*)[\s\S]*$/;const As={exec:function(){}};function Es(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let r=!1,l=t;for(;--l>=0&&"\\"===n[l];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function Ls(e,t,n){const r=e.length;if(0===r)return"";let l=0;for(;l<r;){const i=e.charAt(r-l-1);if(i!==t||n){if(i===t||!n)break;l++}else l++}return e.slice(0,r-l)}function zs(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function Is(e,t,n,r){const l=t.href,i=t.title?ms(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:l,title:i,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:l,title:i,text:ms(s)}}class js{constructor(e){this.options=e||cs}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:Ls(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=Ls(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:r,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,l,i,s,o,a,c,u,p,d,h,f=t[1].trim();const g=f.length>1,m={type:"list",raw:"",ordered:g,start:g?+f.slice(0,-1):"",loose:!1,items:[]};f=g?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=g?f:"[*+-]");const v=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),u=e.split("\n",1)[0],this.options.pedantic?(i=2,d=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=c.slice(i),i+=t[1].length),o=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),l=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),s=new RegExp(`^ {0,${Math.min(3,i-1)}}#`);for(;e&&(p=e.split("\n",1)[0],u=p,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!l.test(u))&&!s.test(u)&&!t.test(u)&&!r.test(e);){if(u.search(/[^ ]/)>=i||!u.trim())d+="\n"+u.slice(i);else{if(o)break;if(c.search(/[^ ]/)>=4)break;if(l.test(c))break;if(s.test(c))break;if(r.test(c))break;d+="\n"+u}o||u.trim()||(o=!0),n+=p+"\n",e=e.substring(p.length+1),c=u.slice(i)}}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(l="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!r,checked:l,loose:!1,text:d}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=d.trimRight(),m.raw=m.raw.trimRight();const y=m.items.length;for(s=0;s<y;s++)if(this.lexer.state.top=!1,m.items[s].tokens=this.lexer.blockTokens(m.items[s].text,[]),!m.loose){const e=m.items[s].tokens.filter((e=>"space"===e.type)),t=e.length>0&&e.some((e=>/\n.*\n/.test(e.raw)));m.loose=t}if(m.loose)for(s=0;s<y;s++)m.items[s].loose=!0;return m}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(t[0]):ms(t[0]);e.type="paragraph",e.text=n,e.tokens=this.lexer.inline(n)}return e}}def(e){const t=this.rules.block.def.exec(e);if(t){const e=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:Es(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,l,i,s=e.align.length;for(n=0;n<s;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(s=e.rows.length,n=0;n<s;n++)e.rows[n]=Es(e.rows[n],e.header.length).map((e=>({text:e})));for(s=e.header.length,r=0;r<s;r++)e.header[r].tokens=this.lexer.inline(e.header[r].text);for(s=e.rows.length,r=0;r<s;r++)for(i=e.rows[r],l=0;l<i.length;l++)i[l].tokens=this.lexer.inline(i[l].text);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:ms(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):ms(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=Ls(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,l=0;for(;l<n;l++)if("\\"===e[l])l++;else if(e[l]===t[0])r++;else if(e[l]===t[1]&&(r--,r<0))return l;return-1}(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),Is(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return Is(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const l=r[1]||r[2]||"";if(!l||l&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let l,i,s=n,o=0;const a="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=a.exec(t));){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(i=l.length,r[3]||r[4]){s+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){o+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s+o);const t=e.slice(0,n+r.index+(r[0].length-l.length)+i);if(Math.min(n,i)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const a=t.slice(2,-2);return{type:"strong",raw:t,text:a,tokens:this.lexer.inlineTokens(a)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=ms(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=ms(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=ms(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=ms(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=ms(n[0]),r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):ms(n[0]):n[0]:ms(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const Os={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:As,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};Os.def=bs(Os.def).replace("label",Os._label).replace("title",Os._title).getRegex(),Os.bullet=/(?:[*+-]|\d{1,9}[.)])/,Os.listItemStart=bs(/^( *)(bull) */).replace("bull",Os.bullet).getRegex(),Os.list=bs(Os.list).replace(/bull/g,Os.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Os.def.source+")").getRegex(),Os._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Os._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Os.html=bs(Os.html,"i").replace("comment",Os._comment).replace("tag",Os._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Os.paragraph=bs(Os._paragraph).replace("hr",Os.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Os._tag).getRegex(),Os.blockquote=bs(Os.blockquote).replace("paragraph",Os.paragraph).getRegex(),Os.normal={...Os},Os.gfm={...Os.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},Os.gfm.table=bs(Os.gfm.table).replace("hr",Os.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Os._tag).getRegex(),Os.gfm.paragraph=bs(Os._paragraph).replace("hr",Os.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Os.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Os._tag).getRegex(),Os.pedantic={...Os.normal,html:bs("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Os._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:As,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:bs(Os.normal._paragraph).replace("hr",Os.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Os.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Ts={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:As,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:As,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function Us(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Ps(e){let t,n,r="";const l=e.length;for(t=0;t<l;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}Ts._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ts.punctuation=bs(Ts.punctuation).replace(/punctuation/g,Ts._punctuation).getRegex(),Ts.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ts.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,Ts._comment=bs(Os._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Ts.emStrong.lDelim=bs(Ts.emStrong.lDelim).replace(/punct/g,Ts._punctuation).getRegex(),Ts.emStrong.rDelimAst=bs(Ts.emStrong.rDelimAst,"g").replace(/punct/g,Ts._punctuation).getRegex(),Ts.emStrong.rDelimUnd=bs(Ts.emStrong.rDelimUnd,"g").replace(/punct/g,Ts._punctuation).getRegex(),Ts._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ts._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ts._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Ts.autolink=bs(Ts.autolink).replace("scheme",Ts._scheme).replace("email",Ts._email).getRegex(),Ts._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ts.tag=bs(Ts.tag).replace("comment",Ts._comment).replace("attribute",Ts._attribute).getRegex(),Ts._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ts._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ts._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ts.link=bs(Ts.link).replace("label",Ts._label).replace("href",Ts._href).replace("title",Ts._title).getRegex(),Ts.reflink=bs(Ts.reflink).replace("label",Ts._label).replace("ref",Os._label).getRegex(),Ts.nolink=bs(Ts.nolink).replace("ref",Os._label).getRegex(),Ts.reflinkSearch=bs(Ts.reflinkSearch,"g").replace("reflink",Ts.reflink).replace("nolink",Ts.nolink).getRegex(),Ts.normal={...Ts},Ts.pedantic={...Ts.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:bs(/^!?\[(label)\]\((.*?)\)/).replace("label",Ts._label).getRegex(),reflink:bs(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ts._label).getRegex()},Ts.gfm={...Ts.normal,escape:bs(Ts.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Ts.gfm.url=bs(Ts.gfm.url,"i").replace("email",Ts.gfm._extended_email).getRegex(),Ts.breaks={...Ts.gfm,br:bs(Ts.br).replace("{2,}","*").getRegex(),text:bs(Ts.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};class Ms{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||cs,this.options.tokenizer=this.options.tokenizer||new js,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Os.normal,inline:Ts.normal};this.options.pedantic?(t.block=Os.pedantic,t.inline=Ts.pedantic):this.options.gfm&&(t.block=Os.gfm,this.options.breaks?t.inline=Ts.breaks:t.inline=Ts.gfm),this.tokenizer.rules=t}static get rules(){return{block:Os,inline:Ts}}static lex(e,t){return new Ms(t).lex(e)}static lexInline(e,t){return new Ms(t).inlineTokens(e)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,l,i;for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(l=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(l=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(l)))r=t[t.length-1],i&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),i=l.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r,l,i,s,o,a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,i.index)+"["+zs("a",i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,i.index)+"["+zs("a",i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,i.index+i[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(s||(o=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,a,o))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,Ps))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,Ps))){if(l=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(l=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(l,Us))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(o=n.raw.slice(-1)),s=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class Fs{constructor(e){this.options=e||cs}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+ms(r)+'">'+(n?e:ms(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:ms(e,!0))+"</code></pre>\n"}blockquote(e){return`<blockquote>\n${e}</blockquote>\n`}html(e){return e}heading(e,t,n,r){if(this.options.headerIds){return`<h${t} id="${this.options.headerPrefix+r.slug(n)}">${e}</h${t}>\n`}return`<h${t}>${e}</h${t}>\n`}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return`<li>${e}</li>\n`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>\n`}table(e,t){return t&&(t=`<tbody>${t}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return`<tr>\n${e}</tr>\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,t,n){if(null===(e=_s(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+e+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=_s(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`<img src="${e}" alt="${n}"`;return t&&(r+=` title="${t}"`),r+=this.options.xhtml?"/>":">",r}text(e){return e}}class Ns{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class Vs{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class Ds{constructor(e){this.options=e||cs,this.options.renderer=this.options.renderer||new Fs,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ns,this.slugger=new Vs}static parse(e,t){return new Ds(t).parse(e)}static parseInline(e,t){return new Ds(t).parseInline(e)}parse(e,t=!0){let n,r,l,i,s,o,a,c,u,p,d,h,f,g,m,v,y,w,b,k="";const x=e.length;for(n=0;n<x;n++)if(p=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(b=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==b||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))k+=b||"";else switch(p.type){case"space":continue;case"hr":k+=this.renderer.hr();continue;case"heading":k+=this.renderer.heading(this.parseInline(p.tokens),p.depth,ys(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":k+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(c="",a="",i=p.header.length,r=0;r<i;r++)a+=this.renderer.tablecell(this.parseInline(p.header[r].tokens),{header:!0,align:p.align[r]});for(c+=this.renderer.tablerow(a),u="",i=p.rows.length,r=0;r<i;r++){for(o=p.rows[r],a="",s=o.length,l=0;l<s;l++)a+=this.renderer.tablecell(this.parseInline(o[l].tokens),{header:!1,align:p.align[l]});u+=this.renderer.tablerow(a)}k+=this.renderer.table(c,u);continue;case"blockquote":u=this.parse(p.tokens),k+=this.renderer.blockquote(u);continue;case"list":for(d=p.ordered,h=p.start,f=p.loose,i=p.items.length,u="",r=0;r<i;r++)m=p.items[r],v=m.checked,y=m.task,g="",m.task&&(w=this.renderer.checkbox(v),f?m.tokens.length>0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=w+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=w+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:w}):g+=w),g+=this.parse(m.tokens,f),u+=this.renderer.listitem(g,y,v);k+=this.renderer.list(u,d,h);continue;case"html":k+=this.renderer.html(p.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1<x&&"text"===e[n+1].type;)p=e[++n],u+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);k+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return k}parseInline(e,t){t=t||this.renderer;let n,r,l,i="";const s=e.length;for(n=0;n<s;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(l=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==l||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))i+=l||"";else switch(r.type){case"escape":case"text":i+=t.text(r.text);break;case"html":i+=t.html(r.text);break;case"link":i+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":i+=t.image(r.href,r.title,r.text);break;case"strong":i+=t.strong(this.parseInline(r.tokens,t));break;case"em":i+=t.em(this.parseInline(r.tokens,t));break;case"codespan":i+=t.codespan(r.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(r.tokens,t));break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return i}}class Hs{constructor(e){this.options=e||cs}static passThroughHooks=new Set(["preprocess","postprocess"]);preprocess(e){return e}postprocess(e){return e}}function Bs(e,t){return(n,r,l)=>{"function"==typeof r&&(l=r,r=null);const i={...r},s=function(e,t,n){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="<p>An error occurred:</p><pre>"+ms(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):n?void n(null,e):e}if(t)return Promise.reject(r);if(!n)throw r;n(r)}}((r={...Ws.defaults,...i}).silent,r.async,l);if(null==n)return s(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(r),r.hooks&&(r.hooks.options=r),l){const i=r.highlight;let o;try{r.hooks&&(n=r.hooks.preprocess(n)),o=e(n,r)}catch(e){return s(e)}const a=function(e){let n;if(!e)try{r.walkTokens&&Ws.walkTokens(o,r.walkTokens),n=t(o,r),r.hooks&&(n=r.hooks.postprocess(n))}catch(t){e=t}return r.highlight=i,e?s(e):l(null,n)};if(!i||i.length<3)return a();if(delete r.highlight,!o.length)return a();let c=0;return Ws.walkTokens(o,(function(e){"code"===e.type&&(c++,setTimeout((()=>{i(e.text,e.lang,(function(t,n){if(t)return a(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),c--,0===c&&a()}))}),0))})),void(0===c&&a())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then((t=>e(t,r))).then((e=>r.walkTokens?Promise.all(Ws.walkTokens(e,r.walkTokens)).then((()=>e)):e)).then((e=>t(e,r))).then((e=>r.hooks?r.hooks.postprocess(e):e)).catch(s);try{r.hooks&&(n=r.hooks.preprocess(n));const l=e(n,r);r.walkTokens&&Ws.walkTokens(l,r.walkTokens);let i=t(l,r);return r.hooks&&(i=r.hooks.postprocess(i)),i}catch(e){return s(e)}}}function Ws(e,t,n){return Bs(Ms.lex,Ds.parse)(e,t,n)}Ws.options=Ws.setOptions=function(e){var t;return Ws.defaults={...Ws.defaults,...e},t=Ws.defaults,cs=t,Ws},Ws.getDefaults=as,Ws.defaults=cs,Ws.use=function(...e){const t=Ws.defaults.extensions||{renderers:{},childTokens:{}};e.forEach((e=>{const n={...e};if(n.async=Ws.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");t[e.level]?t[e.level].unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer){const t=Ws.defaults.renderer||new Fs;for(const n in e.renderer){const r=t[n];t[n]=(...l)=>{let i=e.renderer[n].apply(t,l);return!1===i&&(i=r.apply(t,l)),i}}n.renderer=t}if(e.tokenizer){const t=Ws.defaults.tokenizer||new js;for(const n in e.tokenizer){const r=t[n];t[n]=(...l)=>{let i=e.tokenizer[n].apply(t,l);return!1===i&&(i=r.apply(t,l)),i}}n.tokenizer=t}if(e.hooks){const t=Ws.defaults.hooks||new Hs;for(const n in e.hooks){const r=t[n];Hs.passThroughHooks.has(n)?t[n]=l=>{if(Ws.defaults.async)return Promise.resolve(e.hooks[n].call(t,l)).then((e=>r.call(t,e)));const i=e.hooks[n].call(t,l);return r.call(t,i)}:t[n]=(...l)=>{let i=e.hooks[n].apply(t,l);return!1===i&&(i=r.apply(t,l)),i}}n.hooks=t}if(e.walkTokens){const t=Ws.defaults.walkTokens;n.walkTokens=function(n){let r=[];return r.push(e.walkTokens.call(this,n)),t&&(r=r.concat(t.call(this,n))),r}}Ws.setOptions(n)}))},Ws.walkTokens=function(e,t){let n=[];for(const r of e)switch(n=n.concat(t.call(Ws,r)),r.type){case"table":for(const e of r.header)n=n.concat(Ws.walkTokens(e.tokens,t));for(const e of r.rows)for(const r of e)n=n.concat(Ws.walkTokens(r.tokens,t));break;case"list":n=n.concat(Ws.walkTokens(r.items,t));break;default:Ws.defaults.extensions&&Ws.defaults.extensions.childTokens&&Ws.defaults.extensions.childTokens[r.type]?Ws.defaults.extensions.childTokens[r.type].forEach((function(e){n=n.concat(Ws.walkTokens(r[e],t))})):r.tokens&&(n=n.concat(Ws.walkTokens(r.tokens,t)))}return n},Ws.parseInline=Bs(Ms.lexInline,Ds.parseInline),Ws.Parser=Ds,Ws.parser=Ds.parse,Ws.Renderer=Fs,Ws.TextRenderer=Ns,Ws.Lexer=Ms,Ws.lexer=Ms.lex,Ws.Tokenizer=js,Ws.Slugger=Vs,Ws.Hooks=Hs,Ws.parse=Ws;const qs=/\$.*?\$/,Zs=/^\$(.*?)\$/,Ks=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Gs=(e="",t={})=>e.replace(/:(.+?):/g,((e,n)=>t[n]?`<img class="wl-emoji" src="${t[n]}" alt="${n}">`:e)),Qs=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{if(Ws.setOptions({highlight:n||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Ks.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(e){const t=e.search(qs);return-1!==t?t:e.length},tokenizer(t){const n=Zs.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);Ws.use({extensions:e})}return Ws.parse(Gs(e,t))},Js=e=>e.dataset.path||e.getAttribute("id"),Xs=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const l=new AbortController,i=document.querySelectorAll(n);return i.length&&(({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${e}/comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then((e=>e.json())).then((e=>Array.isArray(e)?e:[e])))({serverURL:E(e),paths:Array.from(i).map((e=>S(e.dataset.path||e.getAttribute("id")||t))),lang:r,signal:l.signal}).then((e=>{i.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(ls),l.abort.bind(l)},Ys=({size:e})=>Cl("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[Cl("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),Cl("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),eo=()=>Cl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Cl("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),to=()=>Cl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Cl("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),no=()=>Cl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Cl("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),Cl("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),ro=({active:e=!1})=>Cl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Cl("path",{d:"M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z"+(e?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"),fill:e?"red":"currentColor"})]),lo=()=>Cl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Cl("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),Cl("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),io=()=>Cl("svg",{width:"16",height:"16",ariaHidden:"true"},Cl("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),so=()=>Cl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Cl("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),oo=()=>Cl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Cl("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),ao=()=>Cl("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},Cl("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),co=({size:e=100})=>Cl("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Cl("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},Cl("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),uo=()=>Cl("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[Cl("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),Cl("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]);let po=null;const ho=()=>po||(po=Zi("WALINE_LIKE",[]));let fo=null;const go=()=>fo??(fo=Zi("WALINE_REACTION",{}));var mo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},vo={},yo={},wo={},bo=mo&&mo.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(l,i){function s(e){try{a(r.next(e))}catch(e){i(e)}}function o(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}a((r=r.apply(e,t||[])).next())}))},ko=mo&&mo.__generator||function(e,t){var n,r,l,i,s={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return i={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function o(i){return function(o){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(l=2&i[0]?r.return:i[0]?r.throw||((l=r.return)&&l.call(r),0):r.next)&&!(l=l.call(r,i[1])).done)return l;switch(r=0,l&&(i=[2&i[0],l.value]),i[0]){case 0:case 1:l=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(l=s.trys,(l=l.length>0&&l[l.length-1])||6!==i[0]&&2!==i[0])){s=0;continue}if(3===i[0]&&(!l||i[1]>l[0]&&i[1]<l[3])){s.label=i[1];break}if(6===i[0]&&s.label<l[1]){s.label=l[1],l=i;break}if(l&&s.label<l[2]){s.label=l[2],s.ops.push(i);break}l[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=l=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,o])}}};Object.defineProperty(wo,"__esModule",{value:!0}),wo.ReCaptchaInstance=void 0;var xo=function(){function e(e,t,n){this.siteKey=e,this.recaptchaID=t,this.recaptcha=n,this.styleContainer=null}return e.prototype.execute=function(e){return bo(this,void 0,void 0,(function(){return ko(this,(function(t){return[2,this.recaptcha.enterprise?this.recaptcha.enterprise.execute(this.recaptchaID,{action:e}):this.recaptcha.execute(this.recaptchaID,{action:e})]}))}))},e.prototype.getSiteKey=function(){return this.siteKey},e.prototype.hideBadge=function(){null===this.styleContainer&&(this.styleContainer=document.createElement("style"),this.styleContainer.innerHTML=".grecaptcha-badge{visibility:hidden !important;}",document.head.appendChild(this.styleContainer))},e.prototype.showBadge=function(){null!==this.styleContainer&&(document.head.removeChild(this.styleContainer),this.styleContainer=null)},e}();wo.ReCaptchaInstance=xo,Object.defineProperty(yo,"__esModule",{value:!0}),yo.getInstance=yo.load=void 0;var _o,$o=wo;!function(e){e[e.NOT_LOADED=0]="NOT_LOADED",e[e.LOADING=1]="LOADING",e[e.LOADED=2]="LOADED"}(_o||(_o={}));var Co=function(){function e(){}return e.load=function(t,n){if(void 0===n&&(n={}),"undefined"==typeof document)return Promise.reject(new Error("This is a library for the browser!"));if(e.getLoadingState()===_o.LOADED)return e.instance.getSiteKey()===t?Promise.resolve(e.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(e.getLoadingState()===_o.LOADING)return t!==e.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise((function(t,n){e.successfulLoadingConsumers.push((function(e){return t(e)})),e.errorLoadingRunnable.push((function(e){return n(e)}))}));e.instanceSiteKey=t,e.setLoadingState(_o.LOADING);var r=new e;return new Promise((function(l,i){r.loadScript(t,n.useRecaptchaNet||!1,n.useEnterprise||!1,n.renderParameters?n.renderParameters:{},n.customUrl).then((function(){e.setLoadingState(_o.LOADED);var i=r.doExplicitRender(grecaptcha,t,n.explicitRenderParameters?n.explicitRenderParameters:{},n.useEnterprise||!1),s=new $o.ReCaptchaInstance(t,i,grecaptcha);e.successfulLoadingConsumers.forEach((function(e){return e(s)})),e.successfulLoadingConsumers=[],n.autoHideBadge&&s.hideBadge(),e.instance=s,l(s)})).catch((function(t){e.errorLoadingRunnable.forEach((function(e){return e(t)})),e.errorLoadingRunnable=[],i(t)}))}))},e.getInstance=function(){return e.instance},e.setLoadingState=function(t){e.loadingState=t},e.getLoadingState=function(){return null===e.loadingState?_o.NOT_LOADED:e.loadingState},e.prototype.loadScript=function(t,n,r,l,i){var s=this;void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===l&&(l={}),void 0===i&&(i="");var o=document.createElement("script");o.setAttribute("recaptcha-v3-script","");var a="https://www.google.com/recaptcha/api.js";n&&(a=r?"https://recaptcha.net/recaptcha/enterprise.js":"https://recaptcha.net/recaptcha/api.js"),r&&(a="https://www.google.com/recaptcha/enterprise.js"),i&&(a=i),l.render&&(l.render=void 0);var c=this.buildQueryString(l);return o.src=a+"?render=explicit"+c,new Promise((function(t,n){o.addEventListener("load",s.waitForScriptToLoad((function(){t(o)}),r),!1),o.onerror=function(t){e.setLoadingState(_o.NOT_LOADED),n(t)},document.head.appendChild(o)}))},e.prototype.buildQueryString=function(e){return Object.keys(e).length<1?"":"&"+Object.keys(e).filter((function(t){return!!e[t]})).map((function(t){return t+"="+e[t]})).join("&")},e.prototype.waitForScriptToLoad=function(t,n){var r=this;return function(){void 0===window.grecaptcha?setTimeout((function(){r.waitForScriptToLoad(t,n)}),e.SCRIPT_LOAD_DELAY):n?window.grecaptcha.enterprise.ready((function(){t()})):window.grecaptcha.ready((function(){t()}))}},e.prototype.doExplicitRender=function(e,t,n,r){var l={sitekey:t,badge:n.badge,size:n.size,tabindex:n.tabindex};return n.container?r?e.enterprise.render(n.container,l):e.render(n.container,l):r?e.enterprise.render(l):e.render(l)},e.loadingState=null,e.instance=null,e.instanceSiteKey=null,e.successfulLoadingConsumers=[],e.errorLoadingRunnable=[],e.SCRIPT_LOAD_DELAY=25,e}();yo.load=Co.load,yo.getInstance=Co.getInstance,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=yo;Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=wo;Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(vo);const So={};let Ro=null;const Ao=()=>Ro??(Ro=Zi("WALINE_USER",{})),Eo={key:0,class:"wl-reaction"},Lo=["textContent"],zo={class:"wl-reaction-list"},Io=["onClick"],jo={class:"wl-reaction-img"},Oo=["src","alt"],To=["textContent"],Uo=["textContent"];var Po=Zn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=go(),r=Vn("config"),l=tn(-1),i=tn([]),s=$l((()=>r.value.locale)),o=$l((()=>r.value.reaction.length>0)),a=$l((()=>{const{reaction:e,path:t}=r.value;return e.map(((e,r)=>({icon:e,desc:s.value[`reaction${r}`],active:n.value[t]===r})))}));let c;return Jn((()=>{Bn((()=>[r.value.serverURL,r.value.path]),(()=>{(async()=>{if(o.value){const{serverURL:e,lang:t,path:n,reaction:l}=r.value,s=new AbortController;c=s.abort.bind(s);const o=await _({serverURL:e,lang:t,paths:[n],type:l.map(((e,t)=>`reaction${t}`)),signal:s.signal});if(Array.isArray(o)||"number"==typeof o)return;i.value=l.map(((e,t)=>o[`reaction${t}`]))}})()}),{immediate:!0})})),Yn((()=>c?.())),(e,t)=>sn(a).length?(qr(),Qr("div",Eo,[rl("div",{class:"wl-reaction-title",textContent:q(sn(s).reactionTitle)},null,8,Lo),rl("ul",zo,[(qr(!0),Qr(Nr,null,sr(sn(a),(({active:e,icon:t,desc:s},o)=>(qr(),Qr("li",{key:o,class:V(["wl-reaction-item",{active:e}]),onClick:e=>(async e=>{if(-1===l.value){const{serverURL:t,lang:s,path:o}=r.value,a=n.value[o];l.value=e,void 0!==a&&(await $({serverURL:t,lang:s,path:o,type:`reaction${a}`,action:"desc"}),i.value[a]=Math.max(i.value[a]-1,0)),a!==e&&(await $({serverURL:t,lang:s,path:o,type:`reaction${e}`}),i.value[e]=(i.value[e]||0)+1),a===e?delete n.value[o]:n.value[o]=e,l.value=-1}})(o)},[rl("div",jo,[rl("img",{src:t,alt:s},null,8,Oo),l.value===o?(qr(),Jr(sn(co),{key:0,class:"wl-reaction-loading"})):(qr(),Qr("div",{key:1,class:"wl-reaction-votes",textContent:q(i.value[o]||0)},null,8,To))]),rl("div",{class:"wl-reaction-text",textContent:q(s)},null,8,Uo)],10,Io)))),128))])])):ol("v-if",!0)}}),Mo=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n},Fo=Mo(Po,[["__file","ArticleReaction.vue"]]),No=new Map;function Vo(e){var t=No.get(e);t&&t.destroy()}function Do(e){var t=No.get(e);t&&t.update()}var Ho=null;"undefined"==typeof window?((Ho=function(e){return e}).destroy=function(e){return e},Ho.update=function(e){return e}):((Ho=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!No.has(e)){var t,n=null,r=window.getComputedStyle(e),l=(t=e.value,function(){s({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),i=function(t){e.removeEventListener("autosize:destroy",i),e.removeEventListener("autosize:update",o),e.removeEventListener("input",l),window.removeEventListener("resize",o),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),No.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",i),e.addEventListener("autosize:update",o),e.addEventListener("input",l),window.addEventListener("resize",o),e.style.overflowX="hidden",e.style.wordWrap="break-word",No.set(e,{destroy:i,update:o}),o()}function s(t){var l,i,o=t.restoreTextAlign,a=void 0===o?null:o,c=t.testForHeightReduction,u=void 0===c||c,p=r.overflowY;if(0!==e.scrollHeight&&("vertical"===r.resize?e.style.resize="none":"both"===r.resize&&(e.style.resize="horizontal"),u&&(l=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),i="content-box"===r.boxSizing?e.scrollHeight-(parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)):e.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),"none"!==r.maxHeight&&i>parseFloat(r.maxHeight)?("hidden"===r.overflowY&&(e.style.overflow="scroll"),i=parseFloat(r.maxHeight)):"hidden"!==r.overflowY&&(e.style.overflow="hidden"),e.style.height=i+"px",a&&(e.style.textAlign=a),l&&l(),n!==i&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=i),p!==r.overflow&&!a)){var d=r.textAlign;"hidden"===r.overflow&&(e.style.textAlign="start"===d?"end":"start"),s({restoreTextAlign:d,testForHeightReduction:!0})}}function o(){s({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Vo),e},Ho.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Do),e});var Bo=Ho;const Wo=["data-index"],qo=["src","title","onClick"];var Zo=Zn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let r=null;const l=tn(null),i=tn({}),s=tn([]),o=()=>{const e=Math.floor((l.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return e>0?e:1},a=async e=>{if(e>=n.items.length)return;await _n();const t=Array.from(l.value?.children||[]).reduce(((e,t)=>t.getBoundingClientRect().height<e.getBoundingClientRect().height?t:e));s.value[Number(t.dataset.index)].push(e),await a(e+1)},c=async(e=!1)=>{if(s.value.length===o()&&!e)return;var t;s.value=(t=o(),new Array(t).fill(null).map((()=>[])));const n=window.scrollY;await a(0),window.scrollTo({top:n})},u=e=>{i.value[e.target.src]=!0};return Jn((()=>{c(!0),r=new ResizeObserver((()=>{c()})),r.observe(l.value),Bn((()=>[n.items]),(()=>{i.value={},c(!0)})),Bn((()=>[n.columnWidth,n.gap]),(()=>{c()}))})),Xn((()=>r.unobserve(l.value))),(t,n)=>(qr(),Qr("div",{ref_key:"wall",ref:l,class:"wl-gallery",style:U({gap:`${e.gap}px`})},[(qr(!0),Qr(Nr,null,sr(s.value,((n,r)=>(qr(),Qr("div",{key:r,class:"wl-gallery-column","data-index":r,style:U({gap:`${e.gap}px`})},[(qr(!0),Qr(Nr,null,sr(n,(n=>(qr(),Qr(Nr,{key:n},[i.value[e.items[n].src]?ol("v-if",!0):(qr(),Jr(sn(co),{key:0,size:36,style:{margin:"20px auto"}})),rl("img",{class:"wl-gallery-item",src:e.items[n].src,title:e.items[n].title,loading:"lazy",onLoad:u,onClick:r=>t.$emit("insert",`![](${e.items[n].src})`)},null,40,qo)],64)))),128))],12,Wo)))),128))],4))}}),Ko=Mo(Zo,[["__file","ImageWall.vue"]]);const Go={class:"wl-comment"},Qo={key:0,class:"wl-login-info"},Jo={class:"wl-avatar"},Xo=["title"],Yo=["title"],ea=["src"],ta=["title","textContent"],na={class:"wl-panel"},ra=["for","textContent"],la=["id","onUpdate:modelValue","name","type"],ia=["placeholder"],sa={class:"wl-preview"},oa=rl("hr",null,null,-1),aa=["innerHTML"],ca={class:"wl-footer"},ua={class:"wl-actions"},pa={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},da=["title"],ha=["title"],fa=["title"],ga=["title"],ma={class:"wl-info"},va=rl("div",{class:"wl-captcha-container"},null,-1),ya={class:"wl-text-number"},wa={key:0},ba=["textContent"],ka=["textContent"],xa=["disabled"],_a=["placeholder"],$a={key:1,class:"wl-loading"},Ca={key:0,class:"wl-tab-wrapper"},Sa=["title","onClick"],Ra=["src","alt"],Aa={key:0,class:"wl-tabs"},Ea=["onClick"],La=["src","alt","title"],za=["title"];var Ia=Zn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{expose:t,emit:n}){const r=e;t();const l=Vn("config"),i=Zi("WALINE_COMMENT_BOX_EDITOR",""),s=Zi("WALINE_USER_META",{nick:"",mail:"",link:""}),o=Ao(),a=tn({}),c=tn(null),u=tn(null),p=tn(null),d=tn(null),h=tn(null),f=tn(null),g=tn(null),m=tn({tabs:[],map:{}}),v=tn(0),y=tn(!1),w=tn(!1),b=tn(!1),k=tn(""),x=tn(0),_=Vt({loading:!0,list:[]}),$=tn(0),S=tn(!1),A=tn(""),E=tn(!1),L=tn(!1),z=$l((()=>l.value.locale)),I=$l((()=>Boolean(o.value?.token))),j=$l((()=>!1!==l.value.imageUploader)),O=e=>{const t=c.value,n=t.selectionStart,r=t.selectionEnd||0,l=t.scrollTop;i.value=t.value.substring(0,n)+e+t.value.substring(r,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=l},T=e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&N()},U=e=>{const t=`![${l.value.locale.uploading} ${e.name}]()`;return O(t),Promise.resolve().then((()=>l.value.imageUploader(e))).then((n=>{i.value=i.value.replace(t,`\r\n![${e.name}](${n})`)})).catch((e=>{alert(e.message),i.value=i.value.replace(t,"")}))},P=e=>{if(e.dataTransfer?.items){const t=os(e.dataTransfer.items);t&&j.value&&(U(t),e.preventDefault())}},M=e=>{if(e.clipboardData){const t=os(e.clipboardData.items);t&&j.value&&U(t)}},F=()=>{const e=u.value;e.files&&j.value&&U(e.files[0]).then((()=>{e.value=""}))},N=async()=>{const{serverURL:e,lang:t,login:u,wordLimit:p,requiredMeta:d,recaptchaV3Key:h,turnstileKey:f}=l.value,g=await(async()=>{if(!navigator)return"";const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||"Windows"!==e.platform)return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n?(parseInt(n.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t):t})(),v={comment:A.value,nick:s.value.nick,mail:s.value.mail,link:s.value.link,url:l.value.path,ua:g};if(o.value?.token)v.nick=o.value.display_name,v.mail=o.value.email,v.link=o.value.url;else{if("force"===u)return;if(d.indexOf("nick")>-1&&!v.nick)return a.value.nick?.focus(),alert(z.value.nickError);if(d.indexOf("mail")>-1&&!v.mail||v.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(v.mail))return a.value.mail?.focus(),alert(z.value.mailError);v.nick||(v.nick=z.value.anonymous)}if(v.comment){if(!S.value)return alert(z.value.wordHint.replace("$0",p[0].toString()).replace("$1",p[1].toString()).replace("$2",x.value.toString()));v.comment=Gs(v.comment,m.value.map),r.replyId&&r.rootId&&(v.pid=r.replyId,v.rid=r.rootId,v.at=r.replyUser),E.value=!0;try{h&&(v.recaptchaV3=await(e=>{const t=So[e]??(So[e]=vo.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:e=>t.then((t=>t.execute(e)))}})(h).execute("social")),f&&(v.turnstile=await(y=f,{execute:e=>new Promise((t=>{es("https://challenges.cloudflare.com/turnstile/v0/api.js",(()=>{const n=window?.turnstile,r={sitekey:y,action:e,size:"compact",callback(e){t(e)}};n?.ready((()=>n?.render(".wl-captcha-container",r)))}))}))}).execute("social"));const l={serverURL:e,lang:t,token:o.value?.token,comment:v},s=await(r.edit?C({objectId:r.edit.objectId,...l}):(({serverURL:e,lang:t,token:n,comment:r})=>{const l={"Content-Type":"application/json"};return n&&(l.Authorization=`Bearer ${n}`),fetch(`${e}/comment?lang=${t}`,{method:"POST",headers:l,body:JSON.stringify(r)}).then((e=>e.json()))})(l));if(E.value=!1,s.errmsg)return alert(s.errmsg);n("submit",s.data),i.value="",k.value="",r.replyId&&n("cancelReply"),r.edit?.objectId&&n("cancelEdit")}catch(e){E.value=!1,alert(e.message)}var y}else c.value?.focus()},D=e=>{e.preventDefault();const{lang:t,serverURL:r}=l.value;(({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,l=window.open(`${t}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return l?.postMessage({type:"TOKEN",data:null},"*"),new Promise((e=>{const t=({data:n})=>{n&&"object"==typeof n&&"userInfo"===n.type&&n.data.token&&(l?.close(),window.removeEventListener("message",t),e(n.data))};window.addEventListener("message",t)}))})({serverURL:r,lang:t}).then((e=>{o.value=e,(e.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e)),n("log")}))},H=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),n("log")},B=e=>{e.preventDefault();const{lang:t,serverURL:n}=l.value,r=(window.innerWidth-800)/2,i=(window.innerHeight-800)/2,s=new URLSearchParams({lng:t,token:o.value.token}),a=window.open(`${n}/ui/profile?${s.toString()}`,"_blank",`width=800,height=800,left=${r},top=${i},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);a?.postMessage({type:"TOKEN",data:o.value.token},"*")},W=e=>{p.value?.contains(e.target)||d.value?.contains(e.target)||(y.value=!1),h.value?.contains(e.target)||f.value?.contains(e.target)||(w.value=!1)},Z=async e=>{const{scrollTop:t,clientHeight:n,scrollHeight:r}=e.target,i=(n+t)/r,s=l.value.search,o=g.value?.value||"";if(i<.9||_.loading||L.value)return;_.loading=!0;(s.more&&_.list.length?await s.more(o,_.list.length):await s.search(o)).length?_.list=[..._.list,...s.more&&_.list.length?await s.more(o,_.list.length):await s.search(o)]:L.value=!0,_.loading=!1,setTimeout((()=>{e.target.scrollTop=t}),50)},K=fi((e=>{_.list=[],L.value=!1,Z(e)}),300);Bn([l,x],(([e,t])=>{const{wordLimit:n}=e;n?t<n[0]&&0!==n[0]?($.value=n[0],S.value=!1):t>n[1]?($.value=n[1],S.value=!1):($.value=n[1],S.value=!0):($.value=0,S.value=!0)}),{immediate:!0});const G=({data:e})=>{e&&"profile"===e.type&&(o.value={...o.value,...e.data},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(o)))))};return Jn((()=>{document.body.addEventListener("click",W),window.addEventListener("message",G),r.edit?.objectId&&(i.value=r.edit.orig),Bn(w,(async e=>{if(!e)return;const t=l.value.search;g.value&&(g.value.value=""),_.loading=!0,_.list=t.default?await t.default():await t.search(""),_.loading=!1})),Bn((()=>i.value),(e=>{const{highlighter:t,texRenderer:n}=l.value;A.value=e,k.value=Qs(e,{emojiMap:m.value.map,highlighter:t,texRenderer:n}),x.value=(e=>((e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu))(e)?.reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0)||0)+((e=>e.match(/[\u4E00-\u9FD5]/gu))(e)?.length||0))(e),e?Bo(c.value):Bo.destroy(c.value)}),{immediate:!0}),Bn((()=>l.value.emoji),(e=>{return(t=e,Promise.all(t.map((e=>"string"==typeof e?ns(R(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:l,prefix:i,type:s,items:o}=e;t.tabs.push({name:n,icon:rs(l,r,i,s),items:o.map((e=>{const n=`${i||""}${e}`;return t.map[n]=rs(e,r,i,s),n}))})})),t}))).then((e=>{m.value=e}));var t}),{immediate:!0})})),Yn((()=>{document.body.removeEventListener("click",W),window.removeEventListener("message",G)})),(t,n)=>(qr(),Qr("div",Go,["disable"!==sn(l).login&&sn(I)&&!e.edit?.objectId?(qr(),Qr("div",Qo,[rl("div",Jo,[rl("button",{type:"submit",class:"wl-logout-btn",title:sn(z).logout,onClick:H},[ll(sn(Ys),{size:14})],8,Xo),rl("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:sn(z).profile,onClick:B},[rl("img",{src:sn(o).avatar,alt:"avatar"},null,8,ea)],8,Yo)]),rl("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:sn(z).profile,onClick:B,textContent:q(sn(o).display_name)},null,8,ta)])):ol("v-if",!0),rl("div",na,["force"!==sn(l).login&&sn(l).meta.length&&!sn(I)?(qr(),Qr("div",{key:0,class:V(["wl-header",`item${sn(l).meta.length}`])},[(qr(!0),Qr(Nr,null,sr(sn(l).meta,(e=>(qr(),Qr("div",{key:e,class:"wl-header-item"},[rl("label",{for:`wl-${e}`,textContent:q(sn(z)[e]+(sn(l).requiredMeta.includes(e)||!sn(l).requiredMeta.length?"":`(${sn(z).optional})`))},null,8,ra),er(rl("input",{id:`wl-${e}`,ref_for:!0,ref:t=>{t&&(a.value[e]=t)},"onUpdate:modelValue":t=>sn(s)[e]=t,class:V(["wl-input",`wl-${e}`]),name:e,type:"mail"===e?"email":"text"},null,10,la),[[ti,sn(s)[e]]])])))),128))],2)):ol("v-if",!0),er(rl("textarea",{id:"wl-edit",ref_key:"editorRef",ref:c,"onUpdate:modelValue":n[0]||(n[0]=e=>en(i)?i.value=e:null),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:sn(z).placeholder,onKeydown:T,onDrop:P,onPaste:M},null,40,ia),[[Zl,sn(i)]]),er(rl("div",sa,[oa,rl("h4",null,q(sn(z).preview)+":",1),rl("div",{class:"wl-content",innerHTML:k.value},null,8,aa)],512),[[ri,b.value]]),rl("div",ca,[rl("div",ua,[rl("a",pa,[ll(sn(io))]),er(rl("button",{ref_key:"emojiButtonRef",ref:p,type:"button",class:V(["wl-action",{active:y.value}]),title:sn(z).emoji,onClick:n[1]||(n[1]=e=>y.value=!y.value)},[ll(sn(to))],10,da),[[ri,m.value.tabs.length]]),sn(l).search?(qr(),Qr("button",{key:0,ref_key:"gifButtonRef",ref:h,type:"button",class:V(["wl-action",{active:w.value}]),title:sn(z).gif,onClick:n[2]||(n[2]=e=>w.value=!w.value)},[ll(sn(uo))],10,ha)):ol("v-if",!0),rl("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:u,class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:F},null,544),sn(j)?(qr(),Qr("label",{key:1,for:"wl-image-upload",class:"wl-action",title:sn(z).uploadImage},[ll(sn(no))],8,fa)):ol("v-if",!0),rl("button",{type:"button",class:V(["wl-action",{active:b.value}]),title:sn(z).preview,onClick:n[3]||(n[3]=e=>b.value=!b.value)},[ll(sn(lo))],10,ga)]),rl("div",ma,[va,rl("div",ya,[sl(q(x.value)+" ",1),sn(l).wordLimit?(qr(),Qr("span",wa,[sl("  /  "),rl("span",{class:V({illegal:!S.value}),textContent:q($.value)},null,10,ba)])):ol("v-if",!0),sl("  "+q(sn(z).word),1)]),"disable"===sn(l).login||sn(I)?ol("v-if",!0):(qr(),Qr("button",{key:0,type:"button",class:"wl-btn",onClick:D,textContent:q(sn(z).login)},null,8,ka)),"force"!==sn(l).login||sn(I)?(qr(),Qr("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:E.value,onClick:N},[E.value?(qr(),Jr(sn(co),{key:0,size:16})):(qr(),Qr(Nr,{key:1},[sl(q(sn(z).submit),1)],64))],8,xa)):ol("v-if",!0)]),rl("div",{ref_key:"gifPopupRef",ref:f,class:V(["wl-gif-popup",{display:w.value}])},[rl("input",{ref_key:"gifSearchInputRef",ref:g,type:"text",placeholder:sn(z).gifSearchPlaceholder,onInput:n[4]||(n[4]=(...e)=>sn(K)&&sn(K)(...e))},null,40,_a),_.list.length?(qr(),Jr(Ko,{key:0,items:_.list,"column-width":200,gap:6,onInsert:n[5]||(n[5]=e=>O(e)),onScroll:Z},null,8,["items"])):ol("v-if",!0),_.loading?(qr(),Qr("div",$a,[ll(sn(co),{size:30})])):ol("v-if",!0)],2),rl("div",{ref_key:"emojiPopupRef",ref:d,class:V(["wl-emoji-popup",{display:y.value}])},[(qr(!0),Qr(Nr,null,sr(m.value.tabs,((e,t)=>(qr(),Qr(Nr,{key:e.name},[t===v.value?(qr(),Qr("div",Ca,[(qr(!0),Qr(Nr,null,sr(e.items,(e=>(qr(),Qr("button",{key:e,type:"button",title:e,onClick:t=>O(`:${e}:`)},[y.value?(qr(),Qr("img",{key:0,class:"wl-emoji",src:m.value.map[e],alt:e,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ra)):ol("v-if",!0)],8,Sa)))),128))])):ol("v-if",!0)],64)))),128)),m.value.tabs.length>1?(qr(),Qr("div",Aa,[(qr(!0),Qr(Nr,null,sr(m.value.tabs,((e,t)=>(qr(),Qr("button",{key:e.name,type:"button",class:V(["wl-tab",{active:v.value===t}]),onClick:e=>v.value=t},[rl("img",{class:"wl-emoji",src:e.icon,alt:e.name,title:e.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,La)],10,Ea)))),128))])):ol("v-if",!0)],2)])]),e.replyId||e.edit?.objectId?(qr(),Qr("button",{key:1,type:"button",class:"wl-close",title:sn(z).cancelReply,onClick:n[6]||(n[6]=n=>t.$emit(e.replyId?"cancelReply":"cancelEdit"))},[ll(sn(Ys),{size:24})],8,za)):ol("v-if",!0)]))}}),ja=Mo(Ia,[["__file","CommentBox.vue"]]);const Oa=["id"],Ta={class:"wl-user","aria-hidden":"true"},Ua=["src"],Pa={class:"wl-card"},Ma={class:"wl-head"},Fa=["href"],Na={key:1,class:"wl-nick"},Va=["textContent"],Da=["textContent"],Ha=["textContent"],Ba=["textContent"],Wa=["textContent"],qa={class:"wl-comment-actions"},Za=["title"],Ka=["textContent"],Ga=["title"],Qa={class:"wl-meta","aria-hidden":"true"},Ja=["data-value","textContent"],Xa=["data-value","textContent"],Ya=["data-value","textContent"],ec=["innerHTML"],tc={key:1,class:"wl-admin-actions"},nc={class:"wl-comment-status"},rc=["disabled","onClick","textContent"],lc={key:3,class:"wl-quote"};var ic=Mo(Zn({__name:"CommentCard",props:{comment:null,edit:{default:null},rootId:null,reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e){const t=e,n=["approved","waiting","spam"],r=Vn("config"),l=ho(),i=Yi(),s=Ao(),o=$l((()=>r.value.locale)),a=$l((()=>{const{link:e}=t.comment;return e?A(e)?e:`https://${e}`:""})),c=$l((()=>l.value.includes(t.comment.objectId))),u=$l((()=>O(t.comment.insertedAt,i.value,o.value))),p=$l((()=>"administrator"===s.value.type)),d=$l((()=>t.comment.user_id&&s.value.objectId===t.comment.user_id)),h=$l((()=>t.comment.objectId===t.reply?.objectId)),f=$l((()=>t.comment.objectId===t.edit?.objectId));return(t,r)=>{const l=rr("CommentCard",!0);return qr(),Qr("div",{id:e.comment.objectId,class:"wl-card-item"},[rl("div",Ta,[e.comment.avatar?(qr(),Qr("img",{key:0,src:e.comment.avatar},null,8,Ua)):ol("v-if",!0),e.comment.type?(qr(),Jr(sn(ao),{key:1})):ol("v-if",!0)]),rl("div",Pa,[rl("div",Ma,[sn(a)?(qr(),Qr("a",{key:0,class:"wl-nick",href:sn(a),target:"_blank",rel:"nofollow noopener noreferrer"},q(e.comment.nick),9,Fa)):(qr(),Qr("span",Na,q(e.comment.nick),1)),"administrator"===e.comment.type?(qr(),Qr("span",{key:2,class:"wl-badge",textContent:q(sn(o).admin)},null,8,Va)):ol("v-if",!0),e.comment.label?(qr(),Qr("span",{key:3,class:"wl-badge",textContent:q(e.comment.label)},null,8,Da)):ol("v-if",!0),e.comment.sticky?(qr(),Qr("span",{key:4,class:"wl-badge",textContent:q(sn(o).sticky)},null,8,Ha)):ol("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(qr(),Qr("span",{key:5,class:V(`wl-badge level${e.comment.level}`),textContent:q(sn(o)[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,Ba)):ol("v-if",!0),rl("span",{class:"wl-time",textContent:q(sn(u))},null,8,Wa),rl("div",qa,[sn(p)||sn(d)?(qr(),Qr("button",{key:0,type:"button",class:"wl-edit",onClick:r[0]||(r[0]=()=>t.$emit("edit",e.comment))},[ll(sn(oo))])):ol("v-if",!0),sn(p)||sn(d)?(qr(),Qr("button",{key:1,type:"button",class:"wl-delete",onClick:r[1]||(r[1]=n=>t.$emit("delete",e.comment))},[ll(sn(eo))])):ol("v-if",!0),rl("button",{type:"button",class:"wl-like",title:sn(c)?sn(o).cancelLike:sn(o).like,onClick:r[2]||(r[2]=n=>t.$emit("like",e.comment))},[ll(sn(ro),{active:sn(c)},null,8,["active"]),"like"in e.comment?(qr(),Qr("span",{key:0,textContent:q(e.comment.like)},null,8,Ka)):ol("v-if",!0)],8,Za),rl("button",{type:"button",class:V(["wl-reply",{active:sn(h)}]),title:sn(h)?sn(o).cancelReply:sn(o).reply,onClick:r[3]||(r[3]=n=>t.$emit("reply",sn(h)?null:e.comment))},[ll(sn(so))],10,Ga)])]),rl("div",Qa,[e.comment.addr?(qr(),Qr("span",{key:0,class:"wl-addr","data-value":e.comment.addr,textContent:q(e.comment.addr)},null,8,Ja)):ol("v-if",!0),e.comment.browser?(qr(),Qr("span",{key:1,class:"wl-browser","data-value":e.comment.browser,textContent:q(e.comment.browser)},null,8,Xa)):ol("v-if",!0),e.comment.os?(qr(),Qr("span",{key:2,class:"wl-os","data-value":e.comment.os,textContent:q(e.comment.os)},null,8,Ya)):ol("v-if",!0)]),sn(f)?ol("v-if",!0):(qr(),Qr("div",{key:0,class:"wl-content",innerHTML:e.comment.comment},null,8,ec)),sn(p)&&!sn(f)?(qr(),Qr("div",tc,[rl("span",nc,[(qr(),Qr(Nr,null,sr(n,(n=>rl("button",{key:n,type:"submit",class:V(`wl-btn wl-${n}`),disabled:e.comment.status===n,onClick:r=>t.$emit("status",{status:n,comment:e.comment}),textContent:q(sn(o)[n])},null,10,rc))),64))]),sn(p)&&!e.comment.rid?(qr(),Qr("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:r[4]||(r[4]=n=>t.$emit("sticky",e.comment))},q(e.comment.sticky?sn(o).unsticky:sn(o).sticky),1)):ol("v-if",!0)])):ol("v-if",!0),sn(h)||sn(f)?(qr(),Qr("div",{key:2,class:V({"wl-reply-wrapper":sn(h),"wl-edit-wrapper":sn(f)})},[ll(ja,{edit:e.edit,"reply-id":e.reply?.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onLog:r[5]||(r[5]=e=>t.$emit("log")),onCancelReply:r[6]||(r[6]=e=>t.$emit("reply",null)),onCancelEdit:r[7]||(r[7]=e=>t.$emit("edit",null)),onSubmit:r[8]||(r[8]=e=>t.$emit("submit",e))},null,8,["edit","reply-id","reply-user","root-id"])],2)):ol("v-if",!0),e.comment.children?(qr(),Qr("div",lc,[(qr(!0),Qr(Nr,null,sr(e.comment.children,(n=>(qr(),Jr(l,{key:n.objectId,comment:n,reply:e.reply,edit:e.edit,"root-id":e.rootId,onLog:r[9]||(r[9]=e=>t.$emit("log")),onDelete:r[10]||(r[10]=e=>t.$emit("delete",e)),onEdit:r[11]||(r[11]=e=>t.$emit("edit",e)),onLike:r[12]||(r[12]=e=>t.$emit("like",e)),onReply:r[13]||(r[13]=e=>t.$emit("reply",e)),onStatus:r[14]||(r[14]=e=>t.$emit("status",e)),onSticky:r[15]||(r[15]=e=>t.$emit("sticky",e)),onSubmit:r[16]||(r[16]=e=>t.$emit("submit",e))},null,8,["comment","reply","edit","root-id"])))),128))])):ol("v-if",!0)])],8,Oa)}}}),[["__file","CommentCard.vue"]]);const sc="2.15.2",oc={"data-waline":""},ac={class:"wl-meta-head"},cc={class:"wl-count"},uc=["textContent"],pc={class:"wl-sort"},dc=["onClick"],hc={class:"wl-cards"},fc={key:1,class:"wl-operation"},gc=["textContent"],mc={key:0,class:"wl-loading"},vc=["textContent"],yc={key:2,class:"wl-operation"},wc=["textContent"],bc={key:3,class:"wl-power"},kc=rl("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);var xc=Zn({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","turnstileKey","reaction"],setup(e){const a=e,c={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},u=Object.keys(c),d=Ao(),h=ho(),f=tn("loading"),g=tn(0),m=tn(1),v=tn(0),y=$l((()=>(({serverURL:e,path:a=location.pathname,lang:c=("undefined"==typeof navigator?"en-US":navigator.language),locale:u,emoji:d=n,meta:h=["nick","mail","link"],requiredMeta:f=[],dark:g=!1,pageSize:m=10,wordLimit:v,imageUploader:y,highlighter:w,texRenderer:k,copyright:x=!0,login:_="enable",search:$,reaction:C,recaptchaV3Key:R="",turnstileKey:A="",commentSorting:I="latest",...j})=>({serverURL:E(e),path:S(a),locale:{...b[c]||b[r],..."object"==typeof u?u:{}},wordLimit:L(v),meta:t(h),requiredMeta:t(f),imageUploader:z(y,i),highlighter:z(w,p),texRenderer:z(k,s),lang:Object.keys(b).includes(c)?c:"en-US",dark:g,emoji:"boolean"==typeof d?d?n:[]:d,pageSize:m,login:_,copyright:x,search:!1!==$&&("object"==typeof $?$:o(c)),recaptchaV3Key:R,turnstileKey:A,reaction:Array.isArray(C)?C:!0===C?l:[],commentSorting:I,...j}))(a))),w=tn(y.value.commentSorting),k=tn([]),_=tn(null),$=tn(null),R=$l((()=>{return"string"==typeof(e=y.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${I}}`:`${e}${I}`:!0===e?`:root${I}`:"";var e})),A=$l((()=>y.value.locale));let j;!function(e,t={}){const n=tn(!1),{document:r=ji,immediate:l=!0,manual:i=!1,id:s="vueuse_styletag_"+ ++ts}=t,o=tn(e);let a=()=>{};const c=()=>{if(!r)return;const e=r.getElementById(s)||r.createElement("style");e.isConnected||(e.type="text/css",e.id=s,t.media&&(e.media=t.media),r.head.appendChild(e)),n.value||(a=Bn(o,(t=>{e.textContent=t}),{immediate:!0}),n.value=!0)},u=()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(s)),n.value=!1)};l&&!i&&gi(c),i||ai(u),Dt(n)}(R,{id:"waline-darkmode"});const O=e=>{const{serverURL:t,path:n,pageSize:r}=y.value,l=new AbortController;f.value="loading",j?.(),(({serverURL:e,lang:t,path:n,page:r,pageSize:l,sortBy:i,signal:s,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${e}/comment?path=${encodeURIComponent(n)}&pageSize=${l}&page=${r}&lang=${t}&sortBy=${i}`,{signal:s,headers:a}).then((e=>e.json())).then((e=>x(e,"Get comment data")))})({serverURL:t,lang:y.value.lang,path:n,pageSize:r,sortBy:c[w.value],page:e,signal:l.signal,token:d.value?.token}).then((t=>{f.value="success",g.value=t.count,k.value.push(...t.data),m.value=e,v.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),f.value="error")})),j=l.abort.bind(l)},T=()=>O(m.value+1),U=()=>{g.value=0,k.value=[],O(1)},P=e=>{_.value=e},M=e=>{$.value=e},F=e=>{if($.value)$.value.comment=e.comment,$.value.orig=e.orig;else if(e.rid){const t=k.value.find((({objectId:t})=>t===e.rid));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else k.value.unshift(e)},N=async({comment:e,status:t})=>{if(e.status===t)return;const{serverURL:n,lang:r}=y.value;await C({serverURL:n,lang:r,token:d.value?.token,objectId:e.objectId,comment:{status:t}}),e.status=t},D=async e=>{if(e.rid)return;const{serverURL:t,lang:n}=y.value;await C({serverURL:t,lang:n,token:d.value?.token,objectId:e.objectId,comment:{sticky:e.sticky?0:1}}),e.sticky=!e.sticky},H=async({objectId:e})=>{if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:t,lang:n}=y.value;await(({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${e}/comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then((e=>e.json())).then((e=>x(e,"Delete comment"))))({serverURL:t,lang:n,token:d.value?.token,objectId:e}),k.value.some(((t,n)=>t.objectId===e?(k.value=k.value.filter(((e,t)=>t!==n)),!0):t.children.some(((r,l)=>r.objectId===e&&(k.value[n].children=t.children.filter(((e,t)=>t!==l)),!0)))))},B=async e=>{const{serverURL:t,lang:n}=y.value,{objectId:r}=e,l=h.value.includes(r);await C({serverURL:t,lang:n,objectId:r,token:d.value?.token,comment:{like:!l}}),l?h.value=h.value.filter((e=>e!==r)):(h.value=[...h.value,r],h.value.length>50&&(h.value=h.value.slice(-50))),e.like=(e.like||0)+(l?-1:1)};return function(e,t){if(fl){let n=fl.provides;const r=fl.parent&&fl.parent.provides;r===n&&(n=fl.provides=Object.create(r)),n[e]=t}}("config",y),Jn((()=>{Bn((()=>[a.serverURL,a.path]),(()=>U()),{immediate:!0})})),Yn((()=>j?.())),(e,t)=>(qr(),Qr("div",oc,[ll(Fo),_.value?ol("v-if",!0):(qr(),Jr(ja,{key:0,onLog:U,onSubmit:F})),rl("div",ac,[rl("div",cc,[g.value?(qr(),Qr("span",{key:0,class:"wl-num",textContent:q(g.value)},null,8,uc)):ol("v-if",!0),sl(" "+q(sn(A).comment),1)]),rl("ul",pc,[(qr(!0),Qr(Nr,null,sr(sn(u),(e=>(qr(),Qr("li",{key:e,class:V([e===w.value?"active":""]),onClick:t=>(e=>{w.value!==e&&(w.value=e,U())})(e)},q(sn(A)[e]),11,dc)))),128))])]),rl("div",hc,[(qr(!0),Qr(Nr,null,sr(k.value,(e=>(qr(),Jr(ic,{key:e.objectId,"root-id":e.objectId,comment:e,reply:_.value,edit:$.value,onLog:U,onReply:P,onEdit:M,onSubmit:F,onStatus:N,onDelete:H,onSticky:D,onLike:B},null,8,["root-id","comment","reply","edit"])))),128))]),"error"===f.value?(qr(),Qr("div",fc,[rl("button",{type:"button",class:"wl-btn",onClick:U,textContent:q(sn(A).refresh)},null,8,gc)])):(qr(),Qr(Nr,{key:2},["loading"===f.value?(qr(),Qr("div",mc,[ll(sn(co),{size:30})])):k.value.length?m.value<v.value?(qr(),Qr("div",yc,[rl("button",{type:"button",class:"wl-btn",onClick:T,textContent:q(sn(A).more)},null,8,wc)])):ol("v-if",!0):(qr(),Qr("div",{key:1,class:"wl-empty",textContent:q(sn(A).sofa)},null,8,vc))],64)),sn(y).copyright?(qr(),Qr("div",bc,[sl(" Powered by "),kc,sl(" v"+q(sn(sc)),1)])):ol("v-if",!0)]))}}),_c=Mo(xc,[["__file","WalineComment.vue"]]);const $c=(e,t)=>{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},Cc=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:l=navigator.language})=>{const i=new AbortController,s=Array.from(document.querySelectorAll(n)),o=e=>{const n=Js(e);return null!==n&&t!==n},a=n=>(({serverURL:e,lang:t,paths:n,signal:r})=>_({serverURL:e,lang:t,paths:n,type:["time"],signal:r}).then((e=>Array.isArray(e)?e:[e])))({serverURL:E(e),paths:n.map((e=>Js(e)||t)),lang:l,signal:i.signal}).then((e=>$c(e,n))).catch(ls);if(r){const n=s.filter((e=>!o(e))),r=s.filter(o);(c={serverURL:E(e),path:t,lang:l},$({...c,type:"time",action:"inc"})).then((e=>$c(new Array(n.length).fill(e),n))),r.length&&a(r)}else a(s);var c;return i.abort.bind(i)};exports.RecentComments=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{const l=Ao(),i=is(e),s=new AbortController;return(({serverURL:e,lang:t,count:n,signal:r,token:l})=>{const i={};return l&&(i.Authorization=`Bearer ${l}`),fetch(`${e}/comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:i}).then((e=>e.json()))})({serverURL:t,count:n,lang:r,signal:s.signal,token:l.value?.token}).then((e=>i&&e.length?(i.innerHTML=`<ul class="wl-recent-list">${e.map((e=>`<li class="wl-recent-item"><a href="${e.url}">${e.nick}</a>:${e.comment}</li>`)).join("")}</ul>`,{comments:e,destroy:()=>{s.abort(),i.innerHTML=""}}):{comments:e,destroy:()=>s.abort()}))},exports.UserList=({el:e,serverURL:t,count:n,locale:l,lang:i=navigator.language,mode:s="list"})=>{const o=is(e),a=new AbortController;return(({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${e}/user?pageSize=${n}&lang=${r}`,{signal:t}).then((e=>e.json())).then((e=>x(e,"user list"))).then((e=>e.data)))({serverURL:t,pageSize:n,lang:i,signal:a.signal}).then((e=>o&&e.length?(l={...b[i]||b[r],..."object"==typeof l?l:{}},o.innerHTML=`<ul class="wl-user-${s}">${e.map(((e,t)=>[`<li class="wl-user-item" aria-label="${e.nick}">`,e.link&&`<a href="${e.link}" target="_blank">`,'<div class="wl-user-avatar">',`<img src="${e.avatar}" alt="${e.nick}">`,`<span class="wl-user-badge">${t+1}</span>`,"</div>",'<div class="wl-user-meta">','<div class="wl-user-name">',e.nick,e.level&&`<span class="wl-badge">${l?l[`level${e.level}`]:`Level ${e.level}`}</span>`,e.label&&`<span class="wl-badge">${e.label}</span>`,"</div>",e.link&&e.link,"</div>",e.link&&"</a>","</li>"].filter((e=>e)).join(""))).join("")}</ul>`,{users:e,destroy:()=>{a.abort(),o.innerHTML=""}}):{users:e,destroy:()=>a.abort()}))},exports.commentCount=Xs,exports.defaultLocales=b,exports.init=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...l})=>{const i=e?is(e):null;if(e&&!i)throw new Error("Option 'el' do not match any domElement!");if(!l.serverURL)throw new Error("Option 'serverURL' is missing!");const s=Vt({...l}),o=Vt({comment:n,pageview:r,path:t}),a=i?oi((()=>Cl(_c,{path:o.path,...s}))):null;a&&a.mount(i);const c=Dn((()=>{o.comment&&Xs({serverURL:s.serverURL,path:o.path,selector:"string"==typeof o.comment?o.comment:void 0})})),u=Dn((()=>{o.pageview&&Cc({serverURL:s.serverURL,path:o.path,selector:"string"==typeof o.pageview?o.pageview:void 0})}));return{el:i,update:({comment:e,pageview:t,path:n=window.location.pathname,...r}={})=>{Object.entries(r).forEach((([e,t])=>{s[e]=t})),o.path=n,void 0!==e&&(o.comment=e),void 0!==t&&(o.pageview=t)},destroy:()=>{a?.unmount(),c(),u()}}},exports.pageviewCount=Cc,exports.version=sc;
2
- //# sourceMappingURL=waline.cjs.map