@gravitee/graphene-policy-studio 3.14.0 → 3.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +882 -874
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11897,7 +11897,7 @@ var Wy = {
|
|
|
11897
11897
|
function Gy() {}
|
|
11898
11898
|
//#endregion
|
|
11899
11899
|
//#region ../../node_modules/@ungap/structured-clone/esm/deserialize.js
|
|
11900
|
-
var Ky = typeof self == "object" ? self : globalThis,
|
|
11900
|
+
var { defineProperty: Ky } = Object, qy = typeof self == "object" ? self : globalThis, Jy = (e, t) => {
|
|
11901
11901
|
switch (e) {
|
|
11902
11902
|
case "Function":
|
|
11903
11903
|
case "SharedWorker":
|
|
@@ -11906,8 +11906,8 @@ var Ky = typeof self == "object" ? self : globalThis, qy = (e, t) => {
|
|
|
11906
11906
|
case "setInterval":
|
|
11907
11907
|
case "setTimeout": throw TypeError("unable to deserialize " + e);
|
|
11908
11908
|
}
|
|
11909
|
-
return new
|
|
11910
|
-
},
|
|
11909
|
+
return new qy[e](t);
|
|
11910
|
+
}, Yy = (e, t) => {
|
|
11911
11911
|
let n = (t, n) => (e.set(n, t), t), r = (i) => {
|
|
11912
11912
|
if (e.has(i)) return e.get(i);
|
|
11913
11913
|
let [a, o] = t[i];
|
|
@@ -11921,7 +11921,15 @@ var Ky = typeof self == "object" ? self : globalThis, qy = (e, t) => {
|
|
|
11921
11921
|
}
|
|
11922
11922
|
case 2: {
|
|
11923
11923
|
let e = n({}, i);
|
|
11924
|
-
for (let [t, n] of o)
|
|
11924
|
+
for (let [t, n] of o) {
|
|
11925
|
+
let i = r(t), a = r(n);
|
|
11926
|
+
i === "__proto__" ? Ky(e, i, {
|
|
11927
|
+
value: a,
|
|
11928
|
+
configurable: !0,
|
|
11929
|
+
enumerable: !0,
|
|
11930
|
+
writable: !0
|
|
11931
|
+
}) : e[i] = a;
|
|
11932
|
+
}
|
|
11925
11933
|
return e;
|
|
11926
11934
|
}
|
|
11927
11935
|
case 3: return n(new Date(o), i);
|
|
@@ -11941,7 +11949,7 @@ var Ky = typeof self == "object" ? self : globalThis, qy = (e, t) => {
|
|
|
11941
11949
|
}
|
|
11942
11950
|
case 7: {
|
|
11943
11951
|
let { name: e, message: t } = o;
|
|
11944
|
-
return n(typeof
|
|
11952
|
+
return n(typeof qy[e] == "function" ? Jy(e, t) : Error(t), i);
|
|
11945
11953
|
}
|
|
11946
11954
|
case 8: return n(BigInt(o), i);
|
|
11947
11955
|
case "BigInt": return n(Object(BigInt(o)), i);
|
|
@@ -11951,30 +11959,30 @@ var Ky = typeof self == "object" ? self : globalThis, qy = (e, t) => {
|
|
|
11951
11959
|
return n(new DataView(e), o);
|
|
11952
11960
|
}
|
|
11953
11961
|
}
|
|
11954
|
-
return n(
|
|
11962
|
+
return n(Jy(a, o), i);
|
|
11955
11963
|
};
|
|
11956
11964
|
return r;
|
|
11957
|
-
},
|
|
11965
|
+
}, Xy = (e) => Yy(/* @__PURE__ */ new Map(), e)(0), Zy = "", { toString: Qy } = {}, { keys: $y } = Object, eb = (e) => {
|
|
11958
11966
|
let t = typeof e;
|
|
11959
11967
|
if (t !== "object" || !e) return [0, t];
|
|
11960
|
-
let n =
|
|
11968
|
+
let n = Qy.call(e).slice(8, -1);
|
|
11961
11969
|
switch (n) {
|
|
11962
|
-
case "Array": return [1,
|
|
11963
|
-
case "Object": return [2,
|
|
11964
|
-
case "Date": return [3,
|
|
11965
|
-
case "RegExp": return [4,
|
|
11966
|
-
case "Map": return [5,
|
|
11967
|
-
case "Set": return [6,
|
|
11970
|
+
case "Array": return [1, Zy];
|
|
11971
|
+
case "Object": return [2, Zy];
|
|
11972
|
+
case "Date": return [3, Zy];
|
|
11973
|
+
case "RegExp": return [4, Zy];
|
|
11974
|
+
case "Map": return [5, Zy];
|
|
11975
|
+
case "Set": return [6, Zy];
|
|
11968
11976
|
case "DataView": return [1, n];
|
|
11969
11977
|
}
|
|
11970
11978
|
return n.includes("Array") ? [1, n] : e instanceof Error ? [7, e.name || "Error"] : [2, n];
|
|
11971
|
-
},
|
|
11979
|
+
}, tb = ([e, t]) => e === 0 && (t === "function" || t === "symbol"), nb = (e, t, n, r) => {
|
|
11972
11980
|
let i = (e, t) => {
|
|
11973
11981
|
let i = r.push(e) - 1;
|
|
11974
11982
|
return n.set(t, i), i;
|
|
11975
11983
|
}, a = (r) => {
|
|
11976
11984
|
if (n.has(r)) return n.get(r);
|
|
11977
|
-
let [o, s] =
|
|
11985
|
+
let [o, s] = eb(r);
|
|
11978
11986
|
switch (o) {
|
|
11979
11987
|
case 0: {
|
|
11980
11988
|
let t = r;
|
|
@@ -12009,10 +12017,10 @@ var Ky = typeof self == "object" ? self : globalThis, qy = (e, t) => {
|
|
|
12009
12017
|
}
|
|
12010
12018
|
if (t && "toJSON" in r) return a(r.toJSON());
|
|
12011
12019
|
let n = [], c = i([o, n], r);
|
|
12012
|
-
for (let t of
|
|
12020
|
+
for (let t of $y(r)) (e || !tb(eb(r[t]))) && n.push([a(t), a(r[t])]);
|
|
12013
12021
|
return c;
|
|
12014
12022
|
}
|
|
12015
|
-
case 3: return i([o, isNaN(r.getTime()) ?
|
|
12023
|
+
case 3: return i([o, isNaN(r.getTime()) ? Zy : r.toISOString()], r);
|
|
12016
12024
|
case 4: {
|
|
12017
12025
|
let { source: e, flags: t } = r;
|
|
12018
12026
|
return i([o, {
|
|
@@ -12022,12 +12030,12 @@ var Ky = typeof self == "object" ? self : globalThis, qy = (e, t) => {
|
|
|
12022
12030
|
}
|
|
12023
12031
|
case 5: {
|
|
12024
12032
|
let t = [], n = i([o, t], r);
|
|
12025
|
-
for (let [n, i] of r) (e || !(eb(
|
|
12033
|
+
for (let [n, i] of r) (e || !(tb(eb(n)) || tb(eb(i)))) && t.push([a(n), a(i)]);
|
|
12026
12034
|
return n;
|
|
12027
12035
|
}
|
|
12028
12036
|
case 6: {
|
|
12029
12037
|
let t = [], n = i([o, t], r);
|
|
12030
|
-
for (let n of r) (e || !eb(
|
|
12038
|
+
for (let n of r) (e || !tb(eb(n))) && t.push(a(n));
|
|
12031
12039
|
return n;
|
|
12032
12040
|
}
|
|
12033
12041
|
}
|
|
@@ -12038,13 +12046,13 @@ var Ky = typeof self == "object" ? self : globalThis, qy = (e, t) => {
|
|
|
12038
12046
|
}], r);
|
|
12039
12047
|
};
|
|
12040
12048
|
return a;
|
|
12041
|
-
},
|
|
12049
|
+
}, rb = (e, { json: t, lossy: n } = {}) => {
|
|
12042
12050
|
let r = [];
|
|
12043
|
-
return
|
|
12044
|
-
},
|
|
12051
|
+
return nb(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
|
|
12052
|
+
}, ib = typeof structuredClone == "function" ? (e, t) => t && ("json" in t || "lossy" in t) ? Xy(rb(e, t)) : structuredClone(e) : (e, t) => Xy(rb(e, t));
|
|
12045
12053
|
//#endregion
|
|
12046
12054
|
//#region ../../node_modules/mdast-util-to-hast/lib/footer.js
|
|
12047
|
-
function
|
|
12055
|
+
function ab(e, t) {
|
|
12048
12056
|
let n = [{
|
|
12049
12057
|
type: "text",
|
|
12050
12058
|
value: "↩"
|
|
@@ -12059,11 +12067,11 @@ function ib(e, t) {
|
|
|
12059
12067
|
}]
|
|
12060
12068
|
}), n;
|
|
12061
12069
|
}
|
|
12062
|
-
function
|
|
12070
|
+
function ob(e, t) {
|
|
12063
12071
|
return "Back to reference " + (e + 1) + (t > 1 ? "-" + t : "");
|
|
12064
12072
|
}
|
|
12065
|
-
function
|
|
12066
|
-
let t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent ||
|
|
12073
|
+
function sb(e) {
|
|
12074
|
+
let t = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", n = e.options.footnoteBackContent || ab, r = e.options.footnoteBackLabel || ob, i = e.options.footnoteLabel || "Footnotes", a = e.options.footnoteLabelTagName || "h2", o = e.options.footnoteLabelProperties || { className: ["sr-only"] }, s = [], c = -1;
|
|
12067
12075
|
for (; ++c < e.footnoteOrder.length;) {
|
|
12068
12076
|
let i = e.footnoteById.get(e.footnoteOrder[c]);
|
|
12069
12077
|
if (!i) continue;
|
|
@@ -12117,7 +12125,7 @@ function ob(e) {
|
|
|
12117
12125
|
type: "element",
|
|
12118
12126
|
tagName: a,
|
|
12119
12127
|
properties: {
|
|
12120
|
-
...
|
|
12128
|
+
...ib(o),
|
|
12121
12129
|
id: "footnote-label"
|
|
12122
12130
|
},
|
|
12123
12131
|
children: [{
|
|
@@ -12144,73 +12152,73 @@ function ob(e) {
|
|
|
12144
12152
|
}
|
|
12145
12153
|
//#endregion
|
|
12146
12154
|
//#region ../../node_modules/unist-util-is/lib/index.js
|
|
12147
|
-
var
|
|
12148
|
-
if (e == null) return
|
|
12149
|
-
if (typeof e == "function") return
|
|
12150
|
-
if (typeof e == "object") return Array.isArray(e) ?
|
|
12151
|
-
if (typeof e == "string") return
|
|
12155
|
+
var cb = (function(e) {
|
|
12156
|
+
if (e == null) return pb;
|
|
12157
|
+
if (typeof e == "function") return fb(e);
|
|
12158
|
+
if (typeof e == "object") return Array.isArray(e) ? lb(e) : ub(e);
|
|
12159
|
+
if (typeof e == "string") return db(e);
|
|
12152
12160
|
throw Error("Expected function, string, or object as test");
|
|
12153
12161
|
});
|
|
12154
|
-
function
|
|
12162
|
+
function lb(e) {
|
|
12155
12163
|
let t = [], n = -1;
|
|
12156
|
-
for (; ++n < e.length;) t[n] =
|
|
12157
|
-
return
|
|
12164
|
+
for (; ++n < e.length;) t[n] = cb(e[n]);
|
|
12165
|
+
return fb(r);
|
|
12158
12166
|
function r(...e) {
|
|
12159
12167
|
let n = -1;
|
|
12160
12168
|
for (; ++n < t.length;) if (t[n].apply(this, e)) return !0;
|
|
12161
12169
|
return !1;
|
|
12162
12170
|
}
|
|
12163
12171
|
}
|
|
12164
|
-
function
|
|
12172
|
+
function ub(e) {
|
|
12165
12173
|
let t = e;
|
|
12166
|
-
return
|
|
12174
|
+
return fb(n);
|
|
12167
12175
|
function n(n) {
|
|
12168
12176
|
let r = n, i;
|
|
12169
12177
|
for (i in e) if (r[i] !== t[i]) return !1;
|
|
12170
12178
|
return !0;
|
|
12171
12179
|
}
|
|
12172
12180
|
}
|
|
12173
|
-
function
|
|
12174
|
-
return
|
|
12181
|
+
function db(e) {
|
|
12182
|
+
return fb(t);
|
|
12175
12183
|
function t(t) {
|
|
12176
12184
|
return t && t.type === e;
|
|
12177
12185
|
}
|
|
12178
12186
|
}
|
|
12179
|
-
function
|
|
12187
|
+
function fb(e) {
|
|
12180
12188
|
return t;
|
|
12181
12189
|
function t(t, n, r) {
|
|
12182
|
-
return !!(
|
|
12190
|
+
return !!(mb(t) && e.call(this, t, typeof n == "number" ? n : void 0, r || void 0));
|
|
12183
12191
|
}
|
|
12184
12192
|
}
|
|
12185
|
-
function
|
|
12193
|
+
function pb() {
|
|
12186
12194
|
return !0;
|
|
12187
12195
|
}
|
|
12188
|
-
function
|
|
12196
|
+
function mb(e) {
|
|
12189
12197
|
return typeof e == "object" && !!e && "type" in e;
|
|
12190
12198
|
}
|
|
12191
12199
|
//#endregion
|
|
12192
12200
|
//#region ../../node_modules/unist-util-visit-parents/lib/color.js
|
|
12193
|
-
function
|
|
12201
|
+
function hb(e) {
|
|
12194
12202
|
return e;
|
|
12195
12203
|
}
|
|
12196
12204
|
//#endregion
|
|
12197
12205
|
//#region ../../node_modules/unist-util-visit-parents/lib/index.js
|
|
12198
|
-
var
|
|
12199
|
-
function
|
|
12206
|
+
var gb = [];
|
|
12207
|
+
function _b(e, t, n, r) {
|
|
12200
12208
|
let i;
|
|
12201
12209
|
typeof t == "function" && typeof n != "function" ? (r = n, n = t) : i = t;
|
|
12202
|
-
let a =
|
|
12210
|
+
let a = cb(i), o = r ? -1 : 1;
|
|
12203
12211
|
s(e, void 0, [])();
|
|
12204
12212
|
function s(e, i, c) {
|
|
12205
12213
|
let l = e && typeof e == "object" ? e : {};
|
|
12206
12214
|
if (typeof l.type == "string") {
|
|
12207
12215
|
let t = typeof l.tagName == "string" ? l.tagName : typeof l.name == "string" ? l.name : void 0;
|
|
12208
|
-
Object.defineProperty(u, "name", { value: "node (" +
|
|
12216
|
+
Object.defineProperty(u, "name", { value: "node (" + hb(e.type + (t ? "<" + t + ">" : "")) + ")" });
|
|
12209
12217
|
}
|
|
12210
12218
|
return u;
|
|
12211
12219
|
function u() {
|
|
12212
|
-
let l =
|
|
12213
|
-
if ((!t || a(e, i, c[c.length - 1] || void 0)) && (l =
|
|
12220
|
+
let l = gb, u, d, f;
|
|
12221
|
+
if ((!t || a(e, i, c[c.length - 1] || void 0)) && (l = vb(n(e, c)), l[0] === !1)) return l;
|
|
12214
12222
|
if ("children" in e && e.children) {
|
|
12215
12223
|
let t = e;
|
|
12216
12224
|
if (t.children && l[0] !== "skip") for (d = (r ? t.children.length : -1) + o, f = c.concat(t); d > -1 && d < t.children.length;) {
|
|
@@ -12223,14 +12231,14 @@ function gb(e, t, n, r) {
|
|
|
12223
12231
|
}
|
|
12224
12232
|
}
|
|
12225
12233
|
}
|
|
12226
|
-
function
|
|
12227
|
-
return Array.isArray(e) ? e : typeof e == "number" ? [!0, e] : e == null ?
|
|
12234
|
+
function vb(e) {
|
|
12235
|
+
return Array.isArray(e) ? e : typeof e == "number" ? [!0, e] : e == null ? gb : [e];
|
|
12228
12236
|
}
|
|
12229
12237
|
//#endregion
|
|
12230
12238
|
//#region ../../node_modules/unist-util-visit/lib/index.js
|
|
12231
|
-
function
|
|
12239
|
+
function yb(e, t, n, r) {
|
|
12232
12240
|
let i, a, o;
|
|
12233
|
-
typeof t == "function" && typeof n != "function" ? (a = void 0, o = t, i = n) : (a = t, o = n, i = r),
|
|
12241
|
+
typeof t == "function" && typeof n != "function" ? (a = void 0, o = t, i = n) : (a = t, o = n, i = r), _b(e, a, s, i);
|
|
12234
12242
|
function s(e, t) {
|
|
12235
12243
|
let n = t[t.length - 1], r = n ? n.children.indexOf(e) : void 0;
|
|
12236
12244
|
return o(e, r, n);
|
|
@@ -12238,11 +12246,11 @@ function vb(e, t, n, r) {
|
|
|
12238
12246
|
}
|
|
12239
12247
|
//#endregion
|
|
12240
12248
|
//#region ../../node_modules/mdast-util-to-hast/lib/state.js
|
|
12241
|
-
var
|
|
12242
|
-
function
|
|
12243
|
-
let n = t ||
|
|
12249
|
+
var bb = {}.hasOwnProperty, xb = {};
|
|
12250
|
+
function Sb(e, t) {
|
|
12251
|
+
let n = t || xb, r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = {
|
|
12244
12252
|
all: s,
|
|
12245
|
-
applyData:
|
|
12253
|
+
applyData: wb,
|
|
12246
12254
|
definitionById: r,
|
|
12247
12255
|
footnoteById: i,
|
|
12248
12256
|
footnoteCounts: /* @__PURE__ */ new Map(),
|
|
@@ -12253,10 +12261,10 @@ function xb(e, t) {
|
|
|
12253
12261
|
},
|
|
12254
12262
|
one: o,
|
|
12255
12263
|
options: n,
|
|
12256
|
-
patch:
|
|
12257
|
-
wrap:
|
|
12264
|
+
patch: Cb,
|
|
12265
|
+
wrap: Eb
|
|
12258
12266
|
};
|
|
12259
|
-
return
|
|
12267
|
+
return yb(e, function(e) {
|
|
12260
12268
|
if (e.type === "definition" || e.type === "footnoteDefinition") {
|
|
12261
12269
|
let t = e.type === "definition" ? r : i, n = String(e.identifier).toUpperCase();
|
|
12262
12270
|
t.has(n) || t.set(n, e);
|
|
@@ -12264,15 +12272,15 @@ function xb(e, t) {
|
|
|
12264
12272
|
}), a;
|
|
12265
12273
|
function o(e, t) {
|
|
12266
12274
|
let n = e.type, r = a.handlers[n];
|
|
12267
|
-
if (
|
|
12275
|
+
if (bb.call(a.handlers, n) && r) return r(a, e, t);
|
|
12268
12276
|
if (a.options.passThrough && a.options.passThrough.includes(n)) {
|
|
12269
12277
|
if ("children" in e) {
|
|
12270
|
-
let { children: t, ...n } = e, r =
|
|
12278
|
+
let { children: t, ...n } = e, r = ib(n);
|
|
12271
12279
|
return r.children = a.all(e), r;
|
|
12272
12280
|
}
|
|
12273
|
-
return
|
|
12281
|
+
return ib(e);
|
|
12274
12282
|
}
|
|
12275
|
-
return (a.options.unknownHandler ||
|
|
12283
|
+
return (a.options.unknownHandler || Tb)(a, e, t);
|
|
12276
12284
|
}
|
|
12277
12285
|
function s(e) {
|
|
12278
12286
|
let t = [];
|
|
@@ -12281,9 +12289,9 @@ function xb(e, t) {
|
|
|
12281
12289
|
for (; ++r < n.length;) {
|
|
12282
12290
|
let i = a.one(n[r], e);
|
|
12283
12291
|
if (i) {
|
|
12284
|
-
if (r && n[r - 1].type === "break" && (!Array.isArray(i) && i.type === "text" && (i.value =
|
|
12292
|
+
if (r && n[r - 1].type === "break" && (!Array.isArray(i) && i.type === "text" && (i.value = Db(i.value)), !Array.isArray(i) && i.type === "element")) {
|
|
12285
12293
|
let e = i.children[0];
|
|
12286
|
-
e && e.type === "text" && (e.value =
|
|
12294
|
+
e && e.type === "text" && (e.value = Db(e.value));
|
|
12287
12295
|
}
|
|
12288
12296
|
Array.isArray(i) ? t.push(...i) : t.push(i);
|
|
12289
12297
|
}
|
|
@@ -12292,10 +12300,10 @@ function xb(e, t) {
|
|
|
12292
12300
|
return t;
|
|
12293
12301
|
}
|
|
12294
12302
|
}
|
|
12295
|
-
function
|
|
12303
|
+
function Cb(e, t) {
|
|
12296
12304
|
e.position && (t.position = Ph(e));
|
|
12297
12305
|
}
|
|
12298
|
-
function
|
|
12306
|
+
function wb(e, t) {
|
|
12299
12307
|
let n = t;
|
|
12300
12308
|
if (e && e.data) {
|
|
12301
12309
|
let t = e.data.hName, r = e.data.hChildren, i = e.data.hProperties;
|
|
@@ -12304,12 +12312,12 @@ function Cb(e, t) {
|
|
|
12304
12312
|
tagName: t,
|
|
12305
12313
|
properties: {},
|
|
12306
12314
|
children: "children" in n ? n.children : [n]
|
|
12307
|
-
}), n.type === "element" && i && Object.assign(n.properties,
|
|
12315
|
+
}), n.type === "element" && i && Object.assign(n.properties, ib(i)), "children" in n && n.children && r != null && (n.children = r);
|
|
12308
12316
|
}
|
|
12309
12317
|
return n;
|
|
12310
12318
|
}
|
|
12311
|
-
function
|
|
12312
|
-
let n = t.data || {}, r = "value" in t && !(
|
|
12319
|
+
function Tb(e, t) {
|
|
12320
|
+
let n = t.data || {}, r = "value" in t && !(bb.call(n, "hProperties") || bb.call(n, "hChildren")) ? {
|
|
12313
12321
|
type: "text",
|
|
12314
12322
|
value: t.value
|
|
12315
12323
|
} : {
|
|
@@ -12320,7 +12328,7 @@ function wb(e, t) {
|
|
|
12320
12328
|
};
|
|
12321
12329
|
return e.patch(t, r), e.applyData(t, r);
|
|
12322
12330
|
}
|
|
12323
|
-
function
|
|
12331
|
+
function Eb(e, t) {
|
|
12324
12332
|
let n = [], r = -1;
|
|
12325
12333
|
for (t && n.push({
|
|
12326
12334
|
type: "text",
|
|
@@ -12334,15 +12342,15 @@ function Tb(e, t) {
|
|
|
12334
12342
|
value: "\n"
|
|
12335
12343
|
}), n;
|
|
12336
12344
|
}
|
|
12337
|
-
function
|
|
12345
|
+
function Db(e) {
|
|
12338
12346
|
let t = 0, n = e.charCodeAt(t);
|
|
12339
12347
|
for (; n === 9 || n === 32;) t++, n = e.charCodeAt(t);
|
|
12340
12348
|
return e.slice(t);
|
|
12341
12349
|
}
|
|
12342
12350
|
//#endregion
|
|
12343
12351
|
//#region ../../node_modules/mdast-util-to-hast/lib/index.js
|
|
12344
|
-
function
|
|
12345
|
-
let n =
|
|
12352
|
+
function Ob(e, t) {
|
|
12353
|
+
let n = Sb(e, t), r = n.one(e, void 0), i = sb(n), a = Array.isArray(r) ? {
|
|
12346
12354
|
type: "root",
|
|
12347
12355
|
children: r
|
|
12348
12356
|
} : r || {
|
|
@@ -12356,15 +12364,15 @@ function Db(e, t) {
|
|
|
12356
12364
|
}
|
|
12357
12365
|
//#endregion
|
|
12358
12366
|
//#region ../../node_modules/remark-rehype/lib/index.js
|
|
12359
|
-
function
|
|
12367
|
+
function kb(e, t) {
|
|
12360
12368
|
return e && "run" in e ? async function(n, r) {
|
|
12361
|
-
let i =
|
|
12369
|
+
let i = Ob(n, {
|
|
12362
12370
|
file: r,
|
|
12363
12371
|
...t
|
|
12364
12372
|
});
|
|
12365
12373
|
await e.run(i, r);
|
|
12366
12374
|
} : function(n, r) {
|
|
12367
|
-
return
|
|
12375
|
+
return Ob(n, {
|
|
12368
12376
|
file: r,
|
|
12369
12377
|
...e || t
|
|
12370
12378
|
});
|
|
@@ -12372,12 +12380,12 @@ function Ob(e, t) {
|
|
|
12372
12380
|
}
|
|
12373
12381
|
//#endregion
|
|
12374
12382
|
//#region ../../node_modules/bail/index.js
|
|
12375
|
-
function
|
|
12383
|
+
function Ab(e) {
|
|
12376
12384
|
if (e) throw e;
|
|
12377
12385
|
}
|
|
12378
12386
|
//#endregion
|
|
12379
12387
|
//#region ../../node_modules/extend/index.js
|
|
12380
|
-
var
|
|
12388
|
+
var jb = /* @__PURE__ */ _n(((e, t) => {
|
|
12381
12389
|
var n = Object.prototype.hasOwnProperty, r = Object.prototype.toString, i = Object.defineProperty, a = Object.getOwnPropertyDescriptor, o = function(e) {
|
|
12382
12390
|
return typeof Array.isArray == "function" ? Array.isArray(e) : r.call(e) === "[object Array]";
|
|
12383
12391
|
}, s = function(e) {
|
|
@@ -12414,14 +12422,14 @@ var Ab = /* @__PURE__ */ _n(((e, t) => {
|
|
|
12414
12422
|
}));
|
|
12415
12423
|
//#endregion
|
|
12416
12424
|
//#region ../../node_modules/is-plain-obj/index.js
|
|
12417
|
-
function
|
|
12425
|
+
function Mb(e) {
|
|
12418
12426
|
if (typeof e != "object" || !e) return !1;
|
|
12419
12427
|
let t = Object.getPrototypeOf(e);
|
|
12420
12428
|
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
|
|
12421
12429
|
}
|
|
12422
12430
|
//#endregion
|
|
12423
12431
|
//#region ../../node_modules/trough/lib/index.js
|
|
12424
|
-
function
|
|
12432
|
+
function Nb() {
|
|
12425
12433
|
let e = [], t = {
|
|
12426
12434
|
run: n,
|
|
12427
12435
|
use: r
|
|
@@ -12438,7 +12446,7 @@ function Mb() {
|
|
|
12438
12446
|
return;
|
|
12439
12447
|
}
|
|
12440
12448
|
for (; ++c < t.length;) (o[c] === null || o[c] === void 0) && (o[c] = t[c]);
|
|
12441
|
-
t = o, s ?
|
|
12449
|
+
t = o, s ? Pb(s, i)(...o) : r(null, ...o);
|
|
12442
12450
|
}
|
|
12443
12451
|
}
|
|
12444
12452
|
function r(n) {
|
|
@@ -12446,7 +12454,7 @@ function Mb() {
|
|
|
12446
12454
|
return e.push(n), t;
|
|
12447
12455
|
}
|
|
12448
12456
|
}
|
|
12449
|
-
function
|
|
12457
|
+
function Pb(e, t) {
|
|
12450
12458
|
let n;
|
|
12451
12459
|
return r;
|
|
12452
12460
|
function r(...t) {
|
|
@@ -12470,16 +12478,16 @@ function Nb(e, t) {
|
|
|
12470
12478
|
}
|
|
12471
12479
|
//#endregion
|
|
12472
12480
|
//#region ../../node_modules/vfile/lib/minpath.browser.js
|
|
12473
|
-
var
|
|
12474
|
-
basename:
|
|
12475
|
-
dirname:
|
|
12476
|
-
extname:
|
|
12477
|
-
join:
|
|
12481
|
+
var Fb = {
|
|
12482
|
+
basename: Ib,
|
|
12483
|
+
dirname: Lb,
|
|
12484
|
+
extname: Rb,
|
|
12485
|
+
join: zb,
|
|
12478
12486
|
sep: "/"
|
|
12479
12487
|
};
|
|
12480
|
-
function
|
|
12488
|
+
function Ib(e, t) {
|
|
12481
12489
|
if (t !== void 0 && typeof t != "string") throw TypeError("\"ext\" argument must be a string");
|
|
12482
|
-
|
|
12490
|
+
Hb(e);
|
|
12483
12491
|
let n = 0, r = -1, i = e.length, a;
|
|
12484
12492
|
if (t === void 0 || t.length === 0 || t.length > e.length) {
|
|
12485
12493
|
for (; i--;) if (e.codePointAt(i) === 47) {
|
|
@@ -12500,8 +12508,8 @@ function Fb(e, t) {
|
|
|
12500
12508
|
} else o < 0 && (a = !0, o = i + 1), s > -1 && (e.codePointAt(i) === t.codePointAt(s--) ? s < 0 && (r = i) : (s = -1, r = o));
|
|
12501
12509
|
return n === r ? r = o : r < 0 && (r = e.length), e.slice(n, r);
|
|
12502
12510
|
}
|
|
12503
|
-
function
|
|
12504
|
-
if (
|
|
12511
|
+
function Lb(e) {
|
|
12512
|
+
if (Hb(e), e.length === 0) return ".";
|
|
12505
12513
|
let t = -1, n = e.length, r;
|
|
12506
12514
|
for (; --n;) if (e.codePointAt(n) === 47) {
|
|
12507
12515
|
if (r) {
|
|
@@ -12511,8 +12519,8 @@ function Ib(e) {
|
|
|
12511
12519
|
} else r ||= !0;
|
|
12512
12520
|
return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
|
|
12513
12521
|
}
|
|
12514
|
-
function
|
|
12515
|
-
|
|
12522
|
+
function Rb(e) {
|
|
12523
|
+
Hb(e);
|
|
12516
12524
|
let t = e.length, n = -1, r = 0, i = -1, a = 0, o;
|
|
12517
12525
|
for (; t--;) {
|
|
12518
12526
|
let s = e.codePointAt(t);
|
|
@@ -12527,17 +12535,17 @@ function Lb(e) {
|
|
|
12527
12535
|
}
|
|
12528
12536
|
return i < 0 || n < 0 || a === 0 || a === 1 && i === n - 1 && i === r + 1 ? "" : e.slice(i, n);
|
|
12529
12537
|
}
|
|
12530
|
-
function
|
|
12538
|
+
function zb(...e) {
|
|
12531
12539
|
let t = -1, n;
|
|
12532
|
-
for (; ++t < e.length;)
|
|
12533
|
-
return n === void 0 ? "." :
|
|
12540
|
+
for (; ++t < e.length;) Hb(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
|
12541
|
+
return n === void 0 ? "." : Bb(n);
|
|
12534
12542
|
}
|
|
12535
|
-
function
|
|
12536
|
-
|
|
12537
|
-
let t = e.codePointAt(0) === 47, n =
|
|
12543
|
+
function Bb(e) {
|
|
12544
|
+
Hb(e);
|
|
12545
|
+
let t = e.codePointAt(0) === 47, n = Vb(e, !t);
|
|
12538
12546
|
return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
|
12539
12547
|
}
|
|
12540
|
-
function
|
|
12548
|
+
function Vb(e, t) {
|
|
12541
12549
|
let n = "", r = 0, i = -1, a = 0, o = -1, s, c;
|
|
12542
12550
|
for (; ++o <= e.length;) {
|
|
12543
12551
|
if (o < e.length) s = e.codePointAt(o);
|
|
@@ -12563,25 +12571,25 @@ function Bb(e, t) {
|
|
|
12563
12571
|
}
|
|
12564
12572
|
return n;
|
|
12565
12573
|
}
|
|
12566
|
-
function
|
|
12574
|
+
function Hb(e) {
|
|
12567
12575
|
if (typeof e != "string") throw TypeError("Path must be a string. Received " + JSON.stringify(e));
|
|
12568
12576
|
}
|
|
12569
12577
|
//#endregion
|
|
12570
12578
|
//#region ../../node_modules/vfile/lib/minproc.browser.js
|
|
12571
|
-
var
|
|
12572
|
-
function
|
|
12579
|
+
var Ub = { cwd: Wb };
|
|
12580
|
+
function Wb() {
|
|
12573
12581
|
return "/";
|
|
12574
12582
|
}
|
|
12575
12583
|
//#endregion
|
|
12576
12584
|
//#region ../../node_modules/vfile/lib/minurl.shared.js
|
|
12577
|
-
function
|
|
12585
|
+
function Gb(e) {
|
|
12578
12586
|
return !!(typeof e == "object" && e && "href" in e && e.href && "protocol" in e && e.protocol && e.auth === void 0);
|
|
12579
12587
|
}
|
|
12580
12588
|
//#endregion
|
|
12581
12589
|
//#region ../../node_modules/vfile/lib/minurl.browser.js
|
|
12582
|
-
function
|
|
12590
|
+
function Kb(e) {
|
|
12583
12591
|
if (typeof e == "string") e = new URL(e);
|
|
12584
|
-
else if (!
|
|
12592
|
+
else if (!Gb(e)) {
|
|
12585
12593
|
let t = /* @__PURE__ */ TypeError("The \"path\" argument must be of type string or an instance of URL. Received `" + e + "`");
|
|
12586
12594
|
throw t.code = "ERR_INVALID_ARG_TYPE", t;
|
|
12587
12595
|
}
|
|
@@ -12589,9 +12597,9 @@ function Gb(e) {
|
|
|
12589
12597
|
let e = /* @__PURE__ */ TypeError("The URL must be of scheme file");
|
|
12590
12598
|
throw e.code = "ERR_INVALID_URL_SCHEME", e;
|
|
12591
12599
|
}
|
|
12592
|
-
return
|
|
12600
|
+
return qb(e);
|
|
12593
12601
|
}
|
|
12594
|
-
function
|
|
12602
|
+
function qb(e) {
|
|
12595
12603
|
if (e.hostname !== "") {
|
|
12596
12604
|
let e = /* @__PURE__ */ TypeError("File URL host must be \"localhost\" or empty on darwin");
|
|
12597
12605
|
throw e.code = "ERR_INVALID_FILE_URL_HOST", e;
|
|
@@ -12608,58 +12616,58 @@ function Kb(e) {
|
|
|
12608
12616
|
}
|
|
12609
12617
|
//#endregion
|
|
12610
12618
|
//#region ../../node_modules/vfile/lib/index.js
|
|
12611
|
-
var
|
|
12619
|
+
var Jb = [
|
|
12612
12620
|
"history",
|
|
12613
12621
|
"path",
|
|
12614
12622
|
"basename",
|
|
12615
12623
|
"stem",
|
|
12616
12624
|
"extname",
|
|
12617
12625
|
"dirname"
|
|
12618
|
-
],
|
|
12626
|
+
], Yb = class {
|
|
12619
12627
|
constructor(e) {
|
|
12620
12628
|
let t;
|
|
12621
|
-
t = e ?
|
|
12629
|
+
t = e ? Gb(e) ? { path: e } : typeof e == "string" || $b(e) ? { value: e } : e : {}, this.cwd = "cwd" in t ? "" : Ub.cwd(), this.data = {}, this.history = [], this.messages = [], this.value, this.map, this.result, this.stored;
|
|
12622
12630
|
let n = -1;
|
|
12623
|
-
for (; ++n <
|
|
12624
|
-
let e =
|
|
12631
|
+
for (; ++n < Jb.length;) {
|
|
12632
|
+
let e = Jb[n];
|
|
12625
12633
|
e in t && t[e] !== void 0 && t[e] !== null && (this[e] = e === "history" ? [...t[e]] : t[e]);
|
|
12626
12634
|
}
|
|
12627
12635
|
let r;
|
|
12628
|
-
for (r in t)
|
|
12636
|
+
for (r in t) Jb.includes(r) || (this[r] = t[r]);
|
|
12629
12637
|
}
|
|
12630
12638
|
get basename() {
|
|
12631
|
-
return typeof this.path == "string" ?
|
|
12639
|
+
return typeof this.path == "string" ? Fb.basename(this.path) : void 0;
|
|
12632
12640
|
}
|
|
12633
12641
|
set basename(e) {
|
|
12634
|
-
|
|
12642
|
+
Zb(e, "basename"), Xb(e, "basename"), this.path = Fb.join(this.dirname || "", e);
|
|
12635
12643
|
}
|
|
12636
12644
|
get dirname() {
|
|
12637
|
-
return typeof this.path == "string" ?
|
|
12645
|
+
return typeof this.path == "string" ? Fb.dirname(this.path) : void 0;
|
|
12638
12646
|
}
|
|
12639
12647
|
set dirname(e) {
|
|
12640
|
-
|
|
12648
|
+
Qb(this.basename, "dirname"), this.path = Fb.join(e || "", this.basename);
|
|
12641
12649
|
}
|
|
12642
12650
|
get extname() {
|
|
12643
|
-
return typeof this.path == "string" ?
|
|
12651
|
+
return typeof this.path == "string" ? Fb.extname(this.path) : void 0;
|
|
12644
12652
|
}
|
|
12645
12653
|
set extname(e) {
|
|
12646
|
-
if (
|
|
12654
|
+
if (Xb(e, "extname"), Qb(this.dirname, "extname"), e) {
|
|
12647
12655
|
if (e.codePointAt(0) !== 46) throw Error("`extname` must start with `.`");
|
|
12648
12656
|
if (e.includes(".", 1)) throw Error("`extname` cannot contain multiple dots");
|
|
12649
12657
|
}
|
|
12650
|
-
this.path =
|
|
12658
|
+
this.path = Fb.join(this.dirname, this.stem + (e || ""));
|
|
12651
12659
|
}
|
|
12652
12660
|
get path() {
|
|
12653
12661
|
return this.history[this.history.length - 1];
|
|
12654
12662
|
}
|
|
12655
12663
|
set path(e) {
|
|
12656
|
-
|
|
12664
|
+
Gb(e) && (e = Kb(e)), Zb(e, "path"), this.path !== e && this.history.push(e);
|
|
12657
12665
|
}
|
|
12658
12666
|
get stem() {
|
|
12659
|
-
return typeof this.path == "string" ?
|
|
12667
|
+
return typeof this.path == "string" ? Fb.basename(this.path, this.extname) : void 0;
|
|
12660
12668
|
}
|
|
12661
12669
|
set stem(e) {
|
|
12662
|
-
|
|
12670
|
+
Zb(e, "stem"), Xb(e, "stem"), this.path = Fb.join(this.dirname || "", e + (this.extname || ""));
|
|
12663
12671
|
}
|
|
12664
12672
|
fail(e, t, n) {
|
|
12665
12673
|
let r = this.message(e, t, n);
|
|
@@ -12677,28 +12685,28 @@ var qb = [
|
|
|
12677
12685
|
return this.value === void 0 ? "" : typeof this.value == "string" ? this.value : new TextDecoder(e || void 0).decode(this.value);
|
|
12678
12686
|
}
|
|
12679
12687
|
};
|
|
12680
|
-
function Yb(e, t) {
|
|
12681
|
-
if (e && e.includes(Pb.sep)) throw Error("`" + t + "` cannot be a path: did not expect `" + Pb.sep + "`");
|
|
12682
|
-
}
|
|
12683
12688
|
function Xb(e, t) {
|
|
12684
|
-
if (
|
|
12689
|
+
if (e && e.includes(Fb.sep)) throw Error("`" + t + "` cannot be a path: did not expect `" + Fb.sep + "`");
|
|
12685
12690
|
}
|
|
12686
12691
|
function Zb(e, t) {
|
|
12692
|
+
if (!e) throw Error("`" + t + "` cannot be empty");
|
|
12693
|
+
}
|
|
12694
|
+
function Qb(e, t) {
|
|
12687
12695
|
if (!e) throw Error("Setting `" + t + "` requires `path` to be set too");
|
|
12688
12696
|
}
|
|
12689
|
-
function
|
|
12697
|
+
function $b(e) {
|
|
12690
12698
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
12691
12699
|
}
|
|
12692
12700
|
//#endregion
|
|
12693
12701
|
//#region ../../node_modules/unified/lib/callable-instance.js
|
|
12694
|
-
var
|
|
12702
|
+
var ex = (function(e) {
|
|
12695
12703
|
let t = this.constructor.prototype, n = t[e], r = function() {
|
|
12696
12704
|
return n.apply(r, arguments);
|
|
12697
12705
|
};
|
|
12698
12706
|
return Object.setPrototypeOf(r, t), r;
|
|
12699
|
-
}),
|
|
12707
|
+
}), tx = /* @__PURE__ */ bn(jb(), 1), nx = {}.hasOwnProperty, rx = new class e extends ex {
|
|
12700
12708
|
constructor() {
|
|
12701
|
-
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers =
|
|
12709
|
+
super("copy"), this.Compiler = void 0, this.Parser = void 0, this.attachers = [], this.compiler = void 0, this.freezeIndex = -1, this.frozen = void 0, this.namespace = {}, this.parser = void 0, this.transformers = Nb();
|
|
12702
12710
|
}
|
|
12703
12711
|
copy() {
|
|
12704
12712
|
let t = new e(), n = -1;
|
|
@@ -12706,10 +12714,10 @@ var $b = (function(e) {
|
|
|
12706
12714
|
let e = this.attachers[n];
|
|
12707
12715
|
t.use(...e);
|
|
12708
12716
|
}
|
|
12709
|
-
return t.data((0,
|
|
12717
|
+
return t.data((0, tx.default)(!0, {}, this.namespace)), t;
|
|
12710
12718
|
}
|
|
12711
12719
|
data(e, t) {
|
|
12712
|
-
return typeof e == "string" ? arguments.length === 2 ? (
|
|
12720
|
+
return typeof e == "string" ? arguments.length === 2 ? (ox("data", this.frozen), this.namespace[e] = t, this) : nx.call(this.namespace, e) && this.namespace[e] || void 0 : e ? (ox("data", this.frozen), this.namespace = e, this) : this.namespace;
|
|
12713
12721
|
}
|
|
12714
12722
|
freeze() {
|
|
12715
12723
|
if (this.frozen) return this;
|
|
@@ -12725,18 +12733,18 @@ var $b = (function(e) {
|
|
|
12725
12733
|
}
|
|
12726
12734
|
parse(e) {
|
|
12727
12735
|
this.freeze();
|
|
12728
|
-
let t =
|
|
12729
|
-
return
|
|
12736
|
+
let t = lx(e), n = this.parser || this.Parser;
|
|
12737
|
+
return ix("parse", n), n(String(t), t);
|
|
12730
12738
|
}
|
|
12731
12739
|
process(e, t) {
|
|
12732
12740
|
let n = this;
|
|
12733
|
-
return this.freeze(),
|
|
12741
|
+
return this.freeze(), ix("process", this.parser || this.Parser), ax("process", this.compiler || this.Compiler), t ? r(void 0, t) : new Promise(r);
|
|
12734
12742
|
function r(r, i) {
|
|
12735
|
-
let a =
|
|
12743
|
+
let a = lx(e), o = n.parse(a);
|
|
12736
12744
|
n.run(o, a, function(e, t, r) {
|
|
12737
12745
|
if (e || !t || !r) return s(e);
|
|
12738
12746
|
let i = t, a = n.stringify(i, r);
|
|
12739
|
-
|
|
12747
|
+
dx(a) ? r.value = a : r.result = a, s(e, r);
|
|
12740
12748
|
});
|
|
12741
12749
|
function s(e, n) {
|
|
12742
12750
|
e || !n ? i(e) : r ? r(n) : t(void 0, n);
|
|
@@ -12745,17 +12753,17 @@ var $b = (function(e) {
|
|
|
12745
12753
|
}
|
|
12746
12754
|
processSync(e) {
|
|
12747
12755
|
let t = !1, n;
|
|
12748
|
-
return this.freeze(),
|
|
12756
|
+
return this.freeze(), ix("processSync", this.parser || this.Parser), ax("processSync", this.compiler || this.Compiler), this.process(e, r), cx("processSync", "process", t), n;
|
|
12749
12757
|
function r(e, r) {
|
|
12750
|
-
t = !0,
|
|
12758
|
+
t = !0, Ab(e), n = r;
|
|
12751
12759
|
}
|
|
12752
12760
|
}
|
|
12753
12761
|
run(e, t, n) {
|
|
12754
|
-
|
|
12762
|
+
sx(e), this.freeze();
|
|
12755
12763
|
let r = this.transformers;
|
|
12756
12764
|
return !n && typeof t == "function" && (n = t, t = void 0), n ? i(void 0, n) : new Promise(i);
|
|
12757
12765
|
function i(i, a) {
|
|
12758
|
-
let o =
|
|
12766
|
+
let o = lx(t);
|
|
12759
12767
|
r.run(e, o, s);
|
|
12760
12768
|
function s(t, r, o) {
|
|
12761
12769
|
let s = r || e;
|
|
@@ -12765,19 +12773,19 @@ var $b = (function(e) {
|
|
|
12765
12773
|
}
|
|
12766
12774
|
runSync(e, t) {
|
|
12767
12775
|
let n = !1, r;
|
|
12768
|
-
return this.run(e, t, i),
|
|
12776
|
+
return this.run(e, t, i), cx("runSync", "run", n), r;
|
|
12769
12777
|
function i(e, t) {
|
|
12770
|
-
|
|
12778
|
+
Ab(e), r = t, n = !0;
|
|
12771
12779
|
}
|
|
12772
12780
|
}
|
|
12773
12781
|
stringify(e, t) {
|
|
12774
12782
|
this.freeze();
|
|
12775
|
-
let n =
|
|
12776
|
-
return
|
|
12783
|
+
let n = lx(t), r = this.compiler || this.Compiler;
|
|
12784
|
+
return ax("stringify", r), sx(e), r(e, n);
|
|
12777
12785
|
}
|
|
12778
12786
|
use(e, ...t) {
|
|
12779
12787
|
let n = this.attachers, r = this.namespace;
|
|
12780
|
-
if (
|
|
12788
|
+
if (ox("use", this.frozen), e != null) if (typeof e == "function") s(e, t);
|
|
12781
12789
|
else if (typeof e == "object") Array.isArray(e) ? o(e) : a(e);
|
|
12782
12790
|
else throw TypeError("Expected usable value, not `" + e + "`");
|
|
12783
12791
|
return this;
|
|
@@ -12791,7 +12799,7 @@ var $b = (function(e) {
|
|
|
12791
12799
|
}
|
|
12792
12800
|
function a(e) {
|
|
12793
12801
|
if (!("plugins" in e) && !("settings" in e)) throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");
|
|
12794
|
-
o(e.plugins), e.settings && (r.settings = (0,
|
|
12802
|
+
o(e.plugins), e.settings && (r.settings = (0, tx.default)(!0, r.settings, e.settings));
|
|
12795
12803
|
}
|
|
12796
12804
|
function o(e) {
|
|
12797
12805
|
let t = -1;
|
|
@@ -12810,7 +12818,7 @@ var $b = (function(e) {
|
|
|
12810
12818
|
if (i === -1) n.push([e, ...t]);
|
|
12811
12819
|
else if (t.length > 0) {
|
|
12812
12820
|
let [r, ...a] = t, o = n[i][1];
|
|
12813
|
-
|
|
12821
|
+
Mb(o) && Mb(r) && (r = (0, tx.default)(!0, o, r)), n[i] = [
|
|
12814
12822
|
e,
|
|
12815
12823
|
r,
|
|
12816
12824
|
...a
|
|
@@ -12819,36 +12827,36 @@ var $b = (function(e) {
|
|
|
12819
12827
|
}
|
|
12820
12828
|
}
|
|
12821
12829
|
}().freeze();
|
|
12822
|
-
function
|
|
12830
|
+
function ix(e, t) {
|
|
12823
12831
|
if (typeof t != "function") throw TypeError("Cannot `" + e + "` without `parser`");
|
|
12824
12832
|
}
|
|
12825
|
-
function
|
|
12833
|
+
function ax(e, t) {
|
|
12826
12834
|
if (typeof t != "function") throw TypeError("Cannot `" + e + "` without `compiler`");
|
|
12827
12835
|
}
|
|
12828
|
-
function
|
|
12836
|
+
function ox(e, t) {
|
|
12829
12837
|
if (t) throw Error("Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.");
|
|
12830
12838
|
}
|
|
12831
|
-
function
|
|
12832
|
-
if (!
|
|
12839
|
+
function sx(e) {
|
|
12840
|
+
if (!Mb(e) || typeof e.type != "string") throw TypeError("Expected node, got `" + e + "`");
|
|
12833
12841
|
}
|
|
12834
|
-
function
|
|
12842
|
+
function cx(e, t, n) {
|
|
12835
12843
|
if (!n) throw Error("`" + e + "` finished async. Use `" + t + "` instead");
|
|
12836
12844
|
}
|
|
12837
|
-
function cx(e) {
|
|
12838
|
-
return lx(e) ? e : new Jb(e);
|
|
12839
|
-
}
|
|
12840
12845
|
function lx(e) {
|
|
12841
|
-
return
|
|
12846
|
+
return ux(e) ? e : new Yb(e);
|
|
12842
12847
|
}
|
|
12843
12848
|
function ux(e) {
|
|
12844
|
-
return typeof e == "
|
|
12849
|
+
return !!(e && typeof e == "object" && "message" in e && "messages" in e);
|
|
12845
12850
|
}
|
|
12846
12851
|
function dx(e) {
|
|
12852
|
+
return typeof e == "string" || fx(e);
|
|
12853
|
+
}
|
|
12854
|
+
function fx(e) {
|
|
12847
12855
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
12848
12856
|
}
|
|
12849
12857
|
//#endregion
|
|
12850
12858
|
//#region ../../node_modules/react-markdown/lib/index.js
|
|
12851
|
-
var
|
|
12859
|
+
var px = [], mx = { allowDangerousHtml: !0 }, hx = /^(https?|ircs?|mailto|xmpp)$/i, gx = [
|
|
12852
12860
|
{
|
|
12853
12861
|
from: "astPlugins",
|
|
12854
12862
|
id: "remove-buggy-html-in-markdown-parser"
|
|
@@ -12926,25 +12934,25 @@ var fx = [], px = { allowDangerousHtml: !0 }, mx = /^(https?|ircs?|mailto|xmpp)$
|
|
|
12926
12934
|
to: "urlTransform"
|
|
12927
12935
|
}
|
|
12928
12936
|
];
|
|
12929
|
-
function gx(e) {
|
|
12930
|
-
let t = _x(e), n = vx(e);
|
|
12931
|
-
return yx(t.runSync(t.parse(n), n), e);
|
|
12932
|
-
}
|
|
12933
12937
|
function _x(e) {
|
|
12934
|
-
let t = e
|
|
12935
|
-
|
|
12936
|
-
...px
|
|
12937
|
-
} : px;
|
|
12938
|
-
return nx().use(py).use(n).use(Ob, r).use(t);
|
|
12938
|
+
let t = vx(e), n = yx(e);
|
|
12939
|
+
return bx(t.runSync(t.parse(n), n), e);
|
|
12939
12940
|
}
|
|
12940
12941
|
function vx(e) {
|
|
12941
|
-
let t = e.
|
|
12942
|
+
let t = e.rehypePlugins || px, n = e.remarkPlugins || px, r = e.remarkRehypeOptions ? {
|
|
12943
|
+
...e.remarkRehypeOptions,
|
|
12944
|
+
...mx
|
|
12945
|
+
} : mx;
|
|
12946
|
+
return rx().use(py).use(n).use(kb, r).use(t);
|
|
12947
|
+
}
|
|
12948
|
+
function yx(e) {
|
|
12949
|
+
let t = e.children || "", n = new Yb();
|
|
12942
12950
|
return typeof t == "string" ? n.value = t : "" + t, n;
|
|
12943
12951
|
}
|
|
12944
|
-
function
|
|
12945
|
-
let n = t.allowedElements, r = t.allowElement, i = t.components, a = t.disallowedElements, o = t.skipHtml, s = t.unwrapDisallowed, c = t.urlTransform ||
|
|
12946
|
-
for (let e of
|
|
12947
|
-
return
|
|
12952
|
+
function bx(e, t) {
|
|
12953
|
+
let n = t.allowedElements, r = t.allowElement, i = t.components, a = t.disallowedElements, o = t.skipHtml, s = t.unwrapDisallowed, c = t.urlTransform || xx;
|
|
12954
|
+
for (let e of gx) Object.hasOwn(t, e.from) && "" + e.from + (e.to ? "use `" + e.to + "` instead" : "remove it") + e.id;
|
|
12955
|
+
return yb(e, l), Kh(e, {
|
|
12948
12956
|
Fragment: qt,
|
|
12949
12957
|
components: i,
|
|
12950
12958
|
ignoreInvalidStyle: !0,
|
|
@@ -12971,17 +12979,17 @@ function yx(e, t) {
|
|
|
12971
12979
|
}
|
|
12972
12980
|
}
|
|
12973
12981
|
}
|
|
12974
|
-
function
|
|
12982
|
+
function xx(e) {
|
|
12975
12983
|
let t = e.indexOf(":"), n = e.indexOf("?"), r = e.indexOf("#"), i = e.indexOf("/");
|
|
12976
|
-
return t === -1 || i !== -1 && t > i || n !== -1 && t > n || r !== -1 && t > r ||
|
|
12984
|
+
return t === -1 || i !== -1 && t > i || n !== -1 && t > n || r !== -1 && t > r || hx.test(e.slice(0, t)) ? e : "";
|
|
12977
12985
|
}
|
|
12978
12986
|
//#endregion
|
|
12979
12987
|
//#region ../../node_modules/hast-util-sanitize/lib/schema.js
|
|
12980
|
-
var
|
|
12988
|
+
var Sx = [
|
|
12981
12989
|
"ariaDescribedBy",
|
|
12982
12990
|
"ariaLabel",
|
|
12983
12991
|
"ariaLabelledBy"
|
|
12984
|
-
],
|
|
12992
|
+
], Cx = {
|
|
12985
12993
|
ancestors: {
|
|
12986
12994
|
tbody: ["table"],
|
|
12987
12995
|
td: ["table"],
|
|
@@ -12992,7 +13000,7 @@ var xx = [
|
|
|
12992
13000
|
},
|
|
12993
13001
|
attributes: {
|
|
12994
13002
|
a: [
|
|
12995
|
-
...
|
|
13003
|
+
...Sx,
|
|
12996
13004
|
"dataFootnoteBackref",
|
|
12997
13005
|
"dataFootnoteRef",
|
|
12998
13006
|
["className", "data-footnote-backref"],
|
|
@@ -13002,23 +13010,23 @@ var xx = [
|
|
|
13002
13010
|
code: [["className", /^language-./]],
|
|
13003
13011
|
del: ["cite"],
|
|
13004
13012
|
div: ["itemScope", "itemType"],
|
|
13005
|
-
dl: [...
|
|
13013
|
+
dl: [...Sx],
|
|
13006
13014
|
h2: [["className", "sr-only"]],
|
|
13007
13015
|
img: [
|
|
13008
|
-
...
|
|
13016
|
+
...Sx,
|
|
13009
13017
|
"longDesc",
|
|
13010
13018
|
"src"
|
|
13011
13019
|
],
|
|
13012
13020
|
input: [["disabled", !0], ["type", "checkbox"]],
|
|
13013
13021
|
ins: ["cite"],
|
|
13014
13022
|
li: [["className", "task-list-item"]],
|
|
13015
|
-
ol: [...
|
|
13023
|
+
ol: [...Sx, ["className", "contains-task-list"]],
|
|
13016
13024
|
q: ["cite"],
|
|
13017
13025
|
section: ["dataFootnotes", ["className", "footnotes"]],
|
|
13018
13026
|
source: ["srcSet"],
|
|
13019
|
-
summary: [...
|
|
13020
|
-
table: [...
|
|
13021
|
-
ul: [...
|
|
13027
|
+
summary: [...Sx],
|
|
13028
|
+
table: [...Sx],
|
|
13029
|
+
ul: [...Sx, ["className", "contains-task-list"]],
|
|
13022
13030
|
"*": /* @__PURE__ */ "abbr.accept.acceptCharset.accessKey.action.align.alt.axis.border.cellPadding.cellSpacing.char.charOff.charSet.checked.clear.colSpan.color.cols.compact.coords.dateTime.dir.encType.frame.hSpace.headers.height.hrefLang.htmlFor.id.isMap.itemProp.label.lang.maxLength.media.method.multiple.name.noHref.noShade.noWrap.open.prompt.readOnly.rev.rowSpan.rows.rules.scope.selected.shape.size.span.start.summary.tabIndex.title.useMap.vAlign.value.width".split(".")
|
|
13023
13031
|
},
|
|
13024
13032
|
clobber: [
|
|
@@ -13047,55 +13055,55 @@ var xx = [
|
|
|
13047
13055
|
} },
|
|
13048
13056
|
strip: ["script"],
|
|
13049
13057
|
tagNames: /* @__PURE__ */ "a.b.blockquote.br.code.dd.del.details.div.dl.dt.em.h1.h2.h3.h4.h5.h6.hr.i.img.input.ins.kbd.li.ol.p.picture.pre.q.rp.rt.ruby.s.samp.section.source.span.strike.strong.sub.summary.sup.table.tbody.td.tfoot.th.thead.tr.tt.ul.var".split(".")
|
|
13050
|
-
},
|
|
13051
|
-
function
|
|
13058
|
+
}, wx = {}.hasOwnProperty;
|
|
13059
|
+
function Tx(e, t) {
|
|
13052
13060
|
let n = {
|
|
13053
13061
|
type: "root",
|
|
13054
13062
|
children: []
|
|
13055
|
-
}, r =
|
|
13063
|
+
}, r = Ex({
|
|
13056
13064
|
schema: t ? {
|
|
13057
|
-
...
|
|
13065
|
+
...Cx,
|
|
13058
13066
|
...t
|
|
13059
|
-
} :
|
|
13067
|
+
} : Cx,
|
|
13060
13068
|
stack: []
|
|
13061
13069
|
}, e);
|
|
13062
13070
|
return r && (Array.isArray(r) ? r.length === 1 ? n = r[0] : n.children = r : n = r), n;
|
|
13063
13071
|
}
|
|
13064
|
-
function
|
|
13072
|
+
function Ex(e, t) {
|
|
13065
13073
|
if (t && typeof t == "object") {
|
|
13066
13074
|
let n = t;
|
|
13067
13075
|
switch (typeof n.type == "string" ? n.type : "") {
|
|
13068
|
-
case "comment": return
|
|
13069
|
-
case "doctype": return
|
|
13070
|
-
case "element": return
|
|
13071
|
-
case "root": return
|
|
13072
|
-
case "text": return
|
|
13076
|
+
case "comment": return Dx(e, n);
|
|
13077
|
+
case "doctype": return Ox(e, n);
|
|
13078
|
+
case "element": return kx(e, n);
|
|
13079
|
+
case "root": return Ax(e, n);
|
|
13080
|
+
case "text": return jx(e, n);
|
|
13073
13081
|
default:
|
|
13074
13082
|
}
|
|
13075
13083
|
}
|
|
13076
13084
|
}
|
|
13077
|
-
function
|
|
13085
|
+
function Dx(e, t) {
|
|
13078
13086
|
if (e.schema.allowComments) {
|
|
13079
13087
|
let e = typeof t.value == "string" ? t.value : "", n = e.indexOf("-->"), r = {
|
|
13080
13088
|
type: "comment",
|
|
13081
13089
|
value: n < 0 ? e : e.slice(0, n)
|
|
13082
13090
|
};
|
|
13083
|
-
return
|
|
13091
|
+
return Rx(r, t), r;
|
|
13084
13092
|
}
|
|
13085
13093
|
}
|
|
13086
|
-
function
|
|
13094
|
+
function Ox(e, t) {
|
|
13087
13095
|
if (e.schema.allowDoctypes) {
|
|
13088
13096
|
let e = { type: "doctype" };
|
|
13089
|
-
return
|
|
13097
|
+
return Rx(e, t), e;
|
|
13090
13098
|
}
|
|
13091
13099
|
}
|
|
13092
|
-
function
|
|
13100
|
+
function kx(e, t) {
|
|
13093
13101
|
let n = typeof t.tagName == "string" ? t.tagName : "";
|
|
13094
13102
|
e.stack.push(n);
|
|
13095
|
-
let r =
|
|
13103
|
+
let r = Mx(e, t.children), i = Nx(e, t.properties);
|
|
13096
13104
|
e.stack.pop();
|
|
13097
13105
|
let a = !1;
|
|
13098
|
-
if (n && n !== "*" && (!e.schema.tagNames || e.schema.tagNames.includes(n)) && (a = !0, e.schema.ancestors &&
|
|
13106
|
+
if (n && n !== "*" && (!e.schema.tagNames || e.schema.tagNames.includes(n)) && (a = !0, e.schema.ancestors && wx.call(e.schema.ancestors, n))) {
|
|
13099
13107
|
let t = e.schema.ancestors[n], r = -1;
|
|
13100
13108
|
for (a = !1; ++r < t.length;) e.stack.includes(t[r]) && (a = !0);
|
|
13101
13109
|
}
|
|
@@ -13106,58 +13114,58 @@ function Ox(e, t) {
|
|
|
13106
13114
|
properties: i,
|
|
13107
13115
|
children: r
|
|
13108
13116
|
};
|
|
13109
|
-
return
|
|
13117
|
+
return Rx(o, t), o;
|
|
13110
13118
|
}
|
|
13111
|
-
function
|
|
13119
|
+
function Ax(e, t) {
|
|
13112
13120
|
let n = {
|
|
13113
13121
|
type: "root",
|
|
13114
|
-
children:
|
|
13122
|
+
children: Mx(e, t.children)
|
|
13115
13123
|
};
|
|
13116
|
-
return
|
|
13124
|
+
return Rx(n, t), n;
|
|
13117
13125
|
}
|
|
13118
|
-
function
|
|
13126
|
+
function jx(e, t) {
|
|
13119
13127
|
let n = {
|
|
13120
13128
|
type: "text",
|
|
13121
13129
|
value: typeof t.value == "string" ? t.value : ""
|
|
13122
13130
|
};
|
|
13123
|
-
return
|
|
13131
|
+
return Rx(n, t), n;
|
|
13124
13132
|
}
|
|
13125
|
-
function
|
|
13133
|
+
function Mx(e, t) {
|
|
13126
13134
|
let n = [];
|
|
13127
13135
|
if (Array.isArray(t)) {
|
|
13128
13136
|
let r = t, i = -1;
|
|
13129
13137
|
for (; ++i < r.length;) {
|
|
13130
|
-
let t =
|
|
13138
|
+
let t = Ex(e, r[i]);
|
|
13131
13139
|
t && (Array.isArray(t) ? n.push(...t) : n.push(t));
|
|
13132
13140
|
}
|
|
13133
13141
|
}
|
|
13134
13142
|
return n;
|
|
13135
13143
|
}
|
|
13136
|
-
function
|
|
13137
|
-
let n = e.stack[e.stack.length - 1], r = e.schema.attributes, i = e.schema.required, a = r &&
|
|
13138
|
-
for (l in s) if (
|
|
13139
|
-
let t = s[l], n =
|
|
13140
|
-
n ??=
|
|
13144
|
+
function Nx(e, t) {
|
|
13145
|
+
let n = e.stack[e.stack.length - 1], r = e.schema.attributes, i = e.schema.required, a = r && wx.call(r, n) ? r[n] : void 0, o = r && wx.call(r, "*") ? r["*"] : void 0, s = t && typeof t == "object" ? t : {}, c = {}, l;
|
|
13146
|
+
for (l in s) if (wx.call(s, l)) {
|
|
13147
|
+
let t = s[l], n = Px(e, zx(a, l), l, t);
|
|
13148
|
+
n ??= Px(e, zx(o, l), l, t), n != null && (c[l] = n);
|
|
13141
13149
|
}
|
|
13142
|
-
if (i &&
|
|
13150
|
+
if (i && wx.call(i, n)) {
|
|
13143
13151
|
let e = i[n];
|
|
13144
|
-
for (l in e)
|
|
13152
|
+
for (l in e) wx.call(e, l) && !wx.call(c, l) && (c[l] = e[l]);
|
|
13145
13153
|
}
|
|
13146
13154
|
return c;
|
|
13147
13155
|
}
|
|
13148
|
-
function Nx(e, t, n, r) {
|
|
13149
|
-
return t ? Array.isArray(r) ? Px(e, t, n, r) : Fx(e, t, n, r) : void 0;
|
|
13150
|
-
}
|
|
13151
13156
|
function Px(e, t, n, r) {
|
|
13157
|
+
return t ? Array.isArray(r) ? Fx(e, t, n, r) : Ix(e, t, n, r) : void 0;
|
|
13158
|
+
}
|
|
13159
|
+
function Fx(e, t, n, r) {
|
|
13152
13160
|
let i = -1, a = [];
|
|
13153
13161
|
for (; ++i < r.length;) {
|
|
13154
|
-
let o =
|
|
13162
|
+
let o = Ix(e, t, n, r[i]);
|
|
13155
13163
|
(typeof o == "number" || typeof o == "string") && a.push(o);
|
|
13156
13164
|
}
|
|
13157
13165
|
return a;
|
|
13158
13166
|
}
|
|
13159
|
-
function
|
|
13160
|
-
if (!(typeof r != "boolean" && typeof r != "number" && typeof r != "string") &&
|
|
13167
|
+
function Ix(e, t, n, r) {
|
|
13168
|
+
if (!(typeof r != "boolean" && typeof r != "number" && typeof r != "string") && Lx(e, n, r)) {
|
|
13161
13169
|
if (typeof t == "object" && t.length > 1) {
|
|
13162
13170
|
let e = !1, n = 0;
|
|
13163
13171
|
for (; ++n < t.length;) {
|
|
@@ -13177,8 +13185,8 @@ function Fx(e, t, n, r) {
|
|
|
13177
13185
|
return e.schema.clobber && e.schema.clobberPrefix && e.schema.clobber.includes(n) ? e.schema.clobberPrefix + r : r;
|
|
13178
13186
|
}
|
|
13179
13187
|
}
|
|
13180
|
-
function
|
|
13181
|
-
let r = e.schema.protocols &&
|
|
13188
|
+
function Lx(e, t, n) {
|
|
13189
|
+
let r = e.schema.protocols && wx.call(e.schema.protocols, t) ? e.schema.protocols[t] : void 0;
|
|
13182
13190
|
if (!r || r.length === 0) return !0;
|
|
13183
13191
|
let i = String(n), a = i.indexOf(":"), o = i.indexOf("?"), s = i.indexOf("#"), c = i.indexOf("/");
|
|
13184
13192
|
if (a < 0 || c > -1 && a > c || o > -1 && a > o || s > -1 && a > s) return !0;
|
|
@@ -13189,11 +13197,11 @@ function Ix(e, t, n) {
|
|
|
13189
13197
|
}
|
|
13190
13198
|
return !1;
|
|
13191
13199
|
}
|
|
13192
|
-
function
|
|
13200
|
+
function Rx(e, t) {
|
|
13193
13201
|
let n = Ph(t);
|
|
13194
|
-
t.data && (e.data =
|
|
13202
|
+
t.data && (e.data = ib(t.data)), n && (e.position = n);
|
|
13195
13203
|
}
|
|
13196
|
-
function
|
|
13204
|
+
function zx(e, t) {
|
|
13197
13205
|
let n, r = -1;
|
|
13198
13206
|
if (e) for (; ++r < e.length;) {
|
|
13199
13207
|
let i = e[r], a = typeof i == "string" ? i : i[0];
|
|
@@ -13204,14 +13212,14 @@ function Rx(e, t) {
|
|
|
13204
13212
|
}
|
|
13205
13213
|
//#endregion
|
|
13206
13214
|
//#region ../../node_modules/rehype-sanitize/lib/index.js
|
|
13207
|
-
function
|
|
13215
|
+
function Bx(e) {
|
|
13208
13216
|
return function(t) {
|
|
13209
|
-
return
|
|
13217
|
+
return Tx(t, e);
|
|
13210
13218
|
};
|
|
13211
13219
|
}
|
|
13212
13220
|
//#endregion
|
|
13213
13221
|
//#region ../../node_modules/ccount/index.js
|
|
13214
|
-
function
|
|
13222
|
+
function Vx(e, t) {
|
|
13215
13223
|
let n = String(e);
|
|
13216
13224
|
if (typeof t != "string") throw TypeError("Expected character");
|
|
13217
13225
|
let r = 0, i = n.indexOf(t);
|
|
@@ -13220,15 +13228,15 @@ function Bx(e, t) {
|
|
|
13220
13228
|
}
|
|
13221
13229
|
//#endregion
|
|
13222
13230
|
//#region ../../node_modules/escape-string-regexp/index.js
|
|
13223
|
-
function
|
|
13231
|
+
function Hx(e) {
|
|
13224
13232
|
if (typeof e != "string") throw TypeError("Expected a string");
|
|
13225
13233
|
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
13226
13234
|
}
|
|
13227
13235
|
//#endregion
|
|
13228
13236
|
//#region ../../node_modules/mdast-util-find-and-replace/lib/index.js
|
|
13229
|
-
function
|
|
13230
|
-
let r =
|
|
13231
|
-
for (; ++a < i.length;)
|
|
13237
|
+
function Ux(e, t, n) {
|
|
13238
|
+
let r = cb((n || {}).ignore || []), i = Wx(t), a = -1;
|
|
13239
|
+
for (; ++a < i.length;) _b(e, "text", o);
|
|
13232
13240
|
function o(e, t) {
|
|
13233
13241
|
let n = -1, i;
|
|
13234
13242
|
for (; ++n < t.length;) {
|
|
@@ -13263,75 +13271,75 @@ function Hx(e, t, n) {
|
|
|
13263
13271
|
}), n.children.splice(c, 1, ...u)) : u = [e], c + u.length;
|
|
13264
13272
|
}
|
|
13265
13273
|
}
|
|
13266
|
-
function
|
|
13274
|
+
function Wx(e) {
|
|
13267
13275
|
let t = [];
|
|
13268
13276
|
if (!Array.isArray(e)) throw TypeError("Expected find and replace tuple or list of tuples");
|
|
13269
13277
|
let n = !e[0] || Array.isArray(e[0]) ? e : [e], r = -1;
|
|
13270
13278
|
for (; ++r < n.length;) {
|
|
13271
13279
|
let e = n[r];
|
|
13272
|
-
t.push([
|
|
13280
|
+
t.push([Gx(e[0]), Kx(e[1])]);
|
|
13273
13281
|
}
|
|
13274
13282
|
return t;
|
|
13275
13283
|
}
|
|
13276
|
-
function Wx(e) {
|
|
13277
|
-
return typeof e == "string" ? new RegExp(Vx(e), "g") : e;
|
|
13278
|
-
}
|
|
13279
13284
|
function Gx(e) {
|
|
13285
|
+
return typeof e == "string" ? new RegExp(Hx(e), "g") : e;
|
|
13286
|
+
}
|
|
13287
|
+
function Kx(e) {
|
|
13280
13288
|
return typeof e == "function" ? e : function() {
|
|
13281
13289
|
return e;
|
|
13282
13290
|
};
|
|
13283
13291
|
}
|
|
13284
13292
|
//#endregion
|
|
13285
13293
|
//#region ../../node_modules/mdast-util-gfm-autolink-literal/lib/index.js
|
|
13286
|
-
var
|
|
13294
|
+
var qx = "phrasing", Jx = [
|
|
13287
13295
|
"autolink",
|
|
13288
13296
|
"link",
|
|
13289
13297
|
"image",
|
|
13290
13298
|
"label"
|
|
13291
13299
|
];
|
|
13292
|
-
function
|
|
13300
|
+
function Yx() {
|
|
13293
13301
|
return {
|
|
13294
|
-
transforms: [
|
|
13302
|
+
transforms: [rS],
|
|
13295
13303
|
enter: {
|
|
13296
|
-
literalAutolink:
|
|
13297
|
-
literalAutolinkEmail:
|
|
13298
|
-
literalAutolinkHttp:
|
|
13299
|
-
literalAutolinkWww:
|
|
13304
|
+
literalAutolink: Zx,
|
|
13305
|
+
literalAutolinkEmail: Qx,
|
|
13306
|
+
literalAutolinkHttp: Qx,
|
|
13307
|
+
literalAutolinkWww: Qx
|
|
13300
13308
|
},
|
|
13301
13309
|
exit: {
|
|
13302
|
-
literalAutolink:
|
|
13303
|
-
literalAutolinkEmail:
|
|
13304
|
-
literalAutolinkHttp:
|
|
13305
|
-
literalAutolinkWww:
|
|
13310
|
+
literalAutolink: nS,
|
|
13311
|
+
literalAutolinkEmail: tS,
|
|
13312
|
+
literalAutolinkHttp: $x,
|
|
13313
|
+
literalAutolinkWww: eS
|
|
13306
13314
|
}
|
|
13307
13315
|
};
|
|
13308
13316
|
}
|
|
13309
|
-
function
|
|
13317
|
+
function Xx() {
|
|
13310
13318
|
return { unsafe: [
|
|
13311
13319
|
{
|
|
13312
13320
|
character: "@",
|
|
13313
13321
|
before: "[+\\-.\\w]",
|
|
13314
13322
|
after: "[\\-.\\w]",
|
|
13315
|
-
inConstruct:
|
|
13316
|
-
notInConstruct:
|
|
13323
|
+
inConstruct: qx,
|
|
13324
|
+
notInConstruct: Jx
|
|
13317
13325
|
},
|
|
13318
13326
|
{
|
|
13319
13327
|
character: ".",
|
|
13320
13328
|
before: "[Ww]",
|
|
13321
13329
|
after: "[\\-.\\w]",
|
|
13322
|
-
inConstruct:
|
|
13323
|
-
notInConstruct:
|
|
13330
|
+
inConstruct: qx,
|
|
13331
|
+
notInConstruct: Jx
|
|
13324
13332
|
},
|
|
13325
13333
|
{
|
|
13326
13334
|
character: ":",
|
|
13327
13335
|
before: "[ps]",
|
|
13328
13336
|
after: "\\/",
|
|
13329
|
-
inConstruct:
|
|
13330
|
-
notInConstruct:
|
|
13337
|
+
inConstruct: qx,
|
|
13338
|
+
notInConstruct: Jx
|
|
13331
13339
|
}
|
|
13332
13340
|
] };
|
|
13333
13341
|
}
|
|
13334
|
-
function
|
|
13342
|
+
function Zx(e) {
|
|
13335
13343
|
this.enter({
|
|
13336
13344
|
type: "link",
|
|
13337
13345
|
title: null,
|
|
@@ -13339,30 +13347,30 @@ function Xx(e) {
|
|
|
13339
13347
|
children: []
|
|
13340
13348
|
}, e);
|
|
13341
13349
|
}
|
|
13342
|
-
function
|
|
13350
|
+
function Qx(e) {
|
|
13343
13351
|
this.config.enter.autolinkProtocol.call(this, e);
|
|
13344
13352
|
}
|
|
13345
|
-
function
|
|
13353
|
+
function $x(e) {
|
|
13346
13354
|
this.config.exit.autolinkProtocol.call(this, e);
|
|
13347
13355
|
}
|
|
13348
|
-
function
|
|
13356
|
+
function eS(e) {
|
|
13349
13357
|
this.config.exit.data.call(this, e);
|
|
13350
13358
|
let t = this.stack[this.stack.length - 1];
|
|
13351
13359
|
t.type, t.url = "http://" + this.sliceSerialize(e);
|
|
13352
13360
|
}
|
|
13353
|
-
function
|
|
13361
|
+
function tS(e) {
|
|
13354
13362
|
this.config.exit.autolinkEmail.call(this, e);
|
|
13355
13363
|
}
|
|
13356
|
-
function
|
|
13364
|
+
function nS(e) {
|
|
13357
13365
|
this.exit(e);
|
|
13358
13366
|
}
|
|
13359
|
-
function
|
|
13360
|
-
|
|
13367
|
+
function rS(e) {
|
|
13368
|
+
Ux(e, [[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi, iS], [/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu, aS]], { ignore: ["link", "linkReference"] });
|
|
13361
13369
|
}
|
|
13362
|
-
function
|
|
13370
|
+
function iS(e, t, n, r, i) {
|
|
13363
13371
|
let a = "";
|
|
13364
|
-
if (!
|
|
13365
|
-
let o =
|
|
13372
|
+
if (!cS(i) || (/^w/i.test(t) && (n = t + n, t = "", a = "http://"), !oS(n))) return !1;
|
|
13373
|
+
let o = sS(n + r);
|
|
13366
13374
|
if (!o[0]) return !1;
|
|
13367
13375
|
let s = {
|
|
13368
13376
|
type: "link",
|
|
@@ -13378,8 +13386,8 @@ function rS(e, t, n, r, i) {
|
|
|
13378
13386
|
value: o[1]
|
|
13379
13387
|
}] : s;
|
|
13380
13388
|
}
|
|
13381
|
-
function
|
|
13382
|
-
return !
|
|
13389
|
+
function aS(e, t, n, r) {
|
|
13390
|
+
return !cS(r, !0) || /[-\d_]$/.test(n) ? !1 : {
|
|
13383
13391
|
type: "link",
|
|
13384
13392
|
title: null,
|
|
13385
13393
|
url: "mailto:" + t + "@" + n,
|
|
@@ -13389,39 +13397,39 @@ function iS(e, t, n, r) {
|
|
|
13389
13397
|
}]
|
|
13390
13398
|
};
|
|
13391
13399
|
}
|
|
13392
|
-
function
|
|
13400
|
+
function oS(e) {
|
|
13393
13401
|
let t = e.split(".");
|
|
13394
13402
|
return !(t.length < 2 || t[t.length - 1] && (/_/.test(t[t.length - 1]) || !/[a-zA-Z\d]/.test(t[t.length - 1])) || t[t.length - 2] && (/_/.test(t[t.length - 2]) || !/[a-zA-Z\d]/.test(t[t.length - 2])));
|
|
13395
13403
|
}
|
|
13396
|
-
function
|
|
13404
|
+
function sS(e) {
|
|
13397
13405
|
let t = /[!"&'),.:;<>?\]}]+$/.exec(e);
|
|
13398
13406
|
if (!t) return [e, void 0];
|
|
13399
13407
|
e = e.slice(0, t.index);
|
|
13400
|
-
let n = t[0], r = n.indexOf(")"), i =
|
|
13408
|
+
let n = t[0], r = n.indexOf(")"), i = Vx(e, "("), a = Vx(e, ")");
|
|
13401
13409
|
for (; r !== -1 && i > a;) e += n.slice(0, r + 1), n = n.slice(r + 1), r = n.indexOf(")"), a++;
|
|
13402
13410
|
return [e, n];
|
|
13403
13411
|
}
|
|
13404
|
-
function
|
|
13412
|
+
function cS(e, t) {
|
|
13405
13413
|
let n = e.input.charCodeAt(e.index - 1);
|
|
13406
13414
|
return (e.index === 0 || zg(n) || Rg(n)) && (!t || n !== 47);
|
|
13407
13415
|
}
|
|
13408
13416
|
//#endregion
|
|
13409
13417
|
//#region ../../node_modules/mdast-util-gfm-footnote/lib/index.js
|
|
13410
|
-
|
|
13411
|
-
function
|
|
13418
|
+
vS.peek = _S;
|
|
13419
|
+
function lS() {
|
|
13412
13420
|
this.buffer();
|
|
13413
13421
|
}
|
|
13414
|
-
function
|
|
13422
|
+
function uS(e) {
|
|
13415
13423
|
this.enter({
|
|
13416
13424
|
type: "footnoteReference",
|
|
13417
13425
|
identifier: "",
|
|
13418
13426
|
label: ""
|
|
13419
13427
|
}, e);
|
|
13420
13428
|
}
|
|
13421
|
-
function
|
|
13429
|
+
function dS() {
|
|
13422
13430
|
this.buffer();
|
|
13423
13431
|
}
|
|
13424
|
-
function
|
|
13432
|
+
function fS(e) {
|
|
13425
13433
|
this.enter({
|
|
13426
13434
|
type: "footnoteDefinition",
|
|
13427
13435
|
identifier: "",
|
|
@@ -13429,52 +13437,52 @@ function dS(e) {
|
|
|
13429
13437
|
children: []
|
|
13430
13438
|
}, e);
|
|
13431
13439
|
}
|
|
13432
|
-
function
|
|
13440
|
+
function pS(e) {
|
|
13433
13441
|
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
13434
13442
|
n.type, n.identifier = kg(this.sliceSerialize(e)).toLowerCase(), n.label = t;
|
|
13435
13443
|
}
|
|
13436
|
-
function
|
|
13444
|
+
function mS(e) {
|
|
13437
13445
|
this.exit(e);
|
|
13438
13446
|
}
|
|
13439
|
-
function
|
|
13447
|
+
function hS(e) {
|
|
13440
13448
|
let t = this.resume(), n = this.stack[this.stack.length - 1];
|
|
13441
13449
|
n.type, n.identifier = kg(this.sliceSerialize(e)).toLowerCase(), n.label = t;
|
|
13442
13450
|
}
|
|
13443
|
-
function
|
|
13451
|
+
function gS(e) {
|
|
13444
13452
|
this.exit(e);
|
|
13445
13453
|
}
|
|
13446
|
-
function
|
|
13454
|
+
function _S() {
|
|
13447
13455
|
return "[";
|
|
13448
13456
|
}
|
|
13449
|
-
function
|
|
13457
|
+
function vS(e, t, n, r) {
|
|
13450
13458
|
let i = n.createTracker(r), a = i.move("[^"), o = n.enter("footnoteReference"), s = n.enter("reference");
|
|
13451
13459
|
return a += i.move(n.safe(n.associationId(e), {
|
|
13452
13460
|
after: "]",
|
|
13453
13461
|
before: a
|
|
13454
13462
|
})), s(), o(), a += i.move("]"), a;
|
|
13455
13463
|
}
|
|
13456
|
-
function
|
|
13464
|
+
function yS() {
|
|
13457
13465
|
return {
|
|
13458
13466
|
enter: {
|
|
13459
|
-
gfmFootnoteCallString:
|
|
13460
|
-
gfmFootnoteCall:
|
|
13461
|
-
gfmFootnoteDefinitionLabelString:
|
|
13462
|
-
gfmFootnoteDefinition:
|
|
13467
|
+
gfmFootnoteCallString: lS,
|
|
13468
|
+
gfmFootnoteCall: uS,
|
|
13469
|
+
gfmFootnoteDefinitionLabelString: dS,
|
|
13470
|
+
gfmFootnoteDefinition: fS
|
|
13463
13471
|
},
|
|
13464
13472
|
exit: {
|
|
13465
|
-
gfmFootnoteCallString:
|
|
13466
|
-
gfmFootnoteCall:
|
|
13467
|
-
gfmFootnoteDefinitionLabelString:
|
|
13468
|
-
gfmFootnoteDefinition:
|
|
13473
|
+
gfmFootnoteCallString: pS,
|
|
13474
|
+
gfmFootnoteCall: mS,
|
|
13475
|
+
gfmFootnoteDefinitionLabelString: hS,
|
|
13476
|
+
gfmFootnoteDefinition: gS
|
|
13469
13477
|
}
|
|
13470
13478
|
};
|
|
13471
13479
|
}
|
|
13472
|
-
function
|
|
13480
|
+
function bS(e) {
|
|
13473
13481
|
let t = !1;
|
|
13474
13482
|
return e && e.firstLineBlank && (t = !0), {
|
|
13475
13483
|
handlers: {
|
|
13476
13484
|
footnoteDefinition: n,
|
|
13477
|
-
footnoteReference:
|
|
13485
|
+
footnoteReference: vS
|
|
13478
13486
|
},
|
|
13479
13487
|
unsafe: [{
|
|
13480
13488
|
character: "[",
|
|
@@ -13490,18 +13498,18 @@ function yS(e) {
|
|
|
13490
13498
|
return o += a.move(r.safe(r.associationId(e), {
|
|
13491
13499
|
before: o,
|
|
13492
13500
|
after: "]"
|
|
13493
|
-
})), c(), o += a.move("]:"), e.children && e.children.length > 0 && (a.shift(4), o += a.move((t ? "\n" : " ") + r.indentLines(r.containerFlow(e, a.current()), t ?
|
|
13501
|
+
})), c(), o += a.move("]:"), e.children && e.children.length > 0 && (a.shift(4), o += a.move((t ? "\n" : " ") + r.indentLines(r.containerFlow(e, a.current()), t ? SS : xS))), s(), o;
|
|
13494
13502
|
}
|
|
13495
13503
|
}
|
|
13496
|
-
function bS(e, t, n) {
|
|
13497
|
-
return t === 0 ? e : xS(e, t, n);
|
|
13498
|
-
}
|
|
13499
13504
|
function xS(e, t, n) {
|
|
13505
|
+
return t === 0 ? e : SS(e, t, n);
|
|
13506
|
+
}
|
|
13507
|
+
function SS(e, t, n) {
|
|
13500
13508
|
return (n ? "" : " ") + e;
|
|
13501
13509
|
}
|
|
13502
13510
|
//#endregion
|
|
13503
13511
|
//#region ../../node_modules/mdast-util-gfm-strikethrough/lib/index.js
|
|
13504
|
-
var
|
|
13512
|
+
var CS = [
|
|
13505
13513
|
"autolink",
|
|
13506
13514
|
"destinationLiteral",
|
|
13507
13515
|
"destinationRaw",
|
|
@@ -13509,34 +13517,34 @@ var SS = [
|
|
|
13509
13517
|
"titleQuote",
|
|
13510
13518
|
"titleApostrophe"
|
|
13511
13519
|
];
|
|
13512
|
-
|
|
13513
|
-
function
|
|
13520
|
+
OS.peek = kS;
|
|
13521
|
+
function wS() {
|
|
13514
13522
|
return {
|
|
13515
13523
|
canContainEols: ["delete"],
|
|
13516
|
-
enter: { strikethrough:
|
|
13517
|
-
exit: { strikethrough:
|
|
13524
|
+
enter: { strikethrough: ES },
|
|
13525
|
+
exit: { strikethrough: DS }
|
|
13518
13526
|
};
|
|
13519
13527
|
}
|
|
13520
|
-
function
|
|
13528
|
+
function TS() {
|
|
13521
13529
|
return {
|
|
13522
13530
|
unsafe: [{
|
|
13523
13531
|
character: "~",
|
|
13524
13532
|
inConstruct: "phrasing",
|
|
13525
|
-
notInConstruct:
|
|
13533
|
+
notInConstruct: CS
|
|
13526
13534
|
}],
|
|
13527
|
-
handlers: { delete:
|
|
13535
|
+
handlers: { delete: OS }
|
|
13528
13536
|
};
|
|
13529
13537
|
}
|
|
13530
|
-
function
|
|
13538
|
+
function ES(e) {
|
|
13531
13539
|
this.enter({
|
|
13532
13540
|
type: "delete",
|
|
13533
13541
|
children: []
|
|
13534
13542
|
}, e);
|
|
13535
13543
|
}
|
|
13536
|
-
function
|
|
13544
|
+
function DS(e) {
|
|
13537
13545
|
this.exit(e);
|
|
13538
13546
|
}
|
|
13539
|
-
function
|
|
13547
|
+
function OS(e, t, n, r) {
|
|
13540
13548
|
let i = n.createTracker(r), a = n.enter("strikethrough"), o = i.move("~~");
|
|
13541
13549
|
return o += n.containerPhrasing(e, {
|
|
13542
13550
|
...i.current(),
|
|
@@ -13544,20 +13552,20 @@ function DS(e, t, n, r) {
|
|
|
13544
13552
|
after: "~"
|
|
13545
13553
|
}), o += i.move("~~"), a(), o;
|
|
13546
13554
|
}
|
|
13547
|
-
function
|
|
13555
|
+
function kS() {
|
|
13548
13556
|
return "~";
|
|
13549
13557
|
}
|
|
13550
13558
|
//#endregion
|
|
13551
13559
|
//#region ../../node_modules/markdown-table/index.js
|
|
13552
|
-
function
|
|
13560
|
+
function AS(e) {
|
|
13553
13561
|
return e.length;
|
|
13554
13562
|
}
|
|
13555
|
-
function
|
|
13556
|
-
let n = t || {}, r = (n.align || []).concat(), i = n.stringLength ||
|
|
13563
|
+
function jS(e, t) {
|
|
13564
|
+
let n = t || {}, r = (n.align || []).concat(), i = n.stringLength || AS, a = [], o = [], s = [], c = [], l = 0, u = -1;
|
|
13557
13565
|
for (; ++u < e.length;) {
|
|
13558
13566
|
let t = [], r = [], a = -1;
|
|
13559
13567
|
for (e[u].length > l && (l = e[u].length); ++a < e[u].length;) {
|
|
13560
|
-
let o =
|
|
13568
|
+
let o = MS(e[u][a]);
|
|
13561
13569
|
if (n.alignDelimiters !== !1) {
|
|
13562
13570
|
let e = i(o);
|
|
13563
13571
|
r[a] = e, (c[a] === void 0 || e > c[a]) && (c[a] = e);
|
|
@@ -13567,9 +13575,9 @@ function AS(e, t) {
|
|
|
13567
13575
|
o[u] = t, s[u] = r;
|
|
13568
13576
|
}
|
|
13569
13577
|
let d = -1;
|
|
13570
|
-
if (typeof r == "object" && "length" in r) for (; ++d < l;) a[d] =
|
|
13578
|
+
if (typeof r == "object" && "length" in r) for (; ++d < l;) a[d] = NS(r[d]);
|
|
13571
13579
|
else {
|
|
13572
|
-
let e =
|
|
13580
|
+
let e = NS(r);
|
|
13573
13581
|
for (; ++d < l;) a[d] = e;
|
|
13574
13582
|
}
|
|
13575
13583
|
d = -1;
|
|
@@ -13598,30 +13606,30 @@ function AS(e, t) {
|
|
|
13598
13606
|
}
|
|
13599
13607
|
return m.join("\n");
|
|
13600
13608
|
}
|
|
13601
|
-
function
|
|
13609
|
+
function MS(e) {
|
|
13602
13610
|
return e == null ? "" : String(e);
|
|
13603
13611
|
}
|
|
13604
|
-
function
|
|
13612
|
+
function NS(e) {
|
|
13605
13613
|
let t = typeof e == "string" ? e.codePointAt(0) : 0;
|
|
13606
13614
|
return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
|
|
13607
13615
|
}
|
|
13608
13616
|
//#endregion
|
|
13609
13617
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/blockquote.js
|
|
13610
|
-
function
|
|
13618
|
+
function PS(e, t, n, r) {
|
|
13611
13619
|
let i = n.enter("blockquote"), a = n.createTracker(r);
|
|
13612
13620
|
a.move("> "), a.shift(2);
|
|
13613
|
-
let o = n.indentLines(n.containerFlow(e, a.current()),
|
|
13621
|
+
let o = n.indentLines(n.containerFlow(e, a.current()), FS);
|
|
13614
13622
|
return i(), o;
|
|
13615
13623
|
}
|
|
13616
|
-
function
|
|
13624
|
+
function FS(e, t, n) {
|
|
13617
13625
|
return ">" + (n ? "" : " ") + e;
|
|
13618
13626
|
}
|
|
13619
13627
|
//#endregion
|
|
13620
13628
|
//#region ../../node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js
|
|
13621
|
-
function
|
|
13622
|
-
return
|
|
13629
|
+
function IS(e, t) {
|
|
13630
|
+
return LS(e, t.inConstruct, !0) && !LS(e, t.notInConstruct, !1);
|
|
13623
13631
|
}
|
|
13624
|
-
function
|
|
13632
|
+
function LS(e, t, n) {
|
|
13625
13633
|
if (typeof t == "string" && (t = [t]), !t || t.length === 0) return n;
|
|
13626
13634
|
let r = -1;
|
|
13627
13635
|
for (; ++r < t.length;) if (e.includes(t[r])) return !0;
|
|
@@ -13629,14 +13637,14 @@ function IS(e, t, n) {
|
|
|
13629
13637
|
}
|
|
13630
13638
|
//#endregion
|
|
13631
13639
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/break.js
|
|
13632
|
-
function
|
|
13640
|
+
function RS(e, t, n, r) {
|
|
13633
13641
|
let i = -1;
|
|
13634
|
-
for (; ++i < n.unsafe.length;) if (n.unsafe[i].character === "\n" &&
|
|
13642
|
+
for (; ++i < n.unsafe.length;) if (n.unsafe[i].character === "\n" && IS(n.stack, n.unsafe[i])) return /[ \t]/.test(r.before) ? "" : " ";
|
|
13635
13643
|
return "\\\n";
|
|
13636
13644
|
}
|
|
13637
13645
|
//#endregion
|
|
13638
13646
|
//#region ../../node_modules/longest-streak/index.js
|
|
13639
|
-
function
|
|
13647
|
+
function zS(e, t) {
|
|
13640
13648
|
let n = String(e), r = n.indexOf(t), i = r, a = 0, o = 0;
|
|
13641
13649
|
if (typeof t != "string") throw TypeError("Expected substring");
|
|
13642
13650
|
for (; r !== -1;) r === i ? ++a > o && (o = a) : a = 1, i = r + t.length, r = n.indexOf(t, i);
|
|
@@ -13644,25 +13652,25 @@ function RS(e, t) {
|
|
|
13644
13652
|
}
|
|
13645
13653
|
//#endregion
|
|
13646
13654
|
//#region ../../node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js
|
|
13647
|
-
function
|
|
13655
|
+
function BS(e, t) {
|
|
13648
13656
|
return !!(t.options.fences === !1 && e.value && !e.lang && /[^ \r\n]/.test(e.value) && !/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value));
|
|
13649
13657
|
}
|
|
13650
13658
|
//#endregion
|
|
13651
13659
|
//#region ../../node_modules/mdast-util-to-markdown/lib/util/check-fence.js
|
|
13652
|
-
function
|
|
13660
|
+
function VS(e) {
|
|
13653
13661
|
let t = e.options.fence || "`";
|
|
13654
13662
|
if (t !== "`" && t !== "~") throw Error("Cannot serialize code with `" + t + "` for `options.fence`, expected `` ` `` or `~`");
|
|
13655
13663
|
return t;
|
|
13656
13664
|
}
|
|
13657
13665
|
//#endregion
|
|
13658
13666
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/code.js
|
|
13659
|
-
function
|
|
13660
|
-
let i =
|
|
13661
|
-
if (
|
|
13662
|
-
let e = n.enter("codeIndented"), t = n.indentLines(a,
|
|
13667
|
+
function HS(e, t, n, r) {
|
|
13668
|
+
let i = VS(n), a = e.value || "", o = i === "`" ? "GraveAccent" : "Tilde";
|
|
13669
|
+
if (BS(e, n)) {
|
|
13670
|
+
let e = n.enter("codeIndented"), t = n.indentLines(a, US);
|
|
13663
13671
|
return e(), t;
|
|
13664
13672
|
}
|
|
13665
|
-
let s = n.createTracker(r), c = i.repeat(Math.max(
|
|
13673
|
+
let s = n.createTracker(r), c = i.repeat(Math.max(zS(a, i) + 1, 3)), l = n.enter("codeFenced"), u = s.move(c);
|
|
13666
13674
|
if (e.lang) {
|
|
13667
13675
|
let t = n.enter(`codeFencedLang${o}`);
|
|
13668
13676
|
u += s.move(n.safe(e.lang, {
|
|
@@ -13683,20 +13691,20 @@ function VS(e, t, n, r) {
|
|
|
13683
13691
|
}
|
|
13684
13692
|
return u += s.move("\n"), a && (u += s.move(a + "\n")), u += s.move(c), l(), u;
|
|
13685
13693
|
}
|
|
13686
|
-
function
|
|
13694
|
+
function US(e, t, n) {
|
|
13687
13695
|
return (n ? "" : " ") + e;
|
|
13688
13696
|
}
|
|
13689
13697
|
//#endregion
|
|
13690
13698
|
//#region ../../node_modules/mdast-util-to-markdown/lib/util/check-quote.js
|
|
13691
|
-
function
|
|
13699
|
+
function WS(e) {
|
|
13692
13700
|
let t = e.options.quote || "\"";
|
|
13693
13701
|
if (t !== "\"" && t !== "'") throw Error("Cannot serialize title with `" + t + "` for `options.quote`, expected `\"`, or `'`");
|
|
13694
13702
|
return t;
|
|
13695
13703
|
}
|
|
13696
13704
|
//#endregion
|
|
13697
13705
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/definition.js
|
|
13698
|
-
function
|
|
13699
|
-
let i =
|
|
13706
|
+
function GS(e, t, n, r) {
|
|
13707
|
+
let i = WS(n), a = i === "\"" ? "Quote" : "Apostrophe", o = n.enter("definition"), s = n.enter("label"), c = n.createTracker(r), l = c.move("[");
|
|
13700
13708
|
return l += c.move(n.safe(n.associationId(e), {
|
|
13701
13709
|
before: l,
|
|
13702
13710
|
after: "]",
|
|
@@ -13717,19 +13725,19 @@ function WS(e, t, n, r) {
|
|
|
13717
13725
|
}
|
|
13718
13726
|
//#endregion
|
|
13719
13727
|
//#region ../../node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js
|
|
13720
|
-
function
|
|
13728
|
+
function KS(e) {
|
|
13721
13729
|
let t = e.options.emphasis || "*";
|
|
13722
13730
|
if (t !== "*" && t !== "_") throw Error("Cannot serialize emphasis with `" + t + "` for `options.emphasis`, expected `*`, or `_`");
|
|
13723
13731
|
return t;
|
|
13724
13732
|
}
|
|
13725
13733
|
//#endregion
|
|
13726
13734
|
//#region ../../node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js
|
|
13727
|
-
function
|
|
13735
|
+
function qS(e) {
|
|
13728
13736
|
return "&#x" + e.toString(16).toUpperCase() + ";";
|
|
13729
13737
|
}
|
|
13730
13738
|
//#endregion
|
|
13731
13739
|
//#region ../../node_modules/mdast-util-to-markdown/lib/util/encode-info.js
|
|
13732
|
-
function
|
|
13740
|
+
function JS(e, t, n) {
|
|
13733
13741
|
let r = Jg(e), i = Jg(t);
|
|
13734
13742
|
return r === void 0 ? i === void 0 ? n === "_" ? {
|
|
13735
13743
|
inside: !0,
|
|
@@ -13765,38 +13773,38 @@ function qS(e, t, n) {
|
|
|
13765
13773
|
}
|
|
13766
13774
|
//#endregion
|
|
13767
13775
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/emphasis.js
|
|
13768
|
-
|
|
13769
|
-
function
|
|
13770
|
-
let i =
|
|
13776
|
+
YS.peek = XS;
|
|
13777
|
+
function YS(e, t, n, r) {
|
|
13778
|
+
let i = KS(n), a = n.enter("emphasis"), o = n.createTracker(r), s = o.move(i), c = o.move(n.containerPhrasing(e, {
|
|
13771
13779
|
after: i,
|
|
13772
13780
|
before: s,
|
|
13773
13781
|
...o.current()
|
|
13774
|
-
})), l = c.charCodeAt(0), u =
|
|
13775
|
-
u.inside && (c =
|
|
13776
|
-
let d = c.charCodeAt(c.length - 1), f =
|
|
13777
|
-
f.inside && (c = c.slice(0, -1) +
|
|
13782
|
+
})), l = c.charCodeAt(0), u = JS(r.before.charCodeAt(r.before.length - 1), l, i);
|
|
13783
|
+
u.inside && (c = qS(l) + c.slice(1));
|
|
13784
|
+
let d = c.charCodeAt(c.length - 1), f = JS(r.after.charCodeAt(0), d, i);
|
|
13785
|
+
f.inside && (c = c.slice(0, -1) + qS(d));
|
|
13778
13786
|
let p = o.move(i);
|
|
13779
13787
|
return a(), n.attentionEncodeSurroundingInfo = {
|
|
13780
13788
|
after: f.outside,
|
|
13781
13789
|
before: u.outside
|
|
13782
13790
|
}, s + c + p;
|
|
13783
13791
|
}
|
|
13784
|
-
function
|
|
13792
|
+
function XS(e, t, n) {
|
|
13785
13793
|
return n.options.emphasis || "*";
|
|
13786
13794
|
}
|
|
13787
13795
|
//#endregion
|
|
13788
13796
|
//#region ../../node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js
|
|
13789
|
-
function
|
|
13797
|
+
function ZS(e, t) {
|
|
13790
13798
|
let n = !1;
|
|
13791
|
-
return
|
|
13799
|
+
return yb(e, function(e) {
|
|
13792
13800
|
if ("value" in e && /\r?\n|\r/.test(e.value) || e.type === "break") return n = !0, !1;
|
|
13793
13801
|
}), !!((!e.depth || e.depth < 3) && gg(e) && (t.options.setext || n));
|
|
13794
13802
|
}
|
|
13795
13803
|
//#endregion
|
|
13796
13804
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/heading.js
|
|
13797
|
-
function
|
|
13805
|
+
function QS(e, t, n, r) {
|
|
13798
13806
|
let i = Math.max(Math.min(6, e.depth || 1), 1), a = n.createTracker(r);
|
|
13799
|
-
if (
|
|
13807
|
+
if (ZS(e, n)) {
|
|
13800
13808
|
let t = n.enter("headingSetext"), r = n.enter("phrasing"), o = n.containerPhrasing(e, {
|
|
13801
13809
|
...a.current(),
|
|
13802
13810
|
before: "\n",
|
|
@@ -13811,22 +13819,22 @@ function ZS(e, t, n, r) {
|
|
|
13811
13819
|
after: "\n",
|
|
13812
13820
|
...a.current()
|
|
13813
13821
|
});
|
|
13814
|
-
return /^[\t ]/.test(l) && (l =
|
|
13822
|
+
return /^[\t ]/.test(l) && (l = qS(l.charCodeAt(0)) + l.slice(1)), l = l ? o + " " + l : o, n.options.closeAtx && (l += " " + o), c(), s(), l;
|
|
13815
13823
|
}
|
|
13816
13824
|
//#endregion
|
|
13817
13825
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/html.js
|
|
13818
|
-
|
|
13819
|
-
function
|
|
13826
|
+
$S.peek = eC;
|
|
13827
|
+
function $S(e) {
|
|
13820
13828
|
return e.value || "";
|
|
13821
13829
|
}
|
|
13822
|
-
function
|
|
13830
|
+
function eC() {
|
|
13823
13831
|
return "<";
|
|
13824
13832
|
}
|
|
13825
13833
|
//#endregion
|
|
13826
13834
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/image.js
|
|
13827
|
-
|
|
13828
|
-
function
|
|
13829
|
-
let i =
|
|
13835
|
+
tC.peek = nC;
|
|
13836
|
+
function tC(e, t, n, r) {
|
|
13837
|
+
let i = WS(n), a = i === "\"" ? "Quote" : "Apostrophe", o = n.enter("image"), s = n.enter("label"), c = n.createTracker(r), l = c.move("![");
|
|
13830
13838
|
return l += c.move(n.safe(e.alt, {
|
|
13831
13839
|
before: l,
|
|
13832
13840
|
after: "]",
|
|
@@ -13845,13 +13853,13 @@ function eC(e, t, n, r) {
|
|
|
13845
13853
|
...c.current()
|
|
13846
13854
|
})), l += c.move(i), s()), l += c.move(")"), o(), l;
|
|
13847
13855
|
}
|
|
13848
|
-
function
|
|
13856
|
+
function nC() {
|
|
13849
13857
|
return "!";
|
|
13850
13858
|
}
|
|
13851
13859
|
//#endregion
|
|
13852
13860
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/image-reference.js
|
|
13853
|
-
|
|
13854
|
-
function
|
|
13861
|
+
rC.peek = iC;
|
|
13862
|
+
function rC(e, t, n, r) {
|
|
13855
13863
|
let i = e.referenceType, a = n.enter("imageReference"), o = n.enter("label"), s = n.createTracker(r), c = s.move("!["), l = n.safe(e.alt, {
|
|
13856
13864
|
before: c,
|
|
13857
13865
|
after: "]",
|
|
@@ -13867,13 +13875,13 @@ function nC(e, t, n, r) {
|
|
|
13867
13875
|
});
|
|
13868
13876
|
return o(), n.stack = u, a(), i === "full" || !l || l !== d ? c += s.move(d + "]") : i === "shortcut" ? c = c.slice(0, -1) : c += s.move("]"), c;
|
|
13869
13877
|
}
|
|
13870
|
-
function
|
|
13878
|
+
function iC() {
|
|
13871
13879
|
return "!";
|
|
13872
13880
|
}
|
|
13873
13881
|
//#endregion
|
|
13874
13882
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/inline-code.js
|
|
13875
|
-
|
|
13876
|
-
function
|
|
13883
|
+
aC.peek = oC;
|
|
13884
|
+
function aC(e, t, n) {
|
|
13877
13885
|
let r = e.value || "", i = "`", a = -1;
|
|
13878
13886
|
for (; RegExp("(^|[^`])" + i + "([^`]|$)").test(r);) i += "`";
|
|
13879
13887
|
for (/[^ \r\n]/.test(r) && (/^[ \r\n]/.test(r) && /[ \r\n]$/.test(r) || /^`|`$/.test(r)) && (r = " " + r + " "); ++a < n.unsafe.length;) {
|
|
@@ -13885,21 +13893,21 @@ function iC(e, t, n) {
|
|
|
13885
13893
|
}
|
|
13886
13894
|
return i + r + i;
|
|
13887
13895
|
}
|
|
13888
|
-
function
|
|
13896
|
+
function oC() {
|
|
13889
13897
|
return "`";
|
|
13890
13898
|
}
|
|
13891
13899
|
//#endregion
|
|
13892
13900
|
//#region ../../node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js
|
|
13893
|
-
function
|
|
13901
|
+
function sC(e, t) {
|
|
13894
13902
|
let n = gg(e);
|
|
13895
13903
|
return !!(!t.options.resourceLink && e.url && !e.title && e.children && e.children.length === 1 && e.children[0].type === "text" && (n === e.url || "mailto:" + n === e.url) && /^[a-z][a-z+.-]+:/i.test(e.url) && !/[\0- <>\u007F]/.test(e.url));
|
|
13896
13904
|
}
|
|
13897
13905
|
//#endregion
|
|
13898
13906
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/link.js
|
|
13899
|
-
|
|
13900
|
-
function
|
|
13901
|
-
let i =
|
|
13902
|
-
if (
|
|
13907
|
+
cC.peek = lC;
|
|
13908
|
+
function cC(e, t, n, r) {
|
|
13909
|
+
let i = WS(n), a = i === "\"" ? "Quote" : "Apostrophe", o = n.createTracker(r), s, c;
|
|
13910
|
+
if (sC(e, n)) {
|
|
13903
13911
|
let t = n.stack;
|
|
13904
13912
|
n.stack = [], s = n.enter("autolink");
|
|
13905
13913
|
let r = o.move("<");
|
|
@@ -13929,13 +13937,13 @@ function sC(e, t, n, r) {
|
|
|
13929
13937
|
...o.current()
|
|
13930
13938
|
})), l += o.move(i), c()), l += o.move(")"), s(), l;
|
|
13931
13939
|
}
|
|
13932
|
-
function
|
|
13933
|
-
return
|
|
13940
|
+
function lC(e, t, n) {
|
|
13941
|
+
return sC(e, n) ? "<" : "[";
|
|
13934
13942
|
}
|
|
13935
13943
|
//#endregion
|
|
13936
13944
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/link-reference.js
|
|
13937
|
-
|
|
13938
|
-
function
|
|
13945
|
+
uC.peek = dC;
|
|
13946
|
+
function uC(e, t, n, r) {
|
|
13939
13947
|
let i = e.referenceType, a = n.enter("linkReference"), o = n.enter("label"), s = n.createTracker(r), c = s.move("["), l = n.containerPhrasing(e, {
|
|
13940
13948
|
before: c,
|
|
13941
13949
|
after: "]",
|
|
@@ -13951,20 +13959,20 @@ function lC(e, t, n, r) {
|
|
|
13951
13959
|
});
|
|
13952
13960
|
return o(), n.stack = u, a(), i === "full" || !l || l !== d ? c += s.move(d + "]") : i === "shortcut" ? c = c.slice(0, -1) : c += s.move("]"), c;
|
|
13953
13961
|
}
|
|
13954
|
-
function
|
|
13962
|
+
function dC() {
|
|
13955
13963
|
return "[";
|
|
13956
13964
|
}
|
|
13957
13965
|
//#endregion
|
|
13958
13966
|
//#region ../../node_modules/mdast-util-to-markdown/lib/util/check-bullet.js
|
|
13959
|
-
function
|
|
13967
|
+
function fC(e) {
|
|
13960
13968
|
let t = e.options.bullet || "*";
|
|
13961
13969
|
if (t !== "*" && t !== "+" && t !== "-") throw Error("Cannot serialize items with `" + t + "` for `options.bullet`, expected `*`, `+`, or `-`");
|
|
13962
13970
|
return t;
|
|
13963
13971
|
}
|
|
13964
13972
|
//#endregion
|
|
13965
13973
|
//#region ../../node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js
|
|
13966
|
-
function
|
|
13967
|
-
let t =
|
|
13974
|
+
function pC(e) {
|
|
13975
|
+
let t = fC(e), n = e.options.bulletOther;
|
|
13968
13976
|
if (!n) return t === "*" ? "-" : "*";
|
|
13969
13977
|
if (n !== "*" && n !== "+" && n !== "-") throw Error("Cannot serialize items with `" + n + "` for `options.bulletOther`, expected `*`, `+`, or `-`");
|
|
13970
13978
|
if (n === t) throw Error("Expected `bullet` (`" + t + "`) and `bulletOther` (`" + n + "`) to be different");
|
|
@@ -13972,25 +13980,25 @@ function fC(e) {
|
|
|
13972
13980
|
}
|
|
13973
13981
|
//#endregion
|
|
13974
13982
|
//#region ../../node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js
|
|
13975
|
-
function
|
|
13983
|
+
function mC(e) {
|
|
13976
13984
|
let t = e.options.bulletOrdered || ".";
|
|
13977
13985
|
if (t !== "." && t !== ")") throw Error("Cannot serialize items with `" + t + "` for `options.bulletOrdered`, expected `.` or `)`");
|
|
13978
13986
|
return t;
|
|
13979
13987
|
}
|
|
13980
13988
|
//#endregion
|
|
13981
13989
|
//#region ../../node_modules/mdast-util-to-markdown/lib/util/check-rule.js
|
|
13982
|
-
function
|
|
13990
|
+
function hC(e) {
|
|
13983
13991
|
let t = e.options.rule || "*";
|
|
13984
13992
|
if (t !== "*" && t !== "-" && t !== "_") throw Error("Cannot serialize rules with `" + t + "` for `options.rule`, expected `*`, `-`, or `_`");
|
|
13985
13993
|
return t;
|
|
13986
13994
|
}
|
|
13987
13995
|
//#endregion
|
|
13988
13996
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/list.js
|
|
13989
|
-
function
|
|
13990
|
-
let i = n.enter("list"), a = n.bulletCurrent, o = e.ordered ?
|
|
13997
|
+
function gC(e, t, n, r) {
|
|
13998
|
+
let i = n.enter("list"), a = n.bulletCurrent, o = e.ordered ? mC(n) : fC(n), s = e.ordered ? o === "." ? ")" : "." : pC(n), c = t && n.bulletLastUsed ? o === n.bulletLastUsed : !1;
|
|
13991
13999
|
if (!e.ordered) {
|
|
13992
14000
|
let t = e.children ? e.children[0] : void 0;
|
|
13993
|
-
if ((o === "*" || o === "-") && t && (!t.children || !t.children[0]) && n.stack[n.stack.length - 1] === "list" && n.stack[n.stack.length - 2] === "listItem" && n.stack[n.stack.length - 3] === "list" && n.stack[n.stack.length - 4] === "listItem" && n.indexStack[n.indexStack.length - 1] === 0 && n.indexStack[n.indexStack.length - 2] === 0 && n.indexStack[n.indexStack.length - 3] === 0 && (c = !0),
|
|
14001
|
+
if ((o === "*" || o === "-") && t && (!t.children || !t.children[0]) && n.stack[n.stack.length - 1] === "list" && n.stack[n.stack.length - 2] === "listItem" && n.stack[n.stack.length - 3] === "list" && n.stack[n.stack.length - 4] === "listItem" && n.indexStack[n.indexStack.length - 1] === 0 && n.indexStack[n.indexStack.length - 2] === 0 && n.indexStack[n.indexStack.length - 3] === 0 && (c = !0), hC(n) === o && t) {
|
|
13994
14002
|
let t = -1;
|
|
13995
14003
|
for (; ++t < e.children.length;) {
|
|
13996
14004
|
let n = e.children[t];
|
|
@@ -14007,15 +14015,15 @@ function hC(e, t, n, r) {
|
|
|
14007
14015
|
}
|
|
14008
14016
|
//#endregion
|
|
14009
14017
|
//#region ../../node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js
|
|
14010
|
-
function
|
|
14018
|
+
function _C(e) {
|
|
14011
14019
|
let t = e.options.listItemIndent || "one";
|
|
14012
14020
|
if (t !== "tab" && t !== "one" && t !== "mixed") throw Error("Cannot serialize items with `" + t + "` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");
|
|
14013
14021
|
return t;
|
|
14014
14022
|
}
|
|
14015
14023
|
//#endregion
|
|
14016
14024
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/list-item.js
|
|
14017
|
-
function
|
|
14018
|
-
let i =
|
|
14025
|
+
function vC(e, t, n, r) {
|
|
14026
|
+
let i = _C(n), a = n.bulletCurrent || fC(n);
|
|
14019
14027
|
t && t.type === "list" && t.ordered && (a = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + a);
|
|
14020
14028
|
let o = a.length + 1;
|
|
14021
14029
|
(i === "tab" || i === "mixed" && (t && t.type === "list" && t.spread || e.spread)) && (o = Math.ceil(o / 4) * 4);
|
|
@@ -14029,13 +14037,13 @@ function _C(e, t, n, r) {
|
|
|
14029
14037
|
}
|
|
14030
14038
|
//#endregion
|
|
14031
14039
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/paragraph.js
|
|
14032
|
-
function
|
|
14040
|
+
function yC(e, t, n, r) {
|
|
14033
14041
|
let i = n.enter("paragraph"), a = n.enter("phrasing"), o = n.containerPhrasing(e, r);
|
|
14034
14042
|
return a(), i(), o;
|
|
14035
14043
|
}
|
|
14036
14044
|
//#endregion
|
|
14037
14045
|
//#region ../../node_modules/mdast-util-phrasing/lib/index.js
|
|
14038
|
-
var
|
|
14046
|
+
var bC = cb([
|
|
14039
14047
|
"break",
|
|
14040
14048
|
"delete",
|
|
14041
14049
|
"emphasis",
|
|
@@ -14055,101 +14063,101 @@ var yC = sb([
|
|
|
14055
14063
|
]);
|
|
14056
14064
|
//#endregion
|
|
14057
14065
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/root.js
|
|
14058
|
-
function
|
|
14066
|
+
function xC(e, t, n, r) {
|
|
14059
14067
|
return (e.children.some(function(e) {
|
|
14060
|
-
return
|
|
14068
|
+
return bC(e);
|
|
14061
14069
|
}) ? n.containerPhrasing : n.containerFlow).call(n, e, r);
|
|
14062
14070
|
}
|
|
14063
14071
|
//#endregion
|
|
14064
14072
|
//#region ../../node_modules/mdast-util-to-markdown/lib/util/check-strong.js
|
|
14065
|
-
function
|
|
14073
|
+
function SC(e) {
|
|
14066
14074
|
let t = e.options.strong || "*";
|
|
14067
14075
|
if (t !== "*" && t !== "_") throw Error("Cannot serialize strong with `" + t + "` for `options.strong`, expected `*`, or `_`");
|
|
14068
14076
|
return t;
|
|
14069
14077
|
}
|
|
14070
14078
|
//#endregion
|
|
14071
14079
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/strong.js
|
|
14072
|
-
|
|
14073
|
-
function
|
|
14074
|
-
let i =
|
|
14080
|
+
CC.peek = wC;
|
|
14081
|
+
function CC(e, t, n, r) {
|
|
14082
|
+
let i = SC(n), a = n.enter("strong"), o = n.createTracker(r), s = o.move(i + i), c = o.move(n.containerPhrasing(e, {
|
|
14075
14083
|
after: i,
|
|
14076
14084
|
before: s,
|
|
14077
14085
|
...o.current()
|
|
14078
|
-
})), l = c.charCodeAt(0), u =
|
|
14079
|
-
u.inside && (c =
|
|
14080
|
-
let d = c.charCodeAt(c.length - 1), f =
|
|
14081
|
-
f.inside && (c = c.slice(0, -1) +
|
|
14086
|
+
})), l = c.charCodeAt(0), u = JS(r.before.charCodeAt(r.before.length - 1), l, i);
|
|
14087
|
+
u.inside && (c = qS(l) + c.slice(1));
|
|
14088
|
+
let d = c.charCodeAt(c.length - 1), f = JS(r.after.charCodeAt(0), d, i);
|
|
14089
|
+
f.inside && (c = c.slice(0, -1) + qS(d));
|
|
14082
14090
|
let p = o.move(i + i);
|
|
14083
14091
|
return a(), n.attentionEncodeSurroundingInfo = {
|
|
14084
14092
|
after: f.outside,
|
|
14085
14093
|
before: u.outside
|
|
14086
14094
|
}, s + c + p;
|
|
14087
14095
|
}
|
|
14088
|
-
function
|
|
14096
|
+
function wC(e, t, n) {
|
|
14089
14097
|
return n.options.strong || "*";
|
|
14090
14098
|
}
|
|
14091
14099
|
//#endregion
|
|
14092
14100
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/text.js
|
|
14093
|
-
function
|
|
14101
|
+
function TC(e, t, n, r) {
|
|
14094
14102
|
return n.safe(e.value, r);
|
|
14095
14103
|
}
|
|
14096
14104
|
//#endregion
|
|
14097
14105
|
//#region ../../node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js
|
|
14098
|
-
function
|
|
14106
|
+
function EC(e) {
|
|
14099
14107
|
let t = e.options.ruleRepetition || 3;
|
|
14100
14108
|
if (t < 3) throw Error("Cannot serialize rules with repetition `" + t + "` for `options.ruleRepetition`, expected `3` or more");
|
|
14101
14109
|
return t;
|
|
14102
14110
|
}
|
|
14103
14111
|
//#endregion
|
|
14104
14112
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js
|
|
14105
|
-
function
|
|
14106
|
-
let r = (
|
|
14113
|
+
function DC(e, t, n) {
|
|
14114
|
+
let r = (hC(n) + (n.options.ruleSpaces ? " " : "")).repeat(EC(n));
|
|
14107
14115
|
return n.options.ruleSpaces ? r.slice(0, -1) : r;
|
|
14108
14116
|
}
|
|
14109
14117
|
//#endregion
|
|
14110
14118
|
//#region ../../node_modules/mdast-util-to-markdown/lib/handle/index.js
|
|
14111
|
-
var
|
|
14112
|
-
blockquote:
|
|
14113
|
-
break:
|
|
14114
|
-
code:
|
|
14115
|
-
definition:
|
|
14116
|
-
emphasis:
|
|
14117
|
-
hardBreak:
|
|
14118
|
-
heading:
|
|
14119
|
-
html:
|
|
14120
|
-
image:
|
|
14121
|
-
imageReference:
|
|
14122
|
-
inlineCode:
|
|
14123
|
-
link:
|
|
14124
|
-
linkReference:
|
|
14125
|
-
list:
|
|
14126
|
-
listItem:
|
|
14127
|
-
paragraph:
|
|
14128
|
-
root:
|
|
14129
|
-
strong:
|
|
14130
|
-
text:
|
|
14131
|
-
thematicBreak:
|
|
14119
|
+
var OC = {
|
|
14120
|
+
blockquote: PS,
|
|
14121
|
+
break: RS,
|
|
14122
|
+
code: HS,
|
|
14123
|
+
definition: GS,
|
|
14124
|
+
emphasis: YS,
|
|
14125
|
+
hardBreak: RS,
|
|
14126
|
+
heading: QS,
|
|
14127
|
+
html: $S,
|
|
14128
|
+
image: tC,
|
|
14129
|
+
imageReference: rC,
|
|
14130
|
+
inlineCode: aC,
|
|
14131
|
+
link: cC,
|
|
14132
|
+
linkReference: uC,
|
|
14133
|
+
list: gC,
|
|
14134
|
+
listItem: vC,
|
|
14135
|
+
paragraph: yC,
|
|
14136
|
+
root: xC,
|
|
14137
|
+
strong: CC,
|
|
14138
|
+
text: TC,
|
|
14139
|
+
thematicBreak: DC
|
|
14132
14140
|
};
|
|
14133
14141
|
//#endregion
|
|
14134
14142
|
//#region ../../node_modules/mdast-util-gfm-table/lib/index.js
|
|
14135
|
-
function
|
|
14143
|
+
function kC() {
|
|
14136
14144
|
return {
|
|
14137
14145
|
enter: {
|
|
14138
|
-
table: kC,
|
|
14139
|
-
tableData: NC,
|
|
14140
|
-
tableHeader: NC,
|
|
14141
|
-
tableRow: jC
|
|
14142
|
-
},
|
|
14143
|
-
exit: {
|
|
14144
|
-
codeText: PC,
|
|
14145
14146
|
table: AC,
|
|
14146
|
-
tableData:
|
|
14147
|
-
tableHeader:
|
|
14147
|
+
tableData: PC,
|
|
14148
|
+
tableHeader: PC,
|
|
14148
14149
|
tableRow: MC
|
|
14150
|
+
},
|
|
14151
|
+
exit: {
|
|
14152
|
+
codeText: FC,
|
|
14153
|
+
table: jC,
|
|
14154
|
+
tableData: NC,
|
|
14155
|
+
tableHeader: NC,
|
|
14156
|
+
tableRow: NC
|
|
14149
14157
|
}
|
|
14150
14158
|
};
|
|
14151
14159
|
}
|
|
14152
|
-
function
|
|
14160
|
+
function AC(e) {
|
|
14153
14161
|
let t = e._align;
|
|
14154
14162
|
this.enter({
|
|
14155
14163
|
type: "table",
|
|
@@ -14159,34 +14167,34 @@ function kC(e) {
|
|
|
14159
14167
|
children: []
|
|
14160
14168
|
}, e), this.data.inTable = !0;
|
|
14161
14169
|
}
|
|
14162
|
-
function
|
|
14170
|
+
function jC(e) {
|
|
14163
14171
|
this.exit(e), this.data.inTable = void 0;
|
|
14164
14172
|
}
|
|
14165
|
-
function
|
|
14173
|
+
function MC(e) {
|
|
14166
14174
|
this.enter({
|
|
14167
14175
|
type: "tableRow",
|
|
14168
14176
|
children: []
|
|
14169
14177
|
}, e);
|
|
14170
14178
|
}
|
|
14171
|
-
function
|
|
14179
|
+
function NC(e) {
|
|
14172
14180
|
this.exit(e);
|
|
14173
14181
|
}
|
|
14174
|
-
function
|
|
14182
|
+
function PC(e) {
|
|
14175
14183
|
this.enter({
|
|
14176
14184
|
type: "tableCell",
|
|
14177
14185
|
children: []
|
|
14178
14186
|
}, e);
|
|
14179
14187
|
}
|
|
14180
|
-
function
|
|
14188
|
+
function FC(e) {
|
|
14181
14189
|
let t = this.resume();
|
|
14182
|
-
this.data.inTable && (t = t.replace(/\\([\\|])/g,
|
|
14190
|
+
this.data.inTable && (t = t.replace(/\\([\\|])/g, IC));
|
|
14183
14191
|
let n = this.stack[this.stack.length - 1];
|
|
14184
14192
|
n.type, n.value = t, this.exit(e);
|
|
14185
14193
|
}
|
|
14186
|
-
function
|
|
14194
|
+
function IC(e, t) {
|
|
14187
14195
|
return t === "|" ? t : e;
|
|
14188
14196
|
}
|
|
14189
|
-
function
|
|
14197
|
+
function LC(e) {
|
|
14190
14198
|
let t = e || {}, n = t.tableCellPadding, r = t.tablePipeAlign, i = t.stringLength, a = n ? " " : "|";
|
|
14191
14199
|
return {
|
|
14192
14200
|
unsafe: [
|
|
@@ -14241,7 +14249,7 @@ function IC(e) {
|
|
|
14241
14249
|
return o(), i(), s;
|
|
14242
14250
|
}
|
|
14243
14251
|
function l(e, t) {
|
|
14244
|
-
return
|
|
14252
|
+
return jS(e, {
|
|
14245
14253
|
align: t,
|
|
14246
14254
|
alignDelimiters: r,
|
|
14247
14255
|
padding: n,
|
|
@@ -14259,34 +14267,34 @@ function IC(e) {
|
|
|
14259
14267
|
return o(), a;
|
|
14260
14268
|
}
|
|
14261
14269
|
function f(e, t, n) {
|
|
14262
|
-
let r =
|
|
14270
|
+
let r = OC.inlineCode(e, t, n);
|
|
14263
14271
|
return n.stack.includes("tableCell") && (r = r.replace(/\|/g, "\\$&")), r;
|
|
14264
14272
|
}
|
|
14265
14273
|
}
|
|
14266
14274
|
//#endregion
|
|
14267
14275
|
//#region ../../node_modules/mdast-util-gfm-task-list-item/lib/index.js
|
|
14268
|
-
function
|
|
14276
|
+
function RC() {
|
|
14269
14277
|
return { exit: {
|
|
14270
|
-
taskListCheckValueChecked:
|
|
14271
|
-
taskListCheckValueUnchecked:
|
|
14272
|
-
paragraph:
|
|
14278
|
+
taskListCheckValueChecked: BC,
|
|
14279
|
+
taskListCheckValueUnchecked: BC,
|
|
14280
|
+
paragraph: VC
|
|
14273
14281
|
} };
|
|
14274
14282
|
}
|
|
14275
|
-
function
|
|
14283
|
+
function zC() {
|
|
14276
14284
|
return {
|
|
14277
14285
|
unsafe: [{
|
|
14278
14286
|
atBreak: !0,
|
|
14279
14287
|
character: "-",
|
|
14280
14288
|
after: "[:|-]"
|
|
14281
14289
|
}],
|
|
14282
|
-
handlers: { listItem:
|
|
14290
|
+
handlers: { listItem: HC }
|
|
14283
14291
|
};
|
|
14284
14292
|
}
|
|
14285
|
-
function
|
|
14293
|
+
function BC(e) {
|
|
14286
14294
|
let t = this.stack[this.stack.length - 2];
|
|
14287
14295
|
t.type, t.checked = e.type === "taskListCheckValueChecked";
|
|
14288
14296
|
}
|
|
14289
|
-
function
|
|
14297
|
+
function VC(e) {
|
|
14290
14298
|
let t = this.stack[this.stack.length - 2];
|
|
14291
14299
|
if (t && t.type === "listItem" && typeof t.checked == "boolean") {
|
|
14292
14300
|
let e = this.stack[this.stack.length - 1];
|
|
@@ -14306,10 +14314,10 @@ function BC(e) {
|
|
|
14306
14314
|
}
|
|
14307
14315
|
this.exit(e);
|
|
14308
14316
|
}
|
|
14309
|
-
function
|
|
14317
|
+
function HC(e, t, n, r) {
|
|
14310
14318
|
let i = e.children[0], a = typeof e.checked == "boolean" && i && i.type === "paragraph", o = "[" + (e.checked ? "x" : " ") + "] ", s = n.createTracker(r);
|
|
14311
14319
|
a && s.move(o);
|
|
14312
|
-
let c =
|
|
14320
|
+
let c = OC.listItem(e, t, n, {
|
|
14313
14321
|
...r,
|
|
14314
14322
|
...s.current()
|
|
14315
14323
|
});
|
|
@@ -14320,30 +14328,27 @@ function VC(e, t, n, r) {
|
|
|
14320
14328
|
}
|
|
14321
14329
|
//#endregion
|
|
14322
14330
|
//#region ../../node_modules/mdast-util-gfm/lib/index.js
|
|
14323
|
-
function
|
|
14331
|
+
function UC() {
|
|
14324
14332
|
return [
|
|
14325
|
-
Jx(),
|
|
14326
|
-
vS(),
|
|
14327
|
-
CS(),
|
|
14328
|
-
OC(),
|
|
14329
|
-
LC()
|
|
14330
|
-
];
|
|
14331
|
-
}
|
|
14332
|
-
function UC(e) {
|
|
14333
|
-
return { extensions: [
|
|
14334
14333
|
Yx(),
|
|
14335
|
-
yS(
|
|
14334
|
+
yS(),
|
|
14336
14335
|
wS(),
|
|
14337
|
-
|
|
14336
|
+
kC(),
|
|
14338
14337
|
RC()
|
|
14338
|
+
];
|
|
14339
|
+
}
|
|
14340
|
+
function WC(e) {
|
|
14341
|
+
return { extensions: [
|
|
14342
|
+
Xx(),
|
|
14343
|
+
bS(e),
|
|
14344
|
+
TS(),
|
|
14345
|
+
LC(e),
|
|
14346
|
+
zC()
|
|
14339
14347
|
] };
|
|
14340
14348
|
}
|
|
14341
14349
|
//#endregion
|
|
14342
14350
|
//#region ../../node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js
|
|
14343
|
-
var
|
|
14344
|
-
tokenize: iw,
|
|
14345
|
-
partial: !0
|
|
14346
|
-
}, GC = {
|
|
14351
|
+
var GC = {
|
|
14347
14352
|
tokenize: aw,
|
|
14348
14353
|
partial: !0
|
|
14349
14354
|
}, KC = {
|
|
@@ -14356,34 +14361,37 @@ var WC = {
|
|
|
14356
14361
|
tokenize: cw,
|
|
14357
14362
|
partial: !0
|
|
14358
14363
|
}, YC = {
|
|
14359
|
-
|
|
14360
|
-
|
|
14361
|
-
previous: lw
|
|
14364
|
+
tokenize: lw,
|
|
14365
|
+
partial: !0
|
|
14362
14366
|
}, XC = {
|
|
14363
|
-
name: "
|
|
14367
|
+
name: "wwwAutolink",
|
|
14364
14368
|
tokenize: rw,
|
|
14365
14369
|
previous: uw
|
|
14366
14370
|
}, ZC = {
|
|
14367
|
-
name: "
|
|
14368
|
-
tokenize:
|
|
14371
|
+
name: "protocolAutolink",
|
|
14372
|
+
tokenize: iw,
|
|
14369
14373
|
previous: dw
|
|
14370
|
-
}, QC = {
|
|
14371
|
-
|
|
14372
|
-
|
|
14374
|
+
}, QC = {
|
|
14375
|
+
name: "emailAutolink",
|
|
14376
|
+
tokenize: nw,
|
|
14377
|
+
previous: fw
|
|
14378
|
+
}, $C = {};
|
|
14379
|
+
function ew() {
|
|
14380
|
+
return { text: $C };
|
|
14373
14381
|
}
|
|
14374
|
-
for (var
|
|
14375
|
-
|
|
14376
|
-
function
|
|
14382
|
+
for (var tw = 48; tw < 123;) $C[tw] = QC, tw++, tw === 58 ? tw = 65 : tw === 91 && (tw = 97);
|
|
14383
|
+
$C[43] = QC, $C[45] = QC, $C[46] = QC, $C[95] = QC, $C[72] = [QC, ZC], $C[104] = [QC, ZC], $C[87] = [QC, XC], $C[119] = [QC, XC];
|
|
14384
|
+
function nw(e, t, n) {
|
|
14377
14385
|
let r = this, i, a;
|
|
14378
14386
|
return o;
|
|
14379
14387
|
function o(t) {
|
|
14380
|
-
return !
|
|
14388
|
+
return !pw(t) || !fw.call(r, r.previous) || mw(r.events) ? n(t) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), s(t));
|
|
14381
14389
|
}
|
|
14382
14390
|
function s(t) {
|
|
14383
|
-
return
|
|
14391
|
+
return pw(t) ? (e.consume(t), s) : t === 64 ? (e.consume(t), c) : n(t);
|
|
14384
14392
|
}
|
|
14385
14393
|
function c(t) {
|
|
14386
|
-
return t === 46 ? e.check(
|
|
14394
|
+
return t === 46 ? e.check(YC, u, l)(t) : t === 45 || t === 95 || jg(t) ? (a = !0, e.consume(t), c) : u(t);
|
|
14387
14395
|
}
|
|
14388
14396
|
function l(t) {
|
|
14389
14397
|
return e.consume(t), i = !0, c;
|
|
@@ -14392,21 +14400,21 @@ function tw(e, t, n) {
|
|
|
14392
14400
|
return a && i && Ag(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(o)) : n(o);
|
|
14393
14401
|
}
|
|
14394
14402
|
}
|
|
14395
|
-
function
|
|
14403
|
+
function rw(e, t, n) {
|
|
14396
14404
|
let r = this;
|
|
14397
14405
|
return i;
|
|
14398
14406
|
function i(t) {
|
|
14399
|
-
return t !== 87 && t !== 119 || !
|
|
14407
|
+
return t !== 87 && t !== 119 || !uw.call(r, r.previous) || mw(r.events) ? n(t) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(GC, e.attempt(KC, e.attempt(qC, a), n), n)(t));
|
|
14400
14408
|
}
|
|
14401
14409
|
function a(n) {
|
|
14402
14410
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(n);
|
|
14403
14411
|
}
|
|
14404
14412
|
}
|
|
14405
|
-
function
|
|
14413
|
+
function iw(e, t, n) {
|
|
14406
14414
|
let r = this, i = "", a = !1;
|
|
14407
14415
|
return o;
|
|
14408
14416
|
function o(t) {
|
|
14409
|
-
return (t === 72 || t === 104) &&
|
|
14417
|
+
return (t === 72 || t === 104) && dw.call(r, r.previous) && !mw(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(t), e.consume(t), s) : n(t);
|
|
14410
14418
|
}
|
|
14411
14419
|
function s(t) {
|
|
14412
14420
|
if (Ag(t) && i.length < 5) return i += String.fromCodePoint(t), e.consume(t), s;
|
|
@@ -14420,13 +14428,13 @@ function rw(e, t, n) {
|
|
|
14420
14428
|
return t === 47 ? (e.consume(t), a ? l : (a = !0, c)) : n(t);
|
|
14421
14429
|
}
|
|
14422
14430
|
function l(t) {
|
|
14423
|
-
return t === null || Ng(t) || Lg(t) || zg(t) || Rg(t) ? n(t) : e.attempt(
|
|
14431
|
+
return t === null || Ng(t) || Lg(t) || zg(t) || Rg(t) ? n(t) : e.attempt(KC, e.attempt(qC, u), n)(t);
|
|
14424
14432
|
}
|
|
14425
14433
|
function u(n) {
|
|
14426
14434
|
return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(n);
|
|
14427
14435
|
}
|
|
14428
14436
|
}
|
|
14429
|
-
function
|
|
14437
|
+
function aw(e, t, n) {
|
|
14430
14438
|
let r = 0;
|
|
14431
14439
|
return i;
|
|
14432
14440
|
function i(t) {
|
|
@@ -14436,11 +14444,11 @@ function iw(e, t, n) {
|
|
|
14436
14444
|
return e === null ? n(e) : t(e);
|
|
14437
14445
|
}
|
|
14438
14446
|
}
|
|
14439
|
-
function
|
|
14447
|
+
function ow(e, t, n) {
|
|
14440
14448
|
let r, i, a;
|
|
14441
14449
|
return o;
|
|
14442
14450
|
function o(t) {
|
|
14443
|
-
return t === 46 || t === 95 ? e.check(
|
|
14451
|
+
return t === 46 || t === 95 ? e.check(JC, c, s)(t) : t === null || Lg(t) || zg(t) || t !== 45 && Rg(t) ? c(t) : (a = !0, e.consume(t), o);
|
|
14444
14452
|
}
|
|
14445
14453
|
function s(t) {
|
|
14446
14454
|
return t === 95 ? r = !0 : (i = r, r = void 0), e.consume(t), o;
|
|
@@ -14449,17 +14457,17 @@ function aw(e, t, n) {
|
|
|
14449
14457
|
return i || r || !a ? n(e) : t(e);
|
|
14450
14458
|
}
|
|
14451
14459
|
}
|
|
14452
|
-
function
|
|
14460
|
+
function sw(e, t) {
|
|
14453
14461
|
let n = 0, r = 0;
|
|
14454
14462
|
return i;
|
|
14455
14463
|
function i(o) {
|
|
14456
|
-
return o === 40 ? (n++, e.consume(o), i) : o === 41 && r < n ? a(o) : o === 33 || o === 34 || o === 38 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 60 || o === 63 || o === 93 || o === 95 || o === 126 ? e.check(
|
|
14464
|
+
return o === 40 ? (n++, e.consume(o), i) : o === 41 && r < n ? a(o) : o === 33 || o === 34 || o === 38 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 60 || o === 63 || o === 93 || o === 95 || o === 126 ? e.check(JC, t, a)(o) : o === null || Lg(o) || zg(o) ? t(o) : (e.consume(o), i);
|
|
14457
14465
|
}
|
|
14458
14466
|
function a(t) {
|
|
14459
14467
|
return t === 41 && r++, e.consume(t), i;
|
|
14460
14468
|
}
|
|
14461
14469
|
}
|
|
14462
|
-
function
|
|
14470
|
+
function cw(e, t, n) {
|
|
14463
14471
|
return r;
|
|
14464
14472
|
function r(o) {
|
|
14465
14473
|
return o === 33 || o === 34 || o === 39 || o === 41 || o === 42 || o === 44 || o === 46 || o === 58 || o === 59 || o === 63 || o === 95 || o === 126 ? (e.consume(o), r) : o === 38 ? (e.consume(o), a) : o === 93 ? (e.consume(o), i) : o === 60 || o === null || Lg(o) || zg(o) ? t(o) : n(o);
|
|
@@ -14474,7 +14482,7 @@ function sw(e, t, n) {
|
|
|
14474
14482
|
return t === 59 ? (e.consume(t), r) : Ag(t) ? (e.consume(t), o) : n(t);
|
|
14475
14483
|
}
|
|
14476
14484
|
}
|
|
14477
|
-
function
|
|
14485
|
+
function lw(e, t, n) {
|
|
14478
14486
|
return r;
|
|
14479
14487
|
function r(t) {
|
|
14480
14488
|
return e.consume(t), i;
|
|
@@ -14483,19 +14491,19 @@ function cw(e, t, n) {
|
|
|
14483
14491
|
return jg(e) ? n(e) : t(e);
|
|
14484
14492
|
}
|
|
14485
14493
|
}
|
|
14486
|
-
function lw(e) {
|
|
14487
|
-
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || Lg(e);
|
|
14488
|
-
}
|
|
14489
14494
|
function uw(e) {
|
|
14490
|
-
return
|
|
14495
|
+
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || Lg(e);
|
|
14491
14496
|
}
|
|
14492
14497
|
function dw(e) {
|
|
14493
|
-
return !(e
|
|
14498
|
+
return !Ag(e);
|
|
14494
14499
|
}
|
|
14495
14500
|
function fw(e) {
|
|
14496
|
-
return e ===
|
|
14501
|
+
return !(e === 47 || pw(e));
|
|
14497
14502
|
}
|
|
14498
14503
|
function pw(e) {
|
|
14504
|
+
return e === 43 || e === 45 || e === 46 || e === 95 || jg(e);
|
|
14505
|
+
}
|
|
14506
|
+
function mw(e) {
|
|
14499
14507
|
let t = e.length, n = !1;
|
|
14500
14508
|
for (; t--;) {
|
|
14501
14509
|
let r = e[t][1];
|
|
@@ -14512,33 +14520,33 @@ function pw(e) {
|
|
|
14512
14520
|
}
|
|
14513
14521
|
//#endregion
|
|
14514
14522
|
//#region ../../node_modules/micromark-extension-gfm-footnote/lib/syntax.js
|
|
14515
|
-
var
|
|
14516
|
-
tokenize:
|
|
14523
|
+
var hw = {
|
|
14524
|
+
tokenize: Cw,
|
|
14517
14525
|
partial: !0
|
|
14518
14526
|
};
|
|
14519
|
-
function
|
|
14527
|
+
function gw() {
|
|
14520
14528
|
return {
|
|
14521
14529
|
document: { 91: {
|
|
14522
14530
|
name: "gfmFootnoteDefinition",
|
|
14523
|
-
tokenize:
|
|
14524
|
-
continuation: { tokenize:
|
|
14525
|
-
exit:
|
|
14531
|
+
tokenize: bw,
|
|
14532
|
+
continuation: { tokenize: xw },
|
|
14533
|
+
exit: Sw
|
|
14526
14534
|
} },
|
|
14527
14535
|
text: {
|
|
14528
14536
|
91: {
|
|
14529
14537
|
name: "gfmFootnoteCall",
|
|
14530
|
-
tokenize:
|
|
14538
|
+
tokenize: yw
|
|
14531
14539
|
},
|
|
14532
14540
|
93: {
|
|
14533
14541
|
name: "gfmPotentialFootnoteCall",
|
|
14534
14542
|
add: "after",
|
|
14535
|
-
tokenize:
|
|
14536
|
-
resolveTo:
|
|
14543
|
+
tokenize: _w,
|
|
14544
|
+
resolveTo: vw
|
|
14537
14545
|
}
|
|
14538
14546
|
}
|
|
14539
14547
|
};
|
|
14540
14548
|
}
|
|
14541
|
-
function
|
|
14549
|
+
function _w(e, t, n) {
|
|
14542
14550
|
let r = this, i = r.events.length, a = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), o;
|
|
14543
14551
|
for (; i--;) {
|
|
14544
14552
|
let e = r.events[i][1];
|
|
@@ -14558,7 +14566,7 @@ function gw(e, t, n) {
|
|
|
14558
14566
|
return s.codePointAt(0) !== 94 || !a.includes(s.slice(1)) ? n(i) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(i), e.exit("gfmFootnoteCallLabelMarker"), t(i));
|
|
14559
14567
|
}
|
|
14560
14568
|
}
|
|
14561
|
-
function
|
|
14569
|
+
function vw(e, t) {
|
|
14562
14570
|
let n = e.length;
|
|
14563
14571
|
for (; n--;) if (e[n][1].type === "labelImage" && e[n][0] === "enter") {
|
|
14564
14572
|
e[n][1];
|
|
@@ -14634,7 +14642,7 @@ function _w(e, t) {
|
|
|
14634
14642
|
];
|
|
14635
14643
|
return e.splice(n, e.length - n + 1, ...s), e;
|
|
14636
14644
|
}
|
|
14637
|
-
function
|
|
14645
|
+
function yw(e, t, n) {
|
|
14638
14646
|
let r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), a = 0, o;
|
|
14639
14647
|
return s;
|
|
14640
14648
|
function s(t) {
|
|
@@ -14656,7 +14664,7 @@ function vw(e, t, n) {
|
|
|
14656
14664
|
return t === 91 || t === 92 || t === 93 ? (e.consume(t), a++, l) : l(t);
|
|
14657
14665
|
}
|
|
14658
14666
|
}
|
|
14659
|
-
function
|
|
14667
|
+
function bw(e, t, n) {
|
|
14660
14668
|
let r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []), a, o = 0, s;
|
|
14661
14669
|
return c;
|
|
14662
14670
|
function c(t) {
|
|
@@ -14684,13 +14692,13 @@ function yw(e, t, n) {
|
|
|
14684
14692
|
return t(e);
|
|
14685
14693
|
}
|
|
14686
14694
|
}
|
|
14687
|
-
function
|
|
14688
|
-
return e.check(n_, t, e.attempt(
|
|
14695
|
+
function xw(e, t, n) {
|
|
14696
|
+
return e.check(n_, t, e.attempt(hw, t, n));
|
|
14689
14697
|
}
|
|
14690
|
-
function
|
|
14698
|
+
function Sw(e) {
|
|
14691
14699
|
e.exit("gfmFootnoteDefinition");
|
|
14692
14700
|
}
|
|
14693
|
-
function
|
|
14701
|
+
function Cw(e, t, n) {
|
|
14694
14702
|
let r = this;
|
|
14695
14703
|
return $(e, i, "gfmFootnoteDefinitionIndent", 5);
|
|
14696
14704
|
function i(e) {
|
|
@@ -14700,7 +14708,7 @@ function Sw(e, t, n) {
|
|
|
14700
14708
|
}
|
|
14701
14709
|
//#endregion
|
|
14702
14710
|
//#region ../../node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js
|
|
14703
|
-
function
|
|
14711
|
+
function ww(e) {
|
|
14704
14712
|
let t = (e || {}).singleTilde, n = {
|
|
14705
14713
|
name: "strikethrough",
|
|
14706
14714
|
tokenize: i,
|
|
@@ -14792,12 +14800,12 @@ function Cw(e) {
|
|
|
14792
14800
|
}
|
|
14793
14801
|
//#endregion
|
|
14794
14802
|
//#region ../../node_modules/micromark-extension-gfm-table/lib/edit-map.js
|
|
14795
|
-
var
|
|
14803
|
+
var Tw = class {
|
|
14796
14804
|
constructor() {
|
|
14797
14805
|
this.map = [];
|
|
14798
14806
|
}
|
|
14799
14807
|
add(e, t, n) {
|
|
14800
|
-
|
|
14808
|
+
Ew(this, e, t, n);
|
|
14801
14809
|
}
|
|
14802
14810
|
consume(e) {
|
|
14803
14811
|
/* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */
|
|
@@ -14815,7 +14823,7 @@ var ww = class {
|
|
|
14815
14823
|
this.map.length = 0;
|
|
14816
14824
|
}
|
|
14817
14825
|
};
|
|
14818
|
-
function
|
|
14826
|
+
function Ew(e, t, n, r) {
|
|
14819
14827
|
let i = 0;
|
|
14820
14828
|
if (!(n === 0 && r.length === 0)) {
|
|
14821
14829
|
for (; i < e.map.length;) {
|
|
@@ -14834,7 +14842,7 @@ function Tw(e, t, n, r) {
|
|
|
14834
14842
|
}
|
|
14835
14843
|
//#endregion
|
|
14836
14844
|
//#region ../../node_modules/micromark-extension-gfm-table/lib/infer.js
|
|
14837
|
-
function
|
|
14845
|
+
function Dw(e, t) {
|
|
14838
14846
|
let n = !1, r = [];
|
|
14839
14847
|
for (; t < e.length;) {
|
|
14840
14848
|
let i = e[t];
|
|
@@ -14853,14 +14861,14 @@ function Ew(e, t) {
|
|
|
14853
14861
|
}
|
|
14854
14862
|
//#endregion
|
|
14855
14863
|
//#region ../../node_modules/micromark-extension-gfm-table/lib/syntax.js
|
|
14856
|
-
function
|
|
14864
|
+
function Ow() {
|
|
14857
14865
|
return { flow: { null: {
|
|
14858
14866
|
name: "table",
|
|
14859
|
-
tokenize:
|
|
14860
|
-
resolveAll:
|
|
14867
|
+
tokenize: kw,
|
|
14868
|
+
resolveAll: Aw
|
|
14861
14869
|
} } };
|
|
14862
14870
|
}
|
|
14863
|
-
function
|
|
14871
|
+
function kw(e, t, n) {
|
|
14864
14872
|
let r = this, i = 0, a = 0, o;
|
|
14865
14873
|
return s;
|
|
14866
14874
|
function s(e) {
|
|
@@ -14928,7 +14936,7 @@ function Ow(e, t, n) {
|
|
|
14928
14936
|
return t === 92 || t === 124 ? (e.consume(t), w) : w(t);
|
|
14929
14937
|
}
|
|
14930
14938
|
}
|
|
14931
|
-
function
|
|
14939
|
+
function Aw(e, t) {
|
|
14932
14940
|
let n = -1, r = !0, i = 0, a = [
|
|
14933
14941
|
0,
|
|
14934
14942
|
0,
|
|
@@ -14939,10 +14947,10 @@ function kw(e, t) {
|
|
|
14939
14947
|
0,
|
|
14940
14948
|
0,
|
|
14941
14949
|
0
|
|
14942
|
-
], s = !1, c = 0, l, u, d, f = new
|
|
14950
|
+
], s = !1, c = 0, l, u, d, f = new Tw();
|
|
14943
14951
|
for (; ++n < e.length;) {
|
|
14944
14952
|
let p = e[n], m = p[1];
|
|
14945
|
-
p[0] === "enter" ? m.type === "tableHead" ? (s = !1, c !== 0 && (
|
|
14953
|
+
p[0] === "enter" ? m.type === "tableHead" ? (s = !1, c !== 0 && (Mw(f, t, c, l, u), u = void 0, c = 0), l = {
|
|
14946
14954
|
type: "table",
|
|
14947
14955
|
start: Object.assign({}, m.start),
|
|
14948
14956
|
end: Object.assign({}, m.end)
|
|
@@ -14968,32 +14976,32 @@ function kw(e, t) {
|
|
|
14968
14976
|
"enter",
|
|
14969
14977
|
u,
|
|
14970
14978
|
t
|
|
14971
|
-
]])), i = m.type === "tableDelimiterRow" ? 2 : u ? 3 : 1) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") ? (r = !1, o[2] === 0 && (a[1] !== 0 && (o[0] = o[1], d =
|
|
14979
|
+
]])), i = m.type === "tableDelimiterRow" ? 2 : u ? 3 : 1) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") ? (r = !1, o[2] === 0 && (a[1] !== 0 && (o[0] = o[1], d = jw(f, t, a, i, void 0, d), a = [
|
|
14972
14980
|
0,
|
|
14973
14981
|
0,
|
|
14974
14982
|
0,
|
|
14975
14983
|
0
|
|
14976
|
-
]), o[2] = n)) : m.type === "tableCellDivider" && (r ? r = !1 : (a[1] !== 0 && (o[0] = o[1], d =
|
|
14984
|
+
]), o[2] = n)) : m.type === "tableCellDivider" && (r ? r = !1 : (a[1] !== 0 && (o[0] = o[1], d = jw(f, t, a, i, void 0, d)), a = o, o = [
|
|
14977
14985
|
a[1],
|
|
14978
14986
|
n,
|
|
14979
14987
|
0,
|
|
14980
14988
|
0
|
|
14981
|
-
])) : m.type === "tableHead" ? (s = !0, c = n) : m.type === "tableRow" || m.type === "tableDelimiterRow" ? (c = n, a[1] === 0 ? o[1] !== 0 && (d =
|
|
14989
|
+
])) : m.type === "tableHead" ? (s = !0, c = n) : m.type === "tableRow" || m.type === "tableDelimiterRow" ? (c = n, a[1] === 0 ? o[1] !== 0 && (d = jw(f, t, o, i, n, d)) : (o[0] = o[1], d = jw(f, t, a, i, n, d)), i = 0) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") && (o[3] = n);
|
|
14982
14990
|
}
|
|
14983
|
-
for (c !== 0 &&
|
|
14991
|
+
for (c !== 0 && Mw(f, t, c, l, u), f.consume(t.events), n = -1; ++n < t.events.length;) {
|
|
14984
14992
|
let e = t.events[n];
|
|
14985
|
-
e[0] === "enter" && e[1].type === "table" && (e[1]._align =
|
|
14993
|
+
e[0] === "enter" && e[1].type === "table" && (e[1]._align = Dw(t.events, n));
|
|
14986
14994
|
}
|
|
14987
14995
|
return e;
|
|
14988
14996
|
}
|
|
14989
|
-
function
|
|
14997
|
+
function jw(e, t, n, r, i, a) {
|
|
14990
14998
|
let o = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData";
|
|
14991
|
-
n[0] !== 0 && (a.end = Object.assign({},
|
|
14999
|
+
n[0] !== 0 && (a.end = Object.assign({}, Nw(t.events, n[0])), e.add(n[0], 0, [[
|
|
14992
15000
|
"exit",
|
|
14993
15001
|
a,
|
|
14994
15002
|
t
|
|
14995
15003
|
]]));
|
|
14996
|
-
let s =
|
|
15004
|
+
let s = Nw(t.events, n[1]);
|
|
14997
15005
|
if (a = {
|
|
14998
15006
|
type: o,
|
|
14999
15007
|
start: Object.assign({}, s),
|
|
@@ -15003,7 +15011,7 @@ function Aw(e, t, n, r, i, a) {
|
|
|
15003
15011
|
a,
|
|
15004
15012
|
t
|
|
15005
15013
|
]]), n[2] !== 0) {
|
|
15006
|
-
let i =
|
|
15014
|
+
let i = Nw(t.events, n[2]), a = Nw(t.events, n[3]), o = {
|
|
15007
15015
|
type: "tableContent",
|
|
15008
15016
|
start: Object.assign({}, i),
|
|
15009
15017
|
end: Object.assign({}, a)
|
|
@@ -15025,14 +15033,14 @@ function Aw(e, t, n, r, i, a) {
|
|
|
15025
15033
|
t
|
|
15026
15034
|
]]);
|
|
15027
15035
|
}
|
|
15028
|
-
return i !== void 0 && (a.end = Object.assign({},
|
|
15036
|
+
return i !== void 0 && (a.end = Object.assign({}, Nw(t.events, i)), e.add(i, 0, [[
|
|
15029
15037
|
"exit",
|
|
15030
15038
|
a,
|
|
15031
15039
|
t
|
|
15032
15040
|
]]), a = void 0), a;
|
|
15033
15041
|
}
|
|
15034
|
-
function
|
|
15035
|
-
let a = [], o =
|
|
15042
|
+
function Mw(e, t, n, r, i) {
|
|
15043
|
+
let a = [], o = Nw(t.events, n);
|
|
15036
15044
|
i && (i.end = Object.assign({}, o), a.push([
|
|
15037
15045
|
"exit",
|
|
15038
15046
|
i,
|
|
@@ -15043,20 +15051,20 @@ function jw(e, t, n, r, i) {
|
|
|
15043
15051
|
t
|
|
15044
15052
|
]), e.add(n + 1, 0, a);
|
|
15045
15053
|
}
|
|
15046
|
-
function
|
|
15054
|
+
function Nw(e, t) {
|
|
15047
15055
|
let n = e[t], r = n[0] === "enter" ? "start" : "end";
|
|
15048
15056
|
return n[1][r];
|
|
15049
15057
|
}
|
|
15050
15058
|
//#endregion
|
|
15051
15059
|
//#region ../../node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js
|
|
15052
|
-
var
|
|
15060
|
+
var Pw = {
|
|
15053
15061
|
name: "tasklistCheck",
|
|
15054
|
-
tokenize:
|
|
15062
|
+
tokenize: Iw
|
|
15055
15063
|
};
|
|
15056
|
-
function
|
|
15057
|
-
return { text: { 91:
|
|
15064
|
+
function Fw() {
|
|
15065
|
+
return { text: { 91: Pw } };
|
|
15058
15066
|
}
|
|
15059
|
-
function
|
|
15067
|
+
function Iw(e, t, n) {
|
|
15060
15068
|
let r = this;
|
|
15061
15069
|
return i;
|
|
15062
15070
|
function i(t) {
|
|
@@ -15069,10 +15077,10 @@ function Fw(e, t, n) {
|
|
|
15069
15077
|
return t === 93 ? (e.enter("taskListCheckMarker"), e.consume(t), e.exit("taskListCheckMarker"), e.exit("taskListCheck"), s) : n(t);
|
|
15070
15078
|
}
|
|
15071
15079
|
function s(r) {
|
|
15072
|
-
return Z(r) ? t(r) : Q(r) ? e.check({ tokenize:
|
|
15080
|
+
return Z(r) ? t(r) : Q(r) ? e.check({ tokenize: Lw }, t, n)(r) : n(r);
|
|
15073
15081
|
}
|
|
15074
15082
|
}
|
|
15075
|
-
function
|
|
15083
|
+
function Lw(e, t, n) {
|
|
15076
15084
|
return $(e, r, "whitespace");
|
|
15077
15085
|
function r(e) {
|
|
15078
15086
|
return e === null ? n(e) : t(e);
|
|
@@ -15080,25 +15088,25 @@ function Iw(e, t, n) {
|
|
|
15080
15088
|
}
|
|
15081
15089
|
//#endregion
|
|
15082
15090
|
//#region ../../node_modules/micromark-extension-gfm/index.js
|
|
15083
|
-
function
|
|
15091
|
+
function Rw(e) {
|
|
15084
15092
|
return Tg([
|
|
15085
|
-
|
|
15086
|
-
|
|
15087
|
-
|
|
15088
|
-
|
|
15089
|
-
|
|
15093
|
+
ew(),
|
|
15094
|
+
gw(),
|
|
15095
|
+
ww(e),
|
|
15096
|
+
Ow(),
|
|
15097
|
+
Fw()
|
|
15090
15098
|
]);
|
|
15091
15099
|
}
|
|
15092
15100
|
//#endregion
|
|
15093
15101
|
//#region ../../node_modules/remark-gfm/lib/index.js
|
|
15094
|
-
var
|
|
15095
|
-
function
|
|
15096
|
-
let t = this, n = e ||
|
|
15097
|
-
i.push(
|
|
15102
|
+
var zw = {};
|
|
15103
|
+
function Bw(e) {
|
|
15104
|
+
let t = this, n = e || zw, r = t.data(), i = r.micromarkExtensions ||= [], a = r.fromMarkdownExtensions ||= [], o = r.toMarkdownExtensions ||= [];
|
|
15105
|
+
i.push(Rw(n)), a.push(UC()), o.push(WC(n));
|
|
15098
15106
|
}
|
|
15099
15107
|
//#endregion
|
|
15100
15108
|
//#region src/components/DocumentationPane/use-document-headings.ts
|
|
15101
|
-
function
|
|
15109
|
+
function Vw(e, t, n) {
|
|
15102
15110
|
let [r, i] = V(null), a = B(/* @__PURE__ */ new Set()), o = B(null), s = n?.scrollLockRef, c = R((e) => {
|
|
15103
15111
|
o.current = e, i(e);
|
|
15104
15112
|
}, []);
|
|
@@ -15136,7 +15144,7 @@ function Bw(e, t, n) {
|
|
|
15136
15144
|
setActiveId: c
|
|
15137
15145
|
};
|
|
15138
15146
|
}
|
|
15139
|
-
function
|
|
15147
|
+
function Hw(e) {
|
|
15140
15148
|
let t = [];
|
|
15141
15149
|
return new DOMParser().parseFromString(e, "text/html").querySelectorAll("h2, h3").forEach((e) => {
|
|
15142
15150
|
let n = e.textContent?.trim();
|
|
@@ -15147,9 +15155,9 @@ function Vw(e) {
|
|
|
15147
15155
|
level: r,
|
|
15148
15156
|
preferredId: e.id || void 0
|
|
15149
15157
|
});
|
|
15150
|
-
}),
|
|
15158
|
+
}), Kw(t);
|
|
15151
15159
|
}
|
|
15152
|
-
function
|
|
15160
|
+
function Uw(e) {
|
|
15153
15161
|
let t = [];
|
|
15154
15162
|
for (let n of e.split("\n")) {
|
|
15155
15163
|
let e = n.trim(), r = /^###(?=\s|$)(?:\s+(.+))?$/.exec(e);
|
|
@@ -15170,12 +15178,12 @@ function Hw(e) {
|
|
|
15170
15178
|
});
|
|
15171
15179
|
}
|
|
15172
15180
|
}
|
|
15173
|
-
return
|
|
15181
|
+
return Kw(t);
|
|
15174
15182
|
}
|
|
15175
|
-
function
|
|
15183
|
+
function Ww(e) {
|
|
15176
15184
|
return e.toLowerCase().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "");
|
|
15177
15185
|
}
|
|
15178
|
-
function
|
|
15186
|
+
function Gw(e, t) {
|
|
15179
15187
|
let n = e || "section";
|
|
15180
15188
|
if (!t.has(n)) return t.add(n), n;
|
|
15181
15189
|
let r = 2;
|
|
@@ -15183,38 +15191,38 @@ function Ww(e, t) {
|
|
|
15183
15191
|
let i = `${n}-${r}`;
|
|
15184
15192
|
return t.add(i), i;
|
|
15185
15193
|
}
|
|
15186
|
-
function
|
|
15194
|
+
function Kw(e) {
|
|
15187
15195
|
let t = /* @__PURE__ */ new Set();
|
|
15188
15196
|
return e.map(({ text: e, level: n, preferredId: r }) => ({
|
|
15189
|
-
id:
|
|
15197
|
+
id: Gw(r ?? Ww(e), t),
|
|
15190
15198
|
text: e,
|
|
15191
15199
|
level: n
|
|
15192
15200
|
}));
|
|
15193
15201
|
}
|
|
15194
15202
|
//#endregion
|
|
15195
15203
|
//#region src/components/DocumentationPane/DocumentationRenderer.tsx
|
|
15196
|
-
function
|
|
15204
|
+
function qw() {
|
|
15197
15205
|
return import("./asciidoctor-DH3iwiZV.js").then((e) => e.default());
|
|
15198
15206
|
}
|
|
15199
|
-
var
|
|
15200
|
-
function
|
|
15201
|
-
return
|
|
15207
|
+
var Jw = null;
|
|
15208
|
+
function Yw() {
|
|
15209
|
+
return Jw ||= qw(), Jw;
|
|
15202
15210
|
}
|
|
15203
|
-
async function
|
|
15204
|
-
let t = (await
|
|
15211
|
+
async function Xw(e) {
|
|
15212
|
+
let t = (await Yw()).convert(e, {
|
|
15205
15213
|
safe: "safe",
|
|
15206
15214
|
standalone: !1
|
|
15207
15215
|
});
|
|
15208
15216
|
return Rm.sanitize(t);
|
|
15209
15217
|
}
|
|
15210
|
-
function
|
|
15218
|
+
function Zw({ content: e, onHeadingsExtracted: t, onReady: n }) {
|
|
15211
15219
|
let [r, i] = V(null);
|
|
15212
15220
|
return Wt(() => {
|
|
15213
15221
|
let r = !1;
|
|
15214
|
-
return
|
|
15222
|
+
return Xw(e).then((e) => {
|
|
15215
15223
|
if (!r) {
|
|
15216
|
-
let r =
|
|
15217
|
-
i(r), t?.(
|
|
15224
|
+
let r = Qw(e);
|
|
15225
|
+
i(r), t?.(Hw(r)), n?.();
|
|
15218
15226
|
}
|
|
15219
15227
|
}).catch(() => {
|
|
15220
15228
|
r || (i("<p>Failed to render documentation.</p>"), t?.([]), n?.());
|
|
@@ -15227,22 +15235,22 @@ function Xw({ content: e, onHeadingsExtracted: t, onReady: n }) {
|
|
|
15227
15235
|
n
|
|
15228
15236
|
]), r === null ? null : /* @__PURE__ */ H(ke, { dangerouslySetInnerHTML: { __html: r } });
|
|
15229
15237
|
}
|
|
15230
|
-
function
|
|
15238
|
+
function Qw(e) {
|
|
15231
15239
|
let t = /* @__PURE__ */ new Set();
|
|
15232
15240
|
return e.replace(/<(h[23])(\s[^>]*)?>([\s\S]*?)<\/\1>/gi, (e, n, r, i) => {
|
|
15233
|
-
let a = i.replace(/<[^>]+>/g, "").trim(), o = r?.match(/id="([^"]+)"/)?.[1], s =
|
|
15241
|
+
let a = i.replace(/<[^>]+>/g, "").trim(), o = r?.match(/id="([^"]+)"/)?.[1], s = Gw(o ?? Ww(a), t);
|
|
15234
15242
|
return `<${n}${r?.replace(/\s*id="[^"]*"/, "") ?? ""} id="${s}">${i}</${n}>`;
|
|
15235
15243
|
});
|
|
15236
15244
|
}
|
|
15237
|
-
function
|
|
15238
|
-
return typeof e == "string" ? e : typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(
|
|
15245
|
+
function $w(e) {
|
|
15246
|
+
return typeof e == "string" ? e : typeof e == "number" ? String(e) : Array.isArray(e) ? e.map($w).join("") : e && typeof e == "object" && "props" in e ? $w(e.props.children) : "";
|
|
15239
15247
|
}
|
|
15240
|
-
function
|
|
15248
|
+
function eT(e, t, n) {
|
|
15241
15249
|
let r = e;
|
|
15242
15250
|
return ({ children: e, ...i }) => {
|
|
15243
15251
|
let a = t[n.current];
|
|
15244
15252
|
n.current += 1;
|
|
15245
|
-
let o = a?.id ??
|
|
15253
|
+
let o = a?.id ?? Ww($w(e));
|
|
15246
15254
|
return /* @__PURE__ */ H(r, {
|
|
15247
15255
|
...i,
|
|
15248
15256
|
id: o,
|
|
@@ -15250,12 +15258,12 @@ function $w(e, t, n) {
|
|
|
15250
15258
|
});
|
|
15251
15259
|
};
|
|
15252
15260
|
}
|
|
15253
|
-
var
|
|
15254
|
-
let a = z(() => t === "MARKDOWN" ?
|
|
15261
|
+
var tT = Ht(function({ content: e, language: t, className: n, onHeadingsExtracted: r, onReady: i }) {
|
|
15262
|
+
let a = z(() => t === "MARKDOWN" ? Uw(e) : [], [e, t]), o = z(() => {
|
|
15255
15263
|
let e = { current: 0 };
|
|
15256
15264
|
return {
|
|
15257
|
-
h2:
|
|
15258
|
-
h3:
|
|
15265
|
+
h2: eT("h2", a, e),
|
|
15266
|
+
h3: eT("h3", a, e)
|
|
15259
15267
|
};
|
|
15260
15268
|
}, [a]);
|
|
15261
15269
|
return Wt(() => {
|
|
@@ -15269,22 +15277,22 @@ var eT = Ht(function({ content: e, language: t, className: n, onHeadingsExtracte
|
|
|
15269
15277
|
role: "document",
|
|
15270
15278
|
"aria-label": "Policy documentation",
|
|
15271
15279
|
className: n,
|
|
15272
|
-
children: t === "ASCIIDOC" ? /* @__PURE__ */ H(
|
|
15280
|
+
children: t === "ASCIIDOC" ? /* @__PURE__ */ H(Zw, {
|
|
15273
15281
|
content: e,
|
|
15274
15282
|
onHeadingsExtracted: r,
|
|
15275
15283
|
onReady: i
|
|
15276
|
-
}) : /* @__PURE__ */ H(ke, { children: /* @__PURE__ */ H(
|
|
15277
|
-
remarkPlugins: [
|
|
15278
|
-
rehypePlugins: [
|
|
15284
|
+
}) : /* @__PURE__ */ H(ke, { children: /* @__PURE__ */ H(_x, {
|
|
15285
|
+
remarkPlugins: [Bw],
|
|
15286
|
+
rehypePlugins: [Bx],
|
|
15279
15287
|
components: o,
|
|
15280
15288
|
children: e
|
|
15281
15289
|
}) })
|
|
15282
15290
|
});
|
|
15283
|
-
}),
|
|
15284
|
-
function
|
|
15285
|
-
if (!(e <= 2)) return { paddingInlineStart: `${
|
|
15291
|
+
}), nT = .75, rT = .5;
|
|
15292
|
+
function iT(e) {
|
|
15293
|
+
if (!(e <= 2)) return { paddingInlineStart: `${rT + (e - 2) * nT}rem` };
|
|
15286
15294
|
}
|
|
15287
|
-
function
|
|
15295
|
+
function aT({ headings: e, activeId: t, onSelect: n }) {
|
|
15288
15296
|
return /* @__PURE__ */ H("ul", {
|
|
15289
15297
|
className: "space-y-0.5 p-2",
|
|
15290
15298
|
children: e.map((e) => /* @__PURE__ */ H("li", {
|
|
@@ -15293,14 +15301,14 @@ function iT({ headings: e, activeId: t, onSelect: n }) {
|
|
|
15293
15301
|
type: "button",
|
|
15294
15302
|
title: e.text,
|
|
15295
15303
|
onClick: () => n(e.id),
|
|
15296
|
-
style:
|
|
15304
|
+
style: iT(e.level),
|
|
15297
15305
|
className: I("w-full min-w-0 truncate rounded-md px-2 py-1.5 text-left text-xs transition-colors hover:bg-muted", t === e.id ? "bg-primary/10 font-medium text-primary" : "text-muted-foreground"),
|
|
15298
15306
|
children: e.text
|
|
15299
15307
|
})
|
|
15300
15308
|
}, e.id))
|
|
15301
15309
|
});
|
|
15302
15310
|
}
|
|
15303
|
-
function
|
|
15311
|
+
function oT({ headings: e, activeId: t, onSelect: n, compact: r = !1 }) {
|
|
15304
15312
|
let [a, o] = V(!1);
|
|
15305
15313
|
return e.length === 0 ? null : r ? /* @__PURE__ */ U(we, {
|
|
15306
15314
|
open: a,
|
|
@@ -15318,7 +15326,7 @@ function aT({ headings: e, activeId: t, onSelect: n, compact: r = !1 }) {
|
|
|
15318
15326
|
className: "w-56 min-w-0 p-0",
|
|
15319
15327
|
children: /* @__PURE__ */ H(Ne, {
|
|
15320
15328
|
className: "max-h-72 min-w-0",
|
|
15321
|
-
children: /* @__PURE__ */ H(
|
|
15329
|
+
children: /* @__PURE__ */ H(aT, {
|
|
15322
15330
|
headings: e,
|
|
15323
15331
|
activeId: t,
|
|
15324
15332
|
onSelect: (e) => {
|
|
@@ -15335,7 +15343,7 @@ function aT({ headings: e, activeId: t, onSelect: n, compact: r = !1 }) {
|
|
|
15335
15343
|
children: "Sections"
|
|
15336
15344
|
}), /* @__PURE__ */ H(Ne, {
|
|
15337
15345
|
className: "min-h-0 flex-1",
|
|
15338
|
-
children: /* @__PURE__ */ H(
|
|
15346
|
+
children: /* @__PURE__ */ H(aT, {
|
|
15339
15347
|
headings: e,
|
|
15340
15348
|
activeId: t,
|
|
15341
15349
|
onSelect: n
|
|
@@ -15345,8 +15353,8 @@ function aT({ headings: e, activeId: t, onSelect: n, compact: r = !1 }) {
|
|
|
15345
15353
|
}
|
|
15346
15354
|
//#endregion
|
|
15347
15355
|
//#region src/components/DocumentationPane/DocumentationPane.tsx
|
|
15348
|
-
var
|
|
15349
|
-
function
|
|
15356
|
+
var sT = 750;
|
|
15357
|
+
function cT({ policy: e, showHeader: t = !0 }) {
|
|
15350
15358
|
let { fetchPolicyDocumentation: n } = In(), [r, i] = V(null), [a, o] = V(!0), [s, c] = V(e.id), l = B(e), u = B(null), d = B(null), [f, p] = V([]), [m, h] = V(!1), [g, _] = V(!1), v = B(null);
|
|
15351
15359
|
Wt(() => {
|
|
15352
15360
|
l.current = e;
|
|
@@ -15374,7 +15382,7 @@ function sT({ policy: e, showHeader: t = !0 }) {
|
|
|
15374
15382
|
let e = v.current;
|
|
15375
15383
|
if (!e) return;
|
|
15376
15384
|
let t = () => {
|
|
15377
|
-
_(e.getBoundingClientRect().width <
|
|
15385
|
+
_(e.getBoundingClientRect().width < sT);
|
|
15378
15386
|
};
|
|
15379
15387
|
t();
|
|
15380
15388
|
let n = new ResizeObserver(() => {
|
|
@@ -15382,7 +15390,7 @@ function sT({ policy: e, showHeader: t = !0 }) {
|
|
|
15382
15390
|
});
|
|
15383
15391
|
return n.observe(e), () => n.disconnect();
|
|
15384
15392
|
}, []);
|
|
15385
|
-
let { activeId: y, setActiveId: b } =
|
|
15393
|
+
let { activeId: y, setActiveId: b } = Vw(u, f, { scrollLockRef: d });
|
|
15386
15394
|
Wt(() => {
|
|
15387
15395
|
let e = u.current;
|
|
15388
15396
|
if (!e) return;
|
|
@@ -15417,7 +15425,7 @@ function sT({ policy: e, showHeader: t = !0 }) {
|
|
|
15417
15425
|
children: [/* @__PURE__ */ H("p", {
|
|
15418
15426
|
className: "flex-1 text-xs font-medium tracking-wider text-muted-foreground uppercase",
|
|
15419
15427
|
children: "Documentation"
|
|
15420
|
-
}), g === !0 && f.length > 0 && /* @__PURE__ */ H(
|
|
15428
|
+
}), g === !0 && f.length > 0 && /* @__PURE__ */ H(oT, {
|
|
15421
15429
|
headings: f,
|
|
15422
15430
|
activeId: y,
|
|
15423
15431
|
onSelect: C,
|
|
@@ -15426,7 +15434,7 @@ function sT({ policy: e, showHeader: t = !0 }) {
|
|
|
15426
15434
|
}),
|
|
15427
15435
|
!t && g === !0 && f.length > 0 && /* @__PURE__ */ H("div", {
|
|
15428
15436
|
className: "flex shrink-0 items-center justify-end border-b px-2 py-1",
|
|
15429
|
-
children: /* @__PURE__ */ H(
|
|
15437
|
+
children: /* @__PURE__ */ H(oT, {
|
|
15430
15438
|
headings: f,
|
|
15431
15439
|
activeId: y,
|
|
15432
15440
|
onSelect: C,
|
|
@@ -15442,7 +15450,7 @@ function sT({ policy: e, showHeader: t = !0 }) {
|
|
|
15442
15450
|
T && /* @__PURE__ */ H(gp, {}),
|
|
15443
15451
|
w && r && /* @__PURE__ */ H("div", {
|
|
15444
15452
|
className: I("min-w-0 p-4", T && "hidden"),
|
|
15445
|
-
children: /* @__PURE__ */ H(
|
|
15453
|
+
children: /* @__PURE__ */ H(tT, {
|
|
15446
15454
|
content: r.content,
|
|
15447
15455
|
language: r.language,
|
|
15448
15456
|
onHeadingsExtracted: x,
|
|
@@ -15454,7 +15462,7 @@ function sT({ policy: e, showHeader: t = !0 }) {
|
|
|
15454
15462
|
children: /* @__PURE__ */ H(hp, { policyName: e.name })
|
|
15455
15463
|
})
|
|
15456
15464
|
]
|
|
15457
|
-
}), g === !1 && f.length > 0 && /* @__PURE__ */ H(
|
|
15465
|
+
}), g === !1 && f.length > 0 && /* @__PURE__ */ H(oT, {
|
|
15458
15466
|
headings: f,
|
|
15459
15467
|
activeId: y,
|
|
15460
15468
|
onSelect: C
|
|
@@ -15465,14 +15473,14 @@ function sT({ policy: e, showHeader: t = !0 }) {
|
|
|
15465
15473
|
}
|
|
15466
15474
|
//#endregion
|
|
15467
15475
|
//#region src/components/PolicyCatalog/PolicyCatalogCategoryFilter.tsx
|
|
15468
|
-
var
|
|
15469
|
-
function
|
|
15476
|
+
var lT = 15;
|
|
15477
|
+
function uT(e) {
|
|
15470
15478
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
15471
15479
|
}
|
|
15472
|
-
function
|
|
15473
|
-
return e.length === 0 ? "Category" : e.length === 1 && e[0].length <=
|
|
15480
|
+
function dT(e, t) {
|
|
15481
|
+
return e.length === 0 ? "Category" : e.length === 1 && e[0].length <= lT ? uT(e[0]) : e.length === 1 ? "1 category" : e.length === t.length ? "All categories" : `${e.length} categories`;
|
|
15474
15482
|
}
|
|
15475
|
-
function
|
|
15483
|
+
function fT({ categories: e, selectedCategories: t, categoryCounts: n, open: r, onOpenChange: i, onToggle: a, onClear: o }) {
|
|
15476
15484
|
return /* @__PURE__ */ U(we, {
|
|
15477
15485
|
open: r,
|
|
15478
15486
|
onOpenChange: i,
|
|
@@ -15486,7 +15494,7 @@ function dT({ categories: e, selectedCategories: t, categoryCounts: n, open: r,
|
|
|
15486
15494
|
/* @__PURE__ */ H(vt, { className: "size-3 shrink-0" }),
|
|
15487
15495
|
/* @__PURE__ */ H("span", {
|
|
15488
15496
|
className: "truncate",
|
|
15489
|
-
children:
|
|
15497
|
+
children: dT(t, e)
|
|
15490
15498
|
}),
|
|
15491
15499
|
/* @__PURE__ */ H(dt, { className: "size-3 shrink-0 opacity-70" })
|
|
15492
15500
|
]
|
|
@@ -15519,8 +15527,8 @@ function dT({ categories: e, selectedCategories: t, categoryCounts: n, open: r,
|
|
|
15519
15527
|
}
|
|
15520
15528
|
//#endregion
|
|
15521
15529
|
//#region src/components/PolicyCatalog/PolicyCatalogPane.tsx
|
|
15522
|
-
var
|
|
15523
|
-
function
|
|
15530
|
+
var pT = 280, mT = 400;
|
|
15531
|
+
function hT({ policies: e, sharedPolicyGroups: t = [], apiType: n, flowPhase: a, scope: o = "API", docsLayout: s = "detail", initialCategories: c, showHeader: l = !0, onAddPolicy: u, onClose: d, className: f }) {
|
|
15524
15532
|
let [p, m] = V(""), [h, g] = V(c ?? []), [_, v] = V(null), [y, b] = V(!1), x = B(null), S = z(() => rp(e, t, n, a, o), [
|
|
15525
15533
|
e,
|
|
15526
15534
|
t,
|
|
@@ -15595,7 +15603,7 @@ function mT({ policies: e, sharedPolicyGroups: t = [], apiType: n, flowPhase: a,
|
|
|
15595
15603
|
},
|
|
15596
15604
|
className: "h-8 pl-9"
|
|
15597
15605
|
})]
|
|
15598
|
-
}), C.length > 1 && /* @__PURE__ */ H(
|
|
15606
|
+
}), C.length > 1 && /* @__PURE__ */ H(fT, {
|
|
15599
15607
|
categories: C,
|
|
15600
15608
|
selectedCategories: h,
|
|
15601
15609
|
categoryCounts: w,
|
|
@@ -15643,13 +15651,13 @@ function mT({ policies: e, sharedPolicyGroups: t = [], apiType: n, flowPhase: a,
|
|
|
15643
15651
|
children: [
|
|
15644
15652
|
/* @__PURE__ */ H(je, {
|
|
15645
15653
|
defaultSize: "40%",
|
|
15646
|
-
minSize:
|
|
15654
|
+
minSize: pT,
|
|
15647
15655
|
children: ie
|
|
15648
15656
|
}),
|
|
15649
15657
|
/* @__PURE__ */ H(Ae, { withHandle: !0 }),
|
|
15650
15658
|
/* @__PURE__ */ H(je, {
|
|
15651
15659
|
defaultSize: "60%",
|
|
15652
|
-
minSize:
|
|
15660
|
+
minSize: mT,
|
|
15653
15661
|
children: /* @__PURE__ */ U("div", {
|
|
15654
15662
|
className: "flex h-full min-h-0 flex-col",
|
|
15655
15663
|
children: [/* @__PURE__ */ U(P, {
|
|
@@ -15667,7 +15675,7 @@ function mT({ policies: e, sharedPolicyGroups: t = [], apiType: n, flowPhase: a,
|
|
|
15667
15675
|
children: "Add to flow"
|
|
15668
15676
|
}) })
|
|
15669
15677
|
]
|
|
15670
|
-
}), /* @__PURE__ */ H(
|
|
15678
|
+
}), /* @__PURE__ */ H(cT, {
|
|
15671
15679
|
policy: D,
|
|
15672
15680
|
showHeader: !1
|
|
15673
15681
|
})]
|
|
@@ -15718,7 +15726,7 @@ function mT({ policies: e, sharedPolicyGroups: t = [], apiType: n, flowPhase: a,
|
|
|
15718
15726
|
className: I("min-h-0 flex-1", j && "hidden"),
|
|
15719
15727
|
children: ie
|
|
15720
15728
|
}),
|
|
15721
|
-
j && /* @__PURE__ */ H(
|
|
15729
|
+
j && /* @__PURE__ */ H(cT, {
|
|
15722
15730
|
policy: D,
|
|
15723
15731
|
showHeader: !1
|
|
15724
15732
|
})
|
|
@@ -15727,7 +15735,7 @@ function mT({ policies: e, sharedPolicyGroups: t = [], apiType: n, flowPhase: a,
|
|
|
15727
15735
|
}
|
|
15728
15736
|
//#endregion
|
|
15729
15737
|
//#region src/components/PolicyCatalog/PolicyQuickInsert.tsx
|
|
15730
|
-
function
|
|
15738
|
+
function gT({ policies: e, open: t, onOpenChange: n, onAddPolicy: r, onBrowseCatalog: a, children: o }) {
|
|
15731
15739
|
let s = z(() => cp(e), [e]);
|
|
15732
15740
|
function c(e) {
|
|
15733
15741
|
r(e), n(!1);
|
|
@@ -15782,10 +15790,10 @@ function hT({ policies: e, open: t, onOpenChange: n, onAddPolicy: r, onBrowseCat
|
|
|
15782
15790
|
}
|
|
15783
15791
|
//#endregion
|
|
15784
15792
|
//#region src/lib/step-config-defaults.ts
|
|
15785
|
-
function
|
|
15793
|
+
function _T(e) {
|
|
15786
15794
|
return e.configuration !== null && e.configuration !== void 0 && typeof e.configuration == "object" && "sharedPolicyGroupId" in e.configuration;
|
|
15787
15795
|
}
|
|
15788
|
-
function
|
|
15796
|
+
function vT(e, t) {
|
|
15789
15797
|
if (!e) return t ?? {};
|
|
15790
15798
|
let n = nt(e) ?? {};
|
|
15791
15799
|
return t == null ? n : typeof t == "object" && Object.keys(t).length === 0 ? {} : {
|
|
@@ -15795,8 +15803,8 @@ function _T(e, t) {
|
|
|
15795
15803
|
}
|
|
15796
15804
|
//#endregion
|
|
15797
15805
|
//#region src/hooks/use-policy-config.ts
|
|
15798
|
-
function
|
|
15799
|
-
let { fetchPolicySchema: a, apiType: o, readOnly: s } = In(), [c, l] = V(null), [u, d] = V(!0), [f, p] = V(null), m =
|
|
15806
|
+
function yT({ policy: e, step: t, flowPhase: n, onConfigChange: r, onValidityChange: i }) {
|
|
15807
|
+
let { fetchPolicySchema: a, apiType: o, readOnly: s } = In(), [c, l] = V(null), [u, d] = V(!0), [f, p] = V(null), m = _T(t), h = B(r);
|
|
15800
15808
|
h.current = r;
|
|
15801
15809
|
let g = B(i);
|
|
15802
15810
|
g.current = i, Wt(() => {
|
|
@@ -15823,7 +15831,7 @@ function vT({ policy: e, step: t, flowPhase: n, onConfigChange: r, onValidityCha
|
|
|
15823
15831
|
a,
|
|
15824
15832
|
m
|
|
15825
15833
|
]);
|
|
15826
|
-
let _ = z(() => c ? rt(c) : void 0, [c]), v = z(() =>
|
|
15834
|
+
let _ = z(() => c ? rt(c) : void 0, [c]), v = z(() => vT(c, t.configuration), [c, t.configuration]), y = ki({
|
|
15827
15835
|
resolver: _,
|
|
15828
15836
|
defaultValues: v,
|
|
15829
15837
|
mode: "all",
|
|
@@ -15870,9 +15878,9 @@ function vT({ policy: e, step: t, flowPhase: n, onConfigChange: r, onValidityCha
|
|
|
15870
15878
|
}
|
|
15871
15879
|
//#endregion
|
|
15872
15880
|
//#region src/components/PolicyConfig/PolicyConfigForm.tsx
|
|
15873
|
-
var
|
|
15874
|
-
function
|
|
15875
|
-
let l =
|
|
15881
|
+
var bT = ["PUBLISH", "SUBSCRIBE"];
|
|
15882
|
+
function xT({ schema: e, form: t, step: n, flowPhase: r, isSpg: i, disabled: a = !1, onDescriptionChange: o, onConditionChange: s, onMessageConditionChange: c }) {
|
|
15883
|
+
let l = bT.includes(r), u = In(), d = z(() => ({
|
|
15876
15884
|
...u,
|
|
15877
15885
|
flowPhase: r
|
|
15878
15886
|
}), [u, r]), f = !i && e;
|
|
@@ -15951,13 +15959,13 @@ function bT({ schema: e, form: t, step: n, flowPhase: r, isSpg: i, disabled: a =
|
|
|
15951
15959
|
}
|
|
15952
15960
|
//#endregion
|
|
15953
15961
|
//#region src/components/PolicyConfig/PolicyConfigPanel.tsx
|
|
15954
|
-
var
|
|
15955
|
-
function
|
|
15962
|
+
var ST = 280, CT = 400;
|
|
15963
|
+
function wT({ policy: r, step: a, flowPhase: o, isEnabled: s = !0, prerequisiteMessage: c, docsLayout: l = "none", showBackButton: u = !0, onClose: d, onRemove: f, onDuplicate: p, onToggleEnabled: m, onStepChange: h, onValidityChange: g, className: _ }) {
|
|
15956
15964
|
let { fetchPolicyDocumentation: v } = In();
|
|
15957
15965
|
Wt(() => {
|
|
15958
15966
|
v(r);
|
|
15959
15967
|
}, [r, v]);
|
|
15960
|
-
let { schema: y, loading: b, error: x, form: S, isSpg: C } =
|
|
15968
|
+
let { schema: y, loading: b, error: x, form: S, isSpg: C } = yT({
|
|
15961
15969
|
policy: r,
|
|
15962
15970
|
step: a,
|
|
15963
15971
|
flowPhase: o,
|
|
@@ -15965,7 +15973,7 @@ function CT({ policy: r, step: a, flowPhase: o, isEnabled: s = !0, prerequisiteM
|
|
|
15965
15973
|
h?.({ configuration: e });
|
|
15966
15974
|
}, [h]),
|
|
15967
15975
|
onValidityChange: g
|
|
15968
|
-
}), w = R((e) => h?.({ description: e || void 0 }), [h]), T = R((e) => h?.({ condition: e || void 0 }), [h]), E = R((e) => h?.({ messageCondition: e || void 0 }), [h]), D = /* @__PURE__ */ H(
|
|
15976
|
+
}), w = R((e) => h?.({ description: e || void 0 }), [h]), T = R((e) => h?.({ condition: e || void 0 }), [h]), E = R((e) => h?.({ messageCondition: e || void 0 }), [h]), D = /* @__PURE__ */ H(xT, {
|
|
15969
15977
|
schema: y,
|
|
15970
15978
|
form: S,
|
|
15971
15979
|
step: a,
|
|
@@ -16111,7 +16119,7 @@ function CT({ policy: r, step: a, flowPhase: o, isEnabled: s = !0, prerequisiteM
|
|
|
16111
16119
|
/* @__PURE__ */ H(Je, {
|
|
16112
16120
|
value: "documentation",
|
|
16113
16121
|
className: "min-h-0 flex-1",
|
|
16114
|
-
children: /* @__PURE__ */ H(
|
|
16122
|
+
children: /* @__PURE__ */ H(cT, {
|
|
16115
16123
|
policy: r,
|
|
16116
16124
|
showHeader: !1
|
|
16117
16125
|
})
|
|
@@ -16125,7 +16133,7 @@ function CT({ policy: r, step: a, flowPhase: o, isEnabled: s = !0, prerequisiteM
|
|
|
16125
16133
|
children: [
|
|
16126
16134
|
/* @__PURE__ */ H(je, {
|
|
16127
16135
|
defaultSize: "50%",
|
|
16128
|
-
minSize:
|
|
16136
|
+
minSize: ST,
|
|
16129
16137
|
children: /* @__PURE__ */ H("div", {
|
|
16130
16138
|
className: "flex h-full min-h-0 flex-col overflow-auto",
|
|
16131
16139
|
children: ee
|
|
@@ -16134,8 +16142,8 @@ function CT({ policy: r, step: a, flowPhase: o, isEnabled: s = !0, prerequisiteM
|
|
|
16134
16142
|
/* @__PURE__ */ H(Ae, { withHandle: !0 }),
|
|
16135
16143
|
/* @__PURE__ */ H(je, {
|
|
16136
16144
|
defaultSize: "50%",
|
|
16137
|
-
minSize:
|
|
16138
|
-
children: /* @__PURE__ */ H(
|
|
16145
|
+
minSize: CT,
|
|
16146
|
+
children: /* @__PURE__ */ H(cT, {
|
|
16139
16147
|
policy: r,
|
|
16140
16148
|
showHeader: !1
|
|
16141
16149
|
})
|
|
@@ -16149,15 +16157,15 @@ function CT({ policy: r, step: a, flowPhase: o, isEnabled: s = !0, prerequisiteM
|
|
|
16149
16157
|
}
|
|
16150
16158
|
//#endregion
|
|
16151
16159
|
//#region src/hooks/use-container-breakpoints.ts
|
|
16152
|
-
var
|
|
16153
|
-
function
|
|
16160
|
+
var TT = 1100;
|
|
16161
|
+
function ET() {
|
|
16154
16162
|
let [e, t] = V({ isSideBySide: !1 }), n = B(null), r = R(() => {
|
|
16155
16163
|
n.current &&= (n.current.disconnect(), null);
|
|
16156
16164
|
}, []);
|
|
16157
16165
|
return Wt(() => r, [r]), [R((e) => {
|
|
16158
16166
|
if (r(), !e) return;
|
|
16159
16167
|
let i = () => {
|
|
16160
|
-
let n = e.clientWidth >=
|
|
16168
|
+
let n = e.clientWidth >= TT;
|
|
16161
16169
|
t((e) => e.isSideBySide === n ? e : { isSideBySide: n });
|
|
16162
16170
|
};
|
|
16163
16171
|
i(), n.current = new ResizeObserver(i), n.current.observe(e);
|
|
@@ -16165,7 +16173,7 @@ function TT() {
|
|
|
16165
16173
|
}
|
|
16166
16174
|
//#endregion
|
|
16167
16175
|
//#region src/lib/flow-groups-reducer.ts
|
|
16168
|
-
var
|
|
16176
|
+
var DT = {
|
|
16169
16177
|
REQUEST: "request",
|
|
16170
16178
|
RESPONSE: "response",
|
|
16171
16179
|
PUBLISH: "publish",
|
|
@@ -16173,10 +16181,10 @@ var ET = {
|
|
|
16173
16181
|
ENTRYPOINT_CONNECT: "entrypointConnect",
|
|
16174
16182
|
INTERACT: "interact"
|
|
16175
16183
|
};
|
|
16176
|
-
function
|
|
16177
|
-
return e[
|
|
16184
|
+
function OT(e, t) {
|
|
16185
|
+
return e[DT[t]] ?? [];
|
|
16178
16186
|
}
|
|
16179
|
-
function
|
|
16187
|
+
function kT(e, t, n) {
|
|
16180
16188
|
return e.map((e) => ({
|
|
16181
16189
|
...e,
|
|
16182
16190
|
flows: e.flows.map((e) => e._id === t ? {
|
|
@@ -16186,7 +16194,7 @@ function OT(e, t, n) {
|
|
|
16186
16194
|
} : e)
|
|
16187
16195
|
}));
|
|
16188
16196
|
}
|
|
16189
|
-
function
|
|
16197
|
+
function AT(e, t) {
|
|
16190
16198
|
switch (t.type) {
|
|
16191
16199
|
case "ADD_FLOW": return e.map((e) => e._id === t.groupId ? {
|
|
16192
16200
|
...e,
|
|
@@ -16220,9 +16228,9 @@ function kT(e, t) {
|
|
|
16220
16228
|
...e,
|
|
16221
16229
|
flows: e.flows.filter((e) => e._id !== t.flowId)
|
|
16222
16230
|
} : e);
|
|
16223
|
-
case "TOGGLE_FLOW_ENABLED": return
|
|
16231
|
+
case "TOGGLE_FLOW_ENABLED": return kT(e, t.flowId, t.enabled);
|
|
16224
16232
|
case "ADD_STEP": {
|
|
16225
|
-
let n =
|
|
16233
|
+
let n = DT[t.phase];
|
|
16226
16234
|
return e.map((e) => ({
|
|
16227
16235
|
...e,
|
|
16228
16236
|
flows: e.flows.map((e) => e._id === t.flowId ? {
|
|
@@ -16233,7 +16241,7 @@ function kT(e, t) {
|
|
|
16233
16241
|
}));
|
|
16234
16242
|
}
|
|
16235
16243
|
case "REMOVE_STEP": {
|
|
16236
|
-
let n =
|
|
16244
|
+
let n = DT[t.phase];
|
|
16237
16245
|
return e.map((e) => ({
|
|
16238
16246
|
...e,
|
|
16239
16247
|
flows: e.flows.map((e) => {
|
|
@@ -16248,7 +16256,7 @@ function kT(e, t) {
|
|
|
16248
16256
|
}));
|
|
16249
16257
|
}
|
|
16250
16258
|
case "DUPLICATE_STEP": {
|
|
16251
|
-
let n =
|
|
16259
|
+
let n = DT[t.phase];
|
|
16252
16260
|
return e.map((e) => ({
|
|
16253
16261
|
...e,
|
|
16254
16262
|
flows: e.flows.map((e) => {
|
|
@@ -16266,7 +16274,7 @@ function kT(e, t) {
|
|
|
16266
16274
|
}));
|
|
16267
16275
|
}
|
|
16268
16276
|
case "TOGGLE_STEP_ENABLED": {
|
|
16269
|
-
let n =
|
|
16277
|
+
let n = DT[t.phase];
|
|
16270
16278
|
return e.map((e) => ({
|
|
16271
16279
|
...e,
|
|
16272
16280
|
flows: e.flows.map((e) => {
|
|
@@ -16284,7 +16292,7 @@ function kT(e, t) {
|
|
|
16284
16292
|
}));
|
|
16285
16293
|
}
|
|
16286
16294
|
case "MOVE_STEP": {
|
|
16287
|
-
let n =
|
|
16295
|
+
let n = DT[t.phase];
|
|
16288
16296
|
return e.map((e) => ({
|
|
16289
16297
|
...e,
|
|
16290
16298
|
flows: e.flows.map((e) => {
|
|
@@ -16299,7 +16307,7 @@ function kT(e, t) {
|
|
|
16299
16307
|
}));
|
|
16300
16308
|
}
|
|
16301
16309
|
case "REORDER_STEPS": {
|
|
16302
|
-
let n =
|
|
16310
|
+
let n = DT[t.phase];
|
|
16303
16311
|
return t.oldIndex === t.newIndex ? e : e.map((e) => ({
|
|
16304
16312
|
...e,
|
|
16305
16313
|
flows: e.flows.map((e) => {
|
|
@@ -16314,7 +16322,7 @@ function kT(e, t) {
|
|
|
16314
16322
|
}));
|
|
16315
16323
|
}
|
|
16316
16324
|
case "UPDATE_STEP": {
|
|
16317
|
-
let n =
|
|
16325
|
+
let n = DT[t.phase];
|
|
16318
16326
|
return e.map((e) => ({
|
|
16319
16327
|
...e,
|
|
16320
16328
|
flows: e.flows.map((e) => {
|
|
@@ -16337,27 +16345,27 @@ function kT(e, t) {
|
|
|
16337
16345
|
}
|
|
16338
16346
|
//#endregion
|
|
16339
16347
|
//#region src/lib/flow-structural-key.ts
|
|
16340
|
-
var
|
|
16341
|
-
function jT(e) {
|
|
16342
|
-
return `${e._id}:${AT(e.request)}|${AT(e.response)}|${AT(e.entrypointConnect)}|${AT(e.interact)}|${AT(e.publish)}|${AT(e.subscribe)}`;
|
|
16343
|
-
}
|
|
16348
|
+
var jT = (e) => (e ?? []).map((e) => e.policy ?? "?").join(",");
|
|
16344
16349
|
function MT(e) {
|
|
16345
|
-
return e.
|
|
16350
|
+
return `${e._id}:${jT(e.request)}|${jT(e.response)}|${jT(e.entrypointConnect)}|${jT(e.interact)}|${jT(e.publish)}|${jT(e.subscribe)}`;
|
|
16346
16351
|
}
|
|
16347
16352
|
function NT(e) {
|
|
16353
|
+
return e.flatMap((e) => e.flows.map(MT)).join("||");
|
|
16354
|
+
}
|
|
16355
|
+
function PT(e) {
|
|
16348
16356
|
return e.map((e) => {
|
|
16349
|
-
let t = e.flows.map(
|
|
16357
|
+
let t = e.flows.map(MT).join("|");
|
|
16350
16358
|
return `${e._id}:${e.kind}:${e.sourceId ?? ""}:${t}`;
|
|
16351
16359
|
}).join("||");
|
|
16352
16360
|
}
|
|
16353
16361
|
//#endregion
|
|
16354
16362
|
//#region src/hooks/use-flow-state.ts
|
|
16355
|
-
function
|
|
16356
|
-
let [t, n] = Kt(
|
|
16363
|
+
function FT(e) {
|
|
16364
|
+
let [t, n] = Kt(AT, e), r = B(e);
|
|
16357
16365
|
Gt(() => {
|
|
16358
16366
|
r.current = e;
|
|
16359
16367
|
}, [e]);
|
|
16360
|
-
let i =
|
|
16368
|
+
let i = PT(e), a = B(i);
|
|
16361
16369
|
return Wt(() => {
|
|
16362
16370
|
a.current !== i && (a.current = i, n({
|
|
16363
16371
|
type: "RESET",
|
|
@@ -16367,24 +16375,24 @@ function PT(e) {
|
|
|
16367
16375
|
}
|
|
16368
16376
|
//#endregion
|
|
16369
16377
|
//#region src/lib/save.ts
|
|
16370
|
-
function
|
|
16378
|
+
function IT(e) {
|
|
16371
16379
|
let { _id: t, _hasChanged: n, _parentFlowGroupName: r, ...i } = e;
|
|
16372
16380
|
return i;
|
|
16373
16381
|
}
|
|
16374
|
-
function
|
|
16382
|
+
function LT(e, t) {
|
|
16375
16383
|
return t.flows.some((e) => e._hasChanged) ? !0 : e ? e.flows.length === t.flows.length ? e.flows.some((e, n) => e._id !== t.flows[n]._id) : !0 : t.flows.length > 0;
|
|
16376
16384
|
}
|
|
16377
|
-
function
|
|
16385
|
+
function RT(e, t) {
|
|
16378
16386
|
return e.mode !== t.mode || !!e.matchRequired != !!t.matchRequired;
|
|
16379
16387
|
}
|
|
16380
|
-
function
|
|
16381
|
-
let i = {}, a = !1, o = new Map(e.map((e) => [e._id, e])), s = t.filter((e) => e.kind !== "plan"), c = e.filter((e) => e.kind !== "plan"), l = s.some((e) =>
|
|
16382
|
-
(l || d) && (i.commonFlows = s.flatMap((e) => e.flows.map(
|
|
16388
|
+
function zT({ initialGroups: e, currentGroups: t, initialFlowExecution: n, currentFlowExecution: r }) {
|
|
16389
|
+
let i = {}, a = !1, o = new Map(e.map((e) => [e._id, e])), s = t.filter((e) => e.kind !== "plan"), c = e.filter((e) => e.kind !== "plan"), l = s.some((e) => LT(o.get(e._id), e)), u = new Set(s.map((e) => e._id)), d = c.some((e) => !u.has(e._id));
|
|
16390
|
+
(l || d) && (i.commonFlows = s.flatMap((e) => e.flows.map(IT)), a = !0);
|
|
16383
16391
|
let f = [], p = t.filter((e) => e.kind === "plan");
|
|
16384
|
-
for (let e of p)
|
|
16392
|
+
for (let e of p) LT(o.get(e._id), e) && f.push({
|
|
16385
16393
|
id: e.sourceId ?? e._id,
|
|
16386
16394
|
name: e.name,
|
|
16387
|
-
flows: e.flows.map(
|
|
16395
|
+
flows: e.flows.map(IT)
|
|
16388
16396
|
});
|
|
16389
16397
|
let m = new Set(p.map((e) => e._id));
|
|
16390
16398
|
for (let t of e.filter((e) => e.kind === "plan")) m.has(t._id) || f.push({
|
|
@@ -16392,21 +16400,21 @@ function RT({ initialGroups: e, currentGroups: t, initialFlowExecution: n, curre
|
|
|
16392
16400
|
name: t.name,
|
|
16393
16401
|
flows: []
|
|
16394
16402
|
});
|
|
16395
|
-
return f.length > 0 && (i.plansToUpdate = f, a = !0),
|
|
16396
|
-
}
|
|
16397
|
-
function zT(e) {
|
|
16398
|
-
return RT(e) !== null;
|
|
16403
|
+
return f.length > 0 && (i.plansToUpdate = f, a = !0), RT(n, r) && (i.flowExecution = r, a = !0), a ? i : null;
|
|
16399
16404
|
}
|
|
16400
16405
|
function BT(e) {
|
|
16406
|
+
return zT(e) !== null;
|
|
16407
|
+
}
|
|
16408
|
+
function VT(e) {
|
|
16401
16409
|
let t = 0;
|
|
16402
16410
|
for (let n of e.values()) n || t++;
|
|
16403
16411
|
return t;
|
|
16404
16412
|
}
|
|
16405
16413
|
//#endregion
|
|
16406
16414
|
//#region src/hooks/use-save.ts
|
|
16407
|
-
var
|
|
16408
|
-
function
|
|
16409
|
-
let [o, s] = V(!1), [c, l] = V(null), u = B(null), d = B(0), f = z(() =>
|
|
16415
|
+
var HT = 5e3;
|
|
16416
|
+
function UT({ initialGroups: e, currentGroups: t, initialFlowExecution: n, currentFlowExecution: r, stepValidity: i, onSave: a }) {
|
|
16417
|
+
let [o, s] = V(!1), [c, l] = V(null), u = B(null), d = B(0), f = z(() => VT(i), [i]), p = z(() => BT({
|
|
16410
16418
|
initialGroups: e,
|
|
16411
16419
|
currentGroups: t,
|
|
16412
16420
|
initialFlowExecution: n,
|
|
@@ -16430,7 +16438,7 @@ function HT({ initialGroups: e, currentGroups: t, initialFlowExecution: n, curre
|
|
|
16430
16438
|
invalidStepCount: f,
|
|
16431
16439
|
triggerSave: R(() => {
|
|
16432
16440
|
if (o || f > 0) return;
|
|
16433
|
-
let i =
|
|
16441
|
+
let i = zT({
|
|
16434
16442
|
initialGroups: e,
|
|
16435
16443
|
currentGroups: t,
|
|
16436
16444
|
initialFlowExecution: n,
|
|
@@ -16442,7 +16450,7 @@ function HT({ initialGroups: e, currentGroups: t, initialFlowExecution: n, curre
|
|
|
16442
16450
|
let p = () => {
|
|
16443
16451
|
d.current === c && (u.current && clearTimeout(u.current), u.current = setTimeout(() => {
|
|
16444
16452
|
s(!1), u.current = null;
|
|
16445
|
-
},
|
|
16453
|
+
}, HT));
|
|
16446
16454
|
};
|
|
16447
16455
|
try {
|
|
16448
16456
|
let e = a(i);
|
|
@@ -16466,15 +16474,15 @@ function HT({ initialGroups: e, currentGroups: t, initialFlowExecution: n, curre
|
|
|
16466
16474
|
}
|
|
16467
16475
|
//#endregion
|
|
16468
16476
|
//#region src/lib/step-selection.ts
|
|
16469
|
-
function
|
|
16477
|
+
function WT(e, t, n) {
|
|
16470
16478
|
return t === n ? e : e === t ? n : t < n && e > t && e <= n ? e - 1 : t > n && e >= n && e < t ? e + 1 : e;
|
|
16471
16479
|
}
|
|
16472
|
-
function
|
|
16480
|
+
function GT(e, t, n) {
|
|
16473
16481
|
return e === t ? n : e === n ? t : e;
|
|
16474
16482
|
}
|
|
16475
16483
|
//#endregion
|
|
16476
16484
|
//#region src/hooks/use-step-actions.ts
|
|
16477
|
-
function
|
|
16485
|
+
function KT(e, t, n, r) {
|
|
16478
16486
|
return {
|
|
16479
16487
|
handleStepClick: R((t, n) => {
|
|
16480
16488
|
e && r({
|
|
@@ -16524,7 +16532,7 @@ function GT(e, t, n, r) {
|
|
|
16524
16532
|
oldIndex: a,
|
|
16525
16533
|
newIndex: o
|
|
16526
16534
|
}), !t || t.flowId !== e._id || t.phase !== i)) return;
|
|
16527
|
-
let s =
|
|
16535
|
+
let s = WT(t.stepIndex, a, o);
|
|
16528
16536
|
s !== t.stepIndex && r({
|
|
16529
16537
|
...t,
|
|
16530
16538
|
stepIndex: s
|
|
@@ -16539,15 +16547,15 @@ function GT(e, t, n, r) {
|
|
|
16539
16547
|
}
|
|
16540
16548
|
//#endregion
|
|
16541
16549
|
//#region src/lib/flow-phases.ts
|
|
16542
|
-
var
|
|
16550
|
+
var qT = new Set([
|
|
16543
16551
|
"LLM_PROXY",
|
|
16544
16552
|
"MCP_PROXY",
|
|
16545
16553
|
"A2A_PROXY"
|
|
16546
16554
|
]);
|
|
16547
|
-
function
|
|
16548
|
-
return
|
|
16555
|
+
function JT(e) {
|
|
16556
|
+
return qT.has(e) ? "PROXY" : e;
|
|
16549
16557
|
}
|
|
16550
|
-
var
|
|
16558
|
+
var YT = {
|
|
16551
16559
|
"REQUEST:PROXY": "Policies applied to the incoming client request before it reaches the backend.",
|
|
16552
16560
|
"RESPONSE:PROXY": "Policies applied to the backend response before it is returned to the client.",
|
|
16553
16561
|
"REQUEST:MESSAGE": "Policies applied to the incoming client request before it reaches the backend.",
|
|
@@ -16558,21 +16566,21 @@ var JT = {
|
|
|
16558
16566
|
"INTERACT:NATIVE": "Policies applied on all interactions between the client and the Gateway.",
|
|
16559
16567
|
"PUBLISH:NATIVE": "Policies applied when publishing messages to the broker.",
|
|
16560
16568
|
"SUBSCRIBE:NATIVE": "Policies applied when consuming messages from the broker."
|
|
16561
|
-
},
|
|
16569
|
+
}, XT = {
|
|
16562
16570
|
REQUEST: "Request",
|
|
16563
16571
|
RESPONSE: "Response",
|
|
16564
16572
|
ENTRYPOINT_CONNECT: "Connect",
|
|
16565
16573
|
INTERACT: "Interact",
|
|
16566
16574
|
PUBLISH: "Publish",
|
|
16567
16575
|
SUBSCRIBE: "Subscribe"
|
|
16568
|
-
},
|
|
16576
|
+
}, ZT = {
|
|
16569
16577
|
REQUEST: "Request Phase",
|
|
16570
16578
|
RESPONSE: "Response Phase",
|
|
16571
16579
|
ENTRYPOINT_CONNECT: "Connect Phase",
|
|
16572
16580
|
INTERACT: "Interact Phase",
|
|
16573
16581
|
PUBLISH: "Publish Phase",
|
|
16574
16582
|
SUBSCRIBE: "Subscribe Phase"
|
|
16575
|
-
},
|
|
16583
|
+
}, QT = {
|
|
16576
16584
|
"REQUEST:PROXY": {
|
|
16577
16585
|
startConnectorRole: "entrypoint",
|
|
16578
16586
|
endConnectorRole: "endpoint",
|
|
@@ -16643,7 +16651,7 @@ var JT = {
|
|
|
16643
16651
|
endActorLabel: "Subscriber",
|
|
16644
16652
|
connectorFilterMode: "SUBSCRIBE"
|
|
16645
16653
|
}
|
|
16646
|
-
},
|
|
16654
|
+
}, $T = {
|
|
16647
16655
|
"REQUEST:PROXY": {
|
|
16648
16656
|
endActorLabel: "Gateway",
|
|
16649
16657
|
description: "Policies applied to the incoming client request before it reaches any API."
|
|
@@ -16653,13 +16661,13 @@ var JT = {
|
|
|
16653
16661
|
description: "Policies applied to every API response before it is returned to the client."
|
|
16654
16662
|
}
|
|
16655
16663
|
};
|
|
16656
|
-
function
|
|
16657
|
-
let r = `${e}:${
|
|
16664
|
+
function eE(e, t, n = "API") {
|
|
16665
|
+
let r = `${e}:${JT(t)}`, i = QT[r];
|
|
16658
16666
|
if (!i) throw Error(`No phase direction config for ${r}`);
|
|
16659
16667
|
let a = {
|
|
16660
16668
|
phase: e,
|
|
16661
|
-
title:
|
|
16662
|
-
description:
|
|
16669
|
+
title: ZT[e],
|
|
16670
|
+
description: YT[r] ?? "",
|
|
16663
16671
|
startConnectorRole: i.startConnectorRole,
|
|
16664
16672
|
endConnectorRole: i.endConnectorRole,
|
|
16665
16673
|
startActorLabel: i.startActorLabel,
|
|
@@ -16669,17 +16677,17 @@ function $T(e, t, n = "API") {
|
|
|
16669
16677
|
};
|
|
16670
16678
|
return n === "ORGANIZATION" ? {
|
|
16671
16679
|
...a,
|
|
16672
|
-
|
|
16680
|
+
...$T[r]
|
|
16673
16681
|
} : a;
|
|
16674
16682
|
}
|
|
16675
|
-
var
|
|
16683
|
+
var tE = {
|
|
16676
16684
|
type: "flat",
|
|
16677
16685
|
phases: ["REQUEST", "RESPONSE"]
|
|
16678
|
-
},
|
|
16679
|
-
A2A_PROXY:
|
|
16680
|
-
LLM_PROXY:
|
|
16681
|
-
MCP_PROXY:
|
|
16682
|
-
PROXY:
|
|
16686
|
+
}, nE = {
|
|
16687
|
+
A2A_PROXY: tE,
|
|
16688
|
+
LLM_PROXY: tE,
|
|
16689
|
+
MCP_PROXY: tE,
|
|
16690
|
+
PROXY: tE,
|
|
16683
16691
|
MESSAGE: {
|
|
16684
16692
|
type: "tabbed",
|
|
16685
16693
|
tabs: [{
|
|
@@ -16701,19 +16709,19 @@ var eE = {
|
|
|
16701
16709
|
}]
|
|
16702
16710
|
}
|
|
16703
16711
|
};
|
|
16704
|
-
function nE(e) {
|
|
16705
|
-
return tE[e];
|
|
16706
|
-
}
|
|
16707
16712
|
function rE(e) {
|
|
16708
|
-
|
|
16713
|
+
return nE[e];
|
|
16714
|
+
}
|
|
16715
|
+
function iE(e) {
|
|
16716
|
+
let t = rE(e);
|
|
16709
16717
|
return t.type === "flat" ? t.phases : t.tabs.flatMap((e) => e.phases);
|
|
16710
16718
|
}
|
|
16711
16719
|
//#endregion
|
|
16712
16720
|
//#region src/lib/step-config-validation.ts
|
|
16713
|
-
async function
|
|
16714
|
-
if (
|
|
16721
|
+
async function aE(e, t, n) {
|
|
16722
|
+
if (_T(t)) return !0;
|
|
16715
16723
|
try {
|
|
16716
|
-
let r = await n(e), i =
|
|
16724
|
+
let r = await n(e), i = vT(r, t.configuration), a = await rt(r)(i, void 0, {
|
|
16717
16725
|
criteriaMode: "all",
|
|
16718
16726
|
fields: {}
|
|
16719
16727
|
});
|
|
@@ -16724,17 +16732,17 @@ async function iE(e, t, n) {
|
|
|
16724
16732
|
}
|
|
16725
16733
|
//#endregion
|
|
16726
16734
|
//#region src/lib/step-matching.ts
|
|
16727
|
-
var
|
|
16728
|
-
function
|
|
16735
|
+
var oE = "POLICY_", sE = "SHARED_POLICY_GROUP_", cE = "The Gateway will throw an error on deployment.", lE = "The Gateway will ignore this step.";
|
|
16736
|
+
function uE(e, t) {
|
|
16729
16737
|
let n = e.map((e) => ({
|
|
16730
|
-
_id: `${
|
|
16738
|
+
_id: `${oE}${e.id}`,
|
|
16731
16739
|
policyId: e.id,
|
|
16732
16740
|
name: e.name,
|
|
16733
16741
|
icon: e.icon,
|
|
16734
16742
|
category: e.category,
|
|
16735
16743
|
type: "policy"
|
|
16736
16744
|
})), r = t.map((e) => ({
|
|
16737
|
-
_id: `${
|
|
16745
|
+
_id: `${sE}${e.id}`,
|
|
16738
16746
|
policyId: e.policyId,
|
|
16739
16747
|
name: e.name,
|
|
16740
16748
|
category: void 0,
|
|
@@ -16742,22 +16750,22 @@ function lE(e, t) {
|
|
|
16742
16750
|
}));
|
|
16743
16751
|
return [...n, ...r];
|
|
16744
16752
|
}
|
|
16745
|
-
function
|
|
16753
|
+
function dE(e) {
|
|
16746
16754
|
return e.configuration !== null && e.configuration !== void 0 && typeof e.configuration == "object" && "sharedPolicyGroupId" in e.configuration;
|
|
16747
16755
|
}
|
|
16748
|
-
function
|
|
16749
|
-
if (
|
|
16756
|
+
function fE(e) {
|
|
16757
|
+
if (dE(e)) return e.configuration.sharedPolicyGroupId;
|
|
16750
16758
|
}
|
|
16751
|
-
function
|
|
16752
|
-
let n =
|
|
16759
|
+
function pE(e, t) {
|
|
16760
|
+
let n = fE(e);
|
|
16753
16761
|
if (n) {
|
|
16754
|
-
let e = `${
|
|
16762
|
+
let e = `${sE}${n}`;
|
|
16755
16763
|
return t.find((t) => t._id === e) ?? null;
|
|
16756
16764
|
}
|
|
16757
16765
|
return e.policy ? t.find((t) => t.type === "policy" && t.policyId === e.policy) ?? null : null;
|
|
16758
16766
|
}
|
|
16759
|
-
function
|
|
16760
|
-
let r =
|
|
16767
|
+
function mE(e, t, n) {
|
|
16768
|
+
let r = pE(e, n);
|
|
16761
16769
|
return r ? {
|
|
16762
16770
|
step: e,
|
|
16763
16771
|
index: t,
|
|
@@ -16768,13 +16776,13 @@ function pE(e, t, n) {
|
|
|
16768
16776
|
index: t,
|
|
16769
16777
|
policy: null,
|
|
16770
16778
|
unresolved: !0,
|
|
16771
|
-
unresolvedMessage:
|
|
16779
|
+
unresolvedMessage: fE(e) ? lE : cE
|
|
16772
16780
|
};
|
|
16773
16781
|
}
|
|
16774
|
-
function mE(e, t, n) {
|
|
16775
|
-
return DT(e, t).map((e, t) => pE(e, t, n));
|
|
16776
|
-
}
|
|
16777
16782
|
function hE(e, t, n) {
|
|
16783
|
+
return OT(e, t).map((e, t) => mE(e, t, n));
|
|
16784
|
+
}
|
|
16785
|
+
function gE(e, t, n) {
|
|
16778
16786
|
if (e.type === "policy") return { policy: t.find((t) => t.id === e.policyId) ?? {
|
|
16779
16787
|
id: e.policyId,
|
|
16780
16788
|
name: e.name,
|
|
@@ -16794,18 +16802,18 @@ function hE(e, t, n) {
|
|
|
16794
16802
|
}
|
|
16795
16803
|
//#endregion
|
|
16796
16804
|
//#region src/hooks/use-step-validity-scan.ts
|
|
16797
|
-
function
|
|
16798
|
-
let s = z(() =>
|
|
16805
|
+
function _E(e, t, n, r, i, a, o) {
|
|
16806
|
+
let s = z(() => NT(e), [e]), c = B(e);
|
|
16799
16807
|
Wt(() => {
|
|
16800
16808
|
c.current = e;
|
|
16801
16809
|
}), Wt(() => {
|
|
16802
16810
|
let e = !1;
|
|
16803
16811
|
async function s() {
|
|
16804
|
-
let s =
|
|
16812
|
+
let s = iE(t), l = c.current, u = [];
|
|
16805
16813
|
for (let e of l) for (let t of e.flows) for (let e of s) {
|
|
16806
|
-
let o =
|
|
16814
|
+
let o = OT(t, e);
|
|
16807
16815
|
for (let s = 0; s < o.length; s++) {
|
|
16808
|
-
let c = o[s], l = `${t._id}:${e}:${s}`, d =
|
|
16816
|
+
let c = o[s], l = `${t._id}:${e}:${s}`, d = mE(c, s, n);
|
|
16809
16817
|
if (d.unresolved || !d.policy) {
|
|
16810
16818
|
u.push({
|
|
16811
16819
|
key: l,
|
|
@@ -16813,10 +16821,10 @@ function gE(e, t, n, r, i, a, o) {
|
|
|
16813
16821
|
});
|
|
16814
16822
|
continue;
|
|
16815
16823
|
}
|
|
16816
|
-
let { policy: f } =
|
|
16824
|
+
let { policy: f } = gE(d.policy, r, i);
|
|
16817
16825
|
u.push({
|
|
16818
16826
|
key: l,
|
|
16819
|
-
promise:
|
|
16827
|
+
promise: aE(f, c, a)
|
|
16820
16828
|
});
|
|
16821
16829
|
}
|
|
16822
16830
|
}
|
|
@@ -16849,8 +16857,8 @@ function gE(e, t, n, r, i, a, o) {
|
|
|
16849
16857
|
}
|
|
16850
16858
|
//#endregion
|
|
16851
16859
|
//#region src/components/FlowInfoBar/FlowInfoBar.tsx
|
|
16852
|
-
var
|
|
16853
|
-
function
|
|
16860
|
+
var vE = "font-[ui-monospace,monospace]";
|
|
16861
|
+
function yE({ name: e }) {
|
|
16854
16862
|
let t = B(null), [n, r] = V(!1), i = /* @__PURE__ */ H("span", {
|
|
16855
16863
|
ref: t,
|
|
16856
16864
|
onMouseEnter: R(() => {
|
|
@@ -16872,13 +16880,13 @@ function vE({ name: e }) {
|
|
|
16872
16880
|
})
|
|
16873
16881
|
})] }) : i;
|
|
16874
16882
|
}
|
|
16875
|
-
function
|
|
16883
|
+
function bE() {
|
|
16876
16884
|
return /* @__PURE__ */ H(Be, {
|
|
16877
16885
|
orientation: "vertical",
|
|
16878
16886
|
className: "shrink-0"
|
|
16879
16887
|
});
|
|
16880
16888
|
}
|
|
16881
|
-
function
|
|
16889
|
+
function xE({ data: e }) {
|
|
16882
16890
|
return /* @__PURE__ */ U(qt, { children: [e.methods.map((e) => /* @__PURE__ */ H(r, {
|
|
16883
16891
|
variant: zd(e),
|
|
16884
16892
|
className: "shrink-0",
|
|
@@ -16889,13 +16897,13 @@ function bE({ data: e }) {
|
|
|
16889
16897
|
e.pathOperator === "EQUALS" ? "Equals" : "Starts with",
|
|
16890
16898
|
" ",
|
|
16891
16899
|
/* @__PURE__ */ H("code", {
|
|
16892
|
-
className:
|
|
16900
|
+
className: vE,
|
|
16893
16901
|
children: e.path
|
|
16894
16902
|
})
|
|
16895
16903
|
]
|
|
16896
16904
|
})] });
|
|
16897
16905
|
}
|
|
16898
|
-
function
|
|
16906
|
+
function SE({ data: e }) {
|
|
16899
16907
|
return /* @__PURE__ */ U(qt, { children: [e.operations.map((e) => /* @__PURE__ */ H(r, {
|
|
16900
16908
|
variant: "default",
|
|
16901
16909
|
className: "shrink-0",
|
|
@@ -16908,20 +16916,20 @@ function xE({ data: e }) {
|
|
|
16908
16916
|
"):",
|
|
16909
16917
|
" ",
|
|
16910
16918
|
/* @__PURE__ */ H("code", {
|
|
16911
|
-
className:
|
|
16919
|
+
className: vE,
|
|
16912
16920
|
children: e.channel
|
|
16913
16921
|
})
|
|
16914
16922
|
]
|
|
16915
16923
|
})] });
|
|
16916
16924
|
}
|
|
16917
|
-
function
|
|
16925
|
+
function CE({ data: e }) {
|
|
16918
16926
|
return /* @__PURE__ */ H(qt, { children: e.methods.map((e) => /* @__PURE__ */ H(r, {
|
|
16919
16927
|
variant: "secondary",
|
|
16920
16928
|
className: "shrink-0",
|
|
16921
16929
|
children: e
|
|
16922
16930
|
}, e)) });
|
|
16923
16931
|
}
|
|
16924
|
-
function
|
|
16932
|
+
function wE({ data: e }) {
|
|
16925
16933
|
return /* @__PURE__ */ U(qt, { children: [e.visibleNames.map((e) => /* @__PURE__ */ U(r, {
|
|
16926
16934
|
variant: "outline",
|
|
16927
16935
|
className: "max-w-40 shrink-0 gap-1",
|
|
@@ -16948,7 +16956,7 @@ function CE({ data: e }) {
|
|
|
16948
16956
|
})
|
|
16949
16957
|
})] })] });
|
|
16950
16958
|
}
|
|
16951
|
-
function
|
|
16959
|
+
function TE({ data: e }) {
|
|
16952
16960
|
return /* @__PURE__ */ U(Qe, { children: [/* @__PURE__ */ H(tt, {
|
|
16953
16961
|
asChild: !0,
|
|
16954
16962
|
children: /* @__PURE__ */ H("span", { children: /* @__PURE__ */ U(r, {
|
|
@@ -16960,12 +16968,12 @@ function wE({ data: e }) {
|
|
|
16960
16968
|
side: "bottom",
|
|
16961
16969
|
className: "max-w-xs",
|
|
16962
16970
|
children: /* @__PURE__ */ H("code", {
|
|
16963
|
-
className: `${
|
|
16971
|
+
className: `${vE} text-xs`,
|
|
16964
16972
|
children: e.condition
|
|
16965
16973
|
})
|
|
16966
16974
|
})] });
|
|
16967
16975
|
}
|
|
16968
|
-
function
|
|
16976
|
+
function EE({ disabled: e, saving: t, saveError: n, invalidStepCount: r, onClick: a }) {
|
|
16969
16977
|
let o = /* @__PURE__ */ H(i, {
|
|
16970
16978
|
size: "sm",
|
|
16971
16979
|
variant: n ? "destructive" : "default",
|
|
@@ -16984,7 +16992,7 @@ function TE({ disabled: e, saving: t, saveError: n, invalidStepCount: r, onClick
|
|
|
16984
16992
|
children: s
|
|
16985
16993
|
})] }) : o;
|
|
16986
16994
|
}
|
|
16987
|
-
function
|
|
16995
|
+
function DE({ flow: e, apiType: t, entrypointsInfo: n, endpointsInfo: a, readOnly: o = !1, loading: s = !1, organizationTags: c, onDismissPhase: l, onEditFlow: u, onToggleFlowEnabled: d, onDeleteFlow: f, onSave: p, canSave: m = !1, saving: h = !1, saveError: g = null, invalidStepCount: _ = 0, className: v }) {
|
|
16988
16996
|
let [y, b] = V(!1);
|
|
16989
16997
|
if (s) return /* @__PURE__ */ U("div", {
|
|
16990
16998
|
className: I("flex min-w-0 items-center gap-3 border-b px-2.5 py-2", v),
|
|
@@ -16995,7 +17003,7 @@ function EE({ flow: e, apiType: t, entrypointsInfo: n, endpointsInfo: a, readOnl
|
|
|
16995
17003
|
/* @__PURE__ */ H(F, { className: "h-5 w-16 rounded-full" }),
|
|
16996
17004
|
/* @__PURE__ */ H(F, { className: "h-5 w-16 rounded-full" })
|
|
16997
17005
|
]
|
|
16998
|
-
}), p && /* @__PURE__ */ H(
|
|
17006
|
+
}), p && /* @__PURE__ */ H(EE, {
|
|
16999
17007
|
disabled: !0,
|
|
17000
17008
|
saving: !1,
|
|
17001
17009
|
saveError: null,
|
|
@@ -17010,7 +17018,7 @@ function EE({ flow: e, apiType: t, entrypointsInfo: n, endpointsInfo: a, readOnl
|
|
|
17010
17018
|
children: [/* @__PURE__ */ H("span", {
|
|
17011
17019
|
className: "flex-1 text-sm text-muted-foreground",
|
|
17012
17020
|
children: "Select a flow to view details"
|
|
17013
|
-
}), p && /* @__PURE__ */ H(
|
|
17021
|
+
}), p && /* @__PURE__ */ H(EE, {
|
|
17014
17022
|
disabled: !m || h,
|
|
17015
17023
|
saving: h,
|
|
17016
17024
|
saveError: g,
|
|
@@ -17041,19 +17049,19 @@ function EE({ flow: e, apiType: t, entrypointsInfo: n, endpointsInfo: a, readOnl
|
|
|
17041
17049
|
/* @__PURE__ */ U("div", {
|
|
17042
17050
|
className: "flex min-w-0 flex-1 items-center gap-2 overflow-hidden",
|
|
17043
17051
|
children: [
|
|
17044
|
-
x.name && /* @__PURE__ */ H(
|
|
17052
|
+
x.name && /* @__PURE__ */ H(yE, { name: x.name }),
|
|
17045
17053
|
w && /* @__PURE__ */ H(r, {
|
|
17046
17054
|
variant: "secondary",
|
|
17047
17055
|
children: "Disabled"
|
|
17048
17056
|
}),
|
|
17049
|
-
(x.name || w) && C && /* @__PURE__ */ H(
|
|
17057
|
+
(x.name || w) && C && /* @__PURE__ */ H(bE, {}),
|
|
17050
17058
|
C && /* @__PURE__ */ U(qt, { children: [
|
|
17051
|
-
x.http && /* @__PURE__ */ H(
|
|
17052
|
-
x.channel && /* @__PURE__ */ H(
|
|
17053
|
-
x.mcp && /* @__PURE__ */ H(
|
|
17059
|
+
x.http && /* @__PURE__ */ H(xE, { data: x.http }),
|
|
17060
|
+
x.channel && /* @__PURE__ */ H(SE, { data: x.channel }),
|
|
17061
|
+
x.mcp && /* @__PURE__ */ H(CE, { data: x.mcp })
|
|
17054
17062
|
] }),
|
|
17055
|
-
x.condition && /* @__PURE__ */ U(qt, { children: [(x.name || C) && /* @__PURE__ */ H(
|
|
17056
|
-
S && /* @__PURE__ */ U(qt, { children: [(x.name || C || x.condition) && /* @__PURE__ */ H(
|
|
17063
|
+
x.condition && /* @__PURE__ */ U(qt, { children: [(x.name || C) && /* @__PURE__ */ H(bE, {}), /* @__PURE__ */ H(TE, { data: x.condition })] }),
|
|
17064
|
+
S && /* @__PURE__ */ U(qt, { children: [(x.name || C || x.condition) && /* @__PURE__ */ H(bE, {}), /* @__PURE__ */ H(wE, { data: S })] })
|
|
17057
17065
|
]
|
|
17058
17066
|
}),
|
|
17059
17067
|
(T || p) && /* @__PURE__ */ U("div", {
|
|
@@ -17085,7 +17093,7 @@ function EE({ flow: e, apiType: t, entrypointsInfo: n, endpointsInfo: a, readOnl
|
|
|
17085
17093
|
children: [/* @__PURE__ */ H(Ft, { className: "mr-2 size-3.5" }), "Delete flow"]
|
|
17086
17094
|
})] })
|
|
17087
17095
|
]
|
|
17088
|
-
})] }), p && /* @__PURE__ */ H(
|
|
17096
|
+
})] }), p && /* @__PURE__ */ H(EE, {
|
|
17089
17097
|
disabled: !m || h,
|
|
17090
17098
|
saving: h,
|
|
17091
17099
|
saveError: g,
|
|
@@ -17104,7 +17112,7 @@ function EE({ flow: e, apiType: t, entrypointsInfo: n, endpointsInfo: a, readOnl
|
|
|
17104
17112
|
}
|
|
17105
17113
|
//#endregion
|
|
17106
17114
|
//#region src/components/PhaseCanvas/AddPolicyButton.tsx
|
|
17107
|
-
function
|
|
17115
|
+
function OE({ className: e, ...t }) {
|
|
17108
17116
|
return /* @__PURE__ */ U(i, {
|
|
17109
17117
|
variant: "link",
|
|
17110
17118
|
size: "sm",
|
|
@@ -17116,7 +17124,7 @@ function DE({ className: e, ...t }) {
|
|
|
17116
17124
|
}
|
|
17117
17125
|
//#endregion
|
|
17118
17126
|
//#region src/components/PhaseCanvas/PhaseCanvasParts.tsx
|
|
17119
|
-
function
|
|
17127
|
+
function kE({ connectors: e, role: t, actorLabel: n, compact: r, preferActorLabel: i }) {
|
|
17120
17128
|
let a = t === "entrypoint", o = a ? St : Ot, s = a ? "entrypoint" : "endpoint";
|
|
17121
17129
|
return e.length === 0 && !i ? r ? /* @__PURE__ */ H("div", {
|
|
17122
17130
|
className: "flex shrink-0 items-center text-muted-foreground/40",
|
|
@@ -17167,7 +17175,7 @@ function OE({ connectors: e, role: t, actorLabel: n, compact: r, preferActorLabe
|
|
|
17167
17175
|
})] })] })]
|
|
17168
17176
|
});
|
|
17169
17177
|
}
|
|
17170
|
-
function
|
|
17178
|
+
function AE({ compact: e }) {
|
|
17171
17179
|
return e ? /* @__PURE__ */ H("div", {
|
|
17172
17180
|
"aria-hidden": "true",
|
|
17173
17181
|
className: "flex shrink-0 items-center text-muted-foreground/40",
|
|
@@ -17180,7 +17188,7 @@ function kE({ compact: e }) {
|
|
|
17180
17188
|
}
|
|
17181
17189
|
//#endregion
|
|
17182
17190
|
//#region src/components/PhaseCanvas/StepCard.tsx
|
|
17183
|
-
function
|
|
17191
|
+
function jE({ resolvedStep: e, isSelected: t, hasConfigErrors: n, compact: o, onClick: s, onToggleEnabled: c, onDuplicate: l, onRemove: u, className: d, dragHandleProps: f }) {
|
|
17184
17192
|
let { step: p, policy: m, unresolved: h, unresolvedMessage: g } = e, _ = m?.name ?? p.name ?? p.policy ?? "Unnamed", v = p.enabled === !1, y = !o && !!(c || l || u), [b, x] = V(!1), S = [
|
|
17185
17193
|
_,
|
|
17186
17194
|
v ? "(disabled)" : "",
|
|
@@ -17331,7 +17339,7 @@ function AE({ resolvedStep: e, isSelected: t, hasConfigErrors: n, compact: o, on
|
|
|
17331
17339
|
})]
|
|
17332
17340
|
});
|
|
17333
17341
|
}
|
|
17334
|
-
function
|
|
17342
|
+
function ME({ sortableId: e, ...t }) {
|
|
17335
17343
|
let { attributes: n, listeners: r, setNodeRef: i, transform: a, transition: o, isDragging: s } = sn({ id: e });
|
|
17336
17344
|
return /* @__PURE__ */ H("div", {
|
|
17337
17345
|
ref: i,
|
|
@@ -17341,7 +17349,7 @@ function jE({ sortableId: e, ...t }) {
|
|
|
17341
17349
|
},
|
|
17342
17350
|
"data-step-index": t.resolvedStep.index,
|
|
17343
17351
|
className: I(s && "z-50 opacity-50 shadow-lg"),
|
|
17344
|
-
children: /* @__PURE__ */ H(
|
|
17352
|
+
children: /* @__PURE__ */ H(jE, {
|
|
17345
17353
|
...t,
|
|
17346
17354
|
dragHandleProps: {
|
|
17347
17355
|
...n,
|
|
@@ -17352,26 +17360,26 @@ function jE({ sortableId: e, ...t }) {
|
|
|
17352
17360
|
}
|
|
17353
17361
|
//#endregion
|
|
17354
17362
|
//#region src/components/PhaseCanvas/PhaseCanvas.tsx
|
|
17355
|
-
function
|
|
17363
|
+
function NE(e, t) {
|
|
17356
17364
|
let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = r.left - n.left + e.scrollLeft + r.width / 2 - e.clientWidth / 2;
|
|
17357
17365
|
e.scrollTo({
|
|
17358
17366
|
left: Math.max(0, i),
|
|
17359
17367
|
behavior: "smooth"
|
|
17360
17368
|
});
|
|
17361
17369
|
}
|
|
17362
|
-
function
|
|
17370
|
+
function PE({ title: e, description: t, startConnectors: n, endConnectors: r, startConnectorRole: i, endConnectorRole: a, startActorLabel: o, endActorLabel: s, resolvedSteps: c, disabled: l, compact: u, connectorsOptional: d, isBrowsing: f, selectedStepIndex: p, stepErrorIndices: m, onStepClick: h, onReorderSteps: g, onBrowseCatalog: _, onBrowseCategory: v, onToggleStepEnabled: y, onDuplicateStep: b, onRemoveStep: x, addPolicySlot: S, phaseGuidance: C, whisper: w, className: T }) {
|
|
17363
17371
|
let E = c.length === 0, D = !d && n.length === 0 && r.length === 0, O = B(null), ee = B(c.length), k = R(() => {
|
|
17364
17372
|
let e = O.current?.querySelector("[data-slot=scroll-area-viewport]");
|
|
17365
17373
|
if (!e) return;
|
|
17366
17374
|
let t = null;
|
|
17367
|
-
f ? t = e.querySelector("[data-add-policy-trigger]") : p !== void 0 && (t = e.querySelector(`[data-step-index="${p}"]`)), t &&
|
|
17375
|
+
f ? t = e.querySelector("[data-add-policy-trigger]") : p !== void 0 && (t = e.querySelector(`[data-step-index="${p}"]`)), t && NE(e, t);
|
|
17368
17376
|
}, [f, p]);
|
|
17369
17377
|
Wt(() => {
|
|
17370
17378
|
let e = c.length > ee.current;
|
|
17371
17379
|
if (ee.current = c.length, f || p !== void 0) k();
|
|
17372
17380
|
else if (e) {
|
|
17373
17381
|
let e = O.current?.querySelector("[data-slot=scroll-area-viewport]"), t = e?.querySelector(`[data-step-index="${c.length - 1}"]`);
|
|
17374
|
-
e && t &&
|
|
17382
|
+
e && t && NE(e, t);
|
|
17375
17383
|
}
|
|
17376
17384
|
}, [
|
|
17377
17385
|
p,
|
|
@@ -17456,14 +17464,14 @@ function NE({ title: e, description: t, startConnectors: n, endConnectors: r, st
|
|
|
17456
17464
|
"aria-label": `${e}: ${o} to ${s}`,
|
|
17457
17465
|
className: I("flex min-w-0 items-center", u ? "gap-1.5" : "gap-3"),
|
|
17458
17466
|
children: [
|
|
17459
|
-
/* @__PURE__ */ H(
|
|
17467
|
+
/* @__PURE__ */ H(kE, {
|
|
17460
17468
|
connectors: n,
|
|
17461
17469
|
role: i,
|
|
17462
17470
|
actorLabel: o,
|
|
17463
17471
|
compact: u,
|
|
17464
17472
|
preferActorLabel: d
|
|
17465
17473
|
}),
|
|
17466
|
-
/* @__PURE__ */ H(
|
|
17474
|
+
/* @__PURE__ */ H(AE, { compact: u }),
|
|
17467
17475
|
/* @__PURE__ */ U(Ne, {
|
|
17468
17476
|
ref: O,
|
|
17469
17477
|
"aria-label": "Policy steps",
|
|
@@ -17476,7 +17484,7 @@ function NE({ title: e, description: t, startConnectors: n, endConnectors: r, st
|
|
|
17476
17484
|
children: /* @__PURE__ */ H(rn, {
|
|
17477
17485
|
items: A,
|
|
17478
17486
|
strategy: an,
|
|
17479
|
-
children: /* @__PURE__ */ H(
|
|
17487
|
+
children: /* @__PURE__ */ H(IE, {
|
|
17480
17488
|
resolvedSteps: c,
|
|
17481
17489
|
isEmpty: E,
|
|
17482
17490
|
sortable: !0,
|
|
@@ -17493,7 +17501,7 @@ function NE({ title: e, description: t, startConnectors: n, endConnectors: r, st
|
|
|
17493
17501
|
onRemoveStep: x
|
|
17494
17502
|
})
|
|
17495
17503
|
})
|
|
17496
|
-
}) : /* @__PURE__ */ H(
|
|
17504
|
+
}) : /* @__PURE__ */ H(IE, {
|
|
17497
17505
|
resolvedSteps: c,
|
|
17498
17506
|
isEmpty: E,
|
|
17499
17507
|
compact: u,
|
|
@@ -17509,8 +17517,8 @@ function NE({ title: e, description: t, startConnectors: n, endConnectors: r, st
|
|
|
17509
17517
|
onRemoveStep: x
|
|
17510
17518
|
}), /* @__PURE__ */ H(Pe, { orientation: "horizontal" })]
|
|
17511
17519
|
}),
|
|
17512
|
-
/* @__PURE__ */ H(
|
|
17513
|
-
/* @__PURE__ */ H(
|
|
17520
|
+
/* @__PURE__ */ H(AE, { compact: u }),
|
|
17521
|
+
/* @__PURE__ */ H(kE, {
|
|
17514
17522
|
connectors: r,
|
|
17515
17523
|
role: a,
|
|
17516
17524
|
actorLabel: s,
|
|
@@ -17518,7 +17526,7 @@ function NE({ title: e, description: t, startConnectors: n, endConnectors: r, st
|
|
|
17518
17526
|
preferActorLabel: d
|
|
17519
17527
|
})
|
|
17520
17528
|
]
|
|
17521
|
-
}), !u && w && /* @__PURE__ */ H(
|
|
17529
|
+
}), !u && w && /* @__PURE__ */ H(FE, {
|
|
17522
17530
|
...w,
|
|
17523
17531
|
onBrowseCategory: v
|
|
17524
17532
|
})]
|
|
@@ -17526,7 +17534,7 @@ function NE({ title: e, description: t, startConnectors: n, endConnectors: r, st
|
|
|
17526
17534
|
})]
|
|
17527
17535
|
});
|
|
17528
17536
|
}
|
|
17529
|
-
function
|
|
17537
|
+
function FE({ text: e, tone: t, suggestedCategory: n, suggestionLeadIn: r, onBrowseCategory: i }) {
|
|
17530
17538
|
let a = t === "suggest" && n && i;
|
|
17531
17539
|
return /* @__PURE__ */ U("div", {
|
|
17532
17540
|
className: "flex items-center gap-2 pl-1",
|
|
@@ -17541,12 +17549,12 @@ function PE({ text: e, tone: t, suggestedCategory: n, suggestionLeadIn: r, onBro
|
|
|
17541
17549
|
})]
|
|
17542
17550
|
});
|
|
17543
17551
|
}
|
|
17544
|
-
function
|
|
17552
|
+
function IE({ resolvedSteps: e, isEmpty: t, sortable: n, compact: r, addPolicySlot: a, onBrowseCatalog: o, title: s, isBrowsing: c, selectedStepIndex: l, stepErrorIndices: u, onStepClick: d, onToggleStepEnabled: f, onDuplicateStep: p, onRemoveStep: m }) {
|
|
17545
17553
|
return /* @__PURE__ */ H("div", {
|
|
17546
17554
|
className: I(r ? "mx-1 px-0 py-3" : "px-1 py-3", t ? "" : I("flex w-max flex-nowrap items-center", r ? "gap-1.5" : "gap-3")),
|
|
17547
17555
|
children: t ? /* @__PURE__ */ H("div", {
|
|
17548
17556
|
className: "py-1",
|
|
17549
|
-
children: /* @__PURE__ */ H("div", { children: r && c ? /* @__PURE__ */ H(
|
|
17557
|
+
children: /* @__PURE__ */ H("div", { children: r && c ? /* @__PURE__ */ H(LE, {}) : a ?? (o ? /* @__PURE__ */ H(OE, {
|
|
17550
17558
|
onClick: o,
|
|
17551
17559
|
"aria-label": `Add policy to ${s}`,
|
|
17552
17560
|
"data-add-policy-trigger": !0
|
|
@@ -17554,7 +17562,7 @@ function FE({ resolvedSteps: e, isEmpty: t, sortable: n, compact: r, addPolicySl
|
|
|
17554
17562
|
className: "text-sm text-muted-foreground italic",
|
|
17555
17563
|
children: "No policies configured"
|
|
17556
17564
|
})) })
|
|
17557
|
-
}) : /* @__PURE__ */ U(qt, { children: [e.map((e) => n ? /* @__PURE__ */ H(
|
|
17565
|
+
}) : /* @__PURE__ */ U(qt, { children: [e.map((e) => n ? /* @__PURE__ */ H(ME, {
|
|
17558
17566
|
sortableId: `step-${e.index}`,
|
|
17559
17567
|
resolvedStep: e,
|
|
17560
17568
|
isSelected: l === e.index,
|
|
@@ -17566,7 +17574,7 @@ function FE({ resolvedSteps: e, isEmpty: t, sortable: n, compact: r, addPolicySl
|
|
|
17566
17574
|
onRemove: !r && m ? () => m(e.index) : void 0
|
|
17567
17575
|
}, e.step.policy ? `${e.step.policy}-${e.index}` : e.index) : /* @__PURE__ */ H("div", {
|
|
17568
17576
|
"data-step-index": e.index,
|
|
17569
|
-
children: /* @__PURE__ */ H(
|
|
17577
|
+
children: /* @__PURE__ */ H(jE, {
|
|
17570
17578
|
resolvedStep: e,
|
|
17571
17579
|
isSelected: l === e.index,
|
|
17572
17580
|
hasConfigErrors: u?.has(e.index),
|
|
@@ -17576,7 +17584,7 @@ function FE({ resolvedSteps: e, isEmpty: t, sortable: n, compact: r, addPolicySl
|
|
|
17576
17584
|
onDuplicate: !r && p ? () => p(e.index) : void 0,
|
|
17577
17585
|
onRemove: !r && m ? () => m(e.index) : void 0
|
|
17578
17586
|
})
|
|
17579
|
-
}, e.step.policy ? `${e.step.policy}-${e.index}` : e.index)), r && c ? /* @__PURE__ */ H(
|
|
17587
|
+
}, e.step.policy ? `${e.step.policy}-${e.index}` : e.index)), r && c ? /* @__PURE__ */ H(LE, {}) : a ?? (o && /* @__PURE__ */ H(i, {
|
|
17580
17588
|
variant: c ? "default" : "outline",
|
|
17581
17589
|
size: r ? "icon-xs" : "icon-sm",
|
|
17582
17590
|
className: "shrink-0",
|
|
@@ -17587,7 +17595,7 @@ function FE({ resolvedSteps: e, isEmpty: t, sortable: n, compact: r, addPolicySl
|
|
|
17587
17595
|
}))] })
|
|
17588
17596
|
});
|
|
17589
17597
|
}
|
|
17590
|
-
function
|
|
17598
|
+
function LE() {
|
|
17591
17599
|
return /* @__PURE__ */ H("div", {
|
|
17592
17600
|
"aria-hidden": !0,
|
|
17593
17601
|
className: "h-7 w-10 shrink-0 rounded-md border border-dashed border-primary/40 bg-primary/5",
|
|
@@ -17596,7 +17604,7 @@ function IE() {
|
|
|
17596
17604
|
}
|
|
17597
17605
|
//#endregion
|
|
17598
17606
|
//#region src/components/PhaseCanvas/PhaseCanvasSkeleton.tsx
|
|
17599
|
-
function
|
|
17607
|
+
function RE() {
|
|
17600
17608
|
return /* @__PURE__ */ U("div", {
|
|
17601
17609
|
className: "w-full space-y-2",
|
|
17602
17610
|
children: [/* @__PURE__ */ U("div", { children: [/* @__PURE__ */ H(F, { className: "h-4 w-20 rounded-sm" }), /* @__PURE__ */ H(F, { className: "mt-1 h-3 w-32 rounded-sm" })] }), /* @__PURE__ */ H("div", {
|
|
@@ -17623,20 +17631,20 @@ function LE() {
|
|
|
17623
17631
|
})]
|
|
17624
17632
|
});
|
|
17625
17633
|
}
|
|
17626
|
-
function
|
|
17634
|
+
function zE() {
|
|
17627
17635
|
return /* @__PURE__ */ U("div", {
|
|
17628
17636
|
className: "flex flex-col items-center gap-6",
|
|
17629
17637
|
role: "status",
|
|
17630
17638
|
"aria-label": "Loading flow details",
|
|
17631
|
-
children: [/* @__PURE__ */ H(
|
|
17639
|
+
children: [/* @__PURE__ */ H(RE, {}), /* @__PURE__ */ H(RE, {})]
|
|
17632
17640
|
});
|
|
17633
17641
|
}
|
|
17634
17642
|
//#endregion
|
|
17635
17643
|
//#region src/lib/connector-filter.ts
|
|
17636
|
-
function
|
|
17644
|
+
function BE(e, t, n) {
|
|
17637
17645
|
return t === null ? e : n && n.length > 0 && !n.includes(t) ? [] : e.filter((e) => e.supportedModes.includes(t));
|
|
17638
17646
|
}
|
|
17639
|
-
function
|
|
17647
|
+
function VE(e, t) {
|
|
17640
17648
|
let n = e?.find((e) => e.type === "CHANNEL");
|
|
17641
17649
|
return {
|
|
17642
17650
|
filteredEntrypoints: n?.entrypoints && n.entrypoints.length > 0 ? t.filter((e) => n.entrypoints.includes(e.type)) : t,
|
|
@@ -17645,7 +17653,7 @@ function BE(e, t) {
|
|
|
17645
17653
|
}
|
|
17646
17654
|
//#endregion
|
|
17647
17655
|
//#region src/components/PhaseCanvas/phase-examples.ts
|
|
17648
|
-
var
|
|
17656
|
+
var HE = {
|
|
17649
17657
|
"REQUEST:PROXY": "Authenticate callers and protect your backend before requests pass through.",
|
|
17650
17658
|
"RESPONSE:PROXY": "Shape what consumers receive — transform formats and protect sensitive data.",
|
|
17651
17659
|
"REQUEST:A2A_PROXY": "Control which skills can be delegated and validate inputs before they reach your agents.",
|
|
@@ -17658,22 +17666,22 @@ var VE = {
|
|
|
17658
17666
|
"INTERACT:NATIVE": "Control traffic and filter content during ongoing interactions.",
|
|
17659
17667
|
"PUBLISH:NATIVE": "Validate and filter messages before they reach the broker.",
|
|
17660
17668
|
"SUBSCRIBE:NATIVE": "Transform and protect messages before consumers receive them."
|
|
17661
|
-
},
|
|
17662
|
-
function
|
|
17663
|
-
let r = `${e}:${
|
|
17664
|
-
return n === "ORGANIZATION" &&
|
|
17669
|
+
}, UE = { "REQUEST:PROXY": "Authenticate callers and protect every API before requests pass through." }, WE = new Set(["LLM_PROXY", "MCP_PROXY"]);
|
|
17670
|
+
function GE(e, t, n = "API") {
|
|
17671
|
+
let r = `${e}:${WE.has(t) ? "PROXY" : t}`;
|
|
17672
|
+
return n === "ORGANIZATION" && UE[r] ? UE[r] : HE[r];
|
|
17665
17673
|
}
|
|
17666
17674
|
//#endregion
|
|
17667
17675
|
//#region src/components/PhaseCanvas/use-phase-row-data.ts
|
|
17668
|
-
function
|
|
17669
|
-
let d = z(() =>
|
|
17676
|
+
function KE({ phase: e, apiType: t, flow: n, entrypointsInfo: r, endpointsInfo: i, genericPolicies: a, policies: o, sharedPolicyGroups: s, stepsWithErrors: c, activeModes: l, scope: u = "API" }) {
|
|
17677
|
+
let d = z(() => eE(e, t, u), [
|
|
17670
17678
|
e,
|
|
17671
17679
|
t,
|
|
17672
17680
|
u
|
|
17673
17681
|
]);
|
|
17674
17682
|
return {
|
|
17675
17683
|
config: d,
|
|
17676
|
-
resolvedSteps: z(() => n ?
|
|
17684
|
+
resolvedSteps: z(() => n ? hE(n, e, a) : [], [
|
|
17677
17685
|
n,
|
|
17678
17686
|
e,
|
|
17679
17687
|
a
|
|
@@ -17687,13 +17695,13 @@ function GE({ phase: e, apiType: t, flow: n, entrypointsInfo: r, endpointsInfo:
|
|
|
17687
17695
|
}
|
|
17688
17696
|
return t.size > 0 ? t : void 0;
|
|
17689
17697
|
}, [c, e]),
|
|
17690
|
-
startConnectors: z(() =>
|
|
17698
|
+
startConnectors: z(() => BE(d.startConnectorRole === "entrypoint" ? r : i, d.connectorFilterMode, l), [
|
|
17691
17699
|
d,
|
|
17692
17700
|
r,
|
|
17693
17701
|
i,
|
|
17694
17702
|
l
|
|
17695
17703
|
]),
|
|
17696
|
-
endConnectors: z(() =>
|
|
17704
|
+
endConnectors: z(() => BE(d.endConnectorRole === "entrypoint" ? r : i, d.connectorFilterMode, l), [
|
|
17697
17705
|
d,
|
|
17698
17706
|
r,
|
|
17699
17707
|
i,
|
|
@@ -17710,8 +17718,8 @@ function GE({ phase: e, apiType: t, flow: n, entrypointsInfo: r, endpointsInfo:
|
|
|
17710
17718
|
}
|
|
17711
17719
|
//#endregion
|
|
17712
17720
|
//#region src/components/PhaseCanvas/PhaseLayout.tsx
|
|
17713
|
-
function
|
|
17714
|
-
let { config: S, resolvedSteps: C, phaseStepErrors: w, startConnectors: T, endConnectors: E, phasePolicies: D } =
|
|
17721
|
+
function qE({ phase: e, apiType: t, scope: n, flow: r, entrypointsInfo: a, endpointsInfo: o, genericPolicies: s, policies: c, sharedPolicyGroups: l, activeModes: u, isBrowsing: d, selectedStepIndex: f, stepsWithErrors: p, onBrowseCatalog: m, onBrowseCategory: h, onQuickAddPolicy: g, onStepClick: _, onReorderSteps: v, onToggleStepEnabled: y, onDuplicateStep: b, onRemoveStep: x }) {
|
|
17722
|
+
let { config: S, resolvedSteps: C, phaseStepErrors: w, startConnectors: T, endConnectors: E, phasePolicies: D } = KE({
|
|
17715
17723
|
phase: e,
|
|
17716
17724
|
apiType: t,
|
|
17717
17725
|
scope: n,
|
|
@@ -17723,7 +17731,7 @@ function KE({ phase: e, apiType: t, scope: n, flow: r, entrypointsInfo: a, endpo
|
|
|
17723
17731
|
sharedPolicyGroups: l,
|
|
17724
17732
|
stepsWithErrors: p,
|
|
17725
17733
|
activeModes: u
|
|
17726
|
-
}), O = R(() => m?.(e), [m, e]), ee = R((t) => _?.(e, t), [_, e]), k = R((t, n) => v?.(e, t, n), [v, e]), te = R((t, n) => y?.(e, t, n), [y, e]), A = R((t) => b?.(e, t), [b, e]), ne = R((t) => x?.(e, t), [x, e]), [re, ie] = V(!1), j = R((t) => g?.(e, t), [g, e]), ae = z(() =>
|
|
17734
|
+
}), O = R(() => m?.(e), [m, e]), ee = R((t) => _?.(e, t), [_, e]), k = R((t, n) => v?.(e, t, n), [v, e]), te = R((t, n) => y?.(e, t, n), [y, e]), A = R((t) => b?.(e, t), [b, e]), ne = R((t) => x?.(e, t), [x, e]), [re, ie] = V(!1), j = R((t) => g?.(e, t), [g, e]), ae = z(() => GE(e, t, n), [
|
|
17727
17735
|
e,
|
|
17728
17736
|
t,
|
|
17729
17737
|
n
|
|
@@ -17735,13 +17743,13 @@ function KE({ phase: e, apiType: t, scope: n, flow: r, entrypointsInfo: a, endpo
|
|
|
17735
17743
|
n
|
|
17736
17744
|
]), ce = R((t) => h?.(e, t), [h, e]), le = m ? /* @__PURE__ */ H("div", {
|
|
17737
17745
|
"data-add-policy-trigger": !0,
|
|
17738
|
-
children: /* @__PURE__ */ H(
|
|
17746
|
+
children: /* @__PURE__ */ H(gT, {
|
|
17739
17747
|
policies: D,
|
|
17740
17748
|
open: re,
|
|
17741
17749
|
onOpenChange: ie,
|
|
17742
17750
|
onAddPolicy: j,
|
|
17743
17751
|
onBrowseCatalog: O,
|
|
17744
|
-
children: C.length === 0 ? /* @__PURE__ */ H(
|
|
17752
|
+
children: C.length === 0 ? /* @__PURE__ */ H(OE, { "aria-label": `Add policy to ${S.title}` }) : /* @__PURE__ */ H(i, {
|
|
17745
17753
|
variant: d ? "default" : "outline",
|
|
17746
17754
|
size: "icon-sm",
|
|
17747
17755
|
className: "shrink-0",
|
|
@@ -17750,7 +17758,7 @@ function KE({ phase: e, apiType: t, scope: n, flow: r, entrypointsInfo: a, endpo
|
|
|
17750
17758
|
})
|
|
17751
17759
|
})
|
|
17752
17760
|
}) : void 0;
|
|
17753
|
-
return /* @__PURE__ */ H(
|
|
17761
|
+
return /* @__PURE__ */ H(PE, {
|
|
17754
17762
|
title: S.title,
|
|
17755
17763
|
description: S.description,
|
|
17756
17764
|
startConnectors: T,
|
|
@@ -17777,10 +17785,10 @@ function KE({ phase: e, apiType: t, scope: n, flow: r, entrypointsInfo: a, endpo
|
|
|
17777
17785
|
whisper: se ?? void 0
|
|
17778
17786
|
});
|
|
17779
17787
|
}
|
|
17780
|
-
function
|
|
17788
|
+
function JE({ phases: e, apiType: t, scope: n, flow: r, entrypointsInfo: i, endpointsInfo: a, genericPolicies: o, policies: s, sharedPolicyGroups: c, activeModes: l, browsePhase: u, selectedStep: d, stepsWithErrors: f, onBrowseCatalog: p, onBrowseCategory: m, onQuickAddPolicy: h, onStepClick: g, onReorderSteps: _, onToggleStepEnabled: v, onDuplicateStep: y, onRemoveStep: b }) {
|
|
17781
17789
|
return /* @__PURE__ */ H("div", {
|
|
17782
17790
|
className: "flex flex-col gap-6",
|
|
17783
|
-
children: e.map((e) => /* @__PURE__ */ H(
|
|
17791
|
+
children: e.map((e) => /* @__PURE__ */ H(qE, {
|
|
17784
17792
|
phase: e,
|
|
17785
17793
|
apiType: t,
|
|
17786
17794
|
scope: n,
|
|
@@ -17805,21 +17813,21 @@ function qE({ phases: e, apiType: t, scope: n, flow: r, entrypointsInfo: i, endp
|
|
|
17805
17813
|
}, e))
|
|
17806
17814
|
});
|
|
17807
17815
|
}
|
|
17808
|
-
function
|
|
17809
|
-
let x = z(() =>
|
|
17816
|
+
function YE({ loading: e, apiType: t, scope: n, flow: r, entrypointsInfo: i, endpointsInfo: a, genericPolicies: o, policies: s, sharedPolicyGroups: c, browsePhase: l, selectedStep: u, stepsWithErrors: d, activePhase: f, onBrowseCatalog: p, onBrowseCategory: m, onQuickAddPolicy: h, onStepClick: g, onReorderSteps: _, onToggleStepEnabled: v, onDuplicateStep: y, onRemoveStep: b }) {
|
|
17817
|
+
let x = z(() => rE(t), [t]), S = z(() => {
|
|
17810
17818
|
if (!(x.type !== "tabbed" || !f)) return x.tabs.find((e) => e.phases.includes(f))?.label;
|
|
17811
|
-
}, [x, f]), C = z(() => t === "MESSAGE" ?
|
|
17819
|
+
}, [x, f]), C = z(() => t === "MESSAGE" ? VE(r?.selectors, i) : void 0, [
|
|
17812
17820
|
t,
|
|
17813
17821
|
r?.selectors,
|
|
17814
17822
|
i
|
|
17815
17823
|
]);
|
|
17816
|
-
if (e) return /* @__PURE__ */ H(
|
|
17824
|
+
if (e) return /* @__PURE__ */ H(zE, {});
|
|
17817
17825
|
if (x.type === "flat") return x.phases.length === 0 ? /* @__PURE__ */ H("p", {
|
|
17818
17826
|
className: "text-sm text-muted-foreground",
|
|
17819
17827
|
children: "No phases available for this API type."
|
|
17820
17828
|
}) : /* @__PURE__ */ H("div", {
|
|
17821
17829
|
className: "flex flex-col gap-4",
|
|
17822
|
-
children: /* @__PURE__ */ H(
|
|
17830
|
+
children: /* @__PURE__ */ H(JE, {
|
|
17823
17831
|
phases: x.phases,
|
|
17824
17832
|
apiType: t,
|
|
17825
17833
|
scope: n,
|
|
@@ -17857,7 +17865,7 @@ function JE({ loading: e, apiType: t, scope: n, flow: r, entrypointsInfo: i, end
|
|
|
17857
17865
|
/* @__PURE__ */ H(Je, {
|
|
17858
17866
|
value: e.label,
|
|
17859
17867
|
className: "pt-4",
|
|
17860
|
-
children: /* @__PURE__ */ H(
|
|
17868
|
+
children: /* @__PURE__ */ H(JE, {
|
|
17861
17869
|
phases: e.phases,
|
|
17862
17870
|
apiType: t,
|
|
17863
17871
|
flow: r,
|
|
@@ -17882,7 +17890,7 @@ function JE({ loading: e, apiType: t, scope: n, flow: r, entrypointsInfo: i, end
|
|
|
17882
17890
|
/* @__PURE__ */ H(Je, {
|
|
17883
17891
|
value: n.label,
|
|
17884
17892
|
className: "pt-4",
|
|
17885
|
-
children: /* @__PURE__ */ H(
|
|
17893
|
+
children: /* @__PURE__ */ H(JE, {
|
|
17886
17894
|
phases: n.phases,
|
|
17887
17895
|
apiType: t,
|
|
17888
17896
|
flow: r,
|
|
@@ -17919,7 +17927,7 @@ function JE({ loading: e, apiType: t, scope: n, flow: r, entrypointsInfo: i, end
|
|
|
17919
17927
|
}), x.tabs.map((e) => /* @__PURE__ */ H(Je, {
|
|
17920
17928
|
value: e.label,
|
|
17921
17929
|
className: "pt-4",
|
|
17922
|
-
children: /* @__PURE__ */ H(
|
|
17930
|
+
children: /* @__PURE__ */ H(JE, {
|
|
17923
17931
|
phases: e.phases,
|
|
17924
17932
|
apiType: t,
|
|
17925
17933
|
flow: r,
|
|
@@ -17943,8 +17951,8 @@ function JE({ loading: e, apiType: t, scope: n, flow: r, entrypointsInfo: i, end
|
|
|
17943
17951
|
}, e.label))]
|
|
17944
17952
|
});
|
|
17945
17953
|
}
|
|
17946
|
-
function
|
|
17947
|
-
let { config: v, resolvedSteps: y, phaseStepErrors: b, startConnectors: x, endConnectors: S, phasePolicies: C } =
|
|
17954
|
+
function XE({ apiType: e, scope: t, phase: n, flow: r, entrypointsInfo: a, endpointsInfo: o, genericPolicies: s, policies: c, sharedPolicyGroups: l, selectedStepIndex: u, stepsWithErrors: d, isBrowsing: f, onStepClick: p, onReorderSteps: m, onBrowseCatalog: h, onQuickAddPolicy: g, className: _ }) {
|
|
17955
|
+
let { config: v, resolvedSteps: y, phaseStepErrors: b, startConnectors: x, endConnectors: S, phasePolicies: C } = KE({
|
|
17948
17956
|
phase: n,
|
|
17949
17957
|
apiType: e,
|
|
17950
17958
|
scope: t,
|
|
@@ -17957,7 +17965,7 @@ function YE({ apiType: e, scope: t, phase: n, flow: r, entrypointsInfo: a, endpo
|
|
|
17957
17965
|
stepsWithErrors: d
|
|
17958
17966
|
}), w = R((e) => p?.(n, e), [p, n]), T = R((e, t) => m?.(n, e, t), [m, n]), E = R(() => h?.(n), [h, n]), [D, O] = V(!1), ee = R((e) => g?.(n, e), [g, n]), k = h ? /* @__PURE__ */ H("div", {
|
|
17959
17967
|
"data-add-policy-trigger": !0,
|
|
17960
|
-
children: /* @__PURE__ */ H(
|
|
17968
|
+
children: /* @__PURE__ */ H(gT, {
|
|
17961
17969
|
policies: C,
|
|
17962
17970
|
open: D,
|
|
17963
17971
|
onOpenChange: O,
|
|
@@ -17974,7 +17982,7 @@ function YE({ apiType: e, scope: t, phase: n, flow: r, entrypointsInfo: a, endpo
|
|
|
17974
17982
|
}) : void 0;
|
|
17975
17983
|
return /* @__PURE__ */ H("div", {
|
|
17976
17984
|
className: I("flex min-w-0 items-center gap-2", _),
|
|
17977
|
-
children: /* @__PURE__ */ H(
|
|
17985
|
+
children: /* @__PURE__ */ H(PE, {
|
|
17978
17986
|
title: v.title,
|
|
17979
17987
|
description: v.description,
|
|
17980
17988
|
startConnectors: x,
|
|
@@ -17999,7 +18007,7 @@ function YE({ apiType: e, scope: t, phase: n, flow: r, entrypointsInfo: a, endpo
|
|
|
17999
18007
|
}
|
|
18000
18008
|
//#endregion
|
|
18001
18009
|
//#region src/components/PolicyStudioLayout/PolicyStudioLayout.tsx
|
|
18002
|
-
function
|
|
18010
|
+
function ZE({ sidebar: e, infoBar: t, children: n, className: r }) {
|
|
18003
18011
|
return /* @__PURE__ */ U("div", {
|
|
18004
18012
|
className: I("grid h-full overflow-hidden", r),
|
|
18005
18013
|
style: {
|
|
@@ -18024,7 +18032,7 @@ function XE({ sidebar: e, infoBar: t, children: n, className: r }) {
|
|
|
18024
18032
|
}
|
|
18025
18033
|
//#endregion
|
|
18026
18034
|
//#region src/components/PolicyStudio/EducationalEmptyState.tsx
|
|
18027
|
-
var
|
|
18035
|
+
var QE = {
|
|
18028
18036
|
tagline: "Control how requests are processed across every API in your organization. Platform policies run on the gateway, on the request and response phases, before and after each API's own flows.",
|
|
18029
18037
|
diagramHeading: "How requests flow through the gateway",
|
|
18030
18038
|
diagram: [
|
|
@@ -18048,7 +18056,7 @@ var ZE = {
|
|
|
18048
18056
|
addLabel: Nf.addLabel
|
|
18049
18057
|
}]
|
|
18050
18058
|
};
|
|
18051
|
-
function
|
|
18059
|
+
function $E(e) {
|
|
18052
18060
|
switch (e) {
|
|
18053
18061
|
case "MCP_PROXY": return {
|
|
18054
18062
|
tagline: "Control how MCP requests are processed by adding policies to your execution pipeline. Policies handle authentication, rate limiting, and data transformation at the gateway level.",
|
|
@@ -18164,7 +18172,7 @@ function QE(e) {
|
|
|
18164
18172
|
};
|
|
18165
18173
|
}
|
|
18166
18174
|
}
|
|
18167
|
-
function
|
|
18175
|
+
function eD({ nodes: e }) {
|
|
18168
18176
|
return /* @__PURE__ */ H("div", {
|
|
18169
18177
|
className: "flex items-center justify-center gap-1.5 py-3",
|
|
18170
18178
|
children: e.map((e, t) => /* @__PURE__ */ U("span", {
|
|
@@ -18176,8 +18184,8 @@ function $E({ nodes: e }) {
|
|
|
18176
18184
|
}, t))
|
|
18177
18185
|
});
|
|
18178
18186
|
}
|
|
18179
|
-
function
|
|
18180
|
-
let r = t === "ORGANIZATION" ?
|
|
18187
|
+
function tD({ apiType: e, scope: t = "API", onAddFlow: n }) {
|
|
18188
|
+
let r = t === "ORGANIZATION" ? QE : $E(e);
|
|
18181
18189
|
return /* @__PURE__ */ H("div", {
|
|
18182
18190
|
className: "flex h-full items-start justify-center pt-12",
|
|
18183
18191
|
children: /* @__PURE__ */ U("div", {
|
|
@@ -18205,7 +18213,7 @@ function eD({ apiType: e, scope: t = "API", onAddFlow: n }) {
|
|
|
18205
18213
|
children: [/* @__PURE__ */ H("p", {
|
|
18206
18214
|
className: "mb-1 text-center text-xs font-medium text-muted-foreground",
|
|
18207
18215
|
children: r.diagramHeading
|
|
18208
|
-
}), /* @__PURE__ */ H(
|
|
18216
|
+
}), /* @__PURE__ */ H(eD, { nodes: r.diagram })]
|
|
18209
18217
|
}),
|
|
18210
18218
|
/* @__PURE__ */ H("div", {
|
|
18211
18219
|
className: "flex w-full gap-3",
|
|
@@ -18242,21 +18250,21 @@ function eD({ apiType: e, scope: t = "API", onAddFlow: n }) {
|
|
|
18242
18250
|
}
|
|
18243
18251
|
//#endregion
|
|
18244
18252
|
//#region src/components/PolicyStudio/StepActionSlot.tsx
|
|
18245
|
-
function
|
|
18246
|
-
let s = z(() => !e || t == null || n == null ? null : (o ??
|
|
18253
|
+
function nD(e, t, n, r, i, a, o) {
|
|
18254
|
+
let s = z(() => !e || t == null || n == null ? null : (o ?? hE(e, t, r))[n]?.policy ?? null, [
|
|
18247
18255
|
e,
|
|
18248
18256
|
t,
|
|
18249
18257
|
n,
|
|
18250
18258
|
r,
|
|
18251
18259
|
o
|
|
18252
18260
|
]);
|
|
18253
|
-
return z(() => s ?
|
|
18261
|
+
return z(() => s ? gE(s, i, a) : null, [
|
|
18254
18262
|
s,
|
|
18255
18263
|
i,
|
|
18256
18264
|
a
|
|
18257
18265
|
]);
|
|
18258
18266
|
}
|
|
18259
|
-
function
|
|
18267
|
+
function rD({ flow: e, phase: t, stepIndex: n, genericPolicies: r, policies: a, sharedPolicyGroups: o, docsLayout: s, showBackButton: c = !0, onClose: l, onRemove: u, onDuplicate: d, onToggleEnabled: f, onStepChange: p, onValidityChange: m }) {
|
|
18260
18268
|
let h = R((e) => p?.(t, n, e), [
|
|
18261
18269
|
p,
|
|
18262
18270
|
t,
|
|
@@ -18278,11 +18286,11 @@ function nD({ flow: e, phase: t, stepIndex: n, genericPolicies: r, policies: a,
|
|
|
18278
18286
|
f,
|
|
18279
18287
|
t,
|
|
18280
18288
|
n
|
|
18281
|
-
]), b = z(() =>
|
|
18289
|
+
]), b = z(() => hE(e, t, r), [
|
|
18282
18290
|
e,
|
|
18283
18291
|
t,
|
|
18284
18292
|
r
|
|
18285
|
-
]), x = b[n], S =
|
|
18293
|
+
]), x = b[n], S = nD(e, t, n, r, a, o, b), C = S?.policy ?? null, w = S?.prerequisiteMessage;
|
|
18286
18294
|
if (!x) return null;
|
|
18287
18295
|
if (x.unresolved || !x.policy) {
|
|
18288
18296
|
let e = x.step.name ?? x.step.policy ?? "Unknown policy";
|
|
@@ -18329,7 +18337,7 @@ function nD({ flow: e, phase: t, stepIndex: n, genericPolicies: r, policies: a,
|
|
|
18329
18337
|
})]
|
|
18330
18338
|
});
|
|
18331
18339
|
}
|
|
18332
|
-
return /* @__PURE__ */ H(
|
|
18340
|
+
return /* @__PURE__ */ H(wT, {
|
|
18333
18341
|
policy: C,
|
|
18334
18342
|
step: x.step,
|
|
18335
18343
|
flowPhase: t,
|
|
@@ -18347,10 +18355,10 @@ function nD({ flow: e, phase: t, stepIndex: n, genericPolicies: r, policies: a,
|
|
|
18347
18355
|
}
|
|
18348
18356
|
//#endregion
|
|
18349
18357
|
//#region src/components/PolicyStudio/PolicyStudio.tsx
|
|
18350
|
-
function
|
|
18358
|
+
function iD(e, t, n) {
|
|
18351
18359
|
return `${e}:${t}:${n}`;
|
|
18352
18360
|
}
|
|
18353
|
-
function
|
|
18361
|
+
function aD(e) {
|
|
18354
18362
|
let t = e.split(":");
|
|
18355
18363
|
if (t.length !== 3) throw Error(`Invalid step validity key: ${e}`);
|
|
18356
18364
|
return {
|
|
@@ -18359,39 +18367,39 @@ function iD(e) {
|
|
|
18359
18367
|
stepIndex: t[2]
|
|
18360
18368
|
};
|
|
18361
18369
|
}
|
|
18362
|
-
function
|
|
18370
|
+
function oD(e, t) {
|
|
18363
18371
|
return `${e}:${t}`;
|
|
18364
18372
|
}
|
|
18365
|
-
function
|
|
18373
|
+
function sD({ className: e, defaultSelectedFlowId: t, ...n }) {
|
|
18366
18374
|
return /* @__PURE__ */ H(Fn, {
|
|
18367
18375
|
...n,
|
|
18368
|
-
children: /* @__PURE__ */ H(
|
|
18376
|
+
children: /* @__PURE__ */ H(cD, {
|
|
18369
18377
|
className: e,
|
|
18370
18378
|
defaultSelectedFlowId: t
|
|
18371
18379
|
})
|
|
18372
18380
|
});
|
|
18373
18381
|
}
|
|
18374
|
-
function
|
|
18375
|
-
let { apiType: n, scope: a, organizationTags: o, policies: s, sharedPolicyGroups: c, plans: l, commonFlows: u, allMcpFlows: d, entrypointsInfo: f, endpointsInfo: p, readOnly: m, loading: h, flowExecution: g, fetchPolicySchema: _, onSave: v } = In(), [y, { isSideBySide: b }] =
|
|
18382
|
+
function cD({ className: e, defaultSelectedFlowId: t }) {
|
|
18383
|
+
let { apiType: n, scope: a, organizationTags: o, policies: s, sharedPolicyGroups: c, plans: l, commonFlows: u, allMcpFlows: d, entrypointsInfo: f, endpointsInfo: p, readOnly: m, loading: h, flowExecution: g, fetchPolicySchema: _, onSave: v } = In(), [y, { isSideBySide: b }] = ET(), [x, S] = V(t), [C, w] = V({ mode: "closed" }), [T, E] = V(null), D = C.mode === "catalog" ? C.phase : null, O = C.mode === "catalog" ? C.initialCategories : void 0, [ee, k] = V(null), [te, A] = V(null), [ne, re] = V(null), [ie, j] = V(g), [ae, oe] = V(g);
|
|
18376
18384
|
(ae?.mode !== g?.mode || ae?.matchRequired !== g?.matchRequired) && (oe(g), j(g));
|
|
18377
18385
|
let [se, ce] = V(/* @__PURE__ */ new Map()), le = R((e, t, n, r) => {
|
|
18378
18386
|
ce((i) => {
|
|
18379
|
-
let a =
|
|
18387
|
+
let a = iD(e, t, n);
|
|
18380
18388
|
if (i.get(a) === r) return i;
|
|
18381
18389
|
let o = new Map(i);
|
|
18382
18390
|
return o.set(a, r), o;
|
|
18383
18391
|
});
|
|
18384
18392
|
}, []), ue = z(() => {
|
|
18385
18393
|
let e = /* @__PURE__ */ new Set();
|
|
18386
|
-
for (let [t, n] of se) n || e.add(
|
|
18394
|
+
for (let [t, n] of se) n || e.add(aD(t).flowId);
|
|
18387
18395
|
return e;
|
|
18388
18396
|
}, [se]), de = z(() => {
|
|
18389
18397
|
if (!x) return;
|
|
18390
18398
|
let e = /* @__PURE__ */ new Set();
|
|
18391
18399
|
for (let [t, n] of se) {
|
|
18392
18400
|
if (n) continue;
|
|
18393
|
-
let { flowId: r, phase: i, stepIndex: a } =
|
|
18394
|
-
r === x && e.add(
|
|
18401
|
+
let { flowId: r, phase: i, stepIndex: a } = aD(t);
|
|
18402
|
+
r === x && e.add(oD(i, Number(a)));
|
|
18395
18403
|
}
|
|
18396
18404
|
return e.size > 0 ? e : void 0;
|
|
18397
18405
|
}, [se, x]), fe = z(() => a === "ORGANIZATION" ? ad(u) : n === "MCP_PROXY" ? cd(d) : id(l, u), [
|
|
@@ -18400,16 +18408,16 @@ function sD({ className: e, defaultSelectedFlowId: t }) {
|
|
|
18400
18408
|
l,
|
|
18401
18409
|
u,
|
|
18402
18410
|
d
|
|
18403
|
-
]), [M, N] =
|
|
18411
|
+
]), [M, N] = FT(fe), pe = z(() => M.flatMap((e) => e.flows).at(0)?._id, [M]);
|
|
18404
18412
|
!h && x === void 0 && pe && S(pe);
|
|
18405
18413
|
let me = z(() => M.flatMap((e) => e.flows).some((e) => e._id === x), [M, x]);
|
|
18406
18414
|
!h && x !== void 0 && !me && S(void 0);
|
|
18407
18415
|
let he = z(() => M.filter((e) => e.kind === "plan"), [M]), ge = z(() => M.every((e) => e.flows.length === 0), [M]), _e = R((e) => {
|
|
18408
18416
|
let t = M.find((t) => t.kind === e);
|
|
18409
18417
|
t && A(t);
|
|
18410
|
-
}, [M]), P = z(() => M.flatMap((e) => e.flows).find((e) => e._id === x), [M, x]), ve = z(() =>
|
|
18411
|
-
|
|
18412
|
-
let { canSave: ye, saving: be, saveError: xe, invalidStepCount: Se, triggerSave: Ce } =
|
|
18418
|
+
}, [M]), P = z(() => M.flatMap((e) => e.flows).find((e) => e._id === x), [M, x]), ve = z(() => uE(s, c), [s, c]);
|
|
18419
|
+
_E(M, n, ve, s, c, _, ce);
|
|
18420
|
+
let { canSave: ye, saving: be, saveError: xe, invalidStepCount: Se, triggerSave: Ce } = UT({
|
|
18413
18421
|
initialGroups: fe,
|
|
18414
18422
|
currentGroups: M,
|
|
18415
18423
|
initialFlowExecution: g,
|
|
@@ -18419,7 +18427,7 @@ function sD({ className: e, defaultSelectedFlowId: t }) {
|
|
|
18419
18427
|
}), we = z(() => !T || !P || T.flowId !== P._id ? null : {
|
|
18420
18428
|
phase: T.phase,
|
|
18421
18429
|
stepIndex: T.stepIndex
|
|
18422
|
-
}, [T, P]), Te =
|
|
18430
|
+
}, [T, P]), Te = nD(P, we?.phase ?? null, we?.stepIndex ?? null, ve, s, c)?.policy ?? null, Ee = B(C.mode), [De, Oe] = V(!1), ke = R(() => {
|
|
18423
18431
|
w({ mode: "closed" });
|
|
18424
18432
|
}, []), Ae = z(() => fe.flatMap((e) => e.flows.map((e) => `${e._id}:${(e.request ?? []).map((e) => e.policy ?? "?").join(",")}|${(e.response ?? []).map((e) => e.policy ?? "?").join(",")}`)).join("||"), [fe]), je = B(Ae);
|
|
18425
18433
|
Wt(() => {
|
|
@@ -18470,7 +18478,7 @@ function sD({ className: e, defaultSelectedFlowId: t }) {
|
|
|
18470
18478
|
targetGroupId: e.targetGroupId,
|
|
18471
18479
|
newIndex: e.newIndex
|
|
18472
18480
|
});
|
|
18473
|
-
}, [N]), { handleStepClick: Ve, handleRemoveStep: He, handleDuplicateStep: Ue, handleToggleStepEnabled: We, handleReorderSteps: Ge } =
|
|
18481
|
+
}, [N]), { handleStepClick: Ve, handleRemoveStep: He, handleDuplicateStep: Ue, handleToggleStepEnabled: We, handleReorderSteps: Ge } = KT(P, T, N, E), F = R((e, t) => {
|
|
18474
18482
|
Ve(e, t), k(e), w({ mode: "config" });
|
|
18475
18483
|
}, [Ve]), Ke = R((e, t) => {
|
|
18476
18484
|
He(e, t), w((e) => e.mode === "config" ? { mode: "closed" } : e);
|
|
@@ -18487,7 +18495,7 @@ function sD({ className: e, defaultSelectedFlowId: t }) {
|
|
|
18487
18495
|
});
|
|
18488
18496
|
}, []), Ye = R((e, t) => {
|
|
18489
18497
|
if (!P) return;
|
|
18490
|
-
let n =
|
|
18498
|
+
let n = OT(P, e).length, r = t.category === "Shared Policy Group" ? c.find((e) => e.id === t.id) : void 0;
|
|
18491
18499
|
N({
|
|
18492
18500
|
type: "ADD_STEP",
|
|
18493
18501
|
flowId: P._id,
|
|
@@ -18538,7 +18546,7 @@ function sD({ className: e, defaultSelectedFlowId: t }) {
|
|
|
18538
18546
|
requestAnimationFrame(() => Oe(!1));
|
|
18539
18547
|
})), Ee.current = t;
|
|
18540
18548
|
}, [C.mode]);
|
|
18541
|
-
let ct = rt && nt ? /* @__PURE__ */ H(
|
|
18549
|
+
let ct = rt && nt ? /* @__PURE__ */ H(rD, {
|
|
18542
18550
|
flow: rt,
|
|
18543
18551
|
phase: nt.phase,
|
|
18544
18552
|
stepIndex: nt.stepIndex,
|
|
@@ -18554,7 +18562,7 @@ function sD({ className: e, defaultSelectedFlowId: t }) {
|
|
|
18554
18562
|
onStepChange: m ? void 0 : $e,
|
|
18555
18563
|
onValidityChange: m ? void 0 : le
|
|
18556
18564
|
}) : null;
|
|
18557
|
-
return /* @__PURE__ */ U(
|
|
18565
|
+
return /* @__PURE__ */ U(ZE, {
|
|
18558
18566
|
className: e,
|
|
18559
18567
|
sidebar: /* @__PURE__ */ H(Gf, {
|
|
18560
18568
|
groups: M,
|
|
@@ -18570,7 +18578,7 @@ function sD({ className: e, defaultSelectedFlowId: t }) {
|
|
|
18570
18578
|
onFlowExecutionChange: j,
|
|
18571
18579
|
onDuplicateFlow: Re
|
|
18572
18580
|
}),
|
|
18573
|
-
infoBar: /* @__PURE__ */ H(
|
|
18581
|
+
infoBar: /* @__PURE__ */ H(DE, {
|
|
18574
18582
|
flow: P,
|
|
18575
18583
|
apiType: n,
|
|
18576
18584
|
entrypointsInfo: f,
|
|
@@ -18606,9 +18614,9 @@ function sD({ className: e, defaultSelectedFlowId: t }) {
|
|
|
18606
18614
|
/* @__PURE__ */ H(r, {
|
|
18607
18615
|
variant: "default",
|
|
18608
18616
|
className: "shrink-0",
|
|
18609
|
-
children:
|
|
18617
|
+
children: XT[nt.phase]
|
|
18610
18618
|
}),
|
|
18611
|
-
/* @__PURE__ */ H(
|
|
18619
|
+
/* @__PURE__ */ H(XE, {
|
|
18612
18620
|
apiType: n,
|
|
18613
18621
|
scope: a,
|
|
18614
18622
|
phase: nt.phase,
|
|
@@ -18646,9 +18654,9 @@ function sD({ className: e, defaultSelectedFlowId: t }) {
|
|
|
18646
18654
|
/* @__PURE__ */ H(r, {
|
|
18647
18655
|
variant: "default",
|
|
18648
18656
|
className: "shrink-0",
|
|
18649
|
-
children:
|
|
18657
|
+
children: XT[D]
|
|
18650
18658
|
}),
|
|
18651
|
-
/* @__PURE__ */ H(
|
|
18659
|
+
/* @__PURE__ */ H(XE, {
|
|
18652
18660
|
apiType: n,
|
|
18653
18661
|
scope: a,
|
|
18654
18662
|
phase: D,
|
|
@@ -18666,7 +18674,7 @@ function sD({ className: e, defaultSelectedFlowId: t }) {
|
|
|
18666
18674
|
]
|
|
18667
18675
|
}), /* @__PURE__ */ H("div", {
|
|
18668
18676
|
className: "min-h-0 flex-1",
|
|
18669
|
-
children: /* @__PURE__ */ H(
|
|
18677
|
+
children: /* @__PURE__ */ H(hT, {
|
|
18670
18678
|
policies: s,
|
|
18671
18679
|
sharedPolicyGroups: c,
|
|
18672
18680
|
apiType: n,
|
|
@@ -18683,11 +18691,11 @@ function sD({ className: e, defaultSelectedFlowId: t }) {
|
|
|
18683
18691
|
className: "h-full",
|
|
18684
18692
|
children: /* @__PURE__ */ H("div", {
|
|
18685
18693
|
className: "p-6",
|
|
18686
|
-
children: !h && ge && !P ? /* @__PURE__ */ H(
|
|
18694
|
+
children: !h && ge && !P ? /* @__PURE__ */ H(tD, {
|
|
18687
18695
|
apiType: n,
|
|
18688
18696
|
scope: a,
|
|
18689
18697
|
onAddFlow: m ? void 0 : _e
|
|
18690
|
-
}) : /* @__PURE__ */ H(
|
|
18698
|
+
}) : /* @__PURE__ */ H(YE, {
|
|
18691
18699
|
loading: h,
|
|
18692
18700
|
apiType: n,
|
|
18693
18701
|
scope: a,
|
|
@@ -18747,4 +18755,4 @@ function sD({ className: e, defaultSelectedFlowId: t }) {
|
|
|
18747
18755
|
});
|
|
18748
18756
|
}
|
|
18749
18757
|
//#endregion
|
|
18750
|
-
export { Kf as API_TYPE_TO_PROTOCOL, nd as AddFlowSheet, Vn as EMPTY_FORM_VALUES, Ad as EditFlowSheet, Sn as ElCheatSheetTrigger, qf as FLOW_PHASES_BY_API_TYPE, $u as FlowForm, Gf as FlowsSidebar, zn as HTTP_METHOD_OPTIONS, Bn as MCP_METHOD_GROUPS,
|
|
18758
|
+
export { Kf as API_TYPE_TO_PROTOCOL, nd as AddFlowSheet, Vn as EMPTY_FORM_VALUES, Ad as EditFlowSheet, Sn as ElCheatSheetTrigger, qf as FLOW_PHASES_BY_API_TYPE, $u as FlowForm, Gf as FlowsSidebar, zn as HTTP_METHOD_OPTIONS, Bn as MCP_METHOD_GROUPS, hT as PolicyCatalogPane, wT as PolicyConfigPanel, mp as PolicyIcon, gT as PolicyQuickInsert, sD as PolicyStudio, ZE as PolicyStudioLayout, Fn as PolicyStudioProvider, tp as SHARED_POLICY_GROUP_CATEGORY, WT as adjustStepIndexAfterReorder, GT as adjustStepIndexAfterSwap, wd as applyFlowReorder, id as buildFlowGroups, uE as buildGenericPolicies, qn as buildSelectors, Cd as canDropInGroup, zT as computeSaveOutput, VT as countInvalidSteps, er as createFlowFromForm, kd as duplicateFlow, Yn as extractFormValues, up as filterByCategory, ap as filterBySearch, BE as filterConnectorsByMode, yd as filterFlowGroups, $f as filterPoliciesForPhase, ep as filterSharedPolicyGroups, Td as findGroupContaining, Qn as generateFlowName, Dd as getAdjacentFlowId, pf as getAvailablePolicyCategories, rp as getCatalogPoliciesForPhase, lp as getCategories, dp as getCategoryCounts, Ed as getDropIndex, uf as getEmptyPhaseWhisper, fd as getFlowBadges, Ld as getFlowInfoBarData, hd as getFlowPathLabel, Yf as getFlowPhases, ff as getFlowPolicyCount, zd as getHttpMethodVariant, xd as getMenuRules, VE as getMessageConnectorContext, df as getPhaseCategoryCTAs, eE as getPhaseConfig, Zf as getPhaseLabel, rE as getPhaseLayout, lf as getPhaseWhisper, Jf as getProtocolType, cp as groupByCategory, BT as hasChanges, mE as resolveStep, pE as resolveStepPolicy, hE as resolveStepsForPhase, np as sharedPolicyGroupsToCatalogPolicies, IT as stripVmFields, tr as updateFlowFromForm, In as usePolicyStudioContext };
|