@konnectio/core 4.7.18 → 4.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ActionField-L0Lr7Cq5.js → ActionField-nQffsZA2.js} +5 -5
- package/dist/ActionField-nQffsZA2.js.br +0 -0
- package/dist/ActionField-nQffsZA2.js.gz +0 -0
- package/dist/{AvailabilitySkeleton-CSQUAVcs.js → AvailabilitySkeleton-AmgXdz28.js} +1737 -1580
- package/dist/AvailabilitySkeleton-AmgXdz28.js.br +0 -0
- package/dist/AvailabilitySkeleton-AmgXdz28.js.gz +0 -0
- package/dist/CheckoutWindow-D8IPM2hs.js +1786 -0
- package/dist/CheckoutWindow-D8IPM2hs.js.br +0 -0
- package/dist/CheckoutWindow-D8IPM2hs.js.gz +0 -0
- package/dist/{ErrorMessage-BZqsLh26.js → ErrorMessage-DJAdBPXD.js} +2 -2
- package/dist/ErrorMessage-DJAdBPXD.js.br +0 -0
- package/dist/ErrorMessage-DJAdBPXD.js.gz +0 -0
- package/dist/{EventAvailabilityForm-Cuxc0RuT.js → EventAvailabilityForm-Bspi3PTG.js} +13 -12
- package/dist/EventAvailabilityForm-Bspi3PTG.js.br +0 -0
- package/dist/EventAvailabilityForm-Bspi3PTG.js.gz +0 -0
- package/dist/{Field-AlAFHkiH.js → Field-BbzATkQp.js} +2 -2
- package/dist/Field-BbzATkQp.js.br +0 -0
- package/dist/Field-BbzATkQp.js.gz +4 -0
- package/dist/{HotelAvailabilityForm-C3iHHzNH.js → HotelAvailabilityForm-DcNJrBEP.js} +15 -14
- package/dist/HotelAvailabilityForm-DcNJrBEP.js.br +0 -0
- package/dist/HotelAvailabilityForm-DcNJrBEP.js.gz +0 -0
- package/dist/{SelectField-hZSfVqht.js → SelectField-DRafB_Cb.js} +2980 -2852
- package/dist/SelectField-DRafB_Cb.js.br +0 -0
- package/dist/SelectField-DRafB_Cb.js.gz +0 -0
- package/dist/{TermsOfService-CSImjp8p.js → TermsOfService-BJaXGVwJ.js} +3 -3
- package/dist/TermsOfService-BJaXGVwJ.js.br +0 -0
- package/dist/TermsOfService-BJaXGVwJ.js.gz +0 -0
- package/dist/{_-ceQWaE_o.js → _-P_tgh1jk.js} +3 -3
- package/dist/_-P_tgh1jk.js.br +0 -0
- package/dist/_-P_tgh1jk.js.gz +3 -0
- package/dist/availability.js +8 -8
- package/dist/availability.js.br +0 -0
- package/dist/availability.js.gz +0 -0
- package/dist/cancel-reservation.js +12 -12
- package/dist/cancel-reservation.js.br +0 -0
- package/dist/cancel-reservation.js.gz +0 -0
- package/dist/core.css +1 -1
- package/dist/core.css.br +0 -0
- package/dist/core.css.gz +0 -0
- package/dist/deep-link.js +1 -1
- package/dist/deep-link.js.br +0 -0
- package/dist/deep-link.js.gz +0 -0
- package/dist/dist-BHP07uuH.js +3631 -0
- package/dist/dist-BHP07uuH.js.br +0 -0
- package/dist/dist-BHP07uuH.js.gz +0 -0
- package/dist/{dist-DEZcjiNm.js → dist-D4EW1Jz1.js} +82 -69
- package/dist/dist-D4EW1Jz1.js.br +0 -0
- package/dist/dist-D4EW1Jz1.js.gz +0 -0
- package/dist/event.js +270 -234
- package/dist/event.js.br +0 -0
- package/dist/event.js.gz +0 -0
- package/dist/gift-card-validation.js +10 -10
- package/dist/gift-card-validation.js.br +0 -0
- package/dist/gift-card-validation.js.gz +0 -0
- package/dist/gift-card.js +123 -99
- package/dist/gift-card.js.br +0 -0
- package/dist/gift-card.js.gz +0 -0
- package/dist/{giftCard-CoefzLvK.js → giftCard-Db5RQgXn.js} +23 -13
- package/dist/giftCard-Db5RQgXn.js.br +0 -0
- package/dist/giftCard-Db5RQgXn.js.gz +0 -0
- package/dist/hotel.js +1196 -1130
- package/dist/hotel.js.br +0 -0
- package/dist/hotel.js.gz +0 -0
- package/dist/{i18n-DwFTw_rF.js → i18n-BF6zkld-.js} +3397 -3461
- package/dist/i18n-BF6zkld-.js.br +0 -0
- package/dist/i18n-BF6zkld-.js.gz +0 -0
- package/dist/polyfill.js +1906 -1641
- package/dist/polyfill.js.br +0 -0
- package/dist/polyfill.js.gz +0 -0
- package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
- package/dist/rolldown-runtime-B0aSnxlc.js.br +0 -0
- package/dist/rolldown-runtime-B0aSnxlc.js.gz +5 -0
- package/dist/{style-DRBxevpd.js → style-CLohB3MA.js} +8 -6
- package/dist/style-CLohB3MA.js.br +0 -0
- package/dist/style-CLohB3MA.js.gz +0 -0
- package/dist-wix/availability.js +42 -36
- package/dist-wix/event.js +34 -27
- package/dist-wix/gift-card-validation.js +33 -33
- package/dist-wix/gift-card.js +42 -35
- package/dist-wix/hotel.js +34 -27
- package/package.json +25 -23
- package/dist/ActionField-L0Lr7Cq5.js.br +0 -0
- package/dist/ActionField-L0Lr7Cq5.js.gz +0 -0
- package/dist/AvailabilitySkeleton-CSQUAVcs.js.br +0 -0
- package/dist/AvailabilitySkeleton-CSQUAVcs.js.gz +0 -0
- package/dist/CheckoutWindow-CjVK26L8.js +0 -718
- package/dist/CheckoutWindow-CjVK26L8.js.br +0 -0
- package/dist/CheckoutWindow-CjVK26L8.js.gz +0 -0
- package/dist/ErrorMessage-BZqsLh26.js.br +0 -0
- package/dist/ErrorMessage-BZqsLh26.js.gz +0 -0
- package/dist/EventAvailabilityForm-Cuxc0RuT.js.br +0 -0
- package/dist/EventAvailabilityForm-Cuxc0RuT.js.gz +0 -0
- package/dist/Field-AlAFHkiH.js.br +0 -0
- package/dist/Field-AlAFHkiH.js.gz +0 -0
- package/dist/HotelAvailabilityForm-C3iHHzNH.js.br +0 -0
- package/dist/HotelAvailabilityForm-C3iHHzNH.js.gz +0 -0
- package/dist/SelectField-hZSfVqht.js.br +0 -0
- package/dist/SelectField-hZSfVqht.js.gz +0 -0
- package/dist/TermsOfService-CSImjp8p.js.br +0 -0
- package/dist/TermsOfService-CSImjp8p.js.gz +0 -3
- package/dist/_-ceQWaE_o.js.br +0 -0
- package/dist/_-ceQWaE_o.js.gz +0 -5
- package/dist/dist-DEZcjiNm.js.br +0 -0
- package/dist/dist-DEZcjiNm.js.gz +0 -0
- package/dist/dist-DtPUJ4bx.js +0 -1338
- package/dist/dist-DtPUJ4bx.js.br +0 -0
- package/dist/dist-DtPUJ4bx.js.gz +0 -0
- package/dist/giftCard-CoefzLvK.js.br +0 -0
- package/dist/giftCard-CoefzLvK.js.gz +0 -0
- package/dist/i18n-DwFTw_rF.js.br +0 -0
- package/dist/i18n-DwFTw_rF.js.gz +0 -0
- package/dist/rolldown-runtime-Dqa2HsxW.js.br +0 -0
- package/dist/rolldown-runtime-Dqa2HsxW.js.gz +0 -2
- package/dist/style-DRBxevpd.js.br +0 -0
- package/dist/style-DRBxevpd.js.gz +0 -0
package/dist/dist-DtPUJ4bx.js
DELETED
|
@@ -1,1338 +0,0 @@
|
|
|
1
|
-
import { r as e, t } from "./rolldown-runtime-Dqa2HsxW.js";
|
|
2
|
-
import { G as n, N as r, P as i, ct as a, yt as o } from "./i18n-DwFTw_rF.js";
|
|
3
|
-
//#region node_modules/stackframe/stackframe.js
|
|
4
|
-
var s = /* @__PURE__ */ t(((e, t) => {
|
|
5
|
-
(function(n, r) {
|
|
6
|
-
/* istanbul ignore next */
|
|
7
|
-
typeof define == "function" && define.amd ? define("stackframe", [], r) : typeof e == "object" ? t.exports = r() : n.StackFrame = r();
|
|
8
|
-
})(e, function() {
|
|
9
|
-
function e(e) {
|
|
10
|
-
return !isNaN(parseFloat(e)) && isFinite(e);
|
|
11
|
-
}
|
|
12
|
-
function t(e) {
|
|
13
|
-
return e.charAt(0).toUpperCase() + e.substring(1);
|
|
14
|
-
}
|
|
15
|
-
function n(e) {
|
|
16
|
-
return function() {
|
|
17
|
-
return this[e];
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
var r = [
|
|
21
|
-
"isConstructor",
|
|
22
|
-
"isEval",
|
|
23
|
-
"isNative",
|
|
24
|
-
"isToplevel"
|
|
25
|
-
], i = ["columnNumber", "lineNumber"], a = [
|
|
26
|
-
"fileName",
|
|
27
|
-
"functionName",
|
|
28
|
-
"source"
|
|
29
|
-
], o = r.concat(i, a, ["args"], ["evalOrigin"]);
|
|
30
|
-
function s(e) {
|
|
31
|
-
if (e) for (var n = 0; n < o.length; n++) e[o[n]] !== void 0 && this["set" + t(o[n])](e[o[n]]);
|
|
32
|
-
}
|
|
33
|
-
s.prototype = {
|
|
34
|
-
getArgs: function() {
|
|
35
|
-
return this.args;
|
|
36
|
-
},
|
|
37
|
-
setArgs: function(e) {
|
|
38
|
-
if (Object.prototype.toString.call(e) !== "[object Array]") throw TypeError("Args must be an Array");
|
|
39
|
-
this.args = e;
|
|
40
|
-
},
|
|
41
|
-
getEvalOrigin: function() {
|
|
42
|
-
return this.evalOrigin;
|
|
43
|
-
},
|
|
44
|
-
setEvalOrigin: function(e) {
|
|
45
|
-
if (e instanceof s) this.evalOrigin = e;
|
|
46
|
-
else if (e instanceof Object) this.evalOrigin = new s(e);
|
|
47
|
-
else throw TypeError("Eval Origin must be an Object or StackFrame");
|
|
48
|
-
},
|
|
49
|
-
toString: function() {
|
|
50
|
-
var e = this.getFileName() || "", t = this.getLineNumber() || "", n = this.getColumnNumber() || "", r = this.getFunctionName() || "";
|
|
51
|
-
return this.getIsEval() ? e ? "[eval] (" + e + ":" + t + ":" + n + ")" : "[eval]:" + t + ":" + n : r ? r + " (" + e + ":" + t + ":" + n + ")" : e + ":" + t + ":" + n;
|
|
52
|
-
}
|
|
53
|
-
}, s.fromString = function(e) {
|
|
54
|
-
var t = e.indexOf("("), n = e.lastIndexOf(")"), r = e.substring(0, t), i = e.substring(t + 1, n).split(","), a = e.substring(n + 1);
|
|
55
|
-
if (a.indexOf("@") === 0) var o = /@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(a, ""), c = o[1], l = o[2], u = o[3];
|
|
56
|
-
return new s({
|
|
57
|
-
functionName: r,
|
|
58
|
-
args: i || void 0,
|
|
59
|
-
fileName: c,
|
|
60
|
-
lineNumber: l || void 0,
|
|
61
|
-
columnNumber: u || void 0
|
|
62
|
-
});
|
|
63
|
-
};
|
|
64
|
-
for (var c = 0; c < r.length; c++) s.prototype["get" + t(r[c])] = n(r[c]), s.prototype["set" + t(r[c])] = (function(e) {
|
|
65
|
-
return function(t) {
|
|
66
|
-
this[e] = !!t;
|
|
67
|
-
};
|
|
68
|
-
})(r[c]);
|
|
69
|
-
for (var l = 0; l < i.length; l++) s.prototype["get" + t(i[l])] = n(i[l]), s.prototype["set" + t(i[l])] = (function(t) {
|
|
70
|
-
return function(n) {
|
|
71
|
-
if (!e(n)) throw TypeError(t + " must be a Number");
|
|
72
|
-
this[t] = Number(n);
|
|
73
|
-
};
|
|
74
|
-
})(i[l]);
|
|
75
|
-
for (var u = 0; u < a.length; u++) s.prototype["get" + t(a[u])] = n(a[u]), s.prototype["set" + t(a[u])] = (function(e) {
|
|
76
|
-
return function(t) {
|
|
77
|
-
this[e] = String(t);
|
|
78
|
-
};
|
|
79
|
-
})(a[u]);
|
|
80
|
-
return s;
|
|
81
|
-
});
|
|
82
|
-
})), c = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
83
|
-
(function(n, r) {
|
|
84
|
-
/* istanbul ignore next */
|
|
85
|
-
typeof define == "function" && define.amd ? define("error-stack-parser", ["stackframe"], r) : typeof e == "object" ? t.exports = r(s()) : n.ErrorStackParser = r(n.StackFrame);
|
|
86
|
-
})(e, function(e) {
|
|
87
|
-
var t = /(^|@)\S+:\d+/, n = /^\s*at .*(\S+:\d+|\(native\))/m, r = /^(eval@)?(\[native code])?$/;
|
|
88
|
-
return {
|
|
89
|
-
parse: function(e) {
|
|
90
|
-
if (e.stacktrace !== void 0 || e["opera#sourceloc"] !== void 0) return this.parseOpera(e);
|
|
91
|
-
if (e.stack && e.stack.match(n)) return this.parseV8OrIE(e);
|
|
92
|
-
if (e.stack) return this.parseFFOrSafari(e);
|
|
93
|
-
throw Error("Cannot parse given Error object");
|
|
94
|
-
},
|
|
95
|
-
extractLocation: function(e) {
|
|
96
|
-
if (e.indexOf(":") === -1) return [e];
|
|
97
|
-
var t = /(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g, ""));
|
|
98
|
-
return [
|
|
99
|
-
t[1],
|
|
100
|
-
t[2] || void 0,
|
|
101
|
-
t[3] || void 0
|
|
102
|
-
];
|
|
103
|
-
},
|
|
104
|
-
parseV8OrIE: function(t) {
|
|
105
|
-
return t.stack.split("\n").filter(function(e) {
|
|
106
|
-
return !!e.match(n);
|
|
107
|
-
}, this).map(function(t) {
|
|
108
|
-
t.indexOf("(eval ") > -1 && (t = t.replace(/eval code/g, "eval").replace(/(\(eval at [^()]*)|(,.*$)/g, ""));
|
|
109
|
-
var n = t.replace(/^\s+/, "").replace(/\(eval code/g, "(").replace(/^.*?\s+/, ""), r = n.match(/ (\(.+\)$)/);
|
|
110
|
-
n = r ? n.replace(r[0], "") : n;
|
|
111
|
-
var i = this.extractLocation(r ? r[1] : n);
|
|
112
|
-
return new e({
|
|
113
|
-
functionName: r && n || void 0,
|
|
114
|
-
fileName: ["eval", "<anonymous>"].indexOf(i[0]) > -1 ? void 0 : i[0],
|
|
115
|
-
lineNumber: i[1],
|
|
116
|
-
columnNumber: i[2],
|
|
117
|
-
source: t
|
|
118
|
-
});
|
|
119
|
-
}, this);
|
|
120
|
-
},
|
|
121
|
-
parseFFOrSafari: function(t) {
|
|
122
|
-
return t.stack.split("\n").filter(function(e) {
|
|
123
|
-
return !e.match(r);
|
|
124
|
-
}, this).map(function(t) {
|
|
125
|
-
if (t.indexOf(" > eval") > -1 && (t = t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ":$1")), t.indexOf("@") === -1 && t.indexOf(":") === -1) return new e({ functionName: t });
|
|
126
|
-
var n = /((.*".+"[^@]*)?[^@]*)(?:@)/, r = t.match(n), i = r && r[1] ? r[1] : void 0, a = this.extractLocation(t.replace(n, ""));
|
|
127
|
-
return new e({
|
|
128
|
-
functionName: i,
|
|
129
|
-
fileName: a[0],
|
|
130
|
-
lineNumber: a[1],
|
|
131
|
-
columnNumber: a[2],
|
|
132
|
-
source: t
|
|
133
|
-
});
|
|
134
|
-
}, this);
|
|
135
|
-
},
|
|
136
|
-
parseOpera: function(e) {
|
|
137
|
-
return !e.stacktrace || e.message.indexOf("\n") > -1 && e.message.split("\n").length > e.stacktrace.split("\n").length ? this.parseOpera9(e) : e.stack ? this.parseOpera11(e) : this.parseOpera10(e);
|
|
138
|
-
},
|
|
139
|
-
parseOpera9: function(t) {
|
|
140
|
-
for (var n = /Line (\d+).*script (?:in )?(\S+)/i, r = t.message.split("\n"), i = [], a = 2, o = r.length; a < o; a += 2) {
|
|
141
|
-
var s = n.exec(r[a]);
|
|
142
|
-
s && i.push(new e({
|
|
143
|
-
fileName: s[2],
|
|
144
|
-
lineNumber: s[1],
|
|
145
|
-
source: r[a]
|
|
146
|
-
}));
|
|
147
|
-
}
|
|
148
|
-
return i;
|
|
149
|
-
},
|
|
150
|
-
parseOpera10: function(t) {
|
|
151
|
-
for (var n = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i, r = t.stacktrace.split("\n"), i = [], a = 0, o = r.length; a < o; a += 2) {
|
|
152
|
-
var s = n.exec(r[a]);
|
|
153
|
-
s && i.push(new e({
|
|
154
|
-
functionName: s[3] || void 0,
|
|
155
|
-
fileName: s[2],
|
|
156
|
-
lineNumber: s[1],
|
|
157
|
-
source: r[a]
|
|
158
|
-
}));
|
|
159
|
-
}
|
|
160
|
-
return i;
|
|
161
|
-
},
|
|
162
|
-
parseOpera11: function(n) {
|
|
163
|
-
return n.stack.split("\n").filter(function(e) {
|
|
164
|
-
return !!e.match(t) && !e.match(/^Error created at/);
|
|
165
|
-
}, this).map(function(t) {
|
|
166
|
-
var n = t.split("@"), r = this.extractLocation(n.pop()), i = n.shift() || "", a = i.replace(/<anonymous function(: (\w+))?>/, "$2").replace(/\([^)]*\)/g, "") || void 0, o;
|
|
167
|
-
return i.match(/\(([^)]*)\)/) && (o = i.replace(/^[^(]+\(([^)]*)\)$/, "$1")), new e({
|
|
168
|
-
functionName: a,
|
|
169
|
-
args: o === void 0 || o === "[arguments not available]" ? void 0 : o.split(","),
|
|
170
|
-
fileName: r[0],
|
|
171
|
-
lineNumber: r[1],
|
|
172
|
-
columnNumber: r[2],
|
|
173
|
-
source: t
|
|
174
|
-
});
|
|
175
|
-
}, this);
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
});
|
|
179
|
-
})))(), 1), l = typeof process < "u" ? "2.6.0" : "?", u = "5pqzBljrmDvquWZYSrSUKldIUREtPyB3", d = "\"4.7.18\"";
|
|
180
|
-
function f(e, t, n) {
|
|
181
|
-
return n && !e && console.error(`Flare JavaScript client v${l}: ${t}`), !!e;
|
|
182
|
-
}
|
|
183
|
-
function p(e, t) {
|
|
184
|
-
return f(e, "The client was not yet initialised with an API key. Run client.light('<flare-project-key>') when you initialise your app. If you are running in dev mode and didn't run the light command on purpose, you can ignore this error.", t);
|
|
185
|
-
}
|
|
186
|
-
function m(e) {
|
|
187
|
-
if (e instanceof Error) return e;
|
|
188
|
-
if (typeof e == "string") return Error(e);
|
|
189
|
-
if (typeof e == "object" && e) {
|
|
190
|
-
let t = e, n = typeof t.message == "string" ? t.message : String(e), r = Error(n);
|
|
191
|
-
return typeof t.stack == "string" && (r.stack = t.stack), typeof t.name == "string" && (r.name = t.name), r;
|
|
192
|
-
}
|
|
193
|
-
return Error(String(e));
|
|
194
|
-
}
|
|
195
|
-
var h = 64;
|
|
196
|
-
function g(e) {
|
|
197
|
-
let t = e.code;
|
|
198
|
-
if (!(typeof t != "string" || t.length === 0)) return t.slice(0, h);
|
|
199
|
-
}
|
|
200
|
-
function _(e) {
|
|
201
|
-
return JSON.stringify(y(e));
|
|
202
|
-
}
|
|
203
|
-
function v(e) {
|
|
204
|
-
if (typeof e != "object" || !e) return !1;
|
|
205
|
-
let t = Object.getPrototypeOf(e);
|
|
206
|
-
return t === Object.prototype || t === null;
|
|
207
|
-
}
|
|
208
|
-
function y(e) {
|
|
209
|
-
let t = /* @__PURE__ */ new WeakSet();
|
|
210
|
-
function n(e) {
|
|
211
|
-
if (Array.isArray(e)) {
|
|
212
|
-
if (t.has(e)) return "[Circular]";
|
|
213
|
-
t.add(e);
|
|
214
|
-
let r = e.map(n);
|
|
215
|
-
return t.delete(e), r;
|
|
216
|
-
}
|
|
217
|
-
if (v(e)) {
|
|
218
|
-
if (t.has(e)) return "[Circular]";
|
|
219
|
-
t.add(e);
|
|
220
|
-
let r = {};
|
|
221
|
-
for (let [t, i] of Object.entries(e)) r[t] = n(i);
|
|
222
|
-
return t.delete(e), r;
|
|
223
|
-
}
|
|
224
|
-
return e;
|
|
225
|
-
}
|
|
226
|
-
return n(e);
|
|
227
|
-
}
|
|
228
|
-
function b(e) {
|
|
229
|
-
return e.map((e) => ({
|
|
230
|
-
type: "php_glow",
|
|
231
|
-
startTimeUnixNano: Math.round(e.microtime * 1e9),
|
|
232
|
-
endTimeUnixNano: null,
|
|
233
|
-
attributes: {
|
|
234
|
-
"glow.name": String(e.name),
|
|
235
|
-
"glow.level": e.messageLevel,
|
|
236
|
-
"glow.context": e.metaData ?? {}
|
|
237
|
-
}
|
|
238
|
-
}));
|
|
239
|
-
}
|
|
240
|
-
function ee() {
|
|
241
|
-
return Math.round(Date.now() / 1e3);
|
|
242
|
-
}
|
|
243
|
-
var x = /password|passwd|pwd|token|secret|authorization|\bauth\b|bearer|oauth|credentials?|cookie|api[-_]?key|private[-_]?key|session|csrf|xsrf|\bpin\b|\bssn\b|card[-_]?number|\bcvv\b/i;
|
|
244
|
-
function S(e, t = !1, n = x) {
|
|
245
|
-
if (!e) return n;
|
|
246
|
-
if (t) {
|
|
247
|
-
let t = e.flags.replace(/[gy]/g, "");
|
|
248
|
-
return new RegExp(e.source, t);
|
|
249
|
-
}
|
|
250
|
-
let r = te(n.flags, e.flags);
|
|
251
|
-
return RegExp(`(?:${n.source})|(?:${e.source})`, r);
|
|
252
|
-
}
|
|
253
|
-
function te(e, t) {
|
|
254
|
-
let n = /* @__PURE__ */ new Set();
|
|
255
|
-
for (let r of e + t) r === "g" || r === "y" || n.add(r);
|
|
256
|
-
return [...n].join("");
|
|
257
|
-
}
|
|
258
|
-
function C(e, t = x) {
|
|
259
|
-
let n = e.indexOf("?");
|
|
260
|
-
if (n === -1) return e;
|
|
261
|
-
let r = e.indexOf("#", n), i = r === -1 ? e.length : r, a = e.slice(0, n + 1), o = e.slice(n + 1, i), s = e.slice(i);
|
|
262
|
-
return `${a}${o.split("&").map((e) => {
|
|
263
|
-
if (e === "") return e;
|
|
264
|
-
let n = e.indexOf("="), r = n === -1 ? e : e.slice(0, n), i = ne(r);
|
|
265
|
-
return t.test(i) ? n === -1 ? r : `${r}=[redacted]` : e;
|
|
266
|
-
}).join("&")}${s}`;
|
|
267
|
-
}
|
|
268
|
-
function ne(e) {
|
|
269
|
-
try {
|
|
270
|
-
return decodeURIComponent(e);
|
|
271
|
-
} catch {
|
|
272
|
-
return e;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
function re(e) {
|
|
276
|
-
if (typeof e == "string") return e;
|
|
277
|
-
if (e && typeof e == "object") {
|
|
278
|
-
let t = e.message;
|
|
279
|
-
if (typeof t == "string" && t) return t;
|
|
280
|
-
try {
|
|
281
|
-
return JSON.stringify(e);
|
|
282
|
-
} catch {
|
|
283
|
-
return "Unhandled promise rejection (non-serializable reason)";
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
return String(e);
|
|
287
|
-
}
|
|
288
|
-
function ie(e) {
|
|
289
|
-
return !!e && typeof e == "object" && typeof e.stack == "string";
|
|
290
|
-
}
|
|
291
|
-
function ae(e, t) {
|
|
292
|
-
if (t instanceof Error) {
|
|
293
|
-
e.reportSilently(t);
|
|
294
|
-
return;
|
|
295
|
-
}
|
|
296
|
-
if (ie(t)) {
|
|
297
|
-
let n = Error(re(t));
|
|
298
|
-
n.stack = t.stack, e.reportSilently(n);
|
|
299
|
-
return;
|
|
300
|
-
}
|
|
301
|
-
Promise.resolve(e.reportUnhandledRejection(re(t))).catch(() => {});
|
|
302
|
-
}
|
|
303
|
-
var w = class {
|
|
304
|
-
report(e, t, n, r, i = !1) {
|
|
305
|
-
return fetch(t, {
|
|
306
|
-
method: "POST",
|
|
307
|
-
headers: {
|
|
308
|
-
Accept: "application/json",
|
|
309
|
-
"Content-Type": "application/json",
|
|
310
|
-
"X-Api-Token": n ?? "",
|
|
311
|
-
"X-Report-Browser-Extension-Errors": JSON.stringify(r),
|
|
312
|
-
"X-Flare-Client-Version": "2"
|
|
313
|
-
},
|
|
314
|
-
body: _(e)
|
|
315
|
-
}).then((e) => {
|
|
316
|
-
i && e.status !== 201 && console.error(`Received response with status ${e.status} from Flare`);
|
|
317
|
-
}, (e) => {
|
|
318
|
-
i && console.error(e);
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
|
-
logs(e, t, n, r = !1, i = !1) {
|
|
322
|
-
return fetch(t, {
|
|
323
|
-
method: "POST",
|
|
324
|
-
keepalive: i,
|
|
325
|
-
headers: {
|
|
326
|
-
Accept: "application/json",
|
|
327
|
-
"Content-Type": "application/json",
|
|
328
|
-
"x-api-token": n ?? ""
|
|
329
|
-
},
|
|
330
|
-
body: _(e)
|
|
331
|
-
}).then((e) => {
|
|
332
|
-
r && e.status !== 201 && console.error(`Received response with status ${e.status} from Flare logs`);
|
|
333
|
-
}, (e) => {
|
|
334
|
-
r && console.error(e);
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
};
|
|
338
|
-
function T(e, t = /* @__PURE__ */ new WeakSet()) {
|
|
339
|
-
if (typeof e == "string") return { stringValue: e };
|
|
340
|
-
if (typeof e == "boolean") return { boolValue: e };
|
|
341
|
-
if (typeof e == "number") return Number.isFinite(e) ? Number.isInteger(e) ? { intValue: e } : { doubleValue: e } : null;
|
|
342
|
-
if (e == null) return null;
|
|
343
|
-
if (Array.isArray(e)) {
|
|
344
|
-
if (t.has(e)) return { stringValue: "[Circular]" };
|
|
345
|
-
t.add(e);
|
|
346
|
-
let n = [];
|
|
347
|
-
for (let r of e) {
|
|
348
|
-
let e = T(r, t);
|
|
349
|
-
e !== null && n.push(e);
|
|
350
|
-
}
|
|
351
|
-
return t.delete(e), { arrayValue: { values: n } };
|
|
352
|
-
}
|
|
353
|
-
if (typeof e == "object") {
|
|
354
|
-
if (t.has(e)) return { stringValue: "[Circular]" };
|
|
355
|
-
t.add(e);
|
|
356
|
-
let n = [];
|
|
357
|
-
for (let [r, i] of Object.entries(e)) {
|
|
358
|
-
let e = T(i, t);
|
|
359
|
-
e !== null && n.push({
|
|
360
|
-
key: r,
|
|
361
|
-
value: e
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
return t.delete(e), { kvlistValue: { values: n } };
|
|
365
|
-
}
|
|
366
|
-
return null;
|
|
367
|
-
}
|
|
368
|
-
function E(e) {
|
|
369
|
-
let t = [];
|
|
370
|
-
for (let [n, r] of Object.entries(e)) {
|
|
371
|
-
let e = T(r);
|
|
372
|
-
e !== null && t.push({
|
|
373
|
-
key: n,
|
|
374
|
-
value: e
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
return t;
|
|
378
|
-
}
|
|
379
|
-
function oe(e, t, n, r) {
|
|
380
|
-
return { resourceLogs: [{
|
|
381
|
-
resource: {
|
|
382
|
-
attributes: E(t),
|
|
383
|
-
droppedAttributesCount: 0
|
|
384
|
-
},
|
|
385
|
-
scopeLogs: [{
|
|
386
|
-
scope: {
|
|
387
|
-
name: n,
|
|
388
|
-
version: r,
|
|
389
|
-
attributes: [],
|
|
390
|
-
droppedAttributesCount: 0
|
|
391
|
-
},
|
|
392
|
-
logRecords: e.map((e) => ({
|
|
393
|
-
timeUnixNano: e.timeUnixNano,
|
|
394
|
-
observedTimeUnixNano: e.timeUnixNano,
|
|
395
|
-
severityNumber: e.severityNumber,
|
|
396
|
-
severityText: e.severityText,
|
|
397
|
-
body: { stringValue: e.message },
|
|
398
|
-
attributes: e.recordAttributes,
|
|
399
|
-
flags: 0,
|
|
400
|
-
droppedAttributesCount: 0
|
|
401
|
-
}))
|
|
402
|
-
}]
|
|
403
|
-
}] };
|
|
404
|
-
}
|
|
405
|
-
var se = {
|
|
406
|
-
debug: 5,
|
|
407
|
-
info: 9,
|
|
408
|
-
notice: 10,
|
|
409
|
-
warning: 13,
|
|
410
|
-
error: 17,
|
|
411
|
-
critical: 18,
|
|
412
|
-
alert: 19,
|
|
413
|
-
emergency: 21
|
|
414
|
-
};
|
|
415
|
-
function D(e) {
|
|
416
|
-
return se[e];
|
|
417
|
-
}
|
|
418
|
-
function ce(e) {
|
|
419
|
-
return e.toUpperCase();
|
|
420
|
-
}
|
|
421
|
-
function le(e, t) {
|
|
422
|
-
return D(e) >= D(t);
|
|
423
|
-
}
|
|
424
|
-
var ue = class {
|
|
425
|
-
buffer = [];
|
|
426
|
-
resourceAttributes = {};
|
|
427
|
-
timer;
|
|
428
|
-
timerActive = !1;
|
|
429
|
-
constructor(e) {
|
|
430
|
-
this.deps = e, this.deps.scheduler.register((e) => this.flush(e));
|
|
431
|
-
}
|
|
432
|
-
debug(e, t = {}, n = {}) {
|
|
433
|
-
this.record("debug", e, t, n);
|
|
434
|
-
}
|
|
435
|
-
info(e, t = {}, n = {}) {
|
|
436
|
-
this.record("info", e, t, n);
|
|
437
|
-
}
|
|
438
|
-
notice(e, t = {}, n = {}) {
|
|
439
|
-
this.record("notice", e, t, n);
|
|
440
|
-
}
|
|
441
|
-
warning(e, t = {}, n = {}) {
|
|
442
|
-
this.record("warning", e, t, n);
|
|
443
|
-
}
|
|
444
|
-
error(e, t = {}, n = {}) {
|
|
445
|
-
this.record("error", e, t, n);
|
|
446
|
-
}
|
|
447
|
-
critical(e, t = {}, n = {}) {
|
|
448
|
-
this.record("critical", e, t, n);
|
|
449
|
-
}
|
|
450
|
-
alert(e, t = {}, n = {}) {
|
|
451
|
-
this.record("alert", e, t, n);
|
|
452
|
-
}
|
|
453
|
-
emergency(e, t = {}, n = {}) {
|
|
454
|
-
this.record("emergency", e, t, n);
|
|
455
|
-
}
|
|
456
|
-
bufferLength() {
|
|
457
|
-
return this.buffer.length;
|
|
458
|
-
}
|
|
459
|
-
record(e, t, n, r) {
|
|
460
|
-
let i = this.deps.getConfig();
|
|
461
|
-
if (!i.enableLogs || i.minimumLogLevel && !le(e, i.minimumLogLevel)) return;
|
|
462
|
-
let a = {
|
|
463
|
-
"log.context": n,
|
|
464
|
-
...r
|
|
465
|
-
}, { record: o, resource: s } = this.deps.buildLogAttributes(a), c = {
|
|
466
|
-
timeUnixNano: String(Date.now()) + "000000",
|
|
467
|
-
severityNumber: D(e),
|
|
468
|
-
severityText: ce(e),
|
|
469
|
-
message: t,
|
|
470
|
-
recordAttributes: E(o),
|
|
471
|
-
resourceAttributes: s
|
|
472
|
-
};
|
|
473
|
-
if (this.estimateBytes(c) > i.logFlushMaxBytes) {
|
|
474
|
-
i.debug && console.error("Flare: dropping oversized log record");
|
|
475
|
-
return;
|
|
476
|
-
}
|
|
477
|
-
this.buffer.push(c), this.resourceAttributes = s, this.evaluateTriggers(i), this.trim(i);
|
|
478
|
-
}
|
|
479
|
-
evaluateTriggers(e) {
|
|
480
|
-
if (this.buffer.length >= e.maxLogBufferSize) {
|
|
481
|
-
this.flush();
|
|
482
|
-
return;
|
|
483
|
-
}
|
|
484
|
-
if (this.bufferBytes() >= e.logFlushMaxBytes) {
|
|
485
|
-
this.flush();
|
|
486
|
-
return;
|
|
487
|
-
}
|
|
488
|
-
this.armTimer(e);
|
|
489
|
-
}
|
|
490
|
-
armTimer(e) {
|
|
491
|
-
this.timerActive || (this.timerActive = !0, this.timer = setTimeout(() => this.flush(), e.logFlushIntervalMs), this.timer.unref?.());
|
|
492
|
-
}
|
|
493
|
-
trim(e) {
|
|
494
|
-
for (this.buffer.length > e.maxLogBufferSize && (this.buffer = this.buffer.slice(this.buffer.length - e.maxLogBufferSize)); this.buffer.length > 1 && this.bufferBytes() > e.logFlushMaxBytes;) this.buffer.shift();
|
|
495
|
-
}
|
|
496
|
-
flush(e) {
|
|
497
|
-
let t = this.deps.getConfig();
|
|
498
|
-
if (!t.enableLogs || this.buffer.length === 0) return;
|
|
499
|
-
if (!p(t.key, t.debug)) {
|
|
500
|
-
this.clearTimer();
|
|
501
|
-
return;
|
|
502
|
-
}
|
|
503
|
-
this.clearTimer();
|
|
504
|
-
let n;
|
|
505
|
-
e?.keepalive ? (n = this.packForKeepalive(t), this.buffer = this.buffer.filter((e) => !n.includes(e)), this.buffer.length > 0 && this.armTimer(t)) : (n = this.buffer, this.buffer = []), n.length !== 0 && this.deps.track(this.deps.api.logs(this.buildEnvelope(n), t.logsIngestUrl, t.key, t.debug, !!e?.keepalive));
|
|
506
|
-
}
|
|
507
|
-
clear() {
|
|
508
|
-
this.buffer = [], this.clearTimer();
|
|
509
|
-
}
|
|
510
|
-
packForKeepalive(e) {
|
|
511
|
-
let t = [];
|
|
512
|
-
for (let n = this.buffer.length - 1; n >= 0; n--) {
|
|
513
|
-
let r = [this.buffer[n], ...t];
|
|
514
|
-
new TextEncoder().encode(_(this.buildEnvelope(r))).length <= e.keepaliveMaxBytes ? t = r : e.debug && console.error("Flare: dropping log record from keepalive envelope (over budget)");
|
|
515
|
-
}
|
|
516
|
-
return t;
|
|
517
|
-
}
|
|
518
|
-
buildEnvelope(e) {
|
|
519
|
-
let t = this.deps.getSdkInfo();
|
|
520
|
-
return oe(e, this.resourceForFlush(), t.name, t.version);
|
|
521
|
-
}
|
|
522
|
-
resourceForFlush() {
|
|
523
|
-
let e = this.deps.getConfig(), t = this.deps.getSdkInfo(), n = this.deps.getFramework(), r = {
|
|
524
|
-
"telemetry.sdk.language": "javascript",
|
|
525
|
-
"telemetry.sdk.name": t.name,
|
|
526
|
-
"telemetry.sdk.version": t.version,
|
|
527
|
-
"flare.language.name": "javascript"
|
|
528
|
-
};
|
|
529
|
-
return e.serviceName && (r["service.name"] = e.serviceName), e.version && (r["service.version"] = e.version), e.stage && (r["service.stage"] = e.stage), n?.name && (r["flare.framework.name"] = n.name), n?.version && (r["flare.framework.version"] = n.version), {
|
|
530
|
-
...this.resourceAttributes,
|
|
531
|
-
...r
|
|
532
|
-
};
|
|
533
|
-
}
|
|
534
|
-
clearTimer() {
|
|
535
|
-
this.timer &&= (clearTimeout(this.timer), void 0), this.timerActive = !1;
|
|
536
|
-
}
|
|
537
|
-
estimateBytes(e) {
|
|
538
|
-
return _(e).length;
|
|
539
|
-
}
|
|
540
|
-
bufferBytes() {
|
|
541
|
-
return this.buffer.reduce((e, t) => e + this.estimateBytes(t), 0);
|
|
542
|
-
}
|
|
543
|
-
}, de = class {
|
|
544
|
-
register() {}
|
|
545
|
-
}, fe = [
|
|
546
|
-
"service.",
|
|
547
|
-
"telemetry.",
|
|
548
|
-
"host.",
|
|
549
|
-
"os.",
|
|
550
|
-
"process.",
|
|
551
|
-
"flare.framework.",
|
|
552
|
-
"flare.language."
|
|
553
|
-
], pe = /* @__PURE__ */ new Set(["process.uptime"]);
|
|
554
|
-
function me(e) {
|
|
555
|
-
let t = {}, n = {};
|
|
556
|
-
for (let [r, i] of Object.entries(e)) !pe.has(r) && fe.some((e) => r.startsWith(e)) ? t[r] = i : n[r] = i;
|
|
557
|
-
return {
|
|
558
|
-
resource: t,
|
|
559
|
-
record: n
|
|
560
|
-
};
|
|
561
|
-
}
|
|
562
|
-
var O = {
|
|
563
|
-
id: "user.id",
|
|
564
|
-
email: "user.email",
|
|
565
|
-
fullName: "user.full_name",
|
|
566
|
-
ipAddress: "client.address"
|
|
567
|
-
}, he = [...Object.values(O), "user.attributes"], ge = class {
|
|
568
|
-
glows = [];
|
|
569
|
-
pendingAttributes = {};
|
|
570
|
-
entryPoint = null;
|
|
571
|
-
addGlow(e, t) {
|
|
572
|
-
this.glows.push(e), this.glows.length > t && (this.glows = this.glows.slice(this.glows.length - t));
|
|
573
|
-
}
|
|
574
|
-
clearGlows() {
|
|
575
|
-
this.glows = [];
|
|
576
|
-
}
|
|
577
|
-
setAttribute(e, t) {
|
|
578
|
-
this.pendingAttributes[e] = t;
|
|
579
|
-
}
|
|
580
|
-
mergeAttributes(e) {
|
|
581
|
-
Object.assign(this.pendingAttributes, e);
|
|
582
|
-
}
|
|
583
|
-
}, k = class {
|
|
584
|
-
scope = new ge();
|
|
585
|
-
active() {
|
|
586
|
-
return this.scope;
|
|
587
|
-
}
|
|
588
|
-
}, A = {};
|
|
589
|
-
function _e(e, t, n, r) {
|
|
590
|
-
return new Promise((i) => {
|
|
591
|
-
if (!t || !n) return i({
|
|
592
|
-
codeSnippet: { 0: `Could not read from file: missing file URL or line number. URL: ${t} lineNumber: ${n}` },
|
|
593
|
-
trimmedColumnNumber: null
|
|
594
|
-
});
|
|
595
|
-
ve(e, t).then((e) => i(e ? ye(e, n, r) : {
|
|
596
|
-
codeSnippet: { 0: `Could not read from file: Error while opening file at URL ${t}` },
|
|
597
|
-
trimmedColumnNumber: null
|
|
598
|
-
}));
|
|
599
|
-
});
|
|
600
|
-
}
|
|
601
|
-
function ve(e, t) {
|
|
602
|
-
return A[t] === void 0 ? e.read(t).then((e) => (e !== null && (A[t] = e), e)) : Promise.resolve(A[t]);
|
|
603
|
-
}
|
|
604
|
-
function ye(e, t, n, r = 1e3, i = 40) {
|
|
605
|
-
let a = {}, o = null, s = e.split("\n"), c = t - 1, l = Math.floor(i / 2);
|
|
606
|
-
for (let e = -l; e <= l; e++) {
|
|
607
|
-
let i = c + e;
|
|
608
|
-
if (i < 0 || !s[i]) continue;
|
|
609
|
-
let l = i + 1, u = s[i];
|
|
610
|
-
if (u.length > r) {
|
|
611
|
-
if (n && n > r / 2) {
|
|
612
|
-
let e = n - Math.round(r / 2);
|
|
613
|
-
a[l] = u.slice(e, e + r), l === t && (o = Math.round(r / 2));
|
|
614
|
-
continue;
|
|
615
|
-
}
|
|
616
|
-
a[l] = u.slice(0, r) + "…";
|
|
617
|
-
continue;
|
|
618
|
-
}
|
|
619
|
-
a[l] = u;
|
|
620
|
-
}
|
|
621
|
-
return {
|
|
622
|
-
codeSnippet: a,
|
|
623
|
-
trimmedColumnNumber: o
|
|
624
|
-
};
|
|
625
|
-
}
|
|
626
|
-
function j(e, t, n) {
|
|
627
|
-
return new Promise((r) => {
|
|
628
|
-
if (!Se(e)) return r([M("stacktrace missing")]);
|
|
629
|
-
let i;
|
|
630
|
-
try {
|
|
631
|
-
i = c.default.parse(e);
|
|
632
|
-
} catch (n) {
|
|
633
|
-
return f(!1, "Couldn't parse stacktrace of below error:", t), t && (console.error(n), console.error(e)), r([M("stacktrace could not be parsed")]);
|
|
634
|
-
}
|
|
635
|
-
Promise.all(i.map((e) => {
|
|
636
|
-
let t = xe(e.fileName);
|
|
637
|
-
return _e(n, t, e.lineNumber, e.columnNumber).then((n) => ({
|
|
638
|
-
lineNumber: e.lineNumber || 1,
|
|
639
|
-
columnNumber: e.columnNumber || 1,
|
|
640
|
-
method: e.functionName || "Anonymous or unknown function",
|
|
641
|
-
file: t || "Unknown file",
|
|
642
|
-
codeSnippet: n.codeSnippet,
|
|
643
|
-
class: "",
|
|
644
|
-
isApplicationFrame: Ce(t)
|
|
645
|
-
}));
|
|
646
|
-
})).then(r);
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
var be = "address at ";
|
|
650
|
-
function xe(e) {
|
|
651
|
-
return e?.startsWith(be) ? e.slice(11) : e;
|
|
652
|
-
}
|
|
653
|
-
function M(e) {
|
|
654
|
-
return {
|
|
655
|
-
lineNumber: 0,
|
|
656
|
-
columnNumber: 0,
|
|
657
|
-
method: "unknown",
|
|
658
|
-
file: "unknown",
|
|
659
|
-
codeSnippet: { 0: `Could not read from file: ${e}` },
|
|
660
|
-
class: "unknown"
|
|
661
|
-
};
|
|
662
|
-
}
|
|
663
|
-
function Se(e) {
|
|
664
|
-
if (!e || typeof e != "object") return !1;
|
|
665
|
-
let t = e, n = t.stack ?? t.stacktrace ?? t["opera#sourceloc"];
|
|
666
|
-
return typeof n == "string" && n !== `${t.name}: ${t.message}`;
|
|
667
|
-
}
|
|
668
|
-
function Ce(e) {
|
|
669
|
-
return !e || !(/[/\\]node_modules[/\\]/.test(e) || /(^|[/\\])(vendor|vendors)[.~-][^/\\]*\.js/i.test(e));
|
|
670
|
-
}
|
|
671
|
-
var we = class {
|
|
672
|
-
read(e) {
|
|
673
|
-
return Promise.resolve(null);
|
|
674
|
-
}
|
|
675
|
-
}, Te = "@flareapp/core", Ee = class {
|
|
676
|
-
inflight = /* @__PURE__ */ new Set();
|
|
677
|
-
_logger;
|
|
678
|
-
_config = {
|
|
679
|
-
key: null,
|
|
680
|
-
version: "",
|
|
681
|
-
sourcemapVersionId: d,
|
|
682
|
-
stage: "",
|
|
683
|
-
maxGlowsPerReport: 30,
|
|
684
|
-
ingestUrl: "https://ingress.flareapp.io/v1/errors",
|
|
685
|
-
reportBrowserExtensionErrors: !1,
|
|
686
|
-
debug: !1,
|
|
687
|
-
urlDenylist: x,
|
|
688
|
-
replaceDefaultUrlDenylist: !1,
|
|
689
|
-
sampleRate: 1,
|
|
690
|
-
beforeEvaluate: (e) => e,
|
|
691
|
-
beforeSubmit: (e) => e,
|
|
692
|
-
enableLogs: !1,
|
|
693
|
-
logsIngestUrl: "https://ingress.flareapp.io/v1/logs",
|
|
694
|
-
maxLogBufferSize: 100,
|
|
695
|
-
logFlushIntervalMs: 5e3,
|
|
696
|
-
logFlushMaxBytes: 8e5,
|
|
697
|
-
keepaliveMaxBytes: 6e4
|
|
698
|
-
};
|
|
699
|
-
sdkInfo = {
|
|
700
|
-
name: Te,
|
|
701
|
-
version: l
|
|
702
|
-
};
|
|
703
|
-
framework = null;
|
|
704
|
-
constructor(e = new w(), t = () => ({}), n = new we(), r = new k(), i = new de()) {
|
|
705
|
-
this.api = e, this.contextCollector = t, this.fileReader = n, this.scopeProvider = r, this._logger = new ue({
|
|
706
|
-
api: this.api,
|
|
707
|
-
getConfig: () => this._config,
|
|
708
|
-
getSdkInfo: () => this.sdkInfo,
|
|
709
|
-
getFramework: () => this.framework,
|
|
710
|
-
buildLogAttributes: (e) => this.buildLogAttributes(e),
|
|
711
|
-
track: (e) => this.track(e),
|
|
712
|
-
scheduler: i
|
|
713
|
-
});
|
|
714
|
-
}
|
|
715
|
-
track(e) {
|
|
716
|
-
let t = e.then(() => void 0, () => void 0);
|
|
717
|
-
return this.inflight.add(t), t.finally(() => this.inflight.delete(t)), e;
|
|
718
|
-
}
|
|
719
|
-
flush(e = 2e3) {
|
|
720
|
-
this._logger.flush();
|
|
721
|
-
let t = [...this.inflight];
|
|
722
|
-
return t.length === 0 ? Promise.resolve() : new Promise((n) => {
|
|
723
|
-
let r = setTimeout(n, e);
|
|
724
|
-
Promise.allSettled(t).then(() => {
|
|
725
|
-
clearTimeout(r), n();
|
|
726
|
-
});
|
|
727
|
-
});
|
|
728
|
-
}
|
|
729
|
-
get config() {
|
|
730
|
-
return this._config;
|
|
731
|
-
}
|
|
732
|
-
get glows() {
|
|
733
|
-
return this.scopeProvider.active().glows;
|
|
734
|
-
}
|
|
735
|
-
get logger() {
|
|
736
|
-
return this._logger;
|
|
737
|
-
}
|
|
738
|
-
light(e = u, t) {
|
|
739
|
-
return this._config.key = e, t !== void 0 && (this._config.debug = t), this._logger.flush(), this;
|
|
740
|
-
}
|
|
741
|
-
configure(e) {
|
|
742
|
-
let t = this._config.enableLogs;
|
|
743
|
-
return this._config = {
|
|
744
|
-
...this._config,
|
|
745
|
-
...e
|
|
746
|
-
}, e.sampleRate !== void 0 && (this._config.sampleRate = Math.max(0, Math.min(1, e.sampleRate))), this._config.urlDenylist = S(e.urlDenylist, e.replaceDefaultUrlDenylist ?? this._config.replaceDefaultUrlDenylist), t && this._config.enableLogs === !1 && this._logger.clear(), e.key !== void 0 && this._logger.flush(), this;
|
|
747
|
-
}
|
|
748
|
-
test() {
|
|
749
|
-
return this.track(this.testInternal());
|
|
750
|
-
}
|
|
751
|
-
async testInternal() {
|
|
752
|
-
let e = await this.createReportFromError(/* @__PURE__ */ Error("The Flare client is set up correctly!"));
|
|
753
|
-
if (e) return this.sendReport(e);
|
|
754
|
-
}
|
|
755
|
-
glow(e, t = "info", n = []) {
|
|
756
|
-
let r = ee();
|
|
757
|
-
return this.scopeProvider.active().addGlow({
|
|
758
|
-
name: e,
|
|
759
|
-
messageLevel: t,
|
|
760
|
-
metaData: n,
|
|
761
|
-
time: r,
|
|
762
|
-
microtime: r
|
|
763
|
-
}, this._config.maxGlowsPerReport), this;
|
|
764
|
-
}
|
|
765
|
-
clearGlows() {
|
|
766
|
-
return this.scopeProvider.active().clearGlows(), this;
|
|
767
|
-
}
|
|
768
|
-
addContext(e, t) {
|
|
769
|
-
let n = this.scopeProvider.active(), r = n.pendingAttributes["context.custom"] ?? {};
|
|
770
|
-
return n.setAttribute("context.custom", {
|
|
771
|
-
...r,
|
|
772
|
-
[e]: t
|
|
773
|
-
}), this;
|
|
774
|
-
}
|
|
775
|
-
addContextGroup(e, t) {
|
|
776
|
-
return this.scopeProvider.active().setAttribute(`context.${e}`, t), this;
|
|
777
|
-
}
|
|
778
|
-
setUser(e) {
|
|
779
|
-
let t = this.scopeProvider.active();
|
|
780
|
-
for (let e of he) delete t.pendingAttributes[e];
|
|
781
|
-
if (!e) return this;
|
|
782
|
-
let { id: n, email: r, fullName: i, ipAddress: a, ...o } = e;
|
|
783
|
-
n != null && t.setAttribute(O.id, String(n)), r !== void 0 && t.setAttribute(O.email, r), i !== void 0 && t.setAttribute(O.fullName, i), a !== void 0 && t.setAttribute(O.ipAddress, a);
|
|
784
|
-
let s = Object.fromEntries(Object.entries(o).filter(([, e]) => e !== void 0));
|
|
785
|
-
return Object.keys(s).length > 0 && t.setAttribute("user.attributes", s), this;
|
|
786
|
-
}
|
|
787
|
-
setEntryPoint(e) {
|
|
788
|
-
return this.scopeProvider.active().entryPoint = e, this;
|
|
789
|
-
}
|
|
790
|
-
setSdkInfo(e) {
|
|
791
|
-
return this.sdkInfo = e, this;
|
|
792
|
-
}
|
|
793
|
-
setFramework(e) {
|
|
794
|
-
return this.framework = e, this;
|
|
795
|
-
}
|
|
796
|
-
report(e, t = {}) {
|
|
797
|
-
return this.track(this.reportInternal(e, t));
|
|
798
|
-
}
|
|
799
|
-
async reportInternal(e, t = {}) {
|
|
800
|
-
if (this._config.sampleRate < 1 && Math.random() >= this._config.sampleRate) return;
|
|
801
|
-
let n = Date.now() * 1e6, r = e instanceof Error ? e : Error(typeof e == "string" ? e : String(e)), i = await this._config.beforeEvaluate(r);
|
|
802
|
-
if (!i) return;
|
|
803
|
-
let a = await this.createReportFromError(i, t, n);
|
|
804
|
-
if (a) return this.sendReport(a);
|
|
805
|
-
}
|
|
806
|
-
reportSilently(e, t = {}) {
|
|
807
|
-
this.track(this.reportInternal(e, t).catch(() => {}));
|
|
808
|
-
}
|
|
809
|
-
reportUnhandledRejection(e, t = {}) {
|
|
810
|
-
return this.track(this.reportUnhandledRejectionInternal(e, t));
|
|
811
|
-
}
|
|
812
|
-
async reportUnhandledRejectionInternal(e, t = {}) {
|
|
813
|
-
if (this._config.sampleRate < 1 && Math.random() >= this._config.sampleRate) return;
|
|
814
|
-
let n = Date.now() * 1e6, r = this.buildReport({
|
|
815
|
-
exceptionClass: "UnhandledRejection",
|
|
816
|
-
message: e,
|
|
817
|
-
stacktrace: [],
|
|
818
|
-
isLog: !1,
|
|
819
|
-
level: void 0,
|
|
820
|
-
extraAttributes: t,
|
|
821
|
-
code: void 0,
|
|
822
|
-
seenAtUnixNano: n
|
|
823
|
-
});
|
|
824
|
-
return this.sendReport(r);
|
|
825
|
-
}
|
|
826
|
-
reportMessage(e, t, n = {}) {
|
|
827
|
-
return this.track(this.reportMessageInternal(e, t, n));
|
|
828
|
-
}
|
|
829
|
-
async reportMessageInternal(e, t, n = {}) {
|
|
830
|
-
if (this._config.sampleRate < 1 && Math.random() >= this._config.sampleRate) return;
|
|
831
|
-
let r = Date.now() * 1e6, i = await j(/* @__PURE__ */ Error(), this._config.debug, this.fileReader);
|
|
832
|
-
i.shift();
|
|
833
|
-
let a = this.buildReport({
|
|
834
|
-
exceptionClass: "Log",
|
|
835
|
-
message: e,
|
|
836
|
-
stacktrace: i,
|
|
837
|
-
isLog: !0,
|
|
838
|
-
level: t,
|
|
839
|
-
extraAttributes: n,
|
|
840
|
-
code: void 0,
|
|
841
|
-
seenAtUnixNano: r
|
|
842
|
-
});
|
|
843
|
-
return this.sendReport(a);
|
|
844
|
-
}
|
|
845
|
-
async createReportFromError(e, t = {}, n = Date.now() * 1e6) {
|
|
846
|
-
if (!f(e, "No error provided.", this._config.debug)) return !1;
|
|
847
|
-
let r = await j(e, this._config.debug, this.fileReader);
|
|
848
|
-
f(r.length, "Couldn't generate stacktrace of this error: " + e, this._config.debug);
|
|
849
|
-
let i = e.constructor && e.constructor.name ? e.constructor.name : "undefined";
|
|
850
|
-
return this.buildReport({
|
|
851
|
-
exceptionClass: i,
|
|
852
|
-
message: e.message,
|
|
853
|
-
stacktrace: r,
|
|
854
|
-
isLog: !1,
|
|
855
|
-
level: void 0,
|
|
856
|
-
extraAttributes: t,
|
|
857
|
-
code: g(e),
|
|
858
|
-
seenAtUnixNano: n
|
|
859
|
-
});
|
|
860
|
-
}
|
|
861
|
-
buildBaseAttributes() {
|
|
862
|
-
let e = {
|
|
863
|
-
"telemetry.sdk.language": "javascript",
|
|
864
|
-
"telemetry.sdk.name": this.sdkInfo.name,
|
|
865
|
-
"telemetry.sdk.version": this.sdkInfo.version,
|
|
866
|
-
"flare.language.name": "javascript"
|
|
867
|
-
};
|
|
868
|
-
return this._config.stage && (e["service.stage"] = this._config.stage), this._config.version && (e["service.version"] = this._config.version), this.framework?.name && (e["flare.framework.name"] = this.framework.name), this.framework?.version && (e["flare.framework.version"] = this.framework.version), e;
|
|
869
|
-
}
|
|
870
|
-
assembleAttributes(e, t, n) {
|
|
871
|
-
let r = this.scopeProvider.active(), i = n ? this.buildBaseAttributes() : {}, a = r.entryPoint, o = {};
|
|
872
|
-
a?.identifier !== void 0 && (o["flare.entry_point.handler.identifier"] = a.identifier), a?.type !== void 0 && (o["flare.entry_point.handler.type"] = a.type), a?.name !== void 0 && (o["flare.entry_point.handler.name"] = a.name);
|
|
873
|
-
let s = {
|
|
874
|
-
...i,
|
|
875
|
-
...e,
|
|
876
|
-
...o,
|
|
877
|
-
...r.pendingAttributes,
|
|
878
|
-
...t
|
|
879
|
-
}, c = r.pendingAttributes["context.custom"], l = t["context.custom"];
|
|
880
|
-
return c && l && typeof c == "object" && typeof l == "object" && !Array.isArray(c) && !Array.isArray(l) && (s["context.custom"] = {
|
|
881
|
-
...c,
|
|
882
|
-
...l
|
|
883
|
-
}), this.framework?.name && (s["context.custom"] = {
|
|
884
|
-
...s["context.custom"] ?? {},
|
|
885
|
-
framework: this.framework.name.toLowerCase()
|
|
886
|
-
}), s;
|
|
887
|
-
}
|
|
888
|
-
buildLogAttributes(e) {
|
|
889
|
-
let { resource: t, record: n } = me(this.contextCollector(this._config));
|
|
890
|
-
return {
|
|
891
|
-
resource: t,
|
|
892
|
-
record: this.assembleAttributes(n, e, !1)
|
|
893
|
-
};
|
|
894
|
-
}
|
|
895
|
-
buildReport(e) {
|
|
896
|
-
let t = this.scopeProvider.active(), n = this.assembleAttributes(this.contextCollector(this._config), e.extraAttributes, !0), r = {
|
|
897
|
-
exceptionClass: e.exceptionClass,
|
|
898
|
-
message: e.message,
|
|
899
|
-
seenAtUnixNano: e.seenAtUnixNano,
|
|
900
|
-
stacktrace: e.stacktrace,
|
|
901
|
-
events: b(t.glows),
|
|
902
|
-
attributes: n
|
|
903
|
-
};
|
|
904
|
-
return e.isLog && (r.isLog = !0), e.level !== void 0 && (r.level = e.level), this._config.sourcemapVersionId && (r.sourcemapVersionId = this._config.sourcemapVersionId), e.code !== void 0 && (r.code = e.code), r;
|
|
905
|
-
}
|
|
906
|
-
async sendReport(e) {
|
|
907
|
-
if (!p(this._config.key, this._config.debug)) return;
|
|
908
|
-
let t = await this._config.beforeSubmit(e);
|
|
909
|
-
if (t) return this.api.report(t, this._config.ingestUrl, this._config.key, this._config.reportBrowserExtensionErrors, this._config.debug);
|
|
910
|
-
}
|
|
911
|
-
}, De = class {
|
|
912
|
-
register(e) {
|
|
913
|
-
typeof document > "u" || !document || document.addEventListener("visibilitychange", () => {
|
|
914
|
-
document.visibilityState === "hidden" && e({ keepalive: !0 });
|
|
915
|
-
});
|
|
916
|
-
}
|
|
917
|
-
};
|
|
918
|
-
function Oe() {
|
|
919
|
-
if (!window.document.cookie) return {};
|
|
920
|
-
let e = {};
|
|
921
|
-
return window.document.cookie.split("; ").forEach((t) => {
|
|
922
|
-
let n = t.indexOf("=");
|
|
923
|
-
if (n === -1) {
|
|
924
|
-
e[t] = "";
|
|
925
|
-
return;
|
|
926
|
-
}
|
|
927
|
-
let r = t.slice(0, n);
|
|
928
|
-
e[r] = t.slice(n + 1);
|
|
929
|
-
}), { "http.request.cookies": e };
|
|
930
|
-
}
|
|
931
|
-
function ke(e) {
|
|
932
|
-
return {
|
|
933
|
-
"url.full": C(window.location.href, e),
|
|
934
|
-
"user_agent.original": window.navigator.userAgent,
|
|
935
|
-
"http.request.referrer": C(window.document.referrer, e),
|
|
936
|
-
"document.ready_state": window.document.readyState
|
|
937
|
-
};
|
|
938
|
-
}
|
|
939
|
-
function Ae(e) {
|
|
940
|
-
return window.location.search ? { "url.query": C(window.location.search, e).replace(/^\?/, "") } : {};
|
|
941
|
-
}
|
|
942
|
-
var je = (e) => {
|
|
943
|
-
if (typeof window > "u") return { "flare.entry_point.type": "server" };
|
|
944
|
-
let t = { "flare.entry_point.type": "web" };
|
|
945
|
-
return window?.location?.href && (t["flare.entry_point.value"] = C(window.location.href, e.urlDenylist), window.location.pathname && (t["flare.entry_point.handler.identifier"] = window.location.pathname, t["flare.entry_point.handler.type"] = "browser")), window?.location?.hostname && (t["host.name"] = window.location.hostname), Object.assign(t, ke(e.urlDenylist)), Object.assign(t, Ae(e.urlDenylist)), Object.assign(t, Oe()), t;
|
|
946
|
-
}, Me = class {
|
|
947
|
-
read(e) {
|
|
948
|
-
return /^https?:\/\//i.test(e) ? fetch(e).then((e) => e.status === 200 ? e.text() : null).catch(() => null) : Promise.resolve(null);
|
|
949
|
-
}
|
|
950
|
-
}, Ne = typeof process < "u" ? "2.6.0" : "?";
|
|
951
|
-
function Pe() {
|
|
952
|
-
typeof window > "u" || (window.addEventListener("error", (e) => {
|
|
953
|
-
let t = window.flare;
|
|
954
|
-
t && e.error instanceof Error && t.reportSilently(e.error);
|
|
955
|
-
}), window.addEventListener("unhandledrejection", (e) => {
|
|
956
|
-
let t = window.flare;
|
|
957
|
-
t && ae(t, e.reason);
|
|
958
|
-
}));
|
|
959
|
-
}
|
|
960
|
-
//#endregion
|
|
961
|
-
//#region node_modules/@flareapp/js/dist/index.mjs
|
|
962
|
-
var N = new class extends Ee {
|
|
963
|
-
constructor(e = new w(), t = je, n = new Me(), r = new k()) {
|
|
964
|
-
super(e, t, n, r, new De()), this.setSdkInfo({
|
|
965
|
-
name: "@flareapp/js",
|
|
966
|
-
version: Ne
|
|
967
|
-
});
|
|
968
|
-
}
|
|
969
|
-
}();
|
|
970
|
-
typeof window < "u" && window && (window.flare = N, Pe());
|
|
971
|
-
//#endregion
|
|
972
|
-
//#region src/plugins/flare.ts
|
|
973
|
-
var P = /* @__PURE__ */ "fancybox,jQuery,Modernizr,cssua,ScrollTrigger,calcSelectArrowDimensions,this.elements.$menu.smartmenus,woocommerce,elementor,avadaAddQuantityBoxes,fusion,FLBuilderAccordion,_initLayerSlider,Divi,gsap,Swiper,mailchimp,_AutofillCallbackHandler,$(...),imagesLoaded,masonry,accessing a cross-origin frame,scrollspy,No layout mode: packery,Vimeo,Network Error,Request aborted,timeout exceeded,Loading chunk,TrackerStorageType,Failed to load because no supported source was found.,The element has no supported sources.,grecaptcha,lightbox,priceCalcElement,AwesomeMenu,breakdance,Maximum call stack size exceeded.,Cookies is not defined,getUniqId,Cannot read properties of null (reading 'classList'),n.getModal,e.target.closest is not a function,Cannot read properties of undefined (reading 'Item'),Cannot read properties of undefined (reading 'clientHeight'),refreshFsLightbox,fbq,Cannot assign to read only property 'push' of object '[object Array]',naturalWidth,Request failed with status code,Can't find variable: _,astraNavMenuTogglePro,The operation was aborted.,Failed to fetch dynamically imported module:,Importing a module script failed.,The request is not allowed by the user agent,this.Vi.close,The operation is insecure.,gformValidateFileSize,BreakdanceEntrance,Cannot read properties of undefined (reading '__'),The play() request was interrupted because video-only,Animation is interrupted by user input.,Animation is already playing.,Position \"NaN\" is not reachable.,Cannot redefine property: onbeforeunload,e.remove is not a function,Can't find variable: Cookies,Load failed,wp is not defined,Backbone,Invalid attempt to destructure non-iterable instance,Can't find variable: EmptyRanges,Cannot read properties of undefined (reading 'setLocaleData'),Function snaptr not implemented.,window.sbi_init is not a function,thehotelsnetwork,Reepay,wpcf7,et_pb_,mediaelementplayer,pys_generate_token,webkit.messageHandlers,__firefox__,window.ethereum,Blocked a frame with origin,NetworkError when attempting to fetch resource,play() failed because the user didn,Error invoking postMessage: Java exception,Failed to load CSS,Failed to load script,removeAttribute is not a function,Invalid site key,Handling is disabled".split(",");
|
|
974
|
-
/(meta-external|facebookexternalhit|googlebot|bingbot|slurp|duckduckbot|baiduspider|yandexbot|twitterbot|linkedinbot|semrushbot|ahrefsbot|applebot|bytespider|crawler|spider|HeadlessChrome)/i.test(navigator.userAgent) || (N.light("5pqzBljrmDvquWZYSrSUKldIUREtPyB3"), N.addContext("version", "4.7.18"), N.configure({ beforeEvaluate: (e) => {
|
|
975
|
-
for (let t = 0; t < P.length; t++) if (e.message.toLowerCase().includes(P[t].toLowerCase())) return !1;
|
|
976
|
-
return e;
|
|
977
|
-
} }));
|
|
978
|
-
//#endregion
|
|
979
|
-
//#region node_modules/@flareapp/vue/dist/FlareErrorBoundary-9LmNTGFB.mjs
|
|
980
|
-
var F = null;
|
|
981
|
-
function Fe() {
|
|
982
|
-
try {
|
|
983
|
-
return !1;
|
|
984
|
-
} catch {
|
|
985
|
-
return !1;
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
function Ie(e) {
|
|
989
|
-
if (typeof window < "u" && window.__flare) {
|
|
990
|
-
let e = "[flare] @flareapp/vue (web root) was imported in a renderer where the Electron bridge is present, pulling the keyed @flareapp/js singleton into the renderer. Import @flareapp/vue/inject and pass the @flareapp/electron/renderer instance instead.";
|
|
991
|
-
if (Fe()) throw Error(e);
|
|
992
|
-
console.warn(e);
|
|
993
|
-
}
|
|
994
|
-
F = e;
|
|
995
|
-
}
|
|
996
|
-
function I(e) {
|
|
997
|
-
if (e) return e;
|
|
998
|
-
if (F) return F();
|
|
999
|
-
throw Error("[flare] No Flare instance available. Pass `flare` (e.g. from @flareapp/electron/renderer), or import @flareapp/vue (the package root) to use the @flareapp/js default singleton.");
|
|
1000
|
-
}
|
|
1001
|
-
var Le = typeof process < "u" && process.env?.PACKAGE_VERSION !== void 0 ? process.env.PACKAGE_VERSION : "?", L = 50, R = /password|passwd|pwd|token|secret|authorization|\bauth\b|bearer|oauth|credentials?|cookie|api[-_]?key|private[-_]?key|session|csrf|xsrf|\bpin\b|\bssn\b|card[-_]?number|\bcvv\b/i;
|
|
1002
|
-
function z(e, t = !1) {
|
|
1003
|
-
return S(e, t, R);
|
|
1004
|
-
}
|
|
1005
|
-
var B = 1e3, V = 100, H = 100, Re = {
|
|
1006
|
-
"setup function": "setup",
|
|
1007
|
-
"render function": "render",
|
|
1008
|
-
"component update": "render",
|
|
1009
|
-
"watcher getter": "watcher",
|
|
1010
|
-
"watcher callback": "watcher",
|
|
1011
|
-
"watcher cleanup function": "watcher",
|
|
1012
|
-
"native event handler": "event",
|
|
1013
|
-
"component event handler": "event",
|
|
1014
|
-
"beforeCreate hook": "lifecycle",
|
|
1015
|
-
"created hook": "lifecycle",
|
|
1016
|
-
"beforeMount hook": "lifecycle",
|
|
1017
|
-
"mounted hook": "lifecycle",
|
|
1018
|
-
"beforeUpdate hook": "lifecycle",
|
|
1019
|
-
"updated hook": "lifecycle",
|
|
1020
|
-
"beforeUnmount hook": "lifecycle",
|
|
1021
|
-
"unmounted hook": "lifecycle",
|
|
1022
|
-
"activated hook": "lifecycle",
|
|
1023
|
-
"deactivated hook": "lifecycle",
|
|
1024
|
-
"errorCaptured hook": "lifecycle",
|
|
1025
|
-
"renderTracked hook": "lifecycle",
|
|
1026
|
-
"renderTriggered hook": "lifecycle",
|
|
1027
|
-
"serverPrefetch hook": "lifecycle",
|
|
1028
|
-
"vnode hook": "lifecycle",
|
|
1029
|
-
"directive hook": "lifecycle",
|
|
1030
|
-
"transition hook": "lifecycle",
|
|
1031
|
-
"ref function": "setup",
|
|
1032
|
-
"async component loader": "setup",
|
|
1033
|
-
"scheduler flush": "render",
|
|
1034
|
-
"app errorHandler": "lifecycle",
|
|
1035
|
-
"app warnHandler": "lifecycle",
|
|
1036
|
-
"app unmount cleanup function": "lifecycle",
|
|
1037
|
-
0: "setup",
|
|
1038
|
-
1: "render",
|
|
1039
|
-
2: "watcher",
|
|
1040
|
-
3: "watcher",
|
|
1041
|
-
4: "watcher",
|
|
1042
|
-
5: "event",
|
|
1043
|
-
6: "event",
|
|
1044
|
-
7: "lifecycle",
|
|
1045
|
-
8: "lifecycle",
|
|
1046
|
-
9: "lifecycle",
|
|
1047
|
-
10: "lifecycle",
|
|
1048
|
-
11: "lifecycle",
|
|
1049
|
-
12: "setup",
|
|
1050
|
-
13: "setup",
|
|
1051
|
-
14: "render",
|
|
1052
|
-
15: "render",
|
|
1053
|
-
16: "lifecycle",
|
|
1054
|
-
sp: "lifecycle",
|
|
1055
|
-
bc: "lifecycle",
|
|
1056
|
-
c: "lifecycle",
|
|
1057
|
-
bm: "lifecycle",
|
|
1058
|
-
m: "lifecycle",
|
|
1059
|
-
bu: "lifecycle",
|
|
1060
|
-
u: "lifecycle",
|
|
1061
|
-
bum: "lifecycle",
|
|
1062
|
-
um: "lifecycle",
|
|
1063
|
-
a: "lifecycle",
|
|
1064
|
-
da: "lifecycle",
|
|
1065
|
-
ec: "lifecycle",
|
|
1066
|
-
rtc: "lifecycle",
|
|
1067
|
-
rtg: "lifecycle"
|
|
1068
|
-
};
|
|
1069
|
-
function U(e) {
|
|
1070
|
-
if (!e) return "AnonymousComponent";
|
|
1071
|
-
let t = e.$options;
|
|
1072
|
-
return t.__name || t.name || "AnonymousComponent";
|
|
1073
|
-
}
|
|
1074
|
-
function W(e) {
|
|
1075
|
-
let t = [], n = e;
|
|
1076
|
-
for (; n && t.length < L;) t.push(U(n)), n = n.$parent;
|
|
1077
|
-
return t;
|
|
1078
|
-
}
|
|
1079
|
-
function G(e, t, n = R) {
|
|
1080
|
-
return K(e, 0, t, /* @__PURE__ */ new WeakSet(), n);
|
|
1081
|
-
}
|
|
1082
|
-
function K(e, t, n, r, i) {
|
|
1083
|
-
if (e === null) return null;
|
|
1084
|
-
let a = typeof e;
|
|
1085
|
-
if (a === "function") return "[Function]";
|
|
1086
|
-
if (a === "symbol") return "[Symbol]";
|
|
1087
|
-
if (a === "bigint") return e.toString();
|
|
1088
|
-
if (a === "string") return ze(e);
|
|
1089
|
-
if (a !== "object") return e;
|
|
1090
|
-
if (r.has(e)) return "[Circular]";
|
|
1091
|
-
if (Array.isArray(e)) {
|
|
1092
|
-
if (t > n) return "[Array]";
|
|
1093
|
-
r.add(e);
|
|
1094
|
-
let a = (e.length > V ? e.slice(0, V) : e).map((e) => K(e, t + 1, n, r, i));
|
|
1095
|
-
return e.length > V && a.push(`[… ${e.length - V} more items]`), r.delete(e), a;
|
|
1096
|
-
}
|
|
1097
|
-
if (!Be(e) || t > n) return "[Object]";
|
|
1098
|
-
r.add(e);
|
|
1099
|
-
let o = {}, s = Object.keys(e), c = s.length > H ? s.slice(0, H) : s;
|
|
1100
|
-
for (let a of c) {
|
|
1101
|
-
if (i.test(a)) {
|
|
1102
|
-
o[a] = "[redacted]";
|
|
1103
|
-
continue;
|
|
1104
|
-
}
|
|
1105
|
-
o[a] = K(e[a], t + 1, n, r, i);
|
|
1106
|
-
}
|
|
1107
|
-
return s.length > H && (o["…"] = `[${s.length - H} more keys]`), r.delete(e), o;
|
|
1108
|
-
}
|
|
1109
|
-
function ze(e) {
|
|
1110
|
-
return e.length <= B ? e : `${e.slice(0, B)}…[truncated ${e.length - B} chars]`;
|
|
1111
|
-
}
|
|
1112
|
-
function Be(e) {
|
|
1113
|
-
if (typeof e != "object" || !e) return !1;
|
|
1114
|
-
let t = Object.getPrototypeOf(e);
|
|
1115
|
-
return t === null || t === Object.prototype;
|
|
1116
|
-
}
|
|
1117
|
-
function q(e, t) {
|
|
1118
|
-
let n = [], r = e;
|
|
1119
|
-
for (; r && n.length < L;) {
|
|
1120
|
-
let e = r.$options, i = {
|
|
1121
|
-
component: U(r),
|
|
1122
|
-
file: e.__file ?? null
|
|
1123
|
-
};
|
|
1124
|
-
t.attachProps && r.$props && (i.props = G(r.$props, t.propsMaxDepth, t.propsDenylist)), n.push(i), r = r.$parent;
|
|
1125
|
-
}
|
|
1126
|
-
return n;
|
|
1127
|
-
}
|
|
1128
|
-
function J(e) {
|
|
1129
|
-
return Re[e] ?? "unknown";
|
|
1130
|
-
}
|
|
1131
|
-
var Y = 2;
|
|
1132
|
-
function X(e, t = {}) {
|
|
1133
|
-
if (!e || typeof e != "object" || !("currentRoute" in e)) return null;
|
|
1134
|
-
let n = e.currentRoute;
|
|
1135
|
-
if (!n || typeof n != "object" || !("value" in n)) return null;
|
|
1136
|
-
let r = n.value;
|
|
1137
|
-
if (!r || typeof r != "object") return null;
|
|
1138
|
-
let i = r, a = i.name, o = t.denylist ?? R, s = i.params && typeof i.params == "object" ? i.params : {}, c = i.query && typeof i.query == "object" ? i.query : {};
|
|
1139
|
-
return {
|
|
1140
|
-
name: typeof a == "string" ? a : typeof a == "symbol" ? a.toString() : null,
|
|
1141
|
-
path: typeof i.path == "string" ? i.path : "",
|
|
1142
|
-
fullPath: typeof i.fullPath == "string" ? C(i.fullPath, o) : "",
|
|
1143
|
-
params: G(s, Y, o),
|
|
1144
|
-
query: G(c, Y, o),
|
|
1145
|
-
hash: typeof i.hash == "string" ? i.hash : "",
|
|
1146
|
-
matched: Array.isArray(i.matched) ? i.matched.map((e) => {
|
|
1147
|
-
if (!e || typeof e != "object") return "unknown";
|
|
1148
|
-
let t = e.name;
|
|
1149
|
-
return typeof t == "string" ? t : typeof t == "symbol" ? t.toString() : "unknown";
|
|
1150
|
-
}) : []
|
|
1151
|
-
};
|
|
1152
|
-
}
|
|
1153
|
-
var Z = /* @__PURE__ */ new WeakSet(), Q = /* @__PURE__ */ new WeakSet();
|
|
1154
|
-
function Ve(e) {
|
|
1155
|
-
Z.has(e) || (Z.add(e), e.setSdkInfo({
|
|
1156
|
-
name: "@flareapp/vue",
|
|
1157
|
-
version: Le
|
|
1158
|
-
}));
|
|
1159
|
-
}
|
|
1160
|
-
function He(e, t) {
|
|
1161
|
-
Q.has(e) || (Q.add(e), e.setFramework({
|
|
1162
|
-
name: "Vue",
|
|
1163
|
-
version: t
|
|
1164
|
-
}));
|
|
1165
|
-
}
|
|
1166
|
-
function Ue(e) {
|
|
1167
|
-
let t = {
|
|
1168
|
-
info: e.vue.info,
|
|
1169
|
-
errorOrigin: e.vue.errorOrigin,
|
|
1170
|
-
componentName: e.vue.componentName,
|
|
1171
|
-
componentHierarchy: e.vue.componentHierarchy,
|
|
1172
|
-
componentHierarchyFrames: e.vue.componentHierarchyFrames
|
|
1173
|
-
};
|
|
1174
|
-
return e.vue.componentProps && (t.componentProps = e.vue.componentProps), e.vue.route && (t.route = e.vue.route), { "context.custom": { vue: t } };
|
|
1175
|
-
}
|
|
1176
|
-
function We(e) {
|
|
1177
|
-
let t = {
|
|
1178
|
-
type: e.vue.type,
|
|
1179
|
-
info: e.vue.info,
|
|
1180
|
-
componentName: e.vue.componentName,
|
|
1181
|
-
componentTrace: e.vue.componentTrace
|
|
1182
|
-
};
|
|
1183
|
-
return e.vue.route && (t.route = e.vue.route), { "context.custom": { vue: t } };
|
|
1184
|
-
}
|
|
1185
|
-
var $ = /* @__PURE__ */ new WeakSet(), Ge = (e, t) => {
|
|
1186
|
-
if ($.has(e)) return;
|
|
1187
|
-
let n = I(t?.flare);
|
|
1188
|
-
$.add(e), t?.flare || Ve(n), He(n, e.version);
|
|
1189
|
-
let r = t?.attachProps ?? !1, i = t?.propsMaxDepth ?? 2, a = z(t?.propsDenylist, t?.replaceDefaultDenylist), o = e.config.errorHandler;
|
|
1190
|
-
if (e.config.errorHandler = (s, c, l) => {
|
|
1191
|
-
let u = m(s);
|
|
1192
|
-
t?.beforeEvaluate?.({
|
|
1193
|
-
error: u,
|
|
1194
|
-
instance: c,
|
|
1195
|
-
info: l
|
|
1196
|
-
});
|
|
1197
|
-
let d = J(l), f = U(c), p = r && c?.$props ? G(c.$props, i, a) : void 0, h = W(c), g = q(c, {
|
|
1198
|
-
attachProps: r,
|
|
1199
|
-
propsMaxDepth: i,
|
|
1200
|
-
propsDenylist: a
|
|
1201
|
-
}), _ = X(e.config.globalProperties.$router, { denylist: a }), v = { vue: {
|
|
1202
|
-
info: l,
|
|
1203
|
-
errorOrigin: d,
|
|
1204
|
-
componentName: f,
|
|
1205
|
-
...p && { componentProps: p },
|
|
1206
|
-
componentHierarchy: h,
|
|
1207
|
-
componentHierarchyFrames: g,
|
|
1208
|
-
..._ && { route: _ }
|
|
1209
|
-
} }, y = t?.beforeSubmit?.({
|
|
1210
|
-
error: u,
|
|
1211
|
-
instance: c,
|
|
1212
|
-
info: l,
|
|
1213
|
-
context: v
|
|
1214
|
-
}) ?? v;
|
|
1215
|
-
if (n.reportSilently(u, Ue(y)), t?.afterSubmit?.({
|
|
1216
|
-
error: u,
|
|
1217
|
-
instance: c,
|
|
1218
|
-
info: l,
|
|
1219
|
-
context: y
|
|
1220
|
-
}), typeof o == "function") {
|
|
1221
|
-
o(s, c, l);
|
|
1222
|
-
return;
|
|
1223
|
-
}
|
|
1224
|
-
console.error(s);
|
|
1225
|
-
}, t?.captureWarnings) {
|
|
1226
|
-
let t = e.config.warnHandler;
|
|
1227
|
-
e.config.warnHandler = (r, i, o) => {
|
|
1228
|
-
let s = U(i), c = X(e.config.globalProperties.$router, { denylist: a }), l = { vue: {
|
|
1229
|
-
type: "warning",
|
|
1230
|
-
info: r,
|
|
1231
|
-
componentName: s,
|
|
1232
|
-
componentTrace: o,
|
|
1233
|
-
...c && { route: c }
|
|
1234
|
-
} };
|
|
1235
|
-
Promise.resolve(n.reportMessage(r, "warning", We(l))).catch(() => {}), typeof t == "function" && t(r, i, o);
|
|
1236
|
-
};
|
|
1237
|
-
}
|
|
1238
|
-
};
|
|
1239
|
-
//#endregion
|
|
1240
|
-
//#region node_modules/@flareapp/vue/dist/index.mjs
|
|
1241
|
-
r({
|
|
1242
|
-
name: "FlareErrorBoundary",
|
|
1243
|
-
props: {
|
|
1244
|
-
flare: {
|
|
1245
|
-
type: Object,
|
|
1246
|
-
default: void 0
|
|
1247
|
-
},
|
|
1248
|
-
beforeEvaluate: {
|
|
1249
|
-
type: Function,
|
|
1250
|
-
default: void 0
|
|
1251
|
-
},
|
|
1252
|
-
beforeSubmit: {
|
|
1253
|
-
type: Function,
|
|
1254
|
-
default: void 0
|
|
1255
|
-
},
|
|
1256
|
-
afterSubmit: {
|
|
1257
|
-
type: Function,
|
|
1258
|
-
default: void 0
|
|
1259
|
-
},
|
|
1260
|
-
onReset: {
|
|
1261
|
-
type: Function,
|
|
1262
|
-
default: void 0
|
|
1263
|
-
},
|
|
1264
|
-
resetKeys: {
|
|
1265
|
-
type: Array,
|
|
1266
|
-
default: void 0
|
|
1267
|
-
},
|
|
1268
|
-
attachProps: {
|
|
1269
|
-
type: Boolean,
|
|
1270
|
-
default: !1
|
|
1271
|
-
},
|
|
1272
|
-
propsMaxDepth: {
|
|
1273
|
-
type: Number,
|
|
1274
|
-
default: 2
|
|
1275
|
-
},
|
|
1276
|
-
propsDenylist: {
|
|
1277
|
-
type: RegExp,
|
|
1278
|
-
default: void 0
|
|
1279
|
-
},
|
|
1280
|
-
replaceDefaultDenylist: {
|
|
1281
|
-
type: Boolean,
|
|
1282
|
-
default: !1
|
|
1283
|
-
}
|
|
1284
|
-
},
|
|
1285
|
-
setup(e, { slots: t }) {
|
|
1286
|
-
let r = I(e.flare);
|
|
1287
|
-
He(r, i()?.appContext.app.version);
|
|
1288
|
-
let s = i(), c = o(null), l = o(void 0), u = o([]), d = o([]), f = () => {
|
|
1289
|
-
e.onReset?.(c.value), c.value = null, l.value = void 0, u.value = [], d.value = [];
|
|
1290
|
-
};
|
|
1291
|
-
return a(() => e.resetKeys, (e, t) => {
|
|
1292
|
-
if (c.value === null || !e || !t) return;
|
|
1293
|
-
let n = t.length !== e.length, r = e.some((e, n) => !Object.is(e, t[n]));
|
|
1294
|
-
(n || r) && f();
|
|
1295
|
-
}), n((t, n, i) => {
|
|
1296
|
-
let a = m(t);
|
|
1297
|
-
e.beforeEvaluate?.({
|
|
1298
|
-
error: a,
|
|
1299
|
-
instance: n,
|
|
1300
|
-
info: i
|
|
1301
|
-
});
|
|
1302
|
-
let o = z(e.propsDenylist, e.replaceDefaultDenylist), f = W(n), p = q(n, {
|
|
1303
|
-
attachProps: e.attachProps,
|
|
1304
|
-
propsMaxDepth: e.propsMaxDepth,
|
|
1305
|
-
propsDenylist: o
|
|
1306
|
-
}), h = U(n);
|
|
1307
|
-
c.value = a;
|
|
1308
|
-
let g = e.attachProps && n?.$props ? G(n.$props, e.propsMaxDepth, o) : void 0, _ = J(i), v = X(s?.appContext.config.globalProperties.$router, { denylist: o }), y = { vue: {
|
|
1309
|
-
info: i,
|
|
1310
|
-
errorOrigin: _,
|
|
1311
|
-
...v && { route: v },
|
|
1312
|
-
componentName: h,
|
|
1313
|
-
...g && { componentProps: g },
|
|
1314
|
-
componentHierarchy: f,
|
|
1315
|
-
componentHierarchyFrames: p
|
|
1316
|
-
} }, b = e.beforeSubmit?.({
|
|
1317
|
-
error: a,
|
|
1318
|
-
instance: n,
|
|
1319
|
-
info: i,
|
|
1320
|
-
context: y
|
|
1321
|
-
}) ?? y;
|
|
1322
|
-
return l.value = b.vue.componentProps, u.value = b.vue.componentHierarchy, d.value = b.vue.componentHierarchyFrames, r.reportSilently(a, Ue(b)), e.afterSubmit?.({
|
|
1323
|
-
error: a,
|
|
1324
|
-
instance: n,
|
|
1325
|
-
info: i,
|
|
1326
|
-
context: b
|
|
1327
|
-
}), !1;
|
|
1328
|
-
}), () => c.value === null ? t.default?.() : t.fallback ? t.fallback({
|
|
1329
|
-
error: c.value,
|
|
1330
|
-
...l.value && { componentProps: l.value },
|
|
1331
|
-
componentHierarchy: u.value,
|
|
1332
|
-
componentHierarchyFrames: d.value,
|
|
1333
|
-
resetErrorBoundary: f
|
|
1334
|
-
}) : null;
|
|
1335
|
-
}
|
|
1336
|
-
}), Ie(() => N);
|
|
1337
|
-
//#endregion
|
|
1338
|
-
export { Ge as t };
|