@kong-ui-public/entities-shared 3.42.3 → 3.42.4
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-shared.es.js +764 -770
- package/dist/entities-shared.umd.js +20 -20
- package/package.json +6 -6
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import
|
|
3
|
-
import { createI18n as
|
|
4
|
-
import { BadgeMethodAppearances as
|
|
5
|
-
import { createHighlighterCoreSync as
|
|
6
|
-
import { createJavaScriptRegexEngine as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { LanguageShellIcon as
|
|
15
|
-
import { useRouter as
|
|
16
|
-
var
|
|
17
|
-
const Ge = Object.values(ve),
|
|
1
|
+
import { inject as ct, ref as N, computed as _, unref as x, toValue as Ce, watch as we, toRef as ri, provide as zt, defineComponent as Z, openBlock as m, createBlock as K, resolveDynamicComponent as We, normalizeClass as pe, withCtx as w, createElementBlock as T, createElementVNode as L, toDisplayString as O, createCommentVNode as P, Fragment as ge, renderList as ye, resolveComponent as U, createVNode as D, createTextVNode as Y, useCssVars as Qt, useId as ai, useSlots as Pe, renderSlot as j, createSlots as Se, normalizeProps as oi, guardReactiveProps as li, mergeProps as Zt, onMounted as ut, onBeforeMount as dt, withModifiers as je, Teleport as Xt, onUnmounted as si, withDirectives as $e, vShow as Te, withKeys as ci, warn as ui } from "vue";
|
|
2
|
+
import Ct from "axios";
|
|
3
|
+
import { createI18n as di, i18nTComponent as fi } from "@kong-ui-public/i18n";
|
|
4
|
+
import { BadgeMethodAppearances as pi, KExternalLink as mi, KButton as xt, KTruncate as gi, KBadge as yi } from "@kong/kongponents";
|
|
5
|
+
import { createHighlighterCoreSync as hi } from "@shikijs/core";
|
|
6
|
+
import { createJavaScriptRegexEngine as vi } from "@shikijs/engine-javascript";
|
|
7
|
+
import bi from "@shikijs/langs/json";
|
|
8
|
+
import ki from "@shikijs/langs/yaml";
|
|
9
|
+
import Ci from "@shikijs/langs/terraform";
|
|
10
|
+
import xi from "@shikijs/langs/shellscript";
|
|
11
|
+
import Ai from "@shikijs/langs/powershell";
|
|
12
|
+
import _i from "@shikijs/themes/catppuccin-mocha";
|
|
13
|
+
import wi from "@shikijs/themes/catppuccin-latte";
|
|
14
|
+
import { LanguageShellIcon as At, LanguageBashIcon as _t, BookIcon as en, AddIcon as tn, CloseIcon as Si, ChevronDownIcon as $i, CopyIcon as Ti } from "@kong/icons";
|
|
15
|
+
import { useRouter as Ei } from "vue-router";
|
|
16
|
+
var Ii = /* @__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.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(Ii || {}), Fi = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Fi || {}), ke = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(ke || {}), ve = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.Partial = "partial", e.CloudGatewayAddon = "cloud_gateway_addon", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.ProducePolicy = "produce_policy", e.ConsumePolicy = "consume_policy", e.ClusterPolicy = "cluster_policy", e.ListenerPolicy = "listener_policy", e.SchemaRegistry = "schema_registry", e.StaticKey = "static_key", e.TlsTrustBundle = "tls_trust_bundle", e.AuthServer = "auth_server", e.AuthServerScopes = "auth_server_scopes", e.AuthServerClaims = "auth_server_claims", e.AuthServerClients = "auth_server_clients", e.Other = "other", e))(ve || {});
|
|
17
|
+
const Ge = Object.values(ve), Oi = [
|
|
18
18
|
"ca_certificate",
|
|
19
19
|
"certificate",
|
|
20
20
|
"consumer",
|
|
@@ -30,27 +30,27 @@ const Ge = Object.values(ve), Ri = [
|
|
|
30
30
|
"partial"
|
|
31
31
|
/* Partial */
|
|
32
32
|
];
|
|
33
|
-
function
|
|
34
|
-
return
|
|
33
|
+
function nn(e) {
|
|
34
|
+
return Oi.includes(e);
|
|
35
35
|
}
|
|
36
|
-
const
|
|
36
|
+
const Bi = ["backend_cluster", "virtual_cluster", "listener", "produce_policy", "consume_policy", "cluster_policy", "listener_policy", "schema_registry", "static_key", "tls_trust_bundle"], Li = ["auth_server", "auth_server_scopes", "auth_server_claims", "auth_server_clients"];
|
|
37
37
|
var J = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(J || {}), ce = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e.Policy = "policy", e))(ce || {});
|
|
38
|
-
const
|
|
38
|
+
const Ri = ["structured", "yaml", "json", "terraform", "deck"], wt = [
|
|
39
39
|
"primary",
|
|
40
40
|
"secondary"
|
|
41
41
|
];
|
|
42
|
-
function
|
|
42
|
+
function Ki() {
|
|
43
43
|
return {
|
|
44
44
|
getAxiosInstance: (e = {}) => {
|
|
45
45
|
try {
|
|
46
|
-
const t =
|
|
47
|
-
return typeof t == "function" ? t(e) :
|
|
46
|
+
const t = ct("get-axios-instance", void 0);
|
|
47
|
+
return typeof t == "function" ? t(e) : Ct.create({
|
|
48
48
|
withCredentials: !0,
|
|
49
49
|
timeout: 3e4,
|
|
50
50
|
...e
|
|
51
51
|
});
|
|
52
52
|
} catch (t) {
|
|
53
|
-
return console.warn("getAxiosInstance:", t.message || t),
|
|
53
|
+
return console.warn("getAxiosInstance:", t.message || t), Ct.create({
|
|
54
54
|
withCredentials: !0,
|
|
55
55
|
timeout: 3e4,
|
|
56
56
|
...e
|
|
@@ -63,7 +63,7 @@ function Mi() {
|
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Ni() {
|
|
67
67
|
return {
|
|
68
68
|
debounce: (e, t) => {
|
|
69
69
|
let n;
|
|
@@ -75,13 +75,13 @@ function Di() {
|
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
|
-
const Qe = "khcp-user-table-preferences",
|
|
78
|
+
const Qe = "khcp-user-table-preferences", Mi = {
|
|
79
79
|
pageSize: 30,
|
|
80
80
|
sortColumnKey: void 0,
|
|
81
81
|
sortColumnOrder: void 0,
|
|
82
82
|
columnVisibility: {}
|
|
83
83
|
};
|
|
84
|
-
function
|
|
84
|
+
function Di() {
|
|
85
85
|
const e = (n) => {
|
|
86
86
|
if (typeof n == "string")
|
|
87
87
|
try {
|
|
@@ -105,30 +105,30 @@ function ji() {
|
|
|
105
105
|
},
|
|
106
106
|
getTablePreferences: (n, i) => {
|
|
107
107
|
const r = t();
|
|
108
|
-
return (r == null ? void 0 : r.get(n)) || void 0 || i ||
|
|
108
|
+
return (r == null ? void 0 : r.get(n)) || void 0 || i || Mi;
|
|
109
109
|
},
|
|
110
110
|
deleteAllTablePreferences: () => {
|
|
111
111
|
localStorage.removeItem(Qe);
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
const { getAxiosInstance: t } =
|
|
115
|
+
function ft(e = {}) {
|
|
116
|
+
const { getAxiosInstance: t } = Ki();
|
|
117
117
|
return {
|
|
118
118
|
axiosInstance: t(e)
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
const
|
|
121
|
+
const Pi = {
|
|
122
122
|
actions: {
|
|
123
123
|
copyId: "Copy ID",
|
|
124
124
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
125
125
|
copyToClipboard: "Copied successfully!",
|
|
126
126
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
127
127
|
}
|
|
128
|
-
},
|
|
128
|
+
}, ji = {
|
|
129
129
|
message: "Are you sure you want to delete this {entityType}?",
|
|
130
130
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
131
|
-
},
|
|
131
|
+
}, Ui = {
|
|
132
132
|
actions: {
|
|
133
133
|
viewConfiguration: "View configuration",
|
|
134
134
|
hideConfiguration: "Hide configuration",
|
|
@@ -147,13 +147,13 @@ const Ui = {
|
|
|
147
147
|
errors: {
|
|
148
148
|
edit: "The entity could not be edited at this time."
|
|
149
149
|
}
|
|
150
|
-
},
|
|
150
|
+
}, qi = {
|
|
151
151
|
emptyState: {
|
|
152
152
|
noSearchResultsTitle: "No results found",
|
|
153
153
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
154
154
|
noSearchResultsCtaText: "Clear"
|
|
155
155
|
}
|
|
156
|
-
},
|
|
156
|
+
}, Hi = {
|
|
157
157
|
title: "Configuration",
|
|
158
158
|
actions: {
|
|
159
159
|
copy: "Copy JSON"
|
|
@@ -190,10 +190,10 @@ const Ui = {
|
|
|
190
190
|
entryTitle: "Entry {index}",
|
|
191
191
|
structuredFormat: "Structured"
|
|
192
192
|
}
|
|
193
|
-
},
|
|
193
|
+
}, Yi = {
|
|
194
194
|
learnMore: "Learn more",
|
|
195
195
|
pricingTitle: "Pricing: "
|
|
196
|
-
},
|
|
196
|
+
}, Vi = {
|
|
197
197
|
filterButtonText: "Filter",
|
|
198
198
|
fieldLabel: "Filter by:",
|
|
199
199
|
inputPlaceholder: "Enter a value",
|
|
@@ -201,17 +201,17 @@ const Ui = {
|
|
|
201
201
|
applyButtonText: "Apply",
|
|
202
202
|
clearButtonText: "Clear",
|
|
203
203
|
clearAllButtonText: "Clear all filters"
|
|
204
|
-
},
|
|
204
|
+
}, Wi = {
|
|
205
205
|
errors: {
|
|
206
206
|
fetch: "Could not fetch available items",
|
|
207
207
|
invalid: "Please select a valid value"
|
|
208
208
|
}
|
|
209
|
-
},
|
|
209
|
+
}, Gi = {
|
|
210
210
|
unexpected: "An unexpected error has occurred",
|
|
211
211
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
212
|
-
},
|
|
212
|
+
}, Ji = {
|
|
213
213
|
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
214
|
-
},
|
|
214
|
+
}, zi = {
|
|
215
215
|
enable: {
|
|
216
216
|
title: "Enable {entityType}",
|
|
217
217
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -222,35 +222,35 @@ const Ui = {
|
|
|
222
222
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
223
223
|
confirmText: "Yes, disable"
|
|
224
224
|
}
|
|
225
|
-
},
|
|
225
|
+
}, Qi = {
|
|
226
226
|
hint: {
|
|
227
227
|
konnect: "The {token} environment variable must be added first. See {link} for details.",
|
|
228
228
|
kongManager: "If your Admin API is secured, set up authentication following {link}."
|
|
229
229
|
},
|
|
230
230
|
documentation: "the documentation"
|
|
231
|
-
},
|
|
232
|
-
global:
|
|
233
|
-
deleteModal:
|
|
234
|
-
baseForm:
|
|
235
|
-
baseTable:
|
|
236
|
-
baseConfigCard:
|
|
237
|
-
emptyState:
|
|
238
|
-
filter:
|
|
239
|
-
debouncedFilter:
|
|
240
|
-
errors:
|
|
241
|
-
validationErrors:
|
|
242
|
-
toggleModal:
|
|
243
|
-
deckCodeBlock:
|
|
231
|
+
}, Zi = {
|
|
232
|
+
global: Pi,
|
|
233
|
+
deleteModal: ji,
|
|
234
|
+
baseForm: Ui,
|
|
235
|
+
baseTable: qi,
|
|
236
|
+
baseConfigCard: Hi,
|
|
237
|
+
emptyState: Yi,
|
|
238
|
+
filter: Vi,
|
|
239
|
+
debouncedFilter: Wi,
|
|
240
|
+
errors: Gi,
|
|
241
|
+
validationErrors: Ji,
|
|
242
|
+
toggleModal: zi,
|
|
243
|
+
deckCodeBlock: Qi
|
|
244
244
|
};
|
|
245
245
|
function Je() {
|
|
246
|
-
const e =
|
|
246
|
+
const e = di("en-us", Zi);
|
|
247
247
|
return {
|
|
248
248
|
i18n: e,
|
|
249
|
-
i18nT:
|
|
249
|
+
i18nT: fi(e)
|
|
250
250
|
// Translation component <i18n-t>
|
|
251
251
|
};
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function rn() {
|
|
254
254
|
const e = (o, a) => (a == null ? void 0 : a[o]) ?? void 0, t = (o, a) => {
|
|
255
255
|
if (o.length !== a.length) return !1;
|
|
256
256
|
const l = /* @__PURE__ */ new Set([...o, ...a]);
|
|
@@ -292,17 +292,17 @@ function on() {
|
|
|
292
292
|
isValidUuid: (o) => o ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(o) : !1
|
|
293
293
|
};
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function Xi(e, t, n, i = {
|
|
296
296
|
fetchedItemsKey: "data",
|
|
297
297
|
searchKeys: ["id"]
|
|
298
298
|
}) {
|
|
299
299
|
n || (n = "1000");
|
|
300
|
-
const { axiosInstance: r } =
|
|
300
|
+
const { axiosInstance: r } = ft(e.axiosRequestConfig), { i18n: { t: o } } = Je(), { debounce: a } = Ni(), l = a(async (S) => {
|
|
301
301
|
await C(S);
|
|
302
302
|
}, 200), s = N(!1), c = N(""), d = N(""), u = N([]), v = N([]), f = N(void 0), y = _(() => {
|
|
303
303
|
let S = `${e.apiBaseUrl}${x(t)}`;
|
|
304
304
|
return e.app === "konnect" && (S = S.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "")), S.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "");
|
|
305
|
-
}), { isValidUuid: g } =
|
|
305
|
+
}), { isValidUuid: g } = rn(), p = async () => {
|
|
306
306
|
try {
|
|
307
307
|
s.value = !0;
|
|
308
308
|
const { data: S } = await r.get(`${y.value}?size=${n}`);
|
|
@@ -313,7 +313,7 @@ function tr(e, t, n, i = {
|
|
|
313
313
|
s.value = !1;
|
|
314
314
|
}
|
|
315
315
|
}, b = N(""), C = async (S) => {
|
|
316
|
-
var B, V,
|
|
316
|
+
var B, V, R;
|
|
317
317
|
if (b.value !== S) {
|
|
318
318
|
if (b.value = S ?? "", !S) {
|
|
319
319
|
u.value = v.value;
|
|
@@ -349,7 +349,7 @@ function tr(e, t, n, i = {
|
|
|
349
349
|
s.value = !1;
|
|
350
350
|
}
|
|
351
351
|
else
|
|
352
|
-
s.value = !0, d.value = "", u.value = (
|
|
352
|
+
s.value = !0, d.value = "", u.value = (R = f.value) == null ? void 0 : R.filter((F) => {
|
|
353
353
|
var h;
|
|
354
354
|
let $ = !1;
|
|
355
355
|
for (const A of i.searchKeys) {
|
|
@@ -370,13 +370,13 @@ function tr(e, t, n, i = {
|
|
|
370
370
|
debouncedQueryChange: l
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function er(e, t) {
|
|
374
374
|
const n = x(t), i = _(
|
|
375
375
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
376
376
|
);
|
|
377
377
|
return i.value.search = "", (r) => `${i.value.href}/${r}`;
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function tr() {
|
|
380
380
|
const { i18n: { t: e } } = Je();
|
|
381
381
|
return {
|
|
382
382
|
getErrorFieldsFromError: (i) => {
|
|
@@ -448,7 +448,7 @@ function ir() {
|
|
|
448
448
|
}
|
|
449
449
|
};
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function nr(e) {
|
|
452
452
|
const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
|
|
453
453
|
try {
|
|
454
454
|
const i = e.join("/"), r = `${n}${i}`, o = e.some((l) => l.trim() === "");
|
|
@@ -459,7 +459,7 @@ function rr(e) {
|
|
|
459
459
|
return console.warn("Failed to build valid URL:", i), "";
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function an(e, t) {
|
|
463
463
|
const n = _(() => {
|
|
464
464
|
const r = Ce(e);
|
|
465
465
|
return r.app === "konnect" || !!r.isExactMatch;
|
|
@@ -479,9 +479,9 @@ function ln(e, t) {
|
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
const
|
|
483
|
-
function
|
|
484
|
-
const i = N(!0), r = Ce(e), { axiosInstance: o } =
|
|
482
|
+
const St = /* @__PURE__ */ new Map();
|
|
483
|
+
function ir(e, t, n) {
|
|
484
|
+
const i = N(!0), r = Ce(e), { axiosInstance: o } = ft(r.axiosRequestConfig), a = an(e, t), l = N({
|
|
485
485
|
status: ke.Idle
|
|
486
486
|
}), s = async (u) => {
|
|
487
487
|
var f;
|
|
@@ -527,79 +527,79 @@ function ar(e, t, n) {
|
|
|
527
527
|
error: y.response ? y : { response: y }
|
|
528
528
|
}, g);
|
|
529
529
|
}
|
|
530
|
-
}, c = r.cacheIdentifier, d =
|
|
530
|
+
}, c = r.cacheIdentifier, d = on(c);
|
|
531
531
|
return { fetcher: s, fetcherState: l, fetcherCacheKey: d };
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function on(e) {
|
|
534
534
|
if (e) {
|
|
535
|
-
let t =
|
|
536
|
-
return t || (t = N(1),
|
|
535
|
+
let t = St.get(e);
|
|
536
|
+
return t || (t = N(1), St.set(e, t)), t;
|
|
537
537
|
}
|
|
538
538
|
return N(1);
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function rr() {
|
|
541
541
|
const e = (i, r = "_") => i ? i.split(r).map((o) => o.toLowerCase() === "id" ? o.toUpperCase() : o.charAt(0).toUpperCase() + o.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
|
|
542
542
|
return {
|
|
543
543
|
capitalize: (i) => i ? i.replace(t, (r) => r.toUpperCase()) : "",
|
|
544
544
|
convertKeyToTitle: e
|
|
545
545
|
};
|
|
546
546
|
}
|
|
547
|
-
const
|
|
547
|
+
const ln = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, $t = (e) => {
|
|
548
548
|
if (typeof e != "string")
|
|
549
549
|
throw new TypeError("Invalid argument expected string");
|
|
550
|
-
const t = e.match(
|
|
550
|
+
const t = e.match(ln);
|
|
551
551
|
if (!t)
|
|
552
552
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
553
553
|
return t.shift(), t;
|
|
554
|
-
},
|
|
554
|
+
}, Tt = (e) => e === "*" || e === "x" || e === "X", Et = (e) => {
|
|
555
555
|
const t = parseInt(e, 10);
|
|
556
556
|
return isNaN(t) ? e : t;
|
|
557
|
-
},
|
|
558
|
-
if (
|
|
557
|
+
}, ar = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], or = (e, t) => {
|
|
558
|
+
if (Tt(e) || Tt(t))
|
|
559
559
|
return 0;
|
|
560
|
-
const [n, i] =
|
|
560
|
+
const [n, i] = ar(Et(e), Et(t));
|
|
561
561
|
return n > i ? 1 : n < i ? -1 : 0;
|
|
562
|
-
},
|
|
562
|
+
}, It = (e, t) => {
|
|
563
563
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
564
|
-
const i =
|
|
564
|
+
const i = or(e[n] || "0", t[n] || "0");
|
|
565
565
|
if (i !== 0)
|
|
566
566
|
return i;
|
|
567
567
|
}
|
|
568
568
|
return 0;
|
|
569
|
-
},
|
|
570
|
-
const n =
|
|
571
|
-
return a !== 0 ? a : r && o ?
|
|
572
|
-
},
|
|
573
|
-
|
|
574
|
-
const i =
|
|
575
|
-
return
|
|
576
|
-
},
|
|
569
|
+
}, lr = (e, t) => {
|
|
570
|
+
const n = $t(e), i = $t(t), r = n.pop(), o = i.pop(), a = It(n, i);
|
|
571
|
+
return a !== 0 ? a : r && o ? It(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
|
|
572
|
+
}, Ft = (e, t, n) => {
|
|
573
|
+
sr(n);
|
|
574
|
+
const i = lr(e, t);
|
|
575
|
+
return sn[n].includes(i);
|
|
576
|
+
}, sn = {
|
|
577
577
|
">": [1],
|
|
578
578
|
">=": [0, 1],
|
|
579
579
|
"=": [0],
|
|
580
580
|
"<=": [-1, 0],
|
|
581
581
|
"<": [-1],
|
|
582
582
|
"!=": [-1, 1]
|
|
583
|
-
},
|
|
583
|
+
}, Ot = Object.keys(sn), sr = (e) => {
|
|
584
584
|
if (typeof e != "string")
|
|
585
585
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
586
|
-
if (
|
|
587
|
-
throw new Error(`Invalid operator, expected one of ${
|
|
588
|
-
},
|
|
589
|
-
function
|
|
586
|
+
if (Ot.indexOf(e) === -1)
|
|
587
|
+
throw new Error(`Invalid operator, expected one of ${Ot.join("|")}`);
|
|
588
|
+
}, cr = (e) => typeof e == "string" && /^[v\d]/.test(e) && ln.test(e);
|
|
589
|
+
function ur(e) {
|
|
590
590
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
591
591
|
if (!t)
|
|
592
592
|
return !0;
|
|
593
593
|
const { edition: i, version: r } = t;
|
|
594
|
-
if (!
|
|
594
|
+
if (!cr(r))
|
|
595
595
|
return console.error("Invalid version"), !1;
|
|
596
596
|
const o = n[i];
|
|
597
597
|
if (!o)
|
|
598
598
|
return !1;
|
|
599
599
|
const [a, l] = o;
|
|
600
|
-
return !(a &&
|
|
600
|
+
return !(a && Ft(r, a, "<") || l && Ft(r, l, ">"));
|
|
601
601
|
}
|
|
602
|
-
function
|
|
602
|
+
function dr(e) {
|
|
603
603
|
const t = N(0), n = N(0), i = N(!1);
|
|
604
604
|
return we(e, (o) => {
|
|
605
605
|
o && !i.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, i.value = !0);
|
|
@@ -607,20 +607,20 @@ function pr(e) {
|
|
|
607
607
|
isTruncated: _(() => t.value < n.value)
|
|
608
608
|
};
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function fr() {
|
|
611
611
|
const { i18n: { t: e } } = Je();
|
|
612
612
|
return {
|
|
613
613
|
utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
|
|
614
614
|
};
|
|
615
615
|
}
|
|
616
|
-
const
|
|
617
|
-
|
|
618
|
-
},
|
|
616
|
+
const it = Symbol("schema"), pr = (e) => {
|
|
617
|
+
zt(it, e);
|
|
618
|
+
}, mr = (e) => {
|
|
619
619
|
var r, o;
|
|
620
|
-
const t =
|
|
621
|
-
return
|
|
620
|
+
const t = ct(it, void 0), n = (o = (r = t == null ? void 0 : t.value) == null ? void 0 : r.fields) == null ? void 0 : o.find((a) => Object.keys(a)[0] === e), i = ri(n == null ? void 0 : n[e]);
|
|
621
|
+
return zt(it, i), i;
|
|
622
622
|
};
|
|
623
|
-
function
|
|
623
|
+
function gr(e) {
|
|
624
624
|
let t = "";
|
|
625
625
|
const n = N(!1), i = N(null), r = _(() => {
|
|
626
626
|
let a;
|
|
@@ -636,27 +636,27 @@ function hr(e) {
|
|
|
636
636
|
};
|
|
637
637
|
}
|
|
638
638
|
const z = {
|
|
639
|
-
useAxios:
|
|
640
|
-
useDebouncedFilter:
|
|
641
|
-
useDeleteUrlBuilder:
|
|
642
|
-
useErrors:
|
|
643
|
-
useExternalLinkCreator:
|
|
644
|
-
useFetcher:
|
|
645
|
-
useFetcherCacheKey:
|
|
646
|
-
useFetchUrlBuilder:
|
|
647
|
-
useHelpers:
|
|
648
|
-
useStringHelpers:
|
|
639
|
+
useAxios: ft,
|
|
640
|
+
useDebouncedFilter: Xi,
|
|
641
|
+
useDeleteUrlBuilder: er,
|
|
642
|
+
useErrors: tr,
|
|
643
|
+
useExternalLinkCreator: nr,
|
|
644
|
+
useFetcher: ir,
|
|
645
|
+
useFetcherCacheKey: on,
|
|
646
|
+
useFetchUrlBuilder: an,
|
|
647
|
+
useHelpers: rn,
|
|
648
|
+
useStringHelpers: rr,
|
|
649
649
|
useI18n: Je,
|
|
650
|
-
useGatewayFeatureSupported:
|
|
651
|
-
useTruncationDetector:
|
|
652
|
-
useValidators:
|
|
653
|
-
useSchemaProvider:
|
|
654
|
-
useSubSchema:
|
|
655
|
-
useTableState:
|
|
656
|
-
},
|
|
650
|
+
useGatewayFeatureSupported: ur,
|
|
651
|
+
useTruncationDetector: dr,
|
|
652
|
+
useValidators: fr,
|
|
653
|
+
useSchemaProvider: pr,
|
|
654
|
+
useSubSchema: mr,
|
|
655
|
+
useTableState: gr
|
|
656
|
+
}, yr = {
|
|
657
657
|
key: 0,
|
|
658
658
|
class: "config-card-fieldset-title"
|
|
659
|
-
},
|
|
659
|
+
}, hr = /* @__PURE__ */ Z({
|
|
660
660
|
__name: "JsonCardItem",
|
|
661
661
|
props: {
|
|
662
662
|
item: {
|
|
@@ -684,10 +684,10 @@ const z = {
|
|
|
684
684
|
class: pe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
685
685
|
}, {
|
|
686
686
|
default: w(() => [
|
|
687
|
-
e.isArrayItem ? (m(), T("legend",
|
|
688
|
-
|
|
687
|
+
e.isArrayItem ? (m(), T("legend", yr, [
|
|
688
|
+
L("b", null, O(l.value), 1)
|
|
689
689
|
])) : P("", !0),
|
|
690
|
-
(m(!0), T(ge, null, ye(Object.keys(a.value), (d, u) => (m(), K(
|
|
690
|
+
(m(!0), T(ge, null, ye(Object.keys(a.value), (d, u) => (m(), K(un, {
|
|
691
691
|
key: `${r.value}-property-${u}`,
|
|
692
692
|
item: {
|
|
693
693
|
key: d,
|
|
@@ -704,7 +704,7 @@ const z = {
|
|
|
704
704
|
for (const [i, r] of t)
|
|
705
705
|
n[i] = r;
|
|
706
706
|
return n;
|
|
707
|
-
},
|
|
707
|
+
}, cn = /* @__PURE__ */ de(hr, [["__scopeId", "data-v-5baf64ca"]]), vr = /* @__PURE__ */ Z({
|
|
708
708
|
__name: "InternalLinkItem",
|
|
709
709
|
props: {
|
|
710
710
|
item: {
|
|
@@ -731,7 +731,7 @@ const z = {
|
|
|
731
731
|
]);
|
|
732
732
|
};
|
|
733
733
|
}
|
|
734
|
-
}),
|
|
734
|
+
}), br = /* @__PURE__ */ de(vr, [["__scopeId", "data-v-2feb8c2e"]]), kr = /* @__PURE__ */ Z({
|
|
735
735
|
__name: "StatusBadge",
|
|
736
736
|
props: {
|
|
737
737
|
status: {
|
|
@@ -753,13 +753,13 @@ const z = {
|
|
|
753
753
|
}, 8, ["appearance"]);
|
|
754
754
|
};
|
|
755
755
|
}
|
|
756
|
-
}),
|
|
756
|
+
}), Cr = "#0044f4", xr = "#e0e4ea", Ar = "#afb7c5", _r = "#0044f4", wr = "1px", Sr = "16px", $r = "20px";
|
|
757
757
|
let Ze = null;
|
|
758
|
-
function
|
|
759
|
-
return Ze || (Ze =
|
|
760
|
-
langs: [
|
|
761
|
-
themes: [
|
|
762
|
-
engine:
|
|
758
|
+
function Tr() {
|
|
759
|
+
return Ze || (Ze = hi({
|
|
760
|
+
langs: [bi, ki, Ci, xi, Ai],
|
|
761
|
+
themes: [_i, wi],
|
|
762
|
+
engine: vi(),
|
|
763
763
|
langAlias: {
|
|
764
764
|
bash: "shellscript",
|
|
765
765
|
sh: "shellscript",
|
|
@@ -768,17 +768,17 @@ function Ir() {
|
|
|
768
768
|
}
|
|
769
769
|
})), Ze;
|
|
770
770
|
}
|
|
771
|
-
function
|
|
772
|
-
return
|
|
771
|
+
function Er(e, t) {
|
|
772
|
+
return Tr().codeToHtml(e, t);
|
|
773
773
|
}
|
|
774
774
|
function Be({ codeElement: e, code: t, language: n, theme: i }) {
|
|
775
|
-
e.innerHTML =
|
|
775
|
+
e.innerHTML = Er(t, { lang: n, theme: i === "dark" ? "catppuccin-mocha" : "catppuccin-latte", structure: "inline" });
|
|
776
776
|
}
|
|
777
|
-
const
|
|
777
|
+
const Ir = { class: "config-card-details-row" }, Fr = ["data-testid"], Or = ["data-testid"], Br = ["data-testid"], Lr = ["data-testid"], Rr = { key: 1 }, Kr = ["data-testid"], Nr = ["data-testid"], Mr = ["data-testid"], Dr = ["data-testid"], Pr = {
|
|
778
778
|
name: "ConfigCardItem",
|
|
779
|
-
components: { JsonCardItem:
|
|
780
|
-
},
|
|
781
|
-
...
|
|
779
|
+
components: { JsonCardItem: cn, StatusBadge: kr, InternalLinkItem: br }
|
|
780
|
+
}, jr = /* @__PURE__ */ Z({
|
|
781
|
+
...Pr,
|
|
782
782
|
props: {
|
|
783
783
|
item: {
|
|
784
784
|
type: Object,
|
|
@@ -797,13 +797,13 @@ const Or = { class: "config-card-details-row" }, Br = ["data-testid"], Rr = ["da
|
|
|
797
797
|
},
|
|
798
798
|
emits: ["navigation-click"],
|
|
799
799
|
setup(e, { emit: t }) {
|
|
800
|
-
|
|
801
|
-
v25a763c4: v.value ? "none" : `solid ${x(
|
|
800
|
+
Qt((B) => ({
|
|
801
|
+
v25a763c4: v.value ? "none" : `solid ${x(wr)} ${x(xr)}`,
|
|
802
802
|
v1ac90e12: u.value && c.value ? "block" : "flex",
|
|
803
803
|
v45a716ee: u.value && c.value ? "100%" : n.slim ? "50%" : "25%",
|
|
804
804
|
v45a28b38: u.value && c.value ? "100%" : n.slim ? "50%" : "75%"
|
|
805
805
|
}));
|
|
806
|
-
const n = e, i = t, r =
|
|
806
|
+
const n = e, i = t, r = ai(), o = Pe(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = z.useI18n(), c = _(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = _(() => !!(n.item.tooltip || o["label-tooltip"])), u = _(() => n.item.type === J.Json || n.item.type === J.JsonArray), v = _(() => n.item.type === J.JsonArray), f = z.useSubSchema(n.item.key), y = _(() => {
|
|
807
807
|
var B;
|
|
808
808
|
return n.item.type ? n.item.type : (B = f == null ? void 0 : f.value) != null && B.encrypted ? J.Redacted : void 0;
|
|
809
809
|
}), g = _(() => {
|
|
@@ -940,20 +940,20 @@ const Or = { class: "config-card-details-row" }, Br = ["data-testid"], Rr = ["da
|
|
|
940
940
|
}
|
|
941
941
|
}), p = N(), b = N(), { isTruncated: C } = z.useTruncationDetector(p), { isTruncated: S } = z.useTruncationDetector(b);
|
|
942
942
|
return (B, V) => {
|
|
943
|
-
const
|
|
944
|
-
return m(), T("div",
|
|
945
|
-
|
|
943
|
+
const R = U("KTooltip"), F = U("KLabel"), $ = U("KBadge"), h = U("KCopy");
|
|
944
|
+
return m(), T("div", Ir, [
|
|
945
|
+
L("div", {
|
|
946
946
|
class: "config-card-details-label",
|
|
947
947
|
"data-testid": `${e.item.key}-label`
|
|
948
948
|
}, [
|
|
949
949
|
j(B.$slots, "label", { item: e.item }, () => [
|
|
950
950
|
D(F, { "tooltip-attributes": { maxWidth: "500px" } }, Se({
|
|
951
951
|
default: w(() => [
|
|
952
|
-
D(
|
|
952
|
+
D(R, {
|
|
953
953
|
text: x(C) ? e.item.label : ""
|
|
954
954
|
}, {
|
|
955
955
|
default: w(() => [
|
|
956
|
-
|
|
956
|
+
L("span", {
|
|
957
957
|
ref_key: "labelContent",
|
|
958
958
|
ref: p,
|
|
959
959
|
class: "label-content"
|
|
@@ -967,28 +967,28 @@ const Or = { class: "config-card-details-row" }, Br = ["data-testid"], Rr = ["da
|
|
|
967
967
|
d.value ? {
|
|
968
968
|
name: "tooltip",
|
|
969
969
|
fn: w(() => [
|
|
970
|
-
|
|
970
|
+
L("div", {
|
|
971
971
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
972
972
|
}, [
|
|
973
973
|
j(B.$slots, "label-tooltip", {}, () => [
|
|
974
974
|
Y(O(e.item.tooltip), 1)
|
|
975
975
|
], !0)
|
|
976
|
-
], 8,
|
|
976
|
+
], 8, Or)
|
|
977
977
|
]),
|
|
978
978
|
key: "0"
|
|
979
979
|
} : void 0
|
|
980
980
|
]), 1024)
|
|
981
981
|
], !0)
|
|
982
|
-
], 8,
|
|
983
|
-
|
|
982
|
+
], 8, Fr),
|
|
983
|
+
L("div", {
|
|
984
984
|
class: "config-card-details-value",
|
|
985
985
|
"data-testid": `${e.item.key}-property-value`
|
|
986
986
|
}, [
|
|
987
987
|
j(B.$slots, e.item.key, {
|
|
988
988
|
rowValue: e.item.value
|
|
989
989
|
}, () => [
|
|
990
|
-
c.value ? (m(), T("div",
|
|
991
|
-
(m(), K(We(g.value.tag),
|
|
990
|
+
c.value ? (m(), T("div", Rr, [
|
|
991
|
+
(m(), K(We(g.value.tag), oi(li(g.value.attrs)), {
|
|
992
992
|
default: w(() => [
|
|
993
993
|
g.value.additionalComponent === "KBadge" ? (m(), T("div", {
|
|
994
994
|
key: 0,
|
|
@@ -1006,24 +1006,24 @@ const Or = { class: "config-card-details-row" }, Br = ["data-testid"], Rr = ["da
|
|
|
1006
1006
|
]),
|
|
1007
1007
|
_: 2
|
|
1008
1008
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
1009
|
-
], 8,
|
|
1009
|
+
], 8, Kr)) : g.value.additionalComponent === "KCopy" ? (m(), T("div", {
|
|
1010
1010
|
key: 1,
|
|
1011
1011
|
class: "copy-uuid-array",
|
|
1012
1012
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1013
1013
|
}, [
|
|
1014
|
-
(m(!0), T(ge, null, ye(e.item.value, (A, E) => (m(), K(h,
|
|
1014
|
+
(m(!0), T(ge, null, ye(e.item.value, (A, E) => (m(), K(h, Zt({ ref_for: !0 }, g.value.childAttrs, {
|
|
1015
1015
|
key: `${e.item.key}-copy-uuid-${E}`,
|
|
1016
1016
|
"data-testid": `${e.item.key}-copy-uuid-${E}`,
|
|
1017
1017
|
text: A
|
|
1018
1018
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
1019
|
-
], 8,
|
|
1019
|
+
], 8, Nr)) : g.value.additionalComponent === "KMethodBadge" ? (m(), T("div", {
|
|
1020
1020
|
key: 2,
|
|
1021
1021
|
class: "method-badge-array",
|
|
1022
1022
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1023
1023
|
}, [
|
|
1024
1024
|
(m(!0), T(ge, null, ye(e.item.value, (A, E) => (m(), K($, {
|
|
1025
1025
|
key: `${e.item.key}-badge-method-${E}`,
|
|
1026
|
-
appearance: Object.values(x(
|
|
1026
|
+
appearance: Object.values(x(pi)).includes(A.toLowerCase()) ? A.toLowerCase() : "custom",
|
|
1027
1027
|
class: "config-badge",
|
|
1028
1028
|
"data-testid": `${e.item.key}-badge-method-${E}`
|
|
1029
1029
|
}, {
|
|
@@ -1032,22 +1032,22 @@ const Or = { class: "config-card-details-row" }, Br = ["data-testid"], Rr = ["da
|
|
|
1032
1032
|
]),
|
|
1033
1033
|
_: 2
|
|
1034
1034
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
1035
|
-
], 8,
|
|
1035
|
+
], 8, Mr)) : g.value.additionalComponent === "JsonCardItem" ? (m(), T("div", {
|
|
1036
1036
|
key: 3,
|
|
1037
1037
|
"data-testid": `${n.item.key}-json-array-content`
|
|
1038
1038
|
}, [
|
|
1039
|
-
(m(!0), T(ge, null, ye(e.item.value, (A, E) => (m(), K(
|
|
1039
|
+
(m(!0), T(ge, null, ye(e.item.value, (A, E) => (m(), K(cn, {
|
|
1040
1040
|
key: `json-array-item-${E}`,
|
|
1041
1041
|
index: Number(E),
|
|
1042
1042
|
"is-array-item": "",
|
|
1043
1043
|
item: A
|
|
1044
1044
|
}, null, 8, ["index", "item"]))), 128))
|
|
1045
|
-
], 8,
|
|
1045
|
+
], 8, Dr)) : (m(), K(R, {
|
|
1046
1046
|
key: 4,
|
|
1047
1047
|
text: x(S) ? e.item.value : ""
|
|
1048
1048
|
}, {
|
|
1049
1049
|
default: w(() => [
|
|
1050
|
-
|
|
1050
|
+
L("span", {
|
|
1051
1051
|
ref_key: "textContent",
|
|
1052
1052
|
ref: b,
|
|
1053
1053
|
class: pe(["attrs-data-text", { truncated: e.truncated }])
|
|
@@ -1061,16 +1061,16 @@ const Or = { class: "config-card-details-row" }, Br = ["data-testid"], Rr = ["da
|
|
|
1061
1061
|
])) : (m(), T("div", {
|
|
1062
1062
|
key: 0,
|
|
1063
1063
|
"data-testid": `${e.item.key}-no-value`
|
|
1064
|
-
}, " – ", 8,
|
|
1064
|
+
}, " – ", 8, Lr))
|
|
1065
1065
|
], !0)
|
|
1066
|
-
], 8,
|
|
1066
|
+
], 8, Br)
|
|
1067
1067
|
]);
|
|
1068
1068
|
};
|
|
1069
1069
|
}
|
|
1070
|
-
}),
|
|
1070
|
+
}), un = /* @__PURE__ */ de(jr, [["__scopeId", "data-v-b6987b3c"]]), Ur = { class: "json-config config-card-code-block" }, qr = {
|
|
1071
1071
|
key: 0,
|
|
1072
1072
|
class: "json-endpoint"
|
|
1073
|
-
},
|
|
1073
|
+
}, dn = /* @__PURE__ */ Z({
|
|
1074
1074
|
__name: "JsonCodeBlock",
|
|
1075
1075
|
props: {
|
|
1076
1076
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1098,7 +1098,7 @@ const Or = { class: "config-card-details-row" }, Br = ["data-testid"], Rr = ["da
|
|
|
1098
1098
|
}
|
|
1099
1099
|
},
|
|
1100
1100
|
setup(e) {
|
|
1101
|
-
|
|
1101
|
+
Qt((r) => ({
|
|
1102
1102
|
v775b4bd8: `${i.value}ch`
|
|
1103
1103
|
}));
|
|
1104
1104
|
const t = e, n = _(() => t.entityRecord), i = _(() => {
|
|
@@ -1110,8 +1110,8 @@ const Or = { class: "config-card-details-row" }, Br = ["data-testid"], Rr = ["da
|
|
|
1110
1110
|
});
|
|
1111
1111
|
return (r, o) => {
|
|
1112
1112
|
const a = U("KBadge"), l = U("KCodeBlock");
|
|
1113
|
-
return m(), T("div",
|
|
1114
|
-
t.fetcherUrl ? (m(), T("div",
|
|
1113
|
+
return m(), T("div", Ur, [
|
|
1114
|
+
t.fetcherUrl ? (m(), T("div", qr, [
|
|
1115
1115
|
D(a, {
|
|
1116
1116
|
appearance: t.requestMethod
|
|
1117
1117
|
}, {
|
|
@@ -1142,52 +1142,52 @@ const Or = { class: "config-card-details-row" }, Br = ["data-testid"], Rr = ["da
|
|
|
1142
1142
|
}
|
|
1143
1143
|
});
|
|
1144
1144
|
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|
|
1145
|
-
function
|
|
1145
|
+
function fn(e) {
|
|
1146
1146
|
return typeof e > "u" || e === null;
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function Hr(e) {
|
|
1149
1149
|
return typeof e == "object" && e !== null;
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1152
|
-
return Array.isArray(e) ? e :
|
|
1151
|
+
function Yr(e) {
|
|
1152
|
+
return Array.isArray(e) ? e : fn(e) ? [] : [e];
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function Vr(e, t) {
|
|
1155
1155
|
var n, i, r, o;
|
|
1156
1156
|
if (t)
|
|
1157
1157
|
for (o = Object.keys(t), n = 0, i = o.length; n < i; n += 1)
|
|
1158
1158
|
r = o[n], e[r] = t[r];
|
|
1159
1159
|
return e;
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function Wr(e, t) {
|
|
1162
1162
|
var n = "", i;
|
|
1163
1163
|
for (i = 0; i < t; i += 1)
|
|
1164
1164
|
n += e;
|
|
1165
1165
|
return n;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function Gr(e) {
|
|
1168
1168
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1169
1169
|
}
|
|
1170
|
-
var
|
|
1171
|
-
isNothing:
|
|
1172
|
-
isObject:
|
|
1173
|
-
toArray:
|
|
1174
|
-
repeat:
|
|
1175
|
-
isNegativeZero:
|
|
1176
|
-
extend:
|
|
1170
|
+
var Jr = fn, zr = Hr, Qr = Yr, Zr = Wr, Xr = Gr, ea = Vr, ie = {
|
|
1171
|
+
isNothing: Jr,
|
|
1172
|
+
isObject: zr,
|
|
1173
|
+
toArray: Qr,
|
|
1174
|
+
repeat: Zr,
|
|
1175
|
+
isNegativeZero: Xr,
|
|
1176
|
+
extend: ea
|
|
1177
1177
|
};
|
|
1178
|
-
function
|
|
1178
|
+
function pn(e, t) {
|
|
1179
1179
|
var n = "", i = e.reason || "(unknown reason)";
|
|
1180
1180
|
return e.mark ? (e.mark.name && (n += 'in "' + e.mark.name + '" '), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += `
|
|
1181
1181
|
|
|
1182
1182
|
` + e.mark.snippet), i + " " + n) : i;
|
|
1183
1183
|
}
|
|
1184
1184
|
function Ke(e, t) {
|
|
1185
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
1185
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = pn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1186
1186
|
}
|
|
1187
1187
|
Ke.prototype = Object.create(Error.prototype);
|
|
1188
1188
|
Ke.prototype.constructor = Ke;
|
|
1189
1189
|
Ke.prototype.toString = function(t) {
|
|
1190
|
-
return this.name + ": " +
|
|
1190
|
+
return this.name + ": " + pn(this, t);
|
|
1191
1191
|
};
|
|
1192
1192
|
var ue = Ke;
|
|
1193
1193
|
function Xe(e, t, n, i, r) {
|
|
@@ -1201,7 +1201,7 @@ function Xe(e, t, n, i, r) {
|
|
|
1201
1201
|
function et(e, t) {
|
|
1202
1202
|
return ie.repeat(" ", t - e.length) + e;
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function ta(e, t) {
|
|
1205
1205
|
if (t = Object.create(t || null), !e.buffer) return null;
|
|
1206
1206
|
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);
|
|
1207
1207
|
for (var n = /\r?\n|\r|\0/g, i = [0], r = [], o, a = -1; o = n.exec(e.buffer); )
|
|
@@ -1230,7 +1230,7 @@ function ia(e, t) {
|
|
|
1230
1230
|
`;
|
|
1231
1231
|
return l.replace(/\n$/, "");
|
|
1232
1232
|
}
|
|
1233
|
-
var
|
|
1233
|
+
var na = ta, ia = [
|
|
1234
1234
|
"kind",
|
|
1235
1235
|
"multi",
|
|
1236
1236
|
"resolve",
|
|
@@ -1241,12 +1241,12 @@ var ra = ia, aa = [
|
|
|
1241
1241
|
"representName",
|
|
1242
1242
|
"defaultStyle",
|
|
1243
1243
|
"styleAliases"
|
|
1244
|
-
],
|
|
1244
|
+
], ra = [
|
|
1245
1245
|
"scalar",
|
|
1246
1246
|
"sequence",
|
|
1247
1247
|
"mapping"
|
|
1248
1248
|
];
|
|
1249
|
-
function
|
|
1249
|
+
function aa(e) {
|
|
1250
1250
|
var t = {};
|
|
1251
1251
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
1252
1252
|
e[n].forEach(function(i) {
|
|
@@ -1254,19 +1254,19 @@ function la(e) {
|
|
|
1254
1254
|
});
|
|
1255
1255
|
}), t;
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1257
|
+
function oa(e, t) {
|
|
1258
1258
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
1259
|
-
if (
|
|
1259
|
+
if (ia.indexOf(n) === -1)
|
|
1260
1260
|
throw new ue('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
1261
1261
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1262
1262
|
return !0;
|
|
1263
1263
|
}, this.construct = t.construct || function(n) {
|
|
1264
1264
|
return n;
|
|
1265
|
-
}, 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 =
|
|
1265
|
+
}, 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 = aa(t.styleAliases || null), ra.indexOf(this.kind) === -1)
|
|
1266
1266
|
throw new ue('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1267
1267
|
}
|
|
1268
|
-
var oe =
|
|
1269
|
-
function
|
|
1268
|
+
var oe = oa;
|
|
1269
|
+
function Bt(e, t) {
|
|
1270
1270
|
var n = [];
|
|
1271
1271
|
return e[t].forEach(function(i) {
|
|
1272
1272
|
var r = n.length;
|
|
@@ -1275,7 +1275,7 @@ function Rt(e, t) {
|
|
|
1275
1275
|
}), n[r] = i;
|
|
1276
1276
|
}), n;
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
1278
|
+
function la() {
|
|
1279
1279
|
var e = {
|
|
1280
1280
|
scalar: {},
|
|
1281
1281
|
sequence: {},
|
|
@@ -1295,10 +1295,10 @@ function ca() {
|
|
|
1295
1295
|
arguments[t].forEach(i);
|
|
1296
1296
|
return e;
|
|
1297
1297
|
}
|
|
1298
|
-
function
|
|
1298
|
+
function rt(e) {
|
|
1299
1299
|
return this.extend(e);
|
|
1300
1300
|
}
|
|
1301
|
-
|
|
1301
|
+
rt.prototype.extend = function(t) {
|
|
1302
1302
|
var n = [], i = [];
|
|
1303
1303
|
if (t instanceof oe)
|
|
1304
1304
|
i.push(t);
|
|
@@ -1319,47 +1319,47 @@ at.prototype.extend = function(t) {
|
|
|
1319
1319
|
if (!(o instanceof oe))
|
|
1320
1320
|
throw new ue("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1321
1321
|
});
|
|
1322
|
-
var r = Object.create(
|
|
1323
|
-
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit =
|
|
1322
|
+
var r = Object.create(rt.prototype);
|
|
1323
|
+
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = Bt(r, "implicit"), r.compiledExplicit = Bt(r, "explicit"), r.compiledTypeMap = la(r.compiledImplicit, r.compiledExplicit), r;
|
|
1324
1324
|
};
|
|
1325
|
-
var
|
|
1325
|
+
var mn = rt, gn = new oe("tag:yaml.org,2002:str", {
|
|
1326
1326
|
kind: "scalar",
|
|
1327
1327
|
construct: function(e) {
|
|
1328
1328
|
return e !== null ? e : "";
|
|
1329
1329
|
}
|
|
1330
|
-
}),
|
|
1330
|
+
}), yn = new oe("tag:yaml.org,2002:seq", {
|
|
1331
1331
|
kind: "sequence",
|
|
1332
1332
|
construct: function(e) {
|
|
1333
1333
|
return e !== null ? e : [];
|
|
1334
1334
|
}
|
|
1335
|
-
}),
|
|
1335
|
+
}), hn = new oe("tag:yaml.org,2002:map", {
|
|
1336
1336
|
kind: "mapping",
|
|
1337
1337
|
construct: function(e) {
|
|
1338
1338
|
return e !== null ? e : {};
|
|
1339
1339
|
}
|
|
1340
|
-
}),
|
|
1340
|
+
}), vn = new mn({
|
|
1341
1341
|
explicit: [
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1342
|
+
gn,
|
|
1343
|
+
yn,
|
|
1344
|
+
hn
|
|
1345
1345
|
]
|
|
1346
1346
|
});
|
|
1347
|
-
function
|
|
1347
|
+
function sa(e) {
|
|
1348
1348
|
if (e === null) return !0;
|
|
1349
1349
|
var t = e.length;
|
|
1350
1350
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1352
|
+
function ca() {
|
|
1353
1353
|
return null;
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function ua(e) {
|
|
1356
1356
|
return e === null;
|
|
1357
1357
|
}
|
|
1358
|
-
var
|
|
1358
|
+
var bn = new oe("tag:yaml.org,2002:null", {
|
|
1359
1359
|
kind: "scalar",
|
|
1360
|
-
resolve:
|
|
1361
|
-
construct:
|
|
1362
|
-
predicate:
|
|
1360
|
+
resolve: sa,
|
|
1361
|
+
construct: ca,
|
|
1362
|
+
predicate: ua,
|
|
1363
1363
|
represent: {
|
|
1364
1364
|
canonical: function() {
|
|
1365
1365
|
return "~";
|
|
@@ -1379,22 +1379,22 @@ var Cn = new oe("tag:yaml.org,2002:null", {
|
|
|
1379
1379
|
},
|
|
1380
1380
|
defaultStyle: "lowercase"
|
|
1381
1381
|
});
|
|
1382
|
-
function
|
|
1382
|
+
function da(e) {
|
|
1383
1383
|
if (e === null) return !1;
|
|
1384
1384
|
var t = e.length;
|
|
1385
1385
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1387
|
+
function fa(e) {
|
|
1388
1388
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1389
1389
|
}
|
|
1390
|
-
function
|
|
1390
|
+
function pa(e) {
|
|
1391
1391
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1392
1392
|
}
|
|
1393
|
-
var
|
|
1393
|
+
var kn = new oe("tag:yaml.org,2002:bool", {
|
|
1394
1394
|
kind: "scalar",
|
|
1395
|
-
resolve:
|
|
1396
|
-
construct:
|
|
1397
|
-
predicate:
|
|
1395
|
+
resolve: da,
|
|
1396
|
+
construct: fa,
|
|
1397
|
+
predicate: pa,
|
|
1398
1398
|
represent: {
|
|
1399
1399
|
lowercase: function(e) {
|
|
1400
1400
|
return e ? "true" : "false";
|
|
@@ -1408,16 +1408,16 @@ var xn = new oe("tag:yaml.org,2002:bool", {
|
|
|
1408
1408
|
},
|
|
1409
1409
|
defaultStyle: "lowercase"
|
|
1410
1410
|
});
|
|
1411
|
-
function
|
|
1411
|
+
function ma(e) {
|
|
1412
1412
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1413
1413
|
}
|
|
1414
|
-
function
|
|
1414
|
+
function ga(e) {
|
|
1415
1415
|
return 48 <= e && e <= 55;
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function ya(e) {
|
|
1418
1418
|
return 48 <= e && e <= 57;
|
|
1419
1419
|
}
|
|
1420
|
-
function
|
|
1420
|
+
function ha(e) {
|
|
1421
1421
|
if (e === null) return !1;
|
|
1422
1422
|
var t = e.length, n = 0, i = !1, r;
|
|
1423
1423
|
if (!t) return !1;
|
|
@@ -1434,7 +1434,7 @@ function ba(e) {
|
|
|
1434
1434
|
if (r === "x") {
|
|
1435
1435
|
for (n++; n < t; n++)
|
|
1436
1436
|
if (r = e[n], r !== "_") {
|
|
1437
|
-
if (!
|
|
1437
|
+
if (!ma(e.charCodeAt(n))) return !1;
|
|
1438
1438
|
i = !0;
|
|
1439
1439
|
}
|
|
1440
1440
|
return i && r !== "_";
|
|
@@ -1442,7 +1442,7 @@ function ba(e) {
|
|
|
1442
1442
|
if (r === "o") {
|
|
1443
1443
|
for (n++; n < t; n++)
|
|
1444
1444
|
if (r = e[n], r !== "_") {
|
|
1445
|
-
if (!
|
|
1445
|
+
if (!ga(e.charCodeAt(n))) return !1;
|
|
1446
1446
|
i = !0;
|
|
1447
1447
|
}
|
|
1448
1448
|
return i && r !== "_";
|
|
@@ -1451,13 +1451,13 @@ function ba(e) {
|
|
|
1451
1451
|
if (r === "_") return !1;
|
|
1452
1452
|
for (; n < t; n++)
|
|
1453
1453
|
if (r = e[n], r !== "_") {
|
|
1454
|
-
if (!
|
|
1454
|
+
if (!ya(e.charCodeAt(n)))
|
|
1455
1455
|
return !1;
|
|
1456
1456
|
i = !0;
|
|
1457
1457
|
}
|
|
1458
1458
|
return !(!i || r === "_");
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1460
|
+
function va(e) {
|
|
1461
1461
|
var t = e, n = 1, i;
|
|
1462
1462
|
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") return 0;
|
|
1463
1463
|
if (i === "0") {
|
|
@@ -1467,14 +1467,14 @@ function ka(e) {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
return n * parseInt(t, 10);
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function ba(e) {
|
|
1471
1471
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ie.isNegativeZero(e);
|
|
1472
1472
|
}
|
|
1473
|
-
var
|
|
1473
|
+
var Cn = new oe("tag:yaml.org,2002:int", {
|
|
1474
1474
|
kind: "scalar",
|
|
1475
|
-
resolve:
|
|
1476
|
-
construct:
|
|
1477
|
-
predicate:
|
|
1475
|
+
resolve: ha,
|
|
1476
|
+
construct: va,
|
|
1477
|
+
predicate: ba,
|
|
1478
1478
|
represent: {
|
|
1479
1479
|
binary: function(e) {
|
|
1480
1480
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1497,21 +1497,21 @@ var An = new oe("tag:yaml.org,2002:int", {
|
|
|
1497
1497
|
decimal: [10, "dec"],
|
|
1498
1498
|
hexadecimal: [16, "hex"]
|
|
1499
1499
|
}
|
|
1500
|
-
}),
|
|
1500
|
+
}), ka = new RegExp(
|
|
1501
1501
|
// 2.5e4, 2.5 and integers
|
|
1502
1502
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1503
1503
|
);
|
|
1504
|
-
function
|
|
1505
|
-
return !(e === null || !
|
|
1504
|
+
function Ca(e) {
|
|
1505
|
+
return !(e === null || !ka.test(e) || // Quick hack to not allow integers end with `_`
|
|
1506
1506
|
// Probably should update regexp & check speed
|
|
1507
1507
|
e[e.length - 1] === "_");
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function xa(e) {
|
|
1510
1510
|
var t, n;
|
|
1511
1511
|
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);
|
|
1512
1512
|
}
|
|
1513
|
-
var
|
|
1514
|
-
function
|
|
1513
|
+
var Aa = /^[-+]?[0-9]+e/;
|
|
1514
|
+
function _a(e, t) {
|
|
1515
1515
|
var n;
|
|
1516
1516
|
if (isNaN(e))
|
|
1517
1517
|
switch (t) {
|
|
@@ -1542,36 +1542,36 @@ function Sa(e, t) {
|
|
|
1542
1542
|
}
|
|
1543
1543
|
else if (ie.isNegativeZero(e))
|
|
1544
1544
|
return "-0.0";
|
|
1545
|
-
return n = e.toString(10),
|
|
1545
|
+
return n = e.toString(10), Aa.test(n) ? n.replace("e", ".e") : n;
|
|
1546
1546
|
}
|
|
1547
|
-
function
|
|
1547
|
+
function wa(e) {
|
|
1548
1548
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ie.isNegativeZero(e));
|
|
1549
1549
|
}
|
|
1550
|
-
var
|
|
1550
|
+
var xn = new oe("tag:yaml.org,2002:float", {
|
|
1551
1551
|
kind: "scalar",
|
|
1552
|
-
resolve:
|
|
1553
|
-
construct:
|
|
1554
|
-
predicate:
|
|
1555
|
-
represent:
|
|
1552
|
+
resolve: Ca,
|
|
1553
|
+
construct: xa,
|
|
1554
|
+
predicate: wa,
|
|
1555
|
+
represent: _a,
|
|
1556
1556
|
defaultStyle: "lowercase"
|
|
1557
|
-
}),
|
|
1557
|
+
}), An = vn.extend({
|
|
1558
1558
|
implicit: [
|
|
1559
|
+
bn,
|
|
1560
|
+
kn,
|
|
1559
1561
|
Cn,
|
|
1560
|
-
xn
|
|
1561
|
-
An,
|
|
1562
|
-
_n
|
|
1562
|
+
xn
|
|
1563
1563
|
]
|
|
1564
|
-
}),
|
|
1564
|
+
}), _n = An, wn = new RegExp(
|
|
1565
1565
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1566
|
-
),
|
|
1566
|
+
), Sn = new RegExp(
|
|
1567
1567
|
"^([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]))?))?$"
|
|
1568
1568
|
);
|
|
1569
|
-
function
|
|
1570
|
-
return e === null ? !1 :
|
|
1569
|
+
function Sa(e) {
|
|
1570
|
+
return e === null ? !1 : wn.exec(e) !== null || Sn.exec(e) !== null;
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function $a(e) {
|
|
1573
1573
|
var t, n, i, r, o, a, l, s = 0, c = null, d, u, v;
|
|
1574
|
-
if (t =
|
|
1574
|
+
if (t = wn.exec(e), t === null && (t = Sn.exec(e)), t === null) throw new Error("Date resolve error");
|
|
1575
1575
|
if (n = +t[1], i = +t[2] - 1, r = +t[3], !t[4])
|
|
1576
1576
|
return new Date(Date.UTC(n, i, r));
|
|
1577
1577
|
if (o = +t[4], a = +t[5], l = +t[6], t[7]) {
|
|
@@ -1581,27 +1581,27 @@ function Ea(e) {
|
|
|
1581
1581
|
}
|
|
1582
1582
|
return t[9] && (d = +t[10], u = +(t[11] || 0), c = (d * 60 + u) * 6e4, t[9] === "-" && (c = -c)), v = new Date(Date.UTC(n, i, r, o, a, l, s)), c && v.setTime(v.getTime() - c), v;
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function Ta(e) {
|
|
1585
1585
|
return e.toISOString();
|
|
1586
1586
|
}
|
|
1587
|
-
var
|
|
1587
|
+
var $n = new oe("tag:yaml.org,2002:timestamp", {
|
|
1588
1588
|
kind: "scalar",
|
|
1589
|
-
resolve:
|
|
1590
|
-
construct:
|
|
1589
|
+
resolve: Sa,
|
|
1590
|
+
construct: $a,
|
|
1591
1591
|
instanceOf: Date,
|
|
1592
|
-
represent:
|
|
1592
|
+
represent: Ta
|
|
1593
1593
|
});
|
|
1594
|
-
function
|
|
1594
|
+
function Ea(e) {
|
|
1595
1595
|
return e === "<<" || e === null;
|
|
1596
1596
|
}
|
|
1597
|
-
var
|
|
1597
|
+
var Tn = new oe("tag:yaml.org,2002:merge", {
|
|
1598
1598
|
kind: "scalar",
|
|
1599
|
-
resolve:
|
|
1600
|
-
}),
|
|
1599
|
+
resolve: Ea
|
|
1600
|
+
}), pt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1601
1601
|
\r`;
|
|
1602
|
-
function
|
|
1602
|
+
function Ia(e) {
|
|
1603
1603
|
if (e === null) return !1;
|
|
1604
|
-
var t, n, i = 0, r = e.length, o =
|
|
1604
|
+
var t, n, i = 0, r = e.length, o = pt;
|
|
1605
1605
|
for (n = 0; n < r; n++)
|
|
1606
1606
|
if (t = o.indexOf(e.charAt(n)), !(t > 64)) {
|
|
1607
1607
|
if (t < 0) return !1;
|
|
@@ -1609,35 +1609,35 @@ function Oa(e) {
|
|
|
1609
1609
|
}
|
|
1610
1610
|
return i % 8 === 0;
|
|
1611
1611
|
}
|
|
1612
|
-
function
|
|
1613
|
-
var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o =
|
|
1612
|
+
function Fa(e) {
|
|
1613
|
+
var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o = pt, a = 0, l = [];
|
|
1614
1614
|
for (t = 0; t < r; t++)
|
|
1615
1615
|
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));
|
|
1616
1616
|
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);
|
|
1617
1617
|
}
|
|
1618
|
-
function
|
|
1619
|
-
var t = "", n = 0, i, r, o = e.length, a =
|
|
1618
|
+
function Oa(e) {
|
|
1619
|
+
var t = "", n = 0, i, r, o = e.length, a = pt;
|
|
1620
1620
|
for (i = 0; i < o; i++)
|
|
1621
1621
|
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];
|
|
1622
1622
|
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;
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function Ba(e) {
|
|
1625
1625
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1626
1626
|
}
|
|
1627
|
-
var
|
|
1627
|
+
var En = new oe("tag:yaml.org,2002:binary", {
|
|
1628
1628
|
kind: "scalar",
|
|
1629
|
-
resolve:
|
|
1630
|
-
construct:
|
|
1631
|
-
predicate:
|
|
1632
|
-
represent:
|
|
1633
|
-
}),
|
|
1634
|
-
function
|
|
1629
|
+
resolve: Ia,
|
|
1630
|
+
construct: Fa,
|
|
1631
|
+
predicate: Ba,
|
|
1632
|
+
represent: Oa
|
|
1633
|
+
}), La = Object.prototype.hasOwnProperty, Ra = Object.prototype.toString;
|
|
1634
|
+
function Ka(e) {
|
|
1635
1635
|
if (e === null) return !0;
|
|
1636
1636
|
var t = [], n, i, r, o, a, l = e;
|
|
1637
1637
|
for (n = 0, i = l.length; n < i; n += 1) {
|
|
1638
|
-
if (r = l[n], a = !1,
|
|
1638
|
+
if (r = l[n], a = !1, Ra.call(r) !== "[object Object]") return !1;
|
|
1639
1639
|
for (o in r)
|
|
1640
|
-
if (
|
|
1640
|
+
if (La.call(r, o))
|
|
1641
1641
|
if (!a) a = !0;
|
|
1642
1642
|
else return !1;
|
|
1643
1643
|
if (!a) return !1;
|
|
@@ -1646,63 +1646,63 @@ function Ma(e) {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
return !0;
|
|
1648
1648
|
}
|
|
1649
|
-
function
|
|
1649
|
+
function Na(e) {
|
|
1650
1650
|
return e !== null ? e : [];
|
|
1651
1651
|
}
|
|
1652
|
-
var
|
|
1652
|
+
var In = new oe("tag:yaml.org,2002:omap", {
|
|
1653
1653
|
kind: "sequence",
|
|
1654
|
-
resolve:
|
|
1655
|
-
construct:
|
|
1656
|
-
}),
|
|
1657
|
-
function
|
|
1654
|
+
resolve: Ka,
|
|
1655
|
+
construct: Na
|
|
1656
|
+
}), Ma = Object.prototype.toString;
|
|
1657
|
+
function Da(e) {
|
|
1658
1658
|
if (e === null) return !0;
|
|
1659
1659
|
var t, n, i, r, o, a = e;
|
|
1660
1660
|
for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1) {
|
|
1661
|
-
if (i = a[t],
|
|
1661
|
+
if (i = a[t], Ma.call(i) !== "[object Object]" || (r = Object.keys(i), r.length !== 1)) return !1;
|
|
1662
1662
|
o[t] = [r[0], i[r[0]]];
|
|
1663
1663
|
}
|
|
1664
1664
|
return !0;
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1666
|
+
function Pa(e) {
|
|
1667
1667
|
if (e === null) return [];
|
|
1668
1668
|
var t, n, i, r, o, a = e;
|
|
1669
1669
|
for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1)
|
|
1670
1670
|
i = a[t], r = Object.keys(i), o[t] = [r[0], i[r[0]]];
|
|
1671
1671
|
return o;
|
|
1672
1672
|
}
|
|
1673
|
-
var
|
|
1673
|
+
var Fn = new oe("tag:yaml.org,2002:pairs", {
|
|
1674
1674
|
kind: "sequence",
|
|
1675
|
-
resolve:
|
|
1676
|
-
construct:
|
|
1677
|
-
}),
|
|
1678
|
-
function
|
|
1675
|
+
resolve: Da,
|
|
1676
|
+
construct: Pa
|
|
1677
|
+
}), ja = Object.prototype.hasOwnProperty;
|
|
1678
|
+
function Ua(e) {
|
|
1679
1679
|
if (e === null) return !0;
|
|
1680
1680
|
var t, n = e;
|
|
1681
1681
|
for (t in n)
|
|
1682
|
-
if (
|
|
1682
|
+
if (ja.call(n, t) && n[t] !== null)
|
|
1683
1683
|
return !1;
|
|
1684
1684
|
return !0;
|
|
1685
1685
|
}
|
|
1686
|
-
function
|
|
1686
|
+
function qa(e) {
|
|
1687
1687
|
return e !== null ? e : {};
|
|
1688
1688
|
}
|
|
1689
|
-
var
|
|
1689
|
+
var On = new oe("tag:yaml.org,2002:set", {
|
|
1690
1690
|
kind: "mapping",
|
|
1691
|
-
resolve:
|
|
1692
|
-
construct:
|
|
1693
|
-
}),
|
|
1691
|
+
resolve: Ua,
|
|
1692
|
+
construct: qa
|
|
1693
|
+
}), mt = _n.extend({
|
|
1694
1694
|
implicit: [
|
|
1695
|
-
|
|
1696
|
-
|
|
1695
|
+
$n,
|
|
1696
|
+
Tn
|
|
1697
1697
|
],
|
|
1698
1698
|
explicit: [
|
|
1699
|
+
En,
|
|
1700
|
+
In,
|
|
1699
1701
|
Fn,
|
|
1700
|
-
On
|
|
1701
|
-
Bn,
|
|
1702
|
-
Rn
|
|
1702
|
+
On
|
|
1703
1703
|
]
|
|
1704
|
-
}), Ae = Object.prototype.hasOwnProperty, Ue = 1,
|
|
1705
|
-
function
|
|
1704
|
+
}), Ae = Object.prototype.hasOwnProperty, Ue = 1, Bn = 2, Ln = 3, qe = 4, tt = 1, Ha = 2, Lt = 3, Ya = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Va = /[\x85\u2028\u2029]/, Wa = /[,\[\]\{\}]/, Rn = /^(?:!|!!|![a-z\-]+!)$/i, Kn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1705
|
+
function Rt(e) {
|
|
1706
1706
|
return Object.prototype.toString.call(e);
|
|
1707
1707
|
}
|
|
1708
1708
|
function he(e) {
|
|
@@ -1717,27 +1717,27 @@ function fe(e) {
|
|
|
1717
1717
|
function Fe(e) {
|
|
1718
1718
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1719
1719
|
}
|
|
1720
|
-
function
|
|
1720
|
+
function Ga(e) {
|
|
1721
1721
|
var t;
|
|
1722
1722
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1724
|
+
function Ja(e) {
|
|
1725
1725
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1726
1726
|
}
|
|
1727
|
-
function
|
|
1727
|
+
function za(e) {
|
|
1728
1728
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1729
1729
|
}
|
|
1730
|
-
function
|
|
1730
|
+
function Kt(e) {
|
|
1731
1731
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1732
1732
|
` : 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" : "";
|
|
1733
1733
|
}
|
|
1734
|
-
function
|
|
1734
|
+
function Qa(e) {
|
|
1735
1735
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1736
1736
|
(e - 65536 >> 10) + 55296,
|
|
1737
1737
|
(e - 65536 & 1023) + 56320
|
|
1738
1738
|
);
|
|
1739
1739
|
}
|
|
1740
|
-
function
|
|
1740
|
+
function Nn(e, t, n) {
|
|
1741
1741
|
t === "__proto__" ? Object.defineProperty(e, t, {
|
|
1742
1742
|
configurable: !0,
|
|
1743
1743
|
enumerable: !0,
|
|
@@ -1745,13 +1745,13 @@ function Dn(e, t, n) {
|
|
|
1745
1745
|
value: n
|
|
1746
1746
|
}) : e[t] = n;
|
|
1747
1747
|
}
|
|
1748
|
-
var
|
|
1748
|
+
var Mn = new Array(256), Dn = new Array(256);
|
|
1749
1749
|
for (var Ee = 0; Ee < 256; Ee++)
|
|
1750
|
-
|
|
1751
|
-
function
|
|
1752
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema ||
|
|
1750
|
+
Mn[Ee] = Kt(Ee) ? 1 : 0, Dn[Ee] = Kt(Ee);
|
|
1751
|
+
function Za(e, t) {
|
|
1752
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || mt, 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 = [];
|
|
1753
1753
|
}
|
|
1754
|
-
function
|
|
1754
|
+
function Pn(e, t) {
|
|
1755
1755
|
var n = {
|
|
1756
1756
|
name: e.filename,
|
|
1757
1757
|
buffer: e.input.slice(0, -1),
|
|
@@ -1760,22 +1760,22 @@ function Un(e, t) {
|
|
|
1760
1760
|
line: e.line,
|
|
1761
1761
|
column: e.position - e.lineStart
|
|
1762
1762
|
};
|
|
1763
|
-
return n.snippet =
|
|
1763
|
+
return n.snippet = na(n), new ue(t, n);
|
|
1764
1764
|
}
|
|
1765
1765
|
function I(e, t) {
|
|
1766
|
-
throw
|
|
1766
|
+
throw Pn(e, t);
|
|
1767
1767
|
}
|
|
1768
1768
|
function He(e, t) {
|
|
1769
|
-
e.onWarning && e.onWarning.call(null,
|
|
1769
|
+
e.onWarning && e.onWarning.call(null, Pn(e, t));
|
|
1770
1770
|
}
|
|
1771
|
-
var
|
|
1771
|
+
var Nt = {
|
|
1772
1772
|
YAML: function(t, n, i) {
|
|
1773
1773
|
var r, o, a;
|
|
1774
1774
|
t.version !== null && I(t, "duplication of %YAML directive"), i.length !== 1 && I(t, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), r === null && I(t, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && I(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && He(t, "unsupported YAML version of the document");
|
|
1775
1775
|
},
|
|
1776
1776
|
TAG: function(t, n, i) {
|
|
1777
1777
|
var r, o;
|
|
1778
|
-
i.length !== 2 && I(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1],
|
|
1778
|
+
i.length !== 2 && I(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], Rn.test(r) || I(t, "ill-formed tag handle (first argument) of the TAG directive"), Ae.call(t.tagMap, r) && I(t, 'there is a previously declared suffix for "' + r + '" tag handle'), Kn.test(o) || I(t, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1779
1779
|
try {
|
|
1780
1780
|
o = decodeURIComponent(o);
|
|
1781
1781
|
} catch {
|
|
@@ -1790,31 +1790,31 @@ function xe(e, t, n, i) {
|
|
|
1790
1790
|
if (l = e.input.slice(t, n), i)
|
|
1791
1791
|
for (r = 0, o = l.length; r < o; r += 1)
|
|
1792
1792
|
a = l.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || I(e, "expected valid JSON character");
|
|
1793
|
-
else
|
|
1793
|
+
else Ya.test(l) && I(e, "the stream contains non-printable characters");
|
|
1794
1794
|
e.result += l;
|
|
1795
1795
|
}
|
|
1796
1796
|
}
|
|
1797
|
-
function
|
|
1797
|
+
function Mt(e, t, n, i) {
|
|
1798
1798
|
var r, o, a, l;
|
|
1799
1799
|
for (ie.isObject(n) || I(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
|
|
1800
|
-
o = r[a], Ae.call(t, o) || (
|
|
1800
|
+
o = r[a], Ae.call(t, o) || (Nn(t, o, n[o]), i[o] = !0);
|
|
1801
1801
|
}
|
|
1802
1802
|
function Oe(e, t, n, i, r, o, a, l, s) {
|
|
1803
1803
|
var c, d;
|
|
1804
1804
|
if (Array.isArray(r))
|
|
1805
1805
|
for (r = Array.prototype.slice.call(r), c = 0, d = r.length; c < d; c += 1)
|
|
1806
|
-
Array.isArray(r[c]) && I(e, "nested arrays are not supported inside keys"), typeof r == "object" &&
|
|
1807
|
-
if (typeof r == "object" &&
|
|
1806
|
+
Array.isArray(r[c]) && I(e, "nested arrays are not supported inside keys"), typeof r == "object" && Rt(r[c]) === "[object Object]" && (r[c] = "[object Object]");
|
|
1807
|
+
if (typeof r == "object" && Rt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
|
|
1808
1808
|
if (Array.isArray(o))
|
|
1809
1809
|
for (c = 0, d = o.length; c < d; c += 1)
|
|
1810
|
-
|
|
1810
|
+
Mt(e, t, o[c], n);
|
|
1811
1811
|
else
|
|
1812
|
-
|
|
1812
|
+
Mt(e, t, o, n);
|
|
1813
1813
|
else
|
|
1814
|
-
!e.json && !Ae.call(n, r) && Ae.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, I(e, "duplicated mapping key")),
|
|
1814
|
+
!e.json && !Ae.call(n, r) && Ae.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, I(e, "duplicated mapping key")), Nn(t, r, o), delete n[r];
|
|
1815
1815
|
return t;
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1817
|
+
function gt(e) {
|
|
1818
1818
|
var t;
|
|
1819
1819
|
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : I(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1820
1820
|
}
|
|
@@ -1827,7 +1827,7 @@ function ne(e, t, n) {
|
|
|
1827
1827
|
r = e.input.charCodeAt(++e.position);
|
|
1828
1828
|
while (r !== 10 && r !== 13 && r !== 0);
|
|
1829
1829
|
if (he(r))
|
|
1830
|
-
for (
|
|
1830
|
+
for (gt(e), r = e.input.charCodeAt(e.position), i++, e.lineIndent = 0; r === 32; )
|
|
1831
1831
|
e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
1832
1832
|
else
|
|
1833
1833
|
break;
|
|
@@ -1838,11 +1838,11 @@ function ze(e) {
|
|
|
1838
1838
|
var t = e.position, n;
|
|
1839
1839
|
return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || fe(n)));
|
|
1840
1840
|
}
|
|
1841
|
-
function
|
|
1841
|
+
function yt(e, t) {
|
|
1842
1842
|
t === 1 ? e.result += " " : t > 1 && (e.result += ie.repeat(`
|
|
1843
1843
|
`, t - 1));
|
|
1844
1844
|
}
|
|
1845
|
-
function
|
|
1845
|
+
function Xa(e, t, n) {
|
|
1846
1846
|
var i, r, o, a, l, s, c, d, u = e.kind, v = e.result, f;
|
|
1847
1847
|
if (f = e.input.charCodeAt(e.position), fe(f) || Fe(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (r = e.input.charCodeAt(e.position + 1), fe(r) || n && Fe(r)))
|
|
1848
1848
|
return !1;
|
|
@@ -1865,11 +1865,11 @@ function to(e, t, n) {
|
|
|
1865
1865
|
break;
|
|
1866
1866
|
}
|
|
1867
1867
|
}
|
|
1868
|
-
l && (xe(e, o, a, !1),
|
|
1868
|
+
l && (xe(e, o, a, !1), yt(e, e.line - s), o = a = e.position, l = !1), _e(f) || (a = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1869
1869
|
}
|
|
1870
1870
|
return xe(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = v, !1);
|
|
1871
1871
|
}
|
|
1872
|
-
function
|
|
1872
|
+
function eo(e, t) {
|
|
1873
1873
|
var n, i, r;
|
|
1874
1874
|
if (n = e.input.charCodeAt(e.position), n !== 39)
|
|
1875
1875
|
return !1;
|
|
@@ -1879,10 +1879,10 @@ function no(e, t) {
|
|
|
1879
1879
|
i = e.position, e.position++, r = e.position;
|
|
1880
1880
|
else
|
|
1881
1881
|
return !0;
|
|
1882
|
-
else he(n) ? (xe(e, i, r, !0),
|
|
1882
|
+
else he(n) ? (xe(e, i, r, !0), yt(e, ne(e, !1, t)), i = r = e.position) : e.position === e.lineStart && ze(e) ? I(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1883
1883
|
I(e, "unexpected end of the stream within a single quoted scalar");
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function to(e, t) {
|
|
1886
1886
|
var n, i, r, o, a, l;
|
|
1887
1887
|
if (l = e.input.charCodeAt(e.position), l !== 34)
|
|
1888
1888
|
return !1;
|
|
@@ -1892,20 +1892,20 @@ function io(e, t) {
|
|
|
1892
1892
|
if (l === 92) {
|
|
1893
1893
|
if (xe(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), he(l))
|
|
1894
1894
|
ne(e, !1, t);
|
|
1895
|
-
else if (l < 256 &&
|
|
1896
|
-
e.result +=
|
|
1897
|
-
else if ((a =
|
|
1895
|
+
else if (l < 256 && Mn[l])
|
|
1896
|
+
e.result += Dn[l], e.position++;
|
|
1897
|
+
else if ((a = Ja(l)) > 0) {
|
|
1898
1898
|
for (r = a, o = 0; r > 0; r--)
|
|
1899
|
-
l = e.input.charCodeAt(++e.position), (a =
|
|
1900
|
-
e.result +=
|
|
1899
|
+
l = e.input.charCodeAt(++e.position), (a = Ga(l)) >= 0 ? o = (o << 4) + a : I(e, "expected hexadecimal character");
|
|
1900
|
+
e.result += Qa(o), e.position++;
|
|
1901
1901
|
} else
|
|
1902
1902
|
I(e, "unknown escape sequence");
|
|
1903
1903
|
n = i = e.position;
|
|
1904
|
-
} else he(l) ? (xe(e, n, i, !0),
|
|
1904
|
+
} else he(l) ? (xe(e, n, i, !0), yt(e, ne(e, !1, t)), n = i = e.position) : e.position === e.lineStart && ze(e) ? I(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
|
|
1905
1905
|
}
|
|
1906
1906
|
I(e, "unexpected end of the stream within a double quoted scalar");
|
|
1907
1907
|
}
|
|
1908
|
-
function
|
|
1908
|
+
function no(e, t) {
|
|
1909
1909
|
var n = !0, i, r, o, a = e.tag, l, s = e.anchor, c, d, u, v, f, y = /* @__PURE__ */ Object.create(null), g, p, b, C;
|
|
1910
1910
|
if (C = e.input.charCodeAt(e.position), C === 91)
|
|
1911
1911
|
d = 93, f = !1, l = [];
|
|
@@ -1916,11 +1916,11 @@ function ro(e, t) {
|
|
|
1916
1916
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), C = e.input.charCodeAt(++e.position); C !== 0; ) {
|
|
1917
1917
|
if (ne(e, !0, t), C = e.input.charCodeAt(e.position), C === d)
|
|
1918
1918
|
return e.position++, e.tag = a, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
|
|
1919
|
-
n ? C === 44 && I(e, "expected the node content, but found ','") : I(e, "missed comma between flow collection entries"), p = g = b = null, u = v = !1, C === 63 && (c = e.input.charCodeAt(e.position + 1), fe(c) && (u = v = !0, e.position++, ne(e, !0, t))), i = e.line, r = e.lineStart, o = e.position,
|
|
1919
|
+
n ? C === 44 && I(e, "expected the node content, but found ','") : I(e, "missed comma between flow collection entries"), p = g = b = null, u = v = !1, C === 63 && (c = e.input.charCodeAt(e.position + 1), fe(c) && (u = v = !0, e.position++, ne(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Le(e, t, Ue, !1, !0), p = e.tag, g = e.result, ne(e, !0, t), C = e.input.charCodeAt(e.position), (v || e.line === i) && C === 58 && (u = !0, C = e.input.charCodeAt(++e.position), ne(e, !0, t), Le(e, t, Ue, !1, !0), b = e.result), f ? Oe(e, l, y, p, g, b, i, r, o) : u ? l.push(Oe(e, null, y, p, g, b, i, r, o)) : l.push(g), ne(e, !0, t), C = e.input.charCodeAt(e.position), C === 44 ? (n = !0, C = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1920
1920
|
}
|
|
1921
1921
|
I(e, "unexpected end of the stream within a flow collection");
|
|
1922
1922
|
}
|
|
1923
|
-
function
|
|
1923
|
+
function io(e, t) {
|
|
1924
1924
|
var n, i, r = tt, o = !1, a = !1, l = t, s = 0, c = !1, d, u;
|
|
1925
1925
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1926
1926
|
i = !1;
|
|
@@ -1930,8 +1930,8 @@ function ao(e, t) {
|
|
|
1930
1930
|
return !1;
|
|
1931
1931
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
1932
1932
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
1933
|
-
tt === r ? r = u === 43 ? Lt :
|
|
1934
|
-
else if ((d =
|
|
1933
|
+
tt === r ? r = u === 43 ? Lt : Ha : I(e, "repeat of a chomping mode identifier");
|
|
1934
|
+
else if ((d = za(u)) >= 0)
|
|
1935
1935
|
d === 0 ? I(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? I(e, "repeat of an indentation width identifier") : (l = t + d - 1, a = !0);
|
|
1936
1936
|
else
|
|
1937
1937
|
break;
|
|
@@ -1945,7 +1945,7 @@ function ao(e, t) {
|
|
|
1945
1945
|
while (!he(u) && u !== 0);
|
|
1946
1946
|
}
|
|
1947
1947
|
for (; u !== 0; ) {
|
|
1948
|
-
for (
|
|
1948
|
+
for (gt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!a || e.lineIndent < l) && u === 32; )
|
|
1949
1949
|
e.lineIndent++, u = e.input.charCodeAt(++e.position);
|
|
1950
1950
|
if (!a && e.lineIndent > l && (l = e.lineIndent), he(u)) {
|
|
1951
1951
|
s++;
|
|
@@ -1967,7 +1967,7 @@ function ao(e, t) {
|
|
|
1967
1967
|
}
|
|
1968
1968
|
return !0;
|
|
1969
1969
|
}
|
|
1970
|
-
function
|
|
1970
|
+
function Dt(e, t) {
|
|
1971
1971
|
var n, i = e.tag, r = e.anchor, o = [], a, l = !1, s;
|
|
1972
1972
|
if (e.firstTabInLine !== -1) return !1;
|
|
1973
1973
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation")), !(s !== 45 || (a = e.input.charCodeAt(e.position + 1), !fe(a)))); ) {
|
|
@@ -1975,21 +1975,21 @@ function Pt(e, t) {
|
|
|
1975
1975
|
o.push(null), s = e.input.charCodeAt(e.position);
|
|
1976
1976
|
continue;
|
|
1977
1977
|
}
|
|
1978
|
-
if (n = e.line,
|
|
1978
|
+
if (n = e.line, Le(e, t, Ln, !1, !0), o.push(e.result), ne(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
1979
1979
|
I(e, "bad indentation of a sequence entry");
|
|
1980
1980
|
else if (e.lineIndent < t)
|
|
1981
1981
|
break;
|
|
1982
1982
|
}
|
|
1983
1983
|
return l ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
|
|
1984
1984
|
}
|
|
1985
|
-
function
|
|
1985
|
+
function ro(e, t, n) {
|
|
1986
1986
|
var i, r, o, a, l, s, c = e.tag, d = e.anchor, u = {}, v = /* @__PURE__ */ Object.create(null), f = null, y = null, g = null, p = !1, b = !1, C;
|
|
1987
1987
|
if (e.firstTabInLine !== -1) return !1;
|
|
1988
1988
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), C = e.input.charCodeAt(e.position); C !== 0; ) {
|
|
1989
1989
|
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (C === 63 || C === 58) && fe(i))
|
|
1990
1990
|
C === 63 ? (p && (Oe(e, u, v, f, y, null, a, l, s), f = y = g = null), b = !0, p = !0, r = !0) : p ? (p = !1, r = !0) : I(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, C = i;
|
|
1991
1991
|
else {
|
|
1992
|
-
if (a = e.line, l = e.lineStart, s = e.position, !
|
|
1992
|
+
if (a = e.line, l = e.lineStart, s = e.position, !Le(e, n, Bn, !1, !0))
|
|
1993
1993
|
break;
|
|
1994
1994
|
if (e.line === o) {
|
|
1995
1995
|
for (C = e.input.charCodeAt(e.position); _e(C); )
|
|
@@ -2005,14 +2005,14 @@ function oo(e, t, n) {
|
|
|
2005
2005
|
else
|
|
2006
2006
|
return e.tag = c, e.anchor = d, !0;
|
|
2007
2007
|
}
|
|
2008
|
-
if ((e.line === o || e.lineIndent > t) && (p && (a = e.line, l = e.lineStart, s = e.position),
|
|
2008
|
+
if ((e.line === o || e.lineIndent > t) && (p && (a = e.line, l = e.lineStart, s = e.position), Le(e, t, qe, !0, r) && (p ? y = e.result : g = e.result), p || (Oe(e, u, v, f, y, g, a, l, s), f = y = g = null), ne(e, !0, -1), C = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && C !== 0)
|
|
2009
2009
|
I(e, "bad indentation of a mapping entry");
|
|
2010
2010
|
else if (e.lineIndent < t)
|
|
2011
2011
|
break;
|
|
2012
2012
|
}
|
|
2013
2013
|
return p && Oe(e, u, v, f, y, null, a, l, s), b && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), b;
|
|
2014
2014
|
}
|
|
2015
|
-
function
|
|
2015
|
+
function ao(e) {
|
|
2016
2016
|
var t, n = !1, i = !1, r, o, a;
|
|
2017
2017
|
if (a = e.input.charCodeAt(e.position), a !== 33) return !1;
|
|
2018
2018
|
if (e.tag !== null && I(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (i = !0, r = "!!", a = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, n) {
|
|
@@ -2022,10 +2022,10 @@ function lo(e) {
|
|
|
2022
2022
|
e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : I(e, "unexpected end of the stream within a verbatim tag");
|
|
2023
2023
|
} else {
|
|
2024
2024
|
for (; a !== 0 && !fe(a); )
|
|
2025
|
-
a === 33 && (i ? I(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1),
|
|
2026
|
-
o = e.input.slice(t, e.position),
|
|
2025
|
+
a === 33 && (i ? I(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), Rn.test(r) || I(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
2026
|
+
o = e.input.slice(t, e.position), Wa.test(o) && I(e, "tag suffix cannot contain flow indicator characters");
|
|
2027
2027
|
}
|
|
2028
|
-
o && !
|
|
2028
|
+
o && !Kn.test(o) && I(e, "tag name cannot contain such characters: " + o);
|
|
2029
2029
|
try {
|
|
2030
2030
|
o = decodeURIComponent(o);
|
|
2031
2031
|
} catch {
|
|
@@ -2033,26 +2033,26 @@ function lo(e) {
|
|
|
2033
2033
|
}
|
|
2034
2034
|
return n ? e.tag = o : Ae.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : I(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
2035
2035
|
}
|
|
2036
|
-
function
|
|
2036
|
+
function oo(e) {
|
|
2037
2037
|
var t, n;
|
|
2038
2038
|
if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
|
|
2039
2039
|
for (e.anchor !== null && I(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !fe(n) && !Fe(n); )
|
|
2040
2040
|
n = e.input.charCodeAt(++e.position);
|
|
2041
2041
|
return e.position === t && I(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2043
|
+
function lo(e) {
|
|
2044
2044
|
var t, n, i;
|
|
2045
2045
|
if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
|
|
2046
2046
|
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !fe(i) && !Fe(i); )
|
|
2047
2047
|
i = e.input.charCodeAt(++e.position);
|
|
2048
2048
|
return e.position === t && I(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), Ae.call(e.anchorMap, n) || I(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], ne(e, !0, -1), !0;
|
|
2049
2049
|
}
|
|
2050
|
-
function
|
|
2050
|
+
function Le(e, t, n, i, r) {
|
|
2051
2051
|
var o, a, l, s = 1, c = !1, d = !1, u, v, f, y, g, p;
|
|
2052
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = qe === n ||
|
|
2053
|
-
for (;
|
|
2052
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = qe === n || Ln === n, i && ne(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
2053
|
+
for (; ao(e) || oo(e); )
|
|
2054
2054
|
ne(e, !0, -1) ? (c = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
2055
|
-
if (l && (l = c || r), (s === 1 || qe === n) && (Ue === n ||
|
|
2055
|
+
if (l && (l = c || r), (s === 1 || qe === n) && (Ue === n || Bn === n ? g = t : g = t + 1, p = e.position - e.lineStart, s === 1 ? l && (Dt(e, p) || ro(e, p, g)) || no(e, g) ? d = !0 : (a && io(e, g) || eo(e, g) || to(e, g) ? d = !0 : lo(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && I(e, "alias node should not have any properties")) : Xa(e, g, Ue === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Dt(e, p))), e.tag === null)
|
|
2056
2056
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2057
2057
|
else if (e.tag === "?") {
|
|
2058
2058
|
for (e.result !== null && e.kind !== "scalar" && I(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, v = e.implicitTypes.length; u < v; u += 1)
|
|
@@ -2073,7 +2073,7 @@ function Re(e, t, n, i, r) {
|
|
|
2073
2073
|
}
|
|
2074
2074
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2076
|
+
function so(e) {
|
|
2077
2077
|
var t = e.position, n, i, r, o = !1, a;
|
|
2078
2078
|
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 && (ne(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
|
|
2079
2079
|
for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !fe(a); )
|
|
@@ -2092,9 +2092,9 @@ function uo(e) {
|
|
|
2092
2092
|
a = e.input.charCodeAt(++e.position);
|
|
2093
2093
|
r.push(e.input.slice(n, e.position));
|
|
2094
2094
|
}
|
|
2095
|
-
a !== 0 &&
|
|
2095
|
+
a !== 0 && gt(e), Ae.call(Nt, i) ? Nt[i](e, i, r) : He(e, 'unknown document directive "' + i + '"');
|
|
2096
2096
|
}
|
|
2097
|
-
if (ne(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, ne(e, !0, -1)) : o && I(e, "directives end mark is expected"),
|
|
2097
|
+
if (ne(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, ne(e, !0, -1)) : o && I(e, "directives end mark is expected"), Le(e, e.lineIndent - 1, qe, !1, !0), ne(e, !0, -1), e.checkLineBreaks && Va.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 && ze(e)) {
|
|
2098
2098
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, ne(e, !0, -1));
|
|
2099
2099
|
return;
|
|
2100
2100
|
}
|
|
@@ -2103,36 +2103,36 @@ function uo(e) {
|
|
|
2103
2103
|
else
|
|
2104
2104
|
return;
|
|
2105
2105
|
}
|
|
2106
|
-
function
|
|
2106
|
+
function jn(e, t) {
|
|
2107
2107
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2108
2108
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2109
|
-
var n = new
|
|
2109
|
+
var n = new Za(e, t), i = e.indexOf("\0");
|
|
2110
2110
|
for (i !== -1 && (n.position = i, I(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
2111
2111
|
n.lineIndent += 1, n.position += 1;
|
|
2112
2112
|
for (; n.position < n.length - 1; )
|
|
2113
|
-
|
|
2113
|
+
so(n);
|
|
2114
2114
|
return n.documents;
|
|
2115
2115
|
}
|
|
2116
|
-
function
|
|
2116
|
+
function co(e, t, n) {
|
|
2117
2117
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
2118
|
-
var i =
|
|
2118
|
+
var i = jn(e, n);
|
|
2119
2119
|
if (typeof t != "function")
|
|
2120
2120
|
return i;
|
|
2121
2121
|
for (var r = 0, o = i.length; r < o; r += 1)
|
|
2122
2122
|
t(i[r]);
|
|
2123
2123
|
}
|
|
2124
|
-
function
|
|
2125
|
-
var n =
|
|
2124
|
+
function uo(e, t) {
|
|
2125
|
+
var n = jn(e, t);
|
|
2126
2126
|
if (n.length !== 0) {
|
|
2127
2127
|
if (n.length === 1)
|
|
2128
2128
|
return n[0];
|
|
2129
2129
|
throw new ue("expected a single document in the stream, but found more");
|
|
2130
2130
|
}
|
|
2131
2131
|
}
|
|
2132
|
-
var
|
|
2133
|
-
loadAll:
|
|
2134
|
-
load:
|
|
2135
|
-
},
|
|
2132
|
+
var fo = co, po = uo, Un = {
|
|
2133
|
+
loadAll: fo,
|
|
2134
|
+
load: po
|
|
2135
|
+
}, qn = Object.prototype.toString, Hn = Object.prototype.hasOwnProperty, ht = 65279, mo = 9, Ne = 10, go = 13, yo = 32, ho = 33, vo = 34, at = 35, bo = 37, ko = 38, Co = 39, xo = 42, Yn = 44, Ao = 45, Ye = 58, _o = 61, wo = 62, So = 63, $o = 64, Vn = 91, Wn = 93, To = 96, Gn = 123, Eo = 124, Jn = 125, se = {};
|
|
2136
2136
|
se[0] = "\\0";
|
|
2137
2137
|
se[7] = "\\a";
|
|
2138
2138
|
se[8] = "\\b";
|
|
@@ -2148,7 +2148,7 @@ se[133] = "\\N";
|
|
|
2148
2148
|
se[160] = "\\_";
|
|
2149
2149
|
se[8232] = "\\L";
|
|
2150
2150
|
se[8233] = "\\P";
|
|
2151
|
-
var
|
|
2151
|
+
var Io = [
|
|
2152
2152
|
"y",
|
|
2153
2153
|
"Y",
|
|
2154
2154
|
"yes",
|
|
@@ -2165,15 +2165,15 @@ var Oo = [
|
|
|
2165
2165
|
"off",
|
|
2166
2166
|
"Off",
|
|
2167
2167
|
"OFF"
|
|
2168
|
-
],
|
|
2169
|
-
function
|
|
2168
|
+
], Fo = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2169
|
+
function Oo(e, t) {
|
|
2170
2170
|
var n, i, r, o, a, l, s;
|
|
2171
2171
|
if (t === null) return {};
|
|
2172
2172
|
for (n = {}, i = Object.keys(t), r = 0, o = i.length; r < o; r += 1)
|
|
2173
|
-
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 &&
|
|
2173
|
+
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 && Hn.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[a] = l;
|
|
2174
2174
|
return n;
|
|
2175
2175
|
}
|
|
2176
|
-
function
|
|
2176
|
+
function Bo(e) {
|
|
2177
2177
|
var t, n, i;
|
|
2178
2178
|
if (t = e.toString(16).toUpperCase(), e <= 255)
|
|
2179
2179
|
n = "x", i = 2;
|
|
@@ -2185,22 +2185,22 @@ function Lo(e) {
|
|
|
2185
2185
|
throw new ue("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2186
2186
|
return "\\" + n + ie.repeat("0", i - t.length) + t;
|
|
2187
2187
|
}
|
|
2188
|
-
var
|
|
2189
|
-
function
|
|
2190
|
-
this.schema = e.schema ||
|
|
2188
|
+
var Lo = 1, Me = 2;
|
|
2189
|
+
function Ro(e) {
|
|
2190
|
+
this.schema = e.schema || mt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ie.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Oo(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 === '"' ? Me : Lo, 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;
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2192
|
+
function Pt(e, t) {
|
|
2193
2193
|
for (var n = ie.repeat(" ", t), i = 0, r = -1, o = "", a, l = e.length; i < l; )
|
|
2194
2194
|
r = e.indexOf(`
|
|
2195
2195
|
`, i), r === -1 ? (a = e.slice(i), i = l) : (a = e.slice(i, r + 1), i = r + 1), a.length && a !== `
|
|
2196
2196
|
` && (o += n), o += a;
|
|
2197
2197
|
return o;
|
|
2198
2198
|
}
|
|
2199
|
-
function
|
|
2199
|
+
function ot(e, t) {
|
|
2200
2200
|
return `
|
|
2201
2201
|
` + ie.repeat(" ", e.indent * t);
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2203
|
+
function Ko(e, t) {
|
|
2204
2204
|
var n, i, r;
|
|
2205
2205
|
for (n = 0, i = e.implicitTypes.length; n < i; n += 1)
|
|
2206
2206
|
if (r = e.implicitTypes[n], r.resolve(t))
|
|
@@ -2208,71 +2208,71 @@ function Mo(e, t) {
|
|
|
2208
2208
|
return !1;
|
|
2209
2209
|
}
|
|
2210
2210
|
function Ve(e) {
|
|
2211
|
-
return e ===
|
|
2211
|
+
return e === yo || e === mo;
|
|
2212
2212
|
}
|
|
2213
2213
|
function De(e) {
|
|
2214
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2214
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== ht || 65536 <= e && e <= 1114111;
|
|
2215
2215
|
}
|
|
2216
|
-
function
|
|
2217
|
-
return De(e) && e !==
|
|
2216
|
+
function jt(e) {
|
|
2217
|
+
return De(e) && e !== ht && e !== go && e !== Ne;
|
|
2218
2218
|
}
|
|
2219
|
-
function
|
|
2220
|
-
var i =
|
|
2219
|
+
function Ut(e, t, n) {
|
|
2220
|
+
var i = jt(e), r = i && !Ve(e);
|
|
2221
2221
|
return (
|
|
2222
2222
|
// ns-plain-safe
|
|
2223
2223
|
(n ? (
|
|
2224
2224
|
// c = flow-in
|
|
2225
2225
|
i
|
|
2226
|
-
) : i && e !==
|
|
2226
|
+
) : i && e !== Yn && e !== Vn && e !== Wn && e !== Gn && e !== Jn) && e !== at && !(t === Ye && !r) || jt(t) && !Ve(t) && e === at || t === Ye && r
|
|
2227
2227
|
);
|
|
2228
2228
|
}
|
|
2229
|
-
function
|
|
2230
|
-
return De(e) && e !==
|
|
2229
|
+
function No(e) {
|
|
2230
|
+
return De(e) && e !== ht && !Ve(e) && e !== Ao && e !== So && e !== Ye && e !== Yn && e !== Vn && e !== Wn && e !== Gn && e !== Jn && e !== at && e !== ko && e !== xo && e !== ho && e !== Eo && e !== _o && e !== wo && e !== Co && e !== vo && e !== bo && e !== $o && e !== To;
|
|
2231
2231
|
}
|
|
2232
|
-
function
|
|
2232
|
+
function Mo(e) {
|
|
2233
2233
|
return !Ve(e) && e !== Ye;
|
|
2234
2234
|
}
|
|
2235
|
-
function
|
|
2235
|
+
function Re(e, t) {
|
|
2236
2236
|
var n = e.charCodeAt(t), i;
|
|
2237
2237
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (n - 55296) * 1024 + i - 56320 + 65536 : n;
|
|
2238
2238
|
}
|
|
2239
|
-
function
|
|
2239
|
+
function zn(e) {
|
|
2240
2240
|
var t = /^\n* /;
|
|
2241
2241
|
return t.test(e);
|
|
2242
2242
|
}
|
|
2243
|
-
var
|
|
2244
|
-
function
|
|
2245
|
-
var s, c = 0, d = null, u = !1, v = !1, f = i !== -1, y = -1, g =
|
|
2243
|
+
var Qn = 1, lt = 2, Zn = 3, Xn = 4, Ie = 5;
|
|
2244
|
+
function Do(e, t, n, i, r, o, a, l) {
|
|
2245
|
+
var s, c = 0, d = null, u = !1, v = !1, f = i !== -1, y = -1, g = No(Re(e, 0)) && Mo(Re(e, e.length - 1));
|
|
2246
2246
|
if (t || a)
|
|
2247
2247
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2248
|
-
if (c =
|
|
2248
|
+
if (c = Re(e, s), !De(c))
|
|
2249
2249
|
return Ie;
|
|
2250
|
-
g = g &&
|
|
2250
|
+
g = g && Ut(c, d, l), d = c;
|
|
2251
2251
|
}
|
|
2252
2252
|
else {
|
|
2253
2253
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2254
|
-
if (c =
|
|
2254
|
+
if (c = Re(e, s), c === Ne)
|
|
2255
2255
|
u = !0, f && (v = v || // Foldable line = too long, and not more-indented.
|
|
2256
2256
|
s - y - 1 > i && e[y + 1] !== " ", y = s);
|
|
2257
2257
|
else if (!De(c))
|
|
2258
2258
|
return Ie;
|
|
2259
|
-
g = g &&
|
|
2259
|
+
g = g && Ut(c, d, l), d = c;
|
|
2260
2260
|
}
|
|
2261
2261
|
v = v || f && s - y - 1 > i && e[y + 1] !== " ";
|
|
2262
2262
|
}
|
|
2263
|
-
return !u && !v ? g && !a && !r(e) ?
|
|
2263
|
+
return !u && !v ? g && !a && !r(e) ? Qn : o === Me ? Ie : lt : n > 9 && zn(e) ? Ie : a ? o === Me ? Ie : lt : v ? Xn : Zn;
|
|
2264
2264
|
}
|
|
2265
|
-
function
|
|
2265
|
+
function Po(e, t, n, i, r) {
|
|
2266
2266
|
e.dump = function() {
|
|
2267
2267
|
if (t.length === 0)
|
|
2268
2268
|
return e.quotingType === Me ? '""' : "''";
|
|
2269
|
-
if (!e.noCompatMode && (
|
|
2269
|
+
if (!e.noCompatMode && (Io.indexOf(t) !== -1 || Fo.test(t)))
|
|
2270
2270
|
return e.quotingType === Me ? '"' + t + '"' : "'" + t + "'";
|
|
2271
2271
|
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;
|
|
2272
2272
|
function s(c) {
|
|
2273
|
-
return
|
|
2273
|
+
return Ko(e, c);
|
|
2274
2274
|
}
|
|
2275
|
-
switch (
|
|
2275
|
+
switch (Do(
|
|
2276
2276
|
t,
|
|
2277
2277
|
l,
|
|
2278
2278
|
e.indent,
|
|
@@ -2282,47 +2282,47 @@ function Uo(e, t, n, i, r) {
|
|
|
2282
2282
|
e.forceQuotes && !i,
|
|
2283
2283
|
r
|
|
2284
2284
|
)) {
|
|
2285
|
-
case
|
|
2285
|
+
case Qn:
|
|
2286
2286
|
return t;
|
|
2287
|
-
case
|
|
2287
|
+
case lt:
|
|
2288
2288
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
2289
|
-
case
|
|
2290
|
-
return "|" +
|
|
2291
|
-
case
|
|
2292
|
-
return ">" +
|
|
2289
|
+
case Zn:
|
|
2290
|
+
return "|" + qt(t, e.indent) + Ht(Pt(t, o));
|
|
2291
|
+
case Xn:
|
|
2292
|
+
return ">" + qt(t, e.indent) + Ht(Pt(jo(t, a), o));
|
|
2293
2293
|
case Ie:
|
|
2294
|
-
return '"' +
|
|
2294
|
+
return '"' + Uo(t) + '"';
|
|
2295
2295
|
default:
|
|
2296
2296
|
throw new ue("impossible error: invalid scalar style");
|
|
2297
2297
|
}
|
|
2298
2298
|
}();
|
|
2299
2299
|
}
|
|
2300
|
-
function
|
|
2301
|
-
var n =
|
|
2300
|
+
function qt(e, t) {
|
|
2301
|
+
var n = zn(e) ? String(t) : "", i = e[e.length - 1] === `
|
|
2302
2302
|
`, r = i && (e[e.length - 2] === `
|
|
2303
2303
|
` || e === `
|
|
2304
2304
|
`), o = r ? "+" : i ? "" : "-";
|
|
2305
2305
|
return n + o + `
|
|
2306
2306
|
`;
|
|
2307
2307
|
}
|
|
2308
|
-
function
|
|
2308
|
+
function Ht(e) {
|
|
2309
2309
|
return e[e.length - 1] === `
|
|
2310
2310
|
` ? e.slice(0, -1) : e;
|
|
2311
2311
|
}
|
|
2312
|
-
function
|
|
2312
|
+
function jo(e, t) {
|
|
2313
2313
|
for (var n = /(\n+)([^\n]*)/g, i = function() {
|
|
2314
2314
|
var c = e.indexOf(`
|
|
2315
2315
|
`);
|
|
2316
|
-
return c = c !== -1 ? c : e.length, n.lastIndex = c,
|
|
2316
|
+
return c = c !== -1 ? c : e.length, n.lastIndex = c, Yt(e.slice(0, c), t);
|
|
2317
2317
|
}(), r = e[0] === `
|
|
2318
2318
|
` || e[0] === " ", o, a; a = n.exec(e); ) {
|
|
2319
2319
|
var l = a[1], s = a[2];
|
|
2320
2320
|
o = s[0] === " ", i += l + (!r && !o && s !== "" ? `
|
|
2321
|
-
` : "") +
|
|
2321
|
+
` : "") + Yt(s, t), r = o;
|
|
2322
2322
|
}
|
|
2323
2323
|
return i;
|
|
2324
2324
|
}
|
|
2325
|
-
function
|
|
2325
|
+
function Yt(e, t) {
|
|
2326
2326
|
if (e === "" || e[0] === " ") return e;
|
|
2327
2327
|
for (var n = / [^ ]/g, i, r = 0, o, a = 0, l = 0, s = ""; i = n.exec(e); )
|
|
2328
2328
|
l = i.index, l - r > t && (o = a > r ? a : l, s += `
|
|
@@ -2331,30 +2331,30 @@ function Vt(e, t) {
|
|
|
2331
2331
|
`, e.length - r > t && a > r ? s += e.slice(r, a) + `
|
|
2332
2332
|
` + e.slice(a + 1) : s += e.slice(r), s.slice(1);
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2334
|
+
function Uo(e) {
|
|
2335
2335
|
for (var t = "", n = 0, i, r = 0; r < e.length; n >= 65536 ? r += 2 : r++)
|
|
2336
|
-
n =
|
|
2336
|
+
n = Re(e, r), i = se[n], !i && De(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || Bo(n);
|
|
2337
2337
|
return t;
|
|
2338
2338
|
}
|
|
2339
|
-
function
|
|
2339
|
+
function qo(e, t, n) {
|
|
2340
2340
|
var i = "", r = e.tag, o, a, l;
|
|
2341
2341
|
for (o = 0, a = n.length; o < a; o += 1)
|
|
2342
2342
|
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (be(e, t, l, !1, !1) || typeof l > "u" && be(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
|
|
2343
2343
|
e.tag = r, e.dump = "[" + i + "]";
|
|
2344
2344
|
}
|
|
2345
|
-
function
|
|
2345
|
+
function Vt(e, t, n, i) {
|
|
2346
2346
|
var r = "", o = e.tag, a, l, s;
|
|
2347
2347
|
for (a = 0, l = n.length; a < l; a += 1)
|
|
2348
|
-
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (be(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && be(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r +=
|
|
2348
|
+
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (be(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && be(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += ot(e, t)), e.dump && Ne === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
2349
2349
|
e.tag = o, e.dump = r || "[]";
|
|
2350
2350
|
}
|
|
2351
|
-
function
|
|
2351
|
+
function Ho(e, t, n) {
|
|
2352
2352
|
var i = "", r = e.tag, o = Object.keys(n), a, l, s, c, d;
|
|
2353
2353
|
for (a = 0, l = o.length; a < l; a += 1)
|
|
2354
2354
|
d = "", i !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = o[a], c = n[s], e.replacer && (c = e.replacer.call(n, s, c)), be(e, t, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), be(e, t, c, !1, !1) && (d += e.dump, i += d));
|
|
2355
2355
|
e.tag = r, e.dump = "{" + i + "}";
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function Yo(e, t, n, i) {
|
|
2358
2358
|
var r = "", o = e.tag, a = Object.keys(n), l, s, c, d, u, v;
|
|
2359
2359
|
if (e.sortKeys === !0)
|
|
2360
2360
|
a.sort();
|
|
@@ -2363,17 +2363,17 @@ function Wo(e, t, n, i) {
|
|
|
2363
2363
|
else if (e.sortKeys)
|
|
2364
2364
|
throw new ue("sortKeys must be a boolean or a function");
|
|
2365
2365
|
for (l = 0, s = a.length; l < s; l += 1)
|
|
2366
|
-
v = "", (!i || r !== "") && (v +=
|
|
2366
|
+
v = "", (!i || r !== "") && (v += ot(e, t)), c = a[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), be(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Ne === e.dump.charCodeAt(0) ? v += "?" : v += "? "), v += e.dump, u && (v += ot(e, t)), be(e, t + 1, d, !0, u) && (e.dump && Ne === e.dump.charCodeAt(0) ? v += ":" : v += ": ", v += e.dump, r += v));
|
|
2367
2367
|
e.tag = o, e.dump = r || "{}";
|
|
2368
2368
|
}
|
|
2369
|
-
function
|
|
2369
|
+
function Wt(e, t, n) {
|
|
2370
2370
|
var i, r, o, a, l, s;
|
|
2371
2371
|
for (r = n ? e.explicitTypes : e.implicitTypes, o = 0, a = r.length; o < a; o += 1)
|
|
2372
2372
|
if (l = r[o], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof t == "object" && t instanceof l.instanceOf) && (!l.predicate || l.predicate(t))) {
|
|
2373
2373
|
if (n ? l.multi && l.representName ? e.tag = l.representName(t) : e.tag = l.tag : e.tag = "?", l.represent) {
|
|
2374
|
-
if (s = e.styleMap[l.tag] || l.defaultStyle,
|
|
2374
|
+
if (s = e.styleMap[l.tag] || l.defaultStyle, qn.call(l.represent) === "[object Function]")
|
|
2375
2375
|
i = l.represent(t, s);
|
|
2376
|
-
else if (
|
|
2376
|
+
else if (Hn.call(l.represent, s))
|
|
2377
2377
|
i = l.represent[s](t, s);
|
|
2378
2378
|
else
|
|
2379
2379
|
throw new ue("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
|
|
@@ -2384,19 +2384,19 @@ function Gt(e, t, n) {
|
|
|
2384
2384
|
return !1;
|
|
2385
2385
|
}
|
|
2386
2386
|
function be(e, t, n, i, r, o, a) {
|
|
2387
|
-
e.tag = null, e.dump = n,
|
|
2388
|
-
var l =
|
|
2387
|
+
e.tag = null, e.dump = n, Wt(e, n, !1) || Wt(e, n, !0);
|
|
2388
|
+
var l = qn.call(e.dump), s = i, c;
|
|
2389
2389
|
i && (i = e.flowLevel < 0 || e.flowLevel > t);
|
|
2390
2390
|
var d = l === "[object Object]" || l === "[object Array]", u, v;
|
|
2391
2391
|
if (d && (u = e.duplicates.indexOf(n), v = u !== -1), (e.tag !== null && e.tag !== "?" || v || e.indent !== 2 && t > 0) && (r = !1), v && e.usedDuplicates[u])
|
|
2392
2392
|
e.dump = "*ref_" + u;
|
|
2393
2393
|
else {
|
|
2394
2394
|
if (d && v && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
|
|
2395
|
-
i && Object.keys(e.dump).length !== 0 ? (
|
|
2395
|
+
i && Object.keys(e.dump).length !== 0 ? (Yo(e, t, e.dump, r), v && (e.dump = "&ref_" + u + e.dump)) : (Ho(e, t, e.dump), v && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2396
2396
|
else if (l === "[object Array]")
|
|
2397
|
-
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ?
|
|
2397
|
+
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Vt(e, t - 1, e.dump, r) : Vt(e, t, e.dump, r), v && (e.dump = "&ref_" + u + e.dump)) : (qo(e, t, e.dump), v && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2398
2398
|
else if (l === "[object String]")
|
|
2399
|
-
e.tag !== "?" &&
|
|
2399
|
+
e.tag !== "?" && Po(e, e.dump, t, o, s);
|
|
2400
2400
|
else {
|
|
2401
2401
|
if (l === "[object Undefined]")
|
|
2402
2402
|
return !1;
|
|
@@ -2409,71 +2409,71 @@ function be(e, t, n, i, r, o, a) {
|
|
|
2409
2409
|
}
|
|
2410
2410
|
return !0;
|
|
2411
2411
|
}
|
|
2412
|
-
function
|
|
2412
|
+
function Vo(e, t) {
|
|
2413
2413
|
var n = [], i = [], r, o;
|
|
2414
|
-
for (
|
|
2414
|
+
for (st(e, n, i), r = 0, o = i.length; r < o; r += 1)
|
|
2415
2415
|
t.duplicates.push(n[i[r]]);
|
|
2416
2416
|
t.usedDuplicates = new Array(o);
|
|
2417
2417
|
}
|
|
2418
|
-
function
|
|
2418
|
+
function st(e, t, n) {
|
|
2419
2419
|
var i, r, o;
|
|
2420
2420
|
if (e !== null && typeof e == "object")
|
|
2421
2421
|
if (r = t.indexOf(e), r !== -1)
|
|
2422
2422
|
n.indexOf(r) === -1 && n.push(r);
|
|
2423
2423
|
else if (t.push(e), Array.isArray(e))
|
|
2424
2424
|
for (r = 0, o = e.length; r < o; r += 1)
|
|
2425
|
-
|
|
2425
|
+
st(e[r], t, n);
|
|
2426
2426
|
else
|
|
2427
2427
|
for (i = Object.keys(e), r = 0, o = i.length; r < o; r += 1)
|
|
2428
|
-
|
|
2428
|
+
st(e[i[r]], t, n);
|
|
2429
2429
|
}
|
|
2430
|
-
function
|
|
2430
|
+
function Wo(e, t) {
|
|
2431
2431
|
t = t || {};
|
|
2432
|
-
var n = new
|
|
2433
|
-
n.noRefs ||
|
|
2432
|
+
var n = new Ro(t);
|
|
2433
|
+
n.noRefs || Vo(e, n);
|
|
2434
2434
|
var i = e;
|
|
2435
2435
|
return n.replacer && (i = n.replacer.call({ "": i }, "", i)), be(n, 0, i, !0, !0) ? n.dump + `
|
|
2436
2436
|
` : "";
|
|
2437
2437
|
}
|
|
2438
|
-
var
|
|
2439
|
-
dump:
|
|
2438
|
+
var Go = Wo, Jo = {
|
|
2439
|
+
dump: Go
|
|
2440
2440
|
};
|
|
2441
|
-
function
|
|
2441
|
+
function vt(e, t) {
|
|
2442
2442
|
return function() {
|
|
2443
2443
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2444
2444
|
};
|
|
2445
2445
|
}
|
|
2446
|
-
var
|
|
2447
|
-
binary:
|
|
2448
|
-
float:
|
|
2449
|
-
map:
|
|
2450
|
-
null:
|
|
2451
|
-
pairs:
|
|
2452
|
-
set:
|
|
2453
|
-
timestamp:
|
|
2454
|
-
bool:
|
|
2455
|
-
int:
|
|
2456
|
-
merge:
|
|
2457
|
-
omap:
|
|
2458
|
-
seq:
|
|
2459
|
-
str:
|
|
2460
|
-
},
|
|
2461
|
-
Type:
|
|
2462
|
-
Schema:
|
|
2463
|
-
FAILSAFE_SCHEMA:
|
|
2464
|
-
JSON_SCHEMA:
|
|
2465
|
-
CORE_SCHEMA:
|
|
2466
|
-
DEFAULT_SCHEMA:
|
|
2467
|
-
load:
|
|
2468
|
-
loadAll:
|
|
2469
|
-
dump:
|
|
2470
|
-
YAMLException:
|
|
2471
|
-
types:
|
|
2472
|
-
safeLoad:
|
|
2473
|
-
safeLoadAll:
|
|
2474
|
-
safeDump:
|
|
2446
|
+
var zo = oe, Qo = mn, Zo = vn, Xo = An, el = _n, tl = mt, nl = Un.load, il = Un.loadAll, rl = Jo.dump, al = ue, ol = {
|
|
2447
|
+
binary: En,
|
|
2448
|
+
float: xn,
|
|
2449
|
+
map: hn,
|
|
2450
|
+
null: bn,
|
|
2451
|
+
pairs: Fn,
|
|
2452
|
+
set: On,
|
|
2453
|
+
timestamp: $n,
|
|
2454
|
+
bool: kn,
|
|
2455
|
+
int: Cn,
|
|
2456
|
+
merge: Tn,
|
|
2457
|
+
omap: In,
|
|
2458
|
+
seq: yn,
|
|
2459
|
+
str: gn
|
|
2460
|
+
}, ll = vt("safeLoad", "load"), sl = vt("safeLoadAll", "loadAll"), cl = vt("safeDump", "dump"), ei = {
|
|
2461
|
+
Type: zo,
|
|
2462
|
+
Schema: Qo,
|
|
2463
|
+
FAILSAFE_SCHEMA: Zo,
|
|
2464
|
+
JSON_SCHEMA: Xo,
|
|
2465
|
+
CORE_SCHEMA: el,
|
|
2466
|
+
DEFAULT_SCHEMA: tl,
|
|
2467
|
+
load: nl,
|
|
2468
|
+
loadAll: il,
|
|
2469
|
+
dump: rl,
|
|
2470
|
+
YAMLException: al,
|
|
2471
|
+
types: ol,
|
|
2472
|
+
safeLoad: ll,
|
|
2473
|
+
safeLoadAll: sl,
|
|
2474
|
+
safeDump: cl
|
|
2475
2475
|
};
|
|
2476
|
-
const
|
|
2476
|
+
const ul = { class: "yaml-config config-card-code-block" }, ti = /* @__PURE__ */ Z({
|
|
2477
2477
|
__name: "YamlCodeBlock",
|
|
2478
2478
|
props: {
|
|
2479
2479
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2485,11 +2485,11 @@ const fl = { class: "yaml-config config-card-code-block" }, ii = /* @__PURE__ */
|
|
|
2485
2485
|
setup(e) {
|
|
2486
2486
|
const t = e, n = _(() => {
|
|
2487
2487
|
const i = Object.fromEntries(Object.entries(t.entityRecord).filter(([, r]) => r !== null && r !== "" && (Array.isArray(r) ? r.length !== 0 : !0)));
|
|
2488
|
-
return Object.keys(i).length === 0 && i.constructor === Object ? "" :
|
|
2488
|
+
return Object.keys(i).length === 0 && i.constructor === Object ? "" : ei.dump(i).trim();
|
|
2489
2489
|
});
|
|
2490
2490
|
return (i, r) => {
|
|
2491
2491
|
const o = U("KCodeBlock");
|
|
2492
|
-
return m(), T("div",
|
|
2492
|
+
return m(), T("div", ul, [
|
|
2493
2493
|
t.entityRecord ? (m(), K(o, {
|
|
2494
2494
|
key: 0,
|
|
2495
2495
|
id: "yaml-codeblock",
|
|
@@ -2501,7 +2501,7 @@ const fl = { class: "yaml-config config-card-code-block" }, ii = /* @__PURE__ */
|
|
|
2501
2501
|
]);
|
|
2502
2502
|
};
|
|
2503
2503
|
}
|
|
2504
|
-
}),
|
|
2504
|
+
}), dl = { class: "terraform-config config-card-code-block" }, te = " ", Gt = "TF_MULTILINE_EOT", nt = "cloud_gateway_addon", ni = /* @__PURE__ */ Z({
|
|
2505
2505
|
__name: "TerraformCodeBlock",
|
|
2506
2506
|
props: {
|
|
2507
2507
|
/** A record to indicate the entity's configuration, used to populate the Terraform code block */
|
|
@@ -2531,15 +2531,15 @@ const fl = { class: "yaml-config config-card-code-block" }, ii = /* @__PURE__ */
|
|
|
2531
2531
|
return !1;
|
|
2532
2532
|
const y = f.config;
|
|
2533
2533
|
return !y || typeof y != "object" ? !1 : typeof y.managed_cache < "u" || typeof y.capacity_config < "u";
|
|
2534
|
-
}), i = _(() => typeof t.entityType == "string" && t.entityType.length > 0 ? t.entityType : n.value ? nt : ve.Partial), r = _(() =>
|
|
2534
|
+
}), i = _(() => typeof t.entityType == "string" && t.entityType.length > 0 ? t.entityType : n.value ? nt : ve.Partial), r = _(() => Bi.includes(i.value)), o = _(() => Li.includes(i.value)), a = (f, y) => {
|
|
2535
2535
|
if (f.includes(`
|
|
2536
2536
|
`)) {
|
|
2537
2537
|
const p = y + te, b = f.split(`
|
|
2538
2538
|
`).map((C) => `${p}${C}`).join(`
|
|
2539
2539
|
`);
|
|
2540
|
-
return `<<-${
|
|
2540
|
+
return `<<-${Gt}
|
|
2541
2541
|
${b}
|
|
2542
|
-
${p}${
|
|
2542
|
+
${p}${Gt}`;
|
|
2543
2543
|
}
|
|
2544
2544
|
return `"${f.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}"`;
|
|
2545
2545
|
}, l = (f, y) => {
|
|
@@ -2587,13 +2587,13 @@ ${p}${Jt}`;
|
|
|
2587
2587
|
Array.isArray(p) ? y += c(p, g) : typeof p == "object" ? y += s(p, g) : y += l(p, g);
|
|
2588
2588
|
return d(y);
|
|
2589
2589
|
}, v = _(() => {
|
|
2590
|
-
var b, C, S, B, V,
|
|
2590
|
+
var b, C, S, B, V, R, F;
|
|
2591
2591
|
const f = Object.fromEntries(Object.entries(t.entityRecord).filter(([, $]) => $ != null)), y = t.entityRecord.config ? Object.fromEntries(Object.entries((b = t.entityRecord) == null ? void 0 : b.config).filter(([, $]) => $ != null)) : void 0;
|
|
2592
2592
|
if (y && (f.config = y), Object.keys(f).length === 0)
|
|
2593
2593
|
return "";
|
|
2594
2594
|
delete f.id;
|
|
2595
2595
|
let g = "", p = "";
|
|
2596
|
-
if ((C = f.service) != null && C.id ? (p = "service", delete f.service) : (S = f.route) != null && S.id ? (p = "route", delete f.route) : (B = f.consumer) != null && B.id ? (p = "consumer", delete f.consumer) : (V = f.consumer_group) != null && V.id ? (p = "consumer_group", delete f.consumer_group) : (
|
|
2596
|
+
if ((C = f.service) != null && C.id ? (p = "service", delete f.service) : (S = f.route) != null && S.id ? (p = "route", delete f.route) : (B = f.consumer) != null && B.id ? (p = "consumer", delete f.consumer) : (V = f.consumer_group) != null && V.id ? (p = "consumer_group", delete f.consumer_group) : (R = f.certificate) != null && R.id ? (p = "certificate", delete f.certificate) : (F = f.set) != null && F.id && (p = "set", delete f.set), r.value) {
|
|
2597
2597
|
const $ = t.subEntityType ? `${i.value}_${t.subEntityType}` : i.value;
|
|
2598
2598
|
g += `resource "konnect_event_gateway_${$}" "my_eventgateway${$.replaceAll("_", "")}" {
|
|
2599
2599
|
`, g += `${te}provider = konnect-beta
|
|
@@ -2616,7 +2616,7 @@ ${p}${Jt}`;
|
|
|
2616
2616
|
});
|
|
2617
2617
|
return (f, y) => {
|
|
2618
2618
|
const g = U("KCodeBlock");
|
|
2619
|
-
return m(), T("div",
|
|
2619
|
+
return m(), T("div", dl, [
|
|
2620
2620
|
t.entityRecord ? (m(), K(g, {
|
|
2621
2621
|
key: 0,
|
|
2622
2622
|
id: "terraform-codeblock",
|
|
@@ -2628,7 +2628,7 @@ ${p}${Jt}`;
|
|
|
2628
2628
|
]);
|
|
2629
2629
|
};
|
|
2630
2630
|
}
|
|
2631
|
-
}),
|
|
2631
|
+
}), fl = { class: "deck-config config-card-code-block" }, pl = /* @__PURE__ */ Z({
|
|
2632
2632
|
__name: "DeckCodeBlock",
|
|
2633
2633
|
props: {
|
|
2634
2634
|
app: {},
|
|
@@ -2658,7 +2658,7 @@ ${p}${Jt}`;
|
|
|
2658
2658
|
...a.value,
|
|
2659
2659
|
[u]: [d]
|
|
2660
2660
|
};
|
|
2661
|
-
return
|
|
2661
|
+
return ei.dump(v, { quotingType: '"' }).trim();
|
|
2662
2662
|
}), s = _(() => o.value === "bash" ? "export DECK_KONNECT_TOKEN='YOUR_KONNECT_PAT'" : '$env:DECK_KONNECT_TOKEN = "YOUR_KONNECT_PAT"'), c = _(() => {
|
|
2663
2663
|
let d = "deck gateway apply -";
|
|
2664
2664
|
return t.geoApiServerUrl ? d += ` --konnect-addr ${t.geoApiServerUrl}` : t.kongAdminApiUrl && (d += ` --kong-addr ${t.kongAdminApiUrl}`), o.value === "bash" ? `echo '
|
|
@@ -2669,18 +2669,18 @@ ${l.value}
|
|
|
2669
2669
|
});
|
|
2670
2670
|
return (d, u) => {
|
|
2671
2671
|
const v = U("KSelect"), f = U("KBadge"), y = U("KCodeBlock");
|
|
2672
|
-
return m(), T("div",
|
|
2672
|
+
return m(), T("div", fl, [
|
|
2673
2673
|
D(v, {
|
|
2674
2674
|
modelValue: o.value,
|
|
2675
2675
|
"onUpdate:modelValue": u[0] || (u[0] = (g) => o.value = g),
|
|
2676
2676
|
items: r
|
|
2677
2677
|
}, {
|
|
2678
2678
|
"item-template": w(({ item: g }) => [
|
|
2679
|
-
g.value === "powershell" ? (m(), K(x(
|
|
2679
|
+
g.value === "powershell" ? (m(), K(x(At), { key: 0 })) : (m(), K(x(_t), { key: 1 })),
|
|
2680
2680
|
Y(" " + O(g.label), 1)
|
|
2681
2681
|
]),
|
|
2682
2682
|
"selected-item-template": w(({ item: g }) => [
|
|
2683
|
-
g.value === "powershell" ? (m(), K(x(
|
|
2683
|
+
g.value === "powershell" ? (m(), K(x(At), { key: 0 })) : (m(), K(x(_t), { key: 1 })),
|
|
2684
2684
|
Y(" " + O(g.label), 1)
|
|
2685
2685
|
]),
|
|
2686
2686
|
_: 1
|
|
@@ -2691,7 +2691,7 @@ ${l.value}
|
|
|
2691
2691
|
tag: "p"
|
|
2692
2692
|
}, Se({
|
|
2693
2693
|
link: w(() => [
|
|
2694
|
-
D(x(
|
|
2694
|
+
D(x(mi), {
|
|
2695
2695
|
href: e.app === "konnect" ? "https://developer.konghq.com/deck/get-started/" : "https://developer.konghq.com/deck/gateway/configuration/"
|
|
2696
2696
|
}, {
|
|
2697
2697
|
default: w(() => [
|
|
@@ -2735,13 +2735,13 @@ ${l.value}
|
|
|
2735
2735
|
]);
|
|
2736
2736
|
};
|
|
2737
2737
|
}
|
|
2738
|
-
}),
|
|
2738
|
+
}), ii = /* @__PURE__ */ de(pl, [["__scopeId", "data-v-d4838dcc"]]), ml = {
|
|
2739
2739
|
key: 0,
|
|
2740
2740
|
class: "config-card-display-form"
|
|
2741
|
-
},
|
|
2741
|
+
}, gl = ["data-testid"], yl = {
|
|
2742
2742
|
key: 0,
|
|
2743
2743
|
class: "config-card-prop-section-title"
|
|
2744
|
-
},
|
|
2744
|
+
}, hl = /* @__PURE__ */ Z({
|
|
2745
2745
|
__name: "ConfigCardDisplay",
|
|
2746
2746
|
props: {
|
|
2747
2747
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2769,7 +2769,7 @@ ${l.value}
|
|
|
2769
2769
|
type: String,
|
|
2770
2770
|
required: !1,
|
|
2771
2771
|
default: "structured",
|
|
2772
|
-
validator: (e) =>
|
|
2772
|
+
validator: (e) => Ri.includes(e)
|
|
2773
2773
|
},
|
|
2774
2774
|
propListTypes: {
|
|
2775
2775
|
type: Array,
|
|
@@ -2824,15 +2824,15 @@ ${l.value}
|
|
|
2824
2824
|
return t.preserveCodeBlockTimestamps || (delete c.created_at, delete c.updated_at), c;
|
|
2825
2825
|
}), l = _(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, ""));
|
|
2826
2826
|
return (s, c) => (m(), T(ge, null, [
|
|
2827
|
-
e.format === "structured" ? (m(), T("div",
|
|
2827
|
+
e.format === "structured" ? (m(), T("div", ml, [
|
|
2828
2828
|
(m(!0), T(ge, null, ye(e.propListTypes, (d) => (m(), T("div", {
|
|
2829
2829
|
key: `config-card-details-${d}-props`,
|
|
2830
2830
|
class: pe(`config-card-details-${d}-props`),
|
|
2831
2831
|
"data-testid": `config-card-details-${d}-props`
|
|
2832
2832
|
}, [
|
|
2833
|
-
d !== "basic" ? (m(), T("div",
|
|
2833
|
+
d !== "basic" ? (m(), T("div", yl, O(d === "advanced" ? x(i)("baseConfigCard.sections.advanced") : d === "plugin" ? x(i)("baseConfigCard.sections.plugin") : x(i)("baseConfigCard.sections.policy")), 1)) : P("", !0),
|
|
2834
2834
|
(m(!0), T(ge, null, ye(e.propertyCollections[d], (u) => j(s.$slots, `config-card-item-${u.key}`, { row: u }, () => [
|
|
2835
|
-
(m(), K(
|
|
2835
|
+
(m(), K(un, {
|
|
2836
2836
|
key: u.key,
|
|
2837
2837
|
item: u
|
|
2838
2838
|
}, Se({
|
|
@@ -2856,26 +2856,26 @@ ${l.value}
|
|
|
2856
2856
|
} : void 0
|
|
2857
2857
|
]), 1032, ["item"]))
|
|
2858
2858
|
], !0)), 256))
|
|
2859
|
-
], 10,
|
|
2859
|
+
], 10, gl))), 128))
|
|
2860
2860
|
])) : P("", !0),
|
|
2861
|
-
e.format === "json" && a.value ? (m(), K(
|
|
2861
|
+
e.format === "json" && a.value ? (m(), K(dn, {
|
|
2862
2862
|
key: 1,
|
|
2863
2863
|
config: t.config,
|
|
2864
2864
|
"entity-record": a.value,
|
|
2865
2865
|
"fetcher-url": l.value,
|
|
2866
2866
|
"request-method": "get"
|
|
2867
2867
|
}, null, 8, ["config", "entity-record", "fetcher-url"])) : P("", !0),
|
|
2868
|
-
e.format === "yaml" && a.value ? (m(), K(
|
|
2868
|
+
e.format === "yaml" && a.value ? (m(), K(ti, {
|
|
2869
2869
|
key: 2,
|
|
2870
2870
|
"entity-record": a.value
|
|
2871
2871
|
}, null, 8, ["entity-record"])) : P("", !0),
|
|
2872
|
-
e.format === "terraform" && a.value ? (m(), K(
|
|
2872
|
+
e.format === "terraform" && a.value ? (m(), K(ni, {
|
|
2873
2873
|
key: 3,
|
|
2874
2874
|
"entity-record": a.value,
|
|
2875
2875
|
"entity-type": t.entityType,
|
|
2876
2876
|
"sub-entity-type": t.subEntityType
|
|
2877
2877
|
}, null, 8, ["entity-record", "entity-type", "sub-entity-type"])) : P("", !0),
|
|
2878
|
-
e.format === "deck" && a.value ? (m(), K(
|
|
2878
|
+
e.format === "deck" && a.value ? (m(), K(ii, {
|
|
2879
2879
|
key: 4,
|
|
2880
2880
|
app: e.config.app,
|
|
2881
2881
|
"control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
|
|
@@ -2887,13 +2887,13 @@ ${l.value}
|
|
|
2887
2887
|
}, null, 8, ["app", "control-plane-name", "entity-record", "entity-type", "geo-api-server-url", "kong-admin-api-url", "workspace"])) : P("", !0)
|
|
2888
2888
|
], 64));
|
|
2889
2889
|
}
|
|
2890
|
-
}),
|
|
2890
|
+
}), vl = /* @__PURE__ */ de(hl, [["__scopeId", "data-v-64b3b239"]]), bl = {
|
|
2891
2891
|
class: "config-card-title",
|
|
2892
2892
|
"data-testid": "config-card-title"
|
|
2893
|
-
},
|
|
2893
|
+
}, kl = { class: "config-card-actions" }, Cl = ["href"], xl = { class: "config-card-details-section" }, Al = {
|
|
2894
2894
|
key: 0,
|
|
2895
2895
|
class: "config-card-details-after"
|
|
2896
|
-
},
|
|
2896
|
+
}, _l = /* @__PURE__ */ Z({
|
|
2897
2897
|
__name: "EntityBaseConfigCard",
|
|
2898
2898
|
props: {
|
|
2899
2899
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3064,7 +3064,7 @@ ${l.value}
|
|
|
3064
3064
|
label: o("baseForm.configuration.terraform"),
|
|
3065
3065
|
value: "terraform"
|
|
3066
3066
|
});
|
|
3067
|
-
const q =
|
|
3067
|
+
const q = nn(i.entityType);
|
|
3068
3068
|
(i.config.app === "kongManager" || i.config.enableDeckConfig) && q && k.push({
|
|
3069
3069
|
label: o("baseForm.configuration.deck"),
|
|
3070
3070
|
value: "deck"
|
|
@@ -3078,7 +3078,7 @@ ${l.value}
|
|
|
3078
3078
|
};
|
|
3079
3079
|
we(f, (k) => {
|
|
3080
3080
|
i.config.formatPreferenceKey && g(i.config.formatPreferenceKey, k);
|
|
3081
|
-
}),
|
|
3081
|
+
}), ut(() => {
|
|
3082
3082
|
var k;
|
|
3083
3083
|
if (i.config.formatPreferenceKey) {
|
|
3084
3084
|
const q = localStorage.getItem(i.config.formatPreferenceKey), W = v.value;
|
|
@@ -3126,7 +3126,7 @@ ${l.value}
|
|
|
3126
3126
|
// the last property displayed
|
|
3127
3127
|
section: ce.Basic
|
|
3128
3128
|
}
|
|
3129
|
-
}, b = N(!1), C = N(!1), S = N(""), B = N({}), V = N(null),
|
|
3129
|
+
}, b = N(!1), C = N(!1), S = N(""), B = N({}), V = N(null), R = _(() => {
|
|
3130
3130
|
if (!(!i.codeBlockRecordResolver || V.value == null))
|
|
3131
3131
|
return i.codeBlockRecordResolver(V.value);
|
|
3132
3132
|
}), F = _(() => {
|
|
@@ -3143,8 +3143,8 @@ ${l.value}
|
|
|
3143
3143
|
return k.sort(function(H, M) {
|
|
3144
3144
|
return H[1] - M[1];
|
|
3145
3145
|
}), k.map((H) => {
|
|
3146
|
-
var
|
|
3147
|
-
const M = H[0], X = (
|
|
3146
|
+
var bt, kt;
|
|
3147
|
+
const M = H[0], X = (bt = B.value) == null ? void 0 : bt[M], G = ((kt = i.configSchema) == null ? void 0 : kt[M]) || {}, ee = p[M];
|
|
3148
3148
|
return {
|
|
3149
3149
|
key: M,
|
|
3150
3150
|
value: X,
|
|
@@ -3223,7 +3223,7 @@ ${l.value}
|
|
|
3223
3223
|
});
|
|
3224
3224
|
return we(b, (k) => {
|
|
3225
3225
|
n("loading", k);
|
|
3226
|
-
}, { immediate: !0 }),
|
|
3226
|
+
}, { immediate: !0 }), dt(async () => {
|
|
3227
3227
|
C.value = !1, b.value = !0;
|
|
3228
3228
|
try {
|
|
3229
3229
|
const { data: k } = await s.get(re.value);
|
|
@@ -3250,7 +3250,7 @@ ${l.value}
|
|
|
3250
3250
|
"title-tag": e.titleTag
|
|
3251
3251
|
}, Se({
|
|
3252
3252
|
actions: w(() => [
|
|
3253
|
-
|
|
3253
|
+
L("div", kl, [
|
|
3254
3254
|
j(k.$slots, "actions", {}, void 0, !0),
|
|
3255
3255
|
D(W, {
|
|
3256
3256
|
class: "config-format-select-label",
|
|
@@ -3275,13 +3275,13 @@ ${l.value}
|
|
|
3275
3275
|
"data-testid": "book-icon"
|
|
3276
3276
|
}, {
|
|
3277
3277
|
default: w(() => [
|
|
3278
|
-
|
|
3278
|
+
L("a", {
|
|
3279
3279
|
href: e.configCardDoc,
|
|
3280
3280
|
rel: "noopener",
|
|
3281
3281
|
target: "_blank"
|
|
3282
3282
|
}, [
|
|
3283
|
-
D(x(
|
|
3284
|
-
], 8,
|
|
3283
|
+
D(x(en), { size: x($r) }, null, 8, ["size"])
|
|
3284
|
+
], 8, Cl)
|
|
3285
3285
|
]),
|
|
3286
3286
|
_: 1
|
|
3287
3287
|
})) : P("", !0)
|
|
@@ -3299,13 +3299,13 @@ ${l.value}
|
|
|
3299
3299
|
"icon-variant": "error"
|
|
3300
3300
|
}, {
|
|
3301
3301
|
default: w(() => [
|
|
3302
|
-
|
|
3302
|
+
L("h3", null, O(S.value), 1)
|
|
3303
3303
|
]),
|
|
3304
3304
|
_: 1
|
|
3305
3305
|
})) : (m(), T(ge, { key: 2 }, [
|
|
3306
|
-
|
|
3307
|
-
D(
|
|
3308
|
-
"code-block-record":
|
|
3306
|
+
L("div", xl, [
|
|
3307
|
+
D(vl, {
|
|
3308
|
+
"code-block-record": R.value,
|
|
3309
3309
|
"code-block-record-formatter": e.codeBlockRecordFormatter,
|
|
3310
3310
|
config: e.config,
|
|
3311
3311
|
"entity-type": e.entityType,
|
|
@@ -3320,12 +3320,12 @@ ${l.value}
|
|
|
3320
3320
|
ye(d.value, (G) => ({
|
|
3321
3321
|
name: G,
|
|
3322
3322
|
fn: w((ee) => [
|
|
3323
|
-
j(k.$slots, G,
|
|
3323
|
+
j(k.$slots, G, Zt({ record: B.value }, ee), void 0, !0)
|
|
3324
3324
|
])
|
|
3325
3325
|
}))
|
|
3326
3326
|
]), 1032, ["code-block-record", "code-block-record-formatter", "config", "entity-type", "fetcher-url", "format", "preserve-code-block-timestamps", "prop-list-types", "property-collections", "record", "sub-entity-type"])
|
|
3327
3327
|
]),
|
|
3328
|
-
u.value ? (m(), T("div",
|
|
3328
|
+
u.value ? (m(), T("div", Al, [
|
|
3329
3329
|
j(k.$slots, "after-fields", {}, void 0, !0)
|
|
3330
3330
|
])) : P("", !0)
|
|
3331
3331
|
], 64))
|
|
@@ -3335,7 +3335,7 @@ ${l.value}
|
|
|
3335
3335
|
e.hideTitle ? void 0 : {
|
|
3336
3336
|
name: "title",
|
|
3337
3337
|
fn: w(() => [
|
|
3338
|
-
|
|
3338
|
+
L("span", bl, [
|
|
3339
3339
|
j(k.$slots, "title", {}, () => [
|
|
3340
3340
|
Y(O(x(o)("baseConfigCard.title")), 1)
|
|
3341
3341
|
], !0)
|
|
@@ -3346,10 +3346,10 @@ ${l.value}
|
|
|
3346
3346
|
]), 1032, ["title-tag"]);
|
|
3347
3347
|
};
|
|
3348
3348
|
}
|
|
3349
|
-
}),
|
|
3349
|
+
}), Xs = /* @__PURE__ */ de(_l, [["__scopeId", "data-v-2a91c722"]]), wl = {
|
|
3350
3350
|
/** Enable the new plugin form layout */
|
|
3351
3351
|
KM_1948_PLUGIN_FORM_LAYOUT: "KM_1948_PLUGIN_FORM_LAYOUT"
|
|
3352
|
-
},
|
|
3352
|
+
}, Sl = ["novalidate"], $l = /* @__PURE__ */ Z({
|
|
3353
3353
|
__name: "EntityBaseForm",
|
|
3354
3354
|
props: {
|
|
3355
3355
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3473,7 +3473,7 @@ ${l.value}
|
|
|
3473
3473
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
|
|
3474
3474
|
setup(e, { expose: t, emit: n }) {
|
|
3475
3475
|
var $;
|
|
3476
|
-
const i =
|
|
3476
|
+
const i = ct(wl.KM_1948_PLUGIN_FORM_LAYOUT, _(() => !1)), r = n, o = e, a = Ei(), { i18n: { t: l } } = z.useI18n(), { getMessageFromError: s } = z.useErrors(), { axiosInstance: c } = z.useAxios(($ = o.config) == null ? void 0 : $.axiosRequestConfig), d = N(!1), u = _(() => !!o.editId), v = N(!1), f = N(""), y = _(() => o.canSubmit === !1 || o.isReadonly), g = N(!1), p = _(() => {
|
|
3477
3477
|
var A, E;
|
|
3478
3478
|
let h = `${o.config.apiBaseUrl}${o.fetchUrl}`;
|
|
3479
3479
|
return o.config.app === "konnect" && (h = h.replace(/{controlPlaneId}/gi, ((A = o.config) == null ? void 0 : A.controlPlaneId) || "")), h = h.replace(/\/{workspace}/gi, (E = o.config) != null && E.workspace ? `/${o.config.workspace}` : ""), o.editId ? (h = h.replace(/{id}/gi, o.editId), h) : (h = h.replace(/\/{id}/gi, ""), h);
|
|
@@ -3499,13 +3499,13 @@ ${l.value}
|
|
|
3499
3499
|
title: l("baseForm.configuration.terraform"),
|
|
3500
3500
|
hash: "#terraform"
|
|
3501
3501
|
});
|
|
3502
|
-
const
|
|
3503
|
-
return (o.config.app === "kongManager" || o.config.enableDeckTab) &&
|
|
3502
|
+
const R = nn(o.entityType);
|
|
3503
|
+
return (o.config.app === "kongManager" || o.config.enableDeckTab) && R && V.value.push({
|
|
3504
3504
|
title: l("baseForm.configuration.deck"),
|
|
3505
3505
|
hash: "#deck"
|
|
3506
3506
|
}), we(() => d.value, (h) => {
|
|
3507
3507
|
r("loading", h);
|
|
3508
|
-
}, { immediate: !0 }),
|
|
3508
|
+
}, { immediate: !0 }), dt(async () => {
|
|
3509
3509
|
if (o.editId)
|
|
3510
3510
|
try {
|
|
3511
3511
|
v.value = !1, d.value = !0;
|
|
@@ -3540,7 +3540,7 @@ ${l.value}
|
|
|
3540
3540
|
onClickAction: C
|
|
3541
3541
|
}, {
|
|
3542
3542
|
default: w(() => [
|
|
3543
|
-
|
|
3543
|
+
L("h3", null, O(f.value), 1)
|
|
3544
3544
|
]),
|
|
3545
3545
|
_: 1
|
|
3546
3546
|
}, 8, ["action-button-text"])) : (m(), T("form", {
|
|
@@ -3558,12 +3558,12 @@ ${l.value}
|
|
|
3558
3558
|
"data-testid": "form-error",
|
|
3559
3559
|
message: e.errorMessage
|
|
3560
3560
|
}, null, 8, ["message"])) : P("", !0),
|
|
3561
|
-
e.hideActions ? P("", !0) : (m(), K(
|
|
3561
|
+
e.hideActions ? P("", !0) : (m(), K(Xt, {
|
|
3562
3562
|
key: 1,
|
|
3563
3563
|
disabled: !e.actionTeleportTarget,
|
|
3564
3564
|
to: e.actionTeleportTarget
|
|
3565
3565
|
}, [
|
|
3566
|
-
|
|
3566
|
+
L("div", {
|
|
3567
3567
|
class: pe(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
|
|
3568
3568
|
"data-testid": "form-actions"
|
|
3569
3569
|
}, [
|
|
@@ -3605,7 +3605,7 @@ ${l.value}
|
|
|
3605
3605
|
], !0)
|
|
3606
3606
|
], 2)
|
|
3607
3607
|
], 8, ["disabled", "to"]))
|
|
3608
|
-
], 40,
|
|
3608
|
+
], 40, Sl)),
|
|
3609
3609
|
D(W, {
|
|
3610
3610
|
"close-on-blur": !1,
|
|
3611
3611
|
"data-testid": "form-view-configuration-slideout",
|
|
@@ -3616,7 +3616,7 @@ ${l.value}
|
|
|
3616
3616
|
onClose: A[4] || (A[4] = (Q) => b())
|
|
3617
3617
|
}, {
|
|
3618
3618
|
default: w(() => [
|
|
3619
|
-
|
|
3619
|
+
L("div", null, [
|
|
3620
3620
|
j(h.$slots, "configuration-slideout-message", {}, () => [
|
|
3621
3621
|
Y(O(x(l)("baseForm.configuration.message")), 1)
|
|
3622
3622
|
], !0)
|
|
@@ -3627,7 +3627,7 @@ ${l.value}
|
|
|
3627
3627
|
onChange: A[3] || (A[3] = (Q) => r("codeBlockTabChange", Q.replace("#", "")))
|
|
3628
3628
|
}, {
|
|
3629
3629
|
json: w(() => [
|
|
3630
|
-
D(
|
|
3630
|
+
D(dn, {
|
|
3631
3631
|
config: e.config,
|
|
3632
3632
|
"entity-record": o.formFields,
|
|
3633
3633
|
"fetcher-url": p.value,
|
|
@@ -3635,19 +3635,19 @@ ${l.value}
|
|
|
3635
3635
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
3636
3636
|
]),
|
|
3637
3637
|
yaml: w(() => [
|
|
3638
|
-
D(
|
|
3638
|
+
D(ti, {
|
|
3639
3639
|
"entity-record": o.formFields
|
|
3640
3640
|
}, null, 8, ["entity-record"])
|
|
3641
3641
|
]),
|
|
3642
3642
|
terraform: w(() => [
|
|
3643
|
-
D(
|
|
3643
|
+
D(ni, {
|
|
3644
3644
|
"entity-record": o.formFields,
|
|
3645
3645
|
"entity-type": e.entityType,
|
|
3646
3646
|
"sub-entity-type": e.subEntityType
|
|
3647
3647
|
}, null, 8, ["entity-record", "entity-type", "sub-entity-type"])
|
|
3648
3648
|
]),
|
|
3649
3649
|
deck: w(() => [
|
|
3650
|
-
D(
|
|
3650
|
+
D(ii, {
|
|
3651
3651
|
app: e.config.app,
|
|
3652
3652
|
"control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
|
|
3653
3653
|
"entity-record": o.formFields,
|
|
@@ -3667,7 +3667,7 @@ ${l.value}
|
|
|
3667
3667
|
}, 8, ["class"]);
|
|
3668
3668
|
};
|
|
3669
3669
|
}
|
|
3670
|
-
}),
|
|
3670
|
+
}), ec = /* @__PURE__ */ de($l, [["__scopeId", "data-v-a447ea3f"]]), Tl = ["data-truncate"], El = /* @__PURE__ */ Z({
|
|
3671
3671
|
__name: "EntityBaseTableCell",
|
|
3672
3672
|
props: {
|
|
3673
3673
|
keyName: {
|
|
@@ -3721,9 +3721,9 @@ ${l.value}
|
|
|
3721
3721
|
},
|
|
3722
3722
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3723
3723
|
), g = _(() => o.value ? d.value > u.value : !1);
|
|
3724
|
-
return
|
|
3724
|
+
return ut(() => {
|
|
3725
3725
|
s();
|
|
3726
|
-
}),
|
|
3726
|
+
}), si(() => {
|
|
3727
3727
|
y();
|
|
3728
3728
|
}), (p, b) => {
|
|
3729
3729
|
const C = U("KTooltip");
|
|
@@ -3746,17 +3746,17 @@ ${l.value}
|
|
|
3746
3746
|
]),
|
|
3747
3747
|
_: 3
|
|
3748
3748
|
}, 8, ["text"])
|
|
3749
|
-
], 8,
|
|
3749
|
+
], 8, Tl)) : j(p.$slots, "default", { key: 1 }, void 0, !0)
|
|
3750
3750
|
], 512);
|
|
3751
3751
|
};
|
|
3752
3752
|
}
|
|
3753
|
-
}),
|
|
3753
|
+
}), Il = /* @__PURE__ */ de(El, [["__scopeId", "data-v-a3a65cac"]]), Fl = { class: "toolbar-container" }, Ol = {
|
|
3754
3754
|
key: 0,
|
|
3755
3755
|
class: "toolbar-button-container"
|
|
3756
|
-
},
|
|
3756
|
+
}, Bl = {
|
|
3757
3757
|
key: 0,
|
|
3758
3758
|
class: "hidden"
|
|
3759
|
-
},
|
|
3759
|
+
}, Ll = /* @__PURE__ */ Z({
|
|
3760
3760
|
__name: "EntityBaseTable",
|
|
3761
3761
|
props: {
|
|
3762
3762
|
// table header configuration
|
|
@@ -3953,7 +3953,7 @@ ${l.value}
|
|
|
3953
3953
|
i("click:row", A);
|
|
3954
3954
|
}), p = (h) => {
|
|
3955
3955
|
i("sort", h);
|
|
3956
|
-
}, { hideTableToolbar: b, handleStateChange: C } = z.useTableState(() => n.query), { setTablePreferences: S, getTablePreferences: B } =
|
|
3956
|
+
}, { hideTableToolbar: b, handleStateChange: C } = z.useTableState(() => n.query), { setTablePreferences: S, getTablePreferences: B } = Di(), V = N(B(a.value, n.defaultTablePreferences)), R = _(() => {
|
|
3957
3957
|
const h = B(a.value);
|
|
3958
3958
|
return {
|
|
3959
3959
|
...n.initialFetcherParams,
|
|
@@ -3996,7 +3996,7 @@ ${l.value}
|
|
|
3996
3996
|
"hide-pagination": e.hidePagination,
|
|
3997
3997
|
"hide-pagination-when-optional": e.hidePaginationWhenOptional,
|
|
3998
3998
|
"hide-toolbar": e.hideToolbar ?? x(b),
|
|
3999
|
-
"initial-fetcher-params":
|
|
3999
|
+
"initial-fetcher-params": R.value,
|
|
4000
4000
|
loading: e.isLoading,
|
|
4001
4001
|
"pagination-attributes": $.value,
|
|
4002
4002
|
"resize-columns": "",
|
|
@@ -4013,9 +4013,9 @@ ${l.value}
|
|
|
4013
4013
|
"onUpdate:tablePreferences": F
|
|
4014
4014
|
}, Se({
|
|
4015
4015
|
toolbar: w(() => [
|
|
4016
|
-
|
|
4016
|
+
L("div", Fl, [
|
|
4017
4017
|
j(h.$slots, "toolbar-filter", {}, void 0, !0),
|
|
4018
|
-
h.$slots["toolbar-button"] ? (m(), T("div",
|
|
4018
|
+
h.$slots["toolbar-button"] ? (m(), T("div", Ol, [
|
|
4019
4019
|
j(h.$slots, "toolbar-button", {}, void 0, !0)
|
|
4020
4020
|
])) : P("", !0)
|
|
4021
4021
|
])
|
|
@@ -4035,7 +4035,7 @@ ${l.value}
|
|
|
4035
4035
|
ye(e.tableHeaders, (me, k) => ({
|
|
4036
4036
|
name: k,
|
|
4037
4037
|
fn: w(({ row: q, rowValue: W }) => [
|
|
4038
|
-
D(
|
|
4038
|
+
D(Il, {
|
|
4039
4039
|
"key-name": String(k),
|
|
4040
4040
|
"row-el": d(q),
|
|
4041
4041
|
tooltip: me.tooltip
|
|
@@ -4056,12 +4056,12 @@ ${l.value}
|
|
|
4056
4056
|
e.query ? void 0 : {
|
|
4057
4057
|
name: "empty-state-action-icon",
|
|
4058
4058
|
fn: w(() => [
|
|
4059
|
-
D(x(
|
|
4059
|
+
D(x(tn))
|
|
4060
4060
|
]),
|
|
4061
4061
|
key: "1"
|
|
4062
4062
|
}
|
|
4063
4063
|
]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-pagination-when-optional", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
|
|
4064
|
-
h.$slots["outside-actions"] && x(b) ? (m(), T("div",
|
|
4064
|
+
h.$slots["outside-actions"] && x(b) ? (m(), T("div", Bl, [
|
|
4065
4065
|
j(h.$slots, "outside-actions", {}, void 0, !0)
|
|
4066
4066
|
])) : P("", !0)
|
|
4067
4067
|
]),
|
|
@@ -4069,13 +4069,13 @@ ${l.value}
|
|
|
4069
4069
|
}, 8, ["title", "title-tag"]);
|
|
4070
4070
|
};
|
|
4071
4071
|
}
|
|
4072
|
-
}),
|
|
4072
|
+
}), tc = /* @__PURE__ */ de(Ll, [["__scopeId", "data-v-09e101d4"]]), Rl = {
|
|
4073
4073
|
key: 0,
|
|
4074
4074
|
class: "kong-ui-entity-delete-error"
|
|
4075
|
-
},
|
|
4075
|
+
}, Kl = {
|
|
4076
4076
|
key: 1,
|
|
4077
4077
|
class: "description"
|
|
4078
|
-
},
|
|
4078
|
+
}, Nl = /* @__PURE__ */ Z({
|
|
4079
4079
|
__name: "EntityDeleteModal",
|
|
4080
4080
|
props: {
|
|
4081
4081
|
visible: {
|
|
@@ -4149,10 +4149,10 @@ ${l.value}
|
|
|
4149
4149
|
onProceed: s
|
|
4150
4150
|
}, {
|
|
4151
4151
|
default: w(() => [
|
|
4152
|
-
|
|
4152
|
+
L("div", {
|
|
4153
4153
|
class: pe(["body", { "body-stacked-copy": e.stackedCopy }])
|
|
4154
4154
|
}, [
|
|
4155
|
-
e.error ? (m(), T("div",
|
|
4155
|
+
e.error ? (m(), T("div", Rl, [
|
|
4156
4156
|
D(u, { appearance: "danger" }, {
|
|
4157
4157
|
default: w(() => [
|
|
4158
4158
|
Y(O(e.error), 1)
|
|
@@ -4174,15 +4174,15 @@ ${l.value}
|
|
|
4174
4174
|
i.entityName ? {
|
|
4175
4175
|
name: "entityName",
|
|
4176
4176
|
fn: w(() => [
|
|
4177
|
-
|
|
4177
|
+
L("strong", null, O(i.entityName), 1)
|
|
4178
4178
|
]),
|
|
4179
4179
|
key: "0"
|
|
4180
4180
|
} : void 0
|
|
4181
4181
|
]), 1032, ["keypath"])
|
|
4182
4182
|
], !0),
|
|
4183
|
-
i.description || c.$slots.description ? (m(), T("div",
|
|
4183
|
+
i.description || c.$slots.description ? (m(), T("div", Kl, [
|
|
4184
4184
|
j(c.$slots, "description", {}, () => [
|
|
4185
|
-
|
|
4185
|
+
L("p", null, O(i.description), 1)
|
|
4186
4186
|
], !0)
|
|
4187
4187
|
])) : P("", !0)
|
|
4188
4188
|
], 2)
|
|
@@ -4191,13 +4191,13 @@ ${l.value}
|
|
|
4191
4191
|
}, 8, ["action-button-disabled", "class", "confirmation-prompt", "confirmation-text", "title", "visible"]);
|
|
4192
4192
|
};
|
|
4193
4193
|
}
|
|
4194
|
-
}),
|
|
4194
|
+
}), nc = /* @__PURE__ */ de(Nl, [["__scopeId", "data-v-fc366e0c"]]), Ml = {
|
|
4195
4195
|
fill: "none",
|
|
4196
4196
|
height: "20",
|
|
4197
4197
|
viewBox: "0 0 20 20",
|
|
4198
4198
|
width: "20",
|
|
4199
4199
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4200
|
-
},
|
|
4200
|
+
}, Dl = {
|
|
4201
4201
|
id: "mask0_180_20349",
|
|
4202
4202
|
height: "20",
|
|
4203
4203
|
"mask-type": "alpha",
|
|
@@ -4205,35 +4205,35 @@ ${l.value}
|
|
|
4205
4205
|
width: "20",
|
|
4206
4206
|
x: "0",
|
|
4207
4207
|
y: "0"
|
|
4208
|
-
},
|
|
4208
|
+
}, Pl = ["fill"], jl = { mask: "url(#mask0_180_20349)" }, Ul = ["fill"], Jt = /* @__PURE__ */ Z({
|
|
4209
4209
|
__name: "IconFilter",
|
|
4210
4210
|
props: {
|
|
4211
4211
|
color: {
|
|
4212
4212
|
type: String,
|
|
4213
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
4213
|
+
default: `var(--kong-ui-entity-filter-color, ${Cr})`
|
|
4214
4214
|
}
|
|
4215
4215
|
},
|
|
4216
4216
|
setup(e) {
|
|
4217
|
-
return (t, n) => (m(), T("svg",
|
|
4218
|
-
|
|
4219
|
-
|
|
4217
|
+
return (t, n) => (m(), T("svg", Ml, [
|
|
4218
|
+
L("mask", Dl, [
|
|
4219
|
+
L("rect", {
|
|
4220
4220
|
fill: e.color,
|
|
4221
4221
|
height: "20",
|
|
4222
4222
|
width: "20"
|
|
4223
|
-
}, null, 8,
|
|
4223
|
+
}, null, 8, Pl)
|
|
4224
4224
|
]),
|
|
4225
|
-
|
|
4226
|
-
|
|
4225
|
+
L("g", jl, [
|
|
4226
|
+
L("path", {
|
|
4227
4227
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
4228
4228
|
fill: e.color
|
|
4229
|
-
}, null, 8,
|
|
4229
|
+
}, null, 8, Ul)
|
|
4230
4230
|
])
|
|
4231
4231
|
]));
|
|
4232
4232
|
}
|
|
4233
|
-
}),
|
|
4233
|
+
}), ql = {
|
|
4234
4234
|
key: 1,
|
|
4235
4235
|
class: "kong-ui-entity-filter"
|
|
4236
|
-
},
|
|
4236
|
+
}, Hl = { class: "kong-ui-entity-filter-menu" }, Yl = ["data-testid"], Vl = ["onClick", "onKeydown"], Wl = { class: "menu-item-indicator" }, Gl = { class: "menu-item-body" }, Jl = ["for"], zl = { class: "menu-item-buttons" }, Ql = { class: "filter-clear-button-container" }, Zl = /* @__PURE__ */ Z({
|
|
4237
4237
|
__name: "EntityFilter",
|
|
4238
4238
|
props: {
|
|
4239
4239
|
// filter config, either exact match or fuzzy match
|
|
@@ -4254,59 +4254,59 @@ ${l.value}
|
|
|
4254
4254
|
emits: ["update:modelValue"],
|
|
4255
4255
|
setup(e, { emit: t }) {
|
|
4256
4256
|
const { i18n: { t: n } } = z.useI18n(), i = e, r = t, o = N(!1), a = N({}), l = N(/* @__PURE__ */ new Set()), s = _(() => {
|
|
4257
|
-
const
|
|
4257
|
+
const R = [];
|
|
4258
4258
|
return new URLSearchParams(i.modelValue).forEach((F, $) => {
|
|
4259
|
-
F !== "" &&
|
|
4260
|
-
}),
|
|
4259
|
+
F !== "" && R.push($);
|
|
4260
|
+
}), R;
|
|
4261
4261
|
}), c = _(() => {
|
|
4262
|
-
const
|
|
4263
|
-
return Object.keys(
|
|
4262
|
+
const R = i.config.fields;
|
|
4263
|
+
return Object.keys(R).filter((F) => {
|
|
4264
4264
|
var $;
|
|
4265
|
-
return ($ =
|
|
4265
|
+
return ($ = R == null ? void 0 : R[F]) == null ? void 0 : $.searchable;
|
|
4266
4266
|
}).map((F) => ({
|
|
4267
|
-
label:
|
|
4267
|
+
label: R[F].label || F,
|
|
4268
4268
|
value: F,
|
|
4269
4269
|
expanded: !1
|
|
4270
4270
|
}));
|
|
4271
4271
|
});
|
|
4272
|
-
we(() => i.modelValue, (
|
|
4273
|
-
a.value = {}, new URLSearchParams(
|
|
4272
|
+
we(() => i.modelValue, (R) => {
|
|
4273
|
+
a.value = {}, new URLSearchParams(R).forEach((F, $) => {
|
|
4274
4274
|
a.value[$] = F;
|
|
4275
4275
|
});
|
|
4276
4276
|
});
|
|
4277
4277
|
const d = () => {
|
|
4278
4278
|
o.value = !o.value;
|
|
4279
|
-
}, u = (
|
|
4280
|
-
l.value.has(
|
|
4281
|
-
}, v = (
|
|
4282
|
-
r("update:modelValue",
|
|
4279
|
+
}, u = (R) => {
|
|
4280
|
+
l.value.has(R) ? l.value.delete(R) : l.value.add(R);
|
|
4281
|
+
}, v = (R) => {
|
|
4282
|
+
r("update:modelValue", R);
|
|
4283
4283
|
}, f = () => {
|
|
4284
4284
|
v("");
|
|
4285
|
-
}, y = (
|
|
4285
|
+
}, y = (R) => `filter-${R}`, g = (R) => {
|
|
4286
4286
|
var F, $;
|
|
4287
|
-
return ((($ = (F = i.config.schema) == null ? void 0 : F[
|
|
4288
|
-
}, p = (
|
|
4287
|
+
return ((($ = (F = i.config.schema) == null ? void 0 : F[R]) == null ? void 0 : $.values) ?? []).map((h) => typeof h == "string" ? { value: h, label: h } : h);
|
|
4288
|
+
}, p = (R) => {
|
|
4289
4289
|
var F, $;
|
|
4290
|
-
return (($ = (F = i.config.schema) == null ? void 0 : F[
|
|
4291
|
-
}, b = (
|
|
4290
|
+
return (($ = (F = i.config.schema) == null ? void 0 : F[R]) == null ? void 0 : $.type) ?? "text";
|
|
4291
|
+
}, b = (R) => {
|
|
4292
4292
|
a.value = {
|
|
4293
4293
|
...a.value,
|
|
4294
|
-
[
|
|
4294
|
+
[R]: ""
|
|
4295
4295
|
}, S();
|
|
4296
4296
|
}, C = () => {
|
|
4297
4297
|
a.value = {}, S(!0);
|
|
4298
|
-
}, S = (
|
|
4298
|
+
}, S = (R = !1) => {
|
|
4299
4299
|
const F = Object.keys(a.value).reduce(($, h) => (a.value[h] && ($[h] = `${a.value[h]}`), $), {});
|
|
4300
|
-
|
|
4301
|
-
}, B = (
|
|
4300
|
+
R && (o.value = !1), r("update:modelValue", new URLSearchParams(F).toString());
|
|
4301
|
+
}, B = (R) => {
|
|
4302
4302
|
var F, $;
|
|
4303
|
-
return !!(($ = (F = i.config.schema) == null ? void 0 : F[
|
|
4304
|
-
}, V = (
|
|
4303
|
+
return !!(($ = (F = i.config.schema) == null ? void 0 : F[R]) != null && $.filterFunction);
|
|
4304
|
+
}, V = (R, F) => {
|
|
4305
4305
|
var h;
|
|
4306
|
-
const $ = (h = i.config.schema) == null ? void 0 : h[
|
|
4306
|
+
const $ = (h = i.config.schema) == null ? void 0 : h[R];
|
|
4307
4307
|
return ($ == null ? void 0 : $.filterFunction) === void 0 ? !0 : $.filterFunction(F);
|
|
4308
4308
|
};
|
|
4309
|
-
return (
|
|
4309
|
+
return (R, F) => {
|
|
4310
4310
|
const $ = U("KInput"), h = U("KButton"), A = U("KSelect");
|
|
4311
4311
|
return e.config.isExactMatch ? (m(), K($, {
|
|
4312
4312
|
key: 0,
|
|
@@ -4318,10 +4318,10 @@ ${l.value}
|
|
|
4318
4318
|
"onUpdate:modelValue": v
|
|
4319
4319
|
}, {
|
|
4320
4320
|
before: w(() => [
|
|
4321
|
-
D(
|
|
4321
|
+
D(Jt)
|
|
4322
4322
|
]),
|
|
4323
4323
|
after: w(() => [
|
|
4324
|
-
$e(D(x(
|
|
4324
|
+
$e(D(x(Si), {
|
|
4325
4325
|
class: "kong-ui-entity-filter-clear",
|
|
4326
4326
|
role: "button",
|
|
4327
4327
|
tabindex: "0",
|
|
@@ -4331,25 +4331,25 @@ ${l.value}
|
|
|
4331
4331
|
])
|
|
4332
4332
|
]),
|
|
4333
4333
|
_: 1
|
|
4334
|
-
}, 8, ["model-value", "placeholder"])) : (m(), T("div",
|
|
4334
|
+
}, 8, ["model-value", "placeholder"])) : (m(), T("div", ql, [
|
|
4335
4335
|
D(h, {
|
|
4336
4336
|
appearance: "tertiary",
|
|
4337
4337
|
"data-testid": "filter-button",
|
|
4338
4338
|
onClick: d
|
|
4339
4339
|
}, {
|
|
4340
4340
|
default: w(() => [
|
|
4341
|
-
D(
|
|
4341
|
+
D(Jt),
|
|
4342
4342
|
Y(" " + O(x(n)("filter.filterButtonText")) + " " + O(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
4343
4343
|
]),
|
|
4344
4344
|
_: 1
|
|
4345
4345
|
}),
|
|
4346
|
-
$e(
|
|
4346
|
+
$e(L("div", {
|
|
4347
4347
|
class: "kong-ui-entity-filter-backdrop",
|
|
4348
4348
|
onClick: d
|
|
4349
4349
|
}, null, 512), [
|
|
4350
4350
|
[Te, o.value]
|
|
4351
4351
|
]),
|
|
4352
|
-
$e(
|
|
4352
|
+
$e(L("div", Hl, [
|
|
4353
4353
|
(m(!0), T(ge, null, ye(c.value, (E) => {
|
|
4354
4354
|
var re, me;
|
|
4355
4355
|
return m(), T("div", {
|
|
@@ -4357,27 +4357,27 @@ ${l.value}
|
|
|
4357
4357
|
class: "kong-ui-entity-filter-menu-item",
|
|
4358
4358
|
"data-testid": E.value
|
|
4359
4359
|
}, [
|
|
4360
|
-
|
|
4360
|
+
L("span", {
|
|
4361
4361
|
class: pe(["menu-item-title", { expanded: l.value.has(E.value) }]),
|
|
4362
4362
|
role: "button",
|
|
4363
4363
|
tabindex: "0",
|
|
4364
4364
|
onClick: (k) => u(E.value),
|
|
4365
|
-
onKeydown:
|
|
4365
|
+
onKeydown: ci((k) => u(E.value), ["enter"])
|
|
4366
4366
|
}, [
|
|
4367
4367
|
Y(O(E.label) + " ", 1),
|
|
4368
|
-
$e(
|
|
4368
|
+
$e(L("span", Wl, null, 512), [
|
|
4369
4369
|
[Te, s.value.includes(E.value)]
|
|
4370
4370
|
]),
|
|
4371
|
-
D(x(
|
|
4371
|
+
D(x($i), {
|
|
4372
4372
|
class: pe(["menu-item-expand-icon", { expanded: l.value.has(E.value) }]),
|
|
4373
|
-
color: x(
|
|
4373
|
+
color: x(Ar)
|
|
4374
4374
|
}, null, 8, ["class", "color"])
|
|
4375
|
-
], 42,
|
|
4376
|
-
$e(
|
|
4377
|
-
|
|
4375
|
+
], 42, Vl),
|
|
4376
|
+
$e(L("div", Gl, [
|
|
4377
|
+
L("label", {
|
|
4378
4378
|
class: "menu-item-label",
|
|
4379
4379
|
for: y(E.value)
|
|
4380
|
-
}, O(x(n)("filter.fieldLabel")), 9,
|
|
4380
|
+
}, O(x(n)("filter.fieldLabel")), 9, Jl),
|
|
4381
4381
|
((me = (re = e.config.schema) == null ? void 0 : re[E.value]) == null ? void 0 : me.type) === "select" ? (m(), K(A, {
|
|
4382
4382
|
key: 0,
|
|
4383
4383
|
id: y(E.value),
|
|
@@ -4399,7 +4399,7 @@ ${l.value}
|
|
|
4399
4399
|
], 512), [
|
|
4400
4400
|
[Te, l.value.has(E.value)]
|
|
4401
4401
|
]),
|
|
4402
|
-
$e(
|
|
4402
|
+
$e(L("div", zl, [
|
|
4403
4403
|
D(h, {
|
|
4404
4404
|
appearance: "tertiary",
|
|
4405
4405
|
"data-testid": "apply-filter",
|
|
@@ -4425,9 +4425,9 @@ ${l.value}
|
|
|
4425
4425
|
], 512), [
|
|
4426
4426
|
[Te, l.value.has(E.value)]
|
|
4427
4427
|
])
|
|
4428
|
-
], 8,
|
|
4428
|
+
], 8, Yl);
|
|
4429
4429
|
}), 128)),
|
|
4430
|
-
|
|
4430
|
+
L("div", Ql, [
|
|
4431
4431
|
D(h, {
|
|
4432
4432
|
appearance: "tertiary",
|
|
4433
4433
|
size: "small",
|
|
@@ -4445,7 +4445,7 @@ ${l.value}
|
|
|
4445
4445
|
]));
|
|
4446
4446
|
};
|
|
4447
4447
|
}
|
|
4448
|
-
}),
|
|
4448
|
+
}), ic = /* @__PURE__ */ de(Zl, [["__scopeId", "data-v-d3d2bd8b"]]), rc = /* @__PURE__ */ Z({
|
|
4449
4449
|
__name: "EntityToggleModal",
|
|
4450
4450
|
props: {
|
|
4451
4451
|
visible: {
|
|
@@ -4495,7 +4495,7 @@ ${l.value}
|
|
|
4495
4495
|
};
|
|
4496
4496
|
return (u, v) => {
|
|
4497
4497
|
const f = U("KPrompt");
|
|
4498
|
-
return m(), K(
|
|
4498
|
+
return m(), K(Xt, { to: "body" }, [
|
|
4499
4499
|
D(f, {
|
|
4500
4500
|
"action-button-disabled": a.value,
|
|
4501
4501
|
"action-button-text": s.value,
|
|
@@ -4514,7 +4514,7 @@ ${l.value}
|
|
|
4514
4514
|
Y(O(e.entityType), 1)
|
|
4515
4515
|
]),
|
|
4516
4516
|
entityName: w(() => [
|
|
4517
|
-
|
|
4517
|
+
L("strong", null, O(e.entityName), 1)
|
|
4518
4518
|
]),
|
|
4519
4519
|
_: 1
|
|
4520
4520
|
}, 8, ["keypath"])
|
|
@@ -4524,7 +4524,7 @@ ${l.value}
|
|
|
4524
4524
|
]);
|
|
4525
4525
|
};
|
|
4526
4526
|
}
|
|
4527
|
-
}),
|
|
4527
|
+
}), ac = /* @__PURE__ */ Z({
|
|
4528
4528
|
__name: "PermissionsWrapper",
|
|
4529
4529
|
props: {
|
|
4530
4530
|
/**
|
|
@@ -4557,37 +4557,31 @@ ${l.value}
|
|
|
4557
4557
|
}), ae = [];
|
|
4558
4558
|
for (let e = 0; e < 256; ++e)
|
|
4559
4559
|
ae.push((e + 256).toString(16).slice(1));
|
|
4560
|
-
function
|
|
4560
|
+
function Xl(e, t = 0) {
|
|
4561
4561
|
return (ae[e[t + 0]] + ae[e[t + 1]] + ae[e[t + 2]] + ae[e[t + 3]] + "-" + ae[e[t + 4]] + ae[e[t + 5]] + "-" + ae[e[t + 6]] + ae[e[t + 7]] + "-" + ae[e[t + 8]] + ae[e[t + 9]] + "-" + ae[e[t + 10]] + ae[e[t + 11]] + ae[e[t + 12]] + ae[e[t + 13]] + ae[e[t + 14]] + ae[e[t + 15]]).toLowerCase();
|
|
4562
4562
|
}
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
if (!it) {
|
|
4567
|
-
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
4568
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4569
|
-
it = crypto.getRandomValues.bind(crypto);
|
|
4570
|
-
}
|
|
4571
|
-
return it(ns);
|
|
4563
|
+
const es = new Uint8Array(16);
|
|
4564
|
+
function ts() {
|
|
4565
|
+
return crypto.getRandomValues(es);
|
|
4572
4566
|
}
|
|
4573
|
-
|
|
4574
|
-
|
|
4567
|
+
function ns(e, t, n) {
|
|
4568
|
+
return crypto.randomUUID ? crypto.randomUUID() : is(e);
|
|
4569
|
+
}
|
|
4570
|
+
function is(e, t, n) {
|
|
4575
4571
|
var r;
|
|
4576
|
-
if (Qt.randomUUID && !e)
|
|
4577
|
-
return Qt.randomUUID();
|
|
4578
4572
|
e = e || {};
|
|
4579
|
-
const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ??
|
|
4573
|
+
const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? ts();
|
|
4580
4574
|
if (i.length < 16)
|
|
4581
4575
|
throw new Error("Random bytes length must be >= 16");
|
|
4582
|
-
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128,
|
|
4576
|
+
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Xl(i);
|
|
4583
4577
|
}
|
|
4584
|
-
const
|
|
4578
|
+
const rs = ["aria-labelledby"], as = { class: "form-section-wrapper" }, os = {
|
|
4585
4579
|
key: 1,
|
|
4586
4580
|
class: "form-section-description"
|
|
4587
|
-
},
|
|
4581
|
+
}, ls = {
|
|
4588
4582
|
key: 2,
|
|
4589
4583
|
class: "form-section-footer"
|
|
4590
|
-
},
|
|
4584
|
+
}, ss = { class: "form-section-content" }, cs = /* @__PURE__ */ Z({
|
|
4591
4585
|
__name: "EntityFormSection",
|
|
4592
4586
|
props: {
|
|
4593
4587
|
title: {
|
|
@@ -4616,13 +4610,13 @@ const os = ["aria-labelledby"], ls = { class: "form-section-wrapper" }, ss = {
|
|
|
4616
4610
|
}
|
|
4617
4611
|
},
|
|
4618
4612
|
setup(e) {
|
|
4619
|
-
const t = Pe(), n =
|
|
4613
|
+
const t = Pe(), n = ns();
|
|
4620
4614
|
return (i, r) => (m(), T("div", {
|
|
4621
4615
|
"aria-labelledby": e.title ? x(n) : void 0,
|
|
4622
4616
|
class: pe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4623
4617
|
role: "group"
|
|
4624
4618
|
}, [
|
|
4625
|
-
|
|
4619
|
+
L("div", as, [
|
|
4626
4620
|
e.hideInfoHeader ? P("", !0) : (m(), T("div", {
|
|
4627
4621
|
key: 0,
|
|
4628
4622
|
class: pe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
@@ -4637,40 +4631,40 @@ const os = ["aria-labelledby"], ls = { class: "form-section-wrapper" }, ss = {
|
|
|
4637
4631
|
]),
|
|
4638
4632
|
_: 1
|
|
4639
4633
|
}, 8, ["id"])) : P("", !0),
|
|
4640
|
-
e.description || x(t).description ? (m(), T("div",
|
|
4634
|
+
e.description || x(t).description ? (m(), T("div", os, [
|
|
4641
4635
|
j(i.$slots, "description", {}, () => [
|
|
4642
|
-
|
|
4636
|
+
L("p", null, O(e.description), 1)
|
|
4643
4637
|
], !0)
|
|
4644
4638
|
])) : P("", !0),
|
|
4645
|
-
x(t).footer ? (m(), T("div",
|
|
4639
|
+
x(t).footer ? (m(), T("div", ls, [
|
|
4646
4640
|
j(i.$slots, "footer", {}, void 0, !0)
|
|
4647
4641
|
])) : P("", !0)
|
|
4648
4642
|
], 2)),
|
|
4649
|
-
|
|
4643
|
+
L("div", ss, [
|
|
4650
4644
|
j(i.$slots, "default", {}, void 0, !0)
|
|
4651
4645
|
])
|
|
4652
4646
|
])
|
|
4653
|
-
], 10,
|
|
4647
|
+
], 10, rs));
|
|
4654
4648
|
}
|
|
4655
|
-
}),
|
|
4649
|
+
}), oc = /* @__PURE__ */ de(cs, [["__scopeId", "data-v-ccd29028"]]), us = { class: "header" }, ds = {
|
|
4656
4650
|
key: 0,
|
|
4657
4651
|
class: "step",
|
|
4658
4652
|
"data-testid": "form-block-step"
|
|
4659
|
-
},
|
|
4653
|
+
}, fs = { class: "header-content" }, ps = {
|
|
4660
4654
|
class: "header-title",
|
|
4661
4655
|
"data-testid": "header-title"
|
|
4662
|
-
},
|
|
4656
|
+
}, ms = {
|
|
4663
4657
|
key: 0,
|
|
4664
4658
|
class: "header-description",
|
|
4665
4659
|
"data-testid": "header-description"
|
|
4666
|
-
},
|
|
4660
|
+
}, gs = {
|
|
4667
4661
|
key: 1,
|
|
4668
4662
|
class: "header-extra",
|
|
4669
4663
|
"data-testid": "header-extra"
|
|
4670
|
-
},
|
|
4664
|
+
}, ys = {
|
|
4671
4665
|
class: "content",
|
|
4672
4666
|
"data-testid": "form-block-content"
|
|
4673
|
-
},
|
|
4667
|
+
}, hs = /* @__PURE__ */ Z({
|
|
4674
4668
|
__name: "EntityFormBlock",
|
|
4675
4669
|
props: {
|
|
4676
4670
|
step: { default: () => {
|
|
@@ -4685,40 +4679,40 @@ const os = ["aria-labelledby"], ls = { class: "form-section-wrapper" }, ss = {
|
|
|
4685
4679
|
stepped: e.step !== void 0 || t.step
|
|
4686
4680
|
}])
|
|
4687
4681
|
}, [
|
|
4688
|
-
|
|
4689
|
-
e.step !== void 0 || t.step ? (m(), T("div",
|
|
4682
|
+
L("header", us, [
|
|
4683
|
+
e.step !== void 0 || t.step ? (m(), T("div", ds, [
|
|
4690
4684
|
j(n.$slots, "step", {}, () => [
|
|
4691
4685
|
Y(O(e.step), 1)
|
|
4692
4686
|
], !0)
|
|
4693
4687
|
])) : P("", !0),
|
|
4694
|
-
|
|
4695
|
-
|
|
4688
|
+
L("div", fs, [
|
|
4689
|
+
L("h2", ps, [
|
|
4696
4690
|
j(n.$slots, "title", {}, () => [
|
|
4697
4691
|
Y(O(e.title), 1)
|
|
4698
4692
|
], !0)
|
|
4699
4693
|
]),
|
|
4700
|
-
e.description || t.description ? (m(), T("div",
|
|
4694
|
+
e.description || t.description ? (m(), T("div", ms, [
|
|
4701
4695
|
j(n.$slots, "description", {}, () => [
|
|
4702
4696
|
Y(O(e.description), 1)
|
|
4703
4697
|
], !0)
|
|
4704
4698
|
])) : P("", !0)
|
|
4705
4699
|
]),
|
|
4706
|
-
t.extra ? (m(), T("div",
|
|
4700
|
+
t.extra ? (m(), T("div", gs, [
|
|
4707
4701
|
j(n.$slots, "extra", {}, void 0, !0)
|
|
4708
4702
|
])) : P("", !0)
|
|
4709
4703
|
]),
|
|
4710
|
-
|
|
4704
|
+
L("div", ys, [
|
|
4711
4705
|
j(n.$slots, "default", {}, void 0, !0)
|
|
4712
4706
|
])
|
|
4713
4707
|
], 2));
|
|
4714
4708
|
}
|
|
4715
|
-
}),
|
|
4709
|
+
}), lc = /* @__PURE__ */ de(hs, [["__scopeId", "data-v-8e48a559"]]), vs = {
|
|
4716
4710
|
class: "kong-ui-public-entity-link",
|
|
4717
4711
|
"data-testid": "entity-link-parent"
|
|
4718
|
-
},
|
|
4712
|
+
}, bs = {
|
|
4719
4713
|
key: 0,
|
|
4720
4714
|
class: "deleted-entity"
|
|
4721
|
-
},
|
|
4715
|
+
}, ks = { key: 1 }, Cs = ["onClick"], xs = /* @__PURE__ */ Z({
|
|
4722
4716
|
__name: "EntityLink",
|
|
4723
4717
|
props: {
|
|
4724
4718
|
entityLinkData: {
|
|
@@ -4755,8 +4749,8 @@ const os = ["aria-labelledby"], ls = { class: "form-section-wrapper" }, ss = {
|
|
|
4755
4749
|
};
|
|
4756
4750
|
return (u, v) => {
|
|
4757
4751
|
const f = U("KTooltip"), y = U("KExternalLink"), g = U("KClipboardProvider");
|
|
4758
|
-
return m(), T("div",
|
|
4759
|
-
l.value ? (m(), T("div",
|
|
4752
|
+
return m(), T("div", vs, [
|
|
4753
|
+
l.value ? (m(), T("div", bs, O(c.value), 1)) : s.value ? s.value ? (m(), K(y, {
|
|
4760
4754
|
key: 2,
|
|
4761
4755
|
class: "entity-link",
|
|
4762
4756
|
"hide-icon": !e.newWindow,
|
|
@@ -4768,7 +4762,7 @@ const os = ["aria-labelledby"], ls = { class: "form-section-wrapper" }, ss = {
|
|
|
4768
4762
|
text: x(i) && e.entityLinkData.label || ""
|
|
4769
4763
|
}, {
|
|
4770
4764
|
default: w(() => [
|
|
4771
|
-
|
|
4765
|
+
L("span", {
|
|
4772
4766
|
ref_key: "textContent",
|
|
4773
4767
|
ref: n,
|
|
4774
4768
|
class: "entity-link-label"
|
|
@@ -4778,7 +4772,7 @@ const os = ["aria-labelledby"], ls = { class: "form-section-wrapper" }, ss = {
|
|
|
4778
4772
|
}, 8, ["text"])
|
|
4779
4773
|
]),
|
|
4780
4774
|
_: 1
|
|
4781
|
-
}, 8, ["hide-icon", "href", "target"])) : P("", !0) : (m(), T("div",
|
|
4775
|
+
}, 8, ["hide-icon", "href", "target"])) : P("", !0) : (m(), T("div", ks, O(" – "))),
|
|
4782
4776
|
s.value && e.allowCopy ? (m(), K(f, {
|
|
4783
4777
|
key: a.value,
|
|
4784
4778
|
class: "copy-uuid-tooltip",
|
|
@@ -4789,17 +4783,17 @@ const os = ["aria-labelledby"], ls = { class: "form-section-wrapper" }, ss = {
|
|
|
4789
4783
|
default: w(() => [
|
|
4790
4784
|
D(g, null, {
|
|
4791
4785
|
default: w(({ copyToClipboard: p }) => [
|
|
4792
|
-
|
|
4786
|
+
L("span", {
|
|
4793
4787
|
class: "entity-link-copy-id",
|
|
4794
4788
|
onClick: je((b) => d(p), ["stop"])
|
|
4795
4789
|
}, [
|
|
4796
|
-
D(x(
|
|
4790
|
+
D(x(Ti), {
|
|
4797
4791
|
class: "copy-icon",
|
|
4798
|
-
color: x(
|
|
4792
|
+
color: x(_r),
|
|
4799
4793
|
"data-testid": "copy-id",
|
|
4800
|
-
size: x(
|
|
4794
|
+
size: x(Sr)
|
|
4801
4795
|
}, null, 8, ["color", "size"])
|
|
4802
|
-
], 8,
|
|
4796
|
+
], 8, Cs)
|
|
4803
4797
|
]),
|
|
4804
4798
|
_: 1
|
|
4805
4799
|
})
|
|
@@ -4809,40 +4803,40 @@ const os = ["aria-labelledby"], ls = { class: "form-section-wrapper" }, ss = {
|
|
|
4809
4803
|
]);
|
|
4810
4804
|
};
|
|
4811
4805
|
}
|
|
4812
|
-
}),
|
|
4806
|
+
}), sc = /* @__PURE__ */ de(xs, [["__scopeId", "data-v-a18d7efa"]]), As = { class: "kong-ui-public-entity-empty-state" }, _s = { class: "entity-empty-state-content" }, ws = {
|
|
4813
4807
|
key: 0,
|
|
4814
4808
|
class: "empty-state-image"
|
|
4815
|
-
},
|
|
4809
|
+
}, Ss = {
|
|
4816
4810
|
key: 1,
|
|
4817
4811
|
class: "entity-empty-state-title"
|
|
4818
|
-
},
|
|
4812
|
+
}, $s = {
|
|
4819
4813
|
key: 2,
|
|
4820
4814
|
class: "entity-empty-state-description"
|
|
4821
|
-
},
|
|
4815
|
+
}, Ts = {
|
|
4822
4816
|
key: 3,
|
|
4823
4817
|
class: "entity-empty-state-pricing"
|
|
4824
|
-
},
|
|
4818
|
+
}, Es = {
|
|
4825
4819
|
key: 0,
|
|
4826
4820
|
class: "entity-empty-state-message"
|
|
4827
|
-
},
|
|
4821
|
+
}, Is = {
|
|
4828
4822
|
key: 1,
|
|
4829
4823
|
class: "entity-empty-state-action"
|
|
4830
|
-
},
|
|
4824
|
+
}, Fs = {
|
|
4831
4825
|
key: 2,
|
|
4832
4826
|
class: "entity-empty-state-card-container"
|
|
4833
|
-
},
|
|
4827
|
+
}, Os = {
|
|
4834
4828
|
key: 0,
|
|
4835
4829
|
class: "feature-icon"
|
|
4836
|
-
},
|
|
4830
|
+
}, Bs = { class: "card-header" }, Ls = ["title"], Rs = {
|
|
4837
4831
|
key: 3,
|
|
4838
4832
|
class: "entity-empty-state-bottom-container"
|
|
4839
|
-
},
|
|
4833
|
+
}, Ks = /* @__PURE__ */ Z({
|
|
4840
4834
|
__name: "EntityEmptyState",
|
|
4841
4835
|
props: {
|
|
4842
4836
|
appearance: {
|
|
4843
4837
|
type: String,
|
|
4844
4838
|
default: () => "primary",
|
|
4845
|
-
validator: (e) =>
|
|
4839
|
+
validator: (e) => wt.includes(e)
|
|
4846
4840
|
},
|
|
4847
4841
|
title: {
|
|
4848
4842
|
type: String,
|
|
@@ -4877,19 +4871,19 @@ const os = ["aria-labelledby"], ls = { class: "form-section-wrapper" }, ss = {
|
|
|
4877
4871
|
},
|
|
4878
4872
|
emits: ["click:create", "click:learn-more"],
|
|
4879
4873
|
setup(e) {
|
|
4880
|
-
const t = e, { i18n: { t: n } } = z.useI18n(), i = N(!1), r = _(() => i.value && !!t.actionButtonText), o = _(() =>
|
|
4881
|
-
return
|
|
4874
|
+
const t = e, { i18n: { t: n } } = z.useI18n(), i = N(!1), r = _(() => i.value && !!t.actionButtonText), o = _(() => wt.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
|
|
4875
|
+
return dt(async () => {
|
|
4882
4876
|
i.value = await t.canCreate();
|
|
4883
|
-
}),
|
|
4877
|
+
}), ut(() => ui(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
4884
4878
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) => {
|
|
4885
4879
|
const s = U("KCard");
|
|
4886
|
-
return m(), T("div",
|
|
4887
|
-
|
|
4888
|
-
a.$slots.image ? (m(), T("div",
|
|
4880
|
+
return m(), T("div", As, [
|
|
4881
|
+
L("div", _s, [
|
|
4882
|
+
a.$slots.image ? (m(), T("div", ws, [
|
|
4889
4883
|
j(a.$slots, "image", {}, void 0, !0)
|
|
4890
4884
|
])) : P("", !0),
|
|
4891
|
-
e.title || a.$slots.title ? (m(), T("div",
|
|
4892
|
-
|
|
4885
|
+
e.title || a.$slots.title ? (m(), T("div", Ss, [
|
|
4886
|
+
L("h1", {
|
|
4893
4887
|
class: pe(o.value)
|
|
4894
4888
|
}, [
|
|
4895
4889
|
j(a.$slots, "title", {}, () => [
|
|
@@ -4897,14 +4891,14 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4897
4891
|
], !0)
|
|
4898
4892
|
], 2)
|
|
4899
4893
|
])) : P("", !0),
|
|
4900
|
-
e.description || a.$slots.default ? (m(), T("div",
|
|
4894
|
+
e.description || a.$slots.default ? (m(), T("div", $s, [
|
|
4901
4895
|
j(a.$slots, "default", {}, () => [
|
|
4902
|
-
|
|
4896
|
+
L("p", null, O(e.description), 1)
|
|
4903
4897
|
], !0)
|
|
4904
4898
|
])) : P("", !0),
|
|
4905
|
-
e.pricing || a.$slots.pricing ? (m(), T("div",
|
|
4906
|
-
|
|
4907
|
-
|
|
4899
|
+
e.pricing || a.$slots.pricing ? (m(), T("div", Ts, [
|
|
4900
|
+
L("p", null, [
|
|
4901
|
+
L("b", null, O(x(n)("emptyState.pricingTitle")), 1),
|
|
4908
4902
|
l[2] || (l[2] = Y()),
|
|
4909
4903
|
j(a.$slots, "pricing", {}, () => [
|
|
4910
4904
|
Y(O(e.pricing), 1)
|
|
@@ -4912,12 +4906,12 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4912
4906
|
])
|
|
4913
4907
|
])) : P("", !0)
|
|
4914
4908
|
]),
|
|
4915
|
-
a.$slots.message ? (m(), T("div",
|
|
4909
|
+
a.$slots.message ? (m(), T("div", Es, [
|
|
4916
4910
|
j(a.$slots, "message", {}, void 0, !0)
|
|
4917
4911
|
])) : P("", !0),
|
|
4918
|
-
r.value || e.learnMore || a.$slots.actions ? (m(), T("div",
|
|
4912
|
+
r.value || e.learnMore || a.$slots.actions ? (m(), T("div", Is, [
|
|
4919
4913
|
j(a.$slots, "actions", {}, () => [
|
|
4920
|
-
r.value ? (m(), K(x(
|
|
4914
|
+
r.value ? (m(), K(x(xt), {
|
|
4921
4915
|
key: 0,
|
|
4922
4916
|
appearance: "primary",
|
|
4923
4917
|
"data-testid": "entity-create-button",
|
|
@@ -4925,12 +4919,12 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4925
4919
|
onClick: l[0] || (l[0] = (c) => a.$emit("click:create"))
|
|
4926
4920
|
}, {
|
|
4927
4921
|
default: w(() => [
|
|
4928
|
-
D(x(
|
|
4922
|
+
D(x(tn)),
|
|
4929
4923
|
Y(" " + O(e.actionButtonText), 1)
|
|
4930
4924
|
]),
|
|
4931
4925
|
_: 1
|
|
4932
4926
|
}, 8, ["size"])) : P("", !0),
|
|
4933
|
-
e.learnMore ? (m(), K(x(
|
|
4927
|
+
e.learnMore ? (m(), K(x(xt), {
|
|
4934
4928
|
key: 1,
|
|
4935
4929
|
appearance: "secondary",
|
|
4936
4930
|
"data-testid": "entity-learn-more-button",
|
|
@@ -4938,39 +4932,39 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4938
4932
|
onClick: l[1] || (l[1] = (c) => a.$emit("click:learn-more"))
|
|
4939
4933
|
}, {
|
|
4940
4934
|
default: w(() => [
|
|
4941
|
-
D(x(
|
|
4935
|
+
D(x(en), { decorative: "" }),
|
|
4942
4936
|
Y(" " + O(x(n)("emptyState.learnMore")), 1)
|
|
4943
4937
|
]),
|
|
4944
4938
|
_: 1
|
|
4945
4939
|
}, 8, ["size"])) : P("", !0)
|
|
4946
4940
|
], !0)
|
|
4947
4941
|
])) : P("", !0),
|
|
4948
|
-
e.features.length ? (m(), T("div",
|
|
4942
|
+
e.features.length ? (m(), T("div", Fs, [
|
|
4949
4943
|
(m(!0), T(ge, null, ye(e.features, (c, d) => (m(), K(s, {
|
|
4950
4944
|
key: `feature-${d}-card`,
|
|
4951
4945
|
class: "entity-empty-state-card"
|
|
4952
4946
|
}, {
|
|
4953
4947
|
title: w(() => [
|
|
4954
|
-
a.$slots[`feature-${d}-icon`] ? (m(), T("div",
|
|
4948
|
+
a.$slots[`feature-${d}-icon`] ? (m(), T("div", Os, [
|
|
4955
4949
|
j(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
|
|
4956
4950
|
])) : P("", !0),
|
|
4957
|
-
|
|
4951
|
+
L("div", Bs, O(c.title), 1)
|
|
4958
4952
|
]),
|
|
4959
4953
|
default: w(() => [
|
|
4960
|
-
|
|
4954
|
+
L("div", {
|
|
4961
4955
|
title: c.description
|
|
4962
|
-
}, O(c.description), 9,
|
|
4956
|
+
}, O(c.description), 9, Ls)
|
|
4963
4957
|
]),
|
|
4964
4958
|
_: 2
|
|
4965
4959
|
}, 1024))), 128))
|
|
4966
4960
|
])) : P("", !0),
|
|
4967
|
-
a.$slots.bottom ? (m(), T("div",
|
|
4961
|
+
a.$slots.bottom ? (m(), T("div", Rs, [
|
|
4968
4962
|
j(a.$slots, "bottom", {}, void 0, !0)
|
|
4969
4963
|
])) : P("", !0)
|
|
4970
4964
|
]);
|
|
4971
4965
|
};
|
|
4972
4966
|
}
|
|
4973
|
-
}),
|
|
4967
|
+
}), cc = /* @__PURE__ */ de(Ks, [["__scopeId", "data-v-0b2e9081"]]), Ns = { key: 1 }, uc = /* @__PURE__ */ Z({
|
|
4974
4968
|
__name: "TableTags",
|
|
4975
4969
|
props: {
|
|
4976
4970
|
/** The tags to display in the table */
|
|
@@ -4998,9 +4992,9 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
4998
4992
|
});
|
|
4999
4993
|
return (i, r) => {
|
|
5000
4994
|
var o;
|
|
5001
|
-
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (m(), K(x(
|
|
4995
|
+
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (m(), K(x(gi), { key: 0 }, {
|
|
5002
4996
|
default: w(() => [
|
|
5003
|
-
(m(!0), T(ge, null, ye(n.value, (a) => (m(), K(x(
|
|
4997
|
+
(m(!0), T(ge, null, ye(n.value, (a) => (m(), K(x(yi), {
|
|
5004
4998
|
key: a,
|
|
5005
4999
|
"max-width": e.tagMaxWidth,
|
|
5006
5000
|
onClick: r[0] || (r[0] = je(() => {
|
|
@@ -5013,58 +5007,58 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
|
|
|
5013
5007
|
}, 1032, ["max-width"]))), 128))
|
|
5014
5008
|
]),
|
|
5015
5009
|
_: 1
|
|
5016
|
-
})) : (m(), T("span",
|
|
5010
|
+
})) : (m(), T("span", Ns, "-"));
|
|
5017
5011
|
};
|
|
5018
5012
|
}
|
|
5019
|
-
}), { useAxios:
|
|
5013
|
+
}), { useAxios: dc, useDeleteUrlBuilder: fc, useErrors: pc, useExternalLinkCreator: mc, useFetchUrlBuilder: gc, useFetcher: yc, useFetcherCacheKey: hc, useDebouncedFilter: vc, useStringHelpers: bc, useHelpers: kc, useGatewayFeatureSupported: Cc, useTruncationDetector: xc, useValidators: Ac, useSchemaProvider: _c, useTableState: wc } = z;
|
|
5020
5014
|
export {
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5015
|
+
wt as Appearances,
|
|
5016
|
+
Ri as CONFIG_CARD_FORMATS,
|
|
5017
|
+
vl as ConfigCardDisplay,
|
|
5018
|
+
un as ConfigCardItem,
|
|
5025
5019
|
ce as ConfigurationSchemaSection,
|
|
5026
5020
|
J as ConfigurationSchemaType,
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5021
|
+
ii as DeckCodeBlock,
|
|
5022
|
+
Xs as EntityBaseConfigCard,
|
|
5023
|
+
ec as EntityBaseForm,
|
|
5024
|
+
Fi as EntityBaseFormType,
|
|
5025
|
+
tc as EntityBaseTable,
|
|
5026
|
+
nc as EntityDeleteModal,
|
|
5027
|
+
cc as EntityEmptyState,
|
|
5028
|
+
ic as EntityFilter,
|
|
5029
|
+
lc as EntityFormBlock,
|
|
5030
|
+
oc as EntityFormSection,
|
|
5031
|
+
sc as EntityLink,
|
|
5032
|
+
rc as EntityToggleModal,
|
|
5033
|
+
Ii as EntityTypes,
|
|
5034
|
+
Bi as EventGatewayTypesArray,
|
|
5035
|
+
wl as FEATURE_FLAGS,
|
|
5042
5036
|
ke as FetcherStatus,
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5037
|
+
Li as IdentityTypesArray,
|
|
5038
|
+
br as InternalLinkItem,
|
|
5039
|
+
dn as JsonCodeBlock,
|
|
5040
|
+
ac as PermissionsWrapper,
|
|
5041
|
+
Oi as SupportedEntityDeckArray,
|
|
5048
5042
|
ve as SupportedEntityType,
|
|
5049
5043
|
Ge as SupportedEntityTypesArray,
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5044
|
+
uc as TableTags,
|
|
5045
|
+
ni as TerraformCodeBlock,
|
|
5046
|
+
ti as YamlCodeBlock,
|
|
5053
5047
|
Be as highlightCodeBlock,
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5048
|
+
nn as isSupportedDeckEntityType,
|
|
5049
|
+
dc as useAxios,
|
|
5050
|
+
vc as useDebouncedFilter,
|
|
5051
|
+
fc as useDeleteUrlBuilder,
|
|
5052
|
+
pc as useErrors,
|
|
5053
|
+
mc as useExternalLinkCreator,
|
|
5054
|
+
gc as useFetchUrlBuilder,
|
|
5055
|
+
yc as useFetcher,
|
|
5056
|
+
hc as useFetcherCacheKey,
|
|
5057
|
+
Cc as useGatewayFeatureSupported,
|
|
5058
|
+
kc as useHelpers,
|
|
5059
|
+
_c as useSchemaProvider,
|
|
5060
|
+
bc as useStringHelpers,
|
|
5061
|
+
wc as useTableState,
|
|
5062
|
+
xc as useTruncationDetector,
|
|
5063
|
+
Ac as useValidators
|
|
5070
5064
|
};
|