@kong-ui-public/entities-certificates 2.2.3 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-certificates.es.js +640 -640
- package/dist/entities-certificates.umd.js +18 -18
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -93,12 +93,12 @@ var Tl;
|
|
|
93
93
|
return O;
|
|
94
94
|
}
|
|
95
95
|
t("metadata", k);
|
|
96
|
-
function
|
|
96
|
+
function v(A, I, O, $) {
|
|
97
97
|
if (!P(O))
|
|
98
98
|
throw new TypeError();
|
|
99
99
|
return le($) || ($ = ue($)), xe(A, I, O, $);
|
|
100
100
|
}
|
|
101
|
-
t("defineMetadata",
|
|
101
|
+
t("defineMetadata", v);
|
|
102
102
|
function T(A, I, O) {
|
|
103
103
|
if (!P(I))
|
|
104
104
|
throw new TypeError();
|
|
@@ -108,7 +108,7 @@ var Tl;
|
|
|
108
108
|
function q(A, I, O) {
|
|
109
109
|
if (!P(I))
|
|
110
110
|
throw new TypeError();
|
|
111
|
-
return le(O) || (O = ue(O)),
|
|
111
|
+
return le(O) || (O = ue(O)), ve(A, I, O);
|
|
112
112
|
}
|
|
113
113
|
t("hasOwnMetadata", q);
|
|
114
114
|
function fe(A, I, O) {
|
|
@@ -173,13 +173,13 @@ var Tl;
|
|
|
173
173
|
return $;
|
|
174
174
|
}
|
|
175
175
|
function K(A, I, O) {
|
|
176
|
-
var $ =
|
|
176
|
+
var $ = ve(A, I, O);
|
|
177
177
|
if ($)
|
|
178
178
|
return !0;
|
|
179
179
|
var ae = Ho(I);
|
|
180
180
|
return ce(ae) ? !1 : K(A, ae, O);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function ve(A, I, O) {
|
|
183
183
|
var $ = yi(
|
|
184
184
|
I,
|
|
185
185
|
O,
|
|
@@ -189,7 +189,7 @@ var Tl;
|
|
|
189
189
|
return le($) ? !1 : We($.OrdinaryHasOwnMetadata(A, I, O));
|
|
190
190
|
}
|
|
191
191
|
function Ce(A, I, O) {
|
|
192
|
-
var $ =
|
|
192
|
+
var $ = ve(A, I, O);
|
|
193
193
|
if ($)
|
|
194
194
|
return Me(A, I, O);
|
|
195
195
|
var ae = Ho(I);
|
|
@@ -228,8 +228,8 @@ var Tl;
|
|
|
228
228
|
var Z = L[ge], J = $e.has(Z);
|
|
229
229
|
J || ($e.add(Z), He.push(Z));
|
|
230
230
|
}
|
|
231
|
-
for (var X = 0,
|
|
232
|
-
var Z =
|
|
231
|
+
for (var X = 0, me = ae; X < me.length; X++) {
|
|
232
|
+
var Z = me[X], J = $e.has(Z);
|
|
233
233
|
J || ($e.add(Z), He.push(Z));
|
|
234
234
|
}
|
|
235
235
|
return He;
|
|
@@ -433,12 +433,12 @@ var Tl;
|
|
|
433
433
|
break;
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
function ge(X,
|
|
436
|
+
function ge(X, me) {
|
|
437
437
|
if (!le(I)) {
|
|
438
|
-
if (I.isProviderFor(X,
|
|
438
|
+
if (I.isProviderFor(X, me))
|
|
439
439
|
return I;
|
|
440
440
|
if (!le(O)) {
|
|
441
|
-
if (O.isProviderFor(X,
|
|
441
|
+
if (O.isProviderFor(X, me))
|
|
442
442
|
return I;
|
|
443
443
|
if (!le($))
|
|
444
444
|
for (var _e = Bl($); ; ) {
|
|
@@ -446,32 +446,32 @@ var Tl;
|
|
|
446
446
|
if (!Re)
|
|
447
447
|
return;
|
|
448
448
|
var kt = El(Re);
|
|
449
|
-
if (kt.isProviderFor(X,
|
|
449
|
+
if (kt.isProviderFor(X, me))
|
|
450
450
|
return Nl(_e), kt;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
if (!le(A) && A.isProviderFor(X,
|
|
454
|
+
if (!le(A) && A.isProviderFor(X, me))
|
|
455
455
|
return A;
|
|
456
456
|
}
|
|
457
|
-
function L(X,
|
|
457
|
+
function L(X, me) {
|
|
458
458
|
var _e = ae.get(X), Re;
|
|
459
|
-
return le(_e) || (Re = _e.get(
|
|
459
|
+
return le(_e) || (Re = _e.get(me)), le(Re) && (Re = ge(X, me), le(Re) || (le(_e) && (_e = new E(), ae.set(X, _e)), _e.set(me, Re))), Re;
|
|
460
460
|
}
|
|
461
461
|
function Z(X) {
|
|
462
462
|
if (le(X))
|
|
463
463
|
throw new TypeError();
|
|
464
464
|
return I === X || O === X || !le($) && $.has(X);
|
|
465
465
|
}
|
|
466
|
-
function J(X,
|
|
466
|
+
function J(X, me, _e) {
|
|
467
467
|
if (!Z(_e))
|
|
468
468
|
throw new Error("Metadata provider not registered.");
|
|
469
|
-
var Re = L(X,
|
|
469
|
+
var Re = L(X, me);
|
|
470
470
|
if (Re !== _e) {
|
|
471
471
|
if (!le(Re))
|
|
472
472
|
return !1;
|
|
473
473
|
var kt = ae.get(X);
|
|
474
|
-
le(kt) && (kt = new E(), ae.set(X, kt)), kt.set(
|
|
474
|
+
le(kt) && (kt = new E(), ae.set(X, kt)), kt.set(me, _e);
|
|
475
475
|
}
|
|
476
476
|
return !0;
|
|
477
477
|
}
|
|
@@ -499,59 +499,59 @@ var Tl;
|
|
|
499
499
|
};
|
|
500
500
|
return w.registerProvider(O), O;
|
|
501
501
|
function $(Z, J, X) {
|
|
502
|
-
var
|
|
503
|
-
if (le(
|
|
502
|
+
var me = I.get(Z), _e = !1;
|
|
503
|
+
if (le(me)) {
|
|
504
504
|
if (!X)
|
|
505
505
|
return;
|
|
506
|
-
|
|
506
|
+
me = new E(), I.set(Z, me), _e = !0;
|
|
507
507
|
}
|
|
508
|
-
var Re =
|
|
508
|
+
var Re = me.get(J);
|
|
509
509
|
if (le(Re)) {
|
|
510
510
|
if (!X)
|
|
511
511
|
return;
|
|
512
|
-
if (Re = new E(),
|
|
513
|
-
throw
|
|
512
|
+
if (Re = new E(), me.set(J, Re), !A.setProvider(Z, J, O))
|
|
513
|
+
throw me.delete(J), _e && I.delete(Z), new Error("Wrong provider for target.");
|
|
514
514
|
}
|
|
515
515
|
return Re;
|
|
516
516
|
}
|
|
517
517
|
function ae(Z, J, X) {
|
|
518
|
-
var
|
|
518
|
+
var me = $(
|
|
519
519
|
J,
|
|
520
520
|
X,
|
|
521
521
|
/*Create*/
|
|
522
522
|
!1
|
|
523
523
|
);
|
|
524
|
-
return le(
|
|
524
|
+
return le(me) ? !1 : We(me.has(Z));
|
|
525
525
|
}
|
|
526
526
|
function $e(Z, J, X) {
|
|
527
|
-
var
|
|
527
|
+
var me = $(
|
|
528
528
|
J,
|
|
529
529
|
X,
|
|
530
530
|
/*Create*/
|
|
531
531
|
!1
|
|
532
532
|
);
|
|
533
|
-
if (!le(
|
|
534
|
-
return
|
|
533
|
+
if (!le(me))
|
|
534
|
+
return me.get(Z);
|
|
535
535
|
}
|
|
536
|
-
function He(Z, J, X,
|
|
536
|
+
function He(Z, J, X, me) {
|
|
537
537
|
var _e = $(
|
|
538
538
|
X,
|
|
539
|
-
|
|
539
|
+
me,
|
|
540
540
|
/*Create*/
|
|
541
541
|
!0
|
|
542
542
|
);
|
|
543
543
|
_e.set(Z, J);
|
|
544
544
|
}
|
|
545
545
|
function ge(Z, J) {
|
|
546
|
-
var X = [],
|
|
546
|
+
var X = [], me = $(
|
|
547
547
|
Z,
|
|
548
548
|
J,
|
|
549
549
|
/*Create*/
|
|
550
550
|
!1
|
|
551
551
|
);
|
|
552
|
-
if (le(
|
|
552
|
+
if (le(me))
|
|
553
553
|
return X;
|
|
554
|
-
for (var _e =
|
|
554
|
+
for (var _e = me.keys(), Re = Bl(_e), kt = 0; ; ) {
|
|
555
555
|
var _l = Ol(Re);
|
|
556
556
|
if (!_l)
|
|
557
557
|
return X.length = kt, X;
|
|
@@ -569,15 +569,15 @@ var Tl;
|
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
function L(Z, J, X) {
|
|
572
|
-
var
|
|
572
|
+
var me = $(
|
|
573
573
|
J,
|
|
574
574
|
X,
|
|
575
575
|
/*Create*/
|
|
576
576
|
!1
|
|
577
577
|
);
|
|
578
|
-
if (le(
|
|
578
|
+
if (le(me) || !me.delete(Z))
|
|
579
579
|
return !1;
|
|
580
|
-
if (
|
|
580
|
+
if (me.size === 0) {
|
|
581
581
|
var _e = I.get(J);
|
|
582
582
|
le(_e) || (_e.delete(X), _e.size === 0 && I.delete(_e));
|
|
583
583
|
}
|
|
@@ -2701,16 +2701,16 @@ class gd extends yt {
|
|
|
2701
2701
|
}
|
|
2702
2702
|
}
|
|
2703
2703
|
gd.NAME = "BmpStringValueBlock";
|
|
2704
|
-
var
|
|
2704
|
+
var md;
|
|
2705
2705
|
class Qn extends gd {
|
|
2706
2706
|
constructor({ ...t } = {}) {
|
|
2707
2707
|
super(t), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 30;
|
|
2708
2708
|
}
|
|
2709
2709
|
}
|
|
2710
|
-
|
|
2711
|
-
z.BmpString =
|
|
2710
|
+
md = Qn;
|
|
2711
|
+
z.BmpString = md;
|
|
2712
2712
|
Qn.NAME = "BMPString";
|
|
2713
|
-
class
|
|
2713
|
+
class vd extends yt {
|
|
2714
2714
|
fromBuffer(t) {
|
|
2715
2715
|
const r = ArrayBuffer.isView(t) ? t.slice().buffer : t.slice(0), i = new Uint8Array(r);
|
|
2716
2716
|
for (let n = 0; n < i.length; n += 4)
|
|
@@ -2730,9 +2730,9 @@ class md extends yt {
|
|
|
2730
2730
|
this.valueBlock.value = t;
|
|
2731
2731
|
}
|
|
2732
2732
|
}
|
|
2733
|
-
|
|
2733
|
+
vd.NAME = "UniversalStringValueBlock";
|
|
2734
2734
|
var bd;
|
|
2735
|
-
class Xn extends
|
|
2735
|
+
class Xn extends vd {
|
|
2736
2736
|
constructor({ ...t } = {}) {
|
|
2737
2737
|
super(t), this.idBlock.tagClass = 1, this.idBlock.tagNumber = 28;
|
|
2738
2738
|
}
|
|
@@ -3064,7 +3064,7 @@ class dn extends Sr {
|
|
|
3064
3064
|
super(i), this.value = t, this.local = r;
|
|
3065
3065
|
}
|
|
3066
3066
|
}
|
|
3067
|
-
class
|
|
3067
|
+
class mh {
|
|
3068
3068
|
constructor({ data: t = Wn } = {}) {
|
|
3069
3069
|
this.dataView = H.toUint8Array(t);
|
|
3070
3070
|
}
|
|
@@ -3281,7 +3281,7 @@ function pr(e, t, r) {
|
|
|
3281
3281
|
result: e
|
|
3282
3282
|
};
|
|
3283
3283
|
}
|
|
3284
|
-
function
|
|
3284
|
+
function vh(e, t) {
|
|
3285
3285
|
if (!(t instanceof Object))
|
|
3286
3286
|
return {
|
|
3287
3287
|
verified: !1,
|
|
@@ -3321,7 +3321,7 @@ const Pd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3321
3321
|
OctetString: yr,
|
|
3322
3322
|
Primitive: Hi,
|
|
3323
3323
|
PrintableString: to,
|
|
3324
|
-
RawData:
|
|
3324
|
+
RawData: mh,
|
|
3325
3325
|
RelativeObjectIdentifier: ja,
|
|
3326
3326
|
Repeated: dn,
|
|
3327
3327
|
Sequence: Ht,
|
|
@@ -3338,16 +3338,16 @@ const Pd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3338
3338
|
VisibleString: Fi,
|
|
3339
3339
|
compareSchema: pr,
|
|
3340
3340
|
fromBER: Ur,
|
|
3341
|
-
verifySchema:
|
|
3341
|
+
verifySchema: vh
|
|
3342
3342
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3343
3343
|
var j;
|
|
3344
3344
|
(function(e) {
|
|
3345
3345
|
e[e.Sequence = 0] = "Sequence", e[e.Set = 1] = "Set", e[e.Choice = 2] = "Choice";
|
|
3346
3346
|
})(j || (j = {}));
|
|
3347
|
-
var
|
|
3347
|
+
var m;
|
|
3348
3348
|
(function(e) {
|
|
3349
3349
|
e[e.Any = 1] = "Any", e[e.Boolean = 2] = "Boolean", e[e.OctetString = 3] = "OctetString", e[e.BitString = 4] = "BitString", e[e.Integer = 5] = "Integer", e[e.Enumerated = 6] = "Enumerated", e[e.ObjectIdentifier = 7] = "ObjectIdentifier", e[e.Utf8String = 8] = "Utf8String", e[e.BmpString = 9] = "BmpString", e[e.UniversalString = 10] = "UniversalString", e[e.NumericString = 11] = "NumericString", e[e.PrintableString = 12] = "PrintableString", e[e.TeletexString = 13] = "TeletexString", e[e.VideotexString = 14] = "VideotexString", e[e.IA5String = 15] = "IA5String", e[e.GraphicString = 16] = "GraphicString", e[e.VisibleString = 17] = "VisibleString", e[e.GeneralString = 18] = "GeneralString", e[e.CharacterString = 19] = "CharacterString", e[e.UTCTime = 20] = "UTCTime", e[e.GeneralizedTime = 21] = "GeneralizedTime", e[e.DATE = 22] = "DATE", e[e.TimeOfDay = 23] = "TimeOfDay", e[e.DateTime = 24] = "DateTime", e[e.Duration = 25] = "Duration", e[e.TIME = 26] = "TIME", e[e.Null = 27] = "Null";
|
|
3350
|
-
})(
|
|
3350
|
+
})(m || (m = {}));
|
|
3351
3351
|
class co {
|
|
3352
3352
|
constructor(t, r = 0) {
|
|
3353
3353
|
if (this.unusedBits = 0, this.value = new ArrayBuffer(0), t)
|
|
@@ -3463,49 +3463,49 @@ const $d = bt(Qt), Ih = bt(Qn), Bh = bt(Xn), Eh = bt(eo), Oh = bt(to), Nh = bt(r
|
|
|
3463
3463
|
};
|
|
3464
3464
|
function Ua(e) {
|
|
3465
3465
|
switch (e) {
|
|
3466
|
-
case
|
|
3466
|
+
case m.Any:
|
|
3467
3467
|
return bh;
|
|
3468
|
-
case
|
|
3468
|
+
case m.BitString:
|
|
3469
3469
|
return Ah;
|
|
3470
|
-
case
|
|
3470
|
+
case m.BmpString:
|
|
3471
3471
|
return Ih;
|
|
3472
|
-
case
|
|
3472
|
+
case m.Boolean:
|
|
3473
3473
|
return Ch;
|
|
3474
|
-
case
|
|
3474
|
+
case m.CharacterString:
|
|
3475
3475
|
return Ph;
|
|
3476
|
-
case
|
|
3476
|
+
case m.Enumerated:
|
|
3477
3477
|
return kh;
|
|
3478
|
-
case
|
|
3478
|
+
case m.GeneralString:
|
|
3479
3479
|
return Vh;
|
|
3480
|
-
case
|
|
3480
|
+
case m.GeneralizedTime:
|
|
3481
3481
|
return Rh;
|
|
3482
|
-
case
|
|
3482
|
+
case m.GraphicString:
|
|
3483
3483
|
return jh;
|
|
3484
|
-
case
|
|
3484
|
+
case m.IA5String:
|
|
3485
3485
|
return Th;
|
|
3486
|
-
case
|
|
3486
|
+
case m.Integer:
|
|
3487
3487
|
return wh;
|
|
3488
|
-
case
|
|
3488
|
+
case m.Null:
|
|
3489
3489
|
return Dh;
|
|
3490
|
-
case
|
|
3490
|
+
case m.NumericString:
|
|
3491
3491
|
return Eh;
|
|
3492
|
-
case
|
|
3492
|
+
case m.ObjectIdentifier:
|
|
3493
3493
|
return Sh;
|
|
3494
|
-
case
|
|
3494
|
+
case m.OctetString:
|
|
3495
3495
|
return fn;
|
|
3496
|
-
case
|
|
3496
|
+
case m.PrintableString:
|
|
3497
3497
|
return Oh;
|
|
3498
|
-
case
|
|
3498
|
+
case m.TeletexString:
|
|
3499
3499
|
return Nh;
|
|
3500
|
-
case
|
|
3500
|
+
case m.UTCTime:
|
|
3501
3501
|
return $h;
|
|
3502
|
-
case
|
|
3502
|
+
case m.UniversalString:
|
|
3503
3503
|
return Bh;
|
|
3504
|
-
case
|
|
3504
|
+
case m.Utf8String:
|
|
3505
3505
|
return $d;
|
|
3506
|
-
case
|
|
3506
|
+
case m.VideotexString:
|
|
3507
3507
|
return _h;
|
|
3508
|
-
case
|
|
3508
|
+
case m.VisibleString:
|
|
3509
3509
|
return Mh;
|
|
3510
3510
|
default:
|
|
3511
3511
|
return null;
|
|
@@ -3563,7 +3563,7 @@ class Lh {
|
|
|
3563
3563
|
const s = i.items[o], a = r ? o : "";
|
|
3564
3564
|
let l;
|
|
3565
3565
|
if (typeof s.type == "number") {
|
|
3566
|
-
const h =
|
|
3566
|
+
const h = m[s.type], f = Pd[h];
|
|
3567
3567
|
if (!f)
|
|
3568
3568
|
throw new Error(`Cannot get ASN1 class by name '${h}'`);
|
|
3569
3569
|
l = new f({ name: a });
|
|
@@ -3731,7 +3731,7 @@ class Hh {
|
|
|
3731
3731
|
if (Lt(f))
|
|
3732
3732
|
p = new f().toSchema("");
|
|
3733
3733
|
else {
|
|
3734
|
-
const y =
|
|
3734
|
+
const y = m[f], w = Pd[y];
|
|
3735
3735
|
if (!w)
|
|
3736
3736
|
throw new Error(`Cannot get '${y}' class from asn1js module`);
|
|
3737
3737
|
p = new w();
|
|
@@ -3835,7 +3835,7 @@ class La {
|
|
|
3835
3835
|
if (typeof t.type == "number") {
|
|
3836
3836
|
const s = t.converter;
|
|
3837
3837
|
if (!s)
|
|
3838
|
-
throw new Error(`Property '${r}' doesn't have converter for type ${
|
|
3838
|
+
throw new Error(`Property '${r}' doesn't have converter for type ${m[t.type]} in schema '${i.name}'`);
|
|
3839
3839
|
if (t.repeated) {
|
|
3840
3840
|
if (!Array.isArray(n))
|
|
3841
3841
|
throw new TypeError("Parameter 'objProp' should be type of Array.");
|
|
@@ -3908,12 +3908,12 @@ var Dd = { exports: {} };
|
|
|
3908
3908
|
function u(p, y) {
|
|
3909
3909
|
if (p.indexOf("::") !== p.lastIndexOf("::"))
|
|
3910
3910
|
return null;
|
|
3911
|
-
let w = 0, g = -1, C = (p.match(l.zoneIndex) || [])[0], k,
|
|
3911
|
+
let w = 0, g = -1, C = (p.match(l.zoneIndex) || [])[0], k, v;
|
|
3912
3912
|
for (C && (C = C.substring(1), p = p.replace(/%.+$/, "")); (g = p.indexOf(":", g + 1)) >= 0; )
|
|
3913
3913
|
w++;
|
|
3914
3914
|
if (p.substr(0, 2) === "::" && w--, p.substr(-2, 2) === "::" && w--, w > y)
|
|
3915
3915
|
return null;
|
|
3916
|
-
for (
|
|
3916
|
+
for (v = y - w, k = ":"; v--; )
|
|
3917
3917
|
k += "0:";
|
|
3918
3918
|
return p = p.replace("::", k), p[0] === ":" && (p = p.slice(1)), p[p.length - 1] === ":" && (p = p.slice(0, -1)), y = function() {
|
|
3919
3919
|
const T = p.split(":"), q = [];
|
|
@@ -4009,12 +4009,12 @@ var Dd = { exports: {} };
|
|
|
4009
4009
|
254: 1,
|
|
4010
4010
|
255: 0
|
|
4011
4011
|
};
|
|
4012
|
-
let C, k,
|
|
4012
|
+
let C, k, v;
|
|
4013
4013
|
for (C = 3; C >= 0; C -= 1)
|
|
4014
4014
|
if (k = this.octets[C], k in g) {
|
|
4015
|
-
if (
|
|
4015
|
+
if (v = g[k], w && v !== 0)
|
|
4016
4016
|
return null;
|
|
4017
|
-
|
|
4017
|
+
v !== 8 && (w = !0), y += v;
|
|
4018
4018
|
} else
|
|
4019
4019
|
return null;
|
|
4020
4020
|
return 32 - y;
|
|
@@ -4082,8 +4082,8 @@ var Dd = { exports: {} };
|
|
|
4082
4082
|
if (y = p.match(i.fourOctet))
|
|
4083
4083
|
return function() {
|
|
4084
4084
|
const C = y.slice(1, 6), k = [];
|
|
4085
|
-
for (let
|
|
4086
|
-
w = C[
|
|
4085
|
+
for (let v = 0; v < C.length; v++)
|
|
4086
|
+
w = C[v], k.push(f(w));
|
|
4087
4087
|
return k;
|
|
4088
4088
|
}();
|
|
4089
4089
|
if (y = p.match(i.longValue)) {
|
|
@@ -4186,8 +4186,8 @@ var Dd = { exports: {} };
|
|
|
4186
4186
|
65535: 0
|
|
4187
4187
|
};
|
|
4188
4188
|
let C, k;
|
|
4189
|
-
for (let
|
|
4190
|
-
if (C = this.parts[
|
|
4189
|
+
for (let v = 7; v >= 0; v -= 1)
|
|
4190
|
+
if (C = this.parts[v], C in g) {
|
|
4191
4191
|
if (k = g[C], w && k !== 0)
|
|
4192
4192
|
return null;
|
|
4193
4193
|
k !== 16 && (w = !0), y += k;
|
|
@@ -4261,8 +4261,8 @@ var Dd = { exports: {} };
|
|
|
4261
4261
|
for (y = this.parseCIDR(p), g = y[0].toByteArray(), k = this.subnetMaskFromPrefixLength(y[1]).toByteArray(), C = [], w = 0; w < 16; )
|
|
4262
4262
|
C.push(parseInt(g[w], 10) & parseInt(k[w], 10)), w++;
|
|
4263
4263
|
return new this(C);
|
|
4264
|
-
} catch (
|
|
4265
|
-
throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${
|
|
4264
|
+
} catch (v) {
|
|
4265
|
+
throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${v})`);
|
|
4266
4266
|
}
|
|
4267
4267
|
}, b.IPv6.parse = function(p) {
|
|
4268
4268
|
const y = this.parser(p);
|
|
@@ -4279,12 +4279,12 @@ var Dd = { exports: {} };
|
|
|
4279
4279
|
}), g;
|
|
4280
4280
|
throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range");
|
|
4281
4281
|
}, b.IPv6.parser = function(p) {
|
|
4282
|
-
let y, w, g, C, k,
|
|
4282
|
+
let y, w, g, C, k, v;
|
|
4283
4283
|
if (g = p.match(l.deprecatedTransitional))
|
|
4284
4284
|
return this.parser(`::ffff:${g[1]}`);
|
|
4285
4285
|
if (l.native.test(p))
|
|
4286
4286
|
return u(p, 8);
|
|
4287
|
-
if ((g = p.match(l.transitional)) && (
|
|
4287
|
+
if ((g = p.match(l.transitional)) && (v = g[6] || "", y = u(g[1].slice(0, -1) + v, 6), y.parts)) {
|
|
4288
4288
|
for (k = [
|
|
4289
4289
|
parseInt(g[2]),
|
|
4290
4290
|
parseInt(g[3]),
|
|
@@ -4337,12 +4337,12 @@ var Dd = { exports: {} };
|
|
|
4337
4337
|
const y = this.parse(p);
|
|
4338
4338
|
return y.kind() === "ipv6" && y.isIPv4MappedAddress() ? y.toIPv4Address() : y;
|
|
4339
4339
|
}, b.subnetMatch = function(p, y, w) {
|
|
4340
|
-
let g, C, k,
|
|
4340
|
+
let g, C, k, v;
|
|
4341
4341
|
w == null && (w = "unicast");
|
|
4342
4342
|
for (C in y)
|
|
4343
4343
|
if (Object.prototype.hasOwnProperty.call(y, C)) {
|
|
4344
4344
|
for (k = y[C], k[0] && !(k[0] instanceof Array) && (k = [k]), g = 0; g < k.length; g++)
|
|
4345
|
-
if (
|
|
4345
|
+
if (v = k[g], p.kind() === v[0].kind() && p.match.apply(p, v))
|
|
4346
4346
|
return C;
|
|
4347
4347
|
}
|
|
4348
4348
|
return w;
|
|
@@ -4382,19 +4382,19 @@ let Xe = class {
|
|
|
4382
4382
|
}
|
|
4383
4383
|
};
|
|
4384
4384
|
c([
|
|
4385
|
-
d({ type:
|
|
4385
|
+
d({ type: m.TeletexString })
|
|
4386
4386
|
], Xe.prototype, "teletexString", void 0);
|
|
4387
4387
|
c([
|
|
4388
|
-
d({ type:
|
|
4388
|
+
d({ type: m.PrintableString })
|
|
4389
4389
|
], Xe.prototype, "printableString", void 0);
|
|
4390
4390
|
c([
|
|
4391
|
-
d({ type:
|
|
4391
|
+
d({ type: m.UniversalString })
|
|
4392
4392
|
], Xe.prototype, "universalString", void 0);
|
|
4393
4393
|
c([
|
|
4394
|
-
d({ type:
|
|
4394
|
+
d({ type: m.Utf8String })
|
|
4395
4395
|
], Xe.prototype, "utf8String", void 0);
|
|
4396
4396
|
c([
|
|
4397
|
-
d({ type:
|
|
4397
|
+
d({ type: m.BmpString })
|
|
4398
4398
|
], Xe.prototype, "bmpString", void 0);
|
|
4399
4399
|
Xe = c([
|
|
4400
4400
|
V({ type: j.Choice })
|
|
@@ -4408,10 +4408,10 @@ let qr = class extends Xe {
|
|
|
4408
4408
|
}
|
|
4409
4409
|
};
|
|
4410
4410
|
c([
|
|
4411
|
-
d({ type:
|
|
4411
|
+
d({ type: m.IA5String })
|
|
4412
4412
|
], qr.prototype, "ia5String", void 0);
|
|
4413
4413
|
c([
|
|
4414
|
-
d({ type:
|
|
4414
|
+
d({ type: m.Any })
|
|
4415
4415
|
], qr.prototype, "anyValue", void 0);
|
|
4416
4416
|
qr = c([
|
|
4417
4417
|
V({ type: j.Choice })
|
|
@@ -4422,7 +4422,7 @@ class xi {
|
|
|
4422
4422
|
}
|
|
4423
4423
|
}
|
|
4424
4424
|
c([
|
|
4425
|
-
d({ type:
|
|
4425
|
+
d({ type: m.ObjectIdentifier })
|
|
4426
4426
|
], xi.prototype, "type", void 0);
|
|
4427
4427
|
c([
|
|
4428
4428
|
d({ type: qr })
|
|
@@ -4461,10 +4461,10 @@ class Ii {
|
|
|
4461
4461
|
}
|
|
4462
4462
|
}
|
|
4463
4463
|
c([
|
|
4464
|
-
d({ type:
|
|
4464
|
+
d({ type: m.ObjectIdentifier })
|
|
4465
4465
|
], Ii.prototype, "typeId", void 0);
|
|
4466
4466
|
c([
|
|
4467
|
-
d({ type:
|
|
4467
|
+
d({ type: m.Any, context: 0 })
|
|
4468
4468
|
], Ii.prototype, "value", void 0);
|
|
4469
4469
|
class Ha {
|
|
4470
4470
|
constructor(t = {}) {
|
|
@@ -4486,13 +4486,13 @@ c([
|
|
|
4486
4486
|
d({ type: Ii, context: 0, implicit: !0 })
|
|
4487
4487
|
], he.prototype, "otherName", void 0);
|
|
4488
4488
|
c([
|
|
4489
|
-
d({ type:
|
|
4489
|
+
d({ type: m.IA5String, context: 1, implicit: !0 })
|
|
4490
4490
|
], he.prototype, "rfc822Name", void 0);
|
|
4491
4491
|
c([
|
|
4492
|
-
d({ type:
|
|
4492
|
+
d({ type: m.IA5String, context: 2, implicit: !0 })
|
|
4493
4493
|
], he.prototype, "dNSName", void 0);
|
|
4494
4494
|
c([
|
|
4495
|
-
d({ type:
|
|
4495
|
+
d({ type: m.Any, context: 3, implicit: !0 })
|
|
4496
4496
|
], he.prototype, "x400Address", void 0);
|
|
4497
4497
|
c([
|
|
4498
4498
|
d({ type: Fe, context: 4, implicit: !1 })
|
|
@@ -4501,13 +4501,13 @@ c([
|
|
|
4501
4501
|
d({ type: Ha, context: 5 })
|
|
4502
4502
|
], he.prototype, "ediPartyName", void 0);
|
|
4503
4503
|
c([
|
|
4504
|
-
d({ type:
|
|
4504
|
+
d({ type: m.IA5String, context: 6, implicit: !0 })
|
|
4505
4505
|
], he.prototype, "uniformResourceIdentifier", void 0);
|
|
4506
4506
|
c([
|
|
4507
|
-
d({ type:
|
|
4507
|
+
d({ type: m.OctetString, context: 7, implicit: !0, converter: Fh })
|
|
4508
4508
|
], he.prototype, "iPAddress", void 0);
|
|
4509
4509
|
c([
|
|
4510
|
-
d({ type:
|
|
4510
|
+
d({ type: m.ObjectIdentifier, context: 8, implicit: !0 })
|
|
4511
4511
|
], he.prototype, "registeredID", void 0);
|
|
4512
4512
|
he = c([
|
|
4513
4513
|
V({ type: j.Choice })
|
|
@@ -4520,7 +4520,7 @@ class uo {
|
|
|
4520
4520
|
}
|
|
4521
4521
|
}
|
|
4522
4522
|
c([
|
|
4523
|
-
d({ type:
|
|
4523
|
+
d({ type: m.ObjectIdentifier })
|
|
4524
4524
|
], uo.prototype, "accessMethod", void 0);
|
|
4525
4525
|
c([
|
|
4526
4526
|
d({ type: he })
|
|
@@ -4549,7 +4549,7 @@ c([
|
|
|
4549
4549
|
], hr.prototype, "authorityCertIssuer", void 0);
|
|
4550
4550
|
c([
|
|
4551
4551
|
d({
|
|
4552
|
-
type:
|
|
4552
|
+
type: m.Integer,
|
|
4553
4553
|
context: 2,
|
|
4554
4554
|
optional: !0,
|
|
4555
4555
|
implicit: !0,
|
|
@@ -4563,10 +4563,10 @@ class pn {
|
|
|
4563
4563
|
}
|
|
4564
4564
|
}
|
|
4565
4565
|
c([
|
|
4566
|
-
d({ type:
|
|
4566
|
+
d({ type: m.Boolean, defaultValue: !1 })
|
|
4567
4567
|
], pn.prototype, "cA", void 0);
|
|
4568
4568
|
c([
|
|
4569
|
-
d({ type:
|
|
4569
|
+
d({ type: m.Integer, optional: !0 })
|
|
4570
4570
|
], pn.prototype, "pathLenConstraint", void 0);
|
|
4571
4571
|
var hs;
|
|
4572
4572
|
let it = hs = class extends Se {
|
|
@@ -4597,16 +4597,16 @@ let zt = class {
|
|
|
4597
4597
|
}
|
|
4598
4598
|
};
|
|
4599
4599
|
c([
|
|
4600
|
-
d({ type:
|
|
4600
|
+
d({ type: m.IA5String })
|
|
4601
4601
|
], zt.prototype, "ia5String", void 0);
|
|
4602
4602
|
c([
|
|
4603
|
-
d({ type:
|
|
4603
|
+
d({ type: m.VisibleString })
|
|
4604
4604
|
], zt.prototype, "visibleString", void 0);
|
|
4605
4605
|
c([
|
|
4606
|
-
d({ type:
|
|
4606
|
+
d({ type: m.BmpString })
|
|
4607
4607
|
], zt.prototype, "bmpString", void 0);
|
|
4608
4608
|
c([
|
|
4609
|
-
d({ type:
|
|
4609
|
+
d({ type: m.Utf8String })
|
|
4610
4610
|
], zt.prototype, "utf8String", void 0);
|
|
4611
4611
|
zt = c([
|
|
4612
4612
|
V({ type: j.Choice })
|
|
@@ -4620,7 +4620,7 @@ c([
|
|
|
4620
4620
|
d({ type: zt })
|
|
4621
4621
|
], qa.prototype, "organization", void 0);
|
|
4622
4622
|
c([
|
|
4623
|
-
d({ type:
|
|
4623
|
+
d({ type: m.Integer, repeated: "sequence" })
|
|
4624
4624
|
], qa.prototype, "noticeNumbers", void 0);
|
|
4625
4625
|
class Ka {
|
|
4626
4626
|
constructor(t = {}) {
|
|
@@ -4639,7 +4639,7 @@ let hn = class {
|
|
|
4639
4639
|
}
|
|
4640
4640
|
};
|
|
4641
4641
|
c([
|
|
4642
|
-
d({ type:
|
|
4642
|
+
d({ type: m.IA5String })
|
|
4643
4643
|
], hn.prototype, "cPSuri", void 0);
|
|
4644
4644
|
c([
|
|
4645
4645
|
d({ type: Ka })
|
|
@@ -4653,10 +4653,10 @@ class za {
|
|
|
4653
4653
|
}
|
|
4654
4654
|
}
|
|
4655
4655
|
c([
|
|
4656
|
-
d({ type:
|
|
4656
|
+
d({ type: m.ObjectIdentifier })
|
|
4657
4657
|
], za.prototype, "policyQualifierId", void 0);
|
|
4658
4658
|
c([
|
|
4659
|
-
d({ type:
|
|
4659
|
+
d({ type: m.Any })
|
|
4660
4660
|
], za.prototype, "qualifier", void 0);
|
|
4661
4661
|
class fo {
|
|
4662
4662
|
constructor(t = {}) {
|
|
@@ -4664,7 +4664,7 @@ class fo {
|
|
|
4664
4664
|
}
|
|
4665
4665
|
}
|
|
4666
4666
|
c([
|
|
4667
|
-
d({ type:
|
|
4667
|
+
d({ type: m.ObjectIdentifier })
|
|
4668
4668
|
], fo.prototype, "policyIdentifier", void 0);
|
|
4669
4669
|
c([
|
|
4670
4670
|
d({ type: za, repeated: "sequence", optional: !0 })
|
|
@@ -4683,7 +4683,7 @@ let gn = class {
|
|
|
4683
4683
|
}
|
|
4684
4684
|
};
|
|
4685
4685
|
c([
|
|
4686
|
-
d({ type:
|
|
4686
|
+
d({ type: m.Integer })
|
|
4687
4687
|
], gn.prototype, "value", void 0);
|
|
4688
4688
|
gn = c([
|
|
4689
4689
|
V({ type: j.Choice })
|
|
@@ -4693,7 +4693,7 @@ let Hl = class extends gn {
|
|
|
4693
4693
|
Hl = c([
|
|
4694
4694
|
V({ type: j.Choice })
|
|
4695
4695
|
], Hl);
|
|
4696
|
-
var
|
|
4696
|
+
var ms, At;
|
|
4697
4697
|
(function(e) {
|
|
4698
4698
|
e[e.unused = 1] = "unused", e[e.keyCompromise = 2] = "keyCompromise", e[e.cACompromise = 4] = "cACompromise", e[e.affiliationChanged = 8] = "affiliationChanged", e[e.superseded = 16] = "superseded", e[e.cessationOfOperation = 32] = "cessationOfOperation", e[e.certificateHold = 64] = "certificateHold", e[e.privilegeWithdrawn = 128] = "privilegeWithdrawn", e[e.aACompromise = 256] = "aACompromise";
|
|
4699
4699
|
})(At || (At = {}));
|
|
@@ -4734,16 +4734,16 @@ c([
|
|
|
4734
4734
|
c([
|
|
4735
4735
|
d({ type: he, context: 2, optional: !0, repeated: "sequence", implicit: !0 })
|
|
4736
4736
|
], Ki.prototype, "cRLIssuer", void 0);
|
|
4737
|
-
let
|
|
4737
|
+
let vs = ms = class extends Se {
|
|
4738
4738
|
constructor(t) {
|
|
4739
|
-
super(t), Object.setPrototypeOf(this,
|
|
4739
|
+
super(t), Object.setPrototypeOf(this, ms.prototype);
|
|
4740
4740
|
}
|
|
4741
4741
|
};
|
|
4742
|
-
|
|
4742
|
+
vs = ms = c([
|
|
4743
4743
|
V({ type: j.Sequence, itemType: Ki })
|
|
4744
|
-
],
|
|
4744
|
+
], vs);
|
|
4745
4745
|
var bs;
|
|
4746
|
-
let Fl = bs = class extends
|
|
4746
|
+
let Fl = bs = class extends vs {
|
|
4747
4747
|
constructor(t) {
|
|
4748
4748
|
super(t), Object.setPrototypeOf(this, bs.prototype);
|
|
4749
4749
|
}
|
|
@@ -4761,51 +4761,51 @@ c([
|
|
|
4761
4761
|
d({ type: zr, context: 0, optional: !0 })
|
|
4762
4762
|
], et.prototype, "distributionPoint", void 0);
|
|
4763
4763
|
c([
|
|
4764
|
-
d({ type:
|
|
4764
|
+
d({ type: m.Boolean, context: 1, defaultValue: et.ONLY, implicit: !0 })
|
|
4765
4765
|
], et.prototype, "onlyContainsUserCerts", void 0);
|
|
4766
4766
|
c([
|
|
4767
|
-
d({ type:
|
|
4767
|
+
d({ type: m.Boolean, context: 2, defaultValue: et.ONLY, implicit: !0 })
|
|
4768
4768
|
], et.prototype, "onlyContainsCACerts", void 0);
|
|
4769
4769
|
c([
|
|
4770
4770
|
d({ type: Hd, context: 3, optional: !0, implicit: !0 })
|
|
4771
4771
|
], et.prototype, "onlySomeReasons", void 0);
|
|
4772
4772
|
c([
|
|
4773
|
-
d({ type:
|
|
4773
|
+
d({ type: m.Boolean, context: 4, defaultValue: et.ONLY, implicit: !0 })
|
|
4774
4774
|
], et.prototype, "indirectCRL", void 0);
|
|
4775
4775
|
c([
|
|
4776
|
-
d({ type:
|
|
4776
|
+
d({ type: m.Boolean, context: 5, defaultValue: et.ONLY, implicit: !0 })
|
|
4777
4777
|
], et.prototype, "onlyContainsAttributeCerts", void 0);
|
|
4778
|
-
var
|
|
4778
|
+
var vi;
|
|
4779
4779
|
(function(e) {
|
|
4780
4780
|
e[e.unspecified = 0] = "unspecified", e[e.keyCompromise = 1] = "keyCompromise", e[e.cACompromise = 2] = "cACompromise", e[e.affiliationChanged = 3] = "affiliationChanged", e[e.superseded = 4] = "superseded", e[e.cessationOfOperation = 5] = "cessationOfOperation", e[e.certificateHold = 6] = "certificateHold", e[e.removeFromCRL = 8] = "removeFromCRL", e[e.privilegeWithdrawn = 9] = "privilegeWithdrawn", e[e.aACompromise = 10] = "aACompromise";
|
|
4781
|
-
})(
|
|
4781
|
+
})(vi || (vi = {}));
|
|
4782
4782
|
let ws = class {
|
|
4783
|
-
constructor(t =
|
|
4784
|
-
this.reason =
|
|
4783
|
+
constructor(t = vi.unspecified) {
|
|
4784
|
+
this.reason = vi.unspecified, this.reason = t;
|
|
4785
4785
|
}
|
|
4786
4786
|
toJSON() {
|
|
4787
|
-
return
|
|
4787
|
+
return vi[this.reason];
|
|
4788
4788
|
}
|
|
4789
4789
|
toString() {
|
|
4790
4790
|
return this.toJSON();
|
|
4791
4791
|
}
|
|
4792
4792
|
};
|
|
4793
4793
|
c([
|
|
4794
|
-
d({ type:
|
|
4794
|
+
d({ type: m.Enumerated })
|
|
4795
4795
|
], ws.prototype, "reason", void 0);
|
|
4796
4796
|
ws = c([
|
|
4797
4797
|
V({ type: j.Choice })
|
|
4798
4798
|
], ws);
|
|
4799
4799
|
var ks;
|
|
4800
4800
|
const Fd = `${Or}.37`;
|
|
4801
|
-
let
|
|
4801
|
+
let mn = ks = class extends Se {
|
|
4802
4802
|
constructor(t) {
|
|
4803
4803
|
super(t), Object.setPrototypeOf(this, ks.prototype);
|
|
4804
4804
|
}
|
|
4805
4805
|
};
|
|
4806
|
-
|
|
4807
|
-
V({ type: j.Sequence, itemType:
|
|
4808
|
-
],
|
|
4806
|
+
mn = ks = c([
|
|
4807
|
+
V({ type: j.Sequence, itemType: m.ObjectIdentifier })
|
|
4808
|
+
], mn);
|
|
4809
4809
|
const Kh = `${si}.1`, zh = `${si}.2`, Gh = `${si}.3`, Wh = `${si}.4`, Jh = `${si}.8`, Yh = `${si}.9`;
|
|
4810
4810
|
let As = class {
|
|
4811
4811
|
constructor(t = new ArrayBuffer(0)) {
|
|
@@ -4813,7 +4813,7 @@ let As = class {
|
|
|
4813
4813
|
}
|
|
4814
4814
|
};
|
|
4815
4815
|
c([
|
|
4816
|
-
d({ type:
|
|
4816
|
+
d({ type: m.Integer, converter: je })
|
|
4817
4817
|
], As.prototype, "value", void 0);
|
|
4818
4818
|
As = c([
|
|
4819
4819
|
V({ type: j.Choice })
|
|
@@ -4824,7 +4824,7 @@ let Ss = class {
|
|
|
4824
4824
|
}
|
|
4825
4825
|
};
|
|
4826
4826
|
c([
|
|
4827
|
-
d({ type:
|
|
4827
|
+
d({ type: m.GeneralizedTime })
|
|
4828
4828
|
], Ss.prototype, "value", void 0);
|
|
4829
4829
|
Ss = c([
|
|
4830
4830
|
V({ type: j.Choice })
|
|
@@ -4862,29 +4862,29 @@ c([
|
|
|
4862
4862
|
d({ type: he })
|
|
4863
4863
|
], po.prototype, "base", void 0);
|
|
4864
4864
|
c([
|
|
4865
|
-
d({ type:
|
|
4865
|
+
d({ type: m.Integer, context: 0, defaultValue: 0, implicit: !0 })
|
|
4866
4866
|
], po.prototype, "minimum", void 0);
|
|
4867
4867
|
c([
|
|
4868
|
-
d({ type:
|
|
4868
|
+
d({ type: m.Integer, context: 1, optional: !0, implicit: !0 })
|
|
4869
4869
|
], po.prototype, "maximum", void 0);
|
|
4870
|
-
let
|
|
4870
|
+
let vn = xs = class extends Se {
|
|
4871
4871
|
constructor(t) {
|
|
4872
4872
|
super(t), Object.setPrototypeOf(this, xs.prototype);
|
|
4873
4873
|
}
|
|
4874
4874
|
};
|
|
4875
|
-
|
|
4875
|
+
vn = xs = c([
|
|
4876
4876
|
V({ type: j.Sequence, itemType: po })
|
|
4877
|
-
],
|
|
4877
|
+
], vn);
|
|
4878
4878
|
class Kd {
|
|
4879
4879
|
constructor(t = {}) {
|
|
4880
4880
|
Object.assign(this, t);
|
|
4881
4881
|
}
|
|
4882
4882
|
}
|
|
4883
4883
|
c([
|
|
4884
|
-
d({ type:
|
|
4884
|
+
d({ type: vn, context: 0, optional: !0, implicit: !0 })
|
|
4885
4885
|
], Kd.prototype, "permittedSubtrees", void 0);
|
|
4886
4886
|
c([
|
|
4887
|
-
d({ type:
|
|
4887
|
+
d({ type: vn, context: 1, optional: !0, implicit: !0 })
|
|
4888
4888
|
], Kd.prototype, "excludedSubtrees", void 0);
|
|
4889
4889
|
class zd {
|
|
4890
4890
|
constructor(t = {}) {
|
|
@@ -4893,7 +4893,7 @@ class zd {
|
|
|
4893
4893
|
}
|
|
4894
4894
|
c([
|
|
4895
4895
|
d({
|
|
4896
|
-
type:
|
|
4896
|
+
type: m.Integer,
|
|
4897
4897
|
context: 0,
|
|
4898
4898
|
implicit: !0,
|
|
4899
4899
|
optional: !0,
|
|
@@ -4902,7 +4902,7 @@ c([
|
|
|
4902
4902
|
], zd.prototype, "requireExplicitPolicy", void 0);
|
|
4903
4903
|
c([
|
|
4904
4904
|
d({
|
|
4905
|
-
type:
|
|
4905
|
+
type: m.Integer,
|
|
4906
4906
|
context: 1,
|
|
4907
4907
|
implicit: !0,
|
|
4908
4908
|
optional: !0,
|
|
@@ -4916,10 +4916,10 @@ class Ga {
|
|
|
4916
4916
|
}
|
|
4917
4917
|
}
|
|
4918
4918
|
c([
|
|
4919
|
-
d({ type:
|
|
4919
|
+
d({ type: m.ObjectIdentifier })
|
|
4920
4920
|
], Ga.prototype, "issuerDomainPolicy", void 0);
|
|
4921
4921
|
c([
|
|
4922
|
-
d({ type:
|
|
4922
|
+
d({ type: m.ObjectIdentifier })
|
|
4923
4923
|
], Ga.prototype, "subjectDomainPolicy", void 0);
|
|
4924
4924
|
let Kl = Is = class extends Se {
|
|
4925
4925
|
constructor(t) {
|
|
@@ -4945,10 +4945,10 @@ let Gt = class {
|
|
|
4945
4945
|
}
|
|
4946
4946
|
};
|
|
4947
4947
|
c([
|
|
4948
|
-
d({ type:
|
|
4948
|
+
d({ type: m.ObjectIdentifier })
|
|
4949
4949
|
], Gt.prototype, "type", void 0);
|
|
4950
4950
|
c([
|
|
4951
|
-
d({ type:
|
|
4951
|
+
d({ type: m.Any, repeated: "set" })
|
|
4952
4952
|
], Gt.prototype, "values", void 0);
|
|
4953
4953
|
var Os;
|
|
4954
4954
|
let zl = Os = class extends Se {
|
|
@@ -4968,10 +4968,10 @@ class Jd {
|
|
|
4968
4968
|
}
|
|
4969
4969
|
}
|
|
4970
4970
|
c([
|
|
4971
|
-
d({ type:
|
|
4971
|
+
d({ type: m.GeneralizedTime, context: 0, implicit: !0, optional: !0 })
|
|
4972
4972
|
], Jd.prototype, "notBefore", void 0);
|
|
4973
4973
|
c([
|
|
4974
|
-
d({ type:
|
|
4974
|
+
d({ type: m.GeneralizedTime, context: 1, implicit: !0, optional: !0 })
|
|
4975
4975
|
], Jd.prototype, "notAfter", void 0);
|
|
4976
4976
|
var bi;
|
|
4977
4977
|
(function(e) {
|
|
@@ -4992,7 +4992,7 @@ class Zd {
|
|
|
4992
4992
|
}
|
|
4993
4993
|
}
|
|
4994
4994
|
c([
|
|
4995
|
-
d({ type:
|
|
4995
|
+
d({ type: m.GeneralString })
|
|
4996
4996
|
], Zd.prototype, "entrustVers", void 0);
|
|
4997
4997
|
c([
|
|
4998
4998
|
d({ type: Yd })
|
|
@@ -5016,12 +5016,12 @@ class Q {
|
|
|
5016
5016
|
}
|
|
5017
5017
|
c([
|
|
5018
5018
|
d({
|
|
5019
|
-
type:
|
|
5019
|
+
type: m.ObjectIdentifier
|
|
5020
5020
|
})
|
|
5021
5021
|
], Q.prototype, "algorithm", void 0);
|
|
5022
5022
|
c([
|
|
5023
5023
|
d({
|
|
5024
|
-
type:
|
|
5024
|
+
type: m.Any,
|
|
5025
5025
|
optional: !0
|
|
5026
5026
|
})
|
|
5027
5027
|
], Q.prototype, "parameters", void 0);
|
|
@@ -5034,7 +5034,7 @@ c([
|
|
|
5034
5034
|
d({ type: Q })
|
|
5035
5035
|
], qt.prototype, "algorithm", void 0);
|
|
5036
5036
|
c([
|
|
5037
|
-
d({ type:
|
|
5037
|
+
d({ type: m.BitString })
|
|
5038
5038
|
], qt.prototype, "subjectPublicKey", void 0);
|
|
5039
5039
|
let Ye = class {
|
|
5040
5040
|
constructor(t) {
|
|
@@ -5054,12 +5054,12 @@ let Ye = class {
|
|
|
5054
5054
|
};
|
|
5055
5055
|
c([
|
|
5056
5056
|
d({
|
|
5057
|
-
type:
|
|
5057
|
+
type: m.UTCTime
|
|
5058
5058
|
})
|
|
5059
5059
|
], Ye.prototype, "utcTime", void 0);
|
|
5060
5060
|
c([
|
|
5061
5061
|
d({
|
|
5062
|
-
type:
|
|
5062
|
+
type: m.GeneralizedTime
|
|
5063
5063
|
})
|
|
5064
5064
|
], Ye.prototype, "generalTime", void 0);
|
|
5065
5065
|
Ye = c([
|
|
@@ -5084,11 +5084,11 @@ let xt = class Qd {
|
|
|
5084
5084
|
};
|
|
5085
5085
|
xt.CRITICAL = !1;
|
|
5086
5086
|
c([
|
|
5087
|
-
d({ type:
|
|
5087
|
+
d({ type: m.ObjectIdentifier })
|
|
5088
5088
|
], xt.prototype, "extnID", void 0);
|
|
5089
5089
|
c([
|
|
5090
5090
|
d({
|
|
5091
|
-
type:
|
|
5091
|
+
type: m.Boolean,
|
|
5092
5092
|
defaultValue: xt.CRITICAL
|
|
5093
5093
|
})
|
|
5094
5094
|
], xt.prototype, "critical", void 0);
|
|
@@ -5114,14 +5114,14 @@ class wt {
|
|
|
5114
5114
|
}
|
|
5115
5115
|
c([
|
|
5116
5116
|
d({
|
|
5117
|
-
type:
|
|
5117
|
+
type: m.Integer,
|
|
5118
5118
|
context: 0,
|
|
5119
5119
|
defaultValue: Gr.v1
|
|
5120
5120
|
})
|
|
5121
5121
|
], wt.prototype, "version", void 0);
|
|
5122
5122
|
c([
|
|
5123
5123
|
d({
|
|
5124
|
-
type:
|
|
5124
|
+
type: m.Integer,
|
|
5125
5125
|
converter: je
|
|
5126
5126
|
})
|
|
5127
5127
|
], wt.prototype, "serialNumber", void 0);
|
|
@@ -5142,14 +5142,14 @@ c([
|
|
|
5142
5142
|
], wt.prototype, "subjectPublicKeyInfo", void 0);
|
|
5143
5143
|
c([
|
|
5144
5144
|
d({
|
|
5145
|
-
type:
|
|
5145
|
+
type: m.BitString,
|
|
5146
5146
|
context: 1,
|
|
5147
5147
|
implicit: !0,
|
|
5148
5148
|
optional: !0
|
|
5149
5149
|
})
|
|
5150
5150
|
], wt.prototype, "issuerUniqueID", void 0);
|
|
5151
5151
|
c([
|
|
5152
|
-
d({ type:
|
|
5152
|
+
d({ type: m.BitString, context: 2, implicit: !0, optional: !0 })
|
|
5153
5153
|
], wt.prototype, "subjectUniqueID", void 0);
|
|
5154
5154
|
c([
|
|
5155
5155
|
d({ type: Cr, context: 3, optional: !0 })
|
|
@@ -5166,7 +5166,7 @@ c([
|
|
|
5166
5166
|
d({ type: Q })
|
|
5167
5167
|
], Wr.prototype, "signatureAlgorithm", void 0);
|
|
5168
5168
|
c([
|
|
5169
|
-
d({ type:
|
|
5169
|
+
d({ type: m.BitString })
|
|
5170
5170
|
], Wr.prototype, "signatureValue", void 0);
|
|
5171
5171
|
class yo {
|
|
5172
5172
|
constructor(t = {}) {
|
|
@@ -5174,7 +5174,7 @@ class yo {
|
|
|
5174
5174
|
}
|
|
5175
5175
|
}
|
|
5176
5176
|
c([
|
|
5177
|
-
d({ type:
|
|
5177
|
+
d({ type: m.Integer, converter: je })
|
|
5178
5178
|
], yo.prototype, "userCertificate", void 0);
|
|
5179
5179
|
c([
|
|
5180
5180
|
d({ type: Ye })
|
|
@@ -5188,7 +5188,7 @@ class Xt {
|
|
|
5188
5188
|
}
|
|
5189
5189
|
}
|
|
5190
5190
|
c([
|
|
5191
|
-
d({ type:
|
|
5191
|
+
d({ type: m.Integer, optional: !0 })
|
|
5192
5192
|
], Xt.prototype, "version", void 0);
|
|
5193
5193
|
c([
|
|
5194
5194
|
d({ type: Q })
|
|
@@ -5220,7 +5220,7 @@ c([
|
|
|
5220
5220
|
d({ type: Q })
|
|
5221
5221
|
], Wa.prototype, "signatureAlgorithm", void 0);
|
|
5222
5222
|
c([
|
|
5223
|
-
d({ type:
|
|
5223
|
+
d({ type: m.BitString })
|
|
5224
5224
|
], Wa.prototype, "signature", void 0);
|
|
5225
5225
|
class ai {
|
|
5226
5226
|
constructor(t = {}) {
|
|
@@ -5231,7 +5231,7 @@ c([
|
|
|
5231
5231
|
d({ type: Fe })
|
|
5232
5232
|
], ai.prototype, "issuer", void 0);
|
|
5233
5233
|
c([
|
|
5234
|
-
d({ type:
|
|
5234
|
+
d({ type: m.Integer, converter: je })
|
|
5235
5235
|
], ai.prototype, "serialNumber", void 0);
|
|
5236
5236
|
let Jr = class {
|
|
5237
5237
|
constructor(t = {}) {
|
|
@@ -5287,10 +5287,10 @@ let li = class {
|
|
|
5287
5287
|
}
|
|
5288
5288
|
};
|
|
5289
5289
|
c([
|
|
5290
|
-
d({ type:
|
|
5290
|
+
d({ type: m.ObjectIdentifier })
|
|
5291
5291
|
], li.prototype, "attrType", void 0);
|
|
5292
5292
|
c([
|
|
5293
|
-
d({ type:
|
|
5293
|
+
d({ type: m.Any, repeated: "set" })
|
|
5294
5294
|
], li.prototype, "attrValues", void 0);
|
|
5295
5295
|
var js;
|
|
5296
5296
|
class Vt {
|
|
@@ -5299,7 +5299,7 @@ class Vt {
|
|
|
5299
5299
|
}
|
|
5300
5300
|
}
|
|
5301
5301
|
c([
|
|
5302
|
-
d({ type:
|
|
5302
|
+
d({ type: m.Integer })
|
|
5303
5303
|
], Vt.prototype, "version", void 0);
|
|
5304
5304
|
c([
|
|
5305
5305
|
d({ type: Jr })
|
|
@@ -5346,7 +5346,7 @@ c([
|
|
|
5346
5346
|
d({ type: he })
|
|
5347
5347
|
], Ja.prototype, "acIssuer", void 0);
|
|
5348
5348
|
c([
|
|
5349
|
-
d({ type:
|
|
5349
|
+
d({ type: m.Integer })
|
|
5350
5350
|
], Ja.prototype, "acSerial", void 0);
|
|
5351
5351
|
c([
|
|
5352
5352
|
d({ type: Gt, repeated: "sequence" })
|
|
@@ -5358,7 +5358,7 @@ let An = Ms = class extends Se {
|
|
|
5358
5358
|
}
|
|
5359
5359
|
};
|
|
5360
5360
|
An = Ms = c([
|
|
5361
|
-
V({ type: j.Sequence, itemType:
|
|
5361
|
+
V({ type: j.Sequence, itemType: m.ObjectIdentifier })
|
|
5362
5362
|
], An);
|
|
5363
5363
|
class go {
|
|
5364
5364
|
constructor(t = {}) {
|
|
@@ -5366,7 +5366,7 @@ class go {
|
|
|
5366
5366
|
}
|
|
5367
5367
|
}
|
|
5368
5368
|
c([
|
|
5369
|
-
d({ type:
|
|
5369
|
+
d({ type: m.Integer, optional: !0 })
|
|
5370
5370
|
], go.prototype, "pathLenConstraint", void 0);
|
|
5371
5371
|
c([
|
|
5372
5372
|
d({ type: An, implicit: !0, context: 0, optional: !0 })
|
|
@@ -5375,7 +5375,7 @@ c([
|
|
|
5375
5375
|
d({ type: An, implicit: !0, context: 1, optional: !0 })
|
|
5376
5376
|
], go.prototype, "excludedAttrs", void 0);
|
|
5377
5377
|
c([
|
|
5378
|
-
d({ type:
|
|
5378
|
+
d({ type: m.Boolean, defaultValue: !0 })
|
|
5379
5379
|
], go.prototype, "permitUnSpecified", void 0);
|
|
5380
5380
|
class Nr {
|
|
5381
5381
|
constructor(t = {}) {
|
|
@@ -5386,10 +5386,10 @@ c([
|
|
|
5386
5386
|
d({ type: it })
|
|
5387
5387
|
], Nr.prototype, "issuer", void 0);
|
|
5388
5388
|
c([
|
|
5389
|
-
d({ type:
|
|
5389
|
+
d({ type: m.Integer, converter: je })
|
|
5390
5390
|
], Nr.prototype, "serial", void 0);
|
|
5391
5391
|
c([
|
|
5392
|
-
d({ type:
|
|
5392
|
+
d({ type: m.BitString, optional: !0 })
|
|
5393
5393
|
], Nr.prototype, "issuerUID", void 0);
|
|
5394
5394
|
var Vs;
|
|
5395
5395
|
(function(e) {
|
|
@@ -5401,31 +5401,31 @@ class _r {
|
|
|
5401
5401
|
}
|
|
5402
5402
|
}
|
|
5403
5403
|
c([
|
|
5404
|
-
d({ type:
|
|
5404
|
+
d({ type: m.Enumerated })
|
|
5405
5405
|
], _r.prototype, "digestedObjectType", void 0);
|
|
5406
5406
|
c([
|
|
5407
|
-
d({ type:
|
|
5407
|
+
d({ type: m.ObjectIdentifier, optional: !0 })
|
|
5408
5408
|
], _r.prototype, "otherObjectTypeID", void 0);
|
|
5409
5409
|
c([
|
|
5410
5410
|
d({ type: Q })
|
|
5411
5411
|
], _r.prototype, "digestAlgorithm", void 0);
|
|
5412
5412
|
c([
|
|
5413
|
-
d({ type:
|
|
5413
|
+
d({ type: m.BitString })
|
|
5414
5414
|
], _r.prototype, "objectDigest", void 0);
|
|
5415
|
-
class
|
|
5415
|
+
class mo {
|
|
5416
5416
|
constructor(t = {}) {
|
|
5417
5417
|
Object.assign(this, t);
|
|
5418
5418
|
}
|
|
5419
5419
|
}
|
|
5420
5420
|
c([
|
|
5421
5421
|
d({ type: it, optional: !0 })
|
|
5422
|
-
],
|
|
5422
|
+
], mo.prototype, "issuerName", void 0);
|
|
5423
5423
|
c([
|
|
5424
5424
|
d({ type: Nr, context: 0, implicit: !0, optional: !0 })
|
|
5425
|
-
],
|
|
5425
|
+
], mo.prototype, "baseCertificateID", void 0);
|
|
5426
5426
|
c([
|
|
5427
5427
|
d({ type: _r, context: 1, implicit: !0, optional: !0 })
|
|
5428
|
-
],
|
|
5428
|
+
], mo.prototype, "objectDigestInfo", void 0);
|
|
5429
5429
|
let Yr = class {
|
|
5430
5430
|
constructor(t = {}) {
|
|
5431
5431
|
Object.assign(this, t);
|
|
@@ -5435,22 +5435,22 @@ c([
|
|
|
5435
5435
|
d({ type: he, repeated: "sequence" })
|
|
5436
5436
|
], Yr.prototype, "v1Form", void 0);
|
|
5437
5437
|
c([
|
|
5438
|
-
d({ type:
|
|
5438
|
+
d({ type: mo, context: 0, implicit: !0 })
|
|
5439
5439
|
], Yr.prototype, "v2Form", void 0);
|
|
5440
5440
|
Yr = c([
|
|
5441
5441
|
V({ type: j.Choice })
|
|
5442
5442
|
], Yr);
|
|
5443
|
-
class
|
|
5443
|
+
class vo {
|
|
5444
5444
|
constructor(t = {}) {
|
|
5445
5445
|
this.notBeforeTime = /* @__PURE__ */ new Date(), this.notAfterTime = /* @__PURE__ */ new Date(), Object.assign(this, t);
|
|
5446
5446
|
}
|
|
5447
5447
|
}
|
|
5448
5448
|
c([
|
|
5449
|
-
d({ type:
|
|
5450
|
-
],
|
|
5449
|
+
d({ type: m.GeneralizedTime })
|
|
5450
|
+
], vo.prototype, "notBeforeTime", void 0);
|
|
5451
5451
|
c([
|
|
5452
|
-
d({ type:
|
|
5453
|
-
],
|
|
5452
|
+
d({ type: m.GeneralizedTime })
|
|
5453
|
+
], vo.prototype, "notAfterTime", void 0);
|
|
5454
5454
|
class zi {
|
|
5455
5455
|
constructor(t = {}) {
|
|
5456
5456
|
Object.assign(this, t);
|
|
@@ -5471,11 +5471,11 @@ var Ps;
|
|
|
5471
5471
|
})(Ps || (Ps = {}));
|
|
5472
5472
|
class Bt {
|
|
5473
5473
|
constructor(t = {}) {
|
|
5474
|
-
this.version = Ps.v2, this.holder = new zi(), this.issuer = new Yr(), this.signature = new Q(), this.serialNumber = new ArrayBuffer(0), this.attrCertValidityPeriod = new
|
|
5474
|
+
this.version = Ps.v2, this.holder = new zi(), this.issuer = new Yr(), this.signature = new Q(), this.serialNumber = new ArrayBuffer(0), this.attrCertValidityPeriod = new vo(), this.attributes = [], Object.assign(this, t);
|
|
5475
5475
|
}
|
|
5476
5476
|
}
|
|
5477
5477
|
c([
|
|
5478
|
-
d({ type:
|
|
5478
|
+
d({ type: m.Integer })
|
|
5479
5479
|
], Bt.prototype, "version", void 0);
|
|
5480
5480
|
c([
|
|
5481
5481
|
d({ type: zi })
|
|
@@ -5487,16 +5487,16 @@ c([
|
|
|
5487
5487
|
d({ type: Q })
|
|
5488
5488
|
], Bt.prototype, "signature", void 0);
|
|
5489
5489
|
c([
|
|
5490
|
-
d({ type:
|
|
5490
|
+
d({ type: m.Integer, converter: je })
|
|
5491
5491
|
], Bt.prototype, "serialNumber", void 0);
|
|
5492
5492
|
c([
|
|
5493
|
-
d({ type:
|
|
5493
|
+
d({ type: vo })
|
|
5494
5494
|
], Bt.prototype, "attrCertValidityPeriod", void 0);
|
|
5495
5495
|
c([
|
|
5496
5496
|
d({ type: Gt, repeated: "sequence" })
|
|
5497
5497
|
], Bt.prototype, "attributes", void 0);
|
|
5498
5498
|
c([
|
|
5499
|
-
d({ type:
|
|
5499
|
+
d({ type: m.BitString, optional: !0 })
|
|
5500
5500
|
], Bt.prototype, "issuerUniqueID", void 0);
|
|
5501
5501
|
c([
|
|
5502
5502
|
d({ type: Cr, optional: !0 })
|
|
@@ -5513,7 +5513,7 @@ c([
|
|
|
5513
5513
|
d({ type: Q })
|
|
5514
5514
|
], bo.prototype, "signatureAlgorithm", void 0);
|
|
5515
5515
|
c([
|
|
5516
|
-
d({ type:
|
|
5516
|
+
d({ type: m.BitString })
|
|
5517
5517
|
], bo.prototype, "signatureValue", void 0);
|
|
5518
5518
|
var Sn;
|
|
5519
5519
|
(function(e) {
|
|
@@ -5527,10 +5527,10 @@ class Ya {
|
|
|
5527
5527
|
}
|
|
5528
5528
|
}
|
|
5529
5529
|
c([
|
|
5530
|
-
d({ type:
|
|
5530
|
+
d({ type: m.ObjectIdentifier, implicit: !0, context: 0 })
|
|
5531
5531
|
], Ya.prototype, "type", void 0);
|
|
5532
5532
|
c([
|
|
5533
|
-
d({ type:
|
|
5533
|
+
d({ type: m.Any, implicit: !0, context: 1 })
|
|
5534
5534
|
], Ya.prototype, "value", void 0);
|
|
5535
5535
|
class Za {
|
|
5536
5536
|
constructor(t = {}) {
|
|
@@ -5538,7 +5538,7 @@ class Za {
|
|
|
5538
5538
|
}
|
|
5539
5539
|
}
|
|
5540
5540
|
c([
|
|
5541
|
-
d({ type:
|
|
5541
|
+
d({ type: m.ObjectIdentifier })
|
|
5542
5542
|
], Za.prototype, "policyId", void 0);
|
|
5543
5543
|
c([
|
|
5544
5544
|
d({ type: $s, defaultValue: new $s(Sn.unclassified) })
|
|
@@ -5555,10 +5555,10 @@ c([
|
|
|
5555
5555
|
d({ type: we })
|
|
5556
5556
|
], wo.prototype, "cotets", void 0);
|
|
5557
5557
|
c([
|
|
5558
|
-
d({ type:
|
|
5558
|
+
d({ type: m.ObjectIdentifier })
|
|
5559
5559
|
], wo.prototype, "oid", void 0);
|
|
5560
5560
|
c([
|
|
5561
|
-
d({ type:
|
|
5561
|
+
d({ type: m.Utf8String })
|
|
5562
5562
|
], wo.prototype, "string", void 0);
|
|
5563
5563
|
class Xd {
|
|
5564
5564
|
constructor(t = {}) {
|
|
@@ -5652,10 +5652,10 @@ class Xa {
|
|
|
5652
5652
|
}
|
|
5653
5653
|
}
|
|
5654
5654
|
c([
|
|
5655
|
-
d({ type:
|
|
5655
|
+
d({ type: m.ObjectIdentifier })
|
|
5656
5656
|
], Xa.prototype, "otherCertFormat", void 0);
|
|
5657
5657
|
c([
|
|
5658
|
-
d({ type:
|
|
5658
|
+
d({ type: m.Any })
|
|
5659
5659
|
], Xa.prototype, "otherCert", void 0);
|
|
5660
5660
|
let Qr = class {
|
|
5661
5661
|
constructor(t = {}) {
|
|
@@ -5688,10 +5688,10 @@ class ci {
|
|
|
5688
5688
|
}
|
|
5689
5689
|
}
|
|
5690
5690
|
c([
|
|
5691
|
-
d({ type:
|
|
5691
|
+
d({ type: m.ObjectIdentifier })
|
|
5692
5692
|
], ci.prototype, "contentType", void 0);
|
|
5693
5693
|
c([
|
|
5694
|
-
d({ type:
|
|
5694
|
+
d({ type: m.Any, context: 0 })
|
|
5695
5695
|
], ci.prototype, "content", void 0);
|
|
5696
5696
|
let Ei = class {
|
|
5697
5697
|
constructor(t = {}) {
|
|
@@ -5702,7 +5702,7 @@ c([
|
|
|
5702
5702
|
d({ type: we })
|
|
5703
5703
|
], Ei.prototype, "single", void 0);
|
|
5704
5704
|
c([
|
|
5705
|
-
d({ type:
|
|
5705
|
+
d({ type: m.Any })
|
|
5706
5706
|
], Ei.prototype, "any", void 0);
|
|
5707
5707
|
Ei = c([
|
|
5708
5708
|
V({ type: j.Choice })
|
|
@@ -5713,7 +5713,7 @@ class Ao {
|
|
|
5713
5713
|
}
|
|
5714
5714
|
}
|
|
5715
5715
|
c([
|
|
5716
|
-
d({ type:
|
|
5716
|
+
d({ type: m.ObjectIdentifier })
|
|
5717
5717
|
], Ao.prototype, "eContentType", void 0);
|
|
5718
5718
|
c([
|
|
5719
5719
|
d({ type: Ei, context: 0, optional: !0 })
|
|
@@ -5738,7 +5738,7 @@ class Gi {
|
|
|
5738
5738
|
}
|
|
5739
5739
|
}
|
|
5740
5740
|
c([
|
|
5741
|
-
d({ type:
|
|
5741
|
+
d({ type: m.ObjectIdentifier })
|
|
5742
5742
|
], Gi.prototype, "contentType", void 0);
|
|
5743
5743
|
c([
|
|
5744
5744
|
d({ type: wn })
|
|
@@ -5752,10 +5752,10 @@ class So {
|
|
|
5752
5752
|
}
|
|
5753
5753
|
}
|
|
5754
5754
|
c([
|
|
5755
|
-
d({ type:
|
|
5755
|
+
d({ type: m.ObjectIdentifier })
|
|
5756
5756
|
], So.prototype, "keyAttrId", void 0);
|
|
5757
5757
|
c([
|
|
5758
|
-
d({ type:
|
|
5758
|
+
d({ type: m.Any, optional: !0 })
|
|
5759
5759
|
], So.prototype, "keyAttr", void 0);
|
|
5760
5760
|
var Hs;
|
|
5761
5761
|
class Co {
|
|
@@ -5767,7 +5767,7 @@ c([
|
|
|
5767
5767
|
d({ type: nr })
|
|
5768
5768
|
], Co.prototype, "subjectKeyIdentifier", void 0);
|
|
5769
5769
|
c([
|
|
5770
|
-
d({ type:
|
|
5770
|
+
d({ type: m.GeneralizedTime, optional: !0 })
|
|
5771
5771
|
], Co.prototype, "date", void 0);
|
|
5772
5772
|
c([
|
|
5773
5773
|
d({ type: So, optional: !0 })
|
|
@@ -5814,7 +5814,7 @@ c([
|
|
|
5814
5814
|
d({ type: Q })
|
|
5815
5815
|
], tl.prototype, "algorithm", void 0);
|
|
5816
5816
|
c([
|
|
5817
|
-
d({ type:
|
|
5817
|
+
d({ type: m.BitString })
|
|
5818
5818
|
], tl.prototype, "publicKey", void 0);
|
|
5819
5819
|
let xr = class {
|
|
5820
5820
|
constructor(t = {}) {
|
|
@@ -5839,7 +5839,7 @@ class ui {
|
|
|
5839
5839
|
}
|
|
5840
5840
|
}
|
|
5841
5841
|
c([
|
|
5842
|
-
d({ type:
|
|
5842
|
+
d({ type: m.Integer })
|
|
5843
5843
|
], ui.prototype, "version", void 0);
|
|
5844
5844
|
c([
|
|
5845
5845
|
d({ type: xr, context: 0 })
|
|
@@ -5873,7 +5873,7 @@ class Wi {
|
|
|
5873
5873
|
}
|
|
5874
5874
|
}
|
|
5875
5875
|
c([
|
|
5876
|
-
d({ type:
|
|
5876
|
+
d({ type: m.Integer })
|
|
5877
5877
|
], Wi.prototype, "version", void 0);
|
|
5878
5878
|
c([
|
|
5879
5879
|
d({ type: ei })
|
|
@@ -5893,7 +5893,7 @@ c([
|
|
|
5893
5893
|
d({ type: we })
|
|
5894
5894
|
], Ji.prototype, "keyIdentifier", void 0);
|
|
5895
5895
|
c([
|
|
5896
|
-
d({ type:
|
|
5896
|
+
d({ type: m.GeneralizedTime, optional: !0 })
|
|
5897
5897
|
], Ji.prototype, "date", void 0);
|
|
5898
5898
|
c([
|
|
5899
5899
|
d({ type: So, optional: !0 })
|
|
@@ -5904,7 +5904,7 @@ class Yi {
|
|
|
5904
5904
|
}
|
|
5905
5905
|
}
|
|
5906
5906
|
c([
|
|
5907
|
-
d({ type:
|
|
5907
|
+
d({ type: m.Integer })
|
|
5908
5908
|
], Yi.prototype, "version", void 0);
|
|
5909
5909
|
c([
|
|
5910
5910
|
d({ type: Ji })
|
|
@@ -5921,7 +5921,7 @@ class Zi {
|
|
|
5921
5921
|
}
|
|
5922
5922
|
}
|
|
5923
5923
|
c([
|
|
5924
|
-
d({ type:
|
|
5924
|
+
d({ type: m.Integer })
|
|
5925
5925
|
], Zi.prototype, "version", void 0);
|
|
5926
5926
|
c([
|
|
5927
5927
|
d({ type: Ts, context: 0, optional: !0 })
|
|
@@ -5938,10 +5938,10 @@ class rl {
|
|
|
5938
5938
|
}
|
|
5939
5939
|
}
|
|
5940
5940
|
c([
|
|
5941
|
-
d({ type:
|
|
5941
|
+
d({ type: m.ObjectIdentifier })
|
|
5942
5942
|
], rl.prototype, "oriType", void 0);
|
|
5943
5943
|
c([
|
|
5944
|
-
d({ type:
|
|
5944
|
+
d({ type: m.Any })
|
|
5945
5945
|
], rl.prototype, "oriValue", void 0);
|
|
5946
5946
|
let ar = class {
|
|
5947
5947
|
constructor(t = {}) {
|
|
@@ -5982,10 +5982,10 @@ class xo {
|
|
|
5982
5982
|
}
|
|
5983
5983
|
}
|
|
5984
5984
|
c([
|
|
5985
|
-
d({ type:
|
|
5985
|
+
d({ type: m.ObjectIdentifier })
|
|
5986
5986
|
], xo.prototype, "otherRevInfoFormat", void 0);
|
|
5987
5987
|
c([
|
|
5988
|
-
d({ type:
|
|
5988
|
+
d({ type: m.Any })
|
|
5989
5989
|
], xo.prototype, "otherRevInfo", void 0);
|
|
5990
5990
|
let Ni = class {
|
|
5991
5991
|
constructor(t = {}) {
|
|
@@ -6032,7 +6032,7 @@ class Qi {
|
|
|
6032
6032
|
}
|
|
6033
6033
|
}
|
|
6034
6034
|
c([
|
|
6035
|
-
d({ type:
|
|
6035
|
+
d({ type: m.Integer })
|
|
6036
6036
|
], Qi.prototype, "version", void 0);
|
|
6037
6037
|
c([
|
|
6038
6038
|
d({ type: il, context: 0, implicit: !0, optional: !0 })
|
|
@@ -6062,7 +6062,7 @@ class di {
|
|
|
6062
6062
|
}
|
|
6063
6063
|
}
|
|
6064
6064
|
c([
|
|
6065
|
-
d({ type:
|
|
6065
|
+
d({ type: m.Integer })
|
|
6066
6066
|
], di.prototype, "version", void 0);
|
|
6067
6067
|
c([
|
|
6068
6068
|
d({ type: Bn })
|
|
@@ -6092,7 +6092,7 @@ let ti = class {
|
|
|
6092
6092
|
}
|
|
6093
6093
|
};
|
|
6094
6094
|
c([
|
|
6095
|
-
d({ type:
|
|
6095
|
+
d({ type: m.ObjectIdentifier })
|
|
6096
6096
|
], ti.prototype, "namedCurve", void 0);
|
|
6097
6097
|
ti = c([
|
|
6098
6098
|
V({ type: j.Choice })
|
|
@@ -6103,7 +6103,7 @@ class Io {
|
|
|
6103
6103
|
}
|
|
6104
6104
|
}
|
|
6105
6105
|
c([
|
|
6106
|
-
d({ type:
|
|
6106
|
+
d({ type: m.Integer })
|
|
6107
6107
|
], Io.prototype, "version", void 0);
|
|
6108
6108
|
c([
|
|
6109
6109
|
d({ type: we })
|
|
@@ -6112,7 +6112,7 @@ c([
|
|
|
6112
6112
|
d({ type: ti, context: 0, optional: !0 })
|
|
6113
6113
|
], Io.prototype, "parameters", void 0);
|
|
6114
6114
|
c([
|
|
6115
|
-
d({ type:
|
|
6115
|
+
d({ type: m.BitString, context: 1, optional: !0 })
|
|
6116
6116
|
], Io.prototype, "publicKey", void 0);
|
|
6117
6117
|
class En {
|
|
6118
6118
|
constructor(t = {}) {
|
|
@@ -6120,10 +6120,10 @@ class En {
|
|
|
6120
6120
|
}
|
|
6121
6121
|
}
|
|
6122
6122
|
c([
|
|
6123
|
-
d({ type:
|
|
6123
|
+
d({ type: m.Integer, converter: je })
|
|
6124
6124
|
], En.prototype, "r", void 0);
|
|
6125
6125
|
c([
|
|
6126
|
-
d({ type:
|
|
6126
|
+
d({ type: m.Integer, converter: je })
|
|
6127
6127
|
], En.prototype, "s", void 0);
|
|
6128
6128
|
const ut = "1.2.840.113549.1.1", ri = `${ut}.1`, ry = `${ut}.7`, iy = `${ut}.9`, ny = `${ut}.10`, oy = `${ut}.2`, sy = `${ut}.4`, On = `${ut}.5`, ay = `${ut}.14`, Js = `${ut}.11`, Nn = `${ut}.12`, _n = `${ut}.13`, rf = `${ut}.15`, nf = `${ut}.16`, of = "1.3.14.3.2.26", sf = "2.16.840.1.101.3.4.2.4", af = "2.16.840.1.101.3.4.2.1", lf = "2.16.840.1.101.3.4.2.2", cf = "2.16.840.1.101.3.4.2.3", ly = "2.16.840.1.101.3.4.2.5", cy = "2.16.840.1.101.3.4.2.6", uy = "1.2.840.113549.2.2", dy = "1.2.840.113549.2.5", ll = `${ut}.8`;
|
|
6129
6129
|
function Ke(e) {
|
|
@@ -6191,10 +6191,10 @@ c([
|
|
|
6191
6191
|
d({ type: Q, context: 1, defaultValue: uf })
|
|
6192
6192
|
], en.prototype, "maskGenAlgorithm", void 0);
|
|
6193
6193
|
c([
|
|
6194
|
-
d({ type:
|
|
6194
|
+
d({ type: m.Integer, context: 2, defaultValue: 20 })
|
|
6195
6195
|
], en.prototype, "saltLength", void 0);
|
|
6196
6196
|
c([
|
|
6197
|
-
d({ type:
|
|
6197
|
+
d({ type: m.Integer, context: 3, defaultValue: 1 })
|
|
6198
6198
|
], en.prototype, "trailerField", void 0);
|
|
6199
6199
|
new Q({
|
|
6200
6200
|
algorithm: ny,
|
|
@@ -6218,13 +6218,13 @@ class Oo {
|
|
|
6218
6218
|
}
|
|
6219
6219
|
}
|
|
6220
6220
|
c([
|
|
6221
|
-
d({ type:
|
|
6221
|
+
d({ type: m.Integer, converter: je })
|
|
6222
6222
|
], Oo.prototype, "prime", void 0);
|
|
6223
6223
|
c([
|
|
6224
|
-
d({ type:
|
|
6224
|
+
d({ type: m.Integer, converter: je })
|
|
6225
6225
|
], Oo.prototype, "exponent", void 0);
|
|
6226
6226
|
c([
|
|
6227
|
-
d({ type:
|
|
6227
|
+
d({ type: m.Integer, converter: je })
|
|
6228
6228
|
], Oo.prototype, "coefficient", void 0);
|
|
6229
6229
|
let Zs = Ys = class extends Se {
|
|
6230
6230
|
constructor(t) {
|
|
@@ -6240,31 +6240,31 @@ class Pt {
|
|
|
6240
6240
|
}
|
|
6241
6241
|
}
|
|
6242
6242
|
c([
|
|
6243
|
-
d({ type:
|
|
6243
|
+
d({ type: m.Integer })
|
|
6244
6244
|
], Pt.prototype, "version", void 0);
|
|
6245
6245
|
c([
|
|
6246
|
-
d({ type:
|
|
6246
|
+
d({ type: m.Integer, converter: je })
|
|
6247
6247
|
], Pt.prototype, "modulus", void 0);
|
|
6248
6248
|
c([
|
|
6249
|
-
d({ type:
|
|
6249
|
+
d({ type: m.Integer, converter: je })
|
|
6250
6250
|
], Pt.prototype, "publicExponent", void 0);
|
|
6251
6251
|
c([
|
|
6252
|
-
d({ type:
|
|
6252
|
+
d({ type: m.Integer, converter: je })
|
|
6253
6253
|
], Pt.prototype, "privateExponent", void 0);
|
|
6254
6254
|
c([
|
|
6255
|
-
d({ type:
|
|
6255
|
+
d({ type: m.Integer, converter: je })
|
|
6256
6256
|
], Pt.prototype, "prime1", void 0);
|
|
6257
6257
|
c([
|
|
6258
|
-
d({ type:
|
|
6258
|
+
d({ type: m.Integer, converter: je })
|
|
6259
6259
|
], Pt.prototype, "prime2", void 0);
|
|
6260
6260
|
c([
|
|
6261
|
-
d({ type:
|
|
6261
|
+
d({ type: m.Integer, converter: je })
|
|
6262
6262
|
], Pt.prototype, "exponent1", void 0);
|
|
6263
6263
|
c([
|
|
6264
|
-
d({ type:
|
|
6264
|
+
d({ type: m.Integer, converter: je })
|
|
6265
6265
|
], Pt.prototype, "exponent2", void 0);
|
|
6266
6266
|
c([
|
|
6267
|
-
d({ type:
|
|
6267
|
+
d({ type: m.Integer, converter: je })
|
|
6268
6268
|
], Pt.prototype, "coefficient", void 0);
|
|
6269
6269
|
c([
|
|
6270
6270
|
d({ type: Zs, optional: !0 })
|
|
@@ -6275,10 +6275,10 @@ class cl {
|
|
|
6275
6275
|
}
|
|
6276
6276
|
}
|
|
6277
6277
|
c([
|
|
6278
|
-
d({ type:
|
|
6278
|
+
d({ type: m.Integer, converter: je })
|
|
6279
6279
|
], cl.prototype, "modulus", void 0);
|
|
6280
6280
|
c([
|
|
6281
|
-
d({ type:
|
|
6281
|
+
d({ type: m.Integer, converter: je })
|
|
6282
6282
|
], cl.prototype, "publicExponent", void 0);
|
|
6283
6283
|
var Qs;
|
|
6284
6284
|
(function(e) {
|
|
@@ -6499,7 +6499,7 @@ function gy(e) {
|
|
|
6499
6499
|
function tc(e) {
|
|
6500
6500
|
return typeof e == "object" && "token" in e && "transform" in e;
|
|
6501
6501
|
}
|
|
6502
|
-
function
|
|
6502
|
+
function my(e) {
|
|
6503
6503
|
return typeof e == "function" || e instanceof pf;
|
|
6504
6504
|
}
|
|
6505
6505
|
function an(e) {
|
|
@@ -6508,7 +6508,7 @@ function an(e) {
|
|
|
6508
6508
|
function ln(e) {
|
|
6509
6509
|
return e.useValue != null;
|
|
6510
6510
|
}
|
|
6511
|
-
function
|
|
6511
|
+
function vy(e) {
|
|
6512
6512
|
return ff(e) || ln(e) || an(e) || ea(e);
|
|
6513
6513
|
}
|
|
6514
6514
|
var dl = function() {
|
|
@@ -6593,7 +6593,7 @@ var Cy = function(e) {
|
|
|
6593
6593
|
return e.prototype.register = function(t, r, i) {
|
|
6594
6594
|
i === void 0 && (i = { lifecycle: ot.Transient }), this.ensureNotDisposed();
|
|
6595
6595
|
var n;
|
|
6596
|
-
if (
|
|
6596
|
+
if (vy(r) ? n = r : n = { useClass: r }, an(n))
|
|
6597
6597
|
for (var o = [t], s = n; s != null; ) {
|
|
6598
6598
|
var a = s.useToken;
|
|
6599
6599
|
if (o.includes(a))
|
|
@@ -6640,7 +6640,7 @@ var Cy = function(e) {
|
|
|
6640
6640
|
var n = this.resolveRegistration(i, r);
|
|
6641
6641
|
return this.executePostResolutionInterceptor(t, n, "Single"), n;
|
|
6642
6642
|
}
|
|
6643
|
-
if (
|
|
6643
|
+
if (my(t)) {
|
|
6644
6644
|
var n = this.construct(t, r);
|
|
6645
6645
|
return this.executePostResolutionInterceptor(t, n, "Single"), n;
|
|
6646
6646
|
}
|
|
@@ -6820,7 +6820,7 @@ var Cy = function(e) {
|
|
|
6820
6820
|
if (this.disposed)
|
|
6821
6821
|
throw new Error("This container has been disposed, you cannot interact with a disposed container");
|
|
6822
6822
|
}, e;
|
|
6823
|
-
}(),
|
|
6823
|
+
}(), vt = new By();
|
|
6824
6824
|
function fl() {
|
|
6825
6825
|
return function(e) {
|
|
6826
6826
|
hf.set(e, yy(e));
|
|
@@ -6835,10 +6835,10 @@ class No {
|
|
|
6835
6835
|
}
|
|
6836
6836
|
}
|
|
6837
6837
|
c([
|
|
6838
|
-
d({ type:
|
|
6838
|
+
d({ type: m.ObjectIdentifier })
|
|
6839
6839
|
], No.prototype, "attrId", void 0);
|
|
6840
6840
|
c([
|
|
6841
|
-
d({ type:
|
|
6841
|
+
d({ type: m.Any, repeated: "set" })
|
|
6842
6842
|
], No.prototype, "attrValues", void 0);
|
|
6843
6843
|
let ic = ta = class extends Se {
|
|
6844
6844
|
constructor(t) {
|
|
@@ -6863,10 +6863,10 @@ class yf {
|
|
|
6863
6863
|
}
|
|
6864
6864
|
}
|
|
6865
6865
|
c([
|
|
6866
|
-
d({ type:
|
|
6866
|
+
d({ type: m.ObjectIdentifier })
|
|
6867
6867
|
], yf.prototype, "certId", void 0);
|
|
6868
6868
|
c([
|
|
6869
|
-
d({ type:
|
|
6869
|
+
d({ type: m.Any, context: 0 })
|
|
6870
6870
|
], yf.prototype, "certValue", void 0);
|
|
6871
6871
|
class gf {
|
|
6872
6872
|
constructor(t = {}) {
|
|
@@ -6874,29 +6874,29 @@ class gf {
|
|
|
6874
6874
|
}
|
|
6875
6875
|
}
|
|
6876
6876
|
c([
|
|
6877
|
-
d({ type:
|
|
6877
|
+
d({ type: m.ObjectIdentifier })
|
|
6878
6878
|
], gf.prototype, "crlId", void 0);
|
|
6879
6879
|
c([
|
|
6880
|
-
d({ type:
|
|
6880
|
+
d({ type: m.Any, context: 0 })
|
|
6881
6881
|
], gf.prototype, "crltValue", void 0);
|
|
6882
|
-
class
|
|
6882
|
+
class mf extends we {
|
|
6883
6883
|
}
|
|
6884
6884
|
let _o = class {
|
|
6885
6885
|
constructor(t = {}) {
|
|
6886
|
-
this.encryptionAlgorithm = new Q(), this.encryptedData = new
|
|
6886
|
+
this.encryptionAlgorithm = new Q(), this.encryptedData = new mf(), Object.assign(this, t);
|
|
6887
6887
|
}
|
|
6888
6888
|
};
|
|
6889
6889
|
c([
|
|
6890
6890
|
d({ type: Q })
|
|
6891
6891
|
], _o.prototype, "encryptionAlgorithm", void 0);
|
|
6892
6892
|
c([
|
|
6893
|
-
d({ type:
|
|
6893
|
+
d({ type: mf })
|
|
6894
6894
|
], _o.prototype, "encryptedData", void 0);
|
|
6895
6895
|
var ia, na;
|
|
6896
6896
|
(function(e) {
|
|
6897
6897
|
e[e.v1 = 0] = "v1";
|
|
6898
6898
|
})(na || (na = {}));
|
|
6899
|
-
class
|
|
6899
|
+
class vf extends we {
|
|
6900
6900
|
}
|
|
6901
6901
|
let oa = ia = class extends Se {
|
|
6902
6902
|
constructor(t) {
|
|
@@ -6908,17 +6908,17 @@ oa = ia = c([
|
|
|
6908
6908
|
], oa);
|
|
6909
6909
|
class tn {
|
|
6910
6910
|
constructor(t = {}) {
|
|
6911
|
-
this.version = na.v1, this.privateKeyAlgorithm = new Q(), this.privateKey = new
|
|
6911
|
+
this.version = na.v1, this.privateKeyAlgorithm = new Q(), this.privateKey = new vf(), Object.assign(this, t);
|
|
6912
6912
|
}
|
|
6913
6913
|
}
|
|
6914
6914
|
c([
|
|
6915
|
-
d({ type:
|
|
6915
|
+
d({ type: m.Integer })
|
|
6916
6916
|
], tn.prototype, "version", void 0);
|
|
6917
6917
|
c([
|
|
6918
6918
|
d({ type: Q })
|
|
6919
6919
|
], tn.prototype, "privateKeyAlgorithm", void 0);
|
|
6920
6920
|
c([
|
|
6921
|
-
d({ type:
|
|
6921
|
+
d({ type: vf })
|
|
6922
6922
|
], tn.prototype, "privateKey", void 0);
|
|
6923
6923
|
c([
|
|
6924
6924
|
d({ type: oa, implicit: !0, context: 0, optional: !0 })
|
|
@@ -6939,10 +6939,10 @@ class bf {
|
|
|
6939
6939
|
}
|
|
6940
6940
|
}
|
|
6941
6941
|
c([
|
|
6942
|
-
d({ type:
|
|
6942
|
+
d({ type: m.ObjectIdentifier })
|
|
6943
6943
|
], bf.prototype, "secretTypeId", void 0);
|
|
6944
6944
|
c([
|
|
6945
|
-
d({ type:
|
|
6945
|
+
d({ type: m.Any, context: 0 })
|
|
6946
6946
|
], bf.prototype, "secretValue", void 0);
|
|
6947
6947
|
class rn {
|
|
6948
6948
|
constructor(t = {}) {
|
|
@@ -6956,7 +6956,7 @@ c([
|
|
|
6956
6956
|
d({ type: we })
|
|
6957
6957
|
], rn.prototype, "macSalt", void 0);
|
|
6958
6958
|
c([
|
|
6959
|
-
d({ type:
|
|
6959
|
+
d({ type: m.Integer, defaultValue: 1 })
|
|
6960
6960
|
], rn.prototype, "iterations", void 0);
|
|
6961
6961
|
class To {
|
|
6962
6962
|
constructor(t = {}) {
|
|
@@ -6964,7 +6964,7 @@ class To {
|
|
|
6964
6964
|
}
|
|
6965
6965
|
}
|
|
6966
6966
|
c([
|
|
6967
|
-
d({ type:
|
|
6967
|
+
d({ type: m.Integer })
|
|
6968
6968
|
], To.prototype, "version", void 0);
|
|
6969
6969
|
c([
|
|
6970
6970
|
d({ type: ci })
|
|
@@ -6979,10 +6979,10 @@ class jo {
|
|
|
6979
6979
|
}
|
|
6980
6980
|
}
|
|
6981
6981
|
c([
|
|
6982
|
-
d({ type:
|
|
6982
|
+
d({ type: m.ObjectIdentifier })
|
|
6983
6983
|
], jo.prototype, "bagId", void 0);
|
|
6984
6984
|
c([
|
|
6985
|
-
d({ type:
|
|
6985
|
+
d({ type: m.Any, context: 0 })
|
|
6986
6986
|
], jo.prototype, "bagValue", void 0);
|
|
6987
6987
|
c([
|
|
6988
6988
|
d({ type: No, repeated: "set", optional: !0 })
|
|
@@ -7006,7 +7006,7 @@ let jn = class extends Xe {
|
|
|
7006
7006
|
}
|
|
7007
7007
|
};
|
|
7008
7008
|
c([
|
|
7009
|
-
d({ type:
|
|
7009
|
+
d({ type: m.IA5String })
|
|
7010
7010
|
], jn.prototype, "ia5String", void 0);
|
|
7011
7011
|
jn = c([
|
|
7012
7012
|
V({ type: j.Choice })
|
|
@@ -7035,7 +7035,7 @@ let ua = class {
|
|
|
7035
7035
|
}
|
|
7036
7036
|
};
|
|
7037
7037
|
c([
|
|
7038
|
-
d({ type:
|
|
7038
|
+
d({ type: m.IA5String })
|
|
7039
7039
|
], ua.prototype, "value", void 0);
|
|
7040
7040
|
ua = c([
|
|
7041
7041
|
V({ type: j.Choice })
|
|
@@ -7056,7 +7056,7 @@ let da = class {
|
|
|
7056
7056
|
}
|
|
7057
7057
|
};
|
|
7058
7058
|
c([
|
|
7059
|
-
d({ type:
|
|
7059
|
+
d({ type: m.GeneralizedTime })
|
|
7060
7060
|
], da.prototype, "value", void 0);
|
|
7061
7061
|
da = c([
|
|
7062
7062
|
V({ type: j.Choice })
|
|
@@ -7075,7 +7075,7 @@ let fa = class {
|
|
|
7075
7075
|
}
|
|
7076
7076
|
};
|
|
7077
7077
|
c([
|
|
7078
|
-
d({ type:
|
|
7078
|
+
d({ type: m.PrintableString })
|
|
7079
7079
|
], fa.prototype, "value", void 0);
|
|
7080
7080
|
fa = c([
|
|
7081
7081
|
V({ type: j.Choice })
|
|
@@ -7089,7 +7089,7 @@ let Mn = class {
|
|
|
7089
7089
|
}
|
|
7090
7090
|
};
|
|
7091
7091
|
c([
|
|
7092
|
-
d({ type:
|
|
7092
|
+
d({ type: m.PrintableString })
|
|
7093
7093
|
], Mn.prototype, "value", void 0);
|
|
7094
7094
|
Mn = c([
|
|
7095
7095
|
V({ type: j.Choice })
|
|
@@ -7113,7 +7113,7 @@ let pa = class {
|
|
|
7113
7113
|
}
|
|
7114
7114
|
};
|
|
7115
7115
|
c([
|
|
7116
|
-
d({ type:
|
|
7116
|
+
d({ type: m.ObjectIdentifier })
|
|
7117
7117
|
], pa.prototype, "value", void 0);
|
|
7118
7118
|
pa = c([
|
|
7119
7119
|
V({ type: j.Choice })
|
|
@@ -7132,29 +7132,29 @@ let ha = class {
|
|
|
7132
7132
|
}
|
|
7133
7133
|
};
|
|
7134
7134
|
c([
|
|
7135
|
-
d({ type:
|
|
7135
|
+
d({ type: m.Integer })
|
|
7136
7136
|
], ha.prototype, "value", void 0);
|
|
7137
7137
|
ha = c([
|
|
7138
7138
|
V({ type: j.Choice })
|
|
7139
7139
|
], ha);
|
|
7140
|
-
let
|
|
7140
|
+
let mc = class extends Vt {
|
|
7141
7141
|
};
|
|
7142
|
-
|
|
7142
|
+
mc = c([
|
|
7143
7143
|
V({ type: j.Sequence })
|
|
7144
|
-
],
|
|
7144
|
+
], mc);
|
|
7145
7145
|
let Vn = class extends Xe {
|
|
7146
7146
|
};
|
|
7147
7147
|
Vn = c([
|
|
7148
7148
|
V({ type: j.Choice })
|
|
7149
7149
|
], Vn);
|
|
7150
|
-
let
|
|
7150
|
+
let vc = aa = class extends Cr {
|
|
7151
7151
|
constructor(t) {
|
|
7152
7152
|
super(t), Object.setPrototypeOf(this, aa.prototype);
|
|
7153
7153
|
}
|
|
7154
7154
|
};
|
|
7155
|
-
|
|
7155
|
+
vc = aa = c([
|
|
7156
7156
|
V({ type: j.Sequence })
|
|
7157
|
-
],
|
|
7157
|
+
], vc);
|
|
7158
7158
|
let bc = la = class extends Se {
|
|
7159
7159
|
constructor(t) {
|
|
7160
7160
|
super(t), Object.setPrototypeOf(this, la.prototype);
|
|
@@ -7172,7 +7172,7 @@ let ya = class {
|
|
|
7172
7172
|
}
|
|
7173
7173
|
};
|
|
7174
7174
|
c([
|
|
7175
|
-
d({ type:
|
|
7175
|
+
d({ type: m.BmpString })
|
|
7176
7176
|
], ya.prototype, "value", void 0);
|
|
7177
7177
|
ya = c([
|
|
7178
7178
|
V({ type: j.Choice })
|
|
@@ -7190,13 +7190,13 @@ let wc = ca = class extends Se {
|
|
|
7190
7190
|
wc = ca = c([
|
|
7191
7191
|
V({ type: j.Sequence, itemType: ga })
|
|
7192
7192
|
], wc);
|
|
7193
|
-
var
|
|
7194
|
-
let Pn =
|
|
7193
|
+
var ma;
|
|
7194
|
+
let Pn = ma = class extends Se {
|
|
7195
7195
|
constructor(t) {
|
|
7196
|
-
super(t), Object.setPrototypeOf(this,
|
|
7196
|
+
super(t), Object.setPrototypeOf(this, ma.prototype);
|
|
7197
7197
|
}
|
|
7198
7198
|
};
|
|
7199
|
-
Pn =
|
|
7199
|
+
Pn = ma = c([
|
|
7200
7200
|
V({ type: j.Sequence, itemType: Gt })
|
|
7201
7201
|
], Pn);
|
|
7202
7202
|
class fi {
|
|
@@ -7205,7 +7205,7 @@ class fi {
|
|
|
7205
7205
|
}
|
|
7206
7206
|
}
|
|
7207
7207
|
c([
|
|
7208
|
-
d({ type:
|
|
7208
|
+
d({ type: m.Integer })
|
|
7209
7209
|
], fi.prototype, "version", void 0);
|
|
7210
7210
|
c([
|
|
7211
7211
|
d({ type: Fe })
|
|
@@ -7228,7 +7228,7 @@ c([
|
|
|
7228
7228
|
d({ type: Q })
|
|
7229
7229
|
], Ti.prototype, "signatureAlgorithm", void 0);
|
|
7230
7230
|
c([
|
|
7231
|
-
d({ type:
|
|
7231
|
+
d({ type: m.BitString })
|
|
7232
7232
|
], Ti.prototype, "signature", void 0);
|
|
7233
7233
|
/*!
|
|
7234
7234
|
* MIT License
|
|
@@ -7257,7 +7257,7 @@ c([
|
|
|
7257
7257
|
const Mo = "crypto.algorithm";
|
|
7258
7258
|
class Ey {
|
|
7259
7259
|
getAlgorithms() {
|
|
7260
|
-
return
|
|
7260
|
+
return vt.resolveAll(Mo);
|
|
7261
7261
|
}
|
|
7262
7262
|
toAsnAlgorithm(t) {
|
|
7263
7263
|
({ ...t });
|
|
@@ -7291,7 +7291,7 @@ class Ey {
|
|
|
7291
7291
|
}
|
|
7292
7292
|
}
|
|
7293
7293
|
const Vo = "crypto.algorithmProvider";
|
|
7294
|
-
|
|
7294
|
+
vt.registerSingleton(Vo, Ey);
|
|
7295
7295
|
var cn;
|
|
7296
7296
|
const dt = "1.3.36.3.3.2.8.1.1", kc = `${dt}.1`, Ac = `${dt}.2`, Sc = `${dt}.3`, Cc = `${dt}.4`, xc = `${dt}.5`, Ic = `${dt}.6`, Bc = `${dt}.7`, Ec = `${dt}.8`, Oc = `${dt}.9`, Nc = `${dt}.10`, _c = `${dt}.11`, Tc = `${dt}.12`, jc = `${dt}.13`, Mc = `${dt}.14`, Vc = "brainpoolP160r1", Pc = "brainpoolP160t1", $c = "brainpoolP192r1", Rc = "brainpoolP192t1", Dc = "brainpoolP224r1", Uc = "brainpoolP224t1", Lc = "brainpoolP256r1", Hc = "brainpoolP256t1", Fc = "brainpoolP320r1", qc = "brainpoolP320t1", Kc = "brainpoolP384r1", zc = "brainpoolP384t1", Gc = "brainpoolP512r1", Wc = "brainpoolP512t1", Ve = "ECDSA";
|
|
7297
7297
|
let ji = cn = class {
|
|
@@ -7436,7 +7436,7 @@ ji.SECP256K1 = "1.3.132.0.10";
|
|
|
7436
7436
|
ji = cn = c([
|
|
7437
7437
|
fl()
|
|
7438
7438
|
], ji);
|
|
7439
|
-
|
|
7439
|
+
vt.registerSingleton(Mo, ji);
|
|
7440
7440
|
const Af = Symbol("name"), Sf = Symbol("value");
|
|
7441
7441
|
class Ae {
|
|
7442
7442
|
constructor(t, r = {}, i = "") {
|
|
@@ -7613,7 +7613,7 @@ class $t extends dr {
|
|
|
7613
7613
|
}
|
|
7614
7614
|
}
|
|
7615
7615
|
var Cf;
|
|
7616
|
-
class
|
|
7616
|
+
class mr {
|
|
7617
7617
|
static isCryptoKeyPair(t) {
|
|
7618
7618
|
return t && t.privateKey && t.publicKey;
|
|
7619
7619
|
}
|
|
@@ -7621,7 +7621,7 @@ class vr {
|
|
|
7621
7621
|
return t && t.usages && t.type && t.algorithm && t.extractable !== void 0;
|
|
7622
7622
|
}
|
|
7623
7623
|
constructor() {
|
|
7624
|
-
this.items = /* @__PURE__ */ new Map(), this[Cf] = "CryptoProvider", typeof self < "u" && typeof crypto < "u" && this.set(
|
|
7624
|
+
this.items = /* @__PURE__ */ new Map(), this[Cf] = "CryptoProvider", typeof self < "u" && typeof crypto < "u" && this.set(mr.DEFAULT, crypto);
|
|
7625
7625
|
}
|
|
7626
7626
|
clear() {
|
|
7627
7627
|
this.items.clear();
|
|
@@ -7650,7 +7650,7 @@ class vr {
|
|
|
7650
7650
|
[Symbol.iterator]() {
|
|
7651
7651
|
return this.items[Symbol.iterator]();
|
|
7652
7652
|
}
|
|
7653
|
-
get(t =
|
|
7653
|
+
get(t = mr.DEFAULT) {
|
|
7654
7654
|
const r = this.items.get(t.toLowerCase());
|
|
7655
7655
|
if (!r)
|
|
7656
7656
|
throw new Error(`Cannot get Crypto by name '${t}'`);
|
|
@@ -7662,13 +7662,13 @@ class vr {
|
|
|
7662
7662
|
throw new TypeError("Argument 'value' is required");
|
|
7663
7663
|
this.items.set(t.toLowerCase(), r);
|
|
7664
7664
|
} else
|
|
7665
|
-
this.items.set(
|
|
7665
|
+
this.items.set(mr.DEFAULT, t);
|
|
7666
7666
|
return this;
|
|
7667
7667
|
}
|
|
7668
7668
|
}
|
|
7669
7669
|
Cf = Symbol.toStringTag;
|
|
7670
|
-
|
|
7671
|
-
const pt = new
|
|
7670
|
+
mr.DEFAULT = "default";
|
|
7671
|
+
const pt = new mr(), Ny = /^[0-2](?:\.[1-9][0-9]*)+$/;
|
|
7672
7672
|
function _y(e) {
|
|
7673
7673
|
return new RegExp(Ny).test(e);
|
|
7674
7674
|
}
|
|
@@ -8102,7 +8102,7 @@ class Jt extends dr {
|
|
|
8102
8102
|
}
|
|
8103
8103
|
}
|
|
8104
8104
|
}
|
|
8105
|
-
class
|
|
8105
|
+
class vr extends Jt {
|
|
8106
8106
|
constructor(t) {
|
|
8107
8107
|
Jt.isAsnEncoded(t) ? super(t, qt) : super(t), this.tag = ht.PublicKeyTag;
|
|
8108
8108
|
}
|
|
@@ -8111,7 +8111,7 @@ class mr extends Jt {
|
|
|
8111
8111
|
return t.length > 1 ? (n = t[0] || n, i = t[1] || i, r = t[2] || pt.get()) : r = t[0] || pt.get(), r.subtle.importKey("spki", this.rawData, n, !0, i);
|
|
8112
8112
|
}
|
|
8113
8113
|
onInit(t) {
|
|
8114
|
-
const r =
|
|
8114
|
+
const r = vt.resolve(Vo), i = this.algorithm = r.toWebAlgorithm(t.algorithm);
|
|
8115
8115
|
switch (t.algorithm.algorithm) {
|
|
8116
8116
|
case ri: {
|
|
8117
8117
|
const n = ee.parse(t.subjectPublicKey, cl), o = H.toUint8Array(n.modulus);
|
|
@@ -8169,7 +8169,7 @@ class $n extends Jt {
|
|
|
8169
8169
|
onInit(t) {
|
|
8170
8170
|
const r = t.tbsCertificate;
|
|
8171
8171
|
this.tbs = ee.serialize(r), this.serialNumber = W.ToHex(r.serialNumber), this.subjectName = new or(r.subject), this.subject = new or(r.subject).toString(), this.issuerName = new or(r.issuer), this.issuer = this.issuerName.toString();
|
|
8172
|
-
const i =
|
|
8172
|
+
const i = vt.resolve(Vo);
|
|
8173
8173
|
this.signatureAlgorithm = i.toWebAlgorithm(t.signatureAlgorithm), this.signature = t.signatureValue;
|
|
8174
8174
|
const n = r.validity.notBefore.utcTime || r.validity.notBefore.generalTime;
|
|
8175
8175
|
if (!n)
|
|
@@ -8178,7 +8178,7 @@ class $n extends Jt {
|
|
|
8178
8178
|
const o = r.validity.notAfter.utcTime || r.validity.notAfter.generalTime;
|
|
8179
8179
|
if (!o)
|
|
8180
8180
|
throw new Error("Cannot get 'notAfter' value");
|
|
8181
|
-
this.notAfter = o, this.extensions = [], r.extensions && (this.extensions = r.extensions.map((s) => Rt.create(ee.serialize(s)))), this.publicKey = new
|
|
8181
|
+
this.notAfter = o, this.extensions = [], r.extensions && (this.extensions = r.extensions.map((s) => Rt.create(ee.serialize(s)))), this.publicKey = new vr(r.subjectPublicKeyInfo);
|
|
8182
8182
|
}
|
|
8183
8183
|
getExtension(t) {
|
|
8184
8184
|
for (const r of this.extensions)
|
|
@@ -8200,17 +8200,17 @@ class $n extends Jt {
|
|
|
8200
8200
|
i = { ...this.publicKey.algorithm, ...this.signatureAlgorithm }, n = await this.publicKey.export(i, ["verify"], r);
|
|
8201
8201
|
else if ("publicKey" in o)
|
|
8202
8202
|
i = { ...o.publicKey.algorithm, ...this.signatureAlgorithm }, n = await o.publicKey.export(i, ["verify"], r);
|
|
8203
|
-
else if (o instanceof
|
|
8203
|
+
else if (o instanceof vr)
|
|
8204
8204
|
i = { ...o.algorithm, ...this.signatureAlgorithm }, n = await o.export(i, ["verify"], r);
|
|
8205
8205
|
else if (H.isBufferSource(o)) {
|
|
8206
|
-
const u = new
|
|
8206
|
+
const u = new vr(o);
|
|
8207
8207
|
i = { ...u.algorithm, ...this.signatureAlgorithm }, n = await u.export(i, ["verify"], r);
|
|
8208
8208
|
} else
|
|
8209
8209
|
i = { ...o.algorithm, ...this.signatureAlgorithm }, n = o;
|
|
8210
8210
|
} catch {
|
|
8211
8211
|
return !1;
|
|
8212
8212
|
}
|
|
8213
|
-
const s =
|
|
8213
|
+
const s = vt.resolveAll(Po).reverse();
|
|
8214
8214
|
let a = null;
|
|
8215
8215
|
for (const u of s)
|
|
8216
8216
|
if (a = u.toWebSignature(i, this.signature), a)
|
|
@@ -8262,8 +8262,8 @@ class $n extends Jt {
|
|
|
8262
8262
|
$n.NAME = "Certificate";
|
|
8263
8263
|
class Pi extends $t {
|
|
8264
8264
|
static async create(t, r = !1, i = pt.get()) {
|
|
8265
|
-
if (t instanceof $n ||
|
|
8266
|
-
const n = t instanceof $n ? await t.publicKey.export(i) : t, o = await i.subtle.exportKey("spki", n), a = await new
|
|
8265
|
+
if (t instanceof $n || mr.isCryptoKey(t)) {
|
|
8266
|
+
const n = t instanceof $n ? await t.publicKey.export(i) : t, o = await i.subtle.exportKey("spki", n), a = await new vr(o).getKeyIdentifier(i);
|
|
8267
8267
|
return new Pi(W.ToHex(a), r);
|
|
8268
8268
|
} else
|
|
8269
8269
|
return new Pi(t, r);
|
|
@@ -8324,10 +8324,10 @@ class Ef extends $t {
|
|
|
8324
8324
|
constructor(...t) {
|
|
8325
8325
|
if (H.isBufferSource(t[0])) {
|
|
8326
8326
|
super(t[0]);
|
|
8327
|
-
const r = ee.parse(this.value,
|
|
8327
|
+
const r = ee.parse(this.value, mn);
|
|
8328
8328
|
this.usages = r.map((i) => i);
|
|
8329
8329
|
} else {
|
|
8330
|
-
const r = new
|
|
8330
|
+
const r = new mn(t[0]);
|
|
8331
8331
|
super(Fd, t[1], ee.serialize(r)), this.usages = t[0];
|
|
8332
8332
|
}
|
|
8333
8333
|
}
|
|
@@ -8337,10 +8337,10 @@ class Ef extends $t {
|
|
|
8337
8337
|
}
|
|
8338
8338
|
}
|
|
8339
8339
|
Ef.NAME = "Extended Key Usages";
|
|
8340
|
-
var
|
|
8340
|
+
var va;
|
|
8341
8341
|
(function(e) {
|
|
8342
8342
|
e[e.digitalSignature = 1] = "digitalSignature", e[e.nonRepudiation = 2] = "nonRepudiation", e[e.keyEncipherment = 4] = "keyEncipherment", e[e.dataEncipherment = 8] = "dataEncipherment", e[e.keyAgreement = 16] = "keyAgreement", e[e.keyCertSign = 32] = "keyCertSign", e[e.cRLSign = 64] = "cRLSign", e[e.encipherOnly = 128] = "encipherOnly", e[e.decipherOnly = 256] = "decipherOnly";
|
|
8343
|
-
})(
|
|
8343
|
+
})(va || (va = {}));
|
|
8344
8344
|
class hl extends $t {
|
|
8345
8345
|
constructor(...t) {
|
|
8346
8346
|
if (H.isBufferSource(t[0])) {
|
|
@@ -8361,8 +8361,8 @@ hl.NAME = "Key Usages";
|
|
|
8361
8361
|
class $o extends $t {
|
|
8362
8362
|
static async create(t, r = !1, i = pt.get()) {
|
|
8363
8363
|
let n;
|
|
8364
|
-
t instanceof
|
|
8365
|
-
const s = await new
|
|
8364
|
+
t instanceof vr ? n = t.rawData : "publicKey" in t ? n = t.publicKey.rawData : H.isBufferSource(t) ? n = t : n = await i.subtle.exportKey("spki", t);
|
|
8365
|
+
const s = await new vr(n).getKeyIdentifier(i);
|
|
8366
8366
|
return new $o(W.ToHex(s), r);
|
|
8367
8367
|
}
|
|
8368
8368
|
constructor(...t) {
|
|
@@ -8551,8 +8551,8 @@ let ba = class {
|
|
|
8551
8551
|
ba = c([
|
|
8552
8552
|
fl()
|
|
8553
8553
|
], ba);
|
|
8554
|
-
|
|
8555
|
-
class
|
|
8554
|
+
vt.registerSingleton(Mo, ba);
|
|
8555
|
+
class mt {
|
|
8556
8556
|
addPadding(t, r) {
|
|
8557
8557
|
const i = H.toUint8Array(r), n = new Uint8Array(t);
|
|
8558
8558
|
return n.set(i, t - i.length), n;
|
|
@@ -8572,21 +8572,21 @@ class vt {
|
|
|
8572
8572
|
}
|
|
8573
8573
|
toAsnSignature(t, r) {
|
|
8574
8574
|
if (t.name === "ECDSA") {
|
|
8575
|
-
const i = t.namedCurve, n =
|
|
8575
|
+
const i = t.namedCurve, n = mt.namedCurveSize.get(i) || mt.defaultNamedCurveSize, o = new En(), s = H.toUint8Array(r);
|
|
8576
8576
|
return o.r = this.removePadding(s.slice(0, n), !0), o.s = this.removePadding(s.slice(n, n + n), !0), ee.serialize(o);
|
|
8577
8577
|
}
|
|
8578
8578
|
return null;
|
|
8579
8579
|
}
|
|
8580
8580
|
toWebSignature(t, r) {
|
|
8581
8581
|
if (t.name === "ECDSA") {
|
|
8582
|
-
const i = ee.parse(r, En), n = t.namedCurve, o =
|
|
8582
|
+
const i = ee.parse(r, En), n = t.namedCurve, o = mt.namedCurveSize.get(n) || mt.defaultNamedCurveSize, s = this.addPadding(o, this.removePadding(i.r)), a = this.addPadding(o, this.removePadding(i.s));
|
|
8583
8583
|
return rh(s, a);
|
|
8584
8584
|
}
|
|
8585
8585
|
return null;
|
|
8586
8586
|
}
|
|
8587
8587
|
}
|
|
8588
|
-
|
|
8589
|
-
|
|
8588
|
+
mt.namedCurveSize = /* @__PURE__ */ new Map();
|
|
8589
|
+
mt.defaultNamedCurveSize = 32;
|
|
8590
8590
|
const ru = "1.3.101.110", iu = "1.3.101.111", nu = "1.3.101.112", ou = "1.3.101.113";
|
|
8591
8591
|
let wa = class {
|
|
8592
8592
|
toAsnAlgorithm(t) {
|
|
@@ -8633,14 +8633,14 @@ let wa = class {
|
|
|
8633
8633
|
wa = c([
|
|
8634
8634
|
fl()
|
|
8635
8635
|
], wa);
|
|
8636
|
-
|
|
8636
|
+
vt.registerSingleton(Mo, wa);
|
|
8637
8637
|
class Fy extends Jt {
|
|
8638
8638
|
constructor(t) {
|
|
8639
8639
|
Jt.isAsnEncoded(t) ? super(t, Ti) : super(t), this.tag = ht.CertificateRequestTag;
|
|
8640
8640
|
}
|
|
8641
8641
|
onInit(t) {
|
|
8642
|
-
this.tbs = ee.serialize(t.certificationRequestInfo), this.publicKey = new
|
|
8643
|
-
const r =
|
|
8642
|
+
this.tbs = ee.serialize(t.certificationRequestInfo), this.publicKey = new vr(t.certificationRequestInfo.subjectPKInfo);
|
|
8643
|
+
const r = vt.resolve(Vo);
|
|
8644
8644
|
this.signatureAlgorithm = r.toWebAlgorithm(t.signatureAlgorithm), this.signature = t.signature, this.attributes = t.certificationRequestInfo.attributes.map((n) => Ro.create(ee.serialize(n)));
|
|
8645
8645
|
const i = this.getAttribute(pl);
|
|
8646
8646
|
this.extensions = [], i instanceof gl && (this.extensions = i.items), this.subjectName = new or(t.certificationRequestInfo.subject), this.subject = this.subjectName.toString();
|
|
@@ -8664,7 +8664,7 @@ class Fy extends Jt {
|
|
|
8664
8664
|
return this.extensions.filter((r) => r.type === t);
|
|
8665
8665
|
}
|
|
8666
8666
|
async verify(t = pt.get()) {
|
|
8667
|
-
const r = { ...this.publicKey.algorithm, ...this.signatureAlgorithm }, i = await this.publicKey.export(r, ["verify"], t), n =
|
|
8667
|
+
const r = { ...this.publicKey.algorithm, ...this.signatureAlgorithm }, i = await this.publicKey.export(r, ["verify"], t), n = vt.resolveAll(Po).reverse();
|
|
8668
8668
|
let o = null;
|
|
8669
8669
|
for (const a of n)
|
|
8670
8670
|
if (o = a.toWebSignature(r, this.signature), o)
|
|
@@ -8706,12 +8706,12 @@ Rt.register(ps, Pi);
|
|
|
8706
8706
|
Rt.register(Gd, yl);
|
|
8707
8707
|
Ro.register(kf, Nf);
|
|
8708
8708
|
Ro.register(pl, gl);
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
8709
|
+
vt.registerSingleton(Po, Hy);
|
|
8710
|
+
vt.registerSingleton(Po, mt);
|
|
8711
|
+
mt.namedCurveSize.set("P-256", 32);
|
|
8712
|
+
mt.namedCurveSize.set("K-256", 32);
|
|
8713
|
+
mt.namedCurveSize.set("P-384", 48);
|
|
8714
|
+
mt.namedCurveSize.set("P-521", 66);
|
|
8715
8715
|
function _f() {
|
|
8716
8716
|
return {
|
|
8717
8717
|
parseMetaCertificateData: (t) => {
|
|
@@ -8731,7 +8731,7 @@ function _f() {
|
|
|
8731
8731
|
for (const l in a)
|
|
8732
8732
|
i.subjectAltName = `${l}=${a[l].join(", ")}`;
|
|
8733
8733
|
} else if (n instanceof hl) {
|
|
8734
|
-
const o = Object.values(
|
|
8734
|
+
const o = Object.values(va), s = Array(o.length / 2).fill(null).reduce((a, l, u) => {
|
|
8735
8735
|
const h = o[o.length / 2 + u];
|
|
8736
8736
|
if (n.usages & h) {
|
|
8737
8737
|
const f = o[u];
|
|
@@ -9212,8 +9212,8 @@ const jt = {
|
|
|
9212
9212
|
r[i] = n;
|
|
9213
9213
|
return r;
|
|
9214
9214
|
}, dg = /* @__PURE__ */ ug(cg, [["__scopeId", "data-v-0c07874b"]]);
|
|
9215
|
-
var
|
|
9216
|
-
function
|
|
9215
|
+
var ml = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(ml || {}), br = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(br || {}), tr = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(tr || {}), ke = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(ke || {}), Ie = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(Ie || {});
|
|
9216
|
+
function vl(e = {}) {
|
|
9217
9217
|
return {
|
|
9218
9218
|
axiosInstance: Yp.create({
|
|
9219
9219
|
withCredentials: !0,
|
|
@@ -9280,7 +9280,7 @@ const yg = {
|
|
|
9280
9280
|
}, gg = {
|
|
9281
9281
|
message: "Are you sure you want to delete this {entityType}?",
|
|
9282
9282
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
9283
|
-
},
|
|
9283
|
+
}, mg = {
|
|
9284
9284
|
actions: {
|
|
9285
9285
|
viewConfiguration: "View Configuration",
|
|
9286
9286
|
save: "Save",
|
|
@@ -9296,7 +9296,7 @@ const yg = {
|
|
|
9296
9296
|
errors: {
|
|
9297
9297
|
edit: "The entity could not be edited at this time."
|
|
9298
9298
|
}
|
|
9299
|
-
},
|
|
9299
|
+
}, vg = {
|
|
9300
9300
|
emptyState: {
|
|
9301
9301
|
noSearchResultsTitle: "No results found",
|
|
9302
9302
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
@@ -9367,8 +9367,8 @@ const yg = {
|
|
|
9367
9367
|
}, Cg = {
|
|
9368
9368
|
global: yg,
|
|
9369
9369
|
deleteModal: gg,
|
|
9370
|
-
baseForm:
|
|
9371
|
-
baseTable:
|
|
9370
|
+
baseForm: mg,
|
|
9371
|
+
baseTable: vg,
|
|
9372
9372
|
baseConfigCard: bg,
|
|
9373
9373
|
filter: wg,
|
|
9374
9374
|
debouncedFilter: kg,
|
|
@@ -9432,41 +9432,41 @@ function xg(e, t, r, i = {
|
|
|
9432
9432
|
searchKeys: ["id"]
|
|
9433
9433
|
}) {
|
|
9434
9434
|
r || (r = "100");
|
|
9435
|
-
const { axiosInstance: n } =
|
|
9435
|
+
const { axiosInstance: n } = vl({
|
|
9436
9436
|
headers: e.requestHeaders
|
|
9437
|
-
}), { i18n: { t: o } } = bl(), { debounce: s } = fg(), a = s(async (
|
|
9438
|
-
await k(
|
|
9437
|
+
}), { i18n: { t: o } } = bl(), { debounce: s } = fg(), a = s(async (v) => {
|
|
9438
|
+
await k(v);
|
|
9439
9439
|
}, 200), l = ie(!1), u = ie(""), h = ie(""), f = ie([]), E = ie([]), b = ie(void 0), p = S(t);
|
|
9440
9440
|
let y = `${e.apiBaseUrl}${p}`;
|
|
9441
9441
|
e.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
9442
9442
|
const { isValidUuid: w } = Tf(), g = async () => {
|
|
9443
9443
|
try {
|
|
9444
9444
|
l.value = !0;
|
|
9445
|
-
const { data:
|
|
9446
|
-
|
|
9445
|
+
const { data: v } = await n.get(`${y}?size=${r}`);
|
|
9446
|
+
v != null && v.next || (b.value = i.fetchedItemsKey in v ? v[i.fetchedItemsKey] : []), E.value = i.fetchedItemsKey in v ? v[i.fetchedItemsKey] : [], f.value = E.value;
|
|
9447
9447
|
} catch {
|
|
9448
9448
|
f.value = [], u.value = o("debouncedFilter.errors.fetch");
|
|
9449
9449
|
} finally {
|
|
9450
9450
|
l.value = !1;
|
|
9451
9451
|
}
|
|
9452
|
-
}, C = ie(""), k = async (
|
|
9452
|
+
}, C = ie(""), k = async (v) => {
|
|
9453
9453
|
var T, q, fe;
|
|
9454
|
-
if (C.value !==
|
|
9455
|
-
if (C.value =
|
|
9454
|
+
if (C.value !== v)
|
|
9455
|
+
if (C.value = v || "", b.value === void 0)
|
|
9456
9456
|
try {
|
|
9457
9457
|
if (l.value = !0, u.value = "", h.value = "", e.app === "konnect") {
|
|
9458
9458
|
let N = y + "";
|
|
9459
|
-
|
|
9459
|
+
v && (N += `/${v}`);
|
|
9460
9460
|
const { data: _ } = await n.get(`${N}?size=${r}`);
|
|
9461
9461
|
i.fetchedItemsKey in _ ? f.value = _[i.fetchedItemsKey] : _ != null && _.id ? f.value = [_] : f.value = [];
|
|
9462
|
-
} else if (
|
|
9462
|
+
} else if (v) {
|
|
9463
9463
|
const N = [];
|
|
9464
|
-
w(
|
|
9465
|
-
const { data: F } = await n.get(`${y}/${
|
|
9464
|
+
w(v) && i.searchKeys.includes("id") ? N.push((async () => {
|
|
9465
|
+
const { data: F } = await n.get(`${y}/${v}`);
|
|
9466
9466
|
return [F[i.fetchedItemsKey] ?? F];
|
|
9467
9467
|
})()) : N.push(
|
|
9468
9468
|
...i.searchKeys.filter((F) => F !== "id").map(async (F) => {
|
|
9469
|
-
const { data: te } = await n.get(`${y}?${F}=${
|
|
9469
|
+
const { data: te } = await n.get(`${y}?${F}=${v}`);
|
|
9470
9470
|
return te[i.fetchedItemsKey];
|
|
9471
9471
|
})
|
|
9472
9472
|
);
|
|
@@ -9485,12 +9485,12 @@ function xg(e, t, r, i = {
|
|
|
9485
9485
|
l.value = !1;
|
|
9486
9486
|
}
|
|
9487
9487
|
else
|
|
9488
|
-
l.value = !0, h.value = "",
|
|
9488
|
+
l.value = !0, h.value = "", v ? (f.value = (fe = b.value) == null ? void 0 : fe.filter((N) => {
|
|
9489
9489
|
var _;
|
|
9490
9490
|
let Y = !1;
|
|
9491
9491
|
for (const F of i.searchKeys) {
|
|
9492
9492
|
const te = typeof N[F] == "string" ? (_ = N[F]) == null ? void 0 : _.toLowerCase() : N[F];
|
|
9493
|
-
te != null && te.includes(
|
|
9493
|
+
te != null && te.includes(v.toLowerCase()) && (Y = !0);
|
|
9494
9494
|
}
|
|
9495
9495
|
return Y;
|
|
9496
9496
|
}), (!f.value || !f.value.length) && (h.value = o("debouncedFilter.errors.invalid"))) : f.value = b.value, l.value = !1;
|
|
@@ -9571,7 +9571,7 @@ function jf(e, t) {
|
|
|
9571
9571
|
};
|
|
9572
9572
|
}
|
|
9573
9573
|
function Og(e, t, r = "data") {
|
|
9574
|
-
const i = S(t), { axiosInstance: n } =
|
|
9574
|
+
const i = S(t), { axiosInstance: n } = vl({
|
|
9575
9575
|
headers: e.requestHeaders
|
|
9576
9576
|
}), o = jf(e, i), s = ie({
|
|
9577
9577
|
status: tr.Idle
|
|
@@ -9685,7 +9685,7 @@ function $g(e) {
|
|
|
9685
9685
|
};
|
|
9686
9686
|
}
|
|
9687
9687
|
const Ge = {
|
|
9688
|
-
useAxios:
|
|
9688
|
+
useAxios: vl,
|
|
9689
9689
|
useDebouncedFilter: xg,
|
|
9690
9690
|
useDeleteUrlBuilder: Ig,
|
|
9691
9691
|
useErrors: Bg,
|
|
@@ -9935,10 +9935,10 @@ const Ge = {
|
|
|
9935
9935
|
for (const [i, n] of t)
|
|
9936
9936
|
r[i] = n;
|
|
9937
9937
|
return r;
|
|
9938
|
-
}, Pf = /* @__PURE__ */ Xg(Qg, [["__scopeId", "data-v-0c07874b"]]),
|
|
9938
|
+
}, Pf = /* @__PURE__ */ Xg(Qg, [["__scopeId", "data-v-0c07874b"]]), em = {
|
|
9939
9939
|
key: 0,
|
|
9940
9940
|
class: "config-card-fieldset-title"
|
|
9941
|
-
},
|
|
9941
|
+
}, tm = /* @__PURE__ */ Be({
|
|
9942
9942
|
__name: "JsonCardItem",
|
|
9943
9943
|
props: {
|
|
9944
9944
|
item: {
|
|
@@ -9966,7 +9966,7 @@ const Ge = {
|
|
|
9966
9966
|
class: Kt(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
9967
9967
|
}, {
|
|
9968
9968
|
default: x(() => [
|
|
9969
|
-
e.isArrayItem ? (B(), U("legend",
|
|
9969
|
+
e.isArrayItem ? (B(), U("legend", em, [
|
|
9970
9970
|
de("b", null, R(a.value), 1)
|
|
9971
9971
|
])) : ye("", !0),
|
|
9972
9972
|
(B(!0), U(Je, null, ze(Object.keys(s.value), (h, f) => (B(), se(nn, {
|
|
@@ -9986,7 +9986,7 @@ const Ge = {
|
|
|
9986
9986
|
for (const [i, n] of t)
|
|
9987
9987
|
r[i] = n;
|
|
9988
9988
|
return r;
|
|
9989
|
-
}, $f = /* @__PURE__ */ Et(
|
|
9989
|
+
}, $f = /* @__PURE__ */ Et(tm, [["__scopeId", "data-v-68ca83ec"]]), rm = /* @__PURE__ */ Be({
|
|
9990
9990
|
__name: "InternalLinkItem",
|
|
9991
9991
|
props: {
|
|
9992
9992
|
item: {
|
|
@@ -10013,7 +10013,7 @@ const Ge = {
|
|
|
10013
10013
|
]);
|
|
10014
10014
|
};
|
|
10015
10015
|
}
|
|
10016
|
-
}),
|
|
10016
|
+
}), im = /* @__PURE__ */ Et(rm, [["__scopeId", "data-v-c96811e5"]]), nm = /* @__PURE__ */ Be({
|
|
10017
10017
|
__name: "StatusBadge",
|
|
10018
10018
|
props: {
|
|
10019
10019
|
status: {
|
|
@@ -10035,11 +10035,11 @@ const Ge = {
|
|
|
10035
10035
|
}, 8, ["appearance"]);
|
|
10036
10036
|
};
|
|
10037
10037
|
}
|
|
10038
|
-
}),
|
|
10038
|
+
}), om = "#0044f4", sm = "#e0e4ea", am = "#3a3f51", lm = "1px", cm = "20px", um = { class: "config-card-details-row" }, dm = ["data-testid"], fm = ["data-testid"], pm = ["data-testid"], hm = ["data-testid"], ym = { key: 1 }, gm = ["data-testid"], mm = ["data-testid"], vm = ["data-testid"], bm = ["data-testid"], wm = {
|
|
10039
10039
|
name: "ConfigCardItem",
|
|
10040
|
-
components: { CopyUuid: Pf, JsonCardItem: $f, StatusBadge:
|
|
10041
|
-
},
|
|
10042
|
-
...
|
|
10040
|
+
components: { CopyUuid: Pf, JsonCardItem: $f, StatusBadge: nm, InternalLinkItem: im }
|
|
10041
|
+
}, km = /* @__PURE__ */ Be({
|
|
10042
|
+
...wm,
|
|
10043
10043
|
props: {
|
|
10044
10044
|
item: {
|
|
10045
10045
|
type: Object,
|
|
@@ -10059,7 +10059,7 @@ const Ge = {
|
|
|
10059
10059
|
emits: ["navigation-click"],
|
|
10060
10060
|
setup(e, { emit: t }) {
|
|
10061
10061
|
Vu((p) => ({
|
|
10062
|
-
"0da74440": h.value ? "none" : `solid ${S(
|
|
10062
|
+
"0da74440": h.value ? "none" : `solid ${S(lm)} ${S(sm)}`,
|
|
10063
10063
|
"02a039da": u.value && a.value ? "block" : "flex",
|
|
10064
10064
|
"690f3ced": u.value && a.value ? "100%" : r.slim ? "50%" : "25%",
|
|
10065
10065
|
"691182c8": u.value && a.value ? "100%" : r.slim ? "50%" : "75%"
|
|
@@ -10193,7 +10193,7 @@ const Ge = {
|
|
|
10193
10193
|
}), E = ie(), { isTruncated: b } = Ge.useTruncationDetector(E);
|
|
10194
10194
|
return (p, y) => {
|
|
10195
10195
|
const w = ne("KLabel"), g = ne("KBadge"), C = ne("KTooltip");
|
|
10196
|
-
return B(), U("div",
|
|
10196
|
+
return B(), U("div", um, [
|
|
10197
10197
|
de("div", {
|
|
10198
10198
|
class: "config-card-details-label",
|
|
10199
10199
|
"data-testid": `${e.item.key}-label`
|
|
@@ -10214,13 +10214,13 @@ const Ge = {
|
|
|
10214
10214
|
Te(p.$slots, "label-tooltip", {}, () => [
|
|
10215
10215
|
pe(R(e.item.tooltip), 1)
|
|
10216
10216
|
], !0)
|
|
10217
|
-
], 8,
|
|
10217
|
+
], 8, fm)
|
|
10218
10218
|
]),
|
|
10219
10219
|
key: "0"
|
|
10220
10220
|
} : void 0
|
|
10221
10221
|
]), 1024)
|
|
10222
10222
|
], !0)
|
|
10223
|
-
], 8,
|
|
10223
|
+
], 8, dm),
|
|
10224
10224
|
de("div", {
|
|
10225
10225
|
class: "config-card-details-value",
|
|
10226
10226
|
"data-testid": `${e.item.key}-property-value`
|
|
@@ -10228,17 +10228,17 @@ const Ge = {
|
|
|
10228
10228
|
Te(p.$slots, e.item.key, {
|
|
10229
10229
|
rowValue: e.item.value
|
|
10230
10230
|
}, () => [
|
|
10231
|
-
a.value ? (B(), U("div",
|
|
10231
|
+
a.value ? (B(), U("div", ym, [
|
|
10232
10232
|
(B(), se(Ct(f.value.tag), zp(Gp(f.value.attrs)), {
|
|
10233
10233
|
default: x(() => [
|
|
10234
10234
|
f.value.additionalComponent === "KBadge" ? (B(), U("div", {
|
|
10235
10235
|
key: 0,
|
|
10236
10236
|
"data-testid": `${e.item.key}-badge-tags`
|
|
10237
10237
|
}, [
|
|
10238
|
-
(B(!0), U(Je, null, ze(e.item.value, (k,
|
|
10239
|
-
key: `${e.item.key}-badge-tag-${
|
|
10238
|
+
(B(!0), U(Je, null, ze(e.item.value, (k, v) => (B(), se(g, {
|
|
10239
|
+
key: `${e.item.key}-badge-tag-${v}`,
|
|
10240
10240
|
class: "config-badge",
|
|
10241
|
-
"data-testid": `${e.item.key}-badge-tag-${
|
|
10241
|
+
"data-testid": `${e.item.key}-badge-tag-${v}`,
|
|
10242
10242
|
tooltip: k,
|
|
10243
10243
|
"truncation-tooltip": ""
|
|
10244
10244
|
}, {
|
|
@@ -10247,45 +10247,45 @@ const Ge = {
|
|
|
10247
10247
|
]),
|
|
10248
10248
|
_: 2
|
|
10249
10249
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
10250
|
-
], 8,
|
|
10250
|
+
], 8, gm)) : ye("", !0),
|
|
10251
10251
|
f.value.additionalComponent === "CopyUuid" ? (B(), U("div", {
|
|
10252
10252
|
key: 1,
|
|
10253
10253
|
class: "copy-uuid-array",
|
|
10254
10254
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
10255
10255
|
}, [
|
|
10256
|
-
(B(!0), U(Je, null, ze(e.item.value, (k,
|
|
10257
|
-
key: `${e.item.key}-copy-uuid-${
|
|
10258
|
-
"data-testid": `${e.item.key}-copy-uuid-${
|
|
10256
|
+
(B(!0), U(Je, null, ze(e.item.value, (k, v) => (B(), se(S(Pf), Si(f.value.childAttrs, {
|
|
10257
|
+
key: `${e.item.key}-copy-uuid-${v}`,
|
|
10258
|
+
"data-testid": `${e.item.key}-copy-uuid-${v}`,
|
|
10259
10259
|
uuid: k
|
|
10260
10260
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
10261
|
-
], 8,
|
|
10261
|
+
], 8, mm)) : f.value.additionalComponent === "KMethodBadge" ? (B(), U("div", {
|
|
10262
10262
|
key: 2,
|
|
10263
10263
|
class: "method-badge-array",
|
|
10264
10264
|
"data-testid": `${e.item.key}-badge-methods`
|
|
10265
10265
|
}, [
|
|
10266
|
-
(B(!0), U(Je, null, ze(e.item.value, (k,
|
|
10267
|
-
key: `${e.item.key}-badge-method-${
|
|
10266
|
+
(B(!0), U(Je, null, ze(e.item.value, (k, v) => (B(), se(g, {
|
|
10267
|
+
key: `${e.item.key}-badge-method-${v}`,
|
|
10268
10268
|
appearance: Object.values(S(Zp)).includes(k.toLowerCase()) ? k.toLowerCase() : "custom",
|
|
10269
10269
|
class: "config-badge",
|
|
10270
|
-
"data-testid": `${e.item.key}-badge-method-${
|
|
10270
|
+
"data-testid": `${e.item.key}-badge-method-${v}`
|
|
10271
10271
|
}, {
|
|
10272
10272
|
default: x(() => [
|
|
10273
10273
|
pe(R(k), 1)
|
|
10274
10274
|
]),
|
|
10275
10275
|
_: 2
|
|
10276
10276
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
10277
|
-
], 8,
|
|
10277
|
+
], 8, vm)) : ye("", !0),
|
|
10278
10278
|
f.value.additionalComponent === "JsonCardItem" ? (B(), U("div", {
|
|
10279
10279
|
key: 3,
|
|
10280
10280
|
"data-testid": `${r.item.key}-json-array-content`
|
|
10281
10281
|
}, [
|
|
10282
|
-
(B(!0), U(Je, null, ze(e.item.value, (k,
|
|
10283
|
-
key: `json-array-item-${
|
|
10284
|
-
index:
|
|
10282
|
+
(B(!0), U(Je, null, ze(e.item.value, (k, v) => (B(), se($f, {
|
|
10283
|
+
key: `json-array-item-${v}`,
|
|
10284
|
+
index: v,
|
|
10285
10285
|
"is-array-item": "",
|
|
10286
10286
|
item: k
|
|
10287
10287
|
}, null, 8, ["index", "item"]))), 128))
|
|
10288
|
-
], 8,
|
|
10288
|
+
], 8, bm)) : (B(), se(C, {
|
|
10289
10289
|
key: 4,
|
|
10290
10290
|
label: S(b) ? e.item.value : ""
|
|
10291
10291
|
}, {
|
|
@@ -10304,13 +10304,13 @@ const Ge = {
|
|
|
10304
10304
|
])) : (B(), U("div", {
|
|
10305
10305
|
key: 0,
|
|
10306
10306
|
"data-testid": `${e.item.key}-no-value`
|
|
10307
|
-
}, " – ", 8,
|
|
10307
|
+
}, " – ", 8, hm))
|
|
10308
10308
|
], !0)
|
|
10309
|
-
], 8,
|
|
10309
|
+
], 8, pm)
|
|
10310
10310
|
]);
|
|
10311
10311
|
};
|
|
10312
10312
|
}
|
|
10313
|
-
}), nn = /* @__PURE__ */ Et(
|
|
10313
|
+
}), nn = /* @__PURE__ */ Et(km, [["__scopeId", "data-v-9c87856b"]]), Am = { class: "json-config" }, Sm = {
|
|
10314
10314
|
key: 0,
|
|
10315
10315
|
class: "json-endpoint"
|
|
10316
10316
|
}, Rf = /* @__PURE__ */ Be({
|
|
@@ -10342,7 +10342,7 @@ const Ge = {
|
|
|
10342
10342
|
},
|
|
10343
10343
|
setup(e) {
|
|
10344
10344
|
Vu((n) => ({
|
|
10345
|
-
|
|
10345
|
+
50594668: `${i.value}ch`
|
|
10346
10346
|
}));
|
|
10347
10347
|
const t = e, r = Hr(t.jsonRecord), i = D(() => {
|
|
10348
10348
|
var n;
|
|
@@ -10354,8 +10354,8 @@ const Ge = {
|
|
|
10354
10354
|
return (n, o) => {
|
|
10355
10355
|
var s;
|
|
10356
10356
|
const a = ne("KBadge"), l = ne("KCodeBlock");
|
|
10357
|
-
return B(), U("div",
|
|
10358
|
-
t.fetcherUrl && (s = t.config) != null && s.
|
|
10357
|
+
return B(), U("div", Am, [
|
|
10358
|
+
t.fetcherUrl && (s = t.config) != null && s.jsonYamlFormsEnabled ? (B(), U("div", Sm, [
|
|
10359
10359
|
M(a, {
|
|
10360
10360
|
appearance: t.requestMethod
|
|
10361
10361
|
}, {
|
|
@@ -10388,35 +10388,35 @@ const Ge = {
|
|
|
10388
10388
|
function Df(e) {
|
|
10389
10389
|
return typeof e > "u" || e === null;
|
|
10390
10390
|
}
|
|
10391
|
-
function
|
|
10391
|
+
function Cm(e) {
|
|
10392
10392
|
return typeof e == "object" && e !== null;
|
|
10393
10393
|
}
|
|
10394
|
-
function
|
|
10394
|
+
function xm(e) {
|
|
10395
10395
|
return Array.isArray(e) ? e : Df(e) ? [] : [e];
|
|
10396
10396
|
}
|
|
10397
|
-
function
|
|
10397
|
+
function Im(e, t) {
|
|
10398
10398
|
var r, i, n, o;
|
|
10399
10399
|
if (t)
|
|
10400
10400
|
for (o = Object.keys(t), r = 0, i = o.length; r < i; r += 1)
|
|
10401
10401
|
n = o[r], e[n] = t[n];
|
|
10402
10402
|
return e;
|
|
10403
10403
|
}
|
|
10404
|
-
function
|
|
10404
|
+
function Bm(e, t) {
|
|
10405
10405
|
var r = "", i;
|
|
10406
10406
|
for (i = 0; i < t; i += 1)
|
|
10407
10407
|
r += e;
|
|
10408
10408
|
return r;
|
|
10409
10409
|
}
|
|
10410
|
-
function
|
|
10410
|
+
function Em(e) {
|
|
10411
10411
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
10412
10412
|
}
|
|
10413
|
-
var
|
|
10414
|
-
isNothing:
|
|
10415
|
-
isObject:
|
|
10416
|
-
toArray:
|
|
10417
|
-
repeat:
|
|
10418
|
-
isNegativeZero:
|
|
10419
|
-
extend:
|
|
10413
|
+
var Om = Df, Nm = Cm, _m = xm, Tm = Bm, jm = Em, Mm = Im, qe = {
|
|
10414
|
+
isNothing: Om,
|
|
10415
|
+
isObject: Nm,
|
|
10416
|
+
toArray: _m,
|
|
10417
|
+
repeat: Tm,
|
|
10418
|
+
isNegativeZero: jm,
|
|
10419
|
+
extend: Mm
|
|
10420
10420
|
};
|
|
10421
10421
|
function Uf(e, t) {
|
|
10422
10422
|
var r = "", i = e.reason || "(unknown reason)";
|
|
@@ -10444,7 +10444,7 @@ function ts(e, t, r, i, n) {
|
|
|
10444
10444
|
function rs(e, t) {
|
|
10445
10445
|
return qe.repeat(" ", t - e.length) + e;
|
|
10446
10446
|
}
|
|
10447
|
-
function
|
|
10447
|
+
function Vm(e, t) {
|
|
10448
10448
|
if (t = Object.create(t || null), !e.buffer)
|
|
10449
10449
|
return null;
|
|
10450
10450
|
t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
|
|
@@ -10474,7 +10474,7 @@ function Vv(e, t) {
|
|
|
10474
10474
|
`;
|
|
10475
10475
|
return a.replace(/\n$/, "");
|
|
10476
10476
|
}
|
|
10477
|
-
var
|
|
10477
|
+
var Pm = Vm, $m = [
|
|
10478
10478
|
"kind",
|
|
10479
10479
|
"multi",
|
|
10480
10480
|
"resolve",
|
|
@@ -10485,12 +10485,12 @@ var Pv = Vv, $v = [
|
|
|
10485
10485
|
"representName",
|
|
10486
10486
|
"defaultStyle",
|
|
10487
10487
|
"styleAliases"
|
|
10488
|
-
],
|
|
10488
|
+
], Rm = [
|
|
10489
10489
|
"scalar",
|
|
10490
10490
|
"sequence",
|
|
10491
10491
|
"mapping"
|
|
10492
10492
|
];
|
|
10493
|
-
function
|
|
10493
|
+
function Dm(e) {
|
|
10494
10494
|
var t = {};
|
|
10495
10495
|
return e !== null && Object.keys(e).forEach(function(r) {
|
|
10496
10496
|
e[r].forEach(function(i) {
|
|
@@ -10498,19 +10498,19 @@ function Dv(e) {
|
|
|
10498
10498
|
});
|
|
10499
10499
|
}), t;
|
|
10500
10500
|
}
|
|
10501
|
-
function
|
|
10501
|
+
function Um(e, t) {
|
|
10502
10502
|
if (t = t || {}, Object.keys(t).forEach(function(r) {
|
|
10503
|
-
if ($
|
|
10503
|
+
if ($m.indexOf(r) === -1)
|
|
10504
10504
|
throw new rt('Unknown option "' + r + '" is met in definition of "' + e + '" YAML type.');
|
|
10505
10505
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
10506
10506
|
return !0;
|
|
10507
10507
|
}, this.construct = t.construct || function(r) {
|
|
10508
10508
|
return r;
|
|
10509
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases =
|
|
10509
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Dm(t.styleAliases || null), Rm.indexOf(this.kind) === -1)
|
|
10510
10510
|
throw new rt('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
10511
10511
|
}
|
|
10512
|
-
var Ze =
|
|
10513
|
-
function
|
|
10512
|
+
var Ze = Um;
|
|
10513
|
+
function mu(e, t) {
|
|
10514
10514
|
var r = [];
|
|
10515
10515
|
return e[t].forEach(function(i) {
|
|
10516
10516
|
var n = r.length;
|
|
@@ -10519,7 +10519,7 @@ function vu(e, t) {
|
|
|
10519
10519
|
}), r[n] = i;
|
|
10520
10520
|
}), r;
|
|
10521
10521
|
}
|
|
10522
|
-
function
|
|
10522
|
+
function Lm() {
|
|
10523
10523
|
var e = {
|
|
10524
10524
|
scalar: {},
|
|
10525
10525
|
sequence: {},
|
|
@@ -10564,7 +10564,7 @@ ka.prototype.extend = function(e) {
|
|
|
10564
10564
|
throw new rt("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
10565
10565
|
});
|
|
10566
10566
|
var i = Object.create(ka.prototype);
|
|
10567
|
-
return i.implicit = (this.implicit || []).concat(t), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit =
|
|
10567
|
+
return i.implicit = (this.implicit || []).concat(t), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = mu(i, "implicit"), i.compiledExplicit = mu(i, "explicit"), i.compiledTypeMap = Lm(i.compiledImplicit, i.compiledExplicit), i;
|
|
10568
10568
|
};
|
|
10569
10569
|
var Lf = ka, Hf = new Ze("tag:yaml.org,2002:str", {
|
|
10570
10570
|
kind: "scalar",
|
|
@@ -10588,23 +10588,23 @@ var Lf = ka, Hf = new Ze("tag:yaml.org,2002:str", {
|
|
|
10588
10588
|
qf
|
|
10589
10589
|
]
|
|
10590
10590
|
});
|
|
10591
|
-
function
|
|
10591
|
+
function Hm(e) {
|
|
10592
10592
|
if (e === null)
|
|
10593
10593
|
return !0;
|
|
10594
10594
|
var t = e.length;
|
|
10595
10595
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
10596
10596
|
}
|
|
10597
|
-
function
|
|
10597
|
+
function Fm() {
|
|
10598
10598
|
return null;
|
|
10599
10599
|
}
|
|
10600
|
-
function
|
|
10600
|
+
function qm(e) {
|
|
10601
10601
|
return e === null;
|
|
10602
10602
|
}
|
|
10603
10603
|
var zf = new Ze("tag:yaml.org,2002:null", {
|
|
10604
10604
|
kind: "scalar",
|
|
10605
|
-
resolve:
|
|
10606
|
-
construct:
|
|
10607
|
-
predicate:
|
|
10605
|
+
resolve: Hm,
|
|
10606
|
+
construct: Fm,
|
|
10607
|
+
predicate: qm,
|
|
10608
10608
|
represent: {
|
|
10609
10609
|
canonical: function() {
|
|
10610
10610
|
return "~";
|
|
@@ -10624,23 +10624,23 @@ var zf = new Ze("tag:yaml.org,2002:null", {
|
|
|
10624
10624
|
},
|
|
10625
10625
|
defaultStyle: "lowercase"
|
|
10626
10626
|
});
|
|
10627
|
-
function
|
|
10627
|
+
function Km(e) {
|
|
10628
10628
|
if (e === null)
|
|
10629
10629
|
return !1;
|
|
10630
10630
|
var t = e.length;
|
|
10631
10631
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
10632
10632
|
}
|
|
10633
|
-
function
|
|
10633
|
+
function zm(e) {
|
|
10634
10634
|
return e === "true" || e === "True" || e === "TRUE";
|
|
10635
10635
|
}
|
|
10636
|
-
function
|
|
10636
|
+
function Gm(e) {
|
|
10637
10637
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
10638
10638
|
}
|
|
10639
10639
|
var Gf = new Ze("tag:yaml.org,2002:bool", {
|
|
10640
10640
|
kind: "scalar",
|
|
10641
|
-
resolve:
|
|
10642
|
-
construct:
|
|
10643
|
-
predicate:
|
|
10641
|
+
resolve: Km,
|
|
10642
|
+
construct: zm,
|
|
10643
|
+
predicate: Gm,
|
|
10644
10644
|
represent: {
|
|
10645
10645
|
lowercase: function(e) {
|
|
10646
10646
|
return e ? "true" : "false";
|
|
@@ -10654,16 +10654,16 @@ var Gf = new Ze("tag:yaml.org,2002:bool", {
|
|
|
10654
10654
|
},
|
|
10655
10655
|
defaultStyle: "lowercase"
|
|
10656
10656
|
});
|
|
10657
|
-
function
|
|
10657
|
+
function Wm(e) {
|
|
10658
10658
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
10659
10659
|
}
|
|
10660
|
-
function
|
|
10660
|
+
function Jm(e) {
|
|
10661
10661
|
return 48 <= e && e <= 55;
|
|
10662
10662
|
}
|
|
10663
|
-
function
|
|
10663
|
+
function Ym(e) {
|
|
10664
10664
|
return 48 <= e && e <= 57;
|
|
10665
10665
|
}
|
|
10666
|
-
function
|
|
10666
|
+
function Zm(e) {
|
|
10667
10667
|
if (e === null)
|
|
10668
10668
|
return !1;
|
|
10669
10669
|
var t = e.length, r = 0, i = !1, n;
|
|
@@ -10684,7 +10684,7 @@ function Zv(e) {
|
|
|
10684
10684
|
if (n === "x") {
|
|
10685
10685
|
for (r++; r < t; r++)
|
|
10686
10686
|
if (n = e[r], n !== "_") {
|
|
10687
|
-
if (!
|
|
10687
|
+
if (!Wm(e.charCodeAt(r)))
|
|
10688
10688
|
return !1;
|
|
10689
10689
|
i = !0;
|
|
10690
10690
|
}
|
|
@@ -10693,7 +10693,7 @@ function Zv(e) {
|
|
|
10693
10693
|
if (n === "o") {
|
|
10694
10694
|
for (r++; r < t; r++)
|
|
10695
10695
|
if (n = e[r], n !== "_") {
|
|
10696
|
-
if (!
|
|
10696
|
+
if (!Jm(e.charCodeAt(r)))
|
|
10697
10697
|
return !1;
|
|
10698
10698
|
i = !0;
|
|
10699
10699
|
}
|
|
@@ -10704,13 +10704,13 @@ function Zv(e) {
|
|
|
10704
10704
|
return !1;
|
|
10705
10705
|
for (; r < t; r++)
|
|
10706
10706
|
if (n = e[r], n !== "_") {
|
|
10707
|
-
if (!
|
|
10707
|
+
if (!Ym(e.charCodeAt(r)))
|
|
10708
10708
|
return !1;
|
|
10709
10709
|
i = !0;
|
|
10710
10710
|
}
|
|
10711
10711
|
return !(!i || n === "_");
|
|
10712
10712
|
}
|
|
10713
|
-
function
|
|
10713
|
+
function Qm(e) {
|
|
10714
10714
|
var t = e, r = 1, i;
|
|
10715
10715
|
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), i = t[0], (i === "-" || i === "+") && (i === "-" && (r = -1), t = t.slice(1), i = t[0]), t === "0")
|
|
10716
10716
|
return 0;
|
|
@@ -10724,14 +10724,14 @@ function Qv(e) {
|
|
|
10724
10724
|
}
|
|
10725
10725
|
return r * parseInt(t, 10);
|
|
10726
10726
|
}
|
|
10727
|
-
function
|
|
10727
|
+
function Xm(e) {
|
|
10728
10728
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !qe.isNegativeZero(e);
|
|
10729
10729
|
}
|
|
10730
10730
|
var Wf = new Ze("tag:yaml.org,2002:int", {
|
|
10731
10731
|
kind: "scalar",
|
|
10732
|
-
resolve:
|
|
10733
|
-
construct:
|
|
10734
|
-
predicate:
|
|
10732
|
+
resolve: Zm,
|
|
10733
|
+
construct: Qm,
|
|
10734
|
+
predicate: Xm,
|
|
10735
10735
|
represent: {
|
|
10736
10736
|
binary: function(e) {
|
|
10737
10737
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -10754,21 +10754,21 @@ var Wf = new Ze("tag:yaml.org,2002:int", {
|
|
|
10754
10754
|
decimal: [10, "dec"],
|
|
10755
10755
|
hexadecimal: [16, "hex"]
|
|
10756
10756
|
}
|
|
10757
|
-
}),
|
|
10757
|
+
}), ev = new RegExp(
|
|
10758
10758
|
// 2.5e4, 2.5 and integers
|
|
10759
10759
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
10760
10760
|
);
|
|
10761
|
-
function
|
|
10762
|
-
return !(e === null || !
|
|
10761
|
+
function tv(e) {
|
|
10762
|
+
return !(e === null || !ev.test(e) || // Quick hack to not allow integers end with `_`
|
|
10763
10763
|
// Probably should update regexp & check speed
|
|
10764
10764
|
e[e.length - 1] === "_");
|
|
10765
10765
|
}
|
|
10766
|
-
function
|
|
10766
|
+
function rv(e) {
|
|
10767
10767
|
var t, r;
|
|
10768
10768
|
return t = e.replace(/_/g, "").toLowerCase(), r = t[0] === "-" ? -1 : 1, "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? r === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : t === ".nan" ? NaN : r * parseFloat(t, 10);
|
|
10769
10769
|
}
|
|
10770
|
-
var
|
|
10771
|
-
function
|
|
10770
|
+
var iv = /^[-+]?[0-9]+e/;
|
|
10771
|
+
function nv(e, t) {
|
|
10772
10772
|
var r;
|
|
10773
10773
|
if (isNaN(e))
|
|
10774
10774
|
switch (t) {
|
|
@@ -10799,17 +10799,17 @@ function nm(e, t) {
|
|
|
10799
10799
|
}
|
|
10800
10800
|
else if (qe.isNegativeZero(e))
|
|
10801
10801
|
return "-0.0";
|
|
10802
|
-
return r = e.toString(10),
|
|
10802
|
+
return r = e.toString(10), iv.test(r) ? r.replace("e", ".e") : r;
|
|
10803
10803
|
}
|
|
10804
|
-
function
|
|
10804
|
+
function ov(e) {
|
|
10805
10805
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || qe.isNegativeZero(e));
|
|
10806
10806
|
}
|
|
10807
10807
|
var Jf = new Ze("tag:yaml.org,2002:float", {
|
|
10808
10808
|
kind: "scalar",
|
|
10809
|
-
resolve:
|
|
10810
|
-
construct:
|
|
10811
|
-
predicate:
|
|
10812
|
-
represent:
|
|
10809
|
+
resolve: tv,
|
|
10810
|
+
construct: rv,
|
|
10811
|
+
predicate: ov,
|
|
10812
|
+
represent: nv,
|
|
10813
10813
|
defaultStyle: "lowercase"
|
|
10814
10814
|
}), Yf = Kf.extend({
|
|
10815
10815
|
implicit: [
|
|
@@ -10823,10 +10823,10 @@ var Jf = new Ze("tag:yaml.org,2002:float", {
|
|
|
10823
10823
|
), Xf = new RegExp(
|
|
10824
10824
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
10825
10825
|
);
|
|
10826
|
-
function
|
|
10826
|
+
function sv(e) {
|
|
10827
10827
|
return e === null ? !1 : Qf.exec(e) !== null || Xf.exec(e) !== null;
|
|
10828
10828
|
}
|
|
10829
|
-
function
|
|
10829
|
+
function av(e) {
|
|
10830
10830
|
var t, r, i, n, o, s, a, l = 0, u = null, h, f, E;
|
|
10831
10831
|
if (t = Qf.exec(e), t === null && (t = Xf.exec(e)), t === null)
|
|
10832
10832
|
throw new Error("Date resolve error");
|
|
@@ -10839,25 +10839,25 @@ function am(e) {
|
|
|
10839
10839
|
}
|
|
10840
10840
|
return t[9] && (h = +t[10], f = +(t[11] || 0), u = (h * 60 + f) * 6e4, t[9] === "-" && (u = -u)), E = new Date(Date.UTC(r, i, n, o, s, a, l)), u && E.setTime(E.getTime() - u), E;
|
|
10841
10841
|
}
|
|
10842
|
-
function
|
|
10842
|
+
function lv(e) {
|
|
10843
10843
|
return e.toISOString();
|
|
10844
10844
|
}
|
|
10845
10845
|
var ep = new Ze("tag:yaml.org,2002:timestamp", {
|
|
10846
10846
|
kind: "scalar",
|
|
10847
|
-
resolve:
|
|
10848
|
-
construct:
|
|
10847
|
+
resolve: sv,
|
|
10848
|
+
construct: av,
|
|
10849
10849
|
instanceOf: Date,
|
|
10850
|
-
represent:
|
|
10850
|
+
represent: lv
|
|
10851
10851
|
});
|
|
10852
|
-
function
|
|
10852
|
+
function cv(e) {
|
|
10853
10853
|
return e === "<<" || e === null;
|
|
10854
10854
|
}
|
|
10855
10855
|
var tp = new Ze("tag:yaml.org,2002:merge", {
|
|
10856
10856
|
kind: "scalar",
|
|
10857
|
-
resolve:
|
|
10857
|
+
resolve: cv
|
|
10858
10858
|
}), wl = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
10859
10859
|
\r`;
|
|
10860
|
-
function
|
|
10860
|
+
function uv(e) {
|
|
10861
10861
|
if (e === null)
|
|
10862
10862
|
return !1;
|
|
10863
10863
|
var t, r, i = 0, n = e.length, o = wl;
|
|
@@ -10869,37 +10869,37 @@ function um(e) {
|
|
|
10869
10869
|
}
|
|
10870
10870
|
return i % 8 === 0;
|
|
10871
10871
|
}
|
|
10872
|
-
function
|
|
10872
|
+
function dv(e) {
|
|
10873
10873
|
var t, r, i = e.replace(/[\r\n=]/g, ""), n = i.length, o = wl, s = 0, a = [];
|
|
10874
10874
|
for (t = 0; t < n; t++)
|
|
10875
10875
|
t % 4 === 0 && t && (a.push(s >> 16 & 255), a.push(s >> 8 & 255), a.push(s & 255)), s = s << 6 | o.indexOf(i.charAt(t));
|
|
10876
10876
|
return r = n % 4 * 6, r === 0 ? (a.push(s >> 16 & 255), a.push(s >> 8 & 255), a.push(s & 255)) : r === 18 ? (a.push(s >> 10 & 255), a.push(s >> 2 & 255)) : r === 12 && a.push(s >> 4 & 255), new Uint8Array(a);
|
|
10877
10877
|
}
|
|
10878
|
-
function
|
|
10878
|
+
function fv(e) {
|
|
10879
10879
|
var t = "", r = 0, i, n, o = e.length, s = wl;
|
|
10880
10880
|
for (i = 0; i < o; i++)
|
|
10881
10881
|
i % 3 === 0 && i && (t += s[r >> 18 & 63], t += s[r >> 12 & 63], t += s[r >> 6 & 63], t += s[r & 63]), r = (r << 8) + e[i];
|
|
10882
10882
|
return n = o % 3, n === 0 ? (t += s[r >> 18 & 63], t += s[r >> 12 & 63], t += s[r >> 6 & 63], t += s[r & 63]) : n === 2 ? (t += s[r >> 10 & 63], t += s[r >> 4 & 63], t += s[r << 2 & 63], t += s[64]) : n === 1 && (t += s[r >> 2 & 63], t += s[r << 4 & 63], t += s[64], t += s[64]), t;
|
|
10883
10883
|
}
|
|
10884
|
-
function
|
|
10884
|
+
function pv(e) {
|
|
10885
10885
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
10886
10886
|
}
|
|
10887
10887
|
var rp = new Ze("tag:yaml.org,2002:binary", {
|
|
10888
10888
|
kind: "scalar",
|
|
10889
|
-
resolve:
|
|
10890
|
-
construct:
|
|
10891
|
-
predicate:
|
|
10892
|
-
represent:
|
|
10893
|
-
}),
|
|
10894
|
-
function
|
|
10889
|
+
resolve: uv,
|
|
10890
|
+
construct: dv,
|
|
10891
|
+
predicate: pv,
|
|
10892
|
+
represent: fv
|
|
10893
|
+
}), hv = Object.prototype.hasOwnProperty, yv = Object.prototype.toString;
|
|
10894
|
+
function gv(e) {
|
|
10895
10895
|
if (e === null)
|
|
10896
10896
|
return !0;
|
|
10897
10897
|
var t = [], r, i, n, o, s, a = e;
|
|
10898
10898
|
for (r = 0, i = a.length; r < i; r += 1) {
|
|
10899
|
-
if (n = a[r], s = !1,
|
|
10899
|
+
if (n = a[r], s = !1, yv.call(n) !== "[object Object]")
|
|
10900
10900
|
return !1;
|
|
10901
10901
|
for (o in n)
|
|
10902
|
-
if (
|
|
10902
|
+
if (hv.call(n, o))
|
|
10903
10903
|
if (!s)
|
|
10904
10904
|
s = !0;
|
|
10905
10905
|
else
|
|
@@ -10913,26 +10913,26 @@ function gm(e) {
|
|
|
10913
10913
|
}
|
|
10914
10914
|
return !0;
|
|
10915
10915
|
}
|
|
10916
|
-
function
|
|
10916
|
+
function mv(e) {
|
|
10917
10917
|
return e !== null ? e : [];
|
|
10918
10918
|
}
|
|
10919
10919
|
var ip = new Ze("tag:yaml.org,2002:omap", {
|
|
10920
10920
|
kind: "sequence",
|
|
10921
|
-
resolve:
|
|
10922
|
-
construct:
|
|
10923
|
-
}),
|
|
10924
|
-
function
|
|
10921
|
+
resolve: gv,
|
|
10922
|
+
construct: mv
|
|
10923
|
+
}), vv = Object.prototype.toString;
|
|
10924
|
+
function bv(e) {
|
|
10925
10925
|
if (e === null)
|
|
10926
10926
|
return !0;
|
|
10927
10927
|
var t, r, i, n, o, s = e;
|
|
10928
10928
|
for (o = new Array(s.length), t = 0, r = s.length; t < r; t += 1) {
|
|
10929
|
-
if (i = s[t],
|
|
10929
|
+
if (i = s[t], vv.call(i) !== "[object Object]" || (n = Object.keys(i), n.length !== 1))
|
|
10930
10930
|
return !1;
|
|
10931
10931
|
o[t] = [n[0], i[n[0]]];
|
|
10932
10932
|
}
|
|
10933
10933
|
return !0;
|
|
10934
10934
|
}
|
|
10935
|
-
function
|
|
10935
|
+
function wv(e) {
|
|
10936
10936
|
if (e === null)
|
|
10937
10937
|
return [];
|
|
10938
10938
|
var t, r, i, n, o, s = e;
|
|
@@ -10942,25 +10942,25 @@ function wm(e) {
|
|
|
10942
10942
|
}
|
|
10943
10943
|
var np = new Ze("tag:yaml.org,2002:pairs", {
|
|
10944
10944
|
kind: "sequence",
|
|
10945
|
-
resolve:
|
|
10946
|
-
construct:
|
|
10947
|
-
}),
|
|
10948
|
-
function
|
|
10945
|
+
resolve: bv,
|
|
10946
|
+
construct: wv
|
|
10947
|
+
}), kv = Object.prototype.hasOwnProperty;
|
|
10948
|
+
function Av(e) {
|
|
10949
10949
|
if (e === null)
|
|
10950
10950
|
return !0;
|
|
10951
10951
|
var t, r = e;
|
|
10952
10952
|
for (t in r)
|
|
10953
|
-
if (
|
|
10953
|
+
if (kv.call(r, t) && r[t] !== null)
|
|
10954
10954
|
return !1;
|
|
10955
10955
|
return !0;
|
|
10956
10956
|
}
|
|
10957
|
-
function
|
|
10957
|
+
function Sv(e) {
|
|
10958
10958
|
return e !== null ? e : {};
|
|
10959
10959
|
}
|
|
10960
10960
|
var op = new Ze("tag:yaml.org,2002:set", {
|
|
10961
10961
|
kind: "mapping",
|
|
10962
|
-
resolve:
|
|
10963
|
-
construct:
|
|
10962
|
+
resolve: Av,
|
|
10963
|
+
construct: Sv
|
|
10964
10964
|
}), kl = Zf.extend({
|
|
10965
10965
|
implicit: [
|
|
10966
10966
|
ep,
|
|
@@ -10972,7 +10972,7 @@ var op = new Ze("tag:yaml.org,2002:set", {
|
|
|
10972
10972
|
np,
|
|
10973
10973
|
op
|
|
10974
10974
|
]
|
|
10975
|
-
}), lr = Object.prototype.hasOwnProperty, Rn = 1, sp = 2, ap = 3, Dn = 4, is = 1,
|
|
10975
|
+
}), lr = Object.prototype.hasOwnProperty, Rn = 1, sp = 2, ap = 3, Dn = 4, is = 1, Cv = 2, vu = 3, xv = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Iv = /[\x85\u2028\u2029]/, Bv = /[,\[\]\{\}]/, lp = /^(?:!|!!|![a-z\-]+!)$/i, cp = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
10976
10976
|
function bu(e) {
|
|
10977
10977
|
return Object.prototype.toString.call(e);
|
|
10978
10978
|
}
|
|
@@ -10988,21 +10988,21 @@ function at(e) {
|
|
|
10988
10988
|
function Pr(e) {
|
|
10989
10989
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
10990
10990
|
}
|
|
10991
|
-
function
|
|
10991
|
+
function Ev(e) {
|
|
10992
10992
|
var t;
|
|
10993
10993
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
10994
10994
|
}
|
|
10995
|
-
function
|
|
10995
|
+
function Ov(e) {
|
|
10996
10996
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
10997
10997
|
}
|
|
10998
|
-
function
|
|
10998
|
+
function Nv(e) {
|
|
10999
10999
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
11000
11000
|
}
|
|
11001
11001
|
function wu(e) {
|
|
11002
11002
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
11003
11003
|
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
11004
11004
|
}
|
|
11005
|
-
function
|
|
11005
|
+
function _v(e) {
|
|
11006
11006
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
11007
11007
|
(e - 65536 >> 10) + 55296,
|
|
11008
11008
|
(e - 65536 & 1023) + 56320
|
|
@@ -11011,7 +11011,7 @@ function _m(e) {
|
|
|
11011
11011
|
var up = new Array(256), dp = new Array(256);
|
|
11012
11012
|
for (var Mr = 0; Mr < 256; Mr++)
|
|
11013
11013
|
up[Mr] = wu(Mr) ? 1 : 0, dp[Mr] = wu(Mr);
|
|
11014
|
-
function
|
|
11014
|
+
function Tv(e, t) {
|
|
11015
11015
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || kl, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
11016
11016
|
}
|
|
11017
11017
|
function fp(e, t) {
|
|
@@ -11023,7 +11023,7 @@ function fp(e, t) {
|
|
|
11023
11023
|
line: e.line,
|
|
11024
11024
|
column: e.position - e.lineStart
|
|
11025
11025
|
};
|
|
11026
|
-
return r.snippet =
|
|
11026
|
+
return r.snippet = Pm(r), new rt(t, r);
|
|
11027
11027
|
}
|
|
11028
11028
|
function oe(e, t) {
|
|
11029
11029
|
throw fp(e, t);
|
|
@@ -11054,7 +11054,7 @@ function sr(e, t, r, i) {
|
|
|
11054
11054
|
for (n = 0, o = a.length; n < o; n += 1)
|
|
11055
11055
|
s = a.charCodeAt(n), s === 9 || 32 <= s && s <= 1114111 || oe(e, "expected valid JSON character");
|
|
11056
11056
|
else
|
|
11057
|
-
|
|
11057
|
+
xv.test(a) && oe(e, "the stream contains non-printable characters");
|
|
11058
11058
|
e.result += a;
|
|
11059
11059
|
}
|
|
11060
11060
|
}
|
|
@@ -11111,7 +11111,7 @@ function Sl(e, t) {
|
|
|
11111
11111
|
t === 1 ? e.result += " " : t > 1 && (e.result += qe.repeat(`
|
|
11112
11112
|
`, t - 1));
|
|
11113
11113
|
}
|
|
11114
|
-
function
|
|
11114
|
+
function jv(e, t, r) {
|
|
11115
11115
|
var i, n, o, s, a, l, u, h, f = e.kind, E = e.result, b;
|
|
11116
11116
|
if (b = e.input.charCodeAt(e.position), at(b) || Pr(b) || b === 35 || b === 38 || b === 42 || b === 33 || b === 124 || b === 62 || b === 39 || b === 34 || b === 37 || b === 64 || b === 96 || (b === 63 || b === 45) && (n = e.input.charCodeAt(e.position + 1), at(n) || r && Pr(n)))
|
|
11117
11117
|
return !1;
|
|
@@ -11138,7 +11138,7 @@ function jm(e, t, r) {
|
|
|
11138
11138
|
}
|
|
11139
11139
|
return sr(e, o, s, !1), e.result ? !0 : (e.kind = f, e.result = E, !1);
|
|
11140
11140
|
}
|
|
11141
|
-
function
|
|
11141
|
+
function Mv(e, t) {
|
|
11142
11142
|
var r, i, n;
|
|
11143
11143
|
if (r = e.input.charCodeAt(e.position), r !== 39)
|
|
11144
11144
|
return !1;
|
|
@@ -11152,7 +11152,7 @@ function Mm(e, t) {
|
|
|
11152
11152
|
_t(r) ? (sr(e, i, n, !0), Sl(e, Ue(e, !1, t)), i = n = e.position) : e.position === e.lineStart && Do(e) ? oe(e, "unexpected end of the document within a single quoted scalar") : (e.position++, n = e.position);
|
|
11153
11153
|
oe(e, "unexpected end of the stream within a single quoted scalar");
|
|
11154
11154
|
}
|
|
11155
|
-
function
|
|
11155
|
+
function Vv(e, t) {
|
|
11156
11156
|
var r, i, n, o, s, a;
|
|
11157
11157
|
if (a = e.input.charCodeAt(e.position), a !== 34)
|
|
11158
11158
|
return !1;
|
|
@@ -11164,10 +11164,10 @@ function Vm(e, t) {
|
|
|
11164
11164
|
Ue(e, !1, t);
|
|
11165
11165
|
else if (a < 256 && up[a])
|
|
11166
11166
|
e.result += dp[a], e.position++;
|
|
11167
|
-
else if ((s =
|
|
11167
|
+
else if ((s = Ov(a)) > 0) {
|
|
11168
11168
|
for (n = s, o = 0; n > 0; n--)
|
|
11169
|
-
a = e.input.charCodeAt(++e.position), (s =
|
|
11170
|
-
e.result +=
|
|
11169
|
+
a = e.input.charCodeAt(++e.position), (s = Ev(a)) >= 0 ? o = (o << 4) + s : oe(e, "expected hexadecimal character");
|
|
11170
|
+
e.result += _v(o), e.position++;
|
|
11171
11171
|
} else
|
|
11172
11172
|
oe(e, "unknown escape sequence");
|
|
11173
11173
|
r = i = e.position;
|
|
@@ -11176,7 +11176,7 @@ function Vm(e, t) {
|
|
|
11176
11176
|
}
|
|
11177
11177
|
oe(e, "unexpected end of the stream within a double quoted scalar");
|
|
11178
11178
|
}
|
|
11179
|
-
function
|
|
11179
|
+
function Pv(e, t) {
|
|
11180
11180
|
var r = !0, i, n, o, s = e.tag, a, l = e.anchor, u, h, f, E, b, p = /* @__PURE__ */ Object.create(null), y, w, g, C;
|
|
11181
11181
|
if (C = e.input.charCodeAt(e.position), C === 91)
|
|
11182
11182
|
h = 93, b = !1, a = [];
|
|
@@ -11191,7 +11191,7 @@ function Pm(e, t) {
|
|
|
11191
11191
|
}
|
|
11192
11192
|
oe(e, "unexpected end of the stream within a flow collection");
|
|
11193
11193
|
}
|
|
11194
|
-
function $
|
|
11194
|
+
function $v(e, t) {
|
|
11195
11195
|
var r, i, n = is, o = !1, s = !1, a = t, l = 0, u = !1, h, f;
|
|
11196
11196
|
if (f = e.input.charCodeAt(e.position), f === 124)
|
|
11197
11197
|
i = !1;
|
|
@@ -11201,8 +11201,8 @@ function $m(e, t) {
|
|
|
11201
11201
|
return !1;
|
|
11202
11202
|
for (e.kind = "scalar", e.result = ""; f !== 0; )
|
|
11203
11203
|
if (f = e.input.charCodeAt(++e.position), f === 43 || f === 45)
|
|
11204
|
-
is === n ? n = f === 43 ?
|
|
11205
|
-
else if ((h =
|
|
11204
|
+
is === n ? n = f === 43 ? vu : Cv : oe(e, "repeat of a chomping mode identifier");
|
|
11205
|
+
else if ((h = Nv(f)) >= 0)
|
|
11206
11206
|
h === 0 ? oe(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : s ? oe(e, "repeat of an indentation width identifier") : (a = t + h - 1, s = !0);
|
|
11207
11207
|
else
|
|
11208
11208
|
break;
|
|
@@ -11223,7 +11223,7 @@ function $m(e, t) {
|
|
|
11223
11223
|
continue;
|
|
11224
11224
|
}
|
|
11225
11225
|
if (e.lineIndent < a) {
|
|
11226
|
-
n ===
|
|
11226
|
+
n === vu ? e.result += qe.repeat(`
|
|
11227
11227
|
`, o ? 1 + l : l) : n === is && o && (e.result += `
|
|
11228
11228
|
`);
|
|
11229
11229
|
break;
|
|
@@ -11254,7 +11254,7 @@ function Su(e, t) {
|
|
|
11254
11254
|
}
|
|
11255
11255
|
return a ? (e.tag = i, e.anchor = n, e.kind = "sequence", e.result = o, !0) : !1;
|
|
11256
11256
|
}
|
|
11257
|
-
function
|
|
11257
|
+
function Rv(e, t, r) {
|
|
11258
11258
|
var i, n, o, s, a, l, u = e.tag, h = e.anchor, f = {}, E = /* @__PURE__ */ Object.create(null), b = null, p = null, y = null, w = !1, g = !1, C;
|
|
11259
11259
|
if (e.firstTabInLine !== -1)
|
|
11260
11260
|
return !1;
|
|
@@ -11285,7 +11285,7 @@ function Rm(e, t, r) {
|
|
|
11285
11285
|
}
|
|
11286
11286
|
return w && $r(e, f, E, b, p, null, s, a, l), g && (e.tag = u, e.anchor = h, e.kind = "mapping", e.result = f), g;
|
|
11287
11287
|
}
|
|
11288
|
-
function
|
|
11288
|
+
function Dv(e) {
|
|
11289
11289
|
var t, r = !1, i = !1, n, o, s;
|
|
11290
11290
|
if (s = e.input.charCodeAt(e.position), s !== 33)
|
|
11291
11291
|
return !1;
|
|
@@ -11297,7 +11297,7 @@ function Dm(e) {
|
|
|
11297
11297
|
} else {
|
|
11298
11298
|
for (; s !== 0 && !at(s); )
|
|
11299
11299
|
s === 33 && (i ? oe(e, "tag suffix cannot contain exclamation marks") : (n = e.input.slice(t - 1, e.position + 1), lp.test(n) || oe(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), s = e.input.charCodeAt(++e.position);
|
|
11300
|
-
o = e.input.slice(t, e.position),
|
|
11300
|
+
o = e.input.slice(t, e.position), Bv.test(o) && oe(e, "tag suffix cannot contain flow indicator characters");
|
|
11301
11301
|
}
|
|
11302
11302
|
o && !cp.test(o) && oe(e, "tag name cannot contain such characters: " + o);
|
|
11303
11303
|
try {
|
|
@@ -11307,7 +11307,7 @@ function Dm(e) {
|
|
|
11307
11307
|
}
|
|
11308
11308
|
return r ? e.tag = o : lr.call(e.tagMap, n) ? e.tag = e.tagMap[n] + o : n === "!" ? e.tag = "!" + o : n === "!!" ? e.tag = "tag:yaml.org,2002:" + o : oe(e, 'undeclared tag handle "' + n + '"'), !0;
|
|
11309
11309
|
}
|
|
11310
|
-
function
|
|
11310
|
+
function Uv(e) {
|
|
11311
11311
|
var t, r;
|
|
11312
11312
|
if (r = e.input.charCodeAt(e.position), r !== 38)
|
|
11313
11313
|
return !1;
|
|
@@ -11315,7 +11315,7 @@ function Um(e) {
|
|
|
11315
11315
|
r = e.input.charCodeAt(++e.position);
|
|
11316
11316
|
return e.position === t && oe(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
11317
11317
|
}
|
|
11318
|
-
function
|
|
11318
|
+
function Lv(e) {
|
|
11319
11319
|
var t, r, i;
|
|
11320
11320
|
if (i = e.input.charCodeAt(e.position), i !== 42)
|
|
11321
11321
|
return !1;
|
|
@@ -11326,9 +11326,9 @@ function Lm(e) {
|
|
|
11326
11326
|
function ni(e, t, r, i, n) {
|
|
11327
11327
|
var o, s, a, l = 1, u = !1, h = !1, f, E, b, p, y, w;
|
|
11328
11328
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = s = a = Dn === r || ap === r, i && Ue(e, !0, -1) && (u = !0, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)), l === 1)
|
|
11329
|
-
for (;
|
|
11329
|
+
for (; Dv(e) || Uv(e); )
|
|
11330
11330
|
Ue(e, !0, -1) ? (u = !0, a = o, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)) : a = !1;
|
|
11331
|
-
if (a && (a = u || n), (l === 1 || Dn === r) && (Rn === r || sp === r ? y = t : y = t + 1, w = e.position - e.lineStart, l === 1 ? a && (Su(e, w) ||
|
|
11331
|
+
if (a && (a = u || n), (l === 1 || Dn === r) && (Rn === r || sp === r ? y = t : y = t + 1, w = e.position - e.lineStart, l === 1 ? a && (Su(e, w) || Rv(e, w, y)) || Pv(e, y) ? h = !0 : (s && $v(e, y) || Mv(e, y) || Vv(e, y) ? h = !0 : Lv(e) ? (h = !0, (e.tag !== null || e.anchor !== null) && oe(e, "alias node should not have any properties")) : jv(e, y, Rn === r) && (h = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (h = a && Su(e, w))), e.tag === null)
|
|
11332
11332
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
11333
11333
|
else if (e.tag === "?") {
|
|
11334
11334
|
for (e.result !== null && e.kind !== "scalar" && oe(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), f = 0, E = e.implicitTypes.length; f < E; f += 1)
|
|
@@ -11349,7 +11349,7 @@ function ni(e, t, r, i, n) {
|
|
|
11349
11349
|
}
|
|
11350
11350
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || h;
|
|
11351
11351
|
}
|
|
11352
|
-
function
|
|
11352
|
+
function Hv(e) {
|
|
11353
11353
|
var t = e.position, r, i, n, o = !1, s;
|
|
11354
11354
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (s = e.input.charCodeAt(e.position)) !== 0 && (Ue(e, !0, -1), s = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || s !== 37)); ) {
|
|
11355
11355
|
for (o = !0, s = e.input.charCodeAt(++e.position), r = e.position; s !== 0 && !at(s); )
|
|
@@ -11371,7 +11371,7 @@ function Hm(e) {
|
|
|
11371
11371
|
}
|
|
11372
11372
|
s !== 0 && Al(e), lr.call(ku, i) ? ku[i](e, i, n) : Un(e, 'unknown document directive "' + i + '"');
|
|
11373
11373
|
}
|
|
11374
|
-
if (Ue(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, Ue(e, !0, -1)) : o && oe(e, "directives end mark is expected"), ni(e, e.lineIndent - 1, Dn, !1, !0), Ue(e, !0, -1), e.checkLineBreaks &&
|
|
11374
|
+
if (Ue(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, Ue(e, !0, -1)) : o && oe(e, "directives end mark is expected"), ni(e, e.lineIndent - 1, Dn, !1, !0), Ue(e, !0, -1), e.checkLineBreaks && Iv.test(e.input.slice(t, e.position)) && Un(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Do(e)) {
|
|
11375
11375
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, Ue(e, !0, -1));
|
|
11376
11376
|
return;
|
|
11377
11377
|
}
|
|
@@ -11383,14 +11383,14 @@ function Hm(e) {
|
|
|
11383
11383
|
function pp(e, t) {
|
|
11384
11384
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
11385
11385
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
11386
|
-
var r = new
|
|
11386
|
+
var r = new Tv(e, t), i = e.indexOf("\0");
|
|
11387
11387
|
for (i !== -1 && (r.position = i, oe(r, "null byte is not allowed in input")), r.input += "\0"; r.input.charCodeAt(r.position) === 32; )
|
|
11388
11388
|
r.lineIndent += 1, r.position += 1;
|
|
11389
11389
|
for (; r.position < r.length - 1; )
|
|
11390
|
-
|
|
11390
|
+
Hv(r);
|
|
11391
11391
|
return r.documents;
|
|
11392
11392
|
}
|
|
11393
|
-
function
|
|
11393
|
+
function Fv(e, t, r) {
|
|
11394
11394
|
t !== null && typeof t == "object" && typeof r > "u" && (r = t, t = null);
|
|
11395
11395
|
var i = pp(e, r);
|
|
11396
11396
|
if (typeof t != "function")
|
|
@@ -11398,7 +11398,7 @@ function Fm(e, t, r) {
|
|
|
11398
11398
|
for (var n = 0, o = i.length; n < o; n += 1)
|
|
11399
11399
|
t(i[n]);
|
|
11400
11400
|
}
|
|
11401
|
-
function
|
|
11401
|
+
function qv(e, t) {
|
|
11402
11402
|
var r = pp(e, t);
|
|
11403
11403
|
if (r.length !== 0) {
|
|
11404
11404
|
if (r.length === 1)
|
|
@@ -11406,10 +11406,10 @@ function qm(e, t) {
|
|
|
11406
11406
|
throw new rt("expected a single document in the stream, but found more");
|
|
11407
11407
|
}
|
|
11408
11408
|
}
|
|
11409
|
-
var
|
|
11410
|
-
loadAll:
|
|
11411
|
-
load:
|
|
11412
|
-
}, yp = Object.prototype.toString, gp = Object.prototype.hasOwnProperty, Cl = 65279,
|
|
11409
|
+
var Kv = Fv, zv = qv, hp = {
|
|
11410
|
+
loadAll: Kv,
|
|
11411
|
+
load: zv
|
|
11412
|
+
}, yp = Object.prototype.toString, gp = Object.prototype.hasOwnProperty, Cl = 65279, Gv = 9, Ri = 10, Wv = 13, Jv = 32, Yv = 33, Zv = 34, Aa = 35, Qv = 37, Xv = 38, e0 = 39, t0 = 42, mp = 44, r0 = 45, Ln = 58, i0 = 61, n0 = 62, o0 = 63, s0 = 64, vp = 91, bp = 93, a0 = 96, wp = 123, l0 = 124, kp = 125, tt = {};
|
|
11413
11413
|
tt[0] = "\\0";
|
|
11414
11414
|
tt[7] = "\\a";
|
|
11415
11415
|
tt[8] = "\\b";
|
|
@@ -11486,13 +11486,13 @@ function y0(e, t) {
|
|
|
11486
11486
|
return !1;
|
|
11487
11487
|
}
|
|
11488
11488
|
function Hn(e) {
|
|
11489
|
-
return e ===
|
|
11489
|
+
return e === Jv || e === Gv;
|
|
11490
11490
|
}
|
|
11491
11491
|
function Ui(e) {
|
|
11492
11492
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Cl || 65536 <= e && e <= 1114111;
|
|
11493
11493
|
}
|
|
11494
11494
|
function xu(e) {
|
|
11495
|
-
return Ui(e) && e !== Cl && e !==
|
|
11495
|
+
return Ui(e) && e !== Cl && e !== Wv && e !== Ri;
|
|
11496
11496
|
}
|
|
11497
11497
|
function Iu(e, t, r) {
|
|
11498
11498
|
var i = xu(e), n = i && !Hn(e);
|
|
@@ -11501,16 +11501,16 @@ function Iu(e, t, r) {
|
|
|
11501
11501
|
(r ? (
|
|
11502
11502
|
// c = flow-in
|
|
11503
11503
|
i
|
|
11504
|
-
) : i && e !==
|
|
11504
|
+
) : i && e !== mp && e !== vp && e !== bp && e !== wp && e !== kp) && e !== Aa && !(t === Ln && !n) || xu(t) && !Hn(t) && e === Aa || t === Ln && n
|
|
11505
11505
|
);
|
|
11506
11506
|
}
|
|
11507
11507
|
function g0(e) {
|
|
11508
|
-
return Ui(e) && e !== Cl && !Hn(e) && e !== r0 && e !== o0 && e !== Ln && e !==
|
|
11508
|
+
return Ui(e) && e !== Cl && !Hn(e) && e !== r0 && e !== o0 && e !== Ln && e !== mp && e !== vp && e !== bp && e !== wp && e !== kp && e !== Aa && e !== Xv && e !== t0 && e !== Yv && e !== l0 && e !== i0 && e !== n0 && e !== e0 && e !== Zv && e !== Qv && e !== s0 && e !== a0;
|
|
11509
11509
|
}
|
|
11510
|
-
function
|
|
11510
|
+
function m0(e) {
|
|
11511
11511
|
return !Hn(e) && e !== Ln;
|
|
11512
11512
|
}
|
|
11513
|
-
function
|
|
11513
|
+
function mi(e, t) {
|
|
11514
11514
|
var r = e.charCodeAt(t), i;
|
|
11515
11515
|
return r >= 55296 && r <= 56319 && t + 1 < e.length && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (r - 55296) * 1024 + i - 56320 + 65536 : r;
|
|
11516
11516
|
}
|
|
@@ -11519,17 +11519,17 @@ function Ap(e) {
|
|
|
11519
11519
|
return t.test(e);
|
|
11520
11520
|
}
|
|
11521
11521
|
var Sp = 1, Ca = 2, Cp = 3, xp = 4, Vr = 5;
|
|
11522
|
-
function
|
|
11523
|
-
var l, u = 0, h = null, f = !1, E = !1, b = i !== -1, p = -1, y = g0(
|
|
11522
|
+
function v0(e, t, r, i, n, o, s, a) {
|
|
11523
|
+
var l, u = 0, h = null, f = !1, E = !1, b = i !== -1, p = -1, y = g0(mi(e, 0)) && m0(mi(e, e.length - 1));
|
|
11524
11524
|
if (t || s)
|
|
11525
11525
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
11526
|
-
if (u =
|
|
11526
|
+
if (u = mi(e, l), !Ui(u))
|
|
11527
11527
|
return Vr;
|
|
11528
11528
|
y = y && Iu(u, h, a), h = u;
|
|
11529
11529
|
}
|
|
11530
11530
|
else {
|
|
11531
11531
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
11532
|
-
if (u =
|
|
11532
|
+
if (u = mi(e, l), u === Ri)
|
|
11533
11533
|
f = !0, b && (E = E || // Foldable line = too long, and not more-indented.
|
|
11534
11534
|
l - p - 1 > i && e[p + 1] !== " ", p = l);
|
|
11535
11535
|
else if (!Ui(u))
|
|
@@ -11550,7 +11550,7 @@ function b0(e, t, r, i, n) {
|
|
|
11550
11550
|
function l(u) {
|
|
11551
11551
|
return y0(e, u);
|
|
11552
11552
|
}
|
|
11553
|
-
switch (
|
|
11553
|
+
switch (v0(
|
|
11554
11554
|
t,
|
|
11555
11555
|
a,
|
|
11556
11556
|
e.indent,
|
|
@@ -11612,7 +11612,7 @@ function Ou(e, t) {
|
|
|
11612
11612
|
}
|
|
11613
11613
|
function k0(e) {
|
|
11614
11614
|
for (var t = "", r = 0, i, n = 0; n < e.length; r >= 65536 ? n += 2 : n++)
|
|
11615
|
-
r =
|
|
11615
|
+
r = mi(e, n), i = tt[r], !i && Ui(r) ? (t += e[n], r >= 65536 && (t += e[n + 1])) : t += i || f0(r);
|
|
11616
11616
|
return t;
|
|
11617
11617
|
}
|
|
11618
11618
|
function A0(e, t, r) {
|
|
@@ -12118,15 +12118,15 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12118
12118
|
return [];
|
|
12119
12119
|
const te = [], G = Object.keys(g.value).length;
|
|
12120
12120
|
for (const K in g.value) {
|
|
12121
|
-
const
|
|
12121
|
+
const ve = (Y = (_ = n.configSchema) == null ? void 0 : _[K]) == null ? void 0 : Y.order, Ce = (F = b[K]) == null ? void 0 : F.order;
|
|
12122
12122
|
let Me = G;
|
|
12123
|
-
(Ce || Ce === 0) && (Me = Ce === -1 ? G + 1 : Ce),
|
|
12123
|
+
(Ce || Ce === 0) && (Me = Ce === -1 ? G + 1 : Ce), ve && (Me = ve === -1 ? G + 1 : ve), te.push([K, Me]);
|
|
12124
12124
|
}
|
|
12125
|
-
return te.sort(function(K,
|
|
12126
|
-
return K[1] -
|
|
12125
|
+
return te.sort(function(K, ve) {
|
|
12126
|
+
return K[1] - ve[1];
|
|
12127
12127
|
}), te.map((K) => {
|
|
12128
|
-
var
|
|
12129
|
-
const Me = K[0], xe = (
|
|
12128
|
+
var ve, Ce;
|
|
12129
|
+
const Me = K[0], xe = (ve = g.value) == null ? void 0 : ve[Me], Ee = ((Ce = n.configSchema) == null ? void 0 : Ce[Me]) || {}, De = b[Me];
|
|
12130
12130
|
return {
|
|
12131
12131
|
key: Me,
|
|
12132
12132
|
value: xe,
|
|
@@ -12143,15 +12143,15 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12143
12143
|
return [];
|
|
12144
12144
|
const F = g.value[n.pluginConfigKey] || {}, te = Object.keys(F).length, G = [];
|
|
12145
12145
|
for (const K in F) {
|
|
12146
|
-
const
|
|
12146
|
+
const ve = (Y = (_ = n.pluginConfigSchema) == null ? void 0 : _[K]) == null ? void 0 : Y.order, Ce = F[K];
|
|
12147
12147
|
let Me = Ce != null && Ce !== "" ? te - 1 : te;
|
|
12148
|
-
|
|
12148
|
+
ve && (Me = ve === -1 ? te + 1 : ve), G.push([K, Me]);
|
|
12149
12149
|
}
|
|
12150
|
-
return G.sort(function(K,
|
|
12151
|
-
return K[1] -
|
|
12150
|
+
return G.sort(function(K, ve) {
|
|
12151
|
+
return K[1] - ve[1];
|
|
12152
12152
|
}), G.map((K) => {
|
|
12153
|
-
var
|
|
12154
|
-
const Ce = K[0], Me = F[Ce], xe = ((
|
|
12153
|
+
var ve;
|
|
12154
|
+
const Ce = K[0], Me = F[Ce], xe = ((ve = n.pluginConfigSchema) == null ? void 0 : ve[Ce]) || {};
|
|
12155
12155
|
return {
|
|
12156
12156
|
key: Ce,
|
|
12157
12157
|
value: Me,
|
|
@@ -12162,7 +12162,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12162
12162
|
section: Ie.Plugin
|
|
12163
12163
|
};
|
|
12164
12164
|
}).filter((K) => !K.hidden);
|
|
12165
|
-
}),
|
|
12165
|
+
}), v = D(() => {
|
|
12166
12166
|
var _, Y, F, te;
|
|
12167
12167
|
return {
|
|
12168
12168
|
basic: (_ = C.value) == null ? void 0 : _.filter((G) => G.section === Ie.Basic),
|
|
@@ -12171,7 +12171,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12171
12171
|
};
|
|
12172
12172
|
}), T = D(() => {
|
|
12173
12173
|
const _ = [];
|
|
12174
|
-
return
|
|
12174
|
+
return v.value.basic.length && _.push("basic"), v.value.advanced.length && _.push("advanced"), v.value.plugin.length && _.push("plugin"), _;
|
|
12175
12175
|
}), q = (_) => !!(_.tooltip || o[`${_.key}-label-tooltip`]), fe = D(() => {
|
|
12176
12176
|
var _, Y;
|
|
12177
12177
|
let F = `${n.config.apiBaseUrl}${n.fetchUrl}`;
|
|
@@ -12202,7 +12202,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12202
12202
|
p.value = !1;
|
|
12203
12203
|
}
|
|
12204
12204
|
}), (_, Y) => {
|
|
12205
|
-
const F = ne("KLabel"), te = ne("KSelect"), G = ne("KButton"), K = ne("KClipboardProvider"),
|
|
12205
|
+
const F = ne("KLabel"), te = ne("KSelect"), G = ne("KButton"), K = ne("KClipboardProvider"), ve = ne("KSkeleton"), Ce = ne("KEmptyState"), Me = ne("KCard");
|
|
12206
12206
|
return B(), se(Me, { class: "kong-ui-entity-base-config-card" }, rr({
|
|
12207
12207
|
actions: x(() => [
|
|
12208
12208
|
de("div", n1, [
|
|
@@ -12236,7 +12236,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12236
12236
|
rel: "noopener",
|
|
12237
12237
|
target: "_blank"
|
|
12238
12238
|
}, [
|
|
12239
|
-
M(S(r1), { size: S(
|
|
12239
|
+
M(S(r1), { size: S(cm) }, null, 8, ["size"])
|
|
12240
12240
|
], 8, o1)
|
|
12241
12241
|
]),
|
|
12242
12242
|
_: 1
|
|
@@ -12260,7 +12260,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12260
12260
|
])
|
|
12261
12261
|
]),
|
|
12262
12262
|
default: x(() => [
|
|
12263
|
-
p.value ? (B(), se(
|
|
12263
|
+
p.value ? (B(), se(ve, {
|
|
12264
12264
|
key: 0,
|
|
12265
12265
|
"data-testid": "config-card-loader",
|
|
12266
12266
|
"table-columns": 2,
|
|
@@ -12281,7 +12281,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12281
12281
|
"fetcher-url": fe.value,
|
|
12282
12282
|
format: f.value,
|
|
12283
12283
|
"prop-list-types": T.value,
|
|
12284
|
-
"property-collections":
|
|
12284
|
+
"property-collections": v.value,
|
|
12285
12285
|
record: g.value
|
|
12286
12286
|
}, rr({ _: 2 }, [
|
|
12287
12287
|
ze(Object.keys(_.$slots), (xe) => ({
|
|
@@ -12301,7 +12301,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12301
12301
|
"data-testid": `config-card-details-${xe}-props`
|
|
12302
12302
|
}, [
|
|
12303
12303
|
xe !== "basic" ? (B(), U("div", c1, R(xe === "advanced" ? S(s)("baseConfigCard.sections.advanced") : S(s)("baseConfigCard.sections.plugin")), 1)) : ye("", !0),
|
|
12304
|
-
(B(!0), U(Je, null, ze(
|
|
12304
|
+
(B(!0), U(Je, null, ze(v.value[xe], (Ee) => (B(), se(nn, {
|
|
12305
12305
|
key: Ee.key,
|
|
12306
12306
|
item: Ee
|
|
12307
12307
|
}, rr({
|
|
@@ -12404,9 +12404,9 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12404
12404
|
const i = t, n = e, o = Li(), { i18n: { t: s } } = Ge.useI18n(), { getMessageFromError: a } = Ge.useErrors(), { axiosInstance: l } = Ge.useAxios({
|
|
12405
12405
|
headers: (r = n.config) == null ? void 0 : r.requestHeaders
|
|
12406
12406
|
}), u = ie(!1), h = ie(!1), f = ie(""), E = D(() => n.canSubmit === !1 || n.isReadonly), b = ie(!1), p = D(() => {
|
|
12407
|
-
var
|
|
12407
|
+
var v, T;
|
|
12408
12408
|
let q = `${n.config.apiBaseUrl}${n.fetchUrl}`;
|
|
12409
|
-
return n.config.app === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((
|
|
12409
|
+
return n.config.app === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((v = n.config) == null ? void 0 : v.controlPlaneId) || "") : n.config.app === "kongManager" && (q = q.replace(/\/{workspace}/gi, (T = n.config) != null && T.workspace ? `/${n.config.workspace}` : "")), n.editId ? (q = q.replace(/{id}/gi, n.editId), q) : (q = q.replace(/\/{id}/gi, ""), q);
|
|
12410
12410
|
}), y = () => {
|
|
12411
12411
|
b.value = !b.value;
|
|
12412
12412
|
}, w = () => {
|
|
@@ -12425,21 +12425,21 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12425
12425
|
hash: "#json"
|
|
12426
12426
|
}
|
|
12427
12427
|
]);
|
|
12428
|
-
return cr(() => u.value, (
|
|
12429
|
-
i("loading",
|
|
12428
|
+
return cr(() => u.value, (v) => {
|
|
12429
|
+
i("loading", v);
|
|
12430
12430
|
}, { immediate: !0 }), Kn(async () => {
|
|
12431
12431
|
if (n.editId)
|
|
12432
12432
|
try {
|
|
12433
12433
|
h.value = !1, u.value = !0;
|
|
12434
|
-
const { data:
|
|
12435
|
-
i("fetch:success",
|
|
12436
|
-
} catch (
|
|
12437
|
-
const T = a(
|
|
12438
|
-
f.value = T.startsWith("code") ? s("baseForm.errors.edit") : T, h.value = !0, i("fetch:error",
|
|
12434
|
+
const { data: v } = await l.get(p.value);
|
|
12435
|
+
i("fetch:success", v);
|
|
12436
|
+
} catch (v) {
|
|
12437
|
+
const T = a(v);
|
|
12438
|
+
f.value = T.startsWith("code") ? s("baseForm.errors.edit") : T, h.value = !0, i("fetch:error", v);
|
|
12439
12439
|
} finally {
|
|
12440
12440
|
u.value = !1;
|
|
12441
12441
|
}
|
|
12442
|
-
}), (
|
|
12442
|
+
}), (v, T) => {
|
|
12443
12443
|
const q = ne("KSkeleton"), fe = ne("KEmptyState"), N = ne("KAlert"), _ = ne("KButton"), Y = ne("KTabs"), F = ne("KSlideout"), te = ne("KCard");
|
|
12444
12444
|
return B(), se(te, { class: "kong-ui-entity-base-form" }, {
|
|
12445
12445
|
default: x(() => [
|
|
@@ -12463,7 +12463,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12463
12463
|
onReset: Lr(g, ["prevent"]),
|
|
12464
12464
|
onSubmit: Lr(C, ["prevent"])
|
|
12465
12465
|
}, [
|
|
12466
|
-
Te(
|
|
12466
|
+
Te(v.$slots, "default", {}, void 0, !0),
|
|
12467
12467
|
e.errorMessage ? (B(), se(N, {
|
|
12468
12468
|
key: 0,
|
|
12469
12469
|
"alert-message": e.errorMessage,
|
|
@@ -12471,8 +12471,8 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12471
12471
|
"data-testid": "form-error"
|
|
12472
12472
|
}, null, 8, ["alert-message"])) : ye("", !0),
|
|
12473
12473
|
de("div", d1, [
|
|
12474
|
-
Te(
|
|
12475
|
-
e.config.
|
|
12474
|
+
Te(v.$slots, "form-actions", {}, () => [
|
|
12475
|
+
e.config.jsonYamlFormsEnabled ? (B(), U("div", f1, [
|
|
12476
12476
|
M(_, {
|
|
12477
12477
|
appearance: "tertiary",
|
|
12478
12478
|
"data-testid": "form-view-configuration",
|
|
@@ -12547,7 +12547,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12547
12547
|
});
|
|
12548
12548
|
};
|
|
12549
12549
|
}
|
|
12550
|
-
}), Ep = /* @__PURE__ */ Et(p1, [["__scopeId", "data-v-
|
|
12550
|
+
}), Ep = /* @__PURE__ */ Et(p1, [["__scopeId", "data-v-4ef70725"]]), h1 = {
|
|
12551
12551
|
key: 0,
|
|
12552
12552
|
"data-testid": "first-col"
|
|
12553
12553
|
}, y1 = /* @__PURE__ */ Be({
|
|
@@ -12621,7 +12621,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12621
12621
|
], 512);
|
|
12622
12622
|
};
|
|
12623
12623
|
}
|
|
12624
|
-
}), g1 = /* @__PURE__ */ Et(y1, [["__scopeId", "data-v-e42a20c9"]]),
|
|
12624
|
+
}), g1 = /* @__PURE__ */ Et(y1, [["__scopeId", "data-v-e42a20c9"]]), m1 = { class: "toolbar-container" }, v1 = {
|
|
12625
12625
|
key: 0,
|
|
12626
12626
|
class: "toolbar-button-container"
|
|
12627
12627
|
}, b1 = ["data-testid"], w1 = /* @__PURE__ */ Be({
|
|
@@ -12789,7 +12789,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12789
12789
|
...r.initialFetcherParams,
|
|
12790
12790
|
...T
|
|
12791
12791
|
};
|
|
12792
|
-
}),
|
|
12792
|
+
}), v = (T) => {
|
|
12793
12793
|
r.preferencesStorageKey && g(r.preferencesStorageKey, T);
|
|
12794
12794
|
};
|
|
12795
12795
|
return (T, q) => {
|
|
@@ -12829,12 +12829,12 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12829
12829
|
onKtableEmptyStateCtaClicked: b,
|
|
12830
12830
|
"onRow:click": y.value,
|
|
12831
12831
|
onSort: q[0] || (q[0] = (te) => w(te)),
|
|
12832
|
-
"onUpdate:tablePreferences":
|
|
12832
|
+
"onUpdate:tablePreferences": v
|
|
12833
12833
|
}, rr({
|
|
12834
12834
|
toolbar: x(({ state: te }) => [
|
|
12835
|
-
Rr(de("div",
|
|
12835
|
+
Rr(de("div", m1, [
|
|
12836
12836
|
Te(T.$slots, "toolbar-filter", {}, void 0, !0),
|
|
12837
|
-
T.$slots["toolbar-button"] ? (B(), U("div",
|
|
12837
|
+
T.$slots["toolbar-button"] ? (B(), U("div", v1, [
|
|
12838
12838
|
Te(T.$slots, "toolbar-button", {}, void 0, !0)
|
|
12839
12839
|
])) : ye("", !0)
|
|
12840
12840
|
], 512), [
|
|
@@ -12865,7 +12865,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12865
12865
|
}, {
|
|
12866
12866
|
icon: x(() => [
|
|
12867
12867
|
M(fe, {
|
|
12868
|
-
color: S(
|
|
12868
|
+
color: S(am),
|
|
12869
12869
|
icon: "more",
|
|
12870
12870
|
size: "16"
|
|
12871
12871
|
}, null, 8, ["color"])
|
|
@@ -12881,7 +12881,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12881
12881
|
}, [
|
|
12882
12882
|
ze(e.tableHeaders, (te, G) => ({
|
|
12883
12883
|
name: G,
|
|
12884
|
-
fn: x(({ row: K, rowKey:
|
|
12884
|
+
fn: x(({ row: K, rowKey: ve, rowValue: Ce }) => [
|
|
12885
12885
|
M(g1, {
|
|
12886
12886
|
"key-name": String(G),
|
|
12887
12887
|
"row-el": f(K)
|
|
@@ -12889,7 +12889,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
12889
12889
|
default: x(() => [
|
|
12890
12890
|
Te(T.$slots, G, {
|
|
12891
12891
|
row: K,
|
|
12892
|
-
rowKey:
|
|
12892
|
+
rowKey: ve,
|
|
12893
12893
|
rowValue: Ce
|
|
12894
12894
|
}, () => [
|
|
12895
12895
|
pe(R(Ce), 1)
|
|
@@ -13024,7 +13024,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13024
13024
|
props: {
|
|
13025
13025
|
color: {
|
|
13026
13026
|
type: String,
|
|
13027
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
13027
|
+
default: `var(--kong-ui-entity-filter-color, ${om})`
|
|
13028
13028
|
}
|
|
13029
13029
|
},
|
|
13030
13030
|
setup(e) {
|
|
@@ -13090,9 +13090,9 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13090
13090
|
n("update:modelValue", g);
|
|
13091
13091
|
}, f = (g) => `filter-${g}`, E = (g) => {
|
|
13092
13092
|
var C, k;
|
|
13093
|
-
return (((k = (C = i.config.schema) == null ? void 0 : C[g]) == null ? void 0 : k.values) ?? []).map((
|
|
13094
|
-
value:
|
|
13095
|
-
label:
|
|
13093
|
+
return (((k = (C = i.config.schema) == null ? void 0 : C[g]) == null ? void 0 : k.values) ?? []).map((v) => ({
|
|
13094
|
+
value: v,
|
|
13095
|
+
label: v
|
|
13096
13096
|
}));
|
|
13097
13097
|
}, b = (g) => {
|
|
13098
13098
|
var C, k;
|
|
@@ -13105,11 +13105,11 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13105
13105
|
}, y = () => {
|
|
13106
13106
|
s.value = {}, w(!0);
|
|
13107
13107
|
}, w = (g = !1) => {
|
|
13108
|
-
const C = Object.keys(s.value).reduce((k,
|
|
13108
|
+
const C = Object.keys(s.value).reduce((k, v) => (s.value[v] && (k[v] = `${s.value[v]}`), k), {});
|
|
13109
13109
|
g && (o.value = !1), n("update:modelValue", new URLSearchParams(C).toString());
|
|
13110
13110
|
};
|
|
13111
13111
|
return (g, C) => {
|
|
13112
|
-
const k = ne("KInput"),
|
|
13112
|
+
const k = ne("KInput"), v = ne("KButton"), T = ne("KSelect"), q = ne("KMenuItem"), fe = ne("KMenu");
|
|
13113
13113
|
return e.config.isExactMatch ? (B(), se(k, {
|
|
13114
13114
|
key: 0,
|
|
13115
13115
|
autocomplete: "off",
|
|
@@ -13124,7 +13124,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13124
13124
|
]),
|
|
13125
13125
|
_: 1
|
|
13126
13126
|
}, 8, ["model-value", "placeholder"])) : (B(), U("div", O1, [
|
|
13127
|
-
M(
|
|
13127
|
+
M(v, {
|
|
13128
13128
|
appearance: "tertiary",
|
|
13129
13129
|
"data-testid": "filter-button",
|
|
13130
13130
|
onClick: u
|
|
@@ -13184,7 +13184,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13184
13184
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
13185
13185
|
]),
|
|
13186
13186
|
de("div", M1, [
|
|
13187
|
-
M(
|
|
13187
|
+
M(v, {
|
|
13188
13188
|
appearance: "tertiary",
|
|
13189
13189
|
"data-testid": "apply-filter",
|
|
13190
13190
|
size: "small",
|
|
@@ -13195,7 +13195,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13195
13195
|
]),
|
|
13196
13196
|
_: 1
|
|
13197
13197
|
}),
|
|
13198
|
-
M(
|
|
13198
|
+
M(v, {
|
|
13199
13199
|
appearance: "tertiary",
|
|
13200
13200
|
"data-testid": "clear-filter",
|
|
13201
13201
|
size: "small",
|
|
@@ -13214,7 +13214,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13214
13214
|
]),
|
|
13215
13215
|
actionButton: x(() => [
|
|
13216
13216
|
de("div", V1, [
|
|
13217
|
-
M(
|
|
13217
|
+
M(v, {
|
|
13218
13218
|
appearance: "tertiary",
|
|
13219
13219
|
size: "small",
|
|
13220
13220
|
onClick: y
|
|
@@ -13322,7 +13322,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13322
13322
|
])
|
|
13323
13323
|
], 2));
|
|
13324
13324
|
}
|
|
13325
|
-
}), Fn = /* @__PURE__ */ Et(H1, [["__scopeId", "data-v-3565daa7"]]), { useAxios: Uo, useDeleteUrlBuilder: Tp, useErrors: jp, useExternalLinkCreator: hk, useFetchUrlBuilder: yk, useFetcher: Mp, useDebouncedFilter: gk, useStringHelpers: Vp, useHelpers: Pp, useGatewayFeatureSupported:
|
|
13325
|
+
}), Fn = /* @__PURE__ */ Et(H1, [["__scopeId", "data-v-3565daa7"]]), { useAxios: Uo, useDeleteUrlBuilder: Tp, useErrors: jp, useExternalLinkCreator: hk, useFetchUrlBuilder: yk, useFetcher: Mp, useDebouncedFilter: gk, useStringHelpers: Vp, useHelpers: Pp, useGatewayFeatureSupported: mk, useTruncationDetector: vk } = Ge, F1 = { class: "kong-ui-entities-certificates-list" }, q1 = { key: 0 }, K1 = { key: 1 }, z1 = { key: 0 }, G1 = { key: 1 }, W1 = { key: 0 }, J1 = { key: 1 }, Y1 = { key: 1 }, Z1 = { key: 1 }, Q1 = /* @__PURE__ */ Be({
|
|
13326
13326
|
__name: "CertificateList",
|
|
13327
13327
|
props: {
|
|
13328
13328
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -13400,7 +13400,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13400
13400
|
p.value = "";
|
|
13401
13401
|
}, k = () => {
|
|
13402
13402
|
u.value++;
|
|
13403
|
-
},
|
|
13403
|
+
}, v = ie(null), T = (P, be) => {
|
|
13404
13404
|
const Ne = P.id;
|
|
13405
13405
|
if (!be(Ne)) {
|
|
13406
13406
|
r("copy:error", {
|
|
@@ -13453,7 +13453,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13453
13453
|
label: n("certificates.actions.addSni"),
|
|
13454
13454
|
to: i.config.getCreateSniRoute(P)
|
|
13455
13455
|
};
|
|
13456
|
-
}, te = ie(void 0), G = ie(!1), K = ie(!1),
|
|
13456
|
+
}, te = ie(void 0), G = ie(!1), K = ie(!1), ve = ie(""), Ce = Tp(i.config, b.value), { certificateDataCache: Me, getCertificateData: xe } = jt.useCertificate(), Ee = (P) => {
|
|
13457
13457
|
te.value = P, G.value = !0;
|
|
13458
13458
|
}, De = () => {
|
|
13459
13459
|
G.value = !1;
|
|
@@ -13464,7 +13464,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13464
13464
|
try {
|
|
13465
13465
|
await l.delete(Ce(te.value.id)), K.value = !1, G.value = !1, u.value++, r("delete:success", te.value);
|
|
13466
13466
|
} catch (We) {
|
|
13467
|
-
|
|
13467
|
+
ve.value = ((Ne = (be = We.response) == null ? void 0 : be.data) == null ? void 0 : Ne.message) || We.message || n("certificates.errors.delete"), r("error", We);
|
|
13468
13468
|
} finally {
|
|
13469
13469
|
K.value = !1;
|
|
13470
13470
|
}
|
|
@@ -13473,12 +13473,12 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13473
13473
|
cr(g, (P) => {
|
|
13474
13474
|
var be, Ne, We, Dt;
|
|
13475
13475
|
if (Array.isArray((be = P == null ? void 0 : P.response) == null ? void 0 : be.data) && (le.value = P.response.data.length > 0), P.status === tr.Error) {
|
|
13476
|
-
|
|
13476
|
+
v.value = {
|
|
13477
13477
|
title: n("certificates.errors.general")
|
|
13478
|
-
}, (Dt = (We = (Ne = P.error) == null ? void 0 : Ne.response) == null ? void 0 : We.data) != null && Dt.message && (
|
|
13478
|
+
}, (Dt = (We = (Ne = P.error) == null ? void 0 : Ne.response) == null ? void 0 : We.data) != null && Dt.message && (v.value.message = P.error.response.data.message), r("error", P.error);
|
|
13479
13479
|
return;
|
|
13480
13480
|
}
|
|
13481
|
-
Me.value = {},
|
|
13481
|
+
Me.value = {}, v.value = null;
|
|
13482
13482
|
});
|
|
13483
13483
|
const ce = ie({
|
|
13484
13484
|
ctaPath: i.config.createRoute,
|
|
@@ -13497,7 +13497,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13497
13497
|
"disable-sorting": h.value,
|
|
13498
13498
|
"empty-state-options": ce.value,
|
|
13499
13499
|
"enable-entity-actions": "",
|
|
13500
|
-
"error-message":
|
|
13500
|
+
"error-message": v.value,
|
|
13501
13501
|
fetcher: S(w),
|
|
13502
13502
|
"fetcher-cache-key": u.value,
|
|
13503
13503
|
"pagination-type": "offset",
|
|
@@ -13679,8 +13679,8 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13679
13679
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
13680
13680
|
M(S(Np), {
|
|
13681
13681
|
"action-pending": K.value,
|
|
13682
|
-
"entity-type": S(
|
|
13683
|
-
error:
|
|
13682
|
+
"entity-type": S(ml).Certificate,
|
|
13683
|
+
error: ve.value,
|
|
13684
13684
|
title: S(n)("certificates.delete.title"),
|
|
13685
13685
|
visible: G.value,
|
|
13686
13686
|
onCancel: De,
|
|
@@ -13745,21 +13745,21 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13745
13745
|
certAlt: "",
|
|
13746
13746
|
keyAlt: "",
|
|
13747
13747
|
tags: ""
|
|
13748
|
-
}), b = D(() => (h.value === br.Create || JSON.stringify(f.fields) !== JSON.stringify(E)) && !!f.fields.cert && !!f.fields.key), p = (
|
|
13748
|
+
}), b = D(() => (h.value === br.Create || JSON.stringify(f.fields) !== JSON.stringify(E)) && !!f.fields.cert && !!f.fields.key), p = (v) => {
|
|
13749
13749
|
var T;
|
|
13750
|
-
f.fields.cert = (
|
|
13750
|
+
f.fields.cert = (v == null ? void 0 : v.cert) || "", f.fields.key = (v == null ? void 0 : v.key) || "", f.fields.certAlt = (v == null ? void 0 : v.cert_alt) || "", f.fields.keyAlt = (v == null ? void 0 : v.key_alt) || "", f.fields.tags = ((T = v == null ? void 0 : v.tags) == null ? void 0 : T.join(", ")) || "", Object.assign(E, f.fields);
|
|
13751
13751
|
}, y = () => {
|
|
13752
13752
|
n.push(i.config.cancelRoute);
|
|
13753
13753
|
}, w = D(() => {
|
|
13754
13754
|
var T, q;
|
|
13755
|
-
let
|
|
13756
|
-
return i.config.app === "konnect" ?
|
|
13755
|
+
let v = `${i.config.apiBaseUrl}${ki.form[i.config.app].validate}`;
|
|
13756
|
+
return i.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((T = i.config) == null ? void 0 : T.controlPlaneId) || "") : i.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (q = i.config) != null && q.workspace ? `/${i.config.workspace}` : "")), v = v.replace(/{id}/gi, i.certificateId), v;
|
|
13757
13757
|
}), g = D(() => {
|
|
13758
13758
|
var T, q;
|
|
13759
|
-
let
|
|
13760
|
-
return i.config.app === "konnect" ?
|
|
13759
|
+
let v = `${i.config.apiBaseUrl}${ki.form[i.config.app][h.value]}`;
|
|
13760
|
+
return i.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((T = i.config) == null ? void 0 : T.controlPlaneId) || "") : i.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (q = i.config) != null && q.workspace ? `/${i.config.workspace}` : "")), v = v.replace(/{id}/gi, i.certificateId), v;
|
|
13761
13761
|
}), C = async () => {
|
|
13762
|
-
var
|
|
13762
|
+
var v, T, q, fe, N, _, Y, F, te;
|
|
13763
13763
|
try {
|
|
13764
13764
|
f.isReadonly = !0;
|
|
13765
13765
|
const G = {
|
|
@@ -13767,7 +13767,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13767
13767
|
key: f.fields.key,
|
|
13768
13768
|
cert_alt: f.fields.certAlt || null,
|
|
13769
13769
|
key_alt: f.fields.keyAlt || null,
|
|
13770
|
-
tags: (T = (
|
|
13770
|
+
tags: (T = (v = f.fields.tags.split(",")) == null ? void 0 : v.map((ve) => String(ve || "").trim())) == null ? void 0 : T.filter((ve) => ve !== "")
|
|
13771
13771
|
};
|
|
13772
13772
|
let K;
|
|
13773
13773
|
await l.post(w.value, G), h.value === "create" ? K = await l.post(g.value, G) : h.value === "edit" && (K = ((q = i.config) == null ? void 0 : q.app) === "konnect" ? await l.put(g.value, G) : await l.patch(g.value, G)), f.fields.cert = ((fe = K == null ? void 0 : K.data) == null ? void 0 : fe.cert) || "", f.fields.key = ((N = K == null ? void 0 : K.data) == null ? void 0 : N.key) || "", f.fields.certAlt = ((_ = K == null ? void 0 : K.data) == null ? void 0 : _.cert_alt) || "", f.fields.keyAlt = ((Y = K == null ? void 0 : K.data) == null ? void 0 : Y.key_alt) || "", f.fields.tags = ((te = (F = K == null ? void 0 : K.data) == null ? void 0 : F.tags) == null ? void 0 : te.join(", ")) || "", Object.assign(E, f.fields), r("update", K == null ? void 0 : K.data);
|
|
@@ -13777,7 +13777,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13777
13777
|
f.isReadonly = !1;
|
|
13778
13778
|
}
|
|
13779
13779
|
};
|
|
13780
|
-
return (
|
|
13780
|
+
return (v, T) => {
|
|
13781
13781
|
const q = ne("KTextArea"), fe = ne("KInput");
|
|
13782
13782
|
return B(), U("div", X1, [
|
|
13783
13783
|
M(S(Ep), {
|
|
@@ -13789,9 +13789,9 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13789
13789
|
"form-fields": f.fields,
|
|
13790
13790
|
"is-readonly": f.isReadonly,
|
|
13791
13791
|
onCancel: y,
|
|
13792
|
-
"onFetch:error": T[5] || (T[5] = (N) =>
|
|
13792
|
+
"onFetch:error": T[5] || (T[5] = (N) => v.$emit("error", N)),
|
|
13793
13793
|
"onFetch:success": p,
|
|
13794
|
-
onLoading: T[6] || (T[6] = (N) =>
|
|
13794
|
+
onLoading: T[6] || (T[6] = (N) => v.$emit("loading", N)),
|
|
13795
13795
|
onSubmit: C
|
|
13796
13796
|
}, {
|
|
13797
13797
|
default: x(() => [
|
|
@@ -13975,13 +13975,13 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
13975
13975
|
var k;
|
|
13976
13976
|
return ((k = E.value) == null ? void 0 : k.schemaIssuer) || "";
|
|
13977
13977
|
}), p = D(() => {
|
|
13978
|
-
var k,
|
|
13979
|
-
return (k = E.value) != null && k.schemaExpiry ? s((
|
|
13978
|
+
var k, v;
|
|
13979
|
+
return (k = E.value) != null && k.schemaExpiry ? s((v = E.value) == null ? void 0 : v.schemaExpiry) : "";
|
|
13980
13980
|
}), y = D(() => {
|
|
13981
13981
|
var k;
|
|
13982
13982
|
return ((k = E.value) == null ? void 0 : k.schemaKeyUsages) || [];
|
|
13983
|
-
}), w = (k,
|
|
13984
|
-
const T = l("rowValue",
|
|
13983
|
+
}), w = (k, v) => {
|
|
13984
|
+
const T = l("rowValue", v);
|
|
13985
13985
|
if (k === "expiry")
|
|
13986
13986
|
return p.value;
|
|
13987
13987
|
if (k === "key_usages")
|
|
@@ -14032,7 +14032,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
14032
14032
|
tooltip: o("ca-certificates.form.fields.tags.tooltip")
|
|
14033
14033
|
}
|
|
14034
14034
|
});
|
|
14035
|
-
return (k,
|
|
14035
|
+
return (k, v) => {
|
|
14036
14036
|
const T = ne("KCodeBlock"), q = ne("KLabel"), fe = ne("KBadge");
|
|
14037
14037
|
return B(), U("div", tb, [
|
|
14038
14038
|
M(S(Bp), {
|
|
@@ -14041,10 +14041,10 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
14041
14041
|
"config-schema": C.value,
|
|
14042
14042
|
"fetch-url": h.value,
|
|
14043
14043
|
"hide-title": e.hideTitle,
|
|
14044
|
-
"onCopy:success":
|
|
14045
|
-
"onFetch:error":
|
|
14044
|
+
"onCopy:success": v[0] || (v[0] = (N) => k.$emit("copy:success", N)),
|
|
14045
|
+
"onFetch:error": v[1] || (v[1] = (N) => k.$emit("fetch:error", N)),
|
|
14046
14046
|
"onFetch:success": g,
|
|
14047
|
-
onLoading:
|
|
14047
|
+
onLoading: v[2] || (v[2] = (N) => k.$emit("loading", N))
|
|
14048
14048
|
}, {
|
|
14049
14049
|
cert: x((N) => [
|
|
14050
14050
|
S(l)("rowValue", N) ? (B(), se(T, {
|
|
@@ -14171,7 +14171,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
14171
14171
|
p.value = "";
|
|
14172
14172
|
}, k = () => {
|
|
14173
14173
|
u.value++;
|
|
14174
|
-
},
|
|
14174
|
+
}, v = ie(null), T = (ce, Oe) => {
|
|
14175
14175
|
const P = ce.id;
|
|
14176
14176
|
if (!Oe(P)) {
|
|
14177
14177
|
r("copy:error", {
|
|
@@ -14208,7 +14208,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
14208
14208
|
}), _ = (ce) => ({
|
|
14209
14209
|
label: n("ca-certificates.actions.edit"),
|
|
14210
14210
|
to: i.config.getEditRoute(ce)
|
|
14211
|
-
}), Y = ie(void 0), F = ie(!1), te = ie(!1), G = ie(""), K = Tp(i.config, b.value), { certificateDataCache:
|
|
14211
|
+
}), Y = ie(void 0), F = ie(!1), te = ie(!1), G = ie(""), K = Tp(i.config, b.value), { certificateDataCache: ve, getCertificateData: Ce } = jt.useCertificate(), Me = (ce) => {
|
|
14212
14212
|
Y.value = ce, F.value = !0;
|
|
14213
14213
|
}, xe = () => {
|
|
14214
14214
|
F.value = !1;
|
|
@@ -14228,12 +14228,12 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
14228
14228
|
cr(g, (ce) => {
|
|
14229
14229
|
var Oe, P, be, Ne;
|
|
14230
14230
|
if (Array.isArray((Oe = ce == null ? void 0 : ce.response) == null ? void 0 : Oe.data) && (De.value = ce.response.data.length > 0), ce.status === tr.Error) {
|
|
14231
|
-
|
|
14231
|
+
v.value = {
|
|
14232
14232
|
title: n("ca-certificates.errors.general")
|
|
14233
|
-
}, (Ne = (be = (P = ce.error) == null ? void 0 : P.response) == null ? void 0 : be.data) != null && Ne.message && (
|
|
14233
|
+
}, (Ne = (be = (P = ce.error) == null ? void 0 : P.response) == null ? void 0 : be.data) != null && Ne.message && (v.value.message = ce.error.response.data.message), r("error", ce.error);
|
|
14234
14234
|
return;
|
|
14235
14235
|
}
|
|
14236
|
-
|
|
14236
|
+
ve.value = {}, v.value = null;
|
|
14237
14237
|
});
|
|
14238
14238
|
const er = ie({
|
|
14239
14239
|
ctaPath: i.config.createRoute,
|
|
@@ -14252,7 +14252,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
14252
14252
|
"disable-sorting": h.value,
|
|
14253
14253
|
"empty-state-options": er.value,
|
|
14254
14254
|
"enable-entity-actions": "",
|
|
14255
|
-
"error-message":
|
|
14255
|
+
"error-message": v.value,
|
|
14256
14256
|
fetcher: S(w),
|
|
14257
14257
|
"fetcher-cache-key": u.value,
|
|
14258
14258
|
"pagination-type": "offset",
|
|
@@ -14407,7 +14407,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
14407
14407
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
14408
14408
|
M(S(Np), {
|
|
14409
14409
|
"action-pending": te.value,
|
|
14410
|
-
"entity-type": S(
|
|
14410
|
+
"entity-type": S(ml).CACertificate,
|
|
14411
14411
|
error: G.value,
|
|
14412
14412
|
title: S(n)("ca-certificates.delete.title"),
|
|
14413
14413
|
visible: F.value,
|
|
@@ -14465,26 +14465,26 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
14465
14465
|
certDigest: "",
|
|
14466
14466
|
tags: ""
|
|
14467
14467
|
}), E = D(() => (u.value === br.Create || JSON.stringify(h.fields) !== JSON.stringify(f)) && !!h.fields.cert), b = (k) => {
|
|
14468
|
-
var
|
|
14469
|
-
h.fields.cert = (k == null ? void 0 : k.cert) || "", h.fields.certDigest = (k == null ? void 0 : k.cert_digest) || "", h.fields.tags = ((
|
|
14468
|
+
var v;
|
|
14469
|
+
h.fields.cert = (k == null ? void 0 : k.cert) || "", h.fields.certDigest = (k == null ? void 0 : k.cert_digest) || "", h.fields.tags = ((v = k == null ? void 0 : k.tags) == null ? void 0 : v.join(", ")) || "", Object.assign(f, h.fields);
|
|
14470
14470
|
}, p = () => {
|
|
14471
14471
|
n.push(i.config.cancelRoute);
|
|
14472
14472
|
}, y = D(() => {
|
|
14473
|
-
var
|
|
14473
|
+
var v, T;
|
|
14474
14474
|
let k = `${i.config.apiBaseUrl}${Ai.form[i.config.app].validate}`;
|
|
14475
|
-
return i.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((
|
|
14475
|
+
return i.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((v = i.config) == null ? void 0 : v.controlPlaneId) || "") : i.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (T = i.config) != null && T.workspace ? `/${i.config.workspace}` : "")), k = k.replace(/{id}/gi, i.certificateId), k;
|
|
14476
14476
|
}), w = D(() => {
|
|
14477
|
-
var
|
|
14477
|
+
var v, T;
|
|
14478
14478
|
let k = `${i.config.apiBaseUrl}${Ai.form[i.config.app][u.value]}`;
|
|
14479
|
-
return i.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((
|
|
14479
|
+
return i.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((v = i.config) == null ? void 0 : v.controlPlaneId) || "") : i.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (T = i.config) != null && T.workspace ? `/${i.config.workspace}` : "")), k = k.replace(/{id}/gi, i.certificateId), k;
|
|
14480
14480
|
}), g = async () => {
|
|
14481
|
-
var k,
|
|
14481
|
+
var k, v, T, q, fe, N, _;
|
|
14482
14482
|
try {
|
|
14483
14483
|
h.isReadonly = !0;
|
|
14484
14484
|
const Y = {
|
|
14485
14485
|
cert: h.fields.cert,
|
|
14486
14486
|
cert_digest: h.fields.certDigest || null,
|
|
14487
|
-
tags: (
|
|
14487
|
+
tags: (v = (k = h.fields.tags.split(",")) == null ? void 0 : k.map((te) => String(te || "").trim())) == null ? void 0 : v.filter((te) => te !== "")
|
|
14488
14488
|
};
|
|
14489
14489
|
let F;
|
|
14490
14490
|
await a.post(y.value, Y), u.value === "create" ? F = await a.post(w.value, Y) : u.value === "edit" && (F = ((T = i.config) == null ? void 0 : T.app) === "konnect" ? await a.put(w.value, Y) : await a.patch(w.value, Y)), h.fields.cert = ((q = F == null ? void 0 : F.data) == null ? void 0 : q.cert) || "", h.fields.certDigest = ((fe = F == null ? void 0 : F.data) == null ? void 0 : fe.cert_digest) || "", h.fields.tags = ((_ = (N = F == null ? void 0 : F.data) == null ? void 0 : N.tags) == null ? void 0 : _.join(", ")) || "", Object.assign(f, h.fields), r("update", F == null ? void 0 : F.data);
|
|
@@ -14494,7 +14494,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
14494
14494
|
h.isReadonly = !1;
|
|
14495
14495
|
}
|
|
14496
14496
|
};
|
|
14497
|
-
return (k,
|
|
14497
|
+
return (k, v) => {
|
|
14498
14498
|
const T = ne("KTextArea"), q = ne("KInput");
|
|
14499
14499
|
return B(), U("div", db, [
|
|
14500
14500
|
M(S(Ep), {
|
|
@@ -14506,9 +14506,9 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
14506
14506
|
"form-fields": h.fields,
|
|
14507
14507
|
"is-readonly": h.isReadonly,
|
|
14508
14508
|
onCancel: p,
|
|
14509
|
-
"onFetch:error":
|
|
14509
|
+
"onFetch:error": v[3] || (v[3] = (fe) => k.$emit("error", fe)),
|
|
14510
14510
|
"onFetch:success": b,
|
|
14511
|
-
onLoading:
|
|
14511
|
+
onLoading: v[4] || (v[4] = (fe) => k.$emit("loading", fe)),
|
|
14512
14512
|
onSubmit: g
|
|
14513
14513
|
}, {
|
|
14514
14514
|
default: x(() => [
|
|
@@ -14519,7 +14519,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
14519
14519
|
default: x(() => [
|
|
14520
14520
|
M(T, {
|
|
14521
14521
|
modelValue: h.fields.cert,
|
|
14522
|
-
"onUpdate:modelValue":
|
|
14522
|
+
"onUpdate:modelValue": v[0] || (v[0] = (fe) => h.fields.cert = fe),
|
|
14523
14523
|
modelModifiers: { trim: !0 },
|
|
14524
14524
|
"character-limit": !1,
|
|
14525
14525
|
class: "certificate-form-textarea",
|
|
@@ -14531,7 +14531,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
14531
14531
|
}, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
|
|
14532
14532
|
M(q, {
|
|
14533
14533
|
modelValue: h.fields.certDigest,
|
|
14534
|
-
"onUpdate:modelValue":
|
|
14534
|
+
"onUpdate:modelValue": v[1] || (v[1] = (fe) => h.fields.certDigest = fe),
|
|
14535
14535
|
modelModifiers: { trim: !0 },
|
|
14536
14536
|
autocomplete: "off",
|
|
14537
14537
|
"data-testid": "ca-certificate-form-cert-digest",
|
|
@@ -14549,7 +14549,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
14549
14549
|
default: x(() => [
|
|
14550
14550
|
M(q, {
|
|
14551
14551
|
modelValue: h.fields.tags,
|
|
14552
|
-
"onUpdate:modelValue":
|
|
14552
|
+
"onUpdate:modelValue": v[2] || (v[2] = (fe) => h.fields.tags = fe),
|
|
14553
14553
|
modelModifiers: { trim: !0 },
|
|
14554
14554
|
autocomplete: "off",
|
|
14555
14555
|
"data-testid": "ca-certificate-form-tags",
|
|
@@ -14661,7 +14661,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
14661
14661
|
if (N === "expiry")
|
|
14662
14662
|
return w.value;
|
|
14663
14663
|
if (N === "key_usages")
|
|
14664
|
-
return
|
|
14664
|
+
return v.value;
|
|
14665
14665
|
if (N === "san_names")
|
|
14666
14666
|
return C.value;
|
|
14667
14667
|
if (Y)
|
|
@@ -14681,7 +14681,7 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
14681
14681
|
}), k = D(() => {
|
|
14682
14682
|
var N;
|
|
14683
14683
|
return ((N = y.value) == null ? void 0 : N.schemaSubject) || "";
|
|
14684
|
-
}),
|
|
14684
|
+
}), v = D(() => {
|
|
14685
14685
|
var N;
|
|
14686
14686
|
return ((N = y.value) == null ? void 0 : N.schemaKeyUsages) || [];
|
|
14687
14687
|
}), T = D(() => {
|
|
@@ -14793,8 +14793,8 @@ const q0 = { class: "yaml-config" }, Ip = /* @__PURE__ */ Be({
|
|
|
14793
14793
|
})
|
|
14794
14794
|
]),
|
|
14795
14795
|
key_usages: x(() => [
|
|
14796
|
-
|
|
14797
|
-
(B(!0), U(Je, null, ze(
|
|
14796
|
+
v.value.length ? ye("", !0) : (B(), U("div", hb, R("–"))),
|
|
14797
|
+
(B(!0), U(Je, null, ze(v.value, (G, K) => (B(), se(te, {
|
|
14798
14798
|
key: `key_usages-badge-tag-${K}`,
|
|
14799
14799
|
class: "config-badge",
|
|
14800
14800
|
"data-testid": `key_usages-badge-tag-${K}`,
|