@kong-ui-public/entities-snis 3.1.11 → 3.1.12
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/entities-snis.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as ne, ref as F, computed as I, watch as me, renderSlot as le, createCommentVNode as G, unref as m, onBeforeMount as ct, resolveComponent as R, openBlock as w, createBlock as P, withCtx as v, createElementVNode as L, toDisplayString as E, createElementBlock as $, withModifiers as it, createVNode as N, createTextVNode as J, createSlots as zt, withDirectives as fe, vShow as ge, renderList as ut, Fragment as Ht, normalizeClass as Ee, withKeys as Wn, useSlots as Yn, resolveDynamicComponent as
|
|
1
|
+
import { defineComponent as ne, ref as F, computed as I, watch as me, renderSlot as le, createCommentVNode as G, unref as m, onBeforeMount as ct, resolveComponent as R, openBlock as w, createBlock as P, withCtx as v, createElementVNode as L, toDisplayString as E, createElementBlock as $, withModifiers as it, createVNode as N, createTextVNode as J, createSlots as zt, withDirectives as fe, vShow as ge, renderList as ut, Fragment as Ht, normalizeClass as Ee, withKeys as Wn, useSlots as Yn, resolveDynamicComponent as Ne, useCssVars as Zn, inject as Jn, onMounted as Gn, onUnmounted as Qn, normalizeStyle as Re, pushScopeId as Be, popScopeId as Ke, Teleport as Xn, reactive as vt } from "vue";
|
|
2
2
|
import { createI18n as Wt, i18nTComponent as Yt } from "@kong-ui-public/i18n";
|
|
3
3
|
import bt from "axios";
|
|
4
4
|
import "@kong/kongponents";
|
|
5
5
|
import { useRouter as Zt } from "vue-router";
|
|
6
|
-
const
|
|
6
|
+
const ei = {
|
|
7
7
|
create: "New SNI",
|
|
8
8
|
copy_id: "Copy ID",
|
|
9
9
|
copy_json: "Copy JSON",
|
|
@@ -11,10 +11,10 @@ const Xn = {
|
|
|
11
11
|
delete: "Delete",
|
|
12
12
|
clear: "Clear",
|
|
13
13
|
loading: "Loading..."
|
|
14
|
-
},
|
|
14
|
+
}, ti = {
|
|
15
15
|
placeholder: "Filter by exact name or ID",
|
|
16
16
|
no_results: "No results found"
|
|
17
|
-
},
|
|
17
|
+
}, ni = {
|
|
18
18
|
title: "SNIs",
|
|
19
19
|
list: {
|
|
20
20
|
toolbar_actions: {
|
|
@@ -31,7 +31,7 @@ const Xn = {
|
|
|
31
31
|
description: "SNIs are used to map hostnames to a certificate."
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
},
|
|
34
|
+
}, ii = {
|
|
35
35
|
sections: {
|
|
36
36
|
general: {
|
|
37
37
|
title: "General Information",
|
|
@@ -59,7 +59,7 @@ const Xn = {
|
|
|
59
59
|
footer: "Search by exact ID to find certificates not included in the list"
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
},
|
|
62
|
+
}, ri = {
|
|
63
63
|
delete: "The SNI could not be deleted at this time.",
|
|
64
64
|
general: "SNIs could not be retrieved",
|
|
65
65
|
certificates: {
|
|
@@ -67,23 +67,23 @@ const Xn = {
|
|
|
67
67
|
invalid: "Please select a valid certificate ID"
|
|
68
68
|
},
|
|
69
69
|
copy: "Failed to copy to clipboard"
|
|
70
|
-
},
|
|
70
|
+
}, ai = {
|
|
71
71
|
success: "Copied {val} to clipboard",
|
|
72
72
|
success_brief: "Successfully copied to clipboard"
|
|
73
|
-
},
|
|
74
|
-
actions:
|
|
75
|
-
search:
|
|
76
|
-
snis:
|
|
77
|
-
form:
|
|
73
|
+
}, oi = {
|
|
74
|
+
actions: ei,
|
|
75
|
+
search: ti,
|
|
76
|
+
snis: ni,
|
|
77
|
+
form: ii,
|
|
78
78
|
delete: {
|
|
79
79
|
title: "Delete an SNI",
|
|
80
80
|
description: "This action cannot be reversed so make sure to check the SNI usage before deleting."
|
|
81
81
|
},
|
|
82
|
-
errors:
|
|
83
|
-
copy:
|
|
82
|
+
errors: ri,
|
|
83
|
+
copy: ai
|
|
84
84
|
};
|
|
85
|
-
function
|
|
86
|
-
const e = Wt("en-us",
|
|
85
|
+
function li() {
|
|
86
|
+
const e = Wt("en-us", oi);
|
|
87
87
|
return {
|
|
88
88
|
i18n: e,
|
|
89
89
|
i18nT: Yt(e)
|
|
@@ -91,7 +91,7 @@ function oi() {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
const Jt = {
|
|
94
|
-
useI18n:
|
|
94
|
+
useI18n: li
|
|
95
95
|
}, Oe = "/v2/control-planes/{controlPlaneId}/core-entities", je = "/{workspace}", Fe = {
|
|
96
96
|
list: {
|
|
97
97
|
konnect: {
|
|
@@ -117,7 +117,7 @@ const Jt = {
|
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
119
|
var Gt = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(Gt || {}), De = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(De || {}), be = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(be || {});
|
|
120
|
-
function
|
|
120
|
+
function si() {
|
|
121
121
|
return {
|
|
122
122
|
getAxiosInstance: (e = {}) => {
|
|
123
123
|
try {
|
|
@@ -141,7 +141,7 @@ function li() {
|
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function ci() {
|
|
145
145
|
return {
|
|
146
146
|
debounce: (e, t) => {
|
|
147
147
|
let n;
|
|
@@ -153,14 +153,14 @@ function si() {
|
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
|
-
const Qe = "khcp-user-table-preferences",
|
|
156
|
+
const Qe = "khcp-user-table-preferences", ui = {
|
|
157
157
|
pageSize: 30,
|
|
158
158
|
sortColumnKey: void 0,
|
|
159
159
|
sortColumnOrder: void 0,
|
|
160
160
|
columnWidths: {},
|
|
161
161
|
columnVisibility: {}
|
|
162
162
|
};
|
|
163
|
-
function
|
|
163
|
+
function di() {
|
|
164
164
|
const e = (n) => {
|
|
165
165
|
if (typeof n == "string")
|
|
166
166
|
try {
|
|
@@ -184,7 +184,7 @@ function ui() {
|
|
|
184
184
|
},
|
|
185
185
|
getTablePreferences: (n) => {
|
|
186
186
|
const i = t();
|
|
187
|
-
return (i == null ? void 0 : i.get(n)) || void 0 ||
|
|
187
|
+
return (i == null ? void 0 : i.get(n)) || void 0 || ui;
|
|
188
188
|
},
|
|
189
189
|
deleteAllTablePreferences: () => {
|
|
190
190
|
localStorage.removeItem(Qe);
|
|
@@ -192,22 +192,22 @@ function ui() {
|
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
194
|
function dt(e = {}) {
|
|
195
|
-
const { getAxiosInstance: t } =
|
|
195
|
+
const { getAxiosInstance: t } = si();
|
|
196
196
|
return {
|
|
197
197
|
axiosInstance: t(e)
|
|
198
198
|
};
|
|
199
199
|
}
|
|
200
|
-
const
|
|
200
|
+
const pi = {
|
|
201
201
|
actions: {
|
|
202
202
|
copyId: "Copy ID",
|
|
203
203
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
204
204
|
copyToClipboard: "Copied successfully!",
|
|
205
205
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
206
206
|
}
|
|
207
|
-
},
|
|
207
|
+
}, fi = {
|
|
208
208
|
message: "Are you sure you want to delete this {entityType}?",
|
|
209
209
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
210
|
-
},
|
|
210
|
+
}, gi = {
|
|
211
211
|
actions: {
|
|
212
212
|
viewConfiguration: "View Configuration",
|
|
213
213
|
save: "Save",
|
|
@@ -223,13 +223,13 @@ const di = {
|
|
|
223
223
|
errors: {
|
|
224
224
|
edit: "The entity could not be edited at this time."
|
|
225
225
|
}
|
|
226
|
-
},
|
|
226
|
+
}, hi = {
|
|
227
227
|
emptyState: {
|
|
228
228
|
noSearchResultsTitle: "No results found",
|
|
229
229
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
230
230
|
noSearchResultsCtaText: "Clear"
|
|
231
231
|
}
|
|
232
|
-
},
|
|
232
|
+
}, mi = {
|
|
233
233
|
title: "Configuration",
|
|
234
234
|
actions: {
|
|
235
235
|
copy: "Copy JSON"
|
|
@@ -264,7 +264,7 @@ const di = {
|
|
|
264
264
|
entryTitle: "Entry {index}",
|
|
265
265
|
structuredFormat: "Structured"
|
|
266
266
|
}
|
|
267
|
-
},
|
|
267
|
+
}, yi = {
|
|
268
268
|
filterButtonText: "Filter",
|
|
269
269
|
fieldLabel: "Filter by:",
|
|
270
270
|
inputPlaceholder: "Enter a value",
|
|
@@ -272,17 +272,17 @@ const di = {
|
|
|
272
272
|
applyButtonText: "Apply",
|
|
273
273
|
clearButtonText: "Clear",
|
|
274
274
|
clearAllButtonText: "Clear all filters"
|
|
275
|
-
},
|
|
275
|
+
}, vi = {
|
|
276
276
|
errors: {
|
|
277
277
|
fetch: "Could not fetch available items",
|
|
278
278
|
invalid: "Please select a valid value"
|
|
279
279
|
}
|
|
280
|
-
},
|
|
280
|
+
}, bi = {
|
|
281
281
|
unexpected: "An unexpected error has occurred",
|
|
282
282
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
283
|
-
}, bi = {
|
|
284
|
-
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
285
283
|
}, wi = {
|
|
284
|
+
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
285
|
+
}, ki = {
|
|
286
286
|
enable: {
|
|
287
287
|
title: "Enable {entityType}",
|
|
288
288
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -293,20 +293,20 @@ const di = {
|
|
|
293
293
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
294
294
|
confirmText: "Yes, disable"
|
|
295
295
|
}
|
|
296
|
-
},
|
|
297
|
-
global:
|
|
298
|
-
deleteModal:
|
|
299
|
-
baseForm:
|
|
300
|
-
baseTable:
|
|
301
|
-
baseConfigCard:
|
|
302
|
-
filter:
|
|
303
|
-
debouncedFilter:
|
|
304
|
-
errors:
|
|
305
|
-
validationErrors:
|
|
306
|
-
toggleModal:
|
|
296
|
+
}, Ci = {
|
|
297
|
+
global: pi,
|
|
298
|
+
deleteModal: fi,
|
|
299
|
+
baseForm: gi,
|
|
300
|
+
baseTable: hi,
|
|
301
|
+
baseConfigCard: mi,
|
|
302
|
+
filter: yi,
|
|
303
|
+
debouncedFilter: vi,
|
|
304
|
+
errors: bi,
|
|
305
|
+
validationErrors: wi,
|
|
306
|
+
toggleModal: ki
|
|
307
307
|
};
|
|
308
308
|
function Ze() {
|
|
309
|
-
const e = Wt("en-us",
|
|
309
|
+
const e = Wt("en-us", Ci);
|
|
310
310
|
return {
|
|
311
311
|
i18n: e,
|
|
312
312
|
i18nT: Yt(e)
|
|
@@ -357,12 +357,12 @@ function Qt() {
|
|
|
357
357
|
isValidUuid: (n) => n ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(n) : !1
|
|
358
358
|
};
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Si(e, t, n, i = {
|
|
361
361
|
fetchedItemsKey: "data",
|
|
362
362
|
searchKeys: ["id"]
|
|
363
363
|
}) {
|
|
364
364
|
n || (n = "1000");
|
|
365
|
-
const { axiosInstance: r } = dt(e.axiosRequestConfig), { i18n: { t: o } } = Ze(), { debounce: a } =
|
|
365
|
+
const { axiosInstance: r } = dt(e.axiosRequestConfig), { i18n: { t: o } } = Ze(), { debounce: a } = ci(), l = a(async (h) => {
|
|
366
366
|
await W(h);
|
|
367
367
|
}, 200), s = F(!1), u = F(""), d = F(""), c = F([]), f = F([]), p = F(void 0), k = m(t);
|
|
368
368
|
let C = `${e.apiBaseUrl}${k}`;
|
|
@@ -433,13 +433,13 @@ function Ci(e, t, n, i = {
|
|
|
433
433
|
debouncedQueryChange: l
|
|
434
434
|
};
|
|
435
435
|
}
|
|
436
|
-
function
|
|
436
|
+
function Ai(e, t) {
|
|
437
437
|
const n = m(t), i = I(
|
|
438
438
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
439
439
|
);
|
|
440
440
|
return i.value.search = "", (r) => `${i.value.href}/${r}`;
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function Ii() {
|
|
443
443
|
const { i18n: { t: e } } = Ze();
|
|
444
444
|
return {
|
|
445
445
|
getMessageFromError: (t) => {
|
|
@@ -469,7 +469,7 @@ function Ai() {
|
|
|
469
469
|
}
|
|
470
470
|
};
|
|
471
471
|
}
|
|
472
|
-
function
|
|
472
|
+
function xi(e) {
|
|
473
473
|
const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
|
|
474
474
|
try {
|
|
475
475
|
const i = e.join("/"), r = `${n}${i}`, o = e.some((a) => a.trim() === "");
|
|
@@ -498,7 +498,7 @@ function Xt(e, t) {
|
|
|
498
498
|
}
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function _i(e, t, n = "data") {
|
|
502
502
|
const i = m(t), { axiosInstance: r } = dt(e.axiosRequestConfig), o = Xt(e, i), a = F({
|
|
503
503
|
status: be.Idle
|
|
504
504
|
});
|
|
@@ -544,7 +544,7 @@ function xi(e, t, n = "data") {
|
|
|
544
544
|
}
|
|
545
545
|
}, fetcherState: a };
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function Ni() {
|
|
548
548
|
const e = (n, i = "_") => n ? n.split(i).map((r) => r.toLowerCase() === "id" ? r.toUpperCase() : r.charAt(0).toUpperCase() + r.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
|
|
549
549
|
return {
|
|
550
550
|
capitalize: (n) => n ? n.replace(t, (i) => i.toUpperCase()) : "",
|
|
@@ -561,24 +561,24 @@ const en = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
561
561
|
}, kt = (e) => e === "*" || e === "x" || e === "X", Ct = (e) => {
|
|
562
562
|
const t = parseInt(e, 10);
|
|
563
563
|
return isNaN(t) ? e : t;
|
|
564
|
-
},
|
|
564
|
+
}, Ti = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Oi = (e, t) => {
|
|
565
565
|
if (kt(e) || kt(t))
|
|
566
566
|
return 0;
|
|
567
|
-
const [n, i] =
|
|
567
|
+
const [n, i] = Ti(Ct(e), Ct(t));
|
|
568
568
|
return n > i ? 1 : n < i ? -1 : 0;
|
|
569
569
|
}, St = (e, t) => {
|
|
570
570
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
571
|
-
const i =
|
|
571
|
+
const i = Oi(e[n] || "0", t[n] || "0");
|
|
572
572
|
if (i !== 0)
|
|
573
573
|
return i;
|
|
574
574
|
}
|
|
575
575
|
return 0;
|
|
576
|
-
},
|
|
576
|
+
}, ji = (e, t) => {
|
|
577
577
|
const n = wt(e), i = wt(t), r = n.pop(), o = i.pop(), a = St(n, i);
|
|
578
578
|
return a !== 0 ? a : r && o ? St(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
|
|
579
579
|
}, At = (e, t, n) => {
|
|
580
|
-
|
|
581
|
-
const i =
|
|
580
|
+
Fi(n);
|
|
581
|
+
const i = ji(e, t);
|
|
582
582
|
return tn[n].includes(i);
|
|
583
583
|
}, tn = {
|
|
584
584
|
">": [1],
|
|
@@ -587,18 +587,18 @@ const en = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
587
587
|
"<=": [-1, 0],
|
|
588
588
|
"<": [-1],
|
|
589
589
|
"!=": [-1, 1]
|
|
590
|
-
}, It = Object.keys(tn),
|
|
590
|
+
}, It = Object.keys(tn), Fi = (e) => {
|
|
591
591
|
if (typeof e != "string")
|
|
592
592
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
593
593
|
if (It.indexOf(e) === -1)
|
|
594
594
|
throw new Error(`Invalid operator, expected one of ${It.join("|")}`);
|
|
595
|
-
},
|
|
596
|
-
function
|
|
595
|
+
}, Mi = (e) => typeof e == "string" && /^[v\d]/.test(e) && en.test(e);
|
|
596
|
+
function Ei(e) {
|
|
597
597
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
598
598
|
if (!t)
|
|
599
599
|
return !0;
|
|
600
600
|
const { edition: i, version: r } = t;
|
|
601
|
-
if (!
|
|
601
|
+
if (!Mi(r))
|
|
602
602
|
return console.error("Invalid version"), !1;
|
|
603
603
|
const o = n[i];
|
|
604
604
|
if (!o)
|
|
@@ -606,7 +606,7 @@ function Mi(e) {
|
|
|
606
606
|
const [a, l] = o;
|
|
607
607
|
return !(a && At(r, a, "<") || l && At(r, l, ">"));
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function $i(e) {
|
|
610
610
|
const t = F(0), n = F(0), i = F(!1);
|
|
611
611
|
return me(e, (r) => {
|
|
612
612
|
r && !i.value && (t.value = r.offsetWidth, n.value = r.scrollWidth, i.value = !0);
|
|
@@ -614,7 +614,7 @@ function Ei(e) {
|
|
|
614
614
|
isTruncated: I(() => t.value < n.value)
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function qi() {
|
|
618
618
|
const { i18n: { t: e } } = Ze();
|
|
619
619
|
return {
|
|
620
620
|
utf8Name: (t) => /^[\p{N}\p{L}.\-_~]*$/u.test(t) ? "" : e("validationErrors.utf8Name")
|
|
@@ -622,27 +622,27 @@ function $i() {
|
|
|
622
622
|
}
|
|
623
623
|
const we = {
|
|
624
624
|
useAxios: dt,
|
|
625
|
-
useDebouncedFilter:
|
|
626
|
-
useDeleteUrlBuilder:
|
|
627
|
-
useErrors:
|
|
628
|
-
useExternalLinkCreator:
|
|
629
|
-
useFetcher:
|
|
625
|
+
useDebouncedFilter: Si,
|
|
626
|
+
useDeleteUrlBuilder: Ai,
|
|
627
|
+
useErrors: Ii,
|
|
628
|
+
useExternalLinkCreator: xi,
|
|
629
|
+
useFetcher: _i,
|
|
630
630
|
useFetchUrlBuilder: Xt,
|
|
631
631
|
useHelpers: Qt,
|
|
632
|
-
useStringHelpers:
|
|
632
|
+
useStringHelpers: Ni,
|
|
633
633
|
useI18n: Ze,
|
|
634
|
-
useGatewayFeatureSupported:
|
|
635
|
-
useTruncationDetector:
|
|
636
|
-
useValidators:
|
|
634
|
+
useGatewayFeatureSupported: Ei,
|
|
635
|
+
useTruncationDetector: $i,
|
|
636
|
+
useValidators: qi
|
|
637
637
|
}, Te = (e, t) => {
|
|
638
638
|
const n = e.__vccOpts || e;
|
|
639
639
|
for (const [i, r] of t)
|
|
640
640
|
n[i] = r;
|
|
641
641
|
return n;
|
|
642
|
-
},
|
|
642
|
+
}, Li = "#0044f4", Ui = "#afb7c5", Ri = { class: "json-config" }, Bi = {
|
|
643
643
|
key: 0,
|
|
644
644
|
class: "json-endpoint"
|
|
645
|
-
},
|
|
645
|
+
}, Ki = /* @__PURE__ */ ne({
|
|
646
646
|
__name: "JsonCodeBlock",
|
|
647
647
|
props: {
|
|
648
648
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -682,8 +682,8 @@ const we = {
|
|
|
682
682
|
});
|
|
683
683
|
return (r, o) => {
|
|
684
684
|
const a = R("KBadge"), l = R("KCodeBlock");
|
|
685
|
-
return w(), $("div",
|
|
686
|
-
t.fetcherUrl ? (w(), $("div",
|
|
685
|
+
return w(), $("div", Ri, [
|
|
686
|
+
t.fetcherUrl ? (w(), $("div", Bi, [
|
|
687
687
|
N(a, {
|
|
688
688
|
appearance: t.requestMethod
|
|
689
689
|
}, {
|
|
@@ -716,35 +716,35 @@ const we = {
|
|
|
716
716
|
function nn(e) {
|
|
717
717
|
return typeof e > "u" || e === null;
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function Pi(e) {
|
|
720
720
|
return typeof e == "object" && e !== null;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function Di(e) {
|
|
723
723
|
return Array.isArray(e) ? e : nn(e) ? [] : [e];
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function Vi(e, t) {
|
|
726
726
|
var n, i, r, o;
|
|
727
727
|
if (t)
|
|
728
728
|
for (o = Object.keys(t), n = 0, i = o.length; n < i; n += 1)
|
|
729
729
|
r = o[n], e[r] = t[r];
|
|
730
730
|
return e;
|
|
731
731
|
}
|
|
732
|
-
function
|
|
732
|
+
function zi(e, t) {
|
|
733
733
|
var n = "", i;
|
|
734
734
|
for (i = 0; i < t; i += 1)
|
|
735
735
|
n += e;
|
|
736
736
|
return n;
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function Hi(e) {
|
|
739
739
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
740
740
|
}
|
|
741
|
-
var
|
|
742
|
-
isNothing:
|
|
743
|
-
isObject:
|
|
744
|
-
toArray:
|
|
745
|
-
repeat:
|
|
746
|
-
isNegativeZero:
|
|
747
|
-
extend:
|
|
741
|
+
var Wi = nn, Yi = Pi, Zi = Di, Ji = zi, Gi = Hi, Qi = Vi, Z = {
|
|
742
|
+
isNothing: Wi,
|
|
743
|
+
isObject: Yi,
|
|
744
|
+
toArray: Zi,
|
|
745
|
+
repeat: Ji,
|
|
746
|
+
isNegativeZero: Gi,
|
|
747
|
+
extend: Qi
|
|
748
748
|
};
|
|
749
749
|
function rn(e, t) {
|
|
750
750
|
var n = "", i = e.reason || "(unknown reason)";
|
|
@@ -772,7 +772,7 @@ function Xe(e, t, n, i, r) {
|
|
|
772
772
|
function et(e, t) {
|
|
773
773
|
return Z.repeat(" ", t - e.length) + e;
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function Xi(e, t) {
|
|
776
776
|
if (t = Object.create(t || null), !e.buffer)
|
|
777
777
|
return null;
|
|
778
778
|
t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
|
|
@@ -802,7 +802,7 @@ function Qi(e, t) {
|
|
|
802
802
|
`;
|
|
803
803
|
return l.replace(/\n$/, "");
|
|
804
804
|
}
|
|
805
|
-
var
|
|
805
|
+
var er = Xi, tr = [
|
|
806
806
|
"kind",
|
|
807
807
|
"multi",
|
|
808
808
|
"resolve",
|
|
@@ -813,12 +813,12 @@ var Xi = Qi, er = [
|
|
|
813
813
|
"representName",
|
|
814
814
|
"defaultStyle",
|
|
815
815
|
"styleAliases"
|
|
816
|
-
],
|
|
816
|
+
], nr = [
|
|
817
817
|
"scalar",
|
|
818
818
|
"sequence",
|
|
819
819
|
"mapping"
|
|
820
820
|
];
|
|
821
|
-
function
|
|
821
|
+
function ir(e) {
|
|
822
822
|
var t = {};
|
|
823
823
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
824
824
|
e[n].forEach(function(i) {
|
|
@@ -826,18 +826,18 @@ function nr(e) {
|
|
|
826
826
|
});
|
|
827
827
|
}), t;
|
|
828
828
|
}
|
|
829
|
-
function
|
|
829
|
+
function rr(e, t) {
|
|
830
830
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
831
|
-
if (
|
|
831
|
+
if (tr.indexOf(n) === -1)
|
|
832
832
|
throw new ae('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
833
833
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
834
834
|
return !0;
|
|
835
835
|
}, this.construct = t.construct || function(n) {
|
|
836
836
|
return n;
|
|
837
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases =
|
|
837
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = ir(t.styleAliases || null), nr.indexOf(this.kind) === -1)
|
|
838
838
|
throw new ae('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
839
839
|
}
|
|
840
|
-
var te =
|
|
840
|
+
var te = rr;
|
|
841
841
|
function xt(e, t) {
|
|
842
842
|
var n = [];
|
|
843
843
|
return e[t].forEach(function(i) {
|
|
@@ -847,7 +847,7 @@ function xt(e, t) {
|
|
|
847
847
|
}), n[r] = i;
|
|
848
848
|
}), n;
|
|
849
849
|
}
|
|
850
|
-
function
|
|
850
|
+
function ar() {
|
|
851
851
|
var e = {
|
|
852
852
|
scalar: {},
|
|
853
853
|
sequence: {},
|
|
@@ -892,7 +892,7 @@ rt.prototype.extend = function(e) {
|
|
|
892
892
|
throw new ae("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
893
893
|
});
|
|
894
894
|
var i = Object.create(rt.prototype);
|
|
895
|
-
return i.implicit = (this.implicit || []).concat(t), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = xt(i, "implicit"), i.compiledExplicit = xt(i, "explicit"), i.compiledTypeMap =
|
|
895
|
+
return i.implicit = (this.implicit || []).concat(t), i.explicit = (this.explicit || []).concat(n), i.compiledImplicit = xt(i, "implicit"), i.compiledExplicit = xt(i, "explicit"), i.compiledTypeMap = ar(i.compiledImplicit, i.compiledExplicit), i;
|
|
896
896
|
};
|
|
897
897
|
var an = rt, on = new te("tag:yaml.org,2002:str", {
|
|
898
898
|
kind: "scalar",
|
|
@@ -916,23 +916,23 @@ var an = rt, on = new te("tag:yaml.org,2002:str", {
|
|
|
916
916
|
sn
|
|
917
917
|
]
|
|
918
918
|
});
|
|
919
|
-
function
|
|
919
|
+
function or(e) {
|
|
920
920
|
if (e === null)
|
|
921
921
|
return !0;
|
|
922
922
|
var t = e.length;
|
|
923
923
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
924
924
|
}
|
|
925
|
-
function
|
|
925
|
+
function lr() {
|
|
926
926
|
return null;
|
|
927
927
|
}
|
|
928
|
-
function
|
|
928
|
+
function sr(e) {
|
|
929
929
|
return e === null;
|
|
930
930
|
}
|
|
931
931
|
var un = new te("tag:yaml.org,2002:null", {
|
|
932
932
|
kind: "scalar",
|
|
933
|
-
resolve:
|
|
934
|
-
construct:
|
|
935
|
-
predicate:
|
|
933
|
+
resolve: or,
|
|
934
|
+
construct: lr,
|
|
935
|
+
predicate: sr,
|
|
936
936
|
represent: {
|
|
937
937
|
canonical: function() {
|
|
938
938
|
return "~";
|
|
@@ -952,23 +952,23 @@ var un = new te("tag:yaml.org,2002:null", {
|
|
|
952
952
|
},
|
|
953
953
|
defaultStyle: "lowercase"
|
|
954
954
|
});
|
|
955
|
-
function
|
|
955
|
+
function cr(e) {
|
|
956
956
|
if (e === null)
|
|
957
957
|
return !1;
|
|
958
958
|
var t = e.length;
|
|
959
959
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function ur(e) {
|
|
962
962
|
return e === "true" || e === "True" || e === "TRUE";
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function dr(e) {
|
|
965
965
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
966
966
|
}
|
|
967
967
|
var dn = new te("tag:yaml.org,2002:bool", {
|
|
968
968
|
kind: "scalar",
|
|
969
|
-
resolve:
|
|
970
|
-
construct:
|
|
971
|
-
predicate:
|
|
969
|
+
resolve: cr,
|
|
970
|
+
construct: ur,
|
|
971
|
+
predicate: dr,
|
|
972
972
|
represent: {
|
|
973
973
|
lowercase: function(e) {
|
|
974
974
|
return e ? "true" : "false";
|
|
@@ -982,16 +982,16 @@ var dn = new te("tag:yaml.org,2002:bool", {
|
|
|
982
982
|
},
|
|
983
983
|
defaultStyle: "lowercase"
|
|
984
984
|
});
|
|
985
|
-
function
|
|
985
|
+
function pr(e) {
|
|
986
986
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
987
987
|
}
|
|
988
|
-
function
|
|
988
|
+
function fr(e) {
|
|
989
989
|
return 48 <= e && e <= 55;
|
|
990
990
|
}
|
|
991
|
-
function
|
|
991
|
+
function gr(e) {
|
|
992
992
|
return 48 <= e && e <= 57;
|
|
993
993
|
}
|
|
994
|
-
function
|
|
994
|
+
function hr(e) {
|
|
995
995
|
if (e === null)
|
|
996
996
|
return !1;
|
|
997
997
|
var t = e.length, n = 0, i = !1, r;
|
|
@@ -1012,7 +1012,7 @@ function gr(e) {
|
|
|
1012
1012
|
if (r === "x") {
|
|
1013
1013
|
for (n++; n < t; n++)
|
|
1014
1014
|
if (r = e[n], r !== "_") {
|
|
1015
|
-
if (!
|
|
1015
|
+
if (!pr(e.charCodeAt(n)))
|
|
1016
1016
|
return !1;
|
|
1017
1017
|
i = !0;
|
|
1018
1018
|
}
|
|
@@ -1021,7 +1021,7 @@ function gr(e) {
|
|
|
1021
1021
|
if (r === "o") {
|
|
1022
1022
|
for (n++; n < t; n++)
|
|
1023
1023
|
if (r = e[n], r !== "_") {
|
|
1024
|
-
if (!
|
|
1024
|
+
if (!fr(e.charCodeAt(n)))
|
|
1025
1025
|
return !1;
|
|
1026
1026
|
i = !0;
|
|
1027
1027
|
}
|
|
@@ -1032,13 +1032,13 @@ function gr(e) {
|
|
|
1032
1032
|
return !1;
|
|
1033
1033
|
for (; n < t; n++)
|
|
1034
1034
|
if (r = e[n], r !== "_") {
|
|
1035
|
-
if (!
|
|
1035
|
+
if (!gr(e.charCodeAt(n)))
|
|
1036
1036
|
return !1;
|
|
1037
1037
|
i = !0;
|
|
1038
1038
|
}
|
|
1039
1039
|
return !(!i || r === "_");
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function mr(e) {
|
|
1042
1042
|
var t = e, n = 1, i;
|
|
1043
1043
|
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), i = t[0], (i === "-" || i === "+") && (i === "-" && (n = -1), t = t.slice(1), i = t[0]), t === "0")
|
|
1044
1044
|
return 0;
|
|
@@ -1052,14 +1052,14 @@ function hr(e) {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
return n * parseInt(t, 10);
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1055
|
+
function yr(e) {
|
|
1056
1056
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !Z.isNegativeZero(e);
|
|
1057
1057
|
}
|
|
1058
1058
|
var pn = new te("tag:yaml.org,2002:int", {
|
|
1059
1059
|
kind: "scalar",
|
|
1060
|
-
resolve:
|
|
1061
|
-
construct:
|
|
1062
|
-
predicate:
|
|
1060
|
+
resolve: hr,
|
|
1061
|
+
construct: mr,
|
|
1062
|
+
predicate: yr,
|
|
1063
1063
|
represent: {
|
|
1064
1064
|
binary: function(e) {
|
|
1065
1065
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1082,21 +1082,21 @@ var pn = new te("tag:yaml.org,2002:int", {
|
|
|
1082
1082
|
decimal: [10, "dec"],
|
|
1083
1083
|
hexadecimal: [16, "hex"]
|
|
1084
1084
|
}
|
|
1085
|
-
}),
|
|
1085
|
+
}), vr = new RegExp(
|
|
1086
1086
|
// 2.5e4, 2.5 and integers
|
|
1087
1087
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1088
1088
|
);
|
|
1089
|
-
function
|
|
1090
|
-
return !(e === null || !
|
|
1089
|
+
function br(e) {
|
|
1090
|
+
return !(e === null || !vr.test(e) || // Quick hack to not allow integers end with `_`
|
|
1091
1091
|
// Probably should update regexp & check speed
|
|
1092
1092
|
e[e.length - 1] === "_");
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function wr(e) {
|
|
1095
1095
|
var t, n;
|
|
1096
1096
|
return t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1, "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
1097
1097
|
}
|
|
1098
|
-
var
|
|
1099
|
-
function
|
|
1098
|
+
var kr = /^[-+]?[0-9]+e/;
|
|
1099
|
+
function Cr(e, t) {
|
|
1100
1100
|
var n;
|
|
1101
1101
|
if (isNaN(e))
|
|
1102
1102
|
switch (t) {
|
|
@@ -1127,17 +1127,17 @@ function kr(e, t) {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
else if (Z.isNegativeZero(e))
|
|
1129
1129
|
return "-0.0";
|
|
1130
|
-
return n = e.toString(10),
|
|
1130
|
+
return n = e.toString(10), kr.test(n) ? n.replace("e", ".e") : n;
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1132
|
+
function Sr(e) {
|
|
1133
1133
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Z.isNegativeZero(e));
|
|
1134
1134
|
}
|
|
1135
1135
|
var fn = new te("tag:yaml.org,2002:float", {
|
|
1136
1136
|
kind: "scalar",
|
|
1137
|
-
resolve:
|
|
1138
|
-
construct:
|
|
1139
|
-
predicate:
|
|
1140
|
-
represent:
|
|
1137
|
+
resolve: br,
|
|
1138
|
+
construct: wr,
|
|
1139
|
+
predicate: Sr,
|
|
1140
|
+
represent: Cr,
|
|
1141
1141
|
defaultStyle: "lowercase"
|
|
1142
1142
|
}), gn = cn.extend({
|
|
1143
1143
|
implicit: [
|
|
@@ -1151,10 +1151,10 @@ var fn = new te("tag:yaml.org,2002:float", {
|
|
|
1151
1151
|
), yn = new RegExp(
|
|
1152
1152
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
1153
1153
|
);
|
|
1154
|
-
function
|
|
1154
|
+
function Ar(e) {
|
|
1155
1155
|
return e === null ? !1 : mn.exec(e) !== null || yn.exec(e) !== null;
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function Ir(e) {
|
|
1158
1158
|
var t, n, i, r, o, a, l, s = 0, u = null, d, c, f;
|
|
1159
1159
|
if (t = mn.exec(e), t === null && (t = yn.exec(e)), t === null)
|
|
1160
1160
|
throw new Error("Date resolve error");
|
|
@@ -1167,25 +1167,25 @@ function Ar(e) {
|
|
|
1167
1167
|
}
|
|
1168
1168
|
return t[9] && (d = +t[10], c = +(t[11] || 0), u = (d * 60 + c) * 6e4, t[9] === "-" && (u = -u)), f = new Date(Date.UTC(n, i, r, o, a, l, s)), u && f.setTime(f.getTime() - u), f;
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1170
|
+
function xr(e) {
|
|
1171
1171
|
return e.toISOString();
|
|
1172
1172
|
}
|
|
1173
1173
|
var vn = new te("tag:yaml.org,2002:timestamp", {
|
|
1174
1174
|
kind: "scalar",
|
|
1175
|
-
resolve:
|
|
1176
|
-
construct:
|
|
1175
|
+
resolve: Ar,
|
|
1176
|
+
construct: Ir,
|
|
1177
1177
|
instanceOf: Date,
|
|
1178
|
-
represent:
|
|
1178
|
+
represent: xr
|
|
1179
1179
|
});
|
|
1180
|
-
function
|
|
1180
|
+
function _r(e) {
|
|
1181
1181
|
return e === "<<" || e === null;
|
|
1182
1182
|
}
|
|
1183
1183
|
var bn = new te("tag:yaml.org,2002:merge", {
|
|
1184
1184
|
kind: "scalar",
|
|
1185
|
-
resolve:
|
|
1185
|
+
resolve: _r
|
|
1186
1186
|
}), pt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1187
1187
|
\r`;
|
|
1188
|
-
function
|
|
1188
|
+
function Nr(e) {
|
|
1189
1189
|
if (e === null)
|
|
1190
1190
|
return !1;
|
|
1191
1191
|
var t, n, i = 0, r = e.length, o = pt;
|
|
@@ -1197,37 +1197,37 @@ function _r(e) {
|
|
|
1197
1197
|
}
|
|
1198
1198
|
return i % 8 === 0;
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1200
|
+
function Tr(e) {
|
|
1201
1201
|
var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o = pt, a = 0, l = [];
|
|
1202
1202
|
for (t = 0; t < r; t++)
|
|
1203
1203
|
t % 4 === 0 && t && (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)), a = a << 6 | o.indexOf(i.charAt(t));
|
|
1204
1204
|
return n = r % 4 * 6, n === 0 ? (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)) : n === 18 ? (l.push(a >> 10 & 255), l.push(a >> 2 & 255)) : n === 12 && l.push(a >> 4 & 255), new Uint8Array(l);
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function Or(e) {
|
|
1207
1207
|
var t = "", n = 0, i, r, o = e.length, a = pt;
|
|
1208
1208
|
for (i = 0; i < o; i++)
|
|
1209
1209
|
i % 3 === 0 && i && (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]), n = (n << 8) + e[i];
|
|
1210
1210
|
return r = o % 3, r === 0 ? (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]) : r === 2 ? (t += a[n >> 10 & 63], t += a[n >> 4 & 63], t += a[n << 2 & 63], t += a[64]) : r === 1 && (t += a[n >> 2 & 63], t += a[n << 4 & 63], t += a[64], t += a[64]), t;
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function jr(e) {
|
|
1213
1213
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1214
1214
|
}
|
|
1215
1215
|
var wn = new te("tag:yaml.org,2002:binary", {
|
|
1216
1216
|
kind: "scalar",
|
|
1217
|
-
resolve:
|
|
1218
|
-
construct:
|
|
1219
|
-
predicate:
|
|
1220
|
-
represent:
|
|
1221
|
-
}),
|
|
1222
|
-
function
|
|
1217
|
+
resolve: Nr,
|
|
1218
|
+
construct: Tr,
|
|
1219
|
+
predicate: jr,
|
|
1220
|
+
represent: Or
|
|
1221
|
+
}), Fr = Object.prototype.hasOwnProperty, Mr = Object.prototype.toString;
|
|
1222
|
+
function Er(e) {
|
|
1223
1223
|
if (e === null)
|
|
1224
1224
|
return !0;
|
|
1225
1225
|
var t = [], n, i, r, o, a, l = e;
|
|
1226
1226
|
for (n = 0, i = l.length; n < i; n += 1) {
|
|
1227
|
-
if (r = l[n], a = !1,
|
|
1227
|
+
if (r = l[n], a = !1, Mr.call(r) !== "[object Object]")
|
|
1228
1228
|
return !1;
|
|
1229
1229
|
for (o in r)
|
|
1230
|
-
if (
|
|
1230
|
+
if (Fr.call(r, o))
|
|
1231
1231
|
if (!a)
|
|
1232
1232
|
a = !0;
|
|
1233
1233
|
else
|
|
@@ -1241,26 +1241,26 @@ function Mr(e) {
|
|
|
1241
1241
|
}
|
|
1242
1242
|
return !0;
|
|
1243
1243
|
}
|
|
1244
|
-
function
|
|
1244
|
+
function $r(e) {
|
|
1245
1245
|
return e !== null ? e : [];
|
|
1246
1246
|
}
|
|
1247
1247
|
var kn = new te("tag:yaml.org,2002:omap", {
|
|
1248
1248
|
kind: "sequence",
|
|
1249
|
-
resolve:
|
|
1250
|
-
construct:
|
|
1251
|
-
}),
|
|
1252
|
-
function
|
|
1249
|
+
resolve: Er,
|
|
1250
|
+
construct: $r
|
|
1251
|
+
}), qr = Object.prototype.toString;
|
|
1252
|
+
function Lr(e) {
|
|
1253
1253
|
if (e === null)
|
|
1254
1254
|
return !0;
|
|
1255
1255
|
var t, n, i, r, o, a = e;
|
|
1256
1256
|
for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1) {
|
|
1257
|
-
if (i = a[t],
|
|
1257
|
+
if (i = a[t], qr.call(i) !== "[object Object]" || (r = Object.keys(i), r.length !== 1))
|
|
1258
1258
|
return !1;
|
|
1259
1259
|
o[t] = [r[0], i[r[0]]];
|
|
1260
1260
|
}
|
|
1261
1261
|
return !0;
|
|
1262
1262
|
}
|
|
1263
|
-
function
|
|
1263
|
+
function Ur(e) {
|
|
1264
1264
|
if (e === null)
|
|
1265
1265
|
return [];
|
|
1266
1266
|
var t, n, i, r, o, a = e;
|
|
@@ -1270,25 +1270,25 @@ function Lr(e) {
|
|
|
1270
1270
|
}
|
|
1271
1271
|
var Cn = new te("tag:yaml.org,2002:pairs", {
|
|
1272
1272
|
kind: "sequence",
|
|
1273
|
-
resolve:
|
|
1274
|
-
construct:
|
|
1275
|
-
}),
|
|
1276
|
-
function
|
|
1273
|
+
resolve: Lr,
|
|
1274
|
+
construct: Ur
|
|
1275
|
+
}), Rr = Object.prototype.hasOwnProperty;
|
|
1276
|
+
function Br(e) {
|
|
1277
1277
|
if (e === null)
|
|
1278
1278
|
return !0;
|
|
1279
1279
|
var t, n = e;
|
|
1280
1280
|
for (t in n)
|
|
1281
|
-
if (
|
|
1281
|
+
if (Rr.call(n, t) && n[t] !== null)
|
|
1282
1282
|
return !1;
|
|
1283
1283
|
return !0;
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1285
|
+
function Kr(e) {
|
|
1286
1286
|
return e !== null ? e : {};
|
|
1287
1287
|
}
|
|
1288
1288
|
var Sn = new te("tag:yaml.org,2002:set", {
|
|
1289
1289
|
kind: "mapping",
|
|
1290
|
-
resolve:
|
|
1291
|
-
construct:
|
|
1290
|
+
resolve: Br,
|
|
1291
|
+
construct: Kr
|
|
1292
1292
|
}), ft = hn.extend({
|
|
1293
1293
|
implicit: [
|
|
1294
1294
|
vn,
|
|
@@ -1300,7 +1300,7 @@ var Sn = new te("tag:yaml.org,2002:set", {
|
|
|
1300
1300
|
Cn,
|
|
1301
1301
|
Sn
|
|
1302
1302
|
]
|
|
1303
|
-
}), ye = Object.prototype.hasOwnProperty, Ve = 1, An = 2, In = 3, ze = 4, tt = 1,
|
|
1303
|
+
}), ye = Object.prototype.hasOwnProperty, Ve = 1, An = 2, In = 3, ze = 4, tt = 1, Pr = 2, _t = 3, Dr = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Vr = /[\x85\u2028\u2029]/, zr = /[,\[\]\{\}]/, xn = /^(?:!|!!|![a-z\-]+!)$/i, _n = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1304
1304
|
function Nt(e) {
|
|
1305
1305
|
return Object.prototype.toString.call(e);
|
|
1306
1306
|
}
|
|
@@ -1313,33 +1313,33 @@ function ke(e) {
|
|
|
1313
1313
|
function oe(e) {
|
|
1314
1314
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1316
|
+
function Ie(e) {
|
|
1317
1317
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1319
|
+
function Hr(e) {
|
|
1320
1320
|
var t;
|
|
1321
1321
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1323
|
+
function Wr(e) {
|
|
1324
1324
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1326
|
+
function Yr(e) {
|
|
1327
1327
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1328
1328
|
}
|
|
1329
1329
|
function Tt(e) {
|
|
1330
1330
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1331
1331
|
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function Zr(e) {
|
|
1334
1334
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1335
1335
|
(e - 65536 >> 10) + 55296,
|
|
1336
1336
|
(e - 65536 & 1023) + 56320
|
|
1337
1337
|
);
|
|
1338
1338
|
}
|
|
1339
1339
|
var Nn = new Array(256), Tn = new Array(256);
|
|
1340
|
-
for (var
|
|
1341
|
-
Nn[
|
|
1342
|
-
function
|
|
1340
|
+
for (var Se = 0; Se < 256; Se++)
|
|
1341
|
+
Nn[Se] = Tt(Se) ? 1 : 0, Tn[Se] = Tt(Se);
|
|
1342
|
+
function Jr(e, t) {
|
|
1343
1343
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || ft, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1344
1344
|
}
|
|
1345
1345
|
function On(e, t) {
|
|
@@ -1351,7 +1351,7 @@ function On(e, t) {
|
|
|
1351
1351
|
line: e.line,
|
|
1352
1352
|
column: e.position - e.lineStart
|
|
1353
1353
|
};
|
|
1354
|
-
return n.snippet =
|
|
1354
|
+
return n.snippet = er(n), new ae(t, n);
|
|
1355
1355
|
}
|
|
1356
1356
|
function b(e, t) {
|
|
1357
1357
|
throw On(e, t);
|
|
@@ -1382,7 +1382,7 @@ function he(e, t, n, i) {
|
|
|
1382
1382
|
for (r = 0, o = l.length; r < o; r += 1)
|
|
1383
1383
|
a = l.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || b(e, "expected valid JSON character");
|
|
1384
1384
|
else
|
|
1385
|
-
|
|
1385
|
+
Dr.test(l) && b(e, "the stream contains non-printable characters");
|
|
1386
1386
|
e.result += l;
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
@@ -1391,7 +1391,7 @@ function jt(e, t, n, i) {
|
|
|
1391
1391
|
for (Z.isObject(n) || b(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
|
|
1392
1392
|
o = r[a], ye.call(t, o) || (t[o] = n[o], i[o] = !0);
|
|
1393
1393
|
}
|
|
1394
|
-
function
|
|
1394
|
+
function xe(e, t, n, i, r, o, a, l, s) {
|
|
1395
1395
|
var u, d;
|
|
1396
1396
|
if (Array.isArray(r))
|
|
1397
1397
|
for (r = Array.prototype.slice.call(r), u = 0, d = r.length; u < d; u += 1)
|
|
@@ -1439,19 +1439,19 @@ function ht(e, t) {
|
|
|
1439
1439
|
t === 1 ? e.result += " " : t > 1 && (e.result += Z.repeat(`
|
|
1440
1440
|
`, t - 1));
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function Gr(e, t, n) {
|
|
1443
1443
|
var i, r, o, a, l, s, u, d, c = e.kind, f = e.result, p;
|
|
1444
|
-
if (p = e.input.charCodeAt(e.position), oe(p) ||
|
|
1444
|
+
if (p = e.input.charCodeAt(e.position), oe(p) || Ie(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (r = e.input.charCodeAt(e.position + 1), oe(r) || n && Ie(r)))
|
|
1445
1445
|
return !1;
|
|
1446
1446
|
for (e.kind = "scalar", e.result = "", o = a = e.position, l = !1; p !== 0; ) {
|
|
1447
1447
|
if (p === 58) {
|
|
1448
|
-
if (r = e.input.charCodeAt(e.position + 1), oe(r) || n &&
|
|
1448
|
+
if (r = e.input.charCodeAt(e.position + 1), oe(r) || n && Ie(r))
|
|
1449
1449
|
break;
|
|
1450
1450
|
} else if (p === 35) {
|
|
1451
1451
|
if (i = e.input.charCodeAt(e.position - 1), oe(i))
|
|
1452
1452
|
break;
|
|
1453
1453
|
} else {
|
|
1454
|
-
if (e.position === e.lineStart && Je(e) || n &&
|
|
1454
|
+
if (e.position === e.lineStart && Je(e) || n && Ie(p))
|
|
1455
1455
|
break;
|
|
1456
1456
|
if (se(p))
|
|
1457
1457
|
if (s = e.line, u = e.lineStart, d = e.lineIndent, H(e, !1, -1), e.lineIndent >= t) {
|
|
@@ -1466,7 +1466,7 @@ function Jr(e, t, n) {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
return he(e, o, a, !1), e.result ? !0 : (e.kind = c, e.result = f, !1);
|
|
1468
1468
|
}
|
|
1469
|
-
function
|
|
1469
|
+
function Qr(e, t) {
|
|
1470
1470
|
var n, i, r;
|
|
1471
1471
|
if (n = e.input.charCodeAt(e.position), n !== 39)
|
|
1472
1472
|
return !1;
|
|
@@ -1480,7 +1480,7 @@ function Gr(e, t) {
|
|
|
1480
1480
|
se(n) ? (he(e, i, r, !0), ht(e, H(e, !1, t)), i = r = e.position) : e.position === e.lineStart && Je(e) ? b(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1481
1481
|
b(e, "unexpected end of the stream within a single quoted scalar");
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1483
|
+
function Xr(e, t) {
|
|
1484
1484
|
var n, i, r, o, a, l;
|
|
1485
1485
|
if (l = e.input.charCodeAt(e.position), l !== 34)
|
|
1486
1486
|
return !1;
|
|
@@ -1492,10 +1492,10 @@ function Qr(e, t) {
|
|
|
1492
1492
|
H(e, !1, t);
|
|
1493
1493
|
else if (l < 256 && Nn[l])
|
|
1494
1494
|
e.result += Tn[l], e.position++;
|
|
1495
|
-
else if ((a =
|
|
1495
|
+
else if ((a = Wr(l)) > 0) {
|
|
1496
1496
|
for (r = a, o = 0; r > 0; r--)
|
|
1497
|
-
l = e.input.charCodeAt(++e.position), (a =
|
|
1498
|
-
e.result +=
|
|
1497
|
+
l = e.input.charCodeAt(++e.position), (a = Hr(l)) >= 0 ? o = (o << 4) + a : b(e, "expected hexadecimal character");
|
|
1498
|
+
e.result += Zr(o), e.position++;
|
|
1499
1499
|
} else
|
|
1500
1500
|
b(e, "unknown escape sequence");
|
|
1501
1501
|
n = i = e.position;
|
|
@@ -1504,7 +1504,7 @@ function Qr(e, t) {
|
|
|
1504
1504
|
}
|
|
1505
1505
|
b(e, "unexpected end of the stream within a double quoted scalar");
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1507
|
+
function ea(e, t) {
|
|
1508
1508
|
var n = !0, i, r, o, a = e.tag, l, s = e.anchor, u, d, c, f, p, k = /* @__PURE__ */ Object.create(null), C, S, j, y;
|
|
1509
1509
|
if (y = e.input.charCodeAt(e.position), y === 91)
|
|
1510
1510
|
d = 93, p = !1, l = [];
|
|
@@ -1515,11 +1515,11 @@ function Xr(e, t) {
|
|
|
1515
1515
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), y = e.input.charCodeAt(++e.position); y !== 0; ) {
|
|
1516
1516
|
if (H(e, !0, t), y = e.input.charCodeAt(e.position), y === d)
|
|
1517
1517
|
return e.position++, e.tag = a, e.anchor = s, e.kind = p ? "mapping" : "sequence", e.result = l, !0;
|
|
1518
|
-
n ? y === 44 && b(e, "expected the node content, but found ','") : b(e, "missed comma between flow collection entries"), S = C = j = null, c = f = !1, y === 63 && (u = e.input.charCodeAt(e.position + 1), oe(u) && (c = f = !0, e.position++, H(e, !0, t))), i = e.line, r = e.lineStart, o = e.position,
|
|
1518
|
+
n ? y === 44 && b(e, "expected the node content, but found ','") : b(e, "missed comma between flow collection entries"), S = C = j = null, c = f = !1, y === 63 && (u = e.input.charCodeAt(e.position + 1), oe(u) && (c = f = !0, e.position++, H(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, _e(e, t, Ve, !1, !0), S = e.tag, C = e.result, H(e, !0, t), y = e.input.charCodeAt(e.position), (f || e.line === i) && y === 58 && (c = !0, y = e.input.charCodeAt(++e.position), H(e, !0, t), _e(e, t, Ve, !1, !0), j = e.result), p ? xe(e, l, k, S, C, j, i, r, o) : c ? l.push(xe(e, null, k, S, C, j, i, r, o)) : l.push(C), H(e, !0, t), y = e.input.charCodeAt(e.position), y === 44 ? (n = !0, y = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1519
1519
|
}
|
|
1520
1520
|
b(e, "unexpected end of the stream within a flow collection");
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function ta(e, t) {
|
|
1523
1523
|
var n, i, r = tt, o = !1, a = !1, l = t, s = 0, u = !1, d, c;
|
|
1524
1524
|
if (c = e.input.charCodeAt(e.position), c === 124)
|
|
1525
1525
|
i = !1;
|
|
@@ -1529,8 +1529,8 @@ function ea(e, t) {
|
|
|
1529
1529
|
return !1;
|
|
1530
1530
|
for (e.kind = "scalar", e.result = ""; c !== 0; )
|
|
1531
1531
|
if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
|
|
1532
|
-
tt === r ? r = c === 43 ? _t :
|
|
1533
|
-
else if ((d =
|
|
1532
|
+
tt === r ? r = c === 43 ? _t : Pr : b(e, "repeat of a chomping mode identifier");
|
|
1533
|
+
else if ((d = Yr(c)) >= 0)
|
|
1534
1534
|
d === 0 ? b(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? b(e, "repeat of an indentation width identifier") : (l = t + d - 1, a = !0);
|
|
1535
1535
|
else
|
|
1536
1536
|
break;
|
|
@@ -1575,28 +1575,28 @@ function Ft(e, t) {
|
|
|
1575
1575
|
o.push(null), s = e.input.charCodeAt(e.position);
|
|
1576
1576
|
continue;
|
|
1577
1577
|
}
|
|
1578
|
-
if (n = e.line,
|
|
1578
|
+
if (n = e.line, _e(e, t, In, !1, !0), o.push(e.result), H(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
1579
1579
|
b(e, "bad indentation of a sequence entry");
|
|
1580
1580
|
else if (e.lineIndent < t)
|
|
1581
1581
|
break;
|
|
1582
1582
|
}
|
|
1583
1583
|
return l ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
|
|
1584
1584
|
}
|
|
1585
|
-
function
|
|
1585
|
+
function na(e, t, n) {
|
|
1586
1586
|
var i, r, o, a, l, s, u = e.tag, d = e.anchor, c = {}, f = /* @__PURE__ */ Object.create(null), p = null, k = null, C = null, S = !1, j = !1, y;
|
|
1587
1587
|
if (e.firstTabInLine !== -1)
|
|
1588
1588
|
return !1;
|
|
1589
1589
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), y = e.input.charCodeAt(e.position); y !== 0; ) {
|
|
1590
1590
|
if (!S && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, b(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (y === 63 || y === 58) && oe(i))
|
|
1591
|
-
y === 63 ? (S && (
|
|
1591
|
+
y === 63 ? (S && (xe(e, c, f, p, k, null, a, l, s), p = k = C = null), j = !0, S = !0, r = !0) : S ? (S = !1, r = !0) : b(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, y = i;
|
|
1592
1592
|
else {
|
|
1593
|
-
if (a = e.line, l = e.lineStart, s = e.position, !
|
|
1593
|
+
if (a = e.line, l = e.lineStart, s = e.position, !_e(e, n, An, !1, !0))
|
|
1594
1594
|
break;
|
|
1595
1595
|
if (e.line === o) {
|
|
1596
1596
|
for (y = e.input.charCodeAt(e.position); ke(y); )
|
|
1597
1597
|
y = e.input.charCodeAt(++e.position);
|
|
1598
1598
|
if (y === 58)
|
|
1599
|
-
y = e.input.charCodeAt(++e.position), oe(y) || b(e, "a whitespace character is expected after the key-value separator within a block mapping"), S && (
|
|
1599
|
+
y = e.input.charCodeAt(++e.position), oe(y) || b(e, "a whitespace character is expected after the key-value separator within a block mapping"), S && (xe(e, c, f, p, k, null, a, l, s), p = k = C = null), j = !0, S = !1, r = !1, p = e.tag, k = e.result;
|
|
1600
1600
|
else if (j)
|
|
1601
1601
|
b(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1602
1602
|
else
|
|
@@ -1606,14 +1606,14 @@ function ta(e, t, n) {
|
|
|
1606
1606
|
else
|
|
1607
1607
|
return e.tag = u, e.anchor = d, !0;
|
|
1608
1608
|
}
|
|
1609
|
-
if ((e.line === o || e.lineIndent > t) && (S && (a = e.line, l = e.lineStart, s = e.position),
|
|
1609
|
+
if ((e.line === o || e.lineIndent > t) && (S && (a = e.line, l = e.lineStart, s = e.position), _e(e, t, ze, !0, r) && (S ? k = e.result : C = e.result), S || (xe(e, c, f, p, k, C, a, l, s), p = k = C = null), H(e, !0, -1), y = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && y !== 0)
|
|
1610
1610
|
b(e, "bad indentation of a mapping entry");
|
|
1611
1611
|
else if (e.lineIndent < t)
|
|
1612
1612
|
break;
|
|
1613
1613
|
}
|
|
1614
|
-
return S &&
|
|
1614
|
+
return S && xe(e, c, f, p, k, null, a, l, s), j && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), j;
|
|
1615
1615
|
}
|
|
1616
|
-
function
|
|
1616
|
+
function ia(e) {
|
|
1617
1617
|
var t, n = !1, i = !1, r, o, a;
|
|
1618
1618
|
if (a = e.input.charCodeAt(e.position), a !== 33)
|
|
1619
1619
|
return !1;
|
|
@@ -1625,7 +1625,7 @@ function na(e) {
|
|
|
1625
1625
|
} else {
|
|
1626
1626
|
for (; a !== 0 && !oe(a); )
|
|
1627
1627
|
a === 33 && (i ? b(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), xn.test(r) || b(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
1628
|
-
o = e.input.slice(t, e.position),
|
|
1628
|
+
o = e.input.slice(t, e.position), zr.test(o) && b(e, "tag suffix cannot contain flow indicator characters");
|
|
1629
1629
|
}
|
|
1630
1630
|
o && !_n.test(o) && b(e, "tag name cannot contain such characters: " + o);
|
|
1631
1631
|
try {
|
|
@@ -1635,28 +1635,28 @@ function na(e) {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
return n ? e.tag = o : ye.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : b(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1638
|
+
function ra(e) {
|
|
1639
1639
|
var t, n;
|
|
1640
1640
|
if (n = e.input.charCodeAt(e.position), n !== 38)
|
|
1641
1641
|
return !1;
|
|
1642
|
-
for (e.anchor !== null && b(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !oe(n) && !
|
|
1642
|
+
for (e.anchor !== null && b(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !oe(n) && !Ie(n); )
|
|
1643
1643
|
n = e.input.charCodeAt(++e.position);
|
|
1644
1644
|
return e.position === t && b(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1646
|
+
function aa(e) {
|
|
1647
1647
|
var t, n, i;
|
|
1648
1648
|
if (i = e.input.charCodeAt(e.position), i !== 42)
|
|
1649
1649
|
return !1;
|
|
1650
|
-
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !oe(i) && !
|
|
1650
|
+
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !oe(i) && !Ie(i); )
|
|
1651
1651
|
i = e.input.charCodeAt(++e.position);
|
|
1652
1652
|
return e.position === t && b(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), ye.call(e.anchorMap, n) || b(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], H(e, !0, -1), !0;
|
|
1653
1653
|
}
|
|
1654
|
-
function
|
|
1654
|
+
function _e(e, t, n, i, r) {
|
|
1655
1655
|
var o, a, l, s = 1, u = !1, d = !1, c, f, p, k, C, S;
|
|
1656
1656
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = ze === n || In === n, i && H(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
1657
|
-
for (;
|
|
1657
|
+
for (; ia(e) || ra(e); )
|
|
1658
1658
|
H(e, !0, -1) ? (u = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
1659
|
-
if (l && (l = u || r), (s === 1 || ze === n) && (Ve === n || An === n ? C = t : C = t + 1, S = e.position - e.lineStart, s === 1 ? l && (Ft(e, S) ||
|
|
1659
|
+
if (l && (l = u || r), (s === 1 || ze === n) && (Ve === n || An === n ? C = t : C = t + 1, S = e.position - e.lineStart, s === 1 ? l && (Ft(e, S) || na(e, S, C)) || ea(e, C) ? d = !0 : (a && ta(e, C) || Qr(e, C) || Xr(e, C) ? d = !0 : aa(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && b(e, "alias node should not have any properties")) : Gr(e, C, Ve === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ft(e, S))), e.tag === null)
|
|
1660
1660
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1661
1661
|
else if (e.tag === "?") {
|
|
1662
1662
|
for (e.result !== null && e.kind !== "scalar" && b(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, f = e.implicitTypes.length; c < f; c += 1)
|
|
@@ -1677,7 +1677,7 @@ function Ne(e, t, n, i, r) {
|
|
|
1677
1677
|
}
|
|
1678
1678
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1680
|
+
function oa(e) {
|
|
1681
1681
|
var t = e.position, n, i, r, o = !1, a;
|
|
1682
1682
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (H(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
|
|
1683
1683
|
for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !oe(a); )
|
|
@@ -1699,7 +1699,7 @@ function aa(e) {
|
|
|
1699
1699
|
}
|
|
1700
1700
|
a !== 0 && gt(e), ye.call(Ot, i) ? Ot[i](e, i, r) : He(e, 'unknown document directive "' + i + '"');
|
|
1701
1701
|
}
|
|
1702
|
-
if (H(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, H(e, !0, -1)) : o && b(e, "directives end mark is expected"),
|
|
1702
|
+
if (H(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, H(e, !0, -1)) : o && b(e, "directives end mark is expected"), _e(e, e.lineIndent - 1, ze, !1, !0), H(e, !0, -1), e.checkLineBreaks && Vr.test(e.input.slice(t, e.position)) && He(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Je(e)) {
|
|
1703
1703
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, H(e, !0, -1));
|
|
1704
1704
|
return;
|
|
1705
1705
|
}
|
|
@@ -1711,14 +1711,14 @@ function aa(e) {
|
|
|
1711
1711
|
function jn(e, t) {
|
|
1712
1712
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
1713
1713
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
1714
|
-
var n = new
|
|
1714
|
+
var n = new Jr(e, t), i = e.indexOf("\0");
|
|
1715
1715
|
for (i !== -1 && (n.position = i, b(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
1716
1716
|
n.lineIndent += 1, n.position += 1;
|
|
1717
1717
|
for (; n.position < n.length - 1; )
|
|
1718
|
-
|
|
1718
|
+
oa(n);
|
|
1719
1719
|
return n.documents;
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1721
|
+
function la(e, t, n) {
|
|
1722
1722
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
1723
1723
|
var i = jn(e, n);
|
|
1724
1724
|
if (typeof t != "function")
|
|
@@ -1726,7 +1726,7 @@ function oa(e, t, n) {
|
|
|
1726
1726
|
for (var r = 0, o = i.length; r < o; r += 1)
|
|
1727
1727
|
t(i[r]);
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1729
|
+
function sa(e, t) {
|
|
1730
1730
|
var n = jn(e, t);
|
|
1731
1731
|
if (n.length !== 0) {
|
|
1732
1732
|
if (n.length === 1)
|
|
@@ -1734,10 +1734,10 @@ function la(e, t) {
|
|
|
1734
1734
|
throw new ae("expected a single document in the stream, but found more");
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
|
-
var
|
|
1738
|
-
loadAll:
|
|
1739
|
-
load:
|
|
1740
|
-
}, Mn = Object.prototype.toString, En = Object.prototype.hasOwnProperty, mt = 65279,
|
|
1737
|
+
var ca = la, ua = sa, Fn = {
|
|
1738
|
+
loadAll: ca,
|
|
1739
|
+
load: ua
|
|
1740
|
+
}, Mn = Object.prototype.toString, En = Object.prototype.hasOwnProperty, mt = 65279, da = 9, qe = 10, pa = 13, fa = 32, ga = 33, ha = 34, at = 35, ma = 37, ya = 38, va = 39, ba = 42, $n = 44, wa = 45, We = 58, ka = 61, Ca = 62, Sa = 63, Aa = 64, qn = 91, Ln = 93, Ia = 96, Un = 123, xa = 124, Rn = 125, ie = {};
|
|
1741
1741
|
ie[0] = "\\0";
|
|
1742
1742
|
ie[7] = "\\a";
|
|
1743
1743
|
ie[8] = "\\b";
|
|
@@ -1753,7 +1753,7 @@ ie[133] = "\\N";
|
|
|
1753
1753
|
ie[160] = "\\_";
|
|
1754
1754
|
ie[8232] = "\\L";
|
|
1755
1755
|
ie[8233] = "\\P";
|
|
1756
|
-
var
|
|
1756
|
+
var _a = [
|
|
1757
1757
|
"y",
|
|
1758
1758
|
"Y",
|
|
1759
1759
|
"yes",
|
|
@@ -1770,8 +1770,8 @@ var xa = [
|
|
|
1770
1770
|
"off",
|
|
1771
1771
|
"Off",
|
|
1772
1772
|
"OFF"
|
|
1773
|
-
],
|
|
1774
|
-
function
|
|
1773
|
+
], Na = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
1774
|
+
function Ta(e, t) {
|
|
1775
1775
|
var n, i, r, o, a, l, s;
|
|
1776
1776
|
if (t === null)
|
|
1777
1777
|
return {};
|
|
@@ -1779,7 +1779,7 @@ function Na(e, t) {
|
|
|
1779
1779
|
a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s && En.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[a] = l;
|
|
1780
1780
|
return n;
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1782
|
+
function Oa(e) {
|
|
1783
1783
|
var t, n, i;
|
|
1784
1784
|
if (t = e.toString(16).toUpperCase(), e <= 255)
|
|
1785
1785
|
n = "x", i = 2;
|
|
@@ -1791,9 +1791,9 @@ function Ta(e) {
|
|
|
1791
1791
|
throw new ae("code point within a string may not be greater than 0xFFFFFFFF");
|
|
1792
1792
|
return "\\" + n + Z.repeat("0", i - t.length) + t;
|
|
1793
1793
|
}
|
|
1794
|
-
var
|
|
1795
|
-
function
|
|
1796
|
-
this.schema = e.schema || ft, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = Z.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap =
|
|
1794
|
+
var ja = 1, Le = 2;
|
|
1795
|
+
function Fa(e) {
|
|
1796
|
+
this.schema = e.schema || ft, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = Z.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Ta(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Le : ja, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
1797
1797
|
}
|
|
1798
1798
|
function Mt(e, t) {
|
|
1799
1799
|
for (var n = Z.repeat(" ", t), i = 0, r = -1, o = "", a, l = e.length; i < l; )
|
|
@@ -1806,7 +1806,7 @@ function ot(e, t) {
|
|
|
1806
1806
|
return `
|
|
1807
1807
|
` + Z.repeat(" ", e.indent * t);
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function Ma(e, t) {
|
|
1810
1810
|
var n, i, r;
|
|
1811
1811
|
for (n = 0, i = e.implicitTypes.length; n < i; n += 1)
|
|
1812
1812
|
if (r = e.implicitTypes[n], r.resolve(t))
|
|
@@ -1814,13 +1814,13 @@ function Fa(e, t) {
|
|
|
1814
1814
|
return !1;
|
|
1815
1815
|
}
|
|
1816
1816
|
function Ye(e) {
|
|
1817
|
-
return e ===
|
|
1817
|
+
return e === fa || e === da;
|
|
1818
1818
|
}
|
|
1819
1819
|
function Ue(e) {
|
|
1820
1820
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== mt || 65536 <= e && e <= 1114111;
|
|
1821
1821
|
}
|
|
1822
1822
|
function Et(e) {
|
|
1823
|
-
return Ue(e) && e !== mt && e !==
|
|
1823
|
+
return Ue(e) && e !== mt && e !== pa && e !== qe;
|
|
1824
1824
|
}
|
|
1825
1825
|
function $t(e, t, n) {
|
|
1826
1826
|
var i = Et(e), r = i && !Ye(e);
|
|
@@ -1832,10 +1832,10 @@ function $t(e, t, n) {
|
|
|
1832
1832
|
) : i && e !== $n && e !== qn && e !== Ln && e !== Un && e !== Rn) && e !== at && !(t === We && !r) || Et(t) && !Ye(t) && e === at || t === We && r
|
|
1833
1833
|
);
|
|
1834
1834
|
}
|
|
1835
|
-
function Ma(e) {
|
|
1836
|
-
return Ue(e) && e !== mt && !Ye(e) && e !== ba && e !== Ca && e !== We && e !== $n && e !== qn && e !== Ln && e !== Un && e !== Rn && e !== at && e !== ma && e !== va && e !== fa && e !== Ia && e !== wa && e !== ka && e !== ya && e !== ga && e !== ha && e !== Sa && e !== Aa;
|
|
1837
|
-
}
|
|
1838
1835
|
function Ea(e) {
|
|
1836
|
+
return Ue(e) && e !== mt && !Ye(e) && e !== wa && e !== Sa && e !== We && e !== $n && e !== qn && e !== Ln && e !== Un && e !== Rn && e !== at && e !== ya && e !== ba && e !== ga && e !== xa && e !== ka && e !== Ca && e !== va && e !== ha && e !== ma && e !== Aa && e !== Ia;
|
|
1837
|
+
}
|
|
1838
|
+
function $a(e) {
|
|
1839
1839
|
return !Ye(e) && e !== We;
|
|
1840
1840
|
}
|
|
1841
1841
|
function Me(e, t) {
|
|
@@ -1846,13 +1846,13 @@ function Bn(e) {
|
|
|
1846
1846
|
var t = /^\n* /;
|
|
1847
1847
|
return t.test(e);
|
|
1848
1848
|
}
|
|
1849
|
-
var Kn = 1, lt = 2, Pn = 3, Dn = 4,
|
|
1850
|
-
function
|
|
1851
|
-
var s, u = 0, d = null, c = !1, f = !1, p = i !== -1, k = -1, C =
|
|
1849
|
+
var Kn = 1, lt = 2, Pn = 3, Dn = 4, Ae = 5;
|
|
1850
|
+
function qa(e, t, n, i, r, o, a, l) {
|
|
1851
|
+
var s, u = 0, d = null, c = !1, f = !1, p = i !== -1, k = -1, C = Ea(Me(e, 0)) && $a(Me(e, e.length - 1));
|
|
1852
1852
|
if (t || a)
|
|
1853
1853
|
for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
|
|
1854
1854
|
if (u = Me(e, s), !Ue(u))
|
|
1855
|
-
return
|
|
1855
|
+
return Ae;
|
|
1856
1856
|
C = C && $t(u, d, l), d = u;
|
|
1857
1857
|
}
|
|
1858
1858
|
else {
|
|
@@ -1861,24 +1861,24 @@ function $a(e, t, n, i, r, o, a, l) {
|
|
|
1861
1861
|
c = !0, p && (f = f || // Foldable line = too long, and not more-indented.
|
|
1862
1862
|
s - k - 1 > i && e[k + 1] !== " ", k = s);
|
|
1863
1863
|
else if (!Ue(u))
|
|
1864
|
-
return
|
|
1864
|
+
return Ae;
|
|
1865
1865
|
C = C && $t(u, d, l), d = u;
|
|
1866
1866
|
}
|
|
1867
1867
|
f = f || p && s - k - 1 > i && e[k + 1] !== " ";
|
|
1868
1868
|
}
|
|
1869
|
-
return !c && !f ? C && !a && !r(e) ? Kn : o === Le ?
|
|
1869
|
+
return !c && !f ? C && !a && !r(e) ? Kn : o === Le ? Ae : lt : n > 9 && Bn(e) ? Ae : a ? o === Le ? Ae : lt : f ? Dn : Pn;
|
|
1870
1870
|
}
|
|
1871
|
-
function
|
|
1871
|
+
function La(e, t, n, i, r) {
|
|
1872
1872
|
e.dump = function() {
|
|
1873
1873
|
if (t.length === 0)
|
|
1874
1874
|
return e.quotingType === Le ? '""' : "''";
|
|
1875
|
-
if (!e.noCompatMode && (
|
|
1875
|
+
if (!e.noCompatMode && (_a.indexOf(t) !== -1 || Na.test(t)))
|
|
1876
1876
|
return e.quotingType === Le ? '"' + t + '"' : "'" + t + "'";
|
|
1877
1877
|
var o = e.indent * Math.max(1, n), a = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), l = i || e.flowLevel > -1 && n >= e.flowLevel;
|
|
1878
1878
|
function s(u) {
|
|
1879
|
-
return
|
|
1879
|
+
return Ma(e, u);
|
|
1880
1880
|
}
|
|
1881
|
-
switch (
|
|
1881
|
+
switch (qa(
|
|
1882
1882
|
t,
|
|
1883
1883
|
l,
|
|
1884
1884
|
e.indent,
|
|
@@ -1895,9 +1895,9 @@ function qa(e, t, n, i, r) {
|
|
|
1895
1895
|
case Pn:
|
|
1896
1896
|
return "|" + qt(t, e.indent) + Lt(Mt(t, o));
|
|
1897
1897
|
case Dn:
|
|
1898
|
-
return ">" + qt(t, e.indent) + Lt(Mt(
|
|
1899
|
-
case
|
|
1900
|
-
return '"' +
|
|
1898
|
+
return ">" + qt(t, e.indent) + Lt(Mt(Ua(t, a), o));
|
|
1899
|
+
case Ae:
|
|
1900
|
+
return '"' + Ra(t) + '"';
|
|
1901
1901
|
default:
|
|
1902
1902
|
throw new ae("impossible error: invalid scalar style");
|
|
1903
1903
|
}
|
|
@@ -1915,7 +1915,7 @@ function Lt(e) {
|
|
|
1915
1915
|
return e[e.length - 1] === `
|
|
1916
1916
|
` ? e.slice(0, -1) : e;
|
|
1917
1917
|
}
|
|
1918
|
-
function
|
|
1918
|
+
function Ua(e, t) {
|
|
1919
1919
|
for (var n = /(\n+)([^\n]*)/g, i = function() {
|
|
1920
1920
|
var u = e.indexOf(`
|
|
1921
1921
|
`);
|
|
@@ -1938,12 +1938,12 @@ function Ut(e, t) {
|
|
|
1938
1938
|
`, e.length - r > t && a > r ? s += e.slice(r, a) + `
|
|
1939
1939
|
` + e.slice(a + 1) : s += e.slice(r), s.slice(1);
|
|
1940
1940
|
}
|
|
1941
|
-
function
|
|
1941
|
+
function Ra(e) {
|
|
1942
1942
|
for (var t = "", n = 0, i, r = 0; r < e.length; n >= 65536 ? r += 2 : r++)
|
|
1943
|
-
n = Me(e, r), i = ie[n], !i && Ue(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i ||
|
|
1943
|
+
n = Me(e, r), i = ie[n], !i && Ue(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || Oa(n);
|
|
1944
1944
|
return t;
|
|
1945
1945
|
}
|
|
1946
|
-
function
|
|
1946
|
+
function Ba(e, t, n) {
|
|
1947
1947
|
var i = "", r = e.tag, o, a, l;
|
|
1948
1948
|
for (o = 0, a = n.length; o < a; o += 1)
|
|
1949
1949
|
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (de(e, t, l, !1, !1) || typeof l > "u" && de(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
|
|
@@ -1955,13 +1955,13 @@ function Rt(e, t, n, i) {
|
|
|
1955
1955
|
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (de(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && de(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += ot(e, t)), e.dump && qe === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
1956
1956
|
e.tag = o, e.dump = r || "[]";
|
|
1957
1957
|
}
|
|
1958
|
-
function
|
|
1958
|
+
function Ka(e, t, n) {
|
|
1959
1959
|
var i = "", r = e.tag, o = Object.keys(n), a, l, s, u, d;
|
|
1960
1960
|
for (a = 0, l = o.length; a < l; a += 1)
|
|
1961
1961
|
d = "", i !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = o[a], u = n[s], e.replacer && (u = e.replacer.call(n, s, u)), de(e, t, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), de(e, t, u, !1, !1) && (d += e.dump, i += d));
|
|
1962
1962
|
e.tag = r, e.dump = "{" + i + "}";
|
|
1963
1963
|
}
|
|
1964
|
-
function
|
|
1964
|
+
function Pa(e, t, n, i) {
|
|
1965
1965
|
var r = "", o = e.tag, a = Object.keys(n), l, s, u, d, c, f;
|
|
1966
1966
|
if (e.sortKeys === !0)
|
|
1967
1967
|
a.sort();
|
|
@@ -1999,11 +1999,11 @@ function de(e, t, n, i, r, o, a) {
|
|
|
1999
1999
|
e.dump = "*ref_" + c;
|
|
2000
2000
|
else {
|
|
2001
2001
|
if (d && f && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), l === "[object Object]")
|
|
2002
|
-
i && Object.keys(e.dump).length !== 0 ? (
|
|
2002
|
+
i && Object.keys(e.dump).length !== 0 ? (Pa(e, t, e.dump, r), f && (e.dump = "&ref_" + c + e.dump)) : (Ka(e, t, e.dump), f && (e.dump = "&ref_" + c + " " + e.dump));
|
|
2003
2003
|
else if (l === "[object Array]")
|
|
2004
|
-
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Rt(e, t - 1, e.dump, r) : Rt(e, t, e.dump, r), f && (e.dump = "&ref_" + c + e.dump)) : (
|
|
2004
|
+
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Rt(e, t - 1, e.dump, r) : Rt(e, t, e.dump, r), f && (e.dump = "&ref_" + c + e.dump)) : (Ba(e, t, e.dump), f && (e.dump = "&ref_" + c + " " + e.dump));
|
|
2005
2005
|
else if (l === "[object String]")
|
|
2006
|
-
e.tag !== "?" &&
|
|
2006
|
+
e.tag !== "?" && La(e, e.dump, t, o, s);
|
|
2007
2007
|
else {
|
|
2008
2008
|
if (l === "[object Undefined]" || e.skipInvalid)
|
|
2009
2009
|
return !1;
|
|
@@ -2015,7 +2015,7 @@ function de(e, t, n, i, r, o, a) {
|
|
|
2015
2015
|
}
|
|
2016
2016
|
return !0;
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function Da(e, t) {
|
|
2019
2019
|
var n = [], i = [], r, o;
|
|
2020
2020
|
for (st(e, n, i), r = 0, o = i.length; r < o; r += 1)
|
|
2021
2021
|
t.duplicates.push(n[i[r]]);
|
|
@@ -2033,23 +2033,23 @@ function st(e, t, n) {
|
|
|
2033
2033
|
for (i = Object.keys(e), r = 0, o = i.length; r < o; r += 1)
|
|
2034
2034
|
st(e[i[r]], t, n);
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function Va(e, t) {
|
|
2037
2037
|
t = t || {};
|
|
2038
|
-
var n = new
|
|
2039
|
-
n.noRefs ||
|
|
2038
|
+
var n = new Fa(t);
|
|
2039
|
+
n.noRefs || Da(e, n);
|
|
2040
2040
|
var i = e;
|
|
2041
2041
|
return n.replacer && (i = n.replacer.call({ "": i }, "", i)), de(n, 0, i, !0, !0) ? n.dump + `
|
|
2042
2042
|
` : "";
|
|
2043
2043
|
}
|
|
2044
|
-
var
|
|
2045
|
-
dump:
|
|
2044
|
+
var za = Va, Ha = {
|
|
2045
|
+
dump: za
|
|
2046
2046
|
};
|
|
2047
2047
|
function yt(e, t) {
|
|
2048
2048
|
return function() {
|
|
2049
2049
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2050
2050
|
};
|
|
2051
2051
|
}
|
|
2052
|
-
var
|
|
2052
|
+
var Wa = te, Ya = an, Za = cn, Ja = gn, Ga = hn, Qa = ft, Xa = Fn.load, eo = Fn.loadAll, to = Ha.dump, no = ae, io = {
|
|
2053
2053
|
binary: wn,
|
|
2054
2054
|
float: fn,
|
|
2055
2055
|
map: sn,
|
|
@@ -2063,23 +2063,23 @@ var Ha = te, Wa = an, Ya = cn, Za = gn, Ja = hn, Ga = ft, Qa = Fn.load, Xa = Fn.
|
|
|
2063
2063
|
omap: kn,
|
|
2064
2064
|
seq: ln,
|
|
2065
2065
|
str: on
|
|
2066
|
-
},
|
|
2067
|
-
Type:
|
|
2068
|
-
Schema:
|
|
2069
|
-
FAILSAFE_SCHEMA:
|
|
2070
|
-
JSON_SCHEMA:
|
|
2071
|
-
CORE_SCHEMA:
|
|
2072
|
-
DEFAULT_SCHEMA:
|
|
2073
|
-
load:
|
|
2074
|
-
loadAll:
|
|
2075
|
-
dump:
|
|
2076
|
-
YAMLException:
|
|
2077
|
-
types:
|
|
2078
|
-
safeLoad:
|
|
2079
|
-
safeLoadAll:
|
|
2080
|
-
safeDump:
|
|
2066
|
+
}, ro = yt("safeLoad", "load"), ao = yt("safeLoadAll", "loadAll"), oo = yt("safeDump", "dump"), lo = {
|
|
2067
|
+
Type: Wa,
|
|
2068
|
+
Schema: Ya,
|
|
2069
|
+
FAILSAFE_SCHEMA: Za,
|
|
2070
|
+
JSON_SCHEMA: Ja,
|
|
2071
|
+
CORE_SCHEMA: Ga,
|
|
2072
|
+
DEFAULT_SCHEMA: Qa,
|
|
2073
|
+
load: Xa,
|
|
2074
|
+
loadAll: eo,
|
|
2075
|
+
dump: to,
|
|
2076
|
+
YAMLException: no,
|
|
2077
|
+
types: io,
|
|
2078
|
+
safeLoad: ro,
|
|
2079
|
+
safeLoadAll: ao,
|
|
2080
|
+
safeDump: oo
|
|
2081
2081
|
};
|
|
2082
|
-
const
|
|
2082
|
+
const so = { class: "yaml-config" }, co = /* @__PURE__ */ ne({
|
|
2083
2083
|
__name: "YamlCodeBlock",
|
|
2084
2084
|
props: {
|
|
2085
2085
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2091,11 +2091,11 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
2091
2091
|
setup(e) {
|
|
2092
2092
|
const t = e, n = I(() => {
|
|
2093
2093
|
const i = Object.fromEntries(Object.entries(t.yamlRecord).filter(([, r]) => r !== null && r !== "" && (Array.isArray(r) ? r.length !== 0 : !0)));
|
|
2094
|
-
return Object.keys(i).length === 0 && i.constructor === Object ? "" :
|
|
2094
|
+
return Object.keys(i).length === 0 && i.constructor === Object ? "" : lo.dump(i).trim();
|
|
2095
2095
|
});
|
|
2096
2096
|
return (i, r) => {
|
|
2097
2097
|
const o = R("KCodeBlock");
|
|
2098
|
-
return w(), $("div",
|
|
2098
|
+
return w(), $("div", so, [
|
|
2099
2099
|
t.yamlRecord ? (w(), P(o, {
|
|
2100
2100
|
key: 0,
|
|
2101
2101
|
id: "yaml-codeblock",
|
|
@@ -2111,13 +2111,13 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
2111
2111
|
for (const [i, r] of t)
|
|
2112
2112
|
n[i] = r;
|
|
2113
2113
|
return n;
|
|
2114
|
-
},
|
|
2114
|
+
}, uo = (e) => (Be("data-v-1d2a8d30"), e = e(), Ke(), e), po = ["aria-hidden"], fo = {
|
|
2115
2115
|
key: 0,
|
|
2116
2116
|
"data-testid": "kui-icon-svg-title"
|
|
2117
|
-
},
|
|
2117
|
+
}, go = /* @__PURE__ */ uo(() => /* @__PURE__ */ L("path", {
|
|
2118
2118
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2119
2119
|
fill: "currentColor"
|
|
2120
|
-
}, null, -1)),
|
|
2120
|
+
}, null, -1)), ho = /* @__PURE__ */ ne({
|
|
2121
2121
|
__name: "AddIcon",
|
|
2122
2122
|
props: {
|
|
2123
2123
|
/** The accessibility text provided to screen readers */
|
|
@@ -2186,7 +2186,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
2186
2186
|
lineHeight: "0",
|
|
2187
2187
|
width: n.value
|
|
2188
2188
|
}));
|
|
2189
|
-
return (r, o) => (w(), P(
|
|
2189
|
+
return (r, o) => (w(), P(Ne(e.as), {
|
|
2190
2190
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2191
2191
|
class: "kui-icon add-icon",
|
|
2192
2192
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
@@ -2203,20 +2203,20 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
2203
2203
|
width: "100%",
|
|
2204
2204
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2205
2205
|
}, [
|
|
2206
|
-
e.title ? (w(), $("title",
|
|
2207
|
-
|
|
2208
|
-
], 8,
|
|
2206
|
+
e.title ? (w(), $("title", fo, E(e.title), 1)) : G("", !0),
|
|
2207
|
+
go
|
|
2208
|
+
], 8, po))
|
|
2209
2209
|
]),
|
|
2210
2210
|
_: 1
|
|
2211
2211
|
}, 8, ["aria-hidden", "style"]));
|
|
2212
2212
|
}
|
|
2213
|
-
}),
|
|
2213
|
+
}), mo = /* @__PURE__ */ Ge(ho, [["__scopeId", "data-v-1d2a8d30"]]), yo = (e) => (Be("data-v-219f8484"), e = e(), Ke(), e), vo = ["aria-hidden"], bo = {
|
|
2214
2214
|
key: 0,
|
|
2215
2215
|
"data-testid": "kui-icon-svg-title"
|
|
2216
|
-
},
|
|
2216
|
+
}, wo = /* @__PURE__ */ yo(() => /* @__PURE__ */ L("path", {
|
|
2217
2217
|
d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
|
|
2218
2218
|
fill: "currentColor"
|
|
2219
|
-
}, null, -1)),
|
|
2219
|
+
}, null, -1)), ko = /* @__PURE__ */ ne({
|
|
2220
2220
|
__name: "ChevronDownIcon",
|
|
2221
2221
|
props: {
|
|
2222
2222
|
/** The accessibility text provided to screen readers */
|
|
@@ -2285,7 +2285,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
2285
2285
|
lineHeight: "0",
|
|
2286
2286
|
width: n.value
|
|
2287
2287
|
}));
|
|
2288
|
-
return (r, o) => (w(), P(
|
|
2288
|
+
return (r, o) => (w(), P(Ne(e.as), {
|
|
2289
2289
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2290
2290
|
class: "kui-icon chevron-down-icon",
|
|
2291
2291
|
"data-testid": "kui-icon-wrapper-chevron-down-icon",
|
|
@@ -2302,20 +2302,20 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
2302
2302
|
width: "100%",
|
|
2303
2303
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2304
2304
|
}, [
|
|
2305
|
-
e.title ? (w(), $("title",
|
|
2306
|
-
|
|
2307
|
-
], 8,
|
|
2305
|
+
e.title ? (w(), $("title", bo, E(e.title), 1)) : G("", !0),
|
|
2306
|
+
wo
|
|
2307
|
+
], 8, vo))
|
|
2308
2308
|
]),
|
|
2309
2309
|
_: 1
|
|
2310
2310
|
}, 8, ["aria-hidden", "style"]));
|
|
2311
2311
|
}
|
|
2312
|
-
}),
|
|
2312
|
+
}), Co = /* @__PURE__ */ Ge(ko, [["__scopeId", "data-v-219f8484"]]), So = (e) => (Be("data-v-ed11facd"), e = e(), Ke(), e), Ao = ["aria-hidden"], Io = {
|
|
2313
2313
|
key: 0,
|
|
2314
2314
|
"data-testid": "kui-icon-svg-title"
|
|
2315
|
-
},
|
|
2315
|
+
}, xo = /* @__PURE__ */ So(() => /* @__PURE__ */ L("path", {
|
|
2316
2316
|
d: "M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",
|
|
2317
2317
|
fill: "currentColor"
|
|
2318
|
-
}, null, -1)),
|
|
2318
|
+
}, null, -1)), _o = /* @__PURE__ */ ne({
|
|
2319
2319
|
__name: "CloseIcon",
|
|
2320
2320
|
props: {
|
|
2321
2321
|
/** The accessibility text provided to screen readers */
|
|
@@ -2384,7 +2384,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
2384
2384
|
lineHeight: "0",
|
|
2385
2385
|
width: n.value
|
|
2386
2386
|
}));
|
|
2387
|
-
return (r, o) => (w(), P(
|
|
2387
|
+
return (r, o) => (w(), P(Ne(e.as), {
|
|
2388
2388
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2389
2389
|
class: "kui-icon close-icon",
|
|
2390
2390
|
"data-testid": "kui-icon-wrapper-close-icon",
|
|
@@ -2401,20 +2401,20 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
2401
2401
|
width: "100%",
|
|
2402
2402
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2403
2403
|
}, [
|
|
2404
|
-
e.title ? (w(), $("title",
|
|
2405
|
-
|
|
2406
|
-
], 8,
|
|
2404
|
+
e.title ? (w(), $("title", Io, E(e.title), 1)) : G("", !0),
|
|
2405
|
+
xo
|
|
2406
|
+
], 8, Ao))
|
|
2407
2407
|
]),
|
|
2408
2408
|
_: 1
|
|
2409
2409
|
}, 8, ["aria-hidden", "style"]));
|
|
2410
2410
|
}
|
|
2411
|
-
}),
|
|
2411
|
+
}), No = /* @__PURE__ */ Ge(_o, [["__scopeId", "data-v-ed11facd"]]), To = (e) => (Be("data-v-cf4e7d0b"), e = e(), Ke(), e), Oo = ["aria-hidden"], jo = {
|
|
2412
2412
|
key: 0,
|
|
2413
2413
|
"data-testid": "kui-icon-svg-title"
|
|
2414
|
-
},
|
|
2414
|
+
}, Fo = /* @__PURE__ */ To(() => /* @__PURE__ */ L("path", {
|
|
2415
2415
|
d: "M12 20C11.45 20 10.9792 19.8042 10.5875 19.4125C10.1958 19.0208 10 18.55 10 18C10 17.45 10.1958 16.9792 10.5875 16.5875C10.9792 16.1958 11.45 16 12 16C12.55 16 13.0208 16.1958 13.4125 16.5875C13.8042 16.9792 14 17.45 14 18C14 18.55 13.8042 19.0208 13.4125 19.4125C13.0208 19.8042 12.55 20 12 20ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14ZM12 8C11.45 8 10.9792 7.80417 10.5875 7.4125C10.1958 7.02083 10 6.55 10 6C10 5.45 10.1958 4.97917 10.5875 4.5875C10.9792 4.19583 11.45 4 12 4C12.55 4 13.0208 4.19583 13.4125 4.5875C13.8042 4.97917 14 5.45 14 6C14 6.55 13.8042 7.02083 13.4125 7.4125C13.0208 7.80417 12.55 8 12 8Z",
|
|
2416
2416
|
fill: "currentColor"
|
|
2417
|
-
}, null, -1)),
|
|
2417
|
+
}, null, -1)), Mo = /* @__PURE__ */ ne({
|
|
2418
2418
|
__name: "MoreIcon",
|
|
2419
2419
|
props: {
|
|
2420
2420
|
/** The accessibility text provided to screen readers */
|
|
@@ -2483,7 +2483,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
2483
2483
|
lineHeight: "0",
|
|
2484
2484
|
width: n.value
|
|
2485
2485
|
}));
|
|
2486
|
-
return (r, o) => (w(), P(
|
|
2486
|
+
return (r, o) => (w(), P(Ne(e.as), {
|
|
2487
2487
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2488
2488
|
class: "kui-icon more-icon",
|
|
2489
2489
|
"data-testid": "kui-icon-wrapper-more-icon",
|
|
@@ -2500,17 +2500,17 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
2500
2500
|
width: "100%",
|
|
2501
2501
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2502
2502
|
}, [
|
|
2503
|
-
e.title ? (w(), $("title",
|
|
2504
|
-
|
|
2505
|
-
], 8,
|
|
2503
|
+
e.title ? (w(), $("title", jo, E(e.title), 1)) : G("", !0),
|
|
2504
|
+
Fo
|
|
2505
|
+
], 8, Oo))
|
|
2506
2506
|
]),
|
|
2507
2507
|
_: 1
|
|
2508
2508
|
}, 8, ["aria-hidden", "style"]));
|
|
2509
2509
|
}
|
|
2510
|
-
}),
|
|
2510
|
+
}), Eo = /* @__PURE__ */ Ge(Mo, [["__scopeId", "data-v-cf4e7d0b"]]), $o = ["novalidate"], qo = {
|
|
2511
2511
|
class: "form-actions",
|
|
2512
2512
|
"data-testid": "form-actions"
|
|
2513
|
-
},
|
|
2513
|
+
}, Lo = /* @__PURE__ */ ne({
|
|
2514
2514
|
__name: "EntityBaseForm",
|
|
2515
2515
|
props: {
|
|
2516
2516
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2640,7 +2640,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
2640
2640
|
"data-testid": "form-error",
|
|
2641
2641
|
message: e.errorMessage
|
|
2642
2642
|
}, null, 8, ["message"])) : G("", !0),
|
|
2643
|
-
L("div",
|
|
2643
|
+
L("div", qo, [
|
|
2644
2644
|
le(h.$slots, "form-actions", {}, () => [
|
|
2645
2645
|
N(x, {
|
|
2646
2646
|
appearance: "tertiary",
|
|
@@ -2676,7 +2676,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
2676
2676
|
}, 8, ["disabled"])
|
|
2677
2677
|
], !0)
|
|
2678
2678
|
])
|
|
2679
|
-
], 40,
|
|
2679
|
+
], 40, $o)),
|
|
2680
2680
|
N(B, {
|
|
2681
2681
|
"close-on-blur": !1,
|
|
2682
2682
|
"data-testid": "form-view-configuration-slideout",
|
|
@@ -2693,7 +2693,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
2693
2693
|
tabs: W.value
|
|
2694
2694
|
}, {
|
|
2695
2695
|
json: v(() => [
|
|
2696
|
-
N(
|
|
2696
|
+
N(Ki, {
|
|
2697
2697
|
config: e.config,
|
|
2698
2698
|
"fetcher-url": k.value,
|
|
2699
2699
|
"json-record": r.formFields,
|
|
@@ -2701,7 +2701,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
2701
2701
|
}, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
|
|
2702
2702
|
]),
|
|
2703
2703
|
yaml: v(() => [
|
|
2704
|
-
N(
|
|
2704
|
+
N(co, {
|
|
2705
2705
|
"yaml-record": r.formFields
|
|
2706
2706
|
}, null, 8, ["yaml-record"])
|
|
2707
2707
|
]),
|
|
@@ -2715,7 +2715,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
2715
2715
|
});
|
|
2716
2716
|
};
|
|
2717
2717
|
}
|
|
2718
|
-
}),
|
|
2718
|
+
}), Uo = /* @__PURE__ */ Te(Lo, [["__scopeId", "data-v-3def74fe"]]), Ro = ["data-truncate"], Bo = /* @__PURE__ */ ne({
|
|
2719
2719
|
__name: "EntityBaseTableCell",
|
|
2720
2720
|
props: {
|
|
2721
2721
|
keyName: {
|
|
@@ -2794,14 +2794,14 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
2794
2794
|
]),
|
|
2795
2795
|
_: 3
|
|
2796
2796
|
}, 8, ["text"])
|
|
2797
|
-
], 8,
|
|
2797
|
+
], 8, Ro)) : le(S.$slots, "default", { key: 1 }, void 0, !0)
|
|
2798
2798
|
], 512);
|
|
2799
2799
|
};
|
|
2800
2800
|
}
|
|
2801
|
-
}),
|
|
2801
|
+
}), Ko = /* @__PURE__ */ Te(Bo, [["__scopeId", "data-v-471ce76e"]]), Po = { class: "toolbar-container" }, Do = {
|
|
2802
2802
|
key: 0,
|
|
2803
2803
|
class: "toolbar-button-container"
|
|
2804
|
-
},
|
|
2804
|
+
}, Vo = ["data-testid"], zo = /* @__PURE__ */ ne({
|
|
2805
2805
|
__name: "EntityBaseTable",
|
|
2806
2806
|
props: {
|
|
2807
2807
|
// table header configuration
|
|
@@ -2969,7 +2969,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
2969
2969
|
i("click:row", _);
|
|
2970
2970
|
}), S = (g) => {
|
|
2971
2971
|
i("sort", g);
|
|
2972
|
-
}, { setTablePreferences: j, getTablePreferences: y } =
|
|
2972
|
+
}, { setTablePreferences: j, getTablePreferences: y } = di(), W = F(y(a.value)), h = I(() => {
|
|
2973
2973
|
const g = y(a.value);
|
|
2974
2974
|
return {
|
|
2975
2975
|
...n.initialFetcherParams,
|
|
@@ -3020,9 +3020,9 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
3020
3020
|
"onUpdate:tablePreferences": O
|
|
3021
3021
|
}, zt({
|
|
3022
3022
|
toolbar: v(({ state: q }) => [
|
|
3023
|
-
fe(L("div",
|
|
3023
|
+
fe(L("div", Po, [
|
|
3024
3024
|
le(g.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3025
|
-
g.$slots["toolbar-button"] ? (w(), $("div",
|
|
3025
|
+
g.$slots["toolbar-button"] ? (w(), $("div", Do, [
|
|
3026
3026
|
le(g.$slots, "toolbar-button", {}, void 0, !0)
|
|
3027
3027
|
])) : G("", !0)
|
|
3028
3028
|
], 512), [
|
|
@@ -3054,21 +3054,21 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
3054
3054
|
size: "small"
|
|
3055
3055
|
}, {
|
|
3056
3056
|
default: v(() => [
|
|
3057
|
-
N(m(
|
|
3057
|
+
N(m(Eo))
|
|
3058
3058
|
]),
|
|
3059
3059
|
_: 1
|
|
3060
3060
|
})
|
|
3061
3061
|
]),
|
|
3062
3062
|
_: 2
|
|
3063
3063
|
}, 1032, ["width"])
|
|
3064
|
-
], 8,
|
|
3064
|
+
], 8, Vo)
|
|
3065
3065
|
]),
|
|
3066
3066
|
_: 2
|
|
3067
3067
|
}, [
|
|
3068
3068
|
ut(e.tableHeaders, (q, X) => ({
|
|
3069
3069
|
name: X,
|
|
3070
|
-
fn: v(({ row: pe, rowKey:
|
|
3071
|
-
N(
|
|
3070
|
+
fn: v(({ row: pe, rowKey: Ce, rowValue: ce }) => [
|
|
3071
|
+
N(Ko, {
|
|
3072
3072
|
"key-name": String(X),
|
|
3073
3073
|
"row-el": c(pe),
|
|
3074
3074
|
tooltip: q.tooltip
|
|
@@ -3076,7 +3076,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
3076
3076
|
default: v(() => [
|
|
3077
3077
|
le(g.$slots, X, {
|
|
3078
3078
|
row: pe,
|
|
3079
|
-
rowKey:
|
|
3079
|
+
rowKey: Ce,
|
|
3080
3080
|
rowValue: ce
|
|
3081
3081
|
}, () => [
|
|
3082
3082
|
J(E(ce), 1)
|
|
@@ -3089,7 +3089,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
3089
3089
|
e.query ? void 0 : {
|
|
3090
3090
|
name: "empty-state-action-icon",
|
|
3091
3091
|
fn: v(() => [
|
|
3092
|
-
N(m(
|
|
3092
|
+
N(m(mo))
|
|
3093
3093
|
]),
|
|
3094
3094
|
key: "0"
|
|
3095
3095
|
}
|
|
@@ -3099,13 +3099,13 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
3099
3099
|
}, 8, ["title", "title-tag"]);
|
|
3100
3100
|
};
|
|
3101
3101
|
}
|
|
3102
|
-
}),
|
|
3102
|
+
}), Ho = /* @__PURE__ */ Te(zo, [["__scopeId", "data-v-0496d9a7"]]), Wo = {
|
|
3103
3103
|
key: 0,
|
|
3104
3104
|
class: "kong-ui-entity-delete-error"
|
|
3105
|
-
},
|
|
3105
|
+
}, Yo = {
|
|
3106
3106
|
key: 1,
|
|
3107
3107
|
class: "description"
|
|
3108
|
-
},
|
|
3108
|
+
}, Zo = /* @__PURE__ */ ne({
|
|
3109
3109
|
__name: "EntityDeleteModal",
|
|
3110
3110
|
props: {
|
|
3111
3111
|
visible: {
|
|
@@ -3163,7 +3163,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
3163
3163
|
onProceed: l
|
|
3164
3164
|
}, {
|
|
3165
3165
|
default: v(() => [
|
|
3166
|
-
e.error ? (w(), $("div",
|
|
3166
|
+
e.error ? (w(), $("div", Wo, [
|
|
3167
3167
|
N(d, { appearance: "danger" }, {
|
|
3168
3168
|
default: v(() => [
|
|
3169
3169
|
J(E(e.error), 1)
|
|
@@ -3189,7 +3189,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
3189
3189
|
key: "0"
|
|
3190
3190
|
} : void 0
|
|
3191
3191
|
]), 1032, ["keypath"]),
|
|
3192
|
-
i.description || s.$slots.description ? (w(), $("div",
|
|
3192
|
+
i.description || s.$slots.description ? (w(), $("div", Yo, [
|
|
3193
3193
|
le(s.$slots, "description", {}, () => [
|
|
3194
3194
|
L("p", null, E(i.description), 1)
|
|
3195
3195
|
], !0)
|
|
@@ -3199,13 +3199,13 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
3199
3199
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3200
3200
|
};
|
|
3201
3201
|
}
|
|
3202
|
-
}),
|
|
3202
|
+
}), Jo = /* @__PURE__ */ Te(Zo, [["__scopeId", "data-v-4361d622"]]), Go = {
|
|
3203
3203
|
fill: "none",
|
|
3204
3204
|
height: "20",
|
|
3205
3205
|
viewBox: "0 0 20 20",
|
|
3206
3206
|
width: "20",
|
|
3207
3207
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3208
|
-
},
|
|
3208
|
+
}, Qo = {
|
|
3209
3209
|
id: "mask0_180_20349",
|
|
3210
3210
|
height: "20",
|
|
3211
3211
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3213,35 +3213,35 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
3213
3213
|
width: "20",
|
|
3214
3214
|
x: "0",
|
|
3215
3215
|
y: "0"
|
|
3216
|
-
},
|
|
3216
|
+
}, Xo = ["fill"], el = { mask: "url(#mask0_180_20349)" }, tl = ["fill"], Kt = /* @__PURE__ */ ne({
|
|
3217
3217
|
__name: "IconFilter",
|
|
3218
3218
|
props: {
|
|
3219
3219
|
color: {
|
|
3220
3220
|
type: String,
|
|
3221
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3221
|
+
default: `var(--kong-ui-entity-filter-color, ${Li})`
|
|
3222
3222
|
}
|
|
3223
3223
|
},
|
|
3224
3224
|
setup(e) {
|
|
3225
|
-
return (t, n) => (w(), $("svg",
|
|
3226
|
-
L("mask",
|
|
3225
|
+
return (t, n) => (w(), $("svg", Go, [
|
|
3226
|
+
L("mask", Qo, [
|
|
3227
3227
|
L("rect", {
|
|
3228
3228
|
fill: e.color,
|
|
3229
3229
|
height: "20",
|
|
3230
3230
|
width: "20"
|
|
3231
|
-
}, null, 8,
|
|
3231
|
+
}, null, 8, Xo)
|
|
3232
3232
|
]),
|
|
3233
|
-
L("g",
|
|
3233
|
+
L("g", el, [
|
|
3234
3234
|
L("path", {
|
|
3235
3235
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3236
3236
|
fill: e.color
|
|
3237
|
-
}, null, 8,
|
|
3237
|
+
}, null, 8, tl)
|
|
3238
3238
|
])
|
|
3239
3239
|
]));
|
|
3240
3240
|
}
|
|
3241
|
-
}),
|
|
3241
|
+
}), nl = {
|
|
3242
3242
|
key: 1,
|
|
3243
3243
|
class: "kong-ui-entity-filter"
|
|
3244
|
-
},
|
|
3244
|
+
}, il = { class: "kong-ui-entity-filter-menu" }, rl = ["data-testid"], al = ["onClick", "onKeydown"], ol = { class: "menu-item-indicator" }, ll = { class: "menu-item-body" }, sl = ["for"], cl = { class: "menu-item-buttons" }, ul = { class: "filter-clear-button-container" }, dl = /* @__PURE__ */ ne({
|
|
3245
3245
|
__name: "EntityFilter",
|
|
3246
3246
|
props: {
|
|
3247
3247
|
// filter config, either exact match or fuzzy match
|
|
@@ -3325,7 +3325,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
3325
3325
|
N(Kt)
|
|
3326
3326
|
]),
|
|
3327
3327
|
after: v(() => [
|
|
3328
|
-
fe(N(m(
|
|
3328
|
+
fe(N(m(No), {
|
|
3329
3329
|
class: "kong-ui-entity-filter-clear",
|
|
3330
3330
|
onClick: p
|
|
3331
3331
|
}, null, 512), [
|
|
@@ -3333,7 +3333,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
3333
3333
|
])
|
|
3334
3334
|
]),
|
|
3335
3335
|
_: 1
|
|
3336
|
-
}, 8, ["model-value", "placeholder"])) : (w(), $("div",
|
|
3336
|
+
}, 8, ["model-value", "placeholder"])) : (w(), $("div", nl, [
|
|
3337
3337
|
N(_, {
|
|
3338
3338
|
appearance: "tertiary",
|
|
3339
3339
|
"data-testid": "filter-button",
|
|
@@ -3351,7 +3351,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
3351
3351
|
}, null, 512), [
|
|
3352
3352
|
[ge, o.value]
|
|
3353
3353
|
]),
|
|
3354
|
-
fe(L("div",
|
|
3354
|
+
fe(L("div", il, [
|
|
3355
3355
|
(w(!0), $(Ht, null, ut(u.value, (x) => {
|
|
3356
3356
|
var Q, B;
|
|
3357
3357
|
return w(), $("div", {
|
|
@@ -3367,19 +3367,19 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
3367
3367
|
onKeydown: Wn((q) => c(x.value), ["enter"])
|
|
3368
3368
|
}, [
|
|
3369
3369
|
J(E(x.label) + " ", 1),
|
|
3370
|
-
fe(L("span",
|
|
3370
|
+
fe(L("span", ol, null, 512), [
|
|
3371
3371
|
[ge, s.value.includes(x.value)]
|
|
3372
3372
|
]),
|
|
3373
|
-
N(m(
|
|
3373
|
+
N(m(Co), {
|
|
3374
3374
|
class: Ee(["menu-item-expand-icon", { expanded: l.value.has(x.value) }]),
|
|
3375
|
-
color: m(
|
|
3375
|
+
color: m(Ui)
|
|
3376
3376
|
}, null, 8, ["class", "color"])
|
|
3377
|
-
], 42,
|
|
3378
|
-
fe(L("div",
|
|
3377
|
+
], 42, al),
|
|
3378
|
+
fe(L("div", ll, [
|
|
3379
3379
|
L("label", {
|
|
3380
3380
|
class: "menu-item-label",
|
|
3381
3381
|
for: k(x.value)
|
|
3382
|
-
}, E(m(n)("filter.fieldLabel")), 9,
|
|
3382
|
+
}, E(m(n)("filter.fieldLabel")), 9, sl),
|
|
3383
3383
|
((B = (Q = e.config.schema) == null ? void 0 : Q[x.value]) == null ? void 0 : B.type) === "select" ? (w(), P(U, {
|
|
3384
3384
|
key: 0,
|
|
3385
3385
|
id: k(x.value),
|
|
@@ -3399,7 +3399,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
3399
3399
|
], 512), [
|
|
3400
3400
|
[ge, l.value.has(x.value)]
|
|
3401
3401
|
]),
|
|
3402
|
-
fe(L("div",
|
|
3402
|
+
fe(L("div", cl, [
|
|
3403
3403
|
N(_, {
|
|
3404
3404
|
appearance: "tertiary",
|
|
3405
3405
|
"data-testid": "apply-filter",
|
|
@@ -3425,9 +3425,9 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
3425
3425
|
], 512), [
|
|
3426
3426
|
[ge, l.value.has(x.value)]
|
|
3427
3427
|
])
|
|
3428
|
-
], 8,
|
|
3428
|
+
], 8, rl);
|
|
3429
3429
|
}), 128)),
|
|
3430
|
-
L("div",
|
|
3430
|
+
L("div", ul, [
|
|
3431
3431
|
N(_, {
|
|
3432
3432
|
appearance: "tertiary",
|
|
3433
3433
|
size: "small",
|
|
@@ -3445,7 +3445,7 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
3445
3445
|
]));
|
|
3446
3446
|
};
|
|
3447
3447
|
}
|
|
3448
|
-
}),
|
|
3448
|
+
}), pl = /* @__PURE__ */ Te(dl, [["__scopeId", "data-v-94990087"]]), nt = /* @__PURE__ */ ne({
|
|
3449
3449
|
__name: "PermissionsWrapper",
|
|
3450
3450
|
props: {
|
|
3451
3451
|
/**
|
|
@@ -3477,41 +3477,41 @@ const lo = { class: "yaml-config" }, so = /* @__PURE__ */ ne({
|
|
|
3477
3477
|
}
|
|
3478
3478
|
});
|
|
3479
3479
|
let Pe;
|
|
3480
|
-
const
|
|
3481
|
-
function
|
|
3480
|
+
const fl = new Uint8Array(16);
|
|
3481
|
+
function gl() {
|
|
3482
3482
|
if (!Pe && (Pe = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Pe))
|
|
3483
3483
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
3484
|
-
return Pe(
|
|
3484
|
+
return Pe(fl);
|
|
3485
3485
|
}
|
|
3486
3486
|
const ee = [];
|
|
3487
3487
|
for (let e = 0; e < 256; ++e)
|
|
3488
3488
|
ee.push((e + 256).toString(16).slice(1));
|
|
3489
|
-
function
|
|
3489
|
+
function hl(e, t = 0) {
|
|
3490
3490
|
return ee[e[t + 0]] + ee[e[t + 1]] + ee[e[t + 2]] + ee[e[t + 3]] + "-" + ee[e[t + 4]] + ee[e[t + 5]] + "-" + ee[e[t + 6]] + ee[e[t + 7]] + "-" + ee[e[t + 8]] + ee[e[t + 9]] + "-" + ee[e[t + 10]] + ee[e[t + 11]] + ee[e[t + 12]] + ee[e[t + 13]] + ee[e[t + 14]] + ee[e[t + 15]];
|
|
3491
3491
|
}
|
|
3492
|
-
const
|
|
3493
|
-
randomUUID:
|
|
3492
|
+
const ml = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Pt = {
|
|
3493
|
+
randomUUID: ml
|
|
3494
3494
|
};
|
|
3495
|
-
function
|
|
3495
|
+
function yl(e, t, n) {
|
|
3496
3496
|
if (Pt.randomUUID && !t && !e)
|
|
3497
3497
|
return Pt.randomUUID();
|
|
3498
3498
|
e = e || {};
|
|
3499
|
-
const i = e.random || (e.rng ||
|
|
3499
|
+
const i = e.random || (e.rng || gl)();
|
|
3500
3500
|
if (i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, t) {
|
|
3501
3501
|
n = n || 0;
|
|
3502
3502
|
for (let r = 0; r < 16; ++r)
|
|
3503
3503
|
t[n + r] = i[r];
|
|
3504
3504
|
return t;
|
|
3505
3505
|
}
|
|
3506
|
-
return
|
|
3506
|
+
return hl(i);
|
|
3507
3507
|
}
|
|
3508
|
-
const
|
|
3508
|
+
const vl = ["aria-labelledby"], bl = { class: "form-section-wrapper" }, wl = {
|
|
3509
3509
|
key: 1,
|
|
3510
3510
|
class: "form-section-description"
|
|
3511
|
-
},
|
|
3511
|
+
}, kl = {
|
|
3512
3512
|
key: 2,
|
|
3513
3513
|
class: "form-section-footer"
|
|
3514
|
-
},
|
|
3514
|
+
}, Cl = { class: "form-section-content" }, Sl = /* @__PURE__ */ ne({
|
|
3515
3515
|
__name: "EntityFormSection",
|
|
3516
3516
|
props: {
|
|
3517
3517
|
title: {
|
|
@@ -3540,18 +3540,18 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
3540
3540
|
}
|
|
3541
3541
|
},
|
|
3542
3542
|
setup(e) {
|
|
3543
|
-
const t = Yn(), n =
|
|
3543
|
+
const t = Yn(), n = yl();
|
|
3544
3544
|
return (i, r) => (w(), $("div", {
|
|
3545
3545
|
"aria-labelledby": e.title ? m(n) : void 0,
|
|
3546
3546
|
class: Ee(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
3547
3547
|
role: "group"
|
|
3548
3548
|
}, [
|
|
3549
|
-
L("div",
|
|
3549
|
+
L("div", bl, [
|
|
3550
3550
|
e.hideInfoHeader ? G("", !0) : (w(), $("div", {
|
|
3551
3551
|
key: 0,
|
|
3552
3552
|
class: Ee(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
3553
3553
|
}, [
|
|
3554
|
-
e.title ? (w(), P(
|
|
3554
|
+
e.title ? (w(), P(Ne(e.titleTag), {
|
|
3555
3555
|
key: 0,
|
|
3556
3556
|
id: m(n),
|
|
3557
3557
|
class: "form-section-title"
|
|
@@ -3561,33 +3561,33 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
3561
3561
|
]),
|
|
3562
3562
|
_: 1
|
|
3563
3563
|
}, 8, ["id"])) : G("", !0),
|
|
3564
|
-
e.description || m(t).description ? (w(), $("div",
|
|
3564
|
+
e.description || m(t).description ? (w(), $("div", wl, [
|
|
3565
3565
|
le(i.$slots, "description", {}, () => [
|
|
3566
3566
|
L("p", null, E(e.description), 1)
|
|
3567
3567
|
], !0)
|
|
3568
3568
|
])) : G("", !0),
|
|
3569
|
-
m(t).footer ? (w(), $("div",
|
|
3569
|
+
m(t).footer ? (w(), $("div", kl, [
|
|
3570
3570
|
le(i.$slots, "footer", {}, void 0, !0)
|
|
3571
3571
|
])) : G("", !0)
|
|
3572
3572
|
], 2)),
|
|
3573
|
-
L("div",
|
|
3573
|
+
L("div", Cl, [
|
|
3574
3574
|
le(i.$slots, "default", {}, void 0, !0)
|
|
3575
3575
|
])
|
|
3576
3576
|
])
|
|
3577
|
-
], 10,
|
|
3577
|
+
], 10, vl));
|
|
3578
3578
|
}
|
|
3579
|
-
}), Dt = /* @__PURE__ */ Te(
|
|
3579
|
+
}), Dt = /* @__PURE__ */ Te(Sl, [["__scopeId", "data-v-b1f74200"]]), { useAxios: Vn, useDeleteUrlBuilder: Al, useErrors: Il, useExternalLinkCreator: Yl, useFetchUrlBuilder: Zl, useFetcher: xl, useDebouncedFilter: _l, useStringHelpers: Jl, useHelpers: Gl, useGatewayFeatureSupported: Ql, useTruncationDetector: Xl, useValidators: es } = we, Vt = "24px", Nl = (e, t) => {
|
|
3580
3580
|
const n = e.__vccOpts || e;
|
|
3581
3581
|
for (const [i, r] of t)
|
|
3582
3582
|
n[i] = r;
|
|
3583
3583
|
return n;
|
|
3584
|
-
},
|
|
3584
|
+
}, Tl = (e) => (Be("data-v-1d2a8d30"), e = e(), Ke(), e), Ol = ["aria-hidden"], jl = {
|
|
3585
3585
|
key: 0,
|
|
3586
3586
|
"data-testid": "kui-icon-svg-title"
|
|
3587
|
-
},
|
|
3587
|
+
}, Fl = /* @__PURE__ */ Tl(() => /* @__PURE__ */ L("path", {
|
|
3588
3588
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
3589
3589
|
fill: "currentColor"
|
|
3590
|
-
}, null, -1)),
|
|
3590
|
+
}, null, -1)), Ml = /* @__PURE__ */ ne({
|
|
3591
3591
|
__name: "AddIcon",
|
|
3592
3592
|
props: {
|
|
3593
3593
|
/** The accessibility text provided to screen readers */
|
|
@@ -3656,7 +3656,7 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
3656
3656
|
lineHeight: "0",
|
|
3657
3657
|
width: n.value
|
|
3658
3658
|
}));
|
|
3659
|
-
return (r, o) => (w(), P(
|
|
3659
|
+
return (r, o) => (w(), P(Ne(e.as), {
|
|
3660
3660
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3661
3661
|
class: "kui-icon add-icon",
|
|
3662
3662
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
@@ -3673,14 +3673,14 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
3673
3673
|
width: "100%",
|
|
3674
3674
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3675
3675
|
}, [
|
|
3676
|
-
e.title ? (w(), $("title",
|
|
3677
|
-
|
|
3678
|
-
], 8,
|
|
3676
|
+
e.title ? (w(), $("title", jl, E(e.title), 1)) : G("", !0),
|
|
3677
|
+
Fl
|
|
3678
|
+
], 8, Ol))
|
|
3679
3679
|
]),
|
|
3680
3680
|
_: 1
|
|
3681
3681
|
}, 8, ["aria-hidden", "style"]));
|
|
3682
3682
|
}
|
|
3683
|
-
}),
|
|
3683
|
+
}), El = /* @__PURE__ */ Nl(Ml, [["__scopeId", "data-v-1d2a8d30"]]), $l = { class: "kong-ui-entities-snis-list" }, ql = { key: 1 }, Ll = { key: 1 }, Ul = /* @__PURE__ */ ne({
|
|
3684
3684
|
__name: "SniList",
|
|
3685
3685
|
props: {
|
|
3686
3686
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3752,7 +3752,7 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
3752
3752
|
fields: { name: V },
|
|
3753
3753
|
schema: i.config.filterSchema
|
|
3754
3754
|
};
|
|
3755
|
-
}), { fetcher: k, fetcherState: C } =
|
|
3755
|
+
}), { fetcher: k, fetcherState: C } = xl(i.config, c.value), S = () => {
|
|
3756
3756
|
f.value = "";
|
|
3757
3757
|
}, j = () => {
|
|
3758
3758
|
a.value++;
|
|
@@ -3792,7 +3792,7 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
3792
3792
|
}, g = (T) => ({
|
|
3793
3793
|
label: r("actions.edit"),
|
|
3794
3794
|
to: i.config.getEditRoute(T)
|
|
3795
|
-
}), _ = F(void 0), U = F(!1), x = F(!1), Q = F(""), B =
|
|
3795
|
+
}), _ = F(void 0), U = F(!1), x = F(!1), Q = F(""), B = Al(i.config, c.value), q = (T) => {
|
|
3796
3796
|
_.value = T, U.value = !0;
|
|
3797
3797
|
}, X = () => {
|
|
3798
3798
|
U.value = !1, _.value = void 0;
|
|
@@ -3808,10 +3808,10 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
3808
3808
|
x.value = !1;
|
|
3809
3809
|
}
|
|
3810
3810
|
}
|
|
3811
|
-
},
|
|
3811
|
+
}, Ce = F(!0);
|
|
3812
3812
|
return me(C, (T) => {
|
|
3813
3813
|
var V, Y, A, M;
|
|
3814
|
-
if (Array.isArray((V = T == null ? void 0 : T.response) == null ? void 0 : V.data) && (
|
|
3814
|
+
if (Array.isArray((V = T == null ? void 0 : T.response) == null ? void 0 : V.data) && (Ce.value = T.response.data.length > 0), T.status === be.Error) {
|
|
3815
3815
|
y.value = {
|
|
3816
3816
|
title: r("errors.general")
|
|
3817
3817
|
}, (M = (A = (Y = T.error) == null ? void 0 : Y.response) == null ? void 0 : A.data) != null && M.message && (y.value.message = T.error.response.data.message), n("error", T.error);
|
|
@@ -3822,8 +3822,8 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
3822
3822
|
await i.canCreate() && (W.value.title = r("snis.list.empty_state.title"), W.value.ctaText = r("actions.create"));
|
|
3823
3823
|
}), (T, V) => {
|
|
3824
3824
|
const Y = R("KButton"), A = R("KCopy"), M = R("KBadge"), z = R("KTruncate"), ue = R("KDropdownItem"), re = R("KClipboardProvider");
|
|
3825
|
-
return w(), $("div",
|
|
3826
|
-
N(m(
|
|
3825
|
+
return w(), $("div", $l, [
|
|
3826
|
+
N(m(Ho), {
|
|
3827
3827
|
"cache-identifier": e.cacheIdentifier,
|
|
3828
3828
|
"cell-attributes": d,
|
|
3829
3829
|
"disable-pagination-page-jump": "",
|
|
@@ -3843,41 +3843,39 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
3843
3843
|
onSort: j
|
|
3844
3844
|
}, {
|
|
3845
3845
|
"toolbar-filter": v(() => [
|
|
3846
|
-
N(m(
|
|
3846
|
+
N(m(pl), {
|
|
3847
3847
|
modelValue: f.value,
|
|
3848
3848
|
"onUpdate:modelValue": V[0] || (V[0] = (D) => f.value = D),
|
|
3849
3849
|
config: p.value
|
|
3850
3850
|
}, null, 8, ["modelValue", "config"])
|
|
3851
3851
|
]),
|
|
3852
3852
|
"toolbar-button": v(() => [
|
|
3853
|
-
(w(), P(
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
_: 1
|
|
3880
|
-
}, 8, ["to"]))
|
|
3853
|
+
(w(), P(Xn, {
|
|
3854
|
+
disabled: !e.useActionOutside,
|
|
3855
|
+
to: "#kong-ui-app-page-header-action-button"
|
|
3856
|
+
}, [
|
|
3857
|
+
N(m(nt), {
|
|
3858
|
+
"auth-function": () => e.canCreate()
|
|
3859
|
+
}, {
|
|
3860
|
+
default: v(() => [
|
|
3861
|
+
fe(N(Y, {
|
|
3862
|
+
appearance: "primary",
|
|
3863
|
+
"data-testid": "toolbar-add-sni",
|
|
3864
|
+
size: "large",
|
|
3865
|
+
to: e.config.createRoute
|
|
3866
|
+
}, {
|
|
3867
|
+
default: v(() => [
|
|
3868
|
+
N(m(El)),
|
|
3869
|
+
J(" " + E(m(r)("snis.list.toolbar_actions.new")), 1)
|
|
3870
|
+
]),
|
|
3871
|
+
_: 1
|
|
3872
|
+
}, 8, ["to"]), [
|
|
3873
|
+
[ge, Ce.value]
|
|
3874
|
+
])
|
|
3875
|
+
]),
|
|
3876
|
+
_: 1
|
|
3877
|
+
}, 8, ["auth-function"])
|
|
3878
|
+
], 8, ["disabled"]))
|
|
3881
3879
|
]),
|
|
3882
3880
|
name: v(({ rowValue: D }) => [
|
|
3883
3881
|
L("b", null, E(D ?? "-"), 1)
|
|
@@ -3889,7 +3887,7 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
3889
3887
|
"data-testid": "copy-certificate-uuid",
|
|
3890
3888
|
text: D.certificate.id,
|
|
3891
3889
|
truncate: ""
|
|
3892
|
-
}, null, 8, ["text"])) : (w(), $("span",
|
|
3890
|
+
}, null, 8, ["text"])) : (w(), $("span", ql, "-"))
|
|
3893
3891
|
]),
|
|
3894
3892
|
tags: v(({ rowValue: D }) => [
|
|
3895
3893
|
D != null && D.length ? (w(), P(z, { key: 0 }, {
|
|
@@ -3906,7 +3904,7 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
3906
3904
|
}, 1024))), 128))
|
|
3907
3905
|
]),
|
|
3908
3906
|
_: 2
|
|
3909
|
-
}, 1024)) : (w(), $("span",
|
|
3907
|
+
}, 1024)) : (w(), $("span", Ll, "-"))
|
|
3910
3908
|
]),
|
|
3911
3909
|
actions: v(({ row: D }) => [
|
|
3912
3910
|
N(re, null, {
|
|
@@ -3969,7 +3967,7 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
3969
3967
|
]),
|
|
3970
3968
|
_: 1
|
|
3971
3969
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
3972
|
-
N(m(
|
|
3970
|
+
N(m(Jo), {
|
|
3973
3971
|
"action-pending": x.value,
|
|
3974
3972
|
description: m(r)("delete.description"),
|
|
3975
3973
|
"entity-name": _.value && (_.value.name || _.value.id),
|
|
@@ -3989,11 +3987,11 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
3989
3987
|
for (const [i, r] of t)
|
|
3990
3988
|
n[i] = r;
|
|
3991
3989
|
return n;
|
|
3992
|
-
},
|
|
3990
|
+
}, ts = /* @__PURE__ */ zn(Ul, [["__scopeId", "data-v-03f4d533"]]), Rl = { class: "kong-ui-entities-snis-form" }, Bl = { "data-testid": "no-search-results" }, Kl = {
|
|
3993
3991
|
key: 2,
|
|
3994
3992
|
class: "invalid-certificate-message",
|
|
3995
3993
|
"data-testid": "invalid-certificate-message"
|
|
3996
|
-
},
|
|
3994
|
+
}, Pl = /* @__PURE__ */ ne({
|
|
3997
3995
|
__name: "SniForm",
|
|
3998
3996
|
props: {
|
|
3999
3997
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4012,7 +4010,7 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
4012
4010
|
emits: ["update", "error", "loading"],
|
|
4013
4011
|
setup(e, { emit: t }) {
|
|
4014
4012
|
var Y;
|
|
4015
|
-
const n = t, i = e, r = Zt(), { i18n: { t: o } } = Jt.useI18n(), { getMessageFromError: a } =
|
|
4013
|
+
const n = t, i = e, r = Zt(), { i18n: { t: o } } = Jt.useI18n(), { getMessageFromError: a } = Il(), { axiosInstance: l } = Vn((Y = i.config) == null ? void 0 : Y.axiosRequestConfig), s = I(() => Fe.form[i.config.app].edit), u = I(() => i.sniId ? De.Edit : De.Create), d = I(() => i.config.certificateId && u.value === De.Create ? i.config.certificateId : ""), c = vt({
|
|
4016
4014
|
fields: {
|
|
4017
4015
|
name: "",
|
|
4018
4016
|
tags: "",
|
|
@@ -4063,9 +4061,9 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
4063
4061
|
validationError: U,
|
|
4064
4062
|
loadItems: x,
|
|
4065
4063
|
results: Q
|
|
4066
|
-
} =
|
|
4064
|
+
} = _l(i.config, Fe.form[i.config.app].certificates), B = (A) => {
|
|
4067
4065
|
h(A);
|
|
4068
|
-
}, q = I(() => _.value ? o("errors.certificates.fetch") : ""), X = I(() => U.value ? o("errors.certificates.invalid") : ""), pe = F(0),
|
|
4066
|
+
}, q = I(() => _.value ? o("errors.certificates.fetch") : ""), X = I(() => U.value ? o("errors.certificates.invalid") : ""), pe = F(0), Ce = I(() => g.value === void 0), ce = F(/* @__PURE__ */ new Set()), T = I(() => Array.from(ce.value).map((M) => ({
|
|
4069
4067
|
label: M,
|
|
4070
4068
|
value: M,
|
|
4071
4069
|
selected: c.fields.certificate_id === M
|
|
@@ -4083,8 +4081,8 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
4083
4081
|
await x();
|
|
4084
4082
|
}), (A, M) => {
|
|
4085
4083
|
const z = R("KInput"), ue = R("KSelect");
|
|
4086
|
-
return w(), $("div",
|
|
4087
|
-
N(m(
|
|
4084
|
+
return w(), $("div", Rl, [
|
|
4085
|
+
N(m(Uo), {
|
|
4088
4086
|
"can-submit": p.value,
|
|
4089
4087
|
config: e.config,
|
|
4090
4088
|
"edit-id": e.sniId,
|
|
@@ -4152,7 +4150,7 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
4152
4150
|
"onUpdate:modelValue": M[2] || (M[2] = (re) => c.fields.certificate_id = re),
|
|
4153
4151
|
clearable: "",
|
|
4154
4152
|
"data-testid": "sni-form-certificate-id",
|
|
4155
|
-
"dropdown-footer-text":
|
|
4153
|
+
"dropdown-footer-text": Ce.value ? m(o)("form.fields.certificate_id.footer") : void 0,
|
|
4156
4154
|
"enable-filtering": "",
|
|
4157
4155
|
"filter-function": () => !0,
|
|
4158
4156
|
items: T.value,
|
|
@@ -4168,11 +4166,11 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
4168
4166
|
L("div", null, E(m(o)("actions.loading")), 1)
|
|
4169
4167
|
]),
|
|
4170
4168
|
empty: v(() => [
|
|
4171
|
-
L("div",
|
|
4169
|
+
L("div", Bl, E(m(o)("search.no_results")), 1)
|
|
4172
4170
|
]),
|
|
4173
4171
|
_: 1
|
|
4174
4172
|
}, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly"])),
|
|
4175
|
-
X.value ? (w(), $("p",
|
|
4173
|
+
X.value ? (w(), $("p", Kl, E(X.value), 1)) : G("", !0)
|
|
4176
4174
|
]),
|
|
4177
4175
|
_: 1
|
|
4178
4176
|
}, 8, ["description", "title"])
|
|
@@ -4182,8 +4180,8 @@ const yl = ["aria-labelledby"], vl = { class: "form-section-wrapper" }, bl = {
|
|
|
4182
4180
|
]);
|
|
4183
4181
|
};
|
|
4184
4182
|
}
|
|
4185
|
-
}),
|
|
4183
|
+
}), ns = /* @__PURE__ */ zn(Pl, [["__scopeId", "data-v-6997a861"]]);
|
|
4186
4184
|
export {
|
|
4187
|
-
|
|
4188
|
-
|
|
4185
|
+
ns as SniForm,
|
|
4186
|
+
ts as SniList
|
|
4189
4187
|
};
|