@authhero/saml 0.4.7 → 0.5.0
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/LICENSE +661 -21
- package/dist/core.cjs +4 -4
- package/dist/core.mjs +1661 -622
- package/dist/local-signer.mjs +15 -15
- package/dist/saml.cjs +4 -4
- package/dist/saml.mjs +1666 -627
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +3 -2
package/dist/core.mjs
CHANGED
|
@@ -307,11 +307,11 @@ function ie(e, t) {
|
|
|
307
307
|
}
|
|
308
308
|
n += e[t];
|
|
309
309
|
}
|
|
310
|
-
return r === ""
|
|
310
|
+
return r === "" ? {
|
|
311
311
|
value: n,
|
|
312
312
|
index: t,
|
|
313
313
|
tagClosed: i
|
|
314
|
-
};
|
|
314
|
+
} : !1;
|
|
315
315
|
}
|
|
316
316
|
var ae = /* @__PURE__ */ RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?", "g");
|
|
317
317
|
function oe(e, t) {
|
|
@@ -370,8 +370,932 @@ function b(e) {
|
|
|
370
370
|
return e.startIndex + e[1].length;
|
|
371
371
|
}
|
|
372
372
|
//#endregion
|
|
373
|
-
//#region ../../node_modules/.pnpm/@nodable+entities@
|
|
373
|
+
//#region ../../node_modules/.pnpm/@nodable+entities@2.2.0/node_modules/@nodable/entities/src/entities.js
|
|
374
374
|
var de = {
|
|
375
|
+
amp: "&",
|
|
376
|
+
AMP: "&",
|
|
377
|
+
lt: "<",
|
|
378
|
+
LT: "<",
|
|
379
|
+
gt: ">",
|
|
380
|
+
GT: ">",
|
|
381
|
+
quot: "\"",
|
|
382
|
+
QUOT: "\"",
|
|
383
|
+
apos: "'",
|
|
384
|
+
lsquo: "‘",
|
|
385
|
+
rsquo: "’",
|
|
386
|
+
ldquo: "“",
|
|
387
|
+
rdquo: "”",
|
|
388
|
+
lsquor: "‚",
|
|
389
|
+
rsquor: "’",
|
|
390
|
+
ldquor: "„",
|
|
391
|
+
bdquo: "„",
|
|
392
|
+
comma: ",",
|
|
393
|
+
period: ".",
|
|
394
|
+
colon: ":",
|
|
395
|
+
semi: ";",
|
|
396
|
+
excl: "!",
|
|
397
|
+
quest: "?",
|
|
398
|
+
num: "#",
|
|
399
|
+
dollar: "$",
|
|
400
|
+
percent: "%",
|
|
401
|
+
ast: "*",
|
|
402
|
+
commat: "@",
|
|
403
|
+
lowbar: "_",
|
|
404
|
+
verbar: "|",
|
|
405
|
+
vert: "|",
|
|
406
|
+
sol: "/",
|
|
407
|
+
bsol: "\\",
|
|
408
|
+
lbrace: "{",
|
|
409
|
+
rbrace: "}",
|
|
410
|
+
lbrack: "[",
|
|
411
|
+
rbrack: "]",
|
|
412
|
+
lpar: "(",
|
|
413
|
+
rpar: ")",
|
|
414
|
+
nbsp: "\xA0",
|
|
415
|
+
iexcl: "¡",
|
|
416
|
+
cent: "¢",
|
|
417
|
+
pound: "£",
|
|
418
|
+
curren: "¤",
|
|
419
|
+
yen: "¥",
|
|
420
|
+
brvbar: "¦",
|
|
421
|
+
sect: "§",
|
|
422
|
+
uml: "¨",
|
|
423
|
+
copy: "©",
|
|
424
|
+
COPY: "©",
|
|
425
|
+
ordf: "ª",
|
|
426
|
+
laquo: "«",
|
|
427
|
+
not: "¬",
|
|
428
|
+
shy: "",
|
|
429
|
+
reg: "®",
|
|
430
|
+
REG: "®",
|
|
431
|
+
macr: "¯",
|
|
432
|
+
deg: "°",
|
|
433
|
+
plusmn: "±",
|
|
434
|
+
sup2: "²",
|
|
435
|
+
sup3: "³",
|
|
436
|
+
acute: "´",
|
|
437
|
+
micro: "µ",
|
|
438
|
+
para: "¶",
|
|
439
|
+
middot: "·",
|
|
440
|
+
cedil: "¸",
|
|
441
|
+
sup1: "¹",
|
|
442
|
+
ordm: "º",
|
|
443
|
+
raquo: "»",
|
|
444
|
+
frac14: "¼",
|
|
445
|
+
frac12: "½",
|
|
446
|
+
half: "½",
|
|
447
|
+
frac34: "¾",
|
|
448
|
+
iquest: "¿",
|
|
449
|
+
times: "×",
|
|
450
|
+
div: "÷",
|
|
451
|
+
divide: "÷"
|
|
452
|
+
}, fe = {
|
|
453
|
+
Agrave: "À",
|
|
454
|
+
agrave: "à",
|
|
455
|
+
Aacute: "Á",
|
|
456
|
+
aacute: "á",
|
|
457
|
+
Acirc: "Â",
|
|
458
|
+
acirc: "â",
|
|
459
|
+
Atilde: "Ã",
|
|
460
|
+
atilde: "ã",
|
|
461
|
+
Auml: "Ä",
|
|
462
|
+
auml: "ä",
|
|
463
|
+
Aring: "Å",
|
|
464
|
+
aring: "å",
|
|
465
|
+
AElig: "Æ",
|
|
466
|
+
aelig: "æ",
|
|
467
|
+
Ccedil: "Ç",
|
|
468
|
+
ccedil: "ç",
|
|
469
|
+
Egrave: "È",
|
|
470
|
+
egrave: "è",
|
|
471
|
+
Eacute: "É",
|
|
472
|
+
eacute: "é",
|
|
473
|
+
Ecirc: "Ê",
|
|
474
|
+
ecirc: "ê",
|
|
475
|
+
Euml: "Ë",
|
|
476
|
+
euml: "ë",
|
|
477
|
+
Igrave: "Ì",
|
|
478
|
+
igrave: "ì",
|
|
479
|
+
Iacute: "Í",
|
|
480
|
+
iacute: "í",
|
|
481
|
+
Icirc: "Î",
|
|
482
|
+
icirc: "î",
|
|
483
|
+
Iuml: "Ï",
|
|
484
|
+
iuml: "ï",
|
|
485
|
+
ETH: "Ð",
|
|
486
|
+
eth: "ð",
|
|
487
|
+
Ntilde: "Ñ",
|
|
488
|
+
ntilde: "ñ",
|
|
489
|
+
Ograve: "Ò",
|
|
490
|
+
ograve: "ò",
|
|
491
|
+
Oacute: "Ó",
|
|
492
|
+
oacute: "ó",
|
|
493
|
+
Ocirc: "Ô",
|
|
494
|
+
ocirc: "ô",
|
|
495
|
+
Otilde: "Õ",
|
|
496
|
+
otilde: "õ",
|
|
497
|
+
Ouml: "Ö",
|
|
498
|
+
ouml: "ö",
|
|
499
|
+
Oslash: "Ø",
|
|
500
|
+
oslash: "ø",
|
|
501
|
+
Ugrave: "Ù",
|
|
502
|
+
ugrave: "ù",
|
|
503
|
+
Uacute: "Ú",
|
|
504
|
+
uacute: "ú",
|
|
505
|
+
Ucirc: "Û",
|
|
506
|
+
ucirc: "û",
|
|
507
|
+
Uuml: "Ü",
|
|
508
|
+
uuml: "ü",
|
|
509
|
+
Yacute: "Ý",
|
|
510
|
+
yacute: "ý",
|
|
511
|
+
THORN: "Þ",
|
|
512
|
+
thorn: "þ",
|
|
513
|
+
szlig: "ß",
|
|
514
|
+
yuml: "ÿ",
|
|
515
|
+
Yuml: "Ÿ"
|
|
516
|
+
}, pe = {
|
|
517
|
+
Amacr: "Ā",
|
|
518
|
+
amacr: "ā",
|
|
519
|
+
Abreve: "Ă",
|
|
520
|
+
abreve: "ă",
|
|
521
|
+
Aogon: "Ą",
|
|
522
|
+
aogon: "ą",
|
|
523
|
+
Cacute: "Ć",
|
|
524
|
+
cacute: "ć",
|
|
525
|
+
Ccirc: "Ĉ",
|
|
526
|
+
ccirc: "ĉ",
|
|
527
|
+
Cdot: "Ċ",
|
|
528
|
+
cdot: "ċ",
|
|
529
|
+
Ccaron: "Č",
|
|
530
|
+
ccaron: "č",
|
|
531
|
+
Dcaron: "Ď",
|
|
532
|
+
dcaron: "ď",
|
|
533
|
+
Dstrok: "Đ",
|
|
534
|
+
dstrok: "đ",
|
|
535
|
+
Emacr: "Ē",
|
|
536
|
+
emacr: "ē",
|
|
537
|
+
Ecaron: "Ě",
|
|
538
|
+
ecaron: "ě",
|
|
539
|
+
Edot: "Ė",
|
|
540
|
+
edot: "ė",
|
|
541
|
+
Eogon: "Ę",
|
|
542
|
+
eogon: "ę",
|
|
543
|
+
Gcirc: "Ĝ",
|
|
544
|
+
gcirc: "ĝ",
|
|
545
|
+
Gbreve: "Ğ",
|
|
546
|
+
gbreve: "ğ",
|
|
547
|
+
Gdot: "Ġ",
|
|
548
|
+
gdot: "ġ",
|
|
549
|
+
Gcedil: "Ģ",
|
|
550
|
+
Hcirc: "Ĥ",
|
|
551
|
+
hcirc: "ĥ",
|
|
552
|
+
Hstrok: "Ħ",
|
|
553
|
+
hstrok: "ħ",
|
|
554
|
+
Itilde: "Ĩ",
|
|
555
|
+
itilde: "ĩ",
|
|
556
|
+
Imacr: "Ī",
|
|
557
|
+
imacr: "ī",
|
|
558
|
+
Iogon: "Į",
|
|
559
|
+
iogon: "į",
|
|
560
|
+
Idot: "İ",
|
|
561
|
+
IJlig: "IJ",
|
|
562
|
+
ijlig: "ij",
|
|
563
|
+
Jcirc: "Ĵ",
|
|
564
|
+
jcirc: "ĵ",
|
|
565
|
+
Kcedil: "Ķ",
|
|
566
|
+
kcedil: "ķ",
|
|
567
|
+
kgreen: "ĸ",
|
|
568
|
+
Lacute: "Ĺ",
|
|
569
|
+
lacute: "ĺ",
|
|
570
|
+
Lcedil: "Ļ",
|
|
571
|
+
lcedil: "ļ",
|
|
572
|
+
Lcaron: "Ľ",
|
|
573
|
+
lcaron: "ľ",
|
|
574
|
+
Lmidot: "Ŀ",
|
|
575
|
+
lmidot: "ŀ",
|
|
576
|
+
Lstrok: "Ł",
|
|
577
|
+
lstrok: "ł",
|
|
578
|
+
Nacute: "Ń",
|
|
579
|
+
nacute: "ń",
|
|
580
|
+
Ncaron: "Ň",
|
|
581
|
+
ncaron: "ň",
|
|
582
|
+
Ncedil: "Ņ",
|
|
583
|
+
ncedil: "ņ",
|
|
584
|
+
ENG: "Ŋ",
|
|
585
|
+
eng: "ŋ",
|
|
586
|
+
Omacr: "Ō",
|
|
587
|
+
omacr: "ō",
|
|
588
|
+
Odblac: "Ő",
|
|
589
|
+
odblac: "ő",
|
|
590
|
+
OElig: "Œ",
|
|
591
|
+
oelig: "œ",
|
|
592
|
+
Racute: "Ŕ",
|
|
593
|
+
racute: "ŕ",
|
|
594
|
+
Rcaron: "Ř",
|
|
595
|
+
rcaron: "ř",
|
|
596
|
+
Rcedil: "Ŗ",
|
|
597
|
+
rcedil: "ŗ",
|
|
598
|
+
Sacute: "Ś",
|
|
599
|
+
sacute: "ś",
|
|
600
|
+
Scirc: "Ŝ",
|
|
601
|
+
scirc: "ŝ",
|
|
602
|
+
Scedil: "Ş",
|
|
603
|
+
scedil: "ş",
|
|
604
|
+
Scaron: "Š",
|
|
605
|
+
scaron: "š",
|
|
606
|
+
Tcedil: "Ţ",
|
|
607
|
+
tcedil: "ţ",
|
|
608
|
+
Tcaron: "Ť",
|
|
609
|
+
tcaron: "ť",
|
|
610
|
+
Tstrok: "Ŧ",
|
|
611
|
+
tstrok: "ŧ",
|
|
612
|
+
Utilde: "Ũ",
|
|
613
|
+
utilde: "ũ",
|
|
614
|
+
Umacr: "Ū",
|
|
615
|
+
umacr: "ū",
|
|
616
|
+
Ubreve: "Ŭ",
|
|
617
|
+
ubreve: "ŭ",
|
|
618
|
+
Uring: "Ů",
|
|
619
|
+
uring: "ů",
|
|
620
|
+
Udblac: "Ű",
|
|
621
|
+
udblac: "ű",
|
|
622
|
+
Uogon: "Ų",
|
|
623
|
+
uogon: "ų",
|
|
624
|
+
Wcirc: "Ŵ",
|
|
625
|
+
wcirc: "ŵ",
|
|
626
|
+
Ycirc: "Ŷ",
|
|
627
|
+
ycirc: "ŷ",
|
|
628
|
+
Zacute: "Ź",
|
|
629
|
+
zacute: "ź",
|
|
630
|
+
Zdot: "Ż",
|
|
631
|
+
zdot: "ż",
|
|
632
|
+
Zcaron: "Ž",
|
|
633
|
+
zcaron: "ž"
|
|
634
|
+
}, me = {
|
|
635
|
+
Alpha: "Α",
|
|
636
|
+
alpha: "α",
|
|
637
|
+
Beta: "Β",
|
|
638
|
+
beta: "β",
|
|
639
|
+
Gamma: "Γ",
|
|
640
|
+
gamma: "γ",
|
|
641
|
+
Delta: "Δ",
|
|
642
|
+
delta: "δ",
|
|
643
|
+
Epsilon: "Ε",
|
|
644
|
+
epsilon: "ε",
|
|
645
|
+
epsiv: "ϵ",
|
|
646
|
+
varepsilon: "ϵ",
|
|
647
|
+
Zeta: "Ζ",
|
|
648
|
+
zeta: "ζ",
|
|
649
|
+
Eta: "Η",
|
|
650
|
+
eta: "η",
|
|
651
|
+
Theta: "Θ",
|
|
652
|
+
theta: "θ",
|
|
653
|
+
thetasym: "ϑ",
|
|
654
|
+
vartheta: "ϑ",
|
|
655
|
+
Iota: "Ι",
|
|
656
|
+
iota: "ι",
|
|
657
|
+
Kappa: "Κ",
|
|
658
|
+
kappa: "κ",
|
|
659
|
+
kappav: "ϰ",
|
|
660
|
+
varkappa: "ϰ",
|
|
661
|
+
Lambda: "Λ",
|
|
662
|
+
lambda: "λ",
|
|
663
|
+
Mu: "Μ",
|
|
664
|
+
mu: "μ",
|
|
665
|
+
Nu: "Ν",
|
|
666
|
+
nu: "ν",
|
|
667
|
+
Xi: "Ξ",
|
|
668
|
+
xi: "ξ",
|
|
669
|
+
Omicron: "Ο",
|
|
670
|
+
omicron: "ο",
|
|
671
|
+
Pi: "Π",
|
|
672
|
+
pi: "π",
|
|
673
|
+
piv: "ϖ",
|
|
674
|
+
varpi: "ϖ",
|
|
675
|
+
Rho: "Ρ",
|
|
676
|
+
rho: "ρ",
|
|
677
|
+
rhov: "ϱ",
|
|
678
|
+
varrho: "ϱ",
|
|
679
|
+
Sigma: "Σ",
|
|
680
|
+
sigma: "σ",
|
|
681
|
+
sigmaf: "ς",
|
|
682
|
+
sigmav: "ς",
|
|
683
|
+
varsigma: "ς",
|
|
684
|
+
Tau: "Τ",
|
|
685
|
+
tau: "τ",
|
|
686
|
+
Upsilon: "Υ",
|
|
687
|
+
upsilon: "υ",
|
|
688
|
+
upsi: "υ",
|
|
689
|
+
Upsi: "ϒ",
|
|
690
|
+
upsih: "ϒ",
|
|
691
|
+
Phi: "Φ",
|
|
692
|
+
phi: "φ",
|
|
693
|
+
phiv: "ϕ",
|
|
694
|
+
varphi: "ϕ",
|
|
695
|
+
Chi: "Χ",
|
|
696
|
+
chi: "χ",
|
|
697
|
+
Psi: "Ψ",
|
|
698
|
+
psi: "ψ",
|
|
699
|
+
Omega: "Ω",
|
|
700
|
+
omega: "ω",
|
|
701
|
+
ohm: "Ω",
|
|
702
|
+
Gammad: "Ϝ",
|
|
703
|
+
gammad: "ϝ",
|
|
704
|
+
digamma: "ϝ"
|
|
705
|
+
}, he = {
|
|
706
|
+
Afr: "𝔄",
|
|
707
|
+
afr: "𝔞",
|
|
708
|
+
Acy: "А",
|
|
709
|
+
acy: "а",
|
|
710
|
+
Bcy: "Б",
|
|
711
|
+
bcy: "б",
|
|
712
|
+
Vcy: "В",
|
|
713
|
+
vcy: "в",
|
|
714
|
+
Gcy: "Г",
|
|
715
|
+
gcy: "г",
|
|
716
|
+
Dcy: "Д",
|
|
717
|
+
dcy: "д",
|
|
718
|
+
IEcy: "Е",
|
|
719
|
+
iecy: "е",
|
|
720
|
+
IOcy: "Ё",
|
|
721
|
+
iocy: "ё",
|
|
722
|
+
ZHcy: "Ж",
|
|
723
|
+
zhcy: "ж",
|
|
724
|
+
Zcy: "З",
|
|
725
|
+
zcy: "з",
|
|
726
|
+
Icy: "И",
|
|
727
|
+
icy: "и",
|
|
728
|
+
Jcy: "Й",
|
|
729
|
+
jcy: "й",
|
|
730
|
+
Kcy: "К",
|
|
731
|
+
kcy: "к",
|
|
732
|
+
Lcy: "Л",
|
|
733
|
+
lcy: "л",
|
|
734
|
+
Mcy: "М",
|
|
735
|
+
mcy: "м",
|
|
736
|
+
Ncy: "Н",
|
|
737
|
+
ncy: "н",
|
|
738
|
+
Ocy: "О",
|
|
739
|
+
ocy: "о",
|
|
740
|
+
Pcy: "П",
|
|
741
|
+
pcy: "п",
|
|
742
|
+
Rcy: "Р",
|
|
743
|
+
rcy: "р",
|
|
744
|
+
Scy: "С",
|
|
745
|
+
scy: "с",
|
|
746
|
+
Tcy: "Т",
|
|
747
|
+
tcy: "т",
|
|
748
|
+
Ucy: "У",
|
|
749
|
+
ucy: "у",
|
|
750
|
+
Fcy: "Ф",
|
|
751
|
+
fcy: "ф",
|
|
752
|
+
KHcy: "Х",
|
|
753
|
+
khcy: "х",
|
|
754
|
+
TScy: "Ц",
|
|
755
|
+
tscy: "ц",
|
|
756
|
+
CHcy: "Ч",
|
|
757
|
+
chcy: "ч",
|
|
758
|
+
SHcy: "Ш",
|
|
759
|
+
shcy: "ш",
|
|
760
|
+
SHCHcy: "Щ",
|
|
761
|
+
shchcy: "щ",
|
|
762
|
+
HARDcy: "Ъ",
|
|
763
|
+
hardcy: "ъ",
|
|
764
|
+
Ycy: "Ы",
|
|
765
|
+
ycy: "ы",
|
|
766
|
+
SOFTcy: "Ь",
|
|
767
|
+
softcy: "ь",
|
|
768
|
+
Ecy: "Э",
|
|
769
|
+
ecy: "э",
|
|
770
|
+
YUcy: "Ю",
|
|
771
|
+
yucy: "ю",
|
|
772
|
+
YAcy: "Я",
|
|
773
|
+
yacy: "я",
|
|
774
|
+
DJcy: "Ђ",
|
|
775
|
+
djcy: "ђ",
|
|
776
|
+
GJcy: "Ѓ",
|
|
777
|
+
gjcy: "ѓ",
|
|
778
|
+
Jukcy: "Є",
|
|
779
|
+
jukcy: "є",
|
|
780
|
+
DScy: "Ѕ",
|
|
781
|
+
dscy: "ѕ",
|
|
782
|
+
Iukcy: "І",
|
|
783
|
+
iukcy: "і",
|
|
784
|
+
YIcy: "Ї",
|
|
785
|
+
yicy: "ї",
|
|
786
|
+
Jsercy: "Ј",
|
|
787
|
+
jsercy: "ј",
|
|
788
|
+
LJcy: "Љ",
|
|
789
|
+
ljcy: "љ",
|
|
790
|
+
NJcy: "Њ",
|
|
791
|
+
njcy: "њ",
|
|
792
|
+
TSHcy: "Ћ",
|
|
793
|
+
tshcy: "ћ",
|
|
794
|
+
KJcy: "Ќ",
|
|
795
|
+
kjcy: "ќ",
|
|
796
|
+
Ubrcy: "Ў",
|
|
797
|
+
ubrcy: "ў",
|
|
798
|
+
DZcy: "Џ",
|
|
799
|
+
dzcy: "џ"
|
|
800
|
+
}, ge = {
|
|
801
|
+
plus: "+",
|
|
802
|
+
pm: "±",
|
|
803
|
+
times: "×",
|
|
804
|
+
div: "÷",
|
|
805
|
+
divide: "÷",
|
|
806
|
+
sdot: "⋅",
|
|
807
|
+
star: "☆",
|
|
808
|
+
starf: "★",
|
|
809
|
+
bigstar: "★",
|
|
810
|
+
lowast: "∗",
|
|
811
|
+
ast: "*",
|
|
812
|
+
midast: "*",
|
|
813
|
+
compfn: "∘",
|
|
814
|
+
smallcircle: "∘",
|
|
815
|
+
bullet: "•",
|
|
816
|
+
bull: "•",
|
|
817
|
+
nbsp: "\xA0",
|
|
818
|
+
hellip: "…",
|
|
819
|
+
mldr: "…",
|
|
820
|
+
prime: "′",
|
|
821
|
+
Prime: "″",
|
|
822
|
+
tprime: "‴",
|
|
823
|
+
bprime: "‵",
|
|
824
|
+
backprime: "‵",
|
|
825
|
+
minus: "−",
|
|
826
|
+
minusd: "∸",
|
|
827
|
+
dotminus: "∸",
|
|
828
|
+
plusdo: "∔",
|
|
829
|
+
dotplus: "∔",
|
|
830
|
+
plusmn: "±",
|
|
831
|
+
minusplus: "∓",
|
|
832
|
+
mnplus: "∓",
|
|
833
|
+
mp: "∓",
|
|
834
|
+
setminus: "∖",
|
|
835
|
+
smallsetminus: "∖",
|
|
836
|
+
Backslash: "∖",
|
|
837
|
+
setmn: "∖",
|
|
838
|
+
ssetmn: "∖",
|
|
839
|
+
lowbar: "_",
|
|
840
|
+
verbar: "|",
|
|
841
|
+
vert: "|",
|
|
842
|
+
VerticalLine: "|",
|
|
843
|
+
colon: ":",
|
|
844
|
+
Colon: "∷",
|
|
845
|
+
Proportion: "∷",
|
|
846
|
+
ratio: "∶",
|
|
847
|
+
equals: "=",
|
|
848
|
+
ne: "≠",
|
|
849
|
+
nequiv: "≢",
|
|
850
|
+
equiv: "≡",
|
|
851
|
+
Congruent: "≡",
|
|
852
|
+
sim: "∼",
|
|
853
|
+
thicksim: "∼",
|
|
854
|
+
thksim: "∼",
|
|
855
|
+
sime: "≃",
|
|
856
|
+
simeq: "≃",
|
|
857
|
+
TildeEqual: "≃",
|
|
858
|
+
asymp: "≈",
|
|
859
|
+
approx: "≈",
|
|
860
|
+
thickapprox: "≈",
|
|
861
|
+
thkap: "≈",
|
|
862
|
+
TildeTilde: "≈",
|
|
863
|
+
ncong: "≇",
|
|
864
|
+
cong: "≅",
|
|
865
|
+
TildeFullEqual: "≅",
|
|
866
|
+
asympeq: "≍",
|
|
867
|
+
CupCap: "≍",
|
|
868
|
+
bump: "≎",
|
|
869
|
+
Bumpeq: "≎",
|
|
870
|
+
HumpDownHump: "≎",
|
|
871
|
+
bumpe: "≏",
|
|
872
|
+
bumpeq: "≏",
|
|
873
|
+
HumpEqual: "≏",
|
|
874
|
+
le: "≤",
|
|
875
|
+
LessEqual: "≤",
|
|
876
|
+
ge: "≥",
|
|
877
|
+
GreaterEqual: "≥",
|
|
878
|
+
lesseqgtr: "⋚",
|
|
879
|
+
lesseqqgtr: "⪋",
|
|
880
|
+
greater: ">",
|
|
881
|
+
less: "<"
|
|
882
|
+
}, _e = {
|
|
883
|
+
alefsym: "ℵ",
|
|
884
|
+
aleph: "ℵ",
|
|
885
|
+
beth: "ℶ",
|
|
886
|
+
gimel: "ℷ",
|
|
887
|
+
daleth: "ℸ",
|
|
888
|
+
forall: "∀",
|
|
889
|
+
ForAll: "∀",
|
|
890
|
+
part: "∂",
|
|
891
|
+
PartialD: "∂",
|
|
892
|
+
exist: "∃",
|
|
893
|
+
Exists: "∃",
|
|
894
|
+
nexist: "∄",
|
|
895
|
+
nexists: "∄",
|
|
896
|
+
empty: "∅",
|
|
897
|
+
emptyset: "∅",
|
|
898
|
+
emptyv: "∅",
|
|
899
|
+
varnothing: "∅",
|
|
900
|
+
nabla: "∇",
|
|
901
|
+
Del: "∇",
|
|
902
|
+
isin: "∈",
|
|
903
|
+
isinv: "∈",
|
|
904
|
+
in: "∈",
|
|
905
|
+
Element: "∈",
|
|
906
|
+
notin: "∉",
|
|
907
|
+
notinva: "∉",
|
|
908
|
+
ni: "∋",
|
|
909
|
+
niv: "∋",
|
|
910
|
+
SuchThat: "∋",
|
|
911
|
+
ReverseElement: "∋",
|
|
912
|
+
notni: "∌",
|
|
913
|
+
notniva: "∌",
|
|
914
|
+
prod: "∏",
|
|
915
|
+
Product: "∏",
|
|
916
|
+
coprod: "∐",
|
|
917
|
+
Coproduct: "∐",
|
|
918
|
+
sum: "∑",
|
|
919
|
+
Sum: "∑",
|
|
920
|
+
minus: "−",
|
|
921
|
+
mp: "∓",
|
|
922
|
+
plusdo: "∔",
|
|
923
|
+
dotplus: "∔",
|
|
924
|
+
setminus: "∖",
|
|
925
|
+
lowast: "∗",
|
|
926
|
+
radic: "√",
|
|
927
|
+
Sqrt: "√",
|
|
928
|
+
prop: "∝",
|
|
929
|
+
propto: "∝",
|
|
930
|
+
Proportional: "∝",
|
|
931
|
+
varpropto: "∝",
|
|
932
|
+
infin: "∞",
|
|
933
|
+
infintie: "⧝",
|
|
934
|
+
ang: "∠",
|
|
935
|
+
angle: "∠",
|
|
936
|
+
angmsd: "∡",
|
|
937
|
+
measuredangle: "∡",
|
|
938
|
+
angsph: "∢",
|
|
939
|
+
mid: "∣",
|
|
940
|
+
VerticalBar: "∣",
|
|
941
|
+
nmid: "∤",
|
|
942
|
+
nsmid: "∤",
|
|
943
|
+
npar: "∦",
|
|
944
|
+
parallel: "∥",
|
|
945
|
+
spar: "∥",
|
|
946
|
+
nparallel: "∦",
|
|
947
|
+
nspar: "∦",
|
|
948
|
+
and: "∧",
|
|
949
|
+
wedge: "∧",
|
|
950
|
+
or: "∨",
|
|
951
|
+
vee: "∨",
|
|
952
|
+
cap: "∩",
|
|
953
|
+
cup: "∪",
|
|
954
|
+
int: "∫",
|
|
955
|
+
Integral: "∫",
|
|
956
|
+
conint: "∮",
|
|
957
|
+
ContourIntegral: "∮",
|
|
958
|
+
Conint: "∯",
|
|
959
|
+
DoubleContourIntegral: "∯",
|
|
960
|
+
Cconint: "∰",
|
|
961
|
+
there4: "∴",
|
|
962
|
+
therefore: "∴",
|
|
963
|
+
Therefore: "∴",
|
|
964
|
+
becaus: "∵",
|
|
965
|
+
because: "∵",
|
|
966
|
+
Because: "∵",
|
|
967
|
+
ratio: "∶",
|
|
968
|
+
Proportion: "∷",
|
|
969
|
+
minusd: "∸",
|
|
970
|
+
dotminus: "∸",
|
|
971
|
+
mDDot: "∺",
|
|
972
|
+
homtht: "∻",
|
|
973
|
+
sim: "∼",
|
|
974
|
+
bsimg: "∽",
|
|
975
|
+
backsim: "∽",
|
|
976
|
+
ac: "∾",
|
|
977
|
+
mstpos: "∾",
|
|
978
|
+
acd: "∿",
|
|
979
|
+
VerticalTilde: "≀",
|
|
980
|
+
wr: "≀",
|
|
981
|
+
wreath: "≀",
|
|
982
|
+
nsime: "≄",
|
|
983
|
+
nsimeq: "≄",
|
|
984
|
+
ncong: "≇",
|
|
985
|
+
simne: "≆",
|
|
986
|
+
ncongdot: "⩭̸",
|
|
987
|
+
ngsim: "≵",
|
|
988
|
+
nsim: "≁",
|
|
989
|
+
napprox: "≉",
|
|
990
|
+
nap: "≉",
|
|
991
|
+
ngeq: "≱",
|
|
992
|
+
nge: "≱",
|
|
993
|
+
nleq: "≰",
|
|
994
|
+
nle: "≰",
|
|
995
|
+
ngtr: "≯",
|
|
996
|
+
ngt: "≯",
|
|
997
|
+
nless: "≮",
|
|
998
|
+
nlt: "≮",
|
|
999
|
+
nprec: "⊀",
|
|
1000
|
+
npr: "⊀",
|
|
1001
|
+
nsucc: "⊁",
|
|
1002
|
+
nsc: "⊁"
|
|
1003
|
+
}, ve = {
|
|
1004
|
+
larr: "←",
|
|
1005
|
+
leftarrow: "←",
|
|
1006
|
+
LeftArrow: "←",
|
|
1007
|
+
uarr: "↑",
|
|
1008
|
+
uparrow: "↑",
|
|
1009
|
+
UpArrow: "↑",
|
|
1010
|
+
rarr: "→",
|
|
1011
|
+
rightarrow: "→",
|
|
1012
|
+
RightArrow: "→",
|
|
1013
|
+
darr: "↓",
|
|
1014
|
+
downarrow: "↓",
|
|
1015
|
+
DownArrow: "↓",
|
|
1016
|
+
harr: "↔",
|
|
1017
|
+
leftrightarrow: "↔",
|
|
1018
|
+
LeftRightArrow: "↔",
|
|
1019
|
+
varr: "↕",
|
|
1020
|
+
updownarrow: "↕",
|
|
1021
|
+
UpDownArrow: "↕",
|
|
1022
|
+
nwarr: "↖",
|
|
1023
|
+
nwarrow: "↖",
|
|
1024
|
+
UpperLeftArrow: "↖",
|
|
1025
|
+
nearr: "↗",
|
|
1026
|
+
nearrow: "↗",
|
|
1027
|
+
UpperRightArrow: "↗",
|
|
1028
|
+
searr: "↘",
|
|
1029
|
+
searrow: "↘",
|
|
1030
|
+
LowerRightArrow: "↘",
|
|
1031
|
+
swarr: "↙",
|
|
1032
|
+
swarrow: "↙",
|
|
1033
|
+
LowerLeftArrow: "↙",
|
|
1034
|
+
lArr: "⇐",
|
|
1035
|
+
Leftarrow: "⇐",
|
|
1036
|
+
uArr: "⇑",
|
|
1037
|
+
Uparrow: "⇑",
|
|
1038
|
+
rArr: "⇒",
|
|
1039
|
+
Rightarrow: "⇒",
|
|
1040
|
+
dArr: "⇓",
|
|
1041
|
+
Downarrow: "⇓",
|
|
1042
|
+
hArr: "⇔",
|
|
1043
|
+
Leftrightarrow: "⇔",
|
|
1044
|
+
iff: "⇔",
|
|
1045
|
+
vArr: "⇕",
|
|
1046
|
+
Updownarrow: "⇕",
|
|
1047
|
+
lAarr: "⇚",
|
|
1048
|
+
Lleftarrow: "⇚",
|
|
1049
|
+
rAarr: "⇛",
|
|
1050
|
+
Rrightarrow: "⇛",
|
|
1051
|
+
lrarr: "⇆",
|
|
1052
|
+
leftrightarrows: "⇆",
|
|
1053
|
+
rlarr: "⇄",
|
|
1054
|
+
rightleftarrows: "⇄",
|
|
1055
|
+
lrhar: "⇋",
|
|
1056
|
+
leftrightharpoons: "⇋",
|
|
1057
|
+
ReverseEquilibrium: "⇋",
|
|
1058
|
+
rlhar: "⇌",
|
|
1059
|
+
rightleftharpoons: "⇌",
|
|
1060
|
+
Equilibrium: "⇌",
|
|
1061
|
+
udarr: "⇅",
|
|
1062
|
+
UpArrowDownArrow: "⇅",
|
|
1063
|
+
duarr: "⇵",
|
|
1064
|
+
DownArrowUpArrow: "⇵",
|
|
1065
|
+
llarr: "⇇",
|
|
1066
|
+
leftleftarrows: "⇇",
|
|
1067
|
+
rrarr: "⇉",
|
|
1068
|
+
rightrightarrows: "⇉",
|
|
1069
|
+
ddarr: "⇊",
|
|
1070
|
+
downdownarrows: "⇊",
|
|
1071
|
+
har: "↽",
|
|
1072
|
+
lhard: "↽",
|
|
1073
|
+
leftharpoondown: "↽",
|
|
1074
|
+
lharu: "↼",
|
|
1075
|
+
leftharpoonup: "↼",
|
|
1076
|
+
rhard: "⇁",
|
|
1077
|
+
rightharpoondown: "⇁",
|
|
1078
|
+
rharu: "⇀",
|
|
1079
|
+
rightharpoonup: "⇀",
|
|
1080
|
+
lsh: "↰",
|
|
1081
|
+
Lsh: "↰",
|
|
1082
|
+
rsh: "↱",
|
|
1083
|
+
Rsh: "↱",
|
|
1084
|
+
ldsh: "↲",
|
|
1085
|
+
rdsh: "↳",
|
|
1086
|
+
hookleftarrow: "↩",
|
|
1087
|
+
hookrightarrow: "↪",
|
|
1088
|
+
mapstoleft: "↤",
|
|
1089
|
+
mapstoup: "↥",
|
|
1090
|
+
map: "↦",
|
|
1091
|
+
mapsto: "↦",
|
|
1092
|
+
mapstodown: "↧",
|
|
1093
|
+
crarr: "↵",
|
|
1094
|
+
nleftarrow: "↚",
|
|
1095
|
+
nleftrightarrow: "↮",
|
|
1096
|
+
nrightarrow: "↛",
|
|
1097
|
+
nrarr: "↛",
|
|
1098
|
+
larrtl: "↢",
|
|
1099
|
+
rarrtl: "↣",
|
|
1100
|
+
leftarrowtail: "↢",
|
|
1101
|
+
rightarrowtail: "↣",
|
|
1102
|
+
twoheadleftarrow: "↞",
|
|
1103
|
+
twoheadrightarrow: "↠",
|
|
1104
|
+
Larr: "↞",
|
|
1105
|
+
Rarr: "↠",
|
|
1106
|
+
larrhk: "↩",
|
|
1107
|
+
rarrhk: "↪",
|
|
1108
|
+
larrlp: "↫",
|
|
1109
|
+
looparrowleft: "↫",
|
|
1110
|
+
rarrlp: "↬",
|
|
1111
|
+
looparrowright: "↬",
|
|
1112
|
+
harrw: "↭",
|
|
1113
|
+
leftrightsquigarrow: "↭",
|
|
1114
|
+
nrarrw: "↝̸",
|
|
1115
|
+
rarrw: "↝",
|
|
1116
|
+
rightsquigarrow: "↝",
|
|
1117
|
+
larrbfs: "⤟",
|
|
1118
|
+
rarrbfs: "⤠",
|
|
1119
|
+
nvHarr: "⤄",
|
|
1120
|
+
nvlArr: "⤂",
|
|
1121
|
+
nvrArr: "⤃",
|
|
1122
|
+
larrfs: "⤝",
|
|
1123
|
+
rarrfs: "⤞",
|
|
1124
|
+
Map: "⤅",
|
|
1125
|
+
larrsim: "⥳",
|
|
1126
|
+
rarrsim: "⥴",
|
|
1127
|
+
harrcir: "⥈",
|
|
1128
|
+
Uarrocir: "⥉",
|
|
1129
|
+
lurdshar: "⥊",
|
|
1130
|
+
ldrdhar: "⥧",
|
|
1131
|
+
ldrushar: "⥋",
|
|
1132
|
+
rdldhar: "⥩",
|
|
1133
|
+
lrhard: "⥭",
|
|
1134
|
+
uharr: "↾",
|
|
1135
|
+
uharl: "↿",
|
|
1136
|
+
dharr: "⇂",
|
|
1137
|
+
dharl: "⇃",
|
|
1138
|
+
Uarr: "↟",
|
|
1139
|
+
Darr: "↡",
|
|
1140
|
+
zigrarr: "⇝",
|
|
1141
|
+
nwArr: "⇖",
|
|
1142
|
+
neArr: "⇗",
|
|
1143
|
+
seArr: "⇘",
|
|
1144
|
+
swArr: "⇙",
|
|
1145
|
+
nharr: "↮",
|
|
1146
|
+
nhArr: "⇎",
|
|
1147
|
+
nlarr: "↚",
|
|
1148
|
+
nlArr: "⇍",
|
|
1149
|
+
nrArr: "⇏",
|
|
1150
|
+
larrb: "⇤",
|
|
1151
|
+
LeftArrowBar: "⇤",
|
|
1152
|
+
rarrb: "⇥",
|
|
1153
|
+
RightArrowBar: "⇥"
|
|
1154
|
+
}, ye = {
|
|
1155
|
+
square: "□",
|
|
1156
|
+
Square: "□",
|
|
1157
|
+
squ: "□",
|
|
1158
|
+
squf: "▪",
|
|
1159
|
+
squarf: "▪",
|
|
1160
|
+
blacksquar: "▪",
|
|
1161
|
+
blacksquare: "▪",
|
|
1162
|
+
FilledVerySmallSquare: "▪",
|
|
1163
|
+
blk34: "▓",
|
|
1164
|
+
blk12: "▒",
|
|
1165
|
+
blk14: "░",
|
|
1166
|
+
block: "█",
|
|
1167
|
+
srect: "▭",
|
|
1168
|
+
rect: "▭",
|
|
1169
|
+
sdot: "⋅",
|
|
1170
|
+
sdotb: "⊡",
|
|
1171
|
+
dotsquare: "⊡",
|
|
1172
|
+
triangle: "▵",
|
|
1173
|
+
tri: "▵",
|
|
1174
|
+
trine: "▵",
|
|
1175
|
+
utri: "▵",
|
|
1176
|
+
triangledown: "▿",
|
|
1177
|
+
dtri: "▿",
|
|
1178
|
+
tridown: "▿",
|
|
1179
|
+
triangleleft: "◃",
|
|
1180
|
+
ltri: "◃",
|
|
1181
|
+
triangleright: "▹",
|
|
1182
|
+
rtri: "▹",
|
|
1183
|
+
blacktriangle: "▴",
|
|
1184
|
+
utrif: "▴",
|
|
1185
|
+
blacktriangledown: "▾",
|
|
1186
|
+
dtrif: "▾",
|
|
1187
|
+
blacktriangleleft: "◂",
|
|
1188
|
+
ltrif: "◂",
|
|
1189
|
+
blacktriangleright: "▸",
|
|
1190
|
+
rtrif: "▸",
|
|
1191
|
+
loz: "◊",
|
|
1192
|
+
lozenge: "◊",
|
|
1193
|
+
blacklozenge: "⧫",
|
|
1194
|
+
lozf: "⧫",
|
|
1195
|
+
bigcirc: "◯",
|
|
1196
|
+
xcirc: "◯",
|
|
1197
|
+
circ: "ˆ",
|
|
1198
|
+
Circle: "○",
|
|
1199
|
+
cir: "○",
|
|
1200
|
+
o: "○",
|
|
1201
|
+
bullet: "•",
|
|
1202
|
+
bull: "•",
|
|
1203
|
+
hellip: "…",
|
|
1204
|
+
mldr: "…",
|
|
1205
|
+
nldr: "‥",
|
|
1206
|
+
boxh: "─",
|
|
1207
|
+
HorizontalLine: "─",
|
|
1208
|
+
boxv: "│",
|
|
1209
|
+
boxdr: "┌",
|
|
1210
|
+
boxdl: "┐",
|
|
1211
|
+
boxur: "└",
|
|
1212
|
+
boxul: "┘",
|
|
1213
|
+
boxvr: "├",
|
|
1214
|
+
boxvl: "┤",
|
|
1215
|
+
boxhd: "┬",
|
|
1216
|
+
boxhu: "┴",
|
|
1217
|
+
boxvh: "┼",
|
|
1218
|
+
boxH: "═",
|
|
1219
|
+
boxV: "║",
|
|
1220
|
+
boxdR: "╒",
|
|
1221
|
+
boxDr: "╓",
|
|
1222
|
+
boxDR: "╔",
|
|
1223
|
+
boxDl: "╕",
|
|
1224
|
+
boxdL: "╖",
|
|
1225
|
+
boxDL: "╗",
|
|
1226
|
+
boxuR: "╘",
|
|
1227
|
+
boxUr: "╙",
|
|
1228
|
+
boxUR: "╚",
|
|
1229
|
+
boxUl: "╜",
|
|
1230
|
+
boxuL: "╛",
|
|
1231
|
+
boxUL: "╝",
|
|
1232
|
+
boxvR: "╞",
|
|
1233
|
+
boxVr: "╟",
|
|
1234
|
+
boxVR: "╠",
|
|
1235
|
+
boxVl: "╢",
|
|
1236
|
+
boxvL: "╡",
|
|
1237
|
+
boxVL: "╣",
|
|
1238
|
+
boxHd: "╤",
|
|
1239
|
+
boxhD: "╥",
|
|
1240
|
+
boxHD: "╦",
|
|
1241
|
+
boxHu: "╧",
|
|
1242
|
+
boxhU: "╨",
|
|
1243
|
+
boxHU: "╩",
|
|
1244
|
+
boxvH: "╪",
|
|
1245
|
+
boxVh: "╫",
|
|
1246
|
+
boxVH: "╬"
|
|
1247
|
+
}, be = {
|
|
1248
|
+
excl: "!",
|
|
1249
|
+
iexcl: "¡",
|
|
1250
|
+
brvbar: "¦",
|
|
1251
|
+
sect: "§",
|
|
1252
|
+
uml: "¨",
|
|
1253
|
+
copy: "©",
|
|
1254
|
+
ordf: "ª",
|
|
1255
|
+
laquo: "«",
|
|
1256
|
+
not: "¬",
|
|
1257
|
+
shy: "",
|
|
1258
|
+
reg: "®",
|
|
1259
|
+
macr: "¯",
|
|
1260
|
+
deg: "°",
|
|
1261
|
+
plusmn: "±",
|
|
1262
|
+
sup2: "²",
|
|
1263
|
+
sup3: "³",
|
|
1264
|
+
acute: "´",
|
|
1265
|
+
micro: "µ",
|
|
1266
|
+
para: "¶",
|
|
1267
|
+
middot: "·",
|
|
1268
|
+
cedil: "¸",
|
|
1269
|
+
sup1: "¹",
|
|
1270
|
+
ordm: "º",
|
|
1271
|
+
raquo: "»",
|
|
1272
|
+
frac14: "¼",
|
|
1273
|
+
frac12: "½",
|
|
1274
|
+
frac34: "¾",
|
|
1275
|
+
iquest: "¿",
|
|
1276
|
+
nbsp: "\xA0",
|
|
1277
|
+
comma: ",",
|
|
1278
|
+
period: ".",
|
|
1279
|
+
colon: ":",
|
|
1280
|
+
semi: ";",
|
|
1281
|
+
vert: "|",
|
|
1282
|
+
Verbar: "‖",
|
|
1283
|
+
verbar: "|",
|
|
1284
|
+
dblac: "˝",
|
|
1285
|
+
circ: "ˆ",
|
|
1286
|
+
caron: "ˇ",
|
|
1287
|
+
breve: "˘",
|
|
1288
|
+
dot: "˙",
|
|
1289
|
+
ring: "˚",
|
|
1290
|
+
ogon: "˛",
|
|
1291
|
+
tilde: "˜",
|
|
1292
|
+
DiacriticalGrave: "`",
|
|
1293
|
+
DiacriticalAcute: "´",
|
|
1294
|
+
DiacriticalTilde: "˜",
|
|
1295
|
+
DiacriticalDot: "˙",
|
|
1296
|
+
DiacriticalDoubleAcute: "˝",
|
|
1297
|
+
grave: "`"
|
|
1298
|
+
}, xe = {
|
|
375
1299
|
cent: "¢",
|
|
376
1300
|
pound: "£",
|
|
377
1301
|
curren: "¤",
|
|
@@ -387,13 +1311,112 @@ var de = {
|
|
|
387
1311
|
won: "₩",
|
|
388
1312
|
yuan: "¥",
|
|
389
1313
|
cedil: "¸"
|
|
390
|
-
},
|
|
1314
|
+
}, Se = {
|
|
1315
|
+
frac12: "½",
|
|
1316
|
+
half: "½",
|
|
1317
|
+
frac13: "⅓",
|
|
1318
|
+
frac14: "¼",
|
|
1319
|
+
frac15: "⅕",
|
|
1320
|
+
frac16: "⅙",
|
|
1321
|
+
frac18: "⅛",
|
|
1322
|
+
frac23: "⅔",
|
|
1323
|
+
frac25: "⅖",
|
|
1324
|
+
frac34: "¾",
|
|
1325
|
+
frac35: "⅗",
|
|
1326
|
+
frac38: "⅜",
|
|
1327
|
+
frac45: "⅘",
|
|
1328
|
+
frac56: "⅚",
|
|
1329
|
+
frac58: "⅝",
|
|
1330
|
+
frac78: "⅞",
|
|
1331
|
+
frasl: "⁄"
|
|
1332
|
+
}, Ce = {
|
|
1333
|
+
trade: "™",
|
|
1334
|
+
TRADE: "™",
|
|
1335
|
+
telrec: "⌕",
|
|
1336
|
+
target: "⌖",
|
|
1337
|
+
ulcorn: "⌜",
|
|
1338
|
+
ulcorner: "⌜",
|
|
1339
|
+
urcorn: "⌝",
|
|
1340
|
+
urcorner: "⌝",
|
|
1341
|
+
dlcorn: "⌞",
|
|
1342
|
+
llcorner: "⌞",
|
|
1343
|
+
drcorn: "⌟",
|
|
1344
|
+
lrcorner: "⌟",
|
|
1345
|
+
intercal: "⊺",
|
|
1346
|
+
intcal: "⊺",
|
|
1347
|
+
oplus: "⊕",
|
|
1348
|
+
CirclePlus: "⊕",
|
|
1349
|
+
ominus: "⊖",
|
|
1350
|
+
CircleMinus: "⊖",
|
|
1351
|
+
otimes: "⊗",
|
|
1352
|
+
CircleTimes: "⊗",
|
|
1353
|
+
osol: "⊘",
|
|
1354
|
+
odot: "⊙",
|
|
1355
|
+
CircleDot: "⊙",
|
|
1356
|
+
oast: "⊛",
|
|
1357
|
+
circledast: "⊛",
|
|
1358
|
+
odash: "⊝",
|
|
1359
|
+
circleddash: "⊝",
|
|
1360
|
+
ocirc: "⊚",
|
|
1361
|
+
circledcirc: "⊚",
|
|
1362
|
+
boxplus: "⊞",
|
|
1363
|
+
plusb: "⊞",
|
|
1364
|
+
boxminus: "⊟",
|
|
1365
|
+
minusb: "⊟",
|
|
1366
|
+
boxtimes: "⊠",
|
|
1367
|
+
timesb: "⊠",
|
|
1368
|
+
boxdot: "⊡",
|
|
1369
|
+
sdotb: "⊡",
|
|
1370
|
+
veebar: "⊻",
|
|
1371
|
+
vee: "∨",
|
|
1372
|
+
barvee: "⊽",
|
|
1373
|
+
and: "∧",
|
|
1374
|
+
wedge: "∧",
|
|
1375
|
+
Cap: "⋒",
|
|
1376
|
+
Cup: "⋓",
|
|
1377
|
+
Fork: "⋔",
|
|
1378
|
+
pitchfork: "⋔",
|
|
1379
|
+
epar: "⋕",
|
|
1380
|
+
ltlarr: "⥶",
|
|
1381
|
+
nvap: "≍⃒",
|
|
1382
|
+
nvsim: "∼⃒",
|
|
1383
|
+
nvge: "≥⃒",
|
|
1384
|
+
nvle: "≤⃒",
|
|
1385
|
+
nvlt: "<⃒",
|
|
1386
|
+
nvgt: ">⃒",
|
|
1387
|
+
nvltrie: "⊴⃒",
|
|
1388
|
+
nvrtrie: "⊵⃒",
|
|
1389
|
+
Vdash: "⊩",
|
|
1390
|
+
dashv: "⊣",
|
|
1391
|
+
vDash: "⊨",
|
|
1392
|
+
Vvdash: "⊪",
|
|
1393
|
+
nvdash: "⊬",
|
|
1394
|
+
nvDash: "⊭",
|
|
1395
|
+
nVdash: "⊮",
|
|
1396
|
+
nVDash: "⊯"
|
|
1397
|
+
};
|
|
1398
|
+
({
|
|
1399
|
+
...de,
|
|
1400
|
+
...fe,
|
|
1401
|
+
...pe,
|
|
1402
|
+
...me,
|
|
1403
|
+
...he,
|
|
1404
|
+
...ge,
|
|
1405
|
+
..._e,
|
|
1406
|
+
...ve,
|
|
1407
|
+
...ye,
|
|
1408
|
+
...be,
|
|
1409
|
+
...xe,
|
|
1410
|
+
...Se,
|
|
1411
|
+
...Ce
|
|
1412
|
+
});
|
|
1413
|
+
var we = {
|
|
391
1414
|
amp: "&",
|
|
392
1415
|
apos: "'",
|
|
393
1416
|
gt: ">",
|
|
394
1417
|
lt: "<",
|
|
395
1418
|
quot: "\""
|
|
396
|
-
},
|
|
1419
|
+
}, Te = {
|
|
397
1420
|
nbsp: "\xA0",
|
|
398
1421
|
copy: "©",
|
|
399
1422
|
reg: "®",
|
|
@@ -418,10 +1441,10 @@ var de = {
|
|
|
418
1441
|
ALLOW: "allow",
|
|
419
1442
|
BLOCK: "block",
|
|
420
1443
|
THROW: "throw"
|
|
421
|
-
}),
|
|
422
|
-
function
|
|
1444
|
+
}), Ee = /* @__PURE__ */ new Set("!?\\\\/[]$%{}^&*()<>|+");
|
|
1445
|
+
function De(e) {
|
|
423
1446
|
if (e[0] === "#") throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);
|
|
424
|
-
for (let t of e) if (
|
|
1447
|
+
for (let t of e) if (Ee.has(t)) throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);
|
|
425
1448
|
return e;
|
|
426
1449
|
}
|
|
427
1450
|
function S(...e) {
|
|
@@ -436,21 +1459,21 @@ function S(...e) {
|
|
|
436
1459
|
}
|
|
437
1460
|
return t;
|
|
438
1461
|
}
|
|
439
|
-
var C = "external", w = "base",
|
|
440
|
-
function
|
|
441
|
-
return !e || e === C ?
|
|
1462
|
+
var C = "external", w = "base", Oe = "all";
|
|
1463
|
+
function ke(e) {
|
|
1464
|
+
return !e || e === C ? new Set([C]) : e === Oe ? new Set([Oe]) : e === w ? new Set([w]) : Array.isArray(e) ? new Set(e) : new Set([C]);
|
|
442
1465
|
}
|
|
443
1466
|
var T = Object.freeze({
|
|
444
1467
|
allow: 0,
|
|
445
1468
|
leave: 1,
|
|
446
1469
|
remove: 2,
|
|
447
1470
|
throw: 3
|
|
448
|
-
}),
|
|
1471
|
+
}), Ae = new Set([
|
|
449
1472
|
9,
|
|
450
1473
|
10,
|
|
451
1474
|
13
|
|
452
1475
|
]);
|
|
453
|
-
function
|
|
1476
|
+
function je(e) {
|
|
454
1477
|
if (!e) return {
|
|
455
1478
|
xmlVersion: 1,
|
|
456
1479
|
onLevel: T.allow,
|
|
@@ -463,10 +1486,10 @@ function ye(e) {
|
|
|
463
1486
|
nullLevel: Math.max(r, T.remove)
|
|
464
1487
|
};
|
|
465
1488
|
}
|
|
466
|
-
var
|
|
1489
|
+
var Me = class {
|
|
467
1490
|
constructor(e = {}) {
|
|
468
|
-
this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers =
|
|
469
|
-
let t =
|
|
1491
|
+
this._limit = e.limit || {}, this._maxTotalExpansions = this._limit.maxTotalExpansions || 0, this._maxExpandedLength = this._limit.maxExpandedLength || 0, this._postCheck = typeof e.postCheck == "function" ? e.postCheck : (e) => e, this._limitTiers = ke(this._limit.applyLimitsTo ?? C), this._numericAllowed = e.numericAllowed ?? !0, this._baseMap = S(we, e.namedEntities || null), this._externalMap = Object.create(null), this._inputMap = Object.create(null), this._totalExpansions = 0, this._expandedLength = 0, this._removeSet = new Set(e.remove && Array.isArray(e.remove) ? e.remove : []), this._leaveSet = new Set(e.leave && Array.isArray(e.leave) ? e.leave : []);
|
|
1492
|
+
let t = je(e.ncr);
|
|
470
1493
|
this._ncrXmlVersion = t.xmlVersion, this._ncrOnLevel = t.onLevel, this._ncrNullLevel = t.nullLevel, this._onExternalEntity = typeof e.onExternalEntity == "function" ? e.onExternalEntity : null, this._onInputEntity = typeof e.onInputEntity == "function" ? e.onInputEntity : null;
|
|
471
1494
|
}
|
|
472
1495
|
_applyRegistrationHook(e, t, n, r) {
|
|
@@ -477,7 +1500,7 @@ var be = class {
|
|
|
477
1500
|
return !0;
|
|
478
1501
|
}
|
|
479
1502
|
setExternalEntities(e) {
|
|
480
|
-
if (e) for (let t of Object.keys(e))
|
|
1503
|
+
if (e) for (let t of Object.keys(e)) De(t);
|
|
481
1504
|
if (!this._onExternalEntity) {
|
|
482
1505
|
this._externalMap = S(e);
|
|
483
1506
|
return;
|
|
@@ -487,7 +1510,7 @@ var be = class {
|
|
|
487
1510
|
this._externalMap = n;
|
|
488
1511
|
}
|
|
489
1512
|
addExternalEntity(e, t) {
|
|
490
|
-
|
|
1513
|
+
De(e), typeof t == "string" && t.indexOf("&") === -1 && this._applyRegistrationHook(this._onExternalEntity, e, t, "external") && (this._externalMap[e] = t);
|
|
491
1514
|
}
|
|
492
1515
|
addInputEntities(e) {
|
|
493
1516
|
if (this._totalExpansions = 0, this._expandedLength = 0, !this._onInputEntity) {
|
|
@@ -556,7 +1579,7 @@ var be = class {
|
|
|
556
1579
|
return this._postCheck(l, t);
|
|
557
1580
|
}
|
|
558
1581
|
_tierCounts(e) {
|
|
559
|
-
return this._limitTiers.has(
|
|
1582
|
+
return this._limitTiers.has(Oe) ? !0 : this._limitTiers.has(e);
|
|
560
1583
|
}
|
|
561
1584
|
_resolveName(e) {
|
|
562
1585
|
if (e in this._inputMap) return {
|
|
@@ -573,7 +1596,7 @@ var be = class {
|
|
|
573
1596
|
};
|
|
574
1597
|
}
|
|
575
1598
|
_classifyNCR(e) {
|
|
576
|
-
return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !
|
|
1599
|
+
return e === 0 ? this._ncrNullLevel : e >= 55296 && e <= 57343 || this._ncrXmlVersion === 1 && e >= 1 && e <= 31 && !Ae.has(e) ? T.remove : -1;
|
|
577
1600
|
}
|
|
578
1601
|
_applyNCRAction(e, t, n) {
|
|
579
1602
|
switch (e) {
|
|
@@ -592,7 +1615,7 @@ var be = class {
|
|
|
592
1615
|
let i = r === -1 ? this._ncrOnLevel : Math.max(this._ncrOnLevel, r);
|
|
593
1616
|
return this._applyNCRAction(i, e, n);
|
|
594
1617
|
}
|
|
595
|
-
},
|
|
1618
|
+
}, Ne = (e) => p.includes(e) ? "__" + e : e, Pe = {
|
|
596
1619
|
preserveOrder: !1,
|
|
597
1620
|
attributeNamePrefix: "@_",
|
|
598
1621
|
attributesGroupName: !1,
|
|
@@ -635,14 +1658,14 @@ var be = class {
|
|
|
635
1658
|
maxNestedTags: 100,
|
|
636
1659
|
strictReservedNames: !0,
|
|
637
1660
|
jPath: !0,
|
|
638
|
-
onDangerousProperty:
|
|
1661
|
+
onDangerousProperty: Ne
|
|
639
1662
|
};
|
|
640
|
-
function
|
|
1663
|
+
function Fe(e, t) {
|
|
641
1664
|
if (typeof e != "string") return;
|
|
642
1665
|
let n = e.toLowerCase();
|
|
643
1666
|
if (p.some((e) => n === e.toLowerCase()) || m.some((e) => n === e.toLowerCase())) throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
|
|
644
1667
|
}
|
|
645
|
-
function
|
|
1668
|
+
function Ie(e, t) {
|
|
646
1669
|
return typeof e == "boolean" ? {
|
|
647
1670
|
enabled: e,
|
|
648
1671
|
maxEntitySize: 1e4,
|
|
@@ -663,10 +1686,10 @@ function we(e, t) {
|
|
|
663
1686
|
allowedTags: e.allowedTags ?? null,
|
|
664
1687
|
tagFilter: e.tagFilter ?? null,
|
|
665
1688
|
appliesTo: e.appliesTo ?? "all"
|
|
666
|
-
} :
|
|
1689
|
+
} : Ie(!0);
|
|
667
1690
|
}
|
|
668
|
-
var
|
|
669
|
-
let t = Object.assign({},
|
|
1691
|
+
var Le = function(e) {
|
|
1692
|
+
let t = Object.assign({}, Pe, e), n = [
|
|
670
1693
|
{
|
|
671
1694
|
value: t.attributeNamePrefix,
|
|
672
1695
|
name: "attributeNamePrefix"
|
|
@@ -688,9 +1711,9 @@ var Te = function(e) {
|
|
|
688
1711
|
name: "commentPropName"
|
|
689
1712
|
}
|
|
690
1713
|
];
|
|
691
|
-
for (let { value: e, name: t } of n) e &&
|
|
692
|
-
return t.onDangerousProperty === null && (t.onDangerousProperty =
|
|
693
|
-
},
|
|
1714
|
+
for (let { value: e, name: t } of n) e && Fe(e, t);
|
|
1715
|
+
return t.onDangerousProperty === null && (t.onDangerousProperty = Ne), t.processEntities = Ie(t.processEntities, t.htmlEntities), t.unpairedTagsSet = new Set(t.unpairedTags), t.stopNodes && Array.isArray(t.stopNodes) && (t.stopNodes = t.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), t;
|
|
1716
|
+
}, Re = typeof Symbol == "function" ? Symbol("XML Node Metadata") : "@@xmlMetadata", E = class {
|
|
694
1717
|
constructor(e) {
|
|
695
1718
|
this.tagname = e, this.child = [], this[":@"] = Object.create(null);
|
|
696
1719
|
}
|
|
@@ -701,12 +1724,12 @@ var Te = function(e) {
|
|
|
701
1724
|
e.tagname === "__proto__" && (e.tagname = "#__proto__"), e[":@"] && Object.keys(e[":@"]).length > 0 ? this.child.push({
|
|
702
1725
|
[e.tagname]: e.child,
|
|
703
1726
|
":@": e[":@"]
|
|
704
|
-
}) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][
|
|
1727
|
+
}) : this.child.push({ [e.tagname]: e.child }), t !== void 0 && (this.child[this.child.length - 1][Re] = { startIndex: t });
|
|
705
1728
|
}
|
|
706
1729
|
static getMetaDataSymbol() {
|
|
707
|
-
return
|
|
1730
|
+
return Re;
|
|
708
1731
|
}
|
|
709
|
-
},
|
|
1732
|
+
}, ze = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�", Be = ":A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀", Ve = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-", He = ":A-Za-z_À-˿Ͱ-ͽͿ-҆҈--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-\\-\\.\\d·̀-ͯ҇‿-⁀", D = (e, t, n = "") => {
|
|
710
1733
|
let r = `[${e.replace(":", "")}][${t.replace(":", "")}]*`;
|
|
711
1734
|
return {
|
|
712
1735
|
name: RegExp(`^[${e}][${t}]*$`, n),
|
|
@@ -715,15 +1738,15 @@ var Te = function(e) {
|
|
|
715
1738
|
nmToken: RegExp(`^[${t}]+$`, n),
|
|
716
1739
|
nmTokens: RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`, n)
|
|
717
1740
|
};
|
|
718
|
-
},
|
|
1741
|
+
}, Ue = D(ze, Be), We = D(Ve, He, "u"), Ge = D(":A-Za-z_", ":A-Za-z_\\-\\.\\d"), Ke = (e = "1.0", t = !1) => t ? Ge : e === "1.1" ? We : Ue, qe = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1 } = {}) => Ke(t, n).qName.test(e), Je = [
|
|
719
1742
|
"name",
|
|
720
1743
|
"ncName",
|
|
721
1744
|
"qName",
|
|
722
1745
|
"nmToken",
|
|
723
1746
|
"nmTokens"
|
|
724
|
-
],
|
|
725
|
-
if (!
|
|
726
|
-
let i =
|
|
1747
|
+
], Ye = (e, { xmlVersion: t = "1.0", asciiOnly: n = !1, maxCacheSize: r = 2048 } = {}) => {
|
|
1748
|
+
if (!Je.includes(e)) throw TypeError(`Unknown production "${e}". Must be one of: ${Je.join(", ")}`);
|
|
1749
|
+
let i = Ke(t, n)[e], a = /* @__PURE__ */ new Map(), o = (e) => {
|
|
727
1750
|
let t = a.get(e);
|
|
728
1751
|
if (t !== void 0) return t;
|
|
729
1752
|
let n = i.test(e);
|
|
@@ -732,7 +1755,7 @@ var Te = function(e) {
|
|
|
732
1755
|
return o.reset = () => {
|
|
733
1756
|
a = /* @__PURE__ */ new Map();
|
|
734
1757
|
}, o;
|
|
735
|
-
},
|
|
1758
|
+
}, Xe = class {
|
|
736
1759
|
constructor(e, t) {
|
|
737
1760
|
this.suppressValidationErr = !e, this.options = e, this.xmlVersion = t || 1;
|
|
738
1761
|
}
|
|
@@ -824,7 +1847,7 @@ var Te = function(e) {
|
|
|
824
1847
|
let n = t;
|
|
825
1848
|
for (; t < e.length && !/\s/.test(e[t]);) t++;
|
|
826
1849
|
let r = e.substring(n, t);
|
|
827
|
-
if (!this.suppressValidationErr && !
|
|
1850
|
+
if (!this.suppressValidationErr && !qe(r, { xmlVersion: this.xmlVersion })) throw Error(`Invalid element name: "${r}"`);
|
|
828
1851
|
t = O(e, t);
|
|
829
1852
|
let i = "";
|
|
830
1853
|
if (e[t] === "E" && k(e, "MPTY", t)) t += 4;
|
|
@@ -897,12 +1920,12 @@ function k(e, t, n) {
|
|
|
897
1920
|
return !0;
|
|
898
1921
|
}
|
|
899
1922
|
function A(e, t) {
|
|
900
|
-
if (
|
|
1923
|
+
if (qe(e, { xmlVersion: t })) return e;
|
|
901
1924
|
throw Error(`Invalid entity name ${e}`);
|
|
902
1925
|
}
|
|
903
1926
|
//#endregion
|
|
904
1927
|
//#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/digitTable.js
|
|
905
|
-
var
|
|
1928
|
+
var Ze = [
|
|
906
1929
|
48,
|
|
907
1930
|
1632,
|
|
908
1931
|
1776,
|
|
@@ -964,28 +1987,28 @@ var ze = [
|
|
|
964
1987
|
124144,
|
|
965
1988
|
125264,
|
|
966
1989
|
130032
|
|
967
|
-
], j = /* @__PURE__ */ new Map(),
|
|
968
|
-
for (let e of
|
|
1990
|
+
], j = /* @__PURE__ */ new Map(), Qe = 65535, $e = 1632, et = new Uint8Array(63904).fill(255);
|
|
1991
|
+
for (let e of Ze) for (let t = 0; t < 10; t++) {
|
|
969
1992
|
let n = e + t;
|
|
970
|
-
n <=
|
|
1993
|
+
n <= Qe ? et[n - $e] = t : j.set(n, t);
|
|
971
1994
|
}
|
|
972
1995
|
//#endregion
|
|
973
1996
|
//#region ../../node_modules/.pnpm/anynum@1.0.1/node_modules/anynum/anynum.js
|
|
974
|
-
var
|
|
1997
|
+
var tt = 48, nt = 57, rt = 45, M = new Set([
|
|
975
1998
|
8722,
|
|
976
1999
|
65293,
|
|
977
2000
|
65123
|
|
978
2001
|
]);
|
|
979
|
-
function
|
|
2002
|
+
function it(e) {
|
|
980
2003
|
if (typeof e != "string") return e;
|
|
981
2004
|
let t = e.length;
|
|
982
2005
|
if (t === 0) return e;
|
|
983
2006
|
let n = -1;
|
|
984
2007
|
for (let r = 0; r < t; r++) {
|
|
985
2008
|
let i = e.charCodeAt(r);
|
|
986
|
-
if (!(i >=
|
|
2009
|
+
if (!(i >= tt && i <= nt || i === rt)) {
|
|
987
2010
|
if (i < 1632) {
|
|
988
|
-
if (
|
|
2011
|
+
if (M.has(i)) {
|
|
989
2012
|
n = r;
|
|
990
2013
|
break;
|
|
991
2014
|
}
|
|
@@ -1004,7 +2027,7 @@ function Ge(e) {
|
|
|
1004
2027
|
}
|
|
1005
2028
|
continue;
|
|
1006
2029
|
}
|
|
1007
|
-
if (
|
|
2030
|
+
if (et[i - 1632] !== 255 || M.has(i)) {
|
|
1008
2031
|
n = r;
|
|
1009
2032
|
break;
|
|
1010
2033
|
}
|
|
@@ -1015,12 +2038,12 @@ function Ge(e) {
|
|
|
1015
2038
|
n > 0 && r.push(e.slice(0, n));
|
|
1016
2039
|
for (let i = n; i < t; i++) {
|
|
1017
2040
|
let n = e.charCodeAt(i);
|
|
1018
|
-
if (n >=
|
|
2041
|
+
if (n >= tt && n <= nt || n === rt) {
|
|
1019
2042
|
r.push(e[i]);
|
|
1020
2043
|
continue;
|
|
1021
2044
|
}
|
|
1022
2045
|
if (n < 1632) {
|
|
1023
|
-
r.push(
|
|
2046
|
+
r.push(M.has(n) ? "-" : e[i]);
|
|
1024
2047
|
continue;
|
|
1025
2048
|
}
|
|
1026
2049
|
if (n >= 55296 && n <= 56319) {
|
|
@@ -1037,18 +2060,18 @@ function Ge(e) {
|
|
|
1037
2060
|
r.push(e[i]);
|
|
1038
2061
|
continue;
|
|
1039
2062
|
}
|
|
1040
|
-
if (
|
|
2063
|
+
if (M.has(n)) {
|
|
1041
2064
|
r.push("-");
|
|
1042
2065
|
continue;
|
|
1043
2066
|
}
|
|
1044
|
-
let a =
|
|
2067
|
+
let a = et[n - $e];
|
|
1045
2068
|
r.push(a === 255 ? e[i] : String.fromCharCode(a + 48));
|
|
1046
2069
|
}
|
|
1047
2070
|
return r.join("");
|
|
1048
2071
|
}
|
|
1049
2072
|
//#endregion
|
|
1050
2073
|
//#region ../../node_modules/.pnpm/strnum@2.4.1/node_modules/strnum/strnum.js
|
|
1051
|
-
var
|
|
2074
|
+
var at = /^[-+]?0x[a-fA-F0-9]+$/, ot = /^0b[01]+$/, st = /^0o[0-7]+$/, ct = /^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/, lt = {
|
|
1052
2075
|
hex: !0,
|
|
1053
2076
|
binary: !1,
|
|
1054
2077
|
octal: !1,
|
|
@@ -1058,20 +2081,20 @@ var Ke = /^[-+]?0x[a-fA-F0-9]+$/, qe = /^0b[01]+$/, Je = /^0o[0-7]+$/, Ye = /^([
|
|
|
1058
2081
|
infinity: "original",
|
|
1059
2082
|
unicode: !1
|
|
1060
2083
|
};
|
|
1061
|
-
function
|
|
1062
|
-
if (t = Object.assign({},
|
|
2084
|
+
function ut(e, t = {}) {
|
|
2085
|
+
if (t = Object.assign({}, lt, t), !e || typeof e != "string") return e;
|
|
1063
2086
|
let n = e.trim();
|
|
1064
2087
|
if (n.length === 0 || t.skipLike !== void 0 && t.skipLike.test(n)) return e;
|
|
1065
|
-
if (n === "0" || t.unicode && (n =
|
|
1066
|
-
if (t.hex &&
|
|
1067
|
-
if (t.binary &&
|
|
1068
|
-
if (t.octal &&
|
|
1069
|
-
if (!isFinite(n)) return
|
|
1070
|
-
if (n.includes("e") || n.includes("E")) return
|
|
2088
|
+
if (n === "0" || t.unicode && (n = it(n), n === "0")) return 0;
|
|
2089
|
+
if (t.hex && at.test(n)) return N(n, 16);
|
|
2090
|
+
if (t.binary && ot.test(n)) return N(n, 2);
|
|
2091
|
+
if (t.octal && st.test(n)) return N(n, 8);
|
|
2092
|
+
if (!isFinite(n)) return mt(e, Number(n), t);
|
|
2093
|
+
if (n.includes("e") || n.includes("E")) return ft(e, n, t);
|
|
1071
2094
|
{
|
|
1072
|
-
let r =
|
|
2095
|
+
let r = ct.exec(n);
|
|
1073
2096
|
if (r) {
|
|
1074
|
-
let i = r[1] || "", a = r[2], o =
|
|
2097
|
+
let i = r[1] || "", a = r[2], o = pt(r[3]), s = i ? e[a.length + 1] === "." : e[a.length] === ".";
|
|
1075
2098
|
if (!t.leadingZeros && (a.length > 1 || a.length === 1 && !s)) return e;
|
|
1076
2099
|
{
|
|
1077
2100
|
let r = Number(n), s = String(r);
|
|
@@ -1084,26 +2107,26 @@ function Ze(e, t = {}) {
|
|
|
1084
2107
|
} else return e;
|
|
1085
2108
|
}
|
|
1086
2109
|
}
|
|
1087
|
-
var
|
|
1088
|
-
function
|
|
2110
|
+
var dt = /^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;
|
|
2111
|
+
function ft(e, t, n) {
|
|
1089
2112
|
if (!n.eNotation) return e;
|
|
1090
|
-
let r = t.match(
|
|
2113
|
+
let r = t.match(dt);
|
|
1091
2114
|
if (r) {
|
|
1092
2115
|
let i = r[1] || "", a = r[3].indexOf("e") === -1 ? "E" : "e", o = r[2], s = i ? e[o.length + 1] === a : e[o.length] === a;
|
|
1093
2116
|
return o.length > 1 && s ? e : o.length === 1 && (r[3].startsWith(`.${a}`) || r[3][0] === a) ? Number(t) : o.length > 0 ? n.leadingZeros && !s ? (t = (r[1] || "") + r[3], Number(t)) : e : Number(t);
|
|
1094
2117
|
} else return e;
|
|
1095
2118
|
}
|
|
1096
|
-
function
|
|
2119
|
+
function pt(e) {
|
|
1097
2120
|
return e && e.indexOf(".") !== -1 ? (e = e.replace(/0+$/, ""), e === "." ? e = "0" : e[0] === "." ? e = "0" + e : e[e.length - 1] === "." && (e = e.substring(0, e.length - 1)), e) : e;
|
|
1098
2121
|
}
|
|
1099
|
-
function
|
|
2122
|
+
function N(e, t) {
|
|
1100
2123
|
let n = e.trim();
|
|
1101
2124
|
if ((t === 2 || t === 8) && (e = n.substring(2)), parseInt) return parseInt(e, t);
|
|
1102
2125
|
if (Number.parseInt) return Number.parseInt(e, t);
|
|
1103
2126
|
if (window && window.parseInt) return window.parseInt(e, t);
|
|
1104
2127
|
throw Error("parseInt, Number.parseInt, window.parseInt are not supported");
|
|
1105
2128
|
}
|
|
1106
|
-
function
|
|
2129
|
+
function mt(e, t, n) {
|
|
1107
2130
|
let r = t === Infinity;
|
|
1108
2131
|
switch (n.infinity.toLowerCase()) {
|
|
1109
2132
|
case "null": return null;
|
|
@@ -1113,15 +2136,15 @@ function tt(e, t, n) {
|
|
|
1113
2136
|
}
|
|
1114
2137
|
}
|
|
1115
2138
|
//#endregion
|
|
1116
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.
|
|
1117
|
-
function
|
|
2139
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/ignoreAttributes.js
|
|
2140
|
+
function ht(e) {
|
|
1118
2141
|
return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
|
|
1119
2142
|
for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
|
|
1120
2143
|
} : () => !1;
|
|
1121
2144
|
}
|
|
1122
2145
|
//#endregion
|
|
1123
2146
|
//#region ../../node_modules/.pnpm/path-expression-matcher@1.6.2/node_modules/path-expression-matcher/src/Expression.js
|
|
1124
|
-
var
|
|
2147
|
+
var P = class {
|
|
1125
2148
|
constructor(e, t = {}, n) {
|
|
1126
2149
|
this.pattern = e, this.separator = t.separator || ".", this.segments = this._parse(e), this.data = n, this._hasDeepWildcard = this.segments.some((e) => e.type === "deep-wildcard"), this._hasAttributeCondition = this.segments.some((e) => e.attrName !== void 0), this._hasPositionSelector = this.segments.some((e) => e.position !== void 0);
|
|
1127
2150
|
}
|
|
@@ -1177,7 +2200,7 @@ var F = class {
|
|
|
1177
2200
|
toString() {
|
|
1178
2201
|
return this.pattern;
|
|
1179
2202
|
}
|
|
1180
|
-
},
|
|
2203
|
+
}, gt = class {
|
|
1181
2204
|
constructor() {
|
|
1182
2205
|
this._byDepthAndTag = /* @__PURE__ */ new Map(), this._wildcardByDepth = /* @__PURE__ */ new Map(), this._deepWildcards = [], this._deepByTerminalTag = /* @__PURE__ */ new Map(), this._patterns = /* @__PURE__ */ new Set(), this._sealed = !1;
|
|
1183
2206
|
}
|
|
@@ -1235,7 +2258,7 @@ var F = class {
|
|
|
1235
2258
|
for (let t = 0; t < this._deepWildcards.length; t++) if (e.matches(this._deepWildcards[t])) return this._deepWildcards[t];
|
|
1236
2259
|
return null;
|
|
1237
2260
|
}
|
|
1238
|
-
},
|
|
2261
|
+
}, _t = class {
|
|
1239
2262
|
constructor(e) {
|
|
1240
2263
|
this._matcher = e;
|
|
1241
2264
|
}
|
|
@@ -1292,9 +2315,9 @@ var F = class {
|
|
|
1292
2315
|
matchesAny(e) {
|
|
1293
2316
|
return e.matchesAny(this._matcher);
|
|
1294
2317
|
}
|
|
1295
|
-
},
|
|
2318
|
+
}, F = class {
|
|
1296
2319
|
constructor(e = {}) {
|
|
1297
|
-
this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new
|
|
2320
|
+
this.separator = e.separator || ".", this.path = [], this.siblingStacks = [], this._pathStringCache = null, this._view = new _t(this), this._keptAttrs = [];
|
|
1298
2321
|
}
|
|
1299
2322
|
push(e, t = null, n = null, r = null) {
|
|
1300
2323
|
this._pathStringCache = null, this.path.length > 0 && (this.path[this.path.length - 1].values = void 0);
|
|
@@ -1445,7 +2468,7 @@ var F = class {
|
|
|
1445
2468
|
readOnly() {
|
|
1446
2469
|
return this._view;
|
|
1447
2470
|
}
|
|
1448
|
-
},
|
|
2471
|
+
}, vt = [
|
|
1449
2472
|
{
|
|
1450
2473
|
id: "html-script-open",
|
|
1451
2474
|
description: "<script opening tag",
|
|
@@ -1531,7 +2554,7 @@ var F = class {
|
|
|
1531
2554
|
description: "<form tag — can be used for phishing / credential harvesting injection",
|
|
1532
2555
|
pattern: /<form[\s>/]/i
|
|
1533
2556
|
}
|
|
1534
|
-
],
|
|
2557
|
+
], yt = [
|
|
1535
2558
|
{
|
|
1536
2559
|
id: "xml-cdata-injection",
|
|
1537
2560
|
description: "CDATA section injection: <![CDATA[ breaks out of text node context",
|
|
@@ -1592,7 +2615,7 @@ var F = class {
|
|
|
1592
2615
|
description: "?> closes an enclosing processing instruction",
|
|
1593
2616
|
pattern: /\?>/
|
|
1594
2617
|
}
|
|
1595
|
-
],
|
|
2618
|
+
], bt = [
|
|
1596
2619
|
{
|
|
1597
2620
|
id: "svg-script-element",
|
|
1598
2621
|
description: "<script element inside SVG executes JavaScript",
|
|
@@ -1658,7 +2681,7 @@ var F = class {
|
|
|
1658
2681
|
description: "style= attribute containing javascript: (e.g. background:url(javascript:...))",
|
|
1659
2682
|
pattern: /style\s*=[\s\S]{0,60}javascript\s*:/i
|
|
1660
2683
|
}
|
|
1661
|
-
],
|
|
2684
|
+
], xt = [
|
|
1662
2685
|
{
|
|
1663
2686
|
id: "sql-block-comment-open",
|
|
1664
2687
|
description: "SQL block comment open: /* ... */ — unusual in legitimate user text",
|
|
@@ -1734,7 +2757,7 @@ var F = class {
|
|
|
1734
2757
|
description: "INFORMATION_SCHEMA — reconnaissance query for table/column enumeration",
|
|
1735
2758
|
pattern: /\bINFORMATION_SCHEMA\b/i
|
|
1736
2759
|
}
|
|
1737
|
-
],
|
|
2760
|
+
], St = [
|
|
1738
2761
|
{
|
|
1739
2762
|
id: "shell-path-traversal-unix",
|
|
1740
2763
|
description: "Unix path traversal: ../ — climbing the directory tree",
|
|
@@ -1825,7 +2848,7 @@ var F = class {
|
|
|
1825
2848
|
description: "curl/wget with URL or flags — can exfiltrate data or download payloads",
|
|
1826
2849
|
pattern: /\b(?:curl|wget)\s+(?:https?:\/\/|ftp:\/\/|-)/i
|
|
1827
2850
|
}
|
|
1828
|
-
],
|
|
2851
|
+
], Ct = [
|
|
1829
2852
|
{
|
|
1830
2853
|
id: "redos-nested-quantifier-plus",
|
|
1831
2854
|
description: "Nested + quantifier inside a group with outer quantifier: (a+)+, (.+b)*, etc.",
|
|
@@ -1866,71 +2889,71 @@ var F = class {
|
|
|
1866
2889
|
description: "Long alternation with many similar branches — polynomial backtracking risk",
|
|
1867
2890
|
pattern: /\([^)]{0,200}(?:\|[^|)]{0,50}){9,}\)/
|
|
1868
2891
|
}
|
|
1869
|
-
],
|
|
2892
|
+
], I = "[\"'\\s]*:", wt = [
|
|
1870
2893
|
{
|
|
1871
2894
|
id: "nosql-where-operator",
|
|
1872
2895
|
description: "$where — executes arbitrary JavaScript server-side in MongoDB",
|
|
1873
|
-
pattern: RegExp(`\\$where${
|
|
2896
|
+
pattern: RegExp(`\\$where${I}`, "i")
|
|
1874
2897
|
},
|
|
1875
2898
|
{
|
|
1876
2899
|
id: "nosql-ne-operator",
|
|
1877
2900
|
description: "$ne — \"not equal\" operator used to bypass equality checks",
|
|
1878
|
-
pattern: RegExp(`\\$ne${
|
|
2901
|
+
pattern: RegExp(`\\$ne${I}`, "i")
|
|
1879
2902
|
},
|
|
1880
2903
|
{
|
|
1881
2904
|
id: "nosql-gt-operator",
|
|
1882
2905
|
description: "$gt — \"greater than\" used to bypass password/value checks",
|
|
1883
|
-
pattern: RegExp(`\\$gte?${
|
|
2906
|
+
pattern: RegExp(`\\$gte?${I}`, "i")
|
|
1884
2907
|
},
|
|
1885
2908
|
{
|
|
1886
2909
|
id: "nosql-lt-operator",
|
|
1887
2910
|
description: "$lt / $lte — \"less than\" bypass variants",
|
|
1888
|
-
pattern: RegExp(`\\$lte?${
|
|
2911
|
+
pattern: RegExp(`\\$lte?${I}`, "i")
|
|
1889
2912
|
},
|
|
1890
2913
|
{
|
|
1891
2914
|
id: "nosql-regex-operator",
|
|
1892
2915
|
description: "$regex — can be used to extract data character by character (blind injection)",
|
|
1893
|
-
pattern: RegExp(`\\$regex${
|
|
2916
|
+
pattern: RegExp(`\\$regex${I}`, "i")
|
|
1894
2917
|
},
|
|
1895
2918
|
{
|
|
1896
2919
|
id: "nosql-or-operator",
|
|
1897
2920
|
description: "$or — logical OR; used to create always-true conditions",
|
|
1898
|
-
pattern: RegExp(`\\$or${
|
|
2921
|
+
pattern: RegExp(`\\$or${I}\\s*\\[`, "i")
|
|
1899
2922
|
},
|
|
1900
2923
|
{
|
|
1901
2924
|
id: "nosql-and-operator",
|
|
1902
2925
|
description: "$and — logical AND operator injection",
|
|
1903
|
-
pattern: RegExp(`\\$and${
|
|
2926
|
+
pattern: RegExp(`\\$and${I}\\s*\\[`, "i")
|
|
1904
2927
|
},
|
|
1905
2928
|
{
|
|
1906
2929
|
id: "nosql-nor-operator",
|
|
1907
2930
|
description: "$nor — logical NOR operator injection",
|
|
1908
|
-
pattern: RegExp(`\\$nor${
|
|
2931
|
+
pattern: RegExp(`\\$nor${I}\\s*\\[`, "i")
|
|
1909
2932
|
},
|
|
1910
2933
|
{
|
|
1911
2934
|
id: "nosql-exists-operator",
|
|
1912
2935
|
description: "$exists — can enumerate fields to determine schema",
|
|
1913
|
-
pattern: RegExp(`\\$exists${
|
|
2936
|
+
pattern: RegExp(`\\$exists${I}`, "i")
|
|
1914
2937
|
},
|
|
1915
2938
|
{
|
|
1916
2939
|
id: "nosql-in-operator",
|
|
1917
2940
|
description: "$in — matches any value in a list; can enumerate values",
|
|
1918
|
-
pattern: RegExp(`\\$in${
|
|
2941
|
+
pattern: RegExp(`\\$in${I}\\s*\\[`, "i")
|
|
1919
2942
|
},
|
|
1920
2943
|
{
|
|
1921
2944
|
id: "nosql-expr-operator",
|
|
1922
2945
|
description: "$expr — allows aggregation expressions in queries (MongoDB 3.6+)",
|
|
1923
|
-
pattern: RegExp(`\\$expr${
|
|
2946
|
+
pattern: RegExp(`\\$expr${I}`, "i")
|
|
1924
2947
|
},
|
|
1925
2948
|
{
|
|
1926
2949
|
id: "nosql-function-operator",
|
|
1927
2950
|
description: "$function — executes arbitrary JavaScript in MongoDB 4.4+",
|
|
1928
|
-
pattern: RegExp(`\\$function${
|
|
2951
|
+
pattern: RegExp(`\\$function${I}`, "i")
|
|
1929
2952
|
},
|
|
1930
2953
|
{
|
|
1931
2954
|
id: "nosql-accumulator-operator",
|
|
1932
2955
|
description: "$accumulator — custom aggregation with arbitrary JS execution",
|
|
1933
|
-
pattern: RegExp(`\\$accumulator${
|
|
2956
|
+
pattern: RegExp(`\\$accumulator${I}`, "i")
|
|
1934
2957
|
},
|
|
1935
2958
|
{
|
|
1936
2959
|
id: "nosql-proto-pollution",
|
|
@@ -1947,7 +2970,7 @@ var F = class {
|
|
|
1947
2970
|
description: "[\"__proto__\"] — bracket-notation prototype pollution",
|
|
1948
2971
|
pattern: /\[["']__proto__["']\]/
|
|
1949
2972
|
}
|
|
1950
|
-
],
|
|
2973
|
+
], Tt = [
|
|
1951
2974
|
{
|
|
1952
2975
|
id: "log-crlf-injection",
|
|
1953
2976
|
description: "CRLF injection: literal \\r or \\n embeds fake log lines",
|
|
@@ -2008,7 +3031,7 @@ var F = class {
|
|
|
2008
3031
|
description: "ANSI escape sequence: ESC[ — can manipulate terminal output when logs are tailed",
|
|
2009
3032
|
pattern: /\x1b\[/
|
|
2010
3033
|
}
|
|
2011
|
-
],
|
|
3034
|
+
], Et = [
|
|
2012
3035
|
{
|
|
2013
3036
|
id: "sql-line-comment",
|
|
2014
3037
|
description: "SQL line comment: -- followed by whitespace or end of string",
|
|
@@ -2024,22 +3047,22 @@ var F = class {
|
|
|
2024
3047
|
description: "Hex-encoded string injection: 0x41414141 style (MySQL)",
|
|
2025
3048
|
pattern: /\b0x[0-9a-f]{4,}/i
|
|
2026
3049
|
}
|
|
2027
|
-
],
|
|
2028
|
-
|
|
2029
|
-
HTML:
|
|
2030
|
-
XML:
|
|
2031
|
-
SVG:
|
|
2032
|
-
SQL:
|
|
2033
|
-
"SQL-STRICT":
|
|
2034
|
-
SHELL:
|
|
2035
|
-
REDOS:
|
|
2036
|
-
NOSQL:
|
|
2037
|
-
LOG:
|
|
3050
|
+
], Dt = [...xt, ...Et];
|
|
3051
|
+
vt.label = "HTML", yt.label = "XML", bt.label = "SVG", xt.label = "SQL", Dt.label = "SQL-STRICT", St.label = "SHELL", Ct.label = "REDOS", wt.label = "NOSQL", Tt.label = "LOG", Object.freeze({
|
|
3052
|
+
HTML: vt,
|
|
3053
|
+
XML: yt,
|
|
3054
|
+
SVG: bt,
|
|
3055
|
+
SQL: xt,
|
|
3056
|
+
"SQL-STRICT": Dt,
|
|
3057
|
+
SHELL: St,
|
|
3058
|
+
REDOS: Ct,
|
|
3059
|
+
NOSQL: wt,
|
|
3060
|
+
LOG: Tt
|
|
2038
3061
|
});
|
|
2039
|
-
function
|
|
3062
|
+
function Ot(e) {
|
|
2040
3063
|
if (typeof e != "string") throw TypeError(`is-unsafe: first argument must be a string, got ${typeof e}`);
|
|
2041
3064
|
}
|
|
2042
|
-
function
|
|
3065
|
+
function kt(e) {
|
|
2043
3066
|
if (!(e instanceof RegExp)) {
|
|
2044
3067
|
if (Array.isArray(e)) {
|
|
2045
3068
|
if (e.length === 0) throw TypeError("is-unsafe: context must not be an empty array");
|
|
@@ -2051,7 +3074,7 @@ function pt(e) {
|
|
|
2051
3074
|
throw TypeError(`is-unsafe: second argument must be a PatternList (e.g. HTML), an array of PatternLists (e.g. [HTML, XML]), or a RegExp. Got: ${typeof e}`);
|
|
2052
3075
|
}
|
|
2053
3076
|
}
|
|
2054
|
-
function
|
|
3077
|
+
function At(e) {
|
|
2055
3078
|
return e instanceof RegExp ? {
|
|
2056
3079
|
lists: null,
|
|
2057
3080
|
regex: e
|
|
@@ -2063,7 +3086,7 @@ function mt(e) {
|
|
|
2063
3086
|
regex: null
|
|
2064
3087
|
};
|
|
2065
3088
|
}
|
|
2066
|
-
function
|
|
3089
|
+
function jt(e, t) {
|
|
2067
3090
|
let n = t.label ?? "CUSTOM";
|
|
2068
3091
|
for (let r of t) if (r.pattern.test(e)) return {
|
|
2069
3092
|
context: n,
|
|
@@ -2073,16 +3096,16 @@ function ht(e, t) {
|
|
|
2073
3096
|
};
|
|
2074
3097
|
return null;
|
|
2075
3098
|
}
|
|
2076
|
-
function
|
|
2077
|
-
|
|
2078
|
-
let { lists: n, regex: r } =
|
|
3099
|
+
function Mt(e, t) {
|
|
3100
|
+
Ot(e), kt(t);
|
|
3101
|
+
let { lists: n, regex: r } = At(t);
|
|
2079
3102
|
if (r) return r.test(e);
|
|
2080
|
-
for (let t of n) if (
|
|
3103
|
+
for (let t of n) if (jt(e, t) !== null) return !0;
|
|
2081
3104
|
return !1;
|
|
2082
3105
|
}
|
|
2083
3106
|
//#endregion
|
|
2084
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.
|
|
2085
|
-
function
|
|
3107
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js
|
|
3108
|
+
function Nt(e, t) {
|
|
2086
3109
|
if (!e) return {};
|
|
2087
3110
|
let n = t.attributesGroupName ? e[t.attributesGroupName] : e;
|
|
2088
3111
|
if (!n) return {};
|
|
@@ -2093,7 +3116,7 @@ function _t(e, t) {
|
|
|
2093
3116
|
} else r[e] = n[e];
|
|
2094
3117
|
return r;
|
|
2095
3118
|
}
|
|
2096
|
-
function
|
|
3119
|
+
function Pt(e) {
|
|
2097
3120
|
if (!e || typeof e != "string") return;
|
|
2098
3121
|
let t = e.indexOf(":");
|
|
2099
3122
|
if (t !== -1 && t > 0) {
|
|
@@ -2101,14 +3124,14 @@ function vt(e) {
|
|
|
2101
3124
|
if (n !== "xmlns") return n;
|
|
2102
3125
|
}
|
|
2103
3126
|
}
|
|
2104
|
-
var
|
|
3127
|
+
var Ft = class {
|
|
2105
3128
|
constructor(e, t) {
|
|
2106
|
-
this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml =
|
|
2107
|
-
let n = { ...
|
|
3129
|
+
this.options = e, this.currentNode = null, this.tagsNodeStack = [], this.parseXml = Bt, this.parseTextData = It, this.resolveNameSpace = Lt, this.buildAttributesMap = zt, this.isItStopNode = Wt, this.replaceEntitiesValue = Ht, this.readStopNodeData = Jt, this.saveTextToParentTag = Ut, this.addChild = Vt, this.ignoreAttributesFn = ht(this.options.ignoreAttributes), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
|
|
3130
|
+
let n = { ...we };
|
|
2108
3131
|
this.options.entityDecoder ? this.entityDecoder = this.options.entityDecoder : (typeof this.options.htmlEntities == "object" ? n = this.options.htmlEntities : this.options.htmlEntities === !0 && (n = {
|
|
2109
|
-
...
|
|
2110
|
-
...
|
|
2111
|
-
}), this.entityDecoder = new
|
|
3132
|
+
...Te,
|
|
3133
|
+
...xe
|
|
3134
|
+
}), this.entityDecoder = new Me({
|
|
2112
3135
|
namedEntities: {
|
|
2113
3136
|
...n,
|
|
2114
3137
|
...t
|
|
@@ -2119,27 +3142,27 @@ var yt = class {
|
|
|
2119
3142
|
maxExpandedLength: this.options.processEntities.maxExpandedLength,
|
|
2120
3143
|
applyLimitsTo: this.options.processEntities.appliesTo
|
|
2121
3144
|
},
|
|
2122
|
-
onInputEntity: (e, t) =>
|
|
2123
|
-
})), this.matcher = new
|
|
3145
|
+
onInputEntity: (e, t) => Mt(t, [vt, yt]) ? x.BLOCK : x.ALLOW
|
|
3146
|
+
})), this.matcher = new F(), this.readonlyMatcher = this.matcher.readOnly(), this.isCurrentNodeStopNode = !1, this.stopNodeExpressionsSet = new gt();
|
|
2124
3147
|
let r = this.options.stopNodes;
|
|
2125
3148
|
if (r && r.length > 0) {
|
|
2126
3149
|
for (let e = 0; e < r.length; e++) {
|
|
2127
3150
|
let t = r[e];
|
|
2128
|
-
typeof t == "string" ? this.stopNodeExpressionsSet.add(new
|
|
3151
|
+
typeof t == "string" ? this.stopNodeExpressionsSet.add(new P(t)) : t instanceof P && this.stopNodeExpressionsSet.add(t);
|
|
2129
3152
|
}
|
|
2130
3153
|
this.stopNodeExpressionsSet.seal();
|
|
2131
3154
|
}
|
|
2132
3155
|
}
|
|
2133
3156
|
};
|
|
2134
|
-
function
|
|
3157
|
+
function It(e, t, n, r, i, a, o) {
|
|
2135
3158
|
let s = this.options;
|
|
2136
3159
|
if (e !== void 0 && (s.trimValues && !r && (e = e.trim()), e.length > 0)) {
|
|
2137
3160
|
o || (e = this.replaceEntitiesValue(e, t, n));
|
|
2138
3161
|
let r = s.jPath ? n.toString() : n, c = s.tagValueProcessor(t, e, r, i, a);
|
|
2139
|
-
return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ?
|
|
3162
|
+
return c == null ? e : typeof c != typeof e || c !== e ? c : s.trimValues || e.trim() === e ? Yt(e, s.parseTagValue, s.numberParseOptions) : e;
|
|
2140
3163
|
}
|
|
2141
3164
|
}
|
|
2142
|
-
function
|
|
3165
|
+
function Lt(e) {
|
|
2143
3166
|
if (this.options.removeNSPrefix) {
|
|
2144
3167
|
let t = e.split(":"), n = e.charAt(0) === "/" ? "/" : "";
|
|
2145
3168
|
if (t[0] === "xmlns") return "";
|
|
@@ -2147,11 +3170,11 @@ function xt(e) {
|
|
|
2147
3170
|
}
|
|
2148
3171
|
return e;
|
|
2149
3172
|
}
|
|
2150
|
-
var
|
|
2151
|
-
function
|
|
3173
|
+
var Rt = /* @__PURE__ */ RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?", "gm");
|
|
3174
|
+
function zt(e, t, n, r = !1) {
|
|
2152
3175
|
let i = this.options;
|
|
2153
3176
|
if (r === !0 || i.ignoreAttributes !== !0 && typeof e == "string") {
|
|
2154
|
-
let r = u(e,
|
|
3177
|
+
let r = u(e, Rt), a = r.length, o = {}, s = Array(a), c = !1, l = {};
|
|
2155
3178
|
for (let e = 0; e < a; e++) {
|
|
2156
3179
|
let t = this.resolveNameSpace(r[e][1]), a = r[e][4];
|
|
2157
3180
|
if (t.length && a !== void 0) {
|
|
@@ -2165,9 +3188,9 @@ function Ct(e, t, n, r = !1) {
|
|
|
2165
3188
|
let t = this.resolveNameSpace(r[e][1]);
|
|
2166
3189
|
if (this.ignoreAttributesFn(t, d)) continue;
|
|
2167
3190
|
let n = i.attributeNamePrefix + t;
|
|
2168
|
-
if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n =
|
|
3191
|
+
if (t.length) if (i.transformAttributeName && (n = i.transformAttributeName(n)), n = Zt(n, i), r[e][4] !== void 0) {
|
|
2169
3192
|
let r = s[e], a = i.attributeValueProcessor(t, r, d);
|
|
2170
|
-
a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] =
|
|
3193
|
+
a == null ? o[n] = r : typeof a != typeof r || a !== r ? o[n] = a : o[n] = Yt(r, i.parseAttributeValue, i.numberParseOptions), f = !0;
|
|
2171
3194
|
} else i.allowBooleanAttributes && (o[n] = !0, f = !0);
|
|
2172
3195
|
}
|
|
2173
3196
|
if (!f) return;
|
|
@@ -2178,25 +3201,25 @@ function Ct(e, t, n, r = !1) {
|
|
|
2178
3201
|
return o;
|
|
2179
3202
|
}
|
|
2180
3203
|
}
|
|
2181
|
-
var
|
|
3204
|
+
var Bt = function(e) {
|
|
2182
3205
|
e = e.replace(/\r\n?/g, "\n");
|
|
2183
3206
|
let t = new E("!xml"), n = t, r = "";
|
|
2184
|
-
this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0
|
|
2185
|
-
let i = this.options, a = new
|
|
3207
|
+
this.matcher.reset(), this.entityDecoder.reset(), this.entityExpansionCount = 0, this.currentExpandedLength = 0;
|
|
3208
|
+
let i = this.options, a = new Xe(i.processEntities), o = e.length;
|
|
2186
3209
|
for (let s = 0; s < o; s++) if (e[s] === "<") {
|
|
2187
3210
|
let c = e.charCodeAt(s + 1);
|
|
2188
3211
|
if (c === 47) {
|
|
2189
|
-
let t =
|
|
3212
|
+
let t = L(e, ">", s, "Closing Tag is not closed."), a = e.substring(s + 2, t).trim();
|
|
2190
3213
|
if (i.removeNSPrefix) {
|
|
2191
3214
|
let e = a.indexOf(":");
|
|
2192
3215
|
e !== -1 && (a = a.substr(e + 1));
|
|
2193
3216
|
}
|
|
2194
|
-
a =
|
|
3217
|
+
a = Xt(i.transformTagName, a, "", i).tagName, n && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher));
|
|
2195
3218
|
let o = this.matcher.getCurrentTag();
|
|
2196
3219
|
if (a && i.unpairedTagsSet.has(a)) throw Error(`Unpaired tag can not be used as closing tag: </${a}>`);
|
|
2197
3220
|
o && i.unpairedTagsSet.has(o) && (this.matcher.pop(), this.tagsNodeStack.pop()), this.matcher.pop(), this.isCurrentNodeStopNode = !1, n = this.tagsNodeStack.pop(), r = "", s = t;
|
|
2198
3221
|
} else if (c === 63) {
|
|
2199
|
-
let t =
|
|
3222
|
+
let t = qt(e, s, !1, "?>");
|
|
2200
3223
|
if (!t) throw Error("Pi Tag is not closed.");
|
|
2201
3224
|
r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
|
|
2202
3225
|
let o = this.buildAttributesMap(t.tagExp, this.matcher, t.tagName, !0);
|
|
@@ -2210,37 +3233,35 @@ var wt = function(e) {
|
|
|
2210
3233
|
}
|
|
2211
3234
|
s = t.closeIndex + 1;
|
|
2212
3235
|
} else if (c === 33 && e.charCodeAt(s + 2) === 45 && e.charCodeAt(s + 3) === 45) {
|
|
2213
|
-
let t =
|
|
3236
|
+
let t = L(e, "-->", s + 4, "Comment is not closed.");
|
|
2214
3237
|
if (i.commentPropName) {
|
|
2215
3238
|
let a = e.substring(s + 4, t - 2);
|
|
2216
3239
|
r = this.saveTextToParentTag(r, n, this.readonlyMatcher), n.add(i.commentPropName, [{ [i.textNodeName]: a }]);
|
|
2217
3240
|
}
|
|
2218
3241
|
s = t;
|
|
2219
3242
|
} else if (c === 33 && e.charCodeAt(s + 2) === 68) {
|
|
2220
|
-
if (this.doctypefound) throw Error("Multiple DOCTYPE declarations found.");
|
|
2221
|
-
this.doctypefound = !0;
|
|
2222
3243
|
let t = a.readDocType(e, s);
|
|
2223
3244
|
this.entityDecoder.addInputEntities(t.entities), s = t.i;
|
|
2224
3245
|
} else if (c === 33 && e.charCodeAt(s + 2) === 91) {
|
|
2225
|
-
let t =
|
|
3246
|
+
let t = L(e, "]]>", s, "CDATA is not closed.") - 2, a = e.substring(s + 9, t);
|
|
2226
3247
|
r = this.saveTextToParentTag(r, n, this.readonlyMatcher);
|
|
2227
3248
|
let o = this.parseTextData(a, n.tagname, this.readonlyMatcher, !0, !1, !0, !0);
|
|
2228
3249
|
o ??= "", i.cdataPropName ? n.add(i.cdataPropName, [{ [i.textNodeName]: a }]) : n.add(i.textNodeName, o), s = t + 2;
|
|
2229
3250
|
} else {
|
|
2230
|
-
let a =
|
|
3251
|
+
let a = qt(e, s, i.removeNSPrefix);
|
|
2231
3252
|
if (!a) {
|
|
2232
3253
|
let t = e.substring(Math.max(0, s - 50), Math.min(o, s + 50));
|
|
2233
3254
|
throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`);
|
|
2234
3255
|
}
|
|
2235
3256
|
let c = a.tagName, l = a.rawTagName, u = a.tagExp, d = a.attrExpPresent, f = a.closeIndex;
|
|
2236
|
-
if ({tagName: c, tagExp: u} =
|
|
3257
|
+
if ({tagName: c, tagExp: u} = Xt(i.transformTagName, c, u, i), i.strictReservedNames && (c === i.commentPropName || c === i.cdataPropName || c === i.textNodeName || c === i.attributesGroupName)) throw Error(`Invalid tag name: ${c}`);
|
|
2237
3258
|
n && r && n.tagname !== "!xml" && (r = this.saveTextToParentTag(r, n, this.readonlyMatcher, !1));
|
|
2238
3259
|
let p = n;
|
|
2239
3260
|
p && i.unpairedTagsSet.has(p.tagname) && (n = this.tagsNodeStack.pop(), this.matcher.pop());
|
|
2240
3261
|
let m = !1;
|
|
2241
3262
|
u.length > 0 && u.lastIndexOf("/") === u.length - 1 && (m = !0, c[c.length - 1] === "/" ? (c = c.substr(0, c.length - 1), u = c) : u = u.substr(0, u.length - 1), d = c !== u);
|
|
2242
3263
|
let h = null, g;
|
|
2243
|
-
g =
|
|
3264
|
+
g = Pt(l), c !== t.tagname && this.matcher.push(c, {}, g), c !== u && d && (h = this.buildAttributesMap(u, this.matcher, c), h && Nt(h, i)), c !== t.tagname && (this.isCurrentNodeStopNode = this.isItStopNode());
|
|
2244
3265
|
let _ = s;
|
|
2245
3266
|
if (this.isCurrentNodeStopNode) {
|
|
2246
3267
|
let t = "";
|
|
@@ -2255,7 +3276,7 @@ var wt = function(e) {
|
|
|
2255
3276
|
h && (r[":@"] = h), r.add(i.textNodeName, t), this.matcher.pop(), this.isCurrentNodeStopNode = !1, this.addChild(n, r, this.readonlyMatcher, _);
|
|
2256
3277
|
} else {
|
|
2257
3278
|
if (m) {
|
|
2258
|
-
({tagName: c, tagExp: u} =
|
|
3279
|
+
({tagName: c, tagExp: u} = Xt(i.transformTagName, c, u, i));
|
|
2259
3280
|
let e = new E(c);
|
|
2260
3281
|
h && (e[":@"] = h), this.addChild(n, e, this.readonlyMatcher, _), this.matcher.pop(), this.isCurrentNodeStopNode = !1;
|
|
2261
3282
|
} else if (i.unpairedTagsSet.has(c)) {
|
|
@@ -2273,12 +3294,12 @@ var wt = function(e) {
|
|
|
2273
3294
|
} else r += e[s];
|
|
2274
3295
|
return t.child;
|
|
2275
3296
|
};
|
|
2276
|
-
function
|
|
3297
|
+
function Vt(e, t, n, r) {
|
|
2277
3298
|
this.options.captureMetaData || (r = void 0);
|
|
2278
3299
|
let i = this.options.jPath ? n.toString() : n, a = this.options.updateTag(t.tagname, i, t[":@"]);
|
|
2279
3300
|
a === !1 || (typeof a == "string" && (t.tagname = a), e.addChild(t, r));
|
|
2280
3301
|
}
|
|
2281
|
-
function
|
|
3302
|
+
function Ht(e, t, n) {
|
|
2282
3303
|
let r = this.options.processEntities;
|
|
2283
3304
|
if (!r || !r.enabled) return e;
|
|
2284
3305
|
if (r.allowedTags) {
|
|
@@ -2291,13 +3312,13 @@ function Et(e, t, n) {
|
|
|
2291
3312
|
}
|
|
2292
3313
|
return this.entityDecoder.decode(e);
|
|
2293
3314
|
}
|
|
2294
|
-
function
|
|
3315
|
+
function Ut(e, t, n, r) {
|
|
2295
3316
|
return e &&= (r === void 0 && (r = t.child.length === 0), e = this.parseTextData(e, t.tagname, n, !1, t[":@"] ? Object.keys(t[":@"]).length !== 0 : !1, r), e !== void 0 && e !== "" && t.add(this.options.textNodeName, e), ""), e;
|
|
2296
3317
|
}
|
|
2297
|
-
function
|
|
2298
|
-
return this.stopNodeExpressionsSet.size
|
|
3318
|
+
function Wt() {
|
|
3319
|
+
return this.stopNodeExpressionsSet.size === 0 ? !1 : this.matcher.matchesAny(this.stopNodeExpressionsSet);
|
|
2299
3320
|
}
|
|
2300
|
-
function
|
|
3321
|
+
function Gt(e, t, n = ">") {
|
|
2301
3322
|
let r = 0, i = e.length, a = n.charCodeAt(0), o = n.length > 1 ? n.charCodeAt(1) : -1, s = "", c = t;
|
|
2302
3323
|
for (let n = t; n < i; n++) {
|
|
2303
3324
|
let t = e.charCodeAt(n);
|
|
@@ -2315,18 +3336,18 @@ function kt(e, t, n = ">") {
|
|
|
2315
3336
|
else t === 9 && !r && (s += e.substring(c, n) + " ", c = n + 1);
|
|
2316
3337
|
}
|
|
2317
3338
|
}
|
|
2318
|
-
function
|
|
3339
|
+
function L(e, t, n, r) {
|
|
2319
3340
|
let i = e.indexOf(t, n);
|
|
2320
3341
|
if (i === -1) throw Error(r);
|
|
2321
3342
|
return i + t.length - 1;
|
|
2322
3343
|
}
|
|
2323
|
-
function
|
|
3344
|
+
function Kt(e, t, n, r) {
|
|
2324
3345
|
let i = e.indexOf(t, n);
|
|
2325
3346
|
if (i === -1) throw Error(r);
|
|
2326
3347
|
return i;
|
|
2327
3348
|
}
|
|
2328
|
-
function
|
|
2329
|
-
let i =
|
|
3349
|
+
function qt(e, t, n, r = ">") {
|
|
3350
|
+
let i = Gt(e, t + 1, r);
|
|
2330
3351
|
if (!i) return;
|
|
2331
3352
|
let a = i.data, o = i.index, s = a.search(/\s/), c = a, l = !0;
|
|
2332
3353
|
s !== -1 && (c = a.substring(0, s), a = a.substring(s + 1).trimStart());
|
|
@@ -2343,51 +3364,51 @@ function H(e, t, n, r = ">") {
|
|
|
2343
3364
|
rawTagName: u
|
|
2344
3365
|
};
|
|
2345
3366
|
}
|
|
2346
|
-
function
|
|
3367
|
+
function Jt(e, t, n) {
|
|
2347
3368
|
let r = n, i = 1, a = e.length;
|
|
2348
3369
|
for (; n < a; n++) if (e[n] === "<") {
|
|
2349
3370
|
let a = e.charCodeAt(n + 1);
|
|
2350
3371
|
if (a === 47) {
|
|
2351
|
-
let a =
|
|
3372
|
+
let a = Kt(e, ">", n, `${t} is not closed`);
|
|
2352
3373
|
if (e.substring(n + 2, a).trim() === t && (i--, i === 0)) return {
|
|
2353
3374
|
tagContent: e.substring(r, n),
|
|
2354
3375
|
i: a
|
|
2355
3376
|
};
|
|
2356
3377
|
n = a;
|
|
2357
|
-
} else if (a === 63) n =
|
|
2358
|
-
else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n =
|
|
2359
|
-
else if (a === 33 && e.charCodeAt(n + 2) === 91) n =
|
|
3378
|
+
} else if (a === 63) n = L(e, "?>", n + 1, "StopNode is not closed.");
|
|
3379
|
+
else if (a === 33 && e.charCodeAt(n + 2) === 45 && e.charCodeAt(n + 3) === 45) n = L(e, "-->", n + 3, "StopNode is not closed.");
|
|
3380
|
+
else if (a === 33 && e.charCodeAt(n + 2) === 91) n = L(e, "]]>", n, "StopNode is not closed.") - 2;
|
|
2360
3381
|
else {
|
|
2361
|
-
let r =
|
|
3382
|
+
let r = qt(e, n, !1);
|
|
2362
3383
|
r && ((r && r.tagName) === t && r.tagExp[r.tagExp.length - 1] !== "/" && i++, n = r.closeIndex);
|
|
2363
3384
|
}
|
|
2364
3385
|
}
|
|
2365
3386
|
}
|
|
2366
|
-
function
|
|
3387
|
+
function Yt(e, t, n) {
|
|
2367
3388
|
if (t && typeof e == "string") {
|
|
2368
3389
|
let t = e.trim();
|
|
2369
|
-
return t === "true"
|
|
3390
|
+
return t === "true" ? !0 : t === "false" ? !1 : ut(e, n);
|
|
2370
3391
|
} else if (f(e)) return e;
|
|
2371
3392
|
else return "";
|
|
2372
3393
|
}
|
|
2373
|
-
function
|
|
3394
|
+
function Xt(e, t, n, r) {
|
|
2374
3395
|
if (e) {
|
|
2375
3396
|
let r = e(t);
|
|
2376
3397
|
n === t && (n = r), t = r;
|
|
2377
3398
|
}
|
|
2378
|
-
return t =
|
|
3399
|
+
return t = Zt(t, r), {
|
|
2379
3400
|
tagName: t,
|
|
2380
3401
|
tagExp: n
|
|
2381
3402
|
};
|
|
2382
3403
|
}
|
|
2383
|
-
function
|
|
3404
|
+
function Zt(e, t) {
|
|
2384
3405
|
if (m.includes(e)) throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);
|
|
2385
3406
|
return p.includes(e) ? t.onDangerousProperty(e) : e;
|
|
2386
3407
|
}
|
|
2387
3408
|
//#endregion
|
|
2388
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.
|
|
2389
|
-
var
|
|
2390
|
-
function
|
|
3409
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/node2json.js
|
|
3410
|
+
var R = E.getMetaDataSymbol();
|
|
3411
|
+
function Qt(e, t) {
|
|
2391
3412
|
if (!e || typeof e != "object") return {};
|
|
2392
3413
|
if (!t) return e;
|
|
2393
3414
|
let n = {};
|
|
@@ -2397,22 +3418,22 @@ function It(e, t) {
|
|
|
2397
3418
|
} else n[r] = e[r];
|
|
2398
3419
|
return n;
|
|
2399
3420
|
}
|
|
2400
|
-
function
|
|
2401
|
-
return
|
|
3421
|
+
function $t(e, t, n, r) {
|
|
3422
|
+
return en(e, t, n, r);
|
|
2402
3423
|
}
|
|
2403
|
-
function
|
|
3424
|
+
function en(e, t, n, r) {
|
|
2404
3425
|
let i, a = {};
|
|
2405
3426
|
for (let o = 0; o < e.length; o++) {
|
|
2406
|
-
let s = e[o], c =
|
|
3427
|
+
let s = e[o], c = tn(s);
|
|
2407
3428
|
if (c !== void 0 && c !== t.textNodeName) {
|
|
2408
|
-
let e =
|
|
3429
|
+
let e = Qt(s[":@"] || {}, t.attributeNamePrefix);
|
|
2409
3430
|
n.push(c, e);
|
|
2410
3431
|
}
|
|
2411
3432
|
if (c === t.textNodeName) i === void 0 ? i = s[c] : i += "" + s[c];
|
|
2412
3433
|
else if (c === void 0) continue;
|
|
2413
3434
|
else if (s[c]) {
|
|
2414
|
-
let e =
|
|
2415
|
-
if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ?
|
|
3435
|
+
let e = en(s[c], t, n, r), i = rn(e, t);
|
|
3436
|
+
if (Object.keys(e).length === 0 && t.alwaysCreateTextNode && (e[t.textNodeName] = ""), s[":@"] ? nn(e, s[":@"], r, t) : Object.keys(e).length === 1 && e[t.textNodeName] !== void 0 && !t.alwaysCreateTextNode ? e = e[t.textNodeName] : Object.keys(e).length === 0 && (t.alwaysCreateTextNode ? e[t.textNodeName] = "" : e = ""), s[R] !== void 0 && typeof e == "object" && e && (e[R] = s[R]), a[c] !== void 0 && Object.prototype.hasOwnProperty.call(a, c)) Array.isArray(a[c]) || (a[c] = [a[c]]), a[c].push(e);
|
|
2416
3437
|
else {
|
|
2417
3438
|
let n = t.jPath ? r.toString() : r;
|
|
2418
3439
|
t.isArray(c, n, i) ? a[c] = [e] : a[c] = e;
|
|
@@ -2422,14 +3443,14 @@ function Rt(e, t, n, r) {
|
|
|
2422
3443
|
}
|
|
2423
3444
|
return typeof i == "string" ? i.length > 0 && (a[t.textNodeName] = i) : i !== void 0 && (a[t.textNodeName] = i), a;
|
|
2424
3445
|
}
|
|
2425
|
-
function
|
|
3446
|
+
function tn(e) {
|
|
2426
3447
|
let t = Object.keys(e);
|
|
2427
3448
|
for (let e = 0; e < t.length; e++) {
|
|
2428
3449
|
let n = t[e];
|
|
2429
3450
|
if (n !== ":@") return n;
|
|
2430
3451
|
}
|
|
2431
3452
|
}
|
|
2432
|
-
function
|
|
3453
|
+
function nn(e, t, n, r) {
|
|
2433
3454
|
if (t) {
|
|
2434
3455
|
let i = Object.keys(t), a = i.length;
|
|
2435
3456
|
for (let o = 0; o < a; o++) {
|
|
@@ -2438,15 +3459,15 @@ function Bt(e, t, n, r) {
|
|
|
2438
3459
|
}
|
|
2439
3460
|
}
|
|
2440
3461
|
}
|
|
2441
|
-
function
|
|
3462
|
+
function rn(e, t) {
|
|
2442
3463
|
let { textNodeName: n } = t, r = Object.keys(e).length;
|
|
2443
3464
|
return !!(r === 0 || r === 1 && (e[n] || typeof e[n] == "boolean" || e[n] === 0));
|
|
2444
3465
|
}
|
|
2445
3466
|
//#endregion
|
|
2446
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.
|
|
2447
|
-
var
|
|
3467
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js
|
|
3468
|
+
var an = class {
|
|
2448
3469
|
constructor(e) {
|
|
2449
|
-
this.externalEntities = {}, this.options =
|
|
3470
|
+
this.externalEntities = {}, this.options = Le(e);
|
|
2450
3471
|
}
|
|
2451
3472
|
parse(e, t) {
|
|
2452
3473
|
if (typeof e != "string" && e.toString) e = e.toString();
|
|
@@ -2456,8 +3477,8 @@ var Ht = class {
|
|
|
2456
3477
|
let n = g(e, t);
|
|
2457
3478
|
if (n !== !0) throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`);
|
|
2458
3479
|
}
|
|
2459
|
-
let n = new
|
|
2460
|
-
return this.options.preserveOrder || r === void 0 ? r :
|
|
3480
|
+
let n = new Ft(this.options, this.externalEntities), r = n.parseXml(e);
|
|
3481
|
+
return this.options.preserveOrder || r === void 0 ? r : $t(r, this.options, n.matcher, n.readonlyMatcher);
|
|
2461
3482
|
}
|
|
2462
3483
|
addEntity(e, t) {
|
|
2463
3484
|
if (t.indexOf("&") !== -1) throw Error("Entity value can't have '&'");
|
|
@@ -2471,22 +3492,22 @@ var Ht = class {
|
|
|
2471
3492
|
};
|
|
2472
3493
|
//#endregion
|
|
2473
3494
|
//#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/util.js
|
|
2474
|
-
function
|
|
3495
|
+
function z(e) {
|
|
2475
3496
|
return String(e).replace(/--/g, "- -").replace(/--/g, "- -").replace(/-$/, "- ");
|
|
2476
3497
|
}
|
|
2477
|
-
function
|
|
3498
|
+
function on(e) {
|
|
2478
3499
|
return String(e).replace(/\]\]>/g, "]]]]><![CDATA[>");
|
|
2479
3500
|
}
|
|
2480
|
-
function
|
|
3501
|
+
function B(e) {
|
|
2481
3502
|
return String(e).replace(/"/g, """).replace(/'/g, "'");
|
|
2482
3503
|
}
|
|
2483
3504
|
//#endregion
|
|
2484
3505
|
//#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/orderedJs2Xml.js
|
|
2485
|
-
var
|
|
2486
|
-
function
|
|
3506
|
+
var sn = "\n";
|
|
3507
|
+
function cn(e, t) {
|
|
2487
3508
|
if (!Array.isArray(e) || e.length === 0) return "1.0";
|
|
2488
3509
|
let n = e[0];
|
|
2489
|
-
if (
|
|
3510
|
+
if (V(n) === "?xml") {
|
|
2490
3511
|
let e = n[":@"];
|
|
2491
3512
|
if (e) {
|
|
2492
3513
|
let n = t.attributeNamePrefix + "version";
|
|
@@ -2495,121 +3516,121 @@ function Kt(e, t) {
|
|
|
2495
3516
|
}
|
|
2496
3517
|
return "1.0";
|
|
2497
3518
|
}
|
|
2498
|
-
function
|
|
3519
|
+
function ln(e, t, n, r, i) {
|
|
2499
3520
|
return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
|
|
2500
3521
|
isAttribute: t,
|
|
2501
3522
|
matcher: r.readOnly()
|
|
2502
3523
|
});
|
|
2503
3524
|
}
|
|
2504
|
-
function
|
|
3525
|
+
function un(e, t) {
|
|
2505
3526
|
let n = "";
|
|
2506
|
-
t.format && (n =
|
|
3527
|
+
t.format && (n = sn);
|
|
2507
3528
|
let r = [];
|
|
2508
3529
|
if (t.stopNodes && Array.isArray(t.stopNodes)) for (let e = 0; e < t.stopNodes.length; e++) {
|
|
2509
3530
|
let n = t.stopNodes[e];
|
|
2510
|
-
typeof n == "string" ? r.push(new
|
|
3531
|
+
typeof n == "string" ? r.push(new P(n)) : n instanceof P && r.push(n);
|
|
2511
3532
|
}
|
|
2512
|
-
let i =
|
|
2513
|
-
return
|
|
3533
|
+
let i = Ye("qName", { xmlVersion: cn(e, t) }), a = new F();
|
|
3534
|
+
return dn(e, t, n, a, r, i);
|
|
2514
3535
|
}
|
|
2515
|
-
function
|
|
3536
|
+
function dn(e, t, n, r, i, a) {
|
|
2516
3537
|
let o = "", s = !1;
|
|
2517
3538
|
if (t.maxNestedTags && r.getDepth() > t.maxNestedTags) throw Error("Maximum nested tags exceeded");
|
|
2518
3539
|
if (!Array.isArray(e)) {
|
|
2519
3540
|
if (e != null) {
|
|
2520
3541
|
let n = e.toString();
|
|
2521
|
-
return n =
|
|
3542
|
+
return n = H(n, t), n;
|
|
2522
3543
|
}
|
|
2523
3544
|
return "";
|
|
2524
3545
|
}
|
|
2525
3546
|
for (let c = 0; c < e.length; c++) {
|
|
2526
|
-
let l = e[c], u =
|
|
3547
|
+
let l = e[c], u = V(l);
|
|
2527
3548
|
if (u === void 0) continue;
|
|
2528
|
-
let d = u === t.textNodeName || u === t.cdataPropName || u === t.commentPropName || u[0] === "?" ? u :
|
|
3549
|
+
let d = u === t.textNodeName || u === t.cdataPropName || u === t.commentPropName || u[0] === "?" ? u : ln(u, !1, t, r, a), f = fn(l[":@"], t);
|
|
2529
3550
|
r.push(d, f);
|
|
2530
|
-
let p =
|
|
3551
|
+
let p = gn(r, i);
|
|
2531
3552
|
if (d === t.textNodeName) {
|
|
2532
3553
|
let e = l[u];
|
|
2533
|
-
p || (e = t.tagValueProcessor(d, e), e =
|
|
3554
|
+
p || (e = t.tagValueProcessor(d, e), e = H(e, t)), s && (o += n), o += e, s = !1, r.pop();
|
|
2534
3555
|
continue;
|
|
2535
3556
|
} else if (d === t.cdataPropName) {
|
|
2536
3557
|
s && (o += n);
|
|
2537
|
-
let e = l[u][0][t.textNodeName], i =
|
|
3558
|
+
let e = l[u][0][t.textNodeName], i = on(e);
|
|
2538
3559
|
o += `<![CDATA[${i}]]>`, s = !1, r.pop();
|
|
2539
3560
|
continue;
|
|
2540
3561
|
} else if (d === t.commentPropName) {
|
|
2541
|
-
let e = l[u][0][t.textNodeName], i =
|
|
3562
|
+
let e = l[u][0][t.textNodeName], i = z(e);
|
|
2542
3563
|
o += n + `<!--${i}-->`, s = !0, r.pop();
|
|
2543
3564
|
continue;
|
|
2544
3565
|
} else if (d[0] === "?") {
|
|
2545
|
-
let e =
|
|
3566
|
+
let e = hn(l[":@"], t, p, r, a);
|
|
2546
3567
|
o += (d === "?xml" ? "" : n) + `<${d}${e}?>`, s = !0, r.pop();
|
|
2547
3568
|
continue;
|
|
2548
3569
|
}
|
|
2549
3570
|
let m = n;
|
|
2550
3571
|
m !== "" && (m += t.indentBy);
|
|
2551
|
-
let h = n + `<${d}${
|
|
2552
|
-
g = p ?
|
|
3572
|
+
let h = n + `<${d}${hn(l[":@"], t, p, r, a)}`, g;
|
|
3573
|
+
g = p ? pn(l[u], t) : dn(l[u], t, m, r, i, a), t.unpairedTags.indexOf(d) === -1 ? (!g || g.length === 0) && t.suppressEmptyNode ? o += h + "/>" : g && g.endsWith(">") ? o += h + `>${g}${n}</${d}>` : (o += h + ">", g && n !== "" && (g.includes("/>") || g.includes("</")) ? o += n + t.indentBy + g + n : o += g, o += `</${d}>`) : t.suppressUnpairedNode ? o += h + ">" : o += h + "/>", s = !0, r.pop();
|
|
2553
3574
|
}
|
|
2554
3575
|
return o;
|
|
2555
3576
|
}
|
|
2556
|
-
function
|
|
3577
|
+
function fn(e, t) {
|
|
2557
3578
|
if (!e || t.ignoreAttributes) return null;
|
|
2558
3579
|
let n = {}, r = !1;
|
|
2559
3580
|
for (let i in e) {
|
|
2560
3581
|
if (!Object.prototype.hasOwnProperty.call(e, i)) continue;
|
|
2561
3582
|
let a = i.startsWith(t.attributeNamePrefix) ? i.substr(t.attributeNamePrefix.length) : i;
|
|
2562
|
-
n[a] =
|
|
3583
|
+
n[a] = B(e[i]), r = !0;
|
|
2563
3584
|
}
|
|
2564
3585
|
return r ? n : null;
|
|
2565
3586
|
}
|
|
2566
|
-
function
|
|
3587
|
+
function pn(e, t) {
|
|
2567
3588
|
if (!Array.isArray(e)) return e == null ? "" : e.toString();
|
|
2568
3589
|
let n = "";
|
|
2569
3590
|
for (let r = 0; r < e.length; r++) {
|
|
2570
|
-
let i = e[r], a =
|
|
3591
|
+
let i = e[r], a = V(i);
|
|
2571
3592
|
if (a === t.textNodeName) n += i[a];
|
|
2572
3593
|
else if (a === t.cdataPropName) n += i[a][0][t.textNodeName];
|
|
2573
3594
|
else if (a === t.commentPropName) n += i[a][0][t.textNodeName];
|
|
2574
3595
|
else if (a && a[0] === "?") continue;
|
|
2575
3596
|
else if (a) {
|
|
2576
|
-
let e =
|
|
3597
|
+
let e = mn(i[":@"], t), r = pn(i[a], t);
|
|
2577
3598
|
!r || r.length === 0 ? n += `<${a}${e}/>` : n += `<${a}${e}>${r}</${a}>`;
|
|
2578
3599
|
}
|
|
2579
3600
|
}
|
|
2580
3601
|
return n;
|
|
2581
3602
|
}
|
|
2582
|
-
function
|
|
3603
|
+
function mn(e, t) {
|
|
2583
3604
|
let n = "";
|
|
2584
3605
|
if (e && !t.ignoreAttributes) for (let r in e) {
|
|
2585
3606
|
if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
|
|
2586
3607
|
let i = e[r];
|
|
2587
|
-
i === !0 && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${
|
|
3608
|
+
i === !0 && t.suppressBooleanAttributes ? n += ` ${r.substr(t.attributeNamePrefix.length)}` : n += ` ${r.substr(t.attributeNamePrefix.length)}="${B(i)}"`;
|
|
2588
3609
|
}
|
|
2589
3610
|
return n;
|
|
2590
3611
|
}
|
|
2591
|
-
function
|
|
3612
|
+
function V(e) {
|
|
2592
3613
|
let t = Object.keys(e);
|
|
2593
3614
|
for (let n = 0; n < t.length; n++) {
|
|
2594
3615
|
let r = t[n];
|
|
2595
3616
|
if (Object.prototype.hasOwnProperty.call(e, r) && r !== ":@") return r;
|
|
2596
3617
|
}
|
|
2597
3618
|
}
|
|
2598
|
-
function
|
|
3619
|
+
function hn(e, t, n, r, i) {
|
|
2599
3620
|
let a = "";
|
|
2600
3621
|
if (e && !t.ignoreAttributes) for (let o in e) {
|
|
2601
3622
|
if (!Object.prototype.hasOwnProperty.call(e, o)) continue;
|
|
2602
|
-
let s = o.substr(t.attributeNamePrefix.length), c = n ? s :
|
|
2603
|
-
n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l =
|
|
3623
|
+
let s = o.substr(t.attributeNamePrefix.length), c = n ? s : ln(s, !0, t, r, i), l;
|
|
3624
|
+
n ? l = e[o] : (l = t.attributeValueProcessor(o, e[o]), l = H(l, t)), l === !0 && t.suppressBooleanAttributes ? a += ` ${c}` : a += ` ${c}="${B(l)}"`;
|
|
2604
3625
|
}
|
|
2605
3626
|
return a;
|
|
2606
3627
|
}
|
|
2607
|
-
function
|
|
3628
|
+
function gn(e, t) {
|
|
2608
3629
|
if (!t || t.length === 0) return !1;
|
|
2609
3630
|
for (let n = 0; n < t.length; n++) if (e.matches(t[n])) return !0;
|
|
2610
3631
|
return !1;
|
|
2611
3632
|
}
|
|
2612
|
-
function
|
|
3633
|
+
function H(e, t) {
|
|
2613
3634
|
if (e && e.length > 0 && t.processEntities) for (let n = 0; n < t.entities.length; n++) {
|
|
2614
3635
|
let r = t.entities[n];
|
|
2615
3636
|
e = e.replace(r.regex, r.val);
|
|
@@ -2618,14 +3639,14 @@ function nn(e, t) {
|
|
|
2618
3639
|
}
|
|
2619
3640
|
//#endregion
|
|
2620
3641
|
//#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/ignoreAttributes.js
|
|
2621
|
-
function
|
|
3642
|
+
function _n(e) {
|
|
2622
3643
|
return typeof e == "function" ? e : Array.isArray(e) ? (t) => {
|
|
2623
3644
|
for (let n of e) if (typeof n == "string" && t === n || n instanceof RegExp && n.test(t)) return !0;
|
|
2624
3645
|
} : () => !1;
|
|
2625
3646
|
}
|
|
2626
3647
|
//#endregion
|
|
2627
3648
|
//#region ../../node_modules/.pnpm/fast-xml-builder@1.3.0/node_modules/fast-xml-builder/src/fxb.js
|
|
2628
|
-
var
|
|
3649
|
+
var vn = {
|
|
2629
3650
|
attributeNamePrefix: "@_",
|
|
2630
3651
|
attributesGroupName: !1,
|
|
2631
3652
|
textNodeName: "#text",
|
|
@@ -2674,18 +3695,18 @@ var an = {
|
|
|
2674
3695
|
jPath: !0,
|
|
2675
3696
|
sanitizeName: !1
|
|
2676
3697
|
};
|
|
2677
|
-
function
|
|
2678
|
-
if (this.options = Object.assign({},
|
|
3698
|
+
function U(e) {
|
|
3699
|
+
if (this.options = Object.assign({}, vn, e), this.options.stopNodes && Array.isArray(this.options.stopNodes) && (this.options.stopNodes = this.options.stopNodes.map((e) => typeof e == "string" && e.startsWith("*.") ? ".." + e.substring(2) : e)), this.stopNodeExpressions = [], this.options.stopNodes && Array.isArray(this.options.stopNodes)) for (let e = 0; e < this.options.stopNodes.length; e++) {
|
|
2679
3700
|
let t = this.options.stopNodes[e];
|
|
2680
|
-
typeof t == "string" ? this.stopNodeExpressions.push(new
|
|
3701
|
+
typeof t == "string" ? this.stopNodeExpressions.push(new P(t)) : t instanceof P && this.stopNodeExpressions.push(t);
|
|
2681
3702
|
}
|
|
2682
3703
|
this.options.ignoreAttributes === !0 || this.options.attributesGroupName ? this.isAttribute = function() {
|
|
2683
3704
|
return !1;
|
|
2684
|
-
} : (this.ignoreAttributesFn =
|
|
3705
|
+
} : (this.ignoreAttributesFn = _n(this.options.ignoreAttributes), this.attrPrefixLen = this.options.attributeNamePrefix.length, this.isAttribute = Sn), this.processTextOrObjNode = bn, this.options.format ? (this.indentate = xn, this.tagEndChar = ">\n", this.newLine = "\n") : (this.indentate = function() {
|
|
2685
3706
|
return "";
|
|
2686
3707
|
}, this.tagEndChar = ">", this.newLine = "");
|
|
2687
3708
|
}
|
|
2688
|
-
function
|
|
3709
|
+
function yn(e, t) {
|
|
2689
3710
|
let n = e["?xml"];
|
|
2690
3711
|
if (n && typeof n == "object") {
|
|
2691
3712
|
if (t.attributesGroupName && n[t.attributesGroupName]) {
|
|
@@ -2697,33 +3718,33 @@ function on(e, t) {
|
|
|
2697
3718
|
}
|
|
2698
3719
|
return "1.0";
|
|
2699
3720
|
}
|
|
2700
|
-
function
|
|
3721
|
+
function W(e, t, n, r, i) {
|
|
2701
3722
|
return !n.sanitizeName || i(e) ? e : n.sanitizeName(e, {
|
|
2702
3723
|
isAttribute: t,
|
|
2703
3724
|
matcher: r.readOnly()
|
|
2704
3725
|
});
|
|
2705
3726
|
}
|
|
2706
|
-
|
|
2707
|
-
if (this.options.preserveOrder) return
|
|
3727
|
+
U.prototype.build = function(e) {
|
|
3728
|
+
if (this.options.preserveOrder) return un(e, this.options);
|
|
2708
3729
|
{
|
|
2709
3730
|
Array.isArray(e) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1 && (e = { [this.options.arrayNodeName]: e });
|
|
2710
|
-
let t = new
|
|
3731
|
+
let t = new F(), n = Ye("qName", { xmlVersion: yn(e, this.options) });
|
|
2711
3732
|
return this.j2x(e, 0, t, n).val;
|
|
2712
3733
|
}
|
|
2713
|
-
},
|
|
3734
|
+
}, U.prototype.j2x = function(e, t, n, r) {
|
|
2714
3735
|
let i = "", a = "";
|
|
2715
3736
|
if (this.options.maxNestedTags && n.getDepth() >= this.options.maxNestedTags) throw Error("Maximum nested tags exceeded");
|
|
2716
3737
|
let o = this.options.jPath ? n.toString() : n, s = this.checkStopNode(n);
|
|
2717
3738
|
for (let c in e) {
|
|
2718
3739
|
if (!Object.prototype.hasOwnProperty.call(e, c)) continue;
|
|
2719
|
-
let l = c === this.options.textNodeName || c === this.options.cdataPropName || c === this.options.commentPropName || this.options.attributesGroupName && c === this.options.attributesGroupName || this.isAttribute(c) || c[0] === "?" ? c :
|
|
3740
|
+
let l = c === this.options.textNodeName || c === this.options.cdataPropName || c === this.options.commentPropName || this.options.attributesGroupName && c === this.options.attributesGroupName || this.isAttribute(c) || c[0] === "?" ? c : W(c, !1, this.options, n, r);
|
|
2720
3741
|
if (e[c] === void 0) this.isAttribute(c) && (a += "");
|
|
2721
3742
|
else if (e[c] === null) this.isAttribute(c) || l === this.options.cdataPropName || l === this.options.commentPropName ? a += "" : l[0] === "?" ? a += this.indentate(t) + "<" + l + "?" + this.tagEndChar : a += this.indentate(t) + "<" + l + "/" + this.tagEndChar;
|
|
2722
3743
|
else if (e[c] instanceof Date) a += this.buildTextValNode(e[c], l, "", t, n);
|
|
2723
3744
|
else if (typeof e[c] != "object") {
|
|
2724
3745
|
let u = this.isAttribute(c);
|
|
2725
3746
|
if (u && !this.ignoreAttributesFn(u, o)) {
|
|
2726
|
-
let t =
|
|
3747
|
+
let t = W(u, !0, this.options, n, r);
|
|
2727
3748
|
i += this.buildAttrPairStr(t, "" + e[c], s);
|
|
2728
3749
|
} else if (!u) if (c === this.options.textNodeName) {
|
|
2729
3750
|
let t = this.options.tagValueProcessor(c, "" + e[c]);
|
|
@@ -2762,7 +3783,7 @@ W.prototype.build = function(e) {
|
|
|
2762
3783
|
} else if (this.options.attributesGroupName && c === this.options.attributesGroupName) {
|
|
2763
3784
|
let t = Object.keys(e[c]), a = t.length;
|
|
2764
3785
|
for (let o = 0; o < a; o++) {
|
|
2765
|
-
let a =
|
|
3786
|
+
let a = W(t[o], !0, this.options, n, r);
|
|
2766
3787
|
i += this.buildAttrPairStr(a, "" + e[c][t[o]], s);
|
|
2767
3788
|
}
|
|
2768
3789
|
} else a += this.processTextOrObjNode(e[c], l, t, n, r);
|
|
@@ -2771,10 +3792,10 @@ W.prototype.build = function(e) {
|
|
|
2771
3792
|
attrStr: i,
|
|
2772
3793
|
val: a
|
|
2773
3794
|
};
|
|
2774
|
-
},
|
|
2775
|
-
return n || (t = this.options.attributeValueProcessor(e, "" + t), t = this.replaceEntitiesValue(t)), this.options.suppressBooleanAttributes && t === "true" ? " " + e : " " + e + "=\"" +
|
|
3795
|
+
}, U.prototype.buildAttrPairStr = function(e, t, n) {
|
|
3796
|
+
return n || (t = this.options.attributeValueProcessor(e, "" + t), t = this.replaceEntitiesValue(t)), this.options.suppressBooleanAttributes && t === "true" ? " " + e : " " + e + "=\"" + B(t) + "\"";
|
|
2776
3797
|
};
|
|
2777
|
-
function
|
|
3798
|
+
function bn(e, t, n, r, i) {
|
|
2778
3799
|
let a = this.extractAttributes(e);
|
|
2779
3800
|
if (r.push(t, a), this.checkStopNode(r)) {
|
|
2780
3801
|
let i = this.buildRawContent(e), a = this.buildAttributesForStopNode(e);
|
|
@@ -2783,7 +3804,7 @@ function cn(e, t, n, r, i) {
|
|
|
2783
3804
|
let o = this.j2x(e, n + 1, r, i);
|
|
2784
3805
|
return r.pop(), t[0] === "?" ? this.buildTextValNode("", t, o.attrStr, n, r) : e[this.options.textNodeName] !== void 0 && Object.keys(e).length === 1 ? this.buildTextValNode(e[this.options.textNodeName], t, o.attrStr, n, r) : this.buildObjectNode(o.val, t, o.attrStr, n);
|
|
2785
3806
|
}
|
|
2786
|
-
|
|
3807
|
+
U.prototype.extractAttributes = function(e) {
|
|
2787
3808
|
if (!e || typeof e != "object") return null;
|
|
2788
3809
|
let t = {}, n = !1;
|
|
2789
3810
|
if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
|
|
@@ -2791,15 +3812,15 @@ W.prototype.extractAttributes = function(e) {
|
|
|
2791
3812
|
for (let e in r) {
|
|
2792
3813
|
if (!Object.prototype.hasOwnProperty.call(r, e)) continue;
|
|
2793
3814
|
let i = e.startsWith(this.options.attributeNamePrefix) ? e.substring(this.options.attributeNamePrefix.length) : e;
|
|
2794
|
-
t[i] =
|
|
3815
|
+
t[i] = B(r[e]), n = !0;
|
|
2795
3816
|
}
|
|
2796
3817
|
} else for (let r in e) {
|
|
2797
3818
|
if (!Object.prototype.hasOwnProperty.call(e, r)) continue;
|
|
2798
3819
|
let i = this.isAttribute(r);
|
|
2799
|
-
i && (t[i] =
|
|
3820
|
+
i && (t[i] = B(e[r]), n = !0);
|
|
2800
3821
|
}
|
|
2801
3822
|
return n ? t : null;
|
|
2802
|
-
},
|
|
3823
|
+
}, U.prototype.buildRawContent = function(e) {
|
|
2803
3824
|
if (typeof e == "string") return e;
|
|
2804
3825
|
if (typeof e != "object" || !e) return String(e);
|
|
2805
3826
|
if (e[this.options.textNodeName] !== void 0) return e[this.options.textNodeName];
|
|
@@ -2820,7 +3841,7 @@ W.prototype.extractAttributes = function(e) {
|
|
|
2820
3841
|
} else t += `<${n}>${r}</${n}>`;
|
|
2821
3842
|
}
|
|
2822
3843
|
return t;
|
|
2823
|
-
},
|
|
3844
|
+
}, U.prototype.buildAttributesForStopNode = function(e) {
|
|
2824
3845
|
if (!e || typeof e != "object") return "";
|
|
2825
3846
|
let t = "";
|
|
2826
3847
|
if (this.options.attributesGroupName && e[this.options.attributesGroupName]) {
|
|
@@ -2828,84 +3849,84 @@ W.prototype.extractAttributes = function(e) {
|
|
|
2828
3849
|
for (let e in n) {
|
|
2829
3850
|
if (!Object.prototype.hasOwnProperty.call(n, e)) continue;
|
|
2830
3851
|
let r = e.startsWith(this.options.attributeNamePrefix) ? e.substring(this.options.attributeNamePrefix.length) : e, i = n[e];
|
|
2831
|
-
i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" +
|
|
3852
|
+
i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + B(i) + "\"";
|
|
2832
3853
|
}
|
|
2833
3854
|
} else for (let n in e) {
|
|
2834
3855
|
if (!Object.prototype.hasOwnProperty.call(e, n)) continue;
|
|
2835
3856
|
let r = this.isAttribute(n);
|
|
2836
3857
|
if (r) {
|
|
2837
3858
|
let i = e[n];
|
|
2838
|
-
i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" +
|
|
3859
|
+
i === !0 && this.options.suppressBooleanAttributes ? t += " " + r : t += " " + r + "=\"" + B(i) + "\"";
|
|
2839
3860
|
}
|
|
2840
3861
|
}
|
|
2841
3862
|
return t;
|
|
2842
|
-
},
|
|
3863
|
+
}, U.prototype.buildObjectNode = function(e, t, n, r) {
|
|
2843
3864
|
if (e === "") return t[0] === "?" ? this.indentate(r) + "<" + t + n + "?" + this.tagEndChar : this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar;
|
|
2844
3865
|
if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
|
|
2845
3866
|
{
|
|
2846
3867
|
let i = "</" + t + this.tagEndChar, a = "";
|
|
2847
|
-
return t[0] === "?" && (a = "?", i = ""), (n || n === "") && e.indexOf("<") === -1 ? this.indentate(r) + "<" + t + n + a + ">" + e + i : this.options.commentPropName !== !1 && t === this.options.commentPropName && a.length === 0 ? this.indentate(r) + `<!--${
|
|
3868
|
+
return t[0] === "?" && (a = "?", i = ""), (n || n === "") && e.indexOf("<") === -1 ? this.indentate(r) + "<" + t + n + a + ">" + e + i : this.options.commentPropName !== !1 && t === this.options.commentPropName && a.length === 0 ? this.indentate(r) + `<!--${z(e)}-->` + this.newLine : this.indentate(r) + "<" + t + n + a + this.tagEndChar + e + this.indentate(r) + i;
|
|
2848
3869
|
}
|
|
2849
|
-
},
|
|
3870
|
+
}, U.prototype.closeTag = function(e) {
|
|
2850
3871
|
let t = "";
|
|
2851
3872
|
return this.options.unpairedTags.indexOf(e) === -1 ? t = this.options.suppressEmptyNode ? "/" : `></${e}` : this.options.suppressUnpairedNode || (t = "/"), t;
|
|
2852
|
-
},
|
|
3873
|
+
}, U.prototype.checkStopNode = function(e) {
|
|
2853
3874
|
if (!this.stopNodeExpressions || this.stopNodeExpressions.length === 0) return !1;
|
|
2854
3875
|
for (let t = 0; t < this.stopNodeExpressions.length; t++) if (e.matches(this.stopNodeExpressions[t])) return !0;
|
|
2855
3876
|
return !1;
|
|
2856
|
-
},
|
|
3877
|
+
}, U.prototype.buildTextValNode = function(e, t, n, r, i) {
|
|
2857
3878
|
if (this.options.cdataPropName !== !1 && t === this.options.cdataPropName) {
|
|
2858
|
-
let t =
|
|
3879
|
+
let t = on(e);
|
|
2859
3880
|
return this.indentate(r) + `<![CDATA[${t}]]>` + this.newLine;
|
|
2860
3881
|
} else if (this.options.commentPropName !== !1 && t === this.options.commentPropName) {
|
|
2861
|
-
let t =
|
|
3882
|
+
let t = z(e);
|
|
2862
3883
|
return this.indentate(r) + `<!--${t}-->` + this.newLine;
|
|
2863
3884
|
} else if (t[0] === "?") return this.indentate(r) + "<" + t + n + "?" + this.tagEndChar;
|
|
2864
3885
|
else {
|
|
2865
3886
|
let i = this.options.tagValueProcessor(t, e);
|
|
2866
3887
|
return i = this.replaceEntitiesValue(i), i === "" ? this.indentate(r) + "<" + t + n + this.closeTag(t) + this.tagEndChar : this.indentate(r) + "<" + t + n + ">" + i + "</" + t + this.tagEndChar;
|
|
2867
3888
|
}
|
|
2868
|
-
},
|
|
3889
|
+
}, U.prototype.replaceEntitiesValue = function(e) {
|
|
2869
3890
|
if (e && e.length > 0 && this.options.processEntities) for (let t = 0; t < this.options.entities.length; t++) {
|
|
2870
3891
|
let n = this.options.entities[t];
|
|
2871
3892
|
e = e.replace(n.regex, n.val);
|
|
2872
3893
|
}
|
|
2873
3894
|
return e;
|
|
2874
3895
|
};
|
|
2875
|
-
function
|
|
3896
|
+
function xn(e) {
|
|
2876
3897
|
return this.options.indentBy.repeat(e);
|
|
2877
3898
|
}
|
|
2878
|
-
function
|
|
3899
|
+
function Sn(e) {
|
|
2879
3900
|
return e.startsWith(this.options.attributeNamePrefix) && e !== this.options.textNodeName ? e.substr(this.attrPrefixLen) : !1;
|
|
2880
3901
|
}
|
|
2881
3902
|
//#endregion
|
|
2882
|
-
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.
|
|
2883
|
-
var
|
|
3903
|
+
//#region ../../node_modules/.pnpm/fast-xml-parser@5.10.0/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js
|
|
3904
|
+
var Cn = U, G = e.object({
|
|
2884
3905
|
created_at: e.string(),
|
|
2885
3906
|
updated_at: e.string()
|
|
2886
|
-
}),
|
|
3907
|
+
}), wn = e.object({
|
|
2887
3908
|
id: e.string(),
|
|
2888
3909
|
version: e.string().optional()
|
|
2889
|
-
}),
|
|
3910
|
+
}), Tn = e.object({
|
|
2890
3911
|
name: e.string(),
|
|
2891
3912
|
version: e.string()
|
|
2892
|
-
}),
|
|
3913
|
+
}), En = e.object({
|
|
2893
3914
|
name: e.string(),
|
|
2894
3915
|
value: e.string().optional()
|
|
2895
|
-
}),
|
|
3916
|
+
}), Dn = e.object({
|
|
2896
3917
|
name: e.string().max(255),
|
|
2897
3918
|
code: e.string().max(1e5),
|
|
2898
|
-
supported_triggers: e.array(
|
|
3919
|
+
supported_triggers: e.array(wn).optional(),
|
|
2899
3920
|
runtime: e.string().max(50).optional(),
|
|
2900
|
-
dependencies: e.array(
|
|
2901
|
-
secrets: e.array(
|
|
3921
|
+
dependencies: e.array(Tn).optional(),
|
|
3922
|
+
secrets: e.array(En).optional(),
|
|
2902
3923
|
is_system: e.boolean().optional(),
|
|
2903
3924
|
inherit: e.boolean().optional()
|
|
2904
3925
|
});
|
|
2905
|
-
|
|
3926
|
+
Dn.partial().extend({
|
|
2906
3927
|
status: e.enum(["draft", "built"]).optional(),
|
|
2907
3928
|
deployed_at: e.string().optional()
|
|
2908
|
-
}),
|
|
3929
|
+
}), Dn.extend({
|
|
2909
3930
|
id: e.string(),
|
|
2910
3931
|
tenant_id: e.string(),
|
|
2911
3932
|
status: e.enum(["draft", "built"]).default("built"),
|
|
@@ -2915,23 +3936,25 @@ hn.partial().extend({
|
|
|
2915
3936
|
value: e.string().optional()
|
|
2916
3937
|
})).optional()
|
|
2917
3938
|
}).extend(G.shape);
|
|
2918
|
-
|
|
3939
|
+
//#endregion
|
|
3940
|
+
//#region ../adapter-interfaces/dist/adapter-interfaces.mjs
|
|
3941
|
+
var On = e.string(), kn = e.enum([
|
|
2919
3942
|
"unspecified",
|
|
2920
3943
|
"pending",
|
|
2921
3944
|
"final",
|
|
2922
3945
|
"partial",
|
|
2923
3946
|
"canceled",
|
|
2924
3947
|
"suspended"
|
|
2925
|
-
]),
|
|
3948
|
+
]), An = e.object({
|
|
2926
3949
|
id: e.string(),
|
|
2927
3950
|
msg: e.string(),
|
|
2928
3951
|
url: e.string().optional()
|
|
2929
|
-
}),
|
|
3952
|
+
}), jn = e.object({
|
|
2930
3953
|
action_name: e.string(),
|
|
2931
|
-
error:
|
|
3954
|
+
error: An.nullable(),
|
|
2932
3955
|
started_at: e.string(),
|
|
2933
3956
|
ended_at: e.string()
|
|
2934
|
-
}),
|
|
3957
|
+
}), Mn = e.object({
|
|
2935
3958
|
level: e.enum([
|
|
2936
3959
|
"log",
|
|
2937
3960
|
"info",
|
|
@@ -2940,17 +3963,17 @@ var gn = e.string(), _n = e.enum([
|
|
|
2940
3963
|
"debug"
|
|
2941
3964
|
]),
|
|
2942
3965
|
message: e.string()
|
|
2943
|
-
}),
|
|
3966
|
+
}), Nn = e.array(e.object({
|
|
2944
3967
|
action_name: e.string(),
|
|
2945
|
-
lines: e.array(
|
|
3968
|
+
lines: e.array(Mn)
|
|
2946
3969
|
}));
|
|
2947
3970
|
e.object({
|
|
2948
3971
|
id: e.string(),
|
|
2949
3972
|
tenant_id: e.string(),
|
|
2950
|
-
trigger_id:
|
|
2951
|
-
status:
|
|
2952
|
-
results: e.array(
|
|
2953
|
-
logs:
|
|
3973
|
+
trigger_id: On,
|
|
3974
|
+
status: kn,
|
|
3975
|
+
results: e.array(jn),
|
|
3976
|
+
logs: Nn.optional(),
|
|
2954
3977
|
created_at: e.string(),
|
|
2955
3978
|
updated_at: e.string()
|
|
2956
3979
|
}).omit({
|
|
@@ -2961,21 +3984,21 @@ e.object({
|
|
|
2961
3984
|
action_id: e.string(),
|
|
2962
3985
|
code: e.string().max(1e5),
|
|
2963
3986
|
runtime: e.string().max(50).optional(),
|
|
2964
|
-
dependencies: e.array(
|
|
2965
|
-
secrets: e.array(
|
|
2966
|
-
supported_triggers: e.array(
|
|
3987
|
+
dependencies: e.array(Tn).optional(),
|
|
3988
|
+
secrets: e.array(En).optional(),
|
|
3989
|
+
supported_triggers: e.array(wn).optional(),
|
|
2967
3990
|
deployed: e.boolean().default(!0)
|
|
2968
3991
|
}).extend({
|
|
2969
3992
|
id: e.string(),
|
|
2970
3993
|
tenant_id: e.string(),
|
|
2971
3994
|
number: e.number().int()
|
|
2972
3995
|
}).extend(G.shape);
|
|
2973
|
-
var
|
|
3996
|
+
var Pn = e.enum([
|
|
2974
3997
|
"user_action",
|
|
2975
3998
|
"admin_action",
|
|
2976
3999
|
"system",
|
|
2977
4000
|
"api"
|
|
2978
|
-
]),
|
|
4001
|
+
]), Fn = e.object({
|
|
2979
4002
|
type: e.enum([
|
|
2980
4003
|
"user",
|
|
2981
4004
|
"admin",
|
|
@@ -2989,7 +4012,7 @@ var Sn = e.enum([
|
|
|
2989
4012
|
org_name: e.string().optional(),
|
|
2990
4013
|
scopes: e.array(e.string()).optional(),
|
|
2991
4014
|
client_id: e.string().optional()
|
|
2992
|
-
}),
|
|
4015
|
+
}), In = e.object({
|
|
2993
4016
|
type: e.string(),
|
|
2994
4017
|
id: e.string(),
|
|
2995
4018
|
before: e.record(e.string(), e.unknown()).optional(),
|
|
@@ -2998,25 +4021,26 @@ var Sn = e.enum([
|
|
|
2998
4021
|
old: e.unknown(),
|
|
2999
4022
|
new: e.unknown()
|
|
3000
4023
|
})).optional()
|
|
3001
|
-
}),
|
|
4024
|
+
}), Ln = e.object({
|
|
3002
4025
|
method: e.string(),
|
|
3003
4026
|
path: e.string(),
|
|
3004
4027
|
query: e.record(e.string(), e.string()).optional(),
|
|
3005
4028
|
body: e.unknown().optional(),
|
|
3006
4029
|
ip: e.string(),
|
|
3007
4030
|
user_agent: e.string().optional(),
|
|
3008
|
-
correlation_id: e.string().optional()
|
|
3009
|
-
|
|
4031
|
+
correlation_id: e.string().optional(),
|
|
4032
|
+
redirect_uri: e.string().optional()
|
|
4033
|
+
}), Rn = e.object({
|
|
3010
4034
|
status_code: e.number(),
|
|
3011
4035
|
body: e.unknown().optional()
|
|
3012
|
-
}),
|
|
4036
|
+
}), zn = e.object({
|
|
3013
4037
|
country_code: e.string(),
|
|
3014
4038
|
city_name: e.string(),
|
|
3015
4039
|
latitude: e.string(),
|
|
3016
4040
|
longitude: e.string(),
|
|
3017
4041
|
time_zone: e.string(),
|
|
3018
4042
|
continent_code: e.string()
|
|
3019
|
-
}),
|
|
4043
|
+
}), Bn = e.object({
|
|
3020
4044
|
name: e.string(),
|
|
3021
4045
|
version: e.string(),
|
|
3022
4046
|
env: e.record(e.string(), e.string()).optional()
|
|
@@ -3026,11 +4050,11 @@ e.object({
|
|
|
3026
4050
|
event_type: e.string(),
|
|
3027
4051
|
log_type: e.string(),
|
|
3028
4052
|
description: e.string().optional(),
|
|
3029
|
-
category:
|
|
3030
|
-
actor:
|
|
3031
|
-
target:
|
|
3032
|
-
request:
|
|
3033
|
-
response:
|
|
4053
|
+
category: Pn,
|
|
4054
|
+
actor: Fn,
|
|
4055
|
+
target: In,
|
|
4056
|
+
request: Ln,
|
|
4057
|
+
response: Rn.optional(),
|
|
3034
4058
|
connection: e.string().optional(),
|
|
3035
4059
|
connection_id: e.string().optional(),
|
|
3036
4060
|
client_name: e.string().optional(),
|
|
@@ -3038,8 +4062,8 @@ e.object({
|
|
|
3038
4062
|
strategy_type: e.string().optional(),
|
|
3039
4063
|
audience: e.string().optional(),
|
|
3040
4064
|
scope: e.string().optional(),
|
|
3041
|
-
location:
|
|
3042
|
-
auth0_client:
|
|
4065
|
+
location: zn.optional(),
|
|
4066
|
+
auth0_client: Bn.optional(),
|
|
3043
4067
|
hostname: e.string(),
|
|
3044
4068
|
is_mobile: e.boolean().optional(),
|
|
3045
4069
|
timestamp: e.string()
|
|
@@ -3054,14 +4078,14 @@ e.object({
|
|
|
3054
4078
|
"SEND_REQUEST",
|
|
3055
4079
|
"SEND_EMAIL"
|
|
3056
4080
|
]), e.enum(["VERIFY_EMAIL"]);
|
|
3057
|
-
var
|
|
4081
|
+
var Vn = e.object({
|
|
3058
4082
|
require_mx_record: e.boolean().optional(),
|
|
3059
4083
|
block_aliases: e.boolean().optional(),
|
|
3060
4084
|
block_free_emails: e.boolean().optional(),
|
|
3061
4085
|
block_disposable_emails: e.boolean().optional(),
|
|
3062
4086
|
blocklist: e.array(e.string()).optional(),
|
|
3063
4087
|
allowlist: e.array(e.string()).optional()
|
|
3064
|
-
}),
|
|
4088
|
+
}), Hn = e.object({
|
|
3065
4089
|
id: e.string(),
|
|
3066
4090
|
alias: e.string().max(100).optional(),
|
|
3067
4091
|
type: e.literal("AUTH0"),
|
|
@@ -3073,7 +4097,7 @@ var kn = e.object({
|
|
|
3073
4097
|
user_id: e.string(),
|
|
3074
4098
|
changes: e.record(e.string(), e.any())
|
|
3075
4099
|
})
|
|
3076
|
-
}),
|
|
4100
|
+
}), Un = e.object({
|
|
3077
4101
|
id: e.string(),
|
|
3078
4102
|
alias: e.string().max(100).optional(),
|
|
3079
4103
|
type: e.literal("EMAIL"),
|
|
@@ -3082,13 +4106,13 @@ var kn = e.object({
|
|
|
3082
4106
|
mask_output: e.boolean().optional(),
|
|
3083
4107
|
params: e.object({
|
|
3084
4108
|
email: e.string(),
|
|
3085
|
-
rules:
|
|
4109
|
+
rules: Vn.optional()
|
|
3086
4110
|
})
|
|
3087
|
-
}),
|
|
4111
|
+
}), Wn = e.enum([
|
|
3088
4112
|
"change-email",
|
|
3089
4113
|
"account",
|
|
3090
4114
|
"custom"
|
|
3091
|
-
]),
|
|
4115
|
+
]), Gn = e.object({
|
|
3092
4116
|
id: e.string(),
|
|
3093
4117
|
alias: e.string().max(100).optional(),
|
|
3094
4118
|
type: e.literal("REDIRECT"),
|
|
@@ -3096,17 +4120,17 @@ var kn = e.object({
|
|
|
3096
4120
|
allow_failure: e.boolean().optional(),
|
|
3097
4121
|
mask_output: e.boolean().optional(),
|
|
3098
4122
|
params: e.object({
|
|
3099
|
-
target:
|
|
4123
|
+
target: Wn.openapi({ description: "The predefined target to redirect to, or 'custom' for a custom URL" }),
|
|
3100
4124
|
custom_url: e.string().optional().openapi({ description: "Custom URL to redirect to when target is 'custom'" })
|
|
3101
4125
|
})
|
|
3102
|
-
}),
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
4126
|
+
}), Kn = e.union([
|
|
4127
|
+
Hn,
|
|
4128
|
+
Un,
|
|
4129
|
+
Gn
|
|
3106
4130
|
]);
|
|
3107
4131
|
e.object({
|
|
3108
4132
|
name: e.string().min(1).max(150).openapi({ description: "The name of the flow" }),
|
|
3109
|
-
actions: e.array(
|
|
4133
|
+
actions: e.array(Kn).optional().default([]).openapi({ description: "The list of actions to execute in sequence" })
|
|
3110
4134
|
}).extend(G.shape).extend({ id: e.string().openapi({
|
|
3111
4135
|
description: "Unique identifier for the flow",
|
|
3112
4136
|
example: "af_12tMpdJ3iek7svMyZkSh5M"
|
|
@@ -3123,7 +4147,7 @@ e.object({
|
|
|
3123
4147
|
total: e.number().optional(),
|
|
3124
4148
|
next: e.string().optional()
|
|
3125
4149
|
});
|
|
3126
|
-
var
|
|
4150
|
+
var qn = e.object({
|
|
3127
4151
|
email: e.string().optional(),
|
|
3128
4152
|
email_verified: e.boolean().optional(),
|
|
3129
4153
|
name: e.string().optional(),
|
|
@@ -3132,7 +4156,7 @@ var Fn = e.object({
|
|
|
3132
4156
|
phone_number: e.string().optional(),
|
|
3133
4157
|
phone_verified: e.boolean().optional(),
|
|
3134
4158
|
family_name: e.string().optional()
|
|
3135
|
-
}).catchall(e.any()),
|
|
4159
|
+
}).catchall(e.any()), Jn = e.object({
|
|
3136
4160
|
connection: e.string(),
|
|
3137
4161
|
user_id: e.string(),
|
|
3138
4162
|
provider: e.string(),
|
|
@@ -3145,15 +4169,15 @@ var Fn = e.object({
|
|
|
3145
4169
|
access_token: e.string().optional(),
|
|
3146
4170
|
access_token_secret: e.string().optional(),
|
|
3147
4171
|
refresh_token: e.string().optional(),
|
|
3148
|
-
profileData:
|
|
3149
|
-
}),
|
|
4172
|
+
profileData: qn.optional()
|
|
4173
|
+
}), Yn = e.object({
|
|
3150
4174
|
formatted: e.string().optional(),
|
|
3151
4175
|
street_address: e.string().optional(),
|
|
3152
4176
|
locality: e.string().optional(),
|
|
3153
4177
|
region: e.string().optional(),
|
|
3154
4178
|
postal_code: e.string().optional(),
|
|
3155
4179
|
country: e.string().optional()
|
|
3156
|
-
}).optional(),
|
|
4180
|
+
}).optional(), Xn = e.object({
|
|
3157
4181
|
email: e.string().transform((e) => e.toLowerCase()).optional(),
|
|
3158
4182
|
username: e.string().refine((e) => !e.includes("@"), { message: "Usernames must not contain \"@\". Use the email field for email addresses." }).optional(),
|
|
3159
4183
|
phone_number: e.string().optional(),
|
|
@@ -3176,9 +4200,9 @@ var Fn = e.object({
|
|
|
3176
4200
|
gender: e.string().optional(),
|
|
3177
4201
|
birthdate: e.string().optional(),
|
|
3178
4202
|
zoneinfo: e.string().optional(),
|
|
3179
|
-
address:
|
|
4203
|
+
address: Yn
|
|
3180
4204
|
});
|
|
3181
|
-
|
|
4205
|
+
Xn.extend({
|
|
3182
4206
|
email_verified: e.boolean().default(!1),
|
|
3183
4207
|
verify_email: e.boolean().optional(),
|
|
3184
4208
|
last_ip: e.string().optional(),
|
|
@@ -3198,24 +4222,24 @@ Rn.extend({
|
|
|
3198
4222
|
is_social: e.boolean(),
|
|
3199
4223
|
email: e.string().optional(),
|
|
3200
4224
|
login_count: e.number().default(0),
|
|
3201
|
-
identities: e.array(
|
|
3202
|
-
}).omit({ registration_completed_at: !0 }),
|
|
4225
|
+
identities: e.array(Jn).optional()
|
|
4226
|
+
}).omit({ registration_completed_at: !0 }), Xn.extend({
|
|
3203
4227
|
login_count: e.number(),
|
|
3204
4228
|
multifactor: e.array(e.string()).optional(),
|
|
3205
4229
|
last_ip: e.string().optional(),
|
|
3206
4230
|
last_login: e.string().optional(),
|
|
3207
4231
|
user_id: e.string()
|
|
3208
4232
|
}).catchall(e.any());
|
|
3209
|
-
var
|
|
4233
|
+
var Zn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Qn = (e = 21) => {
|
|
3210
4234
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
3211
|
-
for (; e--;) t +=
|
|
4235
|
+
for (; e--;) t += Zn[n[e] & 63];
|
|
3212
4236
|
return t;
|
|
3213
|
-
},
|
|
4237
|
+
}, $n = e.object({
|
|
3214
4238
|
client_id: e.string().optional().openapi({ description: "ID of this client. Generated server-side if omitted (Auth0 behavior)." }),
|
|
3215
4239
|
name: e.string().min(1).openapi({ description: "Name of this client (min length: 1 character, does not allow < or >)." }),
|
|
3216
4240
|
description: e.string().max(140).optional().openapi({ description: "Free text description of this client (max length: 140 characters)." }),
|
|
3217
4241
|
global: e.boolean().default(!1).openapi({ description: "Whether this is your global 'All Applications' client representing legacy tenant settings (true) or a regular client (false)." }),
|
|
3218
|
-
client_secret: e.string().default(() =>
|
|
4242
|
+
client_secret: e.string().default(() => Qn()).optional().openapi({ description: "Client secret (which you must not make public)." }),
|
|
3219
4243
|
app_type: e.enum([
|
|
3220
4244
|
"native",
|
|
3221
4245
|
"spa",
|
|
@@ -3332,8 +4356,8 @@ var zn = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Bn
|
|
|
3332
4356
|
e.object({
|
|
3333
4357
|
created_at: e.string(),
|
|
3334
4358
|
updated_at: e.string()
|
|
3335
|
-
}).extend(
|
|
3336
|
-
var
|
|
4359
|
+
}).extend($n.shape).extend({ client_id: e.string() });
|
|
4360
|
+
var er = e.object({
|
|
3337
4361
|
client_id: e.string().min(1).openapi({ description: "ID of the client." }),
|
|
3338
4362
|
audience: e.string().min(1).openapi({ description: "The audience (API identifier) of this client grant." }),
|
|
3339
4363
|
scope: e.array(e.string()).optional().openapi({ description: "Scopes allowed for this client grant." }),
|
|
@@ -3346,15 +4370,15 @@ var Hn = e.object({
|
|
|
3346
4370
|
is_system: e.boolean().optional().openapi({ description: "If enabled, this grant is a special grant created by Auth0. It cannot be modified or deleted directly." }),
|
|
3347
4371
|
subject_type: e.enum(["client", "user"]).optional().openapi({ description: "The type of application access the client grant allows. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." }),
|
|
3348
4372
|
authorization_details_types: e.array(e.string()).optional().openapi({ description: "Types of authorization_details allowed for this client grant. Use of this field is subject to the applicable Free Trial terms in Okta's Master Subscription Agreement." })
|
|
3349
|
-
}),
|
|
4373
|
+
}), tr = e.object({ id: e.string().openapi({ description: "ID of the client grant." }) }).extend(er.shape).extend({
|
|
3350
4374
|
created_at: e.string().optional(),
|
|
3351
4375
|
updated_at: e.string().optional()
|
|
3352
4376
|
});
|
|
3353
|
-
e.array(
|
|
3354
|
-
var
|
|
4377
|
+
e.array(tr);
|
|
4378
|
+
var nr = e.enum(["iat", "rat"]), rr = e.object({
|
|
3355
4379
|
id: e.string(),
|
|
3356
4380
|
token_hash: e.string(),
|
|
3357
|
-
type:
|
|
4381
|
+
type: nr,
|
|
3358
4382
|
client_id: e.string().optional(),
|
|
3359
4383
|
sub: e.string().optional(),
|
|
3360
4384
|
constraints: e.record(e.string(), e.unknown()).optional(),
|
|
@@ -3365,23 +4389,23 @@ e.object({
|
|
|
3365
4389
|
created_at: e.string(),
|
|
3366
4390
|
used_at: e.string().optional(),
|
|
3367
4391
|
revoked_at: e.string().optional()
|
|
3368
|
-
}).extend(
|
|
4392
|
+
}).extend(rr.shape);
|
|
3369
4393
|
var K = e.object({
|
|
3370
4394
|
x: e.number(),
|
|
3371
4395
|
y: e.number()
|
|
3372
|
-
}),
|
|
4396
|
+
}), ir = /* @__PURE__ */ function(e) {
|
|
3373
4397
|
return e.RICH_TEXT = "RICH_TEXT", e.NEXT_BUTTON = "NEXT_BUTTON", e.BACK_BUTTON = "BACK_BUTTON", e.SUBMIT_BUTTON = "SUBMIT_BUTTON", e.DIVIDER = "DIVIDER", e.TEXT = "TEXT", e.EMAIL = "EMAIL", e.PASSWORD = "PASSWORD", e.NUMBER = "NUMBER", e.PHONE = "PHONE", e.DATE = "DATE", e.CHECKBOX = "CHECKBOX", e.RADIO = "RADIO", e.SELECT = "SELECT", e.HIDDEN = "HIDDEN", e.LEGAL = "LEGAL", e;
|
|
3374
|
-
}({}),
|
|
4398
|
+
}({}), ar = /* @__PURE__ */ function(e) {
|
|
3375
4399
|
return e.BLOCK = "BLOCK", e.FIELD = "FIELD", e;
|
|
3376
4400
|
}({}), q = e.object({
|
|
3377
4401
|
id: e.string(),
|
|
3378
|
-
category: e.nativeEnum(
|
|
3379
|
-
type: e.nativeEnum(
|
|
3380
|
-
}),
|
|
4402
|
+
category: e.nativeEnum(ar),
|
|
4403
|
+
type: e.nativeEnum(ir)
|
|
4404
|
+
}), or = q.extend({
|
|
3381
4405
|
category: e.literal("BLOCK"),
|
|
3382
4406
|
type: e.literal("RICH_TEXT"),
|
|
3383
4407
|
config: e.object({ content: e.string() }).passthrough()
|
|
3384
|
-
}),
|
|
4408
|
+
}), sr = q.extend({
|
|
3385
4409
|
category: e.literal("BLOCK"),
|
|
3386
4410
|
type: e.union([
|
|
3387
4411
|
e.literal("NEXT_BUTTON"),
|
|
@@ -3389,13 +4413,13 @@ var K = e.object({
|
|
|
3389
4413
|
e.literal("SUBMIT_BUTTON")
|
|
3390
4414
|
]),
|
|
3391
4415
|
config: e.object({ text: e.string() }).passthrough()
|
|
3392
|
-
}),
|
|
4416
|
+
}), cr = q.extend({
|
|
3393
4417
|
category: e.literal("FIELD"),
|
|
3394
4418
|
type: e.literal("LEGAL"),
|
|
3395
4419
|
required: e.boolean().optional(),
|
|
3396
4420
|
sensitive: e.boolean().optional(),
|
|
3397
4421
|
config: e.object({ text: e.string() }).passthrough()
|
|
3398
|
-
}),
|
|
4422
|
+
}), lr = q.extend({
|
|
3399
4423
|
category: e.literal("FIELD"),
|
|
3400
4424
|
type: e.union([
|
|
3401
4425
|
e.literal("TEXT"),
|
|
@@ -3415,26 +4439,26 @@ var K = e.object({
|
|
|
3415
4439
|
label: e.string().optional(),
|
|
3416
4440
|
placeholder: e.string().optional()
|
|
3417
4441
|
}).passthrough()
|
|
3418
|
-
}),
|
|
4442
|
+
}), ur = e.object({
|
|
3419
4443
|
id: e.string(),
|
|
3420
4444
|
category: e.string(),
|
|
3421
4445
|
type: e.string()
|
|
3422
|
-
}).passthrough(),
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
]),
|
|
4446
|
+
}).passthrough(), dr = e.union([
|
|
4447
|
+
or,
|
|
4448
|
+
sr,
|
|
4449
|
+
cr,
|
|
4450
|
+
lr,
|
|
4451
|
+
ur
|
|
4452
|
+
]), fr = e.object({
|
|
3429
4453
|
id: e.string(),
|
|
3430
4454
|
type: e.literal("STEP"),
|
|
3431
4455
|
coordinates: K,
|
|
3432
4456
|
alias: e.string().optional(),
|
|
3433
4457
|
config: e.object({
|
|
3434
|
-
components: e.array(
|
|
4458
|
+
components: e.array(dr),
|
|
3435
4459
|
next_node: e.string()
|
|
3436
4460
|
}).passthrough()
|
|
3437
|
-
}),
|
|
4461
|
+
}), pr = e.object({
|
|
3438
4462
|
id: e.string(),
|
|
3439
4463
|
type: e.literal("FLOW"),
|
|
3440
4464
|
coordinates: K,
|
|
@@ -3443,7 +4467,7 @@ var K = e.object({
|
|
|
3443
4467
|
flow_id: e.string(),
|
|
3444
4468
|
next_node: e.string()
|
|
3445
4469
|
})
|
|
3446
|
-
}),
|
|
4470
|
+
}), mr = e.object({
|
|
3447
4471
|
id: e.string(),
|
|
3448
4472
|
type: e.literal("ACTION"),
|
|
3449
4473
|
coordinates: K,
|
|
@@ -3458,19 +4482,19 @@ var K = e.object({
|
|
|
3458
4482
|
custom_url: e.string().optional().openapi({ description: "Custom URL when target is 'custom'" }),
|
|
3459
4483
|
next_node: e.string().openapi({ description: "The next node to navigate to after action (for non-redirect actions)" })
|
|
3460
4484
|
}).passthrough()
|
|
3461
|
-
}),
|
|
4485
|
+
}), hr = e.object({
|
|
3462
4486
|
id: e.string(),
|
|
3463
4487
|
type: e.string(),
|
|
3464
4488
|
coordinates: K
|
|
3465
|
-
}).passthrough(),
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
]),
|
|
4489
|
+
}).passthrough(), gr = e.union([
|
|
4490
|
+
fr,
|
|
4491
|
+
pr,
|
|
4492
|
+
mr,
|
|
4493
|
+
hr
|
|
4494
|
+
]), _r = e.object({
|
|
3471
4495
|
next_node: e.string(),
|
|
3472
4496
|
coordinates: K
|
|
3473
|
-
}).passthrough(),
|
|
4497
|
+
}).passthrough(), vr = e.object({
|
|
3474
4498
|
resume_flow: e.boolean().optional(),
|
|
3475
4499
|
coordinates: K
|
|
3476
4500
|
}).passthrough();
|
|
@@ -3478,9 +4502,9 @@ e.object({
|
|
|
3478
4502
|
id: e.string(),
|
|
3479
4503
|
name: e.string(),
|
|
3480
4504
|
languages: e.object({ primary: e.string() }).passthrough(),
|
|
3481
|
-
nodes: e.array(
|
|
3482
|
-
start:
|
|
3483
|
-
ending:
|
|
4505
|
+
nodes: e.array(gr),
|
|
4506
|
+
start: _r,
|
|
4507
|
+
ending: vr,
|
|
3484
4508
|
created_at: e.string(),
|
|
3485
4509
|
updated_at: e.string(),
|
|
3486
4510
|
links: e.object({
|
|
@@ -3492,24 +4516,24 @@ e.object({
|
|
|
3492
4516
|
created_at: !0,
|
|
3493
4517
|
updated_at: !0
|
|
3494
4518
|
});
|
|
3495
|
-
var
|
|
4519
|
+
var yr = /* @__PURE__ */ function(e) {
|
|
3496
4520
|
return e.TOKEN = "token", e.ID_TOKEN = "id_token", e.TOKEN_ID_TOKEN = "id_token token", e.CODE = "code", e.CODE_ID_TOKEN = "code id_token", e.CODE_TOKEN = "code token", e.CODE_ID_TOKEN_TOKEN = "code id_token token", e;
|
|
3497
|
-
}({}),
|
|
4521
|
+
}({}), br = /* @__PURE__ */ function(e) {
|
|
3498
4522
|
return e.QUERY = "query", e.FRAGMENT = "fragment", e.FORM_POST = "form_post", e.WEB_MESSAGE = "web_message", e.SAML_POST = "saml_post", e;
|
|
3499
|
-
}({}),
|
|
4523
|
+
}({}), xr = /* @__PURE__ */ function(e) {
|
|
3500
4524
|
return e.S256 = "S256", e.Plain = "plain", e;
|
|
3501
|
-
}({}),
|
|
4525
|
+
}({}), Sr = e.union([e.null(), e.object({
|
|
3502
4526
|
essential: e.boolean().optional(),
|
|
3503
4527
|
value: e.unknown().optional(),
|
|
3504
4528
|
values: e.array(e.unknown()).optional()
|
|
3505
|
-
})]).nullable(),
|
|
3506
|
-
userinfo: e.record(e.string(),
|
|
3507
|
-
id_token: e.record(e.string(),
|
|
3508
|
-
}),
|
|
4529
|
+
})]).nullable(), Cr = e.object({
|
|
4530
|
+
userinfo: e.record(e.string(), Sr).optional(),
|
|
4531
|
+
id_token: e.record(e.string(), Sr).optional()
|
|
4532
|
+
}), wr = e.object({
|
|
3509
4533
|
client_id: e.string(),
|
|
3510
4534
|
act_as: e.string().optional(),
|
|
3511
|
-
response_type: e.nativeEnum(
|
|
3512
|
-
response_mode: e.nativeEnum(
|
|
4535
|
+
response_type: e.nativeEnum(yr).optional(),
|
|
4536
|
+
response_mode: e.nativeEnum(br).optional(),
|
|
3513
4537
|
redirect_uri: e.string().optional(),
|
|
3514
4538
|
audience: e.string().optional(),
|
|
3515
4539
|
organization: e.string().optional(),
|
|
@@ -3517,13 +4541,13 @@ var sr = /* @__PURE__ */ function(e) {
|
|
|
3517
4541
|
nonce: e.string().optional(),
|
|
3518
4542
|
scope: e.string().optional(),
|
|
3519
4543
|
prompt: e.string().optional(),
|
|
3520
|
-
code_challenge_method: e.nativeEnum(
|
|
4544
|
+
code_challenge_method: e.nativeEnum(xr).optional(),
|
|
3521
4545
|
code_challenge: e.string().optional(),
|
|
3522
4546
|
username: e.string().optional(),
|
|
3523
4547
|
ui_locales: e.string().optional(),
|
|
3524
4548
|
max_age: e.number().optional(),
|
|
3525
4549
|
acr_values: e.string().optional(),
|
|
3526
|
-
claims:
|
|
4550
|
+
claims: Cr.optional(),
|
|
3527
4551
|
vendor_id: e.string().optional()
|
|
3528
4552
|
});
|
|
3529
4553
|
e.object({
|
|
@@ -3546,7 +4570,7 @@ e.object({
|
|
|
3546
4570
|
"auto"
|
|
3547
4571
|
]).optional()
|
|
3548
4572
|
});
|
|
3549
|
-
var
|
|
4573
|
+
var Tr = e.enum([
|
|
3550
4574
|
"password_reset",
|
|
3551
4575
|
"email_verification",
|
|
3552
4576
|
"otp",
|
|
@@ -3559,7 +4583,7 @@ e.object({
|
|
|
3559
4583
|
code_id: e.string().openapi({ description: "The code that will be used in for instance an email verification flow" }),
|
|
3560
4584
|
login_id: e.string().openapi({ description: "The id of the login session that the code is connected to" }),
|
|
3561
4585
|
connection_id: e.string().optional().openapi({ description: "The connection that the code is connected to" }),
|
|
3562
|
-
code_type:
|
|
4586
|
+
code_type: Tr,
|
|
3563
4587
|
code_verifier: e.string().optional().openapi({ description: "The code verifier used in PKCE in outbound flows" }),
|
|
3564
4588
|
code_challenge: e.string().optional().openapi({ description: "The code challenge used in PKCE in outbound flows" }),
|
|
3565
4589
|
code_challenge_method: e.enum(["plain", "S256"]).optional().openapi({ description: "The code challenge method used in PKCE in outbound flows" }),
|
|
@@ -3571,7 +4595,7 @@ e.object({
|
|
|
3571
4595
|
used_at: e.string().optional(),
|
|
3572
4596
|
user_id: e.string().optional()
|
|
3573
4597
|
}).extend({ created_at: e.string() });
|
|
3574
|
-
var
|
|
4598
|
+
var Er = e.object({
|
|
3575
4599
|
kid: e.string().optional(),
|
|
3576
4600
|
team_id: e.string().optional(),
|
|
3577
4601
|
realms: e.string().optional(),
|
|
@@ -3687,23 +4711,23 @@ var mr = e.object({
|
|
|
3687
4711
|
"never_on_login"
|
|
3688
4712
|
]).optional()
|
|
3689
4713
|
});
|
|
3690
|
-
function
|
|
4714
|
+
function Dr(e) {
|
|
3691
4715
|
if (e !== null) {
|
|
3692
|
-
if (Array.isArray(e)) return e.filter((e) => e !== null).map(
|
|
4716
|
+
if (Array.isArray(e)) return e.filter((e) => e !== null).map(Dr);
|
|
3693
4717
|
if (e && typeof e == "object") {
|
|
3694
4718
|
let t = {};
|
|
3695
|
-
for (let [n, r] of Object.entries(e)) r !== null && (t[n] =
|
|
4719
|
+
for (let [n, r] of Object.entries(e)) r !== null && (t[n] = Dr(r));
|
|
3696
4720
|
return t;
|
|
3697
4721
|
}
|
|
3698
4722
|
return e;
|
|
3699
4723
|
}
|
|
3700
4724
|
}
|
|
3701
|
-
var
|
|
4725
|
+
var Or = e.object({
|
|
3702
4726
|
id: e.string().optional(),
|
|
3703
4727
|
name: e.string(),
|
|
3704
4728
|
display_name: e.string().optional(),
|
|
3705
4729
|
strategy: e.string(),
|
|
3706
|
-
options: e.preprocess((e) => e === null ? {} :
|
|
4730
|
+
options: e.preprocess((e) => e === null ? {} : Dr(e), Er).default({}),
|
|
3707
4731
|
enabled_clients: e.array(e.string()).default([]).optional(),
|
|
3708
4732
|
response_type: e.custom().optional(),
|
|
3709
4733
|
response_mode: e.custom().optional(),
|
|
@@ -3716,8 +4740,8 @@ e.object({
|
|
|
3716
4740
|
id: e.string(),
|
|
3717
4741
|
created_at: e.string().transform((e) => e === null ? "" : e),
|
|
3718
4742
|
updated_at: e.string().transform((e) => e === null ? "" : e)
|
|
3719
|
-
}).extend(
|
|
3720
|
-
var
|
|
4743
|
+
}).extend(Or.shape);
|
|
4744
|
+
var kr = e.object({
|
|
3721
4745
|
domain: e.string(),
|
|
3722
4746
|
custom_domain_id: e.string().optional(),
|
|
3723
4747
|
type: e.enum(["auth0_managed_certs", "self_managed_certs"]),
|
|
@@ -3731,7 +4755,7 @@ var _r = e.object({
|
|
|
3731
4755
|
"null"
|
|
3732
4756
|
]).optional(),
|
|
3733
4757
|
domain_metadata: e.record(e.string(), e.string().max(255)).optional()
|
|
3734
|
-
}),
|
|
4758
|
+
}), Ar = e.discriminatedUnion("name", [e.object({
|
|
3735
4759
|
name: e.literal("txt"),
|
|
3736
4760
|
record: e.string(),
|
|
3737
4761
|
domain: e.string()
|
|
@@ -3739,7 +4763,7 @@ var _r = e.object({
|
|
|
3739
4763
|
name: e.literal("http"),
|
|
3740
4764
|
http_body: e.string(),
|
|
3741
4765
|
http_url: e.string()
|
|
3742
|
-
})]),
|
|
4766
|
+
})]), jr = kr.extend({
|
|
3743
4767
|
custom_domain_id: e.string(),
|
|
3744
4768
|
primary: e.boolean(),
|
|
3745
4769
|
status: e.enum([
|
|
@@ -3749,28 +4773,28 @@ var _r = e.object({
|
|
|
3749
4773
|
"ready"
|
|
3750
4774
|
]),
|
|
3751
4775
|
origin_domain_name: e.string().optional(),
|
|
3752
|
-
verification: e.object({ methods: e.array(
|
|
4776
|
+
verification: e.object({ methods: e.array(Ar) }).optional(),
|
|
3753
4777
|
tls_policy: e.string().optional()
|
|
3754
4778
|
});
|
|
3755
|
-
|
|
4779
|
+
kr.pick({
|
|
3756
4780
|
tls_policy: !0,
|
|
3757
4781
|
custom_client_ip_header: !0,
|
|
3758
4782
|
domain_metadata: !0
|
|
3759
|
-
}).strict(),
|
|
4783
|
+
}).strict(), jr.extend({ tenant_id: e.string() }), e.object({
|
|
3760
4784
|
certificate: e.string().regex(/^-----BEGIN CERTIFICATE-----[\s\S]+-----END CERTIFICATE-----\s*$/, "must be PEM-encoded; include the full certificate chain in leaf-first order"),
|
|
3761
4785
|
private_key: e.string().regex(/-----BEGIN (RSA |EC |ENCRYPTED )?PRIVATE KEY-----[\s\S]+-----END \1PRIVATE KEY-----\s*$/, "must be a PEM-encoded private key")
|
|
3762
4786
|
});
|
|
3763
|
-
var
|
|
4787
|
+
var Mr = e.object({
|
|
3764
4788
|
id: e.string(),
|
|
3765
4789
|
order: e.number().optional(),
|
|
3766
4790
|
visible: e.boolean().optional().default(!0)
|
|
3767
|
-
}), J =
|
|
4791
|
+
}), J = Mr.extend({ category: e.literal("BLOCK").optional() }), Nr = J.extend({
|
|
3768
4792
|
type: e.literal("DIVIDER"),
|
|
3769
4793
|
config: e.object({ text: e.string().optional() }).optional()
|
|
3770
|
-
}),
|
|
4794
|
+
}), Pr = J.extend({
|
|
3771
4795
|
type: e.literal("HTML"),
|
|
3772
4796
|
config: e.object({ content: e.string().optional() }).optional()
|
|
3773
|
-
}),
|
|
4797
|
+
}), Fr = J.extend({
|
|
3774
4798
|
type: e.literal("IMAGE"),
|
|
3775
4799
|
config: e.object({
|
|
3776
4800
|
src: e.string().optional(),
|
|
@@ -3778,43 +4802,43 @@ var br = e.object({
|
|
|
3778
4802
|
width: e.number().optional(),
|
|
3779
4803
|
height: e.number().optional()
|
|
3780
4804
|
}).optional()
|
|
3781
|
-
}),
|
|
4805
|
+
}), Ir = J.extend({
|
|
3782
4806
|
type: e.literal("JUMP_BUTTON"),
|
|
3783
4807
|
config: e.object({
|
|
3784
4808
|
text: e.string().optional(),
|
|
3785
4809
|
target_step: e.string().optional()
|
|
3786
4810
|
})
|
|
3787
|
-
}),
|
|
4811
|
+
}), Lr = J.extend({
|
|
3788
4812
|
type: e.literal("RESEND_BUTTON"),
|
|
3789
4813
|
config: e.object({
|
|
3790
4814
|
text: e.string().optional(),
|
|
3791
4815
|
resend_action: e.string().optional()
|
|
3792
4816
|
})
|
|
3793
|
-
}),
|
|
4817
|
+
}), Rr = J.extend({
|
|
3794
4818
|
type: e.literal("NEXT_BUTTON"),
|
|
3795
4819
|
config: e.object({ text: e.string().optional() })
|
|
3796
|
-
}),
|
|
4820
|
+
}), zr = J.extend({
|
|
3797
4821
|
type: e.literal("PREVIOUS_BUTTON"),
|
|
3798
4822
|
config: e.object({ text: e.string().optional() })
|
|
3799
|
-
}),
|
|
4823
|
+
}), Br = J.extend({
|
|
3800
4824
|
type: e.literal("RICH_TEXT"),
|
|
3801
4825
|
config: e.object({ content: e.string().optional() }).optional()
|
|
3802
|
-
}),
|
|
4826
|
+
}), Vr = Mr.extend({
|
|
3803
4827
|
category: e.literal("WIDGET").optional(),
|
|
3804
4828
|
label: e.string().min(1).optional(),
|
|
3805
4829
|
hint: e.string().min(1).max(500).optional(),
|
|
3806
4830
|
required: e.boolean().optional(),
|
|
3807
4831
|
sensitive: e.boolean().optional()
|
|
3808
|
-
}),
|
|
4832
|
+
}), Hr = Vr.extend({
|
|
3809
4833
|
type: e.literal("AUTH0_VERIFIABLE_CREDENTIALS"),
|
|
3810
4834
|
config: e.object({ credential_type: e.string().optional() })
|
|
3811
|
-
}),
|
|
4835
|
+
}), Ur = Vr.extend({
|
|
3812
4836
|
type: e.literal("GMAPS_ADDRESS"),
|
|
3813
4837
|
config: e.object({ api_key: e.string().optional() })
|
|
3814
|
-
}),
|
|
4838
|
+
}), Wr = Vr.extend({
|
|
3815
4839
|
type: e.literal("RECAPTCHA"),
|
|
3816
4840
|
config: e.object({ site_key: e.string().optional() })
|
|
3817
|
-
}), Y =
|
|
4841
|
+
}), Y = Mr.extend({
|
|
3818
4842
|
category: e.literal("FIELD").optional(),
|
|
3819
4843
|
label: e.string().min(1).optional(),
|
|
3820
4844
|
hint: e.string().min(1).max(500).optional(),
|
|
@@ -3830,10 +4854,10 @@ var br = e.object({
|
|
|
3830
4854
|
})).optional(),
|
|
3831
4855
|
required: e.boolean().optional(),
|
|
3832
4856
|
sensitive: e.boolean().optional()
|
|
3833
|
-
}),
|
|
4857
|
+
}), Gr = Y.extend({
|
|
3834
4858
|
type: e.literal("BOOLEAN"),
|
|
3835
4859
|
config: e.object({ default_value: e.boolean().optional() }).optional()
|
|
3836
|
-
}),
|
|
4860
|
+
}), Kr = Y.extend({
|
|
3837
4861
|
type: e.literal("CARDS"),
|
|
3838
4862
|
config: e.object({
|
|
3839
4863
|
options: e.array(e.object({
|
|
@@ -3844,7 +4868,7 @@ var br = e.object({
|
|
|
3844
4868
|
})).optional(),
|
|
3845
4869
|
multi_select: e.boolean().optional()
|
|
3846
4870
|
}).optional()
|
|
3847
|
-
}),
|
|
4871
|
+
}), qr = Y.extend({
|
|
3848
4872
|
type: e.literal("CHOICE"),
|
|
3849
4873
|
config: e.object({
|
|
3850
4874
|
options: e.array(e.object({
|
|
@@ -3855,7 +4879,7 @@ var br = e.object({
|
|
|
3855
4879
|
multiple: e.boolean().optional(),
|
|
3856
4880
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
3857
4881
|
}).optional()
|
|
3858
|
-
}),
|
|
4882
|
+
}), Jr = Y.extend({
|
|
3859
4883
|
type: e.literal("CODE"),
|
|
3860
4884
|
config: e.object({
|
|
3861
4885
|
length: e.number().int().positive().max(100).optional(),
|
|
@@ -3872,7 +4896,7 @@ var br = e.object({
|
|
|
3872
4896
|
message: "default_value is longer than the configured length",
|
|
3873
4897
|
path: ["default_value"]
|
|
3874
4898
|
}).optional()
|
|
3875
|
-
}),
|
|
4899
|
+
}), Yr = Y.extend({
|
|
3876
4900
|
type: e.literal("CUSTOM"),
|
|
3877
4901
|
config: e.object({
|
|
3878
4902
|
component: e.string().optional(),
|
|
@@ -3880,7 +4904,7 @@ var br = e.object({
|
|
|
3880
4904
|
schema: e.record(e.string(), e.any()).optional(),
|
|
3881
4905
|
code: e.string().optional()
|
|
3882
4906
|
})
|
|
3883
|
-
}),
|
|
4907
|
+
}), Xr = Y.extend({
|
|
3884
4908
|
type: e.literal("DATE"),
|
|
3885
4909
|
config: e.object({
|
|
3886
4910
|
format: e.string().optional(),
|
|
@@ -3888,7 +4912,7 @@ var br = e.object({
|
|
|
3888
4912
|
max: e.string().optional(),
|
|
3889
4913
|
default_value: e.string().optional()
|
|
3890
4914
|
}).optional()
|
|
3891
|
-
}),
|
|
4915
|
+
}), Zr = Y.extend({
|
|
3892
4916
|
type: e.literal("DROPDOWN"),
|
|
3893
4917
|
config: e.object({
|
|
3894
4918
|
options: e.array(e.object({
|
|
@@ -3900,26 +4924,26 @@ var br = e.object({
|
|
|
3900
4924
|
multiple: e.boolean().optional(),
|
|
3901
4925
|
default_value: e.union([e.string(), e.array(e.string())]).optional()
|
|
3902
4926
|
}).optional()
|
|
3903
|
-
}),
|
|
4927
|
+
}), Qr = Y.extend({
|
|
3904
4928
|
type: e.literal("EMAIL"),
|
|
3905
4929
|
config: e.object({
|
|
3906
4930
|
placeholder: e.string().optional(),
|
|
3907
4931
|
default_value: e.string().optional()
|
|
3908
4932
|
}).optional()
|
|
3909
|
-
}),
|
|
4933
|
+
}), $r = Y.extend({
|
|
3910
4934
|
type: e.literal("FILE"),
|
|
3911
4935
|
config: e.object({
|
|
3912
4936
|
accept: e.string().optional(),
|
|
3913
4937
|
max_size: e.number().optional(),
|
|
3914
4938
|
multiple: e.boolean().optional()
|
|
3915
4939
|
}).optional()
|
|
3916
|
-
}),
|
|
4940
|
+
}), ei = Y.extend({
|
|
3917
4941
|
type: e.literal("LEGAL"),
|
|
3918
4942
|
config: e.object({
|
|
3919
4943
|
text: e.string(),
|
|
3920
4944
|
html: e.boolean().optional()
|
|
3921
4945
|
}).optional()
|
|
3922
|
-
}),
|
|
4946
|
+
}), ti = Y.extend({
|
|
3923
4947
|
type: e.literal("NUMBER"),
|
|
3924
4948
|
config: e.object({
|
|
3925
4949
|
placeholder: e.string().optional(),
|
|
@@ -3928,7 +4952,7 @@ var br = e.object({
|
|
|
3928
4952
|
step: e.number().optional(),
|
|
3929
4953
|
default_value: e.string().optional()
|
|
3930
4954
|
}).optional()
|
|
3931
|
-
}),
|
|
4955
|
+
}), ni = Y.extend({
|
|
3932
4956
|
type: e.literal("PASSWORD"),
|
|
3933
4957
|
config: e.object({
|
|
3934
4958
|
placeholder: e.string().optional(),
|
|
@@ -3937,13 +4961,13 @@ var br = e.object({
|
|
|
3937
4961
|
forgot_password_link: e.string().optional(),
|
|
3938
4962
|
default_value: e.string().optional()
|
|
3939
4963
|
}).optional()
|
|
3940
|
-
}),
|
|
4964
|
+
}), ri = Y.extend({
|
|
3941
4965
|
type: e.literal("PAYMENT"),
|
|
3942
4966
|
config: e.object({
|
|
3943
4967
|
provider: e.string().optional(),
|
|
3944
4968
|
currency: e.string().optional()
|
|
3945
4969
|
}).optional()
|
|
3946
|
-
}),
|
|
4970
|
+
}), ii = Y.extend({
|
|
3947
4971
|
type: e.literal("SOCIAL"),
|
|
3948
4972
|
config: e.object({
|
|
3949
4973
|
providers: e.array(e.string()).optional(),
|
|
@@ -3955,7 +4979,7 @@ var br = e.object({
|
|
|
3955
4979
|
href: e.string().optional()
|
|
3956
4980
|
})).optional()
|
|
3957
4981
|
}).optional()
|
|
3958
|
-
}),
|
|
4982
|
+
}), ai = Y.extend({
|
|
3959
4983
|
type: e.literal("TEL"),
|
|
3960
4984
|
config: e.object({
|
|
3961
4985
|
placeholder: e.string().optional(),
|
|
@@ -3963,7 +4987,7 @@ var br = e.object({
|
|
|
3963
4987
|
default_value: e.string().optional(),
|
|
3964
4988
|
allow_email: e.boolean().optional()
|
|
3965
4989
|
}).optional()
|
|
3966
|
-
}),
|
|
4990
|
+
}), oi = Y.extend({
|
|
3967
4991
|
type: e.literal("TEXT"),
|
|
3968
4992
|
config: e.object({
|
|
3969
4993
|
placeholder: e.string().optional(),
|
|
@@ -3971,56 +4995,71 @@ var br = e.object({
|
|
|
3971
4995
|
max_length: e.number().optional(),
|
|
3972
4996
|
default_value: e.string().optional()
|
|
3973
4997
|
}).optional()
|
|
3974
|
-
}),
|
|
4998
|
+
}), si = Y.extend({
|
|
3975
4999
|
type: e.literal("COUNTRY"),
|
|
3976
5000
|
config: e.object({
|
|
3977
5001
|
placeholder: e.string().optional(),
|
|
3978
5002
|
default_value: e.string().optional()
|
|
3979
5003
|
}).optional()
|
|
3980
|
-
}),
|
|
5004
|
+
}), ci = Y.extend({
|
|
3981
5005
|
type: e.literal("URL"),
|
|
3982
5006
|
config: e.object({
|
|
3983
5007
|
placeholder: e.string().optional(),
|
|
3984
5008
|
default_value: e.string().optional()
|
|
3985
5009
|
}).optional()
|
|
3986
|
-
}),
|
|
3987
|
-
xr,
|
|
3988
|
-
Sr,
|
|
3989
|
-
Cr,
|
|
3990
|
-
wr,
|
|
3991
|
-
Tr,
|
|
3992
|
-
Er,
|
|
3993
|
-
Dr,
|
|
3994
|
-
Or
|
|
3995
|
-
]), Qr = e.discriminatedUnion("type", [
|
|
3996
|
-
Ar,
|
|
3997
|
-
jr,
|
|
3998
|
-
Mr
|
|
3999
|
-
]), $r = e.discriminatedUnion("type", [
|
|
5010
|
+
}), li = e.discriminatedUnion("type", [
|
|
4000
5011
|
Nr,
|
|
4001
5012
|
Pr,
|
|
4002
5013
|
Fr,
|
|
4003
5014
|
Ir,
|
|
4004
|
-
Yr,
|
|
4005
5015
|
Lr,
|
|
4006
5016
|
Rr,
|
|
4007
5017
|
zr,
|
|
4008
|
-
Br
|
|
4009
|
-
|
|
5018
|
+
Br
|
|
5019
|
+
]), ui = e.discriminatedUnion("type", [
|
|
4010
5020
|
Hr,
|
|
4011
5021
|
Ur,
|
|
4012
|
-
Wr
|
|
5022
|
+
Wr
|
|
5023
|
+
]), di = e.discriminatedUnion("type", [
|
|
4013
5024
|
Gr,
|
|
4014
5025
|
Kr,
|
|
4015
5026
|
qr,
|
|
4016
5027
|
Jr,
|
|
4017
|
-
|
|
4018
|
-
|
|
5028
|
+
si,
|
|
5029
|
+
Yr,
|
|
5030
|
+
Xr,
|
|
4019
5031
|
Zr,
|
|
4020
5032
|
Qr,
|
|
4021
|
-
$r
|
|
5033
|
+
$r,
|
|
5034
|
+
ei,
|
|
5035
|
+
ti,
|
|
5036
|
+
ni,
|
|
5037
|
+
ri,
|
|
5038
|
+
ii,
|
|
5039
|
+
ai,
|
|
5040
|
+
oi,
|
|
5041
|
+
ci
|
|
5042
|
+
]), fi = e.union([
|
|
5043
|
+
li,
|
|
5044
|
+
ui,
|
|
5045
|
+
di
|
|
4022
5046
|
]);
|
|
4023
|
-
|
|
5047
|
+
new Set([
|
|
5048
|
+
"BOOLEAN",
|
|
5049
|
+
"CARDS",
|
|
5050
|
+
"CHOICE",
|
|
5051
|
+
"CODE",
|
|
5052
|
+
"COUNTRY",
|
|
5053
|
+
"DATE",
|
|
5054
|
+
"DROPDOWN",
|
|
5055
|
+
"EMAIL",
|
|
5056
|
+
"LEGAL",
|
|
5057
|
+
"NUMBER",
|
|
5058
|
+
"PASSWORD",
|
|
5059
|
+
"TEL",
|
|
5060
|
+
"TEXT",
|
|
5061
|
+
"URL"
|
|
5062
|
+
]), e.object({
|
|
4024
5063
|
id: e.string(),
|
|
4025
5064
|
type: e.literal("submit"),
|
|
4026
5065
|
label: e.string(),
|
|
@@ -4033,7 +5072,7 @@ e.object({
|
|
|
4033
5072
|
var X = e.object({
|
|
4034
5073
|
x: e.number(),
|
|
4035
5074
|
y: e.number()
|
|
4036
|
-
}),
|
|
5075
|
+
}), pi = e.object({
|
|
4037
5076
|
id: e.string(),
|
|
4038
5077
|
type: e.literal("FLOW"),
|
|
4039
5078
|
coordinates: X,
|
|
@@ -4042,7 +5081,7 @@ var X = e.object({
|
|
|
4042
5081
|
flow_id: e.string().max(30),
|
|
4043
5082
|
next_node: e.string().optional()
|
|
4044
5083
|
})
|
|
4045
|
-
}),
|
|
5084
|
+
}), mi = e.object({
|
|
4046
5085
|
id: e.string(),
|
|
4047
5086
|
type: e.literal("ROUTER"),
|
|
4048
5087
|
coordinates: X,
|
|
@@ -4056,20 +5095,20 @@ var X = e.object({
|
|
|
4056
5095
|
})),
|
|
4057
5096
|
fallback: e.string()
|
|
4058
5097
|
})
|
|
4059
|
-
}),
|
|
5098
|
+
}), hi = e.object({
|
|
4060
5099
|
id: e.string(),
|
|
4061
5100
|
type: e.literal("STEP"),
|
|
4062
5101
|
coordinates: X,
|
|
4063
5102
|
alias: e.string().min(1).max(150).optional(),
|
|
4064
5103
|
config: e.object({
|
|
4065
|
-
components: e.array(
|
|
5104
|
+
components: e.array(fi),
|
|
4066
5105
|
next_node: e.string().optional()
|
|
4067
5106
|
})
|
|
4068
|
-
}),
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
]),
|
|
5107
|
+
}), gi = e.discriminatedUnion("type", [
|
|
5108
|
+
pi,
|
|
5109
|
+
mi,
|
|
5110
|
+
hi
|
|
5111
|
+
]), _i = e.object({
|
|
4073
5112
|
name: e.string().openapi({ description: "The name of the form" }),
|
|
4074
5113
|
messages: e.object({
|
|
4075
5114
|
errors: e.record(e.string(), e.any()).optional(),
|
|
@@ -4080,7 +5119,7 @@ var X = e.object({
|
|
|
4080
5119
|
default: e.string().optional()
|
|
4081
5120
|
}).optional(),
|
|
4082
5121
|
translations: e.record(e.string(), e.any()).optional(),
|
|
4083
|
-
nodes: e.array(
|
|
5122
|
+
nodes: e.array(gi).optional(),
|
|
4084
5123
|
start: e.object({
|
|
4085
5124
|
hidden_fields: e.array(e.object({
|
|
4086
5125
|
key: e.string(),
|
|
@@ -4104,8 +5143,8 @@ var X = e.object({
|
|
|
4104
5143
|
sdk_src: e.string().optional()
|
|
4105
5144
|
}).optional()
|
|
4106
5145
|
}).openapi({ description: "Schema for flow-based forms (matches Auth0 Forms structure)" });
|
|
4107
|
-
G.extend(
|
|
4108
|
-
var
|
|
5146
|
+
G.extend(_i.shape).extend({ id: e.string() });
|
|
5147
|
+
var vi = e.object({
|
|
4109
5148
|
id: e.number().optional(),
|
|
4110
5149
|
text: e.string(),
|
|
4111
5150
|
type: e.enum([
|
|
@@ -4114,7 +5153,7 @@ var oi = e.object({
|
|
|
4114
5153
|
"success",
|
|
4115
5154
|
"warning"
|
|
4116
5155
|
])
|
|
4117
|
-
}),
|
|
5156
|
+
}), yi = e.object({
|
|
4118
5157
|
id: e.string().optional(),
|
|
4119
5158
|
text: e.string(),
|
|
4120
5159
|
href: e.string(),
|
|
@@ -4126,12 +5165,12 @@ e.object({
|
|
|
4126
5165
|
method: e.enum(["POST", "GET"]),
|
|
4127
5166
|
title: e.string().optional(),
|
|
4128
5167
|
description: e.string().optional(),
|
|
4129
|
-
components: e.array(
|
|
4130
|
-
messages: e.array(
|
|
4131
|
-
links: e.array(
|
|
5168
|
+
components: e.array(fi),
|
|
5169
|
+
messages: e.array(vi).optional(),
|
|
5170
|
+
links: e.array(yi).optional(),
|
|
4132
5171
|
footer: e.string().optional()
|
|
4133
5172
|
});
|
|
4134
|
-
var
|
|
5173
|
+
var bi = e.enum([
|
|
4135
5174
|
"pre-user-registration",
|
|
4136
5175
|
"post-user-registration",
|
|
4137
5176
|
"post-user-login",
|
|
@@ -4139,24 +5178,24 @@ var ci = e.enum([
|
|
|
4139
5178
|
"validate-registration-username",
|
|
4140
5179
|
"pre-user-deletion",
|
|
4141
5180
|
"post-user-deletion"
|
|
4142
|
-
]),
|
|
5181
|
+
]), xi = e.enum([
|
|
4143
5182
|
"pre-user-registration",
|
|
4144
5183
|
"post-user-registration",
|
|
4145
5184
|
"post-user-login",
|
|
4146
5185
|
"validate-registration-username",
|
|
4147
5186
|
"pre-user-deletion",
|
|
4148
5187
|
"post-user-deletion"
|
|
4149
|
-
]),
|
|
5188
|
+
]), Si = e.enum([
|
|
4150
5189
|
"post-user-login",
|
|
4151
5190
|
"post-user-registration",
|
|
4152
5191
|
"post-user-update",
|
|
4153
5192
|
"credentials-exchange"
|
|
4154
|
-
]),
|
|
5193
|
+
]), Ci = e.enum([
|
|
4155
5194
|
"post-user-login",
|
|
4156
5195
|
"credentials-exchange",
|
|
4157
5196
|
"pre-user-registration",
|
|
4158
5197
|
"post-user-registration"
|
|
4159
|
-
]),
|
|
5198
|
+
]), wi = e.enum([
|
|
4160
5199
|
"ensure-username",
|
|
4161
5200
|
"set-preferred-username",
|
|
4162
5201
|
"account-linking"
|
|
@@ -4166,59 +5205,59 @@ var ci = e.enum([
|
|
|
4166
5205
|
priority: e.number().optional(),
|
|
4167
5206
|
hook_id: e.string().optional(),
|
|
4168
5207
|
metadata: e.record(e.string(), e.unknown()).optional()
|
|
4169
|
-
},
|
|
5208
|
+
}, Ti = e.object({
|
|
4170
5209
|
...Z,
|
|
4171
|
-
trigger_id:
|
|
5210
|
+
trigger_id: bi,
|
|
4172
5211
|
url: e.string()
|
|
4173
|
-
}),
|
|
5212
|
+
}), Ei = e.object({
|
|
4174
5213
|
...Z,
|
|
4175
|
-
trigger_id:
|
|
5214
|
+
trigger_id: xi,
|
|
4176
5215
|
form_id: e.string()
|
|
4177
|
-
}),
|
|
5216
|
+
}), Di = e.object({
|
|
4178
5217
|
...Z,
|
|
4179
|
-
trigger_id:
|
|
4180
|
-
template_id:
|
|
4181
|
-
}),
|
|
5218
|
+
trigger_id: Si,
|
|
5219
|
+
template_id: wi
|
|
5220
|
+
}), Oi = e.object({
|
|
4182
5221
|
...Z,
|
|
4183
|
-
trigger_id:
|
|
5222
|
+
trigger_id: Ci,
|
|
4184
5223
|
code_id: e.string()
|
|
4185
5224
|
});
|
|
4186
5225
|
e.union([
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
5226
|
+
Ti,
|
|
5227
|
+
Ei,
|
|
5228
|
+
Di,
|
|
5229
|
+
Oi
|
|
4191
5230
|
]);
|
|
4192
|
-
var
|
|
5231
|
+
var ki = e.object({
|
|
4193
5232
|
...Z,
|
|
4194
|
-
trigger_id:
|
|
5233
|
+
trigger_id: bi
|
|
4195
5234
|
}).extend(G.shape).extend({
|
|
4196
5235
|
hook_id: e.string(),
|
|
4197
5236
|
url: e.string()
|
|
4198
|
-
}),
|
|
5237
|
+
}), Ai = e.object({
|
|
4199
5238
|
...Z,
|
|
4200
|
-
trigger_id:
|
|
5239
|
+
trigger_id: xi
|
|
4201
5240
|
}).extend(G.shape).extend({
|
|
4202
5241
|
hook_id: e.string(),
|
|
4203
5242
|
form_id: e.string()
|
|
4204
|
-
}),
|
|
5243
|
+
}), ji = e.object({
|
|
4205
5244
|
...Z,
|
|
4206
|
-
trigger_id:
|
|
5245
|
+
trigger_id: Si
|
|
4207
5246
|
}).extend(G.shape).extend({
|
|
4208
5247
|
hook_id: e.string(),
|
|
4209
|
-
template_id:
|
|
4210
|
-
}),
|
|
5248
|
+
template_id: wi
|
|
5249
|
+
}), Mi = e.object({
|
|
4211
5250
|
...Z,
|
|
4212
|
-
trigger_id:
|
|
5251
|
+
trigger_id: Ci
|
|
4213
5252
|
}).extend(G.shape).extend({
|
|
4214
5253
|
hook_id: e.string(),
|
|
4215
5254
|
code_id: e.string()
|
|
4216
5255
|
});
|
|
4217
5256
|
e.union([
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
5257
|
+
ki,
|
|
5258
|
+
Ai,
|
|
5259
|
+
ji,
|
|
5260
|
+
Mi
|
|
4222
5261
|
]), e.object({
|
|
4223
5262
|
code: e.string().max(1e5),
|
|
4224
5263
|
secrets: e.record(e.string(), e.string()).optional()
|
|
@@ -4226,11 +5265,11 @@ e.union([
|
|
|
4226
5265
|
id: e.string(),
|
|
4227
5266
|
tenant_id: e.string()
|
|
4228
5267
|
}).extend(G.shape);
|
|
4229
|
-
var
|
|
5268
|
+
var Ni = e.object({ name: e.string().optional() }), Pi = e.object({ email: e.string().optional() }), Fi = e.object({
|
|
4230
5269
|
id: e.string().optional(),
|
|
4231
5270
|
organization_id: e.string().max(50),
|
|
4232
|
-
inviter:
|
|
4233
|
-
invitee:
|
|
5271
|
+
inviter: Ni,
|
|
5272
|
+
invitee: Pi,
|
|
4234
5273
|
invitation_url: e.string().url(),
|
|
4235
5274
|
client_id: e.string(),
|
|
4236
5275
|
connection_id: e.string().optional(),
|
|
@@ -4246,8 +5285,8 @@ e.object({
|
|
|
4246
5285
|
created_at: e.string().datetime(),
|
|
4247
5286
|
expires_at: e.string().datetime(),
|
|
4248
5287
|
ticket_id: e.string().optional()
|
|
4249
|
-
}).extend(
|
|
4250
|
-
var
|
|
5288
|
+
}).extend(Fi.omit({ id: !0 }).shape);
|
|
5289
|
+
var Ii = e.object({
|
|
4251
5290
|
alg: e.enum([
|
|
4252
5291
|
"RS256",
|
|
4253
5292
|
"RS384",
|
|
@@ -4289,7 +5328,7 @@ var wi = e.object({
|
|
|
4289
5328
|
message: `EC JWK is missing required member '${r}'`
|
|
4290
5329
|
});
|
|
4291
5330
|
});
|
|
4292
|
-
e.object({ keys: e.array(
|
|
5331
|
+
e.object({ keys: e.array(Ii) }), e.object({
|
|
4293
5332
|
issuer: e.string(),
|
|
4294
5333
|
authorization_endpoint: e.string(),
|
|
4295
5334
|
token_endpoint: e.string(),
|
|
@@ -4316,28 +5355,28 @@ e.object({ keys: e.array(wi) }), e.object({
|
|
|
4316
5355
|
backchannel_logout_supported: e.boolean().optional(),
|
|
4317
5356
|
backchannel_logout_session_supported: e.boolean().optional()
|
|
4318
5357
|
});
|
|
4319
|
-
var
|
|
5358
|
+
var Li = /* @__PURE__ */ function(e) {
|
|
4320
5359
|
return e.PENDING = "pending", e.AUTHENTICATED = "authenticated", e.AWAITING_EMAIL_VERIFICATION = "awaiting_email_verification", e.AWAITING_MFA = "awaiting_mfa", e.AWAITING_HOOK = "awaiting_hook", e.AWAITING_CONTINUATION = "awaiting_continuation", e.AWAITING_CONSENT = "awaiting_consent", e.COMPLETED = "completed", e.FAILED = "failed", e.EXPIRED = "expired", e;
|
|
4321
|
-
}({}),
|
|
5360
|
+
}({}), Ri = e.nativeEnum(Li), zi = e.object({
|
|
4322
5361
|
strategy: e.string(),
|
|
4323
5362
|
strategy_type: e.string()
|
|
4324
5363
|
});
|
|
4325
5364
|
e.object({
|
|
4326
5365
|
csrf_token: e.string(),
|
|
4327
5366
|
auth0Client: e.string().optional(),
|
|
4328
|
-
authParams:
|
|
5367
|
+
authParams: wr,
|
|
4329
5368
|
expires_at: e.string(),
|
|
4330
5369
|
deleted_at: e.string().optional(),
|
|
4331
5370
|
ip: e.string().optional(),
|
|
4332
5371
|
useragent: e.string().optional(),
|
|
4333
5372
|
session_id: e.string().optional(),
|
|
4334
5373
|
authorization_url: e.string().optional(),
|
|
4335
|
-
state:
|
|
5374
|
+
state: Ri.optional().default("pending"),
|
|
4336
5375
|
state_data: e.string().optional(),
|
|
4337
5376
|
failure_reason: e.string().optional(),
|
|
4338
5377
|
user_id: e.string().optional(),
|
|
4339
5378
|
auth_connection: e.string().optional(),
|
|
4340
|
-
auth_strategy:
|
|
5379
|
+
auth_strategy: zi.optional(),
|
|
4341
5380
|
authenticated_at: e.string().optional()
|
|
4342
5381
|
}).openapi({ description: "This represents a login sesion" }).extend({
|
|
4343
5382
|
id: e.string().openapi({ description: "This is is used as the state in the universal login" }),
|
|
@@ -4504,17 +5543,17 @@ var Q = {
|
|
|
4504
5543
|
WARNING_DURING_LOGIN: "w",
|
|
4505
5544
|
WARNING_SENDING_NOTIFICATION: "wn",
|
|
4506
5545
|
WARNING_USER_MANAGEMENT: "wum"
|
|
4507
|
-
},
|
|
5546
|
+
}, Bi = e.string().refine((e) => Object.values(Q).includes(e), { message: "Invalid log type" });
|
|
4508
5547
|
Q.ACLS_SUMMARY, Q.ACTIONS_EXECUTION_FAILED, Q.API_LIMIT, Q.API_LIMIT_WARNING, Q.APPI, Q.CIBA_EXCHANGE_FAILED, Q.CIBA_EXCHANGE_SUCCEEDED, Q.CIBA_START_FAILED, Q.CIBA_START_SUCCEEDED, Q.CODE_LINK_SENT, Q.CODE_SENT, Q.DEPRECATION_NOTICE, Q.FAILED_LOGIN, Q.FAILED_BY_CONNECTOR, Q.FAILED_CHANGE_EMAIL, Q.FAILED_BY_CORS, Q.FAILED_CROSS_ORIGIN_AUTHENTICATION, Q.FAILED_CHANGE_PASSWORD, Q.FAILED_POST_CHANGE_PASSWORD_HOOK, Q.FAILED_CHANGE_PHONE_NUMBER, Q.FAILED_CHANGE_PASSWORD_REQUEST, Q.FAILED_CONNECTOR_PROVISIONING, Q.FAILED_CHANGE_USERNAME, Q.FAILED_DELEGATION, Q.FAILED_DEVICE_ACTIVATION, Q.FAILED_DEVICE_AUTHORIZATION_REQUEST, Q.USER_CANCELED_DEVICE_CONFIRMATION, Q.FAILED_USER_DELETION, Q.FAILED_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Q.FAILED_EXCHANGE_CUSTOM_TOKEN, Q.FAILED_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Q.FAILED_FEDERATED_LOGOUT, Q.FAILED_EXCHANGE_NATIVE_SOCIAL_LOGIN, Q.FAILED_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_ROTATING_REFRESH_TOKEN, Q.FAILED_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Q.FAILED_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Q.FAILED_HOOK, Q.FAILED_IMPERSONATION, Q.FAILED_INVITE_ACCEPT, Q.FAILED_LOGOUT, Q.FLOWS_EXECUTION_COMPLETED, Q.FLOWS_EXECUTION_FAILED, Q.FAILED_SENDING_NOTIFICATION, Q.FORMS_SUBMISSION_FAILED, Q.FORMS_SUBMISSION_SUCCEEDED, Q.FAILED_LOGIN_INCORRECT_PASSWORD, Q.FAILED_PUSHED_AUTHORIZATION_REQUEST, Q.FAILED_POST_USER_REGISTRATION_HOOK, Q.FAILED_SIGNUP, Q.FAILED_SILENT_AUTH, Q.FAILED_LOGIN_INVALID_EMAIL_USERNAME, Q.FAILED_USERS_IMPORT, Q.FAILED_VERIFICATION_EMAIL, Q.FAILED_VERIFICATION_EMAIL_REQUEST, Q.EMAIL_VERIFICATION_CONFIRMED, Q.EMAIL_VERIFICATION_FAILED, Q.MFA_AUTH_FAILED, Q.MFA_AUTH_REJECTED, Q.MFA_AUTH_SUCCESS, Q.MFA_ENROLLMENT_COMPLETE, Q.TOO_MANY_MFA_FAILURES, Q.MFA_RECOVERY_FAILED, Q.MFA_RECOVERY_RATE_LIMIT_EXCEED, Q.MFA_RECOVERY_SUCCESS, Q.MFA_EMAIL_SENT, Q.EMAIL_VERIFICATION_SENT, Q.EMAIL_VERIFICATION_SEND_FAILURE, Q.PUSH_NOTIFICATION_SENT, Q.ERROR_SENDING_MFA_PUSH_NOTIFICATION, Q.MFA_SMS_SENT, Q.ERROR_SENDING_MFA_SMS, Q.MFA_VOICE_CALL_SUCCESS, Q.MFA_VOICE_CALL_FAILED, Q.SECOND_FACTOR_STARTED, Q.MFA_ENROLL_STARTED, Q.MFA_ENROLLMENT_FAILED, Q.GUARDIAN_TENANT_UPDATE, Q.UNENROLL_DEVICE_ACCOUNT, Q.UPDATE_DEVICE_ACCOUNT, Q.WEBAUTHN_CHALLENGE_FAILED, Q.WEBAUTHN_ENROLLMENT_FAILED, Q.FAILED_KMS_API_OPERATION, Q.SUCCESS_KMS_API_OPERATION, Q.KMS_KEY_STATE_CHANGED, Q.TOO_MANY_CALLS_TO_DELEGATION, Q.BLOCKED_IP_ADDRESS, Q.BLOCKED_ACCOUNT_IP, Q.BLOCKED_ACCOUNT_EMAIL, Q.INFORMATION, Q.MFA_REQUIRED, Q.MANAGEMENT_API_READ_OPERATION, Q.FAILED_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Q.SUCCESSFUL_AUTHENTICATION_METHOD_OPERATION_MY_ACCOUNT, Q.FAILED_OIDC_BACKCHANNEL_LOGOUT, Q.SUCCESSFUL_OIDC_BACKCHANNEL_LOGOUT, Q.ORGANIZATION_MEMBER_ADDED, Q.PASSKEY_CHALLENGE_FAILED, Q.PASSKEY_CHALLENGE_STARTED, Q.PRE_LOGIN_ASSESSMENT, Q.BREACHED_PASSWORD, Q.BREACHED_PASSWORD_ON_RESET, Q.SUCCESS_RESOURCE_CLEANUP, Q.RICH_CONSENTS_ACCESS_ERROR, Q.SUCCESS_LOGIN, Q.SUCCESS_API_OPERATION, Q.FAILED_API_OPERATION, Q.SUCCESS_CHANGE_EMAIL, Q.SUCCESS_CROSS_ORIGIN_AUTHENTICATION, Q.SUCCESS_CHANGE_PASSWORD, Q.SUCCESS_CHANGE_PHONE_NUMBER, Q.SUCCESS_CHANGE_PASSWORD_REQUEST, Q.SUCCESS_CHANGE_USERNAME, Q.SUCCESS_CREDENTIAL_VALIDATION, Q.SUCCESS_DELEGATION, Q.SUCCESS_USER_DELETION, Q.SUCCESS_EXCHANGE_AUTHORIZATION_CODE_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_ACCESS_TOKEN_FOR_CLIENT_CREDENTIALS, Q.SUCCESS_EXCHANGE_CUSTOM_TOKEN, Q.SUCCESS_EXCHANGE_DEVICE_CODE_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_NATIVE_SOCIAL_LOGIN, Q.SUCCESS_EXCHANGE_PASSWORD_OOB_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORDLESS_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_OOB_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_OTP_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSKEY_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_PASSWORD_MFA_RECOVERY_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_REFRESH_TOKEN_FOR_ACCESS_TOKEN, Q.SUCCESS_EXCHANGE_SUBJECT_TOKEN_FOR_ACCESS_TOKEN, Q.SUCCESS_IMPERSONATION, Q.SUCCESSFULLY_ACCEPTED_USER_INVITE, Q.BREACHED_PASSWORD_ON_SIGNUP, Q.SUCCESS_LOGOUT, Q.SUCCESS_HOOK, Q.SUCCESS_PASSWORD_MIGRATION, Q.SUCCESS_REVOCATION, Q.SUCCESS_SIGNUP, Q.FAILED_SS_SSO_OPERATION, Q.INFORMATION_FROM_SS_SSO_OPERATION, Q.SUCCESS_SS_SSO_OPERATION, Q.SUCCESS_SILENT_AUTH, Q.SUCCESSFUL_SCIM_OPERATION, Q.SUCCESSFULLY_IMPORTED_USERS, Q.SUCCESS_VERIFICATION_EMAIL, Q.SUCCESS_VERIFICATION_EMAIL_REQUEST, Q.MAX_AMOUNT_OF_AUTHENTICATORS, Q.USER_LOGIN_BLOCK_RELEASED, Q.FAILED_UNIVERSAL_LOGOUT, Q.SUCCESSFUL_UNIVERSAL_LOGOUT, Q.WARNING_DURING_LOGIN, Q.WARNING_SENDING_NOTIFICATION, Q.WARNING_USER_MANAGEMENT, (() => {
|
|
4509
5548
|
let e = {};
|
|
4510
5549
|
for (let [t, n] of Object.entries(Q)) t.startsWith("SUCCESS_") || t.startsWith("SUCCESSFUL_") || t.startsWith("SUCCESSFULLY_") || t.endsWith("_SUCCEEDED") || t.endsWith("_COMPLETED") ? e[n] = "success" : t.startsWith("FAILED_") || t.startsWith("ERROR_") || t.startsWith("BREACHED_") || t.startsWith("BLOCKED_") || t === "MFA_AUTH_FAILED" || t === "MFA_AUTH_REJECTED" || t === "MFA_RECOVERY_FAILED" || t === "MFA_ENROLLMENT_FAILED" || t === "EMAIL_VERIFICATION_FAILED" || t === "WEBAUTHN_CHALLENGE_FAILED" || t === "WEBAUTHN_ENROLLMENT_FAILED" || t === "PASSKEY_CHALLENGE_FAILED" || t === "FLOWS_EXECUTION_FAILED" || t === "FORMS_SUBMISSION_FAILED" || t === "CIBA_EXCHANGE_FAILED" || t === "CIBA_START_FAILED" || t === "ACTIONS_EXECUTION_FAILED" || t === "RICH_CONSENTS_ACCESS_ERROR" || t === "USER_CANCELED_DEVICE_CONFIRMATION" || t === "TOO_MANY_MFA_FAILURES" || t === "MFA_RECOVERY_RATE_LIMIT_EXCEED" || t === "API_LIMIT" || t === "MAX_AMOUNT_OF_AUTHENTICATORS" ? e[n] = "failure" : t.startsWith("WARNING_") || t === "API_LIMIT_WARNING" || t === "DEPRECATION_NOTICE" || t === "PRE_LOGIN_ASSESSMENT" ? e[n] = "warning" : t === "CODE_SENT" || t === "CODE_LINK_SENT" || t === "MFA_EMAIL_SENT" || t === "MFA_SMS_SENT" || t === "EMAIL_VERIFICATION_SENT" || t === "PUSH_NOTIFICATION_SENT" ? e[n] = "code_sent" : t === "INFORMATION" || t === "INFORMATION_FROM_SS_SSO_OPERATION" || t === "MANAGEMENT_API_READ_OPERATION" || t === "APPI" || t === "ACLS_SUMMARY" || t === "ORGANIZATION_MEMBER_ADDED" ? e[n] = "info" : e[n] = "other";
|
|
4511
5550
|
return e;
|
|
4512
5551
|
})();
|
|
4513
|
-
var
|
|
5552
|
+
var Vi = e.object({
|
|
4514
5553
|
name: e.string(),
|
|
4515
5554
|
version: e.string(),
|
|
4516
5555
|
env: e.object({ node: e.string().optional() }).optional()
|
|
4517
|
-
}),
|
|
5556
|
+
}), Hi = e.object({
|
|
4518
5557
|
country_code: e.string().length(2),
|
|
4519
5558
|
city_name: e.string(),
|
|
4520
5559
|
latitude: e.string(),
|
|
@@ -4523,7 +5562,7 @@ var ki = e.object({
|
|
|
4523
5562
|
continent_code: e.string()
|
|
4524
5563
|
});
|
|
4525
5564
|
e.object({
|
|
4526
|
-
type:
|
|
5565
|
+
type: Bi,
|
|
4527
5566
|
date: e.string(),
|
|
4528
5567
|
description: e.string().optional(),
|
|
4529
5568
|
ip: e.string().optional(),
|
|
@@ -4541,63 +5580,63 @@ e.object({
|
|
|
4541
5580
|
strategy: e.string().optional(),
|
|
4542
5581
|
strategy_type: e.string().optional(),
|
|
4543
5582
|
hostname: e.string().optional(),
|
|
4544
|
-
auth0_client:
|
|
5583
|
+
auth0_client: Vi.optional(),
|
|
4545
5584
|
log_id: e.string().optional(),
|
|
4546
|
-
location_info:
|
|
5585
|
+
location_info: Hi.optional()
|
|
4547
5586
|
}).extend({ log_id: e.string() });
|
|
4548
|
-
var
|
|
5587
|
+
var Ui = e.enum([
|
|
4549
5588
|
"http",
|
|
4550
5589
|
"eventbridge",
|
|
4551
5590
|
"eventgrid",
|
|
4552
5591
|
"splunk",
|
|
4553
5592
|
"datadog",
|
|
4554
5593
|
"sumo"
|
|
4555
|
-
]),
|
|
5594
|
+
]), Wi = e.enum([
|
|
4556
5595
|
"active",
|
|
4557
5596
|
"paused",
|
|
4558
5597
|
"suspended"
|
|
4559
|
-
]),
|
|
5598
|
+
]), Gi = e.object({
|
|
4560
5599
|
type: e.string(),
|
|
4561
5600
|
name: e.string()
|
|
4562
5601
|
});
|
|
4563
5602
|
e.object({
|
|
4564
5603
|
name: e.string(),
|
|
4565
|
-
type:
|
|
4566
|
-
status:
|
|
5604
|
+
type: Ui,
|
|
5605
|
+
status: Wi.optional(),
|
|
4567
5606
|
sink: e.record(e.string(), e.unknown()),
|
|
4568
|
-
filters: e.array(
|
|
5607
|
+
filters: e.array(Gi).optional(),
|
|
4569
5608
|
isPriority: e.boolean().optional()
|
|
4570
5609
|
}).extend({
|
|
4571
5610
|
id: e.string(),
|
|
4572
|
-
status:
|
|
5611
|
+
status: Wi,
|
|
4573
5612
|
created_at: e.string().optional(),
|
|
4574
5613
|
updated_at: e.string().optional()
|
|
4575
5614
|
});
|
|
4576
|
-
var
|
|
5615
|
+
var Ki = e.enum([
|
|
4577
5616
|
"auth0",
|
|
4578
5617
|
"cognito",
|
|
4579
5618
|
"okta",
|
|
4580
5619
|
"oidc"
|
|
4581
|
-
]),
|
|
5620
|
+
]), qi = e.object({
|
|
4582
5621
|
domain: e.string(),
|
|
4583
5622
|
client_id: e.string(),
|
|
4584
5623
|
client_secret: e.string(),
|
|
4585
5624
|
audience: e.string().optional(),
|
|
4586
5625
|
scope: e.string().optional()
|
|
4587
|
-
}),
|
|
5626
|
+
}), Ji = e.object({
|
|
4588
5627
|
id: e.string().optional(),
|
|
4589
5628
|
name: e.string(),
|
|
4590
|
-
provider:
|
|
5629
|
+
provider: Ki,
|
|
4591
5630
|
connection: e.string(),
|
|
4592
5631
|
enabled: e.boolean().default(!0),
|
|
4593
|
-
credentials:
|
|
5632
|
+
credentials: qi
|
|
4594
5633
|
});
|
|
4595
5634
|
e.object({
|
|
4596
5635
|
id: e.string(),
|
|
4597
5636
|
created_at: e.string(),
|
|
4598
5637
|
updated_at: e.string()
|
|
4599
|
-
}).extend(
|
|
4600
|
-
var
|
|
5638
|
+
}).extend(Ji.shape);
|
|
5639
|
+
var Yi = e.object({
|
|
4601
5640
|
enabled: e.boolean().optional(),
|
|
4602
5641
|
shields: e.array(e.string()).optional(),
|
|
4603
5642
|
admin_notification_frequency: e.array(e.string()).optional(),
|
|
@@ -4606,13 +5645,13 @@ var Li = e.object({
|
|
|
4606
5645
|
"pre-user-registration": e.object({ shields: e.array(e.string()).optional() }).optional(),
|
|
4607
5646
|
"pre-change-password": e.object({ shields: e.array(e.string()).optional() }).optional()
|
|
4608
5647
|
}).optional()
|
|
4609
|
-
}),
|
|
5648
|
+
}), Xi = e.object({
|
|
4610
5649
|
enabled: e.boolean().optional(),
|
|
4611
5650
|
shields: e.array(e.string()).optional(),
|
|
4612
5651
|
allowlist: e.array(e.string()).optional(),
|
|
4613
5652
|
mode: e.string().optional(),
|
|
4614
5653
|
max_attempts: e.number().optional()
|
|
4615
|
-
}),
|
|
5654
|
+
}), Zi = e.object({
|
|
4616
5655
|
enabled: e.boolean().optional(),
|
|
4617
5656
|
shields: e.array(e.string()).optional(),
|
|
4618
5657
|
allowlist: e.array(e.string()).optional(),
|
|
@@ -4626,10 +5665,10 @@ var Li = e.object({
|
|
|
4626
5665
|
rate: e.number().optional()
|
|
4627
5666
|
}).optional()
|
|
4628
5667
|
}).optional()
|
|
4629
|
-
}),
|
|
4630
|
-
breached_password_detection:
|
|
4631
|
-
brute_force_protection:
|
|
4632
|
-
suspicious_ip_throttling:
|
|
5668
|
+
}), Qi = e.object({
|
|
5669
|
+
breached_password_detection: Yi.optional(),
|
|
5670
|
+
brute_force_protection: Xi.optional(),
|
|
5671
|
+
suspicious_ip_throttling: Zi.optional()
|
|
4633
5672
|
});
|
|
4634
5673
|
e.object({
|
|
4635
5674
|
id: e.string().optional(),
|
|
@@ -4642,14 +5681,14 @@ e.object({
|
|
|
4642
5681
|
created_at: e.string(),
|
|
4643
5682
|
updated_at: e.string()
|
|
4644
5683
|
});
|
|
4645
|
-
var
|
|
5684
|
+
var $i = e.object({
|
|
4646
5685
|
initial_user_agent: e.string().describe("First user agent of the device from which this user logged in"),
|
|
4647
5686
|
initial_ip: e.string().describe("First IP address associated with this session"),
|
|
4648
5687
|
initial_asn: e.string().describe("First autonomous system number associated with this session"),
|
|
4649
5688
|
last_user_agent: e.string().describe("Last user agent of the device from which this user logged in"),
|
|
4650
5689
|
last_ip: e.string().describe("Last IP address from which this user logged in"),
|
|
4651
5690
|
last_asn: e.string().describe("Last autonomous system number from which this user logged in")
|
|
4652
|
-
}),
|
|
5691
|
+
}), ea = e.object({
|
|
4653
5692
|
id: e.string(),
|
|
4654
5693
|
revoked_at: e.string().optional(),
|
|
4655
5694
|
used_at: e.string().optional(),
|
|
@@ -4657,7 +5696,7 @@ var Vi = e.object({
|
|
|
4657
5696
|
expires_at: e.string().optional(),
|
|
4658
5697
|
login_session_id: e.string(),
|
|
4659
5698
|
idle_expires_at: e.string().optional(),
|
|
4660
|
-
device:
|
|
5699
|
+
device: $i.describe("Metadata related to the device used in the session"),
|
|
4661
5700
|
clients: e.array(e.string()).describe("List of client details for the session")
|
|
4662
5701
|
});
|
|
4663
5702
|
e.object({
|
|
@@ -4665,7 +5704,7 @@ e.object({
|
|
|
4665
5704
|
updated_at: e.string(),
|
|
4666
5705
|
authenticated_at: e.string(),
|
|
4667
5706
|
last_interaction_at: e.string()
|
|
4668
|
-
}).extend(
|
|
5707
|
+
}).extend(ea.shape), e.object({
|
|
4669
5708
|
kid: e.string().openapi({ description: "The key id of the signing key" }),
|
|
4670
5709
|
tenant_id: e.string().optional().openapi({ description: "The tenant the key belongs to. Omitted means the key is shared / control-plane scoped." }),
|
|
4671
5710
|
cert: e.string().openapi({ description: "The public certificate of the signing key" }),
|
|
@@ -4682,7 +5721,7 @@ e.object({
|
|
|
4682
5721
|
connection: e.string().optional().openapi({ description: "The connection identifier associated with the key" }),
|
|
4683
5722
|
type: e.enum(["jwt_signing", "saml_encryption"]).openapi({ description: "The type of the signing key" })
|
|
4684
5723
|
});
|
|
4685
|
-
var
|
|
5724
|
+
var ta = e.object({
|
|
4686
5725
|
id: e.string().optional(),
|
|
4687
5726
|
audience: e.string().optional(),
|
|
4688
5727
|
friendly_name: e.string(),
|
|
@@ -4800,7 +5839,7 @@ var Ui = e.object({
|
|
|
4800
5839
|
"shared_planetscale"
|
|
4801
5840
|
]).optional(),
|
|
4802
5841
|
d1_database_id: e.string().max(64).optional(),
|
|
4803
|
-
attack_protection:
|
|
5842
|
+
attack_protection: Qi.optional(),
|
|
4804
5843
|
mfa: e.object({
|
|
4805
5844
|
policy: e.enum(["never", "always"]).default("never").optional(),
|
|
4806
5845
|
factors: e.object({
|
|
@@ -4831,35 +5870,35 @@ var Ui = e.object({
|
|
|
4831
5870
|
e.object({
|
|
4832
5871
|
created_at: e.string().nullable().transform((e) => e ?? ""),
|
|
4833
5872
|
updated_at: e.string().nullable().transform((e) => e ?? "")
|
|
4834
|
-
}).extend(
|
|
5873
|
+
}).extend(ta.shape).extend({
|
|
4835
5874
|
id: e.string(),
|
|
4836
5875
|
is_control_plane: e.boolean().optional()
|
|
4837
5876
|
});
|
|
4838
|
-
var
|
|
5877
|
+
var na = e.enum([
|
|
4839
5878
|
"provision",
|
|
4840
5879
|
"seed",
|
|
4841
5880
|
"upgrade",
|
|
4842
5881
|
"backup",
|
|
4843
5882
|
"deprovision"
|
|
4844
|
-
]),
|
|
5883
|
+
]), ra = e.enum([
|
|
4845
5884
|
"pending",
|
|
4846
5885
|
"running",
|
|
4847
5886
|
"succeeded",
|
|
4848
5887
|
"failed",
|
|
4849
5888
|
"cancelled"
|
|
4850
|
-
]),
|
|
5889
|
+
]), ia = e.enum(["inline", "cloudflare-workflows"]);
|
|
4851
5890
|
e.object({
|
|
4852
5891
|
tenant_id: e.string().max(255).nullable().default(null),
|
|
4853
5892
|
rollout_id: e.string().max(255).nullable().optional(),
|
|
4854
|
-
kind:
|
|
4855
|
-
engine:
|
|
5893
|
+
kind: na,
|
|
5894
|
+
engine: ia,
|
|
4856
5895
|
engine_instance_id: e.string().max(100).nullable().optional(),
|
|
4857
5896
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
4858
5897
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
4859
5898
|
initiated_by: e.string().max(255).nullable().optional()
|
|
4860
5899
|
}).extend({
|
|
4861
5900
|
id: e.string(),
|
|
4862
|
-
status:
|
|
5901
|
+
status: ra,
|
|
4863
5902
|
current_step: e.string().max(255).nullable().optional(),
|
|
4864
5903
|
error: e.string().nullable().optional(),
|
|
4865
5904
|
created_at: e.string(),
|
|
@@ -4874,7 +5913,7 @@ e.object({
|
|
|
4874
5913
|
error: !0,
|
|
4875
5914
|
finished_at: !0
|
|
4876
5915
|
}).partial();
|
|
4877
|
-
var
|
|
5916
|
+
var aa = e.enum([
|
|
4878
5917
|
"started",
|
|
4879
5918
|
"succeeded",
|
|
4880
5919
|
"failed",
|
|
@@ -4885,18 +5924,18 @@ var qi = e.enum([
|
|
|
4885
5924
|
e.object({
|
|
4886
5925
|
operation_id: e.string().max(255),
|
|
4887
5926
|
step: e.string().max(255),
|
|
4888
|
-
outcome:
|
|
5927
|
+
outcome: aa,
|
|
4889
5928
|
detail: e.record(e.string(), e.unknown()).nullable().optional(),
|
|
4890
5929
|
attempt: e.number().int().min(1).default(1)
|
|
4891
5930
|
}).extend({
|
|
4892
5931
|
id: e.string(),
|
|
4893
5932
|
created_at: e.string()
|
|
4894
5933
|
});
|
|
4895
|
-
var
|
|
5934
|
+
var oa = e.enum([
|
|
4896
5935
|
"upgrade",
|
|
4897
5936
|
"reseed",
|
|
4898
5937
|
"backup"
|
|
4899
|
-
]),
|
|
5938
|
+
]), sa = e.enum([
|
|
4900
5939
|
"pending",
|
|
4901
5940
|
"canary",
|
|
4902
5941
|
"rolling",
|
|
@@ -4905,7 +5944,7 @@ var Ji = e.enum([
|
|
|
4905
5944
|
"failed"
|
|
4906
5945
|
]);
|
|
4907
5946
|
e.object({
|
|
4908
|
-
kind:
|
|
5947
|
+
kind: oa,
|
|
4909
5948
|
target_worker_version: e.string().max(255).nullable().optional(),
|
|
4910
5949
|
target_database_version: e.string().max(255).nullable().optional(),
|
|
4911
5950
|
wave_size: e.number().int().min(1).default(10),
|
|
@@ -4914,7 +5953,7 @@ e.object({
|
|
|
4914
5953
|
initiated_by: e.string().max(255).nullable().optional()
|
|
4915
5954
|
}).extend({
|
|
4916
5955
|
id: e.string(),
|
|
4917
|
-
status:
|
|
5956
|
+
status: sa,
|
|
4918
5957
|
created_at: e.string(),
|
|
4919
5958
|
updated_at: e.string(),
|
|
4920
5959
|
finished_at: e.string().nullable().optional()
|
|
@@ -4936,7 +5975,7 @@ e.object({
|
|
|
4936
5975
|
code: e.string(),
|
|
4937
5976
|
state: e.string().optional()
|
|
4938
5977
|
});
|
|
4939
|
-
var
|
|
5978
|
+
var ca = e.object({
|
|
4940
5979
|
button_border_radius: e.number(),
|
|
4941
5980
|
button_border_weight: e.number(),
|
|
4942
5981
|
buttons_style: e.enum([
|
|
@@ -4954,7 +5993,7 @@ var Xi = e.object({
|
|
|
4954
5993
|
show_widget_shadow: e.boolean(),
|
|
4955
5994
|
widget_border_weight: e.number(),
|
|
4956
5995
|
widget_corner_radius: e.number()
|
|
4957
|
-
}),
|
|
5996
|
+
}), la = e.object({
|
|
4958
5997
|
base_focus_color: e.string(),
|
|
4959
5998
|
base_hover_color: e.string(),
|
|
4960
5999
|
body_text: e.string(),
|
|
@@ -4981,7 +6020,7 @@ var Xi = e.object({
|
|
|
4981
6020
|
}), $ = e.object({
|
|
4982
6021
|
bold: e.boolean(),
|
|
4983
6022
|
size: e.number()
|
|
4984
|
-
}),
|
|
6023
|
+
}), ua = e.object({
|
|
4985
6024
|
body_text: $,
|
|
4986
6025
|
buttons_text: $,
|
|
4987
6026
|
font_url: e.string(),
|
|
@@ -4991,7 +6030,7 @@ var Xi = e.object({
|
|
|
4991
6030
|
reference_text_size: e.number(),
|
|
4992
6031
|
subtitle: $,
|
|
4993
6032
|
title: $
|
|
4994
|
-
}),
|
|
6033
|
+
}), da = e.object({
|
|
4995
6034
|
background_color: e.string(),
|
|
4996
6035
|
background_image_url: e.string(),
|
|
4997
6036
|
page_layout: e.enum([
|
|
@@ -5004,7 +6043,7 @@ var Xi = e.object({
|
|
|
5004
6043
|
"chip",
|
|
5005
6044
|
"none"
|
|
5006
6045
|
]).optional()
|
|
5007
|
-
}),
|
|
6046
|
+
}), fa = e.object({
|
|
5008
6047
|
header_text_alignment: e.enum([
|
|
5009
6048
|
"center",
|
|
5010
6049
|
"left",
|
|
@@ -5021,40 +6060,40 @@ var Xi = e.object({
|
|
|
5021
6060
|
social_buttons_layout: e.enum(["bottom", "top"])
|
|
5022
6061
|
});
|
|
5023
6062
|
e.object({
|
|
5024
|
-
borders:
|
|
5025
|
-
colors:
|
|
6063
|
+
borders: ca,
|
|
6064
|
+
colors: la,
|
|
5026
6065
|
displayName: e.string(),
|
|
5027
|
-
fonts:
|
|
5028
|
-
page_background:
|
|
5029
|
-
widget:
|
|
6066
|
+
fonts: ua,
|
|
6067
|
+
page_background: da,
|
|
6068
|
+
widget: fa
|
|
5030
6069
|
}).extend({ themeId: e.string() }), e.object({
|
|
5031
6070
|
universal_login_experience: e.enum(["new", "classic"]).default("new"),
|
|
5032
6071
|
identifier_first: e.boolean().default(!0),
|
|
5033
6072
|
password_first: e.boolean().default(!1),
|
|
5034
6073
|
webauthn_platform_first_factor: e.boolean()
|
|
5035
6074
|
});
|
|
5036
|
-
var
|
|
6075
|
+
var pa = e.object({
|
|
5037
6076
|
hosts: e.array(e.string()).optional(),
|
|
5038
6077
|
methods: e.array(e.string()).optional(),
|
|
5039
6078
|
path: e.string().default("/*"),
|
|
5040
6079
|
headers: e.record(e.string(), e.string()).optional(),
|
|
5041
6080
|
query: e.record(e.string(), e.string()).optional()
|
|
5042
|
-
}),
|
|
6081
|
+
}), ma = e.object({
|
|
5043
6082
|
type: e.string(),
|
|
5044
6083
|
options: e.record(e.string(), e.unknown()).default({})
|
|
5045
|
-
}),
|
|
6084
|
+
}), ha = e.object({
|
|
5046
6085
|
id: e.string().optional(),
|
|
5047
6086
|
custom_domain_id: e.string(),
|
|
5048
6087
|
priority: e.number().int().default(100),
|
|
5049
|
-
match:
|
|
5050
|
-
handlers: e.array(
|
|
6088
|
+
match: pa,
|
|
6089
|
+
handlers: e.array(ma).min(1)
|
|
5051
6090
|
});
|
|
5052
|
-
|
|
6091
|
+
ha.extend({
|
|
5053
6092
|
id: e.string(),
|
|
5054
6093
|
tenant_id: e.string(),
|
|
5055
6094
|
created_at: e.string(),
|
|
5056
6095
|
updated_at: e.string()
|
|
5057
|
-
}),
|
|
6096
|
+
}), ha.partial().omit({
|
|
5058
6097
|
id: !0,
|
|
5059
6098
|
custom_domain_id: !0
|
|
5060
6099
|
}), e.object({
|
|
@@ -5064,7 +6103,7 @@ ra.extend({
|
|
|
5064
6103
|
credentials: e.record(e.string(), e.unknown()),
|
|
5065
6104
|
settings: e.object({}).optional()
|
|
5066
6105
|
});
|
|
5067
|
-
var
|
|
6106
|
+
var ga = e.enum([
|
|
5068
6107
|
"verify_email",
|
|
5069
6108
|
"verify_email_by_code",
|
|
5070
6109
|
"reset_email",
|
|
@@ -5079,7 +6118,7 @@ var ia = e.enum([
|
|
|
5079
6118
|
"user_invitation"
|
|
5080
6119
|
]);
|
|
5081
6120
|
e.object({
|
|
5082
|
-
template:
|
|
6121
|
+
template: ga,
|
|
5083
6122
|
body: e.string(),
|
|
5084
6123
|
from: e.string(),
|
|
5085
6124
|
subject: e.string(),
|
|
@@ -5096,7 +6135,7 @@ e.object({
|
|
|
5096
6135
|
expires_at: e.string().optional(),
|
|
5097
6136
|
idle_expires_at: e.string().optional(),
|
|
5098
6137
|
last_exchanged_at: e.string().optional(),
|
|
5099
|
-
device:
|
|
6138
|
+
device: $i,
|
|
5100
6139
|
resource_servers: e.array(e.object({
|
|
5101
6140
|
audience: e.string(),
|
|
5102
6141
|
scopes: e.string()
|
|
@@ -5117,10 +6156,10 @@ e.object({
|
|
|
5117
6156
|
name: e.string(),
|
|
5118
6157
|
options: e.object({})
|
|
5119
6158
|
});
|
|
5120
|
-
var
|
|
6159
|
+
var _a = e.object({
|
|
5121
6160
|
value: e.string(),
|
|
5122
6161
|
description: e.string().optional()
|
|
5123
|
-
}),
|
|
6162
|
+
}), va = e.object({
|
|
5124
6163
|
token_dialect: e.enum(["access_token", "access_token_authz"]).optional(),
|
|
5125
6164
|
enforce_policies: e.boolean().optional(),
|
|
5126
6165
|
allow_skipping_userinfo: e.boolean().optional(),
|
|
@@ -5128,11 +6167,11 @@ var aa = e.object({
|
|
|
5128
6167
|
persist_client_authorization: e.boolean().optional(),
|
|
5129
6168
|
enable_introspection_endpoint: e.boolean().optional(),
|
|
5130
6169
|
mtls: e.object({ bound_access_tokens: e.boolean().optional() }).optional()
|
|
5131
|
-
}),
|
|
6170
|
+
}), ya = e.object({
|
|
5132
6171
|
id: e.string().optional(),
|
|
5133
6172
|
name: e.string(),
|
|
5134
6173
|
identifier: e.string(),
|
|
5135
|
-
scopes: e.array(
|
|
6174
|
+
scopes: e.array(_a).optional(),
|
|
5136
6175
|
signing_alg: e.string().optional(),
|
|
5137
6176
|
signing_secret: e.string().optional(),
|
|
5138
6177
|
token_lifetime: e.number().default(86400),
|
|
@@ -5140,20 +6179,20 @@ var aa = e.object({
|
|
|
5140
6179
|
skip_consent_for_verifiable_first_party_clients: e.boolean().optional(),
|
|
5141
6180
|
allow_offline_access: e.boolean().optional(),
|
|
5142
6181
|
verificationKey: e.string().optional(),
|
|
5143
|
-
options:
|
|
6182
|
+
options: va.optional(),
|
|
5144
6183
|
is_system: e.boolean().optional(),
|
|
5145
6184
|
metadata: e.record(e.string(), e.any()).optional()
|
|
5146
6185
|
}).extend({
|
|
5147
6186
|
created_at: e.string().optional(),
|
|
5148
6187
|
updated_at: e.string().optional()
|
|
5149
6188
|
});
|
|
5150
|
-
e.array(
|
|
5151
|
-
var
|
|
6189
|
+
e.array(ya);
|
|
6190
|
+
var ba = e.object({
|
|
5152
6191
|
role_id: e.string(),
|
|
5153
6192
|
resource_server_identifier: e.string(),
|
|
5154
6193
|
permission_name: e.string()
|
|
5155
6194
|
}).extend({ created_at: e.string() });
|
|
5156
|
-
e.array(
|
|
6195
|
+
e.array(ba), e.object({
|
|
5157
6196
|
user_id: e.string().openapi({ description: "The id of the user that granted the consent" }),
|
|
5158
6197
|
clientID: e.string().openapi({ description: "The id of the client the grant was issued to" }),
|
|
5159
6198
|
audience: e.string().optional().openapi({ description: "The audience the grant applies to" }),
|
|
@@ -5166,7 +6205,7 @@ e.array(ca), e.object({
|
|
|
5166
6205
|
failed_logins: e.array(e.string()).optional(),
|
|
5167
6206
|
last_password_reset: e.string().optional()
|
|
5168
6207
|
});
|
|
5169
|
-
var
|
|
6208
|
+
var xa = e.object({
|
|
5170
6209
|
user_id: e.string(),
|
|
5171
6210
|
resource_server_identifier: e.string(),
|
|
5172
6211
|
permission_name: e.string(),
|
|
@@ -5175,8 +6214,8 @@ var la = e.object({
|
|
|
5175
6214
|
tenant_id: e.string(),
|
|
5176
6215
|
created_at: e.string().optional()
|
|
5177
6216
|
});
|
|
5178
|
-
e.array(
|
|
5179
|
-
var
|
|
6217
|
+
e.array(xa);
|
|
6218
|
+
var Sa = e.object({
|
|
5180
6219
|
user_id: e.string(),
|
|
5181
6220
|
resource_server_identifier: e.string(),
|
|
5182
6221
|
resource_server_name: e.string(),
|
|
@@ -5185,8 +6224,8 @@ var ua = e.object({
|
|
|
5185
6224
|
created_at: e.string().optional(),
|
|
5186
6225
|
organization_id: e.string().optional()
|
|
5187
6226
|
});
|
|
5188
|
-
e.array(
|
|
5189
|
-
var
|
|
6227
|
+
e.array(Sa);
|
|
6228
|
+
var Ca = e.object({
|
|
5190
6229
|
user_id: e.string(),
|
|
5191
6230
|
role_id: e.string(),
|
|
5192
6231
|
organization_id: e.string().optional()
|
|
@@ -5194,8 +6233,8 @@ var da = e.object({
|
|
|
5194
6233
|
tenant_id: e.string(),
|
|
5195
6234
|
created_at: e.string().optional()
|
|
5196
6235
|
});
|
|
5197
|
-
e.array(
|
|
5198
|
-
var
|
|
6236
|
+
e.array(Ca);
|
|
6237
|
+
var wa = e.object({
|
|
5199
6238
|
id: e.string().optional().openapi({ description: "The unique identifier of the role. If not provided, one will be generated." }),
|
|
5200
6239
|
name: e.string().min(1).max(50).openapi({ description: "The name of the role. Cannot include '<' or '>'" }),
|
|
5201
6240
|
description: e.string().max(255).optional().openapi({ description: "The description of the role" }),
|
|
@@ -5206,19 +6245,19 @@ var fa = e.object({
|
|
|
5206
6245
|
created_at: e.string().optional(),
|
|
5207
6246
|
updated_at: e.string().optional()
|
|
5208
6247
|
});
|
|
5209
|
-
e.array(
|
|
5210
|
-
var
|
|
6248
|
+
e.array(wa);
|
|
6249
|
+
var Ta = e.object({
|
|
5211
6250
|
logo_url: e.string().optional().openapi({ description: "URL of the organization's logo" }),
|
|
5212
6251
|
colors: e.object({
|
|
5213
6252
|
primary: e.string().optional().openapi({ description: "Primary color in hex format (e.g., #FF0000)" }),
|
|
5214
6253
|
page_background: e.string().optional().openapi({ description: "Page background color in hex format (e.g., #FFFFFF)" })
|
|
5215
6254
|
}).optional()
|
|
5216
|
-
}).optional(),
|
|
6255
|
+
}).optional(), Ea = e.object({
|
|
5217
6256
|
connection_id: e.string().openapi({ description: "ID of the connection" }),
|
|
5218
6257
|
assign_membership_on_login: e.boolean().default(!1).openapi({ description: "Whether to assign membership to the organization on login" }),
|
|
5219
6258
|
show_as_button: e.boolean().default(!0).openapi({ description: "Whether to show this connection as a button in the login screen" }),
|
|
5220
6259
|
is_signup_enabled: e.boolean().default(!0).openapi({ description: "Whether signup is enabled for this connection" })
|
|
5221
|
-
}),
|
|
6260
|
+
}), Da = e.object({ client_credentials: e.object({
|
|
5222
6261
|
enforce: e.boolean().default(!1).openapi({ description: "Whether to enforce token quota limits" }),
|
|
5223
6262
|
per_day: e.number().min(0).default(0).openapi({ description: "Maximum tokens per day (0 = unlimited)" }),
|
|
5224
6263
|
per_hour: e.number().min(0).default(0).openapi({ description: "Maximum tokens per hour (0 = unlimited)" })
|
|
@@ -5227,15 +6266,15 @@ e.object({
|
|
|
5227
6266
|
id: e.string().optional(),
|
|
5228
6267
|
name: e.string().min(1).regex(/^[a-z0-9_-]+$/, { message: "Organization name must be lowercase and can only contain letters, numbers, hyphens, and underscores" }).openapi({ description: "The name of the organization. Must be lowercase and can only contain letters, numbers, hyphens, and underscores." }),
|
|
5229
6268
|
display_name: e.string().optional().openapi({ description: "The display name of the organization" }),
|
|
5230
|
-
branding:
|
|
6269
|
+
branding: Ta,
|
|
5231
6270
|
metadata: e.record(e.string(), e.any()).default({}).optional().openapi({ description: "Custom metadata for the organization" }),
|
|
5232
|
-
enabled_connections: e.array(
|
|
5233
|
-
token_quota:
|
|
6271
|
+
enabled_connections: e.array(Ea).default([]).optional().openapi({ description: "List of enabled connections for the organization" }),
|
|
6272
|
+
token_quota: Da
|
|
5234
6273
|
}).extend(G.shape).extend({
|
|
5235
6274
|
id: e.string(),
|
|
5236
6275
|
name: e.string().min(1).openapi({ description: "The name of the organization" })
|
|
5237
6276
|
});
|
|
5238
|
-
var
|
|
6277
|
+
var Oa = e.object({
|
|
5239
6278
|
connection_id: e.string().openapi({ description: "ID of the tenant-level connection to enable for the org." }),
|
|
5240
6279
|
assign_membership_on_login: e.boolean().optional().default(!1),
|
|
5241
6280
|
show_as_button: e.boolean().optional().default(!0),
|
|
@@ -5248,7 +6287,7 @@ var ga = e.object({
|
|
|
5248
6287
|
created_at: e.string().optional(),
|
|
5249
6288
|
updated_at: e.string().optional()
|
|
5250
6289
|
});
|
|
5251
|
-
e.array(
|
|
6290
|
+
e.array(Oa), e.object({
|
|
5252
6291
|
user_id: e.string().openapi({ description: "ID of the user" }),
|
|
5253
6292
|
organization_id: e.string().openapi({ description: "ID of the organization" })
|
|
5254
6293
|
}).extend(G.shape).extend({ id: e.string() }), e.object({
|
|
@@ -5387,22 +6426,22 @@ e.array(ga), e.object({
|
|
|
5387
6426
|
"passwordless",
|
|
5388
6427
|
"enterprise"
|
|
5389
6428
|
]);
|
|
5390
|
-
var
|
|
6429
|
+
var ka = e.object({
|
|
5391
6430
|
name: e.string(),
|
|
5392
6431
|
type: e.string()
|
|
5393
|
-
}),
|
|
6432
|
+
}), Aa = e.object({
|
|
5394
6433
|
elapsed: e.number(),
|
|
5395
6434
|
rows_read: e.number().optional(),
|
|
5396
6435
|
bytes_read: e.number().optional()
|
|
5397
6436
|
});
|
|
5398
6437
|
e.object({
|
|
5399
|
-
meta: e.array(
|
|
6438
|
+
meta: e.array(ka),
|
|
5400
6439
|
data: e.array(e.record(e.string(), e.any())),
|
|
5401
6440
|
rows: e.number(),
|
|
5402
6441
|
rows_before_limit_at_least: e.number().optional(),
|
|
5403
|
-
statistics:
|
|
6442
|
+
statistics: Aa.optional()
|
|
5404
6443
|
});
|
|
5405
|
-
var
|
|
6444
|
+
var ja = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.signup-password.reset-password.consent.mfa.mfa-push.mfa-otp.mfa-voice.mfa-phone.mfa-webauthn.mfa-email.mfa-recovery-code.status.device-flow.email-verification.email-otp-challenge.organizations.invitation.common.passkeys.captcha.custom-form.login-passwordless.mfa-login-options".split(".")), Ma = e.record(e.string(), e.record(e.string(), e.string())).openapi({
|
|
5406
6445
|
type: "object",
|
|
5407
6446
|
additionalProperties: {
|
|
5408
6447
|
type: "object",
|
|
@@ -5410,11 +6449,11 @@ var ya = e.enum(/* @__PURE__ */ "login.login-id.login-password.signup.signup-id.
|
|
|
5410
6449
|
}
|
|
5411
6450
|
});
|
|
5412
6451
|
e.object({
|
|
5413
|
-
prompt:
|
|
6452
|
+
prompt: ja,
|
|
5414
6453
|
language: e.string(),
|
|
5415
|
-
custom_text:
|
|
6454
|
+
custom_text: Ma
|
|
5416
6455
|
});
|
|
5417
|
-
var
|
|
6456
|
+
var Na = e.enum([
|
|
5418
6457
|
"phone",
|
|
5419
6458
|
"totp",
|
|
5420
6459
|
"email",
|
|
@@ -5422,9 +6461,9 @@ var xa = e.enum([
|
|
|
5422
6461
|
"webauthn-roaming",
|
|
5423
6462
|
"webauthn-platform",
|
|
5424
6463
|
"passkey"
|
|
5425
|
-
]),
|
|
6464
|
+
]), Pa = e.object({
|
|
5426
6465
|
user_id: e.string(),
|
|
5427
|
-
type:
|
|
6466
|
+
type: Na,
|
|
5428
6467
|
phone_number: e.string().optional(),
|
|
5429
6468
|
totp_secret: e.string().optional(),
|
|
5430
6469
|
credential_id: e.string().optional(),
|
|
@@ -5435,7 +6474,7 @@ var xa = e.enum([
|
|
|
5435
6474
|
friendly_name: e.string().optional(),
|
|
5436
6475
|
confirmed: e.boolean().default(!1)
|
|
5437
6476
|
});
|
|
5438
|
-
function
|
|
6477
|
+
function Fa(t, n) {
|
|
5439
6478
|
t.type === "phone" && !t.phone_number && n.addIssue({
|
|
5440
6479
|
code: e.ZodIssueCode.custom,
|
|
5441
6480
|
message: "phone_number is required when type is 'phone'",
|
|
@@ -5458,51 +6497,51 @@ function Ca(t, n) {
|
|
|
5458
6497
|
path: ["public_key"]
|
|
5459
6498
|
}));
|
|
5460
6499
|
}
|
|
5461
|
-
|
|
6500
|
+
Pa.superRefine(Fa), Pa.extend({
|
|
5462
6501
|
id: e.string(),
|
|
5463
6502
|
created_at: e.string(),
|
|
5464
6503
|
updated_at: e.string()
|
|
5465
|
-
}).superRefine(
|
|
6504
|
+
}).superRefine(Fa), e.object({
|
|
5466
6505
|
id: e.string().optional(),
|
|
5467
6506
|
created_at: e.string().datetime({ offset: !0 }).optional(),
|
|
5468
6507
|
updated_at: e.string().datetime({ offset: !0 }).optional()
|
|
5469
6508
|
});
|
|
5470
|
-
function
|
|
6509
|
+
function Ia(e) {
|
|
5471
6510
|
let t = atob(e), n = new Uint8Array(t.length);
|
|
5472
6511
|
for (let e = 0; e < t.length; e++) n[e] = t.charCodeAt(e);
|
|
5473
6512
|
return n;
|
|
5474
6513
|
}
|
|
5475
6514
|
//#endregion
|
|
5476
|
-
//#region ../../node_modules/.pnpm/nanoid@5.1.
|
|
5477
|
-
var
|
|
6515
|
+
//#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/url-alphabet/index.js
|
|
6516
|
+
var La = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Ra = (e = 21) => {
|
|
5478
6517
|
let t = "", n = crypto.getRandomValues(new Uint8Array(e |= 0));
|
|
5479
|
-
for (; e--;) t +=
|
|
6518
|
+
for (; e--;) t += La[n[e] & 63];
|
|
5480
6519
|
return t;
|
|
5481
6520
|
};
|
|
5482
6521
|
//#endregion
|
|
5483
6522
|
//#region src/helpers.ts
|
|
5484
|
-
async function
|
|
6523
|
+
async function za(e) {
|
|
5485
6524
|
let t = new DecompressionStream("deflate-raw"), n = new Uint8Array(e), r = new Blob([n]).stream().pipeThrough(t);
|
|
5486
6525
|
return new Uint8Array(await new Response(r).arrayBuffer());
|
|
5487
6526
|
}
|
|
5488
|
-
async function
|
|
5489
|
-
let t =
|
|
6527
|
+
async function Ba(e) {
|
|
6528
|
+
let t = Ia(e.replace(/ /g, "+"));
|
|
5490
6529
|
try {
|
|
5491
|
-
let e = await
|
|
6530
|
+
let e = await za(t);
|
|
5492
6531
|
return new TextDecoder().decode(e);
|
|
5493
6532
|
} catch (e) {
|
|
5494
6533
|
return console.warn("Decompression failed, assuming data is not compressed:", e), new TextDecoder().decode(t);
|
|
5495
6534
|
}
|
|
5496
6535
|
}
|
|
5497
|
-
async function
|
|
5498
|
-
let t = await
|
|
6536
|
+
async function Va(e) {
|
|
6537
|
+
let t = await Ba(e), n = new an({
|
|
5499
6538
|
attributeNamePrefix: "@_",
|
|
5500
6539
|
alwaysCreateTextNode: !0,
|
|
5501
6540
|
ignoreAttributes: !1
|
|
5502
6541
|
}).parse(t);
|
|
5503
6542
|
return r.parse(n);
|
|
5504
6543
|
}
|
|
5505
|
-
function
|
|
6544
|
+
function Ha(e) {
|
|
5506
6545
|
let t = e.certificates.map((e) => ({
|
|
5507
6546
|
"@_use": "signing",
|
|
5508
6547
|
KeyInfo: {
|
|
@@ -5568,7 +6607,7 @@ function Aa(e) {
|
|
|
5568
6607
|
]
|
|
5569
6608
|
}
|
|
5570
6609
|
} };
|
|
5571
|
-
return new
|
|
6610
|
+
return new Cn({
|
|
5572
6611
|
ignoreAttributes: !1,
|
|
5573
6612
|
suppressEmptyNode: !0,
|
|
5574
6613
|
preserveOrder: !1,
|
|
@@ -5576,8 +6615,8 @@ function Aa(e) {
|
|
|
5576
6615
|
attributeNamePrefix: "@_"
|
|
5577
6616
|
}).build(n);
|
|
5578
6617
|
}
|
|
5579
|
-
async function
|
|
5580
|
-
let n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 600 * 1e3).toISOString(), i = e.issueInstant || n, a = e.sessionNotOnOrAfter || r, o = e.responseId || `_${
|
|
6618
|
+
async function Ua(e, t) {
|
|
6619
|
+
let n = e.notBefore || (/* @__PURE__ */ new Date()).toISOString(), r = e.notAfter || new Date(new Date(n).getTime() + 600 * 1e3).toISOString(), i = e.issueInstant || n, a = e.sessionNotOnOrAfter || r, o = e.responseId || `_${Ra()}`, s = e.assertionId || `_${Ra()}`, c = [{
|
|
5581
6620
|
"samlp:Response": [
|
|
5582
6621
|
{ "saml:Issuer": [{ "#text": e.issuer }] },
|
|
5583
6622
|
{ "samlp:Status": [{
|
|
@@ -5749,7 +6788,7 @@ async function ja(e, t) {
|
|
|
5749
6788
|
"@_IssueInstant": i,
|
|
5750
6789
|
"@_Version": "2.0"
|
|
5751
6790
|
}
|
|
5752
|
-
}], l = new
|
|
6791
|
+
}], l = new Cn({
|
|
5753
6792
|
ignoreAttributes: !1,
|
|
5754
6793
|
suppressEmptyNode: !0,
|
|
5755
6794
|
preserveOrder: !0
|
|
@@ -5758,7 +6797,7 @@ async function ja(e, t) {
|
|
|
5758
6797
|
}
|
|
5759
6798
|
//#endregion
|
|
5760
6799
|
//#region src/signers/http.ts
|
|
5761
|
-
var
|
|
6800
|
+
var Wa = class {
|
|
5762
6801
|
signUrl;
|
|
5763
6802
|
constructor(e) {
|
|
5764
6803
|
this.signUrl = e;
|
|
@@ -5778,4 +6817,4 @@ var Ma = class {
|
|
|
5778
6817
|
}
|
|
5779
6818
|
};
|
|
5780
6819
|
//#endregion
|
|
5781
|
-
export {
|
|
6820
|
+
export { Wa as HttpSamlSigner, Ha as createSamlMetadata, Ua as createSamlResponse, s as dsSignatureSchema, Ba as inflateDecompress, za as inflateRaw, Va as parseSamlRequestQuery, n as samlIssuerSchema, i as samlMetadataResponseSchema, r as samlRequestSchema, c as samlResponseJsonSchema };
|