@flyo/nitro-astro 1.0.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/README.md +37 -0
- package/dist/nitro-astro.js +18 -0
- package/dist/nitro-astro.mjs +3592 -0
- package/package.json +50 -0
|
@@ -0,0 +1,3592 @@
|
|
|
1
|
+
function Ue(i) {
|
|
2
|
+
if (i.__esModule)
|
|
3
|
+
return i;
|
|
4
|
+
var u = i.default;
|
|
5
|
+
if (typeof u == "function") {
|
|
6
|
+
var y = function l() {
|
|
7
|
+
return this instanceof l ? Reflect.construct(u, arguments, this.constructor) : u.apply(this, arguments);
|
|
8
|
+
};
|
|
9
|
+
y.prototype = u.prototype;
|
|
10
|
+
} else
|
|
11
|
+
y = {};
|
|
12
|
+
return Object.defineProperty(y, "__esModule", { value: !0 }), Object.keys(i).forEach(function(l) {
|
|
13
|
+
var p = Object.getOwnPropertyDescriptor(i, l);
|
|
14
|
+
Object.defineProperty(y, l, p.get ? p : {
|
|
15
|
+
enumerable: !0,
|
|
16
|
+
get: function() {
|
|
17
|
+
return i[l];
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}), y;
|
|
21
|
+
}
|
|
22
|
+
var Ke = {};
|
|
23
|
+
function je(i) {
|
|
24
|
+
throw new Error('Could not dynamically require "' + i + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
25
|
+
}
|
|
26
|
+
var N = {}, Z = { exports: {} }, Ae = { exports: {} };
|
|
27
|
+
(function(i) {
|
|
28
|
+
i.exports = u;
|
|
29
|
+
function u(l) {
|
|
30
|
+
if (l)
|
|
31
|
+
return y(l);
|
|
32
|
+
}
|
|
33
|
+
function y(l) {
|
|
34
|
+
for (var p in u.prototype)
|
|
35
|
+
l[p] = u.prototype[p];
|
|
36
|
+
return l;
|
|
37
|
+
}
|
|
38
|
+
u.prototype.on = u.prototype.addEventListener = function(l, p) {
|
|
39
|
+
return this._callbacks = this._callbacks || {}, (this._callbacks["$" + l] = this._callbacks["$" + l] || []).push(p), this;
|
|
40
|
+
}, u.prototype.once = function(l, p) {
|
|
41
|
+
function d() {
|
|
42
|
+
this.off(l, d), p.apply(this, arguments);
|
|
43
|
+
}
|
|
44
|
+
return d.fn = p, this.on(l, d), this;
|
|
45
|
+
}, u.prototype.off = u.prototype.removeListener = u.prototype.removeAllListeners = u.prototype.removeEventListener = function(l, p) {
|
|
46
|
+
if (this._callbacks = this._callbacks || {}, arguments.length == 0)
|
|
47
|
+
return this._callbacks = {}, this;
|
|
48
|
+
var d = this._callbacks["$" + l];
|
|
49
|
+
if (!d)
|
|
50
|
+
return this;
|
|
51
|
+
if (arguments.length == 1)
|
|
52
|
+
return delete this._callbacks["$" + l], this;
|
|
53
|
+
for (var b, w = 0; w < d.length; w++)
|
|
54
|
+
if (b = d[w], b === p || b.fn === p) {
|
|
55
|
+
d.splice(w, 1);
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
return d.length === 0 && delete this._callbacks["$" + l], this;
|
|
59
|
+
}, u.prototype.emit = function(l) {
|
|
60
|
+
this._callbacks = this._callbacks || {};
|
|
61
|
+
for (var p = new Array(arguments.length - 1), d = this._callbacks["$" + l], b = 1; b < arguments.length; b++)
|
|
62
|
+
p[b - 1] = arguments[b];
|
|
63
|
+
if (d) {
|
|
64
|
+
d = d.slice(0);
|
|
65
|
+
for (var b = 0, w = d.length; b < w; ++b)
|
|
66
|
+
d[b].apply(this, p);
|
|
67
|
+
}
|
|
68
|
+
return this;
|
|
69
|
+
}, u.prototype.listeners = function(l) {
|
|
70
|
+
return this._callbacks = this._callbacks || {}, this._callbacks["$" + l] || [];
|
|
71
|
+
}, u.prototype.hasListeners = function(l) {
|
|
72
|
+
return !!this.listeners(l).length;
|
|
73
|
+
};
|
|
74
|
+
})(Ae);
|
|
75
|
+
var $e = Ae.exports, We = H;
|
|
76
|
+
H.default = H;
|
|
77
|
+
H.stable = Ne;
|
|
78
|
+
H.stableStringify = Ne;
|
|
79
|
+
var j = "[...]", ke = "[Circular]", B = [], M = [];
|
|
80
|
+
function Ce() {
|
|
81
|
+
return {
|
|
82
|
+
depthLimit: Number.MAX_SAFE_INTEGER,
|
|
83
|
+
edgesLimit: Number.MAX_SAFE_INTEGER
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function H(i, u, y, l) {
|
|
87
|
+
typeof l > "u" && (l = Ce()), ee(i, "", 0, [], void 0, 0, l);
|
|
88
|
+
var p;
|
|
89
|
+
try {
|
|
90
|
+
M.length === 0 ? p = JSON.stringify(i, u, y) : p = JSON.stringify(i, Re(u), y);
|
|
91
|
+
} catch {
|
|
92
|
+
return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]");
|
|
93
|
+
} finally {
|
|
94
|
+
for (; B.length !== 0; ) {
|
|
95
|
+
var d = B.pop();
|
|
96
|
+
d.length === 4 ? Object.defineProperty(d[0], d[1], d[3]) : d[0][d[1]] = d[2];
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return p;
|
|
100
|
+
}
|
|
101
|
+
function z(i, u, y, l) {
|
|
102
|
+
var p = Object.getOwnPropertyDescriptor(l, y);
|
|
103
|
+
p.get !== void 0 ? p.configurable ? (Object.defineProperty(l, y, { value: i }), B.push([l, y, u, p])) : M.push([u, y, i]) : (l[y] = i, B.push([l, y, u]));
|
|
104
|
+
}
|
|
105
|
+
function ee(i, u, y, l, p, d, b) {
|
|
106
|
+
d += 1;
|
|
107
|
+
var w;
|
|
108
|
+
if (typeof i == "object" && i !== null) {
|
|
109
|
+
for (w = 0; w < l.length; w++)
|
|
110
|
+
if (l[w] === i) {
|
|
111
|
+
z(ke, i, u, p);
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
if (typeof b.depthLimit < "u" && d > b.depthLimit) {
|
|
115
|
+
z(j, i, u, p);
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
if (typeof b.edgesLimit < "u" && y + 1 > b.edgesLimit) {
|
|
119
|
+
z(j, i, u, p);
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
if (l.push(i), Array.isArray(i))
|
|
123
|
+
for (w = 0; w < i.length; w++)
|
|
124
|
+
ee(i[w], w, w, l, i, d, b);
|
|
125
|
+
else {
|
|
126
|
+
var T = Object.keys(i);
|
|
127
|
+
for (w = 0; w < T.length; w++) {
|
|
128
|
+
var S = T[w];
|
|
129
|
+
ee(i[S], S, w, l, i, d, b);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
l.pop();
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
function Ge(i, u) {
|
|
136
|
+
return i < u ? -1 : i > u ? 1 : 0;
|
|
137
|
+
}
|
|
138
|
+
function Ne(i, u, y, l) {
|
|
139
|
+
typeof l > "u" && (l = Ce());
|
|
140
|
+
var p = te(i, "", 0, [], void 0, 0, l) || i, d;
|
|
141
|
+
try {
|
|
142
|
+
M.length === 0 ? d = JSON.stringify(p, u, y) : d = JSON.stringify(p, Re(u), y);
|
|
143
|
+
} catch {
|
|
144
|
+
return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]");
|
|
145
|
+
} finally {
|
|
146
|
+
for (; B.length !== 0; ) {
|
|
147
|
+
var b = B.pop();
|
|
148
|
+
b.length === 4 ? Object.defineProperty(b[0], b[1], b[3]) : b[0][b[1]] = b[2];
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
return d;
|
|
152
|
+
}
|
|
153
|
+
function te(i, u, y, l, p, d, b) {
|
|
154
|
+
d += 1;
|
|
155
|
+
var w;
|
|
156
|
+
if (typeof i == "object" && i !== null) {
|
|
157
|
+
for (w = 0; w < l.length; w++)
|
|
158
|
+
if (l[w] === i) {
|
|
159
|
+
z(ke, i, u, p);
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
try {
|
|
163
|
+
if (typeof i.toJSON == "function")
|
|
164
|
+
return;
|
|
165
|
+
} catch {
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
if (typeof b.depthLimit < "u" && d > b.depthLimit) {
|
|
169
|
+
z(j, i, u, p);
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
if (typeof b.edgesLimit < "u" && y + 1 > b.edgesLimit) {
|
|
173
|
+
z(j, i, u, p);
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
if (l.push(i), Array.isArray(i))
|
|
177
|
+
for (w = 0; w < i.length; w++)
|
|
178
|
+
te(i[w], w, w, l, i, d, b);
|
|
179
|
+
else {
|
|
180
|
+
var T = {}, S = Object.keys(i).sort(Ge);
|
|
181
|
+
for (w = 0; w < S.length; w++) {
|
|
182
|
+
var O = S[w];
|
|
183
|
+
te(i[O], O, w, l, i, d, b), T[O] = i[O];
|
|
184
|
+
}
|
|
185
|
+
if (typeof p < "u")
|
|
186
|
+
B.push([p, u, i]), p[u] = T;
|
|
187
|
+
else
|
|
188
|
+
return T;
|
|
189
|
+
}
|
|
190
|
+
l.pop();
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
function Re(i) {
|
|
194
|
+
return i = typeof i < "u" ? i : function(u, y) {
|
|
195
|
+
return y;
|
|
196
|
+
}, function(u, y) {
|
|
197
|
+
if (M.length > 0)
|
|
198
|
+
for (var l = 0; l < M.length; l++) {
|
|
199
|
+
var p = M[l];
|
|
200
|
+
if (p[1] === u && p[0] === y) {
|
|
201
|
+
y = p[2], M.splice(l, 1);
|
|
202
|
+
break;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
return i.call(this, u, y);
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
function U(i) {
|
|
209
|
+
"@babel/helpers - typeof";
|
|
210
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? U = function(y) {
|
|
211
|
+
return typeof y;
|
|
212
|
+
} : U = function(y) {
|
|
213
|
+
return y && typeof Symbol == "function" && y.constructor === Symbol && y !== Symbol.prototype ? "symbol" : typeof y;
|
|
214
|
+
}, U(i);
|
|
215
|
+
}
|
|
216
|
+
function Ve(i) {
|
|
217
|
+
return i !== null && U(i) === "object";
|
|
218
|
+
}
|
|
219
|
+
var Ie = Ve;
|
|
220
|
+
function K(i) {
|
|
221
|
+
"@babel/helpers - typeof";
|
|
222
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? K = function(y) {
|
|
223
|
+
return typeof y;
|
|
224
|
+
} : K = function(y) {
|
|
225
|
+
return y && typeof Symbol == "function" && y.constructor === Symbol && y !== Symbol.prototype ? "symbol" : typeof y;
|
|
226
|
+
}, K(i);
|
|
227
|
+
}
|
|
228
|
+
var $ = Ie, Xe = E;
|
|
229
|
+
function E(i) {
|
|
230
|
+
if (i)
|
|
231
|
+
return Qe(i);
|
|
232
|
+
}
|
|
233
|
+
function Qe(i) {
|
|
234
|
+
for (var u in E.prototype)
|
|
235
|
+
Object.prototype.hasOwnProperty.call(E.prototype, u) && (i[u] = E.prototype[u]);
|
|
236
|
+
return i;
|
|
237
|
+
}
|
|
238
|
+
E.prototype.clearTimeout = function() {
|
|
239
|
+
return clearTimeout(this._timer), clearTimeout(this._responseTimeoutTimer), clearTimeout(this._uploadTimeoutTimer), delete this._timer, delete this._responseTimeoutTimer, delete this._uploadTimeoutTimer, this;
|
|
240
|
+
};
|
|
241
|
+
E.prototype.parse = function(i) {
|
|
242
|
+
return this._parser = i, this;
|
|
243
|
+
};
|
|
244
|
+
E.prototype.responseType = function(i) {
|
|
245
|
+
return this._responseType = i, this;
|
|
246
|
+
};
|
|
247
|
+
E.prototype.serialize = function(i) {
|
|
248
|
+
return this._serializer = i, this;
|
|
249
|
+
};
|
|
250
|
+
E.prototype.timeout = function(i) {
|
|
251
|
+
if (!i || K(i) !== "object")
|
|
252
|
+
return this._timeout = i, this._responseTimeout = 0, this._uploadTimeout = 0, this;
|
|
253
|
+
for (var u in i)
|
|
254
|
+
if (Object.prototype.hasOwnProperty.call(i, u))
|
|
255
|
+
switch (u) {
|
|
256
|
+
case "deadline":
|
|
257
|
+
this._timeout = i.deadline;
|
|
258
|
+
break;
|
|
259
|
+
case "response":
|
|
260
|
+
this._responseTimeout = i.response;
|
|
261
|
+
break;
|
|
262
|
+
case "upload":
|
|
263
|
+
this._uploadTimeout = i.upload;
|
|
264
|
+
break;
|
|
265
|
+
default:
|
|
266
|
+
console.warn("Unknown timeout option", u);
|
|
267
|
+
}
|
|
268
|
+
return this;
|
|
269
|
+
};
|
|
270
|
+
E.prototype.retry = function(i, u) {
|
|
271
|
+
return (arguments.length === 0 || i === !0) && (i = 1), i <= 0 && (i = 0), this._maxRetries = i, this._retries = 0, this._retryCallback = u, this;
|
|
272
|
+
};
|
|
273
|
+
var Ye = ["ECONNRESET", "ETIMEDOUT", "EADDRINFO", "ESOCKETTIMEDOUT"];
|
|
274
|
+
E.prototype._shouldRetry = function(i, u) {
|
|
275
|
+
if (!this._maxRetries || this._retries++ >= this._maxRetries)
|
|
276
|
+
return !1;
|
|
277
|
+
if (this._retryCallback)
|
|
278
|
+
try {
|
|
279
|
+
var y = this._retryCallback(i, u);
|
|
280
|
+
if (y === !0)
|
|
281
|
+
return !0;
|
|
282
|
+
if (y === !1)
|
|
283
|
+
return !1;
|
|
284
|
+
} catch (l) {
|
|
285
|
+
console.error(l);
|
|
286
|
+
}
|
|
287
|
+
return !!(u && u.status && u.status >= 500 && u.status !== 501 || i && (i.code && Ye.includes(i.code) || i.timeout && i.code === "ECONNABORTED" || i.crossDomain));
|
|
288
|
+
};
|
|
289
|
+
E.prototype._retry = function() {
|
|
290
|
+
return this.clearTimeout(), this.req && (this.req = null, this.req = this.request()), this._aborted = !1, this.timedout = !1, this.timedoutError = null, this._end();
|
|
291
|
+
};
|
|
292
|
+
E.prototype.then = function(i, u) {
|
|
293
|
+
var y = this;
|
|
294
|
+
if (!this._fullfilledPromise) {
|
|
295
|
+
var l = this;
|
|
296
|
+
this._endCalled && console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"), this._fullfilledPromise = new Promise(function(p, d) {
|
|
297
|
+
l.on("abort", function() {
|
|
298
|
+
if (!(y._maxRetries && y._maxRetries > y._retries)) {
|
|
299
|
+
if (y.timedout && y.timedoutError) {
|
|
300
|
+
d(y.timedoutError);
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
var b = new Error("Aborted");
|
|
304
|
+
b.code = "ABORTED", b.status = y.status, b.method = y.method, b.url = y.url, d(b);
|
|
305
|
+
}
|
|
306
|
+
}), l.end(function(b, w) {
|
|
307
|
+
b ? d(b) : p(w);
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
return this._fullfilledPromise.then(i, u);
|
|
312
|
+
};
|
|
313
|
+
E.prototype.catch = function(i) {
|
|
314
|
+
return this.then(void 0, i);
|
|
315
|
+
};
|
|
316
|
+
E.prototype.use = function(i) {
|
|
317
|
+
return i(this), this;
|
|
318
|
+
};
|
|
319
|
+
E.prototype.ok = function(i) {
|
|
320
|
+
if (typeof i != "function")
|
|
321
|
+
throw new Error("Callback required");
|
|
322
|
+
return this._okCallback = i, this;
|
|
323
|
+
};
|
|
324
|
+
E.prototype._isResponseOK = function(i) {
|
|
325
|
+
return i ? this._okCallback ? this._okCallback(i) : i.status >= 200 && i.status < 300 : !1;
|
|
326
|
+
};
|
|
327
|
+
E.prototype.get = function(i) {
|
|
328
|
+
return this._header[i.toLowerCase()];
|
|
329
|
+
};
|
|
330
|
+
E.prototype.getHeader = E.prototype.get;
|
|
331
|
+
E.prototype.set = function(i, u) {
|
|
332
|
+
if ($(i)) {
|
|
333
|
+
for (var y in i)
|
|
334
|
+
Object.prototype.hasOwnProperty.call(i, y) && this.set(y, i[y]);
|
|
335
|
+
return this;
|
|
336
|
+
}
|
|
337
|
+
return this._header[i.toLowerCase()] = u, this.header[i] = u, this;
|
|
338
|
+
};
|
|
339
|
+
E.prototype.unset = function(i) {
|
|
340
|
+
return delete this._header[i.toLowerCase()], delete this.header[i], this;
|
|
341
|
+
};
|
|
342
|
+
E.prototype.field = function(i, u) {
|
|
343
|
+
if (i == null)
|
|
344
|
+
throw new Error(".field(name, val) name can not be empty");
|
|
345
|
+
if (this._data)
|
|
346
|
+
throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");
|
|
347
|
+
if ($(i)) {
|
|
348
|
+
for (var y in i)
|
|
349
|
+
Object.prototype.hasOwnProperty.call(i, y) && this.field(y, i[y]);
|
|
350
|
+
return this;
|
|
351
|
+
}
|
|
352
|
+
if (Array.isArray(u)) {
|
|
353
|
+
for (var l in u)
|
|
354
|
+
Object.prototype.hasOwnProperty.call(u, l) && this.field(i, u[l]);
|
|
355
|
+
return this;
|
|
356
|
+
}
|
|
357
|
+
if (u == null)
|
|
358
|
+
throw new Error(".field(name, val) val can not be empty");
|
|
359
|
+
return typeof u == "boolean" && (u = String(u)), this._getFormData().append(i, u), this;
|
|
360
|
+
};
|
|
361
|
+
E.prototype.abort = function() {
|
|
362
|
+
return this._aborted ? this : (this._aborted = !0, this.xhr && this.xhr.abort(), this.req && this.req.abort(), this.clearTimeout(), this.emit("abort"), this);
|
|
363
|
+
};
|
|
364
|
+
E.prototype._auth = function(i, u, y, l) {
|
|
365
|
+
switch (y.type) {
|
|
366
|
+
case "basic":
|
|
367
|
+
this.set("Authorization", "Basic ".concat(l("".concat(i, ":").concat(u))));
|
|
368
|
+
break;
|
|
369
|
+
case "auto":
|
|
370
|
+
this.username = i, this.password = u;
|
|
371
|
+
break;
|
|
372
|
+
case "bearer":
|
|
373
|
+
this.set("Authorization", "Bearer ".concat(i));
|
|
374
|
+
break;
|
|
375
|
+
}
|
|
376
|
+
return this;
|
|
377
|
+
};
|
|
378
|
+
E.prototype.withCredentials = function(i) {
|
|
379
|
+
return i === void 0 && (i = !0), this._withCredentials = i, this;
|
|
380
|
+
};
|
|
381
|
+
E.prototype.redirects = function(i) {
|
|
382
|
+
return this._maxRedirects = i, this;
|
|
383
|
+
};
|
|
384
|
+
E.prototype.maxResponseSize = function(i) {
|
|
385
|
+
if (typeof i != "number")
|
|
386
|
+
throw new TypeError("Invalid argument");
|
|
387
|
+
return this._maxResponseSize = i, this;
|
|
388
|
+
};
|
|
389
|
+
E.prototype.toJSON = function() {
|
|
390
|
+
return {
|
|
391
|
+
method: this.method,
|
|
392
|
+
url: this.url,
|
|
393
|
+
data: this._data,
|
|
394
|
+
headers: this._header
|
|
395
|
+
};
|
|
396
|
+
};
|
|
397
|
+
E.prototype.send = function(i) {
|
|
398
|
+
var u = $(i), y = this._header["content-type"];
|
|
399
|
+
if (this._formData)
|
|
400
|
+
throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");
|
|
401
|
+
if (u && !this._data)
|
|
402
|
+
Array.isArray(i) ? this._data = [] : this._isHost(i) || (this._data = {});
|
|
403
|
+
else if (i && this._data && this._isHost(this._data))
|
|
404
|
+
throw new Error("Can't merge these send calls");
|
|
405
|
+
if (u && $(this._data))
|
|
406
|
+
for (var l in i)
|
|
407
|
+
Object.prototype.hasOwnProperty.call(i, l) && (this._data[l] = i[l]);
|
|
408
|
+
else
|
|
409
|
+
typeof i == "string" ? (y || this.type("form"), y = this._header["content-type"], y === "application/x-www-form-urlencoded" ? this._data = this._data ? "".concat(this._data, "&").concat(i) : i : this._data = (this._data || "") + i) : this._data = i;
|
|
410
|
+
return !u || this._isHost(i) ? this : (y || this.type("json"), this);
|
|
411
|
+
};
|
|
412
|
+
E.prototype.sortQuery = function(i) {
|
|
413
|
+
return this._sort = typeof i > "u" ? !0 : i, this;
|
|
414
|
+
};
|
|
415
|
+
E.prototype._finalizeQueryString = function() {
|
|
416
|
+
var i = this._query.join("&");
|
|
417
|
+
if (i && (this.url += (this.url.includes("?") ? "&" : "?") + i), this._query.length = 0, this._sort) {
|
|
418
|
+
var u = this.url.indexOf("?");
|
|
419
|
+
if (u >= 0) {
|
|
420
|
+
var y = this.url.slice(u + 1).split("&");
|
|
421
|
+
typeof this._sort == "function" ? y.sort(this._sort) : y.sort(), this.url = this.url.slice(0, u) + "?" + y.join("&");
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
E.prototype._appendQueryString = function() {
|
|
426
|
+
console.warn("Unsupported");
|
|
427
|
+
};
|
|
428
|
+
E.prototype._timeoutError = function(i, u, y) {
|
|
429
|
+
if (!this._aborted) {
|
|
430
|
+
var l = new Error("".concat(i + u, "ms exceeded"));
|
|
431
|
+
l.timeout = u, l.code = "ECONNABORTED", l.errno = y, this.timedout = !0, this.timedoutError = l, this.abort(), this.callback(l);
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
E.prototype._setTimeouts = function() {
|
|
435
|
+
var i = this;
|
|
436
|
+
this._timeout && !this._timer && (this._timer = setTimeout(function() {
|
|
437
|
+
i._timeoutError("Timeout of ", i._timeout, "ETIME");
|
|
438
|
+
}, this._timeout)), this._responseTimeout && !this._responseTimeoutTimer && (this._responseTimeoutTimer = setTimeout(function() {
|
|
439
|
+
i._timeoutError("Response timeout of ", i._responseTimeout, "ETIMEDOUT");
|
|
440
|
+
}, this._responseTimeout));
|
|
441
|
+
};
|
|
442
|
+
var L = {};
|
|
443
|
+
L.type = function(i) {
|
|
444
|
+
return i.split(/ *; */).shift();
|
|
445
|
+
};
|
|
446
|
+
L.params = function(i) {
|
|
447
|
+
return i.split(/ *; */).reduce(function(u, y) {
|
|
448
|
+
var l = y.split(/ *= */), p = l.shift(), d = l.shift();
|
|
449
|
+
return p && d && (u[p] = d), u;
|
|
450
|
+
}, {});
|
|
451
|
+
};
|
|
452
|
+
L.parseLinks = function(i) {
|
|
453
|
+
return i.split(/ *, */).reduce(function(u, y) {
|
|
454
|
+
var l = y.split(/ *; */), p = l[0].slice(1, -1), d = l[1].split(/ *= */)[1].slice(1, -1);
|
|
455
|
+
return u[d] = p, u;
|
|
456
|
+
}, {});
|
|
457
|
+
};
|
|
458
|
+
L.cleanHeader = function(i, u) {
|
|
459
|
+
return delete i["content-type"], delete i["content-length"], delete i["transfer-encoding"], delete i.host, u && (delete i.authorization, delete i.cookie), i;
|
|
460
|
+
};
|
|
461
|
+
var X = L, Ze = x;
|
|
462
|
+
function x(i) {
|
|
463
|
+
if (i)
|
|
464
|
+
return et(i);
|
|
465
|
+
}
|
|
466
|
+
function et(i) {
|
|
467
|
+
for (var u in x.prototype)
|
|
468
|
+
Object.prototype.hasOwnProperty.call(x.prototype, u) && (i[u] = x.prototype[u]);
|
|
469
|
+
return i;
|
|
470
|
+
}
|
|
471
|
+
x.prototype.get = function(i) {
|
|
472
|
+
return this.header[i.toLowerCase()];
|
|
473
|
+
};
|
|
474
|
+
x.prototype._setHeaderProperties = function(i) {
|
|
475
|
+
var u = i["content-type"] || "";
|
|
476
|
+
this.type = X.type(u);
|
|
477
|
+
var y = X.params(u);
|
|
478
|
+
for (var l in y)
|
|
479
|
+
Object.prototype.hasOwnProperty.call(y, l) && (this[l] = y[l]);
|
|
480
|
+
this.links = {};
|
|
481
|
+
try {
|
|
482
|
+
i.link && (this.links = X.parseLinks(i.link));
|
|
483
|
+
} catch {
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
x.prototype._setStatusProperties = function(i) {
|
|
487
|
+
var u = i / 100 | 0;
|
|
488
|
+
this.statusCode = i, this.status = this.statusCode, this.statusType = u, this.info = u === 1, this.ok = u === 2, this.redirect = u === 3, this.clientError = u === 4, this.serverError = u === 5, this.error = u === 4 || u === 5 ? this.toError() : !1, this.created = i === 201, this.accepted = i === 202, this.noContent = i === 204, this.badRequest = i === 400, this.unauthorized = i === 401, this.notAcceptable = i === 406, this.forbidden = i === 403, this.notFound = i === 404, this.unprocessableEntity = i === 422;
|
|
489
|
+
};
|
|
490
|
+
function tt(i) {
|
|
491
|
+
return ot(i) || it(i) || nt(i) || rt();
|
|
492
|
+
}
|
|
493
|
+
function rt() {
|
|
494
|
+
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
495
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
496
|
+
}
|
|
497
|
+
function nt(i, u) {
|
|
498
|
+
if (i) {
|
|
499
|
+
if (typeof i == "string")
|
|
500
|
+
return re(i, u);
|
|
501
|
+
var y = Object.prototype.toString.call(i).slice(8, -1);
|
|
502
|
+
if (y === "Object" && i.constructor && (y = i.constructor.name), y === "Map" || y === "Set")
|
|
503
|
+
return Array.from(i);
|
|
504
|
+
if (y === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))
|
|
505
|
+
return re(i, u);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
function it(i) {
|
|
509
|
+
if (typeof Symbol < "u" && Symbol.iterator in Object(i))
|
|
510
|
+
return Array.from(i);
|
|
511
|
+
}
|
|
512
|
+
function ot(i) {
|
|
513
|
+
if (Array.isArray(i))
|
|
514
|
+
return re(i);
|
|
515
|
+
}
|
|
516
|
+
function re(i, u) {
|
|
517
|
+
(u == null || u > i.length) && (u = i.length);
|
|
518
|
+
for (var y = 0, l = new Array(u); y < u; y++)
|
|
519
|
+
l[y] = i[y];
|
|
520
|
+
return l;
|
|
521
|
+
}
|
|
522
|
+
function ne() {
|
|
523
|
+
this._defaults = [];
|
|
524
|
+
}
|
|
525
|
+
["use", "on", "once", "set", "query", "type", "accept", "auth", "withCredentials", "sortQuery", "retry", "ok", "redirects", "timeout", "buffer", "serialize", "parse", "ca", "key", "pfx", "cert", "disableTLSCerts"].forEach(function(i) {
|
|
526
|
+
ne.prototype[i] = function() {
|
|
527
|
+
for (var u = arguments.length, y = new Array(u), l = 0; l < u; l++)
|
|
528
|
+
y[l] = arguments[l];
|
|
529
|
+
return this._defaults.push({
|
|
530
|
+
fn: i,
|
|
531
|
+
args: y
|
|
532
|
+
}), this;
|
|
533
|
+
};
|
|
534
|
+
});
|
|
535
|
+
ne.prototype._setDefaults = function(i) {
|
|
536
|
+
this._defaults.forEach(function(u) {
|
|
537
|
+
i[u.fn].apply(i, tt(u.args));
|
|
538
|
+
});
|
|
539
|
+
};
|
|
540
|
+
var ut = ne;
|
|
541
|
+
(function(i, u) {
|
|
542
|
+
function y(s) {
|
|
543
|
+
"@babel/helpers - typeof";
|
|
544
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? y = function(m) {
|
|
545
|
+
return typeof m;
|
|
546
|
+
} : y = function(m) {
|
|
547
|
+
return m && typeof Symbol == "function" && m.constructor === Symbol && m !== Symbol.prototype ? "symbol" : typeof m;
|
|
548
|
+
}, y(s);
|
|
549
|
+
}
|
|
550
|
+
var l;
|
|
551
|
+
typeof window < "u" ? l = window : typeof self > "u" ? (console.warn("Using browser-only version of superagent in non-browser environment"), l = void 0) : l = self;
|
|
552
|
+
var p = $e, d = We, b = Xe, w = Ie, T = Ze, S = ut;
|
|
553
|
+
function O() {
|
|
554
|
+
}
|
|
555
|
+
i.exports = function(s, v) {
|
|
556
|
+
return typeof v == "function" ? new u.Request("GET", s).end(v) : arguments.length === 1 ? new u.Request("GET", s) : new u.Request(s, v);
|
|
557
|
+
}, u = i.exports;
|
|
558
|
+
var n = u;
|
|
559
|
+
u.Request = g, n.getXHR = function() {
|
|
560
|
+
if (l.XMLHttpRequest && (!l.location || l.location.protocol !== "file:" || !l.ActiveXObject))
|
|
561
|
+
return new XMLHttpRequest();
|
|
562
|
+
try {
|
|
563
|
+
return new ActiveXObject("Microsoft.XMLHTTP");
|
|
564
|
+
} catch {
|
|
565
|
+
}
|
|
566
|
+
try {
|
|
567
|
+
return new ActiveXObject("Msxml2.XMLHTTP.6.0");
|
|
568
|
+
} catch {
|
|
569
|
+
}
|
|
570
|
+
try {
|
|
571
|
+
return new ActiveXObject("Msxml2.XMLHTTP.3.0");
|
|
572
|
+
} catch {
|
|
573
|
+
}
|
|
574
|
+
try {
|
|
575
|
+
return new ActiveXObject("Msxml2.XMLHTTP");
|
|
576
|
+
} catch {
|
|
577
|
+
}
|
|
578
|
+
throw new Error("Browser-only version of superagent could not find XHR");
|
|
579
|
+
};
|
|
580
|
+
var t = "".trim ? function(s) {
|
|
581
|
+
return s.trim();
|
|
582
|
+
} : function(s) {
|
|
583
|
+
return s.replace(/(^\s*|\s*$)/g, "");
|
|
584
|
+
};
|
|
585
|
+
function r(s) {
|
|
586
|
+
if (!w(s))
|
|
587
|
+
return s;
|
|
588
|
+
var v = [];
|
|
589
|
+
for (var m in s)
|
|
590
|
+
Object.prototype.hasOwnProperty.call(s, m) && e(v, m, s[m]);
|
|
591
|
+
return v.join("&");
|
|
592
|
+
}
|
|
593
|
+
function e(s, v, m) {
|
|
594
|
+
if (m !== void 0) {
|
|
595
|
+
if (m === null) {
|
|
596
|
+
s.push(encodeURI(v));
|
|
597
|
+
return;
|
|
598
|
+
}
|
|
599
|
+
if (Array.isArray(m))
|
|
600
|
+
m.forEach(function(P) {
|
|
601
|
+
e(s, v, P);
|
|
602
|
+
});
|
|
603
|
+
else if (w(m))
|
|
604
|
+
for (var _ in m)
|
|
605
|
+
Object.prototype.hasOwnProperty.call(m, _) && e(s, "".concat(v, "[").concat(_, "]"), m[_]);
|
|
606
|
+
else
|
|
607
|
+
s.push(encodeURI(v) + "=" + encodeURIComponent(m));
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
n.serializeObject = r;
|
|
611
|
+
function o(s) {
|
|
612
|
+
for (var v = {}, m = s.split("&"), _, P, A = 0, C = m.length; A < C; ++A)
|
|
613
|
+
_ = m[A], P = _.indexOf("="), P === -1 ? v[decodeURIComponent(_)] = "" : v[decodeURIComponent(_.slice(0, P))] = decodeURIComponent(_.slice(P + 1));
|
|
614
|
+
return v;
|
|
615
|
+
}
|
|
616
|
+
n.parseString = o, n.types = {
|
|
617
|
+
html: "text/html",
|
|
618
|
+
json: "application/json",
|
|
619
|
+
xml: "text/xml",
|
|
620
|
+
urlencoded: "application/x-www-form-urlencoded",
|
|
621
|
+
form: "application/x-www-form-urlencoded",
|
|
622
|
+
"form-data": "application/x-www-form-urlencoded"
|
|
623
|
+
}, n.serialize = {
|
|
624
|
+
"application/x-www-form-urlencoded": r,
|
|
625
|
+
"application/json": d
|
|
626
|
+
}, n.parse = {
|
|
627
|
+
"application/x-www-form-urlencoded": o,
|
|
628
|
+
"application/json": JSON.parse
|
|
629
|
+
};
|
|
630
|
+
function f(s) {
|
|
631
|
+
for (var v = s.split(/\r?\n/), m = {}, _, P, A, C, k = 0, I = v.length; k < I; ++k)
|
|
632
|
+
P = v[k], _ = P.indexOf(":"), _ !== -1 && (A = P.slice(0, _).toLowerCase(), C = t(P.slice(_ + 1)), m[A] = C);
|
|
633
|
+
return m;
|
|
634
|
+
}
|
|
635
|
+
function a(s) {
|
|
636
|
+
return /[/+]json($|[^-\w])/.test(s);
|
|
637
|
+
}
|
|
638
|
+
function c(s) {
|
|
639
|
+
this.req = s, this.xhr = this.req.xhr, this.text = this.req.method !== "HEAD" && (this.xhr.responseType === "" || this.xhr.responseType === "text") || typeof this.xhr.responseType > "u" ? this.xhr.responseText : null, this.statusText = this.req.xhr.statusText;
|
|
640
|
+
var v = this.xhr.status;
|
|
641
|
+
v === 1223 && (v = 204), this._setStatusProperties(v), this.headers = f(this.xhr.getAllResponseHeaders()), this.header = this.headers, this.header["content-type"] = this.xhr.getResponseHeader("content-type"), this._setHeaderProperties(this.header), this.text === null && s._responseType ? this.body = this.xhr.response : this.body = this.req.method === "HEAD" ? null : this._parseBody(this.text ? this.text : this.xhr.response);
|
|
642
|
+
}
|
|
643
|
+
T(c.prototype), c.prototype._parseBody = function(s) {
|
|
644
|
+
var v = n.parse[this.type];
|
|
645
|
+
return this.req._parser ? this.req._parser(this, s) : (!v && a(this.type) && (v = n.parse["application/json"]), v && s && (s.length > 0 || s instanceof Object) ? v(s) : null);
|
|
646
|
+
}, c.prototype.toError = function() {
|
|
647
|
+
var s = this.req, v = s.method, m = s.url, _ = "cannot ".concat(v, " ").concat(m, " (").concat(this.status, ")"), P = new Error(_);
|
|
648
|
+
return P.status = this.status, P.method = v, P.url = m, P;
|
|
649
|
+
}, n.Response = c;
|
|
650
|
+
function g(s, v) {
|
|
651
|
+
var m = this;
|
|
652
|
+
this._query = this._query || [], this.method = s, this.url = v, this.header = {}, this._header = {}, this.on("end", function() {
|
|
653
|
+
var _ = null, P = null;
|
|
654
|
+
try {
|
|
655
|
+
P = new c(m);
|
|
656
|
+
} catch (C) {
|
|
657
|
+
return _ = new Error("Parser is unable to parse the response"), _.parse = !0, _.original = C, m.xhr ? (_.rawResponse = typeof m.xhr.responseType > "u" ? m.xhr.responseText : m.xhr.response, _.status = m.xhr.status ? m.xhr.status : null, _.statusCode = _.status) : (_.rawResponse = null, _.status = null), m.callback(_);
|
|
658
|
+
}
|
|
659
|
+
m.emit("response", P);
|
|
660
|
+
var A;
|
|
661
|
+
try {
|
|
662
|
+
m._isResponseOK(P) || (A = new Error(P.statusText || P.text || "Unsuccessful HTTP response"));
|
|
663
|
+
} catch (C) {
|
|
664
|
+
A = C;
|
|
665
|
+
}
|
|
666
|
+
A ? (A.original = _, A.response = P, A.status = P.status, m.callback(A, P)) : m.callback(null, P);
|
|
667
|
+
});
|
|
668
|
+
}
|
|
669
|
+
p(g.prototype), b(g.prototype), g.prototype.type = function(s) {
|
|
670
|
+
return this.set("Content-Type", n.types[s] || s), this;
|
|
671
|
+
}, g.prototype.accept = function(s) {
|
|
672
|
+
return this.set("Accept", n.types[s] || s), this;
|
|
673
|
+
}, g.prototype.auth = function(s, v, m) {
|
|
674
|
+
arguments.length === 1 && (v = ""), y(v) === "object" && v !== null && (m = v, v = ""), m || (m = {
|
|
675
|
+
type: typeof btoa == "function" ? "basic" : "auto"
|
|
676
|
+
});
|
|
677
|
+
var _ = function(A) {
|
|
678
|
+
if (typeof btoa == "function")
|
|
679
|
+
return btoa(A);
|
|
680
|
+
throw new Error("Cannot use basic auth, btoa is not a function");
|
|
681
|
+
};
|
|
682
|
+
return this._auth(s, v, m, _);
|
|
683
|
+
}, g.prototype.query = function(s) {
|
|
684
|
+
return typeof s != "string" && (s = r(s)), s && this._query.push(s), this;
|
|
685
|
+
}, g.prototype.attach = function(s, v, m) {
|
|
686
|
+
if (v) {
|
|
687
|
+
if (this._data)
|
|
688
|
+
throw new Error("superagent can't mix .send() and .attach()");
|
|
689
|
+
this._getFormData().append(s, v, m || v.name);
|
|
690
|
+
}
|
|
691
|
+
return this;
|
|
692
|
+
}, g.prototype._getFormData = function() {
|
|
693
|
+
return this._formData || (this._formData = new l.FormData()), this._formData;
|
|
694
|
+
}, g.prototype.callback = function(s, v) {
|
|
695
|
+
if (this._shouldRetry(s, v))
|
|
696
|
+
return this._retry();
|
|
697
|
+
var m = this._callback;
|
|
698
|
+
this.clearTimeout(), s && (this._maxRetries && (s.retries = this._retries - 1), this.emit("error", s)), m(s, v);
|
|
699
|
+
}, g.prototype.crossDomainError = function() {
|
|
700
|
+
var s = new Error(`Request has been terminated
|
|
701
|
+
Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.`);
|
|
702
|
+
s.crossDomain = !0, s.status = this.status, s.method = this.method, s.url = this.url, this.callback(s);
|
|
703
|
+
}, g.prototype.agent = function() {
|
|
704
|
+
return console.warn("This is not supported in browser version of superagent"), this;
|
|
705
|
+
}, g.prototype.ca = g.prototype.agent, g.prototype.buffer = g.prototype.ca, g.prototype.write = function() {
|
|
706
|
+
throw new Error("Streaming is not supported in browser version of superagent");
|
|
707
|
+
}, g.prototype.pipe = g.prototype.write, g.prototype._isHost = function(s) {
|
|
708
|
+
return s && y(s) === "object" && !Array.isArray(s) && Object.prototype.toString.call(s) !== "[object Object]";
|
|
709
|
+
}, g.prototype.end = function(s) {
|
|
710
|
+
this._endCalled && console.warn("Warning: .end() was called twice. This is not supported in superagent"), this._endCalled = !0, this._callback = s || O, this._finalizeQueryString(), this._end();
|
|
711
|
+
}, g.prototype._setUploadTimeout = function() {
|
|
712
|
+
var s = this;
|
|
713
|
+
this._uploadTimeout && !this._uploadTimeoutTimer && (this._uploadTimeoutTimer = setTimeout(function() {
|
|
714
|
+
s._timeoutError("Upload timeout of ", s._uploadTimeout, "ETIMEDOUT");
|
|
715
|
+
}, this._uploadTimeout));
|
|
716
|
+
}, g.prototype._end = function() {
|
|
717
|
+
if (this._aborted)
|
|
718
|
+
return this.callback(new Error("The request has been aborted even before .end() was called"));
|
|
719
|
+
var s = this;
|
|
720
|
+
this.xhr = n.getXHR();
|
|
721
|
+
var v = this.xhr, m = this._formData || this._data;
|
|
722
|
+
this._setTimeouts(), v.onreadystatechange = function() {
|
|
723
|
+
var k = v.readyState;
|
|
724
|
+
if (k >= 2 && s._responseTimeoutTimer && clearTimeout(s._responseTimeoutTimer), k === 4) {
|
|
725
|
+
var I;
|
|
726
|
+
try {
|
|
727
|
+
I = v.status;
|
|
728
|
+
} catch {
|
|
729
|
+
I = 0;
|
|
730
|
+
}
|
|
731
|
+
if (!I)
|
|
732
|
+
return s.timedout || s._aborted ? void 0 : s.crossDomainError();
|
|
733
|
+
s.emit("end");
|
|
734
|
+
}
|
|
735
|
+
};
|
|
736
|
+
var _ = function(I, R) {
|
|
737
|
+
R.total > 0 && (R.percent = R.loaded / R.total * 100, R.percent === 100 && clearTimeout(s._uploadTimeoutTimer)), R.direction = I, s.emit("progress", R);
|
|
738
|
+
};
|
|
739
|
+
if (this.hasListeners("progress"))
|
|
740
|
+
try {
|
|
741
|
+
v.addEventListener("progress", _.bind(null, "download")), v.upload && v.upload.addEventListener("progress", _.bind(null, "upload"));
|
|
742
|
+
} catch {
|
|
743
|
+
}
|
|
744
|
+
v.upload && this._setUploadTimeout();
|
|
745
|
+
try {
|
|
746
|
+
this.username && this.password ? v.open(this.method, this.url, !0, this.username, this.password) : v.open(this.method, this.url, !0);
|
|
747
|
+
} catch (k) {
|
|
748
|
+
return this.callback(k);
|
|
749
|
+
}
|
|
750
|
+
if (this._withCredentials && (v.withCredentials = !0), !this._formData && this.method !== "GET" && this.method !== "HEAD" && typeof m != "string" && !this._isHost(m)) {
|
|
751
|
+
var P = this._header["content-type"], A = this._serializer || n.serialize[P ? P.split(";")[0] : ""];
|
|
752
|
+
!A && a(P) && (A = n.serialize["application/json"]), A && (m = A(m));
|
|
753
|
+
}
|
|
754
|
+
for (var C in this.header)
|
|
755
|
+
this.header[C] !== null && Object.prototype.hasOwnProperty.call(this.header, C) && v.setRequestHeader(C, this.header[C]);
|
|
756
|
+
this._responseType && (v.responseType = this._responseType), this.emit("request", this), v.send(typeof m > "u" ? null : m);
|
|
757
|
+
}, n.agent = function() {
|
|
758
|
+
return new S();
|
|
759
|
+
}, ["GET", "POST", "OPTIONS", "PATCH", "PUT", "DELETE"].forEach(function(s) {
|
|
760
|
+
S.prototype[s.toLowerCase()] = function(v, m) {
|
|
761
|
+
var _ = new n.Request(s, v);
|
|
762
|
+
return this._setDefaults(_), m && _.end(m), _;
|
|
763
|
+
};
|
|
764
|
+
}), S.prototype.del = S.prototype.delete, n.get = function(s, v, m) {
|
|
765
|
+
var _ = n("GET", s);
|
|
766
|
+
return typeof v == "function" && (m = v, v = null), v && _.query(v), m && _.end(m), _;
|
|
767
|
+
}, n.head = function(s, v, m) {
|
|
768
|
+
var _ = n("HEAD", s);
|
|
769
|
+
return typeof v == "function" && (m = v, v = null), v && _.query(v), m && _.end(m), _;
|
|
770
|
+
}, n.options = function(s, v, m) {
|
|
771
|
+
var _ = n("OPTIONS", s);
|
|
772
|
+
return typeof v == "function" && (m = v, v = null), v && _.send(v), m && _.end(m), _;
|
|
773
|
+
};
|
|
774
|
+
function h(s, v, m) {
|
|
775
|
+
var _ = n("DELETE", s);
|
|
776
|
+
return typeof v == "function" && (m = v, v = null), v && _.send(v), m && _.end(m), _;
|
|
777
|
+
}
|
|
778
|
+
n.del = h, n.delete = h, n.patch = function(s, v, m) {
|
|
779
|
+
var _ = n("PATCH", s);
|
|
780
|
+
return typeof v == "function" && (m = v, v = null), v && _.send(v), m && _.end(m), _;
|
|
781
|
+
}, n.post = function(s, v, m) {
|
|
782
|
+
var _ = n("POST", s);
|
|
783
|
+
return typeof v == "function" && (m = v, v = null), v && _.send(v), m && _.end(m), _;
|
|
784
|
+
}, n.put = function(s, v, m) {
|
|
785
|
+
var _ = n("PUT", s);
|
|
786
|
+
return typeof v == "function" && (m = v, v = null), v && _.send(v), m && _.end(m), _;
|
|
787
|
+
};
|
|
788
|
+
})(Z, Z.exports);
|
|
789
|
+
var ft = Z.exports;
|
|
790
|
+
const lt = {}, at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
791
|
+
__proto__: null,
|
|
792
|
+
default: lt
|
|
793
|
+
}, Symbol.toStringTag, { value: "Module" })), we = /* @__PURE__ */ Ue(at);
|
|
794
|
+
(function(i) {
|
|
795
|
+
Object.defineProperty(i, "__esModule", {
|
|
796
|
+
value: !0
|
|
797
|
+
}), i.default = void 0;
|
|
798
|
+
var u = l(ft), y = l(we);
|
|
799
|
+
function l(t) {
|
|
800
|
+
return t && t.__esModule ? t : { default: t };
|
|
801
|
+
}
|
|
802
|
+
function p(t) {
|
|
803
|
+
"@babel/helpers - typeof";
|
|
804
|
+
return p = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
805
|
+
return typeof r;
|
|
806
|
+
} : function(r) {
|
|
807
|
+
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
808
|
+
}, p(t);
|
|
809
|
+
}
|
|
810
|
+
function d(t, r) {
|
|
811
|
+
if (!(t instanceof r))
|
|
812
|
+
throw new TypeError("Cannot call a class as a function");
|
|
813
|
+
}
|
|
814
|
+
function b(t, r) {
|
|
815
|
+
for (var e = 0; e < r.length; e++) {
|
|
816
|
+
var o = r[e];
|
|
817
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, T(o.key), o);
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
function w(t, r, e) {
|
|
821
|
+
return r && b(t.prototype, r), e && b(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
822
|
+
}
|
|
823
|
+
function T(t) {
|
|
824
|
+
var r = S(t, "string");
|
|
825
|
+
return p(r) === "symbol" ? r : String(r);
|
|
826
|
+
}
|
|
827
|
+
function S(t, r) {
|
|
828
|
+
if (p(t) !== "object" || t === null)
|
|
829
|
+
return t;
|
|
830
|
+
var e = t[Symbol.toPrimitive];
|
|
831
|
+
if (e !== void 0) {
|
|
832
|
+
var o = e.call(t, r || "default");
|
|
833
|
+
if (p(o) !== "object")
|
|
834
|
+
return o;
|
|
835
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
836
|
+
}
|
|
837
|
+
return (r === "string" ? String : Number)(t);
|
|
838
|
+
}
|
|
839
|
+
var O = /* @__PURE__ */ function() {
|
|
840
|
+
function t() {
|
|
841
|
+
var r = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "https://api.flyo.cloud/nitro/v1";
|
|
842
|
+
d(this, t), this.basePath = r.replace(/\/+$/, ""), this.authentications = {
|
|
843
|
+
ApiToken: {
|
|
844
|
+
type: "apiKey",
|
|
845
|
+
in: "query",
|
|
846
|
+
name: "token"
|
|
847
|
+
}
|
|
848
|
+
}, this.defaultHeaders = {
|
|
849
|
+
"User-Agent": "OpenAPI-Generator/1.0.0-beta.160/Javascript"
|
|
850
|
+
}, this.timeout = 6e4, this.cache = !0, this.enableCookies = !1, typeof window > "u" && (this.agent = new u.default.agent()), this.requestAgent = null, this.plugins = null;
|
|
851
|
+
}
|
|
852
|
+
return w(t, [{
|
|
853
|
+
key: "paramToString",
|
|
854
|
+
value: function(e) {
|
|
855
|
+
return e == null || e == null ? "" : e instanceof Date ? e.toJSON() : t.canBeJsonified(e) ? JSON.stringify(e) : e.toString();
|
|
856
|
+
}
|
|
857
|
+
/**
|
|
858
|
+
* Returns a boolean indicating if the parameter could be JSON.stringified
|
|
859
|
+
* @param param The actual parameter
|
|
860
|
+
* @returns {Boolean} Flag indicating if <code>param</code> can be JSON.stringified
|
|
861
|
+
*/
|
|
862
|
+
}, {
|
|
863
|
+
key: "buildUrl",
|
|
864
|
+
value: (
|
|
865
|
+
/**
|
|
866
|
+
* Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values.
|
|
867
|
+
* NOTE: query parameters are not handled here.
|
|
868
|
+
* @param {String} path The path to append to the base URL.
|
|
869
|
+
* @param {Object} pathParams The parameter values to append.
|
|
870
|
+
* @param {String} apiBasePath Base path defined in the path, operation level to override the default one
|
|
871
|
+
* @returns {String} The encoded path with parameter values substituted.
|
|
872
|
+
*/
|
|
873
|
+
function(e, o, f) {
|
|
874
|
+
var a = this;
|
|
875
|
+
e.match(/^\//) || (e = "/" + e);
|
|
876
|
+
var c = this.basePath + e;
|
|
877
|
+
return f != null && (c = f + e), c = c.replace(/\{([\w-\.]+)\}/g, function(g, h) {
|
|
878
|
+
var s;
|
|
879
|
+
return o.hasOwnProperty(h) ? s = a.paramToString(o[h]) : s = g, encodeURIComponent(s);
|
|
880
|
+
}), c;
|
|
881
|
+
}
|
|
882
|
+
)
|
|
883
|
+
/**
|
|
884
|
+
* Checks whether the given content type represents JSON.<br>
|
|
885
|
+
* JSON content type examples:<br>
|
|
886
|
+
* <ul>
|
|
887
|
+
* <li>application/json</li>
|
|
888
|
+
* <li>application/json; charset=UTF8</li>
|
|
889
|
+
* <li>APPLICATION/JSON</li>
|
|
890
|
+
* </ul>
|
|
891
|
+
* @param {String} contentType The MIME content type to check.
|
|
892
|
+
* @returns {Boolean} <code>true</code> if <code>contentType</code> represents JSON, otherwise <code>false</code>.
|
|
893
|
+
*/
|
|
894
|
+
}, {
|
|
895
|
+
key: "isJsonMime",
|
|
896
|
+
value: function(e) {
|
|
897
|
+
return !!(e != null && e.match(/^application\/json(;.*)?$/i));
|
|
898
|
+
}
|
|
899
|
+
/**
|
|
900
|
+
* Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first.
|
|
901
|
+
* @param {Array.<String>} contentTypes
|
|
902
|
+
* @returns {String} The chosen content type, preferring JSON.
|
|
903
|
+
*/
|
|
904
|
+
}, {
|
|
905
|
+
key: "jsonPreferredMime",
|
|
906
|
+
value: function(e) {
|
|
907
|
+
for (var o = 0; o < e.length; o++)
|
|
908
|
+
if (this.isJsonMime(e[o]))
|
|
909
|
+
return e[o];
|
|
910
|
+
return e[0];
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
913
|
+
* Checks whether the given parameter value represents file-like content.
|
|
914
|
+
* @param param The parameter to check.
|
|
915
|
+
* @returns {Boolean} <code>true</code> if <code>param</code> represents a file.
|
|
916
|
+
*/
|
|
917
|
+
}, {
|
|
918
|
+
key: "isFileParam",
|
|
919
|
+
value: function(e) {
|
|
920
|
+
if (typeof je == "function") {
|
|
921
|
+
var o;
|
|
922
|
+
try {
|
|
923
|
+
o = we;
|
|
924
|
+
} catch {
|
|
925
|
+
}
|
|
926
|
+
if (o && o.ReadStream && e instanceof o.ReadStream)
|
|
927
|
+
return !0;
|
|
928
|
+
}
|
|
929
|
+
return typeof Buffer == "function" && e instanceof Buffer || typeof Blob == "function" && e instanceof Blob || typeof File == "function" && e instanceof File;
|
|
930
|
+
}
|
|
931
|
+
/**
|
|
932
|
+
* Normalizes parameter values:
|
|
933
|
+
* <ul>
|
|
934
|
+
* <li>remove nils</li>
|
|
935
|
+
* <li>keep files and arrays</li>
|
|
936
|
+
* <li>format to string with `paramToString` for other cases</li>
|
|
937
|
+
* </ul>
|
|
938
|
+
* @param {Object.<String, Object>} params The parameters as object properties.
|
|
939
|
+
* @returns {Object.<String, Object>} normalized parameters.
|
|
940
|
+
*/
|
|
941
|
+
}, {
|
|
942
|
+
key: "normalizeParams",
|
|
943
|
+
value: function(e) {
|
|
944
|
+
var o = {};
|
|
945
|
+
for (var f in e)
|
|
946
|
+
if (e.hasOwnProperty(f) && e[f] != null && e[f] != null) {
|
|
947
|
+
var a = e[f];
|
|
948
|
+
this.isFileParam(a) || Array.isArray(a) ? o[f] = a : o[f] = this.paramToString(a);
|
|
949
|
+
}
|
|
950
|
+
return o;
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* Builds a string representation of an array-type actual parameter, according to the given collection format.
|
|
954
|
+
* @param {Array} param An array parameter.
|
|
955
|
+
* @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy.
|
|
956
|
+
* @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns
|
|
957
|
+
* <code>param</code> as is if <code>collectionFormat</code> is <code>multi</code>.
|
|
958
|
+
*/
|
|
959
|
+
}, {
|
|
960
|
+
key: "buildCollectionParam",
|
|
961
|
+
value: function(e, o) {
|
|
962
|
+
if (e == null)
|
|
963
|
+
return null;
|
|
964
|
+
switch (o) {
|
|
965
|
+
case "csv":
|
|
966
|
+
return e.map(this.paramToString, this).join(",");
|
|
967
|
+
case "ssv":
|
|
968
|
+
return e.map(this.paramToString, this).join(" ");
|
|
969
|
+
case "tsv":
|
|
970
|
+
return e.map(this.paramToString, this).join(" ");
|
|
971
|
+
case "pipes":
|
|
972
|
+
return e.map(this.paramToString, this).join("|");
|
|
973
|
+
case "multi":
|
|
974
|
+
return e.map(this.paramToString, this);
|
|
975
|
+
case "passthrough":
|
|
976
|
+
return e;
|
|
977
|
+
default:
|
|
978
|
+
throw new Error("Unknown collection format: " + o);
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
/**
|
|
982
|
+
* Applies authentication headers to the request.
|
|
983
|
+
* @param {Object} request The request object created by a <code>superagent()</code> call.
|
|
984
|
+
* @param {Array.<String>} authNames An array of authentication method names.
|
|
985
|
+
*/
|
|
986
|
+
}, {
|
|
987
|
+
key: "applyAuthToRequest",
|
|
988
|
+
value: function(e, o) {
|
|
989
|
+
var f = this;
|
|
990
|
+
o.forEach(function(a) {
|
|
991
|
+
var c = f.authentications[a];
|
|
992
|
+
switch (c.type) {
|
|
993
|
+
case "basic":
|
|
994
|
+
(c.username || c.password) && e.auth(c.username || "", c.password || "");
|
|
995
|
+
break;
|
|
996
|
+
case "bearer":
|
|
997
|
+
if (c.accessToken) {
|
|
998
|
+
var g = typeof c.accessToken == "function" ? c.accessToken() : c.accessToken;
|
|
999
|
+
e.set({
|
|
1000
|
+
Authorization: "Bearer " + g
|
|
1001
|
+
});
|
|
1002
|
+
}
|
|
1003
|
+
break;
|
|
1004
|
+
case "apiKey":
|
|
1005
|
+
if (c.apiKey) {
|
|
1006
|
+
var h = {};
|
|
1007
|
+
c.apiKeyPrefix ? h[c.name] = c.apiKeyPrefix + " " + c.apiKey : h[c.name] = c.apiKey, c.in === "header" ? e.set(h) : e.query(h);
|
|
1008
|
+
}
|
|
1009
|
+
break;
|
|
1010
|
+
case "oauth2":
|
|
1011
|
+
c.accessToken && e.set({
|
|
1012
|
+
Authorization: "Bearer " + c.accessToken
|
|
1013
|
+
});
|
|
1014
|
+
break;
|
|
1015
|
+
default:
|
|
1016
|
+
throw new Error("Unknown authentication type: " + c.type);
|
|
1017
|
+
}
|
|
1018
|
+
});
|
|
1019
|
+
}
|
|
1020
|
+
/**
|
|
1021
|
+
* Deserializes an HTTP response body into a value of the specified type.
|
|
1022
|
+
* @param {Object} response A SuperAgent response object.
|
|
1023
|
+
* @param {(String|Array.<String>|Object.<String, Object>|Function)} returnType The type to return. Pass a string for simple types
|
|
1024
|
+
* or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To
|
|
1025
|
+
* return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:
|
|
1026
|
+
* all properties on <code>data<code> will be converted to this type.
|
|
1027
|
+
* @returns A value of the specified type.
|
|
1028
|
+
*/
|
|
1029
|
+
}, {
|
|
1030
|
+
key: "deserialize",
|
|
1031
|
+
value: function(e, o) {
|
|
1032
|
+
if (e == null || o == null || e.status == 204)
|
|
1033
|
+
return null;
|
|
1034
|
+
var f = e.body;
|
|
1035
|
+
return (f == null || p(f) === "object" && typeof f.length > "u" && !Object.keys(f).length) && (f = e.text), t.convertToType(f, o);
|
|
1036
|
+
}
|
|
1037
|
+
/**
|
|
1038
|
+
* Invokes the REST service using the supplied settings and parameters.
|
|
1039
|
+
* @param {String} path The base URL to invoke.
|
|
1040
|
+
* @param {String} httpMethod The HTTP method to use.
|
|
1041
|
+
* @param {Object.<String, String>} pathParams A map of path parameters and their values.
|
|
1042
|
+
* @param {Object.<String, Object>} queryParams A map of query parameters and their values.
|
|
1043
|
+
* @param {Object.<String, Object>} headerParams A map of header parameters and their values.
|
|
1044
|
+
* @param {Object.<String, Object>} formParams A map of form parameters and their values.
|
|
1045
|
+
* @param {Object} bodyParam The value to pass as the request body.
|
|
1046
|
+
* @param {Array.<String>} authNames An array of authentication type names.
|
|
1047
|
+
* @param {Array.<String>} contentTypes An array of request MIME types.
|
|
1048
|
+
* @param {Array.<String>} accepts An array of acceptable response MIME types.
|
|
1049
|
+
* @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the
|
|
1050
|
+
* constructor for a complex type.
|
|
1051
|
+
* @param {String} apiBasePath base path defined in the operation/path level to override the default one
|
|
1052
|
+
* @returns {Promise} A {@link https://www.promisejs.org/|Promise} object.
|
|
1053
|
+
*/
|
|
1054
|
+
}, {
|
|
1055
|
+
key: "callApi",
|
|
1056
|
+
value: function(e, o, f, a, c, g, h, s, v, m, _, P) {
|
|
1057
|
+
var A = this, C = this.buildUrl(e, f, P), k = (0, u.default)(o, C);
|
|
1058
|
+
if (this.plugins !== null)
|
|
1059
|
+
for (var I in this.plugins)
|
|
1060
|
+
this.plugins.hasOwnProperty(I) && k.use(this.plugins[I]);
|
|
1061
|
+
this.applyAuthToRequest(k, s), o.toUpperCase() === "GET" && this.cache === !1 && (a._ = (/* @__PURE__ */ new Date()).getTime()), k.query(this.normalizeParams(a)), k.set(this.defaultHeaders).set(this.normalizeParams(c)), this.requestAgent && k.agent(this.requestAgent), k.timeout(this.timeout);
|
|
1062
|
+
var R = this.jsonPreferredMime(v);
|
|
1063
|
+
if (R && R != "multipart/form-data" && k.type(R), R === "application/x-www-form-urlencoded")
|
|
1064
|
+
k.send(y.default.stringify(this.normalizeParams(g)));
|
|
1065
|
+
else if (R == "multipart/form-data") {
|
|
1066
|
+
var G = this.normalizeParams(g);
|
|
1067
|
+
for (var F in G)
|
|
1068
|
+
if (G.hasOwnProperty(F)) {
|
|
1069
|
+
var J = G[F];
|
|
1070
|
+
this.isFileParam(J) ? k.attach(F, J) : Array.isArray(J) && J.length && this.isFileParam(J[0]) ? J.forEach(function(V) {
|
|
1071
|
+
return k.attach(F, V);
|
|
1072
|
+
}) : k.field(F, J);
|
|
1073
|
+
}
|
|
1074
|
+
} else
|
|
1075
|
+
h != null && (k.header["Content-Type"] || k.type("application/json"), k.send(h));
|
|
1076
|
+
var ge = this.jsonPreferredMime(m);
|
|
1077
|
+
return ge && k.accept(ge), _ === "Blob" ? k.responseType("blob") : _ === "String" && k.responseType("text"), this.enableCookies && (typeof window > "u" ? this.agent._attachCookies(k) : k.withCredentials()), new Promise(function(V, _e) {
|
|
1078
|
+
k.end(function(be, q) {
|
|
1079
|
+
if (be) {
|
|
1080
|
+
var D = {};
|
|
1081
|
+
q && (D.status = q.status, D.statusText = q.statusText, D.body = q.body, D.response = q), D.error = be, _e(D);
|
|
1082
|
+
} else
|
|
1083
|
+
try {
|
|
1084
|
+
var He = A.deserialize(q, _);
|
|
1085
|
+
A.enableCookies && typeof window > "u" && A.agent._saveCookies(q), V({
|
|
1086
|
+
data: He,
|
|
1087
|
+
response: q
|
|
1088
|
+
});
|
|
1089
|
+
} catch (Le) {
|
|
1090
|
+
_e(Le);
|
|
1091
|
+
}
|
|
1092
|
+
});
|
|
1093
|
+
});
|
|
1094
|
+
}
|
|
1095
|
+
/**
|
|
1096
|
+
* Parses an ISO-8601 string representation or epoch representation of a date value.
|
|
1097
|
+
* @param {String} str The date value as a string.
|
|
1098
|
+
* @returns {Date} The parsed date object.
|
|
1099
|
+
*/
|
|
1100
|
+
}, {
|
|
1101
|
+
key: "hostSettings",
|
|
1102
|
+
value: (
|
|
1103
|
+
/**
|
|
1104
|
+
* Gets an array of host settings
|
|
1105
|
+
* @returns An array of host settings
|
|
1106
|
+
*/
|
|
1107
|
+
function() {
|
|
1108
|
+
return [{
|
|
1109
|
+
url: "https://api.flyo.cloud/nitro/{version}",
|
|
1110
|
+
description: "Production Server",
|
|
1111
|
+
variables: {
|
|
1112
|
+
version: {
|
|
1113
|
+
description: "The api version currently supported is `v1`",
|
|
1114
|
+
default_value: "v1"
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
}];
|
|
1118
|
+
}
|
|
1119
|
+
)
|
|
1120
|
+
}, {
|
|
1121
|
+
key: "getBasePathFromSettings",
|
|
1122
|
+
value: function(e) {
|
|
1123
|
+
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = this.hostSettings();
|
|
1124
|
+
if (e < 0 || e >= f.length)
|
|
1125
|
+
throw new Error("Invalid index " + e + " when selecting the host settings. Must be less than " + f.length);
|
|
1126
|
+
var a = f[e], c = a.url;
|
|
1127
|
+
for (var g in a.variables)
|
|
1128
|
+
if (g in o) {
|
|
1129
|
+
var h = a.variables[g];
|
|
1130
|
+
if (!("enum_values" in h) || h.enum_values.includes(o[g]))
|
|
1131
|
+
c = c.replace("{" + g + "}", o[g]);
|
|
1132
|
+
else
|
|
1133
|
+
throw new Error("The variable `" + g + "` in the host URL has invalid value " + o[g] + ". Must be " + a.variables[g].enum_values + ".");
|
|
1134
|
+
} else
|
|
1135
|
+
c = c.replace("{" + g + "}", a.variables[g].default_value);
|
|
1136
|
+
return c;
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1139
|
+
* Constructs a new map or array model from REST data.
|
|
1140
|
+
* @param data {Object|Array} The REST data.
|
|
1141
|
+
* @param obj {Object|Array} The target object or array.
|
|
1142
|
+
*/
|
|
1143
|
+
}], [{
|
|
1144
|
+
key: "canBeJsonified",
|
|
1145
|
+
value: function(e) {
|
|
1146
|
+
if (typeof e != "string" && p(e) !== "object")
|
|
1147
|
+
return !1;
|
|
1148
|
+
try {
|
|
1149
|
+
var o = e.toString();
|
|
1150
|
+
return o === "[object Object]" || o === "[object Array]";
|
|
1151
|
+
} catch {
|
|
1152
|
+
return !1;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
}, {
|
|
1156
|
+
key: "parseDate",
|
|
1157
|
+
value: function(e) {
|
|
1158
|
+
return isNaN(e) ? new Date(e.replace(/(\d)(T)(\d)/i, "$1 $3")) : /* @__PURE__ */ new Date(+e);
|
|
1159
|
+
}
|
|
1160
|
+
/**
|
|
1161
|
+
* Converts a value to the specified type.
|
|
1162
|
+
* @param {(String|Object)} data The data to convert, as a string or object.
|
|
1163
|
+
* @param {(String|Array.<String>|Object.<String, Object>|Function)} type The type to return. Pass a string for simple types
|
|
1164
|
+
* or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To
|
|
1165
|
+
* return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type:
|
|
1166
|
+
* all properties on <code>data<code> will be converted to this type.
|
|
1167
|
+
* @returns An instance of the specified type or null or undefined if data is null or undefined.
|
|
1168
|
+
*/
|
|
1169
|
+
}, {
|
|
1170
|
+
key: "convertToType",
|
|
1171
|
+
value: function(e, o) {
|
|
1172
|
+
if (e == null)
|
|
1173
|
+
return e;
|
|
1174
|
+
switch (o) {
|
|
1175
|
+
case "Boolean":
|
|
1176
|
+
return !!e;
|
|
1177
|
+
case "Integer":
|
|
1178
|
+
return parseInt(e, 10);
|
|
1179
|
+
case "Number":
|
|
1180
|
+
return parseFloat(e);
|
|
1181
|
+
case "String":
|
|
1182
|
+
return String(e);
|
|
1183
|
+
case "Date":
|
|
1184
|
+
return t.parseDate(String(e));
|
|
1185
|
+
case "Blob":
|
|
1186
|
+
return e;
|
|
1187
|
+
default:
|
|
1188
|
+
if (o === Object)
|
|
1189
|
+
return e;
|
|
1190
|
+
if (typeof o.constructFromObject == "function")
|
|
1191
|
+
return o.constructFromObject(e);
|
|
1192
|
+
if (Array.isArray(o)) {
|
|
1193
|
+
var f = o[0];
|
|
1194
|
+
return e.map(function(m) {
|
|
1195
|
+
return t.convertToType(m, f);
|
|
1196
|
+
});
|
|
1197
|
+
} else if (p(o) === "object") {
|
|
1198
|
+
var a, c;
|
|
1199
|
+
for (var g in o)
|
|
1200
|
+
if (o.hasOwnProperty(g)) {
|
|
1201
|
+
a = g, c = o[g];
|
|
1202
|
+
break;
|
|
1203
|
+
}
|
|
1204
|
+
var h = {};
|
|
1205
|
+
for (var g in e)
|
|
1206
|
+
if (e.hasOwnProperty(g)) {
|
|
1207
|
+
var s = t.convertToType(g, a), v = t.convertToType(e[g], c);
|
|
1208
|
+
h[s] = v;
|
|
1209
|
+
}
|
|
1210
|
+
return h;
|
|
1211
|
+
} else
|
|
1212
|
+
return e;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
}, {
|
|
1216
|
+
key: "constructFromObject",
|
|
1217
|
+
value: function(e, o, f) {
|
|
1218
|
+
if (Array.isArray(e))
|
|
1219
|
+
for (var a = 0; a < e.length; a++)
|
|
1220
|
+
e.hasOwnProperty(a) && (o[a] = t.convertToType(e[a], f));
|
|
1221
|
+
else
|
|
1222
|
+
for (var c in e)
|
|
1223
|
+
e.hasOwnProperty(c) && (o[c] = t.convertToType(e[c], f));
|
|
1224
|
+
}
|
|
1225
|
+
}]), t;
|
|
1226
|
+
}();
|
|
1227
|
+
O.CollectionFormatEnum = {
|
|
1228
|
+
/**
|
|
1229
|
+
* Comma-separated values. Value: <code>csv</code>
|
|
1230
|
+
* @const
|
|
1231
|
+
*/
|
|
1232
|
+
CSV: ",",
|
|
1233
|
+
/**
|
|
1234
|
+
* Space-separated values. Value: <code>ssv</code>
|
|
1235
|
+
* @const
|
|
1236
|
+
*/
|
|
1237
|
+
SSV: " ",
|
|
1238
|
+
/**
|
|
1239
|
+
* Tab-separated values. Value: <code>tsv</code>
|
|
1240
|
+
* @const
|
|
1241
|
+
*/
|
|
1242
|
+
TSV: " ",
|
|
1243
|
+
/**
|
|
1244
|
+
* Pipe(|)-separated values. Value: <code>pipes</code>
|
|
1245
|
+
* @const
|
|
1246
|
+
*/
|
|
1247
|
+
PIPES: "|",
|
|
1248
|
+
/**
|
|
1249
|
+
* Native array. Value: <code>multi</code>
|
|
1250
|
+
* @const
|
|
1251
|
+
*/
|
|
1252
|
+
MULTI: "multi"
|
|
1253
|
+
}, O.instance = new O();
|
|
1254
|
+
var n = O;
|
|
1255
|
+
i.default = n;
|
|
1256
|
+
})(N);
|
|
1257
|
+
var Q = {}, Y = {}, Se;
|
|
1258
|
+
function qe() {
|
|
1259
|
+
return Se || (Se = 1, function(i) {
|
|
1260
|
+
Object.defineProperty(i, "__esModule", {
|
|
1261
|
+
value: !0
|
|
1262
|
+
}), i.default = void 0;
|
|
1263
|
+
var u = l(N), y = l(ie());
|
|
1264
|
+
function l(o) {
|
|
1265
|
+
return o && o.__esModule ? o : { default: o };
|
|
1266
|
+
}
|
|
1267
|
+
function p(o) {
|
|
1268
|
+
"@babel/helpers - typeof";
|
|
1269
|
+
return p = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(f) {
|
|
1270
|
+
return typeof f;
|
|
1271
|
+
} : function(f) {
|
|
1272
|
+
return f && typeof Symbol == "function" && f.constructor === Symbol && f !== Symbol.prototype ? "symbol" : typeof f;
|
|
1273
|
+
}, p(o);
|
|
1274
|
+
}
|
|
1275
|
+
function d(o, f) {
|
|
1276
|
+
var a = typeof Symbol < "u" && o[Symbol.iterator] || o["@@iterator"];
|
|
1277
|
+
if (!a) {
|
|
1278
|
+
if (Array.isArray(o) || (a = b(o)) || f && o && typeof o.length == "number") {
|
|
1279
|
+
a && (o = a);
|
|
1280
|
+
var c = 0, g = function() {
|
|
1281
|
+
};
|
|
1282
|
+
return { s: g, n: function() {
|
|
1283
|
+
return c >= o.length ? { done: !0 } : { done: !1, value: o[c++] };
|
|
1284
|
+
}, e: function(_) {
|
|
1285
|
+
throw _;
|
|
1286
|
+
}, f: g };
|
|
1287
|
+
}
|
|
1288
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1289
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1290
|
+
}
|
|
1291
|
+
var h = !0, s = !1, v;
|
|
1292
|
+
return { s: function() {
|
|
1293
|
+
a = a.call(o);
|
|
1294
|
+
}, n: function() {
|
|
1295
|
+
var _ = a.next();
|
|
1296
|
+
return h = _.done, _;
|
|
1297
|
+
}, e: function(_) {
|
|
1298
|
+
s = !0, v = _;
|
|
1299
|
+
}, f: function() {
|
|
1300
|
+
try {
|
|
1301
|
+
!h && a.return != null && a.return();
|
|
1302
|
+
} finally {
|
|
1303
|
+
if (s)
|
|
1304
|
+
throw v;
|
|
1305
|
+
}
|
|
1306
|
+
} };
|
|
1307
|
+
}
|
|
1308
|
+
function b(o, f) {
|
|
1309
|
+
if (o) {
|
|
1310
|
+
if (typeof o == "string")
|
|
1311
|
+
return w(o, f);
|
|
1312
|
+
var a = Object.prototype.toString.call(o).slice(8, -1);
|
|
1313
|
+
if (a === "Object" && o.constructor && (a = o.constructor.name), a === "Map" || a === "Set")
|
|
1314
|
+
return Array.from(o);
|
|
1315
|
+
if (a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))
|
|
1316
|
+
return w(o, f);
|
|
1317
|
+
}
|
|
1318
|
+
}
|
|
1319
|
+
function w(o, f) {
|
|
1320
|
+
(f == null || f > o.length) && (f = o.length);
|
|
1321
|
+
for (var a = 0, c = new Array(f); a < f; a++)
|
|
1322
|
+
c[a] = o[a];
|
|
1323
|
+
return c;
|
|
1324
|
+
}
|
|
1325
|
+
function T(o, f) {
|
|
1326
|
+
if (!(o instanceof f))
|
|
1327
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1328
|
+
}
|
|
1329
|
+
function S(o, f) {
|
|
1330
|
+
for (var a = 0; a < f.length; a++) {
|
|
1331
|
+
var c = f[a];
|
|
1332
|
+
c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(o, n(c.key), c);
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
function O(o, f, a) {
|
|
1336
|
+
return f && S(o.prototype, f), a && S(o, a), Object.defineProperty(o, "prototype", { writable: !1 }), o;
|
|
1337
|
+
}
|
|
1338
|
+
function n(o) {
|
|
1339
|
+
var f = t(o, "string");
|
|
1340
|
+
return p(f) === "symbol" ? f : String(f);
|
|
1341
|
+
}
|
|
1342
|
+
function t(o, f) {
|
|
1343
|
+
if (p(o) !== "object" || o === null)
|
|
1344
|
+
return o;
|
|
1345
|
+
var a = o[Symbol.toPrimitive];
|
|
1346
|
+
if (a !== void 0) {
|
|
1347
|
+
var c = a.call(o, f || "default");
|
|
1348
|
+
if (p(c) !== "object")
|
|
1349
|
+
return c;
|
|
1350
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1351
|
+
}
|
|
1352
|
+
return (f === "string" ? String : Number)(o);
|
|
1353
|
+
}
|
|
1354
|
+
var r = /* @__PURE__ */ function() {
|
|
1355
|
+
function o() {
|
|
1356
|
+
T(this, o), o.initialize(this);
|
|
1357
|
+
}
|
|
1358
|
+
return O(o, null, [{
|
|
1359
|
+
key: "initialize",
|
|
1360
|
+
value: function(a) {
|
|
1361
|
+
}
|
|
1362
|
+
/**
|
|
1363
|
+
* Constructs a <code>BlockSlots</code> from a plain JavaScript object, optionally creating a new instance.
|
|
1364
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
1365
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
1366
|
+
* @param {module:model/BlockSlots} obj Optional instance to populate.
|
|
1367
|
+
* @return {module:model/BlockSlots} The populated <code>BlockSlots</code> instance.
|
|
1368
|
+
*/
|
|
1369
|
+
}, {
|
|
1370
|
+
key: "constructFromObject",
|
|
1371
|
+
value: function(a, c) {
|
|
1372
|
+
return a && (c = c || new o(), a.hasOwnProperty("identifier") && (c.identifier = u.default.convertToType(a.identifier, "String")), a.hasOwnProperty("content") && (c.content = u.default.convertToType(a.content, [y.default]))), c;
|
|
1373
|
+
}
|
|
1374
|
+
/**
|
|
1375
|
+
* Validates the JSON data with respect to <code>BlockSlots</code>.
|
|
1376
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
1377
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>BlockSlots</code>.
|
|
1378
|
+
*/
|
|
1379
|
+
}, {
|
|
1380
|
+
key: "validateJSON",
|
|
1381
|
+
value: function(a) {
|
|
1382
|
+
if (a.identifier && !(typeof a.identifier == "string" || a.identifier instanceof String))
|
|
1383
|
+
throw new Error("Expected the field `identifier` to be a primitive type in the JSON string but got " + a.identifier);
|
|
1384
|
+
if (a.content) {
|
|
1385
|
+
if (!Array.isArray(a.content))
|
|
1386
|
+
throw new Error("Expected the field `content` to be an array in the JSON data but got " + a.content);
|
|
1387
|
+
var c = d(a.content), g;
|
|
1388
|
+
try {
|
|
1389
|
+
for (c.s(); !(g = c.n()).done; ) {
|
|
1390
|
+
var h = g.value;
|
|
1391
|
+
y.default.validateJSON(h);
|
|
1392
|
+
}
|
|
1393
|
+
} catch (s) {
|
|
1394
|
+
c.e(s);
|
|
1395
|
+
} finally {
|
|
1396
|
+
c.f();
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
return !0;
|
|
1400
|
+
}
|
|
1401
|
+
}]), o;
|
|
1402
|
+
}();
|
|
1403
|
+
r.prototype.identifier = void 0, r.prototype.content = void 0;
|
|
1404
|
+
var e = r;
|
|
1405
|
+
i.default = e;
|
|
1406
|
+
}(Y)), Y;
|
|
1407
|
+
}
|
|
1408
|
+
var Oe;
|
|
1409
|
+
function ie() {
|
|
1410
|
+
return Oe || (Oe = 1, function(i) {
|
|
1411
|
+
Object.defineProperty(i, "__esModule", {
|
|
1412
|
+
value: !0
|
|
1413
|
+
}), i.default = void 0;
|
|
1414
|
+
var u = l(N), y = l(qe());
|
|
1415
|
+
function l(t) {
|
|
1416
|
+
return t && t.__esModule ? t : { default: t };
|
|
1417
|
+
}
|
|
1418
|
+
function p(t) {
|
|
1419
|
+
"@babel/helpers - typeof";
|
|
1420
|
+
return p = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
1421
|
+
return typeof r;
|
|
1422
|
+
} : function(r) {
|
|
1423
|
+
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
1424
|
+
}, p(t);
|
|
1425
|
+
}
|
|
1426
|
+
function d(t, r) {
|
|
1427
|
+
if (!(t instanceof r))
|
|
1428
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1429
|
+
}
|
|
1430
|
+
function b(t, r) {
|
|
1431
|
+
for (var e = 0; e < r.length; e++) {
|
|
1432
|
+
var o = r[e];
|
|
1433
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, T(o.key), o);
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
function w(t, r, e) {
|
|
1437
|
+
return r && b(t.prototype, r), e && b(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
1438
|
+
}
|
|
1439
|
+
function T(t) {
|
|
1440
|
+
var r = S(t, "string");
|
|
1441
|
+
return p(r) === "symbol" ? r : String(r);
|
|
1442
|
+
}
|
|
1443
|
+
function S(t, r) {
|
|
1444
|
+
if (p(t) !== "object" || t === null)
|
|
1445
|
+
return t;
|
|
1446
|
+
var e = t[Symbol.toPrimitive];
|
|
1447
|
+
if (e !== void 0) {
|
|
1448
|
+
var o = e.call(t, r || "default");
|
|
1449
|
+
if (p(o) !== "object")
|
|
1450
|
+
return o;
|
|
1451
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1452
|
+
}
|
|
1453
|
+
return (r === "string" ? String : Number)(t);
|
|
1454
|
+
}
|
|
1455
|
+
var O = /* @__PURE__ */ function() {
|
|
1456
|
+
function t() {
|
|
1457
|
+
d(this, t), t.initialize(this);
|
|
1458
|
+
}
|
|
1459
|
+
return w(t, null, [{
|
|
1460
|
+
key: "initialize",
|
|
1461
|
+
value: function(e) {
|
|
1462
|
+
}
|
|
1463
|
+
/**
|
|
1464
|
+
* Constructs a <code>Block</code> from a plain JavaScript object, optionally creating a new instance.
|
|
1465
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
1466
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
1467
|
+
* @param {module:model/Block} obj Optional instance to populate.
|
|
1468
|
+
* @return {module:model/Block} The populated <code>Block</code> instance.
|
|
1469
|
+
*/
|
|
1470
|
+
}, {
|
|
1471
|
+
key: "constructFromObject",
|
|
1472
|
+
value: function(e, o) {
|
|
1473
|
+
return e && (o = o || new t(), e.hasOwnProperty("items") && (o.items = u.default.convertToType(e.items, [Object])), e.hasOwnProperty("content") && (o.content = u.default.convertToType(e.content, Object)), e.hasOwnProperty("config") && (o.config = u.default.convertToType(e.config, Object)), e.hasOwnProperty("identifier") && (o.identifier = u.default.convertToType(e.identifier, "String")), e.hasOwnProperty("uid") && (o.uid = u.default.convertToType(e.uid, "String")), e.hasOwnProperty("component") && (o.component = u.default.convertToType(e.component, "String")), e.hasOwnProperty("slots") && (o.slots = u.default.convertToType(e.slots, {
|
|
1474
|
+
String: y.default
|
|
1475
|
+
}))), o;
|
|
1476
|
+
}
|
|
1477
|
+
/**
|
|
1478
|
+
* Validates the JSON data with respect to <code>Block</code>.
|
|
1479
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
1480
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Block</code>.
|
|
1481
|
+
*/
|
|
1482
|
+
}, {
|
|
1483
|
+
key: "validateJSON",
|
|
1484
|
+
value: function(e) {
|
|
1485
|
+
if (!Array.isArray(e.items))
|
|
1486
|
+
throw new Error("Expected the field `items` to be an array in the JSON data but got " + e.items);
|
|
1487
|
+
if (e.identifier && !(typeof e.identifier == "string" || e.identifier instanceof String))
|
|
1488
|
+
throw new Error("Expected the field `identifier` to be a primitive type in the JSON string but got " + e.identifier);
|
|
1489
|
+
if (e.uid && !(typeof e.uid == "string" || e.uid instanceof String))
|
|
1490
|
+
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + e.uid);
|
|
1491
|
+
if (e.component && !(typeof e.component == "string" || e.component instanceof String))
|
|
1492
|
+
throw new Error("Expected the field `component` to be a primitive type in the JSON string but got " + e.component);
|
|
1493
|
+
return !0;
|
|
1494
|
+
}
|
|
1495
|
+
}]), t;
|
|
1496
|
+
}();
|
|
1497
|
+
O.prototype.items = void 0, O.prototype.content = void 0, O.prototype.config = void 0, O.prototype.identifier = void 0, O.prototype.uid = void 0, O.prototype.component = void 0, O.prototype.slots = void 0;
|
|
1498
|
+
var n = O;
|
|
1499
|
+
i.default = n;
|
|
1500
|
+
}(Q)), Q;
|
|
1501
|
+
}
|
|
1502
|
+
var oe = {}, ue = {}, fe = {};
|
|
1503
|
+
(function(i) {
|
|
1504
|
+
Object.defineProperty(i, "__esModule", {
|
|
1505
|
+
value: !0
|
|
1506
|
+
}), i.default = void 0;
|
|
1507
|
+
var u = y(N);
|
|
1508
|
+
function y(e) {
|
|
1509
|
+
return e && e.__esModule ? e : { default: e };
|
|
1510
|
+
}
|
|
1511
|
+
function l(e) {
|
|
1512
|
+
"@babel/helpers - typeof";
|
|
1513
|
+
return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o) {
|
|
1514
|
+
return typeof o;
|
|
1515
|
+
} : function(o) {
|
|
1516
|
+
return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
1517
|
+
}, l(e);
|
|
1518
|
+
}
|
|
1519
|
+
function p(e, o) {
|
|
1520
|
+
var f = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
1521
|
+
if (!f) {
|
|
1522
|
+
if (Array.isArray(e) || (f = d(e)) || o && e && typeof e.length == "number") {
|
|
1523
|
+
f && (e = f);
|
|
1524
|
+
var a = 0, c = function() {
|
|
1525
|
+
};
|
|
1526
|
+
return { s: c, n: function() {
|
|
1527
|
+
return a >= e.length ? { done: !0 } : { done: !1, value: e[a++] };
|
|
1528
|
+
}, e: function(m) {
|
|
1529
|
+
throw m;
|
|
1530
|
+
}, f: c };
|
|
1531
|
+
}
|
|
1532
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1533
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1534
|
+
}
|
|
1535
|
+
var g = !0, h = !1, s;
|
|
1536
|
+
return { s: function() {
|
|
1537
|
+
f = f.call(e);
|
|
1538
|
+
}, n: function() {
|
|
1539
|
+
var m = f.next();
|
|
1540
|
+
return g = m.done, m;
|
|
1541
|
+
}, e: function(m) {
|
|
1542
|
+
h = !0, s = m;
|
|
1543
|
+
}, f: function() {
|
|
1544
|
+
try {
|
|
1545
|
+
!g && f.return != null && f.return();
|
|
1546
|
+
} finally {
|
|
1547
|
+
if (h)
|
|
1548
|
+
throw s;
|
|
1549
|
+
}
|
|
1550
|
+
} };
|
|
1551
|
+
}
|
|
1552
|
+
function d(e, o) {
|
|
1553
|
+
if (e) {
|
|
1554
|
+
if (typeof e == "string")
|
|
1555
|
+
return b(e, o);
|
|
1556
|
+
var f = Object.prototype.toString.call(e).slice(8, -1);
|
|
1557
|
+
if (f === "Object" && e.constructor && (f = e.constructor.name), f === "Map" || f === "Set")
|
|
1558
|
+
return Array.from(e);
|
|
1559
|
+
if (f === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))
|
|
1560
|
+
return b(e, o);
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
function b(e, o) {
|
|
1564
|
+
(o == null || o > e.length) && (o = e.length);
|
|
1565
|
+
for (var f = 0, a = new Array(o); f < o; f++)
|
|
1566
|
+
a[f] = e[f];
|
|
1567
|
+
return a;
|
|
1568
|
+
}
|
|
1569
|
+
function w(e, o) {
|
|
1570
|
+
if (!(e instanceof o))
|
|
1571
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1572
|
+
}
|
|
1573
|
+
function T(e, o) {
|
|
1574
|
+
for (var f = 0; f < o.length; f++) {
|
|
1575
|
+
var a = o[f];
|
|
1576
|
+
a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, O(a.key), a);
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
function S(e, o, f) {
|
|
1580
|
+
return o && T(e.prototype, o), f && T(e, f), Object.defineProperty(e, "prototype", { writable: !1 }), e;
|
|
1581
|
+
}
|
|
1582
|
+
function O(e) {
|
|
1583
|
+
var o = n(e, "string");
|
|
1584
|
+
return l(o) === "symbol" ? o : String(o);
|
|
1585
|
+
}
|
|
1586
|
+
function n(e, o) {
|
|
1587
|
+
if (l(e) !== "object" || e === null)
|
|
1588
|
+
return e;
|
|
1589
|
+
var f = e[Symbol.toPrimitive];
|
|
1590
|
+
if (f !== void 0) {
|
|
1591
|
+
var a = f.call(e, o || "default");
|
|
1592
|
+
if (l(a) !== "object")
|
|
1593
|
+
return a;
|
|
1594
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1595
|
+
}
|
|
1596
|
+
return (o === "string" ? String : Number)(e);
|
|
1597
|
+
}
|
|
1598
|
+
var t = /* @__PURE__ */ function() {
|
|
1599
|
+
function e() {
|
|
1600
|
+
w(this, e), e.initialize(this);
|
|
1601
|
+
}
|
|
1602
|
+
return S(e, null, [{
|
|
1603
|
+
key: "initialize",
|
|
1604
|
+
value: function(f) {
|
|
1605
|
+
}
|
|
1606
|
+
/**
|
|
1607
|
+
* Constructs a <code>PagesInner</code> from a plain JavaScript object, optionally creating a new instance.
|
|
1608
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
1609
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
1610
|
+
* @param {module:model/PagesInner} obj Optional instance to populate.
|
|
1611
|
+
* @return {module:model/PagesInner} The populated <code>PagesInner</code> instance.
|
|
1612
|
+
*/
|
|
1613
|
+
}, {
|
|
1614
|
+
key: "constructFromObject",
|
|
1615
|
+
value: function(f, a) {
|
|
1616
|
+
return f && (a = a || new e(), f.hasOwnProperty("type") && (a.type = u.default.convertToType(f.type, "String")), f.hasOwnProperty("target") && (a.target = u.default.convertToType(f.target, "String")), f.hasOwnProperty("label") && (a.label = u.default.convertToType(f.label, "String")), f.hasOwnProperty("href") && (a.href = u.default.convertToType(f.href, "String")), f.hasOwnProperty("slug") && (a.slug = u.default.convertToType(f.slug, "String")), f.hasOwnProperty("properties") && (a.properties = u.default.convertToType(f.properties, {
|
|
1617
|
+
String: Object
|
|
1618
|
+
})), f.hasOwnProperty("children") && (a.children = u.default.convertToType(f.children, [e]))), a;
|
|
1619
|
+
}
|
|
1620
|
+
/**
|
|
1621
|
+
* Validates the JSON data with respect to <code>PagesInner</code>.
|
|
1622
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
1623
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>PagesInner</code>.
|
|
1624
|
+
*/
|
|
1625
|
+
}, {
|
|
1626
|
+
key: "validateJSON",
|
|
1627
|
+
value: function(f) {
|
|
1628
|
+
if (f.type && !(typeof f.type == "string" || f.type instanceof String))
|
|
1629
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + f.type);
|
|
1630
|
+
if (f.target && !(typeof f.target == "string" || f.target instanceof String))
|
|
1631
|
+
throw new Error("Expected the field `target` to be a primitive type in the JSON string but got " + f.target);
|
|
1632
|
+
if (f.label && !(typeof f.label == "string" || f.label instanceof String))
|
|
1633
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + f.label);
|
|
1634
|
+
if (f.href && !(typeof f.href == "string" || f.href instanceof String))
|
|
1635
|
+
throw new Error("Expected the field `href` to be a primitive type in the JSON string but got " + f.href);
|
|
1636
|
+
if (f.slug && !(typeof f.slug == "string" || f.slug instanceof String))
|
|
1637
|
+
throw new Error("Expected the field `slug` to be a primitive type in the JSON string but got " + f.slug);
|
|
1638
|
+
if (f.children) {
|
|
1639
|
+
if (!Array.isArray(f.children))
|
|
1640
|
+
throw new Error("Expected the field `children` to be an array in the JSON data but got " + f.children);
|
|
1641
|
+
var a = p(f.children), c;
|
|
1642
|
+
try {
|
|
1643
|
+
for (a.s(); !(c = a.n()).done; ) {
|
|
1644
|
+
var g = c.value;
|
|
1645
|
+
e.validateJSON(g);
|
|
1646
|
+
}
|
|
1647
|
+
} catch (h) {
|
|
1648
|
+
a.e(h);
|
|
1649
|
+
} finally {
|
|
1650
|
+
a.f();
|
|
1651
|
+
}
|
|
1652
|
+
}
|
|
1653
|
+
return !0;
|
|
1654
|
+
}
|
|
1655
|
+
}]), e;
|
|
1656
|
+
}();
|
|
1657
|
+
t.prototype.type = void 0, t.prototype.target = void 0, t.prototype.label = void 0, t.prototype.href = void 0, t.prototype.slug = void 0, t.prototype.properties = void 0, t.prototype.children = void 0;
|
|
1658
|
+
var r = t;
|
|
1659
|
+
i.default = r;
|
|
1660
|
+
})(fe);
|
|
1661
|
+
(function(i) {
|
|
1662
|
+
Object.defineProperty(i, "__esModule", {
|
|
1663
|
+
value: !0
|
|
1664
|
+
}), i.default = void 0;
|
|
1665
|
+
var u = l(N), y = l(fe);
|
|
1666
|
+
function l(o) {
|
|
1667
|
+
return o && o.__esModule ? o : { default: o };
|
|
1668
|
+
}
|
|
1669
|
+
function p(o) {
|
|
1670
|
+
"@babel/helpers - typeof";
|
|
1671
|
+
return p = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(f) {
|
|
1672
|
+
return typeof f;
|
|
1673
|
+
} : function(f) {
|
|
1674
|
+
return f && typeof Symbol == "function" && f.constructor === Symbol && f !== Symbol.prototype ? "symbol" : typeof f;
|
|
1675
|
+
}, p(o);
|
|
1676
|
+
}
|
|
1677
|
+
function d(o, f) {
|
|
1678
|
+
var a = typeof Symbol < "u" && o[Symbol.iterator] || o["@@iterator"];
|
|
1679
|
+
if (!a) {
|
|
1680
|
+
if (Array.isArray(o) || (a = b(o)) || f && o && typeof o.length == "number") {
|
|
1681
|
+
a && (o = a);
|
|
1682
|
+
var c = 0, g = function() {
|
|
1683
|
+
};
|
|
1684
|
+
return { s: g, n: function() {
|
|
1685
|
+
return c >= o.length ? { done: !0 } : { done: !1, value: o[c++] };
|
|
1686
|
+
}, e: function(_) {
|
|
1687
|
+
throw _;
|
|
1688
|
+
}, f: g };
|
|
1689
|
+
}
|
|
1690
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
1691
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1692
|
+
}
|
|
1693
|
+
var h = !0, s = !1, v;
|
|
1694
|
+
return { s: function() {
|
|
1695
|
+
a = a.call(o);
|
|
1696
|
+
}, n: function() {
|
|
1697
|
+
var _ = a.next();
|
|
1698
|
+
return h = _.done, _;
|
|
1699
|
+
}, e: function(_) {
|
|
1700
|
+
s = !0, v = _;
|
|
1701
|
+
}, f: function() {
|
|
1702
|
+
try {
|
|
1703
|
+
!h && a.return != null && a.return();
|
|
1704
|
+
} finally {
|
|
1705
|
+
if (s)
|
|
1706
|
+
throw v;
|
|
1707
|
+
}
|
|
1708
|
+
} };
|
|
1709
|
+
}
|
|
1710
|
+
function b(o, f) {
|
|
1711
|
+
if (o) {
|
|
1712
|
+
if (typeof o == "string")
|
|
1713
|
+
return w(o, f);
|
|
1714
|
+
var a = Object.prototype.toString.call(o).slice(8, -1);
|
|
1715
|
+
if (a === "Object" && o.constructor && (a = o.constructor.name), a === "Map" || a === "Set")
|
|
1716
|
+
return Array.from(o);
|
|
1717
|
+
if (a === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))
|
|
1718
|
+
return w(o, f);
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
function w(o, f) {
|
|
1722
|
+
(f == null || f > o.length) && (f = o.length);
|
|
1723
|
+
for (var a = 0, c = new Array(f); a < f; a++)
|
|
1724
|
+
c[a] = o[a];
|
|
1725
|
+
return c;
|
|
1726
|
+
}
|
|
1727
|
+
function T(o, f) {
|
|
1728
|
+
if (!(o instanceof f))
|
|
1729
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1730
|
+
}
|
|
1731
|
+
function S(o, f) {
|
|
1732
|
+
for (var a = 0; a < f.length; a++) {
|
|
1733
|
+
var c = f[a];
|
|
1734
|
+
c.enumerable = c.enumerable || !1, c.configurable = !0, "value" in c && (c.writable = !0), Object.defineProperty(o, n(c.key), c);
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1737
|
+
function O(o, f, a) {
|
|
1738
|
+
return f && S(o.prototype, f), a && S(o, a), Object.defineProperty(o, "prototype", { writable: !1 }), o;
|
|
1739
|
+
}
|
|
1740
|
+
function n(o) {
|
|
1741
|
+
var f = t(o, "string");
|
|
1742
|
+
return p(f) === "symbol" ? f : String(f);
|
|
1743
|
+
}
|
|
1744
|
+
function t(o, f) {
|
|
1745
|
+
if (p(o) !== "object" || o === null)
|
|
1746
|
+
return o;
|
|
1747
|
+
var a = o[Symbol.toPrimitive];
|
|
1748
|
+
if (a !== void 0) {
|
|
1749
|
+
var c = a.call(o, f || "default");
|
|
1750
|
+
if (p(c) !== "object")
|
|
1751
|
+
return c;
|
|
1752
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1753
|
+
}
|
|
1754
|
+
return (f === "string" ? String : Number)(o);
|
|
1755
|
+
}
|
|
1756
|
+
var r = /* @__PURE__ */ function() {
|
|
1757
|
+
function o() {
|
|
1758
|
+
T(this, o), o.initialize(this);
|
|
1759
|
+
}
|
|
1760
|
+
return O(o, null, [{
|
|
1761
|
+
key: "initialize",
|
|
1762
|
+
value: function(a) {
|
|
1763
|
+
}
|
|
1764
|
+
/**
|
|
1765
|
+
* Constructs a <code>ConfigResponseContainersValue</code> from a plain JavaScript object, optionally creating a new instance.
|
|
1766
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
1767
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
1768
|
+
* @param {module:model/ConfigResponseContainersValue} obj Optional instance to populate.
|
|
1769
|
+
* @return {module:model/ConfigResponseContainersValue} The populated <code>ConfigResponseContainersValue</code> instance.
|
|
1770
|
+
*/
|
|
1771
|
+
}, {
|
|
1772
|
+
key: "constructFromObject",
|
|
1773
|
+
value: function(a, c) {
|
|
1774
|
+
return a && (c = c || new o(), a.hasOwnProperty("items") && (c.items = u.default.convertToType(a.items, [y.default])), a.hasOwnProperty("uid") && (c.uid = u.default.convertToType(a.uid, "String")), a.hasOwnProperty("identifier") && (c.identifier = u.default.convertToType(a.identifier, "String")), a.hasOwnProperty("label") && (c.label = u.default.convertToType(a.label, "String"))), c;
|
|
1775
|
+
}
|
|
1776
|
+
/**
|
|
1777
|
+
* Validates the JSON data with respect to <code>ConfigResponseContainersValue</code>.
|
|
1778
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
1779
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ConfigResponseContainersValue</code>.
|
|
1780
|
+
*/
|
|
1781
|
+
}, {
|
|
1782
|
+
key: "validateJSON",
|
|
1783
|
+
value: function(a) {
|
|
1784
|
+
if (a.items) {
|
|
1785
|
+
if (!Array.isArray(a.items))
|
|
1786
|
+
throw new Error("Expected the field `items` to be an array in the JSON data but got " + a.items);
|
|
1787
|
+
var c = d(a.items), g;
|
|
1788
|
+
try {
|
|
1789
|
+
for (c.s(); !(g = c.n()).done; ) {
|
|
1790
|
+
var h = g.value;
|
|
1791
|
+
y.default.validateJSON(h);
|
|
1792
|
+
}
|
|
1793
|
+
} catch (s) {
|
|
1794
|
+
c.e(s);
|
|
1795
|
+
} finally {
|
|
1796
|
+
c.f();
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
if (a.uid && !(typeof a.uid == "string" || a.uid instanceof String))
|
|
1800
|
+
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + a.uid);
|
|
1801
|
+
if (a.identifier && !(typeof a.identifier == "string" || a.identifier instanceof String))
|
|
1802
|
+
throw new Error("Expected the field `identifier` to be a primitive type in the JSON string but got " + a.identifier);
|
|
1803
|
+
if (a.label && !(typeof a.label == "string" || a.label instanceof String))
|
|
1804
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + a.label);
|
|
1805
|
+
return !0;
|
|
1806
|
+
}
|
|
1807
|
+
}]), o;
|
|
1808
|
+
}();
|
|
1809
|
+
r.prototype.items = void 0, r.prototype.uid = void 0, r.prototype.identifier = void 0, r.prototype.label = void 0;
|
|
1810
|
+
var e = r;
|
|
1811
|
+
i.default = e;
|
|
1812
|
+
})(ue);
|
|
1813
|
+
var le = {};
|
|
1814
|
+
(function(i) {
|
|
1815
|
+
Object.defineProperty(i, "__esModule", {
|
|
1816
|
+
value: !0
|
|
1817
|
+
}), i.default = void 0;
|
|
1818
|
+
var u = y(N);
|
|
1819
|
+
function y(n) {
|
|
1820
|
+
return n && n.__esModule ? n : { default: n };
|
|
1821
|
+
}
|
|
1822
|
+
function l(n) {
|
|
1823
|
+
"@babel/helpers - typeof";
|
|
1824
|
+
return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1825
|
+
return typeof t;
|
|
1826
|
+
} : function(t) {
|
|
1827
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
1828
|
+
}, l(n);
|
|
1829
|
+
}
|
|
1830
|
+
function p(n, t) {
|
|
1831
|
+
if (!(n instanceof t))
|
|
1832
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1833
|
+
}
|
|
1834
|
+
function d(n, t) {
|
|
1835
|
+
for (var r = 0; r < t.length; r++) {
|
|
1836
|
+
var e = t[r];
|
|
1837
|
+
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, w(e.key), e);
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
function b(n, t, r) {
|
|
1841
|
+
return t && d(n.prototype, t), r && d(n, r), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
1842
|
+
}
|
|
1843
|
+
function w(n) {
|
|
1844
|
+
var t = T(n, "string");
|
|
1845
|
+
return l(t) === "symbol" ? t : String(t);
|
|
1846
|
+
}
|
|
1847
|
+
function T(n, t) {
|
|
1848
|
+
if (l(n) !== "object" || n === null)
|
|
1849
|
+
return n;
|
|
1850
|
+
var r = n[Symbol.toPrimitive];
|
|
1851
|
+
if (r !== void 0) {
|
|
1852
|
+
var e = r.call(n, t || "default");
|
|
1853
|
+
if (l(e) !== "object")
|
|
1854
|
+
return e;
|
|
1855
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1856
|
+
}
|
|
1857
|
+
return (t === "string" ? String : Number)(n);
|
|
1858
|
+
}
|
|
1859
|
+
var S = /* @__PURE__ */ function() {
|
|
1860
|
+
function n() {
|
|
1861
|
+
p(this, n), n.initialize(this);
|
|
1862
|
+
}
|
|
1863
|
+
return b(n, null, [{
|
|
1864
|
+
key: "initialize",
|
|
1865
|
+
value: function(r) {
|
|
1866
|
+
}
|
|
1867
|
+
/**
|
|
1868
|
+
* Constructs a <code>ConfigResponseNitro</code> from a plain JavaScript object, optionally creating a new instance.
|
|
1869
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
1870
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
1871
|
+
* @param {module:model/ConfigResponseNitro} obj Optional instance to populate.
|
|
1872
|
+
* @return {module:model/ConfigResponseNitro} The populated <code>ConfigResponseNitro</code> instance.
|
|
1873
|
+
*/
|
|
1874
|
+
}, {
|
|
1875
|
+
key: "constructFromObject",
|
|
1876
|
+
value: function(r, e) {
|
|
1877
|
+
return r && (e = e || new n(), r.hasOwnProperty("domain") && (e.domain = u.default.convertToType(r.domain, "String")), r.hasOwnProperty("slug") && (e.slug = u.default.convertToType(r.slug, "String")), r.hasOwnProperty("version") && (e.version = u.default.convertToType(r.version, "Number")), r.hasOwnProperty("updated_at") && (e.updated_at = u.default.convertToType(r.updated_at, "Number")), r.hasOwnProperty("language") && (e.language = u.default.convertToType(r.language, "String"))), e;
|
|
1878
|
+
}
|
|
1879
|
+
/**
|
|
1880
|
+
* Validates the JSON data with respect to <code>ConfigResponseNitro</code>.
|
|
1881
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
1882
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ConfigResponseNitro</code>.
|
|
1883
|
+
*/
|
|
1884
|
+
}, {
|
|
1885
|
+
key: "validateJSON",
|
|
1886
|
+
value: function(r) {
|
|
1887
|
+
if (r.domain && !(typeof r.domain == "string" || r.domain instanceof String))
|
|
1888
|
+
throw new Error("Expected the field `domain` to be a primitive type in the JSON string but got " + r.domain);
|
|
1889
|
+
if (r.slug && !(typeof r.slug == "string" || r.slug instanceof String))
|
|
1890
|
+
throw new Error("Expected the field `slug` to be a primitive type in the JSON string but got " + r.slug);
|
|
1891
|
+
if (r.language && !(typeof r.language == "string" || r.language instanceof String))
|
|
1892
|
+
throw new Error("Expected the field `language` to be a primitive type in the JSON string but got " + r.language);
|
|
1893
|
+
return !0;
|
|
1894
|
+
}
|
|
1895
|
+
}]), n;
|
|
1896
|
+
}();
|
|
1897
|
+
S.prototype.domain = void 0, S.prototype.slug = void 0, S.prototype.version = void 0, S.prototype.updated_at = void 0, S.prototype.language = void 0;
|
|
1898
|
+
var O = S;
|
|
1899
|
+
i.default = O;
|
|
1900
|
+
})(le);
|
|
1901
|
+
(function(i) {
|
|
1902
|
+
Object.defineProperty(i, "__esModule", {
|
|
1903
|
+
value: !0
|
|
1904
|
+
}), i.default = void 0;
|
|
1905
|
+
var u = p(N), y = p(ue), l = p(le);
|
|
1906
|
+
function p(r) {
|
|
1907
|
+
return r && r.__esModule ? r : { default: r };
|
|
1908
|
+
}
|
|
1909
|
+
function d(r) {
|
|
1910
|
+
"@babel/helpers - typeof";
|
|
1911
|
+
return d = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
1912
|
+
return typeof e;
|
|
1913
|
+
} : function(e) {
|
|
1914
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
1915
|
+
}, d(r);
|
|
1916
|
+
}
|
|
1917
|
+
function b(r, e) {
|
|
1918
|
+
if (!(r instanceof e))
|
|
1919
|
+
throw new TypeError("Cannot call a class as a function");
|
|
1920
|
+
}
|
|
1921
|
+
function w(r, e) {
|
|
1922
|
+
for (var o = 0; o < e.length; o++) {
|
|
1923
|
+
var f = e[o];
|
|
1924
|
+
f.enumerable = f.enumerable || !1, f.configurable = !0, "value" in f && (f.writable = !0), Object.defineProperty(r, S(f.key), f);
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
function T(r, e, o) {
|
|
1928
|
+
return e && w(r.prototype, e), o && w(r, o), Object.defineProperty(r, "prototype", { writable: !1 }), r;
|
|
1929
|
+
}
|
|
1930
|
+
function S(r) {
|
|
1931
|
+
var e = O(r, "string");
|
|
1932
|
+
return d(e) === "symbol" ? e : String(e);
|
|
1933
|
+
}
|
|
1934
|
+
function O(r, e) {
|
|
1935
|
+
if (d(r) !== "object" || r === null)
|
|
1936
|
+
return r;
|
|
1937
|
+
var o = r[Symbol.toPrimitive];
|
|
1938
|
+
if (o !== void 0) {
|
|
1939
|
+
var f = o.call(r, e || "default");
|
|
1940
|
+
if (d(f) !== "object")
|
|
1941
|
+
return f;
|
|
1942
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1943
|
+
}
|
|
1944
|
+
return (e === "string" ? String : Number)(r);
|
|
1945
|
+
}
|
|
1946
|
+
var n = /* @__PURE__ */ function() {
|
|
1947
|
+
function r() {
|
|
1948
|
+
b(this, r), r.initialize(this);
|
|
1949
|
+
}
|
|
1950
|
+
return T(r, null, [{
|
|
1951
|
+
key: "initialize",
|
|
1952
|
+
value: function(o) {
|
|
1953
|
+
}
|
|
1954
|
+
/**
|
|
1955
|
+
* Constructs a <code>ConfigResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
1956
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
1957
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
1958
|
+
* @param {module:model/ConfigResponse} obj Optional instance to populate.
|
|
1959
|
+
* @return {module:model/ConfigResponse} The populated <code>ConfigResponse</code> instance.
|
|
1960
|
+
*/
|
|
1961
|
+
}, {
|
|
1962
|
+
key: "constructFromObject",
|
|
1963
|
+
value: function(o, f) {
|
|
1964
|
+
return o && (f = f || new r(), o.hasOwnProperty("nitro") && (f.nitro = l.default.constructFromObject(o.nitro)), o.hasOwnProperty("pages") && (f.pages = u.default.convertToType(o.pages, ["String"])), o.hasOwnProperty("containers") && (f.containers = u.default.convertToType(o.containers, {
|
|
1965
|
+
String: y.default
|
|
1966
|
+
})), o.hasOwnProperty("globals") && (f.globals = u.default.convertToType(o.globals, Object))), f;
|
|
1967
|
+
}
|
|
1968
|
+
/**
|
|
1969
|
+
* Validates the JSON data with respect to <code>ConfigResponse</code>.
|
|
1970
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
1971
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ConfigResponse</code>.
|
|
1972
|
+
*/
|
|
1973
|
+
}, {
|
|
1974
|
+
key: "validateJSON",
|
|
1975
|
+
value: function(o) {
|
|
1976
|
+
if (o.nitro && l.default.validateJSON(o.nitro), !Array.isArray(o.pages))
|
|
1977
|
+
throw new Error("Expected the field `pages` to be an array in the JSON data but got " + o.pages);
|
|
1978
|
+
return !0;
|
|
1979
|
+
}
|
|
1980
|
+
}]), r;
|
|
1981
|
+
}();
|
|
1982
|
+
n.prototype.nitro = void 0, n.prototype.pages = void 0, n.prototype.containers = void 0, n.prototype.globals = void 0;
|
|
1983
|
+
var t = n;
|
|
1984
|
+
i.default = t;
|
|
1985
|
+
})(oe);
|
|
1986
|
+
var ae = {}, se = {}, ce = {};
|
|
1987
|
+
(function(i) {
|
|
1988
|
+
Object.defineProperty(i, "__esModule", {
|
|
1989
|
+
value: !0
|
|
1990
|
+
}), i.default = void 0;
|
|
1991
|
+
var u = y(N);
|
|
1992
|
+
function y(n) {
|
|
1993
|
+
return n && n.__esModule ? n : { default: n };
|
|
1994
|
+
}
|
|
1995
|
+
function l(n) {
|
|
1996
|
+
"@babel/helpers - typeof";
|
|
1997
|
+
return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
1998
|
+
return typeof t;
|
|
1999
|
+
} : function(t) {
|
|
2000
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2001
|
+
}, l(n);
|
|
2002
|
+
}
|
|
2003
|
+
function p(n, t) {
|
|
2004
|
+
if (!(n instanceof t))
|
|
2005
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2006
|
+
}
|
|
2007
|
+
function d(n, t) {
|
|
2008
|
+
for (var r = 0; r < t.length; r++) {
|
|
2009
|
+
var e = t[r];
|
|
2010
|
+
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, w(e.key), e);
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
function b(n, t, r) {
|
|
2014
|
+
return t && d(n.prototype, t), r && d(n, r), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
2015
|
+
}
|
|
2016
|
+
function w(n) {
|
|
2017
|
+
var t = T(n, "string");
|
|
2018
|
+
return l(t) === "symbol" ? t : String(t);
|
|
2019
|
+
}
|
|
2020
|
+
function T(n, t) {
|
|
2021
|
+
if (l(n) !== "object" || n === null)
|
|
2022
|
+
return n;
|
|
2023
|
+
var r = n[Symbol.toPrimitive];
|
|
2024
|
+
if (r !== void 0) {
|
|
2025
|
+
var e = r.call(n, t || "default");
|
|
2026
|
+
if (l(e) !== "object")
|
|
2027
|
+
return e;
|
|
2028
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2029
|
+
}
|
|
2030
|
+
return (t === "string" ? String : Number)(n);
|
|
2031
|
+
}
|
|
2032
|
+
var S = /* @__PURE__ */ function() {
|
|
2033
|
+
function n() {
|
|
2034
|
+
p(this, n), n.initialize(this);
|
|
2035
|
+
}
|
|
2036
|
+
return b(n, null, [{
|
|
2037
|
+
key: "initialize",
|
|
2038
|
+
value: function(r) {
|
|
2039
|
+
}
|
|
2040
|
+
/**
|
|
2041
|
+
* Constructs a <code>EntityMetric</code> from a plain JavaScript object, optionally creating a new instance.
|
|
2042
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
2043
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2044
|
+
* @param {module:model/EntityMetric} obj Optional instance to populate.
|
|
2045
|
+
* @return {module:model/EntityMetric} The populated <code>EntityMetric</code> instance.
|
|
2046
|
+
*/
|
|
2047
|
+
}, {
|
|
2048
|
+
key: "constructFromObject",
|
|
2049
|
+
value: function(r, e) {
|
|
2050
|
+
return r && (e = e || new n(), r.hasOwnProperty("api") && (e.api = u.default.convertToType(r.api, "String")), r.hasOwnProperty("image") && (e.image = u.default.convertToType(r.image, "String"))), e;
|
|
2051
|
+
}
|
|
2052
|
+
/**
|
|
2053
|
+
* Validates the JSON data with respect to <code>EntityMetric</code>.
|
|
2054
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2055
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>EntityMetric</code>.
|
|
2056
|
+
*/
|
|
2057
|
+
}, {
|
|
2058
|
+
key: "validateJSON",
|
|
2059
|
+
value: function(r) {
|
|
2060
|
+
if (r.api && !(typeof r.api == "string" || r.api instanceof String))
|
|
2061
|
+
throw new Error("Expected the field `api` to be a primitive type in the JSON string but got " + r.api);
|
|
2062
|
+
if (r.image && !(typeof r.image == "string" || r.image instanceof String))
|
|
2063
|
+
throw new Error("Expected the field `image` to be a primitive type in the JSON string but got " + r.image);
|
|
2064
|
+
return !0;
|
|
2065
|
+
}
|
|
2066
|
+
}]), n;
|
|
2067
|
+
}();
|
|
2068
|
+
S.prototype.api = void 0, S.prototype.image = void 0;
|
|
2069
|
+
var O = S;
|
|
2070
|
+
i.default = O;
|
|
2071
|
+
})(ce);
|
|
2072
|
+
(function(i) {
|
|
2073
|
+
Object.defineProperty(i, "__esModule", {
|
|
2074
|
+
value: !0
|
|
2075
|
+
}), i.default = void 0;
|
|
2076
|
+
var u = l(N), y = l(ce);
|
|
2077
|
+
function l(t) {
|
|
2078
|
+
return t && t.__esModule ? t : { default: t };
|
|
2079
|
+
}
|
|
2080
|
+
function p(t) {
|
|
2081
|
+
"@babel/helpers - typeof";
|
|
2082
|
+
return p = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
2083
|
+
return typeof r;
|
|
2084
|
+
} : function(r) {
|
|
2085
|
+
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
2086
|
+
}, p(t);
|
|
2087
|
+
}
|
|
2088
|
+
function d(t, r) {
|
|
2089
|
+
if (!(t instanceof r))
|
|
2090
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2091
|
+
}
|
|
2092
|
+
function b(t, r) {
|
|
2093
|
+
for (var e = 0; e < r.length; e++) {
|
|
2094
|
+
var o = r[e];
|
|
2095
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, T(o.key), o);
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
function w(t, r, e) {
|
|
2099
|
+
return r && b(t.prototype, r), e && b(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
2100
|
+
}
|
|
2101
|
+
function T(t) {
|
|
2102
|
+
var r = S(t, "string");
|
|
2103
|
+
return p(r) === "symbol" ? r : String(r);
|
|
2104
|
+
}
|
|
2105
|
+
function S(t, r) {
|
|
2106
|
+
if (p(t) !== "object" || t === null)
|
|
2107
|
+
return t;
|
|
2108
|
+
var e = t[Symbol.toPrimitive];
|
|
2109
|
+
if (e !== void 0) {
|
|
2110
|
+
var o = e.call(t, r || "default");
|
|
2111
|
+
if (p(o) !== "object")
|
|
2112
|
+
return o;
|
|
2113
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2114
|
+
}
|
|
2115
|
+
return (r === "string" ? String : Number)(t);
|
|
2116
|
+
}
|
|
2117
|
+
var O = /* @__PURE__ */ function() {
|
|
2118
|
+
function t() {
|
|
2119
|
+
d(this, t), t.initialize(this);
|
|
2120
|
+
}
|
|
2121
|
+
return w(t, null, [{
|
|
2122
|
+
key: "initialize",
|
|
2123
|
+
value: function(e) {
|
|
2124
|
+
}
|
|
2125
|
+
/**
|
|
2126
|
+
* Constructs a <code>EntityInterface</code> from a plain JavaScript object, optionally creating a new instance.
|
|
2127
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
2128
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2129
|
+
* @param {module:model/EntityInterface} obj Optional instance to populate.
|
|
2130
|
+
* @return {module:model/EntityInterface} The populated <code>EntityInterface</code> instance.
|
|
2131
|
+
*/
|
|
2132
|
+
}, {
|
|
2133
|
+
key: "constructFromObject",
|
|
2134
|
+
value: function(e, o) {
|
|
2135
|
+
return e && (o = o || new t(), e.hasOwnProperty("_version") && (o._version = u.default.convertToType(e._version, "Number")), e.hasOwnProperty("entity_metric") && (o.entity_metric = y.default.constructFromObject(e.entity_metric)), e.hasOwnProperty("entity_unique_id") && (o.entity_unique_id = u.default.convertToType(e.entity_unique_id, "String")), e.hasOwnProperty("entity_id") && (o.entity_id = u.default.convertToType(e.entity_id, "String")), e.hasOwnProperty("entity_image") && (o.entity_image = u.default.convertToType(e.entity_image, "String")), e.hasOwnProperty("entity_slug") && (o.entity_slug = u.default.convertToType(e.entity_slug, "String")), e.hasOwnProperty("entity_teaser") && (o.entity_teaser = u.default.convertToType(e.entity_teaser, "String")), e.hasOwnProperty("entity_time_end") && (o.entity_time_end = u.default.convertToType(e.entity_time_end, "String")), e.hasOwnProperty("entity_time_start") && (o.entity_time_start = u.default.convertToType(e.entity_time_start, "String")), e.hasOwnProperty("entity_title") && (o.entity_title = u.default.convertToType(e.entity_title, "String")), e.hasOwnProperty("entity_type") && (o.entity_type = u.default.convertToType(e.entity_type, "String")), e.hasOwnProperty("entity_type_id") && (o.entity_type_id = u.default.convertToType(e.entity_type_id, "Number")), e.hasOwnProperty("updated_at") && (o.updated_at = u.default.convertToType(e.updated_at, "String")), e.hasOwnProperty("routes") && (o.routes = u.default.convertToType(e.routes, {
|
|
2136
|
+
String: "String"
|
|
2137
|
+
}))), o;
|
|
2138
|
+
}
|
|
2139
|
+
/**
|
|
2140
|
+
* Validates the JSON data with respect to <code>EntityInterface</code>.
|
|
2141
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2142
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>EntityInterface</code>.
|
|
2143
|
+
*/
|
|
2144
|
+
}, {
|
|
2145
|
+
key: "validateJSON",
|
|
2146
|
+
value: function(e) {
|
|
2147
|
+
if (e.entity_metric && y.default.validateJSON(e.entity_metric), e.entity_unique_id && !(typeof e.entity_unique_id == "string" || e.entity_unique_id instanceof String))
|
|
2148
|
+
throw new Error("Expected the field `entity_unique_id` to be a primitive type in the JSON string but got " + e.entity_unique_id);
|
|
2149
|
+
if (e.entity_id && !(typeof e.entity_id == "string" || e.entity_id instanceof String))
|
|
2150
|
+
throw new Error("Expected the field `entity_id` to be a primitive type in the JSON string but got " + e.entity_id);
|
|
2151
|
+
if (e.entity_image && !(typeof e.entity_image == "string" || e.entity_image instanceof String))
|
|
2152
|
+
throw new Error("Expected the field `entity_image` to be a primitive type in the JSON string but got " + e.entity_image);
|
|
2153
|
+
if (e.entity_slug && !(typeof e.entity_slug == "string" || e.entity_slug instanceof String))
|
|
2154
|
+
throw new Error("Expected the field `entity_slug` to be a primitive type in the JSON string but got " + e.entity_slug);
|
|
2155
|
+
if (e.entity_teaser && !(typeof e.entity_teaser == "string" || e.entity_teaser instanceof String))
|
|
2156
|
+
throw new Error("Expected the field `entity_teaser` to be a primitive type in the JSON string but got " + e.entity_teaser);
|
|
2157
|
+
if (e.entity_time_end && !(typeof e.entity_time_end == "string" || e.entity_time_end instanceof String))
|
|
2158
|
+
throw new Error("Expected the field `entity_time_end` to be a primitive type in the JSON string but got " + e.entity_time_end);
|
|
2159
|
+
if (e.entity_time_start && !(typeof e.entity_time_start == "string" || e.entity_time_start instanceof String))
|
|
2160
|
+
throw new Error("Expected the field `entity_time_start` to be a primitive type in the JSON string but got " + e.entity_time_start);
|
|
2161
|
+
if (e.entity_title && !(typeof e.entity_title == "string" || e.entity_title instanceof String))
|
|
2162
|
+
throw new Error("Expected the field `entity_title` to be a primitive type in the JSON string but got " + e.entity_title);
|
|
2163
|
+
if (e.entity_type && !(typeof e.entity_type == "string" || e.entity_type instanceof String))
|
|
2164
|
+
throw new Error("Expected the field `entity_type` to be a primitive type in the JSON string but got " + e.entity_type);
|
|
2165
|
+
if (e.updated_at && !(typeof e.updated_at == "string" || e.updated_at instanceof String))
|
|
2166
|
+
throw new Error("Expected the field `updated_at` to be a primitive type in the JSON string but got " + e.updated_at);
|
|
2167
|
+
return !0;
|
|
2168
|
+
}
|
|
2169
|
+
}]), t;
|
|
2170
|
+
}();
|
|
2171
|
+
O.prototype._version = void 0, O.prototype.entity_metric = void 0, O.prototype.entity_unique_id = void 0, O.prototype.entity_id = void 0, O.prototype.entity_image = void 0, O.prototype.entity_slug = void 0, O.prototype.entity_teaser = void 0, O.prototype.entity_time_end = void 0, O.prototype.entity_time_start = void 0, O.prototype.entity_title = void 0, O.prototype.entity_type = void 0, O.prototype.entity_type_id = void 0, O.prototype.updated_at = void 0, O.prototype.routes = void 0;
|
|
2172
|
+
var n = O;
|
|
2173
|
+
i.default = n;
|
|
2174
|
+
})(se);
|
|
2175
|
+
(function(i) {
|
|
2176
|
+
Object.defineProperty(i, "__esModule", {
|
|
2177
|
+
value: !0
|
|
2178
|
+
}), i.default = void 0;
|
|
2179
|
+
var u = l(N), y = l(se);
|
|
2180
|
+
function l(t) {
|
|
2181
|
+
return t && t.__esModule ? t : { default: t };
|
|
2182
|
+
}
|
|
2183
|
+
function p(t) {
|
|
2184
|
+
"@babel/helpers - typeof";
|
|
2185
|
+
return p = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
2186
|
+
return typeof r;
|
|
2187
|
+
} : function(r) {
|
|
2188
|
+
return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
2189
|
+
}, p(t);
|
|
2190
|
+
}
|
|
2191
|
+
function d(t, r) {
|
|
2192
|
+
if (!(t instanceof r))
|
|
2193
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2194
|
+
}
|
|
2195
|
+
function b(t, r) {
|
|
2196
|
+
for (var e = 0; e < r.length; e++) {
|
|
2197
|
+
var o = r[e];
|
|
2198
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(t, T(o.key), o);
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
function w(t, r, e) {
|
|
2202
|
+
return r && b(t.prototype, r), e && b(t, e), Object.defineProperty(t, "prototype", { writable: !1 }), t;
|
|
2203
|
+
}
|
|
2204
|
+
function T(t) {
|
|
2205
|
+
var r = S(t, "string");
|
|
2206
|
+
return p(r) === "symbol" ? r : String(r);
|
|
2207
|
+
}
|
|
2208
|
+
function S(t, r) {
|
|
2209
|
+
if (p(t) !== "object" || t === null)
|
|
2210
|
+
return t;
|
|
2211
|
+
var e = t[Symbol.toPrimitive];
|
|
2212
|
+
if (e !== void 0) {
|
|
2213
|
+
var o = e.call(t, r || "default");
|
|
2214
|
+
if (p(o) !== "object")
|
|
2215
|
+
return o;
|
|
2216
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2217
|
+
}
|
|
2218
|
+
return (r === "string" ? String : Number)(t);
|
|
2219
|
+
}
|
|
2220
|
+
var O = /* @__PURE__ */ function() {
|
|
2221
|
+
function t() {
|
|
2222
|
+
d(this, t), t.initialize(this);
|
|
2223
|
+
}
|
|
2224
|
+
return w(t, null, [{
|
|
2225
|
+
key: "initialize",
|
|
2226
|
+
value: function(e) {
|
|
2227
|
+
}
|
|
2228
|
+
/**
|
|
2229
|
+
* Constructs a <code>Entity</code> from a plain JavaScript object, optionally creating a new instance.
|
|
2230
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
2231
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2232
|
+
* @param {module:model/Entity} obj Optional instance to populate.
|
|
2233
|
+
* @return {module:model/Entity} The populated <code>Entity</code> instance.
|
|
2234
|
+
*/
|
|
2235
|
+
}, {
|
|
2236
|
+
key: "constructFromObject",
|
|
2237
|
+
value: function(e, o) {
|
|
2238
|
+
return e && (o = o || new t(), e.hasOwnProperty("entity") && (o.entity = y.default.constructFromObject(e.entity)), e.hasOwnProperty("model") && (o.model = u.default.convertToType(e.model, Object)), e.hasOwnProperty("language") && (o.language = u.default.convertToType(e.language, "String"))), o;
|
|
2239
|
+
}
|
|
2240
|
+
/**
|
|
2241
|
+
* Validates the JSON data with respect to <code>Entity</code>.
|
|
2242
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2243
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Entity</code>.
|
|
2244
|
+
*/
|
|
2245
|
+
}, {
|
|
2246
|
+
key: "validateJSON",
|
|
2247
|
+
value: function(e) {
|
|
2248
|
+
if (e.entity && y.default.validateJSON(e.entity), e.language && !(typeof e.language == "string" || e.language instanceof String))
|
|
2249
|
+
throw new Error("Expected the field `language` to be a primitive type in the JSON string but got " + e.language);
|
|
2250
|
+
return !0;
|
|
2251
|
+
}
|
|
2252
|
+
}]), t;
|
|
2253
|
+
}();
|
|
2254
|
+
O.prototype.entity = void 0, O.prototype.model = void 0, O.prototype.language = void 0;
|
|
2255
|
+
var n = O;
|
|
2256
|
+
i.default = n;
|
|
2257
|
+
})(ae);
|
|
2258
|
+
var W = {};
|
|
2259
|
+
(function(i) {
|
|
2260
|
+
Object.defineProperty(i, "__esModule", {
|
|
2261
|
+
value: !0
|
|
2262
|
+
}), i.default = void 0;
|
|
2263
|
+
var u = y(N);
|
|
2264
|
+
function y(n) {
|
|
2265
|
+
return n && n.__esModule ? n : { default: n };
|
|
2266
|
+
}
|
|
2267
|
+
function l(n) {
|
|
2268
|
+
"@babel/helpers - typeof";
|
|
2269
|
+
return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2270
|
+
return typeof t;
|
|
2271
|
+
} : function(t) {
|
|
2272
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2273
|
+
}, l(n);
|
|
2274
|
+
}
|
|
2275
|
+
function p(n, t) {
|
|
2276
|
+
if (!(n instanceof t))
|
|
2277
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2278
|
+
}
|
|
2279
|
+
function d(n, t) {
|
|
2280
|
+
for (var r = 0; r < t.length; r++) {
|
|
2281
|
+
var e = t[r];
|
|
2282
|
+
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, w(e.key), e);
|
|
2283
|
+
}
|
|
2284
|
+
}
|
|
2285
|
+
function b(n, t, r) {
|
|
2286
|
+
return t && d(n.prototype, t), r && d(n, r), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
2287
|
+
}
|
|
2288
|
+
function w(n) {
|
|
2289
|
+
var t = T(n, "string");
|
|
2290
|
+
return l(t) === "symbol" ? t : String(t);
|
|
2291
|
+
}
|
|
2292
|
+
function T(n, t) {
|
|
2293
|
+
if (l(n) !== "object" || n === null)
|
|
2294
|
+
return n;
|
|
2295
|
+
var r = n[Symbol.toPrimitive];
|
|
2296
|
+
if (r !== void 0) {
|
|
2297
|
+
var e = r.call(n, t || "default");
|
|
2298
|
+
if (l(e) !== "object")
|
|
2299
|
+
return e;
|
|
2300
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2301
|
+
}
|
|
2302
|
+
return (t === "string" ? String : Number)(n);
|
|
2303
|
+
}
|
|
2304
|
+
var S = /* @__PURE__ */ function() {
|
|
2305
|
+
function n() {
|
|
2306
|
+
p(this, n), n.initialize(this);
|
|
2307
|
+
}
|
|
2308
|
+
return b(n, null, [{
|
|
2309
|
+
key: "initialize",
|
|
2310
|
+
value: function(r) {
|
|
2311
|
+
}
|
|
2312
|
+
/**
|
|
2313
|
+
* Constructs a <code>EntityinterfaceInner</code> from a plain JavaScript object, optionally creating a new instance.
|
|
2314
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
2315
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2316
|
+
* @param {module:model/EntityinterfaceInner} obj Optional instance to populate.
|
|
2317
|
+
* @return {module:model/EntityinterfaceInner} The populated <code>EntityinterfaceInner</code> instance.
|
|
2318
|
+
*/
|
|
2319
|
+
}, {
|
|
2320
|
+
key: "constructFromObject",
|
|
2321
|
+
value: function(r, e) {
|
|
2322
|
+
return r && (e = e || new n(), r.hasOwnProperty("entity_unique_id") && (e.entity_unique_id = u.default.convertToType(r.entity_unique_id, "String")), r.hasOwnProperty("entity_title") && (e.entity_title = u.default.convertToType(r.entity_title, "String")), r.hasOwnProperty("entity_teaser") && (e.entity_teaser = u.default.convertToType(r.entity_teaser, "String")), r.hasOwnProperty("entity_slug") && (e.entity_slug = u.default.convertToType(r.entity_slug, "String")), r.hasOwnProperty("entity_type") && (e.entity_type = u.default.convertToType(r.entity_type, "String")), r.hasOwnProperty("entity_type_id") && (e.entity_type_id = u.default.convertToType(r.entity_type_id, "Number")), r.hasOwnProperty("entity_time_start") && (e.entity_time_start = u.default.convertToType(r.entity_time_start, "String")), r.hasOwnProperty("entity_image") && (e.entity_image = u.default.convertToType(r.entity_image, "String")), r.hasOwnProperty("routes") && (e.routes = u.default.convertToType(r.routes, {
|
|
2323
|
+
String: "String"
|
|
2324
|
+
}))), e;
|
|
2325
|
+
}
|
|
2326
|
+
/**
|
|
2327
|
+
* Validates the JSON data with respect to <code>EntityinterfaceInner</code>.
|
|
2328
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2329
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>EntityinterfaceInner</code>.
|
|
2330
|
+
*/
|
|
2331
|
+
}, {
|
|
2332
|
+
key: "validateJSON",
|
|
2333
|
+
value: function(r) {
|
|
2334
|
+
if (r.entity_unique_id && !(typeof r.entity_unique_id == "string" || r.entity_unique_id instanceof String))
|
|
2335
|
+
throw new Error("Expected the field `entity_unique_id` to be a primitive type in the JSON string but got " + r.entity_unique_id);
|
|
2336
|
+
if (r.entity_title && !(typeof r.entity_title == "string" || r.entity_title instanceof String))
|
|
2337
|
+
throw new Error("Expected the field `entity_title` to be a primitive type in the JSON string but got " + r.entity_title);
|
|
2338
|
+
if (r.entity_teaser && !(typeof r.entity_teaser == "string" || r.entity_teaser instanceof String))
|
|
2339
|
+
throw new Error("Expected the field `entity_teaser` to be a primitive type in the JSON string but got " + r.entity_teaser);
|
|
2340
|
+
if (r.entity_slug && !(typeof r.entity_slug == "string" || r.entity_slug instanceof String))
|
|
2341
|
+
throw new Error("Expected the field `entity_slug` to be a primitive type in the JSON string but got " + r.entity_slug);
|
|
2342
|
+
if (r.entity_type && !(typeof r.entity_type == "string" || r.entity_type instanceof String))
|
|
2343
|
+
throw new Error("Expected the field `entity_type` to be a primitive type in the JSON string but got " + r.entity_type);
|
|
2344
|
+
if (r.entity_time_start && !(typeof r.entity_time_start == "string" || r.entity_time_start instanceof String))
|
|
2345
|
+
throw new Error("Expected the field `entity_time_start` to be a primitive type in the JSON string but got " + r.entity_time_start);
|
|
2346
|
+
if (r.entity_image && !(typeof r.entity_image == "string" || r.entity_image instanceof String))
|
|
2347
|
+
throw new Error("Expected the field `entity_image` to be a primitive type in the JSON string but got " + r.entity_image);
|
|
2348
|
+
return !0;
|
|
2349
|
+
}
|
|
2350
|
+
}]), n;
|
|
2351
|
+
}();
|
|
2352
|
+
S.prototype.entity_unique_id = void 0, S.prototype.entity_title = void 0, S.prototype.entity_teaser = void 0, S.prototype.entity_slug = void 0, S.prototype.entity_type = void 0, S.prototype.entity_type_id = void 0, S.prototype.entity_time_start = void 0, S.prototype.entity_image = void 0, S.prototype.routes = void 0;
|
|
2353
|
+
var O = S;
|
|
2354
|
+
i.default = O;
|
|
2355
|
+
})(W);
|
|
2356
|
+
var ye = {};
|
|
2357
|
+
(function(i) {
|
|
2358
|
+
Object.defineProperty(i, "__esModule", {
|
|
2359
|
+
value: !0
|
|
2360
|
+
}), i.default = void 0;
|
|
2361
|
+
var u = y(N);
|
|
2362
|
+
function y(n) {
|
|
2363
|
+
return n && n.__esModule ? n : { default: n };
|
|
2364
|
+
}
|
|
2365
|
+
function l(n) {
|
|
2366
|
+
"@babel/helpers - typeof";
|
|
2367
|
+
return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2368
|
+
return typeof t;
|
|
2369
|
+
} : function(t) {
|
|
2370
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2371
|
+
}, l(n);
|
|
2372
|
+
}
|
|
2373
|
+
function p(n, t) {
|
|
2374
|
+
if (!(n instanceof t))
|
|
2375
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2376
|
+
}
|
|
2377
|
+
function d(n, t) {
|
|
2378
|
+
for (var r = 0; r < t.length; r++) {
|
|
2379
|
+
var e = t[r];
|
|
2380
|
+
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, w(e.key), e);
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
function b(n, t, r) {
|
|
2384
|
+
return t && d(n.prototype, t), r && d(n, r), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
2385
|
+
}
|
|
2386
|
+
function w(n) {
|
|
2387
|
+
var t = T(n, "string");
|
|
2388
|
+
return l(t) === "symbol" ? t : String(t);
|
|
2389
|
+
}
|
|
2390
|
+
function T(n, t) {
|
|
2391
|
+
if (l(n) !== "object" || n === null)
|
|
2392
|
+
return n;
|
|
2393
|
+
var r = n[Symbol.toPrimitive];
|
|
2394
|
+
if (r !== void 0) {
|
|
2395
|
+
var e = r.call(n, t || "default");
|
|
2396
|
+
if (l(e) !== "object")
|
|
2397
|
+
return e;
|
|
2398
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2399
|
+
}
|
|
2400
|
+
return (t === "string" ? String : Number)(n);
|
|
2401
|
+
}
|
|
2402
|
+
var S = /* @__PURE__ */ function() {
|
|
2403
|
+
function n() {
|
|
2404
|
+
p(this, n), n.initialize(this);
|
|
2405
|
+
}
|
|
2406
|
+
return b(n, null, [{
|
|
2407
|
+
key: "initialize",
|
|
2408
|
+
value: function(r) {
|
|
2409
|
+
}
|
|
2410
|
+
/**
|
|
2411
|
+
* Constructs a <code>Meta</code> from a plain JavaScript object, optionally creating a new instance.
|
|
2412
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
2413
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2414
|
+
* @param {module:model/Meta} obj Optional instance to populate.
|
|
2415
|
+
* @return {module:model/Meta} The populated <code>Meta</code> instance.
|
|
2416
|
+
*/
|
|
2417
|
+
}, {
|
|
2418
|
+
key: "constructFromObject",
|
|
2419
|
+
value: function(r, e) {
|
|
2420
|
+
return r && (e = e || new n(), r.hasOwnProperty("description") && (e.description = u.default.convertToType(r.description, "String")), r.hasOwnProperty("image") && (e.image = u.default.convertToType(r.image, "String")), r.hasOwnProperty("title") && (e.title = u.default.convertToType(r.title, "String"))), e;
|
|
2421
|
+
}
|
|
2422
|
+
/**
|
|
2423
|
+
* Validates the JSON data with respect to <code>Meta</code>.
|
|
2424
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2425
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Meta</code>.
|
|
2426
|
+
*/
|
|
2427
|
+
}, {
|
|
2428
|
+
key: "validateJSON",
|
|
2429
|
+
value: function(r) {
|
|
2430
|
+
if (r.description && !(typeof r.description == "string" || r.description instanceof String))
|
|
2431
|
+
throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + r.description);
|
|
2432
|
+
if (r.image && !(typeof r.image == "string" || r.image instanceof String))
|
|
2433
|
+
throw new Error("Expected the field `image` to be a primitive type in the JSON string but got " + r.image);
|
|
2434
|
+
if (r.title && !(typeof r.title == "string" || r.title instanceof String))
|
|
2435
|
+
throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + r.title);
|
|
2436
|
+
return !0;
|
|
2437
|
+
}
|
|
2438
|
+
}]), n;
|
|
2439
|
+
}();
|
|
2440
|
+
S.prototype.description = void 0, S.prototype.image = void 0, S.prototype.title = void 0;
|
|
2441
|
+
var O = S;
|
|
2442
|
+
i.default = O;
|
|
2443
|
+
})(ye);
|
|
2444
|
+
var pe = {}, he = {};
|
|
2445
|
+
(function(i) {
|
|
2446
|
+
Object.defineProperty(i, "__esModule", {
|
|
2447
|
+
value: !0
|
|
2448
|
+
}), i.default = void 0;
|
|
2449
|
+
var u = y(N);
|
|
2450
|
+
function y(n) {
|
|
2451
|
+
return n && n.__esModule ? n : { default: n };
|
|
2452
|
+
}
|
|
2453
|
+
function l(n) {
|
|
2454
|
+
"@babel/helpers - typeof";
|
|
2455
|
+
return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2456
|
+
return typeof t;
|
|
2457
|
+
} : function(t) {
|
|
2458
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2459
|
+
}, l(n);
|
|
2460
|
+
}
|
|
2461
|
+
function p(n, t) {
|
|
2462
|
+
if (!(n instanceof t))
|
|
2463
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2464
|
+
}
|
|
2465
|
+
function d(n, t) {
|
|
2466
|
+
for (var r = 0; r < t.length; r++) {
|
|
2467
|
+
var e = t[r];
|
|
2468
|
+
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, w(e.key), e);
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2471
|
+
function b(n, t, r) {
|
|
2472
|
+
return t && d(n.prototype, t), r && d(n, r), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
2473
|
+
}
|
|
2474
|
+
function w(n) {
|
|
2475
|
+
var t = T(n, "string");
|
|
2476
|
+
return l(t) === "symbol" ? t : String(t);
|
|
2477
|
+
}
|
|
2478
|
+
function T(n, t) {
|
|
2479
|
+
if (l(n) !== "object" || n === null)
|
|
2480
|
+
return n;
|
|
2481
|
+
var r = n[Symbol.toPrimitive];
|
|
2482
|
+
if (r !== void 0) {
|
|
2483
|
+
var e = r.call(n, t || "default");
|
|
2484
|
+
if (l(e) !== "object")
|
|
2485
|
+
return e;
|
|
2486
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2487
|
+
}
|
|
2488
|
+
return (t === "string" ? String : Number)(n);
|
|
2489
|
+
}
|
|
2490
|
+
var S = /* @__PURE__ */ function() {
|
|
2491
|
+
function n() {
|
|
2492
|
+
p(this, n), n.initialize(this);
|
|
2493
|
+
}
|
|
2494
|
+
return b(n, null, [{
|
|
2495
|
+
key: "initialize",
|
|
2496
|
+
value: function(r) {
|
|
2497
|
+
}
|
|
2498
|
+
/**
|
|
2499
|
+
* Constructs a <code>PageBreadcrumbInner</code> from a plain JavaScript object, optionally creating a new instance.
|
|
2500
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
2501
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2502
|
+
* @param {module:model/PageBreadcrumbInner} obj Optional instance to populate.
|
|
2503
|
+
* @return {module:model/PageBreadcrumbInner} The populated <code>PageBreadcrumbInner</code> instance.
|
|
2504
|
+
*/
|
|
2505
|
+
}, {
|
|
2506
|
+
key: "constructFromObject",
|
|
2507
|
+
value: function(r, e) {
|
|
2508
|
+
return r && (e = e || new n(), r.hasOwnProperty("slug") && (e.slug = u.default.convertToType(r.slug, "String")), r.hasOwnProperty("title") && (e.title = u.default.convertToType(r.title, "String"))), e;
|
|
2509
|
+
}
|
|
2510
|
+
/**
|
|
2511
|
+
* Validates the JSON data with respect to <code>PageBreadcrumbInner</code>.
|
|
2512
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2513
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>PageBreadcrumbInner</code>.
|
|
2514
|
+
*/
|
|
2515
|
+
}, {
|
|
2516
|
+
key: "validateJSON",
|
|
2517
|
+
value: function(r) {
|
|
2518
|
+
if (r.slug && !(typeof r.slug == "string" || r.slug instanceof String))
|
|
2519
|
+
throw new Error("Expected the field `slug` to be a primitive type in the JSON string but got " + r.slug);
|
|
2520
|
+
if (r.title && !(typeof r.title == "string" || r.title instanceof String))
|
|
2521
|
+
throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + r.title);
|
|
2522
|
+
return !0;
|
|
2523
|
+
}
|
|
2524
|
+
}]), n;
|
|
2525
|
+
}();
|
|
2526
|
+
S.prototype.slug = void 0, S.prototype.title = void 0;
|
|
2527
|
+
var O = S;
|
|
2528
|
+
i.default = O;
|
|
2529
|
+
})(he);
|
|
2530
|
+
var me = {};
|
|
2531
|
+
(function(i) {
|
|
2532
|
+
Object.defineProperty(i, "__esModule", {
|
|
2533
|
+
value: !0
|
|
2534
|
+
}), i.default = void 0;
|
|
2535
|
+
var u = y(N);
|
|
2536
|
+
function y(n) {
|
|
2537
|
+
return n && n.__esModule ? n : { default: n };
|
|
2538
|
+
}
|
|
2539
|
+
function l(n) {
|
|
2540
|
+
"@babel/helpers - typeof";
|
|
2541
|
+
return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2542
|
+
return typeof t;
|
|
2543
|
+
} : function(t) {
|
|
2544
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2545
|
+
}, l(n);
|
|
2546
|
+
}
|
|
2547
|
+
function p(n, t) {
|
|
2548
|
+
if (!(n instanceof t))
|
|
2549
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2550
|
+
}
|
|
2551
|
+
function d(n, t) {
|
|
2552
|
+
for (var r = 0; r < t.length; r++) {
|
|
2553
|
+
var e = t[r];
|
|
2554
|
+
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, w(e.key), e);
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
function b(n, t, r) {
|
|
2558
|
+
return t && d(n.prototype, t), r && d(n, r), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
2559
|
+
}
|
|
2560
|
+
function w(n) {
|
|
2561
|
+
var t = T(n, "string");
|
|
2562
|
+
return l(t) === "symbol" ? t : String(t);
|
|
2563
|
+
}
|
|
2564
|
+
function T(n, t) {
|
|
2565
|
+
if (l(n) !== "object" || n === null)
|
|
2566
|
+
return n;
|
|
2567
|
+
var r = n[Symbol.toPrimitive];
|
|
2568
|
+
if (r !== void 0) {
|
|
2569
|
+
var e = r.call(n, t || "default");
|
|
2570
|
+
if (l(e) !== "object")
|
|
2571
|
+
return e;
|
|
2572
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2573
|
+
}
|
|
2574
|
+
return (t === "string" ? String : Number)(n);
|
|
2575
|
+
}
|
|
2576
|
+
var S = /* @__PURE__ */ function() {
|
|
2577
|
+
function n() {
|
|
2578
|
+
p(this, n), n.initialize(this);
|
|
2579
|
+
}
|
|
2580
|
+
return b(n, null, [{
|
|
2581
|
+
key: "initialize",
|
|
2582
|
+
value: function(r) {
|
|
2583
|
+
}
|
|
2584
|
+
/**
|
|
2585
|
+
* Constructs a <code>PageProperty</code> from a plain JavaScript object, optionally creating a new instance.
|
|
2586
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
2587
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2588
|
+
* @param {module:model/PageProperty} obj Optional instance to populate.
|
|
2589
|
+
* @return {module:model/PageProperty} The populated <code>PageProperty</code> instance.
|
|
2590
|
+
*/
|
|
2591
|
+
}, {
|
|
2592
|
+
key: "constructFromObject",
|
|
2593
|
+
value: function(r, e) {
|
|
2594
|
+
return r && (e = e || new n(), r.hasOwnProperty("value") && (e.value = u.default.convertToType(r.value, Object)), r.hasOwnProperty("navigation") && (e.navigation = u.default.convertToType(r.navigation, "Boolean")), r.hasOwnProperty("propagate") && (e.propagate = u.default.convertToType(r.propagate, "Boolean"))), e;
|
|
2595
|
+
}
|
|
2596
|
+
/**
|
|
2597
|
+
* Validates the JSON data with respect to <code>PageProperty</code>.
|
|
2598
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2599
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>PageProperty</code>.
|
|
2600
|
+
*/
|
|
2601
|
+
}, {
|
|
2602
|
+
key: "validateJSON",
|
|
2603
|
+
value: function(r) {
|
|
2604
|
+
return !0;
|
|
2605
|
+
}
|
|
2606
|
+
}]), n;
|
|
2607
|
+
}();
|
|
2608
|
+
S.prototype.value = void 0, S.prototype.navigation = void 0, S.prototype.propagate = void 0;
|
|
2609
|
+
var O = S;
|
|
2610
|
+
i.default = O;
|
|
2611
|
+
})(me);
|
|
2612
|
+
(function(i) {
|
|
2613
|
+
Object.defineProperty(i, "__esModule", {
|
|
2614
|
+
value: !0
|
|
2615
|
+
}), i.default = void 0;
|
|
2616
|
+
var u = b(N), y = b(ie()), l = b(ye), p = b(he), d = b(me);
|
|
2617
|
+
function b(c) {
|
|
2618
|
+
return c && c.__esModule ? c : { default: c };
|
|
2619
|
+
}
|
|
2620
|
+
function w(c) {
|
|
2621
|
+
"@babel/helpers - typeof";
|
|
2622
|
+
return w = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(g) {
|
|
2623
|
+
return typeof g;
|
|
2624
|
+
} : function(g) {
|
|
2625
|
+
return g && typeof Symbol == "function" && g.constructor === Symbol && g !== Symbol.prototype ? "symbol" : typeof g;
|
|
2626
|
+
}, w(c);
|
|
2627
|
+
}
|
|
2628
|
+
function T(c, g) {
|
|
2629
|
+
var h = typeof Symbol < "u" && c[Symbol.iterator] || c["@@iterator"];
|
|
2630
|
+
if (!h) {
|
|
2631
|
+
if (Array.isArray(c) || (h = S(c)) || g && c && typeof c.length == "number") {
|
|
2632
|
+
h && (c = h);
|
|
2633
|
+
var s = 0, v = function() {
|
|
2634
|
+
};
|
|
2635
|
+
return { s: v, n: function() {
|
|
2636
|
+
return s >= c.length ? { done: !0 } : { done: !1, value: c[s++] };
|
|
2637
|
+
}, e: function(C) {
|
|
2638
|
+
throw C;
|
|
2639
|
+
}, f: v };
|
|
2640
|
+
}
|
|
2641
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2642
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2643
|
+
}
|
|
2644
|
+
var m = !0, _ = !1, P;
|
|
2645
|
+
return { s: function() {
|
|
2646
|
+
h = h.call(c);
|
|
2647
|
+
}, n: function() {
|
|
2648
|
+
var C = h.next();
|
|
2649
|
+
return m = C.done, C;
|
|
2650
|
+
}, e: function(C) {
|
|
2651
|
+
_ = !0, P = C;
|
|
2652
|
+
}, f: function() {
|
|
2653
|
+
try {
|
|
2654
|
+
!m && h.return != null && h.return();
|
|
2655
|
+
} finally {
|
|
2656
|
+
if (_)
|
|
2657
|
+
throw P;
|
|
2658
|
+
}
|
|
2659
|
+
} };
|
|
2660
|
+
}
|
|
2661
|
+
function S(c, g) {
|
|
2662
|
+
if (c) {
|
|
2663
|
+
if (typeof c == "string")
|
|
2664
|
+
return O(c, g);
|
|
2665
|
+
var h = Object.prototype.toString.call(c).slice(8, -1);
|
|
2666
|
+
if (h === "Object" && c.constructor && (h = c.constructor.name), h === "Map" || h === "Set")
|
|
2667
|
+
return Array.from(c);
|
|
2668
|
+
if (h === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))
|
|
2669
|
+
return O(c, g);
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
function O(c, g) {
|
|
2673
|
+
(g == null || g > c.length) && (g = c.length);
|
|
2674
|
+
for (var h = 0, s = new Array(g); h < g; h++)
|
|
2675
|
+
s[h] = c[h];
|
|
2676
|
+
return s;
|
|
2677
|
+
}
|
|
2678
|
+
function n(c, g) {
|
|
2679
|
+
if (!(c instanceof g))
|
|
2680
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2681
|
+
}
|
|
2682
|
+
function t(c, g) {
|
|
2683
|
+
for (var h = 0; h < g.length; h++) {
|
|
2684
|
+
var s = g[h];
|
|
2685
|
+
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(c, e(s.key), s);
|
|
2686
|
+
}
|
|
2687
|
+
}
|
|
2688
|
+
function r(c, g, h) {
|
|
2689
|
+
return g && t(c.prototype, g), h && t(c, h), Object.defineProperty(c, "prototype", { writable: !1 }), c;
|
|
2690
|
+
}
|
|
2691
|
+
function e(c) {
|
|
2692
|
+
var g = o(c, "string");
|
|
2693
|
+
return w(g) === "symbol" ? g : String(g);
|
|
2694
|
+
}
|
|
2695
|
+
function o(c, g) {
|
|
2696
|
+
if (w(c) !== "object" || c === null)
|
|
2697
|
+
return c;
|
|
2698
|
+
var h = c[Symbol.toPrimitive];
|
|
2699
|
+
if (h !== void 0) {
|
|
2700
|
+
var s = h.call(c, g || "default");
|
|
2701
|
+
if (w(s) !== "object")
|
|
2702
|
+
return s;
|
|
2703
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2704
|
+
}
|
|
2705
|
+
return (g === "string" ? String : Number)(c);
|
|
2706
|
+
}
|
|
2707
|
+
var f = /* @__PURE__ */ function() {
|
|
2708
|
+
function c() {
|
|
2709
|
+
n(this, c), c.initialize(this);
|
|
2710
|
+
}
|
|
2711
|
+
return r(c, null, [{
|
|
2712
|
+
key: "initialize",
|
|
2713
|
+
value: function(h) {
|
|
2714
|
+
}
|
|
2715
|
+
/**
|
|
2716
|
+
* Constructs a <code>Page</code> from a plain JavaScript object, optionally creating a new instance.
|
|
2717
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
2718
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2719
|
+
* @param {module:model/Page} obj Optional instance to populate.
|
|
2720
|
+
* @return {module:model/Page} The populated <code>Page</code> instance.
|
|
2721
|
+
*/
|
|
2722
|
+
}, {
|
|
2723
|
+
key: "constructFromObject",
|
|
2724
|
+
value: function(h, s) {
|
|
2725
|
+
return h && (s = s || new c(), h.hasOwnProperty("id") && (s.id = u.default.convertToType(h.id, "Number")), h.hasOwnProperty("title") && (s.title = u.default.convertToType(h.title, "String")), h.hasOwnProperty("href") && (s.href = u.default.convertToType(h.href, "String")), h.hasOwnProperty("slug") && (s.slug = u.default.convertToType(h.slug, "String")), h.hasOwnProperty("json") && (s.json = u.default.convertToType(h.json, [y.default])), h.hasOwnProperty("depth") && (s.depth = u.default.convertToType(h.depth, "Number")), h.hasOwnProperty("is_home") && (s.is_home = u.default.convertToType(h.is_home, "Number")), h.hasOwnProperty("created_at") && (s.created_at = u.default.convertToType(h.created_at, "Number")), h.hasOwnProperty("updated_at") && (s.updated_at = u.default.convertToType(h.updated_at, "Number")), h.hasOwnProperty("is_visible") && (s.is_visible = u.default.convertToType(h.is_visible, "Number")), h.hasOwnProperty("meta_json") && (s.meta_json = l.default.constructFromObject(h.meta_json)), h.hasOwnProperty("properties") && (s.properties = u.default.convertToType(h.properties, {
|
|
2726
|
+
String: d.default
|
|
2727
|
+
})), h.hasOwnProperty("uid") && (s.uid = u.default.convertToType(h.uid, "String")), h.hasOwnProperty("type") && (s.type = u.default.convertToType(h.type, "String")), h.hasOwnProperty("target") && (s.target = u.default.convertToType(h.target, "String")), h.hasOwnProperty("container") && (s.container = u.default.convertToType(h.container, "String")), h.hasOwnProperty("breadcrumb") && (s.breadcrumb = u.default.convertToType(h.breadcrumb, [p.default]))), s;
|
|
2728
|
+
}
|
|
2729
|
+
/**
|
|
2730
|
+
* Validates the JSON data with respect to <code>Page</code>.
|
|
2731
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2732
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Page</code>.
|
|
2733
|
+
*/
|
|
2734
|
+
}, {
|
|
2735
|
+
key: "validateJSON",
|
|
2736
|
+
value: function(h) {
|
|
2737
|
+
if (h.title && !(typeof h.title == "string" || h.title instanceof String))
|
|
2738
|
+
throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + h.title);
|
|
2739
|
+
if (h.href && !(typeof h.href == "string" || h.href instanceof String))
|
|
2740
|
+
throw new Error("Expected the field `href` to be a primitive type in the JSON string but got " + h.href);
|
|
2741
|
+
if (h.slug && !(typeof h.slug == "string" || h.slug instanceof String))
|
|
2742
|
+
throw new Error("Expected the field `slug` to be a primitive type in the JSON string but got " + h.slug);
|
|
2743
|
+
if (h.json) {
|
|
2744
|
+
if (!Array.isArray(h.json))
|
|
2745
|
+
throw new Error("Expected the field `json` to be an array in the JSON data but got " + h.json);
|
|
2746
|
+
var s = T(h.json), v;
|
|
2747
|
+
try {
|
|
2748
|
+
for (s.s(); !(v = s.n()).done; ) {
|
|
2749
|
+
var m = v.value;
|
|
2750
|
+
y.default.validateJSON(m);
|
|
2751
|
+
}
|
|
2752
|
+
} catch (C) {
|
|
2753
|
+
s.e(C);
|
|
2754
|
+
} finally {
|
|
2755
|
+
s.f();
|
|
2756
|
+
}
|
|
2757
|
+
}
|
|
2758
|
+
if (h.meta_json && l.default.validateJSON(h.meta_json), h.uid && !(typeof h.uid == "string" || h.uid instanceof String))
|
|
2759
|
+
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + h.uid);
|
|
2760
|
+
if (h.type && !(typeof h.type == "string" || h.type instanceof String))
|
|
2761
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + h.type);
|
|
2762
|
+
if (h.target && !(typeof h.target == "string" || h.target instanceof String))
|
|
2763
|
+
throw new Error("Expected the field `target` to be a primitive type in the JSON string but got " + h.target);
|
|
2764
|
+
if (h.container && !(typeof h.container == "string" || h.container instanceof String))
|
|
2765
|
+
throw new Error("Expected the field `container` to be a primitive type in the JSON string but got " + h.container);
|
|
2766
|
+
if (h.breadcrumb) {
|
|
2767
|
+
if (!Array.isArray(h.breadcrumb))
|
|
2768
|
+
throw new Error("Expected the field `breadcrumb` to be an array in the JSON data but got " + h.breadcrumb);
|
|
2769
|
+
var _ = T(h.breadcrumb), P;
|
|
2770
|
+
try {
|
|
2771
|
+
for (_.s(); !(P = _.n()).done; ) {
|
|
2772
|
+
var A = P.value;
|
|
2773
|
+
p.default.validateJSON(A);
|
|
2774
|
+
}
|
|
2775
|
+
} catch (C) {
|
|
2776
|
+
_.e(C);
|
|
2777
|
+
} finally {
|
|
2778
|
+
_.f();
|
|
2779
|
+
}
|
|
2780
|
+
}
|
|
2781
|
+
return !0;
|
|
2782
|
+
}
|
|
2783
|
+
}]), c;
|
|
2784
|
+
}();
|
|
2785
|
+
f.prototype.id = void 0, f.prototype.title = void 0, f.prototype.href = void 0, f.prototype.slug = void 0, f.prototype.json = void 0, f.prototype.depth = void 0, f.prototype.is_home = void 0, f.prototype.created_at = void 0, f.prototype.updated_at = void 0, f.prototype.is_visible = void 0, f.prototype.meta_json = void 0, f.prototype.properties = void 0, f.prototype.uid = void 0, f.prototype.type = void 0, f.prototype.target = void 0, f.prototype.container = void 0, f.prototype.breadcrumb = void 0;
|
|
2786
|
+
var a = f;
|
|
2787
|
+
i.default = a;
|
|
2788
|
+
})(pe);
|
|
2789
|
+
var ve = {};
|
|
2790
|
+
(function(i) {
|
|
2791
|
+
Object.defineProperty(i, "__esModule", {
|
|
2792
|
+
value: !0
|
|
2793
|
+
}), i.default = void 0;
|
|
2794
|
+
var u = y(N);
|
|
2795
|
+
function y(n) {
|
|
2796
|
+
return n && n.__esModule ? n : { default: n };
|
|
2797
|
+
}
|
|
2798
|
+
function l(n) {
|
|
2799
|
+
"@babel/helpers - typeof";
|
|
2800
|
+
return l = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2801
|
+
return typeof t;
|
|
2802
|
+
} : function(t) {
|
|
2803
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2804
|
+
}, l(n);
|
|
2805
|
+
}
|
|
2806
|
+
function p(n, t) {
|
|
2807
|
+
if (!(n instanceof t))
|
|
2808
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2809
|
+
}
|
|
2810
|
+
function d(n, t) {
|
|
2811
|
+
for (var r = 0; r < t.length; r++) {
|
|
2812
|
+
var e = t[r];
|
|
2813
|
+
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, w(e.key), e);
|
|
2814
|
+
}
|
|
2815
|
+
}
|
|
2816
|
+
function b(n, t, r) {
|
|
2817
|
+
return t && d(n.prototype, t), r && d(n, r), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
2818
|
+
}
|
|
2819
|
+
function w(n) {
|
|
2820
|
+
var t = T(n, "string");
|
|
2821
|
+
return l(t) === "symbol" ? t : String(t);
|
|
2822
|
+
}
|
|
2823
|
+
function T(n, t) {
|
|
2824
|
+
if (l(n) !== "object" || n === null)
|
|
2825
|
+
return n;
|
|
2826
|
+
var r = n[Symbol.toPrimitive];
|
|
2827
|
+
if (r !== void 0) {
|
|
2828
|
+
var e = r.call(n, t || "default");
|
|
2829
|
+
if (l(e) !== "object")
|
|
2830
|
+
return e;
|
|
2831
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2832
|
+
}
|
|
2833
|
+
return (t === "string" ? String : Number)(n);
|
|
2834
|
+
}
|
|
2835
|
+
var S = /* @__PURE__ */ function() {
|
|
2836
|
+
function n() {
|
|
2837
|
+
p(this, n), n.initialize(this);
|
|
2838
|
+
}
|
|
2839
|
+
return b(n, null, [{
|
|
2840
|
+
key: "initialize",
|
|
2841
|
+
value: function(r) {
|
|
2842
|
+
}
|
|
2843
|
+
/**
|
|
2844
|
+
* Constructs a <code>VersionResponse</code> from a plain JavaScript object, optionally creating a new instance.
|
|
2845
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
2846
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2847
|
+
* @param {module:model/VersionResponse} obj Optional instance to populate.
|
|
2848
|
+
* @return {module:model/VersionResponse} The populated <code>VersionResponse</code> instance.
|
|
2849
|
+
*/
|
|
2850
|
+
}, {
|
|
2851
|
+
key: "constructFromObject",
|
|
2852
|
+
value: function(r, e) {
|
|
2853
|
+
return r && (e = e || new n(), r.hasOwnProperty("version") && (e.version = u.default.convertToType(r.version, "Number")), r.hasOwnProperty("updated_at") && (e.updated_at = u.default.convertToType(r.updated_at, "Number"))), e;
|
|
2854
|
+
}
|
|
2855
|
+
/**
|
|
2856
|
+
* Validates the JSON data with respect to <code>VersionResponse</code>.
|
|
2857
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
2858
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>VersionResponse</code>.
|
|
2859
|
+
*/
|
|
2860
|
+
}, {
|
|
2861
|
+
key: "validateJSON",
|
|
2862
|
+
value: function(r) {
|
|
2863
|
+
return !0;
|
|
2864
|
+
}
|
|
2865
|
+
}]), n;
|
|
2866
|
+
}();
|
|
2867
|
+
S.prototype.version = void 0, S.prototype.updated_at = void 0;
|
|
2868
|
+
var O = S;
|
|
2869
|
+
i.default = O;
|
|
2870
|
+
})(ve);
|
|
2871
|
+
var Je = {};
|
|
2872
|
+
(function(i) {
|
|
2873
|
+
Object.defineProperty(i, "__esModule", {
|
|
2874
|
+
value: !0
|
|
2875
|
+
}), i.default = void 0;
|
|
2876
|
+
var u = l(N), y = l(oe);
|
|
2877
|
+
function l(n) {
|
|
2878
|
+
return n && n.__esModule ? n : { default: n };
|
|
2879
|
+
}
|
|
2880
|
+
function p(n) {
|
|
2881
|
+
"@babel/helpers - typeof";
|
|
2882
|
+
return p = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2883
|
+
return typeof t;
|
|
2884
|
+
} : function(t) {
|
|
2885
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2886
|
+
}, p(n);
|
|
2887
|
+
}
|
|
2888
|
+
function d(n, t) {
|
|
2889
|
+
if (!(n instanceof t))
|
|
2890
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2891
|
+
}
|
|
2892
|
+
function b(n, t) {
|
|
2893
|
+
for (var r = 0; r < t.length; r++) {
|
|
2894
|
+
var e = t[r];
|
|
2895
|
+
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, T(e.key), e);
|
|
2896
|
+
}
|
|
2897
|
+
}
|
|
2898
|
+
function w(n, t, r) {
|
|
2899
|
+
return t && b(n.prototype, t), r && b(n, r), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
2900
|
+
}
|
|
2901
|
+
function T(n) {
|
|
2902
|
+
var t = S(n, "string");
|
|
2903
|
+
return p(t) === "symbol" ? t : String(t);
|
|
2904
|
+
}
|
|
2905
|
+
function S(n, t) {
|
|
2906
|
+
if (p(n) !== "object" || n === null)
|
|
2907
|
+
return n;
|
|
2908
|
+
var r = n[Symbol.toPrimitive];
|
|
2909
|
+
if (r !== void 0) {
|
|
2910
|
+
var e = r.call(n, t || "default");
|
|
2911
|
+
if (p(e) !== "object")
|
|
2912
|
+
return e;
|
|
2913
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2914
|
+
}
|
|
2915
|
+
return (t === "string" ? String : Number)(n);
|
|
2916
|
+
}
|
|
2917
|
+
var O = /* @__PURE__ */ function() {
|
|
2918
|
+
function n(t) {
|
|
2919
|
+
d(this, n), this.apiClient = t || u.default.instance;
|
|
2920
|
+
}
|
|
2921
|
+
return w(n, [{
|
|
2922
|
+
key: "configWithHttpInfo",
|
|
2923
|
+
value: function() {
|
|
2924
|
+
var r = null, e = {}, o = {}, f = {}, a = {}, c = ["ApiToken"], g = [], h = ["application/json"], s = y.default;
|
|
2925
|
+
return this.apiClient.callApi("/config", "GET", e, o, f, a, r, c, g, h, s, null);
|
|
2926
|
+
}
|
|
2927
|
+
/**
|
|
2928
|
+
* Get Config
|
|
2929
|
+
* The config API endpoint provides comprehensive information required for configuring the layout of websites. It encompasses various essential elements, including containers with pages, an extensive list of available slugs, globals containing content pool data, and crucial details about the Nitro configuration itself. By accessing this endpoint, developers can gather all the necessary data to effectively design and structure their websites. The endpoint offers a holistic view of the website's layout, empowering developers to tailor the user experience and optimize the overall design.
|
|
2930
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ConfigResponse}
|
|
2931
|
+
*/
|
|
2932
|
+
}, {
|
|
2933
|
+
key: "config",
|
|
2934
|
+
value: function() {
|
|
2935
|
+
return this.configWithHttpInfo().then(function(r) {
|
|
2936
|
+
return r.data;
|
|
2937
|
+
});
|
|
2938
|
+
}
|
|
2939
|
+
}]), n;
|
|
2940
|
+
}();
|
|
2941
|
+
i.default = O;
|
|
2942
|
+
})(Je);
|
|
2943
|
+
var Me = {};
|
|
2944
|
+
(function(i) {
|
|
2945
|
+
Object.defineProperty(i, "__esModule", {
|
|
2946
|
+
value: !0
|
|
2947
|
+
}), i.default = void 0;
|
|
2948
|
+
var u = l(N), y = l(ae);
|
|
2949
|
+
function l(n) {
|
|
2950
|
+
return n && n.__esModule ? n : { default: n };
|
|
2951
|
+
}
|
|
2952
|
+
function p(n) {
|
|
2953
|
+
"@babel/helpers - typeof";
|
|
2954
|
+
return p = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
2955
|
+
return typeof t;
|
|
2956
|
+
} : function(t) {
|
|
2957
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
2958
|
+
}, p(n);
|
|
2959
|
+
}
|
|
2960
|
+
function d(n, t) {
|
|
2961
|
+
if (!(n instanceof t))
|
|
2962
|
+
throw new TypeError("Cannot call a class as a function");
|
|
2963
|
+
}
|
|
2964
|
+
function b(n, t) {
|
|
2965
|
+
for (var r = 0; r < t.length; r++) {
|
|
2966
|
+
var e = t[r];
|
|
2967
|
+
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, T(e.key), e);
|
|
2968
|
+
}
|
|
2969
|
+
}
|
|
2970
|
+
function w(n, t, r) {
|
|
2971
|
+
return t && b(n.prototype, t), r && b(n, r), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
2972
|
+
}
|
|
2973
|
+
function T(n) {
|
|
2974
|
+
var t = S(n, "string");
|
|
2975
|
+
return p(t) === "symbol" ? t : String(t);
|
|
2976
|
+
}
|
|
2977
|
+
function S(n, t) {
|
|
2978
|
+
if (p(n) !== "object" || n === null)
|
|
2979
|
+
return n;
|
|
2980
|
+
var r = n[Symbol.toPrimitive];
|
|
2981
|
+
if (r !== void 0) {
|
|
2982
|
+
var e = r.call(n, t || "default");
|
|
2983
|
+
if (p(e) !== "object")
|
|
2984
|
+
return e;
|
|
2985
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
2986
|
+
}
|
|
2987
|
+
return (t === "string" ? String : Number)(n);
|
|
2988
|
+
}
|
|
2989
|
+
var O = /* @__PURE__ */ function() {
|
|
2990
|
+
function n(t) {
|
|
2991
|
+
d(this, n), this.apiClient = t || u.default.instance;
|
|
2992
|
+
}
|
|
2993
|
+
return w(n, [{
|
|
2994
|
+
key: "entityBySlugWithHttpInfo",
|
|
2995
|
+
value: function(r, e) {
|
|
2996
|
+
e = e || {};
|
|
2997
|
+
var o = null;
|
|
2998
|
+
if (r == null)
|
|
2999
|
+
throw new Error("Missing the required parameter 'slug' when calling entityBySlug");
|
|
3000
|
+
var f = {
|
|
3001
|
+
slug: r
|
|
3002
|
+
}, a = {
|
|
3003
|
+
typeId: e.typeId
|
|
3004
|
+
}, c = {}, g = {}, h = ["ApiToken"], s = [], v = ["application/json"], m = y.default;
|
|
3005
|
+
return this.apiClient.callApi("/entities/slug/{slug}", "GET", f, a, c, g, o, h, s, v, m, null);
|
|
3006
|
+
}
|
|
3007
|
+
/**
|
|
3008
|
+
* Find entity by slug and optional Type-ID
|
|
3009
|
+
*
|
|
3010
|
+
* @param {String} slug When looking up an entity slug, it is advisable to provide the typeId parameter along with it, as slugs are not unique among other entities. Failing to include the typeId parameter may lead to unintended or incorrect results. By specifying the typeId, you can ensure more accurate and targeted retrieval of the desired entity.
|
|
3011
|
+
* @param {Object} opts Optional parameters
|
|
3012
|
+
* @param {Number} opts.typeId To ensure accurate lookup, it is considered a best practice to include the Type-ID of the entity associated with the slug. The Type-ID, alternatively referred to as the Entity-Definition-Schema ID, serves as a crucial identifier within the system. It uniquely distinguishes and categorizes the Entity-Definition-Schema.
|
|
3013
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Entity}
|
|
3014
|
+
*/
|
|
3015
|
+
}, {
|
|
3016
|
+
key: "entityBySlug",
|
|
3017
|
+
value: function(r, e) {
|
|
3018
|
+
return this.entityBySlugWithHttpInfo(r, e).then(function(o) {
|
|
3019
|
+
return o.data;
|
|
3020
|
+
});
|
|
3021
|
+
}
|
|
3022
|
+
/**
|
|
3023
|
+
* Find entity by uniqueid
|
|
3024
|
+
* The endpoint provides comprehensive information about a specified entity. An entity represents a collection of information pertaining to a specific data type and is defined by a key-value pair. You can use various data types such as blogs, events, or any other relevant data. However, in order to access an entity, it must be properly configured within the nitro config.
|
|
3025
|
+
* @param {String} uniqueid The unique identifier of the given entity is a string composed solely of lowercase alphabetic characters (a-z) and numbers. This identifier is meticulously generated for each data row, ensuring its uniqueness and facilitating efficient data management and retrieval across content pools.
|
|
3026
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Entity} and HTTP response
|
|
3027
|
+
*/
|
|
3028
|
+
}, {
|
|
3029
|
+
key: "entityByUniqueidWithHttpInfo",
|
|
3030
|
+
value: function(r) {
|
|
3031
|
+
var e = null;
|
|
3032
|
+
if (r == null)
|
|
3033
|
+
throw new Error("Missing the required parameter 'uniqueid' when calling entityByUniqueid");
|
|
3034
|
+
var o = {
|
|
3035
|
+
uniqueid: r
|
|
3036
|
+
}, f = {}, a = {}, c = {}, g = ["ApiToken"], h = [], s = ["application/json"], v = y.default;
|
|
3037
|
+
return this.apiClient.callApi("/entities/uniqueid/{uniqueid}", "GET", o, f, a, c, e, g, h, s, v, null);
|
|
3038
|
+
}
|
|
3039
|
+
/**
|
|
3040
|
+
* Find entity by uniqueid
|
|
3041
|
+
* The endpoint provides comprehensive information about a specified entity. An entity represents a collection of information pertaining to a specific data type and is defined by a key-value pair. You can use various data types such as blogs, events, or any other relevant data. However, in order to access an entity, it must be properly configured within the nitro config.
|
|
3042
|
+
* @param {String} uniqueid The unique identifier of the given entity is a string composed solely of lowercase alphabetic characters (a-z) and numbers. This identifier is meticulously generated for each data row, ensuring its uniqueness and facilitating efficient data management and retrieval across content pools.
|
|
3043
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Entity}
|
|
3044
|
+
*/
|
|
3045
|
+
}, {
|
|
3046
|
+
key: "entityByUniqueid",
|
|
3047
|
+
value: function(r) {
|
|
3048
|
+
return this.entityByUniqueidWithHttpInfo(r).then(function(e) {
|
|
3049
|
+
return e.data;
|
|
3050
|
+
});
|
|
3051
|
+
}
|
|
3052
|
+
}]), n;
|
|
3053
|
+
}();
|
|
3054
|
+
i.default = O;
|
|
3055
|
+
})(Me);
|
|
3056
|
+
var xe = {};
|
|
3057
|
+
(function(i) {
|
|
3058
|
+
Object.defineProperty(i, "__esModule", {
|
|
3059
|
+
value: !0
|
|
3060
|
+
}), i.default = void 0;
|
|
3061
|
+
var u = l(N), y = l(pe);
|
|
3062
|
+
function l(n) {
|
|
3063
|
+
return n && n.__esModule ? n : { default: n };
|
|
3064
|
+
}
|
|
3065
|
+
function p(n) {
|
|
3066
|
+
"@babel/helpers - typeof";
|
|
3067
|
+
return p = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
3068
|
+
return typeof t;
|
|
3069
|
+
} : function(t) {
|
|
3070
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3071
|
+
}, p(n);
|
|
3072
|
+
}
|
|
3073
|
+
function d(n, t) {
|
|
3074
|
+
if (!(n instanceof t))
|
|
3075
|
+
throw new TypeError("Cannot call a class as a function");
|
|
3076
|
+
}
|
|
3077
|
+
function b(n, t) {
|
|
3078
|
+
for (var r = 0; r < t.length; r++) {
|
|
3079
|
+
var e = t[r];
|
|
3080
|
+
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, T(e.key), e);
|
|
3081
|
+
}
|
|
3082
|
+
}
|
|
3083
|
+
function w(n, t, r) {
|
|
3084
|
+
return t && b(n.prototype, t), r && b(n, r), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
3085
|
+
}
|
|
3086
|
+
function T(n) {
|
|
3087
|
+
var t = S(n, "string");
|
|
3088
|
+
return p(t) === "symbol" ? t : String(t);
|
|
3089
|
+
}
|
|
3090
|
+
function S(n, t) {
|
|
3091
|
+
if (p(n) !== "object" || n === null)
|
|
3092
|
+
return n;
|
|
3093
|
+
var r = n[Symbol.toPrimitive];
|
|
3094
|
+
if (r !== void 0) {
|
|
3095
|
+
var e = r.call(n, t || "default");
|
|
3096
|
+
if (p(e) !== "object")
|
|
3097
|
+
return e;
|
|
3098
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3099
|
+
}
|
|
3100
|
+
return (t === "string" ? String : Number)(n);
|
|
3101
|
+
}
|
|
3102
|
+
var O = /* @__PURE__ */ function() {
|
|
3103
|
+
function n(t) {
|
|
3104
|
+
d(this, n), this.apiClient = t || u.default.instance;
|
|
3105
|
+
}
|
|
3106
|
+
return w(n, [{
|
|
3107
|
+
key: "homeWithHttpInfo",
|
|
3108
|
+
value: function() {
|
|
3109
|
+
var r = null, e = {}, o = {}, f = {}, a = {}, c = ["ApiToken"], g = [], h = ["application/json"], s = y.default;
|
|
3110
|
+
return this.apiClient.callApi("/pages/home", "GET", e, o, f, a, r, c, g, h, s, null);
|
|
3111
|
+
}
|
|
3112
|
+
/**
|
|
3113
|
+
* Get Home
|
|
3114
|
+
* This endpoint allows you to retrieve the designated homepage of a website. Alternatively, you can utilize the pages endpoint by specifying an empty slug parameter to achieve the same result. By using either of these methods, you can effectively access the desired homepage of the website.
|
|
3115
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Page}
|
|
3116
|
+
*/
|
|
3117
|
+
}, {
|
|
3118
|
+
key: "home",
|
|
3119
|
+
value: function() {
|
|
3120
|
+
return this.homeWithHttpInfo().then(function(r) {
|
|
3121
|
+
return r.data;
|
|
3122
|
+
});
|
|
3123
|
+
}
|
|
3124
|
+
/**
|
|
3125
|
+
* Get Page by slug
|
|
3126
|
+
* This endpoint retrieves comprehensive information from a specified page using either a slug or a path. The slug refers to a unique identifier for the page, while the path is the slug with a leading slash. By providing either the slug or the path as input, the function will gather all the relevant details associated with the page.
|
|
3127
|
+
* @param {Object} opts Optional parameters
|
|
3128
|
+
* @param {String} [slug] The function retrieves a specific page by its slug. If no slug is provided, it automatically returns the homepage. Moreover, it seamlessly handles paths with subpages, allowing for nested URLs like \"testpage/subpage\". In this way, a forward slash (\"/\") within the path is recognized as a valid character and processed accordingly.
|
|
3129
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Page} and HTTP response
|
|
3130
|
+
*/
|
|
3131
|
+
}, {
|
|
3132
|
+
key: "pageWithHttpInfo",
|
|
3133
|
+
value: function(r) {
|
|
3134
|
+
r = r || {};
|
|
3135
|
+
var e = null, o = {}, f = {
|
|
3136
|
+
slug: r.slug
|
|
3137
|
+
}, a = {}, c = {}, g = ["ApiToken"], h = [], s = ["application/json"], v = y.default;
|
|
3138
|
+
return this.apiClient.callApi("/pages", "GET", o, f, a, c, e, g, h, s, v, null);
|
|
3139
|
+
}
|
|
3140
|
+
/**
|
|
3141
|
+
* Get Page by slug
|
|
3142
|
+
* This endpoint retrieves comprehensive information from a specified page using either a slug or a path. The slug refers to a unique identifier for the page, while the path is the slug with a leading slash. By providing either the slug or the path as input, the function will gather all the relevant details associated with the page.
|
|
3143
|
+
* @param {Object} opts Optional parameters
|
|
3144
|
+
* @param {String} opts.slug The function retrieves a specific page by its slug. If no slug is provided, it automatically returns the homepage. Moreover, it seamlessly handles paths with subpages, allowing for nested URLs like \"testpage/subpage\". In this way, a forward slash (\"/\") within the path is recognized as a valid character and processed accordingly.
|
|
3145
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Page}
|
|
3146
|
+
*/
|
|
3147
|
+
}, {
|
|
3148
|
+
key: "page",
|
|
3149
|
+
value: function(r) {
|
|
3150
|
+
return this.pageWithHttpInfo(r).then(function(e) {
|
|
3151
|
+
return e.data;
|
|
3152
|
+
});
|
|
3153
|
+
}
|
|
3154
|
+
}]), n;
|
|
3155
|
+
}();
|
|
3156
|
+
i.default = O;
|
|
3157
|
+
})(xe);
|
|
3158
|
+
var Be = {};
|
|
3159
|
+
(function(i) {
|
|
3160
|
+
Object.defineProperty(i, "__esModule", {
|
|
3161
|
+
value: !0
|
|
3162
|
+
}), i.default = void 0;
|
|
3163
|
+
var u = l(N), y = l(W);
|
|
3164
|
+
function l(n) {
|
|
3165
|
+
return n && n.__esModule ? n : { default: n };
|
|
3166
|
+
}
|
|
3167
|
+
function p(n) {
|
|
3168
|
+
"@babel/helpers - typeof";
|
|
3169
|
+
return p = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
3170
|
+
return typeof t;
|
|
3171
|
+
} : function(t) {
|
|
3172
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3173
|
+
}, p(n);
|
|
3174
|
+
}
|
|
3175
|
+
function d(n, t) {
|
|
3176
|
+
if (!(n instanceof t))
|
|
3177
|
+
throw new TypeError("Cannot call a class as a function");
|
|
3178
|
+
}
|
|
3179
|
+
function b(n, t) {
|
|
3180
|
+
for (var r = 0; r < t.length; r++) {
|
|
3181
|
+
var e = t[r];
|
|
3182
|
+
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, T(e.key), e);
|
|
3183
|
+
}
|
|
3184
|
+
}
|
|
3185
|
+
function w(n, t, r) {
|
|
3186
|
+
return t && b(n.prototype, t), r && b(n, r), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
3187
|
+
}
|
|
3188
|
+
function T(n) {
|
|
3189
|
+
var t = S(n, "string");
|
|
3190
|
+
return p(t) === "symbol" ? t : String(t);
|
|
3191
|
+
}
|
|
3192
|
+
function S(n, t) {
|
|
3193
|
+
if (p(n) !== "object" || n === null)
|
|
3194
|
+
return n;
|
|
3195
|
+
var r = n[Symbol.toPrimitive];
|
|
3196
|
+
if (r !== void 0) {
|
|
3197
|
+
var e = r.call(n, t || "default");
|
|
3198
|
+
if (p(e) !== "object")
|
|
3199
|
+
return e;
|
|
3200
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3201
|
+
}
|
|
3202
|
+
return (t === "string" ? String : Number)(n);
|
|
3203
|
+
}
|
|
3204
|
+
var O = /* @__PURE__ */ function() {
|
|
3205
|
+
function n(t) {
|
|
3206
|
+
d(this, n), this.apiClient = t || u.default.instance;
|
|
3207
|
+
}
|
|
3208
|
+
return w(n, [{
|
|
3209
|
+
key: "searchWithHttpInfo",
|
|
3210
|
+
value: function(r) {
|
|
3211
|
+
var e = null;
|
|
3212
|
+
if (r == null)
|
|
3213
|
+
throw new Error("Missing the required parameter 'query' when calling search");
|
|
3214
|
+
var o = {}, f = {
|
|
3215
|
+
query: r
|
|
3216
|
+
}, a = {}, c = {}, g = ["ApiToken"], h = [], s = ["application/json"], v = [y.default];
|
|
3217
|
+
return this.apiClient.callApi("/search", "GET", o, f, a, c, e, g, h, s, v, null);
|
|
3218
|
+
}
|
|
3219
|
+
/**
|
|
3220
|
+
* Get Search by query
|
|
3221
|
+
* This endpoint offers a powerful capability to search through the websites sitemap, encompassing both pages and entities. With this endpoint, users can efficiently explore and retrieve information from your sitemap by creating a paginated search experience.
|
|
3222
|
+
* @param {String} query The query keyword that needs to be looked up. It is important to ensure that the query is properly URL encoded for accurate processing and retrieval.
|
|
3223
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/EntityinterfaceInner>}
|
|
3224
|
+
*/
|
|
3225
|
+
}, {
|
|
3226
|
+
key: "search",
|
|
3227
|
+
value: function(r) {
|
|
3228
|
+
return this.searchWithHttpInfo(r).then(function(e) {
|
|
3229
|
+
return e.data;
|
|
3230
|
+
});
|
|
3231
|
+
}
|
|
3232
|
+
}]), n;
|
|
3233
|
+
}();
|
|
3234
|
+
i.default = O;
|
|
3235
|
+
})(Be);
|
|
3236
|
+
var De = {};
|
|
3237
|
+
(function(i) {
|
|
3238
|
+
Object.defineProperty(i, "__esModule", {
|
|
3239
|
+
value: !0
|
|
3240
|
+
}), i.default = void 0;
|
|
3241
|
+
var u = l(N), y = l(W);
|
|
3242
|
+
function l(n) {
|
|
3243
|
+
return n && n.__esModule ? n : { default: n };
|
|
3244
|
+
}
|
|
3245
|
+
function p(n) {
|
|
3246
|
+
"@babel/helpers - typeof";
|
|
3247
|
+
return p = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
3248
|
+
return typeof t;
|
|
3249
|
+
} : function(t) {
|
|
3250
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3251
|
+
}, p(n);
|
|
3252
|
+
}
|
|
3253
|
+
function d(n, t) {
|
|
3254
|
+
if (!(n instanceof t))
|
|
3255
|
+
throw new TypeError("Cannot call a class as a function");
|
|
3256
|
+
}
|
|
3257
|
+
function b(n, t) {
|
|
3258
|
+
for (var r = 0; r < t.length; r++) {
|
|
3259
|
+
var e = t[r];
|
|
3260
|
+
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, T(e.key), e);
|
|
3261
|
+
}
|
|
3262
|
+
}
|
|
3263
|
+
function w(n, t, r) {
|
|
3264
|
+
return t && b(n.prototype, t), r && b(n, r), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
3265
|
+
}
|
|
3266
|
+
function T(n) {
|
|
3267
|
+
var t = S(n, "string");
|
|
3268
|
+
return p(t) === "symbol" ? t : String(t);
|
|
3269
|
+
}
|
|
3270
|
+
function S(n, t) {
|
|
3271
|
+
if (p(n) !== "object" || n === null)
|
|
3272
|
+
return n;
|
|
3273
|
+
var r = n[Symbol.toPrimitive];
|
|
3274
|
+
if (r !== void 0) {
|
|
3275
|
+
var e = r.call(n, t || "default");
|
|
3276
|
+
if (p(e) !== "object")
|
|
3277
|
+
return e;
|
|
3278
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3279
|
+
}
|
|
3280
|
+
return (t === "string" ? String : Number)(n);
|
|
3281
|
+
}
|
|
3282
|
+
var O = /* @__PURE__ */ function() {
|
|
3283
|
+
function n(t) {
|
|
3284
|
+
d(this, n), this.apiClient = t || u.default.instance;
|
|
3285
|
+
}
|
|
3286
|
+
return w(n, [{
|
|
3287
|
+
key: "sitemapWithHttpInfo",
|
|
3288
|
+
value: function() {
|
|
3289
|
+
var r = null, e = {}, o = {}, f = {}, a = {}, c = ["ApiToken"], g = [], h = ["application/json"], s = [y.default];
|
|
3290
|
+
return this.apiClient.callApi("/sitemap", "GET", e, o, f, a, r, c, g, h, s, null);
|
|
3291
|
+
}
|
|
3292
|
+
/**
|
|
3293
|
+
* Get Sitemap
|
|
3294
|
+
* This endpoint provides comprehensive data for generating the sitemap. It encompasses all the necessary information, including pages from containers, as well as all entities that have been mapped.
|
|
3295
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/EntityinterfaceInner>}
|
|
3296
|
+
*/
|
|
3297
|
+
}, {
|
|
3298
|
+
key: "sitemap",
|
|
3299
|
+
value: function() {
|
|
3300
|
+
return this.sitemapWithHttpInfo().then(function(r) {
|
|
3301
|
+
return r.data;
|
|
3302
|
+
});
|
|
3303
|
+
}
|
|
3304
|
+
}]), n;
|
|
3305
|
+
}();
|
|
3306
|
+
i.default = O;
|
|
3307
|
+
})(De);
|
|
3308
|
+
var ze = {};
|
|
3309
|
+
(function(i) {
|
|
3310
|
+
Object.defineProperty(i, "__esModule", {
|
|
3311
|
+
value: !0
|
|
3312
|
+
}), i.default = void 0;
|
|
3313
|
+
var u = l(N), y = l(ve);
|
|
3314
|
+
function l(n) {
|
|
3315
|
+
return n && n.__esModule ? n : { default: n };
|
|
3316
|
+
}
|
|
3317
|
+
function p(n) {
|
|
3318
|
+
"@babel/helpers - typeof";
|
|
3319
|
+
return p = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
3320
|
+
return typeof t;
|
|
3321
|
+
} : function(t) {
|
|
3322
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3323
|
+
}, p(n);
|
|
3324
|
+
}
|
|
3325
|
+
function d(n, t) {
|
|
3326
|
+
if (!(n instanceof t))
|
|
3327
|
+
throw new TypeError("Cannot call a class as a function");
|
|
3328
|
+
}
|
|
3329
|
+
function b(n, t) {
|
|
3330
|
+
for (var r = 0; r < t.length; r++) {
|
|
3331
|
+
var e = t[r];
|
|
3332
|
+
e.enumerable = e.enumerable || !1, e.configurable = !0, "value" in e && (e.writable = !0), Object.defineProperty(n, T(e.key), e);
|
|
3333
|
+
}
|
|
3334
|
+
}
|
|
3335
|
+
function w(n, t, r) {
|
|
3336
|
+
return t && b(n.prototype, t), r && b(n, r), Object.defineProperty(n, "prototype", { writable: !1 }), n;
|
|
3337
|
+
}
|
|
3338
|
+
function T(n) {
|
|
3339
|
+
var t = S(n, "string");
|
|
3340
|
+
return p(t) === "symbol" ? t : String(t);
|
|
3341
|
+
}
|
|
3342
|
+
function S(n, t) {
|
|
3343
|
+
if (p(n) !== "object" || n === null)
|
|
3344
|
+
return n;
|
|
3345
|
+
var r = n[Symbol.toPrimitive];
|
|
3346
|
+
if (r !== void 0) {
|
|
3347
|
+
var e = r.call(n, t || "default");
|
|
3348
|
+
if (p(e) !== "object")
|
|
3349
|
+
return e;
|
|
3350
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
3351
|
+
}
|
|
3352
|
+
return (t === "string" ? String : Number)(n);
|
|
3353
|
+
}
|
|
3354
|
+
var O = /* @__PURE__ */ function() {
|
|
3355
|
+
function n(t) {
|
|
3356
|
+
d(this, n), this.apiClient = t || u.default.instance;
|
|
3357
|
+
}
|
|
3358
|
+
return w(n, [{
|
|
3359
|
+
key: "versionWithHttpInfo",
|
|
3360
|
+
value: function() {
|
|
3361
|
+
var r = null, e = {}, o = {}, f = {}, a = {}, c = ["ApiToken"], g = [], h = ["application/json"], s = y.default;
|
|
3362
|
+
return this.apiClient.callApi("/version", "GET", e, o, f, a, r, c, g, h, s, null);
|
|
3363
|
+
}
|
|
3364
|
+
/**
|
|
3365
|
+
* Get Version Information
|
|
3366
|
+
* The Version API endpoint offers a highly efficient solution for evaluating the current caching status of your application's caching mechanism. This functionality allows you to cache the entire application configuration and page responses indefinitely. However, utilizing this endpoint enables you to assess the validity of the cache by sending a request to determine its current status. This caching endpoint is specifically designed for optimal performance when compared to the configuration endpoint, which requires more thorough evaluation and encompasses a substantial response body.
|
|
3367
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/VersionResponse}
|
|
3368
|
+
*/
|
|
3369
|
+
}, {
|
|
3370
|
+
key: "version",
|
|
3371
|
+
value: function() {
|
|
3372
|
+
return this.versionWithHttpInfo().then(function(r) {
|
|
3373
|
+
return r.data;
|
|
3374
|
+
});
|
|
3375
|
+
}
|
|
3376
|
+
}]), n;
|
|
3377
|
+
}();
|
|
3378
|
+
i.default = O;
|
|
3379
|
+
})(ze);
|
|
3380
|
+
(function(i) {
|
|
3381
|
+
Object.defineProperty(i, "__esModule", {
|
|
3382
|
+
value: !0
|
|
3383
|
+
}), Object.defineProperty(i, "ApiClient", {
|
|
3384
|
+
enumerable: !0,
|
|
3385
|
+
get: function() {
|
|
3386
|
+
return u.default;
|
|
3387
|
+
}
|
|
3388
|
+
}), Object.defineProperty(i, "Block", {
|
|
3389
|
+
enumerable: !0,
|
|
3390
|
+
get: function() {
|
|
3391
|
+
return y.default;
|
|
3392
|
+
}
|
|
3393
|
+
}), Object.defineProperty(i, "BlockSlots", {
|
|
3394
|
+
enumerable: !0,
|
|
3395
|
+
get: function() {
|
|
3396
|
+
return l.default;
|
|
3397
|
+
}
|
|
3398
|
+
}), Object.defineProperty(i, "ConfigApi", {
|
|
3399
|
+
enumerable: !0,
|
|
3400
|
+
get: function() {
|
|
3401
|
+
return a.default;
|
|
3402
|
+
}
|
|
3403
|
+
}), Object.defineProperty(i, "ConfigResponse", {
|
|
3404
|
+
enumerable: !0,
|
|
3405
|
+
get: function() {
|
|
3406
|
+
return p.default;
|
|
3407
|
+
}
|
|
3408
|
+
}), Object.defineProperty(i, "ConfigResponseContainersValue", {
|
|
3409
|
+
enumerable: !0,
|
|
3410
|
+
get: function() {
|
|
3411
|
+
return d.default;
|
|
3412
|
+
}
|
|
3413
|
+
}), Object.defineProperty(i, "ConfigResponseNitro", {
|
|
3414
|
+
enumerable: !0,
|
|
3415
|
+
get: function() {
|
|
3416
|
+
return b.default;
|
|
3417
|
+
}
|
|
3418
|
+
}), Object.defineProperty(i, "EntitiesApi", {
|
|
3419
|
+
enumerable: !0,
|
|
3420
|
+
get: function() {
|
|
3421
|
+
return c.default;
|
|
3422
|
+
}
|
|
3423
|
+
}), Object.defineProperty(i, "Entity", {
|
|
3424
|
+
enumerable: !0,
|
|
3425
|
+
get: function() {
|
|
3426
|
+
return w.default;
|
|
3427
|
+
}
|
|
3428
|
+
}), Object.defineProperty(i, "EntityInterface", {
|
|
3429
|
+
enumerable: !0,
|
|
3430
|
+
get: function() {
|
|
3431
|
+
return T.default;
|
|
3432
|
+
}
|
|
3433
|
+
}), Object.defineProperty(i, "EntityMetric", {
|
|
3434
|
+
enumerable: !0,
|
|
3435
|
+
get: function() {
|
|
3436
|
+
return S.default;
|
|
3437
|
+
}
|
|
3438
|
+
}), Object.defineProperty(i, "EntityinterfaceInner", {
|
|
3439
|
+
enumerable: !0,
|
|
3440
|
+
get: function() {
|
|
3441
|
+
return O.default;
|
|
3442
|
+
}
|
|
3443
|
+
}), Object.defineProperty(i, "Meta", {
|
|
3444
|
+
enumerable: !0,
|
|
3445
|
+
get: function() {
|
|
3446
|
+
return n.default;
|
|
3447
|
+
}
|
|
3448
|
+
}), Object.defineProperty(i, "Page", {
|
|
3449
|
+
enumerable: !0,
|
|
3450
|
+
get: function() {
|
|
3451
|
+
return t.default;
|
|
3452
|
+
}
|
|
3453
|
+
}), Object.defineProperty(i, "PageBreadcrumbInner", {
|
|
3454
|
+
enumerable: !0,
|
|
3455
|
+
get: function() {
|
|
3456
|
+
return r.default;
|
|
3457
|
+
}
|
|
3458
|
+
}), Object.defineProperty(i, "PageProperty", {
|
|
3459
|
+
enumerable: !0,
|
|
3460
|
+
get: function() {
|
|
3461
|
+
return e.default;
|
|
3462
|
+
}
|
|
3463
|
+
}), Object.defineProperty(i, "PagesApi", {
|
|
3464
|
+
enumerable: !0,
|
|
3465
|
+
get: function() {
|
|
3466
|
+
return g.default;
|
|
3467
|
+
}
|
|
3468
|
+
}), Object.defineProperty(i, "PagesInner", {
|
|
3469
|
+
enumerable: !0,
|
|
3470
|
+
get: function() {
|
|
3471
|
+
return o.default;
|
|
3472
|
+
}
|
|
3473
|
+
}), Object.defineProperty(i, "SearchApi", {
|
|
3474
|
+
enumerable: !0,
|
|
3475
|
+
get: function() {
|
|
3476
|
+
return h.default;
|
|
3477
|
+
}
|
|
3478
|
+
}), Object.defineProperty(i, "SitemapApi", {
|
|
3479
|
+
enumerable: !0,
|
|
3480
|
+
get: function() {
|
|
3481
|
+
return s.default;
|
|
3482
|
+
}
|
|
3483
|
+
}), Object.defineProperty(i, "VersionApi", {
|
|
3484
|
+
enumerable: !0,
|
|
3485
|
+
get: function() {
|
|
3486
|
+
return v.default;
|
|
3487
|
+
}
|
|
3488
|
+
}), Object.defineProperty(i, "VersionResponse", {
|
|
3489
|
+
enumerable: !0,
|
|
3490
|
+
get: function() {
|
|
3491
|
+
return f.default;
|
|
3492
|
+
}
|
|
3493
|
+
});
|
|
3494
|
+
var u = m(N), y = m(ie()), l = m(qe()), p = m(oe), d = m(ue), b = m(le), w = m(ae), T = m(se), S = m(ce), O = m(W), n = m(ye), t = m(pe), r = m(he), e = m(me), o = m(fe), f = m(ve), a = m(Je), c = m(Me), g = m(xe), h = m(Be), s = m(De), v = m(ze);
|
|
3495
|
+
function m(_) {
|
|
3496
|
+
return _ && _.__esModule ? _ : { default: _ };
|
|
3497
|
+
}
|
|
3498
|
+
})(Ke);
|
|
3499
|
+
const st = /[\p{Lu}]/u, ct = /[\p{Ll}]/u, Te = /^[\p{Lu}](?![\p{Lu}])/gu, Fe = /([\p{Alpha}\p{N}_]|$)/u, de = /[_.\- ]+/, yt = new RegExp("^" + de.source), Pe = new RegExp(de.source + Fe.source, "gu"), Ee = new RegExp("\\d+" + Fe.source, "gu"), pt = (i, u, y, l) => {
|
|
3500
|
+
let p = !1, d = !1, b = !1, w = !1;
|
|
3501
|
+
for (let T = 0; T < i.length; T++) {
|
|
3502
|
+
const S = i[T];
|
|
3503
|
+
w = T > 2 ? i[T - 3] === "-" : !0, p && st.test(S) ? (i = i.slice(0, T) + "-" + i.slice(T), p = !1, b = d, d = !0, T++) : d && b && ct.test(S) && (!w || l) ? (i = i.slice(0, T - 1) + "-" + i.slice(T - 1), b = d, d = !1, p = !0) : (p = u(S) === S && y(S) !== S, b = d, d = y(S) === S && u(S) !== S);
|
|
3504
|
+
}
|
|
3505
|
+
return i;
|
|
3506
|
+
}, ht = (i, u) => (Te.lastIndex = 0, i.replace(Te, (y) => u(y))), mt = (i, u) => (Pe.lastIndex = 0, Ee.lastIndex = 0, i.replace(Pe, (y, l) => u(l)).replace(Ee, (y) => u(y)));
|
|
3507
|
+
function vt(i, u) {
|
|
3508
|
+
if (!(typeof i == "string" || Array.isArray(i)))
|
|
3509
|
+
throw new TypeError("Expected the input to be `string | string[]`");
|
|
3510
|
+
if (u = {
|
|
3511
|
+
pascalCase: !1,
|
|
3512
|
+
preserveConsecutiveUppercase: !1,
|
|
3513
|
+
...u
|
|
3514
|
+
}, Array.isArray(i) ? i = i.map((d) => d.trim()).filter((d) => d.length).join("-") : i = i.trim(), i.length === 0)
|
|
3515
|
+
return "";
|
|
3516
|
+
const y = u.locale === !1 ? (d) => d.toLowerCase() : (d) => d.toLocaleLowerCase(u.locale), l = u.locale === !1 ? (d) => d.toUpperCase() : (d) => d.toLocaleUpperCase(u.locale);
|
|
3517
|
+
return i.length === 1 ? de.test(i) ? "" : u.pascalCase ? l(i) : y(i) : (i !== y(i) && (i = pt(i, y, l, u.preserveConsecutiveUppercase)), i = i.replace(yt, ""), i = u.preserveConsecutiveUppercase ? ht(i, y) : y(i), u.pascalCase && (i = l(i.charAt(0)) + i.slice(1)), mt(i, l));
|
|
3518
|
+
}
|
|
3519
|
+
function dt(i, u, y) {
|
|
3520
|
+
const l = "virtual:flyo-components", p = "\0" + l;
|
|
3521
|
+
return {
|
|
3522
|
+
name: "vite-plugin-flyo-components",
|
|
3523
|
+
async resolveId(d) {
|
|
3524
|
+
if (d === l)
|
|
3525
|
+
return p;
|
|
3526
|
+
},
|
|
3527
|
+
async load(d) {
|
|
3528
|
+
if (d === p) {
|
|
3529
|
+
const b = [];
|
|
3530
|
+
for (const [T, S] of Object.entries(u)) {
|
|
3531
|
+
const O = await this.resolve(
|
|
3532
|
+
"/" + i + "/" + S + ".astro"
|
|
3533
|
+
);
|
|
3534
|
+
O && b.push(`export { default as ${vt(T)} } from "${O.id}"`);
|
|
3535
|
+
}
|
|
3536
|
+
let w = null;
|
|
3537
|
+
return y && (w = await this.resolve(
|
|
3538
|
+
"/" + i + "/" + y + ".astro"
|
|
3539
|
+
)), w ? b.push(`export { default as fallback } from "${w.id}"`) : b.push('export { default as fallback } from "@flyo/nitro-astro/FallbackComponent.astro"'), b.join(";");
|
|
3540
|
+
}
|
|
3541
|
+
}
|
|
3542
|
+
};
|
|
3543
|
+
}
|
|
3544
|
+
function gt() {
|
|
3545
|
+
return globalThis.flyoNitroInstance || console.error("flyoNitroInstance has not been initialized correctly"), globalThis.flyoNitroInstance;
|
|
3546
|
+
}
|
|
3547
|
+
function _t(i) {
|
|
3548
|
+
const u = {
|
|
3549
|
+
accessToken: !1,
|
|
3550
|
+
fallbackComponent: null,
|
|
3551
|
+
...i
|
|
3552
|
+
};
|
|
3553
|
+
return {
|
|
3554
|
+
name: "@flyo/nitro-astro",
|
|
3555
|
+
hooks: {
|
|
3556
|
+
"astro:config:setup": ({ injectScript: y, updateConfig: l }) => {
|
|
3557
|
+
l({
|
|
3558
|
+
vite: {
|
|
3559
|
+
plugins: [
|
|
3560
|
+
dt(
|
|
3561
|
+
i.componentsDir,
|
|
3562
|
+
i.components,
|
|
3563
|
+
i.fallbackComponent
|
|
3564
|
+
)
|
|
3565
|
+
]
|
|
3566
|
+
}
|
|
3567
|
+
}), y(
|
|
3568
|
+
"page-ssr",
|
|
3569
|
+
`
|
|
3570
|
+
import { ApiClient } from '@flyo/nitro-js'
|
|
3571
|
+
var defaultClient = ApiClient.instance;
|
|
3572
|
+
defaultClient.defaultHeaders = {}
|
|
3573
|
+
|
|
3574
|
+
let ApiToken = defaultClient.authentications['ApiToken'];
|
|
3575
|
+
ApiToken.apiKey = '${u.accessToken}';
|
|
3576
|
+
|
|
3577
|
+
globalThis.flyoNitroInstance = defaultClient;
|
|
3578
|
+
`
|
|
3579
|
+
), y(
|
|
3580
|
+
"page",
|
|
3581
|
+
`
|
|
3582
|
+
console.log('reload')
|
|
3583
|
+
`
|
|
3584
|
+
);
|
|
3585
|
+
}
|
|
3586
|
+
}
|
|
3587
|
+
};
|
|
3588
|
+
}
|
|
3589
|
+
export {
|
|
3590
|
+
_t as default,
|
|
3591
|
+
gt as useFlyoNitro
|
|
3592
|
+
};
|