vanilla-breeze 0.5.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/custom-elements.json +23071 -13897
  2. package/dist/cdn/components/accordion-wc.js +1 -1
  3. package/dist/cdn/components/activity-feed.js +1 -1
  4. package/dist/cdn/components/ai-chat.js +5 -5
  5. package/dist/cdn/components/ai-summary.js +2 -2
  6. package/dist/cdn/components/analytics-panel.js +2 -2
  7. package/dist/cdn/components/audio-player.js +4 -4
  8. package/dist/cdn/components/audio-visualizer.js +2 -2
  9. package/dist/cdn/components/author-index.js +2 -2
  10. package/dist/cdn/components/brand-mark.js +1 -1
  11. package/dist/cdn/components/bread-crumb.js +1 -1
  12. package/dist/cdn/components/calendar-wc.js +2 -2
  13. package/dist/cdn/components/card-list.js +1 -1
  14. package/dist/cdn/components/carousel-wc.js +1 -1
  15. package/dist/cdn/components/change-set.js +1 -1
  16. package/dist/cdn/components/chart-wc.js +56 -32
  17. package/dist/cdn/components/chat-input.js +1 -1
  18. package/dist/cdn/components/chat-window.js +1 -1
  19. package/dist/cdn/components/color-picker.js +1 -1
  20. package/dist/cdn/components/combo-box.js +1 -1
  21. package/dist/cdn/components/command-palette.js +1 -1
  22. package/dist/cdn/components/comment-box.js +51 -50
  23. package/dist/cdn/components/comment-thread.js +50 -49
  24. package/dist/cdn/components/comment-wc.js +1 -1
  25. package/dist/cdn/components/compare-surface.js +1 -1
  26. package/dist/cdn/components/consent-banner.js +1 -1
  27. package/dist/cdn/components/content-lens.js +1 -1
  28. package/dist/cdn/components/content-swap.js +1 -1
  29. package/dist/cdn/components/context-menu.js +1 -1
  30. package/dist/cdn/components/data-table.js +1 -1
  31. package/dist/cdn/components/date-picker.js +1 -1
  32. package/dist/cdn/components/day-view.js +1 -1
  33. package/dist/cdn/components/diagram-wc.js +2 -2
  34. package/dist/cdn/components/drag-surface.js +1 -1
  35. package/dist/cdn/components/drop-down.js +1 -1
  36. package/dist/cdn/components/emoji-picker.js +1 -1
  37. package/dist/cdn/components/flow-diagram.js +1 -1
  38. package/dist/cdn/components/foot-notes.js +1 -1
  39. package/dist/cdn/components/form-field.js +1 -1
  40. package/dist/cdn/components/geo-map.js +170 -54
  41. package/dist/cdn/components/glossary-index.js +1 -1
  42. package/dist/cdn/components/glossary-wc.js +1 -1
  43. package/dist/cdn/components/heading-links.js +1 -1
  44. package/dist/cdn/components/highlight-wc.js +6 -2
  45. package/dist/cdn/components/icon-wc.js +11 -10
  46. package/dist/cdn/components/image-gallery.js +1 -1
  47. package/dist/cdn/components/image-map.js +1 -1
  48. package/dist/cdn/components/include-file.js +1 -1
  49. package/dist/cdn/components/manifest.json +101 -101
  50. package/dist/cdn/components/markdown-editor.js +60 -1
  51. package/dist/cdn/components/markdown-viewer.js +50 -49
  52. package/dist/cdn/components/nav-bar.js +1 -1
  53. package/dist/cdn/components/note-wc.js +6 -2
  54. package/dist/cdn/components/notification-wc.js +33 -32
  55. package/dist/cdn/components/page-info.js +6 -72
  56. package/dist/cdn/components/page-stats.js +1 -1
  57. package/dist/cdn/components/page-toc.js +1 -1
  58. package/dist/cdn/components/page-tools.js +1 -1
  59. package/dist/cdn/components/page-tour.js +1 -38
  60. package/dist/cdn/components/pager-wc.js +1 -1
  61. package/dist/cdn/components/poll-wc.js +1 -1
  62. package/dist/cdn/components/pop-over.js +1 -1
  63. package/dist/cdn/components/popularity-index.js +1 -8
  64. package/dist/cdn/components/print-page.js +1 -1
  65. package/dist/cdn/components/progress-tracker.js +1 -1
  66. package/dist/cdn/components/qr-code.js +1 -1
  67. package/dist/cdn/components/reaction-bar.js +1 -1
  68. package/dist/cdn/components/reader-view.js +25 -25
  69. package/dist/cdn/components/reading-progress.js +1 -1
  70. package/dist/cdn/components/recently-visited.js +1 -26
  71. package/dist/cdn/components/score-card.js +21 -5
  72. package/dist/cdn/components/selection-menu.js +1 -1
  73. package/dist/cdn/components/settings-panel.js +88 -142
  74. package/dist/cdn/components/share-wc.js +2 -2
  75. package/dist/cdn/components/short-cuts.js +1 -1
  76. package/dist/cdn/components/site-index.js +1 -10
  77. package/dist/cdn/components/site-map.js +1 -1
  78. package/dist/cdn/components/site-search.js +1 -51
  79. package/dist/cdn/components/slide-accept.js +1 -1
  80. package/dist/cdn/components/social-embed.js +1 -1
  81. package/dist/cdn/components/split-surface.js +1 -1
  82. package/dist/cdn/components/star-rating.js +1 -1
  83. package/dist/cdn/components/status-wc.js +1 -1
  84. package/dist/cdn/components/stepper-wc.js +1 -1
  85. package/dist/cdn/components/tab-set.js +1 -1
  86. package/dist/cdn/components/text-reader.js +2 -2
  87. package/dist/cdn/components/theme-picker.js +86 -83
  88. package/dist/cdn/components/time-index.js +1 -11
  89. package/dist/cdn/components/time-picker.js +1 -1
  90. package/dist/cdn/components/toast-msg.js +6 -6
  91. package/dist/cdn/components/tool-tip.js +1 -1
  92. package/dist/cdn/components/topic-map.js +6 -3
  93. package/dist/cdn/components/trust-filter.js +1 -3
  94. package/dist/cdn/components/version-switcher.js +5 -5
  95. package/dist/cdn/components/video-player.js +67 -9
  96. package/dist/cdn/components/watch-wc.js +6 -2
  97. package/dist/cdn/components/week-view.js +1 -1
  98. package/dist/cdn/components/youtube-player.js +1 -1
  99. package/dist/cdn/emoji-extended.js +2 -0
  100. package/dist/cdn/fonts/atkinson-hyperlegible-OFL.txt +93 -0
  101. package/dist/cdn/fonts/atkinson-hyperlegible-latin-400-italic.woff2 +0 -0
  102. package/dist/cdn/fonts/atkinson-hyperlegible-latin-400-normal.woff2 +0 -0
  103. package/dist/cdn/fonts/atkinson-hyperlegible-latin-700-italic.woff2 +0 -0
  104. package/dist/cdn/fonts/atkinson-hyperlegible-latin-700-normal.woff2 +0 -0
  105. package/dist/cdn/fonts/atkinson-hyperlegible-latin-ext-400-italic.woff2 +0 -0
  106. package/dist/cdn/fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2 +0 -0
  107. package/dist/cdn/fonts/atkinson-hyperlegible-latin-ext-700-italic.woff2 +0 -0
  108. package/dist/cdn/fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2 +0 -0
  109. package/dist/cdn/fonts/latinmodern-math-GUST-LICENSE.txt +30 -0
  110. package/dist/cdn/fonts/latinmodern-math.woff2 +0 -0
  111. package/dist/cdn/fonts/math-fonts.css +14 -0
  112. package/dist/cdn/packs/effects.full.css +1 -1
  113. package/dist/cdn/packs/effects.full.js +1 -1
  114. package/dist/cdn/packs/fonts-display.full.css +1 -1
  115. package/dist/cdn/packs/fonts-display.theme.css +1 -1
  116. package/dist/cdn/packs/icons.bundle.js +1 -1
  117. package/dist/cdn/packs/icons.full.css +1 -1
  118. package/dist/cdn/packs/icons.theme.css +1 -1
  119. package/dist/cdn/packs/journal.effects.css +1 -1
  120. package/dist/cdn/packs/journal.full.css +1 -1
  121. package/dist/cdn/packs/kawaii.effects.css +1 -1
  122. package/dist/cdn/packs/kawaii.full.css +2 -2
  123. package/dist/cdn/packs/kawaii.full.js +4 -4
  124. package/dist/cdn/packs/kawaii.theme.css +1 -1
  125. package/dist/cdn/packs/manifest.json +17 -17
  126. package/dist/cdn/packs/memphis.full.css +1 -1
  127. package/dist/cdn/packs/memphis.theme.css +1 -1
  128. package/dist/cdn/packs/ui.full.css +1 -1
  129. package/dist/cdn/packs/ui.full.js +89 -86
  130. package/dist/cdn/themes/8bit.css +1 -1
  131. package/dist/cdn/themes/8bit.tokens.json +1 -1
  132. package/dist/cdn/themes/alpha1999-dark.tokens.json +1 -1
  133. package/dist/cdn/themes/alpha1999.css +1 -1
  134. package/dist/cdn/themes/alpha1999.tokens.json +1 -1
  135. package/dist/cdn/themes/art-deco-dark.tokens.json +1 -1
  136. package/dist/cdn/themes/art-deco.css +1 -1
  137. package/dist/cdn/themes/art-deco.tokens.json +1 -1
  138. package/dist/cdn/themes/bauhaus-dark.tokens.json +1 -1
  139. package/dist/cdn/themes/bauhaus.css +1 -1
  140. package/dist/cdn/themes/bauhaus.tokens.json +1 -1
  141. package/dist/cdn/themes/brutalist-dark.tokens.json +1 -1
  142. package/dist/cdn/themes/brutalist.css +1 -1
  143. package/dist/cdn/themes/brutalist.tokens.json +1 -1
  144. package/dist/cdn/themes/catppuccin-frappe.css +1 -1
  145. package/dist/cdn/themes/catppuccin-frappe.tokens.json +1 -1
  146. package/dist/cdn/themes/catppuccin-latte-dark.tokens.json +1 -1
  147. package/dist/cdn/themes/catppuccin-latte.css +1 -1
  148. package/dist/cdn/themes/catppuccin-latte.tokens.json +1 -1
  149. package/dist/cdn/themes/catppuccin-macchiato.css +1 -1
  150. package/dist/cdn/themes/catppuccin-macchiato.tokens.json +1 -1
  151. package/dist/cdn/themes/catppuccin-mocha.css +1 -1
  152. package/dist/cdn/themes/catppuccin-mocha.tokens.json +1 -1
  153. package/dist/cdn/themes/classic-dark.tokens.json +1 -1
  154. package/dist/cdn/themes/classic.css +1 -1
  155. package/dist/cdn/themes/classic.tokens.json +1 -1
  156. package/dist/cdn/themes/claymorphism-dark.tokens.json +1 -1
  157. package/dist/cdn/themes/claymorphism.css +1 -1
  158. package/dist/cdn/themes/claymorphism.tokens.json +2 -1
  159. package/dist/cdn/themes/clinical-dark.tokens.json +1 -1
  160. package/dist/cdn/themes/clinical.css +1 -1
  161. package/dist/cdn/themes/clinical.tokens.json +1 -1
  162. package/dist/cdn/themes/cottagecore-dark.tokens.json +1 -1
  163. package/dist/cdn/themes/cottagecore.css +1 -1
  164. package/dist/cdn/themes/cottagecore.tokens.json +1 -1
  165. package/dist/cdn/themes/cyber.css +1 -1
  166. package/dist/cdn/themes/cyber.tokens.json +1 -1
  167. package/dist/cdn/themes/dawn-dark.tokens.json +1 -1
  168. package/dist/cdn/themes/dawn.css +1 -1
  169. package/dist/cdn/themes/dawn.tokens.json +1 -1
  170. package/dist/cdn/themes/dracula.css +1 -1
  171. package/dist/cdn/themes/dracula.tokens.json +1 -1
  172. package/dist/cdn/themes/dusk.css +1 -1
  173. package/dist/cdn/themes/dusk.tokens.json +1 -1
  174. package/dist/cdn/themes/editorial-dark.tokens.json +1 -1
  175. package/dist/cdn/themes/editorial.css +1 -1
  176. package/dist/cdn/themes/editorial.tokens.json +1 -1
  177. package/dist/cdn/themes/financial-dark.tokens.json +1 -1
  178. package/dist/cdn/themes/financial.css +1 -1
  179. package/dist/cdn/themes/financial.tokens.json +1 -1
  180. package/dist/cdn/themes/genai.css +1 -1
  181. package/dist/cdn/themes/genai.tokens.json +1 -1
  182. package/dist/cdn/themes/glassmorphism-dark.tokens.json +1 -1
  183. package/dist/cdn/themes/glassmorphism.css +1 -1
  184. package/dist/cdn/themes/glassmorphism.tokens.json +1 -1
  185. package/dist/cdn/themes/government-dark.tokens.json +1 -1
  186. package/dist/cdn/themes/government.css +1 -1
  187. package/dist/cdn/themes/government.tokens.json +1 -1
  188. package/dist/cdn/themes/gruvbox-dark.tokens.json +1 -1
  189. package/dist/cdn/themes/gruvbox.css +1 -1
  190. package/dist/cdn/themes/gruvbox.tokens.json +1 -1
  191. package/dist/cdn/themes/high-noon-dark.tokens.json +1 -1
  192. package/dist/cdn/themes/high-noon.css +1 -1
  193. package/dist/cdn/themes/high-noon.tokens.json +1 -1
  194. package/dist/cdn/themes/journal-dark.tokens.json +4 -2
  195. package/dist/cdn/themes/journal.css +1 -1
  196. package/dist/cdn/themes/journal.tokens.json +4 -2
  197. package/dist/cdn/themes/kawaii-dark.tokens.json +1 -1
  198. package/dist/cdn/themes/kawaii.css +1 -1
  199. package/dist/cdn/themes/kawaii.tokens.json +1 -1
  200. package/dist/cdn/themes/magna-dark.tokens.json +1 -1
  201. package/dist/cdn/themes/magna.css +1 -1
  202. package/dist/cdn/themes/magna.tokens.json +1 -1
  203. package/dist/cdn/themes/manifest.json +44 -44
  204. package/dist/cdn/themes/midnight.css +1 -1
  205. package/dist/cdn/themes/midnight.tokens.json +1 -1
  206. package/dist/cdn/themes/minimal-dark.tokens.json +1 -1
  207. package/dist/cdn/themes/minimal.css +1 -1
  208. package/dist/cdn/themes/minimal.tokens.json +1 -1
  209. package/dist/cdn/themes/modern-dark.tokens.json +1 -1
  210. package/dist/cdn/themes/modern.css +1 -1
  211. package/dist/cdn/themes/modern.tokens.json +1 -1
  212. package/dist/cdn/themes/nes-dark.tokens.json +7 -2
  213. package/dist/cdn/themes/nes.css +1 -1
  214. package/dist/cdn/themes/nes.tokens.json +1 -1
  215. package/dist/cdn/themes/neumorphism-dark.tokens.json +1 -1
  216. package/dist/cdn/themes/neumorphism.css +1 -1
  217. package/dist/cdn/themes/neumorphism.tokens.json +1 -1
  218. package/dist/cdn/themes/nord-dark.tokens.json +1 -1
  219. package/dist/cdn/themes/nord.css +1 -1
  220. package/dist/cdn/themes/nord.tokens.json +1 -1
  221. package/dist/cdn/themes/organic-dark.tokens.json +1 -1
  222. package/dist/cdn/themes/organic.css +1 -1
  223. package/dist/cdn/themes/organic.tokens.json +1 -1
  224. package/dist/cdn/themes/rose-pine-dark.tokens.json +1 -1
  225. package/dist/cdn/themes/rose-pine.css +1 -1
  226. package/dist/cdn/themes/rose-pine.tokens.json +1 -1
  227. package/dist/cdn/themes/rough-dark.tokens.json +1 -1
  228. package/dist/cdn/themes/rough.css +1 -1
  229. package/dist/cdn/themes/rough.tokens.json +1 -1
  230. package/dist/cdn/themes/solarized-dark.tokens.json +1 -1
  231. package/dist/cdn/themes/solarized.css +1 -1
  232. package/dist/cdn/themes/solarized.tokens.json +1 -1
  233. package/dist/cdn/themes/startup-dark.tokens.json +1 -1
  234. package/dist/cdn/themes/startup.css +1 -1
  235. package/dist/cdn/themes/startup.tokens.json +1 -1
  236. package/dist/cdn/themes/super2026-dark.tokens.json +1 -1
  237. package/dist/cdn/themes/super2026.css +1 -1
  238. package/dist/cdn/themes/super2026.tokens.json +1 -1
  239. package/dist/cdn/themes/swiss-dark.tokens.json +1 -1
  240. package/dist/cdn/themes/swiss.css +1 -1
  241. package/dist/cdn/themes/swiss.tokens.json +1 -1
  242. package/dist/cdn/themes/terminal.css +1 -1
  243. package/dist/cdn/themes/terminal.tokens.json +1 -1
  244. package/dist/cdn/themes/tokyo-night-dark.tokens.json +1 -1
  245. package/dist/cdn/themes/tokyo-night.css +1 -1
  246. package/dist/cdn/themes/tokyo-night.tokens.json +1 -1
  247. package/dist/cdn/themes/vaporwave-dark.tokens.json +1 -1
  248. package/dist/cdn/themes/vaporwave.css +1 -1
  249. package/dist/cdn/themes/vaporwave.tokens.json +1 -1
  250. package/dist/cdn/themes/win9x-dark.tokens.json +6 -2
  251. package/dist/cdn/themes/win9x.css +1 -1
  252. package/dist/cdn/themes/win9x.tokens.json +3 -1
  253. package/dist/cdn/vanilla-breeze-autoload.js +187 -297
  254. package/dist/cdn/vanilla-breeze-charts.css +1 -1
  255. package/dist/cdn/vanilla-breeze-charts.js +56 -32
  256. package/dist/cdn/vanilla-breeze-core.css +1 -1
  257. package/dist/cdn/vanilla-breeze-core.js +166 -262
  258. package/dist/cdn/vanilla-breeze-dev.js +1 -1
  259. package/dist/cdn/vanilla-breeze-extras.js +272 -130
  260. package/dist/cdn/vanilla-breeze.css +1 -1
  261. package/dist/cdn/vanilla-breeze.js +536 -621
  262. package/dist/cdn/view-transitions.css +2 -0
  263. package/package.json +15 -7
@@ -1,42 +1,35 @@
1
- var nh=Object.defineProperty;var w=(e,t)=>()=>(e&&(t=e(e=0)),t);var E=(e,t)=>{for(var i in t)nh(e,i,{get:t[i],enumerable:!0})};function dh(){let e=globalThis.localStorage;if(!e)throw new Error("VBStore: localStorage is not available in this environment");return{async getRaw(t){return e.getItem(t)},async setRaw(t,i){e.setItem(t,i)},async removeRaw(t){e.removeItem(t)},async keys(t){let i=[];for(let s=0;s<e.length;s++){let n=e.key(s);n&&n.startsWith(t)&&i.push(n)}return i}}}function tt(){return Se[xe]||(Se[xe]=dh()),Se[xe]}function Bi(e,t){if(typeof e!="string"||!e)throw new TypeError("VBStore: namespace must be a non-empty string");if(typeof t!="string"||!t)throw new TypeError("VBStore: key must be a non-empty string");return`vb:${e}:${t}`}function za(e){if(typeof e!="string"||!e)throw new TypeError("VBStore: namespace must be a non-empty string");return`vb:${e}:`}function Va(e){try{let t=JSON.parse(e);if(t&&typeof t=="object"&&typeof t.timestamp=="number")return t}catch{}return null}var xe,Se,k,et=w(()=>{xe="__vbStoreBackend",Se=globalThis;k={configure(e={}){Se[xe]=e.backend??null},async set(e,t,i){let s={data:i,timestamp:Date.now()};await tt().setRaw(Bi(e,t),JSON.stringify(s))},async get(e,t,i){let s=await tt().getRaw(Bi(e,t));if(s==null)return null;let n=Va(s);return!n||i?.maxAge!=null&&Date.now()-n.timestamp>i.maxAge?null:n.data},async remove(e,t){await tt().removeRaw(Bi(e,t))},async list(e){let t=za(e),i=await tt().keys(t),s=[];for(let n of i){let r=await tt().getRaw(n);if(r==null)continue;let a=Va(r);a&&s.push({key:n.slice(t.length),data:a.data,timestamp:a.timestamp})}return s},async clear(e){let t=za(e),i=await tt().keys(t);for(let s of i)await tt().removeRaw(s)},async clearAll(){let e=await tt().keys("vb:");for(let t of e)await tt().removeRaw(t)},async setMany(e,t){for(let[i,s]of t)await k.set(e,i,s)}};if(typeof window<"u"){let e=window.VB??(window.VB={});e.store??=k}});var no={};E(no,{copyRich:()=>wh,copyText:()=>mt,initCopyButtons:()=>Qi,pasteFromClipboard:()=>so});async function mt(e,t={}){if(e==null||e==="")return!1;let{button:i,announceMessage:s=io,duration:n=1500}=t;try{await navigator.clipboard.writeText(e)}catch{return!1}return es({button:i,duration:n,announceMessage:s,eventDetail:{text:e}}),!0}async function wh(e,t={}){let{text:i,html:s,blob:n}=e??{};if(!i&&!s&&!n)return!1;let{button:r,announceMessage:a=io,duration:o=1500}=t;if(typeof ClipboardItem<"u"&&typeof navigator.clipboard?.write=="function"){let l={};i&&(l["text/plain"]=new Blob([i],{type:"text/plain"})),s&&(l["text/html"]=new Blob([s],{type:"text/html"})),n&&(l[n.type]=n);try{return await navigator.clipboard.write([new ClipboardItem(l)]),es({button:r,duration:o,announceMessage:a,eventDetail:{payload:e}}),!0}catch{}}return i?mt(i,t):!1}function es({button:e,duration:t,announceMessage:i,eventDetail:s,state:n="copied",eventName:r="copy"}){if(e){e.dataset.state=n;let a=Zi.get(e);a&&clearTimeout(a),Zi.set(e,setTimeout(()=>{delete e.dataset.state,Zi.delete(e)},t)),e.dispatchEvent(new CustomEvent(r,{bubbles:!0,detail:s}))}Eh(i,e??document.body)}async function so(e,t={}){let{button:i,announceMessage:s=vh,duration:n=1500}=t,r;try{r=await navigator.clipboard.readText()}catch{return null}return e&&("value"in e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement)?e.value=r:e.textContent=r,e.dispatchEvent(new Event("input",{bubbles:!0}))),es({button:i,duration:n,announceMessage:s,eventDetail:{text:r},state:"pasted",eventName:"paste"}),r}function Qi(e=document){e.querySelectorAll(Ji).forEach(ts)}function ts(e){e.hasAttribute("data-copy-init")||(e.setAttribute("data-copy-init",""),e.addEventListener("click",()=>{if(e.dataset.pasteTarget){let i=document.querySelector(e.dataset.pasteTarget);if(!i)return;so(i,{button:e});return}let t=Ah(e);t&&mt(t,{button:e})}))}function Ah(e){if(e.dataset.copy)return e.dataset.copy;if(e.dataset.copyTarget){let t=document.querySelector(e.dataset.copyTarget);if(!t)return"";let i=e.dataset.copyAttr;return i?t.getAttribute(i)??"":t.textContent??""}return""}function Eh(e,t){let i=document.createElement("div");i.setAttribute("role","status"),i.setAttribute("aria-live","polite"),i.className="visually-hidden",i.textContent=e,t.appendChild(i),setTimeout(()=>i.remove(),1e3)}var Ji,io,vh,Zi,kh,Vt=w(()=>{Ji="[data-copy], [data-copy-target], [data-paste-target]",io="Copied to clipboard",vh="Pasted from clipboard",Zi=new WeakMap;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Qi()):Qi();kh=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Ji)&&ts(s),s.querySelectorAll(Ji).forEach(n=>ts(n))}});kh.observe(document.documentElement,{childList:!0,subtree:!0})});function ro(e){let t=nt?Ut.mac:Ut.other;return e.split("+").map(i=>{let s=i.trim().toLowerCase();return t[s]??s.toUpperCase()}).join(nt?"":"+")}function ao(e){let t=e.toLowerCase().split("+").map(s=>s.trim());return{key:t.pop()??"",meta:t.includes("meta")||t.includes("cmd"),ctrl:t.includes("ctrl"),shift:t.includes("shift"),alt:t.includes("alt")}}function oo(e,t){if(e.key.toLowerCase()!==t.key)return!1;let i,s;return nt?(i=t.meta,s=t.ctrl):(i=!1,s=t.meta||t.ctrl),!(i!==e.metaKey||s!==e.ctrlKey||t.shift!==e.shiftKey||t.alt!==e.altKey)}var nt,Ut,Ne=w(()=>{nt=/Mac|iPhone|iPad|iPod/.test(navigator.platform??""),Ut={mac:{meta:"\u2318",cmd:"\u2318",alt:"\u2325",shift:"\u21E7",ctrl:"\u2303"},other:{meta:"Ctrl",cmd:"Ctrl",alt:"Alt",shift:"Shift",ctrl:"Ctrl"}}});function Sh(e){let t=xh.has(e.target.tagName)||e.target.isContentEditable;for(let i of Tt)if(!(t&&!i.global)&&oo(e,i.descriptor)){e.preventDefault(),i.callback(e);return}}function Ch(){co||(document.addEventListener("keydown",Sh),co=!0)}function rt(e,t,i={}){Ch();let s=ao(e),n={combo:e,descriptor:s,callback:t,global:i.global===!0};return Tt.find(a=>a.combo===e)&&console.warn(`[hotkey-bind] Shortcut "${e}" already bound. Last-connected-wins.`),Tt.unshift(n),function(){let o=Tt.indexOf(n);o!==-1&&Tt.splice(o,1)}}function lo(){return Tt.map(e=>e.combo)}var xh,Tt,co,Wt=w(()=>{Ne();xh=new Set(["INPUT","TEXTAREA","SELECT"]),Tt=[],co=!1});function Gt(e){if(!e||typeof e!="string")return"";let t=document.createElement("template");return t.innerHTML=e,t.content.querySelectorAll("script, iframe, object, embed, form, base, link, meta, noscript").forEach(n=>n.remove()),t.content.querySelectorAll("*").forEach(n=>{for(let r of[...n.attributes]){if(r.name.startsWith("on")){n.removeAttribute(r.name);continue}if(["href","src","action","formaction","xlink:href"].includes(r.name)){let a=r.value.trim().toLowerCase();(a.startsWith("javascript:")||a.startsWith("data:text/html"))&&n.removeAttribute(r.name);continue}(r.name==="srcdoc"||r.name==="data"&&n.tagName==="OBJECT")&&n.removeAttribute(r.name)}}),t.innerHTML}var _e=w(()=>{});var ds={};E(ds,{addDialogDismiss:()=>xo,addFlickListener:()=>Ao,addLongPress:()=>ko,addPullToRefresh:()=>jh,addSwipeListener:()=>wo,haptic:()=>qe,initGestures:()=>So,makeSwipeable:()=>Eo});function wo(e,t={}){let i=t.threshold??50,s=t.restraint??100,n=t.timeout??300,r=t.velocity??.5,a=t.minFlickDistance??10,o,c,l;function u(h){h.isPrimary&&(o=h.clientX,c=h.clientY,l=Date.now())}function d(h){if(!h.isPrimary)return;let p=h.clientX-o,f=h.clientY-c,m=Date.now()-l;if(m>n)return;let v=Math.abs(p),A=Math.abs(f),L=Math.max(v,A),N=m>0?L/m:0,K=N>=r&&L>=a,P;if((v>=i||K&&v>A)&&A<=s?P=p<0?"left":"right":(A>=i||K&&A>v)&&v<=s&&(P=f<0?"up":"down"),P){let X=P==="left"||P==="right"?v:A;e.dispatchEvent(new CustomEvent(`swipe-${P}`,{bubbles:!0,detail:{distance:X,duration:m,velocity:N,flick:K}}))}}return e.addEventListener("pointerdown",u,{passive:!0}),e.addEventListener("pointerup",d,{passive:!0}),()=>{e.removeEventListener("pointerdown",u),e.removeEventListener("pointerup",d)}}function Ao(e,t={}){let i=t.minDistance??10,s=t.velocity??.6,n=t.timeout??250,r=t.restraint??80,a,o,c;function l(d){d.isPrimary&&(a=d.clientX,o=d.clientY,c=Date.now())}function u(d){if(!d.isPrimary)return;let h=d.clientX-a,p=d.clientY-o,f=Date.now()-c;if(f===0||f>n)return;let m=Math.abs(h),v=Math.abs(p),A=Math.max(m,v);if(A<i)return;let L=A/f;if(L<s)return;let N;if(m>v&&v<=r?N=h<0?"left":"right":v>m&&m<=r&&(N=p<0?"up":"down"),N){let K=N==="left"||N==="right"?m:v;e.dispatchEvent(new CustomEvent(`swipe-${N}`,{bubbles:!0,detail:{distance:K,duration:f,velocity:L,flick:!0}}))}}return e.addEventListener("pointerdown",l,{passive:!0}),e.addEventListener("pointerup",u,{passive:!0}),()=>{e.removeEventListener("pointerdown",l),e.removeEventListener("pointerup",u)}}function Eo(e,t={}){let i=t.threshold??100,s=t.direction??"horizontal",n=t.removeOnDismiss??!0,r=s==="horizontal",a=0,o=0,c=!1;function l(m){!m.isPrimary||e.hasAttribute("data-dismissed")||(m.preventDefault(),c=!0,a=r?m.clientX:m.clientY,o=0,e.setPointerCapture(m.pointerId),e.setAttribute("data-swiping",""))}function u(m){if(!c||!m.isPrimary)return;o=(r?m.clientX:m.clientY)-a;let A=1-Math.min(Math.abs(o)/i,1)*.5;r?e.style.transform=`translateX(${o}px)`:e.style.transform=`translateY(${o}px)`,e.style.opacity=String(A)}function d(m){!c||!m.isPrimary||(c=!1,e.releasePointerCapture(m.pointerId),e.removeAttribute("data-swiping"),Math.abs(o)>=i?p(o>0?"right":"left"):f())}function h(m){!c||!m.isPrimary||(c=!1,e.releasePointerCapture(m.pointerId),e.removeAttribute("data-swiping"),f())}function p(m){let v=m==="right"?"100%":"-100%";e.style.transition="transform 0.2s ease-out, opacity 0.2s ease-out",e.style.transform=r?`translateX(${v})`:`translateY(${v})`,e.style.opacity="0",e.setAttribute("data-dismissed",""),qe.dismiss(),e.dispatchEvent(new CustomEvent("swipe-dismiss",{bubbles:!0,detail:{direction:m,distance:Math.abs(o)}})),n&&e.addEventListener("transitionend",()=>e.remove(),{once:!0})}function f(){e.style.transition="transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease",e.style.transform="",e.style.opacity="",e.addEventListener("transitionend",()=>{e.style.transition=""},{once:!0})}return e.addEventListener("pointerdown",l),e.addEventListener("pointermove",u),e.addEventListener("pointerup",d),e.addEventListener("pointercancel",h),()=>{e.removeEventListener("pointerdown",l),e.removeEventListener("pointermove",u),e.removeEventListener("pointerup",d),e.removeEventListener("pointercancel",h)}}function jh(e,t,i={}){let s=i.threshold??70,n=i.maxPull??120,r=document.createElement("div");r.setAttribute("data-pull-indicator",""),r.setAttribute("aria-hidden","true");let a=document.createElement("div");a.setAttribute("data-pull-spinner",""),r.appendChild(a),e.prepend(r);let o=0,c=!1,l=!1;function u(v){!v.isPrimary||l||e.scrollTop<=0&&(o=v.clientY,c=!0)}function d(v){if(!c||!v.isPrimary||l)return;let A=v.clientY-o;if(A<=0){r.style.transform="",r.style.opacity="";return}let L=Math.min(A,n),N=L/s;r.style.transform=`translateY(${L}px)`,r.style.opacity=String(Math.min(N,1)),N>=1?r.setAttribute("data-pull-ready",""):r.removeAttribute("data-pull-ready")}function h(v){!c||!v.isPrimary||(c=!1,r.hasAttribute("data-pull-ready")&&!l?f():m())}function p(v){!c||!v.isPrimary||(c=!1,m())}async function f(){l=!0,r.removeAttribute("data-pull-ready"),r.setAttribute("data-pull-loading",""),r.style.transform=`translateY(${s}px)`,r.style.opacity="1";try{await t()}finally{l=!1,r.removeAttribute("data-pull-loading"),m()}}function m(){r.style.transition="transform 0.3s ease, opacity 0.3s ease",r.style.transform="",r.style.opacity="",r.removeAttribute("data-pull-ready"),r.addEventListener("transitionend",()=>{r.style.transition=""},{once:!0})}return e.addEventListener("pointerdown",u,{passive:!0}),e.addEventListener("pointermove",d,{passive:!0}),e.addEventListener("pointerup",h,{passive:!0}),e.addEventListener("pointercancel",p,{passive:!0}),()=>{e.removeEventListener("pointerdown",u),e.removeEventListener("pointermove",d),e.removeEventListener("pointerup",h),e.removeEventListener("pointercancel",p),r.remove()}}function ko(e,t,i={}){let s=i.duration??500,n=i.hapticFeedback??!0,r=i.blockContextMenu??!0,a=null;function o(u){u.isPrimary&&(a=setTimeout(()=>{n&&qe.tap(),t(u),a=null},s))}function c(){a&&(clearTimeout(a),a=null)}function l(u){r&&u.preventDefault()}return e.addEventListener("pointerdown",o,{passive:!0}),e.addEventListener("pointermove",c,{passive:!0}),e.addEventListener("pointerup",c,{passive:!0}),e.addEventListener("pointercancel",c,{passive:!0}),e.addEventListener("contextmenu",l),()=>{c(),e.removeEventListener("pointerdown",o),e.removeEventListener("pointermove",c),e.removeEventListener("pointerup",c),e.removeEventListener("pointercancel",c),e.removeEventListener("contextmenu",l)}}function xo(e,t={}){let i=t.threshold??80,s=0,n=0,r=!1;function a(h){if(!h.isPrimary||!e.open)return;let p=h.target;p.closest("a, button, input, select, textarea, [contenteditable]")&&!p.closest("header")||(r=!0,s=h.clientY,n=0,e.setPointerCapture(h.pointerId),e.style.transition="none")}function o(h){if(!r||!h.isPrimary)return;if(n=h.clientY-s,n<=0){e.style.transform="",e.style.opacity="";return}let f=1-Math.min(n/i,1)*.4;e.style.transform=`translateY(${n}px)`,e.style.opacity=String(f)}function c(h){!r||!h.isPrimary||(r=!1,e.releasePointerCapture(h.pointerId),n>=i?u():d())}function l(h){!r||!h.isPrimary||(r=!1,e.releasePointerCapture(h.pointerId),d())}function u(){e.style.transition="transform 0.2s ease-out, opacity 0.2s ease-out",e.style.transform="translateY(100%)",e.style.opacity="0",qe.dismiss(),e.addEventListener("transitionend",()=>{e.style.transition="",e.style.transform="",e.style.opacity="",e.close("dismiss")},{once:!0})}function d(){e.style.transition="transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease",e.style.transform="",e.style.opacity="",e.addEventListener("transitionend",()=>{e.style.transition=""},{once:!0})}return e.addEventListener("pointerdown",a),e.addEventListener("pointermove",o),e.addEventListener("pointerup",c),e.addEventListener("pointercancel",l),()=>{e.removeEventListener("pointerdown",a),e.removeEventListener("pointermove",o),e.removeEventListener("pointerup",c),e.removeEventListener("pointercancel",l)}}function So(e=document){let t=[];for(let i of e.querySelectorAll('[data-gesture="swipe"]'))t.push(wo(i));for(let i of e.querySelectorAll('[data-gesture="flick"]'))t.push(Ao(i));for(let i of e.querySelectorAll('[data-gesture="dismiss"]'))t.push(Eo(i));for(let i of e.querySelectorAll('[data-gesture="long-press"]'))t.push(ko(i,()=>{i.dispatchEvent(new CustomEvent("long-press",{bubbles:!0}))}));for(let i of e.querySelectorAll('dialog[data-gesture="dismiss-down"]'))t.push(xo(i));return()=>t.forEach(i=>i())}var qe,us,hs=w(()=>{qe={tap:()=>navigator.vibrate?.(8),confirm:()=>navigator.vibrate?.([8,40,8]),error:()=>navigator.vibrate?.([30,60,30]),dismiss:()=>navigator.vibrate?.(15)};us=typeof document<"u"?document.documentElement:null;(!us||!us.hasAttribute("data-vb-gestures-init"))&&(us?.setAttribute("data-vb-gestures-init",""),So())});var ze={};E(ze,{destroyStickyManager:()=>xp,initStickyManager:()=>kp});function yt(){let e=document.documentElement;if(!e.hasAttribute("data-sticky"))return;let t=document.querySelector("header");t&&!t.hasAttribute("data-sticky")&&(t.dataset.sticky="",Ds=!0);let i=document.querySelector("header[data-sticky]"),s=i?i.getBoundingClientRect().height:0;e.style.setProperty("--sticky-offset",`${s}px`)}function Fo(){yt()}function kp(){if(He)return;He=!0,yt(),requestAnimationFrame(yt),document.fonts?.ready?.then(yt),window.addEventListener("resize",yt,{passive:!0}),document.addEventListener("toggle",Fo,!0),_s=new ResizeObserver(yt);let e=document.querySelector("header[data-sticky]");e&&_s.observe(e)}function xp(){if(He){if(He=!1,window.removeEventListener("resize",yt),document.removeEventListener("toggle",Fo,!0),_s?.disconnect(),Ds){let e=document.querySelector("header[data-sticky]");e&&delete e.dataset.sticky,Ds=!1}document.documentElement.style.removeProperty("--sticky-offset")}}var He,_s,Ds,Ve=w(()=>{He=!1,Ds=!1});var Ro={};E(Ro,{SoundManager:()=>Sp});var Po,$s,Sp,jo=w(()=>{Po="vb-sound",$s={enabled:!1,volume:.5},Sp={_ctx:null,_enabled:!1,_volume:.5,_initialized:!1,init(){if(this._initialized)return this;let e=this._load();return this._enabled=e.enabled,this._volume=e.volume,this._initialized=!0,this},_getContext(){return this._ctx||(this._ctx=new(window.AudioContext||window.webkitAudioContext)),this._ctx.state==="suspended"&&this._ctx.resume(),this._ctx},_load(){try{let e=localStorage.getItem(Po);return e?{...$s,...JSON.parse(e)}:{...$s}}catch{return{...$s}}},_save(e){try{let t=this._load();localStorage.setItem(Po,JSON.stringify({...t,...e}))}catch{}},_playTone(e,t,i="sine"){if(!this._enabled)return;let s=this._getContext(),n=s.createOscillator(),r=s.createGain();n.connect(r),r.connect(s.destination),n.frequency.value=e,n.type=i,r.gain.value=this._volume*.3,n.start(),r.gain.exponentialRampToValueAtTime(.01,s.currentTime+t),n.stop(s.currentTime+t)},enable(){this._enabled=!0,this._save({enabled:!0}),this.play("click")},disable(){this._enabled=!1,this._save({enabled:!1})},toggle(){return this._enabled?this.disable():this.enable(),this._enabled},isEnabled(){return this._enabled},setVolume(e){this._volume=Math.max(0,Math.min(1,e)),this._save({volume:this._volume})},getVolume(){return this._volume},play(e){if(this._enabled)switch(e){case"click":this._playTone(800,.1);break;case"success":this._playTone(523,.1),setTimeout(()=>this._playTone(659,.1),100),setTimeout(()=>this._playTone(784,.15),200);break;case"error":this._playTone(200,.15,"sawtooth"),setTimeout(()=>this._playTone(180,.2,"sawtooth"),150);break;case"notification":this._playTone(880,.1),setTimeout(()=>this._playTone(1100,.15),100);break;case"soft":this._playTone(600,.05);break;case"tick":this._playTone(1200,.02,"square");break}},getState(){return{enabled:this._enabled,volume:this._volume}}}});function Cp(e,t){if(!t)return e;let i=e??new URLSearchParams;for(let[s,n]of Object.entries(t))n!=null&&i.set(s,String(n));return i}async function Tp(e){if((e.headers.get("content-type")??"").includes("application/json"))try{return await e.json()}catch{return null}try{return await e.text()}catch{return null}}function Ho(e){return e.endsWith("/")?e.slice(0,-1):e}var Qt,te,zo,qs,I,R,$t=w(()=>{Qt="__vbServiceConfig",te=globalThis,zo=()=>({baseUrl:"/go",headers:{},services:{}});te[Qt]||(te[Qt]=zo());qs=()=>te[Qt],I=class extends Error{constructor(t,i,s,n){super(`VBService(${s}): ${t} ${n}`),this.name="VBServiceError",this.status=t,this.body=i,this.role=s,this.path=n}};R=class e{static configure(t={}){let i=qs();te[Qt]={baseUrl:t.baseUrl??i.baseUrl,headers:{...i.headers,...t.headers??{}},services:{...i.services,...t.services??{}}}}static resolve(t){if(!t||typeof t!="string")throw new TypeError("VBService: role must be a non-empty string");let i=qs();return i.services[t]?Ho(i.services[t]):i.baseUrl?`${Ho(i.baseUrl)}/${t}`:`/go/${t}`}static _reset(){te[Qt]=zo()}constructor(t){if(!t||typeof t!="string")throw new TypeError("VBService: role must be a non-empty string");this.role=t}async get(t,i){return this.#e("GET",t,{params:i})}async post(t,i){return this.#e("POST",t,{body:i})}async patch(t,i){return this.#e("PATCH",t,{body:i})}async delete(t){return this.#e("DELETE",t,{})}async#e(t,i,s){let n=e.resolve(this.role),r=i?i.startsWith("/")?i:`/${i}`:"",a=new URL(`${n}${r}`,globalThis.location?.origin??"http://localhost"),o=Cp(a.searchParams,s.params);o&&(a.search=o.toString());let c={method:t,headers:{...qs().headers}};s.body!==void 0&&(c.body=JSON.stringify(s.body),c.headers["content-type"]="application/json");let l=a.toString(),u=await fetch(l,c),d=await Tp(u);if(!u.ok)throw new I(u.status,d,this.role,`${r||"/"}`);return d}};if(typeof window<"u"){let e=window.VB??(window.VB={});e.service??=R,e.ServiceError??=I}});var Xo={};E(Xo,{HighlightController:()=>Ue,findRangeFromOffsets:()=>wt,fnv1a:()=>ie,initHighlights:()=>We});function ie(e){let t=2166136261;for(let i=0;i<e.length;i++)t^=e.charCodeAt(i),t=Math.imul(t,16777619);return(t>>>0).toString(36)}function _p(){return"hn-"+crypto.randomUUID().slice(0,8)}function Uo(e){return typeof e=="string"&&Dp.test(e)}function Ko(){if(At.size===0){vt&&(document.adoptedStyleSheets=document.adoptedStyleSheets.filter(t=>t!==vt),vt=null);return}vt||(vt=new CSSStyleSheet,document.adoptedStyleSheets=[...document.adoptedStyleSheets,vt]);let e=[...At.keys()].map(t=>`::highlight(hn-${t}) { background-color: var(--highlight-${t}); text-decoration-line: underline; text-decoration-color: var(--highlight-${t}); text-underline-offset: 2px; }`).join(`
2
- `);vt.replaceSync(e)}function $p(e){for(let t of e)At.set(t,(At.get(t)??0)+1);Ko()}function Ip(e){for(let t of e){let i=(At.get(t)??0)-1;i>0?At.set(t,i):At.delete(t)}Ko()}function qp(e){let t=ee.get(e),i=t?[...t.values()].flat():[];i.length===0?(CSS.highlights.delete(`hn-${e}`),ee.delete(e)):CSS.highlights.set(`hn-${e}`,new Highlight(...i))}function Wo(e,t){let i=new Set(t.keys());for(let[s,n]of ee)n.has(e)&&i.add(s);for(let s of i){let n=t.get(s)??[],r=ee.get(s);n.length?(r||ee.set(s,r=new Map),r.set(e,n)):r?.delete(e),qp(s)}}function Os(e){lt||(lt=document.createElement("div"),lt.setAttribute("aria-live","polite"),lt.setAttribute("aria-atomic","true"),lt.className="hn-sr-only",document.body.appendChild(lt)),lt.textContent="",requestAnimationFrame(()=>{lt.textContent=e})}function Go(e,t,i){let s=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=0;for(;s.nextNode();){if(s.currentNode===t)return n+i;n+=(s.currentNode.textContent??"").length}return-1}function wt(e,t,i){let s=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=0,r=null,a=0,o=null,c=0;for(;s.nextNode();){let l=s.currentNode,u=(l.textContent??"").length;if(!r&&n+u>t&&(r=l,a=t-n),n+u>=i){o=l,c=i-n;break}n+=u}if(!r||!o)return null;try{let l=document.createRange();return l.setStart(r,Math.min(a,(r.textContent??"").length)),l.setEnd(o,Math.min(c,(o.textContent??"").length)),l}catch{return null}}function We(e){if(Fs.has(e))return Fs.get(e);let t=new Ue(e);return Fs.set(e,t),t}function Yo(e=document){e.querySelectorAll(Ps).forEach(t=>{t.hasAttribute("data-highlights-init")||We(t)})}var Ps,Vo,Mp,Np,Dp,vt,At,ee,lt,Ue,Fs,Bp,Rs=w(()=>{et();Ps="[data-highlights]",Vo="highlights",Mp=["yellow","green","blue","pink"],Np=typeof CSS<"u"&&"highlights"in CSS;Dp=/^[a-z0-9_-]+$/i;vt=null,At=new Map,ee=new Map;lt=null;Ue=class{#e;#t;#i;#s;#r=[];#n=!Np;#a;#o;#l=!1;#c=[];constructor(t){this.#e=t,this.#s=t.hasAttribute("data-highlights-readonly");let i=t.dataset.highlights;this.#t=i&&i!==""?i:location.pathname;let s=t.dataset.highlightsColors,n=s?s.split(",").map(r=>r.trim()).filter(Uo):[...Mp];this.#i=[...new Set(n)],this.#n||$p(this.#i),this.#u(),this.#s||(this.#a=this.#p.bind(this),this.#o=this.#m.bind(this),t.addEventListener("pointerup",this.#a),t.addEventListener("click",this.#o)),t.setAttribute("data-highlights-init",""),this.#d().then(()=>{this.#l||this.#u()})}get colors(){return[...this.#i]}get element(){return this.#e}getHighlights(){return this.#r.map(t=>({...t}))}removeHighlight(t){let i=this.#r.findIndex(s=>s.id===t);i<0||(this.#r.splice(i,1),this.#f(),this.#u(),this.#w("highlights:removed",{id:t}),Os("Highlight removed"))}clearAll(){this.#r=[],this.#f(),this.#u()}exportHighlights(){return JSON.stringify({version:1,highlights:this.#r})}importHighlights(t){try{let i=typeof t=="string"?JSON.parse(t):t;if(!i.highlights||!Array.isArray(i.highlights))return;this.#r=i.highlights,this.#f(),this.#u()}catch{}}destroy(){this.#l||(this.#l=!0,this.#a&&this.#e.removeEventListener("pointerup",this.#a),this.#o&&this.#e.removeEventListener("click",this.#o),this.#n?this.#e.querySelectorAll("mark[data-hn-id]").forEach(t=>{let i=t.parentNode;for(;t.firstChild;)i.insertBefore(t.firstChild,t);i.removeChild(t),i.normalize()}):(Wo(this,new Map),Ip(this.#i)),this.#k(),this.#e.removeAttribute("data-highlights-init"))}#p(){requestAnimationFrame(()=>{if(this.#l)return;let t=window.getSelection();if(!t||t.isCollapsed||!t.toString().trim())return;let i=t.getRangeAt(0);this.#e.contains(i.commonAncestorContainer)&&this.#w("highlights:selected",{text:t.toString().trim(),rect:i.getBoundingClientRect()})})}#m(t){let i=t.target.closest?.(".hn-margin-annotation");if(i){let n=i.dataset.hnId,r=this.#r.find(a=>a.id===n);if(r){this.#w("highlights:clicked",{id:n,highlight:{...r}}),this.#w("highlights:request-note",{id:n,highlight:{...r},controller:this});return}}let s=t.target.closest?.("mark[data-hn-id]");if(s){let n=s.dataset.hnId,r=this.#r.find(a=>a.id===n);if(r){this.#w("highlights:clicked",{id:n,highlight:{...r}});return}}if(!this.#n){let n=this.#h(t.clientX,t.clientY);n&&this.#w("highlights:clicked",{id:n.id,highlight:{...n}})}}findHighlightRect(t){let i=this.#r.find(r=>r.id===t);if(!i)return null;let s=wt(this.#e,i.startOffset,i.endOffset);if(!s)return null;let n=s.getClientRects();return n.length?n[0]:null}#h(t,i){for(let s of this.#r){let n=wt(this.#e,s.startOffset,s.endOffset);if(!n)continue;let r=n.getClientRects();for(let a of r)if(t>=a.left&&t<=a.right&&i>=a.top&&i<=a.bottom)return s}return null}_createFromSelection(t){let i=window.getSelection();if(!i||i.isCollapsed)return;let s=i.getRangeAt(0);if(!this.#e.contains(s.commonAncestorContainer))return;let n=Go(this.#e,s.startContainer,s.startOffset),r=Go(this.#e,s.endContainer,s.endOffset);if(n<0||r<0||n>=r)return;let a=i.toString().trim(),o={id:_p(),startOffset:n,endOffset:r,text:a,color:t,note:"",created:Date.now()};this.#r.push(o),this.#f(),this.#u(),i.removeAllRanges(),this.#w("highlights:added",{id:o.id,text:a,color:t,note:""}),Os("Highlight added")}_changeColor(t,i){let s=this.#r.find(n=>n.id===t);s&&(s.color=i,this.#f(),this.#u())}_updateNote(t,i){let s=this.#r.find(n=>n.id===t);s&&(s.note=i,this.#f(),this.#A(),this.#w("highlights:note-changed",{id:t,note:i}),Os("Note saved"))}async#d(){let t=await k.get(Vo,this.#t);if(!t||!Array.isArray(t.highlights))return;let i=ie(this.#e.textContent);t.contentHash&&t.contentHash!==i?(this.#r=t.highlights.filter(s=>{let n=wt(this.#e,s.startOffset,s.endOffset);return n?n.toString().trim()===s.text:!1}),this.#f()):this.#r=t.highlights}#f(){let t={version:1,contentHash:ie(this.#e.textContent),highlights:this.#r};k.set(Vo,this.#t,t).catch(()=>{})}#u(){this.#n?this.#b():this.#g(),this.#A()}#g(){let t=new Map;for(let i of this.#i)t.set(i,[]);for(let i of this.#r){let s=wt(this.#e,i.startOffset,i.endOffset);s&&t.has(i.color)&&t.get(i.color).push(s)}Wo(this,t)}#b(){this.#e.querySelectorAll("mark[data-hn-id]").forEach(i=>{let s=i.parentNode;for(;i.firstChild;)s.insertBefore(i.firstChild,i);s.removeChild(i)}),this.#e.normalize();let t=[...this.#r].sort((i,s)=>s.startOffset-i.startOffset);for(let i of t){let s=wt(this.#e,i.startOffset,i.endOffset);if(!s)continue;let n=document.createElement("mark");n.dataset.hnId=i.id,Uo(i.color)&&(n.dataset.hnColor=i.color,n.style.setProperty("--_hn-color",`var(--highlight-${i.color})`));try{s.surroundContents(n)}catch{let r=s.extractContents();n.appendChild(r),s.insertNode(n)}}}#k(){for(let t of this.#c)t.remove();this.#c=[]}#A(){if(this.#k(),this.#r.length===0)return;getComputedStyle(this.#e).position==="static"&&(this.#e.style.position="relative");for(let i of this.#r){let s=wt(this.#e,i.startOffset,i.endOffset);if(!s)continue;let n=s.getClientRects();if(n.length===0)continue;let r=n[0],a=this.#e.getBoundingClientRect(),o=r.top-a.top,c=document.createElement("span");c.className="hn-margin-annotation",c.dataset.hnId=i.id,c.setAttribute("aria-hidden","true"),c.style.top=`${o}px`,i.note?(c.innerHTML='<span class="hn-note-indicator">*</span> You highlighted',c.classList.add("hn-has-note")):c.textContent="You highlighted",this.#e.appendChild(c),this.#c.push(c)}}#w(t,i={}){this.#e.dispatchEvent(new CustomEvent(t,{detail:i,bubbles:!0}))}},Fs=new WeakMap;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Yo()):Yo();Bp=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Ps)&&We(s),s.querySelectorAll(Ps).forEach(n=>{n.hasAttribute("data-highlights-init")||We(n)})}});Bp.observe(document.documentElement,{childList:!0,subtree:!0})});var Gs={};E(Gs,{currentHash:()=>Ws,initPageWatch:()=>Vs,readWatch:()=>Ge,removeWatch:()=>Jo,writeWatch:()=>se});function Zo(){return typeof window<"u"&&window.vbPageWatch?.serverSync===!0?!0:document.querySelector('meta[name="vb-page-watch-server"]')?.getAttribute("content")==="true"}async function Op(e){if(!Zo())return null;try{let t=new R("notify"),i={url:e.url,type:"page-watch",notify:["panel"]},s=await t.post("/subscribe",i);return typeof s?.id=="string"?s.id:null}catch(t){let i=t instanceof I?`${t.status}`:String(t);return console.warn("[page-watch] server subscribe failed; client-only watch in effect.",i),null}}async function Fp(e){if(!(!e||!Zo()))try{await new R("notify").delete(`/subscribe/${encodeURIComponent(e)}`)}catch(t){let i=t instanceof I?`${t.status}`:String(t);console.warn("[page-watch] server unsubscribe failed; local state already cleared.",i)}}function Pp(){return document.querySelector("main")||document.querySelector("article")||document.body}function ne(){return location.pathname||"/"}function Ws(){let e=Pp();return e?ie(e.textContent||""):""}function Rp(){return document.title||ne()}async function Ge(){return await k.get(Us,ne())}async function se(e){await k.set(Us,ne(),e)}async function Jo(){await k.remove(Us,ne())}function js(e,t){e.setAttribute("aria-pressed",t?"true":"false"),e.dataset.watching="",t||delete e.dataset.watching;let i=e.querySelector("icon-wc");i&&i.setAttribute("name",t?"bookmark-check":"bookmark");let s=[...e.childNodes].find(n=>n.nodeType===Node.TEXT_NODE&&(n.textContent||"").trim());s&&!e.hasAttribute("data-watch-label-locked")&&(s.textContent=t?"Watching":"Watch for updates"),e.setAttribute("title",t?"Stop watching this page":"Watch this page for content updates")}async function zs(e){if(e.hasAttribute("data-watch-page-init"))return;e.setAttribute("data-watch-page-init",""),e.setAttribute("type",e.getAttribute("type")||"button");let t=await Ge();js(e,!!t),e.addEventListener("click",async i=>{i.preventDefault();let s=await Ge();if(s)await Jo(),js(e,!1),e.dispatchEvent(new CustomEvent("page-watch:remove",{bubbles:!0,composed:!0,detail:{url:s.url,subscriptionId:s.subscriptionId}})),Fp(s.subscriptionId);else{let n={url:ne(),title:Rp(),contentHash:Ws(),watchedAt:new Date().toISOString(),lastChecked:new Date().toISOString(),lastChanged:null,subscriptionId:null};await se(n),js(e,!0),e.dispatchEvent(new CustomEvent("page-watch:add",{bubbles:!0,composed:!0,detail:{entry:n}}));let r=await Op(n);r&&await se({...n,subscriptionId:r})}})}async function jp(){let e=await Ge();if(!e)return;let t=Ws(),i=new Date().toISOString(),s=e.contentHash,n={...e,lastChecked:i};if(t&&t!==s){n.contentHash=t,n.lastChanged=i,await se(n);let r={id:`page-watch:${e.url}:${t}`,type:"watch",title:`Updated: ${e.title}`,body:"Content changed since your last visit.",url:e.url,date:i,read:!1,dismissed:!1,priority:"normal"};document.dispatchEvent(new CustomEvent("notification-wc:new",{bubbles:!0,composed:!0,detail:{notification:r}}))}else await se(n)}function Vs(e=document){for(let t of e.querySelectorAll(Hs))zs(t);jp()}var Hs,Us,Hp,Ys=w(()=>{et();$t();Rs();Hs="[data-watch-page]",Us="watches";document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Vs()):Vs();Hp=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches?.(Hs)&&zs(s),s.querySelectorAll?.(Hs).forEach(n=>zs(n))}});Hp.observe(document.documentElement,{childList:!0,subtree:!0})});var yc={};E(yc,{initAll:()=>fn});function pn(e){e.hasAttribute("data-back-to-top-init")||(e.setAttribute("data-back-to-top-init",""),e.toggleAttribute("data-visible",!1),e.addEventListener("click",gc),ei.add(e),bf(),bc())}function fc(e){e.hasAttribute("data-back-to-top-init")&&(e.removeAttribute("data-back-to-top-init"),e.removeEventListener("click",gc),ei.delete(e),ei.size===0&&Et&&(window.removeEventListener("scroll",Et),Et=null))}function mc(){if(Bt&&Bt.isConnected)return Bt;let e=document.documentElement,t=document.body;if(t&&t.scrollHeight>e.clientHeight+1&&t){let s=getComputedStyle(t);if(/auto|scroll/.test(s.overflowY))return Bt=t,t}return Bt=document.scrollingElement||e,Bt}function gc(e){let t=e.currentTarget.getAttribute("href")||"";if(t===""||t==="#"||t==="#top")e.preventDefault();else return;mc().scrollTo({top:0,left:0,behavior:gf.matches?"auto":"smooth"})}function bf(){Et||(Et=()=>{hn||(hn=!0,requestAnimationFrame(()=>{bc(),hn=!1}))},window.addEventListener("scroll",Et,{passive:!0}),document.addEventListener("scroll",Et,{capture:!0,passive:!0}))}function bc(){let t=mc().scrollTop||window.scrollY,s=window.innerHeight*1,n=t>s,r=t<200;for(let a of ei)a.toggleAttribute("data-visible",n&&!r)}function fn(e=document){e.querySelectorAll(ce).forEach(pn)}var ce,gf,ei,Et,hn,Bt,yf,mn=w(()=>{ce="[data-back-to-top]",gf=matchMedia("(prefers-reduced-motion: reduce)"),ei=new Set,Et=null,hn=!1;Bt=null;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>fn(),{once:!0}):fn();yf=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(ce)&&pn(s),s.querySelectorAll(ce).forEach(n=>pn(n))}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches?.(ce)&&fc(s),s.querySelectorAll?.(ce).forEach(n=>fc(n))}}});yf.observe(document.documentElement,{childList:!0,subtree:!0})});function ut(){return document.documentElement.lang||navigator.language||"en"}var le=w(()=>{});var wc={};E(wc,{initFormatNumber:()=>vn});function vn(e=document){e.querySelectorAll(yn).forEach(wn)}function wn(e){if(e.hasAttribute("data-format-number-init"))return;e.setAttribute("data-format-number-init","");let t=e.getAttribute("value");if(t==null)return;let i=Number(t);if(isNaN(i))return;e.title||(e.title=e.textContent.trim());let s=e.getAttribute("data-format-number")||"decimal",n=e.getAttribute("data-locale")||ut(),r={};switch(s){case"currency":{r.style="currency",r.currency=e.getAttribute("data-currency")||"USD";break}case"percent":r.style="percent";break;case"compact":r.notation="compact";break;default:break}try{e.textContent=new Intl.NumberFormat(n,r).format(i)}catch{}}var yn,wf,An=w(()=>{le();yn="data[data-format-number]";document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>vn()):vn();wf=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(yn)&&wn(s),s.querySelectorAll(yn).forEach(n=>wn(n))}});wf.observe(document.documentElement,{childList:!0,subtree:!0})});var xc={};E(xc,{initFormatDate:()=>En});function En(e=document){e.querySelectorAll(ii).forEach(kn)}function kn(e){if(e.hasAttribute("data-format-date-init"))return;e.setAttribute("data-format-date-init","");let t=e.getAttribute("datetime");if(!t)return;let i=new Date(t);if(isNaN(i.getTime()))return;e.title||(e.title=e.textContent.trim());let s=e.getAttribute("data-format-date")||"medium",n=e.getAttribute("data-locale")||ut();s==="relative"?(e.textContent=Ec(i,n),kc(e,i,n)):e.textContent=Af(i,s,e,n)}function Af(e,t,i,s){let n=t||"medium",r=i.getAttribute("data-format-time")||void 0;try{let a={dateStyle:n};return r&&(a.timeStyle=r),new Intl.DateTimeFormat(s,a).format(e)}catch{return i.textContent}}function Ec(e,t){let i=Date.now(),s=Math.round((e.getTime()-i)/1e3),n=Math.abs(s),r=[{unit:"year",seconds:31536e3},{unit:"month",seconds:2592e3},{unit:"week",seconds:604800},{unit:"day",seconds:86400},{unit:"hour",seconds:3600},{unit:"minute",seconds:60},{unit:"second",seconds:1}];for(let{unit:a,seconds:o}of r)if(n>=o){let c=Math.round(s/o);try{return new Intl.RelativeTimeFormat(t,{numeric:"auto"}).format(c,a)}catch{let l=Math.abs(c),u=l===1?a:`${a}s`;return c<0?`${l} ${u} ago`:`in ${l} ${u}`}}try{return new Intl.RelativeTimeFormat(t,{numeric:"auto"}).format(0,"second")}catch{return"just now"}}function kc(e,t,i){clearInterval(ue.get(e));let s=Math.abs(Date.now()-t.getTime()),n=36e5,r=864e5,a;s<n?a=6e4:s<r?a=3e5:a=36e5;let o=setInterval(()=>{e.textContent=Ec(t,i),kc(e,t,i)},a);ue.set(e,o)}function Ac(e){ue.has(e)&&(clearInterval(ue.get(e)),ue.delete(e))}var ii,ue,Ef,xn=w(()=>{le();ii="time[data-format-date]",ue=new Map;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>En()):En();Ef=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(ii)&&kn(s),s.querySelectorAll(ii).forEach(n=>kn(n))}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;Ac(s),s.querySelectorAll(ii).forEach(Ac)}}});Ef.observe(document.documentElement,{childList:!0,subtree:!0})});var Sc={};E(Sc,{initFormatBytes:()=>Tn});function Tn(e=document){e.querySelectorAll(Cn).forEach(Ln)}function Ln(e){if(e.hasAttribute("data-format-bytes-init"))return;e.setAttribute("data-format-bytes-init","");let t=e.getAttribute("value");if(t==null)return;let i=Number(t);if(isNaN(i)||i<0)return;e.title||(e.title=e.textContent.trim());let s=parseInt(e.getAttribute("data-format-bytes")??"0",10)||0,n=e.getAttribute("data-unit")==="decimal",r=e.getAttribute("data-locale")||ut(),a=n?1e3:1024;if(i===0){e.textContent="0 B";return}let o=Math.min(Math.floor(Math.log(i)/Math.log(a)),Sn.length-1),c=i/Math.pow(a,o);try{let l=new Intl.NumberFormat(r,{minimumFractionDigits:s,maximumFractionDigits:s}).format(c);e.textContent=`${l} ${Sn[o]}`}catch{e.textContent=`${c.toFixed(s)} ${Sn[o]}`}}var Cn,Sn,kf,Mn=w(()=>{le();Cn="data[data-format-bytes]",Sn=["B","KB","MB","GB","TB","PB"];document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Tn()):Tn();kf=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Cn)&&Ln(s),s.querySelectorAll(Cn).forEach(n=>Ln(n))}});kf.observe(document.documentElement,{childList:!0,subtree:!0})});var Lc={};E(Lc,{initSpoilers:()=>_n});function _n(e=document){e.querySelectorAll(Nn).forEach(Dn)}function Dn(e){if(e.hasAttribute("data-spoiler-init"))return;e.setAttribute("data-spoiler-init","");let t=e.getAttribute("data-spoiler")||"blur";e.getAttribute("data-spoiler")||e.setAttribute("data-spoiler","blur");let i=Tc.has(e.tagName),s=i?"span":"div";e.setAttribute("role","group"),e.setAttribute("aria-label","Spoiler");let n=document.createElement(s);for(n.setAttribute("data-spoiler-content",""),n.setAttribute("inert","");e.firstChild;)n.appendChild(e.firstChild);e.appendChild(n);let r=e.getAttribute("data-spoiler-label")||"Reveal spoiler",a;i?(a=document.createElement("span"),a.setAttribute("role","button"),a.setAttribute("tabindex","0")):(a=document.createElement("button"),a.setAttribute("type","button")),a.setAttribute("data-spoiler-trigger",""),a.setAttribute("aria-expanded","false");let o=document.createElement("span");o.setAttribute("data-spoiler-label",""),o.textContent=r,a.appendChild(o),e.appendChild(a),a.addEventListener("click",()=>Cc(e)),i&&a.addEventListener("keydown",c=>{(c.key==="Enter"||c.key===" ")&&(c.preventDefault(),Cc(e))}),e.addEventListener("keydown",c=>{c.key==="Escape"&&e.hasAttribute("data-spoiler-visible")&&(c.stopPropagation(),si(e))})}function Cc(e){let t=e.getAttribute("data-spoiler-group");t&&document.querySelectorAll(`[data-spoiler-group="${t}"][data-spoiler-visible]`).forEach(n=>{n!==e&&si(n)});let i=e.querySelector("[data-spoiler-content]"),s=e.querySelector("[data-spoiler-trigger]");if(i&&i.removeAttribute("inert"),s&&(s.setAttribute("aria-expanded","true"),s.hidden=!0),e.setAttribute("data-spoiler-visible",""),!e.hasAttribute("data-spoiler-persist")){let n=Tc.has(e.tagName),r;n?(r=document.createElement("span"),r.setAttribute("role","button"),r.setAttribute("tabindex","0"),r.addEventListener("keydown",a=>{(a.key==="Enter"||a.key===" ")&&(a.preventDefault(),si(e))})):(r=document.createElement("button"),r.setAttribute("type","button")),r.setAttribute("data-spoiler-hide",""),r.textContent="Hide",r.addEventListener("click",()=>si(e)),e.appendChild(r)}xf("Spoiler revealed"),e.dispatchEvent(new CustomEvent("spoiler:toggle",{bubbles:!0,detail:{visible:!0}}))}function si(e){if(e.hasAttribute("data-spoiler-persist"))return;let t=e.querySelector("[data-spoiler-content]"),i=e.querySelector("[data-spoiler-trigger]"),s=e.querySelector("[data-spoiler-hide]");t&&t.setAttribute("inert",""),i&&(i.setAttribute("aria-expanded","false"),i.hidden=!1,i.focus()),s&&s.remove(),e.removeAttribute("data-spoiler-visible"),e.dispatchEvent(new CustomEvent("spoiler:toggle",{bubbles:!0,detail:{visible:!1}}))}function xf(e){let t=document.createElement("div");t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),Object.assign(t.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:"0"}),t.textContent=e,document.body.appendChild(t),setTimeout(()=>t.remove(),1e3)}var Nn,Tc,Sf,$n=w(()=>{Nn="[data-spoiler]",Tc=new Set(["SPAN","EM","STRONG","CODE","A","B","I","S","U","SMALL","SUB","SUP","MARK","ABBR","Q","CITE","DFN","SAMP","VAR","KBD","BDI","BDO","DATA","TIME","WBR"]);document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>_n()):_n();Sf=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Nn)&&Dn(s),s.querySelectorAll(Nn).forEach(Dn)}});Sf.observe(document.documentElement,{childList:!0,subtree:!0})});var Mc={};E(Mc,{initSplitters:()=>qn});function qn(e=document){e.querySelectorAll(In).forEach(Bn)}function Bn(e){if(e.hasAttribute("data-splitter-init"))return;e.setAttribute("data-splitter-init","");let t=[...e.children];if(t.length<2)return;let i=t[0],s=t[1],n=e.getAttribute("data-splitter")==="vertical",r=Number(i.dataset.min)||10,a=Number(i.dataset.max)||90,o=document.createElement("div");o.className="split-divider",o.setAttribute("role","separator"),o.setAttribute("aria-orientation",n?"vertical":"horizontal"),o.setAttribute("aria-valuenow","50"),o.setAttribute("aria-valuemin",String(r)),o.setAttribute("aria-valuemax",String(a)),o.setAttribute("aria-label","Resize panels"),o.setAttribute("tabindex","0"),e.insertBefore(o,s),i.style.flexBasis="50%",i.style.flexGrow="0",i.style.flexShrink="0",i.style.overflow="auto",s.style.flexGrow="1",s.style.overflow="auto";let c=!1;function l(u){let d=Math.min(a,Math.max(r,u));i.style.flexBasis=`${d}%`,o.setAttribute("aria-valuenow",String(Math.round(d))),e.dispatchEvent(new CustomEvent("split-surface:resize",{detail:{position:d},bubbles:!0}))}o.addEventListener("pointerdown",u=>{u.preventDefault(),c=!0,o.setPointerCapture(u.pointerId),e.style.userSelect="none"}),o.addEventListener("pointermove",u=>{if(!c)return;let d=e.getBoundingClientRect(),h;n?h=(u.clientY-d.top)/d.height*100:h=(u.clientX-d.left)/d.width*100,l(h)}),o.addEventListener("pointerup",u=>{c=!1,o.releasePointerCapture(u.pointerId),e.style.userSelect=""}),o.addEventListener("keydown",u=>{let d=u.shiftKey?10:1,h=Number(o.getAttribute("aria-valuenow")),p=n?["ArrowUp"]:["ArrowLeft"],f=n?["ArrowDown"]:["ArrowRight"];p.includes(u.key)?(u.preventDefault(),l(h-d)):f.includes(u.key)?(u.preventDefault(),l(h+d)):u.key==="Home"?(u.preventDefault(),l(r)):u.key==="End"&&(u.preventDefault(),l(a))})}var In,Cf,On=w(()=>{In="[data-splitter]";document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>qn()):qn();Cf=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(In)&&Bn(s),s.querySelectorAll(In).forEach(Bn)}});Cf.observe(document.documentElement,{childList:!0,subtree:!0})});var Nc={};E(Nc,{initSwitches:()=>Rn});function Pn(e){e.hasAttribute("data-switch-init")||(e.setAttribute("data-switch-init",""),e.setAttribute("role","switch"))}function Rn(e=document){e.querySelectorAll(Fn).forEach(Pn)}var Fn,Tf,jn=w(()=>{Fn='input[type="checkbox"][data-switch]';document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Rn()):Rn();Tf=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Fn)&&Pn(s),s.querySelectorAll(Fn).forEach(n=>Pn(n))}});Tf.observe(document.documentElement,{childList:!0,subtree:!0})});function Lf(e){for(let[t,i]of ni)e.querySelectorAll(t).forEach(i)}function Mf(e){if(e.nodeType!==Node.ELEMENT_NODE)return;let t=e;for(let[i,s]of ni)t.matches(i)&&s(t),t.querySelectorAll(i).forEach(s)}function Nf(){Hn||(Hn=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes)Mf(i)}),Hn.observe(document.documentElement,{childList:!0,subtree:!0}))}function _f(){ri||(ri=!0,Lf(document))}function S(e,t){ni.set(e,t),Nf(),ri||document.readyState!=="loading"?(ri=!0,document.querySelectorAll(e).forEach(t)):ni.size===1&&document.addEventListener("DOMContentLoaded",_f)}var ni,Hn,ri,B=w(()=>{ni=new Map,Hn=null,ri=!1});var $c={};E($c,{initTextareaCounts:()=>Df});function Dc(e){if(e.hasAttribute("data-count-init"))return;e.setAttribute("data-count-init","");let t=e.dataset.count==="words",i=t?parseInt(e.dataset.maxwords??"0",10)||0:e.maxLength>0?e.maxLength:0,s=document.createElement("output");s.className="textarea-counter",s.setAttribute("aria-live","polite"),s.setAttribute("aria-atomic","true");let n=e.closest("form-field");n?n.appendChild(s):e.insertAdjacentElement("afterend",s);function r(){let a=e.value,o=t?a.trim()?a.trim().split(/\s+/).length:0:a.length;if(i>0){s.textContent=`${o} / ${i}`;let c=o/i;s.dataset.state=c>=1?"error":c>=.8?"warning":""}else{let c=t?o===1?"word":"words":o===1?"character":"characters";s.textContent=`${o} ${c}`,s.dataset.state=""}}e.addEventListener("input",r),r()}function Df(e=document){e.querySelectorAll(_c).forEach(Dc)}var _c,zn=w(()=>{B();_c="textarea[data-count]";S(_c,Dc)});var Bc={};E(Bc,{initTextareaGrow:()=>If});function qc(e){if(e.hasAttribute("data-grow-init"))return;e.setAttribute("data-grow-init","");let t=parseInt(e.dataset.maxRows??"0",10)||0;if(e.style.resize="none",$f){e.style.fieldSizing="content",t>0&&(e.style.maxBlockSize=`${t}lh`);return}e.style.overflow="hidden";function i(){e.style.blockSize="auto";let s=e.scrollHeight;if(t>0){let n=getComputedStyle(e),r=parseFloat(n.lineHeight)||parseFloat(n.fontSize)*1.2,a=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom),o=r*t+a;s>o?(s=o,e.style.overflow="auto"):e.style.overflow="hidden"}e.style.blockSize=s+"px"}e.addEventListener("input",i),e.addEventListener("change",i),i()}function If(e=document){e.querySelectorAll(Ic).forEach(qc)}var Ic,$f,Vn=w(()=>{B();Ic="textarea[data-grow]",$f=CSS.supports("field-sizing","content");S(Ic,qc)});var Pc={};E(Pc,{initConditionalFields:()=>Wn});function Un(e){let t=e.indexOf("=");return t===-1?{name:e,value:null}:{name:e.slice(0,t),value:e.slice(t+1)}}function qf(e,t){let i=t.querySelectorAll(`[name="${CSS.escape(e)}"]`);if(!i.length)return"";let s=i[0];if(s.type==="radio"){let n=Array.from(i).find(r=>r.checked);return n?n.value:""}return s.type==="checkbox"?s.checked?s.value||"true":"":s.value}function Oc(e,t){let i=qf(e.name,t);return e.value===null?i!=="":i===e.value}function oi(e){let t=e.closest("form")||document,i;if(e.dataset.showWhen){let s=Un(e.dataset.showWhen);i=Oc(s,t)}else if(e.dataset.hideWhen){let s=Un(e.dataset.hideWhen);i=!Oc(s,t)}i?(e.removeAttribute("hidden"),e.removeAttribute("inert")):(e.setAttribute("hidden",""),e.setAttribute("inert",""))}function Wn(e=document){let t=e.querySelectorAll(ai);t.forEach(n=>{n.hasAttribute("data-conditional-init")||(n.setAttribute("data-conditional-init",""),oi(n))});let i=new Set;t.forEach(n=>{let r=n.closest("form");r&&!r.hasAttribute("data-conditional-listener")&&(r.setAttribute("data-conditional-listener",""),i.add(r))}),(i.size?[...i]:[document]).forEach(n=>{n.addEventListener("change",Fc),n.addEventListener("input",Fc)})}function Fc(e){let t=e.target.name;if(!t)return;(e.target.closest("form")||document).querySelectorAll(ai).forEach(n=>{let r=n.dataset.showWhen||n.dataset.hideWhen||"";Un(r).name===t&&oi(n)})}var ai,Bf,Gn=w(()=>{ai="[data-show-when], [data-hide-when]";document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Wn()):Wn();Bf=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(ai)&&(s.hasAttribute("data-conditional-init")||(s.setAttribute("data-conditional-init",""),oi(s))),s.querySelectorAll(ai).forEach(n=>{n.hasAttribute("data-conditional-init")||(n.setAttribute("data-conditional-init",""),oi(n))})}});Bf.observe(document.documentElement,{childList:!0,subtree:!0})});var Hc={};E(Hc,{initRangeSliders:()=>Of});function jc(e){if(e.hasAttribute("data-range-init"))return;e.setAttribute("data-range-init","");let t=e.dataset.prefix||"",i=e.dataset.suffix||"",s=e.hasAttribute("data-bubble"),n=document.createElement("div");if(n.className="range-wrapper",!e.parentNode)return;e.parentNode.insertBefore(n,e),n.appendChild(e);function r(){let u=parseFloat(e.min)||0,d=parseFloat(e.max)||100,h=(parseFloat(e.value)-u)/(d-u);n.style.setProperty("--range-pct",`${h*100}%`),n.style.setProperty("--range-frac",String(h))}let a;s&&(a=document.createElement("output"),a.className="range-bubble",a.setAttribute("for",e.id||""),n.appendChild(a));function o(){a&&(a.textContent=`${t}${e.value}${i}`)}if(e.hasAttribute("data-markers")){let u=parseFloat(e.min)||0,d=parseFloat(e.max)||100,h=parseFloat(e.step)||1,p=document.createElement("div");p.className="range-markers";let f=Math.round((d-u)/h);for(let m=0;m<=f;m++)p.appendChild(document.createElement("span"));n.appendChild(p)}let c=e.getAttribute("list");if(c){let u=document.getElementById(c);if(u){let d=document.createElement("div");d.className="range-labels";let h=parseFloat(e.min)||0,p=parseFloat(e.max)||100;Array.from(u.options).forEach(f=>{let m=document.createElement("span");m.textContent=f.label||f.value,m.style.setProperty("--range-frac",String((parseFloat(f.value)-h)/(p-h))),d.appendChild(m)}),n.appendChild(d)}}function l(){r(),o()}e.addEventListener("input",l),l()}function Of(e=document){e.querySelectorAll(Rc).forEach(jc)}var Rc,Yn=w(()=>{B();Rc='input[type="range"][data-range]';S(Rc,jc)});var zc={};E(zc,{initUploadZones:()=>Zn});function Ff(e){if(e===0)return"0 B";let t=["B","KB","MB","GB"],i=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,i)).toFixed(i>0?1:0)} ${t[i]}`}function Xn(e){if(e.hasAttribute("data-upload-init"))return;e.setAttribute("data-upload-init","");let t=e.hasAttribute("multiple"),i=e.getAttribute("accept")||"",s=document.createElement("div");if(s.className="upload-zone",s.setAttribute("role","presentation"),!e.parentNode)return;e.parentNode.insertBefore(s,e),s.appendChild(e);let n=document.createElement("div");n.className="upload-prompt",n.innerHTML=`
3
- <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
4
- <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>
5
- <polyline points="17 8 12 3 7 8"/>
6
- <line x1="12" y1="3" x2="12" y2="15"/>
7
- </svg>
8
- <span>Drag files here or <button type="button" class="upload-browse">browse</button></span>
9
- ${i?`<small>${i.replace(/\./g,"").toUpperCase().replace(/,/g,", ")}</small>`:""}
10
- `,s.appendChild(n);let r=document.createElement("ul");r.className="upload-file-list",r.setAttribute("aria-label","Selected files"),s.appendChild(r);let a=n.querySelector(".upload-browse");if(!a)return;a.addEventListener("click",()=>e.click()),s.addEventListener("click",c=>{(c.target===s||c.target===n||c.target.closest(".upload-prompt"))&&e.click()});let o=0;s.addEventListener("dragenter",c=>{c.preventDefault(),o++,s.dataset.dragover=""}),s.addEventListener("dragleave",()=>{o--,o===0&&delete s.dataset.dragover}),s.addEventListener("dragover",c=>{c.preventDefault()}),s.addEventListener("drop",c=>{c.preventDefault(),o=0,delete s.dataset.dragover,c.dataTransfer&&c.dataTransfer.files.length&&(e.files=c.dataTransfer.files,e.dispatchEvent(new Event("change",{bubbles:!0})))}),e.addEventListener("change",()=>{r.innerHTML="";let c=Array.from(e.files??[]);if(c.length===0){r.hidden=!0;return}r.hidden=!1,c.forEach(l=>{let u=document.createElement("li");u.innerHTML=`
11
- <span class="upload-file-name">${Pf(l.name)}</span>
12
- <span class="upload-file-size">${Ff(l.size)}</span>
13
- `,r.appendChild(u)})})}function Pf(e){let t=document.createElement("div");return t.textContent=e,t.innerHTML}function Zn(e=document){e.querySelectorAll(Kn).forEach(Xn)}var Kn,Rf,Jn=w(()=>{Kn='input[type="file"][data-upload]';document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Zn()):Zn();Rf=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Kn)&&Xn(s),s.querySelectorAll(Kn).forEach(n=>Xn(n))}});Rf.observe(document.documentElement,{childList:!0,subtree:!0})});var Uc={};E(Uc,{initAutosave:()=>ir});function Hf(e){let t=e.dataset.autosave;if(typeof t=="string"&&t.trim()!=="")return t.trim();let i=(e.method||"get").toLowerCase(),s=e.action||(typeof location<"u"?location.href:"");return`${i} ${s}`}function zf(e){let t=e.dataset.autosaveRetain;if(typeof t!="string")return null;let i=t.trim();return i===""?null:new Set(i.split(/\s+/))}function er(e){if(e.hasAttribute("data-autosave-init"))return;e.setAttribute("data-autosave-init","");let t=Hf(e),i=zf(e),s;function n(u){return i===null||i.has(u)}function r(){let u={},d=e.elements;for(let h of d){let p=h;p.name&&(p.type==="password"||p.type==="file"||n(p.name)&&(p.type==="checkbox"?u[p.name]=p.checked?"on":"":p.type==="radio"?p.checked&&(u[p.name]=p.value):p instanceof HTMLSelectElement&&p.multiple?u[p.name]=Array.from(p.selectedOptions).map(f=>f.value):u[p.name]=p.value))}return u}function a(){k.set(Qn,t,r()).catch(()=>{})}async function o(){let u=await k.get(Qn,t,{maxAge:jf});if(!u)return!1;let d=!1;for(let[h,p]of Object.entries(u)){if(!n(h))continue;let f=e.querySelectorAll(`[name="${CSS.escape(h)}"]`);f.forEach(m=>{let v=m;if(v.type==="checkbox")v.checked=p==="on";else if(v.type==="radio")v.checked=v.value===p;else if(v instanceof HTMLSelectElement&&v.multiple){let A=Array.isArray(p)?p:[p];Array.from(v.options).forEach(L=>{L.selected=A.includes(L.value)})}else typeof p=="string"&&(v.value=p)}),f.length&&(d=!0)}return d}function c(){k.remove(Qn,t).catch(()=>{})}function l(){if(customElements.get("toast-msg")){let u=document.createElement("toast-msg");u.setAttribute("variant","info"),u.setAttribute("duration","3000"),u.textContent="Draft restored",document.body.appendChild(u)}}o().then(u=>{u&&(l(),Array.from(e.elements).forEach(d=>{let h=d;h.name&&h.type!=="password"&&h.type!=="file"&&h.dispatchEvent(new Event("input",{bubbles:!0}))}))}),e.addEventListener("input",()=>{clearTimeout(s),s=setTimeout(a,Vc)}),e.addEventListener("change",()=>{clearTimeout(s),s=setTimeout(a,Vc)}),e.addEventListener("submit",c),e.addEventListener("reset",()=>{setTimeout(c,0)})}function ir(e=document){e.querySelectorAll(tr).forEach(er)}var tr,Qn,Vc,jf,Vf,sr=w(()=>{et();tr="form[data-autosave]",Qn="autosave",Vc=500,jf=1440*60*1e3;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>ir()):ir();Vf=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(tr)&&er(s),s.querySelectorAll(tr).forEach(er)}});Vf.observe(document.documentElement,{childList:!0,subtree:!0})});var Zc={};E(Zc,{initMaskInputs:()=>Kf});function Wf(e){let t=e.dataset.mask;if(Wc[t])return Wc[t];if(t==="custom"&&e.dataset.pattern){let i=e.dataset.pattern,s=new Set;for(let r of i)r==="#"?s.add("0-9"):r==="A"?s.add("a-zA-Z"):r==="*"&&s.add("a-zA-Z0-9");let n=s.size>0?new RegExp(`[${[...s].join("")}]`):/./;return{pattern:i,accept:n}}return null}function ci(e){return e==="#"||e==="A"||e==="*"}function Gf(e,t){let i=Uf[e];return i?i.test(t):!1}function Gc(e,t){let i="",s=0;for(let n=0;n<t.length&&s<e.length;n++){let r=t[n];if(ci(r)){for(;s<e.length&&!Gf(r,e[s]);)s++;s<e.length&&(i+=e[s],s++)}else i+=r}return i}function Yc(e,t){return e.split("").filter(i=>t.test(i)).join("")}function Yf(e){for(let t of e)if(ci(t)&&t!=="#")return!1;return!0}function Xc(e){if(e.hasAttribute("data-mask-init"))return;e.setAttribute("data-mask-init","");let t=Wf(e);if(!t)return;let{pattern:i}=t,s=t.accept;Yf(i)&&!e.getAttribute("inputmode")&&e.setAttribute("inputmode","numeric"),e.getAttribute("maxlength")||e.setAttribute("maxlength",String(i.length));let n=!1;e.addEventListener("compositionstart",()=>{n=!0}),e.addEventListener("compositionend",()=>{n=!1,r()});function r(){if(n)return;let a=e.selectionStart??0,o=0;for(let h=0;h<a&&h<e.value.length;h++)s.test(e.value[h])&&o++;let c=Yc(e.value,s),l=Gc(c,i);e.value=l,e.dataset.rawValue=c;let u=0,d=l.length;for(let h=0;h<l.length;h++)if(h<i.length&&ci(i[h])&&(u++,u===o)){for(d=h+1;d<i.length&&!ci(i[d]);)d++;break}e.setSelectionRange(d,d)}if(e.addEventListener("input",r),e.value){let a=Yc(e.value,s);e.value=Gc(a,i),e.dataset.rawValue=a}}function Kf(e=document){e.querySelectorAll(Kc).forEach(Xc)}var Kc,Wc,Uf,nr=w(()=>{B();Kc="input[data-mask]",Wc={phone:{pattern:"(###) ###-####",accept:/\d/},"credit-card":{pattern:"#### #### #### ####",accept:/\d/},date:{pattern:"##/##/####",accept:/\d/},ssn:{pattern:"###-##-####",accept:/\d/},zip:{pattern:"#####",accept:/\d/}},Uf={"#":/\d/,A:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/};S(Kc,Xc)});var tl={};E(tl,{initAcceptInputs:()=>Qf});function Zf(e){if(!e)return null;let t=Xf[e];if(t)return{regex:new RegExp(t.pattern),inputmode:t.inputmode};if(e.startsWith("["))try{return{regex:new RegExp(e),inputmode:"text"}}catch{return console.warn(`[data-accept] Invalid character class: ${e}`),null}return console.warn(`[data-accept] Unknown preset: ${e}`),null}function Qc(e){if(e.hasAttribute("data-accept-init"))return;if(e.setAttribute("data-accept-init",""),e.hasAttribute("data-mask")){console.warn("[data-accept] Conflict: data-mask is also present \u2014 deferring to mask.",e);return}let t=Zf(e.dataset.accept||"");if(!t)return;let{regex:i,inputmode:s}=t;e.dataset.acceptPattern=i.source,e.getAttribute("inputmode")||e.setAttribute("inputmode",s);let n=!1;e.addEventListener("compositionstart",()=>{n=!0}),e.addEventListener("compositionend",()=>{n=!1,r()}),e.addEventListener("beforeinput",a=>{if(n)return;let o=a.data;if(o!=null){if(a.inputType==="insertFromPaste"){let c=o.split("").filter(l=>i.test(l)).join("");if(c===o||(a.preventDefault(),!c))return;document.execCommand("insertText",!1,c)||Jf(e,c);return}if(a.inputType==="insertText"||a.inputType==="insertCompositionText"){for(let c of o)if(!i.test(c)){a.preventDefault();return}}}}),e.addEventListener("input",()=>{n||r()});function r(){let a=e.value,o=a.split("").filter(d=>i.test(d)).join("");if(o===a)return;let c=e.selectionStart??0,l=0;for(let d=0;d<c&&d<a.length;d++)i.test(a[d])&&l++;e.value=o;let u=Math.min(l,o.length);e.setSelectionRange(u,u)}if(e.value){let a=e.value.split("").filter(o=>i.test(o)).join("");a!==e.value&&(e.value=a)}}function Jf(e,t){let i=e.selectionStart??0,s=e.selectionEnd??0,n=e.value.slice(0,i),r=e.value.slice(s);e.value=n+t+r;let a=i+t.length;e.setSelectionRange(a,a),e.dispatchEvent(new Event("input",{bubbles:!0}))}function Qf(e=document){e.querySelectorAll(Jc).forEach(Qc)}var Jc,Xf,rr=w(()=>{B();Jc="input[data-accept]",Xf={digits:{pattern:"[0-9]",inputmode:"numeric"},alpha:{pattern:"[a-zA-Z]",inputmode:"text"},alphanum:{pattern:"[a-zA-Z0-9]",inputmode:"text"},phone:{pattern:"[0-9+()\\- ]",inputmode:"tel"},date:{pattern:"[0-9/\\-.]",inputmode:"numeric"},hex:{pattern:"[0-9a-fA-F]",inputmode:"text"},currency:{pattern:"[0-9.,]",inputmode:"decimal"},cc:{pattern:"[0-9 \\-]",inputmode:"numeric"}};S(Jc,Qc)});var el={};E(el,{initToggleTags:()=>cr});function or(e){if(e.hasAttribute("data-toggle-tags-init"))return;e.setAttribute("data-toggle-tags-init","");let t=parseInt(e.dataset.max,10);if(!t||t<1)return;function i(){let s=e.querySelectorAll('input[type="checkbox"]'),n=e.querySelectorAll('input[type="checkbox"]:checked').length;s.forEach(r=>{r.checked||(r.disabled=n>=t)})}e.addEventListener("change",i),i()}function cr(e=document){e.querySelectorAll(ar).forEach(or)}var ar,tm,lr=w(()=>{ar="fieldset[data-toggle-tags][data-max]";document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>cr()):cr();tm=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(ar)&&or(s),s.querySelectorAll(ar).forEach(or)}});tm.observe(document.documentElement,{childList:!0,subtree:!0})});var nl={};E(nl,{initNumberSteppers:()=>sm});function sl(e){if(e.hasAttribute("data-stepper-init"))return;e.setAttribute("data-stepper-init","");let t=document.createElement("div");t.className="number-wrapper",e.parentNode.insertBefore(t,e);let i=document.createElement("button");i.type="button",i.className="number-dec",i.innerHTML=em,i.setAttribute("aria-label","Decrease"),i.tabIndex=-1;let s=document.createElement("button");s.type="button",s.className="number-inc",s.innerHTML=im,s.setAttribute("aria-label","Increase"),s.tabIndex=-1,t.appendChild(i),t.appendChild(e),t.appendChild(s);function n(a){let o=e.min!==""?parseFloat(e.min):-1/0,c=e.max!==""?parseFloat(e.max):1/0,l=parseFloat(e.step)||1,u=parseFloat(e.value)||0,d=(l.toString().split(".")[1]||"").length,h=parseFloat((u+l*a).toFixed(d)),p=Math.min(Math.max(h,o),c);e.value=p,e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0})),r()}function r(){let a=e.min!==""?parseFloat(e.min):-1/0,o=e.max!==""?parseFloat(e.max):1/0,c=parseFloat(e.value)||0;i.disabled=c<=a,s.disabled=c>=o}i.addEventListener("click",()=>n(-1)),s.addEventListener("click",()=>n(1)),e.addEventListener("input",r),r()}function sm(e=document){e.querySelectorAll(il).forEach(sl)}var il,em,im,ur=w(()=>{B();il='input[type="number"][data-stepper]',em='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="5" y1="12" x2="19" y2="12"/></svg>',im='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>';S(il,sl)});var ul={};E(ul,{initSelectAll:()=>fr});function fr(e=document){e.querySelectorAll(pr).forEach(mr)}function mr(e){if(e.hasAttribute("data-select-all-init"))return;e.setAttribute("data-select-all-init","");let t=e.dataset.selectAll??"";if(!t)return;function i(){return(e.closest("[data-select-all-scope]")||e.closest("table, form, fieldset")||document).querySelectorAll(t)}function s(){let a=i(),o=a.length,c=0;a.forEach(d=>{d.checked&&c++}),c===0?(e.checked=!1,e.indeterminate=!1):c===o?(e.checked=!0,e.indeterminate=!1):(e.checked=!1,e.indeterminate=!0);let u=(e.closest("[data-select-all-scope]")||e.closest("table, form, fieldset")||document).querySelector("[data-selected-count]");u&&(u.textContent=String(c)),e.dispatchEvent(new CustomEvent("select-all:change",{bubbles:!0,detail:{checked:c,total:o,selected:[...a].filter(d=>d.checked)}}))}let n=!1;e.addEventListener("change",()=>{n=!0;let a=e.checked;i().forEach(c=>{c.checked=a,c.dispatchEvent(new Event("change",{bubbles:!0}))}),n=!1,e.indeterminate=!1,s()}),(e.closest("[data-select-all-scope]")||e.closest("table, form, fieldset")||document).addEventListener("change",a=>{n||a.target!==e&&a.target.matches?.(t)&&s()}),s()}var pr,lm,gr=w(()=>{pr="[data-select-all]";document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>fr()):fr();lm=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(pr)&&mr(s),s.querySelectorAll(pr).forEach(n=>mr(n))}});lm.observe(document.documentElement,{childList:!0,subtree:!0})});var hl={};E(hl,{initMath:()=>yr});function yr(e=document){e.querySelectorAll(br).forEach(vr)}function um(e){let t=e.getAttribute("data-math")||"";return new Set(t.split(/\s+/).filter(Boolean))}function vr(e){if(e.hasAttribute("data-math-init"))return;e.setAttribute("data-math-init",""),!e.hasAttribute("data-math")&&e.classList.contains("language-math")&&e.setAttribute("data-math","");let t=um(e),i=e.getAttribute("data-mathml"),s=e.textContent.trim(),n=t.has("inline");if(!i){e.setAttribute("data-math-state","source");return}let r=n?document.createElement("span"):document.createElement("div");r.setAttribute("data-math-rendered",""),r.innerHTML=i;let a=e.id||null;a&&(r.id=a,e.removeAttribute("id"));let o=r.querySelector("math");o&&!n&&o.setAttribute("display","block");let c=null;t.has("numbered")&&(dl++,c=dl,r.setAttribute("data-math-numbered",""),r.setAttribute("data-equation-number",String(c)),a&&window.VBMath?.equations.push({id:a,number:c,latex:s})),t.has("copyable")&&(r.setAttribute("data-math-copyable",""),r.style.cursor="copy",r.addEventListener("click",async()=>{try{await navigator.clipboard.writeText(s),hm("Copied to clipboard",r)}catch{}})),e.setAttribute("data-math-state","rendered"),e.insertAdjacentElement("afterend",r);let l=e.closest("pre");l?(l.setAttribute("data-math-state","rendered"),l.hidden=!0):e.hidden=!0,dm(),e.dispatchEvent(new CustomEvent("math:rendered",{bubbles:!0,detail:{latex:s,inline:n,number:c}}))}function dm(){if(document.querySelector("[data-vb-math-font]"))return;let e=document.createElement("link");e.rel="stylesheet",e.href="/fonts/math-fonts.css",e.setAttribute("data-vb-math-font",""),document.head.appendChild(e)}function hm(e,t){let i=document.createElement("div");i.setAttribute("role","status"),i.setAttribute("aria-live","polite"),i.className="visually-hidden",i.textContent=e,t.appendChild(i),setTimeout(()=>i.remove(),1e3)}var br,dl,pm,wr=w(()=>{br="[data-math], code.language-math",dl=0;window.VBMath=window.VBMath||{equations:[]};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>yr()):yr();pm=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(br)&&vr(s),s.querySelectorAll(br).forEach(vr)}});pm.observe(document.documentElement,{childList:!0,subtree:!0})});var kl={};E(kl,{WizardController:()=>di,initWizards:()=>Mr});function Lr(e){if(e.hasAttribute("data-wizard-enhanced"))return;let t=new di(e);e.wizardController=t,e.wizardGoTo=i=>t.goTo(i),e.wizardNext=()=>t.next(),e.wizardPrev=()=>t.prev(),e.wizardReset=()=>t.reset()}function Mr(){document.querySelectorAll("form[data-wizard]").forEach(e=>{Lr(e)})}function El(){new MutationObserver(t=>{for(let i of t)for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.matches("form[data-wizard]")&&Lr(n),n.querySelectorAll?.("form[data-wizard]:not([data-wizard-enhanced])").forEach(r=>{Lr(r)})}}).observe(document.documentElement,{childList:!0,subtree:!0})}var di,xl=w(()=>{di=class{#e;#t=[];#i=0;#s=null;#r=null;#n=null;#a=!1;#o="step";#l=null;#c="";#p=0;#m=0;constructor(t){if(!t||!(t instanceof HTMLFormElement))throw new Error("WizardController requires a form element");this.#e=t,this.#h()}#h(){if(this.#t=Array.from(this.#e.querySelectorAll("fieldset[data-wizard-step]")),this.#t.length===0){console.warn("Wizard form has no steps");return}this.#a=this.#e.hasAttribute("data-wizard-history"),this.#o=this.#e.getAttribute("data-wizard-validate")||"step",this.#d(),this.#s=this.#e.querySelector("[data-wizard-progress]"),this.#w(),this.#y(),this.#A(),this.#e.setAttribute("data-wizard-enhanced",""),this.#e.setAttribute("data-wizard-total",String(this.#t.length)),this.#I(),this.#C(),this.#N();let t=()=>{cancelAnimationFrame(this.#p),this.#p=requestAnimationFrame(()=>this.#T())};if(this.#e.addEventListener("change",t),this.#e.addEventListener("input",t),this.#l&&(this.#e.addEventListener("change",()=>this.#u()),this.#e.addEventListener("input",()=>this.#u())),this.#e.addEventListener("submit",i=>this.#k(i)),this.#e.addEventListener("reset",()=>{requestAnimationFrame(()=>this.reset())}),this.#a){let i=this.#B();i!==null&&i>=0&&i<this.#t.length&&(this.#i=i),window.addEventListener("hashchange",()=>{let s=this.#B();s!==null&&s!==this.#i&&this.goTo(s)})}this.#g(),this.#T(),this.#F()}#d(){let t=this.#e.getAttribute("data-wizard-persist");if(t){if(!this.#e.id){console.warn("Wizard persistence requires an id on the form element");return}this.#c=`vb-wizard:${this.#e.id}`,t==="local"?this.#l=localStorage:this.#l=sessionStorage}}#f(){if(!this.#l)return;let t={},i=new FormData(this.#e);for(let[s,n]of i.entries())t[s]!==void 0?(Array.isArray(t[s])||(t[s]=[t[s]]),t[s].push(n)):t[s]=n;try{this.#l.setItem(this.#c,JSON.stringify({step:this.#i,data:t}))}catch{}}#u(){this.#l&&(cancelAnimationFrame(this.#m),this.#m=requestAnimationFrame(()=>this.#f()))}#g(){if(this.#l)try{let t=this.#l.getItem(this.#c);if(!t)return;let i=JSON.parse(t);if(!i||typeof i!="object")return;if(i.data&&typeof i.data=="object")for(let[s,n]of Object.entries(i.data)){let r=this.#e.elements.namedItem(s);if(r)if(r instanceof RadioNodeList)r.value=n;else if(r instanceof HTMLInputElement)if(r.type==="checkbox"){let a=Array.isArray(n)?n:[n];r.checked=a.includes(r.value||"on")}else r.type==="radio"?r.checked=r.value===n:r.value=n;else(r instanceof HTMLSelectElement||r instanceof HTMLTextAreaElement)&&(r.value=n)}typeof i.step=="number"&&i.step>=0&&i.step<this.#t.length&&(this.#i=i.step)}catch{}}#b(){this.#l&&(cancelAnimationFrame(this.#m),this.#l.removeItem(this.#c))}#k(t){let i=this.#_();this.#i===i.length-1&&(this.#z("wizard:complete"),this.#b())}#A(){this.#r=document.createElement("div"),this.#r.setAttribute("role","status"),this.#r.setAttribute("aria-live","polite"),this.#r.setAttribute("aria-atomic","true"),this.#r.setAttribute("data-wizard-status",""),this.#e.prepend(this.#r)}#w(){let t=this.#e.getAttribute("data-wizard-steps");if(t){this.#n=document.querySelector(t);return}this.#n=this.#e.querySelector("nav.steps")}#y(){if(!this.#n)return;let t=this.#n.querySelector("ol");if(!(!t||t.children.length>0))for(let i of this.#t){let s=i.querySelector("legend"),n=document.createElement("li");n.textContent=s?.textContent||`Step ${this.#t.indexOf(i)+1}`,t.appendChild(n)}}#E(){if(!this.#n)return;let t=Array.from(this.#n.querySelectorAll("ol > li")),i=this.#_(),s=0;for(let n=0;n<this.#t.length;n++){let r=this.#t[n],a=t[s];if(!a)break;if(r.hasAttribute("data-wizard-hidden")){a.setAttribute("hidden","");continue}else a.removeAttribute("hidden");let o=i.indexOf(r);if(a.removeAttribute("data-completed"),a.removeAttribute("aria-current"),a.removeAttribute("aria-disabled"),o<this.#i){a.setAttribute("data-completed",""),this.#v(a,o);let c=a.querySelector("a");if(c){let u=r.querySelector("legend")?.textContent||`Step ${o+1}`;c.setAttribute("aria-label",`Go to ${u} (completed)`)}}else o===this.#i?a.setAttribute("aria-current","step"):a.setAttribute("aria-disabled","true");s++}for(let n of t){if(n.hasAttribute("hidden"))continue;let r=n.querySelector("a, button")||n,a=n.hasAttribute("aria-current");r.setAttribute("tabindex",a?"0":"-1")}}#v(t,i){if(t.hasAttribute("data-wizard-nav-bound"))return;t.setAttribute("data-wizard-nav-bound","");let s=t.querySelector("a, button")||t;s.addEventListener("click",n=>{n.preventDefault(),this.goTo(i)}),s===t&&!t.getAttribute("tabindex")&&(t.setAttribute("tabindex","0"),t.setAttribute("role","button"),t.addEventListener("keydown",n=>{(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),this.goTo(i))}))}#C(){let t=this.#e.querySelector("[data-wizard-prev]"),i=this.#e.querySelector("[data-wizard-next]");t?.addEventListener("click",s=>{s.preventDefault(),this.prev()}),i?.addEventListener("click",s=>{s.preventDefault(),this.next()})}#I(){if(this.#e.querySelector("[data-wizard-nav]"))return;let t=document.createElement("nav");t.setAttribute("data-wizard-nav","");let i=document.createElement("button");i.type="button",i.setAttribute("data-wizard-prev",""),i.textContent="Back";let s=document.createElement("button");s.type="button",s.setAttribute("data-wizard-next",""),s.textContent="Next";let n=document.createElement("button");n.type="submit",n.textContent="Submit",t.append(i,s,n),this.#e.appendChild(t)}#N(){this.#n&&this.#n.addEventListener("keydown",t=>{if(!this.#n)return;let i=Array.from(this.#n.querySelectorAll("ol > li:not([hidden])")),s=t.target.closest("li"),n=s?i.indexOf(s):-1;if(n===-1)return;let r;switch(t.key){case"ArrowRight":case"ArrowDown":r=Math.min(n+1,i.length-1);break;case"ArrowLeft":case"ArrowUp":r=Math.max(n-1,0);break;case"Home":r=0;break;case"End":r=i.length-1;break;default:return}t.preventDefault();let a=i[n].querySelector("a, button")||i[n],o=i[r].querySelector("a, button")||i[r];a.setAttribute("tabindex","-1"),o.setAttribute("tabindex","0"),o.focus()})}#_(){return this.#t.filter(t=>!t.hasAttribute("data-wizard-hidden"))}#O(){return this.#_()[this.#i]}#F(){let t=this.#_();this.#t.forEach(n=>{n.removeAttribute("data-wizard-active")});let i=t[this.#i];i&&i.setAttribute("data-wizard-active","");let s=this.#i+1;this.#e.setAttribute("data-wizard-current",String(s)),this.#e.setAttribute("data-wizard-total",String(t.length)),this.#i===t.length-1?this.#e.setAttribute("data-wizard-last",""):this.#e.removeAttribute("data-wizard-last"),this.#D(),this.#E(),this.#a&&this.#L(),this.#$(),this.#x()}#D(){if(!this.#s)return;let t=this.#_();this.#s.max=t.length,this.#s.value=this.#i+1}#L(){let t=`#step=${this.#i+1}`;window.location.hash!==t&&history.replaceState(null,"",t)}#B(){let i=window.location.hash.match(/step=(\d+)/);return i?parseInt(i[1],10)-1:null}#$(){if(!this.#r)return;let s=this.#O()?.querySelector("legend")?.textContent||`Step ${this.#i+1}`,n=this.#_();this.#r.textContent=`Now on step ${this.#i+1} of ${n.length}: ${s}`}#S(){if(this.#o==="none")return!0;let t=this.#O();if(!t||t.hasAttribute("data-wizard-optional"))return!0;let i=t.querySelectorAll("input, select, textarea"),s=!0;for(let n of i){let r=n;if(!r.checkValidity()){r.reportValidity(),s=!1;break}}return s}#T(){this.#t.forEach(i=>{let s=i.getAttribute("data-wizard-if");if(!s)return;this.#q(s)?i.removeAttribute("data-wizard-hidden"):i.setAttribute("data-wizard-hidden","")});let t=this.#_();this.#i>=t.length&&(this.#i=Math.max(0,t.length-1)),this.#F()}#q(t){return t.includes("||")?t.split("||").some(i=>this.#q(i.trim())):t.includes("&&")?t.split("&&").every(i=>this.#j(i.trim())):this.#j(t)}#j(t){let i=t.startsWith("!"),s=i?t.slice(1):t;if(s.includes(":")){let[o,c]=s.split(":"),l=c.startsWith("!"),u=l?c.slice(1):c,d=this.#M(o);return l?d!==u:d===u}let a=!!this.#M(s);return i?!a:a}#M(t){let i=this.#e.elements.namedItem(t);return i?i instanceof RadioNodeList?i.value:i instanceof HTMLInputElement?i.type==="checkbox"?i.checked?i.value||"true":"":i.value:i instanceof HTMLSelectElement||i instanceof HTMLTextAreaElement?i.value:"":""}#x(){let t=this.#O();if(!t||!t.hasAttribute("data-wizard-summary"))return;let i=t.querySelectorAll("[data-wizard-field]");if(i.length>0){for(let r of i){let a=r.getAttribute("data-wizard-field")||"";r.textContent=this.#M(a)||"\u2014"}return}let s=t.querySelector("[data-wizard-summary-list]");s||(s=document.createElement("dl"),s.setAttribute("data-wizard-summary-list",""),t.appendChild(s)),s.innerHTML="";let n=new Set;for(let r of this.#t){if(r===t||r.hasAttribute("data-wizard-hidden"))continue;let a=r.querySelectorAll("input, select, textarea");for(let o of a){let c=o.name;if(!c||n.has(c))continue;n.add(c);let l=this.#M(c);if(!l)continue;let u=this.#R(o),d=document.createElement("dt");d.textContent=u||c;let h=document.createElement("dd");h.textContent=l,s.append(d,h)}}}#R(t){if(t.id){let n=this.#e.querySelector(`label[for="${CSS.escape(t.id)}"]`);if(n)return n.textContent.trim()}let i=t.closest("label");if(i){let n=i.cloneNode(!0);n.querySelectorAll("input, select, textarea").forEach(a=>a.remove());let r=n.textContent.trim();if(r)return r}let s=t.closest("form-field");if(s){let n=s.querySelector("label");if(n)return n.textContent.trim()}return""}#z(t,i={}){this.#e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:i}))}goTo(t){let i=this.#_();if(t<0||t>=i.length||t>this.#i&&!this.#S())return!1;let s=this.#i;return this.#i=t,this.#F(),this.#z("wizard:step-change",{from:s,to:t}),this.#u(),!0}next(){let t=this.#_();return this.#i>=t.length-1?!1:this.goTo(this.#i+1)}prev(){return this.#i<=0?!1:this.goTo(this.#i-1)}reset(){this.#i=0,this.#F(),this.#b(),this.#z("wizard:reset")}get currentStep(){return this.#i}get totalSteps(){return this.#_().length}get form(){return this.#e}};typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{Mr(),El()}):(Mr(),El()))});var Cl={};E(Cl,{initMobileForms:()=>Sl});function Sl(e=document){return()=>{}}var Tl=w(()=>{typeof document<"u"&&Sl()});var Ml={};E(Ml,{activateTrap:()=>de,deactivateTrap:()=>pi,initFocusTraps:()=>Nr});function Nr(e=document){e.querySelectorAll(hi).forEach(t=>de(t))}function de(e){if(Ot.has(e))return;let t=document.activeElement,i=e.getAttribute("data-focus-trap")==="no-autofocus";function s(r){if(r.key!=="Tab")return;let a=Ll(e);if(!a.length)return;let o=a[0],c=a[a.length-1],l=document.activeElement;r.shiftKey&&l===o?(r.preventDefault(),c.focus()):!r.shiftKey&&l===c&&(r.preventDefault(),o.focus())}e.addEventListener("keydown",s);let n=()=>{e.removeEventListener("keydown",s)};Ot.set(e,{cleanup:n,previousFocus:t}),i||requestAnimationFrame(()=>{let r=e.querySelector("[autofocus]");if(r)r.focus();else{let a=Ll(e);a.length&&a[0].focus()}})}function pi(e){let t=Ot.get(e);t&&(t.cleanup(),Ot.delete(e),t.previousFocus&&t.previousFocus.isConnected&&t.previousFocus.focus())}function Ll(e){return[...e.querySelectorAll(Tm)].filter(t=>t.offsetParent!==null)}var hi,Tm,Ot,Lm,Nl=w(()=>{hi="[data-focus-trap]",Tm='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])',Ot=new WeakMap;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Nr()):Nr();Lm=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(hi)&&de(s),s.querySelectorAll(hi).forEach(n=>de(n))}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;Ot.has(s)&&pi(s),s.querySelectorAll(hi).forEach(n=>{Ot.has(n)&&pi(n)})}if(t.type==="attributes"&&t.attributeName==="data-focus-trap"){let i=t.target;i.hasAttribute("data-focus-trap")?de(i):pi(i)}}});Lm.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-focus-trap"]})});var _m={};var Mm,Nm,_l=w(()=>{Mm=80,Nm=40;document.querySelectorAll("header[data-scroll-hide]").forEach(e=>{let t=0,i=!1,s=e.closest("main")??window,n=()=>s===window?window.scrollY:s.scrollTop,r=()=>{let a=n(),o=a-t;!i&&o>0&&a>Mm?(e.setAttribute("data-hidden",""),i=!0):i&&o<-Nm&&(e.removeAttribute("data-hidden"),i=!1),t=a};s.addEventListener("scroll",r,{passive:!0})})});var $l={};E($l,{initSpotlights:()=>Dl});function Dm(e){if(e.__vbSpotlight)return;e.__vbSpotlight=!0;let t=s=>{let n=e.getBoundingClientRect();e.style.setProperty("--spotlight-x",((s.clientX-n.left)/n.width*100).toFixed(1)+"%"),e.style.setProperty("--spotlight-y",((s.clientY-n.top)/n.height*100).toFixed(1)+"%")},i=()=>{e.style.setProperty("--spotlight-x","50%"),e.style.setProperty("--spotlight-y","50%")};e.addEventListener("mousemove",t,{passive:!0}),e.addEventListener("mouseleave",i,{passive:!0})}function Dl(e=document){e.querySelectorAll?.("[data-spotlight]").forEach(Dm)}var Il=w(()=>{Dl()});var Pl={};E(Pl,{getHotkeyActions:()=>Fl});function Im(e){if(ql.has(e))return;ql.add(e);let t=e.getAttribute("data-hotkey");if(!t)return;let i=e.getAttribute("data-hotkey-action")||"click",s=Bl[i]||Bl.click,n=e.hasAttribute("data-hotkey-global"),r=e.getAttribute("data-hotkey-label")||e.textContent?.trim()||t,a=e.getAttribute("data-hotkey-group")||"Page Actions",o=rt(t,()=>s(e),{global:n});Ol.set(e,{combo:t,label:r,group:a,unbind:o}),document.dispatchEvent(new CustomEvent("vb:command-registry-change",{detail:{action:"add",element:e}}))}function Fl(){let e=new Map;for(let[t,i]of Ol){let s=t;if(s.hidden||s.closest("[hidden]"))continue;let n=e.get(i.group)||[];n.push({label:i.label,shortcut:i.combo,element:t}),e.set(i.group,n)}return e}var $m,ql,Ol,Bl,Rl=w(()=>{B();Wt();$m="[data-hotkey]:not(kbd)",ql=new WeakSet,Ol=new Map,Bl={click(e){e.click()},focus(e){e.focus()},submit(e){let t=e.closest("form")||(e.tagName==="FORM"?e:null);t&&t.requestSubmit()},toggle(e){"open"in e?e.open=!e.open:e.hasAttribute("hidden")?e.removeAttribute("hidden"):e.setAttribute("hidden","")}};typeof window<"u"&&(window.__hotkeyActionRegistry={getHotkeyActions:Fl});S($m,Im)});var zl={};E(zl,{collectLinksByRel:()=>Om,upgradeBlankTargets:()=>Hl});function jl(e){return new Set((e.getAttribute("rel")||"").split(/\s+/).filter(Boolean))}function Bm(e,t){e.setAttribute("rel",[...t].join(" "))}function Hl(e=document){let t=document.documentElement?.dataset?.linkPrivacy==="strict";for(let i of e.querySelectorAll('a[href][target="_blank"]')){let s=jl(i),n=[...s].some(a=>qm.has(a)),r=!1;n||(s.add("noopener"),r=!0),t&&!s.has("noreferrer")&&(s.add("noreferrer"),r=!0),r&&Bm(i,s)}}function Om(e=document){let t=new Map;for(let i of e.querySelectorAll("a[rel]"))for(let s of jl(i)){let n=t.get(s)??[];n.push(i),t.set(s,n)}return t}var qm,Vl=w(()=>{qm=new Set(["opener","noopener","noreferrer"]);Hl(document)});var Gl={};E(Gl,{initResponsiveImages:()=>Wl});function Pm(e,t){let i=e.lastIndexOf(".");if(i===-1)return"";let s=e.substring(0,i),n=e.substring(i);return t.map(r=>`${s}-${r}${n} ${r}w`).join(", ")}function Rm(e){let t=document.createElement("span");t.setAttribute("aria-hidden","true"),Object.assign(t.style,{position:"absolute",top:"4px",left:"4px",padding:"2px 6px",fontSize:"11px",fontFamily:"monospace",lineHeight:"1.4",background:"oklch(0.15 0 0 / 0.8)",color:"#0f0",borderRadius:"3px",zIndex:"1",pointerEvents:"none"});function i(){let r=(e.currentSrc||e.src).split("/").pop(),a=e.naturalWidth;t.textContent=`${r} (${a}px)`}e.addEventListener("load",i),e.complete&&i();let s=e.parentElement;return getComputedStyle(s).position==="static"&&(s.style.position="relative"),s.insertBefore(t,e),t}function jm(e){new ResizeObserver(i=>{for(let s of i){let n=Math.round(s.contentBoxSize?.[0]?.inlineSize??s.contentRect.width);n>0&&(e.sizes=`${n}px`)}}).observe(e)}function Wl(e){if(Ul.has(e))return;Ul.add(e);let t=e.getAttribute("data-responsive");if(t){let i=t.split(",").map(s=>parseInt(s.trim(),10)).filter(s=>s>0);i.length&&e.src&&(e.srcset=Pm(e.src,i))}e.srcset&&e.srcset.includes("w")&&jm(e),e.hasAttribute("loading")||(e.loading="lazy"),e.hasAttribute("decoding")||(e.decoding="async"),e.hasAttribute("data-responsive-debug")&&Rm(e)}var Fm,Ul,Yl=w(()=>{B();Fm="img[data-responsive]",Ul=new WeakSet;S(Fm,Wl)});var Zl={};E(Zl,{initFloatingLabels:()=>Xl});function Xl(e){if(Kl.has(e))return;Kl.add(e);let t=e.querySelector("input, textarea, select");t&&(t.hasAttribute("placeholder")||t.setAttribute("placeholder"," "),e.setAttribute("data-floating-label-ready",""))}var Hm,Kl,Jl=w(()=>{B();Hm="form-field[data-floating-label]",Kl=new WeakSet;S(Hm,Xl)});var tu={};E(tu,{activate:()=>_r,deactivate:()=>fi});function _r(e){if(e.getAttribute("aria-busy")==="true")return;e._vbLoadingOriginal=e.innerHTML,e._vbLoadingWidth=e.offsetWidth,e.style.minInlineSize=`${e._vbLoadingWidth}px`;let t=e.getAttribute("data-loading"),i=document.createElement("span");i.className="vb-btn-spinner",i.setAttribute("aria-hidden","true");let s=document.createElement("span");t?s.textContent=t:(s.className="visually-hidden",s.textContent=e.textContent.trim()),e.replaceChildren(i," ",s),e.setAttribute("aria-busy","true"),e.setAttribute("aria-disabled","true"),e.dataset.loadingActive="";let n=parseInt(e.getAttribute("data-loading-timeout"),10)||Vm;e._vbLoadingTimer=setTimeout(()=>fi(e),n)}function fi(e){e.getAttribute("aria-busy")==="true"&&(clearTimeout(e._vbLoadingTimer),e._vbLoadingOriginal!=null&&(e.innerHTML=e._vbLoadingOriginal,delete e._vbLoadingOriginal),e.style.minInlineSize="",e.removeAttribute("aria-busy"),e.removeAttribute("aria-disabled"),delete e.dataset.loadingActive)}function Um(e){if(Ql.has(e))return;Ql.add(e),e.addEventListener("click",s=>{e.getAttribute("aria-busy")==="true"&&(s.preventDefault(),s.stopImmediatePropagation())},!0);let t=e.form;t&&e.type==="submit"&&(t.addEventListener("submit",n=>{let r=n.submitter;(r?r===e:t.querySelector('button[type="submit"], button:not([type]), input[type="submit"]')===e)&&_r(e)}),new MutationObserver(()=>{!t.hasAttribute("data-submitting")&&e.getAttribute("aria-busy")==="true"&&fi(e)}).observe(t,{attributes:!0,attributeFilter:["data-submitting"]})),new MutationObserver(()=>{e.hasAttribute("data-loading-active")?_r(e):e.getAttribute("aria-busy")==="true"&&fi(e)}).observe(e,{attributes:!0,attributeFilter:["data-loading-active"]})}var zm,Ql,Vm,eu=w(()=>{B();zm="button[data-loading]",Ql=new WeakSet,Vm=1e4;S(zm,Um)});var su={};E(su,{initEmailForm:()=>qr});function Wm(e){let t={};for(let i of e.elements){let s=i;s.name&&(s.type==="password"||s.type==="file"||(s.type==="checkbox"?t[s.name]=s.checked:s.type==="radio"?s.checked&&(t[s.name]=s.value):t[s.name]=s.value))}return t}async function Gm(e){let t=e.currentTarget,i=t.getAttribute("data-vb-email-form"),s=t.getAttribute("data-vb-email-to");if(!i||(e.preventDefault(),t.hasAttribute(Dr)))return;t.setAttribute(Dr,"");let n=t.querySelector('button[type="submit"], button:not([type])'),r=n?.textContent;n&&(n.disabled=!0,t.dataset.vbEmailLoadingLabel&&(n.textContent=t.dataset.vbEmailLoadingLabel)),t.dispatchEvent(new CustomEvent("vb-email-form:submitting",{bubbles:!0,composed:!0,detail:{template:i}}));let a=Wm(t);try{let c=await new R("email").post("/",{to:s||a.to||a.email,template:i,data:a});t.dispatchEvent(new CustomEvent("vb-email-form:success",{bubbles:!0,composed:!0,detail:{id:c?.id}})),t.hasAttribute("data-vb-email-no-reset")||t.reset(),iu(t,"success")}catch(o){let c={error:o};o instanceof I&&(c.status=o.status,c.body=o.body),t.dispatchEvent(new CustomEvent("vb-email-form:error",{bubbles:!0,composed:!0,detail:c})),iu(t,"error")}finally{t.removeAttribute(Dr),n&&(n.disabled=!1,r&&(n.textContent=r))}}function iu(e,t){let i=e.querySelector("[data-vb-email-status]");if(!i)return;let s=e.dataset.vbEmailSuccess||"Sent. Thank you.",n=e.dataset.vbEmailError||"Sorry, the message could not be sent. Try again.";i.dataset.state=t,i.textContent=t==="success"?s:n}function Ir(e){e.hasAttribute("data-vb-email-form-init")||(e.setAttribute("data-vb-email-form-init",""),e.addEventListener("submit",Gm))}function qr(e=document){for(let t of e.querySelectorAll($r))Ir(t)}var $r,Dr,Ym,nu=w(()=>{$t();$r="form[data-vb-email-form]",Dr="data-vb-email-submitting";document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>qr()):qr();Ym=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches?.($r)&&Ir(s),s.querySelectorAll?.($r).forEach(n=>Ir(n))}});Ym.observe(document.documentElement,{childList:!0,subtree:!0})});var uu={};E(uu,{initNewsletterForm:()=>jr});function cu(e){let t=(e.getAttribute("data-vb-newsletter-form")||"subscribe").trim();return Km.includes(t)?t:"subscribe"}function ru(e){let t=[...e.querySelectorAll('input[type="checkbox"][name="lists"]')].filter(s=>s.checked).map(s=>s.value);return t.length?t:(e.getAttribute("data-vb-newsletter-lists")||"").split(",").map(s=>s.trim()).filter(Boolean)}function lu(e){return e.querySelector('input[name="email"]')}function Or(e,t,i){let s=e.querySelector("[data-vb-newsletter-status]");s&&(s.dataset.state=t,s.textContent=i)}function au(e,t,i){return i==="error"?e.dataset.vbNewsletterError||"Sorry, that did not work. Try again.":t==="unsubscribe"?e.dataset.vbNewsletterUnsubscribed||"Unsubscribed.":t==="preferences"?e.dataset.vbNewsletterSaved||"Preferences saved.":e.dataset.vbNewsletterSubscribed||"Subscribed. Check your inbox."}function ou(e,t){let i=e.querySelector('button[type="submit"], button:not([type])');i&&(t?(i.dataset.vbNewsletterPrevLabel=i.textContent||"",i.disabled=!0,e.dataset.vbNewsletterLoadingLabel&&(i.textContent=e.dataset.vbNewsletterLoadingLabel)):(i.disabled=!1,i.dataset.vbNewsletterPrevLabel!=null&&(i.textContent=i.dataset.vbNewsletterPrevLabel,delete i.dataset.vbNewsletterPrevLabel)))}async function mi(e,t,i){let s=new R("newsletter");if(e==="POST")return s.post(t,i);if(e==="GET")return s.get(t,i);throw new Error(`unsupported method ${e}`)}async function Xm(e,t,i,s){if(!s.length&&t!=="preferences")throw new Error("No lists selected.");return mi("POST",t==="unsubscribe"?"/unsubscribe":"/subscribe",{email:i,lists:s})}async function Zm(e,t){if(t)try{let i=await mi("GET","/preferences",{email:t});if(!i)return;let s=new Set(i.subscriptions||[]);for(let n of e.querySelectorAll('input[type="checkbox"][name="lists"]')){let r=n;r.checked=s.has(r.value)}e.dispatchEvent(new CustomEvent("vb-newsletter-form:preferences",{bubbles:!0,composed:!0,detail:{email:t,subscriptions:i.subscriptions,available:i.available}}))}catch(i){if(i instanceof I&&i.status===404)return;console.warn("[newsletter-form] preferences fetch failed",i)}}function Pr(e){return new Set([...e.querySelectorAll('input[type="checkbox"][name="lists"]')].filter(t=>t.checked).map(t=>t.value))}async function Jm(e,t){let i=e.__vbNewsletterSnapshot??new Set,s=Pr(e),n=[...s].filter(o=>!i.has(o)),r=[...i].filter(o=>!s.has(o)),a={};return n.length&&(a.subscribe=await mi("POST","/subscribe",{email:t,lists:n})),r.length&&(a.unsubscribe=await mi("POST","/unsubscribe",{email:t,lists:r})),e.__vbNewsletterSnapshot=Pr(e),a}async function Qm(e){let t=e.currentTarget,i=cu(t),s=lu(t)?.value?.trim();if(e.preventDefault(),!s){Or(t,"error","Email is required.");return}if(!t.hasAttribute(Br)){t.setAttribute(Br,""),ou(t,!0),t.dispatchEvent(new CustomEvent("vb-newsletter-form:submitting",{bubbles:!0,composed:!0,detail:{mode:i}}));try{let n;if(i==="preferences")n=await Jm(t,s);else{let r=ru(t);n=await Xm(t,i,s,r)}t.dispatchEvent(new CustomEvent("vb-newsletter-form:success",{bubbles:!0,composed:!0,detail:{mode:i,lists:ru(t),response:n}})),Or(t,"success",au(t,i,"success")),i==="subscribe"&&!t.hasAttribute("data-vb-newsletter-no-reset")&&t.reset()}catch(n){let r={mode:i,error:n};n instanceof I&&(r.status=n.status,r.body=n.body),t.dispatchEvent(new CustomEvent("vb-newsletter-form:error",{bubbles:!0,composed:!0,detail:r}));let a=n instanceof Error&&n.message==="No lists selected."?"Pick at least one list.":au(t,i,"error");Or(t,"error",a)}finally{t.removeAttribute(Br),ou(t,!1)}}}function Rr(e){if(!e.hasAttribute("data-vb-newsletter-form-init")&&(e.setAttribute("data-vb-newsletter-form-init",""),e.addEventListener("submit",Qm),cu(e)==="preferences")){let t=lu(e);if(t){let i=async()=>{let s=t.value.trim();s&&(await Zm(e,s),e.__vbNewsletterSnapshot=Pr(e))};t.addEventListener("change",i),t.addEventListener("blur",i)}}}function jr(e=document){for(let t of e.querySelectorAll(Fr))Rr(t)}var Fr,Br,Km,tg,du=w(()=>{$t();Fr="form[data-vb-newsletter-form]",Br="data-vb-newsletter-submitting",Km=["subscribe","unsubscribe","preferences"];document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>jr()):jr();tg=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches?.(Fr)&&Rr(s),s.querySelectorAll?.(Fr).forEach(n=>Rr(n))}});tg.observe(document.documentElement,{childList:!0,subtree:!0})});function eg(e,t){let i=Number(e);return!Number.isFinite(i)||t<=0?1:Math.min(Math.max(1,Math.floor(i)),t)}function ig({page:e,size:t}){let i=(e-1)*t;return{start:i,end:i+t}}function sg(e,t,i=2){if(t<=0)return[];if(t===1)return[1];let s=Math.max(2,e-i),n=Math.min(t-1,e+i),r=[1];s>2&&r.push("\u2026");for(let a=s;a<=n;a++)r.push(a);return n<t-1&&r.push("\u2026"),r.push(t),r}function Hr({total:e,size:t,page:i,window:s=2}){if(t<=0)return{page:(e>0,1),totalPages:e>0?1:0,start:0,end:e,pageNumbers:e>0?[1]:[]};let n=e>0?Math.ceil(e/t):0,r=eg(i,n),a=ig({page:r,size:t}),o=Math.min(a.end,e);return{page:r,totalPages:n,start:a.start,end:o,pageNumbers:sg(r,n,s)}}var hu=w(()=>{});function zr(e){switch(e.style){case"load-more":return ag(e);case"prev-next":return rg(e);default:return ng(e)}}function Vr(){let e=document.createElement("nav");return e.setAttribute("data-paged-nav",""),e.setAttribute("aria-label","Pagination"),e}function ng({page:e,totalPages:t,pageNumbers:i,prevLabel:s="Previous",nextLabel:n="Next"}){let r=Vr(),a=document.createElement("ol");a.setAttribute("role","list"),a.appendChild(he(s,e-1,e===1,!1,"prev"));for(let o of i)if(o==="\u2026"){let c=document.createElement("li");c.textContent="\u2026",c.setAttribute("aria-hidden","true"),c.setAttribute("data-paged-ellipsis",""),a.appendChild(c)}else a.appendChild(he(String(o),o,!1,o===e,"page"));return a.appendChild(he(n,e+1,e===t,!1,"next")),r.appendChild(a),r}function rg({page:e,totalPages:t,prevLabel:i="Previous",nextLabel:s="Next"}){let n=Vr(),r=document.createElement("ol");r.setAttribute("role","list"),r.appendChild(he(i,e-1,e===1,!1,"prev"));let a=document.createElement("li");return a.setAttribute("data-paged-status",""),a.setAttribute("aria-live","polite"),a.textContent=`Page ${e} of ${t}`,r.appendChild(a),r.appendChild(he(s,e+1,e===t,!1,"next")),n.appendChild(r),n}function ag({total:e,visible:t,loadMoreLabel:i=n=>`Load more (${n})`,noMoreLabel:s="No more"}){let n=Vr(),r=document.createElement("button");r.type="button",r.setAttribute("data-paged-loadmore","");let a=e-t;return r.textContent=a>0?i(a):s,r.disabled=a<=0,n.appendChild(r),n}function he(e,t,i,s,n){let r=document.createElement("li"),a=document.createElement("button");return a.type="button",a.setAttribute("data-paged-action",n),a.dataset.pagedTarget=String(t),a.textContent=e,s&&a.setAttribute("aria-current","page"),i&&(a.disabled=!0),r.appendChild(a),r}function Ur(e,{onNavigate:t,onLoadMore:i}){t&&e.querySelectorAll("button[data-paged-target]").forEach(s=>{s.addEventListener("click",()=>t(parseInt(s.dataset.pagedTarget||"1",10)))}),i&&e.querySelectorAll("button[data-paged-loadmore]").forEach(s=>{s.addEventListener("click",()=>i())})}var pu=w(()=>{});var vu={};E(vu,{initDataPaged:()=>gu});function gu(e){if(fu.has(e))return;let t={host:e,nav:{before:null,after:null},sentinel:null,intersect:null,children:[],childObserver:null,visible:0};fu.set(e,t);let i=e.dataset.pagedUrl;if(i){let n=new URL(window.location.href).searchParams.get(i);n&&!e.hasAttribute("data-paged-page")&&e.setAttribute("data-paged-page",n),window.addEventListener("popstate",()=>{let a=new URL(window.location.href).searchParams.get(i);a&&e.setAttribute("data-paged-page",a)})}t.childObserver=new MutationObserver(()=>gi(t)),t.childObserver.observe(e,{childList:!0}),e.addEventListener("paged:goto",s=>yu(t,s.detail?.page??1)),e.addEventListener("paged:loadmore",()=>Gr(t)),gi(t)}function Wr(e){return{size:parseInt(e.dataset.pagedSize||"10",10)||0,page:parseInt(e.dataset.pagedPage||"1",10)||1,style:e.dataset.pagedStyle||"numbered",window:parseInt(e.dataset.pagedWindow||"2",10)||2,controls:e.dataset.pagedControls||"after",urlParam:e.dataset.pagedUrl||""}}function bu(e){if(e.tagName==="TABLE"){let t=e.querySelector(":scope > tbody");if(t)return Array.from(t.children)}return Array.from(e.children).filter(t=>!t.matches("nav[data-paged-nav], div[data-paged-sentinel]"))}function gi(e){let{host:t}=e,i=Wr(t),s=bu(t);e.children=s;let n=Hr({total:s.length,size:i.size,page:i.page,window:i.window}),r=i.style==="load-more"||i.style==="infinite";if(r){e.visible===0&&(e.visible=i.size||s.length);let a=Math.min(e.visible,s.length);s.forEach((o,c)=>{o.hidden=c>=a})}else s.forEach((a,o)=>{a.hidden=o<n.start||o>=n.end});cg(e,n,i,r),t.dispatchEvent(new CustomEvent("paged:change",{bubbles:!0,detail:{page:n.page,size:i.size,total:s.length,totalPages:n.totalPages}}))}function cg(e,t,i,s){if(e.nav.before?.remove(),e.nav.after?.remove(),e.sentinel?.remove(),e.intersect?.disconnect(),e.intersect=null,e.nav={before:null,after:null},i.controls==="none"&&!s)return;if(s){if(i.style==="load-more"){let r=zr({style:"load-more",page:t.page,totalPages:t.totalPages,pageNumbers:t.pageNumbers,total:e.children.length,visible:e.visible});mu(e,r,i)}else{let r=document.createElement("div");r.setAttribute("data-paged-sentinel",""),r.setAttribute("aria-hidden","true"),r.style.cssText="block-size:1px;inline-size:100%",e.host.parentNode?.insertBefore(r,e.host.nextSibling),e.sentinel=r,e.intersect=new IntersectionObserver(a=>{for(let o of a)o.isIntersecting&&Gr(e)},{rootMargin:"200px"}),e.intersect.observe(r)}return}if(t.totalPages<=1)return;let n=zr({style:i.style,page:t.page,totalPages:t.totalPages,pageNumbers:t.pageNumbers,total:e.children.length,visible:e.visible});mu(e,n,i)}function mu(e,t,i){let{host:s}=e,n={onNavigate:r=>yu(e,r),onLoadMore:()=>Gr(e)};if(i.controls==="before"||i.controls==="both"){let r=t.cloneNode(!0);Ur(r,n),s.parentNode?.insertBefore(r,s),e.nav.before=r}(i.controls==="after"||i.controls==="both"||i.controls==="none")&&(Ur(t,n),s.parentNode?.insertBefore(t,s.nextSibling),e.nav.after=t)}function yu(e,t){let{host:i}=e,s=Wr(i),n=bu(i),r=Hr({total:n.length,size:s.size,page:t,window:s.window});if(r.page!==s.page){if(i.setAttribute("data-paged-page",String(r.page)),s.urlParam){let a=new URL(window.location.href);a.searchParams.set(s.urlParam,String(r.page)),window.history.pushState({},"",a)}gi(e)}}function Gr(e){let i=Wr(e.host).size||10;e.visible=Math.min(e.visible+i,e.children.length),gi(e)}var og,fu,wu=w(()=>{B();hu();pu();og="[data-paged]",fu=new WeakMap;S(og,gu)});function pe(e){if(!e)return null;let t=String(e);return t.startsWith("-")?{key:t.slice(1),direction:"desc"}:t.startsWith("+")?{key:t.slice(1),direction:"asc"}:{key:t,direction:"asc"}}function lg(e,t){let i=t==="desc"?-1:1,s=Au[e]||Au.text;return(n,r)=>{let a=ku(n),o=ku(r);return a&&o?0:a?1:o?-1:i*s(n,r)}}function xu(e,t,i,s){let n=lg(i,s),r=Array.from({length:e.length},(a,o)=>o);return r.sort((a,o)=>{let c=n(t(e[a]),t(e[o]));return c===0?a-o:c}),r}function Su(e){return e==="asc"?"desc":e==="desc"?"none":"asc"}function Eu(e){return e instanceof Date?e.getTime():Date.parse(String(e))}function ku(e){return e==null||e===""}var Au,Cu=w(()=>{Au={text(e,t){return String(e).localeCompare(String(t),void 0,{sensitivity:"base",numeric:!0})},number(e,t){let i=Number(e),s=Number(t);return Number.isNaN(i)&&Number.isNaN(s)?0:Number.isNaN(i)?1:Number.isNaN(s)||i<s?-1:i>s?1:0},date(e,t){let i=Eu(e),s=Eu(t);return Number.isNaN(i)&&Number.isNaN(s)?0:Number.isNaN(i)?1:Number.isNaN(s)||i<s?-1:i>s?1:0}}});var Mu={};E(Mu,{initDataSortable:()=>Lu});function Lu(e){if(bi.has(e))return;bi.add(e),e.tagName==="TABLE"&&dg(e);let i=e.dataset.sortableDefault;if(i&&!e.dataset.sortBy){let s=pe(i);s&&kt(e,s.key,s.direction)}}function dg(e){e.querySelectorAll(":scope > thead th[data-sort]").forEach(i=>{i.setAttribute("role","button"),i.setAttribute("tabindex","0"),i.style.cursor="pointer";let s=()=>{let n=i.dataset.sort;if(!n)return;let r=e.dataset.sortBy===n?e.dataset.sortDirection:"none",a=Su(r||"none");a==="none"?kt(e,"","none"):kt(e,n,a,i.dataset.sortType)};i.addEventListener("click",s),i.addEventListener("keydown",n=>{(n.key==="Enter"||n.key===" ")&&(n.preventDefault(),s())})})}function hg(){return document.querySelectorAll("[data-sort-target]")}function Yr(){for(let e of hg()){if(bi.has(e))continue;bi.add(e);let t=e.getAttribute("data-sort-target");if(!t)continue;let i=document.querySelector(t);if(!(!i||!i.matches("[data-sortable]")))if(e.tagName==="SELECT"){e.addEventListener("change",()=>{let n=e.value,r=pe(n);if(!r){kt(i,"","none");return}kt(i,r.key,r.direction)});let s=e.value;if(s){let n=pe(s);n&&kt(i,n.key,n.direction)}}else e.addEventListener("click",()=>{let s=e.getAttribute("data-sort-by")||"",n=pe(s);n&&kt(i,n.key,n.direction)})}}function pg(e,t,i,s={}){if(s.isTable){let r=s.colIndex,a=e.children[r];if(!a)return"";if(a.dataset.value!=null)return a.dataset.value;if(i==="date"){let o=a.querySelector("time[datetime]");if(o)return o.getAttribute("datetime")||""}return(a.textContent||"").trim()}let n=e.dataset[`sort${fg(t)}`];return n??(e.dataset.value!=null?e.dataset.value:(e.textContent||"").trim())}function fg(e){return e?e[0].toUpperCase()+e.slice(1):""}function mg(e){if(e.tagName==="TABLE"){let t=e.querySelector(":scope > tbody");return t?Array.from(t.children):[]}return Array.from(e.children)}function gg(e,t){return Array.from(e.querySelectorAll(":scope > thead th")).findIndex(s=>s.dataset.sort===t)}function kt(e,t,i,s){let n=e.tagName==="TABLE",r=mg(e);if(i==="none"||!t){e.removeAttribute("data-sort-by"),e.dataset.sortDirection="none",n&&Tu(e,"","none"),e.dispatchEvent(new CustomEvent("sort:change",{bubbles:!0,detail:{key:"",direction:"none",total:r.length}}));return}let a=bg(e,t,s),o=n?gg(e,t):-1,c=xu(r,u=>pg(u,t,a,{isTable:n,colIndex:o}),a,i),l=n?e.querySelector(":scope > tbody"):e;if(l){for(let u of c)l.appendChild(r[u]);e.dataset.sortBy=t,e.dataset.sortDirection=i,n&&Tu(e,t,i),e.hasAttribute("data-paged")&&e.dispatchEvent(new CustomEvent("paged:goto",{detail:{page:1}})),e.dispatchEvent(new CustomEvent("sort:change",{bubbles:!0,detail:{key:t,direction:i,total:r.length}}))}}function bg(e,t,i){if(i==="text"||i==="number"||i==="date")return i;if(e.tagName==="TABLE"){let r=e.querySelector(`:scope > thead th[data-sort="${yg(t)}"]`)?.dataset.sortType;if(r==="text"||r==="number"||r==="date")return r}let s=e.dataset.sortType;return s==="text"||s==="number"||s==="date"?s:"text"}function yg(e){return String(e).replace(/["\\]/g,"\\$&")}function Tu(e,t,i){e.querySelectorAll(":scope > thead th[data-sort]").forEach(n=>{n.dataset.sort===t&&i!=="none"?n.setAttribute("aria-sort",i==="asc"?"ascending":"descending"):n.setAttribute("aria-sort","none")})}var ug,bi,Nu=w(()=>{B();Cu();ug="[data-sortable]",bi=new WeakSet;S(ug,Lu);typeof document<"u"&&(document.readyState!=="loading"?Yr():document.addEventListener("DOMContentLoaded",Yr),S("[data-sort-target]",()=>Yr()))});function _u(e){if(!e)return null;let t=String(e).trim();if(!t)return null;if(t.startsWith("class:")){let i=t.slice(6).trim();return i?{kind:"class",name:i}:null}return{kind:"attr",name:t}}function fe(e){return vg.has(String(e).toLowerCase())}function Kr(e){return wg.has(String(e).toLowerCase())}function Du(e,t,i){if(e.kind==="class")return t?{present:!1}:{present:!0};if(fe(e.name))return t?{present:!1}:{present:!0,value:""};if(Kr(e.name))return{present:!0,value:t==="true"||t===!0?"false":"true"};let s=i.on??"true",n=i.off??"false";return{present:!0,value:t===s?n:s}}var vg,wg,$u=w(()=>{vg=new Set(["hidden","disabled","open","checked","readonly","required","multiple","selected","autofocus","autoplay","controls","defer","inert","loop","muted","nomodule","novalidate","playsinline","reversed"]),wg=new Set(["aria-pressed","aria-expanded","aria-selected","aria-checked"])});var Ou={};E(Ou,{initDataToggle:()=>Bu});function Bu(e){if(Iu.has(e))return;Iu.add(e);let t=_u(e.dataset.toggle);if(!t)return;let i=e.dataset.toggleTarget,s=i?document.querySelector(i):e;if(!s)return;let n=s!==e;n&&s.id&&e.setAttribute("aria-controls",s.id),t.kind==="attr"&&fe(t.name)&&!n&&e.setAttribute("aria-pressed",String(s.hasAttribute(t.name))),qu(e,s,t),e.addEventListener("click",r=>{r.preventDefault();let a={on:e.dataset.toggleOn,off:e.dataset.toggleOff},o;t.kind==="class"?o=s.classList.contains(t.name):fe(t.name)?o=s.hasAttribute(t.name):o=s.getAttribute(t.name);let c=Du(t,o,a);t.kind==="class"?c.present?s.classList.add(t.name):s.classList.remove(t.name):c.present?s.setAttribute(t.name,c.value??""):s.removeAttribute(t.name),!n&&fe(t.name)&&e.setAttribute("aria-pressed",String(c.present)),!n&&Kr(t.name),qu(e,s,t,c),e.dispatchEvent(new CustomEvent("toggle:change",{bubbles:!0,detail:{spec:t.kind==="class"?`class:${t.name}`:t.name,value:c.value,present:c.present,target:s}}))})}function qu(e,t,i,s){if(t===e)return;let n=t.hasAttribute("popover"),r=i.kind==="attr"&&i.name.startsWith("data-")&&(e.dataset.toggleOn||"").toLowerCase()==="open";if(!n&&!r)return;let a;s?a=n?s.present:s.value==="open":a=n?t.matches(":popover-open"):t.getAttribute(i.name)==="open",e.setAttribute("aria-expanded",String(a))}var Ag,Iu,Fu=w(()=>{B();$u();Ag="[data-toggle]",Iu=new WeakSet;S(Ag,Bu)});var zu={};E(zu,{EMOJI_ALIASES:()=>ju,EMOJI_GROUPS:()=>Eg,EMOJI_GROUP_ICONS:()=>xg,EMOJI_GROUP_LABELS:()=>kg,EMOJI_MAP:()=>me,getByGroup:()=>Cg,resolveEmoji:()=>Sg,searchEmoji:()=>Tg});function Hu(e){for(let[t,i,s,n]of e){if(me.has(t))continue;let r={shortcode:t,emoji:i,name:s,keywords:[],group:n};me.set(t,r),vi.push(r)}}function Sg(e){let t=me.get(e);if(t)return t;let i=ju.get(e);return i&&me.get(i)||null}function Cg(e){let t=yi.filter(s=>s.group===e),i=vi.filter(s=>s.group===e);return i.length>0?t.concat(i):t}function Tg(e){let t=e.toLowerCase().trim(),i=vi.length>0?yi.concat(vi):yi;return t?i.filter(s=>s.shortcode.includes(t)||s.name.toLowerCase().includes(t)||s.keywords&&s.keywords.some(n=>n.includes(t))):i}var yi,me,ju,Eg,kg,xg,vi,Vu=w(()=>{yi=[{shortcode:"smile",emoji:"\u{1F604}",name:"Smiling Face with Open Mouth",keywords:["happy","joy","laugh"],group:"smileys"},{shortcode:"grinning",emoji:"\u{1F600}",name:"Grinning Face",keywords:["happy","smile"],group:"smileys"},{shortcode:"laughing",emoji:"\u{1F606}",name:"Grinning Squinting Face",keywords:["happy","laugh"],group:"smileys"},{shortcode:"sweat_smile",emoji:"\u{1F605}",name:"Grinning Face with Sweat",keywords:["hot","relief"],group:"smileys"},{shortcode:"rofl",emoji:"\u{1F923}",name:"Rolling on the Floor Laughing",keywords:["lol","funny"],group:"smileys"},{shortcode:"joy",emoji:"\u{1F602}",name:"Face with Tears of Joy",keywords:["happy","cry","laugh"],group:"smileys"},{shortcode:"slightly_smiling_face",emoji:"\u{1F642}",name:"Slightly Smiling Face",keywords:["smile"],group:"smileys"},{shortcode:"upside_down_face",emoji:"\u{1F643}",name:"Upside-Down Face",keywords:["sarcasm","silly"],group:"smileys"},{shortcode:"wink",emoji:"\u{1F609}",name:"Winking Face",keywords:["flirt","joke"],group:"smileys"},{shortcode:"blush",emoji:"\u{1F60A}",name:"Smiling Face with Smiling Eyes",keywords:["happy","shy"],group:"smileys"},{shortcode:"innocent",emoji:"\u{1F607}",name:"Smiling Face with Halo",keywords:["angel","good"],group:"smileys"},{shortcode:"heart_eyes",emoji:"\u{1F60D}",name:"Smiling Face with Heart-Eyes",keywords:["love","crush"],group:"smileys"},{shortcode:"star_struck",emoji:"\u{1F929}",name:"Star-Struck",keywords:["wow","amazing"],group:"smileys"},{shortcode:"kissing_heart",emoji:"\u{1F618}",name:"Face Blowing a Kiss",keywords:["love","kiss"],group:"smileys"},{shortcode:"yum",emoji:"\u{1F60B}",name:"Face Savoring Food",keywords:["delicious","tasty"],group:"smileys"},{shortcode:"stuck_out_tongue",emoji:"\u{1F61B}",name:"Face with Tongue",keywords:["playful","silly"],group:"smileys"},{shortcode:"stuck_out_tongue_winking_eye",emoji:"\u{1F61C}",name:"Winking Face with Tongue",keywords:["silly","playful"],group:"smileys"},{shortcode:"zany_face",emoji:"\u{1F92A}",name:"Zany Face",keywords:["crazy","wild"],group:"smileys"},{shortcode:"hugs",emoji:"\u{1F917}",name:"Hugging Face",keywords:["hug","warm"],group:"smileys"},{shortcode:"thinking",emoji:"\u{1F914}",name:"Thinking Face",keywords:["hmm","consider"],group:"smileys"},{shortcode:"shushing_face",emoji:"\u{1F92B}",name:"Shushing Face",keywords:["quiet","secret"],group:"smileys"},{shortcode:"smirk",emoji:"\u{1F60F}",name:"Smirking Face",keywords:["sly","suggestive"],group:"smileys"},{shortcode:"unamused",emoji:"\u{1F612}",name:"Unamused Face",keywords:["bored","unimpressed"],group:"smileys"},{shortcode:"roll_eyes",emoji:"\u{1F644}",name:"Face with Rolling Eyes",keywords:["annoyed","whatever"],group:"smileys"},{shortcode:"grimacing",emoji:"\u{1F62C}",name:"Grimacing Face",keywords:["awkward","nervous"],group:"smileys"},{shortcode:"relieved",emoji:"\u{1F60C}",name:"Relieved Face",keywords:["calm","peaceful"],group:"smileys"},{shortcode:"pensive",emoji:"\u{1F614}",name:"Pensive Face",keywords:["sad","thoughtful"],group:"smileys"},{shortcode:"sleepy",emoji:"\u{1F62A}",name:"Sleepy Face",keywords:["tired","sleep"],group:"smileys"},{shortcode:"sleeping",emoji:"\u{1F634}",name:"Sleeping Face",keywords:["zzz","sleep"],group:"smileys"},{shortcode:"mask",emoji:"\u{1F637}",name:"Face with Medical Mask",keywords:["sick","health"],group:"smileys"},{shortcode:"nerd_face",emoji:"\u{1F913}",name:"Nerd Face",keywords:["geek","smart"],group:"smileys"},{shortcode:"sunglasses",emoji:"\u{1F60E}",name:"Smiling Face with Sunglasses",keywords:["cool","chill"],group:"smileys"},{shortcode:"confused",emoji:"\u{1F615}",name:"Confused Face",keywords:["puzzled","unsure"],group:"smileys"},{shortcode:"worried",emoji:"\u{1F61F}",name:"Worried Face",keywords:["anxious","concern"],group:"smileys"},{shortcode:"cry",emoji:"\u{1F622}",name:"Crying Face",keywords:["sad","tear"],group:"smileys"},{shortcode:"sob",emoji:"\u{1F62D}",name:"Loudly Crying Face",keywords:["sad","cry"],group:"smileys"},{shortcode:"angry",emoji:"\u{1F620}",name:"Angry Face",keywords:["mad","annoyed"],group:"smileys"},{shortcode:"rage",emoji:"\u{1F92C}",name:"Face with Symbols on Mouth",keywords:["angry","swear"],group:"smileys"},{shortcode:"exploding_head",emoji:"\u{1F92F}",name:"Exploding Head",keywords:["mind blown","shocked"],group:"smileys"},{shortcode:"flushed",emoji:"\u{1F633}",name:"Flushed Face",keywords:["embarrassed","shocked"],group:"smileys"},{shortcode:"scream",emoji:"\u{1F631}",name:"Face Screaming in Fear",keywords:["scared","horror"],group:"smileys"},{shortcode:"skull",emoji:"\u{1F480}",name:"Skull",keywords:["dead","death"],group:"smileys"},{shortcode:"clown_face",emoji:"\u{1F921}",name:"Clown Face",keywords:["joke","funny"],group:"smileys"},{shortcode:"ghost",emoji:"\u{1F47B}",name:"Ghost",keywords:["halloween","spooky"],group:"smileys"},{shortcode:"wave",emoji:"\u{1F44B}",name:"Waving Hand",keywords:["hello","goodbye"],group:"people"},{shortcode:"raised_hand",emoji:"\u270B",name:"Raised Hand",keywords:["stop","high five"],group:"people"},{shortcode:"ok_hand",emoji:"\u{1F44C}",name:"OK Hand",keywords:["perfect","nice"],group:"people"},{shortcode:"thumbsup",emoji:"\u{1F44D}",name:"Thumbs Up",keywords:["approve","good","yes"],group:"people"},{shortcode:"thumbsdown",emoji:"\u{1F44E}",name:"Thumbs Down",keywords:["disapprove","bad","no"],group:"people"},{shortcode:"clap",emoji:"\u{1F44F}",name:"Clapping Hands",keywords:["applause","bravo"],group:"people"},{shortcode:"raised_hands",emoji:"\u{1F64C}",name:"Raising Hands",keywords:["celebration","hooray"],group:"people"},{shortcode:"pray",emoji:"\u{1F64F}",name:"Folded Hands",keywords:["thanks","please","hope"],group:"people"},{shortcode:"handshake",emoji:"\u{1F91D}",name:"Handshake",keywords:["deal","agreement"],group:"people"},{shortcode:"point_up",emoji:"\u261D\uFE0F",name:"Index Pointing Up",keywords:["attention","important"],group:"people"},{shortcode:"point_right",emoji:"\u{1F449}",name:"Backhand Index Pointing Right",keywords:["direction","this"],group:"people"},{shortcode:"point_left",emoji:"\u{1F448}",name:"Backhand Index Pointing Left",keywords:["direction","that"],group:"people"},{shortcode:"point_down",emoji:"\u{1F447}",name:"Backhand Index Pointing Down",keywords:["direction","below"],group:"people"},{shortcode:"v",emoji:"\u270C\uFE0F",name:"Victory Hand",keywords:["peace","two"],group:"people"},{shortcode:"crossed_fingers",emoji:"\u{1F91E}",name:"Crossed Fingers",keywords:["luck","hope"],group:"people"},{shortcode:"muscle",emoji:"\u{1F4AA}",name:"Flexed Biceps",keywords:["strong","power"],group:"people"},{shortcode:"writing_hand",emoji:"\u270D\uFE0F",name:"Writing Hand",keywords:["write","note"],group:"people"},{shortcode:"eyes",emoji:"\u{1F440}",name:"Eyes",keywords:["look","see","watch"],group:"people"},{shortcode:"brain",emoji:"\u{1F9E0}",name:"Brain",keywords:["smart","think","mind"],group:"people"},{shortcode:"speaking_head",emoji:"\u{1F5E3}\uFE0F",name:"Speaking Head",keywords:["talk","announce"],group:"people"},{shortcode:"baby",emoji:"\u{1F476}",name:"Baby",keywords:["child","newborn"],group:"people"},{shortcode:"person_shrugging",emoji:"\u{1F937}",name:"Person Shrugging",keywords:["dunno","whatever"],group:"people"},{shortcode:"person_facepalming",emoji:"\u{1F926}",name:"Person Facepalming",keywords:["frustration","disbelief"],group:"people"},{shortcode:"person_raising_hand",emoji:"\u{1F64B}",name:"Person Raising Hand",keywords:["question","volunteer"],group:"people"},{shortcode:"ninja",emoji:"\u{1F977}",name:"Ninja",keywords:["stealth","hidden"],group:"people"},{shortcode:"dog",emoji:"\u{1F436}",name:"Dog Face",keywords:["puppy","pet"],group:"animals"},{shortcode:"cat",emoji:"\u{1F431}",name:"Cat Face",keywords:["kitten","pet"],group:"animals"},{shortcode:"mouse",emoji:"\u{1F42D}",name:"Mouse Face",keywords:["rodent"],group:"animals"},{shortcode:"rabbit",emoji:"\u{1F430}",name:"Rabbit Face",keywords:["bunny","easter"],group:"animals"},{shortcode:"fox",emoji:"\u{1F98A}",name:"Fox",keywords:["clever","sly"],group:"animals"},{shortcode:"bear",emoji:"\u{1F43B}",name:"Bear",keywords:["teddy","nature"],group:"animals"},{shortcode:"unicorn",emoji:"\u{1F984}",name:"Unicorn",keywords:["magic","fantasy"],group:"animals"},{shortcode:"bee",emoji:"\u{1F41D}",name:"Honeybee",keywords:["honey","buzz"],group:"animals"},{shortcode:"butterfly",emoji:"\u{1F98B}",name:"Butterfly",keywords:["pretty","nature"],group:"animals"},{shortcode:"turtle",emoji:"\u{1F422}",name:"Turtle",keywords:["slow","shell"],group:"animals"},{shortcode:"snake",emoji:"\u{1F40D}",name:"Snake",keywords:["reptile"],group:"animals"},{shortcode:"whale",emoji:"\u{1F433}",name:"Spouting Whale",keywords:["ocean","sea"],group:"animals"},{shortcode:"dolphin",emoji:"\u{1F42C}",name:"Dolphin",keywords:["ocean","smart"],group:"animals"},{shortcode:"eagle",emoji:"\u{1F985}",name:"Eagle",keywords:["bird","freedom"],group:"animals"},{shortcode:"owl",emoji:"\u{1F989}",name:"Owl",keywords:["wise","night"],group:"animals"},{shortcode:"penguin",emoji:"\u{1F427}",name:"Penguin",keywords:["cold","linux"],group:"animals"},{shortcode:"octopus",emoji:"\u{1F419}",name:"Octopus",keywords:["ocean","tentacle"],group:"animals"},{shortcode:"seedling",emoji:"\u{1F331}",name:"Seedling",keywords:["plant","grow"],group:"animals"},{shortcode:"evergreen_tree",emoji:"\u{1F332}",name:"Evergreen Tree",keywords:["nature","pine"],group:"animals"},{shortcode:"sunflower",emoji:"\u{1F33B}",name:"Sunflower",keywords:["flower","yellow"],group:"animals"},{shortcode:"rose",emoji:"\u{1F339}",name:"Rose",keywords:["flower","love"],group:"animals"},{shortcode:"apple",emoji:"\u{1F34E}",name:"Red Apple",keywords:["fruit","healthy"],group:"food"},{shortcode:"banana",emoji:"\u{1F34C}",name:"Banana",keywords:["fruit","yellow"],group:"food"},{shortcode:"grapes",emoji:"\u{1F347}",name:"Grapes",keywords:["fruit","wine"],group:"food"},{shortcode:"watermelon",emoji:"\u{1F349}",name:"Watermelon",keywords:["fruit","summer"],group:"food"},{shortcode:"avocado",emoji:"\u{1F951}",name:"Avocado",keywords:["guacamole","healthy"],group:"food"},{shortcode:"pizza",emoji:"\u{1F355}",name:"Pizza",keywords:["food","italian"],group:"food"},{shortcode:"hamburger",emoji:"\u{1F354}",name:"Hamburger",keywords:["burger","fast food"],group:"food"},{shortcode:"taco",emoji:"\u{1F32E}",name:"Taco",keywords:["mexican","food"],group:"food"},{shortcode:"sushi",emoji:"\u{1F363}",name:"Sushi",keywords:["japanese","fish"],group:"food"},{shortcode:"cookie",emoji:"\u{1F36A}",name:"Cookie",keywords:["sweet","biscuit"],group:"food"},{shortcode:"cake",emoji:"\u{1F382}",name:"Birthday Cake",keywords:["birthday","celebration"],group:"food"},{shortcode:"ice_cream",emoji:"\u{1F366}",name:"Soft Ice Cream",keywords:["dessert","cold"],group:"food"},{shortcode:"chocolate_bar",emoji:"\u{1F36B}",name:"Chocolate Bar",keywords:["sweet","candy"],group:"food"},{shortcode:"popcorn",emoji:"\u{1F37F}",name:"Popcorn",keywords:["movie","snack"],group:"food"},{shortcode:"coffee",emoji:"\u2615",name:"Hot Beverage",keywords:["tea","drink","morning"],group:"food"},{shortcode:"beer",emoji:"\u{1F37A}",name:"Beer Mug",keywords:["drink","bar"],group:"food"},{shortcode:"wine_glass",emoji:"\u{1F377}",name:"Wine Glass",keywords:["drink","alcohol"],group:"food"},{shortcode:"cocktail",emoji:"\u{1F378}",name:"Cocktail Glass",keywords:["drink","martini"],group:"food"},{shortcode:"hot_pepper",emoji:"\u{1F336}\uFE0F",name:"Hot Pepper",keywords:["spicy","chili"],group:"food"},{shortcode:"egg",emoji:"\u{1F95A}",name:"Egg",keywords:["breakfast","food"],group:"food"},{shortcode:"earth_americas",emoji:"\u{1F30E}",name:"Globe Americas",keywords:["world","planet"],group:"travel"},{shortcode:"earth_europe",emoji:"\u{1F30D}",name:"Globe Europe-Africa",keywords:["world","planet"],group:"travel"},{shortcode:"sun",emoji:"\u2600\uFE0F",name:"Sun",keywords:["weather","bright","warm"],group:"travel"},{shortcode:"moon",emoji:"\u{1F319}",name:"Crescent Moon",keywords:["night","sleep"],group:"travel"},{shortcode:"star",emoji:"\u2B50",name:"Star",keywords:["favorite","rating"],group:"travel"},{shortcode:"star2",emoji:"\u{1F31F}",name:"Glowing Star",keywords:["sparkle","shine"],group:"travel"},{shortcode:"cloud",emoji:"\u2601\uFE0F",name:"Cloud",keywords:["weather","sky"],group:"travel"},{shortcode:"rainbow",emoji:"\u{1F308}",name:"Rainbow",keywords:["colorful","weather"],group:"travel"},{shortcode:"snowflake",emoji:"\u2744\uFE0F",name:"Snowflake",keywords:["cold","winter"],group:"travel"},{shortcode:"zap",emoji:"\u26A1",name:"High Voltage",keywords:["lightning","electric","fast"],group:"travel"},{shortcode:"fire",emoji:"\u{1F525}",name:"Fire",keywords:["hot","flame","lit"],group:"travel"},{shortcode:"ocean",emoji:"\u{1F30A}",name:"Water Wave",keywords:["sea","wave","surf"],group:"travel"},{shortcode:"airplane",emoji:"\u2708\uFE0F",name:"Airplane",keywords:["travel","flight"],group:"travel"},{shortcode:"rocket",emoji:"\u{1F680}",name:"Rocket",keywords:["launch","space","fast"],group:"travel"},{shortcode:"car",emoji:"\u{1F697}",name:"Automobile",keywords:["drive","vehicle"],group:"travel"},{shortcode:"house",emoji:"\u{1F3E0}",name:"House",keywords:["home","building"],group:"travel"},{shortcode:"tent",emoji:"\u26FA",name:"Tent",keywords:["camping","outdoor"],group:"travel"},{shortcode:"mountain",emoji:"\u26F0\uFE0F",name:"Mountain",keywords:["nature","hike"],group:"travel"},{shortcode:"desert_island",emoji:"\u{1F3DD}\uFE0F",name:"Desert Island",keywords:["beach","vacation"],group:"travel"},{shortcode:"volcano",emoji:"\u{1F30B}",name:"Volcano",keywords:["eruption","nature"],group:"travel"},{shortcode:"soccer",emoji:"\u26BD",name:"Soccer Ball",keywords:["football","sport"],group:"activities"},{shortcode:"basketball",emoji:"\u{1F3C0}",name:"Basketball",keywords:["sport","hoop"],group:"activities"},{shortcode:"tennis",emoji:"\u{1F3BE}",name:"Tennis",keywords:["sport","ball"],group:"activities"},{shortcode:"video_game",emoji:"\u{1F3AE}",name:"Video Game",keywords:["gaming","controller"],group:"activities"},{shortcode:"dart",emoji:"\u{1F3AF}",name:"Bullseye",keywords:["target","goal"],group:"activities"},{shortcode:"trophy",emoji:"\u{1F3C6}",name:"Trophy",keywords:["winner","champion"],group:"activities"},{shortcode:"medal",emoji:"\u{1F947}",name:"Gold Medal",keywords:["first","winner"],group:"activities"},{shortcode:"tada",emoji:"\u{1F389}",name:"Party Popper",keywords:["celebration","party"],group:"activities"},{shortcode:"confetti_ball",emoji:"\u{1F38A}",name:"Confetti Ball",keywords:["party","celebration"],group:"activities"},{shortcode:"balloon",emoji:"\u{1F388}",name:"Balloon",keywords:["party","birthday"],group:"activities"},{shortcode:"art",emoji:"\u{1F3A8}",name:"Artist Palette",keywords:["paint","creative"],group:"activities"},{shortcode:"musical_note",emoji:"\u{1F3B5}",name:"Musical Note",keywords:["music","song"],group:"activities"},{shortcode:"microphone",emoji:"\u{1F3A4}",name:"Microphone",keywords:["sing","karaoke"],group:"activities"},{shortcode:"guitar",emoji:"\u{1F3B8}",name:"Guitar",keywords:["music","rock"],group:"activities"},{shortcode:"dice",emoji:"\u{1F3B2}",name:"Game Die",keywords:["chance","random"],group:"activities"},{shortcode:"bulb",emoji:"\u{1F4A1}",name:"Light Bulb",keywords:["idea","bright"],group:"objects"},{shortcode:"computer",emoji:"\u{1F4BB}",name:"Laptop",keywords:["tech","work"],group:"objects"},{shortcode:"keyboard",emoji:"\u2328\uFE0F",name:"Keyboard",keywords:["type","computer"],group:"objects"},{shortcode:"phone",emoji:"\u{1F4F1}",name:"Mobile Phone",keywords:["cell","call"],group:"objects"},{shortcode:"camera",emoji:"\u{1F4F7}",name:"Camera",keywords:["photo","picture"],group:"objects"},{shortcode:"tv",emoji:"\u{1F4FA}",name:"Television",keywords:["watch","screen"],group:"objects"},{shortcode:"battery",emoji:"\u{1F50B}",name:"Battery",keywords:["charge","power"],group:"objects"},{shortcode:"electric_plug",emoji:"\u{1F50C}",name:"Electric Plug",keywords:["power","connect"],group:"objects"},{shortcode:"mag",emoji:"\u{1F50D}",name:"Magnifying Glass Left",keywords:["search","find"],group:"objects"},{shortcode:"lock",emoji:"\u{1F512}",name:"Locked",keywords:["security","private"],group:"objects"},{shortcode:"unlock",emoji:"\u{1F513}",name:"Unlocked",keywords:["open","access"],group:"objects"},{shortcode:"key",emoji:"\u{1F511}",name:"Key",keywords:["access","password"],group:"objects"},{shortcode:"hammer",emoji:"\u{1F528}",name:"Hammer",keywords:["tool","build"],group:"objects"},{shortcode:"wrench",emoji:"\u{1F527}",name:"Wrench",keywords:["tool","fix"],group:"objects"},{shortcode:"gear",emoji:"\u2699\uFE0F",name:"Gear",keywords:["settings","config"],group:"objects"},{shortcode:"link",emoji:"\u{1F517}",name:"Link",keywords:["chain","url"],group:"objects"},{shortcode:"paperclip",emoji:"\u{1F4CE}",name:"Paperclip",keywords:["attach","clip"],group:"objects"},{shortcode:"scissors",emoji:"\u2702\uFE0F",name:"Scissors",keywords:["cut","snip"],group:"objects"},{shortcode:"pen",emoji:"\u{1F58A}\uFE0F",name:"Pen",keywords:["write","sign"],group:"objects"},{shortcode:"pencil",emoji:"\u270F\uFE0F",name:"Pencil",keywords:["write","draw"],group:"objects"},{shortcode:"book",emoji:"\u{1F4D6}",name:"Open Book",keywords:["read","study"],group:"objects"},{shortcode:"memo",emoji:"\u{1F4DD}",name:"Memo",keywords:["note","write"],group:"objects"},{shortcode:"package",emoji:"\u{1F4E6}",name:"Package",keywords:["box","delivery"],group:"objects"},{shortcode:"mailbox",emoji:"\u{1F4EC}",name:"Open Mailbox with Raised Flag",keywords:["mail","letter"],group:"objects"},{shortcode:"bell",emoji:"\u{1F514}",name:"Bell",keywords:["notification","alert"],group:"objects"},{shortcode:"red_heart",emoji:"\u2764\uFE0F",name:"Red Heart",keywords:["love","valentine"],group:"symbols"},{shortcode:"orange_heart",emoji:"\u{1F9E1}",name:"Orange Heart",keywords:["love"],group:"symbols"},{shortcode:"yellow_heart",emoji:"\u{1F49B}",name:"Yellow Heart",keywords:["love","friendship"],group:"symbols"},{shortcode:"green_heart",emoji:"\u{1F49A}",name:"Green Heart",keywords:["love","nature"],group:"symbols"},{shortcode:"blue_heart",emoji:"\u{1F499}",name:"Blue Heart",keywords:["love","trust"],group:"symbols"},{shortcode:"purple_heart",emoji:"\u{1F49C}",name:"Purple Heart",keywords:["love"],group:"symbols"},{shortcode:"broken_heart",emoji:"\u{1F494}",name:"Broken Heart",keywords:["sad","breakup"],group:"symbols"},{shortcode:"sparkles",emoji:"\u2728",name:"Sparkles",keywords:["shine","magic","new"],group:"symbols"},{shortcode:"hundred",emoji:"\u{1F4AF}",name:"Hundred Points",keywords:["perfect","score"],group:"symbols"},{shortcode:"boom",emoji:"\u{1F4A5}",name:"Collision",keywords:["explosion","impact"],group:"symbols"},{shortcode:"speech_balloon",emoji:"\u{1F4AC}",name:"Speech Balloon",keywords:["talk","chat","message"],group:"symbols"},{shortcode:"thought_balloon",emoji:"\u{1F4AD}",name:"Thought Balloon",keywords:["think","dream"],group:"symbols"},{shortcode:"check_mark",emoji:"\u2705",name:"Check Mark Button",keywords:["done","yes","complete"],group:"symbols"},{shortcode:"x",emoji:"\u274C",name:"Cross Mark",keywords:["no","wrong","delete"],group:"symbols"},{shortcode:"warning",emoji:"\u26A0\uFE0F",name:"Warning",keywords:["caution","alert"],group:"symbols"},{shortcode:"no_entry",emoji:"\u26D4",name:"No Entry",keywords:["stop","forbidden"],group:"symbols"},{shortcode:"question",emoji:"\u2753",name:"Question Mark",keywords:["help","what"],group:"symbols"},{shortcode:"exclamation",emoji:"\u2757",name:"Exclamation Mark",keywords:["important","attention"],group:"symbols"},{shortcode:"arrow_right",emoji:"\u27A1\uFE0F",name:"Right Arrow",keywords:["next","forward"],group:"symbols"},{shortcode:"arrow_left",emoji:"\u2B05\uFE0F",name:"Left Arrow",keywords:["back","previous"],group:"symbols"},{shortcode:"arrow_up",emoji:"\u2B06\uFE0F",name:"Up Arrow",keywords:["above"],group:"symbols"},{shortcode:"arrow_down",emoji:"\u2B07\uFE0F",name:"Down Arrow",keywords:["below"],group:"symbols"},{shortcode:"recycle",emoji:"\u267B\uFE0F",name:"Recycling Symbol",keywords:["environment","green"],group:"symbols"},{shortcode:"infinity",emoji:"\u267E\uFE0F",name:"Infinity",keywords:["forever","loop"],group:"symbols"},{shortcode:"checkered_flag",emoji:"\u{1F3C1}",name:"Chequered Flag",keywords:["finish","race"],group:"flags"},{shortcode:"triangular_flag",emoji:"\u{1F6A9}",name:"Triangular Flag",keywords:["red flag","warning"],group:"flags"},{shortcode:"white_flag",emoji:"\u{1F3F3}\uFE0F",name:"White Flag",keywords:["surrender","peace"],group:"flags"},{shortcode:"rainbow_flag",emoji:"\u{1F3F3}\uFE0F\u200D\u{1F308}",name:"Rainbow Flag",keywords:["pride","lgbtq"],group:"flags"},{shortcode:"pirate_flag",emoji:"\u{1F3F4}\u200D\u2620\uFE0F",name:"Pirate Flag",keywords:["jolly roger","skull"],group:"flags"},{shortcode:"flag_us",emoji:"\u{1F1FA}\u{1F1F8}",name:"Flag: United States",keywords:["usa","america"],group:"flags"},{shortcode:"flag_gb",emoji:"\u{1F1EC}\u{1F1E7}",name:"Flag: United Kingdom",keywords:["uk","britain"],group:"flags"},{shortcode:"flag_fr",emoji:"\u{1F1EB}\u{1F1F7}",name:"Flag: France",keywords:["french"],group:"flags"},{shortcode:"flag_de",emoji:"\u{1F1E9}\u{1F1EA}",name:"Flag: Germany",keywords:["german"],group:"flags"},{shortcode:"flag_jp",emoji:"\u{1F1EF}\u{1F1F5}",name:"Flag: Japan",keywords:["japanese"],group:"flags"},{shortcode:"flag_kr",emoji:"\u{1F1F0}\u{1F1F7}",name:"Flag: South Korea",keywords:["korean"],group:"flags"},{shortcode:"flag_br",emoji:"\u{1F1E7}\u{1F1F7}",name:"Flag: Brazil",keywords:["brazilian"],group:"flags"},{shortcode:"flag_in",emoji:"\u{1F1EE}\u{1F1F3}",name:"Flag: India",keywords:["indian"],group:"flags"},{shortcode:"flag_ca",emoji:"\u{1F1E8}\u{1F1E6}",name:"Flag: Canada",keywords:["canadian","maple"],group:"flags"},{shortcode:"flag_au",emoji:"\u{1F1E6}\u{1F1FA}",name:"Flag: Australia",keywords:["australian"],group:"flags"}],me=new Map(yi.map(e=>[e.shortcode,e])),ju=new Map([["+1","thumbsup"],["-1","thumbsdown"],["heart","red_heart"],["thumbs_up","thumbsup"],["thumbs_down","thumbsdown"],["grin","grinning"],["laughing_crying","joy"],["lol","rofl"],["smiley","smile"],["cool","sunglasses"],["nerd","nerd_face"],["kiss","kissing_heart"],["hug","hugs"],["think","thinking"],["sad","cry"],["mad","angry"],["shrug","person_shrugging"],["facepalm","person_facepalming"],["raised_fist","muscle"],["pray_hands","pray"],["hi","wave"],["bye","wave"],["lightning","zap"],["flame","fire"],["hot","fire"],["bomb","boom"],["idea","bulb"],["laptop","computer"],["search","mag"],["party","tada"],["celebrate","tada"],["congrats","tada"],["check","check_mark"],["done","check_mark"],["yes","check_mark"],["no","x"],["wrong","x"],["love","red_heart"],["star_eyes","star_struck"],["mindblown","exploding_head"],["poop","skull"],["memo_pad","memo"],["notes","memo"],["coffee_cup","coffee"],["tea","coffee"]]),Eg=["smileys","people","animals","food","travel","activities","objects","symbols","flags"],kg={smileys:"Smileys & Emotion",people:"People & Body",animals:"Animals & Nature",food:"Food & Drink",travel:"Travel & Places",activities:"Activities",objects:"Objects",symbols:"Symbols",flags:"Flags"},xg={smileys:"\u{1F600}",people:"\u{1F44B}",animals:"\u{1F436}",food:"\u{1F355}",travel:"\u{1F30D}",activities:"\u{1F389}",objects:"\u{1F4A1}",symbols:"\u2764\uFE0F",flags:"\u{1F3C1}"},vi=[];globalThis.__vbEmojiRegister=Hu;globalThis.__vbEmojiExtended&&(Hu(globalThis.__vbEmojiExtended),delete globalThis.__vbEmojiExtended)});var Ku={};E(Ku,{initEmoji:()=>_g});async function Wu(){if(wi)return;wi=(await Promise.resolve().then(()=>(Vu(),zu))).resolveEmoji}async function _g(e=document){let t=e.querySelectorAll(Gu);t.length!==0&&(await Wu(),t.forEach(Yu))}function Yu(e){if(e.hasAttribute("data-emoji-init"))return;if(e.setAttribute("data-emoji-init",""),Mg.has(e.tagName)){Dg(e);return}let t=e.getAttribute("data-emoji-unknown")||"keep";if(Uu(e,t),e.getAttribute("data-emoji-scan")==="observe"){let i=null;new MutationObserver(()=>{i&&clearTimeout(i),i=setTimeout(()=>{Uu(e,t),i=null},Ng)}).observe(e,{childList:!0,subtree:!0,characterData:!0})}}function Dg(e){let t=!1;e.addEventListener("compositionstart",()=>{t=!0}),e.addEventListener("compositionend",()=>{t=!1,Xr(e)}),e.addEventListener("input",()=>{t||Xr(e)}),e.value&&dt.test(e.value)&&(dt.lastIndex=0,Xr(e))}function Xr(e){let t=e.value;dt.lastIndex=0;let i,s="",n=0,r=0,a=e.selectionStart??t.length,o=!1;for(;(i=dt.exec(t))!==null;){let l=i[0],u=i[1],d=wi(u);if(s+=t.slice(n,i.index),d){s+=d.emoji,o=!0;let h=i.index+l.length;a>=h?r+=l.length-d.emoji.length:a>i.index&&(r+=a-i.index-d.emoji.length)}else s+=l;n=i.index+l.length}if(!o)return;s+=t.slice(n),e.value=s;let c=Math.max(0,a-r);e.setSelectionRange(c,c)}function Uu(e,t){let i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(n){let r=n.parentElement;return!r||Lg.has(r.tagName)||r.isContentEditable||r.hasAttribute("data-emoji-processed")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),s=[];for(;i.nextNode();)dt.test(i.currentNode.textContent??"")&&s.push(i.currentNode),dt.lastIndex=0;for(let n of s)$g(n,t)}function $g(e,t){let i=e.textContent;dt.lastIndex=0;let s,n=0,r=[],a=!1;for(;(s=dt.exec(i))!==null;){let o=s[1],c=wi(o);s.index>n&&r.push(i.slice(n,s.index)),c?(r.push(c.emoji),a=!0):t==="strip"?a=!0:r.push(s[0]),n=s.index+s[0].length}a&&(n<i.length&&r.push(i.slice(n)),e.textContent=r.join(""))}function Ig(e){Wu().then(()=>Yu(e))}var wi,Gu,dt,Lg,Mg,Ng,Xu=w(()=>{B();wi=null;Gu="[data-emoji]",dt=/:([a-z0-9_+-]+):/g,Lg=new Set(["SCRIPT","STYLE","CODE","PRE","TEXTAREA"]),Mg=new Set(["INPUT","TEXTAREA"]),Ng=100;S(Gu,Ig)});var Qu={};E(Qu,{getRegisteredCommands:()=>Zu,initCommands:()=>Jr,scanAutoDiscoverable:()=>Ju});function Ai(e){if(W.has(e)||e.hasAttribute("data-command-init"))return;e.setAttribute("data-command-init","");let t=e.getAttribute("data-command")||e.textContent.trim();if(!t)return;let i=e.getAttribute("data-command-group")||qg,s=e.getAttribute("data-command-icon")||null,n=e.getAttribute("data-shortcut")||null,r=null;n&&(r=rt(n,()=>e.click()));let a={element:e,label:t,group:i,icon:s,shortcut:n,unbind:r};W.set(e,a),document.dispatchEvent(new CustomEvent("vb:command-registry-change",{detail:{action:"add",entry:a}}))}function Zr(e){let t=W.get(e);t&&(t.unbind?.(),W.delete(e),e.removeAttribute("data-command-init"),document.dispatchEvent(new CustomEvent("vb:command-registry-change",{detail:{action:"remove",element:e}})))}function Zu(){let e=new Map;for(let t of W.values()){if(t.element.hidden||t.element.closest("[hidden]"))continue;let i=e.get(t.group)||[];i.push(t),e.set(t.group,i)}return e}function Jr(e=document){e.querySelectorAll(Ft).forEach(Ai)}function Ju(){let e='footer, aside, dialog, [hidden], [aria-hidden="true"]',i=[];return document.querySelectorAll("nav a[href]").forEach(s=>{if(s.closest(e)||W.has(s))return;let n=s.textContent.trim();!n||i.length>=50||i.push({element:s,label:n,group:"Navigation",icon:null,shortcut:null,auto:!0,action:null})}),document.querySelectorAll("h2[id], h3[id]").forEach(s=>{if(s.closest(e)||W.has(s))return;let n=s.textContent.trim();!n||i.length>=50||i.push({element:s,label:`Jump to: ${n}`,group:"On This Page",icon:null,shortcut:null,auto:!0,action:()=>s.scrollIntoView({behavior:"smooth"})})}),i}var Ft,qg,W,Bg,td=w(()=>{Wt();Ft="[data-command], [commandfor]",qg="Page Actions",W=new Map;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Jr()):Jr();Bg=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Ft)&&Ai(s),s.querySelectorAll(Ft).forEach(Ai)}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;W.has(s)&&Zr(s),s.querySelectorAll(Ft).forEach(n=>{W.has(n)&&Zr(n)})}if(t.type==="attributes"&&t.target.nodeType===Node.ELEMENT_NODE){let i=t.target;i.matches(Ft)&&!W.has(i)?Ai(i):!i.matches(Ft)&&W.has(i)&&Zr(i)}}});Bg.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-command","commandfor"]});window.__commandRegistry={getRegisteredCommands:Zu,scanAutoDiscoverable:Ju}});function ia(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function od(e){Ct=e}function x(e,t=""){let i=typeof e=="string"?e:e.source,s={replace:(n,r)=>{let a=typeof r=="string"?r:r.source;return a=a.replace(O.caret,"$1"),i=i.replace(n,a),s},getRegex:()=>new RegExp(i,t)};return s}function Q(e,t){if(t){if(O.escapeTest.test(e))return e.replace(O.escapeReplace,sd)}else if(O.escapeTestNoEncode.test(e))return e.replace(O.escapeReplaceNoEncode,sd);return e}function nd(e){try{e=encodeURI(e).replace(O.percentDecode,"%")}catch{return null}return e}function rd(e,t){let i=e.replace(O.findPipe,(r,a,o)=>{let c=!1,l=a;for(;--l>=0&&o[l]==="\\";)c=!c;return c?"|":" |"}),s=i.split(O.splitPipe),n=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;n<s.length;n++)s[n]=s[n].trim().replace(O.slashPipe,"|");return s}function be(e,t,i){let s=e.length;if(s===0)return"";let n=0;for(;n<s;){let r=e.charAt(s-n-1);if(r===t&&!i)n++;else if(r!==t&&i)n++;else break}return e.slice(0,s-n)}function wb(e,t){if(e.indexOf(t[1])===-1)return-1;let i=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])i++;else if(e[s]===t[1]&&(i--,i<0))return s;return i>0?-2:-1}function Ab(e,t=0){let i=t,s="";for(let n of e)if(n===" "){let r=4-i%4;s+=" ".repeat(r),i+=r}else s+=n,i++;return s}function ad(e,t,i,s,n){let r=t.href,a=t.title||null,o=e[1].replace(n.other.outputLinkReplace,"$1");s.state.inLink=!0;let c={type:e[0].charAt(0)==="!"?"image":"link",raw:i,href:r,title:a,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,c}function Eb(e,t,i){let s=e.match(i.other.indentCodeCompensation);if(s===null)return t;let n=s[1];return t.split(`
1
+ var sb=Object.defineProperty;var w=(e,t)=>()=>(e&&(t=e(e=0)),t);var T=(e,t)=>{for(var i in t)sb(e,i,{get:t[i],enumerable:!0})};function Xc(){return hn()}function hn(){if(typeof window<"u"&&window.__VB_THEME_BASE)return String(window.__VB_THEME_BASE).replace(/\/$/,"");if(Yc)return Yc;if(typeof document<"u"){let e=document.querySelectorAll('script[src*="vanilla-breeze"]');for(let t of e){let i=t.getAttribute("src");if(i){let s=i.lastIndexOf("/");if(s!==-1)return i.slice(0,s)}}}return"/cdn"}function Zc(e){return typeof CSS<"u"&&CSS.escape?CSS.escape(e):String(e).replace(/["\\]/g,"\\$&")}function Jc(e){document.querySelectorAll(`link[data-vb-theme-preload="${Zc(e)}"]`).forEach(t=>t.remove())}function fn(e){return rb.has(e)}function ab(e,t){return`${t}/themes/${e}.css`}function Qc(e,t){if(!fn(e))return Promise.resolve();if(dn.has(e))return dn.get(e);let i=import(`${t}/packs/${e}.full.js`).catch(()=>{});return dn.set(e,i),i}function ob(e,t){let i=hn(),s=()=>{(fn(t)||e.hasAttribute("data-vb-pack"))&&Qc(t,i)};return e.getAttribute("data-vb-theme-state")==="error"?Promise.reject(new Error(`Failed to load theme: ${t}`)):e.getAttribute("data-vb-theme-state")==="ready"||e.sheet?(s(),Promise.resolve()):new Promise((n,r)=>{let a=()=>{e.setAttribute("data-vb-theme-state","ready"),c(),s(),n(void 0)},o=()=>{e.setAttribute("data-vb-theme-state","error"),$t.delete(t),c(),r(new Error(`Failed to load theme: ${t}`))},c=()=>{e.removeEventListener("load",a),e.removeEventListener("error",o)};e.addEventListener("load",a,{once:!0}),e.addEventListener("error",o,{once:!0})})}async function Re(e){if(!e||nb.has(e))return;if($t.has(e))return $t.get(e);if(typeof document<"u"){let s=document.querySelector(`link[data-vb-theme="${Zc(e)}"]`);if(s){let n=ob(s,e);return $t.set(e,n),n}}let t=hn(),i=fn(e)?lb(e,t):cb(e,t);return $t.set(e,i),i}async function cb(e,t){let i=ab(e,t);return new Promise((s,n)=>{Jc(e);let r=document.createElement("link");r.rel="stylesheet",r.href=i,r.setAttribute("data-vb-theme",e),r.setAttribute("data-vb-theme-state","loading"),r.onload=()=>{r.setAttribute("data-vb-theme-state","ready"),s()},r.onerror=()=>{r.setAttribute("data-vb-theme-state","error"),r.remove(),$t.delete(e),n(new Error(`Failed to load theme: ${e}`))},document.head.appendChild(r)})}function lb(e,t){let i=`${t}/packs/${e}.theme.css`,s=`${t}/packs/${e}.effects.css`;return new Promise((n,r)=>{Jc(e);let a=document.createElement("link");a.rel="stylesheet",a.href=i,a.setAttribute("data-vb-theme",e),a.setAttribute("data-vb-pack",e),a.setAttribute("data-vb-theme-state","loading"),a.onload=()=>{a.setAttribute("data-vb-theme-state","ready");let o=document.createElement("link");o.rel="stylesheet",o.href=s,o.setAttribute("data-vb-pack-effects",e),document.head.appendChild(o),Qc(e,t),n()},a.onerror=()=>{a.setAttribute("data-vb-theme-state","error"),a.remove(),$t.delete(e),r(new Error(`Failed to load pack: ${e}`))},document.head.appendChild(a)})}var $t,dn,Yc,nb,rb,pn=w(()=>{$t=new Map,dn=new Map,Yc=null;nb=new Set(["default","a11y-high-contrast","a11y-large-text","a11y-dyslexia","modern","minimal","classic"]),rb=new Set(["kawaii","memphis"])});function ub(){let e=globalThis.localStorage;if(!e)throw new Error("VBStore: localStorage is not available in this environment");return{async getRaw(t){return e.getItem(t)},async setRaw(t,i){e.setItem(t,i)},async removeRaw(t){e.removeItem(t)},async keys(t){let i=[];for(let s=0;s<e.length;s++){let n=e.key(s);n&&n.startsWith(t)&&i.push(n)}return i}}}function mt(){return Ni[Li]||(Ni[Li]=ub()),Ni[Li]}function bn(e,t){if(typeof e!="string"||!e)throw new TypeError("VBStore: namespace must be a non-empty string");if(typeof t!="string"||!t)throw new TypeError("VBStore: key must be a non-empty string");return`vb:${e}:${t}`}function nl(e){if(typeof e!="string"||!e)throw new TypeError("VBStore: namespace must be a non-empty string");return`vb:${e}:`}function rl(e){try{let t=JSON.parse(e);if(t&&typeof t=="object"&&typeof t.timestamp=="number")return t}catch{}return null}var Li,Ni,x,ot=w(()=>{Li="__vbStoreBackend",Ni=globalThis;x={configure(e={}){Ni[Li]=e.backend??null},async set(e,t,i){let s={data:i,timestamp:Date.now()};await mt().setRaw(bn(e,t),JSON.stringify(s))},async get(e,t,i){let s=await mt().getRaw(bn(e,t));if(s==null)return null;let n=rl(s);return!n||i?.maxAge!=null&&Date.now()-n.timestamp>i.maxAge?null:n.data},async remove(e,t){await mt().removeRaw(bn(e,t))},async list(e){let t=nl(e),i=await mt().keys(t),s=[];for(let n of i){let r=await mt().getRaw(n);if(r==null)continue;let a=rl(r);a&&s.push({key:n.slice(t.length),data:a.data,timestamp:a.timestamp})}return s},async clear(e){let t=nl(e),i=await mt().keys(t);for(let s of i)await mt().removeRaw(s)},async clearAll(){let e=await mt().keys("vb:");for(let t of e)await mt().removeRaw(t)},async setMany(e,t){for(let[i,s]of t)await x.set(e,i,s)}};if(typeof window<"u"){let e=window.VB??(window.VB={});e.store??=x}});function sy(e){return String(e).replace(/[\u0000- \u007f-\u009f]/g,"").toLowerCase()}function kl(e,t=!1){let i=sy(e);return t?/(^|,)(javascript|vbscript|livescript):/.test(i)?!0:/(^|,)data:/.test(i)?i.split(/(?=data:)/).filter(n=>n.startsWith("data:")).some(n=>!/^data:(image|audio|video|font)\//.test(n)):!1:/^(javascript|vbscript|livescript|data):/.test(i)}function Cl(e){let t=String(e).replace(/\/\*[\s\S]*?\*\//g,"").replace(/\\/g,"").replace(/\s+/g,"").toLowerCase();return/expression\(|javascript:|vbscript:|-moz-binding|behavior:|@import|position:fixed/.test(t)}function ry(e,t){if(Sl.has(t))return!0;let i=e.namespaceURI;return!!(i&&!Wb.has(i)||t==="title"&&i!==Fn||xl.has(t)&&i===Fn&&e.children?.length||Gb.has(t)&&(e.getAttribute("attributeName")||e.getAttribute("attributename")||"").toLowerCase().includes("href"))}function ay(e,t){for(let i of[...e.attributes]){let s=i.name.toLowerCase();if(s.startsWith("on")||Xb.has(s)||!t.keepIds&&Zb.has(s)){e.removeAttribute(i.name);continue}if(s==="style"){(!t.keepStyle||Cl(i.value))&&e.removeAttribute(i.name);continue}if((s==="id"||s==="name")&&!t.keepIds){let n=ny(i.value);s==="id"?t.ids.set(i.value,n):t.ids.set(`name:${i.value}`,n),e.setAttribute(i.name,n);continue}if(Kb.has(s)||s.endsWith(":href")){kl(i.value,!1)&&e.removeAttribute(i.name);continue}Yb.has(s)&&kl(i.value,!0)&&e.removeAttribute(i.name)}}function oy(e,t){let i=(e.getAttribute("type")||"").toLowerCase();t==="button"&&i!=="button"&&e.setAttribute("type","button"),t==="input"&&/^(submit|reset|image)$/.test(i)&&e.setAttribute("type","button")}function cy(e,t){for(let i of e)for(let s of[...i.attributes]){let n=s.name.toLowerCase(),r=s.value;if((n==="href"||n.endsWith(":href"))&&r.startsWith("#")){let a=ly(r.slice(1));t.has(a)&&i.setAttribute(s.name,`#${t.get(a)}`)}else if(n==="usemap"&&r.startsWith("#")){let a=t.get(`name:${r.slice(1)}`);a?i.setAttribute(s.name,`#${a}`):i.removeAttribute(s.name)}else if(Jb.has(n)){let a=r.split(/\s+/).filter(Boolean).map(o=>t.get(o)||(o.startsWith(qn)?o:null)).filter(Boolean);a.length?i.setAttribute(s.name,a.join(" ")):i.removeAttribute(s.name)}else r.includes("url(#")&&i.setAttribute(s.name,r.replace(/url\(#([^)]+)\)/g,(a,o)=>t.has(o)?`url(#${t.get(o)})`:a))}}function ly(e){try{return decodeURIComponent(e)}catch{return e}}function Bn(e){let t=e.childNodes;if(t)for(let i of[...t])i.nodeType===8?i.remove():(i.nodeType===1||i.nodeType===11)&&Bn(i)}function jn(e,t){Bn(e);let i=[...e.querySelectorAll("*")];t.includeRoot&&i.unshift(e);let s=new Map,n=[],r={...t,ids:s};for(let a of i){if(!dy(a,e))continue;let o=Tl(a);if(t.svgOnly&&(xl.has(o)||o==="style")){if(o==="style"&&Cl(a.textContent||"")){a.remove();continue}}else if(ry(a,o)){a.remove();continue}if(!t.keepIds&&!t.svgOnly&&ty.has(o)){uy(a);continue}if(o==="template"){let l=a.content;l&&jn(l,{...t,includeRoot:!1})}ay(a,r),t.keepIds||oy(a,o);let c=Qb[o];if(c)for(let l of c)a.removeAttribute(l);if(o==="include-file"&&!t.allowIncludeFile&&a.removeAttribute("src"),!t.keepIds&&!t.svgOnly&&o.includes("-")&&o!=="include-file"&&!iy.has(o))for(let l of ey)a.removeAttribute(l);n.push(a)}!t.keepIds&&s.size&&cy(n,s)}function uy(e){let t=e.parentNode;if(t){for(let i of[...e.childNodes])t.insertBefore(i,e);e.remove()}}function dy(e,t){let i=e;for(;i;){if(i===t)return!0;i=i.parentNode??i.parent??null}return!1}function se(e,t={}){let i=document.createElement("template");return e&&typeof e=="string"&&(i.innerHTML=e,jn(i.content,{allowIncludeFile:!!t.allowIncludeFile,keepIds:!!t.keepIds,keepStyle:!!t.keepStyle})),i.content}function Ll(e){return!e||typeof e!="object"||!("attributes"in e)||jn(e,{includeRoot:!0,keepIds:!0,keepStyle:!0,svgOnly:!0}),e}function Nl(e){let t=document.createElement("template");if(!e||typeof e!="string")return t.content;t.innerHTML=e,t.content.querySelector("math")||(t.innerHTML=`<math>${e}</math>`);let i=t.content;Bn(i);for(let s of[...i.childNodes])s.nodeType===3&&!s.textContent?.trim()||(s.nodeType!==1||s.namespaceURI!==On)&&s.remove();for(let s of[...i.querySelectorAll("*")]){if(!i.contains(s))continue;let n=Tl(s);if(s.namespaceURI!==On||Sl.has(n)){s.remove();continue}for(let r of[...s.attributes])hy.test(r.name.toLowerCase())&&s.removeAttribute(r.name)}return i}var Ub,Fn,On,Wb,qn,Sl,xl,Gb,Kb,Yb,Xb,Zb,Jb,Qb,ty,ey,iy,Tl,ny,hy,Rt=w(()=>{Ub="http://www.w3.org/1999/xhtml",Fn="http://www.w3.org/2000/svg",On="http://www.w3.org/1998/Math/MathML",Wb=new Set([Ub,Fn,On]),qn="user-content-",Sl=new Set(["script","iframe","frame","frameset","object","embed","applet","portal","fencedframe","form","base","link","meta","noscript","foreignobject","style","xmp","noembed","noframes","plaintext","mglyph","malignmark","annotation-xml"]),xl=new Set(["title","desc"]),Gb=new Set(["animate","set","animatemotion","animatetransform"]),Kb=new Set(["href","xlink:href","action","formaction","data","codebase","cite","background","longdesc","manifest","to","from","values","by"]),Yb=new Set(["src","poster","srcset"]),Xb=new Set(["srcdoc","form","formaction","formmethod","formtarget","formenctype","formnovalidate","action","method","ping"]),Zb=new Set(["popovertarget","popovertargetaction","commandfor","command","interestfor","autofocus"]),Jb=new Set(["for","headers","list","aria-labelledby","aria-describedby","aria-controls","aria-owns","aria-flowto","aria-details","aria-errormessage","aria-activedescendant"]),Qb={"include-file":["trusted","allow-scripts","allow-cross-origin"],"markdown-viewer":["src","sanitize","ping","allow-cross-origin"]},ty=new Set(["social-embed","youtube-player","geo-map"]),ey=["src","src-dark","data-src","url","endpoint","tile-url","data-versions"],iy=new Set(["audio-player","video-player","image-map","brand-mark"]);Tl=e=>String(e.localName||e.tagName||"").toLowerCase(),ny=e=>e.startsWith(qn)?e:qn+e;hy=/^(on|href$|src$|style$|id$|name$|xlink|xml:|form[a-z])/});function yy(e,t){let i=Dl.get(t);i||Dl.set(t,i=new Map);let s=i.get(e);if(!s||!s.region.isConnected){let r=(t.ownerDocument||document).createElement("span");r.setAttribute("data-vb-announcer",e),r.setAttribute("role",e==="assertive"?"alert":"status"),r.setAttribute("aria-live",e),r.setAttribute("aria-atomic","true"),r.style.cssText=by,t.appendChild(r),s={region:r},i.set(e,s)}return s}function Z(e,{politeness:t="polite",root:i}={}){let s=String(e??"").trim();if(!s||typeof document>"u")return null;let n=i||document.body;if(!n)return null;let a=yy(t==="assertive"?"assertive":"polite",n);return clearTimeout(a.write),clearTimeout(a.clear),a.region.textContent="",a.write=setTimeout(()=>{a.region.textContent=s,a.clear=setTimeout(()=>{a.region.textContent=""},7e3)},50),a.region}function R(e,t,i,s){let n=`data-label-${t}`,a=e?.closest?.(`[${n}]`)?.getAttribute(n)||i;return s?a.replace(/\{(\w+)\}/g,(o,c)=>c in s?String(s[c]):o):a}var by,Dl,wt=w(()=>{by=["position:absolute","inline-size:1px","block-size:1px","padding:0","margin:-1px","overflow:hidden","clip-path:inset(50%)","white-space:nowrap","border:0"].join(";"),Dl=new WeakMap});var Pl={};T(Pl,{copyRich:()=>Ey,copyText:()=>gt,initCopyButtons:()=>xy,pasteFromClipboard:()=>Il});function wy(e){if(typeof document.execCommand!="function"||!document.body)return!1;let t=document.activeElement,i=document.createElement("textarea");i.value=e,i.setAttribute("readonly",""),i.setAttribute("aria-hidden","true"),i.style.cssText="position:fixed;inset-block-start:0;inset-inline-start:0;opacity:0;pointer-events:none",document.body.appendChild(i),i.select();let s=!1;try{s=document.execCommand("copy")}catch{s=!1}return i.remove(),t?.focus?.({preventScroll:!0}),s}function Ay(e){if(!e)return!1;if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)return e.focus(),e.select(),!0;let t=window.getSelection?.();if(!t)return!1;let i=document.createRange();return i.selectNodeContents(e),t.removeAllRanges(),t.addRange(i),!t.isCollapsed}async function gt(e,t={}){if(e==null||e==="")return!1;let{button:i,duration:s=Gn}=t,n=!1,r=null;try{if(!navigator.clipboard?.writeText)throw new Error("Clipboard API unavailable");await navigator.clipboard.writeText(e),n=!0}catch(o){r=o,n=wy(e)}if(n)return ne({button:i,duration:s,state:"copied",eventName:"copy:done",eventDetail:{text:e},message:t.announceMessage??R(i,"copied",Pt.copied)}),!0;let a=Ay(t.source);return ne({button:i,duration:s,state:"failed",eventName:"copy:error",eventDetail:{text:e,error:r},message:t.failureMessage??R(i,"copy-failed",a?Pt["copy-failed-selected"]:Pt["copy-failed"])}),!1}async function Ey(e,t={}){let{text:i,html:s,blob:n}=e??{};if(!i&&!s&&!n)return!1;let{button:r,duration:a=Gn}=t;if(typeof ClipboardItem<"u"&&typeof navigator.clipboard?.write=="function"){let c={};i&&(c["text/plain"]=new Blob([i],{type:"text/plain"})),s&&(c["text/html"]=new Blob([s],{type:"text/html"})),n&&(c[n.type]=n);try{return await navigator.clipboard.write([new ClipboardItem(c)]),ne({button:r,duration:a,state:"copied",eventName:"copy:done",eventDetail:{payload:e},message:t.announceMessage??R(r,"copied",Pt.copied)}),!0}catch{}}return i?gt(i,t):(ne({button:r,duration:a,state:"failed",eventName:"copy:error",eventDetail:{payload:e,error:null},message:t.failureMessage??R(r,"copy-failed",Pt["copy-failed"])}),!1)}function ne({button:e,duration:t,message:i,eventDetail:s,state:n,eventName:r}){if(e){e.dataset.state=n;let a=Wn.get(e);a&&clearTimeout(a),Wn.set(e,setTimeout(()=>{e.dataset.state===n&&delete e.dataset.state,Wn.delete(e)},t)),e.dispatchEvent(new CustomEvent(r,{bubbles:!0,detail:s}))}Z(i,{politeness:n==="failed"?"assertive":"polite"})}async function Il(e,t={}){let{button:i,duration:s=Gn}=t,n;try{if(!navigator.clipboard?.readText)throw new Error("Clipboard API unavailable");n=await navigator.clipboard.readText()}catch(r){return ne({button:i,duration:s,state:"failed",eventName:"paste:error",eventDetail:{target:e,error:r},message:t.failureMessage??R(i,"paste-failed",Pt["paste-failed"])}),null}return e&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement?e.value=n:e.textContent=n,e.dispatchEvent(new Event("input",{bubbles:!0}))),ne({button:i,duration:s,state:"pasted",eventName:"paste:done",eventDetail:{text:n,target:e},message:t.announceMessage??R(i,"pasted",Pt.pasted)}),n}function Rl(e){let t=e.dataset.copyTarget;if(!t)return null;try{return document.querySelector(t)}catch{return null}}function ky(e){if(e.dataset.copy)return e.dataset.copy;let t=Rl(e);if(!t)return"";let i=e.dataset.copyAttr;return i?t.getAttribute(i)??"":t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement?t.value:t.textContent??""}function Sy(e){let t=e.target?.closest?.(vy);if(!t||t.matches(':disabled, [aria-disabled="true"]'))return;if(t.dataset.pasteTarget){let s=null;try{s=document.querySelector(t.dataset.pasteTarget)}catch{}if(!s)return;Il(s,{button:t});return}let i=ky(t);i&&gt(i,{button:t,source:Rl(t)??void 0})}function xy(e=document){e.querySelectorAll("[data-copy-init]").forEach(t=>t.removeAttribute("data-copy-init"))}var Gn,vy,Pt,Wn,re=w(()=>{wt();Gn=1500,vy="[data-copy], [data-copy-target], [data-paste-target]",Pt={copied:"Copied to clipboard",pasted:"Pasted from clipboard","copy-failed":"Copy failed","copy-failed-selected":"Copy failed. Text selected, press Ctrl+C to copy","paste-failed":"Paste failed"},Wn=new WeakMap;typeof document<"u"&&!document.__vbCopyDelegated&&(document.__vbCopyDelegated=!0,document.addEventListener("click",Sy))});function ji(e){return[...String(e??"").trim().toLowerCase().matchAll(/([^+]+|\+)(?:\+|$)/g)].map(i=>i[1].trim()).filter(Boolean).map(i=>i==="plus"?"+":i)}function Qn(e,t=Q){let i=t?Ol.mac:Ol.other;if(e in i)return{label:i[e],spoken:(t?ql.mac:ql.other)[e],modifier:!0};let s=Dy[e];if(s)return{...s,modifier:!1};let n=e.toUpperCase();return{label:n,spoken:n,modifier:!1}}function Bl(e){return ji(e).map(t=>Qn(t).label).join(Q?"":"+")}function Ry(e){let t=String(e??"").toLowerCase();return Iy[t]??t}function ae(e){let t=ji(e);return{key:Ry(t.pop()??""),meta:t.includes("meta")||t.includes("cmd"),ctrl:t.includes("ctrl")||t.includes("control"),shift:t.includes("shift"),alt:t.includes("alt")||t.includes("option")}}function jl(e){return e.length===1&&!/[a-z0-9 ]/.test(e)}function Hl(e,t){let s=(e.key==="Spacebar"?" ":String(e.key??"").toLowerCase())===t.key;if(!s&&(e.altKey||e.shiftKey)&&/^[a-z0-9]$/.test(t.key)){let a=/\d/.test(t.key)?`Digit${t.key}`:`Key${t.key.toUpperCase()}`;s=e.code===a}if(!s)return!1;let n,r;return Q?(n=t.meta,r=t.ctrl):(n=!1,r=t.meta||t.ctrl),!(n!==e.metaKey||r!==e.ctrlKey||!jl(t.key)&&t.shift!==e.shiftKey||t.alt!==e.altKey)}function Hi(e){let t=typeof e=="string"?ae(e):e;return!t.meta&&!t.ctrl&&!t.alt&&t.key.length===1}function zl(e,t){let i=ae(e),s=ae(t),n=Q?i.ctrl:i.ctrl||i.meta,r=Q?s.ctrl:s.ctrl||s.meta,a=Q&&i.meta,o=Q&&s.meta,c=!jl(i.key);return i.key===s.key&&n===r&&a===o&&i.alt===s.alt&&(!c||i.shift===s.shift)}function zi(e,t=Q){let i=ae(e),s=[];i.alt&&s.push("Alt"),(i.ctrl||i.meta&&!t)&&s.push("Control"),i.meta&&t&&s.push("Meta"),i.shift&&s.push("Shift");let n=Py[i.key];return n||(n=/^f\d{1,2}$/.test(i.key)||i.key.length===1?i.key.toUpperCase():i.key[0].toUpperCase()+i.key.slice(1)),[...s,n].join("+")}var Q,Ol,ql,Dy,Iy,Py,qe=w(()=>{Q=/Mac|iPhone|iPad|iPod/.test(navigator.platform??""),Ol={mac:{meta:"\u2318",cmd:"\u2318",alt:"\u2325",option:"\u2325",shift:"\u21E7",ctrl:"\u2303",control:"\u2303"},other:{meta:"Ctrl",cmd:"Ctrl",alt:"Alt",option:"Alt",shift:"Shift",ctrl:"Ctrl",control:"Ctrl"}},ql={mac:{meta:"Command",cmd:"Command",alt:"Option",option:"Option",shift:"Shift",ctrl:"Control",control:"Control"},other:{meta:"Control",cmd:"Control",alt:"Alt",option:"Alt",shift:"Shift",ctrl:"Control",control:"Control"}},Dy={escape:{label:"Esc",spoken:"Escape"},esc:{label:"Esc",spoken:"Escape"},enter:{label:"Enter",spoken:"Enter"},return:{label:"Enter",spoken:"Enter"},tab:{label:"Tab",spoken:"Tab"},space:{label:"Space",spoken:"Space"},backspace:{label:"Backspace",spoken:"Backspace"},delete:{label:"Del",spoken:"Delete"},del:{label:"Del",spoken:"Delete"},insert:{label:"Ins",spoken:"Insert"},home:{label:"Home",spoken:"Home"},end:{label:"End",spoken:"End"},pageup:{label:"PgUp",spoken:"Page up"},pagedown:{label:"PgDn",spoken:"Page down"},arrowup:{label:"\u2191",spoken:"Up arrow"},up:{label:"\u2191",spoken:"Up arrow"},arrowdown:{label:"\u2193",spoken:"Down arrow"},down:{label:"\u2193",spoken:"Down arrow"},arrowleft:{label:"\u2190",spoken:"Left arrow"},left:{label:"\u2190",spoken:"Left arrow"},arrowright:{label:"\u2192",spoken:"Right arrow"},right:{label:"\u2192",spoken:"Right arrow"},"+":{label:"+",spoken:"Plus"},plus:{label:"+",spoken:"Plus"}};Iy={esc:"escape",return:"enter",del:"delete",ins:"insert",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",space:" ",spacebar:" ",plus:"+",pgup:"pageup",pgdn:"pagedown"};Py={" ":"Space","+":"Plus",escape:"Escape",enter:"Enter",tab:"Tab",backspace:"Backspace",delete:"Delete",insert:"Insert",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",arrowup:"ArrowUp",arrowdown:"ArrowDown",arrowleft:"ArrowLeft",arrowright:"ArrowRight"}});function Ft(){return typeof document>"u"?!0:document.documentElement.getAttribute(Be)!=="off"}function Vl(e){let t=document.documentElement,i=Ft();e?t.removeAttribute(Be):t.setAttribute(Be,"off"),i!==!!e&&window.dispatchEvent(new CustomEvent(Fy,{detail:{enabled:!!e}}))}function qy(){try{let e=globalThis.localStorage?.getItem(Oy);if(!e)return null;let t=JSON.parse(e)?.data?.charShortcuts;return typeof t=="boolean"?t:null}catch{return null}}function Wl(){return Ul}var Be,Fy,Oy,Ul,tr=w(()=>{Be="data-char-shortcuts",Fy="vb:char-shortcuts-change",Oy="vb:settings:extensions";Ul=!0;if(typeof document<"u"){let e=qy();e===null&&(Ul=Ft()),e===!1?document.documentElement.setAttribute(Be,"off"):e===!0&&document.documentElement.removeAttribute(Be)}});function jy(e){let t=e;return!t||!t.tagName?!1:By.has(t.tagName)||t.isContentEditable}function Hy(e){if(e.repeat||e.isComposing||e.defaultPrevented)return;let t=jy(e.target),i=!Ft(),s=document.activeElement;for(let n of oe)if(!(t&&!n.global)&&!(n.scope&&!(n.scope.isConnected&&n.scope.contains(s)))&&!(i&&n.character&&!n.scope)&&!(n.enabled&&!n.enabled())&&Hl(e,n.descriptor)){e.preventDefault(),n.callback(e);return}}function zy(){Gl||(document.addEventListener("keydown",Hy),Gl=!0)}function At(e,t,i={}){zy();let s=ae(e),n={combo:e,descriptor:s,callback:t,global:i.global===!0,scope:i.scope??null,enabled:typeof i.enabled=="function"?i.enabled:null,character:Hi(s)},r=oe.find(a=>!a.scope&&!n.scope&&zl(a.combo,e));return r&&console.warn(`[hotkey-bind] Shortcut "${e}" is already bound as "${r.combo}". Last-bound wins.`),oe.unshift(n),function(){let o=oe.indexOf(n);o!==-1&&oe.splice(o,1)}}function Kl(){return oe.map(e=>e.combo)}var By,oe,Gl,je=w(()=>{qe();tr();By=new Set(["INPUT","TEXTAREA","SELECT"]),oe=[],Gl=!1});var or={};T(or,{addDialogDismiss:()=>cu,addFlickListener:()=>ru,addLongPress:()=>ou,addPullToRefresh:()=>fv,addSwipeListener:()=>nu,haptic:()=>Yi,initGestures:()=>lu,makeSwipeable:()=>au});function nu(e,t={}){let i=t.threshold??50,s=t.restraint??100,n=t.timeout??300,r=t.velocity??.5,a=t.minFlickDistance??10,o,c,l;function u(h){h.isPrimary&&(o=h.clientX,c=h.clientY,l=Date.now())}function d(h){if(!h.isPrimary)return;let f=h.clientX-o,p=h.clientY-c,m=Date.now()-l;if(m>n)return;let g=Math.abs(f),b=Math.abs(p),A=Math.max(g,b),v=m>0?A/m:0,$=v>=r&&A>=a,N;if((g>=i||$&&g>b)&&b<=s?N=f<0?"left":"right":(b>=i||$&&b>g)&&g<=s&&(N=p<0?"up":"down"),N){let j=N==="left"||N==="right"?g:b;e.dispatchEvent(new CustomEvent(`swipe-${N}`,{bubbles:!0,detail:{distance:j,duration:m,velocity:v,flick:$}}))}}return e.addEventListener("pointerdown",u,{passive:!0}),e.addEventListener("pointerup",d,{passive:!0}),()=>{e.removeEventListener("pointerdown",u),e.removeEventListener("pointerup",d)}}function ru(e,t={}){let i=t.minDistance??10,s=t.velocity??.6,n=t.timeout??250,r=t.restraint??80,a,o,c;function l(d){d.isPrimary&&(a=d.clientX,o=d.clientY,c=Date.now())}function u(d){if(!d.isPrimary)return;let h=d.clientX-a,f=d.clientY-o,p=Date.now()-c;if(p===0||p>n)return;let m=Math.abs(h),g=Math.abs(f),b=Math.max(m,g);if(b<i)return;let A=b/p;if(A<s)return;let v;if(m>g&&g<=r?v=h<0?"left":"right":g>m&&m<=r&&(v=f<0?"up":"down"),v){let $=v==="left"||v==="right"?m:g;e.dispatchEvent(new CustomEvent(`swipe-${v}`,{bubbles:!0,detail:{distance:$,duration:p,velocity:A,flick:!0}}))}}return e.addEventListener("pointerdown",l,{passive:!0}),e.addEventListener("pointerup",u,{passive:!0}),()=>{e.removeEventListener("pointerdown",l),e.removeEventListener("pointerup",u)}}function au(e,t={}){let i=t.threshold??100,s=t.direction??"horizontal",n=t.removeOnDismiss??!0,r=s==="horizontal",a=0,o=0,c=!1;function l(m){!m.isPrimary||e.hasAttribute("data-dismissed")||(m.preventDefault(),c=!0,a=r?m.clientX:m.clientY,o=0,e.setPointerCapture(m.pointerId),e.setAttribute("data-swiping",""))}function u(m){if(!c||!m.isPrimary)return;o=(r?m.clientX:m.clientY)-a;let b=1-Math.min(Math.abs(o)/i,1)*.5;r?e.style.transform=`translateX(${o}px)`:e.style.transform=`translateY(${o}px)`,e.style.opacity=String(b)}function d(m){!c||!m.isPrimary||(c=!1,e.releasePointerCapture(m.pointerId),e.removeAttribute("data-swiping"),Math.abs(o)>=i?f(o>0?"right":"left"):p())}function h(m){!c||!m.isPrimary||(c=!1,e.releasePointerCapture(m.pointerId),e.removeAttribute("data-swiping"),p())}function f(m){let g=m==="right"?"100%":"-100%";e.style.transition="transform 0.2s ease-out, opacity 0.2s ease-out",e.style.transform=r?`translateX(${g})`:`translateY(${g})`,e.style.opacity="0",e.setAttribute("data-dismissed",""),Yi.dismiss(),e.dispatchEvent(new CustomEvent("swipe-dismiss",{bubbles:!0,detail:{direction:m,distance:Math.abs(o)}})),n&&e.addEventListener("transitionend",()=>e.remove(),{once:!0})}function p(){e.style.transition="transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease",e.style.transform="",e.style.opacity="",e.addEventListener("transitionend",()=>{e.style.transition=""},{once:!0})}return e.addEventListener("pointerdown",l),e.addEventListener("pointermove",u),e.addEventListener("pointerup",d),e.addEventListener("pointercancel",h),()=>{e.removeEventListener("pointerdown",l),e.removeEventListener("pointermove",u),e.removeEventListener("pointerup",d),e.removeEventListener("pointercancel",h)}}function fv(e,t,i={}){let s=i.threshold??70,n=i.maxPull??120,r=document.createElement("div");r.setAttribute("data-pull-indicator",""),r.setAttribute("aria-hidden","true");let a=document.createElement("div");a.setAttribute("data-pull-spinner",""),r.appendChild(a),e.prepend(r);let o=0,c=!1,l=!1;function u(g){!g.isPrimary||l||e.scrollTop<=0&&(o=g.clientY,c=!0)}function d(g){if(!c||!g.isPrimary||l)return;let b=g.clientY-o;if(b<=0){r.style.transform="",r.style.opacity="";return}let A=Math.min(b,n),v=A/s;r.style.transform=`translateY(${A}px)`,r.style.opacity=String(Math.min(v,1)),v>=1?r.setAttribute("data-pull-ready",""):r.removeAttribute("data-pull-ready")}function h(g){!c||!g.isPrimary||(c=!1,r.hasAttribute("data-pull-ready")&&!l?p():m())}function f(g){!c||!g.isPrimary||(c=!1,m())}async function p(){l=!0,r.removeAttribute("data-pull-ready"),r.setAttribute("data-pull-loading",""),r.style.transform=`translateY(${s}px)`,r.style.opacity="1";try{await t()}finally{l=!1,r.removeAttribute("data-pull-loading"),m()}}function m(){r.style.transition="transform 0.3s ease, opacity 0.3s ease",r.style.transform="",r.style.opacity="",r.removeAttribute("data-pull-ready"),r.addEventListener("transitionend",()=>{r.style.transition=""},{once:!0})}return e.addEventListener("pointerdown",u,{passive:!0}),e.addEventListener("pointermove",d,{passive:!0}),e.addEventListener("pointerup",h,{passive:!0}),e.addEventListener("pointercancel",f,{passive:!0}),()=>{e.removeEventListener("pointerdown",u),e.removeEventListener("pointermove",d),e.removeEventListener("pointerup",h),e.removeEventListener("pointercancel",f),r.remove()}}function ou(e,t,i={}){let s=i.duration??500,n=i.hapticFeedback??!0,r=i.blockContextMenu??!0,a=null;function o(u){u.isPrimary&&(a=setTimeout(()=>{n&&Yi.tap(),t(u),a=null},s))}function c(){a&&(clearTimeout(a),a=null)}function l(u){r&&u.preventDefault()}return e.addEventListener("pointerdown",o,{passive:!0}),e.addEventListener("pointermove",c,{passive:!0}),e.addEventListener("pointerup",c,{passive:!0}),e.addEventListener("pointercancel",c,{passive:!0}),e.addEventListener("contextmenu",l),()=>{c(),e.removeEventListener("pointerdown",o),e.removeEventListener("pointermove",c),e.removeEventListener("pointerup",c),e.removeEventListener("pointercancel",c),e.removeEventListener("contextmenu",l)}}function cu(e,t={}){let i=t.threshold??80,s=0,n=0,r=!1;function a(h){if(!h.isPrimary||!e.open)return;let f=h.target;f.closest("a, button, input, select, textarea, [contenteditable]")&&!f.closest("header")||(r=!0,s=h.clientY,n=0,e.setPointerCapture(h.pointerId),e.style.transition="none")}function o(h){if(!r||!h.isPrimary)return;if(n=h.clientY-s,n<=0){e.style.transform="",e.style.opacity="";return}let p=1-Math.min(n/i,1)*.4;e.style.transform=`translateY(${n}px)`,e.style.opacity=String(p)}function c(h){!r||!h.isPrimary||(r=!1,e.releasePointerCapture(h.pointerId),n>=i?u():d())}function l(h){!r||!h.isPrimary||(r=!1,e.releasePointerCapture(h.pointerId),d())}function u(){e.style.transition="transform 0.2s ease-out, opacity 0.2s ease-out",e.style.transform="translateY(100%)",e.style.opacity="0",Yi.dismiss(),e.addEventListener("transitionend",()=>{e.style.transition="",e.style.transform="",e.style.opacity="",e.close("dismiss")},{once:!0})}function d(){e.style.transition="transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease",e.style.transform="",e.style.opacity="",e.addEventListener("transitionend",()=>{e.style.transition=""},{once:!0})}return e.addEventListener("pointerdown",a),e.addEventListener("pointermove",o),e.addEventListener("pointerup",c),e.addEventListener("pointercancel",l),()=>{e.removeEventListener("pointerdown",a),e.removeEventListener("pointermove",o),e.removeEventListener("pointerup",c),e.removeEventListener("pointercancel",l)}}function lu(e=document){let t=[];for(let i of e.querySelectorAll('[data-gesture="swipe"]'))t.push(nu(i));for(let i of e.querySelectorAll('[data-gesture="flick"]'))t.push(ru(i));for(let i of e.querySelectorAll('[data-gesture="dismiss"]'))t.push(au(i));for(let i of e.querySelectorAll('[data-gesture="long-press"]'))t.push(ou(i,()=>{i.dispatchEvent(new CustomEvent("long-press",{bubbles:!0}))}));for(let i of e.querySelectorAll('dialog[data-gesture="dismiss-down"]'))t.push(cu(i));return()=>t.forEach(i=>i())}var Yi,ar,cr=w(()=>{Yi={tap:()=>navigator.vibrate?.(8),confirm:()=>navigator.vibrate?.([8,40,8]),error:()=>navigator.vibrate?.([30,60,30]),dismiss:()=>navigator.vibrate?.(15)};ar=typeof document<"u"?document.documentElement:null;(!ar||!ar.hasAttribute("data-vb-gestures-init"))&&(ar?.setAttribute("data-vb-gestures-init",""),lu())});function mu(e){return e.split("-")[0].toLowerCase()}function V(e){return Bt(e&&e.closest("[lang]")?.lang||document.documentElement.lang||navigator.language||"en")}function Bt(e,t="en-US"){try{if(e)return Intl.getCanonicalLocales(e),e}catch{}try{return Intl.getCanonicalLocales(t),t}catch{return"en-US"}}var ut=w(()=>{});var Iu={};T(Iu,{destroyStickyManager:()=>tw,findBannerHeader:()=>$u,initStickyManager:()=>Qv});function $u(){for(let e of document.querySelectorAll("header"))if(!e.parentElement?.closest(Jv))return e;return null}function xt(){let e=document.documentElement;if(!e.hasAttribute("data-sticky"))return;let t=$u();t&&!t.hasAttribute("data-sticky")&&(t.dataset.sticky="",_r.add(t)),t&&is&&!$r.has(t)&&(is.observe(t),$r.add(t));let i=t?.hasAttribute("data-sticky")&&getComputedStyle(t).position!=="static",s=t&&i?t.getBoundingClientRect().height:0;e.style.setProperty("--sticky-offset",`${s}px`)}function Du(){xt()}function Qv(){if(es){xt();return}es=!0,is=new ResizeObserver(xt),$r=new WeakSet,xt(),requestAnimationFrame(xt),document.fonts?.ready?.then(xt),window.addEventListener("resize",xt,{passive:!0}),document.addEventListener("toggle",Du,!0)}function tw(){if(es){es=!1,window.removeEventListener("resize",xt),document.removeEventListener("toggle",Du,!0),is?.disconnect();for(let e of _r)delete e.dataset.sticky;_r.clear(),document.documentElement.style.removeProperty("--sticky-offset")}}var es,is,_r,$r,Jv,Ru=w(()=>{es=!1,_r=new Set,$r=new WeakSet,Jv='article, aside, main, nav, section, [role="article"], [role="complementary"], [role="main"], [role="navigation"], [role="region"]'});var Fu={};T(Fu,{SoundManager:()=>ew});var Pu,Dr,ew,Ou=w(()=>{Pu="vb-sound",Dr={enabled:!1,volume:.5},ew={_ctx:null,_enabled:!1,_volume:.5,_initialized:!1,init(){if(this._initialized)return this;let e=this._load();return this._enabled=e.enabled,this._volume=e.volume,this._initialized=!0,this},_getContext(){return this._ctx||(this._ctx=new(window.AudioContext||window.webkitAudioContext)),this._ctx.state==="suspended"&&this._ctx.resume(),this._ctx},_load(){try{let e=localStorage.getItem(Pu);return e?{...Dr,...JSON.parse(e)}:{...Dr}}catch{return{...Dr}}},_save(e){try{let t=this._load();localStorage.setItem(Pu,JSON.stringify({...t,...e}))}catch{}},_playTone(e,t,i="sine"){if(!this._enabled)return;let s=this._getContext(),n=s.createOscillator(),r=s.createGain();n.connect(r),r.connect(s.destination),n.frequency.value=e,n.type=i,r.gain.value=this._volume*.3,n.start(),r.gain.exponentialRampToValueAtTime(.01,s.currentTime+t),n.stop(s.currentTime+t)},enable(){this._enabled=!0,this._save({enabled:!0}),this.play("click")},disable(){this._enabled=!1,this._save({enabled:!1})},toggle(){return this._enabled?this.disable():this.enable(),this._enabled},isEnabled(){return this._enabled},setVolume(e){this._volume=Math.max(0,Math.min(1,e)),this._save({volume:this._volume})},getVolume(){return this._volume},play(e){if(this._enabled)switch(e){case"click":this._playTone(800,.1);break;case"success":this._playTone(523,.1),setTimeout(()=>this._playTone(659,.1),100),setTimeout(()=>this._playTone(784,.15),200);break;case"error":this._playTone(200,.15,"sawtooth"),setTimeout(()=>this._playTone(180,.2,"sawtooth"),150);break;case"notification":this._playTone(880,.1),setTimeout(()=>this._playTone(1100,.15),100);break;case"soft":this._playTone(600,.05);break;case"tick":this._playTone(1200,.02,"square");break}},getState(){return{enabled:this._enabled,volume:this._volume}}}});function rw(e,t){if(!t)return e;let i=e??new URLSearchParams;for(let[s,n]of Object.entries(t))n!=null&&i.set(s,String(n));return i}async function aw(e){if((e.headers.get("content-type")??"").includes("application/json"))try{return await e.json()}catch{return null}try{return await e.text()}catch{return null}}function qu(e){return e.endsWith("/")?e.slice(0,-1):e}var We,Ge,Bu,Or,G,J,me=w(()=>{We="__vbServiceConfig",Ge=globalThis,Bu=()=>({baseUrl:"/go",headers:{},services:{}});Ge[We]||(Ge[We]=Bu());Or=()=>Ge[We],G=class extends Error{constructor(t,i,s,n){super(`VBService(${s}): ${t} ${n}`),this.name="VBServiceError",this.status=t,this.body=i,this.role=s,this.path=n}};J=class e{static configure(t={}){let i=Or();Ge[We]={baseUrl:t.baseUrl??i.baseUrl,headers:{...i.headers,...t.headers??{}},services:{...i.services,...t.services??{}}}}static resolve(t){if(!t||typeof t!="string")throw new TypeError("VBService: role must be a non-empty string");let i=Or();return i.services[t]?qu(i.services[t]):i.baseUrl?`${qu(i.baseUrl)}/${t}`:`/go/${t}`}static _reset(){Ge[We]=Bu()}constructor(t){if(!t||typeof t!="string")throw new TypeError("VBService: role must be a non-empty string");this.role=t}async get(t,i){return this.#t("GET",t,{params:i})}async post(t,i){return this.#t("POST",t,{body:i})}async patch(t,i){return this.#t("PATCH",t,{body:i})}async delete(t){return this.#t("DELETE",t,{})}async#t(t,i,s){let n=e.resolve(this.role),r=i?i.startsWith("/")?i:`/${i}`:"",a=new URL(`${n}${r}`,globalThis.location?.origin??"http://localhost"),o=rw(a.searchParams,s.params);o&&(a.search=o.toString());let c={method:t,headers:{...Or().headers}};s.body!==void 0&&(c.body=JSON.stringify(s.body),c.headers["content-type"]="application/json");let l=a.toString(),u=await fetch(l,c),d=await aw(u);if(!u.ok)throw new G(u.status,d,this.role,`${r||"/"}`);return d}};if(typeof window<"u"){let e=window.VB??(window.VB={});e.service??=J,e.ServiceError??=G}});var Xu={};T(Xu,{HighlightController:()=>as,findRangeFromOffsets:()=>Ke,fnv1a:()=>Xe,initHighlights:()=>os});function Xe(e){let t=2166136261;for(let i=0;i<e.length;i++)t^=e.charCodeAt(i),t=Math.imul(t,16777619);return(t>>>0).toString(36)}function Ku(){return"hn-"+crypto.randomUUID().slice(0,8)}function ns(e,t){let i="highlightsLabel"+t[0].toUpperCase()+t.slice(1);return e.dataset[i]||fw[t]}function pw(e,{textLength:t,colors:i}){if(!e||typeof e!="object")return null;let s=e,{startOffset:n,endOffset:r,color:a}=s;if(!Number.isInteger(n)||!Number.isInteger(r))return null;let o=n,c=r;return o<0||c<=o||c>t||!jr(a)||!i.includes(a)||s.id!=null&&(typeof s.id!="string"||!/^[\w-]{1,64}$/.test(s.id))||s.text!=null&&typeof s.text!="string"||s.note!=null&&typeof s.note!="string"?null:{id:s.id||Ku(),startOffset:o,endOffset:c,text:s.text??"",color:a,note:s.note??"",created:Number.isFinite(s.created)?s.created:Date.now()}}function jr(e){return typeof e=="string"&&hw.test(e)}function Yu(){if(zt.size===0){Ht&&(document.adoptedStyleSheets=document.adoptedStyleSheets.filter(s=>s!==Ht),Ht=null);return}Ht||(Ht=new CSSStyleSheet,document.adoptedStyleSheets=[...document.adoptedStyleSheets,Ht]);let e=[...zt.keys()],t=e.map(s=>`::highlight(hn-${s}) { background-color: var(--highlight-${s}); color: var(--highlight-${s}-ink, var(--highlight-ink, CanvasText)); text-decoration-line: underline; text-decoration-color: var(--highlight-${s}); text-underline-offset: 2px; }`),i=e.map((s,n)=>`::highlight(hn-${s}) { background-color: Mark; color: MarkText; text-decoration-line: underline; text-decoration-color: MarkText; text-decoration-style: ${Vu[n%Vu.length]}; text-decoration-thickness: 2px; }`);Ht.replaceSync(`${t.join(`
2
+ `)}
3
+ @media (forced-colors: active) {
4
+ ${i.join(`
5
+ `)}
6
+ }`)}function mw(e){for(let t of e)zt.set(t,(zt.get(t)??0)+1);Yu()}function gw(e){for(let t of e){let i=(zt.get(t)??0)-1;i>0?zt.set(t,i):zt.delete(t)}Yu()}function bw(e){let t=Ye.get(e),i=t?[...t.values()].flat():[];i.length===0?(CSS.highlights.delete(`hn-${e}`),Ye.delete(e)):CSS.highlights.set(`hn-${e}`,new Highlight(...i))}function Uu(e,t){let i=new Set(t.keys());for(let[s,n]of Ye)n.has(e)&&i.add(s);for(let s of i){let n=t.get(s)??[],r=Ye.get(s);n.length?(r||Ye.set(s,r=new Map),r.set(e,n)):r?.delete(e),bw(s)}}function Wu(e,t,i){let s=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=0;for(;s.nextNode();){if(s.currentNode===t)return n+i;n+=(s.currentNode.textContent??"").length}return-1}function Ke(e,t,i){let s=document.createTreeWalker(e,NodeFilter.SHOW_TEXT),n=0,r=null,a=0,o=null,c=0;for(;s.nextNode();){let l=s.currentNode,u=(l.textContent??"").length;if(!r&&n+u>t&&(r=l,a=t-n),n+u>=i){o=l,c=i-n;break}n+=u}if(!r||!o)return null;try{let l=document.createRange();return l.setStart(r,Math.min(a,(r.textContent??"").length)),l.setEnd(o,Math.min(c,(o.textContent??"").length)),l}catch{return null}}function os(e){let t=rs.get(e);if(t&&!t.destroyed)return t;let i=new as(e);return rs.set(e,i),i}function Gu(e=document){e.querySelectorAll(Br).forEach(t=>{t.hasAttribute("data-highlights-init")||os(t)})}var Br,zu,uw,dw,rs,hw,Vu,fw,Ht,zt,Ye,as,yw,Hr=w(()=>{ot();wt();Br="[data-highlights]",zu="highlights",uw=["yellow","green","blue","pink"],dw=typeof CSS<"u"&&"highlights"in CSS,rs=new WeakMap;hw=/^[a-z0-9_-]+$/i,Vu=["solid","double","dotted","dashed","wavy"],fw={annotation:"You highlighted",added:"Highlight added",removed:"Highlight removed",noteSaved:"Note saved"};Ht=null,zt=new Map,Ye=new Map;as=class{#t;#e;#i;#n;#s=[];#o=!dw;#r;#a;#c=!1;#l=[];#m=new Map;constructor(t){this.#t=t,this.#n=t.hasAttribute("data-highlights-readonly");let i=t.dataset.highlights;this.#e=i&&i!==""?i:location.pathname;let s=t.dataset.highlightsColors,n=s?s.split(",").map(r=>r.trim()).filter(jr):[...uw];this.#i=[...new Set(n)],this.#o||mw(this.#i),this.#A(),this.#n||(this.#r=this.#d.bind(this),this.#a=this.#f.bind(this),t.addEventListener("pointerup",this.#r),t.addEventListener("click",this.#a)),t.setAttribute("data-highlights-init",""),this.#h().then(()=>{this.#c||this.#A()})}get colors(){return[...this.#i]}get destroyed(){return this.#c}get element(){return this.#t}getHighlights(){return this.#s.map(t=>({...t}))}removeHighlight(t){let i=this.#s.findIndex(s=>s.id===t);i<0||(this.#s.splice(i,1),this.#w(),this.#A(),this.#v("highlights:removed",{id:t}),Z(ns(this.#t,"removed")))}clearAll(){this.#s=[],this.#w(),this.#A()}exportHighlights(){return JSON.stringify({version:1,highlights:this.#s})}importHighlights(t){let i;try{i=typeof t=="string"?JSON.parse(t):t}catch{return{imported:0,rejected:0}}if(!i||!Array.isArray(i.highlights))return{imported:0,rejected:0};let s=this.#p(i.highlights);return this.#s=s,this.#w(),this.#A(),{imported:s.length,rejected:i.highlights.length-s.length}}#p(t){let i={textLength:(this.#t.textContent??"").length,colors:this.#i},s=new Set,n=[];for(let r of t){let a=pw(r,i);!a||s.has(a.id)||(s.add(a.id),n.push(a))}return n}destroy(){this.#c||(this.#c=!0,this.#r&&this.#t.removeEventListener("pointerup",this.#r),this.#a&&this.#t.removeEventListener("click",this.#a),this.#o?this.#t.querySelectorAll("mark[data-hn-id]").forEach(t=>{let i=t.parentNode;for(;t.firstChild;)i.insertBefore(t.firstChild,t);i.removeChild(t),i.normalize()}):(Uu(this,new Map),gw(this.#i)),this.#k(),this.#m.clear(),this.#t.removeAttribute("data-highlights-init"),rs.get(this.#t)===this&&rs.delete(this.#t))}#d(){requestAnimationFrame(()=>{if(this.#c)return;let t=window.getSelection();if(!t||t.isCollapsed||!t.toString().trim())return;let i=t.getRangeAt(0);this.#t.contains(i.commonAncestorContainer)&&this.#v("highlights:selected",{text:t.toString().trim(),rect:i.getBoundingClientRect()})})}#f(t){let i=t.target.closest?.(".hn-margin-annotation");if(i){let n=i.dataset.hnId,r=this.#s.find(a=>a.id===n);if(r){this.#v("highlights:clicked",{id:n,highlight:{...r}}),this.#v("highlights:request-note",{id:n,highlight:{...r},controller:this});return}}let s=t.target.closest?.("mark[data-hn-id]");if(s){let n=s.dataset.hnId,r=this.#s.find(a=>a.id===n);if(r){this.#v("highlights:clicked",{id:n,highlight:{...r}});return}}if(!this.#o){let n=this.#y(t.clientX,t.clientY);n&&this.#v("highlights:clicked",{id:n.id,highlight:{...n}})}}findHighlightRect(t){let i=this.#s.find(r=>r.id===t);if(!i)return null;let s=this.#g(i);if(!s)return null;let n=s.getClientRects();return n.length?n[0]:null}#g(t){return this.#m.get(t.id)??Ke(this.#t,t.startOffset,t.endOffset)}#u(){this.#m.clear();for(let t of this.#s){let i=Ke(this.#t,t.startOffset,t.endOffset);i&&this.#m.set(t.id,i)}}#y(t,i){for(let s of this.#s){let n=this.#m.get(s.id);if(!n)continue;let r=n.getClientRects();for(let a of r)if(t>=a.left&&t<=a.right&&i>=a.top&&i<=a.bottom)return s}return null}_createFromSelection(t){let i=window.getSelection();if(!i||i.isCollapsed)return;let s=i.getRangeAt(0);if(!this.#t.contains(s.commonAncestorContainer))return;let n=Wu(this.#t,s.startContainer,s.startOffset),r=Wu(this.#t,s.endContainer,s.endOffset);if(n<0||r<0||n>=r)return;let a=i.toString().trim(),o={id:Ku(),startOffset:n,endOffset:r,text:a,color:t,note:"",created:Date.now()};this.#s.push(o),this.#w(),this.#A(),i.removeAllRanges(),this.#v("highlights:added",{id:o.id,text:a,color:t,note:""}),Z(ns(this.#t,"added"))}_changeColor(t,i){let s=this.#s.find(n=>n.id===t);s&&(s.color=i,this.#w(),this.#A())}_updateNote(t,i){let s=this.#s.find(n=>n.id===t);s&&(s.note=i,this.#w(),this.#E(),this.#v("highlights:note-changed",{id:t,note:i}),Z(ns(this.#t,"noteSaved")))}async#h(){let t=await x.get(zu,this.#e);if(!t||!Array.isArray(t.highlights)||this.#c)return;let i=this.#p(t.highlights),s=Xe(this.#t.textContent);t.contentHash&&t.contentHash!==s?(this.#s=i.filter(n=>{let r=Ke(this.#t,n.startOffset,n.endOffset);return r?r.toString().trim()===n.text:!1}),this.#w()):this.#s=i}#w(){let t={version:1,contentHash:Xe(this.#t.textContent),highlights:this.#s};x.set(zu,this.#e,t).catch(()=>{})}#A(){this.#o?(this.#b(),this.#u()):(this.#u(),this.#S()),this.#E()}#S(){let t=new Map;for(let i of this.#i)t.set(i,[]);for(let i of this.#s){let s=this.#m.get(i.id);s&&t.has(i.color)&&t.get(i.color).push(s)}Uu(this,t)}#b(){this.#t.querySelectorAll("mark[data-hn-id]").forEach(i=>{let s=i.parentNode;for(;i.firstChild;)s.insertBefore(i.firstChild,i);s.removeChild(i)}),this.#t.normalize();let t=[...this.#s].sort((i,s)=>s.startOffset-i.startOffset);for(let i of t){let s=Ke(this.#t,i.startOffset,i.endOffset);if(!s)continue;let n=document.createElement("mark");n.dataset.hnId=i.id,jr(i.color)&&(n.dataset.hnColor=i.color,n.style.setProperty("--_hn-color",`var(--highlight-${i.color})`),n.style.setProperty("--_hn-ink",`var(--highlight-${i.color}-ink, var(--highlight-ink))`));try{s.surroundContents(n)}catch{let r=s.extractContents();n.appendChild(r),s.insertNode(n)}}}#k(){for(let t of this.#l)t.remove();this.#l=[]}#E(){if(this.#k(),this.#s.length===0)return;getComputedStyle(this.#t).position==="static"&&(this.#t.style.position="relative");let i=this.#t.getBoundingClientRect(),s=ns(this.#t,"annotation");for(let n of this.#s){let r=this.#m.get(n.id);if(!r)continue;let a=r.getClientRects();if(a.length===0)continue;let o=a[0].top-i.top,c=document.createElement("span");if(c.className="hn-margin-annotation",c.dataset.hnId=n.id,c.setAttribute("aria-hidden","true"),c.style.insetBlockStart=`${o}px`,n.note){let l=document.createElement("span");l.className="hn-note-indicator",l.textContent="*",c.append(l,` ${s}`),c.classList.add("hn-has-note")}else c.textContent=s;this.#t.appendChild(c),this.#l.push(c)}}#v(t,i={}){this.#t.dispatchEvent(new CustomEvent(t,{detail:i,bubbles:!0}))}};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Gu()):Gu();yw=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Br)&&os(s),s.querySelectorAll(Br).forEach(n=>{n.hasAttribute("data-highlights-init")||os(n)})}});yw.observe(document.documentElement,{childList:!0,subtree:!0})});var Wr={};T(Wr,{currentHash:()=>Ur,initPageWatch:()=>Vr,normalisePath:()=>sd,pageKey:()=>ge,readWatch:()=>Je,removeWatch:()=>nd,writeWatch:()=>Qe});function ed(){return typeof window<"u"&&window.vbPageWatch?.serverSync===!0?!0:document.querySelector('meta[name="vb-page-watch-server"]')?.getAttribute("content")==="true"}async function vw(e){if(!ed())return null;try{let t=new J("notify"),i={url:e.url,type:"page-watch",notify:["panel"]},s=await t.post("/subscribe",i);return typeof s?.id=="string"?s.id:null}catch(t){let i=t instanceof G?`${t.status}`:String(t);return console.warn("[page-watch] server subscribe failed; client-only watch in effect.",i),null}}async function id(e){if(!(!e||!ed()))try{await new J("notify").delete(`/subscribe/${encodeURIComponent(e)}`)}catch(t){let i=t instanceof G?`${t.status}`:String(t);console.warn("[page-watch] server unsubscribe failed; local state already cleared.",i)}}function ww(){return document.querySelector("main")||document.querySelector("article")||document.body}function sd(e){let t=(e||"/").replace(/\/index\.html?$/i,"/");return t.length>1&&(t=t.replace(/\/+$/,"")),t||"/"}function ge(){return sd(location.pathname)}async function Aw(){let e=ge(),t=location.pathname||"/",i=e==="/"?"":e,s=new Set([t,`${i}/`,`${i}/index.html`]);if(s.delete(e),await x.get(Tt,e)){for(let n of s)await x.remove(Tt,n);return}for(let n of s){let r=await x.get(Tt,n);if(r){await x.set(Tt,e,r),await x.remove(Tt,n);return}}}function Ur(){let e=ww();return e?Xe(e.textContent||""):""}function Ew(){return document.title||ge()}async function Je(){return Zu??=Aw().catch(()=>{}),await Zu,await x.get(Tt,ge())}async function Qe(e){await x.set(Tt,ge(),e)}async function nd(){await x.remove(Tt,ge())}function cs(e,t,i){return e.getAttribute(`data-label-${t}`)??i}function ls(e,t){e.setAttribute("aria-pressed",t?"true":"false"),e.dataset.watching="",t||delete e.dataset.watching;let i=e.querySelector("icon-wc");if(i&&i.setAttribute("name",t?"bookmark-check":"bookmark"),e.hasAttribute("data-watch-label-locked"))return;let s=[...e.childNodes].find(n=>n.nodeType===Node.TEXT_NODE&&(n.textContent||"").trim());s&&(s.textContent=t?cs(e,"watching","Watching"):cs(e,"watch","Watch for updates")),e.setAttribute("title",t?cs(e,"stop","Stop watching this page"):cs(e,"action","Watch this page for content updates"))}async function kw(){let e=!!await Je();for(let t of document.querySelectorAll(`${Ze}[data-watch-page-init]`))ls(t,e)}async function zr(e){if(e.hasAttribute("data-watch-page-init"))return;e.setAttribute("data-watch-page-init",""),e.setAttribute("type",e.getAttribute("type")||"button");let t=await Je();ls(e,!!t),e.addEventListener("click",async i=>{i.preventDefault();let s=await Je();if(s)await nd(),ls(e,!1),e.dispatchEvent(new CustomEvent("page-watch:remove",{bubbles:!0,composed:!0,detail:{url:s.url,subscriptionId:s.subscriptionId}})),id(s.subscriptionId);else{let n={url:location.pathname||"/",title:Ew(),contentHash:Ur(),watchedAt:new Date().toISOString(),lastChecked:new Date().toISOString(),lastChanged:null,subscriptionId:null};await Qe(n),ls(e,!0),e.dispatchEvent(new CustomEvent("page-watch:add",{bubbles:!0,composed:!0,detail:{entry:n}}));let r=await vw(n);r&&await Qe({...n,subscriptionId:r})}})}async function Sw(){let e=await Je();if(!e)return;let t=Ur(),i=new Date().toISOString(),s=e.contentHash,n={...e,lastChecked:i};if(t&&t!==s){n.contentHash=t,n.lastChanged=i,await Qe(n);let r={id:`page-watch:${e.url}:${t}`,type:"watch",title:`Updated: ${e.title}`,body:"Content changed since your last visit.",url:e.url,date:i,read:!1,dismissed:!1,priority:"normal"};document.querySelector("notification-wc")&&!customElements.get("notification-wc")&&await customElements.whenDefined("notification-wc"),document.dispatchEvent(new CustomEvent("notification-wc:new",{bubbles:!0,composed:!0,detail:{notification:r}}))}else await Qe(n)}function Vr(e=document){for(let t of e.querySelectorAll(Ze))zr(t);Sw()}function Ju(e){if(kw(),e.type!=="page-watch:remove")return;if(!(e.target instanceof Element&&e.target.matches(Ze))){let i=e.detail;id(i?.subscriptionId??null)}}var Ze,Tt,Zu,Qu,td,Gr=w(()=>{ot();me();Hr();Ze="[data-watch-page]",Tt="watches";Zu=null;Qu=Symbol.for("vb.page-watch-init"),td=globalThis;td[Qu]||(td[Qu]=!0,document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Vr()):Vr(),document.addEventListener("page-watch:add",Ju),document.addEventListener("page-watch:remove",Ju),new MutationObserver(t=>{for(let i of t)for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.matches?.(Ze)&&zr(n),n.querySelectorAll?.(Ze).forEach(r=>zr(r))}}).observe(document.documentElement,{childList:!0,subtree:!0}))});var xd={};T(xd,{initAll:()=>ha});function da(e){e.hasAttribute("data-back-to-top-init")||(e.setAttribute("data-back-to-top-init",""),e.toggleAttribute("data-state-visible",!1),e.addEventListener("click",kd),gs.add(e),Jw(),Sd())}function Ad(e){e.hasAttribute("data-back-to-top-init")&&(e.removeAttribute("data-back-to-top-init"),e.removeEventListener("click",kd),gs.delete(e),gs.size===0&&Vt&&(window.removeEventListener("scroll",Vt),Vt=null))}function Ed(){if(ve&&ve.isConnected)return ve;let e=document.documentElement,t=document.body;if(t&&t.scrollHeight>e.clientHeight+1&&t){let s=getComputedStyle(t);if(/auto|scroll/.test(s.overflowY))return ve=t,t}return ve=document.scrollingElement||e,ve}function kd(e){let t=e.currentTarget.getAttribute("href")||"";if(t===""||t==="#"||t==="#top")e.preventDefault();else return;Ed().scrollTo({top:0,left:0,behavior:Zw.matches?"auto":"smooth"})}function Jw(){Vt||(Vt=()=>{ua||(ua=!0,requestAnimationFrame(()=>{Sd(),ua=!1}))},window.addEventListener("scroll",Vt,{passive:!0}),document.addEventListener("scroll",Vt,{capture:!0,passive:!0}))}function Sd(){let t=Ed().scrollTop||window.scrollY,s=window.innerHeight*1,n=t>s,r=t<200;for(let a of gs)a.toggleAttribute("data-state-visible",n&&!r)}function ha(e=document){e.querySelectorAll(ni).forEach(da)}var ni,Zw,gs,Vt,ua,ve,Qw,fa=w(()=>{ni="[data-back-to-top]",Zw=matchMedia("(prefers-reduced-motion: reduce)"),gs=new Set,Vt=null,ua=!1;ve=null;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>ha(),{once:!0}):ha();Qw=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(ni)&&da(s),s.querySelectorAll(ni).forEach(n=>da(n))}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches?.(ni)&&Ad(s),s.querySelectorAll?.(ni).forEach(n=>Ad(n))}}});Qw.observe(document.documentElement,{childList:!0,subtree:!0})});function ga(e){return Bt(e.getAttribute("data-locale")||V(e))}function iA(e){let t={};switch(e.getAttribute("data-format-number")){case"currency":t.style="currency",t.currency=e.getAttribute("data-currency")||"USD";break;case"percent":t.style="percent";break;case"compact":t.notation="compact";break;default:break}let i=parseInt(e.getAttribute("data-fraction-digits")??"",10);return Number.isInteger(i)&&i>=0&&i<=20&&(t.minimumFractionDigits=i,t.maximumFractionDigits=i),t}function bs(e,t={}){try{return new Intl.NumberFormat(ga(e),{...iA(e),...t})}catch{return null}}var ys=w(()=>{ut()});var Td={};T(Td,{initFormatNumber:()=>ba});function ba(e=document){e.querySelectorAll(we).forEach(vs)}function vs(e){ri.has(e)||(ri.add(e),e.setAttribute("data-format-number-init",""),ws(e))}function ws(e){let t=e.getAttribute("value");if(t==null||t.trim()==="")return;let i=Number(t);if(isNaN(i))return;let s=bs(e);s&&(e.textContent=s.format(i))}var we,sA,ri,nA,ya=w(()=>{ys();we="data[data-format-number]",sA=["value","data-format-number","data-currency","data-fraction-digits","data-locale","lang"],ri=new WeakSet;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>ba()):ba();nA=new MutationObserver(e=>{for(let t of e){if(t.type==="attributes"){let i=t.target;t.attributeName==="lang"?(i.matches(we)&&ri.has(i)&&ws(i),i.querySelectorAll(we).forEach(s=>{ri.has(s)&&ws(s)})):i.matches(we)&&(ri.has(i)?ws(i):i.isConnected&&vs(i));continue}for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(we)&&vs(s),s.querySelectorAll(we).forEach(vs)}}});nA.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:sA})});var Dd={};T(Dd,{initFormatDate:()=>Ea});function fA(e){return/^\d{4}$/.test(e)?"year":/^\d{4}-\d{2}$/.test(e)?"month":/^\d{4}-\d{2}-\d{2}$/.test(e)?"day":null}function Ea(e=document){e.querySelectorAll(Lt).forEach(Es)}function pA(e){let t=e.trim().match(/^(\d{4})-(\d{2})-(\d{2})$/);if(!t)return new Date(e);let[i,s,n]=[Number(t[1]),Number(t[2])-1,Number(t[3])],r=new Date(Date.UTC(i,s,n));return r.getUTCMonth()===s&&r.getUTCDate()===n?r:new Date(NaN)}function Es(e){oi.has(e)||(oi.add(e),Aa.has(e)||Aa.set(e,{text:e.textContent.trim(),authoredTitle:e.hasAttribute("title")&&!e.hasAttribute(Ld)}),e.setAttribute(Ld,""),Md(e))}function Md(e){ka(e);let t=e.getAttribute("datetime")?.trim();if(!t||!/^\d{4}/.test(t))return;let i=pA(t);if(isNaN(i.getTime()))return;let s=fA(t),n=e.getAttribute("data-format-date")||"medium",r=Bt(e.getAttribute("data-locale")||V(e)),a=Aa.get(e);n==="relative"?(e.textContent=_d(i,r),a?.authoredTitle||e.setAttribute("title",Nd(i,"medium",s?null:"short",e,r,s)),$d(e,i,r)):(!a?.authoredTitle&&a?.text&&e.setAttribute("title",a.text),e.textContent=Nd(i,n,e.getAttribute("data-format-time"),e,r,s))}function Nd(e,t,i,s,n,r=null){let a=t||"medium",o;r==="year"?o={year:"numeric"}:r==="month"?o={year:"numeric",month:aA[a]??"short"}:(o={dateStyle:a},i&&!r&&(o.timeStyle=i));let c=r?"UTC":s.getAttribute("data-time-zone")||void 0;try{return new Intl.DateTimeFormat(n,{...o,timeZone:c}).format(e)}catch{try{return new Intl.DateTimeFormat(n,o).format(e)}catch{return s.textContent??""}}}function _d(e,t){let i=Math.round((e.getTime()-Date.now())/1e3),s=Math.abs(i);for(let n=0;n<ai.length;n++){let{seconds:r,max:a}=ai[n];if(s<r)continue;let{unit:o}=ai[n],c=Math.round(i/r);Math.abs(c)>=a&&n>0&&(o=ai[n-1].unit,c=Math.sign(i)*Math.max(1,Math.round(s/ai[n-1].seconds)));try{return new Intl.RelativeTimeFormat(t,{numeric:"auto"}).format(c,o)}catch{let l=Math.abs(c),u=l===1?o:`${o}s`;return c<0?`${l} ${u} ago`:`in ${l} ${u}`}}try{return new Intl.RelativeTimeFormat(t,{numeric:"auto"}).format(0,"second")}catch{return"just now"}}function $d(e,t,i){ka(e);let s=Math.abs(Date.now()-t.getTime()),n=36e5,r=864e5,a;s<n?a=6e4:s<r?a=3e5:a=36e5;let o=setTimeout(()=>{As.delete(e),e.textContent=_d(t,i),$d(e,t,i)},a);As.set(e,o)}function ka(e){let t=As.get(e);t!==void 0&&(clearTimeout(t),As.delete(e))}function va(e){ka(e),oi.delete(e)}function wa(e){oi.has(e)?Md(e):e.isConnected&&Es(e)}var Lt,rA,Ld,As,oi,Aa,aA,oA,cA,lA,uA,dA,hA,ai,mA,Sa=w(()=>{ut();Lt="time[data-format-date]",rA=["datetime","data-format-date","data-format-time","data-time-zone","data-locale","lang"],Ld="data-format-date-init",As=new Map,oi=new WeakSet,Aa=new WeakMap,aA={short:"numeric",medium:"short",long:"long",full:"long"},oA=60,cA=3600,lA=86400,uA=604800,dA=2592e3,hA=31536e3,ai=[{unit:"year",seconds:hA,max:1/0},{unit:"month",seconds:dA,max:12},{unit:"week",seconds:uA,max:5},{unit:"day",seconds:lA,max:7},{unit:"hour",seconds:cA,max:24},{unit:"minute",seconds:oA,max:60},{unit:"second",seconds:1,max:60}];document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Ea()):Ea();mA=new MutationObserver(e=>{for(let t of e){if(t.type==="attributes"){let i=t.target;t.attributeName==="lang"?(i.matches(Lt)&&wa(i),i.querySelectorAll(Lt).forEach(wa)):i.matches(Lt)?wa(i):t.attributeName==="data-format-date"&&oi.has(i)&&va(i);continue}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.isConnected||(s.matches(Lt)&&va(s),s.querySelectorAll(Lt).forEach(va))}for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.isConnected&&(s.matches(Lt)&&Es(s),s.querySelectorAll(Lt).forEach(Es))}}});mA.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:rA})});var Pd={};T(Pd,{formatByteSize:()=>Rd,initFormatBytes:()=>xa});function xa(e=document){e.querySelectorAll(Ae).forEach(ks)}function ks(e){ci.has(e)||(ci.add(e),e.setAttribute("data-format-bytes-init",""),Ss(e))}function yA(e){let t=parseInt(e??"0",10);return Number.isFinite(t)?Math.min(20,Math.max(0,t)):0}function Rd(e,{precision:t=0,decimal:i=!1,locale:s}={}){let n=i?1e3:1024,r=Math.abs(e),a=r<1?0:Math.min(Math.floor(Math.log(r)/Math.log(n)),Id.length-1),o=e/Math.pow(n,a);try{return new Intl.NumberFormat(s,{style:"unit",unit:Id[a],unitDisplay:a===0?"long":"short",minimumFractionDigits:t,maximumFractionDigits:t}).format(o)}catch{return`${o.toFixed(t)} ${bA[a]}`}}function Ss(e){let t=e.getAttribute("value");if(t==null||t.trim()==="")return;let i=Number(t);Number.isFinite(i)&&(e.textContent=Rd(i,{precision:yA(e.getAttribute("data-format-bytes")),decimal:e.getAttribute("data-unit")==="decimal",locale:ga(e)}))}var Ae,gA,Id,bA,ci,vA,Ca=w(()=>{ys();Ae="data[data-format-bytes]",gA=["value","data-format-bytes","data-unit","data-locale","lang"],Id=["byte","kilobyte","megabyte","gigabyte","terabyte","petabyte"],bA=["B","kB","MB","GB","TB","PB"],ci=new WeakSet;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>xa()):xa();vA=new MutationObserver(e=>{for(let t of e){if(t.type==="attributes"){let i=t.target;t.attributeName==="lang"?(i.matches(Ae)&&ci.has(i)&&Ss(i),i.querySelectorAll(Ae).forEach(s=>{ci.has(s)&&Ss(s)})):i.matches(Ae)&&(ci.has(i)?Ss(i):i.isConnected&&ks(i));continue}for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Ae)&&ks(s),s.querySelectorAll(Ae).forEach(ks)}}});vA.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:gA})});function wA(e){for(let[t,i]of xs)e.querySelectorAll(t).forEach(i)}function AA(e){if(e.nodeType!==Node.ELEMENT_NODE)return;let t=e;for(let[i,s]of xs)t.matches(i)&&s(t),t.querySelectorAll(i).forEach(s)}function EA(){Ta||(Ta=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes)AA(i)}),Ta.observe(document.documentElement,{childList:!0,subtree:!0}))}function kA(){Cs||(Cs=!0,wA(document))}function C(e,t){xs.set(e,t),EA(),Cs||document.readyState!=="loading"?(Cs=!0,document.querySelectorAll(e).forEach(t)):xs.size===1&&document.addEventListener("DOMContentLoaded",kA)}function P(e,t){let i=La.get(e);i||La.set(e,i=new Set),i.add(t),!Fd&&(Fd=!0,document.addEventListener("reset",s=>{let n=s.target;n instanceof HTMLFormElement&&setTimeout(()=>{if(s.defaultPrevented)return;let r=new Set,a=[...n.querySelectorAll("*"),...Array.from(n.elements)];for(let o of a){if(r.has(o))continue;r.add(o);let c=La.get(o);if(c)for(let l of c)l(o)}},0)},!0))}var xs,Ta,Cs,La,Fd,D=w(()=>{xs=new Map,Ta=null,Cs=!1;La=new WeakMap,Fd=!1});var Bd={};T(Bd,{concealSpoiler:()=>Ts,initSpoilers:()=>CA,revealSpoiler:()=>qd});function xA(e){return SA.has(e.tagName)||e.localName.includes("-")}function CA(e=document){e.querySelectorAll(Na).forEach(Ma)}function TA(e){return e.getAttribute("data-spoiler-label")||R(e,"spoiler-reveal","Reveal spoiler")}function Ma(e){if(Od.has(e))return;if(Od.add(e),e.getAttribute("data-spoiler")||e.setAttribute("data-spoiler","blur"),e.querySelector(":scope > [data-spoiler-content]")){e.setAttribute("data-spoiler-init","");return}(e.tagName==="DIV"||e.tagName==="SPAN")&&!e.hasAttribute("role")&&!e.hasAttribute("aria-label")&&!e.hasAttribute("aria-labelledby")&&(e.setAttribute("role","group"),e.setAttribute("aria-label",R(e,"spoiler","Spoiler")));let t=document.createElement(xA(e)?"div":"span");for(t.setAttribute("data-spoiler-content",""),t.setAttribute("inert",""),t.tabIndex=-1;e.firstChild;)t.appendChild(e.firstChild);e.appendChild(t);let i=document.createElement("button");i.type="button",i.setAttribute("data-spoiler-trigger",""),i.setAttribute("aria-expanded","false");let s=document.createElement("span");s.setAttribute("data-spoiler-label",""),s.textContent=TA(e),i.appendChild(s),e.appendChild(i),e.setAttribute("data-spoiler-init","")}function qd(e){if(e.hasAttribute("data-spoiler-visible"))return;let t=e.getAttribute("data-spoiler-group");t&&document.querySelectorAll(`[data-spoiler-group="${CSS.escape(t)}"][data-spoiler-visible]`).forEach(r=>{r!==e&&Ts(r,{restoreFocus:!1})});let i=e.querySelector(":scope > [data-spoiler-content]"),s=e.querySelector(":scope > [data-spoiler-trigger]"),n=!!s&&(document.activeElement===s||s.contains(document.activeElement));if(i&&i.removeAttribute("inert"),s&&(s.setAttribute("aria-expanded","true"),s.hidden=!0),e.setAttribute("data-spoiler-visible",""),!e.hasAttribute("data-spoiler-persist")&&!e.querySelector(":scope > [data-spoiler-hide]")){let r=document.createElement("button");r.type="button",r.setAttribute("data-spoiler-hide",""),r.textContent=R(e,"spoiler-hide","Hide spoiler"),e.appendChild(r)}n&&i&&i.focus({preventScroll:!0}),Z(R(e,"spoiler-revealed","Spoiler revealed")),e.dispatchEvent(new CustomEvent("spoiler:toggle",{bubbles:!0,detail:{visible:!0}}))}function Ts(e,{restoreFocus:t=!0}={}){if(e.hasAttribute("data-spoiler-persist")||!e.hasAttribute("data-spoiler-visible"))return;let i=e.querySelector(":scope > [data-spoiler-content]"),s=e.querySelector(":scope > [data-spoiler-trigger]"),n=e.querySelector(":scope > [data-spoiler-hide]"),r=e.contains(document.activeElement);i&&i.setAttribute("inert",""),s&&(s.setAttribute("aria-expanded","false"),s.hidden=!1,t&&r&&s.focus()),n&&n.remove(),e.removeAttribute("data-spoiler-visible"),e.dispatchEvent(new CustomEvent("spoiler:toggle",{bubbles:!0,detail:{visible:!1}}))}function LA(e){let i=e.target?.closest?.("[data-spoiler-trigger], [data-spoiler-hide]");if(!i)return;let s=i.parentElement;s?.matches(Na)&&(Ma(s),i.hasAttribute("data-spoiler-trigger")?qd(s):Ts(s))}function NA(e){if(e.key!=="Escape")return;let t=e.target?.closest?.("[data-spoiler][data-spoiler-visible]");!t||t.hasAttribute("data-spoiler-persist")||(e.stopPropagation(),Ts(t))}var Na,Od,SA,_a=w(()=>{D();wt();Na="[data-spoiler]",Od=new WeakSet,SA=new Set(["DIV","SECTION","ARTICLE","ASIDE","MAIN","HEADER","FOOTER","NAV","LI","DD","TD","TH","BLOCKQUOTE","FIGURE","FIGCAPTION","DETAILS","DIALOG","FORM","FIELDSET","ADDRESS"]);typeof document<"u"&&!document.__vbSpoilerDelegated&&(document.__vbSpoilerDelegated=!0,document.addEventListener("click",LA),document.addEventListener("keydown",NA));C(Na,Ma)});var Vd={};T(Vd,{initSplitters:()=>Da,keyToDirection:()=>zd,pointerToPercent:()=>Hd});function Da(e=document){e.querySelectorAll($a).forEach(Ia)}function $A(e,t,i){return Math.min(i,Math.max(t,e))}function Hd(e,t,{vertical:i,rtl:s}){return i?(e.clientY-t.top)/t.height*100:(s?t.right-e.clientX:e.clientX-t.left)/t.width*100}function zd(e,{vertical:t,rtl:i}){return t?e==="ArrowUp"?-1:e==="ArrowDown"?1:0:e==="ArrowLeft"?i?1:-1:e==="ArrowRight"?i?-1:1:0}function Ia(e){if(jd.has(e))return;for(let f of e.querySelectorAll(":scope > .split-divider"))f.remove();let t=[...e.children];if(t.length<2)return;jd.add(e),e.setAttribute("data-splitter-init","");let i=t[0],s=t[1],n=e.getAttribute("data-splitter")==="vertical",r=Number(i.dataset.min)||10,a=Number(i.dataset.max)||90,o=()=>getComputedStyle(e).direction==="rtl";i.id||(i.id=`vb-splitter-panel-${++_A}`);let c=document.createElement("div");c.className="split-divider",c.setAttribute("role","separator"),c.setAttribute("aria-orientation",n?"horizontal":"vertical"),c.setAttribute("aria-valuemin",String(r)),c.setAttribute("aria-valuemax",String(a)),c.setAttribute("aria-label",e.getAttribute("data-label-resize")||MA),c.setAttribute("aria-controls",i.id),c.setAttribute("tabindex","0"),e.insertBefore(c,s),i.style.flexGrow="0",i.style.flexShrink="0",i.style.overflow="auto",s.style.flexGrow="1",s.style.overflow="auto";let l=!1,u=50;function d(f,{silent:p=!1}={}){u=$A(f,r,a),i.style.flexBasis=`${u}%`,c.setAttribute("aria-valuenow",String(Math.round(u))),!p&&e.dispatchEvent(new CustomEvent("splitter:resize",{detail:{position:u},bubbles:!0}))}d(50,{silent:!0});function h(){l&&(l=!1,e.style.userSelect="")}c.addEventListener("pointerdown",f=>{f.preventDefault(),l=!0,c.setPointerCapture(f.pointerId),e.style.userSelect="none"}),c.addEventListener("pointermove",f=>{if(!l)return;let p=e.getBoundingClientRect();d(Hd(f,p,{vertical:n,rtl:o()}))}),c.addEventListener("pointerup",f=>{c.hasPointerCapture(f.pointerId)&&c.releasePointerCapture(f.pointerId),h()}),c.addEventListener("pointercancel",h),c.addEventListener("lostpointercapture",h),c.addEventListener("keydown",f=>{let p=f.shiftKey?10:1,m=zd(f.key,{vertical:n,rtl:o()});m!==0?(f.preventDefault(),d(u+m*p)):f.key==="Home"?(f.preventDefault(),d(r)):f.key==="End"&&(f.preventDefault(),d(a))})}var $a,MA,jd,_A,DA,Ra=w(()=>{$a="[data-splitter]",MA="Resize panels",jd=new WeakSet,_A=0;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Da()):Da();DA=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches($a)&&Ia(s),s.querySelectorAll($a).forEach(Ia)}});DA.observe(document.documentElement,{childList:!0,subtree:!0})});var Gd={};T(Gd,{initSwitches:()=>IA});function Wd(e){e.hasAttribute("role")||e.setAttribute("role","switch"),e.setAttribute("data-switch-init","")}function IA(e=document){e.querySelectorAll(Ud).forEach(t=>Wd(t))}var Ud,Pa=w(()=>{D();Ud='input[type="checkbox"][data-switch]';C(Ud,Wd)});var eh={};T(eh,{initTextareaCounts:()=>BA});function Jd(e){return e.closest("[lang]")?.getAttribute("lang")||navigator.language}function Qd(e,t){try{return new Intl.PluralRules(e).select(t)}catch{return"other"}}function Fa(e,t){try{return new Intl.NumberFormat(e).format(t)}catch{return String(t)}}function OA(e,t,i,s){let n=t?"words":"characters",r=Jd(e),a=Qd(r,s);return(e.getAttribute(`data-label-limit-${a}`)??e.getAttribute("data-label-limit")??FA[n][a==="one"?"one":"other"]).replaceAll("{count}",Fa(r,i)).replaceAll("{max}",Fa(r,s))}function qA(e,t,i){let s=t?"words":"characters",n=Jd(e),r=Qd(n,i);return(e.getAttribute(`data-label-${s}-${r}`)??e.getAttribute(`data-label-${s}`)??PA[s][r==="one"?"one":"other"]).replaceAll("{count}",Fa(n,i))}function th(e){if(Yd.has(e))return;let t=e.hasAttribute("data-count-init");e.setAttribute("data-count-init","");let i=e.dataset.count==="words",s=i?parseInt(e.dataset.maxwords??"0",10)||0:e.maxLength>0?e.maxLength:0,n=e.closest("form-field"),r=null,a=null;if(t){let h=n?n.querySelector(":scope > output.textarea-counter"):e.nextElementSibling;if(h?.matches("output.textarea-counter")&&!Xd.has(h)){r=h;let f=r.nextElementSibling;f?.matches('span.visually-hidden[aria-live="polite"]')&&(a=f);let p=r.id,m=(e.getAttribute("aria-describedby")??"").split(/\s+/).filter(g=>g&&g!==p);m.length?e.setAttribute("aria-describedby",m.join(" ")):e.removeAttribute("aria-describedby")}}r||(r=document.createElement("output"),r.className="textarea-counter",r.setAttribute("aria-live","off"),n?n.append(r):e.insertAdjacentElement("afterend",r)),r.id=`${e.id||`textarea-${++Kd}`}-count`,document.getElementById(r.id)!==r&&(r.id=`textarea-${++Kd}-count`),Xd.add(r),a||(a=document.createElement("span"),a.className="visually-hidden",a.setAttribute("aria-live","polite"),a.setAttribute("aria-atomic","true"),r.insertAdjacentElement("afterend",a));let o=a,c=r,l=(e.getAttribute("aria-describedby")??"").split(/\s+/).filter(Boolean);l.includes(r.id)||e.setAttribute("aria-describedby",[...l,r.id].join(" "));let u;function d(){let h=e.value,f=i?h.trim()?h.trim().split(/\s+/).length:0:h.length;if(s>0){c.textContent=OA(e,i,f,s);let p=f/s;c.dataset.state=p>=1?"error":p>=.8?"warning":""}else c.textContent=qA(e,i,f),c.dataset.state="";if(clearTimeout(u),c.dataset.state){let p=c.textContent;u=setTimeout(()=>{o.textContent=p},RA)}else o.textContent=""}Yd.set(e,d),e.addEventListener("input",d),P(e,d),d()}function BA(e=document){e.querySelectorAll(Zd).forEach(th)}var Zd,RA,Kd,PA,FA,Yd,Xd,Oa=w(()=>{D();Zd="textarea[data-count]",RA=700,Kd=0,PA={characters:{one:"{count} character",other:"{count} characters"},words:{one:"{count} word",other:"{count} words"}},FA={characters:{one:"{count} of {max} character",other:"{count} of {max} characters"},words:{one:"{count} of {max} word",other:"{count} of {max} words"}};Yd=new WeakMap,Xd=new WeakSet;C(Zd,th)});var rh={};T(rh,{initTextareaGrow:()=>HA});function nh(e){if(ih.has(e))return;ih.add(e);let t=parseInt(e.dataset.maxRows??"0",10)||0;if(e.hasAttribute("rows")&&e.style.setProperty("--grow-rows",String(e.rows)),t>0&&e.style.setProperty("--grow-max-rows",String(t)),jA){e.setAttribute("data-grow-init","");return}e.setAttribute("data-grow-init","fallback");function i(){e.style.blockSize="auto";let s=getComputedStyle(e),n=parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),r=e.scrollHeight+n;if(t>0){let a=parseFloat(s.lineHeight)||parseFloat(s.fontSize)*1.2,o=parseFloat(s.paddingTop)+parseFloat(s.paddingBottom),c=a*t+o+n;r>c?(r=c,e.style.overflowY="auto"):e.style.overflowY="hidden"}e.style.blockSize=r+"px"}e.addEventListener("input",i),e.addEventListener("change",i),P(e,i),i()}function HA(e=document){e.querySelectorAll(sh).forEach(nh)}var sh,jA,ih,qa=w(()=>{D();sh="textarea[data-grow]",jA=CSS.supports("field-sizing","content"),ih=new WeakSet;C(sh,nh)});function WA(e){return e.localName.includes("-")?!!customElements.get(e.localName)?.formAssociated:!1}function Ut(e){let t=e.name;return typeof t=="string"&&t||e.getAttribute("name")||""}function Ls(e){if(e instanceof HTMLButtonElement||e instanceof HTMLFieldSetElement||e instanceof HTMLOutputElement)return[];if(e instanceof HTMLInputElement)return zA.has(e.type)?[]:e.type==="radio"||e.type==="checkbox"?e.checked?[e.value||"on"]:[]:e.type==="file"?e.files?[...e.files].map(i=>i.name):[]:e.value===""?[]:[e.value];if(e instanceof HTMLSelectElement)return e.multiple?[...e.selectedOptions].map(i=>i.value):e.value===""?[]:[e.value];let t=e.value;return Array.isArray(t)?t.map(String).filter(i=>i!==""):t==null||t===""?[]:[String(t)]}function Ba(e,t){return e instanceof HTMLFormElement?Array.from(e.elements).filter(i=>Ut(i)===t):[...e.querySelectorAll(`[name="${CSS.escape(t)}"]`)]}function GA(e,t){return Ba(e,t).flatMap(Ls)}function KA(e){let t=e.trim(),i=t.search(/[=:]/);if(i===-1){let a=t.startsWith("!");return{name:(a?t.slice(1):t).trim(),value:null,negate:a}}let s=t.slice(0,i),n=t.slice(i+1),r=!1;return s.startsWith("!")&&(r=!0,s=s.slice(1)),s.endsWith("!")?(r=!r,s=s.slice(0,-1)):n.startsWith("!")&&(r=!r,n=n.slice(1)),{name:s.trim(),value:n.trim(),negate:r}}function ah(e){return String(e||"").split("||").map(t=>t.split("&&").map(KA).filter(i=>i.name)).filter(t=>t.length)}function oh(e){return new Set(ah(e).flat().map(t=>t.name))}function YA(e,t){let i=GA(t,e.name),s=e.value===null?i.length>0:i.includes(e.value);return e.negate?!s:s}function Ns(e,t){return ah(e).some(i=>i.every(s=>YA(s,t)))}function XA(e){return[e,...e.querySelectorAll("*")].filter(i=>i.matches(UA)||WA(i))}function Ms(e,t){for(let i of XA(e))if(t){if(!i.hasAttribute(li)||i.closest(VA))continue;i.removeAttribute("disabled"),i.removeAttribute(li)}else{if(i.hasAttribute("disabled"))continue;i.setAttribute("disabled",""),i.setAttribute(li,"")}}var zA,li,VA,UA,ja=w(()=>{zA=new Set(["button","submit","reset","image"]),li="data-conditional-disabled",VA="[data-show-when][hidden], [data-hide-when][hidden], [data-wizard-step][data-wizard-hidden]",UA="input, select, textarea, button, fieldset"});var fh={};T(fh,{initConditionalFields:()=>JA});function uh(e){return e.closest("form")||document}function dh(e){return e.hasAttribute("data-show-when")?{condition:e.dataset.showWhen||"",invert:!1}:{condition:e.dataset.hideWhen||"",invert:!0}}function za(e){let{condition:t,invert:i}=dh(e),s=Ns(t,uh(e)),n=i?!s:s;n?(e.removeAttribute("hidden"),e.removeAttribute("inert")):(e.setAttribute("hidden",""),e.setAttribute("inert","")),Ms(e,n)}function Va(e,t){for(let i of document.querySelectorAll(Ua)){let s=i;!Ha.has(s)||uh(s)!==e||t&&!oh(dh(s).condition).has(t)||za(s)}}function lh(e){let t=e.target;if(!(t instanceof Element))return;let i=Ut(t);if(!i)return;let s=t.form||t.closest("form");Va(s||document,i),s&&Va(document,i)}function ZA(){ch||(ch=!0,document.addEventListener("input",lh,!0),document.addEventListener("change",lh,!0),document.addEventListener("reset",e=>{setTimeout(()=>{e.defaultPrevented||Va(document)},0)},!0))}function hh(e){let t=e;Ha.has(t)||(Ha.add(t),t.setAttribute("data-conditional-init",""),ZA(),za(t),P(t,za))}function JA(e=document){e.querySelectorAll(Ua).forEach(hh)}var Ua,Ha,ch,Wa=w(()=>{D();ja();Ua="[data-show-when], [data-hide-when]",Ha=new WeakSet,ch=!1;C(Ua,hh)});var vh={};T(vh,{initRangeSliders:()=>t0});function Ka(e,t){if(e===""||e==null)return t;let i=parseFloat(e);return Number.isFinite(i)?i:t}function Ga(e){let t=Ka(e.min,0),i=Ka(e.max,100);return i<t&&(i=t),{min:t,max:i}}function mh(e,t,i){return i===t?0:Math.min(1,Math.max(0,(e-t)/(i-t)))}function gh(e){let t=String(e),i=t.indexOf(".");return i===-1?0:t.length-i-1}function yh(e){if(ph.has(e)||!e.parentNode)return;ph.add(e),e.setAttribute("data-range-init","");let t=e.hasAttribute("data-bubble"),i=e.parentElement;i?.classList.contains("range-wrapper")?i.querySelectorAll(":scope > .range-bubble, :scope > .range-markers, :scope > .range-labels").forEach(l=>l.remove()):(i=document.createElement("div"),i.className="range-wrapper",e.parentNode.insertBefore(i,e),i.appendChild(e));let s=!e.hasAttribute("aria-valuetext"),n;if(t&&(n=document.createElement("output"),n.className="range-bubble",n.setAttribute("aria-hidden","true"),e.id&&n.htmlFor.add(e.id),i.appendChild(n)),e.hasAttribute("data-markers")){let{min:l,max:u}=Ga(e),d=Ka(e.step,1)||1,h=Math.round((u-l)/d);if(h>0&&h<=QA){let f=document.createElement("div");f.className="range-markers",f.setAttribute("aria-hidden","true");for(let p=0;p<=h;p++)f.appendChild(document.createElement("span"));i.appendChild(f)}}let r=e.getAttribute("list"),a=r?document.getElementById(r):null;if(a instanceof HTMLDataListElement){let l=document.createElement("div");l.className="range-labels",l.setAttribute("aria-hidden","true");let{min:u,max:d}=Ga(e);Array.from(a.options).forEach(h=>{let f=document.createElement("span");f.textContent=h.label||h.value,f.style.setProperty("--range-frac",String(mh(parseFloat(h.value),u,d))),l.appendChild(f)}),i.appendChild(l)}function o(){let l=e.value;if(a instanceof HTMLDataListElement){let p=Array.from(a.options).find(m=>m.label&&parseFloat(m.value)===parseFloat(l));if(p)return p.label}let u=e.dataset.prefix||"",d=e.dataset.suffix||"",h=Math.max(gh(e.step==="any"?"":e.step),gh(l)),f=l;try{f=new Intl.NumberFormat(V(e),{minimumFractionDigits:h,maximumFractionDigits:h}).format(parseFloat(l))}catch{}return`${u}${f}${d}`}function c(){let{min:l,max:u}=Ga(e),d=mh(parseFloat(e.value),l,u);i.style.setProperty("--range-pct",`${d*100}%`),i.style.setProperty("--range-frac",String(d));let h=o();n&&(n.textContent=h),s&&(h!==e.value?e.setAttribute("aria-valuetext",h):e.removeAttribute("aria-valuetext"))}e.addEventListener("input",c),e.addEventListener("change",c),P(e,c),c()}function t0(e=document){e.querySelectorAll(bh).forEach(t=>yh(t))}var bh,QA,ph,Ya=w(()=>{D();ut();bh='input[type="range"][data-range]',QA=100,ph=new WeakSet;C(bh,yh)});var Ch={};T(Ch,{formatBytes:()=>Eh,initUploadZones:()=>r0,matchesAccept:()=>Sh});function Ee(e,t,i){return e.getAttribute(`data-label-${t}`)??i}function Eh(e,t="en"){let i=["byte","kilobyte","megabyte","gigabyte"],s=0,n=e;for(;n>=1e3&&s<i.length-1;)n/=1e3,s++;try{return new Intl.NumberFormat(t,{style:"unit",unit:i[s],unitDisplay:"short",maximumFractionDigits:s>0?1:0}).format(n)}catch{return`${n.toFixed(s>0?1:0)} ${["B","kB","MB","GB"][s]}`}}function kh(e){return e.split(",").map(t=>t.trim().toLowerCase()).filter(Boolean)}function Sh(e,t){if(!t.length)return!0;let i=e.name.toLowerCase(),s=(e.type||"").toLowerCase();return t.some(n=>n.startsWith(".")?i.endsWith(n):n.endsWith("/*")?s.startsWith(n.slice(0,-1)):s===n)}function n0(e,t){let i=kh(t).map(s=>{if(s.startsWith("."))return s.slice(1).toUpperCase();let[n,r=""]=s.split("/");if(r==="*"){let a=s0[n];return a?Ee(e,a,a):s}return/^[a-z0-9]+$/.test(r)?r.toUpperCase():s});return[...new Set(i)].join(", ")}function xh(e){if(wh.has(e)||!e.parentNode)return;wh.add(e);let t=e.parentElement?.classList.contains("upload-zone")?e.parentElement:null,i=t?.querySelector(":scope > .upload-prompt"),s=t?.querySelector(":scope > .upload-file-list"),n=t?.querySelector(":scope > .upload-status");if(!t||!i||!s||!n){t?.querySelectorAll(":scope > :not(input)").forEach(g=>g.remove()),t||(t=document.createElement("div"),t.className="upload-zone",e.parentNode.insertBefore(t,e),t.appendChild(e));let u=`upload-${++i0}`;i=document.createElement("p"),i.className="upload-prompt",i.id=`${u}-prompt`,i.insertAdjacentHTML("afterbegin",e0);let d=document.createElement("span"),h=e.multiple?"Drag files here or":"Drag a file here or";d.append(`${Ee(e,"prompt",h)} `);let f=document.createElement("span");f.className="upload-browse",f.textContent=Ee(e,"browse","browse"),d.append(f),i.append(d);let p=e.getAttribute("accept")||"";if(p){let g=document.createElement("small");g.textContent=n0(e,p),i.append(g)}s=document.createElement("ul"),s.className="upload-file-list",s.hidden=!0,s.setAttribute("aria-label",Ee(e,"files","Selected files")),n=document.createElement("p"),n.className="upload-status",n.setAttribute("role","status"),t.append(i,s,n);let m=new Set((e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean));m.add(i.id),e.setAttribute("aria-describedby",[...m].join(" "))}let r=s,a=n,o=t;function c(){r.replaceChildren();let u=Array.from(e.files??[]);r.hidden=u.length===0;let d=V(e);for(let h of u){let f=document.createElement("li"),p=document.createElement("span");p.className="upload-file-name",p.textContent=h.name;let m=document.createElement("span");m.className="upload-file-size",m.textContent=Eh(h.size,d),f.append(p,m),r.append(f)}}let l=0;o.addEventListener("dragenter",u=>{u.preventDefault(),l++,o.dataset.dragover=""}),o.addEventListener("dragleave",()=>{l=Math.max(0,l-1),l===0&&delete o.dataset.dragover}),o.addEventListener("dragover",u=>{u.preventDefault()}),o.addEventListener("drop",u=>{if(u.preventDefault(),l=0,delete o.dataset.dragover,e.disabled)return;let d=Array.from(u.dataTransfer?.files??[]);if(!d.length)return;let h=kh(e.getAttribute("accept")||""),f=d.filter(b=>Sh(b,h)),p=d.filter(b=>!f.includes(b)),m=[];if(p.length&&m.push(Ee(e,"rejected","Not accepted: {files}").replace("{files}",p.map(b=>b.name).join(", "))),!e.multiple&&f.length>1&&(f.length=1,m.push(Ee(e,"single","Only one file allowed. Kept {file}.").replace("{file}",f[0].name))),a.textContent=m.join(" "),!f.length)return;let g=new DataTransfer;f.forEach(b=>g.items.add(b)),e.files=g.files,e.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),e.dispatchEvent(new Event("change",{bubbles:!0}))}),e.addEventListener("click",()=>{a.textContent=""}),e.addEventListener("change",c),P(e,()=>{a.textContent="",c()}),c()}function r0(e=document){e.querySelectorAll(Ah).forEach(t=>xh(t))}var Ah,e0,wh,i0,s0,Xa=w(()=>{D();ut();Ah='input[type="file"][data-upload]',e0='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" y1="3" x2="12" y2="15"/></svg>',wh=new WeakSet,i0=0;s0={image:"images",audio:"audio",video:"video"};C(Ah,xh)});function ui(e){if(!e)return!1;let t=e,i=String(t.localName??t.tagName??"").toLowerCase();if(o0.has(i))return!1;let s=i==="input"?String(t.type??t.getAttribute?.("type")??"text").toLowerCase():"";if(a0.has(s))return!1;let n=String(t.getAttribute?.("autocomplete")??"").trim().toLowerCase();return!(n==="off"||n&&n.split(/\s+/).some(r=>c0.has(r))||t.hasAttribute?.("data-autosave-ignore")||t.closest?.("[data-autosave-ignore]"))}var a0,o0,c0,Za=w(()=>{a0=new Set(["password","hidden","file","submit","button","reset","image"]),o0=new Set(["button","fieldset","output","object"]),c0=new Set(["cc-number","cc-csc","cc-exp","cc-exp-month","cc-exp-year","one-time-code","new-password","current-password"])});var Mh={};T(Mh,{initAutosave:()=>f0});function d0(e){let t=e.dataset.autosave;if(typeof t=="string"&&t.trim()!=="")return t.trim();let i=(e.method||"get").toLowerCase(),s=e.action||(typeof location<"u"?location.href:"");return`${i} ${s}`}function h0(e){let t=e.dataset.autosaveRetain;if(typeof t!="string")return null;let i=t.trim();return i===""?null:new Set(i.split(/\s+/))}function Nh(e){if(Th.has(e))return;Th.add(e),e.setAttribute("data-autosave-init","");let t=d0(e),i=h0(e),s;function n(){return Array.from(e.elements).filter(h=>{let f=h.name;return f&&(i===null||i.has(f))&&ui(h)})}function r(){let h={};for(let f of n()){if(f.disabled)continue;let{name:p}=f;if(f.type==="checkbox"){let m=Array.isArray(h[p])?h[p]:h[p]=[];f.checked&&m.push(f.value)}else f.type==="radio"?f.checked&&(h[p]=f.value):f instanceof HTMLSelectElement&&f.multiple?h[p]=Array.from(f.selectedOptions).map(m=>m.value):typeof f.value=="string"&&(h[p]=f.value)}return h}function a(){s=void 0,x.set(_s,t,r()).catch(()=>{})}function o(){clearTimeout(s),s=setTimeout(a,l0)}function c(){clearTimeout(s),s=void 0}async function l(){let h=await x.get(_s,t,{maxAge:u0});if(!h||typeof h!="object")return x.remove(_s,t).catch(()=>{}),[];let f=[];for(let p of n()){if(!Object.hasOwn(h,p.name)||p.disabled||p.readOnly)continue;let m=h[p.name],g=Array.isArray(m)?m:[m];if(p.type==="checkbox")p.checked=g.includes(p.value);else if(p.type==="radio")p.checked=p.value===m;else if(p instanceof HTMLSelectElement&&p.multiple)for(let b of p.options)b.selected=g.includes(b.value);else if(typeof m=="string")p.value=m;else continue;f.push(p)}return f}function u(){c(),x.remove(_s,t).catch(()=>{})}function d(){let h=e.dataset.labelRestored||"Draft restored";if(customElements.get("toast-msg")){let m=document.querySelector("toast-msg");if(m||(m=document.createElement("toast-msg"),document.body.appendChild(m)),typeof m.show=="function"){m.show({message:h,variant:"info",duration:3e3,source:"autosave"});return}}let f=e.querySelector(":scope > [data-autosave-status]");f||(f=document.createElement("span"),f.className="visually-hidden",f.setAttribute("role","status"),f.setAttribute("data-autosave-status",""),e.append(f)),f.textContent="";let p=f;requestAnimationFrame(()=>{p.textContent=h})}l().then(h=>{if(h.length){d();for(let f of h)f.dispatchEvent(new Event("input",{bubbles:!0})),f.dispatchEvent(new Event("change",{bubbles:!0}));c(),e.dispatchEvent(new CustomEvent("autosave:restore",{bubbles:!0,detail:{key:t,fields:[...new Set(h.map(f=>f.name))]}}))}}),e.addEventListener("input",o),e.addEventListener("change",o),e.addEventListener("submit",u),e.addEventListener("reset",h=>{c(),setTimeout(()=>{h.defaultPrevented||u()},0)})}function f0(e=document){e.querySelectorAll(Lh).forEach(t=>Nh(t))}var Lh,_s,l0,u0,Th,Ja=w(()=>{ot();D();Za();Lh="form[data-autosave]",_s="autosave",l0=500,u0=1440*60*1e3,Th=new WeakSet;C(Lh,Nh)});var Fh={};T(Fh,{initMaskInputs:()=>v0});function Dh(e){let t=e.dataset.mask;if(_h[t])return _h[t];if(t==="custom"&&e.dataset.pattern){let i=e.dataset.pattern,s=new Set;for(let r of i)r==="#"?s.add("0-9"):r==="A"?s.add("a-zA-Z"):r==="*"&&s.add("a-zA-Z0-9");let n=s.size>0?new RegExp(`[${[...s].join("")}]`):/./;return{pattern:i,accept:n}}return null}function Wt(e){return e==="#"||e==="A"||e==="*"}function Ph(e,t){let i=m0[e];return i?i.test(t):!1}function g0(e){let t=0;for(let i of e)Wt(i)&&t++;return t}function Ih(e,t){let i="",s=0;for(let n=0;n<t.length&&s<e.length;n++){let r=t[n];if(Wt(r)){for(;s<e.length&&!Ph(r,e[s]);)s++;s<e.length&&(i+=e[s],s++)}else i+=r}return i}function $s(e,t,i){let s="",n=0;for(let r of e){if(n<t.length&&!Wt(t[n])){if(r===t[n]){n++;continue}for(;n<t.length&&!Wt(t[n]);)n++}n<t.length?Ph(t[n],r)&&(s+=r,n++):i.test(r)&&(s+=r)}return s}function b0(e,t,i){let s=0,n=0;if(e>0){for(let r=0;r<t.length;r++)if(Wt(i[r])&&(s++,s===e)){n=r+1;break}s<e&&(n=t.length)}for(;n<i.length&&n<t.length&&!Wt(i[n]);)n++;return n}function y0(e){for(let t of e)if(Wt(t)&&t!=="#")return!1;return!0}function to(e){if($h.has(e)||!p0.has(e.type))return;let t=Dh(e);if(!t){if(e.removeAttribute("data-mask-init"),!Qa.has(e)){Qa.add(e);let h=new MutationObserver(()=>{Dh(e)&&(h.disconnect(),Qa.delete(e),to(e))});h.observe(e,{attributes:!0,attributeFilter:["data-mask","data-pattern","type"]})}return}$h.add(e),e.setAttribute("data-mask-init","");let{pattern:i}=t,s=t.accept,n=g0(i);y0(i)&&!e.getAttribute("inputmode")&&e.setAttribute("inputmode","numeric"),e.getAttribute("maxlength")||e.setAttribute("maxlength",String(i.length));let r=!1,a=null,o="",c="";function l(){let h=e.dataset.rawValue||"";if(h.length>0&&h.length<n){let p=e.getAttribute("placeholder");c=e.dataset.maskMessage||(p?`Enter the complete value, like ${p}.`:"Enter the complete value."),e.setCustomValidity(c)}else c&&e.validationMessage===c&&(e.setCustomValidity(""),c="")}function u(){let h=$s(e.value,i,s).slice(0,n),f=Ih(h,i);e.value!==f&&(e.value=f),e.dataset.rawValue=h,l()}e.addEventListener("compositionstart",()=>{r=!0}),e.addEventListener("compositionend",()=>{r=!1,d()}),e.addEventListener("beforeinput",h=>{a=e.value,o=h.inputType||""});function d(){if(r)return;let h=e.selectionStart??e.value.length,f=$s(e.value.slice(0,h),i,s).length,p=$s(e.value,i,s),m=a!=null?$s(a,i,s):null;m!=null&&p===m&&a!==e.value&&(o==="deleteContentBackward"&&f>0?(p=p.slice(0,f-1)+p.slice(f),f--):o==="deleteContentForward"&&f<p.length&&(p=p.slice(0,f)+p.slice(f+1))),a=null,o="",p=p.slice(0,n);let g=Ih(p,i);e.value=g,e.dataset.rawValue=p,l();let b=b0(Math.min(f,p.length),g,i);document.activeElement===e&&e.setSelectionRange(b,b)}e.addEventListener("input",d),P(e,u),u()}function v0(e=document){e.querySelectorAll(Rh).forEach(t=>to(t))}var Rh,p0,_h,m0,$h,Qa,eo=w(()=>{D();Rh="input[data-mask]",p0=new Set(["text","tel","search"]),_h={phone:{pattern:"(###) ###-####",accept:/\d/},"credit-card":{pattern:"#### #### #### ####",accept:/\d/},date:{pattern:"##/##/####",accept:/\d/},ssn:{pattern:"###-##-####",accept:/\d/},zip:{pattern:"#####",accept:/\d/}},m0={"#":/\d/,A:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},$h=new WeakSet,Qa=new WeakSet;C(Rh,to)});var Hh={};T(Hh,{initAcceptInputs:()=>E0});function w0(e){if(!e)return null;let t=Object.hasOwn(Oh,e)?Oh[e]:null;if(t)return{regex:new RegExp(t.pattern,"u"),inputmode:t.inputmode};if(e.startsWith("[")){for(let i of["u",""])try{return{regex:new RegExp(e,i),inputmode:"text"}}catch{}return console.warn(`[data-accept] Invalid character class: ${e}`),null}return console.warn(`[data-accept] Unknown preset: ${e}`),null}function Ds(e,t){return Array.from(e).filter(i=>t.test(i)).join("")}function jh(e){if(qh.has(e))return;if(qh.add(e),e.hasAttribute("data-mask")){console.warn("[data-accept] Conflict: data-mask is also present \u2014 deferring to mask.",e);return}let t=w0(e.dataset.accept||"");if(!t)return;let{regex:i,inputmode:s}=t;e.dataset.acceptPattern=i.source,e.getAttribute("inputmode")||e.setAttribute("inputmode",s);let n=!1;e.addEventListener("compositionstart",()=>{n=!0}),e.addEventListener("compositionend",()=>{n=!1,r()}),e.addEventListener("beforeinput",o=>{if(n)return;let c=o.data;if(c!=null){if(o.inputType==="insertFromPaste"){let l=Ds(c,i);if(l===c||(o.preventDefault(),!l))return;document.execCommand("insertText",!1,l)||A0(e,l);return}if(o.inputType==="insertText"||o.inputType==="insertCompositionText"){for(let l of c)if(!i.test(l)){o.preventDefault();return}}}}),e.addEventListener("input",()=>{n||r()});function r(){let o=e.value,c=Ds(o,i);if(c===o)return;let l=e.selectionStart??0,u=Ds(o.slice(0,l),i);e.value=c;let d=Math.min(u.length,c.length);document.activeElement===e&&e.setSelectionRange(d,d)}function a(){if(!e.value)return;let o=Ds(e.value,i);o!==e.value&&(e.value=o)}a(),P(e,a)}function A0(e,t){let i=e.selectionStart??0,s=e.selectionEnd??0,n=e.value.slice(0,i),r=e.value.slice(s);e.value=n+t+r;let a=i+t.length;e.setSelectionRange(a,a),e.dispatchEvent(new Event("input",{bubbles:!0}))}function E0(e=document){e.querySelectorAll(Bh).forEach(jh)}var Bh,Oh,qh,io=w(()=>{D();Bh="input[data-accept]",Oh={digits:{pattern:"[0-9]",inputmode:"numeric"},alpha:{pattern:"[a-zA-Z]",inputmode:"text"},letters:{pattern:"[\\p{L}\\p{M}]",inputmode:"text"},alphanum:{pattern:"[a-zA-Z0-9]",inputmode:"text"},phone:{pattern:"[0-9+()\\- ]",inputmode:"tel"},date:{pattern:"[0-9/\\-.]",inputmode:"numeric"},hex:{pattern:"[0-9a-fA-F]",inputmode:"text"},currency:{pattern:"[0-9.,]",inputmode:"decimal"},cc:{pattern:"[0-9 \\-]",inputmode:"numeric"}};qh=new WeakSet;C(Bh,jh)});var Wh={};T(Wh,{initToggleTags:()=>k0});function Uh(e){if(zh.has(e))return;zh.add(e);let t=e.querySelector(":scope > .toggle-tags-status");t||(t=document.createElement("p"),t.className="toggle-tags-status",t.setAttribute("role","status"),e.append(t));let i=t,s=()=>Array.from(e.querySelectorAll('input[type="checkbox"]')),n=()=>{let o=parseInt(e.dataset.max??"",10);return o>=1?o:1/0},r=()=>(e.getAttribute("data-label-limit")??"Limit reached: {max} selected. Uncheck one to choose another.").replace("{max}",String(n()));function a(){let o=n(),c=s(),l=c.filter(d=>d.checked).length>=o;for(let d of c){let h=d.hasAttribute("data-max-blocked");if(l&&!d.checked&&!d.disabled){if(!h&&d.getAttribute("aria-disabled")==="true")continue;d.setAttribute("aria-disabled","true"),d.setAttribute("data-max-blocked","")}else h&&(d.removeAttribute("aria-disabled"),d.removeAttribute("data-max-blocked"))}let u=l?r():"";i.textContent!==u&&(i.textContent=u)}e.addEventListener("click",o=>{let c=o.target;!(c instanceof HTMLInputElement)||!c.hasAttribute("data-max-blocked")||(o.preventDefault(),i.textContent="",requestAnimationFrame(()=>{i.textContent=r()}))}),e.addEventListener("change",a),new MutationObserver(a).observe(e,{attributes:!0,attributeFilter:["data-max"]}),P(e,a),a()}function k0(e=document){e.querySelectorAll(Vh).forEach(t=>Uh(t))}var Vh,zh,so=w(()=>{D();Vh="fieldset[data-toggle-tags][data-max]",zh=new WeakSet;C(Vh,Uh)});var Zh={};T(Zh,{initNumberSteppers:()=>T0});function Kh(e,t){let i=document.createElement("button");return i.type="button",i.className=e,i.innerHTML=t,i.tabIndex=-1,i}function C0(e,t){let i=e.min!==""?parseFloat(e.min):-1/0,s=e.max!==""?parseFloat(e.max):1/0,n=parseFloat(e.value)||0;e.value=String(Math.min(Math.max(n+t,i),s))}function Xh(e){if(Gh.has(e)||!e.parentNode)return;Gh.add(e),e.setAttribute("data-stepper-init","");let t=e.parentElement;t?.classList.contains("number-wrapper")?t.querySelectorAll(":scope > .number-dec, :scope > .number-inc").forEach(c=>c.remove()):(t=document.createElement("div"),t.className="number-wrapper",e.parentNode.insertBefore(t,e));let i=Kh("number-dec",S0),s=Kh("number-inc",x0);t.appendChild(i),t.appendChild(e),t.appendChild(s);function n(){i.setAttribute("aria-label",e.dataset.labelDecrease||"Decrease"),s.setAttribute("aria-label",e.dataset.labelIncrease||"Increase")}function r(){return e.disabled||e.readOnly||e.matches(":disabled")}function a(c){if(r())return;let l=e.value;try{c>0?e.stepUp():e.stepDown()}catch{C0(e,c)}e.value!==l&&(e.dispatchEvent(new Event("input",{bubbles:!0})),e.dispatchEvent(new Event("change",{bubbles:!0}))),o()}function o(){let c=e.min!==""?parseFloat(e.min):-1/0,l=e.max!==""?parseFloat(e.max):1/0,u=parseFloat(e.value),d=r();i.disabled=d||Number.isFinite(u)&&u<=c,s.disabled=d||Number.isFinite(u)&&u>=l}i.addEventListener("click",()=>a(-1)),s.addEventListener("click",()=>a(1)),e.addEventListener("input",o),e.addEventListener("change",o),P(e,o),new MutationObserver(()=>{n(),o()}).observe(e,{attributes:!0,attributeFilter:["disabled","readonly","min","max","step","data-label-decrease","data-label-increase"]}),n(),o()}function T0(e=document){e.querySelectorAll(Yh).forEach(t=>Xh(t))}var Yh,S0,x0,Gh,no=w(()=>{D();Yh='input[type="number"][data-stepper]',S0='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true" focusable="false"><line x1="5" y1="12" x2="19" y2="12"/></svg>',x0='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true" focusable="false"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>',Gh=new WeakSet;C(Yh,Xh)});var ef={};T(ef,{initColorInputs:()=>L0});function tf(e){if(Jh.has(e)||!e.parentNode||e.closest("color-picker"))return;Jh.add(e),e.setAttribute("data-color-init","");let t=e.parentElement;t?.classList.contains("color-wrapper")?t.querySelectorAll(":scope > .color-display").forEach(a=>a.remove()):(t=document.createElement("span"),t.className="color-wrapper",e.parentNode.insertBefore(t,e),t.appendChild(e));let i=document.createElement("span");i.className="color-display",i.setAttribute("aria-hidden","true");let s=document.createElement("span");s.className="color-swatch";let n=document.createElement("span");n.className="color-hex",i.append(s,n),t.appendChild(i);function r(){s.style.setProperty("--color-swatch-value",e.value),n.textContent=e.value}e.addEventListener("input",r),e.addEventListener("change",r),P(e,r),r()}function L0(e=document){e.querySelectorAll(Qh).forEach(t=>tf(t))}var Qh,Jh,ro=w(()=>{D();Qh='input[type="color"][data-color]',Jh=new WeakSet;C(Qh,tf)});var hf={};T(hf,{initSelectAll:()=>R0});function R0(e=document){e.querySelectorAll(uf).forEach(t=>df(t))}function lo(e){return e.closest(I0)||document}function lf(e){let t=e.dataset.selectAll??"";if(!t)return[];let i;try{i=lo(e).querySelectorAll(t)}catch{return[]}return[...i].filter(s=>s!==e&&!s.disabled&&!s.matches(":disabled"))}function df(e){if(co.has(e)||!(e instanceof HTMLInputElement)||e.type!=="checkbox")return;e.removeAttribute("data-select-all-init");let t=!1,i="",s=new AbortController,{signal:n}=s;function r(){if(n.aborted)return;if(!e.isConnected){s.abort(),c.disconnect(),co.delete(e);return}let u=lf(e),d=u.length,h=u.filter(g=>g.checked),f=h.length;e.checked=d>0&&f===d,e.indeterminate=f>0&&f<d;let p=lo(e).querySelector("[data-selected-count]");if(p){let g=new Intl.NumberFormat(V(p)).format(f);p instanceof HTMLOutputElement?p.value=g:p.textContent=g}let m=u.map(g=>g.checked?"1":"0").join("");m!==i&&(i=m,e.dispatchEvent(new CustomEvent("select-all:change",{bubbles:!0,detail:{checked:f,total:d,selected:h}})))}co.set(e,{sync:r}),e.addEventListener("change",()=>{t=!0;let u=e.checked;for(let d of lf(e))d.checked!==u&&(d.checked=u,d.dispatchEvent(new Event("change",{bubbles:!0})));t=!1,r()},{signal:n});let a=lo(e);a.addEventListener("change",u=>{if(t||u.target===e)return;let d=e.dataset.selectAll;d&&u.target.matches?.(d)&&r()},{signal:n}),P(e,r);let o=!1,c=new MutationObserver(()=>{o||(o=!0,queueMicrotask(()=>{o=!1,r()}))}),l=a===document?document.body:a;l&&c.observe(l,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["disabled","hidden"]}),c.observe(e,{attributes:!0,attributeFilter:["data-select-all"]}),r()}var uf,I0,co,uo=w(()=>{D();ut();uf="[data-select-all]",I0="[data-select-all-scope], table, form, fieldset",co=new WeakMap;C(uf,df)});var yf={};T(yf,{initMath:()=>fo});function fo(e=document){e.querySelectorAll(di).forEach(mo)}function O0(e){let t=e.getAttribute("data-math")||"";return new Set(t.split(/\s+/).filter(Boolean))}function q0(e){let t=(e.closest("pre")||e).nextElementSibling;return t?.hasAttribute("data-math-rendered")?t:null}function gf(e){let t=e.previousElementSibling;return t?t.matches(di)?t:t.matches("pre")?t.querySelector(di):null:null}function bf(){let e=[];document.querySelectorAll("[data-math-rendered][data-math-numbered]").forEach((i,s)=>{let n=s+1;i.getAttribute("data-equation-number")!==String(n)&&i.setAttribute("data-equation-number",String(n)),i.id&&e.push({id:i.id,number:n,latex:gf(i)?.textContent.trim()??""})});let t=(window.VBMath??={equations:[]}).equations;t.splice(0,t.length,...e)}function po(){ho||(ho=!0,queueMicrotask(()=>{ho=!1,bf()}))}function mo(e){if(ff.has(e))return;if(ff.add(e),e.setAttribute("data-math-init",""),e.getAttribute("data-math-state")==="rendered"&&q0(e)){po();return}!e.hasAttribute("data-math")&&e.classList.contains("language-math")&&e.setAttribute("data-math","");let t=O0(e),i=e.getAttribute("data-mathml"),s=e.textContent.trim(),n=t.has("inline");if(!i||!F0){e.setAttribute("data-math-state","source");return}let r=n?document.createElement("span"):document.createElement("div");r.setAttribute("data-math-rendered",""),r.replaceChildren(Nl(i));let a=e.id||null;a&&(r.id=a,e.removeAttribute("id"));let o=r.querySelector("math");if(o&&(n||o.setAttribute("display","block"),!o.hasAttribute("alttext")&&s&&o.setAttribute("alttext",s)),t.has("numbered")&&r.setAttribute("data-math-numbered",""),t.has("copyable")){r.setAttribute("data-math-copyable","");let u=document.createElement("button");u.type="button",u.setAttribute("data-math-copy",""),u.textContent=R(e,"copy","Copy LaTeX"),r.append(u)}e.setAttribute("data-math-state","rendered");let c=e.closest("pre");(c||e).insertAdjacentElement("afterend",r),c?(c.setAttribute("data-math-state","rendered"),c.hidden=!0):e.hidden=!0;let l=null;t.has("numbered")&&(bf(),l=Number(r.getAttribute("data-equation-number"))),j0(),e.dispatchEvent(new CustomEvent("math:rendered",{bubbles:!0,detail:{latex:s,inline:n,number:l}}))}async function B0(e){let t=e.closest("[data-math-rendered]"),i=t&&gf(t);if(!i)return;let s=i.textContent.trim(),n=R(i,"copy","Copy LaTeX"),r=R(i,"copied","Copied to clipboard"),a=R(i,"copy-failed","Copy failed"),o=await gt(s,{announceMessage:r,failureMessage:a}),c=o?r:a;e.setAttribute("data-state",o?"copied":"failed"),e.textContent=c,clearTimeout(pf.get(e)),pf.set(e,setTimeout(()=>{e.removeAttribute("data-state"),e.textContent=n},P0))}function j0(){if(document.querySelector("[data-vb-math-font]"))return;let e=document.createElement("link");e.rel="stylesheet",e.href=`${Xc()}/fonts/math-fonts.css`,e.setAttribute("data-vb-math-font",""),document.head.appendChild(e)}var di,P0,F0,ff,ho,pf,mf,H0,go=w(()=>{pn();Rt();wt();re();di="[data-math], code.language-math",P0=2e3,F0=typeof MathMLElement<"u",ff=new WeakSet;window.VBMath=window.VBMath||{equations:[]};ho=!1;pf=new WeakMap;mf=Symbol.for("vb.math.copy");document[mf]||(document[mf]=!0,document.addEventListener("click",e=>{let i=(e.target instanceof Element?e.target:null)?.closest("button[data-math-copy]")??null;i&&B0(i)}));document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>fo()):fo();H0=new MutationObserver(e=>{for(let t of e){for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;(s.matches("[data-math-numbered]")||s.querySelector("[data-math-numbered]"))&&po()}for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(di)&&mo(s),s.querySelectorAll(di).forEach(mo),(s.matches("[data-math-numbered]")||s.querySelector("[data-math-numbered]"))&&po()}}});H0.observe(document.documentElement,{childList:!0,subtree:!0})});var qf={};T(qf,{WizardController:()=>hi,initWizards:()=>dE});function Rf(){try{let e=sessionStorage.getItem(If);return e||(e=globalThis.crypto?.randomUUID?.()??String(Math.random()).slice(2),sessionStorage.setItem(If,e)),e}catch{return""}}function Pf(e){let t=e;return typeof t.checkValidity=="function"?t.checkValidity():!e.matches(":invalid")}function Ff(e){let t=e;typeof t.reportValidity=="function"?t.reportValidity():t.focus?.()}function Of(e){if(!(e instanceof HTMLFormElement))return;let t=e,i=t.wizardController;if(i instanceof hi&&i.form===t)return;let s=new hi(t);t.wizardController=s,t.wizardGoTo=n=>s.goTo(n),t.wizardNext=()=>s.next(),t.wizardPrev=()=>s.prev(),t.wizardReset=()=>s.reset()}function dE(){document.querySelectorAll("form[data-wizard]").forEach(Of)}var Os,If,cE,lE,uE,hi,Bf=w(()=>{ot();ut();ja();Za();D();Os="wizard",If="vb:wizard-session",cE=24,lE={back:"Back",next:"Next",submit:"Submit",step:"Step {n}",status:"Now on step {current} of {total}: {name}",completed:"Go to {name} (completed)",yes:"Yes"},uE=new Set(["button","submit","reset","image","checkbox","radio","file","color","range"]);hi=class{#t;#e=[];#i=0;#n=null;#s=null;#o=null;#r=!1;#a="step";#c="";#l=cE*36e5;#m=!1;#p=0;#d=0;#f=new AbortController;constructor(t){if(!t||!(t instanceof HTMLFormElement))throw new Error("WizardController requires a form element");this.#t=t,this.#g()}#g(){if(this.#e=Array.from(this.#t.querySelectorAll("fieldset[data-wizard-step]")),this.#e.length===0){console.warn("Wizard form has no steps");return}this.#r=this.#t.hasAttribute("data-wizard-history"),this.#a=this.#t.getAttribute("data-wizard-validate")||"step",this.#w(),this.#n=this.#t.querySelector("[data-wizard-progress]"),this.#M(),this.#Q(),this.#U(),this.#t.setAttribute("data-wizard-enhanced",""),this.#t.setAttribute("data-wizard-total",String(this.#e.length)),this.#tt(),this.#Y(),this.#q();let t=()=>{cancelAnimationFrame(this.#p),this.#p=requestAnimationFrame(()=>this.#G())};if(this.#t.addEventListener("change",t),this.#t.addEventListener("input",t),this.#c&&(this.#t.addEventListener("change",()=>this.#b()),this.#t.addEventListener("input",()=>this.#b())),this.#t.addEventListener("keydown",i=>this.#x(i)),this.#t.addEventListener("click",i=>this.#_(i)),this.#t.addEventListener("submit",i=>this.#D(i)),this.#t.addEventListener("vb:beforesubmit",i=>this.#H(i)),this.#t.addEventListener("reset",i=>{setTimeout(()=>{i.defaultPrevented||this.reset()},0)}),this.#r){let i=this.#P();i!==null&&i>=0&&i<this.#e.length&&(this.#i=i),window.addEventListener("hashchange",()=>{if(!this.#t.isConnected){this.#f.abort();return}let s=this.#P();s===null||s===this.#i||this.#ot(s,{push:!1})||this.#j(!1)},{signal:this.#f.signal})}if(this.#G(),this.#c){let i=this.#r&&this.#P()!==null;this.#m=!0,this.#k(i).finally(()=>{this.#m=!1})}}#u(t,i={}){return(this.#t.getAttribute(`data-label-${t}`)??lE[t]).replace(/\{(\w+)\}/g,(n,r)=>r in i?i[r]:n)}#y(t){try{return new Intl.NumberFormat(V(this.#t)).format(t)}catch{return String(t)}}#h(t,i){return t?.querySelector(":scope > legend")?.textContent?.trim()||this.#u("step",{n:this.#y(i+1)})}#w(){let t=this.#t.getAttribute("data-wizard-persist");if(t===null)return;if(!this.#t.id){console.warn("Wizard persistence requires an id on the form element");return}this.#c=t==="local"?"local":"session";let i=Number(this.#t.getAttribute("data-wizard-persist-hours"));i>0&&(this.#l=i*36e5)}#A(){let t={};for(let i of this.#t.elements){let s=Ut(i);!s||!ui(i)||(t[s]??=[]).push(...Ls(i))}return t}#S(){if(!this.#c||this.#m)return;let t={step:this.#i,data:this.#A(),session:this.#c==="session"?Rf():null};x.set(Os,this.#t.id,t).catch(()=>{})}#b(){this.#c&&(cancelAnimationFrame(this.#d),this.#d=requestAnimationFrame(()=>this.#S()))}async#k(t){let i;try{i=await x.get(Os,this.#t.id,{maxAge:this.#l})}catch{return}if(!i||typeof i!="object")return;let s=i;if(this.#c==="session"&&s.session!==Rf()){x.remove(Os,this.#t.id).catch(()=>{});return}let n=this.#E(s.data&&typeof s.data=="object"?s.data:{});!t&&typeof s.step=="number"&&s.step>=0&&s.step<this.#e.length&&(this.#i=s.step),this.#G(),this.#at("wizard:restore",{step:this.#i,fields:n})}#E(t){let i=new Set,s=new Map,n=[];for(let r of this.#t.elements){let a=Ut(r);if(!a||!Object.hasOwn(t,a)||!ui(r)||r.hasAttribute("readonly")||r.hasAttribute("disabled")&&!r.hasAttribute(li))continue;let o=t[a],c=(Array.isArray(o)?o:[o]).map(String),l=r;if(r instanceof HTMLInputElement&&(r.type==="checkbox"||r.type==="radio"))r.checked=c.includes(r.value||"on");else if(r instanceof HTMLSelectElement&&r.multiple)for(let u of r.options)u.selected=c.includes(u.value);else if(Array.isArray(l.value))l.value=c;else if("value"in l){let u=s.get(a)??0;s.set(a,u+1),l.value=c[u]??""}else continue;i.add(a),n.push(r)}for(let r of n)r.dispatchEvent(new Event("input",{bubbles:!0}));return[...i]}#v(){this.#c&&(cancelAnimationFrame(this.#d),x.remove(Os,this.#t.id).catch(()=>{}))}#N(){return this.#i>=this.#$().length-1}#x(t){if(t.key!=="Enter"||t.defaultPrevented||t.isComposing||t.shiftKey||t.ctrlKey||t.altKey||t.metaKey)return;let i=t.target;if(!(!(i instanceof HTMLInputElement)||uE.has(i.type))){if(!this.#N()){t.preventDefault(),this.next();return}!this.#C()&&this.#F()&&t.preventDefault()}}#_(t){let i=t.target?.closest?.("button, input");!i||i.type!=="submit"||i.form===this.#t&&(this.#C()||i.hasAttribute("formnovalidate")||this.#F()&&t.preventDefault())}#C(){return this.#t.noValidate&&!this.#t.hasAttribute("data-validate")}#F(){let t=this.#$();for(let i of this.#t.elements){if(i.matches(":disabled"))continue;let s=i.closest("fieldset[data-wizard-step]");if(!(!s||!t.includes(s))&&!Pf(i))return s.hasAttribute("data-wizard-active")?!1:(this.#ot(t.indexOf(s),{validate:!1,focus:!1}),Ff(i),!0)}return!1}#D(t){if(!this.#N()){t.preventDefault(),this.next();return}this.#t.hasAttribute("data-validate")||this.#R()}#H(t){this.#t.hasAttribute("data-validate")&&queueMicrotask(()=>{!t.defaultPrevented&&this.#N()&&this.#R()})}#R(){cancelAnimationFrame(this.#d),this.#at("wizard:complete"),this.#v()}#U(){this.#t.querySelectorAll(":scope > [data-wizard-status]").forEach(i=>i.remove());let t=document.createElement("p");t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.setAttribute("data-wizard-status",""),this.#s=t,this.#t.prepend(t)}#M(){let t=this.#t.getAttribute("data-wizard-steps");if(t){this.#o=document.querySelector(t);return}this.#o=this.#t.querySelector("nav.steps")}#L(){return this.#o?.localName==="progress-tracker"}#O(){return this.#o?[...this.#o.querySelectorAll(":scope ol > li")]:[]}#Q(){if(!this.#o)return;let t=this.#o.querySelector("ol");!t||t.children.length>0||this.#e.forEach((i,s)=>{let n=document.createElement("li");n.textContent=this.#h(i,s),t.appendChild(n)})}#I(){if(!this.#o)return;let t=this.#O(),i=this.#$();if(this.#L()){let s=this.#o;this.#e.forEach((a,o)=>{t[o]?.toggleAttribute("hidden",a.hasAttribute("data-wizard-hidden"))});let n=this.#e.indexOf(this.#z()),r=t[n];if(r){let a=r.dataset.step||String(n+1);s.getAttribute("data-current")!==a&&s.setAttribute("data-current",a)}return}this.#e.forEach((s,n)=>{let r=t[n];if(!r)return;if(r.removeAttribute("data-completed"),r.removeAttribute("aria-current"),r.removeAttribute("aria-disabled"),s.hasAttribute("data-wizard-hidden")){r.setAttribute("hidden","");return}r.removeAttribute("hidden");let a=i.indexOf(s),o=r.querySelector("a, button"),c=!o;a<this.#i?(r.setAttribute("data-completed",""),c&&r.setAttribute("role","button"),(o||r).setAttribute("aria-label",this.#u("completed",{name:this.#h(s,a)}))):(c&&r.removeAttribute("role"),(o||r).removeAttribute("aria-label"),a===this.#i?r.setAttribute("aria-current","step"):r.setAttribute("aria-disabled","true"))});for(let s of t){if(s.hasAttribute("hidden"))continue;(s.querySelector("a, button")||s).setAttribute("tabindex",s.hasAttribute("aria-current")?"0":"-1")}}#T(t){if(!t)return-1;let i=this.#O().indexOf(t),s=this.#e[i];return s?this.#$().indexOf(s):-1}#q(){let t=this.#o;if(!t)return;let i=this.#f.signal;if(this.#L()){t.addEventListener("progress-tracker:step",s=>{let n=s.detail;if(n?.source!=="click")return;let r=this.#O().find((o,c)=>(o.dataset.step||String(c+1))===String(n.step)),a=this.#T(r??null);a>=0&&this.goTo(a)},{signal:i});return}t.addEventListener("click",s=>{let n=s.target.closest("li");if(!n||!n.hasAttribute("data-completed")){n&&s.target.closest("a")&&s.preventDefault();return}s.preventDefault();let r=this.#T(n);r>=0&&this.goTo(r)},{signal:i}),t.addEventListener("keydown",s=>{let n=this.#O().filter(u=>!u.hasAttribute("hidden")),r=s.target.closest("li"),a=r?n.indexOf(r):-1;if(a===-1)return;if((s.key==="Enter"||s.key===" ")&&r?.getAttribute("role")==="button"){s.preventDefault();let u=this.#T(r);u>=0&&this.goTo(u);return}let o;switch(s.key){case"ArrowRight":case"ArrowDown":o=Math.min(a+1,n.length-1);break;case"ArrowLeft":case"ArrowUp":o=Math.max(a-1,0);break;case"Home":o=0;break;case"End":o=n.length-1;break;default:return}s.preventDefault();let c=n[a].querySelector("a, button")||n[a],l=n[o].querySelector("a, button")||n[o];c.setAttribute("tabindex","-1"),l.setAttribute("tabindex","0"),l.focus()},{signal:i})}#Y(){this.#t.addEventListener("click",t=>{let i=t.target?.closest?.("[data-wizard-prev], [data-wizard-next]");!i||!this.#t.contains(i)||(t.preventDefault(),i.hasAttribute("data-wizard-prev")?this.prev():this.next())})}#tt(){if(this.#t.querySelector("[data-wizard-nav]"))return;let t=document.createElement("nav");t.setAttribute("data-wizard-nav","");let i=document.createElement("button");i.type="button",i.setAttribute("data-wizard-prev",""),i.textContent=this.#u("back");let s=document.createElement("button");s.type="button",s.setAttribute("data-wizard-next",""),s.textContent=this.#u("next");let n=document.createElement("button");n.type="submit",n.textContent=this.#u("submit"),t.append(i,s,n),this.#t.appendChild(t)}#$(){return this.#e.filter(t=>!t.hasAttribute("data-wizard-hidden"))}#z(){return this.#$()[this.#i]}#B({push:t=!1}={}){let i=this.#$(),s=i[this.#i];this.#e.forEach(n=>{n.toggleAttribute("data-wizard-active",n===s)}),this.#t.setAttribute("data-wizard-current",String(this.#i+1)),this.#t.setAttribute("data-wizard-total",String(i.length)),this.#t.toggleAttribute("data-wizard-last",this.#i===i.length-1),this.#X(),this.#I(),this.#r&&this.#j(t),this.#it(),this.#nt()}#X(){if(!this.#n)return;let t=this.#$();this.#n.max=t.length,this.#n.value=this.#i+1}#j(t){let i=`#step=${this.#i+1}`;window.location.hash!==i&&(t?history.pushState(null,"",i):history.replaceState(null,"",i))}#P(){let t=window.location.hash.match(/step=(\d+)/);return t?parseInt(t[1],10)-1:null}#it(){if(!this.#s)return;let t=this.#$().length,i=this.#u("status",{current:this.#y(this.#i+1),total:this.#y(t),name:this.#h(this.#z(),this.#i)});this.#s.textContent!==i&&(this.#s.textContent=i)}#V(){let t=this.#z();if(!t)return;let i=t.querySelector(":scope > legend")||t;i.hasAttribute("tabindex")||i.setAttribute("tabindex","-1"),i.focus({preventScroll:!1})}#W(){let t=document.activeElement;return!t||t===document.body?!0:this.#t.contains(t)||!!this.#o?.contains(t)}#Z(){if(this.#a==="none")return!0;let t=this.#z();if(!t||t.hasAttribute("data-wizard-optional"))return!0;for(let i of this.#t.elements)if(!(!t.contains(i)||i.matches(":disabled"))&&!Pf(i))return Ff(i),!1;return!0}#G(){for(let i of this.#e){let s=i.getAttribute("data-wizard-if");if(!s)continue;let n=Ns(s,this.#t);i.toggleAttribute("data-wizard-hidden",!n),Ms(i,n)}let t=this.#$();this.#i>=t.length&&(this.#i=Math.max(0,t.length-1)),this.#B()}#J(t){return Ba(this.#t,t).flatMap(i=>this.#st(i)).join(", ")}#st(t){let i=Ls(t);return i.length?t instanceof HTMLSelectElement?[...t.selectedOptions].filter(s=>s.value!=="").map(s=>s.label.trim()||s.value):t instanceof HTMLInputElement&&(t.type==="checkbox"||t.type==="radio")?t.type==="checkbox"&&!this.#K(t)?[this.#u("yes")]:[this.#et(t)||i[0]]:i:[]}#K(t){return t.closest("fieldset:not([data-wizard-step])")?.querySelector(":scope > legend")?.textContent.trim()||""}#et(t){let i=t.labels;if(!i?.length)return"";let s=i[0].cloneNode(!0);return s.querySelectorAll("input, select, textarea").forEach(n=>n.remove()),s.textContent.replace(/\s+/g," ").trim()}#nt(){let t=this.#z();if(!t||!t.hasAttribute("data-wizard-summary"))return;let i=t.querySelectorAll("[data-wizard-field]");if(i.length>0){for(let r of i)r.textContent=this.#J(r.getAttribute("data-wizard-field")||"")||"\u2014";return}let s=t.querySelector("[data-wizard-summary-list]");s||(s=document.createElement("dl"),s.setAttribute("data-wizard-summary-list",""),t.appendChild(s)),s.replaceChildren();let n=new Set;for(let r of this.#t.elements){let a=r.closest("fieldset[data-wizard-step]");if(!a||a===t||a.hasAttribute("data-wizard-hidden")||r instanceof HTMLInputElement&&(r.type==="hidden"||r.type==="password")||r instanceof HTMLButtonElement||r instanceof HTMLFieldSetElement||r instanceof HTMLOutputElement)continue;let o=Ut(r);if(!o||n.has(o))continue;n.add(o);let c=this.#J(o);if(!c)continue;let l=document.createElement("dt");l.textContent=this.#rt(r)||o;let u=document.createElement("dd");u.textContent=c,s.append(l,u)}}#rt(t){if(t instanceof HTMLInputElement&&(t.type==="checkbox"||t.type==="radio")){let r=this.#K(t);if(r)return r}let i=this.#et(t);if(i)return i;let n=t.closest("form-field")?.querySelector("label");return n?n.textContent.trim():t.getAttribute("aria-label")||""}#at(t,i={}){this.#t.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:i}))}#ot(t,{validate:i=!0,focus:s=!0,push:n=!0}={}){let r=this.#$();if(t<0||t>=r.length||i&&t>this.#i&&!this.#Z())return!1;let a=s&&this.#W(),o=this.#i;return this.#i=t,this.#B({push:n}),a&&t!==o&&this.#V(),this.#at("wizard:step-change",{from:o,to:t}),this.#b(),!0}goTo(t){return this.#ot(t)}next(){return this.#N()?!1:this.#ot(this.#i+1)}prev(){return this.#i<=0?!1:this.#ot(this.#i-1)}reset(){this.#i=0,this.#G(),this.#v(),this.#at("wizard:reset")}get currentStep(){return this.#i}get totalSteps(){return this.#$().length}get form(){return this.#t}};typeof document<"u"&&C("form[data-wizard]",Of)});var Hf={};T(Hf,{initMobileForms:()=>jf});function jf(e=document){return()=>{}}var zf=w(()=>{typeof document<"u"&&jf()});var Uf={};T(Uf,{activateTrap:()=>fi,deactivateTrap:()=>Bs,initFocusTraps:()=>Co});function Co(e=document){e.querySelectorAll(qs).forEach(t=>fi(t))}function fi(e){if(xe.has(e))return;let t=document.activeElement,i=e.getAttribute("data-focus-trap")==="no-autofocus";function s(r){if(r.key!=="Tab")return;let a=Vf(e);if(!a.length)return;let o=a[0],c=a[a.length-1],l=document.activeElement;r.shiftKey&&l===o?(r.preventDefault(),c.focus()):!r.shiftKey&&l===c&&(r.preventDefault(),o.focus())}e.addEventListener("keydown",s);let n=()=>{e.removeEventListener("keydown",s)};xe.set(e,{cleanup:n,previousFocus:t}),i||requestAnimationFrame(()=>{let r=e.querySelector("[autofocus]");if(r)r.focus();else{let a=Vf(e);a.length&&a[0].focus()}})}function Bs(e){let t=xe.get(e);t&&(t.cleanup(),xe.delete(e),t.previousFocus&&t.previousFocus.isConnected&&t.previousFocus.focus())}function Vf(e){return[...e.querySelectorAll(hE)].filter(t=>t.offsetParent!==null)}var qs,hE,xe,fE,Wf=w(()=>{qs="[data-focus-trap]",hE='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])',xe=new WeakMap;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Co()):Co();fE=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(qs)&&fi(s),s.querySelectorAll(qs).forEach(n=>fi(n))}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;xe.has(s)&&Bs(s),s.querySelectorAll(qs).forEach(n=>{xe.has(n)&&Bs(n)})}if(t.type==="attributes"&&t.attributeName==="data-focus-trap"){let i=t.target;i.hasAttribute("data-focus-trap")?fi(i):Bs(i)}}});fE.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-focus-trap"]})});var mE={};var Gf,pE,Kf=w(()=>{Gf=80,pE=40;document.querySelectorAll("header[data-scroll-hide]").forEach(e=>{let t=e.closest("main")??window,i=()=>t===window?window.scrollY:t.scrollTop,s=i(),n=0,r=e.hasAttribute("data-hidden"),a=()=>{e.removeAttribute("data-hidden"),r=!1},o=()=>{let c=i(),l=c-s;if(s=c,l!==0){if(l>0){n=0,!r&&c>Gf&&!e.matches(":focus-within")&&(e.setAttribute("data-hidden",""),r=!0);return}n-=l,r&&(n>=pE||c<=Gf)&&a()}};t.addEventListener("scroll",o,{passive:!0}),e.addEventListener("focusin",()=>{r&&a()})})});var Xf={};T(Xf,{initSpotlights:()=>Yf});function gE(e){if(e.__vbSpotlight)return;e.__vbSpotlight=!0;let t=s=>{let n=e.getBoundingClientRect();e.style.setProperty("--spotlight-x",((s.clientX-n.left)/n.width*100).toFixed(1)+"%"),e.style.setProperty("--spotlight-y",((s.clientY-n.top)/n.height*100).toFixed(1)+"%")},i=()=>{e.style.setProperty("--spotlight-x","50%"),e.style.setProperty("--spotlight-y","50%")};e.addEventListener("mousemove",t,{passive:!0}),e.addEventListener("mouseleave",i,{passive:!0})}function Yf(e=document){e.querySelectorAll?.("[data-spotlight]").forEach(gE)}var Zf=w(()=>{Yf()});var ip={};T(ip,{getHotkeyActions:()=>ep});function To(e){let t=e.cloneNode(!0);return t.querySelectorAll('kbd, [aria-hidden="true"], .visually-hidden').forEach(i=>i.remove()),(t.textContent||"").replace(/\s+/g," ").trim()}function vE(e){let t=e.getAttribute("data-hotkey-label")||e.getAttribute("aria-label");if(t)return t.trim();let i=e.getAttribute("aria-labelledby");if(i){let n=i.split(/\s+/).map(r=>document.getElementById(r)?.textContent?.trim()).filter(Boolean).join(" ");if(n)return n}let s=e.labels;if(s?.length)return To(s[0]);if(e.tagName==="DETAILS"){let n=e.querySelector(":scope > summary");if(n)return To(n)}return To(e)||e.getAttribute("placeholder")||e.getAttribute("title")||""}function Qf(e){return!(!e.isConnected||(e.getAttribute("data-hotkey-action")==="toggle"?e.parentElement:e)?.closest("[hidden], [inert]")||e.disabled===!0||e.matches(":disabled"))}function wE(e){if(!e.hasAttribute("data-hotkey-scope"))return null;let t=e.getAttribute("data-hotkey-scope")?.trim();if(!t)return e;try{return e.closest(t)||document.querySelector(t)||e}catch{return e}}function Lo(e,t){document.dispatchEvent(new CustomEvent("vb:command-registry-change",{detail:{action:e,element:t}}))}function js(e,{notify:t=!0}={}){let i=Ce.get(e);i&&(i.unbind(),Ce.delete(e),i.ownsAria&&e.removeAttribute("aria-keyshortcuts"),t&&Lo("remove",e))}function tp(e){if(Ce.has(e)||e.tagName==="KBD"||!e.isConnected)return;let t=e.getAttribute("data-hotkey")?.trim();if(!t)return;let i=e.getAttribute("data-hotkey-action")||"click",s=Jf[i]||Jf.click,n=e.hasAttribute("data-hotkey-global"),r=wE(e),a=e.getAttribute("data-hotkey-group")||"Page Actions",o=At(t,()=>{if(!e.isConnected){js(e);return}s(e)},{global:n,scope:r,enabled:()=>e.isConnected?Qf(e):(queueMicrotask(()=>js(e)),!1)}),c=zi(t),l=!e.hasAttribute("aria-keyshortcuts")||e.getAttribute("aria-keyshortcuts")===c;l&&e.setAttribute("aria-keyshortcuts",c),Ce.set(e,{combo:t,label:vE(e)||t,group:a,scoped:!!r,character:Hi(t),unbind:o,ownsAria:l}),Lo("add",e)}function AE(){for(let e of[...Ce.keys()])e.isConnected||js(e)}function ep(){let e=new Map;for(let[t,i]of Ce){if(!Qf(t))continue;let s=e.get(i.group)||[];s.push({label:i.label,shortcut:i.combo,element:t,scoped:i.scoped,character:i.character}),e.set(i.group,s)}return e}var bE,yE,Ce,Jf,sp=w(()=>{D();je();qe();bE="[data-hotkey]:not(kbd)",yE=["data-hotkey","data-hotkey-action","data-hotkey-label","data-hotkey-group","data-hotkey-global","data-hotkey-scope"],Ce=new Map,Jf={click(e){e.click()},focus(e){e.focus()},submit(e){let t=e.closest("form")||(e.tagName==="FORM"?e:null);t&&t.requestSubmit()},toggle(e){"open"in e?e.open=!e.open:e.hasAttribute("hidden")?e.removeAttribute("hidden"):e.setAttribute("hidden","")}};typeof window<"u"&&(window.__hotkeyActionRegistry={getHotkeyActions:ep});C(bE,tp);typeof document<"u"&&new MutationObserver(e=>{let t=!1,i=new Set;for(let s of e)s.type==="childList"&&s.removedNodes.length&&(t=!0),s.type==="attributes"&&i.add(s.target);t&&AE();for(let s of i)s.tagName!=="KBD"&&(js(s,{notify:!1}),s.hasAttribute("data-hotkey")?tp(s):Lo("remove",s))}).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:yE})});var ap={};T(ap,{collectLinksByRel:()=>SE,upgradeBlankTargets:()=>rp});function np(e){return new Set((e.getAttribute("rel")||"").split(/\s+/).filter(Boolean))}function kE(e,t){e.setAttribute("rel",[...t].join(" "))}function rp(e=document){let t=document.documentElement?.dataset?.linkPrivacy==="strict";for(let i of e.querySelectorAll('a[href][target="_blank"]')){let s=np(i),n=[...s].some(a=>EE.has(a)),r=!1;n||(s.add("noopener"),r=!0),t&&!s.has("noreferrer")&&(s.add("noreferrer"),r=!0),r&&kE(i,s)}}function SE(e=document){let t=new Map;for(let i of e.querySelectorAll("a[rel]"))for(let s of np(i)){let n=t.get(s)??[];n.push(i),t.set(s,n)}return t}var EE,op=w(()=>{EE=new Set(["opener","noopener","noreferrer"]);rp(document)});var hp={};T(hp,{buildSrcset:()=>lp,initResponsiveImages:()=>dp});function lp(e,t,i=document.baseURI){let s;try{s=new URL(e,i)}catch{return""}let n=s.pathname.lastIndexOf("/"),r=s.pathname.slice(n+1),a=r.lastIndexOf(".");if(a<=0)return"";let o=s.pathname.slice(0,n+1),c=r.slice(0,a),l=r.slice(a);return t.map(u=>{let d=new URL(s.href);return d.pathname=`${o}${c}-${u}${l}`,`${d.href} ${u}w`}).join(", ")}function LE(e){return e.split(",").map(t=>parseInt(t.trim(),10)).filter(t=>t>0)}function NE(e){up?.unobserve(e)}function ME(e){if(!CE.test(e.getAttribute("srcset")||""))return!1;let t=(e.getAttribute("sizes")||"").trim();return!t||TE.test(t)?!0:/^auto\b/i.test(t)?e.loading!=="lazy":!1}function _E(e){let t=document.createElement("span");t.setAttribute("data-responsive-badge",""),t.setAttribute("aria-hidden","true");let i=()=>{let n=e.currentSrc||e.src;t.textContent=`${n.split("/").pop()} (${e.naturalWidth}px)`};e.addEventListener("load",i),e.complete&&i(),(e.parentElement instanceof HTMLPictureElement?e.parentElement:e).before(t)}function dp(e){if(cp.has(e))return;cp.add(e);let t=e.getAttribute("data-responsive")||"",i=e.getAttribute("src");if(t&&i){let n=LE(t),r=n.length?lp(i,n):"",a=e.getAttribute("srcset");r?a||(e.srcset=r):n.length&&console.warn("[data-responsive] No file extension to insert widths before:",i)}e.hasAttribute("decoding")||(e.decoding="async"),e.addEventListener("error",()=>NE(e)),!(e.complete&&e.naturalWidth===0&&e.currentSrc)&&ME(e)&&(No.delete(e),up?.observe(e)),e.hasAttribute("data-responsive-debug")&&_E(e)}var xE,cp,No,CE,TE,up,fp=w(()=>{D();xE="img[data-responsive]",cp=new WeakSet,No=new WeakMap,CE=/\s\d+w\s*(?:,|$)/,TE=/^\d+px$/;up=typeof ResizeObserver=="function"?new ResizeObserver(e=>{for(let t of e){let i=t.target,s=Math.round(t.contentBoxSize?.[0]?.inlineSize??t.contentRect.width);s>(No.get(i)??0)&&(No.set(i,s),i.sizes=`${s}px`)}}):null;C(xE,dp)});var gp={};T(gp,{initFloatingLabels:()=>mp});function mp(e){if(pp.has(e))return;pp.add(e);let t=e.querySelector("input, textarea, select");t&&(t.hasAttribute("placeholder")||t.setAttribute("placeholder"," "),e.setAttribute("data-floating-label-ready",""))}var $E,pp,bp=w(()=>{D();$E="form-field[data-floating-label]",pp=new WeakSet;C($E,mp)});var Ep={};T(Ep,{activate:()=>Mo,deactivate:()=>Hs});function Mo(e){if(e.getAttribute("aria-busy")==="true")return;e._vbLoadingOriginal=e.innerHTML,e._vbLoadingWidth=e.offsetWidth,e.style.minInlineSize=`${e._vbLoadingWidth}px`;let t=e.getAttribute("data-loading"),i=document.createElement("span");i.className="vb-btn-spinner",i.setAttribute("aria-hidden","true");let s=document.createElement("span");t?s.textContent=t:(s.className="visually-hidden",s.textContent=e.textContent.trim()),e.replaceChildren(i," ",s),e.setAttribute("aria-busy","true"),e.setAttribute("aria-disabled","true"),e.dataset.loadingActive="";let n=parseInt(e.getAttribute("data-loading-timeout"),10)||DE;e._vbLoadingTimer=setTimeout(()=>Hs(e),n)}function Hs(e){e.getAttribute("aria-busy")==="true"&&(clearTimeout(e._vbLoadingTimer),e._vbLoadingOriginal!=null&&(e.innerHTML=e._vbLoadingOriginal,delete e._vbLoadingOriginal),e.style.minInlineSize="",e.removeAttribute("aria-busy"),e.removeAttribute("aria-disabled"),delete e.dataset.loadingActive)}function wp(e){if(yp.has(e))return;yp.add(e),e.addEventListener("click",s=>{e.getAttribute("aria-busy")==="true"&&(s.preventDefault(),s.stopImmediatePropagation())},!0);let t=e.form;t&&e.type==="submit"&&new MutationObserver(()=>{!t.hasAttribute("data-submitting")&&e.getAttribute("aria-busy")==="true"&&Hs(e)}).observe(t,{attributes:!0,attributeFilter:["data-submitting"]}),new MutationObserver(()=>{e.hasAttribute("data-loading-active")?Mo(e):e.getAttribute("aria-busy")==="true"&&Hs(e)}).observe(e,{attributes:!0,attributeFilter:["data-loading-active"]})}function IE(e,t){return t||([...e.elements].find(i=>i instanceof HTMLButtonElement&&i.type==="submit"||i instanceof HTMLInputElement&&i.type==="submit")??null)}function Ap(e,t){let i=IE(e,t);i instanceof HTMLButtonElement&&i.matches(vp)&&(wp(i),Mo(i))}var vp,yp,DE,kp=w(()=>{D();vp="button[data-loading]",yp=new WeakSet,DE=1e4;document.addEventListener("submit",e=>{let t=e.target;t.matches("[data-validate]")||Ap(t,e.submitter)});document.addEventListener("vb:beforesubmit",e=>{if(e.defaultPrevented)return;let{form:t,submitter:i}=e.detail??{};t instanceof HTMLFormElement&&Ap(t,i)});C(vp,wp)});var xp={};T(xp,{initEmailForm:()=>Io});function RE(e){let t={};for(let i of e.elements){let s=i;s.name&&(s.type==="password"||s.type==="file"||(s.type==="checkbox"?t[s.name]=s.checked:s.type==="radio"?s.checked&&(t[s.name]=s.value):t[s.name]=s.value))}return t}async function PE(e){let t=e.currentTarget,i=t.getAttribute("data-vb-email-form"),s=t.getAttribute("data-vb-email-to");if(!i||(e.preventDefault(),t.hasAttribute(_o)))return;t.setAttribute(_o,"");let n=t.querySelector('button[type="submit"], button:not([type])'),r=n?.textContent;n&&(n.disabled=!0,t.dataset.vbEmailLoadingLabel&&(n.textContent=t.dataset.vbEmailLoadingLabel)),t.dispatchEvent(new CustomEvent("vb-email-form:submitting",{bubbles:!0,composed:!0,detail:{template:i}}));let a=RE(t);try{let c=await new J("email").post("/",{to:s||a.to||a.email,template:i,data:a});t.dispatchEvent(new CustomEvent("vb-email-form:success",{bubbles:!0,composed:!0,detail:{id:c?.id}})),t.hasAttribute("data-vb-email-no-reset")||t.reset(),Sp(t,"success")}catch(o){let c={error:o};o instanceof G&&(c.status=o.status,c.body=o.body),t.dispatchEvent(new CustomEvent("vb-email-form:error",{bubbles:!0,composed:!0,detail:c})),Sp(t,"error")}finally{t.removeAttribute(_o),n&&(n.disabled=!1,r&&(n.textContent=r))}}function Sp(e,t){let i=e.querySelector("[data-vb-email-status]");if(!i)return;let s=e.dataset.vbEmailSuccess||"Sent. Thank you.",n=e.dataset.vbEmailError||"Sorry, the message could not be sent. Try again.";i.dataset.state=t,i.textContent=t==="success"?s:n}function Do(e){e.hasAttribute("data-vb-email-form-init")||(e.setAttribute("data-vb-email-form-init",""),e.addEventListener("submit",PE))}function Io(e=document){for(let t of e.querySelectorAll($o))Do(t)}var $o,_o,FE,Cp=w(()=>{me();$o="form[data-vb-email-form]",_o="data-vb-email-submitting";document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Io()):Io();FE=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches?.($o)&&Do(s),s.querySelectorAll?.($o).forEach(n=>Do(n))}});FE.observe(document.documentElement,{childList:!0,subtree:!0})});var $p={};T($p,{initNewsletterForm:()=>Bo});function Mp(e){let t=(e.getAttribute("data-vb-newsletter-form")||"subscribe").trim();return OE.includes(t)?t:"subscribe"}function Tp(e){let t=[...e.querySelectorAll('input[type="checkbox"][name="lists"]')].filter(s=>s.checked).map(s=>s.value);return t.length?t:(e.getAttribute("data-vb-newsletter-lists")||"").split(",").map(s=>s.trim()).filter(Boolean)}function _p(e){return e.querySelector('input[name="email"]')}function Po(e,t,i){let s=e.querySelector("[data-vb-newsletter-status]");s&&(s.dataset.state=t,s.textContent=i)}function Lp(e,t,i){return i==="error"?e.dataset.vbNewsletterError||"Sorry, that did not work. Try again.":t==="unsubscribe"?e.dataset.vbNewsletterUnsubscribed||"Unsubscribed.":t==="preferences"?e.dataset.vbNewsletterSaved||"Preferences saved.":e.dataset.vbNewsletterSubscribed||"Subscribed. Check your inbox."}function Np(e,t){let i=e.querySelector('button[type="submit"], button:not([type])');i&&(t?(i.dataset.vbNewsletterPrevLabel=i.textContent||"",i.disabled=!0,e.dataset.vbNewsletterLoadingLabel&&(i.textContent=e.dataset.vbNewsletterLoadingLabel)):(i.disabled=!1,i.dataset.vbNewsletterPrevLabel!=null&&(i.textContent=i.dataset.vbNewsletterPrevLabel,delete i.dataset.vbNewsletterPrevLabel)))}async function zs(e,t,i){let s=new J("newsletter");if(e==="POST")return s.post(t,i);if(e==="GET")return s.get(t,i);throw new Error(`unsupported method ${e}`)}async function qE(e,t,i,s){if(!s.length&&t!=="preferences")throw new Error("No lists selected.");return zs("POST",t==="unsubscribe"?"/unsubscribe":"/subscribe",{email:i,lists:s})}async function BE(e,t){if(t)try{let i=await zs("GET","/preferences",{email:t});if(!i)return;let s=new Set(i.subscriptions||[]);for(let n of e.querySelectorAll('input[type="checkbox"][name="lists"]')){let r=n;r.checked=s.has(r.value)}e.dispatchEvent(new CustomEvent("vb-newsletter-form:preferences",{bubbles:!0,composed:!0,detail:{email:t,subscriptions:i.subscriptions,available:i.available}}))}catch(i){if(i instanceof G&&i.status===404)return;console.warn("[newsletter-form] preferences fetch failed",i)}}function Oo(e){return new Set([...e.querySelectorAll('input[type="checkbox"][name="lists"]')].filter(t=>t.checked).map(t=>t.value))}async function jE(e,t){let i=e.__vbNewsletterSnapshot??new Set,s=Oo(e),n=[...s].filter(o=>!i.has(o)),r=[...i].filter(o=>!s.has(o)),a={};return n.length&&(a.subscribe=await zs("POST","/subscribe",{email:t,lists:n})),r.length&&(a.unsubscribe=await zs("POST","/unsubscribe",{email:t,lists:r})),e.__vbNewsletterSnapshot=Oo(e),a}async function HE(e){let t=e.currentTarget,i=Mp(t),s=_p(t)?.value?.trim();if(e.preventDefault(),!s){Po(t,"error","Email is required.");return}if(!t.hasAttribute(Ro)){t.setAttribute(Ro,""),Np(t,!0),t.dispatchEvent(new CustomEvent("vb-newsletter-form:submitting",{bubbles:!0,composed:!0,detail:{mode:i}}));try{let n;if(i==="preferences")n=await jE(t,s);else{let r=Tp(t);n=await qE(t,i,s,r)}t.dispatchEvent(new CustomEvent("vb-newsletter-form:success",{bubbles:!0,composed:!0,detail:{mode:i,lists:Tp(t),response:n}})),Po(t,"success",Lp(t,i,"success")),i==="subscribe"&&!t.hasAttribute("data-vb-newsletter-no-reset")&&t.reset()}catch(n){let r={mode:i,error:n};n instanceof G&&(r.status=n.status,r.body=n.body),t.dispatchEvent(new CustomEvent("vb-newsletter-form:error",{bubbles:!0,composed:!0,detail:r}));let a=n instanceof Error&&n.message==="No lists selected."?"Pick at least one list.":Lp(t,i,"error");Po(t,"error",a)}finally{t.removeAttribute(Ro),Np(t,!1)}}}function qo(e){if(!e.hasAttribute("data-vb-newsletter-form-init")&&(e.setAttribute("data-vb-newsletter-form-init",""),e.addEventListener("submit",HE),Mp(e)==="preferences")){let t=_p(e);if(t){let i=async()=>{let s=t.value.trim();s&&(await BE(e,s),e.__vbNewsletterSnapshot=Oo(e))};t.addEventListener("change",i),t.addEventListener("blur",i)}}}function Bo(e=document){for(let t of e.querySelectorAll(Fo))qo(t)}var Fo,Ro,OE,zE,Dp=w(()=>{me();Fo="form[data-vb-newsletter-form]",Ro="data-vb-newsletter-submitting",OE=["subscribe","unsubscribe","preferences"];document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Bo()):Bo();zE=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches?.(Fo)&&qo(s),s.querySelectorAll?.(Fo).forEach(n=>qo(n))}});zE.observe(document.documentElement,{childList:!0,subtree:!0})});function VE(e){return[...e.querySelectorAll("li")].filter(t=>t.querySelector("a[href]"))}function Ip(e){return e.querySelector("li[data-audio-active]")}function jo(e,t,i){let s=i.querySelector("a[href]");return s?(t.querySelectorAll("li[data-audio-active]").forEach(n=>{n!==i&&n.removeAttribute("data-audio-active")}),i.setAttribute("data-audio-active",""),e.src=s.href,e.play()?.catch(()=>{}),{src:s.href,title:s.textContent?.trim()??""}):null}function Rp(e){let t=Ip(e);return t?.setAttribute("data-audio-played",""),t}function Pp(e,{loop:t=!1}={}){let i=VE(e);if(!i.length)return null;let s=Ip(e),n=s?i.indexOf(s):-1;return n+1<i.length?i[n+1]:t?i[0]:null}var Fp=w(()=>{});var Op={};T(Op,{initAllPlaylists:()=>Vo});function zo(e){if(e.hasAttribute("data-audio-playlist-init"))return;let t=e.querySelector("audio");if(!t)return;let i=e.querySelector(".track-list");i&&(e.setAttribute("data-audio-playlist-init",""),t.addEventListener("ended",()=>{Rp(i);let s=Pp(i);s&&jo(t,i,s)}),i.addEventListener("click",s=>{let n=s.target.closest("a[href]"),r=n?.closest("li");!n||!r||(s.preventDefault(),jo(t,i,r))}))}function Vo(e=document){e.querySelectorAll(Ho).forEach(t=>zo(t))}var Ho,UE,qp=w(()=>{Fp();Ho="[data-audio-playlist]";document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Vo()):Vo();UE=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Ho)&&zo(s),s.querySelectorAll(Ho).forEach(n=>zo(n))}});UE.observe(document.documentElement,{childList:!0,subtree:!0})});function WE(e,t){let i=Number(e);return!Number.isFinite(i)||t<=0?1:Math.min(Math.max(1,Math.floor(i)),t)}function GE({page:e,size:t}){let i=(e-1)*t;return{start:i,end:i+t}}function KE(e,t,i=2){if(t<=0)return[];if(t===1)return[1];let s=Math.max(2,e-i),n=Math.min(t-1,e+i),r=[1];s>2&&r.push("\u2026");for(let a=s;a<=n;a++)r.push(a);return n<t-1&&r.push("\u2026"),r.push(t),r}function Uo({total:e,size:t,page:i,window:s=2}){if(t<=0)return{page:(e>0,1),totalPages:e>0?1:0,start:0,end:e,pageNumbers:e>0?[1]:[]};let n=e>0?Math.ceil(e/t):0,r=WE(i,n),a=GE({page:r,size:t}),o=Math.min(a.end,e);return{page:r,totalPages:n,start:a.start,end:o,pageNumbers:KE(r,n,s)}}var Bp=w(()=>{});function Vs(e,t){return e.replace(/\{(\w+)\}/g,(i,s)=>s in t?String(t[s]):i)}function Wo(e){switch(e.style){case"load-more":return ZE(e);case"prev-next":return XE(e);default:return YE(e)}}function Go(e="Pagination"){let t=document.createElement("nav");return t.setAttribute("data-paged-nav",""),t.setAttribute("aria-label",e),t}function YE({page:e,totalPages:t,pageNumbers:i,navLabel:s,prevLabel:n="Previous",nextLabel:r="Next",pageLabel:a=o=>`Page ${o}`}){let o=Go(s),c=document.createElement("ol");c.setAttribute("role","list"),c.appendChild(pi(n,e-1,e===1,!1,"prev"));for(let l of i)if(l==="\u2026"){let u=document.createElement("li");u.textContent="\u2026",u.setAttribute("aria-hidden","true"),u.setAttribute("data-paged-ellipsis",""),c.appendChild(u)}else{let u=pi(String(l),l,!1,l===e,"page");u.firstElementChild?.setAttribute("aria-label",a(l)),c.appendChild(u)}return c.appendChild(pi(r,e+1,e===t,!1,"next")),o.appendChild(c),o}function XE({page:e,totalPages:t,navLabel:i,prevLabel:s="Previous",nextLabel:n="Next",statusLabel:r=(a,o)=>`Page ${a} of ${o}`}){let a=Go(i),o=document.createElement("ol");o.setAttribute("role","list"),o.appendChild(pi(s,e-1,e===1,!1,"prev"));let c=document.createElement("li");return c.setAttribute("data-paged-status",""),c.setAttribute("aria-live","polite"),c.textContent=r(e,t),o.appendChild(c),o.appendChild(pi(n,e+1,e===t,!1,"next")),a.appendChild(o),a}function ZE({total:e,visible:t,navLabel:i,loadMoreLabel:s=r=>`Load more (${r})`,noMoreLabel:n="No more"}){let r=Go(i),a=document.createElement("button");a.type="button",a.setAttribute("data-paged-loadmore","");let o=Math.max(0,e-t);return a.textContent=o>0?s(o):n,a.disabled=o<=0,r.appendChild(a),r}function pi(e,t,i,s,n){let r=document.createElement("li"),a=document.createElement("button");return a.type="button",a.setAttribute("data-paged-action",n),a.dataset.pagedTarget=String(t),a.textContent=e,s&&a.setAttribute("aria-current","page"),i&&(a.disabled=!0),r.appendChild(a),r}function Ko(e,{onNavigate:t,onLoadMore:i}){t&&e.querySelectorAll("button[data-paged-target]").forEach(s=>{s.addEventListener("click",()=>t(parseInt(s.dataset.pagedTarget||"1",10)))}),i&&e.querySelectorAll("button[data-paged-loadmore]").forEach(s=>{s.addEventListener("click",()=>i())})}function jp(e,t){if(!e||!e.parentNode)return;let i=document.activeElement,n=!!i&&e.contains(i)&&i?{action:i.getAttribute("data-paged-action"),target:i.getAttribute("data-paged-target"),loadMore:i.hasAttribute("data-paged-loadmore")}:null,r=e.querySelector("[data-paged-status]"),a=t.querySelector("[data-paged-status]");r&&a&&(r.textContent!==a.textContent&&(r.textContent=a.textContent),a.hasAttribute("aria-live")?r.setAttribute("aria-live",a.getAttribute("aria-live")||"polite"):r.removeAttribute("aria-live"),a.replaceWith(r)),e.replaceWith(t),n&&JE(t,n)}function JE(e,t){let i=n=>e.querySelector(`${n}:not([disabled])`),s=[];t.loadMore&&s.push("button[data-paged-loadmore]"),t.action&&(s.push(`button[data-paged-action="${t.action}"][data-paged-target="${t.target}"]`),t.action!=="page"&&s.push(`button[data-paged-action="${t.action}"]`)),s.push('button[aria-current="page"]',"button");for(let n of s){let r=i(n);if(r){r.focus();return}}e.tabIndex=-1,e.focus()}var Hp=w(()=>{});var Kp={};T(Kp,{initDataPaged:()=>Up});function Up(e){if(zp.has(e))return;let t={host:e,nav:{before:null,after:null},sentinel:null,intersect:null,children:[],childObserver:null,visible:0};zp.set(e,t);let i=e.dataset.pagedUrl;if(i){let n=new URL(window.location.href).searchParams.get(i);n&&!e.hasAttribute("data-paged-page")&&e.setAttribute("data-paged-page",n),window.addEventListener("popstate",()=>{if(!e.isConnected)return;let r=new URL(window.location.href);e.setAttribute("data-paged-page",r.searchParams.get(i)||"1"),mi(t)})}t.childObserver=new MutationObserver(()=>mi(t)),t.childObserver.observe(e,{childList:!0}),e.addEventListener("paged:goto",s=>Gp(t,s.detail?.page??1)),e.addEventListener("paged:loadmore",()=>Zo(t)),mi(t)}function Xo(e){return{size:parseInt(e.dataset.pagedSize||"10",10)||0,page:parseInt(e.dataset.pagedPage||"1",10)||1,style:e.dataset.pagedStyle||"numbered",window:parseInt(e.dataset.pagedWindow||"2",10)||2,controls:e.dataset.pagedControls||"after",urlParam:e.dataset.pagedUrl||""}}function Wp(e){if(e.tagName==="TABLE"){let t=e.querySelector(":scope > tbody");if(t)return Array.from(t.children)}return Array.from(e.children).filter(t=>!t.matches("nav[data-paged-nav], div[data-paged-sentinel]"))}function mi(e){let{host:t}=e,i=Xo(t),s=Wp(t);e.children=s;let n=Uo({total:s.length,size:i.size,page:i.page,window:i.window}),r=i.style==="load-more"||i.style==="infinite",a;if(r){e.visible===0&&(e.visible=i.size||s.length);let o=Math.min(e.visible,s.length);s.forEach((c,l)=>{c.hidden=l>=o}),a=o}else s.forEach((o,c)=>{o.hidden=c<n.start||c>=n.end}),a=Math.max(0,n.end-n.start);tk(e,n,i,r),t.dispatchEvent(new CustomEvent("paged:change",{bubbles:!0,detail:{page:n.page,size:i.size,total:s.length,totalPages:n.totalPages,visible:a,style:i.style}}))}function Yo(e){let t=new Intl.NumberFormat(V(e)),i=(s,n)=>R(e,s,n);return{navLabel:i("nav","Pagination"),prevLabel:i("prev","Previous"),nextLabel:i("next","Next"),pageLabel:s=>Vs(i("page","Page {page}"),{page:t.format(s)}),statusLabel:(s,n)=>Vs(i("status","Page {page} of {total}"),{page:t.format(s),total:t.format(n)}),loadMoreLabel:s=>Vs(i("load-more","Load more ({n})"),{n:t.format(s)}),noMoreLabel:i("no-more","No more")}}function tk(e,t,i,s){e.sentinel?.remove(),e.sentinel=null,e.intersect?.disconnect(),e.intersect=null;let n=null;if(i.controls!=="none"&&(i.style==="load-more"?n=Wo({style:"load-more",page:t.page,totalPages:t.totalPages,pageNumbers:t.pageNumbers,total:e.children.length,visible:e.visible,...Yo(e.host)}):!s&&t.totalPages>1&&(n=Wo({style:i.style,page:t.page,totalPages:t.totalPages,pageNumbers:t.pageNumbers,total:e.children.length,visible:e.visible,...Yo(e.host)}))),i.style==="infinite"){let r=document.createElement("div");r.setAttribute("data-paged-sentinel",""),r.setAttribute("aria-hidden","true"),r.style.cssText="block-size:1px;inline-size:100%",e.host.parentNode?.insertBefore(r,e.host.nextSibling),e.sentinel=r,e.intersect=new IntersectionObserver(a=>{for(let o of a)o.isIntersecting&&Zo(e)},{rootMargin:"200px"}),e.intersect.observe(r)}ek(e,n,i)}function ek(e,t,i){let{host:s}=e,n={onNavigate:l=>Gp(e,l),onLoadMore:()=>Zo(e)},r=!!t&&(i.controls==="before"||i.controls==="both"),a=!!t&&(i.controls==="after"||i.controls==="both"),o=null;r&&(o=a?t.cloneNode(!0):t,a&&o.querySelector("[data-paged-status]")?.removeAttribute("aria-live"),Ko(o,n));let c=a?t:null;c&&Ko(c,n),e.nav.before=Vp(e.nav.before,o,l=>s.parentNode?.insertBefore(l,s)),e.nav.after=Vp(e.nav.after,c,l=>s.parentNode?.insertBefore(l,s.nextSibling))}function Vp(e,t,i){return e?.isConnected&&t?(jp(e,t),t):(e?.remove(),t&&i(t),t)}function Gp(e,t){let{host:i}=e,s=Xo(i),n=Wp(i),r=Uo({total:n.length,size:s.size,page:t,window:s.window});if(r.page!==s.page){if(i.setAttribute("data-paged-page",String(r.page)),s.urlParam){let a=new URL(window.location.href);a.searchParams.set(s.urlParam,String(r.page)),window.history.pushState({},"",a)}mi(e),s.style!=="prev-next"&&Z(Yo(i).statusLabel(r.page,r.totalPages))}}function Zo(e){let i=Xo(e.host).size||10,s=e.visible;if(e.visible=Math.min(e.visible+i,e.children.length),mi(e),e.visible>s){let n=new Intl.NumberFormat(V(e.host));Z(R(e.host,"showing","Showing {visible} of {total}",{visible:n.format(e.visible),total:n.format(e.children.length)}))}}var QE,zp,Yp=w(()=>{D();Bp();Hp();wt();ut();QE="[data-paged]",zp=new WeakMap;C(QE,Up)});function Te(e){if(!e)return null;let t=String(e);return t.startsWith("-")?{key:t.slice(1),direction:"desc"}:t.startsWith("+")?{key:t.slice(1),direction:"asc"}:{key:t,direction:"asc"}}function ik(e,t,i){let s=t==="desc"?-1:1,n=e==="text"||!Jp[e]?sk(i):Jp[e];return(r,a)=>{let o=tm(r),c=tm(a);return o&&c?0:o?1:c?-1:s*n(r,a)}}function em(e,t,i,s,n){let r=ik(i,s,n),a=Array.from({length:e.length},(o,c)=>c);return a.sort((o,c)=>{let l=r(t(e[o]),t(e[c]));return l===0?o-c:l}),a}function im(e){return e==="asc"?"desc":e==="desc"?"none":"asc"}function sk(e){let t=e||"",i=Xp.get(t);if(!i){try{i=new Intl.Collator(e||void 0,{sensitivity:"base",numeric:!0})}catch{i=new Intl.Collator(void 0,{sensitivity:"base",numeric:!0})}Xp.set(t,i)}return(s,n)=>i.compare(String(s),String(n))}function Zp(e){if(typeof e=="number")return e;let t=String(e??"").trim().replace(/[\u2212\u2012\u2013]/g,"-"),i=/^\(.*\)$/.test(t)||/^-|-$/.test(t.replace(/[^\d.,-]/g,""));if(t=t.replace(/[^\d.,]/g,""),!t)return NaN;let s=t.lastIndexOf(","),n=t.lastIndexOf(".");if(s>-1&&n>-1){let a=s>n?",":".",o=a===","?".":",";t=t.split(o).join("").replace(a,".")}else if(s>-1){let a=t.split(",");t=a.length>2||a.length===2&&a[1].length===3?a.join(""):a.join(".")}else(t.match(/\./g)||[]).length>1&&(t=t.split(".").join(""));let r=Number(t);return i?-r:r}function Qp(e){return e instanceof Date?e.getTime():Date.parse(String(e))}function tm(e){return e==null||e===""}var Xp,Jp,sm=w(()=>{Xp=new Map;Jp={number(e,t){let i=Zp(e),s=Zp(t);return Number.isNaN(i)&&Number.isNaN(s)?0:Number.isNaN(i)?1:Number.isNaN(s)||i<s?-1:i>s?1:0},date(e,t){let i=Qp(e),s=Qp(t);return Number.isNaN(i)&&Number.isNaN(s)?0:Number.isNaN(i)?1:Number.isNaN(s)||i<s?-1:i>s?1:0}}});var cm={};T(cm,{initDataSortable:()=>am});function am(e){if(Us.has(e))return;Us.add(e),e.tagName==="TABLE"&&rk(e);let i=e.dataset.sortableDefault;if(i&&!e.dataset.sortBy){let s=Te(i);s&&Gt(e,s.key,s.direction)}if(!e.dataset.sortBy)for(let s of Qo()){if(s.tagName!=="SELECT"||gi(s)!==e)continue;let n=Te(s.value);if(n){Gt(e,n.key,n.direction);break}}Ws(e)}function rk(e){e.querySelectorAll(":scope > thead th[data-sort]").forEach(i=>{i.hasAttribute("aria-sort")||i.setAttribute("aria-sort","none"),ak(i),i.addEventListener("click",s=>{let r=s.target.closest?.("a, input, select, textarea, button:not([data-sort-button])");if(r&&i.contains(r))return;let a=i.dataset.sort;if(!a)return;let o=e.dataset.sortBy===a?e.dataset.sortDirection:"none",c=im(o||"none");c==="none"?Gt(e,"","none"):Gt(e,a,c,i.dataset.sortType)})})}function ak(e){let t=e.querySelector(":scope > button[data-sort-button]");if(t)return t;let i=document.createElement("button");return i.type="button",i.setAttribute("data-sort-button",""),i.append(...e.childNodes),e.appendChild(i),i}function Qo(){return document.querySelectorAll("[data-sort-target]")}function gi(e){let t=e.getAttribute("data-sort-target");if(!t)return null;let i=null;try{i=document.querySelector(t)}catch{return null}return i?.matches("[data-sortable]")?i:null}function nm(e,t){let i=gi(e);if(!i)return;let s=Te(t);if(!s){Gt(i,"","none");return}if(Gt(i,s.key,s.direction),i.tagName==="TABLE")return;let n=e,r=e.tagName==="SELECT"?n.selectedOptions[0]?.textContent||t:e.getAttribute("aria-label")||e.textContent||t,a=new Intl.NumberFormat(V(i)).format(om(i).length);Z(R(i,"sorted","Sorted: {sort}. {count} items",{sort:r.trim(),count:a}))}function Ws(e){let t=e.dataset.sortBy?(e.dataset.sortDirection==="desc"?"-":"")+e.dataset.sortBy:"";for(let i of Qo()){if(i.tagName!=="BUTTON"||gi(i)!==e)continue;let s=Te(i.getAttribute("data-sort-by")||""),n=s?(s.direction==="desc"?"-":"")+s.key:"";i.setAttribute("aria-pressed",String(!!n&&n===t))}}function Jo(){for(let e of Qo())if(!Us.has(e)&&e.getAttribute("data-sort-target"))if(Us.add(e),e.tagName==="SELECT"){e.addEventListener("change",()=>nm(e,e.value));let t=gi(e),i=Te(e.value);t&&i&&!t.dataset.sortBy&&Gt(t,i.key,i.direction)}else{e.addEventListener("click",()=>nm(e,e.getAttribute("data-sort-by")||""));let t=gi(e);t&&Ws(t)}}function ok(e,t,i,s={}){if(s.isTable){let r=s.colIndex,a=e.children[r];if(!a)return"";let o=a.dataset.sortValue??a.dataset.value;if(o!=null)return o;if(i==="date"){let c=a.querySelector("time[datetime]");if(c)return c.getAttribute("datetime")||""}return(a.textContent||"").trim()}let n=e.dataset[`sort${ck(t)}`];return n??(e.dataset.value!=null?e.dataset.value:(e.textContent||"").trim())}function ck(e){return e?e[0].toUpperCase()+e.slice(1):""}function om(e){if(e.tagName==="TABLE"){let t=e.querySelector(":scope > tbody");return t?Array.from(t.children):[]}return Array.from(e.children)}function lk(e,t){return Array.from(e.querySelectorAll(":scope > thead th")).findIndex(s=>s.dataset.sort===t)}function Gt(e,t,i,s){let n=e.tagName==="TABLE",r=om(e);if(i==="none"||!t){e.removeAttribute("data-sort-by"),e.dataset.sortDirection="none",n?rm(e,"","none"):Ws(e),e.dispatchEvent(new CustomEvent("sort:change",{bubbles:!0,detail:{key:"",direction:"none",total:r.length}}));return}let a=uk(e,t,s),o=n?lk(e,t):-1,c=em(r,u=>ok(u,t,a,{isTable:n,colIndex:o}),a,i,V(e)),l=n?e.querySelector(":scope > tbody"):e;if(l){for(let u of c)l.appendChild(r[u]);e.dataset.sortBy=t,e.dataset.sortDirection=i,n?rm(e,t,i):Ws(e),e.hasAttribute("data-paged")&&e.dispatchEvent(new CustomEvent("paged:goto",{detail:{page:1}})),e.dispatchEvent(new CustomEvent("sort:change",{bubbles:!0,detail:{key:t,direction:i,total:r.length}}))}}function uk(e,t,i){if(i==="text"||i==="number"||i==="date")return i;if(e.tagName==="TABLE"){let r=e.querySelector(`:scope > thead th[data-sort="${dk(t)}"]`)?.dataset.sortType;if(r==="text"||r==="number"||r==="date")return r}let s=e.dataset.sortType;return s==="text"||s==="number"||s==="date"?s:"text"}function dk(e){return String(e).replace(/["\\]/g,"\\$&")}function rm(e,t,i){e.querySelectorAll(":scope > thead th[data-sort]").forEach(n=>{n.dataset.sort===t&&i!=="none"?n.setAttribute("aria-sort",i==="asc"?"ascending":"descending"):n.setAttribute("aria-sort","none")})}var nk,Us,lm=w(()=>{D();sm();ut();wt();nk="[data-sortable]",Us=new WeakSet;C(nk,am);typeof document<"u"&&(document.readyState!=="loading"?Jo():document.addEventListener("DOMContentLoaded",Jo),C("[data-sort-target]",()=>Jo()))});function um(e){if(!e)return null;let t=String(e).trim();if(!t)return null;if(t.startsWith("class:")){let i=t.slice(6).trim();return i?{kind:"class",name:i}:null}return{kind:"attr",name:t}}function bi(e){return hk.has(String(e).toLowerCase())}function tc(e){return fk.has(String(e).toLowerCase())}function dm(e,t,i){if(e.kind==="class")return t?{present:!1}:{present:!0};if(bi(e.name))return t?{present:!1}:{present:!0,value:""};if(tc(e.name))return{present:!0,value:t==="true"||t===!0?"false":"true"};let s=i.on??"true",n=i.off??"false";return{present:!0,value:t===s?n:s}}var hk,fk,hm=w(()=>{hk=new Set(["hidden","disabled","open","checked","readonly","required","multiple","selected","autofocus","autoplay","controls","defer","inert","loop","muted","nomodule","novalidate","playsinline","reversed"]),fk=new Set(["aria-pressed","aria-expanded","aria-selected","aria-checked"])});var gm={};T(gm,{initDataToggle:()=>mm});function mm(e){if(fm.has(e))return;fm.add(e);let t=um(e.dataset.toggle);if(!t)return;let i=e.dataset.toggleTarget,s=i?document.querySelector(i):e;if(!s)return;let n=s!==e;n&&s.id&&e.setAttribute("aria-controls",s.id),t.kind==="attr"&&bi(t.name)&&!n&&e.setAttribute("aria-pressed",String(s.hasAttribute(t.name))),pm(e,s,t),e.addEventListener("click",r=>{r.preventDefault();let a={on:e.dataset.toggleOn,off:e.dataset.toggleOff},o;t.kind==="class"?o=s.classList.contains(t.name):bi(t.name)?o=s.hasAttribute(t.name):o=s.getAttribute(t.name);let c=dm(t,o,a);t.kind==="class"?c.present?s.classList.add(t.name):s.classList.remove(t.name):c.present?s.setAttribute(t.name,c.value??""):s.removeAttribute(t.name),!n&&bi(t.name)&&e.setAttribute("aria-pressed",String(c.present)),!n&&tc(t.name),pm(e,s,t,c),e.dispatchEvent(new CustomEvent("toggle:change",{bubbles:!0,detail:{spec:t.kind==="class"?`class:${t.name}`:t.name,value:c.value,present:c.present,target:s}}))})}function pm(e,t,i,s){if(t===e)return;let n=t.hasAttribute("popover"),r=i.kind==="attr"&&i.name.startsWith("data-")&&(e.dataset.toggleOn||"").toLowerCase()==="open";if(!n&&!r)return;let a;s?a=n?s.present:s.value==="open":a=n?t.matches(":popover-open"):t.getAttribute(i.name)==="open",e.setAttribute("aria-expanded",String(a))}var pk,fm,bm=w(()=>{D();hm();pk="[data-toggle]",fm=new WeakSet;C(pk,mm)});var wm={};T(wm,{decorateCardTable:()=>ec,initTableCard:()=>vm});function yi(e,t){e.hasAttribute("role")||e.setAttribute("role",t)}function gk(e){let t=e.tHead?.rows;if(!t?.length)return[];let i=[];for(let s of t[t.length-1].cells){let n=(s.textContent||"").replace(/\s+/g," ").trim();for(let r=0;r<s.colSpan;r++)i.push(n)}return i}function ec(e){yi(e,"table");let t=gk(e);for(let i of[e.tHead,...e.tBodies,e.tFoot]){if(!i)continue;yi(i,"rowgroup");let s=i===e.tHead;for(let n of i.rows){yi(n,"row");let r=0;for(let a of n.cells){if(a.tagName==="TH"){let o=a.getAttribute("scope");yi(a,s||o==="col"||o==="colgroup"?"columnheader":"rowheader")}else yi(a,"cell");!s&&!a.hasAttribute("data-label")&&t[r]&&a.setAttribute("data-label",t[r]),r+=a.colSpan}}}}function vm(e){let t=e;ym.has(t)||(ym.add(t),ec(t),new MutationObserver(()=>ec(t)).observe(t,{childList:!0,subtree:!0}))}var mk,ym,Am=w(()=>{D();mk='table[data-responsive="card"]',ym=new WeakSet;C(mk,vm)});var Lm={};T(Lm,{EMOJI_ALIASES:()=>Cm,EMOJI_GROUPS:()=>bk,EMOJI_GROUP_ICONS:()=>vk,EMOJI_GROUP_LABELS:()=>yk,EMOJI_MAP:()=>vi,EXTENDED_EVENT:()=>wk,EXTENDED_REGISTRY:()=>Tm,extendedCount:()=>Ak,getByGroup:()=>kk,resolveEmoji:()=>Ek,searchEmoji:()=>Sk});function Ks(){for(;xm<Sm.length;){let e=Sm[xm++];for(let[t,i,s,n]of e){if(vi.has(t))continue;let r={shortcode:t,emoji:i,name:s,keywords:[],group:n};vi.set(t,r),wi.push(r)}}}function Ak(){return Ks(),wi.length}function Ek(e){Ks();let t=vi.get(e);if(t)return t;let i=Cm.get(e);return i&&vi.get(i)||null}function kk(e){Ks();let t=Gs.filter(s=>s.group===e),i=wi.filter(s=>s.group===e);return i.length>0?t.concat(i):t}function Sk(e){Ks();let t=e.toLowerCase().trim(),i=wi.length>0?Gs.concat(wi):Gs;return t?i.filter(s=>s.shortcode.includes(t)||s.name.toLowerCase().includes(t)||s.keywords&&s.keywords.some(n=>n.includes(t))):i}var Gs,vi,Cm,bk,yk,vk,Tm,wk,Sm,xm,wi,Nm=w(()=>{Gs=[{shortcode:"smile",emoji:"\u{1F604}",name:"Smiling Face with Open Mouth",keywords:["happy","joy","laugh"],group:"smileys"},{shortcode:"grinning",emoji:"\u{1F600}",name:"Grinning Face",keywords:["happy","smile"],group:"smileys"},{shortcode:"laughing",emoji:"\u{1F606}",name:"Grinning Squinting Face",keywords:["happy","laugh"],group:"smileys"},{shortcode:"sweat_smile",emoji:"\u{1F605}",name:"Grinning Face with Sweat",keywords:["hot","relief"],group:"smileys"},{shortcode:"rofl",emoji:"\u{1F923}",name:"Rolling on the Floor Laughing",keywords:["lol","funny"],group:"smileys"},{shortcode:"joy",emoji:"\u{1F602}",name:"Face with Tears of Joy",keywords:["happy","cry","laugh"],group:"smileys"},{shortcode:"slightly_smiling_face",emoji:"\u{1F642}",name:"Slightly Smiling Face",keywords:["smile"],group:"smileys"},{shortcode:"upside_down_face",emoji:"\u{1F643}",name:"Upside-Down Face",keywords:["sarcasm","silly"],group:"smileys"},{shortcode:"wink",emoji:"\u{1F609}",name:"Winking Face",keywords:["flirt","joke"],group:"smileys"},{shortcode:"blush",emoji:"\u{1F60A}",name:"Smiling Face with Smiling Eyes",keywords:["happy","shy"],group:"smileys"},{shortcode:"innocent",emoji:"\u{1F607}",name:"Smiling Face with Halo",keywords:["angel","good"],group:"smileys"},{shortcode:"heart_eyes",emoji:"\u{1F60D}",name:"Smiling Face with Heart-Eyes",keywords:["love","crush"],group:"smileys"},{shortcode:"star_struck",emoji:"\u{1F929}",name:"Star-Struck",keywords:["wow","amazing"],group:"smileys"},{shortcode:"kissing_heart",emoji:"\u{1F618}",name:"Face Blowing a Kiss",keywords:["love","kiss"],group:"smileys"},{shortcode:"yum",emoji:"\u{1F60B}",name:"Face Savoring Food",keywords:["delicious","tasty"],group:"smileys"},{shortcode:"stuck_out_tongue",emoji:"\u{1F61B}",name:"Face with Tongue",keywords:["playful","silly"],group:"smileys"},{shortcode:"stuck_out_tongue_winking_eye",emoji:"\u{1F61C}",name:"Winking Face with Tongue",keywords:["silly","playful"],group:"smileys"},{shortcode:"zany_face",emoji:"\u{1F92A}",name:"Zany Face",keywords:["crazy","wild"],group:"smileys"},{shortcode:"hugs",emoji:"\u{1F917}",name:"Hugging Face",keywords:["hug","warm"],group:"smileys"},{shortcode:"thinking",emoji:"\u{1F914}",name:"Thinking Face",keywords:["hmm","consider"],group:"smileys"},{shortcode:"shushing_face",emoji:"\u{1F92B}",name:"Shushing Face",keywords:["quiet","secret"],group:"smileys"},{shortcode:"smirk",emoji:"\u{1F60F}",name:"Smirking Face",keywords:["sly","suggestive"],group:"smileys"},{shortcode:"unamused",emoji:"\u{1F612}",name:"Unamused Face",keywords:["bored","unimpressed"],group:"smileys"},{shortcode:"roll_eyes",emoji:"\u{1F644}",name:"Face with Rolling Eyes",keywords:["annoyed","whatever"],group:"smileys"},{shortcode:"grimacing",emoji:"\u{1F62C}",name:"Grimacing Face",keywords:["awkward","nervous"],group:"smileys"},{shortcode:"relieved",emoji:"\u{1F60C}",name:"Relieved Face",keywords:["calm","peaceful"],group:"smileys"},{shortcode:"pensive",emoji:"\u{1F614}",name:"Pensive Face",keywords:["sad","thoughtful"],group:"smileys"},{shortcode:"sleepy",emoji:"\u{1F62A}",name:"Sleepy Face",keywords:["tired","sleep"],group:"smileys"},{shortcode:"sleeping",emoji:"\u{1F634}",name:"Sleeping Face",keywords:["zzz","sleep"],group:"smileys"},{shortcode:"mask",emoji:"\u{1F637}",name:"Face with Medical Mask",keywords:["sick","health"],group:"smileys"},{shortcode:"nerd_face",emoji:"\u{1F913}",name:"Nerd Face",keywords:["geek","smart"],group:"smileys"},{shortcode:"sunglasses",emoji:"\u{1F60E}",name:"Smiling Face with Sunglasses",keywords:["cool","chill"],group:"smileys"},{shortcode:"confused",emoji:"\u{1F615}",name:"Confused Face",keywords:["puzzled","unsure"],group:"smileys"},{shortcode:"worried",emoji:"\u{1F61F}",name:"Worried Face",keywords:["anxious","concern"],group:"smileys"},{shortcode:"cry",emoji:"\u{1F622}",name:"Crying Face",keywords:["sad","tear"],group:"smileys"},{shortcode:"sob",emoji:"\u{1F62D}",name:"Loudly Crying Face",keywords:["sad","cry"],group:"smileys"},{shortcode:"angry",emoji:"\u{1F620}",name:"Angry Face",keywords:["mad","annoyed"],group:"smileys"},{shortcode:"rage",emoji:"\u{1F92C}",name:"Face with Symbols on Mouth",keywords:["angry","swear"],group:"smileys"},{shortcode:"exploding_head",emoji:"\u{1F92F}",name:"Exploding Head",keywords:["mind blown","shocked"],group:"smileys"},{shortcode:"flushed",emoji:"\u{1F633}",name:"Flushed Face",keywords:["embarrassed","shocked"],group:"smileys"},{shortcode:"scream",emoji:"\u{1F631}",name:"Face Screaming in Fear",keywords:["scared","horror"],group:"smileys"},{shortcode:"skull",emoji:"\u{1F480}",name:"Skull",keywords:["dead","death"],group:"smileys"},{shortcode:"clown_face",emoji:"\u{1F921}",name:"Clown Face",keywords:["joke","funny"],group:"smileys"},{shortcode:"ghost",emoji:"\u{1F47B}",name:"Ghost",keywords:["halloween","spooky"],group:"smileys"},{shortcode:"wave",emoji:"\u{1F44B}",name:"Waving Hand",keywords:["hello","goodbye"],group:"people"},{shortcode:"raised_hand",emoji:"\u270B",name:"Raised Hand",keywords:["stop","high five"],group:"people"},{shortcode:"ok_hand",emoji:"\u{1F44C}",name:"OK Hand",keywords:["perfect","nice"],group:"people"},{shortcode:"thumbsup",emoji:"\u{1F44D}",name:"Thumbs Up",keywords:["approve","good","yes"],group:"people"},{shortcode:"thumbsdown",emoji:"\u{1F44E}",name:"Thumbs Down",keywords:["disapprove","bad","no"],group:"people"},{shortcode:"clap",emoji:"\u{1F44F}",name:"Clapping Hands",keywords:["applause","bravo"],group:"people"},{shortcode:"raised_hands",emoji:"\u{1F64C}",name:"Raising Hands",keywords:["celebration","hooray"],group:"people"},{shortcode:"pray",emoji:"\u{1F64F}",name:"Folded Hands",keywords:["thanks","please","hope"],group:"people"},{shortcode:"handshake",emoji:"\u{1F91D}",name:"Handshake",keywords:["deal","agreement"],group:"people"},{shortcode:"point_up",emoji:"\u261D\uFE0F",name:"Index Pointing Up",keywords:["attention","important"],group:"people"},{shortcode:"point_right",emoji:"\u{1F449}",name:"Backhand Index Pointing Right",keywords:["direction","this"],group:"people"},{shortcode:"point_left",emoji:"\u{1F448}",name:"Backhand Index Pointing Left",keywords:["direction","that"],group:"people"},{shortcode:"point_down",emoji:"\u{1F447}",name:"Backhand Index Pointing Down",keywords:["direction","below"],group:"people"},{shortcode:"v",emoji:"\u270C\uFE0F",name:"Victory Hand",keywords:["peace","two"],group:"people"},{shortcode:"crossed_fingers",emoji:"\u{1F91E}",name:"Crossed Fingers",keywords:["luck","hope"],group:"people"},{shortcode:"muscle",emoji:"\u{1F4AA}",name:"Flexed Biceps",keywords:["strong","power"],group:"people"},{shortcode:"writing_hand",emoji:"\u270D\uFE0F",name:"Writing Hand",keywords:["write","note"],group:"people"},{shortcode:"eyes",emoji:"\u{1F440}",name:"Eyes",keywords:["look","see","watch"],group:"people"},{shortcode:"brain",emoji:"\u{1F9E0}",name:"Brain",keywords:["smart","think","mind"],group:"people"},{shortcode:"speaking_head",emoji:"\u{1F5E3}\uFE0F",name:"Speaking Head",keywords:["talk","announce"],group:"people"},{shortcode:"baby",emoji:"\u{1F476}",name:"Baby",keywords:["child","newborn"],group:"people"},{shortcode:"person_shrugging",emoji:"\u{1F937}",name:"Person Shrugging",keywords:["dunno","whatever"],group:"people"},{shortcode:"person_facepalming",emoji:"\u{1F926}",name:"Person Facepalming",keywords:["frustration","disbelief"],group:"people"},{shortcode:"person_raising_hand",emoji:"\u{1F64B}",name:"Person Raising Hand",keywords:["question","volunteer"],group:"people"},{shortcode:"ninja",emoji:"\u{1F977}",name:"Ninja",keywords:["stealth","hidden"],group:"people"},{shortcode:"dog",emoji:"\u{1F436}",name:"Dog Face",keywords:["puppy","pet"],group:"animals"},{shortcode:"cat",emoji:"\u{1F431}",name:"Cat Face",keywords:["kitten","pet"],group:"animals"},{shortcode:"mouse",emoji:"\u{1F42D}",name:"Mouse Face",keywords:["rodent"],group:"animals"},{shortcode:"rabbit",emoji:"\u{1F430}",name:"Rabbit Face",keywords:["bunny","easter"],group:"animals"},{shortcode:"fox",emoji:"\u{1F98A}",name:"Fox",keywords:["clever","sly"],group:"animals"},{shortcode:"bear",emoji:"\u{1F43B}",name:"Bear",keywords:["teddy","nature"],group:"animals"},{shortcode:"unicorn",emoji:"\u{1F984}",name:"Unicorn",keywords:["magic","fantasy"],group:"animals"},{shortcode:"bee",emoji:"\u{1F41D}",name:"Honeybee",keywords:["honey","buzz"],group:"animals"},{shortcode:"butterfly",emoji:"\u{1F98B}",name:"Butterfly",keywords:["pretty","nature"],group:"animals"},{shortcode:"turtle",emoji:"\u{1F422}",name:"Turtle",keywords:["slow","shell"],group:"animals"},{shortcode:"snake",emoji:"\u{1F40D}",name:"Snake",keywords:["reptile"],group:"animals"},{shortcode:"whale",emoji:"\u{1F433}",name:"Spouting Whale",keywords:["ocean","sea"],group:"animals"},{shortcode:"dolphin",emoji:"\u{1F42C}",name:"Dolphin",keywords:["ocean","smart"],group:"animals"},{shortcode:"eagle",emoji:"\u{1F985}",name:"Eagle",keywords:["bird","freedom"],group:"animals"},{shortcode:"owl",emoji:"\u{1F989}",name:"Owl",keywords:["wise","night"],group:"animals"},{shortcode:"penguin",emoji:"\u{1F427}",name:"Penguin",keywords:["cold","linux"],group:"animals"},{shortcode:"octopus",emoji:"\u{1F419}",name:"Octopus",keywords:["ocean","tentacle"],group:"animals"},{shortcode:"seedling",emoji:"\u{1F331}",name:"Seedling",keywords:["plant","grow"],group:"animals"},{shortcode:"evergreen_tree",emoji:"\u{1F332}",name:"Evergreen Tree",keywords:["nature","pine"],group:"animals"},{shortcode:"sunflower",emoji:"\u{1F33B}",name:"Sunflower",keywords:["flower","yellow"],group:"animals"},{shortcode:"rose",emoji:"\u{1F339}",name:"Rose",keywords:["flower","love"],group:"animals"},{shortcode:"apple",emoji:"\u{1F34E}",name:"Red Apple",keywords:["fruit","healthy"],group:"food"},{shortcode:"banana",emoji:"\u{1F34C}",name:"Banana",keywords:["fruit","yellow"],group:"food"},{shortcode:"grapes",emoji:"\u{1F347}",name:"Grapes",keywords:["fruit","wine"],group:"food"},{shortcode:"watermelon",emoji:"\u{1F349}",name:"Watermelon",keywords:["fruit","summer"],group:"food"},{shortcode:"avocado",emoji:"\u{1F951}",name:"Avocado",keywords:["guacamole","healthy"],group:"food"},{shortcode:"pizza",emoji:"\u{1F355}",name:"Pizza",keywords:["food","italian"],group:"food"},{shortcode:"hamburger",emoji:"\u{1F354}",name:"Hamburger",keywords:["burger","fast food"],group:"food"},{shortcode:"taco",emoji:"\u{1F32E}",name:"Taco",keywords:["mexican","food"],group:"food"},{shortcode:"sushi",emoji:"\u{1F363}",name:"Sushi",keywords:["japanese","fish"],group:"food"},{shortcode:"cookie",emoji:"\u{1F36A}",name:"Cookie",keywords:["sweet","biscuit"],group:"food"},{shortcode:"cake",emoji:"\u{1F382}",name:"Birthday Cake",keywords:["birthday","celebration"],group:"food"},{shortcode:"ice_cream",emoji:"\u{1F366}",name:"Soft Ice Cream",keywords:["dessert","cold"],group:"food"},{shortcode:"chocolate_bar",emoji:"\u{1F36B}",name:"Chocolate Bar",keywords:["sweet","candy"],group:"food"},{shortcode:"popcorn",emoji:"\u{1F37F}",name:"Popcorn",keywords:["movie","snack"],group:"food"},{shortcode:"coffee",emoji:"\u2615",name:"Hot Beverage",keywords:["tea","drink","morning"],group:"food"},{shortcode:"beer",emoji:"\u{1F37A}",name:"Beer Mug",keywords:["drink","bar"],group:"food"},{shortcode:"wine_glass",emoji:"\u{1F377}",name:"Wine Glass",keywords:["drink","alcohol"],group:"food"},{shortcode:"cocktail",emoji:"\u{1F378}",name:"Cocktail Glass",keywords:["drink","martini"],group:"food"},{shortcode:"hot_pepper",emoji:"\u{1F336}\uFE0F",name:"Hot Pepper",keywords:["spicy","chili"],group:"food"},{shortcode:"egg",emoji:"\u{1F95A}",name:"Egg",keywords:["breakfast","food"],group:"food"},{shortcode:"earth_americas",emoji:"\u{1F30E}",name:"Globe Americas",keywords:["world","planet"],group:"travel"},{shortcode:"earth_europe",emoji:"\u{1F30D}",name:"Globe Europe-Africa",keywords:["world","planet"],group:"travel"},{shortcode:"sun",emoji:"\u2600\uFE0F",name:"Sun",keywords:["weather","bright","warm"],group:"travel"},{shortcode:"moon",emoji:"\u{1F319}",name:"Crescent Moon",keywords:["night","sleep"],group:"travel"},{shortcode:"star",emoji:"\u2B50",name:"Star",keywords:["favorite","rating"],group:"travel"},{shortcode:"star2",emoji:"\u{1F31F}",name:"Glowing Star",keywords:["sparkle","shine"],group:"travel"},{shortcode:"cloud",emoji:"\u2601\uFE0F",name:"Cloud",keywords:["weather","sky"],group:"travel"},{shortcode:"rainbow",emoji:"\u{1F308}",name:"Rainbow",keywords:["colorful","weather"],group:"travel"},{shortcode:"snowflake",emoji:"\u2744\uFE0F",name:"Snowflake",keywords:["cold","winter"],group:"travel"},{shortcode:"zap",emoji:"\u26A1",name:"High Voltage",keywords:["lightning","electric","fast"],group:"travel"},{shortcode:"fire",emoji:"\u{1F525}",name:"Fire",keywords:["hot","flame","lit"],group:"travel"},{shortcode:"ocean",emoji:"\u{1F30A}",name:"Water Wave",keywords:["sea","wave","surf"],group:"travel"},{shortcode:"airplane",emoji:"\u2708\uFE0F",name:"Airplane",keywords:["travel","flight"],group:"travel"},{shortcode:"rocket",emoji:"\u{1F680}",name:"Rocket",keywords:["launch","space","fast"],group:"travel"},{shortcode:"car",emoji:"\u{1F697}",name:"Automobile",keywords:["drive","vehicle"],group:"travel"},{shortcode:"house",emoji:"\u{1F3E0}",name:"House",keywords:["home","building"],group:"travel"},{shortcode:"tent",emoji:"\u26FA",name:"Tent",keywords:["camping","outdoor"],group:"travel"},{shortcode:"mountain",emoji:"\u26F0\uFE0F",name:"Mountain",keywords:["nature","hike"],group:"travel"},{shortcode:"desert_island",emoji:"\u{1F3DD}\uFE0F",name:"Desert Island",keywords:["beach","vacation"],group:"travel"},{shortcode:"volcano",emoji:"\u{1F30B}",name:"Volcano",keywords:["eruption","nature"],group:"travel"},{shortcode:"soccer",emoji:"\u26BD",name:"Soccer Ball",keywords:["football","sport"],group:"activities"},{shortcode:"basketball",emoji:"\u{1F3C0}",name:"Basketball",keywords:["sport","hoop"],group:"activities"},{shortcode:"tennis",emoji:"\u{1F3BE}",name:"Tennis",keywords:["sport","ball"],group:"activities"},{shortcode:"video_game",emoji:"\u{1F3AE}",name:"Video Game",keywords:["gaming","controller"],group:"activities"},{shortcode:"dart",emoji:"\u{1F3AF}",name:"Bullseye",keywords:["target","goal"],group:"activities"},{shortcode:"trophy",emoji:"\u{1F3C6}",name:"Trophy",keywords:["winner","champion"],group:"activities"},{shortcode:"medal",emoji:"\u{1F947}",name:"Gold Medal",keywords:["first","winner"],group:"activities"},{shortcode:"tada",emoji:"\u{1F389}",name:"Party Popper",keywords:["celebration","party"],group:"activities"},{shortcode:"confetti_ball",emoji:"\u{1F38A}",name:"Confetti Ball",keywords:["party","celebration"],group:"activities"},{shortcode:"balloon",emoji:"\u{1F388}",name:"Balloon",keywords:["party","birthday"],group:"activities"},{shortcode:"art",emoji:"\u{1F3A8}",name:"Artist Palette",keywords:["paint","creative"],group:"activities"},{shortcode:"musical_note",emoji:"\u{1F3B5}",name:"Musical Note",keywords:["music","song"],group:"activities"},{shortcode:"microphone",emoji:"\u{1F3A4}",name:"Microphone",keywords:["sing","karaoke"],group:"activities"},{shortcode:"guitar",emoji:"\u{1F3B8}",name:"Guitar",keywords:["music","rock"],group:"activities"},{shortcode:"dice",emoji:"\u{1F3B2}",name:"Game Die",keywords:["chance","random"],group:"activities"},{shortcode:"bulb",emoji:"\u{1F4A1}",name:"Light Bulb",keywords:["idea","bright"],group:"objects"},{shortcode:"computer",emoji:"\u{1F4BB}",name:"Laptop",keywords:["tech","work"],group:"objects"},{shortcode:"keyboard",emoji:"\u2328\uFE0F",name:"Keyboard",keywords:["type","computer"],group:"objects"},{shortcode:"phone",emoji:"\u{1F4F1}",name:"Mobile Phone",keywords:["cell","call"],group:"objects"},{shortcode:"camera",emoji:"\u{1F4F7}",name:"Camera",keywords:["photo","picture"],group:"objects"},{shortcode:"tv",emoji:"\u{1F4FA}",name:"Television",keywords:["watch","screen"],group:"objects"},{shortcode:"battery",emoji:"\u{1F50B}",name:"Battery",keywords:["charge","power"],group:"objects"},{shortcode:"electric_plug",emoji:"\u{1F50C}",name:"Electric Plug",keywords:["power","connect"],group:"objects"},{shortcode:"mag",emoji:"\u{1F50D}",name:"Magnifying Glass Left",keywords:["search","find"],group:"objects"},{shortcode:"lock",emoji:"\u{1F512}",name:"Locked",keywords:["security","private"],group:"objects"},{shortcode:"unlock",emoji:"\u{1F513}",name:"Unlocked",keywords:["open","access"],group:"objects"},{shortcode:"key",emoji:"\u{1F511}",name:"Key",keywords:["access","password"],group:"objects"},{shortcode:"hammer",emoji:"\u{1F528}",name:"Hammer",keywords:["tool","build"],group:"objects"},{shortcode:"wrench",emoji:"\u{1F527}",name:"Wrench",keywords:["tool","fix"],group:"objects"},{shortcode:"gear",emoji:"\u2699\uFE0F",name:"Gear",keywords:["settings","config"],group:"objects"},{shortcode:"link",emoji:"\u{1F517}",name:"Link",keywords:["chain","url"],group:"objects"},{shortcode:"paperclip",emoji:"\u{1F4CE}",name:"Paperclip",keywords:["attach","clip"],group:"objects"},{shortcode:"scissors",emoji:"\u2702\uFE0F",name:"Scissors",keywords:["cut","snip"],group:"objects"},{shortcode:"pen",emoji:"\u{1F58A}\uFE0F",name:"Pen",keywords:["write","sign"],group:"objects"},{shortcode:"pencil",emoji:"\u270F\uFE0F",name:"Pencil",keywords:["write","draw"],group:"objects"},{shortcode:"book",emoji:"\u{1F4D6}",name:"Open Book",keywords:["read","study"],group:"objects"},{shortcode:"memo",emoji:"\u{1F4DD}",name:"Memo",keywords:["note","write"],group:"objects"},{shortcode:"package",emoji:"\u{1F4E6}",name:"Package",keywords:["box","delivery"],group:"objects"},{shortcode:"mailbox",emoji:"\u{1F4EC}",name:"Open Mailbox with Raised Flag",keywords:["mail","letter"],group:"objects"},{shortcode:"bell",emoji:"\u{1F514}",name:"Bell",keywords:["notification","alert"],group:"objects"},{shortcode:"red_heart",emoji:"\u2764\uFE0F",name:"Red Heart",keywords:["love","valentine"],group:"symbols"},{shortcode:"orange_heart",emoji:"\u{1F9E1}",name:"Orange Heart",keywords:["love"],group:"symbols"},{shortcode:"yellow_heart",emoji:"\u{1F49B}",name:"Yellow Heart",keywords:["love","friendship"],group:"symbols"},{shortcode:"green_heart",emoji:"\u{1F49A}",name:"Green Heart",keywords:["love","nature"],group:"symbols"},{shortcode:"blue_heart",emoji:"\u{1F499}",name:"Blue Heart",keywords:["love","trust"],group:"symbols"},{shortcode:"purple_heart",emoji:"\u{1F49C}",name:"Purple Heart",keywords:["love"],group:"symbols"},{shortcode:"broken_heart",emoji:"\u{1F494}",name:"Broken Heart",keywords:["sad","breakup"],group:"symbols"},{shortcode:"sparkles",emoji:"\u2728",name:"Sparkles",keywords:["shine","magic","new"],group:"symbols"},{shortcode:"hundred",emoji:"\u{1F4AF}",name:"Hundred Points",keywords:["perfect","score"],group:"symbols"},{shortcode:"boom",emoji:"\u{1F4A5}",name:"Collision",keywords:["explosion","impact"],group:"symbols"},{shortcode:"speech_balloon",emoji:"\u{1F4AC}",name:"Speech Balloon",keywords:["talk","chat","message"],group:"symbols"},{shortcode:"thought_balloon",emoji:"\u{1F4AD}",name:"Thought Balloon",keywords:["think","dream"],group:"symbols"},{shortcode:"check_mark",emoji:"\u2705",name:"Check Mark Button",keywords:["done","yes","complete"],group:"symbols"},{shortcode:"x",emoji:"\u274C",name:"Cross Mark",keywords:["no","wrong","delete"],group:"symbols"},{shortcode:"warning",emoji:"\u26A0\uFE0F",name:"Warning",keywords:["caution","alert"],group:"symbols"},{shortcode:"no_entry",emoji:"\u26D4",name:"No Entry",keywords:["stop","forbidden"],group:"symbols"},{shortcode:"question",emoji:"\u2753",name:"Question Mark",keywords:["help","what"],group:"symbols"},{shortcode:"exclamation",emoji:"\u2757",name:"Exclamation Mark",keywords:["important","attention"],group:"symbols"},{shortcode:"arrow_right",emoji:"\u27A1\uFE0F",name:"Right Arrow",keywords:["next","forward"],group:"symbols"},{shortcode:"arrow_left",emoji:"\u2B05\uFE0F",name:"Left Arrow",keywords:["back","previous"],group:"symbols"},{shortcode:"arrow_up",emoji:"\u2B06\uFE0F",name:"Up Arrow",keywords:["above"],group:"symbols"},{shortcode:"arrow_down",emoji:"\u2B07\uFE0F",name:"Down Arrow",keywords:["below"],group:"symbols"},{shortcode:"recycle",emoji:"\u267B\uFE0F",name:"Recycling Symbol",keywords:["environment","green"],group:"symbols"},{shortcode:"infinity",emoji:"\u267E\uFE0F",name:"Infinity",keywords:["forever","loop"],group:"symbols"},{shortcode:"checkered_flag",emoji:"\u{1F3C1}",name:"Chequered Flag",keywords:["finish","race"],group:"flags"},{shortcode:"triangular_flag",emoji:"\u{1F6A9}",name:"Triangular Flag",keywords:["red flag","warning"],group:"flags"},{shortcode:"white_flag",emoji:"\u{1F3F3}\uFE0F",name:"White Flag",keywords:["surrender","peace"],group:"flags"},{shortcode:"rainbow_flag",emoji:"\u{1F3F3}\uFE0F\u200D\u{1F308}",name:"Rainbow Flag",keywords:["pride","lgbtq"],group:"flags"},{shortcode:"pirate_flag",emoji:"\u{1F3F4}\u200D\u2620\uFE0F",name:"Pirate Flag",keywords:["jolly roger","skull"],group:"flags"},{shortcode:"flag_us",emoji:"\u{1F1FA}\u{1F1F8}",name:"Flag: United States",keywords:["usa","america"],group:"flags"},{shortcode:"flag_gb",emoji:"\u{1F1EC}\u{1F1E7}",name:"Flag: United Kingdom",keywords:["uk","britain"],group:"flags"},{shortcode:"flag_fr",emoji:"\u{1F1EB}\u{1F1F7}",name:"Flag: France",keywords:["french"],group:"flags"},{shortcode:"flag_de",emoji:"\u{1F1E9}\u{1F1EA}",name:"Flag: Germany",keywords:["german"],group:"flags"},{shortcode:"flag_jp",emoji:"\u{1F1EF}\u{1F1F5}",name:"Flag: Japan",keywords:["japanese"],group:"flags"},{shortcode:"flag_kr",emoji:"\u{1F1F0}\u{1F1F7}",name:"Flag: South Korea",keywords:["korean"],group:"flags"},{shortcode:"flag_br",emoji:"\u{1F1E7}\u{1F1F7}",name:"Flag: Brazil",keywords:["brazilian"],group:"flags"},{shortcode:"flag_in",emoji:"\u{1F1EE}\u{1F1F3}",name:"Flag: India",keywords:["indian"],group:"flags"},{shortcode:"flag_ca",emoji:"\u{1F1E8}\u{1F1E6}",name:"Flag: Canada",keywords:["canadian","maple"],group:"flags"},{shortcode:"flag_au",emoji:"\u{1F1E6}\u{1F1FA}",name:"Flag: Australia",keywords:["australian"],group:"flags"}],vi=new Map(Gs.map(e=>[e.shortcode,e])),Cm=new Map([["+1","thumbsup"],["-1","thumbsdown"],["heart","red_heart"],["thumbs_up","thumbsup"],["thumbs_down","thumbsdown"],["grin","grinning"],["laughing_crying","joy"],["lol","rofl"],["smiley","smile"],["cool","sunglasses"],["nerd","nerd_face"],["kiss","kissing_heart"],["hug","hugs"],["think","thinking"],["sad","cry"],["mad","angry"],["shrug","person_shrugging"],["facepalm","person_facepalming"],["pray_hands","pray"],["hi","wave"],["bye","wave"],["lightning","zap"],["flame","fire"],["hot","fire"],["bomb","boom"],["idea","bulb"],["laptop","computer"],["search","mag"],["party","tada"],["celebrate","tada"],["congrats","tada"],["check","check_mark"],["done","check_mark"],["yes","check_mark"],["no","x"],["wrong","x"],["love","red_heart"],["star_eyes","star_struck"],["mindblown","exploding_head"],["memo_pad","memo"],["notes","memo"],["coffee_cup","coffee"],["tea","coffee"]]),bk=["smileys","people","animals","food","travel","activities","objects","symbols","flags"],yk={smileys:"Smileys & Emotion",people:"People & Body",animals:"Animals & Nature",food:"Food & Drink",travel:"Travel & Places",activities:"Activities",objects:"Objects",symbols:"Symbols",flags:"Flags"},vk={smileys:"\u{1F600}",people:"\u{1F44B}",animals:"\u{1F436}",food:"\u{1F355}",travel:"\u{1F30D}",activities:"\u{1F389}",objects:"\u{1F4A1}",symbols:"\u2764\uFE0F",flags:"\u{1F3C1}"},Tm=Symbol.for("vanilla-breeze.emoji-extended"),wk="vb:emoji-extended",Sm=globalThis[Tm]??=[],xm=0,wi=[]});var rc={};T(rc,{initEmoji:()=>Nk,replaceShortcodeText:()=>Ys});async function _m(){if(Mt)return;Mt=(await Promise.resolve().then(()=>(Nm(),Lm))).resolveEmoji}function Ys(e,t="keep"){if(!Mt||!e.includes(":"))return e;let i=Mt;return e.replace($m,(s,n)=>{let r=i(n);return r?r.emoji:t==="strip"&&xk.test(n)?"":s})}async function Nk(e=document){let t=e.querySelectorAll(nc);t.length!==0&&(await _m(),t.forEach(Im))}function Mk(e){return e.getAttribute("data-emoji-unknown")==="strip"?"strip":"keep"}function Im(e){if(Kt.has(e)||!e.hasAttribute("data-emoji"))return;if(e.removeAttribute("data-emoji-init"),Dm.has(e.tagName)){Kt.set(e,$k(e));return}if(sc(e),e.getAttribute("data-emoji-scan")!=="observe"){Kt.set(e,()=>{});return}let t=null,i=new MutationObserver(()=>{t&&clearTimeout(t),t=setTimeout(()=>{t=null,sc(e)},Tk)});i.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:ic}),Kt.set(e,()=>{i.disconnect(),t&&clearTimeout(t)})}function _k(e){let t=Kt.get(e);t&&(t(),Kt.delete(e))}function $k(e){let t=!1,i=!1,s=()=>{t=!0},n=()=>{t=!1,a(!0)},r=o=>{let{isComposing:c,inputType:l}=o;t||c||l==="historyUndo"||l==="historyRedo"||a(!!l&&!Lk.has(l))};function a(o=!1){if(!i){i=!0;try{Dk(e,o)}finally{i=!1}}}return e.addEventListener("compositionstart",s),e.addEventListener("compositionend",n),e.addEventListener("input",r),e.value&&a(),()=>{e.removeEventListener("compositionstart",s),e.removeEventListener("compositionend",n),e.removeEventListener("input",r)}}function Dk(e,t=!1){if(!Mt)return;let i=e.value,s=e.selectionStart,n=[];for(let o of i.matchAll($m)){let c=o.index??0,l=c+o[0].length;if(t&&s!==null&&l!==s)continue;let u=Mt(o[1]);u&&n.push({start:c,end:l,emoji:u.emoji})}if(n.length===0)return;if(e.selectionStart===null){e.value=Ys(i,"keep");return}let r=e.selectionStart??i.length,a=document.activeElement===e&&typeof document.execCommand=="function";for(let o=n.length-1;o>=0;o--){let{start:c,end:l,emoji:u}=n[o];r>=l?r-=l-c-u.length:r>c&&(r=c+u.length);let d=!1;if(a){e.setSelectionRange(c,l);try{d=document.execCommand("insertText",!1,u)&&e.value.slice(c,c+u.length)===u}catch{d=!1}}d||e.setRangeText(u,c,l)}e.setSelectionRange(r,r)}function Mm(e,t){if(e.isContentEditable)return!0;let i=e.closest(Ck);return!!(i&&i!==t&&t.contains(i))}function sc(e){if(!Mt)return;let t=Mk(e),i=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(a){let o=a.parentElement;return!o||Mm(o,e)?NodeFilter.FILTER_REJECT:(a.textContent??"").includes(":")?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}),s=[];for(;i.nextNode();)s.push(i.currentNode);for(let a of s){let o=a.textContent??"",c=Ys(o,t);c!==o&&(a.textContent=c)}let n=ic.map(a=>`[${a}*=":"]`).join(","),r=[e,...e.querySelectorAll(n)];for(let a of r)if(!(a!==e&&Mm(a,e)))for(let o of ic){let c=a.getAttribute(o);if(!c)continue;let l=Ys(c,t);l!==c&&a.setAttribute(o,l)}}function Rm(e){_m().then(()=>Im(e))}var Mt,nc,$m,xk,Ck,ic,Dm,Tk,Lk,Kt,ac=w(()=>{D();Mt=null;nc="[data-emoji]",$m=/(?<![\p{L}\p{N}_]):([a-z0-9_+-]+):/gu,xk=/[a-z]/,Ck="script,style,code,pre,kbd,samp,var,textarea,code-block,[data-emoji-skip]",ic=["alt","title","aria-label"],Dm=new Set(["INPUT","TEXTAREA"]),Tk=100,Lk=new Set(["insertFromPaste","insertFromDrop","insertReplacementText","insertFromYank"]),Kt=new WeakMap;document.addEventListener("vb:emoji-extended",()=>{if(Mt)for(let e of document.querySelectorAll(nc))!Kt.has(e)||Dm.has(e.tagName)||sc(e)});C(nc,Rm);new MutationObserver(e=>{for(let{target:t}of e){let i=t;i.hasAttribute("data-emoji")?Rm(i):_k(i)}}).observe(document.documentElement,{attributes:!0,attributeFilter:["data-emoji"],subtree:!0})});var Om={};T(Om,{getRegisteredCommands:()=>Pm,initCommands:()=>cc,scanAutoDiscoverable:()=>Fm});function Xs(e){if(st.has(e)||e.hasAttribute("data-command-init"))return;e.setAttribute("data-command-init","");let t=e.getAttribute("data-command")||e.textContent.trim();if(!t)return;let i=e.getAttribute("data-command-group")||Ik,s=e.getAttribute("data-command-icon")||null,n=e.getAttribute("data-shortcut")||null,r=null;n&&(r=At(n,()=>e.click()));let a={element:e,label:t,group:i,icon:s,shortcut:n,unbind:r};st.set(e,a),document.dispatchEvent(new CustomEvent("vb:command-registry-change",{detail:{action:"add",entry:a}}))}function oc(e){let t=st.get(e);t&&(t.unbind?.(),st.delete(e),e.removeAttribute("data-command-init"),document.dispatchEvent(new CustomEvent("vb:command-registry-change",{detail:{action:"remove",element:e}})))}function Pm(){let e=new Map;for(let t of st.values()){if(t.element.hidden||t.element.closest("[hidden]"))continue;let i=e.get(t.group)||[];i.push(t),e.set(t.group,i)}return e}function cc(e=document){e.querySelectorAll(Le).forEach(Xs)}function Fm(){let e='footer, aside, dialog, [hidden], [aria-hidden="true"]',i=[];return document.querySelectorAll("nav a[href]").forEach(s=>{if(s.closest(e)||st.has(s))return;let n=s.textContent.trim();!n||i.length>=50||i.push({element:s,label:n,group:"Navigation",icon:null,shortcut:null,auto:!0,action:null})}),document.querySelectorAll("h2[id], h3[id]").forEach(s=>{if(s.closest(e)||st.has(s))return;let n=s.textContent.trim();!n||i.length>=50||i.push({element:s,label:`Jump to: ${n}`,group:"On This Page",icon:null,shortcut:null,auto:!0,action:()=>s.scrollIntoView({behavior:"smooth"})})}),i}var Le,Ik,st,Rk,qm=w(()=>{je();Le="[data-command], [commandfor]",Ik="Page Actions",st=new Map;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>cc()):cc();Rk=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Le)&&Xs(s),s.querySelectorAll(Le).forEach(Xs)}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;st.has(s)&&oc(s),s.querySelectorAll(Le).forEach(n=>{st.has(n)&&oc(n)})}if(t.type==="attributes"&&t.target.nodeType===Node.ELEMENT_NODE){let i=t.target;i.matches(Le)&&!st.has(i)?Xs(i):!i.matches(Le)&&st.has(i)&&oc(i)}}});Rk.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-command","commandfor"]});window.__commandRegistry={getRegisteredCommands:Pm,scanAutoDiscoverable:Fm}});function hc(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function Wm(e){Zt=e}function M(e,t=""){let i=typeof e=="string"?e:e.source,s={replace:(n,r)=>{let a=typeof r=="string"?r:r.source;return a=a.replace(X.caret,"$1"),i=i.replace(n,a),s},getRegex:()=>new RegExp(i,t)};return s}function ft(e,t){if(t){if(X.escapeTest.test(e))return e.replace(X.escapeReplace,Hm)}else if(X.escapeTestNoEncode.test(e))return e.replace(X.escapeReplaceNoEncode,Hm);return e}function zm(e){try{e=encodeURI(e).replace(X.percentDecode,"%")}catch{return null}return e}function Vm(e,t){let i=e.replace(X.findPipe,(r,a,o)=>{let c=!1,l=a;for(;--l>=0&&o[l]==="\\";)c=!c;return c?"|":" |"}),s=i.split(X.splitPipe),n=0;if(s[0].trim()||s.shift(),s.length>0&&!s.at(-1)?.trim()&&s.pop(),t)if(s.length>t)s.splice(t);else for(;s.length<t;)s.push("");for(;n<s.length;n++)s[n]=s[n].trim().replace(X.slashPipe,"|");return s}function Ei(e,t,i){let s=e.length;if(s===0)return"";let n=0;for(;n<s;){let r=e.charAt(s-n-1);if(r===t&&!i)n++;else if(r!==t&&i)n++;else break}return e.slice(0,s-n)}function vS(e,t){if(e.indexOf(t[1])===-1)return-1;let i=0;for(let s=0;s<e.length;s++)if(e[s]==="\\")s++;else if(e[s]===t[0])i++;else if(e[s]===t[1]&&(i--,i<0))return s;return i>0?-2:-1}function wS(e,t=0){let i=t,s="";for(let n of e)if(n===" "){let r=4-i%4;s+=" ".repeat(r),i+=r}else s+=n,i++;return s}function Um(e,t,i,s,n){let r=t.href,a=t.title||null,o=e[1].replace(n.other.outputLinkReplace,"$1");s.state.inLink=!0;let c={type:e[0].charAt(0)==="!"?"image":"link",raw:i,href:r,title:a,text:o,tokens:s.inlineTokens(o)};return s.state.inLink=!1,c}function AS(e,t,i){let s=e.match(i.other.indentCodeCompensation);if(s===null)return t;let n=s[1];return t.split(`
14
7
  `).map(r=>{let a=r.match(i.other.beginningSpace);if(a===null)return r;let[o]=a;return o.length>=n.length?r.slice(n.length):r}).join(`
15
- `)}function C(e,t){return St.parse(e,t)}var Ct,xt,Og,O,Fg,Pg,Rg,ve,jg,sa,cd,ld,Hg,na,zg,ra,Vg,Ug,Ci,aa,Wg,ud,Gg,oa,ed,Yg,Kg,Xg,Zg,dd,Jg,Pt,Ti,ca,Qg,hd,tb,eb,ib,pd,sb,nb,fd,rb,ab,ob,cb,lb,ub,db,hb,pb,fb,ki,mb,md,gd,gb,id,la,bb,Qr,yb,Ei,ge,vb,sd,xi,G,Si,ua,Y,ye,kb,St,LE,ME,NE,_E,DE,$E,IE,bd=w(()=>{Ct=ia();xt={exec:()=>null};Og=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),O={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},Fg=/^(?:[ \t]*(?:\n|$))+/,Pg=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Rg=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ve=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,jg=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,sa=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,cd=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,ld=x(cd).replace(/bull/g,sa).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Hg=x(cd).replace(/bull/g,sa).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),na=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,zg=/^[^\n]+/,ra=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Vg=x(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ra).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ug=x(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,sa).getRegex(),Ci="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|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",aa=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Wg=x("^ {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|$))","i").replace("comment",aa).replace("tag",Ci).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ud=x(na).replace("hr",ve).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ci).getRegex(),Gg=x(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ud).getRegex(),oa={blockquote:Gg,code:Pg,def:Vg,fences:Rg,heading:jg,hr:ve,html:Wg,lheading:ld,list:Ug,newline:Fg,paragraph:ud,table:xt,text:zg},ed=x("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ve).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ci).getRegex(),Yg={...oa,lheading:Hg,table:ed,paragraph:x(na).replace("hr",ve).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",ed).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ci).getRegex()},Kg={...oa,html:x(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",aa).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:xt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:x(na).replace("hr",ve).replace("heading",` *#{1,6} *[^
16
- ]`).replace("lheading",ld).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Xg=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Zg=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,dd=/^( {2,}|\\)\n(?!\s*$)/,Jg=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Pt=/[\p{P}\p{S}]/u,Ti=/[\s\p{P}\p{S}]/u,ca=/[^\s\p{P}\p{S}]/u,Qg=x(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ti).getRegex(),hd=/(?!~)[\p{P}\p{S}]/u,tb=/(?!~)[\s\p{P}\p{S}]/u,eb=/(?:[^\s\p{P}\p{S}]|~)/u,ib=x(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Og?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),pd=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,sb=x(pd,"u").replace(/punct/g,Pt).getRegex(),nb=x(pd,"u").replace(/punct/g,hd).getRegex(),fd="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",rb=x(fd,"gu").replace(/notPunctSpace/g,ca).replace(/punctSpace/g,Ti).replace(/punct/g,Pt).getRegex(),ab=x(fd,"gu").replace(/notPunctSpace/g,eb).replace(/punctSpace/g,tb).replace(/punct/g,hd).getRegex(),ob=x("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ca).replace(/punctSpace/g,Ti).replace(/punct/g,Pt).getRegex(),cb=x(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Pt).getRegex(),lb="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",ub=x(lb,"gu").replace(/notPunctSpace/g,ca).replace(/punctSpace/g,Ti).replace(/punct/g,Pt).getRegex(),db=x(/\\(punct)/,"gu").replace(/punct/g,Pt).getRegex(),hb=x(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("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])?)+(?![-_])/).getRegex(),pb=x(aa).replace("(?:-->|$)","-->").getRegex(),fb=x("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",pb).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ki=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,mb=x(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",ki).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),md=x(/^!?\[(label)\]\[(ref)\]/).replace("label",ki).replace("ref",ra).getRegex(),gd=x(/^!?\[(ref)\](?:\[\])?/).replace("ref",ra).getRegex(),gb=x("reflink|nolink(?!\\()","g").replace("reflink",md).replace("nolink",gd).getRegex(),id=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,la={_backpedal:xt,anyPunctuation:db,autolink:hb,blockSkip:ib,br:dd,code:Zg,del:xt,delLDelim:xt,delRDelim:xt,emStrongLDelim:sb,emStrongRDelimAst:rb,emStrongRDelimUnd:ob,escape:Xg,link:mb,nolink:gd,punctuation:Qg,reflink:md,reflinkSearch:gb,tag:fb,text:Jg,url:xt},bb={...la,link:x(/^!?\[(label)\]\((.*?)\)/).replace("label",ki).getRegex(),reflink:x(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ki).getRegex()},Qr={...la,emStrongRDelimAst:ab,emStrongLDelim:nb,delLDelim:cb,delRDelim:ub,url:x(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",id).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:x(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",id).getRegex()},yb={...Qr,br:x(dd).replace("{2,}","*").getRegex(),text:x(Qr.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ei={normal:oa,gfm:Yg,pedantic:Kg},ge={normal:la,gfm:Qr,breaks:yb,pedantic:bb},vb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},sd=e=>vb[e];xi=class{options;rules;lexer;constructor(e){this.options=e||Ct}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let i=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:be(i,`
17
- `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let i=t[0],s=Eb(i,t[3]||"",this.rules);return{type:"code",raw:i,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let i=t[2].trim();if(this.rules.other.endingHash.test(i)){let s=be(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:be(t[0],`
18
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let i=be(t[0],`
8
+ `)}function _(e,t){return Xt.parse(e,t)}var Zt,Yt,Pk,X,Fk,Ok,qk,Si,Bk,fc,Gm,Km,jk,pc,Hk,mc,zk,Vk,en,gc,Uk,Ym,Wk,bc,Bm,Gk,Kk,Yk,Xk,Xm,Zk,Ne,sn,yc,Jk,Zm,Qk,tS,eS,Jm,iS,sS,Qm,nS,rS,aS,oS,cS,lS,uS,dS,hS,fS,Js,pS,tg,eg,mS,jm,vc,gS,lc,bS,Zs,Ai,yS,Hm,Qs,nt,tn,wc,rt,ki,ES,Xt,n_,r_,a_,o_,c_,l_,u_,ig=w(()=>{Zt=hc();Yt={exec:()=>null};Pk=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),X={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},Fk=/^(?:[ \t]*(?:\n|$))+/,Ok=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,qk=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Si=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Bk=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,fc=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Gm=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Km=M(Gm).replace(/bull/g,fc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),jk=M(Gm).replace(/bull/g,fc).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),pc=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Hk=/^[^\n]+/,mc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,zk=M(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",mc).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Vk=M(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,fc).getRegex(),en="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|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",gc=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Uk=M("^ {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|$))","i").replace("comment",gc).replace("tag",en).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ym=M(pc).replace("hr",Si).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",en).getRegex(),Wk=M(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ym).getRegex(),bc={blockquote:Wk,code:Ok,def:zk,fences:qk,heading:Bk,hr:Si,html:Uk,lheading:Km,list:Vk,newline:Fk,paragraph:Ym,table:Yt,text:Hk},Bm=M("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Si).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",en).getRegex(),Gk={...bc,lheading:jk,table:Bm,paragraph:M(pc).replace("hr",Si).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Bm).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",en).getRegex()},Kk={...bc,html:M(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",gc).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:Yt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:M(pc).replace("hr",Si).replace("heading",` *#{1,6} *[^
9
+ ]`).replace("lheading",Km).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Yk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Xk=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Xm=/^( {2,}|\\)\n(?!\s*$)/,Zk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ne=/[\p{P}\p{S}]/u,sn=/[\s\p{P}\p{S}]/u,yc=/[^\s\p{P}\p{S}]/u,Jk=M(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,sn).getRegex(),Zm=/(?!~)[\p{P}\p{S}]/u,Qk=/(?!~)[\s\p{P}\p{S}]/u,tS=/(?:[^\s\p{P}\p{S}]|~)/u,eS=M(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Pk?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Jm=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,iS=M(Jm,"u").replace(/punct/g,Ne).getRegex(),sS=M(Jm,"u").replace(/punct/g,Zm).getRegex(),Qm="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",nS=M(Qm,"gu").replace(/notPunctSpace/g,yc).replace(/punctSpace/g,sn).replace(/punct/g,Ne).getRegex(),rS=M(Qm,"gu").replace(/notPunctSpace/g,tS).replace(/punctSpace/g,Qk).replace(/punct/g,Zm).getRegex(),aS=M("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,yc).replace(/punctSpace/g,sn).replace(/punct/g,Ne).getRegex(),oS=M(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Ne).getRegex(),cS="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",lS=M(cS,"gu").replace(/notPunctSpace/g,yc).replace(/punctSpace/g,sn).replace(/punct/g,Ne).getRegex(),uS=M(/\\(punct)/,"gu").replace(/punct/g,Ne).getRegex(),dS=M(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("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])?)+(?![-_])/).getRegex(),hS=M(gc).replace("(?:-->|$)","-->").getRegex(),fS=M("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",hS).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Js=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,pS=M(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Js).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tg=M(/^!?\[(label)\]\[(ref)\]/).replace("label",Js).replace("ref",mc).getRegex(),eg=M(/^!?\[(ref)\](?:\[\])?/).replace("ref",mc).getRegex(),mS=M("reflink|nolink(?!\\()","g").replace("reflink",tg).replace("nolink",eg).getRegex(),jm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,vc={_backpedal:Yt,anyPunctuation:uS,autolink:dS,blockSkip:eS,br:Xm,code:Xk,del:Yt,delLDelim:Yt,delRDelim:Yt,emStrongLDelim:iS,emStrongRDelimAst:nS,emStrongRDelimUnd:aS,escape:Yk,link:pS,nolink:eg,punctuation:Jk,reflink:tg,reflinkSearch:mS,tag:fS,text:Zk,url:Yt},gS={...vc,link:M(/^!?\[(label)\]\((.*?)\)/).replace("label",Js).getRegex(),reflink:M(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Js).getRegex()},lc={...vc,emStrongRDelimAst:rS,emStrongLDelim:sS,delLDelim:oS,delRDelim:lS,url:M(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",jm).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:M(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",jm).getRegex()},bS={...lc,br:M(Xm).replace("{2,}","*").getRegex(),text:M(lc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Zs={normal:bc,gfm:Gk,pedantic:Kk},Ai={normal:vc,gfm:lc,breaks:bS,pedantic:gS},yS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Hm=e=>yS[e];Qs=class{options;rules;lexer;constructor(e){this.options=e||Zt}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let i=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?i:Ei(i,`
10
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let i=t[0],s=AS(i,t[3]||"",this.rules);return{type:"code",raw:i,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:s}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let i=t[2].trim();if(this.rules.other.endingHash.test(i)){let s=Ei(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ei(t[0],`
11
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let i=Ei(t[0],`
19
12
  `).split(`
20
13
  `),s="",n="",r=[];for(;i.length>0;){let a=!1,o=[],c;for(c=0;c<i.length;c++)if(this.rules.other.blockquoteStart.test(i[c]))o.push(i[c]),a=!0;else if(!a)o.push(i[c]);else break;i=i.slice(c);let l=o.join(`
21
14
  `),u=l.replace(this.rules.other.blockquoteSetextReplace,`
22
15
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
23
16
  ${l}`:l,n=n?`${n}
24
- ${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,r,!0),this.lexer.state.top=d,i.length===0)break;let h=r.at(-1);if(h?.type==="code")break;if(h?.type==="blockquote"){let p=h,f=p.raw+`
17
+ ${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,r,!0),this.lexer.state.top=d,i.length===0)break;let h=r.at(-1);if(h?.type==="code")break;if(h?.type==="blockquote"){let f=h,p=f.raw+`
25
18
  `+i.join(`
26
- `),m=this.blockquote(f);r[r.length-1]=m,s=s.substring(0,s.length-p.raw.length)+m.raw,n=n.substring(0,n.length-p.text.length)+m.text;break}else if(h?.type==="list"){let p=h,f=p.raw+`
19
+ `),m=this.blockquote(p);r[r.length-1]=m,s=s.substring(0,s.length-f.raw.length)+m.raw,n=n.substring(0,n.length-f.text.length)+m.text;break}else if(h?.type==="list"){let f=h,p=f.raw+`
27
20
  `+i.join(`
28
- `),m=this.list(f);r[r.length-1]=m,s=s.substring(0,s.length-h.raw.length)+m.raw,n=n.substring(0,n.length-p.raw.length)+m.raw,i=f.substring(r.at(-1).raw.length).split(`
29
- `);continue}}return{type:"blockquote",raw:s,tokens:r,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),s=i.length>1,n={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let r=this.rules.other.listItemRegex(i),a=!1;for(;e;){let c=!1,l="",u="";if(!(t=r.exec(e))||this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let d=Ab(t[2].split(`
21
+ `),m=this.list(p);r[r.length-1]=m,s=s.substring(0,s.length-h.raw.length)+m.raw,n=n.substring(0,n.length-f.raw.length)+m.raw,i=p.substring(r.at(-1).raw.length).split(`
22
+ `);continue}}return{type:"blockquote",raw:s,tokens:r,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let i=t[1].trim(),s=i.length>1,n={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let r=this.rules.other.listItemRegex(i),a=!1;for(;e;){let c=!1,l="",u="";if(!(t=r.exec(e))||this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let d=wS(t[2].split(`
30
23
  `,1)[0],t[1].length),h=e.split(`
31
- `,1)[0],p=!d.trim(),f=0;if(this.options.pedantic?(f=2,u=d.trimStart()):p?f=t[1].length+1:(f=d.search(this.rules.other.nonSpaceChar),f=f>4?1:f,u=d.slice(f),f+=t[1].length),p&&this.rules.other.blankLine.test(h)&&(l+=h+`
32
- `,e=e.substring(h.length+1),c=!0),!c){let m=this.rules.other.nextBulletRegex(f),v=this.rules.other.hrRegex(f),A=this.rules.other.fencesBeginRegex(f),L=this.rules.other.headingBeginRegex(f),N=this.rules.other.htmlBeginRegex(f),K=this.rules.other.blockquoteBeginRegex(f);for(;e;){let P=e.split(`
33
- `,1)[0],X;if(h=P,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),X=h):X=h.replace(this.rules.other.tabCharGlobal," "),A.test(h)||L.test(h)||N.test(h)||K.test(h)||m.test(h)||v.test(h))break;if(X.search(this.rules.other.nonSpaceChar)>=f||!h.trim())u+=`
34
- `+X.slice(f);else{if(p||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||A.test(d)||L.test(d)||v.test(d))break;u+=`
35
- `+h}p=!h.trim(),l+=P+`
36
- `,e=e.substring(P.length+1),d=X.slice(f)}}n.loose||(a?n.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(a=!0)),n.items.push({type:"list_item",raw:l,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),n.raw+=l}let o=n.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let c of n.items){if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),c.task){if(c.text=c.text.replace(this.rules.other.listReplaceTask,""),c.tokens[0]?.type==="text"||c.tokens[0]?.type==="paragraph"){c.tokens[0].raw=c.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),c.tokens[0].text=c.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let u=this.lexer.inlineQueue.length-1;u>=0;u--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[u].src)){this.lexer.inlineQueue[u].src=this.lexer.inlineQueue[u].src.replace(this.rules.other.listReplaceTask,"");break}}let l=this.rules.other.listTaskCheckbox.exec(c.raw);if(l){let u={type:"checkbox",raw:l[0]+" ",checked:l[0]!=="[ ]"};c.checked=u.checked,n.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=u.raw+c.tokens[0].raw,c.tokens[0].text=u.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(u)):c.tokens.unshift({type:"paragraph",raw:u.raw,text:u.raw,tokens:[u]}):c.tokens.unshift(u)}}if(!n.loose){let l=c.tokens.filter(d=>d.type==="space"),u=l.length>0&&l.some(d=>this.rules.other.anyLine.test(d.raw));n.loose=u}}if(n.loose)for(let c of n.items){c.loose=!0;for(let l of c.tokens)l.type==="text"&&(l.type="paragraph")}return n}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let i=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:i,raw:t[0],href:s,title:n}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let i=rd(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
37
- `):[],r={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let a of s)this.rules.other.tableAlignRight.test(a)?r.align.push("right"):this.rules.other.tableAlignCenter.test(a)?r.align.push("center"):this.rules.other.tableAlignLeft.test(a)?r.align.push("left"):r.align.push(null);for(let a=0;a<i.length;a++)r.header.push({text:i[a],tokens:this.lexer.inline(i[a]),header:!0,align:r.align[a]});for(let a of n)r.rows.push(rd(a,r.header.length).map((o,c)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:r.align[c]})));return r}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let i=t[1].trim();return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:i,tokens:this.lexer.inline(i)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let i=t[1].charAt(t[1].length-1)===`
38
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}}text(e){let 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){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let i=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let r=be(i.slice(0,-1),"\\");if((i.length-r.length)%2===0)return}else{let r=wb(t[2],"()");if(r===-2)return;if(r>-1){let a=(t[0].indexOf("!")===0?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let s=t[2],n="";if(this.options.pedantic){let r=this.rules.other.pedanticHrefTitle.exec(s);r&&(s=r[1],n=r[3])}else n=t[3]?t[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),ad(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=t[s.toLowerCase()];if(!n){let r=i[0].charAt(0);return{type:"text",raw:r,text:r}}return ad(i,n,i[0],this.lexer,this.rules)}}emStrong(e,t,i=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,a,o=n,c=0,l=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);(s=l.exec(t))!==null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r)continue;if(a=[...r].length,s[3]||s[4]){o+=a;continue}else if((s[5]||s[6])&&n%3&&!((n+a)%3)){c+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+c);let u=[...s[0]][0].length,d=e.slice(0,n+s.index+u+a);if(Math.min(n,a)%2){let p=d.slice(1,-1);return{type:"em",raw:d,text:p,tokens:this.lexer.inlineTokens(p)}}let h=d.slice(2,-2);return{type:"strong",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let i=t[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),n=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&n&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:t[0],text:i}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,i=""){let s=this.rules.inline.delLDelim.exec(e);if(s&&(!s[1]||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,a,o=n,c=this.rules.inline.delRDelim;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(s=c.exec(t))!==null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r||(a=[...r].length,a!==n))continue;if(s[3]||s[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let l=[...s[0]][0].length,u=e.slice(0,n+s.index+l+a),d=u.slice(n,-n);return{type:"del",raw:u,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let i,s;return t[2]==="@"?(i=t[1],s="mailto:"+i):(i=t[1],s=i),{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let i,s;if(t[2]==="@")i=t[0],s="mailto:"+i;else{let n;do n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(n!==t[0]);i=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let i=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:i}}}},G=class ta{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ct,this.options.tokenizer=this.options.tokenizer||new xi,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:O,block:Ei.normal,inline:ge.normal};this.options.pedantic?(i.block=Ei.pedantic,i.inline=ge.pedantic):this.options.gfm&&(i.block=Ei.gfm,this.options.breaks?i.inline=ge.breaks:i.inline=ge.gfm),this.tokenizer.rules=i}static get rules(){return{block:Ei,inline:ge}}static lex(t,i){return new ta(i).lex(t)}static lexInline(t,i){return new ta(i).inlineTokens(t)}lex(t){t=t.replace(O.carriageReturn,`
39
- `),this.blockTokens(t,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,i=[],s=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(O.tabCharGlobal," ").replace(O.spaceLine,""));t;){let n;if(this.options.extensions?.block?.some(a=>(n=a.call({lexer:this},t,i))?(t=t.substring(n.raw.length),i.push(n),!0):!1))continue;if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length);let a=i.at(-1);n.raw.length===1&&a!==void 0?a.raw+=`
24
+ `,1)[0],f=!d.trim(),p=0;if(this.options.pedantic?(p=2,u=d.trimStart()):f?p=t[1].length+1:(p=d.search(this.rules.other.nonSpaceChar),p=p>4?1:p,u=d.slice(p),p+=t[1].length),f&&this.rules.other.blankLine.test(h)&&(l+=h+`
25
+ `,e=e.substring(h.length+1),c=!0),!c){let m=this.rules.other.nextBulletRegex(p),g=this.rules.other.hrRegex(p),b=this.rules.other.fencesBeginRegex(p),A=this.rules.other.headingBeginRegex(p),v=this.rules.other.htmlBeginRegex(p),$=this.rules.other.blockquoteBeginRegex(p);for(;e;){let N=e.split(`
26
+ `,1)[0],j;if(h=N,this.options.pedantic?(h=h.replace(this.rules.other.listReplaceNesting," "),j=h):j=h.replace(this.rules.other.tabCharGlobal," "),b.test(h)||A.test(h)||v.test(h)||$.test(h)||m.test(h)||g.test(h))break;if(j.search(this.rules.other.nonSpaceChar)>=p||!h.trim())u+=`
27
+ `+j.slice(p);else{if(f||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||b.test(d)||A.test(d)||g.test(d))break;u+=`
28
+ `+h}f=!h.trim(),l+=N+`
29
+ `,e=e.substring(N.length+1),d=j.slice(p)}}n.loose||(a?n.loose=!0:this.rules.other.doubleBlankLine.test(l)&&(a=!0)),n.items.push({type:"list_item",raw:l,task:!!this.options.gfm&&this.rules.other.listIsTask.test(u),loose:!1,text:u,tokens:[]}),n.raw+=l}let o=n.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;n.raw=n.raw.trimEnd();for(let c of n.items){if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),c.task){if(c.text=c.text.replace(this.rules.other.listReplaceTask,""),c.tokens[0]?.type==="text"||c.tokens[0]?.type==="paragraph"){c.tokens[0].raw=c.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),c.tokens[0].text=c.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let u=this.lexer.inlineQueue.length-1;u>=0;u--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[u].src)){this.lexer.inlineQueue[u].src=this.lexer.inlineQueue[u].src.replace(this.rules.other.listReplaceTask,"");break}}let l=this.rules.other.listTaskCheckbox.exec(c.raw);if(l){let u={type:"checkbox",raw:l[0]+" ",checked:l[0]!=="[ ]"};c.checked=u.checked,n.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=u.raw+c.tokens[0].raw,c.tokens[0].text=u.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(u)):c.tokens.unshift({type:"paragraph",raw:u.raw,text:u.raw,tokens:[u]}):c.tokens.unshift(u)}}if(!n.loose){let l=c.tokens.filter(d=>d.type==="space"),u=l.length>0&&l.some(d=>this.rules.other.anyLine.test(d.raw));n.loose=u}}if(n.loose)for(let c of n.items){c.loose=!0;for(let l of c.tokens)l.type==="text"&&(l.type="paragraph")}return n}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let i=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:i,raw:t[0],href:s,title:n}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let i=Vm(t[1]),s=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
30
+ `):[],r={type:"table",raw:t[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let a of s)this.rules.other.tableAlignRight.test(a)?r.align.push("right"):this.rules.other.tableAlignCenter.test(a)?r.align.push("center"):this.rules.other.tableAlignLeft.test(a)?r.align.push("left"):r.align.push(null);for(let a=0;a<i.length;a++)r.header.push({text:i[a],tokens:this.lexer.inline(i[a]),header:!0,align:r.align[a]});for(let a of n)r.rows.push(Vm(a,r.header.length).map((o,c)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:r.align[c]})));return r}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let i=t[1].trim();return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:i,tokens:this.lexer.inline(i)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let i=t[1].charAt(t[1].length-1)===`
31
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:i,tokens:this.lexer.inline(i)}}}text(e){let 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){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let i=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let r=Ei(i.slice(0,-1),"\\");if((i.length-r.length)%2===0)return}else{let r=vS(t[2],"()");if(r===-2)return;if(r>-1){let a=(t[0].indexOf("!")===0?5:4)+t[1].length+r;t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let s=t[2],n="";if(this.options.pedantic){let r=this.rules.other.pedanticHrefTitle.exec(s);r&&(s=r[1],n=r[3])}else n=t[3]?t[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),Um(t,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=t[s.toLowerCase()];if(!n){let r=i[0].charAt(0);return{type:"text",raw:r,text:r}}return Um(i,n,i[0],this.lexer,this.rules)}}emStrong(e,t,i=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!(!s||!s[1]&&!s[2]&&!s[3]&&!s[4]||s[4]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[3])||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,a,o=n,c=0,l=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);(s=l.exec(t))!==null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r)continue;if(a=[...r].length,s[3]||s[4]){o+=a;continue}else if((s[5]||s[6])&&n%3&&!((n+a)%3)){c+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+c);let u=[...s[0]][0].length,d=e.slice(0,n+s.index+u+a);if(Math.min(n,a)%2){let f=d.slice(1,-1);return{type:"em",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}let h=d.slice(2,-2);return{type:"strong",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let i=t[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),n=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&n&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:t[0],text:i}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,i=""){let s=this.rules.inline.delLDelim.exec(e);if(s&&(!s[1]||!i||this.rules.inline.punctuation.exec(i))){let n=[...s[0]].length-1,r,a,o=n,c=this.rules.inline.delRDelim;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(s=c.exec(t))!==null;){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r||(a=[...r].length,a!==n))continue;if(s[3]||s[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let l=[...s[0]][0].length,u=e.slice(0,n+s.index+l+a),d=u.slice(n,-n);return{type:"del",raw:u,text:d,tokens:this.lexer.inlineTokens(d)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let i,s;return t[2]==="@"?(i=t[1],s="mailto:"+i):(i=t[1],s=i),{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let i,s;if(t[2]==="@")i=t[0],s="mailto:"+i;else{let n;do n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(n!==t[0]);i=t[0],t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let i=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:i}}}},nt=class uc{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Zt,this.options.tokenizer=this.options.tokenizer||new Qs,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let i={other:X,block:Zs.normal,inline:Ai.normal};this.options.pedantic?(i.block=Zs.pedantic,i.inline=Ai.pedantic):this.options.gfm&&(i.block=Zs.gfm,this.options.breaks?i.inline=Ai.breaks:i.inline=Ai.gfm),this.tokenizer.rules=i}static get rules(){return{block:Zs,inline:Ai}}static lex(t,i){return new uc(i).lex(t)}static lexInline(t,i){return new uc(i).inlineTokens(t)}lex(t){t=t.replace(X.carriageReturn,`
32
+ `),this.blockTokens(t,this.tokens);for(let i=0;i<this.inlineQueue.length;i++){let s=this.inlineQueue[i];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,i=[],s=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(X.tabCharGlobal," ").replace(X.spaceLine,""));t;){let n;if(this.options.extensions?.block?.some(a=>(n=a.call({lexer:this},t,i))?(t=t.substring(n.raw.length),i.push(n),!0):!1))continue;if(n=this.tokenizer.space(t)){t=t.substring(n.raw.length);let a=i.at(-1);n.raw.length===1&&a!==void 0?a.raw+=`
40
33
  `:i.push(n);continue}if(n=this.tokenizer.code(t)){t=t.substring(n.raw.length);let a=i.at(-1);a?.type==="paragraph"||a?.type==="text"?(a.raw+=(a.raw.endsWith(`
41
34
  `)?"":`
42
35
  `)+n.raw,a.text+=`
@@ -49,9 +42,9 @@ ${u}`:u;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
49
42
  `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):i.push(n),s=r.length!==t.length,t=t.substring(n.raw.length);continue}if(n=this.tokenizer.text(t)){t=t.substring(n.raw.length);let a=i.at(-1);a?.type==="text"?(a.raw+=(a.raw.endsWith(`
50
43
  `)?"":`
51
44
  `)+n.raw,a.text+=`
52
- `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):i.push(n);continue}if(t){let a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,i}inline(t,i=[]){return this.inlineQueue.push({src:t,tokens:i}),i}inlineTokens(t,i=[]){this.tokenizer.lexer=this;let s=t,n=null;if(this.tokens.links){let c=Object.keys(this.tokens.links);if(c.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!==null;)c.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!==null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let r;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!==null;)r=n[2]?n[2].length:0,s=s.slice(0,n.index+r)+"["+"a".repeat(n[0].length-r-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let a=!1,o="";for(;t;){a||(o=""),a=!1;let c;if(this.options.extensions?.inline?.some(u=>(c=u.call({lexer:this},t,i))?(t=t.substring(c.raw.length),i.push(c),!0):!1))continue;if(c=this.tokenizer.escape(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.tag(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.link(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(c.raw.length);let u=i.at(-1);c.type==="text"&&u?.type==="text"?(u.raw+=c.raw,u.text+=c.text):i.push(c);continue}if(c=this.tokenizer.emStrong(t,s,o)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.codespan(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.br(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.del(t,s,o)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.autolink(t)){t=t.substring(c.raw.length),i.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(t))){t=t.substring(c.raw.length),i.push(c);continue}let l=t;if(this.options.extensions?.startInline){let u=1/0,d=t.slice(1),h;this.options.extensions.startInline.forEach(p=>{h=p.call({lexer:this},d),typeof h=="number"&&h>=0&&(u=Math.min(u,h))}),u<1/0&&u>=0&&(l=t.substring(0,u+1))}if(c=this.tokenizer.inlineText(l)){t=t.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(o=c.raw.slice(-1)),a=!0;let u=i.at(-1);u?.type==="text"?(u.raw+=c.raw,u.text+=c.text):i.push(c);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return i}},Si=class{options;parser;constructor(e){this.options=e||Ct}space(e){return""}code({text:e,lang:t,escaped:i}){let s=(t||"").match(O.notSpaceStart)?.[0],n=e.replace(O.endingNewline,"")+`
53
- `;return s?'<pre><code class="language-'+Q(s)+'">'+(i?n:Q(n,!0))+`</code></pre>
54
- `:"<pre><code>"+(i?n:Q(n,!0))+`</code></pre>
45
+ `+n.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):i.push(n);continue}if(t){let a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,i}inline(t,i=[]){return this.inlineQueue.push({src:t,tokens:i}),i}inlineTokens(t,i=[]){this.tokenizer.lexer=this;let s=t,n=null;if(this.tokens.links){let c=Object.keys(this.tokens.links);if(c.length>0)for(;(n=this.tokenizer.rules.inline.reflinkSearch.exec(s))!==null;)c.includes(n[0].slice(n[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,n.index)+"["+"a".repeat(n[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(n=this.tokenizer.rules.inline.anyPunctuation.exec(s))!==null;)s=s.slice(0,n.index)+"++"+s.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let r;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(s))!==null;)r=n[2]?n[2].length:0,s=s.slice(0,n.index+r)+"["+"a".repeat(n[0].length-r-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);s=this.options.hooks?.emStrongMask?.call({lexer:this},s)??s;let a=!1,o="";for(;t;){a||(o=""),a=!1;let c;if(this.options.extensions?.inline?.some(u=>(c=u.call({lexer:this},t,i))?(t=t.substring(c.raw.length),i.push(c),!0):!1))continue;if(c=this.tokenizer.escape(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.tag(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.link(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(c.raw.length);let u=i.at(-1);c.type==="text"&&u?.type==="text"?(u.raw+=c.raw,u.text+=c.text):i.push(c);continue}if(c=this.tokenizer.emStrong(t,s,o)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.codespan(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.br(t)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.del(t,s,o)){t=t.substring(c.raw.length),i.push(c);continue}if(c=this.tokenizer.autolink(t)){t=t.substring(c.raw.length),i.push(c);continue}if(!this.state.inLink&&(c=this.tokenizer.url(t))){t=t.substring(c.raw.length),i.push(c);continue}let l=t;if(this.options.extensions?.startInline){let u=1/0,d=t.slice(1),h;this.options.extensions.startInline.forEach(f=>{h=f.call({lexer:this},d),typeof h=="number"&&h>=0&&(u=Math.min(u,h))}),u<1/0&&u>=0&&(l=t.substring(0,u+1))}if(c=this.tokenizer.inlineText(l)){t=t.substring(c.raw.length),c.raw.slice(-1)!=="_"&&(o=c.raw.slice(-1)),a=!0;let u=i.at(-1);u?.type==="text"?(u.raw+=c.raw,u.text+=c.text):i.push(c);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return i}},tn=class{options;parser;constructor(e){this.options=e||Zt}space(e){return""}code({text:e,lang:t,escaped:i}){let s=(t||"").match(X.notSpaceStart)?.[0],n=e.replace(X.endingNewline,"")+`
46
+ `;return s?'<pre><code class="language-'+ft(s)+'">'+(i?n:ft(n,!0))+`</code></pre>
47
+ `:"<pre><code>"+(i?n:ft(n,!0))+`</code></pre>
55
48
  `}blockquote({tokens:e}){return`<blockquote>
56
49
  ${this.parser.parse(e)}</blockquote>
57
50
  `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
@@ -67,13 +60,13 @@ ${this.parser.parse(e)}</blockquote>
67
60
  `}tablerow({text:e}){return`<tr>
68
61
  ${e}</tr>
69
62
  `}tablecell(e){let t=this.parser.parseInline(e.tokens),i=e.header?"th":"td";return(e.align?`<${i} align="${e.align}">`:`<${i}>`)+t+`</${i}>
70
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Q(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){let s=this.parser.parseInline(i),n=nd(e);if(n===null)return s;e=n;let r='<a href="'+e+'"';return t&&(r+=' title="'+Q(t)+'"'),r+=">"+s+"</a>",r}image({href:e,title:t,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let n=nd(e);if(n===null)return Q(i);e=n;let r=`<img src="${e}" alt="${Q(i)}"`;return t&&(r+=` title="${Q(t)}"`),r+=">",r}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Q(e.text)}},ua=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},Y=class ea{options;renderer;textRenderer;constructor(t){this.options=t||Ct,this.options.renderer=this.options.renderer||new Si,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ua}static parse(t,i){return new ea(i).parse(t)}static parseInline(t,i){return new ea(i).parseInline(t)}parse(t){this.renderer.parser=this;let i="";for(let s=0;s<t.length;s++){let n=t[s];if(this.options.extensions?.renderers?.[n.type]){let a=n,o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){i+=o||"";continue}}let r=n;switch(r.type){case"space":{i+=this.renderer.space(r);break}case"hr":{i+=this.renderer.hr(r);break}case"heading":{i+=this.renderer.heading(r);break}case"code":{i+=this.renderer.code(r);break}case"table":{i+=this.renderer.table(r);break}case"blockquote":{i+=this.renderer.blockquote(r);break}case"list":{i+=this.renderer.list(r);break}case"checkbox":{i+=this.renderer.checkbox(r);break}case"html":{i+=this.renderer.html(r);break}case"def":{i+=this.renderer.def(r);break}case"paragraph":{i+=this.renderer.paragraph(r);break}case"text":{i+=this.renderer.text(r);break}default:{let a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}parseInline(t,i=this.renderer){this.renderer.parser=this;let s="";for(let n=0;n<t.length;n++){let r=t[n];if(this.options.extensions?.renderers?.[r.type]){let o=this.options.extensions.renderers[r.type].call({parser:this},r);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){s+=o||"";continue}}let a=r;switch(a.type){case"escape":{s+=i.text(a);break}case"html":{s+=i.html(a);break}case"link":{s+=i.link(a);break}case"image":{s+=i.image(a);break}case"checkbox":{s+=i.checkbox(a);break}case"strong":{s+=i.strong(a);break}case"em":{s+=i.em(a);break}case"codespan":{s+=i.codespan(a);break}case"br":{s+=i.br(a);break}case"del":{s+=i.del(a);break}case"text":{s+=i.text(a);break}default:{let o='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}},ye=class{options;block;constructor(e){this.options=e||Ct}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?G.lex:G.lexInline}provideParser(e=this.block){return e?Y.parse:Y.parseInline}},kb=class{defaults=ia();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=Y;Renderer=Si;TextRenderer=ua;Lexer=G;Tokenizer=xi;Hooks=ye;constructor(...e){this.use(...e)}walkTokens(e,t){let i=[];for(let s of e)switch(i=i.concat(t.call(this,s)),s.type){case"table":{let n=s;for(let r of n.header)i=i.concat(this.walkTokens(r.tokens,t));for(let r of n.rows)for(let a of r)i=i.concat(this.walkTokens(a.tokens,t));break}case"list":{let n=s;i=i.concat(this.walkTokens(n.items,t));break}default:{let n=s;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(r=>{let a=n[r].flat(1/0);i=i.concat(this.walkTokens(a,t))}):n.tokens&&(i=i.concat(this.walkTokens(n.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let r=t.renderers[n.name];r?t.renderers[n.name]=function(...a){let o=n.renderer.apply(this,a);return o===!1&&(o=r.apply(this,a)),o}:t.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let r=t[n.level];r?r.unshift(n.tokenizer):t[n.level]=[n.tokenizer],n.start&&(n.level==="block"?t.startBlock?t.startBlock.push(n.start):t.startBlock=[n.start]:n.level==="inline"&&(t.startInline?t.startInline.push(n.start):t.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(t.childTokens[n.name]=n.childTokens)}),s.extensions=t),i.renderer){let n=this.defaults.renderer||new Si(this.defaults);for(let r in i.renderer){if(!(r in n))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let a=r,o=i.renderer[a],c=n[a];n[a]=(...l)=>{let u=o.apply(n,l);return u===!1&&(u=c.apply(n,l)),u||""}}s.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new xi(this.defaults);for(let r in i.tokenizer){if(!(r in n))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let a=r,o=i.tokenizer[a],c=n[a];n[a]=(...l)=>{let u=o.apply(n,l);return u===!1&&(u=c.apply(n,l)),u}}s.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new ye;for(let r in i.hooks){if(!(r in n))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let a=r,o=i.hooks[a],c=n[a];ye.passThroughHooks.has(r)?n[a]=l=>{if(this.defaults.async&&ye.passThroughHooksRespectAsync.has(r))return(async()=>{let d=await o.call(n,l);return c.call(n,d)})();let u=o.call(n,l);return c.call(n,u)}:n[a]=(...l)=>{if(this.defaults.async)return(async()=>{let d=await o.apply(n,l);return d===!1&&(d=await c.apply(n,l)),d})();let u=o.apply(n,l);return u===!1&&(u=c.apply(n,l)),u}}s.hooks=n}if(i.walkTokens){let n=this.defaults.walkTokens,r=i.walkTokens;s.walkTokens=function(a){let o=[];return o.push(r.call(this,a)),n&&(o=o.concat(n.call(this,a))),o}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return G.lex(e,t??this.defaults)}parser(e,t){return Y.parse(e,t??this.defaults)}parseMarkdown(e){return(t,i)=>{let s={...i},n={...this.defaults,...s},r=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&s.async===!1)return r(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return r(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=e),n.async)return(async()=>{let a=n.hooks?await n.hooks.preprocess(t):t,o=await(n.hooks?await n.hooks.provideLexer(e):e?G.lex:G.lexInline)(a,n),c=n.hooks?await n.hooks.processAllTokens(o):o;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let l=await(n.hooks?await n.hooks.provideParser(e):e?Y.parse:Y.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(l):l})().catch(r);try{n.hooks&&(t=n.hooks.preprocess(t));let a=(n.hooks?n.hooks.provideLexer(e):e?G.lex:G.lexInline)(t,n);n.hooks&&(a=n.hooks.processAllTokens(a)),n.walkTokens&&this.walkTokens(a,n.walkTokens);let o=(n.hooks?n.hooks.provideParser(e):e?Y.parse:Y.parseInline)(a,n);return n.hooks&&(o=n.hooks.postprocess(o)),o}catch(a){return r(a)}}}onError(e,t){return i=>{if(i.message+=`
71
- Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error occurred:</p><pre>"+Q(i.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(i);throw i}}},St=new kb;C.options=C.setOptions=function(e){return St.setOptions(e),C.defaults=St.defaults,od(C.defaults),C};C.getDefaults=ia;C.defaults=Ct;C.use=function(...e){return St.use(...e),C.defaults=St.defaults,od(C.defaults),C};C.walkTokens=function(e,t){return St.walkTokens(e,t)};C.parseInline=St.parseInline;C.Parser=Y;C.parser=Y.parse;C.Renderer=Si;C.TextRenderer=ua;C.Lexer=G;C.lexer=G.lex;C.Tokenizer=xi;C.Hooks=ye;C.parse=C;LE=C.options,ME=C.setOptions,NE=C.use,_E=C.walkTokens,DE=C.parseInline,$E=Y.parse,IE=G.lex});var Lb={};function da(e){return e.trim()?Gt(C.parseInline(e,{gfm:!0})):""}function yd(e,t,i){e.dispatchEvent(new CustomEvent("markdown-editable:change",{bubbles:!0,detail:{value:t,html:i}}))}function Sb(e){e.contentEditable="true",e.setAttribute("role","textbox"),e.setAttribute("aria-multiline","false");let t=e.textContent.trim();e.dataset.markdownValue=t,t&&(e.innerHTML=da(t));let i=!1;e.addEventListener("compositionstart",()=>{i=!0}),e.addEventListener("compositionend",()=>{i=!1}),e.addEventListener("focus",()=>{if(i)return;let s=e.dataset.markdownValue||"";e.textContent=s,e.setAttribute("data-md-editing",""),requestAnimationFrame(()=>{let n=window.getSelection();n&&e.childNodes.length&&n.collapse(e.childNodes[e.childNodes.length-1],e.textContent.length)})}),e.addEventListener("blur",()=>{if(i)return;let s=e.textContent.trim(),n=e.dataset.markdownValue;e.dataset.markdownValue=s,e.removeAttribute("data-md-editing"),s?e.innerHTML=da(s):e.textContent="",s!==n&&yd(e,s,e.innerHTML)})}function Cb(e){let t=e.dataset.preview?document.getElementById(e.dataset.preview):null;t||(t=document.createElement("output"),t.className="md-editable-preview",t.setAttribute("aria-label","Markdown preview"),e.after(t));function i(){let s=da(e.value);return t&&(t.innerHTML=s),s}e.addEventListener("blur",()=>{let s=i();yd(e,e.value,s)}),e.value.trim()&&i()}function Tb(e){if(e.hasAttribute("data-markdown-editable-init"))return;e.setAttribute("data-markdown-editable-init","");let t=e.tagName;t==="TEXTAREA"||t==="INPUT"?Cb(e):Sb(e)}var xb,vd=w(()=>{B();bd();_e();xb="[data-markdown-editable]";S(xb,Tb)});function wd(e=document,t={}){let i=t.language||"mermaid",s=t.type||"mermaid",n=Array.isArray(t.primingSvgs)?t.primingSvgs:null,r=`pre > code.language-${i}`,a=[],o=0;for(let c of e.querySelectorAll(r)){let l=c.parentElement;if(!l||l.parentElement?.tagName.toLowerCase()==="diagram-wc")continue;let u=l.parentNode,d=l.nextSibling,h=document.createElement("diagram-wc");if(h.setAttribute("type",s),h.appendChild(l),n&&n[o]){let p=document.createElement("figure");p.className="dwc-figure",p.setAttribute("role","img"),p.innerHTML=n[o],h.appendChild(p)}u?.insertBefore(h,d),a.push(h),o++}return a}var Ad=w(()=>{});var Db={};function Nb(e){return!e||!e.hasAttribute?!1:e.hasAttribute("data-auto-mermaid")?!0:!!e.closest?.("markdown-editor[data-auto-mermaid]")}function kd(e){let t=fa.get(e);return t||(t=[],fa.set(e,t)),t}function _b(e,t){let i=ha.get(e);i&&clearTimeout(i);let s=setTimeout(()=>{ha.delete(e),xd(e,t||e)},Mb);ha.set(e,s)}function xd(e,t){let i=kd(e),s=wd(t,{primingSvgs:i});s.forEach((n,r)=>{n.dataset.bridgeIndex=String(r)}),i.length>s.length&&(i.length=s.length),i.length>Ed&&(i.length=Ed)}var Mb,Ed,ha,fa,pa,Sd=w(()=>{Ad();Mb=250,Ed=16,ha=new WeakMap,fa=new WeakMap;pa=typeof document<"u"?document.documentElement:null;if(pa&&!pa.hasAttribute("data-vb-mermaid-bridge-init")){pa.setAttribute("data-vb-mermaid-bridge-init",""),document.addEventListener("markdown-viewer:rendered",t=>{let i=t.target;if(!Nb(i))return;let s=t.detail?.node||i;_b(i,s)}),document.addEventListener("diagram-wc:ready",t=>{let i=t.target,s=i.closest?.("markdown-viewer");if(!s)return;let n=parseInt(i.dataset.bridgeIndex||"",10);if(Number.isNaN(n))return;let r=kd(s);r[n]=t.detail?.svg||r[n]}),window.addEventListener("vb:theme-change",()=>{for(let t of document.querySelectorAll("markdown-viewer")){let i=fa.get(t);i&&(i.length=0)}});let e="markdown-viewer[data-auto-mermaid], markdown-editor[data-auto-mermaid] markdown-viewer";for(let t of document.querySelectorAll(e))xd(t,t)}});function Ib(e){let t=0;for(let i=0;i<e.length;i++)t=e.charCodeAt(i)+((t<<5)-t);return t}function qb(e){let t=Li[0],i=Math.abs(e-t);for(let s=1;s<Li.length;s++){let n=Math.abs(e-Li[s]);n<i&&(t=Li[s],i=n)}return t}function Cd(e,t=128){let i=Ib(String(e)),s=(i%100+100)%100,n=(i>>>16&1)===0?"female":"male",r=qb(t);return`${$b}/${n}/${r}/${s}.jpg`}var $b,Li,Td=w(()=>{$b="https://cdn.jsdelivr.net/gh/faker-js/assets-person-portrait",Li=[32,64,128,256,512]});var Nd={};E(Nd,{initMockMedia:()=>ba});function Md(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function Ld(e,t,i){let s=Math.min(Math.max(e/15,12),32),n=e/2,r=t/2,a=i?Md(i):"",o=a?`<text x="${n}" y="${r}" text-anchor="middle" dominant-baseline="middle" font-family="system-ui,sans-serif" font-size="${s}" fill="#6b7280">${a}</text>`:"",c=`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${t}" viewBox="0 0 ${e} ${t}"><rect width="${e}" height="${t}" fill="#f3f4f6"/><line x1="0" y1="0" x2="${e}" y2="${t}" stroke="#d1d5db"/><line x1="${e}" y1="0" x2="0" y2="${t}" stroke="#d1d5db"/>${o}</svg>`;return`data:image/svg+xml,${encodeURIComponent(c)}`}function Fb(e){let t=Ob[e.dataset.mock],i=Number(e.getAttribute("width"))||t?.w||400,s=Number(e.getAttribute("height"))||t?.h||300;return{w:i,h:s}}function ga(e){if(e.hasAttribute("data-mock-init"))return;e.setAttribute("data-mock-init","");let t=e.tagName.toLowerCase(),i=e.dataset.mock,{w:s,h:n}=Fb(e);if(t==="img"){if(i==="photo"){let r=e.dataset.seed,a=r?`https://picsum.photos/seed/${encodeURIComponent(r)}/${s}/${n}`:`https://picsum.photos/${s}/${n}`;e.getAttribute("src")||(e.setAttribute("src",a),e.setAttribute("loading","lazy"))}else if(i==="placehold"){if(!e.getAttribute("src")){let r=e.getAttribute("alt")||"",a=r?`?text=${encodeURIComponent(r)}`:"";e.setAttribute("src",`https://placehold.co/${s}x${n}${a}`),e.setAttribute("loading","lazy")}}else if(i==="portrait"||i==="profile"||i==="headshot"||i==="avatar"){if(!e.getAttribute("src")){let r=e.dataset.seed||e.getAttribute("alt")||String(Bb++);e.setAttribute("src",Cd(r,Math.max(s,n))),e.setAttribute("loading","lazy")}}else if(!e.getAttribute("src")){let r=e.getAttribute("alt")||`${s}\xD7${n}`;e.setAttribute("src",Ld(s,n,r))}}else if(t==="video"){if(!e.getAttribute("poster")){let r=e.getAttribute("alt")||e.getAttribute("title")||"Video";e.setAttribute("poster",Ld(s,n,`\u25B6 ${r}`))}}else if(t==="iframe"){if(!e.getAttribute("src")&&!e.getAttribute("srcdoc")){let r=e.getAttribute("title")||"Embedded content";e.setAttribute("srcdoc",`<!DOCTYPE html><html><body style="display:grid;place-items:center;height:100vh;margin:0;background:#f3f4f6;font-family:system-ui,sans-serif;color:#6b7280"><p>${Md(r)}</p></body></html>`)}}else t==="canvas"&&Pb(e,s,n)}function Pb(e,t,i){e.width=t,e.height=i;let s=e.getContext("2d");if(!s)return;s.fillStyle="#f3f4f6",s.fillRect(0,0,t,i),s.strokeStyle="#d1d5db",s.lineWidth=1,s.beginPath(),s.moveTo(0,0),s.lineTo(t,i),s.moveTo(t,0),s.lineTo(0,i),s.stroke();let n=e.getAttribute("aria-label")||e.getAttribute("title")||`${t}\xD7${i}`,r=Math.min(Math.max(t/15,12),32);s.fillStyle="#6b7280",s.font=`${r}px system-ui, sans-serif`,s.textAlign="center",s.textBaseline="middle",s.fillText(n,t/2,i/2)}function ba(e=document){e.querySelectorAll(ma).forEach(ga)}var ma,Bb,Ob,Rb,_d=w(()=>{Td();ma=":is(img, video, iframe, canvas)[data-mock]",Bb=0,Ob={hero:{w:1200,h:400},card:{w:400,h:225},avatar:{w:48,h:48},product:{w:400,h:400},thumbnail:{w:150,h:150},logo:{w:200,h:50},og:{w:1200,h:630},banner:{w:728,h:90},portrait:{w:128,h:128},profile:{w:128,h:128},headshot:{w:256,h:256}};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>ba()):ba();Rb=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(ma)&&ga(s),s.querySelectorAll(ma).forEach(n=>ga(n))}});Rb.observe(document.documentElement,{childList:!0,subtree:!0})});var $d={};E($d,{initLorem:()=>Aa});function we(e){let t=e.closest("[lang]")?.getAttribute("lang")?.split("-")[0]?.toLowerCase();return t&&Ub[t]||"latin"}function Wb(e){return e.split(/(?<=[.!?\u3002])\s*/).filter(Boolean)}function va(e){return e==="cjk"}function Gb(e,t,i){if(va(i)){let r=[...e],a=[];for(let o=0;o<t;o++)a.push(r[o%r.length]);return a.join("")}let s=e.split(/\s+/),n=[];for(let r=0;r<t;r++)n.push(s[r%s.length]);return n.join(" ")}function Yb(e,t){let i=(e||"").trim();if(Dd[i])return{mode:"words",count:va(i)?80:50,corpus:i};if(i==="heading")return{mode:"words",count:5,corpus:we(t)};let s=i.match(/^(\d+)\s+sentences?$/i);if(s)return{mode:"sentences",count:Number(s[1]),corpus:we(t)};let n=i.match(/^(\d+)\s+items?$/i);if(n)return{mode:"items",count:Number(n[1]),corpus:we(t)};let r=i.match(/^(\d+)$/);if(r)return{mode:"words",count:Number(r[1]),corpus:we(t)};let a=we(t);return{mode:"words",count:va(a)?80:50,corpus:a}}function Kb(e){let t=Dd[e.corpus],i=Wb(t);if(e.mode==="sentences"){let s=[];for(let n=0;n<e.count;n++)s.push(i[n%i.length]);return s.join(" ")}if(e.mode==="items"){let s=[];for(let n=0;n<e.count;n++)s.push(i[n%i.length]);return s}return Gb(t,e.count,e.corpus)}function wa(e){if(e.hasAttribute("data-lorem-init"))return;e.setAttribute("data-lorem-init","");let t=Yb(e.dataset.lorem??"",e),i=Kb(t),s=e.tagName.toLowerCase();t.mode==="items"&&Array.isArray(i)&&(s==="ul"||s==="ol")?e.innerHTML=i.map(n=>`<li>${n}</li>`).join(""):Array.isArray(i)?e.textContent=i.join(" "):e.textContent=i,e.setAttribute("data-lorem-filled",""),e.setAttribute("translate","no")}function Aa(e=document){e.querySelectorAll(ya).forEach(wa)}var ya,jb,Hb,zb,Vb,Dd,Ub,Xb,Id=w(()=>{ya="[data-lorem]",jb="Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium totam rem aperiam eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet consectetur adipisci velit sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam quis nostrum exercitationem ullam corporis suscipit laboriosam nisi ut aliquid ex ea commodi consequatur. Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur vel illum qui dolorem eum fugiat quo voluptas nulla pariatur. At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident similique sunt in culpa qui officia deserunt mollitia animi id est laborum et dolorum fuga.",Hb="\u3053\u308C\u306F\u30C0\u30DF\u30FC\u30C6\u30AD\u30B9\u30C8\u3067\u3059\u3002\u30EC\u30A4\u30A2\u30A6\u30C8\u306E\u78BA\u8A8D\u306B\u4F7F\u7528\u3057\u307E\u3059\u3002\u5B9F\u969B\u306E\u30B3\u30F3\u30C6\u30F3\u30C4\u306F\u5F8C\u3067\u8FFD\u52A0\u3055\u308C\u307E\u3059\u3002\u3053\u306E\u6587\u7AE0\u306F\u30D7\u30EC\u30FC\u30B9\u30DB\u30EB\u30C0\u30FC\u3068\u3057\u3066\u6A5F\u80FD\u3057\u307E\u3059\u3002\u30C7\u30B6\u30A4\u30F3\u306E\u30D7\u30ED\u30C8\u30BF\u30A4\u30D7\u4F5C\u6210\u4E2D\u306B\u3001\u30C6\u30AD\u30B9\u30C8\u304C\u5FC5\u8981\u306A\u5834\u6240\u306B\u914D\u7F6E\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u65E5\u672C\u8A9E\u306E\u6587\u5B57\u306F\u7D04\u5343\u5E74\u524D\u306B\u4E2D\u56FD\u304B\u3089\u4F1D\u308F\u308A\u307E\u3057\u305F\u3002\u73FE\u4EE3\u306E\u65E5\u672C\u8A9E\u306F\u6F22\u5B57\u3001\u3072\u3089\u304C\u306A\u3001\u30AB\u30BF\u30AB\u30CA\u306E\u4E09\u7A2E\u985E\u306E\u6587\u5B57\u3092\u4F7F\u7528\u3057\u307E\u3059\u3002\u30A6\u30A7\u30D6\u30C7\u30B6\u30A4\u30F3\u3067\u306F\u3001\u30C6\u30AD\u30B9\u30C8\u306E\u8AAD\u307F\u3084\u3059\u3055\u3068\u30EC\u30A4\u30A2\u30A6\u30C8\u306E\u30D0\u30E9\u30F3\u30B9\u304C\u91CD\u8981\u3067\u3059\u3002",zb="\u0647\u0630\u0627 \u0646\u0635 \u062A\u062C\u0631\u064A\u0628\u064A \u064A\u0633\u062A\u062E\u062F\u0645 \u0644\u0639\u0631\u0636 \u0627\u0644\u062A\u0635\u0645\u064A\u0645. \u064A\u0645\u0643\u0646 \u0627\u0633\u062A\u0628\u062F\u0627\u0644\u0647 \u0628\u0627\u0644\u0645\u062D\u062A\u0648\u0649 \u0627\u0644\u0641\u0639\u0644\u064A \u0644\u0627\u062D\u0642\u0627. \u0627\u0644\u063A\u0631\u0636 \u0645\u0646\u0647 \u0647\u0648 \u0625\u0638\u0647\u0627\u0631 \u0643\u064A\u0641 \u0633\u064A\u0628\u062F\u0648 \u0627\u0644\u0646\u0635 \u0641\u064A \u0627\u0644\u0645\u0648\u0642\u0639. \u062A\u0635\u0645\u064A\u0645 \u0627\u0644\u0648\u064A\u0628 \u064A\u062A\u0637\u0644\u0628 \u0646\u0635\u0648\u0635\u0627 \u0646\u0627\u0626\u0628\u0629 \u0644\u0645\u0644\u0621 \u0627\u0644\u0641\u0631\u0627\u063A\u0627\u062A. \u0647\u0630\u0627 \u0627\u0644\u0646\u0635 \u0647\u0648 \u0628\u062F\u064A\u0644 \u0639\u0631\u0628\u064A \u0644\u0646\u0635 \u0644\u0648\u0631\u064A\u0645 \u0625\u064A\u0628\u0633\u0648\u0645 \u0627\u0644\u0644\u0627\u062A\u064A\u0646\u064A. \u064A\u0633\u0627\u0639\u062F \u0641\u064A \u0627\u062E\u062A\u0628\u0627\u0631 \u0627\u0644\u062A\u062E\u0637\u064A\u0637\u0627\u062A \u0648\u0627\u0644\u062E\u0637\u0648\u0637 \u0648\u0627\u0644\u0627\u062A\u062C\u0627\u0647 \u0645\u0646 \u0627\u0644\u064A\u0645\u064A\u0646 \u0625\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631. \u0627\u0644\u0644\u063A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0645\u0646 \u0623\u0643\u062B\u0631 \u0627\u0644\u0644\u063A\u0627\u062A \u0627\u0646\u062A\u0634\u0627\u0631\u0627 \u0641\u064A \u0627\u0644\u0639\u0627\u0644\u0645.",Vb="\u042D\u0442\u043E \u043F\u0440\u0438\u043C\u0435\u0440 \u0442\u0435\u043A\u0441\u0442\u0430 \u0434\u043B\u044F \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u043C\u0430\u043A\u0435\u0442\u0430. \u041E\u043D \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u043A\u0430\u043A \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C \u0434\u043B\u044F \u043F\u0440\u043E\u0442\u043E\u0442\u0438\u043F\u043E\u0432. \u0420\u0435\u0430\u043B\u044C\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0435\u043D\u0442 \u0431\u0443\u0434\u0435\u0442 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D \u043F\u043E\u0437\u0436\u0435. \u0412\u0435\u0431-\u0434\u0438\u0437\u0430\u0439\u043D \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0442\u0435\u043A\u0441\u0442\u043E\u0432\u044B\u0445 \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u0435\u0439 \u0434\u043B\u044F \u043F\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0433\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043C\u0430\u043A\u0435\u0442\u043E\u0432. \u042D\u0442\u043E\u0442 \u0442\u0435\u043A\u0441\u0442 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0440\u0443\u0441\u0441\u043A\u043E\u044F\u0437\u044B\u0447\u043D\u043E\u0439 \u0430\u043B\u044C\u0442\u0435\u0440\u043D\u0430\u0442\u0438\u0432\u043E\u0439 \u043B\u0430\u0442\u0438\u043D\u0441\u043A\u043E\u043C\u0443 \u0442\u0435\u043A\u0441\u0442\u0443. \u041A\u0438\u0440\u0438\u043B\u043B\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0448\u0440\u0438\u0444\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u043C\u043D\u043E\u0433\u0438\u043C\u0438 \u044F\u0437\u044B\u043A\u0430\u043C\u0438 \u043C\u0438\u0440\u0430. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043A\u0430\u043A \u0432\u0430\u0448 \u0434\u0438\u0437\u0430\u0439\u043D \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u0441 \u044D\u0442\u0438\u043C \u043D\u0430\u0431\u043E\u0440\u043E\u043C \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432.",Dd={latin:jb,cjk:Hb,arabic:zb,cyrillic:Vb},Ub={ja:"cjk",zh:"cjk",ko:"cjk",ar:"arabic",fa:"arabic",ur:"arabic",he:"arabic",ru:"cyrillic",uk:"cyrillic",bg:"cyrillic",sr:"cyrillic"};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Aa()):Aa();Xb=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(ya)&&wa(s),s.querySelectorAll(ya).forEach(n=>wa(n))}});Xb.observe(document.documentElement,{childList:!0,subtree:!0})});var ht=new Map,Di=new Map;var Ba=null;function Oa(){if(typeof window<"u"&&window.__VB_THEME_BASE)return String(window.__VB_THEME_BASE).replace(/\/$/,"");if(Ba)return Ba;if(typeof document<"u"){let e=document.querySelectorAll('script[src*="vanilla-breeze"]');for(let t of e){let i=t.getAttribute("src");if(i){let s=i.lastIndexOf("/");if(s!==-1)return i.slice(0,s)}}}return"/cdn"}var rh=new Set(["default","a11y-high-contrast","a11y-large-text","a11y-dyslexia","modern","minimal","classic"]),ah=new Set(["kawaii","memphis"]);function $i(e){return ah.has(e)}function oh(e,t){return`${t}/themes/${e}.css`}function Fa(e,t){if(!$i(e))return Promise.resolve();if(Di.has(e))return Di.get(e);let i=import(`${t}/packs/${e}.full.js`).catch(()=>{});return Di.set(e,i),i}function ch(e,t){let i=Oa(),s=()=>{($i(t)||e.hasAttribute("data-vb-pack"))&&Fa(t,i)};return e.getAttribute("data-vb-theme-state")==="error"?Promise.reject(new Error(`Failed to load theme: ${t}`)):e.getAttribute("data-vb-theme-state")==="ready"||e.sheet?(s(),Promise.resolve()):new Promise((n,r)=>{let a=()=>{e.setAttribute("data-vb-theme-state","ready"),c(),s(),n(void 0)},o=()=>{e.setAttribute("data-vb-theme-state","error"),ht.delete(t),c(),r(new Error(`Failed to load theme: ${t}`))},c=()=>{e.removeEventListener("load",a),e.removeEventListener("error",o)};e.addEventListener("load",a,{once:!0}),e.addEventListener("error",o,{once:!0})})}async function jt(e){if(!e||rh.has(e))return;if(ht.has(e))return ht.get(e);if(typeof document<"u"){let s=document.querySelector(`link[data-vb-theme="${e}"]`);if(s){let n=ch(s,e);return ht.set(e,n),n}}let t=Oa(),i=$i(e)?uh(e,t):lh(e,t);return ht.set(e,i),i}async function lh(e,t){let i=oh(e,t);return new Promise((s,n)=>{let r=document.querySelector(`link[data-vb-theme-preload="${e}"]`);r&&r.remove();let a=document.createElement("link");a.rel="stylesheet",a.href=i,a.setAttribute("data-vb-theme",e),a.setAttribute("data-vb-theme-state","loading"),a.onload=()=>{a.setAttribute("data-vb-theme-state","ready"),s()},a.onerror=()=>{a.setAttribute("data-vb-theme-state","error"),a.remove(),ht.delete(e),n(new Error(`Failed to load theme: ${e}`))},document.head.appendChild(a)})}function uh(e,t){let i=`${t}/packs/${e}.theme.css`,s=`${t}/packs/${e}.effects.css`;return new Promise((n,r)=>{let a=document.querySelector(`link[data-vb-theme-preload="${e}"]`);a&&a.remove();let o=document.createElement("link");o.rel="stylesheet",o.href=i,o.setAttribute("data-vb-theme",e),o.setAttribute("data-vb-pack",e),o.setAttribute("data-vb-theme-state","loading"),o.onload=()=>{o.setAttribute("data-vb-theme-state","ready");let c=document.createElement("link");c.rel="stylesheet",c.href=s,c.setAttribute("data-vb-pack-effects",e),document.head.appendChild(c),Fa(e,t),n()},o.onerror=()=>{o.setAttribute("data-vb-theme-state","error"),o.remove(),ht.delete(e),r(new Error(`Failed to load pack: ${e}`))},document.head.appendChild(o)})}var Pa=[{id:"default",name:"Default",swatchBg:"#3b82f6",seeds:{}},{id:"ocean",name:"Ocean",swatchBg:"#0891b2",seeds:{"--hue-primary":200,"--hue-secondary":180,"--hue-accent":45,"--lightness-primary":"50%","--chroma-primary":.15,"--lightness-secondary":"45%","--chroma-secondary":.1,"--lightness-accent":"70%","--chroma-accent":.15},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.12}},{id:"forest",name:"Forest",swatchBg:"#059669",seeds:{"--hue-primary":145,"--hue-secondary":90,"--hue-accent":30,"--lightness-primary":"45%","--chroma-primary":.15,"--lightness-secondary":"55%","--chroma-secondary":.12,"--lightness-accent":"65%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"58%","--chroma-primary":.12}},{id:"sunset",name:"Sunset",swatchBg:"#ea580c",seeds:{"--hue-primary":25,"--hue-secondary":0,"--hue-accent":280,"--lightness-primary":"57%","--chroma-primary":.2,"--lightness-secondary":"55%","--chroma-secondary":.18,"--lightness-accent":"55%","--chroma-accent":.18},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.16}},{id:"rose",name:"Rose",swatchBg:"#e11d48",seeds:{"--hue-primary":350,"--hue-secondary":330,"--hue-accent":200,"--lightness-primary":"55%","--chroma-primary":.18,"--lightness-secondary":"50%","--chroma-secondary":.14,"--lightness-accent":"60%","--chroma-accent":.12},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.14}},{id:"lavender",name:"Lavender",swatchBg:"#a855f7",seeds:{"--hue-primary":280,"--hue-secondary":300,"--hue-accent":60,"--lightness-primary":"55%","--chroma-primary":.14,"--lightness-secondary":"50%","--chroma-secondary":.12,"--lightness-accent":"70%","--chroma-accent":.14},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.12}},{id:"coral",name:"Coral",swatchBg:"#f97316",seeds:{"--hue-primary":15,"--hue-secondary":25,"--hue-accent":180,"--lightness-primary":"57%","--chroma-primary":.18,"--lightness-secondary":"55%","--chroma-secondary":.15,"--lightness-accent":"55%","--chroma-accent":.12},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.15}},{id:"slate",name:"Slate",swatchBg:"#64748b",seeds:{"--hue-primary":220,"--hue-secondary":210,"--hue-accent":45,"--lightness-primary":"48%","--chroma-primary":.1,"--lightness-secondary":"45%","--chroma-secondary":.06,"--lightness-accent":"68%","--chroma-accent":.15},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.08}},{id:"emerald",name:"Emerald",swatchBg:"#10b981",seeds:{"--hue-primary":160,"--hue-secondary":140,"--hue-accent":30,"--lightness-primary":"50%","--chroma-primary":.15,"--lightness-secondary":"48%","--chroma-secondary":.12,"--lightness-accent":"65%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.12}},{id:"amber",name:"Amber",swatchBg:"#f59e0b",seeds:{"--hue-primary":45,"--hue-secondary":30,"--hue-accent":240,"--lightness-primary":"56%","--chroma-primary":.16,"--lightness-secondary":"55%","--chroma-secondary":.15,"--lightness-accent":"52%","--chroma-accent":.14},seedsDark:{"--lightness-primary":"68%","--chroma-primary":.14}},{id:"indigo",name:"Indigo",swatchBg:"#6366f1",seeds:{"--hue-primary":250,"--hue-secondary":270,"--hue-accent":35,"--lightness-primary":"48%","--chroma-primary":.18,"--lightness-secondary":"45%","--chroma-secondary":.14,"--lightness-accent":"68%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"62%","--chroma-primary":.14}}],Ra=[{id:"default",name:"Default",hue:210,shape:"balanced",character:"The default",swatchBg:"#3b82f6",tier:"core"},{id:"modern",name:"Modern",hue:270,shape:"rounded",character:"Vibrant & elevated",swatchBg:"#6366f1",tier:"core"},{id:"minimal",name:"Minimal",hue:240,shape:"sharp",character:"Clean & flat",swatchBg:"#71717a",tier:"core"},{id:"classic",name:"Classic",hue:220,shape:"subtle",character:"Serif & elegant",swatchBg:"#92400e",tier:"core"}],Ii=[{id:"swiss",name:"Swiss",icon:"grid-3x3",character:"Precision grid",swatchBg:"#ff3e00",swatchFg:"white",tier:"showcase",category:"Design"},{id:"brutalist",name:"Brutalist",icon:"square",character:"Raw, industrial",swatchBg:"#1a1a1a",swatchFg:"#f5f5f5",tier:"showcase",category:"Design"},{id:"art-deco",name:"Art Deco",icon:"crown",character:"1920s luxury",swatchBg:"#1A1A1A",swatchFg:"#C9A84C",tier:"showcase",category:"Design"},{id:"editorial",name:"Editorial",icon:"newspaper",character:"Magazine elegance",swatchBg:"#1a1a1a",swatchFg:"#c9a227",tier:"showcase",category:"Content"},{id:"genai",name:"GenAI",icon:"sparkles",character:"AI aesthetic",swatchBg:"#1a0a2e",swatchFg:"#a855f7",tier:"showcase",category:"Modern"},{id:"glassmorphism",name:"Glass",icon:"glass-water",character:"Frosted surfaces",swatchBg:"#667eea",swatchFg:"#ffffff",tier:"showcase",category:"Modern"},{id:"startup",name:"Startup",icon:"rocket",character:"SaaS energy",swatchBg:"#4f46e5",swatchFg:"#ffffff",tier:"showcase",category:"Modern"},{id:"organic",name:"Organic",icon:"leaf",character:"Natural, handcrafted",swatchBg:"#2d5016",swatchFg:"#faf5e6",tier:"showcase",category:"Creative"},{id:"rough",name:"Rough",icon:"pencil",character:"Hand-drawn sketch",swatchBg:"#f5f0e8",swatchFg:"#3a3a3a",tier:"showcase",category:"Creative"},{id:"cyber",name:"Cyber",icon:"zap",character:"Neon futuristic",swatchBg:"#0a0a1a",swatchFg:"#00ff88",tier:"showcase",category:"Creative"},{id:"journal",name:"Journal",icon:"notebook-pen",character:"Dot-grid bullet journal",swatchBg:"#f3ecdc",swatchFg:"#27313f",tier:"showcase",category:"Creative"},{id:"vaporwave",name:"Vaporwave",icon:"radio",character:"Neon dreamy",swatchBg:"#2b0040",swatchFg:"#ff6ad5",tier:"showcase",category:"Aesthetic"},{id:"neumorphism",name:"Neumorph",icon:"circle",character:"Soft embossed",swatchBg:"#e0e0e0",swatchFg:"#a0a0a0",tier:"showcase",category:"Aesthetic"},{id:"bauhaus",name:"Bauhaus",icon:"shapes",character:"Geometric",swatchBg:"#F1FAEE",swatchFg:"#E63946",tier:"showcase",category:"Aesthetic"},{id:"claymorphism",name:"Clay",icon:"circle-dot",character:"Puffy 3D",swatchBg:"#f0f0f5",swatchFg:"#FF6B9D",tier:"showcase",category:"Aesthetic"},{id:"alpha1999",name:"Alpha1999",icon:"orbit",character:"Space retro-fi",swatchBg:"#0a0a14",swatchFg:"#d4880f",tier:"showcase",category:"Signature"},{id:"super2026",name:"Super2026",icon:"triangle",character:"Supergraphic bold",swatchBg:"#f5f0e6",swatchFg:"#c23616",tier:"showcase",category:"Signature"},{id:"magna",name:"Magna",icon:"orbit",character:"Odyssey 2 retro",swatchBg:"#0d0b14",swatchFg:"#f97316",tier:"showcase",category:"Signature"},{id:"win9x",name:"Win9x",icon:"monitor",character:"Classic desktop",swatchBg:"#008080",swatchFg:"#c0c0c0",tier:"showcase",category:"OS Styles"},{id:"nes",name:"NES",icon:"joystick",character:"Console pixels",swatchBg:"#bcbcbc",swatchFg:"#e40521",tier:"showcase",category:"OS Styles"},{id:"8bit",name:"8-Bit",icon:"gamepad-2",character:"Retro pixel art",swatchBg:"#000080",swatchFg:"#ffff00",tier:"showcase",category:"OS Styles"}],qi=[{id:"nord",name:"Nord",icon:"snowflake",character:"Arctic calm",swatchBg:"#2E3440",swatchFg:"#81A1C1",tier:"community",category:"Editor Palettes"},{id:"solarized",name:"Solarized",icon:"sun-dim",character:"Engineered precision",swatchBg:"#002B36",swatchFg:"#268BD2",tier:"community",category:"Editor Palettes"},{id:"dracula",name:"Dracula",icon:"moon-star",character:"Dark elegance",swatchBg:"#282A36",swatchFg:"#BD93F9",tier:"community",category:"Editor Palettes"},{id:"catppuccin-mocha",name:"Catppuccin",icon:"coffee",character:"Warm pastels",swatchBg:"#1E1E2E",swatchFg:"#CBA6F7",tier:"community",category:"Editor Palettes"},{id:"catppuccin-latte",name:"Ctp Latte",icon:"coffee",character:"Cozy daytime",swatchBg:"#eff1f5",swatchFg:"#8839ef",tier:"community",category:"Editor Palettes"},{id:"catppuccin-frappe",name:"Ctp Frapp\xE9",icon:"coffee",character:"Cool twilight",swatchBg:"#303446",swatchFg:"#ca9ee6",tier:"community",category:"Editor Palettes"},{id:"catppuccin-macchiato",name:"Ctp Macchiato",icon:"coffee",character:"Deep blue",swatchBg:"#24273a",swatchFg:"#c6a0f6",tier:"community",category:"Editor Palettes"},{id:"gruvbox",name:"Gruvbox",icon:"palette",character:"Retro warmth",swatchBg:"#282828",swatchFg:"#ebdbb2",tier:"community",category:"Editor Palettes"},{id:"tokyo-night",name:"Tokyo Night",icon:"moon",character:"Night-owl vibes",swatchBg:"#1a1b26",swatchFg:"#7aa2f7",tier:"community",category:"Editor Palettes"},{id:"rose-pine",name:"Ros\xE9 Pine",icon:"flower-2",character:"Muted elegance",swatchBg:"#191724",swatchFg:"#ebbcba",tier:"community",category:"Editor Palettes"},{id:"cottagecore",name:"Cottagecore",icon:"flower-2",character:"Pastoral",swatchBg:"#fdf8f0",swatchFg:"#7d8c6d",tier:"community",category:"Niche"},{id:"terminal",name:"Terminal",icon:"terminal",character:"Retro CRT",swatchBg:"#0d1117",swatchFg:"#00ff00",tier:"community",category:"Niche"},{id:"clinical",name:"Clinical",icon:"heart-pulse",character:"Sterile precision",swatchBg:"#ffffff",swatchFg:"#0077b6",tier:"community",category:"Industry"},{id:"financial",name:"Financial",icon:"landmark",character:"Navy + gold",swatchBg:"#1b2a4a",swatchFg:"#c9a84c",tier:"community",category:"Industry"},{id:"government",name:"Government",icon:"shield",character:"Official",swatchBg:"#002868",swatchFg:"#bf0a30",tier:"community",category:"Industry"},{id:"dawn",name:"Dawn",icon:"sunrise",character:"Golden morning",swatchBg:"#fef3e2",swatchFg:"#d4a574",tier:"community",category:"Mood/Time"},{id:"dusk",name:"Dusk",icon:"sunset",character:"Twilight",swatchBg:"#1a1b2e",swatchFg:"#e5a858",tier:"community",category:"Mood/Time"},{id:"midnight",name:"Midnight",icon:"moon",character:"Deep night",swatchBg:"#0d1117",swatchFg:"#58a6ff",tier:"community",category:"Mood/Time"},{id:"high-noon",name:"High Noon",icon:"sun",character:"Maximum bright",swatchBg:"#ffffff",swatchFg:"#e63946",tier:"community",category:"Mood/Time"}],ja=[{id:"kawaii",name:"Kawaii",icon:"heart",character:"Cute aesthetic",swatchBg:"#ffb7c5",swatchFg:"#ff69b4",tier:"showcase",category:"Packs"},{id:"memphis",name:"Memphis",icon:"star",character:"Bold patterns",swatchBg:"#FFF8F0",swatchFg:"#d03040",tier:"showcase",category:"Packs"}];var By=[...Ii,...qi],Oy=[...Ra,...Ii,...qi,...ja],pt=e=>Ii.filter(t=>t.category===e),Ha=[{label:"Style",themes:Ra,tier:"core"},{label:"Design",themes:pt("Design"),tier:"showcase"},{label:"Content",themes:pt("Content"),tier:"showcase"},{label:"Modern",themes:pt("Modern"),tier:"showcase"},{label:"Creative",themes:pt("Creative"),tier:"showcase"},{label:"Aesthetic",themes:pt("Aesthetic"),tier:"showcase"},{label:"Signature",themes:pt("Signature"),tier:"showcase"},{label:"OS Styles",themes:pt("OS Styles"),tier:"showcase"},{label:"Packs",themes:ja,tier:"showcase"},{label:"More Themes",themes:qi,tier:"community"}];et();var Ce="theme",Te="current",H={mode:"auto",brand:"default",accent:"default",borderStyle:"",iconSet:"",fluid:"",backdrop:"",backdropChrome:"",pageBgType:"",pageBgColor:"",pageBgGradStart:"",pageBgGradEnd:"",pageBgGradDir:""};function Ga(e){return(e||"").split(/\s+/).find(t=>t&&!t.startsWith("a11y-"))||""}function Ua(e,t){return e?.brand&&e.brand!==H.brand?e.brand:Ga(t)||H.brand}var Wa=["--hue-primary","--hue-secondary","--hue-accent","--lightness-primary","--chroma-primary","--lightness-secondary","--chroma-secondary","--lightness-accent","--chroma-accent"],M=null,ft="",T={_initPromise:null,async init(){return this._initPromise?this._initPromise:(this._initPromise=(async()=>{let e=await k.get(Ce,Te);M=e?{...H,...e}:{...H},ft=Ga(document.documentElement.dataset.theme),M.brand=Ua(e,ft);try{await jt(M.brand)}catch{M.brand!==ft&&(M.brand=ft||H.brand)}return this.apply(M),this._watchSystemPreference(),this._watchRootAttributes(),this._watchCrossDocumentStorage(),M})(),this._initPromise)},_watchCrossDocumentStorage(){typeof window>"u"||window.addEventListener("storage",async e=>{if(e.key!==`vb:${Ce}:${Te}`||!e.newValue)return;let t;try{t=JSON.parse(e.newValue)?.data}catch{return}if(!t||typeof t!="object")return;let i={...H,...M,...t};if(i.brand=Ua(t,ft),i.brand&&i.brand!==M?.brand)try{await jt(i.brand)}catch{i.brand=ft||H.brand}M=i,this.apply(M||{})})},load(){return M?{...M}:{...H}},save(e){let t={...M??H,...e};return M=t,k.set(Ce,Te,t).catch(()=>{}),t},apply({mode:e="auto",brand:t="default",borderStyle:i="",iconSet:s="",fluid:n="",backdrop:r="",backdropChrome:a="",pageBgType:o="",pageBgColor:c="",pageBgGradStart:l="",pageBgGradEnd:u="",pageBgGradDir:d=""}={}){let h=document.documentElement;h.dataset.mode=e==="auto"?this.getEffectiveMode():e;let f=(h.dataset.theme||"").split(" ").filter(N=>N.startsWith("a11y-")),m=t!=="default"?[t,...f]:[...f];m.length?h.dataset.theme=m.join(" "):delete h.dataset.theme;let v=i||this._readCSSHint("--theme-border-style");v&&v!=="clean"?h.dataset.borderStyle=v:delete h.dataset.borderStyle;let A=s||this._readCSSHint("--theme-icon-set");if(A&&A!=="lucide"?h.dataset.iconSet=A:delete h.dataset.iconSet,n?h.dataset.fluid=n:delete h.dataset.fluid,r?h.dataset.backdrop=r:delete h.dataset.backdrop,a&&a!=="card"?h.dataset.backdropChrome=a:delete h.dataset.backdropChrome,o==="color"&&c)h.style.setProperty("--page-bg-color",c),h.style.removeProperty("--page-bg-gradient");else if(o==="gradient"&&l&&u){let N=d||"to bottom";h.style.setProperty("--page-bg-gradient",`linear-gradient(${N}, ${l}, ${u})`),h.style.removeProperty("--page-bg-color")}else h.style.removeProperty("--page-bg-color"),h.style.removeProperty("--page-bg-gradient");let L=this.load().accent||"default";this._applyAccent(L),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{mode:e,brand:t,accent:L,borderStyle:v,iconSet:A,fluid:n,backdrop:r,backdropChrome:a,pageBgType:o,effectiveMode:this.getEffectiveMode()}}))},setMode(e){let t=this.save({mode:e});this.apply(t)},async setBrand(e){try{await jt(e)}catch(i){console.warn(`[VB] Theme "${e}" failed to load, using default`,i),e="default"}let t=this.save({brand:e});this.apply(t)},setAccent(e){this.save({accent:e}),this._applyAccent(e),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}}))},setBorderStyle(e){let t=this.save({borderStyle:e});this.apply(t)},setIconSet(e){let t=this.save({iconSet:e});this.apply(t)},setFluid(e){let t=this.save({fluid:e});this.apply(t)},setBackdrop(e){let t=this.save({backdrop:e});this.apply(t)},setBackdropChrome(e){let t=this.save({backdropChrome:e});this.apply(t)},setPageBg({type:e="",color:t="",gradStart:i="",gradEnd:s="",gradDir:n=""}={}){let r=this.save({pageBgType:e,pageBgColor:t,pageBgGradStart:i,pageBgGradEnd:s,pageBgGradDir:n});this.apply(r)},getEffectiveMode(){let{mode:e}=this.load();return e!=="auto"?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},getState(){let{mode:e,brand:t,accent:i,borderStyle:s,iconSet:n,fluid:r,backdrop:a,backdropChrome:o,pageBgType:c,pageBgColor:l,pageBgGradStart:u,pageBgGradEnd:d,pageBgGradDir:h}=this.load();return{mode:e,brand:t,accent:i,borderStyle:s,iconSet:n,fluid:r,backdrop:a,backdropChrome:o,pageBgType:c,pageBgColor:l,pageBgGradStart:u,pageBgGradEnd:d,pageBgGradDir:h,effectiveMode:this.getEffectiveMode()}},toggleMode(){let t=this.getEffectiveMode()==="dark"?"light":"dark";this.setMode(t)},reset(){M={...H,brand:ft||H.brand},k.remove(Ce,Te).catch(()=>{});let e=document.documentElement;e.style.removeProperty("--page-bg-color"),e.style.removeProperty("--page-bg-gradient");for(let t of Wa)e.style.removeProperty(t);this.apply(M)},_readCSSHint(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()},_applyAccent(e){let t=document.documentElement;for(let s of Wa)t.style.removeProperty(s);let i=Pa.find(s=>s.id===e);if(!i||!i.seeds||Object.keys(i.seeds).length===0){delete t.dataset.accent;return}t.dataset.accent=i.id},_watchRootAttributes(){this._rootObserver||(this._rootObserver=new MutationObserver(e=>{for(let t of e)t.attributeName==="data-theme"?this._syncFromDataTheme():t.attributeName==="data-mode"&&this._syncFromDataMode()}),this._rootObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","data-mode"]}))},_syncFromDataTheme(){if(!M)return;let i=(document.documentElement.dataset.theme||"").split(/\s+/).filter(Boolean).find(s=>!s.startsWith("a11y-"))||"default";i!==M.brand&&(M.brand=i,jt(i).catch(()=>{}),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}})))},_syncFromDataMode(){if(!M)return;let e=document.documentElement.dataset.mode||"auto",t=M.mode==="auto"?this.getEffectiveMode():M.mode;e!==t&&(M.mode=e,window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}})))},_watchSystemPreference(){window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{let t=this.load();t.mode==="auto"&&this.apply(t)})}};var hh=["layout-text","layout-reel","layout-canvas","dl-item"];hh.forEach(e=>{customElements.get(e)||customElements.define(e,class extends HTMLElement{})});var Uy=window.matchMedia("(prefers-reduced-motion: reduce)");var Ya=new Map;function b(e,t,i={}){let s=i.priority??10,n={impl:t,bundle:i.bundle,contract:i.contract,priority:s},r=Ya.get(e);if(customElements.get(e)){if(!r||r.priority>=s){r&&r.priority===s&&r.impl!==t&&console.warn(`[VB Bundle] Tag <${e}> already registered by "${r.bundle}" (priority ${r.priority}). Skipping "${i.bundle}".`);return}console.warn(`[VB Bundle] Tag <${e}> defined by "${r.bundle}" cannot be replaced (customElements.define is permanent). "${i.bundle}" has higher priority but arrived late.`);return}if(r&&r.priority>=s){r.priority===s&&console.warn(`[VB Bundle] Tag <${e}> already registered by "${r.bundle}". Skipping "${i.bundle}" (first wins at equal priority).`);return}Ya.set(e,n),customElements.define(e,t)}var y=class extends HTMLElement{#e=[];#t;connectedCallback(){this.hasAttribute("data-upgraded")||this.setup()!==!1&&(this.setAttribute("data-upgraded",""),queueMicrotask(()=>{this.dispatchEvent(new CustomEvent(`${this.localName}:upgraded`,{bubbles:!0}))}))}disconnectedCallback(){for(let t of this.#e)t();this.#e=[],this.removeAttribute("data-upgraded"),this.teardown()}listen(t,i,s,n){t.addEventListener(i,s,n),this.#e.push(()=>t.removeEventListener(i,s,n))}_reinit(){for(let t of this.#e)t();this.#e=[],this.teardown(),this.removeAttribute("data-upgraded"),this.isConnected&&this.setup()!==!1&&this.setAttribute("data-upgraded","")}setup(){}teardown(){}setState(t,i){this.#t||(this.#t=this.attachInternals());let s=this.#t.states;try{i?s.add(t):s.delete(t)}catch{let n=`--${t}`;i?s.add(n):s.delete(n)}}_adoptInternals(t){this.#t||(this.#t=t)}};var ph=["valueMissing","typeMismatch","patternMismatch","tooShort","tooLong","rangeUnderflow","rangeOverflow","stepMismatch","customError"],Oi=class extends y{#e=null;#t=null;#i=!1;setup(){return this.#e=this.querySelector("input, textarea, select"),this.#t=this.querySelector("output.error")??this.querySelector("output:not(.hint)"),this.#e?(this.listen(this.#e,"blur",()=>this.validate()),this.listen(this.#e,"input",()=>{this.#i&&this.validate()}),!0):!1}teardown(){this.#e=null,this.#t=null,this.#i=!1}validate(){let t=this.#e;if(!t)return!0;t.validity.customError||t.setCustomValidity("");let i=t.checkValidity();return i?(this.#s(t.value?"valid":null),t.removeAttribute("aria-invalid"),this.#t&&(this.#t.textContent="")):(this.#i=!0,this.#s("invalid"),t.setAttribute("aria-invalid","true"),this.#r(t.validity)),i}setError(t){this.#e&&(this.#e.setCustomValidity(t),this.#i=!0,this.#s("invalid"),this.#e.setAttribute("aria-invalid","true"),this.#t&&(this.#t.textContent=t))}clearError(){this.#e&&(this.#e.setCustomValidity(""),this.#s(null),this.#e.removeAttribute("aria-invalid"),this.#i=!1,this.#t&&(this.#t.textContent=""))}get fieldName(){return this.querySelector("label")?.textContent?.trim()??this.#e?.getAttribute("aria-label")??this.#e?.name??this.#e?.id??"Field"}get input(){return this.#e}#s(t){delete this.dataset.valid,delete this.dataset.invalid,t&&(this.dataset[t]="")}#r(t){if(!this.#t)return;let i=this.#e;if(!(!i||!this.#t))for(let s of ph){if(!t[s])continue;let n=`data-message-${s.toLowerCase()}`,r=i.getAttribute(n)??i.validationMessage;this.#t.textContent=r;return}}};b("form-field",Oi);function Z(e){return document.startViewTransition?document.startViewTransition(e):e()}var fh=0,Fi=class extends y{#e=[];#t=[];#i=!1;#s=0;setup(){return this.#e=[...this.querySelectorAll(":scope > details")],this.#t=this.#e.map(t=>t.querySelector("summary")),this.#e.length===0?!1:(this.style.setProperty("--_tab-count",String(this.#e.length)),this.#a(),this.#o(),this.#r(),!0)}teardown(){this.style.removeProperty("--_tab-count"),this.#e=[],this.#t=[],this.#i=!1}get tabs(){return this.#e.map((t,i)=>({id:t.id||void 0,label:t.querySelector("summary")?.textContent?.trim()||`Tab ${i+1}`,content:t.querySelector(":scope > :not(summary)")?.innerHTML||"",active:t.hasAttribute("open")}))}set tabs(t){let i=Array.isArray(t)?t:[];for(;this.firstChild;)this.firstChild.remove();let s=!1;for(let n of i){let r=document.createElement("details");n.id&&(r.id=n.id),n.active&&!s&&(r.setAttribute("open",""),s=!0);let a=document.createElement("summary");a.textContent=n.label||"",r.appendChild(a);let o=document.createElement("div");o.innerHTML=n.content||"",r.appendChild(o),this.appendChild(r)}!s&&this.firstElementChild&&this.firstElementChild.setAttribute("open",""),this.teardown(),this.removeAttribute("data-upgraded"),this.setup(),this.dispatchEvent(new CustomEvent("tab-set:tabs-changed",{detail:{tabs:i,source:"property"},bubbles:!0}))}#r(){if(!this.hasAttribute("transition")||!document.startViewTransition)return;this.#i=!0;let t=++fh,i=this.getAttribute("transition")||"fade",s=i==="slide"?"vt-tabs-slide":i==="scale"?"vt-tabs-scale":"vt-tabs";this.#e.forEach(n=>{let r=n.querySelector(":scope > :not(summary)");r&&(r.style.viewTransitionName=`tabs-${t}`,r.style.viewTransitionClass=s)}),this.#s=this.#e.findIndex(n=>n.open),this.#s===-1&&(this.#s=0)}#n(t){if(t===this.#s)return;let i=t>this.#s?"forward":"backward";document.documentElement.dataset.vtDirection=i,Z(()=>{this.#e[t].open=!0}).finished?.then(()=>{delete document.documentElement.dataset.vtDirection})}#a(){this.#e.forEach((t,i)=>{let s=this.#t[i],n=t.querySelector(":scope > :not(summary)");if(!s||!n)return;let r=s.id||`tab-${crypto.randomUUID().slice(0,8)}`,a=n.id||`panel-${crypto.randomUUID().slice(0,8)}`;s.id=r,s.setAttribute("aria-controls",a),s.setAttribute("tabindex",t.open?"0":"-1"),s.setAttribute("aria-expanded",t.open?"true":"false"),n.id=a,n.setAttribute("aria-labelledby",r),this.listen(s,"click",o=>{if(t.open){o.preventDefault();return}this.#i&&(o.preventDefault(),this.#n(i))}),this.listen(s,"keydown",o=>this.#p(o,i)),this.listen(t,"toggle",()=>this.#l(i))})}#o(){!this.#e.some(i=>i.open)&&this.#e.length>0&&(this.#e[0].open=!0,this.#c())}#l(t){this.#e[t].open&&(this.#s=t),this.#c(),this.dispatchEvent(new CustomEvent("tab-set:change",{detail:{index:t},bubbles:!0}))}#c(){this.#e.forEach((t,i)=>{let s=this.#t[i];s.setAttribute("tabindex",t.open?"0":"-1"),s.setAttribute("aria-expanded",t.open?"true":"false")})}#p(t,i){let{key:s}=t,n;switch(s){case"ArrowRight":n=(i+1)%this.#e.length;break;case"ArrowLeft":n=(i-1+this.#e.length)%this.#e.length;break;case"Home":n=0;break;case"End":n=this.#e.length-1;break;default:return}t.preventDefault(),this.#i?this.#n(n):this.#e[n].open=!0,this.#t[n].focus()}};b("tab-set",Fi);var Pi=class e extends y{static#e=0;#t;#i=[];#s="Back to content";setup(){this.#t=++e.#e,this.hasAttribute("data-back-label")&&(this.#s=this.getAttribute("data-back-label")??this.#s),this.#r(),this.getAttribute("data-mode")==="sidenotes"?this.#o():this.#n()}#r(){let t=[...document.querySelectorAll("foot-note:not([data-enhanced])")];this.#i=t.filter(i=>this.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_PRECEDING)}#n(){if(this.#i.length===0)return;let t=document.createElement("ol");this.#i.forEach((i,s)=>{let n=s+1,r=`fnref-${this.#t}-${n}`,a=`fn-${this.#t}-${n}`;this.#a(i,n,r,a);let o=this.#c(i,n,r,a);t.appendChild(o)}),this.appendChild(t)}#a(t,i,s,n){t.setAttribute("data-enhanced",""),t.id=s;let r=t.innerHTML,a=document.createElement("span");a.innerHTML=r;let o=document.createElement("a");o.href=`#${n}`,o.setAttribute("aria-describedby",n),o.textContent=`[${i}]`,t.innerHTML="",t.appendChild(a),t.appendChild(o)}#o(){if(this.#i.length===0)return;let t=[];if(this.#i.forEach((i,s)=>{let n=s+1,r=`fnref-${this.#t}-${n}`,a=`fn-${this.#t}-${n}`;i.getAttribute("data-side")==="false"?(this.#a(i,n,r,a),t.push({ref:i,num:n,refId:r,noteId:a})):this.#l(i,n,r,a)}),t.length>0){let i=document.createElement("ol");for(let{ref:s,num:n,refId:r,noteId:a}of t)i.appendChild(this.#c(s,n,r,a));this.appendChild(i)}else this.hidden=!0}#l(t,i,s,n){let r=t.innerHTML;t.setAttribute("data-enhanced",""),t.setAttribute("data-side",""),t.id=s;let a=document.createElement("a");a.href=`#${n}`,a.setAttribute("aria-describedby",n),a.textContent=`[${i}]`;let o=document.createElement("aside");o.className="sidenote",o.id=n,o.setAttribute("role","note"),o.innerHTML=`<span class="sidenote-number">${i}.</span> ${r}`,t.innerHTML="",t.appendChild(a),t.appendChild(o)}#c(t,i,s,n){let r=document.createElement("li");r.id=n;let a=t.querySelector("span"),o=a?a.innerHTML:"",c=document.createElement("a");return c.href=`#${s}`,c.setAttribute("data-backref",""),c.setAttribute("aria-label",this.#s),c.textContent="\u21A9",r.innerHTML=o+" ",r.appendChild(c),r}},Ri=class extends HTMLElement{};b("foot-notes",Pi);b("foot-note",Ri);var Ka=0,ji=class extends y{#e=[];#t=[];#i=[];#s=!1;setup(){return this.#e=[...this.querySelectorAll(":scope > details")],this.#t=this.#e.map(t=>t.querySelector("summary")),this.#e.length===0?!1:(this.#r(),this.#o(),this.#n(),!0)}teardown(){this.#e=[],this.#t=[],this.#i=[],this.#s=!1}get panels(){return this.#e.map((t,i)=>({id:t.id||void 0,summary:t.querySelector("summary")?.textContent?.trim()||`Panel ${i+1}`,content:this.#i[i]?.innerHTML||"",open:t.hasAttribute("open")}))}set panels(t){let i=Array.isArray(t)?t:[],n=this.hasAttribute("single")?`acc-${++Ka}`:null;for(;this.firstChild;)this.firstChild.remove();for(let r of i){let a=document.createElement("details");r.id&&(a.id=r.id),r.open&&a.setAttribute("open",""),n&&a.setAttribute("name",n);let o=document.createElement("summary");o.textContent=r.summary||"",a.appendChild(o);let c=document.createElement("div");c.innerHTML=r.content||"",a.appendChild(c),this.appendChild(a)}this._reinit(),this.dispatchEvent(new CustomEvent("accordion-wc:panels-changed",{detail:{panels:i,source:"property"},bubbles:!0}))}#r(){this.#i=this.#e.map(t=>{let i=t.querySelector("summary");if(!i)return null;let s=[...t.children].filter(n=>n!==i);if(s.length===1&&s[0].localName==="div")return s[0];if(s.length>=1){let n=document.createElement("div");for(let r of s)n.appendChild(r);return t.appendChild(n),n}return null})}#n(){if(!this.hasAttribute("transition")||!document.startViewTransition)return;this.#s=!0;let t=++Ka,i=this.getAttribute("transition")||"fade",s=i==="slide"?"vt-accordion-slide":i==="scale"?"vt-accordion-scale":"vt-accordion";this.#i.forEach((n,r)=>{n&&(n.style.viewTransitionName=`accordion-${t}-${r}`,n.style.viewTransitionClass=s)})}#a(t){Z(()=>{t.open=!t.open})}#o(){this.#e.forEach((t,i)=>{let s=this.#t[i],n=this.#i[i];if(s){if(n){let r=s.id||`accordion-heading-${crypto.randomUUID().slice(0,8)}`,a=n.id||`accordion-panel-${crypto.randomUUID().slice(0,8)}`;s.id=r,n.id=a,s.setAttribute("aria-expanded",t.open?"true":"false"),s.setAttribute("aria-controls",a),n.setAttribute("aria-labelledby",r),n.setAttribute("role","region")}else s.setAttribute("aria-expanded",t.open?"true":"false");this.listen(s,"click",r=>{this.#s&&(r.preventDefault(),this.#a(t))}),this.listen(s,"keydown",r=>this.#c(r,i)),this.listen(t,"toggle",()=>this.#l(t,i))}})}#l(t,i){this.#t[i].setAttribute("aria-expanded",t.open?"true":"false"),this.hasAttribute("single")&&t.open&&this.#e.forEach((n,r)=>{r!==i&&n.open&&(n.open=!1,this.#t[r].setAttribute("aria-expanded","false"))}),this.dispatchEvent(new CustomEvent("accordion-wc:toggle",{detail:{index:i,open:t.open},bubbles:!0}))}#c(t,i){let{key:s}=t,n;switch(s){case"ArrowDown":n=(i+1)%this.#e.length;break;case"ArrowUp":n=(i-1+this.#e.length)%this.#e.length;break;case"Home":n=0;break;case"End":n=this.#e.length-1;break;default:return}t.preventDefault(),this.#t[n].focus()}open(t){t<0||t>=this.#e.length||(this.#s&&!this.#e[t].open?Z(()=>{this.#e[t].open=!0}):this.#e[t].open=!0)}close(t){t<0||t>=this.#e.length||(this.#s&&this.#e[t].open?Z(()=>{this.#e[t].open=!1}):this.#e[t].open=!1)}toggle(t){t<0||t>=this.#e.length||(this.#s?this.#a(this.#e[t]):this.#e[t].open=!this.#e[t].open)}openAll(){this.hasAttribute("single")||this.#e.forEach(t=>{t.open=!0})}closeAll(){this.#e.forEach(t=>{t.open=!1})}};b("accordion-wc",ji);var Hi=class extends y{#e=[];#t=[];static get observedAttributes(){return["position","max"]}setup(){this.setAttribute("role","region"),this.setAttribute("aria-label","Notifications"),this.setAttribute("aria-live","polite")}teardown(){this.#t.forEach(t=>{t._dismissTimer&&clearTimeout(t._dismissTimer)}),this.#e=[],this.#t=[]}show(t){let{message:i,variant:s="info",duration:n=this.#n(),dismissible:r=!0,action:a,onAction:o,source:c="api"}=t,l=this.#i({message:i,variant:s,dismissible:r,action:a,onAction:o}),u=this.#a();return this.#t.length>=u?this.#e.push({toast:l,duration:n}):this.#s(l,n),this.dispatchEvent(new CustomEvent("toast-msg:enqueued",{detail:{message:i,variant:s,duration:n,source:c},bubbles:!0})),l}get queue(){let t=this.#t.map(s=>({message:s.querySelector(".message")?.textContent||"",variant:s.getAttribute("data-variant")||"info",state:"visible"})),i=this.#e.map(({toast:s})=>({message:s.querySelector(".message")?.textContent||"",variant:s.getAttribute("data-variant")||"info",state:"queued"}));return[...t,...i]}#i({message:t,variant:i,dismissible:s,action:n,onAction:r}){let a=document.createElement("div");a.className="toast",a.setAttribute("role",i==="error"||i==="warning"?"alert":"status"),a.setAttribute("data-variant",i);let o={info:"&#9432;",success:"&#10003;",warning:"&#9888;",error:"&#10007;"};return a.innerHTML=`
72
- <span class="icon" aria-hidden="true">${o[i]||o.info}</span>
73
- <span class="message">${this.#o(t)}</span>
74
- ${n?`<button type="button" class="action">${this.#o(n)}</button>`:""}
75
- ${s?'<button type="button" class="close" aria-label="Dismiss">&#x2715;</button>':""}
76
- `,s&&a.querySelector(".close")?.addEventListener("click",()=>{this.#r(a)}),n&&r&&a.querySelector(".action")?.addEventListener("click",()=>{r(),this.#r(a)}),a}#s(t,i){this.appendChild(t),this.#t.push(t),requestAnimationFrame(()=>{t.setAttribute("data-state","visible")}),i>0&&(t._dismissTimer=setTimeout(()=>{this.#r(t)},i)),this.dispatchEvent(new CustomEvent("toast-msg:show",{bubbles:!0,detail:{toast:t}}))}#r(t){if(!this.contains(t))return;t._dismissTimer&&clearTimeout(t._dismissTimer),t.setAttribute("data-state","hiding");let i=()=>{t.removeEventListener("animationend",i),t.remove();let s=this.#t.indexOf(t);if(s>-1&&this.#t.splice(s,1),this.#e.length>0){let{toast:n,duration:r}=this.#e.shift();this.#s(n,r)}this.dispatchEvent(new CustomEvent("toast-msg:hide",{bubbles:!0,detail:{toast:t}}))};t.addEventListener("animationend",i),setTimeout(()=>{this.contains(t)&&i()},300)}dismissAll(){this.#e=[],[...this.#t].forEach(t=>this.#r(t))}#n(){let t=this.getAttribute("duration");return t!==null?parseInt(t,10):5e3}#a(){let t=this.getAttribute("max");return t!==null?parseInt(t,10):5}#o(t){let i=document.createElement("div");return i.textContent=t,i.innerHTML}};b("toast-msg",Hi);var zi=CSS.supports("anchor-name","--x"),mh=CSS.supports("position-area","bottom"),gh=0,Vi=class extends y{#e=null;#t=null;#i=null;#s=null;setup(){this.id||(this.id=`pop-over-${++gh}`);let t=this.dataset.mode||"auto";this.hasAttribute("popover")||this.setAttribute("popover",t),this.#r(),this.#n(),this.#i=i=>{let s=i.newState==="open"?"show":"hide";this.dispatchEvent(new CustomEvent(`pop-over:${s}`,{detail:{state:i.newState},bubbles:!0,composed:!0})),!zi&&i.newState==="open"&&this.#e&&this.#o()},this.listen(this,"beforetoggle",this.#i),zi||(this.#s=()=>{this.matches(":popover-open")&&this.#e&&this.#o()},this.listen(window,"resize",this.#s),this.listen(window,"scroll",this.#s,{capture:!0,passive:!0}))}show(){this.matches(":popover-open")||this.showPopover()}hide(){this.matches(":popover-open")&&this.hidePopover()}toggle(){this.matches(":popover-open")?this.hide():this.show()}get open(){return this.matches(":popover-open")}#r(){let t=this.dataset.anchor;t?this.#e=document.getElementById(t)||document.querySelector(t):this.#e=document.querySelector(`[popovertarget="${CSS.escape(this.id)}"]`)}#n(){if(!(!this.#e||!zi)&&(this.#t=`--pop-over-anchor-${this.id}`,this.#e.style.setProperty("anchor-name",this.#t),this.style.setProperty("position-anchor",this.#t),this.setAttribute("data-anchor-name",this.#t||""),!mh)){let t=this.dataset.position||"bottom";this.#a(t)}}#a(t){let i="var(--_pop-over-offset, var(--size-xs))",s={top:{bottom:`calc(anchor(top) + ${i})`,left:"anchor(left)"},bottom:{top:`calc(anchor(bottom) + ${i})`,left:"anchor(left)"},left:{right:`calc(anchor(left) + ${i})`,top:"anchor(top)"},right:{left:`calc(anchor(right) + ${i})`,top:"anchor(top)"}},n=t.split("-")[0],r=s[n]||s.bottom;Object.entries(r).forEach(([a,o])=>this.style.setProperty(a,o))}#o(){if(!this.#e)return;let t=this.#e.getBoundingClientRect(),i=this.dataset.position||"bottom",s=this.#l(),n,r;switch(i.split("-")[0]){case"top":n=t.top-this.offsetHeight-s,r=t.left;break;case"left":n=t.top,r=t.left-this.offsetWidth-s;break;case"right":n=t.top,r=t.right+s;break;default:n=t.bottom+s,r=t.left;break}i.endsWith("-end")&&(i.startsWith("top")||i.startsWith("bottom")?r=t.right-this.offsetWidth:n=t.bottom-this.offsetHeight),this.style.position="fixed",this.style.top=`${Math.round(n)}px`,this.style.left=`${Math.round(r)}px`,this.style.margin="0"}#l(){let t={none:0,xs:4,s:8,m:16,l:24};return t[this.dataset.offset]??t.xs}};b("pop-over",Vi);var bh=new Set(["BUTTON","A","AREA"]);function Xa(e){return document.documentElement.hasAttribute("data-interest-polyfill")?!0:"interestForElement"in HTMLButtonElement.prototype?bh.has(e.tagName):!1}var Le=0,Ui=class extends y{#e=null;#t=null;#i;#s;#r=!1;#n=!1;#a;setup(){this.#r=this.getAttribute("variant")==="card",this.#r?this.#l():this.#o()}#o(){if(this.#e=this.querySelector(":scope > :not(template)"),!this.#e)return;this.#n=Xa(this.#e);let t=this.querySelector(":scope > template[data-tooltip]"),i=this.getAttribute("content"),s=this.#e.getAttribute("title");if(!t&&!i&&!s)return;s&&(this.#a=s,this.#e.removeAttribute("title"));let n=this.getAttribute("position")||"top";this.#e.id||(this.#e.id=`tooltip-trigger-${++Le}`);let r=document.createElement("pop-over");r.className="tooltip",r.setAttribute("role","tooltip"),r.dataset.mode="hint",r.dataset.anchor=this.#e.id,r.dataset.tooltipPosition=n,r.id=`tooltip-${++Le}`,t?r.innerHTML=t.innerHTML:r.textContent=i||s;let a=document.createElement("span");a.className="tooltip-arrow",a.setAttribute("aria-hidden","true"),r.appendChild(a),this.appendChild(r),this.#t=r,this.#n?(this.#e.setAttribute("interestfor",r.id),this.#e.hasAttribute("aria-describedby")||this.#e.setAttribute("aria-describedby",r.id)):(this.#e.setAttribute("aria-describedby",r.id),this.listen(this.#e,"mouseenter",this.#c),this.listen(this.#e,"mouseleave",this.#p),this.listen(this.#e,"focus",this.#m),this.listen(this.#e,"blur",this.#h),this.listen(r,"mouseenter",this.#d),this.listen(r,"mouseleave",this.#p)),this.listen(r,"pop-over:show",()=>{this.dispatchEvent(new CustomEvent("tool-tip:show",{bubbles:!0}))}),this.listen(r,"pop-over:hide",()=>{this.dispatchEvent(new CustomEvent("tool-tip:hide",{bubbles:!0}))})}#l(){this.#e=this.querySelector(":scope > [data-trigger]");let t=this.querySelector(":scope > [data-content]");if(!this.#e||!t)return;this.#n=Xa(this.#e),this.#e.id||(this.#e.id=`tooltip-trigger-${++Le}`);let i=document.createElement("pop-over");i.className="hover-card",i.dataset.mode="manual",i.dataset.anchor=this.#e.id,i.dataset.position=this.getAttribute("position")||"bottom",i.id=`hc-${++Le}`,i.appendChild(t),t.removeAttribute("data-content"),t.hidden=!1,this.appendChild(i),this.#t=i,this.#n?this.#e.setAttribute("interestfor",i.id):(this.listen(this.#e,"mouseenter",this.#c),this.listen(this.#e,"mouseleave",this.#p),this.listen(this.#e,"focus",this.#m),this.listen(this.#e,"blur",this.#p),this.listen(i,"mouseenter",this.#d),this.listen(i,"mouseleave",this.#p),this.listen(document,"keydown",this.#f)),this.listen(i,"pop-over:show",()=>{this.dispatchEvent(new CustomEvent("tool-tip:show",{bubbles:!0}))}),this.listen(i,"pop-over:hide",()=>{this.dispatchEvent(new CustomEvent("tool-tip:hide",{bubbles:!0}))})}teardown(){this.#e&&(this.#n&&this.#e.removeAttribute("interestfor"),this.#a&&(this.#e.setAttribute("title",this.#a),this.#a=void 0)),this.#t&&(this.#t.remove(),this.#t=null),clearTimeout(this.#i),clearTimeout(this.#s)}#c=()=>{clearTimeout(this.#s);let t=this.#r?300:200,i=parseInt(this.getAttribute("delay")||String(t),10);this.setState("show-pending",!0),this.#i=setTimeout(()=>{this.setState("show-pending",!1),this.show()},i)};#p=()=>{clearTimeout(this.#i),this.setState("show-pending",!1);let t=this.#r?200:100;this.#s=setTimeout(()=>this.hide(),t)};#m=()=>{clearTimeout(this.#s),this.show()};#h=()=>{clearTimeout(this.#i),this.setState("show-pending",!1),this.hide()};#d=()=>{clearTimeout(this.#s)};#f=t=>{t.key==="Escape"&&this.isVisible&&this.hide()};show(){!this.#t||this.isVisible||(typeof this.#t.show=="function"?this.#t.show():this.#t.showPopover())}hide(){!this.#t||!this.isVisible||(typeof this.#t.hide=="function"?this.#t.hide():this.#t.hidePopover())}get isVisible(){return this.#t?.matches(":popover-open")??!1}};b("tool-tip",Ui);var Wi=0,Gi=class extends y{#e;#t;#i;#s=[];#r=-1;#n=!1;#a=!1;#o=null;setup(){let t=this.querySelector(":scope > [data-trigger]")||this.querySelector(":scope > button");if(!t)return!1;this.#e=t;let i=this.querySelector('menu, ul[role="menu"]');if(!i)return!1;this.#t=i,this.#a=this.hasAttribute("hover"),this.#e.id||(this.#e.id=`dropdown-trigger-${++Wi}`);let s=this.querySelector(":scope > pop-over[data-dropdown-host]");return s?this.#i=s:(this.#i=document.createElement("pop-over"),this.#i.setAttribute("data-dropdown-host",""),this.#i.id=`dropdown-${++Wi}`,this.#i.dataset.mode=this.#a?"manual":"auto",this.#i.dataset.position=this.getAttribute("position")||"bottom-start",this.#i.dataset.anchor=this.#e.id,this.#i.appendChild(this.#t),this.appendChild(this.#i)),this.#i.dataset.mode=this.#a?"manual":"auto",this.#i.dataset.position=this.getAttribute("position")||"bottom-start",this.#i.dataset.anchor=this.#e.id,this.#t.parentElement!==this.#i&&this.#i.appendChild(this.#t),this.#e.setAttribute("aria-haspopup","menu"),this.#e.setAttribute("aria-expanded","false"),this.#t.id||(this.#t.id=`dropdown-menu-${++Wi}`),this.#e.setAttribute("aria-controls",this.#t.id),this.#t.setAttribute("role","menu"),this.#l(),this.#a?(this.listen(this,"mouseenter",this.#p),this.listen(this,"mouseleave",this.#m),this.listen(this.#e,"focus",this.#h),this.listen(this.#e,"blur",this.#d)):this.listen(this.#e,"click",this.#c),this.listen(this.#e,"keydown",this.#f),this.listen(this.#t,"keydown",this.#u),this.listen(this.#i,"pop-over:hide",this.#A),this.listen(this.#i,"pop-over:show",this.#k),this.#a&&this.listen(document,"keydown",this.#g),!0}teardown(){this.#o&&clearTimeout(this.#o)}get items(){if(!this.#t)return[];let t=[];for(let i of this.#t.querySelectorAll(":scope > li")){if(i.matches('[role="separator"]')||i.querySelector("hr")){t.push({separator:!0});continue}let s=i.querySelector('button, a, [role="menuitem"]');s&&t.push({label:s.textContent.trim().replace(/\s+/g," "),value:s.getAttribute("data-value")||void 0,href:s.tagName==="A"?s.getAttribute("href"):void 0,disabled:s.disabled||s.hasAttribute("data-disabled")||void 0})}return t}set items(t){let i=Array.isArray(t)?t:[],s=this.querySelector('menu, ul[role="menu"]');for(s||(s=document.createElement("menu"),this.appendChild(s));s.firstChild;)s.firstChild.remove();for(let n of i){let r=document.createElement("li");if(n.separator)r.setAttribute("role","separator");else{let a=n.href?document.createElement("a"):document.createElement("button");n.href&&a.setAttribute("href",n.href),n.value&&a.setAttribute("data-value",n.value),n.disabled&&(a.tagName==="BUTTON"?a.disabled=!0:a.setAttribute("data-disabled","")),a.textContent=n.label||"",r.appendChild(a)}s.appendChild(r)}this.teardown(),this.removeAttribute("data-upgraded"),this.setup(),this.dispatchEvent(new CustomEvent("drop-down:items-changed",{detail:{items:i,source:"property"},bubbles:!0}))}#l(){this.#s=Array.from(this.#t.querySelectorAll('button, a, [role="menuitem"]')).filter(t=>!t.disabled&&!t.closest('[role="separator"]')),this.#s.forEach(t=>{t.setAttribute("role","menuitem"),t.setAttribute("tabindex","-1"),t.addEventListener("click",this.#b)}),this.#t.querySelectorAll('li:empty, [role="separator"], hr').forEach(t=>{t.setAttribute("role","separator")})}#c=t=>{t.stopPropagation(),this.toggle()};#p=()=>{this.#o&&(clearTimeout(this.#o),this.#o=null,this.setState("hover-grace-pending",!1)),this.open()};#m=()=>{this.setState("hover-grace-pending",!0),this.#o=setTimeout(()=>{this.setState("hover-grace-pending",!1),this.close()},100)};#h=()=>{this.#o&&(clearTimeout(this.#o),this.#o=null,this.setState("hover-grace-pending",!1)),this.open()};#d=t=>{this.#t?.contains(t.relatedTarget)||(this.setState("hover-grace-pending",!0),this.#o=setTimeout(()=>{this.setState("hover-grace-pending",!1),this.contains(document.activeElement)||this.close()},100))};#f=t=>{switch(t.key){case"ArrowDown":case"Down":t.preventDefault(),this.open(),this.#w(0);break;case"ArrowUp":case"Up":t.preventDefault(),this.open(),this.#w(this.#s.length-1);break}};#u=t=>{switch(t.key){case"ArrowDown":case"Down":t.preventDefault(),this.#w(this.#r+1);break;case"ArrowUp":case"Up":t.preventDefault(),this.#w(this.#r-1);break;case"Home":t.preventDefault(),this.#w(0);break;case"End":t.preventDefault(),this.#w(this.#s.length-1);break;case"Tab":this.close();break;case"Enter":case" ":t.preventDefault(),this.#r>=0&&this.#s[this.#r].click();break}};#g=t=>{t.key==="Escape"&&this.#n&&(t.preventDefault(),this.close(),this.#e?.focus())};#b=t=>{t.defaultPrevented||(this.close(),this.#e?.focus())};#k=()=>{this.#n||(this.#n=!0,this.setAttribute("open",""),this.#e?.setAttribute("aria-expanded","true"),this.#r=-1,this.dispatchEvent(new CustomEvent("drop-down:open",{bubbles:!0})))};#A=()=>{this.#n&&(this.#n=!1,this.removeAttribute("open"),this.#e?.setAttribute("aria-expanded","false"),this.#r=-1,this.dispatchEvent(new CustomEvent("drop-down:close",{bubbles:!0})))};#w(t){this.#s.length!==0&&(t<0&&(t=this.#s.length-1),t>=this.#s.length&&(t=0),this.#r=t,this.#s[t].focus())}open(){this.#n||!this.#i||this.#i.show()}close(){!this.#n||!this.#i||this.#i.hide()}toggle(){this.#n?this.close():this.open()}get isOpen(){return this.#n}};b("drop-down",Gi);function Za({basePath:e,set:t,name:i}){return`${e}/${t}/${i}.svg`}function Ja(e,t=document){let i=e.getAttribute("data-icon-set");if(i)return i;let s=e.closest("[data-icon-set]")?.getAttribute("data-icon-set");return s||t.documentElement.dataset.iconSet||"lucide"}function Qa(e=document){return e.documentElement.dataset.iconPath||"/cdn/icons"}function Ki(e){let t=e.getAttribute("data-icon");if(!t){e.style.removeProperty("--vb-icon");return}let i=Za({basePath:Qa(document),set:Ja(e,document),name:t});e.style.setProperty("--vb-icon",`url("${i}")`)}function Yi(e=document){for(let t of e.querySelectorAll("[data-icon]"))Ki(t)}var to=!1;function yh(){if(to)return;to=!0,Yi(),new MutationObserver(t=>{for(let i of t)if(i.type==="attributes"){let s=i.target;s.hasAttribute&&s.hasAttribute("data-icon")&&Ki(s),i.attributeName==="data-icon-set"&&Yi(s)}else for(let s of i.addedNodes){if(s.nodeType!==1)continue;let n=s;n.hasAttribute("data-icon")&&Ki(n),Yi(n)}}).observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-icon","data-icon-set"]})}typeof document<"u"&&yh();var eo=`
63
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${ft(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:i}){let s=this.parser.parseInline(i),n=zm(e);if(n===null)return s;e=n;let r='<a href="'+e+'"';return t&&(r+=' title="'+ft(t)+'"'),r+=">"+s+"</a>",r}image({href:e,title:t,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let n=zm(e);if(n===null)return ft(i);e=n;let r=`<img src="${e}" alt="${ft(i)}"`;return t&&(r+=` title="${ft(t)}"`),r+=">",r}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:ft(e.text)}},wc=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},rt=class dc{options;renderer;textRenderer;constructor(t){this.options=t||Zt,this.options.renderer=this.options.renderer||new tn,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new wc}static parse(t,i){return new dc(i).parse(t)}static parseInline(t,i){return new dc(i).parseInline(t)}parse(t){this.renderer.parser=this;let i="";for(let s=0;s<t.length;s++){let n=t[s];if(this.options.extensions?.renderers?.[n.type]){let a=n,o=this.options.extensions.renderers[a.type].call({parser:this},a);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(a.type)){i+=o||"";continue}}let r=n;switch(r.type){case"space":{i+=this.renderer.space(r);break}case"hr":{i+=this.renderer.hr(r);break}case"heading":{i+=this.renderer.heading(r);break}case"code":{i+=this.renderer.code(r);break}case"table":{i+=this.renderer.table(r);break}case"blockquote":{i+=this.renderer.blockquote(r);break}case"list":{i+=this.renderer.list(r);break}case"checkbox":{i+=this.renderer.checkbox(r);break}case"html":{i+=this.renderer.html(r);break}case"def":{i+=this.renderer.def(r);break}case"paragraph":{i+=this.renderer.paragraph(r);break}case"text":{i+=this.renderer.text(r);break}default:{let a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return i}parseInline(t,i=this.renderer){this.renderer.parser=this;let s="";for(let n=0;n<t.length;n++){let r=t[n];if(this.options.extensions?.renderers?.[r.type]){let o=this.options.extensions.renderers[r.type].call({parser:this},r);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)){s+=o||"";continue}}let a=r;switch(a.type){case"escape":{s+=i.text(a);break}case"html":{s+=i.html(a);break}case"link":{s+=i.link(a);break}case"image":{s+=i.image(a);break}case"checkbox":{s+=i.checkbox(a);break}case"strong":{s+=i.strong(a);break}case"em":{s+=i.em(a);break}case"codespan":{s+=i.codespan(a);break}case"br":{s+=i.br(a);break}case"del":{s+=i.del(a);break}case"text":{s+=i.text(a);break}default:{let o='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}},ki=class{options;block;constructor(e){this.options=e||Zt}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?nt.lex:nt.lexInline}provideParser(e=this.block){return e?rt.parse:rt.parseInline}},ES=class{defaults=hc();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=rt;Renderer=tn;TextRenderer=wc;Lexer=nt;Tokenizer=Qs;Hooks=ki;constructor(...e){this.use(...e)}walkTokens(e,t){let i=[];for(let s of e)switch(i=i.concat(t.call(this,s)),s.type){case"table":{let n=s;for(let r of n.header)i=i.concat(this.walkTokens(r.tokens,t));for(let r of n.rows)for(let a of r)i=i.concat(this.walkTokens(a.tokens,t));break}case"list":{let n=s;i=i.concat(this.walkTokens(n.items,t));break}default:{let n=s;this.defaults.extensions?.childTokens?.[n.type]?this.defaults.extensions.childTokens[n.type].forEach(r=>{let a=n[r].flat(1/0);i=i.concat(this.walkTokens(a,t))}):n.tokens&&(i=i.concat(this.walkTokens(n.tokens,t)))}}return i}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if("renderer"in n){let r=t.renderers[n.name];r?t.renderers[n.name]=function(...a){let o=n.renderer.apply(this,a);return o===!1&&(o=r.apply(this,a)),o}:t.renderers[n.name]=n.renderer}if("tokenizer"in n){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let r=t[n.level];r?r.unshift(n.tokenizer):t[n.level]=[n.tokenizer],n.start&&(n.level==="block"?t.startBlock?t.startBlock.push(n.start):t.startBlock=[n.start]:n.level==="inline"&&(t.startInline?t.startInline.push(n.start):t.startInline=[n.start]))}"childTokens"in n&&n.childTokens&&(t.childTokens[n.name]=n.childTokens)}),s.extensions=t),i.renderer){let n=this.defaults.renderer||new tn(this.defaults);for(let r in i.renderer){if(!(r in n))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let a=r,o=i.renderer[a],c=n[a];n[a]=(...l)=>{let u=o.apply(n,l);return u===!1&&(u=c.apply(n,l)),u||""}}s.renderer=n}if(i.tokenizer){let n=this.defaults.tokenizer||new Qs(this.defaults);for(let r in i.tokenizer){if(!(r in n))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let a=r,o=i.tokenizer[a],c=n[a];n[a]=(...l)=>{let u=o.apply(n,l);return u===!1&&(u=c.apply(n,l)),u}}s.tokenizer=n}if(i.hooks){let n=this.defaults.hooks||new ki;for(let r in i.hooks){if(!(r in n))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let a=r,o=i.hooks[a],c=n[a];ki.passThroughHooks.has(r)?n[a]=l=>{if(this.defaults.async&&ki.passThroughHooksRespectAsync.has(r))return(async()=>{let d=await o.call(n,l);return c.call(n,d)})();let u=o.call(n,l);return c.call(n,u)}:n[a]=(...l)=>{if(this.defaults.async)return(async()=>{let d=await o.apply(n,l);return d===!1&&(d=await c.apply(n,l)),d})();let u=o.apply(n,l);return u===!1&&(u=c.apply(n,l)),u}}s.hooks=n}if(i.walkTokens){let n=this.defaults.walkTokens,r=i.walkTokens;s.walkTokens=function(a){let o=[];return o.push(r.call(this,a)),n&&(o=o.concat(n.call(this,a))),o}}this.defaults={...this.defaults,...s}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return nt.lex(e,t??this.defaults)}parser(e,t){return rt.parse(e,t??this.defaults)}parseMarkdown(e){return(t,i)=>{let s={...i},n={...this.defaults,...s},r=this.onError(!!n.silent,!!n.async);if(this.defaults.async===!0&&s.async===!1)return r(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return r(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return r(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(n.hooks&&(n.hooks.options=n,n.hooks.block=e),n.async)return(async()=>{let a=n.hooks?await n.hooks.preprocess(t):t,o=await(n.hooks?await n.hooks.provideLexer(e):e?nt.lex:nt.lexInline)(a,n),c=n.hooks?await n.hooks.processAllTokens(o):o;n.walkTokens&&await Promise.all(this.walkTokens(c,n.walkTokens));let l=await(n.hooks?await n.hooks.provideParser(e):e?rt.parse:rt.parseInline)(c,n);return n.hooks?await n.hooks.postprocess(l):l})().catch(r);try{n.hooks&&(t=n.hooks.preprocess(t));let a=(n.hooks?n.hooks.provideLexer(e):e?nt.lex:nt.lexInline)(t,n);n.hooks&&(a=n.hooks.processAllTokens(a)),n.walkTokens&&this.walkTokens(a,n.walkTokens);let o=(n.hooks?n.hooks.provideParser(e):e?rt.parse:rt.parseInline)(a,n);return n.hooks&&(o=n.hooks.postprocess(o)),o}catch(a){return r(a)}}}onError(e,t){return i=>{if(i.message+=`
64
+ Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error occurred:</p><pre>"+ft(i.message+"",!0)+"</pre>";return t?Promise.resolve(s):s}if(t)return Promise.reject(i);throw i}}},Xt=new ES;_.options=_.setOptions=function(e){return Xt.setOptions(e),_.defaults=Xt.defaults,Wm(_.defaults),_};_.getDefaults=hc;_.defaults=Zt;_.use=function(...e){return Xt.use(...e),_.defaults=Xt.defaults,Wm(_.defaults),_};_.walkTokens=function(e,t){return Xt.walkTokens(e,t)};_.parseInline=Xt.parseInline;_.Parser=rt;_.parser=rt.parse;_.Renderer=tn;_.TextRenderer=wc;_.Lexer=nt;_.lexer=nt.lex;_.Tokenizer=Qs;_.Hooks=ki;_.parse=_;n_=_.options,r_=_.setOptions,a_=_.use,o_=_.walkTokens,c_=_.parseInline,l_=rt.parse,u_=nt.lex});var TS={};function Ac(e,t){return e.replaceChildren(t.trim()?se(_.parseInline(t,{gfm:!0})):""),e.innerHTML}function sg(e,t,i){e.dispatchEvent(new CustomEvent("markdown-editable:change",{bubbles:!0,detail:{value:t,html:i}}))}function SS(e){e.contentEditable="true",e.setAttribute("role","textbox"),e.setAttribute("aria-multiline","false");let t=e.textContent.trim();e.dataset.markdownValue=t,t&&Ac(e,t);let i=!1;e.addEventListener("compositionstart",()=>{i=!0}),e.addEventListener("compositionend",()=>{i=!1}),e.addEventListener("focus",()=>{if(i)return;let s=e.dataset.markdownValue||"";e.textContent=s,e.setAttribute("data-md-editing",""),requestAnimationFrame(()=>{let n=window.getSelection();n&&e.childNodes.length&&n.collapse(e.childNodes[e.childNodes.length-1],e.textContent.length)})}),e.addEventListener("blur",()=>{if(i)return;let s=e.textContent.trim(),n=e.dataset.markdownValue;e.dataset.markdownValue=s,e.removeAttribute("data-md-editing"),s?Ac(e,s):e.textContent="",s!==n&&sg(e,s,e.innerHTML)})}function xS(e){let t=e.dataset.preview?document.getElementById(e.dataset.preview):null;t||(t=document.createElement("output"),t.className="md-editable-preview",t.setAttribute("aria-label","Markdown preview"),e.after(t));function i(){return t?Ac(t,e.value):""}e.addEventListener("blur",()=>{let s=i();sg(e,e.value,s)}),e.value.trim()&&i()}function CS(e){if(e.hasAttribute("data-markdown-editable-init"))return;e.setAttribute("data-markdown-editable-init","");let t=e.tagName;t==="TEXTAREA"||t==="INPUT"?xS(e):SS(e)}var kS,ng=w(()=>{D();ig();Rt();kS="[data-markdown-editable]";C(kS,CS)});function rg(e=document,t={}){let i=t.language||"mermaid",s=t.type||"mermaid",n=Array.isArray(t.primingSvgs)?t.primingSvgs:null,r=`pre > code.language-${i}`,a=[],o=0;for(let c of e.querySelectorAll(r)){let l=c.parentElement;if(!l||l.parentElement?.tagName.toLowerCase()==="diagram-wc")continue;let u=l.parentNode,d=l.nextSibling,h=document.createElement("diagram-wc");if(h.setAttribute("type",s),h.appendChild(l),n&&n[o]){let f=document.createElement("figure");f.className="dwc-figure",f.innerHTML=n[o],h.appendChild(f)}u?.insertBefore(h,d),a.push(h),o++}return a}var ag=w(()=>{});var _S={};function NS(e){return!e||!e.hasAttribute?!1:e.hasAttribute("data-auto-mermaid")?!0:!!e.closest?.("markdown-editor[data-auto-mermaid]")}function cg(e){let t=Sc.get(e);return t||(t=[],Sc.set(e,t)),t}function MS(e,t){let i=Ec.get(e);i&&clearTimeout(i);let s=setTimeout(()=>{Ec.delete(e),lg(e,t||e)},LS);Ec.set(e,s)}function lg(e,t){let i=cg(e),s=rg(t,{primingSvgs:i});s.forEach((n,r)=>{n.dataset.bridgeIndex=String(r)}),i.length>s.length&&(i.length=s.length),i.length>og&&(i.length=og)}var LS,og,Ec,Sc,kc,ug=w(()=>{ag();LS=250,og=16,Ec=new WeakMap,Sc=new WeakMap;kc=typeof document<"u"?document.documentElement:null;if(kc&&!kc.hasAttribute("data-vb-mermaid-bridge-init")){kc.setAttribute("data-vb-mermaid-bridge-init",""),document.addEventListener("markdown-viewer:rendered",t=>{let i=t.target;if(!NS(i))return;let s=t.detail?.node||i;MS(i,s)}),document.addEventListener("diagram-wc:ready",t=>{let i=t.target,s=i.closest?.("markdown-viewer");if(!s)return;let n=parseInt(i.dataset.bridgeIndex||"",10);if(Number.isNaN(n))return;let r=cg(s);r[n]=t.detail?.svg||r[n]}),window.addEventListener("vb:theme-change",()=>{for(let t of document.querySelectorAll("markdown-viewer")){let i=Sc.get(t);i&&(i.length=0)}});let e="markdown-viewer[data-auto-mermaid], markdown-editor[data-auto-mermaid] markdown-viewer";for(let t of document.querySelectorAll(e))lg(t,t)}});function DS(e){let t=0;for(let i=0;i<e.length;i++)t=e.charCodeAt(i)+((t<<5)-t);return t}function IS(e){let t=nn[0],i=Math.abs(e-t);for(let s=1;s<nn.length;s++){let n=Math.abs(e-nn[s]);n<i&&(t=nn[s],i=n)}return t}function dg(e,t=128){let i=DS(String(e)),s=(i%100+100)%100,n=(i>>>16&1)===0?"female":"male",r=IS(t);return`${$S}/${n}/${r}/${s}.jpg`}var $S,nn,hg=w(()=>{$S="https://cdn.jsdelivr.net/gh/faker-js/assets-person-portrait",nn=[32,64,128,256,512]});var mg={};T(mg,{initMockMedia:()=>Tc});function pg(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function fg(e,t,i){let s=Math.min(Math.max(e/15,12),32),n=e/2,r=t/2,a=i?pg(i):"",o=a?`<text x="${n}" y="${r}" text-anchor="middle" dominant-baseline="middle" font-family="system-ui,sans-serif" font-size="${s}" fill="#6b7280">${a}</text>`:"",c=`<svg xmlns="http://www.w3.org/2000/svg" width="${e}" height="${t}" viewBox="0 0 ${e} ${t}"><rect width="${e}" height="${t}" fill="#f3f4f6"/><line x1="0" y1="0" x2="${e}" y2="${t}" stroke="#d1d5db"/><line x1="${e}" y1="0" x2="0" y2="${t}" stroke="#d1d5db"/>${o}</svg>`;return`data:image/svg+xml,${encodeURIComponent(c)}`}function FS(e){let t=PS[e.dataset.mock],i=Number(e.getAttribute("width"))||t?.w||400,s=Number(e.getAttribute("height"))||t?.h||300;return{w:i,h:s}}function Cc(e){if(e.hasAttribute("data-mock-init"))return;e.setAttribute("data-mock-init","");let t=e.tagName.toLowerCase(),i=e.dataset.mock,{w:s,h:n}=FS(e);if(t==="img"){if(i==="photo"){let r=e.dataset.seed,a=r?`https://picsum.photos/seed/${encodeURIComponent(r)}/${s}/${n}`:`https://picsum.photos/${s}/${n}`;e.getAttribute("src")||(e.setAttribute("src",a),e.setAttribute("loading","lazy"))}else if(i==="placehold"){if(!e.getAttribute("src")){let r=e.getAttribute("alt")||"",a=r?`?text=${encodeURIComponent(r)}`:"";e.setAttribute("src",`https://placehold.co/${s}x${n}${a}`),e.setAttribute("loading","lazy")}}else if(i==="portrait"||i==="profile"||i==="headshot"||i==="avatar"){if(!e.getAttribute("src")){let r=e.dataset.seed||e.getAttribute("alt")||String(RS++);e.setAttribute("src",dg(r,Math.max(s,n))),e.setAttribute("loading","lazy")}}else if(!e.getAttribute("src")){let r=e.getAttribute("alt")||`${s}\xD7${n}`;e.setAttribute("src",fg(s,n,r))}}else if(t==="video"){if(!e.getAttribute("poster")){let r=e.getAttribute("alt")||e.getAttribute("title")||"Video";e.setAttribute("poster",fg(s,n,`\u25B6 ${r}`))}}else if(t==="iframe"){if(!e.getAttribute("src")&&!e.getAttribute("srcdoc")){let r=e.getAttribute("title")||"Embedded content";e.setAttribute("srcdoc",`<!DOCTYPE html><html><body style="display:grid;place-items:center;height:100vh;margin:0;background:#f3f4f6;font-family:system-ui,sans-serif;color:#6b7280"><p>${pg(r)}</p></body></html>`)}}else t==="canvas"&&OS(e,s,n)}function OS(e,t,i){e.width=t,e.height=i;let s=e.getContext("2d");if(!s)return;s.fillStyle="#f3f4f6",s.fillRect(0,0,t,i),s.strokeStyle="#d1d5db",s.lineWidth=1,s.beginPath(),s.moveTo(0,0),s.lineTo(t,i),s.moveTo(t,0),s.lineTo(0,i),s.stroke();let n=e.getAttribute("aria-label")||e.getAttribute("title")||`${t}\xD7${i}`,r=Math.min(Math.max(t/15,12),32);s.fillStyle="#6b7280",s.font=`${r}px system-ui, sans-serif`,s.textAlign="center",s.textBaseline="middle",s.fillText(n,t/2,i/2)}function Tc(e=document){e.querySelectorAll(xc).forEach(Cc)}var xc,RS,PS,qS,gg=w(()=>{hg();xc=":is(img, video, iframe, canvas)[data-mock]",RS=0,PS={hero:{w:1200,h:400},card:{w:400,h:225},avatar:{w:48,h:48},product:{w:400,h:400},thumbnail:{w:150,h:150},logo:{w:200,h:50},og:{w:1200,h:630},banner:{w:728,h:90},portrait:{w:128,h:128},profile:{w:128,h:128},headshot:{w:256,h:256}};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Tc()):Tc();qS=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(xc)&&Cc(s),s.querySelectorAll(xc).forEach(n=>Cc(n))}});qS.observe(document.documentElement,{childList:!0,subtree:!0})});var yg={};T(yg,{initLorem:()=>_c});function xi(e){let t=e.closest("[lang]")?.getAttribute("lang")?.split("-")[0]?.toLowerCase();return t&&VS[t]||"latin"}function US(e){return e.split(/(?<=[.!?\u3002])\s*/).filter(Boolean)}function Nc(e){return e==="cjk"}function WS(e,t,i){if(Nc(i)){let r=[...e],a=[];for(let o=0;o<t;o++)a.push(r[o%r.length]);return a.join("")}let s=e.split(/\s+/),n=[];for(let r=0;r<t;r++)n.push(s[r%s.length]);return n.join(" ")}function GS(e,t){let i=(e||"").trim();if(bg[i])return{mode:"words",count:Nc(i)?80:50,corpus:i};if(i==="heading")return{mode:"words",count:5,corpus:xi(t)};let s=i.match(/^(\d+)\s+sentences?$/i);if(s)return{mode:"sentences",count:Number(s[1]),corpus:xi(t)};let n=i.match(/^(\d+)\s+items?$/i);if(n)return{mode:"items",count:Number(n[1]),corpus:xi(t)};let r=i.match(/^(\d+)$/);if(r)return{mode:"words",count:Number(r[1]),corpus:xi(t)};let a=xi(t);return{mode:"words",count:Nc(a)?80:50,corpus:a}}function KS(e){let t=bg[e.corpus],i=US(t);if(e.mode==="sentences"){let s=[];for(let n=0;n<e.count;n++)s.push(i[n%i.length]);return s.join(" ")}if(e.mode==="items"){let s=[];for(let n=0;n<e.count;n++)s.push(i[n%i.length]);return s}return WS(t,e.count,e.corpus)}function Mc(e){if(e.hasAttribute("data-lorem-init"))return;e.setAttribute("data-lorem-init","");let t=GS(e.dataset.lorem??"",e),i=KS(t),s=e.tagName.toLowerCase();t.mode==="items"&&Array.isArray(i)&&(s==="ul"||s==="ol")?e.innerHTML=i.map(n=>`<li>${n}</li>`).join(""):Array.isArray(i)?e.textContent=i.join(" "):e.textContent=i,e.setAttribute("data-lorem-filled",""),e.setAttribute("translate","no")}function _c(e=document){e.querySelectorAll(Lc).forEach(Mc)}var Lc,BS,jS,HS,zS,bg,VS,YS,vg=w(()=>{Lc="[data-lorem]",BS="Lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident sunt in culpa qui officia deserunt mollit anim id est laborum. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium totam rem aperiam eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est qui dolorem ipsum quia dolor sit amet consectetur adipisci velit sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam quis nostrum exercitationem ullam corporis suscipit laboriosam nisi ut aliquid ex ea commodi consequatur. Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur vel illum qui dolorem eum fugiat quo voluptas nulla pariatur. At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident similique sunt in culpa qui officia deserunt mollitia animi id est laborum et dolorum fuga.",jS="\u3053\u308C\u306F\u30C0\u30DF\u30FC\u30C6\u30AD\u30B9\u30C8\u3067\u3059\u3002\u30EC\u30A4\u30A2\u30A6\u30C8\u306E\u78BA\u8A8D\u306B\u4F7F\u7528\u3057\u307E\u3059\u3002\u5B9F\u969B\u306E\u30B3\u30F3\u30C6\u30F3\u30C4\u306F\u5F8C\u3067\u8FFD\u52A0\u3055\u308C\u307E\u3059\u3002\u3053\u306E\u6587\u7AE0\u306F\u30D7\u30EC\u30FC\u30B9\u30DB\u30EB\u30C0\u30FC\u3068\u3057\u3066\u6A5F\u80FD\u3057\u307E\u3059\u3002\u30C7\u30B6\u30A4\u30F3\u306E\u30D7\u30ED\u30C8\u30BF\u30A4\u30D7\u4F5C\u6210\u4E2D\u306B\u3001\u30C6\u30AD\u30B9\u30C8\u304C\u5FC5\u8981\u306A\u5834\u6240\u306B\u914D\u7F6E\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u65E5\u672C\u8A9E\u306E\u6587\u5B57\u306F\u7D04\u5343\u5E74\u524D\u306B\u4E2D\u56FD\u304B\u3089\u4F1D\u308F\u308A\u307E\u3057\u305F\u3002\u73FE\u4EE3\u306E\u65E5\u672C\u8A9E\u306F\u6F22\u5B57\u3001\u3072\u3089\u304C\u306A\u3001\u30AB\u30BF\u30AB\u30CA\u306E\u4E09\u7A2E\u985E\u306E\u6587\u5B57\u3092\u4F7F\u7528\u3057\u307E\u3059\u3002\u30A6\u30A7\u30D6\u30C7\u30B6\u30A4\u30F3\u3067\u306F\u3001\u30C6\u30AD\u30B9\u30C8\u306E\u8AAD\u307F\u3084\u3059\u3055\u3068\u30EC\u30A4\u30A2\u30A6\u30C8\u306E\u30D0\u30E9\u30F3\u30B9\u304C\u91CD\u8981\u3067\u3059\u3002",HS="\u0647\u0630\u0627 \u0646\u0635 \u062A\u062C\u0631\u064A\u0628\u064A \u064A\u0633\u062A\u062E\u062F\u0645 \u0644\u0639\u0631\u0636 \u0627\u0644\u062A\u0635\u0645\u064A\u0645. \u064A\u0645\u0643\u0646 \u0627\u0633\u062A\u0628\u062F\u0627\u0644\u0647 \u0628\u0627\u0644\u0645\u062D\u062A\u0648\u0649 \u0627\u0644\u0641\u0639\u0644\u064A \u0644\u0627\u062D\u0642\u0627. \u0627\u0644\u063A\u0631\u0636 \u0645\u0646\u0647 \u0647\u0648 \u0625\u0638\u0647\u0627\u0631 \u0643\u064A\u0641 \u0633\u064A\u0628\u062F\u0648 \u0627\u0644\u0646\u0635 \u0641\u064A \u0627\u0644\u0645\u0648\u0642\u0639. \u062A\u0635\u0645\u064A\u0645 \u0627\u0644\u0648\u064A\u0628 \u064A\u062A\u0637\u0644\u0628 \u0646\u0635\u0648\u0635\u0627 \u0646\u0627\u0626\u0628\u0629 \u0644\u0645\u0644\u0621 \u0627\u0644\u0641\u0631\u0627\u063A\u0627\u062A. \u0647\u0630\u0627 \u0627\u0644\u0646\u0635 \u0647\u0648 \u0628\u062F\u064A\u0644 \u0639\u0631\u0628\u064A \u0644\u0646\u0635 \u0644\u0648\u0631\u064A\u0645 \u0625\u064A\u0628\u0633\u0648\u0645 \u0627\u0644\u0644\u0627\u062A\u064A\u0646\u064A. \u064A\u0633\u0627\u0639\u062F \u0641\u064A \u0627\u062E\u062A\u0628\u0627\u0631 \u0627\u0644\u062A\u062E\u0637\u064A\u0637\u0627\u062A \u0648\u0627\u0644\u062E\u0637\u0648\u0637 \u0648\u0627\u0644\u0627\u062A\u062C\u0627\u0647 \u0645\u0646 \u0627\u0644\u064A\u0645\u064A\u0646 \u0625\u0644\u0649 \u0627\u0644\u064A\u0633\u0627\u0631. \u0627\u0644\u0644\u063A\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0645\u0646 \u0623\u0643\u062B\u0631 \u0627\u0644\u0644\u063A\u0627\u062A \u0627\u0646\u062A\u0634\u0627\u0631\u0627 \u0641\u064A \u0627\u0644\u0639\u0627\u0644\u0645.",zS="\u042D\u0442\u043E \u043F\u0440\u0438\u043C\u0435\u0440 \u0442\u0435\u043A\u0441\u0442\u0430 \u0434\u043B\u044F \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u043C\u0430\u043A\u0435\u0442\u0430. \u041E\u043D \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u043A\u0430\u043A \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C \u0434\u043B\u044F \u043F\u0440\u043E\u0442\u043E\u0442\u0438\u043F\u043E\u0432. \u0420\u0435\u0430\u043B\u044C\u043D\u044B\u0439 \u043A\u043E\u043D\u0442\u0435\u043D\u0442 \u0431\u0443\u0434\u0435\u0442 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D \u043F\u043E\u0437\u0436\u0435. \u0412\u0435\u0431-\u0434\u0438\u0437\u0430\u0439\u043D \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0442\u0435\u043A\u0441\u0442\u043E\u0432\u044B\u0445 \u0437\u0430\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u0435\u0439 \u0434\u043B\u044F \u043F\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0433\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u043C\u0430\u043A\u0435\u0442\u043E\u0432. \u042D\u0442\u043E\u0442 \u0442\u0435\u043A\u0441\u0442 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0440\u0443\u0441\u0441\u043A\u043E\u044F\u0437\u044B\u0447\u043D\u043E\u0439 \u0430\u043B\u044C\u0442\u0435\u0440\u043D\u0430\u0442\u0438\u0432\u043E\u0439 \u043B\u0430\u0442\u0438\u043D\u0441\u043A\u043E\u043C\u0443 \u0442\u0435\u043A\u0441\u0442\u0443. \u041A\u0438\u0440\u0438\u043B\u043B\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0448\u0440\u0438\u0444\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442\u0441\u044F \u043C\u043D\u043E\u0433\u0438\u043C\u0438 \u044F\u0437\u044B\u043A\u0430\u043C\u0438 \u043C\u0438\u0440\u0430. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043A\u0430\u043A \u0432\u0430\u0448 \u0434\u0438\u0437\u0430\u0439\u043D \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442 \u0441 \u044D\u0442\u0438\u043C \u043D\u0430\u0431\u043E\u0440\u043E\u043C \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432.",bg={latin:BS,cjk:jS,arabic:HS,cyrillic:zS},VS={ja:"cjk",zh:"cjk",ko:"cjk",ar:"arabic",fa:"arabic",ur:"arabic",he:"arabic",ru:"cyrillic",uk:"cyrillic",bg:"cyrillic",sr:"cyrillic"};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>_c()):_c();YS=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Lc)&&Mc(s),s.querySelectorAll(Lc).forEach(n=>Mc(n))}});YS.observe(document.documentElement,{childList:!0,subtree:!0})});var Ag={};T(Ag,{initChapterLists:()=>Dc});function Dc(e=document){e.querySelectorAll($c).forEach(t=>Ic(t))}function Ic(e){if(e.hasAttribute("data-chapter-list-init"))return;e.setAttribute("data-chapter-list-init","");let t=e.parentElement;if(!t||t.tagName!=="VIDEO")return;let i=e.track;i.mode==="disabled"&&(i.mode="hidden"),e.readyState>=2?wg(t,i,e):e.addEventListener("load",()=>wg(t,i,e),{once:!0})}function wg(e,t,i){let s=t.cues;if(!s||s.length===0)return;let n=document.createElement("nav");n.setAttribute("aria-label",i.getAttribute("data-label")||"Video chapters"),n.classList.add("chapter-list");let r=document.createElement("ol");for(let o of s){let c=document.createElement("li"),l=document.createElement("button");l.type="button";let u=document.createElement("span");u.textContent=o.text;let d=document.createElement("time");d.textContent=XS(o.startTime),d.setAttribute("datetime",ZS(o.startTime)),l.appendChild(u),l.appendChild(d),l.addEventListener("click",()=>{e.currentTime=o.startTime,e.paused&&e.play()?.catch(()=>{})}),c.appendChild(l),r.appendChild(c)}n.appendChild(r),e.insertAdjacentElement("afterend",n);let a=null;e.addEventListener("timeupdate",()=>{let o=e.currentTime,c=-1;for(let u=0;u<s.length;u++)if(o>=s[u].startTime&&o<s[u].endTime){c=u;break}let l=c>=0?r.children[c]:null;l!==a&&(a&&(a.removeAttribute("data-active"),a.querySelector("button")?.removeAttribute("aria-current")),a=l,a&&(a.setAttribute("data-active",""),a.querySelector("button")?.setAttribute("aria-current","true")))})}function XS(e){let t=Math.floor(e/3600),i=Math.floor(e%3600/60),s=Math.floor(e%60);return t>0?`${t}:${String(i).padStart(2,"0")}:${String(s).padStart(2,"0")}`:`${i}:${String(s).padStart(2,"0")}`}function ZS(e){let t=Math.floor(e/3600),i=Math.floor(e%3600/60),s=Math.floor(e%60);return`PT${t?t+"H":""}${i?i+"M":""}${s}S`}var $c,JS,Eg=w(()=>{$c='track[kind="chapters"][data-chapter-list]';document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Dc()):Dc();JS=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches?.($c)&&Ic(s),s.querySelectorAll?.($c).forEach(n=>Ic(n))}});JS.observe(document.documentElement,{childList:!0,subtree:!0})});pn();var tl=[{id:"default",name:"Default",swatchBg:"#3b82f6",seeds:{}},{id:"ocean",name:"Ocean",swatchBg:"#0891b2",seeds:{"--hue-primary":200,"--hue-secondary":180,"--hue-accent":45,"--lightness-primary":"50%","--chroma-primary":.15,"--lightness-secondary":"45%","--chroma-secondary":.1,"--lightness-accent":"70%","--chroma-accent":.15},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.12}},{id:"forest",name:"Forest",swatchBg:"#059669",seeds:{"--hue-primary":145,"--hue-secondary":90,"--hue-accent":30,"--lightness-primary":"45%","--chroma-primary":.15,"--lightness-secondary":"55%","--chroma-secondary":.12,"--lightness-accent":"65%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"58%","--chroma-primary":.12}},{id:"sunset",name:"Sunset",swatchBg:"#ea580c",seeds:{"--hue-primary":25,"--hue-secondary":0,"--hue-accent":280,"--lightness-primary":"57%","--chroma-primary":.2,"--lightness-secondary":"55%","--chroma-secondary":.18,"--lightness-accent":"55%","--chroma-accent":.18},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.16}},{id:"rose",name:"Rose",swatchBg:"#e11d48",seeds:{"--hue-primary":350,"--hue-secondary":330,"--hue-accent":200,"--lightness-primary":"55%","--chroma-primary":.18,"--lightness-secondary":"50%","--chroma-secondary":.14,"--lightness-accent":"60%","--chroma-accent":.12},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.14}},{id:"lavender",name:"Lavender",swatchBg:"#a855f7",seeds:{"--hue-primary":280,"--hue-secondary":300,"--hue-accent":60,"--lightness-primary":"55%","--chroma-primary":.14,"--lightness-secondary":"50%","--chroma-secondary":.12,"--lightness-accent":"70%","--chroma-accent":.14},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.12}},{id:"coral",name:"Coral",swatchBg:"#f97316",seeds:{"--hue-primary":15,"--hue-secondary":25,"--hue-accent":180,"--lightness-primary":"57%","--chroma-primary":.18,"--lightness-secondary":"55%","--chroma-secondary":.15,"--lightness-accent":"55%","--chroma-accent":.12},seedsDark:{"--lightness-primary":"65%","--chroma-primary":.15}},{id:"slate",name:"Slate",swatchBg:"#64748b",seeds:{"--hue-primary":220,"--hue-secondary":210,"--hue-accent":45,"--lightness-primary":"48%","--chroma-primary":.1,"--lightness-secondary":"45%","--chroma-secondary":.06,"--lightness-accent":"68%","--chroma-accent":.15},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.08}},{id:"emerald",name:"Emerald",swatchBg:"#10b981",seeds:{"--hue-primary":160,"--hue-secondary":140,"--hue-accent":30,"--lightness-primary":"50%","--chroma-primary":.15,"--lightness-secondary":"48%","--chroma-secondary":.12,"--lightness-accent":"65%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"60%","--chroma-primary":.12}},{id:"amber",name:"Amber",swatchBg:"#f59e0b",seeds:{"--hue-primary":45,"--hue-secondary":30,"--hue-accent":240,"--lightness-primary":"56%","--chroma-primary":.16,"--lightness-secondary":"55%","--chroma-secondary":.15,"--lightness-accent":"52%","--chroma-accent":.14},seedsDark:{"--lightness-primary":"68%","--chroma-primary":.14}},{id:"indigo",name:"Indigo",swatchBg:"#6366f1",seeds:{"--hue-primary":250,"--hue-secondary":270,"--hue-accent":35,"--lightness-primary":"48%","--chroma-primary":.18,"--lightness-secondary":"45%","--chroma-secondary":.14,"--lightness-accent":"68%","--chroma-accent":.16},seedsDark:{"--lightness-primary":"62%","--chroma-primary":.14}}],el=[{id:"default",name:"Default",hue:210,shape:"balanced",character:"The default",swatchBg:"#3b82f6",tier:"core"},{id:"modern",name:"Modern",hue:270,shape:"rounded",character:"Vibrant & elevated",swatchBg:"#6366f1",tier:"core"},{id:"minimal",name:"Minimal",hue:240,shape:"sharp",character:"Clean & flat",swatchBg:"#71717a",tier:"core"},{id:"classic",name:"Classic",hue:220,shape:"subtle",character:"Serif & elegant",swatchBg:"#92400e",tier:"core"}],mn=[{id:"swiss",name:"Swiss",icon:"grid-3x3",character:"Precision grid",swatchBg:"#ff3e00",swatchFg:"white",tier:"showcase",category:"Design"},{id:"brutalist",name:"Brutalist",icon:"square",character:"Raw, industrial",swatchBg:"#1a1a1a",swatchFg:"#f5f5f5",tier:"showcase",category:"Design"},{id:"art-deco",name:"Art Deco",icon:"crown",character:"1920s luxury",swatchBg:"#1A1A1A",swatchFg:"#C9A84C",tier:"showcase",category:"Design"},{id:"editorial",name:"Editorial",icon:"newspaper",character:"Magazine elegance",swatchBg:"#1a1a1a",swatchFg:"#c9a227",tier:"showcase",category:"Content"},{id:"genai",name:"GenAI",icon:"sparkles",character:"AI aesthetic",swatchBg:"#1a0a2e",swatchFg:"#a855f7",tier:"showcase",category:"Modern"},{id:"glassmorphism",name:"Glass",icon:"glass-water",character:"Frosted surfaces",swatchBg:"#667eea",swatchFg:"#ffffff",tier:"showcase",category:"Modern"},{id:"startup",name:"Startup",icon:"rocket",character:"SaaS energy",swatchBg:"#4f46e5",swatchFg:"#ffffff",tier:"showcase",category:"Modern"},{id:"organic",name:"Organic",icon:"leaf",character:"Natural, handcrafted",swatchBg:"#2d5016",swatchFg:"#faf5e6",tier:"showcase",category:"Creative"},{id:"rough",name:"Rough",icon:"pencil",character:"Hand-drawn sketch",swatchBg:"#f5f0e8",swatchFg:"#3a3a3a",tier:"showcase",category:"Creative"},{id:"cyber",name:"Cyber",icon:"zap",character:"Neon futuristic",swatchBg:"#0a0a1a",swatchFg:"#00ff88",tier:"showcase",category:"Creative"},{id:"journal",name:"Journal",icon:"notebook-pen",character:"Dot-grid bullet journal",swatchBg:"#f3ecdc",swatchFg:"#27313f",tier:"showcase",category:"Creative"},{id:"vaporwave",name:"Vaporwave",icon:"radio",character:"Neon dreamy",swatchBg:"#2b0040",swatchFg:"#ff6ad5",tier:"showcase",category:"Aesthetic"},{id:"neumorphism",name:"Neumorph",icon:"circle",character:"Soft embossed",swatchBg:"#e0e0e0",swatchFg:"#a0a0a0",tier:"showcase",category:"Aesthetic"},{id:"bauhaus",name:"Bauhaus",icon:"shapes",character:"Geometric",swatchBg:"#F1FAEE",swatchFg:"#E63946",tier:"showcase",category:"Aesthetic"},{id:"claymorphism",name:"Clay",icon:"circle-dot",character:"Puffy 3D",swatchBg:"#f0f0f5",swatchFg:"#FF6B9D",tier:"showcase",category:"Aesthetic"},{id:"alpha1999",name:"Alpha1999",icon:"orbit",character:"Space retro-fi",swatchBg:"#0a0a14",swatchFg:"#d4880f",tier:"showcase",category:"Signature"},{id:"super2026",name:"Super2026",icon:"triangle",character:"Supergraphic bold",swatchBg:"#f5f0e6",swatchFg:"#c23616",tier:"showcase",category:"Signature"},{id:"magna",name:"Magna",icon:"orbit",character:"Odyssey 2 retro",swatchBg:"#0d0b14",swatchFg:"#f97316",tier:"showcase",category:"Signature"},{id:"win9x",name:"Win9x",icon:"monitor",character:"Classic desktop",swatchBg:"#008080",swatchFg:"#c0c0c0",tier:"showcase",category:"OS Styles"},{id:"nes",name:"NES",icon:"joystick",character:"Console pixels",swatchBg:"#bcbcbc",swatchFg:"#e40521",tier:"showcase",category:"OS Styles"},{id:"8bit",name:"8-Bit",icon:"gamepad-2",character:"Retro pixel art",swatchBg:"#000080",swatchFg:"#ffff00",tier:"showcase",category:"OS Styles"}],gn=[{id:"nord",name:"Nord",icon:"snowflake",character:"Arctic calm",swatchBg:"#2E3440",swatchFg:"#81A1C1",tier:"community",category:"Editor Palettes"},{id:"solarized",name:"Solarized",icon:"sun-dim",character:"Engineered precision",swatchBg:"#002B36",swatchFg:"#268BD2",tier:"community",category:"Editor Palettes"},{id:"dracula",name:"Dracula",icon:"moon-star",character:"Dark elegance",swatchBg:"#282A36",swatchFg:"#BD93F9",tier:"community",category:"Editor Palettes"},{id:"catppuccin-mocha",name:"Catppuccin",icon:"coffee",character:"Warm pastels",swatchBg:"#1E1E2E",swatchFg:"#CBA6F7",tier:"community",category:"Editor Palettes"},{id:"catppuccin-latte",name:"Ctp Latte",icon:"coffee",character:"Cozy daytime",swatchBg:"#eff1f5",swatchFg:"#8839ef",tier:"community",category:"Editor Palettes"},{id:"catppuccin-frappe",name:"Ctp Frapp\xE9",icon:"coffee",character:"Cool twilight",swatchBg:"#303446",swatchFg:"#ca9ee6",tier:"community",category:"Editor Palettes"},{id:"catppuccin-macchiato",name:"Ctp Macchiato",icon:"coffee",character:"Deep blue",swatchBg:"#24273a",swatchFg:"#c6a0f6",tier:"community",category:"Editor Palettes"},{id:"gruvbox",name:"Gruvbox",icon:"palette",character:"Retro warmth",swatchBg:"#282828",swatchFg:"#ebdbb2",tier:"community",category:"Editor Palettes"},{id:"tokyo-night",name:"Tokyo Night",icon:"moon",character:"Night-owl vibes",swatchBg:"#1a1b26",swatchFg:"#7aa2f7",tier:"community",category:"Editor Palettes"},{id:"rose-pine",name:"Ros\xE9 Pine",icon:"flower-2",character:"Muted elegance",swatchBg:"#191724",swatchFg:"#ebbcba",tier:"community",category:"Editor Palettes"},{id:"cottagecore",name:"Cottagecore",icon:"flower-2",character:"Pastoral",swatchBg:"#fdf8f0",swatchFg:"#7d8c6d",tier:"community",category:"Niche"},{id:"terminal",name:"Terminal",icon:"terminal",character:"Retro CRT",swatchBg:"#0d1117",swatchFg:"#00ff00",tier:"community",category:"Niche"},{id:"clinical",name:"Clinical",icon:"heart-pulse",character:"Sterile precision",swatchBg:"#ffffff",swatchFg:"#0077b6",tier:"community",category:"Industry"},{id:"financial",name:"Financial",icon:"landmark",character:"Navy + gold",swatchBg:"#1b2a4a",swatchFg:"#c9a84c",tier:"community",category:"Industry"},{id:"government",name:"Government",icon:"shield",character:"Official",swatchBg:"#002868",swatchFg:"#bf0a30",tier:"community",category:"Industry"},{id:"dawn",name:"Dawn",icon:"sunrise",character:"Golden morning",swatchBg:"#fef3e2",swatchFg:"#d4a574",tier:"community",category:"Mood/Time"},{id:"dusk",name:"Dusk",icon:"sunset",character:"Twilight",swatchBg:"#1a1b2e",swatchFg:"#e5a858",tier:"community",category:"Mood/Time"},{id:"midnight",name:"Midnight",icon:"moon",character:"Deep night",swatchBg:"#0d1117",swatchFg:"#58a6ff",tier:"community",category:"Mood/Time"},{id:"high-noon",name:"High Noon",icon:"sun",character:"Maximum bright",swatchBg:"#ffffff",swatchFg:"#e63946",tier:"community",category:"Mood/Time"}],il=[{id:"kawaii",name:"Kawaii",icon:"heart",character:"Cute aesthetic",swatchBg:"#ffb7c5",swatchFg:"#ff69b4",tier:"showcase",category:"Packs"},{id:"memphis",name:"Memphis",icon:"star",character:"Bold patterns",swatchBg:"#FFF8F0",swatchFg:"#d03040",tier:"showcase",category:"Packs"}];var fC=[...mn,...gn],pC=[...el,...mn,...gn,...il],Dt=e=>mn.filter(t=>t.category===e),sl=[{label:"Style",themes:el,tier:"core"},{label:"Design",themes:Dt("Design"),tier:"showcase"},{label:"Content",themes:Dt("Content"),tier:"showcase"},{label:"Modern",themes:Dt("Modern"),tier:"showcase"},{label:"Creative",themes:Dt("Creative"),tier:"showcase"},{label:"Aesthetic",themes:Dt("Aesthetic"),tier:"showcase"},{label:"Signature",themes:Dt("Signature"),tier:"showcase"},{label:"OS Styles",themes:Dt("OS Styles"),tier:"showcase"},{label:"Packs",themes:il,tier:"showcase"},{label:"More Themes",themes:gn,tier:"community"}];ot();var Mi="theme",_i="current",dl=2,Di={accent:"data-accent",borderStyle:"data-border-style",iconSet:"data-icon-set",fluid:"data-fluid",backdrop:"data-backdrop",backdropChrome:"data-backdrop-chrome"},tt={mode:"auto",brand:"default",accent:null,borderStyle:null,iconSet:null,fluid:null,backdrop:null,backdropChrome:null,pageBgType:"",pageBgColor:"",pageBgGradStart:"",pageBgGradEnd:"",pageBgGradDir:""};function al(e){if(!e||typeof e!="object")return null;let t={...e};if(!(Number(t.v)>=dl))for(let i of Object.keys(Di))(t[i]===""||i==="accent"&&t[i]==="default")&&(t[i]=null);return t}function vt(e,t){return e??t??""}var yn=null;function ct(){if(yn)return yn;let e=document.documentElement,t=window.__vbAuthoredRoot,i=n=>{if(t&&typeof t=="object"){if(n in t)return t[n]??null;if(n==="data-mode")return null}return e.getAttribute(n)},s={theme:i("data-theme"),mode:i("data-mode"),themeSource:i("data-theme-source")};for(let[n,r]of Object.entries(Di))s[n]=i(r);return yn=s,s}function db(e){try{let t=document.createElement("canvas");t.width=t.height=1;let i=t.getContext("2d",{willReadFrequently:!0});if(!i)return e;i.fillStyle=e,i.fillRect(0,0,1,1);let[s,n,r]=i.getImageData(0,0,1,1).data;return"#"+[s,n,r].map(a=>a.toString(16).padStart(2,"0")).join("")}catch{return e}}function $i(e,t){let i=(e||"").split(/\s+/).filter(Boolean);return t==="site"?i[0]&&!i[0].startsWith("a11y-")?i[0]:"":i.find(s=>!s.startsWith("a11y-"))||""}function hb(e,t,i,s=!1){let n=(e||"").split(/\s+/).filter(r=>r&&r!==t&&r!==i);return i!=="default"?[i,...n].join(" "):(s&&n.length?["default",...n]:n).join(" ")}function ol(e){return e==="light"||e==="dark"?e:null}function cl(e,t,i){return t||(e==="light"||e==="dark"?e:i?"dark":"light")}function ll(e,t,i){let s=$i(t,i);return i==="site"&&s?s:e?.brand&&e.brand!==tt.brand?e.brand:s||tt.brand}var ul=["--hue-primary","--hue-secondary","--hue-accent","--lightness-primary","--chroma-primary","--lightness-secondary","--chroma-secondary","--lightness-accent","--chroma-accent"],O=null,Pe="",vn="",ee=null,It=null,I={_initPromise:null,async init(){return this._initPromise?this._initPromise:(this._initPromise=(async()=>{let e=al(await x.get(Mi,_i));O=e?{...tt,...e}:{...tt},It=ct().themeSource??null,Pe=$i(ct().theme??"",It),vn=$i(document.documentElement.dataset.theme||"",It),ee=ol(ct().mode),O.brand=ll(e,ct().theme??"",It);try{await Re(O.brand)}catch{O.brand!==Pe&&(O.brand=Pe||tt.brand)}return this.apply(O),this._watchSystemPreference(),this._watchRootAttributes(),this._watchCrossDocumentStorage(),O})(),this._initPromise)},_watchCrossDocumentStorage(){typeof window>"u"||window.addEventListener("storage",async e=>{if(e.key!==`vb:${Mi}:${_i}`||!e.newValue)return;let t;try{let s=JSON.parse(e.newValue);t=al(s?.data)}catch{return}if(!t)return;let i={...tt,...O,...t};if(i.brand=ll(t,ct().theme??"",It),i.brand&&i.brand!==O?.brand)try{await Re(i.brand)}catch{i.brand=Pe||tt.brand}O=i,this.apply(O||{})})},load(){return O?{...O}:{...tt}},save(e){let t={...O??tt,...e,v:dl};return O=t,x.set(Mi,_i,t).catch(()=>{}),t},apply({mode:e="auto",brand:t="default",borderStyle:i=null,iconSet:s=null,fluid:n=null,backdrop:r=null,backdropChrome:a=null,pageBgType:o="",pageBgColor:c="",pageBgGradStart:l="",pageBgGradEnd:u="",pageBgGradDir:d=""}={}){let h=document.documentElement,f=ct(),p=cl(e,ee,window.matchMedia("(prefers-color-scheme: dark)").matches);h.dataset.mode=p;let m=It==="site",g=hb(h.dataset.theme||"",vn,t,m);g?h.dataset.theme=g:delete h.dataset.theme,vn=t==="default"&&!g.startsWith("default")?"":t;let b=i||f.borderStyle||this._readCSSHint("--theme-border-style");this._setRootAttr("data-border-style",b&&b!=="clean"?b:"");let A=s||f.iconSet||this._readCSSHint("--theme-icon-set");this._setRootAttr("data-icon-set",A&&A!=="lucide"?A:"");let v=vt(n,f.fluid);this._setRootAttr("data-fluid",v,!0);let $=vt(r,f.backdrop);this._setRootAttr("data-backdrop",$,!0);let N=vt(a,f.backdropChrome);if(this._setRootAttr("data-backdrop-chrome",N&&N!=="card"?N:""),o==="color"&&c)h.style.setProperty("--page-bg-color",c),h.style.removeProperty("--page-bg-gradient");else if(o==="gradient"&&l&&u){let S=d||"to bottom";h.style.setProperty("--page-bg-gradient",`linear-gradient(${S}, ${l}, ${u})`),h.style.removeProperty("--page-bg-color")}else h.style.removeProperty("--page-bg-color"),h.style.removeProperty("--page-bg-gradient");this._applyAccent(this.load().accent);let j=this.getState().accent;this._syncThemeColor(),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{mode:e,brand:t,accent:j,borderStyle:b,iconSet:A,fluid:v,backdrop:$,backdropChrome:N,pageBgType:o,effectiveMode:p}}))},_setRootAttr(e,t,i=!1){let s=document.documentElement;t?s.setAttribute(e,t):i&&this._authoredHas(e)?s.setAttribute(e,""):s.removeAttribute(e)},_authoredHas(e){let t=Object.keys(Di).find(s=>Di[s]===e);return t?this.load()[t]==null&&ct()[t]!=null:!1},_syncThemeColor(){let e=document.querySelectorAll('meta[name="theme-color"]');if(!e.length)return;let t=n=>!n||n==="transparent"||/^rgba\(.*,\s*0\)$/.test(n),i=getComputedStyle(document.documentElement).backgroundColor;if(t(i)){let n=document.createElement("span");n.style.setProperty("position","absolute"),n.style.setProperty("background-color","var(--color-background)"),(document.body||document.documentElement).append(n),i=getComputedStyle(n).backgroundColor,n.remove()}if(t(i))return;let s=db(i);e.forEach(n=>{n.removeAttribute("media"),n.setAttribute("content",s)})},setMode(e){ee=null;let t=this.save({mode:e});this.apply(t)},async setBrand(e){try{await Re(e)}catch(i){console.warn(`[VB] Theme "${e}" failed to load, using default`,i),e="default"}let t=this.save({brand:e});this.apply(t)},setAccent(e){this.save({accent:e}),this._applyAccent(e),this._syncThemeColor(),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}}))},setBorderStyle(e){let t=this.save({borderStyle:e});this.apply(t)},setIconSet(e){let t=this.save({iconSet:e});this.apply(t)},setFluid(e){let t=this.save({fluid:e});this.apply(t)},setBackdrop(e){let t=this.save({backdrop:e});this.apply(t)},setBackdropChrome(e){let t=this.save({backdropChrome:e});this.apply(t)},setPageBg({type:e="",color:t="",gradStart:i="",gradEnd:s="",gradDir:n=""}={}){let r=this.save({pageBgType:e,pageBgColor:t,pageBgGradStart:i,pageBgGradEnd:s,pageBgGradDir:n});this.apply(r)},getEffectiveMode(){let{mode:e}=this.load();return cl(e,ee,window.matchMedia("(prefers-color-scheme: dark)").matches)},getState(){let{mode:e,brand:t,accent:i,borderStyle:s,iconSet:n,fluid:r,backdrop:a,backdropChrome:o,pageBgType:c,pageBgColor:l,pageBgGradStart:u,pageBgGradEnd:d,pageBgGradDir:h}=this.load(),f=typeof document>"u"?{}:ct(),p=(m,g)=>g==null&&f[m]===""?"default":vt(g,f[m]);return{mode:e,brand:t,accent:vt(i,f.accent)||"default",borderStyle:vt(s,f.borderStyle),iconSet:vt(n,f.iconSet),fluid:p("fluid",r),backdrop:p("backdrop",a),backdropChrome:vt(o,f.backdropChrome),pageBgType:c,pageBgColor:l,pageBgGradStart:u,pageBgGradEnd:d,pageBgGradDir:h,effectiveMode:this.getEffectiveMode()}},toggleMode(){let t=this.getEffectiveMode()==="dark"?"light":"dark";this.setMode(t)},reset(){O={...tt,brand:Pe||tt.brand},ee=ol(ct().mode),x.remove(Mi,_i).catch(()=>{});let e=document.documentElement;e.style.removeProperty("--page-bg-color"),e.style.removeProperty("--page-bg-gradient");for(let t of ul)e.style.removeProperty(t);this.apply(O)},_readCSSHint(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()},_applyAccent(e){let t=document.documentElement;for(let s of ul)t.style.removeProperty(s);if(e==null){let s=ct().accent;s?t.dataset.accent=s:delete t.dataset.accent;return}let i=tl.find(s=>s.id===e);if(!i||!i.seeds||Object.keys(i.seeds).length===0){delete t.dataset.accent;return}t.dataset.accent=i.id},_watchRootAttributes(){this._rootObserver||(this._rootObserver=new MutationObserver(e=>{for(let t of e)t.attributeName==="data-theme"?this._syncFromDataTheme():t.attributeName==="data-mode"&&this._syncFromDataMode()}),this._rootObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme","data-mode"]}))},_syncFromDataTheme(){if(!O)return;let e=document.documentElement.dataset.theme||"",t=e.split(/\s+/).filter(Boolean),i=$i(e,It)||"default";i!==O.brand&&(O.brand=i,Re(i).catch(()=>{}),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}})))},_syncFromDataMode(){if(!O)return;let e=document.documentElement.dataset.mode||"auto",t=this.getEffectiveMode();e!==t&&(ee=null,O.mode=e,this._syncThemeColor(),window.dispatchEvent(new CustomEvent("vb:theme-change",{detail:{...this.getState()}})))},_watchSystemPreference(){window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{let t=this.load();t.mode==="auto"&&this.apply(t)})}};if(typeof window<"u"){let e=window.VB??(window.VB={});e.themeManager??=I}var fb=["calendar-event","chat-bubble","chat-message","chat-thread","dl-item","fab-stack","hour-view","layout-badge","layout-canvas","layout-card","layout-center","layout-cluster","layout-columns","layout-cover","layout-grid","layout-imposter","layout-reel","layout-sidebar","layout-stack","layout-switcher","layout-text","loading-spinner","semantic-card","site-legal","site-tools","status-message","text-divider","token-swatch","user-avatar"];for(let e of fb)customElements.get(e)||customElements.define(e,class extends HTMLElement{});var kC=window.matchMedia("(prefers-reduced-motion: reduce)");var hl=new Map;function E(e,t,i={}){let s=i.priority??10,n={impl:t,bundle:i.bundle,contract:i.contract,priority:s},r=hl.get(e);if(customElements.get(e)){if(!r||r.priority>=s){r&&r.priority===s&&r.impl!==t&&console.warn(`[VB Bundle] Tag <${e}> already registered by "${r.bundle}" (priority ${r.priority}). Skipping "${i.bundle}".`);return}console.warn(`[VB Bundle] Tag <${e}> defined by "${r.bundle}" cannot be replaced (customElements.define is permanent). "${i.bundle}" has higher priority but arrived late.`);return}if(r&&r.priority>=s){r.priority===s&&console.warn(`[VB Bundle] Tag <${e}> already registered by "${r.bundle}". Skipping "${i.bundle}" (first wins at equal priority).`);return}hl.set(e,n),customElements.define(e,t)}var k=class extends HTMLElement{#t=[];#e;constructor(){super(),this.hasAttribute("data-upgraded")&&this.removeAttribute("data-upgraded")}connectedCallback(){this.hasAttribute("data-upgraded")||this.setup()!==!1&&(this.setAttribute("data-upgraded",""),queueMicrotask(()=>{this.dispatchEvent(new CustomEvent(`${this.localName}:upgraded`,{bubbles:!0}))}))}disconnectedCallback(){for(let t of this.#t)t();this.#t=[],this.removeAttribute("data-upgraded"),this.teardown()}listen(t,i,s,n){t.addEventListener(i,s,n),this.#t.push(()=>t.removeEventListener(i,s,n))}_reinit(){for(let t of this.#t)t();this.#t=[],this.teardown(),this.removeAttribute("data-upgraded"),this.isConnected&&this.setup()!==!1&&this.setAttribute("data-upgraded","")}setup(){}teardown(){}setState(t,i){this.#e||(this.#e=this.attachInternals());let s=this.#e.states;try{i?s.add(t):s.delete(t)}catch{let n=`--${t}`;i?s.add(n):s.delete(n)}}_adoptInternals(t){this.#e||(this.#e=t)}#i(){return this.constructor.formAssociated&&this.#e?this.#e:null}get validity(){return this.#i()?.validity}get validationMessage(){return this.#i()?.validationMessage??""}get willValidate(){return this.#i()?.willValidate??!1}get form(){return this.#i()?.form??null}checkValidity(){return this.#i()?.checkValidity()??!0}reportValidity(){return this.#i()?.reportValidity()??!0}};var pb=["valueMissing","badInput","typeMismatch","patternMismatch","tooShort","tooLong","rangeUnderflow","rangeOverflow","stepMismatch","customError"],mb='input:not([type="hidden"]):not(.otp-digit), textarea, select',gb="output.hint, output.textarea-counter",bb="Please check this field.",yb=0;function fl(e){return e.localName.includes("-")?!!customElements.get(e.localName)?.formAssociated:!1}function Fe(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement||e instanceof HTMLSelectElement}var wn=class extends k{#t=null;#e=[];#i=null;#n=!1;#s="";#o;#r=`ff-${++yb}`;setup(){if(this.#p(),this.#t=this.#m(),this.#i=this.querySelector("output.error")??this.querySelector("output:not(.hint):not(.textarea-counter)"),!this.#t)return!1;this.#i&&this.#o===void 0&&(this.#o=this.#i.textContent?.trim()??"",this.hasAttribute("data-invalid")||(this.#i.textContent=""));let t=this.#t;this.#e=[],t instanceof HTMLInputElement&&t.type==="radio"&&(this.#e=this.#d(t));let i=this.#e.length?this.#e:[t];for(let n of i)this.listen(n,"input",this.#a),this.listen(n,"change",this.#a),this.listen(n,"invalid",this.#l);Fe(t)||this.listen(t,`${t.localName}:change`,this.#a),this.listen(this,"focusout",n=>{let r=n.relatedTarget;r instanceof Node&&this.contains(r)||this.validate()});let s=t.form??this.closest("form");return s instanceof HTMLFormElement&&this.listen(s,"reset",n=>{setTimeout(()=>{!n.defaultPrevented&&this.isConnected&&this.clearError()})}),this.#A(this.hasAttribute("data-invalid")),!0}teardown(){this.#t=null,this.#e=[],this.#i=null}validate({show:t=!0}={}){if(!this.#t)return!0;let{valid:i,message:s}=this.#u();return t&&(i?(this.#S(this.#h()?"valid":null),this.#b("")):(this.#n=!0,this.#S("invalid"),this.#b(s)),this.#A(!i)),i}setError(t){if(!this.#t)return;this.#s=t;let i=this.#f();i&&i.setCustomValidity(t),this.validate()}clearError(){this.#t&&(this.#g(),this.#n=!1,this.#S(null),this.#b(""),this.#A(!1))}get fieldName(){return this.querySelector("label, legend")?.textContent?.trim()||this.#t?.getAttribute?.("aria-label")||this.#t?.getAttribute?.("name")||this.#t?.id||"Field"}get input(){return this.#t}#a=()=>{this.#s&&this.#g(),this.#n&&this.validate()};#c=!1;#l=()=>{if(!this.#c){this.#c=!0;try{this.validate()}finally{this.#c=!1}}};#m(){for(let t of this.querySelectorAll("*"))if(fl(t))return t;return this.querySelector(mb)}#p(){for(let t of this.querySelectorAll(":not(:defined)"))t.localName.includes("-")&&customElements.whenDefined(t.localName).then(()=>{!this.isConnected||!this.contains(t)||this.#t===t||fl(t)&&this._reinit()})}#d(t){return t.name?(t.form?[...t.form.elements]:[...t.getRootNode().querySelectorAll('input[type="radio"]')].filter(s=>!s.form)).filter(s=>s instanceof HTMLInputElement&&s.type==="radio"&&s.name===t.name):[t]}#f(){let t=this.#t;return t&&Fe(t)?t:null}#g(){let t=this.#f();t&&t.validity.customError&&t.validationMessage===this.#s&&t.setCustomValidity(""),this.#s=""}#u(){let t=this.#t;if(this.#s)return{valid:!1,message:this.#s};let i=t.validity;if(i)return i.valid?{valid:!0,message:""}:{valid:!1,message:this.#y(i)};let s=t.matches(":invalid");return{valid:!s,message:s?this.#y(null):""}}#y(t){let i=this.#t,s=Fe(i),n=r=>i.getAttribute(`data-message-${r.toLowerCase()}`)??(s?null:this.getAttribute(`data-message-${r.toLowerCase()}`));if(t)for(let r of pb){if(!t[r])continue;let a=n(r);if(a)return a;if((r==="customError"||!s)&&i.validationMessage)return i.validationMessage;break}else if(!this.#h()){let r=n("valueMissing");if(r)return r}return this.#o||i.validationMessage||this.getAttribute("data-message-invalid")||bb}#h(){let t=this.#t;if(this.#e.length)return this.#e.some(s=>s.checked);if(t instanceof HTMLInputElement&&t.type==="checkbox")return t.checked;let i=t.value;return Array.isArray(i)?i.length>0:!Fe(t)&&i===0?!1:i!=null&&String(i)!==""}#w(){let t=this.#t,i=this.querySelector('.otp-wrapper[role="group"]');return i?[i]:this.#e.length?this.#e.filter(s=>this.contains(s)):Fe(t)?[t]:[t.querySelector('[role="combobox"], fieldset, input:not([type="hidden"]):not([aria-hidden="true"]), textarea, select')??t]}#A(t){let i=[...this.querySelectorAll(gb)];i.forEach((a,o)=>{a.id||(a.id=`${this.#r}-hint${o?`-${o}`:""}`)});let s=this.#i;s&&!s.id&&(s.id=`${this.#r}-error`);let n=new Set([...i.map(a=>a.id),...s?[s.id]:[]]),r=[...i.map(a=>a.id),...t&&s?[s.id]:[]];for(let a of this.#w()){let o=(a.getAttribute("aria-describedby")??"").split(/\s+/).filter(l=>l&&!n.has(l)),c=[...new Set([...o,...r])];c.length?a.setAttribute("aria-describedby",c.join(" ")):a.removeAttribute("aria-describedby"),t?a.setAttribute("aria-invalid","true"):a.removeAttribute("aria-invalid")}}#S(t){delete this.dataset.valid,delete this.dataset.invalid,t&&(this.dataset[t]="")}#b(t){this.#i&&(this.#i.textContent=t)}};E("form-field",wn);function lt(e){return document.startViewTransition?document.startViewTransition(e):e()}var vb=0,wb=0,An=class extends k{#t=[];#e=[];#i=!1;#n=0;#s=!1;setup(){return this.#t=[...this.querySelectorAll(":scope > details")],this.#e=this.#t.map(t=>t.querySelector(":scope > summary")),this.#t.length===0?!1:(this.style.setProperty("--_tab-count",String(this.#t.length)),!this.hasAttribute("role")&&(this.hasAttribute("aria-label")||this.hasAttribute("aria-labelledby"))&&(this.setAttribute("role","group"),this.#s=!0),this.#o(),this.#c(),this.#l(),this.#n=Math.max(0,this.#t.findIndex(t=>t.open)),this.#p(),this.#r(),!0)}teardown(){this.style.removeProperty("--_tab-count"),this.#s&&this.removeAttribute("role"),this.#s=!1,this.#t=[],this.#e=[],this.#i=!1}get tabs(){return this.#t.map((t,i)=>({id:t.id||void 0,label:t.querySelector(":scope > summary")?.textContent?.trim()||`Tab ${i+1}`,content:t.querySelector(":scope > :not(summary)")?.innerHTML||"",active:t.hasAttribute("open")}))}set tabs(t){let i=Array.isArray(t)?t:[];for(;this.firstChild;)this.firstChild.remove();let s=!1;for(let n of i){let r=document.createElement("details");n.id&&(r.id=n.id),n.active&&!s&&(r.setAttribute("open",""),s=!0);let a=document.createElement("summary");a.textContent=n.label||"",r.appendChild(a);let o=document.createElement("section");o.innerHTML=n.content||"",r.appendChild(o),this.appendChild(r)}!s&&this.firstElementChild&&this.firstElementChild.setAttribute("open",""),this._reinit(),this.dispatchEvent(new CustomEvent("tab-set:tabs-changed",{detail:{tabs:i,source:"property"},bubbles:!0}))}#o(){let t=new Set(this.#t.map(s=>s.getAttribute("name")||"")),i=t.size===1?[...t][0]:"";if(i){let n=this.getRootNode().querySelectorAll?.(`details[name="${CSS.escape(i)}"]`)??[];for(let r of n)if(!this.#t.includes(r)){i="";break}}if(!i){i=`tab-set-${++wb}`;for(let s of this.#t)s.setAttribute("name",i)}}#r(){if(!this.hasAttribute("transition")||!document.startViewTransition)return;this.#i=!0;let t=++vb,i=this.getAttribute("transition")||"fade",s=i==="slide"?"vt-tabs-slide":i==="scale"?"vt-tabs-scale":"vt-tabs";this.#t.forEach(n=>{let r=n.querySelector(":scope > :not(summary)");r&&(r.style.viewTransitionName=`tabs-${t}`,r.style.viewTransitionClass=s)})}#a(t){if(t===this.#n)return;let i=t>this.#n?"forward":"backward";document.documentElement.dataset.vtDirection=i,lt(()=>{this.#t[t].open=!0}).finished?.then(()=>{delete document.documentElement.dataset.vtDirection})}#c(){this.#t.forEach((t,i)=>{let s=this.#e[i],n=t.querySelector(":scope > :not(summary)");if(this.listen(t,"toggle",()=>this.#m(i)),!s||!n)return;let r=s.id||`tab-${crypto.randomUUID().slice(0,8)}`,a=n.id||`panel-${crypto.randomUUID().slice(0,8)}`;s.id=r,s.setAttribute("aria-controls",a),n.id=a,n.setAttribute("aria-labelledby",r),this.listen(s,"click",o=>{if(t.open){o.preventDefault();return}this.#i&&(o.preventDefault(),this.#a(i))}),this.listen(s,"keydown",o=>this.#d(o,i))})}#l(){this.#t.some(t=>t.open)||(this.#t[0].open=!0)}#m(t){let i=this.#t[t];if(this.#p(),!i?.open)return;let s=this.#n;s!==t&&(this.#n=t,this.dispatchEvent(new CustomEvent("tab-set:change",{detail:{index:t,previousIndex:s,tab:i,panel:i.querySelector(":scope > :not(summary)")},bubbles:!0})))}#p(){this.#t.forEach((t,i)=>{let s=this.#e[i];s&&(s.setAttribute("tabindex",t.open?"0":"-1"),s.setAttribute("aria-expanded",t.open?"true":"false"))})}#d(t,i){let s=this.#t.length,n=(i+1)%s,r=(i-1+s)%s,a=getComputedStyle(this).direction==="rtl",o=this.getAttribute("data-orientation")==="vertical",c;switch(t.key){case"ArrowRight":c=a?r:n;break;case"ArrowLeft":c=a?n:r;break;case"ArrowDown":if(!o)return;c=n;break;case"ArrowUp":if(!o)return;c=r;break;case"Home":c=0;break;case"End":c=s-1;break;default:return}t.preventDefault(),this.#i?this.#a(c):this.#t[c].open=!0,this.#e[c]?.focus()}};E("tab-set",An);var Ab=()=>typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches;function En(e,t){let s=(()=>{try{return decodeURIComponent(location.hash.slice(1))}catch{return location.hash.slice(1)}})()===t;s||(location.hash=t);let n=e;typeof n.focus=="function"&&(n.tabIndex<0&&!n.hasAttribute("tabindex")&&n.setAttribute("tabindex","-1"),n.focus({preventScroll:!0})),(s||!n.matches?.(":target"))&&n.scrollIntoView({behavior:Ab()?"auto":"smooth",block:"start"})}function kn(e){let t=e;if(t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return!1;let s=(t.target instanceof Element?t.target:null)?.closest('a[href^="#"]');if(!s)return!1;let n=s.getAttribute("target");if(n&&n!=="_self"||s.hasAttribute("download"))return!1;let r=(s.getAttribute("href")??"").slice(1);if(!r)return!1;let a=r;try{a=decodeURIComponent(r)}catch{}let o=s.ownerDocument.getElementById(a);return o?(t.preventDefault(),En(o,a),!0):!1}var Eb="Back to content",kb="Footnote {n}",Sb="Notes",pl="\u21A9\uFE0E",xb=120,Cb=150,Sn=e=>String.fromCharCode(97+e%26)+(e>=26?String(Math.floor(e/26)):""),xn=class e extends k{static observedAttributes=["data-mode","data-label-back","data-label-ref","data-label-heading","data-preview"];static#t=0;#e=0;#i=[];#n=[];#s=null;#o=!1;#r=null;#a=null;#c;#l;attributeChangedCallback(t,i,s){i===s||!this.hasAttribute("data-upgraded")||this._reinit()}setup(){this.#e||(this.#e=++e.#t),this.listen(this,"click",kn),this.listen(document,"keydown",n=>{n.key==="Escape"&&this.#r?.matches(":popover-open")&&this.#k()});let t=this.#p(this.#m());if(t.length===0)return;let i=this.getAttribute("data-mode")==="sidenotes";for(let n of t)n.side=i&&n.source.getAttribute("data-side")!=="false",this.#d(n);let s=t.filter(n=>!n.side);for(let n of t)n.side&&this.#y(n),n.refs.forEach((r,a)=>this.#g(r,n,a));s.length?this.#h(s):this.hidden||(this.hidden=!0,this.#o=!0)}teardown(){clearTimeout(this.#c),clearTimeout(this.#l),this.#k();for(let{ref:t,original:i}of this.#i)t.replaceChildren(...i),t.removeAttribute("data-enhanced");this.#i=[];for(let t of this.#n)t.remove();this.#n=[],this.#r=null,this.#a=null,this.#s&&(this.#s.el.removeAttribute("id"),this.#s=null),this.#o&&(this.hidden=!1,this.#o=!1)}#m(){return[...document.querySelectorAll("foot-note:not([data-enhanced])")].filter(t=>this.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING)}#p(t){let i=new Set(t),s=new Map,n=[];for(let r of t){let a=r,o=r.getAttribute("data-ref");if(o){let l=document.getElementById(o);l&&i.has(l)&&!l.hasAttribute("data-ref")?a=l:console.warn(`[foot-notes] data-ref="${o}" does not name a <foot-note> collected by this <foot-notes>; rendering it as its own note.`)}let c=s.get(a);if(!c){let l=n.length+1;c={source:a,num:l,noteId:`fn-${this.#e}-${l}`,refs:[],content:[],side:!1},s.set(a,c),n.push(c)}c.refs.push(r)}return n}#d(t){let i=new Set([t.source,...t.refs]);for(let s of i){let n=[...s.childNodes];this.#i.push({ref:s,original:n}),s===t.source&&(t.content=n),s.replaceChildren()}}#f(t,i){return this.getAttribute(t)||i}#g(t,i,s){let n=document.createElement("a");n.id=this.#u(i,s),n.href=`#${i.noteId}`,n.setAttribute("role","doc-noteref"),n.setAttribute("aria-label",this.#f("data-label-ref",kb).replaceAll("{n}",String(i.num))),n.textContent=String(i.num),t.setAttribute("data-enhanced",""),i.side&&t===i.source?t.prepend(n):t.append(n),this.listen(n,"click",r=>{this.#k(),kn(r)}),!i.side&&this.getAttribute("data-preview")!=="false"&&this.#A(n,i)}#u(t,i){let s=`fnref-${this.#e}-${t.num}`;return i===0?s:`${s}-${Sn(i)}`}#y(t){let i=document.createElement("aside");i.className="sidenote",i.id=t.noteId,i.setAttribute("role","note");let s=document.createElement("span");s.className="sidenote-number",s.textContent=`${t.num}.`,i.append(s," ",...t.content),t.source.append(i)}#h(t){let i=document.createElement("section");i.setAttribute("role","doc-endnotes");let s=this.querySelector(":scope > :is(h1, h2, h3, h4, h5, h6)");if(s)s.id||(s.id=`fnh-${this.#e}`,this.#s={el:s,id:s.id}),i.setAttribute("aria-labelledby",s.id);else{let r=document.createElement("h2");r.id=`fnh-${this.#e}`,r.className="visually-hidden",r.textContent=this.#f("data-label-heading",Sb),i.setAttribute("aria-labelledby",r.id),i.append(r)}let n=document.createElement("ol");for(let r of t)n.append(this.#w(r));i.append(n),this.append(i),this.#n.push(i)}#w(t){let i=document.createElement("li");i.id=t.noteId,i.append(...t.content," ");let s=this.#f("data-label-back",Eb),n=t.refs.length>1;return t.refs.forEach((r,a)=>{let o=document.createElement("a");o.href=`#${this.#u(t,a)}`,o.setAttribute("data-backref",""),o.setAttribute("role","doc-backlink"),n?(o.setAttribute("aria-label",`${s} (${Sn(a)})`),o.textContent=`${pl}${Sn(a)}`):(o.setAttribute("aria-label",s),o.textContent=pl),a>0&&i.append(" "),i.append(o)}),i}#A(t,i){typeof HTMLElement.prototype.showPopover=="function"&&(this.listen(t,"pointerenter",s=>{s.pointerType!=="touch"&&(clearTimeout(this.#l),clearTimeout(this.#c),this.#c=setTimeout(()=>this.#b(t,i),xb))}),this.listen(t,"pointerleave",()=>{clearTimeout(this.#c),!(t===document.activeElement&&t.matches(":focus-visible"))&&(this.#l=setTimeout(()=>this.#k(),Cb))}),this.listen(t,"focus",()=>{t.matches(":focus-visible")&&this.#b(t,i)}),this.listen(t,"blur",()=>this.#k()))}#S(){if(this.#r)return this.#r;let t=document.createElement("aside");return t.className="fn-preview",t.setAttribute("popover","manual"),t.setAttribute("aria-hidden","true"),t.inert=!0,this.append(t),this.#n.push(t),this.#r=t,t}#b(t,i){if(clearTimeout(this.#l),!t.isConnected||this.hidden)return;let s=this.#S(),n=document.createElement("span");n.className="fn-preview-number",n.textContent=`${i.num}.`;let r=i.content.map(a=>a.cloneNode(!0));s.replaceChildren(n," ",...r);for(let a of s.querySelectorAll("[id]"))a.removeAttribute("id");this.#a?.removeAttribute("data-preview-anchor"),t.setAttribute("data-preview-anchor",""),this.#a=t,s.matches(":popover-open")||s.showPopover(),this.#E(s,t)}#k(){clearTimeout(this.#c);let t=this.#r;t?.matches(":popover-open")&&t.hidePopover(),this.#a?.removeAttribute("data-preview-anchor"),this.#a=null}#E(t,i){if(typeof CSS<"u"&&CSS.supports?.("position-area: top"))return;let s=i.getBoundingClientRect(),n=6,r=t.offsetWidth,a=t.offsetHeight,o=s.top-a-n;o<n&&(o=s.bottom+n);let c=Math.max(n,Math.min(s.left+s.width/2-r/2,innerWidth-r-n));t.style.inset="auto",t.style.top=`${o}px`,t.style.left=`${c}px`}},Cn=class extends HTMLElement{};E("foot-notes",xn);E("foot-note",Cn);var ml=0,Tn=class extends k{#t=[];#e=[];#i=[];#n=!1;setup(){return this.#t=[...this.querySelectorAll(":scope > details")],this.#e=this.#t.map(t=>t.querySelector("summary")),this.#t.length===0?!1:(this.#s(),this.#a(),this.#o(),!0)}teardown(){this.#t=[],this.#e=[],this.#i=[],this.#n=!1}get panels(){return this.#t.map((t,i)=>({id:t.id||void 0,summary:t.querySelector("summary")?.textContent?.trim()||`Panel ${i+1}`,content:this.#i[i]?.innerHTML||"",open:t.hasAttribute("open")}))}set panels(t){let i=Array.isArray(t)?t:[],n=this.hasAttribute("single")?`acc-${++ml}`:null;for(;this.firstChild;)this.firstChild.remove();for(let r of i){let a=document.createElement("details");r.id&&(a.id=r.id),r.open&&a.setAttribute("open",""),n&&a.setAttribute("name",n);let o=document.createElement("summary");o.textContent=r.summary||"",a.appendChild(o);let c=document.createElement("div");c.innerHTML=r.content||"",a.appendChild(c),this.appendChild(a)}this._reinit(),this.dispatchEvent(new CustomEvent("accordion-wc:panels-changed",{detail:{panels:i,source:"property"},bubbles:!0}))}#s(){this.#i=this.#t.map(t=>{let i=t.querySelector("summary");if(!i)return null;let s=[...t.children].filter(n=>n!==i);if(s.length===1&&s[0].localName==="div")return s[0];if(s.length>=1){let n=document.createElement("div");for(let r of s)n.appendChild(r);return t.appendChild(n),n}return null})}#o(){if(!this.hasAttribute("transition")||!document.startViewTransition)return;this.#n=!0;let t=++ml,i=this.getAttribute("transition")||"fade",s=i==="slide"?"vt-accordion-slide":i==="scale"?"vt-accordion-scale":"vt-accordion";this.#i.forEach((n,r)=>{n&&(n.style.viewTransitionName=`accordion-${t}-${r}`,n.style.viewTransitionClass=s)})}#r(t){lt(()=>{t.open=!t.open})}#a(){this.#t.forEach((t,i)=>{let s=this.#e[i],n=this.#i[i];if(s){if(n){let r=s.id||`accordion-heading-${crypto.randomUUID().slice(0,8)}`,a=n.id||`accordion-panel-${crypto.randomUUID().slice(0,8)}`;s.id=r,n.id=a,s.setAttribute("aria-expanded",t.open?"true":"false"),s.setAttribute("aria-controls",a),n.setAttribute("aria-labelledby",r),n.setAttribute("role","region")}else s.setAttribute("aria-expanded",t.open?"true":"false");this.listen(s,"click",r=>{this.#n&&(r.preventDefault(),this.#r(t))}),this.listen(s,"keydown",r=>this.#l(r,i)),this.listen(t,"toggle",()=>this.#c(t,i))}})}#c(t,i){this.#e[i].setAttribute("aria-expanded",t.open?"true":"false"),this.hasAttribute("single")&&t.open&&this.#t.forEach((n,r)=>{r!==i&&n.open&&(n.open=!1,this.#e[r].setAttribute("aria-expanded","false"))}),this.dispatchEvent(new CustomEvent("accordion-wc:toggle",{detail:{index:i,open:t.open},bubbles:!0}))}#l(t,i){let{key:s}=t,n;switch(s){case"ArrowDown":n=(i+1)%this.#t.length;break;case"ArrowUp":n=(i-1+this.#t.length)%this.#t.length;break;case"Home":n=0;break;case"End":n=this.#t.length-1;break;default:return}t.preventDefault(),this.#e[n].focus()}open(t){t<0||t>=this.#t.length||(this.#n&&!this.#t[t].open?lt(()=>{this.#t[t].open=!0}):this.#t[t].open=!0)}close(t){t<0||t>=this.#t.length||(this.#n&&this.#t[t].open?lt(()=>{this.#t[t].open=!1}):this.#t[t].open=!1)}toggle(t){t<0||t>=this.#t.length||(this.#n?this.#r(this.#t[t]):this.#t[t].open=!this.#t[t].open)}openAll(){this.hasAttribute("single")||this.#t.forEach(t=>{t.open=!0})}closeAll(){this.#t.forEach(t=>{t.open=!1})}};E("accordion-wc",Tn);var Tb={region:"Notifications",dismiss:"Dismiss",info:"Info",success:"Success",warning:"Warning",error:"Error"},Lb=["info","success","warning","error"],Nb={info:"&#9432;",success:"&#10003;",warning:"&#9888;",error:"&#10007;"},Mb=300,Ln=class extends k{#t=[];#e=[];#i=new WeakMap;#n=!1;#s=!1;#o=new Set;setup(){this.#r("role","log"),this.#r("aria-live","polite"),this.#r("aria-relevant","additions"),this.#r("aria-label",this.#a("region")),this.listen(this,"pointerover",()=>{this.#n||(this.#n=!0,this.#d())}),this.listen(this,"pointerout",t=>{t.relatedTarget instanceof Node&&this.contains(t.relatedTarget)||(this.#n=!1,this.#d())}),this.listen(this,"focusin",()=>{this.#s=!0,this.#d()}),this.listen(this,"focusout",t=>{t.relatedTarget instanceof Node&&this.contains(t.relatedTarget)||(this.#s=!1,this.#d())}),this.listen(this,"keydown",t=>{if(t.key!=="Escape")return;let i=t.target.closest?.(".toast");i&&this.#e.includes(i)&&(t.preventDefault(),this.dismiss(i))}),this.listen(document,"visibilitychange",()=>this.#d()),this.#e=this.#e.filter(t=>t.parentNode===this),this.#n=!!this.querySelector(".toast:hover"),this.#s=this.contains(document.activeElement),this.#m(),this.#d()}teardown(){for(let t of[...this.#e]){let i=this.#i.get(t);i&&(i.hiding?this.#y(t):this.#g(i))}for(let t of this.#o)this.removeAttribute(t);this.#o.clear()}show(t){let{message:i,variant:s="info",duration:n=this.#w(),dismissible:r=!0,action:a,onAction:o,source:c="api"}=t,l=Lb.includes(s)?s:"info",u=this.#c({message:i,variant:l,dismissible:r,action:a,onAction:o}),d=document.activeElement;this.#i.set(u,{message:String(i??""),duration:Math.max(0,Number(n)||0),remaining:Math.max(0,Number(n)||0),startedAt:0,timer:void 0,returnFocus:d&&!this.contains(d)?d:null,hiding:!1});let h=!this.isConnected||this.#e.length>=this.#A();return h?this.#t.push({toast:u,duration:n}):this.#l(u),this.dispatchEvent(new CustomEvent("toast-msg:enqueued",{detail:{message:i,variant:l,duration:n,source:c,toast:u,queued:h},bubbles:!0})),u}dismiss(t){let i=this.#t.findIndex(s=>s.toast===t);if(i>-1){this.#t.splice(i,1);return}this.#u(t)}dismissAll(){this.#t=[],[...this.#e].forEach(t=>this.#u(t))}get queue(){let t=(i,s)=>({message:this.#i.get(i)?.message??"",variant:i.getAttribute("data-variant")||"info",state:s});return[...this.#e.map(i=>t(i,"visible")),...this.#t.map(({toast:i})=>t(i,"queued"))]}#r(t,i){this.hasAttribute(t)&&!this.#o.has(t)||(this.setAttribute(t,i),this.#o.add(t))}#a(t){return this.getAttribute(`data-label-${t}`)??Tb[t]??t}#c({message:t,variant:i,dismissible:s,action:n,onAction:r}){let a=document.createElement("div");a.className="toast",a.setAttribute("data-variant",i);let o=c=>this.#S(c);return a.innerHTML=`
65
+ <span class="icon" aria-hidden="true">${Nb[i]}</span>
66
+ <span class="message"><span class="variant-label">${o(this.#a(i))}: </span>${o(t)}</span>
67
+ ${n?`<button type="button" class="action">${o(n)}</button>`:""}
68
+ ${s?`<button type="button" class="close" aria-label="${o(this.#a("dismiss"))}">&#x2715;</button>`:""}
69
+ `,a.querySelector(".close")?.addEventListener("click",()=>this.#u(a)),n&&a.querySelector(".action")?.addEventListener("click",()=>{r?.(),this.#u(a)}),a}#l(t){this.appendChild(t),this.#e.push(t),requestAnimationFrame(()=>{t.getAttribute("data-state")!=="hiding"&&t.setAttribute("data-state","visible")}),this.#d(),this.dispatchEvent(new CustomEvent("toast-msg:show",{bubbles:!0,detail:{toast:t}}))}#m(){for(;this.isConnected&&this.#t.length&&this.#e.length<this.#A();){let{toast:t}=this.#t.shift();this.#l(t)}}get#p(){return this.#n||this.#s||document.visibilityState==="hidden"}#d(){let t=this.#p||!this.isConnected;for(let i of this.#e){let s=this.#i.get(i);!s||s.hiding||s.duration<=0||(t?this.#g(s):s.timer===void 0&&this.#f(i,s))}}#f(t,i){i.startedAt=performance.now(),i.timer=setTimeout(()=>{i.timer=void 0,this.#u(t)},i.remaining)}#g(t){t.timer!==void 0&&(clearTimeout(t.timer),t.timer=void 0,t.remaining=Math.max(0,t.remaining-(performance.now()-t.startedAt)))}#u(t){let i=this.#i.get(t);if(!i||i.hiding||t.parentNode!==this)return;i.hiding=!0,i.timer!==void 0&&clearTimeout(i.timer),i.timer=void 0,this.#h(t,i),t.setAttribute("data-state","hiding");let s=()=>this.#y(t);t.addEventListener("animationend",s,{once:!0}),setTimeout(s,Mb)}#y(t){if(t.parentNode!==this&&!this.#e.includes(t))return;t.remove();let i=this.#e.indexOf(t);i>-1&&this.#e.splice(i,1),this.#s=this.contains(document.activeElement),this.#e.length||(this.#n=!1),this.#m(),this.#d(),this.dispatchEvent(new CustomEvent("toast-msg:hide",{bubbles:!0,detail:{toast:t}}))}#h(t,i){if(!t.contains(document.activeElement))return;let s=this.#e.filter(c=>c!==t&&!this.#i.get(c)?.hiding),n=this.#e.indexOf(t),a=(s.find(c=>this.#e.indexOf(c)>n)??s[s.length-1])?.querySelector("button");if(a){a.focus();return}let o=i.returnFocus;o instanceof HTMLElement&&o.isConnected&&o.focus()}#w(){let t=this.getAttribute("duration"),i=t!==null?parseInt(t,10):NaN;return Number.isFinite(i)?i:5e3}#A(){let t=this.getAttribute("max"),i=t!==null?parseInt(t,10):NaN;return Number.isFinite(i)&&i>0?i:5}#S(t){let i=document.createElement("div");return i.textContent=t??"",i.innerHTML}};E("toast-msg",Ln);var Ii=CSS.supports("anchor-name","--x"),_b=CSS.supports("position-area","bottom"),$b=(()=>{let e=document.createElement("span");return e.setAttribute("popover","hint"),e.popover==="hint"})(),Db=["auto","manual","hint"];function Ib(e){let t=Db.includes(e||"")?e:"auto";return t==="hint"&&!$b?"auto":t}var Rb=["top","bottom","left","right","inset-inline-start","inset-inline-end"],Pb=["position","top","left","right","bottom","margin"],gl=8,Fb=0,Ob=0;function bl(e){return!e||e==="none"?[]:e.split(",").map(t=>t.trim()).filter(Boolean)}var Nn=class extends k{static get observedAttributes(){return["data-mode","data-anchor","data-position"]}#t=null;#e=null;#i=`--pop-over-anchor-${++Ob}`;#n=!1;#s=!1;#o=!1;setup(){if(this.id||(this.id=`pop-over-${++Fb}`),(!this.hasAttribute("popover")||this.#n)&&this.#r(),this.#a(),this.#c(),this.listen(this,"beforetoggle",t=>{let i=t.newState==="open"?"show":"hide";this.dispatchEvent(new CustomEvent(`pop-over:${i}`,{detail:{state:t.newState},bubbles:!0,composed:!0})),!Ii&&t.newState==="open"&&this.#t&&queueMicrotask(()=>{this.matches(":popover-open")&&this.#p()})}),!Ii){let t=()=>{this.matches(":popover-open")&&this.#t&&this.#p()};this.listen(window,"resize",t),this.listen(window,"scroll",t,{capture:!0,passive:!0})}}teardown(){this.#l(),this.#s&&(Rb.forEach(t=>this.style.removeProperty(t)),this.#s=!1),this.#o&&(Pb.forEach(t=>this.style.removeProperty(t)),this.#o=!1),this.#t=null}attributeChangedCallback(t,i,s){if(i!==s){if(!this.hasAttribute("data-upgraded")){t==="data-mode"&&this.hasAttribute("popover")&&!this.isConnected&&(this.#n=!0);return}if(t==="data-mode"){this.#r();return}this._reinit()}}#r(){let t=Ib(this.dataset.mode);this.getAttribute("popover")!==t&&this.setAttribute("popover",t),this.#n=!0}show(){this.matches(":popover-open")||(this.showPopover(),!Ii&&this.#t&&this.matches(":popover-open")&&this.#p())}hide(){this.matches(":popover-open")&&this.hidePopover()}toggle(){this.matches(":popover-open")?this.hide():this.show()}get open(){return this.matches(":popover-open")}#a(){let t=this.dataset.anchor;if(t){let i=document.getElementById(t);if(!i)try{i=document.querySelector(t)}catch{i=null}this.#t=i}else this.#t=document.querySelector(`[popovertarget="${CSS.escape(this.id)}"]`)}#c(){if(!this.#t||!Ii)return;let t=this.#t,i=t.style.getPropertyValue("anchor-name"),s=bl(i||getComputedStyle(t).getPropertyValue("anchor-name"));s.includes(this.#i)||s.push(this.#i),t.style.setProperty("anchor-name",s.join(", ")),this.#e=this.#i,this.style.setProperty("position-anchor",this.#i),this.setAttribute("data-anchor-name",this.#i),_b||this.#m(this.dataset.position||"bottom")}#l(){if(this.#t&&this.#e){let t=bl(this.#t.style.getPropertyValue("anchor-name")).filter(i=>i!==this.#e);t.length?this.#t.style.setProperty("anchor-name",t.join(", ")):this.#t.style.removeProperty("anchor-name")}this.#e=null,this.style.getPropertyValue("position-anchor")&&this.style.removeProperty("position-anchor"),this.hasAttribute("data-anchor-name")&&this.removeAttribute("data-anchor-name")}#m(t){let i="var(--_pop-over-offset, var(--size-xs))",s=t.endsWith("-end")?{"inset-inline-end":"anchor(end)"}:{"inset-inline-start":"anchor(start)"},n={top:{bottom:`calc(anchor(top) + ${i})`,...s},bottom:{top:`calc(anchor(bottom) + ${i})`,...s},left:{right:`calc(anchor(left) + ${i})`,top:"anchor(top)"},right:{left:`calc(anchor(right) + ${i})`,top:"anchor(top)"}},r=t.split("-")[0],a=n[r]||n.bottom;Object.entries(a).forEach(([o,c])=>this.style.setProperty(o,c)),this.#s=!0}#p(){if(!this.#t)return;let t=this.#t.getBoundingClientRect(),i=this.dataset.position||"bottom",s=this.#d(),n=document.documentElement.clientWidth,r=document.documentElement.clientHeight;this.style.position="fixed",this.style.margin="0",this.style.right="auto",this.style.bottom="auto",this.#o=!0;let a=this.offsetWidth,o=this.offsetHeight,c=i.split("-")[0];["top","bottom","left","right"].includes(c)||(c="bottom");let l={top:t.top-s,bottom:r-t.bottom-s,left:t.left-s,right:n-t.right-s},u={top:"bottom",bottom:"top",left:"right",right:"left"},d=c==="top"||c==="bottom"?o:a;l[c]<d&&l[u[c]]>l[c]&&(c=u[c]);let h,f;switch(c){case"top":h=t.top-o-s,f=t.left;break;case"left":h=t.top,f=t.left-a-s;break;case"right":h=t.top,f=t.right+s;break;default:h=t.bottom+s,f=t.left;break}if(c==="top"||c==="bottom"){let m=getComputedStyle(this).direction==="rtl";f=i.endsWith("-end")!==m?t.right-a:t.left}else i.endsWith("-end")&&(h=t.bottom-o);let p=(m,g,b)=>Math.max(gl,Math.min(m,b-g-gl));f=p(f,a,n),h=p(h,o,r),this.style.top=`${Math.round(h)}px`,this.style.left=`${Math.round(f)}px`}#d(){let t={none:0,xs:4,s:8,m:16,l:24};return t[this.dataset.offset||""]??t.xs}};E("pop-over",Nn);var qb=new Set(["BUTTON","A","AREA"]),Mn=CSS.supports("anchor-name","--x"),yl=(()=>{let e=document.createElement("span");return e.setAttribute("popover","hint"),e.popover==="hint"})(),vl=8;function wl(e){return document.documentElement.hasAttribute("data-interest-polyfill")?!0:"interestForElement"in HTMLButtonElement.prototype?qb.has(e.tagName):!1}function Bb(e){return e.getAttribute("aria-label")?.trim()||e.hasAttribute("aria-labelledby")||e.labels?.length||e.textContent?.trim()||e instanceof HTMLInputElement&&["button","submit","reset"].includes(e.type)&&e.value?!0:!!e.querySelector('img[alt]:not([alt=""]), [aria-label]:not([aria-hidden="true"])')}function jb(e,t,i){let s=(e.getAttribute(t)||"").split(/\s+/).filter(Boolean);return s.includes(i)?!1:(e.setAttribute(t,[...s,i].join(" ")),!0)}function Hb(e,t,i){let s=(e.getAttribute(t)||"").split(/\s+/).filter(n=>n&&n!==i);s.length?e.setAttribute(t,s.join(" ")):e.removeAttribute(t)}var Ri=0,_n=class extends k{#t=null;#e=null;#i;#n;#s=!1;#o=!1;#r;#a;#c=[];#l=null;#m=!1;#p=!1;setup(){return this.#s=this.getAttribute("variant")==="card",this.#s?this.#f():this.#d()}#d(){if(this.#t=this.querySelector(":scope > :not(template):not(pop-over.tooltip)"),!this.#t)return!1;this.#o=wl(this.#t);let t=this.querySelector(":scope > template[data-tooltip]"),i=this.getAttribute("content"),s=this.#t.getAttribute("title");if(!t&&!i&&!s)return!1;let n=!1;s&&(Bb(this.#t)||(this.#t.setAttribute("aria-label",s),this.#a=s,n=!t&&!i),this.#r=s,this.#t.removeAttribute("title"));let r=this.getAttribute("position")||"top";this.#t.id||(this.#t.id=`tooltip-trigger-${++Ri}`);let a=document.createElement("pop-over");a.className="tooltip",a.setAttribute("role","tooltip"),a.dataset.mode=yl?"hint":"manual",a.dataset.anchor=this.#t.id,a.dataset.tooltipPosition=r,Mn||(a.dataset.position=r),a.id=`tooltip-${++Ri}`,t?a.innerHTML=t.innerHTML:a.textContent=i||s;let o=document.createElement("span");if(o.className="tooltip-arrow",o.setAttribute("aria-hidden","true"),a.appendChild(o),this.appendChild(a),this.#e=a,n||this.#g("aria-describedby",a.id),this.#o?(this.#t.setAttribute("interestfor",a.id),this.#A()):(this.listen(this.#t,"mouseenter",this.#S),this.listen(this.#t,"mouseleave",this.#b),this.listen(this.#t,"focus",this.#k),this.listen(this.#t,"blur",this.#E),this.listen(a,"mouseenter",this.#v),this.listen(a,"mouseleave",this.#b)),yl||this.#y(),!Mn){this.listen(a,"toggle",l=>{l.newState==="open"&&this.#h()});let c=()=>{this.isVisible&&this.#h()};this.listen(window,"resize",c),this.listen(window,"scroll",c,{capture:!0,passive:!0})}return this.#u(a),!0}#f(){this.#t=this.querySelector(":scope > [data-trigger]");let t=this.querySelector(":scope > [data-content]");if(!this.#t||!t)return!1;this.#o=wl(this.#t),this.#t.id||(this.#t.id=`tooltip-trigger-${++Ri}`);let i=document.createElement("pop-over");return i.className="hover-card",i.dataset.mode="manual",i.dataset.anchor=this.#t.id,i.dataset.position=this.getAttribute("position")||"bottom",i.id=`hc-${++Ri}`,this.#l={node:t,next:t.nextSibling,hidden:t.hidden},i.appendChild(t),t.removeAttribute("data-content"),t.hidden=!1,this.appendChild(i),this.#e=i,this.#g("aria-controls",i.id),this.#t.hasAttribute("aria-expanded")||(this.#t.setAttribute("aria-expanded","false"),this.#m=!0),this.#o?(this.#t.setAttribute("interestfor",i.id),this.#A()):(this.listen(this.#t,"mouseenter",this.#S),this.listen(this.#t,"mouseleave",this.#b),this.listen(this.#t,"focus",this.#k),this.listen(this.#t,"blur",this.#b),this.listen(i,"mouseenter",this.#v),this.listen(i,"mouseleave",this.#b),this.listen(i,"focusin",this.#v),this.listen(i,"focusout",s=>{s.relatedTarget instanceof Node&&this.contains(s.relatedTarget)||this.#b()})),this.#y(),this.listen(i,"pop-over:show",()=>{this.#m&&this.#t?.setAttribute("aria-expanded","true")}),this.listen(i,"pop-over:hide",()=>{this.#m&&this.#t?.setAttribute("aria-expanded","false")}),this.#u(i),!0}teardown(){clearTimeout(this.#i),clearTimeout(this.#n);let t=this.#t;if(t){this.#o&&(t.removeAttribute("interestfor"),this.#w&&(t.style.removeProperty("interest-delay-start"),t.style.removeProperty("--interest-delay-start"),this.#w=!1));for(let[i,s]of this.#c)Hb(t,i,s);this.#a!==void 0&&t.getAttribute("aria-label")===this.#a&&t.removeAttribute("aria-label"),this.#m&&t.removeAttribute("aria-expanded"),this.#r&&t.setAttribute("title",this.#r)}if(this.#c=[],this.#a=void 0,this.#r=void 0,this.#m=!1,this.#l){let{node:i,next:s,hidden:n}=this.#l;i.setAttribute("data-content",""),i.hidden=n,s&&s.parentNode===this?this.insertBefore(i,s):this.insertBefore(i,this.#e?.parentNode===this?this.#e:null),this.#l=null}this.#e&&(this.#e.remove(),this.#e=null),this.#t=null,this.setState("show-pending",!1)}#g(t,i){this.#t&&jb(this.#t,t,i)&&this.#c.push([t,i])}#u(t){this.listen(t,"pop-over:show",()=>{this.dispatchEvent(new CustomEvent("tool-tip:show",{bubbles:!0}))}),this.listen(t,"pop-over:hide",()=>{this.dispatchEvent(new CustomEvent("tool-tip:hide",{bubbles:!0}))})}#y(){this.listen(document,"keydown",this.#N),this.listen(document,"pointerdown",t=>{this.isVisible&&!(t.target instanceof Node&&this.contains(t.target))&&this.hide()})}#h(){let t=this.#e,i=this.#t;if(!t||!i||this.#s)return;let s=t.dataset.position||"top",n=i.getBoundingClientRect(),r=document.documentElement.clientWidth,a=document.documentElement.clientHeight,o=(c,l,u)=>Math.max(vl,Math.min(c,u-l-vl));t.style.translate="none",s==="left"||s==="right"?t.style.top=`${Math.round(o(n.top+(n.height-t.offsetHeight)/2,t.offsetHeight,a))}px`:t.style.left=`${Math.round(o(n.left+(n.width-t.offsetWidth)/2,t.offsetWidth,r))}px`}#w=!1;#A(){let t=this.getAttribute("delay"),i=this.#t;if(t===null||!i)return;let s=parseInt(t,10);!Number.isFinite(s)||s<0||(i.style.setProperty("interest-delay-start",`${s}ms`),i.style.setProperty("--interest-delay-start",`${s}ms`),this.#w=!0)}#S=()=>{clearTimeout(this.#n);let t=this.#s?300:200,i=parseInt(this.getAttribute("delay")||String(t),10);this.setState("show-pending",!0),this.#i=setTimeout(()=>{this.setState("show-pending",!1),this.show()},i)};#b=()=>{clearTimeout(this.#i),this.setState("show-pending",!1);let t=this.#s?200:100;this.#n=setTimeout(()=>this.hide(),t)};#k=()=>{this.#p||(clearTimeout(this.#n),this.show())};#E=()=>{clearTimeout(this.#i),this.setState("show-pending",!1),this.hide()};#v=()=>{clearTimeout(this.#n)};#N=t=>{if(t.key!=="Escape"||!this.isVisible)return;clearTimeout(this.#i);let i=this.#s&&this.#e?.contains(document.activeElement);this.hide(),i&&(this.#p=!0,this.#t?.focus({preventScroll:!0}),this.#p=!1)};show(){!this.#e||this.isVisible||(typeof this.#e.show=="function"?this.#e.show():this.#e.showPopover(),Mn||this.#h())}hide(){!this.#e||!this.isVisible||(typeof this.#e.hide=="function"?this.#e.hide():this.#e.hidePopover())}get isVisible(){return this.#e?.matches(":popover-open")??!1}};E("tool-tip",_n);var $n=0,Oe='button, a, [role="menuitem"]',Pi='menu, ul[role="menu"]',zb=500;function Dn(e){return e.hasAttribute("data-disabled")||e.getAttribute("aria-disabled")==="true"||!!e.disabled}var In=class extends k{#t;#e;#i;#n;#s=[];#o=-1;#r=!1;#a=!1;#c=null;#l="";#m=!1;#p=!1;#d=null;#f(){return this.querySelector(`:scope > :is(${Pi}), :scope > pop-over[data-dropdown-host] > :is(${Pi})`)}setup(){let t=this.querySelector(":scope > [data-trigger]")||this.querySelector(":scope > button:not([data-dropdown-toggle])");if(!t)return!1;this.#t=t;let i=this.#f();if(!i)return!1;this.#i=i,this.#a=this.hasAttribute("hover"),this.#t.id||(this.#t.id=`dropdown-trigger-${++$n}`);let s=this.querySelector(":scope > pop-over[data-dropdown-host]");return s?this.#n=s:(this.#n=document.createElement("pop-over"),this.#n.setAttribute("data-dropdown-host",""),this.#n.id=`dropdown-${++$n}`,this.#n.dataset.mode=this.#a?"manual":"auto",this.#n.dataset.position=this.getAttribute("position")||"bottom-start",this.#n.dataset.anchor=this.#t.id,this.#n.appendChild(this.#i),this.appendChild(this.#n)),this.#n.dataset.mode=this.#a?"manual":"auto",this.#n.dataset.position=this.getAttribute("position")||"bottom-start",this.#n.dataset.anchor=this.#t.id,this.#i.parentElement!==this.#n&&this.#n.appendChild(this.#i),this.#i.id||(this.#i.id=`dropdown-menu-${++$n}`),this.#a?this.#u():this.#g(),this.listen(this.#i,"click",this.#v,{capture:!0}),this.listen(this.#i,"click",this.#N),this.listen(this.#n,"pop-over:hide",this.#M),this.listen(this.#n,"pop-over:show",this.#U),!0}#g(){this.#e=this.#t,this.querySelector(":scope > button[data-dropdown-toggle]")?.remove(),this.#t.setAttribute("aria-haspopup","menu"),this.#t.setAttribute("aria-expanded","false"),this.#t.setAttribute("aria-controls",this.#i.id),this.#i.setAttribute("role","menu"),this.#w(),this.listen(this.#t,"pointerdown",this.#A),this.listen(this.#t,"click",this.#S),this.listen(this.#t,"keydown",this.#b),this.listen(this.#i,"keydown",this.#k)}#u(){let t=this.#t;if(this.#t.localName==="a"){if(t=this.querySelector(":scope > button[data-dropdown-toggle]"),t||(t=document.createElement("button"),t.setAttribute("type","button"),t.setAttribute("data-dropdown-toggle",""),this.#t.after(t)),!t.hasAttribute("aria-label")&&!t.textContent.trim()){let i=this.#t.textContent.trim().replace(/\s+/g," ");t.setAttribute("aria-label",`${i} submenu`)}this.#t.removeAttribute("aria-haspopup"),this.#t.removeAttribute("aria-expanded"),this.#t.removeAttribute("aria-controls")}t&&(this.#e=t,t.removeAttribute("aria-haspopup"),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-controls",this.#i.id),this.#i.removeAttribute("role"),this.#i.querySelectorAll(':scope > li[role="none"]').forEach(i=>i.removeAttribute("role")),this.#s=this.#y(),this.#s.forEach(i=>{i.getAttribute("role")==="menuitem"&&i.removeAttribute("role"),i.getAttribute("tabindex")==="-1"&&i.removeAttribute("tabindex"),i.hasAttribute("data-disabled")&&i.setAttribute("aria-disabled","true")}),this.#h(),this.listen(t,"click",this.#x),this.listen(this,"pointerenter",this.#C),this.listen(this,"pointerleave",this.#F),this.listen(this,"focusout",this.#D),this.listen(document,"keydown",this.#H),this.listen(document,"pointerdown",this.#R))}teardown(){this.#c&&clearTimeout(this.#c),this.#c=null,this.#d&&clearTimeout(this.#d),this.#d=null,this.#l="",this.#r&&this.#n?.hide?.(),this.#r=!1,this.#p=!1,this.#o=-1,this.removeAttribute("open"),this.#e?.setAttribute("aria-expanded","false")}get items(){let t=this.#i||this.#f();if(!t)return[];let i=[];for(let s of t.querySelectorAll(":scope > li")){if(s.matches('[role="separator"]')||s.querySelector(":scope > hr")){i.push({separator:!0});continue}let n=s.querySelector(Oe);n&&i.push({label:n.textContent.trim().replace(/\s+/g," "),value:n.getAttribute("data-value")||void 0,href:n.tagName==="A"?n.getAttribute("href"):void 0,disabled:Dn(n)||void 0})}return i}set items(t){let i=Array.isArray(t)?t:[],s=this.#i||this.#f();for(s||(s=document.createElement("menu"),this.appendChild(s));s.firstChild;)s.firstChild.remove();for(let n of i){let r=document.createElement("li");if(n.separator)r.setAttribute("role","separator");else{let a=n.href?document.createElement("a"):document.createElement("button");n.href?a.setAttribute("href",n.href):a.setAttribute("type","button"),n.value&&a.setAttribute("data-value",n.value),n.disabled&&(a.setAttribute("data-disabled",""),a.setAttribute("aria-disabled","true")),a.textContent=n.label||"",r.appendChild(a)}s.appendChild(r)}this._reinit(),this.dispatchEvent(new CustomEvent("drop-down:items-changed",{detail:{items:i,source:"property"},bubbles:!0}))}#y(){return Array.from(this.#i.querySelectorAll(Oe)).filter(t=>t.closest(Pi)===this.#i&&!t.closest('[role="separator"]'))}#h(){this.#i.querySelectorAll(':scope > li:empty, :scope > [role="separator"], :scope > hr').forEach(t=>{t.setAttribute("role","separator")})}#w(){let t=this.#y();t.forEach(i=>{i.setAttribute("role","menuitem"),i.setAttribute("tabindex","-1"),i.hasAttribute("data-disabled")&&i.setAttribute("aria-disabled","true")}),this.#s=t.filter(i=>!i.disabled),this.#i.querySelectorAll(":scope > li").forEach(i=>{i.querySelector(`:scope > :is(${Oe})`)&&i.setAttribute("role","none")}),this.#h()}#A=()=>{this.#m=this.#r};#S=t=>{let i=this.#m;if(this.#m=!1,!(t.detail!==0&&i&&!this.#r)){if(t.detail===0&&!this.#r){this.open(),this.#L(0);return}this.toggle()}};#b=t=>{switch(t.key){case"ArrowDown":case"Down":t.preventDefault(),this.open(),this.#L(0);break;case"ArrowUp":case"Up":t.preventDefault(),this.open(),this.#L(this.#s.length-1);break}};#k=t=>{if(!(t.defaultPrevented||t.target.closest?.(Pi)!==this.#i))switch(t.key){case"ArrowDown":case"Down":t.preventDefault(),this.#L(this.#o+1);break;case"ArrowUp":case"Up":t.preventDefault(),this.#L(this.#o-1);break;case"Home":t.preventDefault(),this.#L(0);break;case"End":t.preventDefault(),this.#L(this.#s.length-1);break;case"Escape":t.preventDefault(),this.close(),this.#e?.focus();break;case"Tab":this.close();break;case"Enter":case" ":{t.preventDefault();let s=this.#s[this.#o];s&&!Dn(s)&&s.click();break}default:t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&this.#E(t.key)}};#E(t){this.#d&&clearTimeout(this.#d),this.#d=setTimeout(()=>{this.#l=""},zb),this.#l+=t.toLowerCase();let i=this.#l,s=[...i].every(a=>a===i[0])?i[0]:i,n=this.#s.length,r=s.length>1?0:1;for(let a=0;a<n;a++){let o=(this.#o+r+a+n)%n;if(this.#s[o].textContent.trim().toLowerCase().startsWith(s)){this.#L(o);return}}}#v=t=>{let i=t.target.closest?.(Oe);i&&this.#s.includes(i)&&Dn(i)&&(t.preventDefault(),t.stopPropagation())};#N=t=>{let i=t.target.closest?.(Oe);!i||!this.#s.includes(i)||i.closest("drop-down")===this&&(t.defaultPrevented||(this.dispatchEvent(new CustomEvent("drop-down:select",{bubbles:!0,detail:{item:i,value:i.getAttribute("data-value")||void 0}})),this.close(),this.#e?.focus()))};#x=t=>{if(this.#_(),t.detail!==0&&this.#p&&this.#r){this.#p=!1;return}this.toggle()};#_(){this.#c&&(clearTimeout(this.#c),this.#c=null,this.setState("hover-grace-pending",!1))}#C=t=>{t.pointerType==="mouse"&&(this.#_(),this.#r||(this.open(),this.#p=!0))};#F=t=>{t.pointerType!=="mouse"||!this.#r||this.contains(document.activeElement)&&document.activeElement!==this.#e&&document.activeElement!==this.#t||(this.setState("hover-grace-pending",!0),this.#c=setTimeout(()=>{this.#c=null,this.setState("hover-grace-pending",!1),this.close()},100))};#D=t=>{let i=t.relatedTarget;i&&this.contains(i)||!i&&this.matches(":hover")||this.close()};#H=t=>{if(t.key!=="Escape"||!this.#r)return;let i=this.contains(document.activeElement);t.preventDefault(),this.close(),i&&this.#e?.focus()};#R=t=>{if(!this.#r)return;t.composedPath().includes(this)||this.close()};#U=t=>{t.target!==this.#n||this.#r||(this.#r=!0,this.setAttribute("open",""),this.#e?.setAttribute("aria-expanded","true"),this.#o=-1,this.dispatchEvent(new CustomEvent("drop-down:open",{bubbles:!0})))};#M=t=>{t.target!==this.#n||!this.#r||(this.#r=!1,this.#p=!1,this.removeAttribute("open"),this.#e?.setAttribute("aria-expanded","false"),this.#o=-1,this.#i?.contains(document.activeElement)&&this.#e?.focus(),this.dispatchEvent(new CustomEvent("drop-down:close",{bubbles:!0})))};#L(t){this.#s.length!==0&&(t<0&&(t=this.#s.length-1),t>=this.#s.length&&(t=0),this.#o=t,this.#s[t].focus())}open(){this.#r||!this.#n||this.#n.show()}close(){!this.#r||!this.#n||this.#n.hide()}toggle(){this.#r?this.close():this.open()}get isOpen(){return this.#r}};E("drop-down",In);function ie({basePath:e,set:t,name:i}){return`${e}/${t}/${i}.svg`}function Fi(e,t=document){let i=e.getAttribute("data-icon-set");if(i)return i;let s=e.closest("[data-icon-set]")?.getAttribute("data-icon-set");return s||t.documentElement.dataset.iconSet||"lucide"}function Oi(e=document){return e.documentElement.dataset.iconPath||"/cdn/icons"}function Pn(e){let t=e.getAttribute("data-icon");if(!t){e.style.removeProperty("--vb-icon");return}let i=ie({basePath:Oi(document),set:Fi(e,document),name:t});e.style.setProperty("--vb-icon",`url("${i}")`)}function Rn(e=document){for(let t of e.querySelectorAll("[data-icon]"))Pn(t)}var Al=!1;function Vb(){if(Al)return;Al=!0,Rn(),new MutationObserver(t=>{for(let i of t)if(i.type==="attributes"){let s=i.target;s.hasAttribute&&s.hasAttribute("data-icon")&&Pn(s),i.attributeName==="data-icon-set"&&Rn(s)}else for(let s of i.addedNodes){if(s.nodeType!==1)continue;let n=s;n.hasAttribute("data-icon")&&Pn(n),Rn(n)}}).observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-icon","data-icon-set"]})}typeof document<"u"&&Vb();var El=`
77
70
  :host {
78
71
  display: inline-flex;
79
72
  align-items: center;
@@ -115,14 +108,18 @@ Please report this to https://github.com/markedjs/marked.`,e){let s="<p>An error
115
108
  block-size: 3em;
116
109
  }
117
110
 
111
+ /* Sizing only. Paint (fill/stroke/stroke-width) comes from each file's own
112
+ presentation attributes: Lucide/Tabler/Mage are stroked, Phosphor/Bold are
113
+ filled. Any author rule here, even :where(), would beat those attributes. */
118
114
  svg {
115
+ display: block;
119
116
  inline-size: 100%;
120
117
  block-size: 100%;
121
- stroke: currentColor;
122
- stroke-width: 2;
123
- stroke-linecap: round;
124
- stroke-linejoin: round;
125
- fill: none;
118
+ }
119
+
120
+ /* Opt-in RTL mirroring for directional glyphs (arrows, chevrons, undo\u2026) */
121
+ :host([data-flip-rtl]:dir(rtl)) svg {
122
+ transform: scaleX(-1);
126
123
  }
127
124
 
128
125
  /* Error state */
@@ -134,60 +131,7 @@ svg {
134
131
  :host([hidden]) {
135
132
  display: none;
136
133
  }
137
- `;var Ht=new Map,zt=new Map,Xi=class e extends HTMLElement{static#e=new Set;static#t=null;static#i(){e.#t||(e.#t=new MutationObserver(t=>{for(let i of t)if(i.attributeName==="data-icon-set")for(let s of e.#e)s.hasAttribute("set")||(s.render(),s.loadIcon())}),e.#t?.observe(document.documentElement,{attributes:!0,attributeFilter:["data-icon-set"]}))}static get observedAttributes(){return["name","set","size","label"]}constructor(){super(),this.attachShadow({mode:"open"})}get name(){return this.getAttribute("name")||""}get set(){return this.getAttribute("set")||document.documentElement.dataset.iconSet||"lucide"}get size(){return this.getAttribute("size")||"md"}get label(){return this.getAttribute("label")}get basePath(){return this.getAttribute("base-path")||document.documentElement.dataset.iconPath||"/cdn/icons"}get iconPath(){return`${this.basePath}/${this.set}/${this.name}.svg`}render(){this.shadowRoot.innerHTML=`
138
- <style>${eo}</style>
139
- <slot></slot>
140
- `}async loadIcon(){if(!this.name){this.setError("No icon name specified");return}let t=`${this.set}/${this.name}`;if(Ht.has(t)){this.displayIcon(Ht.get(t));return}try{let i=await this.#s(this.set,t);this.displayIcon(i)}catch(i){let s="lucide";if(this.set!==s){let n=`${s}/${this.name}`;if(Ht.has(n)){this.displayIcon(Ht.get(n));return}try{let r=await this.#s(s,n);this.displayIcon(r);return}catch{}}this.setError(i.message)}}async#s(t,i){return zt.has(i)||zt.set(i,this.#r(t).then(s=>(Ht.set(i,s),zt.delete(i),s)).catch(s=>{throw zt.delete(i),s})),zt.get(i)}async#r(t){let i=`${this.basePath}/${t}/${this.name}.svg`,s=await fetch(i);if(!s.ok)throw new Error(`Icon not found: ${this.name}`);let n=await s.text();if(!n.includes("<svg"))throw new Error(`Invalid SVG: ${this.name}`);return n}displayIcon(t){let n=new DOMParser().parseFromString(t,"image/svg+xml").querySelector("svg");if(!n){this.setError("Invalid SVG content");return}n.removeAttribute("width"),n.removeAttribute("height"),this.label?(n.setAttribute("role","img"),n.setAttribute("aria-label",this.label)):n.setAttribute("aria-hidden","true"),this.removeAttribute("data-error");let r=this.shadowRoot?.querySelector("slot");r&&r.replaceWith(n)}setError(t){this.setAttribute("data-error","true"),console.warn(`icon-wc: ${t}`);let i=this.shadowRoot?.querySelector("slot");i&&(i.textContent="")}connectedCallback(){e.#e.add(this),e.#i(),this.render(),this.loadIcon(),this._onThemeChange=()=>{let t=this.shadowRoot?.querySelector("svg");t&&(t.style.stroke="none",requestAnimationFrame(()=>{t.style.stroke=""}))},window.addEventListener("vb:theme-change",this._onThemeChange),this.setAttribute("data-upgraded","")}disconnectedCallback(){this.removeAttribute("data-upgraded"),e.#e.delete(this),this._onThemeChange&&window.removeEventListener("vb:theme-change",this._onThemeChange)}attributeChangedCallback(t,i,s){if(i!==s&&this.isConnected){if(t==="name"||t==="set")this.render(),this.loadIcon();else if(t==="label"){let n=this.shadowRoot?.querySelector("svg");n&&(s?(n.setAttribute("role","img"),n.setAttribute("aria-label",s)):(n.removeAttribute("role"),n.setAttribute("aria-hidden","true")))}}}};b("icon-wc",Xi);Vt();var is=class extends y{#e;#t=new WeakSet;setup(){this.#i(),this.#e=new MutationObserver(t=>{for(let i of t)i.type==="childList"&&this.#i()}),this.#e.observe(this,{childList:!0,subtree:!0})}teardown(){this.#e?.disconnect()}#i(){let i=(this.getAttribute("levels")||"h2,h3").split(",").map(n=>n.trim()).join(","),s=this.querySelectorAll(i);for(let n of s)this.#t.has(n)||(this.#s(n),this.#t.add(n))}#s(t){if(t.closest("dialog, [data-toc-ignore]")||t.hasAttribute("data-toc-ignore")||(t.id||(t.id=this.#r(t.textContent)),t.querySelector(".heading-anchor")))return;let i=document.createElement("a");i.className="heading-anchor",i.href=`#${t.id}`,i.setAttribute("aria-label",`Link to ${t.textContent.trim()}`),i.innerHTML='<icon-wc name="link" size="sm"></icon-wc>',i.addEventListener("click",s=>{s.preventDefault(),this.#n(t,i)}),t.appendChild(i),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1")}#r(t){let i=t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").substring(0,50),s=i,n=1;for(;document.getElementById(s);)s=`${i}-${n}`,n++;return s}async#n(t,i){let s=new URL(window.location.href);if(s.hash=t.id,window.history.pushState(null,"",s),t.scrollIntoView({behavior:"smooth",block:"start"}),t.focus(),await mt(s.href,{button:i,announceMessage:"Link copied to clipboard"})){let r=i.innerHTML;i.innerHTML='<icon-wc name="check" size="sm"></icon-wc>',i.classList.add("copied"),setTimeout(()=>{i.innerHTML=r,i.classList.remove("copied")},1500)}this.dispatchEvent(new CustomEvent("heading-links:navigate",{bubbles:!0,detail:{id:t.id,url:s.href}}))}};b("heading-links",is);var ss=class extends y{#e;#t=[];#i=new Map;#s;#r;#n;#a=!1;setup(){requestAnimationFrame(()=>this.#o())}get entries(){return this.#t.map(t=>({id:t.id||void 0,text:t.textContent?.trim()||"",level:parseInt(t.tagName.slice(1),10)||0}))}teardown(){this.#e?.disconnect(),clearTimeout(this.#n)}#o(){this.#a=this.#l(),this.#a?this.#c():this.#b(),this.#w(),this.#p(),this.#d()}#l(){return this.querySelector("nav, details")!==null}#c(){this.#r=this.querySelector("details");let t=this.querySelectorAll('a[href^="#"]');for(let i of t){let s=i.getAttribute("href");if(!s)continue;let n=s.slice(1);if(n){let r=document.getElementById(n);r&&(this.#t.push(r),this.#i.set(n,i),i.classList.contains("link")||i.classList.add("link"),i.addEventListener("click",a=>{a.preventDefault(),this.#A(r)}))}}}#p(){this.#s=window.matchMedia("(min-width: 64rem)"),this.listen(this.#s,"change",this.#m),this.listen(window,"resize",this.#h)}#m=t=>{t.matches&&this.#r&&(this.#r.open=!0)};#h=()=>{clearTimeout(this.#n),this.#n=setTimeout(()=>this.#u(),150)};#d(){this.listen(window,"hashchange",this.#f),this.#u()}#f=()=>{this.#u()};#u(){let t=window.location.hash.slice(1);t&&this.#i.has(t)&&this.#g(t)}#g(t){for(let s of this.#i.values())s.classList.remove("active"),s.removeAttribute("aria-current");let i=this.#i.get(t);i&&(i.classList.add("active"),i.setAttribute("aria-current","true"))}#b(){let t=(this.getAttribute("levels")||"h2,h3").split(",").map(u=>u.trim().toLowerCase()),i=this.getAttribute("scope")||"main",s=this.getAttribute("title")||"On this page",n=document.querySelector(i);if(!n||(this.#t=Array.from(n.querySelectorAll(t.join(","))).filter(u=>u.id).filter(u=>!u.hasAttribute("data-toc-ignore")&&!u.closest("[data-toc-ignore]")),this.#t.length===0))return;let r={depth:-1,children:[]},a=[r];for(let u of this.#t){let d=t.indexOf(u.tagName.toLowerCase());for(;a[a.length-1].depth>=d;)a.pop();let h={heading:u,depth:d,children:[]};a[a.length-1].children.push(h),a.push(h)}let o=u=>{let d=document.createElement("ul");d.className="list";for(let h of u){let p=document.createElement("li");p.className="item",p.dataset.level=String(h.depth);let f=document.createElement("a");f.href=`#${h.heading.id}`,f.className="link",f.textContent=this.#k(h.heading),f.addEventListener("click",m=>{m.preventDefault(),this.#A(h.heading)}),p.appendChild(f),h.children.length&&p.appendChild(o(h.children)),d.appendChild(p),this.#i.set(h.heading.id,f)}return d};this.#r=document.createElement("details"),this.#r.className="details",this.#r.open=!0;let c=document.createElement("summary");c.className="summary",c.textContent=s,this.#r.appendChild(c);let l=document.createElement("nav");l.className="nav",l.setAttribute("aria-label",s),l.appendChild(o(r.children)),this.#r.appendChild(l),this.appendChild(this.#r)}#k(t){let i=t.cloneNode(!0);return i.querySelectorAll(".heading-anchor").forEach(n=>n.remove()),i.textContent.trim()}#A(t){let i=new URL(window.location.href);i.hash=t.id,window.history.pushState(null,"",i),t.scrollIntoView({behavior:"smooth",block:"start"}),t.focus(),this.dispatchEvent(new CustomEvent("page-toc:navigate",{bubbles:!0,detail:{id:t.id}}))}#w(){if(this.#t.length===0)return;let t=new Set;this.#e=new IntersectionObserver(i=>{for(let s of i)s.isIntersecting?t.add(s.target.id):t.delete(s.target.id);this.#y(t)},{rootMargin:"-80px 0px -70% 0px",threshold:0});for(let i of this.#t)this.#e.observe(i)}#y(t){for(let i of this.#t)if(t.has(i.id)){this.#g(i.id);return}this.#u()}refresh(){this.#a||(this.innerHTML=""),this.#i.clear(),this.#t=[],this.#e?.disconnect(),this.#o()}};b("page-toc",ss);function Me({newItems:e,nodes:t,keyOf:i,renderItem:s,containerFor:n}){let r=[],a=[],o=[],c=new Set;for(let u of e)c.add(i(u));for(let[u,d]of[...t])c.has(u)||(d.remove(),t.delete(u),o.push(u));let l=new Map;for(let u of e){let d=i(u),h=t.get(d)||null,p=n(u,h);l.has(p)||l.set(p,[]),l.get(p)?.push({item:u,key:d,existing:h})}for(let[u,d]of l)for(let h=0;h<d.length;h++){let{item:p,key:f,existing:m}=d[h],v=m;v?(v.parentElement!==u||u.children[h]!==v)&&a.push(f):(v=s(p),t.set(f,v),r.push(f));let A=u.children[h];A!==v&&u.insertBefore(v,A||null)}return{added:r,moved:a,removed:o}}var ns=class e extends y{#e;#t;#i=[];#s=[];#r=[];#n=-1;#a=null;#o=1;#l=0;#c=null;#p=null;#m=null;#h="";#d=null;#f=null;#u=[];#g=new Map;#b=[];setup(){return this.#e=this.querySelector(":scope > table"),!this.#e||(this.#t=this.#e.querySelector("tbody"),!this.#t)?!1:(this.#k(),!0)}teardown(){this.#_(),this.#i=[],this.#s=[],this.#r=[]}#k(){this.#s=[...this.#t.querySelectorAll(":scope > tr:not([data-expand-content])")],this.#r=[...this.#s],this.#b=[...this.#e.tHead?.rows[0]?.cells||[]].map(i=>({key:i.getAttribute("data-key")||i.textContent.trim().toLowerCase(),label:i.textContent.trim(),sort:i.getAttribute("data-sort")||void 0})),this.#g.clear(),this.#u=[];for(let i of this.#s){let s=i.getAttribute("data-id")||i.getAttribute("data-key");s&&(this.#g.set(s,i),this.#u.push({id:s}))}this.#E(),this.#v(),this.#N(),this.#O(),this.#e.hasAttribute("data-filterable")&&this.#q();let t=this.#e.getAttribute("data-paginate");t&&(this.#l=parseInt(t,10),this.#l>0&&this.#x()),this.#R(),this.#P(),this.#W()}get rows(){return this.#u}set rows(t){let i=t||[],s=Me({newItems:i,nodes:this.#g,keyOf:n=>n.id,renderItem:n=>this._renderRow(n),containerFor:()=>this.#t});this.#u=i,this.#s=[...this.#t.querySelectorAll(":scope > tr:not([data-expand-content])")],this.#v(),this.#N(),this.#M(this.#h),this.dispatchEvent(new CustomEvent("data-table:rows-changed",{detail:{rows:i,added:s.added,moved:s.moved,removed:s.removed,source:"api"},bubbles:!0}))}get columns(){return this.#b}_renderRow(t){let i=this;if(typeof i.renderRow=="function"){let n=i.renderRow(t,this.#b);if(!(n instanceof Element))throw new Error("data-table: renderRow must return an Element");return n.hasAttribute("data-id")||n.setAttribute("data-id",String(t.id)),n}let s=document.createElement("tr");s.setAttribute("data-id",String(t.id));for(let n of this.#b){let r=document.createElement("td"),a=t[n.key];r.textContent=a==null?"":String(a),s.appendChild(r)}return s}#A=[];#w=[];#y=[];#E(){let t=[...this.#e.tHead?.rows[0]?.cells||[]];this.#A=t.map(i=>{let s=parseFloat(i.getAttribute("data-weight"));return Number.isFinite(s)?s:null}),this.#w=t.map(i=>i.getAttribute("data-rollup")||null),this.#y=t.map(i=>i.getAttribute("data-heatmap")||null)}#v(){if(this.#w.some(Boolean))for(let t=0;t<this.#w.length;t++){let i=this.#w[t];if(i)for(let s of this.#s){let n=s.children[t];if(!n)continue;let r=this.#C(s,t,i),a=e.#I(r);n.textContent=a,n.setAttribute("data-rollup-value",String(r)),n.hasAttribute("data-sort-value")||n.setAttribute("data-sort-value",String(r))}}}#C(t,i,s){let n=[...t.children],r=0,a=0,o=-1/0,c=0,l=1,u=!1;for(let d=0;d<n.length;d++){if(d===i||this.#w[d])continue;let h=n[d].getAttribute("data-sort-value")??n[d].textContent??"",p=parseFloat(h);if(!Number.isFinite(p))continue;r+=p,a++,p>o&&(o=p),l*=p,u=!0;let f=this.#A[d];f!==null&&(c+=p*f)}switch(s){case"sum":return r;case"avg":return a?r/a:0;case"max":return o===-1/0?0:o;case"weighted-sum":return c;case"product":return u?l:0;default:return r}}static#I(t){return Number.isFinite(t)?Number.isInteger(t)?String(t):(Math.round(t*100)/100).toString():""}#N(){if(this.#y.some(Boolean))for(let t=0;t<this.#y.length;t++){let i=this.#y[t];if(!i)continue;let s=this.#s.map(c=>{let l=c.children[t];if(!l)return null;let u=l.getAttribute("data-rollup-value")??l.getAttribute("data-sort-value")??l.textContent??"",d=parseFloat(u);return Number.isFinite(d)?d:null}),n=s.filter(c=>c!==null);if(!n.length)continue;let r=Math.min(...n),o=Math.max(...n)-r||1;for(let c=0;c<this.#s.length;c++){let l=this.#s[c].children[t];if(!l)continue;let u=s[c];if(u===null){l.removeAttribute("data-heat-level");continue}let d=(u-r)/o;i==="low-good"&&(d=1-d);let h=d<.34?"low":d<.67?"mid":"high";l.setAttribute("data-heat-level",h)}}}#_(){this.#m&&clearTimeout(this.#m),this.#c?.parentElement?.remove(),this.#p?.remove()}#O(){this.#e.querySelectorAll("thead th[data-sort]").forEach((i,s)=>{let n=i.getAttribute("data-sort"),r=this.#F(i);this.#i.push({th:i,sortType:n,columnIndex:r}),i.setAttribute("tabindex","0"),i.setAttribute("role","columnheader"),i.setAttribute("aria-sort","none"),i.dataset.columnIndex=r,this.listen(i,"click",this.#D),this.listen(i,"keydown",this.#L)})}#F(t){return[...t.parentElement.children].indexOf(t)}#D=t=>{let i=t.currentTarget,s=parseInt(i.dataset.columnIndex,10);this.#$(s)};#L=t=>{if(t.key==="Enter"||t.key===" "){t.preventDefault();let i=t.currentTarget,s=parseInt(i.dataset.columnIndex,10);this.#$(s)}};#B(t,i,s){let n=this.#r;if(n.length<2)return!0;let r=s==="asc"?1:-1;for(let a=1;a<n.length;a++){let o=this.#T(n[a-1].children[t],i),c=this.#T(n[a].children[t],i);if((typeof o=="string"?o.localeCompare(c)*r:(o-c)*r)>0)return!1}return!0}#$(t){let i=this.#i.find(n=>n.columnIndex===t);if(!i)return;let s;this.#n===t?s=this.#a==="asc"?"desc":"asc":this.#B(t,i.sortType,"asc")?s="desc":s="asc",this.#i.forEach(({th:n})=>{n.setAttribute("aria-sort","none")}),i.th.setAttribute("aria-sort",s==="asc"?"ascending":"descending"),this.#n=t,this.#a=s,this.#S(t,s,i.sortType),this.#o=1,this.#W(),this.dispatchEvent(new CustomEvent("data-table:sort",{detail:{column:t,direction:s,columnName:i.th.textContent.trim()},bubbles:!0}))}#S(t,i,s){let n=i==="asc"?1:-1;this.#r.sort((r,a)=>{let o=r.children[t],c=a.children[t];if(!o||!c)return 0;let l=this.#T(o,s),u=this.#T(c,s),d=0;switch(s){case"number":d=l-u;break;case"date":d=l-u;break;default:d=l.localeCompare(u,void 0,{numeric:!0,sensitivity:"base"});break}return d*n})}#T(t,i){let n=t.getAttribute("data-sort-value")??t.textContent.trim();switch(i){case"number":return parseFloat(n)||0;case"date":return new Date(n).getTime()||0;default:return n.toLowerCase()}}#q(){let t=document.createElement("div");t.setAttribute("data-table-filter","");let i=document.createElement("input");i.type="search",i.setAttribute("data-filter-input",""),i.setAttribute("placeholder","Filter table..."),i.setAttribute("aria-label","Filter table rows"),t.appendChild(i),this.insertBefore(t,this.#e),this.#c=i,this.listen(i,"input",this.#j)}#j=t=>{let i=t.target.value;this.#m&&clearTimeout(this.#m),this.#m=setTimeout(()=>{this.#M(i)},150)};#M(t){if(this.#h=t.toLowerCase().trim(),this.#h===""?this.#r=[...this.#s]:this.#r=this.#s.filter(i=>[...i.children].some(n=>(n.getAttribute("data-filter-value")??n.textContent).toLowerCase().includes(this.#h))),this.#n>=0&&this.#a){let i=this.#i.find(s=>s.columnIndex===this.#n);i&&this.#S(this.#n,this.#a,i.sortType)}this.#o=1,this.#W(),this.dispatchEvent(new CustomEvent("data-table:filter",{detail:{query:this.#h,count:this.#r.length},bubbles:!0}))}#x(){let t=document.createElement("nav");t.setAttribute("data-pagination",""),t.setAttribute("aria-label","Table pagination"),this.appendChild(t),this.#p=t}#R(){this.listen(this.#e,"click",this.#z)}#z=t=>{let i=t.target.closest('[data-action="toggle-expand"]');if(!i)return;let s=i.closest("tr[data-expandable]");if(!s)return;let n=s.hasAttribute("data-state-expanded"),r=s.nextElementSibling;n?(s.removeAttribute("data-state-expanded"),i.setAttribute("aria-expanded","false"),r?.hasAttribute("data-expand-content")&&(r.hidden=!0,r.setAttribute("aria-hidden","true"))):(s.setAttribute("data-state-expanded",""),i.setAttribute("aria-expanded","true"),r?.hasAttribute("data-expand-content")&&(r.hidden=!1,r.removeAttribute("aria-hidden"))),this.dispatchEvent(new CustomEvent("data-table:expand",{detail:{row:s,expanded:!n},bubbles:!0}))};#P(){this.#d=this.#e.querySelector('thead [data-action="select-all"]'),this.#d&&this.listen(this.#d,"change",this.#H),this.listen(this.#t,"change",this.#G),this.#f=this.querySelector("[data-selected-count]"),this.#K()}#H=t=>{let i=t.target.checked;this.#t.querySelectorAll("tr[data-selectable]").forEach(n=>{let r=n.querySelector('[data-action="select-row"]');i?(n.setAttribute("data-state-selected",""),r&&(r.checked=!0)):(n.removeAttribute("data-state-selected"),r&&(r.checked=!1))}),t.target.indeterminate=!1,this.#Y(),this.#V()};#G=t=>{let i=t.target.closest('[data-action="select-row"]');if(!i)return;let s=i.closest("tr[data-selectable]");s&&(i.checked?s.setAttribute("data-state-selected",""):s.removeAttribute("data-state-selected"),this.#K(),this.#V())};#K(){if(!this.#d){this.#Y();return}let t=this.#t.querySelectorAll("tr[data-selectable]"),i=this.#t.querySelectorAll("tr[data-selectable][data-state-selected]"),s=t.length,n=i.length;n===0?(this.#d.checked=!1,this.#d.indeterminate=!1):n===s?(this.#d.checked=!0,this.#d.indeterminate=!1):(this.#d.checked=!1,this.#d.indeterminate=!0),this.#Y()}#Y(){let i=this.#t.querySelectorAll("tr[data-selectable][data-state-selected]").length;this.#f&&(this.#f.textContent=i)}#V(){let t=[...this.#t.querySelectorAll("tr[data-selectable][data-state-selected]")];this.dispatchEvent(new CustomEvent("data-table:selection",{detail:{count:t.length,rows:t},bubbles:!0}))}#U(){if(!this.#p||this.#l<=0)return;let t=this.#p,i=Math.ceil(this.#r.length/this.#l);if(t.innerHTML="",i<=1)return;let s=document.createElement("button");s.type="button",s.textContent="Previous",s.setAttribute("data-pagination-prev",""),s.disabled=this.#o===1,s.addEventListener("click",()=>this.goToPage(this.#o-1)),t.appendChild(s),this.#X(i).forEach(a=>{if(a==="..."){let o=document.createElement("span");o.textContent="...",o.setAttribute("data-pagination-ellipsis",""),t.appendChild(o)}else{let o=document.createElement("button");o.type="button",o.textContent=a,o.setAttribute("data-pagination-page",""),a===this.#o&&(o.setAttribute("aria-current","page"),o.setAttribute("data-current","")),o.addEventListener("click",()=>this.goToPage(a)),t.appendChild(o)}});let r=document.createElement("button");r.type="button",r.textContent="Next",r.setAttribute("data-pagination-next",""),r.disabled=this.#o===i,r.addEventListener("click",()=>this.goToPage(this.#o+1)),t.appendChild(r)}#X(t){let i=this.#o,s=[];if(t<=7)for(let n=1;n<=t;n++)s.push(n);else{s.push(1),i>3&&s.push("...");let n=Math.max(2,i-1),r=Math.min(t-1,i+1);for(let a=n;a<=r;a++)s.push(a);i<t-2&&s.push("..."),s.push(t)}return s}#W(){this.#s.forEach(i=>{i.setAttribute("data-state-hidden","")});let t;if(this.#l>0){let i=(this.#o-1)*this.#l,s=i+this.#l;t=this.#r.slice(i,s)}else t=this.#r;t.forEach(i=>{i.removeAttribute("data-state-hidden"),this.#t.appendChild(i);let s=i.nextElementSibling?.hasAttribute?.("data-expand-content")?i.nextElementSibling:this.#Z(i);s&&this.#t.appendChild(s)}),this.#r.forEach(i=>{if(i.hasAttribute("data-state-hidden")){this.#t.appendChild(i);let s=this.#Z(i);s&&this.#t.appendChild(s)}}),this.#s.forEach(i=>{if(!this.#r.includes(i)){this.#t.appendChild(i);let s=this.#Z(i);s&&this.#t.appendChild(s)}}),this.#U()}#Z(t){if(!t.hasAttribute("data-expandable"))return null;let i=t.nextElementSibling;return i?.hasAttribute("data-expand-content")?i:null}goToPage(t){let i=Math.ceil(this.#r.length/this.#l),s=Math.max(1,Math.min(t,i));s!==this.#o&&(this.#o=s,this.#W(),this.dispatchEvent(new CustomEvent("data-table:page",{detail:{page:this.#o},bubbles:!0})))}setFilter(t){this.#c&&(this.#c.value=t),this.#M(t)}refresh(){if(this.#s=[...this.#t.querySelectorAll(":scope > tr")],this.#h?this.#M(this.#h):this.#r=[...this.#s],this.#n>=0&&this.#a){let i=this.#i.find(s=>s.columnIndex===this.#n);i&&this.#S(this.#n,this.#a,i.sortType)}let t=Math.max(1,Math.ceil(this.#r.length/this.#l));this.#o>t&&(this.#o=t),this.#W()}get currentPage(){return this.#o}get totalPages(){return this.#l<=0?1:Math.ceil(this.#r.length/this.#l)}get filteredCount(){return this.#r.length}get totalCount(){return this.#s.length}getSelectedRows(){return this.#t?[...this.#t.querySelectorAll("tr[data-selectable][data-state-selected]")]:[]}};b("data-table",ns);Wt();var rs=class e extends y{static#e=150;static#t=8;#i=null;#s=null;#r=null;#n=null;#a=[];#o=-1;#l=!1;#c=null;#p=null;#m=null;setup(){this.#h(),this.#d()}teardown(){this.#l&&(document.body.style.overflow="",this.removeAttribute("open"),this.#l=!1),this.#m?.(),this.#I(),this.#s?.remove(),this.#s=null}get value(){return this.#r?.value??""}set value(t){if(!this.#r)return;let i=t==null?"":String(t);this.#r.value!==i&&(this.#r.value=i,this.#r.dispatchEvent(new Event("input",{bubbles:!0})),this.dispatchEvent(new CustomEvent("site-search:change",{detail:{value:i,source:"api"},bubbles:!0})))}get results(){return[...this.#a]}#h(){this.#i=this.querySelector(":scope > [data-trigger]"),this.#i||(this.#i=this.querySelector(":scope > button")),this.#i||(this.#i=document.createElement("button"),this.#i.setAttribute("data-trigger",""),this.#i.innerHTML=`
141
- <icon-wc name="search" label="Search"></icon-wc>
142
- `,this.prepend(this.#i)),this.#i.setAttribute("aria-haspopup","dialog"),this.#i.setAttribute("aria-expanded","false"),this.#s=document.createElement("div"),this.#s.className="dialog",this.#s.setAttribute("role","dialog"),this.#s.setAttribute("aria-label","Site search"),this.#s.id=`search-dialog-${crypto.randomUUID().slice(0,8)}`,this.#i.setAttribute("aria-controls",this.#s.id),this.#s.innerHTML=`
143
- <div class="backdrop"></div>
144
- <div class="panel">
145
- <div class="input-wrapper">
146
- <icon-wc name="search" class="icon"></icon-wc>
147
- <input
148
- type="search"
149
- name="search"
150
- class="input"
151
- placeholder="Search documentation..."
152
- autocomplete="off"
153
- autocorrect="off"
154
- autocapitalize="off"
155
- spellcheck="false"
156
- aria-label="Search"
157
- aria-autocomplete="list"
158
- />
159
- <kbd class="shortcut">Esc</kbd>
160
- </div>
161
- <div class="results" role="listbox" aria-label="Search results"></div>
162
- <div class="footer">
163
- <span class="hint">
164
- <kbd>\u2191</kbd><kbd>\u2193</kbd> to navigate
165
- <kbd>\u21B5</kbd> to select
166
- <kbd>esc</kbd> to close
167
- </span>
168
- <span class="powered">
169
- Powered by <a href="https://pagefind.app" target="_blank" rel="noopener">Pagefind</a>
170
- </span>
171
- </div>
172
- </div>
173
- `,this.appendChild(this.#s),this.#r=this.#s.querySelector(".input"),this.#n=this.#s.querySelector(".results")}#d(){this.#i.addEventListener("click",this.#f),lo().includes("meta+k")||(this.#m=rt("meta+k",()=>{this.#l?this.close():this.open()},{global:!0})),this.listen(document,"keydown",this.#u),this.#s.querySelector(".backdrop")?.addEventListener("click",()=>this.close()),this.#r.addEventListener("input",this.#g),this.#r.addEventListener("keydown",this.#b),this.#n.addEventListener("click",this.#k)}#f=t=>{t.stopPropagation(),this.open()};#u=t=>{t.key==="Escape"&&this.#l&&(t.preventDefault(),this.close())};#g=()=>{this.#I(),this.setState("input-debounce-pending",!0),this.#p=setTimeout(()=>{this.setState("input-debounce-pending",!1),this.#w(this.#r.value)},e.#e)};#b=t=>{switch(t.key){case"ArrowDown":t.preventDefault(),this.#v(this.#o+1);break;case"ArrowUp":t.preventDefault(),this.#v(this.#o-1);break;case"Enter":t.preventDefault(),this.#o>=0&&this.#a[this.#o]&&this.#C(this.#a[this.#o]);break}};#k=t=>{let i=t.target.closest("[data-result-index]");if(i){let s=parseInt(i.dataset.resultIndex,10);this.#a[s]&&this.#C(this.#a[s])}};async#A(){if(!this.#c)try{this.#c=await import("/pagefind/pagefind.js"),await this.#c.options({excerptLength:20})}catch{console.warn("Pagefind not available. Run `npm run search:index` to build the search index."),this.#c=null}}async#w(t){if(!t.trim()){this.#y([]);return}if(await this.#A(),!this.#c){this.#E();return}try{this.#n.innerHTML='<div class="loading">Searching...</div>';let i=await this.#c.search(t),s=await Promise.all(i.results.slice(0,e.#t).map(n=>n.data()));this.#a=s,this.#y(s)}catch(i){console.error("Search error:",i),this.#n.innerHTML='<div class="error">Search error. Please try again.</div>'}}#y(t){if(this.#o=-1,t.length===0){this.#r.value.trim()?this.#n.innerHTML='<div class="empty">No results found</div>':this.#n.innerHTML="";return}this.#n.innerHTML=t.map((i,s)=>`
174
- <a
175
- id="search-result-${s}"
176
- href="${i.url}"
177
- class="result"
178
- role="option"
179
- data-result-index="${s}"
180
- tabindex="-1"
181
- >
182
- <span class="result-title">${i.meta?.title||"Untitled"}</span>
183
- <span class="result-excerpt">${i.excerpt||""}</span>
184
- </a>
185
- `).join("")}#E(){this.#n.innerHTML=`
186
- <div class="error">
187
- Search index not found.<br>
188
- Run <code>npm run search:index</code> after building.
189
- </div>
190
- `}#v(t){if(this.#a.length===0)return;t<0&&(t=this.#a.length-1),t>=this.#a.length&&(t=0);let i=this.#n.querySelector("[data-active]");i&&i.removeAttribute("data-active"),this.#r?.removeAttribute("aria-activedescendant"),this.#o=t;let s=this.#n.querySelector(`[data-result-index="${t}"]`);s&&(s.setAttribute("data-active",""),this.#r?.setAttribute("aria-activedescendant",s.id),s.scrollIntoView({block:"nearest"}))}#C(t){t.url&&(this.close(),window.location.href=t.url)}#I(){this.#p&&(clearTimeout(this.#p),this.#p=null,this.setState("input-debounce-pending",!1))}open(){this.#l||(this.#l=!0,this.setAttribute("open",""),this.#i?.setAttribute("aria-expanded","true"),document.body.style.overflow="hidden",requestAnimationFrame(()=>{this.#r?.focus(),this.#r?.select()}),this.#A(),this.dispatchEvent(new CustomEvent("site-search:open",{bubbles:!0})))}close(){this.#l&&(this.#l=!1,this.removeAttribute("open"),this.#i?.setAttribute("aria-expanded","false"),document.body.style.overflow="",this.#I(),this.#r.value="",this.#r?.removeAttribute("aria-activedescendant"),this.#a=[],this.#o=-1,this.#n.innerHTML="",this.#i?.focus(),this.dispatchEvent(new CustomEvent("site-search:close",{bubbles:!0})))}get isOpen(){return this.#l}};b("site-search",rs);_e();_e();var Th=/^[a-zA-Z_$][a-zA-Z0-9_$]*(\.[a-zA-Z_$][a-zA-Z0-9_$]*|\[\d+\])*$/;function ho(e){return!e||typeof e!="string"?!1:Th.test(e.trim())}function Yt(e,t){if(!ho(t)){console.warn(`[card-list] Unsafe property path rejected: "${t}"`);return}let s=String(t).replace(/\[(\d+)\]/g,".$1").split("."),n=e;for(let r of s){if(n==null)return;n=n[r]}return n}function Lh(e){return e?e.split(",").map(t=>{let[i,s]=t.split(":").map(n=>n.trim());return{attr:(i||"").toLowerCase(),path:s}}).filter(({attr:t,path:i})=>t&&i):[]}var Mh=new Set(["href","src","action","formaction","xlink:href","poster","cite","background","ping","data","manifest","longdesc","codebase"]),po=new Set(["srcdoc","style","is"]),Nh=new Set(["http:","https:","mailto:","tel:"]);function fo(e){let t=String(e).replace(/[\u0000-\u0020\u007f]+/g,"");if(!t)return!0;let i=/^([a-z][a-z0-9+.-]*):/i.exec(t);return i?Nh.has(`${i[1].toLowerCase()}:`):!0}function _h(e){return String(e).split(",").every(t=>fo(t.trim().split(/\s+/)[0]||""))}function Dh(e,t){return e.startsWith("on")||po.has(e)||!/^[a-z_][a-z0-9_.:-]*$/.test(e)?!1:e==="srcset"||e==="imagesrcset"?_h(t):Mh.has(e)?fo(t):!0}function $h(e,t){let i=new Set;return e.map((s,n)=>{let r=s!=null&&typeof s=="object"?s[t]:void 0,a=r==null?null:`k:${String(r)}`;return a==null||i.has(a)?`i:${n}`:(i.add(a),a)})}var uo=":scope > [data-card-list-status]",as=class extends y{#e=null;#t=[];#i="id";#s=new Map;#r=!1;#n=null;#a=null;static get observedAttributes(){return["src","data-items","data-key"]}setup(){if(this.#e=this.querySelector(":scope > template")||this.querySelector("template"),!this.#e)return console.warn("[card-list] No template found"),!1;if(this.#i=this.getAttribute("data-key")||"id",this.#r)return this.#n&&this.#h(this.#n),this.#n=null,!0;let t=this.getAttribute("data-items");if(t)return this.#o(t),!0;let i=this.getAttribute("src");return i&&this.#m(i),!0}teardown(){this.#l()}attributeChangedCallback(t,i,s){i!==s&&this.hasAttribute("data-upgraded")&&(t==="data-items"?s&&this.#o(s):t==="src"?s?this.#m(s):this.#l():t==="data-key"&&(this.#i=s||"id",this.#h("attribute")))}#o(t){this.#l();try{let i=JSON.parse(t);this.#t=Array.isArray(i)?i:[],this.#r=!0,this.#h("attribute")}catch(i){console.error("[card-list] Invalid JSON in data-items:",i)}}#l(){this.#a&&(this.#a.abort(),this.#a=null,this.removeAttribute("data-loading"),this.removeAttribute("aria-busy"),this.#p(""))}#c(){let t=this.querySelector(uo);return t||(t=document.createElement("p"),t.setAttribute("role","status"),t.setAttribute("data-card-list-status",""),this.append(t)),t}#p(t){let i=this.querySelector(uo);!i&&!t||((i||this.#c()).textContent=t)}async#m(t){this.#l();let i=new AbortController;this.#a=i,this.removeAttribute("data-error"),this.setAttribute("data-loading",""),this.setAttribute("aria-busy","true"),this.#c().textContent="Loading\u2026";try{let s=await fetch(t,{signal:i.signal});if(!s.ok)throw new Error(`HTTP ${s.status}`);let n=await s.json();if(i.signal.aborted)return;this.#t=Array.isArray(n)?n:n?.items||n?.data||[],this.#r=!0,this.#p(""),this.#h("attribute")}catch(s){if(i.signal.aborted)return;let n=s instanceof Error?s.message:String(s);console.error("[card-list] Fetch error:",s),this.setAttribute("data-error",n),this.#p(`Error: ${n}`)}finally{this.#a===i&&(this.#a=null,this.removeAttribute("data-loading"),this.removeAttribute("aria-busy"))}}#h(t){if(!this.#e)return;this.querySelectorAll(":scope > [data-fallback]").forEach(n=>n.remove());let i=this.#e;if([...i.content.children].length!==1){this.querySelectorAll(":scope > :not(template, [data-card-list-status])").forEach(r=>r.remove()),this.#s.clear();let n=document.createDocumentFragment();for(let r of this.#t){let a=i.content.cloneNode(!0);this.#d(a,r),n.appendChild(a)}this.prepend(n)}else{let n=$h(this.#t,this.#i),r=this.#t.map((c,l)=>({item:c,key:n[l]})),a=Me({newItems:r,nodes:this.#s,keyOf:c=>c.key,renderItem:c=>{let u=i.content.cloneNode(!0).firstElementChild;return this.#d(u,c.item),u},containerFor:()=>this}),o=new Set(a.added);for(let{item:c,key:l}of r){if(o.has(l))continue;let u=this.#s.get(l);u&&this.#d(u,c)}}this.dispatchEvent(new CustomEvent("card-list:rendered",{detail:{count:this.#t.length},bubbles:!0})),this.dispatchEvent(new CustomEvent("card-list:items-changed",{detail:{items:this.#t,source:t},bubbles:!0}))}#d(t,i){let s=n=>{let r=[...t.querySelectorAll(n)];return t instanceof Element&&t.matches(n)&&r.unshift(t),r};s("[data-field]").forEach(n=>{let r=Yt(i,n.getAttribute("data-field"));n.textContent=r??""}),s("[data-field-attr]").forEach(n=>{for(let{attr:r,path:a}of Lh(n.getAttribute("data-field-attr"))){if(!ho(a))continue;let o=Yt(i,a);if(r.startsWith("on")||po.has(r)){console.warn(`[card-list] Refusing to bind "${r}" from data`);continue}let c=r.startsWith("aria-");o==null||o===!1&&!c?n.removeAttribute(r):Dh(r,o)?n.setAttribute(r,o===!0&&!c?"":String(o)):(console.warn(`[card-list] Unsafe value refused for "${r}"`),n.removeAttribute(r))}}),s("[data-field-html]").forEach(n=>{n.innerHTML=Gt(Yt(i,n.getAttribute("data-field-html")))}),s("[data-field-if]").forEach(n=>{n.hidden=!Yt(i,n.getAttribute("data-field-if"))}),s("[data-field-unless]").forEach(n=>{n.hidden=!!Yt(i,n.getAttribute("data-field-unless"))})}get items(){return this.#t}set items(t){this.#l(),this.#t=Array.isArray(t)?t:[],this.#r=!0,this.#e&&this.hasAttribute("data-upgraded")?this.#h("api"):this.#n="api"}};b("card-list",as);var mo=`
134
+ `;Rt();var Vn="lucide",fy=new Set([Vn,"custom"]),Ml=new Map,Hn=new Set,zn=new Map,_l=new Map;function py(e,t){let i=`${e}/${t}`,s=_l.get(i);return s||(s=fetch(`${i}.json`).then(n=>n.ok?n.json():null).then(n=>Array.isArray(n)?new Set(n.map(String)):null).catch(()=>null),_l.set(i,s)),s}function my(e){if(!e.includes("<svg"))return null;let t=new DOMParser().parseFromString(e,"image/svg+xml"),i=t.documentElement;return!i||i.localName!=="svg"||t.querySelector("parsererror")?null:(Ll(i),i.removeAttribute("width"),i.removeAttribute("height"),document.importNode(i,!0))}function $l(e){let t=Ml.get(e);if(t)return Promise.resolve(t);if(Hn.has(e))return Promise.reject(new Error(`Icon not found: ${e}`));let i=zn.get(e);return i||(i=fetch(e).then(async s=>{if(!s.ok)throw Hn.add(e),new Error(`Icon not found: ${e}`);let n=my(await s.text());if(!n)throw Hn.add(e),new Error(`Invalid SVG: ${e}`);return Ml.set(e,n),n}).finally(()=>zn.delete(e)),zn.set(e,i)),i}async function gy(e,t,i){if(t!==Vn){let s=fy.has(t)?null:await py(e,t);if(!s||s.has(i))try{return await $l(ie({basePath:e,set:t,name:i}))}catch{}}return $l(ie({basePath:e,set:Vn,name:i}))}var Un=class e extends HTMLElement{static#t=new Set;static#e=null;static#i(){e.#e||(e.#e=new MutationObserver(t=>{let i=document.documentElement;for(let s of t){let n=s.target;for(let r of e.#t)(n===i||n.contains(r))&&r.#l()}}),e.#e.observe(document.documentElement,{subtree:!0,attributes:!0,attributeFilter:["data-icon-set","data-icon-path"]}))}static get observedAttributes(){return["name","set","label","base-path"]}#n=0;#s="";#o="";#r="";#a=null;constructor(){super();let t=this.attachShadow({mode:"open"});t.innerHTML=`<style>${El}</style><slot></slot>`}get name(){return this.getAttribute("name")||""}get set(){return this.getAttribute("set")||Fi(this)}get size(){return this.getAttribute("size")||"md"}get label(){return this.getAttribute("label")}get basePath(){return this.getAttribute("base-path")||Oi()}get iconPath(){return ie({basePath:this.basePath,set:this.set,name:this.name})}connectedCallback(){e.#t.add(this),e.#i(),this.#l(),this.#a=()=>{let t=this.#c();t&&(t.style.stroke="none",requestAnimationFrame(()=>{t.style.stroke=""}))},window.addEventListener("vb:theme-change",this.#a),this.setAttribute("data-upgraded","")}disconnectedCallback(){this.removeAttribute("data-upgraded"),e.#t.delete(this),this.#a&&(window.removeEventListener("vb:theme-change",this.#a),this.#a=null)}attributeChangedCallback(t,i,s){i===s||!this.isConnected||(t==="label"?this.#p():this.#l())}#c(){return this.shadowRoot?.querySelector("svg")??null}#l(){let t=this.name,i=`${this.basePath}|${this.set}|${t}`;if(i===this.#s){this.#p();return}if(i===this.#o||i===this.#r)return;let s=++this.#n;if(this.#o=i,this.#r="",!t){this.#o="",this.#d("No icon name specified",i);return}let n=this.basePath,r=this.set;gy(n,r,t).then(a=>{s===this.#n&&(this.#o="",this.#m(a.cloneNode(!0),i))},a=>{s===this.#n&&(this.#o="",this.#d(a.message,i))})}#m(t,i){let s=this.shadowRoot,n=this.#c()||s.querySelector("slot");n?n.replaceWith(t):s.append(t),this.#s=i,this.removeAttribute("data-error"),this.#p()}#p(){let t=this.#c();if(!t)return;let i=this.label;i?(t.setAttribute("role","img"),t.setAttribute("aria-label",i),t.removeAttribute("aria-hidden")):(t.removeAttribute("role"),t.removeAttribute("aria-label"),t.setAttribute("aria-hidden","true"))}#d(t,i){this.#r=i,this.setAttribute("data-error","true"),console.warn(`icon-wc: ${t}`);let s=this.#c();s&&s.replaceWith(document.createElement("slot")),this.#s=""}};E("icon-wc",Un);re();var Cy="dialog, [data-toc-ignore], browser-window";function qi(e){return!!e.closest(Cy)}function Fl(e){if(typeof e.checkVisibility!="function"||e.checkVisibility()||e.closest("details:not([open])")?.checkVisibility())return!0;let i=e.closest('[hidden="until-found"]');return!!i?.parentElement&&(i.parentElement.checkVisibility?.()??!0)}var Ty=["h2","h3"],Ly=1500,Ny=0;function My(e){let t=String(e).normalize("NFC").toLowerCase().trim().replace(/[^\p{L}\p{M}\p{N}\s_-]/gu,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");return Array.from(t).slice(0,50).join("").replace(/-$/,"")||"section"}function _y(e,t){let i=e,s=1;for(;t(i);)i=`${e}-${s++}`;return i}function $y(e){let t=(e??"").split(",").map(i=>i.trim().toLowerCase()).filter(i=>/^h[1-6]$/.test(i));return t.length?[...new Set(t)]:Ty}var Kn=class extends k{static get observedAttributes(){return["levels","data-label-anchor"]}#t;#e=new WeakMap;setup(){this.#s(),this.listen(this,"click",this.#a),this.#t=new MutationObserver(t=>{t.some(i=>i.type==="childList")&&this.#s()}),this.#t.observe(this,{childList:!0,subtree:!0})}teardown(){this.#t?.disconnect(),this.#t=void 0}attributeChangedCallback(t,i,s){i===s||!this.hasAttribute("data-upgraded")||this.#s()}get#i(){return this.getAttribute("data-label-anchor")||"Copy link to"}#n(t){return t.closest("heading-links")!==this?!1:!qi(t)}#s(){let t=$y(this.getAttribute("levels")).join(","),i=this.#i;for(let s of this.querySelectorAll(".heading-anchor[data-heading-links]")){if(s.closest("heading-links")!==this)continue;let n=s.parentElement;!n||!n.matches(t)||!this.#n(n)?this.#r(n,s):s.getAttribute("aria-label")!==i&&s.setAttribute("aria-label",i)}for(let s of this.querySelectorAll(t))this.#n(s)&&this.#o(s)}#o(t){if(t.id||(t.id=_y(My(t.textContent??""),a=>!!document.getElementById(a))),t.querySelector(":scope > .heading-anchor"))return;let i=++Ny,s=document.createElement("span");s.className="heading-text",s.id=`heading-links-text-${i}`,s.append(...t.childNodes),t.append(s),!t.hasAttribute("aria-label")&&!t.hasAttribute("aria-labelledby")&&(t.setAttribute("aria-labelledby",s.id),t.setAttribute("data-heading-links-labelled",""));let n=document.createElement("a");n.className="heading-anchor",n.id=`heading-links-anchor-${i}`,n.dataset.headingLinks="",n.href=`#${t.id}`,n.setAttribute("aria-label",this.#i),n.setAttribute("aria-labelledby",`${n.id} ${s.id}`);let r=document.createElement("icon-wc");r.setAttribute("name","link"),r.setAttribute("size","sm"),n.append(r),t.append(n),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1")}#r(t,i){if(i.remove(),!t)return;let s=t.querySelector(":scope > .heading-text");s&&s.replaceWith(...s.childNodes),t.hasAttribute("data-heading-links-labelled")&&(t.removeAttribute("aria-labelledby"),t.removeAttribute("data-heading-links-labelled"))}#a=t=>{let i=t,n=(i.target instanceof Element?i.target:null)?.closest("a.heading-anchor[data-heading-links]");if(!n||n.closest("heading-links")!==this||i.defaultPrevented||i.button!==0||i.metaKey||i.ctrlKey||i.shiftKey||i.altKey)return;let r=n.parentElement;r?.id&&(i.preventDefault(),this.#c(r,n))};async#c(t,i){En(t,t.id);let s=new URL(document.URL);if(s.hash=t.id,this.dispatchEvent(new CustomEvent("heading-links:navigate",{bubbles:!0,detail:{id:t.id,url:s.href,heading:t}})),!await gt(s.href,{announceMessage:this.getAttribute("data-label-copied")||"Link copied to clipboard"}))return;let r=i.querySelector("icon-wc");i.dataset.state="copied",r?.setAttribute("name","check"),clearTimeout(this.#e.get(i)),this.#e.set(i,setTimeout(()=>{delete i.dataset.state,r?.setAttribute("name","link"),this.#e.delete(i)},Ly))}};E("heading-links",Kn);var Xn=class extends k{#t;#e=[];#i=new Map;#n;#s=null;#o=0;#r=0;#a;#c=0;#l=!1;setup(){this.#n=window.matchMedia("(min-width: 64rem)"),this.listen(this.#n,"change",this.#u),this.listen(window,"resize",this.#y),this.listen(window,"hashchange",this.#h),this.listen(this,"click",this.#w),this.#r=requestAnimationFrame(()=>{this.#r=0,this.#p()})}teardown(){cancelAnimationFrame(this.#r),this.#r=0,cancelAnimationFrame(this.#c),this.#c=0,clearTimeout(this.#o),this.#m()}get entries(){return this.#e.map(t=>({id:t.id||void 0,text:t.textContent?.trim()||"",level:parseInt(t.tagName.slice(1),10)||0}))}refresh(){this.isConnected&&(cancelAnimationFrame(this.#r),this.#r=0,this.#p())}#m(){this.#t?.disconnect(),this.#t=void 0,this.#a?.disconnect(),this.#a=void 0;for(let t of this.querySelectorAll(":scope > [data-page-toc-generated]"))t.remove();this.#e=[],this.#i.clear(),this.#s=null,this.#l=!1}#p(){this.#m(),this.#l=this.#d(),this.#l?this.#f():(this.#N(),this.#v()),this.#s&&this.#g()&&(this.#s.open=!0),this.#C(),this.#A()}#d(){return Array.from(this.querySelectorAll("nav, details")).some(t=>!t.closest("[data-page-toc-generated]"))}#f(){this.#s=this.querySelector("details");for(let t of this.querySelectorAll('a[href^="#"]')){let i=Yn(t.getAttribute("href")?.slice(1)||"");if(!i)continue;let s=document.getElementById(i);!s||this.#i.has(i)||(this.#e.push(s),this.#i.set(i,t),t.classList.add("link"))}}#g(){return this.#n?.matches??!1}#u=t=>{t.matches&&this.#s&&(this.#s.open=!0)};#y=()=>{clearTimeout(this.#o),this.#o=window.setTimeout(()=>this.#A(),150)};#h=()=>{this.#A()};#w=t=>{let i=t.target instanceof Element?t.target:null;if(!i)return;let s=i.closest("summary");if(s&&this.#s&&s.parentElement===this.#s&&this.#g()){t.preventDefault();return}let n=i.closest('a[href^="#"]');if(!n||!this.contains(n)||t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;let r=Yn(n.getAttribute("href")?.slice(1)||"");if(this.#i.get(r)!==n)return;let a=document.getElementById(r);a&&(t.preventDefault(),this.#_(a))};#A(){let t=Yn(window.location.hash.slice(1));t&&this.#i.has(t)&&this.#S(t)}#S(t){for(let s of this.#i.values())s.classList.remove("active"),s.removeAttribute("aria-current");let i=this.#i.get(t);i&&(i.classList.add("active"),i.setAttribute("aria-current","true"))}#b(){return(this.getAttribute("levels")||"h2,h3").split(",").map(t=>t.trim().toLowerCase())}#k(){return document.querySelector(this.getAttribute("scope")||"main")}#E(t){return Array.from(t.querySelectorAll(this.#b().join(","))).filter(i=>i.id&&!this.contains(i)&&!qi(i)&&Fl(i))}#v(){let t=this.#k();t&&(this.#a=new MutationObserver(i=>{i.every(s=>this.contains(s.target))||this.#c||(this.#c=requestAnimationFrame(()=>{this.#c=0;let s=this.#E(t);s.length===this.#e.length&&s.every((r,a)=>r===this.#e[a]&&this.#i.has(r.id))||this.#p()}))}),this.#a.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-toc-ignore","id","hidden"]}))}#N(){let t=this.#b(),i=this.dataset.title||"On this page",s=this.#k();if(!s||(this.#e=this.#E(s),this.#e.length===0))return;let n={depth:-1,children:[]},r=[n];for(let u of this.#e){let d=t.indexOf(u.tagName.toLowerCase());for(;r[r.length-1].depth>=d;)r.pop();let h={heading:u,depth:d,children:[]};r[r.length-1].children.push(h),r.push(h)}let a=u=>{let d=document.createElement("ul");d.className="list";for(let h of u){let f=document.createElement("li");f.className="item",f.dataset.level=String(h.depth);let p=document.createElement("a");p.href=`#${h.heading.id}`,p.className="link",p.textContent=this.#x(h.heading),f.appendChild(p),h.children.length&&f.appendChild(a(h.children)),d.appendChild(f),this.#i.set(h.heading.id,p)}return d},o=document.createElement("details");o.className="details",o.setAttribute("data-page-toc-generated",""),o.open=!0;let c=document.createElement("summary");c.className="summary",c.textContent=i,o.appendChild(c);let l=document.createElement("nav");l.className="nav",l.setAttribute("aria-label",i),l.appendChild(a(n.children)),o.appendChild(l),this.#s=o,this.appendChild(o)}#x(t){let i=t.cloneNode(!0);return i.querySelectorAll(".heading-anchor").forEach(n=>n.remove()),i.textContent.trim()}#_(t){let i=new URL(window.location.href);i.hash=t.id,window.history.pushState(null,"",i);let s=window.matchMedia("(prefers-reduced-motion: reduce)").matches;t.scrollIntoView({behavior:s?"auto":"smooth",block:"start"}),t.hasAttribute("tabindex")||t.setAttribute("tabindex","-1"),t.focus({preventScroll:!0}),this.#S(t.id),this.dispatchEvent(new CustomEvent("page-toc:navigate",{bubbles:!0,detail:{id:t.id}}))}#C(){if(this.#e.length===0)return;let t=new Set;this.#t=new IntersectionObserver(i=>{for(let s of i)s.isIntersecting?t.add(s.target.id):t.delete(s.target.id);this.#F(t)},{rootMargin:"-80px 0px -70% 0px",threshold:0});for(let i of this.#e)this.#t.observe(i)}#F(t){for(let i of this.#e)if(t.has(i.id)){this.#S(i.id);return}this.#A()}};function Yn(e){try{return decodeURIComponent(e)}catch{return e}}E("page-toc",Xn);function Bi({newItems:e,nodes:t,keyOf:i,renderItem:s,containerFor:n}){let r=[],a=[],o=[],c=new Set;for(let u of e)c.add(i(u));for(let[u,d]of[...t])c.has(u)||(d.remove(),t.delete(u),o.push(u));let l=new Map;for(let u of e){let d=i(u),h=t.get(d)||null,f=n(u,h);l.has(f)||l.set(f,[]),l.get(f)?.push({item:u,key:d,existing:h})}for(let[u,d]of l)for(let h=0;h<d.length;h++){let{item:f,key:p,existing:m}=d[h],g=m;g?(g.parentElement!==u||u.children[h]!==g)&&a.push(p):(g=s(f),t.set(p,g),r.push(p));let b=u.children[h];b!==g&&u.insertBefore(g,b||null)}return{added:r,moved:a,removed:o}}var Zn=":scope > tr:not([data-expand-content])",Jn=class e extends k{#t;#e;#i=[];#n=[];#s=[];#o=-1;#r=null;#a=1;#c=0;#l=null;#m=null;#p=null;#d="";#f=null;#g=null;#u=null;#y=null;#h=[];#w=new Map;#A=[];setup(){return this.#t=this.querySelector(":scope > table"),!this.#t||(this.#e=this.#t.querySelector("tbody"),!this.#e)?!1:(this.#S(),!0)}teardown(){this.#F(),this.#i=[],this.#n=[],this.#s=[]}#S(){this.#n=[...this.#e.querySelectorAll(Zn)],this.#s=[...this.#n],this.#a=1,this.#o=-1,this.#r=null,this.#d="",this.#c=0,this.#A=[...this.#t.tHead?.rows[0]?.cells||[]].map(i=>({key:i.getAttribute("data-key")||i.textContent.trim().toLowerCase(),label:i.textContent.trim(),sort:i.getAttribute("data-sort")||void 0})),this.#w.clear(),this.#h=[];for(let i of this.#n){let s=i.getAttribute("data-id")||i.getAttribute("data-key");s&&(this.#w.set(s,i),this.#h.push({id:s}))}this.#v(),this.#N(),this.#C(),this.#H(),this.#U(),this.#t.hasAttribute("data-filterable")&&this.#Y();let t=this.#t.getAttribute("data-paginate");t&&(this.#c=parseInt(t,10),this.#c>0&&this.#z()),this.#B(),this.#j(),this.#K()}get rows(){return this.#h}set rows(t){let i=t||[],s=Bi({newItems:i,nodes:this.#w,keyOf:n=>n.id,renderItem:n=>this._renderRow(n),containerFor:()=>this.#e});this.#h=i,this.#n=[...this.#e.querySelectorAll(Zn)],this.#N(),this.#C(),this.#$(this.#d),this.dispatchEvent(new CustomEvent("data-table:rows-changed",{detail:{rows:i,added:s.added,moved:s.moved,removed:s.removed,source:"api"},bubbles:!0}))}get columns(){return this.#A}_renderRow(t){let i=this;if(typeof i.renderRow=="function"){let n=i.renderRow(t,this.#A);if(!(n instanceof Element))throw new Error("data-table: renderRow must return an Element");return n.hasAttribute("data-id")||n.setAttribute("data-id",String(t.id)),n}let s=document.createElement("tr");s.setAttribute("data-id",String(t.id));for(let n of this.#A){let r=document.createElement("td"),a=t[n.key];r.textContent=a==null?"":String(a),s.appendChild(r)}return s}#b=[];#k=[];#E=[];#v(){let t=[...this.#t.tHead?.rows[0]?.cells||[]];this.#b=t.map(i=>{let s=parseFloat(i.getAttribute("data-weight"));return Number.isFinite(s)?s:null}),this.#k=t.map(i=>i.getAttribute("data-rollup")||null),this.#E=t.map(i=>i.getAttribute("data-heatmap")||null)}#N(){if(this.#k.some(Boolean))for(let t=0;t<this.#k.length;t++){let i=this.#k[t];if(i)for(let s of this.#n){let n=s.children[t];if(!n)continue;let r=this.#x(s,t,i),a=e.#_(r);n.textContent=a,n.setAttribute("data-rollup-value",String(r)),n.hasAttribute("data-sort-value")||n.setAttribute("data-sort-value",String(r))}}}#x(t,i,s){let n=[...t.children],r=0,a=0,o=-1/0,c=0,l=1,u=!1;for(let d=0;d<n.length;d++){if(d===i||this.#k[d])continue;let h=n[d].getAttribute("data-sort-value")??n[d].textContent??"",f=parseFloat(h);if(!Number.isFinite(f))continue;r+=f,a++,f>o&&(o=f),l*=f,u=!0;let p=this.#b[d];p!==null&&(c+=f*p)}switch(s){case"sum":return r;case"avg":return a?r/a:0;case"max":return o===-1/0?0:o;case"weighted-sum":return c;case"product":return u?l:0;default:return r}}static#_(t){return Number.isFinite(t)?Number.isInteger(t)?String(t):(Math.round(t*100)/100).toString():""}#C(){if(this.#E.some(Boolean))for(let t=0;t<this.#E.length;t++){let i=this.#E[t];if(!i)continue;let s=this.#n.map(c=>{let l=c.children[t];if(!l)return null;let u=l.getAttribute("data-rollup-value")??l.getAttribute("data-sort-value")??l.textContent??"",d=parseFloat(u);return Number.isFinite(d)?d:null}),n=s.filter(c=>c!==null);if(!n.length)continue;let r=Math.min(...n),o=Math.max(...n)-r||1;for(let c=0;c<this.#n.length;c++){let l=this.#n[c].children[t];if(!l)continue;let u=s[c];if(u===null){l.removeAttribute("data-heat-level");continue}let d=(u-r)/o;i==="low-good"&&(d=1-d);let h=d<.34?"low":d<.67?"mid":"high";l.setAttribute("data-heat-level",h)}}}#F(){this.#p&&clearTimeout(this.#p),this.#l?.parentElement?.remove(),this.#m?.remove(),this.#u?.remove(),this.#y?.remove(),this.#l=null,this.#m=null,this.#u=null,this.#y=null}#D(t,i){return this.dataset[`label${t}`]||i}#H(){let t=document.createElement("span");t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-atomic","true"),t.setAttribute("data-table-status",""),t.className="visually-hidden",this.appendChild(t),this.#u=t}#R(t){let i=this.#u;i&&(i.textContent=i.textContent===t?`${t}\xA0`:t)}#U(){this.#t.querySelectorAll("thead th[data-sort]").forEach((i,s)=>{let n=i.getAttribute("data-sort"),r=this.#L(i);this.#i.push({th:i,sortType:n,columnIndex:r}),i.setAttribute("aria-sort","none"),e.#M(i),i.dataset.columnIndex=r,this.listen(i,"click",this.#O)})}static#M(t){if(t.querySelector(":scope > button[data-sort-button]"))return;let i=document.createElement("button");i.type="button",i.setAttribute("data-sort-button",""),i.append(...t.childNodes),t.appendChild(i)}#L(t){return[...t.parentElement.children].indexOf(t)}#O=t=>{let i=t.currentTarget,s=t.target.closest?.("a, input, select, textarea, button:not([data-sort-button])");if(s&&i.contains(s))return;let n=parseInt(i.dataset.columnIndex,10);this.#I(n)};#Q(t,i,s){let n=this.#s;if(n.length<2)return!0;let r=s==="asc"?1:-1;for(let a=1;a<n.length;a++){let o=this.#q(n[a-1].children[t],i),c=this.#q(n[a].children[t],i);if((typeof o=="string"?o.localeCompare(c)*r:(o-c)*r)>0)return!1}return!0}#I(t){let i=this.#i.find(r=>r.columnIndex===t);if(!i)return;let s;this.#o===t?s=this.#r==="asc"?"desc":"asc":this.#Q(t,i.sortType,"asc")?s="desc":s="asc",this.#i.forEach(({th:r})=>{r.setAttribute("aria-sort","none")}),i.th.setAttribute("aria-sort",s==="asc"?"ascending":"descending"),this.#o=t,this.#r=s,this.#T(t,s,i.sortType),this.#a=1,this.#K();let n=i.th.textContent.trim();this.#R(`Sorted by ${n}, ${s==="asc"?"ascending":"descending"}`),this.dispatchEvent(new CustomEvent("data-table:sort",{detail:{column:t,direction:s,columnName:n},bubbles:!0}))}#T(t,i,s){let n=i==="asc"?1:-1;this.#s.sort((r,a)=>{let o=r.children[t],c=a.children[t];if(!o||!c)return 0;let l=this.#q(o,s),u=this.#q(c,s),d=0;switch(s){case"number":d=l-u;break;case"date":d=l-u;break;default:d=l.localeCompare(u,void 0,{numeric:!0,sensitivity:"base"});break}return d*n})}#q(t,i){let n=t.getAttribute("data-sort-value")??t.textContent.trim();switch(i){case"number":return parseFloat(n)||0;case"date":return new Date(n).getTime()||0;default:return n.toLowerCase()}}#Y(){let t=document.createElement("div");t.setAttribute("data-table-filter","");let i=document.createElement("input");i.type="search",i.setAttribute("data-filter-input",""),i.setAttribute("placeholder","Filter table..."),i.setAttribute("aria-label","Filter table rows"),t.appendChild(i),this.insertBefore(t,this.#t),this.#l=i;let s=document.createElement("p");s.setAttribute("data-table-empty",""),s.hidden=!0,s.textContent=this.#D("NoResults","No matching rows found"),this.#t.after(s),this.#y=s,this.listen(i,"input",this.#tt)}#tt=t=>{let i=t.target.value;this.#p&&clearTimeout(this.#p),this.#p=setTimeout(()=>{this.#$(i,{announce:!0})},150)};#$(t,{announce:i=!1,keepPage:s=!1}={}){if(this.#d=String(t??"").toLowerCase().trim(),this.#d===""?this.#s=[...this.#n]:this.#s=this.#n.filter(n=>[...n.children].some(a=>(a.getAttribute("data-filter-value")??a.textContent).toLowerCase().includes(this.#d))),this.#o>=0&&this.#r){let n=this.#i.find(r=>r.columnIndex===this.#o);n&&this.#T(this.#o,this.#r,n.sortType)}if(s?this.#a=Math.min(this.#a,this.totalPages):this.#a=1,this.#K(),i){let n=this.#s.length,r=this.#n.length;this.#R(n===0?this.#D("NoResults","No matching rows found"):this.#d?`${n} of ${r} ${r===1?"row":"rows"} shown`:`All ${r} ${r===1?"row":"rows"} shown`)}this.dispatchEvent(new CustomEvent("data-table:filter",{detail:{query:this.#d,count:this.#s.length},bubbles:!0}))}#z(){let t=document.createElement("nav");t.setAttribute("data-pagination",""),t.setAttribute("aria-label","Table pagination"),this.appendChild(t),this.#m=t}#B(){for(let t of this.#e.querySelectorAll(":scope > tr[data-expandable]")){let i=t.querySelector('[data-action="toggle-expand"]');i&&i.setAttribute("aria-expanded",String(t.hasAttribute("data-state-expanded")))}this.listen(this.#t,"click",this.#X)}#X=t=>{let i=t.target.closest('[data-action="toggle-expand"]');if(!i)return;let s=i.closest("tr[data-expandable]");if(!s)return;let n=s.hasAttribute("data-state-expanded"),r=s.nextElementSibling;n?(s.removeAttribute("data-state-expanded"),i.setAttribute("aria-expanded","false"),r?.hasAttribute("data-expand-content")&&(r.hidden=!0,r.setAttribute("aria-hidden","true"))):(s.setAttribute("data-state-expanded",""),i.setAttribute("aria-expanded","true"),r?.hasAttribute("data-expand-content")&&(r.hidden=!1,r.removeAttribute("aria-hidden"))),this.dispatchEvent(new CustomEvent("data-table:expand",{detail:{row:s,expanded:!n},bubbles:!0}))};#j(){this.#f=this.#t.querySelector('thead [data-action="select-all"]'),this.#f&&this.listen(this.#f,"change",this.#P),this.listen(this.#e,"change",this.#it),this.#g=this.querySelector("[data-selected-count]"),this.#W()}#P=t=>{let i=t.target.checked;this.#e.querySelectorAll("tr[data-selectable]").forEach(n=>{let r=n.querySelector('[data-action="select-row"]');i?(n.setAttribute("data-state-selected",""),r&&(r.checked=!0)):(n.removeAttribute("data-state-selected"),r&&(r.checked=!1))}),t.target.indeterminate=!1,this.#Z(),this.#V(),this.#G()};#it=t=>{let i=t.target.closest('[data-action="select-row"]');if(!i)return;let s=i.closest("tr[data-selectable]");s&&(i.checked?s.setAttribute("data-state-selected",""):s.removeAttribute("data-state-selected"),this.#W(),this.#V(),this.#G())};#V(){let t=this.getSelectedRows().length;this.#R(`${t} ${t===1?"row":"rows"} selected`)}#W(){if(!this.#f){this.#Z();return}let t=this.#e.querySelectorAll("tr[data-selectable]"),i=this.#e.querySelectorAll("tr[data-selectable][data-state-selected]"),s=t.length,n=i.length;n===0?(this.#f.checked=!1,this.#f.indeterminate=!1):n===s?(this.#f.checked=!0,this.#f.indeterminate=!1):(this.#f.checked=!1,this.#f.indeterminate=!0),this.#Z()}#Z(){let i=this.#e.querySelectorAll("tr[data-selectable][data-state-selected]").length;this.#g&&(this.#g.textContent=i)}#G(){let t=[...this.#e.querySelectorAll("tr[data-selectable][data-state-selected]")];this.dispatchEvent(new CustomEvent("data-table:selection",{detail:{count:t.length,rows:t},bubbles:!0}))}#J(){if(!this.#m||this.#c<=0)return;let t=this.#m,i=Math.ceil(this.#s.length/this.#c),s=document.activeElement,n=null;if(s instanceof HTMLElement&&t.contains(s)&&(n=s.hasAttribute("data-pagination-prev")?"prev":s.hasAttribute("data-pagination-next")?"next":"page"),t.replaceChildren(),i<=1)return;let r=document.createElement("button");r.type="button",r.textContent="Previous",r.setAttribute("data-pagination-prev",""),r.disabled=this.#a===1,r.addEventListener("click",()=>this.goToPage(this.#a-1)),t.appendChild(r),this.#st(i).forEach(c=>{if(c==="..."){let l=document.createElement("span");l.textContent="...",l.setAttribute("data-pagination-ellipsis",""),t.appendChild(l)}else{let l=document.createElement("button");l.type="button",l.textContent=c,l.setAttribute("data-pagination-page",""),c===this.#a&&(l.setAttribute("aria-current","page"),l.setAttribute("data-current","")),l.addEventListener("click",()=>this.goToPage(c)),t.appendChild(l)}});let o=document.createElement("button");if(o.type="button",o.textContent="Next",o.setAttribute("data-pagination-next",""),o.disabled=this.#a===i,o.addEventListener("click",()=>this.goToPage(this.#a+1)),t.appendChild(o),n){let c=t.querySelector('[aria-current="page"]');(n==="prev"&&!r.disabled?r:n==="next"&&!o.disabled?o:c)?.focus()}}#st(t){let i=this.#a,s=[];if(t<=7)for(let n=1;n<=t;n++)s.push(n);else{s.push(1),i>3&&s.push("...");let n=Math.max(2,i-1),r=Math.min(t-1,i+1);for(let a=n;a<=r;a++)s.push(a);i<t-2&&s.push("..."),s.push(t)}return s}#K(){this.#n.forEach(s=>{s.setAttribute("data-state-hidden",""),this.#et(s)?.setAttribute("data-state-hidden","")});let t;if(this.#c>0){let s=(this.#a-1)*this.#c,n=s+this.#c;t=this.#s.slice(s,n)}else t=this.#s;t.forEach(s=>{s.removeAttribute("data-state-hidden");let n=this.#et(s);this.#e.appendChild(s),n&&(n.removeAttribute("data-state-hidden"),this.#e.appendChild(n))}),this.#s.forEach(s=>{if(s.hasAttribute("data-state-hidden")){let n=this.#et(s);this.#e.appendChild(s),n&&this.#e.appendChild(n)}});let i=new Set(this.#s);this.#n.forEach(s=>{if(!i.has(s)){let n=this.#et(s);this.#e.appendChild(s),n&&this.#e.appendChild(n)}}),this.#y&&(this.#y.hidden=!(this.#d&&this.#s.length===0&&this.#n.length>0)),this.#J()}#et(t){if(!t.hasAttribute("data-expandable"))return null;let i=t.nextElementSibling;return i?.hasAttribute("data-expand-content")?i:null}goToPage(t){if(this.#c<=0)return;let i=Math.max(1,Math.ceil(this.#s.length/this.#c)),s=Math.max(1,Math.min(Math.trunc(Number(t))||1,i));s!==this.#a&&(this.#a=s,this.#K(),this.dispatchEvent(new CustomEvent("data-table:page",{detail:{page:this.#a},bubbles:!0})))}setFilter(t){this.#l&&(this.#l.value=t),this.#$(t,{announce:!0})}refresh(){this.#e&&(this.#n=[...this.#e.querySelectorAll(Zn)],this.#N(),this.#C(),this.#$(this.#d,{keepPage:!0}),this.#W())}get currentPage(){return this.#a}get totalPages(){return this.#c<=0?1:Math.max(1,Math.ceil(this.#s.length/this.#c))}get filteredCount(){return this.#s.length}get totalCount(){return this.#n.length}getSelectedRows(){return this.#e?[...this.#e.querySelectorAll("tr[data-selectable][data-state-selected]")]:[]}};E("data-table",Jn);je();var Vy={trigger:"Search",dialog:"Site search",placeholder:"Search documentation...",input:"Search",results:"Search results",searching:"Searching...",empty:"No results found",count:"{count} results","count-one":"1 result",unavailable:"Search unavailable",error:"Search error. Please try again.",untitled:"Untitled",navigate:"to navigate",select:"to select",close:"to close",powered:"Powered by"},Uy=0,Vi=new Set,He=null;function Wy(e){return typeof e.checkVisibility=="function"?e.checkVisibility():e.getClientRects().length>0}function Gy(){let e=[...Vi].filter(s=>s.isConnected),t=e.find(s=>s.isOpen);if(t){t.close();return}(e.find(s=>Wy(s))??e[0])?.open()}function Ky(e){Vi.add(e),!He&&!Kl().includes("meta+k")&&(He=At("meta+k",Gy,{global:!0}))}function Yy(e){Vi.delete(e),Vi.size===0&&He&&(He(),He=null)}function z(e,t={},i=[]){let s=document.createElement(e);for(let[n,r]of Object.entries(t))s.setAttribute(n,r);return s.append(...i),s}function Xy(e){let t=document.createDocumentFragment();if(!e||typeof e!="string")return t;let i=document.createElement("template");i.innerHTML=e;let s=(n,r)=>{for(let a of n.childNodes)if(a.nodeType===Node.TEXT_NODE)r.appendChild(document.createTextNode(a.textContent??""));else if(a.nodeType===Node.ELEMENT_NODE)if(a.localName==="mark"){let o=document.createElement("mark");s(a,o),r.appendChild(o)}else s(a,r)};return s(i.content,t),t}function Zy(e){if(typeof e!="string"||!e)return null;try{let t=new URL(e,document.baseURI);return t.protocol!=="http:"&&t.protocol!=="https:"||t.origin!==location.origin?null:t.href}catch{return null}}var er=class e extends k{static#t=150;static#e=8;#i=null;#n=null;#s=null;#o=null;#r=null;#a=[];#c=-1;#l=!1;#m=0;#p="";#d=null;#f=!1;#g=null;setup(){this.#p||(this.#p=`site-search-${++Uy}`),this.#y(),this.#h(),Ky(this)}teardown(){Yy(this),this.#l&&(document.body.style.overflow="",this.removeAttribute("open"),this.#i?.setAttribute("aria-expanded","false"),this.#l=!1),this.#D(),this.#m++,this.#a=[],this.#c=-1,this.#n?.remove(),this.#n=null}#u(t){let i=`data-label-${t}`;return this.getAttribute(i)??Vy[t]}get value(){return this.#s?.value??""}set value(t){if(!this.#s)return;let i=t==null?"":String(t);this.#s.value!==i&&(this.#s.value=i,this.#s.dispatchEvent(new Event("input",{bubbles:!0})),this.dispatchEvent(new CustomEvent("site-search:change",{detail:{value:i,source:"api"},bubbles:!0})))}get results(){return[...this.#a]}#y(){this.#i=this.querySelector(":scope > [data-trigger]"),this.#i||(this.#i=this.querySelector(":scope > button")),this.#i||(this.#i=z("button",{type:"button","data-trigger":""},[z("icon-wc",{name:"search",label:this.#u("trigger")})]),this.prepend(this.#i));let t=`${this.#p}-dialog`,i=`${this.#p}-results`;this.#i.setAttribute("aria-haspopup","dialog"),this.#i.setAttribute("aria-expanded","false"),this.#i.setAttribute("aria-controls",t),this.#s=z("input",{type:"search",name:"search",class:"input",placeholder:this.#u("placeholder"),autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false",role:"combobox","aria-label":this.#u("input"),"aria-autocomplete":"list","aria-controls":i,"aria-expanded":"false"}),this.#o=z("div",{class:"results",id:i,role:"listbox","aria-label":this.#u("results")}),this.#r=z("p",{class:"status",role:"status"});let s=n=>z("kbd",{},[n]);this.#n=z("dialog",{class:"dialog",id:t,"aria-label":this.#u("dialog")},[z("search",{class:"search"},[z("div",{class:"input-wrapper"},[z("icon-wc",{name:"search",class:"icon"}),this.#s,z("kbd",{class:"shortcut","aria-hidden":"true"},["Esc"])]),this.#r,this.#o]),z("div",{class:"footer"},[z("span",{class:"hint"},[s("\u2191"),s("\u2193"),` ${this.#u("navigate")} `,s("\u21B5"),` ${this.#u("select")} `,s("esc"),` ${this.#u("close")}`]),z("span",{class:"powered"},[`${this.#u("powered")} `,z("a",{href:"https://pagefind.app",target:"_blank",rel:"noopener"},["Pagefind"])])])]),this.appendChild(this.#n)}#h(){this.listen(this.#i,"click",this.#w),this.#n.addEventListener("close",this.#A),this.#n.addEventListener("click",this.#S),this.#s.addEventListener("input",this.#b),this.#s.addEventListener("keydown",this.#k),this.#o.addEventListener("click",this.#E)}#w=t=>{t.stopPropagation(),this.open()};#A=()=>{this.#l&&!this.#n?.open&&this.#H()};#S=t=>{if(t.target!==this.#n)return;let i=this.#n.getBoundingClientRect();t.clientX>=i.left&&t.clientX<=i.right&&t.clientY>=i.top&&t.clientY<=i.bottom||this.close()};#b=()=>{this.#D(),this.setState("input-debounce-pending",!0),this.#g=setTimeout(()=>{this.#g=null,this.setState("input-debounce-pending",!1),this.#_(this.#s.value)},e.#t)};#k=t=>{switch(t.key){case"ArrowDown":t.preventDefault(),this.#F(this.#c+1);break;case"ArrowUp":t.preventDefault(),this.#F(this.#c-1);break;case"Escape":t.preventDefault(),this.close();break;case"Enter":{t.preventDefault();let i=this.#c>=0?this.#c:0,s=this.#o.querySelector(`[data-result-index="${i}"]`)?.getAttribute("href");s&&(this.close(),window.location.assign(s));break}}};#E=t=>{t.target.closest("[data-result-index]")&&(t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||setTimeout(()=>this.close(),0))};get#v(){let t=this.getAttribute("data-pagefind-path")||"/pagefind/";return t.endsWith("/")?t:`${t}/`}async#N(){if(this.#d||this.#f)return;let t=new URL(this.#v,document.baseURI),i=this.getAttribute("data-base-url")??new URL("..",t).pathname;try{let s=await import(new URL("pagefind.js",t).href);await s.options({excerptLength:20,baseUrl:i}),this.#d=s}catch{this.#f=!0,console.warn(`[site-search] Pagefind not found at ${t.pathname}pagefind.js. Run \`npm run search:index\` after building, or set data-pagefind-path.`)}}#x(t){this.#r&&(this.#r.textContent=t)}async#_(t){let i=++this.#m;if(!t.trim()){this.#C([]);return}if(this.#x(this.#u("searching")),await this.#N(),i===this.#m){if(!this.#d){this.#a=[],this.#C([]),this.#x(this.#u("unavailable"));return}try{let s=await this.#d.search(t),n=await Promise.all((s?.results??[]).slice(0,e.#e).map(r=>r.data()));if(i!==this.#m)return;this.#a=n,this.#C(n)}catch(s){if(i!==this.#m)return;console.error("[site-search] Search error:",s),this.#a=[],this.#C([]),this.#x(this.#u("error"))}}}#C(t){this.#c=-1,this.#s.removeAttribute("aria-activedescendant");let i=[];for(let s of t){let n=Zy(s?.url);if(!n)continue;let r=z("span",{class:"result-title"});r.textContent=String(s.meta?.title||this.#u("untitled"));let a=z("span",{class:"result-excerpt"});a.append(Xy(s.excerpt||"")),i.push(z("a",{id:`${this.#p}-result-${i.length}`,href:n,class:"result",role:"option","aria-selected":"false","data-result-index":String(i.length),tabindex:"-1"},[r,a]))}this.#o.replaceChildren(...i),this.#s.setAttribute("aria-expanded",i.length?"true":"false"),this.#s.value.trim()?i.length===0?this.#x(this.#u("empty")):this.#x(i.length===1?this.#u("count-one"):this.#u("count").replace("{count}",String(i.length))):this.#x("")}#F(t){let i=this.#o.querySelectorAll("[data-result-index]");if(i.length===0)return;t<0&&(t=i.length-1),t>=i.length&&(t=0);for(let n of i)n.removeAttribute("data-active"),n.setAttribute("aria-selected","false");this.#c=t;let s=i[t];s.setAttribute("data-active",""),s.setAttribute("aria-selected","true"),this.#s.setAttribute("aria-activedescendant",s.id),s.scrollIntoView({block:"nearest"})}#D(){this.#g&&(clearTimeout(this.#g),this.#g=null),this.setState("input-debounce-pending",!1)}open(){if(!(this.#l||!this.#n)){if(this.#l=!0,this.setAttribute("open",""),this.#i?.setAttribute("aria-expanded","true"),document.body.style.overflow="hidden",!this.#n.open)try{this.#n.showModal()}catch{this.#n.setAttribute("open","")}this.#s.focus(),this.#s.select(),this.#N(),this.dispatchEvent(new CustomEvent("site-search:open",{bubbles:!0}))}}close(){this.#l&&(this.#n?.open&&this.#n.close(),this.#l&&this.#H())}#H(){this.#l=!1,this.removeAttribute("open"),this.#i?.setAttribute("aria-expanded","false"),document.body.style.overflow="",this.#D(),this.#m++,this.#a=[],this.#c=-1,this.#s&&(this.#s.value="",this.#s.removeAttribute("aria-activedescendant"),this.#s.setAttribute("aria-expanded","false")),this.#o?.replaceChildren(),this.#x(""),this.#i?.focus(),this.dispatchEvent(new CustomEvent("site-search:close",{bubbles:!0}))}get isOpen(){return this.#l}};E("site-search",er);Rt();Rt();var Jy=/^[a-zA-Z_$][a-zA-Z0-9_$]*(\.[a-zA-Z_$][a-zA-Z0-9_$]*|\[\d+\])*$/;function Xl(e){return!e||typeof e!="string"?!1:Jy.test(e.trim())}function ze(e,t){if(!Xl(t)){console.warn(`[card-list] Unsafe property path rejected: "${t}"`);return}let s=String(t).replace(/\[(\d+)\]/g,".$1").split("."),n=e;for(let r of s){if(n==null)return;n=n[r]}return n}function Qy(e){return e?e.split(",").map(t=>{let[i,s]=t.split(":").map(n=>n.trim());return{attr:(i||"").toLowerCase(),path:s}}).filter(({attr:t,path:i})=>t&&i):[]}var tv=new Set(["href","src","action","formaction","xlink:href","poster","cite","background","ping","data","manifest","longdesc","codebase"]),Zl=new Set(["srcdoc","style","is"]),ev=new Set(["http:","https:","mailto:","tel:"]);function Jl(e){let t=String(e).replace(/[\u0000-\u0020\u007f]+/g,"");if(!t)return!0;let i=/^([a-z][a-z0-9+.-]*):/i.exec(t);return i?ev.has(`${i[1].toLowerCase()}:`):!0}function iv(e){return String(e).split(",").every(t=>Jl(t.trim().split(/\s+/)[0]||""))}function sv(e,t){return e.startsWith("on")||Zl.has(e)||!/^[a-z_][a-z0-9_.:-]*$/.test(e)?!1:e==="srcset"||e==="imagesrcset"?iv(t):tv.has(e)?Jl(t):!0}function nv(e,t){let i=new Set;return e.map((s,n)=>{let r=s!=null&&typeof s=="object"?s[t]:void 0,a=r==null?null:`k:${String(r)}`;return a==null||i.has(a)?`i:${n}`:(i.add(a),a)})}var Yl=":scope > [data-card-list-status]",ir=class extends k{#t=null;#e=[];#i="id";#n=new Map;#s=!1;#o=null;#r=null;static get observedAttributes(){return["src","data-items","data-key"]}setup(){if(this.#t=this.querySelector(":scope > template")||this.querySelector("template"),!this.#t)return console.warn("[card-list] No template found"),!1;if(this.#i=this.getAttribute("data-key")||"id",this.#s)return this.#o&&this.#d(this.#o),this.#o=null,!0;let t=this.getAttribute("data-items");if(t)return this.#a(t),!0;let i=this.getAttribute("src");return i&&this.#p(i),!0}teardown(){this.#c()}attributeChangedCallback(t,i,s){i!==s&&this.hasAttribute("data-upgraded")&&(t==="data-items"?s&&this.#a(s):t==="src"?s?this.#p(s):this.#c():t==="data-key"&&(this.#i=s||"id",this.#d("attribute")))}#a(t){this.#c();try{let i=JSON.parse(t);this.#e=Array.isArray(i)?i:[],this.#s=!0,this.#d("attribute")}catch(i){console.error("[card-list] Invalid JSON in data-items:",i)}}#c(){this.#r&&(this.#r.abort(),this.#r=null,this.removeAttribute("data-loading"),this.removeAttribute("aria-busy"),this.#m(""))}#l(){let t=this.querySelector(Yl);return t||(t=document.createElement("p"),t.setAttribute("role","status"),t.setAttribute("data-card-list-status",""),this.append(t)),t}#m(t){let i=this.querySelector(Yl);!i&&!t||((i||this.#l()).textContent=t)}async#p(t){this.#c();let i=new AbortController;this.#r=i,this.removeAttribute("data-error"),this.setAttribute("data-loading",""),this.setAttribute("aria-busy","true"),this.#l().textContent="Loading\u2026";try{let s=await fetch(t,{signal:i.signal});if(!s.ok)throw new Error(`HTTP ${s.status}`);let n=await s.json();if(i.signal.aborted)return;this.#e=Array.isArray(n)?n:n?.items||n?.data||[],this.#s=!0,this.#m(""),this.#d("attribute")}catch(s){if(i.signal.aborted)return;let n=s instanceof Error?s.message:String(s);console.error("[card-list] Fetch error:",s),this.setAttribute("data-error",n),this.#m(`Error: ${n}`)}finally{this.#r===i&&(this.#r=null,this.removeAttribute("data-loading"),this.removeAttribute("aria-busy"))}}#d(t){if(!this.#t)return;this.querySelectorAll(":scope > [data-fallback]").forEach(n=>n.remove());let i=this.#t;if([...i.content.children].length!==1){this.querySelectorAll(":scope > :not(template, [data-card-list-status])").forEach(r=>r.remove()),this.#n.clear();let n=document.createDocumentFragment();for(let r of this.#e){let a=i.content.cloneNode(!0);this.#f(a,r),n.appendChild(a)}this.prepend(n)}else{let n=nv(this.#e,this.#i),r=this.#e.map((c,l)=>({item:c,key:n[l]})),a=Bi({newItems:r,nodes:this.#n,keyOf:c=>c.key,renderItem:c=>{let u=i.content.cloneNode(!0).firstElementChild;return this.#f(u,c.item),u},containerFor:()=>this}),o=new Set(a.added);for(let{item:c,key:l}of r){if(o.has(l))continue;let u=this.#n.get(l);u&&this.#f(u,c)}}this.dispatchEvent(new CustomEvent("card-list:rendered",{detail:{count:this.#e.length},bubbles:!0})),this.dispatchEvent(new CustomEvent("card-list:items-changed",{detail:{items:this.#e,source:t},bubbles:!0}))}#f(t,i){let s=n=>{let r=[...t.querySelectorAll(n)];return t instanceof Element&&t.matches(n)&&r.unshift(t),r};s("[data-field]").forEach(n=>{let r=ze(i,n.getAttribute("data-field"));n.textContent=r??""}),s("[data-field-attr]").forEach(n=>{for(let{attr:r,path:a}of Qy(n.getAttribute("data-field-attr"))){if(!Xl(a))continue;let o=ze(i,a);if(r.startsWith("on")||Zl.has(r)){console.warn(`[card-list] Refusing to bind "${r}" from data`);continue}let c=r.startsWith("aria-");o==null||o===!1&&!c?n.removeAttribute(r):sv(r,o)?n.setAttribute(r,o===!0&&!c?"":String(o)):(console.warn(`[card-list] Unsafe value refused for "${r}"`),n.removeAttribute(r))}}),s("[data-field-html]").forEach(n=>{n.replaceChildren(se(ze(i,n.getAttribute("data-field-html"))))}),s("[data-field-if]").forEach(n=>{n.hidden=!ze(i,n.getAttribute("data-field-if"))}),s("[data-field-unless]").forEach(n=>{n.hidden=!!ze(i,n.getAttribute("data-field-unless"))})}get items(){return this.#e}set items(t){this.#c(),this.#e=Array.isArray(t)?t:[],this.#s=!0,this.#t&&this.hasAttribute("data-upgraded")?this.#d("api"):this.#o="api"}};E("card-list",ir);var Ql=`
191
135
  :host {
192
136
  --_padding: var(--score-card-padding, var(--size-l, 1.5rem));
193
137
  --_radius: var(--score-card-radius, var(--radius-m, 0.5rem));
@@ -202,8 +146,8 @@ svg {
202
146
  --_text: var(--score-card-text, var(--color-text, #1a1a1a));
203
147
  --_muted: var(--score-card-muted, var(--color-text-muted, #6b7280));
204
148
  --_accent: var(--score-card-tone-accent, var(--color-interactive, var(--color-primary, #6366f1)));
205
- --_trend-up: var(--score-card-trend-up, var(--color-success, #16a34a));
206
- --_trend-down: var(--score-card-trend-down, var(--color-error, #dc2626));
149
+ --_trend-up: var(--score-card-trend-up, var(--color-success-text, var(--color-success, #15803d)));
150
+ --_trend-down: var(--score-card-trend-down, var(--color-error-text, var(--color-error, #b91c1c)));
207
151
  --_trend-flat: var(--score-card-trend-flat, var(--color-text-muted, #6b7280));
208
152
  --_focus: var(--color-focus-ring, var(--color-interactive, currentColor));
209
153
  --_duration: var(--score-card-duration, var(--duration-fast, 150ms));
@@ -216,7 +160,6 @@ svg {
216
160
  border: var(--_border);
217
161
  border-radius: var(--_radius);
218
162
  padding: var(--_padding);
219
- container-type: inline-size;
220
163
  }
221
164
 
222
165
  *, *::before, *::after { box-sizing: border-box; }
@@ -266,6 +209,12 @@ svg {
266
209
  .description { grid-area: description; }
267
210
  .icon { grid-area: icon; }
268
211
 
212
+ /* Slotted children are often block elements (<p>) so the no-JS form
213
+ stacks; outer-scope margins beat ::slotted() unless important. */
214
+ ::slotted(*) {
215
+ margin-block: 0 !important;
216
+ }
217
+
269
218
  .title ::slotted(*) {
270
219
  margin: 0;
271
220
  font-size: var(--_title-size);
@@ -360,6 +309,17 @@ svg {
360
309
  :host(:state(loading)) .value { min-block-size: var(--_value-size); }
361
310
  :host(:state(loading)) .change { min-block-size: 1.4em; }
362
311
 
312
+ /* Forced colours drop the shimmer gradient; keep a visible skeleton edge
313
+ so hidden regions don't read as empty gaps. */
314
+ @media (forced-colors: active) {
315
+ :host(:state(loading)) .value,
316
+ :host(:state(loading)) .sparkline,
317
+ :host(:state(loading)) .change {
318
+ outline: 1px solid GrayText;
319
+ outline-offset: -1px;
320
+ }
321
+ }
322
+
363
323
  @keyframes score-card-shimmer {
364
324
  from { background-position: 200% 0; }
365
325
  to { background-position: -200% 0; }
@@ -372,8 +332,8 @@ svg {
372
332
  background: color-mix(in oklch, var(--_muted) 18%, transparent);
373
333
  }
374
334
  }
375
- `;var Ih=new Set(["up","down","flat"]),go=["change","sparkline","description","icon"],qh=`
376
- <style>${mo}</style>
335
+ `;var rv=new Set(["up","down","flat"]),tu=["change","sparkline","description","icon"],av=`
336
+ <style>${Ql}</style>
377
337
  <div class="card" part="card">
378
338
  <span class="title" part="title"><slot name="title"></slot></span>
379
339
  <span class="value" part="value"><slot name="value"><slot></slot></slot></span>
@@ -382,36 +342,40 @@ svg {
382
342
  <span class="description" part="description"><slot name="description" data-slot="description"></slot></span>
383
343
  <span class="icon" part="icon"><slot name="icon" data-slot="icon"></slot></span>
384
344
  </div>
385
- `,os=class extends y{static get observedAttributes(){return["trend","loading"]}setup(){if(this.shadowRoot)for(let t of go){let i=this.shadowRoot.querySelector(`slot[name="${t}"]`);this.#e(t,i)}else{let t=this.attachShadow({mode:"open"});t.innerHTML=qh;for(let i of go){let s=t.querySelector(`slot[name="${i}"]`);s?.addEventListener("slotchange",()=>this.#e(i,s)),this.#e(i,s)}}this.#t(),this.#i(),this.#s()}attributeChangedCallback(t){this.isConnected&&(t==="trend"?this.#t():t==="loading"&&this.#i())}#e(t,i){let s=!!i&&i.assignedNodes({flatten:!0}).some(n=>n.nodeType===Node.ELEMENT_NODE||n.nodeType===Node.TEXT_NODE&&n.textContent.trim().length>0);this.setState(`has-${t}`,s)}#t(){let t=(this.getAttribute("trend")||"").toLowerCase();for(let i of Ih)this.setState(`trend-${i}`,i===t)}#i(){this.setState("loading",this.hasAttribute("loading"))}#s(){let t=this.closest("a[href]");this.setState("interactive",!!t)}};b("score-card",os);var Bh=0;function Ie(e,t){return e.matches("content-swap")?t:`data-${t}`}function De(e){let t=e.querySelector(':scope > [data-face="front"]'),i=e.querySelector(':scope > [data-face="back"]');if(!t||!i)return;e.style.viewTransitionName||(e.style.viewTransitionName=`content-swap-${++Bh}`);let s=e.matches("content-swap");s||e.setAttribute("data-swap-init","");let n=[];function r(l,u,d,h){l.addEventListener(u,d,h),n.push(()=>l.removeEventListener(u,d,h))}let a=[...e.querySelectorAll("[data-swap]")].filter(l=>l.parentElement?.closest("content-swap, [data-swap]")===e),o=a.length===0,c=e.querySelector(":scope > [data-swap-toggle]");if(o){if(!c){let l=document.createElement("button");l.type="button",l.setAttribute("data-swap-toggle",""),l.textContent="Show back",e.append(l),c=l}r(c,"click",l=>{l.stopPropagation(),gt(e,l.detail===0?"keyboard":"pointer")}),r(e,"click",l=>{let d=l.target.closest?.(Oh);d&&d!==e&&e.contains(d)||gt(e,"pointer")})}else c&&!c.hasAttribute("data-swap")&&c.remove(),c=null,a.forEach(l=>{r(l,"click",u=>{u.stopPropagation(),gt(e,"pointer")}),r(l,"keydown",u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),gt(e,"keyboard"))})});if(e.matches('[data-gesture="flick"], [data-gesture="swipe"]')&&(r(e,"swipe-left",()=>gt(e,"pointer")),r(e,"swipe-right",()=>gt(e,"pointer"))),!s){let l=new MutationObserver(()=>$e(e,t,i));l.observe(e,{attributes:!0,attributeFilter:["data-swapped"]}),n.push(()=>l.disconnect())}return $e(e,t,i),Fh([t,i]),()=>{for(let l of n)l();n.length=0}}var Oh='a[href], button, input, select, textarea, label, summary, [contenteditable=""], [contenteditable="true"], [tabindex]';function Fh(e){let t=e.map(i=>i.style.transition);for(let i of e)i.style.transition="none";for(let i of e)getComputedStyle(i).transform;e.forEach((i,s)=>{i.style.transition=t[s]})}function $e(e,t,i){let s=e.hasAttribute(Ie(e,"swapped"));t.inert=s,i.inert=!s,e.querySelector(":scope > [data-swap-toggle]")?.setAttribute("aria-pressed",String(s))}function vo(e){return{front:e.querySelector(':scope > [data-face="front"]'),back:e.querySelector(':scope > [data-face="back"]')}}function Kt(e,t,i="api"){let{front:s,back:n}=vo(e);if(!s||!n)return;let r=Ie(e,"swapped");if(t&&e.hasAttribute(r)||!t&&!e.hasAttribute(r))return;let a=document.activeElement,o=()=>{t?e.setAttribute(r,""):e.removeAttribute(r),$e(e,s,n),Ph(e,i);let u=t?n:s,d=t?s:n,h=u.querySelector("[autofocus]");h?h.focus():i==="keyboard"&&d.contains(a)&&Rh(u)},c=u=>{let d=e;typeof d.setState=="function"&&d.setState("transition-running",u)};c(!0);let l=Z(o);l&&l.finished&&typeof l.finished.finally=="function"?l.finished.finally(()=>c(!1)):c(!1)}function gt(e,t="api"){Kt(e,!e.hasAttribute(Ie(e,"swapped")),t)}function Ph(e,t="internal"){e.dispatchEvent(new CustomEvent("content-swap:swap",{detail:{swapped:e.hasAttribute(Ie(e,"swapped")),source:t},bubbles:!0}))}function Rh(e){let t=e.querySelector("[data-swap], button, a, input, select, textarea");t&&t.focus()}var cs=class extends y{static observedAttributes=["swapped"];#e=null;attributeChangedCallback(){if(!this.isConnected)return;let{front:t,back:i}=vo(this);t&&i&&$e(this,t,i)}setup(){this.#e=De(this)??null}teardown(){this.#e?.(),this.#e=null}flip(){Kt(this,!0)}unflip(){Kt(this,!1)}toggle(){gt(this)}get flipped(){return this.hasAttribute("swapped")}set flipped(t){Kt(this,!!t)}get swapped(){return this.hasAttribute("swapped")}set swapped(t){Kt(this,!!t)}};b("content-swap",cs);function bo(){document.querySelectorAll("[data-swap]:not(content-swap):not([data-swap-init])").forEach(e=>{e.querySelector(":scope > [data-face]")&&De(e)})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",bo):bo();var yo=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.hasAttribute("data-swap")&&!s.matches("content-swap")&&!s.hasAttribute("data-swap-init")&&s.querySelector(":scope > [data-face]")&&De(s),s.querySelectorAll("[data-swap]:not(content-swap):not([data-swap-init])").forEach(n=>{n.querySelector(":scope > [data-face]")&&De(n)})}});document.body?yo.observe(document.body,{childList:!0,subtree:!0}):document.addEventListener("DOMContentLoaded",()=>{yo.observe(document.body,{childList:!0,subtree:!0})});var ls=class extends y{#e=null;#t=!1;#i=null;setup(){this.hasAttribute("role")||this.setAttribute("role","navigation"),this.#n("pathname"),this.listen(window,"popstate",this.#r)}get items(){return this.#e?this.#e.map(t=>({...t})):Array.from(this.#s()).map(t=>({href:t.getAttribute("href")||"",label:t.textContent?.trim()||""}))}set items(t){if(!Array.isArray(t))return;let i=t.map(s=>({...s}));this.#e&&this.#p(this.#e,i)||(this.#e=i,this.#l(i),this.#n(this.#t?"property":"pathname"),this.dispatchEvent(new CustomEvent("nav-bar:items-changed",{detail:{items:this.items,source:"property"},bubbles:!0,composed:!0})))}get current(){if(this.#t)return this.#i;for(let t of this.#s())if(t.getAttribute("aria-current")==="page")return t.getAttribute("data-route")||t.getAttribute("href")||null;return null}set current(t){let i=this.current,s=t==null?null:String(t);this.#t=!0,this.#i=s,this.#o(s),i!==s&&this.dispatchEvent(new CustomEvent("nav-bar:current-changed",{detail:{current:s,previous:i,source:"property"},bubbles:!0,composed:!0}))}releaseCurrent(){this.#t&&(this.#t=!1,this.#i=null,this.#n("pathname"))}refresh(){this.#t||this.#n("pathname")}#s(){let t=this.querySelectorAll("a[data-nav-link]");return t.length>0?t:this.querySelectorAll(":scope > a")}#r=()=>{this.#t||this.#n("popstate")};#n(t){let i=this.current,s=this.#a();this.#o(s),i!==s&&this.dispatchEvent(new CustomEvent("nav-bar:current-changed",{detail:{current:s,previous:i,source:t},bubbles:!0,composed:!0}))}#a(){let t=window.location.pathname,i=Array.from(this.#s());if(i.length===0)return null;let s=this.getAttribute("data-match")==="exact",n=null,r=null,a=-1;for(let c of i){let l=c.getAttribute("href");if(!l||/^[a-z]+:/i.test(l)||l.startsWith("//"))continue;let u=l.split("?")[0].split("#")[0];if(u===t&&n==null){n=c;continue}!s&&u!=="/"&&(t===u||t.startsWith(u.replace(/\/$/,"")+"/"))&&u.length>a&&(r=c,a=u.length)}let o=n||r;return o?o.getAttribute("data-route")||o.getAttribute("href"):null}#o(t){let i=this.#s();for(let s of i){let n=s.getAttribute("data-route")||s.getAttribute("href");t!=null&&n===t?s.setAttribute("aria-current","page"):s.removeAttribute("aria-current")}}#l(t){this.#s().forEach(n=>n.remove());let s=document.createDocumentFragment();for(let n of t)s.appendChild(this.#c(n));this.appendChild(s)}#c(t){let i=document.createElement("a");if(i.href=t.href||"#",t.route&&i.setAttribute("data-route",t.route),t.external&&(i.target="_blank",i.rel="noopener noreferrer"),t.icon){let s=document.createElement("icon-wc");s.setAttribute("name",String(t.icon)),s.setAttribute("size","sm"),i.appendChild(s)}if(i.appendChild(document.createTextNode(t.label||"")),t.external){let s=document.createElement("span");s.className="sr-only",s.textContent=" (opens in new tab)",i.appendChild(s)}if(t.badge!=null){let s=document.createElement("span");s.className="badge",s.textContent=String(t.badge),i.appendChild(s)}return i}#p(t,i){if(t.length!==i.length)return!1;for(let s=0;s<t.length;s++){let n=Object.keys(t[s]).sort(),r=Object.keys(i[s]).sort();if(n.length!==r.length)return!1;for(let a=0;a<n.length;a++)if(n[a]!==r[a]||t[s][n[a]]!==i[s][r[a]])return!1}return!0}};b("nav-bar",ls);var Hh=0,ps=class extends y{#e;#t=[];#i;#s;#r;#n;#a;#o;#l=null;#c=0;#p=0;#m=!1;#h=!1;#d=!1;#f=null;#u=!1;#g=!1;#b=!1;#k=!1;#A=new WeakSet;get currentIndex(){return this.#c}get slideCount(){return this.#t.length}get playing(){return this.#l!==null}setup(){let t=[...this.children];if(t.length===0)return!1;this.#h=window.matchMedia("(prefers-reduced-motion: reduce)").matches||document.documentElement.hasAttribute("data-motion-reduced"),this.#d=this.hasAttribute("transition")&&!!document.startViewTransition,this.hasAttribute("transition")&&!this.#d&&this.removeAttribute("transition"),this.setAttribute("role","region"),this.setAttribute("aria-roledescription","carousel"),!this.hasAttribute("aria-label")&&!this.hasAttribute("aria-labelledby")&&this.setAttribute("aria-label","Carousel"),this.#e=document.createElement("div"),this.#e.className="carousel-track",this.#e.setAttribute("tabindex","0");let i=this.getAttribute("item-width");if(i&&i!=="auto"&&i!=="full"&&CSS.supports("inline-size",i)&&this.#e.style.setProperty("--_item-width",i),t.forEach((a,o)=>{a.setAttribute("role","group"),a.setAttribute("aria-roledescription","slide"),a.hasAttribute("aria-label")||(a.setAttribute("aria-label",`${o+1} of ${t.length}`),this.#A.add(a)),this.#e.appendChild(a)}),this.#t=[...this.#e.children],this.hasAttribute("autoplay")&&!this.#h&&this.#y(),this.#s=document.createElement("button"),this.#s.className="carousel-prev",this.#s.setAttribute("aria-label","Previous slide"),this.#s.innerHTML='<icon-wc name="chevron-left" size="sm"></icon-wc>',this.#r=document.createElement("button"),this.#r.className="carousel-next",this.#r.setAttribute("aria-label","Next slide"),this.#r.innerHTML='<icon-wc name="chevron-right" size="sm"></icon-wc>',this.getAttribute("indicators")!=="false"&&(this.#n=document.createElement("div"),this.#n.className="carousel-indicators",this.#n.setAttribute("role","group"),this.#n.setAttribute("aria-label","Slide indicators"),this.#t.forEach((a,o)=>{let c=document.createElement("button");c.className="carousel-dot",c.setAttribute("aria-label",`Go to slide ${o+1}`),c.setAttribute("aria-current",o===0?"true":"false"),this.listen(c,"click",()=>this.goTo(o)),this.#n.appendChild(c)})),this.#a=document.createElement("div"),this.#a.className="carousel-live",this.#a.setAttribute("aria-live","polite"),this.#a.setAttribute("aria-atomic","true"),this.#i&&this.appendChild(this.#i),this.appendChild(this.#s),this.appendChild(this.#e),this.appendChild(this.#r),this.#n&&this.appendChild(this.#n),this.appendChild(this.#a),this.listen(this.#s,"click",()=>this.prev()),this.listen(this.#r,"click",()=>this.next()),this.listen(this.#e,"keydown",this.#L),this.listen(this,"mouseenter",()=>{this.#b=!0,this.#v()}),this.listen(this,"mouseleave",()=>{this.#b=!1,this.#v()}),this.listen(this,"touchstart",()=>{this.#b=!0,this.#v()},{passive:!0}),this.listen(this,"focusin",()=>{this.#k=!0,this.#v()}),this.listen(this,"focusout",a=>{this.contains(a.relatedTarget)||(this.#k=!1,this.#v())}),this.#d){let a=++Hh,o=this.getAttribute("transition")||"fade",c=o==="slide"?"vt-carousel-slide":o==="scale"?"vt-carousel-scale":"vt-carousel";this.#e.style.viewTransitionName=`carousel-${a}`,this.#e.style.viewTransitionClass=c}if(this.#d){let a=this.#e;Promise.resolve().then(()=>(hs(),ds)).then(({addSwipeListener:o})=>{!this.isConnected||this.#e!==a||(this.#f=o(a,{threshold:40}),this.listen(a,"swipe-left",()=>this.#N()?this.prev():this.next()),this.listen(a,"swipe-right",()=>this.#N()?this.next():this.prev()))})}this.#d||(this.#o=new IntersectionObserver(this.#D,{root:this.#e,threshold:.5}),this.#t.forEach(a=>this.#o.observe(a)),"onscrollend"in window&&this.listen(this.#e,"scrollend",()=>{this.#m=!1,this.#O()}));let r=this.#B()??(Number(this.getAttribute("start"))||0);if(this.#d){let a=r>0&&r<this.#t.length?r:0;this.#t.forEach((o,c)=>{o.hidden=c!==a}),this.#_(a)}else r>0&&r<this.#t.length&&this.goTo(r,!1);return this.#F(),this.#b=this.#k=!1,this.#u=this.hasAttribute("autoplay")&&!this.#h&&!this.#g,this.#v(),!0}teardown(){this.#u=!1,this.#I(),this.#o&&(this.#o.disconnect(),this.#o=null),this.#f&&(this.#f(),this.#f=null),this.#e?.parentElement===this&&[...this.#e.children].forEach(t=>this.appendChild(t)),this.#t.forEach(t=>{this.#A.has(t)&&t.removeAttribute("aria-label")}),this.#e?.remove(),this.#i?.remove(),this.#s?.remove(),this.#r?.remove(),this.#n?.remove(),this.#a?.remove(),this.#e=this.#i=this.#s=this.#r=this.#n=this.#a=null,this.#t=[],this.#d=!1,this.#c=0,this.#p=0,this.#m=!1}get slides(){return this.#t.map((t,i)=>({id:t.id||void 0,html:t.innerHTML,label:t.getAttribute("aria-label")||`${i+1} of ${this.#t.length}`}))}set slides(t){let i=Array.isArray(t)?t:[];for(;this.firstChild;)this.firstChild.remove();for(let s of i){let n=document.createElement("div");s.id&&(n.id=s.id),s.label&&n.setAttribute("aria-label",s.label),n.innerHTML=s.html||"",this.appendChild(n)}this._reinit(),this.dispatchEvent(new CustomEvent("carousel-wc:slides-changed",{detail:{slides:i,source:"property"},bubbles:!0}))}next(){let t=this.hasAttribute("loop");this.#c<this.#t.length-1?this.goTo(this.#c+1):t&&this.goTo(0)}prev(){let t=this.hasAttribute("loop");this.#c>0?this.goTo(this.#c-1):t&&this.goTo(this.#t.length-1)}goTo(t,i=!0){if(!(t<0||t>=this.#t.length)){if(this.#d)if(i&&t!==this.#c){let s=t>this.#c?"forward":"backward";document.documentElement.dataset.vtDirection=s,Z(()=>{this.#w(t)}).finished?.then(()=>{delete document.documentElement.dataset.vtDirection})}else this.#w(t);else{let s=this.#t[t].getBoundingClientRect(),n=this.#e.getBoundingClientRect(),r=this.#N()?s.right-n.right:s.left-n.left,a=i&&!this.#h?"smooth":"instant";this.#e.scrollTo({left:this.#e.scrollLeft+r,behavior:a})}this.#_(t)}}#w(t){this.#t.forEach((i,s)=>{i.hidden=s!==t})}play(){this.#h||!this.#e||(this.#g=!1,this.#u=!0,this.#b=this.#k=!1,this.#i||(this.#y(),this.insertBefore(this.#i,this.firstChild)),this.#v())}pause(){this.#g=!0,this.#u=!1,this.#v()}#y(){let t=document.createElement("button");t.type="button",t.className="carousel-rotate",this.listen(t,"click",()=>{this.#u?this.pause():this.play()}),this.#i=t,this.#E()}#E(){let t=this.#i;if(!t)return;let i=this.#u?"Pause automatic slide show":"Start automatic slide show";t.getAttribute("aria-label")!==i&&(t.setAttribute("aria-label",i),t.innerHTML=`<icon-wc name="${this.#u?"pause":"play"}" size="sm"></icon-wc>`)}#v(){this.#u&&!this.#b&&!this.#k&&!this.#h&&this.isConnected&&!!this.#e?this.#C():this.#I(),this.#E()}#C(){if(this.#l)return;let t=Number(this.getAttribute("autoplay-delay"))||5e3;this.#l=setInterval(()=>this.next(),t),this.#a?.setAttribute("aria-live","off"),this.dispatchEvent(new CustomEvent("carousel-wc:play",{bubbles:!0}))}#I(){this.#a?.setAttribute("aria-live","polite"),this.#l&&(clearInterval(this.#l),this.#l=null,this.dispatchEvent(new CustomEvent("carousel-wc:pause",{bubbles:!0})))}#N(){return getComputedStyle(this).direction==="rtl"}reset(){let t=Number(this.getAttribute("start"))||0;this.goTo(t,!1),this.#S()}#_(t){this.#c=t,this.#F(),this.#$(),this.#a&&(this.#a.textContent=`Slide ${t+1} of ${this.#t.length}`),!this.#m&&(this.#O(),!this.#d&&"onscrollend"in window&&(this.#m=!0))}#O(){this.#c!==this.#p&&(this.#p=this.#c,this.dispatchEvent(new CustomEvent("carousel-wc:change",{detail:{index:this.#c,slide:this.#t[this.#c]},bubbles:!0})))}#F(){let t=this.hasAttribute("loop"),i=this.#c===0,s=this.#c===this.#t.length-1;if(this.#s&&(this.#s.disabled=!t&&i),this.#r&&(this.#r.disabled=!t&&s),this.#n){let n=this.#n.children;for(let r=0;r<n.length;r++){let a=r===this.#c;n[r].setAttribute("aria-current",a?"true":"false"),a?n[r].setAttribute("data-active",""):n[r].removeAttribute("data-active")}}}#D=t=>{for(let i of t)if(i.isIntersecting){let s=this.#t.indexOf(i.target);s!==-1&&s!==this.#c&&this.#_(s)}};#L=t=>{let i=(t.key==="ArrowLeft"||t.key==="ArrowRight")&&this.#N();switch(t.key){case"ArrowLeft":t.preventDefault(),i?this.next():this.prev();break;case"ArrowRight":t.preventDefault(),i?this.prev():this.next();break;case"Home":t.preventDefault(),this.goTo(0);break;case"End":t.preventDefault(),this.goTo(this.#t.length-1);break}};#B(){let t=this.getAttribute("persist");if(!t)return null;try{let i=localStorage.getItem(`carousel:${t}`);return i!==null?Number(i):null}catch{return null}}#$(){let t=this.getAttribute("persist");if(t)try{localStorage.setItem(`carousel:${t}`,String(this.#c))}catch{}}#S(){let t=this.getAttribute("persist");if(t)try{localStorage.removeItem(`carousel:${t}`)}catch{}}};b("carousel-wc",ps);var zh=0,fs=class extends y{static formAssociated=!0;#e;#t;#i;#s;#r=[];#n=[];#a=-1;#o=!1;#l="";#c="";#p;#m=!1;#h;#d;#f=[];constructor(){super(),this.#e=this.attachInternals(),this._adoptInternals(this.#e)}get#u(){return this.hasAttribute("multiple")}setup(){let t=this.querySelector(":scope > input")||this.querySelector(":scope > .tags-input-area > input");if(!t)return!1;this.#t=t;let i=this.#t.getAttribute("name");i&&(this.hasAttribute("name")||this.setAttribute("name",i),this.#t.removeAttribute("name"));let s=this.querySelector("ul, ol");if(!s)return!1;if(this.#i=s,this.#u){let c=this.querySelector(":scope > .tags-input-area");if(!c){c=document.createElement("div"),c.className="tags-input-area";let u=this.querySelector(":scope > pop-over[data-combobox-host]")||this.#i;this.insertBefore(c,u)}this.#h=c,this.#t.parentNode!==this.#h&&this.#h.appendChild(this.#t);let l=this.querySelector(":scope > [data-combobox-live]");l||(l=document.createElement("div"),l.setAttribute("aria-live","polite"),l.setAttribute("aria-atomic","true"),l.setAttribute("data-combobox-live",""),l.className="visually-hidden",this.appendChild(l)),this.#d=l}let n=this.getAttribute("placeholder");n&&!this.#t.getAttribute("placeholder")&&this.#t.setAttribute("placeholder",n);let r=`cb${++zh}`;this.#i.id||(this.#i.id=`combobox-listbox-${r}`),this.#t.setAttribute("role","combobox"),this.#t.setAttribute("aria-expanded","false"),this.#t.setAttribute("aria-autocomplete","list"),this.#t.setAttribute("aria-controls",this.#i.id),this.#t.setAttribute("autocomplete","off"),this.#i.setAttribute("role","listbox"),this.#u&&this.#i.setAttribute("aria-multiselectable","true");let a=this.#u?this.#h:this.#t;a.id||(a.id=`combobox-anchor-${r}`);let o=this.querySelector(":scope > pop-over[data-combobox-host]");if(o?this.#s=o:(this.#s=document.createElement("pop-over"),this.#s.setAttribute("data-combobox-host",""),this.#s.id=`combobox-pop-${r}`,this.#s.dataset.mode="manual",this.#s.dataset.position="bottom-start",this.#s.dataset.anchor=a.id,this.#s.appendChild(this.#i),this.appendChild(this.#s)),this.#s.dataset.anchor=a.id,this.#i.parentElement!==this.#s&&this.#s.appendChild(this.#i),this.#k(),!this.#u){let c=this.getAttribute("value");c&&this.#S(c,!1),this.#p===void 0&&(this.#p=this.#l)}return this.listen(this.#t,"input",this.#v),this.listen(this.#t,"keydown",this.#C),this.listen(this.#t,"focus",this.#I),this.listen(this.#t,"click",this.#N),this.listen(this.#i,"click",this.#_),this.listen(this.#i,"pointerdown",this.#O),this.listen(document,"click",this.#F),this.listen(this.#s,"pop-over:hide",this.#j),this.listen(this,"invalid",this.#g),this.#M(),this.#x(),this.#q(),this.#b(this.matches(":disabled")),!0}teardown(){}#g=()=>{this.#t.setAttribute("aria-invalid","true")};formDisabledCallback(t){this.#t&&this.#b(t)}#b(t){this.#m=t,t&&this.#q();let i=this.#y(),s=this.#u&&i>0&&this.#f.length>=i;if(this.#t.disabled=t||s,this.#h)for(let n of this.#h.querySelectorAll(".tag button"))n.disabled=t}#k(){this.#r=Array.from(this.#i.querySelectorAll(":scope > li[data-value]")),this.#r.forEach((t,i)=>{t.setAttribute("role","option"),t.setAttribute("aria-selected","false"),t.id||(t.id=`${this.#i.id}-option-${i}`)}),this.#n=[...this.#r]}#A(t,i){if(this.#f.some(o=>o.value===t))return;let s=this.#y();if(s&&this.#f.length>=s)return;this.#f.push({value:t,label:i});let n=document.createElement("span");n.className="tag",n.dataset.value=t,n.textContent=i+" ";let r=document.createElement("button");r.type="button",r.setAttribute("aria-label",`Remove ${i}`),r.innerHTML="&times;",r.disabled=this.#m,r.addEventListener("click",o=>{o.stopPropagation(),this.#w(t)}),n.appendChild(r),this.#h.insertBefore(n,this.#t);let a=this.#r.find(o=>o.getAttribute("data-value")===t);a&&a.setAttribute("aria-selected","true"),this.#E(`${i} added`),this.#t.value="",this.#D(""),this.#M(),this.#x(),this.#R(),s&&this.#f.length>=s&&(this.#t.disabled=!0,this.#q())}#w(t){let i=this.#f.findIndex(o=>o.value===t);if(i===-1)return;let s=this.#f.splice(i,1)[0],n=this.#h.querySelector(`.tag[data-value="${CSS.escape(t)}"]`);n&&n.remove();let r=this.#r.find(o=>o.getAttribute("data-value")===t);r&&r.setAttribute("aria-selected","false"),this.#E(`${s.label} removed`),this.#y()&&this.#t.disabled&&(this.#t.disabled=this.#m),this.#D(this.#t.value.trim()),this.#M(),this.#x(),this.#R(),this.#t.focus()}#y(){let t=this.getAttribute("max");return t?parseInt(t,10):0}#E(t){this.#d&&(this.#d.textContent="",requestAnimationFrame(()=>{this.#d.textContent=t}))}#v=()=>{let t=this.#t.value.trim();if(!this.#u&&this.#l){let i=this.#i.querySelector('[aria-selected="true"]');i&&i.setAttribute("aria-selected","false"),this.#l="",this.#c="",this.removeAttribute("value"),this.#M(),this.#x()}this.#D(t),this.#T()};#C=t=>{switch(t.key){case"ArrowDown":t.preventDefault(),this.#o||this.#T(),this.#L(this.#a+1);break;case"ArrowUp":t.preventDefault(),this.#o||this.#T(),this.#L(this.#a-1);break;case"Home":this.#o&&(t.preventDefault(),this.#L(0));break;case"End":this.#o&&(t.preventDefault(),this.#L(this.#n.length-1));break;case"Enter":if(t.preventDefault(),this.#o&&this.#a>=0&&this.#n[this.#a]){let i=this.#n[this.#a];this.#u?this.#A(i.getAttribute("data-value"),i.textContent.trim()):this.#$(i)}else if(this.#u&&this.hasAttribute("custom")&&this.#t.value.trim()){let i=this.#t.value.trim();this.#A(i,i)}break;case"Backspace":if(this.#u&&!this.#t.value&&this.#f.length>0){let i=this.#f[this.#f.length-1];this.#w(i.value)}break;case",":if(this.#u&&this.hasAttribute("custom")&&this.#t.value.trim()){t.preventDefault();let i=this.#t.value.trim();this.#A(i,i)}break;case"Escape":this.#o&&(t.preventDefault(),t.stopPropagation(),this.#q(),this.#t.focus());break;case"Tab":this.#o&&this.#q();break}};#I=()=>{this.#u?(this.#D(this.#t.value.trim()),this.#T()):(this.#t.value||!this.#l)&&(this.#D(this.#t.value.trim()),this.#T())};#N=()=>{this.#o||(this.#D(this.#t.value.trim()),this.#T())};#_=t=>{let i=t.target.closest("li[data-value]");i&&this.#n.includes(i)&&(this.#u?this.#A(i.getAttribute("data-value"),i.textContent.trim()):this.#$(i))};#O=t=>{t.preventDefault()};#F=t=>{this.#o&&!this.contains(t.target)&&this.#q()};#D(t){let i=this.getAttribute("filter")||"contains",s=t.toLowerCase(),n=this.#u?new Set(this.#f.map(r=>r.value)):null;this.#n=[],this.#r.forEach(r=>{let a=r.getAttribute("data-value"),o=r.textContent.trim().toLowerCase();if(n&&n.has(a)){r.hidden=!0;return}let c;t?i==="startsWith"?c=o.startsWith(s):c=o.includes(s):c=!0,r.hidden=!c,c&&this.#n.push(r)}),this.#a=-1,this.#B(),this.setState("no-matches",this.#n.length===0)}#L(t){if(this.#n.length===0)return;t<0&&(t=this.#n.length-1),t>=this.#n.length&&(t=0),this.#a>=0&&this.#n[this.#a]&&this.#n[this.#a].removeAttribute("data-active"),this.#a=t;let i=this.#n[t];i.setAttribute("data-active",""),i.scrollIntoView({block:"nearest"}),this.#t.setAttribute("aria-activedescendant",i.id)}#B(){this.#r.forEach(t=>t.removeAttribute("data-active")),this.#t.removeAttribute("aria-activedescendant")}#$(t,i="internal"){let s=t.getAttribute("data-value")||"",n=t.textContent.trim();if(this.#l===s){this.#t.value=n,this.#q(),this.#t.focus();return}this.#r.forEach(r=>r.setAttribute("aria-selected","false")),t.setAttribute("aria-selected","true"),this.#l=s,this.#c=n,this.#t.value=n,this.setAttribute("value",s),this.#M(),this.#x(),this.#q(),this.#t.focus(),this.dispatchEvent(new CustomEvent("combo-box:change",{bubbles:!0,detail:{value:s,label:n,source:i}}))}#S(t,i=!0,s="api"){let n=this.#r.find(r=>r.getAttribute("data-value")===t);n&&(i?this.#$(n,s):(this.#r.forEach(r=>r.setAttribute("aria-selected","false")),n.setAttribute("aria-selected","true"),this.#l=t,this.#c=n.textContent.trim(),this.#t.value=this.#c,this.setAttribute("value",t)))}#T(){this.#o||this.#m||(this.#o=!0,this.setAttribute("open",""),this.#t.setAttribute("aria-expanded","true"),this.#s?.show(),this.dispatchEvent(new CustomEvent("combo-box:open",{bubbles:!0})))}#q(){this.#o&&(this.#o=!1,this.removeAttribute("open"),this.#t.setAttribute("aria-expanded","false"),this.#a=-1,this.#B(),this.#s?.hide(),this.dispatchEvent(new CustomEvent("combo-box:close",{bubbles:!0})))}#j=()=>{this.#o&&(this.#o=!1,this.removeAttribute("open"),this.#t.setAttribute("aria-expanded","false"),this.#a=-1,this.#B(),this.dispatchEvent(new CustomEvent("combo-box:close",{bubbles:!0})))};#M(){if(this.#u)if(this.#f.length>0){let t=new FormData,i=this.getAttribute("name")||"";for(let s of this.#f)t.append(i,s.value);this.#e.setFormValue(t)}else this.#e.setFormValue(null);else this.#l?this.#e.setFormValue(this.#l,this.#c):this.#e.setFormValue(null)}#x(){this.hasAttribute("required")?this.#u?this.#f.length===0?this.#e.setValidity({valueMissing:!0},"Please select at least one option",this.#t):this.#e.setValidity({}):this.#l?this.#e.setValidity({}):this.#e.setValidity({valueMissing:!0},"Please select an option",this.#t):this.#e.setValidity({}),this.#e.validity.valid&&this.#t.removeAttribute("aria-invalid")}#R(){this.dispatchEvent(new CustomEvent("combo-box:change",{bubbles:!0,detail:{values:this.#f.map(t=>t.value),labels:this.#f.map(t=>t.label),source:"internal"}}))}formResetCallback(){this.#u?(this.#h.querySelectorAll(".tag").forEach(t=>t.remove()),this.#f=[],this.#t.value="",this.#t.disabled=this.#m):(this.#l="",this.#c="",this.#t.value="",this.removeAttribute("value")),this.#r.forEach(t=>{t.setAttribute("aria-selected","false"),t.hidden=!1}),this.#n=[...this.#r],this.#a=-1,this.#B(),this.#q(),this.#t.removeAttribute("aria-invalid"),!this.#u&&this.#p&&this.#S(this.#p,!1),this.#M(),this.#x()}formStateRestoreCallback(t){t&&(this.#u||(this.#S(t,!1),this.#M(),this.#x()))}get value(){return this.#l}set value(t){t?this.#S(t):this.#z()}#z(){this.#r.forEach(t=>t.setAttribute("aria-selected","false")),this.#l="",this.#c="",this.#t&&(this.#t.value=""),this.removeAttribute("value"),this.#M(),this.#x()}get label(){return this.#c}get values(){return this.#f.map(t=>t.value)}get labels(){return this.#f.map(t=>t.label)}static get observedAttributes(){return["value","disabled"]}attributeChangedCallback(t,i,s){if(!this.#t)return;if(t==="disabled"){this.#b(this.matches(":disabled"));return}let n=s??"";t==="value"&&n!==this.#l&&(n?(this.#S(n,!1),this.#M(),this.#x()):this.#z())}};b("combo-box",fs);function Vh(){try{let e=new Intl.DateTimeFormat(void 0,{hour:"numeric"}).resolvedOptions();return e.hourCycle==="h12"||e.hourCycle==="h11"?"12h":"24h"}catch{return"12h"}}function z(e){return String(e).padStart(2,"0")}function Lt(e){if(!e)return null;let t=e.split(":").map(Number);return{h:t[0]||0,m:t[1]||0,s:t[2]||0}}function Xt(e,t,i,s){return s?`${z(e)}:${z(t)}:${z(i)}`:`${z(e)}:${z(t)}`}function Uh(e,t,i,s,n){if(n==="12h"){let r=e>=12?"PM":"AM",a=e%12||12;return s?`${a}:${z(t)}:${z(i)} ${r}`:`${a}:${z(t)} ${r}`}return Xt(e,t,i,s)}function Co(e){let t=e.trim();if(!t)return null;let i=t.match(/\s*(am|pm|a\.m\.|p\.m\.|a|p)\s*$/i),s=null,n=t;i&&(s=i[1].toLowerCase().replace(/\./g,"").startsWith("p")?"PM":"AM",n=t.slice(0,i.index).trim());let r=n.split(/[:.]/);if(r.length<1||r.length>3)return null;let a=Number(r[0]),o=r.length>1?Number(r[1]):0,c=r.length>2?Number(r[2]):0;if(isNaN(a)||isNaN(o)||isNaN(c)||o<0||o>59||c<0||c>59)return null;let l=a;if(s){if(l<1||l>12)return null;s==="AM"?l=l===12?0:l:l=l===12?12:l+12}else if(l<0||l>23)return null;return{h:l,m:o,s:c}}function Wh(e,t,i){return e>i?t:e<t?i:e}var ms=class extends y{static formAssociated=!0;#e;#t;#i;#s;#r;#n;#a=[];#o;#l;#c;#p=0;#m=0;#h=0;#d="AM";#f=null;#u=null;#g=60;#b;#k=0;#A=!1;#w;constructor(){super(),this.#e=this.attachInternals(),this._adoptInternals(this.#e)}setup(){if(this.#t=this.querySelector(':scope > input[type="time"]'),!this.#t)return!1;this.#g=Number(this.#t.getAttribute("step"))||60,this.#c=this.#g<60,this.#f=Lt(this.#t.getAttribute("min")),this.#u=Lt(this.#t.getAttribute("max")),this.#l=this.getAttribute("data-format")||Vh();let t=Lt(this.#t.value);return t&&(this.#p=t.h,this.#m=t.m,this.#h=t.s),this.#b=this.#t.value,this.#l==="12h"&&(this.#d=this.#p>=12?"PM":"AM"),this.#t.setAttribute("tabindex","-1"),this.#t.setAttribute("aria-hidden","true"),this.#t.style.cssText="position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;overflow:hidden;",this.#y(),this.#E(),this.#j(),this.#M(),this.#x(),this.#R(),this.listen(document,"click",this.#_),(this.#t.disabled||this.hasAttribute("disabled"))&&(this.setAttribute("data-disabled",""),this.#i.disabled=!0),!0}#y(){if(this.#s?.parentNode===this)return;this.#s=document.createElement("div"),this.#s.className="time-trigger",this.#i=document.createElement("input"),this.#i.type="text",this.#i.className="time-input",this.#i.setAttribute("role","combobox"),this.#i.setAttribute("aria-haspopup","listbox"),this.#i.setAttribute("aria-expanded","false"),this.#i.setAttribute("autocomplete","off"),this.#i.setAttribute("placeholder","Type a time\u2026"),this.#s.appendChild(this.#i),this.#r=document.createElement("button"),this.#r.type="button",this.#r.className="time-trigger-icon",this.#r.setAttribute("aria-label","Toggle time spinner"),this.#r.setAttribute("tabindex","-1");let t=document.createElement("icon-wc");t.setAttribute("name","clock"),t.setAttribute("size","sm"),t.setAttribute("aria-hidden","true"),this.#r.appendChild(t),this.#s.appendChild(this.#r),this.appendChild(this.#s),this.listen(this.#r,"click",i=>{i.stopPropagation(),this.#A?this.#N():this.#I(),this.#i.focus()}),this.listen(this.#i,"focus",()=>this.#i.select()),this.listen(this.#i,"keydown",this.#O),this.listen(this.#i,"blur",this.#F)}#E(){if(this.#n?.parentNode===this)return;this.#w=`tp-${Math.random().toString(36).slice(2,8)}`,this.#n=document.createElement("div"),this.#n.className="time-panel",this.#n.id=this.#w,this.#n.setAttribute("role","group"),this.#n.setAttribute("aria-label","Time spinners"),this.#i.setAttribute("aria-controls",this.#w);let t=this.#l==="12h"?1:0,i=this.#l==="12h"?12:23,s=this.#v("Hours",t,i,1);this.#n.appendChild(s.el),this.#a.push(s),this.#n.appendChild(this.#C());let n=this.#g>=60?Math.max(1,Math.round(this.#g/60)):1,r=this.#v("Minutes",0,59,n);if(this.#n.appendChild(r.el),this.#a.push(r),this.#c){this.#n.appendChild(this.#C());let a=this.#v("Seconds",0,59,this.#g);this.#n.appendChild(a.el),this.#a.push(a)}this.#l==="12h"&&(this.#o=document.createElement("button"),this.#o.type="button",this.#o.className="period-toggle",this.#o.setAttribute("aria-label","Toggle AM/PM"),this.#o.textContent=this.#d,this.#n.appendChild(this.#o),this.listen(this.#o,"click",()=>{this.#d=this.#d==="AM"?"PM":"AM",this.#o.textContent=this.#d,this.#p=this.#z(this.#P(),this.#d),this.#q()}),this.listen(this.#o,"keydown",a=>{let o=a;o.key==="ArrowLeft"&&(o.preventDefault(),this.#H(this.#a.length-1)),o.key==="Escape"&&(o.preventDefault(),this.#N(),this.#i.focus())})),this.appendChild(this.#n)}#v(t,i,s,n){let r=document.createElement("div");r.className="time-spinner",r.setAttribute("role","spinbutton"),r.setAttribute("aria-label",t),r.setAttribute("aria-valuemin",String(i)),r.setAttribute("aria-valuemax",String(s)),r.setAttribute("tabindex","0");let a=document.createElement("button");a.type="button",a.className="time-inc",a.setAttribute("aria-hidden","true"),a.setAttribute("tabindex","-1"),a.innerHTML="&#x25B2;";let o=document.createElement("span");o.className="time-value";let c=document.createElement("button");c.type="button",c.className="time-dec",c.setAttribute("aria-hidden","true"),c.setAttribute("tabindex","-1"),c.innerHTML="&#x25BC;",r.appendChild(a),r.appendChild(o),r.appendChild(c);let l={el:r,valueEl:o,label:t,min:i,max:s,step:n};return this.listen(a,"click",()=>{this.#S(l,n)}),this.listen(c,"click",()=>{this.#S(l,-n)}),this.listen(r,"keydown",u=>{this.#D(u,l)}),this.listen(r,"focus",()=>{this.#k=this.#a.indexOf(l)}),l}#C(){let t=document.createElement("span");return t.className="time-sep",t.setAttribute("aria-hidden","true"),t.textContent=":",t}#I(){this.#A||(this.#A=!0,this.#n.setAttribute("data-open",""),this.#i.setAttribute("aria-expanded","true"))}#N(){this.#A&&(this.#A=!1,this.#n.removeAttribute("data-open"),this.#i.setAttribute("aria-expanded","false"))}#_=t=>{this.#A&&!this.contains(t.target)&&this.#N()};#O=t=>{switch(t.key){case"Enter":{t.preventDefault(),t.stopPropagation();let i=Co(this.#i.value);i&&(this.#p=i.h,this.#m=i.m,this.#h=i.s,this.#l==="12h"&&(this.#d=this.#p>=12?"PM":"AM"),this.#q()),this.#M(),this.#A&&this.#N();return}case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.#A||this.#I(),requestAnimationFrame(()=>this.#H(0));return;case"Escape":t.preventDefault(),t.stopPropagation(),this.#A&&this.#N(),this.#M();return;case"Tab":this.#A&&this.#N();return}};#F=t=>{if(t.relatedTarget&&this.contains(t.relatedTarget))return;let i=this.#i.value.trim();if(i){let s=Co(i);s&&(this.#p=s.h,this.#m=s.m,this.#h=s.s,this.#l==="12h"&&(this.#d=this.#p>=12?"PM":"AM"),this.#x(),this.#R(),this.dispatchEvent(new CustomEvent("time-picker:change",{bubbles:!0,detail:{value:Xt(this.#p,this.#m,this.#h,this.#c),hours:this.#p,minutes:this.#m,seconds:this.#h}})))}this.#M(),this.#A&&this.#N(),this.#t.dispatchEvent(new Event("blur",{bubbles:!0}))};#D=(t,i)=>{let s=this.#a.indexOf(i);switch(t.key){case"ArrowUp":t.preventDefault(),this.#S(i,i.step);break;case"ArrowDown":t.preventDefault(),this.#S(i,-i.step);break;case"ArrowRight":t.preventDefault(),s<this.#a.length-1?this.#H(s+1):this.#o&&this.#o.focus();break;case"ArrowLeft":t.preventDefault(),s>0&&this.#H(s-1);break;case"PageUp":t.preventDefault(),this.#S(i,i.step*(i.label==="Hours"?1:10));break;case"PageDown":t.preventDefault(),this.#S(i,-i.step*(i.label==="Hours"?1:10));break;case"Home":t.preventDefault(),this.#T(i,i.min);break;case"End":t.preventDefault(),this.#T(i,i.max);break;case"Escape":t.preventDefault(),this.#N(),this.#i.focus();break;default:/^\d$/.test(t.key)&&(t.preventDefault(),this.#$(t.key,i))}};#L="";#B=0;#$(t,i){clearTimeout(this.#B),this.#L+=t;let s=Number(this.#L);if(this.#L.length>=2||s*10>i.max){let n=Math.min(Math.max(s,i.min),i.max);this.#T(i,n),this.#L=""}else this.#B=setTimeout(()=>{let n=Number(this.#L),r=Math.min(Math.max(n,i.min),i.max);this.#T(i,r),this.#L=""},800)}#S(t,i){let s;t.label==="Hours"?s=this.#l==="12h"?this.#P():this.#p:t.label==="Minutes"?s=this.#m:s=this.#h;let n=Wh(s+i,t.min,t.max);this.#T(t,n)}#T(t,i){t.label==="Hours"?this.#l==="12h"?this.#p=this.#z(i,this.#d):this.#p=i:t.label==="Minutes"?this.#m=i:this.#h=i,this.#q()}#q(t="internal"){this.#j(),this.#M(),this.#x(),this.#R(),this.dispatchEvent(new CustomEvent("time-picker:change",{bubbles:!0,detail:{value:Xt(this.#p,this.#m,this.#h,this.#c),hours:this.#p,minutes:this.#m,seconds:this.#h,source:t}}))}#j(){let t=this.#l==="12h"?this.#P():this.#p;this.#a[0].valueEl.textContent=z(t),this.#a[0].el.setAttribute("aria-valuenow",String(t)),this.#a[0].el.setAttribute("aria-valuetext",this.#l==="12h"?`${t} ${this.#d}`:String(t)),this.#a[1].valueEl.textContent=z(this.#m),this.#a[1].el.setAttribute("aria-valuenow",String(this.#m)),this.#c&&this.#a[2]&&(this.#a[2].valueEl.textContent=z(this.#h),this.#a[2].el.setAttribute("aria-valuenow",String(this.#h))),this.#o&&(this.#o.textContent=this.#d)}#M(){this.#p!==void 0&&(this.#i.value=Uh(this.#p,this.#m,this.#h,this.#c,this.#l))}#x(){let t=Xt(this.#p,this.#m,this.#h,this.#c);this.#e.setFormValue(t),this.#t.value=t,this.#t.dispatchEvent(new Event("input",{bubbles:!0}))}#R(){if((this.hasAttribute("required")||this.#t.hasAttribute("required"))&&!this.#t.value){this.#e.setValidity({valueMissing:!0},"Please select a time",this.#i||this);return}this.#e.setValidity({})}#z(t,i){return i==="AM"?t===12?0:t:t===12?12:t+12}#P(){if(this.#l==="24h")return this.#p;let t=this.#p%12;return t===0?12:t}#H(t){this.#a[t]?.el.focus()}formResetCallback(){let t=Lt(this.#b);t?(this.#p=t.h,this.#m=t.m,this.#h=t.s):(this.#p=0,this.#m=0,this.#h=0),this.#l==="12h"&&(this.#d=this.#p>=12?"PM":"AM"),this.#q()}formStateRestoreCallback(t){if(!t)return;let i=Lt(t);i&&(this.#p=i.h,this.#m=i.m,this.#h=i.s,this.#l==="12h"&&(this.#d=this.#p>=12?"PM":"AM"),this.#q())}get value(){return Xt(this.#p,this.#m,this.#h,this.#c)}set value(t){let i=Lt(t);i&&(i.h===this.#p&&i.m===this.#m&&i.s===this.#h||(this.#p=i.h,this.#m=i.m,this.#h=i.s,this.#l==="12h"&&(this.#d=this.#p>=12?"PM":"AM"),this.#q("api")))}};b("time-picker",ms);var Be="popover"in HTMLElement.prototype;var Gh=["Su","Mo","Tu","We","Th","Fr","Sa"],Yh=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ys=["january","february","march","april","may","june","july","august","september","october","november","december"];function j(e){let t=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${t}-${i}-${s}`}function V(e){if(!e)return null;let[t,i,s]=e.split("-").map(Number);return new Date(t,i-1,s)}function Oe(e,t){return new Date(e,t+1,0).getDate()}function Kh(){try{let e=new Intl.Locale(navigator.language);if(e.weekInfo)return e.weekInfo.firstDay%7}catch{}return 0}function Xh(e){try{return new Intl.DateTimeFormat(void 0,{year:"numeric",month:"long",day:"numeric"}).format(e)}catch{return j(e)}}function Fe(e,t){return e&&t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function Zh(){let e=new Map;ys.forEach((t,i)=>{e.set(t,i),e.set(t.slice(0,3),i)});try{for(let t=0;t<12;t++){let i=new Intl.DateTimeFormat(void 0,{month:"long"}).format(new Date(2e3,t,1)).toLowerCase(),s=new Intl.DateTimeFormat(void 0,{month:"short"}).format(new Date(2e3,t,1)).toLowerCase().replace(".","");e.set(i,t),e.set(s,t)}}catch{}return e}var gs=Zh();function bs(e){let t=e.trim();if(!t)return{date:null,partial:null};if(/^\d{4}-\d{2}-\d{2}$/.test(t)){let a=V(t);return a&&!isNaN(a.getTime())?{date:a,partial:null}:{date:null,partial:null}}if(/^\d{4}\/\d{2}\/\d{2}$/.test(t)){let a=V(t.replace(/\//g,"-"));return a&&!isNaN(a.getTime())?{date:a,partial:null}:{date:null,partial:null}}let i=/^([a-z\u00C0-\u024F]+)\s+(\d{1,2}),?\s+(\d{4})$/i,s=t.match(i);if(s){let a=gs.get(s[1].toLowerCase());if(a!==void 0){let o=new Date(Number(s[3]),a,Number(s[2]));if(!isNaN(o.getTime()))return{date:o,partial:null}}}let n=/^(\d{1,2})\s+([a-z\u00C0-\u024F]+)\s+(\d{4})$/i;if(s=t.match(n),s){let a=gs.get(s[2].toLowerCase());if(a!==void 0){let o=new Date(Number(s[3]),a,Number(s[1]));if(!isNaN(o.getTime()))return{date:o,partial:null}}}let r=/^([a-z\u00C0-\u024F]+)\s+(\d{4})$/i;if(s=t.match(r),s){let a=gs.get(s[1].toLowerCase());if(a!==void 0)return{date:null,partial:{year:Number(s[2]),month:a}}}return{date:null,partial:null}}var vs=class extends y{static formAssociated=!0;#e;#t;#i;#s;#r;#n;#a;#o;#l;#c;#p=!1;#m=!1;#h=null;#d=null;#f=new Date().getFullYear();#u=new Date().getMonth();#g=null;#b=null;#k=new Map;#A=new Map;#w=null;#y=0;constructor(){super(),this.#e=this.attachInternals(),this._adoptInternals(this.#e)}setup(){if(this.#t=this.querySelector(':scope > input[type="date"]'),!this.#t)return!1;this.#g=V(this.#t.getAttribute("min")),this.#b=V(this.#t.getAttribute("max")),this.#y=Kh();let t=this.getAttribute("data-disabled-dates");t&&t.split(",").forEach(n=>{let[r,a]=n.trim().split(":");this.#k.set(r,a||"")});let i=this.getAttribute("data-highlight-dates");i&&i.split(",").forEach(n=>{let[r,a]=n.trim().split(":");this.#A.set(r,a||"")}),this.#h=V(this.#t.value),this.#w=this.#t.value;let s=new Date;return this.#b&&s>this.#b&&(s=this.#b),this.#g&&s<this.#g&&(s=this.#g),this.#f=this.#h?this.#h.getFullYear():s.getFullYear(),this.#u=this.#h?this.#h.getMonth():s.getMonth(),this.#d=this.#h||s,this.#t.setAttribute("tabindex","-1"),this.#t.setAttribute("aria-hidden","true"),this.#t.style.cssText="position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;overflow:hidden;",this.#E(),this.#v(),this.#L(),this.#P(),this.#H(),this.#m=Be,this.#m&&this.#n.setAttribute("popover","manual"),this.listen(document,"click",this.#x),(this.#t.disabled||this.hasAttribute("disabled"))&&(this.setAttribute("data-disabled",""),this.#i.disabled=!0),!0}teardown(){window.removeEventListener("scroll",this.#T,{capture:!0}),window.removeEventListener("resize",this.#T)}#E(){this.#r=document.createElement("div"),this.#r.className="date-trigger",this.#i=document.createElement("input"),this.#i.type="text",this.#i.className="date-input",this.#i.setAttribute("role","combobox"),this.#i.setAttribute("aria-haspopup","dialog"),this.#i.setAttribute("aria-expanded","false"),this.#i.setAttribute("autocomplete","off"),this.#i.setAttribute("placeholder","Type a date\u2026"),this.#r.appendChild(this.#i),this.#s=document.createElement("button"),this.#s.type="button",this.#s.className="date-trigger-icon",this.#s.setAttribute("aria-label","Toggle calendar"),this.#s.setAttribute("tabindex","-1");let t=document.createElement("icon-wc");t.setAttribute("name","calendar"),t.setAttribute("size","sm"),t.setAttribute("aria-hidden","true"),this.#s.appendChild(t),this.#r.appendChild(this.#s),this.appendChild(this.#r),this.listen(this.#s,"click",i=>{i.stopPropagation(),this.#p?this.#$():this.#B(),this.#i.focus()}),this.listen(this.#i,"focus",()=>this.#i.select()),this.listen(this.#i,"input",this.#q),this.listen(this.#i,"keydown",this.#j),this.listen(this.#i,"blur",this.#M)}#v(){this.#a=`dp-${Math.random().toString(36).slice(2,8)}`,this.#n=document.createElement("div"),this.#n.className="calendar",this.#n.id=this.#a,this.#n.setAttribute("role","dialog"),this.#n.setAttribute("aria-modal","false"),this.#n.setAttribute("aria-label","Choose date"),this.#n.hidden=!0,this.#i.setAttribute("aria-controls",this.#a);let t=document.createElement("div");t.className="calendar-header";let i=document.createElement("button");i.type="button",i.className="calendar-nav",i.setAttribute("aria-label","Previous month");let s=document.createElement("icon-wc");s.setAttribute("name","chevron-left"),s.setAttribute("size","sm"),s.setAttribute("aria-hidden","true"),i.appendChild(s);let n=document.createElement("span");n.className="calendar-title",n.id=`${this.#a}-title`,n.setAttribute("aria-live","polite"),this.#l=document.createElement("span"),this.#l.className="calendar-month",this.#c=document.createElement("select"),this.#c.className="calendar-year",this.#c.setAttribute("aria-label","Year"),this.#_(),n.appendChild(this.#l),n.appendChild(this.#c);let r=document.createElement("button");r.type="button",r.className="calendar-nav",r.setAttribute("aria-label","Next month");let a=document.createElement("icon-wc");a.setAttribute("name","chevron-right"),a.setAttribute("size","sm"),a.setAttribute("aria-hidden","true"),r.appendChild(a),t.appendChild(i),t.appendChild(n),t.appendChild(r),this.#n.appendChild(t);let o=document.createElement("table");o.setAttribute("role","grid"),o.setAttribute("aria-labelledby",`${this.#a}-title`);let c=document.createElement("thead"),l=document.createElement("tr");for(let u=0;u<7;u++){let d=(this.#y+u)%7,h=document.createElement("th");h.setAttribute("abbr",Yh[d]),h.setAttribute("scope","col"),h.textContent=Gh[d],l.appendChild(h)}c.appendChild(l),o.appendChild(c),this.#o=document.createElement("tbody"),o.appendChild(this.#o),this.#n.appendChild(o),this.appendChild(this.#n),this.#C(),this.listen(i,"click",()=>this.#O(-1)),this.listen(r,"click",()=>this.#O(1)),this.listen(this.#c,"change",()=>{this.#f=Number(this.#c.value);let u=Oe(this.#f,this.#u),d=Math.min(this.#d?.getDate()??1,u);this.#d=new Date(this.#f,this.#u,d),this.#C()}),this.listen(this.#o,"click",this.#R),this.listen(this.#n,"keydown",this.#z)}#C(){try{this.#l.textContent=new Intl.DateTimeFormat(void 0,{month:"long"}).format(new Date(this.#f,this.#u,1))}catch{this.#l.textContent=ys[this.#u].charAt(0).toUpperCase()+ys[this.#u].slice(1)}this.#c.querySelector(`option[value="${this.#f}"]`)||this.#_(),this.#c.value=String(this.#f),this.#o.innerHTML="";let t=Oe(this.#f,this.#u),s=(new Date(this.#f,this.#u,1).getDay()-this.#y+7)%7,n=new Date,r=document.createElement("tr");for(let o=0;o<s;o++)r.appendChild(document.createElement("td"));for(let o=1;o<=t;o++){let c=new Date(this.#f,this.#u,o),l=j(c),u=document.createElement("td"),d=document.createElement("button");d.type="button",d.setAttribute("data-date",l),d.textContent=String(o),Fe(c,n)&&d.setAttribute("aria-current","date"),Fe(c,this.#h)&&d.setAttribute("aria-selected","true");let h=this.#N(c,l);if(h.disabled&&(d.setAttribute("aria-disabled","true"),d.setAttribute("disabled",""),h.reason&&d.setAttribute("data-disabled-reason",h.reason)),this.#A.has(l)){let p=this.#A.get(l);d.setAttribute("data-highlight",p||"")}Fe(c,this.#d)?(d.setAttribute("tabindex","0"),Fe(c,this.#h)||d.setAttribute("data-focused","")):d.setAttribute("tabindex","-1"),u.appendChild(d),r.appendChild(u),(s+o)%7===0&&(this.#o.appendChild(r),r=document.createElement("tr"))}let a=(s+t)%7;if(a>0){for(let o=a;o<7;o++)r.appendChild(document.createElement("td"));this.#o.appendChild(r)}}#I(t,i){return this.#N(t,i).disabled}#N(t,i){return this.#k.has(i)?{disabled:!0,reason:this.#k.get(i)}:this.#g&&t<this.#g?{disabled:!0,reason:null}:this.#b&&t>this.#b?{disabled:!0,reason:null}:{disabled:!1,reason:null}}#_(){this.#c.innerHTML="";let t=new Date().getFullYear(),i=this.#g?this.#g.getFullYear():t-100,s=this.#b?this.#b.getFullYear():t+10;for(let n=i;n<=s;n++){let r=document.createElement("option");r.value=String(n),r.textContent=String(n),this.#c.appendChild(r)}}#O(t){this.#u+=t,this.#u>11?(this.#u=0,this.#f++):this.#u<0&&(this.#u=11,this.#f--);let i=Oe(this.#f,this.#u),s=Math.min(this.#d?.getDate()??1,i);this.#d=new Date(this.#f,this.#u,s),this.#C(),this.#D(this.#d)}#F(t,i="internal"){let s=j(t);this.#I(t,s)||this.#h&&j(this.#h)===s||(this.#h=t,this.#d=t,this.#L(),this.#P(),this.#H(),this.#C(),this.#$(),this.#i.focus(),this.dispatchEvent(new CustomEvent("date-picker:change",{bubbles:!0,detail:{value:s,date:new Date(t),source:i}})))}#D(t){let i=j(t),s=this.#o.querySelector(`[data-date="${i}"]`);s&&(this.#o.querySelectorAll('button[tabindex="0"]').forEach(n=>{n.setAttribute("tabindex","-1")}),s.setAttribute("tabindex","0"),s.focus())}#L(){this.#h?this.#i.value=Xh(this.#h):this.#i.value=""}#B(){if(!this.#p){if(this.#p=!0,this.setAttribute("open",""),this.#i.setAttribute("aria-expanded","true"),this.#n.hidden=!1,this.#d&&(this.#f=this.#d.getFullYear(),this.#u=this.#d.getMonth()),this.#C(),this.#m){try{this.#n.showPopover()}catch{}this.#S(),window.addEventListener("scroll",this.#T,{capture:!0,passive:!0}),window.addEventListener("resize",this.#T,{passive:!0})}this.dispatchEvent(new CustomEvent("date-picker:open",{bubbles:!0}))}}#$(){if(this.#p){if(this.#p=!1,this.removeAttribute("open"),this.#i.setAttribute("aria-expanded","false"),this.#n.hidden=!0,this.#m){try{this.#n.hidePopover()}catch{}window.removeEventListener("scroll",this.#T,{capture:!0}),window.removeEventListener("resize",this.#T)}this.dispatchEvent(new CustomEvent("date-picker:close",{bubbles:!0}))}}#S(){if(!this.#m)return;let t=this.#r.getBoundingClientRect(),i=this.#n.getBoundingClientRect(),s=4,n=8,r=window.innerHeight,a=window.innerWidth,o=r-t.bottom-n,c=t.top-n,l;o<i.height&&c>o?(l=t.top-i.height-s,this.#n.dataset.placement="top"):(l=t.bottom+s,delete this.#n.dataset.placement);let u=t.left;u+i.width>a-n&&(u=a-i.width-n),u<n&&(u=n),this.#n.style.setProperty("--calendar-top",`${l}px`),this.#n.style.setProperty("--calendar-left",`${u}px`)}#T=()=>{this.#p&&this.#S()};#q=()=>{let t=this.#i.value,{date:i,partial:s}=bs(t);if(i)this.#d=i,this.#f=i.getFullYear(),this.#u=i.getMonth(),this.#C();else if(s){this.#f=s.year,this.#u=s.month;let n=Oe(s.year,s.month),r=Math.min(this.#d?.getDate()??1,n);this.#d=new Date(s.year,s.month,r),this.#C()}!this.#p&&t.length>0&&this.#B()};#j=t=>{switch(t.key){case"Enter":{t.preventDefault(),t.stopPropagation();let{date:i}=bs(this.#i.value);i&&!this.#I(i,j(i))&&this.#F(i);return}case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.#p||this.#B(),requestAnimationFrame(()=>this.#D(this.#d));return;case"Escape":t.preventDefault(),t.stopPropagation(),this.#p&&this.#$(),this.#L();return;case"Tab":this.#p&&this.#$();return}};#M=t=>{if(t.relatedTarget&&this.contains(t.relatedTarget))return;let i=this.#i.value.trim();if(i){let{date:s}=bs(i);s&&!this.#I(s,j(s))&&(this.#h=s,this.#d=s,this.#P(),this.#H(),this.dispatchEvent(new CustomEvent("date-picker:change",{bubbles:!0,detail:{value:j(s),date:new Date(s)}})))}this.#L(),this.#p&&this.#$(),this.#t.dispatchEvent(new Event("blur",{bubbles:!0}))};#x=t=>{this.#p&&!this.contains(t.target)&&this.#$()};#R=t=>{let s=t.target?.closest("button[data-date]");if(!s||s.hasAttribute("disabled"))return;let n=V(s.getAttribute("data-date"));n&&this.#F(n)};#z=t=>{if(t.key==="Tab"){this.#$();return}let i=this.#d;if(!i)return;let s;switch(t.key){case"ArrowRight":s=new Date(i.getFullYear(),i.getMonth(),i.getDate()+1);break;case"ArrowLeft":s=new Date(i.getFullYear(),i.getMonth(),i.getDate()-1);break;case"ArrowDown":s=new Date(i.getFullYear(),i.getMonth(),i.getDate()+7);break;case"ArrowUp":s=new Date(i.getFullYear(),i.getMonth(),i.getDate()-7);break;case"PageDown":t.shiftKey?s=new Date(i.getFullYear()+1,i.getMonth(),i.getDate()):s=new Date(i.getFullYear(),i.getMonth()+1,i.getDate());break;case"PageUp":t.shiftKey?s=new Date(i.getFullYear()-1,i.getMonth(),i.getDate()):s=new Date(i.getFullYear(),i.getMonth()-1,i.getDate());break;case"Home":s=new Date(i.getFullYear(),i.getMonth(),i.getDate()-i.getDay()+this.#y);break;case"End":s=new Date(i.getFullYear(),i.getMonth(),i.getDate()+(6-i.getDay()+this.#y));break;case"Enter":case" ":t.preventDefault(),t.stopPropagation(),this.#F(i);return;case"Escape":t.preventDefault(),t.stopPropagation(),this.#$(),this.#i.focus();return;default:return}t.preventDefault(),t.stopPropagation(),s&&(this.#g&&s<this.#g&&(s=this.#g),this.#b&&s>this.#b&&(s=this.#b),this.#d=s,(s.getMonth()!==this.#u||s.getFullYear()!==this.#f)&&(this.#u=s.getMonth(),this.#f=s.getFullYear(),this.#C()),this.#D(s))};#P(){let t=this.#h?j(this.#h):"";this.#e.setFormValue(t||null),this.#t.value=t,this.#t.dispatchEvent(new Event("input",{bubbles:!0}))}#H(){(this.hasAttribute("required")||this.#t.hasAttribute("required"))&&!this.#h?this.#e.setValidity({valueMissing:!0},"Please select a date",this.#i||this):this.#e.setValidity({})}formResetCallback(){this.#h=V(this.#w);let t=new Date;this.#d=this.#h||t,this.#f=this.#d.getFullYear(),this.#u=this.#d.getMonth(),this.#L(),this.#P(),this.#H(),this.#p&&this.#C()}formStateRestoreCallback(t){t&&(this.#h=V(t),this.#h&&(this.#d=this.#h,this.#f=this.#h.getFullYear(),this.#u=this.#h.getMonth(),this.#L(),this.#P(),this.#H()))}get value(){return this.#h?j(this.#h):""}set value(t){let i=V(t);i&&this.#F(i,"api")}get min(){return this.#g?j(this.#g):""}set min(t){this.#g=t?V(t):null,this.#t&&this.#t.setAttribute("min",t||""),this.#C()}get max(){return this.#b?j(this.#b):""}set max(t){this.#b=t?V(t):null,this.#t&&this.#t.setAttribute("max",t||""),this.#C()}};b("date-picker",vs);Vt();function Mt(e,t,i){t/=100,i/=100;let s=a=>(a+e/30)%12,n=t*Math.min(i,1-i),r=a=>i-n*Math.max(-1,Math.min(s(a)-3,9-s(a),1));return{r:Math.round(r(0)*255),g:Math.round(r(8)*255),b:Math.round(r(4)*255)}}function Pe(e,t,i,s=!1){e/=255,t/=255,i/=255;let n=Math.max(e,t,i),r=Math.min(e,t,i),a=(n+r)/2,o=0,c=0;if(n!==r){let l=n-r;switch(c=a>.5?l/(2-n-r):l/(n+r),n){case e:o=((t-i)/l+(t<i?6:0))/6;break;case t:o=((i-e)/l+2)/6;break;case i:o=((e-t)/l+4)/6;break}}return s?{h:o*360,s:c*100,l:a*100}:{h:Math.round(o*360),s:Math.round(c*100),l:Math.round(a*100)}}function Jh(e){e=e.replace(/^#/,""),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:t&255}}function Qh(e,t,i){return"#"+[e,t,i].map(s=>Math.max(0,Math.min(255,Math.round(s))).toString(16).padStart(2,"0")).join("")}function at(e,t=!1){let{r:i,g:s,b:n}=Jh(e);return Pe(i,s,n,t)}function ot(e,t,i){let{r:s,g:n,b:r}=Mt(e,t,i);return Qh(s,n,r)}function D(e,t,i){return Math.max(t,Math.min(i,e))}function ws(e){return e/=255,e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function As(e){let t=e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055;return Math.round(D(t,0,1)*255)}function tp(e,t,i){let s=ws(e),n=ws(t),r=ws(i),a=.4122214708*s+.5363325363*n+.0514459929*r,o=.2119034982*s+.6806995451*n+.1073969566*r,c=.0883024619*s+.2817188376*n+.6299787005*r,l=Math.cbrt(a),u=Math.cbrt(o),d=Math.cbrt(c),h=.2104542553*l+.793617785*u-.0040720468*d,p=1.9779984951*l-2.428592205*u+.4505937099*d,f=.0259040371*l+.7827717662*u-.808675766*d,m=Math.sqrt(p*p+f*f),v=Math.atan2(f,p)*180/Math.PI;return v<0&&(v+=360),m<1e-4&&(v=0),{L:h,C:m,H:v}}function ep(e,t,i){let s=i*Math.PI/180,n=t*Math.cos(s),r=t*Math.sin(s),a=e+.3963377774*n+.2158037573*r,o=e-.1055613458*n-.0638541728*r,c=e-.0894841775*n-1.291485548*r,l=a**3,u=o**3,d=c**3,h=4.0767416621*l-3.3077115913*u+.2309699292*d,p=-1.2684380046*l+2.6097574011*u-.3413193965*d,f=-.0041960863*l-.7034186147*u+1.707614701*d;return{r:As(h),g:As(p),b:As(f)}}function Es(e,t,i){let s=Mt(e,t,i);return tp(s.r,s.g,s.b)}function To(e,t,i,s=!1){let{r:n,g:r,b:a}=ep(e,t,i);return Pe(n,r,a,s)}function ip(e,t,i){return ot(e,t,i)}function sp(e,t,i){let{r:s,g:n,b:r}=Mt(e,t,i);return`rgb(${s} ${n} ${r})`}function np(e,t,i){return`hsl(${Math.round(e)}deg ${Math.round(t)}% ${Math.round(i)}%)`}function rp(e,t,i){let{L:s,C:n,H:r}=Es(e,t,i);return`oklch(${(s*100).toFixed(1)}% ${n.toFixed(3)} ${r.toFixed(1)}deg)`}function Lo(e,t,i,s){switch(e){case"rgb":return sp(t,i,s);case"hsl":return np(t,i,s);case"oklch":return rp(t,i,s);default:return ip(t,i,s)}}var Nt=["hex","rgb","hsl","oklch"],ap="hex",op=/^#[0-9a-fA-F]{6}$/,_t=8,cp=0,ks=class extends y{static formAssociated=!0;#e;#t;#i;#s;#r;#n;#a;#o;#l;#c;#p;#m;#h={};#d=ap;#f;#u;#g;#b=!1;#k=!1;#A=!1;#w=`cp${++cp}`;#y=0;#E=100;#v=50;#C;static get observedAttributes(){return["disabled"]}constructor(){super(),this.#e=this.attachInternals(),this._adoptInternals(this.#e)}setup(){if(this.#t=this.querySelector(':scope > input[type="color"]'),!this.#t)return!1;if(!this.#A){let s=this.getAttribute("format");s&&Nt.includes(s)&&(this.#d=s),this.#A=!0}if(this.#C===void 0){let s=this.#t.defaultValue;this.#C=op.test(s)?s.toLowerCase():this.#t.value||"#000000"}let t=at(this.#t.value||this.#C,!0);this.#y=t.h,this.#E=t.s,this.#v=t.l;let i=this.#t.getAttribute("name");return i&&(this.hasAttribute("name")||this.setAttribute("name",i),this.#t.removeAttribute("name")),this.#t.hasAttribute("disabled")&&(this.#t.removeAttribute("disabled"),this.hasAttribute("disabled")||this.setAttribute("disabled","")),this.#t.setAttribute("tabindex","-1"),this.#t.setAttribute("aria-hidden","true"),this.#t.style.cssText="position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;overflow:hidden;",this.listen(this.#t,"click",this.#N),this.#O(),this.#F(),this.#U(),this.#Q(),this.#k=Be,this.#k&&this.#a.setAttribute("popover","manual"),this.listen(document,"click",this.#tt),this.listen(this,"keydown",this.#_),this.#I(this.matches(":disabled")),!0}teardown(){this.#b=!1,this.removeAttribute("open"),window.removeEventListener("scroll",this.#J,{capture:!0}),window.removeEventListener("resize",this.#J),this.#i?.remove(),this.#a?.remove()}attributeChangedCallback(t){t==="disabled"&&this.#i&&this.#I(this.matches(":disabled"))}formDisabledCallback(t){this.#i&&this.#I(t)}#I(t){this.#i.disabled=t,t&&this.#W()}#N=t=>{t.preventDefault(),this.#i.disabled||this.#i.focus()};#_=t=>{t.key!=="Escape"||!this.#b||(t.preventDefault(),t.stopPropagation(),this.#W(),this.#i.focus())};#O(){this.#i=document.createElement("button"),this.#i.type="button",this.#i.className="color-trigger",this.#i.setAttribute("aria-haspopup","dialog"),this.#i.setAttribute("aria-expanded","false"),this.#s=document.createElement("span"),this.#s.className="color-swatch",this.#r=document.createElement("span"),this.#r.className="color-hex",this.#r.id=`${this.#w}-value`,this.#i.appendChild(this.#s),this.#i.appendChild(this.#r);let t=[];for(let i of Array.from(this.#t.labels||[]))i.id||(i.id=`${this.#w}-label-${t.length}`),t.push(i.id);t.length===0&&(this.#n=document.createElement("span"),this.#n.className="visually-hidden",this.#n.id=`${this.#w}-name`,this.#n.textContent=this.#t.getAttribute("aria-label")||this.getAttribute("aria-label")||"Color",this.#i.prepend(this.#n),t.push(this.#n.id)),this.#i.setAttribute("aria-labelledby",[...t,this.#r.id].join(" ")),this.appendChild(this.#i),this.listen(this.#i,"click",()=>{this.#b?this.#W():this.#X()})}#F(){this.#f=void 0,this.#u=void 0,this.#a=document.createElement("div"),this.#a.className="color-panel",this.#a.setAttribute("role","dialog"),this.#a.setAttribute("aria-label","Color picker"),this.#o=document.createElement("div"),this.#o.className="color-area",this.#o.setAttribute("role","slider"),this.#o.setAttribute("aria-label","Saturation and lightness"),this.#o.setAttribute("aria-valuemin","0"),this.#o.setAttribute("aria-valuemax","100"),this.#o.setAttribute("tabindex","0"),this.#l=document.createElement("div"),this.#l.className="color-area-thumb",this.#o.appendChild(this.#l),this.#a.appendChild(this.#o);let t=document.createElement("div");t.className="color-hue-wrap",this.#c=document.createElement("div"),this.#c.className="color-hue",this.#c.setAttribute("role","slider"),this.#c.setAttribute("aria-label","Hue"),this.#c.setAttribute("aria-valuemin","0"),this.#c.setAttribute("aria-valuemax","360"),this.#c.setAttribute("tabindex","0"),this.#p=document.createElement("div"),this.#p.className="color-hue-thumb",this.#c.appendChild(this.#p),t.appendChild(this.#c),this.#a.appendChild(t);let i=document.createElement("div");i.className="color-format-row";let s=document.createElement("label");s.className="color-format-label";let n=document.createElement("span");n.textContent="Format",this.#m=document.createElement("select"),this.#m.className="color-format-select";for(let o of Nt){let c=document.createElement("option");c.value=o,c.textContent=o.toUpperCase(),this.#m.appendChild(c)}this.#m.value=this.#d,s.appendChild(n),s.appendChild(this.#m),i.appendChild(s),this.#a.appendChild(i),this.listen(this.#m,"change",this.#B),this.#h.hex=this.#D("hex",[{label:"Hex",channel:"hex",kind:"text",maxLength:7}]),this.#h.rgb=this.#D("rgb",[{label:"R",channel:"r",kind:"number",min:0,max:255,step:1},{label:"G",channel:"g",kind:"number",min:0,max:255,step:1},{label:"B",channel:"b",kind:"number",min:0,max:255,step:1}]),this.#h.hsl=this.#D("hsl",[{label:"H",channel:"h",kind:"number",min:0,max:360,step:1},{label:"S",channel:"s",kind:"number",min:0,max:100,step:1},{label:"L",channel:"l",kind:"number",min:0,max:100,step:1}]),this.#h.oklch=this.#D("oklch",[{label:"L%",channel:"oL",kind:"number",min:0,max:100,step:.1},{label:"C",channel:"oC",kind:"number",min:0,max:.4,step:.001},{label:"H\xB0",channel:"oH",kind:"number",min:0,max:360,step:.1}]);for(let o of Nt)this.#a.appendChild(this.#h[o].wrapper);this.#L();let r=this.querySelector(":scope > datalist");if(r){this.#f=document.createElement("div"),this.#f.className="color-swatches",this.#f.setAttribute("role","group"),this.#f.setAttribute("aria-label","Preset colors");for(let o of r.querySelectorAll("option[value]")){let c=document.createElement("button");c.type="button",c.setAttribute("aria-pressed","false"),c.style.background=o.value,c.setAttribute("aria-label",o.textContent||o.value),c.setAttribute("data-color",o.value),this.#f.appendChild(c)}this.#a.appendChild(this.#f),this.listen(this.#f,"click",this.#G)}let a=document.createElement("div");a.className="color-actions","EyeDropper"in window&&(this.#u=document.createElement("button"),this.#u.type="button",this.#u.className="color-eyedropper",this.#u.setAttribute("aria-label","Pick color from screen"),this.#u.textContent="\u{1F4A7}",a.appendChild(this.#u),this.listen(this.#u,"click",this.#K)),this.#g=document.createElement("button"),this.#g.type="button",this.#g.className="color-copy",this.#g.setAttribute("aria-label","Copy hex value"),this.#g.textContent="Copy",a.appendChild(this.#g),this.listen(this.#g,"click",this.#Y),this.#a.appendChild(a),this.appendChild(this.#a),this.listen(this.#o,"pointerdown",this.#$),this.listen(this.#o,"keydown",this.#T),this.listen(this.#c,"pointerdown",this.#q),this.listen(this.#c,"keydown",this.#M);for(let o of Nt){let c=o==="hex"?this.#R:o==="rgb"?this.#z:o==="hsl"?this.#P:this.#H;for(let{el:l}of this.#h[o].inputs)this.listen(l,"change",c)}}#D(t,i){let s=document.createElement("div");s.className=`color-inputs color-inputs-${t}`,s.setAttribute("data-format",t);let n=[];for(let r of i){let a=document.createElement("label");a.className="color-input-label";let o=document.createElement("span");o.textContent=r.label;let c=document.createElement("input");c.type=r.kind,c.setAttribute("data-channel",r.channel),c.setAttribute("autocomplete","off"),c.setAttribute("spellcheck","false"),r.kind==="text"&&r.maxLength&&c.setAttribute("maxlength",String(r.maxLength)),r.kind==="number"&&(c.min=String(r.min),c.max=String(r.max),r.step!=null&&(c.step=String(r.step))),a.appendChild(o),a.appendChild(c),s.appendChild(a),n.push({el:c,channel:r.channel})}return{wrapper:s,inputs:n}}#L(){for(let t of Nt)this.#h[t].wrapper.hidden=t!==this.#d;this.#g&&this.#g.setAttribute("aria-label",`Copy ${this.#d.toUpperCase()} value`)}#B=()=>{let t=this.#m.value;Nt.includes(t)&&(this.#d=t,this.#L(),this.#U())};#$=t=>{t.preventDefault(),this.#o.setPointerCapture(t.pointerId),this.#S(t);let i=n=>this.#S(n),s=n=>{this.#o.releasePointerCapture(n.pointerId),this.#o.removeEventListener("pointermove",i),this.#o.removeEventListener("pointerup",s)};this.#o.addEventListener("pointermove",i),this.#o.addEventListener("pointerup",s)};#S(t){let i=this.#o.getBoundingClientRect(),s=D((t.clientX-i.left)/i.width,0,1),n=D((t.clientY-i.top)/i.height,0,1);this.#E=Math.round(s*100),this.#v=Math.round((1-n)*100),this.#V("pointer")}#T=t=>{let i=t.shiftKey?10:1;switch(this.#E=Math.round(this.#E),this.#v=Math.round(this.#v),t.key){case"ArrowRight":t.preventDefault(),this.#E=D(this.#E+i,0,100);break;case"ArrowLeft":t.preventDefault(),this.#E=D(this.#E-i,0,100);break;case"ArrowUp":t.preventDefault(),this.#v=D(this.#v+i,0,100);break;case"ArrowDown":t.preventDefault(),this.#v=D(this.#v-i,0,100);break;default:return}this.#V("keyboard")};#q=t=>{t.preventDefault(),this.#c.setPointerCapture(t.pointerId),this.#j(t);let i=n=>this.#j(n),s=n=>{this.#c.releasePointerCapture(n.pointerId),this.#c.removeEventListener("pointermove",i),this.#c.removeEventListener("pointerup",s)};this.#c.addEventListener("pointermove",i),this.#c.addEventListener("pointerup",s)};#j(t){let i=this.#c.getBoundingClientRect(),s=D((t.clientX-i.left)/i.width,0,1);this.#y=Math.round(s*360),this.#V("pointer")}#M=t=>{let i=t.shiftKey?10:1;switch(this.#y=Math.round(this.#y),t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),this.#y=(this.#y+i)%361;break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),this.#y=(this.#y-i+361)%361;break;default:return}this.#V("keyboard")};#x(t,i){return this.#h[t].inputs.find(s=>s.channel===i)?.el}#R=()=>{let t=this.#x("hex","hex");if(!t)return;let i=t.value.trim();if(i.startsWith("#")||(i="#"+i),/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(i)){let s=at(i,!0);this.#y=s.h,this.#E=s.s,this.#v=s.l,this.#V()}};#z=()=>{let t=D(Number(this.#x("rgb","r").value)||0,0,255),i=D(Number(this.#x("rgb","g").value)||0,0,255),s=D(Number(this.#x("rgb","b").value)||0,0,255),n=Pe(t,i,s,!0);this.#y=n.h,this.#E=n.s,this.#v=n.l,this.#V()};#P=()=>{let t=D(Number(this.#x("hsl","h").value)||0,0,360)%361,i=D(Number(this.#x("hsl","s").value)||0,0,100),s=D(Number(this.#x("hsl","l").value)||0,0,100);this.#y=t,this.#E=i,this.#v=s,this.#V()};#H=()=>{let t=D(Number(this.#x("oklch","oL").value)||0,0,100)/100,i=D(Number(this.#x("oklch","oC").value)||0,0,.4),s=D(Number(this.#x("oklch","oH").value)||0,0,360),n=To(t,i,s,!0);this.#y=n.h,this.#E=n.s,this.#v=n.l,this.#V()};#G=t=>{let i=t.target.closest("button[data-color]");if(!i)return;let s=i.getAttribute("data-color"),n=at(s,!0);this.#y=n.h,this.#E=n.s,this.#v=n.l,this.#V()};#K=async()=>{try{let i=await new window.EyeDropper().open(),s=at(i.sRGBHex,!0);this.#y=s.h,this.#E=s.s,this.#v=s.l,this.#V()}catch{}};#Y=()=>{let t=Lo(this.#d,this.#y,this.#E,this.#v);mt(t,{button:this.#g,announceMessage:"Color copied"})};#V(t="internal"){this.#U(),this.#Q();let i=ot(this.#y,this.#E,this.#v),s=Mt(this.#y,this.#E,this.#v);this.dispatchEvent(new CustomEvent("color-picker:change",{bubbles:!0,detail:{hex:i,rgb:{r:s.r,g:s.g,b:s.b},hsl:{h:Math.round(this.#y),s:Math.round(this.#E),l:Math.round(this.#v)},source:t}}))}#U(){let t=ot(this.#y,this.#E,this.#v),i=Mt(this.#y,this.#E,this.#v),s=ot(this.#y,100,50);this.#s.style.background=t,this.#r.textContent=t,this.#o.style.setProperty("--area-hue",s),this.#l.style.left=`${this.#E}%`,this.#l.style.top=`${100-this.#v}%`,this.#l.style.background=t;let n=Math.round(this.#y),r=Math.round(this.#E),a=Math.round(this.#v);this.#o.setAttribute("aria-valuenow",String(r)),this.#o.setAttribute("aria-valuetext",`Saturation ${r}%, lightness ${a}%`),this.#p.style.left=`${this.#y/360*100}%`,this.#c.setAttribute("aria-valuenow",String(n)),this.#c.setAttribute("aria-valuetext",`Hue ${n}\xB0`);let o=(l,u,d)=>{let h=this.#x(l,u);h&&(h.value=String(d))};o("hex","hex",t),o("rgb","r",i.r),o("rgb","g",i.g),o("rgb","b",i.b),o("hsl","h",n),o("hsl","s",r),o("hsl","l",a);let c=Es(this.#y,this.#E,this.#v);if(o("oklch","oL",(c.L*100).toFixed(1)),o("oklch","oC",c.C.toFixed(3)),o("oklch","oH",c.H.toFixed(1)),this.#f)for(let l of this.#f.querySelectorAll("button[data-color]")){let u=(l.getAttribute("data-color")||"").toLowerCase()===t.toLowerCase();l.setAttribute("aria-pressed",String(u))}}#X(){if(!(this.#b||this.#i.disabled)){if(this.#b=!0,this.setAttribute("open",""),this.#i.setAttribute("aria-expanded","true"),this.#k){try{this.#a.showPopover()}catch{}this.#Z(),window.addEventListener("scroll",this.#J,{capture:!0,passive:!0}),window.addEventListener("resize",this.#J,{passive:!0})}requestAnimationFrame(()=>this.#o.focus()),this.dispatchEvent(new CustomEvent("color-picker:open",{bubbles:!0}))}}#W(){if(this.#b){if(this.#b=!1,this.removeAttribute("open"),this.#i.setAttribute("aria-expanded","false"),this.#k){try{this.#a.hidePopover()}catch{}window.removeEventListener("scroll",this.#J,{capture:!0}),window.removeEventListener("resize",this.#J)}this.dispatchEvent(new CustomEvent("color-picker:close",{bubbles:!0}))}}#Z(){if(!this.#k)return;let t=this.#i.getBoundingClientRect(),i=this.#a.offsetWidth,s=this.#a.offsetHeight,n=document.documentElement.clientWidth,r=document.documentElement.clientHeight,o=getComputedStyle(this).direction==="rtl"?t.right-i:t.left;o=Math.min(o,n-i-_t),o=Math.max(o,_t);let c=t.bottom+4;c+s>r-_t&&t.top-s-4>=_t&&(c=t.top-s-4),c=Math.max(_t,Math.min(c,r-s-_t)),this.#a.style.setProperty("--panel-top",`${Math.round(c)}px`),this.#a.style.setProperty("--panel-left",`${Math.round(o)}px`)}#J=()=>{this.#b&&this.#Z()};#tt=t=>{this.#b&&!this.contains(t.target)&&this.#W()};#Q(){let t=ot(this.#y,this.#E,this.#v);this.#e.setFormValue(t),this.#t.value=t,this.#t.dispatchEvent(new Event("input",{bubbles:!0}))}formResetCallback(){if(!this.#i)return;let t=at(this.#C,!0);this.#y=t.h,this.#E=t.s,this.#v=t.l,this.#U(),this.#Q()}formStateRestoreCallback(t){if(!t||!this.#i)return;let i=at(t,!0);this.#y=i.h,this.#E=i.s,this.#v=i.l,this.#U(),this.#Q()}get value(){return ot(this.#y,this.#E,this.#v)}set value(t){if(!/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(t))return;let i=ot(this.#y,this.#E,this.#v).toLowerCase(),s=t.toLowerCase();if(i===s||i===s.toLowerCase())return;let n=at(t,!0);this.#y=n.h,this.#E=n.s,this.#v=n.l,this.#V("api")}};b("color-picker",ks);var lp='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><line x1="5" y1="12" x2="19" y2="12"/></svg>',up='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>';function dp(e){if(!e)return[];let t=e.trim();if(t.startsWith("["))try{return JSON.parse(t).map(s=>({value:String(s.value),label:String(s.label??s.value)}))}catch{return[]}return t.split(",").map(i=>{let s=i.trim();return{value:s,label:s}})}function hp(e){return e?e.split(",").map(t=>t.trim()).filter(Boolean):[]}function pp(e){let t=Math.max(0,Math.round(e)),i=Math.floor(t/3600),s=Math.floor(t%3600/60),n=t%60,r=a=>String(a).padStart(2,"0");return i>0?`${i}:${r(s)}:${r(n)}`:`${s}:${r(n)}`}function fp(e,t){let i=Number(e)||0,s=["B","KB","MB","GB","TB","PB"],n=0,r=Math.abs(i);for(;r>=1e3&&n<s.length-1;)r/=1e3,n+=1;let a=new Intl.NumberFormat(t,{minimumFractionDigits:n===0?0:1,maximumFractionDigits:n===0?0:2});return`${i<0?"-":""}${a.format(r)} ${s[n]}`}function mp(){return document.documentElement.lang||void 0}function xs(e){let t=String(e),i=t.indexOf(".");return i<0?0:t.length-i-1}var Ss=class extends y{static formAssociated=!0;static observedAttributes=["value","disabled","readonly"];#e;#t;#i=-1/0;#s=1/0;#r=1;#n=[];#a=[];#o;#l;#c="";#p=!1;#m=!1;#h;#d;#f;#u;#g;#b;#k;#A;#w;#y=0;#E=0;#v=!1;#C=!1;constructor(){super(),this.#e=this.attachInternals(),this._adoptInternals(this.#e)}setup(){this.#I(),this.#N(),this.#F();let t=this.getAttribute("value");this.#f=t,this.#x(t??this.#O(),"init")}attributeChangedCallback(t,i,s){!this.isConnected||!this.#u||(t==="value"?this.#x(s??this.#O(),"attr"):(t==="disabled"||t==="readonly")&&this.#$())}#I(){this.hasAttribute("data-options")?this.#t="enum":this.hasAttribute("data-values")?this.#t="token":this.hasAttribute("data-format")||this.hasAttribute("data-suffix")?this.#t="formatted":(this.#t="numeric",console.info('[stepper-wc] No mode attribute set. Plain numeric stepping is better served by `<input type="number" data-stepper>`. See /docs/concepts/numeric-inputs/'))}#N(){this.#i=this.hasAttribute("data-min")?Number(this.getAttribute("data-min")):-1/0,this.#s=this.hasAttribute("data-max")?Number(this.getAttribute("data-max")):1/0,this.#r=Number(this.getAttribute("data-step"))||1,this.#n=hp(this.getAttribute("data-values")),this.#a=dp(this.getAttribute("data-options")),this.#o=this.getAttribute("data-format")||(this.hasAttribute("data-suffix")?"number":null),this.#l=this.getAttribute("data-currency")||"USD",this.#c=this.getAttribute("data-suffix")||"",this.#p=this.hasAttribute("data-show-label"),this.#m=this.hasAttribute("data-accelerate"),this.#h=mp(),this.#w=this.#_()}#_(){if(!this.#o)return null;let t=xs(this.#r);return this.#o==="number"?new Intl.NumberFormat(this.#h,{minimumFractionDigits:t,maximumFractionDigits:t}):this.#o==="currency"?new Intl.NumberFormat(this.#h,{style:"currency",currency:this.#l}):this.#o==="percent"?new Intl.NumberFormat(this.#h,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}):null}#O(){return this.#t==="enum"?this.#a[0]?.value??"":this.#t==="token"?this.#n[0]??"":"0"}#F(){this.replaceChildren(),this.#k=document.createElement("button"),this.#k.type="button",this.#k.className="stepper-dec",this.#k.setAttribute("aria-label","Decrease"),this.#k.setAttribute("tabindex","-1"),this.#k.innerHTML=lp,this.#A=document.createElement("button"),this.#A.type="button",this.#A.className="stepper-inc",this.#A.setAttribute("aria-label","Increase"),this.#A.setAttribute("tabindex","-1"),this.#A.innerHTML=up,this.#u=document.createElement("span"),this.#u.className="stepper-value",this.#u.setAttribute("role","spinbutton"),this.#u.setAttribute("tabindex","0"),this.#g=document.createElement("span"),this.#g.className="stepper-value-display",this.#u.appendChild(this.#g),this.#b=new Set;for(let t of this.#H())this.#G(t);this.appendChild(this.#k),this.appendChild(this.#u),this.appendChild(this.#A),this.#D(this.#k,-1),this.#D(this.#A,1),this.listen(this.#u,"keydown",this.#L),this.#$()}#D(t,i){if(this.listen(t,"click",n=>{if(this.#C){this.#C=!1,n.preventDefault();return}this.#S(i,1)}),!this.#m)return;this.listen(t,"pointerdown",n=>{let r=n;r.pointerType==="mouse"&&r.button!==0||this.#B()||(this.#v=!1,this.#y=window.setTimeout(()=>{this.#v=!0,this.#E=window.setInterval(()=>this.#S(i,1),100),this.#y=window.setTimeout(()=>{window.clearInterval(this.#E),this.#E=window.setInterval(()=>this.#S(i,5),50)},1e3)},500))});let s=()=>{window.clearTimeout(this.#y),window.clearInterval(this.#E),this.#y=0,this.#E=0,this.#v&&(this.#C=!0)};this.listen(t,"pointerup",s),this.listen(t,"pointerleave",s),this.listen(t,"pointercancel",s)}#L=t=>{if(!this.#B())switch(t.key){case"ArrowUp":case"ArrowRight":t.preventDefault(),this.#S(1,1);break;case"ArrowDown":case"ArrowLeft":t.preventDefault(),this.#S(-1,1);break;case"PageUp":t.preventDefault(),this.#S(1,10);break;case"PageDown":t.preventDefault(),this.#S(-1,10);break;case"Home":t.preventDefault(),this.#T("min");break;case"End":t.preventDefault(),this.#T("max");break;default:}};#B(){return this.hasAttribute("disabled")||this.hasAttribute("readonly")}#$(){let t=this.hasAttribute("disabled");this.#k.disabled=t,this.#A.disabled=t,this.#u.setAttribute("aria-disabled",String(t)),t?this.#u.removeAttribute("tabindex"):this.#u.setAttribute("tabindex","0")}#S(t,i){if(this.#B())return;let s=this.#q(t,i);s===null||s===this.#d||this.#x(s,"step")}#T(t){if(this.#t==="enum"){let s=t==="min"?0:this.#a.length-1;this.#x(this.#a[s]?.value,"step");return}if(this.#t==="token"){let s=t==="min"?0:this.#n.length-1;this.#x(this.#n[s],"step");return}let i=t==="min"?this.#i===-1/0?this.#d:this.#i:this.#s===1/0?this.#d:this.#s;this.#x(String(i),"step")}#q(t,i){if(this.#t==="enum"){let c=this.#a.findIndex(d=>d.value===this.#d),l=c===-1?0:c,u=Math.min(this.#a.length-1,Math.max(0,l+t*i));return this.#a[u]?.value}if(this.#t==="token"){let l=this.#j(this.#d);l===-1&&(l=this.#M(this.#d));let u=Math.min(this.#n.length-1,Math.max(0,l+t*i));return this.#n[u]}let s=Number(this.#d)||0,n=xs(this.#r),r=s+t*this.#r*i,a=Number(r.toFixed(n)),o=Math.min(this.#s,Math.max(this.#i,a));return String(o)}#j(t){if(t==null)return-1;let i=this.#n.indexOf(String(t));if(i!==-1)return i;let s=Number(t);if(Number.isFinite(s)){let n=this.#n.findIndex(r=>Number(r)===s);if(n!==-1)return n}return-1}#M(t){let i=Number(t);if(!Number.isFinite(i))return 0;let s=0,n=1/0;return this.#n.forEach((r,a)=>{let o=Number(r);if(!Number.isFinite(o))return;let c=Math.abs(o-i);c<n&&(n=c,s=a)}),s}#x(t,i){let s=this.#R(t),n=s!==this.#d;this.#d=s,this.getAttribute("value")!==String(s)&&this.setAttribute("value",String(s)),this.#z(),this.#K(),this.#Y(),this.#X(),this.#W(),n&&i!=="init"&&(this.dispatchEvent(new Event("input",{bubbles:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}#R(t){if(t==null)return this.#O();if(this.#t==="enum"){let n=String(t);return this.#a.find(a=>a.value===n)?n:this.#a[0]?.value??""}if(this.#t==="token")return String(t);let i=Number(t);if(!Number.isFinite(i))return String(this.#i===-1/0?0:this.#i);let s=xs(this.#r);return String(Number(Math.min(this.#s,Math.max(this.#i,i)).toFixed(s)))}#z(){let t=this.#P();this.#g.textContent=t,this.#G(t)}#P(t=this.#d){if(this.#t==="enum")return this.#a.find(s=>s.value===t)?.label??t??"";if(this.#t==="token"){let i=this.#p?String(t).replace(/^--/,""):String(t);return this.#c?`${i}${this.#c}`:i}if(this.#t==="formatted"){let i=Number(t)||0;if(this.#o==="duration")return pp(i);if(this.#o==="bytes")return fp(i,this.#h);if(this.#w){let s=this.#o==="percent"?i/100:i,n=this.#w.format(s);return this.#c&&this.#o==="number"?`${n}${this.#c}`:n}return this.#c?`${i}${this.#c}`:String(i)}return String(t??"")}#H(){if(this.#t==="enum")return this.#a.map(s=>this.#P(s.value));if(this.#t==="token")return this.#n.map(s=>this.#P(s));let t=new Set,i=s=>{Number.isFinite(s)&&t.add(s)};if(this.#i!==-1/0&&i(this.#i),this.#s!==1/0&&i(this.#s),i(Number(this.getAttribute("value"))||0),this.#s===1/0){let s=[10,100,1e3,1e4];for(let n of s)i(n);if(this.#o==="bytes")for(let n of[999,999e3,999e6,999e9])i(n)}return[...t].map(s=>this.#P(String(s)))}#G(t){let i=String(t??"");if(!i||this.#b.has(i))return;this.#b.add(i);let s=document.createElement("span");s.className="stepper-value-reserve",s.setAttribute("aria-hidden","true"),s.textContent=i,this.#u.appendChild(s)}recomputeWidth(){if(this.#u){this.#u.querySelectorAll(".stepper-value-reserve").forEach(t=>t.remove()),this.#b=new Set;for(let t of this.#H())this.#G(t)}}#K(){if(this.#t==="enum"){let i=this.#a.findIndex(s=>s.value===this.#d);this.#u.setAttribute("aria-valuemin","1"),this.#u.setAttribute("aria-valuemax",String(this.#a.length)),this.#u.setAttribute("aria-valuenow",String((i===-1?0:i)+1)),this.#u.setAttribute("aria-valuetext",this.#P());return}if(this.#t==="token"){let i=this.#j(this.#d);this.#u.setAttribute("aria-valuemin","1"),this.#u.setAttribute("aria-valuemax",String(this.#n.length)),this.#u.setAttribute("aria-valuenow",String((i===-1?0:i)+1)),this.#u.setAttribute("aria-valuetext",this.#P());return}let t=Number(this.#d)||0;this.#i!==-1/0?this.#u.setAttribute("aria-valuemin",String(this.#i)):this.#u.removeAttribute("aria-valuemin"),this.#s!==1/0?this.#u.setAttribute("aria-valuemax",String(this.#s)):this.#u.removeAttribute("aria-valuemax"),this.#u.setAttribute("aria-valuenow",String(t)),this.#u.setAttribute("aria-valuetext",this.#P())}#Y(){let t=this.#V(),i=this.#U();this.#k.disabled=t||this.hasAttribute("disabled"),this.#A.disabled=i||this.hasAttribute("disabled")}#V(){return this.#t==="enum"?this.#d===this.#a[0]?.value:this.#t==="token"?this.#j(this.#d)===0:this.#i!==-1/0&&Number(this.#d)<=this.#i}#U(){return this.#t==="enum"?this.#d===this.#a[this.#a.length-1]?.value:this.#t==="token"?this.#j(this.#d)===this.#n.length-1:this.#s!==1/0&&Number(this.#d)>=this.#s}#X(){this.#e.setFormValue(String(this.#d??""))}#W(){this.setState("at-min",this.#V()),this.setState("at-max",this.#U())}formResetCallback(){this.#x(this.#f??this.#O(),"reset")}formStateRestoreCallback(t){t!=null&&this.#x(t,"restore")}get displayText(){return this.#g?.textContent??""}get value(){return this.#d==null?"":String(this.#d)}set value(t){String(t)!==String(this.#d)&&this.#x(t,"api")}get form(){return this.#e.form}get name(){return this.getAttribute("name")}get type(){return this.localName}get validity(){return this.#e.validity}get validationMessage(){return this.#e.validationMessage}checkValidity(){return this.#e.checkValidity()}reportValidity(){return this.#e.reportValidity()}};b("stepper-wc",Ss);var gp=new Set(["live","recording","streaming","error","online","running","away","paused","busy","offline","stopped"]),Cs=class extends y{static observedAttributes=["data-variant","data-live"];#e;setup(){let t=document.createElement("span");for(t.className="status-dot",t.setAttribute("aria-hidden","true"),this.#e=document.createElement("span"),this.#e.className="status-label";this.firstChild;)this.#e.appendChild(this.firstChild);this.appendChild(t),this.appendChild(this.#e),this.#t(),this.#i(),this.#r()}attributeChangedCallback(t,i,s){!this.isConnected||i===s||(t==="data-variant"?(this.#i(),this.dispatchEvent(new CustomEvent("status-wc:change",{bubbles:!0,detail:{variant:s,previousVariant:i}}))):t==="data-live"&&this.#t())}#t(){this.getAttribute("data-live")==="off"?(this.removeAttribute("role"),this.removeAttribute("aria-live")):(this.hasAttribute("role")||this.setAttribute("role","status"),this.hasAttribute("aria-live")||this.setAttribute("aria-live","polite"))}#i(){let t=this.getAttribute("data-variant");t&&(gp.has(t)||this.#s(t)||console.info(`[status-wc] data-variant="${t}" is not a built-in; add a CSS rule (status-wc[data-variant="${t}"] { --status-dot-color: \u2026; }) or use a built-in.`))}#s(t){let i=this.querySelector(".status-dot");if(!i)return!0;let s=getComputedStyle(i).getPropertyValue("--status-dot-color").trim();return s&&s!==""}#r(){let t=this.#e?.textContent.trim(),i=this.hasAttribute("aria-label");!t&&!i&&console.warn("[status-wc] needs slot text or aria-label for accessibility.")}get variant(){return this.getAttribute("data-variant")}set variant(t){t?this.setAttribute("data-variant",t):this.removeAttribute("data-variant")}};b("status-wc",Cs);Ne();Wt();var Ts=0,bp='a[href], button, input, select, textarea, summary, iframe, [tabindex], [contenteditable]:not([contenteditable="false"])';function Re(e){return e.hasAttribute("data-disabled")||e.getAttribute("aria-disabled")==="true"||!!e.disabled}function yp(e){return e.split("+").map(t=>{let i=t.trim().toLowerCase();return i==="meta"||i==="cmd"?nt?"Meta":"Control":i==="ctrl"?"Control":i==="alt"?"Alt":i==="shift"?"Shift":i.length===1?i.toUpperCase():i.charAt(0).toUpperCase()+i.slice(1)}).join("+")}function vp(e){return e.pointerType===""||e.pointerId===-1||e.button===-1||e.clientX===0&&e.clientY===0&&e.buttons===0}var Ls=class extends y{#e;#t;#i;#s=[];#r=-1;#n=!1;#a=[];setup(){let t=this.querySelector(":scope > [data-trigger]"),i=this.querySelector('menu, ul[role="menu"]');if(!t||!i)return!1;this.#e=t,this.#t=i;let s=this.querySelector(":scope > pop-over[data-context-menu-host]");s?this.#i=s:(this.#i=document.createElement("pop-over"),this.#i.setAttribute("data-context-menu-host",""),this.#i.id=`ctx-menu-${++Ts}`,this.#i.dataset.mode="auto",this.#i.appendChild(this.#t),this.appendChild(this.#i)),this.#t.parentElement!==this.#i&&this.#i.appendChild(this.#t),this.#t.setAttribute("role","menu"),this.#t.id||(this.#t.id=`ctx-menu-list-${++Ts}`),this.#e.setAttribute("aria-haspopup","menu"),this.#e.setAttribute("aria-expanded","false"),this.#e.setAttribute("aria-controls",this.#t.id),this.#e.matches(bp)||this.#e.setAttribute("tabindex","0"),this.#t.querySelectorAll(':scope > li:empty:not([data-group]), :scope > [role="separator"], :scope > hr').forEach(r=>{r.setAttribute("role","separator")}),this.#o();let n=Array.from(this.#t.querySelectorAll('button, a, [role="menuitem"]'));return n.forEach(r=>{r.setAttribute("role","menuitem"),r.setAttribute("tabindex","-1")}),this.#s=n.filter(r=>!r.disabled),this.#t.querySelectorAll("li").forEach(r=>{r.querySelector(':scope > :is(button, a, [role="menuitem"])')&&r.setAttribute("role","none")}),this.#s.forEach(r=>{r.hasAttribute("data-disabled")&&r.setAttribute("aria-disabled","true"),this.listen(r,"click",this.#b);let a=r.getAttribute("data-shortcut");if(a){if(!r.querySelector(":scope > .ctx-kbd")){let c=document.createElement("kbd");c.className="ctx-kbd",c.setAttribute("aria-hidden","true"),c.textContent=ro(a),r.appendChild(c)}r.setAttribute("aria-keyshortcuts",yp(a));let o=rt(a,()=>{Re(r)||r.click()});this.#a.push(o)}}),this.listen(this.#e,"contextmenu",this.#c),this.listen(this.#e,"keydown",this.#p),this.listen(this.#t,"keydown",this.#u),this.listen(this.#t,"click",this.#g,{capture:!0}),this.listen(window,"scroll",this.#A,{capture:!0}),this.listen(this.#i,"pop-over:hide",this.#k),!0}teardown(){this.#a.forEach(t=>t()),this.#a=[],this.#n&&(this.#n=!1,this.removeAttribute("data-open"),this.#i?.hide?.()),this.#r=-1,this.#s=[],this.#t?.querySelectorAll(".ctx-kbd").forEach(t=>t.remove()),this.#l()}#o(){let t=this.#t;for(let i of Array.from(t.querySelectorAll(":scope > li[data-group]"))){i.id||(i.id=`ctx-group-${++Ts}`),i.classList.add("ctx-group-label"),i.setAttribute("aria-hidden","true");let s=document.createElement("li");s.setAttribute("role","group"),s.setAttribute("aria-labelledby",i.id),s.setAttribute("data-ctx-group","");let n=document.createElement("ul");n.setAttribute("role","none"),s.appendChild(n),t.insertBefore(s,i),n.appendChild(i);let r=s.nextElementSibling;for(;r&&!r.hasAttribute("data-group")&&r.getAttribute("role")!=="separator";){let a=r;r=r.nextElementSibling,n.appendChild(a)}}}#l(){let t=this.#t;if(t)for(let i of Array.from(t.querySelectorAll(":scope > li[data-ctx-group]"))){let s=i.querySelector(":scope > ul");if(s)for(let n of Array.from(s.children))t.insertBefore(n,i);i.remove()}}get items(){if(!this.#t)return[];let t=[],i=this.#t.querySelectorAll(":scope > li:not([data-ctx-group]), :scope > li[data-ctx-group] > ul > li");for(let s of i){if(s.hasAttribute("data-group")){t.push({group:s.textContent.trim()});continue}if(s.matches(':empty, [role="separator"]')||s.querySelector("hr")){t.push({separator:!0});continue}let n=s.querySelector('button, a, [role="menuitem"]');if(!n)continue;let r=Array.from(n.childNodes).filter(a=>!(a instanceof Element&&a.classList.contains("ctx-kbd"))).map(a=>a.textContent).join("");t.push({label:r.trim().replace(/\s+/g," "),value:n.getAttribute("data-value")||void 0,href:n.tagName==="A"?n.getAttribute("href"):void 0,shortcut:n.getAttribute("data-shortcut")||void 0,disabled:n.disabled||n.hasAttribute("data-disabled")||void 0})}return t}set items(t){let i=Array.isArray(t)?t:[],s=this.querySelector('menu, ul[role="menu"]');for(s||(s=document.createElement("menu"),this.appendChild(s));s.firstChild;)s.firstChild.remove();for(let n of i){let r=document.createElement("li");if(n.separator)r.setAttribute("role","separator");else if(n.group!=null)r.setAttribute("data-group",""),r.textContent=n.group;else{let a=n.href?document.createElement("a"):document.createElement("button");n.href&&a.setAttribute("href",n.href),n.value&&a.setAttribute("data-value",n.value),n.shortcut&&a.setAttribute("data-shortcut",n.shortcut),n.disabled&&a.setAttribute("data-disabled",""),a.tagName==="BUTTON"&&a.setAttribute("type","button"),a.textContent=n.label||"",r.appendChild(a)}s.appendChild(r)}this._reinit(),this.dispatchEvent(new CustomEvent("context-menu:items-changed",{detail:{items:i,source:"property"},bubbles:!0}))}#c=t=>{if(t.preventDefault(),vp(t)){this.#n||this.#m();return}t.buttons!==0?this.listen(window,"pointerup",()=>{setTimeout(()=>this.#h(t.clientX,t.clientY),0)},{once:!0,capture:!0}):this.#h(t.clientX,t.clientY)};#p=t=>{t.target===this.#e&&(t.key==="ContextMenu"||t.key==="F10"&&t.shiftKey)&&(t.preventDefault(),this.#n||this.#m())};#m(){let t=this.#e.getBoundingClientRect();this.#h(t.left,t.bottom)}#h(t,i){this.#n=!0,this.setAttribute("data-open",""),this.#e?.setAttribute("aria-expanded","true"),this.#i.style.top=`${i}px`,this.#i.style.left=`${t}px`,this.#i.show(),requestAnimationFrame(()=>{let s=this.#i.getBoundingClientRect(),n=t+s.width>window.innerWidth?t-s.width:t,r=i+s.height>window.innerHeight?i-s.height:i;this.#i.style.top=`${Math.max(0,r)}px`,this.#i.style.left=`${Math.max(0,n)}px`}),this.#r=-1,this.#w(0),this.dispatchEvent(new CustomEvent("context-menu:open",{bubbles:!0}))}close(){if(!this.#n)return;let t=this.#d();this.#n=!1,this.removeAttribute("data-open"),this.#e?.setAttribute("aria-expanded","false"),this.#r=-1,this.#i?.hide(),t&&this.#f(),this.dispatchEvent(new CustomEvent("context-menu:close",{bubbles:!0}))}#d(){let t=document.activeElement;return!t||t===document.body||!!this.#i?.contains(t)}#f(){this.#e?.isConnected&&this.#e.focus({preventScroll:!0})}#u=t=>{switch(t.key){case"ArrowDown":case"Down":t.preventDefault(),this.#w(this.#r+1);break;case"ArrowUp":case"Up":t.preventDefault(),this.#w(this.#r-1);break;case"Home":t.preventDefault(),this.#w(0);break;case"End":t.preventDefault(),this.#w(this.#s.length-1);break;case"Enter":case" ":{t.preventDefault();let i=this.#s[this.#r];i&&!Re(i)&&i.click();break}case"Tab":this.close();break}};#g=t=>{let i=t.target.closest?.('button, a, [role="menuitem"]');i&&this.#t.contains(i)&&Re(i)&&(t.preventDefault(),t.stopPropagation())};#b=t=>{let i=t.currentTarget;Re(i)||(this.close(),this.dispatchEvent(new CustomEvent("context-menu:select",{bubbles:!0,detail:{item:i,value:i.getAttribute("data-value")||void 0}})))};#k=()=>{this.#n&&(this.#n=!1,this.removeAttribute("data-open"),this.#e?.setAttribute("aria-expanded","false"),this.#r=-1,this.#d()&&this.#f(),this.dispatchEvent(new CustomEvent("context-menu:close",{bubbles:!0})))};#A=()=>{this.#n&&this.close()};#w(t){this.#s.length!==0&&(t<0&&(t=this.#s.length-1),t>=this.#s.length&&(t=0),this.#r=t,this.#s[t].focus())}get isOpen(){return this.#n}};b("context-menu",Ls);var Ms=class extends y{#e;#t;#i=null;#s=!1;setup(){if(this.#s)return;let t=this.getAttribute("src");return t?(this.#i===null&&(this.#i=this.innerHTML),this.hasAttribute("lazy")?this.#n():this.#a(t),!0):!1}teardown(){this.#e?.disconnect(),this.#t?.abort()}get src(){return this.getAttribute("src")||""}set src(t){let i=t==null?"":String(t);this.src!==i&&(i?this.setAttribute("src",i):this.removeAttribute("src"),this.dispatchEvent(new CustomEvent("include-file:src-changed",{detail:{src:i,source:"property"},bubbles:!0})))}static get observedAttributes(){return["src"]}attributeChangedCallback(t,i,s){t==="src"&&s&&i!==s&&this.isConnected&&(this.hasAttribute("lazy")&&!this.#r()?this.#n():this.#a(s))}#r(){let t=this.getBoundingClientRect();return t.top<window.innerHeight+200&&t.bottom>-200}#n(){this.#e?.disconnect(),this.#e=new IntersectionObserver(t=>{for(let i of t)if(i.isIntersecting){this.#e.disconnect();let s=this.getAttribute("src");s&&this.#a(s)}},{rootMargin:"200px"}),this.#e.observe(this)}async#a(t){this.#t?.abort(),this.#t=new AbortController,this.setAttribute("data-loading",""),this.removeAttribute("data-loaded"),this.removeAttribute("data-error");try{let i=await fetch(t,{signal:this.#t.signal});if(!i.ok)throw new Error(`HTTP ${i.status}: ${i.statusText}`);let s=await i.text(),n=this.getAttribute("mode")||"replace";n==="replace"?this.innerHTML=s:n==="append"?this.insertAdjacentHTML("beforeend",s):n==="prepend"&&this.insertAdjacentHTML("afterbegin",s),this.hasAttribute("allow-scripts")?this.querySelectorAll("script").forEach(r=>{let a=document.createElement("script");for(let o of r.attributes)a.setAttribute(o.name,o.value);a.textContent=r.textContent,r.replaceWith(a)}):this.querySelectorAll("script").forEach(r=>r.remove()),this.removeAttribute("data-loading"),this.setAttribute("data-loaded",""),this.#s=!0,this.dispatchEvent(new CustomEvent("include-file:loaded",{bubbles:!0,detail:{src:t,html:s}}))}catch(i){if(i.name==="AbortError")return;this.removeAttribute("data-loading"),this.setAttribute("data-error",""),(this.getAttribute("mode")||"replace")==="replace"&&this.#i!==null&&!this.#s&&(this.innerHTML=this.#i),this.dispatchEvent(new CustomEvent("include-file:error",{bubbles:!0,detail:{src:t,error:i.message}}))}}reload(){let t=this.getAttribute("src");t&&this.#a(t)}};b("include-file",Ms);et();var Mo="environment",No="preferences",Ns={timeOfDay:!1,seasonal:!1},wp=900*1e3,ct={...Ns};function bt(e,t,i){return e+(t-e)*Math.min(1,Math.max(0,i))}var Zt={_timer:null,_baseHues:null,_timeOverride:null,_monthOverride:null,async init(){let e=await k.get(Mo,No);ct=e?{...Ns,...e}:{...Ns},(ct.timeOfDay||ct.seasonal)&&(this._captureBaseHues(),this._update(),this._startLoop()),window.addEventListener("vb:theme-change",()=>{this._hasActiveSource()&&requestAnimationFrame(()=>{this._captureBaseHues(),this._update()})})},load(){return{...ct}},save(e){return ct={...ct,...e},k.set(Mo,No,ct).catch(()=>{}),{...ct}},setTimeOverride(e){this._timeOverride=e,this._hasActiveSource()&&this._update()},setMonthOverride(e){this._monthOverride=e,this._hasActiveSource()&&this._update()},setSource(e,t){let i=this.save({[e]:t});t?(this._captureBaseHues(),this._update(),this._startLoop()):this._hasActiveSource(i)?this._update():(this._clearModifiers(),this._stopLoop())},_hasActiveSource(e){let t=e||this.load();return t.timeOfDay||t.seasonal},_captureBaseHues(){let e=document.documentElement;e.style.removeProperty("--hue-primary"),e.style.removeProperty("--hue-secondary"),e.style.removeProperty("--hue-accent");let t=e.getAttribute("data-theme");if(t){let i=`[data-theme~="${t}"]`;for(let s of document.styleSheets)try{for(let n=0;n<s.cssRules.length;n++){let r=s.cssRules[n];if(r.selectorText?.includes(i)&&!r.selectorText.includes("dark")){let a=r.style?.getPropertyValue("--hue-primary");if(a){this._baseHues={primary:parseFloat(a)||260,secondary:parseFloat(r.style.getPropertyValue("--hue-secondary"))||200,accent:parseFloat(r.style.getPropertyValue("--hue-accent"))||30};return}}}}catch{}}this._baseHues={primary:260,secondary:200,accent:30}},_update(){let e=this.load(),t=0;e.timeOfDay&&(t+=this._getTimeOfDayOffset()),e.seasonal&&(t+=this._getSeasonalOffset());let i=document.documentElement;t!==0&&this._baseHues?(i.style.setProperty("--hue-primary",String(this._baseHues.primary+t)),i.style.setProperty("--hue-secondary",String(this._baseHues.secondary+t)),i.style.setProperty("--hue-accent",String(this._baseHues.accent+t*.5))):t===0&&this._clearModifiers()},_clearModifiers(){let e=document.documentElement;e.style.removeProperty("--hue-primary"),e.style.removeProperty("--hue-secondary"),e.style.removeProperty("--hue-accent")},_getTimeOfDayOffset(){let e=this._timeOverride??new Date().getHours()+new Date().getMinutes()/60;return e<5?-20:e<7?bt(-20,20,(e-5)/2):e<10?bt(20,5,(e-7)/3):e<14?bt(5,0,(e-10)/4):e<17?bt(0,-5,(e-14)/3):e<19?bt(-5,15,(e-17)/2):e<21?bt(15,-10,(e-19)/2):bt(-10,-20,(e-21)/8)},_getHemisphere(){return window.__VB_ENV_LOCATION?.hemisphere||"north"},_getSeasonalOffset(){let e=this._monthOverride??new Date().getMonth(),i=this._getHemisphere()==="south"?(e+6)%12:e;return i>=2&&i<=4?5:i>=5&&i<=7?10:i>=8&&i<=10?-5:-10},_startLoop(){this._timer||(this._timer=setInterval(()=>this._update(),wp))},_stopLoop(){this._timer&&clearInterval(this._timer),this._timer=null}};var je=null;function Do(){return"0.5.0-c9fb648d"}function Ap(){let e=document.querySelectorAll('script[src*="vanilla-breeze"]'),t="/cdn/sw.js";for(let i of e){let s=i.getAttribute("src");if(s){let n=s.lastIndexOf("/");if(n!==-1){t=s.slice(0,n)+"/sw.js";break}}}return t}function $o(){return je||(je=navigator.serviceWorker?.ready??Promise.reject(new Error("SW not supported"))),je}function Io(e){return new Promise((t,i)=>{navigator.serviceWorker?.controller?_o(navigator.serviceWorker.controller,e,t,i):$o().then(s=>{let n=s.active||s.waiting||s.installing;n?_o(n,e,t,i):i(new Error("No active service worker"))}).catch(i)})}function _o(e,t,i,s){let n=new MessageChannel;n.port1.onmessage=r=>i(r.data),n.port1.onmessageerror=()=>s(new Error("Message error")),e.postMessage({type:t},[n.port2]),setTimeout(()=>s(new Error("SW message timeout")),5e3)}async function qo(){return Io("GET_STATUS")}async function Bo(){return Io("CLEAR_CACHE")}async function Oo(){let e=await $o();return await e.update(),{updated:!!e.waiting}}function Ep(){return typeof window>"u"||!("serviceWorker"in navigator)?!1:window.__VB_SERVICE_WORKER?!0:document.querySelector('meta[name="vb-service-worker"]')?.content==="true"}if(Ep()){let e=Ap();window.addEventListener("load",()=>{je=navigator.serviceWorker.register(e).catch(t=>{console.warn("[VB] Service worker registration failed:",t)})})}et();var Dt=null,U="settings",Jt={motionFx:!0,sounds:!1},Is=class extends y{#e=null;#t=null;#i=!1;#s=[];#r={...Jt};#n=!1;setup(){return this.#a(),!0}async#a(){await this.#o(),this.#k(),this.#w(),this.#R(),this.listen(window,"vb:theme-change",this.#x),this.listen(window,"vb:extensions-change",this.#x),this.listen(window,"vb:a11y-themes-change",this.#x)}teardown(){this.#t?.remove(),this.#t=null}get data(){return{a11yThemes:[...this.#s],extensions:{...this.#r},sticky:this.#n}}set data(t){if(!t||typeof t!="object")return;let i=[];Array.isArray(t.a11yThemes)&&(this.#s=[...t.a11yThemes],i.push(k.set(U,"a11y",this.#s))),t.extensions&&typeof t.extensions=="object"&&(this.#r={...Jt,...t.extensions},i.push(k.set(U,"extensions",this.#r))),t.sticky!=null&&(this.#n=!!t.sticky,i.push(k.set(U,"sticky",this.#n?"on":"off"))),Promise.all(i).then(()=>{this.#R?.(),this.dispatchEvent(new CustomEvent("settings-panel:data-changed",{detail:{data:this.data,source:"property"},bubbles:!0}))})}async#o(){let[t,i,s]=await Promise.all([k.get(U,"a11y"),k.get(U,"extensions"),k.get(U,"sticky")]);this.#s=Array.isArray(t)?t:[],this.#r={...Jt,...i??{}},this.#n=s==="on"}#l(t){return t!==""&&t!==void 0}#c(t){return t==="compact"?"compact":t==="spacious"?"spacious":"default"}#p(t,i){return t?i==="compact"?"compact":i==="spacious"?"spacious":"default":""}#m(){return this.#n}#h(t){return t!==""&&t!==void 0}#d(t){return t==="flush"?"flush":t==="elevated"?"elevated":"default"}#f(t,i){return t?i==="flush"?"flush":i==="elevated"?"elevated":"default":""}#u(t){if(!t)return"card";let i=t.split(/\s+/);for(let s of i)if(s==="stretch"||s==="integrated")return s;return"card"}#g(t){return t?t.split(/\s+/).includes("fixed"):!1}#b(t,i){let s=[];return t&&t!=="card"&&s.push(t),i&&s.push("fixed"),s.join(" ")||"card"}#k(){this.#e=this.querySelector(":scope > [data-trigger]")||this.querySelector(":scope > button"),this.#e||(this.#e=document.createElement("button"),this.#e.setAttribute("data-trigger",""),this.#e.setAttribute("aria-label","Site settings"),this.#e.className="settings-trigger",this.#e.innerHTML='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>',this.prepend(this.#e)),this.#e.setAttribute("aria-haspopup","dialog"),this.#e.setAttribute("aria-expanded","false"),this.#t=document.createElement("div"),this.#t.className="settings-panel",this.#t.setAttribute("role","dialog"),this.#t.setAttribute("aria-label","Site settings");let t=`settings-panel-${crypto.randomUUID().slice(0,8)}`;this.#t.id=t,this.#e.setAttribute("aria-controls",t),this.#t.innerHTML=this.#A(),this.appendChild(this.#t)}#A(){let{mode:t,brand:i,fluid:s,backdrop:n,backdropChrome:r,pageBgType:a,pageBgColor:o,pageBgGradStart:c,pageBgGradEnd:l,pageBgGradDir:u}=T.getState(),d=this.#G(),h=this.#X(),p=this.#l(s),f=this.#c(s),m=this.#h(n),v=this.#d(n);return`
345
+ `,sr=class extends k{static get observedAttributes(){return["trend","loading"]}setup(){if(this.shadowRoot)for(let t of tu){let i=this.shadowRoot.querySelector(`slot[name="${t}"]`);this.#t(t,i)}else{let t=this.attachShadow({mode:"open"});t.innerHTML=av;for(let i of tu){let s=t.querySelector(`slot[name="${i}"]`);s?.addEventListener("slotchange",()=>this.#t(i,s)),this.#t(i,s)}}this.#e(),this.#i(),this.#n()}attributeChangedCallback(t){this.isConnected&&(t==="trend"?this.#e():t==="loading"&&this.#i())}#t(t,i){let s=!!i&&i.assignedNodes({flatten:!0}).some(n=>n.nodeType===Node.ELEMENT_NODE||n.nodeType===Node.TEXT_NODE&&n.textContent.trim().length>0);this.setState(`has-${t}`,s)}#e(){let t=(this.getAttribute("trend")||"").toLowerCase();for(let i of rv)this.setState(`trend-${i}`,i===t)}#i(){let t=this.hasAttribute("loading");this.setState("loading",t),t?this.setAttribute("aria-busy","true"):this.getAttribute("aria-busy")==="true"&&this.removeAttribute("aria-busy")}#n(){let t=this.closest("a[href]");this.setState("interactive",!!t)}};E("score-card",sr);var ov=0;function Gi(e,t){return e.matches("content-swap")?t:`data-${t}`}function Ui(e){let t=e.querySelector(':scope > [data-face="front"]'),i=e.querySelector(':scope > [data-face="back"]');if(!t||!i)return;e.style.viewTransitionName||(e.style.viewTransitionName=`content-swap-${++ov}`);let s=e.matches("content-swap");s||e.setAttribute("data-swap-init","");let n=[];function r(l,u,d,h){l.addEventListener(u,d,h),n.push(()=>l.removeEventListener(u,d,h))}let a=[...e.querySelectorAll("[data-swap]")].filter(l=>l.parentElement?.closest("content-swap, [data-swap]")===e),o=a.length===0,c=e.querySelector(":scope > [data-swap-toggle]");if(o){if(!c){let l=document.createElement("button");l.type="button",l.setAttribute("data-swap-toggle",""),l.textContent="Show back",e.append(l),c=l}r(c,"click",l=>{l.stopPropagation(),Ot(e,l.detail===0?"keyboard":"pointer")}),r(e,"click",l=>{let d=l.target.closest?.(cv);d&&d!==e&&e.contains(d)||Ot(e,"pointer")})}else c&&!c.hasAttribute("data-swap")&&c.remove(),c=null,a.forEach(l=>{r(l,"click",u=>{u.stopPropagation(),Ot(e,"pointer")}),r(l,"keydown",u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),Ot(e,"keyboard"))})});if(e.matches('[data-gesture="flick"], [data-gesture="swipe"]')&&(r(e,"swipe-left",()=>Ot(e,"pointer")),r(e,"swipe-right",()=>Ot(e,"pointer"))),!s){let l=new MutationObserver(()=>Wi(e,t,i));l.observe(e,{attributes:!0,attributeFilter:["data-swapped"]}),n.push(()=>l.disconnect())}return Wi(e,t,i),lv([t,i]),()=>{for(let l of n)l();n.length=0}}var cv='a[href], button, input, select, textarea, label, summary, [contenteditable=""], [contenteditable="true"], [tabindex]';function lv(e){let t=e.map(i=>i.style.transition);for(let i of e)i.style.transition="none";for(let i of e)getComputedStyle(i).transform;e.forEach((i,s)=>{i.style.transition=t[s]})}function Wi(e,t,i){let s=e.hasAttribute(Gi(e,"swapped"));t.inert=s,i.inert=!s,e.querySelector(":scope > [data-swap-toggle]")?.setAttribute("aria-pressed",String(s))}function su(e){return{front:e.querySelector(':scope > [data-face="front"]'),back:e.querySelector(':scope > [data-face="back"]')}}function Ve(e,t,i="api"){let{front:s,back:n}=su(e);if(!s||!n)return;let r=Gi(e,"swapped");if(t&&e.hasAttribute(r)||!t&&!e.hasAttribute(r))return;let a=document.activeElement,o=()=>{t?e.setAttribute(r,""):e.removeAttribute(r),Wi(e,s,n),uv(e,i);let u=t?n:s,d=t?s:n,h=u.querySelector("[autofocus]");h?h.focus():i==="keyboard"&&d.contains(a)&&dv(u)},c=u=>{let d=e;typeof d.setState=="function"&&d.setState("transition-running",u)};c(!0);let l=lt(o);l&&l.finished&&typeof l.finished.finally=="function"?l.finished.finally(()=>c(!1)):c(!1)}function Ot(e,t="api"){Ve(e,!e.hasAttribute(Gi(e,"swapped")),t)}function uv(e,t="internal"){e.dispatchEvent(new CustomEvent("content-swap:swap",{detail:{swapped:e.hasAttribute(Gi(e,"swapped")),source:t},bubbles:!0}))}function dv(e){let t=e.querySelector("[data-swap], button, a, input, select, textarea");t&&t.focus()}var nr=class extends k{static observedAttributes=["swapped"];#t=null;attributeChangedCallback(){if(!this.isConnected)return;let{front:t,back:i}=su(this);t&&i&&Wi(this,t,i)}setup(){this.#t=Ui(this)??null}teardown(){this.#t?.(),this.#t=null}flip(){Ve(this,!0)}unflip(){Ve(this,!1)}toggle(){Ot(this)}get flipped(){return this.hasAttribute("swapped")}set flipped(t){Ve(this,!!t)}get swapped(){return this.hasAttribute("swapped")}set swapped(t){Ve(this,!!t)}};E("content-swap",nr);function eu(){document.querySelectorAll("[data-swap]:not(content-swap):not([data-swap-init])").forEach(e=>{e.querySelector(":scope > [data-face]")&&Ui(e)})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",eu):eu();var iu=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.hasAttribute("data-swap")&&!s.matches("content-swap")&&!s.hasAttribute("data-swap-init")&&s.querySelector(":scope > [data-face]")&&Ui(s),s.querySelectorAll("[data-swap]:not(content-swap):not([data-swap-init])").forEach(n=>{n.querySelector(":scope > [data-face]")&&Ui(n)})}});document.body?iu.observe(document.body,{childList:!0,subtree:!0}):document.addEventListener("DOMContentLoaded",()=>{iu.observe(document.body,{childList:!0,subtree:!0})});var rr=class extends k{#t=null;#e=!1;#i=null;setup(){!this.hasAttribute("role")&&!this.querySelector("nav")&&this.setAttribute("role","navigation"),this.#r("pathname"),this.listen(window,"popstate",this.#s);let t=window.navigation;t&&typeof t.addEventListener=="function"&&this.listen(t,"currententrychange",this.#o)}get items(){return this.#t?this.#t.map(t=>({...t})):Array.from(this.#n()).map(t=>({href:t.getAttribute("href")||"",label:t.textContent?.trim()||""}))}set items(t){if(!Array.isArray(t))return;let i=t.map(s=>({...s}));this.#t&&this.#d(this.#t,i)||(this.#t=i,this.#m(i),this.#e?this.#l(this.#i):this.#r("pathname"),this.dispatchEvent(new CustomEvent("nav-bar:items-changed",{detail:{items:this.items,source:"property"},bubbles:!0,composed:!0})))}get current(){if(this.#e)return this.#i;for(let t of this.#n())if(t.getAttribute("aria-current")==="page")return t.getAttribute("data-route")||t.getAttribute("href")||null;return null}set current(t){let i=this.current,s=t==null?null:String(t);this.#e=!0,this.#i=s,this.#l(s),i!==s&&this.dispatchEvent(new CustomEvent("nav-bar:current-changed",{detail:{current:s,previous:i,source:"property"},bubbles:!0,composed:!0}))}releaseCurrent(){this.#e&&(this.#e=!1,this.#i=null,this.#r("pathname"))}refresh(){this.#e||this.#r("pathname")}#n(){let t=this.querySelectorAll("a[data-nav-link]");return t.length>0?t:this.querySelectorAll(":scope > a")}#s=()=>{this.#e||this.#r("popstate")};#o=()=>{queueMicrotask(()=>{this.#e||!this.isConnected||this.#r("navigation")})};#r(t){let i=this.current,s=this.#a();this.#l(s),s==null&&this.#c(),i!==s&&this.dispatchEvent(new CustomEvent("nav-bar:current-changed",{detail:{current:s,previous:i,source:t},bubbles:!0,composed:!0}))}#a(){let t=Ki(window.location.pathname),i=window.location.origin,s=Array.from(this.#n());if(s.length===0)return null;let n=this.getAttribute("data-match")==="exact",r=null,a=null,o=-1;for(let l of s){let u=l.getAttribute("href");if(!u||u.startsWith("#"))continue;let d;try{d=new URL(u,document.baseURI)}catch{continue}if(!/^https?:$/.test(d.protocol)||d.origin!==i)continue;let h=Ki(d.pathname);if(h===t){r==null&&(r=l);continue}!n&&h!=="/"&&t.startsWith(h+"/")&&h.length>o&&(a=l,o=h.length)}let c=r||a;return c?c.getAttribute("data-route")||c.getAttribute("href"):null}#c(){let t=Ki(window.location.pathname),i=window.location.origin,s=this.getAttribute("data-match")==="exact",n=null,r=-1;for(let a of this.querySelectorAll("a[data-nav-link]")){let o=a.closest("drop-down, li");if(!(!o||!this.contains(o)))for(let c of o.querySelectorAll("a[href]:not([data-nav-link])")){let l=c.getAttribute("href");if(!l||l.startsWith("#"))continue;let u;try{u=new URL(l,document.baseURI)}catch{continue}if(!/^https?:$/.test(u.protocol)||u.origin!==i)continue;let d=Ki(u.pathname),h=-1;d===t?h=Number.MAX_SAFE_INTEGER:!s&&d!=="/"&&t.startsWith(d+"/")&&(h=d.length),h>r&&(n=a,r=h)}}n&&n.setAttribute("aria-current","true")}#l(t){let i=this.#n();for(let s of i){let n=s.getAttribute("data-route")||s.getAttribute("href");t!=null&&n===t?s.setAttribute("aria-current","page"):s.removeAttribute("aria-current")}}#m(t){this.querySelectorAll(":scope > a").forEach(n=>n.remove());let i=this.querySelector("a[data-nav-link]")!=null,s=document.createDocumentFragment();for(let n of t){let r=this.#p(n);i&&r.setAttribute("data-nav-link",""),s.appendChild(r)}this.appendChild(s)}#p(t){let i=document.createElement("a"),s=hv(t.href);if(s!=null&&i.setAttribute("href",s),t.route&&i.setAttribute("data-route",t.route),t.external&&(i.target="_blank",i.rel="noopener noreferrer"),t.icon){let n=document.createElement("icon-wc");n.setAttribute("name",String(t.icon)),n.setAttribute("size","sm"),i.appendChild(n)}if(i.appendChild(document.createTextNode(t.label||"")),t.external){let n=document.createElement("span");n.className="sr-only",n.textContent=` ${this.getAttribute("data-label-new-tab")??"(opens in new tab)"}`,i.appendChild(n)}if(t.badge!=null){let n=document.createElement("span");n.className="badge",n.textContent=String(t.badge),i.appendChild(n)}return i}#d(t,i){if(t.length!==i.length)return!1;for(let s=0;s<t.length;s++){let n=Object.keys(t[s]).sort(),r=Object.keys(i[s]).sort();if(n.length!==r.length)return!1;for(let a=0;a<n.length;a++)if(n[a]!==r[a]||t[s][n[a]]!==i[s][r[a]])return!1}return!0}};function Ki(e){let t=e.replace(/\/+$/,"");return t===""?"/":t}function hv(e){if(e==null||e==="")return"#";let t=String(e),i;try{i=new URL(t,document.baseURI)}catch{return null}return/^https?:$/.test(i.protocol)?t:null}E("nav-bar",rr);var pv=0,lr=class extends k{#t;#e=[];#i;#n;#s;#o;#r;#a;#c=null;#l=0;#m=0;#p=!1;#d=!1;#f=!1;#g=null;#u=!1;#y=!1;#h=!1;#w=!1;#A=new WeakSet;get currentIndex(){return this.#l}get slideCount(){return this.#e.length}get playing(){return this.#c!==null}setup(){let t=[...this.children];if(t.length===0)return!1;this.#d=window.matchMedia("(prefers-reduced-motion: reduce)").matches||document.documentElement.hasAttribute("data-motion-reduced"),this.#f=this.hasAttribute("transition")&&!!document.startViewTransition,this.hasAttribute("transition")&&!this.#f&&this.removeAttribute("transition"),this.setAttribute("role","region"),this.setAttribute("aria-roledescription","carousel"),!this.hasAttribute("aria-label")&&!this.hasAttribute("aria-labelledby")&&this.setAttribute("aria-label","Carousel"),this.#t=document.createElement("div"),this.#t.className="carousel-track",this.#t.setAttribute("tabindex","0");let i=this.getAttribute("item-width");if(i&&i!=="auto"&&i!=="full"&&CSS.supports("inline-size",i)&&this.#t.style.setProperty("--_item-width",i),t.forEach((a,o)=>{a.setAttribute("role","group"),a.setAttribute("aria-roledescription","slide"),a.hasAttribute("aria-label")||(a.setAttribute("aria-label",`${o+1} of ${t.length}`),this.#A.add(a)),this.#t.appendChild(a)}),this.#e=[...this.#t.children],this.hasAttribute("autoplay")&&!this.#d&&this.#b(),this.#n=document.createElement("button"),this.#n.className="carousel-prev",this.#n.setAttribute("aria-label","Previous slide"),this.#n.innerHTML='<icon-wc name="chevron-left" size="sm"></icon-wc>',this.#s=document.createElement("button"),this.#s.className="carousel-next",this.#s.setAttribute("aria-label","Next slide"),this.#s.innerHTML='<icon-wc name="chevron-right" size="sm"></icon-wc>',this.getAttribute("indicators")!=="false"&&(this.#o=document.createElement("div"),this.#o.className="carousel-indicators",this.#o.setAttribute("role","group"),this.#o.setAttribute("aria-label","Slide indicators"),this.#e.forEach((a,o)=>{let c=document.createElement("button");c.className="carousel-dot",c.setAttribute("aria-label",`Go to slide ${o+1}`),c.setAttribute("aria-current",o===0?"true":"false"),this.listen(c,"click",()=>this.goTo(o)),this.#o.appendChild(c)})),this.#r=document.createElement("div"),this.#r.className="carousel-live",this.#r.setAttribute("aria-live","polite"),this.#r.setAttribute("aria-atomic","true"),this.#i&&this.appendChild(this.#i),this.appendChild(this.#n),this.appendChild(this.#t),this.appendChild(this.#s),this.#o&&this.appendChild(this.#o),this.appendChild(this.#r),this.listen(this.#n,"click",()=>this.prev()),this.listen(this.#s,"click",()=>this.next()),this.listen(this.#t,"keydown",this.#H),this.listen(this,"mouseenter",()=>{this.#h=!0,this.#E()}),this.listen(this,"mouseleave",()=>{this.#h=!1,this.#E()}),this.listen(this,"touchstart",()=>{this.#h=!0,this.#E()},{passive:!0}),this.listen(this,"focusin",()=>{this.#w=!0,this.#E()}),this.listen(this,"focusout",a=>{this.contains(a.relatedTarget)||(this.#w=!1,this.#E())}),this.#f){let a=++pv,o=this.getAttribute("transition")||"fade",c=o==="slide"?"vt-carousel-slide":o==="scale"?"vt-carousel-scale":"vt-carousel";this.#t.style.viewTransitionName=`carousel-${a}`,this.#t.style.viewTransitionClass=c}if(this.#f){let a=this.#t;Promise.resolve().then(()=>(cr(),or)).then(({addSwipeListener:o})=>{!this.isConnected||this.#t!==a||(this.#g=o(a,{threshold:40}),this.listen(a,"swipe-left",()=>this.#x()?this.prev():this.next()),this.listen(a,"swipe-right",()=>this.#x()?this.next():this.prev()))})}this.#f||(this.#a=new IntersectionObserver(this.#D,{root:this.#t,threshold:.5}),this.#e.forEach(a=>this.#a.observe(a)),"onscrollend"in window&&this.listen(this.#t,"scrollend",()=>{this.#p=!1,this.#C()}));let r=this.#R()??(Number(this.getAttribute("start"))||0);if(this.#f){let a=r>0&&r<this.#e.length?r:0;this.#e.forEach((o,c)=>{o.hidden=c!==a}),this.#_(a)}else r>0&&r<this.#e.length&&this.goTo(r,!1);return this.#F(),this.#h=this.#w=!1,this.#u=this.hasAttribute("autoplay")&&!this.#d&&!this.#y,this.#E(),!0}teardown(){this.#u=!1,this.#N(),this.#a&&(this.#a.disconnect(),this.#a=null),this.#g&&(this.#g(),this.#g=null),this.#t?.parentElement===this&&[...this.#t.children].forEach(t=>this.appendChild(t)),this.#e.forEach(t=>{this.#A.has(t)&&t.removeAttribute("aria-label")}),this.#t?.remove(),this.#i?.remove(),this.#n?.remove(),this.#s?.remove(),this.#o?.remove(),this.#r?.remove(),this.#t=this.#i=this.#n=this.#s=this.#o=this.#r=null,this.#e=[],this.#f=!1,this.#l=0,this.#m=0,this.#p=!1}get slides(){return this.#e.map((t,i)=>({id:t.id||void 0,html:t.innerHTML,label:t.getAttribute("aria-label")||`${i+1} of ${this.#e.length}`}))}set slides(t){let i=Array.isArray(t)?t:[];for(;this.firstChild;)this.firstChild.remove();for(let s of i){let n=document.createElement("div");s.id&&(n.id=s.id),s.label&&n.setAttribute("aria-label",s.label),n.innerHTML=s.html||"",this.appendChild(n)}this._reinit(),this.dispatchEvent(new CustomEvent("carousel-wc:slides-changed",{detail:{slides:i,source:"property"},bubbles:!0}))}next(){let t=this.hasAttribute("loop");this.#l<this.#e.length-1?this.goTo(this.#l+1):t&&this.goTo(0)}prev(){let t=this.hasAttribute("loop");this.#l>0?this.goTo(this.#l-1):t&&this.goTo(this.#e.length-1)}goTo(t,i=!0){if(!(t<0||t>=this.#e.length)){if(this.#f)if(i&&t!==this.#l){let s=t>this.#l?"forward":"backward";document.documentElement.dataset.vtDirection=s,lt(()=>{this.#S(t)}).finished?.then(()=>{delete document.documentElement.dataset.vtDirection})}else this.#S(t);else{let s=this.#e[t].getBoundingClientRect(),n=this.#t.getBoundingClientRect(),r=this.#x()?s.right-n.right:s.left-n.left,a=i&&!this.#d?"smooth":"instant";this.#t.scrollTo({left:this.#t.scrollLeft+r,behavior:a})}this.#_(t)}}#S(t){this.#e.forEach((i,s)=>{i.hidden=s!==t})}play(){this.#d||!this.#t||(this.#y=!1,this.#u=!0,this.#h=this.#w=!1,this.#i||(this.#b(),this.insertBefore(this.#i,this.firstChild)),this.#E())}pause(){this.#y=!0,this.#u=!1,this.#E()}#b(){let t=document.createElement("button");t.type="button",t.className="carousel-rotate",this.listen(t,"click",()=>{this.#u?this.pause():this.play()}),this.#i=t,this.#k()}#k(){let t=this.#i;if(!t)return;let i=this.#u?"Pause automatic slide show":"Start automatic slide show";t.getAttribute("aria-label")!==i&&(t.setAttribute("aria-label",i),t.innerHTML=`<icon-wc name="${this.#u?"pause":"play"}" size="sm"></icon-wc>`)}#E(){this.#u&&!this.#h&&!this.#w&&!this.#d&&this.isConnected&&!!this.#t?this.#v():this.#N(),this.#k()}#v(){if(this.#c)return;let t=Number(this.getAttribute("autoplay-delay"))||5e3;this.#c=setInterval(()=>this.next(),t),this.#r?.setAttribute("aria-live","off"),this.dispatchEvent(new CustomEvent("carousel-wc:play",{bubbles:!0}))}#N(){this.#r?.setAttribute("aria-live","polite"),this.#c&&(clearInterval(this.#c),this.#c=null,this.dispatchEvent(new CustomEvent("carousel-wc:pause",{bubbles:!0})))}#x(){return getComputedStyle(this).direction==="rtl"}reset(){let t=Number(this.getAttribute("start"))||0;this.goTo(t,!1),this.#M()}#_(t){this.#l=t,this.#F(),this.#U(),this.#r&&(this.#r.textContent=`Slide ${t+1} of ${this.#e.length}`),!this.#p&&(this.#C(),!this.#f&&"onscrollend"in window&&(this.#p=!0))}#C(){this.#l!==this.#m&&(this.#m=this.#l,this.dispatchEvent(new CustomEvent("carousel-wc:change",{detail:{index:this.#l,slide:this.#e[this.#l]},bubbles:!0})))}#F(){let t=this.hasAttribute("loop"),i=this.#l===0,s=this.#l===this.#e.length-1;if(this.#n&&(this.#n.disabled=!t&&i),this.#s&&(this.#s.disabled=!t&&s),this.#o){let n=this.#o.children;for(let r=0;r<n.length;r++){let a=r===this.#l;n[r].setAttribute("aria-current",a?"true":"false"),a?n[r].setAttribute("data-active",""):n[r].removeAttribute("data-active")}}}#D=t=>{for(let i of t)if(i.isIntersecting){let s=this.#e.indexOf(i.target);s!==-1&&s!==this.#l&&this.#_(s)}};#H=t=>{let i=(t.key==="ArrowLeft"||t.key==="ArrowRight")&&this.#x();switch(t.key){case"ArrowLeft":t.preventDefault(),i?this.next():this.prev();break;case"ArrowRight":t.preventDefault(),i?this.prev():this.next();break;case"Home":t.preventDefault(),this.goTo(0);break;case"End":t.preventDefault(),this.goTo(this.#e.length-1);break}};#R(){let t=this.getAttribute("persist");if(!t)return null;try{let i=localStorage.getItem(`carousel:${t}`);return i!==null?Number(i):null}catch{return null}}#U(){let t=this.getAttribute("persist");if(t)try{localStorage.setItem(`carousel:${t}`,String(this.#l))}catch{}}#M(){let t=this.getAttribute("persist");if(t)try{localStorage.removeItem(`carousel:${t}`)}catch{}}};E("carousel-wc",lr);var mv=0,ur=class extends k{static formAssociated=!0;#t;#e;#i;#n;#s=[];#o=[];#r=-1;#a=!1;#c="";#l="";#m;#p=!1;#d;#f;#g=[];constructor(){super(),this.#t=this.attachInternals(),this._adoptInternals(this.#t)}get#u(){return this.hasAttribute("multiple")}setup(){let t=this.querySelector(":scope > input")||this.querySelector(":scope > .tags-input-area > input");if(!t)return!1;this.#e=t;let i=this.#e.getAttribute("name");i&&(this.hasAttribute("name")||this.setAttribute("name",i),this.#e.removeAttribute("name"));let s=this.querySelector("ul, ol");if(!s)return!1;if(this.#i=s,this.#u){let c=this.querySelector(":scope > .tags-input-area");if(!c){c=document.createElement("div"),c.className="tags-input-area";let u=this.querySelector(":scope > pop-over[data-combobox-host]")||this.#i;this.insertBefore(c,u)}this.#d=c,this.#e.parentNode!==this.#d&&this.#d.appendChild(this.#e);let l=this.querySelector(":scope > [data-combobox-live]");l||(l=document.createElement("div"),l.setAttribute("aria-live","polite"),l.setAttribute("aria-atomic","true"),l.setAttribute("data-combobox-live",""),l.className="visually-hidden",this.appendChild(l)),this.#f=l}let n=this.getAttribute("placeholder");n&&!this.#e.getAttribute("placeholder")&&this.#e.setAttribute("placeholder",n);let r=`cb${++mv}`;this.#i.id||(this.#i.id=`combobox-listbox-${r}`),this.#e.setAttribute("role","combobox"),this.#e.setAttribute("aria-expanded","false"),this.#e.setAttribute("aria-autocomplete","list"),this.#e.setAttribute("aria-controls",this.#i.id),this.#e.setAttribute("autocomplete","off"),this.#i.setAttribute("role","listbox"),this.#u&&this.#i.setAttribute("aria-multiselectable","true");let a=this.#u?this.#d:this.#e;a.id||(a.id=`combobox-anchor-${r}`);let o=this.querySelector(":scope > pop-over[data-combobox-host]");if(o?this.#n=o:(this.#n=document.createElement("pop-over"),this.#n.setAttribute("data-combobox-host",""),this.#n.id=`combobox-pop-${r}`,this.#n.dataset.mode="manual",this.#n.dataset.position="bottom-start",this.#n.dataset.anchor=a.id,this.#n.appendChild(this.#i),this.appendChild(this.#n)),this.#n.dataset.anchor=a.id,this.#i.parentElement!==this.#n&&this.#n.appendChild(this.#i),this.#w(),!this.#u){let c=this.getAttribute("value");c&&this.#M(c,!1),this.#m===void 0&&(this.#m=this.#c)}return this.listen(this.#e,"input",this.#E),this.listen(this.#e,"keydown",this.#v),this.listen(this.#e,"focus",this.#N),this.listen(this.#e,"click",this.#x),this.listen(this.#i,"click",this.#_),this.listen(this.#i,"pointerdown",this.#C),this.listen(document,"click",this.#F),this.listen(this.#n,"pop-over:hide",this.#Q),this.listen(this,"invalid",this.#y),this.#I(),this.#T(),this.#O(),this.#h(this.matches(":disabled")),!0}teardown(){}#y=()=>{this.#e.setAttribute("aria-invalid","true")};formDisabledCallback(t){this.#e&&this.#h(t)}#h(t){this.#p=t,t&&this.#O();let i=this.#b(),s=this.#u&&i>0&&this.#g.length>=i;if(this.#e.disabled=t||s,this.#d)for(let n of this.#d.querySelectorAll(".tag button"))n.disabled=t}#w(){this.#s=Array.from(this.#i.querySelectorAll(":scope > li[data-value]")),this.#s.forEach((t,i)=>{t.setAttribute("role","option"),t.setAttribute("aria-selected","false"),t.id||(t.id=`${this.#i.id}-option-${i}`)}),this.#o=[...this.#s]}#A(t,i){if(this.#g.some(o=>o.value===t))return;let s=this.#b();if(s&&this.#g.length>=s)return;this.#g.push({value:t,label:i});let n=document.createElement("span");n.className="tag",n.dataset.value=t,n.textContent=i+" ";let r=document.createElement("button");r.type="button",r.setAttribute("aria-label",`Remove ${i}`),r.innerHTML="&times;",r.disabled=this.#p,r.addEventListener("click",o=>{o.stopPropagation(),this.#S(t)}),n.appendChild(r),this.#d.insertBefore(n,this.#e);let a=this.#s.find(o=>o.getAttribute("data-value")===t);a&&a.setAttribute("aria-selected","true"),this.#k(`${i} added`),this.#e.value="",this.#D(""),this.#I(),this.#T(),this.#q(),s&&this.#g.length>=s&&(this.#e.disabled=!0,this.#O())}#S(t){let i=this.#g.findIndex(o=>o.value===t);if(i===-1)return;let s=this.#g.splice(i,1)[0],n=this.#d.querySelector(`.tag[data-value="${CSS.escape(t)}"]`);n&&n.remove();let r=this.#s.find(o=>o.getAttribute("data-value")===t);r&&r.setAttribute("aria-selected","false"),this.#k(`${s.label} removed`),this.#b()&&this.#e.disabled&&(this.#e.disabled=this.#p),this.#D(this.#e.value.trim()),this.#I(),this.#T(),this.#q(),this.#e.focus()}#b(){let t=this.getAttribute("max");return t?parseInt(t,10):0}#k(t){this.#f&&(this.#f.textContent="",requestAnimationFrame(()=>{this.#f.textContent=t}))}#E=()=>{let t=this.#e.value.trim();if(!this.#u&&this.#c){let i=this.#i.querySelector('[aria-selected="true"]');i&&i.setAttribute("aria-selected","false"),this.#c="",this.#l="",this.removeAttribute("value"),this.#I(),this.#T()}this.#D(t),this.#L()};#v=t=>{switch(t.key){case"ArrowDown":t.preventDefault(),this.#a||this.#L(),this.#H(this.#r+1);break;case"ArrowUp":t.preventDefault(),this.#a||this.#L(),this.#H(this.#r-1);break;case"Home":this.#a&&(t.preventDefault(),this.#H(0));break;case"End":this.#a&&(t.preventDefault(),this.#H(this.#o.length-1));break;case"Enter":if(t.preventDefault(),this.#a&&this.#r>=0&&this.#o[this.#r]){let i=this.#o[this.#r];this.#u?this.#A(i.getAttribute("data-value"),i.textContent.trim()):this.#U(i)}else if(this.#u&&this.hasAttribute("custom")&&this.#e.value.trim()){let i=this.#e.value.trim();this.#A(i,i)}break;case"Backspace":if(this.#u&&!this.#e.value&&this.#g.length>0){let i=this.#g[this.#g.length-1];this.#S(i.value)}break;case",":if(this.#u&&this.hasAttribute("custom")&&this.#e.value.trim()){t.preventDefault();let i=this.#e.value.trim();this.#A(i,i)}break;case"Escape":this.#a&&(t.preventDefault(),t.stopPropagation(),this.#O(),this.#e.focus());break;case"Tab":this.#a&&this.#O();break}};#N=()=>{this.#u?(this.#D(this.#e.value.trim()),this.#L()):(this.#e.value||!this.#c)&&(this.#D(this.#e.value.trim()),this.#L())};#x=()=>{this.#a||(this.#D(this.#e.value.trim()),this.#L())};#_=t=>{let i=t.target.closest("li[data-value]");i&&this.#o.includes(i)&&(this.#u?this.#A(i.getAttribute("data-value"),i.textContent.trim()):this.#U(i))};#C=t=>{t.preventDefault()};#F=t=>{this.#a&&!this.contains(t.target)&&this.#O()};#D(t){let i=this.getAttribute("filter")||"contains",s=t.toLowerCase(),n=this.#u?new Set(this.#g.map(r=>r.value)):null;this.#o=[],this.#s.forEach(r=>{let a=r.getAttribute("data-value"),o=r.textContent.trim().toLowerCase();if(n&&n.has(a)){r.hidden=!0;return}let c;t?i==="startsWith"?c=o.startsWith(s):c=o.includes(s):c=!0,r.hidden=!c,c&&this.#o.push(r)}),this.#r=-1,this.#R(),this.setState("no-matches",this.#o.length===0)}#H(t){if(this.#o.length===0)return;t<0&&(t=this.#o.length-1),t>=this.#o.length&&(t=0),this.#r>=0&&this.#o[this.#r]&&this.#o[this.#r].removeAttribute("data-active"),this.#r=t;let i=this.#o[t];i.setAttribute("data-active",""),i.scrollIntoView({block:"nearest"}),this.#e.setAttribute("aria-activedescendant",i.id)}#R(){this.#s.forEach(t=>t.removeAttribute("data-active")),this.#e.removeAttribute("aria-activedescendant")}#U(t,i="internal"){let s=t.getAttribute("data-value")||"",n=t.textContent.trim();if(this.#c===s){this.#e.value=n,this.#O(),this.#e.focus();return}this.#s.forEach(r=>r.setAttribute("aria-selected","false")),t.setAttribute("aria-selected","true"),this.#c=s,this.#l=n,this.#e.value=n,this.setAttribute("value",s),this.#I(),this.#T(),this.#O(),this.#e.focus(),this.dispatchEvent(new CustomEvent("combo-box:change",{bubbles:!0,detail:{value:s,label:n,source:i}}))}#M(t,i=!0,s="api"){let n=this.#s.find(r=>r.getAttribute("data-value")===t);n&&(i?this.#U(n,s):(this.#s.forEach(r=>r.setAttribute("aria-selected","false")),n.setAttribute("aria-selected","true"),this.#c=t,this.#l=n.textContent.trim(),this.#e.value=this.#l,this.setAttribute("value",t)))}#L(){this.#a||this.#p||(this.#a=!0,this.setAttribute("open",""),this.#e.setAttribute("aria-expanded","true"),this.#n?.show(),this.dispatchEvent(new CustomEvent("combo-box:open",{bubbles:!0})))}#O(){this.#a&&(this.#a=!1,this.removeAttribute("open"),this.#e.setAttribute("aria-expanded","false"),this.#r=-1,this.#R(),this.#n?.hide(),this.dispatchEvent(new CustomEvent("combo-box:close",{bubbles:!0})))}#Q=()=>{this.#a&&(this.#a=!1,this.removeAttribute("open"),this.#e.setAttribute("aria-expanded","false"),this.#r=-1,this.#R(),this.dispatchEvent(new CustomEvent("combo-box:close",{bubbles:!0})))};#I(){if(this.#u)if(this.#g.length>0){let t=new FormData,i=this.getAttribute("name")||"";for(let s of this.#g)t.append(i,s.value);this.#t.setFormValue(t)}else this.#t.setFormValue(null);else this.#c?this.#t.setFormValue(this.#c,this.#l):this.#t.setFormValue(null)}#T(){this.hasAttribute("required")?this.#u?this.#g.length===0?this.#t.setValidity({valueMissing:!0},"Please select at least one option",this.#e):this.#t.setValidity({}):this.#c?this.#t.setValidity({}):this.#t.setValidity({valueMissing:!0},"Please select an option",this.#e):this.#t.setValidity({}),this.#t.validity.valid&&this.#e.removeAttribute("aria-invalid")}#q(){this.dispatchEvent(new CustomEvent("combo-box:change",{bubbles:!0,detail:{values:this.#g.map(t=>t.value),labels:this.#g.map(t=>t.label),source:"internal"}}))}formResetCallback(){this.#u?(this.#d.querySelectorAll(".tag").forEach(t=>t.remove()),this.#g=[],this.#e.value="",this.#e.disabled=this.#p):(this.#c="",this.#l="",this.#e.value="",this.removeAttribute("value")),this.#s.forEach(t=>{t.setAttribute("aria-selected","false"),t.hidden=!1}),this.#o=[...this.#s],this.#r=-1,this.#R(),this.#O(),this.#e.removeAttribute("aria-invalid"),!this.#u&&this.#m&&this.#M(this.#m,!1),this.#I(),this.#T()}formStateRestoreCallback(t){t&&(this.#u||(this.#M(t,!1),this.#I(),this.#T()))}get value(){return this.#c}set value(t){t?this.#M(t):this.#Y()}#Y(){this.#s.forEach(t=>t.setAttribute("aria-selected","false")),this.#c="",this.#l="",this.#e&&(this.#e.value=""),this.removeAttribute("value"),this.#I(),this.#T()}get label(){return this.#l}get values(){return this.#g.map(t=>t.value)}get labels(){return this.#g.map(t=>t.label)}static get observedAttributes(){return["value","disabled"]}attributeChangedCallback(t,i,s){if(!this.#e)return;if(t==="disabled"){this.#h(this.matches(":disabled"));return}let n=s??"";t==="value"&&n!==this.#c&&(n?(this.#M(n,!1),this.#I(),this.#T()):this.#Y())}};E("combo-box",ur);var Xi=86400,gv=0;function ce(e){return String(e).padStart(2,"0")}function qt(e){if(!e)return null;let t=/^(\d{2}):(\d{2})(?::(\d{2})(?:\.\d+)?)?$/.exec(String(e).trim());if(!t)return null;let i=Number(t[1]),s=Number(t[2]),n=Number(t[3]||0);return i>23||s>59||n>59?null:i*3600+s*60+n}function uu(e,t){let i=Math.floor(e/3600),s=Math.floor(e%3600/60),n=e%60;return t?`${ce(i)}:${ce(s)}:${ce(n)}`:`${ce(i)}:${ce(s)}`}function bt(e,t){return(e%t+t)%t}function bv(e){try{let{hourCycle:t}=new Intl.DateTimeFormat(e||void 0,{hour:"numeric"}).resolvedOptions();return t==="h12"||t==="h11"?"12h":"24h"}catch{return"24h"}}function yv(e){let t={am:"AM",pm:"PM",periodFirst:!1};try{let i=new Intl.DateTimeFormat(e||void 0,{hour:"numeric",minute:"2-digit",hourCycle:"h12"}),s=i.formatToParts(new Date(2e3,0,1,9,0)),n=i.formatToParts(new Date(2e3,0,1,21,0)),r=s.find(o=>o.type==="dayPeriod")?.value,a=n.find(o=>o.type==="dayPeriod")?.value;if(r&&a){t.am=r,t.pm=a;let o=s.map(c=>c.type);t.periodFirst=o.indexOf("dayPeriod")<o.indexOf("hour")}}catch{}return t}function vv(e,t){let i=e.trim().toLowerCase();if(!i)return null;let s=null,n=[[t.am.toLowerCase(),"AM"],[t.pm.toLowerCase(),"PM"],["a.m.","AM"],["p.m.","PM"],["am","AM"],["pm","PM"],["a","AM"],["p","PM"]].sort((l,u)=>u[0].length-l[0].length);for(let[l,u]of n)if(l){if(i.endsWith(l)){s=u,i=i.slice(0,-l.length).trim();break}if(i.startsWith(l)){s=u,i=i.slice(l.length).trim();break}}if(!/^\d{1,2}(?:[:.]\d{1,2}){0,2}$/.test(i))return null;let r=i.split(/[:.]/).map(Number),a=r[0],o=r[1]??0,c=r[2]??0;if(o>59||c>59)return null;if(s){if(a<1||a>12)return null;s==="AM"?a=a===12?0:a:a=a===12?12:a+12}else if(a>23)return null;return a*3600+o*60+c}var dr=class extends k{static formAssociated=!0;static get observedAttributes(){return["disabled","required"]}#t;#e=`tp${++gv}`;#i=!1;#n;#s;#o;#r;#a;#c=[];#l=null;#m=[];#p="24h";#d="";#f={am:"AM",pm:"PM",periodFirst:!1};#g=!1;#u=null;#y=null;#h=null;#w=60;#A;#S;#b=!1;#k="";#E=!1;constructor(){super(),this.#t=this.attachInternals(),this._adoptInternals(this.#t)}setup(){let t=this.querySelector(':scope > input[type="time"]');if(!t)return!1;this.#n=t,this.#d=this.closest("[lang]")?.lang||navigator.language||"en-US",this.#f=yv(this.#d);let i=this.getAttribute("data-format");this.#p=i==="12h"||i==="24h"?i:bv(this.#d),this.#N();let s=t.getAttribute("name");s&&(this.hasAttribute("name")||this.setAttribute("name",s),t.removeAttribute("name")),t.hasAttribute("disabled")&&(t.removeAttribute("disabled"),this.hasAttribute("disabled")||this.setAttribute("disabled",""));let n=`${this.#e}-no-form`,r=t.getAttribute("form");return r&&r!==n&&!this.hasAttribute("form")&&this.setAttribute("form",r),t.setAttribute("form",n),this.#A===void 0&&(this.#A=t.defaultValue),this.#S!==void 0&&(t.value=this.#S,this.#S=void 0),this.#u=qt(t.value),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"),t.style.cssText="position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;overflow:hidden;",this.listen(t,"click",this.#C),this.listen(t,"focus",this.#_),this.#D(),this.#H(),this.#i=!0,this.#F(),this.#st(),this.#K(!1),this.#nt(),this.listen(document,"click",this.#O),this.listen(this,"focusout",this.#Q),this.listen(this,"invalid",this.#tt),this.#v(this.matches(":disabled")),!0}teardown(){this.#b=!1,this.#o?.remove(),this.#a?.remove(),this.#c=[],this.#m=[],this.#l=null,this.#i=!1,clearTimeout(this.#X),this.#B=""}attributeChangedCallback(t){this.#i&&(t==="disabled"&&this.#v(this.matches(":disabled")),t==="required"&&this.#nt())}formDisabledCallback(t){this.#i&&this.#v(t)}#v(t){this.#s.disabled=t,this.#r.disabled=t,t&&this.#L()}#N(){let t=this.#n.getAttribute("step");if(t&&t.trim().toLowerCase()==="any")this.#w=null;else{let s=Number(t);this.#w=Number.isFinite(s)&&s>0?Math.max(1,Math.round(s)):60}this.#y=qt(this.#n.getAttribute("min")),this.#h=qt(this.#n.getAttribute("max"));let i=qt(this.#n.value);this.#g=this.#w!==null&&this.#w%60!==0||i!==null&&i%60!==0}#x(t,i){return this.dataset[`label${t}`]||i}#_=()=>{this.#i&&!this.#s.disabled&&this.#s.focus()};#C=t=>{t.preventDefault(),this.#_()};#F(){let t=new Set([...Array.from(this.#n.labels||[]),...Array.from(this.#t.labels||[])]),i=[];for(let a of t)a.id||(a.id=`${this.#e}-label-${i.length}`),i.push(a.id),this.listen(a,"click",this.#_);let s=this.#s,n=i.join(" ")||this.#n.getAttribute("aria-labelledby")||this.getAttribute("aria-labelledby");n?s.setAttribute("aria-labelledby",n):s.setAttribute("aria-label",this.#n.getAttribute("aria-label")||this.getAttribute("aria-label")||this.#x("Input","Time"));let r=this.#n.getAttribute("aria-describedby");r&&s.setAttribute("aria-describedby",r)}#D(){this.#o=document.createElement("div"),this.#o.className="time-trigger";let t=document.createElement("input");t.type="text",t.className="time-input",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded","false"),t.setAttribute("autocomplete","off"),t.setAttribute("placeholder",this.#x("Placeholder","Type a time\u2026")),this.#s=t,this.#o.appendChild(t),this.#r=document.createElement("button"),this.#r.type="button",this.#r.className="time-trigger-icon",this.#r.setAttribute("aria-label",this.#x("Toggle","Toggle time spinners")),this.#r.setAttribute("tabindex","-1");let i=document.createElement("icon-wc");i.setAttribute("name","clock"),i.setAttribute("size","sm"),i.setAttribute("aria-hidden","true"),this.#r.appendChild(i),this.#o.appendChild(this.#r),this.appendChild(this.#o),this.listen(this.#r,"click",s=>{s.stopPropagation(),this.#b?this.#L():this.#M(),this.#s.focus()}),this.listen(t,"focus",()=>t.select()),this.listen(t,"keydown",this.#T),this.listen(t,"blur",this.#Y)}#H(){let t=`${this.#e}-panel`;this.#a=document.createElement("div"),this.#a.className="time-panel",this.#a.id=t,this.#a.setAttribute("role","dialog"),this.#a.setAttribute("aria-modal","false"),this.#a.setAttribute("aria-label",this.#x("Dialog","Choose time")),this.#s.setAttribute("aria-controls",t);let i=this.#w??60,s=i>=3600&&i%3600===0?i/3600:1,n=i>=60&&i<3600&&i%60===0?i/60:1,r=i<60?i:1,a=i>=3600&&i%3600===0,o=this.#p==="12h",c=null;o&&(c=document.createElement("button"),c.type="button",c.className="period-toggle"),this.#l=c,c&&this.#f.periodFirst&&this.#a.appendChild(c);let l=!o&&this.#y!==null&&this.#h!==null&&this.#y<=this.#h;this.#c=[],this.#c.push(this.#R("hour",this.#x("Hours","Hours"),o?1:l?Math.floor(this.#y/3600):0,o?12:l?Math.floor(this.#h/3600):23,s,!1)),this.#a.appendChild(this.#U()),this.#c.push(this.#R("minute",this.#x("Minutes","Minutes"),0,59,n,a)),this.#g&&(this.#a.appendChild(this.#U()),this.#c.push(this.#R("second",this.#x("Seconds","Seconds"),0,59,r,!1))),c&&!this.#f.periodFirst&&this.#a.appendChild(c),this.#m=[...this.#a.querySelectorAll(".time-spinner, .period-toggle")],this.appendChild(this.#a);for(let u of this.#c)this.listen(u.incBtn,"click",()=>this.#V(u,u.delta,"pointer")),this.listen(u.decBtn,"click",()=>this.#V(u,-u.delta,"pointer")),this.listen(u.el,"keydown",d=>this.#z(d,u));if(this.#l){let u=this.#l;this.listen(u,"click",d=>{this.#Z(d.detail===0?"keyboard":"pointer")}),this.listen(u,"keydown",d=>this.#$(d,u))}}#R(t,i,s,n,r,a){let o=document.createElement("div");o.className="time-spinner",o.dataset.unit=t,o.setAttribute("role","spinbutton"),o.setAttribute("aria-label",i),o.setAttribute("aria-valuemin",String(s)),o.setAttribute("aria-valuemax",String(n)),a&&o.setAttribute("aria-readonly","true"),o.setAttribute("tabindex","0");let c=document.createElement("button");c.type="button",c.className="time-inc",c.setAttribute("aria-hidden","true"),c.setAttribute("tabindex","-1"),c.textContent="\u25B2",a&&(c.disabled=!0);let l=document.createElement("span");l.className="time-value";let u=document.createElement("button");return u.type="button",u.className="time-dec",u.setAttribute("aria-hidden","true"),u.setAttribute("tabindex","-1"),u.textContent="\u25BC",a&&(u.disabled=!0),o.append(c,l,u),this.#a.appendChild(o),{unit:t,el:o,valueEl:l,incBtn:c,decBtn:u,min:s,max:n,delta:r,readOnly:a}}#U(){let t=document.createElement("span");return t.className="time-sep",t.setAttribute("aria-hidden","true"),t.textContent=":",t}#M(){this.#b||this.#s.disabled||(this.#b=!0,this.#a.setAttribute("data-open",""),this.#s.setAttribute("aria-expanded","true"))}#L(){this.#b&&(this.#b=!1,this.#a.removeAttribute("data-open"),this.#s.setAttribute("aria-expanded","false"))}#O=t=>{this.#b&&!this.contains(t.target)&&this.#L()};#Q=t=>{let i=t.relatedTarget;i instanceof Node&&this.contains(i)||this.#L()};#I(t){try{let i=new Date(2e3,0,1,Math.floor(t/3600),Math.floor(t%3600/60),t%60),s={hour:this.#p==="12h"?"numeric":"2-digit",minute:"2-digit",hourCycle:this.#p==="12h"?"h12":"h23"};return this.#g&&(s.second="2-digit"),new Intl.DateTimeFormat(this.#d,s).format(i)}catch{return uu(t,this.#g)}}#T=t=>{switch(t.key){case"Enter":{t.preventDefault(),t.stopPropagation(),this.#q(),this.#b&&this.#L();return}case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.#b||this.#M(),this.#m[0]?.focus();return;case"Escape":t.preventDefault(),t.stopPropagation(),this.#b&&this.#L(),this.#st();return}};#q(){let t=this.#s.value.trim();if(!t)this.#G(null,"keyboard");else{let i=vv(t,this.#f);i!==null&&this.#G(i,"keyboard")}this.#st()}#Y=t=>{t.relatedTarget instanceof Node&&this.contains(t.relatedTarget)||(this.#q(),this.#tt())};#tt=()=>{this.#i&&(this.#E||(this.#E=!0,this.#nt()),this.#n.dispatchEvent(new Event("blur",{bubbles:!0})))};#$(t,i){let s=this.#m.indexOf(i),n=getComputedStyle(this).direction==="rtl",r=n?"ArrowLeft":"ArrowRight",a=n?"ArrowRight":"ArrowLeft";return t.key===r||t.key===a?(t.preventDefault(),this.#m[s+(t.key===r?1:-1)]?.focus(),!0):t.key==="Escape"?(t.preventDefault(),t.stopPropagation(),this.#L(),this.#s.focus(),!0):!1}#z(t,i){if(this.#$(t,i.el))return;let s=i.unit==="hour"?i.delta:i.delta*10;switch(t.key){case"ArrowUp":t.preventDefault(),this.#V(i,i.delta,"keyboard");break;case"ArrowDown":t.preventDefault(),this.#V(i,-i.delta,"keyboard");break;case"PageUp":t.preventDefault(),this.#V(i,s,"keyboard");break;case"PageDown":t.preventDefault(),this.#V(i,-s,"keyboard");break;case"Home":t.preventDefault(),this.#W(i,i.min,1,"keyboard");break;case"End":t.preventDefault(),this.#W(i,i.max,-1,"keyboard");break;default:/^\d$/.test(t.key)&&(t.preventDefault(),this.#j(t.key,i))}}#B="";#X;#j(t,i){clearTimeout(this.#X),this.#B+=t;let s=()=>{let n=Math.min(Math.max(Number(this.#B),i.min),i.max);this.#B="",this.#W(i,n,0,"keyboard")};this.#B.length>=2||Number(this.#B)*10>i.max?s():this.#X=setTimeout(s,800)}#P(){return this.#it(this.#y??0,1)}#it(t,i){let s=bt(t,Xi),n=this.#w;if(n){let o=this.#y??0,c=(s-o)/n,l=i>0?Math.floor(c):i<0?Math.ceil(c):Math.round(c);s=bt(o+l*n,Xi)}let r=this.#y,a=this.#h;return r!==null&&a!==null&&r<=a?(s<r&&(s=r),s>a&&(s=n?r+Math.floor((a-r)/n)*n:a)):r!==null&&a===null&&s<r?s=r:a!==null&&r===null&&s>a&&(s=n?Math.floor(a/n)*n:a),s}#V(t,i,s){if(t.readOnly)return;if(this.#u===null){this.#G(this.#P(),s);return}let n=this.#u,r=Math.floor(n/3600),a=Math.floor(n%3600/60),o=n%60,c;t.unit==="hour"?c=(this.#p==="12h"?bt(r%12+i,12)+(r>=12?12:0):bt(r+i,24))*3600+a*60+o:t.unit==="minute"?c=r*3600+bt(a+i,60)*60+o:c=r*3600+a*60+bt(o+i,60),this.#G(this.#it(c,i),s)}#W(t,i,s,n){if(t.readOnly)return;let r=this.#u??this.#P(),a=Math.floor(r/3600),o=Math.floor(r%3600/60),c=r%60,l;t.unit==="hour"?l=(this.#p==="12h"?i%12+(a>=12?12:0):i)*3600+o*60+c:t.unit==="minute"?l=a*3600+i*60+c:l=a*3600+o*60+i,this.#G(this.#it(l,s),n)}#Z(t){let i=this.#u??this.#P();this.#G(this.#it(bt(i+12*3600,Xi),0),t)}#G(t,i){let s=this.value;return this.#u=t,t!==null&&t%60!==0&&!this.#g&&(this.#g=!0),this.#st(),this.value===s?!1:(this.#K(),this.#nt(),this.dispatchEvent(new CustomEvent("time-picker:change",{bubbles:!0,detail:{...this.#J(),source:i}})),!0)}#J(){let t=this.#u;return t===null?{value:"",hours:null,minutes:null,seconds:null}:{value:this.value,hours:Math.floor(t/3600),minutes:Math.floor(t%3600/60),seconds:t%60}}#st(){if(!this.#i)return;let t=this.#u;this.#s.value=t===null?"":this.#I(t);let i=this.#x("Empty","Not set"),s=t===null?null:Math.floor(t/3600),n={hour:s===null?null:this.#p==="12h"?s%12||12:s,minute:t===null?null:Math.floor(t%3600/60),second:t===null?null:t%60},r=s===null?"":s>=12?this.#f.pm:this.#f.am;for(let a of this.#c){let o=n[a.unit];if(a.valueEl.textContent=o===null?"--":ce(o),o===null){a.el.removeAttribute("aria-valuenow"),a.el.setAttribute("aria-valuetext",i);continue}a.el.setAttribute("aria-valuenow",String(o));let c;try{c=a.unit==="hour"&&this.#p==="12h"?new Intl.DateTimeFormat(this.#d,{hour:"numeric",hourCycle:"h12"}).format(new Date(2e3,0,1,s)):new Intl.NumberFormat(this.#d,{style:"unit",unit:a.unit,unitDisplay:"long"}).format(o)}catch{c=a.unit==="hour"&&r?`${o} ${r}`:String(o)}a.el.setAttribute("aria-valuetext",c)}this.#l&&(this.#l.textContent=r||"--",this.#l.setAttribute("aria-label",`${this.#x("Period","AM/PM")}: ${r||i}`))}#K(t=!0){let i=this.value;this.#t.setFormValue(i||null),this.#n.value=i,t&&this.#n.dispatchEvent(new Event("input",{bubbles:!0}))}#et(t,i,s,n={}){let r=this.#n.getAttribute(`data-message-${t.toLowerCase()}`)??this.#x(i,s);for(let[a,o]of Object.entries(n))r=r.replaceAll(`{${a}}`,o);return r}#nt(){if(!this.#i)return!1;let t=this.hasAttribute("required")||this.#n.hasAttribute("required");t?this.#s.setAttribute("aria-required","true"):this.#s.removeAttribute("aria-required");let i=this.#u,s=this.#y,n=this.#h,r={},a="";if(i===null)t&&(r={valueMissing:!0},a=this.#et("valueMissing","Required","Please select a time"));else{let l=s!==null&&n!==null&&s>n,u=s!==null&&i<s,d=n!==null&&i>n;if(l?u&&d:u)r=l?{rangeUnderflow:!0,rangeOverflow:!0}:{rangeUnderflow:!0},a=this.#et("rangeUnderflow","RangeUnderflow","Choose a time at or after {time}",{time:this.#I(s)});else if(!l&&d)r={rangeOverflow:!0},a=this.#et("rangeOverflow","RangeOverflow","Choose a time at or before {time}",{time:this.#I(n)});else if(this.#w&&bt(i-(s??0),this.#w)!==0){let h=this.#it(i,1),f=bt(h+this.#w,Xi);r={stepMismatch:!0},a=this.#et("stepMismatch","StepMismatch","Choose a valid time. The nearest are {lower} and {upper}",{lower:this.#I(h),upper:this.#I(f)})}}let o=this.#t.validationMessage;return a?this.#t.setValidity(r,a,this.#s):this.#t.setValidity({}),a&&(i!==null||this.#E)?this.#s.setAttribute("aria-invalid","true"):this.#s.removeAttribute("aria-invalid"),(this.#n.validationMessage===this.#k||!this.#n.validity.customError)&&(this.#n.setCustomValidity(a),this.#k=a),o!==a}#rt(t){this.#u=t,this.#st(),this.#K(),this.#nt()}formResetCallback(){this.#i&&(this.#E=!1,this.#rt(qt(this.#A)))}formStateRestoreCallback(t){!this.#i||typeof t!="string"||this.#rt(qt(t))}get form(){return this.#t.form}get validity(){return this.#t.validity}get validationMessage(){return this.#t.validationMessage}get willValidate(){return this.#t.willValidate}checkValidity(){return this.#t.checkValidity()}reportValidity(){return this.#t.reportValidity()}get value(){return this.#i?this.#u===null?"":uu(this.#u,this.#g):this.#S??""}set value(t){let i=t==null?"":String(t).trim(),s=i?qt(i):null;if(!(i&&s===null)){if(!this.#i){this.#S=i;return}this.#G(s,"api")}}};E("time-picker",dr);var Zi="popover"in HTMLElement.prototype;var le=[{ja:"\u4EE4\u548C",latin:"R",start:[2019,5,1]},{ja:"\u5E73\u6210",latin:"H",start:[1989,1,8]},{ja:"\u662D\u548C",latin:"S",start:[1926,12,25]},{ja:"\u5927\u6B63",latin:"T",start:[1912,7,30]},{ja:"\u660E\u6CBB",latin:"M",start:[1868,10,23]}],wv=new RegExp(`^(?:(${le.map(e=>e.ja).join("|")})|(${le.map(e=>e.latin).join("|")}))`+String.raw`\s*(元|\d{1,2})年?[/.\-]?\s*(\d{1,2})月?[/.\-]?\s*(\d{1,2})日?$`,"i"),Av=/^(\d{4})年(\d{1,2})月(\d{1,2})日?$/;function du(e){return e.trim().replace(/[0-9]/g,t=>String(t.charCodeAt(0)-65296)).replace(/\s+/g,"")}function hu(e,t,i){let s=new Date(2e3,t-1,i);return s.setFullYear(e),s.getMonth()===t-1&&s.getDate()===i?s:null}function fu(e){let t=du(e).match(wv);if(!t)return null;let i=t[1]?le.find(a=>a.ja===t[1]):le.find(a=>a.latin.toUpperCase()===t[2].toUpperCase());if(!i)return null;let s=t[3]==="\u5143"?1:Number(t[3]);if(s<1)return null;let n=hu(i.start[0]+s-1,Number(t[4]),Number(t[5]));if(!n||n<new Date(i.start[0],i.start[1]-1,i.start[2]))return null;let r=le.indexOf(i);if(r>0){let a=le[r-1].start;if(n>=new Date(a[0],a[1]-1,a[2]))return null}return n}function pu(e){let t=du(e).match(Av);return t?hu(Number(t[1]),Number(t[2]),Number(t[3])):null}ut();var br=["january","february","march","april","may","june","july","august","september","october","november","december"],Ev=0;function et(e){let t=e.getFullYear(),i=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${t}-${i}-${s}`}function yr(e,t,i){if(!Number.isInteger(e)||!Number.isInteger(t)||!Number.isInteger(i))return null;let s=new Date(e,t,i);return s.getFullYear()!==e||s.getMonth()!==t||s.getDate()!==i?null:s}function dt(e){if(!e)return null;let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(String(e).trim());return t?yr(Number(t[1]),Number(t[2])-1,Number(t[3])):null}function Ue(e,t){return new Date(e,t+1,0).getDate()}function hr(e,t){let i=new Date(e.getFullYear(),e.getMonth()+t,1),s=i.getFullYear(),n=i.getMonth();return new Date(s,n,Math.min(e.getDate(),Ue(s,n)))}function kv(e){try{let t=new Intl.Locale(e),i=t.getWeekInfo?.()??t.weekInfo;if(i)return i.firstDay%7}catch{}return 0}var fr=new Map;function gu(e,t){let i=`${e}:${t}`;if(fr.has(i))return fr.get(i);let s;try{let n=new Intl.DateTimeFormat(e,{weekday:t});s=Array.from({length:7},(r,a)=>n.format(new Date(2026,0,4+a)))}catch{s=t==="long"?["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}return fr.set(i,s),s}function bu(e,t){try{return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).format(e)}catch{return et(e)}}function pr(e,t){return!!(e&&t&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate())}var mr=new Map;function Sv(e){if(mr.has(e))return mr.get(e);let t=new Map;br.forEach((i,s)=>{t.set(i,s),t.set(i.slice(0,3),s)});try{let i=new Intl.DateTimeFormat(e,{month:"long"}),s=new Intl.DateTimeFormat(e,{month:"short"});for(let n=0;n<12;n++){let r=new Date(2e3,n,1);t.set(i.format(r).toLowerCase(),n),t.set(s.format(r).toLowerCase().replace(".",""),n)}}catch{}return mr.set(e,t),t}function gr(e,t){let i=e.trim(),s={date:null,partial:null};if(!i)return s;if(/^\d{4}[-/]\d{2}[-/]\d{2}$/.test(i)){let o=dt(i.replace(/\//g,"-"));return o?{date:o,partial:null}:s}if(mu(t)==="ja"){let o=fu(i);if(o)return{date:o,partial:null}}let n=pu(i);if(n)return{date:n,partial:null};let r=Sv(t),a=i.match(/^([a-zÀ-ɏ]+)\.?\s+(\d{1,2}),?\s+(\d{4})$/i);if(a){let o=r.get(a[1].toLowerCase());if(o===void 0)return s;let c=yr(Number(a[3]),o,Number(a[2]));return c?{date:c,partial:null}:s}if(a=i.match(/^(\d{1,2})\.?\s+([a-zÀ-ɏ]+)\.?\s+(\d{4})$/i),a){let o=r.get(a[2].toLowerCase());if(o===void 0)return s;let c=yr(Number(a[3]),o,Number(a[1]));return c?{date:c,partial:null}:s}if(a=i.match(/^([a-zÀ-ɏ]+)\.?\s+(\d{4})$/i),a){let o=r.get(a[1].toLowerCase());if(o!==void 0)return{date:null,partial:{year:Number(a[2]),month:o}}}return s}function yu(e){let t=new Map;if(!e)return t;for(let i of e.split(",")){let[s,n]=i.trim().split(":");s&&t.set(s,n||"")}return t}var vr=class extends k{static formAssociated=!0;static get observedAttributes(){return["disabled","required"]}#t;#e=`dp${++Ev}`;#i=!1;#n;#s;#o;#r;#a;#c;#l;#m;#p=!1;#d=!1;#f="en-US";#g=null;#u=null;#y=new Date().getFullYear();#h=new Date().getMonth();#w=null;#A=null;#S=new Map;#b=new Map;#k;#E;#v=0;#N="";#x=!1;constructor(){super(),this.#t=this.attachInternals(),this._adoptInternals(this.#t)}setup(){let t=this.querySelector(':scope > input[type="date"]');if(!t)return!1;this.#n=t,this.#f=Bt(this.closest("[lang]")?.lang||navigator.language),this.#v=kv(this.#f),this.#w=dt(t.getAttribute("min")),this.#A=dt(t.getAttribute("max")),this.#S=yu(this.getAttribute("data-disabled-dates")),this.#b=yu(this.getAttribute("data-highlight-dates"));let i=t.getAttribute("name");i&&(this.hasAttribute("name")||this.setAttribute("name",i),t.removeAttribute("name")),t.hasAttribute("disabled")&&(t.removeAttribute("disabled"),this.hasAttribute("disabled")||this.setAttribute("disabled",""));let s=`${this.#e}-no-form`,n=t.getAttribute("form");n&&n!==s&&!this.hasAttribute("form")&&this.setAttribute("form",n),t.setAttribute("form",s),this.#k===void 0&&(this.#k=t.defaultValue),this.#E!==void 0&&(t.value=this.#E,this.#E=void 0),this.#g=dt(t.value);let r=new Date;return this.#A&&r>this.#A&&(r=this.#A),this.#w&&r<this.#w&&(r=this.#w),this.#u=this.#g||r,this.#y=this.#u.getFullYear(),this.#h=this.#u.getMonth(),t.setAttribute("tabindex","-1"),t.setAttribute("aria-hidden","true"),t.style.cssText="position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;overflow:hidden;",this.listen(t,"click",this.#D),this.listen(t,"focus",this.#F),this.#R(),this.#U(),this.#i=!0,this.#H(),this.#tt(),this.#J(!1),this.#K(),this.#d=Zi,this.#d&&this.#a.setAttribute("popover","manual"),this.listen(document,"click",this.#W),this.listen(this,"invalid",this.#V),this.#_(this.matches(":disabled")),!0}teardown(){this.#p=!1,this.removeAttribute("open"),window.removeEventListener("scroll",this.#X,{capture:!0}),window.removeEventListener("resize",this.#X),this.#r?.remove(),this.#a?.remove(),this.#S=new Map,this.#b=new Map,this.#i=!1}attributeChangedCallback(t){this.#i&&(t==="disabled"&&this.#_(this.matches(":disabled")),t==="required"&&this.#K())}formDisabledCallback(t){this.#i&&this.#_(t)}#_(t){this.#s.disabled=t,this.#o.disabled=t,t&&this.#z()}#C(t,i){return this.dataset[`label${t}`]||i}#F=()=>{this.#i&&!this.#s.disabled&&this.#s.focus()};#D=t=>{t.preventDefault(),this.#F()};#H(){let t=new Set([...Array.from(this.#n.labels||[]),...Array.from(this.#t.labels||[])]),i=[];for(let a of t)a.id||(a.id=`${this.#e}-label-${i.length}`),i.push(a.id),this.listen(a,"click",this.#F);let s=this.#s,n=i.join(" ")||this.#n.getAttribute("aria-labelledby")||this.getAttribute("aria-labelledby");n?s.setAttribute("aria-labelledby",n):s.setAttribute("aria-label",this.#n.getAttribute("aria-label")||this.getAttribute("aria-label")||this.#C("Input","Date"));let r=this.#n.getAttribute("aria-describedby");r&&s.setAttribute("aria-describedby",r)}#R(){this.#r=document.createElement("div"),this.#r.className="date-trigger",this.#s=document.createElement("input"),this.#s.type="text",this.#s.className="date-input",this.#s.setAttribute("role","combobox"),this.#s.setAttribute("aria-haspopup","dialog"),this.#s.setAttribute("aria-expanded","false"),this.#s.setAttribute("autocomplete","off"),this.#s.setAttribute("placeholder",this.#C("Placeholder","Type a date\u2026")),this.#r.appendChild(this.#s),this.#o=document.createElement("button"),this.#o.type="button",this.#o.className="date-trigger-icon",this.#o.setAttribute("aria-label",this.#C("Toggle","Toggle calendar")),this.#o.setAttribute("tabindex","-1");let t=document.createElement("icon-wc");t.setAttribute("name","calendar"),t.setAttribute("size","sm"),t.setAttribute("aria-hidden","true"),this.#o.appendChild(t),this.#r.appendChild(this.#o),this.appendChild(this.#r),this.listen(this.#o,"click",i=>{i.stopPropagation(),this.#p?this.#z():this.#$(),this.#s.focus()}),this.listen(this.#s,"focus",()=>this.#s.select()),this.listen(this.#s,"input",this.#j),this.listen(this.#s,"keydown",this.#P),this.listen(this.#s,"blur",this.#it)}#U(){let t=`${this.#e}-calendar`;this.#a=document.createElement("div"),this.#a.className="calendar",this.#a.id=t,this.#a.setAttribute("role","dialog"),this.#a.setAttribute("aria-modal","false"),this.#a.setAttribute("aria-label",this.#C("Dialog","Choose date")),this.#a.hidden=!0,this.#s.setAttribute("aria-controls",t);let i=document.createElement("div");i.className="calendar-header";let s=document.createElement("button");s.type="button",s.className="calendar-nav",s.setAttribute("aria-label",this.#C("Prev","Previous month"));let n=document.createElement("icon-wc");n.setAttribute("name","chevron-left"),n.setAttribute("size","sm"),n.setAttribute("aria-hidden","true"),s.appendChild(n);let r=document.createElement("span");r.className="calendar-title",r.id=`${t}-title`,r.setAttribute("aria-live","polite"),this.#l=document.createElement("span"),this.#l.className="calendar-month",this.#m=document.createElement("select"),this.#m.className="calendar-year",this.#m.setAttribute("aria-label",this.#C("Year","Year")),this.#Q(),r.appendChild(this.#l),r.appendChild(this.#m);let a=document.createElement("button");a.type="button",a.className="calendar-nav",a.setAttribute("aria-label",this.#C("Next","Next month"));let o=document.createElement("icon-wc");o.setAttribute("name","chevron-right"),o.setAttribute("size","sm"),o.setAttribute("aria-hidden","true"),a.appendChild(o),i.appendChild(s),i.appendChild(r),i.appendChild(a),this.#a.appendChild(i);let c=document.createElement("table");c.setAttribute("role","grid"),c.setAttribute("aria-labelledby",`${t}-title`);let l=gu(this.#f,"short"),u=gu(this.#f,"long"),d=document.createElement("thead"),h=document.createElement("tr");for(let f=0;f<7;f++){let p=(this.#v+f)%7,m=document.createElement("th");m.setAttribute("abbr",u[p]),m.setAttribute("scope","col"),m.textContent=l[p],h.appendChild(m)}d.appendChild(h),c.appendChild(d),this.#c=document.createElement("tbody"),c.appendChild(this.#c),this.#a.appendChild(c),this.appendChild(this.#a),this.#M(),this.listen(s,"click",()=>this.#I(-1)),this.listen(a,"click",()=>this.#I(1)),this.listen(this.#m,"change",()=>{this.#y=Number(this.#m.value);let f=Ue(this.#y,this.#h),p=Math.min(this.#u?.getDate()??1,f);this.#u=new Date(this.#y,this.#h,p),this.#M()}),this.listen(this.#c,"click",this.#Z),this.listen(this.#a,"keydown",this.#G)}#M(){try{this.#l.textContent=new Intl.DateTimeFormat(this.#f,{month:"long"}).format(new Date(this.#y,this.#h,1))}catch{this.#l.textContent=br[this.#h].charAt(0).toUpperCase()+br[this.#h].slice(1)}this.#m.querySelector(`option[value="${this.#y}"]`)||this.#Q(),this.#m.value=String(this.#y),this.#c.replaceChildren();let t=Ue(this.#y,this.#h),s=(new Date(this.#y,this.#h,1).getDay()-this.#v+7)%7,n=new Date,r=document.createElement("tr");for(let o=0;o<s;o++)r.appendChild(document.createElement("td"));for(let o=1;o<=t;o++){let c=new Date(this.#y,this.#h,o),l=et(c),u=document.createElement("td"),d=document.createElement("button");d.type="button",d.setAttribute("data-date",l),d.textContent=String(o),pr(c,n)&&d.setAttribute("aria-current","date");let h=pr(c,this.#g);u.setAttribute("aria-selected",String(h));let f=this.#O(c,l);f.disabled&&(d.setAttribute("aria-disabled","true"),f.reason&&d.setAttribute("data-disabled-reason",f.reason)),this.#b.has(l)&&d.setAttribute("data-highlight",this.#b.get(l)||""),pr(c,this.#u)?(d.setAttribute("tabindex","0"),h||d.setAttribute("data-focused","")):d.setAttribute("tabindex","-1"),u.appendChild(d),r.appendChild(u),(s+o)%7===0&&(this.#c.appendChild(r),r=document.createElement("tr"))}let a=(s+t)%7;if(a>0){for(let o=a;o<7;o++)r.appendChild(document.createElement("td"));this.#c.appendChild(r)}}#L(t){return this.#O(t,et(t)).disabled}#O(t,i){return this.#S.has(i)?{disabled:!0,reason:this.#S.get(i)}:this.#w&&t<this.#w?{disabled:!0,reason:null}:this.#A&&t>this.#A?{disabled:!0,reason:null}:{disabled:!1,reason:null}}#Q(){this.#m.replaceChildren();let t=new Date().getFullYear(),i=this.#w?this.#w.getFullYear():t-100,s=this.#A?this.#A.getFullYear():t+10;i=Math.min(i,this.#y),s=Math.max(s,this.#y);for(let n=i;n<=s;n++){let r=document.createElement("option");r.value=String(n),r.textContent=String(n),this.#m.appendChild(r)}}#I(t){let i=this.#u??new Date(this.#y,this.#h,1),s=new Date(this.#y,this.#h,Math.min(i.getDate(),Ue(this.#y,this.#h)));this.#u=hr(s,t),this.#y=this.#u.getFullYear(),this.#h=this.#u.getMonth(),this.#M(),this.#Y(this.#u)}#T(t,i){if(t&&this.#L(t))return!1;let s=this.value,n=t?et(t):"";return this.#g=t,t&&(this.#u=t),this.#tt(),n===s?!1:(this.#J(),this.#K(),t&&i==="api"&&(this.#y=t.getFullYear(),this.#h=t.getMonth()),(this.#p||i==="api")&&this.#M(),this.dispatchEvent(new CustomEvent("date-picker:change",{bubbles:!0,detail:{value:n,date:t?new Date(t):null,source:i}})),!0)}#q(t,i){this.#L(t)||(this.#T(t,i),this.#z(),this.#s.focus())}#Y(t){let i=this.#c.querySelector(`[data-date="${et(t)}"]`);if(i){for(let s of this.#c.querySelectorAll("button[data-date]"))s.setAttribute("tabindex",s===i?"0":"-1"),s!==i&&s.removeAttribute("data-focused");i.closest("td")?.getAttribute("aria-selected")!=="true"&&i.setAttribute("data-focused",""),i.focus()}}#tt(){this.#s.value=this.#g?bu(this.#g,this.#f):""}#$(){if(!(this.#p||this.#s.disabled)){if(this.#p=!0,this.setAttribute("open",""),this.#s.setAttribute("aria-expanded","true"),this.#a.hidden=!1,this.#u&&(this.#y=this.#u.getFullYear(),this.#h=this.#u.getMonth()),this.#M(),this.#d){try{this.#a.showPopover()}catch{}this.#B(),window.addEventListener("scroll",this.#X,{capture:!0,passive:!0}),window.addEventListener("resize",this.#X,{passive:!0})}this.dispatchEvent(new CustomEvent("date-picker:open",{bubbles:!0}))}}#z(){if(this.#p){if(this.#p=!1,this.removeAttribute("open"),this.#s.setAttribute("aria-expanded","false"),this.#a.hidden=!0,this.#d){try{this.#a.hidePopover()}catch{}window.removeEventListener("scroll",this.#X,{capture:!0}),window.removeEventListener("resize",this.#X)}this.dispatchEvent(new CustomEvent("date-picker:close",{bubbles:!0}))}}#B(){if(!this.#d)return;let t=this.#r.getBoundingClientRect(),i=this.#a.getBoundingClientRect(),s=4,n=8,r=window.innerHeight,a=window.innerWidth,o=r-t.bottom-n,c=t.top-n,l;o<i.height&&c>o?(l=t.top-i.height-s,this.#a.dataset.placement="top"):(l=t.bottom+s,delete this.#a.dataset.placement);let u=t.left;u+i.width>a-n&&(u=a-i.width-n),u<n&&(u=n),this.#a.style.setProperty("--calendar-top",`${l}px`),this.#a.style.setProperty("--calendar-left",`${u}px`)}#X=()=>{this.#p&&this.#B()};#j=()=>{let t=this.#s.value,{date:i,partial:s}=gr(t,this.#f);if(i)this.#u=i,this.#y=i.getFullYear(),this.#h=i.getMonth(),this.#M();else if(s){this.#y=s.year,this.#h=s.month;let n=Ue(s.year,s.month),r=Math.min(this.#u?.getDate()??1,n);this.#u=new Date(s.year,s.month,r),this.#M()}!this.#p&&t.length>0&&this.#$()};#P=t=>{switch(t.key){case"Enter":{t.preventDefault(),t.stopPropagation();let i=this.#s.value.trim();if(!i){this.#T(null,"keyboard"),this.#z();return}let{date:s}=gr(i,this.#f);s&&!this.#L(s)&&this.#q(s,"keyboard");return}case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.#p||this.#$(),requestAnimationFrame(()=>{this.#u&&this.#Y(this.#u)});return;case"Escape":t.preventDefault(),t.stopPropagation(),this.#p&&this.#z(),this.#tt();return;case"Tab":this.#p&&this.#z();return}};#it=t=>{if(t.relatedTarget instanceof Node&&this.contains(t.relatedTarget))return;let i=this.#s.value.trim();if(!i)this.#T(null,"keyboard");else{let{date:s}=gr(i,this.#f);s&&!this.#L(s)&&this.#T(s,"keyboard")}this.#tt(),this.#p&&this.#z(),this.#V()};#V=()=>{this.#i&&(this.#x||(this.#x=!0,this.#K()),this.#n.dispatchEvent(new Event("blur",{bubbles:!0})))};#W=t=>{this.#p&&!this.contains(t.target)&&this.#z()};#Z=t=>{let s=t.target?.closest("button[data-date]");if(!s||s.getAttribute("aria-disabled")==="true")return;let n=dt(s.getAttribute("data-date"));n&&this.#q(n,"pointer")};#G=t=>{if(t.key==="Tab"){this.#z();return}let i=t.target instanceof Element&&this.#c.contains(t.target),s=this.#u;if(!s)return;let n,r=(s.getDay()-this.#v+7)%7;switch(t.key){case"ArrowRight":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()+1);break;case"ArrowLeft":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()-1);break;case"ArrowDown":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()+7);break;case"ArrowUp":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()-7);break;case"PageDown":n=hr(s,t.shiftKey?12:1);break;case"PageUp":n=hr(s,t.shiftKey?-12:-1);break;case"Home":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()-r);break;case"End":n=new Date(s.getFullYear(),s.getMonth(),s.getDate()+(6-r));break;case"Enter":case" ":if(!i)return;t.preventDefault(),t.stopPropagation(),this.#q(s,"keyboard");return;case"Escape":t.preventDefault(),t.stopPropagation(),this.#z(),this.#s.focus();return;default:return}i&&(t.preventDefault(),t.stopPropagation(),this.#w&&n<this.#w&&(n=this.#w),this.#A&&n>this.#A&&(n=this.#A),this.#u=n,(n.getMonth()!==this.#h||n.getFullYear()!==this.#y)&&(this.#h=n.getMonth(),this.#y=n.getFullYear(),this.#M()),this.#Y(n))};#J(t=!0){let i=this.#g?et(this.#g):"";this.#t.setFormValue(i||null),this.#n.value=i,t&&this.#n.dispatchEvent(new Event("input",{bubbles:!0}))}#st(t,i,s,n=null){let r=this.#n.getAttribute(`data-message-${t.toLowerCase()}`)??this.#C(i,s);return n?r.replaceAll("{date}",bu(n,this.#f)):r}#K(){if(!this.#i)return!1;let t=this.hasAttribute("required")||this.#n.hasAttribute("required");t?this.#s.setAttribute("aria-required","true"):this.#s.removeAttribute("aria-required");let i=this.#g,s={},n="";t&&!i?(s={valueMissing:!0},n=this.#st("valueMissing","Required","Please select a date")):i&&this.#w&&i<this.#w?(s={rangeUnderflow:!0},n=this.#st("rangeUnderflow","RangeUnderflow","Choose a date on or after {date}",this.#w)):i&&this.#A&&i>this.#A&&(s={rangeOverflow:!0},n=this.#st("rangeOverflow","RangeOverflow","Choose a date on or before {date}",this.#A));let r=this.#t.validationMessage;return n?this.#t.setValidity(s,n,this.#s):this.#t.setValidity({}),n&&(i||this.#x)?this.#s.setAttribute("aria-invalid","true"):this.#s.removeAttribute("aria-invalid"),(this.#n.validationMessage===this.#N||!this.#n.validity.customError)&&(this.#n.setCustomValidity(n),this.#N=n),r!==n}#et(){this.#i&&(this.#M(),this.#K()&&this.#n.dispatchEvent(new Event("input",{bubbles:!0})))}#nt(t){let i=t||new Date;this.#g=t,this.#u=i,this.#y=i.getFullYear(),this.#h=i.getMonth(),this.#tt(),this.#J(),this.#K(),this.#M()}formResetCallback(){this.#i&&(this.#x=!1,this.#nt(dt(this.#k)))}formStateRestoreCallback(t){!this.#i||typeof t!="string"||this.#nt(dt(t))}get form(){return this.#t.form}get validity(){return this.#t.validity}get validationMessage(){return this.#t.validationMessage}get willValidate(){return this.#t.willValidate}checkValidity(){return this.#t.checkValidity()}reportValidity(){return this.#t.reportValidity()}get value(){return this.#i?this.#g?et(this.#g):"":this.#E??""}set value(t){let i=t==null?"":String(t).trim(),s=i?dt(i):null;if(!(i&&!s)){if(!this.#i){this.#E=i;return}this.#T(s,"api")}}get min(){return this.#w?et(this.#w):""}set min(t){this.#w=dt(t),this.#n&&(this.#w?this.#n.setAttribute("min",et(this.#w)):this.#n.removeAttribute("min")),this.#et()}get max(){return this.#A?et(this.#A):""}set max(t){this.#A=dt(t),this.#n&&(this.#A?this.#n.setAttribute("max",et(this.#A)):this.#n.removeAttribute("max")),this.#et()}};E("date-picker",vr);re();function ue(e,t,i){t/=100,i/=100;let s=a=>(a+e/30)%12,n=t*Math.min(i,1-i),r=a=>i-n*Math.max(-1,Math.min(s(a)-3,9-s(a),1));return{r:Math.round(r(0)*255),g:Math.round(r(8)*255),b:Math.round(r(4)*255)}}function Ji(e,t,i,s=!1){e/=255,t/=255,i/=255;let n=Math.max(e,t,i),r=Math.min(e,t,i),a=(n+r)/2,o=0,c=0;if(n!==r){let l=n-r;switch(c=a>.5?l/(2-n-r):l/(n+r),n){case e:o=((t-i)/l+(t<i?6:0))/6;break;case t:o=((i-e)/l+2)/6;break;case i:o=((e-t)/l+4)/6;break}}return s?{h:o*360,s:c*100,l:a*100}:{h:Math.round(o*360),s:Math.round(c*100),l:Math.round(a*100)}}function xv(e){e=e.replace(/^#/,""),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);let t=parseInt(e,16);return{r:t>>16&255,g:t>>8&255,b:t&255}}function Cv(e,t,i){return"#"+[e,t,i].map(s=>Math.max(0,Math.min(255,Math.round(s))).toString(16).padStart(2,"0")).join("")}function Et(e,t=!1){let{r:i,g:s,b:n}=xv(e);return Ji(i,s,n,t)}function kt(e,t,i){let{r:s,g:n,b:r}=ue(e,t,i);return Cv(s,n,r)}function U(e,t,i){return Math.max(t,Math.min(i,e))}function wr(e){return e/=255,e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ar(e){let t=e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055;return Math.round(U(t,0,1)*255)}function Tv(e,t,i){let s=wr(e),n=wr(t),r=wr(i),a=.4122214708*s+.5363325363*n+.0514459929*r,o=.2119034982*s+.6806995451*n+.1073969566*r,c=.0883024619*s+.2817188376*n+.6299787005*r,l=Math.cbrt(a),u=Math.cbrt(o),d=Math.cbrt(c),h=.2104542553*l+.793617785*u-.0040720468*d,f=1.9779984951*l-2.428592205*u+.4505937099*d,p=.0259040371*l+.7827717662*u-.808675766*d,m=Math.sqrt(f*f+p*p),g=Math.atan2(p,f)*180/Math.PI;return g<0&&(g+=360),m<1e-4&&(g=0),{L:h,C:m,H:g}}function Lv(e,t,i){let s=i*Math.PI/180,n=t*Math.cos(s),r=t*Math.sin(s),a=e+.3963377774*n+.2158037573*r,o=e-.1055613458*n-.0638541728*r,c=e-.0894841775*n-1.291485548*r,l=a**3,u=o**3,d=c**3,h=4.0767416621*l-3.3077115913*u+.2309699292*d,f=-1.2684380046*l+2.6097574011*u-.3413193965*d,p=-.0041960863*l-.7034186147*u+1.707614701*d;return{r:Ar(h),g:Ar(f),b:Ar(p)}}function Er(e,t,i){let s=ue(e,t,i);return Tv(s.r,s.g,s.b)}function vu(e,t,i,s=!1){let{r:n,g:r,b:a}=Lv(e,t,i);return Ji(n,r,a,s)}function Nv(e,t,i){return kt(e,t,i)}function Mv(e,t,i){let{r:s,g:n,b:r}=ue(e,t,i);return`rgb(${s} ${n} ${r})`}function _v(e,t,i){return`hsl(${Math.round(e)}deg ${Math.round(t)}% ${Math.round(i)}%)`}function $v(e,t,i){let{L:s,C:n,H:r}=Er(e,t,i);return`oklch(${(s*100).toFixed(1)}% ${n.toFixed(3)} ${r.toFixed(1)}deg)`}function wu(e,t,i,s){switch(e){case"rgb":return Mv(t,i,s);case"hsl":return _v(t,i,s);case"oklch":return $v(t,i,s);default:return Nv(t,i,s)}}var de=["hex","rgb","hsl","oklch"],Dv="hex",Iv=/^#[0-9a-fA-F]{6}$/,he=8,Rv=0,kr=class extends k{static formAssociated=!0;#t;#e;#i;#n;#s;#o;#r;#a;#c;#l;#m;#p;#d={};#f=Dv;#g;#u;#y;#h=!1;#w=!1;#A=!1;#S=`cp${++Rv}`;#b=0;#k=100;#E=50;#v;static get observedAttributes(){return["disabled"]}constructor(){super(),this.#t=this.attachInternals(),this._adoptInternals(this.#t)}setup(){if(this.#e=this.querySelector(':scope > input[type="color"]'),!this.#e)return!1;if(!this.#A){let s=this.getAttribute("format");s&&de.includes(s)&&(this.#f=s),this.#A=!0}if(this.#v===void 0){let s=this.#e.defaultValue;this.#v=Iv.test(s)?s.toLowerCase():this.#e.value||"#000000"}let t=Et(this.#e.value||this.#v,!0);this.#b=t.h,this.#k=t.s,this.#E=t.l;let i=this.#e.getAttribute("name");return i&&(this.hasAttribute("name")||this.setAttribute("name",i),this.#e.removeAttribute("name")),this.#e.hasAttribute("disabled")&&(this.#e.removeAttribute("disabled"),this.hasAttribute("disabled")||this.setAttribute("disabled","")),this.#e.setAttribute("tabindex","-1"),this.#e.setAttribute("aria-hidden","true"),this.#e.style.cssText="position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;overflow:hidden;",this.listen(this.#e,"click",this.#x),this.#C(),this.#F(),this.#P(),this.#J(),this.#w=Zi,this.#w&&this.#r.setAttribute("popover","manual"),this.listen(document,"click",this.#G),this.listen(this,"keydown",this.#_),this.#N(this.matches(":disabled")),!0}teardown(){this.#h=!1,this.removeAttribute("open"),window.removeEventListener("scroll",this.#Z,{capture:!0}),window.removeEventListener("resize",this.#Z),this.#i?.remove(),this.#r?.remove()}attributeChangedCallback(t){t==="disabled"&&this.#i&&this.#N(this.matches(":disabled"))}formDisabledCallback(t){this.#i&&this.#N(t)}#N(t){this.#i.disabled=t,t&&this.#V()}#x=t=>{t.preventDefault(),this.#i.disabled||this.#i.focus()};#_=t=>{t.key!=="Escape"||!this.#h||(t.preventDefault(),t.stopPropagation(),this.#V(),this.#i.focus())};#C(){this.#i=document.createElement("button"),this.#i.type="button",this.#i.className="color-trigger",this.#i.setAttribute("aria-haspopup","dialog"),this.#i.setAttribute("aria-expanded","false"),this.#n=document.createElement("span"),this.#n.className="color-swatch",this.#s=document.createElement("span"),this.#s.className="color-hex",this.#s.id=`${this.#S}-value`,this.#i.appendChild(this.#n),this.#i.appendChild(this.#s);let t=[];for(let i of Array.from(this.#e.labels||[]))i.id||(i.id=`${this.#S}-label-${t.length}`),t.push(i.id);t.length===0&&(this.#o=document.createElement("span"),this.#o.className="visually-hidden",this.#o.id=`${this.#S}-name`,this.#o.textContent=this.#e.getAttribute("aria-label")||this.getAttribute("aria-label")||"Color",this.#i.prepend(this.#o),t.push(this.#o.id)),this.#i.setAttribute("aria-labelledby",[...t,this.#s.id].join(" ")),this.appendChild(this.#i),this.listen(this.#i,"click",()=>{this.#h?this.#V():this.#it()})}#F(){this.#g=void 0,this.#u=void 0,this.#r=document.createElement("div"),this.#r.className="color-panel",this.#r.setAttribute("role","dialog"),this.#r.setAttribute("aria-label","Color picker"),this.#a=document.createElement("div"),this.#a.className="color-area",this.#a.setAttribute("role","slider"),this.#a.setAttribute("aria-label","Saturation and lightness"),this.#a.setAttribute("aria-valuemin","0"),this.#a.setAttribute("aria-valuemax","100"),this.#a.setAttribute("tabindex","0"),this.#c=document.createElement("div"),this.#c.className="color-area-thumb",this.#a.appendChild(this.#c),this.#r.appendChild(this.#a);let t=document.createElement("div");t.className="color-hue-wrap",this.#l=document.createElement("div"),this.#l.className="color-hue",this.#l.setAttribute("role","slider"),this.#l.setAttribute("aria-label","Hue"),this.#l.setAttribute("aria-valuemin","0"),this.#l.setAttribute("aria-valuemax","360"),this.#l.setAttribute("tabindex","0"),this.#m=document.createElement("div"),this.#m.className="color-hue-thumb",this.#l.appendChild(this.#m),t.appendChild(this.#l),this.#r.appendChild(t);let i=document.createElement("div");i.className="color-format-row";let s=document.createElement("label");s.className="color-format-label";let n=document.createElement("span");n.textContent="Format",this.#p=document.createElement("select"),this.#p.className="color-format-select";for(let o of de){let c=document.createElement("option");c.value=o,c.textContent=o.toUpperCase(),this.#p.appendChild(c)}this.#p.value=this.#f,s.appendChild(n),s.appendChild(this.#p),i.appendChild(s),this.#r.appendChild(i),this.listen(this.#p,"change",this.#R),this.#d.hex=this.#D("hex",[{label:"Hex",channel:"hex",kind:"text",maxLength:7}]),this.#d.rgb=this.#D("rgb",[{label:"R",channel:"r",kind:"number",min:0,max:255,step:1},{label:"G",channel:"g",kind:"number",min:0,max:255,step:1},{label:"B",channel:"b",kind:"number",min:0,max:255,step:1}]),this.#d.hsl=this.#D("hsl",[{label:"H",channel:"h",kind:"number",min:0,max:360,step:1},{label:"S",channel:"s",kind:"number",min:0,max:100,step:1},{label:"L",channel:"l",kind:"number",min:0,max:100,step:1}]),this.#d.oklch=this.#D("oklch",[{label:"L%",channel:"oL",kind:"number",min:0,max:100,step:.1},{label:"C",channel:"oC",kind:"number",min:0,max:.4,step:.001},{label:"H\xB0",channel:"oH",kind:"number",min:0,max:360,step:.1}]);for(let o of de)this.#r.appendChild(this.#d[o].wrapper);this.#H();let r=this.querySelector(":scope > datalist");if(r){this.#g=document.createElement("div"),this.#g.className="color-swatches",this.#g.setAttribute("role","group"),this.#g.setAttribute("aria-label","Preset colors");for(let o of r.querySelectorAll("option[value]")){let c=document.createElement("button");c.type="button",c.setAttribute("aria-pressed","false"),c.style.background=o.value,c.setAttribute("aria-label",o.textContent||o.value),c.setAttribute("data-color",o.value),this.#g.appendChild(c)}this.#r.appendChild(this.#g),this.listen(this.#g,"click",this.#z)}let a=document.createElement("div");a.className="color-actions","EyeDropper"in window&&(this.#u=document.createElement("button"),this.#u.type="button",this.#u.className="color-eyedropper",this.#u.setAttribute("aria-label","Pick color from screen"),this.#u.textContent="\u{1F4A7}",a.appendChild(this.#u),this.listen(this.#u,"click",this.#B)),this.#y=document.createElement("button"),this.#y.type="button",this.#y.className="color-copy",this.#y.setAttribute("aria-label","Copy hex value"),this.#y.textContent="Copy",a.appendChild(this.#y),this.listen(this.#y,"click",this.#X),this.#r.appendChild(a),this.appendChild(this.#r),this.listen(this.#a,"pointerdown",this.#U),this.listen(this.#a,"keydown",this.#L),this.listen(this.#l,"pointerdown",this.#O),this.listen(this.#l,"keydown",this.#I);for(let o of de){let c=o==="hex"?this.#q:o==="rgb"?this.#Y:o==="hsl"?this.#tt:this.#$;for(let{el:l}of this.#d[o].inputs)this.listen(l,"change",c)}}#D(t,i){let s=document.createElement("div");s.className=`color-inputs color-inputs-${t}`,s.setAttribute("data-format",t);let n=[];for(let r of i){let a=document.createElement("label");a.className="color-input-label";let o=document.createElement("span");o.textContent=r.label;let c=document.createElement("input");c.type=r.kind,c.setAttribute("data-channel",r.channel),c.setAttribute("autocomplete","off"),c.setAttribute("spellcheck","false"),r.kind==="text"&&r.maxLength&&c.setAttribute("maxlength",String(r.maxLength)),r.kind==="number"&&(c.min=String(r.min),c.max=String(r.max),r.step!=null&&(c.step=String(r.step))),a.appendChild(o),a.appendChild(c),s.appendChild(a),n.push({el:c,channel:r.channel})}return{wrapper:s,inputs:n}}#H(){for(let t of de)this.#d[t].wrapper.hidden=t!==this.#f;this.#y&&this.#y.setAttribute("aria-label",`Copy ${this.#f.toUpperCase()} value`)}#R=()=>{let t=this.#p.value;de.includes(t)&&(this.#f=t,this.#H(),this.#P())};#U=t=>{t.preventDefault(),this.#a.setPointerCapture(t.pointerId),this.#M(t);let i=n=>this.#M(n),s=n=>{this.#a.releasePointerCapture(n.pointerId),this.#a.removeEventListener("pointermove",i),this.#a.removeEventListener("pointerup",s)};this.#a.addEventListener("pointermove",i),this.#a.addEventListener("pointerup",s)};#M(t){let i=this.#a.getBoundingClientRect(),s=U((t.clientX-i.left)/i.width,0,1),n=U((t.clientY-i.top)/i.height,0,1);this.#k=Math.round(s*100),this.#E=Math.round((1-n)*100),this.#j("pointer")}#L=t=>{let i=t.shiftKey?10:1;switch(this.#k=Math.round(this.#k),this.#E=Math.round(this.#E),t.key){case"ArrowRight":t.preventDefault(),this.#k=U(this.#k+i,0,100);break;case"ArrowLeft":t.preventDefault(),this.#k=U(this.#k-i,0,100);break;case"ArrowUp":t.preventDefault(),this.#E=U(this.#E+i,0,100);break;case"ArrowDown":t.preventDefault(),this.#E=U(this.#E-i,0,100);break;default:return}this.#j("keyboard")};#O=t=>{t.preventDefault(),this.#l.setPointerCapture(t.pointerId),this.#Q(t);let i=n=>this.#Q(n),s=n=>{this.#l.releasePointerCapture(n.pointerId),this.#l.removeEventListener("pointermove",i),this.#l.removeEventListener("pointerup",s)};this.#l.addEventListener("pointermove",i),this.#l.addEventListener("pointerup",s)};#Q(t){let i=this.#l.getBoundingClientRect(),s=U((t.clientX-i.left)/i.width,0,1);this.#b=Math.round(s*360),this.#j("pointer")}#I=t=>{let i=t.shiftKey?10:1;switch(this.#b=Math.round(this.#b),t.key){case"ArrowRight":case"ArrowUp":t.preventDefault(),this.#b=(this.#b+i)%361;break;case"ArrowLeft":case"ArrowDown":t.preventDefault(),this.#b=(this.#b-i+361)%361;break;default:return}this.#j("keyboard")};#T(t,i){return this.#d[t].inputs.find(s=>s.channel===i)?.el}#q=()=>{let t=this.#T("hex","hex");if(!t)return;let i=t.value.trim();if(i.startsWith("#")||(i="#"+i),/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(i)){let s=Et(i,!0);this.#b=s.h,this.#k=s.s,this.#E=s.l,this.#j()}};#Y=()=>{let t=U(Number(this.#T("rgb","r").value)||0,0,255),i=U(Number(this.#T("rgb","g").value)||0,0,255),s=U(Number(this.#T("rgb","b").value)||0,0,255),n=Ji(t,i,s,!0);this.#b=n.h,this.#k=n.s,this.#E=n.l,this.#j()};#tt=()=>{let t=U(Number(this.#T("hsl","h").value)||0,0,360)%361,i=U(Number(this.#T("hsl","s").value)||0,0,100),s=U(Number(this.#T("hsl","l").value)||0,0,100);this.#b=t,this.#k=i,this.#E=s,this.#j()};#$=()=>{let t=U(Number(this.#T("oklch","oL").value)||0,0,100)/100,i=U(Number(this.#T("oklch","oC").value)||0,0,.4),s=U(Number(this.#T("oklch","oH").value)||0,0,360),n=vu(t,i,s,!0);this.#b=n.h,this.#k=n.s,this.#E=n.l,this.#j()};#z=t=>{let i=t.target.closest("button[data-color]");if(!i)return;let s=i.getAttribute("data-color"),n=Et(s,!0);this.#b=n.h,this.#k=n.s,this.#E=n.l,this.#j()};#B=async()=>{try{let i=await new window.EyeDropper().open(),s=Et(i.sRGBHex,!0);this.#b=s.h,this.#k=s.s,this.#E=s.l,this.#j()}catch{}};#X=()=>{let t=wu(this.#f,this.#b,this.#k,this.#E);gt(t,{button:this.#y,announceMessage:"Color copied"})};#j(t="internal"){this.#P(),this.#J();let i=kt(this.#b,this.#k,this.#E),s=ue(this.#b,this.#k,this.#E);this.dispatchEvent(new CustomEvent("color-picker:change",{bubbles:!0,detail:{hex:i,rgb:{r:s.r,g:s.g,b:s.b},hsl:{h:Math.round(this.#b),s:Math.round(this.#k),l:Math.round(this.#E)},source:t}}))}#P(){let t=kt(this.#b,this.#k,this.#E),i=ue(this.#b,this.#k,this.#E),s=kt(this.#b,100,50);this.#n.style.background=t,this.#s.textContent=t,this.#a.style.setProperty("--area-hue",s),this.#c.style.left=`${this.#k}%`,this.#c.style.top=`${100-this.#E}%`,this.#c.style.background=t;let n=Math.round(this.#b),r=Math.round(this.#k),a=Math.round(this.#E);this.#a.setAttribute("aria-valuenow",String(r)),this.#a.setAttribute("aria-valuetext",`Saturation ${r}%, lightness ${a}%`),this.#m.style.left=`${this.#b/360*100}%`,this.#l.setAttribute("aria-valuenow",String(n)),this.#l.setAttribute("aria-valuetext",`Hue ${n}\xB0`);let o=(l,u,d)=>{let h=this.#T(l,u);h&&(h.value=String(d))};o("hex","hex",t),o("rgb","r",i.r),o("rgb","g",i.g),o("rgb","b",i.b),o("hsl","h",n),o("hsl","s",r),o("hsl","l",a);let c=Er(this.#b,this.#k,this.#E);if(o("oklch","oL",(c.L*100).toFixed(1)),o("oklch","oC",c.C.toFixed(3)),o("oklch","oH",c.H.toFixed(1)),this.#g)for(let l of this.#g.querySelectorAll("button[data-color]")){let u=(l.getAttribute("data-color")||"").toLowerCase()===t.toLowerCase();l.setAttribute("aria-pressed",String(u))}}#it(){if(!(this.#h||this.#i.disabled)){if(this.#h=!0,this.setAttribute("open",""),this.#i.setAttribute("aria-expanded","true"),this.#w){try{this.#r.showPopover()}catch{}this.#W(),window.addEventListener("scroll",this.#Z,{capture:!0,passive:!0}),window.addEventListener("resize",this.#Z,{passive:!0})}requestAnimationFrame(()=>this.#a.focus()),this.dispatchEvent(new CustomEvent("color-picker:open",{bubbles:!0}))}}#V(){if(this.#h){if(this.#h=!1,this.removeAttribute("open"),this.#i.setAttribute("aria-expanded","false"),this.#w){try{this.#r.hidePopover()}catch{}window.removeEventListener("scroll",this.#Z,{capture:!0}),window.removeEventListener("resize",this.#Z)}this.dispatchEvent(new CustomEvent("color-picker:close",{bubbles:!0}))}}#W(){if(!this.#w)return;let t=this.#i.getBoundingClientRect(),i=this.#r.offsetWidth,s=this.#r.offsetHeight,n=document.documentElement.clientWidth,r=document.documentElement.clientHeight,o=getComputedStyle(this).direction==="rtl"?t.right-i:t.left;o=Math.min(o,n-i-he),o=Math.max(o,he);let c=t.bottom+4;c+s>r-he&&t.top-s-4>=he&&(c=t.top-s-4),c=Math.max(he,Math.min(c,r-s-he)),this.#r.style.setProperty("--panel-top",`${Math.round(c)}px`),this.#r.style.setProperty("--panel-left",`${Math.round(o)}px`)}#Z=()=>{this.#h&&this.#W()};#G=t=>{this.#h&&!this.contains(t.target)&&this.#V()};#J(){let t=kt(this.#b,this.#k,this.#E);this.#t.setFormValue(t),this.#e.value=t,this.#e.dispatchEvent(new Event("input",{bubbles:!0}))}formResetCallback(){if(!this.#i)return;let t=Et(this.#v,!0);this.#b=t.h,this.#k=t.s,this.#E=t.l,this.#P(),this.#J()}formStateRestoreCallback(t){if(!t||!this.#i)return;let i=Et(t,!0);this.#b=i.h,this.#k=i.s,this.#E=i.l,this.#P(),this.#J()}get value(){return kt(this.#b,this.#k,this.#E)}set value(t){if(!/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(t))return;let i=kt(this.#b,this.#k,this.#E).toLowerCase(),s=t.toLowerCase();if(i===s||i===s.toLowerCase())return;let n=Et(t,!0);this.#b=n.h,this.#k=n.s,this.#E=n.l,this.#j("api")}};E("color-picker",kr);var Pv='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><line x1="5" y1="12" x2="19" y2="12"/></svg>',Fv='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg>';function Ov(e){if(!e)return[];let t=e.trim();if(t.startsWith("["))try{return JSON.parse(t).map(s=>({value:String(s.value),label:String(s.label??s.value)}))}catch{return[]}return t.split(",").map(i=>{let s=i.trim();return{value:s,label:s}})}function qv(e){return e?e.split(",").map(t=>t.trim()).filter(Boolean):[]}function Bv(e){let t=Math.max(0,Math.round(e)),i=Math.floor(t/3600),s=Math.floor(t%3600/60),n=t%60,r=a=>String(a).padStart(2,"0");return i>0?`${i}:${r(s)}:${r(n)}`:`${s}:${r(n)}`}function jv(e,t){let i=Number(e)||0,s=["B","KB","MB","GB","TB","PB"],n=0,r=Math.abs(i);for(;r>=1e3&&n<s.length-1;)r/=1e3,n+=1;let a=new Intl.NumberFormat(t,{minimumFractionDigits:n===0?0:1,maximumFractionDigits:n===0?0:2});return`${i<0?"-":""}${a.format(r)} ${s[n]}`}function Hv(){return document.documentElement.lang||void 0}function Sr(e){let t=String(e),i=t.indexOf(".");return i<0?0:t.length-i-1}var Au=!1,zv=0,xr=class extends k{static formAssociated=!0;static observedAttributes=["value","disabled","readonly","aria-label","aria-labelledby","data-label-decrease","data-label-increase"];#t;#e;#i=-1/0;#n=1/0;#s=1;#o=[];#r=[];#a;#c;#l="";#m=!1;#p=!1;#d;#f;#g;#u=!1;#y=!1;#h;#w;#A;#S;#b;#k;#E=0;#v=0;#N=!1;#x=!1;constructor(){super(),this.#t=this.attachInternals(),this._adoptInternals(this.#t)}setup(){this.#F(),this.#D(),this.#U();let t=this.getAttribute("value");this.#u||(this.#g=t,this.#u=!0),this.#B(t??this.#R(),"init"),this.#_(),requestAnimationFrame(()=>{this.isConnected&&this.#_()}),this.listen(this.#h,"focus",()=>this.#_()),this.listen(this,"click",i=>{i.target===this&&!this.#Q()&&this.#h.focus()})}teardown(){this.#L(),this.#x=!1}attributeChangedCallback(t,i,s){!this.isConnected||!this.#h||(t==="value"?this.#B(s??this.#R(),"attr"):t==="disabled"||t==="readonly"?this.#T():t==="aria-label"||t==="aria-labelledby"?this.#_():this.#C())}#_(){let t=[],i=[];try{i=[...this.#t.labels||[]]}catch{}for(let a of i)a.id||(a.id=`stepper-wc-label-${++zv}`),t.push(a.id);let s=(this.getAttribute("aria-labelledby")||"").trim();s&&t.push(...s.split(/\s+/));let n=[...new Set(t)];n.length?this.#h.setAttribute("aria-labelledby",n.join(" ")):this.#h.removeAttribute("aria-labelledby");let r=this.getAttribute("aria-label");r?this.#h.setAttribute("aria-label",r):this.#h.removeAttribute("aria-label")}#C(){this.#S.setAttribute("aria-label",this.getAttribute("data-label-decrease")||"Decrease"),this.#b.setAttribute("aria-label",this.getAttribute("data-label-increase")||"Increase")}#F(){if(this.hasAttribute("data-options"))this.#e="enum";else if(this.hasAttribute("data-values"))this.#e="token";else if(this.hasAttribute("data-format")||this.hasAttribute("data-suffix"))this.#e="formatted";else{if(this.#e="numeric",Au)return;Au=!0,console.info('[stepper-wc] No mode attribute set. Plain numeric stepping is better served by `<input type="number" data-stepper>`. See /docs/concepts/numeric-inputs/')}}#D(){this.#i=this.hasAttribute("data-min")?Number(this.getAttribute("data-min")):-1/0,this.#n=this.hasAttribute("data-max")?Number(this.getAttribute("data-max")):1/0,this.#s=Number(this.getAttribute("data-step"))||1,this.#o=qv(this.getAttribute("data-values")),this.#r=Ov(this.getAttribute("data-options")),this.#a=this.getAttribute("data-format")||(this.hasAttribute("data-suffix")?"number":null),this.#c=this.getAttribute("data-currency")||"USD",this.#l=this.getAttribute("data-suffix")||"",this.#m=this.hasAttribute("data-show-label"),this.#p=this.hasAttribute("data-accelerate"),this.#d=Hv(),this.#k=this.#H()}#H(){if(!this.#a)return null;let t=Sr(this.#s);return this.#a==="number"?new Intl.NumberFormat(this.#d,{minimumFractionDigits:t,maximumFractionDigits:t}):this.#a==="currency"?new Intl.NumberFormat(this.#d,{style:"currency",currency:this.#c}):this.#a==="percent"?new Intl.NumberFormat(this.#d,{style:"percent",minimumFractionDigits:t,maximumFractionDigits:t}):null}#R(){return this.#e==="enum"?this.#r[0]?.value??"":this.#e==="token"?this.#o[0]??"":"0"}#U(){this.replaceChildren(),this.#S=document.createElement("button"),this.#S.type="button",this.#S.className="stepper-dec",this.#S.setAttribute("tabindex","-1"),this.#S.innerHTML=Pv,this.#b=document.createElement("button"),this.#b.type="button",this.#b.className="stepper-inc",this.#b.setAttribute("tabindex","-1"),this.#b.innerHTML=Fv,this.#h=document.createElement("span"),this.#h.className="stepper-value",this.#h.setAttribute("role","spinbutton"),this.#h.setAttribute("tabindex","0"),this.#w=document.createElement("span"),this.#w.className="stepper-value-display",this.#h.appendChild(this.#w),this.#A=new Set;for(let t of this.#it())this.#V(t);this.appendChild(this.#S),this.appendChild(this.#h),this.appendChild(this.#b),this.#M(this.#S,-1),this.#M(this.#b,1),this.listen(this.#h,"keydown",this.#O),this.#C(),this.#T()}#M(t,i){if(this.listen(t,"click",n=>{if(this.#x){this.#x=!1,n.preventDefault();return}this.#q(i,1)}),!this.#p)return;this.listen(t,"pointerdown",n=>{let r=n;r.pointerType==="mouse"&&r.button!==0||this.#I()||(this.#N=!1,this.#E=window.setTimeout(()=>{this.#N=!0,this.#v=window.setInterval(()=>this.#q(i,1),100),this.#E=window.setTimeout(()=>{window.clearInterval(this.#v),this.#v=window.setInterval(()=>this.#q(i,5),50)},1e3)},500))});let s=()=>{this.#L(),this.#N&&(this.#x=!0)};this.listen(t,"pointerup",s),this.listen(t,"pointerleave",s),this.listen(t,"pointercancel",s)}#L(){window.clearTimeout(this.#E),window.clearInterval(this.#v),this.#E=0,this.#v=0}#O=t=>{if(this.#I())return;let i=getComputedStyle(this).direction==="rtl";switch(i&&t.key==="ArrowLeft"?"ArrowRight":i&&t.key==="ArrowRight"?"ArrowLeft":t.key){case"ArrowUp":case"ArrowRight":t.preventDefault(),this.#q(1,1);break;case"ArrowDown":case"ArrowLeft":t.preventDefault(),this.#q(-1,1);break;case"PageUp":t.preventDefault(),this.#q(1,10);break;case"PageDown":t.preventDefault(),this.#q(-1,10);break;case"Home":t.preventDefault(),this.#Y("min");break;case"End":t.preventDefault(),this.#Y("max");break;default:}};#Q(){return this.hasAttribute("disabled")||this.#y}#I(){return this.#Q()||this.hasAttribute("readonly")}#T(){let t=this.#Q();this.#h.setAttribute("aria-disabled",String(t)),this.hasAttribute("readonly")?this.#h.setAttribute("aria-readonly","true"):this.#h.removeAttribute("aria-readonly"),t?(this.#h.removeAttribute("tabindex"),this.#L()):this.#h.setAttribute("tabindex","0"),this.#f!==void 0?this.#Z():(this.#S.disabled=this.#I(),this.#b.disabled=this.#I())}#q(t,i){if(this.#I())return;let s=this.#tt(t,i);s===null||s===this.#f||this.#B(s,"step")}#Y(t){if(this.#e==="enum"){let s=t==="min"?0:this.#r.length-1;this.#B(this.#r[s]?.value,"step");return}if(this.#e==="token"){let s=t==="min"?0:this.#o.length-1;this.#B(this.#o[s],"step");return}let i=t==="min"?this.#i===-1/0?this.#f:this.#i:this.#n===1/0?this.#f:this.#n;this.#B(String(i),"step")}#tt(t,i){if(this.#e==="enum"){let c=this.#r.findIndex(d=>d.value===this.#f),l=c===-1?0:c,u=Math.min(this.#r.length-1,Math.max(0,l+t*i));return this.#r[u]?.value}if(this.#e==="token"){let l=this.#$(this.#f);l===-1&&(l=this.#z(this.#f));let u=Math.min(this.#o.length-1,Math.max(0,l+t*i));return this.#o[u]}let s=Number(this.#f)||0,n=Sr(this.#s),r=s+t*this.#s*i,a=Number(r.toFixed(n)),o=Math.min(this.#n,Math.max(this.#i,a));return String(o)}#$(t){if(t==null)return-1;let i=this.#o.indexOf(String(t));if(i!==-1)return i;let s=Number(t);if(Number.isFinite(s)){let n=this.#o.findIndex(r=>Number(r)===s);if(n!==-1)return n}return-1}#z(t){let i=Number(t);if(!Number.isFinite(i))return 0;let s=0,n=1/0;return this.#o.forEach((r,a)=>{let o=Number(r);if(!Number.isFinite(o))return;let c=Math.abs(o-i);c<n&&(n=c,s=a)}),s}#B(t,i){let s=this.#X(t),n=s!==this.#f;this.#f=s,this.getAttribute("value")!==String(s)&&this.setAttribute("value",String(s)),this.#j(),this.#W(),this.#Z(),this.#st(),this.#K(),n&&i!=="init"&&(this.dispatchEvent(new Event("input",{bubbles:!0})),this.dispatchEvent(new Event("change",{bubbles:!0})))}#X(t){if(t==null)return this.#R();if(this.#e==="enum"){let n=String(t);return this.#r.find(a=>a.value===n)?n:this.#r[0]?.value??""}if(this.#e==="token")return String(t);let i=Number(t);if(!Number.isFinite(i))return String(this.#i===-1/0?0:this.#i);let s=Sr(this.#s);return String(Number(Math.min(this.#n,Math.max(this.#i,i)).toFixed(s)))}#j(){let t=this.#P();this.#w.textContent=t,this.#V(t)}#P(t=this.#f){if(this.#e==="enum")return this.#r.find(s=>s.value===t)?.label??t??"";if(this.#e==="token"){let i=this.#m?String(t).replace(/^--/,""):String(t);return this.#l?`${i}${this.#l}`:i}if(this.#e==="formatted"){let i=Number(t)||0;if(this.#a==="duration")return Bv(i);if(this.#a==="bytes")return jv(i,this.#d);if(this.#k){let s=this.#a==="percent"?i/100:i,n=this.#k.format(s);return this.#l&&this.#a==="number"?`${n}${this.#l}`:n}return this.#l?`${i}${this.#l}`:String(i)}return String(t??"")}#it(){if(this.#e==="enum")return this.#r.map(s=>this.#P(s.value));if(this.#e==="token")return this.#o.map(s=>this.#P(s));let t=new Set,i=s=>{Number.isFinite(s)&&t.add(s)};if(this.#i!==-1/0&&i(this.#i),this.#n!==1/0&&i(this.#n),i(Number(this.getAttribute("value"))||0),this.#n===1/0){let s=[10,100,1e3,1e4];for(let n of s)i(n);if(this.#a==="bytes")for(let n of[999,999e3,999e6,999e9])i(n)}return[...t].map(s=>this.#P(String(s)))}#V(t){let i=String(t??"");if(!i||this.#A.has(i))return;this.#A.add(i);let s=document.createElement("span");s.className="stepper-value-reserve",s.setAttribute("aria-hidden","true"),s.textContent=i,this.#h.appendChild(s)}recomputeWidth(){if(this.#h){this.#h.querySelectorAll(".stepper-value-reserve").forEach(t=>t.remove()),this.#A=new Set;for(let t of this.#it())this.#V(t)}}#W(){if(this.#e==="enum"){let i=this.#r.findIndex(s=>s.value===this.#f);this.#h.setAttribute("aria-valuemin","1"),this.#h.setAttribute("aria-valuemax",String(this.#r.length)),this.#h.setAttribute("aria-valuenow",String((i===-1?0:i)+1)),this.#h.setAttribute("aria-valuetext",this.#P());return}if(this.#e==="token"){let i=this.#$(this.#f);this.#h.setAttribute("aria-valuemin","1"),this.#h.setAttribute("aria-valuemax",String(this.#o.length)),this.#h.setAttribute("aria-valuenow",String((i===-1?0:i)+1)),this.#h.setAttribute("aria-valuetext",this.#P());return}let t=Number(this.#f)||0;this.#i!==-1/0?this.#h.setAttribute("aria-valuemin",String(this.#i)):this.#h.removeAttribute("aria-valuemin"),this.#n!==1/0?this.#h.setAttribute("aria-valuemax",String(this.#n)):this.#h.removeAttribute("aria-valuemax"),this.#h.setAttribute("aria-valuenow",String(t)),this.#h.setAttribute("aria-valuetext",this.#P())}#Z(){let t=this.#G(),i=this.#J(),s=this.#I();this.#S.disabled=t||s,this.#b.disabled=i||s}#G(){return this.#e==="enum"?this.#f===this.#r[0]?.value:this.#e==="token"?this.#$(this.#f)===0:this.#i!==-1/0&&Number(this.#f)<=this.#i}#J(){return this.#e==="enum"?this.#f===this.#r[this.#r.length-1]?.value:this.#e==="token"?this.#$(this.#f)===this.#o.length-1:this.#n!==1/0&&Number(this.#f)>=this.#n}#st(){this.#t.setFormValue(String(this.#f??""))}#K(){this.setState("at-min",this.#G()),this.setState("at-max",this.#J())}formResetCallback(){this.#B(this.#g??this.#R(),"reset")}formDisabledCallback(t){this.#y=t,this.#h&&this.#T()}formStateRestoreCallback(t){t!=null&&this.#B(t,"restore")}get displayText(){return this.#w?.textContent??""}get value(){return this.#f==null?"":String(this.#f)}set value(t){String(t)!==String(this.#f)&&this.#B(t,"api")}get form(){return this.#t.form}get name(){return this.getAttribute("name")}get type(){return this.localName}get validity(){return this.#t.validity}get validationMessage(){return this.#t.validationMessage}checkValidity(){return this.#t.checkValidity()}reportValidity(){return this.#t.reportValidity()}};E("stepper-wc",xr);var Vv={live:"Live",recording:"Recording",streaming:"Streaming",error:"Error",online:"Online",running:"Running",away:"Away",paused:"Paused",busy:"Busy",offline:"Offline",stopped:"Stopped"},Cr=class extends k{static get observedAttributes(){return["data-variant","data-live","aria-label"]}#t=null;#e=null;#i=!1;setup(){let t=this.querySelector(":scope > .status-dot"),i=this.querySelector(":scope > .status-label"),s=this.querySelector(":scope > .status-default-label");t||(t=document.createElement("span"),t.className="status-dot",t.setAttribute("aria-hidden","true")),i||(i=document.createElement("span"),i.className="status-label"),s||(s=document.createElement("span"),s.className="status-default-label");for(let n of[...this.childNodes])n===t||n===i||n===s||i.appendChild(n);this.append(t,i,s),this.#t=i,this.#e=s,this.#n(),this.#s()}attributeChangedCallback(t,i,s){i!==s&&(!this.isConnected||!this.hasAttribute("data-upgraded")||(t==="data-variant"?(this.#s(),this.dispatchEvent(new CustomEvent("status-wc:change",{bubbles:!0,detail:{variant:s,previousVariant:i}}))):t==="data-live"?this.#n():t==="aria-label"&&this.#s()))}#n(){this.getAttribute("data-live")==="off"?this.#i&&(this.removeAttribute("role"),this.removeAttribute("aria-live"),this.#i=!1):!this.hasAttribute("role")&&!this.hasAttribute("aria-live")&&(this.setAttribute("role","status"),this.setAttribute("aria-live","polite"),this.#i=!0)}#s(){let t=this.#e;if(!t)return;let i=!!this.#t?.textContent?.trim(),s="";if(!i){let n=this.getAttribute("data-variant")||"";s=this.getAttribute("aria-label")||n&&this.getAttribute(`data-label-${n}`)||Vv[n]||n}t.textContent!==s&&(t.textContent=s)}get variant(){return this.getAttribute("data-variant")}set variant(t){t?this.setAttribute("data-variant",t):this.removeAttribute("data-variant")}};E("status-wc",Cr);qe();je();var Tr=0,Uv='a[href], button, input, select, textarea, summary, iframe, [tabindex], [contenteditable]:not([contenteditable="false"])';function Qi(e){return e.hasAttribute("data-disabled")||e.getAttribute("aria-disabled")==="true"||!!e.disabled}function Wv(e){return e.pointerType===""||e.pointerId===-1||e.button===-1||e.clientX===0&&e.clientY===0&&e.buttons===0}var Lr=class extends k{#t;#e;#i;#n=[];#s=-1;#o=!1;#r=[];setup(){let t=this.querySelector(":scope > [data-trigger]"),i=this.querySelector('menu, ul[role="menu"]');if(!t||!i)return!1;this.#t=t,this.#e=i;let s=this.querySelector(":scope > pop-over[data-context-menu-host]");s?this.#i=s:(this.#i=document.createElement("pop-over"),this.#i.setAttribute("data-context-menu-host",""),this.#i.id=`ctx-menu-${++Tr}`,this.#i.dataset.mode="auto",this.#i.appendChild(this.#e),this.appendChild(this.#i)),this.#e.parentElement!==this.#i&&this.#i.appendChild(this.#e),this.#e.setAttribute("role","menu"),this.#e.id||(this.#e.id=`ctx-menu-list-${++Tr}`),this.#t.setAttribute("aria-haspopup","menu"),this.#t.setAttribute("aria-expanded","false"),this.#t.setAttribute("aria-controls",this.#e.id),this.#t.matches(Uv)||this.#t.setAttribute("tabindex","0"),this.#e.querySelectorAll(':scope > li:empty:not([data-group]), :scope > [role="separator"], :scope > hr').forEach(r=>{r.setAttribute("role","separator")}),this.#a();let n=Array.from(this.#e.querySelectorAll('button, a, [role="menuitem"]'));return n.forEach(r=>{r.setAttribute("role","menuitem"),r.setAttribute("tabindex","-1")}),this.#n=n.filter(r=>!r.disabled),this.#e.querySelectorAll("li").forEach(r=>{r.querySelector(':scope > :is(button, a, [role="menuitem"])')&&r.setAttribute("role","none")}),this.#n.forEach(r=>{r.hasAttribute("data-disabled")&&r.setAttribute("aria-disabled","true"),this.listen(r,"click",this.#h);let a=r.getAttribute("data-shortcut");if(a){if(!r.querySelector(":scope > .ctx-kbd")){let c=document.createElement("kbd");c.className="ctx-kbd",c.setAttribute("aria-hidden","true"),c.textContent=Bl(a),r.appendChild(c)}r.setAttribute("aria-keyshortcuts",zi(a));let o=At(a,()=>{Qi(r)||r.click()});this.#r.push(o)}}),this.listen(this.#t,"contextmenu",this.#l),this.listen(this.#t,"keydown",this.#m),this.listen(this.#e,"keydown",this.#u),this.listen(this.#e,"click",this.#y,{capture:!0}),this.listen(window,"scroll",this.#A,{capture:!0}),this.listen(this.#i,"pop-over:hide",this.#w),!0}teardown(){this.#r.forEach(t=>t()),this.#r=[],this.#o&&(this.#o=!1,this.removeAttribute("data-open"),this.#i?.hide?.()),this.#s=-1,this.#n=[],this.#e?.querySelectorAll(".ctx-kbd").forEach(t=>t.remove()),this.#c()}#a(){let t=this.#e;for(let i of Array.from(t.querySelectorAll(":scope > li[data-group]"))){i.id||(i.id=`ctx-group-${++Tr}`),i.classList.add("ctx-group-label"),i.setAttribute("aria-hidden","true");let s=document.createElement("li");s.setAttribute("role","group"),s.setAttribute("aria-labelledby",i.id),s.setAttribute("data-ctx-group","");let n=document.createElement("ul");n.setAttribute("role","none"),s.appendChild(n),t.insertBefore(s,i),n.appendChild(i);let r=s.nextElementSibling;for(;r&&!r.hasAttribute("data-group")&&r.getAttribute("role")!=="separator";){let a=r;r=r.nextElementSibling,n.appendChild(a)}}}#c(){let t=this.#e;if(t)for(let i of Array.from(t.querySelectorAll(":scope > li[data-ctx-group]"))){let s=i.querySelector(":scope > ul");if(s)for(let n of Array.from(s.children))t.insertBefore(n,i);i.remove()}}get items(){if(!this.#e)return[];let t=[],i=this.#e.querySelectorAll(":scope > li:not([data-ctx-group]), :scope > li[data-ctx-group] > ul > li");for(let s of i){if(s.hasAttribute("data-group")){t.push({group:s.textContent.trim()});continue}if(s.matches(':empty, [role="separator"]')||s.querySelector("hr")){t.push({separator:!0});continue}let n=s.querySelector('button, a, [role="menuitem"]');if(!n)continue;let r=Array.from(n.childNodes).filter(a=>!(a instanceof Element&&a.classList.contains("ctx-kbd"))).map(a=>a.textContent).join("");t.push({label:r.trim().replace(/\s+/g," "),value:n.getAttribute("data-value")||void 0,href:n.tagName==="A"?n.getAttribute("href"):void 0,shortcut:n.getAttribute("data-shortcut")||void 0,disabled:n.disabled||n.hasAttribute("data-disabled")||void 0})}return t}set items(t){let i=Array.isArray(t)?t:[],s=this.querySelector('menu, ul[role="menu"]');for(s||(s=document.createElement("menu"),this.appendChild(s));s.firstChild;)s.firstChild.remove();for(let n of i){let r=document.createElement("li");if(n.separator)r.setAttribute("role","separator");else if(n.group!=null)r.setAttribute("data-group",""),r.textContent=n.group;else{let a=n.href?document.createElement("a"):document.createElement("button");n.href&&a.setAttribute("href",n.href),n.value&&a.setAttribute("data-value",n.value),n.shortcut&&a.setAttribute("data-shortcut",n.shortcut),n.disabled&&a.setAttribute("data-disabled",""),a.tagName==="BUTTON"&&a.setAttribute("type","button"),a.textContent=n.label||"",r.appendChild(a)}s.appendChild(r)}this._reinit(),this.dispatchEvent(new CustomEvent("context-menu:items-changed",{detail:{items:i,source:"property"},bubbles:!0}))}#l=t=>{if(t.preventDefault(),Wv(t)){this.#o||this.#p();return}t.buttons!==0?this.listen(window,"pointerup",()=>{setTimeout(()=>this.#d(t.clientX,t.clientY),0)},{once:!0,capture:!0}):this.#d(t.clientX,t.clientY)};#m=t=>{t.target===this.#t&&(t.key==="ContextMenu"||t.key==="F10"&&t.shiftKey)&&(t.preventDefault(),this.#o||this.#p())};#p(){let t=this.#t.getBoundingClientRect();this.#d(t.left,t.bottom)}#d(t,i){this.#o=!0,this.setAttribute("data-open",""),this.#t?.setAttribute("aria-expanded","true"),this.#i.style.top=`${i}px`,this.#i.style.left=`${t}px`,this.#i.show(),requestAnimationFrame(()=>{let s=this.#i.getBoundingClientRect(),n=t+s.width>window.innerWidth?t-s.width:t,r=i+s.height>window.innerHeight?i-s.height:i;this.#i.style.top=`${Math.max(0,r)}px`,this.#i.style.left=`${Math.max(0,n)}px`}),this.#s=-1,this.#S(0),this.dispatchEvent(new CustomEvent("context-menu:open",{bubbles:!0}))}close(){if(!this.#o)return;let t=this.#f();this.#o=!1,this.removeAttribute("data-open"),this.#t?.setAttribute("aria-expanded","false"),this.#s=-1,this.#i?.hide(),t&&this.#g(),this.dispatchEvent(new CustomEvent("context-menu:close",{bubbles:!0}))}#f(){let t=document.activeElement;return!t||t===document.body||!!this.#i?.contains(t)}#g(){this.#t?.isConnected&&this.#t.focus({preventScroll:!0})}#u=t=>{switch(t.key){case"ArrowDown":case"Down":t.preventDefault(),this.#S(this.#s+1);break;case"ArrowUp":case"Up":t.preventDefault(),this.#S(this.#s-1);break;case"Home":t.preventDefault(),this.#S(0);break;case"End":t.preventDefault(),this.#S(this.#n.length-1);break;case"Enter":case" ":{t.preventDefault();let i=this.#n[this.#s];i&&!Qi(i)&&i.click();break}case"Tab":this.close();break}};#y=t=>{let i=t.target.closest?.('button, a, [role="menuitem"]');i&&this.#e.contains(i)&&Qi(i)&&(t.preventDefault(),t.stopPropagation())};#h=t=>{let i=t.currentTarget;Qi(i)||(this.close(),this.dispatchEvent(new CustomEvent("context-menu:select",{bubbles:!0,detail:{item:i,value:i.getAttribute("data-value")||void 0}})))};#w=()=>{this.#o&&(this.#o=!1,this.removeAttribute("data-open"),this.#t?.setAttribute("aria-expanded","false"),this.#s=-1,this.#f()&&this.#g(),this.dispatchEvent(new CustomEvent("context-menu:close",{bubbles:!0})))};#A=()=>{this.#o&&this.close()};#S(t){this.#n.length!==0&&(t<0&&(t=this.#n.length-1),t>=this.#n.length&&(t=0),this.#s=t,this.#n[t].focus())}get isOpen(){return this.#o}};E("context-menu",Lr);Rt();var Eu=10,Gv=new Set(["replace","append","prepend"]),Kv="Failed to load content",Nr=class extends k{#t;#e;#i=null;#n=!1;#s=null;#o="";#r=!1;#a=null;setup(){let t=this.getAttribute("src");return t?(this.#r=!0,this.#i===null&&(this.#i=this.innerHTML),this.#n&&this.#s===t||this.#c(t),!0):!1}teardown(){this.#r=!1,this.#t?.disconnect(),this.hasAttribute("data-loading")&&(this.#e?.abort(),this.removeAttribute("data-loading"),this.removeAttribute("aria-busy"))}get src(){return this.getAttribute("src")||""}set src(t){let i=t==null?"":String(t);this.src!==i&&(i?this.setAttribute("src",i):this.removeAttribute("src"),this.dispatchEvent(new CustomEvent("include-file:src-changed",{detail:{src:i,source:"property"},bubbles:!0})))}static get observedAttributes(){return["src"]}attributeChangedCallback(t,i,s){if(!(t!=="src"||!s||i===s)){if(!this.#r){queueMicrotask(()=>{!this.#r&&this.isConnected&&this.getAttribute("src")&&this._reinit()});return}this.#c(s)}}#c(t){this.hasAttribute("lazy")&&!this.#l()?this.#m():this.#u(t)}#l(){let t=this.getBoundingClientRect();return t.top<window.innerHeight+200&&t.bottom>-200}#m(){this.#t?.disconnect(),this.#t=new IntersectionObserver(t=>{for(let i of t)if(i.isIntersecting){this.#t.disconnect();let s=this.getAttribute("src");s&&this.#u(s)}},{rootMargin:"200px"}),this.#t.observe(this)}#p(t){let i;try{i=new URL(t,document.baseURI)}catch{throw new Error(`Invalid URL: ${t}`)}if(i.protocol!=="http:"&&i.protocol!=="https:")throw new Error(`Refused ${i.protocol} URL: only http(s) is allowed`);return this.#d(i.href),i.href}#d(t){if(!this.hasAttribute("allow-cross-origin")&&new URL(t).origin!==location.origin)throw new Error(`Refused cross-origin URL ${t} (add allow-cross-origin to permit)`)}#f(t){let i=0,s=this.parentElement?.closest("include-file");for(;s;){if(#o in s&&(i++,s.#o===t))throw new Error(`Refused include cycle: ${t} is already included by an ancestor`);s=s.parentElement?.closest("include-file")}if(i>=Eu)throw new Error(`Refused include: nesting deeper than ${Eu}`)}#g(){let t=this.getAttribute("mode")||"replace";return Gv.has(t)?t:(console.warn(`<include-file>: unknown mode "${t}", using "replace"`),"replace")}async#u(t){this.#e?.abort();let i=new AbortController;this.#e=i,this.#h(),this.setAttribute("data-loading",""),this.setAttribute("aria-busy","true"),this.removeAttribute("data-loaded"),this.removeAttribute("data-error");try{let s=this.#p(t);this.#f(s),this.#o=s;let n=await fetch(s,{signal:i.signal});if(n.url&&this.#d(n.url),!n.ok)throw new Error(`HTTP ${n.status}: ${n.statusText}`);let r=await n.text();if(i.signal.aborted)return;let a=this.hasAttribute("trusted");this.hasAttribute("allow-scripts")&&!a&&console.warn("<include-file>: allow-scripts is ignored without trusted");let o=a&&this.hasAttribute("allow-scripts"),c;if(a){let f=document.createElement("template");f.innerHTML=r,c=f.content}else c=se(r,{allowIncludeFile:!0,keepIds:!0,keepStyle:!0});let l=document.createElement("template");l.content.append(c.cloneNode(!0));let u=l.innerHTML,d=[...c.querySelectorAll("script")];o||d.forEach(f=>f.remove());let h=this.#g();h==="replace"?this.replaceChildren(c):h==="append"?this.append(c):this.prepend(c);for(let f of o?d:[]){let p=document.createElement("script");for(let m of f.attributes)p.setAttribute(m.name,m.value);p.textContent=f.textContent,f.replaceWith(p)}this.removeAttribute("data-loading"),this.removeAttribute("aria-busy"),this.setAttribute("data-loaded",""),this.#n=!0,this.#s=t,this.dispatchEvent(new CustomEvent("include-file:loaded",{bubbles:!0,detail:{src:t,url:s,html:u}}))}catch(s){if(s.name==="AbortError"||i.signal.aborted)return;this.#y(t,s)}}#y(t,i){if(this.removeAttribute("data-loading"),this.removeAttribute("aria-busy"),this.setAttribute("data-error",""),this.#g()==="replace"&&this.#i!==null&&!this.#n&&(this.innerHTML=this.#i),!this.textContent.trim()&&!this.children.length){let s=document.createElement("p");s.setAttribute("role","alert"),s.setAttribute("data-include-error",""),s.textContent=this.getAttribute("data-label-error")||Kv,this.append(s),this.#a=s}this.dispatchEvent(new CustomEvent("include-file:error",{bubbles:!0,detail:{src:t,error:i.message}}))}#h(){this.#a?.parentNode===this&&this.#a.remove(),this.#a=null}reload(){let t=this.getAttribute("src");t&&this.#u(t)}};E("include-file",Nr);ot();var ku="environment",Su="preferences",Mr={timeOfDay:!1,seasonal:!1},Yv=900*1e3,St={...Mr};function jt(e,t,i){return e+(t-e)*Math.min(1,Math.max(0,i))}var fe={_timer:null,_baseHues:null,_timeOverride:null,_monthOverride:null,async init(){let e=await x.get(ku,Su);St=e?{...Mr,...e}:{...Mr},(St.timeOfDay||St.seasonal)&&(this._captureBaseHues(),this._update(),this._startLoop()),window.addEventListener("vb:theme-change",()=>{this._hasActiveSource()&&requestAnimationFrame(()=>{this._captureBaseHues(),this._update()})})},load(){return{...St}},save(e){return St={...St,...e},x.set(ku,Su,St).catch(()=>{}),{...St}},setTimeOverride(e){this._timeOverride=e,this._hasActiveSource()&&this._update()},setMonthOverride(e){this._monthOverride=e,this._hasActiveSource()&&this._update()},setSource(e,t){let i=this.save({[e]:t});t?(this._captureBaseHues(),this._update(),this._startLoop()):this._hasActiveSource(i)?this._update():(this._clearModifiers(),this._stopLoop())},_hasActiveSource(e){let t=e||this.load();return t.timeOfDay||t.seasonal},_captureBaseHues(){let e=document.documentElement;e.style.removeProperty("--hue-primary"),e.style.removeProperty("--hue-secondary"),e.style.removeProperty("--hue-accent");let t=e.getAttribute("data-theme");if(t){let i=`[data-theme~="${t}"]`;for(let s of document.styleSheets)try{for(let n=0;n<s.cssRules.length;n++){let r=s.cssRules[n];if(r.selectorText?.includes(i)&&!r.selectorText.includes("dark")){let a=r.style?.getPropertyValue("--hue-primary");if(a){this._baseHues={primary:parseFloat(a)||260,secondary:parseFloat(r.style.getPropertyValue("--hue-secondary"))||200,accent:parseFloat(r.style.getPropertyValue("--hue-accent"))||30};return}}}}catch{}}this._baseHues={primary:260,secondary:200,accent:30}},_update(){let e=this.load(),t=0;e.timeOfDay&&(t+=this._getTimeOfDayOffset()),e.seasonal&&(t+=this._getSeasonalOffset());let i=document.documentElement;t!==0&&this._baseHues?(i.style.setProperty("--hue-primary",String(this._baseHues.primary+t)),i.style.setProperty("--hue-secondary",String(this._baseHues.secondary+t)),i.style.setProperty("--hue-accent",String(this._baseHues.accent+t*.5))):t===0&&this._clearModifiers()},_clearModifiers(){let e=document.documentElement;e.style.removeProperty("--hue-primary"),e.style.removeProperty("--hue-secondary"),e.style.removeProperty("--hue-accent")},_getTimeOfDayOffset(){let e=this._timeOverride??new Date().getHours()+new Date().getMinutes()/60;return e<5?-20:e<7?jt(-20,20,(e-5)/2):e<10?jt(20,5,(e-7)/3):e<14?jt(5,0,(e-10)/4):e<17?jt(0,-5,(e-14)/3):e<19?jt(-5,15,(e-17)/2):e<21?jt(15,-10,(e-19)/2):jt(-10,-20,(e-21)/8)},_getHemisphere(){return window.__VB_ENV_LOCATION?.hemisphere||"north"},_getSeasonalOffset(){let e=this._monthOverride??new Date().getMonth(),i=this._getHemisphere()==="south"?(e+6)%12:e;return i>=2&&i<=4?5:i>=5&&i<=7?10:i>=8&&i<=10?-5:-10},_startLoop(){this._timer||(this._timer=setInterval(()=>this._update(),Yv))},_stopLoop(){this._timer&&clearInterval(this._timer),this._timer=null}};var ts=null;function Cu(){return"0.6.1-03fa53103"}function Xv(){let e=document.querySelectorAll('script[src*="vanilla-breeze"]'),t="/cdn/sw.js";for(let i of e){let s=i.getAttribute("src");if(s){let n=s.lastIndexOf("/");if(n!==-1){t=s.slice(0,n)+"/sw.js";break}}}return t}function Tu(){return ts||(ts=navigator.serviceWorker?.ready??Promise.reject(new Error("SW not supported"))),ts}function Lu(e){return new Promise((t,i)=>{navigator.serviceWorker?.controller?xu(navigator.serviceWorker.controller,e,t,i):Tu().then(s=>{let n=s.active||s.waiting||s.installing;n?xu(n,e,t,i):i(new Error("No active service worker"))}).catch(i)})}function xu(e,t,i,s){let n=new MessageChannel;n.port1.onmessage=r=>i(r.data),n.port1.onmessageerror=()=>s(new Error("Message error")),e.postMessage({type:t},[n.port2]),setTimeout(()=>s(new Error("SW message timeout")),5e3)}async function Nu(){return Lu("GET_STATUS")}async function Mu(){return Lu("CLEAR_CACHE")}async function _u(){let e=await Tu();return await e.update(),{updated:!!e.waiting}}function Zv(){return typeof window>"u"||!("serviceWorker"in navigator)?!1:window.__VB_SERVICE_WORKER?!0:document.querySelector('meta[name="vb-service-worker"]')?.content==="true"}if(Zv()){let e=Xv();window.addEventListener("load",()=>{ts=navigator.serviceWorker.register(e).catch(t=>{console.warn("[VB] Service worker registration failed:",t)})})}ot();tr();var pe=null,it="settings",ss={motionFx:!0,sounds:!1,charShortcuts:!0},Ir=()=>({...ss,charShortcuts:Ft()}),iw=document.documentElement.hasAttribute("data-sticky"),Rr=null,sw={trigger:"Site settings",dialog:"Site settings",title:"Settings",close:"Close settings",appearance:"Appearance","color-mode":"Color mode","mode-auto":"Auto","mode-light":"Light","mode-dark":"Dark",theme:"Theme",accessibility:"Accessibility","high-contrast":"High Contrast","large-text":"Large Text",dyslexia:"Dyslexia-Friendly","char-shortcuts":"Single-Key Shortcuts",layout:"Layout",fluid:"Fluid Scaling",density:"Density","density-compact":"Compact","density-default":"Default","density-spacious":"Spacious",backdrop:"Canvas Backdrop","backdrop-style":"Style","backdrop-default":"Default","backdrop-flush":"Flush","backdrop-elevated":"Elevated",chrome:"Chrome","chrome-card":"Card","chrome-stretch":"Stretch","chrome-integrated":"Integrated","fixed-header":"Fixed Header","page-bg":"Page Background","page-bg-default":"Theme Default","page-bg-color":"Solid Color","page-bg-gradient":"Gradient","bg-color":"Color","grad-start":"Start","grad-end":"End","grad-direction":"Direction","dir-to-bottom":"Top \u2192 Bottom","dir-to-right":"Left \u2192 Right","dir-135deg":"Diagonal \u2198","dir-45deg":"Diagonal \u2197",sticky:"Sticky Navigation",effects:"Effects",motion:"Motion Effects",sounds:"Sound Effects",environment:"Environment","time-of-day":"Time-of-Day Shifts",seasonal:"Seasonal Tinting",system:"System","sw-label":"Service Worker:","sw-checking":"checking\u2026","sw-unsupported":"Not supported","sw-active":"Active ({n} cached files)","sw-unregistered":"Not registered","clear-cache":"Clear Cache",clearing:"Clearing\u2026",cleared:"Cache cleared","check-update":"Check for Updates",checking:"Checking\u2026","update-available":"Update available","up-to-date":"Up to date",failed:"Failed",reset:"Reset to Defaults","reset-confirm":"Reset all settings to defaults?","reset-yes":"Reset","reset-cancel":"Cancel","reset-done":"Settings reset to defaults"},nw='<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/><circle cx="12" cy="12" r="3"/></svg>';function Ct(e){return String(e).replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}async function Pr(e){let t=document.documentElement;e?t.dataset.sticky="":delete t.dataset.sticky;try{let i=await Promise.resolve().then(()=>(Ru(),Iu));e?i.initStickyManager():i.destroyStickyManager()}catch{}}var Fr=class extends k{#t=null;#e=null;#i=!1;#n=!1;#s=0;#o="";#r=new Set;#a=[];#c=[];#l={...ss,charShortcuts:Ft()};#m=document.documentElement.hasAttribute("data-sticky");setup(){let t=++this.#s;return this.#o||=crypto.randomUUID().slice(0,8),this.#N(),this.#_(),this.#W(),this.listen(window,"vb:theme-change",this.#V),this.listen(window,"vb:extensions-change",this.#V),this.listen(window,"vb:a11y-themes-change",this.#V),this.#n&&(this.#n=!1,this.open()),this.#g().then(()=>{this.#p(t)&&this.#W()}),!0}teardown(){this.#s++;for(let t of this.#a)clearTimeout(t);this.#a=[],this.#i=!1,this.removeAttribute("open"),this.#t?.setAttribute("aria-expanded","false"),this.#e?.remove(),this.#e=null}#p(t){return t===this.#s&&this.isConnected}#d(t,i={}){let s=this.getAttribute(`data-label-${t}`)??sw[t]??t;for(let[n,r]of Object.entries(i))s=s.replaceAll(`{${n}}`,String(r));return s}#f(t){return Ct(this.#d(t))}get data(){return{a11yThemes:[...this.#c],extensions:{...this.#l},sticky:this.#m}}set data(t){if(!t||typeof t!="object")return;let i=[],s=[];Array.isArray(t.a11yThemes)&&(this.#c=t.a11yThemes.map(String),s.push("a11y"),i.push(x.set(it,"a11y",this.#c)),this.#K(),window.dispatchEvent(new CustomEvent("vb:a11y-themes-change",{detail:[...this.#c]}))),t.extensions&&typeof t.extensions=="object"&&(this.#l={...Ir(),...t.extensions},s.push("extensions"),i.push(x.set(it,"extensions",this.#l)),this.#et()),t.sticky!=null&&(this.#m=!!t.sticky,s.push("sticky"),i.push(x.set(it,"sticky",this.#m?"on":"off")),Pr(this.#m));for(let n of s)this.#r.add(n);this.#e&&this.#W(),Promise.allSettled(i).then(()=>{for(let n of s)this.#r.delete(n);this.#e&&this.#W(),this.dispatchEvent(new CustomEvent("settings-panel:data-changed",{detail:{data:this.data,source:"property"},bubbles:!0}))})}async#g(){let[t,i,s]=await Promise.all([x.get(it,"a11y"),x.get(it,"extensions"),x.get(it,"sticky")]);Rr===null&&(Rr=iw&&s!=="on"),this.#r.has("a11y")||(this.#c=Array.isArray(t)?t:[]),this.#r.has("extensions")||(this.#l={...Ir(),...i??{}}),this.#r.has("sticky")||(this.#m=document.documentElement.hasAttribute("data-sticky"))}#u(t){return t!==""&&t!==void 0}#y(t){return t==="compact"?"compact":t==="spacious"?"spacious":"default"}#h(t,i){return t?i==="compact"?"compact":i==="spacious"?"spacious":"default":""}#w(t){return t!==""&&t!==void 0}#A(t){return t==="flush"?"flush":t==="elevated"?"elevated":"default"}#S(t,i){return t?i==="flush"?"flush":i==="elevated"?"elevated":"default":""}#b(t){if(!t)return"card";let i=t.split(/\s+/);for(let s of i)if(s==="stretch"||s==="integrated")return s;return"card"}#k(t){return t?t.split(/\s+/).includes("fixed"):!1}#E(t,i){let s=[];return t&&t!=="card"&&s.push(t),i&&s.push("fixed"),s.join(" ")||"card"}#v(t){return this.#e?.querySelector(t)??null}#N(){this.#t=this.querySelector(":scope > [data-trigger]")||this.querySelector(":scope > button"),this.#t||(this.#t=document.createElement("button"),this.#t.setAttribute("type","button"),this.#t.setAttribute("data-trigger",""),this.#t.setAttribute("data-minted",""),this.#t.className="settings-trigger",this.#t.innerHTML=nw,this.prepend(this.#t)),this.#t.hasAttribute("data-minted")&&this.#t.setAttribute("aria-label",this.#d("trigger")),this.#t.setAttribute("aria-haspopup","dialog"),this.#t.setAttribute("aria-expanded","false"),this.#e=document.createElement("div"),this.#e.className="settings-panel",this.#e.setAttribute("role","dialog"),this.#e.setAttribute("aria-label",this.#d("dialog")),this.#e.tabIndex=-1;let t=`settings-panel-${this.#o}`;this.#e.id=t,this.#t.setAttribute("aria-controls",t),this.#e.innerHTML=this.#x(),this.appendChild(this.#e)}#x(){let{mode:t,brand:i,fluid:s,backdrop:n,backdropChrome:r,pageBgType:a,pageBgColor:o,pageBgGradStart:c,pageBgGradEnd:l,pageBgGradDir:u}=I.getState(),d=[...this.#c],h={...this.#l},f=fe.load(),p=this.#u(s),m=this.#y(s),g=this.#w(n),b=this.#A(n),A=this.#o,v=S=>this.#f(S),$=(S,L,F,Ie,at,te={})=>`
346
+ <fieldset data-segmented>
347
+ <legend class="visually-hidden">${L}</legend>
348
+ ${F.map(pt=>`
349
+ <label>
350
+ <input type="radio" name="settings-${S}-${A}" data-field="${S}" value="${pt}" ${Ie===pt?"checked":""} />
351
+ ${te[pt]?`<icon-wc name="${te[pt]}" size="xs"></icon-wc> `:""}${v(`${at}-${pt}`)}
352
+ </label>
353
+ `).join("")}
354
+ </fieldset>`,N=(S,L,F)=>`
355
+ <label class="toggle-row">
356
+ <span>${v(S)}</span>
357
+ <input type="checkbox" name="settings-${S}-${A}" data-switch="s" ${L} ${F?"checked":""} />
358
+ </label>`,j=[["to bottom","dir-to-bottom"],["to right","dir-to-right"],["135deg","dir-135deg"],["45deg","dir-45deg"]];return`
386
359
  <header class="settings-header">
387
- <strong>Settings</strong>
388
- <button type="button" class="settings-close" aria-label="Close settings">
360
+ <strong>${v("title")}</strong>
361
+ <button type="button" class="settings-close" aria-label="${v("close")}">
389
362
  <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg>
390
363
  </button>
391
364
  </header>
392
365
 
393
366
  <div class="settings-body">
394
- <!-- Appearance -->
395
- <details name="settings" open>
396
- <summary>Appearance</summary>
367
+ <details name="settings-${A}" open>
368
+ <summary>${v("appearance")}</summary>
397
369
  <div class="settings-section">
398
- <span class="settings-label">Color Mode</span>
399
- <fieldset data-segmented>
400
- <legend class="visually-hidden">Color mode</legend>
401
- ${[{id:"auto",name:"Auto",icon:"monitor"},{id:"light",name:"Light",icon:"sun"},{id:"dark",name:"Dark",icon:"moon"}].map(A=>`
402
- <label>
403
- <input type="radio" name="settings-mode" value="${A.id}" ${t===A.id?"checked":""} />
404
- <icon-wc name="${A.icon}" size="xs"></icon-wc> ${A.name}
405
- </label>
406
- `).join("")}
407
- </fieldset>
408
-
409
- <label class="settings-label" for="settings-theme">Theme</label>
410
- <select id="settings-theme" name="settings-theme">
411
- ${Ha.map(A=>`
412
- <optgroup label="${A.label}">
413
- ${A.themes.map(L=>`
414
- <option value="${L.id}" ${i===L.id?"selected":""}>${L.name}</option>
370
+ <span class="settings-label" aria-hidden="true">${v("color-mode")}</span>
371
+ ${$("mode",v("color-mode"),["auto","light","dark"],t,"mode",{auto:"monitor",light:"sun",dark:"moon"})}
372
+
373
+ <label class="settings-label" for="settings-theme-${A}">${v("theme")}</label>
374
+ <select id="settings-theme-${A}" name="settings-theme-${A}" data-field="theme">
375
+ ${sl.map(S=>`
376
+ <optgroup label="${Ct(S.label)}">
377
+ ${S.themes.map(L=>`
378
+ <option value="${Ct(L.id)}" ${i===L.id?"selected":""}>${Ct(L.name)}</option>
415
379
  `).join("")}
416
380
  </optgroup>
417
381
  `).join("")}
@@ -419,198 +383,141 @@ svg {
419
383
  </div>
420
384
  </details>
421
385
 
422
- <!-- Accessibility -->
423
- <details name="settings">
424
- <summary>Accessibility</summary>
386
+ <details name="settings-${A}">
387
+ <summary>${v("accessibility")}</summary>
425
388
  <div class="settings-section">
426
- <label class="toggle-row">
427
- <span>High Contrast</span>
428
- <input type="checkbox" name="a11y-high-contrast" data-switch="sm" data-a11y="a11y-high-contrast" ${d.includes("a11y-high-contrast")?"checked":""} />
429
- </label>
430
- <label class="toggle-row">
431
- <span>Large Text</span>
432
- <input type="checkbox" name="a11y-large-text" data-switch="sm" data-a11y="a11y-large-text" ${d.includes("a11y-large-text")?"checked":""} />
433
- </label>
434
- <label class="toggle-row">
435
- <span>Dyslexia-Friendly</span>
436
- <input type="checkbox" name="a11y-dyslexia" data-switch="sm" data-a11y="a11y-dyslexia" ${d.includes("a11y-dyslexia")?"checked":""} />
437
- </label>
389
+ ${N("high-contrast",'data-a11y="a11y-high-contrast"',d.includes("a11y-high-contrast"))}
390
+ ${N("large-text",'data-a11y="a11y-large-text"',d.includes("a11y-large-text"))}
391
+ ${N("dyslexia",'data-a11y="a11y-dyslexia"',d.includes("a11y-dyslexia"))}
392
+ ${N("char-shortcuts",'data-ext="charShortcuts"',h.charShortcuts!==!1)}
438
393
  </div>
439
394
  </details>
440
395
 
441
- <!-- Layout -->
442
- <details name="settings">
443
- <summary>Layout</summary>
396
+ <details name="settings-${A}">
397
+ <summary>${v("layout")}</summary>
444
398
  <div class="settings-section">
445
- <label class="toggle-row">
446
- <span>Fluid Scaling</span>
447
- <input type="checkbox" name="fluid-scaling" data-switch="sm" data-fluid-toggle ${p?"checked":""} />
448
- </label>
399
+ ${N("fluid","data-fluid-toggle",p)}
449
400
  <div class="density-row" ${p?"":"hidden"}>
450
- <span class="settings-label">Density</span>
451
- <fieldset data-segmented>
452
- <legend class="visually-hidden">Density</legend>
453
- ${["compact","default","spacious"].map(A=>`
454
- <label>
455
- <input type="radio" name="settings-density" value="${A}" ${f===A?"checked":""} />
456
- ${A[0].toUpperCase()+A.slice(1)}
457
- </label>
458
- `).join("")}
459
- </fieldset>
401
+ <span class="settings-label" aria-hidden="true">${v("density")}</span>
402
+ ${$("density",v("density"),["compact","default","spacious"],m,"density")}
460
403
  </div>
461
404
 
462
- <label class="toggle-row">
463
- <span>Canvas Backdrop</span>
464
- <input type="checkbox" name="canvas-backdrop" data-switch="sm" data-backdrop-toggle ${m?"checked":""} />
465
- </label>
466
- <div class="backdrop-row" ${m?"":"hidden"}>
467
- <span class="settings-label">Style</span>
468
- <fieldset data-segmented>
469
- <legend class="visually-hidden">Backdrop style</legend>
470
- ${["default","flush","elevated"].map(A=>`
471
- <label>
472
- <input type="radio" name="settings-backdrop" value="${A}" ${v===A?"checked":""} />
473
- ${A[0].toUpperCase()+A.slice(1)}
474
- </label>
475
- `).join("")}
476
- </fieldset>
405
+ ${N("backdrop","data-backdrop-toggle",g)}
406
+ <div class="backdrop-row" ${g?"":"hidden"}>
407
+ <span class="settings-label" aria-hidden="true">${v("backdrop-style")}</span>
408
+ ${$("backdrop",v("backdrop-style"),["default","flush","elevated"],b,"backdrop")}
477
409
  </div>
478
- <div class="backdrop-row" ${m?"":"hidden"}>
479
- <span class="settings-label">Chrome</span>
480
- <fieldset data-segmented>
481
- <legend class="visually-hidden">Backdrop chrome mode</legend>
482
- ${["card","stretch","integrated"].map(A=>`
483
- <label>
484
- <input type="radio" name="settings-backdrop-chrome" value="${A}" ${this.#u(r)===A?"checked":""} />
485
- ${A[0].toUpperCase()+A.slice(1)}
486
- </label>
487
- `).join("")}
488
- </fieldset>
410
+ <div class="backdrop-row" ${g?"":"hidden"}>
411
+ <span class="settings-label" aria-hidden="true">${v("chrome")}</span>
412
+ ${$("chrome",v("chrome"),["card","stretch","integrated"],this.#b(r),"chrome")}
489
413
  </div>
490
- <div class="backdrop-row" ${m?"":"hidden"}>
491
- <label class="toggle-row">
492
- <span>Fixed Header</span>
493
- <input type="checkbox" name="settings-backdrop-fixed" data-switch="sm" data-backdrop-fixed ${this.#g(r)?"checked":""} />
494
- </label>
414
+ <div class="backdrop-row" ${g?"":"hidden"}>
415
+ ${N("fixed-header","data-backdrop-fixed",this.#k(r))}
495
416
  </div>
496
- <div class="backdrop-row" ${m?"":"hidden"}>
497
- <label class="settings-label" for="settings-page-bg">Page Background</label>
498
- <select id="settings-page-bg" name="settings-page-bg">
499
- <option value="" ${a===""?"selected":""}>Theme Default</option>
500
- <option value="color" ${a==="color"?"selected":""}>Solid Color</option>
501
- <option value="gradient" ${a==="gradient"?"selected":""}>Gradient</option>
417
+ <div class="backdrop-row" ${g?"":"hidden"}>
418
+ <label class="settings-label" for="settings-page-bg-${A}">${v("page-bg")}</label>
419
+ <select id="settings-page-bg-${A}" name="settings-page-bg-${A}" data-field="page-bg">
420
+ <option value="" ${a===""?"selected":""}>${v("page-bg-default")}</option>
421
+ <option value="color" ${a==="color"?"selected":""}>${v("page-bg-color")}</option>
422
+ <option value="gradient" ${a==="gradient"?"selected":""}>${v("page-bg-gradient")}</option>
502
423
  </select>
503
424
  </div>
504
- <div class="page-bg-color-row backdrop-row" ${a==="color"&&m?"":"hidden"}>
505
- <span class="settings-label">Color</span>
506
- <input type="color" name="settings-page-bg-color" value="${o||"#1a1a2e"}" />
425
+ <div class="page-bg-color-row backdrop-row" ${a==="color"&&g?"":"hidden"}>
426
+ <label class="settings-label" for="settings-bg-color-${A}">${v("bg-color")}</label>
427
+ <input type="color" id="settings-bg-color-${A}" name="settings-bg-color-${A}" data-field="page-bg-color" value="${Ct(o||"#1a1a2e")}" />
507
428
  </div>
508
- <div class="page-bg-grad-row backdrop-row" ${a==="gradient"&&m?"":"hidden"}>
509
- <span class="settings-label">Start</span>
510
- <input type="color" name="settings-page-bg-grad-start" value="${c||"#1a1a2e"}" />
511
- <span class="settings-label">End</span>
512
- <input type="color" name="settings-page-bg-grad-end" value="${l||"#16213e"}" />
429
+ <div class="page-bg-grad-row backdrop-row" ${a==="gradient"&&g?"":"hidden"}>
430
+ <label class="settings-label" for="settings-grad-start-${A}">${v("grad-start")}</label>
431
+ <input type="color" id="settings-grad-start-${A}" name="settings-grad-start-${A}" data-field="grad-start" value="${Ct(c||"#1a1a2e")}" />
432
+ <label class="settings-label" for="settings-grad-end-${A}">${v("grad-end")}</label>
433
+ <input type="color" id="settings-grad-end-${A}" name="settings-grad-end-${A}" data-field="grad-end" value="${Ct(l||"#16213e")}" />
513
434
  </div>
514
- <div class="page-bg-grad-dir-row backdrop-row" ${a==="gradient"&&m?"":"hidden"}>
515
- <span class="settings-label">Direction</span>
516
- <select name="settings-page-bg-grad-dir">
517
- <option value="to bottom" ${(u||"to bottom")==="to bottom"?"selected":""}>Top \u2192 Bottom</option>
518
- <option value="to right" ${u==="to right"?"selected":""}>Left \u2192 Right</option>
519
- <option value="135deg" ${u==="135deg"?"selected":""}>Diagonal \u2198</option>
520
- <option value="45deg" ${u==="45deg"?"selected":""}>Diagonal \u2197</option>
435
+ <div class="page-bg-grad-dir-row backdrop-row" ${a==="gradient"&&g?"":"hidden"}>
436
+ <label class="settings-label" for="settings-grad-dir-${A}">${v("grad-direction")}</label>
437
+ <select id="settings-grad-dir-${A}" name="settings-grad-dir-${A}" data-field="grad-dir">
438
+ ${j.map(([S,L])=>`<option value="${S}" ${(u||"to bottom")===S?"selected":""}>${v(L)}</option>`).join("")}
521
439
  </select>
522
440
  </div>
523
441
 
524
- <label class="toggle-row">
525
- <span>Sticky Navigation</span>
526
- <input type="checkbox" name="sticky-nav" data-switch="sm" data-sticky-toggle ${this.#m()?"checked":""} />
527
- </label>
442
+ ${N("sticky","data-sticky-toggle",this.#m)}
528
443
  </div>
529
444
  </details>
530
445
 
531
- <!-- Effects -->
532
- <details name="settings">
533
- <summary>Effects</summary>
446
+ <details name="settings-${A}">
447
+ <summary>${v("effects")}</summary>
534
448
  <div class="settings-section">
535
- <label class="toggle-row">
536
- <span>Motion Effects</span>
537
- <input type="checkbox" name="ext-motionFx" data-switch="sm" data-ext="motionFx" ${h.motionFx?"checked":""} />
538
- </label>
539
- <label class="toggle-row">
540
- <span>Sound Effects</span>
541
- <input type="checkbox" name="ext-sounds" data-switch="sm" data-ext="sounds" ${h.sounds?"checked":""} />
542
- </label>
449
+ ${N("motion",'data-ext="motionFx"',!!h.motionFx)}
450
+ ${N("sounds",'data-ext="sounds"',!!h.sounds)}
543
451
  </div>
544
452
  </details>
545
453
 
546
- <!-- Environment -->
547
- <details name="settings">
548
- <summary>Environment</summary>
454
+ <details name="settings-${A}">
455
+ <summary>${v("environment")}</summary>
549
456
  <div class="settings-section">
550
- <label class="toggle-row">
551
- <span>Time-of-Day Shifts</span>
552
- <input type="checkbox" name="env-timeOfDay" data-switch="sm" data-env="timeOfDay" ${this.#U().timeOfDay?"checked":""} />
553
- </label>
554
- <label class="toggle-row">
555
- <span>Seasonal Tinting</span>
556
- <input type="checkbox" name="env-seasonal" data-switch="sm" data-env="seasonal" ${this.#U().seasonal?"checked":""} />
557
- </label>
457
+ ${N("time-of-day",'data-env="timeOfDay"',!!f.timeOfDay)}
458
+ ${N("seasonal",'data-env="seasonal"',!!f.seasonal)}
558
459
  </div>
559
460
  </details>
560
461
 
561
- <!-- System -->
562
- <details name="settings">
563
- <summary>System</summary>
462
+ <details name="settings-${A}">
463
+ <summary>${v("system")}</summary>
564
464
  <div class="settings-section system-info">
565
- <p class="system-version">Vanilla Breeze <code>v${Do()}</code></p>
566
- <p class="system-sw-status" data-sw-status>Service Worker: <span>checking\u2026</span></p>
465
+ <p class="system-version">Vanilla Breeze <code>v${Ct(Cu())}</code></p>
466
+ <p class="system-sw-status" data-sw-status role="status">${v("sw-label")} <span>${v("sw-checking")}</span></p>
567
467
  <footer class="system-actions">
568
- <button type="button" data-action="clear-cache">Clear Cache</button>
569
- <button type="button" data-action="check-update">Check for Updates</button>
468
+ <button type="button" data-action="clear-cache">${v("clear-cache")}</button>
469
+ <button type="button" data-action="check-update">${v("check-update")}</button>
570
470
  </footer>
571
471
  </div>
572
472
  </details>
573
473
  </div>
574
474
 
575
475
  <footer class="settings-footer">
576
- <button type="button" class="settings-reset">Reset to Defaults</button>
476
+ <button type="button" class="settings-reset">${v("reset")}</button>
477
+ <p class="settings-reset-confirm" role="group" aria-labelledby="settings-reset-q-${A}" hidden>
478
+ <span id="settings-reset-q-${A}">${v("reset-confirm")}</span>
479
+ <button type="button" data-action="reset-confirm">${v("reset-yes")}</button>
480
+ <button type="button" data-action="reset-cancel">${v("reset-cancel")}</button>
481
+ </p>
577
482
  </footer>
578
- `}#w(){this.#e.addEventListener("click",this.#y),this.listen(document,"click",this.#E),this.listen(document,"keydown",this.#v),this.#t.querySelector(".settings-close")?.addEventListener("click",()=>this.close()),this.#t.querySelectorAll('input[name="settings-mode"]').forEach(t=>{t.addEventListener("change",this.#C)}),this.#t.querySelector("#settings-theme")?.addEventListener("change",this.#I),this.#t.querySelector("input[data-fluid-toggle]")?.addEventListener("change",this.#N),this.#t.querySelectorAll('input[name="settings-density"]').forEach(t=>{t.addEventListener("change",this.#_)}),this.#t.querySelector("input[data-backdrop-toggle]")?.addEventListener("change",this.#O),this.#t.querySelectorAll('input[name="settings-backdrop"]').forEach(t=>{t.addEventListener("change",this.#F)}),this.#t.querySelectorAll('input[name="settings-backdrop-chrome"]').forEach(t=>{t.addEventListener("change",this.#D)}),this.#t.querySelector("input[data-backdrop-fixed]")?.addEventListener("change",this.#L),this.#t.querySelector("input[data-sticky-toggle]")?.addEventListener("change",this.#B),this.#t.querySelector('[name="settings-page-bg"]')?.addEventListener("change",this.#$),this.#t.querySelector('[name="settings-page-bg-color"]')?.addEventListener("input",this.#S),this.#t.querySelector('[name="settings-page-bg-grad-start"]')?.addEventListener("input",this.#S),this.#t.querySelector('[name="settings-page-bg-grad-end"]')?.addEventListener("input",this.#S),this.#t.querySelector('[name="settings-page-bg-grad-dir"]')?.addEventListener("change",this.#S),this.#t.querySelectorAll("input[data-a11y]").forEach(t=>{t.addEventListener("change",this.#T)}),this.#t.querySelectorAll("input[data-ext]").forEach(t=>{t.addEventListener("change",this.#q)}),this.#t.querySelectorAll("input[data-env]").forEach(t=>{t.addEventListener("change",this.#j)}),this.#t.querySelector(".settings-reset")?.addEventListener("click",this.#M),this.#t.querySelector('[data-action="clear-cache"]')?.addEventListener("click",this.#tt),this.#t.querySelector('[data-action="check-update"]')?.addEventListener("click",this.#Q),this.#J()}#y=t=>{t.stopPropagation(),this.toggle()};#E=t=>{this.#i&&!this.contains(t.target)&&this.close()};#v=t=>{t.key==="Escape"&&this.#i&&(t.preventDefault(),this.close(),this.#e?.focus())};#C=t=>{T.setMode(t.target.value)};#I=async t=>{let i=t.target;i.disabled=!0;try{await T.setBrand(i.value),this.#V()}catch{console.warn("[VB] Theme load failed, using default")}finally{i.disabled=!1}};#N=t=>{let i=t.target.checked,s=this.#c(T.getState().fluid)||"default";T.setFluid(this.#p(i,s)),this.#z(i)};#_=t=>{T.setFluid(this.#p(!0,t.target.value))};#O=t=>{let i=t.target.checked,s=this.#d(T.getState().backdrop)||"default";T.setBackdrop(this.#f(i,s)),this.#P(i)};#F=t=>{T.setBackdrop(this.#f(!0,t.target.value))};#D=t=>{let i=this.#g(T.getState().backdropChrome);T.setBackdropChrome(this.#b(t.target.value,i))};#L=t=>{let i=this.#u(T.getState().backdropChrome);T.setBackdropChrome(this.#b(i,t.target.checked))};#B=async t=>{let i=t.target.checked;this.#n=i,await k.set(U,"sticky",i?"on":"off");let s=document.querySelector("header");if(i){document.documentElement.dataset.sticky="",s&&(s.dataset.sticky="");let{initStickyManager:n}=await Promise.resolve().then(()=>(Ve(),ze));n()}else{delete document.documentElement.dataset.sticky,s&&delete s.dataset.sticky;let{destroyStickyManager:n}=await Promise.resolve().then(()=>(Ve(),ze));n()}};#$=t=>{let i=t.target.value;if(this.#H(i),i==="color"){let s=this.#t.querySelector('[name="settings-page-bg-color"]')?.value||"#1a1a2e";T.setPageBg({type:i,color:s})}else if(i==="gradient"){let s=this.#t.querySelector('[name="settings-page-bg-grad-start"]')?.value||"#1a1a2e",n=this.#t.querySelector('[name="settings-page-bg-grad-end"]')?.value||"#16213e",r=this.#t.querySelector('[name="settings-page-bg-grad-dir"]')?.value||"to bottom";T.setPageBg({type:i,gradStart:s,gradEnd:n,gradDir:r})}else T.setPageBg({})};#S=()=>{let t=this.#t.querySelector('[name="settings-page-bg"]')?.value||"";if(t==="color"){let i=this.#t.querySelector('[name="settings-page-bg-color"]')?.value||"";T.setPageBg({type:t,color:i})}else if(t==="gradient"){let i=this.#t.querySelector('[name="settings-page-bg-grad-start"]')?.value||"",s=this.#t.querySelector('[name="settings-page-bg-grad-end"]')?.value||"",n=this.#t.querySelector('[name="settings-page-bg-grad-dir"]')?.value||"to bottom";T.setPageBg({type:t,gradStart:i,gradEnd:s,gradDir:n})}};#T=t=>{let i=t.target.dataset.a11y,s=this.#G();if(t.target.checked&&!s.includes(i))s.push(i);else if(!t.target.checked){let n=s.indexOf(i);n!==-1&&s.splice(n,1)}this.#K(s),this.#Y(),window.dispatchEvent(new CustomEvent("vb:a11y-themes-change",{detail:s}))};#q=t=>{let i=t.target.dataset.ext,s=t.target.checked;this.#W(i,s),this.#Z()};#j=t=>{let i=t.target.dataset.env,s=t.target.checked;Zt.setSource(i,s)};#M=()=>{confirm("Reset all settings to defaults?")&&(T.reset(),this.#K([]),this.#Y(),window.dispatchEvent(new CustomEvent("vb:a11y-themes-change",{detail:[]})),this.#r={...Jt},k.remove(U,"extensions").catch(()=>{}),this.#Z(),this.#n=!1,k.remove(U,"sticky").catch(()=>{}),delete document.documentElement.dataset.sticky,Promise.resolve().then(()=>(Ve(),ze)).then(t=>t.destroyStickyManager()).catch(()=>{}),Zt.setSource("timeOfDay",!1),Zt.setSource("seasonal",!1),this.#R())};#x=()=>{this.#R()};#R(){let{mode:t,brand:i,fluid:s,backdrop:n,backdropChrome:r,pageBgType:a,pageBgColor:o,pageBgGradStart:c,pageBgGradEnd:l,pageBgGradDir:u}=T.getState(),d=this.#G(),h=this.#X(),p=this.#l(s),f=this.#c(s),m=this.#h(n),v=this.#d(n),A=this.#t.querySelector(`input[name="settings-mode"][value="${t}"]`);A&&(A.checked=!0);let L=this.#t.querySelector("#settings-theme");L&&(L.value=i||"default");let N=this.#t.querySelector("input[data-fluid-toggle]");N&&(N.checked=p);let K=this.#t.querySelector(`input[name="settings-density"][value="${f}"]`);K&&(K.checked=!0),this.#z(p);let P=this.#t.querySelector("input[data-backdrop-toggle]");P&&(P.checked=m);let X=this.#t.querySelector(`input[name="settings-backdrop"][value="${v}"]`);X&&(X.checked=!0);let eh=this.#u(r),La=this.#t.querySelector(`input[name="settings-backdrop-chrome"][value="${eh}"]`);La&&(La.checked=!0);let Ma=this.#t.querySelector("input[data-backdrop-fixed]");Ma&&(Ma.checked=this.#g(r)),this.#P(m);let Na=this.#t.querySelector('[name="settings-page-bg"]');Na&&(Na.value=a||"");let _a=this.#t.querySelector('[name="settings-page-bg-color"]');_a&&o&&(_a.value=o);let Da=this.#t.querySelector('[name="settings-page-bg-grad-start"]');Da&&c&&(Da.value=c);let $a=this.#t.querySelector('[name="settings-page-bg-grad-end"]');$a&&l&&($a.value=l);let Ia=this.#t.querySelector('[name="settings-page-bg-grad-dir"]');Ia&&u&&(Ia.value=u),m&&this.#H(a||""),this.#t.querySelectorAll("input[data-a11y]").forEach(Rt=>{let st=Rt;st.checked=d.includes(st.dataset.a11y||"")}),this.#t.querySelectorAll("input[data-ext]").forEach(Rt=>{let st=Rt,ke=st.dataset.ext,sh=h[ke];st.checked=sh??Jt[ke]});let qa=this.#t.querySelector("input[data-sticky-toggle]");qa&&(qa.checked=this.#m());let ih=this.#U();this.#t.querySelectorAll("input[data-env]").forEach(Rt=>{let st=Rt,ke=st.dataset.env;st.checked=ih[ke]??!1})}#z(t){let i=this.#t.querySelector(".density-row");i&&(i.hidden=!t)}#P(t){if(this.#t.querySelectorAll(".backdrop-row").forEach(i=>{i.hidden=!t}),t){let i=this.#t.querySelector('[name="settings-page-bg"]')?.value||"";this.#H(i)}}#H(t){let i=this.#t.querySelector(".page-bg-color-row"),s=this.#t.querySelector(".page-bg-grad-row"),n=this.#t.querySelector(".page-bg-grad-dir-row");i&&(i.hidden=t!=="color"),s&&(s.hidden=t!=="gradient"),n&&(n.hidden=t!=="gradient")}#G(){return[...this.#s]}#K(t){this.#s=[...t],k.set(U,"a11y",this.#s).catch(()=>{})}#Y(){let t=this.#G(),{brand:i}=T.getState(),s=document.documentElement,n=i!=="default"?[i,...t]:[...t];n.length?s.dataset.theme=n.join(" "):delete s.dataset.theme}#V(){this.#Y()}#U(){return Zt.load()}#X(){return{...this.#r}}#W(t,i){this.#r={...this.#r,[t]:i},k.set(U,"extensions",this.#r).catch(()=>{})}async#Z(){let t=this.#X(),i=document.documentElement;t.motionFx?delete i.dataset.motionReduced:i.dataset.motionReduced="",t.sounds?(Dt||(Dt=(await Promise.resolve().then(()=>(jo(),Ro))).SoundManager),Dt.init(),Dt.enable()):Dt&&Dt.disable(),window.dispatchEvent(new CustomEvent("vb:extensions-change",{detail:t}))}async#J(){let t=this.#t.querySelector("[data-sw-status] span");if(t){if(!("serviceWorker"in navigator)){t.textContent="Not supported";return}try{let s=(await qo()).cachedURLs?.length??0;t.textContent=`Active (${s} cached files)`}catch{t.textContent="Not registered"}}}#tt=async t=>{let i=t.target;i.disabled=!0,i.textContent="Clearing\u2026";try{await Bo(),i.textContent="Cleared!",this.#J(),setTimeout(()=>{i.textContent="Clear Cache",i.disabled=!1},2e3)}catch{i.textContent="Failed",setTimeout(()=>{i.textContent="Clear Cache",i.disabled=!1},2e3)}};#Q=async t=>{let i=t.target;i.disabled=!0,i.textContent="Checking\u2026";try{let{updated:s}=await Oo();i.textContent=s?"Update available!":"Up to date",setTimeout(()=>{i.textContent="Check for Updates",i.disabled=!1},2e3)}catch{i.textContent="Failed",setTimeout(()=>{i.textContent="Check for Updates",i.disabled=!1},2e3)}};open(){this.#i||(this.#i=!0,this.setAttribute("open",""),this.#e?.setAttribute("aria-expanded","true"),this.#R(),this.#et())}#et(){let t=this.getBoundingClientRect(),i=this.#t;i.style.removeProperty("top"),i.style.removeProperty("bottom"),i.style.removeProperty("left"),i.style.removeProperty("right");let s=i.getBoundingClientRect(),n=window.innerWidth,r=window.innerHeight,a=t.top,o=r-t.bottom;a<s.height&&o>a?(i.style.top="calc(100% + 8px)",i.style.bottom="auto"):(i.style.bottom="calc(100% + 8px)",i.style.top="auto");let c=n-t.right,l=t.left,u=s.width;t.right<u&&l<c?(i.style.left="0",i.style.right="auto"):(i.style.right="0",i.style.left="auto")}close(){this.#i&&(this.#i=!1,this.removeAttribute("open"),this.#e?.setAttribute("aria-expanded","false"))}toggle(){this.#i?this.close():this.open()}};b("settings-panel",Is);et();$t();var Lp={update:"package",alert:"alert-triangle",watch:"eye",system:"settings",message:"mail",stewardship:"shield"};function F(e){return String(e??"").replace(/[&<>"']/g,t=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[t])}var Bs=class extends y{#e="panel";#t=null;#i=null;#s=null;#r=null;#n=new Set;#a=[];#o=!1;#l=null;#c=new Set;#p="all";#m=[];setup(){return this.#e=this.getAttribute("mode")==="banner"?"banner":"panel",this.#e==="banner"?this.#h():this.#f(),!0}teardown(){this.#l!=null&&(clearInterval(this.#l),this.#l=null)}get notifications(){return[...this.#a]}set notifications(t){this.#e==="panel"&&(this.#a=Array.isArray(t)?t:[],typeof this.#w=="function"&&this.#w(),typeof this.#E=="function"&&this.#E(),this.dispatchEvent(new CustomEvent("notification-wc:notifications-changed",{detail:{notifications:this.#a,source:"property"},bubbles:!0})))}async#h(){let t=this.getAttribute("persist");if(t||console.warn("[notification-wc] banner mode requires a persist attribute"),this.dataset.mode="banner",this.dataset.variant=this.getAttribute("variant")||"info",this.dataset.position=this.getAttribute("position")||"top",t){let s=Number(this.getAttribute("expires")??""),n=Number.isFinite(s)&&s>0?s*864e5:void 0,r=await k.get("notifications",t,n?{maxAge:n}:void 0);if(r&&r.dismissed){this.hidden=!0;return}}let i=this.querySelector('[value="dismiss"], [data-dismiss]');i&&(this.#t=i,this.listen(i,"click",this.#d))}#d=async t=>{t.preventDefault();let i=this.getAttribute("persist");i&&await k.set("notifications",i,{dismissed:!0}),this.dispatchEvent(new CustomEvent("notification-wc:dismiss",{bubbles:!0,composed:!0,detail:{id:i}})),this.hidden=!0};async#f(){if(this.dataset.mode="panel",await this.#u(),this.#b(),this.#k(),await this.#v(),this.#E(),this.listen(document,"click",this.#F),this.listen(document,"keydown",this.#D),this.listen(document,"page-watch:add",()=>this.#v()),this.listen(document,"page-watch:remove",()=>this.#v()),this.getAttribute("src")){await this.#T();let t=Number(this.getAttribute("poll"));Number.isFinite(t)&&t>0&&(this.#l=setInterval(()=>this.#T(),t))}}async#u(){let t=this.getAttribute("storage-key")||"notifications",i=await k.get(t,"read-ids");Array.isArray(i)&&(this.#n=new Set(i.filter(s=>typeof s=="string")))}async#g(){let t=this.getAttribute("storage-key")||"notifications";await k.set(t,"read-ids",Array.from(this.#n))}#b(){if(this.#i=this.querySelector(":scope > [data-trigger]"),this.#i){let t=this.#i.querySelector(".notification-badge");t||(t=document.createElement("span"),t.className="notification-badge",t.hidden=!0,this.#i.appendChild(t))}else{let t=document.createElement("button");t.type="button",t.setAttribute("data-trigger",""),t.className="notification-trigger",t.setAttribute("aria-label","Notifications"),t.innerHTML='<icon-wc name="bell" size="sm"></icon-wc><span class="notification-badge" hidden>0</span>',this.#i=t,this.prepend(t)}this.#r=this.#i.querySelector(".notification-badge"),this.#i.setAttribute("aria-haspopup","dialog"),this.#i.setAttribute("aria-expanded","false"),this.listen(this.#i,"click",this.#O)}#k(){this.#s=document.createElement("div"),this.#s.className="notification-panel",this.#s.setAttribute("role","dialog"),this.#s.setAttribute("aria-label","Notifications"),this.#s.hidden=!0;let t=`notification-panel-${crypto.randomUUID().slice(0,8)}`;this.#s.id=t,this.#i?.setAttribute("aria-controls",t),this.#s.innerHTML=`
483
+ <p class="visually-hidden" data-live role="status"></p>
484
+ `}#_(){let t=this.#e;this.listen(this.#t,"click",this.#C),this.listen(document,"click",this.#F),this.listen(document,"keydown",this.#D),this.listen(this,"focusout",this.#H),t.querySelector(".settings-close")?.addEventListener("click",()=>this.close({returnFocus:!0})),t.querySelectorAll('input[data-field="mode"]').forEach(i=>i.addEventListener("change",this.#R)),this.#v('[data-field="theme"]')?.addEventListener("change",this.#U),this.#v("input[data-fluid-toggle]")?.addEventListener("change",this.#M),t.querySelectorAll('input[data-field="density"]').forEach(i=>i.addEventListener("change",this.#L)),this.#v("input[data-backdrop-toggle]")?.addEventListener("change",this.#O),t.querySelectorAll('input[data-field="backdrop"]').forEach(i=>i.addEventListener("change",this.#Q)),t.querySelectorAll('input[data-field="chrome"]').forEach(i=>i.addEventListener("change",this.#I)),this.#v("input[data-backdrop-fixed]")?.addEventListener("change",this.#T),this.#v("input[data-sticky-toggle]")?.addEventListener("change",this.#q),this.#v('[data-field="page-bg"]')?.addEventListener("change",this.#tt),this.#v('[data-field="page-bg-color"]')?.addEventListener("input",this.#$),this.#v('[data-field="grad-start"]')?.addEventListener("input",this.#$),this.#v('[data-field="grad-end"]')?.addEventListener("input",this.#$),this.#v('[data-field="grad-dir"]')?.addEventListener("change",this.#$),t.querySelectorAll("input[data-a11y]").forEach(i=>i.addEventListener("change",this.#z)),t.querySelectorAll("input[data-ext]").forEach(i=>i.addEventListener("change",this.#B)),t.querySelectorAll("input[data-env]").forEach(i=>i.addEventListener("change",this.#X)),this.#v(".settings-reset")?.addEventListener("click",this.#j),this.#v('[data-action="reset-confirm"]')?.addEventListener("click",this.#it),this.#v('[data-action="reset-cancel"]')?.addEventListener("click",()=>this.#P(!0)),this.#v('[data-action="clear-cache"]')?.addEventListener("click",this.#ot),this.#v('[data-action="check-update"]')?.addEventListener("click",this.#ct),this.#rt(this.#s)}#C=t=>{t.stopPropagation(),this.toggle()};#F=t=>{this.#i&&!this.contains(t.target)&&this.close()};#D=t=>{t.key==="Escape"&&this.#i&&(t.preventDefault(),this.close({returnFocus:!0}))};#H=t=>{if(!this.#i)return;let i=t.relatedTarget;i&&!this.contains(i)&&this.close()};#R=t=>{I.setMode(t.target.value)};#U=async t=>{let i=t.target;i.disabled=!0;try{await I.setBrand(i.value),this.#K()}catch{console.warn("[VB] Theme load failed, using default")}finally{i.disabled=!1}};#M=t=>{let i=t.target.checked,s=this.#y(I.getState().fluid)||"default";I.setFluid(this.#h(i,s)),this.#Z(i)};#L=t=>{I.setFluid(this.#h(!0,t.target.value))};#O=t=>{let i=t.target.checked,s=this.#A(I.getState().backdrop)||"default";I.setBackdrop(this.#S(i,s)),this.#G(i)};#Q=t=>{I.setBackdrop(this.#S(!0,t.target.value))};#I=t=>{let i=this.#k(I.getState().backdropChrome);I.setBackdropChrome(this.#E(t.target.value,i))};#T=t=>{let i=this.#b(I.getState().backdropChrome);I.setBackdropChrome(this.#E(i,t.target.checked))};#q=t=>{let i=t.target.checked;this.#m=i,x.set(it,"sticky",i?"on":"off").catch(()=>{}),Pr(i)};#Y(){let t=this.#v('[data-field="page-bg"]')?.value||"";return t==="color"?{type:t,color:this.#v('[data-field="page-bg-color"]')?.value||"#1a1a2e"}:t==="gradient"?{type:t,gradStart:this.#v('[data-field="grad-start"]')?.value||"#1a1a2e",gradEnd:this.#v('[data-field="grad-end"]')?.value||"#16213e",gradDir:this.#v('[data-field="grad-dir"]')?.value||"to bottom"}:null}#tt=t=>{this.#J(t.target.value),I.setPageBg(this.#Y()??{})};#$=()=>{let t=this.#Y();t&&I.setPageBg(t)};#z=t=>{let i=t.target.dataset.a11y,s=[...this.#c];if(t.target.checked&&!s.includes(i))s.push(i);else if(!t.target.checked){let n=s.indexOf(i);n!==-1&&s.splice(n,1)}this.#st(s),this.#K(),window.dispatchEvent(new CustomEvent("vb:a11y-themes-change",{detail:[...s]}))};#B=t=>{let i=t.target.dataset.ext;this.#l={...this.#l,[i]:t.target.checked},x.set(it,"extensions",this.#l).catch(()=>{}),this.#et()};#X=t=>{fe.setSource(t.target.dataset.env,t.target.checked)};#j=()=>{let t=this.#v(".settings-reset-confirm"),i=this.#v(".settings-reset");!t||!i||(t.hidden=!1,i.hidden=!0,this.#v('[data-action="reset-cancel"]')?.focus())};#P(t=!1){let i=this.#v(".settings-reset-confirm"),s=this.#v(".settings-reset");i&&(i.hidden=!0),s&&(s.hidden=!1,t&&s.focus())}#it=()=>{let t=["a11y","extensions","sticky"];for(let i of t)this.#r.add(i);setTimeout(()=>{for(let i of t)this.#r.delete(i)},0),I.reset(),this.#st([]),this.#K(),window.dispatchEvent(new CustomEvent("vb:a11y-themes-change",{detail:[]})),this.#l={...ss,charShortcuts:Wl()},x.remove(it,"extensions").catch(()=>{}),this.#et(),this.#m=!!Rr,x.remove(it,"sticky").catch(()=>{}),Pr(this.#m),fe.setSource("timeOfDay",!1),fe.setSource("seasonal",!1),this.#P(!0),this.#W(),this.#nt(this.#d("reset-done"))};#V=t=>{if(t.type==="vb:a11y-themes-change"&&Array.isArray(t.detail))this.#c=t.detail.map(String);else if(t.type==="vb:extensions-change"&&t.detail&&typeof t.detail=="object")this.#l={...Ir(),...t.detail};else if(t.type==="vb:theme-change"){let i=this.#s;this.#g().then(()=>{this.#p(i)&&this.#W()})}this.#W()};#W(){if(!this.#e)return;let{mode:t,brand:i,fluid:s,backdrop:n,backdropChrome:r,pageBgType:a,pageBgColor:o,pageBgGradStart:c,pageBgGradEnd:l,pageBgGradDir:u}=I.getState(),d=this.#c,h=this.#l,f=this.#u(s),p=this.#y(s),m=this.#w(n),g=this.#A(n),b=this.#e,A=(S,L)=>{let F=this.#v(S);F&&(F.checked=L)},v=(S,L)=>{let F=this.#v(S);F&&L&&(F.value=L)};A(`input[data-field="mode"][value="${t}"]`,!0);let $=this.#v('[data-field="theme"]');$&&($.value=i||"default"),A("input[data-fluid-toggle]",f),A(`input[data-field="density"][value="${p}"]`,!0),this.#Z(f),A("input[data-backdrop-toggle]",m),A(`input[data-field="backdrop"][value="${g}"]`,!0),A(`input[data-field="chrome"][value="${this.#b(r)}"]`,!0),A("input[data-backdrop-fixed]",this.#k(r)),this.#G(m);let N=this.#v('[data-field="page-bg"]');N&&(N.value=a||""),v('[data-field="page-bg-color"]',o),v('[data-field="grad-start"]',c),v('[data-field="grad-end"]',l),v('[data-field="grad-dir"]',u),m&&this.#J(a||""),b.querySelectorAll("input[data-a11y]").forEach(S=>{let L=S;L.checked=d.includes(L.dataset.a11y||"")}),b.querySelectorAll("input[data-ext]").forEach(S=>{let L=S,F=L.dataset.ext;L.checked=h[F]??ss[F]}),A("input[data-sticky-toggle]",this.#m);let j=fe.load();b.querySelectorAll("input[data-env]").forEach(S=>{let L=S;L.checked=j[L.dataset.env]??!1})}#Z(t){let i=this.#v(".density-row");i&&(i.hidden=!t)}#G(t){this.#e?.querySelectorAll(".backdrop-row").forEach(i=>{i.hidden=!t}),t&&this.#J(this.#v('[data-field="page-bg"]')?.value||"")}#J(t){let i=this.#v(".page-bg-color-row"),s=this.#v(".page-bg-grad-row"),n=this.#v(".page-bg-grad-dir-row");i&&(i.hidden=t!=="color"),s&&(s.hidden=t!=="gradient"),n&&(n.hidden=t!=="gradient")}#st(t){this.#c=[...t],x.set(it,"a11y",this.#c).catch(()=>{})}#K(){let t=[...this.#c],{brand:i}=I.getState(),s=document.documentElement,n=i!=="default"?[i,...t]:[...t];n.length?s.dataset.theme=n.join(" "):delete s.dataset.theme}async#et(){let t={...this.#l},i=document.documentElement;t.motionFx?delete i.dataset.motionReduced:i.dataset.motionReduced="",Vl(t.charShortcuts!==!1),t.sounds?(pe||(pe=(await Promise.resolve().then(()=>(Ou(),Fu))).SoundManager),pe.init(),pe.enable()):pe&&pe.disable(),window.dispatchEvent(new CustomEvent("vb:extensions-change",{detail:t}))}#nt(t){let i=this.#v("[data-live]");i&&(i.textContent="",requestAnimationFrame(()=>{i.textContent=t}))}async#rt(t){let i=this.#v("[data-sw-status] span");if(i){if(!("serviceWorker"in navigator)){i.textContent=this.#d("sw-unsupported");return}try{let s=await Nu();if(!this.#p(t))return;let n=s.cachedURLs?.length??0;i.textContent=this.#d("sw-active",{n})}catch{this.#p(t)&&(i.textContent=this.#d("sw-unregistered"))}}}async#at(t,i,s,n){let r=this.#s;t.disabled=!0,t.textContent=this.#d(s);let a;try{a=await n()}catch{a=this.#d("failed")}this.#p(r)&&(t.textContent=a,this.#nt(a),this.#a.push(setTimeout(()=>{t.textContent=this.#d(i),t.disabled=!1},2e3)))}#ot=t=>{let i=this.#s;this.#at(t.currentTarget,"clear-cache","clearing",async()=>(await Mu(),this.#rt(i),this.#d("cleared")))};#ct=t=>{this.#at(t.currentTarget,"check-update","checking",async()=>{let{updated:i}=await _u();return this.#d(i?"update-available":"up-to-date")})};open(){if(!this.#e){this.#n=!0;return}this.#i||(this.#i=!0,this.setAttribute("open",""),this.#t?.setAttribute("aria-expanded","true"),this.#W(),this.#lt(),this.#e.focus({preventScroll:!0}))}#lt(){let t=this.getBoundingClientRect(),i=this.#e;i.style.removeProperty("top"),i.style.removeProperty("bottom"),i.style.removeProperty("left"),i.style.removeProperty("right");let s=i.getBoundingClientRect(),n=window.innerWidth,r=window.innerHeight,a=t.top,o=r-t.bottom;a<s.height&&o>a?(i.style.top="calc(100% + 8px)",i.style.bottom="auto"):(i.style.bottom="calc(100% + 8px)",i.style.top="auto");let c=n-t.right,l=t.left,u=s.width;t.right<u&&l<c?(i.style.left="0",i.style.right="auto"):(i.style.right="0",i.style.left="auto")}close({returnFocus:t=!1}={}){this.#n=!1,this.#i&&(this.#i=!1,this.removeAttribute("open"),this.#t?.setAttribute("aria-expanded","false"),this.#P(),t&&this.#t?.focus())}toggle(){this.#i?this.close():this.open()}};E("settings-panel",Fr);ot();me();var ow={update:"package",alert:"alert-triangle",watch:"eye",system:"settings",message:"mail",stewardship:"shield"},cw={trigger:"Notifications",unread:"{n} unread",title:"Notifications","mark-all":"Mark all read",tabs:"Notification categories",all:"All",watching:"Watching",empty:"No notifications","watch-empty":"You aren\u2019t watching any pages yet. Use the \u201CWatch\u201D button on a page to start.","last-checked":"Last checked: {date}",never:"\u2014",changed:"Changed",unwatch:"Unwatch {title}",new:"New notification","variant-info":"Information:","variant-success":"Success:","variant-warning":"Warning:","variant-error":"Error:"};function q(e){return String(e??"").replace(/[&<>"']/g,t=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[t])}function ju(e){if(typeof e!="string"||!e.trim())return null;try{let{protocol:t}=new URL(e,location.href);return t==="http:"||t==="https:"?e:null}catch{return null}}function Hu(e,t){let i=new Date(e);if(Number.isNaN(i.getTime()))return String(e);let n=/^\d{4}-\d{2}-\d{2}$/.test(e)?{dateStyle:"medium",timeZone:"UTC"}:{dateStyle:"medium",timeStyle:"short"};try{return new Intl.DateTimeFormat(t||void 0,n).format(i)}catch{return new Intl.DateTimeFormat(void 0,n).format(i)}}var lw=0,qr=class extends k{static observedAttributes=["variant","position"];#t="panel";#e=0;#i=null;#n=null;#s=null;#o=null;#r=new Set;#a=[];#c=!1;#l=null;#m=new Set;#p="all";#d=[];#f=[];setup(){let t=++this.#e;return this.#t=this.getAttribute("mode")==="banner"?"banner":"panel",this.#t==="banner"?this.#w(t):this.#k(t),!0}teardown(){this.#e++,this.#l!=null&&(clearInterval(this.#l),this.#l=null),this.#c&&(this.#c=!1,this.#s&&(this.#s.hidden=!0),this.#i?.setAttribute("aria-expanded","false"))}attributeChangedCallback(t,i,s){i===s||this.#t!=="banner"||!this.hasAttribute("data-upgraded")||(t==="variant"&&(this.dataset.variant=s||"info",this.#A()),t==="position"&&(this.dataset.position=s||"top"))}#g(t){return t===this.#e&&this.isConnected}#u(t,i={}){let s=this.getAttribute(`data-label-${t}`)??cw[t]??t;for(let[n,r]of Object.entries(i))s=s.replaceAll(`{${n}}`,String(r));return s}#y(){let t=(this.getAttribute("toast-new")||"").trim(),i=null;if(t){try{i=document.querySelector(t)}catch{i=null}i&&i.localName!=="toast-msg"&&(i=null)}return i??document.querySelector("toast-msg")}#h(){return this.closest("[lang]")?.lang||document.documentElement.lang||void 0}get notifications(){return[...this.#a]}set notifications(t){this.#t==="panel"&&(this.#a=Array.isArray(t)?t:[],this.#C(),this.dispatchEvent(new CustomEvent("notification-wc:notifications-changed",{detail:{notifications:this.#a,source:"property"},bubbles:!0})))}async#w(t){let i=this.getAttribute("persist");if(i||console.warn("[notification-wc] banner mode requires a persist attribute"),this.dataset.mode="banner",this.dataset.variant=this.getAttribute("variant")||"info",this.dataset.position=this.getAttribute("position")||"top",this.#A(),i){let n=Number(this.getAttribute("expires")??""),r=Number.isFinite(n)&&n>0?n*864e5:void 0,a=await x.get("notifications",i,r?{maxAge:r}:void 0);if(!this.#g(t))return;if(a&&a.dismissed){this.hidden=!0;return}}let s=this.querySelector('[value="dismiss"], [data-dismiss]');s&&this.listen(s,"click",this.#S)}#A(){let t=this.dataset.variant||"info",i=this.querySelector(":scope [data-variant-prefix]");i||(i=document.createElement("span"),i.className="visually-hidden",i.setAttribute("data-variant-prefix",""),(this.querySelector(":scope > :is(p, strong, span, h2, h3, h4)")||this).prepend(i)),i.textContent=`${this.#u(`variant-${t}`)} `}#S=async t=>{t.preventDefault();let i=this.contains(document.activeElement),s=this.getAttribute("persist");this.hidden=!0,i&&this.#b(),s&&await x.set("notifications",s,{dismissed:!0}),this.dispatchEvent(new CustomEvent("notification-wc:dismiss",{bubbles:!0,composed:!0,detail:{id:s}}))};#b(){let t=document.querySelector('main, [role="main"]')||document.querySelector("h1");t&&(t.hasAttribute("tabindex")||(t.setAttribute("tabindex","-1"),t.addEventListener("blur",()=>t.removeAttribute("tabindex"),{once:!0})),t.focus({preventScroll:!0}))}async#k(t){if(this.dataset.mode="panel",this.listen(document,"notification-wc:new",this.#H),await this.#E(),!!this.#g(t)&&(this.#N(),this.#x(),this.listen(document,"click",this.#Y),this.listen(document,"keydown",this.#$),this.listen(this,"focusout",this.#tt),this.listen(document,"page-watch:add",this.#R),this.listen(document,"page-watch:remove",this.#R),await this.#U(),!!this.#g(t)&&this.getAttribute("src"))){if(await this.#P(t),!this.#g(t))return;let i=Number(this.getAttribute("poll"));Number.isFinite(i)&&i>0&&(this.#l=setInterval(()=>this.#P(t),i))}}async#E(){let t=this.getAttribute("storage-key")||"notifications",i=await x.get(t,"read-ids");Array.isArray(i)&&(this.#r=new Set(i.filter(s=>typeof s=="string")))}async#v(){let t=this.getAttribute("storage-key")||"notifications";await x.set(t,"read-ids",Array.from(this.#r))}#N(){if(this.#i=this.querySelector(":scope > [data-trigger]"),this.#i){if(!this.#i.classList.contains("notification-trigger")&&this.#n===null){let i=this.#i.cloneNode(!0);i.querySelector(".notification-badge")?.remove(),this.#n=(this.#i.getAttribute("aria-label")||i.textContent||"").trim()}}else{let i=document.createElement("button");i.type="button",i.setAttribute("data-trigger",""),i.className="notification-trigger",i.innerHTML='<icon-wc name="bell" size="sm" aria-hidden="true"></icon-wc><span class="notification-badge" aria-hidden="true" hidden>0</span>',this.#i=i,this.prepend(i)}let t=this.#i.querySelector(".notification-badge");t||(t=document.createElement("span"),t.className="notification-badge",t.setAttribute("aria-hidden","true"),t.hidden=!0,this.#i.appendChild(t)),this.#o=t,this.#i.setAttribute("aria-haspopup","dialog"),this.#i.setAttribute("aria-expanded","false"),this.listen(this.#i,"click",this.#q)}#x(){let t=this.querySelector(":scope > .notification-panel");t||(t=document.createElement("div"),t.className="notification-panel",t.id=`notification-panel-${++lw}-${Math.random().toString(36).slice(2,7)}`,this.appendChild(t)),this.#s=t;let i=t.id;t.setAttribute("role","dialog"),t.setAttribute("aria-labelledby",`${i}-title`),t.tabIndex=-1,t.hidden=!0,this.#i?.setAttribute("aria-controls",i);let s=this.#p==="all";t.innerHTML=`
579
485
  <header class="notification-header">
580
- <strong>Notifications</strong>
581
- <button type="button" class="notification-mark-all">Mark all read</button>
486
+ <strong id="${i}-title">${q(this.#u("title"))}</strong>
487
+ <button type="button" class="notification-mark-all">${q(this.#u("mark-all"))}</button>
582
488
  </header>
583
- <nav class="notification-tabs" role="tablist" aria-label="Notification categories">
584
- <button type="button" role="tab" data-tab="all" aria-selected="true">All</button>
585
- <button type="button" role="tab" data-tab="watching" aria-selected="false">Watching <span class="notification-tab-count" hidden>0</span></button>
586
- </nav>
587
- <ul class="notification-list" role="list" data-tab-panel="all"></ul>
588
- <ul class="notification-watch-list" role="list" data-tab-panel="watching" hidden></ul>
589
- <footer class="notification-footer" hidden>
590
- <em>No notifications</em>
591
- </footer>
592
- `,this.appendChild(this.#s);let i=this.#s.querySelector(".notification-mark-all");i&&this.listen(i,"click",this.#B);for(let s of this.#s.querySelectorAll('[role="tab"]'))this.listen(s,"click",this.#N);this.#w()}#A(){let t=Array.from(this.querySelectorAll(":scope > article")),i=new Map;for(let s of t){let n=s.getAttribute("data-id")||s.id||`static-${i.size}`,r=s.getAttribute("data-type")||"update",a=s.getAttribute("data-date")||"",o=s.querySelector("h1, h2, h3, h4, h5, h6")?.textContent?.trim()||n,l=s.querySelector("p")?.textContent?.trim()||"",u=s.querySelector("a");i.set(n,{id:n,type:r,date:a,title:o,body:l,url:u?.getAttribute("href")||null,source:"static"})}for(let s of this.#a)if(!(!s||typeof s.id!="string")){if(s.dismissed){i.delete(s.id);continue}i.set(s.id,{...i.get(s.id),...s,source:"dynamic"})}return Array.from(i.values()).sort((s,n)=>{let r=s.date?Date.parse(s.date):0;return(n.date?Date.parse(n.date):0)-r})}#w(){if(!this.#s)return;let t=this.#s.querySelector(".notification-list"),i=this.#s.querySelector(".notification-footer");if(!t)return;let s=this.#A();t.innerHTML=s.map(n=>this.#y(n)).join(""),i&&(i.hidden=s.length>0);for(let n of t.querySelectorAll("[data-notification-id]"))this.listen(n,"click",this.#L);this.#E()}#y(t){let i=Lp[t.type]||"bell",s=this.#n.has(t.id),n=t.date?new Date(t.date).toLocaleString():"",r=`
593
- <icon-wc class="notification-type-icon" name="${F(i)}" size="sm"></icon-wc>
594
- <div class="notification-body">
595
- <h4>${F(t.title)}</h4>
596
- ${t.body?`<p>${F(t.body)}</p>`:""}
597
- ${n?`<time datetime="${F(t.date)}">${F(n)}</time>`:""}
489
+ <div class="notification-tabs" role="tablist" aria-label="${q(this.#u("tabs"))}">
490
+ <button type="button" role="tab" id="${i}-tab-all" data-tab="all" aria-controls="${i}-all" aria-selected="${s}" tabindex="${s?0:-1}">${q(this.#u("all"))}</button>
491
+ <button type="button" role="tab" id="${i}-tab-watching" data-tab="watching" aria-controls="${i}-watching" aria-selected="${!s}" tabindex="${s?-1:0}">${q(this.#u("watching"))} <span class="notification-tab-count" hidden>0</span></button>
492
+ </div>
493
+ <div class="notification-tabpanel" role="tabpanel" id="${i}-all" aria-labelledby="${i}-tab-all" data-tab-panel="all"${s?"":" hidden"}>
494
+ <ul class="notification-list" role="list"></ul>
495
+ <p class="notification-footer" hidden><em>${q(this.#u("empty"))}</em></p>
496
+ </div>
497
+ <div class="notification-tabpanel" role="tabpanel" id="${i}-watching" aria-labelledby="${i}-tab-watching" data-tab-panel="watching"${s?" hidden":""}>
498
+ <ul class="notification-watch-list" role="list"></ul>
598
499
  </div>
599
- `,a=t.url?"a":"button",o=t.url?`href="${F(t.url)}"`:'type="button"';return`<li role="listitem" data-notification-id="${F(t.id)}" data-type="${F(t.type||"update")}"${s?" data-read":""}>
600
- <${a} class="notification-row" ${o}>${r}</${a}>
601
- </li>`}#E(){if(!this.#r)return;let i=this.#A().filter(s=>!this.#n.has(s.id)).length;i>0?(this.#r.textContent=String(i),this.#r.hidden=!1,this.#i?.querySelector("icon-wc")?.setAttribute("name","bell-dot")):(this.#r.hidden=!0,this.#i?.querySelector("icon-wc")?.setAttribute("name","bell"))}async#v(){try{this.#m=await k.list("watches")}catch{this.#m=[]}this.#C()}#C(){if(!this.#s)return;let t=this.#s.querySelector(".notification-watch-list"),i=this.#s.querySelector(".notification-tab-count");if(t){if(t.innerHTML=this.#m.map(s=>this.#I(s)).join("")||`<li class="notification-empty"><em>You aren't watching any pages yet. Use the &ldquo;Watch&rdquo; button on a page to start.</em></li>`,i){let s=this.#m.length;s>0?(i.textContent=String(s),i.hidden=!1):i.hidden=!0}for(let s of t.querySelectorAll("[data-watch-unwatch]"))this.listen(s,"click",this.#_)}}#I(t){let i=t.data||{},s=i.url||t.key,n=i.title||s,r=i.lastChecked?new Date(i.lastChecked).toLocaleString():"\u2014",a=!!i.lastChanged;return`<li class="notification-watch-item"${a?" data-changed":""}>
602
- <a class="notification-watch-row" href="${F(s)}">
603
- <icon-wc class="notification-type-icon" name="eye" size="sm"></icon-wc>
604
- <div class="notification-body">
605
- <h4>${F(n)}${a?' <span class="notification-changed-badge">Changed</span>':""}</h4>
606
- <p>${F(s)}</p>
607
- <time>Last checked: ${F(r)}</time>
608
- </div>
609
- </a>
610
- <button type="button" class="notification-unwatch" data-watch-unwatch data-watch-key="${F(t.key)}" aria-label="Unwatch ${F(n)}">
611
- <icon-wc name="x" size="xs"></icon-wc>
500
+ `,this.listen(t,"click",this.#I),this.listen(t,"keydown",this.#Q),this.#C(),this.#M()}#_(){let t=Array.from(this.querySelectorAll(":scope > article")),i=new Map;for(let s of t){let n=s.getAttribute("data-id")||s.id||`static-${i.size}`,r=s.getAttribute("data-type")||"update",a=s.getAttribute("data-date")||"",o=s.querySelector("h1, h2, h3, h4, h5, h6")?.textContent?.trim()||n,l=s.querySelector("p")?.textContent?.trim()||"",u=s.querySelector("a");i.set(n,{id:n,type:r,date:a,title:o,body:l,url:u?.getAttribute("href")||null,source:"static"})}for(let s of[...this.#f,...this.#a])if(!(!s||typeof s.id!="string")){if(s.dismissed){i.delete(s.id);continue}i.set(s.id,{...i.get(s.id),...s,source:"dynamic"})}return Array.from(i.values()).sort((s,n)=>{let r=s.date&&Date.parse(s.date)||0;return(n.date&&Date.parse(n.date)||0)-r})}#C(){if(!this.#s)return;let t=this.#s.querySelector(".notification-list"),i=this.#s.querySelector(".notification-footer");if(!t)return;let s=this.#_(),n=this.#h();t.innerHTML=s.map(r=>this.#F(r,n)).join(""),i&&(i.hidden=s.length>0),this.#D(s)}#F(t,i){let s=ow[t.type]||"bell",n=this.#r.has(t.id),r=t.date?Hu(t.date,i):"",a=`
501
+ <icon-wc class="notification-type-icon" name="${q(s)}" size="sm" aria-hidden="true"></icon-wc>
502
+ <span class="notification-body">
503
+ <strong class="notification-title">${q(t.title)}</strong>
504
+ ${t.body?`<span class="notification-text">${q(t.body)}</span>`:""}
505
+ ${r?`<time datetime="${q(t.date)}">${q(r)}</time>`:""}
506
+ </span>
507
+ `,o=ju(t.url),c=o?"a":"button",l=o?`href="${q(o)}"`:'type="button"';return`<li data-notification-id="${q(t.id)}" data-type="${q(t.type||"update")}"${n?" data-read":""}>
508
+ <${c} class="notification-row" ${l}>${a}</${c}>
509
+ </li>`}#D(t=this.#_()){if(!this.#o||!this.#i)return;let i=t.filter(r=>!this.#r.has(r.id)).length,s=this.#i.querySelector("icon-wc");i>0?(this.#o.textContent=String(i),this.#o.hidden=!1,s?.setAttribute("name","bell-dot")):(this.#o.hidden=!0,s?.setAttribute("name","bell"));let n=this.#n||this.#u("trigger");this.#i.setAttribute("aria-label",i>0?`${n}, ${this.#u("unread",{n:i})}`:n)}#H=t=>{if(t.target instanceof Element&&t.target.localName==="notification-wc")return;let i=t.detail?.notification;!i||typeof i.id!="string"||this.#f.some(s=>s.id===i.id)||(this.#f.push(i),this.#C())};#R=()=>{this.#U()};async#U(){let t=this.#e,i;try{i=await x.list("watches")}catch{i=[]}this.#g(t)&&(this.#d=Array.isArray(i)?i:[],this.#M())}#M(){if(!this.#s)return;let t=this.#s.querySelector(".notification-watch-list"),i=this.#s.querySelector(".notification-tab-count");if(!t)return;let s=this.#h();if(t.innerHTML=this.#d.map(n=>this.#L(n,s)).join("")||`<li class="notification-empty"><em>${q(this.#u("watch-empty"))}</em></li>`,i){let n=this.#d.length;i.textContent=String(n),i.hidden=n===0}}#L(t,i){let s=t.data||{},n=s.url||t.key,r=s.title||n,a=s.lastChecked?Hu(s.lastChecked,i):this.#u("never"),o=!!s.lastChanged,c=ju(n),l=`
510
+ <icon-wc class="notification-type-icon" name="eye" size="sm" aria-hidden="true"></icon-wc>
511
+ <span class="notification-body">
512
+ <strong class="notification-title">${q(r)}${o?` <span class="notification-changed-badge">${q(this.#u("changed"))}</span>`:""}</strong>
513
+ <span class="notification-text">${q(n)}</span>
514
+ <time>${q(this.#u("last-checked",{date:a}))}</time>
515
+ </span>`,u=c?`<a class="notification-watch-row" href="${q(c)}">${l}</a>`:`<span class="notification-watch-row">${l}</span>`;return`<li class="notification-watch-item"${o?" data-changed":""}>
516
+ ${u}
517
+ <button type="button" class="notification-unwatch" data-watch-unwatch data-watch-key="${q(t.key)}" aria-label="${q(this.#u("unwatch",{title:r}))}">
518
+ <icon-wc name="x" size="xs" aria-hidden="true"></icon-wc>
612
519
  </button>
613
- </li>`}#N=t=>{let i=t.currentTarget.dataset.tab;if(!i||i===this.#p||(this.#p=i,!this.#s))return;for(let n of this.#s.querySelectorAll('[role="tab"]')){let r=n.dataset.tab===i;n.setAttribute("aria-selected",r?"true":"false")}for(let n of this.#s.querySelectorAll("[data-tab-panel]"))n.hidden=n.dataset.tabPanel!==i;let s=this.#s.querySelector(".notification-footer");s&&(s.hidden=!0)};#_=async t=>{t.preventDefault(),t.stopPropagation();let s=t.currentTarget.getAttribute("data-watch-key");if(!s)return;let n=this.#m.find(r=>r.key===s);await k.remove("watches",s),this.#m=this.#m.filter(r=>r.key!==s),this.#C(),this.dispatchEvent(new CustomEvent("page-watch:remove",{bubbles:!0,composed:!0,detail:{url:n?.data?.url||s,subscriptionId:n?.data?.subscriptionId||null}}))};#O=t=>{t.stopPropagation(),this.#o?this.#S():this.#$()};#F=t=>{this.#o&&!this.contains(t.target)&&this.#S()};#D=t=>{t.key==="Escape"&&this.#o&&(t.preventDefault(),this.#S(),this.#i?.focus())};#L=async t=>{let i=t.currentTarget.closest("[data-notification-id]");if(!i)return;let s=i.getAttribute("data-notification-id");s&&(this.#n.has(s)||(this.#n.add(s),i.setAttribute("data-read",""),await this.#g(),this.#E(),this.dispatchEvent(new CustomEvent("notification-wc:read",{bubbles:!0,composed:!0,detail:{id:s}}))))};#B=async()=>{let t=this.#A();for(let i of t)this.#n.add(i.id);await this.#g(),this.#w();for(let i of t)this.dispatchEvent(new CustomEvent("notification-wc:read",{bubbles:!0,composed:!0,detail:{id:i.id}}))};#$(){this.#s&&(this.#o=!0,this.#s.hidden=!1,this.#i?.setAttribute("aria-expanded","true"),this.#v(),this.dispatchEvent(new CustomEvent("notification-wc:open",{bubbles:!0,composed:!0})))}#S(){this.#s&&(this.#o=!1,this.#s.hidden=!0,this.#i?.setAttribute("aria-expanded","false"),this.dispatchEvent(new CustomEvent("notification-wc:close",{bubbles:!0,composed:!0})))}async#T(){let t=this.getAttribute("src");if(!t)return;let i,s=0;try{if(t.startsWith("http")||t.startsWith("/")){let c=await fetch(t,{headers:{accept:"application/json"}});if(s=c.status,!c.ok)throw new Error(`${c.status}`);i=await c.json()}else i=await new R(t).get("/")}catch(c){let l=c instanceof I?c.status:s;if(l===404||l===503)return;let u=c instanceof I?`${c.status}`:String(c);console.warn("[notification-wc] failed to fetch",t,u);return}let n=Array.isArray(i)?i:Array.isArray(i?.notifications)?i.notifications:[],r=this.#c,a=r.size===0,o=this.hasAttribute("toast-new")?document.querySelector("toast-msg"):null;for(let c of n)c?.id&&(r.has(c.id)||(this.dispatchEvent(new CustomEvent("notification-wc:new",{bubbles:!0,composed:!0,detail:{notification:c}})),!a&&o&&typeof o.show=="function"&&o.show({message:c.title||c.body||"New notification",variant:c.type==="alert"||c.type==="stewardship"?"warning":"info",duration:5e3})),r.add(c.id));this.#a=n,this.#w()}};b("notification-wc",Bs);var Qo="Watch for updates",zp="Watching",Ks=class extends y{#e=null;setup(){if(this.hasAttribute("server-sync")){let i=window;i.vbPageWatch={...i.vbPageWatch??{},serverSync:!0}}let t=this.#t();this.dataset.variant=t;for(let i of Array.from(this.children))i.hasAttribute?.("data-watch-page")&&i.remove();this.#e=this.#i(t),this.appendChild(this.#e),this.listen(document,"page-watch:add",this.#s),this.listen(document,"page-watch:remove",this.#s)}teardown(){this.#e&&(this.#e.remove(),this.#e=null)}#t(){let t=this.getAttribute("variant");return t==="compact"||t==="button"?t:"icon"}#i(t){let i=document.createElement("button");i.type="button",i.setAttribute("data-watch-page",""),i.className="ghost",i.setAttribute("aria-label","Watch this page for updates");let s=t==="icon"?"sm":"xs",n=this.getAttribute("label")??Qo;return t==="icon"?i.innerHTML=`<icon-wc name="bookmark" size="${s}"></icon-wc>`:(i.innerHTML=`<icon-wc name="bookmark" size="${s}"></icon-wc><span>${this.#r(n)}</span>`,i.setAttribute("data-watch-label-locked","")),i}#s=async()=>{if(this.#e)try{let{readWatch:t}=await Promise.resolve().then(()=>(Ys(),Gs)),s=!!await t();this.#e.setAttribute("aria-pressed",s?"true":"false");let n=this.#e.querySelector("icon-wc");n&&n.setAttribute("name",s?"bookmark-check":"bookmark");let r=this.#e.querySelector("span");if(r&&this.#t()!=="icon"){let a=this.getAttribute("label");r.textContent=a||(s?zp:Qo)}this.#e.setAttribute("title",s?"Stop watching this page":"Watch this page for content updates")}catch{}};#r(t){let i=document.createElement("div");return i.textContent=t,i.innerHTML}};b("watch-wc",Ks);function ic(e){let t=!1;try{t=sessionStorage.getItem("vb_optout")==="1"}catch{}let i=!1;if(typeof e?.consent=="function")try{i=e.consent()===!1}catch{i=!0}return{user:t,gpc:navigator.globalPrivacyControl===!0,dnt:navigator.doNotTrack==="1",consent:i}}function sc(e){let t=ic(e);return t.user?"user":t.gpc?"gpc":t.dnt?"dnt":t.consent?"consent":null}function Xe(e){return sc(e)!==null}function nc(e){return e?.closest?.("[data-vb-no-track]")!=null}function Vp(){let{dataset:e}=document.documentElement,t={};for(let i of Object.keys(e)){let s=e[i];s!=null&&s!==""&&(t[i]=s)}return t}function Up(){let e={};for(let i of document.querySelectorAll('meta[name^="vb:"]')){let s=i.getAttribute("name")?.slice(3),n=i.getAttribute("content")?.trim();s&&n&&(e[s]=n)}let t=[];for(let i of document.querySelectorAll('meta[name="concept"]')){let s=i.getAttribute("content")?.trim();s&&t.push(s)}return t.length&&(e.concepts=t),e}function Wp(e,t){if(!t?.length)return e;for(let{pattern:i,replace:s}of t)if(i.test(e))return e.replace(i,s);return e}function Gp(e,t){let i=JSON.stringify(t);if(typeof navigator.sendBeacon=="function"){let s=new Blob([i],{type:"application/json"});if(navigator.sendBeacon(e,s))return!0}try{return fetch(e,{method:"POST",body:i,keepalive:!0,headers:{"content-type":"application/json"}}),!0}catch{return!1}}var _={config:null,queue:[]},It={sent:0,logged:0,iframeDisabled:!1},Xs=Symbol.for("vanilla-breeze.analytics"),Js="vb:analytics-status";function Ye(){try{document.dispatchEvent(new CustomEvent(Js))}catch{}}function Qs(e){return`${(_.config?.endpoint??"/api/analytics").replace(/\/+$/,"")}/${e}`}function Ke(e,t){let i=_.config;if(!i)throw new Error("analytics: buildEnvelope called before init");let s=Wp(location.pathname+location.search,i.urlMasks),n=typeof i.context=="function"?i.context()??{}:{};return{name:e,ts:Date.now(),site:i.siteId,path:s,referrer:document.referrer||"",context:{...Vp(),...Up(),...n},props:t??{}}}function Ze(e,t){let i=_.config;if(!i||i.transport==="disabled")return!1;if(i.transport==="console")return console.log("%c[vb:analytics]","color:#0aa;font-weight:600",e,t),It.logged++,Ye(),!0;let s=Gp(Qs(e),t);return s&&(It.sent++,Ye()),s}function rc(){let e=_.config?.sampleRate??1;return e>=1?!0:Math.random()<e}var tc=null;function ac(){if(!_.config||Xe(_.config)||document.documentElement.hasAttribute("data-vb-no-track")||!rc())return;let e=location.pathname+location.search;e!==tc&&(tc=e,Ze("hit",Ke("page.view",{})))}function Yp(){let e,t=()=>{clearTimeout(e),e=setTimeout(ac,100)},i=history.pushState.bind(history);history.pushState=function(...n){i(...n),t()};let s=history.replaceState.bind(history);history.replaceState=function(...n){s(...n),t()},window.addEventListener("popstate",t)}function Kp(e){let t={};for(let[i,s]of Object.entries(e.dataset)){if(i==="vbEvent"||!i.startsWith("vbEvent"))continue;let n=i.slice(7).replace(/^./,r=>r.toLowerCase());t[n]=s}return t}function Xp(e){if(!_.config||Xe(_.config))return;let i=e.target?.closest?.("[data-vb-event]");if(!i||nc(i))return;let s=i.dataset.vbEvent;s&&tn.track(s,Kp(i))}function ec(){let e=document.querySelectorAll('a[href^="http"]');for(let t of e){if(t.hostname===location.hostname||nc(t)||t.hasAttribute("data-vb-analytics-wired"))continue;let i=encodeURIComponent(_.config?.siteId??"default"),s=`${Qs("click")}?site=${i}&from=${encodeURIComponent(location.pathname)}`;t.hasAttribute("ping")||t.setAttribute("ping",s),t.addEventListener("click",()=>{if(Xe(_.config))return;let n=navigator.userAgent;/Firefox|Brave/.test(n)&&Ze("click",Ke("link.outbound",{to:t.hostname,href:t.href}))}),t.setAttribute("data-vb-analytics-wired","")}}function Zs(){if(!_.queue.length)return;let e=_.queue.splice(0);Ze("events",{site:_.config?.siteId,events:e})}function Zp(){document.visibilityState==="hidden"&&Zs()}var Jp={endpoint:"/api/analytics",siteId:"default",transport:"disabled",sampleRate:1,consent:null,context:null,urlMasks:null,autoPageView:!0,autoOutboundLinks:!0,autoDeclarative:!0,allowInIframe:!1};function Qp(){try{return window.top!==window.self}catch{return!0}}var tn={init(e={}){if(_.config)return;let t={...Jp,...e};if(_.config=t,globalThis[Xs]||(globalThis[Xs]=tn),queueMicrotask(Ye),Qp()&&!t.allowInIframe){It.iframeDisabled=!0,t.transport="disabled",t.autoPageView=!1,t.autoOutboundLinks=!1,t.autoDeclarative=!1;return}t.transport==="disabled"&&(t.autoOutboundLinks=!1),t.autoDeclarative&&document.addEventListener("click",Xp,{capture:!0}),t.autoOutboundLinks&&(ec(),new MutationObserver(()=>ec()).observe(document.body,{childList:!0,subtree:!0})),t.autoPageView&&(ac(),Yp()),document.addEventListener("visibilitychange",Zp),window.addEventListener("pagehide",Zs)},track(e,t={}){_.config&&(Xe(_.config)||rc()&&Ze("hit",Ke(e,t)))},flush:Zs,setConsent(e){try{e?sessionStorage.removeItem("vb_optout"):sessionStorage.setItem("vb_optout","1")}catch{}Ye()},getStatus(){let e=_.config,t=ic(e),i=sc(e),s=null;if(e)try{s=Ke("page.view",{})}catch{s=null}let n=e?.transport??null;return{initialized:e!=null,active:e!=null&&n!=="disabled"&&i===null,optedOut:i!==null,reason:i,signals:t,transport:n,inIframe:It.iframeDisabled,endpoint:e?Qs("hit"):null,siteId:e?.siteId??null,sampleRate:e?.sampleRate??null,outboundLinks:e?.autoOutboundLinks??!1,queued:_.queue.length,sent:It.sent,logged:It.logged,collects:s?Object.keys(s):[],contextKeys:s?Object.keys(s.context):[],preview:s}},get config(){return _.config?{..._.config}:null}};function en(){return globalThis[Xs]??tn}var tf="Analytics on this page",ef=2;function sf(e){let t=Number.parseInt(e??"",10);return Number.isInteger(t)&&t>=1&&t<=6?t:ef}var oc={gpc:"your browser sends a Global Privacy Control signal",dnt:"your browser sends Do Not Track",consent:"this site has not been given consent to collect analytics"};function nf(e){if(!e||!e.initialized)return{state:"off",reason:"uninitialized",text:"Off. The analytics runtime is not running on this page, so nothing is sent."};if(e.inIframe)return{state:"off",reason:"iframe",text:"Off. Analytics does not run inside embedded frames, so nothing is sent."};if(e.reason==="user")return{state:"paused",reason:"user",text:"Paused for this tab. Nothing is being sent."};if(e.reason){let i=oc[e.reason];return{state:"off",reason:e.reason,text:`Off because ${i}. Nothing is sent.`}}if(e.transport==="disabled")return{state:"off",reason:"disabled",text:"Off. This site has analytics switched off, so nothing is sent."};if(e.transport==="console")return{state:"debug",reason:null,text:"Debug mode. Events are written to this browser\u2019s console, not sent anywhere."};let t=typeof e.sampleRate=="number"&&e.sampleRate<1?` (a ${Math.round(e.sampleRate*100)}% sample)`:"";return{state:"active",reason:null,text:`Active. Events from this page are sent to ${e.endpoint}${t}.`}}function rf(e){return e?.signals?["gpc","dnt","consent"].filter(t=>e.signals[t]):[]}var sn=class extends y{static get observedAttributes(){return["heading","heading-level"]}#e={};setup(){(!this.#e.status||!this.contains(this.#e.status))&&this.#r(),this.listen(this,"click",this.#i),this.listen(document,Js,()=>this.refresh()),this.refresh()}attributeChangedCallback(t){this.#e.heading&&(t==="heading"&&(this.#e.heading.textContent=this.#t),t==="heading-level"&&this.#n())}get#t(){return this.getAttribute("heading")||tf}get status(){let t=en();return typeof t?.getStatus=="function"?t.getStatus():null}#i=t=>{let i=t.target?.closest?.("[data-analytics-action]");if(!i||!this.contains(i)||i.getAttribute("aria-disabled")==="true")return;let s=i.dataset.analyticsAction;s==="toggle"&&this.#s(),s==="refresh"&&this.refresh()};#s(){let t=!this.status?.signals?.user;en().setConsent(!t),this.dispatchEvent(new CustomEvent(t?"analytics-panel:optout":"analytics-panel:optin",{bubbles:!0,composed:!0})),this.refresh()}#r(){let t=`analytics-panel-${Math.random().toString(36).slice(2,8)}`;this.innerHTML=`
520
+ </li>`}#O(t,{focus:i=!1}={}){if(this.#s){this.#p=t;for(let s of this.#s.querySelectorAll('[role="tab"]')){let n=s.dataset.tab===t;s.setAttribute("aria-selected",n?"true":"false"),s.setAttribute("tabindex",n?"0":"-1"),n&&i&&s.focus()}for(let s of this.#s.querySelectorAll("[data-tab-panel]"))s.hidden=s.dataset.tabPanel!==t}}#Q=t=>{let i=t.target.closest?.('[role="tab"]');if(!i||!this.#s)return;let s=[...this.#s.querySelectorAll('[role="tab"]')],n=s.indexOf(i),r=getComputedStyle(this.#s).direction==="rtl",a=-1;if(t.key==="ArrowRight")a=r?n-1:n+1;else if(t.key==="ArrowLeft")a=r?n+1:n-1;else if(t.key==="Home")a=0;else if(t.key==="End")a=s.length-1;else return;t.preventDefault(),a=(a+s.length)%s.length;let o=s[a].dataset.tab;o&&this.#O(o,{focus:!0})};#I=t=>{let i=t.target,s=i.closest('[role="tab"]');if(s?.dataset.tab){this.#O(s.dataset.tab);return}if(i.closest(".notification-mark-all")){this.#B();return}let n=i.closest("[data-watch-unwatch]");if(n){this.#T(t,n);return}let r=i.closest(".notification-list .notification-row");r&&this.#z(r)};async#T(t,i){t.preventDefault(),t.stopPropagation();let s=i.getAttribute("data-watch-key");if(!s||!this.#s)return;let r=[...this.#s.querySelectorAll("[data-watch-unwatch]")].indexOf(i),a=this.#d.find(l=>l.key===s);await x.remove("watches",s),this.#d=this.#d.filter(l=>l.key!==s),this.#M();let o=[...this.#s.querySelectorAll("[data-watch-unwatch]")];(o[Math.min(r,o.length-1)]||this.#s.querySelector('[role="tab"][data-tab="watching"]'))?.focus(),this.dispatchEvent(new CustomEvent("page-watch:remove",{bubbles:!0,composed:!0,detail:{url:a?.data?.url||s,subscriptionId:a?.data?.subscriptionId||null}}))}#q=t=>{t.stopPropagation(),this.#c?this.#j():this.#X()};#Y=t=>{this.#c&&!this.contains(t.target)&&this.#j()};#tt=t=>{let i=t.relatedTarget;this.#c&&i&&!this.contains(i)&&this.#j()};#$=t=>{t.key==="Escape"&&this.#c&&(t.preventDefault(),this.#j({restoreFocus:!0}))};async#z(t){let i=t.closest("[data-notification-id]"),s=i?.getAttribute("data-notification-id");!i||!s||this.#r.has(s)||(this.#r.add(s),i.setAttribute("data-read",""),this.#D(),this.dispatchEvent(new CustomEvent("notification-wc:read",{bubbles:!0,composed:!0,detail:{id:s}})),await this.#v())}async#B(){let t=this.#_();for(let i of t)this.#r.add(i.id);this.#C();for(let i of t)this.dispatchEvent(new CustomEvent("notification-wc:read",{bubbles:!0,composed:!0,detail:{id:i.id}}));await this.#v()}#X(){this.#s&&(this.#c=!0,this.#s.hidden=!1,this.#i?.setAttribute("aria-expanded","true"),this.#s.focus({preventScroll:!0}),this.#U(),this.dispatchEvent(new CustomEvent("notification-wc:open",{bubbles:!0,composed:!0})))}#j({restoreFocus:t=!1}={}){if(!this.#s)return;let i=this.#s.contains(document.activeElement);this.#c=!1,this.#s.hidden=!0,this.#i?.setAttribute("aria-expanded","false"),(t||i)&&this.#i?.focus(),this.dispatchEvent(new CustomEvent("notification-wc:close",{bubbles:!0,composed:!0}))}async#P(t){let i=this.getAttribute("src");if(!i)return;let s,n=0;try{if(i.startsWith("http")||i.startsWith("/")){let l=await fetch(i,{headers:{accept:"application/json"}});if(n=l.status,!l.ok)throw new Error(`${l.status}`);s=await l.json()}else s=await new J(i).get("/")}catch(l){let u=l instanceof G?l.status:n;if(u===404||u===503)return;let d=l instanceof G?`${l.status}`:String(l);console.warn("[notification-wc] failed to fetch",i,d);return}if(!this.#g(t))return;let r=Array.isArray(s)?s:Array.isArray(s?.notifications)?s.notifications:[],a=this.#m,o=a.size===0,c=this.hasAttribute("toast-new")?this.#y():null;for(let l of r)l?.id&&(a.has(l.id)||(this.dispatchEvent(new CustomEvent("notification-wc:new",{bubbles:!0,composed:!0,detail:{notification:l}})),!o&&c&&typeof c.show=="function"&&c.show({message:l.title||l.body||this.#u("new"),variant:l.type==="alert"||l.type==="stewardship"?"warning":"info",duration:5e3})),a.add(l.id));this.#a=r,this.#C()}};E("notification-wc",qr);var xw={watch:"Watch for updates",watching:"Watching",action:"Watch this page for updates",stop:"Stop watching this page"},Kr=class extends k{static observedAttributes=["variant","label","data-label-watch","data-label-watching","data-label-action","data-label-stop"];#t=null;#e=null;setup(){if(this.hasAttribute("server-sync")){let s=window;s.vbPageWatch={...s.vbPageWatch??{},serverSync:!0}}let t=this.#n();this.dataset.variant=t,this.querySelectorAll(":scope > [data-watch-wc]").forEach(s=>s.remove());let i=this.#s(t);this.#t=i,this.appendChild(i),this.#o(),this.#e=new MutationObserver(()=>this.#o()),this.#e.observe(i,{attributes:!0,attributeFilter:["aria-pressed"]}),Promise.resolve().then(()=>(Gr(),Wr)).catch(()=>{})}teardown(){this.#e?.disconnect(),this.#e=null,this.#t?.remove(),this.#t=null}attributeChangedCallback(t,i,s){i===s||!this.hasAttribute("data-upgraded")||this._reinit()}#i(t){return this.getAttribute(`data-label-${t}`)??xw[t]}#n(){let t=this.getAttribute("variant");return t==="compact"||t==="button"?t:"icon"}#s(t){let i=document.createElement("button");i.type="button",i.className="ghost",i.setAttribute("data-watch-page",""),i.setAttribute("data-watch-wc",""),i.setAttribute("data-watch-label-locked",""),i.setAttribute("aria-pressed","false");let s=document.createElement("icon-wc");return s.setAttribute("name","bookmark"),s.setAttribute("size",t==="icon"?"sm":"xs"),s.setAttribute("aria-hidden","true"),i.appendChild(s),t==="icon"?i.setAttribute("aria-label",this.#i("action")):i.appendChild(document.createElement("span")),i}#o(){let t=this.#t;if(!t)return;let i=t.getAttribute("aria-pressed")==="true";t.querySelector("icon-wc")?.setAttribute("name",i?"bookmark-check":"bookmark");let s=t.querySelector(":scope > span");s?(s.textContent=this.getAttribute("label")??this.#i(i?"watching":"watch"),t.removeAttribute("title")):t.setAttribute("title",i?this.#i("stop"):this.#i("action"))}};E("watch-wc",Kr);function od(e){let t=!1;try{t=sessionStorage.getItem("vb_optout")==="1"}catch{}let i=!1;if(typeof e?.consent=="function")try{i=e.consent()===!1}catch{i=!0}return{user:t,gpc:navigator.globalPrivacyControl===!0,dnt:navigator.doNotTrack==="1",consent:i}}function cd(e){let t=od(e);return t.user?"user":t.gpc?"gpc":t.dnt?"dnt":t.consent?"consent":null}function ti(e){return cd(e)!==null}function ld(e){return e?.closest?.("[data-vb-no-track]")!=null}function Cw(){let{dataset:e}=document.documentElement,t={};for(let i of Object.keys(e)){let s=e[i];s!=null&&s!==""&&(t[i]=s)}return t}var Tw=new Set(["track-history","track-history-params","no-track-history"]);function Lw(){let e={};for(let i of document.querySelectorAll('meta[name^="vb:"]')){let s=i.getAttribute("name")?.slice(3),n=i.getAttribute("content")?.trim();s&&Tw.has(s)||s&&n&&(e[s]=n)}let t=[];for(let i of document.querySelectorAll('meta[name="concept"]')){let s=i.getAttribute("content")?.trim();s&&t.push(s)}return t.length&&(e.concepts=t),e}function Nw(e,t){if(!t?.length)return e;for(let{pattern:i,replace:s}of t)if(i.test(e))return e.replace(i,s);return e}function Mw(e,t){let i=JSON.stringify(t);if(typeof navigator.sendBeacon=="function"){let s=new Blob([i],{type:"application/json"});if(navigator.sendBeacon(e,s))return!0}try{return fetch(e,{method:"POST",body:i,keepalive:!0,headers:{"content-type":"application/json"}}),!0}catch{return!1}}var B={config:null,queue:[]},be={sent:0,logged:0,iframeDisabled:!1},Yr=Symbol.for("vanilla-breeze.analytics"),Zr="vb:analytics-status";function us(){try{document.dispatchEvent(new CustomEvent(Zr))}catch{}}function Jr(e){return`${(B.config?.endpoint??"/api/analytics").replace(/\/+$/,"")}/${e}`}function ds(e,t){let i=B.config;if(!i)throw new Error("analytics: buildEnvelope called before init");let s=Nw(location.pathname+location.search,i.urlMasks),n=typeof i.context=="function"?i.context()??{}:{};return{name:e,ts:Date.now(),site:i.siteId,path:s,referrer:document.referrer||"",context:{...Cw(),...Lw(),...n},props:t??{}}}function hs(e,t){let i=B.config;if(!i||i.transport==="disabled")return!1;if(i.transport==="console")return console.log("%c[vb:analytics]","color:#0aa;font-weight:600",e,t),be.logged++,us(),!0;let s=Mw(Jr(e),t);return s&&(be.sent++,us()),s}function ud(){let e=B.config?.sampleRate??1;return e>=1?!0:Math.random()<e}var rd=null;function dd(){if(!B.config||ti(B.config)||document.documentElement.hasAttribute("data-vb-no-track")||!ud())return;let e=location.pathname+location.search;e!==rd&&(rd=e,hs("hit",ds("page.view",{})))}function _w(){let e,t=()=>{clearTimeout(e),e=setTimeout(dd,100)},i=history.pushState.bind(history);history.pushState=function(...n){i(...n),t()};let s=history.replaceState.bind(history);history.replaceState=function(...n){s(...n),t()},window.addEventListener("popstate",t)}function $w(e){let t={};for(let[i,s]of Object.entries(e.dataset)){if(i==="vbEvent"||!i.startsWith("vbEvent"))continue;let n=i.slice(7).replace(/^./,r=>r.toLowerCase());t[n]=s}return t}function Dw(e){if(!B.config||ti(B.config))return;let i=e.target?.closest?.("[data-vb-event]");if(!i||ld(i))return;let s=i.dataset.vbEvent;s&&Qr.track(s,$w(i))}function ad(){let e=document.querySelectorAll('a[href^="http"]');for(let t of e){if(t.hostname===location.hostname||ld(t)||t.hasAttribute("data-vb-analytics-wired"))continue;let i=encodeURIComponent(B.config?.siteId??"default"),s=`${Jr("click")}?site=${i}&from=${encodeURIComponent(location.pathname)}`,n=!t.hasAttribute("ping"),r=()=>{n&&(ti(B.config)?t.removeAttribute("ping"):t.setAttribute("ping",s))};t.addEventListener("click",r,{capture:!0}),t.addEventListener("auxclick",r,{capture:!0}),t.addEventListener("click",()=>{if(ti(B.config))return;let a=navigator.userAgent;/Firefox|Brave/.test(a)&&hs("click",ds("link.outbound",{to:t.hostname,href:t.href}))}),t.setAttribute("data-vb-analytics-wired","")}}function Xr(){if(!B.queue.length)return;let e=B.queue.splice(0);hs("events",{site:B.config?.siteId,events:e})}function Iw(){document.visibilityState==="hidden"&&Xr()}var Rw={endpoint:"/api/analytics",siteId:"default",transport:"disabled",sampleRate:1,consent:null,context:null,urlMasks:null,autoPageView:!0,autoOutboundLinks:!0,autoDeclarative:!0,allowInIframe:!1};function Pw(){try{return window.top!==window.self}catch{return!0}}var Qr={init(e={}){if(B.config)return;let t={...Rw,...e};if(B.config=t,globalThis[Yr]||(globalThis[Yr]=Qr),queueMicrotask(us),Pw()&&!t.allowInIframe){be.iframeDisabled=!0,t.transport="disabled",t.autoPageView=!1,t.autoOutboundLinks=!1,t.autoDeclarative=!1;return}t.transport==="disabled"&&(t.autoOutboundLinks=!1),t.autoDeclarative&&document.addEventListener("click",Dw,{capture:!0}),t.autoOutboundLinks&&(ad(),new MutationObserver(()=>ad()).observe(document.body,{childList:!0,subtree:!0})),t.autoPageView&&(dd(),_w()),document.addEventListener("visibilitychange",Iw),window.addEventListener("pagehide",Xr)},track(e,t={}){B.config&&(ti(B.config)||ud()&&hs("hit",ds(e,t)))},flush:Xr,setConsent(e){try{e?sessionStorage.removeItem("vb_optout"):sessionStorage.setItem("vb_optout","1")}catch{}us()},getStatus(){let e=B.config,t=od(e),i=cd(e),s=null;if(e)try{s=ds("page.view",{})}catch{s=null}let n=e?.transport??null;return{initialized:e!=null,active:e!=null&&n!=="disabled"&&i===null,optedOut:i!==null,reason:i,signals:t,transport:n,inIframe:be.iframeDisabled,endpoint:e?Jr("hit"):null,siteId:e?.siteId??null,sampleRate:e?.sampleRate??null,outboundLinks:e?.autoOutboundLinks??!1,queued:B.queue.length,sent:be.sent,logged:be.logged,collects:s?Object.keys(s):[],contextKeys:s?Object.keys(s.context):[],preview:s}},get config(){return B.config?{...B.config}:null}};function ta(){return globalThis[Yr]??Qr}var Fw="Analytics on this page",Ow=2;function qw(e){let t=Number.parseInt(e??"",10);return Number.isInteger(t)&&t>=1&&t<=6?t:Ow}var hd={gpc:"your browser sends a Global Privacy Control signal",dnt:"your browser sends Do Not Track",consent:"this site has not been given consent to collect analytics"};function Bw(e){if(!e||!e.initialized)return{state:"off",reason:"uninitialized",text:"Off. The analytics runtime is not running on this page, so nothing is sent."};if(e.inIframe)return{state:"off",reason:"iframe",text:"Off. Analytics does not run inside embedded frames, so nothing is sent."};if(e.reason==="user")return{state:"paused",reason:"user",text:"Paused for this tab. Nothing is being sent."};if(e.reason){let i=hd[e.reason];return{state:"off",reason:e.reason,text:`Off because ${i}. Nothing is sent.`}}if(e.transport==="disabled")return{state:"off",reason:"disabled",text:"Off. This site has analytics switched off, so nothing is sent."};if(e.transport==="console")return{state:"debug",reason:null,text:"Debug mode. Events are written to this browser\u2019s console, not sent anywhere."};let t=typeof e.sampleRate=="number"&&e.sampleRate<1?` (a ${Math.round(e.sampleRate*100)}% sample)`:"";return{state:"active",reason:null,text:`Active. Events from this page are sent to ${e.endpoint}${t}.`}}function jw(e){return e?.signals?["gpc","dnt","consent"].filter(t=>e.signals[t]):[]}var ea=class extends k{static get observedAttributes(){return["heading","heading-level"]}#t={};setup(){(!this.#t.status||!this.contains(this.#t.status))&&this.#s(),this.listen(this,"click",this.#i),this.listen(document,Zr,()=>this.refresh()),this.refresh()}attributeChangedCallback(t){this.#t.heading&&(t==="heading"&&(this.#t.heading.textContent=this.#e),t==="heading-level"&&this.#o())}get#e(){return this.getAttribute("heading")||Fw}get status(){let t=ta();return typeof t?.getStatus=="function"?t.getStatus():null}#i=t=>{let i=t.target?.closest?.("[data-analytics-action]");if(!i||!this.contains(i)||i.getAttribute("aria-disabled")==="true")return;let s=i.dataset.analyticsAction;s==="toggle"&&this.#n(),s==="refresh"&&this.refresh()};#n(){let t=!this.status?.signals?.user;ta().setConsent(!t),this.dispatchEvent(new CustomEvent(t?"analytics-panel:optout":"analytics-panel:optin",{bubbles:!0,composed:!0})),this.refresh()}#s(){let t=`analytics-panel-${Math.random().toString(36).slice(2,8)}`;this.innerHTML=`
614
521
  <header class="analytics-panel__header">
615
522
  <h2 data-part="heading"></h2>
616
523
  <p class="analytics-panel__status" role="status">
@@ -640,24 +547,7 @@ svg {
640
547
  server records your country from the request; your IP address is not
641
548
  stored.
642
549
  </p>
643
- `;for(let i of this.querySelectorAll("[data-part]"))this.#e[i.dataset.part??""]=i;this.#e.heading.textContent=this.#t,this.#n()}#n(){let t=sf(this.getAttribute("heading-level")),i={heading:t,"fields-heading":Math.min(t+1,6)};for(let[s,n]of Object.entries(i)){let r=this.#e[s];if(!r||r.localName===`h${n}`)continue;let a=document.createElement(`h${n}`);for(let{name:o,value:c}of r.attributes)a.setAttribute(o,c);a.textContent=r.textContent,r.replaceWith(a),this.#e[s]=a}}refresh(){if(!this.#e.status)return;let t=this.status,i=nf(t),s=this.#e;this.setAttribute("data-state",i.state),i.reason?this.setAttribute("data-reason",i.reason):this.removeAttribute("data-reason"),s.status.textContent!==i.text&&(s.status.textContent=i.text),this.#a(t);let n=!!t?.signals?.user,r=rf(t),a=n?"Resume analytics":"Pause analytics";if(s.toggle.textContent!==a&&(s.toggle.textContent=a),s.toggle.setAttribute("aria-pressed",String(n)),n&&r.length>0?s.toggle.setAttribute("aria-disabled","true"):s.toggle.removeAttribute("aria-disabled"),r.length){let c=r.map(l=>oc[l]).join(" and ");s.hint.textContent=n?`Resume is unavailable because ${c}.`:`Analytics stays off because ${c}; pausing as well changes nothing.`,s.hint.hidden=!1,s.toggle.setAttribute("aria-describedby",s.hint.id)}else s.hint.textContent="",s.hint.hidden=!0,s.toggle.removeAttribute("aria-describedby")}#a(t){let{data:i,empty:s}=this.#e;if(!t?.initialized||!t.preview){i.hidden=!0,i.replaceChildren(),s.hidden=!1,s.textContent="Nothing to show: the analytics runtime has not started on this page.";return}s.hidden=!0,i.hidden=!1;let n=[["Fields",t.collects.join(", ")],["Page path",t.preview.path],["Referrer",t.preview.referrer||"(none)"],["Page context",t.contextKeys.length?t.contextKeys.join(", "):"(none)"]];t.transport==="beacon"?(n.push(["Sent to",t.endpoint]),n.push(["Sent from this page",String(t.sent)])):t.transport==="console"&&n.push(["Logged on this page",String(t.logged)]),t.queued>0&&n.push(["Waiting to send",String(t.queued)]),t.outboundLinks&&n.push(["Outbound link clicks","Reported (site, page path, destination)"]);let r=document.createDocumentFragment();for(let[a,o]of n){let c=document.createElement("dt");c.textContent=a;let l=document.createElement("dd");l.textContent=o,r.append(c,l)}i.replaceChildren(r)}};b("analytics-panel",sn);var nn="data-brand-mark-img",af="(width < 48rem)",rn=class extends y{static observedAttributes=["src","src-dark","src-compact","compact-media","alt","wordmark","height"];#e=null;#t=null;#i=null;#s=!1;setup(){this.#o(),this.hasAttribute("src-dark")&&this.#n(),this.#c(),this.#t=new MutationObserver(()=>this.#p()),this.#t.observe(this,{childList:!0,characterData:!0,subtree:!0})}teardown(){this.#e?.disconnect(),this.#e=null,this.#t?.disconnect(),this.#t=null,this.#i=null,this.#s=!1}attributeChangedCallback(t,i,s){if(i!==s&&!(!this.isConnected||!this.hasAttribute("data-upgraded"))){if(t==="height"){this.#o();return}t==="src-dark"&&s!==null&&this.#n(),this.#c()}}#r(){let t=document.documentElement.getAttribute("data-mode");if(t==="dark")return!0;if(t==="light")return!1;let i=getComputedStyle(this).colorScheme||"";return/\bdark\b/.test(i)&&!/\blight\b/.test(i)?!0:/\blight\b/.test(i)&&!/\bdark\b/.test(i)?!1:(this.#i??matchMedia("(prefers-color-scheme: dark)")).matches}#n(){this.#s||(this.#s=!0,this.#i=matchMedia("(prefers-color-scheme: dark)"),this.listen(this.#i,"change",this.#a),this.listen(window,"vb:theme-change",this.#a),this.#e=new MutationObserver(this.#a),this.#e.observe(document.documentElement,{attributes:!0,attributeFilter:["data-mode","data-theme"]}))}#a=()=>{this.isConnected&&this.#c()};#o(){let t=this.getAttribute("height")?.trim();if(!t){this.style.removeProperty("--brand-mark-height"),this.getAttribute("style")||this.removeAttribute("style");return}this.style.setProperty("--brand-mark-height",/^\d+(\.\d+)?$/.test(t)?`${t}px`:t)}#l(){return this.querySelector(`:scope > [${nn}]`)}#c(){let t=this.getAttribute("src"),i=this.#l();if(!t){i?.remove();return}let s=this.getAttribute("src-dark"),n=s&&this.#r()?s:t;if(!(i instanceof HTMLPictureElement)||!i.querySelector(":scope > img")){i?.remove(),i=document.createElement("picture"),i.setAttribute(nn,"");let c=document.createElement("img");c.decoding="async",i.append(c),this.prepend(i)}let r=i.querySelector(":scope > img");r.getAttribute("src")!==n&&r.setAttribute("src",n);let a=this.getAttribute("src-compact"),o=i.querySelector(":scope > source");if(a){o||(o=document.createElement("source"),i.prepend(o));let c=this.getAttribute("compact-media")||af;o.getAttribute("media")!==c&&o.setAttribute("media",c),o.getAttribute("srcset")!==a&&o.setAttribute("srcset",a)}else o?.remove();this.#p()}#p(){let t=this.#l()?.querySelector(":scope > img");if(!t)return;let i=this.getAttribute("alt"),s=!this.hasAttribute("wordmark"),n;s&&i?n=i:this.#m()?n="":n=i??"",t.getAttribute("alt")!==n&&t.setAttribute("alt",n)}#m(){for(let t of this.childNodes)if(!(t instanceof Element&&t.hasAttribute(nn))&&t.textContent?.trim())return!0;return!1}};b("brand-mark",rn);var of="52rem",an=class extends HTMLElement{#e=null;connectedCallback(){let t=this.getAttribute("breakpoint")||of;this.#e=matchMedia(`(max-width: ${t})`),this.#e.addEventListener("change",this.#t),this.#t(void 0)}disconnectedCallback(){this.#e?.removeEventListener("change",this.#t),this.#e=null}#t=t=>{let i=this.#e?.matches??!1;if(i)this.setAttribute("data-mobile","");else{this.removeAttribute("data-mobile");let n=this.querySelector("[popover]");n?.matches(":popover-open")&&n.hidePopover?.()}let s=this.closest("header");if(s)for(let n of s.children)n!==this&&n.matches("nav, nav-bar, site-tools")&&(n.style.display=i?"none":"")}};customElements.get("mobile-menu")||customElements.define("mobile-menu",an);var q="interestfor",dc="interestForElement"in HTMLButtonElement.prototype,$=new WeakMap,qt=new WeakMap,ti=new Set,ln=!1,un=CSS.supports?.("anchor-name","--a")??!1;function cc(e){let t=String(e).trim(),i=t.match(/^([\d.]+)s$/);if(i)return parseFloat(i[1])*1e3;let s=t.match(/^([\d.]+)ms$/);return s?parseFloat(s[1]):parseFloat(t)||0}function hc(e,t){let i=getComputedStyle(e),s=i.getPropertyValue(t).trim();if(s.toLowerCase()!=="normal")return cc(s);let n=i.getPropertyValue("--interest-delay").trim();if(n&&n.toLowerCase()!=="normal"){let r=n.split(/\s+/).filter(a=>a.length>0);if(r.length>0){let a=t==="--interest-delay-start"?r[0]:r[1]||r[0];if(a.toLowerCase()!=="normal")return cc(a)}}return t==="--interest-delay-start"?500:250}var cf=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(","),lf="h1,h2,h3,h4,h5,h6,ul,ol,li,table,nav,header,footer,main,aside,article,section,form,blockquote,details,summary,dialog";function dn(e){if(e.getAttribute("popover")?.toLowerCase()!=="hint"||e.querySelector(cf)||e.querySelector(lf))return!1;for(let t of e.querySelectorAll("[role]")){let i=t.getAttribute("role").toLowerCase();if(!["presentation","none","generic","image"].includes(i))return!1}return!0}function uf(e,t){dn(t)?e.setAttribute("aria-describedby",t.id):(e.setAttribute("aria-details",t.id),e.setAttribute("aria-expanded","false"),t.hasAttribute("role")||t.setAttribute("role","tooltip"))}function J(e){let t=e.getAttribute(q);return t?document.getElementById(t):null}function Qe(e){let t=qt.get(e);return t?.invoker&&$.get(t.invoker)?.state==="full"?t.invoker:null}function oe(e){if($.has(e))return $.get(e);let t={state:"none",gainedTimer:null,lostTimer:null,longPressTimer:null};$.set(e,t);let i=J(e);return i&&uf(e,i),t}function pc(e,t){if(!e||!t||!e.isConnected||J(e)!==t)return!1;let i=Qe(t);if(i){if(i===e)return clearTimeout($.get(i).lostTimer),!1;if(!ae(i,t)||!e.isConnected||J(e)!==t)return!1}let s=oe(e);if(s.state!=="none")return!1;let n=new CustomEvent("interest",{bubbles:!1,cancelable:!0,detail:{source:e}});if(t.dispatchEvent(n),t.hasAttribute("popover")){try{t.showPopover()}catch{}hf(e,t)}s.state="full",qt.has(t)||qt.set(t,{});let r=qt.get(t);if(r.invoker=e,t.hasAttribute("popover")){let a=o=>{o.newState==="closed"&&ae(e,t)};r.toggleListener=a,t.addEventListener("toggle",a)}return ti.add(e),e.classList.add("interest-source"),t.classList.add("interest-target"),dn(t)||e.setAttribute("aria-expanded","true"),!0}function ae(e,t){if(!e||!t||J(e)!==t||Qe(t)!==e)return!1;let i=$.get(e);if(!i||i.state==="none")return!1;if(clearTimeout(i.gainedTimer),clearTimeout(i.lostTimer),t.dispatchEvent(new CustomEvent("loseinterest",{bubbles:!1,detail:{source:e}})),t.hasAttribute("popover"))try{t.hidePopover()}catch{}let s=qt.get(t);return s?.toggleListener&&t.removeEventListener("toggle",s.toggleListener),qt.delete(t),ti.delete(e),e.classList.remove("interest-source"),t.classList.remove("interest-target"),dn(t)||e.setAttribute("aria-expanded","false"),i.state="none",!0}function df(e){let t=oe(e);clearTimeout(t.gainedTimer);let i=hc(e,"--interest-delay-start");t.gainedTimer=setTimeout(()=>{let s=J(e);s&&pc(e,s)},i)}function on(e){let t=$.get(e);if(!t)return;clearTimeout(t.lostTimer);let i=hc(e,"--interest-delay-end");t.lostTimer=setTimeout(()=>{let s=J(e);s&&ae(e,s)},i)}function re(e){if(!un)return;let t=e.getAttribute(q),i=t?document.getElementById(t):null;if(!i?.id)return;let s=`--interest-${i.id}`;e.style.anchorName=s,i.style.positionAnchor=s}function hf(e,t){if(un)return;let i=e.getBoundingClientRect(),s=t.getBoundingClientRect(),n=8,r=8,a=i.top-s.height-n,o=i.left+(i.width-s.width)/2;a<r&&(a=i.bottom+n),o=Math.max(r,Math.min(o,window.innerWidth-s.width-r)),a=Math.max(r,Math.min(a,window.innerHeight-s.height-r)),t.style.top=`${a}px`,t.style.left=`${o}px`,t.style.margin="0"}function pf(e,t){if(ln||!e.isConnected)return;if(!J(e)){let r=e.closest(".interest-target");if(r){let a=Qe(r);a&&(t?clearTimeout($.get(a)?.lostTimer):on(a))}return}let s=oe(e),n=Qe(e);if(t)clearTimeout(s.lostTimer),n&&clearTimeout($.get(n)?.lostTimer),df(e);else if(clearTimeout(s.gainedTimer),s.state!=="none"&&on(e),n){let r=$.get(n);r&&clearTimeout(r.gainedTimer),on(n)}}function ff(){let e=(s,n)=>{for(let r=s.target;r;r=r.parentElement)pf(r,n)};document.body.addEventListener("mouseover",s=>e(s,!0)),document.body.addEventListener("mouseout",s=>e(s,!1)),document.body.addEventListener("focusin",s=>e(s,!0)),document.body.addEventListener("focusout",s=>e(s,!1)),document.body.addEventListener("keydown",s=>{if(s.key==="Escape")for(let n of ti){let r=J(n);r&&ae(n,r)}});let t=500;document.body.addEventListener("touchstart",s=>{ln=!0;let n=s.target.closest(`button[${q}]`);if(!n)return;let r=oe(n);r.longPressTimer=setTimeout(()=>{let a=J(n);a&&pc(n,a),r.longPressTimer=null},t)});let i=s=>{let n=s.target.closest(`button[${q}]`);if(!n)return;let r=$.get(n);r?.longPressTimer&&(clearTimeout(r.longPressTimer),r.longPressTimer=null)};document.body.addEventListener("touchend",s=>{i(s),ln=!1}),document.body.addEventListener("touchmove",i)}function mf(){let e=document.createElement("style");e.textContent=['@property --interest-delay-start { syntax: "normal | <time>"; inherits: false; initial-value: normal; }','@property --interest-delay-end { syntax: "normal | <time>"; inherits: false; initial-value: normal; }','@property --interest-delay { syntax: "*"; inherits: false; initial-value: normal; }'].join(`
644
- `),document.head.appendChild(e)}function Je(e){oe(e),re(e)}function cn(e){let t=$.get(e);if(t){if(clearTimeout(t.gainedTimer),clearTimeout(t.lostTimer),clearTimeout(t.longPressTimer),t.state!=="none"){let i=J(e);i&&ae(e,i)}e.classList.remove("interest-source"),$.delete(e),ti.delete(e)}}function lc(e=document){e.querySelectorAll(`[${q}]`).forEach(Je)}var uc=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.hasAttribute(q)&&Je(s),s.querySelectorAll(`[${q}]`).forEach(Je)}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;$.has(s)&&cn(s),s.querySelectorAll(`[${q}]`).forEach(n=>{$.has(n)&&cn(n)})}if(t.type==="attributes"&&t.target.nodeType===Node.ELEMENT_NODE){let i=t.target;i.hasAttribute(q)?$.has(i)||Je(i):$.has(i)&&cn(i)}}});dc||(mf(),ff(),document.documentElement.setAttribute("data-interest-polyfill",""),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{lc(),uc.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[q]})}):(lc(),uc.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[q]})));if(dc&&un){let e=()=>{document.querySelectorAll(`[${q}]`).forEach(re),new MutationObserver(t=>{for(let i of t){for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.hasAttribute(q)&&re(n),n.querySelectorAll(`[${q}]`).forEach(re)}i.type==="attributes"&&i.target.hasAttribute?.(q)&&re(i.target)}}).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[q]})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}Vt();mn();Ne();var gn="kbd[data-hotkey]";function vc(e=document){e.querySelectorAll(gn).forEach(bn)}function bn(e){if(e.hasAttribute("data-hotkey-init"))return;e.setAttribute("data-hotkey-init","");let t=e.dataset.hotkey;if(!t)return;let i=nt?Ut.mac:Ut.other,s=t.toLowerCase().split("+").map(r=>r.trim()),n=document.createDocumentFragment();s.forEach((r,a)=>{let o=document.createElement("kbd");o.textContent=i[r]??r.toUpperCase(),n.appendChild(o),a<s.length-1&&!nt&&n.appendChild(document.createTextNode("+"))}),e.replaceChildren(n),e.setAttribute("aria-label",e.textContent)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>vc()):vc();var vf=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(gn)&&bn(s),s.querySelectorAll(gn).forEach(n=>bn(n))}});vf.observe(document.documentElement,{childList:!0,subtree:!0});An();xn();Mn();$n();On();jn();zn();Vn();Gn();Yn();Jn();sr();nr();rr();lr();ur();var dr='input[type="color"][data-color]';function hr(e){if(e.hasAttribute("data-color-init")||e.closest("color-picker"))return;e.setAttribute("data-color-init","");let t=document.createElement("div");t.className="color-wrapper",e.parentNode.insertBefore(t,e),t.appendChild(e);let i=document.createElement("button");i.type="button",i.className="color-display";let s=document.createElement("span");s.className="color-swatch";let n=document.createElement("span");n.className="color-hex",i.appendChild(s),i.appendChild(n),t.appendChild(i);function r(){s.style.background=e.value,n.textContent=e.value}i.addEventListener("click",()=>e.click()),e.addEventListener("input",r),r()}function rl(e=document){e.querySelectorAll(dr).forEach(hr)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>rl()):rl();var nm=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(dr)&&hr(s),s.querySelectorAll(dr).forEach(hr)}});nm.observe(document.documentElement,{childList:!0,subtree:!0});var rm=window.matchMedia("(prefers-reduced-motion: reduce)");function al(){return rm.matches||document.documentElement.hasAttribute("data-motion-reduced")}var ol=0,am=new Map([["vb-fade-in","entrance"],["vb-slide-up","entrance"],["vb-pop","entrance"],["vb-slide-in-ltr","entrance"],["vb-slide-in-rtl","entrance"],["vb-fade-slide-up","entrance"],["vb-shadow-lift","entrance"],["vb-fade-out","exit"],["vb-collapse","exit"],["vb-slide-out-ltr","exit"],["vb-slide-out-rtl","exit"],["vb-shake","attention"],["vb-pulse","attention"],["vb-bounce","attention"],["vb-blink","attention"],["vb-neon-pulse","decoration"],["vb-3d-shift","decoration"],["vb-outline-glow-pulse","decoration"],["vb-rainbow","decoration"],["vb-gradient-flow","decoration"],["vb-shimmer","decoration"],["vb-shimmer-gradient","decoration"],["vb-glow","decoration"],["vb-float","decoration"]]),cl="__vbEffectsRuntime",ll=globalThis,g=ll[cl]??{_effects:new Map,_triggers:new Map,_transitions:new Map,_instances:new WeakMap,_triggerCleanups:new WeakMap,_wiredTriggers:new WeakMap,_transitionCleanups:new WeakMap,_transitionFallback:new WeakSet,_keyframePhase:am,_observer:null,_animationEndHandler:null,_autoBooted:!1,effect(e,t){this._effects.set(e,t),document.querySelectorAll("[data-effect]").forEach(i=>{if(!(i.getAttribute("data-effect")||"").split(/\s+/).includes(e))return;let n=!this._instances.get(i)?.has(e);this._initEffect(i,e),n&&i.hasAttribute("data-effect-active")&&this._instances.get(i)?.get(e)?.activate?.()})},trigger(e,t){this._triggers.set(e,t),document.querySelectorAll("[data-effect-processed][data-trigger]").forEach(i=>{let s=i.getAttribute("data-effect")?.split(/\s+/).filter(Boolean)||[];this._wireTrigger(i,s)})},transition(e,t){this._transitions.set(e,t),document.querySelectorAll("[data-transition-processed][data-transition]").forEach(i=>{if(!this._transitionFallback.has(i))return;let s=i.getAttribute("data-transition")||"",n=s.indexOf(":");if((n>-1?s.slice(0,n):s)!==e)return;this._transitionFallback.delete(i);let r=i;r.style.viewTransitionName="";let a=t(i,n>-1?s.slice(n+1):null);a&&this._transitionCleanups.set(i,a)})},uid(e){return e.id?e.id:(e._vbUid||(ol++,e._vbUid=`vb-${ol}`),e._vbUid)},theme(e,t){this._themes=this._themes||new Map,this._themes.set(e,t)},applyTheme(e,t=document.documentElement){let i=this._themes?.get(e);if(i)for(let[s,n]of Object.entries(i))t.style.setProperty(s,n)},swap(e){if(!document.startViewTransition){e(),queueMicrotask(()=>this._dispatchVtDone(document.body));return}let t=document.startViewTransition(e);return t.updateCallbackDone.then(()=>{this._dispatchVtDone(document.body)}).catch(()=>{}),t},_dispatchVtDone(e){e.querySelectorAll('[data-trigger~="vt"]').forEach(t=>{this.emit(t,"vb:vt-update-done",{})})},activate(e){this._activateEffects(e)},deactivate(e){e.hasAttribute("data-effect-active")&&(e.removeAttribute("data-effect-active"),this.emit(e,"vb:phase-change",{active:!1}))},onPhaseEnd(e,t,i){let s=n=>{n.detail?.phase===t&&i(n.detail)};return e.addEventListener("vb:effect-phase-end",s),()=>e.removeEventListener("vb:effect-phase-end",s)},registerKeyframe(e,t){this._keyframePhase.set(e,t)},observe(e=document){if(e.querySelectorAll("[data-effect]").forEach(i=>this._processElement(i)),e.querySelectorAll("[data-stagger]").forEach(i=>this._processStagger(i)),e.querySelectorAll("[data-transition]").forEach(i=>this._processTransition(i)),this._observer)return;this._observer=new MutationObserver(i=>{for(let s of i){if(s.type==="childList"){for(let n of s.addedNodes)n.nodeType===Node.ELEMENT_NODE&&this._processTree(n);for(let n of s.removedNodes)n.nodeType===Node.ELEMENT_NODE&&(n.isConnected||this._cleanupTree(n))}if(s.type==="attributes"){let n=s.target;s.attributeName==="data-effect"&&this._reconcileEffects(n),s.attributeName==="data-trigger"&&this._reconcileTrigger(n),s.attributeName==="data-stagger"&&this._processStagger(n),s.attributeName==="data-transition"&&this._processTransition(n)}}});let t=e===document?document.body:e;this._observer.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-effect","data-trigger","data-stagger","data-transition"]}),this._animationEndHandler||(this._animationEndHandler=i=>{let s=i.target;if(!(s instanceof Element)||!s.hasAttribute("data-effect"))return;let n=this._keyframePhase.get(i.animationName);n&&this.emit(s,"vb:effect-phase-end",{phase:n,animationName:i.animationName})},document.addEventListener("animationend",this._animationEndHandler))},disconnect(){this._observer&&(this._observer.disconnect(),this._observer=null),this._animationEndHandler&&(document.removeEventListener("animationend",this._animationEndHandler),this._animationEndHandler=null)},params(e){let t=getComputedStyle(e);return{get(i){return t.getPropertyValue(`--vb-${i}`).trim()},getNumber(i,s=0){let n=t.getPropertyValue(`--vb-${i}`).trim();return n?parseFloat(n):s},getTime(i,s=0){let n=t.getPropertyValue(`--vb-${i}`).trim();if(!n)return s;let r=parseFloat(n);return Number.isFinite(r)?/s\s*$/.test(n)&&!/ms\s*$/.test(n)?r*1e3:r:s},hasClass(i){return e.classList.contains(i)}}},emit(e,t,i={}){e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:i}))},prefersReducedMotion:al,_processTree(e){e.hasAttribute?.("data-effect")&&this._processElement(e),e.hasAttribute?.("data-stagger")&&this._processStagger(e),e.hasAttribute?.("data-transition")&&this._processTransition(e),e.querySelectorAll?.("[data-effect]").forEach(t=>this._processElement(t)),e.querySelectorAll?.("[data-stagger]").forEach(t=>this._processStagger(t)),e.querySelectorAll?.("[data-transition]").forEach(t=>this._processTransition(t))},_cleanupTree(e){e.hasAttribute?.("data-effect")&&this._cleanupElement(e),e.hasAttribute?.("data-transition")&&this._cleanupTransition(e),e.querySelectorAll?.("[data-effect]").forEach(t=>this._cleanupElement(t)),e.querySelectorAll?.("[data-transition]").forEach(t=>this._cleanupTransition(t))},_processElement(e){if(e.hasAttribute("data-effect-processed"))return;e.setAttribute("data-effect-processed","");let t=e.getAttribute("data-effect")?.split(/\s+/).filter(Boolean)||[];for(let i of t)this._initEffect(e,i);this._wireTrigger(e,t)},_initEffect(e,t){let i=this._effects.get(t);if(!i)return;let s=this._instances.get(e);if(s?.has(t))return;al();let n=i(e);n&&(s||(s=new Map,this._instances.set(e,s)),typeof n=="function"?s.set(t,{cleanup:n}):s.set(t,n))},_wireTrigger(e,t){let i=e.getAttribute("data-trigger");if(!i){this._activateEffects(e);return}let s=i.split(/\s+/).filter(Boolean);this._wiredTriggers??=new WeakMap;let n=this._wiredTriggers.get(e);n||(n=new Set,this._wiredTriggers.set(e,n));for(let r of s){if(n.has(r))continue;let a=r.indexOf(":"),o=a>-1?r.slice(0,a):r,c=a>-1?r.slice(a+1):null,l=this._triggers.get(o);if(!l)continue;n.add(r);let u=l(e,()=>this._activateEffects(e),c);if(u){let d=this._triggerCleanups.get(e);if(d){let h=d;this._triggerCleanups.set(e,()=>{h(),u()})}else this._triggerCleanups.set(e,u)}}},_activateEffects(e){e.setAttribute("data-effect-active",""),this.emit(e,"vb:phase-change",{active:!0});let t=this._instances.get(e);if(t)for(let[,i]of t)i.activate&&i.activate()},_cleanupElement(e){let t=this._instances.get(e);if(t){for(let[,s]of t)s.cleanup&&s.cleanup();this._instances.delete(e)}let i=this._triggerCleanups.get(e);i&&(i(),this._triggerCleanups.delete(e)),this._wiredTriggers?.delete(e)},_reconcileEffects(e){let t=e.getAttribute("data-effect")?.split(/\s+/).filter(Boolean)||[],i=this._instances.get(e);if(i)for(let[s,n]of i)t.includes(s)||(n.cleanup&&n.cleanup(),i.delete(s));for(let s of t)i?.has(s)||this._initEffect(e,s);e.hasAttribute("data-effect-processed")||(e.setAttribute("data-effect-processed",""),this._wireTrigger(e,t))},_reconcileTrigger(e){let t=this._triggerCleanups.get(e);t&&(t(),this._triggerCleanups.delete(e)),this._wiredTriggers?.delete(e);let i=e.getAttribute("data-effect")?.split(/\s+/).filter(Boolean)||[];this._wireTrigger(e,i)},_processStagger(e){let t=e.getAttribute("data-stagger")||"",i=e.children,s=i.length,n;if(t==="reverse")n=Array.from({length:s},(r,a)=>s-1-a);else if(t==="random"){let r=this._hashString(this.uid(e));n=Array.from({length:s},(o,c)=>c);let a=r;for(let o=s-1;o>0;o--){a^=a<<13,a^=a>>>17,a^=a<<5;let c=Math.abs(a)%(o+1);[n[o],n[c]]=[n[c],n[o]]}}else if(t==="grid"){let r=[];for(let a=0;a<s;a++){let o=getComputedStyle(i[a]),c=parseInt(o.gridRowStart,10),l=parseInt(o.gridColumnStart,10);r.push({i:a,dist:Number.isFinite(c)&&Number.isFinite(l)?c-1+(l-1):a})}r.sort((a,o)=>a.dist-o.dist),n=new Array(s),r.forEach((a,o)=>{n[a.i]=o})}else n=Array.from({length:s},(r,a)=>a);for(let r=0;r<s;r++)i[r].style.setProperty("--vb-stagger-index",String(n[r]))},_hashString(e){let t=5381;for(let i=0;i<e.length;i++)t=(t<<5)+t^e.charCodeAt(i);return t|0},_processTransition(e){if(e.hasAttribute("data-transition-processed"))return;e.setAttribute("data-transition-processed","");let t=e.getAttribute("data-transition");if(!t)return;let i=t.indexOf(":"),s=i>-1?t.slice(0,i):t,n=i>-1?t.slice(i+1):null,r=this._transitions.get(s);if(r){let a=r(e,n);a&&this._transitionCleanups.set(e,a)}else e.style.viewTransitionName=`${t}-${this.uid(e)}`,this._transitionFallback.add(e)},_cleanupTransition(e){let t=this._transitionCleanups.get(e);t&&(t(),this._transitionCleanups.delete(e)),this._transitionFallback.delete(e),e.style.viewTransitionName=""}};ll[cl]=g;if(typeof window<"u"){let e=window.VB;if(e&&e!==g)for(let t of Object.keys(e))t in g||(g[t]=e[t]);window.VB=g}typeof document<"u"&&!g._autoBooted&&(g._autoBooted=!0,document.body?g.observe():document.addEventListener("DOMContentLoaded",()=>g.observe(),{once:!0}));function om(e){let t=e.textContent;e.setAttribute("aria-label",t),e.innerHTML="",t.split(/(\s+)/).forEach((s,n)=>{if(/^\s+$/.test(s)){e.appendChild(document.createTextNode(s));return}let r=document.createElement("span");r.className="vb-reveal-chunk",r.textContent=s,r.style.setProperty("--i",String(Math.floor(n/2))),r.setAttribute("aria-hidden","true"),e.appendChild(r)})}function cm(e){let t=e.textContent;e.setAttribute("aria-label",t);let i=document.createElement("div");i.style.cssText=getComputedStyle(e).cssText,i.style.position="absolute",i.style.visibility="hidden",i.style.whiteSpace="normal",document.body.appendChild(i);let s=t.split(/\s+/).filter(Boolean),n=[],r="";s.forEach(a=>{let o=r?r+" "+a:a;i.textContent=o,i.style.width=getComputedStyle(e).width,i.scrollWidth>i.clientWidth&&r?(n.push(r),r=a):r=o}),r&&n.push(r),document.body.removeChild(i),n.length===0&&n.push(t),e.innerHTML="",n.forEach((a,o)=>{let c=document.createElement("span");c.className="vb-reveal-chunk",c.textContent=a,c.style.setProperty("--i",String(o)),c.setAttribute("aria-hidden","true"),e.appendChild(c),o<n.length-1&&e.appendChild(document.createTextNode(" "))})}g.effect("reveal",e=>{if(e.hasAttribute("data-effect-reveal-init")||(e.setAttribute("data-effect-reveal-init",""),g.prefersReducedMotion()))return;let t=e.classList.contains("line")?"line":"word",i=g.params(e),s=i.get("reveal-delay")||"80ms",n=i.get("reveal-duration")||"400ms";return e.style.setProperty("--reveal-delay",s),e.style.setProperty("--reveal-duration",n),t==="line"?cm(e):om(e),{activate(){e.setAttribute("data-effect-active","")},cleanup(){}}});g.effect("highlight",e=>{if(e.hasAttribute("data-effect-highlight-init"))return;e.setAttribute("data-effect-highlight-init","");let i=getComputedStyle(e).getPropertyValue("--vb-highlight-color").trim();return i&&e.style.setProperty("--highlight-color",i),g.prefersReducedMotion()&&e.setAttribute("data-effect-active",""),{activate(){e.setAttribute("data-effect-active","")},cleanup(){}}});gr();wr();var pl="vb:recently-visited",fm="vb:recently-visited:paused";function mm(){try{return localStorage.getItem(fm)==="1"}catch{return!1}}function gm(){return!!document.querySelector('meta[name="vb:no-track-history"]')}function bm(){try{let e=localStorage.getItem(pl);if(!e)return[];let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}function ym(e){try{localStorage.setItem(pl,JSON.stringify(e))}catch{}}function vm(e){if(!e)return"";let t=e.slice(1);if(!t)return"";let i=null;try{i=document.getElementById(t)}catch{}return i&&(i.textContent||"").trim().slice(0,80)||t}function Ar(){if(mm()||gm()||location.protocol==="file:"||location.protocol==="about:")return;let e=location.pathname+location.search,t=location.hash,i=(document.title||"").trim();if(!i)return;let s=vm(t),n=Date.now(),r=bm(),a=e+t;if((r[0]?r[0].url+(r[0].hash||""):"")===a)return;let c=r.filter(l=>l.url+(l.hash||"")!==a);c.unshift({url:e,hash:t,title:i,hashTitle:s,ts:n}),ym(c.slice(0,100))}var Er=typeof document<"u"?document.documentElement:null;Er&&!Er.hasAttribute("data-vb-recently-visited-init")&&(Er.setAttribute("data-vb-recently-visited-init",""),Ar(),window.addEventListener("pageshow",e=>{e.persisted&&Ar()}),window.addEventListener("hashchange",Ar));var wm=CSS.supports("anchor-name","--test"),Am=new Set(["BUTTON","A","AREA"]);function Em(e){return document.documentElement.hasAttribute("data-interest-polyfill")?!0:"interestForElement"in HTMLButtonElement.prototype?Am.has(e.tagName):!1}function kr(e,t){if(Em(e)){e.setAttribute("interestfor",t.id),t.addEventListener("toggle",l=>{l.newState==="open"&&li(e,t)});return}let i=null,s=null,n=t,r=()=>{clearTimeout(s),i=setTimeout(()=>{n.showPopover(),li(e,t)},200)},a=()=>{clearTimeout(i),s=setTimeout(()=>{n.hidePopover()},100)},o=()=>{clearTimeout(s),n.showPopover(),li(e,t)},c=()=>{clearTimeout(i),n.hidePopover()};e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",a),e.addEventListener("focus",o),e.addEventListener("blur",c),t.addEventListener("mouseenter",()=>clearTimeout(s)),t.addEventListener("mouseleave",a)}function xr(e,t){if(!wm)return;let i=`--tooltip-anchor-${t.id}`;e.style.anchorName=i,t.style.positionAnchor=i,t.setAttribute("data-anchor","")}function km(e){let t=e.getAttribute("title");if(!t)return;e.removeAttribute("title");let i=document.createElement("div");i.setAttribute("role","tooltip"),i.setAttribute("popover","hint"),i.id=`tooltip-${crypto.randomUUID().slice(0,8)}`,i.textContent=t;let s=e.dataset.tooltipPosition||"top";i.dataset.tooltipPosition=s;let n=document.createElement("span");n.className="tooltip-arrow",n.setAttribute("aria-hidden","true"),i.appendChild(n),e.after(i),e.setAttribute("aria-describedby",i.id),xr(e,i),kr(e,i)}function xm(e,t){let i=document.getElementById(t);i?.hasAttribute("popover")&&(e.hasAttribute("title")&&e.removeAttribute("title"),e.hasAttribute("aria-describedby")||e.setAttribute("aria-describedby",t),xr(e,i),kr(e,i))}function fl(e=document){e.querySelectorAll("[data-tooltip]").forEach(t=>{if(t.closest("tool-tip")||t.hasAttribute("data-tooltip-init"))return;t.setAttribute("data-tooltip-init","");let i=t.dataset.tooltip;i?xm(t,i):km(t)}),e.querySelectorAll("[aria-describedby]").forEach(t=>{let i=t.getAttribute("aria-describedby")??"",s=document.getElementById(i);!s?.hasAttribute("popover")||!s.matches('[role="tooltip"]')||t.closest("tool-tip")||t.hasAttribute("data-tooltip-init")||(t.setAttribute("data-tooltip-init",""),xr(t,s),kr(t,s))}),e.querySelectorAll("[popovertarget]").forEach(t=>{let i=t.getAttribute("popovertarget")??"",s=document.getElementById(i);!s?.hasAttribute("popover")||!s.matches('[role="tooltip"]')||s.hasAttribute("data-tooltip-click-init")||(s.setAttribute("data-tooltip-click-init",""),s.addEventListener("toggle",n=>{n.newState==="open"&&li(t,s)}))})}function li(e,t){if(t.hasAttribute("data-anchor"))return;let i=e.getBoundingClientRect(),s=t.dataset.tooltipPosition||"top",n=8,r=t.getBoundingClientRect(),a,o;switch(s){case"bottom":a=i.bottom+n,o=i.left+(i.width-r.width)/2;break;case"left":a=i.top+(i.height-r.height)/2,o=i.left-r.width-n;break;case"right":a=i.top+(i.height-r.height)/2,o=i.right+n;break;default:a=i.top-r.height-n,o=i.left+(i.width-r.width)/2;break}let c=8;o=Math.max(c,Math.min(o,window.innerWidth-r.width-c)),a=Math.max(c,Math.min(a,window.innerHeight-r.height-c)),t.style.top=`${a}px`,t.style.left=`${o}px`}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>fl()):fl();var Sr="[data-vt-name]";function Cr(e){e.hasAttribute("data-vt-name-init")||(e.setAttribute("data-vt-name-init",""),e.style.viewTransitionName=e.dataset.vtName)}function ml(e=document){e.querySelectorAll(Sr).forEach(Cr)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>ml()):ml();var Sm=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Sr)&&Cr(s),s.querySelectorAll(Sr).forEach(Cr)}});Sm.observe(document.documentElement,{childList:!0,subtree:!0});var ui='progress[data-type="ring"]',gl={xs:"2em",s:"3em",m:"4em",l:"6em",xl:"8em"};function yl(e){let t=e.max||100,i=e.value;return t>0?Math.round(i/t*100):0}function vl(e){let t=yl(e);e.style.setProperty("--progress",String(t));let i=e.parentElement?.querySelector(".progress-ring-label");i&&!e.dataset.label&&(i.textContent=t+"%")}function Tr(e){if(e.hasAttribute("data-enhanced"))return;e.setAttribute("data-enhanced",""),vl(e);let t=e.dataset.label,i=t==="none",s=!e.hasAttribute("value");if(!i&&!s){let n=document.createElement("div");n.className="progress-ring-wrap";let r=e.dataset.size;r&&gl[r]&&n.style.setProperty("--progress-ring-size",gl[r]),e.parentNode?.insertBefore(n,e),n.appendChild(e);let a=document.createElement("span");a.className="progress-ring-label",a.textContent=t||yl(e)+"%",a.setAttribute("aria-hidden","true"),n.appendChild(a)}}function bl(e=document){e.querySelectorAll(ui).forEach(t=>Tr(t))}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>bl()):bl();var Cm=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(ui)&&Tr(s),s.querySelectorAll(ui).forEach(n=>Tr(n))}if(t.type==="attributes"&&t.attributeName==="value"){let i=t.target;i.matches(ui)&&i.hasAttribute("data-enhanced")&&vl(i)}}});Cm.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]});function wl(e){document.querySelectorAll("browser-window").forEach(t=>{t.setAttribute("mode",e)}),document.querySelectorAll("code-block").forEach(t=>{t.setAttribute("theme",e)})}function Al(){let{effectiveMode:e}=T.getState();wl(e),window.addEventListener("vb:theme-change",i=>{wl(i.detail.effectiveMode)}),new MutationObserver(i=>{let{effectiveMode:s}=T.getState();for(let n of i)for(let r of n.addedNodes){if(r.nodeType!==Node.ELEMENT_NODE)continue;let a=r;a.tagName==="BROWSER-WINDOW"?a.setAttribute("mode",s):a.tagName==="CODE-BLOCK"&&a.setAttribute("theme",s),a.querySelectorAll("browser-window").forEach(o=>{o.setAttribute("mode",s)}),a.querySelectorAll("code-block").forEach(o=>{o.setAttribute("theme",s)})}}).observe(document.body,{childList:!0,subtree:!0})}var Pu=[{selector:"[data-wizard]",load:()=>Promise.resolve().then(()=>(xl(),kl))},{selector:"[data-gesture]",load:()=>Promise.resolve().then(()=>(hs(),ds))},{selector:"[data-keyboard-aware]",load:()=>Promise.resolve().then(()=>(Tl(),Cl))},{selector:"[data-focus-trap]",load:()=>Promise.resolve().then(()=>(Nl(),Ml))},{selector:"[data-scroll-hide]",load:()=>Promise.resolve().then(()=>(_l(),_m))},{selector:"[data-spotlight]",load:()=>Promise.resolve().then(()=>(Il(),$l))},{selector:"[data-splitter]",load:()=>Promise.resolve().then(()=>(On(),Mc))},{selector:"[data-back-to-top]",load:()=>Promise.resolve().then(()=>(mn(),yc))},{selector:"[data-hotkey]:not(kbd)",load:()=>Promise.resolve().then(()=>(Rl(),Pl))},{selector:'a[target="_blank"]',load:()=>Promise.resolve().then(()=>(Vl(),zl))},{selector:"[data-watch-page], watch-wc",load:()=>Promise.resolve().then(()=>(Ys(),Gs))},{selector:"img[data-responsive]",load:()=>Promise.resolve().then(()=>(Yl(),Gl))},{selector:"form-field[data-floating-label]",load:()=>Promise.resolve().then(()=>(Jl(),Zl))},{selector:"button[data-loading]",load:()=>Promise.resolve().then(()=>(eu(),tu))},{selector:"input[data-mask]",load:()=>Promise.resolve().then(()=>(nr(),Zc))},{selector:"input[data-accept]",load:()=>Promise.resolve().then(()=>(rr(),tl))},{selector:'input[type="file"][data-upload]',load:()=>Promise.resolve().then(()=>(Jn(),zc))},{selector:'input[type="range"][data-range]',load:()=>Promise.resolve().then(()=>(Yn(),Hc))},{selector:'input[type="number"][data-stepper]',load:()=>Promise.resolve().then(()=>(ur(),nl))},{selector:'input[type="checkbox"][data-switch]',load:()=>Promise.resolve().then(()=>(jn(),Nc))},{selector:"textarea[data-grow]",load:()=>Promise.resolve().then(()=>(Vn(),Bc))},{selector:"textarea[data-count]",load:()=>Promise.resolve().then(()=>(zn(),$c))},{selector:"fieldset[data-toggle-tags][data-max]",load:()=>Promise.resolve().then(()=>(lr(),el))},{selector:"form[data-autosave]",load:()=>Promise.resolve().then(()=>(sr(),Uc))},{selector:"form[data-vb-email-form]",load:()=>Promise.resolve().then(()=>(nu(),su))},{selector:"form[data-vb-newsletter-form]",load:()=>Promise.resolve().then(()=>(du(),uu))},{selector:"[data-copy], [data-copy-target], [data-paste-target]",load:()=>Promise.resolve().then(()=>(Vt(),no))},{selector:"[data-select-all]",load:()=>Promise.resolve().then(()=>(gr(),ul))},{selector:"[data-show-when], [data-hide-when]",load:()=>Promise.resolve().then(()=>(Gn(),Pc))},{selector:"[data-spoiler]",load:()=>Promise.resolve().then(()=>($n(),Lc))},{selector:"[data-math], code.language-math",load:()=>Promise.resolve().then(()=>(wr(),hl))},{selector:"time[data-format-date]",load:()=>Promise.resolve().then(()=>(xn(),xc))},{selector:"data[data-format-number]",load:()=>Promise.resolve().then(()=>(An(),wc))},{selector:"data[data-format-bytes]",load:()=>Promise.resolve().then(()=>(Mn(),Sc))},{selector:"[data-paged]",load:()=>Promise.resolve().then(()=>(wu(),vu))},{selector:"[data-sortable], [data-sort-target]",load:()=>Promise.resolve().then(()=>(Nu(),Mu))},{selector:"[data-toggle]",load:()=>Promise.resolve().then(()=>(Fu(),Ou))}];function Ru(e,t=document){for(let i of e)t.querySelector(i.selector)&&i.load()}var Zb=[{selector:"[data-emoji]",load:()=>Promise.resolve().then(()=>(Xu(),Ku))},{selector:"[data-highlights]",load:()=>Promise.resolve().then(()=>(Rs(),Xo))},{selector:"[data-command], [commandfor]",load:()=>Promise.resolve().then(()=>(td(),Qu))},{selector:"[data-markdown-editable]",load:()=>Promise.resolve().then(()=>(vd(),Lb))},{selector:"markdown-viewer[data-auto-mermaid], markdown-editor[data-auto-mermaid]",load:()=>Promise.resolve().then(()=>(Sd(),Db))},{selector:":is(img, video, iframe, canvas)[data-mock]",load:()=>Promise.resolve().then(()=>(_d(),Nd))},{selector:"[data-lorem]",load:()=>Promise.resolve().then(()=>(Id(),$d))}],Jb=[...Pu,...Zb];function qd(e=document){Ru(Jb,e)}function Ee(e){return[...e.querySelectorAll("input, select, textarea")].filter(t=>t.type!=="submit"&&t.type!=="button"&&t.type!=="hidden"&&!("honeypot"in t.dataset))}function Fd(e){return[...e.querySelectorAll("form-field[data-upgraded]")]}function Qb(e){return e.labels?.[0]?.textContent?.trim()??e.getAttribute("aria-label")??e.name??e.id}function Ae(e,t){let i=e.dataset.match;if(!i)return;let s=t.querySelector(`#${CSS.escape(i)}`)??t.querySelector(`[name="${CSS.escape(i)}"]`);if(s){if(e.setCustomValidity(""),e.value&&s.value&&e.value!==s.value){let n=e.dataset.messageMatch??"Values do not match";e.setCustomValidity(n);let r=Bd(e);r&&(r.textContent=n)}else if(e.validity.valid){let n=Bd(e);n&&(n.textContent="")}}}function Bd(e){let t=e.getAttribute("aria-describedby")?.split(/\s+/)??[];for(let s of t){let n=document.getElementById(s);if(n?.tagName==="OUTPUT"&&n.classList.contains("error"))return n}return e.closest("form-field")?.querySelector("output.error")??null}function Od(e){let i=[...e.querySelectorAll('input[type="checkbox"]')].filter(o=>o.checked).length,s=parseInt(e.dataset.minChecked??"0",10),n=parseInt(e.dataset.maxChecked??"999",10),r=e.querySelector(":scope > output"),a=null;return i<s&&(a=e.dataset.messageMinChecked??`Select at least ${s}`),i>n&&(a=e.dataset.messageMaxChecked??`Select no more than ${n}`),r&&(r.textContent=a??""),a?e.dataset.invalid="":delete e.dataset.invalid,!a}function Pd(e){let t=e.querySelector("[data-form-summary]");if(t)return{el:t,type:"authored"};let i=e.querySelector("output.error-summary");return i?{el:i,type:"legacy"}:null}function Mi(e,t,{focus:i=!1}={}){if(!t)return;let s=[];for(let n of Ee(e))n.validity.valid||s.push({id:n.id||n.name,label:Qb(n),message:n.validationMessage});for(let n of e.querySelectorAll("fieldset[data-invalid]")){let r=n.querySelector(":scope > output");s.push({id:n.id||"",label:n.querySelector("legend")?.textContent?.trim()??"Group",message:r?.textContent||"Invalid selection"})}if(s.length===0){Rd(t);return}if(t.type==="authored"){let n=t.el.querySelector("[data-summary-list]");if(n){n.innerHTML="";for(let r of s){let a=document.createElement("li"),o=document.createElement("a");o.href=r.id?`#${r.id}`:"#",o.textContent=`${r.label}: ${r.message}`,a.appendChild(o),n.appendChild(a)}}t.el.removeAttribute("hidden"),t.el.dataset.visible=""}else{let n=s.length,r=s.map(a=>`<li><a href="${a.id?`#${a.id}`:"#"}">${a.label}: ${a.message}</a></li>`).join(`
645
- `);t.el.innerHTML=`<p>Please fix ${n} error${n===1?"":"s"}:</p>
646
- <ul>
647
- ${r}
648
- </ul>`}i&&t.el.focus()}function Rd(e){if(e)if(e.type==="authored"){delete e.el.dataset.visible;let t=e.el.querySelector("[data-summary-list]");t&&e.el.addEventListener("transitionend",()=>{e.el.dataset.visible||(t.innerHTML="")},{once:!0})}else e.el.innerHTML=""}function ty(e){e&&e.el.addEventListener("click",t=>{let i=t.target.closest('a[href^="#"]');if(!i)return;t.preventDefault();let s=i.getAttribute("href").slice(1),n=document.getElementById(s);n&&(n.scrollIntoView({behavior:"smooth",block:"center"}),n.focus())})}function ey(e){for(let t of Ee(e))t.focus({preventScroll:!0}),t.blur()}async function iy(e){let t=e.querySelector('[type="submit"]');e.dataset.submitting="",delete e.dataset.error,t&&t.setAttribute("aria-disabled","true");try{let i=new FormData(e),s=await fetch(e.action,{method:e.method||"post",body:i});if(delete e.dataset.submitting,t&&t.removeAttribute("aria-disabled"),!s.ok){if((s.headers.get("content-type")??"").includes("application/json")){let a=await s.json();if(a.errors){sy(e,a.errors);return}}throw new Error(`Server error: ${s.status}`)}e.dataset.success="";let n=e.querySelector("[data-form-success]");n&&(n.hidden=!1,n.focus())}catch{delete e.dataset.submitting,t&&t.removeAttribute("aria-disabled"),e.dataset.error="network"}}function sy(e,t){e.dataset.error="";let i=Fd(e),s=[];for(let n of i){let r=n.querySelector("input, textarea, select");if(!r)continue;let a=t[r.name];a&&(n.setError(a),s.push(n))}if(s.length>0){let n=Pd(e);Mi(e,n,{focus:!0})}for(let n of i)n.querySelector("input, textarea, select")?.addEventListener("input",()=>n.clearError(),{once:!0})}function Ea(e){if(e.hasAttribute("data-vb-enhanced"))return;e.setAttribute("novalidate",""),e.setAttribute("data-vb-enhanced","");let t=Pd(e);t&&ty(t);for(let i of Ee(e))if(i.dataset.match){i.addEventListener("input",()=>Ae(i,e)),i.addEventListener("blur",()=>Ae(i,e));let s=i.dataset.match,n=e.querySelector(`#${CSS.escape(s)}`)??e.querySelector(`[name="${CSS.escape(s)}"]`);n&&n.addEventListener("input",()=>Ae(i,e))}for(let i of e.querySelectorAll("fieldset[data-min-checked], fieldset[data-max-checked]"))i.addEventListener("change",()=>{Od(i),t&&Mi(e,t)});e.addEventListener("submit",i=>{i.preventDefault();let s=Fd(e);for(let o of s)o.validate();for(let o of Ee(e))o.dataset.match&&Ae(o,e);for(let o of e.querySelectorAll("fieldset[data-min-checked], fieldset[data-max-checked]"))Od(o);if(ey(e),!(e.checkValidity()&&![...e.querySelectorAll("fieldset[data-invalid]")].length)){if(t)Mi(e,t,{focus:!0});else{let o=e.querySelector(":invalid");o&&(o.scrollIntoView({behavior:"smooth",block:"center"}),o.focus())}return}Rd(t);let r=new CustomEvent("vb:beforesubmit",{bubbles:!0,cancelable:!0,detail:{form:e}});if(e.dispatchEvent(r),r.defaultPrevented)return;let a=e.dataset.submit??"native";if(a==="fetch")iy(e);else if(a==="event"){let o=new CustomEvent("vb:submit",{bubbles:!0,cancelable:!0,detail:new FormData(e)});e.dispatchEvent(o)}else e.submit()}),t&&e.addEventListener("input",()=>{requestAnimationFrame(()=>{for(let i of Ee(e))i.dataset.match&&Ae(i,e);Mi(e,t)})})}function jd(){for(let t of document.querySelectorAll("form[data-validate]"))Ea(t);new MutationObserver(t=>{for(let i of t)for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.matches?.("form[data-validate]")&&Ea(n),n.querySelectorAll?.("form[data-validate]").forEach(r=>Ea(r))}}).observe(document.body,{childList:!0,subtree:!0})}var Hd='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"/><circle cx="12" cy="12" r="3"/></svg>',ny='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"/><path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"/><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"/><path d="m2 2 20 20"/></svg>';function ka(e){let t=e.querySelector('input[type="password"]');if(!t||e.dataset.enhanced==="password")return;e.dataset.enhanced="password";let i=document.createElement("div");i.className="password-wrapper",t.parentNode.insertBefore(i,t),i.appendChild(t);let s=document.createElement("button");s.type="button",s.className="password-toggle",s.setAttribute("aria-label","Show password"),s.setAttribute("aria-pressed","false"),s.innerHTML=Hd,i.appendChild(s),s.addEventListener("click",()=>{let n=t.type==="password";t.type=n?"text":"password",s.setAttribute("aria-pressed",String(n)),s.setAttribute("aria-label",n?"Hide password":"Show password"),s.innerHTML=n?ny:Hd})}function xa(e){let t=e.querySelector('input[data-type="otp"], input[data-type="pin"]');if(!t||e.dataset.enhanced==="otp")return;e.dataset.enhanced="otp";let i=parseInt(t.dataset.length||"6",10);t.type="hidden",t.removeAttribute("inputmode"),t.removeAttribute("pattern");let s=document.createElement("div");s.className="otp-wrapper",t.parentNode.insertBefore(s,t.nextSibling);let n=[];for(let a=0;a<i;a++){let o=document.createElement("input");o.type="text",o.inputMode="numeric",o.maxLength=1,o.pattern="[0-9]",o.className="otp-digit",o.setAttribute("aria-label",`Digit ${a+1} of ${i}`),n.push(o),s.appendChild(o)}function r(){t.value=n.map(a=>a.value).join(""),t.dispatchEvent(new Event("input",{bubbles:!0}))}n.forEach((a,o)=>{a.addEventListener("input",c=>{let l=c.target.value;if(l&&!/^\d$/.test(l)){c.target.value="";return}l&&o<n.length-1&&n[o+1].focus(),r()}),a.addEventListener("keydown",c=>{c.key==="Backspace"&&!c.target.value&&o>0&&n[o-1].focus(),c.key==="ArrowLeft"&&o>0&&(c.preventDefault(),n[o-1].focus()),c.key==="ArrowRight"&&o<n.length-1&&(c.preventDefault(),n[o+1].focus())}),a.addEventListener("paste",c=>{c.preventDefault();let u=((c.clipboardData||window.clipboardData)?.getData("text")??"").replace(/\D/g,"").slice(0,i).split("");u.forEach((h,p)=>{n[p]&&(n[p].value=h)});let d=n.findIndex(h=>!h.value);d!==-1?n[d].focus():u.length>0&&n[Math.min(u.length-1,i-1)].focus(),r()}),a.addEventListener("focus",()=>{a.select()})}),e.addEventListener("click",a=>{a.target===e&&n[0].focus()})}function Sa(e){let t=e.querySelector("input[data-strength]");if(!t||e.dataset.enhanced==="strength")return;e.dataset.enhanced="strength";let i=t.dataset.rules||"length:8",s=ry(i),n=document.createElement("div");n.className="strength-meter";let r=document.createElement("meter");r.min=0,r.max=s.length,r.low=Math.ceil(s.length*.4),r.high=Math.ceil(s.length*.75),r.optimum=s.length,r.value=0,r.className="xs";let a=document.createElement("span");a.className="strength-label",a.textContent="",n.appendChild(r),n.appendChild(a);let o=document.createElement("ul");o.className="strength-rules",o.setAttribute("aria-label","Password requirements"),s.forEach(l=>{let u=document.createElement("li");u.dataset.rule=l.type,u.textContent=l.label,o.appendChild(u)}),(e.querySelector(".password-wrapper")||t).insertAdjacentElement("afterend",n),n.insertAdjacentElement("afterend",o),t.addEventListener("input",()=>{let l=t.value,u=0;s.forEach((h,p)=>{let f=ay(h,l),m=o.children[p];m.dataset.met=f?"":void 0,f?(m.setAttribute("data-met",""),u++):m.removeAttribute("data-met")}),r.value=u;let d=u/s.length;l.length===0?(a.textContent="",n.dataset.level=""):d<.4?(a.textContent="Weak",n.dataset.level="weak"):d<.75?(a.textContent="Fair",n.dataset.level="fair"):d<1?(a.textContent="Good",n.dataset.level="good"):(a.textContent="Strong",n.dataset.level="strong")})}function ry(e){return e.split(",").map(t=>{let[i,s]=t.trim().split(":");switch(i){case"length":return{type:i,param:parseInt(s)||8,label:`At least ${s||8} characters`};case"uppercase":return{type:i,label:"One uppercase letter"};case"lowercase":return{type:i,label:"One lowercase letter"};case"number":return{type:i,label:"One number"};case"special":return{type:i,label:"One special character"};default:return{type:i,label:i}}})}function ay(e,t){switch(e.type){case"length":return t.length>=(e.param||8);case"uppercase":return/[A-Z]/.test(t);case"lowercase":return/[a-z]/.test(t);case"number":return/\d/.test(t);case"special":return/[^A-Za-z0-9]/.test(t);default:return!1}}function oy(){document.querySelectorAll('form-field:has(input[type="password"])').forEach(ka)}function cy(){document.querySelectorAll('form-field:has(input[data-type="otp"]), form-field:has(input[data-type="pin"])').forEach(xa)}function ly(){document.querySelectorAll("form-field:has(input[data-strength])").forEach(Sa)}function zd(){oy(),cy(),ly(),new MutationObserver(t=>{for(let i of t)for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.matches?.('form-field:has(input[type="password"])')&&ka(n),(n.matches?.('form-field:has(input[data-type="otp"])')||n.matches?.('form-field:has(input[data-type="pin"])'))&&xa(n),n.matches?.("form-field:has(input[data-strength])")&&Sa(n),n.querySelectorAll?.('form-field:has(input[type="password"])')?.forEach(ka),n.querySelectorAll?.('form-field:has(input[data-type="otp"]), form-field:has(input[data-type="pin"])')?.forEach(xa),n.querySelectorAll?.("form-field:has(input[data-strength])")?.forEach(Sa)}}).observe(document.body,{childList:!0,subtree:!0})}function uy(e){let t=Date.now(),i=e*7+t%9973&65535;return btoa(JSON.stringify({s:e,t,c:i}))}function dy(e,t,i){let s=0,n=e.submitAt-(e.firstInteractionAt??e.submitAt),r=t.querySelector("[data-honeypot]");return r&&r.value.trim()&&(s+=80),[...t.querySelectorAll('input[type="text"], input[type="email"], input[type="tel"], textarea')].filter(o=>o.value.trim()&&!("honeypot"in o.dataset)).length>0&&e.keyboardEventCount===0&&(s+=30),e.fieldFocusCount===0&&(s+=40),!i&&!e.mouseMovedInForm&&(s+=20),n<1e3?s+=80:n<3e3&&(s+=50),Math.min(s,100)}function hy(e){return new Promise((t,i)=>{let s=document.createElement("script");s.src=e,s.async=!0,s.onload=t,s.onerror=i,document.head.appendChild(s)})}async function py(e,t){if(!document.querySelector("[data-cf-turnstile-loaded]"))try{await hy("https://challenges.cloudflare.com/turnstile/v0/api.js"),document.head.dataset.cfTurnstileLoaded="";let i=document.createElement("div");i.className="cf-turnstile",i.dataset.sitekey=t,i.dataset.size="invisible",e.appendChild(i)}catch{}}function Ca(e){if(e.hasAttribute("data-bot-enhanced"))return;e.setAttribute("data-bot-enhanced","");let t={fieldFocusCount:0,keyboardEventCount:0,mouseMovedInForm:!1,firstInteractionAt:null,submitAt:null},i=navigator.maxTouchPoints>0;e.addEventListener("focusin",s=>{s.target.matches("input, textarea, select")&&!("honeypot"in s.target.dataset)&&(t.fieldFocusCount++,t.firstInteractionAt??=Date.now())},{capture:!0}),e.addEventListener("keydown",s=>{s.target.matches("input, textarea")&&t.keyboardEventCount++},{capture:!0}),i||e.addEventListener("mousemove",()=>{t.mouseMovedInForm=!0},{once:!0}),e.addEventListener("vb:beforesubmit",s=>{t.submitAt=Date.now();let n=dy(t,e,i),r=e.querySelector("[data-bot-score-field]");if(r||(r=document.createElement("input"),r.type="hidden",r.name="_vb_score",r.dataset.botScoreField="",e.appendChild(r)),r.value=uy(n),n>=80){s.preventDefault(),e.dispatchEvent(new CustomEvent("vb:botblocked",{bubbles:!0,detail:{score:n}}));return}n>=60&&e.dataset.turnstileSitekey&&py(e,e.dataset.turnstileSitekey)})}function Vd(){for(let t of document.querySelectorAll("form[data-bot-protection]"))Ca(t);new MutationObserver(t=>{for(let i of t)for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.matches?.("form[data-bot-protection]")&&Ca(n),n.querySelectorAll?.("form[data-bot-protection]").forEach(r=>Ca(r))}}).observe(document.body,{childList:!0,subtree:!0})}var it=null,Ni=new Map,Ta=null;function fy(){if(typeof window<"u"&&window.__VB_COMPONENT_BASE)return String(window.__VB_COMPONENT_BASE).replace(/\/$/,"");if(typeof document<"u"){let e=document.querySelectorAll('script[src*="vanilla-breeze"]');for(let t of e){let i=t.getAttribute("src");if(i){let s=i.lastIndexOf("/");if(s!==-1)return i.slice(0,s)}}}return"/cdn"}async function my(){if(it)return it;let e=fy();it=new Map;try{let t=await fetch(`${e}/components/manifest.json`);if(!t.ok)throw new Error(`HTTP ${t.status}`);let i=await t.json();for(let[s,n]of Object.entries(i))it.set(s,`${e}/components/${n.file}`)}catch{console.warn("[VB] Component manifest unavailable \u2014 autoloader disabled")}return it}async function Wd(e){if(customElements.get(e))return;if(Ni.has(e))return Ni.get(e);let t=it?.get(e);if(!t)return;let i=import(t).then(()=>customElements.whenDefined(e)).then(()=>{}).catch(s=>{console.warn(`[VB] Failed to autoload ${e}:`,s),Ni.delete(e)});return Ni.set(e,i),i}function Ud(e){if(!it)return;let t=e===document?document.querySelectorAll("*"):e.querySelectorAll?.("*")||[],i=new Set;for(let s of t){let n=s.localName;n.includes("-")&&!customElements.get(n)&&it.has(n)&&i.add(n)}for(let s of i)Wd(s)}async function Gd(){await my(),Ud(document),!Ta&&(Ta=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i,n=s.localName;n.includes("-")&&it?.has(n)&&Wd(n),s.querySelectorAll&&Ud(s)}}),Ta.observe(document.documentElement,{childList:!0,subtree:!0}))}et();$t();g.trigger("scroll",(e,t)=>{if(g.prefersReducedMotion()){t();return}let i=new IntersectionObserver(([s])=>{s.isIntersecting&&(i.disconnect(),t())},{threshold:.1});return i.observe(e),()=>i.disconnect()});g.trigger("hover",(e,t)=>{function i(){e.removeAttribute("data-effect-active"),e.offsetWidth,t()}function s(){e.removeAttribute("data-effect-active")}return e.addEventListener("pointerenter",i),e.addEventListener("pointerleave",s),()=>{e.removeEventListener("pointerenter",i),e.removeEventListener("pointerleave",s)}});g.trigger("click",(e,t)=>{function i(){e.removeAttribute("data-effect-active"),e.offsetWidth,t()}return e.addEventListener("click",i),()=>e.removeEventListener("click",i)});g.trigger("time",(e,t,i)=>{let s=parseInt(i||"0",10),n=setTimeout(t,s);return()=>clearTimeout(n)});g.trigger("intersect",(e,t,i)=>{if(g.prefersReducedMotion()){t();return}if((i||"once")==="toggle"){let r=new IntersectionObserver(([a])=>{a.isIntersecting?t():g.deactivate(e)},{threshold:.1});return r.observe(e),()=>r.disconnect()}let n=new IntersectionObserver(([r])=>{r.isIntersecting&&(n.disconnect(),t())},{threshold:.1});return n.observe(e),()=>n.disconnect()});g.trigger("media",(e,t,i)=>{if(!i)return;let s=window.matchMedia(i);function n(){s.matches?t():g.deactivate(e)}return s.addEventListener("change",n),n(),()=>s.removeEventListener("change",n)});g.trigger("event",(e,t,i)=>{if(!i)return;function s(){e.removeAttribute("data-effect-active"),e.offsetWidth,t()}return e.addEventListener(i,s),()=>e.removeEventListener(i,s)});g.trigger("vt",(e,t)=>{function i(){e.removeAttribute("data-effect-active"),e.offsetWidth,t()}return e.addEventListener("vb:vt-update-done",i),()=>e.removeEventListener("vb:vt-update-done",i)});g.transition("morph",e=>{let t=`morph-${g.uid(e)}`;return e.style.viewTransitionName=t,()=>{e.style.viewTransitionName=""}});g.transition("slide",e=>{let t=`slide-${g.uid(e)}`;return e.style.viewTransitionName=t,e.style.viewTransitionClass="slide-left",()=>{e.style.viewTransitionName="",e.style.viewTransitionClass=""}});g.transition("fade",e=>{let t=`fade-${g.uid(e)}`;return e.style.viewTransitionName=t,e.style.viewTransitionClass="fade",()=>{e.style.viewTransitionName="",e.style.viewTransitionClass=""}});g.transition("scale",e=>{let t=`scale-${g.uid(e)}`;return e.style.viewTransitionName=t,e.style.viewTransitionClass="scale",()=>{e.style.viewTransitionName="",e.style.viewTransitionClass=""}});g.transition("stagger",e=>{let t=e.children;for(let i=0;i<t.length;i++){let s=t[i];s.style.viewTransitionName=`stagger-${g.uid(e)}-${i}`,s.style.viewTransitionClass="fade"}return()=>{for(let i=0;i<t.length;i++)t[i].style.viewTransitionName="",t[i].style.viewTransitionClass=""}});g.transition("none",e=>{let t=`none-${g.uid(e)}`;return e.style.viewTransitionName=t,e.style.viewTransitionClass="none",()=>{e.style.viewTransitionName="",e.style.viewTransitionClass=""}});g.transition("effect",(e,t)=>{let i=`effect-${g.uid(e)}`;return e.style.viewTransitionName=i,e.style.viewTransitionClass=t||"fade",()=>{e.style.viewTransitionName="",e.style.viewTransitionClass=""}});g.effect("glitch",e=>{e.hasAttribute("data-effect-glitch-init")||(e.setAttribute("data-effect-glitch-init",""),e.setAttribute("data-glitch-text",e.textContent))});function gy(e){let t=e.textContent;e.setAttribute("aria-label",t),e.innerHTML="",t.split(/(\s+)/).forEach((s,n)=>{if(/^\s+$/.test(s)){e.appendChild(document.createTextNode(s));return}let r=document.createElement("span");r.className="vb-blur-chunk",r.textContent=s,r.style.setProperty("--i",String(Math.floor(n/2))),r.setAttribute("aria-hidden","true"),e.appendChild(r)})}function by(e){let t=e.textContent;e.setAttribute("aria-label",t);let i=t.split(/\s+/).filter(Boolean),s=[],n="",r=e.offsetWidth,a=document.createElement("span");a.style.visibility="hidden",a.style.position="absolute",a.style.font=getComputedStyle(e).font,document.body.appendChild(a),i.forEach(o=>{let c=n?n+" "+o:o;a.textContent=c,a.offsetWidth>r&&n?(s.push(n),n=o):n=c}),n&&s.push(n),document.body.removeChild(a),s.length===0&&s.push(t),e.innerHTML="",s.forEach((o,c)=>{let l=document.createElement("span");l.className="vb-blur-chunk",l.textContent=o,l.style.setProperty("--i",String(c)),l.setAttribute("aria-hidden","true"),e.appendChild(l),c<s.length-1&&e.appendChild(document.createTextNode(" "))})}g.effect("blur-reveal",e=>{if(e.hasAttribute("data-effect-blur-reveal-init")||(e.setAttribute("data-effect-blur-reveal-init",""),g.prefersReducedMotion()))return;let t=e.classList.contains("line")?"line":"word",i=g.params(e).get("blur-reveal-delay")||"80ms";return e.style.setProperty("--blur-delay",i),t==="line"?by(e):gy(e),{activate(){e.setAttribute("data-effect-active","")},cleanup(){}}});function yy(e,t,i,s){let n=0;function r(){n<=t.length?(e.firstChild.textContent=t.slice(0,n),n++,setTimeout(r,i)):s&&s()}r()}function vy(e,t,i){let s=e.firstChild.textContent,n=s.length;function r(){n>=0?(e.firstChild.textContent=s.slice(0,n),n--,setTimeout(r,t/2)):i&&i()}r()}function wy(e){let t=e.getAttribute("data-typewriter-text"),i=g.params(e),s=i.getTime("typewriter-speed",50),n=i.getTime("typewriter-delay",0),a=e.classList.contains("loop")?2e3:null;e.textContent="";let o=document.createTextNode("");if(e.appendChild(o),!e.classList.contains("no-cursor")){let u=document.createElement("span");u.className="vb-typewriter-cursor",u.textContent="|",u.setAttribute("aria-hidden","true"),e.appendChild(u)}function l(){yy(e,t,s,()=>{a!==null&&setTimeout(()=>{vy(e,s,()=>{setTimeout(l,400)})},a)})}setTimeout(l,n)}g.effect("typewriter",e=>{if(e.hasAttribute("data-effect-typewriter-init"))return;e.setAttribute("data-effect-typewriter-init","");let t=e.textContent.trim();if(e.setAttribute("data-typewriter-text",t),e.setAttribute("aria-label",t),!g.prefersReducedMotion())return e.textContent="",{activate(){wy(e)},cleanup(){}}});var Yd="!<>-_\\/[]{}=+*^?#";function Kd(e){return e[Math.floor(Math.random()*e.length)]}function Ay(e){let t=e.getAttribute("data-scramble-text"),i=g.params(e),s=i.getTime("scramble-duration",1500),n=i.get("scramble-chars")||Yd,r=i.getTime("scramble-speed",30),a=t.length,o=0,c=Math.ceil(s/r);function l(){let u=o/c,d=Math.floor(u*a),h="";for(let p=0;p<a;p++)p<d?h+=t[p]:t[p]===" "?h+=" ":h+=Kd(n);e.textContent=h,o++,o<=c?setTimeout(l,r):e.textContent=t}l()}g.effect("scramble",e=>{if(e.hasAttribute("data-effect-scramble-init"))return;e.setAttribute("data-effect-scramble-init","");let t=e.textContent.trim();if(e.setAttribute("data-scramble-text",t),e.setAttribute("aria-label",t),g.prefersReducedMotion())return;let i=g.params(e).get("scramble-chars")||Yd;return e.textContent=t.replace(/\S/g,()=>Kd(i)),{activate(){Ay(e)},cleanup(){}}});le();function Ey(e){return e===1?1:1-Math.pow(2,-10*e)}function ky(e){let t=e.indexOf(".");return t===-1?0:e.length-t-1}function xy(e,t){let i=e.getAttribute("data-locale")||ut(),s=e.getAttribute("data-format-number");if(s!=null){let n={minimumFractionDigits:t,maximumFractionDigits:t};switch(s){case"currency":n.style="currency",n.currency=e.getAttribute("data-currency")||"USD";break;case"percent":n.style="percent";break;case"compact":n.notation="compact";break}try{return new Intl.NumberFormat(i,n)}catch{return null}}try{return new Intl.NumberFormat(i,{minimumFractionDigits:t,maximumFractionDigits:t})}catch{return null}}function Sy(e){let t=e.getAttribute("value");if(t==null)return;let i=Number(t);if(isNaN(i))return;let s=g.params(e),n=s.getNumber("ticker-start",0),r=s.getTime("ticker-duration",1e3),a=s.get("ticker-decimals")?parseInt(s.get("ticker-decimals"),10):ky(t),o=xy(e,a),c=i-n;if(c===0)return;let l=null;function u(d){l||(l=d);let h=d-l,p=Math.min(h/r,1),f=Ey(p),m=n+c*f;e.textContent=o?o.format(m):m.toFixed(a),p<1?requestAnimationFrame(u):(e.textContent=o?o.format(i):i.toFixed(a),e.hasAttribute("data-format-number")&&e.setAttribute("data-format-number-init",""))}requestAnimationFrame(u)}g.effect("ticker",e=>{if(!e.hasAttribute("data-effect-ticker-init")&&(e.setAttribute("data-effect-ticker-init",""),!g.prefersReducedMotion()))return{activate(){Sy(e)},cleanup(){}}});g.effect("animate-image",e=>{if(e.hasAttribute("data-effect-animate-image-init"))return;e.setAttribute("data-effect-animate-image-init","");let t=e,i=document.createElement("div");if(i.className="animate-image-wrapper",!t.parentNode)return;t.parentNode.insertBefore(i,t),i.appendChild(t);let s=document.createElement("button");s.type="button",s.className="animate-image-toggle",s.setAttribute("aria-label","Pause animation"),i.appendChild(s);let n=t.src,r=null,a=!1;function o(){let d=document.createElement("canvas");d.width=t.naturalWidth||t.width,d.height=t.naturalHeight||t.height;let h=d.getContext("2d");if(h){h.drawImage(t,0,0);try{r=d.toDataURL("image/png")}catch{r=null}}}function c(){a||(a=!0,t.setAttribute("data-animate-image-paused",""),s.setAttribute("aria-label","Play animation"),s.classList.add("paused"),r&&(t.src=r))}function l(){a&&(a=!1,t.removeAttribute("data-animate-image-paused"),s.setAttribute("aria-label","Pause animation"),s.classList.remove("paused"),t.src=n)}s.addEventListener("click",()=>a?l():c()),t.complete&&t.naturalWidth?o():t.addEventListener("load",o,{once:!0});let u=window.matchMedia("(prefers-reduced-motion: reduce)");return(u.matches||document.documentElement.dataset.motionReduced!==void 0)&&(t.complete?(o(),c()):t.addEventListener("load",()=>{o(),c()},{once:!0})),u.addEventListener("change",d=>{d.matches&&c()}),t.hasAttribute("data-animate-image-paused")&&(t.complete?(o(),a=!1,c()):t.addEventListener("load",()=>{o(),a=!1,c()},{once:!0})),{cleanup(){i.parentNode&&(i.parentNode.insertBefore(t,i),i.remove())}}});var _i=" ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,:!?/-",Xd=60,Cy=30,Ty=80;function Ly(){let e=document.createElement("span");return e.className="vb-flap-char",e.innerHTML=`
649
- <span class="vb-flap-top"><span class="vb-flap-text">\xA0</span></span>
650
- <span class="vb-flap-bottom"><span class="vb-flap-text">\xA0</span></span>
651
- <span class="vb-flap-flip-top"><span class="vb-flap-text">\xA0</span></span>
652
- <span class="vb-flap-flip-bottom"><span class="vb-flap-text">\xA0</span></span>
653
- <span class="vb-flap-hinge"></span>
654
- `,e}function Jd(e,t){for(let i of e.querySelectorAll(".vb-flap-text"))i.textContent=t||"\xA0"}function My(e,t,i){return new Promise(s=>{let n=e.querySelector(".vb-flap-top .vb-flap-text"),r=e.querySelector(".vb-flap-bottom .vb-flap-text"),a=e.querySelector(".vb-flap-flip-top"),o=a.querySelector(".vb-flap-text"),c=e.querySelector(".vb-flap-flip-bottom"),l=c.querySelector(".vb-flap-text");n.textContent=t||"\xA0",r.textContent=t||"\xA0",o.textContent=t||"\xA0",l.textContent=i||"\xA0",a.classList.add("vb-flap-flipping"),c.classList.add("vb-flap-flipping"),setTimeout(()=>{n.textContent=i||"\xA0"},Xd/2),setTimeout(()=>{r.textContent=i||"\xA0",a.classList.remove("vb-flap-flipping"),c.classList.remove("vb-flap-flipping"),s(void 0)},Xd)})}async function Ny(e,t,i,s,n){let r=0;for(let a=0;a<i;a++){if(n._flipGeneration!==s)return;let o=a===i-1,c=_i[r%_i.length],l=o?t:_i[(r+1)%_i.length];await My(e,c,l),r++,o||await new Promise(u=>setTimeout(u,Cy))}}function Zd(e,t){let i=(e._flipGeneration||0)+1;for(e._flipGeneration=i;e.firstChild;)e.removeChild(e.firstChild);e.classList.add("vb-flap-board");let s=[];for(let n=0;n<t.length;n++){let r=Ly();e.appendChild(r),s.push(r)}return e._flipboardCells=s,{cells:s,generation:i}}async function _y(e,t,i,s){let n=i.map((r,a)=>new Promise(o=>{setTimeout(()=>{if(e._flipGeneration!==s){o(void 0);return}let c=4+Math.floor(Math.random()*7);Ny(r,t[a],c,s,e).then(o)},a*Ty)}));await Promise.all(n),e._flipGeneration===s&&i.forEach((r,a)=>Jd(r,t[a]))}g.effect("flipboard",e=>{if(e.hasAttribute("data-effect-flipboard-init"))return;e.setAttribute("data-effect-flipboard-init","");let t=(e.textContent||"").trim().toUpperCase();if(!t)return;if(e._flipboardOriginal=t,g.prefersReducedMotion()){let{cells:n}=Zd(e,t);n.forEach((r,a)=>Jd(r,t[a]));return}let{cells:i,generation:s}=Zd(e,t);return _y(e,t,i,s),{cleanup(){e._flipGeneration=(e._flipGeneration||0)+1,e._flipboardOriginal&&(e.textContent=e._flipboardOriginal,e.classList.remove("vb-flap-board"))}}});g.effect("stamp",e=>{if(document.getElementById("vb-stamp-noise"))return;let t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("aria-hidden","true"),t.style.cssText="position:absolute;width:0;height:0;overflow:hidden",t.innerHTML=`
655
- <defs>
656
- <filter id="vb-stamp-noise" x="-5%" y="-5%" width="110%" height="110%">
657
- <feTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="4" stitchTiles="stitch" result="noise"/>
658
- <feColorMatrix type="saturate" values="0" in="noise" result="greyNoise"/>
659
- <feComposite in="SourceGraphic" in2="greyNoise" operator="in"/>
660
- </filter>
661
- </defs>
662
- `,document.body.prepend(t)});var Dy=1e3;function Qd(e){let t=document.createElement("div");t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),Object.assign(t.style,{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap",border:"0"}),t.textContent=e,document.body.appendChild(t),setTimeout(()=>t.remove(),Dy)}function th(e,t){e.dispatchEvent(new CustomEvent("rating:change",{bubbles:!0,detail:{value:t}}))}function $y(e){let t=e.querySelector('input[type="radio"]:checked');return t?t.value:"0"}g.effect("rating",e=>{if(e.hasAttribute("data-effect-rating-init")||(e.setAttribute("data-effect-rating-init",""),e.hasAttribute("data-rating-readonly")))return;let t=$y(e),i=!1;function s(a){let o=a.target.closest("label");if(!o)return;let c=o.querySelector('input[type="radio"]');c&&(i=c.checked&&c.value===t)}function n(a){if(!i)return;i=!1;let o=a.target.closest("label");if(!o)return;let c=o.querySelector('input[type="radio"]');c&&(c.checked=!1,t="0",th(e,0),Qd("Rating cleared"))}function r(a){a.target.type==="radio"&&(i||(t=a.target.value,th(e,Number(a.target.value)),Qd(`Rating: ${a.target.value} ${Number(a.target.value)===1?"star":"stars"}`)))}return e.addEventListener("mousedown",s),e.addEventListener("click",n),e.addEventListener("change",r),{cleanup(){e.removeEventListener("mousedown",s),e.removeEventListener("click",n),e.removeEventListener("change",r)}}});await T.init();Al();jd();zd();Vd();qd();g.observe();await Gd();export{R as VBService,I as VBServiceError,k as VBStore};
550
+ `;for(let i of this.querySelectorAll("[data-part]"))this.#t[i.dataset.part??""]=i;this.#t.heading.textContent=this.#e,this.#o()}#o(){let t=qw(this.getAttribute("heading-level")),i={heading:t,"fields-heading":Math.min(t+1,6)};for(let[s,n]of Object.entries(i)){let r=this.#t[s];if(!r||r.localName===`h${n}`)continue;let a=document.createElement(`h${n}`);for(let{name:o,value:c}of r.attributes)a.setAttribute(o,c);a.textContent=r.textContent,r.replaceWith(a),this.#t[s]=a}}refresh(){if(!this.#t.status)return;let t=this.status,i=Bw(t),s=this.#t;this.setAttribute("data-state",i.state),i.reason?this.setAttribute("data-reason",i.reason):this.removeAttribute("data-reason"),s.status.textContent!==i.text&&(s.status.textContent=i.text),this.#r(t);let n=!!t?.signals?.user,r=jw(t),a=n?"Resume analytics":"Pause analytics";if(s.toggle.textContent!==a&&(s.toggle.textContent=a),s.toggle.setAttribute("aria-pressed",String(n)),n&&r.length>0?s.toggle.setAttribute("aria-disabled","true"):s.toggle.removeAttribute("aria-disabled"),r.length){let c=r.map(l=>hd[l]).join(" and ");s.hint.textContent=n?`Resume is unavailable because ${c}.`:`Analytics stays off because ${c}; pausing as well changes nothing.`,s.hint.hidden=!1,s.toggle.setAttribute("aria-describedby",s.hint.id)}else s.hint.textContent="",s.hint.hidden=!0,s.toggle.removeAttribute("aria-describedby")}#r(t){let{data:i,empty:s}=this.#t;if(!t?.initialized||!t.preview){i.hidden=!0,i.replaceChildren(),s.hidden=!1,s.textContent="Nothing to show: the analytics runtime has not started on this page.";return}s.hidden=!0,i.hidden=!1;let n=[["Fields",t.collects.join(", ")],["Page path",t.preview.path],["Referrer",t.preview.referrer||"(none)"],["Page context",t.contextKeys.length?t.contextKeys.join(", "):"(none)"]];t.transport==="beacon"?(n.push(["Sent to",t.endpoint]),n.push(["Sent from this page",String(t.sent)])):t.transport==="console"&&n.push(["Logged on this page",String(t.logged)]),t.queued>0&&n.push(["Waiting to send",String(t.queued)]),t.outboundLinks&&n.push(["Outbound link clicks","Reported (site, page path, destination)"]);let r=document.createDocumentFragment();for(let[a,o]of n){let c=document.createElement("dt");c.textContent=a;let l=document.createElement("dd");l.textContent=o,r.append(c,l)}i.replaceChildren(r)}};E("analytics-panel",ea);var ia="data-brand-mark-img",Hw="(width < 48rem)",sa=class extends k{static observedAttributes=["src","src-dark","src-compact","compact-media","alt","wordmark","height"];#t=null;#e=null;#i=null;#n=!1;setup(){this.#a(),this.hasAttribute("src-dark")&&this.#o(),this.#l(),this.#e=new MutationObserver(()=>this.#m()),this.#e.observe(this,{childList:!0,characterData:!0,subtree:!0})}teardown(){this.#t?.disconnect(),this.#t=null,this.#e?.disconnect(),this.#e=null,this.#i=null,this.#n=!1}attributeChangedCallback(t,i,s){if(i!==s&&!(!this.isConnected||!this.hasAttribute("data-upgraded"))){if(t==="height"){this.#a();return}t==="src-dark"&&s!==null&&this.#o(),this.#l()}}#s(){let t=document.documentElement.getAttribute("data-mode");if(t==="dark")return!0;if(t==="light")return!1;let i=getComputedStyle(this).colorScheme||"";return/\bdark\b/.test(i)&&!/\blight\b/.test(i)?!0:/\blight\b/.test(i)&&!/\bdark\b/.test(i)?!1:(this.#i??matchMedia("(prefers-color-scheme: dark)")).matches}#o(){this.#n||(this.#n=!0,this.#i=matchMedia("(prefers-color-scheme: dark)"),this.listen(this.#i,"change",this.#r),this.listen(window,"vb:theme-change",this.#r),this.#t=new MutationObserver(this.#r),this.#t.observe(document.documentElement,{attributes:!0,attributeFilter:["data-mode","data-theme"]}))}#r=()=>{this.isConnected&&this.#l()};#a(){let t=this.getAttribute("height")?.trim();if(!t){this.style.removeProperty("--brand-mark-height"),this.getAttribute("style")||this.removeAttribute("style");return}this.style.setProperty("--brand-mark-height",/^\d+(\.\d+)?$/.test(t)?`${t}px`:t)}#c(){return this.querySelector(`:scope > [${ia}]`)}#l(){let t=this.getAttribute("src"),i=this.#c();if(!t){i?.remove();return}let s=this.getAttribute("src-dark"),n=s&&this.#s()?s:t;if(!(i instanceof HTMLPictureElement)||!i.querySelector(":scope > img")){i?.remove(),i=document.createElement("picture"),i.setAttribute(ia,"");let c=document.createElement("img");c.decoding="async",i.append(c),this.prepend(i)}let r=i.querySelector(":scope > img");r.getAttribute("src")!==n&&r.setAttribute("src",n);let a=this.getAttribute("src-compact"),o=i.querySelector(":scope > source");if(a){o||(o=document.createElement("source"),i.prepend(o));let c=this.getAttribute("compact-media")||Hw;o.getAttribute("media")!==c&&o.setAttribute("media",c),o.getAttribute("srcset")!==a&&o.setAttribute("srcset",a)}else o?.remove();this.#m()}#m(){let t=this.#c()?.querySelector(":scope > img");if(!t)return;let i=this.getAttribute("alt"),s=!this.hasAttribute("wordmark"),n;s&&i?n=i:this.#p()?n="":n=i??"",t.getAttribute("alt")!==n&&t.setAttribute("alt",n)}#p(){for(let t of this.childNodes)if(!(t instanceof Element&&t.hasAttribute(ia))&&t.textContent?.trim())return!0;return!1}};E("brand-mark",sa);var zw="52rem",na=class extends HTMLElement{static observedAttributes=["breakpoint"];#t=null;connectedCallback(){this.#e()}disconnectedCallback(){this.#i()}attributeChangedCallback(){this.isConnected&&this.#e()}#e(){this.#i();let t=this.getAttribute("breakpoint")||zw;this.#t=matchMedia(`(max-width: ${t})`),this.#t.addEventListener("change",this.#n),this.#n()}#i(){this.#t?.removeEventListener("change",this.#n),this.#t=null}#n=()=>{let t=this.#t?.matches??!1;if(this.toggleAttribute("data-mobile",t),!t){let i=this.querySelector("[popover]");i?.matches(":popover-open")&&i.hidePopover?.()}}};customElements.get("mobile-menu")||customElements.define("mobile-menu",na);var K="interestfor",bd="interestForElement"in HTMLButtonElement.prototype,W=new WeakMap,ye=new WeakMap,ms=new Set,oa=!1,ca=CSS.supports?.("anchor-name","--a")??!1;function fd(e){let t=String(e).trim(),i=t.match(/^([\d.]+)s$/);if(i)return parseFloat(i[1])*1e3;let s=t.match(/^([\d.]+)ms$/);return s?parseFloat(s[1]):parseFloat(t)||0}function yd(e,t){let i=getComputedStyle(e),s=i.getPropertyValue(t).trim();if(s.toLowerCase()!=="normal")return fd(s);let n=i.getPropertyValue("--interest-delay").trim();if(n&&n.toLowerCase()!=="normal"){let r=n.split(/\s+/).filter(a=>a.length>0);if(r.length>0){let a=t==="--interest-delay-start"?r[0]:r[1]||r[0];if(a.toLowerCase()!=="normal")return fd(a)}}return t==="--interest-delay-start"?500:250}var vd=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(","),Vw="h1,h2,h3,h4,h5,h6,ul,ol,li,table,nav,header,footer,main,aside,article,section,form,blockquote,details,summary,dialog";function la(e){if(e.getAttribute("popover")?.toLowerCase()!=="hint"||e.querySelector(vd)||e.querySelector(Vw))return!1;for(let t of e.querySelectorAll("[role]")){let i=t.getAttribute("role").toLowerCase();if(!["presentation","none","generic","image"].includes(i))return!1}return!0}function pd(e,t,i){let s=(e.getAttribute(t)||"").split(/\s+/).filter(Boolean);s.includes(i)||e.setAttribute(t,[...s,i].join(" "))}function Uw(e,t){t.parentElement?.localName!=="tool-tip"&&(la(t)?pd(e,"aria-describedby",t.id):(pd(e,"aria-details",t.id),e.setAttribute("aria-expanded","false"),!(t.matches(".hover-card")||t.querySelector(vd))&&!t.hasAttribute("role")&&t.setAttribute("role","tooltip")))}function ht(e){let t=e.getAttribute(K);return t?document.getElementById(t):null}function ps(e){let t=ye.get(e);return t?.invoker&&W.get(t.invoker)?.state==="full"?t.invoker:null}function si(e){if(W.has(e))return W.get(e);let t={state:"none",gainedTimer:null,lostTimer:null,longPressTimer:null};W.set(e,t);let i=ht(e);return i&&Uw(e,i),t}function wd(e,t){if(!e||!t||!e.isConnected||ht(e)!==t)return!1;let i=ps(t);if(i){if(i===e)return clearTimeout(W.get(i).lostTimer),!1;if(!ii(i,t)||!e.isConnected||ht(e)!==t)return!1}let s=si(e);if(s.state!=="none")return!1;let n=new CustomEvent("interest",{bubbles:!1,cancelable:!0,detail:{source:e}});if(t.dispatchEvent(n),t.hasAttribute("popover")){try{t.showPopover()}catch{}Gw(e,t)}s.state="full",ye.has(t)||ye.set(t,{});let r=ye.get(t);if(r.invoker=e,t.hasAttribute("popover")){let a=o=>{o.newState==="closed"&&ii(e,t)};r.toggleListener=a,t.addEventListener("toggle",a)}return ms.add(e),e.classList.add("interest-source"),t.classList.add("interest-target"),la(t)||e.setAttribute("aria-expanded","true"),!0}function ii(e,t){if(!e||!t||ht(e)!==t||ps(t)!==e)return!1;let i=W.get(e);if(!i||i.state==="none")return!1;if(clearTimeout(i.gainedTimer),clearTimeout(i.lostTimer),t.dispatchEvent(new CustomEvent("loseinterest",{bubbles:!1,detail:{source:e}})),t.hasAttribute("popover"))try{t.hidePopover()}catch{}let s=ye.get(t);return s?.toggleListener&&t.removeEventListener("toggle",s.toggleListener),ye.delete(t),ms.delete(e),e.classList.remove("interest-source"),t.classList.remove("interest-target"),la(t)||e.setAttribute("aria-expanded","false"),i.state="none",!0}function Ww(e){let t=si(e);clearTimeout(t.gainedTimer);let i=yd(e,"--interest-delay-start");t.gainedTimer=setTimeout(()=>{let s=ht(e);s&&wd(e,s)},i)}function ra(e){let t=W.get(e);if(!t)return;clearTimeout(t.lostTimer);let i=yd(e,"--interest-delay-end");t.lostTimer=setTimeout(()=>{let s=ht(e);s&&ii(e,s)},i)}function ei(e){if(!ca)return;let t=e.getAttribute(K),i=t?document.getElementById(t):null;if(!i?.id)return;let s=`--interest-${i.id}`;e.style.anchorName=s,i.style.positionAnchor=s}function Gw(e,t){if(ca)return;let i=e.getBoundingClientRect(),s=t.getBoundingClientRect(),n=8,r=8,a=i.top-s.height-n,o=i.left+(i.width-s.width)/2;a<r&&(a=i.bottom+n),o=Math.max(r,Math.min(o,window.innerWidth-s.width-r)),a=Math.max(r,Math.min(a,window.innerHeight-s.height-r)),t.style.top=`${a}px`,t.style.left=`${o}px`,t.style.margin="0"}function Kw(e,t){if(oa||!e.isConnected)return;if(!ht(e)){let r=e.closest(".interest-target");if(r){let a=ps(r);a&&(t?clearTimeout(W.get(a)?.lostTimer):ra(a))}return}let s=si(e),n=ps(e);if(t)clearTimeout(s.lostTimer),n&&clearTimeout(W.get(n)?.lostTimer),Ww(e);else if(clearTimeout(s.gainedTimer),s.state!=="none"&&ra(e),n){let r=W.get(n);r&&clearTimeout(r.gainedTimer),ra(n)}}function Yw(){let e=(s,n)=>{for(let r=s.target;r;r=r.parentElement)Kw(r,n)};document.body.addEventListener("mouseover",s=>e(s,!0)),document.body.addEventListener("mouseout",s=>e(s,!1)),document.body.addEventListener("focusin",s=>e(s,!0)),document.body.addEventListener("focusout",s=>e(s,!1)),document.body.addEventListener("keydown",s=>{if(s.key==="Escape")for(let n of ms){let r=ht(n);r&&ii(n,r)}});let t=500;document.body.addEventListener("touchstart",s=>{oa=!0;let n=s.target.closest(`button[${K}]`);if(!n)return;let r=si(n);r.longPressTimer=setTimeout(()=>{let a=ht(n);a&&wd(n,a),r.longPressTimer=null},t)});let i=s=>{let n=s.target.closest(`button[${K}]`);if(!n)return;let r=W.get(n);r?.longPressTimer&&(clearTimeout(r.longPressTimer),r.longPressTimer=null)};document.body.addEventListener("touchend",s=>{i(s),oa=!1}),document.body.addEventListener("touchmove",i)}function Xw(){let e=document.createElement("style");e.textContent=['@property --interest-delay-start { syntax: "normal | <time>"; inherits: false; initial-value: normal; }','@property --interest-delay-end { syntax: "normal | <time>"; inherits: false; initial-value: normal; }','@property --interest-delay { syntax: "*"; inherits: false; initial-value: normal; }'].join(`
551
+ `),document.head.appendChild(e)}function fs(e){si(e),ei(e)}function aa(e){let t=W.get(e);if(t){if(clearTimeout(t.gainedTimer),clearTimeout(t.lostTimer),clearTimeout(t.longPressTimer),t.state!=="none"){let i=ht(e);i&&ii(e,i)}e.classList.remove("interest-source"),W.delete(e),ms.delete(e)}}function md(e=document){e.querySelectorAll(`[${K}]`).forEach(fs)}var gd=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.hasAttribute(K)&&fs(s),s.querySelectorAll(`[${K}]`).forEach(fs)}for(let i of t.removedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;W.has(s)&&aa(s),s.querySelectorAll(`[${K}]`).forEach(n=>{W.has(n)&&aa(n)})}if(t.type==="attributes"&&t.target.nodeType===Node.ELEMENT_NODE){let i=t.target;i.hasAttribute(K)?W.has(i)||fs(i):W.has(i)&&aa(i)}}});bd||(Xw(),Yw(),document.documentElement.setAttribute("data-interest-polyfill",""),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{md(),gd.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[K]})}):(md(),gd.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[K]})));if(bd&&ca){let e=()=>{document.querySelectorAll(`[${K}]`).forEach(ei),new MutationObserver(t=>{for(let i of t){for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.hasAttribute(K)&&ei(n),n.querySelectorAll(`[${K}]`).forEach(ei)}i.type==="attributes"&&i.target.hasAttribute?.(K)&&ei(i.target)}}).observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[K]})};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}re();fa();qe();var pa="kbd[data-hotkey]";function Cd(e=document){e.querySelectorAll(pa).forEach(t=>ma(t))}function tA(e,t){if(!/^[a-z][a-z0-9]*$/.test(t))return null;let i=`data-label-${t}`;return e.closest(`[${i}]`)?.getAttribute(i)||null}function ma(e){let t=e.dataset.hotkey;if(!t||e.getAttribute("data-hotkey-init")===t)return;let i=ji(t);if(!i.length)return;e.setAttribute("data-hotkey-init",t);let s=[],n=document.createDocumentFragment();i.forEach((a,o)=>{let c=Qn(a,Q),l=tA(e,a),u=l&&!(Q&&c.modifier)?l:c.label;s.push(l??c.spoken);let d=document.createElement("kbd");if(d.textContent=u,d.setAttribute("aria-hidden","true"),n.appendChild(d),o<i.length-1&&!Q){let h=document.createElement("span");h.textContent="+",h.setAttribute("aria-hidden","true"),n.appendChild(h)}});let r=document.createElement("span");r.className="visually-hidden",r.textContent=s.join(" "),n.appendChild(r),e.replaceChildren(n),e.removeAttribute("aria-label")}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Cd()):Cd();var eA=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(pa)&&ma(s),s.querySelectorAll(pa).forEach(n=>ma(n))}});eA.observe(document.documentElement,{childList:!0,subtree:!0});ya();Sa();Ca();_a();Ra();Pa();Oa();qa();Wa();Ya();Xa();Ja();eo();io();so();no();ro();var N0=window.matchMedia("(prefers-reduced-motion: reduce)");function M0(){return N0.matches||document.documentElement.hasAttribute("data-motion-reduced")}var sf=0,_0=new Map([["vb-fade-in","entrance"],["vb-slide-up","entrance"],["vb-pop","entrance"],["vb-slide-in-ltr","entrance"],["vb-slide-in-rtl","entrance"],["vb-fade-slide-up","entrance"],["vb-shadow-lift","entrance"],["vb-fade-out","exit"],["vb-collapse","exit"],["vb-slide-out-ltr","exit"],["vb-slide-out-rtl","exit"],["vb-shake","attention"],["vb-pulse","attention"],["vb-bounce","attention"],["vb-blink","attention"],["vb-neon-pulse","decoration"],["vb-3d-shift","decoration"],["vb-outline-glow-pulse","decoration"],["vb-rainbow","decoration"],["vb-gradient-flow","decoration"],["vb-shimmer","decoration"],["vb-shimmer-gradient","decoration"],["vb-glow","decoration"],["vb-float","decoration"]]),nf="__vbEffectsRuntime",rf=globalThis,y=rf[nf]??{_effects:new Map,_triggers:new Map,_transitions:new Map,_instances:new WeakMap,_triggerCleanups:new WeakMap,_wiredTriggers:new WeakMap,_transitionCleanups:new WeakMap,_transitionFallback:new WeakSet,_processed:new WeakSet,_transitionProcessed:new WeakSet,_staggerTime:new WeakSet,_unresolved:new Set,_warnedTriggers:new Set,_unresolvedTimer:null,_keyframePhase:_0,_observer:null,_animationEndHandler:null,_autoBooted:!1,effect(e,t){this._effects.set(e,t),document.querySelectorAll("[data-effect]").forEach(i=>{if(!(i.getAttribute("data-effect")||"").split(/\s+/).includes(e))return;let n=!this._instances.get(i)?.has(e);this._initEffect(i,e),n&&i.hasAttribute("data-effect-active")&&this._instances.get(i)?.get(e)?.activate?.()})},trigger(e,t){this._triggers.set(e,t),document.querySelectorAll("[data-effect][data-trigger]").forEach(i=>{if(!this._processed.has(i))return;let s=i.getAttribute("data-effect")?.split(/\s+/).filter(Boolean)||[];this._wireTrigger(i,s)})},transition(e,t){this._transitions.set(e,t),document.querySelectorAll("[data-transition]").forEach(i=>{if(!this._transitionProcessed.has(i)||!this._transitionFallback.has(i))return;let s=i.getAttribute("data-transition")||"",n=s.indexOf(":");if((n>-1?s.slice(0,n):s)!==e)return;this._transitionFallback.delete(i);let r=i;r.style.viewTransitionName="";let a=t(i,n>-1?s.slice(n+1):null);a&&this._transitionCleanups.set(i,a)})},uid(e){return e.id?e.id:(e._vbUid||(sf++,e._vbUid=`vb-${sf}`),e._vbUid)},theme(e,t){this._themes=this._themes||new Map,this._themes.set(e,t)},applyTheme(e,t=document.documentElement){let i=this._themes?.get(e);if(i)for(let[s,n]of Object.entries(i))t.style.setProperty(s,n)},swap(e){if(!document.startViewTransition){e(),queueMicrotask(()=>this._dispatchVtDone(document.body));return}let t=document.startViewTransition(e);return t.updateCallbackDone.then(()=>{this._dispatchVtDone(document.body)}).catch(()=>{}),t},_dispatchVtDone(e){e.querySelectorAll('[data-trigger~="vt"]').forEach(t=>{this.emit(t,"vb:vt-update-done",{})})},activate(e){this._activateEffects(e)},deactivate(e){e.hasAttribute("data-effect-active")&&(e.removeAttribute("data-effect-active"),this.emit(e,"vb:phase-change",{active:!1}))},onPhaseEnd(e,t,i){let s=n=>{n.detail?.phase===t&&i(n.detail)};return e.addEventListener("vb:effect-phase-end",s),()=>e.removeEventListener("vb:effect-phase-end",s)},registerKeyframe(e,t){this._keyframePhase.set(e,t)},observe(e=document){if(e.querySelectorAll("[data-effect]").forEach(i=>this._processElement(i)),e.querySelectorAll("[data-stagger]").forEach(i=>this._processStagger(i)),e.querySelectorAll("[data-transition]").forEach(i=>this._processTransition(i)),this._observer)return;this._observer=new MutationObserver(i=>{let s=new Set;for(let n of i){if(n.type==="childList"){let r=n.target;r.hasAttribute?.("data-stagger")&&s.add(r);for(let a of n.addedNodes)a.nodeType===Node.ELEMENT_NODE&&this._processTree(a);for(let a of n.removedNodes)a.nodeType===Node.ELEMENT_NODE&&(a.isConnected||this._cleanupTree(a))}if(n.type==="attributes"){let r=n.target;n.attributeName==="data-effect"&&this._reconcileEffects(r),n.attributeName==="data-trigger"&&this._reconcileTrigger(r),n.attributeName==="data-stagger"&&(r.hasAttribute("data-stagger")?s.add(r):this._cleanupStagger(r)),n.attributeName==="data-transition"&&this._reconcileTransition(r)}}for(let n of s)n.isConnected&&this._processStagger(n)});let t=e===document?document.body:e;this._observer.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-effect","data-trigger","data-stagger","data-transition"]}),this._animationEndHandler||(this._animationEndHandler=i=>{let s=i.target;if(!(s instanceof Element)||!s.hasAttribute("data-effect"))return;let n=this._keyframePhase.get(i.animationName);n&&this.emit(s,"vb:effect-phase-end",{phase:n,animationName:i.animationName})},document.addEventListener("animationend",this._animationEndHandler))},disconnect(){this._observer&&(this._observer.disconnect(),this._observer=null),this._animationEndHandler&&(document.removeEventListener("animationend",this._animationEndHandler),this._animationEndHandler=null)},params(e){let t=getComputedStyle(e);return{get(i){return t.getPropertyValue(`--vb-${i}`).trim()},getNumber(i,s=0){let n=t.getPropertyValue(`--vb-${i}`).trim();return n?parseFloat(n):s},getTime(i,s=0){let n=t.getPropertyValue(`--vb-${i}`).trim();if(!n)return s;let r=parseFloat(n);return Number.isFinite(r)?/s\s*$/.test(n)&&!/ms\s*$/.test(n)?r*1e3:r:s},hasClass(i){return e.classList.contains(i)}}},emit(e,t,i={}){e.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:i}))},prefersReducedMotion:M0,_processTree(e){e.hasAttribute?.("data-effect")&&this._processElement(e),e.hasAttribute?.("data-stagger")&&this._processStagger(e),e.hasAttribute?.("data-transition")&&this._processTransition(e),e.querySelectorAll?.("[data-effect]").forEach(t=>this._processElement(t)),e.querySelectorAll?.("[data-stagger]").forEach(t=>this._processStagger(t)),e.querySelectorAll?.("[data-transition]").forEach(t=>this._processTransition(t))},_cleanupTree(e){e.hasAttribute?.("data-effect")&&this._cleanupElement(e),e.hasAttribute?.("data-transition")&&this._cleanupTransition(e),e.querySelectorAll?.("[data-effect]").forEach(t=>this._cleanupElement(t)),e.querySelectorAll?.("[data-transition]").forEach(t=>this._cleanupTransition(t))},_processElement(e){if(this._processed.has(e))return;this._processed.add(e),e.removeAttribute("data-effect-processed"),e.removeAttribute("data-effect-armed");let t=e.getAttribute("data-effect")?.split(/\s+/).filter(Boolean)||[];for(let i of t)this._initEffect(e,i);this._wireTrigger(e,t)},_initEffect(e,t){let i=this._effects.get(t);if(!i)return;let s=this._instances.get(e);if(s?.has(t))return;let n=i(e);n&&(s||(s=new Map,this._instances.set(e,s)),typeof n=="function"?s.set(t,{cleanup:n}):s.set(t,n))},_parseTrigger(e){let t=e.indexOf(":");return t>-1?[e.slice(0,t),e.slice(t+1)]:[e,null]},_wireTrigger(e,t){let i=e.getAttribute("data-trigger");if(!i||!i.trim()){e.removeAttribute("data-effect-armed"),this._activateEffects(e);return}let s=i.split(/\s+/).filter(Boolean);this._wiredTriggers??=new WeakMap;let n=this._wiredTriggers.get(e);n||(n=new Set,this._wiredTriggers.set(e,n));let r=!1;for(let a of s){if(n.has(a))continue;let[o,c]=this._parseTrigger(a),l=this._triggers.get(o);if(!l){r=!0;continue}n.add(a);let u=l(e,()=>this._activateEffects(e),c);if(u){let d=this._triggerCleanups.get(e);if(d){let h=d;this._triggerCleanups.set(e,()=>{h(),u()})}else this._triggerCleanups.set(e,u)}}n.size&&e.setAttribute("data-effect-armed",""),r?(this._unresolved.add(e),this._scheduleUnresolvedCheck()):this._unresolved.delete(e)},_scheduleUnresolvedCheck(){if(this._unresolvedTimer)return;let e=()=>{this._unresolvedTimer=null,this._resolveUnknownTriggers()};typeof window>"u"||typeof window.addEventListener!="function"||(document.readyState==="complete"?this._unresolvedTimer=setTimeout(e,0):(this._unresolvedTimer=!0,window.addEventListener("load",()=>setTimeout(e,0),{once:!0})))},_resolveUnknownTriggers(){for(let e of[...this._unresolved]){if(this._unresolved.delete(e),!e.isConnected||!this._processed.has(e))continue;let i=(e.getAttribute("data-trigger")||"").split(/\s+/).filter(Boolean).filter(s=>!this._triggers.has(this._parseTrigger(s)[0]));if(i.length){for(let s of i){let n=this._parseTrigger(s)[0];this._warnedTriggers.has(n)||(this._warnedTriggers.add(n),console.warn(`[VB] data-trigger="${s}": no trigger named "${n}" is registered. The effect runs immediately instead. Register it with VB.trigger('${n}', \u2026) or check the spelling.`,e))}!e.hasAttribute("data-effect-armed")&&!e.hasAttribute("data-effect-active")&&this._activateEffects(e)}}},_activateEffects(e){e.setAttribute("data-effect-active",""),this.emit(e,"vb:phase-change",{active:!0});let t=this._instances.get(e);if(t)for(let[,i]of t)i.activate&&i.activate()},_cleanupElement(e){let t=this._instances.get(e);if(t){for(let[,s]of t)s.cleanup&&s.cleanup();this._instances.delete(e)}let i=this._triggerCleanups.get(e);i&&(i(),this._triggerCleanups.delete(e)),this._wiredTriggers?.delete(e),this._unresolved.delete(e),e.removeAttribute("data-effect-armed"),this._processed.delete(e)},_reconcileEffects(e){if(!e.hasAttribute("data-effect")){this._cleanupElement(e),e.removeAttribute("data-effect-active");return}let t=e.getAttribute("data-effect")?.split(/\s+/).filter(Boolean)||[],i=this._instances.get(e);if(i)for(let[s,n]of i)t.includes(s)||(n.cleanup&&n.cleanup(),i.delete(s));for(let s of t)i?.has(s)||this._initEffect(e,s);this._processed.has(e)||this._processElement(e)},_reconcileTrigger(e){if(!e.hasAttribute("data-effect"))return;let t=this._triggerCleanups.get(e);if(t&&(t(),this._triggerCleanups.delete(e)),this._wiredTriggers?.delete(e),this._unresolved.delete(e),e.removeAttribute("data-effect-armed"),!this._processed.has(e)){this._processElement(e);return}let i=e.getAttribute("data-effect")?.split(/\s+/).filter(Boolean)||[];this._wireTrigger(e,i)},_parseStagger(e){let t=(e||"").trim().split(/\s+/).filter(Boolean),i=t.find(n=>/^(\d+(\.\d+)?|\.\d+)(ms|s)$/i.test(n))||null;return{mode:t.find(n=>n==="reverse"||n==="random"||n==="grid")||"",time:i}},_processStagger(e){let{mode:t,time:i}=this._parseStagger(e.getAttribute("data-stagger"));i?(e.style.setProperty("--vb-stagger",i),this._staggerTime.add(e)):this._staggerTime.has(e)&&(e.style.removeProperty("--vb-stagger"),this._staggerTime.delete(e));let s=Array.from(e.children),n=s.length,r;if(t==="reverse")r=Array.from({length:n},(a,o)=>n-1-o);else if(t==="random"){let a=this._hashString(this.uid(e));r=Array.from({length:n},(c,l)=>l);let o=a;for(let c=n-1;c>0;c--){o^=o<<13,o^=o>>>17,o^=o<<5;let l=Math.abs(o)%(c+1);[r[c],r[l]]=[r[l],r[c]]}}else t==="grid"?r=this._gridStaggerIndices(e,s):r=Array.from({length:n},(a,o)=>o);for(let a=0;a<n;a++)s[a].style.setProperty("--vb-stagger-index",String(r[a]))},_gridStaggerIndices(e,t){let i=t.length,s=()=>Array.from({length:i},(l,u)=>u);if(!i)return[];let n=t.map(l=>{let u=getComputedStyle(l);return[parseInt(u.gridRowStart,10),parseInt(u.gridColumnStart,10)]});if(n.every(([l,u])=>Number.isFinite(l)&&Number.isFinite(u))){let l=Math.min(...n.map(([d])=>d)),u=Math.min(...n.map(([,d])=>d));return n.map(([d,h])=>d-l+(h-u))}let r=t.map(l=>l.getBoundingClientRect?.());if(!r.every(Boolean)||r.every(l=>l.width===0&&l.height===0))return s();let a=getComputedStyle(e).direction==="rtl",o=this._trackRanks(r.map(l=>[l.top,l.bottom])),c=this._trackRanks(r.map(l=>a?[-l.right,-l.left]:[l.left,l.right]));return o.map((l,u)=>l+c[u])},_trackRanks(e){let t=e.map((r,a)=>a).sort((r,a)=>e[r][0]-e[a][0]),i=new Array(e.length),s=-1,n=-1/0;for(let r of t){let[a,o]=e[r];a>=n-.5?(s++,n=o):n=Math.min(n,o),i[r]=s}return i},_cleanupStagger(e){this._staggerTime.has(e)&&(e.style.removeProperty("--vb-stagger"),this._staggerTime.delete(e));for(let t of Array.from(e.children))t.style?.removeProperty("--vb-stagger-index")},_hashString(e){let t=5381;for(let i=0;i<e.length;i++)t=(t<<5)+t^e.charCodeAt(i);return t|0},_vtIdent(e){let t=String(e).replace(/[^A-Za-z0-9_ -￿-]/g,"-");return(!t||/^(-?\d|--)/.test(t))&&(t=`vb-${t}`),t},_processTransition(e){if(this._transitionProcessed.has(e)||e.matches?.("[data-swap], content-swap"))return;let t=(e.getAttribute("data-transition")||"").trim();if(!t)return;this._transitionProcessed.add(e),e.removeAttribute("data-transition-processed");let[i,s]=this._parseTrigger(t),n=this._transitions.get(i);if(n){let r=n(e,s);r&&this._transitionCleanups.set(e,r)}else e.style.viewTransitionName=this._vtIdent(`${i}-${this.uid(e)}`),this._transitionFallback.add(e)},_cleanupTransition(e){if(!this._transitionProcessed.has(e))return;let t=this._transitionCleanups.get(e);t&&(t(),this._transitionCleanups.delete(e)),this._transitionFallback.has(e)&&(this._transitionFallback.delete(e),e.style.viewTransitionName=""),this._transitionProcessed.delete(e)},_reconcileTransition(e){this._cleanupTransition(e),e.hasAttribute("data-transition")&&this._processTransition(e)}};rf[nf]=y;if(typeof window<"u"){let e=window.VB;if(e&&e!==y)for(let t of Object.keys(e))t in y||(y[t]=e[t]);window.VB=y}typeof document<"u"&&!y._autoBooted&&(y._autoBooted=!0,document.body?y.observe():document.addEventListener("DOMContentLoaded",()=>y.observe(),{once:!0}));var Is="vb-split-sr",ao="vb-split";function $0(e){return e.closest?.("[lang]")?.getAttribute("lang")||void 0}function ke(e,t){if(typeof Intl<"u"&&"Segmenter"in Intl)try{let i=new Intl.Segmenter(t,{granularity:"grapheme"});return Array.from(i.segment(e),s=>s.segment)}catch{}return Array.from(e)}function D0(e,t){let i=[],s;if(typeof Intl<"u"&&"Segmenter"in Intl)try{s=Array.from(new Intl.Segmenter(t,{granularity:"word"}).segment(e))}catch{s=null}if(!s){for(let r of e.split(/(\s+)/))r&&i.push({text:r,space:/^\s+$/.test(r)});return i}let n="";for(let r of s){if(/^\s+$/.test(r.segment)){n&&(i.push({text:n,space:!1}),n=""),i.push({text:r.segment,space:!0});continue}let a=i[i.length-1];if(!r.isWordLike){a&&!a.space?a.text+=r.segment:n+=r.segment;continue}i.push({text:n+r.segment,space:!1}),n=""}return n&&i.push({text:n,space:!1}),i}function Y(e){for(let t of e.querySelectorAll(`.${Is}`)){let i=t.nextElementSibling;i?.classList.contains(ao)&&i.remove(),t.replaceWith(document.createTextNode(t.textContent||""))}e.normalize()}function af(e){let t=e.querySelectorAll(`.${Is}`);return t.length?Array.from(t,i=>i.textContent).join(""):e.textContent||""}function Nt(e,{unit:t="word",className:i="",locale:s}={}){Y(e);let n=s||$0(e),r=[],a=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode(l){let u=l.parentElement;return u&&u.closest("script, style, template, svg, math")?NodeFilter.FILTER_REJECT:l.nodeValue&&l.nodeValue.trim()?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});for(;a.nextNode();)r.push(a.currentNode);let o=[],c=l=>{let u=document.createElement("span");return i&&(u.className=i),u.textContent=l,o.push(u),u};for(let l of r){let u=l.nodeValue||"",d=document.createElement("span");d.className=Is,d.textContent=u;let h=document.createElement("span");if(h.className=ao,h.setAttribute("aria-hidden","true"),t==="grapheme")for(let f of ke(u,n)){let p=c(f);/^\s+$/.test(f)&&p.setAttribute("data-space",""),h.append(p)}else for(let f of D0(u,n))h.append(f.space?document.createTextNode(f.text):c(f.text));l.replaceWith(d,h)}return o}function of(e,t){Y(e);let i=document.createElement("span");i.className=Is,i.textContent=t;let s=document.createElement("span");return s.className=ao,s.setAttribute("aria-hidden","true"),e.replaceChildren(i,s),s}function Se(e){let t=0,i=null;for(let s of e){let n=s.getBoundingClientRect(),r=n.top;i!==null&&r-i>n.height/2&&t++,i=r,s.style.setProperty("--i",String(t))}return e.length?t+1:0}var oo="data-effect-reveal-init";y.effect("reveal",e=>{let t=e;if(Y(t),t.removeAttribute(oo),y.prefersReducedMotion())return{cleanup(){}};let i=y.params(t);t.style.setProperty("--reveal-delay",i.get("reveal-delay")||"80ms"),t.style.setProperty("--reveal-duration",i.get("reveal-duration")||"400ms");let s=Nt(t,{className:"vb-reveal-chunk"});s.forEach((r,a)=>r.style.setProperty("--i",String(a))),t.setAttribute(oo,"");let n=null;if(t.classList.contains("line")){Se(s);let r=t.clientWidth;n=new ResizeObserver(()=>{t.clientWidth!==r&&(r=t.clientWidth,Se(s))}),n.observe(t)}return{activate(){t.setAttribute("data-effect-active","")},cleanup(){n?.disconnect(),Y(t),t.removeAttribute(oo),t.style.removeProperty("--reveal-delay"),t.style.removeProperty("--reveal-duration")}}});var cf="data-effect-highlight-init";y.effect("highlight",e=>{let t=e,i=y.params(t).get("highlight-color");return i&&t.style.setProperty("--highlight-color",i),t.setAttribute(cf,""),y.prefersReducedMotion()&&t.setAttribute("data-effect-active",""),{activate(){t.setAttribute("data-effect-active","")},cleanup(){t.removeAttribute(cf),t.style.removeProperty("--highlight-color")}}});uo();go();var vo="vb:recently-visited",z0="vb:recently-visited:paused";var V0="recently-visited:change";function wo(e){let t=document.querySelector(`meta[name="${e}"]`);return t?t.getAttribute("content")??"":null}function U0(){return typeof document>"u"||document.documentElement.hasAttribute("data-vb-no-track")||wo("vb:no-track-history")!==null?!1:(wo("vb:track-history")??"").trim().toLowerCase()==="on"?!0:document.querySelector("recently-visited")!==null}function W0(){try{return localStorage.getItem(z0)==="1"}catch{return!1}}function G0(){let e=wo("vb:track-history-params")||"";return new Set(e.split(/[\s,]+/).filter(Boolean))}function vf(e,t=null){if(typeof e!="string")return null;let i=e.trim().replace(/^[\\/]{2,}/,"/");if(!i)return null;let s;try{s=new URL(i,location.origin)}catch{return null}if(s.protocol!=="http:"&&s.protocol!=="https:"||s.origin!==location.origin)return null;let n=s.pathname.replace(/^\/{2,}/,"/"),r=s.search;if(t){let a=new URLSearchParams;for(let[c,l]of s.searchParams)t.has(c)&&a.append(c,l);let o=a.toString();r=o?`?${o}`:""}return n+r}function K0(){return vf(location.pathname+location.search,G0())}function wf(e,t=Date.now()){if(!Array.isArray(e))return[];let i=[];for(let s of e){if(!s||typeof s!="object")continue;let n=Number(s.ts);if(!Number.isFinite(n)||Math.abs(t-n)>2592e6)continue;let r=vf(s.url);if(!r)continue;let a=typeof s.hash=="string"&&s.hash.startsWith("#")&&s.hash.length>1?s.hash:"";i.push({url:r,hash:a,title:typeof s.title=="string"?s.title:"",hashTitle:a&&typeof s.hashTitle=="string"?s.hashTitle:"",ts:n})}return i}function Y0(){try{let e=localStorage.getItem(vo);return e?wf(JSON.parse(e)):[]}catch{return[]}}function X0(e){window.dispatchEvent(new CustomEvent(V0,{detail:{key:e}}))}function Z0(e){try{localStorage.setItem(vo,JSON.stringify(wf(e).slice(0,100)))}catch{}X0(vo)}function J0(e){if(!e)return"";let t=e.slice(1);try{t=decodeURIComponent(t)}catch{}if(!t)return"";let i=document.getElementById(t);return i&&(i.textContent||"").trim().slice(0,80)||t}function bo(){if(!U0()||W0()||location.protocol!=="http:"&&location.protocol!=="https:")return!1;let e=K0();if(!e)return!1;let t=location.hash.length>1?location.hash:"",i=(document.title||"").trim();if(!i)return!1;let s=Y0(),n=e+t,r=s[0];if(r&&r.url+r.hash===n)return!1;let a=s.filter(o=>o.url+o.hash!==n);return a.unshift({url:e,hash:t,title:i,hashTitle:J0(t),ts:Date.now()}),Z0(a),!0}var yo=typeof document<"u"?document.documentElement:null;yo&&!yo.hasAttribute("data-vb-recently-visited-init")&&(yo.setAttribute("data-vb-recently-visited-init",""),bo(),window.addEventListener("pageshow",e=>{e.persisted&&bo()}),window.addEventListener("hashchange",bo));var kf=CSS.supports("anchor-name","--test"),Q0=new Set(["BUTTON","A","AREA"]),Sf=(()=>{let e=document.createElement("span");return e.setAttribute("popover","hint"),e.popover==="hint"})(),xf=new Map,Af=!1;function tE(){if(Af||Sf)return;Af=!0;let e=t=>{xf.forEach((i,s)=>{s.matches(":popover-open")&&!t(s,i)&&s.hidePopover()})};document.addEventListener("keydown",t=>{t.key==="Escape"&&e(()=>!1)}),document.addEventListener("pointerdown",t=>{let i=t.target;e((s,n)=>s.contains(i)||n.contains(i))})}function Cf(e){return e.getAttribute("aria-label")?.trim()||e.hasAttribute("aria-labelledby")||e.labels?.length||e.textContent?.trim()||e instanceof HTMLInputElement&&["button","submit","reset"].includes(e.type)&&e.value?!0:!!e.querySelector('img[alt]:not([alt=""]), [aria-label]:not([aria-hidden="true"])')}function Tf(e,t,i){let s=(e.getAttribute(t)||"").split(/\s+/).filter(Boolean);s.includes(i)||e.setAttribute(t,[...s,i].join(" "))}function eE(e){return document.documentElement.hasAttribute("data-interest-polyfill")?!0:"interestForElement"in HTMLButtonElement.prototype?Q0.has(e.tagName):!1}function Ao(e,t){if(xf.set(t,e),tE(),eE(e)){e.setAttribute("interestfor",t.id),t.addEventListener("toggle",l=>{l.newState==="open"&&Rs(e,t)});return}let i=null,s=null,n=t,r=()=>{clearTimeout(s),i=setTimeout(()=>{n.showPopover(),Rs(e,t)},200)},a=()=>{clearTimeout(i),s=setTimeout(()=>{n.hidePopover()},100)},o=()=>{clearTimeout(s),n.showPopover(),Rs(e,t)},c=()=>{clearTimeout(i),n.hidePopover()};e.addEventListener("mouseenter",r),e.addEventListener("mouseleave",a),e.addEventListener("focus",o),e.addEventListener("blur",c),t.addEventListener("mouseenter",()=>clearTimeout(s)),t.addEventListener("mouseleave",a)}function Eo(e,t){if(!kf)return;let i=`--tooltip-anchor-${t.id}`;e.style.anchorName=i,t.style.positionAnchor=i,t.setAttribute("data-anchor","")}function iE(e){let t=e.getAttribute("title");if(!t)return;let i=!Cf(e);i&&e.setAttribute("aria-label",t),e.removeAttribute("title");let s=document.createElement("div");s.setAttribute("role","tooltip"),s.setAttribute("popover",Sf?"hint":"manual"),s.id=`tooltip-${crypto.randomUUID().slice(0,8)}`,s.textContent=t;let n=e.dataset.tooltipPosition||"top";s.dataset.tooltipPosition=n;let r=document.createElement("span");r.className="tooltip-arrow",r.setAttribute("aria-hidden","true"),s.appendChild(r),e.after(s),i||Tf(e,"aria-describedby",s.id),Eo(e,s),Ao(e,s)}function sE(e,t){let i=document.getElementById(t);if(!i?.hasAttribute("popover"))return;let s=e.getAttribute("title");s&&(Cf(e)||e.setAttribute("aria-label",s),e.removeAttribute("title")),Tf(e,"aria-describedby",t),Eo(e,i),Ao(e,i)}function Ef(e=document){e.querySelectorAll("[data-tooltip]").forEach(t=>{if(t.closest("tool-tip")||t.hasAttribute("data-tooltip-init"))return;t.setAttribute("data-tooltip-init","");let i=t.dataset.tooltip;i?sE(t,i):iE(t)}),e.querySelectorAll("[aria-describedby]").forEach(t=>{let i=t.getAttribute("aria-describedby")??"",s=document.getElementById(i);!s?.hasAttribute("popover")||!s.matches('[role="tooltip"]')||t.closest("tool-tip")||t.hasAttribute("data-tooltip-init")||(t.setAttribute("data-tooltip-init",""),Eo(t,s),Ao(t,s))}),e.querySelectorAll("[popovertarget]").forEach(t=>{let i=t.getAttribute("popovertarget")??"",s=document.getElementById(i);!s?.hasAttribute("popover")||!s.matches('[role="tooltip"]')||s.hasAttribute("data-tooltip-click-init")||(s.setAttribute("data-tooltip-click-init",""),s.addEventListener("toggle",n=>{n.newState==="open"&&Rs(t,s)}))})}function Rs(e,t){if(kf||t.hasAttribute("data-anchor"))return;let i=e.getBoundingClientRect(),s=t.dataset.tooltipPosition||"top",n=8,r=t.getBoundingClientRect(),a,o;switch(s){case"bottom":a=i.bottom+n,o=i.left+(i.width-r.width)/2;break;case"left":a=i.top+(i.height-r.height)/2,o=i.left-r.width-n;break;case"right":a=i.top+(i.height-r.height)/2,o=i.right+n;break;default:a=i.top-r.height-n,o=i.left+(i.width-r.width)/2;break}let c=8;o=Math.max(c,Math.min(o,window.innerWidth-r.width-c)),a=Math.max(c,Math.min(a,window.innerHeight-r.height-c)),t.style.top=`${a}px`,t.style.left=`${o}px`}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Ef()):Ef();var ko="[data-vt-name]";function Ps(e){let t=e;t.removeAttribute("data-vt-name-init"),t.style.viewTransitionName=t.dataset.vtName||""}function Lf(e=document){e.querySelectorAll(ko).forEach(Ps)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Lf()):Lf();var nE=new MutationObserver(e=>{for(let t of e){if(t.type==="attributes"){Ps(t.target);continue}for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(ko)&&Ps(s),s.querySelectorAll(ko).forEach(Ps)}}});nE.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-vt-name"]});var Fs='progress[data-type="ring"]',Nf={xs:"2em",s:"3em",m:"4em",l:"6em",xl:"8em"};function rE(e){let t=e.max||100,i=e.value;return t>0?Math.round(i/t*100):0}var So=new WeakMap;function aE(e){let t=So.get(e);if(t)return t;let i=document.createElement("div");i.className="progress-ring-wrap";let s=e.dataset.size;return s&&Nf[s]&&i.style.setProperty("--progress-ring-size",Nf[s]),e.parentNode?.insertBefore(i,e),i.appendChild(e),t=document.createElement("span"),t.className="progress-ring-label",t.setAttribute("aria-hidden","true"),i.appendChild(t),So.set(e,t),t}function _f(e){let t=rE(e);e.style.setProperty("--progress",String(t));let i=e.dataset.label;if(i==="none")return;let s=!e.hasAttribute("value");if(s&&!So.has(e))return;let n=aE(e);n.hidden=s,n.textContent=i||t+"%"}function xo(e){e.hasAttribute("data-enhanced")||(e.setAttribute("data-enhanced",""),_f(e))}function Mf(e=document){e.querySelectorAll(Fs).forEach(t=>xo(t))}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Mf()):Mf();var oE=new MutationObserver(e=>{for(let t of e){for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i;s.matches(Fs)&&xo(s),s.querySelectorAll(Fs).forEach(n=>xo(n))}if(t.type==="attributes"){let i=t.target;i.matches(Fs)&&i.hasAttribute("data-enhanced")&&_f(i)}}});oE.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value","max"]});function $f(e){document.querySelectorAll("browser-window").forEach(t=>{t.setAttribute("mode",e)}),document.querySelectorAll("code-block").forEach(t=>{t.setAttribute("theme",e)})}function Df(){let{effectiveMode:e}=I.getState();$f(e),window.addEventListener("vb:theme-change",i=>{$f(i.detail.effectiveMode)}),new MutationObserver(i=>{let{effectiveMode:s}=I.getState();for(let n of i)for(let r of n.addedNodes){if(r.nodeType!==Node.ELEMENT_NODE)continue;let a=r;a.tagName==="BROWSER-WINDOW"?a.setAttribute("mode",s):a.tagName==="CODE-BLOCK"&&a.setAttribute("theme",s),a.querySelectorAll("browser-window").forEach(o=>{o.setAttribute("mode",s)}),a.querySelectorAll("code-block").forEach(o=>{o.setAttribute("theme",s)})}}).observe(document.body,{childList:!0,subtree:!0})}var Em=[{selector:"[data-wizard]",load:()=>Promise.resolve().then(()=>(Bf(),qf))},{selector:"[data-gesture]",load:()=>Promise.resolve().then(()=>(cr(),or))},{selector:"[data-keyboard-aware]",load:()=>Promise.resolve().then(()=>(zf(),Hf))},{selector:"[data-focus-trap]",load:()=>Promise.resolve().then(()=>(Wf(),Uf))},{selector:"[data-scroll-hide]",load:()=>Promise.resolve().then(()=>(Kf(),mE))},{selector:"[data-spotlight]",load:()=>Promise.resolve().then(()=>(Zf(),Xf))},{selector:"[data-splitter]",load:()=>Promise.resolve().then(()=>(Ra(),Vd))},{selector:"[data-back-to-top]",load:()=>Promise.resolve().then(()=>(fa(),xd))},{selector:"[data-hotkey]:not(kbd)",load:()=>Promise.resolve().then(()=>(sp(),ip))},{selector:'a[target="_blank"]',load:()=>Promise.resolve().then(()=>(op(),ap))},{selector:"[data-watch-page], watch-wc",load:()=>Promise.resolve().then(()=>(Gr(),Wr))},{selector:"img[data-responsive]",load:()=>Promise.resolve().then(()=>(fp(),hp))},{selector:"form-field[data-floating-label]",load:()=>Promise.resolve().then(()=>(bp(),gp))},{selector:"button[data-loading]",load:()=>Promise.resolve().then(()=>(kp(),Ep))},{selector:"input[data-mask]",load:()=>Promise.resolve().then(()=>(eo(),Fh))},{selector:"input[data-accept]",load:()=>Promise.resolve().then(()=>(io(),Hh))},{selector:'input[type="file"][data-upload]',load:()=>Promise.resolve().then(()=>(Xa(),Ch))},{selector:'input[type="range"][data-range]',load:()=>Promise.resolve().then(()=>(Ya(),vh))},{selector:'input[type="number"][data-stepper]',load:()=>Promise.resolve().then(()=>(no(),Zh))},{selector:'input[type="checkbox"][data-switch]',load:()=>Promise.resolve().then(()=>(Pa(),Gd))},{selector:'input[type="color"][data-color]',load:()=>Promise.resolve().then(()=>(ro(),ef))},{selector:"textarea[data-grow]",load:()=>Promise.resolve().then(()=>(qa(),rh))},{selector:"textarea[data-count]",load:()=>Promise.resolve().then(()=>(Oa(),eh))},{selector:"fieldset[data-toggle-tags][data-max]",load:()=>Promise.resolve().then(()=>(so(),Wh))},{selector:"form[data-autosave]",load:()=>Promise.resolve().then(()=>(Ja(),Mh))},{selector:"form[data-vb-email-form]",load:()=>Promise.resolve().then(()=>(Cp(),xp))},{selector:"form[data-vb-newsletter-form]",load:()=>Promise.resolve().then(()=>(Dp(),$p))},{selector:"[data-copy], [data-copy-target], [data-paste-target]",load:()=>Promise.resolve().then(()=>(re(),Pl))},{selector:"[data-select-all]",load:()=>Promise.resolve().then(()=>(uo(),hf))},{selector:"[data-show-when], [data-hide-when]",load:()=>Promise.resolve().then(()=>(Wa(),fh))},{selector:"[data-spoiler]",load:()=>Promise.resolve().then(()=>(_a(),Bd))},{selector:"[data-math], code.language-math",load:()=>Promise.resolve().then(()=>(go(),yf))},{selector:"time[data-format-date]",load:()=>Promise.resolve().then(()=>(Sa(),Dd))},{selector:"data[data-format-number]",load:()=>Promise.resolve().then(()=>(ya(),Td))},{selector:"data[data-format-bytes]",load:()=>Promise.resolve().then(()=>(Ca(),Pd))},{selector:"[data-audio-playlist]",load:()=>Promise.resolve().then(()=>(qp(),Op))},{selector:"[data-paged]",load:()=>Promise.resolve().then(()=>(Yp(),Kp))},{selector:"[data-sortable], [data-sort-target]",load:()=>Promise.resolve().then(()=>(lm(),cm))},{selector:"[data-toggle]",load:()=>Promise.resolve().then(()=>(bm(),gm))},{selector:'table[data-responsive="card"]',load:()=>Promise.resolve().then(()=>(Am(),wm))}];function km(e,t=document){for(let i of e)t.querySelector(i.selector)&&i.load()}var QS=[{selector:"[data-emoji]",load:()=>Promise.resolve().then(()=>(ac(),rc))},{selector:"[data-highlights]",load:()=>Promise.resolve().then(()=>(Hr(),Xu))},{selector:"[data-command], [commandfor]",load:()=>Promise.resolve().then(()=>(qm(),Om))},{selector:"[data-markdown-editable]",load:()=>Promise.resolve().then(()=>(ng(),TS))},{selector:"markdown-viewer[data-auto-mermaid], markdown-editor[data-auto-mermaid]",load:()=>Promise.resolve().then(()=>(ug(),_S))},{selector:":is(img, video, iframe, canvas)[data-mock]",load:()=>Promise.resolve().then(()=>(gg(),mg))},{selector:"[data-lorem]",load:()=>Promise.resolve().then(()=>(vg(),yg))},{selector:'track[kind="chapters"][data-chapter-list]',load:()=>Promise.resolve().then(()=>(Eg(),Ag))}],tx=[...Em,...QS];function kg(e=document){km(tx,e),ex("[data-emoji]","data-emoji",()=>Promise.resolve().then(()=>(ac(),rc)),e)}function ex(e,t,i,s){if(s.querySelector(e))return;let n=s instanceof Document?s.documentElement:s;if(!n)return;let r=new MutationObserver(a=>{for(let o of a){let c=o.type==="attributes"?[o.target]:o.addedNodes;for(let l of c){if(l.nodeType!==Node.ELEMENT_NODE)continue;let u=l;if(u.matches(e)||u.querySelector(e)){r.disconnect(),i();return}}}});r.observe(n,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[t]})}var ix=["valueMissing","typeMismatch","patternMismatch","tooShort","tooLong","rangeUnderflow","rangeOverflow","stepMismatch","badInput"],sx={"data-label-group":"Group","data-message-min-checked":"Select at least {min}","data-message-max-checked":"Select no more than {max}","data-message-invalid-selection":"Invalid selection","data-message-match":"Values do not match","data-message-network":"Something went wrong. Please try again."},Ci=new WeakSet,Me=new WeakSet,nx=0;function Jt(e,t,i,s={}){return(t?.getAttribute(i)??e.getAttribute(i)??sx[i]??"").replace(/\{(\w+)\}/g,(r,a)=>a in s?String(s[a]):r)}function Sg(e,t){let i=e.closest("[lang]")?.getAttribute("lang")||void 0,s="other";try{s=new Intl.PluralRules(i).select(t)}catch{}return(e.getAttribute(`data-label-summary-${s}`)??e.getAttribute("data-label-summary")??(t===1?"Please fix {count} error:":"Please fix {count} errors:")).replaceAll("{count}",String(t))}function Ti(e){return[...e.elements].filter(t=>t.willValidate&&!("honeypot"in t.dataset))}function xg(e){return Ti(e).filter(t=>t.dataset.match)}function Mg(e){return[...e.querySelectorAll("form-field[data-upgraded]")]}function Oc(e){let t=e.closest("form-field[data-upgraded]");return t&&t.input===e?t:null}function _g(e){return e.id||(e.id=`vb-field-${++nx}`),e.id}function rx(e){return!e.disabled&&!e.closest("[inert], [hidden]")&&e.getClientRects().length>0}function ax(e,t){if(t.type==="radio"){let s=t.closest("fieldset")?.querySelector(":scope > legend")?.textContent?.trim();if(s)return s}let i=Oc(t);return i?.fieldName?i.fieldName:t.labels?.[0]?.textContent?.trim()||t.getAttribute("aria-label")||t.name||t.id||Jt(e,null,"data-label-group")}function ox(e){let t=Oc(e);if(t&&typeof t.errorMessage=="string"&&t.errorMessage)return t.errorMessage;let i=Pc(e)?.textContent?.trim();if(i)return i;for(let s of ix){if(!e.validity[s])continue;let n=e.getAttribute(`data-message-${s.toLowerCase()}`);if(n)return n;break}return e.validationMessage}function Pc(e){let t=e.getAttribute("aria-describedby")?.split(/\s+/)??[];for(let s of t){let n=document.getElementById(s);if(n?.tagName==="OUTPUT"&&n.classList.contains("error"))return n}return e.closest("form-field")?.querySelector("output.error")??null}function cx(e){return e.querySelector('input:not([type="hidden"]), select, textarea, button')}function $g(e,t){let i=e.dataset.match;return i?t.querySelector(`#${CSS.escape(i)}`)??t.querySelector(`[name="${CSS.escape(i)}"]`):null}function rn(e,t){let i=$g(e,t);if(i){if(e.setCustomValidity(""),e.value&&i.value&&e.value!==i.value){let s=Jt(t,e,"data-message-match");e.setCustomValidity(s);let n=Pc(e);n&&(n.textContent=s)}else if(e.validity.valid){let s=Pc(e);s&&(s.textContent="")}}}function Cg(e,t){let s=[...t.querySelectorAll('input[type="checkbox"]')].filter(c=>c.checked).length,n=parseInt(t.dataset.minChecked??"0",10),r=parseInt(t.dataset.maxChecked??"999",10),a=t.querySelector(":scope > output"),o=null;return s<n&&(o=Jt(e,t,"data-message-min-checked",{min:n,max:r})),s>r&&(o=Jt(e,t,"data-message-max-checked",{min:n,max:r})),a&&(a.textContent=o??""),o?t.dataset.invalid="":delete t.dataset.invalid,!o}function Tg(e){return[...e.querySelectorAll("fieldset[data-min-checked], fieldset[data-max-checked]")]}function Dg(e){let t=[],i=new Set;for(let s of Ti(e)){if(s.validity.valid)continue;let n=s;if(s.type==="radio"&&s.name){if(i.has(s.name))continue;i.add(s.name),n=Ti(e).find(r=>r.type==="radio"&&r.name===s.name)??s}t.push({target:n,label:ax(e,s),message:ox(s)})}for(let s of e.querySelectorAll("fieldset[data-invalid]")){let n=cx(s);if(!n)continue;let r=s.querySelector(":scope > output");t.push({target:n,label:s.querySelector(":scope > legend")?.textContent?.trim()||Jt(e,s,"data-label-group"),message:r?.textContent?.trim()||Jt(e,s,"data-message-invalid-selection")})}return t.sort((s,n)=>s.target.compareDocumentPosition(n.target)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1),t}function Ig(e){return Dg(e).map(t=>t.target).find(rx)??null}function lx(e){let t=e.querySelector("[data-form-summary]");if(t)return{el:t,type:"authored",signature:"",active:!1};let i=e.querySelector("output.error-summary");return i?{el:i,type:"legacy",signature:"",active:!1}:null}function Lg(e){return e.map(t=>{let i=document.createElement("li"),s=document.createElement("a");return s.href=`#${_g(t.target)}`,s.textContent=`${t.label}: ${t.message}`,i.append(s),i})}function Fc(e,t,{focus:i=!1}={}){if(!t)return;let s=Dg(e);if(s.length===0){Rg(t);return}t.active=!0;let n=s.map(a=>`${_g(a.target)}\0${a.label}\0${a.message}`).join(""),r=n!==t.signature;if(t.signature=n,t.type==="authored"){if(r){t.el.querySelector("[data-summary-list]")?.replaceChildren(...Lg(s));let a=t.el.querySelector("[data-summary-heading]");a&&(a.textContent=Sg(e,s.length))}(t.el.hidden||!t.el.hasAttribute("data-state-visible"))&&(t.el.hidden=!1,t.el.offsetHeight,t.el.dataset.stateVisible="")}else if(r){let a=document.createElement("p");a.textContent=Sg(e,s.length);let o=document.createElement("ul");o.append(...Lg(s)),t.el.replaceChildren(a,o)}i&&t.el.focus()}function ux(e){let t=getComputedStyle(e),i=r=>r.split(",").map(a=>parseFloat(a)*(a.trim().endsWith("ms")?1:1e3)||0),s=i(t.transitionDuration),n=i(t.transitionDelay);return Math.max(0,...s.map((r,a)=>r+(n[a]??n[0]??0)))}function Rg(e){if(e)if(e.active=!1,e.signature="",e.type==="authored"){let t=e.el;delete t.dataset.stateVisible;let i=()=>{t.hasAttribute("data-state-visible")||(t.hidden=!0,t.querySelector("[data-summary-list]")?.replaceChildren())},n=matchMedia("(prefers-reduced-motion: reduce)").matches?0:ux(t);n===0?i():setTimeout(i,n+50)}else e.el.replaceChildren()}function dx(e){e&&e.el.addEventListener("click",t=>{let i=t.target.closest('a[href^="#"]');if(!i)return;t.preventDefault();let s=document.getElementById((i.getAttribute("href")??"#").slice(1));s&&(s.scrollIntoView({behavior:"smooth",block:"center"}),s.focus())})}function hx(e){for(let t of Ti(e))Oc(t)||(t.validity.valid?Me.has(t)&&(t.removeAttribute("aria-invalid"),Me.delete(t)):(t.setAttribute("aria-invalid","true"),Me.add(t)))}function Ng(e){let t=e.target;if(!Me.has(t))return;let i=t.type==="radio"&&t.form&&t.name?Ti(t.form).filter(s=>s.type==="radio"&&s.name===t.name):[t];for(let s of i)Me.has(s)&&s.validity.valid&&(s.removeAttribute("aria-invalid"),Me.delete(s))}function fx(e){let t=e.querySelector("[data-form-error]");return t||(t=document.createElement("p"),t.setAttribute("data-form-error",""),t.hidden=!0,e.prepend(t)),t.hasAttribute("role")||t.setAttribute("role","alert"),t}function px(e){e.dataset.error="network";let t=fx(e);(!t.textContent.trim()||t.hasAttribute("data-vb-generated"))&&(t.textContent=Jt(e,null,"data-message-network"),t.setAttribute("data-vb-generated","")),t.hidden=!1}function mx(e){if(e.hasAttribute("data-success")){delete e.dataset.success;let i=e.querySelector("[data-form-success]");i&&(i.hidden=!0)}delete e.dataset.error;let t=e.querySelector("[data-form-error]");t&&(t.hidden=!0)}function gx(e){e.dataset.success="";let t=e.querySelector("[data-form-success]");t&&(t.hidden=!1,t.hasAttribute("tabindex")||(t.tabIndex=-1),t.hasAttribute("role")||t.setAttribute("role","status"),t.focus())}function bx(e){return[...e.elements].find(t=>t instanceof HTMLButtonElement&&t.type==="submit"||t instanceof HTMLInputElement&&(t.type==="submit"||t.type==="image"))??null}function Pg(e,t){try{return t?new FormData(e,t):new FormData(e)}catch{return new FormData(e)}}function yx(e,t){return t?.hasAttribute("formenctype")?t.formEnctype:e.hasAttribute("enctype")?e.enctype:"multipart/form-data"}function vx(e,t){if(t==="multipart/form-data")return e;let i=[...e].map(([s,n])=>[s,typeof n=="string"?n:n.name]);return t==="text/plain"?i.map(([s,n])=>`${s}=${n}\r
552
+ `).join(""):new URLSearchParams(i)}async function wx(e,t){let i=t??bx(e),n=(t?.getAttribute("formmethod")||e.getAttribute("method")||"post").toLowerCase()==="get"?"GET":"POST",r=t?.hasAttribute("formaction")?t.formAction:e.action;e.dataset.submitting="",i&&i.setAttribute("aria-disabled","true");let a=()=>{delete e.dataset.submitting,i&&i.getAttribute("aria-busy")!=="true"&&i.removeAttribute("aria-disabled")};try{let o=Pg(e,t),c;if(n==="GET"){let l=new URL(r,document.baseURI);l.search="";for(let[u,d]of o)typeof d=="string"&&l.searchParams.append(u,d);c=await fetch(l,{method:n})}else c=await fetch(r,{method:n,body:vx(o,yx(e,t))});if(a(),!c.ok){if((c.headers.get("content-type")??"").includes("application/json")){let u=await c.json();if(u.errors){Ax(e,u.errors);return}}throw new Error(`Server error: ${c.status}`)}gx(e)}catch{a(),px(e)}}function Ax(e,t){e.dataset.error="";let i=Mg(e),s=!1;for(let n of i){let r=n.input??n.querySelector("input, textarea, select");if(!r)continue;let a=t[r.name];a&&(n.setError(String(a)),s=!0)}if(s){let n=e._vbSummary;n?Fc(e,n,{focus:!0}):Ig(e)?.focus()}for(let n of i)(n.input??n.querySelector("input, textarea, select"))?.addEventListener("input",()=>n.clearError(),{once:!0})}function Ex(e,t){setTimeout(()=>{if(!e.isConnected)return;let i=t?.isConnected&&t.form===e?t:null;Ci.add(e);try{i?e.requestSubmit(i):e.requestSubmit()}catch{Ci.delete(e),e.submit()}Ci.delete(e)})}function Rc(e){if(e.hasAttribute("data-vb-enhanced"))return;e.setAttribute("novalidate",""),e.setAttribute("data-vb-enhanced","");let t=lx(e);e._vbSummary=t,t&&dx(t);for(let i of xg(e))i.addEventListener("input",()=>rn(i,e)),i.addEventListener("blur",()=>rn(i,e)),$g(i,e)?.addEventListener("input",()=>rn(i,e));for(let i of Tg(e))i.addEventListener("change",()=>Cg(e,i));if(e.addEventListener("input",Ng),e.addEventListener("change",Ng),e.addEventListener("submit",i=>{if(Ci.has(e)){Ci.delete(e);return}i.preventDefault();let s=i.submitter??null;mx(e);let n=!!s?.hasAttribute("formnovalidate");if(!n){for(let c of Mg(e))c.validate();for(let c of xg(e))rn(c,e);for(let c of Tg(e))Cg(e,c);hx(e)}if(!(n||e.checkValidity()&&!e.querySelector("fieldset[data-invalid]"))){if(t)Fc(e,t,{focus:!0});else{let c=Ig(e);c&&(c.scrollIntoView({behavior:"smooth",block:"center"}),c.focus())}return}Rg(t);let a=new CustomEvent("vb:beforesubmit",{bubbles:!0,cancelable:!0,detail:{form:e,submitter:s}});if(e.dispatchEvent(a),a.defaultPrevented)return;let o=e.dataset.submit??"native";o==="fetch"?wx(e,s):o==="event"?e.dispatchEvent(new CustomEvent("vb:submit",{bubbles:!0,cancelable:!0,detail:Pg(e,s)})):Ex(e,s)}),t){let i=()=>requestAnimationFrame(()=>{t.active&&Fc(e,t)});e.addEventListener("focusout",i),e.addEventListener("change",i)}}function Fg(){for(let t of document.querySelectorAll("form[data-validate]"))Rc(t);new MutationObserver(t=>{for(let i of t)for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.matches?.("form[data-validate]")&&Rc(n),n.querySelectorAll?.("form[data-validate]").forEach(r=>Rc(r))}}).observe(document.body,{childList:!0,subtree:!0})}D();var Og='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"/><circle cx="12" cy="12" r="3"/></svg>',kx='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"/><path d="M14.084 14.158a3 3 0 0 1-4.242-4.242"/><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"/><path d="m2 2 20 20"/></svg>',_e={password:new WeakSet,otp:new WeakSet,strength:new WeakSet},Sx=0;function H(e,t,i){return e.getAttribute(`data-label-${t}`)??i}function qc(e){let t=e.querySelector('input[type="password"]');if(!t||_e.password.has(e)||t.closest(".password-wrapper")||e.querySelector(".password-toggle"))return;_e.password.add(e);let i=H(e,"show-password","Show password"),s=H(e,"hide-password","Hide password"),n=document.createElement("div");n.className="password-wrapper",t.parentNode.insertBefore(n,t),n.appendChild(t);let r=document.createElement("button");r.type="button",r.className="password-toggle",r.setAttribute("aria-label",i),r.setAttribute("aria-pressed","false"),r.innerHTML=Og,n.appendChild(r),r.addEventListener("click",()=>{let a=t.type==="password";t.type=a?"text":"password",r.setAttribute("aria-pressed",String(a)),r.setAttribute("aria-label",a?s:i),r.innerHTML=a?kx:Og})}function Bc(e){let t=e.querySelector('input[data-type="otp"], input[data-type="pin"]');if(!t||_e.otp.has(e)||e.querySelector(".otp-wrapper"))return;let i=t;_e.otp.add(e),e.setAttribute("data-otp-ready","");let s=Math.max(1,parseInt(i.dataset.length||"6",10)||6),n=i.id||`otp-${++Sx}`;i.classList.add("otp-source"),i.tabIndex=-1,i.setAttribute("aria-hidden","true"),i.hasAttribute("pattern")||(i.pattern=`\\d{${s}}`),i.maxLength=s;let r=i.getAttribute("autocomplete")||(i.dataset.type==="otp"?"one-time-code":"off");i.setAttribute("autocomplete","off"),i.hasAttribute("data-message-patternmismatch")||i.setAttribute("data-message-patternmismatch",H(e,"incomplete","Enter all {total} digits").replace("{total}",String(s)));let a=i.id&&e.querySelector(`label[for="${CSS.escape(i.id)}"]`)||e.querySelector("label"),o=document.createElement("div");o.className="otp-wrapper",o.setAttribute("role","group"),a&&(a.id||(a.id=`${n}-label`),o.setAttribute("aria-labelledby",a.id));let c=[...e.querySelectorAll("output.hint")].map((m,g)=>(m.id||(m.id=`${n}-hint${g?`-${g}`:""}`),m.id)),l=[...new Set([...(i.getAttribute("aria-describedby")??"").split(/\s+/),...c])].filter(Boolean);l.length&&o.setAttribute("aria-describedby",l.join(" ")),i.after(o);let u=H(e,"digit","Digit {n} of {total}"),d=[];for(let m=0;m<s;m++){let g=document.createElement("input");g.type="text",g.inputMode="numeric",g.pattern="[0-9]",g.className="otp-digit",g.setAttribute("autocomplete",m===0?r:"off"),g.setAttribute("aria-label",u.replace("{n}",String(m+1)).replace("{total}",String(s))),d.push(g),o.appendChild(g)}[...i.value.replace(/\D/g,"").slice(0,s)].forEach((m,g)=>{d[g].value=m});function f(){i.value=d.map(m=>m.value).join(""),i.dispatchEvent(new Event("input",{bubbles:!0}))}function p(m,g){let b=g.replace(/\D/g,"").slice(0,s-m).split("");b.forEach((v,$)=>{d[m+$].value=v});let A=d.findIndex(v=>!v.value);A!==-1?d[A].focus():d[Math.min(m+Math.max(b.length,1)-1,s-1)].focus(),f()}d.forEach((m,g)=>{m.addEventListener("input",()=>{let b=m.value;if(b.length>1){m.value="",p(g,b);return}if(b&&!/^\d$/.test(b)){m.value="";return}b&&g<d.length-1&&d[g+1].focus(),f()}),m.addEventListener("keydown",b=>{b.key==="Backspace"&&!m.value&&g>0&&d[g-1].focus();let A=getComputedStyle(o).direction==="rtl",v=A?"ArrowRight":"ArrowLeft",$=A?"ArrowLeft":"ArrowRight";b.key===v&&g>0&&(b.preventDefault(),d[g-1].focus()),b.key===$&&g<d.length-1&&(b.preventDefault(),d[g+1].focus())}),m.addEventListener("paste",b=>{b.preventDefault();let A=(b.clipboardData||window.clipboardData)?.getData("text")??"";p(0,A)}),m.addEventListener("focus",()=>{m.select()})}),i.addEventListener("focus",()=>{(d.find(m=>!m.value)??d[s-1]).focus()}),i.form?.addEventListener("reset",()=>{queueMicrotask(()=>{let m=i.value.replace(/\D/g,"");d.forEach((g,b)=>{g.value=m[b]??""})})}),e.addEventListener("click",m=>{m.target===e&&d[0].focus()})}var qg=["weak","fair","good","strong"],xx=0;function jc(e){let t=e.querySelector("input[data-strength]");if(!t||_e.strength.has(e))return;let i=t;_e.strength.add(e),e.querySelectorAll(".strength-meter, .strength-rules, .strength-status").forEach(S=>S.remove());let s=Bg(i.dataset.rules||"length:8",e),n={weak:H(e,"strength-weak","Weak"),fair:H(e,"strength-fair","Fair"),good:H(e,"strength-good","Good"),strong:H(e,"strength-strong","Strong")},r=H(e,"strength","Password strength"),a=H(e,"strength-empty","No password entered"),o=H(e,"rule-met","met"),c=H(e,"rule-unmet","not met"),l=`strength-${++xx}`,u=document.createElement("div");u.className="strength-meter";let d=document.createElement("meter");d.min=0,d.max=s.length,d.low=Math.ceil(s.length*.4),d.high=Math.ceil(s.length*.75),d.optimum=s.length,d.value=0,d.className="s",d.setAttribute("aria-label",r);let h=document.createElement("span");h.className="strength-label",h.setAttribute("aria-hidden","true"),u.append(d,h);let f=document.createElement("ul");f.className="strength-rules",f.id=`${l}-rules`,f.setAttribute("aria-label",H(e,"requirements","Password requirements"));let p=s.map(S=>{let L=document.createElement("li");L.dataset.rule=S.type;let F=document.createElement("span");return F.className="visually-hidden",L.append(S.label,F),f.append(L),{li:L,state:F}}),m=document.createElement("span");m.className="strength-status visually-hidden",m.setAttribute("role","status"),(e.querySelector(".password-wrapper")||i).insertAdjacentElement("afterend",u),u.insertAdjacentElement("afterend",f),f.insertAdjacentElement("afterend",m);let b=new Set((i.getAttribute("aria-describedby")||"").split(/\s+/).filter(S=>S&&!/^strength-\d+-rules$/.test(S)));b.add(f.id),i.setAttribute("aria-describedby",[...b].join(" "));let A=qg.indexOf(i.dataset.strengthMin??""),v=H(e,"strength-too-weak","Choose a stronger password. Meet more of the requirements."),$=0,N="";function j({announce:S=!0}={}){let L=i.value,F=0;s.forEach((pt,tb)=>{let un=Cx(pt,L),{li:eb,state:ib}=p[tb];eb.toggleAttribute("data-met",un),ib.textContent=`: ${un?o:c}`,un&&F++}),d.value=F;let Ie=F/s.length,at=L.length===0?"":Ie<.4?"weak":Ie<.75?"fair":Ie<1?"good":"strong",te=at?n[at]:"";if(h.textContent=te,u.dataset.level=at,d.setAttribute("aria-valuetext",te||a),A>=0){let pt=at!==""&&qg.indexOf(at)<A;i.setCustomValidity(pt?v:"")}at!==N&&(N=at,clearTimeout($),S&&at?$=window.setTimeout(()=>{m.textContent=`${r}: ${te}`},600):m.textContent="")}i.addEventListener("input",()=>j()),P(i,()=>j({announce:!1})),j({announce:!1})}function Bg(e,t){let i=[];for(let s of e.split(",")){let[n,r]=s.trim().split(":");switch(n){case"length":{let a=parseInt(r)||8;i.push({type:n,param:a,label:H(t,"rule-length","At least {n} characters").replace("{n}",String(a))});break}case"uppercase":i.push({type:n,label:H(t,"rule-uppercase","One uppercase letter")});break;case"lowercase":i.push({type:n,label:H(t,"rule-lowercase","One lowercase letter")});break;case"number":i.push({type:n,label:H(t,"rule-number","One number")});break;case"special":i.push({type:n,label:H(t,"rule-special","One special character")});break;case"":break;default:console.warn(`[data-strength] Unknown rule "${n}" ignored.`,t)}}return i.length?i:Bg("length:8",t)}function Cx(e,t){switch(e.type){case"length":return[...t].length>=(e.param||8);case"uppercase":return/\p{Lu}/u.test(t);case"lowercase":return/\p{Ll}/u.test(t);case"number":return/\p{N}/u.test(t);case"special":return/[^\p{L}\p{N}]/u.test(t);default:return!1}}function Tx(){document.querySelectorAll('form-field:has(input[type="password"])').forEach(qc)}function Lx(){document.querySelectorAll('form-field:has(input[data-type="otp"]), form-field:has(input[data-type="pin"])').forEach(Bc)}function Nx(){document.querySelectorAll("form-field:has(input[data-strength])").forEach(jc)}function jg(){Tx(),Lx(),Nx(),new MutationObserver(t=>{for(let i of t)for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.matches?.('form-field:has(input[type="password"])')&&qc(n),(n.matches?.('form-field:has(input[data-type="otp"])')||n.matches?.('form-field:has(input[data-type="pin"])'))&&Bc(n),n.matches?.("form-field:has(input[data-strength])")&&jc(n),n.querySelectorAll?.('form-field:has(input[type="password"])')?.forEach(qc),n.querySelectorAll?.('form-field:has(input[data-type="otp"]), form-field:has(input[data-type="pin"])')?.forEach(Bc),n.querySelectorAll?.("form-field:has(input[data-strength])")?.forEach(jc)}}).observe(document.body,{childList:!0,subtree:!0})}function Mx(e){let t=Date.now(),i=e*7+t%9973&65535;return btoa(JSON.stringify({s:e,t,c:i}))}function _x(e,t,i){let s=0,n=e.submitAt-(e.firstInteractionAt??e.submitAt),r=t.querySelector("[data-honeypot]");return r&&r.value.trim()&&(s+=80),[...t.querySelectorAll('input[type="text"], input[type="email"], input[type="tel"], textarea')].filter(o=>o.value.trim()&&!("honeypot"in o.dataset)).length>0&&e.keyboardEventCount===0&&(s+=30),e.fieldFocusCount===0&&(s+=40),!i&&!e.mouseMovedInForm&&(s+=20),n<1e3?s+=80:n<3e3&&(s+=50),Math.min(s,100)}function $x(e){return new Promise((t,i)=>{let s=document.createElement("script");s.src=e,s.async=!0,s.onload=t,s.onerror=i,document.head.appendChild(s)})}async function Dx(e,t){if(!document.querySelector("[data-cf-turnstile-loaded]"))try{await $x("https://challenges.cloudflare.com/turnstile/v0/api.js"),document.head.dataset.cfTurnstileLoaded="";let i=document.createElement("div");i.className="cf-turnstile",i.dataset.sitekey=t,i.dataset.size="invisible",e.appendChild(i)}catch{}}function Hc(e){if(e.hasAttribute("data-bot-enhanced"))return;e.setAttribute("data-bot-enhanced","");let t={fieldFocusCount:0,keyboardEventCount:0,mouseMovedInForm:!1,firstInteractionAt:null,submitAt:null},i=navigator.maxTouchPoints>0;e.addEventListener("focusin",s=>{s.target.matches("input, textarea, select")&&!("honeypot"in s.target.dataset)&&(t.fieldFocusCount++,t.firstInteractionAt??=Date.now())},{capture:!0}),e.addEventListener("keydown",s=>{s.target.matches("input, textarea")&&t.keyboardEventCount++},{capture:!0}),i||e.addEventListener("mousemove",()=>{t.mouseMovedInForm=!0},{once:!0}),e.addEventListener("vb:beforesubmit",s=>{t.submitAt=Date.now();let n=_x(t,e,i),r=e.querySelector("[data-bot-score-field]");if(r||(r=document.createElement("input"),r.type="hidden",r.name="_vb_score",r.dataset.botScoreField="",e.appendChild(r)),r.value=Mx(n),n>=80){s.preventDefault(),e.dispatchEvent(new CustomEvent("vb:botblocked",{bubbles:!0,detail:{score:n}}));return}n>=60&&e.dataset.turnstileSitekey&&Dx(e,e.dataset.turnstileSitekey)})}function Hg(){for(let t of document.querySelectorAll("form[data-bot-protection]"))Hc(t);new MutationObserver(t=>{for(let i of t)for(let s of i.addedNodes){if(s.nodeType!==Node.ELEMENT_NODE)continue;let n=s;n.matches?.("form[data-bot-protection]")&&Hc(n),n.querySelectorAll?.("form[data-bot-protection]").forEach(r=>Hc(r))}}).observe(document.body,{childList:!0,subtree:!0})}var yt=null,an=new Map,zc=null;function Ix(){if(typeof window<"u"&&window.__VB_COMPONENT_BASE)return String(window.__VB_COMPONENT_BASE).replace(/\/$/,"");if(typeof document<"u"){let e=document.querySelectorAll('script[src*="vanilla-breeze"]');for(let t of e){let i=t.getAttribute("src");if(i){let s=i.lastIndexOf("/");if(s!==-1)return i.slice(0,s)}}}return"/cdn"}async function Rx(){if(yt)return yt;let e=Ix();yt=new Map;try{let t=await fetch(`${e}/components/manifest.json`);if(!t.ok)throw new Error(`HTTP ${t.status}`);let i=await t.json();for(let[s,n]of Object.entries(i))yt.set(s,`${e}/components/${n.file}`)}catch{console.warn("[VB] Component manifest unavailable \u2014 autoloader disabled")}return yt}async function Vg(e){if(customElements.get(e))return;if(an.has(e))return an.get(e);let t=yt?.get(e);if(!t)return;let i=import(t).then(()=>customElements.whenDefined(e)).then(()=>{}).catch(s=>{console.warn(`[VB] Failed to autoload ${e}:`,s),an.delete(e)});return an.set(e,i),i}function zg(e){if(!yt)return;let t=e===document?document.querySelectorAll("*"):e.querySelectorAll?.("*")||[],i=new Set;for(let s of t){let n=s.localName;n.includes("-")&&!customElements.get(n)&&yt.has(n)&&i.add(n)}for(let s of i)Vg(s)}async function Ug(){await Rx(),zg(document),!zc&&(zc=new MutationObserver(e=>{for(let t of e)for(let i of t.addedNodes){if(i.nodeType!==Node.ELEMENT_NODE)continue;let s=i,n=s.localName;n.includes("-")&&yt?.has(n)&&Vg(n),s.querySelectorAll&&zg(s)}}),zc.observe(document.documentElement,{childList:!0,subtree:!0}))}ot();me();function on(e,t){y.deactivate(e),e.offsetWidth,t()}function Vc(e,t){if(y.prefersReducedMotion()){t();return}let i=new IntersectionObserver(([s])=>{s.isIntersecting&&(i.disconnect(),t())},{threshold:.1});return i.observe(e),()=>i.disconnect()}function Px(e){let t=(e||"0").trim(),i=parseFloat(t);return!Number.isFinite(i)||i<0?0:/^[\d.]+s$/i.test(t)?i*1e3:i}y.trigger("scroll",(e,t)=>Vc(e,t));y.trigger("hover",(e,t)=>{let i=!1,s=!1;function n(u){let d=i||s;u==="hover"?i=!0:s=!0,d||on(e,t)}function r(){!i&&!s&&y.deactivate(e)}let a=()=>n("hover"),o=()=>{i=!1,r()},c=()=>n("focus"),l=u=>{u.relatedTarget instanceof Node&&e.contains(u.relatedTarget)||(s=!1,r())};return e.addEventListener("pointerenter",a),e.addEventListener("pointerleave",o),e.addEventListener("focusin",c),e.addEventListener("focusout",l),()=>{e.removeEventListener("pointerenter",a),e.removeEventListener("pointerleave",o),e.removeEventListener("focusin",c),e.removeEventListener("focusout",l)}});y.trigger("click",(e,t,i)=>{function s(){i==="replay"?on(e,t):e.hasAttribute("data-effect-active")?y.deactivate(e):t()}return e.addEventListener("click",s),()=>e.removeEventListener("click",s)});y.trigger("time",(e,t,i)=>{let s=setTimeout(t,Px(i));return()=>clearTimeout(s)});y.trigger("intersect",(e,t,i)=>{if(y.prefersReducedMotion()){t();return}if((i||"once")==="toggle"){let n=new IntersectionObserver(([r])=>{r.isIntersecting?t():y.deactivate(e)},{threshold:.1});return n.observe(e),()=>n.disconnect()}return Vc(e,t)});y.trigger("media",(e,t,i)=>{if(!i)return;let s=window.matchMedia(i);function n(){s.matches?t():y.deactivate(e)}return s.addEventListener("change",n),n(),()=>s.removeEventListener("change",n)});y.trigger("event",(e,t,i)=>{if(!i)return;let s=()=>on(e,t);return e.addEventListener(i,s),()=>e.removeEventListener(i,s)});y.trigger("vt",(e,t)=>{let i=()=>on(e,t);return e.addEventListener("vb:vt-update-done",i),()=>e.removeEventListener("vb:vt-update-done",i)});var Fx=typeof CSS<"u"&&typeof CSS.supports=="function"&&CSS.supports("animation-timeline: view()");for(let e of["view-progress","scroll-progress"])y.trigger(e,(t,i)=>{if(!(Fx&&!y.prefersReducedMotion()))return Vc(t,i)});var Ox=12;function Qt(e,t,i){let s=y.uid(t),n=i===void 0?`${e}-${s}`:`${e}-${s}-${i}`;return typeof CSS<"u"&&CSS.escape?CSS.escape(n):n.replace(/[^\w-]/g,"_")}function $e(e,t,i){return e.style.viewTransitionName=t,i&&(e.style.viewTransitionClass=i),()=>{e.style.viewTransitionName="",i&&(e.style.viewTransitionClass="")}}y.transition("morph",e=>$e(e,Qt("morph",e)));function qx(e,t){let i=(t||"forward").trim().toLowerCase();if(i==="left")return"slide-left";if(i==="right")return"slide-right";let n=!(getComputedStyle(e).direction==="rtl");return(i==="back"?!n:n)?"slide-left":"slide-right"}y.transition("slide",(e,t)=>$e(e,Qt("slide",e),qx(e,t)));y.transition("fade",e=>$e(e,Qt("fade",e),"fade"));y.transition("scale",e=>$e(e,Qt("scale",e),"scale"));y.transition("none",e=>$e(e,Qt("none",e),"vt-none"));function Bx(e){let t=new Set,i=()=>{let n=Array.from(e.children);for(let r of t)r.parentElement!==e&&(r.style.viewTransitionName="",r.style.viewTransitionClass="",t.delete(r));n.forEach((r,a)=>{if(!(r instanceof HTMLElement))return;let o=Math.min(a,Ox-1);r.style.viewTransitionName=Qt("stagger",e,y.uid(r)),r.style.viewTransitionClass=`fade vt-stagger-${o}`,t.add(r)})};i();let s=new MutationObserver(i);return s.observe(e,{childList:!0}),()=>{s.disconnect();for(let n of t)n.style.viewTransitionName="",n.style.viewTransitionClass="";t.clear()}}y.transition("stagger",e=>Bx(e));y.transition("effect",(e,t)=>{let i=(t||"fade").trim();return $e(e,Qt("effect",e),/^-?[_a-zA-Z][\w-]*$/.test(i)?i:"fade")});var Wg="data-effect-glitch-init";y.effect("glitch",e=>(e.setAttribute("data-glitch-text",(e.textContent||"").trim()),e.setAttribute(Wg,""),{cleanup(){e.removeAttribute(Wg),e.removeAttribute("data-glitch-text")}}));var Uc="data-effect-blur-reveal-init";y.effect("blur-reveal",e=>{let t=e;if(Y(t),t.removeAttribute(Uc),y.prefersReducedMotion())return{cleanup(){}};t.style.setProperty("--blur-delay",y.params(t).get("blur-reveal-delay")||"80ms");let i=Nt(t,{className:"vb-blur-chunk"});i.forEach((n,r)=>n.style.setProperty("--i",String(r))),t.setAttribute(Uc,"");let s=null;if(t.classList.contains("line")){Se(i);let n=t.clientWidth;s=new ResizeObserver(()=>{t.clientWidth!==n&&(n=t.clientWidth,Se(i))}),s.observe(t)}return{activate(){t.setAttribute("data-effect-active","")},cleanup(){s?.disconnect(),Y(t),t.removeAttribute(Uc),t.style.removeProperty("--blur-delay")}}});var Wc="data-effect-typewriter-init",jx=2e3,Hx=400,zx=200;y.effect("typewriter",e=>{let t=e;if(Y(t),t.querySelectorAll(":scope > .vb-typewriter-cursor").forEach(d=>d.remove()),t.removeAttribute(Wc),y.prefersReducedMotion())return{cleanup(){}};let i=Nt(t,{unit:"grapheme",className:"vb-typewriter-char"});t.setAttribute(Wc,"");let s=0,n=null,r=()=>{clearTimeout(s),s=0},a=()=>!!t.closest("[data-paused]"),o=(d,h)=>{s=window.setTimeout(function f(){if(a()){s=window.setTimeout(f,zx);return}d()},h)},c=d=>i.forEach((h,f)=>{h.hidden=f>=d}),l=(d,h)=>{let f=d+h;for(;f>0&&f<i.length&&i[f-1].hasAttribute("data-space");)f+=h;return f};function u(){r();let d=y.params(t),h=d.getTime("typewriter-speed",50),f=d.getTime("typewriter-delay",0),p=t.classList.contains("loop");!n&&!t.classList.contains("no-cursor")&&(n=document.createElement("span"),n.className="vb-typewriter-cursor",n.textContent="|",n.setAttribute("aria-hidden","true"),t.append(n));let m=0;c(0);let g=()=>{m<i.length?(m=l(m,1),c(m),o(g,h)):p&&o(b,jx)},b=()=>{m>0?(m=Math.max(0,l(m,-1)),c(m),o(b,h/2)):o(g,Hx)};o(g,f)}return{activate(){u()},cleanup(){r(),n?.remove(),n=null,Y(t),t.removeAttribute(Wc)}}});var Gc="data-effect-scramble-init",Vx="!<>-_\\/[]{}=+*^?#";function Ux(e){let t=y.params(e).get("scramble-chars"),i=/^(['"])(.*)\1$/.exec(t);i&&(t=i[2]);let s=ke(t);return s.length?s:ke(Vx)}var Wx=e=>e[Math.floor(Math.random()*e.length)];y.effect("scramble",e=>{let t=e;if(Y(t),t.removeAttribute(Gc),y.prefersReducedMotion())return{cleanup(){}};let i=Nt(t,{unit:"grapheme",className:"vb-scramble-char"}),s=i.map(l=>l.textContent||""),n=i.flatMap((l,u)=>l.hasAttribute("data-space")?[]:[u]);t.setAttribute(Gc,"");let r=0,a=()=>{clearTimeout(r),r=0},o=()=>i.forEach((l,u)=>{l.textContent=s[u]});function c(){a();let l=y.params(t),u=l.getTime("scramble-duration",1500),d=Math.max(1,l.getTime("scramble-speed",30)),h=Ux(t),f=Math.max(1,Math.ceil(u/d)),p=0,m=()=>{let g=Math.floor(p/f*n.length);n.forEach((b,A)=>{i[b].textContent=A<g?s[b]:Wx(h)}),p++,p<=f?r=window.setTimeout(m,d):o()};m()}return{activate(){c()},cleanup(){a(),Y(t),t.removeAttribute(Gc)}}});ys();var Gx=5e3;function Kx(e){return e===1?1:1-Math.pow(2,-10*e)}function Yx(e){let t=e.trim(),i=t.indexOf(".");return i===-1||/e/i.test(t)?0:t.length-i-1}function Xx(e){if(e==null||e.trim()==="")return null;let t=parseInt(e,10);return Number.isInteger(t)&&t>=0&&t<=20?t:null}function Zx(e,t,i){let s=i??Yx(t),n=i!=null||!e.hasAttribute("data-format-number");return{formatter:bs(e,n?{minimumFractionDigits:s,maximumFractionDigits:s}:{}),step:s}}function Jx(e,t){let i=Math.pow(10,Math.min(t,15));return Math.round(e*i)/i}function Qx(e){let t=e.getAttribute("value");if(t==null||t.trim()==="")return null;let i=Number(t);if(isNaN(i))return null;let s=y.params(e),n=s.getNumber("ticker-start",0),r=Math.min(Math.max(s.getTime("ticker-duration",1e3),0),Gx),a=Xx(s.get("ticker-decimals")),{formatter:o,step:c}=Zx(e,t,a),l=i-n;if(l===0)return null;let u=null,d=0;function h(){e.removeAttribute("aria-busy")}function f(p){u||(u=p);let m=p-u,g=r===0?1:Math.min(m/r,1);if(g<1){let b=Jx(n+l*Kx(g),c);e.textContent=o?o.format(b):b.toFixed(c),d=requestAnimationFrame(f)}else e.textContent=o?o.format(i):i.toFixed(c),h()}return e.setAttribute("aria-busy","true"),d=requestAnimationFrame(f),()=>{cancelAnimationFrame(d),h()}}y.effect("ticker",e=>{if(y.prefersReducedMotion())return{cleanup(){}};let t=null,i=e.textContent;return{activate(){t?.(),t=Qx(e)},cleanup(){t?.(),t=null,e.textContent!==i&&(e.textContent=i)}}});wt();var Gg="animate-image-wrapper";function tC(e){let t=(e.getAttribute("alt")||"").trim(),i=R(e,"animation-pause","Pause animation");return i.includes("{alt}")?i.replace("{alt}",t).trim():t?`${i}: ${t}`:i}y.effect("animate-image",e=>{let t=e;if(t.tagName!=="IMG"||!t.parentNode)return{cleanup(){}};t.removeAttribute("data-effect-animate-image-init"),t.hasAttribute("alt")||console.warn("[animate-image] Image has no alt text; describe what the animation shows.",t);let i=t.getAttribute("data-animate-image-src");if(i){t.src=i;let S=t.getAttribute("data-animate-image-srcset");S&&(t.srcset=S),t.removeAttribute("data-animate-image-src"),t.removeAttribute("data-animate-image-srcset")}let s=t.parentElement?.tagName==="PICTURE"?t.parentElement:null,n=s||t,r=s?[...s.querySelectorAll(":scope > source")]:[],a=n.parentElement?.classList.contains(Gg)?n.parentElement:null,o=a||document.createElement("span");a?o.querySelectorAll(":scope > .animate-image-toggle, :scope > .animate-image-placeholder").forEach(S=>S.remove()):(o.className=Gg,n.parentNode?.insertBefore(o,n),o.appendChild(n));let c=document.createElement("span");c.className="animate-image-placeholder",c.hidden=!0,o.appendChild(c);let l=document.createElement("button");l.type="button",l.className="animate-image-toggle",l.setAttribute("aria-pressed","false"),l.setAttribute("aria-label",tC(t)),o.appendChild(l);let u=t.hasAttribute("data-animate-image-paused"),d=t.getAttribute("data-poster"),h=!1,f=!1,p=null;function m(){if(d||!t.naturalWidth)return;let S=document.createElement("canvas");S.width=t.naturalWidth,S.height=t.naturalHeight;let L=S.getContext("2d");if(L)try{L.drawImage(t,0,0),d=S.toDataURL("image/png")}catch{d=null}}function g(){l.setAttribute("aria-pressed",String(h)),l.classList.toggle("paused",h),t.toggleAttribute("data-animate-image-paused",h)}function b({auto:S=!1}={}){if(!h){if(m(),h=!0,f=S,p={src:t.currentSrc||t.src,srcset:t.getAttribute("srcset"),sizes:t.getAttribute("sizes"),sources:r.map(L=>[L,L.getAttribute("srcset"),L.getAttribute("sizes")])},t.setAttribute("data-animate-image-src",t.getAttribute("src")||p.src),p.srcset&&t.setAttribute("data-animate-image-srcset",p.srcset),d){for(let[L]of p.sources)L.removeAttribute("srcset"),L.removeAttribute("sizes");t.removeAttribute("srcset"),t.removeAttribute("sizes"),t.src=d}else c.textContent=t.getAttribute("alt")||"",c.hidden=!1,o.setAttribute("data-animate-image-hidden","");g()}}function A(){if(h){if(h=!1,f=!1,p){for(let[S,L,F]of p.sources)L!=null&&S.setAttribute("srcset",L),F!=null&&S.setAttribute("sizes",F);p.sizes!=null&&t.setAttribute("sizes",p.sizes),p.srcset!=null&&t.setAttribute("srcset",p.srcset),t.src=t.getAttribute("data-animate-image-src")||p.src}p=null,t.removeAttribute("data-animate-image-src"),t.removeAttribute("data-animate-image-srcset"),c.hidden=!0,o.removeAttribute("data-animate-image-hidden"),g()}}l.addEventListener("click",()=>h?A():b());function v(S){t.complete&&t.naturalWidth?S():t.addEventListener("load",S,{once:!0})}v(m),u?v(()=>b()):y.prefersReducedMotion()&&v(()=>b({auto:!0}));let $=()=>{y.prefersReducedMotion()?v(()=>b({auto:!0})):f&&A()},N=window.matchMedia("(prefers-reduced-motion: reduce)");N.addEventListener("change",$);let j=new MutationObserver($);return j.observe(document.documentElement,{attributes:!0,attributeFilter:["data-motion-reduced"]}),{cleanup(){N.removeEventListener("change",$),j.disconnect(),h&&A(),t.toggleAttribute("data-animate-image-paused",u),l.remove(),c.remove(),o.parentNode&&(o.parentNode.insertBefore(n,o),o.remove())}}});var Kg="data-effect-flipboard-init",cn=" ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,:!?/-",eC=60,iC=30,sC=80,_t="\xA0",Yg=new WeakMap;function nC(){let e=document.createElement("span");e.className="vb-flap-char";for(let i of["top","bottom","flip-top","flip-bottom"]){let s=document.createElement("span");s.className=`vb-flap-${i}`;let n=document.createElement("span");n.className="vb-flap-text",n.textContent=_t,s.append(n),e.append(s)}let t=document.createElement("span");return t.className="vb-flap-hinge",e.append(t),e}function Xg(e,t){for(let i of e.querySelectorAll(".vb-flap-text"))i.textContent=t||_t}function ln(e,t){return new Promise(i=>{let s=window.setTimeout(()=>{e.timers.delete(s),i(void 0)},t);e.timers.add(s)})}async function rC(e,t,i,s,n){let r=t.querySelector(".vb-flap-top .vb-flap-text"),a=t.querySelector(".vb-flap-bottom .vb-flap-text"),o=t.querySelector(".vb-flap-flip-top"),c=t.querySelector(".vb-flap-flip-bottom");r.textContent=i||_t,a.textContent=i||_t,o.querySelector(".vb-flap-text").textContent=i||_t,c.querySelector(".vb-flap-text").textContent=s||_t,o.classList.add("vb-flap-flipping"),c.classList.add("vb-flap-flipping"),await ln(e,n/2),r.textContent=s||_t,await ln(e,n/2),a.textContent=s||_t,o.classList.remove("vb-flap-flipping"),c.classList.remove("vb-flap-flipping")}async function aC(e,t,i,s,n,r){for(let a=0;a<s;a++){if(e.generation!==n)return;let o=a===s-1,c=cn[a%cn.length],l=o?i:cn[(a+1)%cn.length];await rC(e,t,c,l,r),o||await ln(e,iC)}}function Zg(e){e.generation++;for(let t of e.timers)clearTimeout(t);e.timers.clear()}function oC(e,t){let i=of(e,t.original);return e.classList.add("vb-flap-board"),t.chars.map(()=>i.appendChild(nC()))}function cC(e,t){Zg(t);let i=e,s=y.params(i).getTime("flip-ms",eC);i.style.setProperty("--_vb-flip-duration",`${s}ms`);let n=oC(e,t),r=t.generation;if(y.prefersReducedMotion()){n.forEach((a,o)=>Xg(a,t.chars[o]));return}Promise.all(n.map(async(a,o)=>{if(await ln(t,o*sC),t.generation!==r)return;let c=4+Math.floor(Math.random()*7);await aC(t,a,t.chars[o],c,r,s)})).then(()=>{t.generation===r&&n.forEach((a,o)=>Xg(a,t.chars[o]))})}y.effect("flipboard",e=>{let t=af(e).trim();if(Y(e),e.classList.remove("vb-flap-board"),!t)return{cleanup(){}};let i={original:t,chars:ke(t.toLocaleUpperCase(e.closest("[lang]")?.getAttribute("lang")||void 0)),generation:0,timers:new Set};return Yg.set(e,i),e.setAttribute(Kg,""),cC(e,i),{cleanup(){Zg(i),Yg.delete(e),e.textContent=i.original,e.classList.remove("vb-flap-board"),e.removeAttribute(Kg),e.style.removeProperty("--_vb-flip-duration")}}});var Jg="vb-stamp-noise",De="http://www.w3.org/2000/svg";function lC(){if(document.getElementById(Jg))return;let e=document.createElementNS(De,"svg");e.setAttribute("aria-hidden","true"),e.setAttribute("focusable","false"),e.setAttribute("width","0"),e.setAttribute("height","0"),e.style.position="absolute",e.style.overflow="hidden";let t=document.createElementNS(De,"filter");t.id=Jg;for(let[a,o]of Object.entries({x:"-5%",y:"-5%",width:"110%",height:"110%"}))t.setAttribute(a,o);let i=document.createElementNS(De,"feTurbulence");for(let[a,o]of Object.entries({type:"fractalNoise",baseFrequency:"0.75",numOctaves:"4",stitchTiles:"stitch",result:"noise"}))i.setAttribute(a,o);let s=document.createElementNS(De,"feColorMatrix");for(let[a,o]of Object.entries({type:"saturate",values:"0",in:"noise",result:"greyNoise"}))s.setAttribute(a,o);let n=document.createElementNS(De,"feComposite");for(let[a,o]of Object.entries({in:"SourceGraphic",in2:"greyNoise",operator:"in"}))n.setAttribute(a,o);t.append(i,s,n);let r=document.createElementNS(De,"defs");r.append(t),e.append(r),document.body.prepend(e)}y.effect("stamp",()=>(lC(),{cleanup(){}}));var uC="Rating cleared";function Qg(e,t){e.dispatchEvent(new CustomEvent("rating:change",{bubbles:!0,detail:{value:t}}))}function Kc(e){return e instanceof HTMLInputElement&&e.type==="radio"?e:null}y.effect("rating",e=>{if(e.hasAttribute("data-rating-readonly"))return;let t=document.createElement("span");t.setAttribute("data-rating-live",""),t.setAttribute("role","status"),e.appendChild(t);let i=0;function s(u){t.textContent="",clearTimeout(i),i=window.setTimeout(()=>{t.textContent=u},50)}function n(u){u.checked=!1,Qg(e,0),s(e.getAttribute("data-label-cleared")||uC)}let r=!1,a=0;function o(u){let d=Kc(u.target);!d||!d.checked||(r=!1,clearTimeout(a),a=window.setTimeout(()=>{!r&&d.checked&&n(d)},0))}function c(u){if(u.key!=="Delete"&&u.key!=="Backspace")return;let d=Kc(u.target);!d||!d.checked||(u.preventDefault(),n(d))}function l(u){let d=Kc(u.target);!d||!d.checked||(r=!0,Qg(e,Number(d.value)))}return e.addEventListener("click",o),e.addEventListener("keydown",c),e.addEventListener("change",l),{cleanup(){clearTimeout(i),clearTimeout(a),e.removeEventListener("click",o),e.removeEventListener("keydown",c),e.removeEventListener("change",l),t.remove()}}});await I.init();Df();Fg();jg();Hg();kg();y.observe();await Ug();export{I as ThemeManager,J as VBService,G as VBServiceError,x as VBStore};
663
553
  //# sourceMappingURL=vanilla-breeze-autoload.js.map