@kong-ui-public/entities-certificates 3.14.14 → 3.14.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref as ve, defineComponent as br, computed as ie, watch as hs, onBeforeMount as Xl, resolveComponent as be, openBlock as D, createElementBlock as se, createVNode as k, unref as f, createSlots as Oi, withCtx as v, createTextVNode as
|
|
1
|
+
import { ref as ve, defineComponent as br, computed as ie, watch as hs, onBeforeMount as Xl, resolveComponent as be, openBlock as D, createElementBlock as se, createVNode as k, unref as f, createSlots as Oi, withCtx as v, createTextVNode as ae, toDisplayString as $, createBlock as Ce, createCommentVNode as Pe, Teleport as Ql, createElementVNode as xe, Fragment as ot, renderList as _r, reactive as ps } from "vue";
|
|
2
2
|
import { useRouter as Xs } from "vue-router";
|
|
3
3
|
import { BookIcon as ys, AddIcon as sr, ServiceDocumentIcon as eu, CloseIcon as vd, AzureIcon as bd, KongIcon as wd } from "@kong/icons";
|
|
4
4
|
import { createI18n as Ad, i18nTComponent as Sd } from "@kong-ui-public/i18n";
|
|
5
|
-
import { useAxios as Qs, useTableState as tu, useFetcher as ru, useDeleteUrlBuilder as iu, FetcherStatus as su, EntityBaseTable as nu, PermissionsWrapper as
|
|
5
|
+
import { useAxios as Qs, useTableState as tu, useFetcher as ru, useDeleteUrlBuilder as iu, FetcherStatus as su, EntityBaseTable as nu, PermissionsWrapper as bt, TableTags as ou, EntityFilter as au, EntityDeleteModal as cu, EntityTypes as lu, useErrors as uu, EntityBaseFormType as Wt, EntityBaseForm as fu, SupportedEntityType as en, EntityFormBlock as Sc, EntityFormSection as gs, useStringHelpers as du, useHelpers as hu, ConfigurationSchemaSection as We, ConfigurationSchemaType as Rt, EntityBaseConfigCard as pu, ConfigCardItem as yu } from "@kong-ui-public/entities-shared";
|
|
6
6
|
import { VaultSecretPickerProvider as kc, VaultSecretPicker as kd, VaultProviders as Cd } from "@kong-ui-public/entities-vaults";
|
|
7
7
|
import "@kong-ui-public/entities-vaults/dist/style.css";
|
|
8
8
|
var Cc = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -72,7 +72,7 @@ var xc;
|
|
|
72
72
|
throw new TypeError();
|
|
73
73
|
if (!J(m))
|
|
74
74
|
throw new TypeError();
|
|
75
|
-
return
|
|
75
|
+
return yt(p, m);
|
|
76
76
|
} else {
|
|
77
77
|
if (!De(p))
|
|
78
78
|
throw new TypeError();
|
|
@@ -137,7 +137,7 @@ var xc;
|
|
|
137
137
|
return S(m) || (m = X(m)), Ie(p, m);
|
|
138
138
|
}
|
|
139
139
|
e("getOwnMetadataKeys", Ue);
|
|
140
|
-
function
|
|
140
|
+
function pt(p, m, w) {
|
|
141
141
|
if (!fe(m))
|
|
142
142
|
throw new TypeError();
|
|
143
143
|
if (S(w) || (w = X(w)), !fe(m))
|
|
@@ -151,8 +151,8 @@ var xc;
|
|
|
151
151
|
);
|
|
152
152
|
return S(B) ? !1 : B.OrdinaryDeleteMetadata(p, m, w);
|
|
153
153
|
}
|
|
154
|
-
e("deleteMetadata",
|
|
155
|
-
function
|
|
154
|
+
e("deleteMetadata", pt);
|
|
155
|
+
function yt(p, m) {
|
|
156
156
|
for (var w = p.length - 1; w >= 0; --w) {
|
|
157
157
|
var B = p[w], F = B(m);
|
|
158
158
|
if (!S(F) && !Ne(F)) {
|
|
@@ -245,7 +245,7 @@ var xc;
|
|
|
245
245
|
);
|
|
246
246
|
return w ? w.OrdinaryOwnMetadataKeys(p, m) : [];
|
|
247
247
|
}
|
|
248
|
-
function
|
|
248
|
+
function Xe(p) {
|
|
249
249
|
if (p === null)
|
|
250
250
|
return 1;
|
|
251
251
|
switch (typeof p) {
|
|
@@ -271,14 +271,14 @@ var xc;
|
|
|
271
271
|
function Ne(p) {
|
|
272
272
|
return p === null;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function st(p) {
|
|
275
275
|
return typeof p == "symbol";
|
|
276
276
|
}
|
|
277
277
|
function fe(p) {
|
|
278
278
|
return typeof p == "object" ? p !== null : typeof p == "function";
|
|
279
279
|
}
|
|
280
280
|
function G(p, m) {
|
|
281
|
-
switch (
|
|
281
|
+
switch (Xe(p)) {
|
|
282
282
|
case 0:
|
|
283
283
|
return p;
|
|
284
284
|
case 1:
|
|
@@ -327,7 +327,7 @@ var xc;
|
|
|
327
327
|
}
|
|
328
328
|
function X(p) {
|
|
329
329
|
var m = G(p);
|
|
330
|
-
return
|
|
330
|
+
return st(m) ? m : q(m);
|
|
331
331
|
}
|
|
332
332
|
function De(p) {
|
|
333
333
|
return Array.isArray ? Array.isArray(p) : p instanceof Object ? p instanceof Array : Object.prototype.toString.call(p) === "[object Array]";
|
|
@@ -339,7 +339,7 @@ var xc;
|
|
|
339
339
|
return typeof p == "function";
|
|
340
340
|
}
|
|
341
341
|
function Ke(p) {
|
|
342
|
-
switch (
|
|
342
|
+
switch (Xe(p)) {
|
|
343
343
|
case 3:
|
|
344
344
|
return !0;
|
|
345
345
|
case 4:
|
|
@@ -431,9 +431,9 @@ var xc;
|
|
|
431
431
|
var Be = bc(we);
|
|
432
432
|
if (!Be)
|
|
433
433
|
return;
|
|
434
|
-
var
|
|
435
|
-
if (
|
|
436
|
-
return wc(we),
|
|
434
|
+
var gt = vc(Be);
|
|
435
|
+
if (gt.isProviderFor(U, te))
|
|
436
|
+
return wc(we), gt;
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
}
|
|
@@ -456,8 +456,8 @@ var xc;
|
|
|
456
456
|
if (Be !== we) {
|
|
457
457
|
if (!S(Be))
|
|
458
458
|
return !1;
|
|
459
|
-
var
|
|
460
|
-
S(
|
|
459
|
+
var gt = F.get(U);
|
|
460
|
+
S(gt) && (gt = new K(), F.set(U, gt)), gt.set(te, we);
|
|
461
461
|
}
|
|
462
462
|
return !0;
|
|
463
463
|
}
|
|
@@ -537,13 +537,13 @@ var xc;
|
|
|
537
537
|
);
|
|
538
538
|
if (S(te))
|
|
539
539
|
return U;
|
|
540
|
-
for (var we = te.keys(), Be = is(we),
|
|
540
|
+
for (var we = te.keys(), Be = is(we), gt = 0; ; ) {
|
|
541
541
|
var Ac = bc(Be);
|
|
542
542
|
if (!Ac)
|
|
543
|
-
return U.length =
|
|
543
|
+
return U.length = gt, U;
|
|
544
544
|
var gd = vc(Ac);
|
|
545
545
|
try {
|
|
546
|
-
U[
|
|
546
|
+
U[gt] = gd;
|
|
547
547
|
} catch (md) {
|
|
548
548
|
try {
|
|
549
549
|
wc(Be);
|
|
@@ -551,7 +551,7 @@ var xc;
|
|
|
551
551
|
throw md;
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
|
|
554
|
+
gt++;
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
557
|
function O(j, R, U) {
|
|
@@ -1201,7 +1201,7 @@ function _d(r, e) {
|
|
|
1201
1201
|
return !1;
|
|
1202
1202
|
return !0;
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function nt(r, e) {
|
|
1205
1205
|
const t = r.toString(10);
|
|
1206
1206
|
if (e < t.length)
|
|
1207
1207
|
return "";
|
|
@@ -1274,7 +1274,7 @@ class tn {
|
|
|
1274
1274
|
return _a(this.items);
|
|
1275
1275
|
}
|
|
1276
1276
|
}
|
|
1277
|
-
const si = [new Uint8Array([1])], Ec = "0123456789", Zn = "name", Ic = "valueHexView", Td = "isHexOnly", jd = "idBlock", Vd = "tagClass", Rd = "tagNumber", Pd = "isConstructed", Md = "fromBER", Ud = "toBER", Dd = "local",
|
|
1277
|
+
const si = [new Uint8Array([1])], Ec = "0123456789", Zn = "name", Ic = "valueHexView", Td = "isHexOnly", jd = "idBlock", Vd = "tagClass", Rd = "tagNumber", Pd = "isConstructed", Md = "fromBER", Ud = "toBER", Dd = "local", et = "", Ct = new ArrayBuffer(0), rn = new Uint8Array(0), _i = "EndOfContent", vu = "OCTET STRING", bu = "BIT STRING";
|
|
1278
1278
|
function _t(r) {
|
|
1279
1279
|
var e;
|
|
1280
1280
|
return e = class extends r {
|
|
@@ -1319,7 +1319,7 @@ class wr {
|
|
|
1319
1319
|
set valueBeforeDecode(e) {
|
|
1320
1320
|
this.valueBeforeDecodeView = new Uint8Array(e);
|
|
1321
1321
|
}
|
|
1322
|
-
constructor({ blockLength: e = 0, error: t =
|
|
1322
|
+
constructor({ blockLength: e = 0, error: t = et, warnings: i = [], valueBeforeDecode: s = rn } = {}) {
|
|
1323
1323
|
this.blockLength = e, this.error = t, this.warnings = i, this.valueBeforeDecodeView = E.toUint8Array(s);
|
|
1324
1324
|
}
|
|
1325
1325
|
toJSON() {
|
|
@@ -1333,7 +1333,7 @@ class wr {
|
|
|
1333
1333
|
}
|
|
1334
1334
|
}
|
|
1335
1335
|
wr.NAME = "baseBlock";
|
|
1336
|
-
class
|
|
1336
|
+
class Ze extends wr {
|
|
1337
1337
|
fromBER(e, t, i) {
|
|
1338
1338
|
throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'");
|
|
1339
1339
|
}
|
|
@@ -1341,7 +1341,7 @@ class Xe extends wr {
|
|
|
1341
1341
|
throw TypeError("User need to make a specific function in a class which extends 'ValueBlock'");
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
|
-
|
|
1344
|
+
Ze.NAME = "valueBlock";
|
|
1345
1345
|
class wu extends _t(wr) {
|
|
1346
1346
|
constructor({ idBlock: e = {} } = {}) {
|
|
1347
1347
|
var t, i, s, n;
|
|
@@ -1522,8 +1522,8 @@ class Au extends wr {
|
|
|
1522
1522
|
Au.NAME = "lengthBlock";
|
|
1523
1523
|
const T = {};
|
|
1524
1524
|
class Fe extends wr {
|
|
1525
|
-
constructor({ name: e =
|
|
1526
|
-
super(s), this.name = e, this.optional = t, i && (this.primitiveSchema = i), this.idBlock = new wu(s), this.lenBlock = new Au(s), this.valueBlock = n ? new n(s) : new
|
|
1525
|
+
constructor({ name: e = et, optional: t = !1, primitiveSchema: i, ...s } = {}, n) {
|
|
1526
|
+
super(s), this.name = e, this.optional = t, i && (this.primitiveSchema = i), this.idBlock = new wu(s), this.lenBlock = new Au(s), this.valueBlock = n ? new n(s) : new Ze(s);
|
|
1527
1527
|
}
|
|
1528
1528
|
fromBER(e, t, i) {
|
|
1529
1529
|
const s = this.valueBlock.fromBER(e, t, this.lenBlock.isIndefiniteForm ? i : this.lenBlock.length);
|
|
@@ -1585,7 +1585,7 @@ class Ta extends Fe {
|
|
|
1585
1585
|
setValue(e) {
|
|
1586
1586
|
this.valueBlock.value = e;
|
|
1587
1587
|
}
|
|
1588
|
-
constructor({ value: e =
|
|
1588
|
+
constructor({ value: e = et, ...t } = {}, i) {
|
|
1589
1589
|
super(t, i), e && this.fromString(e);
|
|
1590
1590
|
}
|
|
1591
1591
|
fromBER(e, t, i) {
|
|
@@ -1597,7 +1597,7 @@ class Ta extends Fe {
|
|
|
1597
1597
|
}
|
|
1598
1598
|
}
|
|
1599
1599
|
Ta.NAME = "BaseStringBlock";
|
|
1600
|
-
class ku extends _t(
|
|
1600
|
+
class ku extends _t(Ze) {
|
|
1601
1601
|
constructor({ isHexOnly: e = !0, ...t } = {}) {
|
|
1602
1602
|
super(t), this.isHexOnly = e;
|
|
1603
1603
|
}
|
|
@@ -1620,7 +1620,7 @@ function $d(r, e) {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
function Wr(r, e = 0, t = r.length) {
|
|
1622
1622
|
const i = e;
|
|
1623
|
-
let s = new Fe({},
|
|
1623
|
+
let s = new Fe({}, Ze);
|
|
1624
1624
|
const n = new wr();
|
|
1625
1625
|
if (!Lt(n, r, e, t))
|
|
1626
1626
|
return s.error = n.error, {
|
|
@@ -1776,7 +1776,7 @@ function Wr(r, e = 0, t = r.length) {
|
|
|
1776
1776
|
}
|
|
1777
1777
|
function Nr(r) {
|
|
1778
1778
|
if (!r.byteLength) {
|
|
1779
|
-
const e = new Fe({},
|
|
1779
|
+
const e = new Fe({}, Ze);
|
|
1780
1780
|
return e.error = "Input buffer has zero length", {
|
|
1781
1781
|
offset: -1,
|
|
1782
1782
|
result: e
|
|
@@ -1787,7 +1787,7 @@ function Nr(r) {
|
|
|
1787
1787
|
function Hd(r, e) {
|
|
1788
1788
|
return r ? 1 : e;
|
|
1789
1789
|
}
|
|
1790
|
-
class Yt extends
|
|
1790
|
+
class Yt extends Ze {
|
|
1791
1791
|
constructor({ value: e = [], isIndefiniteForm: t = !1, ...i } = {}) {
|
|
1792
1792
|
super(i), this.value = e, this.isIndefiniteForm = t;
|
|
1793
1793
|
}
|
|
@@ -1826,7 +1826,7 @@ class Yt extends Xe {
|
|
|
1826
1826
|
}
|
|
1827
1827
|
Yt.NAME = "ConstructedValueBlock";
|
|
1828
1828
|
var xu;
|
|
1829
|
-
class
|
|
1829
|
+
class Je extends Fe {
|
|
1830
1830
|
constructor(e = {}) {
|
|
1831
1831
|
super(e, Yt), this.idBlock.isConstructed = !0;
|
|
1832
1832
|
}
|
|
@@ -1847,10 +1847,10 @@ ${e.join(`
|
|
|
1847
1847
|
`)}` : `${t} :`;
|
|
1848
1848
|
}
|
|
1849
1849
|
}
|
|
1850
|
-
xu =
|
|
1850
|
+
xu = Je;
|
|
1851
1851
|
T.Constructed = xu;
|
|
1852
|
-
|
|
1853
|
-
class Bu extends
|
|
1852
|
+
Je.NAME = "CONSTRUCTED";
|
|
1853
|
+
class Bu extends Ze {
|
|
1854
1854
|
fromBER(e, t, i) {
|
|
1855
1855
|
return t;
|
|
1856
1856
|
}
|
|
@@ -1871,7 +1871,7 @@ ja.NAME = _i;
|
|
|
1871
1871
|
var Iu;
|
|
1872
1872
|
class cr extends Fe {
|
|
1873
1873
|
constructor(e = {}) {
|
|
1874
|
-
super(e,
|
|
1874
|
+
super(e, Ze), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 5;
|
|
1875
1875
|
}
|
|
1876
1876
|
fromBER(e, t, i) {
|
|
1877
1877
|
return this.lenBlock.length > 0 && this.warnings.push("Non-zero length of value block for Null type"), this.idBlock.error.length || (this.blockLength += this.idBlock.blockLength), this.lenBlock.error.length || (this.blockLength += this.lenBlock.blockLength), this.blockLength += i, t + i > e.byteLength ? (this.error = "End of input reached before message was fully decoded (inconsistent offset and length values)", -1) : t + i;
|
|
@@ -1891,7 +1891,7 @@ class cr extends Fe {
|
|
|
1891
1891
|
Iu = cr;
|
|
1892
1892
|
T.Null = Iu;
|
|
1893
1893
|
cr.NAME = "NULL";
|
|
1894
|
-
class Nu extends _t(
|
|
1894
|
+
class Nu extends _t(Ze) {
|
|
1895
1895
|
get value() {
|
|
1896
1896
|
for (const e of this.valueHexView)
|
|
1897
1897
|
if (e > 0)
|
|
@@ -2004,7 +2004,7 @@ let nr = class extends Fe {
|
|
|
2004
2004
|
}
|
|
2005
2005
|
onAsciiEncoding() {
|
|
2006
2006
|
if (this.valueBlock.isConstructed || this.valueBlock.value && this.valueBlock.value.length)
|
|
2007
|
-
return
|
|
2007
|
+
return Je.prototype.onAsciiEncoding.call(this);
|
|
2008
2008
|
const e = this.constructor.NAME, t = P.ToHex(this.valueBlock.valueHexView);
|
|
2009
2009
|
return `${e} : ${t}`;
|
|
2010
2010
|
}
|
|
@@ -2105,7 +2105,7 @@ let or = class extends Fe {
|
|
|
2105
2105
|
}
|
|
2106
2106
|
onAsciiEncoding() {
|
|
2107
2107
|
if (this.valueBlock.isConstructed || this.valueBlock.value && this.valueBlock.value.length)
|
|
2108
|
-
return
|
|
2108
|
+
return Je.prototype.onAsciiEncoding.call(this);
|
|
2109
2109
|
{
|
|
2110
2110
|
const e = [], t = this.valueBlock.valueHexView;
|
|
2111
2111
|
for (const o of t)
|
|
@@ -2179,7 +2179,7 @@ function Fd(r, e) {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
return n.slice();
|
|
2181
2181
|
}
|
|
2182
|
-
class Ra extends _t(
|
|
2182
|
+
class Ra extends _t(Ze) {
|
|
2183
2183
|
setValueHex() {
|
|
2184
2184
|
this.valueHexView.length >= 4 ? (this.warnings.push("Too big Integer for decoding, hex only"), this.isHexOnly = !0, this._valueDec = 0) : (this.isHexOnly = !1, this.valueHexView.length > 0 && (this._valueDec = mu.call(this)));
|
|
2185
2185
|
}
|
|
@@ -2306,7 +2306,7 @@ class nn extends zr {
|
|
|
2306
2306
|
Ru = nn;
|
|
2307
2307
|
T.Enumerated = Ru;
|
|
2308
2308
|
nn.NAME = "ENUMERATED";
|
|
2309
|
-
class po extends _t(
|
|
2309
|
+
class po extends _t(Ze) {
|
|
2310
2310
|
constructor({ valueDec: e = -1, isFirstSid: t = !1, ...i } = {}) {
|
|
2311
2311
|
super(i), this.valueDec = e, this.isFirstSid = t;
|
|
2312
2312
|
}
|
|
@@ -2376,8 +2376,8 @@ class po extends _t(Xe) {
|
|
|
2376
2376
|
}
|
|
2377
2377
|
}
|
|
2378
2378
|
po.NAME = "sidBlock";
|
|
2379
|
-
class Pu extends
|
|
2380
|
-
constructor({ value: e =
|
|
2379
|
+
class Pu extends Ze {
|
|
2380
|
+
constructor({ value: e = et, ...t } = {}) {
|
|
2381
2381
|
super(t), this.value = [], e && this.fromString(e);
|
|
2382
2382
|
}
|
|
2383
2383
|
fromBER(e, t, i) {
|
|
@@ -2533,8 +2533,8 @@ class yo extends _t(wr) {
|
|
|
2533
2533
|
}
|
|
2534
2534
|
}
|
|
2535
2535
|
yo.NAME = "relativeSidBlock";
|
|
2536
|
-
class Uu extends
|
|
2537
|
-
constructor({ value: e =
|
|
2536
|
+
class Uu extends Ze {
|
|
2537
|
+
constructor({ value: e = et, ...t } = {}) {
|
|
2538
2538
|
super(t), this.value = [], e && this.fromString(e);
|
|
2539
2539
|
}
|
|
2540
2540
|
fromBER(e, t, i) {
|
|
@@ -2615,7 +2615,7 @@ Du = Pa;
|
|
|
2615
2615
|
T.RelativeObjectIdentifier = Du;
|
|
2616
2616
|
Pa.NAME = "RelativeObjectIdentifier";
|
|
2617
2617
|
var $u;
|
|
2618
|
-
class At extends
|
|
2618
|
+
class At extends Je {
|
|
2619
2619
|
constructor(e = {}) {
|
|
2620
2620
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 16;
|
|
2621
2621
|
}
|
|
@@ -2624,7 +2624,7 @@ $u = At;
|
|
|
2624
2624
|
T.Sequence = $u;
|
|
2625
2625
|
At.NAME = "SEQUENCE";
|
|
2626
2626
|
var Hu;
|
|
2627
|
-
let It = class extends
|
|
2627
|
+
let It = class extends Je {
|
|
2628
2628
|
constructor(e = {}) {
|
|
2629
2629
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 17;
|
|
2630
2630
|
}
|
|
@@ -2632,9 +2632,9 @@ let It = class extends Ye {
|
|
|
2632
2632
|
Hu = It;
|
|
2633
2633
|
T.Set = Hu;
|
|
2634
2634
|
It.NAME = "SET";
|
|
2635
|
-
class Lu extends _t(
|
|
2635
|
+
class Lu extends _t(Ze) {
|
|
2636
2636
|
constructor({ ...e } = {}) {
|
|
2637
|
-
super(e), this.isHexOnly = !0, this.value =
|
|
2637
|
+
super(e), this.isHexOnly = !0, this.value = et;
|
|
2638
2638
|
}
|
|
2639
2639
|
toJSON() {
|
|
2640
2640
|
return {
|
|
@@ -2647,7 +2647,7 @@ Lu.NAME = "StringValueBlock";
|
|
|
2647
2647
|
class Fu extends Lu {
|
|
2648
2648
|
}
|
|
2649
2649
|
Fu.NAME = "SimpleStringValueBlock";
|
|
2650
|
-
class
|
|
2650
|
+
class ct extends Ta {
|
|
2651
2651
|
constructor({ ...e } = {}) {
|
|
2652
2652
|
super(e, Fu);
|
|
2653
2653
|
}
|
|
@@ -2661,8 +2661,8 @@ class lt extends Ta {
|
|
|
2661
2661
|
this.valueBlock.value = e;
|
|
2662
2662
|
}
|
|
2663
2663
|
}
|
|
2664
|
-
|
|
2665
|
-
class qu extends
|
|
2664
|
+
ct.NAME = "SIMPLE STRING";
|
|
2665
|
+
class qu extends ct {
|
|
2666
2666
|
fromBuffer(e) {
|
|
2667
2667
|
this.valueBlock.valueHexView = E.toUint8Array(e);
|
|
2668
2668
|
try {
|
|
@@ -2685,7 +2685,7 @@ class Ft extends qu {
|
|
|
2685
2685
|
Ku = Ft;
|
|
2686
2686
|
T.Utf8String = Ku;
|
|
2687
2687
|
Ft.NAME = "UTF8String";
|
|
2688
|
-
class Wu extends
|
|
2688
|
+
class Wu extends ct {
|
|
2689
2689
|
fromBuffer(e) {
|
|
2690
2690
|
this.valueBlock.value = P.ToUtf16String(e), this.valueBlock.valueHexView = E.toUint8Array(e);
|
|
2691
2691
|
}
|
|
@@ -2703,7 +2703,7 @@ class an extends Wu {
|
|
|
2703
2703
|
zu = an;
|
|
2704
2704
|
T.BmpString = zu;
|
|
2705
2705
|
an.NAME = "BMPString";
|
|
2706
|
-
class Gu extends
|
|
2706
|
+
class Gu extends ct {
|
|
2707
2707
|
fromBuffer(e) {
|
|
2708
2708
|
const t = ArrayBuffer.isView(e) ? e.slice().buffer : e.slice(0), i = new Uint8Array(t);
|
|
2709
2709
|
for (let s = 0; s < i.length; s += 4)
|
|
@@ -2734,7 +2734,7 @@ Ju = cn;
|
|
|
2734
2734
|
T.UniversalString = Ju;
|
|
2735
2735
|
cn.NAME = "UniversalString";
|
|
2736
2736
|
var Yu;
|
|
2737
|
-
class ln extends
|
|
2737
|
+
class ln extends ct {
|
|
2738
2738
|
constructor(e = {}) {
|
|
2739
2739
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 18;
|
|
2740
2740
|
}
|
|
@@ -2743,7 +2743,7 @@ Yu = ln;
|
|
|
2743
2743
|
T.NumericString = Yu;
|
|
2744
2744
|
ln.NAME = "NumericString";
|
|
2745
2745
|
var Zu;
|
|
2746
|
-
class un extends
|
|
2746
|
+
class un extends ct {
|
|
2747
2747
|
constructor(e = {}) {
|
|
2748
2748
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 19;
|
|
2749
2749
|
}
|
|
@@ -2752,7 +2752,7 @@ Zu = un;
|
|
|
2752
2752
|
T.PrintableString = Zu;
|
|
2753
2753
|
un.NAME = "PrintableString";
|
|
2754
2754
|
var Xu;
|
|
2755
|
-
class fn extends
|
|
2755
|
+
class fn extends ct {
|
|
2756
2756
|
constructor(e = {}) {
|
|
2757
2757
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 20;
|
|
2758
2758
|
}
|
|
@@ -2761,7 +2761,7 @@ Xu = fn;
|
|
|
2761
2761
|
T.TeletexString = Xu;
|
|
2762
2762
|
fn.NAME = "TeletexString";
|
|
2763
2763
|
var Qu;
|
|
2764
|
-
class dn extends
|
|
2764
|
+
class dn extends ct {
|
|
2765
2765
|
constructor(e = {}) {
|
|
2766
2766
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 21;
|
|
2767
2767
|
}
|
|
@@ -2770,7 +2770,7 @@ Qu = dn;
|
|
|
2770
2770
|
T.VideotexString = Qu;
|
|
2771
2771
|
dn.NAME = "VideotexString";
|
|
2772
2772
|
var ef;
|
|
2773
|
-
class hn extends
|
|
2773
|
+
class hn extends ct {
|
|
2774
2774
|
constructor(e = {}) {
|
|
2775
2775
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 22;
|
|
2776
2776
|
}
|
|
@@ -2779,7 +2779,7 @@ ef = hn;
|
|
|
2779
2779
|
T.IA5String = ef;
|
|
2780
2780
|
hn.NAME = "IA5String";
|
|
2781
2781
|
var tf;
|
|
2782
|
-
class pn extends
|
|
2782
|
+
class pn extends ct {
|
|
2783
2783
|
constructor(e = {}) {
|
|
2784
2784
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 25;
|
|
2785
2785
|
}
|
|
@@ -2788,7 +2788,7 @@ tf = pn;
|
|
|
2788
2788
|
T.GraphicString = tf;
|
|
2789
2789
|
pn.NAME = "GraphicString";
|
|
2790
2790
|
var rf;
|
|
2791
|
-
class Fi extends
|
|
2791
|
+
class Fi extends ct {
|
|
2792
2792
|
constructor(e = {}) {
|
|
2793
2793
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 26;
|
|
2794
2794
|
}
|
|
@@ -2797,7 +2797,7 @@ rf = Fi;
|
|
|
2797
2797
|
T.VisibleString = rf;
|
|
2798
2798
|
Fi.NAME = "VisibleString";
|
|
2799
2799
|
var sf;
|
|
2800
|
-
class yn extends
|
|
2800
|
+
class yn extends ct {
|
|
2801
2801
|
constructor(e = {}) {
|
|
2802
2802
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 27;
|
|
2803
2803
|
}
|
|
@@ -2806,7 +2806,7 @@ sf = yn;
|
|
|
2806
2806
|
T.GeneralString = sf;
|
|
2807
2807
|
yn.NAME = "GeneralString";
|
|
2808
2808
|
var nf;
|
|
2809
|
-
class gn extends
|
|
2809
|
+
class gn extends ct {
|
|
2810
2810
|
constructor(e = {}) {
|
|
2811
2811
|
super(e), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 29;
|
|
2812
2812
|
}
|
|
@@ -2851,7 +2851,7 @@ class qi extends Fi {
|
|
|
2851
2851
|
toString(e = "iso") {
|
|
2852
2852
|
if (e === "iso") {
|
|
2853
2853
|
const t = new Array(7);
|
|
2854
|
-
return t[0] =
|
|
2854
|
+
return t[0] = nt(this.year < 2e3 ? this.year - 1900 : this.year - 2e3, 2), t[1] = nt(this.month, 2), t[2] = nt(this.day, 2), t[3] = nt(this.hour, 2), t[4] = nt(this.minute, 2), t[5] = nt(this.second, 2), t[6] = "Z", t.join("");
|
|
2855
2855
|
}
|
|
2856
2856
|
return super.toString(e);
|
|
2857
2857
|
}
|
|
@@ -2984,7 +2984,7 @@ class mn extends qi {
|
|
|
2984
2984
|
toString(e = "iso") {
|
|
2985
2985
|
if (e === "iso") {
|
|
2986
2986
|
const t = [];
|
|
2987
|
-
return t.push(
|
|
2987
|
+
return t.push(nt(this.year, 4)), t.push(nt(this.month, 2)), t.push(nt(this.day, 2)), t.push(nt(this.hour, 2)), t.push(nt(this.minute, 2)), t.push(nt(this.second, 2)), this.millisecond !== 0 && (t.push("."), t.push(nt(this.millisecond, 3))), t.push("Z"), t.join("");
|
|
2988
2988
|
}
|
|
2989
2989
|
return super.toString(e);
|
|
2990
2990
|
}
|
|
@@ -3044,7 +3044,7 @@ df = Ha;
|
|
|
3044
3044
|
T.TIME = df;
|
|
3045
3045
|
Ha.NAME = "TIME";
|
|
3046
3046
|
class lr {
|
|
3047
|
-
constructor({ name: e =
|
|
3047
|
+
constructor({ name: e = et, optional: t = !1 } = {}) {
|
|
3048
3048
|
this.name = e, this.optional = t;
|
|
3049
3049
|
}
|
|
3050
3050
|
}
|
|
@@ -3197,7 +3197,7 @@ function zt(r, e, t) {
|
|
|
3197
3197
|
result: r
|
|
3198
3198
|
};
|
|
3199
3199
|
}
|
|
3200
|
-
if (t.name && (t.name = t.name.replace(/^\s+|\s+$/g,
|
|
3200
|
+
if (t.name && (t.name = t.name.replace(/^\s+|\s+$/g, et), t.name && (r[t.name] = e)), t instanceof T.Constructed) {
|
|
3201
3201
|
let n = 0, o = {
|
|
3202
3202
|
verified: !1,
|
|
3203
3203
|
result: { error: "Unknown error" }
|
|
@@ -3214,7 +3214,7 @@ function zt(r, e, t) {
|
|
|
3214
3214
|
return u ? {
|
|
3215
3215
|
verified: !0,
|
|
3216
3216
|
result: r
|
|
3217
|
-
} : (t.name && (t.name = t.name.replace(/^\s+|\s+$/g,
|
|
3217
|
+
} : (t.name && (t.name = t.name.replace(/^\s+|\s+$/g, et), t.name && delete r[t.name]), r.error = "Inconsistent object length", {
|
|
3218
3218
|
verified: !1,
|
|
3219
3219
|
result: r
|
|
3220
3220
|
});
|
|
@@ -3226,14 +3226,14 @@ function zt(r, e, t) {
|
|
|
3226
3226
|
verified: !1,
|
|
3227
3227
|
result: r
|
|
3228
3228
|
};
|
|
3229
|
-
return r.error = "Inconsistent length between ASN.1 data and schema", t.name && (t.name = t.name.replace(/^\s+|\s+$/g,
|
|
3229
|
+
return r.error = "Inconsistent length between ASN.1 data and schema", t.name && (t.name = t.name.replace(/^\s+|\s+$/g, et), t.name && (delete r[t.name], h.name = t.name)), h;
|
|
3230
3230
|
}
|
|
3231
3231
|
} else if (t.valueBlock.value[0] instanceof vs) {
|
|
3232
3232
|
if (o = zt(r, e.valueBlock.value[u], t.valueBlock.value[0].value), o.verified === !1)
|
|
3233
3233
|
if (t.valueBlock.value[0].optional)
|
|
3234
3234
|
n++;
|
|
3235
3235
|
else
|
|
3236
|
-
return t.name && (t.name = t.name.replace(/^\s+|\s+$/g,
|
|
3236
|
+
return t.name && (t.name = t.name.replace(/^\s+|\s+$/g, et), t.name && delete r[t.name]), o;
|
|
3237
3237
|
if (Zn in t.valueBlock.value[0] && t.valueBlock.value[0].name.length > 0) {
|
|
3238
3238
|
let h = {};
|
|
3239
3239
|
Dd in t.valueBlock.value[0] && t.valueBlock.value[0].local ? h = e : h = r, typeof h[t.valueBlock.value[0].name] > "u" && (h[t.valueBlock.value[0].name] = []), h[t.valueBlock.value[0].name].push(e.valueBlock.value[u]);
|
|
@@ -3242,13 +3242,13 @@ function zt(r, e, t) {
|
|
|
3242
3242
|
if (t.valueBlock.value[u].optional)
|
|
3243
3243
|
n++;
|
|
3244
3244
|
else
|
|
3245
|
-
return t.name && (t.name = t.name.replace(/^\s+|\s+$/g,
|
|
3245
|
+
return t.name && (t.name = t.name.replace(/^\s+|\s+$/g, et), t.name && delete r[t.name]), o;
|
|
3246
3246
|
if (o.verified === !1) {
|
|
3247
3247
|
const u = {
|
|
3248
3248
|
verified: !1,
|
|
3249
3249
|
result: r
|
|
3250
3250
|
};
|
|
3251
|
-
return t.name && (t.name = t.name.replace(/^\s+|\s+$/g,
|
|
3251
|
+
return t.name && (t.name = t.name.replace(/^\s+|\s+$/g, et), t.name && (delete r[t.name], u.name = t.name)), u;
|
|
3252
3252
|
}
|
|
3253
3253
|
return {
|
|
3254
3254
|
verified: !0,
|
|
@@ -3262,7 +3262,7 @@ function zt(r, e, t) {
|
|
|
3262
3262
|
verified: !1,
|
|
3263
3263
|
result: n.result
|
|
3264
3264
|
};
|
|
3265
|
-
return t.name && (t.name = t.name.replace(/^\s+|\s+$/g,
|
|
3265
|
+
return t.name && (t.name = t.name.replace(/^\s+|\s+$/g, et), t.name && (delete r[t.name], o.name = t.name)), o;
|
|
3266
3266
|
}
|
|
3267
3267
|
return zt(r, n.result, t.primitiveSchema);
|
|
3268
3268
|
}
|
|
@@ -3293,7 +3293,7 @@ const hf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3293
3293
|
Boolean: sn,
|
|
3294
3294
|
CharacterString: gn,
|
|
3295
3295
|
Choice: La,
|
|
3296
|
-
Constructed:
|
|
3296
|
+
Constructed: Je,
|
|
3297
3297
|
DATE: Ma,
|
|
3298
3298
|
DateTime: Da,
|
|
3299
3299
|
Duration: $a,
|
|
@@ -3322,7 +3322,7 @@ const hf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3322
3322
|
UTCTime: qi,
|
|
3323
3323
|
UniversalString: cn,
|
|
3324
3324
|
Utf8String: Ft,
|
|
3325
|
-
ValueBlock:
|
|
3325
|
+
ValueBlock: Ze,
|
|
3326
3326
|
VideotexString: dn,
|
|
3327
3327
|
ViewWriter: tn,
|
|
3328
3328
|
VisibleString: Fi,
|
|
@@ -3435,13 +3435,13 @@ const Wd = {
|
|
|
3435
3435
|
fromASN: (r) => new ne(r.getValue()),
|
|
3436
3436
|
toASN: (r) => r.toASN()
|
|
3437
3437
|
};
|
|
3438
|
-
function
|
|
3438
|
+
function dt(r) {
|
|
3439
3439
|
return {
|
|
3440
3440
|
fromASN: (e) => e.valueBlock.value,
|
|
3441
3441
|
toASN: (e) => new r({ value: e })
|
|
3442
3442
|
};
|
|
3443
3443
|
}
|
|
3444
|
-
const pf =
|
|
3444
|
+
const pf = dt(Ft), Qd = dt(an), eh = dt(cn), th = dt(ln), rh = dt(un), ih = dt(fn), sh = dt(dn), nh = dt(hn), oh = dt(pn), ah = dt(Fi), ch = dt(yn), lh = dt(gn), uh = {
|
|
3445
3445
|
fromASN: (r) => r.toDate(),
|
|
3446
3446
|
toASN: (r) => new qi({ valueDate: r })
|
|
3447
3447
|
}, fh = {
|
|
@@ -3567,13 +3567,13 @@ class ph {
|
|
|
3567
3567
|
if (o.context !== null && o.context !== void 0)
|
|
3568
3568
|
if (o.implicit)
|
|
3569
3569
|
if (typeof o.type == "number" || Pt(o.type)) {
|
|
3570
|
-
const g = o.repeated ?
|
|
3570
|
+
const g = o.repeated ? Je : Li;
|
|
3571
3571
|
s.push(new g({ name: l, optional: h, idBlock: { tagClass: 3, tagNumber: o.context } }));
|
|
3572
3572
|
} else {
|
|
3573
3573
|
this.cache(o.type);
|
|
3574
3574
|
const g = !!o.repeated;
|
|
3575
3575
|
let b = g ? u : this.get(o.type, !0).schema;
|
|
3576
|
-
b = "valueBlock" in b ? b.valueBlock.value : b.value, s.push(new
|
|
3576
|
+
b = "valueBlock" in b ? b.valueBlock.value : b.value, s.push(new Je({
|
|
3577
3577
|
name: g ? "" : l,
|
|
3578
3578
|
optional: h,
|
|
3579
3579
|
idBlock: { tagClass: 3, tagNumber: o.context },
|
|
@@ -3581,7 +3581,7 @@ class ph {
|
|
|
3581
3581
|
}));
|
|
3582
3582
|
}
|
|
3583
3583
|
else
|
|
3584
|
-
s.push(new
|
|
3584
|
+
s.push(new Je({
|
|
3585
3585
|
optional: h,
|
|
3586
3586
|
idBlock: { tagClass: 3, tagNumber: o.context },
|
|
3587
3587
|
value: [u]
|
|
@@ -3653,7 +3653,7 @@ class yh {
|
|
|
3653
3653
|
}
|
|
3654
3654
|
}
|
|
3655
3655
|
static handleChoiceTypes(e, t, i, s) {
|
|
3656
|
-
if (e.constructor ===
|
|
3656
|
+
if (e.constructor === Je && t.type === A.Choice && e.idBlock.tagClass === 3)
|
|
3657
3657
|
for (const n in t.items) {
|
|
3658
3658
|
const o = t.items[n];
|
|
3659
3659
|
if (o.context === e.idBlock.tagNumber && o.implicit && typeof o.type == "function" && He.has(o.type)) {
|
|
@@ -3668,8 +3668,8 @@ class yh {
|
|
|
3668
3668
|
}
|
|
3669
3669
|
}
|
|
3670
3670
|
}
|
|
3671
|
-
else if (e.constructor ===
|
|
3672
|
-
const n = new
|
|
3671
|
+
else if (e.constructor === Je && t.type !== A.Choice) {
|
|
3672
|
+
const n = new Je({
|
|
3673
3673
|
idBlock: {
|
|
3674
3674
|
tagClass: 3,
|
|
3675
3675
|
tagNumber: e.idBlock.tagNumber
|
|
@@ -3879,7 +3879,7 @@ class Fa {
|
|
|
3879
3879
|
...g
|
|
3880
3880
|
}));
|
|
3881
3881
|
} else
|
|
3882
|
-
s.push(new
|
|
3882
|
+
s.push(new Je({
|
|
3883
3883
|
optional: l.optional,
|
|
3884
3884
|
idBlock: {
|
|
3885
3885
|
tagClass: 3,
|
|
@@ -3888,7 +3888,7 @@ class Fa {
|
|
|
3888
3888
|
value: h.valueBlock.value
|
|
3889
3889
|
}));
|
|
3890
3890
|
else
|
|
3891
|
-
s.push(new
|
|
3891
|
+
s.push(new Je({
|
|
3892
3892
|
optional: l.optional,
|
|
3893
3893
|
idBlock: {
|
|
3894
3894
|
tagClass: 3,
|
|
@@ -4415,14 +4415,14 @@ Pc = a([
|
|
|
4415
4415
|
], Pc);
|
|
4416
4416
|
var Bo;
|
|
4417
4417
|
const Eo = `${qt}.31`;
|
|
4418
|
-
var
|
|
4418
|
+
var mt;
|
|
4419
4419
|
(function(r) {
|
|
4420
4420
|
r[r.unused = 1] = "unused", r[r.keyCompromise = 2] = "keyCompromise", r[r.cACompromise = 4] = "cACompromise", r[r.affiliationChanged = 8] = "affiliationChanged", r[r.superseded = 16] = "superseded", r[r.cessationOfOperation = 32] = "cessationOfOperation", r[r.certificateHold = 64] = "certificateHold", r[r.privilegeWithdrawn = 128] = "privilegeWithdrawn", r[r.aACompromise = 256] = "aACompromise";
|
|
4421
|
-
})(
|
|
4421
|
+
})(mt || (mt = {}));
|
|
4422
4422
|
class vf extends vn {
|
|
4423
4423
|
toJSON() {
|
|
4424
4424
|
const e = [], t = this.toNumber();
|
|
4425
|
-
return t &
|
|
4425
|
+
return t & mt.aACompromise && e.push("aACompromise"), t & mt.affiliationChanged && e.push("affiliationChanged"), t & mt.cACompromise && e.push("cACompromise"), t & mt.certificateHold && e.push("certificateHold"), t & mt.cessationOfOperation && e.push("cessationOfOperation"), t & mt.keyCompromise && e.push("keyCompromise"), t & mt.privilegeWithdrawn && e.push("privilegeWithdrawn"), t & mt.superseded && e.push("superseded"), t & mt.unused && e.push("unused"), e;
|
|
4426
4426
|
}
|
|
4427
4427
|
toString() {
|
|
4428
4428
|
return `[${this.toJSON().join(", ")}]`;
|
|
@@ -4582,14 +4582,14 @@ Uc = jo = a([
|
|
|
4582
4582
|
C({ type: A.Sequence })
|
|
4583
4583
|
], Uc);
|
|
4584
4584
|
const Af = `${qt}.15`;
|
|
4585
|
-
var
|
|
4585
|
+
var vt;
|
|
4586
4586
|
(function(r) {
|
|
4587
4587
|
r[r.digitalSignature = 1] = "digitalSignature", r[r.nonRepudiation = 2] = "nonRepudiation", r[r.keyEncipherment = 4] = "keyEncipherment", r[r.dataEncipherment = 8] = "dataEncipherment", r[r.keyAgreement = 16] = "keyAgreement", r[r.keyCertSign = 32] = "keyCertSign", r[r.cRLSign = 64] = "cRLSign", r[r.encipherOnly = 128] = "encipherOnly", r[r.decipherOnly = 256] = "decipherOnly";
|
|
4588
|
-
})(
|
|
4588
|
+
})(vt || (vt = {}));
|
|
4589
4589
|
class Xn extends vn {
|
|
4590
4590
|
toJSON() {
|
|
4591
4591
|
const e = this.toNumber(), t = [];
|
|
4592
|
-
return e &
|
|
4592
|
+
return e & vt.cRLSign && t.push("crlSign"), e & vt.dataEncipherment && t.push("dataEncipherment"), e & vt.decipherOnly && t.push("decipherOnly"), e & vt.digitalSignature && t.push("digitalSignature"), e & vt.encipherOnly && t.push("encipherOnly"), e & vt.keyAgreement && t.push("keyAgreement"), e & vt.keyCertSign && t.push("keyCertSign"), e & vt.keyEncipherment && t.push("keyEncipherment"), e & vt.nonRepudiation && t.push("nonRepudiation"), t;
|
|
4593
4593
|
}
|
|
4594
4594
|
toString() {
|
|
4595
4595
|
return `[${this.toJSON().join(", ")}]`;
|
|
@@ -4850,7 +4850,7 @@ var Rr;
|
|
|
4850
4850
|
(function(r) {
|
|
4851
4851
|
r[r.v1 = 0] = "v1", r[r.v2 = 1] = "v2", r[r.v3 = 2] = "v3";
|
|
4852
4852
|
})(Rr || (Rr = {}));
|
|
4853
|
-
class
|
|
4853
|
+
class ht {
|
|
4854
4854
|
constructor(e = {}) {
|
|
4855
4855
|
this.version = Rr.v1, this.serialNumber = new ArrayBuffer(0), this.signature = new _(), this.issuer = new _e(), this.validity = new kn(), this.subject = new _e(), this.subjectPublicKeyInfo = new Et(), Object.assign(this, e);
|
|
4856
4856
|
}
|
|
@@ -4861,28 +4861,28 @@ a([
|
|
|
4861
4861
|
context: 0,
|
|
4862
4862
|
defaultValue: Rr.v1
|
|
4863
4863
|
})
|
|
4864
|
-
],
|
|
4864
|
+
], ht.prototype, "version", void 0);
|
|
4865
4865
|
a([
|
|
4866
4866
|
c({
|
|
4867
4867
|
type: d.Integer,
|
|
4868
4868
|
converter: Ae
|
|
4869
4869
|
})
|
|
4870
|
-
],
|
|
4870
|
+
], ht.prototype, "serialNumber", void 0);
|
|
4871
4871
|
a([
|
|
4872
4872
|
c({ type: _ })
|
|
4873
|
-
],
|
|
4873
|
+
], ht.prototype, "signature", void 0);
|
|
4874
4874
|
a([
|
|
4875
4875
|
c({ type: _e })
|
|
4876
|
-
],
|
|
4876
|
+
], ht.prototype, "issuer", void 0);
|
|
4877
4877
|
a([
|
|
4878
4878
|
c({ type: kn })
|
|
4879
|
-
],
|
|
4879
|
+
], ht.prototype, "validity", void 0);
|
|
4880
4880
|
a([
|
|
4881
4881
|
c({ type: _e })
|
|
4882
|
-
],
|
|
4882
|
+
], ht.prototype, "subject", void 0);
|
|
4883
4883
|
a([
|
|
4884
4884
|
c({ type: Et })
|
|
4885
|
-
],
|
|
4885
|
+
], ht.prototype, "subjectPublicKeyInfo", void 0);
|
|
4886
4886
|
a([
|
|
4887
4887
|
c({
|
|
4888
4888
|
type: d.BitString,
|
|
@@ -4890,20 +4890,20 @@ a([
|
|
|
4890
4890
|
implicit: !0,
|
|
4891
4891
|
optional: !0
|
|
4892
4892
|
})
|
|
4893
|
-
],
|
|
4893
|
+
], ht.prototype, "issuerUniqueID", void 0);
|
|
4894
4894
|
a([
|
|
4895
4895
|
c({ type: d.BitString, context: 2, implicit: !0, optional: !0 })
|
|
4896
|
-
],
|
|
4896
|
+
], ht.prototype, "subjectUniqueID", void 0);
|
|
4897
4897
|
a([
|
|
4898
4898
|
c({ type: fr, context: 3, optional: !0 })
|
|
4899
|
-
],
|
|
4899
|
+
], ht.prototype, "extensions", void 0);
|
|
4900
4900
|
class Pr {
|
|
4901
4901
|
constructor(e = {}) {
|
|
4902
|
-
this.tbsCertificate = new
|
|
4902
|
+
this.tbsCertificate = new ht(), this.signatureAlgorithm = new _(), this.signatureValue = new ArrayBuffer(0), Object.assign(this, e);
|
|
4903
4903
|
}
|
|
4904
4904
|
}
|
|
4905
4905
|
a([
|
|
4906
|
-
c({ type:
|
|
4906
|
+
c({ type: ht, raw: !0 })
|
|
4907
4907
|
], Pr.prototype, "tbsCertificate", void 0);
|
|
4908
4908
|
a([
|
|
4909
4909
|
c({ type: _ })
|
|
@@ -5951,7 +5951,7 @@ a([
|
|
|
5951
5951
|
a([
|
|
5952
5952
|
c({ type: d.Integer, converter: Ae })
|
|
5953
5953
|
], Ms.prototype, "s", void 0);
|
|
5954
|
-
const
|
|
5954
|
+
const rt = "1.2.840.113549.1.1", hr = `${rt}.1`, Oh = `${rt}.7`, _h = `${rt}.9`, Ii = `${rt}.10`, Th = `${rt}.2`, jh = `${rt}.4`, Us = `${rt}.5`, Vh = `${rt}.14`, sa = `${rt}.11`, Ds = `${rt}.12`, $s = `${rt}.13`, jf = `${rt}.15`, Vf = `${rt}.16`, Hs = "1.3.14.3.2.26", Rf = "2.16.840.1.101.3.4.2.4", Ls = "2.16.840.1.101.3.4.2.1", Fs = "2.16.840.1.101.3.4.2.2", qs = "2.16.840.1.101.3.4.2.3", Rh = "2.16.840.1.101.3.4.2.5", Ph = "2.16.840.1.101.3.4.2.6", Mh = "1.2.840.113549.2.2", Uh = "1.2.840.113549.2.5", Pn = `${rt}.8`;
|
|
5955
5955
|
function Te(r) {
|
|
5956
5956
|
return new _({ algorithm: r, parameters: null });
|
|
5957
5957
|
}
|
|
@@ -6131,7 +6131,7 @@ var aa;
|
|
|
6131
6131
|
(function(r) {
|
|
6132
6132
|
r[r.Transient = 0] = "Transient", r[r.Singleton = 1] = "Singleton", r[r.ResolutionScoped = 2] = "ResolutionScoped", r[r.ContainerScoped = 3] = "ContainerScoped";
|
|
6133
6133
|
})(aa || (aa = {}));
|
|
6134
|
-
const
|
|
6134
|
+
const Qe = aa;
|
|
6135
6135
|
/*! *****************************************************************************
|
|
6136
6136
|
Copyright (c) Microsoft Corporation.
|
|
6137
6137
|
|
|
@@ -6427,7 +6427,7 @@ var Zh = function(r) {
|
|
|
6427
6427
|
this.parent = e, this._registry = new Wh(), this.interceptors = new Qh(), this.disposed = !1, this.disposables = /* @__PURE__ */ new Set();
|
|
6428
6428
|
}
|
|
6429
6429
|
return r.prototype.register = function(e, t, i) {
|
|
6430
|
-
i === void 0 && (i = { lifecycle:
|
|
6430
|
+
i === void 0 && (i = { lifecycle: Qe.Transient }), this.ensureNotDisposed();
|
|
6431
6431
|
var s;
|
|
6432
6432
|
if (Kh(t) ? s = t : s = { useClass: t }, ls(s))
|
|
6433
6433
|
for (var n = [e], o = s; o != null; ) {
|
|
@@ -6438,8 +6438,8 @@ var Zh = function(r) {
|
|
|
6438
6438
|
var u = this._registry.get(l);
|
|
6439
6439
|
u && ls(u.provider) ? o = u.provider : o = null;
|
|
6440
6440
|
}
|
|
6441
|
-
if ((i.lifecycle ===
|
|
6442
|
-
throw new Error('Cannot use lifecycle "' +
|
|
6441
|
+
if ((i.lifecycle === Qe.Singleton || i.lifecycle == Qe.ContainerScoped || i.lifecycle == Qe.ResolutionScoped) && (us(s) || la(s)))
|
|
6442
|
+
throw new Error('Cannot use lifecycle "' + Qe[i.lifecycle] + '" with ValueProviders or FactoryProviders');
|
|
6443
6443
|
return this._registry.set(e, { provider: s, options: i }), this;
|
|
6444
6444
|
}, r.prototype.registerType = function(e, t) {
|
|
6445
6445
|
return this.ensureNotDisposed(), Cr(t) ? this.register(e, {
|
|
@@ -6456,17 +6456,17 @@ var Zh = function(r) {
|
|
|
6456
6456
|
if (Cr(t))
|
|
6457
6457
|
return this.register(e, {
|
|
6458
6458
|
useToken: t
|
|
6459
|
-
}, { lifecycle:
|
|
6459
|
+
}, { lifecycle: Qe.Singleton });
|
|
6460
6460
|
if (t)
|
|
6461
6461
|
return this.register(e, {
|
|
6462
6462
|
useClass: t
|
|
6463
|
-
}, { lifecycle:
|
|
6463
|
+
}, { lifecycle: Qe.Singleton });
|
|
6464
6464
|
throw new Error('Cannot register a type name as a singleton without a "to" token');
|
|
6465
6465
|
}
|
|
6466
6466
|
var i = e;
|
|
6467
6467
|
return t && !Cr(t) && (i = t), this.register(e, {
|
|
6468
6468
|
useClass: i
|
|
6469
|
-
}, { lifecycle:
|
|
6469
|
+
}, { lifecycle: Qe.Singleton });
|
|
6470
6470
|
}, r.prototype.resolve = function(e, t, i) {
|
|
6471
6471
|
t === void 0 && (t = new ns()), i === void 0 && (i = !1), this.ensureNotDisposed();
|
|
6472
6472
|
var s = this.getRegistration(e);
|
|
@@ -6525,10 +6525,10 @@ var Zh = function(r) {
|
|
|
6525
6525
|
this.interceptors.postResolution.setAll(e, o);
|
|
6526
6526
|
}
|
|
6527
6527
|
}, r.prototype.resolveRegistration = function(e, t) {
|
|
6528
|
-
if (this.ensureNotDisposed(), e.options.lifecycle ===
|
|
6528
|
+
if (this.ensureNotDisposed(), e.options.lifecycle === Qe.ResolutionScoped && t.scopedResolutions.has(e))
|
|
6529
6529
|
return t.scopedResolutions.get(e);
|
|
6530
|
-
var i = e.options.lifecycle ===
|
|
6531
|
-
return us(e.provider) ? o = e.provider.useValue : ls(e.provider) ? o = n ? e.instance || (e.instance = this.resolve(e.provider.useToken, t)) : this.resolve(e.provider.useToken, t) : Uf(e.provider) ? o = n ? e.instance || (e.instance = this.construct(e.provider.useClass, t)) : this.construct(e.provider.useClass, t) : la(e.provider) ? o = e.provider.useFactory(this) : o = this.construct(e.provider, t), e.options.lifecycle ===
|
|
6530
|
+
var i = e.options.lifecycle === Qe.Singleton, s = e.options.lifecycle === Qe.ContainerScoped, n = i || s, o;
|
|
6531
|
+
return us(e.provider) ? o = e.provider.useValue : ls(e.provider) ? o = n ? e.instance || (e.instance = this.resolve(e.provider.useToken, t)) : this.resolve(e.provider.useToken, t) : Uf(e.provider) ? o = n ? e.instance || (e.instance = this.construct(e.provider.useClass, t)) : this.construct(e.provider.useClass, t) : la(e.provider) ? o = e.provider.useFactory(this) : o = this.construct(e.provider, t), e.options.lifecycle === Qe.ResolutionScoped && t.scopedResolutions.set(e, o), o;
|
|
6532
6532
|
}, r.prototype.resolveAll = function(e, t, i) {
|
|
6533
6533
|
var s = this;
|
|
6534
6534
|
t === void 0 && (t = new ns()), i === void 0 && (i = !1), this.ensureNotDisposed();
|
|
@@ -6580,9 +6580,9 @@ var Zh = function(r) {
|
|
|
6580
6580
|
var o = Ks(n.value, 2), l = o[0], u = o[1];
|
|
6581
6581
|
u.some(function(h) {
|
|
6582
6582
|
var g = h.options;
|
|
6583
|
-
return g.lifecycle ===
|
|
6583
|
+
return g.lifecycle === Qe.ContainerScoped;
|
|
6584
6584
|
}) && i._registry.setAll(l, u.map(function(h) {
|
|
6585
|
-
return h.options.lifecycle ===
|
|
6585
|
+
return h.options.lifecycle === Qe.ContainerScoped ? {
|
|
6586
6586
|
provider: h.provider,
|
|
6587
6587
|
options: h.options
|
|
6588
6588
|
} : h;
|
|
@@ -6658,7 +6658,7 @@ var Zh = function(r) {
|
|
|
6658
6658
|
if (this.disposed)
|
|
6659
6659
|
throw new Error("This container has been disposed, you cannot interact with a disposed container");
|
|
6660
6660
|
}, r;
|
|
6661
|
-
}(),
|
|
6661
|
+
}(), Ye = new ep();
|
|
6662
6662
|
function $n(r) {
|
|
6663
6663
|
return function(e) {
|
|
6664
6664
|
$f.set(e, Lh(e));
|
|
@@ -7095,22 +7095,23 @@ a([
|
|
|
7095
7095
|
const rs = "crypto.algorithm";
|
|
7096
7096
|
class tp {
|
|
7097
7097
|
getAlgorithms() {
|
|
7098
|
-
return
|
|
7098
|
+
return Ye.resolveAll(rs);
|
|
7099
7099
|
}
|
|
7100
7100
|
toAsnAlgorithm(e) {
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7101
|
+
const t = { ...e };
|
|
7102
|
+
t.hash && typeof t.hash == "string" && (t.hash = { name: t.hash });
|
|
7103
|
+
for (const i of this.getAlgorithms()) {
|
|
7104
|
+
const s = i.toAsnAlgorithm(t);
|
|
7105
|
+
if (s)
|
|
7106
|
+
return s;
|
|
7106
7107
|
}
|
|
7107
7108
|
if (/^[0-9.]+$/.test(e.name)) {
|
|
7108
|
-
const
|
|
7109
|
+
const i = new _({ algorithm: e.name });
|
|
7109
7110
|
if ("parameters" in e) {
|
|
7110
|
-
const
|
|
7111
|
-
|
|
7111
|
+
const s = e;
|
|
7112
|
+
i.parameters = s.parameters;
|
|
7112
7113
|
}
|
|
7113
|
-
return
|
|
7114
|
+
return i;
|
|
7114
7115
|
}
|
|
7115
7116
|
throw new Error("Cannot convert WebCrypto algorithm to ASN.1 algorithm");
|
|
7116
7117
|
}
|
|
@@ -7127,9 +7128,9 @@ class tp {
|
|
|
7127
7128
|
}
|
|
7128
7129
|
}
|
|
7129
7130
|
const qr = "crypto.algorithmProvider";
|
|
7130
|
-
|
|
7131
|
+
Ye.registerSingleton(qr, tp);
|
|
7131
7132
|
var fs;
|
|
7132
|
-
const
|
|
7133
|
+
const it = "1.3.36.3.3.2.8.1.1", pl = `${it}.1`, yl = `${it}.2`, gl = `${it}.3`, ml = `${it}.4`, vl = `${it}.5`, bl = `${it}.6`, wl = `${it}.7`, Al = `${it}.8`, Sl = `${it}.9`, kl = `${it}.10`, Cl = `${it}.11`, xl = `${it}.12`, Bl = `${it}.13`, El = `${it}.14`, Il = "brainpoolP160r1", Nl = "brainpoolP160t1", Ol = "brainpoolP192r1", _l = "brainpoolP192t1", Tl = "brainpoolP224r1", jl = "brainpoolP224t1", Vl = "brainpoolP256r1", Rl = "brainpoolP256t1", Pl = "brainpoolP320r1", Ml = "brainpoolP320t1", Ul = "brainpoolP384r1", Dl = "brainpoolP384t1", $l = "brainpoolP512r1", Hl = "brainpoolP512t1", ke = "ECDSA";
|
|
7133
7134
|
let Di = fs = class {
|
|
7134
7135
|
toAsnAlgorithm(e) {
|
|
7135
7136
|
switch (e.name.toLowerCase()) {
|
|
@@ -7338,20 +7339,20 @@ Di.SECP256K1 = "1.3.132.0.10";
|
|
|
7338
7339
|
Di = fs = a([
|
|
7339
7340
|
$n()
|
|
7340
7341
|
], Di);
|
|
7341
|
-
|
|
7342
|
+
Ye.registerSingleton(rs, Di);
|
|
7342
7343
|
const Gf = Symbol("name"), Jf = Symbol("value");
|
|
7343
|
-
class
|
|
7344
|
+
class oe {
|
|
7344
7345
|
constructor(e, t = {}, i = "") {
|
|
7345
7346
|
this[Gf] = e, this[Jf] = i;
|
|
7346
7347
|
for (const s in t)
|
|
7347
7348
|
this[s] = t[s];
|
|
7348
7349
|
}
|
|
7349
7350
|
}
|
|
7350
|
-
|
|
7351
|
-
|
|
7351
|
+
oe.NAME = Gf;
|
|
7352
|
+
oe.VALUE = Jf;
|
|
7352
7353
|
class rp {
|
|
7353
7354
|
static toTextObject(e) {
|
|
7354
|
-
const t = new
|
|
7355
|
+
const t = new oe("Algorithm Identifier", {}, er.toString(e.algorithm));
|
|
7355
7356
|
if (e.parameters)
|
|
7356
7357
|
switch (e.algorithm) {
|
|
7357
7358
|
case Pi: {
|
|
@@ -7408,8 +7409,8 @@ class gr {
|
|
|
7408
7409
|
static serializeObj(e, t = 0) {
|
|
7409
7410
|
const i = [];
|
|
7410
7411
|
let s = this.pad(t++), n = "";
|
|
7411
|
-
const o = e[
|
|
7412
|
-
o && (n = ` ${o}`), i.push(`${s}${e[
|
|
7412
|
+
const o = e[oe.VALUE];
|
|
7413
|
+
o && (n = ` ${o}`), i.push(`${s}${e[oe.NAME]}:${n}`), s = this.pad(t);
|
|
7413
7414
|
for (const l in e) {
|
|
7414
7415
|
if (typeof l == "symbol")
|
|
7415
7416
|
continue;
|
|
@@ -7420,14 +7421,14 @@ class gr {
|
|
|
7420
7421
|
i.push(`${s}${h}${u.toUTCString()}`);
|
|
7421
7422
|
else if (Array.isArray(u))
|
|
7422
7423
|
for (const g of u)
|
|
7423
|
-
g[
|
|
7424
|
-
else if (u instanceof
|
|
7425
|
-
u[
|
|
7424
|
+
g[oe.NAME] = l, i.push(...this.serializeObj(g, t));
|
|
7425
|
+
else if (u instanceof oe)
|
|
7426
|
+
u[oe.NAME] = l, i.push(...this.serializeObj(u, t));
|
|
7426
7427
|
else if (E.isBufferSource(u))
|
|
7427
7428
|
l ? (i.push(`${s}${h}`), i.push(...this.serializeBufferSource(u, t + 1))) : i.push(...this.serializeBufferSource(u, t));
|
|
7428
7429
|
else if ("toTextObject" in u) {
|
|
7429
7430
|
const g = u.toTextObject();
|
|
7430
|
-
g[
|
|
7431
|
+
g[oe.NAME] = l, i.push(...this.serializeObj(g, t));
|
|
7431
7432
|
} else
|
|
7432
7433
|
throw new TypeError("Cannot serialize data in text format. Unsupported type.");
|
|
7433
7434
|
}
|
|
@@ -7487,12 +7488,12 @@ class tr {
|
|
|
7487
7488
|
return e[""] = this.rawData, e;
|
|
7488
7489
|
}
|
|
7489
7490
|
toTextObjectEmpty(e) {
|
|
7490
|
-
return new
|
|
7491
|
+
return new oe(this.getTextName(), {}, e);
|
|
7491
7492
|
}
|
|
7492
7493
|
}
|
|
7493
7494
|
xr = /* @__PURE__ */ new WeakMap();
|
|
7494
7495
|
tr.NAME = "ASN";
|
|
7495
|
-
class
|
|
7496
|
+
class lt extends tr {
|
|
7496
7497
|
constructor(...e) {
|
|
7497
7498
|
let t;
|
|
7498
7499
|
E.isBufferSource(e[0]) ? t = E.toArrayBuffer(e[0]) : t = N.serialize(new St({
|
|
@@ -7510,7 +7511,7 @@ class ut extends tr {
|
|
|
7510
7511
|
}
|
|
7511
7512
|
toTextObjectWithoutValue() {
|
|
7512
7513
|
const e = this.toTextObjectEmpty(this.critical ? "critical" : void 0);
|
|
7513
|
-
return e[
|
|
7514
|
+
return e[oe.NAME] === lt.NAME && (e[oe.NAME] = er.toString(this.type)), e;
|
|
7514
7515
|
}
|
|
7515
7516
|
}
|
|
7516
7517
|
var Yf;
|
|
@@ -7569,7 +7570,7 @@ class Gt {
|
|
|
7569
7570
|
}
|
|
7570
7571
|
Yf = Symbol.toStringTag;
|
|
7571
7572
|
Gt.DEFAULT = "default";
|
|
7572
|
-
const
|
|
7573
|
+
const wt = new Gt(), ip = /^[0-2](?:\.[1-9][0-9]*)+$/;
|
|
7573
7574
|
function sp(r) {
|
|
7574
7575
|
return new RegExp(ip).test(r);
|
|
7575
7576
|
}
|
|
@@ -7589,19 +7590,19 @@ class Zf {
|
|
|
7589
7590
|
this.items[e] = t, this.items[t] = e;
|
|
7590
7591
|
}
|
|
7591
7592
|
}
|
|
7592
|
-
const
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7593
|
+
const tt = new Zf();
|
|
7594
|
+
tt.register("CN", "2.5.4.3");
|
|
7595
|
+
tt.register("L", "2.5.4.7");
|
|
7596
|
+
tt.register("ST", "2.5.4.8");
|
|
7597
|
+
tt.register("O", "2.5.4.10");
|
|
7598
|
+
tt.register("OU", "2.5.4.11");
|
|
7599
|
+
tt.register("C", "2.5.4.6");
|
|
7600
|
+
tt.register("DC", "0.9.2342.19200300.100.1.25");
|
|
7601
|
+
tt.register("E", "1.2.840.113549.1.9.1");
|
|
7602
|
+
tt.register("G", "2.5.4.42");
|
|
7603
|
+
tt.register("I", "2.5.4.43");
|
|
7604
|
+
tt.register("SN", "2.5.4.4");
|
|
7605
|
+
tt.register("T", "2.5.4.12");
|
|
7605
7606
|
function np(r, e) {
|
|
7606
7607
|
return `\\${P.ToHex(P.FromUtf8String(e)).toUpperCase()}`;
|
|
7607
7608
|
}
|
|
@@ -7628,14 +7629,14 @@ class mr {
|
|
|
7628
7629
|
typeof e == "string" ? this.asn = this.fromString(e) : e instanceof _e ? this.asn = e : E.isBufferSource(e) ? this.asn = N.parse(e, _e) : this.asn = this.fromJSON(e);
|
|
7629
7630
|
}
|
|
7630
7631
|
getField(e) {
|
|
7631
|
-
const t = this.extraNames.findId(e) ||
|
|
7632
|
+
const t = this.extraNames.findId(e) || tt.findId(e), i = [];
|
|
7632
7633
|
for (const s of this.asn)
|
|
7633
7634
|
for (const n of s)
|
|
7634
7635
|
n.type === t && i.push(n.value.toString());
|
|
7635
7636
|
return i;
|
|
7636
7637
|
}
|
|
7637
7638
|
getName(e) {
|
|
7638
|
-
return this.extraNames.get(e) ||
|
|
7639
|
+
return this.extraNames.get(e) || tt.get(e);
|
|
7639
7640
|
}
|
|
7640
7641
|
toString() {
|
|
7641
7642
|
return this.asn.map((e) => e.map((t) => {
|
|
@@ -7727,10 +7728,9 @@ class mr {
|
|
|
7727
7728
|
toArrayBuffer() {
|
|
7728
7729
|
return N.serialize(this.asn);
|
|
7729
7730
|
}
|
|
7730
|
-
async getThumbprint(
|
|
7731
|
-
var t;
|
|
7731
|
+
async getThumbprint(e, t) {
|
|
7732
7732
|
let i, s = "SHA-1";
|
|
7733
|
-
return e
|
|
7733
|
+
return e && (typeof e == "object" && "subtle" in e ? i = e : (s = e, i = t)), i ?? (i = wt.get()), await i.subtle.digest(s, this.toArrayBuffer());
|
|
7734
7734
|
}
|
|
7735
7735
|
}
|
|
7736
7736
|
const Xf = "Cannot initialize GeneralName from ASN.1 data.", Ll = `${Xf} Unsupported string format in use.`, ap = `${Xf} Value doesn't match to GUID regular expression.`, Fl = /^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i, ql = "1.3.6.1.4.1.311.25.1", Kl = "1.3.6.1.4.1.311.20.2.3", Qn = "dns", eo = "dn", to = "email", ro = "ip", io = "url", so = "guid", no = "upn", os = "id";
|
|
@@ -7839,7 +7839,7 @@ class Jt extends tr {
|
|
|
7839
7839
|
throw new Error("Unsupported GeneralName type");
|
|
7840
7840
|
}
|
|
7841
7841
|
let t = this.value;
|
|
7842
|
-
return this.type === os && (t = er.toString(t)), new
|
|
7842
|
+
return this.type === os && (t = er.toString(t)), new oe(e, void 0, t);
|
|
7843
7843
|
}
|
|
7844
7844
|
}
|
|
7845
7845
|
class vr extends tr {
|
|
@@ -7883,15 +7883,15 @@ class vr extends tr {
|
|
|
7883
7883
|
const e = super.toTextObjectEmpty();
|
|
7884
7884
|
for (const t of this.items) {
|
|
7885
7885
|
const i = t.toTextObject();
|
|
7886
|
-
let s = e[i[
|
|
7887
|
-
Array.isArray(s) || (s = [], e[i[
|
|
7886
|
+
let s = e[i[oe.NAME]];
|
|
7887
|
+
Array.isArray(s) || (s = [], e[i[oe.NAME]] = s), s.push(i);
|
|
7888
7888
|
}
|
|
7889
7889
|
return e;
|
|
7890
7890
|
}
|
|
7891
7891
|
}
|
|
7892
7892
|
vr.NAME = "GeneralNames";
|
|
7893
|
-
const Ni = "-{5}", $i = "\\n", cp = `[^${$i}]+`, lp = `${Ni}BEGIN (${cp}(?=${Ni}))${Ni}`, up = `${Ni}END \\1${Ni}`, Kr = "\\n", fp = `[^:${$i}]+`, dp = `(?:[^${$i}]+${Kr}(?: +[^${$i}]+${Kr})*)`, hp = "[a-zA-Z0-9=+/]+", pp = `(?:${hp}${Kr})+`, Wl = `${lp}${Kr}(?:((?:${fp}: ${dp})+))?${Kr}?(${pp})${up}
|
|
7894
|
-
class
|
|
7893
|
+
const Ni = "-{5}", $i = "\\n", cp = `[^${$i}]+`, lp = `${Ni}BEGIN (${cp}(?=${Ni}))${Ni}`, up = `${Ni}END \\1${Ni}`, Kr = "\\n", fp = `[^:${$i}]+`, dp = `(?:[^${$i}]+${Kr}(?: +[^${$i}]+${Kr})*)`, hp = "[a-zA-Z0-9=+/]+", pp = `(?:${hp}${Kr})+`, Wl = `${lp}${Kr}(?:((?:${fp}: ${dp})+))?${Kr}?(${pp})${up}`, yp = new RegExp(`[${$i}]+`, "g");
|
|
7894
|
+
class at {
|
|
7895
7895
|
static isPem(e) {
|
|
7896
7896
|
return typeof e == "string" && new RegExp(Wl, "g").test(e.replace(/\r/g, ""));
|
|
7897
7897
|
}
|
|
@@ -7900,7 +7900,7 @@ class ct {
|
|
|
7900
7900
|
const t = new RegExp(Wl, "g"), i = [];
|
|
7901
7901
|
let s = null;
|
|
7902
7902
|
for (; s = t.exec(e); ) {
|
|
7903
|
-
const n = s[3].replace(
|
|
7903
|
+
const n = s[3].replace(yp, ""), o = {
|
|
7904
7904
|
type: s[1],
|
|
7905
7905
|
headers: [],
|
|
7906
7906
|
rawData: P.FromBase64(n)
|
|
@@ -7964,33 +7964,30 @@ class ct {
|
|
|
7964
7964
|
var t;
|
|
7965
7965
|
const i = e.type.toLocaleUpperCase(), s = [];
|
|
7966
7966
|
if (s.push(`-----BEGIN ${i}-----`), !((t = e.headers) === null || t === void 0) && t.length) {
|
|
7967
|
-
for (const
|
|
7968
|
-
s.push(`${
|
|
7967
|
+
for (const o of e.headers)
|
|
7968
|
+
s.push(`${o.key}: ${o.value}`);
|
|
7969
7969
|
s.push("");
|
|
7970
7970
|
}
|
|
7971
7971
|
const n = P.ToBase64(e.rawData);
|
|
7972
|
-
let o
|
|
7973
|
-
|
|
7974
|
-
|
|
7975
|
-
if (u.push(o), o.length < 64)
|
|
7976
|
-
break;
|
|
7977
|
-
return s.push(...u), s.push(`-----END ${i}-----`), s.join(`
|
|
7972
|
+
for (let o = 0; o < n.length; o += 64)
|
|
7973
|
+
s.push(n.substring(o, o + 64));
|
|
7974
|
+
return s.push(`-----END ${i}-----`), s.join(`
|
|
7978
7975
|
`);
|
|
7979
7976
|
}
|
|
7980
7977
|
}
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7978
|
+
at.CertificateTag = "CERTIFICATE";
|
|
7979
|
+
at.CrlTag = "CRL";
|
|
7980
|
+
at.CertificateRequestTag = "CERTIFICATE REQUEST";
|
|
7981
|
+
at.PublicKeyTag = "PUBLIC KEY";
|
|
7982
|
+
at.PrivateKeyTag = "PRIVATE KEY";
|
|
7986
7983
|
class Ht extends tr {
|
|
7987
7984
|
static isAsnEncoded(e) {
|
|
7988
7985
|
return E.isBufferSource(e) || typeof e == "string";
|
|
7989
7986
|
}
|
|
7990
7987
|
static toArrayBuffer(e) {
|
|
7991
7988
|
if (typeof e == "string") {
|
|
7992
|
-
if (
|
|
7993
|
-
return
|
|
7989
|
+
if (at.isPem(e))
|
|
7990
|
+
return at.decode(e)[0];
|
|
7994
7991
|
if (P.isHex(e))
|
|
7995
7992
|
return P.FromHex(e);
|
|
7996
7993
|
if (P.isBase64(e))
|
|
@@ -8003,8 +8000,8 @@ class Ht extends tr {
|
|
|
8003
8000
|
if (t.length > 0 && t[0] === 48)
|
|
8004
8001
|
return E.toArrayBuffer(e);
|
|
8005
8002
|
const i = P.ToBinary(e);
|
|
8006
|
-
if (
|
|
8007
|
-
return
|
|
8003
|
+
if (at.isPem(i))
|
|
8004
|
+
return at.decode(i)[0];
|
|
8008
8005
|
if (P.isHex(i))
|
|
8009
8006
|
return P.FromHex(i);
|
|
8010
8007
|
if (P.isBase64(i))
|
|
@@ -8020,14 +8017,14 @@ class Ht extends tr {
|
|
|
8020
8017
|
toString(e = "pem") {
|
|
8021
8018
|
switch (e) {
|
|
8022
8019
|
case "pem":
|
|
8023
|
-
return
|
|
8020
|
+
return at.encode(this.rawData, this.tag);
|
|
8024
8021
|
default:
|
|
8025
8022
|
return super.toString(e);
|
|
8026
8023
|
}
|
|
8027
8024
|
}
|
|
8028
8025
|
}
|
|
8029
8026
|
class Nt extends Ht {
|
|
8030
|
-
static async create(e, t =
|
|
8027
|
+
static async create(e, t = wt.get()) {
|
|
8031
8028
|
if (e instanceof Nt)
|
|
8032
8029
|
return e;
|
|
8033
8030
|
if (Gt.isCryptoKey(e)) {
|
|
@@ -8044,20 +8041,20 @@ class Nt extends Ht {
|
|
|
8044
8041
|
}
|
|
8045
8042
|
}
|
|
8046
8043
|
constructor(e) {
|
|
8047
|
-
Ht.isAsnEncoded(e) ? super(e, Et) : super(e), this.tag =
|
|
8044
|
+
Ht.isAsnEncoded(e) ? super(e, Et) : super(e), this.tag = at.PublicKeyTag;
|
|
8048
8045
|
}
|
|
8049
|
-
async export(
|
|
8050
|
-
let
|
|
8046
|
+
async export(e, t, i) {
|
|
8047
|
+
let s, n = ["verify"], o = {
|
|
8051
8048
|
hash: "SHA-256",
|
|
8052
8049
|
...this.algorithm
|
|
8053
8050
|
};
|
|
8054
|
-
|
|
8055
|
-
let
|
|
8056
|
-
const
|
|
8057
|
-
return
|
|
8051
|
+
t ? (o = e, n = t, s = i) : s = e, s ?? (s = wt.get());
|
|
8052
|
+
let l = this.rawData;
|
|
8053
|
+
const u = N.parse(this.rawData, Et);
|
|
8054
|
+
return u.algorithm.algorithm === Ii && (l = gp(u, l)), s.subtle.importKey("spki", l, o, !0, n);
|
|
8058
8055
|
}
|
|
8059
8056
|
onInit(e) {
|
|
8060
|
-
const t =
|
|
8057
|
+
const t = Ye.resolve(qr), i = this.algorithm = t.toWebAlgorithm(e.algorithm);
|
|
8061
8058
|
switch (e.algorithm.algorithm) {
|
|
8062
8059
|
case hr: {
|
|
8063
8060
|
const s = N.parse(e.subjectPublicKey, fc), n = E.toUint8Array(s.modulus);
|
|
@@ -8066,16 +8063,15 @@ class Nt extends Ht {
|
|
|
8066
8063
|
}
|
|
8067
8064
|
}
|
|
8068
8065
|
}
|
|
8069
|
-
async getThumbprint(
|
|
8070
|
-
var t;
|
|
8066
|
+
async getThumbprint(e, t) {
|
|
8071
8067
|
let i, s = "SHA-1";
|
|
8072
|
-
return e
|
|
8068
|
+
return e && (typeof e == "object" && "subtle" in e ? i = e : (s = e, i = t)), i ?? (i = wt.get()), await i.subtle.digest(s, this.rawData);
|
|
8073
8069
|
}
|
|
8074
|
-
async getKeyIdentifier(
|
|
8075
|
-
let
|
|
8076
|
-
e
|
|
8077
|
-
const
|
|
8078
|
-
return await
|
|
8070
|
+
async getKeyIdentifier(e, t) {
|
|
8071
|
+
let i, s = "SHA-1";
|
|
8072
|
+
e && (typeof e == "object" && "subtle" in e ? i = e : (s = e, i = t)), i ?? (i = wt.get());
|
|
8073
|
+
const n = N.parse(this.rawData, Et);
|
|
8074
|
+
return await i.subtle.digest(s, n.subjectPublicKey);
|
|
8079
8075
|
}
|
|
8080
8076
|
toTextObject() {
|
|
8081
8077
|
const e = this.toTextObjectEmpty(), t = N.parse(this.rawData, Et);
|
|
@@ -8090,14 +8086,14 @@ class Nt extends Ht {
|
|
|
8090
8086
|
return e;
|
|
8091
8087
|
}
|
|
8092
8088
|
}
|
|
8093
|
-
function
|
|
8089
|
+
function gp(r, e) {
|
|
8094
8090
|
return r.algorithm = new _({
|
|
8095
8091
|
algorithm: hr,
|
|
8096
8092
|
parameters: null
|
|
8097
8093
|
}), e = N.serialize(r), e;
|
|
8098
8094
|
}
|
|
8099
|
-
class Hi extends
|
|
8100
|
-
static async create(e, t = !1, i =
|
|
8095
|
+
class Hi extends lt {
|
|
8096
|
+
static async create(e, t = !1, i = wt.get()) {
|
|
8101
8097
|
if ("name" in e && "serialNumber" in e)
|
|
8102
8098
|
return new Hi(e, t);
|
|
8103
8099
|
const n = await (await Nt.create(e, i)).getKeyIdentifier(i);
|
|
@@ -8131,7 +8127,7 @@ class Hi extends ut {
|
|
|
8131
8127
|
}
|
|
8132
8128
|
}
|
|
8133
8129
|
Hi.NAME = "Authority Key Identifier";
|
|
8134
|
-
class Qf extends
|
|
8130
|
+
class Qf extends lt {
|
|
8135
8131
|
constructor(...e) {
|
|
8136
8132
|
if (E.isBufferSource(e[0])) {
|
|
8137
8133
|
super(e[0]);
|
|
@@ -8155,7 +8151,7 @@ var zl;
|
|
|
8155
8151
|
(function(r) {
|
|
8156
8152
|
r.serverAuth = "1.3.6.1.5.5.7.3.1", r.clientAuth = "1.3.6.1.5.5.7.3.2", r.codeSigning = "1.3.6.1.5.5.7.3.3", r.emailProtection = "1.3.6.1.5.5.7.3.4", r.timeStamping = "1.3.6.1.5.5.7.3.8", r.ocspSigning = "1.3.6.1.5.5.7.3.9";
|
|
8157
8153
|
})(zl || (zl = {}));
|
|
8158
|
-
class ed extends
|
|
8154
|
+
class ed extends lt {
|
|
8159
8155
|
constructor(...e) {
|
|
8160
8156
|
if (E.isBufferSource(e[0])) {
|
|
8161
8157
|
super(e[0]);
|
|
@@ -8176,7 +8172,7 @@ var Ea;
|
|
|
8176
8172
|
(function(r) {
|
|
8177
8173
|
r[r.digitalSignature = 1] = "digitalSignature", r[r.nonRepudiation = 2] = "nonRepudiation", r[r.keyEncipherment = 4] = "keyEncipherment", r[r.dataEncipherment = 8] = "dataEncipherment", r[r.keyAgreement = 16] = "keyAgreement", r[r.keyCertSign = 32] = "keyCertSign", r[r.cRLSign = 64] = "cRLSign", r[r.encipherOnly = 128] = "encipherOnly", r[r.decipherOnly = 256] = "decipherOnly";
|
|
8178
8174
|
})(Ea || (Ea = {}));
|
|
8179
|
-
class yc extends
|
|
8175
|
+
class yc extends lt {
|
|
8180
8176
|
constructor(...e) {
|
|
8181
8177
|
if (E.isBufferSource(e[0])) {
|
|
8182
8178
|
super(e[0]);
|
|
@@ -8193,8 +8189,8 @@ class yc extends ut {
|
|
|
8193
8189
|
}
|
|
8194
8190
|
}
|
|
8195
8191
|
yc.NAME = "Key Usages";
|
|
8196
|
-
class Kn extends
|
|
8197
|
-
static async create(e, t = !1, i =
|
|
8192
|
+
class Kn extends lt {
|
|
8193
|
+
static async create(e, t = !1, i = wt.get()) {
|
|
8198
8194
|
const n = await (await Nt.create(e, i)).getKeyIdentifier(i);
|
|
8199
8195
|
return new Kn(P.ToHex(n), t);
|
|
8200
8196
|
}
|
|
@@ -8214,7 +8210,7 @@ class Kn extends ut {
|
|
|
8214
8210
|
}
|
|
8215
8211
|
}
|
|
8216
8212
|
Kn.NAME = "Subject Key Identifier";
|
|
8217
|
-
class gc extends
|
|
8213
|
+
class gc extends lt {
|
|
8218
8214
|
constructor(...e) {
|
|
8219
8215
|
E.isBufferSource(e[0]) ? super(e[0]) : super(Cf, e[1], new vr(e[0] || []).rawData);
|
|
8220
8216
|
}
|
|
@@ -8231,17 +8227,17 @@ class gc extends ut {
|
|
|
8231
8227
|
}
|
|
8232
8228
|
}
|
|
8233
8229
|
gc.NAME = "Subject Alternative Name";
|
|
8234
|
-
class
|
|
8230
|
+
class ut {
|
|
8235
8231
|
static register(e, t) {
|
|
8236
8232
|
this.items.set(e, t);
|
|
8237
8233
|
}
|
|
8238
8234
|
static create(e) {
|
|
8239
|
-
const t = new
|
|
8235
|
+
const t = new lt(e), i = this.items.get(t.type);
|
|
8240
8236
|
return i ? new i(e) : t;
|
|
8241
8237
|
}
|
|
8242
8238
|
}
|
|
8243
|
-
|
|
8244
|
-
class td extends
|
|
8239
|
+
ut.items = /* @__PURE__ */ new Map();
|
|
8240
|
+
class td extends lt {
|
|
8245
8241
|
constructor(...e) {
|
|
8246
8242
|
var t;
|
|
8247
8243
|
if (E.isBufferSource(e[0])) {
|
|
@@ -8255,12 +8251,12 @@ class td extends ut {
|
|
|
8255
8251
|
}
|
|
8256
8252
|
toTextObject() {
|
|
8257
8253
|
const e = this.toTextObjectWithoutValue();
|
|
8258
|
-
return e.Policy = this.policies.map((t) => new
|
|
8254
|
+
return e.Policy = this.policies.map((t) => new oe("", {}, er.toString(t))), e;
|
|
8259
8255
|
}
|
|
8260
8256
|
}
|
|
8261
8257
|
td.NAME = "Certificate Policies";
|
|
8262
|
-
|
|
8263
|
-
class rd extends
|
|
8258
|
+
ut.register(mf, td);
|
|
8259
|
+
class rd extends lt {
|
|
8264
8260
|
constructor(...e) {
|
|
8265
8261
|
var t;
|
|
8266
8262
|
if (E.isBufferSource(e[0]))
|
|
@@ -8285,13 +8281,13 @@ class rd extends ut {
|
|
|
8285
8281
|
const e = this.toTextObjectWithoutValue();
|
|
8286
8282
|
return e["Distribution Point"] = this.distributionPoints.map((t) => {
|
|
8287
8283
|
var i;
|
|
8288
|
-
const s =
|
|
8289
|
-
return
|
|
8284
|
+
const s = new oe("");
|
|
8285
|
+
return !((i = t.distributionPoint) === null || i === void 0) && i.fullName && (s[""] = t.distributionPoint.fullName.map((n) => new Jt(n).toString()).join(", ")), t.reasons && (s.Reasons = t.reasons.toString()), t.cRLIssuer && (s["CRL Issuer"] = t.cRLIssuer.map((n) => n.toString()).join(", ")), s;
|
|
8290
8286
|
}), e;
|
|
8291
8287
|
}
|
|
8292
8288
|
}
|
|
8293
8289
|
rd.NAME = "CRL Distribution Points";
|
|
8294
|
-
class id extends
|
|
8290
|
+
class id extends lt {
|
|
8295
8291
|
constructor(...e) {
|
|
8296
8292
|
var t, i, s, n;
|
|
8297
8293
|
if (E.isBufferSource(e[0]))
|
|
@@ -8333,9 +8329,9 @@ function as(r, e, t) {
|
|
|
8333
8329
|
if (t.length === 1)
|
|
8334
8330
|
r[e] = t[0].toTextObject();
|
|
8335
8331
|
else {
|
|
8336
|
-
const i = new
|
|
8332
|
+
const i = new oe("");
|
|
8337
8333
|
t.forEach((s, n) => {
|
|
8338
|
-
const o = s.toTextObject(), l = `${o[
|
|
8334
|
+
const o = s.toTextObject(), l = `${o[oe.NAME]} ${n + 1}`;
|
|
8339
8335
|
let u = i[l];
|
|
8340
8336
|
Array.isArray(u) || (u = [], i[l] = u), u.push(o);
|
|
8341
8337
|
}), r[e] = i;
|
|
@@ -8350,7 +8346,7 @@ function cs(r, e, t, i) {
|
|
|
8350
8346
|
}));
|
|
8351
8347
|
});
|
|
8352
8348
|
}
|
|
8353
|
-
class sd extends
|
|
8349
|
+
class sd extends lt {
|
|
8354
8350
|
constructor(...e) {
|
|
8355
8351
|
E.isBufferSource(e[0]) ? super(e[0]) : super(wf, e[1], new vr(e[0] || []).rawData);
|
|
8356
8352
|
}
|
|
@@ -8386,11 +8382,11 @@ class ri extends tr {
|
|
|
8386
8382
|
}
|
|
8387
8383
|
toTextObject() {
|
|
8388
8384
|
const e = this.toTextObjectWithoutValue();
|
|
8389
|
-
return e.Value = this.values.map((t) => new
|
|
8385
|
+
return e.Value = this.values.map((t) => new oe("", { "": t })), e;
|
|
8390
8386
|
}
|
|
8391
8387
|
toTextObjectWithoutValue() {
|
|
8392
8388
|
const e = this.toTextObjectEmpty();
|
|
8393
|
-
return e[
|
|
8389
|
+
return e[oe.NAME] === ri.NAME && (e[oe.NAME] = er.toString(this.type)), e;
|
|
8394
8390
|
}
|
|
8395
8391
|
}
|
|
8396
8392
|
ri.NAME = "Attribute";
|
|
@@ -8413,7 +8409,7 @@ class nd extends ri {
|
|
|
8413
8409
|
}
|
|
8414
8410
|
toTextObject() {
|
|
8415
8411
|
const e = this.toTextObjectWithoutValue();
|
|
8416
|
-
return e[
|
|
8412
|
+
return e[oe.VALUE] = this.password, e;
|
|
8417
8413
|
}
|
|
8418
8414
|
}
|
|
8419
8415
|
nd.NAME = "Challenge Password";
|
|
@@ -8433,13 +8429,13 @@ class mc extends ri {
|
|
|
8433
8429
|
onInit(e) {
|
|
8434
8430
|
if (super.onInit(e), this.values[0]) {
|
|
8435
8431
|
const t = N.parse(this.values[0], fr);
|
|
8436
|
-
this.items = t.map((i) =>
|
|
8432
|
+
this.items = t.map((i) => ut.create(N.serialize(i)));
|
|
8437
8433
|
}
|
|
8438
8434
|
}
|
|
8439
8435
|
toTextObject() {
|
|
8440
8436
|
const e = this.toTextObjectWithoutValue(), t = this.items.map((i) => i.toTextObject());
|
|
8441
8437
|
for (const i of t)
|
|
8442
|
-
e[i[
|
|
8438
|
+
e[i[oe.NAME]] = i;
|
|
8443
8439
|
return e;
|
|
8444
8440
|
}
|
|
8445
8441
|
}
|
|
@@ -8455,7 +8451,7 @@ class Wn {
|
|
|
8455
8451
|
}
|
|
8456
8452
|
Wn.items = /* @__PURE__ */ new Map();
|
|
8457
8453
|
const zn = "crypto.signatureFormatter";
|
|
8458
|
-
class
|
|
8454
|
+
class mp {
|
|
8459
8455
|
toAsnSignature(e, t) {
|
|
8460
8456
|
return E.toArrayBuffer(t);
|
|
8461
8457
|
}
|
|
@@ -8477,7 +8473,7 @@ let Ia = ds = class {
|
|
|
8477
8473
|
}) : null;
|
|
8478
8474
|
}
|
|
8479
8475
|
static getHashAlgorithm(e) {
|
|
8480
|
-
const t =
|
|
8476
|
+
const t = Ye.resolve(qr);
|
|
8481
8477
|
return typeof e == "string" ? t.toAsnAlgorithm({ name: e }) : typeof e == "object" && e && "name" in e ? t.toAsnAlgorithm(e) : null;
|
|
8482
8478
|
}
|
|
8483
8479
|
toAsnAlgorithm(e) {
|
|
@@ -8567,7 +8563,7 @@ let Ia = ds = class {
|
|
|
8567
8563
|
const t = N.parse(e.parameters, yr);
|
|
8568
8564
|
return {
|
|
8569
8565
|
name: "RSA-PSS",
|
|
8570
|
-
hash:
|
|
8566
|
+
hash: Ye.resolve(qr).toWebAlgorithm(t.hashAlgorithm),
|
|
8571
8567
|
saltLength: t.saltLength
|
|
8572
8568
|
};
|
|
8573
8569
|
} else
|
|
@@ -8579,7 +8575,7 @@ let Ia = ds = class {
|
|
|
8579
8575
|
Ia = ds = a([
|
|
8580
8576
|
$n()
|
|
8581
8577
|
], Ia);
|
|
8582
|
-
|
|
8578
|
+
Ye.registerSingleton(rs, Ia);
|
|
8583
8579
|
let Na = class {
|
|
8584
8580
|
toAsnAlgorithm(e) {
|
|
8585
8581
|
switch (e.name.toLowerCase()) {
|
|
@@ -8611,8 +8607,8 @@ let Na = class {
|
|
|
8611
8607
|
Na = a([
|
|
8612
8608
|
$n()
|
|
8613
8609
|
], Na);
|
|
8614
|
-
|
|
8615
|
-
class
|
|
8610
|
+
Ye.registerSingleton(rs, Na);
|
|
8611
|
+
class ft {
|
|
8616
8612
|
addPadding(e, t) {
|
|
8617
8613
|
const i = E.toUint8Array(t), s = new Uint8Array(e);
|
|
8618
8614
|
return s.set(i, e - i.length), s.buffer;
|
|
@@ -8632,21 +8628,21 @@ class dt {
|
|
|
8632
8628
|
}
|
|
8633
8629
|
toAsnSignature(e, t) {
|
|
8634
8630
|
if (e.name === "ECDSA") {
|
|
8635
|
-
const i = e.namedCurve, s =
|
|
8631
|
+
const i = e.namedCurve, s = ft.namedCurveSize.get(i) || ft.defaultNamedCurveSize, n = new Ms(), o = E.toUint8Array(t);
|
|
8636
8632
|
return n.r = this.removePadding(o.slice(0, s), !0), n.s = this.removePadding(o.slice(s, s + s), !0), N.serialize(n);
|
|
8637
8633
|
}
|
|
8638
8634
|
return null;
|
|
8639
8635
|
}
|
|
8640
8636
|
toWebSignature(e, t) {
|
|
8641
8637
|
if (e.name === "ECDSA") {
|
|
8642
|
-
const i = N.parse(t, Ms), s = e.namedCurve, n =
|
|
8638
|
+
const i = N.parse(t, Ms), s = e.namedCurve, n = ft.namedCurveSize.get(s) || ft.defaultNamedCurveSize, o = this.addPadding(n, this.removePadding(i.r)), l = this.addPadding(n, this.removePadding(i.s));
|
|
8643
8639
|
return Nd(o, l);
|
|
8644
8640
|
}
|
|
8645
8641
|
return null;
|
|
8646
8642
|
}
|
|
8647
8643
|
}
|
|
8648
|
-
|
|
8649
|
-
|
|
8644
|
+
ft.namedCurveSize = /* @__PURE__ */ new Map();
|
|
8645
|
+
ft.defaultNamedCurveSize = 32;
|
|
8650
8646
|
const oo = "1.3.101.110", Gl = "1.3.101.111", ao = "1.3.101.112", Jl = "1.3.101.113";
|
|
8651
8647
|
let Oa = class {
|
|
8652
8648
|
toAsnAlgorithm(e) {
|
|
@@ -8703,9 +8699,9 @@ let Oa = class {
|
|
|
8703
8699
|
Oa = a([
|
|
8704
8700
|
$n()
|
|
8705
8701
|
], Oa);
|
|
8706
|
-
|
|
8702
|
+
Ye.registerSingleton(rs, Oa);
|
|
8707
8703
|
var oi, ai, ci, li, ui, fi, di, Br;
|
|
8708
|
-
class
|
|
8704
|
+
class vp extends Ht {
|
|
8709
8705
|
get subjectName() {
|
|
8710
8706
|
return Q(this, ai, "f") || Se(this, ai, new mr(this.asn.certificationRequestInfo.subject), "f"), Q(this, ai, "f");
|
|
8711
8707
|
}
|
|
@@ -8714,7 +8710,7 @@ class mp extends Ht {
|
|
|
8714
8710
|
}
|
|
8715
8711
|
get signatureAlgorithm() {
|
|
8716
8712
|
if (!Q(this, li, "f")) {
|
|
8717
|
-
const e =
|
|
8713
|
+
const e = Ye.resolve(qr);
|
|
8718
8714
|
Se(this, li, e.toWebAlgorithm(this.asn.signatureAlgorithm), "f");
|
|
8719
8715
|
}
|
|
8720
8716
|
return Q(this, li, "f");
|
|
@@ -8741,7 +8737,7 @@ class mp extends Ht {
|
|
|
8741
8737
|
}
|
|
8742
8738
|
constructor(e) {
|
|
8743
8739
|
const t = Ht.isAsnEncoded(e) ? [e, Ui] : [e];
|
|
8744
|
-
super(t[0], t[1]), oi.set(this, void 0), ai.set(this, void 0), ci.set(this, void 0), li.set(this, void 0), ui.set(this, void 0), fi.set(this, void 0), di.set(this, void 0), Br.set(this, void 0), this.tag =
|
|
8740
|
+
super(t[0], t[1]), oi.set(this, void 0), ai.set(this, void 0), ci.set(this, void 0), li.set(this, void 0), ui.set(this, void 0), fi.set(this, void 0), di.set(this, void 0), Br.set(this, void 0), this.tag = at.CertificateRequestTag;
|
|
8745
8741
|
}
|
|
8746
8742
|
onInit(e) {
|
|
8747
8743
|
}
|
|
@@ -8763,11 +8759,11 @@ class mp extends Ht {
|
|
|
8763
8759
|
getExtensions(e) {
|
|
8764
8760
|
return this.extensions.filter((t) => t.type === e);
|
|
8765
8761
|
}
|
|
8766
|
-
async verify(e =
|
|
8762
|
+
async verify(e = wt.get()) {
|
|
8767
8763
|
const t = {
|
|
8768
8764
|
...this.publicKey.algorithm,
|
|
8769
8765
|
...this.signatureAlgorithm
|
|
8770
|
-
}, i = await this.publicKey.export(t, ["verify"], e), s =
|
|
8766
|
+
}, i = await this.publicKey.export(t, ["verify"], e), s = Ye.resolveAll(zn).reverse();
|
|
8771
8767
|
let n = null;
|
|
8772
8768
|
for (const l of s)
|
|
8773
8769
|
if (n = l.toWebSignature(t, this.signature), n)
|
|
@@ -8777,27 +8773,27 @@ class mp extends Ht {
|
|
|
8777
8773
|
return await e.subtle.verify(this.signatureAlgorithm, i, n, this.tbs);
|
|
8778
8774
|
}
|
|
8779
8775
|
toTextObject() {
|
|
8780
|
-
const e = this.toTextObjectEmpty(), t = N.parse(this.rawData, Ui), i = t.certificationRequestInfo, s = new
|
|
8776
|
+
const e = this.toTextObjectEmpty(), t = N.parse(this.rawData, Ui), i = t.certificationRequestInfo, s = new oe("", {
|
|
8781
8777
|
Version: `${Rr[i.version]} (${i.version})`,
|
|
8782
8778
|
Subject: this.subject,
|
|
8783
8779
|
"Subject Public Key Info": this.publicKey
|
|
8784
8780
|
});
|
|
8785
8781
|
if (this.attributes.length) {
|
|
8786
|
-
const n = new
|
|
8782
|
+
const n = new oe("");
|
|
8787
8783
|
for (const o of this.attributes) {
|
|
8788
8784
|
const l = o.toTextObject();
|
|
8789
|
-
n[l[
|
|
8785
|
+
n[l[oe.NAME]] = l;
|
|
8790
8786
|
}
|
|
8791
8787
|
s.Attributes = n;
|
|
8792
8788
|
}
|
|
8793
|
-
return e.Data = s, e.Signature = new
|
|
8789
|
+
return e.Data = s, e.Signature = new oe("", {
|
|
8794
8790
|
Algorithm: gr.serializeAlgorithm(t.signatureAlgorithm),
|
|
8795
8791
|
"": t.signature
|
|
8796
8792
|
}), e;
|
|
8797
8793
|
}
|
|
8798
8794
|
}
|
|
8799
8795
|
oi = /* @__PURE__ */ new WeakMap(), ai = /* @__PURE__ */ new WeakMap(), ci = /* @__PURE__ */ new WeakMap(), li = /* @__PURE__ */ new WeakMap(), ui = /* @__PURE__ */ new WeakMap(), fi = /* @__PURE__ */ new WeakMap(), di = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap();
|
|
8800
|
-
|
|
8796
|
+
vp.NAME = "PKCS#10 Certificate Request";
|
|
8801
8797
|
var hi, pi, yi, gi, mi, vi, bi, wi, Ai, Si, Er, ki;
|
|
8802
8798
|
class od extends Ht {
|
|
8803
8799
|
get publicKey() {
|
|
@@ -8843,7 +8839,7 @@ class od extends Ht {
|
|
|
8843
8839
|
}
|
|
8844
8840
|
get signatureAlgorithm() {
|
|
8845
8841
|
if (!Q(this, Ai, "f")) {
|
|
8846
|
-
const e =
|
|
8842
|
+
const e = Ye.resolve(qr);
|
|
8847
8843
|
Se(this, Ai, e.toWebAlgorithm(this.asn.signatureAlgorithm), "f");
|
|
8848
8844
|
}
|
|
8849
8845
|
return Q(this, Ai, "f");
|
|
@@ -8852,14 +8848,14 @@ class od extends Ht {
|
|
|
8852
8848
|
return Q(this, Si, "f") || Se(this, Si, this.asn.signatureValue, "f"), Q(this, Si, "f");
|
|
8853
8849
|
}
|
|
8854
8850
|
get extensions() {
|
|
8855
|
-
return Q(this, Er, "f") || (Se(this, Er, [], "f"), this.asn.tbsCertificate.extensions && Se(this, Er, this.asn.tbsCertificate.extensions.map((e) =>
|
|
8851
|
+
return Q(this, Er, "f") || (Se(this, Er, [], "f"), this.asn.tbsCertificate.extensions && Se(this, Er, this.asn.tbsCertificate.extensions.map((e) => ut.create(N.serialize(e))), "f")), Q(this, Er, "f");
|
|
8856
8852
|
}
|
|
8857
8853
|
get tbs() {
|
|
8858
8854
|
return Q(this, hi, "f") || Se(this, hi, this.asn.tbsCertificateRaw || N.serialize(this.asn.tbsCertificate), "f"), Q(this, hi, "f");
|
|
8859
8855
|
}
|
|
8860
8856
|
constructor(e) {
|
|
8861
8857
|
const t = Ht.isAsnEncoded(e) ? [e, Pr] : [e];
|
|
8862
|
-
super(t[0], t[1]), hi.set(this, void 0), pi.set(this, void 0), yi.set(this, void 0), gi.set(this, void 0), mi.set(this, void 0), vi.set(this, void 0), bi.set(this, void 0), wi.set(this, void 0), Ai.set(this, void 0), Si.set(this, void 0), Er.set(this, void 0), ki.set(this, void 0), this.tag =
|
|
8858
|
+
super(t[0], t[1]), hi.set(this, void 0), pi.set(this, void 0), yi.set(this, void 0), gi.set(this, void 0), mi.set(this, void 0), vi.set(this, void 0), bi.set(this, void 0), wi.set(this, void 0), Ai.set(this, void 0), Si.set(this, void 0), Er.set(this, void 0), ki.set(this, void 0), this.tag = at.CertificateTag;
|
|
8863
8859
|
}
|
|
8864
8860
|
onInit(e) {
|
|
8865
8861
|
}
|
|
@@ -8875,7 +8871,7 @@ class od extends Ht {
|
|
|
8875
8871
|
getExtensions(e) {
|
|
8876
8872
|
return this.extensions.filter((t) => typeof e == "string" ? t.type === e : t instanceof e);
|
|
8877
8873
|
}
|
|
8878
|
-
async verify(e = {}, t =
|
|
8874
|
+
async verify(e = {}, t = wt.get()) {
|
|
8879
8875
|
let i, s;
|
|
8880
8876
|
const n = e.publicKey;
|
|
8881
8877
|
try {
|
|
@@ -8908,7 +8904,7 @@ class od extends Ht {
|
|
|
8908
8904
|
} catch {
|
|
8909
8905
|
return !1;
|
|
8910
8906
|
}
|
|
8911
|
-
const o =
|
|
8907
|
+
const o = Ye.resolveAll(zn).reverse();
|
|
8912
8908
|
let l = null;
|
|
8913
8909
|
for (const h of o)
|
|
8914
8910
|
if (l = h.toWebSignature(i, this.signature), l)
|
|
@@ -8923,20 +8919,20 @@ class od extends Ht {
|
|
|
8923
8919
|
return u && this.notBefore.getTime() < g && g < this.notAfter.getTime();
|
|
8924
8920
|
}
|
|
8925
8921
|
}
|
|
8926
|
-
async getThumbprint(
|
|
8927
|
-
let
|
|
8928
|
-
return e
|
|
8922
|
+
async getThumbprint(e, t) {
|
|
8923
|
+
let i, s = "SHA-1";
|
|
8924
|
+
return e && (typeof e == "object" && "subtle" in e ? i = e : (s = e, i = t)), i ?? (i = wt.get()), await i.subtle.digest(s, this.rawData);
|
|
8929
8925
|
}
|
|
8930
|
-
async isSelfSigned(e =
|
|
8926
|
+
async isSelfSigned(e = wt.get()) {
|
|
8931
8927
|
return this.subject === this.issuer && await this.verify({ signatureOnly: !0 }, e);
|
|
8932
8928
|
}
|
|
8933
8929
|
toTextObject() {
|
|
8934
|
-
const e = this.toTextObjectEmpty(), t = N.parse(this.rawData, Pr), i = t.tbsCertificate, s = new
|
|
8930
|
+
const e = this.toTextObjectEmpty(), t = N.parse(this.rawData, Pr), i = t.tbsCertificate, s = new oe("", {
|
|
8935
8931
|
Version: `${Rr[i.version]} (${i.version})`,
|
|
8936
8932
|
"Serial Number": i.serialNumber,
|
|
8937
8933
|
"Signature Algorithm": gr.serializeAlgorithm(i.signature),
|
|
8938
8934
|
Issuer: this.issuer,
|
|
8939
|
-
Validity: new
|
|
8935
|
+
Validity: new oe("", {
|
|
8940
8936
|
"Not Before": i.validity.notBefore.getTime(),
|
|
8941
8937
|
"Not After": i.validity.notAfter.getTime()
|
|
8942
8938
|
}),
|
|
@@ -8944,14 +8940,14 @@ class od extends Ht {
|
|
|
8944
8940
|
"Subject Public Key Info": this.publicKey
|
|
8945
8941
|
});
|
|
8946
8942
|
if (i.issuerUniqueID && (s["Issuer Unique ID"] = i.issuerUniqueID), i.subjectUniqueID && (s["Subject Unique ID"] = i.subjectUniqueID), this.extensions.length) {
|
|
8947
|
-
const n = new
|
|
8943
|
+
const n = new oe("");
|
|
8948
8944
|
for (const o of this.extensions) {
|
|
8949
8945
|
const l = o.toTextObject();
|
|
8950
|
-
n[l[
|
|
8946
|
+
n[l[oe.NAME]] = l;
|
|
8951
8947
|
}
|
|
8952
8948
|
s.Extensions = n;
|
|
8953
8949
|
}
|
|
8954
|
-
return e.Data = s, e.Signature = new
|
|
8950
|
+
return e.Data = s, e.Signature = new oe("", {
|
|
8955
8951
|
Algorithm: gr.serializeAlgorithm(t.signatureAlgorithm),
|
|
8956
8952
|
"": t.signatureValue
|
|
8957
8953
|
}), e;
|
|
@@ -8963,23 +8959,23 @@ var Yl;
|
|
|
8963
8959
|
(function(r) {
|
|
8964
8960
|
r[r.unspecified = 0] = "unspecified", r[r.keyCompromise = 1] = "keyCompromise", r[r.cACompromise = 2] = "cACompromise", r[r.affiliationChanged = 3] = "affiliationChanged", r[r.superseded = 4] = "superseded", r[r.cessationOfOperation = 5] = "cessationOfOperation", r[r.certificateHold = 6] = "certificateHold", r[r.removeFromCRL = 8] = "removeFromCRL", r[r.privilegeWithdrawn = 9] = "privilegeWithdrawn", r[r.aACompromise = 10] = "aACompromise";
|
|
8965
8961
|
})(Yl || (Yl = {}));
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8962
|
+
ut.register(gf, Qf);
|
|
8963
|
+
ut.register(bf, ed);
|
|
8964
|
+
ut.register(Af, yc);
|
|
8965
|
+
ut.register(xf, Kn);
|
|
8966
|
+
ut.register(So, Hi);
|
|
8967
|
+
ut.register(Cf, gc);
|
|
8968
|
+
ut.register(Eo, rd);
|
|
8969
|
+
ut.register(Ao, id);
|
|
8970
|
+
ut.register(wf, sd);
|
|
8975
8971
|
Wn.register(zf, nd);
|
|
8976
8972
|
Wn.register(pc, mc);
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8973
|
+
Ye.registerSingleton(zn, mp);
|
|
8974
|
+
Ye.registerSingleton(zn, ft);
|
|
8975
|
+
ft.namedCurveSize.set("P-256", 32);
|
|
8976
|
+
ft.namedCurveSize.set("K-256", 32);
|
|
8977
|
+
ft.namedCurveSize.set("P-384", 48);
|
|
8978
|
+
ft.namedCurveSize.set("P-521", 66);
|
|
8983
8979
|
function ad() {
|
|
8984
8980
|
return {
|
|
8985
8981
|
parseMetaCertificateData: (e) => {
|
|
@@ -9013,7 +9009,7 @@ function ad() {
|
|
|
9013
9009
|
}
|
|
9014
9010
|
};
|
|
9015
9011
|
}
|
|
9016
|
-
function
|
|
9012
|
+
function bp() {
|
|
9017
9013
|
const r = ad(), e = ve({}), t = (s) => {
|
|
9018
9014
|
if (!(s.id in e.value))
|
|
9019
9015
|
try {
|
|
@@ -9037,7 +9033,7 @@ function vp() {
|
|
|
9037
9033
|
}
|
|
9038
9034
|
};
|
|
9039
9035
|
}
|
|
9040
|
-
const
|
|
9036
|
+
const wp = {
|
|
9041
9037
|
title: "Certificates",
|
|
9042
9038
|
list: {
|
|
9043
9039
|
toolbar_actions: {
|
|
@@ -9163,7 +9159,7 @@ const bp = {
|
|
|
9163
9159
|
success: "Copied {val} to clipboard",
|
|
9164
9160
|
success_brief: "Successfully copied to clipboard"
|
|
9165
9161
|
}
|
|
9166
|
-
},
|
|
9162
|
+
}, Ap = {
|
|
9167
9163
|
"key-usages": {
|
|
9168
9164
|
KEY_USAGE_TYPE_KEY_CERT_SIGN: "keyCertSign",
|
|
9169
9165
|
KEY_USAGE_TYPE_CRL_SIGN: "cRLSign",
|
|
@@ -9174,8 +9170,8 @@ const bp = {
|
|
|
9174
9170
|
KEY_USAGE_TYPE_KEY_AGREEMENT: "keyAgreement",
|
|
9175
9171
|
KEY_USAGE_TYPE_CONTENT_COMMITMENT: "nonRepudiation"
|
|
9176
9172
|
}
|
|
9177
|
-
},
|
|
9178
|
-
certificates:
|
|
9173
|
+
}, Sp = {
|
|
9174
|
+
certificates: wp,
|
|
9179
9175
|
"ca-certificates": {
|
|
9180
9176
|
title: "CA certificates",
|
|
9181
9177
|
list: {
|
|
@@ -9255,10 +9251,10 @@ const bp = {
|
|
|
9255
9251
|
success_brief: "Successfully copied to clipboard"
|
|
9256
9252
|
}
|
|
9257
9253
|
},
|
|
9258
|
-
general:
|
|
9254
|
+
general: Ap
|
|
9259
9255
|
};
|
|
9260
|
-
function
|
|
9261
|
-
const r = Ad("en-us",
|
|
9256
|
+
function kp() {
|
|
9257
|
+
const r = Ad("en-us", Sp);
|
|
9262
9258
|
return {
|
|
9263
9259
|
i18n: r,
|
|
9264
9260
|
i18nT: Sd(r)
|
|
@@ -9266,8 +9262,8 @@ function Sp() {
|
|
|
9266
9262
|
};
|
|
9267
9263
|
}
|
|
9268
9264
|
const kt = {
|
|
9269
|
-
useCertificate:
|
|
9270
|
-
useI18n:
|
|
9265
|
+
useCertificate: bp,
|
|
9266
|
+
useI18n: kp,
|
|
9271
9267
|
useX509: ad
|
|
9272
9268
|
}, co = "/v2/control-planes/{controlPlaneId}/core-entities/{workspace}", lo = "/{workspace}", Ys = {
|
|
9273
9269
|
list: {
|
|
@@ -9284,7 +9280,7 @@ const kt = {
|
|
|
9284
9280
|
edit: `${lo}/certificates/{id}`
|
|
9285
9281
|
}
|
|
9286
9282
|
}
|
|
9287
|
-
},
|
|
9283
|
+
}, Cp = { class: "kong-ui-entities-certificates-list" }, xp = { class: "button-row" }, Bp = { key: 0 }, Ep = { key: 1 }, Ip = { key: 0 }, Np = { key: 1 }, Op = { key: 0 }, _p = { key: 1 }, Tp = { key: 1 }, jp = /* @__PURE__ */ br({
|
|
9288
9284
|
__name: "CertificateList",
|
|
9289
9285
|
props: {
|
|
9290
9286
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -9401,10 +9397,10 @@ const kt = {
|
|
|
9401
9397
|
}, Ue = async (V) => {
|
|
9402
9398
|
var X;
|
|
9403
9399
|
await ((X = i.canRetrieve) == null ? void 0 : X.call(i, V)) && l.push(i.config.getViewRoute(V.id));
|
|
9404
|
-
},
|
|
9400
|
+
}, pt = (V) => ({
|
|
9405
9401
|
label: s("certificates.actions.view"),
|
|
9406
9402
|
to: i.config.getViewRoute(V)
|
|
9407
|
-
}),
|
|
9403
|
+
}), yt = (V) => ({
|
|
9408
9404
|
label: s("certificates.actions.edit"),
|
|
9409
9405
|
to: i.config.getEditRoute(V)
|
|
9410
9406
|
}), ye = (V) => {
|
|
@@ -9413,7 +9409,7 @@ const kt = {
|
|
|
9413
9409
|
label: s("certificates.actions.addSni"),
|
|
9414
9410
|
to: i.config.getCreateSniRoute(V)
|
|
9415
9411
|
};
|
|
9416
|
-
}, ge = ve(void 0), M = ve(!1), x = ve(!1), me = ve(""), Ee = iu(i.config, z.value), { certificateDataCache: le, getCertificateData: Ie } = kt.useCertificate(),
|
|
9412
|
+
}, ge = ve(void 0), M = ve(!1), x = ve(!1), me = ve(""), Ee = iu(i.config, z.value), { certificateDataCache: le, getCertificateData: Ie } = kt.useCertificate(), Xe = (V) => {
|
|
9417
9413
|
ge.value = V, M.value = !0;
|
|
9418
9414
|
}, S = () => {
|
|
9419
9415
|
M.value = !1;
|
|
@@ -9429,7 +9425,7 @@ const kt = {
|
|
|
9429
9425
|
x.value = !1;
|
|
9430
9426
|
}
|
|
9431
9427
|
}
|
|
9432
|
-
},
|
|
9428
|
+
}, st = () => {
|
|
9433
9429
|
l.push(i.config.createRoute);
|
|
9434
9430
|
};
|
|
9435
9431
|
hs(H, (V) => {
|
|
@@ -9452,7 +9448,7 @@ const kt = {
|
|
|
9452
9448
|
G.value = await i.canCreate(), G.value && (fe.value.title = s("certificates.list.empty_state.title"), fe.value.ctaText = s("certificates.actions.create"));
|
|
9453
9449
|
}), (V, q) => {
|
|
9454
9450
|
const X = be("KButton"), De = be("KEmptyState"), Vt = be("KCopy"), J = be("KDropdownItem"), Ke = be("KClipboardProvider");
|
|
9455
|
-
return D(), se("div",
|
|
9451
|
+
return D(), se("div", Cp, [
|
|
9456
9452
|
k(f(nu), {
|
|
9457
9453
|
"cache-identifier": r.cacheIdentifier,
|
|
9458
9454
|
"disable-sorting": K.value,
|
|
@@ -9476,7 +9472,7 @@ const kt = {
|
|
|
9476
9472
|
"onUpdate:modelValue": q[0] || (q[0] = (L) => ce.value = L),
|
|
9477
9473
|
config: je.value
|
|
9478
9474
|
}, null, 8, ["modelValue", "config"]),
|
|
9479
|
-
k(f(
|
|
9475
|
+
k(f(bt), { "auth-function": r.canCreate }, {
|
|
9480
9476
|
default: v(() => [
|
|
9481
9477
|
r.useToolbarCreationButton ? (D(), Ce(X, {
|
|
9482
9478
|
key: 0,
|
|
@@ -9487,7 +9483,7 @@ const kt = {
|
|
|
9487
9483
|
}, {
|
|
9488
9484
|
default: v(() => [
|
|
9489
9485
|
k(f(sr)),
|
|
9490
|
-
|
|
9486
|
+
ae(" " + $(f(s)("certificates.list.toolbar_actions.new_certificate")), 1)
|
|
9491
9487
|
]),
|
|
9492
9488
|
_: 1
|
|
9493
9489
|
}, 8, ["to"])) : Pe("", !0)
|
|
@@ -9500,7 +9496,7 @@ const kt = {
|
|
|
9500
9496
|
disabled: !r.useActionOutside,
|
|
9501
9497
|
to: "#kong-ui-app-page-header-action-button"
|
|
9502
9498
|
}, [
|
|
9503
|
-
xe("div",
|
|
9499
|
+
xe("div", xp, [
|
|
9504
9500
|
b.value ? (D(), Ce(X, {
|
|
9505
9501
|
key: 0,
|
|
9506
9502
|
appearance: "secondary",
|
|
@@ -9514,7 +9510,7 @@ const kt = {
|
|
|
9514
9510
|
]),
|
|
9515
9511
|
_: 1
|
|
9516
9512
|
})) : Pe("", !0),
|
|
9517
|
-
r.useToolbarCreationButton ? Pe("", !0) : (D(), Ce(f(
|
|
9513
|
+
r.useToolbarCreationButton ? Pe("", !0) : (D(), Ce(f(bt), {
|
|
9518
9514
|
key: 1,
|
|
9519
9515
|
"auth-function": r.canCreate
|
|
9520
9516
|
}, {
|
|
@@ -9527,7 +9523,7 @@ const kt = {
|
|
|
9527
9523
|
}, {
|
|
9528
9524
|
default: v(() => [
|
|
9529
9525
|
k(f(sr)),
|
|
9530
|
-
|
|
9526
|
+
ae(" " + $(f(s)("certificates.list.toolbar_actions.new_certificate")), 1)
|
|
9531
9527
|
]),
|
|
9532
9528
|
_: 1
|
|
9533
9529
|
}, 8, ["size", "to"])
|
|
@@ -9540,19 +9536,19 @@ const kt = {
|
|
|
9540
9536
|
subject: v(({ row: L }) => {
|
|
9541
9537
|
var $e;
|
|
9542
9538
|
return [
|
|
9543
|
-
r.config.app === "konnect" ? (D(), se("b",
|
|
9539
|
+
r.config.app === "konnect" ? (D(), se("b", Bp, $(($e = L == null ? void 0 : L.metadata) != null && $e.subject ? L.metadata.subject : "-"), 1)) : (D(), se("b", Ep, $(f(Ie)(L).schemaSubject || "-"), 1))
|
|
9544
9540
|
];
|
|
9545
9541
|
}),
|
|
9546
9542
|
expiry: v(({ row: L }) => {
|
|
9547
9543
|
var $e;
|
|
9548
9544
|
return [
|
|
9549
|
-
r.config.app === "konnect" ? (D(), se("span",
|
|
9545
|
+
r.config.app === "konnect" ? (D(), se("span", Ip, $(($e = L == null ? void 0 : L.metadata) != null && $e.expiry ? f(n)(L.metadata.expiry) : "-"), 1)) : (D(), se("span", Np, $(f(Ie)(L).schemaExpiry ? f(n)(f(Ie)(L).schemaExpiry) : "-"), 1))
|
|
9550
9546
|
];
|
|
9551
9547
|
}),
|
|
9552
9548
|
san: v(({ row: L }) => {
|
|
9553
9549
|
var $e;
|
|
9554
9550
|
return [
|
|
9555
|
-
r.config.app === "konnect" ? (D(), se("span",
|
|
9551
|
+
r.config.app === "konnect" ? (D(), se("span", Op, $(($e = L == null ? void 0 : L.metadata) != null && $e.dns_names ? `dns=${L.metadata.dns_names.join(", ")}` : "-"), 1)) : (D(), se("span", _p, $(f(Ie)(L).schemaSanNames || "-"), 1))
|
|
9556
9552
|
];
|
|
9557
9553
|
}),
|
|
9558
9554
|
cert: v(({ row: L }) => [
|
|
@@ -9561,7 +9557,7 @@ const kt = {
|
|
|
9561
9557
|
"data-testid": "copy-certificate-cert",
|
|
9562
9558
|
text: L.cert,
|
|
9563
9559
|
truncate: ""
|
|
9564
|
-
}, null, 8, ["text"])) : (D(), se("span",
|
|
9560
|
+
}, null, 8, ["text"])) : (D(), se("span", Tp, "-"))
|
|
9565
9561
|
]),
|
|
9566
9562
|
tags: v(({ row: L }) => [
|
|
9567
9563
|
k(f(ou), {
|
|
@@ -9576,7 +9572,7 @@ const kt = {
|
|
|
9576
9572
|
onClick: (is) => I(L, $e)
|
|
9577
9573
|
}, {
|
|
9578
9574
|
default: v(() => [
|
|
9579
|
-
|
|
9575
|
+
ae($(f(s)("certificates.actions.copy_id")), 1)
|
|
9580
9576
|
]),
|
|
9581
9577
|
_: 1
|
|
9582
9578
|
}, 8, ["onClick"])
|
|
@@ -9590,37 +9586,37 @@ const kt = {
|
|
|
9590
9586
|
onClick: (is) => Z(L, $e)
|
|
9591
9587
|
}, {
|
|
9592
9588
|
default: v(() => [
|
|
9593
|
-
|
|
9589
|
+
ae($(f(s)("certificates.actions.copy_json")), 1)
|
|
9594
9590
|
]),
|
|
9595
9591
|
_: 1
|
|
9596
9592
|
}, 8, ["onClick"])
|
|
9597
9593
|
]),
|
|
9598
9594
|
_: 2
|
|
9599
9595
|
}, 1024),
|
|
9600
|
-
k(f(
|
|
9596
|
+
k(f(bt), {
|
|
9601
9597
|
"auth-function": () => r.canRetrieve(L)
|
|
9602
9598
|
}, {
|
|
9603
9599
|
default: v(() => [
|
|
9604
9600
|
k(J, {
|
|
9605
9601
|
"data-testid": "action-entity-view",
|
|
9606
9602
|
"has-divider": "",
|
|
9607
|
-
item:
|
|
9603
|
+
item: pt(L.id)
|
|
9608
9604
|
}, null, 8, ["item"])
|
|
9609
9605
|
]),
|
|
9610
9606
|
_: 2
|
|
9611
9607
|
}, 1032, ["auth-function"]),
|
|
9612
|
-
k(f(
|
|
9608
|
+
k(f(bt), {
|
|
9613
9609
|
"auth-function": () => r.canEdit(L)
|
|
9614
9610
|
}, {
|
|
9615
9611
|
default: v(() => [
|
|
9616
9612
|
k(J, {
|
|
9617
9613
|
"data-testid": "action-entity-edit",
|
|
9618
|
-
item:
|
|
9614
|
+
item: yt(L.id)
|
|
9619
9615
|
}, null, 8, ["item"])
|
|
9620
9616
|
]),
|
|
9621
9617
|
_: 2
|
|
9622
9618
|
}, 1032, ["auth-function"]),
|
|
9623
|
-
r.config.getCreateSniRoute ? (D(), Ce(f(
|
|
9619
|
+
r.config.getCreateSniRoute ? (D(), Ce(f(bt), {
|
|
9624
9620
|
key: 0,
|
|
9625
9621
|
"auth-function": () => r.canCreateSni()
|
|
9626
9622
|
}, {
|
|
@@ -9632,7 +9628,7 @@ const kt = {
|
|
|
9632
9628
|
]),
|
|
9633
9629
|
_: 2
|
|
9634
9630
|
}, 1032, ["auth-function"])) : Pe("", !0),
|
|
9635
|
-
k(f(
|
|
9631
|
+
k(f(bt), {
|
|
9636
9632
|
"auth-function": () => r.canDelete(L)
|
|
9637
9633
|
}, {
|
|
9638
9634
|
default: v(() => [
|
|
@@ -9640,10 +9636,10 @@ const kt = {
|
|
|
9640
9636
|
danger: "",
|
|
9641
9637
|
"data-testid": "action-entity-delete",
|
|
9642
9638
|
"has-divider": "",
|
|
9643
|
-
onClick: ($e) =>
|
|
9639
|
+
onClick: ($e) => Xe(L)
|
|
9644
9640
|
}, {
|
|
9645
9641
|
default: v(() => [
|
|
9646
|
-
|
|
9642
|
+
ae($(f(s)("certificates.actions.delete")), 1)
|
|
9647
9643
|
]),
|
|
9648
9644
|
_: 1
|
|
9649
9645
|
}, 8, ["onClick"])
|
|
@@ -9671,11 +9667,11 @@ const kt = {
|
|
|
9671
9667
|
G.value ? (D(), Ce(X, {
|
|
9672
9668
|
key: 0,
|
|
9673
9669
|
"data-testid": "entity-create-button",
|
|
9674
|
-
onClick:
|
|
9670
|
+
onClick: st
|
|
9675
9671
|
}, {
|
|
9676
9672
|
default: v(() => [
|
|
9677
9673
|
k(f(sr), { decorative: "" }),
|
|
9678
|
-
|
|
9674
|
+
ae(" " + $(f(s)("certificates.list.empty_state_v2.create")), 1)
|
|
9679
9675
|
]),
|
|
9680
9676
|
_: 1
|
|
9681
9677
|
})) : Pe("", !0),
|
|
@@ -9686,7 +9682,7 @@ const kt = {
|
|
|
9686
9682
|
}, {
|
|
9687
9683
|
default: v(() => [
|
|
9688
9684
|
k(f(ys), { decorative: "" }),
|
|
9689
|
-
|
|
9685
|
+
ae(" " + $(f(s)("certificates.list.empty_state_v2.learn_more")), 1)
|
|
9690
9686
|
]),
|
|
9691
9687
|
_: 1
|
|
9692
9688
|
})
|
|
@@ -9696,7 +9692,7 @@ const kt = {
|
|
|
9696
9692
|
(L = r.config) != null && L.isControlPlaneGroup ? {
|
|
9697
9693
|
name: "default",
|
|
9698
9694
|
fn: v(() => [
|
|
9699
|
-
|
|
9695
|
+
ae($(f(s)("certificates.list.empty_state_v2.group")), 1)
|
|
9700
9696
|
]),
|
|
9701
9697
|
key: "0"
|
|
9702
9698
|
} : void 0
|
|
@@ -9737,7 +9733,7 @@ const kt = {
|
|
|
9737
9733
|
for (const [i, s] of e)
|
|
9738
9734
|
t[i] = s;
|
|
9739
9735
|
return t;
|
|
9740
|
-
},
|
|
9736
|
+
}, om = /* @__PURE__ */ kr(jp, [["__scopeId", "data-v-7b9523fb"]]), Vp = { class: "sni-field-container" }, Rp = /* @__PURE__ */ br({
|
|
9741
9737
|
__name: "CertificateFormSniField",
|
|
9742
9738
|
props: {
|
|
9743
9739
|
isEditing: {
|
|
@@ -9762,17 +9758,17 @@ const kt = {
|
|
|
9762
9758
|
i("update:modelValue", l);
|
|
9763
9759
|
}, { deep: !0 }), (l, u) => {
|
|
9764
9760
|
const h = be("KLabel"), g = be("KInput"), b = be("router-link"), K = be("KButton");
|
|
9765
|
-
return D(), se("div",
|
|
9761
|
+
return D(), se("div", Vp, [
|
|
9766
9762
|
k(h, {
|
|
9767
9763
|
info: f(n)("certificates.form.fields.snis.tooltip")
|
|
9768
9764
|
}, {
|
|
9769
9765
|
default: v(() => [
|
|
9770
|
-
|
|
9766
|
+
ae($(f(n)("certificates.form.fields.snis.label")), 1)
|
|
9771
9767
|
]),
|
|
9772
9768
|
_: 1
|
|
9773
9769
|
}, 8, ["info"]),
|
|
9774
|
-
r.isEditing ? (D(), se(
|
|
9775
|
-
(D(!0), se(
|
|
9770
|
+
r.isEditing ? (D(), se(ot, { key: 0 }, [
|
|
9771
|
+
(D(!0), se(ot, null, _r(o.value, (he, re) => (D(), se(ot, { key: re }, [
|
|
9776
9772
|
o.value[re] ? (D(), Ce(g, {
|
|
9777
9773
|
key: 0,
|
|
9778
9774
|
modelValue: o.value[re],
|
|
@@ -9787,15 +9783,15 @@ const kt = {
|
|
|
9787
9783
|
link: v(() => [
|
|
9788
9784
|
k(b, { to: r.sniListRoute }, {
|
|
9789
9785
|
default: v(() => [
|
|
9790
|
-
|
|
9786
|
+
ae($(f(n)("certificates.form.fields.snis.editingTipLink")), 1)
|
|
9791
9787
|
]),
|
|
9792
9788
|
_: 1
|
|
9793
9789
|
}, 8, ["to"])
|
|
9794
9790
|
]),
|
|
9795
9791
|
_: 1
|
|
9796
9792
|
})
|
|
9797
|
-
], 64)) : (D(), se(
|
|
9798
|
-
(D(!0), se(
|
|
9793
|
+
], 64)) : (D(), se(ot, { key: 1 }, [
|
|
9794
|
+
(D(!0), se(ot, null, _r(o.value, (he, re) => (D(), se("div", {
|
|
9799
9795
|
key: re,
|
|
9800
9796
|
class: "sni-field-row"
|
|
9801
9797
|
}, [
|
|
@@ -9827,7 +9823,7 @@ const kt = {
|
|
|
9827
9823
|
}, {
|
|
9828
9824
|
default: v(() => [
|
|
9829
9825
|
k(f(sr)),
|
|
9830
|
-
|
|
9826
|
+
ae(" " + $(f(n)("certificates.form.fields.snis.add")), 1)
|
|
9831
9827
|
]),
|
|
9832
9828
|
_: 1
|
|
9833
9829
|
})
|
|
@@ -9835,7 +9831,7 @@ const kt = {
|
|
|
9835
9831
|
]);
|
|
9836
9832
|
};
|
|
9837
9833
|
}
|
|
9838
|
-
}), Zl = /* @__PURE__ */ kr(
|
|
9834
|
+
}), Zl = /* @__PURE__ */ kr(Rp, [["__scopeId", "data-v-9ebb5650"]]), Pp = { class: "kong-ui-entities-certificates-form" }, Mp = { class: "certificate-source-selector" }, Up = { class: "certificate-source-options" }, Dp = /* @__PURE__ */ br({
|
|
9839
9835
|
__name: "CertificateForm",
|
|
9840
9836
|
props: {
|
|
9841
9837
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -9866,11 +9862,11 @@ const kt = {
|
|
|
9866
9862
|
var x;
|
|
9867
9863
|
(x = K.value) == null || x.call(K, M), b.value = !1;
|
|
9868
9864
|
}, z = ve("ssl"), ce = ve(!1), je = (M) => M.replace(/^(\{vault:\/\/[^/]+\/[^/}]+)(?:\/[^}]*)?\}$/, "$1}"), Ve = (M, x) => `${je(M).slice(0, -1)}/${x}}`, H = (M, x, me, Ee) => {
|
|
9869
|
-
const le = /^\{vault:\/\/([^/]+\/[^/]+)\/cert\}$/, Ie = /^\{vault:\/\/([^/]+\/[^/]+)\/key\}$/,
|
|
9870
|
-
if (!
|
|
9865
|
+
const le = /^\{vault:\/\/([^/]+\/[^/]+)\/cert\}$/, Ie = /^\{vault:\/\/([^/]+\/[^/]+)\/key\}$/, Xe = M.match(le), S = x.match(Ie);
|
|
9866
|
+
if (!Xe || !S || Xe[1] !== S[1]) return !1;
|
|
9871
9867
|
if (me || Ee) {
|
|
9872
|
-
const Ne = me == null ? void 0 : me.match(le),
|
|
9873
|
-
if (!Ne || !
|
|
9868
|
+
const Ne = me == null ? void 0 : me.match(le), st = Ee == null ? void 0 : Ee.match(Ie);
|
|
9869
|
+
if (!Ne || !st || Ne[1] !== st[1]) return !1;
|
|
9874
9870
|
}
|
|
9875
9871
|
return !0;
|
|
9876
9872
|
}, y = ps({
|
|
@@ -9907,11 +9903,11 @@ const kt = {
|
|
|
9907
9903
|
y.fields.snis.push("");
|
|
9908
9904
|
}, Ue = (M) => {
|
|
9909
9905
|
y.fields.snis.splice(M, 1);
|
|
9910
|
-
},
|
|
9906
|
+
}, pt = ie(() => {
|
|
9911
9907
|
var x, me;
|
|
9912
9908
|
let M = `${i.config.apiBaseUrl}${Ys.form[i.config.app][g.value]}`;
|
|
9913
9909
|
return i.config.app === "konnect" && (M = M.replace(/{controlPlaneId}/gi, ((x = i.config) == null ? void 0 : x.controlPlaneId) || "")), M.replace(/\/{workspace}/gi, (me = i.config) != null && me.workspace ? `/${i.config.workspace}` : "").replace(/{id}/gi, i.certificateId ?? "");
|
|
9914
|
-
}),
|
|
9910
|
+
}), yt = ie(() => {
|
|
9915
9911
|
var M, x, me, Ee;
|
|
9916
9912
|
return i.config.azureCertsVaultAvailable && z.value === "azure" ? {
|
|
9917
9913
|
cert: Ve(y.fields.vault, "cert"),
|
|
@@ -9929,16 +9925,16 @@ const kt = {
|
|
|
9929
9925
|
tags: (Ee = (me = y.fields.tags.split(",")) == null ? void 0 : me.map((le) => String(le || "").trim())) == null ? void 0 : Ee.filter((le) => le !== "")
|
|
9930
9926
|
};
|
|
9931
9927
|
}), ye = async () => {
|
|
9932
|
-
var M, x, me, Ee, le, Ie,
|
|
9928
|
+
var M, x, me, Ee, le, Ie, Xe, S, Ne, st, fe;
|
|
9933
9929
|
try {
|
|
9934
9930
|
y.isReadonly = !0;
|
|
9935
9931
|
let G;
|
|
9936
9932
|
const W = i.config.azureCertsVaultAvailable && z.value === "azure" ? {
|
|
9937
|
-
...
|
|
9933
|
+
...yt.value,
|
|
9938
9934
|
vault: y.fields.vault || null,
|
|
9939
9935
|
vault_alt: y.fields.vaultAlt || null
|
|
9940
|
-
} :
|
|
9941
|
-
g.value === "create" ? G = await u.post(
|
|
9936
|
+
} : yt.value;
|
|
9937
|
+
g.value === "create" ? G = await u.post(pt.value, W) : g.value === "edit" && (G = ((M = i.config) == null ? void 0 : M.app) === "konnect" ? await u.put(pt.value, W) : await u.patch(pt.value, W)), i.config.azureCertsVaultAvailable && z.value === "azure" ? (y.fields.vault = (x = G == null ? void 0 : G.data) != null && x.cert ? je(G.data.cert) : "", y.fields.vaultAlt = (me = G == null ? void 0 : G.data) != null && me.cert_alt ? je(G.data.cert_alt) : "", y.fields.cert = "", y.fields.key = "", y.fields.certAlt = "", y.fields.keyAlt = "") : (y.fields.cert = ((Ee = G == null ? void 0 : G.data) == null ? void 0 : Ee.cert) || "", y.fields.key = ((le = G == null ? void 0 : G.data) == null ? void 0 : le.key) || "", y.fields.certAlt = ((Ie = G == null ? void 0 : G.data) == null ? void 0 : Ie.cert_alt) || "", y.fields.keyAlt = ((Xe = G == null ? void 0 : G.data) == null ? void 0 : Xe.key_alt) || "", y.fields.vault = "", y.fields.vaultAlt = ""), y.fields.snis = (Ne = (S = G == null ? void 0 : G.data) == null ? void 0 : S.snis) != null && Ne.length ? G.data.snis : [""], y.fields.tags = ((fe = (st = G == null ? void 0 : G.data) == null ? void 0 : st.tags) == null ? void 0 : fe.join(", ")) || "", Object.assign(pe, y.fields), t("update", G == null ? void 0 : G.data);
|
|
9942
9938
|
} catch (G) {
|
|
9943
9939
|
y.errorMessage = l(G), t("error", G);
|
|
9944
9940
|
} finally {
|
|
@@ -9946,8 +9942,8 @@ const kt = {
|
|
|
9946
9942
|
}
|
|
9947
9943
|
};
|
|
9948
9944
|
return (M, x) => {
|
|
9949
|
-
const me = be("KLabel"), Ee = be("KRadio"), le = be("KTextArea"), Ie = be("KInput"),
|
|
9950
|
-
return D(), se("div",
|
|
9945
|
+
const me = be("KLabel"), Ee = be("KRadio"), le = be("KTextArea"), Ie = be("KInput"), Xe = be("KCollapse");
|
|
9946
|
+
return D(), se("div", Pp, [
|
|
9951
9947
|
k(f(fu), {
|
|
9952
9948
|
"align-action-button-to-left": r.config.azureCertsVaultAvailable,
|
|
9953
9949
|
"can-submit": Me.value,
|
|
@@ -9956,7 +9952,7 @@ const kt = {
|
|
|
9956
9952
|
"entity-type": f(en).Certificate,
|
|
9957
9953
|
"error-message": y.errorMessage,
|
|
9958
9954
|
"fetch-url": h.value,
|
|
9959
|
-
"form-fields":
|
|
9955
|
+
"form-fields": yt.value,
|
|
9960
9956
|
"is-readonly": y.isReadonly,
|
|
9961
9957
|
onCancel: I,
|
|
9962
9958
|
"onFetch:error": x[21] || (x[21] = (S) => M.$emit("error", S)),
|
|
@@ -9965,20 +9961,20 @@ const kt = {
|
|
|
9965
9961
|
onSubmit: ye
|
|
9966
9962
|
}, {
|
|
9967
9963
|
default: v(() => [
|
|
9968
|
-
r.config.azureCertsVaultAvailable ? (D(), se(
|
|
9964
|
+
r.config.azureCertsVaultAvailable ? (D(), se(ot, { key: 0 }, [
|
|
9969
9965
|
k(f(Sc), {
|
|
9970
9966
|
step: 1,
|
|
9971
9967
|
title: f(o)("certificates.form.sections.certificate_config.title")
|
|
9972
9968
|
}, {
|
|
9973
9969
|
default: v(() => [
|
|
9974
|
-
xe("div",
|
|
9970
|
+
xe("div", Mp, [
|
|
9975
9971
|
k(me, null, {
|
|
9976
9972
|
default: v(() => [
|
|
9977
|
-
|
|
9973
|
+
ae($(f(o)("certificates.form.source_type.question")), 1)
|
|
9978
9974
|
]),
|
|
9979
9975
|
_: 1
|
|
9980
9976
|
}),
|
|
9981
|
-
xe("div",
|
|
9977
|
+
xe("div", Up, [
|
|
9982
9978
|
k(Ee, {
|
|
9983
9979
|
modelValue: z.value,
|
|
9984
9980
|
"onUpdate:modelValue": x[0] || (x[0] = (S) => z.value = S),
|
|
@@ -10013,7 +10009,7 @@ const kt = {
|
|
|
10013
10009
|
}, 8, ["modelValue", "description", "label", "readonly"])
|
|
10014
10010
|
])
|
|
10015
10011
|
]),
|
|
10016
|
-
z.value === "ssl" ? (D(), se(
|
|
10012
|
+
z.value === "ssl" ? (D(), se(ot, { key: 0 }, [
|
|
10017
10013
|
k(le, {
|
|
10018
10014
|
modelValue: y.fields.cert,
|
|
10019
10015
|
"onUpdate:modelValue": x[2] || (x[2] = (S) => y.fields.cert = S),
|
|
@@ -10112,7 +10108,7 @@ const kt = {
|
|
|
10112
10108
|
]),
|
|
10113
10109
|
_: 1
|
|
10114
10110
|
}, 8, ["modelValue", "label", "readonly"])
|
|
10115
|
-
], 64)) : (D(), se(
|
|
10111
|
+
], 64)) : (D(), se(ot, { key: 1 }, [
|
|
10116
10112
|
xe("div", null, [
|
|
10117
10113
|
k(Ie, {
|
|
10118
10114
|
modelValue: y.fields.vault,
|
|
@@ -10171,7 +10167,7 @@ const kt = {
|
|
|
10171
10167
|
title: f(o)("certificates.form.sections.general.title")
|
|
10172
10168
|
}, {
|
|
10173
10169
|
default: v(() => [
|
|
10174
|
-
k(
|
|
10170
|
+
k(Xe, {
|
|
10175
10171
|
modelValue: ce.value,
|
|
10176
10172
|
"onUpdate:modelValue": x[13] || (x[13] = (S) => ce.value = S),
|
|
10177
10173
|
"trigger-label": f(o)("certificates.form.fields.tags.show_label")
|
|
@@ -10199,7 +10195,7 @@ const kt = {
|
|
|
10199
10195
|
]),
|
|
10200
10196
|
_: 1
|
|
10201
10197
|
}, 8, ["description", "title"])
|
|
10202
|
-
], 64)) : (D(), se(
|
|
10198
|
+
], 64)) : (D(), se(ot, { key: 1 }, [
|
|
10203
10199
|
k(f(gs), {
|
|
10204
10200
|
description: f(o)("certificates.form.sections.ssl.description"),
|
|
10205
10201
|
title: f(o)("certificates.form.sections.ssl.title")
|
|
@@ -10355,7 +10351,7 @@ const kt = {
|
|
|
10355
10351
|
]);
|
|
10356
10352
|
};
|
|
10357
10353
|
}
|
|
10358
|
-
}),
|
|
10354
|
+
}), am = /* @__PURE__ */ kr(Dp, [["__scopeId", "data-v-8beed3bc"]]), uo = "/v2/control-planes/{controlPlaneId}/core-entities", fo = "/{workspace}", Zs = {
|
|
10359
10355
|
list: {
|
|
10360
10356
|
konnect: `${uo}/ca_certificates`,
|
|
10361
10357
|
kongManager: `${fo}/ca_certificates`
|
|
@@ -10376,7 +10372,7 @@ const kt = {
|
|
|
10376
10372
|
return i;
|
|
10377
10373
|
}
|
|
10378
10374
|
return r;
|
|
10379
|
-
},
|
|
10375
|
+
}, $p = { class: "kong-ui-ca-certificate-entity-config-card" }, Hp = { key: 0 }, Lp = /* @__PURE__ */ br({
|
|
10380
10376
|
__name: "CACertificateConfigCard",
|
|
10381
10377
|
props: {
|
|
10382
10378
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -10469,7 +10465,7 @@ const kt = {
|
|
|
10469
10465
|
});
|
|
10470
10466
|
return (H, y) => {
|
|
10471
10467
|
const pe = be("KCodeBlock"), Me = be("KLabel"), ue = be("KBadge");
|
|
10472
|
-
return D(), se("div",
|
|
10468
|
+
return D(), se("div", $p, [
|
|
10473
10469
|
k(f(pu), {
|
|
10474
10470
|
"code-block-record-formatter": f(cd),
|
|
10475
10471
|
config: r.config,
|
|
@@ -10494,13 +10490,13 @@ const kt = {
|
|
|
10494
10490
|
"metadata-label": v(() => [
|
|
10495
10491
|
k(Me, { class: "metadata-label" }, {
|
|
10496
10492
|
default: v(() => [...y[2] || (y[2] = [
|
|
10497
|
-
|
|
10493
|
+
ae(" Metadata ", -1)
|
|
10498
10494
|
])]),
|
|
10499
10495
|
_: 1
|
|
10500
10496
|
})
|
|
10501
10497
|
]),
|
|
10502
10498
|
metadata: v((I) => [
|
|
10503
|
-
(D(!0), se(
|
|
10499
|
+
(D(!0), se(ot, null, _r(Object.keys(f(u)("rowValue", I)).filter((Z) => !t.includes(Z)), (Z) => (D(), Ce(f(yu), {
|
|
10504
10500
|
key: Z,
|
|
10505
10501
|
"data-testid": `ca-cert-metadata-${Z}`,
|
|
10506
10502
|
item: {
|
|
@@ -10512,14 +10508,14 @@ const kt = {
|
|
|
10512
10508
|
}, null, 8, ["data-testid", "item"]))), 128))
|
|
10513
10509
|
]),
|
|
10514
10510
|
expiry: v(() => [
|
|
10515
|
-
|
|
10511
|
+
ae($(re.value || "–"), 1)
|
|
10516
10512
|
]),
|
|
10517
10513
|
issuer: v(() => [
|
|
10518
|
-
|
|
10514
|
+
ae($(he.value || "–"), 1)
|
|
10519
10515
|
]),
|
|
10520
10516
|
key_usages: v(() => [
|
|
10521
|
-
z.value.length ? Pe("", !0) : (D(), se("div",
|
|
10522
|
-
(D(!0), se(
|
|
10517
|
+
z.value.length ? Pe("", !0) : (D(), se("div", Hp, $("–"))),
|
|
10518
|
+
(D(!0), se(ot, null, _r(z.value, (I, Z) => (D(), Ce(ue, {
|
|
10523
10519
|
key: `key_usages-badge-tag-${Z}`,
|
|
10524
10520
|
class: "config-badge",
|
|
10525
10521
|
"data-testid": `key_usages-badge-tag-${Z}`,
|
|
@@ -10527,7 +10523,7 @@ const kt = {
|
|
|
10527
10523
|
"truncation-tooltip": ""
|
|
10528
10524
|
}, {
|
|
10529
10525
|
default: v(() => [
|
|
10530
|
-
|
|
10526
|
+
ae($(I), 1)
|
|
10531
10527
|
]),
|
|
10532
10528
|
_: 2
|
|
10533
10529
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
@@ -10537,7 +10533,7 @@ const kt = {
|
|
|
10537
10533
|
]);
|
|
10538
10534
|
};
|
|
10539
10535
|
}
|
|
10540
|
-
}),
|
|
10536
|
+
}), cm = /* @__PURE__ */ kr(Lp, [["__scopeId", "data-v-c45f5086"]]), Fp = { class: "kong-ui-entities-ca-certificates-list" }, qp = { class: "button-row" }, Kp = { key: 0 }, Wp = { key: 1 }, zp = { key: 0 }, Gp = { key: 1 }, Jp = /* @__PURE__ */ br({
|
|
10541
10537
|
__name: "CACertificateList",
|
|
10542
10538
|
props: {
|
|
10543
10539
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -10646,15 +10642,15 @@ const kt = {
|
|
|
10646
10642
|
}, Ue = async (W) => {
|
|
10647
10643
|
var q;
|
|
10648
10644
|
await ((q = i.canRetrieve) == null ? void 0 : q.call(i, W)) && l.push(i.config.getViewRoute(W.id));
|
|
10649
|
-
},
|
|
10645
|
+
}, pt = (W) => ({
|
|
10650
10646
|
label: s("ca-certificates.actions.view"),
|
|
10651
10647
|
to: i.config.getViewRoute(W)
|
|
10652
|
-
}),
|
|
10648
|
+
}), yt = (W) => ({
|
|
10653
10649
|
label: s("ca-certificates.actions.edit"),
|
|
10654
10650
|
to: i.config.getEditRoute(W)
|
|
10655
10651
|
}), ye = ve(void 0), ge = ve(!1), M = ve(!1), x = ve(""), me = iu(i.config, z.value), { certificateDataCache: Ee, getCertificateData: le } = kt.useCertificate(), Ie = (W) => {
|
|
10656
10652
|
ye.value = W, ge.value = !0;
|
|
10657
|
-
},
|
|
10653
|
+
}, Xe = () => {
|
|
10658
10654
|
ge.value = !1;
|
|
10659
10655
|
}, S = async () => {
|
|
10660
10656
|
var W, V, q;
|
|
@@ -10681,21 +10677,21 @@ const kt = {
|
|
|
10681
10677
|
}
|
|
10682
10678
|
Ee.value = {}, ue.value = null;
|
|
10683
10679
|
});
|
|
10684
|
-
const
|
|
10680
|
+
const st = ve({
|
|
10685
10681
|
ctaPath: i.config.createRoute,
|
|
10686
10682
|
ctaText: void 0,
|
|
10687
10683
|
message: `${s("ca-certificates.list.empty_state.description")}${i.config.additionMessageForEmptyState ? ` ${i.config.additionMessageForEmptyState}` : ""}`,
|
|
10688
10684
|
title: s("ca-certificates.title")
|
|
10689
10685
|
}), fe = ve(!1);
|
|
10690
10686
|
return Xl(async () => {
|
|
10691
|
-
fe.value = await i.canCreate(), fe.value && (
|
|
10687
|
+
fe.value = await i.canCreate(), fe.value && (st.value.title = s("ca-certificates.list.empty_state.title"), st.value.ctaText = s("ca-certificates.actions.create"));
|
|
10692
10688
|
}), (W, V) => {
|
|
10693
10689
|
const q = be("KButton"), X = be("KEmptyState"), De = be("KDropdownItem"), Vt = be("KClipboardProvider");
|
|
10694
|
-
return D(), se("div",
|
|
10690
|
+
return D(), se("div", Fp, [
|
|
10695
10691
|
k(f(nu), {
|
|
10696
10692
|
"cache-identifier": r.cacheIdentifier,
|
|
10697
10693
|
"disable-sorting": K.value,
|
|
10698
|
-
"empty-state-options":
|
|
10694
|
+
"empty-state-options": st.value,
|
|
10699
10695
|
"enable-entity-actions": "",
|
|
10700
10696
|
"error-message": ue.value,
|
|
10701
10697
|
fetcher: f(Ve),
|
|
@@ -10715,7 +10711,7 @@ const kt = {
|
|
|
10715
10711
|
"onUpdate:modelValue": V[0] || (V[0] = (J) => ce.value = J),
|
|
10716
10712
|
config: je.value
|
|
10717
10713
|
}, null, 8, ["modelValue", "config"]),
|
|
10718
|
-
r.useToolbarCreationButton ? (D(), Ce(f(
|
|
10714
|
+
r.useToolbarCreationButton ? (D(), Ce(f(bt), {
|
|
10719
10715
|
key: 0,
|
|
10720
10716
|
"auth-function": r.canCreate
|
|
10721
10717
|
}, {
|
|
@@ -10728,7 +10724,7 @@ const kt = {
|
|
|
10728
10724
|
}, {
|
|
10729
10725
|
default: v(() => [
|
|
10730
10726
|
k(f(sr)),
|
|
10731
|
-
|
|
10727
|
+
ae(" " + $(f(s)("ca-certificates.list.toolbar_actions.new_ca_certificate")), 1)
|
|
10732
10728
|
]),
|
|
10733
10729
|
_: 1
|
|
10734
10730
|
}, 8, ["to"])
|
|
@@ -10741,7 +10737,7 @@ const kt = {
|
|
|
10741
10737
|
disabled: !r.useActionOutside,
|
|
10742
10738
|
to: "#kong-ui-app-page-header-action-button"
|
|
10743
10739
|
}, [
|
|
10744
|
-
xe("div",
|
|
10740
|
+
xe("div", qp, [
|
|
10745
10741
|
b.value ? (D(), Ce(q, {
|
|
10746
10742
|
key: 0,
|
|
10747
10743
|
appearance: "secondary",
|
|
@@ -10755,7 +10751,7 @@ const kt = {
|
|
|
10755
10751
|
]),
|
|
10756
10752
|
_: 1
|
|
10757
10753
|
})) : Pe("", !0),
|
|
10758
|
-
r.useToolbarCreationButton ? Pe("", !0) : (D(), Ce(f(
|
|
10754
|
+
r.useToolbarCreationButton ? Pe("", !0) : (D(), Ce(f(bt), {
|
|
10759
10755
|
key: 1,
|
|
10760
10756
|
"auth-function": r.canCreate
|
|
10761
10757
|
}, {
|
|
@@ -10768,7 +10764,7 @@ const kt = {
|
|
|
10768
10764
|
}, {
|
|
10769
10765
|
default: v(() => [
|
|
10770
10766
|
k(f(sr)),
|
|
10771
|
-
|
|
10767
|
+
ae(" " + $(f(s)("ca-certificates.list.toolbar_actions.new_ca_certificate")), 1)
|
|
10772
10768
|
]),
|
|
10773
10769
|
_: 1
|
|
10774
10770
|
}, 8, ["size", "to"])
|
|
@@ -10781,13 +10777,13 @@ const kt = {
|
|
|
10781
10777
|
issuer: v(({ row: J }) => {
|
|
10782
10778
|
var Ke;
|
|
10783
10779
|
return [
|
|
10784
|
-
r.config.app === "konnect" ? (D(), se("b",
|
|
10780
|
+
r.config.app === "konnect" ? (D(), se("b", Kp, $((Ke = J == null ? void 0 : J.metadata) != null && Ke.issuer ? J.metadata.issuer : "-"), 1)) : (D(), se("b", Wp, $(f(le)(J).schemaIssuer || "-"), 1))
|
|
10785
10781
|
];
|
|
10786
10782
|
}),
|
|
10787
10783
|
expiry: v(({ row: J }) => {
|
|
10788
10784
|
var Ke;
|
|
10789
10785
|
return [
|
|
10790
|
-
r.config.app === "konnect" ? (D(), se("span",
|
|
10786
|
+
r.config.app === "konnect" ? (D(), se("span", zp, $((Ke = J == null ? void 0 : J.metadata) != null && Ke.expiry ? f(n)(J.metadata.expiry) : "-"), 1)) : (D(), se("span", Gp, $(f(le)(J).schemaExpiry ? f(n)(f(le)(J).schemaExpiry) : "-"), 1))
|
|
10791
10787
|
];
|
|
10792
10788
|
}),
|
|
10793
10789
|
tags: v(({ row: J }) => [
|
|
@@ -10803,7 +10799,7 @@ const kt = {
|
|
|
10803
10799
|
onClick: (L) => I(J, Ke)
|
|
10804
10800
|
}, {
|
|
10805
10801
|
default: v(() => [
|
|
10806
|
-
|
|
10802
|
+
ae($(f(s)("ca-certificates.actions.copy_id")), 1)
|
|
10807
10803
|
]),
|
|
10808
10804
|
_: 1
|
|
10809
10805
|
}, 8, ["onClick"])
|
|
@@ -10817,37 +10813,37 @@ const kt = {
|
|
|
10817
10813
|
onClick: (L) => Z(J, Ke)
|
|
10818
10814
|
}, {
|
|
10819
10815
|
default: v(() => [
|
|
10820
|
-
|
|
10816
|
+
ae($(f(s)("ca-certificates.actions.copy_json")), 1)
|
|
10821
10817
|
]),
|
|
10822
10818
|
_: 1
|
|
10823
10819
|
}, 8, ["onClick"])
|
|
10824
10820
|
]),
|
|
10825
10821
|
_: 2
|
|
10826
10822
|
}, 1024),
|
|
10827
|
-
k(f(
|
|
10823
|
+
k(f(bt), {
|
|
10828
10824
|
"auth-function": () => r.canRetrieve(J)
|
|
10829
10825
|
}, {
|
|
10830
10826
|
default: v(() => [
|
|
10831
10827
|
k(De, {
|
|
10832
10828
|
"data-testid": "action-entity-view",
|
|
10833
10829
|
"has-divider": "",
|
|
10834
|
-
item:
|
|
10830
|
+
item: pt(J.id)
|
|
10835
10831
|
}, null, 8, ["item"])
|
|
10836
10832
|
]),
|
|
10837
10833
|
_: 2
|
|
10838
10834
|
}, 1032, ["auth-function"]),
|
|
10839
|
-
k(f(
|
|
10835
|
+
k(f(bt), {
|
|
10840
10836
|
"auth-function": () => r.canEdit(J)
|
|
10841
10837
|
}, {
|
|
10842
10838
|
default: v(() => [
|
|
10843
10839
|
k(De, {
|
|
10844
10840
|
"data-testid": "action-entity-edit",
|
|
10845
|
-
item:
|
|
10841
|
+
item: yt(J.id)
|
|
10846
10842
|
}, null, 8, ["item"])
|
|
10847
10843
|
]),
|
|
10848
10844
|
_: 2
|
|
10849
10845
|
}, 1032, ["auth-function"]),
|
|
10850
|
-
k(f(
|
|
10846
|
+
k(f(bt), {
|
|
10851
10847
|
"auth-function": () => r.canDelete(J)
|
|
10852
10848
|
}, {
|
|
10853
10849
|
default: v(() => [
|
|
@@ -10858,7 +10854,7 @@ const kt = {
|
|
|
10858
10854
|
onClick: (Ke) => Ie(J)
|
|
10859
10855
|
}, {
|
|
10860
10856
|
default: v(() => [
|
|
10861
|
-
|
|
10857
|
+
ae($(f(s)("ca-certificates.actions.delete")), 1)
|
|
10862
10858
|
]),
|
|
10863
10859
|
_: 1
|
|
10864
10860
|
}, 8, ["onClick"])
|
|
@@ -10890,7 +10886,7 @@ const kt = {
|
|
|
10890
10886
|
}, {
|
|
10891
10887
|
default: v(() => [
|
|
10892
10888
|
k(f(sr), { decorative: "" }),
|
|
10893
|
-
|
|
10889
|
+
ae(" " + $(f(s)("ca-certificates.list.empty_state_v2.create")), 1)
|
|
10894
10890
|
]),
|
|
10895
10891
|
_: 1
|
|
10896
10892
|
})) : Pe("", !0),
|
|
@@ -10901,7 +10897,7 @@ const kt = {
|
|
|
10901
10897
|
}, {
|
|
10902
10898
|
default: v(() => [
|
|
10903
10899
|
k(f(ys), { decorative: "" }),
|
|
10904
|
-
|
|
10900
|
+
ae(" " + $(f(s)("ca-certificates.list.empty_state_v2.learn_more")), 1)
|
|
10905
10901
|
]),
|
|
10906
10902
|
_: 1
|
|
10907
10903
|
})
|
|
@@ -10911,7 +10907,7 @@ const kt = {
|
|
|
10911
10907
|
(J = r.config) != null && J.isControlPlaneGroup ? {
|
|
10912
10908
|
name: "default",
|
|
10913
10909
|
fn: v(() => [
|
|
10914
|
-
|
|
10910
|
+
ae($(f(s)("ca-certificates.list.empty_state_v2.group")), 1)
|
|
10915
10911
|
]),
|
|
10916
10912
|
key: "0"
|
|
10917
10913
|
} : void 0
|
|
@@ -10927,7 +10923,7 @@ const kt = {
|
|
|
10927
10923
|
error: x.value,
|
|
10928
10924
|
title: f(s)("ca-certificates.delete.title"),
|
|
10929
10925
|
visible: ge.value,
|
|
10930
|
-
onCancel:
|
|
10926
|
+
onCancel: Xe,
|
|
10931
10927
|
onProceed: S
|
|
10932
10928
|
}, {
|
|
10933
10929
|
description: v(() => [
|
|
@@ -10947,7 +10943,7 @@ const kt = {
|
|
|
10947
10943
|
]);
|
|
10948
10944
|
};
|
|
10949
10945
|
}
|
|
10950
|
-
}),
|
|
10946
|
+
}), lm = /* @__PURE__ */ kr(Jp, [["__scopeId", "data-v-9bc5b5ee"]]), Yp = { class: "kong-ui-entities-ca-certificates-form" }, Zp = /* @__PURE__ */ br({
|
|
10951
10947
|
__name: "CACertificateForm",
|
|
10952
10948
|
props: {
|
|
10953
10949
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -11008,7 +11004,7 @@ const kt = {
|
|
|
11008
11004
|
};
|
|
11009
11005
|
return (H, y) => {
|
|
11010
11006
|
const pe = be("KTextArea"), Me = be("KInput");
|
|
11011
|
-
return D(), se("div",
|
|
11007
|
+
return D(), se("div", Yp, [
|
|
11012
11008
|
k(f(fu), {
|
|
11013
11009
|
"can-submit": K.value,
|
|
11014
11010
|
config: r.config,
|
|
@@ -11088,7 +11084,7 @@ const kt = {
|
|
|
11088
11084
|
]);
|
|
11089
11085
|
};
|
|
11090
11086
|
}
|
|
11091
|
-
}),
|
|
11087
|
+
}), um = /* @__PURE__ */ kr(Zp, [["__scopeId", "data-v-65a16c52"]]), Xp = { class: "kong-ui-certificate-entity-config-card" }, Qp = { key: 0 }, ey = /* @__PURE__ */ br({
|
|
11092
11088
|
__name: "CertificateConfigCard",
|
|
11093
11089
|
props: {
|
|
11094
11090
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -11214,8 +11210,8 @@ const kt = {
|
|
|
11214
11210
|
return I === "san_names" ? s("certificates.list.table_headers.san") : ((Ue = (Z = K.value) == null ? void 0 : Z[I]) == null ? void 0 : Ue.label) || l(I);
|
|
11215
11211
|
};
|
|
11216
11212
|
return (I, Z) => {
|
|
11217
|
-
const Ue = be("KCodeBlock"),
|
|
11218
|
-
return D(), se("div",
|
|
11213
|
+
const Ue = be("KCodeBlock"), pt = be("KLabel"), yt = be("KBadge");
|
|
11214
|
+
return D(), se("div", Xp, [
|
|
11219
11215
|
k(f(pu), {
|
|
11220
11216
|
"code-block-record-formatter": f(cd),
|
|
11221
11217
|
config: r.config,
|
|
@@ -11260,15 +11256,15 @@ const kt = {
|
|
|
11260
11256
|
})
|
|
11261
11257
|
]),
|
|
11262
11258
|
"metadata-label": v(() => [
|
|
11263
|
-
k(
|
|
11259
|
+
k(pt, { class: "metadata-label" }, {
|
|
11264
11260
|
default: v(() => [...Z[2] || (Z[2] = [
|
|
11265
|
-
|
|
11261
|
+
ae(" Metadata ", -1)
|
|
11266
11262
|
])]),
|
|
11267
11263
|
_: 1
|
|
11268
11264
|
})
|
|
11269
11265
|
]),
|
|
11270
11266
|
metadata: v((ye) => [
|
|
11271
|
-
(D(!0), se(
|
|
11267
|
+
(D(!0), se(ot, null, _r(Object.keys(f(u)("rowValue", ye)), (ge) => (D(), Ce(f(yu), {
|
|
11272
11268
|
key: ge,
|
|
11273
11269
|
item: {
|
|
11274
11270
|
key: ge,
|
|
@@ -11279,16 +11275,16 @@ const kt = {
|
|
|
11279
11275
|
}, null, 8, ["item"]))), 128))
|
|
11280
11276
|
]),
|
|
11281
11277
|
expiry: v(() => [
|
|
11282
|
-
|
|
11278
|
+
ae($(ce.value || "–"), 1)
|
|
11283
11279
|
]),
|
|
11284
11280
|
issuer: v(() => [
|
|
11285
|
-
|
|
11281
|
+
ae($(je.value || "–"), 1)
|
|
11286
11282
|
]),
|
|
11287
11283
|
san_names: v(() => [
|
|
11288
|
-
|
|
11284
|
+
ae($(Ve.value || "–"), 1)
|
|
11289
11285
|
]),
|
|
11290
11286
|
subject: v(() => [
|
|
11291
|
-
|
|
11287
|
+
ae($(H.value || "–"), 1)
|
|
11292
11288
|
]),
|
|
11293
11289
|
"cert_alt-label-tooltip": v(() => [
|
|
11294
11290
|
k(f(o), {
|
|
@@ -11313,8 +11309,8 @@ const kt = {
|
|
|
11313
11309
|
})
|
|
11314
11310
|
]),
|
|
11315
11311
|
key_usages: v(() => [
|
|
11316
|
-
y.value.length ? Pe("", !0) : (D(), se("div",
|
|
11317
|
-
(D(!0), se(
|
|
11312
|
+
y.value.length ? Pe("", !0) : (D(), se("div", Qp, $("–"))),
|
|
11313
|
+
(D(!0), se(ot, null, _r(y.value, (ye, ge) => (D(), Ce(yt, {
|
|
11318
11314
|
key: `key_usages-badge-tag-${ge}`,
|
|
11319
11315
|
class: "config-badge",
|
|
11320
11316
|
"data-testid": `key_usages-badge-tag-${ge}`,
|
|
@@ -11322,7 +11318,7 @@ const kt = {
|
|
|
11322
11318
|
"truncation-tooltip": ""
|
|
11323
11319
|
}, {
|
|
11324
11320
|
default: v(() => [
|
|
11325
|
-
|
|
11321
|
+
ae($(ye), 1)
|
|
11326
11322
|
]),
|
|
11327
11323
|
_: 2
|
|
11328
11324
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
@@ -11332,14 +11328,14 @@ const kt = {
|
|
|
11332
11328
|
pe.value ? void 0 : {
|
|
11333
11329
|
name: "snis",
|
|
11334
11330
|
fn: v(() => [
|
|
11335
|
-
Z[3] || (Z[3] =
|
|
11331
|
+
Z[3] || (Z[3] = ae(" – ", -1))
|
|
11336
11332
|
]),
|
|
11337
11333
|
key: "0"
|
|
11338
11334
|
},
|
|
11339
11335
|
Me.value ? {
|
|
11340
11336
|
name: "cert_alt",
|
|
11341
11337
|
fn: v((ye) => [
|
|
11342
|
-
Z[4] || (Z[4] =
|
|
11338
|
+
Z[4] || (Z[4] = ae(" > ", -1)),
|
|
11343
11339
|
f(u)("rowValue", ye) ? (D(), Ce(Ue, {
|
|
11344
11340
|
key: 0,
|
|
11345
11341
|
id: `certificate-${r.config.entityId}-cert-alt-codeblock`,
|
|
@@ -11354,12 +11350,12 @@ const kt = {
|
|
|
11354
11350
|
]);
|
|
11355
11351
|
};
|
|
11356
11352
|
}
|
|
11357
|
-
}),
|
|
11353
|
+
}), fm = /* @__PURE__ */ kr(ey, [["__scopeId", "data-v-367e4a10"]]);
|
|
11358
11354
|
export {
|
|
11359
|
-
|
|
11360
|
-
|
|
11361
|
-
|
|
11362
|
-
|
|
11363
|
-
|
|
11364
|
-
|
|
11355
|
+
cm as CACertificateConfigCard,
|
|
11356
|
+
um as CACertificateForm,
|
|
11357
|
+
lm as CACertificateList,
|
|
11358
|
+
fm as CertificateConfigCard,
|
|
11359
|
+
am as CertificateForm,
|
|
11360
|
+
om as CertificateList
|
|
11365
11361
|
};
|