@dogsbay/ssg-cli 0.2.0-beta.182 → 0.2.0-beta.183

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.
@@ -1,55 +1,55 @@
1
1
  Third-party software in dist/cli.mjs and its chunks
2
2
 
3
3
  ========================================================================
4
- @dogsbay/corpus@0.2.0-beta.182 (MIT)
4
+ @dogsbay/corpus@0.2.0-beta.183 (MIT)
5
5
  https://github.com/dogsbay/dogsbay.git
6
6
 
7
7
  Licensed under MIT; the package ships no licence file.
8
8
 
9
9
  ========================================================================
10
- @dogsbay/detect@0.2.0-beta.182 (MIT)
10
+ @dogsbay/detect@0.2.0-beta.183 (MIT)
11
11
  https://github.com/dogsbay/dogsbay.git
12
12
 
13
13
  Licensed under MIT; the package ships no licence file.
14
14
 
15
15
  ========================================================================
16
- @dogsbay/elements@0.2.0-beta.182 (MIT)
16
+ @dogsbay/elements@0.2.0-beta.183 (MIT)
17
17
  https://github.com/dogsbay/dogsbay.git
18
18
 
19
19
  Licensed under MIT; the package ships no licence file.
20
20
 
21
21
  ========================================================================
22
- @dogsbay/format-dogsbay-md@0.2.0-beta.182 (MIT)
22
+ @dogsbay/format-dogsbay-md@0.2.0-beta.183 (MIT)
23
23
  https://github.com/dogsbay/dogsbay.git
24
24
 
25
25
  Licensed under MIT; the package ships no licence file.
26
26
 
27
27
  ========================================================================
28
- @dogsbay/format-openapi@0.2.0-beta.182 (MIT)
28
+ @dogsbay/format-openapi@0.2.0-beta.183 (MIT)
29
29
  https://github.com/dogsbay/dogsbay.git
30
30
 
31
31
  Licensed under MIT; the package ships no licence file.
32
32
 
33
33
  ========================================================================
34
- @dogsbay/format-topicmap@0.2.0-beta.182 (MIT)
34
+ @dogsbay/format-topicmap@0.2.0-beta.183 (MIT)
35
35
  https://github.com/dogsbay/dogsbay.git
36
36
 
37
37
  Licensed under MIT; the package ships no licence file.
38
38
 
39
39
  ========================================================================
40
- @dogsbay/highlight@0.2.0-beta.182 (MIT)
40
+ @dogsbay/highlight@0.2.0-beta.183 (MIT)
41
41
  https://github.com/dogsbay/dogsbay.git
42
42
 
43
43
  Licensed under MIT; the package ships no licence file.
44
44
 
45
45
  ========================================================================
46
- @dogsbay/icons@0.2.0-beta.182 (MIT)
46
+ @dogsbay/icons@0.2.0-beta.183 (MIT)
47
47
  https://github.com/dogsbay/dogsbay.git
48
48
 
49
49
  Licensed under MIT; the package ships no licence file.
50
50
 
51
51
  ========================================================================
52
- @dogsbay/minja@0.2.0-beta.182 (MIT)
52
+ @dogsbay/minja@0.2.0-beta.183 (MIT)
53
53
 
54
54
  MIT License
55
55
 
@@ -74,49 +74,49 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
74
74
  SOFTWARE.
75
75
 
76
76
  ========================================================================
77
- @dogsbay/primitives@0.2.0-beta.182 (MIT)
77
+ @dogsbay/primitives@0.2.0-beta.183 (MIT)
78
78
  https://github.com/dogsbay/dogsbay.git
79
79
 
80
80
  Licensed under MIT; the package ships no licence file.
81
81
 
82
82
  ========================================================================
83
- @dogsbay/render-html@0.2.0-beta.182 (MIT)
83
+ @dogsbay/render-html@0.2.0-beta.183 (MIT)
84
84
  https://github.com/dogsbay/dogsbay.git
85
85
 
86
86
  Licensed under MIT; the package ships no licence file.
87
87
 
88
88
  ========================================================================
89
- @dogsbay/search@0.2.0-beta.182 (MIT)
89
+ @dogsbay/search@0.2.0-beta.183 (MIT)
90
90
  https://github.com/dogsbay/dogsbay.git
91
91
 
92
92
  Licensed under MIT; the package ships no licence file.
93
93
 
94
94
  ========================================================================
95
- @dogsbay/serialize-core@0.2.0-beta.182 (MIT)
95
+ @dogsbay/serialize-core@0.2.0-beta.183 (MIT)
96
96
  https://github.com/dogsbay/dogsbay.git
97
97
 
98
98
  Licensed under MIT; the package ships no licence file.
99
99
 
100
100
  ========================================================================
101
- @dogsbay/site-check@0.2.0-beta.182 (MIT)
101
+ @dogsbay/site-check@0.2.0-beta.183 (MIT)
102
102
  https://github.com/dogsbay/dogsbay.git
103
103
 
104
104
  Licensed under MIT; the package ships no licence file.
105
105
 
106
106
  ========================================================================
107
- @dogsbay/site-files@0.2.0-beta.182 (MIT)
107
+ @dogsbay/site-files@0.2.0-beta.183 (MIT)
108
108
  https://github.com/dogsbay/dogsbay.git
109
109
 
110
110
  Licensed under MIT; the package ships no licence file.
111
111
 
112
112
  ========================================================================
113
- @dogsbay/types@0.2.0-beta.182 (MIT)
113
+ @dogsbay/types@0.2.0-beta.183 (MIT)
114
114
  https://github.com/dogsbay/dogsbay.git
115
115
 
116
116
  Licensed under MIT; the package ships no licence file.
117
117
 
118
118
  ========================================================================
119
- @dogsbay/ui@0.2.0-beta.182 (MIT)
119
+ @dogsbay/ui@0.2.0-beta.183 (MIT)
120
120
  https://github.com/dogsbay/dogsbay.git
121
121
 
122
122
  Licensed under MIT; the package ships no licence file.
@@ -17,7 +17,7 @@ import {
17
17
  removeStaleUnitFiles,
18
18
  selectUnits,
19
19
  unitFilesOf
20
- } from "./chunk-E3FODT5J.mjs";
20
+ } from "./chunk-QDXUP47M.mjs";
21
21
  import "./chunk-KFYMG4VB.mjs";
22
22
  import {
23
23
  UNTRUSTED_DATA_LIMITS
@@ -11,7 +11,7 @@ import {
11
11
  releaseCollector,
12
12
  reportExitCode,
13
13
  toReport
14
- } from "./chunk-BN7J5H3S.mjs";
14
+ } from "./chunk-KE6N5RFA.mjs";
15
15
  import {
16
16
  cliMemorySettings,
17
17
  diagramRenderers,
@@ -24,7 +24,7 @@ import {
24
24
  parseConfig,
25
25
  readBuildFiles,
26
26
  siteBase
27
- } from "./chunk-E3FODT5J.mjs";
27
+ } from "./chunk-QDXUP47M.mjs";
28
28
  import "./chunk-KFYMG4VB.mjs";
29
29
  import {
30
30
  DATA_DIRECTIVES,
@@ -40,7 +40,7 @@ import {
40
40
  uniqueSort,
41
41
  unitOfPath,
42
42
  versionsOf
43
- } from "./chunk-E3FODT5J.mjs";
43
+ } from "./chunk-QDXUP47M.mjs";
44
44
  import {
45
45
  checkFrontmatter,
46
46
  detectLeadingNodes,
@@ -3917,7 +3917,7 @@ function staleUnitFiles(previous, now2, written, assets) {
3917
3917
  }
3918
3918
 
3919
3919
  // src/generated/versions.ts
3920
- var PARSER_VERSION = "@dogsbay/format-dogsbay-md@0.2.0-beta.182 @dogsbay/corpus@0.2.0-beta.182 @dogsbay/format-topicmap@0.2.0-beta.182 @dogsbay/minja@0.2.0-beta.182 @dogsbay/serialize-core@0.2.0-beta.182 @dogsbay/types@0.2.0-beta.182 gray-matter@4.0.3 js-yaml@5.5.0 markdown-it@14.3.2 markdown-it-attrs@5.0.1 markdown-it-deflist@3.0.1 markdown-it-footnote@4.0.0 markdown-it-front-matter@0.2.4 pele@1.6.0";
3920
+ var PARSER_VERSION = "@dogsbay/format-dogsbay-md@0.2.0-beta.183 @dogsbay/corpus@0.2.0-beta.183 @dogsbay/format-topicmap@0.2.0-beta.183 @dogsbay/minja@0.2.0-beta.183 @dogsbay/serialize-core@0.2.0-beta.183 @dogsbay/types@0.2.0-beta.183 gray-matter@4.0.3 js-yaml@5.5.0 markdown-it@14.3.2 markdown-it-attrs@5.0.1 markdown-it-deflist@3.0.1 markdown-it-footnote@4.0.0 markdown-it-front-matter@0.2.4 pele@1.6.0";
3921
3921
 
3922
3922
  // src/core/tree-cache.ts
3923
3923
  var FORMAT = "p1";
@@ -4161,7 +4161,7 @@ function unitPages(cfg, unit, units, files, frontMatterOf, read, includeDrafts)
4161
4161
  // src/generated/assets.ts
4162
4162
  var CLIENT_JS = '/*! dogsbay-ssg site client (Apache-2.0). Third-party notices: THIRD-PARTY-NOTICES.txt */\n"use strict";(()=>{var Ko=Object.defineProperty;var Vo=(n,t,e)=>t in n?Ko(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var g=(n,t,e)=>Vo(n,typeof t!="symbol"?t+"":t,e);var et=class extends HTMLElement{constructor(){super(...arguments);g(this,"_initialized",!1);g(this,"_deferred",!1)}connectedCallback(){if(!this._initialized&&!this.firstElementChild&&typeof document<"u"&&document.readyState==="loading"){this._deferred||(this._deferred=!0,document.addEventListener("DOMContentLoaded",()=>{this._deferred=!1,this.isConnected&&this.connectedCallback()},{once:!0}));return}this._initialized||(this.setup(),this._initialized=!0),this.connect()}disconnectedCallback(){this.disconnect()}setup(){}connect(){}disconnect(){}},Uo={"db-tabs":"block","db-accordion":"block","db-collapsible":"block","db-details-sheet":"block","db-card":"block","db-steps":"block","db-code-block":"block","db-link-button":"inline-block","db-dialog":"contents","db-popover":"inline-block","db-tooltip":"inline-block","db-select":"inline-block","db-combobox":"block","db-nav-tree":"block","db-toc":"block","db-announcement":"block"},Hn="dogsbay-elements-display";function nt(){if(typeof document>"u"||document.getElementById(Hn))return;let n=Object.entries(Uo).map(([e,i])=>`:where(${e}){display:${i}}`).join(""),t=document.createElement("style");t.id=Hn,t.textContent=n,document.head.prepend(t)}function Wo(n){return n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"}function Yt(n,t,e){let i=t;do i+=e?-1:1;while(i>=0&&i<n.length&&Wo(n[i]));return i}var he=class{constructor(n,t,e={}){g(this,"container");g(this,"itemSelector");g(this,"opts");g(this,"keydownHandler",null);g(this,"active",!1);this.container=n,this.itemSelector=t,this.opts={orientation:e.orientation??"horizontal",loop:e.loop??!0,homeEnd:e.homeEnd??!0,onHighlightedIndexChange:e.onHighlightedIndexChange??(()=>{})}}getItems(){return Array.from(this.container.querySelectorAll(this.itemSelector))}isForwardKey(n,t){let{orientation:e}=this.opts;return(e==="horizontal"||e==="both")&&n===(t?"ArrowLeft":"ArrowRight")||(e==="vertical"||e==="both")&&n==="ArrowDown"}isBackwardKey(n,t){let{orientation:e}=this.opts;return(e==="horizontal"||e==="both")&&n===(t?"ArrowRight":"ArrowLeft")||(e==="vertical"||e==="both")&&n==="ArrowUp"}activate(){this.active||(this.active=!0,this.keydownHandler=n=>{let t=this.getItems();if(t.length===0||n.ctrlKey||n.altKey||n.metaKey)return;let e=getComputedStyle(this.container).direction==="rtl",i=t.indexOf(document.activeElement);if(i===-1)return;let o=null;this.isForwardKey(n.key,e)?(o=Yt(t,i,!1),o>=t.length&&(o=this.opts.loop?Yt(t,-1,!1):i)):this.isBackwardKey(n.key,e)?(o=Yt(t,i,!0),o<0&&(o=this.opts.loop?Yt(t,t.length,!0):i)):this.opts.homeEnd&&n.key==="Home"?o=Yt(t,-1,!1):this.opts.homeEnd&&n.key==="End"&&(o=Yt(t,t.length,!0)),o!==null&&(o<0||o>=t.length||o!==i&&(n.preventDefault(),t[i].setAttribute("tabindex","-1"),t[o].setAttribute("tabindex","0"),t[o].focus(),this.opts.onHighlightedIndexChange(o)))},this.container.addEventListener("keydown",this.keydownHandler))}deactivate(){this.active&&(this.active=!1,this.keydownHandler&&(this.container.removeEventListener("keydown",this.keydownHandler),this.keydownHandler=null))}setActiveIndex(n,t){n.forEach((e,i)=>{e.setAttribute("tabindex",i===t?"0":"-1")})}isActive(){return this.active}};var Yo=0;function Pn(n){return`${n}-${++Yo}`}var Fn=class extends et{constructor(){super(...arguments);g(this,"list");g(this,"triggers",[]);g(this,"panels",[]);g(this,"nav",null);g(this,"value","");g(this,"syncKey",null);g(this,"orientation","horizontal");g(this,"handleClick",t=>{let e=t.target.closest("[data-part=\'trigger\']");if(!e||e.hasAttribute("disabled"))return;let i=e.dataset.value;i&&this.select(i)});g(this,"handleStorage",t=>{if(!this.syncKey||t.key!==`db-tabs-sync:${this.syncKey}`)return;let e=t.newValue;e&&this.value!==e&&this.has(e)&&this.select(e)});g(this,"handleSyncEvent",(t=>{let e=t.detail.value;e&&this.value!==e&&this.has(e)&&this.select(e)}));g(this,"handleHashChange",()=>{let t=this.valueForHash();t&&(this.select(t.value),t.target&&this.reveal(t.target))})}has(t){return this.triggers.some(e=>e.dataset.value===t)}own(t){return Array.from(this.querySelectorAll(t)).filter(e=>e.closest("db-tabs")===this)}setup(){var s;let t=this.own("[data-part=\'list\']")[0]??null;if(!t)return;this.list=t,this.triggers=this.own("[data-part=\'trigger\']"),this.panels=this.own("[data-part=\'content\']"),this.orientation=this.getAttribute("orientation")||"horizontal",this.syncKey=this.getAttribute("sync-key")||null,t.setAttribute("role","tablist"),t.setAttribute("aria-orientation",this.orientation),this.triggers.forEach(r=>{let a=r.dataset.value;r.setAttribute("role","tab");let c=r.id||Pn("db-tab");r.id=c;let l=this.panels.find(d=>d.dataset.value===a);if(l){l.setAttribute("role","tabpanel");let d=l.id||Pn("db-tabpanel");l.id=d,r.setAttribute("aria-controls",d),l.setAttribute("aria-labelledby",c)}}),this.nav=new he(t,"[data-part=\'trigger\']",{orientation:this.orientation,loop:!0,homeEnd:!0,onHighlightedIndexChange:()=>{var c;let r=document.activeElement,a=(c=r==null?void 0:r.dataset)==null?void 0:c.value;a&&this.select(a)}}),this.nav.activate();let i=this.getAttribute("default-value")||((s=this.triggers[0])==null?void 0:s.dataset.value)||"";if(this.syncKey){let r=localStorage.getItem(`db-tabs-sync:${this.syncKey}`);r&&this.triggers.some(a=>a.dataset.value===r)&&(i=r)}let o=this.valueForHash();o&&(i=o.value),this.select(i),o!=null&&o.target&&this.reveal(o.target)}valueForHash(){let t=window.location.hash.slice(1);if(!t)return;try{t=decodeURIComponent(t)}catch{}if(this.triggers.some(o=>o.dataset.value===t))return{value:t};let e=document.getElementById(t);if(!e)return;let i=this.panels.find(o=>o===e||o.contains(e));return i!=null&&i.dataset.value?{value:i.dataset.value,target:e}:void 0}reveal(t){requestAnimationFrame(()=>{var e;return(e=t.scrollIntoView)==null?void 0:e.call(t)})}connect(){var t;(t=this.list)==null||t.addEventListener("click",this.handleClick),window.addEventListener("hashchange",this.handleHashChange),this.syncKey&&(window.addEventListener("storage",this.handleStorage),document.addEventListener(`db-tabs-sync:${this.syncKey}`,this.handleSyncEvent))}disconnect(){var t;(t=this.list)==null||t.removeEventListener("click",this.handleClick),window.removeEventListener("hashchange",this.handleHashChange),this.syncKey&&(window.removeEventListener("storage",this.handleStorage),document.removeEventListener(`db-tabs-sync:${this.syncKey}`,this.handleSyncEvent))}select(t){this.value!==t&&(this.value=t,this.triggers.forEach(e=>{let i=e.dataset.value===t;e.setAttribute("aria-selected",String(i)),e.setAttribute("tabindex",i?"0":"-1"),i?e.setAttribute("data-state","active"):e.removeAttribute("data-state")}),this.panels.forEach(e=>{let i=e.dataset.value===t;e.hidden=!i,i?(e.setAttribute("data-state","active"),e.hasAttribute("tabindex")||e.setAttribute("tabindex","0")):e.removeAttribute("data-state")}),this.syncKey&&(localStorage.setItem(`db-tabs-sync:${this.syncKey}`,t),document.dispatchEvent(new CustomEvent(`db-tabs-sync:${this.syncKey}`,{detail:{value:t,source:this}}))),this.dispatchEvent(new CustomEvent("db-tabs:change",{detail:{value:t},bubbles:!0})))}};nt();customElements.get("db-tabs")||customElements.define("db-tabs",Fn);var Xo=0;function Go(n){return`${n}-${++Xo}`}var _n=class{constructor(n,t,e={}){g(this,"trigger");g(this,"content");g(this,"_open",!1);g(this,"opts");this.trigger=n,this.content=t,this.opts=e;let i=Go("base-collapsible");n.id||(n.id=`${i}-trigger`),t.id||(t.id=`${i}-content`),n.setAttribute("aria-controls",t.id),t.setAttribute("aria-labelledby",n.id),t.setAttribute("role","region"),n.setAttribute("aria-expanded","false"),n.addEventListener("click",()=>{n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"||this.toggle()})}get isOpen(){return this._open}toggle(){this._open?this.collapse():this.expand()}expand(){var n,t;this._open||(this._open=!0,this.trigger.setAttribute("aria-expanded","true"),this.content.hidden=!1,this.content.setAttribute("data-state","open"),(t=(n=this.opts).onToggle)==null||t.call(n,!0))}collapse(){var n,t;this._open&&(this._open=!1,this.trigger.setAttribute("aria-expanded","false"),this.content.hidden=!0,this.content.removeAttribute("data-state"),(t=(n=this.opts).onToggle)==null||t.call(n,!1))}};var zn=class extends et{constructor(){super(...arguments);g(this,"items",[]);g(this,"nav",null);g(this,"openValues",new Set);g(this,"type","single")}setup(){this.type=this.getAttribute("type")||"single";let t=this.getAttribute("default-value")||"",e=t?t.split(","):[],i=Array.from(this.querySelectorAll("[data-part=\'item\']"));this.items=i.map(o=>{let s=o.querySelector("[data-part=\'trigger\']"),r=o.querySelector("[data-part=\'content\']");if(!s||!r)return null;let a=o.dataset.value||"",c=o.hasAttribute("data-disabled");c&&(s.setAttribute("disabled",""),s.setAttribute("aria-disabled","true"));let l=new _n(s,r,{onToggle:d=>{d?this.onItemExpanded(a):this.onItemCollapsed(a)}});return{el:o,value:a,collapsible:l,disabled:c}}).filter(Boolean),this.nav=new he(this,"[data-part=\'trigger\']",{orientation:"vertical",loop:!0,homeEnd:!0}),this.nav.activate(),this.items.forEach((o,s)=>{o.collapsible.trigger.setAttribute("tabindex",s===0?"0":"-1")}),e.forEach(o=>{let s=this.items.find(r=>r.value===o&&!r.disabled);s&&s.collapsible.expand()})}onItemExpanded(t){if(this.type==="single"){for(let i of this.openValues)if(i!==t){let o=this.items.find(s=>s.value===i);o&&o.collapsible.collapse()}}this.openValues.add(t);let e=this.items.find(i=>i.value===t);e&&e.el.setAttribute("data-state","open"),this.dispatchEvent(new CustomEvent("db-accordion:change",{detail:{value:t,open:!0,openValues:[...this.openValues]},bubbles:!0}))}onItemCollapsed(t){this.openValues.delete(t);let e=this.items.find(i=>i.value===t);e&&e.el.removeAttribute("data-state"),this.dispatchEvent(new CustomEvent("db-accordion:change",{detail:{value:t,open:!1,openValues:[...this.openValues]},bubbles:!0}))}};nt();customElements.get("db-accordion")||customElements.define("db-accordion",zn);var Zo=0;function st(n){return`${n}-${++Zo}`}function Et(n,t){let e=n.localName;return Array.from(n.querySelectorAll(t)).filter(i=>i.closest(e)===n)}function rt(n,t){return Et(n,t)[0]??null}function Xt(n){if(!n||!n.hasAttribute("data-as-child"))return n;let t=n.firstElementChild;if(!t)return n;let e=n.getAttribute("data-part");return e&&t.setAttribute("data-part",e),t}function ft(n){return n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true"||n.getAttribute("data-disabled")==="true"}function $n(){return typeof HTMLElement<"u"&&typeof HTMLElement.prototype.showPopover=="function"}function Gt(n){if(n.hidden=!1,!$n())return"inline";n.hasAttribute("popover")||n.setAttribute("popover","manual"),n.style.inset="auto",n.style.margin="0";try{n.matches(":popover-open")||n.showPopover()}catch{return"inline"}return"top-layer"}function Zt(n){if($n())try{n.matches(":popover-open")&&n.hidePopover()}catch{}n.hidden=!0}var Qo=\'a[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]), [contenteditable="true"]\';function qn(n){return Array.from(n.querySelectorAll(Qo)).filter(t=>!t.closest("[hidden]")&&!ft(t))}function Bn(n,t){let e=typeof n.getAnimations=="function"?n.getAnimations():[];if(!e.length)return t();Promise.all(e.map(i=>i.finished)).then(t,t)}function Qt(n){try{return decodeURIComponent(n)}catch{return n}}var Kn=class extends et{constructor(){super(...arguments);g(this,"details",null);g(this,"summary",null);g(this,"dialog",null);g(this,"body",null);g(this,"source",null);g(this,"moved",[]);g(this,"handledHash",null);g(this,"onSummaryClick",t=>{var i,o;let e=t.target;e&&e!==this.summary&&((o=(i=e.closest)==null?void 0:i.call(e,"a[href], button, input, select, textarea, label"))==null?void 0:o.closest("summary"))===this.summary||(t.preventDefault(),this.show())});g(this,"onDialogClick",t=>{let e=this.dialog;if(!e||t.target!==e)return;let i=e.getBoundingClientRect();!(t.clientX>=i.left&&t.clientX<=i.right&&t.clientY>=i.top&&t.clientY<=i.bottom)&&(t.clientX!==0||t.clientY!==0)&&e.close()});g(this,"onDialogClose",()=>this.restore());g(this,"onDocClick",t=>{var s,r;if(t.defaultPrevented||t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey)return;let e=(r=(s=t.target)==null?void 0:s.closest)==null?void 0:r.call(s,"a[href]");if(!e||!this.details||this.open||e.hasAttribute("download")||e.target&&e.target!=="_self")return;let i=new URL(e.href,location.href);if(!i.hash||i.hash!==location.hash||i.pathname!==location.pathname||i.search!==location.search)return;let o=document.getElementById(Qt(i.hash.slice(1)));if(!(!o||!this.details.contains(o))){for(let a of this.details.querySelectorAll("db-details-sheet"))a.handledHash=null;this.show(o)}});g(this,"onHash",()=>{this.handledHash=null,this.openForHash()})}get open(){var t;return!!((t=this.dialog)!=null&&t.open)}setup(){var d;let t=Array.from(this.children).find(u=>u.tagName==="DETAILS")??null,e=t?Array.from(t.children).find(u=>u.tagName==="SUMMARY")??null:null,i=typeof HTMLDialogElement<"u"&&typeof HTMLDialogElement.prototype.showModal=="function";if(!t||!e||!i)return;for(let u of Array.from(t.children))u.getAttribute("role")==="status"&&u.setAttribute("aria-live","off");this.details=t,this.summary=e,t.open=!1,Jo();let o=(((d=e.querySelector("[data-part=\'title\']"))==null?void 0:d.textContent)??e.textContent??"").trim(),s=document.createElement("dialog");s.className="db-sheet",s.id=st("db-sheet");let r=document.createElement("h2");r.className="db-sheet-title",r.id=st("db-sheet-title"),r.textContent=o,s.setAttribute("aria-labelledby",r.id);let a=document.createElement("button");a.type="button",a.className="db-sheet-close",a.setAttribute("aria-label",this.getAttribute("close-label")||"Close"),a.innerHTML=\'<svg xmlns="http://www.w3.org/2000/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" focusable="false"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>\',a.addEventListener("click",()=>s.close());let c=document.createElement("div");c.className="db-sheet-header",c.append(r,a);let l=document.createElement("div");l.className="db-sheet-body",s.append(c,l),this.append(s),this.dialog=s,this.body=l,e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-controls",s.id),e.setAttribute("aria-expanded","false"),this.setAttribute("data-state","closed")}connect(){this.dialog&&(this.summary.addEventListener("click",this.onSummaryClick),this.dialog.addEventListener("click",this.onDialogClick),this.dialog.addEventListener("close",this.onDialogClose),window.addEventListener("hashchange",this.onHash),document.addEventListener("click",this.onDocClick),queueMicrotask(()=>this.isConnected&&this.openForHash()))}disconnect(){this.dialog&&(this.dialog.open&&this.dialog.close(),this.restore(!1),this.summary.removeEventListener("click",this.onSummaryClick),this.dialog.removeEventListener("click",this.onDialogClick),this.dialog.removeEventListener("close",this.onDialogClose),window.removeEventListener("hashchange",this.onHash),document.removeEventListener("click",this.onDocClick))}show(t){var c;let{dialog:e,details:i,body:o}=this;if(!e||!i||!o||e.open)return;let s=Array.from(i.childNodes).filter(l=>l!==this.summary),r=s.filter(l=>l.nodeType===Node.ELEMENT_NODE),a=r.length===1&&s.every(l=>{var d;return l===r[0]||!((d=l.textContent)!=null&&d.trim())})?r[0]:null;this.source=a??i,this.moved=a?Array.from(a.childNodes):s,o.append(...this.moved),e.showModal(),this.summary.setAttribute("aria-expanded","true"),this.setAttribute("data-state","open"),t&&t!==i&&((c=t.scrollIntoView)==null||c.call(t,{block:"start"})),this.dispatchEvent(new CustomEvent("db-details-sheet:open",{bubbles:!0}))}close(){var t;(t=this.dialog)==null||t.close()}restore(t=!0){var e,i;this.source&&(this.source.append(...this.moved),this.source=null,this.moved=[],this.summary.setAttribute("aria-expanded","false"),this.setAttribute("data-state","closed"),t&&this.isConnected&&((i=(e=this.summary).checkVisibility)==null?void 0:i.call(e))!==!1&&this.summary.focus(),this.dispatchEvent(new CustomEvent("db-details-sheet:close",{bubbles:!0})))}openForHash(){let t=Qt(location.hash.slice(1));if(!t||!this.details||this.handledHash===location.hash||(this.handledHash=location.hash,this.open))return;let e=document.getElementById(t);e&&this.details.contains(e)&&this.show(e)}},jn="dogsbay-details-sheet";function Jo(){if(document.getElementById(jn))return;let n=document.createElement("style");n.id=jn,n.textContent=["dialog.db-sheet{position:fixed;inset:0 0 0 auto;margin:0;height:100dvh;max-height:none;width:min(32rem,100vw);max-width:100vw;padding:0;border:0;border-left:1px solid var(--border);background:var(--background);color:var(--foreground);box-shadow:0 10px 15px -3px rgb(0 0 0/.1),0 4px 6px -4px rgb(0 0 0/.1);flex-direction:column}","dialog.db-sheet[open]{display:flex}","dialog.db-sheet::backdrop{background:rgb(0 0 0/.6)}",".db-sheet-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.5rem;border-bottom:1px solid var(--border)}","dialog.db-sheet h2.db-sheet-title{margin:0;padding:0;border:0;font-size:1.125rem;line-height:1.75rem;font-weight:600;scroll-margin:0}",".db-sheet-close{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:0;border-radius:.375rem;background:transparent;color:var(--muted-foreground);cursor:pointer}",".db-sheet-close:hover{background:var(--accent,var(--muted));color:var(--foreground)}",".db-sheet-close:focus-visible{outline:2px solid var(--ring);outline-offset:2px}",".db-sheet-body{flex:1;overflow-y:auto;padding:1.5rem;font-size:.875rem;line-height:1.625}","dialog.db-sheet .db-sheet-body>:first-child{margin-top:0}","html:has(dialog.db-sheet[open]){overflow:hidden}","db-details-sheet>details>summary>span:last-child{transform:rotate(-90deg)}","@media (prefers-reduced-motion:no-preference){dialog.db-sheet[open]{animation:db-sheet-in .2s ease-out}dialog.db-sheet[open]::backdrop{animation:db-sheet-fade .2s ease-out}}","@keyframes db-sheet-in{from{transform:translateX(100%)}}","@keyframes db-sheet-fade{from{opacity:0}}"].join(""),document.head.append(n)}nt();customElements.get("db-details-sheet")||customElements.define("db-details-sheet",Kn);var Vn=class extends et{constructor(){super(...arguments);g(this,"copyBtn",null);g(this,"copyIcon",null);g(this,"checkIcon",null);g(this,"liveRegion",null);g(this,"resetTimeout",null);g(this,"handleCopy",async()=>{let t=this.getCopyText();if(t)try{await navigator.clipboard.writeText(t),this.showCopiedFeedback(),this.dispatchEvent(new CustomEvent("db-code-block:copied",{detail:{text:t},bubbles:!0}))}catch{}})}setup(){this.copyBtn=this.querySelector("[data-part=\'copy\']"),this.copyIcon=this.querySelector("[data-part=\'copy-icon\']"),this.checkIcon=this.querySelector("[data-part=\'check-icon\']"),this.copyBtn&&!this.copyBtn.hasAttribute("aria-label")&&this.copyBtn.setAttribute("aria-label","Copy code"),this.liveRegion=document.createElement("span"),this.liveRegion.setAttribute("aria-live","polite"),this.liveRegion.setAttribute("role","status"),this.liveRegion.className="sr-only",this.liveRegion.style.position="absolute",this.liveRegion.style.width="1px",this.liveRegion.style.height="1px",this.liveRegion.style.overflow="hidden",this.liveRegion.style.clip="rect(0, 0, 0, 0)",this.liveRegion.style.whiteSpace="nowrap",this.appendChild(this.liveRegion)}connect(){var t;(t=this.copyBtn)==null||t.addEventListener("click",this.handleCopy)}disconnect(){var t;(t=this.copyBtn)==null||t.removeEventListener("click",this.handleCopy),this.clearResetTimeout()}getCopyText(){let t=this.getAttribute("data-copy-text");if(t)return t;let e=this.querySelector("[data-part=\'code\'] code");if(e)return e.textContent??"";let i=this.querySelector("[data-part=\'code\']");return(i==null?void 0:i.textContent)??""}showCopiedFeedback(){this.clearResetTimeout(),this.copyIcon&&(this.copyIcon.hidden=!0),this.checkIcon&&(this.checkIcon.hidden=!1),this.setAttribute("data-state","copied"),this.liveRegion&&(this.liveRegion.textContent="Copied!"),this.resetTimeout=setTimeout(()=>{this.copyIcon&&(this.copyIcon.hidden=!1),this.checkIcon&&(this.checkIcon.hidden=!0),this.removeAttribute("data-state"),this.liveRegion&&(this.liveRegion.textContent=""),this.resetTimeout=null},2e3)}clearResetTimeout(){this.resetTimeout!==null&&(clearTimeout(this.resetTimeout),this.resetTimeout=null)}};nt();customElements.get("db-code-block")||customElements.define("db-code-block",Vn);var Un=class extends et{constructor(){super(...arguments);g(this,"navData",null);g(this,"onClick",t=>{let e=t.target.closest("[data-part=\'toggle\']");if(!e||e.closest("db-nav-tree")!==this)return;let i=e.closest("[data-part=\'item\']");i&&(this.ensurePrepared(i),this.toggle(i))});g(this,"onKey",t=>{var l,d;if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)return;let e=document.activeElement;if(!e||!this.contains(e))return;let i=this.visibleRows(),o=e.closest("[data-part=\'row\']"),s=o?i.indexOf(o):-1;if(s<0)return;let r=o.closest("[data-part=\'item\']");this.ensurePrepared(r);let a=!!this.groupOf(r),c=u=>{var h;u&&(t.preventDefault(),(h=this.primary(u))==null||h.focus())};switch(t.key){case"ArrowDown":return c(i[s+1]);case"ArrowUp":return c(i[s-1]);case"Home":return c(i[0]);case"End":return c(i[i.length-1]);case"ArrowRight":if(!a)return;t.preventDefault(),this.isOpen(r)?c(this.visibleRows()[s+1]):this.setOpen(r,!0);return;case"ArrowLeft":{if(t.preventDefault(),a&&this.isOpen(r))return this.setOpen(r,!1);let u=(l=r.parentElement)==null?void 0:l.closest("[data-part=\'item\']");if(u&&this.contains(u)){let h=u.querySelector(":scope > [data-part=\'row\']");h&&((d=this.primary(h))==null||d.focus())}return}}})}setup(){for(let t of Et(this,"[data-part=\'item\']"))t.style.getPropertyValue("--db-level")||t.style.setProperty("--db-level",String(this.depthOf(t))),this.prepareItem(t)}depthOf(t){var i,o;let e=0;for(let s=(i=t.parentElement)==null?void 0:i.closest("[data-part=\'item\']");s&&this.contains(s);s=(o=s.parentElement)==null?void 0:o.closest("[data-part=\'item\']"))e++;return e}pathOf(t){var i,o;let e=[];for(let s=t;s&&this.contains(s);s=((i=s.parentElement)==null?void 0:i.closest("[data-part=\'item\']"))??null){let r=Array.from(((o=s.parentElement)==null?void 0:o.children)??[]).filter(a=>a.getAttribute("data-part")==="item");e.unshift(r.indexOf(s))}return e.join(".")}connect(){this.addEventListener("click",this.onClick),this.addEventListener("keydown",this.onKey);for(let t of Et(this,"[data-part=\'group\'][data-lazy]")){let e=t.closest("[data-part=\'item\']");e&&this.isOpen(e)&&this.fill(t)}!this.fillEmpty()&&this.emptyList()&&document.readyState!=="complete"&&addEventListener("load",()=>this.isConnected&&this.fillEmpty()&&this.afterFill(),{once:!0}),this.afterFill()}afterFill(){this.hasAttribute("scroll-current")&&requestAnimationFrame(()=>this.revealCurrent())}emptyList(){let t=Et(this,"[data-part=\'list\']")[0];return t&&!t.querySelector("[data-part=\'item\']")?t:null}fillEmpty(){let t=this.emptyList(),e=this.data();if(!t||!e)return!1;t.replaceChildren(...this.build(e,""));let i=t,o=this.serverPath();for(let s of o!=null?o.split(".").map(Number):this.currentPath(e)){let r=Array.from(i.children).filter(c=>c.getAttribute("data-part")==="item")[s],a=r&&this.groupOf(r);if(!r||!a)break;a.hasAttribute("data-lazy")&&this.fill(a),this.apply(r,!0),i=a}return!0}serverPath(){var s;let t=(s=this.getAttribute("current-path"))==null?void 0:s.trim(),e=this.data();if(!t||!e||!/^\\d+(?:\\.\\d+)*$/.test(t))return null;let i=t.split(".").map(Number),o=e;for(let r of i){let a=o==null?void 0:o[r];if(!a)return null;o=a[2]}return i.join(".")}currentPath(t){let e=location.href.split("#")[0],i=o=>{for(let s=0;s<o.length;s++){let[,r,a,c]=o[s],l=r!=null&&!c?this.linkOf(r):null;if(l&&new URL(l.href,document.baseURI).href.split("#")[0]===e)return[s];let d=a!=null&&a.length?i(a):null;if(d)return[s,...d]}return null};return i(t)??[]}linkOf(t){let e=t.replace(/[\\u0000-\\u0020]/g,"");if(/^[a-z][a-z0-9+.-]*:/i.test(e)&&!/^(?:https?|mailto):/i.test(e))return null;let i=/^[a-z][a-z0-9+.-]*:|^\\/\\//i.test(e);return{href:i?t:(this.getAttribute("base")??"")+t,external:i}}disconnect(){this.removeEventListener("click",this.onClick),this.removeEventListener("keydown",this.onKey)}prepareItem(t){let e=t.querySelector(":scope > [data-part=\'row\'] > [data-part=\'toggle\']");if(!e)return;let i=this.groupOf(t);i||(i=document.createElement("ul"),i.setAttribute("data-part","group"),i.dataset.lazy="",i.dataset.path=this.pathOf(t),i.hidden=!0,t.appendChild(i));let o=t.querySelector(":scope > [data-part=\'row\'] > [data-part=\'link\']");o&&!e.hasAttribute("aria-label")&&!e.querySelector("[data-part=\'label\']")&&e.setAttribute("aria-label",(this.getAttribute("toggle-label")??"Toggle {label}").replace("{label}",()=>(o.getAttribute("aria-label")??o.textContent??"").trim())),this.getAttribute("chevron")!=="css"&&!e.querySelector("[data-part=\'chevron\']")&&e.insertAdjacentHTML("beforeend",ts),i.id||(i.id=st("db-nav-group")),e.setAttribute("aria-controls",i.id),e instanceof HTMLButtonElement&&!e.hasAttribute("type")&&(e.type="button");let s=e.getAttribute("aria-expanded")==="true"||t.getAttribute("data-state")==="open";this.apply(t,s)}ensurePrepared(t){let e=this.toggleOf(t);e&&!e.hasAttribute("aria-controls")&&this.prepareItem(t)}groupOf(t){return t.querySelector(":scope > [data-part=\'group\']")}toggleOf(t){return t.querySelector(":scope > [data-part=\'row\'] > [data-part=\'toggle\']")}primary(t){return t.querySelector(":scope > [data-part=\'link\']")??t.querySelector(":scope > [data-part=\'toggle\']")}visibleRows(){return Et(this,"[data-part=\'row\']").filter(t=>!t.closest("[hidden]"))}isOpen(t){return t.getAttribute("data-state")==="open"}toggle(t){this.setOpen(t,!this.isOpen(t))}setOpen(t,e){let i=this.groupOf(t);!i||this.isOpen(t)===e||(e&&i.hasAttribute("data-lazy")&&this.fill(i),this.apply(t,e),this.dispatchEvent(new CustomEvent("db-nav-tree:toggle",{detail:{item:t,open:e},bubbles:!0})))}apply(t,e){let i=this.groupOf(t),o=this.toggleOf(t);i&&(i.hidden=!e),o==null||o.setAttribute("aria-expanded",String(e)),t.setAttribute("data-state",e?"open":"closed")}revealCurrent(){var s;let t=this.querySelector("[aria-current=\'page\']");if(!t)return;for(let r=t.closest("[data-part=\'item\']");r&&this.contains(r);r=((s=r.parentElement)==null?void 0:s.closest("[data-part=\'item\']"))??null)this.groupOf(r)&&!this.groupOf(r).contains(t)||this.groupOf(r)&&this.setOpen(r,!0);let e=es(this);if(!e)return;let i=t.getBoundingClientRect(),o=e.getBoundingClientRect();(i.top<o.top||i.bottom>o.bottom)&&(e.scrollTop+=i.top-o.top-o.height/2+i.height/2)}data(){if(this.navData)return this.navData;let t=this.getAttribute("data-source"),e=t?globalThis[t]:void 0;return Array.isArray(e)?e:null}fill(t){let e=this.data(),i=t.dataset.path;if(!e||i==null)return;let o=e,s;for(let r of i.split(".").map(Number))s=o==null?void 0:o[r],o=s==null?void 0:s[2];s!=null&&s[2]&&(t.replaceChildren(...this.build(s[2],i)),t.removeAttribute("data-lazy"))}build(t,e){let i=this.getAttribute("toggle-label")??"Toggle {label}",o=location.href.split("#")[0],s=this.serverPath();return t.map(([r,a,c,l],d)=>{let u=e?`${e}.${d}`:String(d),h=document.createElement("li");h.setAttribute("data-part","item"),h.style.setProperty("--db-level",String(u.split(".").length-1));let m=document.createElement("div");m.setAttribute("data-part","row"),h.appendChild(m);let f=a!=null?this.linkOf(a):null;f||(a=null);let v=null;if(c!=null&&c.length)if(v=document.createElement("button"),v.type="button",v.setAttribute("data-part","toggle"),v.setAttribute("aria-expanded","false"),a!=null)v.setAttribute("aria-label",i.replace("{label}",()=>r));else{let p=document.createElement("span");p.setAttribute("data-part","label"),p.textContent=r,v.appendChild(p)}let w=this.getAttribute("toggle-position")==="end";if(v&&!w&&m.appendChild(v),a!=null){let p=document.createElement("a");p.setAttribute("data-part","link"),p.textContent=r,p.href=f.href,f.external&&(p.rel="noopener"),(s!=null?u===s:!l&&p.href.split("#")[0]===o)&&p.setAttribute("aria-current","page"),m.appendChild(p)}if(a==null&&!(c!=null&&c.length)){let p=document.createElement("span");p.setAttribute("data-part","label"),p.textContent=r,m.appendChild(p)}if(v&&w&&m.appendChild(v),c!=null&&c.length){let p=document.createElement("ul");p.setAttribute("data-part","group"),p.dataset.lazy="",p.dataset.path=u,p.hidden=!0,h.setAttribute("data-state","closed"),h.appendChild(p),this.prepareItem(h)}return h})}},ts=\'<svg data-part="chevron" viewBox="0 0 24 24" width="16" height="16" aria-hidden="true" focusable="false"><path d="m9 18 6-6-6-6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>\';function es(n){for(let t=n.parentElement;t;t=t.parentElement){let e=getComputedStyle(t).overflowY;if((e==="auto"||e==="scroll")&&t.scrollHeight>t.clientHeight)return t}return null}nt();customElements.get("db-nav-tree")||customElements.define("db-nav-tree",Un);var Wn=class extends et{constructor(){super(...arguments);g(this,"links",[]);g(this,"headings",[]);g(this,"observer",null);g(this,"active",null);g(this,"onScroll",()=>{let t=document.documentElement;window.innerHeight+window.scrollY>=t.scrollHeight-2&&this.headings.length&&this.setActive(this.headings[this.headings.length-1].id)});g(this,"onHash",()=>{let t=Qt(location.hash.slice(1));t&&this.headings.some(e=>e.id===t)&&this.setActive(t)})}slugOf(t){return t.getAttribute("data-toc-slug")??Qt(t.getAttribute("href").slice(1))}setup(){this.links=Array.from(this.querySelectorAll("a[href^=\'#\'], a[data-toc-link]"))}connect(){var e;if(this.headings=this.links.map(i=>document.getElementById(this.slugOf(i))).filter(i=>!!i),!this.headings.length)return;let t=Number(this.getAttribute("offset")??80);typeof IntersectionObserver<"u"&&(this.observer=new IntersectionObserver(i=>{var s;let o=i.find(r=>r.isIntersecting);if(o)return this.setActive(o.target.id);this.setActive(((s=this.lastAbove(t))==null?void 0:s.id)??null)},{rootMargin:`-${t}px 0px -70% 0px`,threshold:0}),this.headings.forEach(i=>this.observer.observe(i))),window.addEventListener("hashchange",this.onHash),window.addEventListener("scroll",this.onScroll,{passive:!0}),this.setActive(((e=this.lastAbove(t))==null?void 0:e.id)??this.headings[0].id)}disconnect(){var t;(t=this.observer)==null||t.disconnect(),this.observer=null,window.removeEventListener("hashchange",this.onHash),window.removeEventListener("scroll",this.onScroll)}lastAbove(t){let e=null;for(let i of this.headings)i.getBoundingClientRect().top<=t+20&&(e=i);return e}setActive(t){if(!(!t||t===this.active)){this.active=t;for(let e of this.links)this.slugOf(e)===t?(e.setAttribute("aria-current","location"),e.setAttribute("data-active","")):(e.removeAttribute("aria-current"),e.removeAttribute("data-active"));this.dispatchEvent(new CustomEvent("db-toc:change",{detail:{id:t},bubbles:!0}))}}};nt();customElements.get("db-toc")||customElements.define("db-toc",Wn);var ns=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","area[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",\'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)\',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Je=ns.join(","),Gn=typeof Element>"u",fe=Gn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ke=!Gn&&Element.prototype.getRootNode?function(n){var t;return n==null||(t=n.getRootNode)===null||t===void 0?void 0:t.call(n)}:function(n){return n==null?void 0:n.ownerDocument},Te=function(t,e){var i;e===void 0&&(e=!0);var o=t==null||(i=t.getAttribute)===null||i===void 0?void 0:i.call(t,"inert"),s=o===""||o==="true",r=s||e&&t&&(typeof t.closest=="function"?t.closest("[inert]"):Te(t.parentNode));return r},is=function(t){var e,i=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return i===""||i==="true"},os=function(t,e,i){if(Te(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(Je));return e&&fe.call(t,Je)&&o.unshift(t),o=o.filter(i),o},tn=function(t,e,i){for(var o=[],s=Array.from(t);s.length;){var r=s.shift();if(!Te(r,!1))if(r.tagName==="SLOT"){var a=r.assignedElements(),c=a.length?a:r.children,l=tn(c,!0,i);i.flatten?o.push.apply(o,l):o.push({scopeParent:r,candidates:l})}else{var d=fe.call(r,Je);d&&i.filter(r)&&(e||!t.includes(r))&&o.push(r);var u=r.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(r),h=!Te(u,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(r));if(u&&h){var m=tn(u===!0?r.children:u.children,!0,i);i.flatten?o.push.apply(o,m):o.push({scopeParent:r,candidates:m})}else s.unshift.apply(s,r.children)}}return o},Zn=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Qn=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||is(t))&&!Zn(t)?0:t.tabIndex},ss=function(t,e){var i=Qn(t);return i<0&&e&&!Zn(t)?0:i},rs=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},Jn=function(t){return t.tagName==="INPUT"},as=function(t){return Jn(t)&&t.type==="hidden"},cs=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(i){return i.tagName==="SUMMARY"});return e},ls=function(t,e){for(var i=0;i<t.length;i++)if(t[i].checked&&t[i].form===e)return t[i]},ds=function(t){if(!t.name)return!0;var e=t.form||ke(t),i=function(a){return e.querySelectorAll(\'input[type="radio"][name="\'+a+\'"]\')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=i(window.CSS.escape(t.name));else try{o=i(t.name)}catch(r){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",r.message),!1}var s=ls(o,t.form);return!s||s===t},us=function(t){return Jn(t)&&t.type==="radio"},hs=function(t){return us(t)&&!ds(t)},fs=function(t){var e,i=t&&ke(t),o=(e=i)===null||e===void 0?void 0:e.host,s=!1;if(i&&i!==t){var r,a,c;for(s=!!((r=o)!==null&&r!==void 0&&(a=r.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!s&&o;){var l,d,u;i=ke(o),o=(l=i)===null||l===void 0?void 0:l.host,s=!!((d=o)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(o))}}return s},Yn=function(t){var e=t.getBoundingClientRect(),i=e.width,o=e.height;return i===0&&o===0},ps=function(t,e){var i=e.displayCheck,o=e.getShadowRoot;if(i==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}var r=getComputedStyle(t),a=r.visibility;if(a==="hidden"||a==="collapse")return!0;var c=fe.call(t,"details>summary:first-of-type"),l=c?t.parentElement:t;if(fe.call(l,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="full-native"||i==="legacy-full"){if(typeof o=="function"){for(var d=t;t;){var u=t.parentElement,h=ke(t);if(u&&!u.shadowRoot&&o(u)===!0)return Yn(t);t.assignedSlot?t=t.assignedSlot:!u&&h!==t.ownerDocument?t=h.host:t=u}t=d}if(fs(t))return!t.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return Yn(t);return!1},ms=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var i=0;i<e.children.length;i++){var o=e.children.item(i);if(o.tagName==="LEGEND")return fe.call(e,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}e=e.parentElement}return!1},gs=function(t,e){return!(e.disabled||as(e)||ps(e,t)||cs(e)||ms(e))},Xn=function(t,e){return!(hs(e)||Qn(e)<0||!gs(t,e))},bs=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},ti=function(t){var e=[],i=[];return t.forEach(function(o,s){var r=!!o.scopeParent,a=r?o.scopeParent:o,c=ss(a,r),l=r?ti(o.candidates):a;c===0?r?e.push.apply(e,l):e.push(a):i.push({documentOrder:s,tabIndex:c,item:o,isScope:r,content:l})}),i.sort(rs).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(e)},en=function(t,e){e=e||{};var i;return e.getShadowRoot?i=tn([t],e.includeContainer,{filter:Xn.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:bs}):i=os(t,e.includeContainer,Xn.bind(null,e)),ti(i)};var nn=class{constructor(n,t={}){g(this,"root");g(this,"opts");g(this,"previouslyFocused",null);g(this,"keydownHandler",null);g(this,"active",!1);this.root=n,this.opts={initialFocus:t.initialFocus??"first",returnFocus:t.returnFocus??!0}}activate(){this.active||(this.active=!0,this.previouslyFocused=document.activeElement,this.keydownHandler=n=>{if(n.key!=="Tab")return;let t=en(this.root);if(t.length===0){n.preventDefault();return}let e=t[0],i=t[t.length-1];n.shiftKey?document.activeElement===e&&(i.focus(),n.preventDefault()):document.activeElement===i&&(e.focus(),n.preventDefault())},document.addEventListener("keydown",this.keydownHandler),requestAnimationFrame(()=>{var t;if(!this.active)return;let n=en(this.root);this.opts.initialFocus instanceof HTMLElement&&this.root.contains(this.opts.initialFocus)?this.opts.initialFocus.focus():this.opts.initialFocus==="container"?(this.root.hasAttribute("tabindex")||this.root.setAttribute("tabindex","-1"),this.root.focus()):(t=n[0])==null||t.focus()}))}deactivate(){this.active&&(this.active=!1,this.keydownHandler&&(document.removeEventListener("keydown",this.keydownHandler),this.keydownHandler=null),this.opts.returnFocus&&this.previouslyFocused&&document.contains(this.previouslyFocused)&&this.previouslyFocused.focus(),this.previouslyFocused=null)}isActive(){return this.active}};var lt,Pt=(lt=class{static activate(){if(lt.count++,lt.count>1)return;let t=window.innerWidth-document.documentElement.clientWidth;lt.originalStyles={overflow:document.body.style.overflow,paddingRight:document.body.style.paddingRight},document.body.style.overflow="hidden",t>0&&(document.body.style.paddingRight=`${t}px`)}static deactivate(){lt.count=Math.max(0,lt.count-1),!(lt.count>0)&&lt.originalStyles&&(document.body.style.overflow=lt.originalStyles.overflow,document.body.style.paddingRight=lt.originalStyles.paddingRight,lt.originalStyles=null)}static reset(){lt.count=0,lt.originalStyles=null}},g(lt,"count",0),g(lt,"originalStyles",null),lt);var St=[];function vs(n){if(n.key!=="Escape"||St.length===0)return;let t=St[St.length-1];t.escapePrevented||(n.preventDefault(),n.stopPropagation(),t.opts.onDismiss("escape-key"))}var ei=!1;function ys(){ei||(ei=!0,document.addEventListener("keydown",vs))}var Ft=class{constructor(n,t){g(this,"root");g(this,"opts");g(this,"outsideHandler",null);g(this,"active",!1);g(this,"frameId",null);g(this,"escapePrevented",!1);this.root=n,this.opts={onDismiss:t.onDismiss,escapeKey:t.escapeKey??!0,outsidePress:t.outsidePress??!0}}activate(){this.active||(this.active=!0,this.opts.escapeKey&&(ys(),St.push(this)),this.opts.outsidePress&&(this.outsideHandler=n=>{if(St.length>0&&St[St.length-1]!==this)return;let t=n.target;if(this.root.contains(t))return;let e=this.root.id;if(e){let o=document.querySelector(`[aria-controls="${e}"]`);if(o!=null&&o.contains(t))return}let i=this.root.getAttribute("aria-labelledby");if(i){let o=document.getElementById(i);if(o!=null&&o.contains(t))return}typeof this.opts.outsidePress=="function"&&!this.opts.outsidePress(n)||this.opts.onDismiss("outside-press")},this.frameId=requestAnimationFrame(()=>{this.frameId=null,this.outsideHandler&&document.addEventListener("pointerdown",this.outsideHandler)})))}deactivate(){if(!this.active)return;this.active=!1;let n=St.indexOf(this);n!==-1&&St.splice(n,1),this.frameId!==null&&(cancelAnimationFrame(this.frameId),this.frameId=null),this.outsideHandler&&(document.removeEventListener("pointerdown",this.outsideHandler),this.outsideHandler=null)}isActive(){return this.active}};function on(n){let t=[],e=n;for(;e&&e!==document.body;){let i=e.parentElement;if(!i)break;for(let o=0;o<i.children.length;o++){let s=i.children[o];if(s===e||s.contains(n))continue;let r=s.tagName;if(r==="SCRIPT"||r==="STYLE"||r==="LINK")continue;let a=s.getAttribute("aria-hidden");a!=="true"&&(t.push({el:s,prev:a}),s.setAttribute("aria-hidden","true"))}e=i}return()=>{for(let{el:i,prev:o}of t)o===null?i.removeAttribute("aria-hidden"):i.setAttribute("aria-hidden",o)}}var ni=class extends et{constructor(){super(...arguments);g(this,"content",null);g(this,"backdrop",null);g(this,"trigger",null);g(this,"native",!1);g(this,"_open",!1);g(this,"openedBy",null);g(this,"focusTrap",null);g(this,"dismiss",null);g(this,"cleanupInert",null);g(this,"onTriggerClick",t=>{t.preventDefault(),this.toggle(t.currentTarget)});g(this,"onHostClick",t=>{let e=t.target.closest("[data-part=\'close\']");e&&e.closest("db-dialog")===this&&this.close("close-press")});g(this,"onDocumentClick",t=>{var o,s,r;let e=(s=(o=t.target).closest)==null?void 0:s.call(o,"[data-dialog-for]");if(!e||e===this.trigger)return;let i=e.getAttribute("data-dialog-for");i&&(i===this.id||i===((r=this.content)==null?void 0:r.id))&&(t.preventDefault(),this.toggle(e))});g(this,"onCancel",t=>{t.preventDefault(),this.dismissible&&this.close("escape-key")});g(this,"onNativeClick",t=>{if(!this.dismissible||t.target!==this.content||!this.content)return;let e=this.content.getBoundingClientRect();!(t.clientX>=e.left&&t.clientX<=e.right&&t.clientY>=e.top&&t.clientY<=e.bottom)&&(t.clientX!==0||t.clientY!==0)&&this.close("outside-press")});g(this,"onNativeClose",()=>{this._open&&this.finishClose("close-press")})}get open(){return this._open}get dismissible(){return this.getAttribute("dismissible")!=="false"}setup(){if(this.content=rt(this,"[data-part=\'content\']"),!this.content)return;this.native=typeof HTMLDialogElement<"u"&&this.content instanceof HTMLDialogElement&&typeof this.content.showModal=="function",this.backdrop=rt(this,"[data-part=\'backdrop\']"),this.trigger=Xt(rt(this,"[data-part=\'trigger\']"));let t=this.content;t.id||(t.id=st("db-dialog")),this.native||(t.setAttribute("role",t.getAttribute("role")||"dialog"),t.setAttribute("aria-modal","true"),t.hidden=!this.hasAttribute("open"),this.backdrop&&(this.backdrop.hidden=!0));let e=t.querySelector("[data-part=\'title\']");e&&!t.hasAttribute("aria-labelledby")&&!t.hasAttribute("aria-label")&&(e.id||(e.id=st("db-dialog-title")),t.setAttribute("aria-labelledby",e.id));let i=t.querySelector("[data-part=\'description\']");i&&!t.hasAttribute("aria-describedby")&&(i.id||(i.id=st("db-dialog-desc")),t.setAttribute("aria-describedby",i.id));for(let o of this.triggers())this.prepareTrigger(o);this.setState("closed"),this.native||(this.focusTrap=new nn(t),this.dismiss=new Ft(t,{onDismiss:o=>this.dismissible&&this.close(o)}))}connect(){var t;this.content&&((t=this.trigger)==null||t.addEventListener("click",this.onTriggerClick),this.addEventListener("click",this.onHostClick),document.addEventListener("click",this.onDocumentClick),this.native&&(this.content.addEventListener("cancel",this.onCancel),this.content.addEventListener("click",this.onNativeClick),this.content.addEventListener("close",this.onNativeClose)),queueMicrotask(()=>{if(this.isConnected){for(let e of this.triggers())e.hasAttribute("aria-controls")||this.prepareTrigger(e);this.hasAttribute("open")&&!this._open&&this.show()}}))}disconnect(){var t;(t=this.trigger)==null||t.removeEventListener("click",this.onTriggerClick),this.removeEventListener("click",this.onHostClick),document.removeEventListener("click",this.onDocumentClick),this.content&&this.native&&(this.content.removeEventListener("cancel",this.onCancel),this.content.removeEventListener("click",this.onNativeClick),this.content.removeEventListener("close",this.onNativeClose)),this._open&&this.finishClose("api",!1)}triggers(){var i;let t=this.trigger?[this.trigger]:[],e=[this.id,(i=this.content)==null?void 0:i.id].filter(Boolean);for(let o of e)document.querySelectorAll(`[data-dialog-for="${CSS.escape(o)}"]`).forEach(s=>t.push(s));return t}prepareTrigger(t){t.hasAttribute("aria-haspopup")||t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-controls",this.content.id),t.setAttribute("aria-expanded","false")}setState(t){var e,i;this.setAttribute("data-state",t),(e=this.content)==null||e.setAttribute("data-state",t),(i=this.backdrop)==null||i.setAttribute("data-state",t)}toggle(t){this._open?this.close("trigger-press"):this.show(t)}show(t){var i,o;let e=this.content;if(!(!e||this._open)){this._open=!0,this.openedBy=t??document.activeElement??this.trigger;for(let s of this.triggers())this.prepareTrigger(s),s.setAttribute("aria-expanded","true");if(Pt.activate(),this.native){let s=e;s.open||s.showModal()}else e.hidden=!1,this.backdrop&&(this.backdrop.hidden=!1),this.cleanupInert=on(e),(i=this.focusTrap)==null||i.activate(),(o=this.dismiss)==null||o.activate();this.setState("open"),this.dispatchEvent(new CustomEvent("db-dialog:open",{bubbles:!0}))}}close(t="api"){this._open&&this.finishClose(t)}finishClose(t,e=!0){var s,r,a;let i=this.content;this._open=!1,this.setState("closed");for(let c of this.triggers())c.setAttribute("aria-expanded","false");if(Pt.deactivate(),this.native){let c=i;c.open&&c.close()}else(s=this.dismiss)==null||s.deactivate(),(r=this.focusTrap)==null||r.deactivate(),(a=this.cleanupInert)==null||a.call(this),this.cleanupInert=null,Bn(i,()=>{this._open||(i.hidden=!0,this.backdrop&&(this.backdrop.hidden=!0))});let o=this.openedBy;this.openedBy=null,e&&o&&document.contains(o)&&o.focus(),this.dispatchEvent(new CustomEvent("db-dialog:close",{detail:{reason:t},bubbles:!0}))}};nt();customElements.get("db-dialog")||customElements.define("db-dialog",ni);var ii=class extends et{constructor(){super(...arguments);g(this,"input",null);g(this,"listbox",null);g(this,"empty",null);g(this,"_open",!1);g(this,"highlighted",null);g(this,"observer",null);g(this,"base",st("db-combobox"));g(this,"optionSeq",0);g(this,"onInput",()=>{this.filtering?this.filter(this.input.value):this.show()});g(this,"onFocus",()=>{(this.hasAttribute("open-on-focus")||this.filtering&&this.input.value)&&(this.filtering?this.filter(this.input.value):this.show())});g(this,"onKey",t=>{let e=this.visible(),i=this.highlighted?e.indexOf(this.highlighted):-1;switch(t.key){case"ArrowDown":t.preventDefault(),this._open||this.show(),e.length&&this.highlight(e[i<0?0:Math.min(i+1,e.length-1)]);break;case"ArrowUp":t.preventDefault(),this._open||this.show(),e.length&&this.highlight(e[i<0?e.length-1:Math.max(i-1,0)]);break;case"Home":case"End":this._open&&this.highlighted&&e.length&&(t.preventDefault(),this.highlight(t.key==="Home"?e[0]:e[e.length-1]));break;case"Enter":this._open&&this.highlighted&&(t.preventDefault(),this.choose(this.highlighted));break;case"Escape":this._open&&!this.inline?(t.preventDefault(),t.stopPropagation(),this.hide()):this.input.value&&(t.preventDefault(),t.stopPropagation(),this.input.value="",this.input.dispatchEvent(new Event("input",{bubbles:!0})),this.hide());break;case"Tab":this.inline||this.hide();break}});g(this,"onListClick",t=>{let e=t.target.closest("[data-part=\'option\']");if(!e||e.closest("db-combobox")!==this||ft(e))return;let i=t.target.closest("a[href]");!this.choose(e,!i)&&i&&t.preventDefault()});g(this,"onListPointer",t=>{let e=t.target.closest("[data-part=\'option\']");e&&e.closest("db-combobox")===this&&!ft(e)&&!e.hidden&&this.highlight(e)});g(this,"onListDown",t=>t.preventDefault());g(this,"onDocDown",t=>{this._open&&!this.inline&&!this.contains(t.target)&&this.hide()})}get open(){return this._open}get inline(){return this.hasAttribute("inline")}get filtering(){return(this.getAttribute("filter")??"contains")!=="none"}options(){return this.listbox?Array.from(this.listbox.querySelectorAll("[data-part=\'option\']")).filter(t=>t.closest("db-combobox")===this):[]}visible(){return this.options().filter(t=>!t.hidden&&!ft(t))}setup(){if(this.input=rt(this,"[data-part=\'input\']"),this.listbox=rt(this,"[data-part=\'listbox\']"),this.empty=rt(this,"[data-part=\'empty\']"),!this.input||!this.listbox)return;let{input:t,listbox:e}=this;e.id||(e.id=`${this.base}-listbox`),e.setAttribute("role","listbox"),t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-controls",e.id),t.setAttribute("autocomplete","off"),this.inline||(e.hidden=!0),this.prepareOptions(),this.syncExpanded()}prepareOptions(){this.options().forEach(t=>{t.id||(t.id=`${this.base}-option-${++this.optionSeq}`),t.setAttribute("role","option"),t.hasAttribute("aria-selected")||t.setAttribute("aria-selected","false"),t.matches("a[href], button")&&t.setAttribute("tabindex","-1"),t.querySelectorAll("a, button").forEach(e=>e.setAttribute("tabindex","-1")),t.parentElement&&t.parentElement!==this.listbox&&t.parentElement.localName==="li"&&!t.parentElement.hasAttribute("role")&&t.parentElement.setAttribute("role","none")})}connect(){let{input:t,listbox:e}=this;!t||!e||(t.addEventListener("input",this.onInput),t.addEventListener("focus",this.onFocus),t.addEventListener("keydown",this.onKey),e.addEventListener("click",this.onListClick),e.addEventListener("pointermove",this.onListPointer),e.addEventListener("mousedown",this.onListDown),document.addEventListener("pointerdown",this.onDocDown),typeof MutationObserver<"u"&&(this.observer=new MutationObserver(()=>this.onOptionsChanged()),this.observer.observe(e,{childList:!0,subtree:!0})))}disconnect(){var i;let{input:t,listbox:e}=this;t==null||t.removeEventListener("input",this.onInput),t==null||t.removeEventListener("focus",this.onFocus),t==null||t.removeEventListener("keydown",this.onKey),e==null||e.removeEventListener("click",this.onListClick),e==null||e.removeEventListener("pointermove",this.onListPointer),e==null||e.removeEventListener("mousedown",this.onListDown),document.removeEventListener("pointerdown",this.onDocDown),(i=this.observer)==null||i.disconnect(),this.observer=null}refresh(){this.onOptionsChanged()}onOptionsChanged(){this.prepareOptions(),this.highlighted&&!this.options().includes(this.highlighted)&&this.clearHighlight();let t=this.visible();this.filtering||(t.length||this.inline?this.show():this.hide(),t.length&&!this.highlighted&&!this.hasAttribute("no-autohighlight")&&this.highlight(t[0])),this.syncExpanded(),this.dispatchEvent(new CustomEvent("db-combobox:update",{detail:{count:t.length},bubbles:!0}))}filter(t){let e=t.toLowerCase().trim(),i=0;for(let s of this.options()){let r=!e||(s.textContent??"").toLowerCase().includes(e)||(s.dataset.value??"").toLowerCase().includes(e);s.hidden=!r,r&&i++}this.empty&&(this.empty.hidden=i>0||!e),this.clearHighlight(),i||e&&this.empty?this.show():this.hide();let o=this.visible();o.length&&!this.hasAttribute("no-autohighlight")&&this.highlight(o[0]),this.dispatchEvent(new CustomEvent("db-combobox:update",{detail:{count:i},bubbles:!0}))}syncExpanded(){if(!this.input)return;let t=this.inline?this.visible().length>0:this._open;this.input.setAttribute("aria-expanded",String(t)),this.setAttribute("data-state",t?"open":"closed")}show(){if(!this.listbox||this._open)return this.syncExpanded();this._open=!0,this.listbox.hidden=!1,this.syncExpanded()}hide(){if(this.listbox){if(this.clearHighlight(),!this._open)return this.syncExpanded();this._open=!1,this.inline||(this.listbox.hidden=!0),this.syncExpanded()}}highlight(t){var e,i,o;this.input&&((e=this.highlighted)==null||e.removeAttribute("data-highlighted"),(i=this.highlighted)==null||i.setAttribute("aria-selected","false"),this.highlighted=t,t.setAttribute("data-highlighted",""),t.setAttribute("aria-selected","true"),this.input.setAttribute("aria-activedescendant",t.id),(o=t.scrollIntoView)==null||o.call(t,{block:"nearest"}))}clearHighlight(){var t,e,i;(t=this.highlighted)==null||t.removeAttribute("data-highlighted"),(e=this.highlighted)==null||e.setAttribute("aria-selected","false"),this.highlighted=null,(i=this.input)==null||i.removeAttribute("aria-activedescendant")}choose(t,e=!0){var a;let i=t.dataset.value??"",o=((a=t.textContent)==null?void 0:a.trim())??i,s=new CustomEvent("db-combobox:select",{detail:{value:i,text:o,option:t},bubbles:!0,cancelable:!0});if(!this.dispatchEvent(s))return!1;let r=t.matches("a[href]")?t:t.querySelector("a[href]");return r?(e&&r.click(),!0):(this.input&&(this.input.value=t.getAttribute("data-label")??o),this.inline||this.hide(),this.dispatchEvent(new CustomEvent("db-combobox:change",{detail:{value:i,text:o},bubbles:!0})),!0)}};nt();customElements.get("db-combobox")||customElements.define("db-combobox",ii);var Ot=Math.min,mt=Math.max,me=Math.round,ge=Math.floor,vt=n=>({x:n,y:n}),ws={left:"right",right:"left",bottom:"top",top:"bottom"};function ri(n,t,e){return mt(n,Ot(t,e))}function Jt(n,t){return typeof n=="function"?n(t):n}function Rt(n){return n.split("-")[0]}function te(n){return n.split("-")[1]}function sn(n){return n==="x"?"y":"x"}function rn(n){return n==="y"?"height":"width"}function yt(n){let t=n[0];return t==="t"||t==="b"?"y":"x"}function an(n){return sn(yt(n))}function ai(n,t,e){e===void 0&&(e=!1);let i=te(n),o=an(n),s=rn(o),r=o==="x"?i===(e?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=pe(r)),[r,pe(r)]}function ci(n){let t=pe(n);return[Oe(n),t,Oe(t)]}function Oe(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}var oi=["left","right"],si=["right","left"],xs=["top","bottom"],Es=["bottom","top"];function Ss(n,t,e){switch(n){case"top":case"bottom":return e?t?si:oi:t?oi:si;case"left":case"right":return t?xs:Es;default:return[]}}function li(n,t,e,i){let o=te(n),s=Ss(Rt(n),e==="start",i);return o&&(s=s.map(r=>r+"-"+o),t&&(s=s.concat(s.map(Oe)))),s}function pe(n){let t=Rt(n);return ws[t]+n.slice(t.length)}function As(n){var t,e,i,o;return{top:(t=n.top)!=null?t:0,right:(e=n.right)!=null?e:0,bottom:(i=n.bottom)!=null?i:0,left:(o=n.left)!=null?o:0}}function di(n){return typeof n!="number"?As(n):{top:n,right:n,bottom:n,left:n}}function _t(n){let{x:t,y:e,width:i,height:o}=n;return{width:i,height:o,top:e,left:t,right:t+i,bottom:e+o,x:t,y:e}}function ui(n,t,e){let{reference:i,floating:o}=n,s=yt(t),r=an(t),a=rn(r),c=Rt(t),l=s==="y",d=i.x+i.width/2-o.width/2,u=i.y+i.height/2-o.height/2,h=i[a]/2-o[a]/2,m;switch(c){case"top":m={x:d,y:i.y-o.height};break;case"bottom":m={x:d,y:i.y+i.height};break;case"right":m={x:i.x+i.width,y:u};break;case"left":m={x:i.x-o.width,y:u};break;default:m={x:i.x,y:i.y}}let f=te(t);return f&&(m[r]+=h*(f==="end"?1:-1)*(e&&l?-1:1)),m}async function hi(n,t){var e;t===void 0&&(t={});let{x:i,y:o,platform:s,rects:r,elements:a,strategy:c}=n,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:m=0}=Jt(t,n),f=di(m),w=a[h?u==="floating"?"reference":"floating":u],p=_t(await s.getClippingRect({element:(e=await(s.isElement==null?void 0:s.isElement(w)))==null||e?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),b=u==="floating"?{x:i,y:o,width:r.floating.width,height:r.floating.height}:r.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(x))&&await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1},D=_t(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:x,strategy:c}):b);return{top:(p.top-D.top+f.top)/E.y,bottom:(D.bottom-p.bottom+f.bottom)/E.y,left:(p.left-D.left+f.left)/E.x,right:(D.right-p.right+f.right)/E.x}}var Cs=50,fi=async(n,t,e)=>{let{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:r}=e,a=r.detectOverflow?r:{...r,detectOverflow:hi},c=await(r.isRTL==null?void 0:r.isRTL(t)),l=await r.getElementRects({reference:n,floating:t,strategy:o}),{x:d,y:u}=ui(l,i,c),h=i,m=0,f={};for(let v=0;v<s.length;v++){let w=s[v];if(!w)continue;let{name:p,fn:b}=w,{x,y:E,data:D,reset:S}=await b({x:d,y:u,initialPlacement:i,placement:h,strategy:o,middlewareData:f,rects:l,platform:a,elements:{reference:n,floating:t}});d=x??d,u=E??u,f[p]={...f[p],...D},S&&m<Cs&&(m++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(l=S.rects===!0?await r.getElementRects({reference:n,floating:t,strategy:o}):S.rects),{x:d,y:u}=ui(l,h,c)),v=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:f}};var pi=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(t){var e,i;let{placement:o,middlewareData:s,rects:r,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:v=!0,...w}=Jt(n,t);if((e=s.arrow)!=null&&e.alignmentOffset)return{};let p=Rt(o),b=yt(a),x=Rt(a)===a,E=await(c.isRTL==null?void 0:c.isRTL(l.floating)),D=h||(x||!v?[pe(a)]:ci(a)),S=f!=="none";!h&&S&&D.push(...li(a,v,f,E));let A=[a,...D],y=await c.detectOverflow(t,w),W=[],z=((i=s.flip)==null?void 0:i.overflows)||[];if(d&&W.push(y[p]),u){let q=ai(o,r,E);W.push(y[q[0]],y[q[1]])}if(z=[...z,{placement:o,overflows:W}],!W.every(q=>q<=0)){var G,C;let q=(((G=s.flip)==null?void 0:G.index)||0)+1,K=A[q];if(K&&(!(u==="alignment"?b!==yt(K):!1)||z.every(X=>yt(X.placement)===b?X.overflows[0]>0:!0)))return{data:{index:q,overflows:z},reset:{placement:K}};let _=(C=z.filter(j=>j.overflows[0]<=0).sort((j,X)=>j.overflows[1]-X.overflows[1])[0])==null?void 0:C.placement;if(!_)switch(m){case"bestFit":{var O;let j=(O=z.filter(X=>{if(S){let ot=yt(X.placement);return ot===b||ot==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(ot=>ot>0).reduce((ot,it)=>ot+it,0)]).sort((X,ot)=>X[1]-ot[1])[0])==null?void 0:O[0];j&&(_=j);break}case"initialPlacement":_=a;break}if(o!==_)return{reset:{placement:_}}}return{}}}};var Ls=new Set(["left","top"]);async function ks(n,t){let{placement:e,platform:i,elements:o}=n,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),r=Rt(e),a=te(e),c=yt(e)==="y",l=Ls.has(r)?-1:1,d=s&&c?-1:1,u=Jt(t,n),{mainAxis:h,crossAxis:m,alignmentAxis:f}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof f=="number"&&(m=a==="end"?f*-1:f),c?{x:m*d,y:h*l}:{x:h*l,y:m*d}}var mi=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(t){var e,i;let{x:o,y:s,placement:r,middlewareData:a}=t,c=await ks(t,n);return r===((e=a.offset)==null?void 0:e.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:r}}}}},gi=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(t){let{x:e,y:i,placement:o,platform:s}=t,{mainAxis:r=!0,crossAxis:a=!1,limiter:c={fn:b=>{let{x,y:E}=b;return{x,y:E}}},...l}=Jt(n,t),d={x:e,y:i},u=await s.detectOverflow(t,l),h=yt(o),m=sn(h),f=d[m],v=d[h],w=(b,x)=>ri(x+u[b==="y"?"top":"left"],x,x-u[b==="y"?"bottom":"right"]);r&&(f=w(m,f)),a&&(v=w(h,v));let p=c.fn({...t,[m]:f,[h]:v});return{...p,data:{x:p.x-e,y:p.y-i,enabled:{[m]:r,[h]:a}}}}}};var bi=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(t){let{placement:e,rects:i,platform:o,elements:s}=t,{apply:r=()=>{},...a}=Jt(n,t),c=await o.detectOverflow(t,a),l=Rt(e),d=te(e),u=yt(e)==="y",{width:h,height:m}=i.floating,f,v;l==="top"||l==="bottom"?(f=l,v=d===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(v=l,f=d==="end"?"top":"bottom");let w=m-c.top-c.bottom,p=h-c.left-c.right,b=Ot(m-c[f],w),x=Ot(h-c[v],p),E=t.middlewareData.shift,D=!E,S=b,A=x;E!=null&&E.enabled.x&&(A=p),E!=null&&E.enabled.y&&(S=w),D&&!d&&(u?A=h-2*mt(c.left,c.right):S=m-2*mt(c.top,c.bottom)),await r({...t,availableWidth:A,availableHeight:S});let y=await o.getDimensions(s.floating);return h!==y.width||m!==y.height?{reset:{rects:!0}}:{}}}};function Re(){return typeof window<"u"}function $t(n){return yi(n)?(n.nodeName||"").toLowerCase():"#document"}function ut(n){var t;return(n==null||(t=n.ownerDocument)==null?void 0:t.defaultView)||window}function wt(n){var t;return(t=(yi(n)?n.ownerDocument:n.document)||window.document)==null?void 0:t.documentElement}function yi(n){return Re()?n instanceof Node||n instanceof ut(n).Node:!1}function gt(n){return Re()?n instanceof Element||n instanceof ut(n).Element:!1}function At(n){return Re()?n instanceof HTMLElement||n instanceof ut(n).HTMLElement:!1}function vi(n){return!Re()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof ut(n).ShadowRoot}function be(n){let{overflow:t,overflowX:e,overflowY:i,display:o}=bt(n);return/auto|scroll|overlay|hidden|clip/.test(t+i+e)&&o!=="inline"&&o!=="contents"}function wi(n){return/^(table|td|th)$/.test($t(n))}function ve(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}var Ts=/transform|translate|scale|rotate|perspective|filter/,Os=/paint|layout|strict|content/,zt=n=>!!n&&n!=="none",cn;function De(n){let t=gt(n)?bt(n):n;return zt(t.transform)||zt(t.translate)||zt(t.scale)||zt(t.rotate)||zt(t.perspective)||!Me()&&(zt(t.backdropFilter)||zt(t.filter))||Ts.test(t.willChange||"")||Os.test(t.contain||"")}function xi(n){let t=Dt(n);for(;At(t)&&!ne(t);){if(De(t))return t;if(ve(t))return null;t=Dt(t)}return null}function Me(){return cn==null&&(cn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),cn}function ne(n){return/^(html|body|#document)$/.test($t(n))}function bt(n){return ut(n).getComputedStyle(n)}function ye(n){return gt(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Dt(n){if($t(n)==="html")return n;let t=n.assignedSlot||n.parentNode||vi(n)&&n.host||wt(n);return vi(t)?t.host:t}function Ei(n){let t=Dt(n);return ne(t)?(n.ownerDocument||n).body:At(t)&&be(t)?t:Ei(t)}function ee(n,t,e){var i;t===void 0&&(t=[]),e===void 0&&(e=!0);let o=Ei(n),s=o===((i=n.ownerDocument)==null?void 0:i.body),r=ut(o);if(s){let a=Ie(r);return t.concat(r,r.visualViewport||[],be(o)?o:[],a&&e?ee(a):[])}else return t.concat(o,ee(o,[],e))}function Ie(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Ci(n){let t=bt(n),e=parseFloat(t.width)||0,i=parseFloat(t.height)||0,o=At(n),s=o?n.offsetWidth:e,r=o?n.offsetHeight:i,a=me(e)!==s||me(i)!==r;return a&&(e=s,i=r),{width:e,height:i,$:a}}function dn(n){return gt(n)?n:n.contextElement}function ie(n){let t=dn(n);if(!At(t))return vt(1);let e=t.getBoundingClientRect(),{width:i,height:o,$:s}=Ci(t),r=(s?me(e.width):e.width)/i,a=(s?me(e.height):e.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}var Rs=vt(0);function Li(n){let t=ut(n);return!Me()||!t.visualViewport?Rs:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ds(n,t,e){return t===void 0&&(t=!1),!!e&&t&&e===ut(n)}function qt(n,t,e,i){t===void 0&&(t=!1),e===void 0&&(e=!1);let o=n.getBoundingClientRect(),s=dn(n),r=vt(1);t&&(i?gt(i)&&(r=ie(i)):r=ie(n));let a=Ds(s,e,i)?Li(s):vt(0),c=(o.left+a.x)/r.x,l=(o.top+a.y)/r.y,d=o.width/r.x,u=o.height/r.y;if(s&&i){let h=ut(s),m=gt(i)?ut(i):i,f=h,v=Ie(f);for(;v&&m!==f;){let w=ie(v),p=v.getBoundingClientRect(),b=bt(v),x=p.left+(v.clientLeft+parseFloat(b.paddingLeft))*w.x,E=p.top+(v.clientTop+parseFloat(b.paddingTop))*w.y;c*=w.x,l*=w.y,d*=w.x,u*=w.y,c+=x,l+=E,f=ut(v),v=Ie(f)}}return _t({width:d,height:u,x:c,y:l})}function Ne(n,t){let e=ye(n).scrollLeft;return t?t.left+e:qt(wt(n)).left+e}function ki(n,t){let e=n.getBoundingClientRect(),i=e.left+t.scrollLeft-Ne(n,e),o=e.top+t.scrollTop;return{x:i,y:o}}function Ms(n){let{elements:t,rect:e,offsetParent:i,strategy:o}=n,s=o==="fixed",r=wt(i),a=t?ve(t.floating):!1;if(i===r||a&&s)return e;let c={scrollLeft:0,scrollTop:0},l=vt(1),d=vt(0),u=At(i);if((u||!s)&&(($t(i)!=="body"||be(r))&&(c=ye(i)),u)){let m=qt(i);l=ie(i),d.x=m.x+i.clientLeft,d.y=m.y+i.clientTop}let h=r&&!u&&!s?ki(r,c):vt(0);return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-c.scrollLeft*l.x+d.x+h.x,y:e.y*l.y-c.scrollTop*l.y+d.y+h.y}}function Is(n){return n.getClientRects?Array.from(n.getClientRects()):[]}function Ns(n){let t=ye(n),e=n.ownerDocument.body,i=mt(n.scrollWidth,n.clientWidth,e.scrollWidth,e.clientWidth),o=mt(n.scrollHeight,n.clientHeight,e.scrollHeight,e.clientHeight),s=-t.scrollLeft+Ne(n),r=-t.scrollTop;return bt(e).direction==="rtl"&&(s+=mt(n.clientWidth,e.clientWidth)-i),{width:i,height:o,x:s,y:r}}var Hs=25;function Ps(n,t,e){e===void 0&&(e="viewport");let i=e==="layoutViewport",o=ut(n),s=wt(n),r=o.visualViewport,a=s.clientWidth,c=s.clientHeight,l=0,d=0;if(r){let h=!Me()||t==="fixed";i?h||(l=-r.offsetLeft,d=-r.offsetTop):(a=r.width,c=r.height,h&&(l=r.offsetLeft,d=r.offsetTop))}if(Ne(s)<=0){let h=s.ownerDocument,m=h.body,f=getComputedStyle(m),v=h.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,w=Math.abs(s.clientWidth-m.clientWidth-v),p=getComputedStyle(s).scrollbarGutter==="stable both-edges"?w/2:w;p<=Hs&&(a-=p)}return{width:a,height:c,x:l,y:d}}function Fs(n,t){let e=qt(n,!0,t==="fixed"),i=e.top+n.clientTop,o=e.left+n.clientLeft,s=ie(n),r=n.clientWidth*s.x,a=n.clientHeight*s.y,c=o*s.x,l=i*s.y;return{width:r,height:a,x:c,y:l}}function Si(n,t,e){let i;if(t==="viewport"||t==="layoutViewport")i=Ps(n,e,t);else if(t==="document")i=Ns(wt(n));else if(gt(t))i=Fs(t,e);else{let o=Li(n);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return _t(i)}function _s(n,t){let e=t.get(n);if(e)return e;let i=ee(n,[],!1).filter(a=>gt(a)&&$t(a)!=="body"),o=null,s=bt(n).position==="fixed",r=s?Dt(n):n;for(;gt(r)&&!ne(r);){let a=bt(r),c=De(r),l=o?o.position:s?"fixed":"";!c&&(l==="fixed"||l==="absolute"&&a.position==="static")?i=i.filter(u=>u!==r):o=a,r=Dt(r)}return t.set(n,i),i}function zs(n){let{element:t,boundary:e,rootBoundary:i,strategy:o}=n,r=[...e==="clippingAncestors"?ve(t)?[]:_s(t,this._c):[].concat(e),i],a=Si(t,r[0],o),c=a.top,l=a.right,d=a.bottom,u=a.left;for(let h=1;h<r.length;h++){let m=Si(t,r[h],o);c=mt(m.top,c),l=Ot(m.right,l),d=Ot(m.bottom,d),u=mt(m.left,u)}return{width:l-u,height:d-c,x:u,y:c}}function $s(n){let{width:t,height:e}=Ci(n);return{width:t,height:e}}function qs(n,t,e){let i=At(t),o=wt(t),s=e==="fixed",r=qt(n,!0,s,t),a={scrollLeft:0,scrollTop:0},c=vt(0);if((i||!s)&&(($t(t)!=="body"||be(o))&&(a=ye(t)),i)){let h=qt(t,!0,s,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}!i&&o&&(c.x=Ne(o));let l=o&&!i&&!s?ki(o,a):vt(0),d=r.left+a.scrollLeft-c.x-l.x,u=r.top+a.scrollTop-c.y-l.y;return{x:d,y:u,width:r.width,height:r.height}}function ln(n){return bt(n).position==="static"}function Ai(n,t){if(!At(n)||bt(n).position==="fixed")return null;if(t)return t(n);let e=n.offsetParent;return wt(n)===e&&(e=e.ownerDocument.body),e}function Ti(n,t){let e=ut(n);if(ve(n))return e;if(!At(n)){let o=Dt(n);for(;o&&!ne(o);){if(gt(o)&&!ln(o))return o;o=Dt(o)}return e}let i=Ai(n,t);for(;i&&wi(i)&&ln(i);)i=Ai(i,t);return i&&ne(i)&&ln(i)&&!De(i)?e:i||xi(n)||e}var Bs=async function(n){let t=this.getOffsetParent||Ti,e=this.getDimensions,i=await e(n.floating);return{reference:qs(n.reference,await t(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function js(n){return bt(n).direction==="rtl"}var Ks={convertOffsetParentRelativeRectToViewportRelativeRect:Ms,getDocumentElement:wt,getClippingRect:zs,getOffsetParent:Ti,getElementRects:Bs,getClientRects:Is,getDimensions:$s,getScale:ie,isElement:gt,isRTL:js};function Oi(n,t){return n.x===t.x&&n.y===t.y&&n.width===t.width&&n.height===t.height}function Vs(n,t,e){let i=null,o,s=wt(n);function r(){var d;clearTimeout(o),(d=i)==null||d.disconnect(),i=null}function a(d,u){d===void 0&&(d=!1),u===void 0&&(u=1),r();let h=n.getBoundingClientRect(),{left:m,top:f,width:v,height:w}=h;if(d||t(),!v||!w)return;let p=ge(f),b=ge(s.clientWidth-(m+v)),x=ge(s.clientHeight-(f+w)),E=ge(m),S={rootMargin:-p+"px "+-b+"px "+-x+"px "+-E+"px",threshold:mt(0,Ot(1,u))||1},A=!0;function y(W){let z=W[0].intersectionRatio;if(!Oi(h,n.getBoundingClientRect()))return a();if(z!==u){if(!A)return a();z?a(!1,z):o=setTimeout(()=>{a(!1,1e-7)},1e3)}A=!1}try{i=new IntersectionObserver(y,{...S,root:s.ownerDocument})}catch{i=new IntersectionObserver(y,S)}i.observe(n)}let c=ut(n),l=()=>a(e);return c.addEventListener("resize",l),a(!0),()=>{c.removeEventListener("resize",l),r()}}function Ri(n,t,e,i){i===void 0&&(i={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=i,l=dn(n),d=o||s?[...l?ee(l):[],...t?ee(t):[]]:[];d.forEach(p=>{o&&p.addEventListener("scroll",e),s&&p.addEventListener("resize",e)});let u=l&&a?Vs(l,e,s):null,h=-1,m=null;r&&(m=new ResizeObserver(p=>{let[b]=p;b&&b.target===l&&m&&t&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var x;(x=m)==null||x.observe(t)})),e()}),l&&!c&&m.observe(l),t&&m.observe(t));let f,v=c?qt(n):null;c&&w();function w(){let p=qt(n);v&&!Oi(v,p)&&e(),v=p,f=requestAnimationFrame(w)}return e(),()=>{var p;d.forEach(b=>{o&&b.removeEventListener("scroll",e),s&&b.removeEventListener("resize",e)}),u==null||u(),(p=m)==null||p.disconnect(),m=null,c&&cancelAnimationFrame(f)}}var Di=mi;var Mi=gi,Ii=pi,Ni=bi;var Hi=(n,t,e)=>{let i=new Map,o=e??{},s={...Ks,...o.platform,_c:i};return fi(n,t,{...o,platform:s})};function Bt(n,t,e={}){let{placement:i="bottom-start",strategy:o="absolute",offset:s=4,flip:r=!0,shift:a=!0,padding:c=8,matchWidth:l=!1}=e,d=[Di(s),...r?[Ii({padding:c})]:[],...a?[Mi({padding:c})]:[],...l?[Ni({apply({rects:h}){Object.assign(t.style,{width:`${h.reference.width}px`})}})]:[]];return t.style.position=o,Ri(n,t,async()=>{let h=await Hi(n,t,{placement:i,strategy:o,middleware:d});Object.assign(t.style,{left:`${h.x}px`,top:`${h.y}px`});let m=h.placement.split("-")[0];t.setAttribute("data-side",m)})}var un=class{constructor(n){g(this,"opts");g(this,"buffer","");g(this,"timerId",null);g(this,"timeout");this.opts=n,this.timeout=n.timeout??1e3}handle(n){if(n.length!==1)return!1;this.timerId!==null&&clearTimeout(this.timerId),this.buffer+=n.toLowerCase(),this.timerId=setTimeout(()=>{this.buffer="",this.timerId=null},this.timeout);let t=this.opts.getItemCount();for(let e=0;e<t;e++)if(this.opts.getItemText(e).toLowerCase().startsWith(this.buffer))return this.opts.onMatch(e),!0;return!0}reset(){this.buffer="",this.timerId!==null&&(clearTimeout(this.timerId),this.timerId=null)}};var Pi=class extends et{constructor(){super(...arguments);g(this,"trigger",null);g(this,"content",null);g(this,"valueEl",null);g(this,"items",[]);g(this,"nativeSelect",null);g(this,"hiddenInput",null);g(this,"labelEl",null);g(this,"onLabelClick",t=>{var e;t.target.closest("[data-part=\'trigger\']")||(t.preventDefault(),(e=this.trigger)==null||e.focus())});g(this,"dismiss",null);g(this,"typeahead",null);g(this,"cleanupFloating",null);g(this,"_open",!1);g(this,"_value","");g(this,"highlighted",-1);g(this,"syncing",!1);g(this,"onNativeChange",()=>{this.syncing||this.refresh()});g(this,"onFormReset",()=>setTimeout(()=>this.refresh()));g(this,"onTriggerClick",()=>{this.isDisabled||(this._open?this.close():this.show())});g(this,"onTriggerKeyUp",t=>{t.key===" "&&t.preventDefault()});g(this,"onTriggerKey",t=>{var s,r;if(this.isDisabled)return;let e=this.enabled();if(!this._open){if(t.key==="ArrowDown"||t.key==="ArrowUp"||t.key==="Enter"||t.key===" "||t.altKey&&t.key==="ArrowDown")t.preventDefault(),this.show(),t.key==="ArrowUp"&&e.length&&this.highlight(this.items.indexOf(e[e.length-1]));else if(t.key==="Home"||t.key==="End"){t.preventDefault(),this.show();let a=t.key==="Home"?e[0]:e[e.length-1];a&&this.highlight(this.items.indexOf(a))}else t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&((s=this.typeahead)==null||s.handle(t.key));return}if(!e.length)return;let i=this.highlighted>=0?e.indexOf(this.items[this.highlighted]):-1,o=a=>{t.preventDefault(),this.highlight(this.items.indexOf(e[a]))};switch(t.key){case"ArrowDown":return o(Math.min(i+1,e.length-1));case"ArrowUp":return t.altKey?(t.preventDefault(),this.highlighted>=0&&this.select(this.items[this.highlighted]),this.close()):o(Math.max(i-1,0));case"Home":return o(0);case"End":return o(e.length-1);case"PageDown":return o(Math.min(i+10,e.length-1));case"PageUp":return o(Math.max(i-10,0));case"Enter":case" ":return t.preventDefault(),this.highlighted>=0&&this.select(this.items[this.highlighted]),this.close();case"Tab":return this.highlighted>=0&&this.select(this.items[this.highlighted]),this.close(!1);default:t.key.length===1&&!t.ctrlKey&&!t.metaKey&&!t.altKey&&((r=this.typeahead)==null||r.handle(t.key))}});g(this,"onListClick",t=>{let e=t.target.closest("[data-part=\'item\']");!e||!this.items.includes(e)||ft(e)||(this.select(e),this.close())});g(this,"onListPointer",t=>{let e=t.target.closest("[data-part=\'item\']");e&&this.items.includes(e)&&!ft(e)&&this.highlight(this.items.indexOf(e))});g(this,"preventBlur",t=>t.preventDefault())}get open(){return this._open}get value(){return this._value}set value(t){let e=this.items.find(i=>i.dataset.value===t);e&&this.select(e,!1)}get isDisabled(){var t;return this.hasAttribute("disabled")||!!((t=this.nativeSelect)!=null&&t.disabled)}refresh(){var i;let t=this.nativeSelect;if(!t)return;let e=this.items.find(o=>o.dataset.value===t.value);e&&this.select(e,!1),(i=this.trigger)==null||i.setAttribute("aria-disabled",String(this.isDisabled))}enabled(){return this.items.filter(t=>!ft(t))}setup(){var a,c;if(this.nativeSelect=rt(this,"select"),this.nativeSelect&&!rt(this,"[data-part=\'trigger\']")&&this.buildFromNative(this.nativeSelect),this.trigger=rt(this,"[data-part=\'trigger\']"),this.content=rt(this,"[data-part=\'content\']"),this.valueEl=rt(this,"[data-part=\'value\']"),!this.trigger||!this.content)return;let{trigger:t,content:e}=this;this.items=Et(this,"[data-part=\'item\']");let i=st("db-select");e.id||(e.id=`${i}-listbox`),e.setAttribute("role","listbox"),e.hidden=!0,t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","listbox"),t.setAttribute("aria-expanded","false"),t.setAttribute("aria-controls",e.id),t instanceof HTMLButtonElement&&!t.hasAttribute("type")&&(t.type="button"),this.isDisabled&&t.setAttribute("aria-disabled","true"),this.items.forEach((l,d)=>{l.id||(l.id=`${i}-item-${d}`),l.setAttribute("role","option"),l.setAttribute("aria-selected","false")}),Et(this,"[data-part=\'group\']").forEach(l=>{l.setAttribute("role","group");let d=l.querySelector("[data-part=\'label\']");d&&(d.id||(d.id=st("db-select-label")),l.setAttribute("aria-labelledby",d.id))});let o=this.getAttribute("name");o&&!this.nativeSelect&&(this.hiddenInput=document.createElement("input"),this.hiddenInput.type="hidden",this.hiddenInput.name=o,this.hasAttribute("required")&&(this.hiddenInput.required=!0),this.appendChild(this.hiddenInput)),this.typeahead=new un({getItemCount:()=>this.enabled().length,getItemText:l=>{var d,u;return((u=(d=this.enabled()[l])==null?void 0:d.textContent)==null?void 0:u.trim())??""},onMatch:l=>{let d=this.enabled()[l];d&&(this._open?this.highlight(this.items.indexOf(d)):this.select(d))}}),this.dismiss=new Ft(e,{onDismiss:l=>this.close(l!=="outside-press")});let s=((a=this.nativeSelect)==null?void 0:a.value)??this.getAttribute("default-value")??"",r=this.items.find(l=>l.dataset.value===s);r&&ft(r)?this.valueEl&&(this.valueEl.textContent=((c=r.textContent)==null?void 0:c.trim())??"",this.valueEl.setAttribute("data-placeholder","")):r&&this.select(r,!1),this.setState("closed")}buildFromNative(t){let e=document.createElement("button");e.type="button",e.setAttribute("data-part","trigger"),e.className="db-select-trigger";let i=t.getAttribute("aria-label"),o=t.getAttribute("aria-labelledby"),s=!o&&t.id?document.querySelector(`label[for="${CSS.escape(t.id)}"]`):null;s&&(o=s.id||(s.id=st("db-select-for"))),i&&e.setAttribute("aria-label",i),o&&e.setAttribute("aria-labelledby",o);let r=t.closest("label");if(r){if(this.labelEl=r,!i&&!o){let u=Array.from(r.childNodes).filter(h=>!(h instanceof Element&&(h===t||h.contains(t)||h.localName==="db-select"))).map(h=>h.textContent??"").join(" ").replace(/\\s+/g," ").trim();u&&e.setAttribute("aria-label",u)}}else s&&(this.labelEl=s);let a=document.createElement("span");a.setAttribute("data-part","value"),a.className="db-select-value";let c=document.createElementNS("http://www.w3.org/2000/svg","svg");c.setAttribute("viewBox","0 0 24 24"),c.setAttribute("aria-hidden","true"),c.setAttribute("class","db-select-chevron"),c.innerHTML=\'<path d="m6 9 6 6 6-6" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\',e.append(a,c);let l=document.createElement("div");l.setAttribute("data-part","content"),l.className="db-select-content";let d=(u,h)=>{let m=document.createElement("div");m.setAttribute("data-part","item"),m.className="db-select-item",m.dataset.value=u.value;for(let[f,v]of Object.entries(u.dataset))v!=null&&(m.dataset[f]=v);u.disabled&&m.setAttribute("aria-disabled","true"),m.textContent=u.textContent??u.value,h.appendChild(m)};for(let u of Array.from(t.children))if(u instanceof HTMLOptGroupElement){let h=document.createElement("div");h.setAttribute("data-part","group");let m=document.createElement("div");m.setAttribute("data-part","label"),m.className="db-select-label",m.textContent=u.label,h.appendChild(m);for(let f of Array.from(u.children))f instanceof HTMLOptionElement&&d(f,h);l.appendChild(h)}else u instanceof HTMLOptionElement&&d(u,l);t.hidden=!0,t.tabIndex=-1,t.setAttribute("aria-hidden","true"),this.append(e,l)}connect(){var t,e,i,o,s,r,a,c,l,d;(t=this.trigger)==null||t.addEventListener("click",this.onTriggerClick),(e=this.trigger)==null||e.addEventListener("keydown",this.onTriggerKey),(i=this.trigger)==null||i.addEventListener("keyup",this.onTriggerKeyUp),(o=this.nativeSelect)==null||o.addEventListener("change",this.onNativeChange),(r=(s=this.nativeSelect)==null?void 0:s.form)==null||r.addEventListener("reset",this.onFormReset),(a=this.labelEl)==null||a.addEventListener("click",this.onLabelClick),(c=this.content)==null||c.addEventListener("click",this.onListClick),(l=this.content)==null||l.addEventListener("pointermove",this.onListPointer),(d=this.content)==null||d.addEventListener("mousedown",this.preventBlur)}disconnect(){var t,e,i,o,s,r,a,c,l,d;(t=this.trigger)==null||t.removeEventListener("click",this.onTriggerClick),(e=this.trigger)==null||e.removeEventListener("keydown",this.onTriggerKey),(i=this.trigger)==null||i.removeEventListener("keyup",this.onTriggerKeyUp),(o=this.nativeSelect)==null||o.removeEventListener("change",this.onNativeChange),(r=(s=this.nativeSelect)==null?void 0:s.form)==null||r.removeEventListener("reset",this.onFormReset),(a=this.labelEl)==null||a.removeEventListener("click",this.onLabelClick),(c=this.content)==null||c.removeEventListener("click",this.onListClick),(l=this.content)==null||l.removeEventListener("pointermove",this.onListPointer),(d=this.content)==null||d.removeEventListener("mousedown",this.preventBlur),this._open&&this.close(!1)}setState(t){var e;this.setAttribute("data-state",t),(e=this.content)==null||e.setAttribute("data-state",t)}show(){var r,a;let{trigger:t,content:e}=this;if(!t||!e||this._open)return;this._open=!0;let i=Gt(e);this.setState("open"),t.setAttribute("aria-expanded","true"),this.cleanupFloating=Bt(t,e,{placement:"bottom-start",offset:4,matchWidth:!this.hasAttribute("auto-width"),strategy:i==="top-layer"?"fixed":"absolute"});let s=this.items.find(c=>c.dataset.value===this._value&&!ft(c))??this.enabled()[0];s&&this.highlight(this.items.indexOf(s)),(r=this.dismiss)==null||r.activate(),(a=this.typeahead)==null||a.reset(),t.focus()}close(t=!0){var o,s,r;let{trigger:e,content:i}=this;!e||!i||!this._open||(this._open=!1,(o=this.dismiss)==null||o.deactivate(),(s=this.cleanupFloating)==null||s.call(this),this.cleanupFloating=null,Zt(i),this.setState("closed"),e.setAttribute("aria-expanded","false"),e.removeAttribute("aria-activedescendant"),this.items.forEach(a=>a.removeAttribute("data-highlighted")),this.highlighted=-1,(r=this.typeahead)==null||r.reset(),t&&e.focus())}highlight(t){var r;let e=this.items[t],i=this.content;if(!e||!i||!this.trigger)return;this.highlighted>=0&&((r=this.items[this.highlighted])==null||r.removeAttribute("data-highlighted")),this.highlighted=t,e.setAttribute("data-highlighted",""),this.trigger.setAttribute("aria-activedescendant",e.id);let o=e.offsetTop,s=o+e.offsetHeight;o<i.scrollTop?i.scrollTop=o:s>i.scrollTop+i.clientHeight&&(i.scrollTop=s-i.clientHeight)}select(t,e=!0){var s;if(ft(t))return;let i=t.dataset.value??"",o=i!==this._value;this._value=i;for(let r of this.items){let a=r===t;r.setAttribute("aria-selected",String(a)),a?r.setAttribute("data-state","checked"):r.removeAttribute("data-state")}if(this.valueEl&&(this.valueEl.textContent=((s=t.textContent)==null?void 0:s.trim())??"",this.valueEl.removeAttribute("data-placeholder")),this.hiddenInput&&(this.hiddenInput.value=i),!e||!o){this.nativeSelect&&(this.nativeSelect.value=i);return}if(this.nativeSelect){this.nativeSelect.value=i,this.syncing=!0;try{this.nativeSelect.dispatchEvent(new Event("input",{bubbles:!0})),this.nativeSelect.dispatchEvent(new Event("change",{bubbles:!0}))}finally{this.syncing=!1}}this.dispatchEvent(new CustomEvent("db-select:change",{detail:{value:i},bubbles:!0}))}};nt();customElements.get("db-select")||customElements.define("db-select",Pi);var Fi=class extends et{constructor(){super(...arguments);g(this,"trigger",null);g(this,"content",null);g(this,"dismiss",null);g(this,"cleanupFloating",null);g(this,"_open",!1);g(this,"onTriggerClick",()=>this.toggle());g(this,"onContentClick",t=>{let e=t.target.closest("[data-part=\'close\']");e&&e.closest("db-popover")===this&&this.close("close-press")})}get open(){return this._open}setup(){var e;if(this.trigger=Xt(rt(this,"[data-part=\'trigger\']")),this.content=rt(this,"[data-part=\'content\']"),!this.trigger||!this.content)return;let t=this.content;t.id||(t.id=st("db-popover")),t.hasAttribute("role")||t.setAttribute("role","dialog"),!t.hasAttribute("aria-labelledby")&&!t.hasAttribute("aria-label")&&((e=this.trigger).id||(e.id=st("db-popover-trigger")),t.setAttribute("aria-labelledby",this.trigger.id)),t.hidden=!0,this.trigger.setAttribute("aria-haspopup","dialog"),this.trigger.setAttribute("aria-controls",t.id),this.trigger.setAttribute("aria-expanded","false"),this.setState("closed"),this.dismiss=new Ft(t,{onDismiss:i=>this.close(i)})}connect(){var t,e;(t=this.trigger)==null||t.addEventListener("click",this.onTriggerClick),(e=this.content)==null||e.addEventListener("click",this.onContentClick)}disconnect(){var t,e;(t=this.trigger)==null||t.removeEventListener("click",this.onTriggerClick),(e=this.content)==null||e.removeEventListener("click",this.onContentClick),this._open&&this.close("api")}setState(t){var e;this.setAttribute("data-state",t),(e=this.content)==null||e.setAttribute("data-state",t)}placement(){var o,s;let t=this.getAttribute("placement");if(t)return t;let e=((o=this.content)==null?void 0:o.dataset.side)||"bottom",i=((s=this.content)==null?void 0:s.dataset.align)||"center";return`${e}${i!=="center"?`-${i}`:""}`}toggle(){this._open?this.close("trigger-press"):this.show()}show(){var o;let{trigger:t,content:e}=this;if(!t||!e||this._open)return;this._open=!0;let i=Gt(e);this.setState("open"),t.setAttribute("aria-expanded","true"),this.cleanupFloating=Bt(t,e,{placement:this.placement(),offset:Number(this.getAttribute("offset")??8),strategy:i==="top-layer"?"fixed":"absolute"}),(o=this.dismiss)==null||o.activate(),this.hasAttribute("no-autofocus")||requestAnimationFrame(()=>{this._open&&(qn(e)[0]??e).focus({preventScroll:!0})}),this.dispatchEvent(new CustomEvent("db-popover:open",{bubbles:!0}))}close(t="api"){var s,r;let{trigger:e,content:i}=this;if(!e||!i||!this._open)return;this._open=!1,(s=this.dismiss)==null||s.deactivate(),(r=this.cleanupFloating)==null||r.call(this),this.cleanupFloating=null;let o=i.contains(document.activeElement);Zt(i),this.setState("closed"),e.setAttribute("aria-expanded","false"),t!=="outside-press"&&(o||t==="escape-key"||t==="close-press")&&e.focus(),this.dispatchEvent(new CustomEvent("db-popover:close",{detail:{reason:t},bubbles:!0}))}};nt();customElements.get("db-popover")||customElements.define("db-popover",Fi);var _i="db-announcement-closed:";var zi=class extends et{constructor(){super(...arguments);g(this,"closeButton",null);g(this,"onClose",()=>this.close())}setup(){var t;this.closeButton=[...this.querySelectorAll("[data-part=\'close\']")].find(e=>e.closest("db-announcement")===this)??null,this.closeButton&&!this.closeButton.hasAttribute("aria-label")&&!((t=this.closeButton.textContent)!=null&&t.trim())&&this.closeButton.setAttribute("aria-label","Close announcement")}connect(){var t;(t=this.closeButton)==null||t.addEventListener("click",this.onClose)}disconnect(){var t;(t=this.closeButton)==null||t.removeEventListener("click",this.onClose)}close(){var i;let t=this.getAttribute("announcement-id")??"";try{t&&localStorage.setItem(_i+t,"1")}catch{}let e=this.contains(document.activeElement);if(document.documentElement.setAttribute("data-announcement-closed",""),this.hidden=!0,this.style.display="none",e){let o=document.querySelector("main, [role=\'main\']");o?(o.hasAttribute("tabindex")||o.setAttribute("tabindex","-1"),o.focus({preventScroll:!0})):(i=document.activeElement)==null||i.blur()}this.dispatchEvent(new CustomEvent("db-announcement:close",{bubbles:!0,detail:{id:t}}))}};nt();customElements.get("db-announcement")||customElements.define("db-announcement",zi);var $i=class extends et{constructor(){super(...arguments);g(this,"trigger",null);g(this,"content",null);g(this,"cleanupFloating",null);g(this,"showTimer",null);g(this,"hideTimer",null);g(this,"_open",!1);g(this,"onEnter",t=>{t.pointerType!=="touch"&&(this.clearTimers(),this._open||(this.showTimer=setTimeout(()=>this.show(),this.num("delay",200))))});g(this,"onLeave",t=>{t.pointerType!=="touch"&&(this.clearTimers(),this.hideTimer=setTimeout(()=>this.hide(),this.num("close-delay",100)))});g(this,"onContentEnter",()=>this.clearTimers());g(this,"onFocus",()=>{let t=!0;try{t=this.trigger.matches(":focus-visible")}catch{}t&&(this.clearTimers(),this.show())});g(this,"onBlur",()=>this.hide());g(this,"onPress",()=>this.hide());g(this,"onKey",t=>{t.key==="Escape"&&this._open&&(t.preventDefault(),t.stopImmediatePropagation(),this.hide())})}get open(){return this._open}num(t,e){let i=Number(this.getAttribute(t));return Number.isFinite(i)&&this.hasAttribute(t)?i:e}setup(){var e;if(this.trigger=Xt(rt(this,"[data-part=\'trigger\']")),this.content=rt(this,"[data-part=\'content\']"),!this.trigger||!this.content)return;(e=this.content).id||(e.id=st("db-tooltip")),this.content.setAttribute("role","tooltip"),this.content.hidden=!0;let t=(this.trigger.getAttribute("aria-describedby")??"").split(/\\s+/).filter(Boolean);t.includes(this.content.id)||this.trigger.setAttribute("aria-describedby",[...t,this.content.id].join(" ")),this.setState("closed")}connect(){let{trigger:t,content:e}=this;!t||!e||(t.addEventListener("pointerenter",this.onEnter),t.addEventListener("pointerleave",this.onLeave),t.addEventListener("focus",this.onFocus),t.addEventListener("blur",this.onBlur),t.addEventListener("pointerdown",this.onPress),e.addEventListener("pointerenter",this.onContentEnter),e.addEventListener("pointerleave",this.onLeave))}disconnect(){let{trigger:t,content:e}=this;t==null||t.removeEventListener("pointerenter",this.onEnter),t==null||t.removeEventListener("pointerleave",this.onLeave),t==null||t.removeEventListener("focus",this.onFocus),t==null||t.removeEventListener("blur",this.onBlur),t==null||t.removeEventListener("pointerdown",this.onPress),e==null||e.removeEventListener("pointerenter",this.onContentEnter),e==null||e.removeEventListener("pointerleave",this.onLeave),this.hide()}clearTimers(){this.showTimer&&clearTimeout(this.showTimer),this.hideTimer&&clearTimeout(this.hideTimer),this.showTimer=this.hideTimer=null}setState(t){var e;this.setAttribute("data-state",t),(e=this.content)==null||e.setAttribute("data-state",t)}show(){let{trigger:t,content:e}=this;if(!t||!e||this._open)return;this._open=!0,this.clearTimers();let i=Gt(e);this.setState("open"),this.cleanupFloating=Bt(t,e,{placement:this.getAttribute("placement")||e.dataset.side||"top",offset:8,strategy:i==="top-layer"?"fixed":"absolute"}),document.addEventListener("keydown",this.onKey,!0),this.dispatchEvent(new CustomEvent("db-tooltip:open",{bubbles:!0}))}hide(){var t;this.clearTimers(),!(!this._open||!this.content)&&(this._open=!1,document.removeEventListener("keydown",this.onKey,!0),(t=this.cleanupFloating)==null||t.call(this),this.cleanupFloating=null,Zt(this.content),this.setState("closed"),this.dispatchEvent(new CustomEvent("db-tooltip:close",{bubbles:!0})))}};nt();customElements.get("db-tooltip")||customElements.define("db-tooltip",$i);var qi="sidebar_state",Us="b",Ws=768,we=new WeakMap;function Ys(n){try{return localStorage.getItem(n)}catch{return null}}function Xs(n,t){try{localStorage.setItem(n,t)}catch{}}function pn(n){if(we.has(n))return;let t=n.querySelector("[data-component=\'sidebar\']");if(!t)return;let e=t.dataset.collapsible||"offcanvas",i=t.dataset.side||"left",o=t.dataset.defaultOpen!=="false",s=Ys(qi),r=s!==null?s==="true":o,a=t.querySelector("[data-sidebar-desktop]"),c=t.querySelector("[data-sidebar-mobile]"),l=t.querySelector("[data-sidebar-mobile-backdrop]"),d=window.matchMedia(`(max-width: ${Ws-1}px)`),u={provider:n,sidebar:t,desktopSidebar:a,mobileSidebar:c,mobileBackdrop:l,collapsible:e,side:i,open:r,openMobile:!1,isMobile:d.matches,mediaQuery:d};we.set(n,u),Bi(u);let h=v=>{u.isMobile=v.matches,!v.matches&&u.openMobile&&Mt(n)};d.addEventListener("change",h);let m=v=>{v.key===Us&&(v.metaKey||v.ctrlKey)?(v.preventDefault(),hn(n)):v.key==="Escape"&&u.openMobile&&(v.preventDefault(),Mt(n))};document.addEventListener("keydown",m),Gs(n,u),l&&l.addEventListener("click",()=>{Mt(n)});let f=t.querySelector("[data-part=\'rail\']");f&&f.addEventListener("click",()=>{hn(n)})}function Gs(n,t){n.querySelectorAll("[data-part=\'sidebar-trigger\']").forEach(e=>{e.addEventListener("click",()=>{hn(n)})})}function hn(n){let t=we.get(n);t&&(t.isMobile?t.openMobile?Mt(n):Zs(n):(t.open=!t.open,Bi(t),Xs(qi,String(t.open))))}function Bi(n){let t=n.open?"expanded":"collapsed";n.provider.setAttribute("data-state",t),n.sidebar.setAttribute("data-state",t),n.desktopSidebar&&(n.desktopSidebar.setAttribute("data-state",t),n.open?n.desktopSidebar.setAttribute("data-collapsible",""):n.desktopSidebar.setAttribute("data-collapsible",n.collapsible))}function Zs(n){var i;let t=we.get(n);if(!t||t.openMobile||!t.mobileSidebar)return;t.openMobile=!0;let e=(i=t.desktopSidebar)==null?void 0:i.querySelector("[data-sidebar=\'sidebar-inner\']");if(e)for(;e.firstChild;)t.mobileSidebar.appendChild(e.firstChild);t.mobileSidebar.hidden=!1,t.mobileSidebar.setAttribute("data-state","open"),t.mobileBackdrop&&(t.mobileBackdrop.hidden=!1),Pt.activate(),requestAnimationFrame(()=>{var s;let o=(s=t.mobileSidebar)==null?void 0:s.querySelector(\'a, button, [tabindex]:not([tabindex="-1"])\');o==null||o.focus()})}function Mt(n){var o;let t=we.get(n);if(!t||!t.openMobile||!t.mobileSidebar)return;t.openMobile=!1;let e=(o=t.desktopSidebar)==null?void 0:o.querySelector("[data-sidebar=\'sidebar-inner\']");if(e&&t.mobileSidebar)for(;t.mobileSidebar.firstChild;)e.appendChild(t.mobileSidebar.firstChild);t.mobileSidebar.setAttribute("data-state","closed"),t.mobileSidebar.hidden=!0,t.mobileBackdrop&&(t.mobileBackdrop.hidden=!0),Pt.deactivate();let i=t.provider.querySelector("[data-part=\'sidebar-trigger\']");i==null||i.focus()}function fn(){document.querySelectorAll("[data-component=\'sidebar-provider\']").forEach(n=>{pn(n)})}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",fn):fn();document.addEventListener("astro:page-load",fn);var ji=/^[a-z][a-z0-9_-]{0,63}$/,He={docs:"docs.js",shard:n=>`t-${n}.js`,fragment:n=>`f-${n}.js`},Pe={docs:"docs",shard:n=>n,fragment:n=>`frag:${n}`};var Qs={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},Js={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},tr="[^aeiou]",gn="[aeiouy]",It="("+tr+"[^aeiouy]*)",_e="("+gn+"[aeiou]*)",mn=new RegExp("^"+It+"?"+_e+It),er=new RegExp("^"+It+"?"+_e+It+_e+"?$"),Fe=new RegExp("^"+It+"?("+_e+It+"){2,}"),Ki=new RegExp("^"+It+"?"+gn),Vi=new RegExp("^"+It+gn+"[^aeiouwxy]$"),nr=/ll$/,ir=/^(.+?)e$/,or=/^(.+?)y$/,sr=/^(.+?(s|t))(ion)$/,rr=/^(.+?)(ed|ing)$/,ar=/(at|bl|iz)$/,cr=/^(.+?)eed$/,lr=/^.+?[^s]s$/,dr=/^.+?(ss|i)es$/,ur=/([^aeiouylsz])\\1$/,hr=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,fr=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,pr=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/;function Ui(n){let t=String(n).toLowerCase();if(t.length<3)return t;let e=!1;t.codePointAt(0)===121&&(e=!0,t="Y"+t.slice(1)),dr.test(t)?t=t.slice(0,-2):lr.test(t)&&(t=t.slice(0,-1));let i;return(i=cr.exec(t))?mn.test(i[1])&&(t=t.slice(0,-1)):(i=rr.exec(t))&&Ki.test(i[1])&&(t=i[1],ar.test(t)?t+="e":ur.test(t)?t=t.slice(0,-1):Vi.test(t)&&(t+="e")),(i=or.exec(t))&&Ki.test(i[1])&&(t=i[1]+"i"),(i=hr.exec(t))&&mn.test(i[1])&&(t=i[1]+Qs[i[2]]),(i=fr.exec(t))&&mn.test(i[1])&&(t=i[1]+Js[i[2]]),(i=pr.exec(t))?Fe.test(i[1])&&(t=i[1]):(i=sr.exec(t))&&Fe.test(i[1])&&(t=i[1]),(i=ir.exec(t))&&(Fe.test(i[1])||er.test(i[1])&&!Vi.test(i[1]))&&(t=i[1]),nr.test(t)&&Fe.test(t)&&(t=t.slice(0,-1)),e&&(t="y"+t.slice(1)),t}var Wi=new Set("a an and are as at be by for from has have in is it its of on or that the this to was were will with you your can not".split(" ")),mr=/[\\p{Script=Han}\\p{Script=Hiragana}\\p{Script=Katakana}\\p{Script=Hangul}]/u,xe;function gr(n){if(xe===void 0)try{xe=typeof Intl<"u"&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"word"}):null}catch{xe=null}if(xe)return[...xe.segment(n)].filter(i=>i.isWordLike).map(i=>i.segment);let t=[...n];if(t.length<2)return t;let e=[];for(let i=0;i<t.length-1;i++)e.push(t[i]+t[i+1]);return e}function jt(n){let t=[];for(let e of n.toLowerCase().normalize("NFKD").replace(/[\u0300-\u036F]/g,"").normalize("NFC").matchAll(/[\\p{L}\\p{N}][\\p{L}\\p{N}_.-]*[\\p{L}\\p{N}]|[\\p{L}\\p{N}]/gu)){let i=e[0],o=i.split(/[._-]+/).filter(Boolean);if(o.length>1&&t.push(i),o.length>1&&!/[._]/.test(i)){let s=o.join("");s.length>=3&&!Wi.has(s)&&t.push(s)}for(let s of o)mr.test(s)?t.push(...gr(s)):s.length>=2&&!Wi.has(s)&&t.push(s)}return t}function bn(n,t){let e="";for(let i of n.slice(0,t))e+=/[a-z0-9]/.test(i)?i:`_${i.codePointAt(0).toString(16)}_`;return e}function Ee(n){if(!(!n||!/^en(-|$)/i.test(n)))return t=>/^[a-z]{3,}$/.test(t)?Ui(t):t}function Kt(n,t={}){var w,p;let e=[],i=[],o=[],s=!1,r={tag:[],section:[]},a={tag:[],section:[]},c=Object.create(null),l=Object.create(null),d=["tag","section",...new Set((t.facets??[]).filter(b=>ji.test(b)&&b!=="tag"&&b!=="section"))],u=new RegExp(`(?<!\\\\S)(-?)(${d.join("|")}):(?:"([^"]*)"?|(?!\\\\/\\\\/)(\\\\S*))|(-?)"([^"]*)"?|(\\\\S+)`,"gi"),h=[...n.matchAll(u)].map(b=>{var x;return{facetNeg:b[1]==="-",facet:(x=b[2])==null?void 0:x.toLowerCase(),value:b[3]??b[4],neg:b[5],phrase:b[6],word:b[7]}}),m=!1,f=!1;for(let[b,x]of h.entries()){if(x.facet){let O=xn(x.value??"");if(!O)continue;x.facet==="tag"||x.facet==="section"?(x.facetNeg?a:r)[x.facet].push(O):((w=x.facetNeg?l:c)[p=x.facet]??(w[p]=[])).push(O);continue}let E=x.word;if(E==="OR"){f=e.length>0,s=!0;continue}if(E==="NOT"){m=!0,s=!0;continue}if(E==="AND"){s=!0;continue}let D=x.phrase!==void 0,S=m||x.neg==="-"||(E==null?void 0:E.startsWith("-"))&&E.length>1;m=!1;let A=D?x.phrase:S&&(E!=null&&E.startsWith("-"))?E.slice(1):E,y=[...new Set(jt(A))];if(!y.length){f=!1;continue}if(S){i.push(D?y:[y[0]]),s=!0,f=!1;continue}if(D){f=!1,s=!0,y.length>1&&o.push(jt(A).join(" "));for(let O of y)e.push({terms:[O],prefix:!1,exact:!0});continue}let W=b===h.length-1&&!/\\s$/.test(n);if(f){e[e.length-1].terms.push(y[0]);for(let O of y.slice(1))e.push({terms:[O],prefix:!1});f=!1;continue}let z=y[0],G=/[._-]/.test(z),C=z.replace(/-/g,"");for(let[O,q]of y.entries())e.push({terms:[q],prefix:W&&q.length>=2&&(O===y.length-1||G&&(q===z||q===C))})}let v=[...new Set(e.flatMap(b=>b.terms))];return{groups:e,not:i,phrases:o,strict:s,highlight:v,filters:r,notFilters:a,...Object.keys(c).length?{facets:c}:{},...Object.keys(l).length?{notFacets:l}:{}}}async function br(n,t){let e=await t.meta(),i=typeof n=="string"?Kt(n,{facets:En([e])}):n,o=await Qi(i,e,t),s=eo(i,e);if(!i.groups.length)return Ji(e,o,s);let r=[];for(let c of i.groups)r.push(await wr(c,e,t));let a=yn(r,e,o,s,"and").sort(ze);return a.length||i.strict?a:yn(r,e,o,s,"or").sort(ze)}var ze=(n,t)=>t.score-n.score;async function Qi(n,t,e){let i=new Set;for(let o of n.not){let s;for(let r of o){let[a]=to(r,t),c=a?await e.shard(a):void 0,l=c&&Object.hasOwn(c,r)?c[r]:[],d=new Set;for(let u=0;u<l.length;u+=2)(!s||s.has(l[u]))&&d.add(l[u]);s=d}for(let r of s??[])i.add(r)}return i}function Ji(n,t,e){if(!e)return[];let i=[];return n.docs.forEach(([o,s,r],a)=>e(a)&&!t.has(a)&&i.push({id:a,title:o,url:s,section:n.sections[r]??"",score:1})),i}function yn(n,t,e,i,o){let s=new Map,r=new Map;for(let c of n)for(let[l,d]of c)s.set(l,(s.get(l)??0)+d),r.set(l,(r.get(l)??0)+1);let a=[];for(let[c,l]of s){if(e.has(c)||i&&!i(c)||o==="and"&&r.get(c)!==n.length)continue;let[d,u,h]=t.docs[c];a.push({id:c,title:d,url:u,section:t.sections[h]??"",score:l*(r.get(c)/n.length)})}return a}var Ct={prefix:.6,stem:.4,titleAll:1.5,titleExact:2,headingAll:1.4,headingExact:1.8,phrase:1.5,typo:.3};function vr(n,t){if(n===t)return!1;if(n.length===t.length){let s=[];for(let r=0;r<n.length&&s.length<=2;r++)n[r]!==t[r]&&s.push(r);return s.length===1?!0:s.length===2&&s[1]===s[0]+1&&n[s[0]]===t[s[1]]&&n[s[1]]===t[s[0]]}let[e,i]=n.length<t.length?[n,t]:[t,n];if(i.length-e.length!==1)return!1;let o=0;for(;o<e.length&&e[o]===i[o];)o++;return e.slice(o)===i.slice(o+1)}function to(n,t,e=!1){let i=yr(t);for(let s=Math.min(n.length,Yi);s>=1;s--){let r=bn(n,s);if(i.has(r))return!e||s<n.length?[r]:[r,...t.shards.filter(a=>a.length>r.length&&a.startsWith(r)).slice(0,10)]}let o=bn(n,Math.min(n.length,Yi));return e?t.shards.filter(s=>s.startsWith(o)).slice(0,10):[]}var Yi=3,Xi=new WeakMap;function yr(n){let t=Xi.get(n);return t||Xi.set(n,t=new Set(n.shards)),t}function xn(n){return n.replace(/"/g,"").trim().toLowerCase()}function eo(n,t){let{tag:e,section:i}=n.filters,o=n.notFilters??{tag:[],section:[]},s=Object.entries(n.facets??{}).filter(([,p])=>p.length),r=Object.entries(n.notFacets??{}).filter(([,p])=>p.length);if(!e.length&&!i.length&&!o.tag.length&&!o.section.length&&!s.length&&!r.length)return;let a=(p,b)=>new Set(p.flatMap((x,E)=>b.includes(xn(x))?[E]:[])),c=a(t.sections,i),l=a(t.tags??[],e),d=a(t.sections,o.section),u=a(t.tags??[],o.tag),h=p=>(t.facets??[]).findIndex(b=>b.name===p),m=p=>p.map(([b,x])=>{let E=h(b);return[E,E<0?new Set:a(t.facets[E].values,x)]}),f=m(s),v=m(r).filter(([p])=>p>=0),w=(p,[b,x])=>{var E;return b>=0&&(((E=p[4])==null?void 0:E[b])??[]).some(D=>x.has(D))};return p=>{let b=t.docs[p],x=b[3]??[];if(i.length&&!c.has(b[2])||e.length&&!x.some(E=>l.has(E))||d.has(b[2])||x.some(E=>u.has(E)))return!1;for(let E of f)if(!w(b,E))return!1;for(let E of v)if(w(b,E))return!1;return!0}}function En(n){return[...new Set(n.flatMap(t=>((t==null?void 0:t.facets)??[]).map(e=>e.name)))]}function no(n,t){let e=Object.create(null),i=new Map,o=(s,r)=>{let a=`${s}\\0${xn(r)}`,c=i.get(a);c===void 0&&i.set(a,c=r);let l=e[s]??(e[s]=Object.create(null));l[c]=(l[c]??0)+1};for(let s of n){let r=typeof t=="function"?t(s):t,a=r==null?void 0:r.docs[s.id];if(a){r.sections[a[2]]&&o("section",r.sections[a[2]]);for(let c of new Set(a[3]??[]))r.tags[c]!==void 0&&o("tag",r.tags[c]);(a[4]??[]).forEach((c,l)=>{var u;let d=(u=r.facets)==null?void 0:u[l];if(d)for(let h of new Set(c))d.values[h]!==void 0&&o(d.name,d.values[h])})}}return e}async function wr(n,t,e){let i=await oo(n,t,e,!0);return n.corrected=i.corrected.length?i.corrected:void 0,io(i,wn(t.count,i.docs.size))}function wn(n,t){return Math.log(1+(n-t+.5)/(t+.5))}function io(n,t){let e=new Map;for(let[i,o]of n.lists)for(let s=0;s<i.length;s+=2)e.set(i[s],Math.max(e.get(i[s])??0,i[s+1]*o*t));return e}async function oo(n,t,e,i){let o=Ee(t.lang),s=new Map,r=new Map;for(let d of n.terms)for(let u of to(d,t,n.prefix)){let h=await e.shard(u);if(!h)continue;let m=(p,b)=>{b>(s.get(p)??0)&&(s.set(p,b),r.set(p,h))};Object.hasOwn(h,d)&&m(d,1);let f=o==null?void 0:o(d),v=f?f.slice(0,Math.max(3,f.length-1)):void 0,w=0;for(let p in h)p!==d&&(n.prefix&&p.startsWith(d)&&w++<200&&m(p,Ct.prefix),f&&v&&p.startsWith(v)&&o(p)===f&&m(p,Ct.stem));if(i&&!s.size&&!n.exact&&d.length>=4&&!/[._-]/.test(d))for(let p in h)Math.abs(p.length-d.length)<=1&&vr(d,p)&&m(p,Ct.typo)}let a=[...s].filter(([,d])=>d===Ct.typo).map(([d])=>d),c=[...s].map(([d,u])=>[r.get(d)[d],u]),l=new Set;for(let[d]of c)for(let u=0;u<d.length;u+=2)l.add(d[u]);return{lists:c,docs:l,corrected:a}}var so=n=>typeof n=="function"?n:()=>n;async function ro(n,t){let e=so(t),i=new Map;for(let o of n){let s=e(o),r=i.get(s);r||i.set(s,r=[]),r.push(o)}await Promise.all([...i].map(async([o,s])=>{var l;let r=await o.meta(),a=[...new Set(s.map(d=>Math.floor(d.id/r.block)))],c=new Map;await Promise.all(a.map(async d=>{try{c.set(d,await o.fragment(d))}catch{c.set(d,void 0)}}));for(let d of s)d.fragment??(d.fragment=(l=c.get(Math.floor(d.id/r.block)))==null?void 0:l[d.id%r.block])}))}async function ao(n){let t=so(n),e=new Map;return async i=>{let o=t(i),s=e.get(o);if(!s){let r=Ee((await o.meta()).lang);s=(a,c)=>c.terms.some(l=>a===l||c.prefix&&a.startsWith(l)||r!==void 0&&r(a)===r(l))||(c.corrected??[]).includes(a),e.set(o,s)}return s}}async function co(n,t,e,i=10){let o=t.slice(0,i);await ro(o,e);let s=n.groups,r=await ao(e);for(let a of o){let c=await r(a),[l,d]=a.fragment??["",[]],u=jt(a.title),h=1;s.length&&s.every(f=>u.some(v=>c(v,f)))&&(h=Gi(u,s,c)?Ct.titleExact:Ct.titleAll);let m=[];for(let[f,v]of d){let w=jt(f);!s.length||!s.every(p=>w.some(b=>c(b,p)))||(m.push([f,v]),h=Math.max(h,Gi(w,s,c)?Ct.headingExact:Ct.headingAll))}if(a.sections=m.slice(0,3),n.phrases.length){let f=[a.title,l,...d.map(([v])=>v)].map(v=>jt(v).join(" ")).join(" \\0 ");n.phrases.every(v=>f.includes(v))&&(h*=Ct.phrase)}a.score*=h}return o.sort((a,c)=>c.score-a.score),[...o,...t.slice(i)]}async function lo(n,t,e){await ro(t,e);let i=await ao(e);for(let o of t){if(!o.fragment||o.sections)continue;let s=await i(o);o.sections=o.fragment[1].filter(([r])=>{let a=jt(r);return n.groups.length>0&&n.groups.every(c=>a.some(l=>s(l,c)))}).slice(0,3)}}function Gi(n,t,e){return n.every(i=>t.some(o=>e(i,o)))&&t.every(i=>n.some(o=>e(o,i)))}async function uo(n,t,e=10){let i=await t.meta(),o=Kt(n,{facets:En([i])}),s=Ee(i.lang);s&&(o.highlight=[...new Set([...o.highlight,...o.highlight.map(s).filter(a=>a.length>=3)])]);let r=await br(o,t);return o.highlight=[...new Set([...o.highlight,...o.groups.flatMap(a=>a.corrected??[])])],{parsed:o,results:await co(o,r,t,e),facets:no(r,i)}}async function xr(n){return Promise.all(n.map(t=>t.data.meta().then(e=>e&&e.format===5?e:void 0,()=>{})))}async function Er(n,t,e,i){let o=e,s=new Set,r=[],a=async(S,A)=>{if(!s.has(S))try{return await A()}catch(y){s.add(S),r.push({source:S,error:y});return}},c=t.flatMap((S,A)=>e[A]?[A]:[]),l=[];await Promise.all(c.map(async S=>l[S]=await a(S,()=>Qi(n,o[S],t[S].data))??new Set));let d=[],u=[],h=(S,A)=>Promise.all(c.map(y=>a(y,()=>oo(S,o[y],t[y].data,A)))),m=S=>S.every((A,y)=>!(A!=null&&A.docs.size)||s.has(c[y]));for(let S of n.groups){let A=await h(S,!1);u.push(m(A)),u[u.length-1]&&(A=await h(S,!0)),d.push(A)}for(let[S,A]of n.groups.entries())u[S]||!m(d[S])||(A.corrected=void 0,d[S]=await h(A,!0));if(c.length&&c.every(S=>s.has(S)))throw r[0].error;let f=c.filter(S=>!s.has(S)),v=[];for(let S of f)v[S]=eo(n,o[S]);let w=(S,A)=>S.map(y=>({...y,source:A,score:y.score*Sr(t[A])})),p=S=>({results:Ar(S,t),failed:[...s].sort((A,y)=>A-y),errors:r});if(!n.groups.length)return p(f.flatMap(S=>w(Ji(o[S],l[S],v[S]),S)).sort(ze));let b=t.map(()=>[]),x=f.reduce((S,A)=>S+o[A].count,0);n.groups.forEach((S,A)=>{let y=d[A],W=c.flatMap((C,O)=>s.has(C)?[]:[[C,y[O]]]),z=[...new Set(W.flatMap(([,C])=>C.corrected))];S.corrected=z.length?z:void 0;let G=W.reduce((C,[,O])=>C+O.docs.size,0);for(let[C,O]of W)b[C].push(io(O,i.stats==="own"?wn(o[C].count,O.docs.size):wn(x,G)))});let E=S=>f.flatMap(A=>w(yn(b[A],o[A],l[A],v[A],S),A)).sort(ze),D=E("and");return p(D.length||n.strict?D:E("or"))}function Sr(n){return typeof n.boost=="number"&&Number.isFinite(n.boost)&&n.boost>=0?n.boost:1}function Ar(n,t){let e=new Map,i=[];for(let o of n){let s=t[o.source].collapse;if(s===void 0){i.push(o);continue}let r=`${s}\\0${o.url}`,a=e.get(r);a?(a.others??(a.others=[])).push({source:o.source,id:o.id,url:o.url,score:o.score}):(e.set(r,o),i.push(o))}return i}async function ho(n,t,e=10,i={}){let o=await xr(t),s=Kt(n,{facets:En(o)}),r=t.flatMap((u,h)=>o[h]?[]:[h]);for(let u of new Set(o.flatMap(h=>h?[h.lang]:[]))){let h=Ee(u);h&&(s.highlight=[...new Set([...s.highlight,...s.highlight.map(h).filter(m=>m.length>=3)])])}let{results:a,failed:c,errors:l}=await Er(s,t,o,i);for(let u of c)r.includes(u)||r.push(u);r.sort((u,h)=>u-h),s.highlight=[...new Set([...s.highlight,...s.groups.flatMap(u=>u.corrected??[])])];let d=no(a,u=>o[u.source]);return{parsed:s,results:await co(s,a,u=>t[u.source].data,e),missing:r,facets:d,errors:l}}function Sn(n,t,e=globalThis){var m,f;let i=((m=e.document)==null?void 0:m.baseURI)??((f=e.location)==null?void 0:f.href),o=Zi(n,i),s=e.__DOGSBAY_SEARCH__??{q:[],load(){}},r=s.stores??(s.stores=new Map),a=r.get(o)??new Map;r.set(o,a);let c=(v,w,p)=>{let b;if(p){let x="",E=Zi(p,i);for(let D of r.keys())E.startsWith(D)&&D.length>x.length&&(x=D);b=x?r.get(x):void 0}!b&&r.size===1&&(b=a),b?b.set(v,w):s.q.push([v,w,p])},l=s.q;s.q=[],s.load=c;for(let[v,w,p]of l)c(v,w,p);e.__DOGSBAY_SEARCH__=s;let d=async(v,w)=>(a.has(v)||await t(n+w),a.get(v)),u,h={meta:()=>u??(u=d(Pe.docs,He.docs).then(v=>{if(!v||v.format!==5)throw new Error(`search index format ${(v==null?void 0:v.format)??"missing"}, expected ${5}: rebuild the site`);return v}).catch(v=>{throw u=void 0,v})),shard:async v=>(await h.meta()).shards.includes(v)?d(Pe.shard(v),He.shard(v)):void 0,fragment:v=>d(Pe.fragment(v),He.fragment(v))};return h}function Zi(n,t){try{return new URL(n,t).href}catch{return n}}function fo(n){let t,e=n;try{e=new URL(n||"./",document.baseURI).pathname}catch{}return async i=>{t??(t=import(new URL(`${n}pagefind/pagefind.js`,document.baseURI).href).catch(u=>{throw t=void 0,u}));let o=i.replace(new RegExp(\'(?<!\\\\S)-?(tag|section):("[^"]*"?|\\\\S*)\',"gi")," ").trim(),s=o?await(await t).search(o):null,r=(s==null?void 0:s.results)??[],a=async(u,h)=>{let m=await u.data(),f=m.url.startsWith(e)?m.url.slice(e.length):m.url.replace(/^\\/+/,""),v=(m.sub_results??[]).map(w=>[w.title,w.url.split("#")[1]??""]).filter(([,w])=>w);return{id:h,title:m.meta.title??f,url:f,section:"",score:r.length-h,fragment:[Cr(m.excerpt),v],sections:v.slice(0,3)}},c=await Promise.all(r.slice(0,10).map(a)),l=Promise.all(r.slice(10,30).map((u,h)=>a(u,h+10)));return l.catch(()=>{}),{results:c,more:l,later:(u,h)=>Promise.all(r.slice(u,u+h).map((m,f)=>a(m,u+f))),total:r.length,highlight:Kt(i).highlight}}}function Cr(n){return new DOMParser().parseFromString(n,"text/html").body.textContent??""}function po(n,t){let e=(n==null?void 0:n.units)??[],i=e.find(p=>p.prefix===t);if(!i)return{};let o=p=>p.product??"",s=p=>{var b;return((b=n==null?void 0:n.products)==null?void 0:b[p])??{versions:n==null?void 0:n.versions,defaultVersion:n==null?void 0:n.defaultVersion}},r=p=>{var b;return(b=s(o(p)).versions)==null?void 0:b.find(x=>x.id===p.version)},a=p=>{var b,x;return((x=(b=n==null?void 0:n.products)==null?void 0:b[p])==null?void 0:x.label)??(p||(n==null?void 0:n.name)||"")},c=p=>{var b;return[o(p)!==o(i)?a(o(p)):"",p.version!==void 0?((b=r(p))==null?void 0:b.label)??p.version:""].filter(Boolean).join(" \\xB7 ")},l=p=>({prefix:p.prefix,product:o(p),label:c(p),own:p===i,versioned:p.version!==void 0}),d=e.filter(p=>p.locale===i.locale),u=s(o(i)),h=(u.versions??[]).map(p=>p.id),m=p=>{var b;return p===i?-2:p.version===u.defaultVersion?-1:(b=r(p))!=null&&b.prerelease?h.length+h.indexOf(p.version):h.indexOf(p.version)},f=d.filter(p=>{var b;return o(p)===o(i)&&p.version!==void 0&&(p===i||!((b=r(p))!=null&&b.hidden))}).sort((p,b)=>m(p)-m(b)),v=[];for(let p of d){let b=o(p);if(v.some(D=>o(D)===b))continue;if(b===o(i)){v.push(i);continue}let x=d.filter(D=>o(D)===b),E=s(b).defaultVersion;v.push(x.find(D=>D.version===E)??x.find(D=>{var S;return!((S=r(D))!=null&&S.hidden)})??x[0])}let w={};return f.length>1&&(w.versions=f.map(l)),v.length>1&&(w.products=v.map(l)),(w.versions||w.products)&&(w.version=[l(i)]),w}var mo=1.5;function go(n,t){var s,r;let e={},i=(s=n.docs[t])==null?void 0:s[3];i!=null&&i.length&&(e.tag=i.map(a=>n.tags[a]).filter(a=>typeof a=="string"));let o=(r=n.docs[t])==null?void 0:r[4];return!o||!n.facets||n.facets.forEach((a,c)=>{let l=o[c];l!=null&&l.length&&(e[a.name]=l.map(d=>a.values[d]).filter(d=>typeof d=="string"))}),e}var Lt=n=>n.trim().toLowerCase();function bo(n,t,e){for(let[i,o]of Object.entries(t)){if(i===e||!o.length)continue;let s=new Set((n[i]??[]).map(Lt));if(!o.some(r=>s.has(Lt(r))))return!1}return!0}function vo(n,t,e){return n.filter(i=>bo(t(i),e))}function yo(n,t,e,i){var s;let o={};for(let r of i){let a={},c=new Map;for(let l of n){let d=t(l);if(!((s=d[r])!=null&&s.length)||!bo(d,e,r))continue;let u=new Set;for(let h of d[r]){if(u.has(Lt(h)))continue;u.add(Lt(h));let m=c.get(Lt(h))??(c.set(Lt(h),h),h);a[m]=(a[m]??0)+1}}for(let l of e[r]??[])c.has(Lt(l))||(a[l]=0);Object.keys(a).length&&(o[r]=a)}return o}function wo(n,t){let e={};for(let i of n.getAll("filter")){let o=i.indexOf(":");if(o<=0)continue;let s=i.slice(0,o),r=i.slice(o+1);!t.includes(s)||!r||(e[s]??(e[s]=[])).some(a=>Lt(a)===Lt(r))||e[s].push(r)}return e}function Lr(n,t,e){var s;if(n.length===0)return"";let i=n.join("/"),o=e==null?void 0:e[i];if(o&&o.length>0)return o;if(n.length===1){let r=(s=t==null?void 0:t[n[0]])==null?void 0:s.label;if(r&&r.length>0)return r}return n[n.length-1]}function xo(n){if(!n)return{};let t={};for(let[e,i]of Object.entries(n)){let o=kr(Object.entries(i).map(([s,r])=>({value:s,count:r})));o.length>0&&(t[e]=o)}return t}function kr(n){return[...n].sort((t,e)=>t.count!==e.count?e.count-t.count:t.value.localeCompare(e.value))}function oe(n,t,e){let i=e==null?void 0:e[n],o=t.split("/").filter(s=>s.length>0);return Lr(o,i==null?void 0:i.prefixes,i==null?void 0:i.labels)}function Eo(n,t){let e=i=>{var s;let o=(s=t==null?void 0:t[i])==null?void 0:s.order;return typeof o=="number"?o:void 0};return[...n].sort((i,o)=>{let s=e(i),r=e(o);return s!==void 0&&r!==void 0?s!==r?s-r:i.localeCompare(o):s!==void 0?-1:r!==void 0?1:i.localeCompare(o)})}function So(n,t,e){let i={...n},o=i[t]??[];if(o.includes(e)){let s=o.filter(r=>r!==e);s.length===0?delete i[t]:i[t]=s}else i[t]=[...o,e];return i}function Ao(n){let t=0;for(let e of Object.values(n))t+=e.length;return t}function Co(n,t,e={}){if(t.length===0)return[];if(t.some(o=>o.value.includes("/"))){let o=e.nav?Or(e.nav,new Set(t.map(s=>s.value))):void 0;return Tr(n,t,e.display,o)}return Rr(n,t,e.nav,e.display)}function Tr(n,t,e,i){let o=new Map,s=[];for(let l of t){let d=l.value.split("/").filter(m=>m.length>0);if(d.length===0)continue;let u="",h=null;for(let m=0;m<d.length;m++){u=u?`${u}/${d[m]}`:d[m];let f=o.get(u);f||(f={value:u,label:oe(n,u,e),count:0,depth:m,hasValue:!1,children:[]},o.set(u,f),h?h.children.push(f):s.push(u)),m===d.length-1&&(f.count=l.count,f.hasValue=!0),h=f}}let r=(l,d)=>{if(i){let u=i.get(l.value),h=i.get(d.value);if(u!==void 0&&h!==void 0&&u!==h)return u-h;if(u!==void 0&&h===void 0)return-1;if(u===void 0&&h!==void 0)return 1}return l.count!==d.count?d.count-l.count:l.value.localeCompare(d.value)},a=l=>{if(l.children.length!==0){l.children.sort(r);for(let d of l.children)a(d)}},c=s.map(l=>o.get(l));c.sort(r);for(let l of c)a(l);return c}function Or(n,t){let e=new Map,i=0,o=s=>{for(let r of s){if(r.href){let a=Lo(r.href);for(let c=0;c<a.length;c++){let l=a[c];if(!t.has(l))continue;let d="";for(let u=c;u<a.length;u++)d=d?`${d}/${a[u]}`:a[u],t.has(d)&&!e.has(d)&&e.set(d,i++);break}}r.children&&r.children.length>0&&o(r.children)}};return o(n),e}function Rr(n,t,e,i){let o=new Map;for(let h of t)o.set(h.value,h);if(!e||e.length===0)return t.map(h=>({value:h.value,label:oe(n,h.value,i),count:h.count,depth:0,hasValue:!0,children:[]}));let s=new Set,r=[],a=new Map,c=h=>{if(h.length===0)return;let m=r,f=a;for(let v=0;v<h.length;v++){let w=h[v],p=f.get(w);if(!p){let x=o.get(w);p={value:w,label:oe(n,w,i),count:x?x.count:0,depth:v,hasValue:x!==void 0,children:[]},m.push(p),f.set(w,p),x&&s.add(w)}let b=l.get(p);b||(b=new Map,l.set(p,b)),m=p.children,f=b}},l=new Map,d=h=>{for(let m of h){if(m.href){let f=Lo(m.href);c(f)}m.children&&m.children.length>0&&d(m.children)}};d(e);let u=[];for(let h of t)s.has(h.value)||u.push({value:h.value,label:oe(n,h.value,i),count:h.count,depth:0,hasValue:!0,children:[]});return u.sort((h,m)=>h.value.localeCompare(m.value)),[...r,...u]}function Lo(n){let t=n;try{/^[a-z]+:\\/\\//i.test(n)&&(t=new URL(n).pathname)}catch{}t=t.split("#")[0].split("?")[0];let e=t.split("/").filter(i=>i.length>0);return e.length<2?[]:e.slice(0,-1)}var Dr=6e4,Mr=30,$e=20,Ir=["version","versions","products"];function To(n){let{signal:t}=n,e=document.getElementById("db-search");if(!e)return;let i=e.querySelector("[data-db-search-input]"),o=e.querySelector("[data-part=\'listbox\']"),s=e.querySelector("[data-db-search-status]"),r=Ro(n,{input:i,list:o,status:s,page:!1});e.addEventListener("db-dialog:open",()=>{i.focus(),i.select(),r.activate()},{signal:t}),document.addEventListener("keydown",a=>{let c=a.target.closest("input, textarea, select, [contenteditable]");if(a.key==="/"&&!c||a.key.toLowerCase()==="k"&&(a.metaKey||a.ctrlKey)){a.preventDefault();let l=document.querySelector("[data-db-search-page] [data-db-search-input]");l&&!e.open?l.focus():e.open?i.focus():e.show()}},{signal:t}),e.addEventListener("click",a=>{a.target.closest("a")&&e.close("api")},{signal:t})}function Oo(n){var d;let t=document.querySelector("[data-db-search-page]");if(!t)return;let e=t.querySelector("[data-db-search-input]"),i=t.querySelector("[data-db-search-list]"),o=t.querySelector("[data-db-search-status]"),s=Nr(),r=s.get("p")||void 0,a=s.get("v")||void 0,c=s.get("scope")??(s.get("q")?"version":void 0),l=Ro(n,{input:e,list:i,status:o,page:!0,params:s,scope:c,forward:r!==void 0||a!==void 0?{product:r,version:a}:void 0});(d=t.querySelector("form"))==null||d.addEventListener("submit",u=>u.preventDefault(),{signal:n.signal}),e.value=s.get("q")??"",l.activate(),e.value.trim()&&l.run()}function Nr(){let n=new URLSearchParams(location.search);if(location.hash.includes("="))for(let[t,e]of new URLSearchParams(location.hash.slice(1)))n.has(t)||n.set(t,e);return n}var ko=()=>!location.search&&location.hash.includes("=");function Ro(n,{input:t,list:e,status:i,page:o,scope:s,forward:r,params:a}){var Nn;let{signal:c}=n,l=i.textContent??"",d=Sn(`${n.unitRoot}_dogsbay/search/`,n.loadScript,window),u=document.body.dataset.search??"builtin",h=location.protocol!=="file:",m=u==="pagefind"||u==="both"&&h?fo(n.unitRoot):void 0,f=u==="pagefind"&&!h,v=n.siteRoot??"",w=n.prefix??"",p={},b="version",x,E=`db-search-scope:${v}`;try{E=`db-search-scope:${new URL(v||"./",document.baseURI).pathname}`}catch{}let D=()=>{let L=window.__DOGSBAY_SITE__;if(r&&L&&S(L)||(r=void 0,m))return;p=po(L,w);let T=s??An(()=>sessionStorage.getItem(E)),k=b;T&&Object.prototype.hasOwnProperty.call(p,T)&&(b=T),dt(),b!==k&&t.value.trim()&&P(++j)},S=L=>{var Q,tt;let T=L.units??[],k=T.find(Y=>Y.prefix===w);if(!k)return!1;let H=r.product??k.product??"",N=T.filter(Y=>Y.locale===k.locale&&(Y.product??"")===H),R=((tt=(Q=L.products)==null?void 0:Q[H])==null?void 0:tt.defaultVersion)??L.defaultVersion,F=r.version!==void 0?N.find(Y=>Y.version===r.version||Y.prefix&&Y.prefix.split("/").pop()===r.version):N.find(Y=>Y===k)??N.find(Y=>Y.version===R)??N[0];if(!F||F.prefix===w||!F.search)return!1;let B=new URLSearchParams(a);B.delete("p"),B.delete("v");let I=B.toString();return location.replace(`${y(F.prefix)}${F.search}${I?ko()?`#${I}`:`?${I}`:""}`),!0},A=()=>x??(x=n.loadScript(`${v}_dogsbay/site.js`).then(D,D)),y=L=>`${v}${L?`${L}/`:""}`,W=new Map([[w,d]]),z=L=>{let T=W.get(L);return T||W.set(L,T=Sn(`${y(L)}_dogsbay/search/`,n.loadScript,window)),T},G=new Map,C=((Nn=o?e.closest("[data-db-search-page]"):e.closest("dialog"))==null?void 0:Nn.querySelector("[data-db-search-facets]"))??void 0,O=(()=>{try{return JSON.parse(e.dataset.facets??"{}")}catch{return{}}})(),q=C?Object.keys(O):[],K=o&&a?wo(a,q):{},_=()=>{r&&A(),f?i.textContent=e.dataset.needsServer??"":m||(d.meta().catch(()=>i.textContent="Search index could not be loaded."),A())},j=0,X,ot;t.addEventListener("input",()=>{clearTimeout(ot),ot=setTimeout(()=>void P(++j),80)},{signal:c});let it=new Map,at=typeof IntersectionObserver=="function"?new IntersectionObserver(L=>{var T;for(let k of L)k.isIntersecting&&((T=it.get(k.target))==null||T(),it.delete(k.target),at.unobserve(k.target))}):void 0,M=L=>{if(!o||r)return;let T=new URLSearchParams;L&&T.set("q",L),b!=="version"&&T.set("scope",b);for(let[N,R]of Object.entries(K))for(let F of R)T.append("filter",`${N}:${F}`);let k=T.toString(),H=ko();An(()=>history.replaceState(history.state,"",`${location.pathname}${k?H?`${location.search}#${k}`:`?${k}`:""}`))},P=async L=>{let T=t.value.trim();if(M(T),!T){at==null||at.disconnect(),it.clear(),$.hidden=!0,C&&(C.hidden=!0),Nt=void 0,e.replaceChildren(),V.hidden=Z.hidden=!0,i.textContent=l;return}if(!f){Nt=void 0;try{if(m){let k=await m(T);if(L!==j)return;if(o){let H=await k.more;if(L!==j)return;Le(T,[...k.results,...H].slice(0,$e),k.highlight,k.total,k.later)}else{Le(T,k.results,k.highlight,k.total);let H=await k.more;L===j&&H.length&&Bo(T,H,k.highlight)}}else if(b!=="version"&&p[b]){let k=Date.now(),H=p[b],N=H.filter(I=>I.own||k-(G.get(I.prefix)??-1/0)>Dr),R=await ho(T,N.map(I=>({data:z(I.prefix),boost:I.own?mo:1,collapse:I.product})));for(let I of R.missing)G.set(N[I].prefix,Date.now());if(L!==j)return;X=R.parsed;let F=R.results.map(I=>{var tt;let Q=N[I.source];return Object.assign(I,{base:y(Q.prefix),from:Q.own?void 0:Q.label,also:(tt=I.others)==null?void 0:tt.map(Y=>N[Y.source].label).filter(Boolean),data:z(Q.prefix)})}),B=R.missing.length+H.length-N.length;await Ce(L,T,F,R.parsed.highlight,B?` \\xB7 ${(e.dataset.unavailable??"{n}").replace("{n}",String(B))}`:"")}else{let k=await uo(T,d);if(L!==j)return;X=k.parsed,await Ce(L,T,k.results,k.parsed.highlight,"")}}catch{if(L!==j)return;i.textContent="Search index could not be loaded.",C&&(C.hidden=!0)}}},$=document.createElement("div");$.setAttribute("role","group"),$.setAttribute("aria-label",e.dataset.filterSection??"Filter by section"),$.className=o?"flex flex-wrap gap-1 pb-3":"flex flex-wrap gap-1 px-3 pb-2",$.hidden=!0,e.before($);let U=document.createElement("div");U.setAttribute("role","group"),U.setAttribute("aria-label",e.dataset.scope??"Search in"),U.className=o?"flex flex-wrap items-center gap-1 pb-3":"flex flex-wrap items-center gap-1 px-3 pb-2",U.hidden=!0,$.before(U);let Z=document.createElement("a");Z.className="mx-3 mb-2 mt-1 block rounded-md px-3 py-2 text-center text-sm font-medium hover:bg-accent",Z.dataset.dbSearchSeeAll="",Z.hidden=!0;let V=document.createElement("button");V.type="button",V.className="mt-4 rounded-md border px-3 py-1.5 text-sm hover:bg-accent",V.textContent=e.dataset.more??"More results",V.hidden=!0,e.after(o?V:Z);let dt=()=>{var k,H;let L=Ir.filter(N=>p[N]),T={version:((H=(k=p.version)==null?void 0:k[0])==null?void 0:H.versioned)===!1?e.dataset.scopeProduct:e.dataset.scopeVersion,versions:e.dataset.scopeVersions,products:e.dataset.scopeProducts};U.replaceChildren(...L.map(N=>{let R=document.createElement("button");return R.type="button",R.dataset.scope=N,R.setAttribute("aria-pressed",String(N===b)),R.className="rounded-md border px-2.5 py-0.5 text-xs hover:bg-accent aria-pressed:bg-primary aria-pressed:text-primary-foreground",R.textContent=T[N]??N,R.addEventListener("click",()=>{var F;b!==N&&(b=N,An(()=>sessionStorage.setItem(E,N)),dt(),(F=U.querySelector(`[data-scope="${N}"]`))==null||F.focus(),t.value.trim()?P(++j):M(""))},{signal:c}),R})),U.hidden=L.length<2};c==null||c.addEventListener("abort",()=>{clearTimeout(ot),j++,at==null||at.disconnect(),it.clear(),$.remove(),U.remove(),Z.remove(),V.remove()});let kt=L=>L.replace(/"/g,""),de=L=>`section:"${kt(L)}"`,pt,ue=(L,T)=>{let k=new Map;for(let F of T)F.section&&k.set(F.section,(k.get(F.section)??0)+1);let H=[...L.matchAll(/section:"([^"]*)"/gi)].map(F=>F[1].toLowerCase()),N=F=>H.includes(kt(F).toLowerCase()),R=[...k].sort((F,B)=>B[1]-F[1]).slice(0,6).map(([F])=>F);for(let F of H)R.some(B=>kt(B).toLowerCase()===F)||R.push(F);$.replaceChildren(...R.length>1||H.length?R.map(F=>{let B=document.createElement("button");B.type="button";let I=N(F);return B.setAttribute("aria-pressed",String(I)),B.className="rounded-full border px-2.5 py-0.5 text-xs hover:bg-accent aria-pressed:bg-primary aria-pressed:text-primary-foreground",B.textContent=F,B.addEventListener("click",()=>{let Q=de(F),tt=t.value.replace(new RegExp(`\\\\s*section:"${kt(F).replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&")}"`,"i"),"").trim();t.value=I?tt:`${tt} ${Q}`.trim(),pt=F,t.dispatchEvent(new Event("input",{bubbles:!0}))},{signal:c}),B}):[]),$.hidden=!$.childElementCount,pt!==void 0&&(([...$.querySelectorAll("button")].find(B=>B.textContent===pt)??t).focus(),pt=void 0)},Nt,Ce=async(L,T,k,H,N)=>{if(!q.length){Le(T,k,H,k.length),i.textContent+=N;return}let R=new Map;for(let B of k){let I=B.data??d;R.has(I)||R.set(I,await I.meta())}if(L!==j)return;let F=new Map(k.map(B=>[B,go(R.get(B.data??d),B.id)]));Nt={q:T,results:k,terms:H,note:N,valuesOf:B=>F.get(B)??{}},Ht()},Ht=()=>{if(!Nt)return;let{q:L,results:T,terms:k,note:H,valuesOf:N}=Nt,R=vo(T,N,K);Ge(yo(T,N,K,q)),Le(L,R,k,R.length),i.textContent+=H},Tt,Ge=L=>{var F,B;if(!C)return;let T=Eo(Object.keys(L),O);if(C.hidden=!T.length,!T.length)return C.replaceChildren();let k=(I,Q,tt,Y)=>{let J=document.createElement("label");J.className="flex cursor-pointer items-center gap-2 rounded-md px-2 py-1 hover:bg-accent";let ct=document.createElement("input");ct.type="checkbox",ct.dataset.facetName=I,ct.dataset.facetValue=Q,ct.checked=(K[I]??[]).some(jo=>jo.toLowerCase()===Q.toLowerCase()),ct.className="size-3.5 rounded border-border accent-primary";let xt=document.createElement("span");xt.className="flex-1 truncate",xt.textContent=tt;let Qe=document.createElement("span");return Qe.className="text-xs text-muted-foreground",Qe.textContent=String(Y),J.append(ct,xt,Qe),J},H=(I,Q)=>{let tt=document.createElement("ul");tt.className="space-y-0.5";for(let Y of Q){let J=document.createElement("li");if(Y.hasValue)J.append(k(I,Y.value,Y.label,Y.count));else{let ct=document.createElement("span");ct.className="block px-2 py-1 text-muted-foreground",ct.textContent=Y.label,J.append(ct)}if(Y.children.length){let ct=H(I,Y.children);ct.classList.add("ml-4"),J.append(ct)}tt.append(J)}return tt},N=[],R=Ao(K);if(R){let I=document.createElement("button");I.type="button",I.dataset.clearFilters="",I.className="mb-3 w-full rounded-md border border-border px-2 py-1 text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",I.textContent=(e.dataset.facetsClear??"Clear all ({n})").replace("{n}",String(R)),N.push(I)}for(let I of T){let Q=xo({[I]:L[I]})[I]??[],tt=document.createElement("fieldset");tt.className="mb-3";let Y=document.createElement("legend");if(Y.className="mb-1 text-xs font-semibold uppercase tracking-wide text-muted-foreground",Y.textContent=((F=O[I])==null?void 0:F.title)??I,tt.append(Y),(B=O[I])!=null&&B.hierarchical||Q.some(J=>J.value.includes("/")))tt.append(H(I,Co(I,Q,{display:O})));else{let J=document.createElement("ul");J.className="space-y-0.5";for(let ct of Q){let xt=document.createElement("li");xt.append(k(I,ct.value,oe(I,ct.value,O),ct.count)),J.append(xt)}tt.append(J)}N.push(tt)}C.replaceChildren(...N),Tt!==void 0&&(((Tt?[...C.querySelectorAll("input[data-facet-name]")].find(Q=>`${Q.dataset.facetName}\\0${Q.dataset.facetValue}`===Tt):C.querySelector("[data-clear-filters]"))??t).focus(),Tt=void 0)};C==null||C.addEventListener("change",L=>{let T=L.target;if(!T.dataset.facetName)return;let k=T.dataset.facetName,H=T.dataset.facetValue,N=(K[k]??[]).find(R=>R.toLowerCase()===H.toLowerCase());K=So(K,k,N??H),Tt=`${k}\\0${H}`,M(t.value.trim()),Ht()},{signal:c}),C==null||C.addEventListener("click",L=>{L.target.closest("[data-clear-filters]")&&(K={},Tt="",M(t.value.trim()),Ht())},{signal:c});let ht,Le=(L,T,k,H,N)=>{at==null||at.disconnect(),it.clear(),ue(L,T);let R=T.slice(0,o?$e:Mr);if(ht={q:L,results:T,terms:k,shown:R.length,total:H,later:N},e.replaceChildren(...Ze(L,R,k)),i.textContent=H?`${H} result${H===1?"":"s"}`:`${e.dataset.noResults} \\u201C${L}\\u201D`,V.hidden=!o||!Mn(),Z.hidden=o||!H||!e.dataset.searchPage,!Z.hidden){let F=new URLSearchParams({q:L});b!=="version"&&F.set("scope",b);for(let[B,I]of Object.entries(K))for(let Q of I)F.append("filter",`${B}:${Q}`);Z.href=`${e.dataset.searchPage}?${F}`,Z.textContent=(e.dataset.seeAll??"See all {n} results").replace("{n}",String(H))}},Bo=(L,T,k)=>e.append(...Ze(L,T,k)),Mn=()=>!!ht&&(ht.results.length>ht.shown||!!ht.later&&ht.shown<ht.total);V.addEventListener("click",async()=>{var H,N;let L=ht;if(!L)return;let T=L.results.slice(L.shown,L.shown+$e);if(!T.length&&L.later){if(T=await L.later(L.shown,$e).catch(()=>[]),L!==ht)return;L.results.push(...T)}let k=Ze(L.q,T,L.terms);e.append(...k),L.shown+=T.length,V.hidden=!T.length||!Mn(),(N=(H=k[0])==null?void 0:H.querySelector("a"))==null||N.focus()},{signal:c});let Ze=(L,T,k)=>{var N;let H=[];for(let R of T){let F=R.base??n.unitRoot,B=In(F,R.url,k,"block rounded-md p-3 hover:bg-accent"),I=document.createElement("div");I.className="font-medium",I.append(...Cn(R.title,k)),B.a.appendChild(I);let Q=[R.from,R.section].filter(Boolean).join(" \\xB7 ");if(Q){let J=document.createElement("div");J.className="text-xs text-muted-foreground",J.textContent=Q,B.a.appendChild(J)}let tt=document.createElement("div");if(tt.className="mt-1 line-clamp-2 text-xs text-muted-foreground",B.a.appendChild(tt),(N=R.also)!=null&&N.length){let J=document.createElement("div");J.className="mt-1 text-xs text-muted-foreground",J.textContent=`${e.dataset.alsoIn??"Also in"} ${R.also.join(", ")}`,B.a.appendChild(J)}H.push(B.li);let Y=()=>R.fragment?(R.fragment[0]&&tt.replaceChildren(...Cn(R.fragment[0],k)),(R.sections??[]).map(([J,ct])=>{let xt=In(F,`${R.url}#${ct}`,k,"ml-4 block rounded-md border-l px-3 py-1.5 text-sm hover:bg-accent");return xt.a.append(...Cn(J,k)),xt.li})):[];if(R.fragment)H.push(...Y());else if(at){let J=X??Kt(L);it.set(B.li,()=>void lo(J,[R],R.data??d).then(()=>B.li.after(...Y()),()=>{})),at.observe(B.li)}}return H},In=(L,T,k,H)=>{let N=document.createElement("li");o||N.setAttribute("role","none"),N.className="mb-1";let R=document.createElement("a");return o||(R.setAttribute("data-part","option"),R.dataset.value=T,R.tabIndex=-1),R.href=Hr(L+T,k),R.className=H,N.appendChild(R),{li:N,a:R}};return{activate:_,run:()=>void P(++j)}}function An(n){try{return n()}catch{return}}function Hr(n,t){if(!t.length)return n;let e=n.indexOf("#"),[i,o]=e<0?[n,""]:[n.slice(0,e),n.slice(e)];return`${i}${i.includes("?")?"&":"?"}h=${encodeURIComponent(t.join(" "))}${o}`}function Cn(n,t){if(!t.length)return[document.createTextNode(n)];let e=new RegExp(`(${t.map(i=>i.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&")).join("|")})`,"gi");return n.split(e).map((i,o)=>{if(o%2===0)return document.createTextNode(i);let s=document.createElement("mark");return s.textContent=i,s})}var Do=/[\\p{Script=Han}\\p{Script=Hiragana}\\p{Script=Katakana}\\p{Script=Hangul}]/u;function Mo(n){var v;let t;try{t=(new URLSearchParams(location.search).get("h")??"").split(/\\s+/).filter(w=>w.length>0)}catch{return}let e=document.querySelector("#db-content article")??document.querySelector("#db-content");if(!t.length||!e)return;let i=w=>w.replace(/[.*+?^${}()|[\\]\\\\]/g,"\\\\$&"),o=[...t].sort((w,p)=>p.length-w.length),s=o.filter(w=>Do.test(w)).map(i),r=o.filter(w=>!Do.test(w)).map(i),a=[r.length?`(?<![\\\\p{L}\\\\p{N}])(?:${r.join("|")})`:"",s.length?`(?:${s.join("|")})`:""].filter(Boolean),c=new RegExp(`(${a.join("|")})`,"giu"),l=[],d=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:w=>{var p;return(p=w.parentElement)!=null&&p.closest("script, style, mark, button, [aria-hidden=\'true\']")?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}}),u=[];for(let w=d.nextNode();w;w=d.nextNode())u.push(w);for(let w of u){if(l.length>=500)break;let p=w.data;if(c.lastIndex=0,!c.test(p))continue;c.lastIndex=0;let b=document.createDocumentFragment(),x=0;for(let E of p.matchAll(c)){b.append(p.slice(x,E.index));let D=document.createElement("mark");D.className="db-search-hl",D.textContent=E[0],b.append(D),l.push(D),x=E.index+E[0].length}b.append(p.slice(x)),w.replaceWith(b)}if(Pr(),!l.length)return;let h=((v=document.querySelector("[data-clear-highlights]"))==null?void 0:v.dataset.clearHighlights)??"Clear highlights",m=document.createElement("div");m.className="not-prose mb-4";let f=document.createElement("button");f.type="button",f.className="inline-flex h-8 items-center rounded-md border px-3 text-sm hover:bg-accent",f.textContent=h,f.addEventListener("click",()=>{var w;for(let p of l)p.replaceWith(document.createTextNode(p.textContent??""));e.normalize(),m.remove(),(w=document.getElementById("db-content"))==null||w.focus({preventScroll:!0})},{signal:n}),m.append(f),e.prepend(m),location.hash||l[0].scrollIntoView({block:"center"})}function Pr(){try{let n=new URL(location.href);n.searchParams.delete("h"),history.replaceState(history.state,"",n.toString())}catch{}}var Vt=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},qe=function(t){return t.tagName==="IMG"},Fr=function(t){return NodeList.prototype.isPrototypeOf(t)},Be=function(t){return t&&t.nodeType===1},Io=function(t){var e=t.currentSrc||t.src;return e.substr(-4).toLowerCase()===".svg"},No=function(t){try{return Array.isArray(t)?t.filter(qe):Fr(t)?[].slice.call(t).filter(qe):Be(t)?[t].filter(qe):typeof t=="string"?[].slice.call(document.querySelectorAll(t)).filter(qe):[]}catch{throw new TypeError(`The provided selector is invalid.\nExpects a CSS selector, a Node element, a NodeList or an array.\nSee: https://github.com/francoischalifour/medium-zoom`)}},_r=function(t){var e=document.createElement("div");return e.classList.add("medium-zoom-overlay"),e.style.background=t,e},zr=function(t){var e=t.getBoundingClientRect(),i=e.top,o=e.left,s=e.width,r=e.height,a=t.cloneNode(),c=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,l=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return a.removeAttribute("id"),a.style.position="absolute",a.style.top=i+c+"px",a.style.left=o+l+"px",a.style.width=s+"px",a.style.height=r+"px",a.style.transform="",a},se=function(t,e){var i=Vt({bubbles:!1,cancelable:!1,detail:void 0},e);if(typeof window.CustomEvent=="function")return new CustomEvent(t,i);var o=document.createEvent("CustomEvent");return o.initCustomEvent(t,i.bubbles,i.cancelable,i.detail),o},$r=function n(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=window.Promise||function(C){function O(){}C(O,O)},o=function(C){var O=C.target;if(O===W){f();return}x.indexOf(O)!==-1&&v({target:O})},s=function(){if(!(D||!y.original)){var C=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;Math.abs(S-C)>A.scrollOffset&&setTimeout(f,150)}},r=function(C){var O=C.key||C.keyCode;(O==="Escape"||O==="Esc"||O===27)&&f()},a=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=C;if(C.background&&(W.style.background=C.background),C.container&&C.container instanceof Object&&(O.container=Vt({},A.container,C.container)),C.template){var q=Be(C.template)?C.template:document.querySelector(C.template);O.template=q}return A=Vt({},A,O),x.forEach(function(K){K.dispatchEvent(se("medium-zoom:update",{detail:{zoom:z}}))}),z},c=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return n(Vt({},A,C))},l=function(){for(var C=arguments.length,O=Array(C),q=0;q<C;q++)O[q]=arguments[q];var K=O.reduce(function(_,j){return[].concat(_,No(j))},[]);return K.filter(function(_){return x.indexOf(_)===-1}).forEach(function(_){x.push(_),_.classList.add("medium-zoom-image")}),E.forEach(function(_){var j=_.type,X=_.listener,ot=_.options;K.forEach(function(it){it.addEventListener(j,X,ot)})}),z},d=function(){for(var C=arguments.length,O=Array(C),q=0;q<C;q++)O[q]=arguments[q];y.zoomed&&f();var K=O.length>0?O.reduce(function(_,j){return[].concat(_,No(j))},[]):x;return K.forEach(function(_){_.classList.remove("medium-zoom-image"),_.dispatchEvent(se("medium-zoom:detach",{detail:{zoom:z}}))}),x=x.filter(function(_){return K.indexOf(_)===-1}),z},u=function(C,O){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return x.forEach(function(K){K.addEventListener("medium-zoom:"+C,O,q)}),E.push({type:"medium-zoom:"+C,listener:O,options:q}),z},h=function(C,O){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return x.forEach(function(K){K.removeEventListener("medium-zoom:"+C,O,q)}),E=E.filter(function(K){return!(K.type==="medium-zoom:"+C&&K.listener.toString()===O.toString())}),z},m=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=C.target,q=function(){var _={width:document.documentElement.clientWidth,height:document.documentElement.clientHeight,left:0,top:0,right:0,bottom:0},j=void 0,X=void 0;if(A.container)if(A.container instanceof Object)_=Vt({},_,A.container),j=_.width-_.left-_.right-A.margin*2,X=_.height-_.top-_.bottom-A.margin*2;else{var ot=Be(A.container)?A.container:document.querySelector(A.container),it=ot.getBoundingClientRect(),at=it.width,M=it.height,P=it.left,$=it.top;_=Vt({},_,{width:at,height:M,left:P,top:$})}j=j||_.width-A.margin*2,X=X||_.height-A.margin*2;var U=y.zoomedHd||y.original,Z=Io(U)?j:U.naturalWidth||j,V=Io(U)?X:U.naturalHeight||X,dt=U.getBoundingClientRect(),kt=dt.top,de=dt.left,pt=dt.width,ue=dt.height,Nt=Math.min(Math.max(pt,Z),j)/pt,Ce=Math.min(Math.max(ue,V),X)/ue,Ht=Math.min(Nt,Ce),Tt=(-de+(j-pt)/2+A.margin+_.left)/Ht,Ge=(-kt+(X-ue)/2+A.margin+_.top)/Ht,ht="scale("+Ht+") translate3d("+Tt+"px, "+Ge+"px, 0)";y.zoomed.style.transform=ht,y.zoomedHd&&(y.zoomedHd.style.transform=ht)};return new i(function(K){if(O&&x.indexOf(O)===-1){K(z);return}var _=function at(){D=!1,y.zoomed.removeEventListener("transitionend",at),y.original.dispatchEvent(se("medium-zoom:opened",{detail:{zoom:z}})),K(z)};if(y.zoomed){K(z);return}if(O)y.original=O;else if(x.length>0){var j=x;y.original=j[0]}else{K(z);return}if(y.original.dispatchEvent(se("medium-zoom:open",{detail:{zoom:z}})),S=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,D=!0,y.zoomed=zr(y.original),document.body.appendChild(W),A.template){var X=Be(A.template)?A.template:document.querySelector(A.template);y.template=document.createElement("div"),y.template.appendChild(X.content.cloneNode(!0)),document.body.appendChild(y.template)}if(y.original.parentElement&&y.original.parentElement.tagName==="PICTURE"&&y.original.currentSrc&&(y.zoomed.src=y.original.currentSrc),document.body.appendChild(y.zoomed),window.requestAnimationFrame(function(){document.body.classList.add("medium-zoom--opened")}),y.original.classList.add("medium-zoom-image--hidden"),y.zoomed.classList.add("medium-zoom-image--opened"),y.zoomed.addEventListener("click",f),y.zoomed.addEventListener("transitionend",_),y.original.getAttribute("data-zoom-src")){y.zoomedHd=y.zoomed.cloneNode(),y.zoomedHd.removeAttribute("srcset"),y.zoomedHd.removeAttribute("sizes"),y.zoomedHd.removeAttribute("loading"),y.zoomedHd.src=y.zoomed.getAttribute("data-zoom-src"),y.zoomedHd.onerror=function(){clearInterval(ot),console.warn("Unable to reach the zoom image target "+y.zoomedHd.src),y.zoomedHd=null,q()};var ot=setInterval(function(){y.zoomedHd.complete&&(clearInterval(ot),y.zoomedHd.classList.add("medium-zoom-image--opened"),y.zoomedHd.addEventListener("click",f),document.body.appendChild(y.zoomedHd),q())},10)}else if(y.original.hasAttribute("srcset")){y.zoomedHd=y.zoomed.cloneNode(),y.zoomedHd.removeAttribute("sizes"),y.zoomedHd.removeAttribute("loading");var it=y.zoomedHd.addEventListener("load",function(){y.zoomedHd.removeEventListener("load",it),y.zoomedHd.classList.add("medium-zoom-image--opened"),y.zoomedHd.addEventListener("click",f),document.body.appendChild(y.zoomedHd),q()})}else q()})},f=function(){return new i(function(C){if(D||!y.original){C(z);return}var O=function q(){y.original.classList.remove("medium-zoom-image--hidden"),document.body.removeChild(y.zoomed),y.zoomedHd&&document.body.removeChild(y.zoomedHd),document.body.removeChild(W),y.zoomed.classList.remove("medium-zoom-image--opened"),y.template&&document.body.removeChild(y.template),D=!1,y.zoomed.removeEventListener("transitionend",q),y.original.dispatchEvent(se("medium-zoom:closed",{detail:{zoom:z}})),y.original=null,y.zoomed=null,y.zoomedHd=null,y.template=null,C(z)};D=!0,document.body.classList.remove("medium-zoom--opened"),y.zoomed.style.transform="",y.zoomedHd&&(y.zoomedHd.style.transform=""),y.template&&(y.template.style.transition="opacity 150ms",y.template.style.opacity=0),y.original.dispatchEvent(se("medium-zoom:close",{detail:{zoom:z}})),y.zoomed.addEventListener("transitionend",O)})},v=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=C.target;return y.original?f():m({target:O})},w=function(){return A},p=function(){return x},b=function(){return y.original},x=[],E=[],D=!1,S=0,A=e,y={original:null,zoomed:null,zoomedHd:null,template:null};Object.prototype.toString.call(t)==="[object Object]"?A=t:(t||typeof t=="string")&&l(t),A=Vt({margin:0,background:"#fff",scrollOffset:40,container:null,template:null},A);var W=_r(A.background);document.addEventListener("click",o),document.addEventListener("keyup",r),document.addEventListener("scroll",s),window.addEventListener("resize",f);var z={open:m,close:f,toggle:v,update:a,clone:c,attach:l,detach:d,on:u,off:h,getOptions:w,getImages:p,getZoomedImage:b};return z};function qr(n,t){t===void 0&&(t={});var e=t.insertAt;if(!(!n||typeof document>"u")){var i=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",e==="top"&&i.firstChild?i.insertBefore(o,i.firstChild):i.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}}var Br=".medium-zoom-overlay{position:fixed;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .3s;will-change:opacity}.medium-zoom--opened .medium-zoom-overlay{cursor:pointer;cursor:zoom-out;opacity:1}.medium-zoom-image{cursor:pointer;cursor:zoom-in;transition:transform .3s cubic-bezier(.2,0,.2,1)!important}.medium-zoom-image--hidden{visibility:hidden}.medium-zoom-image--opened{position:relative;cursor:pointer;cursor:zoom-out;will-change:transform}";qr(Br);var Ho=$r;var jr;function Po(n){let t=document.body.dataset.imageZoom;if(!t)return;let e;try{e=JSON.parse(t)}catch{return}let i=[...document.querySelectorAll(\'img[data-zoomable="true"]\')];if(!i.length)return;let o=jr??(jr=Ho());o.update(e),o.attach(...i),n==null||n.addEventListener("abort",()=>{o.close(),o.detach(...i)});let s={signal:n},r=!1,a=c=>c.key==="Enter"||c.key===" ";for(let c of i)c.alt&&(c.tabIndex=0,c.addEventListener("keydown",l=>{a(l)&&(l.preventDefault(),r=!0,o.open({target:c}))},s),c.addEventListener("medium-zoom:opened",()=>{let l=document.querySelector(".medium-zoom-image--opened");!r||!l||(l.tabIndex=-1,l.addEventListener("keydown",d=>{a(d)&&(d.preventDefault(),o.close())}),l.focus())},s),c.addEventListener("medium-zoom:closed",()=>{r&&c.focus(),r=!1},s))}var Kr=new Set(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"]),Vr=new Set(["script","style","textarea","title","noscript","template","xmp"]),Ur=new Set(["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"]),Wr=new Set(["nav","aside","header","footer","figure","table","details","blockquote","form","button","svg","math","dialog"]),Yr=new Set(["svg","math","button","select","img"]),Fo=Object.assign(Object.create(null),{amp:"&",lt:"<",gt:">",quot:\'"\',apos:"\'",nbsp:"\\xA0",hellip:"\\u2026",mdash:"\\u2014",ndash:"\\u2013",lsquo:"\\u2018",rsquo:"\\u2019",ldquo:"\\u201C",rdquo:"\\u201D",laquo:"\\xAB",raquo:"\\xBB",copy:"\\xA9",reg:"\\xAE",trade:"\\u2122",middot:"\\xB7",times:"\\xD7",para:"\\xB6",sect:"\\xA7",deg:"\\xB0",rarr:"\\u2192",larr:"\\u2190",bull:"\\u2022",shy:""});function Tn(n){return n.includes("&")?n.replace(/&(#[xX][0-9a-fA-F]{1,6}|#\\d{1,7}|[a-zA-Z]{2,8});/g,(t,e)=>{if(e[0]!=="#")return Fo[e]??Fo[e.toLowerCase()]??t;let i=e[1]==="x"||e[1]==="X"?Number.parseInt(e.slice(2),16):Number.parseInt(e.slice(1),10);return i>0&&i<=1114111&&!(i>=55296&&i<=57343)?String.fromCodePoint(i):"\\uFFFD"}):n}var _o=n=>n>" "&&n!==">"&&n!=="/"&&n!=="="&&n!==\'"\'&&n!=="\'";function Xr(n){let t={tag:"#root",attrs:{},children:[],start:0,end:0},e=n.toLowerCase(),i=t,o=0,s=0,r=1,a=new Map,c=u=>{u>s&&i.children.push(n.slice(s,u))},l=()=>{i.end=r,a.set(i.tag,a.get(i.tag)-1),i=i.parent},d=u=>{if(a.get(u))for(;i!==t;){let h=i.tag===u;if(l(),h)return}};for(;o<n.length;){let u=n.indexOf("<",o);if(u<0)break;let h=n[u+1]??"";if(n.startsWith("<!--",u)){c(u);let E=n.startsWith("<!-->",u)?5:n.startsWith("<!--->",u)?6:0,D=E?u:n.indexOf("-->",u+4);o=s=E?u+E:D<0?n.length:D+3;continue}if(h==="!"||h==="?"){c(u);let E=n.indexOf(">",u);o=s=E<0?n.length:E+1;continue}let m=h==="/",f=u+(m?2:1);if(!/[a-zA-Z]/.test(n[f]??"")){o=u+1;continue}let v=f;for(;f<n.length&&_o(n[f]);)f++;let w=e.slice(v,f),p={},b=!1;for(;f<n.length&&n[f]!==">";){let E=n[f];if(E==="/"){b=!0,f++;continue}if(E<=" "){f++;continue}b=!1;let D=f;for(;f<n.length&&(_o(n[f])||n[f]===\'"\'||n[f]==="\'")&&n[f]!=="=";)f++;let S=e.slice(D,f);for(;f<n.length&&n[f]<=" ";)f++;let A="";if(n[f]==="="){for(f++;f<n.length&&n[f]<=" ";)f++;let y=n[f];if(y===\'"\'||y==="\'"){let W=n.indexOf(y,f+1);A=n.slice(f+1,W<0?n.length:W),f=W<0?n.length:W+1}else{let W=f;for(;f<n.length&&n[f]>" "&&n[f]!==">";)f++;A=n.slice(W,f)}}S&&!(S in p)&&(p[S]=Tn(A)),f===D&&f++}if(f>=n.length){c(u),s=n.length;break}if(c(u),o=s=f+1,m){d(w);continue}Ur.has(w)&&d("p");let x={tag:w,attrs:p,children:[],parent:i,start:r++,end:0};if(x.excl=Wr.has(w)||On(x)||"data-pagefind-ignore"in p?x:i.excl,i.children.push(x),Vr.has(w)){let E=e.indexOf(`</${w}`,o),D=E<0?n.length:E;w==="title"&&x.children.push(n.slice(o,D));let S=E<0?-1:n.indexOf(">",E);o=s=S<0?n.length:S+1,x.end=r;continue}!Kr.has(w)&&!b?(i=x,a.set(w,(a.get(w)??0)+1)):x.end=r}for(c(n.length);i!==t;)l();return t.end=r,t}function*re(n){let t=[...n.children].reverse();for(;t.length;){let e=t.pop();if(typeof e!="string"){yield e;for(let i=e.children.length-1;i>=0;i--)t.push(e.children[i])}}}var On=n=>n.attrs["aria-hidden"]==="true"||"hidden"in n.attrs||n.tag==="template";function Wt(n,t){let e="",i=[n];for(;i.length;){let o=i.pop();if(typeof o=="string"){e+=Tn(o);continue}if(!(o!==n&&(On(o)||Yr.has(o.tag)||o.tag==="script"||o.tag==="style"||t!=null&&t(o)))){o.tag==="br"&&(e+=" ");for(let s=o.children.length-1;s>=0;s--)i.push(o.children[s])}}return e.replace(/[\\s\xA0]+/g," ").trim()}var Gr=600;function Zr(n){for(let t=n.parent,e=0;t&&e<4;t=t.parent,e++)if(t.attrs.role==="doc-endnotes"||"data-footnotes"in t.attrs||/(?:^|\\s)footnotes(?:\\s|$)/.test(t.attrs.class??""))return!0;return!1}function Qr(n){return Wt(n,t=>t.tag==="a"&&(t.attrs.role==="doc-backlink"||t.children.length===1&&typeof t.children[0]=="string"&&/^\\s*\u21A9\\uFE0E?\\s*$/.test(Tn(t.children[0]))))}var Ln=(n,t)=>n.start<=t.start&&t.end<=n.end;function Jr(n,t){var i;let e=(i=n.parent)==null?void 0:i.excl;return!e||Ln(e,t)}var kn=/^h([1-6])$/,ta=120;function Ke(n,t=200){if(n.length<=t)return n;let e=n.slice(0,t),i=e.lastIndexOf(" ");return`${(i>t*.6?e.slice(0,i):e).replace(/[\\s,;:.\u2013\u2014-]+$/,"")}\\u2026`}var Ve=n=>Ke(n,ta),ea=new Set(["p","li","dd","dt","td","th","blockquote","figcaption","caption","summary","pre"]);function je(n,t,e){for(let i of n){if(e!=null&&e(i))break;if(i.tag!=="p"||!Jr(i,t)||On(i))continue;let o=Wt(i);if(o)return Ke(o)}return""}function Ut(n,t){for(let e of re(n))if(t(e))return e}function na(n){let t=n.attrs["data-title"]??n.attrs["aria-label"]??n.attrs.title;if(t!=null&&t.trim())return Ve(t.replace(/\\s+/g," ").trim());let e=Ut(n,i=>i.tag==="figcaption"||i.tag==="caption"||i.tag==="summary"||"data-card-title"in i.attrs||"data-title"in i.attrs||kn.test(i.tag))??oa(n);return e?Ve(Wt(e)):""}var ia=n=>"data-component"in n.attrs||"data-type"in n.attrs||n.attrs.role==="note"||n.tag==="details"||n.tag==="figure"||n.tag.startsWith("db-");function oa(n){let t=new Set;for(let e of re(n)){if(e===n)continue;let i=e.parent;if(i&&i!==n&&(t.has(i)||ia(i))){t.add(e);continue}if(e.attrs["data-part"]==="title")return e}}var sa=n=>{var t;return n.tag==="meta"&&((t=n.attrs["http-equiv"])==null?void 0:t.trim().toLowerCase())==="refresh"&&/[;,]\\s*url\\s*=/i.test(n.attrs.content??"")};function zo(n,t){var m;let e=Xr(n);if(Ut(e,sa))return;let i=Ut(e,f=>f.tag==="main")??e,o=Ut(i,f=>f.tag==="article"&&/(?:^|\\s)docs-prose(?:\\s|$)/.test(f.attrs.class??""))??i,s=Ut(i,f=>f.tag==="h1"),r=Ut(e,f=>f.tag==="title"),a=Ve(s&&Wt(s)||(r?Wt(r).split(" | ")[0].trim():"")),c=t==null?void 0:t.replace(/^#/,"");if(!c||c==="top"){let f=[...re(o)],v=s?f.indexOf(s)+1:0;return{title:a,excerpt:je(f.slice(Math.max(0,v)),o),kind:"page"}}let l=Ut(e,f=>f.attrs.id===c);if(!l)return;let d=(m=kn.exec(l.tag))==null?void 0:m[1];if(d==="1")return{title:a,excerpt:je(re(o),o),kind:"page"};if(d){let f=l.parent??e,v=[...re(f)],w=v.slice(v.indexOf(l)+1).filter(b=>!Ln(l,b)),p=Ln(o,l)?o:i;return{title:a,label:Ve(Wt(l)),excerpt:je(w,p,b=>{let x=kn.exec(b.tag);return!!x&&Number(x[1])<=Number(d)}),kind:"heading"}}if(l.tag==="li"&&Zr(l)){let f=Qr(l);return f?{title:"",excerpt:Ke(f,Gr),kind:"footnote"}:void 0}let u=je(re(l),l),h=!u&&ea.has(l.tag)?Ke(Wt(l)):"";return{title:a,label:na(l),excerpt:u||h,kind:"target"}}var ra="dogsbay:link-preview-load",ae=[".db-link-preview{position:fixed;z-index:60;box-sizing:border-box;max-width:min(22rem,calc(100vw - 16px));max-height:min(16rem,calc(100vh - 16px));overflow:hidden;padding:.75rem .875rem;","border:1px solid var(--border,#e4e4e7);border-radius:var(--radius,.5rem);background:var(--popover,#fff);color:var(--popover-foreground,#18181b);","box-shadow:0 8px 24px rgb(0 0 0/.14);font-size:.875rem;line-height:1.45;text-align:start}",".db-link-preview[hidden]{display:none}",".db-link-preview-title{margin:0;font-weight:600}",".db-link-preview-label{font-weight:500}",".db-link-preview-excerpt{margin:.375rem 0 0;color:var(--muted-foreground,#52525b)}",".db-link-preview[data-kind=footnote] .db-link-preview-excerpt{margin:0;color:inherit}","@media (prefers-reduced-motion:no-preference){.db-link-preview:not([hidden]){animation:db-link-preview-in .12s ease-out}}","@keyframes db-link-preview-in{from{opacity:0;transform:translateY(2px)}}"].join(""),Se="db-link-preview",aa="nav:not(.related-resources), aside, header, footer, h1, h2, h3, h4, h5, h6, [data-no-link-preview], [data-card], db-card, db-link-button",ca="div, p, h1, h2, h3, h4, h5, h6, img, svg, picture, figure, ul, ol, table",la=/\\.(?:pdf|zip|gz|tgz|tar|bz2|xz|7z|rar|png|jpe?g|gif|svg|webp|avif|ico|bmp|tiff?|mp[34]|m4a|webm|ogg|wav|mov|avi|json|xml|csv|tsv|txt|ya?ml|md|epub|docx?|xlsx?|pptx?|odt|ods|exe|msi|dmg|pkg|deb|rpm|apk|iso|bin|wasm|js|mjs|css|map|woff2?|ttf|otf)$/i,da=8e6,ce;async function $o(n,t=!1){let e=new URL(location.origin),[i="/",o=""]=n.split("?");if(e.pathname=i,e.search=o,e.origin!==location.origin)return;let s=await fetch(e.href,{credentials:"same-origin",redirect:"manual",headers:{Accept:"text/html"}});if(s.type==="opaqueredirect"||s.status>=300&&s.status<400)return!t&&!i.endsWith("/")?$o(`${i}/${o?`?${o}`:""}`,!0):void 0;if(!(!s.ok||!/html/i.test(s.headers.get("content-type")??"text/html")))return s.text()}function ua(n,t="article.docs-prose",e=location){if(!n.closest(t)||n.closest(aa)||n.hasAttribute("download")||n.getAttribute("aria-hidden")==="true"||n.hasAttribute("data-variant")||n.querySelector(ca))return;let i=n.getAttribute("href");if(!i)return;let o;try{o=new URL(i,e.href)}catch{return}let s=o.protocol==="http:"||o.protocol==="https:",r=o.protocol===e.protocol&&o.host!==""&&o.host===e.host;if(!(s?o.origin===e.origin:r)||la.test(o.pathname))return;let a;try{a=o.hash?decodeURIComponent(o.hash.slice(1)):void 0}catch{a=o.hash.slice(1)}if(!(o.pathname===e.pathname&&o.search===e.search&&(!a||a==="top")))return o.hash="",{url:o,...a?{id:a}:{}}}function ha(){var e;let n=document;if(n.dbLinkPreviewCss===ae||n.dbLinkPreviewCss===void 0&&((e=document.getElementById(`${Se}-style`))==null?void 0:e.textContent)===ae)return;try{let i=new CSSStyleSheet;i.replaceSync(ae),document.adoptedStyleSheets=[...document.adoptedStyleSheets,i],n.dbLinkPreviewSheet=!0,n.dbLinkPreviewCss=ae;return}catch{}let t=document.createElement("style");t.id=`${Se}-style`,t.textContent=ae,document.head.append(t),n.dbLinkPreviewCss=ae}var fa=n=>!!n&&typeof n=="object"&&typeof n.title=="string";function qo(n={}){var at;ce==null||ce(),(at=document.dbLinkPreviewStop)==null||at.call(document);let t=n.content??"article.docs-prose",e=n.delay??500,i=location;if(n.base!==void 0)try{i=new URL(String(n.base))}catch{throw new TypeError(`initLinkPreviews: base must be an absolute URL, not ${String(n.base)}`)}let o=()=>i.href.split("#")[0];n.style!==!1&&ha();let s=new Map,r=new Map,a=0,c=new Map,l,d,u=0,h,m,f=null,v,w,p,b=document.createElement("div");b.id=Se,b.className="db-link-preview",b.setAttribute("role","tooltip"),b.hidden=!0;let x=document.createElement("p");x.className="db-link-preview-title";let E=document.createElement("p");E.className="db-link-preview-excerpt",b.append(x,E);let D=M=>{let P=M.href,$=s.get(P);return $?(s.delete(P),s.set(P,$)):($=(async()=>{if(n.load)return n.load(M);let U=!1,Z,V=new CustomEvent(ra,{cancelable:!0,detail:{url:P,respond(dt){U=!0,Z=dt}}});if(document.dispatchEvent(V),U||V.defaultPrevented)return Z;if(M.href===o())return document.documentElement.outerHTML;if(!(M.origin!==location.origin||location.origin==="null"))return $o(M.pathname+M.search)})().then(U=>{let Z=typeof U=="string"?U.length:0;r.set(P,Z),a+=Z;for(let[V]of s){if(a<=da||V===P)break;a-=r.get(V)??0,r.delete(V),s.delete(V);for(let dt of c.keys())dt.startsWith(V)&&c.delete(dt)}return U},()=>{s.delete(P)}),s.set(P,$)),$},S=()=>{clearTimeout(v),clearTimeout(w),l=void 0,d=void 0,h==null||h.disconnect(),h=void 0,m&&(f===null?m.removeAttribute("aria-describedby"):m.setAttribute("aria-describedby",f),m=void 0,b.hidden=!0)},A=M=>{let P=[...M.getClientRects()],$=(p&&P.find(pt=>p.y>=pt.top&&p.y<=pt.bottom))??P[0]??M.getBoundingClientRect(),U=b.offsetWidth,Z=b.offsetHeight,V=8,dt=$.bottom+V,kt=dt+Z<=window.innerHeight-V||$.top-V-Z<V?dt:$.top-V-Z,de=Math.max(V,Math.min($.left,window.innerWidth-U-V));b.style.top=`${Math.round(kt)}px`,b.style.left=`${Math.round(de)}px`},y=(M,P)=>{if(!(l!==M||!M.isConnected)){if(x.textContent="",x.append(P.title||P.label||""),P.label&&P.title){let $=document.createElement("span");$.className="db-link-preview-label",$.textContent=` \\u203A ${P.label}`,x.append($)}x.hidden=!x.textContent,E.textContent=P.excerpt,E.hidden=!P.excerpt,b.dataset.kind=P.kind,!(!x.textContent&&!P.excerpt)&&(b.isConnected||document.body.append(b),m!==M&&(f=M.getAttribute("aria-describedby"),M.setAttribute("aria-describedby",f?`${f} ${Se}`:Se),m=M),b.hidden=!1,A(M),h??(h=new MutationObserver(()=>{m&&!m.isConnected&&S()})),h.observe(document.body,{childList:!0,subtree:!0}))}},W=(M,P)=>{if(l===M)return;let $=ua(M,t,i);$&&(S(),l=M,d=P,v=setTimeout(async()=>{let U=await D($.url);if(l!==M)return;let Z=`${$.url.href}#${$.id??""}`,V=c.get(Z);V===void 0&&!c.has(Z)&&(V=fa(U)?U:typeof U=="string"?zo(U,$.id):void 0,typeof U=="string"&&c.set(Z,V)),V&&y(M,V)},e))},z=M=>M instanceof Element?M.closest("a[href]"):null,G=M=>{if(p={x:M.clientX,y:M.clientY},M.pointerType==="touch")return;if(b.contains(M.target)){clearTimeout(w);return}let P=z(M.target);P&&!(d==="focus"&&P===l)&&(clearTimeout(w),W(P,"pointer"))},C=M=>{if(M.pointerType==="touch"||!l||d!=="pointer")return;let P=M.relatedTarget;P&&(l.contains(P)||b.contains(P))||(clearTimeout(w),w=setTimeout(S,m?200:0))},ot=[[document,"pointerover",G],[document,"pointerout",C],[b,"pointerleave",(M=>C(M))],[document,"focusin",M=>{let P=z(M.target);if(!P)return;let $=!0;try{$=P.matches(":focus-visible")}catch{}$&&(p=void 0,u=performance.now(),W(P,"focus"))}],[document,"focusout",M=>{l&&(M.target===l||l.contains(M.target))&&S()}],[document,"keydown",M=>{M.key==="Escape"&&(l||m)&&S()}],[document,"pointerdown",M=>{b.contains(M.target)||S()},{capture:!0}],[document,"touchstart",()=>S(),{passive:!0,capture:!0}],[window,"scroll",()=>{if(d==="focus"&&l){m===l&&A(l);return}performance.now()-u<100||S()},{passive:!0,capture:!0}],[window,"resize",S,{passive:!0}],[window,"pagehide",S],[document,"astro:before-swap",S]];for(let[M,P,$,U]of ot)M.addEventListener(P,$,U);let it=()=>{S();for(let[M,P,$,U]of ot)M.removeEventListener(P,$,U);b.remove(),ce===it&&(ce=void 0),document.dbLinkPreviewStop===it&&(document.dbLinkPreviewStop=void 0)};return ce=it,document.dbLinkPreviewStop=it,it}function Ue(n){return!/^[\\x00-\\x20]*([a-z][a-z0-9+.-]*:|[\\\\/])/i.test(n.replace(/[\\t\\n\\r]/g,""))}var We=new Map,pa=15e3;function Rn(n){let t=We.get(n);if(!t){let e=new Promise((i,o)=>{let s=document.createElement("script");s.src=n;let r=setTimeout(()=>a(),pa),a=()=>{clearTimeout(r),s.onload=s.onerror=null,We.get(n)===e&&We.delete(n),o(new Error(`could not load ${n}`))};s.onload=()=>{clearTimeout(r),i()},s.onerror=a,document.head.appendChild(s)});We.set(n,t=e)}return t}function ma(n){document.querySelectorAll("[data-component=\'theme-toggle\']").forEach(t=>{let e=()=>t.setAttribute("aria-pressed",String(document.documentElement.classList.contains("dark")));e(),t.addEventListener("click",()=>{let i=!document.documentElement.classList.contains("dark");document.documentElement.classList.toggle("dark",i);try{localStorage.setItem("theme",i?"dark":"light")}catch{}e()},{signal:n})})}function ga(n){document.addEventListener("click",async t=>{var o,s,r,a;let e=t.target.closest("[data-copy-markdown]");if(!e)return;let i=(((o=document.getElementById("db-page-markdown"))==null?void 0:o.textContent)??"").replace(/<\\\\\\/(script)/gi,"</$1").replace(/<\\\\!--/g,"<!--");try{await navigator.clipboard.writeText(i);let c=(s=e.dataset).label??(s.label=e.textContent??"");e.textContent="Copied",clearTimeout(Number(e.dataset.timer)),e.dataset.timer=String(setTimeout(()=>e.textContent=c,1500))}catch{}(a=(r=e.closest("db-popover"))==null?void 0:r.close)==null||a.call(r,"close-press")},{signal:n})}function ba(n,t){let e=document.body.dataset.page??"index.html";document.querySelectorAll("select[data-db-switch]").forEach(i=>{i.addEventListener("change",async()=>{var a;let o=i.selectedOptions[0];if(!o||o.disabled||!o.hasAttribute("value"))return;let s=o.dataset.prefix??"",r=i.value;if(o.hasAttribute("data-link")){(Ue(r)||/^https?:\\/\\//i.test(r))&&(location.href=r);return}if(!(!Ue(r)||!Ue(s))){if(i.dataset.dbSwitch==="product"){location.href=r;return}try{let c=s?`${n}${s}/`:n;await Rn(`${c}_dogsbay/pages.js`);let l=(a=window.__DOGSBAY_PAGES__)==null?void 0:a[s];location.href=l&&!l.includes(e)?`${c}index.html`:r}catch{location.href=r}}},{signal:t})})}function va(n){document.addEventListener("click",t=>{var i;let e=t.target.closest("a.db-anchor");!e||location.protocol==="file:"||(i=navigator.clipboard)==null||i.writeText(e.href).catch(()=>{})},{signal:n})}var Ae=new Map,Xe=new Set;function Ye(){for(let[n,t]of Ae)n.isConnected||(Mt(n),t.abort(),Ae.delete(n));for(let n of Xe)n.isConnected||Mt(n)}function ya(n,t){let e=EventTarget.prototype,i=e.addEventListener,o=0;e.addEventListener=function(s,r,a){o++;let c=typeof a=="object"?a.signal:void 0;i.call(this,s,r,typeof a=="object"?{...a,signal:c?AbortSignal.any([c,n]):n}:{capture:a===!0,signal:n})};try{t()}finally{e.addEventListener=i}return o}function wa(){Ye(),document.querySelectorAll("[data-component=\'sidebar-provider\']").forEach(n=>{if(Ae.has(n)||Xe.has(n))return;let t=new AbortController;ya(t.signal,()=>pn(n))?Ae.set(n,t):n.querySelector("[data-component=\'sidebar\']")&&Xe.add(n)}),document.removeEventListener("keydown",Ye),document.addEventListener("keydown",Ye)}var le;function xa(n){if(n===!1||!document.querySelector("main[data-link-previews]"))return;let t=typeof n=="object"?n:{};if(!(location.protocol==="file:"&&t.base===void 0))try{return qo({delay:t.delay,base:t.base,load:t.load,content:"main[data-link-previews] article.docs-prose"})}catch(e){console.warn("dogsbay: link previews not started:",e);return}}function Dn(n={}){var c;le==null||le.unmount();let t=new AbortController,{signal:e}=t,i=document.body,o=i.dataset.unitRoot??"",s=i.dataset.siteRoot??"";if(n.nav!==void 0){window.__DOGSBAY_NAV__=n.nav;for(let l of document.querySelectorAll("db-nav-tree")){let d=l.querySelector(":scope > [data-part=\'list\']");d&&!d.querySelector("[data-part=\'item\']")&&((c=l.parentNode)==null||c.insertBefore(l,l.nextSibling))}}wa(),n.theme!==!1&&ma(e),ga(e),n.switchers!==!1&&ba(s,e),va(e),n.search!==!1&&(To({unitRoot:o,siteRoot:s,prefix:i.dataset.prefix??"",loadScript:Rn,signal:e}),Oo({unitRoot:o,siteRoot:s,prefix:i.dataset.prefix??"",loadScript:Rn,signal:e})),Mo(e),Po(e);let r=xa(n.linkPreviews);r&&e.addEventListener("abort",r,{once:!0});let a={unmount(){if(!e.aborted){t.abort();for(let l of[...Ae.keys(),...Xe])Mt(l);Ye(),le===a&&(le=void 0)}}};return le=a}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>Dn()):Dn();})();\n';
4163
4163
  var CLIENT_FILE = "dogsbay-3c3c84017d.js";
4164
- var SSG_VERSION = "0.2.0-beta.182";
4164
+ var SSG_VERSION = "0.2.0-beta.183";
4165
4165
  var THEME_TEMPLATES = { "layouts/blank.html": '{# A page without the sidebar or table of contents: landing pages, splash pages, 404. -#}\n<!doctype html>\n<html lang="{{ page.lang }}" dir="{{ page.dir }}"{% if site.colorMode == "dark" %} class="dark"{% endif %}{% if has.crowdedHeader %} data-header="crowded"{% endif %}>\n<head>\n{% include "partials/head.html" %}\n</head>\n<body class="bg-background text-foreground antialiased" data-unit-root="{{ paths.unit }}" data-site-root="{{ paths.site }}" data-prefix="{{ page.prefix }}" data-page="{{ page.out }}"{{ bodyAttrs }}>\n{{ skipLink }}\n<div class="relative flex min-h-svh w-full flex-col bg-background">\n{{ announcementBar }}\n{% include "partials/header.html" %}\n<main id="db-content" class="min-w-0 flex-1 px-6 py-8 outline-none lg:px-12" tabindex="-1"{% if linkPreviews %} data-link-previews{% endif %}>\n<div class="mx-auto {{ widthClass }}">\n{{ banner }}{{ versionBadge }}{{ h1 }}{{ byline }}{{ lede }}{{ hero }}{{ metaStrip }}{{ tocTop }}\n<article class="docs-prose">\n{{ content }}\n</article>\n{% include "partials/footer.html" %}\n</div>\n</main>\n</div>\n{{ searchDialog }}\n{{ scripts }}\n</body>\n</html>\n', "layouts/docs.html": '{# The docs layout: a port of @dogsbay/docs-layout DocsLayout.astro. -#}\n<!doctype html>\n<html lang="{{ page.lang }}" dir="{{ page.dir }}"{% if site.colorMode == "dark" %} class="dark"{% endif %}{% if has.crowdedHeader %} data-header="crowded"{% endif %}>\n<head>\n{% include "partials/head.html" %}\n</head>\n<body class="bg-background text-foreground antialiased" data-unit-root="{{ paths.unit }}" data-site-root="{{ paths.site }}" data-prefix="{{ page.prefix }}" data-page="{{ page.out }}"{{ bodyAttrs }}>\n{{ skipLink }}\n<div class="group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar" data-component="sidebar-provider" style="--sidebar-width: 16rem; --sidebar-width-icon: 3rem;">\n{{ sidebar }}\n<div class="relative flex w-full min-w-0 flex-1 flex-col bg-background">\n{{ announcementBar }}\n{% include "partials/header.html" %}\n<div class="flex min-w-0">\n<main id="db-content" class="min-w-0 flex-1 px-6 py-8 outline-none lg:px-12" tabindex="-1"{% if linkPreviews %} data-link-previews{% endif %}>\n<div class="mx-auto {{ widthClass }}">\n{{ banner }}{{ breadcrumb }}{{ pageActionsInline }}{{ versionBadge }}{{ h1 }}{{ byline }}{{ lede }}{{ hero }}{{ metaStrip }}{{ tocTop }}\n<article class="docs-prose">\n{{ content }}\n</article>\n{% include "partials/footer.html" %}\n</div>\n</main>\n{{ tocRail }}\n</div>\n</div>\n</div>\n{{ searchDialog }}\n{{ scripts }}\n</body>\n</html>\n', "partials/announcement.html": `{#- The site's announcement bar (site.announcement), as DocsLayout's AnnouncementBar.astro: a band above the
4166
4166
  header in the callout colours of its tone. A closeable one is closed and remembered by <db-announcement>,
4167
4167
  and the head script hides a closed one before first paint. Context: announcement = {id, key (what a close is
@@ -4395,37 +4395,37 @@ var CLIENT_CANDIDATES = ['""', '""}', '"&"', '")}', '"./",', '"Also', '"\\\\$&")
4395
4395
  var SITE_NOTICES = `Third-party software in this site's _dogsbay/ files (dogsbay.js, site.css) and pages
4396
4396
 
4397
4397
  ========================================================================
4398
- @dogsbay/elements@0.2.0-beta.182 (MIT)
4398
+ @dogsbay/elements@0.2.0-beta.183 (MIT)
4399
4399
  https://github.com/dogsbay/dogsbay.git
4400
4400
 
4401
4401
  Licensed under MIT; the package ships no licence file.
4402
4402
 
4403
4403
  ========================================================================
4404
- @dogsbay/primitives@0.2.0-beta.182 (MIT)
4404
+ @dogsbay/primitives@0.2.0-beta.183 (MIT)
4405
4405
  https://github.com/dogsbay/dogsbay.git
4406
4406
 
4407
4407
  Licensed under MIT; the package ships no licence file.
4408
4408
 
4409
4409
  ========================================================================
4410
- @dogsbay/render-html@0.2.0-beta.182 (MIT)
4410
+ @dogsbay/render-html@0.2.0-beta.183 (MIT)
4411
4411
  https://github.com/dogsbay/dogsbay.git
4412
4412
 
4413
4413
  Licensed under MIT; the package ships no licence file.
4414
4414
 
4415
4415
  ========================================================================
4416
- @dogsbay/search@0.2.0-beta.182 (MIT)
4416
+ @dogsbay/search@0.2.0-beta.183 (MIT)
4417
4417
  https://github.com/dogsbay/dogsbay.git
4418
4418
 
4419
4419
  Licensed under MIT; the package ships no licence file.
4420
4420
 
4421
4421
  ========================================================================
4422
- @dogsbay/site-files@0.2.0-beta.182 (MIT)
4422
+ @dogsbay/site-files@0.2.0-beta.183 (MIT)
4423
4423
  https://github.com/dogsbay/dogsbay.git
4424
4424
 
4425
4425
  Licensed under MIT; the package ships no licence file.
4426
4426
 
4427
4427
  ========================================================================
4428
- @dogsbay/ui@0.2.0-beta.182 (MIT)
4428
+ @dogsbay/ui@0.2.0-beta.183 (MIT)
4429
4429
  https://github.com/dogsbay/dogsbay.git
4430
4430
 
4431
4431
  Licensed under MIT; the package ships no licence file.
@@ -32,7 +32,7 @@ import {
32
32
  translationTables,
33
33
  versionsOf,
34
34
  writeTranslationStubs
35
- } from "./chunk-E3FODT5J.mjs";
35
+ } from "./chunk-QDXUP47M.mjs";
36
36
  import {
37
37
  contentType
38
38
  } from "./chunk-CMGKSS45.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  copiedPath,
5
5
  parseConfig,
6
6
  readBuildFiles
7
- } from "./chunk-E3FODT5J.mjs";
7
+ } from "./chunk-QDXUP47M.mjs";
8
8
  import "./chunk-KFYMG4VB.mjs";
9
9
  import "./chunk-IERF2DNL.mjs";
10
10
  import {
@@ -9,13 +9,13 @@ import {
9
9
  releaseDiff,
10
10
  releaseExitCode,
11
11
  releaseRedirects
12
- } from "./chunk-BN7J5H3S.mjs";
12
+ } from "./chunk-KE6N5RFA.mjs";
13
13
  import {
14
14
  buildUnits,
15
15
  parseConfig,
16
16
  readBuildFiles,
17
17
  versionsOf
18
- } from "./chunk-E3FODT5J.mjs";
18
+ } from "./chunk-QDXUP47M.mjs";
19
19
  import "./chunk-KFYMG4VB.mjs";
20
20
  import "./chunk-IERF2DNL.mjs";
21
21
  import "./chunk-YVSP26OS.mjs";
package/cli.mjs CHANGED
@@ -37,16 +37,16 @@ async function main() {
37
37
  usage(1);
38
38
  }
39
39
  if (wantsHelp(args)) usage(0, cmd);
40
- if (cmd === "build") return (await import("./chunks/build-command-HIL2YZTZ.mjs")).runBuild(args, HIGHLIGHT_WORKER);
41
- if (cmd === "assemble") return (await import("./chunks/build-command-HIL2YZTZ.mjs")).runBuild(args, HIGHLIGHT_WORKER, { assemble: true });
42
- if (cmd === "check") return (await import("./chunks/check-command-N6UDUIQI.mjs")).runCheck(args);
43
- if (cmd === "publish") return (await import("./chunks/publish-command-PM4D37FB.mjs")).runPublish(args);
40
+ if (cmd === "build") return (await import("./chunks/build-command-QLNZ5BNK.mjs")).runBuild(args, HIGHLIGHT_WORKER);
41
+ if (cmd === "assemble") return (await import("./chunks/build-command-QLNZ5BNK.mjs")).runBuild(args, HIGHLIGHT_WORKER, { assemble: true });
42
+ if (cmd === "check") return (await import("./chunks/check-command-5U7VSMDO.mjs")).runCheck(args);
43
+ if (cmd === "publish") return (await import("./chunks/publish-command-UFHG6PJN.mjs")).runPublish(args);
44
44
  if (cmd === "release-diff") {
45
45
  const from = option(args, "--from")[0];
46
46
  const gitFrom = option(args, "--git-from")[0];
47
47
  const o = { from, gitFrom, json: flag(args, "--json"), write: flag(args, "--write"), candidates: flag(args, "--candidates"), strict: flag(args, "--strict") };
48
48
  const project = resolve(positional(args, "."));
49
- const { runReleaseDiff } = await import("./chunks/release-diff-ULY6YVSH.mjs");
49
+ const { runReleaseDiff } = await import("./chunks/release-diff-LFDQIFEF.mjs");
50
50
  process.exitCode = await runReleaseDiff(project, o);
51
51
  return;
52
52
  }
@@ -58,7 +58,7 @@ async function main() {
58
58
  const llms = flag(args, "--llms");
59
59
  const project = resolve(positional(args, "."));
60
60
  const t0 = performance.now();
61
- const { dev, readyLine, serverUrl } = await import("./chunks/dev-VKRNKGO4.mjs");
61
+ const { dev, readyLine, serverUrl } = await import("./chunks/dev-HXLVZ7MF.mjs");
62
62
  const { server } = await dev(project, port, { diagrams: !noDiagrams, lazy, search: noSearchDev ? false : void 0, llms, token: process.env.DOGSBAY_DEV_TOKEN || void 0, listening: (s) => console.log(readyLine(s)) });
63
63
  console.log(`dev server for ${project} at ${serverUrl(server)} (ready in ${Math.round(performance.now() - t0)} ms); watching for changes`);
64
64
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dogsbay/ssg-cli",
3
- "version": "0.2.0-beta.182",
3
+ "version": "0.2.0-beta.183",
4
4
  "type": "module",
5
5
  "description": "The dogsbay-ssg command: build, check, preview and publish Dogsbay-MD documentation sites that work offline",
6
6
  "license": "Apache-2.0",
@@ -18,7 +18,7 @@
18
18
  "NOTICE"
19
19
  ],
20
20
  "dependencies": {
21
- "@dogsbay/icons": "0.2.0-beta.182",
21
+ "@dogsbay/icons": "0.2.0-beta.183",
22
22
  "@mermanjs/web-render": "0.9.3"
23
23
  },
24
24
  "publishConfig": {