@scalar/api-client 1.2.3 → 1.2.5
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.
- package/CHANGELOG.md +16 -0
- package/dist/index.js +275 -251
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @scalar/api-client
|
|
2
2
|
|
|
3
|
+
## 1.2.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [e8ef57e]
|
|
8
|
+
- Updated dependencies [1353154]
|
|
9
|
+
- @scalar/components@0.5.2
|
|
10
|
+
|
|
11
|
+
## 1.2.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [4d31b19]
|
|
16
|
+
- @scalar/themes@0.7.3
|
|
17
|
+
- @scalar/components@0.5.1
|
|
18
|
+
|
|
3
19
|
## 1.2.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -593,7 +593,7 @@ class Collection extends NodeBase {
|
|
|
593
593
|
const copy = Object.create(Object.getPrototypeOf(this), Object.getOwnPropertyDescriptors(this));
|
|
594
594
|
if (schema)
|
|
595
595
|
copy.schema = schema;
|
|
596
|
-
copy.items = copy.items.map((
|
|
596
|
+
copy.items = copy.items.map((it2) => isNode(it2) || isPair(it2) ? it2.clone(schema) : it2);
|
|
597
597
|
if (this.range)
|
|
598
598
|
copy.range = this.range.slice();
|
|
599
599
|
return copy;
|
|
@@ -1325,11 +1325,11 @@ function addPairToJSMap(ctx, map, { key, value }) {
|
|
|
1325
1325
|
if ((ctx == null ? void 0 : ctx.doc.schema.merge) && isMergeKey(key)) {
|
|
1326
1326
|
value = isAlias(value) ? value.resolve(ctx.doc) : value;
|
|
1327
1327
|
if (isSeq(value))
|
|
1328
|
-
for (const
|
|
1329
|
-
mergeToJSMap(ctx, map,
|
|
1328
|
+
for (const it2 of value.items)
|
|
1329
|
+
mergeToJSMap(ctx, map, it2);
|
|
1330
1330
|
else if (Array.isArray(value))
|
|
1331
|
-
for (const
|
|
1332
|
-
mergeToJSMap(ctx, map,
|
|
1331
|
+
for (const it2 of value)
|
|
1332
|
+
mergeToJSMap(ctx, map, it2);
|
|
1333
1333
|
else
|
|
1334
1334
|
mergeToJSMap(ctx, map, value);
|
|
1335
1335
|
} else {
|
|
@@ -1563,12 +1563,12 @@ function addCommentBefore({ indent, options: { commentString } }, lines, comment
|
|
|
1563
1563
|
}
|
|
1564
1564
|
function findPair(items, key) {
|
|
1565
1565
|
const k = isScalar(key) ? key.value : key;
|
|
1566
|
-
for (const
|
|
1567
|
-
if (isPair(
|
|
1568
|
-
if (
|
|
1569
|
-
return
|
|
1570
|
-
if (isScalar(
|
|
1571
|
-
return
|
|
1566
|
+
for (const it2 of items) {
|
|
1567
|
+
if (isPair(it2)) {
|
|
1568
|
+
if (it2.key === key || it2.key === k)
|
|
1569
|
+
return it2;
|
|
1570
|
+
if (isScalar(it2.key) && it2.key.value === k)
|
|
1571
|
+
return it2;
|
|
1572
1572
|
}
|
|
1573
1573
|
}
|
|
1574
1574
|
return void 0;
|
|
@@ -1643,15 +1643,15 @@ class YAMLMap extends Collection {
|
|
|
1643
1643
|
}
|
|
1644
1644
|
}
|
|
1645
1645
|
delete(key) {
|
|
1646
|
-
const
|
|
1647
|
-
if (!
|
|
1646
|
+
const it2 = findPair(this.items, key);
|
|
1647
|
+
if (!it2)
|
|
1648
1648
|
return false;
|
|
1649
|
-
const del = this.items.splice(this.items.indexOf(
|
|
1649
|
+
const del = this.items.splice(this.items.indexOf(it2), 1);
|
|
1650
1650
|
return del.length > 0;
|
|
1651
1651
|
}
|
|
1652
1652
|
get(key, keepScalar) {
|
|
1653
|
-
const
|
|
1654
|
-
const node =
|
|
1653
|
+
const it2 = findPair(this.items, key);
|
|
1654
|
+
const node = it2 == null ? void 0 : it2.value;
|
|
1655
1655
|
return (!keepScalar && isScalar(node) ? node.value : node) ?? void 0;
|
|
1656
1656
|
}
|
|
1657
1657
|
has(key) {
|
|
@@ -1721,8 +1721,8 @@ class YAMLSeq extends Collection {
|
|
|
1721
1721
|
const idx = asItemIndex(key);
|
|
1722
1722
|
if (typeof idx !== "number")
|
|
1723
1723
|
return void 0;
|
|
1724
|
-
const
|
|
1725
|
-
return !keepScalar && isScalar(
|
|
1724
|
+
const it2 = this.items[idx];
|
|
1725
|
+
return !keepScalar && isScalar(it2) ? it2.value : it2;
|
|
1726
1726
|
}
|
|
1727
1727
|
/**
|
|
1728
1728
|
* Checks if the collection includes a value with the key `key`.
|
|
@@ -1776,12 +1776,12 @@ class YAMLSeq extends Collection {
|
|
|
1776
1776
|
const seq = new this(schema);
|
|
1777
1777
|
if (obj && Symbol.iterator in Object(obj)) {
|
|
1778
1778
|
let i = 0;
|
|
1779
|
-
for (let
|
|
1779
|
+
for (let it2 of obj) {
|
|
1780
1780
|
if (typeof replacer === "function") {
|
|
1781
|
-
const key = obj instanceof Set ?
|
|
1782
|
-
|
|
1781
|
+
const key = obj instanceof Set ? it2 : String(i++);
|
|
1782
|
+
it2 = replacer.call(obj, key, it2);
|
|
1783
1783
|
}
|
|
1784
|
-
seq.items.push(createNode(
|
|
1784
|
+
seq.items.push(createNode(it2, void 0, ctx));
|
|
1785
1785
|
}
|
|
1786
1786
|
}
|
|
1787
1787
|
return seq;
|
|
@@ -1799,26 +1799,26 @@ function createPairs(schema, iterable, ctx) {
|
|
|
1799
1799
|
pairs.tag = "tag:yaml.org,2002:pairs";
|
|
1800
1800
|
let i = 0;
|
|
1801
1801
|
if (iterable && Symbol.iterator in Object(iterable))
|
|
1802
|
-
for (let
|
|
1802
|
+
for (let it2 of iterable) {
|
|
1803
1803
|
if (typeof replacer === "function")
|
|
1804
|
-
|
|
1804
|
+
it2 = replacer.call(iterable, String(i++), it2);
|
|
1805
1805
|
let key, value;
|
|
1806
|
-
if (Array.isArray(
|
|
1807
|
-
if (
|
|
1808
|
-
key =
|
|
1809
|
-
value =
|
|
1806
|
+
if (Array.isArray(it2)) {
|
|
1807
|
+
if (it2.length === 2) {
|
|
1808
|
+
key = it2[0];
|
|
1809
|
+
value = it2[1];
|
|
1810
1810
|
} else
|
|
1811
|
-
throw new TypeError(`Expected [key, value] tuple: ${
|
|
1812
|
-
} else if (
|
|
1813
|
-
const keys = Object.keys(
|
|
1811
|
+
throw new TypeError(`Expected [key, value] tuple: ${it2}`);
|
|
1812
|
+
} else if (it2 && it2 instanceof Object) {
|
|
1813
|
+
const keys = Object.keys(it2);
|
|
1814
1814
|
if (keys.length === 1) {
|
|
1815
1815
|
key = keys[0];
|
|
1816
|
-
value =
|
|
1816
|
+
value = it2[key];
|
|
1817
1817
|
} else {
|
|
1818
1818
|
throw new TypeError(`Expected tuple with one key, not ${keys.length} keys`);
|
|
1819
1819
|
}
|
|
1820
1820
|
} else {
|
|
1821
|
-
key =
|
|
1821
|
+
key = it2;
|
|
1822
1822
|
}
|
|
1823
1823
|
pairs.items.push(createPair(key, value, ctx));
|
|
1824
1824
|
}
|
|
@@ -4409,7 +4409,7 @@ class Facet {
|
|
|
4409
4409
|
}
|
|
4410
4410
|
from(field, get) {
|
|
4411
4411
|
if (!get)
|
|
4412
|
-
get = (
|
|
4412
|
+
get = (x) => x;
|
|
4413
4413
|
return this.compute([field], (state2) => get(state2.field(field)));
|
|
4414
4414
|
}
|
|
4415
4415
|
}
|
|
@@ -6603,8 +6603,8 @@ function maxOffset(node) {
|
|
|
6603
6603
|
return node.nodeType == 3 ? node.nodeValue.length : node.childNodes.length;
|
|
6604
6604
|
}
|
|
6605
6605
|
function flattenRect(rect, left) {
|
|
6606
|
-
let
|
|
6607
|
-
return { left:
|
|
6606
|
+
let x = left ? rect.left : rect.right;
|
|
6607
|
+
return { left: x, right: x, top: rect.top, bottom: rect.bottom };
|
|
6608
6608
|
}
|
|
6609
6609
|
function windowRect(win) {
|
|
6610
6610
|
return {
|
|
@@ -6623,7 +6623,7 @@ function getScale(elt, rect) {
|
|
|
6623
6623
|
scaleY = 1;
|
|
6624
6624
|
return { scaleX, scaleY };
|
|
6625
6625
|
}
|
|
6626
|
-
function scrollRectIntoView(dom, rect, side,
|
|
6626
|
+
function scrollRectIntoView(dom, rect, side, x, y, xMargin, yMargin, ltr) {
|
|
6627
6627
|
let doc2 = dom.ownerDocument, win = doc2.defaultView || window;
|
|
6628
6628
|
for (let cur2 = dom, stop = false; cur2 && !stop; ) {
|
|
6629
6629
|
if (cur2.nodeType == 1) {
|
|
@@ -6648,7 +6648,7 @@ function scrollRectIntoView(dom, rect, side, x2, y2, xMargin, yMargin, ltr) {
|
|
|
6648
6648
|
};
|
|
6649
6649
|
}
|
|
6650
6650
|
let moveX = 0, moveY = 0;
|
|
6651
|
-
if (
|
|
6651
|
+
if (y == "nearest") {
|
|
6652
6652
|
if (rect.top < bounding.top) {
|
|
6653
6653
|
moveY = -(bounding.top - rect.top + yMargin);
|
|
6654
6654
|
if (side > 0 && rect.bottom > bounding.bottom + moveY)
|
|
@@ -6660,10 +6660,10 @@ function scrollRectIntoView(dom, rect, side, x2, y2, xMargin, yMargin, ltr) {
|
|
|
6660
6660
|
}
|
|
6661
6661
|
} else {
|
|
6662
6662
|
let rectHeight = rect.bottom - rect.top, boundingHeight = bounding.bottom - bounding.top;
|
|
6663
|
-
let targetTop =
|
|
6663
|
+
let targetTop = y == "center" && rectHeight <= boundingHeight ? rect.top + rectHeight / 2 - boundingHeight / 2 : y == "start" || y == "center" && side < 0 ? rect.top - yMargin : rect.bottom - boundingHeight + yMargin;
|
|
6664
6664
|
moveY = targetTop - bounding.top;
|
|
6665
6665
|
}
|
|
6666
|
-
if (
|
|
6666
|
+
if (x == "nearest") {
|
|
6667
6667
|
if (rect.left < bounding.left) {
|
|
6668
6668
|
moveX = -(bounding.left - rect.left + xMargin);
|
|
6669
6669
|
if (side > 0 && rect.right > bounding.right + moveX)
|
|
@@ -6674,7 +6674,7 @@ function scrollRectIntoView(dom, rect, side, x2, y2, xMargin, yMargin, ltr) {
|
|
|
6674
6674
|
moveX = -(bounding.left + moveX - rect.left + xMargin);
|
|
6675
6675
|
}
|
|
6676
6676
|
} else {
|
|
6677
|
-
let targetLeft =
|
|
6677
|
+
let targetLeft = x == "center" ? rect.left + (rect.right - rect.left) / 2 - (bounding.right - bounding.left) / 2 : x == "start" == ltr ? rect.left - xMargin : rect.right - (bounding.right - bounding.left) + xMargin;
|
|
6678
6678
|
moveX = targetLeft - bounding.left;
|
|
6679
6679
|
}
|
|
6680
6680
|
if (moveX || moveY) {
|
|
@@ -6699,9 +6699,9 @@ function scrollRectIntoView(dom, rect, side, x2, y2, xMargin, yMargin, ltr) {
|
|
|
6699
6699
|
bottom: rect.bottom - movedY
|
|
6700
6700
|
};
|
|
6701
6701
|
if (movedX && Math.abs(movedX - moveX) < 1)
|
|
6702
|
-
|
|
6702
|
+
x = "nearest";
|
|
6703
6703
|
if (movedY && Math.abs(movedY - moveY) < 1)
|
|
6704
|
-
|
|
6704
|
+
y = "nearest";
|
|
6705
6705
|
}
|
|
6706
6706
|
}
|
|
6707
6707
|
if (top2)
|
|
@@ -8645,16 +8645,16 @@ const updateListener = /* @__PURE__ */ Facet.define();
|
|
|
8645
8645
|
const inputHandler$1 = /* @__PURE__ */ Facet.define();
|
|
8646
8646
|
const focusChangeEffect = /* @__PURE__ */ Facet.define();
|
|
8647
8647
|
const perLineTextDirection = /* @__PURE__ */ Facet.define({
|
|
8648
|
-
combine: (values2) => values2.some((
|
|
8648
|
+
combine: (values2) => values2.some((x) => x)
|
|
8649
8649
|
});
|
|
8650
8650
|
const nativeSelectionHidden = /* @__PURE__ */ Facet.define({
|
|
8651
|
-
combine: (values2) => values2.some((
|
|
8651
|
+
combine: (values2) => values2.some((x) => x)
|
|
8652
8652
|
});
|
|
8653
8653
|
class ScrollTarget {
|
|
8654
|
-
constructor(range,
|
|
8654
|
+
constructor(range, y = "nearest", x = "nearest", yMargin = 5, xMargin = 5, isSnapshot = false) {
|
|
8655
8655
|
this.range = range;
|
|
8656
|
-
this.y =
|
|
8657
|
-
this.x =
|
|
8656
|
+
this.y = y;
|
|
8657
|
+
this.x = x;
|
|
8658
8658
|
this.yMargin = yMargin;
|
|
8659
8659
|
this.xMargin = xMargin;
|
|
8660
8660
|
this.isSnapshot = isSnapshot;
|
|
@@ -8829,17 +8829,17 @@ class ChangedRange {
|
|
|
8829
8829
|
return new ChangedRange(Math.min(this.fromA, other.fromA), Math.max(this.toA, other.toA), Math.min(this.fromB, other.fromB), Math.max(this.toB, other.toB));
|
|
8830
8830
|
}
|
|
8831
8831
|
addToSet(set) {
|
|
8832
|
-
let i = set.length,
|
|
8832
|
+
let i = set.length, me = this;
|
|
8833
8833
|
for (; i > 0; i--) {
|
|
8834
8834
|
let range = set[i - 1];
|
|
8835
|
-
if (range.fromA >
|
|
8835
|
+
if (range.fromA > me.toA)
|
|
8836
8836
|
continue;
|
|
8837
|
-
if (range.toA <
|
|
8837
|
+
if (range.toA < me.fromA)
|
|
8838
8838
|
break;
|
|
8839
|
-
|
|
8839
|
+
me = me.join(range);
|
|
8840
8840
|
set.splice(i - 1, 1);
|
|
8841
8841
|
}
|
|
8842
|
-
set.splice(i, 0,
|
|
8842
|
+
set.splice(i, 0, me);
|
|
8843
8843
|
return set;
|
|
8844
8844
|
}
|
|
8845
8845
|
static extendWithRanges(diff, ranges) {
|
|
@@ -9571,11 +9571,11 @@ function groupAt(state2, pos, bias = 1) {
|
|
|
9571
9571
|
}
|
|
9572
9572
|
return EditorSelection.range(from + line.from, to + line.from);
|
|
9573
9573
|
}
|
|
9574
|
-
function getdx(
|
|
9575
|
-
return rect.left >
|
|
9574
|
+
function getdx(x, rect) {
|
|
9575
|
+
return rect.left > x ? rect.left - x : Math.max(0, x - rect.right);
|
|
9576
9576
|
}
|
|
9577
|
-
function getdy(
|
|
9578
|
-
return rect.top >
|
|
9577
|
+
function getdy(y, rect) {
|
|
9578
|
+
return rect.top > y ? rect.top - y : Math.max(0, y - rect.bottom);
|
|
9579
9579
|
}
|
|
9580
9580
|
function yOverlap(a, b) {
|
|
9581
9581
|
return a.top < b.bottom - 1 && a.bottom > b.top + 1;
|
|
@@ -9586,7 +9586,7 @@ function upTop(rect, top2) {
|
|
|
9586
9586
|
function upBot(rect, bottom) {
|
|
9587
9587
|
return bottom > rect.bottom ? { top: rect.top, left: rect.left, right: rect.right, bottom } : rect;
|
|
9588
9588
|
}
|
|
9589
|
-
function domPosAtCoords(parent,
|
|
9589
|
+
function domPosAtCoords(parent, x, y) {
|
|
9590
9590
|
let closest, closestRect, closestX, closestY, closestOverlap = false;
|
|
9591
9591
|
let above, below, aboveRect, belowRect;
|
|
9592
9592
|
for (let child = parent.firstChild; child; child = child.nextSibling) {
|
|
@@ -9595,22 +9595,22 @@ function domPosAtCoords(parent, x2, y2) {
|
|
|
9595
9595
|
let rect = rects[i];
|
|
9596
9596
|
if (closestRect && yOverlap(closestRect, rect))
|
|
9597
9597
|
rect = upTop(upBot(rect, closestRect.bottom), closestRect.top);
|
|
9598
|
-
let dx = getdx(
|
|
9598
|
+
let dx = getdx(x, rect), dy = getdy(y, rect);
|
|
9599
9599
|
if (dx == 0 && dy == 0)
|
|
9600
|
-
return child.nodeType == 3 ? domPosInText(child,
|
|
9600
|
+
return child.nodeType == 3 ? domPosInText(child, x, y) : domPosAtCoords(child, x, y);
|
|
9601
9601
|
if (!closest || closestY > dy || closestY == dy && closestX > dx) {
|
|
9602
9602
|
closest = child;
|
|
9603
9603
|
closestRect = rect;
|
|
9604
9604
|
closestX = dx;
|
|
9605
9605
|
closestY = dy;
|
|
9606
|
-
let side = dy ?
|
|
9606
|
+
let side = dy ? y < rect.top ? -1 : 1 : dx ? x < rect.left ? -1 : 1 : 0;
|
|
9607
9607
|
closestOverlap = !side || (side > 0 ? i < rects.length - 1 : i > 0);
|
|
9608
9608
|
}
|
|
9609
9609
|
if (dx == 0) {
|
|
9610
|
-
if (
|
|
9610
|
+
if (y > rect.bottom && (!aboveRect || aboveRect.bottom < rect.bottom)) {
|
|
9611
9611
|
above = child;
|
|
9612
9612
|
aboveRect = rect;
|
|
9613
|
-
} else if (
|
|
9613
|
+
} else if (y < rect.top && (!belowRect || belowRect.top > rect.top)) {
|
|
9614
9614
|
below = child;
|
|
9615
9615
|
belowRect = rect;
|
|
9616
9616
|
}
|
|
@@ -9621,24 +9621,24 @@ function domPosAtCoords(parent, x2, y2) {
|
|
|
9621
9621
|
}
|
|
9622
9622
|
}
|
|
9623
9623
|
}
|
|
9624
|
-
if (aboveRect && aboveRect.bottom >=
|
|
9624
|
+
if (aboveRect && aboveRect.bottom >= y) {
|
|
9625
9625
|
closest = above;
|
|
9626
9626
|
closestRect = aboveRect;
|
|
9627
|
-
} else if (belowRect && belowRect.top <=
|
|
9627
|
+
} else if (belowRect && belowRect.top <= y) {
|
|
9628
9628
|
closest = below;
|
|
9629
9629
|
closestRect = belowRect;
|
|
9630
9630
|
}
|
|
9631
9631
|
if (!closest)
|
|
9632
9632
|
return { node: parent, offset: 0 };
|
|
9633
|
-
let clipX = Math.max(closestRect.left, Math.min(closestRect.right,
|
|
9633
|
+
let clipX = Math.max(closestRect.left, Math.min(closestRect.right, x));
|
|
9634
9634
|
if (closest.nodeType == 3)
|
|
9635
|
-
return domPosInText(closest, clipX,
|
|
9635
|
+
return domPosInText(closest, clipX, y);
|
|
9636
9636
|
if (closestOverlap && closest.contentEditable != "false")
|
|
9637
|
-
return domPosAtCoords(closest, clipX,
|
|
9638
|
-
let offset2 = Array.prototype.indexOf.call(parent.childNodes, closest) + (
|
|
9637
|
+
return domPosAtCoords(closest, clipX, y);
|
|
9638
|
+
let offset2 = Array.prototype.indexOf.call(parent.childNodes, closest) + (x >= (closestRect.left + closestRect.right) / 2 ? 1 : 0);
|
|
9639
9639
|
return { node: parent, offset: offset2 };
|
|
9640
9640
|
}
|
|
9641
|
-
function domPosInText(node,
|
|
9641
|
+
function domPosInText(node, x, y) {
|
|
9642
9642
|
let len = node.nodeValue.length;
|
|
9643
9643
|
let closestOffset = -1, closestDY = 1e9, generalSide = 0;
|
|
9644
9644
|
for (let i = 0; i < len; i++) {
|
|
@@ -9648,10 +9648,10 @@ function domPosInText(node, x2, y2) {
|
|
|
9648
9648
|
if (rect.top == rect.bottom)
|
|
9649
9649
|
continue;
|
|
9650
9650
|
if (!generalSide)
|
|
9651
|
-
generalSide =
|
|
9652
|
-
let dy = (rect.top >
|
|
9653
|
-
if (rect.left - 1 <=
|
|
9654
|
-
let right =
|
|
9651
|
+
generalSide = x - rect.left;
|
|
9652
|
+
let dy = (rect.top > y ? rect.top - y : y - rect.bottom) - 1;
|
|
9653
|
+
if (rect.left - 1 <= x && rect.right + 1 >= x && dy < closestDY) {
|
|
9654
|
+
let right = x >= (rect.left + rect.right) / 2, after = right;
|
|
9655
9655
|
if (browser.chrome || browser.gecko) {
|
|
9656
9656
|
let rectBefore = textRange(node, i).getBoundingClientRect();
|
|
9657
9657
|
if (rectBefore.left == rect.right)
|
|
@@ -9670,7 +9670,7 @@ function posAtCoords(view, coords, precise, bias = -1) {
|
|
|
9670
9670
|
var _a2, _b;
|
|
9671
9671
|
let content2 = view.contentDOM.getBoundingClientRect(), docTop = content2.top + view.viewState.paddingTop;
|
|
9672
9672
|
let block, { docHeight } = view.viewState;
|
|
9673
|
-
let { x
|
|
9673
|
+
let { x, y } = coords, yOffset = y - docTop;
|
|
9674
9674
|
if (yOffset < 0)
|
|
9675
9675
|
return 0;
|
|
9676
9676
|
if (yOffset > docHeight)
|
|
@@ -9689,34 +9689,34 @@ function posAtCoords(view, coords, precise, bias = -1) {
|
|
|
9689
9689
|
bias = -bias;
|
|
9690
9690
|
}
|
|
9691
9691
|
}
|
|
9692
|
-
|
|
9692
|
+
y = docTop + yOffset;
|
|
9693
9693
|
let lineStart = block.from;
|
|
9694
9694
|
if (lineStart < view.viewport.from)
|
|
9695
|
-
return view.viewport.from == 0 ? 0 : precise ? null : posAtCoordsImprecise(view, content2, block,
|
|
9695
|
+
return view.viewport.from == 0 ? 0 : precise ? null : posAtCoordsImprecise(view, content2, block, x, y);
|
|
9696
9696
|
if (lineStart > view.viewport.to)
|
|
9697
|
-
return view.viewport.to == view.state.doc.length ? view.state.doc.length : precise ? null : posAtCoordsImprecise(view, content2, block,
|
|
9697
|
+
return view.viewport.to == view.state.doc.length ? view.state.doc.length : precise ? null : posAtCoordsImprecise(view, content2, block, x, y);
|
|
9698
9698
|
let doc2 = view.dom.ownerDocument;
|
|
9699
9699
|
let root = view.root.elementFromPoint ? view.root : doc2;
|
|
9700
|
-
let element = root.elementFromPoint(
|
|
9700
|
+
let element = root.elementFromPoint(x, y);
|
|
9701
9701
|
if (element && !view.contentDOM.contains(element))
|
|
9702
9702
|
element = null;
|
|
9703
9703
|
if (!element) {
|
|
9704
|
-
|
|
9705
|
-
element = root.elementFromPoint(
|
|
9704
|
+
x = Math.max(content2.left + 1, Math.min(content2.right - 1, x));
|
|
9705
|
+
element = root.elementFromPoint(x, y);
|
|
9706
9706
|
if (element && !view.contentDOM.contains(element))
|
|
9707
9707
|
element = null;
|
|
9708
9708
|
}
|
|
9709
9709
|
let node, offset2 = -1;
|
|
9710
9710
|
if (element && ((_a2 = view.docView.nearest(element)) === null || _a2 === void 0 ? void 0 : _a2.isEditable) != false) {
|
|
9711
9711
|
if (doc2.caretPositionFromPoint) {
|
|
9712
|
-
let pos = doc2.caretPositionFromPoint(
|
|
9712
|
+
let pos = doc2.caretPositionFromPoint(x, y);
|
|
9713
9713
|
if (pos)
|
|
9714
9714
|
({ offsetNode: node, offset: offset2 } = pos);
|
|
9715
9715
|
} else if (doc2.caretRangeFromPoint) {
|
|
9716
|
-
let range = doc2.caretRangeFromPoint(
|
|
9716
|
+
let range = doc2.caretRangeFromPoint(x, y);
|
|
9717
9717
|
if (range) {
|
|
9718
9718
|
({ startContainer: node, startOffset: offset2 } = range);
|
|
9719
|
-
if (!view.contentDOM.contains(node) || browser.safari && isSuspiciousSafariCaretResult(node, offset2,
|
|
9719
|
+
if (!view.contentDOM.contains(node) || browser.safari && isSuspiciousSafariCaretResult(node, offset2, x) || browser.chrome && isSuspiciousChromeCaretResult(node, offset2, x))
|
|
9720
9720
|
node = void 0;
|
|
9721
9721
|
}
|
|
9722
9722
|
}
|
|
@@ -9725,7 +9725,7 @@ function posAtCoords(view, coords, precise, bias = -1) {
|
|
|
9725
9725
|
let line = LineView.find(view.docView, lineStart);
|
|
9726
9726
|
if (!line)
|
|
9727
9727
|
return yOffset > block.top + block.height / 2 ? block.to : block.from;
|
|
9728
|
-
({ node, offset: offset2 } = domPosAtCoords(line.dom,
|
|
9728
|
+
({ node, offset: offset2 } = domPosAtCoords(line.dom, x, y));
|
|
9729
9729
|
}
|
|
9730
9730
|
let nearest = view.docView.nearest(node);
|
|
9731
9731
|
if (!nearest)
|
|
@@ -9737,26 +9737,26 @@ function posAtCoords(view, coords, precise, bias = -1) {
|
|
|
9737
9737
|
return nearest.localPosFromDOM(node, offset2) + nearest.posAtStart;
|
|
9738
9738
|
}
|
|
9739
9739
|
}
|
|
9740
|
-
function posAtCoordsImprecise(view, contentRect, block,
|
|
9741
|
-
let into = Math.round((
|
|
9740
|
+
function posAtCoordsImprecise(view, contentRect, block, x, y) {
|
|
9741
|
+
let into = Math.round((x - contentRect.left) * view.defaultCharacterWidth);
|
|
9742
9742
|
if (view.lineWrapping && block.height > view.defaultLineHeight * 1.5) {
|
|
9743
9743
|
let textHeight = view.viewState.heightOracle.textHeight;
|
|
9744
|
-
let line = Math.floor((
|
|
9744
|
+
let line = Math.floor((y - block.top - (view.defaultLineHeight - textHeight) * 0.5) / textHeight);
|
|
9745
9745
|
into += line * view.viewState.heightOracle.lineLength;
|
|
9746
9746
|
}
|
|
9747
9747
|
let content2 = view.state.sliceDoc(block.from, block.to);
|
|
9748
9748
|
return block.from + findColumn$1(content2, into, view.state.tabSize);
|
|
9749
9749
|
}
|
|
9750
|
-
function isSuspiciousSafariCaretResult(node, offset2,
|
|
9750
|
+
function isSuspiciousSafariCaretResult(node, offset2, x) {
|
|
9751
9751
|
let len;
|
|
9752
9752
|
if (node.nodeType != 3 || offset2 != (len = node.nodeValue.length))
|
|
9753
9753
|
return false;
|
|
9754
9754
|
for (let next = node.nextSibling; next; next = next.nextSibling)
|
|
9755
9755
|
if (next.nodeType != 1 || next.nodeName != "BR")
|
|
9756
9756
|
return false;
|
|
9757
|
-
return textRange(node, len - 1, len).getBoundingClientRect().left >
|
|
9757
|
+
return textRange(node, len - 1, len).getBoundingClientRect().left > x;
|
|
9758
9758
|
}
|
|
9759
|
-
function isSuspiciousChromeCaretResult(node, offset2,
|
|
9759
|
+
function isSuspiciousChromeCaretResult(node, offset2, x) {
|
|
9760
9760
|
if (offset2 != 0)
|
|
9761
9761
|
return false;
|
|
9762
9762
|
for (let cur2 = node; ; ) {
|
|
@@ -9768,7 +9768,7 @@ function isSuspiciousChromeCaretResult(node, offset2, x2) {
|
|
|
9768
9768
|
cur2 = parent;
|
|
9769
9769
|
}
|
|
9770
9770
|
let rect = node.nodeType == 1 ? node.getBoundingClientRect() : textRange(node, 0, Math.max(node.nodeValue.length, 1)).getBoundingClientRect();
|
|
9771
|
-
return
|
|
9771
|
+
return x - rect.left > 5;
|
|
9772
9772
|
}
|
|
9773
9773
|
function blockAt(view, pos) {
|
|
9774
9774
|
let line = view.lineBlockAt(pos);
|
|
@@ -10306,9 +10306,9 @@ function rangeForClick(view, pos, bias, type) {
|
|
|
10306
10306
|
return EditorSelection.range(from, to);
|
|
10307
10307
|
}
|
|
10308
10308
|
}
|
|
10309
|
-
let insideY = (
|
|
10310
|
-
let inside = (
|
|
10311
|
-
function findPositionSide(view, pos,
|
|
10309
|
+
let insideY = (y, rect) => y >= rect.top && y <= rect.bottom;
|
|
10310
|
+
let inside = (x, y, rect) => insideY(y, rect) && x >= rect.left && x <= rect.right;
|
|
10311
|
+
function findPositionSide(view, pos, x, y) {
|
|
10312
10312
|
let line = LineView.find(view.docView, pos);
|
|
10313
10313
|
if (!line)
|
|
10314
10314
|
return 1;
|
|
@@ -10318,12 +10318,12 @@ function findPositionSide(view, pos, x2, y2) {
|
|
|
10318
10318
|
if (off == line.length)
|
|
10319
10319
|
return -1;
|
|
10320
10320
|
let before = line.coordsAt(off, -1);
|
|
10321
|
-
if (before && inside(
|
|
10321
|
+
if (before && inside(x, y, before))
|
|
10322
10322
|
return -1;
|
|
10323
10323
|
let after = line.coordsAt(off, 1);
|
|
10324
|
-
if (after && inside(
|
|
10324
|
+
if (after && inside(x, y, after))
|
|
10325
10325
|
return 1;
|
|
10326
|
-
return before && insideY(
|
|
10326
|
+
return before && insideY(y, before) ? -1 : 1;
|
|
10327
10327
|
}
|
|
10328
10328
|
function queryPos(view, event) {
|
|
10329
10329
|
let pos = view.posAtCoords({ x: event.clientX, y: event.clientY }, false);
|
|
@@ -10775,11 +10775,11 @@ class HeightMap {
|
|
|
10775
10775
|
result.push(this);
|
|
10776
10776
|
}
|
|
10777
10777
|
applyChanges(decorations2, oldDoc, oracle, changes) {
|
|
10778
|
-
let
|
|
10778
|
+
let me = this, doc2 = oracle.doc;
|
|
10779
10779
|
for (let i = changes.length - 1; i >= 0; i--) {
|
|
10780
10780
|
let { fromA, toA, fromB, toB } = changes[i];
|
|
10781
|
-
let start =
|
|
10782
|
-
let end = start.to >= toA ? start :
|
|
10781
|
+
let start = me.lineAt(fromA, QueryType.ByPosNoHeight, oracle.setDoc(oldDoc), 0, 0);
|
|
10782
|
+
let end = start.to >= toA ? start : me.lineAt(toA, QueryType.ByPosNoHeight, oracle, 0, 0);
|
|
10783
10783
|
toB += end.to - toA;
|
|
10784
10784
|
toA = end.to;
|
|
10785
10785
|
while (i > 0 && start.from <= changes[i - 1].toA) {
|
|
@@ -10787,14 +10787,14 @@ class HeightMap {
|
|
|
10787
10787
|
fromB = changes[i - 1].fromB;
|
|
10788
10788
|
i--;
|
|
10789
10789
|
if (fromA < start.from)
|
|
10790
|
-
start =
|
|
10790
|
+
start = me.lineAt(fromA, QueryType.ByPosNoHeight, oracle, 0, 0);
|
|
10791
10791
|
}
|
|
10792
10792
|
fromB += start.from - fromA;
|
|
10793
10793
|
fromA = start.from;
|
|
10794
10794
|
let nodes = NodeBuilder.build(oracle.setDoc(doc2), decorations2, fromB, toB);
|
|
10795
|
-
|
|
10795
|
+
me = me.replace(fromA, toA, nodes);
|
|
10796
10796
|
}
|
|
10797
|
-
return
|
|
10797
|
+
return me.updateHeight(oracle, 0);
|
|
10798
10798
|
}
|
|
10799
10799
|
static empty() {
|
|
10800
10800
|
return new HeightMapText(0, 0);
|
|
@@ -14233,7 +14233,7 @@ class TooltipViewManager {
|
|
|
14233
14233
|
update(update, above) {
|
|
14234
14234
|
var _a2;
|
|
14235
14235
|
let input = update.state.facet(this.facet);
|
|
14236
|
-
let tooltips = input.filter((
|
|
14236
|
+
let tooltips = input.filter((x) => x);
|
|
14237
14237
|
if (input === this.input) {
|
|
14238
14238
|
for (let t2 of this.tooltipViews)
|
|
14239
14239
|
if (t2.update)
|
|
@@ -14624,7 +14624,7 @@ GutterMarker.prototype.point = true;
|
|
|
14624
14624
|
const gutterLineClass = /* @__PURE__ */ Facet.define();
|
|
14625
14625
|
const activeGutters = /* @__PURE__ */ Facet.define();
|
|
14626
14626
|
const unfixGutters = /* @__PURE__ */ Facet.define({
|
|
14627
|
-
combine: (values2) => values2.some((
|
|
14627
|
+
combine: (values2) => values2.some((x) => x)
|
|
14628
14628
|
});
|
|
14629
14629
|
function gutters(config2) {
|
|
14630
14630
|
let result = [
|
|
@@ -14812,16 +14812,16 @@ class SingleGutterView {
|
|
|
14812
14812
|
this.dom.className = "cm-gutter" + (this.config.class ? " " + this.config.class : "");
|
|
14813
14813
|
for (let prop in config2.domEventHandlers) {
|
|
14814
14814
|
this.dom.addEventListener(prop, (event) => {
|
|
14815
|
-
let target = event.target,
|
|
14815
|
+
let target = event.target, y;
|
|
14816
14816
|
if (target != this.dom && this.dom.contains(target)) {
|
|
14817
14817
|
while (target.parentNode != this.dom)
|
|
14818
14818
|
target = target.parentNode;
|
|
14819
14819
|
let rect = target.getBoundingClientRect();
|
|
14820
|
-
|
|
14820
|
+
y = (rect.top + rect.bottom) / 2;
|
|
14821
14821
|
} else {
|
|
14822
|
-
|
|
14822
|
+
y = event.clientY;
|
|
14823
14823
|
}
|
|
14824
|
-
let line = view.lineBlockAtHeight(
|
|
14824
|
+
let line = view.lineBlockAtHeight(y - view.documentTop);
|
|
14825
14825
|
if (config2.domEventHandlers[prop](view, line, event))
|
|
14826
14826
|
event.preventDefault();
|
|
14827
14827
|
});
|
|
@@ -17082,7 +17082,7 @@ class Modifier {
|
|
|
17082
17082
|
}
|
|
17083
17083
|
}
|
|
17084
17084
|
function sameArray(a, b) {
|
|
17085
|
-
return a.length == b.length && a.every((
|
|
17085
|
+
return a.length == b.length && a.every((x, i) => x == b[i]);
|
|
17086
17086
|
}
|
|
17087
17087
|
function powerSet(array) {
|
|
17088
17088
|
let sets = [[]];
|
|
@@ -22055,7 +22055,7 @@ class Dialect {
|
|
|
22055
22055
|
return !this.disabled || this.disabled[term] == 0;
|
|
22056
22056
|
}
|
|
22057
22057
|
}
|
|
22058
|
-
const id = (
|
|
22058
|
+
const id = (x) => x;
|
|
22059
22059
|
class ContextTracker {
|
|
22060
22060
|
/**
|
|
22061
22061
|
Define a context tracker.
|
|
@@ -22141,8 +22141,8 @@ class LRParser extends Parser {
|
|
|
22141
22141
|
}
|
|
22142
22142
|
createParse(input, fragments, ranges) {
|
|
22143
22143
|
let parse = new Parse(this, input, fragments, ranges);
|
|
22144
|
-
for (let
|
|
22145
|
-
parse =
|
|
22144
|
+
for (let w2 of this.wrappers)
|
|
22145
|
+
parse = w2(parse, input, fragments, ranges);
|
|
22146
22146
|
return parse;
|
|
22147
22147
|
}
|
|
22148
22148
|
/**
|
|
@@ -29305,8 +29305,8 @@ function extendTailwindMerge(configExtension, ...createConfig) {
|
|
|
29305
29305
|
return typeof configExtension === "function" ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(() => mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
|
|
29306
29306
|
}
|
|
29307
29307
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
29308
|
-
function getDefaultExportFromCjs(
|
|
29309
|
-
return
|
|
29308
|
+
function getDefaultExportFromCjs(x) {
|
|
29309
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
29310
29310
|
}
|
|
29311
29311
|
var prism = { exports: {} };
|
|
29312
29312
|
(function(module) {
|
|
@@ -30763,49 +30763,49 @@ var prism = { exports: {} };
|
|
|
30763
30763
|
})();
|
|
30764
30764
|
})(prism);
|
|
30765
30765
|
var prismExports = prism.exports;
|
|
30766
|
-
const
|
|
30767
|
-
const
|
|
30766
|
+
const I = /* @__PURE__ */ getDefaultExportFromCjs(prismExports);
|
|
30767
|
+
const z = "scalar-component", ge = extendTailwindMerge({
|
|
30768
30768
|
extend: {
|
|
30769
30769
|
classGroups: {
|
|
30770
30770
|
// Add the scalar class prefix as a custom class to be deduped by tailwind-merge
|
|
30771
|
-
[
|
|
30771
|
+
[z]: [z]
|
|
30772
30772
|
}
|
|
30773
30773
|
}
|
|
30774
|
-
}), { cva: $, cx:
|
|
30774
|
+
}), { cva: $, cx: w, compose: nt } = defineConfig({
|
|
30775
30775
|
hooks: {
|
|
30776
|
-
onComplete: (
|
|
30776
|
+
onComplete: (a) => `${ge(a, z)}`
|
|
30777
30777
|
}
|
|
30778
|
-
}),
|
|
30778
|
+
}), fe = /* @__PURE__ */ createStaticVNode('<path class="svg-path svg-check-mark" d="m 0 60 l 30 30 l 70 -80" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l 40 40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 -40" data-v-47faceda></path><path class="svg-path svg-x-mark" d="m 50 50 l -40 40" data-v-47faceda></path>', 5), he = {
|
|
30779
30779
|
key: 0,
|
|
30780
30780
|
class: "circular-loader"
|
|
30781
30781
|
};
|
|
30782
|
-
const
|
|
30782
|
+
const ve = /* @__PURE__ */ defineComponent({
|
|
30783
30783
|
__name: "ScalarLoading",
|
|
30784
30784
|
props: {
|
|
30785
30785
|
loadingState: {},
|
|
30786
30786
|
size: { default: "24px" }
|
|
30787
30787
|
},
|
|
30788
|
-
setup(
|
|
30789
|
-
return useCssVars((
|
|
30790
|
-
d6cae758:
|
|
30791
|
-
})), (
|
|
30788
|
+
setup(a) {
|
|
30789
|
+
return useCssVars((t2) => ({
|
|
30790
|
+
d6cae758: t2.size
|
|
30791
|
+
})), (t2, e) => t2.loadingState ? (openBlock(), createElementBlock("div", {
|
|
30792
30792
|
key: 0,
|
|
30793
|
-
class: normalizeClass(unref(
|
|
30793
|
+
class: normalizeClass(unref(w)("loader-wrapper"))
|
|
30794
30794
|
}, [
|
|
30795
30795
|
(openBlock(), createElementBlock("svg", {
|
|
30796
30796
|
class: normalizeClass(["svg-loader", {
|
|
30797
|
-
"icon-is-valid":
|
|
30798
|
-
"icon-is-invalid":
|
|
30797
|
+
"icon-is-valid": t2.loadingState.isValid,
|
|
30798
|
+
"icon-is-invalid": t2.loadingState.isInvalid
|
|
30799
30799
|
}]),
|
|
30800
30800
|
viewBox: "0 0 100 100",
|
|
30801
30801
|
xmlns: "http://www.w3.org/2000/svg",
|
|
30802
30802
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
30803
30803
|
}, [
|
|
30804
|
-
|
|
30805
|
-
|
|
30804
|
+
fe,
|
|
30805
|
+
t2.loadingState.isLoading ? (openBlock(), createElementBlock("g", he, [
|
|
30806
30806
|
createElementVNode("circle", {
|
|
30807
30807
|
class: normalizeClass(["loader-path", {
|
|
30808
|
-
"loader-path-off":
|
|
30808
|
+
"loader-path-off": t2.loadingState.isValid || t2.loadingState.isInvalid
|
|
30809
30809
|
}]),
|
|
30810
30810
|
cx: "50",
|
|
30811
30811
|
cy: "50",
|
|
@@ -30817,12 +30817,12 @@ const fe = /* @__PURE__ */ defineComponent({
|
|
|
30817
30817
|
], 2))
|
|
30818
30818
|
], 2)) : createCommentVNode("", true);
|
|
30819
30819
|
}
|
|
30820
|
-
}),
|
|
30821
|
-
const e =
|
|
30822
|
-
for (const [
|
|
30823
|
-
e[
|
|
30820
|
+
}), H = (a, t2) => {
|
|
30821
|
+
const e = a.__vccOpts || a;
|
|
30822
|
+
for (const [n, f] of t2)
|
|
30823
|
+
e[n] = f;
|
|
30824
30824
|
return e;
|
|
30825
|
-
},
|
|
30825
|
+
}, M = /* @__PURE__ */ H(ve, [["__scopeId", "data-v-47faceda"]]), X = {
|
|
30826
30826
|
solid: [
|
|
30827
30827
|
"scalar-button-solid",
|
|
30828
30828
|
"bg-back-btn-1 text-fore-btn-1 shadow-sm active:bg-back-btn-1 active:shadow-none hocus:bg-hover-btn-1"
|
|
@@ -30839,7 +30839,7 @@ const fe = /* @__PURE__ */ defineComponent({
|
|
|
30839
30839
|
"scalar-button-danger",
|
|
30840
30840
|
"bg-error text-white active:brightness-90 hocus:brightness-90"
|
|
30841
30841
|
]
|
|
30842
|
-
},
|
|
30842
|
+
}, be = $({
|
|
30843
30843
|
base: "scalar-button row cursor-pointer items-center justify-center rounded font-medium",
|
|
30844
30844
|
variants: {
|
|
30845
30845
|
disabled: {
|
|
@@ -30847,7 +30847,7 @@ const fe = /* @__PURE__ */ defineComponent({
|
|
|
30847
30847
|
},
|
|
30848
30848
|
fullWidth: { true: "w-full" },
|
|
30849
30849
|
size: { md: "h-10 px-6 text-sm" },
|
|
30850
|
-
variant:
|
|
30850
|
+
variant: X
|
|
30851
30851
|
},
|
|
30852
30852
|
compoundVariants: [
|
|
30853
30853
|
{
|
|
@@ -30856,13 +30856,13 @@ const fe = /* @__PURE__ */ defineComponent({
|
|
|
30856
30856
|
class: "bg-transparent text-ghost"
|
|
30857
30857
|
}
|
|
30858
30858
|
]
|
|
30859
|
-
}),
|
|
30859
|
+
}), Se = ["ariaDisabled"], ye = {
|
|
30860
30860
|
key: 0,
|
|
30861
30861
|
class: "mr-2 h-4 w-4"
|
|
30862
30862
|
}, we = {
|
|
30863
30863
|
key: 1,
|
|
30864
30864
|
class: "ml-2"
|
|
30865
|
-
},
|
|
30865
|
+
}, _e = /* @__PURE__ */ defineComponent({
|
|
30866
30866
|
inheritAttrs: false,
|
|
30867
30867
|
__name: "ScalarButton",
|
|
30868
30868
|
props: {
|
|
@@ -30872,45 +30872,45 @@ const fe = /* @__PURE__ */ defineComponent({
|
|
|
30872
30872
|
size: { default: "md" },
|
|
30873
30873
|
variant: { default: "solid" }
|
|
30874
30874
|
},
|
|
30875
|
-
setup(
|
|
30876
|
-
const
|
|
30877
|
-
const { class: e, ...
|
|
30878
|
-
return { className: e || "", rest:
|
|
30875
|
+
setup(a) {
|
|
30876
|
+
const t2 = computed(() => {
|
|
30877
|
+
const { class: e, ...n } = useAttrs();
|
|
30878
|
+
return { className: e || "", rest: n };
|
|
30879
30879
|
});
|
|
30880
|
-
return (e,
|
|
30880
|
+
return (e, n) => (openBlock(), createElementBlock("button", mergeProps(t2.value.rest, {
|
|
30881
30881
|
ariaDisabled: e.disabled || void 0,
|
|
30882
|
-
class: unref(
|
|
30883
|
-
unref(
|
|
30882
|
+
class: unref(w)(
|
|
30883
|
+
unref(be)({ fullWidth: e.fullWidth, disabled: e.disabled, size: e.size, variant: e.variant }),
|
|
30884
30884
|
{ "pl-9 pr-3": e.loading },
|
|
30885
|
-
`${
|
|
30885
|
+
`${t2.value.className}`
|
|
30886
30886
|
),
|
|
30887
30887
|
type: "button"
|
|
30888
30888
|
}), [
|
|
30889
|
-
e.$slots.icon ? (openBlock(), createElementBlock("div",
|
|
30889
|
+
e.$slots.icon ? (openBlock(), createElementBlock("div", ye, [
|
|
30890
30890
|
renderSlot(e.$slots, "icon")
|
|
30891
30891
|
])) : createCommentVNode("", true),
|
|
30892
30892
|
renderSlot(e.$slots, "default"),
|
|
30893
30893
|
e.loading ? (openBlock(), createElementBlock("div", we, [
|
|
30894
|
-
createVNode(unref(
|
|
30894
|
+
createVNode(unref(M), {
|
|
30895
30895
|
loadingState: e.loading,
|
|
30896
30896
|
size: "20px"
|
|
30897
30897
|
}, null, 8, ["loadingState"])
|
|
30898
30898
|
])) : createCommentVNode("", true)
|
|
30899
|
-
], 16,
|
|
30899
|
+
], 16, Se));
|
|
30900
30900
|
}
|
|
30901
30901
|
});
|
|
30902
|
-
(function(
|
|
30903
|
-
var
|
|
30902
|
+
(function(a) {
|
|
30903
|
+
var t2 = "\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b", e = {
|
|
30904
30904
|
pattern: /(^(["']?)\w+\2)[ \t]+\S.*/,
|
|
30905
30905
|
lookbehind: true,
|
|
30906
30906
|
alias: "punctuation",
|
|
30907
30907
|
// this looks reasonably well in all themes
|
|
30908
30908
|
inside: null
|
|
30909
30909
|
// see below
|
|
30910
|
-
},
|
|
30910
|
+
}, n = {
|
|
30911
30911
|
bash: e,
|
|
30912
30912
|
environment: {
|
|
30913
|
-
pattern: RegExp("\\$" +
|
|
30913
|
+
pattern: RegExp("\\$" + t2),
|
|
30914
30914
|
alias: "constant"
|
|
30915
30915
|
},
|
|
30916
30916
|
variable: [
|
|
@@ -30950,7 +30950,7 @@ const fe = /* @__PURE__ */ defineComponent({
|
|
|
30950
30950
|
operator: /:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,
|
|
30951
30951
|
punctuation: /[\[\]]/,
|
|
30952
30952
|
environment: {
|
|
30953
|
-
pattern: RegExp("(\\{)" +
|
|
30953
|
+
pattern: RegExp("(\\{)" + t2),
|
|
30954
30954
|
lookbehind: true,
|
|
30955
30955
|
alias: "constant"
|
|
30956
30956
|
}
|
|
@@ -30961,7 +30961,7 @@ const fe = /* @__PURE__ */ defineComponent({
|
|
|
30961
30961
|
// Escape sequences from echo and printf's manuals, and escaped quotes.
|
|
30962
30962
|
entity: /\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/
|
|
30963
30963
|
};
|
|
30964
|
-
|
|
30964
|
+
a.languages.bash = {
|
|
30965
30965
|
shebang: {
|
|
30966
30966
|
pattern: /^#!\s*\/.*/,
|
|
30967
30967
|
alias: "important"
|
|
@@ -30999,7 +30999,7 @@ const fe = /* @__PURE__ */ defineComponent({
|
|
|
30999
30999
|
pattern: /(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,
|
|
31000
31000
|
inside: {
|
|
31001
31001
|
environment: {
|
|
31002
|
-
pattern: RegExp("(^|[\\s;|&]|[<>]\\()" +
|
|
31002
|
+
pattern: RegExp("(^|[\\s;|&]|[<>]\\()" + t2),
|
|
31003
31003
|
lookbehind: true,
|
|
31004
31004
|
alias: "constant"
|
|
31005
31005
|
}
|
|
@@ -31019,7 +31019,7 @@ const fe = /* @__PURE__ */ defineComponent({
|
|
|
31019
31019
|
pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
|
|
31020
31020
|
lookbehind: true,
|
|
31021
31021
|
greedy: true,
|
|
31022
|
-
inside:
|
|
31022
|
+
inside: n
|
|
31023
31023
|
},
|
|
31024
31024
|
// Here-document with quotes around the tag
|
|
31025
31025
|
// → No expansion (so no “inside”).
|
|
@@ -31037,7 +31037,7 @@ const fe = /* @__PURE__ */ defineComponent({
|
|
|
31037
31037
|
pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
|
|
31038
31038
|
lookbehind: true,
|
|
31039
31039
|
greedy: true,
|
|
31040
|
-
inside:
|
|
31040
|
+
inside: n
|
|
31041
31041
|
},
|
|
31042
31042
|
{
|
|
31043
31043
|
// https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
|
|
@@ -31050,15 +31050,15 @@ const fe = /* @__PURE__ */ defineComponent({
|
|
|
31050
31050
|
pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
|
|
31051
31051
|
greedy: true,
|
|
31052
31052
|
inside: {
|
|
31053
|
-
entity:
|
|
31053
|
+
entity: n.entity
|
|
31054
31054
|
}
|
|
31055
31055
|
}
|
|
31056
31056
|
],
|
|
31057
31057
|
environment: {
|
|
31058
|
-
pattern: RegExp("\\$?" +
|
|
31058
|
+
pattern: RegExp("\\$?" + t2),
|
|
31059
31059
|
alias: "constant"
|
|
31060
31060
|
},
|
|
31061
|
-
variable:
|
|
31061
|
+
variable: n.variable,
|
|
31062
31062
|
function: {
|
|
31063
31063
|
pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
|
|
31064
31064
|
lookbehind: true
|
|
@@ -31097,8 +31097,8 @@ const fe = /* @__PURE__ */ defineComponent({
|
|
|
31097
31097
|
pattern: /(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,
|
|
31098
31098
|
lookbehind: true
|
|
31099
31099
|
}
|
|
31100
|
-
}, e.inside =
|
|
31101
|
-
for (var
|
|
31100
|
+
}, e.inside = a.languages.bash;
|
|
31101
|
+
for (var f = [
|
|
31102
31102
|
"comment",
|
|
31103
31103
|
"function-name",
|
|
31104
31104
|
"for-or-select",
|
|
@@ -31114,9 +31114,9 @@ const fe = /* @__PURE__ */ defineComponent({
|
|
|
31114
31114
|
"operator",
|
|
31115
31115
|
"punctuation",
|
|
31116
31116
|
"number"
|
|
31117
|
-
], g =
|
|
31118
|
-
g[
|
|
31119
|
-
|
|
31117
|
+
], g = n.variable[1].inside, r2 = 0; r2 < f.length; r2++)
|
|
31118
|
+
g[f[r2]] = a.languages.bash[f[r2]];
|
|
31119
|
+
a.languages.sh = a.languages.bash, a.languages.shell = a.languages.bash;
|
|
31120
31120
|
})(Prism);
|
|
31121
31121
|
Prism.languages.json = {
|
|
31122
31122
|
property: {
|
|
@@ -31146,7 +31146,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31146
31146
|
(function() {
|
|
31147
31147
|
if (typeof Prism > "u" || typeof document > "u")
|
|
31148
31148
|
return;
|
|
31149
|
-
var
|
|
31149
|
+
var a = "line-numbers", t2 = /\n(?!$)/g, e = Prism.plugins.lineNumbers = {
|
|
31150
31150
|
/**
|
|
31151
31151
|
* Get node for provided line number
|
|
31152
31152
|
*
|
|
@@ -31154,13 +31154,13 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31154
31154
|
* @param {number} number line number
|
|
31155
31155
|
* @returns {Element|undefined}
|
|
31156
31156
|
*/
|
|
31157
|
-
getLine: function(r2,
|
|
31158
|
-
if (!(r2.tagName !== "PRE" || !r2.classList.contains(
|
|
31157
|
+
getLine: function(r2, d) {
|
|
31158
|
+
if (!(r2.tagName !== "PRE" || !r2.classList.contains(a))) {
|
|
31159
31159
|
var o = r2.querySelector(".line-numbers-rows");
|
|
31160
31160
|
if (o) {
|
|
31161
|
-
var
|
|
31162
|
-
|
|
31163
|
-
var s =
|
|
31161
|
+
var c = parseInt(r2.getAttribute("data-start"), 10) || 1, p = c + (o.children.length - 1);
|
|
31162
|
+
d < c && (d = c), d > p && (d = p);
|
|
31163
|
+
var s = d - c;
|
|
31164
31164
|
return o.children[s];
|
|
31165
31165
|
}
|
|
31166
31166
|
}
|
|
@@ -31174,7 +31174,7 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31174
31174
|
* @returns {void}
|
|
31175
31175
|
*/
|
|
31176
31176
|
resize: function(r2) {
|
|
31177
|
-
|
|
31177
|
+
n([r2]);
|
|
31178
31178
|
},
|
|
31179
31179
|
/**
|
|
31180
31180
|
* Whether the plugin can assume that the units font sizes and margins are not depended on the size of
|
|
@@ -31188,72 +31188,98 @@ Prism.languages.webmanifest = Prism.languages.json;
|
|
|
31188
31188
|
*/
|
|
31189
31189
|
assumeViewportIndependence: true
|
|
31190
31190
|
};
|
|
31191
|
-
function
|
|
31191
|
+
function n(r2) {
|
|
31192
31192
|
if (r2 = r2.filter(function(o) {
|
|
31193
|
-
var
|
|
31193
|
+
var c = f(o), p = c["white-space"];
|
|
31194
31194
|
return p === "pre-wrap" || p === "pre-line";
|
|
31195
31195
|
}), r2.length != 0) {
|
|
31196
|
-
var
|
|
31197
|
-
var
|
|
31198
|
-
if (!(!
|
|
31199
|
-
var s = o.querySelector(".line-numbers-sizer"), m =
|
|
31200
|
-
s || (s = document.createElement("span"), s.className = "line-numbers-sizer",
|
|
31201
|
-
var
|
|
31196
|
+
var d = r2.map(function(o) {
|
|
31197
|
+
var c = o.querySelector("code"), p = o.querySelector(".line-numbers-rows");
|
|
31198
|
+
if (!(!c || !p)) {
|
|
31199
|
+
var s = o.querySelector(".line-numbers-sizer"), m = c.textContent.split(t2);
|
|
31200
|
+
s || (s = document.createElement("span"), s.className = "line-numbers-sizer", c.appendChild(s)), s.innerHTML = "0", s.style.display = "block";
|
|
31201
|
+
var i = s.getBoundingClientRect().height;
|
|
31202
31202
|
return s.innerHTML = "", {
|
|
31203
31203
|
element: o,
|
|
31204
31204
|
lines: m,
|
|
31205
31205
|
lineHeights: [],
|
|
31206
|
-
oneLinerHeight:
|
|
31206
|
+
oneLinerHeight: i,
|
|
31207
31207
|
sizer: s
|
|
31208
31208
|
};
|
|
31209
31209
|
}
|
|
31210
31210
|
}).filter(Boolean);
|
|
31211
|
-
|
|
31212
|
-
var
|
|
31213
|
-
s[p.length - 1] = void 0, p.forEach(function(
|
|
31214
|
-
if (
|
|
31215
|
-
var E =
|
|
31216
|
-
E.style.display = "block", E.textContent =
|
|
31211
|
+
d.forEach(function(o) {
|
|
31212
|
+
var c = o.sizer, p = o.lines, s = o.lineHeights, m = o.oneLinerHeight;
|
|
31213
|
+
s[p.length - 1] = void 0, p.forEach(function(i, S2) {
|
|
31214
|
+
if (i && i.length > 1) {
|
|
31215
|
+
var E = c.appendChild(document.createElement("span"));
|
|
31216
|
+
E.style.display = "block", E.textContent = i;
|
|
31217
31217
|
} else
|
|
31218
31218
|
s[S2] = m;
|
|
31219
31219
|
});
|
|
31220
|
-
}),
|
|
31221
|
-
for (var
|
|
31222
|
-
p[m] === void 0 && (p[m] =
|
|
31223
|
-
}),
|
|
31224
|
-
var
|
|
31225
|
-
|
|
31220
|
+
}), d.forEach(function(o) {
|
|
31221
|
+
for (var c = o.sizer, p = o.lineHeights, s = 0, m = 0; m < p.length; m++)
|
|
31222
|
+
p[m] === void 0 && (p[m] = c.children[s++].getBoundingClientRect().height);
|
|
31223
|
+
}), d.forEach(function(o) {
|
|
31224
|
+
var c = o.sizer, p = o.element.querySelector(".line-numbers-rows");
|
|
31225
|
+
c.style.display = "none", c.innerHTML = "", o.lineHeights.forEach(function(s, m) {
|
|
31226
31226
|
p.children[m].style.height = s + "px";
|
|
31227
31227
|
});
|
|
31228
31228
|
});
|
|
31229
31229
|
}
|
|
31230
31230
|
}
|
|
31231
|
-
function
|
|
31231
|
+
function f(r2) {
|
|
31232
31232
|
return r2 ? window.getComputedStyle ? getComputedStyle(r2) : r2.currentStyle || null : null;
|
|
31233
31233
|
}
|
|
31234
31234
|
var g = void 0;
|
|
31235
31235
|
window.addEventListener("resize", function() {
|
|
31236
|
-
e.assumeViewportIndependence && g === window.innerWidth || (g = window.innerWidth,
|
|
31236
|
+
e.assumeViewportIndependence && g === window.innerWidth || (g = window.innerWidth, n(Array.prototype.slice.call(document.querySelectorAll("pre." + a))));
|
|
31237
31237
|
}), Prism.hooks.add("complete", function(r2) {
|
|
31238
31238
|
if (r2.code) {
|
|
31239
|
-
var
|
|
31239
|
+
var d = (
|
|
31240
31240
|
/** @type {Element} */
|
|
31241
31241
|
r2.element
|
|
31242
31242
|
), o = (
|
|
31243
31243
|
/** @type {HTMLElement} */
|
|
31244
|
-
|
|
31244
|
+
d.parentNode
|
|
31245
31245
|
);
|
|
31246
|
-
if (!(!o || !/pre/i.test(o.nodeName)) && !
|
|
31247
|
-
|
|
31248
|
-
var
|
|
31249
|
-
s = document.createElement("span"), s.setAttribute("aria-hidden", "true"), s.className = "line-numbers-rows", s.innerHTML = m, o.hasAttribute("data-start") && (o.style.counterReset = "linenumber " + (parseInt(o.getAttribute("data-start"), 10) - 1)), r2.element.appendChild(s),
|
|
31246
|
+
if (!(!o || !/pre/i.test(o.nodeName)) && !d.querySelector(".line-numbers-rows") && Prism.util.isActive(d, a)) {
|
|
31247
|
+
d.classList.remove(a), o.classList.add(a);
|
|
31248
|
+
var c = r2.code.match(t2), p = c ? c.length + 1 : 1, s, m = new Array(p + 1).join("<span></span>");
|
|
31249
|
+
s = document.createElement("span"), s.setAttribute("aria-hidden", "true"), s.className = "line-numbers-rows", s.innerHTML = m, o.hasAttribute("data-start") && (o.style.counterReset = "linenumber " + (parseInt(o.getAttribute("data-start"), 10) - 1)), r2.element.appendChild(s), n([o]), Prism.hooks.run("line-numbers", r2);
|
|
31250
31250
|
}
|
|
31251
31251
|
}
|
|
31252
31252
|
}), Prism.hooks.add("line-numbers", function(r2) {
|
|
31253
31253
|
r2.plugins = r2.plugins || {}, r2.plugins.lineNumbers = true;
|
|
31254
31254
|
});
|
|
31255
31255
|
})();
|
|
31256
|
-
|
|
31256
|
+
function ke(a) {
|
|
31257
|
+
const t2 = /* @__PURE__ */ new Set();
|
|
31258
|
+
return JSON.stringify(
|
|
31259
|
+
a,
|
|
31260
|
+
(e, n) => {
|
|
31261
|
+
if (typeof n == "object" && n !== null) {
|
|
31262
|
+
if (t2.has(n))
|
|
31263
|
+
return "[Circular]";
|
|
31264
|
+
t2.add(n);
|
|
31265
|
+
}
|
|
31266
|
+
return n;
|
|
31267
|
+
},
|
|
31268
|
+
2
|
|
31269
|
+
);
|
|
31270
|
+
}
|
|
31271
|
+
function O(a) {
|
|
31272
|
+
if (typeof a == "string")
|
|
31273
|
+
return a;
|
|
31274
|
+
if (typeof a == "object")
|
|
31275
|
+
try {
|
|
31276
|
+
return JSON.stringify(a, null, 2);
|
|
31277
|
+
} catch {
|
|
31278
|
+
return ke(a);
|
|
31279
|
+
}
|
|
31280
|
+
return a;
|
|
31281
|
+
}
|
|
31282
|
+
const Ee = ["innerHTML"], it = /* @__PURE__ */ defineComponent({
|
|
31257
31283
|
__name: "ScalarCodeBlock",
|
|
31258
31284
|
props: {
|
|
31259
31285
|
content: {},
|
|
@@ -31261,53 +31287,51 @@ const ke = ["innerHTML"], oa = /* @__PURE__ */ defineComponent({
|
|
|
31261
31287
|
lineNumbers: { type: Boolean, default: false },
|
|
31262
31288
|
hideCredentials: {}
|
|
31263
31289
|
},
|
|
31264
|
-
setup(
|
|
31265
|
-
const a = t2, e =
|
|
31266
|
-
|
|
31267
|
-
|
|
31268
|
-
a.hideCredentials && x.hooks.add("wrap", function(s) {
|
|
31269
|
-
if (!a.hideCredentials)
|
|
31290
|
+
setup(a) {
|
|
31291
|
+
const t2 = a, e = createHash(O(t2.content)), n = `components-scalar-code-block${e}`, { plugins: f, highlightElement: g } = I;
|
|
31292
|
+
t2.hideCredentials && I.hooks.add("wrap", function(s) {
|
|
31293
|
+
if (!t2.hideCredentials)
|
|
31270
31294
|
return;
|
|
31271
31295
|
let m = false;
|
|
31272
|
-
typeof
|
|
31273
|
-
(
|
|
31296
|
+
typeof t2.hideCredentials == "string" ? s.content.includes(t2.hideCredentials) && (m = true) : Array.isArray(t2.hideCredentials) && (m = t2.hideCredentials.some(
|
|
31297
|
+
(i) => s.content.includes(i)
|
|
31274
31298
|
)), m && (s.content = s.content.replace(
|
|
31275
31299
|
/<span class="credentials">.*?<\/span>/g,
|
|
31276
|
-
(
|
|
31300
|
+
(i) => i.replace(/<span class="credentials">|<\/span>/g, "")
|
|
31277
31301
|
), s.content = s.content.replace(
|
|
31278
31302
|
new RegExp(
|
|
31279
|
-
typeof
|
|
31303
|
+
typeof t2.hideCredentials == "string" ? t2.hideCredentials : t2.hideCredentials.join("|"),
|
|
31280
31304
|
"g"
|
|
31281
31305
|
),
|
|
31282
|
-
(
|
|
31306
|
+
(i) => `<span class="credentials">${i}</span>`
|
|
31283
31307
|
));
|
|
31284
31308
|
});
|
|
31285
|
-
const r2 = ref(null),
|
|
31309
|
+
const r2 = ref(null), d = ref(ssrState[n] ?? ""), o = computed(() => t2.lang === "node" ? "js" : t2.lang), c = t2.lang;
|
|
31286
31310
|
watch(
|
|
31287
|
-
[() =>
|
|
31311
|
+
[() => t2.lang, () => t2.content, r2],
|
|
31288
31312
|
() => {
|
|
31289
|
-
r2.value &&
|
|
31313
|
+
r2.value && t2.content && (!d.value || t2.lang !== c) && (d.value = "", nextTick(() => g(r2.value)));
|
|
31290
31314
|
},
|
|
31291
31315
|
{ immediate: true }
|
|
31292
31316
|
);
|
|
31293
31317
|
const p = /\n(?!$)/g;
|
|
31294
31318
|
return onServerPrefetch(async () => {
|
|
31295
31319
|
let s = "";
|
|
31296
|
-
|
|
31297
|
-
const S2 =
|
|
31320
|
+
t2.lineNumbers && I.hooks.add("after-tokenize", (i) => {
|
|
31321
|
+
const S2 = i.code.match(p), E = S2 ? S2.length + 1 : 1;
|
|
31298
31322
|
s = `<span aria-hidden="true" class="line-numbers-rows">${new Array(E + 1).join("<span></span>")}</span>`;
|
|
31299
31323
|
});
|
|
31300
|
-
const m =
|
|
31301
|
-
|
|
31302
|
-
|
|
31324
|
+
const m = I.highlight(
|
|
31325
|
+
O(t2.content),
|
|
31326
|
+
I.languages[o.value],
|
|
31303
31327
|
o.value
|
|
31304
31328
|
);
|
|
31305
|
-
if (
|
|
31306
|
-
const
|
|
31307
|
-
|
|
31329
|
+
if (d.value = m + s, e !== 0) {
|
|
31330
|
+
const i = useSSRContext();
|
|
31331
|
+
i.payload.data[n] = m + s;
|
|
31308
31332
|
}
|
|
31309
31333
|
}), onMounted(async () => {
|
|
31310
|
-
await import("./prism-autoloader-Dlh8Vzlw-BR-Zk31i.js"),
|
|
31334
|
+
await import("./prism-autoloader-Dlh8Vzlw-BR-Zk31i.js"), f.autoloader.languages_path = "https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/";
|
|
31311
31335
|
}), (s, m) => (openBlock(), createElementBlock("pre", {
|
|
31312
31336
|
class: normalizeClass([
|
|
31313
31337
|
`scalar-component scalar-codeblock-pre language-${o.value}`,
|
|
@@ -31316,29 +31340,29 @@ const ke = ["innerHTML"], oa = /* @__PURE__ */ defineComponent({
|
|
|
31316
31340
|
}
|
|
31317
31341
|
])
|
|
31318
31342
|
}, [
|
|
31319
|
-
|
|
31343
|
+
d.value ? (openBlock(), createElementBlock("code", {
|
|
31320
31344
|
key: 0,
|
|
31321
31345
|
class: normalizeClass(`scalar-codeblock-code language-${o.value}`),
|
|
31322
|
-
innerHTML:
|
|
31323
|
-
}, null, 10,
|
|
31346
|
+
innerHTML: unref(O)(d.value)
|
|
31347
|
+
}, null, 10, Ee)) : (openBlock(), createElementBlock("code", {
|
|
31324
31348
|
key: 1,
|
|
31325
31349
|
ref_key: "el",
|
|
31326
31350
|
ref: r2,
|
|
31327
31351
|
class: normalizeClass(`scalar-codeblock-code language-${o.value}`)
|
|
31328
|
-
}, toDisplayString(s.content), 3))
|
|
31352
|
+
}, toDisplayString(unref(O)(s.content)), 3))
|
|
31329
31353
|
], 2));
|
|
31330
31354
|
}
|
|
31331
|
-
}),
|
|
31332
|
-
const
|
|
31333
|
-
return
|
|
31334
|
-
},
|
|
31355
|
+
}), G = /* @__PURE__ */ Object.assign({ "./Add.svg": () => import("./Add-MwmVL5-v-3DrL2GXw.js"), "./CheckMark.svg": () => import("./CheckMark-t0gl4N9U-BE06BAQA.js"), "./ChevronDown.svg": () => import("./ChevronDown-BfsntkAH-BOGiF9uG.js"), "./ChevronLeft.svg": () => import("./ChevronLeft-gsLd5xOQ-Z0Ct_Vv2.js"), "./ChevronRight.svg": () => import("./ChevronRight-CI_7n_av-BCFTpQ51.js"), "./ChevronUp.svg": () => import("./ChevronUp-CjHRmG59-B93Q9llD.js"), "./Clipboard.svg": () => import("./Clipboard-CU_KxGEv-DWrQtWVi.js"), "./Close.svg": () => import("./Close-DFM1qMQH-DMPtwWpT.js"), "./CodeFolder.svg": () => import("./CodeFolder-Cf9f6-KB-BSC0O0uL.js"), "./DarkMode.svg": () => import("./DarkMode-CBsV8Q_I-DHPfucpm.js"), "./DocsPage.svg": () => import("./DocsPage-Do-Ol9Hb-BNFtxcCC.js"), "./Ellipses.svg": () => import("./Ellipses-Bo_X36Hx-CsJmKvlE.js"), "./ExternalLink.svg": () => import("./ExternalLink-D5zCsWas-MT2ACYLZ.js"), "./GitHub.svg": () => import("./GitHub-NdE6Zs9k-BAGzgXH_.js"), "./JsonObject.svg": () => import("./JsonObject-BvFDNssB-D5YzqgGw.js"), "./LightDarkModeToggle.svg": () => import("./LightDarkModeToggle-BkvMimDa-Dk64Z-UE.js"), "./LightMode.svg": () => import("./LightMode-Btz6vyT_-JpKLPzdT.js"), "./Logo.svg": () => import("./Logo-mtzeKD8M-LQcor9RM.js"), "./LogoAPI.svg": () => import("./LogoAPI-CaU5E6FK-Bzb5EbnZ.js"), "./LogoClient.svg": () => import("./LogoClient-DdC-t_7P-B_rZ91PC.js"), "./LogoMarket.svg": () => import("./LogoMarket-DwlApcab-_INRDSLs.js"), "./LogoSwagger.svg": () => import("./LogoSwagger-CH60H5qW-DFEpFXIU.js"), "./Menu.svg": () => import("./Menu-DFi9Laso-BhIZrQxp.js"), "./PaperAirplane.svg": () => import("./PaperAirplane-BC-4mGEB-BrV5fX8s.js"), "./Search.svg": () => import("./Search-DqtlswRG-D-hprEk0.js"), "./Terminal.svg": () => import("./Terminal-CKp--su5-vWaGU4_z.js"), "./arrow-chevron-down.svg": () => import("./arrow-chevron-down-C8nXK33Q-cFi1tcoL.js"), "./arrow-chevron-left.svg": () => import("./arrow-chevron-left-BXUhHSEc-GDsvyOvS.js"), "./arrow-chevron-right.svg": () => import("./arrow-chevron-right-CSqjaNKG-DLqk_P-k.js"), "./arrow-chevron-up.svg": () => import("./arrow-chevron-up-Dr-W1IfM-CJpftEXD.js"), "./arrow-down.svg": () => import("./arrow-down-rfW-r_qd-DCnCiMpp.js"), "./arrow-left.svg": () => import("./arrow-left-DDkHt-xN-CFh-lXGZ.js"), "./arrow-right.svg": () => import("./arrow-right-17dZkGZR-C5So-BEm.js"), "./arrow-up.svg": () => import("./arrow-up-CexG2Ble-BlrsZtgs.js"), "./brand-software-development-github.svg": () => import("./brand-software-development-github-ZQnPxpDg-9BAblfAs.js"), "./interface-add.svg": () => import("./interface-add-Bthe4y9O-EDM5uqD-.js"), "./interface-close.svg": () => import("./interface-close-WpJOu-2h-W6lKje7S.js"), "./programming-framework-angular.svg": () => import("./programming-framework-angular-DD4Vjgbk-Bzc9D9am.js"), "./programming-framework-astro.svg": () => import("./programming-framework-astro-CLfrRt19-CfPlyy6T.js"), "./programming-framework-laravel.svg": () => import("./programming-framework-laravel-kAy2wVLy-Cty_4oXq.js"), "./programming-framework-nextdotjs.svg": () => import("./programming-framework-nextdotjs-BKdd_DY_-DUTv-t1Q.js"), "./programming-framework-react.svg": () => import("./programming-framework-react-PDgmtZuN-DdUogL85.js"), "./programming-framework-vuedotjs.svg": () => import("./programming-framework-vuedotjs-Cv46W2aB-Dt_I9pcj.js"), "./programming-language-c.svg": () => import("./programming-language-c-hPGu2Zvg-QG1pSdJG.js"), "./programming-language-clojure.svg": () => import("./programming-language-clojure-Cvmzky8x-D6Gs-6Ol.js"), "./programming-language-csharp.svg": () => import("./programming-language-csharp-lqX1oWgb-B1_8fYG9.js"), "./programming-language-css3.svg": () => import("./programming-language-css3-Dpp4Cr6b-Bf5XF7-p.js"), "./programming-language-go.svg": () => import("./programming-language-go-DoJxWwT6-BUgfSlg1.js"), "./programming-language-html5.svg": () => import("./programming-language-html5-DlqJK4EL-Bl9dTA-D.js"), "./programming-language-http.svg": () => import("./programming-language-http-wMYwFS1I-BWQXI44M.js"), "./programming-language-java.svg": () => import("./programming-language-java-BCxG2T_w-CWqBHVz_.js"), "./programming-language-javascript.svg": () => import("./programming-language-javascript-VxLvi1QG-DFjYF_MP.js"), "./programming-language-json.svg": () => import("./programming-language-json-vEX_g7Zi-BMZrSR1t.js"), "./programming-language-kotlin.svg": () => import("./programming-language-kotlin-DKV8vP9h-C1Zi89NZ.js"), "./programming-language-node.svg": () => import("./programming-language-node-Xsgx38lm-DZhaOPIJ.js"), "./programming-language-objc.svg": () => import("./programming-language-objc-BQXSOBsX-BR-B91By.js"), "./programming-language-ocaml.svg": () => import("./programming-language-ocaml-BEz7gGv7-ip3_Zuhb.js"), "./programming-language-php.svg": () => import("./programming-language-php-GY38f8r4-DQ_8EMFH.js"), "./programming-language-powershell.svg": () => import("./programming-language-powershell-C9DkSp36-S3xix_dw.js"), "./programming-language-python.svg": () => import("./programming-language-python-Ct-_kNjo-BCrlyfv0.js"), "./programming-language-r.svg": () => import("./programming-language-r-BGoKwua9-BWGOKD9M.js"), "./programming-language-ruby.svg": () => import("./programming-language-ruby-DhdM4d7g-Dd3La6Kn.js"), "./programming-language-scala.svg": () => import("./programming-language-scala-BVg0dToJ-Bz_n-CNw.js"), "./programming-language-shell.svg": () => import("./programming-language-shell-BsTa1xI7-XJbYjh7O.js"), "./programming-language-swift.svg": () => import("./programming-language-swift-Dn72xPjg-BUvu5_SV.js"), "./programming-language-typescript.svg": () => import("./programming-language-typescript-CdF-HuRi-CaDO02MW.js"), "./programming-script-code.svg": () => import("./programming-script-code-DQN1veb2-BPFALXVk.js"), "./programming-tool-git.svg": () => import("./programming-tool-git-DDnQ1zGD-Cz6Yj0wj.js"), "./programming-tool-tailwindcss.svg": () => import("./programming-tool-tailwindcss-xjXi0E6g-ky2wbsII.js") }), V = (a) => {
|
|
31356
|
+
const t2 = `./${a}.svg`;
|
|
31357
|
+
return G[t2] ? defineAsyncComponent(G[t2]) : (console.warn(`Could not find icon: ${a}`), null);
|
|
31358
|
+
}, Ne = ["src"], B = /* @__PURE__ */ defineComponent({
|
|
31335
31359
|
__name: "ScalarIcon",
|
|
31336
31360
|
props: {
|
|
31337
31361
|
icon: {},
|
|
31338
31362
|
size: {}
|
|
31339
31363
|
},
|
|
31340
|
-
setup(
|
|
31341
|
-
const
|
|
31364
|
+
setup(a) {
|
|
31365
|
+
const t2 = a, e = $({
|
|
31342
31366
|
variants: {
|
|
31343
31367
|
size: {
|
|
31344
31368
|
xs: "h-3 w-3",
|
|
@@ -31352,14 +31376,14 @@ const ke = ["innerHTML"], oa = /* @__PURE__ */ defineComponent({
|
|
|
31352
31376
|
defaultVariants: {
|
|
31353
31377
|
size: "full"
|
|
31354
31378
|
}
|
|
31355
|
-
}),
|
|
31356
|
-
return (
|
|
31379
|
+
}), n = V(t2.icon);
|
|
31380
|
+
return (f, g) => unref(n) ? (openBlock(), createBlock(resolveDynamicComponent(unref(V)(f.icon)), {
|
|
31357
31381
|
key: 0,
|
|
31358
|
-
class: normalizeClass(unref(
|
|
31382
|
+
class: normalizeClass(unref(w)("scalar-icon", unref(e)({ size: f.size })))
|
|
31359
31383
|
}, null, 8, ["class"])) : (openBlock(), createElementBlock("img", {
|
|
31360
31384
|
key: 1,
|
|
31361
|
-
src:
|
|
31362
|
-
}, null, 8,
|
|
31385
|
+
src: f.icon
|
|
31386
|
+
}, null, 8, Ne));
|
|
31363
31387
|
}
|
|
31364
31388
|
});
|
|
31365
31389
|
const _sfc_main$q = {};
|
|
@@ -31412,7 +31436,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
31412
31436
|
createVNode(unref(ListboxButton), { as: CardFormButton }, {
|
|
31413
31437
|
default: withCtx(() => [
|
|
31414
31438
|
createElementVNode("div", _hoisted_1$m, [
|
|
31415
|
-
createVNode(unref(
|
|
31439
|
+
createVNode(unref(B), {
|
|
31416
31440
|
icon: open ? "ChevronUp" : "ChevronDown",
|
|
31417
31441
|
size: "sm"
|
|
31418
31442
|
}, null, 8, ["icon"]),
|
|
@@ -31776,7 +31800,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
31776
31800
|
(_b = _ctx.value) == null ? void 0 : _b[unref(authentication2).preferredSecurityScheme],
|
|
31777
31801
|
unref(authentication2).preferredSecurityScheme
|
|
31778
31802
|
) : "None"), 1),
|
|
31779
|
-
createVNode(unref(
|
|
31803
|
+
createVNode(unref(B), { icon: "ChevronDown" }),
|
|
31780
31804
|
createElementVNode("select", {
|
|
31781
31805
|
value: unref(authentication2).preferredSecurityScheme,
|
|
31782
31806
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
@@ -31945,7 +31969,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
31945
31969
|
_hoisted_3$7
|
|
31946
31970
|
]),
|
|
31947
31971
|
meta: withCtx(() => [
|
|
31948
|
-
createVNode(unref(
|
|
31972
|
+
createVNode(unref(_e), {
|
|
31949
31973
|
class: "table-description-toggle",
|
|
31950
31974
|
variant: "text",
|
|
31951
31975
|
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:showDescription", !_ctx.showDescription))
|
|
@@ -32176,7 +32200,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
32176
32200
|
onClick: addHandler
|
|
32177
32201
|
}, [
|
|
32178
32202
|
createElementVNode("i", _hoisted_3$4, [
|
|
32179
|
-
createVNode(unref(
|
|
32203
|
+
createVNode(unref(B), { icon: "Add" })
|
|
32180
32204
|
]),
|
|
32181
32205
|
createTextVNode(" " + toDisplayString(_ctx.addLabel), 1)
|
|
32182
32206
|
])) : createCommentVNode("", true),
|
|
@@ -32188,7 +32212,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
32188
32212
|
}, [
|
|
32189
32213
|
createTextVNode(" Show More "),
|
|
32190
32214
|
createElementVNode("i", _hoisted_4$3, [
|
|
32191
|
-
createVNode(unref(
|
|
32215
|
+
createVNode(unref(B), { icon: "ChevronDown" })
|
|
32192
32216
|
])
|
|
32193
32217
|
])) : createCommentVNode("", true)
|
|
32194
32218
|
])
|
|
@@ -32674,7 +32698,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
32674
32698
|
return openBlock(), createBlock(unref(_sfc_main$v), { title: "Body" }, {
|
|
32675
32699
|
default: withCtx(() => [
|
|
32676
32700
|
_ctx.active ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
32677
|
-
codeMirrorLanguage.value ? (openBlock(), createBlock(unref(
|
|
32701
|
+
codeMirrorLanguage.value ? (openBlock(), createBlock(unref(it), {
|
|
32678
32702
|
key: 0,
|
|
32679
32703
|
class: "custom-scroll",
|
|
32680
32704
|
content: _ctx.data,
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"rest",
|
|
14
14
|
"testing"
|
|
15
15
|
],
|
|
16
|
-
"version": "1.2.
|
|
16
|
+
"version": "1.2.5",
|
|
17
17
|
"engines": {
|
|
18
18
|
"node": ">=18"
|
|
19
19
|
},
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"nanoid": "^5.0.1",
|
|
43
43
|
"pretty-bytes": "^6.1.1",
|
|
44
44
|
"pretty-ms": "^8.0.0",
|
|
45
|
-
"@scalar/
|
|
46
|
-
"@scalar/
|
|
47
|
-
"@scalar/themes": "0.7.2",
|
|
45
|
+
"@scalar/components": "0.5.2",
|
|
46
|
+
"@scalar/themes": "0.7.3",
|
|
48
47
|
"@scalar/use-modal": "0.3.0",
|
|
48
|
+
"@scalar/use-codemirror": "0.10.1",
|
|
49
49
|
"@scalar/use-tooltip": "0.6.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|