MCPcopy Create free account
hub / github.com/alignoth/alignoth / Wt

Function Wt

resources/vega.min.js:629–734  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

627 : "");
628 }
629 function Wt(t) {
630 var e = new RegExp('["' + t + "\n\r]"),
631 n = t.charCodeAt(0);
632 function r(t, e) {
633 var r,
634 i = [],
635 o = t.length,
636 a = 0,
637 s = 0,
638 u = o <= 0,
639 l = !1;
640 function c() {
641 if (u) return Ot;
642 if (l) return ((l = !1), Nt);
643 var e,
644 r,
645 i = a;
646 if (t.charCodeAt(i) === Rt) {
647 for (
648 ;
649 (a++ < o && t.charCodeAt(a) !== Rt) || t.charCodeAt(++a) === Rt;
650
651 );
652 return (
653 (e = a) >= o
654 ? (u = !0)
655 : (r = t.charCodeAt(a++)) === Lt
656 ? (l = !0)
657 : r === Ut && ((l = !0), t.charCodeAt(a) === Lt && ++a),
658 t.slice(i + 1, e - 1).replace(/""/g, '"')
659 );
660 }
661 for (; a < o; ) {
662 if ((r = t.charCodeAt((e = a++))) === Lt) l = !0;
663 else if (r === Ut) ((l = !0), t.charCodeAt(a) === Lt && ++a);
664 else if (r !== n) continue;
665 return t.slice(i, e);
666 }
667 return ((u = !0), t.slice(i, o));
668 }
669 for (
670 t.charCodeAt(o - 1) === Lt && --o, t.charCodeAt(o - 1) === Ut && --o;
671 (r = c()) !== Ot;
672
673 ) {
674 for (var f = []; r !== Nt && r !== Ot; ) (f.push(r), (r = c()));
675 (e && null == (f = e(f, s++))) || i.push(f);
676 }
677 return i;
678 }
679 function i(e, n) {
680 return e.map(function (e) {
681 return n
682 .map(function (t) {
683 return a(e[t]);
684 })
685 .join(t);
686 });

Callers 1

naFunction · 0.85

Calls 7

qtFunction · 0.85
eFunction · 0.85
PtFunction · 0.85
rFunction · 0.70
nFunction · 0.70
iFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected