duckfn-docs-kit 0.3.0 → 0.4.0

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,7 +1,8 @@
1
1
  import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./runtimeConfig-Bokbb8VH.js";
2
+ import c from "filenamify";
2
3
  //#region src/dom.ts
3
- var c = typeof HTMLElement < "u" ? HTMLElement : class {};
4
- function l(e, t, n) {
4
+ var l = typeof HTMLElement < "u" ? HTMLElement : class {};
5
+ function u(e, t, n) {
5
6
  let r = document.createElement(e), i = typeof t == "function" ? t : n;
6
7
  if (typeof t != "function" && t) {
7
8
  let { class: e, text: n, attrs: i, ...a } = t;
@@ -13,22 +14,22 @@ function l(e, t, n) {
13
14
  }
14
15
  //#endregion
15
16
  //#region src/home/home.css?inline
16
- var u = ":host{display:block}*,:before,:after{box-sizing:border-box}.dfk-hero{isolation:isolate;text-align:center;padding:4.5rem 1.5rem 4rem;position:relative;overflow-x:clip}.dfk-hero:before,.dfk-hero:after{content:\"\";z-index:-1;pointer-events:none;border-radius:50%;position:absolute}.dfk-hero:before{background:radial-gradient(circle, var(--duckfn-glow), transparent 70%);width:52rem;height:52rem;top:-18rem;left:50%;transform:translate(-50%)}.dfk-hero:after{background:radial-gradient(circle, var(--duckfn-glow-warm), transparent 70%);width:34rem;height:34rem;bottom:-14rem;right:-10rem}.dfk-hero-inner{max-width:46rem;margin:0 auto}.dfk-logo-stage{line-height:0;display:inline-block}.dfk-logo{width:clamp(7rem,16vw,10rem);height:auto;filter:drop-shadow(0 14px 28px var(--duckfn-glow));display:block}.dfk-title{letter-spacing:-.02em;color:var(--duckfn-blue);margin:1.5rem 0 0;font-size:clamp(2.25rem,5vw,3.25rem);font-weight:700;line-height:1.1}@supports ((-webkit-background-clip:text) or (background-clip:text)){.dfk-title{background-image:linear-gradient(120deg, var(--duckfn-blue-deep), var(--duckfn-blue-bright));color:#0000;-webkit-background-clip:text;background-clip:text;padding-bottom:.06em}}.dfk-title:after{content:\"\";background-color:var(--duckfn-yellow);border-radius:999px;width:3rem;height:.25rem;margin:1rem auto 0;display:block}.dfk-tagline{max-width:34rem;color:var(--ifm-color-emphasis-700);margin:1.25rem auto 0;font-size:clamp(1.05rem,2.2vw,1.25rem);line-height:1.65}.dfk-actions{flex-wrap:wrap;justify-content:center;gap:.75rem 1rem;margin-top:2.25rem;display:flex}.dfk-button-primary,.dfk-button-secondary{transition:background-color .2s var(--ifm-transition-timing-default), border-color .2s var(--ifm-transition-timing-default), color .2s var(--ifm-transition-timing-default), box-shadow .2s var(--ifm-transition-timing-default);border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;gap:.5rem;padding:.7rem 1.6rem;font-size:1rem;font-weight:600;line-height:1.4;text-decoration:none;display:inline-flex}.dfk-button-primary{background-color:var(--duckfn-btn-bg);border-color:var(--duckfn-btn-bg);color:var(--duckfn-btn-fg)}.dfk-button-primary:hover,.dfk-button-primary:focus-visible{background-color:var(--duckfn-btn-bg-hover);border-color:var(--duckfn-btn-bg-hover);color:var(--duckfn-btn-fg);box-shadow:var(--duckfn-shadow);text-decoration:none}.dfk-button-secondary{border-color:var(--duckfn-outline-border);color:var(--duckfn-blue);background-color:#0000}.dfk-button-secondary:hover,.dfk-button-secondary:focus-visible{background-color:var(--duckfn-blue-soft);border-color:var(--duckfn-blue);color:var(--duckfn-blue);text-decoration:none}.dfk-button-icon{font-size:1.125rem}.dfk-badges{flex-wrap:wrap;justify-content:center;align-items:center;gap:.5rem;margin-top:2rem;display:flex}.dfk-badge{display:inline-flex}.dfk-badge-image{width:auto;height:20px;display:block}.dfk-section{padding:4.5rem 0}.dfk-section-inner{max-width:72rem;margin:0 auto;padding:0 1.5rem}.dfk-section-title{text-align:center;letter-spacing:-.01em;margin-bottom:0;font-size:clamp(1.5rem,3vw,2rem)}.dfk-feature-grid{grid-template-columns:repeat(auto-fit,minmax(min(17rem,100%),1fr));gap:1.25rem;margin-top:2.75rem;display:grid}.dfk-feature-card{border:1px solid var(--duckfn-card-border);background-color:var(--duckfn-card-bg);transition:border-color .2s var(--ifm-transition-timing-default), box-shadow .2s var(--ifm-transition-timing-default);border-radius:1rem;flex-direction:column;padding:1.5rem;display:flex}.dfk-feature-card:hover{border-color:var(--duckfn-blue);box-shadow:var(--duckfn-shadow)}.dfk-feature-icon-chip{background-color:var(--duckfn-blue-soft);width:2.5rem;height:2.5rem;color:var(--duckfn-blue);border-radius:.75rem;justify-content:center;align-items:center;margin-bottom:1rem;display:inline-flex}.dfk-feature-icon{font-size:1.375rem}.dfk-feature-title{margin-bottom:.5rem;font-size:1.0625rem;font-weight:600}.dfk-feature-details{color:var(--ifm-color-emphasis-700);margin-bottom:0;font-size:.9375rem;line-height:1.7}.dfk-next-grid{grid-template-columns:repeat(auto-fit,minmax(min(20rem,100%),1fr));gap:1rem;max-width:54rem;margin:2.75rem auto 0;display:grid}.dfk-next-card{border:1px solid var(--duckfn-card-border);background-color:var(--duckfn-card-bg);color:inherit;transition:border-color .2s var(--ifm-transition-timing-default), box-shadow .2s var(--ifm-transition-timing-default);border-radius:.875rem;align-items:center;gap:1rem;padding:1.25rem 1.375rem;text-decoration:none;display:flex}.dfk-next-card:hover,.dfk-next-card:focus-visible{border-color:var(--duckfn-blue);box-shadow:var(--duckfn-shadow);color:inherit;text-decoration:none}.dfk-next-card-body{flex-direction:column;flex:1;gap:.25rem;min-width:0;display:flex}.dfk-next-card-title{color:var(--duckfn-blue);font-size:1rem;font-weight:600}.dfk-next-card-details{color:var(--ifm-color-emphasis-700);font-size:.9rem;line-height:1.6}.dfk-next-card-arrow{color:var(--ifm-color-emphasis-500);transition:color .2s var(--ifm-transition-timing-default);flex-shrink:0;font-size:1.25rem}.dfk-next-card:hover .dfk-next-card-arrow,.dfk-next-card:focus-visible .dfk-next-card-arrow{color:var(--duckfn-blue)}@media (prefers-reduced-motion:no-preference){.dfk-logo-stage,.dfk-title,.dfk-tagline,.dfk-actions,.dfk-badges{animation:dfk-rise .6s var(--ifm-transition-timing-default) backwards}.dfk-title{animation-delay:60ms}.dfk-tagline{animation-delay:.12s}.dfk-actions{animation-delay:.18s}.dfk-badges{animation-delay:.24s}.dfk-logo{will-change:transform;animation:7s ease-in-out infinite dfk-float}.dfk-feature-card,.dfk-next-card{animation:dfk-rise .5s var(--ifm-transition-timing-default) backwards}.dfk-feature-card:nth-child(2),.dfk-next-card:nth-child(2){animation-delay:60ms}.dfk-feature-card:nth-child(3),.dfk-next-card:nth-child(3){animation-delay:.12s}.dfk-feature-card:nth-child(4),.dfk-next-card:nth-child(4){animation-delay:.18s}.dfk-feature-card:nth-child(5){animation-delay:.24s}.dfk-feature-card:nth-child(6){animation-delay:.3s}.dfk-feature-card,.dfk-next-card,.dfk-next-card-arrow{transition:transform .2s var(--ifm-transition-timing-default), border-color .2s var(--ifm-transition-timing-default), box-shadow .2s var(--ifm-transition-timing-default), color .2s var(--ifm-transition-timing-default)}.dfk-feature-card:hover{transform:translateY(-4px)}.dfk-next-card:hover{transform:translateY(-2px)}.dfk-next-card:hover .dfk-next-card-arrow{transform:translate(4px)}}@keyframes dfk-rise{0%{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@keyframes dfk-float{0%,to{transform:translateY(-4px)}50%{transform:translateY(4px)}}@media screen and (max-width:996px){.dfk-hero{padding:3rem 1.5rem}.dfk-section{padding:3.5rem 0}}@media screen and (max-width:576px){.dfk-section-inner{padding:0 1rem}.dfk-actions{flex-direction:column;align-items:stretch}}", d = null;
17
- function f() {
18
- return d || (d = new CSSStyleSheet(), d.replaceSync(u)), d;
17
+ var d = ":host{display:block}*,:before,:after{box-sizing:border-box}.dfk-hero{isolation:isolate;text-align:center;padding:4.5rem 1.5rem 4rem;position:relative;overflow-x:clip}.dfk-hero:before,.dfk-hero:after{content:\"\";z-index:-1;pointer-events:none;border-radius:50%;position:absolute}.dfk-hero:before{background:radial-gradient(circle, var(--duckfn-glow), transparent 70%);width:52rem;height:52rem;top:-18rem;left:50%;transform:translate(-50%)}.dfk-hero:after{background:radial-gradient(circle, var(--duckfn-glow-warm), transparent 70%);width:34rem;height:34rem;bottom:-14rem;right:-10rem}.dfk-hero-inner{max-width:46rem;margin:0 auto}.dfk-logo-stage{line-height:0;display:inline-block}.dfk-logo{width:clamp(7rem,16vw,10rem);height:auto;filter:drop-shadow(0 14px 28px var(--duckfn-glow));display:block}.dfk-title{letter-spacing:-.02em;color:var(--duckfn-blue);margin:1.5rem 0 0;font-size:clamp(2.25rem,5vw,3.25rem);font-weight:700;line-height:1.1}@supports ((-webkit-background-clip:text) or (background-clip:text)){.dfk-title{background-image:linear-gradient(120deg, var(--duckfn-blue-deep), var(--duckfn-blue-bright));color:#0000;-webkit-background-clip:text;background-clip:text;padding-bottom:.06em}}.dfk-title:after{content:\"\";background-color:var(--duckfn-yellow);border-radius:999px;width:3rem;height:.25rem;margin:1rem auto 0;display:block}.dfk-tagline{max-width:34rem;color:var(--ifm-color-emphasis-700);margin:1.25rem auto 0;font-size:clamp(1.05rem,2.2vw,1.25rem);line-height:1.65}.dfk-actions{flex-wrap:wrap;justify-content:center;gap:.75rem 1rem;margin-top:2.25rem;display:flex}.dfk-button-primary,.dfk-button-secondary{transition:background-color .2s var(--ifm-transition-timing-default), border-color .2s var(--ifm-transition-timing-default), color .2s var(--ifm-transition-timing-default), box-shadow .2s var(--ifm-transition-timing-default);border:1px solid #0000;border-radius:999px;justify-content:center;align-items:center;gap:.5rem;padding:.7rem 1.6rem;font-size:1rem;font-weight:600;line-height:1.4;text-decoration:none;display:inline-flex}.dfk-button-primary{background-color:var(--duckfn-btn-bg);border-color:var(--duckfn-btn-bg);color:var(--duckfn-btn-fg)}.dfk-button-primary:hover,.dfk-button-primary:focus-visible{background-color:var(--duckfn-btn-bg-hover);border-color:var(--duckfn-btn-bg-hover);color:var(--duckfn-btn-fg);box-shadow:var(--duckfn-shadow);text-decoration:none}.dfk-button-secondary{border-color:var(--duckfn-outline-border);color:var(--duckfn-blue);background-color:#0000}.dfk-button-secondary:hover,.dfk-button-secondary:focus-visible{background-color:var(--duckfn-blue-soft);border-color:var(--duckfn-blue);color:var(--duckfn-blue);text-decoration:none}.dfk-button-icon{font-size:1.125rem}.dfk-badges{flex-wrap:wrap;justify-content:center;align-items:center;gap:.5rem;margin-top:2rem;display:flex}.dfk-badge{display:inline-flex}.dfk-badge-image{width:auto;height:20px;display:block}.dfk-section{padding:4.5rem 0}.dfk-section-inner{max-width:72rem;margin:0 auto;padding:0 1.5rem}.dfk-section-title{text-align:center;letter-spacing:-.01em;margin-bottom:0;font-size:clamp(1.5rem,3vw,2rem)}.dfk-feature-grid{grid-template-columns:repeat(auto-fit,minmax(min(17rem,100%),1fr));gap:1.25rem;margin-top:2.75rem;display:grid}.dfk-feature-card{border:1px solid var(--duckfn-card-border);background-color:var(--duckfn-card-bg);transition:border-color .2s var(--ifm-transition-timing-default), box-shadow .2s var(--ifm-transition-timing-default);border-radius:1rem;flex-direction:column;padding:1.5rem;display:flex}.dfk-feature-card:hover{border-color:var(--duckfn-blue);box-shadow:var(--duckfn-shadow)}.dfk-feature-icon-chip{background-color:var(--duckfn-blue-soft);width:2.5rem;height:2.5rem;color:var(--duckfn-blue);border-radius:.75rem;justify-content:center;align-items:center;margin-bottom:1rem;display:inline-flex}.dfk-feature-icon{font-size:1.375rem}.dfk-feature-title{margin-bottom:.5rem;font-size:1.0625rem;font-weight:600}.dfk-feature-details{color:var(--ifm-color-emphasis-700);margin-bottom:0;font-size:.9375rem;line-height:1.7}.dfk-next-grid{grid-template-columns:repeat(auto-fit,minmax(min(20rem,100%),1fr));gap:1rem;max-width:54rem;margin:2.75rem auto 0;display:grid}.dfk-next-card{border:1px solid var(--duckfn-card-border);background-color:var(--duckfn-card-bg);color:inherit;transition:border-color .2s var(--ifm-transition-timing-default), box-shadow .2s var(--ifm-transition-timing-default);border-radius:.875rem;align-items:center;gap:1rem;padding:1.25rem 1.375rem;text-decoration:none;display:flex}.dfk-next-card:hover,.dfk-next-card:focus-visible{border-color:var(--duckfn-blue);box-shadow:var(--duckfn-shadow);color:inherit;text-decoration:none}.dfk-next-card-body{flex-direction:column;flex:1;gap:.25rem;min-width:0;display:flex}.dfk-next-card-title{color:var(--duckfn-blue);font-size:1rem;font-weight:600}.dfk-next-card-details{color:var(--ifm-color-emphasis-700);font-size:.9rem;line-height:1.6}.dfk-next-card-arrow{color:var(--ifm-color-emphasis-500);transition:color .2s var(--ifm-transition-timing-default);flex-shrink:0;font-size:1.25rem}.dfk-next-card:hover .dfk-next-card-arrow,.dfk-next-card:focus-visible .dfk-next-card-arrow{color:var(--duckfn-blue)}@media (prefers-reduced-motion:no-preference){.dfk-logo-stage,.dfk-title,.dfk-tagline,.dfk-actions,.dfk-badges{animation:dfk-rise .6s var(--ifm-transition-timing-default) backwards}.dfk-title{animation-delay:60ms}.dfk-tagline{animation-delay:.12s}.dfk-actions{animation-delay:.18s}.dfk-badges{animation-delay:.24s}.dfk-logo{will-change:transform;animation:7s ease-in-out infinite dfk-float}.dfk-feature-card,.dfk-next-card{animation:dfk-rise .5s var(--ifm-transition-timing-default) backwards}.dfk-feature-card:nth-child(2),.dfk-next-card:nth-child(2){animation-delay:60ms}.dfk-feature-card:nth-child(3),.dfk-next-card:nth-child(3){animation-delay:.12s}.dfk-feature-card:nth-child(4),.dfk-next-card:nth-child(4){animation-delay:.18s}.dfk-feature-card:nth-child(5){animation-delay:.24s}.dfk-feature-card:nth-child(6){animation-delay:.3s}.dfk-feature-card,.dfk-next-card,.dfk-next-card-arrow{transition:transform .2s var(--ifm-transition-timing-default), border-color .2s var(--ifm-transition-timing-default), box-shadow .2s var(--ifm-transition-timing-default), color .2s var(--ifm-transition-timing-default)}.dfk-feature-card:hover{transform:translateY(-4px)}.dfk-next-card:hover{transform:translateY(-2px)}.dfk-next-card:hover .dfk-next-card-arrow{transform:translate(4px)}}@keyframes dfk-rise{0%{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@keyframes dfk-float{0%,to{transform:translateY(-4px)}50%{transform:translateY(4px)}}@media screen and (max-width:996px){.dfk-hero{padding:3rem 1.5rem}.dfk-section{padding:3.5rem 0}}@media screen and (max-width:576px){.dfk-section-inner{padding:0 1rem}.dfk-actions{flex-direction:column;align-items:stretch}}", f = null;
18
+ function p() {
19
+ return f || (f = new CSSStyleSheet(), f.replaceSync(d)), f;
19
20
  }
20
21
  //#endregion
21
22
  //#region src/home/DfkFeatures.ts
22
- var p = class extends c {
23
- #e = l("section", { class: "dfk-section" });
24
- #t = l("div", { class: "dfk-section-inner" });
25
- #n = l("h2", { class: "dfk-section-title" });
26
- #r = l("div", { class: "dfk-feature-grid" });
23
+ var m = class extends l {
24
+ #e = u("section", { class: "dfk-section" });
25
+ #t = u("div", { class: "dfk-section-inner" });
26
+ #n = u("h2", { class: "dfk-section-title" });
27
+ #r = u("div", { class: "dfk-feature-grid" });
27
28
  #i = [];
28
29
  constructor() {
29
30
  super(), this.#t.append(this.#n, this.#r), this.#e.appendChild(this.#t);
30
31
  let e = this.attachShadow({ mode: "open" });
31
- e.adoptedStyleSheets = [f()], e.appendChild(this.#e);
32
+ e.adoptedStyleSheets = [p()], e.appendChild(this.#e);
32
33
  }
33
34
  setSectionTitle(e) {
34
35
  this.#n.textContent = e;
@@ -36,52 +37,52 @@ var p = class extends c {
36
37
  setFeatures(e) {
37
38
  for (; this.#i.length > e.length;) this.#i.pop()?.root.remove();
38
39
  for (; this.#i.length < e.length;) {
39
- let e = new m();
40
+ let e = new ee();
40
41
  this.#i.push(e), this.#r.appendChild(e.root);
41
42
  }
42
43
  e.forEach((e, t) => this.#i[t].setFeature(e));
43
44
  }
44
- }, m = class {
45
- root = l("article", { class: "dfk-feature-card" });
46
- #e = l("iconify-icon", {
45
+ }, ee = class {
46
+ root = u("article", { class: "dfk-feature-card" });
47
+ #e = u("iconify-icon", {
47
48
  class: "dfk-feature-icon",
48
49
  attrs: { "aria-hidden": "true" }
49
50
  });
50
- #t = l("h3", { class: "dfk-feature-title" });
51
- #n = l("p", { class: "dfk-feature-details" });
51
+ #t = u("h3", { class: "dfk-feature-title" });
52
+ #n = u("p", { class: "dfk-feature-details" });
52
53
  constructor() {
53
- this.root.append(l("span", { class: "dfk-feature-icon-chip" }, (e) => e.appendChild(this.#e)), this.#t, this.#n);
54
+ this.root.append(u("span", { class: "dfk-feature-icon-chip" }, (e) => e.appendChild(this.#e)), this.#t, this.#n);
54
55
  }
55
56
  setFeature(e) {
56
57
  this.#e.setAttribute("icon", e.icon), this.#t.textContent = e.title, this.#n.textContent = e.details;
57
58
  }
58
- }, h = class extends c {
59
- #e = l("section", { class: "dfk-hero" });
60
- #t = l("div", { class: "dfk-hero-inner" });
61
- #n = l("span", { class: "dfk-logo-stage" });
62
- #r = l("img", {
59
+ }, te = class extends l {
60
+ #e = u("section", { class: "dfk-hero" });
61
+ #t = u("div", { class: "dfk-hero-inner" });
62
+ #n = u("span", { class: "dfk-logo-stage" });
63
+ #r = u("img", {
63
64
  class: "dfk-logo",
64
65
  alt: "",
65
66
  width: 480,
66
67
  height: 480
67
68
  });
68
- #i = l("h1", { class: "dfk-title" });
69
- #a = l("p", { class: "dfk-tagline" });
70
- #o = l("div", { class: "dfk-actions" });
71
- #s = l("a", { class: "dfk-button-primary" });
72
- #c = l("span");
73
- #l = l("a", { class: "dfk-button-secondary" });
74
- #u = l("iconify-icon", {
69
+ #i = u("h1", { class: "dfk-title" });
70
+ #a = u("p", { class: "dfk-tagline" });
71
+ #o = u("div", { class: "dfk-actions" });
72
+ #s = u("a", { class: "dfk-button-primary" });
73
+ #c = u("span");
74
+ #l = u("a", { class: "dfk-button-secondary" });
75
+ #u = u("iconify-icon", {
75
76
  class: "dfk-button-icon",
76
77
  attrs: { "aria-hidden": "true" }
77
78
  });
78
- #d = l("span");
79
- #f = l("div", { class: "dfk-badges" });
79
+ #d = u("span");
80
+ #f = u("div", { class: "dfk-badges" });
80
81
  #p = [];
81
82
  constructor() {
82
83
  super(), this.#n.appendChild(this.#r), this.#s.appendChild(this.#c), this.#l.append(this.#u, this.#d), this.#o.append(this.#s, this.#l), this.#t.append(this.#n, this.#i, this.#a, this.#o, this.#f), this.#e.appendChild(this.#t);
83
84
  let e = this.attachShadow({ mode: "open" });
84
- e.adoptedStyleSheets = [f()], e.appendChild(this.#e);
85
+ e.adoptedStyleSheets = [p()], e.appendChild(this.#e);
85
86
  }
86
87
  setLogo(e) {
87
88
  this.#r.src = e;
@@ -101,12 +102,12 @@ var p = class extends c {
101
102
  setBadges(e) {
102
103
  for (; this.#p.length > e.length;) this.#p.pop()?.remove();
103
104
  for (; this.#p.length < e.length;) {
104
- let e = l("a", {
105
+ let e = u("a", {
105
106
  class: "dfk-badge",
106
107
  target: "_blank",
107
108
  rel: "noopener noreferrer"
108
109
  });
109
- e.appendChild(l("img", { class: "dfk-badge-image" })), this.#p.push(e), this.#f.appendChild(e);
110
+ e.appendChild(u("img", { class: "dfk-badge-image" })), this.#p.push(e), this.#f.appendChild(e);
110
111
  }
111
112
  e.forEach((e, t) => {
112
113
  let n = this.#p[t];
@@ -118,16 +119,398 @@ var p = class extends c {
118
119
  #m(e, t, n, r) {
119
120
  e.href = n.href, t.textContent = n.label, r ? (e.target = "_blank", e.rel = "noopener noreferrer") : (e.removeAttribute("target"), e.removeAttribute("rel"));
120
121
  }
121
- }, ee = class extends c {
122
- #e = l("section", { class: "dfk-section" });
123
- #t = l("div", { class: "dfk-section-inner" });
124
- #n = l("h2", { class: "dfk-section-title" });
125
- #r = l("div", { class: "dfk-next-grid" });
122
+ };
123
+ //#endregion
124
+ //#region src/codemirror.ts
125
+ async function ne(e, t, n, r = {}) {
126
+ let [{ basicSetup: i }, { EditorView: a, keymap: o }, { defaultKeymap: s, historyKeymap: c }, { Compartment: l }] = await Promise.all([
127
+ import("codemirror"),
128
+ import("@codemirror/view"),
129
+ import("@codemirror/commands"),
130
+ import("@codemirror/state")
131
+ ]), u = r.language === "sql" ? [(await import("@codemirror/lang-sql")).sql()] : [], d = new l(), f = new a({
132
+ doc: t,
133
+ extensions: [
134
+ i,
135
+ ...u,
136
+ o.of([...s, ...c]),
137
+ d.of([]),
138
+ a.updateListener.of((e) => {
139
+ e.docChanged && n(e.state.doc.toString());
140
+ })
141
+ ],
142
+ parent: e
143
+ });
144
+ return {
145
+ getValue: () => f.state.doc.toString(),
146
+ setValue: (e) => f.dispatch({ changes: {
147
+ from: 0,
148
+ to: f.state.doc.length,
149
+ insert: e
150
+ } }),
151
+ setWrap: (e) => f.dispatch({ effects: d.reconfigure(e ? a.lineWrapping : []) }),
152
+ destroy: () => f.destroy()
153
+ };
154
+ }
155
+ //#endregion
156
+ //#region src/IconButton.ts
157
+ var h = class {
158
+ root = u("button", {
159
+ class: "dfk-icon-button",
160
+ type: "button"
161
+ });
162
+ #e = u("iconify-icon", {
163
+ class: "dfk-icon",
164
+ attrs: { "aria-hidden": "true" }
165
+ });
166
+ constructor(e, t) {
167
+ this.root.appendChild(this.#e), this.root.addEventListener("click", t), this.setIcon(e);
168
+ }
169
+ setIcon(e) {
170
+ this.#e.setAttribute("icon", e);
171
+ }
172
+ setLabel(e) {
173
+ this.root.setAttribute("data-tip", e), this.root.setAttribute("aria-label", e);
174
+ }
175
+ setOn(e) {
176
+ this.root.classList.toggle("dfk-icon-on", e);
177
+ }
178
+ setDisabled(e) {
179
+ e ? this.root.setAttribute("disabled", "") : this.root.removeAttribute("disabled");
180
+ }
181
+ }, g = {
182
+ theme: {
183
+ light: "redux-color",
184
+ dark: "redux-dark-color"
185
+ },
186
+ options: { look: "neo" }
187
+ };
188
+ function _(e) {
189
+ return {
190
+ theme: {
191
+ light: e?.theme?.light ?? g.theme.light,
192
+ dark: e?.theme?.dark ?? g.theme.dark
193
+ },
194
+ options: {
195
+ ...g.options,
196
+ ...e?.options
197
+ }
198
+ };
199
+ }
200
+ function v(e) {
201
+ if (!e) return _();
202
+ try {
203
+ return _(JSON.parse(e));
204
+ } catch {
205
+ return _();
206
+ }
207
+ }
208
+ //#endregion
209
+ //#region src/mermaid/render.ts
210
+ var re = Promise.resolve();
211
+ function ie(e) {
212
+ let t = re.then(e, e);
213
+ return re = t.catch(() => void 0), t;
214
+ }
215
+ var ae = null;
216
+ function oe() {
217
+ return ae ??= import("mermaid").then((e) => e.default), ae;
218
+ }
219
+ var se = 0;
220
+ function ce({ source: e, config: t, colorMode: n }) {
221
+ let r = `dfk-mermaid-svg-${se += 1}`;
222
+ return ie(async () => {
223
+ let i = await oe(), a = {
224
+ startOnLoad: !1,
225
+ ...t.options,
226
+ theme: t.theme[n]
227
+ };
228
+ i.initialize(a);
229
+ try {
230
+ let t = await i.render(r, e);
231
+ return {
232
+ svg: t.svg,
233
+ bind: t.bindFunctions
234
+ };
235
+ } catch (e) {
236
+ throw document.querySelector(`#d${r}`)?.remove(), e;
237
+ }
238
+ });
239
+ }
240
+ function le() {
241
+ return document.documentElement.getAttribute("data-theme") === "dark" ? "dark" : "light";
242
+ }
243
+ function ue(e) {
244
+ let t = new MutationObserver(e);
245
+ return t.observe(document.documentElement, { attributeFilter: ["data-theme"] }), () => t.disconnect();
246
+ }
247
+ function de(e, t) {
248
+ let n = new DOMParser().parseFromString(t, "text/html").body.querySelector("svg");
249
+ return n ? e.importNode(n, !0) : null;
250
+ }
251
+ async function fe() {
252
+ return (await import("@panzoom/panzoom")).default;
253
+ }
254
+ function pe(e) {
255
+ return new XMLSerializer().serializeToString(e);
256
+ }
257
+ //#endregion
258
+ //#region src/mermaid/DfkMermaid.css?inline
259
+ var me = "*,:before,:after{box-sizing:border-box}:host{margin:1rem 0;display:block}.dfk-mermaid-canvas{position:relative}.dfk-mermaid-viewport{border:1px solid var(--ifm-global-border-color,#e0e0e0);border-radius:var(--ifm-global-radius,.4rem);background:var(--ifm-background-surface-color,#fff);padding:.75rem;overflow:hidden}.dfk-mermaid-content>svg{max-width:100%;height:auto;margin:0 auto;display:block}.dfk-mermaid-canvas.dfk-mermaid-zoomed{cursor:grab}.dfk-mermaid-canvas.dfk-mermaid-zoomed.dfk-mermaid-grabbing{cursor:grabbing}.dfk-mermaid-message{color:var(--ifm-color-emphasis-700,#666);margin:.5rem 0 0;font-size:.8rem}.dfk-mermaid-message:empty{display:none}.dfk-mermaid-message-error{border-radius:var(--ifm-global-radius,.25rem);color:var(--ifm-color-danger-contrast,#fff);background:var(--ifm-color-danger,#d32f2f);font-family:var(--ifm-font-family-monospace,ui-monospace, SFMono-Regular, Menlo, monospace);font-size:var(--ifm-code-font-size,95%);white-space:pre-wrap;word-break:break-word;padding:.5rem .75rem}.dfk-mermaid-canvas[hidden],.dfk-mermaid-message[hidden]{display:none}.dfk-mermaid-actions{z-index:2;border-radius:var(--ifm-global-radius,.3rem);background:var(--ifm-color-emphasis-100,#f5f5f5);opacity:0;pointer-events:none;align-items:center;gap:.15rem;padding:.1rem .2rem;transition:opacity .12s;display:flex;position:absolute;top:.25rem;right:.25rem}.dfk-mermaid-canvas:hover .dfk-mermaid-actions,.dfk-mermaid-canvas:focus-within .dfk-mermaid-actions{opacity:1;pointer-events:auto}.dfk-icon-button{border-radius:var(--ifm-global-radius,.25rem);width:1.6rem;height:1.6rem;color:var(--ifm-color-emphasis-700,#666);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0;transition:background .12s,color .12s;display:inline-flex;position:relative}.dfk-icon-button:hover:not(:disabled),.dfk-icon-button:focus-visible{background:var(--ifm-color-emphasis-200,#e6e6e6);color:var(--ifm-color-primary,#14459b)}.dfk-icon-button:disabled{opacity:.45;cursor:progress}.dfk-icon-button[hidden]{display:none}.dfk-icon{font-size:1rem}[data-tip]:after{content:attr(data-tip);z-index:2;border-radius:var(--ifm-global-radius,.25rem);background:var(--ifm-color-emphasis-800,#333);color:var(--ifm-color-emphasis-0,#fff);white-space:nowrap;opacity:0;pointer-events:none;padding:.15rem .4rem;font-size:.7rem;line-height:1.4;transition:opacity .12s;position:absolute;top:calc(100% + .3rem);right:0}[data-tip]:hover:after,[data-tip]:focus-visible:after{opacity:1}.dfk-mermaid-expanded{z-index:2147483000;background:var(--ifm-background-surface-color,#fff);flex-direction:column;display:flex;position:fixed;inset:0}.dfk-mermaid-expanded .dfk-mermaid-viewport{border:none;border-radius:0;flex:1}.dfk-mermaid-dialog{border:1px solid var(--ifm-global-border-color,#e0e0e0);border-radius:var(--ifm-global-radius,.4rem);background:var(--ifm-background-surface-color,#fff);width:min(56rem,92vw);max-width:none;color:var(--ifm-font-color-base,#181818);padding:0}.dfk-mermaid-dialog::backdrop{background:#00000073}.dfk-mermaid-dialog-body{flex-direction:column;gap:.5rem;padding:.75rem;display:flex}.dfk-mermaid-dialog-title{margin:0;font-size:.95rem;font-weight:600}.dfk-mermaid-dialog-editor{border:1px solid var(--ifm-global-border-color,#e0e0e0);border-radius:var(--ifm-global-radius,.4rem);background:var(--ifm-background-surface-color,#fff);font-size:var(--ifm-code-font-size,95%);overflow:hidden}.dfk-mermaid-dialog-editor .cm-editor{outline:none}.dfk-mermaid-dialog-editor .cm-scroller{max-height:55vh;font-family:var(--ifm-font-family-monospace,ui-monospace, SFMono-Regular, Menlo, monospace);line-height:1.6}.dfk-mermaid-dialog-footer{justify-content:flex-end;gap:.5rem;display:flex}.dfk-mermaid-dialog-button{border:1px solid var(--ifm-global-border-color,#e0e0e0);border-radius:var(--ifm-global-radius,.25rem);background:var(--ifm-background-surface-color,#fff);color:var(--ifm-font-color-base,#181818);cursor:pointer;padding:.3rem .9rem;font-family:inherit;font-size:.85rem}.dfk-mermaid-dialog-button:hover{border-color:var(--ifm-color-primary,#14459b);color:var(--ifm-color-primary,#14459b)}.dfk-mermaid-dialog-apply{border-color:var(--ifm-color-primary,#14459b);background:var(--ifm-color-primary,#14459b);color:var(--ifm-button-color,#fff)}.dfk-mermaid-dialog-apply:hover{color:var(--ifm-button-color,#fff);filter:brightness(1.1)}", y = null;
260
+ function he() {
261
+ return y || (y = new CSSStyleSheet(), y.replaceSync(me)), y;
262
+ }
263
+ //#endregion
264
+ //#region src/mermaid/title.ts
265
+ var ge = "mermaid-diagram.svg", _e = 80, ve = "-", ye = /^[\s\p{Cf}]+|[\s\p{Cf}]+$/gu;
266
+ function be(e) {
267
+ return e === void 0 ? "" : e.replace(ye, "");
268
+ }
269
+ function xe(e, t) {
270
+ let n = [
271
+ Se(e),
272
+ we(t),
273
+ t.ownerDocument.title
274
+ ].map(be).find((e) => e !== "");
275
+ return n === void 0 ? ge : `${c(n, {
276
+ replacement: ve,
277
+ maxLength: _e
278
+ })}.svg`;
279
+ }
280
+ function Se(e) {
281
+ let t = /^---\r?\n([\s\S]*?)\r?\n---/.exec(e.trimStart())?.[1];
282
+ if (t === void 0) return;
283
+ let n = /^title\s*:\s*(.+)$/m.exec(t)?.[1];
284
+ return n === void 0 ? void 0 : Ce(n.trim());
285
+ }
286
+ function Ce(e) {
287
+ let t = e[0];
288
+ return (t === "\"" || t === "'") && e.endsWith(t) ? e.slice(1, -1) : e;
289
+ }
290
+ function we(e) {
291
+ let t = e.closest("article") ?? e.ownerDocument, n;
292
+ for (let r of t.querySelectorAll("h1, h2, h3, h4, h5, h6")) {
293
+ if (!(r.compareDocumentPosition(e) & Node.DOCUMENT_POSITION_FOLLOWING)) break;
294
+ let t = r.textContent?.trim();
295
+ t && (n = t);
296
+ }
297
+ return n;
298
+ }
299
+ //#endregion
300
+ //#region src/mermaid/DfkMermaid.ts
301
+ var b = {
302
+ en: {
303
+ reset: "Reset zoom",
304
+ fullscreen: "Fullscreen",
305
+ exitFullscreen: "Exit fullscreen",
306
+ edit: "Edit diagram source",
307
+ download: "Download SVG",
308
+ apply: "Apply",
309
+ cancel: "Cancel",
310
+ editTitle: "Mermaid source",
311
+ rendering: "Rendering diagram…",
312
+ renderFailed: "Could not render the diagram"
313
+ },
314
+ "zh-hans": {
315
+ reset: "还原缩放",
316
+ fullscreen: "全屏",
317
+ exitFullscreen: "退出全屏",
318
+ edit: "编辑图表源码",
319
+ download: "下载 SVG",
320
+ apply: "应用",
321
+ cancel: "取消",
322
+ editTitle: "Mermaid 源码",
323
+ rendering: "正在渲染图表…",
324
+ renderFailed: "图表渲染失败"
325
+ }
326
+ }, x = 1, Te = 8, Ee = .25, De = class extends l {
327
+ #e = u("div", {
328
+ class: "dfk-mermaid-canvas",
329
+ hidden: !0
330
+ });
331
+ #t = u("div", { class: "dfk-mermaid-viewport" });
332
+ #n = u("div", { class: "dfk-mermaid-content" });
333
+ #r = u("div", { class: "dfk-mermaid-actions" });
334
+ #i = u("p", {
335
+ class: "dfk-mermaid-message",
336
+ attrs: { "aria-live": "polite" },
337
+ hidden: !0
338
+ });
339
+ #a;
340
+ #o;
341
+ #s;
342
+ #c;
343
+ #l = u("dialog", { class: "dfk-mermaid-dialog" });
344
+ #u = u("h2", { class: "dfk-mermaid-dialog-title" });
345
+ #d = u("div", { class: "dfk-mermaid-dialog-editor" });
346
+ #f = u("button", {
347
+ class: "dfk-mermaid-dialog-button dfk-mermaid-dialog-apply",
348
+ type: "button"
349
+ });
350
+ #p = u("button", {
351
+ class: "dfk-mermaid-dialog-button",
352
+ type: "button"
353
+ });
354
+ #m = b.en;
355
+ #h = v(null);
356
+ #g = "";
357
+ #_ = null;
358
+ #v = null;
359
+ #y = !1;
360
+ #b = !1;
361
+ #x = !1;
362
+ #S = 0;
363
+ #C = null;
364
+ #w = !1;
365
+ #T = null;
366
+ #E = !1;
367
+ #D = null;
368
+ #O = (e) => {
369
+ e.key === "Escape" && this.#b && !this.#l.open && this.#H(!1);
370
+ };
371
+ #k = (e) => {
372
+ this.#C?.zoomWithWheel(e);
373
+ };
374
+ #A = () => {
375
+ this.#e.classList.toggle("dfk-mermaid-zoomed", this.#B());
376
+ };
377
+ #j = () => {
378
+ this.#e.classList.remove("dfk-mermaid-grabbing");
379
+ };
380
+ #M = () => {
381
+ this.#e.classList.toggle("dfk-mermaid-grabbing", this.#B());
382
+ };
383
+ #N = () => {
384
+ le() !== this.#v && this.#I();
385
+ };
386
+ constructor() {
387
+ super(), this.#a = new h("lucide:rotate-ccw", () => this.#V()), this.#o = new h("lucide:pencil", () => this.#W()), this.#s = new h("lucide:download", () => this.#U()), this.#c = new h("lucide:maximize", () => this.#H(!this.#b)), this.#r.append(this.#a.root, this.#o.root, this.#s.root, this.#c.root), this.#t.appendChild(this.#n), this.#e.append(this.#t, this.#r), this.#n.addEventListener("panzoomchange", this.#A), this.#n.addEventListener("panzoomstart", this.#M), this.#n.addEventListener("panzoomend", this.#j), this.#f.addEventListener("click", () => this.#K()), this.#p.addEventListener("click", () => this.#l.close()), this.#l.append(u("div", { class: "dfk-mermaid-dialog-body" }, (e) => e.append(this.#u, this.#d, u("div", { class: "dfk-mermaid-dialog-footer" }, (e) => e.append(this.#p, this.#f)))));
388
+ let e = this.attachShadow({ mode: "open" });
389
+ e.adoptedStyleSheets = [he()], e.append(this.#e, this.#i, this.#l), this.#F();
390
+ }
391
+ connectedCallback() {
392
+ this.#y ||= (this.#P(), !0), this.#D ??= ue(this.#N), this.#z(), this.#g && !this.#n.hasChildNodes() && this.#I();
393
+ }
394
+ disconnectedCallback() {
395
+ this.#H(!1), this.#D?.(), this.#D = null, this.#t.removeEventListener("wheel", this.#k), this.#C?.destroy(), this.#C = null, this.#e.classList.remove("dfk-mermaid-zoomed", "dfk-mermaid-grabbing"), this.#S += 1, this.#T?.destroy(), this.#T = null, this.#l.open && this.#l.close();
396
+ }
397
+ #P() {
398
+ this.#m = b[(document.documentElement.getAttribute("lang") ?? "en").toLowerCase()] ?? b.en;
399
+ let e = this.getAttribute("source");
400
+ e !== null && (this.#g = e), this.#h = v(this.getAttribute("config")), this.#F();
401
+ }
402
+ #F() {
403
+ this.#a.setLabel(this.#m.reset), this.#o.setLabel(this.#m.edit), this.#s.setLabel(this.#m.download), this.#c.setLabel(this.#b ? this.#m.exitFullscreen : this.#m.fullscreen), this.#u.textContent = this.#m.editTitle, this.#p.textContent = this.#m.cancel, this.#f.textContent = this.#m.apply;
404
+ }
405
+ async #I() {
406
+ if (!this.#g) return;
407
+ let e = this.#S += 1, t = le();
408
+ this.#v = t, this.#_ === null && this.#L(this.#m.rendering, !1);
409
+ try {
410
+ let n = await ce({
411
+ source: this.#g,
412
+ config: this.#h,
413
+ colorMode: t
414
+ });
415
+ if (e !== this.#S || !this.isConnected) return;
416
+ let r = de(this.ownerDocument, n.svg);
417
+ if (!r) throw Error(this.#m.renderFailed);
418
+ this.#_ = r, this.#n.replaceChildren(r), n.bind?.(this.#n), this.#e.hidden = !1, this.#L("", !1), this.#R(!0), this.#V();
419
+ } catch (t) {
420
+ if (e !== this.#S || !this.isConnected) return;
421
+ this.#_ = null, this.#n.replaceChildren(), this.#e.hidden = !0, this.#R(!1), this.#L(`${this.#m.renderFailed}: ${Oe(t)}`, !0);
422
+ }
423
+ }
424
+ #L(e, t) {
425
+ this.#i.textContent = e, this.#i.hidden = e === "", this.#i.classList.toggle("dfk-mermaid-message-error", t);
426
+ }
427
+ #R(e) {
428
+ this.#a.root.hidden = !e, this.#s.root.hidden = !e;
429
+ }
430
+ async #z() {
431
+ if (!(this.#C !== null || this.#w)) {
432
+ this.#w = !0;
433
+ try {
434
+ let e = await fe();
435
+ if (!this.isConnected) return;
436
+ this.#t.addEventListener("wheel", this.#k, { passive: !1 }), this.#C = e(this.#n, {
437
+ maxScale: Te,
438
+ minScale: x,
439
+ step: Ee,
440
+ panOnlyWhenZoomed: !0,
441
+ touchAction: "pan-y",
442
+ cursor: "",
443
+ handleStartEvent: (e) => {
444
+ this.#B() && (e.preventDefault(), e.stopPropagation());
445
+ }
446
+ }), this.#n.style.userSelect = "", this.#t.style.userSelect = "";
447
+ } catch {} finally {
448
+ this.#w = !1;
449
+ }
450
+ }
451
+ }
452
+ #B() {
453
+ return (this.#C?.getScale() ?? x) > x;
454
+ }
455
+ #V() {
456
+ this.#C?.reset({ animate: !ke() });
457
+ }
458
+ #H(e) {
459
+ this.#b = e, this.#e.classList.toggle("dfk-mermaid-expanded", e), this.#c.setIcon(e ? "lucide:minimize" : "lucide:maximize"), this.#F(), e !== this.#x && (e ? document.addEventListener("keydown", this.#O) : document.removeEventListener("keydown", this.#O), this.#x = e);
460
+ }
461
+ #U() {
462
+ if (this.#_ === null) return;
463
+ let e = pe(this.#_), t = new Blob([e], { type: "image/svg+xml;charset=utf-8" }), n = URL.createObjectURL(t), r = u("a", {
464
+ href: n,
465
+ download: xe(this.#g, this)
466
+ });
467
+ this.shadowRoot?.appendChild(r), r.click(), r.remove(), window.setTimeout(() => URL.revokeObjectURL(n), 0);
468
+ }
469
+ #W() {
470
+ if (this.#l.showModal(), this.#T) {
471
+ this.#T.setValue(this.#g);
472
+ return;
473
+ }
474
+ this.#G();
475
+ }
476
+ async #G() {
477
+ if (!this.#E) {
478
+ this.#E = !0;
479
+ try {
480
+ let e = await ne(this.#d, this.#g, () => void 0);
481
+ if (!this.isConnected || !this.#l.open) {
482
+ e.destroy();
483
+ return;
484
+ }
485
+ e.setWrap(!0), this.#T = e;
486
+ } catch {} finally {
487
+ this.#E = !1;
488
+ }
489
+ }
490
+ }
491
+ #K() {
492
+ let e = this.#T?.getValue();
493
+ this.#l.close(), e !== void 0 && e !== this.#g && (this.#g = e, this.#I());
494
+ }
495
+ };
496
+ function Oe(e) {
497
+ return e instanceof Error ? e.message : String(e);
498
+ }
499
+ function ke() {
500
+ return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
501
+ }
502
+ //#endregion
503
+ //#region src/home/DfkNextSteps.ts
504
+ var Ae = class extends l {
505
+ #e = u("section", { class: "dfk-section" });
506
+ #t = u("div", { class: "dfk-section-inner" });
507
+ #n = u("h2", { class: "dfk-section-title" });
508
+ #r = u("div", { class: "dfk-next-grid" });
126
509
  #i = [];
127
510
  constructor() {
128
511
  super(), this.#t.append(this.#n, this.#r), this.#e.appendChild(this.#t);
129
512
  let e = this.attachShadow({ mode: "open" });
130
- e.adoptedStyleSheets = [f()], e.appendChild(this.#e);
513
+ e.adoptedStyleSheets = [p()], e.appendChild(this.#e);
131
514
  }
132
515
  setSectionTitle(e) {
133
516
  this.#n.textContent = e;
@@ -135,16 +518,16 @@ var p = class extends c {
135
518
  setSteps(e) {
136
519
  for (; this.#i.length > e.length;) this.#i.pop()?.root.remove();
137
520
  for (; this.#i.length < e.length;) {
138
- let e = new te();
521
+ let e = new je();
139
522
  this.#i.push(e), this.#r.appendChild(e.root);
140
523
  }
141
524
  e.forEach((e, t) => this.#i[t].setStep(e));
142
525
  }
143
- }, te = class {
144
- root = l("a", { class: "dfk-next-card" });
145
- #e = l("span", { class: "dfk-next-card-title" });
146
- #t = l("span", { class: "dfk-next-card-details" });
147
- #n = l("iconify-icon", {
526
+ }, je = class {
527
+ root = u("a", { class: "dfk-next-card" });
528
+ #e = u("span", { class: "dfk-next-card-title" });
529
+ #t = u("span", { class: "dfk-next-card-details" });
530
+ #n = u("iconify-icon", {
148
531
  class: "dfk-next-card-arrow",
149
532
  attrs: {
150
533
  icon: "lucide:arrow-right",
@@ -152,14 +535,14 @@ var p = class extends c {
152
535
  }
153
536
  });
154
537
  constructor() {
155
- this.root.append(l("span", { class: "dfk-next-card-body" }, (e) => e.append(this.#e, this.#t)), this.#n);
538
+ this.root.append(u("span", { class: "dfk-next-card-body" }, (e) => e.append(this.#e, this.#t)), this.#n);
156
539
  }
157
540
  setStep(e) {
158
541
  this.root.href = e.href, this.#e.textContent = e.title, this.#t.textContent = e.details;
159
542
  }
160
- }, g = null, _ = class e {
543
+ }, Me = null, S = class e {
161
544
  static getInstance() {
162
- return g ??= new e(), g;
545
+ return Me ??= new e(), Me;
163
546
  }
164
547
  #e = "idle";
165
548
  #t = "";
@@ -181,11 +564,11 @@ var p = class extends c {
181
564
  if (this.#n) return this.#n;
182
565
  let t = this.#l();
183
566
  return t.allowUnsignedExtensions && (this.#a = !0), this.#e = "loading", this.#n = this.#u(t.preload).catch((e) => {
184
- throw this.#e = "error", this.#t = y(e), this.#n = null, e;
567
+ throw this.#e = "error", this.#t = C(e), this.#n = null, e;
185
568
  }), this.#n;
186
569
  }
187
570
  #l() {
188
- return this.#s ??= re(), this.#s;
571
+ return this.#s ??= Fe(), this.#s;
189
572
  }
190
573
  async #u(e) {
191
574
  let t = await import("@duckdb/duckdb-wasm");
@@ -223,7 +606,7 @@ var p = class extends c {
223
606
  return {
224
607
  columns: [],
225
608
  rows: [],
226
- error: y(e)
609
+ error: C(e)
227
610
  };
228
611
  }
229
612
  }
@@ -254,10 +637,10 @@ var p = class extends c {
254
637
  async #p(e, t) {
255
638
  if (!r.test(e)) throw Error(`Not a valid extension name: ${e}`);
256
639
  let n = this.#h();
257
- t !== void 0 && await n.query(`INSTALL ${e} FROM ${ne(t)}`), await n.query(`LOAD ${e}`);
640
+ t !== void 0 && await n.query(`INSTALL ${e} FROM ${Ne(t)}`), await n.query(`LOAD ${e}`);
258
641
  }
259
642
  async #m(e) {
260
- await this.#h().query(`LOAD '${v(e)}'`);
643
+ await this.#h().query(`LOAD '${Pe(e)}'`);
261
644
  }
262
645
  #h() {
263
646
  let e = this.#i;
@@ -265,33 +648,33 @@ var p = class extends c {
265
648
  return e;
266
649
  }
267
650
  };
268
- function ne(e) {
651
+ function Ne(e) {
269
652
  let t = e.toLowerCase();
270
653
  if (a.has(t)) return t;
271
654
  if (!n.test(e)) throw Error(`Not a valid extension repository: ${e}`);
272
655
  return `'${e}'`;
273
656
  }
274
- function v(t) {
657
+ function Pe(t) {
275
658
  let n = i(t) ? t : new URL(t, window.location.origin).href;
276
659
  if (!r.test(e(n))) throw Error(`An extension file must be named <extension>.duckdb_extension.wasm — the base name before the first dot is the entry symbol: ${n}`);
277
660
  return n;
278
661
  }
279
- function re() {
662
+ function Fe() {
280
663
  if (typeof document > "u") return { preload: [] };
281
664
  let e = document.getElementById(s)?.textContent?.trim();
282
665
  if (!e) return { preload: [] };
283
666
  try {
284
667
  return t(JSON.parse(e));
285
668
  } catch (e) {
286
- throw Error(`Invalid <script id="${s}"> config: ${y(e)}`);
669
+ throw Error(`Invalid <script id="${s}"> config: ${C(e)}`);
287
670
  }
288
671
  }
289
- function y(e) {
672
+ function C(e) {
290
673
  return e instanceof Error ? e.message : String(e);
291
674
  }
292
675
  //#endregion
293
676
  //#region src/sql/PreviewTabs.ts
294
- var ie = 0, b = class {
677
+ var Ie = 0, w = class {
295
678
  #e = [];
296
679
  #t = [];
297
680
  #n = [];
@@ -301,11 +684,11 @@ var ie = 0, b = class {
301
684
  #o = !1;
302
685
  constructor(e, t, n, r, i) {
303
686
  this.#i = r;
304
- let a = `dfk-sql-tabs-${ie += 1}`, o = l("div", { class: "dfk-sql-tabs" }), s = l("div", {
687
+ let a = `dfk-sql-tabs-${Ie += 1}`, o = u("div", { class: "dfk-sql-tabs" }), s = u("div", {
305
688
  class: "dfk-sql-tab-list",
306
689
  attrs: { role: "tablist" }
307
- }), c = l("div", { class: "dfk-sql-panels" }), u = (e, t) => {
308
- let n = this.#e.length, r = l("div", {
690
+ }), c = u("div", { class: "dfk-sql-panels" }), l = (e, t) => {
691
+ let n = this.#e.length, r = u("div", {
309
692
  class: "dfk-sql-panel",
310
693
  hidden: !0,
311
694
  attrs: {
@@ -313,7 +696,7 @@ var ie = 0, b = class {
313
696
  id: `${a}-panel-${n}`,
314
697
  "aria-labelledby": `${a}-tab-${n}`
315
698
  }
316
- }), i = l("button", {
699
+ }), i = u("button", {
317
700
  class: "dfk-sql-tab",
318
701
  type: "button",
319
702
  text: e,
@@ -327,8 +710,8 @@ var ie = 0, b = class {
327
710
  });
328
711
  i.addEventListener("click", () => this.#s(n)), i.addEventListener("keydown", (e) => this.#l(e, n)), this.#e.push(i), this.#t.push(r), this.#n.push(t), this.#r.push(!1), s.appendChild(i), c.appendChild(r);
329
712
  };
330
- for (let e of t) u(e.label, e);
331
- u(n, null), o.appendChild(s), i && o.appendChild(i), e.replaceChildren(o, c), this.#s(0);
713
+ for (let e of t) l(e.label, e);
714
+ l(n, null), o.appendChild(s), i && o.appendChild(i), e.replaceChildren(o, c), this.#s(0);
332
715
  }
333
716
  dispose() {
334
717
  this.#o = !0, this.#a?.dispose(), this.#a = null;
@@ -359,7 +742,7 @@ var ie = 0, b = class {
359
742
  let r = (t + n + this.#e.length) % this.#e.length;
360
743
  this.#s(r), this.#e[r].focus();
361
744
  }
362
- }, ae = "allow-scripts", x = 30, oe = 32, S = {
745
+ }, Le = "allow-scripts", T = 30, Re = 32, E = {
363
746
  copyCell: "dfk-copy-cell",
364
747
  copyAll: "dfk-copy-all",
365
748
  wrap: "dfk-wrap",
@@ -370,40 +753,40 @@ var ie = 0, b = class {
370
753
  widthAdaptive: "dfk-width-adaptive",
371
754
  widthStandard: "dfk-width-standard",
372
755
  widthFill: "dfk-width-fill"
373
- }, se = [
756
+ }, ze = [
374
757
  {
375
- menuKey: S.widthAdaptive,
758
+ menuKey: E.widthAdaptive,
376
759
  label: "widthAdaptive",
377
760
  widthMode: "adaptive",
378
761
  autoFillWidth: !1,
379
762
  fallback: "Fill the width"
380
763
  },
381
764
  {
382
- menuKey: S.widthStandard,
765
+ menuKey: E.widthStandard,
383
766
  label: "widthStandard",
384
767
  widthMode: "standard",
385
768
  autoFillWidth: !1,
386
769
  fallback: "Content widths, scroll sideways"
387
770
  },
388
771
  {
389
- menuKey: S.widthFill,
772
+ menuKey: E.widthFill,
390
773
  label: "widthFill",
391
774
  widthMode: "standard",
392
775
  autoFillWidth: !0,
393
776
  fallback: "Content first, fill when it fits"
394
777
  }
395
778
  ];
396
- function ce(e) {
397
- return se.find((t) => t.menuKey === e) ?? se[0];
779
+ function Be(e) {
780
+ return ze.find((t) => t.menuKey === e) ?? ze[0];
398
781
  }
399
- var le;
400
- function ue(e, t) {
401
- return le ??= new Intl.Collator(void 0, {
782
+ var Ve;
783
+ function He(e, t) {
784
+ return Ve ??= new Intl.Collator(void 0, {
402
785
  numeric: !0,
403
786
  sensitivity: "base"
404
- }), le.compare(e, t);
787
+ }), Ve.compare(e, t);
405
788
  }
406
- function de(e) {
789
+ function Ue(e) {
407
790
  if (typeof e == "number") return Number.isNaN(e) ? null : e;
408
791
  if (typeof e == "bigint") return Number(e);
409
792
  if (e instanceof Date) {
@@ -412,26 +795,26 @@ function de(e) {
412
795
  }
413
796
  return typeof e == "boolean" ? +!!e : null;
414
797
  }
415
- function fe(e, t, n) {
798
+ function We(e, t, n) {
416
799
  let r = e == null, i = t == null;
417
800
  if (r || i) return r && i ? 0 : r ? 1 : -1;
418
- let a = de(e), o = de(t), s;
419
- s = a !== null && o !== null ? a === o ? 0 : a < o ? -1 : 1 : ue(T(e), T(t));
801
+ let a = Ue(e), o = Ue(t), s;
802
+ s = a !== null && o !== null ? a === o ? 0 : a < o ? -1 : 1 : He(A(e), A(t));
420
803
  let c = s === 0 ? 0 : s < 0 ? -1 : 1;
421
804
  return c === 0 ? 0 : String(n).toLowerCase() === "desc" ? -c : c;
422
805
  }
423
- var pe = "http://www.w3.org/2000/svg";
424
- function me(e) {
806
+ var Ge = "http://www.w3.org/2000/svg";
807
+ function Ke(e) {
425
808
  return e instanceof Error ? e.message : String(e);
426
809
  }
427
- function he(e, t) {
810
+ function qe(e, t) {
428
811
  let n = e.createElement("pre");
429
812
  return n.className = "dfk-sql-error", n.textContent = t, n;
430
813
  }
431
- function ge(e, t) {
814
+ function D(e, t) {
432
815
  return `${e.error ?? "Error"}: ${t}`;
433
816
  }
434
- var _e = class {
817
+ var Je = class {
435
818
  #e;
436
819
  #t;
437
820
  #n;
@@ -441,7 +824,7 @@ var _e = class {
441
824
  #o = 0;
442
825
  #s = 0;
443
826
  #c;
444
- #l = S.widthAdaptive;
827
+ #l = E.widthAdaptive;
445
828
  #u;
446
829
  #d;
447
830
  constructor(e, t, n, r) {
@@ -457,7 +840,7 @@ var _e = class {
457
840
  return e.map((e) => ({
458
841
  field: e,
459
842
  title: e,
460
- sort: fe,
843
+ sort: We,
461
844
  style: { autoWrapText: this.#a.has(e) }
462
845
  }));
463
846
  }
@@ -489,7 +872,7 @@ var _e = class {
489
872
  return typeof t == "number" ? t : 12;
490
873
  }
491
874
  #y() {
492
- let e = ce(this.#l);
875
+ let e = Be(this.#l);
493
876
  return {
494
877
  container: this.#t,
495
878
  records: this.#n.rows,
@@ -497,8 +880,8 @@ var _e = class {
497
880
  theme: this.#m(),
498
881
  widthMode: e.widthMode,
499
882
  autoFillWidth: e.autoFillWidth,
500
- defaultRowHeight: this.#a.size > 0 ? "auto" : x,
501
- defaultHeaderRowHeight: oe,
883
+ defaultRowHeight: this.#a.size > 0 ? "auto" : T,
884
+ defaultHeaderRowHeight: Re,
502
885
  columnResizeMode: "all",
503
886
  rowResizeMode: "all",
504
887
  dragHeaderMode: "column",
@@ -525,10 +908,10 @@ var _e = class {
525
908
  #b(e) {
526
909
  let t = this.#r, n = this.#a.has(e), r = this.#o > 0 ? {
527
910
  text: t.unfreezeColumns ?? "Unfreeze columns",
528
- menuKey: S.unfreeze
911
+ menuKey: E.unfreeze
529
912
  } : {
530
913
  text: t.freezeColumn ?? "Freeze up to here",
531
- menuKey: S.freeze
914
+ menuKey: E.freeze
532
915
  };
533
916
  return [
534
917
  {
@@ -538,15 +921,15 @@ var _e = class {
538
921
  { type: "split" },
539
922
  {
540
923
  text: t.copy ?? "Copy cell",
541
- menuKey: S.copyCell
924
+ menuKey: E.copyCell
542
925
  },
543
926
  {
544
927
  text: t.copyAll ?? "Copy table",
545
- menuKey: S.copyAll
928
+ menuKey: E.copyAll
546
929
  },
547
930
  {
548
931
  text: n ? t.unwrapColumn ?? "Stop wrapping column" : t.wrapColumn ?? "Wrap column",
549
- menuKey: n ? S.unwrap : S.wrap
932
+ menuKey: n ? E.unwrap : E.wrap
550
933
  },
551
934
  r,
552
935
  { type: "split" },
@@ -556,12 +939,12 @@ var _e = class {
556
939
  },
557
940
  {
558
941
  text: t.resetView ?? "Reset view",
559
- menuKey: S.reset
942
+ menuKey: E.reset
560
943
  }
561
944
  ];
562
945
  }
563
946
  #x() {
564
- return se.map((e) => ({
947
+ return ze.map((e) => ({
565
948
  text: `${e.menuKey === this.#l ? "✓ " : ""}${this.#r[e.label] ?? e.fallback}`,
566
949
  menuKey: e.menuKey
567
950
  }));
@@ -571,37 +954,37 @@ var _e = class {
571
954
  if (!r) return;
572
955
  let i = t >= 0 && n >= 0 ? this.#e.getCellInfo(t, n) : void 0, a = i?.field === void 0 ? "" : String(i.field);
573
956
  switch (r) {
574
- case S.copyCell:
957
+ case E.copyCell:
575
958
  this.#k(this.#C(t, n));
576
959
  break;
577
- case S.copyAll:
960
+ case E.copyAll:
578
961
  this.#k(this.#O());
579
962
  break;
580
- case S.wrap:
963
+ case E.wrap:
581
964
  a && this.#w(a, !0);
582
965
  break;
583
- case S.unwrap:
966
+ case E.unwrap:
584
967
  a && this.#w(a, !1);
585
968
  break;
586
- case S.freeze:
969
+ case E.freeze:
587
970
  this.#T(t);
588
971
  break;
589
- case S.unfreeze:
972
+ case E.unfreeze:
590
973
  this.#T(-1);
591
974
  break;
592
- case S.widthAdaptive:
593
- case S.widthStandard:
594
- case S.widthFill:
595
- this.#E(ce(r));
975
+ case E.widthAdaptive:
976
+ case E.widthStandard:
977
+ case E.widthFill:
978
+ this.#E(Be(r));
596
979
  break;
597
- case S.reset: this.#D();
980
+ case E.reset: this.#D();
598
981
  }
599
982
  }
600
983
  #C(e, t) {
601
- return e < 0 || t < 0 ? "" : T(this.#e.getCellRawValue(e, t));
984
+ return e < 0 || t < 0 ? "" : A(this.#e.getCellRawValue(e, t));
602
985
  }
603
986
  #w(e, t) {
604
- t ? this.#a.add(e) : this.#a.delete(e), this.#e.defaultRowHeight = this.#a.size > 0 ? "auto" : x, this.#e.updateColumns(this.#f(this.#p()), {
987
+ t ? this.#a.add(e) : this.#a.delete(e), this.#e.defaultRowHeight = this.#a.size > 0 ? "auto" : T, this.#e.updateColumns(this.#f(this.#p()), {
605
988
  clearColWidthCache: !1,
606
989
  clearRowHeightCache: !0
607
990
  });
@@ -616,7 +999,7 @@ var _e = class {
616
999
  }));
617
1000
  }
618
1001
  #D() {
619
- this.#a.clear(), this.#o = 0, this.#l = S.widthAdaptive, this.#e.updateOption(this.#y(), {
1002
+ this.#a.clear(), this.#o = 0, this.#l = E.widthAdaptive, this.#e.updateOption(this.#y(), {
620
1003
  clearColWidthCache: !0,
621
1004
  clearRowHeightCache: !0
622
1005
  });
@@ -625,7 +1008,7 @@ var _e = class {
625
1008
  let e = this.#e, t = [this.#n.columns.join(" ")];
626
1009
  for (let n = e.columnHeaderLevelCount; n < e.rowCount; n += 1) {
627
1010
  let r = [];
628
- for (let t = 0; t < e.colCount; t += 1) r.push(T(e.getCellRawValue(t, n)));
1011
+ for (let t = 0; t < e.colCount; t += 1) r.push(A(e.getCellRawValue(t, n)));
629
1012
  t.push(r.join(" "));
630
1013
  }
631
1014
  return t.join("\n");
@@ -638,56 +1021,56 @@ var _e = class {
638
1021
  dispose() {
639
1022
  cancelAnimationFrame(this.#s), this.#u?.disconnect(), this.#d?.disconnect(), this.#e.release();
640
1023
  }
641
- }, ve = 2, ye = 4;
642
- function be() {
643
- let e = l("div", { class: "dfk-sql-table-skeleton" });
644
- e.style.setProperty("--dfk-sql-skeleton-row-height", `${x}px`);
645
- for (let t = 0; t < ve; t += 1) e.appendChild(l("div", { class: "dfk-sql-table-skeleton-row" }, (e) => {
646
- for (let t = 0; t < ye; t += 1) e.appendChild(l("span", { class: "dfk-sql-table-skeleton-cell" }));
1024
+ }, Ye = 2, Xe = 4;
1025
+ function Ze() {
1026
+ let e = u("div", { class: "dfk-sql-table-skeleton" });
1027
+ e.style.setProperty("--dfk-sql-skeleton-row-height", `${T}px`);
1028
+ for (let t = 0; t < Ye; t += 1) e.appendChild(u("div", { class: "dfk-sql-table-skeleton-row" }, (e) => {
1029
+ for (let t = 0; t < Xe; t += 1) e.appendChild(u("span", { class: "dfk-sql-table-skeleton-cell" }));
647
1030
  }));
648
1031
  return e;
649
1032
  }
650
- async function C(e, t, n) {
651
- let r = e.ownerDocument, i = l("div", { class: "dfk-sql-table" });
652
- i.style.setProperty("--dfk-sql-table-height", `${Math.min(360, 36 + t.rows.length * x)}px`);
653
- let a = be();
1033
+ async function O(e, t, n) {
1034
+ let r = e.ownerDocument, i = u("div", { class: "dfk-sql-table" });
1035
+ i.style.setProperty("--dfk-sql-table-height", `${Math.min(360, 36 + t.rows.length * T)}px`);
1036
+ let a = Ze();
654
1037
  i.appendChild(a), e.appendChild(i);
655
1038
  try {
656
- let e = new _e(await import("@visactor/vtable"), i, t, n);
1039
+ let e = new Je(await import("@visactor/vtable"), i, t, n);
657
1040
  return a.remove(), { dispose: () => e.dispose() };
658
1041
  } catch (e) {
659
- return a.remove(), i.appendChild(he(r, ge(n, me(e)))), { dispose: () => {} };
1042
+ return a.remove(), i.appendChild(qe(r, D(n, Ke(e)))), { dispose: () => {} };
660
1043
  }
661
1044
  }
662
- var xe = async ({ host: e, labels: t, fullscreenButton: n }, r) => {
663
- let i = new b(e, [], t.table ?? "Table", (e) => C(e, r, t), n);
1045
+ var Qe = async ({ host: e, labels: t, fullscreenButton: n }, r) => {
1046
+ let i = new w(e, [], t.table ?? "Table", (e) => O(e, r, t), n);
664
1047
  return () => i.dispose();
665
1048
  };
666
- function Se(e, t) {
1049
+ function $e(e, t) {
667
1050
  let n = e.createElement("pre");
668
1051
  n.className = "dfk-sql-text";
669
1052
  let r = [t.columns.join(" ")];
670
- for (let e of t.rows) r.push(t.columns.map((t) => T(e[t])).join(" "));
1053
+ for (let e of t.rows) r.push(t.columns.map((t) => A(e[t])).join(" "));
671
1054
  return n.textContent = r.join("\n"), n;
672
1055
  }
673
- var Ce = async ({ host: e, labels: t, fullscreenButton: n }, r) => {
674
- let i = new b(e, [{
1056
+ var et = async ({ host: e, labels: t, fullscreenButton: n }, r) => {
1057
+ let i = new w(e, [{
675
1058
  label: t.text ?? "Text",
676
- mount: (e) => e.appendChild(Se(e.ownerDocument, r))
677
- }], t.table ?? "Table", (e) => C(e, r, t), n);
1059
+ mount: (e) => e.appendChild($e(e.ownerDocument, r))
1060
+ }], t.table ?? "Table", (e) => O(e, r, t), n);
678
1061
  return () => i.dispose();
679
- }, we = async ({ host: e, labels: t }, n) => {
680
- e.replaceChildren(he(e.ownerDocument, ge(t, n.error ?? "unknown")));
1062
+ }, tt = async ({ host: e, labels: t }, n) => {
1063
+ e.replaceChildren(qe(e.ownerDocument, D(t, n.error ?? "unknown")));
681
1064
  };
682
- function Te(e, t) {
1065
+ function nt(e, t) {
683
1066
  return e.field ? e.field : t.columns.length === 1 ? t.columns[0] : null;
684
1067
  }
685
- function Ee(e, t) {
1068
+ function rt(e, t) {
686
1069
  if (!t.trim()) return null;
687
1070
  let n = new DOMParser().parseFromString(t, "image/svg+xml").documentElement;
688
- return !n || n.localName === "parsererror" || n.namespaceURI !== pe ? null : (De(n), e.importNode(n, !0));
1071
+ return !n || n.localName === "parsererror" || n.namespaceURI !== Ge ? null : (it(n), e.importNode(n, !0));
689
1072
  }
690
- function De(e) {
1073
+ function it(e) {
691
1074
  for (let t of e.querySelectorAll("script, foreignObject")) t.remove();
692
1075
  let t = (e) => {
693
1076
  for (let t of [...e.attributes]) {
@@ -698,109 +1081,81 @@ function De(e) {
698
1081
  };
699
1082
  t(e);
700
1083
  }
701
- function Oe(e, t) {
1084
+ function at(e, t) {
702
1085
  let { width: n, height: r } = t.option ?? {};
703
1086
  n && e.style.setProperty("--dfk-sql-preview-width", n), r && e.style.setProperty("--dfk-sql-preview-height", r);
704
1087
  }
705
- function ke(e, t, n, r, i) {
1088
+ function ot(e, t, n, r, i) {
706
1089
  let a = n == null ? "" : String(n);
707
1090
  if (e === "iframe") {
708
- let e = l("iframe", {
1091
+ let e = u("iframe", {
709
1092
  class: "dfk-sql-frame",
710
1093
  srcdoc: a,
711
1094
  attrs: {
712
- sandbox: i.option?.sandbox ?? ae,
1095
+ sandbox: i.option?.sandbox ?? Le,
713
1096
  loading: "lazy",
714
1097
  referrerpolicy: "no-referrer",
715
1098
  title: r
716
1099
  }
717
1100
  });
718
- Oe(e, i), t.appendChild(e);
1101
+ at(e, i), t.appendChild(e);
719
1102
  return;
720
1103
  }
721
- let o = Ee(t.ownerDocument, a);
1104
+ if (e === "mermaid") {
1105
+ t.appendChild(u("dfk-mermaid", { attrs: { source: a } }));
1106
+ return;
1107
+ }
1108
+ let o = rt(t.ownerDocument, a);
722
1109
  if (!o) {
723
- t.appendChild(l("pre", {
1110
+ t.appendChild(u("pre", {
724
1111
  class: "dfk-sql-text",
725
1112
  text: a
726
1113
  }));
727
1114
  return;
728
1115
  }
729
- let s = l("div", { class: "dfk-sql-svg" });
730
- s.appendChild(o), Oe(s, i), t.appendChild(s);
1116
+ let s = u("div", { class: "dfk-sql-svg" });
1117
+ s.appendChild(o), at(s, i), t.appendChild(s);
731
1118
  }
732
- function w(e) {
1119
+ function k(e) {
733
1120
  return async ({ host: t, config: n, labels: r, fullscreenButton: i }, a) => {
734
- let o = Te(n, a);
1121
+ let o = nt(n, a);
735
1122
  if (!o) {
736
- t.replaceChildren(he(t.ownerDocument, ge(r, r.noField ?? "this result has no markup column; set `field`")));
1123
+ t.replaceChildren(qe(t.ownerDocument, D(r, r.noField ?? "this result has no markup column; set `field`")));
737
1124
  return;
738
1125
  }
739
- let s = n.tab_name, c = new b(t, a.rows.map((t, i) => {
1126
+ let s = n.tab_name, c = new w(t, a.rows.map((t, i) => {
740
1127
  let a = s ? t[s] : void 0;
741
1128
  return {
742
- label: a == null ? `${r.row ?? "Row"} ${i + 1}` : T(a),
743
- mount: (r) => ke(e, r, t[o], "", n)
1129
+ label: a == null ? `${r.row ?? "Row"} ${i + 1}` : A(a),
1130
+ mount: (r) => ot(e, r, t[o], "", n)
744
1131
  };
745
- }), r.table ?? "Table", (e) => C(e, a, r), i);
1132
+ }), r.table ?? "Table", (e) => O(e, a, r), i);
746
1133
  return () => c.dispose();
747
1134
  };
748
1135
  }
749
- function T(e) {
1136
+ function A(e) {
750
1137
  return e == null ? "NULL" : e instanceof Date ? e.toLocaleString() : typeof e == "object" ? JSON.stringify(e) : String(e);
751
1138
  }
752
- var Ae = {
753
- table: xe,
754
- text: Ce,
755
- iframe: w("iframe"),
756
- html: w("iframe"),
757
- svg: w("svg")
1139
+ var st = {
1140
+ table: Qe,
1141
+ text: et,
1142
+ iframe: k("iframe"),
1143
+ html: k("iframe"),
1144
+ svg: k("svg"),
1145
+ mermaid: k("mermaid")
758
1146
  };
759
- function je(e, t) {
760
- return t.error ? we : Ae[e.show ?? (t.columns.length === 1 && t.rows.length === 1 ? "text" : "table")] ?? xe;
761
- }
762
- //#endregion
763
- //#region src/sql/editor.ts
764
- async function Me(e, t, n) {
765
- let [{ basicSetup: r }, { sql: i }, { EditorView: a, keymap: o }, { defaultKeymap: s, historyKeymap: c }, { Compartment: l }] = await Promise.all([
766
- import("codemirror"),
767
- import("@codemirror/lang-sql"),
768
- import("@codemirror/view"),
769
- import("@codemirror/commands"),
770
- import("@codemirror/state")
771
- ]), u = new l(), d = new a({
772
- doc: t,
773
- extensions: [
774
- r,
775
- i(),
776
- o.of([...s, ...c]),
777
- u.of([]),
778
- a.updateListener.of((e) => {
779
- e.docChanged && n(e.state.doc.toString());
780
- })
781
- ],
782
- parent: e
783
- });
784
- return {
785
- getValue: () => d.state.doc.toString(),
786
- setValue: (e) => d.dispatch({ changes: {
787
- from: 0,
788
- to: d.state.doc.length,
789
- insert: e
790
- } }),
791
- setWrap: (e) => d.dispatch({ effects: u.reconfigure(e ? a.lineWrapping : []) }),
792
- destroy: () => d.destroy()
793
- };
1147
+ function ct(e, t) {
1148
+ return t.error ? tt : st[e.show ?? (t.columns.length === 1 && t.rows.length === 1 ? "text" : "table")] ?? Qe;
794
1149
  }
795
1150
  //#endregion
796
1151
  //#region src/sql/DfkSql.css?inline
797
- var Ne = "*,:before,:after{box-sizing:border-box}:host{margin:1rem 0;display:block}.dfk-sql-code{position:relative}.dfk-sql-editor{border:1px solid var(--ifm-global-border-color,#e0e0e0);border-radius:var(--ifm-global-radius,.4rem);background:var(--ifm-background-surface-color,#fff);font-size:var(--ifm-code-font-size,95%);overflow:hidden}.dfk-sql-editor .cm-editor{outline:none}.dfk-sql-editor-skeleton{padding:4px .75rem}.dfk-sql-editor-skeleton-line{align-items:center;height:1.6em;display:flex}.dfk-sql-editor-skeleton-line:before{content:\"\";background-color:var(--ifm-color-emphasis-200,#e6e6e6);background-image:linear-gradient(90deg, transparent 0%, var(--ifm-color-emphasis-100,#f5f5f5) 50%, transparent 100%);background-size:200% 100%;border-radius:.25em;flex:1;height:.75em;animation:1.6s linear infinite dfk-sql-shimmer}@keyframes dfk-sql-shimmer{0%{background-position:0 0}to{background-position:100% 0}}@media (prefers-reduced-motion:reduce){.dfk-sql-editor-skeleton-line{animation:none}}.dfk-sql-editor .cm-scroller{font-family:var(--ifm-font-family-monospace,ui-monospace, SFMono-Regular, Menlo, monospace);line-height:1.6}.dfk-sql-actions{z-index:1;border-radius:var(--ifm-global-radius,.3rem);background:var(--ifm-color-emphasis-100,#f5f5f5);opacity:0;pointer-events:none;align-items:center;gap:.15rem;padding:.1rem .2rem;transition:opacity .12s;display:flex;position:absolute;top:.25rem;right:.25rem}.dfk-sql-code:hover .dfk-sql-actions,.dfk-sql-code:focus-within .dfk-sql-actions,.dfk-sql-actions-busy{opacity:1;pointer-events:auto}.dfk-sql-status{color:var(--ifm-color-emphasis-700,#666);white-space:nowrap;padding:0 .25rem;font-size:.72rem}.dfk-sql-status:empty{display:none}.dfk-sql-icon-button{border-radius:var(--ifm-global-radius,.25rem);width:1.6rem;height:1.6rem;color:var(--ifm-color-emphasis-700,#666);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0;transition:background .12s,color .12s;display:inline-flex;position:relative}.dfk-sql-icon-button:hover:not(:disabled),.dfk-sql-icon-button:focus-visible{background:var(--ifm-color-emphasis-200,#e6e6e6);color:var(--ifm-color-primary,#14459b)}.dfk-sql-icon-button:disabled{opacity:.45;cursor:progress}.dfk-sql-icon-button[hidden]{display:none}.dfk-sql-icon-on{color:var(--ifm-color-primary,#14459b)}.dfk-sql-icon{font-size:1rem}[data-tip]:after{content:attr(data-tip);z-index:2;border-radius:var(--ifm-global-radius,.25rem);background:var(--ifm-color-emphasis-800,#333);color:var(--ifm-color-emphasis-0,#fff);white-space:nowrap;opacity:0;pointer-events:none;padding:.15rem .4rem;font-size:.7rem;line-height:1.4;transition:opacity .12s;position:absolute;top:calc(100% + .3rem);right:0}[data-tip]:hover:after,[data-tip]:focus-visible:after{opacity:1}", E = null;
798
- function Pe() {
799
- return E || (E = new CSSStyleSheet(), E.replaceSync(Ne)), E;
1152
+ var lt = "*,:before,:after{box-sizing:border-box}:host{margin:1rem 0;display:block}.dfk-sql-code{position:relative}.dfk-sql-editor{border:1px solid var(--ifm-global-border-color,#e0e0e0);border-radius:var(--ifm-global-radius,.4rem);background:var(--ifm-background-surface-color,#fff);font-size:var(--ifm-code-font-size,95%);overflow:hidden}.dfk-sql-editor .cm-editor{outline:none}.dfk-sql-editor-skeleton{padding:4px .75rem}.dfk-sql-editor-skeleton-line{align-items:center;height:1.6em;display:flex}.dfk-sql-editor-skeleton-line:before{content:\"\";background-color:var(--ifm-color-emphasis-200,#e6e6e6);background-image:linear-gradient(90deg, transparent 0%, var(--ifm-color-emphasis-100,#f5f5f5) 50%, transparent 100%);background-size:200% 100%;border-radius:.25em;flex:1;height:.75em;animation:1.6s linear infinite dfk-sql-shimmer}@keyframes dfk-sql-shimmer{0%{background-position:0 0}to{background-position:100% 0}}@media (prefers-reduced-motion:reduce){.dfk-sql-editor-skeleton-line{animation:none}}.dfk-sql-editor .cm-scroller{font-family:var(--ifm-font-family-monospace,ui-monospace, SFMono-Regular, Menlo, monospace);line-height:1.6}.dfk-sql-actions{z-index:1;border-radius:var(--ifm-global-radius,.3rem);background:var(--ifm-color-emphasis-100,#f5f5f5);opacity:0;pointer-events:none;align-items:center;gap:.15rem;padding:.1rem .2rem;transition:opacity .12s;display:flex;position:absolute;top:.25rem;right:.25rem}.dfk-sql-code:hover .dfk-sql-actions,.dfk-sql-code:focus-within .dfk-sql-actions,.dfk-sql-actions-busy{opacity:1;pointer-events:auto}.dfk-sql-status{color:var(--ifm-color-emphasis-700,#666);white-space:nowrap;padding:0 .25rem;font-size:.72rem}.dfk-sql-status:empty{display:none}.dfk-icon-button{border-radius:var(--ifm-global-radius,.25rem);width:1.6rem;height:1.6rem;color:var(--ifm-color-emphasis-700,#666);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;padding:0;transition:background .12s,color .12s;display:inline-flex;position:relative}.dfk-icon-button:hover:not(:disabled),.dfk-icon-button:focus-visible{background:var(--ifm-color-emphasis-200,#e6e6e6);color:var(--ifm-color-primary,#14459b)}.dfk-icon-button:disabled{opacity:.45;cursor:progress}.dfk-icon-button[hidden]{display:none}.dfk-icon-on{color:var(--ifm-color-primary,#14459b)}.dfk-icon{font-size:1rem}[data-tip]:after{content:attr(data-tip);z-index:2;border-radius:var(--ifm-global-radius,.25rem);background:var(--ifm-color-emphasis-800,#333);color:var(--ifm-color-emphasis-0,#fff);white-space:nowrap;opacity:0;pointer-events:none;padding:.15rem .4rem;font-size:.7rem;line-height:1.4;transition:opacity .12s;position:absolute;top:calc(100% + .3rem);right:0}[data-tip]:hover:after,[data-tip]:focus-visible:after{opacity:1}", j = null;
1153
+ function ut() {
1154
+ return j || (j = new CSSStyleSheet(), j.replaceSync(lt)), j;
800
1155
  }
801
1156
  //#endregion
802
1157
  //#region src/sql/DfkSql.ts
803
- var D = {
1158
+ var dt = {
804
1159
  en: {
805
1160
  run: "Run",
806
1161
  format: "Format SQL",
@@ -865,17 +1220,17 @@ var D = {
865
1220
  row: "行",
866
1221
  noField: "该结果没有可展示的标记列,请设置 `field`"
867
1222
  }
868
- }, Fe = 1600, Ie = null;
869
- function Le() {
870
- return Ie ??= import("sql-formatter"), Ie;
1223
+ }, ft = 1600, pt = null;
1224
+ function mt() {
1225
+ return pt ??= import("sql-formatter"), pt;
871
1226
  }
872
- var Re = class extends c {
873
- #e = l("div", { class: "dfk-sql-editor" });
874
- #t = l("div", { class: "dfk-sql-editor-skeleton" });
1227
+ var ht = class extends l {
1228
+ #e = u("div", { class: "dfk-sql-editor" });
1229
+ #t = u("div", { class: "dfk-sql-editor-skeleton" });
875
1230
  #n = [];
876
- #r = l("div", { class: "dfk-sql-code" });
877
- #i = l("div", { class: "dfk-sql-actions" });
878
- #a = l("span", {
1231
+ #r = u("div", { class: "dfk-sql-code" });
1232
+ #i = u("div", { class: "dfk-sql-actions" });
1233
+ #a = u("span", {
879
1234
  class: "dfk-sql-status",
880
1235
  attrs: { "aria-live": "polite" }
881
1236
  });
@@ -885,7 +1240,7 @@ var Re = class extends c {
885
1240
  #l;
886
1241
  #u;
887
1242
  #d;
888
- #f = D.en;
1243
+ #f = dt.en;
889
1244
  #p = { type: "duckfn" };
890
1245
  #m = "";
891
1246
  #h = "";
@@ -904,9 +1259,9 @@ var Re = class extends c {
904
1259
  #E = null;
905
1260
  #D = null;
906
1261
  constructor() {
907
- super(), this.#o = new O("lucide:play", () => void this.#z()), this.#s = new O("lucide:wand-sparkles", () => void this.#P()), this.#c = new O("lucide:rotate-ccw", () => this.#N()), this.#l = new O("lucide:wrap-text", () => this.#F()), this.#u = new O("lucide:copy", () => void this.#I()), this.#d = new O("lucide:maximize", () => this.#L(!this.#x)), this.#i.append(this.#a, this.#o.root, this.#s.root, this.#c.root, this.#l.root, this.#u.root), this.#A(!0), this.#r.append(this.#e, this.#i);
1262
+ super(), this.#o = new h("lucide:play", () => void this.#z()), this.#s = new h("lucide:wand-sparkles", () => void this.#P()), this.#c = new h("lucide:rotate-ccw", () => this.#N()), this.#l = new h("lucide:wrap-text", () => this.#F()), this.#u = new h("lucide:copy", () => void this.#I()), this.#d = new h("lucide:maximize", () => this.#L(!this.#x)), this.#i.append(this.#a, this.#o.root, this.#s.root, this.#c.root, this.#l.root, this.#u.root), this.#A(!0), this.#r.append(this.#e, this.#i);
908
1263
  let e = this.attachShadow({ mode: "open" });
909
- e.adoptedStyleSheets = [Pe()], e.append(this.#r, l("slot", { attrs: { name: "dfk-result" } })), this.#k();
1264
+ e.adoptedStyleSheets = [ut()], e.append(this.#r, u("slot", { attrs: { name: "dfk-result" } })), this.#k();
910
1265
  }
911
1266
  connectedCallback() {
912
1267
  this.#y ||= (this.#O(), !0), this.#R(), this.#M();
@@ -915,7 +1270,7 @@ var Re = class extends c {
915
1270
  this.#L(!1), this.#D?.(), this.#D = null, this.#E?.destroy(), this.#E = null, this.#C !== 0 && (window.clearTimeout(this.#C), this.#C = 0);
916
1271
  }
917
1272
  #O() {
918
- this.#f = D[(document.documentElement.getAttribute("lang") ?? "en").toLowerCase()] ?? D.en;
1273
+ this.#f = dt[(document.documentElement.getAttribute("lang") ?? "en").toLowerCase()] ?? dt.en;
919
1274
  let e = this.getAttribute("config");
920
1275
  if (e) try {
921
1276
  this.#p = JSON.parse(e);
@@ -936,7 +1291,7 @@ var Re = class extends c {
936
1291
  let e = Math.max(1, this.#h.split("\n").length);
937
1292
  for (; this.#n.length > e;) this.#n.pop()?.remove();
938
1293
  for (; this.#n.length < e;) {
939
- let e = l("span", { class: "dfk-sql-editor-skeleton-line" });
1294
+ let e = u("span", { class: "dfk-sql-editor-skeleton-line" });
940
1295
  this.#n.push(e), this.#t.appendChild(e);
941
1296
  }
942
1297
  }
@@ -944,16 +1299,16 @@ var Re = class extends c {
944
1299
  if (!(this.#E || this.#b)) {
945
1300
  this.#b = !0, this.#A(!0);
946
1301
  try {
947
- let e = await Me(this.#e, this.#h, (e) => {
1302
+ let e = await ne(this.#e, this.#h, (e) => {
948
1303
  this.#h = e;
949
- });
1304
+ }, { language: "sql" });
950
1305
  if (!this.isConnected) {
951
1306
  e.destroy();
952
1307
  return;
953
1308
  }
954
1309
  e.setWrap(this.#g), this.#E = e, this.#A(!1);
955
1310
  } catch (e) {
956
- this.#A(!1), this.#V(ze(e));
1311
+ this.#A(!1), this.#V(gt(e));
957
1312
  } finally {
958
1313
  this.#b = !1;
959
1314
  }
@@ -966,7 +1321,7 @@ var Re = class extends c {
966
1321
  if (!this.#v) {
967
1322
  this.#v = !0, this.#s.setDisabled(!0);
968
1323
  try {
969
- let { format: e } = await Le(), t = e(this.#h, { language: "duckdb" });
1324
+ let { format: e } = await mt(), t = e(this.#h, { language: "duckdb" });
970
1325
  this.#h = t, this.#E?.setValue(t);
971
1326
  } catch {
972
1327
  this.#V(this.#f.formatFailed);
@@ -986,18 +1341,18 @@ var Re = class extends c {
986
1341
  }
987
1342
  this.#u.setIcon("lucide:check"), this.#u.setLabel(this.#f.copied), this.#C !== 0 && window.clearTimeout(this.#C), this.#C = window.setTimeout(() => {
988
1343
  this.#C = 0, this.#u.setIcon("lucide:copy"), this.#u.setLabel(this.#f.copy);
989
- }, Fe);
1344
+ }, ft);
990
1345
  }
991
1346
  #L(e) {
992
1347
  this.#x = e, this.#T?.classList.toggle("dfk-sql-result-expanded", e), this.#d.setIcon(e ? "lucide:minimize" : "lucide:maximize"), this.#k(), e !== this.#S && (e ? document.addEventListener("keydown", this.#w) : document.removeEventListener("keydown", this.#w), this.#S = e);
993
1348
  }
994
1349
  #R() {
995
- _.getInstance().init({ allowUnsignedExtensions: this.#p.allowUnsignedExtensions === !0 }).catch(() => void 0);
1350
+ S.getInstance().init({ allowUnsignedExtensions: this.#p.allowUnsignedExtensions === !0 }).catch(() => void 0);
996
1351
  }
997
1352
  async #z() {
998
1353
  if (this.#_) return;
999
1354
  this.#_ = !0, this.#B(!0);
1000
- let e = _.getInstance();
1355
+ let e = S.getInstance();
1001
1356
  try {
1002
1357
  e.state !== "ready" && this.#V(this.#f.initializing);
1003
1358
  try {
@@ -1012,7 +1367,7 @@ var Re = class extends c {
1012
1367
  try {
1013
1368
  for (let n of t) await e.loadExtension(n, { repository: this.#p.repository });
1014
1369
  } catch (e) {
1015
- this.#G(Be(this.#f, ze(e)));
1370
+ this.#G(_t(this.#f, gt(e)));
1016
1371
  return;
1017
1372
  }
1018
1373
  }
@@ -1030,11 +1385,11 @@ var Re = class extends c {
1030
1385
  this.#a.textContent = e;
1031
1386
  }
1032
1387
  #H() {
1033
- let e = _.getInstance().message;
1388
+ let e = S.getInstance().message;
1034
1389
  this.#G(this.#f.initFailed + (e ? `: ${e}` : ""));
1035
1390
  }
1036
1391
  #U() {
1037
- return this.#T || (this.#T = l("div", { class: "dfk-sql-result" }), this.#T.slot = "dfk-result", this.appendChild(this.#T)), this.#T.hidden = !1, this.#T;
1392
+ return this.#T || (this.#T = u("div", { class: "dfk-sql-result" }), this.#T.slot = "dfk-result", this.appendChild(this.#T)), this.#T.hidden = !1, this.#T;
1038
1393
  }
1039
1394
  #W(e) {
1040
1395
  this.#D?.(), this.#D = null, e.error && this.#L(!1);
@@ -1044,7 +1399,7 @@ var Re = class extends c {
1044
1399
  labels: this.#f,
1045
1400
  fullscreenButton: this.#d.root
1046
1401
  };
1047
- je(this.#p, e)(t, e).then((e) => {
1402
+ ct(this.#p, e)(t, e).then((e) => {
1048
1403
  this.#D = e ?? null;
1049
1404
  });
1050
1405
  }
@@ -1056,63 +1411,39 @@ var Re = class extends c {
1056
1411
  #K() {
1057
1412
  this.#L(!1), this.#D?.(), this.#D = null, this.#T && (this.#T.replaceChildren(), this.#T.hidden = !0);
1058
1413
  }
1059
- }, O = class {
1060
- root = l("button", {
1061
- class: "dfk-sql-icon-button",
1062
- type: "button"
1063
- });
1064
- #e = l("iconify-icon", {
1065
- class: "dfk-sql-icon",
1066
- attrs: { "aria-hidden": "true" }
1067
- });
1068
- constructor(e, t) {
1069
- this.root.appendChild(this.#e), this.root.addEventListener("click", t), this.setIcon(e);
1070
- }
1071
- setIcon(e) {
1072
- this.#e.setAttribute("icon", e);
1073
- }
1074
- setLabel(e) {
1075
- this.root.setAttribute("data-tip", e), this.root.setAttribute("aria-label", e);
1076
- }
1077
- setOn(e) {
1078
- this.root.classList.toggle("dfk-sql-icon-on", e);
1079
- }
1080
- setDisabled(e) {
1081
- e ? this.root.setAttribute("disabled", "") : this.root.removeAttribute("disabled");
1082
- }
1083
1414
  };
1084
- function ze(e) {
1415
+ function gt(e) {
1085
1416
  return e instanceof Error ? e.message : String(e);
1086
1417
  }
1087
- function Be(e, t) {
1418
+ function _t(e, t) {
1088
1419
  return `${e.error}: ${t}`;
1089
1420
  }
1090
1421
  //#endregion
1091
1422
  //#region ../node_modules/iconify-icon/dist/iconify-icon.mjs
1092
- var Ve = Object.freeze({
1423
+ var vt = Object.freeze({
1093
1424
  left: 0,
1094
1425
  top: 0,
1095
1426
  width: 16,
1096
1427
  height: 16
1097
- }), k = Object.freeze({
1428
+ }), M = Object.freeze({
1098
1429
  rotate: 0,
1099
1430
  vFlip: !1,
1100
1431
  hFlip: !1
1101
- }), A = Object.freeze({
1102
- ...Ve,
1103
- ...k
1104
- }), He = Object.freeze({
1105
- ...A,
1432
+ }), N = Object.freeze({
1433
+ ...vt,
1434
+ ...M
1435
+ }), P = Object.freeze({
1436
+ ...N,
1106
1437
  body: "",
1107
1438
  hidden: !1
1108
- }), Ue = Object.freeze({
1439
+ }), yt = Object.freeze({
1109
1440
  width: null,
1110
1441
  height: null
1111
- }), We = Object.freeze({
1112
- ...Ue,
1113
- ...k
1442
+ }), bt = Object.freeze({
1443
+ ...yt,
1444
+ ...M
1114
1445
  });
1115
- function Ge(e, t = 0) {
1446
+ function xt(e, t = 0) {
1116
1447
  let n = e.replace(/^-?[0-9.]*/, "");
1117
1448
  function r(e) {
1118
1449
  for (; e < 0;) e += 4;
@@ -1137,9 +1468,9 @@ function Ge(e, t = 0) {
1137
1468
  }
1138
1469
  return t;
1139
1470
  }
1140
- var Ke = /[\s,]+/;
1141
- function qe(e, t) {
1142
- t.split(Ke).forEach((t) => {
1471
+ var St = /[\s,]+/;
1472
+ function Ct(e, t) {
1473
+ t.split(St).forEach((t) => {
1143
1474
  switch (t.trim()) {
1144
1475
  case "horizontal":
1145
1476
  e.hFlip = !0;
@@ -1148,19 +1479,19 @@ function qe(e, t) {
1148
1479
  }
1149
1480
  });
1150
1481
  }
1151
- var Je = {
1152
- ...We,
1482
+ var wt = {
1483
+ ...bt,
1153
1484
  preserveAspectRatio: ""
1154
1485
  };
1155
- function Ye(e) {
1156
- let t = { ...Je }, n = (t, n) => e.getAttribute(t) || n;
1157
- return t.width = n("width", null), t.height = n("height", null), t.rotate = Ge(n("rotate", "")), qe(t, n("flip", "")), t.preserveAspectRatio = n("preserveAspectRatio", n("preserveaspectratio", "")), t;
1486
+ function Tt(e) {
1487
+ let t = { ...wt }, n = (t, n) => e.getAttribute(t) || n;
1488
+ return t.width = n("width", null), t.height = n("height", null), t.rotate = xt(n("rotate", "")), Ct(t, n("flip", "")), t.preserveAspectRatio = n("preserveAspectRatio", n("preserveaspectratio", "")), t;
1158
1489
  }
1159
- function Xe(e, t) {
1160
- for (let n in Je) if (e[n] !== t[n]) return !0;
1490
+ function Et(e, t) {
1491
+ for (let n in wt) if (e[n] !== t[n]) return !0;
1161
1492
  return !1;
1162
1493
  }
1163
- var Ze = /^[a-z0-9]+(-[a-z0-9]+)*$/, j = (e, t, n, r = "") => {
1494
+ var Dt = /^[a-z0-9]+(-[a-z0-9]+)*$/, F = (e, t, n, r = "") => {
1164
1495
  let i = e.split(":");
1165
1496
  if (e.slice(0, 1) === "@") {
1166
1497
  if (i.length < 2 || i.length > 3) return null;
@@ -1173,7 +1504,7 @@ var Ze = /^[a-z0-9]+(-[a-z0-9]+)*$/, j = (e, t, n, r = "") => {
1173
1504
  prefix: n,
1174
1505
  name: e
1175
1506
  };
1176
- return t && !M(a) ? null : a;
1507
+ return t && !I(a) ? null : a;
1177
1508
  }
1178
1509
  let a = i[0], o = a.split("-");
1179
1510
  if (o.length > 1) {
@@ -1182,7 +1513,7 @@ var Ze = /^[a-z0-9]+(-[a-z0-9]+)*$/, j = (e, t, n, r = "") => {
1182
1513
  prefix: o.shift(),
1183
1514
  name: o.join("-")
1184
1515
  };
1185
- return t && !M(e) ? null : e;
1516
+ return t && !I(e) ? null : e;
1186
1517
  }
1187
1518
  if (n && r === "") {
1188
1519
  let e = {
@@ -1190,11 +1521,11 @@ var Ze = /^[a-z0-9]+(-[a-z0-9]+)*$/, j = (e, t, n, r = "") => {
1190
1521
  prefix: "",
1191
1522
  name: a
1192
1523
  };
1193
- return t && !M(e, n) ? null : e;
1524
+ return t && !I(e, n) ? null : e;
1194
1525
  }
1195
1526
  return null;
1196
- }, M = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
1197
- function Qe(e, t) {
1527
+ }, I = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
1528
+ function Ot(e, t) {
1198
1529
  let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
1199
1530
  function a(e) {
1200
1531
  if (n[e]) return i[e] = [];
@@ -1207,65 +1538,65 @@ function Qe(e, t) {
1207
1538
  }
1208
1539
  return Object.keys(n).concat(Object.keys(r)).forEach(a), i;
1209
1540
  }
1210
- function $e(e, t) {
1541
+ function kt(e, t) {
1211
1542
  let n = {};
1212
1543
  !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
1213
1544
  let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
1214
1545
  return r && (n.rotate = r), n;
1215
1546
  }
1216
- function et(e, t) {
1217
- let n = $e(e, t);
1218
- for (let r in He) r in k ? r in e && !(r in n) && (n[r] = k[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
1547
+ function At(e, t) {
1548
+ let n = kt(e, t);
1549
+ for (let r in P) r in M ? r in e && !(r in n) && (n[r] = M[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
1219
1550
  return n;
1220
1551
  }
1221
- function tt(e, t, n) {
1552
+ function jt(e, t, n) {
1222
1553
  let r = e.icons, i = e.aliases || Object.create(null), a = {};
1223
1554
  function o(e) {
1224
- a = et(r[e] || i[e], a);
1555
+ a = At(r[e] || i[e], a);
1225
1556
  }
1226
- return o(t), n.forEach(o), et(e, a);
1557
+ return o(t), n.forEach(o), At(e, a);
1227
1558
  }
1228
- function nt(e, t) {
1559
+ function Mt(e, t) {
1229
1560
  let n = [];
1230
1561
  if (typeof e != "object" || typeof e.icons != "object") return n;
1231
1562
  e.not_found instanceof Array && e.not_found.forEach((e) => {
1232
1563
  t(e, null), n.push(e);
1233
1564
  });
1234
- let r = Qe(e);
1565
+ let r = Ot(e);
1235
1566
  for (let i in r) {
1236
1567
  let a = r[i];
1237
- a && (t(i, tt(e, i, a)), n.push(i));
1568
+ a && (t(i, jt(e, i, a)), n.push(i));
1238
1569
  }
1239
1570
  return n;
1240
1571
  }
1241
- var rt = {
1572
+ var Nt = {
1242
1573
  provider: "",
1243
1574
  aliases: {},
1244
1575
  not_found: {},
1245
- ...Ve
1576
+ ...vt
1246
1577
  };
1247
- function N(e, t) {
1578
+ function Pt(e, t) {
1248
1579
  for (let n in t) if (n in e && typeof e[n] != typeof t[n]) return !1;
1249
1580
  return !0;
1250
1581
  }
1251
- function it(e) {
1582
+ function Ft(e) {
1252
1583
  if (typeof e != "object" || !e) return null;
1253
1584
  let t = e;
1254
- if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !N(e, rt)) return null;
1585
+ if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !Pt(e, Nt)) return null;
1255
1586
  let n = t.icons;
1256
1587
  for (let e in n) {
1257
1588
  let t = n[e];
1258
- if (!e || typeof t.body != "string" || !N(t, He)) return null;
1589
+ if (!e || typeof t.body != "string" || !Pt(t, P)) return null;
1259
1590
  }
1260
1591
  let r = t.aliases || Object.create(null);
1261
1592
  for (let e in r) {
1262
1593
  let t = r[e], i = t.parent;
1263
- if (!e || typeof i != "string" || !n[i] && !r[i] || !N(t, He)) return null;
1594
+ if (!e || typeof i != "string" || !n[i] && !r[i] || !Pt(t, P)) return null;
1264
1595
  }
1265
1596
  return t;
1266
1597
  }
1267
- var P = Object.create(null);
1268
- function at(e, t) {
1598
+ var L = Object.create(null);
1599
+ function It(e, t) {
1269
1600
  return {
1270
1601
  provider: e,
1271
1602
  prefix: t,
@@ -1273,78 +1604,78 @@ function at(e, t) {
1273
1604
  missing: /* @__PURE__ */ new Set()
1274
1605
  };
1275
1606
  }
1276
- function F(e, t) {
1277
- let n = P[e] || (P[e] = Object.create(null));
1278
- return n[t] || (n[t] = at(e, t));
1607
+ function R(e, t) {
1608
+ let n = L[e] || (L[e] = Object.create(null));
1609
+ return n[t] || (n[t] = It(e, t));
1279
1610
  }
1280
- function ot(e, t) {
1281
- return it(t) ? nt(t, (t, n) => {
1611
+ function Lt(e, t) {
1612
+ return Ft(t) ? Mt(t, (t, n) => {
1282
1613
  n ? e.icons[t] = n : e.missing.add(t);
1283
1614
  }) : [];
1284
1615
  }
1285
- function st(e, t, n) {
1616
+ function Rt(e, t, n) {
1286
1617
  try {
1287
1618
  if (typeof n.body == "string") return e.icons[t] = { ...n }, !0;
1288
1619
  } catch {}
1289
1620
  return !1;
1290
1621
  }
1291
- function ct(e, t) {
1622
+ function zt(e, t) {
1292
1623
  let n = [];
1293
- return (typeof e == "string" ? [e] : Object.keys(P)).forEach((e) => {
1294
- (typeof e == "string" && typeof t == "string" ? [t] : Object.keys(P[e] || {})).forEach((t) => {
1295
- let r = F(e, t);
1624
+ return (typeof e == "string" ? [e] : Object.keys(L)).forEach((e) => {
1625
+ (typeof e == "string" && typeof t == "string" ? [t] : Object.keys(L[e] || {})).forEach((t) => {
1626
+ let r = R(e, t);
1296
1627
  n = n.concat(Object.keys(r.icons).map((n) => (e === "" ? "" : "@" + e + ":") + t + ":" + n));
1297
1628
  });
1298
1629
  }), n;
1299
1630
  }
1300
- var I = !1;
1301
- function lt(e) {
1302
- return typeof e == "boolean" && (I = e), I;
1631
+ var z = !1;
1632
+ function Bt(e) {
1633
+ return typeof e == "boolean" && (z = e), z;
1303
1634
  }
1304
- function L(e) {
1305
- let t = typeof e == "string" ? j(e, !0, I) : e;
1635
+ function B(e) {
1636
+ let t = typeof e == "string" ? F(e, !0, z) : e;
1306
1637
  if (t) {
1307
- let e = F(t.provider, t.prefix), n = t.name;
1638
+ let e = R(t.provider, t.prefix), n = t.name;
1308
1639
  return e.icons[n] || (e.missing.has(n) ? null : void 0);
1309
1640
  }
1310
1641
  }
1311
- function ut(e, t) {
1312
- let n = j(e, !0, I);
1642
+ function Vt(e, t) {
1643
+ let n = F(e, !0, z);
1313
1644
  if (!n) return !1;
1314
- let r = F(n.provider, n.prefix);
1315
- return t ? st(r, n.name, t) : (r.missing.add(n.name), !0);
1645
+ let r = R(n.provider, n.prefix);
1646
+ return t ? Rt(r, n.name, t) : (r.missing.add(n.name), !0);
1316
1647
  }
1317
- function dt(e, t) {
1648
+ function Ht(e, t) {
1318
1649
  if (typeof e != "object") return !1;
1319
- if (typeof t != "string" && (t = e.provider || ""), I && !t && !e.prefix) {
1650
+ if (typeof t != "string" && (t = e.provider || ""), z && !t && !e.prefix) {
1320
1651
  let t = !1;
1321
- return it(e) && (e.prefix = "", nt(e, (e, n) => {
1322
- ut(e, n) && (t = !0);
1652
+ return Ft(e) && (e.prefix = "", Mt(e, (e, n) => {
1653
+ Vt(e, n) && (t = !0);
1323
1654
  })), t;
1324
1655
  }
1325
1656
  let n = e.prefix;
1326
- return M({
1657
+ return I({
1327
1658
  prefix: n,
1328
1659
  name: "a"
1329
- }) ? !!ot(F(t, n), e) : !1;
1660
+ }) ? !!Lt(R(t, n), e) : !1;
1330
1661
  }
1331
- function ft(e) {
1332
- return !!L(e);
1662
+ function Ut(e) {
1663
+ return !!B(e);
1333
1664
  }
1334
- function pt(e) {
1335
- let t = L(e);
1665
+ function Wt(e) {
1666
+ let t = B(e);
1336
1667
  return t && {
1337
- ...A,
1668
+ ...N,
1338
1669
  ...t
1339
1670
  };
1340
1671
  }
1341
- function mt(e, t) {
1672
+ function Gt(e, t) {
1342
1673
  e.forEach((e) => {
1343
1674
  let n = e.loaderCallbacks;
1344
1675
  n && (e.loaderCallbacks = n.filter((e) => e.id !== t));
1345
1676
  });
1346
1677
  }
1347
- function ht(e) {
1678
+ function Kt(e) {
1348
1679
  e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
1349
1680
  e.pendingCallbacksFlag = !1;
1350
1681
  let t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
@@ -1367,13 +1698,13 @@ function ht(e) {
1367
1698
  });
1368
1699
  else return n = !0, !0;
1369
1700
  return !1;
1370
- }), a.pending.length !== o && (n || mt([e], t.id), t.callback(a.loaded.slice(0), a.missing.slice(0), a.pending.slice(0), t.abort));
1701
+ }), a.pending.length !== o && (n || Gt([e], t.id), t.callback(a.loaded.slice(0), a.missing.slice(0), a.pending.slice(0), t.abort));
1371
1702
  });
1372
1703
  }));
1373
1704
  }
1374
- var gt = 0;
1375
- function _t(e, t, n) {
1376
- let r = gt++, i = mt.bind(null, n, r);
1705
+ var qt = 0;
1706
+ function Jt(e, t, n) {
1707
+ let r = qt++, i = Gt.bind(null, n, r);
1377
1708
  if (!t.pending.length) return i;
1378
1709
  let a = {
1379
1710
  id: r,
@@ -1385,7 +1716,7 @@ function _t(e, t, n) {
1385
1716
  (e.loaderCallbacks ||= []).push(a);
1386
1717
  }), i;
1387
1718
  }
1388
- function vt(e) {
1719
+ function Yt(e) {
1389
1720
  let t = {
1390
1721
  loaded: [],
1391
1722
  missing: [],
@@ -1400,7 +1731,7 @@ function vt(e) {
1400
1731
  return e.forEach((e) => {
1401
1732
  if (r.name === e.name && r.prefix === e.prefix && r.provider === e.provider) return;
1402
1733
  r = e;
1403
- let i = e.provider, a = e.prefix, o = e.name, s = n[i] || (n[i] = Object.create(null)), c = s[a] || (s[a] = F(i, a)), l;
1734
+ let i = e.provider, a = e.prefix, o = e.name, s = n[i] || (n[i] = Object.create(null)), c = s[a] || (s[a] = R(i, a)), l;
1404
1735
  l = o in c.icons ? t.loaded : a === "" || c.missing.has(o) ? t.missing : t.pending;
1405
1736
  let u = {
1406
1737
  provider: i,
@@ -1410,21 +1741,21 @@ function vt(e) {
1410
1741
  l.push(u);
1411
1742
  }), t;
1412
1743
  }
1413
- var R = Object.create(null);
1414
- function yt(e, t) {
1415
- R[e] = t;
1744
+ var V = Object.create(null);
1745
+ function Xt(e, t) {
1746
+ V[e] = t;
1416
1747
  }
1417
- function z(e) {
1418
- return R[e] || R[""];
1748
+ function H(e) {
1749
+ return V[e] || V[""];
1419
1750
  }
1420
- function bt(e, t = !0, n = !1) {
1751
+ function Zt(e, t = !0, n = !1) {
1421
1752
  let r = [];
1422
1753
  return e.forEach((e) => {
1423
- let i = typeof e == "string" ? j(e, t, n) : e;
1754
+ let i = typeof e == "string" ? F(e, t, n) : e;
1424
1755
  i && r.push(i);
1425
1756
  }), r;
1426
1757
  }
1427
- function B(e) {
1758
+ function U(e) {
1428
1759
  let t;
1429
1760
  if (typeof e.resources == "string") t = [e.resources];
1430
1761
  else if (t = e.resources, !(t instanceof Array) || !t.length) return null;
@@ -1439,19 +1770,19 @@ function B(e) {
1439
1770
  dataAfterTimeout: e.dataAfterTimeout !== !1
1440
1771
  };
1441
1772
  }
1442
- for (var V = Object.create(null), H = ["https://api.simplesvg.com", "https://api.unisvg.com"], U = []; H.length > 0;) H.length === 1 || Math.random() > .5 ? U.push(H.shift()) : U.push(H.pop());
1443
- V[""] = B({ resources: ["https://api.iconify.design"].concat(U) });
1444
- function xt(e, t) {
1445
- let n = B(t);
1446
- return n !== null && (V[e] = n, !0);
1773
+ for (var W = Object.create(null), G = ["https://api.simplesvg.com", "https://api.unisvg.com"], K = []; G.length > 0;) G.length === 1 || Math.random() > .5 ? K.push(G.shift()) : K.push(G.pop());
1774
+ W[""] = U({ resources: ["https://api.iconify.design"].concat(K) });
1775
+ function Qt(e, t) {
1776
+ let n = U(t);
1777
+ return n !== null && (W[e] = n, !0);
1447
1778
  }
1448
- function W(e) {
1449
- return V[e];
1779
+ function q(e) {
1780
+ return W[e];
1450
1781
  }
1451
- function St() {
1452
- return Object.keys(V);
1782
+ function $t() {
1783
+ return Object.keys(W);
1453
1784
  }
1454
- var Ct = {
1785
+ var en = {
1455
1786
  resources: [],
1456
1787
  index: 0,
1457
1788
  timeout: 2e3,
@@ -1459,7 +1790,7 @@ var Ct = {
1459
1790
  random: !1,
1460
1791
  dataAfterTimeout: !1
1461
1792
  };
1462
- function wt(e, t, n, r) {
1793
+ function tn(e, t, n, r) {
1463
1794
  let i = e.resources.length, a = e.random ? Math.floor(Math.random() * i) : e.index, o;
1464
1795
  if (e.random) {
1465
1796
  let t = e.resources.slice(0);
@@ -1474,36 +1805,36 @@ function wt(e, t, n, r) {
1474
1805
  function m() {
1475
1806
  d &&= (clearTimeout(d), null);
1476
1807
  }
1477
- function h() {
1808
+ function ee() {
1478
1809
  c === "pending" && (c = "aborted"), m(), f.forEach((e) => {
1479
1810
  e.status === "pending" && (e.status = "aborted");
1480
1811
  }), f = [];
1481
1812
  }
1482
- function ee(e, t) {
1813
+ function te(e, t) {
1483
1814
  t && (p = []), typeof e == "function" && p.push(e);
1484
1815
  }
1485
- function te() {
1816
+ function ne() {
1486
1817
  return {
1487
1818
  startTime: s,
1488
1819
  payload: t,
1489
1820
  status: c,
1490
1821
  queriesSent: l,
1491
1822
  queriesPending: f.length,
1492
- subscribe: ee,
1493
- abort: h
1823
+ subscribe: te,
1824
+ abort: ee
1494
1825
  };
1495
1826
  }
1496
- function g() {
1827
+ function h() {
1497
1828
  c = "failed", p.forEach((e) => {
1498
1829
  e(void 0, u);
1499
1830
  });
1500
1831
  }
1501
- function _() {
1832
+ function g() {
1502
1833
  f.forEach((e) => {
1503
1834
  e.status === "pending" && (e.status = "aborted");
1504
1835
  }), f = [];
1505
1836
  }
1506
- function ne(t, n, r) {
1837
+ function _(t, n, r) {
1507
1838
  let i = n !== "success";
1508
1839
  switch (f = f.filter((e) => e !== t), c) {
1509
1840
  case "pending": break;
@@ -1513,14 +1844,14 @@ function wt(e, t, n, r) {
1513
1844
  default: return;
1514
1845
  }
1515
1846
  if (n === "abort") {
1516
- u = r, g();
1847
+ u = r, h();
1517
1848
  return;
1518
1849
  }
1519
1850
  if (i) {
1520
- u = r, f.length || (o.length ? v() : g());
1851
+ u = r, f.length || (o.length ? v() : h());
1521
1852
  return;
1522
1853
  }
1523
- if (m(), _(), !e.random) {
1854
+ if (m(), g(), !e.random) {
1524
1855
  let n = e.resources.indexOf(t.resource);
1525
1856
  n !== -1 && n !== e.index && (e.index = n);
1526
1857
  }
@@ -1535,34 +1866,34 @@ function wt(e, t, n, r) {
1535
1866
  if (r === void 0) {
1536
1867
  if (f.length) {
1537
1868
  d = setTimeout(() => {
1538
- m(), c === "pending" && (_(), g());
1869
+ m(), c === "pending" && (g(), h());
1539
1870
  }, e.timeout);
1540
1871
  return;
1541
1872
  }
1542
- g();
1873
+ h();
1543
1874
  return;
1544
1875
  }
1545
1876
  let i = {
1546
1877
  status: "pending",
1547
1878
  resource: r,
1548
1879
  callback: (e, t) => {
1549
- ne(i, e, t);
1880
+ _(i, e, t);
1550
1881
  }
1551
1882
  };
1552
1883
  f.push(i), l++, d = setTimeout(v, e.rotate), n(r, t, i.callback);
1553
1884
  }
1554
- return setTimeout(v), te;
1885
+ return setTimeout(v), ne;
1555
1886
  }
1556
- function Tt(e) {
1887
+ function nn(e) {
1557
1888
  let t = {
1558
- ...Ct,
1889
+ ...en,
1559
1890
  ...e
1560
1891
  }, n = [];
1561
1892
  function r() {
1562
1893
  n = n.filter((e) => e().status === "pending");
1563
1894
  }
1564
1895
  function i(e, i, a) {
1565
- let o = wt(t, e, i, (e, t) => {
1896
+ let o = tn(t, e, i, (e, t) => {
1566
1897
  r(), a && a(e, t);
1567
1898
  });
1568
1899
  return n.push(o), o;
@@ -1580,53 +1911,53 @@ function Tt(e) {
1580
1911
  cleanup: r
1581
1912
  };
1582
1913
  }
1583
- function Et() {}
1584
- var G = Object.create(null);
1585
- function Dt(e) {
1586
- if (!G[e]) {
1587
- let t = W(e);
1914
+ function rn() {}
1915
+ var an = Object.create(null);
1916
+ function on(e) {
1917
+ if (!an[e]) {
1918
+ let t = q(e);
1588
1919
  if (!t) return;
1589
- G[e] = {
1920
+ an[e] = {
1590
1921
  config: t,
1591
- redundancy: Tt(t)
1922
+ redundancy: nn(t)
1592
1923
  };
1593
1924
  }
1594
- return G[e];
1925
+ return an[e];
1595
1926
  }
1596
- function Ot(e, t, n) {
1927
+ function sn(e, t, n) {
1597
1928
  let r, i;
1598
1929
  if (typeof e == "string") {
1599
- let t = z(e);
1600
- if (!t) return n(void 0, 424), Et;
1930
+ let t = H(e);
1931
+ if (!t) return n(void 0, 424), rn;
1601
1932
  i = t.send;
1602
- let a = Dt(e);
1933
+ let a = on(e);
1603
1934
  a && (r = a.redundancy);
1604
1935
  } else {
1605
- let t = B(e);
1936
+ let t = U(e);
1606
1937
  if (t) {
1607
- r = Tt(t);
1608
- let n = z(e.resources ? e.resources[0] : "");
1938
+ r = nn(t);
1939
+ let n = H(e.resources ? e.resources[0] : "");
1609
1940
  n && (i = n.send);
1610
1941
  }
1611
1942
  }
1612
- return !r || !i ? (n(void 0, 424), Et) : r.query(t, i, n)().abort;
1943
+ return !r || !i ? (n(void 0, 424), rn) : r.query(t, i, n)().abort;
1613
1944
  }
1614
- function kt() {}
1615
- function At(e) {
1945
+ function cn() {}
1946
+ function ln(e) {
1616
1947
  e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
1617
- e.iconsLoaderFlag = !1, ht(e);
1948
+ e.iconsLoaderFlag = !1, Kt(e);
1618
1949
  }));
1619
1950
  }
1620
- function jt(e) {
1951
+ function un(e) {
1621
1952
  let t = [], n = [];
1622
1953
  return e.forEach((e) => {
1623
- (e.match(Ze) ? t : n).push(e);
1954
+ (e.match(Dt) ? t : n).push(e);
1624
1955
  }), {
1625
1956
  valid: t,
1626
1957
  invalid: n
1627
1958
  };
1628
1959
  }
1629
- function K(e, t, n) {
1960
+ function J(e, t, n) {
1630
1961
  function r() {
1631
1962
  let n = e.pendingIcons;
1632
1963
  t.forEach((t) => {
@@ -1634,38 +1965,38 @@ function K(e, t, n) {
1634
1965
  });
1635
1966
  }
1636
1967
  if (n && typeof n == "object") try {
1637
- if (!ot(e, n).length) {
1968
+ if (!Lt(e, n).length) {
1638
1969
  r();
1639
1970
  return;
1640
1971
  }
1641
1972
  } catch (e) {
1642
1973
  console.error(e);
1643
1974
  }
1644
- r(), At(e);
1975
+ r(), ln(e);
1645
1976
  }
1646
- function Mt(e, t) {
1977
+ function dn(e, t) {
1647
1978
  e instanceof Promise ? e.then((e) => {
1648
1979
  t(e);
1649
1980
  }).catch(() => {
1650
1981
  t(null);
1651
1982
  }) : t(e);
1652
1983
  }
1653
- function Nt(e, t) {
1984
+ function fn(e, t) {
1654
1985
  e.iconsToLoad = e.iconsToLoad ? e.iconsToLoad.concat(t).sort() : t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
1655
1986
  e.iconsQueueFlag = !1;
1656
1987
  let { provider: t, prefix: n } = e, r = e.iconsToLoad;
1657
1988
  if (delete e.iconsToLoad, !r || !r.length) return;
1658
1989
  let i = e.loadIcon;
1659
1990
  if (e.loadIcons && (r.length > 1 || !i)) {
1660
- Mt(e.loadIcons(r, n, t), (t) => {
1661
- K(e, r, t);
1991
+ dn(e.loadIcons(r, n, t), (t) => {
1992
+ J(e, r, t);
1662
1993
  });
1663
1994
  return;
1664
1995
  }
1665
1996
  if (i) {
1666
1997
  r.forEach((r) => {
1667
- Mt(i(r, n, t), (t) => {
1668
- K(e, [r], t ? {
1998
+ dn(i(r, n, t), (t) => {
1999
+ J(e, [r], t ? {
1669
2000
  prefix: n,
1670
2001
  icons: { [r]: t }
1671
2002
  } : null);
@@ -1673,26 +2004,26 @@ function Nt(e, t) {
1673
2004
  });
1674
2005
  return;
1675
2006
  }
1676
- let { valid: a, invalid: o } = jt(r);
1677
- if (o.length && K(e, o, null), !a.length) return;
1678
- let s = n.match(Ze) ? z(t) : null;
2007
+ let { valid: a, invalid: o } = un(r);
2008
+ if (o.length && J(e, o, null), !a.length) return;
2009
+ let s = n.match(Dt) ? H(t) : null;
1679
2010
  if (!s) {
1680
- K(e, a, null);
2011
+ J(e, a, null);
1681
2012
  return;
1682
2013
  }
1683
2014
  s.prepare(t, n, a).forEach((n) => {
1684
- Ot(t, n, (t) => {
1685
- K(e, n.icons, t);
2015
+ sn(t, n, (t) => {
2016
+ J(e, n.icons, t);
1686
2017
  });
1687
2018
  });
1688
2019
  }));
1689
2020
  }
1690
- var q = (e, t) => {
1691
- let n = vt(bt(e, !0, lt()));
2021
+ var pn = (e, t) => {
2022
+ let n = Yt(Zt(e, !0, Bt()));
1692
2023
  if (!n.pending.length) {
1693
2024
  let e = !0;
1694
2025
  return t && setTimeout(() => {
1695
- e && t(n.loaded, n.missing, n.pending, kt);
2026
+ e && t(n.loaded, n.missing, n.pending, cn);
1696
2027
  }), () => {
1697
2028
  e = !1;
1698
2029
  };
@@ -1701,28 +2032,28 @@ var q = (e, t) => {
1701
2032
  return n.pending.forEach((e) => {
1702
2033
  let { provider: t, prefix: n } = e;
1703
2034
  if (n === o && t === a) return;
1704
- a = t, o = n, i.push(F(t, n));
2035
+ a = t, o = n, i.push(R(t, n));
1705
2036
  let s = r[t] || (r[t] = Object.create(null));
1706
2037
  s[n] || (s[n] = []);
1707
2038
  }), n.pending.forEach((e) => {
1708
- let { provider: t, prefix: n, name: i } = e, a = F(t, n), o = a.pendingIcons ||= /* @__PURE__ */ new Set();
2039
+ let { provider: t, prefix: n, name: i } = e, a = R(t, n), o = a.pendingIcons ||= /* @__PURE__ */ new Set();
1709
2040
  o.has(i) || (o.add(i), r[t][n].push(i));
1710
2041
  }), i.forEach((e) => {
1711
2042
  let t = r[e.provider][e.prefix];
1712
- t.length && Nt(e, t);
1713
- }), t ? _t(t, n, i) : kt;
1714
- }, Pt = (e) => new Promise((t, n) => {
1715
- let r = typeof e == "string" ? j(e, !0) : e;
2043
+ t.length && fn(e, t);
2044
+ }), t ? Jt(t, n, i) : cn;
2045
+ }, mn = (e) => new Promise((t, n) => {
2046
+ let r = typeof e == "string" ? F(e, !0) : e;
1716
2047
  if (!r) {
1717
2048
  n(e);
1718
2049
  return;
1719
2050
  }
1720
- q([r || e], (i) => {
2051
+ pn([r || e], (i) => {
1721
2052
  if (i.length && r) {
1722
- let e = L(r);
2053
+ let e = B(r);
1723
2054
  if (e) {
1724
2055
  t({
1725
- ...A,
2056
+ ...N,
1726
2057
  ...e
1727
2058
  });
1728
2059
  return;
@@ -1731,28 +2062,28 @@ var q = (e, t) => {
1731
2062
  n(e);
1732
2063
  });
1733
2064
  });
1734
- function Ft(e) {
2065
+ function hn(e) {
1735
2066
  try {
1736
2067
  let t = typeof e == "string" ? JSON.parse(e) : e;
1737
2068
  if (typeof t.body == "string") return { ...t };
1738
2069
  } catch {}
1739
2070
  }
1740
- function It(e, t) {
2071
+ function gn(e, t) {
1741
2072
  if (typeof e == "object") return {
1742
- data: Ft(e),
2073
+ data: hn(e),
1743
2074
  value: e
1744
2075
  };
1745
2076
  if (typeof e != "string") return { value: e };
1746
2077
  if (e.includes("{")) {
1747
- let t = Ft(e);
2078
+ let t = hn(e);
1748
2079
  if (t) return {
1749
2080
  data: t,
1750
2081
  value: e
1751
2082
  };
1752
2083
  }
1753
- let n = j(e, !0, !0);
2084
+ let n = F(e, !0, !0);
1754
2085
  if (!n) return { value: e };
1755
- let r = L(n);
2086
+ let r = B(n);
1756
2087
  return r !== void 0 || !n.prefix ? {
1757
2088
  value: e,
1758
2089
  name: n,
@@ -1760,29 +2091,29 @@ function It(e, t) {
1760
2091
  } : {
1761
2092
  value: e,
1762
2093
  name: n,
1763
- loading: q([n], () => t(e, n, L(n)))
2094
+ loading: pn([n], () => t(e, n, B(n)))
1764
2095
  };
1765
2096
  }
1766
- var Lt = !1;
2097
+ var _n = !1;
1767
2098
  try {
1768
- Lt = navigator.vendor.indexOf("Apple") === 0;
2099
+ _n = navigator.vendor.indexOf("Apple") === 0;
1769
2100
  } catch {}
1770
- function Rt(e, t) {
2101
+ function vn(e, t) {
1771
2102
  switch (t) {
1772
2103
  case "svg":
1773
2104
  case "bg":
1774
2105
  case "mask": return t;
1775
2106
  }
1776
- return t !== "style" && (Lt || e.indexOf("<a") === -1) ? "svg" : e.indexOf("currentColor") === -1 ? "bg" : "mask";
2107
+ return t !== "style" && (_n || e.indexOf("<a") === -1) ? "svg" : e.indexOf("currentColor") === -1 ? "bg" : "mask";
1777
2108
  }
1778
- var zt = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Bt = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
1779
- function J(e, t, n) {
2109
+ var yn = /(-?[0-9.]*[0-9]+[0-9.]*)/g, bn = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
2110
+ function xn(e, t, n) {
1780
2111
  if (t === 1) return e;
1781
2112
  if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
1782
2113
  if (typeof e != "string") return e;
1783
- let r = e.split(zt);
2114
+ let r = e.split(yn);
1784
2115
  if (r === null || !r.length) return e;
1785
- let i = [], a = r.shift(), o = Bt.test(a);
2116
+ let i = [], a = r.shift(), o = bn.test(a);
1786
2117
  for (;;) {
1787
2118
  if (o) {
1788
2119
  let e = parseFloat(a);
@@ -1792,7 +2123,7 @@ function J(e, t, n) {
1792
2123
  o = !o;
1793
2124
  }
1794
2125
  }
1795
- function Vt(e, t = "defs") {
2126
+ function Sn(e, t = "defs") {
1796
2127
  let n = "", r = e.indexOf("<" + t);
1797
2128
  for (; r >= 0;) {
1798
2129
  let i = e.indexOf(">", r), a = e.indexOf("</" + t);
@@ -1806,20 +2137,20 @@ function Vt(e, t = "defs") {
1806
2137
  content: e
1807
2138
  };
1808
2139
  }
1809
- function Ht(e, t) {
2140
+ function Cn(e, t) {
1810
2141
  return e ? "<defs>" + e + "</defs>" + t : t;
1811
2142
  }
1812
- function Ut(e, t, n) {
1813
- let r = Vt(e);
1814
- return Ht(r.defs, t + r.content + n);
2143
+ function wn(e, t, n) {
2144
+ let r = Sn(e);
2145
+ return Cn(r.defs, t + r.content + n);
1815
2146
  }
1816
- var Wt = (e) => e === "unset" || e === "undefined" || e === "none";
1817
- function Gt(e, t) {
2147
+ var Tn = (e) => e === "unset" || e === "undefined" || e === "none";
2148
+ function En(e, t) {
1818
2149
  let n = {
1819
- ...A,
2150
+ ...N,
1820
2151
  ...e
1821
2152
  }, r = {
1822
- ...We,
2153
+ ...bt,
1823
2154
  ...t
1824
2155
  }, i = {
1825
2156
  left: n.left,
@@ -1840,12 +2171,12 @@ function Gt(e, t) {
1840
2171
  break;
1841
2172
  case 3: s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
1842
2173
  }
1843
- o % 2 == 1 && (i.left !== i.top && (s = i.left, i.left = i.top, i.top = s), i.width !== i.height && (s = i.width, i.width = i.height, i.height = s)), t.length && (a = Ut(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
2174
+ o % 2 == 1 && (i.left !== i.top && (s = i.left, i.left = i.top, i.top = s), i.width !== i.height && (s = i.width, i.width = i.height, i.height = s)), t.length && (a = wn(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
1844
2175
  });
1845
2176
  let o = r.width, s = r.height, c = i.width, l = i.height, u, d;
1846
- o === null ? (d = s === null ? "1em" : s === "auto" ? l : s, u = J(d, c / l)) : (u = o === "auto" ? c : o, d = s === null ? J(u, l / c) : s === "auto" ? l : s);
2177
+ o === null ? (d = s === null ? "1em" : s === "auto" ? l : s, u = xn(d, c / l)) : (u = o === "auto" ? c : o, d = s === null ? xn(u, l / c) : s === "auto" ? l : s);
1847
2178
  let f = {}, p = (e, t) => {
1848
- Wt(t) || (f[e] = t.toString());
2179
+ Tn(t) || (f[e] = t.toString());
1849
2180
  };
1850
2181
  p("width", u), p("height", d);
1851
2182
  let m = [
@@ -1860,19 +2191,19 @@ function Gt(e, t) {
1860
2191
  body: a
1861
2192
  };
1862
2193
  }
1863
- function Kt(e, t) {
2194
+ function Dn(e, t) {
1864
2195
  let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
1865
2196
  for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
1866
2197
  return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
1867
2198
  }
1868
- function qt(e) {
2199
+ function On(e) {
1869
2200
  return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ").replace(/:/g, "%3A").replace(/\//g, "%2F");
1870
2201
  }
1871
- function Jt(e) {
1872
- return "data:image/svg+xml," + qt(e);
2202
+ function kn(e) {
2203
+ return "data:image/svg+xml," + On(e);
1873
2204
  }
1874
- function Yt(e) {
1875
- return "url(\"" + Jt(e) + "\")";
2205
+ function An(e) {
2206
+ return "url(\"" + kn(e) + "\")";
1876
2207
  }
1877
2208
  var Y = (() => {
1878
2209
  let e;
@@ -1880,14 +2211,14 @@ var Y = (() => {
1880
2211
  if (e = fetch, typeof e == "function") return e;
1881
2212
  } catch {}
1882
2213
  })();
1883
- function Xt(e) {
2214
+ function jn(e) {
1884
2215
  Y = e;
1885
2216
  }
1886
- function Zt() {
2217
+ function Mn() {
1887
2218
  return Y;
1888
2219
  }
1889
- function Qt(e, t) {
1890
- let n = W(e);
2220
+ function Nn(e, t) {
2221
+ let n = q(e);
1891
2222
  if (!n) return 0;
1892
2223
  let r;
1893
2224
  if (!n.maxURL) r = 0;
@@ -1901,11 +2232,11 @@ function Qt(e, t) {
1901
2232
  }
1902
2233
  return r;
1903
2234
  }
1904
- function $t(e) {
2235
+ function Pn(e) {
1905
2236
  return e === 404;
1906
2237
  }
1907
- var en = (e, t, n) => {
1908
- let r = [], i = Qt(e, t), a = "icons", o = {
2238
+ var Fn = (e, t, n) => {
2239
+ let r = [], i = Nn(e, t), a = "icons", o = {
1909
2240
  type: a,
1910
2241
  provider: e,
1911
2242
  prefix: t,
@@ -1920,21 +2251,21 @@ var en = (e, t, n) => {
1920
2251
  }, s = n.length), o.icons.push(n);
1921
2252
  }), r.push(o), r;
1922
2253
  };
1923
- function tn(e) {
2254
+ function In(e) {
1924
2255
  if (typeof e == "string") {
1925
- let t = W(e);
2256
+ let t = q(e);
1926
2257
  if (t) return t.path;
1927
2258
  }
1928
2259
  return "/";
1929
2260
  }
1930
- var nn = {
1931
- prepare: en,
2261
+ var Ln = {
2262
+ prepare: Fn,
1932
2263
  send: (e, t, n) => {
1933
2264
  if (!Y) {
1934
2265
  n("abort", 424);
1935
2266
  return;
1936
2267
  }
1937
- let r = tn(t.provider);
2268
+ let r = In(t.provider);
1938
2269
  switch (t.type) {
1939
2270
  case "icons": {
1940
2271
  let e = t.prefix, n = t.icons.join(","), i = new URLSearchParams({ icons: n });
@@ -1955,7 +2286,7 @@ var nn = {
1955
2286
  let t = e.status;
1956
2287
  if (t !== 200) {
1957
2288
  setTimeout(() => {
1958
- n($t(t) ? "abort" : "next", t);
2289
+ n(Pn(t) ? "abort" : "next", t);
1959
2290
  });
1960
2291
  return;
1961
2292
  }
@@ -1975,38 +2306,38 @@ var nn = {
1975
2306
  });
1976
2307
  }
1977
2308
  };
1978
- function rn(e, t, n) {
1979
- F(n || "", t).loadIcons = e;
2309
+ function Rn(e, t, n) {
2310
+ R(n || "", t).loadIcons = e;
1980
2311
  }
1981
- function an(e, t, n) {
1982
- F(n || "", t).loadIcon = e;
2312
+ function zn(e, t, n) {
2313
+ R(n || "", t).loadIcon = e;
1983
2314
  }
1984
- var on = "data-style", sn = "", X = {};
2315
+ var Bn = "data-style", Vn = "", X = {};
1985
2316
  function Z(e) {
1986
- return ":host{display:inline-block;vertical-align:" + (e ? "-0.125em" : "0") + "}span,svg{display:block;margin:auto}" + sn;
2317
+ return ":host{display:inline-block;vertical-align:" + (e ? "-0.125em" : "0") + "}span,svg{display:block;margin:auto}" + Vn;
1987
2318
  }
1988
- function cn(e) {
2319
+ function Hn(e) {
1989
2320
  return "adoptedStyleSheets" in e && typeof CSSStyleSheet == "function" && typeof CSSStyleSheet.prototype.replaceSync == "function";
1990
2321
  }
1991
- function ln(e) {
2322
+ function Un(e) {
1992
2323
  let t = e ? "inline" : "block", n = X[t];
1993
2324
  return n || (n = X[t] = new CSSStyleSheet(), n.replaceSync(Z(e))), n;
1994
2325
  }
1995
- function un(e) {
1996
- sn = e, X.inline?.replaceSync(Z(!0)), X.block?.replaceSync(Z(!1));
2326
+ function Wn(e) {
2327
+ Vn = e, X.inline?.replaceSync(Z(!0)), X.block?.replaceSync(Z(!1));
1997
2328
  }
1998
- function dn(e, t) {
1999
- if (cn(e)) {
2000
- let n = ln(t), r = e.adoptedStyleSheets;
2329
+ function Gn(e, t) {
2330
+ if (Hn(e)) {
2331
+ let n = Un(t), r = e.adoptedStyleSheets;
2001
2332
  if (r.includes(n)) return;
2002
2333
  e.adoptedStyleSheets = r.filter((e) => e !== X.inline && e !== X.block).concat(n);
2003
2334
  return;
2004
2335
  }
2005
- let n = Array.from(e.childNodes).find((e) => e.hasAttribute && e.hasAttribute(on));
2006
- n || (n = document.createElement("style"), n.setAttribute(on, on), e.appendChild(n)), n.textContent = Z(t);
2336
+ let n = Array.from(e.childNodes).find((e) => e.hasAttribute && e.hasAttribute(Bn));
2337
+ n || (n = document.createElement("style"), n.setAttribute(Bn, Bn), e.appendChild(n)), n.textContent = Z(t);
2007
2338
  }
2008
- function fn() {
2009
- yt("", nn), lt(!0);
2339
+ function Kn() {
2340
+ Xt("", Ln), Bt(!0);
2010
2341
  let e;
2011
2342
  try {
2012
2343
  e = window;
@@ -2016,7 +2347,7 @@ function fn() {
2016
2347
  let t = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
2017
2348
  typeof t == "object" && t && (t instanceof Array ? t : [t]).forEach((e) => {
2018
2349
  try {
2019
- (typeof e != "object" || !e || e instanceof Array || typeof e.icons != "object" || typeof e.prefix != "string" || !dt(e)) && console.error(n);
2350
+ (typeof e != "object" || !e || e instanceof Array || typeof e.icons != "object" || typeof e.prefix != "string" || !Ht(e)) && console.error(n);
2020
2351
  } catch {
2021
2352
  console.error(n);
2022
2353
  }
@@ -2029,7 +2360,7 @@ function fn() {
2029
2360
  try {
2030
2361
  let r = t[e];
2031
2362
  if (typeof r != "object" || !r || r.resources === void 0) continue;
2032
- xt(e, r) || console.error(n);
2363
+ Qt(e, r) || console.error(n);
2033
2364
  } catch {
2034
2365
  console.error(n);
2035
2366
  }
@@ -2037,101 +2368,101 @@ function fn() {
2037
2368
  }
2038
2369
  }
2039
2370
  return {
2040
- iconLoaded: ft,
2041
- getIcon: pt,
2042
- listIcons: ct,
2043
- addIcon: ut,
2044
- addCollection: dt,
2045
- calculateSize: J,
2046
- buildIcon: Gt,
2047
- iconToHTML: Kt,
2048
- svgToURL: Yt,
2049
- loadIcons: q,
2050
- loadIcon: Pt,
2051
- addAPIProvider: xt,
2052
- setCustomIconLoader: an,
2053
- setCustomIconsLoader: rn,
2054
- appendCustomStyle: un,
2371
+ iconLoaded: Ut,
2372
+ getIcon: Wt,
2373
+ listIcons: zt,
2374
+ addIcon: Vt,
2375
+ addCollection: Ht,
2376
+ calculateSize: xn,
2377
+ buildIcon: En,
2378
+ iconToHTML: Dn,
2379
+ svgToURL: An,
2380
+ loadIcons: pn,
2381
+ loadIcon: mn,
2382
+ addAPIProvider: Qt,
2383
+ setCustomIconLoader: zn,
2384
+ setCustomIconsLoader: Rn,
2385
+ appendCustomStyle: Wn,
2055
2386
  _api: {
2056
- getAPIConfig: W,
2057
- setAPIModule: yt,
2058
- sendAPIQuery: Ot,
2059
- setFetch: Xt,
2060
- getFetch: Zt,
2061
- listAPIProviders: St
2387
+ getAPIConfig: q,
2388
+ setAPIModule: Xt,
2389
+ sendAPIQuery: sn,
2390
+ setFetch: jn,
2391
+ getFetch: Mn,
2392
+ listAPIProviders: $t
2062
2393
  }
2063
2394
  };
2064
2395
  }
2065
- var pn = { "background-color": "currentColor" }, mn = { "background-color": "transparent" }, hn = {
2396
+ var qn = { "background-color": "currentColor" }, Jn = { "background-color": "transparent" }, Yn = {
2066
2397
  image: "var(--svg)",
2067
2398
  repeat: "no-repeat",
2068
2399
  size: "100% 100%"
2069
- }, gn = {
2070
- "-webkit-mask": pn,
2071
- mask: pn,
2072
- background: mn
2400
+ }, Xn = {
2401
+ "-webkit-mask": qn,
2402
+ mask: qn,
2403
+ background: Jn
2073
2404
  };
2074
- for (let e in gn) {
2075
- let t = gn[e];
2076
- for (let n in hn) t[e + "-" + n] = hn[n];
2405
+ for (let e in Xn) {
2406
+ let t = Xn[e];
2407
+ for (let n in Yn) t[e + "-" + n] = Yn[n];
2077
2408
  }
2078
- function _n(e) {
2409
+ function Zn(e) {
2079
2410
  return e ? e + (e.match(/^[-0-9.]+$/) ? "px" : "") : "inherit";
2080
2411
  }
2081
- function vn(e, t, n) {
2412
+ function Qn(e, t, n) {
2082
2413
  let r = document.createElement("span"), i = e.body;
2083
2414
  i.indexOf("<a") !== -1 && (i += "<!-- " + Date.now() + " -->");
2084
- let a = e.attributes, o = Yt(Kt(i, {
2415
+ let a = e.attributes, o = An(Dn(i, {
2085
2416
  ...a,
2086
2417
  width: t.width + "",
2087
2418
  height: t.height + ""
2088
2419
  })), s = r.style, c = {
2089
2420
  "--svg": o,
2090
- width: _n(a.width),
2091
- height: _n(a.height),
2092
- ...n ? pn : mn
2421
+ width: Zn(a.width),
2422
+ height: Zn(a.height),
2423
+ ...n ? qn : Jn
2093
2424
  };
2094
2425
  for (let e in c) s.setProperty(e, c[e]);
2095
2426
  return r;
2096
2427
  }
2097
2428
  var Q;
2098
- function yn() {
2429
+ function $n() {
2099
2430
  try {
2100
2431
  Q = window.trustedTypes.createPolicy("iconify", { createHTML: (e) => e });
2101
2432
  } catch {
2102
2433
  Q = null;
2103
2434
  }
2104
2435
  }
2105
- function bn(e) {
2106
- return Q === void 0 && yn(), Q ? Q.createHTML(e) : e;
2436
+ function er(e) {
2437
+ return Q === void 0 && $n(), Q ? Q.createHTML(e) : e;
2107
2438
  }
2108
- function xn(e) {
2439
+ function tr(e) {
2109
2440
  let t = document.createElement("span"), n = e.attributes, r = "";
2110
- return n.width || (r = "width: inherit;"), n.height || (r += "height: inherit;"), r && (n.style = r), t.innerHTML = bn(Kt(e.body, n)), t.firstChild;
2441
+ return n.width || (r = "width: inherit;"), n.height || (r += "height: inherit;"), r && (n.style = r), t.innerHTML = er(Dn(e.body, n)), t.firstChild;
2111
2442
  }
2112
- function Sn(e) {
2443
+ function nr(e) {
2113
2444
  return Array.from(e.childNodes).find((e) => {
2114
2445
  let t = e.tagName && e.tagName.toUpperCase();
2115
2446
  return t === "SPAN" || t === "SVG";
2116
2447
  });
2117
2448
  }
2118
- function Cn(e, t) {
2119
- let n = t.icon.data, r = t.customisations, i = Gt(n, r);
2449
+ function rr(e, t) {
2450
+ let n = t.icon.data, r = t.customisations, i = En(n, r);
2120
2451
  r.preserveAspectRatio && (i.attributes.preserveAspectRatio = r.preserveAspectRatio);
2121
2452
  let a = t.renderedMode, o;
2122
2453
  switch (a) {
2123
2454
  case "svg":
2124
- o = xn(i);
2455
+ o = tr(i);
2125
2456
  break;
2126
- default: o = vn(i, {
2127
- ...A,
2457
+ default: o = Qn(i, {
2458
+ ...N,
2128
2459
  ...n
2129
2460
  }, a === "mask");
2130
2461
  }
2131
- let s = Sn(e);
2462
+ let s = nr(e);
2132
2463
  s ? o.tagName === "SPAN" && s.tagName === o.tagName ? s.setAttribute("style", o.getAttribute("style")) : e.replaceChild(o, s) : e.appendChild(o);
2133
2464
  }
2134
- function wn(e, t, n) {
2465
+ function ir(e, t, n) {
2135
2466
  return {
2136
2467
  rendered: !1,
2137
2468
  inline: t,
@@ -2139,7 +2470,7 @@ function wn(e, t, n) {
2139
2470
  lastRender: n && (n.rendered ? n : n.lastRender)
2140
2471
  };
2141
2472
  }
2142
- function Tn(e = "iconify-icon") {
2473
+ function ar(e = "iconify-icon") {
2143
2474
  let t, n;
2144
2475
  try {
2145
2476
  t = window.customElements, n = window.HTMLElement;
@@ -2169,7 +2500,7 @@ function Tn(e = "iconify-icon") {
2169
2500
  constructor() {
2170
2501
  super();
2171
2502
  let e = this._shadowRoot = this.attachShadow({ mode: "open" }), t = this.hasAttribute("inline");
2172
- dn(e, t), this._state = wn({ value: "" }, t), this._queueCheck();
2503
+ Gn(e, t), this._state = ir({ value: "" }, t), this._queueCheck();
2173
2504
  }
2174
2505
  connectedCallback() {
2175
2506
  this._connected = !0, this.startObserver();
@@ -2184,7 +2515,7 @@ function Tn(e = "iconify-icon") {
2184
2515
  switch (e) {
2185
2516
  case "inline": {
2186
2517
  let e = this.hasAttribute("inline"), t = this._state;
2187
- e !== t.inline && (t.inline = e, dn(this._shadowRoot, e));
2518
+ e !== t.inline && (t.inline = e, Gn(this._shadowRoot, e));
2188
2519
  break;
2189
2520
  }
2190
2521
  case "noobserver":
@@ -2223,7 +2554,7 @@ function Tn(e = "iconify-icon") {
2223
2554
  t.lastChild.setCurrentTime(0);
2224
2555
  return;
2225
2556
  } catch {}
2226
- Cn(t, e);
2557
+ rr(t, e);
2227
2558
  }
2228
2559
  }
2229
2560
  get status() {
@@ -2244,11 +2575,11 @@ function Tn(e = "iconify-icon") {
2244
2575
  return;
2245
2576
  }
2246
2577
  if (!e.rendered || !this._visible) return;
2247
- let n = this.getAttribute("mode"), r = Ye(this);
2248
- (e.attrMode !== n || Xe(e.customisations, r) || !Sn(this._shadowRoot)) && this._renderIcon(e.icon, r, n);
2578
+ let n = this.getAttribute("mode"), r = Tt(this);
2579
+ (e.attrMode !== n || Et(e.customisations, r) || !nr(this._shadowRoot)) && this._renderIcon(e.icon, r, n);
2249
2580
  }
2250
2581
  _iconChanged(e) {
2251
- let t = It(e, (e, t, n) => {
2582
+ let t = gn(e, (e, t, n) => {
2252
2583
  let r = this._state;
2253
2584
  if (r.rendered || this.getAttribute("icon") !== e) return;
2254
2585
  let i = {
@@ -2258,22 +2589,22 @@ function Tn(e = "iconify-icon") {
2258
2589
  };
2259
2590
  i.data ? this._gotIconData(i) : r.icon = i;
2260
2591
  });
2261
- t.data ? this._gotIconData(t) : this._state = wn(t, this._state.inline, this._state);
2592
+ t.data ? this._gotIconData(t) : this._state = ir(t, this._state.inline, this._state);
2262
2593
  }
2263
2594
  _forceRender() {
2264
2595
  if (!this._visible) {
2265
- let e = Sn(this._shadowRoot);
2596
+ let e = nr(this._shadowRoot);
2266
2597
  e && this._shadowRoot.removeChild(e);
2267
2598
  return;
2268
2599
  }
2269
2600
  this._queueCheck();
2270
2601
  }
2271
2602
  _gotIconData(e) {
2272
- this._checkQueued = !1, this._renderIcon(e, Ye(this), this.getAttribute("mode"));
2603
+ this._checkQueued = !1, this._renderIcon(e, Tt(this), this.getAttribute("mode"));
2273
2604
  }
2274
2605
  _renderIcon(e, t, n) {
2275
- let r = Rt(e.data.body, n), i = this._state.inline;
2276
- Cn(this._shadowRoot, this._state = {
2606
+ let r = vn(e.data.body, n), i = this._state.inline;
2607
+ rr(this._shadowRoot, this._state = {
2277
2608
  rendered: !0,
2278
2609
  icon: e,
2279
2610
  inline: i,
@@ -2311,23 +2642,25 @@ function Tn(e = "iconify-icon") {
2311
2642
  }
2312
2643
  });
2313
2644
  });
2314
- let o = fn();
2645
+ let o = Kn();
2315
2646
  for (let e in o) a[e] = a.prototype[e] = o[e];
2316
2647
  return t.define(e, a), a;
2317
2648
  }
2318
- var { iconLoaded: En, getIcon: Dn, listIcons: On, addIcon: kn, addCollection: An, calculateSize: jn, buildIcon: Mn, iconToHTML: Nn, svgToURL: Pn, loadIcons: Fn, loadIcon: In, setCustomIconLoader: Ln, setCustomIconsLoader: Rn, addAPIProvider: zn, _api: Bn } = Tn() || fn(), $ = {
2649
+ var { iconLoaded: or, getIcon: sr, listIcons: cr, addIcon: lr, addCollection: ur, calculateSize: dr, buildIcon: fr, iconToHTML: pr, svgToURL: mr, loadIcons: hr, loadIcon: gr, setCustomIconLoader: _r, setCustomIconsLoader: vr, addAPIProvider: yr, _api: br } = ar() || Kn(), $ = {
2319
2650
  hero: "dfk-hero",
2320
2651
  features: "dfk-features",
2321
2652
  nextSteps: "dfk-next-steps",
2322
- sql: "dfk-sql"
2653
+ sql: "dfk-sql",
2654
+ mermaid: "dfk-mermaid"
2323
2655
  };
2324
- function Vn() {
2656
+ function xr() {
2325
2657
  if (typeof customElements < "u") for (let [e, t] of Object.entries({
2326
- [$.hero]: h,
2327
- [$.features]: p,
2328
- [$.nextSteps]: ee,
2329
- [$.sql]: Re
2658
+ [$.hero]: te,
2659
+ [$.features]: m,
2660
+ [$.nextSteps]: Ae,
2661
+ [$.sql]: ht,
2662
+ [$.mermaid]: De
2330
2663
  })) customElements.get(e) || customElements.define(e, t);
2331
2664
  }
2332
2665
  //#endregion
2333
- export { p as a, h as i, Re as n, ee as r, Vn as t };
2666
+ export { te as a, De as i, ht as n, m as o, Ae as r, xr as t };