@revolugo/booking-api-client 6.15.8-alpha.0 → 6.15.8-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +129 -134
- package/dist/index.umd.js +2 -2
- package/dist/types/v1/models/index.d.ts +2 -23
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -27,16 +27,16 @@ function Xe(i, e) {
|
|
|
27
27
|
return n + t.map(Ee(e?.locale)).join(e?.delimiter ?? " ") + r;
|
|
28
28
|
}
|
|
29
29
|
function dt(i, e) {
|
|
30
|
-
const [n, t, r] = Me(i, e), s = Ee(e?.locale), u = ke(e?.locale), c = e?.mergeAmbiguousCharacters ?
|
|
30
|
+
const [n, t, r] = Me(i, e), s = Ee(e?.locale), u = ke(e?.locale), c = e?.mergeAmbiguousCharacters ? _e(s, u) : et(s, u);
|
|
31
31
|
return n + t.map((h, S) => S === 0 ? s(h) : c(h, S)).join(e?.delimiter ?? "") + r;
|
|
32
32
|
}
|
|
33
33
|
function ht(i, e) {
|
|
34
|
-
const [n, t, r] = Me(i, e), s = Ee(e?.locale), u = ke(e?.locale), c = e?.mergeAmbiguousCharacters ?
|
|
34
|
+
const [n, t, r] = Me(i, e), s = Ee(e?.locale), u = ke(e?.locale), c = e?.mergeAmbiguousCharacters ? _e(s, u) : et(s, u);
|
|
35
35
|
return n + t.map(c).join(e?.delimiter ?? "") + r;
|
|
36
36
|
}
|
|
37
37
|
function pt(i, e) {
|
|
38
38
|
const [n, t, r] = Me(i, e), s = Ee(e?.locale), u = ke(e?.locale);
|
|
39
|
-
return n + t.map(
|
|
39
|
+
return n + t.map(_e(s, u)).join(e?.delimiter ?? " ") + r;
|
|
40
40
|
}
|
|
41
41
|
function Qe(i, e) {
|
|
42
42
|
return Xe(i, { delimiter: "-", ...e });
|
|
@@ -50,7 +50,7 @@ function Ee(i) {
|
|
|
50
50
|
function ke(i) {
|
|
51
51
|
return i === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(i);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function _e(i, e) {
|
|
54
54
|
return (n) => `${e(n[0])}${i(n.slice(1))}`;
|
|
55
55
|
}
|
|
56
56
|
function et(i, e) {
|
|
@@ -146,7 +146,7 @@ const Et = {
|
|
|
146
146
|
"CI-CD": "https://booking-api.staging.revolugo.com",
|
|
147
147
|
LOCAL: "http://127.0.0.1:3001"
|
|
148
148
|
};
|
|
149
|
-
var
|
|
149
|
+
var De = /* @__PURE__ */ ((i) => (i.HOTEL_ROOM_OFFERS = "HOTEL_ROOM_OFFERS", i.HOTEL_SEARCH_POLLING = "HOTEL_SEARCH_POLLING", i))(De || {}), le = { exports: {} }, Mt = le.exports, xe;
|
|
150
150
|
function tt() {
|
|
151
151
|
return xe || (xe = 1, (function(i, e) {
|
|
152
152
|
(function(n, t) {
|
|
@@ -155,12 +155,12 @@ function tt() {
|
|
|
155
155
|
var n = 1e3, t = 6e4, r = 36e5, s = "millisecond", u = "second", c = "minute", h = "hour", S = "day", A = "week", y = "month", m = "quarter", C = "year", E = "date", d = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
|
|
156
156
|
var o = ["th", "st", "nd", "rd"], a = R % 100;
|
|
157
157
|
return "[" + R + (o[(a - 20) % 10] || o[a] || o[0]) + "]";
|
|
158
|
-
} },
|
|
158
|
+
} }, _ = function(R, o, a) {
|
|
159
159
|
var f = String(R);
|
|
160
160
|
return !f || f.length >= o ? R : "" + Array(o + 1 - f.length).join(a) + R;
|
|
161
|
-
}, $ = { s:
|
|
161
|
+
}, $ = { s: _, z: function(R) {
|
|
162
162
|
var o = -R.utcOffset(), a = Math.abs(o), f = Math.floor(a / 60), l = a % 60;
|
|
163
|
-
return (o <= 0 ? "+" : "-") +
|
|
163
|
+
return (o <= 0 ? "+" : "-") + _(f, 2, "0") + ":" + _(l, 2, "0");
|
|
164
164
|
}, m: function R(o, a) {
|
|
165
165
|
if (o.date() < a.date()) return -R(a, o);
|
|
166
166
|
var f = 12 * (a.year() - o.year()) + (a.month() - o.month()), l = o.clone().add(f, y), g = a - l < 0, p = o.clone().add(f + (g ? -1 : 1), y);
|
|
@@ -184,8 +184,8 @@ function tt() {
|
|
|
184
184
|
var p = o.split("-");
|
|
185
185
|
if (!l && p.length > 1) return R(p[0]);
|
|
186
186
|
} else {
|
|
187
|
-
var
|
|
188
|
-
B[
|
|
187
|
+
var D = o.name;
|
|
188
|
+
B[D] = o, l = D;
|
|
189
189
|
}
|
|
190
190
|
return !f && l && (T = l), l || !f && T;
|
|
191
191
|
}, L = function(R, o) {
|
|
@@ -210,8 +210,8 @@ function tt() {
|
|
|
210
210
|
if (typeof l == "string" && !/Z$/i.test(l)) {
|
|
211
211
|
var p = l.match(M);
|
|
212
212
|
if (p) {
|
|
213
|
-
var
|
|
214
|
-
return g ? new Date(Date.UTC(p[1],
|
|
213
|
+
var D = p[2] - 1 || 0, x = (p[7] || "0").substring(0, 3);
|
|
214
|
+
return g ? new Date(Date.UTC(p[1], D, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, x)) : new Date(p[1], D, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, x);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
return new Date(l);
|
|
@@ -237,7 +237,7 @@ function tt() {
|
|
|
237
237
|
}, o.valueOf = function() {
|
|
238
238
|
return this.$d.getTime();
|
|
239
239
|
}, o.startOf = function(a, f) {
|
|
240
|
-
var l = this, g = !!O.u(f) || f, p = O.p(a),
|
|
240
|
+
var l = this, g = !!O.u(f) || f, p = O.p(a), D = function(Q, q) {
|
|
241
241
|
var Z = O.w(l.$u ? Date.UTC(l.$y, q, Q) : new Date(l.$y, q, Q), l);
|
|
242
242
|
return g ? Z : Z.endOf(S);
|
|
243
243
|
}, x = function(Q, q) {
|
|
@@ -245,12 +245,12 @@ function tt() {
|
|
|
245
245
|
}, G = this.$W, k = this.$M, H = this.$D, te = "set" + (this.$u ? "UTC" : "");
|
|
246
246
|
switch (p) {
|
|
247
247
|
case C:
|
|
248
|
-
return g ?
|
|
248
|
+
return g ? D(1, 0) : D(31, 11);
|
|
249
249
|
case y:
|
|
250
|
-
return g ?
|
|
250
|
+
return g ? D(1, k) : D(0, k + 1);
|
|
251
251
|
case A:
|
|
252
252
|
var X = this.$locale().weekStart || 0, re = (G < X ? G + 7 : G) - X;
|
|
253
|
-
return
|
|
253
|
+
return D(g ? H - re : H + (6 - re), k);
|
|
254
254
|
case S:
|
|
255
255
|
case E:
|
|
256
256
|
return x(te + "Hours", 0);
|
|
@@ -266,11 +266,11 @@ function tt() {
|
|
|
266
266
|
}, o.endOf = function(a) {
|
|
267
267
|
return this.startOf(a, !1);
|
|
268
268
|
}, o.$set = function(a, f) {
|
|
269
|
-
var l, g = O.p(a), p = "set" + (this.$u ? "UTC" : ""),
|
|
269
|
+
var l, g = O.p(a), p = "set" + (this.$u ? "UTC" : ""), D = (l = {}, l[S] = p + "Date", l[E] = p + "Date", l[y] = p + "Month", l[C] = p + "FullYear", l[h] = p + "Hours", l[c] = p + "Minutes", l[u] = p + "Seconds", l[s] = p + "Milliseconds", l)[g], x = g === S ? this.$D + (f - this.$W) : f;
|
|
270
270
|
if (g === y || g === C) {
|
|
271
271
|
var G = this.clone().set(E, 1);
|
|
272
|
-
G.$d[
|
|
273
|
-
} else
|
|
272
|
+
G.$d[D](x), G.init(), this.$d = G.set(E, Math.min(this.$D, G.daysInMonth())).$d;
|
|
273
|
+
} else D && this.$d[D](x);
|
|
274
274
|
return this.init(), this;
|
|
275
275
|
}, o.set = function(a, f) {
|
|
276
276
|
return this.clone().$set(a, f);
|
|
@@ -279,14 +279,14 @@ function tt() {
|
|
|
279
279
|
}, o.add = function(a, f) {
|
|
280
280
|
var l, g = this;
|
|
281
281
|
a = Number(a);
|
|
282
|
-
var p = O.p(f),
|
|
282
|
+
var p = O.p(f), D = function(k) {
|
|
283
283
|
var H = L(g);
|
|
284
284
|
return O.w(H.date(H.date() + Math.round(k * a)), g);
|
|
285
285
|
};
|
|
286
286
|
if (p === y) return this.set(y, this.$M + a);
|
|
287
287
|
if (p === C) return this.set(C, this.$y + a);
|
|
288
|
-
if (p === S) return
|
|
289
|
-
if (p === A) return
|
|
288
|
+
if (p === S) return D(1);
|
|
289
|
+
if (p === A) return D(7);
|
|
290
290
|
var x = (l = {}, l[c] = t, l[h] = r, l[u] = n, l)[p] || 1, G = this.$d.getTime() + a * x;
|
|
291
291
|
return O.w(G, this);
|
|
292
292
|
}, o.subtract = function(a, f) {
|
|
@@ -294,10 +294,10 @@ function tt() {
|
|
|
294
294
|
}, o.format = function(a) {
|
|
295
295
|
var f = this, l = this.$locale();
|
|
296
296
|
if (!this.isValid()) return l.invalidDate || d;
|
|
297
|
-
var g = a || "YYYY-MM-DDTHH:mm:ssZ", p = O.z(this),
|
|
297
|
+
var g = a || "YYYY-MM-DDTHH:mm:ssZ", p = O.z(this), D = this.$H, x = this.$m, G = this.$M, k = l.weekdays, H = l.months, te = l.meridiem, X = function(q, Z, ie, ae) {
|
|
298
298
|
return q && (q[Z] || q(f, g)) || ie[Z].slice(0, ae);
|
|
299
299
|
}, re = function(q) {
|
|
300
|
-
return O.s(
|
|
300
|
+
return O.s(D % 12 || 12, q, "0");
|
|
301
301
|
}, Q = te || function(q, Z, ie) {
|
|
302
302
|
var ae = q < 12 ? "AM" : "PM";
|
|
303
303
|
return ie ? ae.toLowerCase() : ae;
|
|
@@ -330,17 +330,17 @@ function tt() {
|
|
|
330
330
|
case "dddd":
|
|
331
331
|
return k[f.$W];
|
|
332
332
|
case "H":
|
|
333
|
-
return String(
|
|
333
|
+
return String(D);
|
|
334
334
|
case "HH":
|
|
335
|
-
return O.s(
|
|
335
|
+
return O.s(D, 2, "0");
|
|
336
336
|
case "h":
|
|
337
337
|
return re(1);
|
|
338
338
|
case "hh":
|
|
339
339
|
return re(2);
|
|
340
340
|
case "a":
|
|
341
|
-
return Q(
|
|
341
|
+
return Q(D, x, !0);
|
|
342
342
|
case "A":
|
|
343
|
-
return Q(
|
|
343
|
+
return Q(D, x, !1);
|
|
344
344
|
case "m":
|
|
345
345
|
return String(x);
|
|
346
346
|
case "mm":
|
|
@@ -360,10 +360,10 @@ function tt() {
|
|
|
360
360
|
}, o.utcOffset = function() {
|
|
361
361
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
362
362
|
}, o.diff = function(a, f, l) {
|
|
363
|
-
var g, p = this,
|
|
363
|
+
var g, p = this, D = O.p(f), x = L(a), G = (x.utcOffset() - this.utcOffset()) * t, k = this - x, H = function() {
|
|
364
364
|
return O.m(p, x);
|
|
365
365
|
};
|
|
366
|
-
switch (
|
|
366
|
+
switch (D) {
|
|
367
367
|
case C:
|
|
368
368
|
g = H() / 12;
|
|
369
369
|
break;
|
|
@@ -476,8 +476,8 @@ function kt() {
|
|
|
476
476
|
}));
|
|
477
477
|
})(fe)), fe.exports;
|
|
478
478
|
}
|
|
479
|
-
var
|
|
480
|
-
const
|
|
479
|
+
var _t = kt();
|
|
480
|
+
const Dt = /* @__PURE__ */ j(_t);
|
|
481
481
|
var de = { exports: {} }, bt = de.exports, Ne;
|
|
482
482
|
function It() {
|
|
483
483
|
return Ne || (Ne = 1, (function(i, e) {
|
|
@@ -537,13 +537,13 @@ function Yt() {
|
|
|
537
537
|
var s = t.prototype, u = function(y) {
|
|
538
538
|
return y && (y.indexOf ? y : y.s);
|
|
539
539
|
}, c = function(y, m, C, E, d) {
|
|
540
|
-
var M = y.name ? y : y.$locale(), I = u(M[m]), b = u(M[C]),
|
|
540
|
+
var M = y.name ? y : y.$locale(), I = u(M[m]), b = u(M[C]), _ = I || b.map((function(T) {
|
|
541
541
|
return T.slice(0, E);
|
|
542
542
|
}));
|
|
543
|
-
if (!d) return
|
|
543
|
+
if (!d) return _;
|
|
544
544
|
var $ = M.weekStart;
|
|
545
|
-
return
|
|
546
|
-
return
|
|
545
|
+
return _.map((function(T, B) {
|
|
546
|
+
return _[(B + ($ || 0)) % 7];
|
|
547
547
|
}));
|
|
548
548
|
}, h = function() {
|
|
549
549
|
return r.Ls[r.locale()];
|
|
@@ -621,8 +621,8 @@ function zt() {
|
|
|
621
621
|
var S = this.$locale().formats, A = (function(y, m) {
|
|
622
622
|
return y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(C, E, d) {
|
|
623
623
|
var M = d && d.toUpperCase();
|
|
624
|
-
return E || m[d] || n[d] || m[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(I, b,
|
|
625
|
-
return b ||
|
|
624
|
+
return E || m[d] || n[d] || m[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(I, b, _) {
|
|
625
|
+
return b || _.slice(1);
|
|
626
626
|
}));
|
|
627
627
|
}));
|
|
628
628
|
})(h, S === void 0 ? {} : S);
|
|
@@ -676,7 +676,7 @@ function nn() {
|
|
|
676
676
|
return s.fromToBase(S, A, y, m);
|
|
677
677
|
}
|
|
678
678
|
r.en.relativeTime = u, s.fromToBase = function(S, A, y, m, C) {
|
|
679
|
-
for (var E, d, M, I = y.$locale().relativeTime || u, b = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }],
|
|
679
|
+
for (var E, d, M, I = y.$locale().relativeTime || u, b = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], _ = b.length, $ = 0; $ < _; $ += 1) {
|
|
680
680
|
var T = b[$];
|
|
681
681
|
T.d && (E = m ? r(S).diff(y, T.d, !0) : y.diff(S, T.d, !0));
|
|
682
682
|
var B = (n.rounding || Math.round)(Math.abs(E));
|
|
@@ -721,23 +721,23 @@ function sn() {
|
|
|
721
721
|
E === void 0 && (E = {});
|
|
722
722
|
var d = new Date(m), M = (function(I, b) {
|
|
723
723
|
b === void 0 && (b = {});
|
|
724
|
-
var
|
|
725
|
-
return T || (T = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: I, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName:
|
|
724
|
+
var _ = b.timeZoneName || "short", $ = I + "|" + _, T = t[$];
|
|
725
|
+
return T || (T = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: I, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: _ }), t[$] = T), T;
|
|
726
726
|
})(C, E);
|
|
727
727
|
return M.formatToParts(d);
|
|
728
728
|
}, S = function(m, C) {
|
|
729
729
|
for (var E = h(m, C), d = [], M = 0; M < E.length; M += 1) {
|
|
730
|
-
var I = E[M], b = I.type,
|
|
731
|
-
$ >= 0 && (d[$] = parseInt(
|
|
730
|
+
var I = E[M], b = I.type, _ = I.value, $ = n[b];
|
|
731
|
+
$ >= 0 && (d[$] = parseInt(_, 10));
|
|
732
732
|
}
|
|
733
733
|
var T = d[3], B = T === 24 ? 0 : T, F = d[0] + "-" + d[1] + "-" + d[2] + " " + B + ":" + d[4] + ":" + d[5] + ":000", K = +m;
|
|
734
734
|
return (u.utc(F).valueOf() - (K -= K % 1e3)) / 6e4;
|
|
735
735
|
}, A = s.prototype;
|
|
736
736
|
A.tz = function(m, C) {
|
|
737
737
|
m === void 0 && (m = c);
|
|
738
|
-
var E, d = this.utcOffset(), M = this.toDate(), I = M.toLocaleString("en-US", { timeZone: m }), b = Math.round((M - new Date(I)) / 1e3 / 60),
|
|
739
|
-
if (!Number(
|
|
740
|
-
else if (E = u(I, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(
|
|
738
|
+
var E, d = this.utcOffset(), M = this.toDate(), I = M.toLocaleString("en-US", { timeZone: m }), b = Math.round((M - new Date(I)) / 1e3 / 60), _ = 15 * -Math.round(M.getTimezoneOffset() / 15) - b;
|
|
739
|
+
if (!Number(_)) E = this.utcOffset(0, C);
|
|
740
|
+
else if (E = u(I, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(_, !0), C) {
|
|
741
741
|
var $ = E.utcOffset();
|
|
742
742
|
E = E.add(d - $, "minute");
|
|
743
743
|
}
|
|
@@ -761,7 +761,7 @@ function sn() {
|
|
|
761
761
|
if (F === L) return [U, F];
|
|
762
762
|
var O = S(U -= 60 * (L - F) * 1e3, K);
|
|
763
763
|
return L === O ? [U, L] : [B - 60 * Math.min(L, O) * 1e3, Math.max(L, O)];
|
|
764
|
-
})(u.utc(m, d).valueOf(), I, M),
|
|
764
|
+
})(u.utc(m, d).valueOf(), I, M), _ = b[0], $ = b[1], T = u(_).utcOffset($);
|
|
765
765
|
return T.$x.$timezone = M, T;
|
|
766
766
|
}, u.tz.guess = function() {
|
|
767
767
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -816,10 +816,10 @@ function fn() {
|
|
|
816
816
|
})(d), d === null)) return this;
|
|
817
817
|
var b = Math.abs(d) <= 16 ? 60 * d : d;
|
|
818
818
|
if (b === 0) return this.utc(M);
|
|
819
|
-
var
|
|
820
|
-
if (M) return
|
|
819
|
+
var _ = this.clone();
|
|
820
|
+
if (M) return _.$offset = b, _.$u = !1, _;
|
|
821
821
|
var $ = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
822
|
-
return (
|
|
822
|
+
return (_ = this.local().add(b + $, n)).$offset = b, _.$x.$localOffset = $, _;
|
|
823
823
|
};
|
|
824
824
|
var m = h.format;
|
|
825
825
|
h.format = function(d) {
|
|
@@ -842,8 +842,8 @@ function fn() {
|
|
|
842
842
|
var E = h.diff;
|
|
843
843
|
h.diff = function(d, M, I) {
|
|
844
844
|
if (d && this.$u === d.$u) return E.call(this, d, M, I);
|
|
845
|
-
var b = this.local(),
|
|
846
|
-
return E.call(b,
|
|
845
|
+
var b = this.local(), _ = c(d).local();
|
|
846
|
+
return E.call(b, _, M, I);
|
|
847
847
|
};
|
|
848
848
|
};
|
|
849
849
|
}));
|
|
@@ -882,7 +882,7 @@ function gn() {
|
|
|
882
882
|
})(Ae)), Ae.exports;
|
|
883
883
|
}
|
|
884
884
|
gn();
|
|
885
|
-
z.extend(
|
|
885
|
+
z.extend(Dt);
|
|
886
886
|
z.extend(Lt);
|
|
887
887
|
z.extend($t);
|
|
888
888
|
z.extend(Ft);
|
|
@@ -1258,10 +1258,6 @@ const Xn = {
|
|
|
1258
1258
|
Pp: "bkg-pp",
|
|
1259
1259
|
Qr: "bkg-qr"
|
|
1260
1260
|
}, or = {
|
|
1261
|
-
Disabled: "DISABLED",
|
|
1262
|
-
Enabled: "ENABLED",
|
|
1263
|
-
Forced: "FORCED"
|
|
1264
|
-
}, ar = {
|
|
1265
1261
|
DeDe: "de-DE",
|
|
1266
1262
|
EnUs: "en-US",
|
|
1267
1263
|
EsEs: "es-ES",
|
|
@@ -1269,7 +1265,7 @@ const Xn = {
|
|
|
1269
1265
|
ItIt: "it-IT",
|
|
1270
1266
|
NlNl: "nl-NL",
|
|
1271
1267
|
PtPt: "pt-PT"
|
|
1272
|
-
},
|
|
1268
|
+
}, ar = {
|
|
1273
1269
|
DeDe: "de-DE",
|
|
1274
1270
|
EnUs: "en-US",
|
|
1275
1271
|
EsEs: "es-ES",
|
|
@@ -1277,14 +1273,14 @@ const Xn = {
|
|
|
1277
1273
|
ItIt: "it-IT",
|
|
1278
1274
|
NlNl: "nl-NL",
|
|
1279
1275
|
PtPt: "pt-PT"
|
|
1280
|
-
},
|
|
1276
|
+
}, sr = {
|
|
1281
1277
|
Dr: "dr",
|
|
1282
1278
|
Mr: "mr",
|
|
1283
1279
|
Mrs: "mrs",
|
|
1284
1280
|
Ms: "ms",
|
|
1285
1281
|
NotSpecified: "notSpecified",
|
|
1286
1282
|
Prof: "prof"
|
|
1287
|
-
},
|
|
1283
|
+
}, ur = {
|
|
1288
1284
|
Ad: "AD",
|
|
1289
1285
|
Ae: "AE",
|
|
1290
1286
|
Af: "AF",
|
|
@@ -1528,7 +1524,7 @@ const Xn = {
|
|
|
1528
1524
|
Za: "ZA",
|
|
1529
1525
|
Zm: "ZM",
|
|
1530
1526
|
Zw: "ZW"
|
|
1531
|
-
},
|
|
1527
|
+
}, cr = {
|
|
1532
1528
|
Aed: "AED",
|
|
1533
1529
|
Afn: "AFN",
|
|
1534
1530
|
All: "ALL",
|
|
@@ -1667,7 +1663,7 @@ const Xn = {
|
|
|
1667
1663
|
Yer: "YER",
|
|
1668
1664
|
Zar: "ZAR",
|
|
1669
1665
|
Zmw: "ZMW"
|
|
1670
|
-
},
|
|
1666
|
+
}, lr = {
|
|
1671
1667
|
ApiError: "api_error",
|
|
1672
1668
|
BadGateway: "bad_gateway",
|
|
1673
1669
|
InternalServerError: "internal_server_error",
|
|
@@ -1677,23 +1673,23 @@ const Xn = {
|
|
|
1677
1673
|
ResourceNotFound: "resource_not_found",
|
|
1678
1674
|
Unauthorized: "unauthorized",
|
|
1679
1675
|
ValidationError: "validation_error"
|
|
1680
|
-
},
|
|
1676
|
+
}, fr = {
|
|
1681
1677
|
Included: "INCLUDED",
|
|
1682
1678
|
NotIncluded: "NOT_INCLUDED",
|
|
1683
1679
|
Optional: "OPTIONAL"
|
|
1684
|
-
},
|
|
1680
|
+
}, dr = {
|
|
1685
1681
|
BestMatch: "BEST_MATCH",
|
|
1686
1682
|
Cheapest: "CHEAPEST",
|
|
1687
1683
|
MatchingRoomCount: "MATCHING_ROOM_COUNT",
|
|
1688
1684
|
Regular: "REGULAR"
|
|
1689
|
-
},
|
|
1685
|
+
}, hr = {
|
|
1690
1686
|
Included: "included",
|
|
1691
1687
|
NotIncluded: "not_included",
|
|
1692
1688
|
Unknown: "unknown"
|
|
1693
|
-
},
|
|
1689
|
+
}, pr = {
|
|
1694
1690
|
HotelRoom: "HOTEL_ROOM",
|
|
1695
1691
|
Package: "PACKAGE"
|
|
1696
|
-
},
|
|
1692
|
+
}, mr = {
|
|
1697
1693
|
DeDe: "de-DE",
|
|
1698
1694
|
EnUs: "en-US",
|
|
1699
1695
|
EsEs: "es-ES",
|
|
@@ -1701,29 +1697,29 @@ const Xn = {
|
|
|
1701
1697
|
ItIt: "it-IT",
|
|
1702
1698
|
NlNl: "nl-NL",
|
|
1703
1699
|
PtPt: "pt-PT"
|
|
1704
|
-
},
|
|
1700
|
+
}, yr = {
|
|
1705
1701
|
CreditNote: "credit_note",
|
|
1706
1702
|
Invoice: "invoice"
|
|
1707
|
-
},
|
|
1703
|
+
}, gr = {
|
|
1708
1704
|
CreditCard: "CREDIT_CARD"
|
|
1709
|
-
},
|
|
1705
|
+
}, wr = {
|
|
1710
1706
|
Coupon: "COUPON"
|
|
1711
|
-
},
|
|
1707
|
+
}, vr = {
|
|
1712
1708
|
DepositAccount: "DEPOSIT_ACCOUNT"
|
|
1713
|
-
},
|
|
1709
|
+
}, Sr = {
|
|
1714
1710
|
PayLater: "PAY_LATER"
|
|
1715
|
-
},
|
|
1711
|
+
}, Rr = {
|
|
1716
1712
|
Disabled: "DISABLED",
|
|
1717
1713
|
Enabled: "ENABLED",
|
|
1718
1714
|
Forced: "FORCED"
|
|
1719
|
-
},
|
|
1715
|
+
}, Ar = {
|
|
1720
1716
|
Coupon: "COUPON",
|
|
1721
1717
|
CreditCard: "CREDIT_CARD",
|
|
1722
1718
|
DepositAccount: "DEPOSIT_ACCOUNT"
|
|
1723
|
-
},
|
|
1719
|
+
}, Cr = {
|
|
1724
1720
|
Complete: "COMPLETE",
|
|
1725
1721
|
InProgress: "IN_PROGRESS"
|
|
1726
|
-
},
|
|
1722
|
+
}, Er = {
|
|
1727
1723
|
Ad: "AD",
|
|
1728
1724
|
Ae: "AE",
|
|
1729
1725
|
Af: "AF",
|
|
@@ -1967,14 +1963,14 @@ const Xn = {
|
|
|
1967
1963
|
Za: "ZA",
|
|
1968
1964
|
Zm: "ZM",
|
|
1969
1965
|
Zw: "ZW"
|
|
1970
|
-
},
|
|
1966
|
+
}, Mr = {
|
|
1971
1967
|
Night: "PER_NIGHT",
|
|
1972
1968
|
Stay: "PER_STAY"
|
|
1973
|
-
},
|
|
1969
|
+
}, Tr = {
|
|
1974
1970
|
Adult: "PER_ADULT",
|
|
1975
1971
|
Booking: "PER_BOOKING"
|
|
1976
1972
|
};
|
|
1977
|
-
class
|
|
1973
|
+
class _n extends W {
|
|
1978
1974
|
/**
|
|
1979
1975
|
* Get Booking Policy
|
|
1980
1976
|
*/
|
|
@@ -2045,7 +2041,7 @@ class Dn extends W {
|
|
|
2045
2041
|
return this.createRaw(e, n);
|
|
2046
2042
|
}
|
|
2047
2043
|
}
|
|
2048
|
-
class
|
|
2044
|
+
class Dn extends W {
|
|
2049
2045
|
/**
|
|
2050
2046
|
* Cancel a confirmed Booking. A booking can only be cancelled if it\'s in one of the following status: **bkg-cf**, **bkg-pc**.
|
|
2051
2047
|
* Cancel a Booking
|
|
@@ -2285,11 +2281,11 @@ class _n extends W {
|
|
|
2285
2281
|
return this.updatePaymentMethodsRaw(e, n);
|
|
2286
2282
|
}
|
|
2287
2283
|
}
|
|
2288
|
-
const
|
|
2284
|
+
const Or = {
|
|
2289
2285
|
CheckInDate: "check_in_date",
|
|
2290
2286
|
CreatedAt: "created_at",
|
|
2291
2287
|
LastStatusUpdatedAt: "last_status_updated_at"
|
|
2292
|
-
},
|
|
2288
|
+
}, kr = {
|
|
2293
2289
|
Asc: "asc",
|
|
2294
2290
|
Desc: "desc"
|
|
2295
2291
|
};
|
|
@@ -2408,12 +2404,12 @@ class Bn extends W {
|
|
|
2408
2404
|
async list(e, n, t) {
|
|
2409
2405
|
return await rt(
|
|
2410
2406
|
() => this.listRaw(e, t),
|
|
2411
|
-
{ type:
|
|
2407
|
+
{ type: De.HOTEL_SEARCH_POLLING, minCallCount: t?.minCallCount, maxCallCount: t?.maxCallCount },
|
|
2412
2408
|
n
|
|
2413
2409
|
);
|
|
2414
2410
|
}
|
|
2415
2411
|
}
|
|
2416
|
-
const
|
|
2412
|
+
const Dr = {
|
|
2417
2413
|
DeDe: "de-DE",
|
|
2418
2414
|
EnUs: "en-US",
|
|
2419
2415
|
EsEs: "es-ES",
|
|
@@ -2421,13 +2417,13 @@ const br = {
|
|
|
2421
2417
|
ItIt: "it-IT",
|
|
2422
2418
|
NlNl: "nl-NL",
|
|
2423
2419
|
PtPt: "pt-PT"
|
|
2424
|
-
},
|
|
2420
|
+
}, br = {
|
|
2425
2421
|
Distance: "distance",
|
|
2426
2422
|
Price: "price",
|
|
2427
2423
|
Rating: "rating",
|
|
2428
2424
|
ReviewRating: "review_rating",
|
|
2429
2425
|
TopPicks: "top_picks"
|
|
2430
|
-
},
|
|
2426
|
+
}, Ir = {
|
|
2431
2427
|
Asc: "asc",
|
|
2432
2428
|
Desc: "desc"
|
|
2433
2429
|
};
|
|
@@ -2509,7 +2505,7 @@ class xn extends W {
|
|
|
2509
2505
|
async list(e, n, t) {
|
|
2510
2506
|
return await rt(
|
|
2511
2507
|
() => this.listRaw(e, t),
|
|
2512
|
-
{ type:
|
|
2508
|
+
{ type: De.HOTEL_ROOM_OFFERS, minCallCount: t?.minCallCount, maxCallCount: t?.maxCallCount },
|
|
2513
2509
|
n
|
|
2514
2510
|
);
|
|
2515
2511
|
}
|
|
@@ -2537,7 +2533,7 @@ class xn extends W {
|
|
|
2537
2533
|
return this.createRaw(e, n);
|
|
2538
2534
|
}
|
|
2539
2535
|
}
|
|
2540
|
-
const
|
|
2536
|
+
const Br = {
|
|
2541
2537
|
DeDe: "de-DE",
|
|
2542
2538
|
EnUs: "en-US",
|
|
2543
2539
|
EsEs: "es-ES",
|
|
@@ -2650,7 +2646,7 @@ class Nn extends W {
|
|
|
2650
2646
|
return this.listRaw(e, n);
|
|
2651
2647
|
}
|
|
2652
2648
|
}
|
|
2653
|
-
const
|
|
2649
|
+
const Lr = {
|
|
2654
2650
|
DeDe: "de-DE",
|
|
2655
2651
|
EnUs: "en-US",
|
|
2656
2652
|
EsEs: "es-ES",
|
|
@@ -2687,7 +2683,7 @@ class $n extends W {
|
|
|
2687
2683
|
return this.retrieveRaw(e, n);
|
|
2688
2684
|
}
|
|
2689
2685
|
}
|
|
2690
|
-
const
|
|
2686
|
+
const xr = {
|
|
2691
2687
|
DeDe: "de-DE",
|
|
2692
2688
|
EnUs: "en-US",
|
|
2693
2689
|
EsEs: "es-ES",
|
|
@@ -2819,7 +2815,7 @@ function Un() {
|
|
|
2819
2815
|
var a = new FileReader(), f = I(a);
|
|
2820
2816
|
return a.readAsArrayBuffer(o), f;
|
|
2821
2817
|
}
|
|
2822
|
-
function
|
|
2818
|
+
function _(o) {
|
|
2823
2819
|
var a = new FileReader(), f = I(a), l = /charset=([A-Za-z0-9_-]+)/.exec(o.type), g = l ? l[1] : "utf-8";
|
|
2824
2820
|
return a.readAsText(o, g), f;
|
|
2825
2821
|
}
|
|
@@ -2867,7 +2863,7 @@ function Un() {
|
|
|
2867
2863
|
if (o)
|
|
2868
2864
|
return o;
|
|
2869
2865
|
if (this._bodyBlob)
|
|
2870
|
-
return
|
|
2866
|
+
return _(this._bodyBlob);
|
|
2871
2867
|
if (this._bodyArrayBuffer)
|
|
2872
2868
|
return Promise.resolve($(this._bodyArrayBuffer));
|
|
2873
2869
|
if (this._bodyFormData)
|
|
@@ -2932,9 +2928,9 @@ function Un() {
|
|
|
2932
2928
|
}).forEach(function(l) {
|
|
2933
2929
|
var g = l.split(":"), p = g.shift().trim();
|
|
2934
2930
|
if (p) {
|
|
2935
|
-
var
|
|
2931
|
+
var D = g.join(":").trim();
|
|
2936
2932
|
try {
|
|
2937
|
-
a.append(p,
|
|
2933
|
+
a.append(p, D);
|
|
2938
2934
|
} catch (x) {
|
|
2939
2935
|
console.warn("Response " + x.message);
|
|
2940
2936
|
}
|
|
@@ -2981,7 +2977,7 @@ function Un() {
|
|
|
2981
2977
|
if (g.signal && g.signal.aborted)
|
|
2982
2978
|
return l(new u.DOMException("Aborted", "AbortError"));
|
|
2983
2979
|
var p = new XMLHttpRequest();
|
|
2984
|
-
function
|
|
2980
|
+
function D() {
|
|
2985
2981
|
p.abort();
|
|
2986
2982
|
}
|
|
2987
2983
|
p.onload = function() {
|
|
@@ -3025,8 +3021,8 @@ function Un() {
|
|
|
3025
3021
|
g.headers.forEach(function(k, H) {
|
|
3026
3022
|
p.setRequestHeader(H, k);
|
|
3027
3023
|
});
|
|
3028
|
-
g.signal && (g.signal.addEventListener("abort",
|
|
3029
|
-
p.readyState === 4 && g.signal.removeEventListener("abort",
|
|
3024
|
+
g.signal && (g.signal.addEventListener("abort", D), p.onreadystatechange = function() {
|
|
3025
|
+
p.readyState === 4 && g.signal.removeEventListener("abort", D);
|
|
3030
3026
|
}), p.send(typeof g._bodyInit > "u" ? null : g._bodyInit);
|
|
3031
3027
|
});
|
|
3032
3028
|
}
|
|
@@ -3039,8 +3035,8 @@ function Un() {
|
|
|
3039
3035
|
}
|
|
3040
3036
|
var Gn = Un();
|
|
3041
3037
|
const Hn = /* @__PURE__ */ j(Gn), Fn = (i) => ({
|
|
3042
|
-
bookingPolicies: new
|
|
3043
|
-
bookings: new
|
|
3038
|
+
bookingPolicies: new _n(i),
|
|
3039
|
+
bookings: new Dn(i),
|
|
3044
3040
|
hotelImages: new bn(i),
|
|
3045
3041
|
hotelOfferRequests: new In(i),
|
|
3046
3042
|
hotelOffers: new Bn(i),
|
|
@@ -3092,7 +3088,7 @@ class Vn {
|
|
|
3092
3088
|
}), e;
|
|
3093
3089
|
}
|
|
3094
3090
|
}
|
|
3095
|
-
class
|
|
3091
|
+
class Pr {
|
|
3096
3092
|
constructor(e) {
|
|
3097
3093
|
if (this.config = e, !e.apiVersion || !Object.values(Oe).includes(e.apiVersion))
|
|
3098
3094
|
throw new Error(
|
|
@@ -3161,59 +3157,58 @@ export {
|
|
|
3161
3157
|
tr as AllowedPaymentMethodApiOneOf3NameEnum,
|
|
3162
3158
|
nr as AllowedPaymentMethodApiOneOf3PayloadStatusEnum,
|
|
3163
3159
|
Xn as AllowedPaymentMethodApiOneOfNameEnum,
|
|
3164
|
-
|
|
3160
|
+
Pr as ApiClient,
|
|
3165
3161
|
Mn as BASE_PATH,
|
|
3166
3162
|
W as BaseAPI,
|
|
3167
3163
|
Jn as BlobApiResponse,
|
|
3168
3164
|
rr as BookingApiPayLaterEnum,
|
|
3169
3165
|
ir as BookingApiStatusEnum,
|
|
3170
|
-
|
|
3171
|
-
or as
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
kr as
|
|
3175
|
-
Dr as BookingsSortByOrderEnum,
|
|
3166
|
+
_n as BookingPolicies,
|
|
3167
|
+
or as BookingPoliciesCreateApiLangEnum,
|
|
3168
|
+
Dn as Bookings,
|
|
3169
|
+
Or as BookingsSortByEnum,
|
|
3170
|
+
kr as BookingsSortByOrderEnum,
|
|
3176
3171
|
qn as COLLECTION_FORMATS,
|
|
3177
3172
|
it as Configuration,
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3173
|
+
ar as ContactPersonApiLangEnum,
|
|
3174
|
+
sr as ContactPersonApiSalutationEnum,
|
|
3175
|
+
ur as CountryIso2Code,
|
|
3176
|
+
cr as CurrencyBookingApiClient,
|
|
3177
|
+
lr as ErrorApiResponseTypeEnum,
|
|
3183
3178
|
bn as HotelImages,
|
|
3184
3179
|
_r as HotelImagesLangEnum,
|
|
3185
3180
|
In as HotelOfferRequests,
|
|
3186
3181
|
Bn as HotelOffers,
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3182
|
+
Dr as HotelOffersLangEnum,
|
|
3183
|
+
br as HotelOffersSortByEnum,
|
|
3184
|
+
Ir as HotelOffersSortByOrderEnum,
|
|
3185
|
+
fr as HotelRoomOfferApiBreakfastOptionEnum,
|
|
3186
|
+
dr as HotelRoomOfferApiPackageTypeEnum,
|
|
3187
|
+
hr as HotelRoomOfferApiStayTaxesInfoEnum,
|
|
3188
|
+
pr as HotelRoomOfferApiTypeEnum,
|
|
3194
3189
|
Ln as HotelRoomOfferRequests,
|
|
3195
3190
|
xn as HotelRoomOffers,
|
|
3196
|
-
|
|
3197
|
-
|
|
3191
|
+
mr as HotelRoomOffersCreateApiLangEnum,
|
|
3192
|
+
Br as HotelRoomOffersLangEnum,
|
|
3198
3193
|
Pn as HotelRoomingListGuests,
|
|
3199
3194
|
Nn as HotelRoomingLists,
|
|
3200
|
-
|
|
3195
|
+
Lr as HotelRoomingListsLangEnum,
|
|
3201
3196
|
$n as Hotels,
|
|
3202
|
-
|
|
3203
|
-
|
|
3197
|
+
xr as HotelsLangEnum,
|
|
3198
|
+
yr as InvoiceApiTypeEnum,
|
|
3204
3199
|
P as JSONApiResponse,
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3200
|
+
wr as PaymentMethodApiOneOf1NameEnum,
|
|
3201
|
+
vr as PaymentMethodApiOneOf2NameEnum,
|
|
3202
|
+
Sr as PaymentMethodApiOneOf3NameEnum,
|
|
3203
|
+
Rr as PaymentMethodApiOneOf3PayloadStatusEnum,
|
|
3204
|
+
gr as PaymentMethodApiOneOfNameEnum,
|
|
3205
|
+
Ar as PaymentMethodRequestApiNameEnum,
|
|
3206
|
+
Cr as PollerStatus,
|
|
3212
3207
|
N as RequiredError,
|
|
3213
3208
|
On as ResponseError,
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3209
|
+
Er as SourceMarket,
|
|
3210
|
+
Mr as TaxApiTaxFrequencyEnum,
|
|
3211
|
+
Tr as TaxApiTaxModeEnum,
|
|
3217
3212
|
kn as TextApiResponse,
|
|
3218
3213
|
Zn as VoidApiResponse,
|
|
3219
3214
|
Wn as canConsumeForm,
|
package/dist/index.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(m,ie){typeof exports=="object"&&typeof module<"u"?ie(exports):typeof define=="function"&&define.amd?define(["exports"],ie):(m=typeof globalThis<"u"?globalThis:m||self,ie(m["@revolugo/booking-api-client"]={}))})(this,(function(m){"use strict";const ie=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),Et=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),Ct=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),Ot=/[^\p{L}\d]+/giu,Ne="$1\0$2",Ue="";function $e(i){let e=i.trim();e=e.replace(ie,Ne).replace(Et,Ne),e=e.replace(Ot,"\0");let n=0,t=e.length;for(;e.charAt(n)==="\0";)n++;if(n===t)return[];for(;e.charAt(t-1)==="\0";)t--;return e.slice(n,t).split(/\0/g)}function Tt(i){const e=$e(i);for(let n=0;n<e.length;n++){const t=e[n],r=Ct.exec(t);if(r){const s=r.index+(r[1]??r[2]).length;e.splice(n,1,t.slice(0,s),t.slice(s))}}return e}function xe(i,e){const[n,t,r]=ue(i,e);return n+t.map(se(e?.locale)).join(e?.delimiter??" ")+r}function Mt(i,e){const[n,t,r]=ue(i,e),s=se(e?.locale),u=ke(e?.locale),c=e?.mergeAmbiguousCharacters?_e(s,u):Ge(s,u);return n+t.map((h,A)=>A===0?s(h):c(h,A)).join(e?.delimiter??"")+r}function kt(i,e){const[n,t,r]=ue(i,e),s=se(e?.locale),u=ke(e?.locale),c=e?.mergeAmbiguousCharacters?_e(s,u):Ge(s,u);return n+t.map(c).join(e?.delimiter??"")+r}function _t(i,e){const[n,t,r]=ue(i,e),s=se(e?.locale),u=ke(e?.locale);return n+t.map(_e(s,u)).join(e?.delimiter??" ")+r}function He(i,e){return xe(i,{delimiter:"-",...e})}function Dt(i,e){return xe(i,{delimiter:"_",...e})}function se(i){return i===!1?e=>e.toLowerCase():e=>e.toLocaleLowerCase(i)}function ke(i){return i===!1?e=>e.toUpperCase():e=>e.toLocaleUpperCase(i)}function _e(i,e){return n=>`${e(n[0])}${i(n.slice(1))}`}function Ge(i,e){return(n,t)=>{const r=n[0];return(t>0&&r>="0"&&r<="9"?"_"+r:e(r))+i(n.slice(1))}}function ue(i,e={}){const n=e.split??(e.separateNumbers?Tt:$e),t=e.prefixCharacters??Ue,r=e.suffixCharacters??Ue;let s=0,u=i.length;for(;s<i.length;){const c=i.charAt(s);if(!t.includes(c))break;s++}for(;u>s;){const c=u-1,h=i.charAt(c);if(!r.includes(h))break;u=c}return[i.slice(0,s),n(i.slice(s,u)),i.slice(u)]}var ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function z(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var le={exports:{}},bt=le.exports,Fe;function Bt(){return Fe||(Fe=1,(function(i,e){(function(n,t,r){i.exports=r(),i.exports.default=r()})("slugify",bt,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),t=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function r(s,u){if(typeof s!="string")throw new Error("slugify: string argument expected");u=typeof u=="string"?{replacement:u}:u||{};var c=t[u.locale]||{},h=u.replacement===void 0?"-":u.replacement,A=u.trim===void 0?!0:u.trim,E=s.normalize().split("").reduce(function(g,y){var C=c[y];return C===void 0&&(C=n[y]),C===void 0&&(C=y),C===h&&(C=" "),g+C.replace(u.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return u.strict&&(E=E.replace(/[^A-Za-z0-9\s]/g,"")),A&&(E=E.trim()),E=E.replace(/\s+/g,h),u.lower&&(E=E.toLowerCase()),E}return r.extend=function(s){Object.assign(n,s)},r})})(le)),le.exports}var It=Bt();const Lt=z(It);function Pt(i){return Lt(He(i),{lower:!0,strict:!0})}var S=(i=>(i.Camel="camelCase",i.Capital="capitalCase",i.Param="paramCase",i.Pascal="pascalCase",i.Slug="slugCase",i.Snake="snakeCase",i))(S||{});const Nt={camelCase:Mt,capitalCase:_t,paramCase:He,pascalCase:kt,slugCase:Pt,snakeCase:Dt};function Ut(i,e){return i.some(n=>typeof n=="string"?n===e:n.test(e))}function $t(i){return i===Object(i)&&!Array.isArray(i)&&typeof i!="function"}function v(i,e,n={deep:!0}){return $t(i)?Object.keys(i).reduce((t,r)=>{const s=n?.exclude&&Ut(n.exclude,r)?r:Nt[e](r);return t[s]=n.deep?v(i[r],e,n):i[r],t},{}):Array.isArray(i)?i.map(t=>v(t,e,n)):i}var De=(i=>(i.V1="v1",i))(De||{}),Q=(i=>(i.Production="LIVE",i.Sandbox="SANDBOX",i.Staging="STAGING",i.CiCd="CI-CD",i.Local="LOCAL",i))(Q||{});const xt={LIVE:"https://booking-api.revolugo.com",SANDBOX:"https://booking-api.sandbox.revolugo.com",STAGING:"https://booking-api.staging.revolugo.com","CI-CD":"https://booking-api.staging.revolugo.com",LOCAL:"http://127.0.0.1:3001"};var be=(i=>(i.HOTEL_ROOM_OFFERS="HOTEL_ROOM_OFFERS",i.HOTEL_SEARCH_POLLING="HOTEL_SEARCH_POLLING",i))(be||{}),fe={exports:{}},Ht=fe.exports,Ke;function Ye(){return Ke||(Ke=1,(function(i,e){(function(n,t){i.exports=t()})(Ht,(function(){var n=1e3,t=6e4,r=36e5,s="millisecond",u="second",c="minute",h="hour",A="day",E="week",g="month",y="quarter",C="year",O="date",d="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,B={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var o=["th","st","nd","rd"],a=R%100;return"["+R+(o[(a-20)%10]||o[a]||o[0])+"]"}},D=function(R,o,a){var f=String(R);return!f||f.length>=o?R:""+Array(o+1-f.length).join(a)+R},x={s:D,z:function(R){var o=-R.utcOffset(),a=Math.abs(o),f=Math.floor(a/60),l=a%60;return(o<=0?"+":"-")+D(f,2,"0")+":"+D(l,2,"0")},m:function R(o,a){if(o.date()<a.date())return-R(a,o);var f=12*(a.year()-o.year())+(a.month()-o.month()),l=o.clone().add(f,g),w=a-l<0,p=o.clone().add(f+(w?-1:1),g);return+(-(f+(a-l)/(w?l-p:p-l))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:g,y:C,w:E,d:A,D:O,h,m:c,s:u,ms:s,Q:y}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},M="en",L={};L[M]=B;var K="$isDayjsObject",V=function(R){return R instanceof q||!(!R||!R[K])},H=function R(o,a,f){var l;if(!o)return M;if(typeof o=="string"){var w=o.toLowerCase();L[w]&&(l=w),a&&(L[w]=a,l=w);var p=o.split("-");if(!l&&p.length>1)return R(p[0])}else{var b=o.name;L[b]=o,l=b}return!f&&l&&(M=l),l||!f&&M},P=function(R,o){if(V(R))return R.clone();var a=typeof o=="object"?o:{};return a.date=R,a.args=arguments,new q(a)},k=x;k.l=H,k.i=V,k.w=function(R,o){return P(R,{locale:o.$L,utc:o.$u,x:o.$x,$offset:o.$offset})};var q=(function(){function R(a){this.$L=H(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[K]=!0}var o=R.prototype;return o.parse=function(a){this.$d=(function(f){var l=f.date,w=f.utc;if(l===null)return new Date(NaN);if(k.u(l))return new Date;if(l instanceof Date)return new Date(l);if(typeof l=="string"&&!/Z$/i.test(l)){var p=l.match(T);if(p){var b=p[2]-1||0,$=(p[7]||"0").substring(0,3);return w?new Date(Date.UTC(p[1],b,p[3]||1,p[4]||0,p[5]||0,p[6]||0,$)):new Date(p[1],b,p[3]||1,p[4]||0,p[5]||0,p[6]||0,$)}}return new Date(l)})(a),this.init()},o.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},o.$utils=function(){return k},o.isValid=function(){return this.$d.toString()!==d},o.isSame=function(a,f){var l=P(a);return this.startOf(f)<=l&&l<=this.endOf(f)},o.isAfter=function(a,f){return P(a)<this.startOf(f)},o.isBefore=function(a,f){return this.endOf(f)<P(a)},o.$g=function(a,f,l){return k.u(a)?this[f]:this.set(l,a)},o.unix=function(){return Math.floor(this.valueOf()/1e3)},o.valueOf=function(){return this.$d.getTime()},o.startOf=function(a,f){var l=this,w=!!k.u(f)||f,p=k.p(a),b=function(te,j){var X=k.w(l.$u?Date.UTC(l.$y,j,te):new Date(l.$y,j,te),l);return w?X:X.endOf(A)},$=function(te,j){return k.w(l.toDate()[te].apply(l.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(j)),l)},G=this.$W,_=this.$M,F=this.$D,re="set"+(this.$u?"UTC":"");switch(p){case C:return w?b(1,0):b(31,11);case g:return w?b(1,_):b(0,_+1);case E:var ee=this.$locale().weekStart||0,oe=(G<ee?G+7:G)-ee;return b(w?F-oe:F+(6-oe),_);case A:case O:return $(re+"Hours",0);case h:return $(re+"Minutes",1);case c:return $(re+"Seconds",2);case u:return $(re+"Milliseconds",3);default:return this.clone()}},o.endOf=function(a){return this.startOf(a,!1)},o.$set=function(a,f){var l,w=k.p(a),p="set"+(this.$u?"UTC":""),b=(l={},l[A]=p+"Date",l[O]=p+"Date",l[g]=p+"Month",l[C]=p+"FullYear",l[h]=p+"Hours",l[c]=p+"Minutes",l[u]=p+"Seconds",l[s]=p+"Milliseconds",l)[w],$=w===A?this.$D+(f-this.$W):f;if(w===g||w===C){var G=this.clone().set(O,1);G.$d[b]($),G.init(),this.$d=G.set(O,Math.min(this.$D,G.daysInMonth())).$d}else b&&this.$d[b]($);return this.init(),this},o.set=function(a,f){return this.clone().$set(a,f)},o.get=function(a){return this[k.p(a)]()},o.add=function(a,f){var l,w=this;a=Number(a);var p=k.p(f),b=function(_){var F=P(w);return k.w(F.date(F.date()+Math.round(_*a)),w)};if(p===g)return this.set(g,this.$M+a);if(p===C)return this.set(C,this.$y+a);if(p===A)return b(1);if(p===E)return b(7);var $=(l={},l[c]=t,l[h]=r,l[u]=n,l)[p]||1,G=this.$d.getTime()+a*$;return k.w(G,this)},o.subtract=function(a,f){return this.add(-1*a,f)},o.format=function(a){var f=this,l=this.$locale();if(!this.isValid())return l.invalidDate||d;var w=a||"YYYY-MM-DDTHH:mm:ssZ",p=k.z(this),b=this.$H,$=this.$m,G=this.$M,_=l.weekdays,F=l.months,re=l.meridiem,ee=function(j,X,ae,Me){return j&&(j[X]||j(f,w))||ae[X].slice(0,Me)},oe=function(j){return k.s(b%12||12,j,"0")},te=re||function(j,X,ae){var Me=j<12?"AM":"PM";return ae?Me.toLowerCase():Me};return w.replace(I,(function(j,X){return X||(function(ae){switch(ae){case"YY":return String(f.$y).slice(-2);case"YYYY":return k.s(f.$y,4,"0");case"M":return G+1;case"MM":return k.s(G+1,2,"0");case"MMM":return ee(l.monthsShort,G,F,3);case"MMMM":return ee(F,G);case"D":return f.$D;case"DD":return k.s(f.$D,2,"0");case"d":return String(f.$W);case"dd":return ee(l.weekdaysMin,f.$W,_,2);case"ddd":return ee(l.weekdaysShort,f.$W,_,3);case"dddd":return _[f.$W];case"H":return String(b);case"HH":return k.s(b,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return te(b,$,!0);case"A":return te(b,$,!1);case"m":return String($);case"mm":return k.s($,2,"0");case"s":return String(f.$s);case"ss":return k.s(f.$s,2,"0");case"SSS":return k.s(f.$ms,3,"0");case"Z":return p}return null})(j)||p.replace(":","")}))},o.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},o.diff=function(a,f,l){var w,p=this,b=k.p(f),$=P(a),G=($.utcOffset()-this.utcOffset())*t,_=this-$,F=function(){return k.m(p,$)};switch(b){case C:w=F()/12;break;case g:w=F();break;case y:w=F()/3;break;case E:w=(_-G)/6048e5;break;case A:w=(_-G)/864e5;break;case h:w=_/r;break;case c:w=_/t;break;case u:w=_/n;break;default:w=_}return l?w:k.a(w)},o.daysInMonth=function(){return this.endOf(g).$D},o.$locale=function(){return L[this.$L]},o.locale=function(a,f){if(!a)return this.$L;var l=this.clone(),w=H(a,f,!0);return w&&(l.$L=w),l},o.clone=function(){return k.w(this.$d,this)},o.toDate=function(){return new Date(this.valueOf())},o.toJSON=function(){return this.isValid()?this.toISOString():null},o.toISOString=function(){return this.$d.toISOString()},o.toString=function(){return this.$d.toUTCString()},R})(),Te=q.prototype;return P.prototype=Te,[["$ms",s],["$s",u],["$m",c],["$H",h],["$W",A],["$M",g],["$y",C],["$D",O]].forEach((function(R){Te[R[1]]=function(o){return this.$g(o,R[0],R[1])}})),P.extend=function(R,o){return R.$i||(R(o,q,P),R.$i=!0),P},P.locale=H,P.isDayjs=V,P.unix=function(R){return P(1e3*R)},P.en=L[M],P.Ls=L,P.p={},P}))})(fe)),fe.exports}var Gt=Ye();const Z=z(Gt);var de={exports:{}},Ft=de.exports,Ve;function Kt(){return Ve||(Ve=1,(function(i,e){(function(n,t){i.exports=t()})(Ft,(function(){return function(n,t){var r=t.prototype,s=r.format;r.format=function(u){var c=this,h=this.$locale();if(!this.isValid())return s.bind(this)(u);var A=this.$utils(),E=(u||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(g){switch(g){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return h.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return h.ordinal(c.week(),"W");case"w":case"ww":return A.s(c.week(),g==="w"?1:2,"0");case"W":case"WW":return A.s(c.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return A.s(String(c.$H===0?24:c.$H),g==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return g}}));return s.bind(this)(E)}}}))})(de)),de.exports}var Yt=Kt();const Vt=z(Yt);var he={exports:{}},qt=he.exports,qe;function jt(){return qe||(qe=1,(function(i,e){(function(n,t){i.exports=t()})(qt,(function(){return function(n,t,r){t.prototype.isBetween=function(s,u,c,h){var A=r(s),E=r(u),g=(h=h||"()")[0]==="(",y=h[1]===")";return(g?this.isAfter(A,c):!this.isBefore(A,c))&&(y?this.isBefore(E,c):!this.isAfter(E,c))||(g?this.isBefore(A,c):!this.isAfter(A,c))&&(y?this.isAfter(E,c):!this.isBefore(E,c))}}}))})(he)),he.exports}var zt=jt();const Wt=z(zt);var pe={exports:{}},Zt=pe.exports,je;function Jt(){return je||(je=1,(function(i,e){(function(n,t){i.exports=t()})(Zt,(function(){return function(n,t){t.prototype.isSameOrAfter=function(r,s){return this.isSame(r,s)||this.isAfter(r,s)}}}))})(pe)),pe.exports}var Xt=Jt();const Qt=z(Xt);var me={exports:{}},en=me.exports,ze;function tn(){return ze||(ze=1,(function(i,e){(function(n,t){i.exports=t()})(en,(function(){return function(n,t){t.prototype.isSameOrBefore=function(r,s){return this.isSame(r,s)||this.isBefore(r,s)}}}))})(me)),me.exports}var nn=tn();const rn=z(nn);var ye={exports:{}},on=ye.exports,We;function an(){return We||(We=1,(function(i,e){(function(n,t){i.exports=t()})(on,(function(){return function(n,t,r){var s=t.prototype,u=function(g){return g&&(g.indexOf?g:g.s)},c=function(g,y,C,O,d){var T=g.name?g:g.$locale(),I=u(T[y]),B=u(T[C]),D=I||B.map((function(M){return M.slice(0,O)}));if(!d)return D;var x=T.weekStart;return D.map((function(M,L){return D[(L+(x||0))%7]}))},h=function(){return r.Ls[r.locale()]},A=function(g,y){return g.formats[y]||(function(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(O,d,T){return d||T.slice(1)}))})(g.formats[y.toUpperCase()])},E=function(){var g=this;return{months:function(y){return y?y.format("MMMM"):c(g,"months")},monthsShort:function(y){return y?y.format("MMM"):c(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):c(g,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):c(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):c(g,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return A(g.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return E.bind(this)()},r.localeData=function(){var g=h();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(y){return A(g,y)},meridiem:g.meridiem,ordinal:g.ordinal}},r.months=function(){return c(h(),"months")},r.monthsShort=function(){return c(h(),"monthsShort","months",3)},r.weekdays=function(g){return c(h(),"weekdays",null,null,g)},r.weekdaysShort=function(g){return c(h(),"weekdaysShort","weekdays",3,g)},r.weekdaysMin=function(g){return c(h(),"weekdaysMin","weekdays",2,g)}}}))})(ye)),ye.exports}var sn=an();const un=z(sn);var ge={exports:{}},cn=ge.exports,Ze;function ln(){return Ze||(Ze=1,(function(i,e){(function(n,t){i.exports=t()})(cn,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,r,s){var u=r.prototype,c=u.format;s.en.formats=n,u.format=function(h){h===void 0&&(h="YYYY-MM-DDTHH:mm:ssZ");var A=this.$locale().formats,E=(function(g,y){return g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(C,O,d){var T=d&&d.toUpperCase();return O||y[d]||n[d]||y[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(I,B,D){return B||D.slice(1)}))}))})(h,A===void 0?{}:A);return c.call(this,E)}}}))})(ge)),ge.exports}var fn=ln();const dn=z(fn);var we={exports:{}},hn=we.exports,Je;function pn(){return Je||(Je=1,(function(i,e){(function(n,t){i.exports=t()})(hn,(function(){return function(n,t,r){var s=function(u,c){if(!c||!c.length||c.length===1&&!c[0]||c.length===1&&Array.isArray(c[0])&&!c[0].length)return null;var h;c.length===1&&c[0].length>0&&(c=c[0]),h=(c=c.filter((function(E){return E})))[0];for(var A=1;A<c.length;A+=1)c[A].isValid()&&!c[A][u](h)||(h=c[A]);return h};r.max=function(){var u=[].slice.call(arguments,0);return s("isAfter",u)},r.min=function(){var u=[].slice.call(arguments,0);return s("isBefore",u)}}}))})(we)),we.exports}var mn=pn();const yn=z(mn);var ve={exports:{}},gn=ve.exports,Xe;function wn(){return Xe||(Xe=1,(function(i,e){(function(n,t){i.exports=t()})(gn,(function(){return function(n,t,r){n=n||{};var s=t.prototype,u={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(A,E,g,y){return s.fromToBase(A,E,g,y)}r.en.relativeTime=u,s.fromToBase=function(A,E,g,y,C){for(var O,d,T,I=g.$locale().relativeTime||u,B=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],D=B.length,x=0;x<D;x+=1){var M=B[x];M.d&&(O=y?r(A).diff(g,M.d,!0):g.diff(A,M.d,!0));var L=(n.rounding||Math.round)(Math.abs(O));if(T=O>0,L<=M.r||!M.r){L<=1&&x>0&&(M=B[x-1]);var K=I[M.l];C&&(L=C(""+L)),d=typeof K=="string"?K.replace("%d",L):K(L,E,M.l,T);break}}if(E)return d;var V=T?I.future:I.past;return typeof V=="function"?V(d):V.replace("%s",d)},s.to=function(A,E){return c(A,E,this,!0)},s.from=function(A,E){return c(A,E,this)};var h=function(A){return A.$u?r.utc():r()};s.toNow=function(A){return this.to(h(this),A)},s.fromNow=function(A){return this.from(h(this),A)}}}))})(ve)),ve.exports}var vn=wn();const Sn=z(vn);var Se={exports:{}},An=Se.exports,Qe;function Rn(){return Qe||(Qe=1,(function(i,e){(function(n,t){i.exports=t()})(An,(function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,s,u){var c,h=function(y,C,O){O===void 0&&(O={});var d=new Date(y),T=(function(I,B){B===void 0&&(B={});var D=B.timeZoneName||"short",x=I+"|"+D,M=t[x];return M||(M=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:I,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:D}),t[x]=M),M})(C,O);return T.formatToParts(d)},A=function(y,C){for(var O=h(y,C),d=[],T=0;T<O.length;T+=1){var I=O[T],B=I.type,D=I.value,x=n[B];x>=0&&(d[x]=parseInt(D,10))}var M=d[3],L=M===24?0:M,K=d[0]+"-"+d[1]+"-"+d[2]+" "+L+":"+d[4]+":"+d[5]+":000",V=+y;return(u.utc(K).valueOf()-(V-=V%1e3))/6e4},E=s.prototype;E.tz=function(y,C){y===void 0&&(y=c);var O,d=this.utcOffset(),T=this.toDate(),I=T.toLocaleString("en-US",{timeZone:y}),B=Math.round((T-new Date(I))/1e3/60),D=15*-Math.round(T.getTimezoneOffset()/15)-B;if(!Number(D))O=this.utcOffset(0,C);else if(O=u(I,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(D,!0),C){var x=O.utcOffset();O=O.add(d-x,"minute")}return O.$x.$timezone=y,O},E.offsetName=function(y){var C=this.$x.$timezone||u.tz.guess(),O=h(this.valueOf(),C,{timeZoneName:y}).find((function(d){return d.type.toLowerCase()==="timezonename"}));return O&&O.value};var g=E.startOf;E.startOf=function(y,C){if(!this.$x||!this.$x.$timezone)return g.call(this,y,C);var O=u(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return g.call(O,y,C).tz(this.$x.$timezone,!0)},u.tz=function(y,C,O){var d=O&&C,T=O||C||c,I=A(+u(),T);if(typeof y!="string")return u(y).tz(T);var B=(function(L,K,V){var H=L-60*K*1e3,P=A(H,V);if(K===P)return[H,K];var k=A(H-=60*(P-K)*1e3,V);return P===k?[H,P]:[L-60*Math.min(P,k)*1e3,Math.max(P,k)]})(u.utc(y,d).valueOf(),I,T),D=B[0],x=B[1],M=u(D).utcOffset(x);return M.$x.$timezone=T,M},u.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},u.tz.setDefault=function(y){c=y}}}))})(Se)),Se.exports}var En=Rn();const Cn=z(En);var Ae={exports:{}},On=Ae.exports,et;function Tn(){return et||(et=1,(function(i,e){(function(n,t){i.exports=t()})(On,(function(){var n="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(s,u,c){var h=u.prototype;c.utc=function(d){var T={date:d,utc:!0,args:arguments};return new u(T)},h.utc=function(d){var T=c(this.toDate(),{locale:this.$L,utc:!0});return d?T.add(this.utcOffset(),n):T},h.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var A=h.parse;h.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),A.call(this,d)};var E=h.init;h.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else E.call(this)};var g=h.utcOffset;h.utcOffset=function(d,T){var I=this.$utils().u;if(I(d))return this.$u?0:I(this.$offset)?g.call(this):this.$offset;if(typeof d=="string"&&(d=(function(M){M===void 0&&(M="");var L=M.match(t);if(!L)return null;var K=(""+L[0]).match(r)||["-",0,0],V=K[0],H=60*+K[1]+ +K[2];return H===0?0:V==="+"?H:-H})(d),d===null))return this;var B=Math.abs(d)<=16?60*d:d;if(B===0)return this.utc(T);var D=this.clone();if(T)return D.$offset=B,D.$u=!1,D;var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(D=this.local().add(B+x,n)).$offset=B,D.$x.$localOffset=x,D};var y=h.format;h.format=function(d){var T=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return y.call(this,T)},h.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var C=h.toDate;h.toDate=function(d){return d==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():C.call(this)};var O=h.diff;h.diff=function(d,T,I){if(d&&this.$u===d.$u)return O.call(this,d,T,I);var B=this.local(),D=c(d).local();return O.call(B,D,T,I)}}}))})(Ae)),Ae.exports}var Mn=Tn();const kn=z(Mn);var Re={exports:{}},_n=Re.exports,tt;function Dn(){return tt||(tt=1,(function(i,e){(function(n,t){i.exports=t(Ye())})(_n,(function(n){function t(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var r=t(n),s={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(u){return""+u+(u===1?"er":"")}};return r.default.locale(s,null,!0),s}))})(Re)),Re.exports}Dn();var Ee={exports:{}},bn=Ee.exports,nt;function Bn(){return nt||(nt=1,(function(i,e){(function(n,t){i.exports=t()})(bn,(function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var t=["th","st","nd","rd"],r=n%100;return"["+n+(t[(r-20)%10]||t[r]||t[0])+"]"}}}))})(Ee)),Ee.exports}Bn(),Z.extend(Vt),Z.extend(Wt),Z.extend(Qt),Z.extend(rn),Z.extend(dn),Z.extend(un),Z.extend(yn),Z.extend(Sn),Z.extend(Cn),Z.extend(kn);function J(i){if(i===null||typeof i!="object")return!1;const e=Object.getPrototypeOf(i);return e===Object.prototype||e===null}function Ce(i,e=new WeakSet){if(i==null||typeof i!="object"||e.has(i))return i;if(e.add(i),Array.isArray(i))return i.map(n=>Ce(n,e));if(J(i)){const n={};for(const t in i)Object.hasOwn(i,t)&&(n[t]=Ce(i[t],e));return n}return i}function Be(i,e,n=new WeakSet){if(!(!J(e)||!J(i))&&!(e===i||n.has(e))){n.add(e);for(const t in e)if(Object.hasOwn(e,t)){const r=e[t],s=i[t];J(r)&&J(s)?Be(s,r,n):Array.isArray(r)&&Array.isArray(s)?i[t]=rt(s,r,n):i[t]=Ce(r,n)}}}function rt(i,e,n){const t=i.slice();for(let r=0;r<e.length;r++){const s=e[r],u=t[r];if(J(s)&&J(u)){const c={...u};Be(c,s,n),t[r]=c}else Array.isArray(s)&&Array.isArray(u)?t[r]=rt(u,s,n):t[r]=Ce(s,n)}return t}function it(i,...e){if(!J(i))throw new TypeError("Target must be a plain object");const n=new WeakSet;for(const t of e)t!=null&&Be(i,t,n);return i}const Y=[];for(let i=0;i<256;++i)Y.push((i+256).toString(16).slice(1));function In(i,e=0){return(Y[i[e+0]]+Y[i[e+1]]+Y[i[e+2]]+Y[i[e+3]]+"-"+Y[i[e+4]]+Y[i[e+5]]+"-"+Y[i[e+6]]+Y[i[e+7]]+"-"+Y[i[e+8]]+Y[i[e+9]]+"-"+Y[i[e+10]]+Y[i[e+11]]+Y[i[e+12]]+Y[i[e+13]]+Y[i[e+14]]+Y[i[e+15]]).toLowerCase()}let Ie;const Ln=new Uint8Array(16);function Pn(){if(!Ie){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Ie=crypto.getRandomValues.bind(crypto)}return Ie(Ln)}const ot={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Nn(i,e,n){i=i||{};const t=i.random??i.rng?.()??Pn();if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=t[6]&15|64,t[8]=t[8]&63|128,In(t)}function Un(i,e,n){return ot.randomUUID&&!i?ot.randomUUID():Nn(i)}const $n=1500;class ne{static instance=null;defaultOptions={callCount:1,interval:$n,maxCallCount:20,minCallCount:1};pollings={};events={complete:()=>{},data:()=>{},error:()=>{}};static getInstance(){return ne.instance||(ne.instance=new ne),ne.instance}poll(e,n){const t=this.buildPollerOptions(n);return this.storeCurrentPolling(t),this.isActivePoller(t)&&e().then(r=>this.onRequest(r,e,t)).catch(r=>{this.dispatch("error",r)}),this}on(e,n){this.events[e]=n}stop(e){e&&this.pollings[e]&&delete this.pollings[e]}dispatch(e,n){this.events[e](n)}async onRequest(e,n,t){const r=v(e??{},S.Camel);this.isActivePoller(t)&&(this.isInProgress(r)&&t.callCount&&t.maxCallCount&&t.callCount<t.maxCallCount||!this.isInProgress(r)&&t.callCount&&t.minCallCount&&t.callCount<t.minCallCount?(this.isInProgress(r)||(r.meta=r.meta||{},r.meta.status="IN_PROGRESS"),t.callCount+=1,this.dispatch("data",r),t.interval&&await this.pause(t),this.poll(n,t)):this.isInProgress(r)?(r.meta=r.meta||{},r.meta.status="COMPLETE",this.onComplete(r,t)):this.onComplete(r,t))}onComplete(e,n){this.dispatch("data",e),this.dispatch("complete",e),this.removeCurrentPolling(n)}isInProgress(e){return(e?.meta?.status??"")!=="COMPLETE"}buildPollerOptions(e){const n=Object.entries(e).reduce((t,[r,s])=>{if(s!==void 0){const u=r;t[u]=s}return t},{});return{...this.defaultOptions,...n}}storeCurrentPolling(e){e.type&&!e.uuid&&(e.uuid=Un(),this.pollings[e.type]=e.uuid)}isActivePoller(e){return e.type?!!this.pollings[e.type]&&this.pollings[e.type]===e.uuid:!0}pause(e){return new Promise(n=>{setTimeout(n,e.interval)})}removeCurrentPolling(e){e.type&&this.pollings[e.type]&&delete this.pollings[e.type]}}function at(i,e,n){const t=ne.getInstance();return t.poll(i,e),n&&typeof n=="function"?(t.on("data",r=>{r instanceof Error?n(r,void 0,t):n(null,r,t)}),t.on("error",r=>{r instanceof Error?n(r):n(null,r)}),t):new Promise((r,s)=>{t.on("error",s),t.on("complete",u=>{u instanceof Error?s(u):r(u)})})}typeof SuppressedError=="function"&&SuppressedError;const st="http://localhost".replace(/\/+$/,""),xn=i=>typeof Blob<"u"&&i instanceof Blob;class W{constructor(e=new Le){this.configuration=e,this.middleware=e.middleware}middleware;withMiddleware(...e){const n=this.clone();return n.middleware=n.middleware.concat(...e),n}withPreMiddleware(...e){const n=e.map(t=>({pre:t}));return this.withMiddleware(...n)}withPostMiddleware(...e){const n=e.map(t=>({post:t}));return this.withMiddleware(...n)}async request(e,n){const{url:t,init:r}=this.createFetchParams(e,n),s=await this.fetchApi(t,r);if(s.status>=200&&s.status<300)return s;throw new ut(s,"Response returned an error code")}createFetchParams(e,n){let t=this.configuration.basePath+e.path;e.query!==void 0&&Object.keys(e.query).length!==0&&(t+="?"+this.configuration.queryParamsStringify(e.query));const r=typeof FormData<"u"&&e.body instanceof FormData||e.body instanceof URLSearchParams||xn(e.body)?e.body:JSON.stringify(e.body),s=Object.assign({},this.configuration.headers,e.headers);Object.keys(s).forEach(c=>s[c]===void 0?delete s[c]:{});const u={method:e.method,body:r,credentials:this.configuration.credentials,...it({},n,{headers:it({},s,n?.headers)})};return{url:t,init:u}}fetchApi=async(e,n)=>{let t={url:e,init:n};for(const s of this.middleware)s.pre&&(t=await s.pre({fetch:this.fetchApi,...t})||t);let r=await(this.configuration.fetchApi||fetch)(t.url,t.init);for(const s of this.middleware)s.post&&(r=await s.post({fetch:this.fetchApi,url:t.url,init:t.init,response:r.clone()})||r);return r};clone(){const e=this.constructor,n=new e(this.configuration);return n.middleware=this.middleware.slice(),n}}class ut extends Error{constructor(e,n){super(n),this.response=e}name="ResponseError"}class N extends Error{constructor(e,n){super(n),this.field=e}name="RequiredError"}const Hn={csv:",",ssv:" ",tsv:" ",pipes:"|"};class Le{constructor(e={}){this.configuration=e}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:st}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||Pe}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const e=this.configuration.apiKey;if(e)return typeof e=="function"?e:()=>e}get accessToken(){const e=this.configuration.accessToken;if(e)return typeof e=="function"?e:async()=>e}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}function Gn(i,e){const n=i[e];return n!=null}function Pe(i,e=""){return Object.keys(i).map(n=>{const t=e+(e.length?`[${n}]`:n),r=i[n];if(r instanceof Array){const s=r.map(u=>encodeURIComponent(String(u))).join(`&${encodeURIComponent(t)}=`);return`${encodeURIComponent(t)}=${s}`}return r instanceof Date?`${encodeURIComponent(t)}=${encodeURIComponent(r.toISOString())}`:r instanceof Object?Pe(r,t):`${encodeURIComponent(t)}=${encodeURIComponent(String(r))}`}).filter(n=>n.length>0).join("&")}function Fn(i,e){return Object.keys(i).reduce((n,t)=>({...n,[t]:e(i[t])}),{})}function Kn(i){for(const e of i)if(e.contentType==="multipart/form-data")return!0;return!1}class U{constructor(e,n=t=>t){this.raw=e,this.transformer=n}async value(){return this.transformer(await this.raw.json())}}class Yn{constructor(e){this.raw=e}async value(){}}class Vn{constructor(e){this.raw=e}async value(){return await this.raw.blob()}}class ct{constructor(e){this.raw=e}async value(){return await this.raw.text()}}const qn={CreditCard:"CREDIT_CARD"},jn={Coupon:"COUPON"},zn={DepositAccount:"DEPOSIT_ACCOUNT"},Wn={PayLater:"PAY_LATER"},Zn={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},Jn={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},Xn={Cx:"bkg-cx",Cf:"bkg-cf",Created:"bkg-created",Af:"bkg-af",Ip:"bkg-ip",Pc:"bkg-pc",Pp:"bkg-pp",Qr:"bkg-qr"},Qn={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},er={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"},tr={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"},nr={Dr:"dr",Mr:"mr",Mrs:"mrs",Ms:"ms",NotSpecified:"notSpecified",Prof:"prof"},rr={Ad:"AD",Ae:"AE",Af:"AF",Ag:"AG",Ai:"AI",Al:"AL",Am:"AM",Ao:"AO",Ar:"AR",As:"AS",At:"AT",Au:"AU",Aw:"AW",Ax:"AX",Az:"AZ",Ba:"BA",Bb:"BB",Bd:"BD",Be:"BE",Bf:"BF",Bg:"BG",Bh:"BH",Bi:"BI",Bj:"BJ",Bl:"BL",Bm:"BM",Bn:"BN",Bo:"BO",Bq:"BQ",Br:"BR",Bs:"BS",Bt:"BT",Bw:"BW",By:"BY",Bz:"BZ",Ca:"CA",Cc:"CC",Cd:"CD",Cf:"CF",Cg:"CG",Ch:"CH",Ci:"CI",Ck:"CK",Cl:"CL",Cm:"CM",Cn:"CN",Co:"CO",Cr:"CR",Cu:"CU",Cv:"CV",Cw:"CW",Cx:"CX",Cy:"CY",Cz:"CZ",De:"DE",Dj:"DJ",Dk:"DK",Dm:"DM",Do:"DO",Dz:"DZ",Ec:"EC",Ee:"EE",Eg:"EG",Eh:"EH",Er:"ER",Es:"ES",Et:"ET",Fi:"FI",Fj:"FJ",Fk:"FK",Fm:"FM",Fo:"FO",Fr:"FR",Ga:"GA",Gb:"GB",Gd:"GD",Ge:"GE",Gf:"GF",Gg:"GG",Gh:"GH",Gi:"GI",Gl:"GL",Gm:"GM",Gn:"GN",Gp:"GP",Gq:"GQ",Gr:"GR",Gt:"GT",Gu:"GU",Gw:"GW",Gy:"GY",Hk:"HK",Hn:"HN",Hr:"HR",Ht:"HT",Hu:"HU",Id:"ID",Ie:"IE",Il:"IL",Im:"IM",In:"IN",Io:"IO",Iq:"IQ",Ir:"IR",Is:"IS",It:"IT",Je:"JE",Jm:"JM",Jo:"JO",Jp:"JP",Ke:"KE",Kg:"KG",Kh:"KH",Ki:"KI",Km:"KM",Kn:"KN",Kp:"KP",Kr:"KR",Kw:"KW",Ky:"KY",Kz:"KZ",La:"LA",Lb:"LB",Lc:"LC",Li:"LI",Lk:"LK",Lr:"LR",Ls:"LS",Lt:"LT",Lu:"LU",Lv:"LV",Ly:"LY",Ma:"MA",Mc:"MC",Md:"MD",Me:"ME",Mf:"MF",Mg:"MG",Mh:"MH",Mk:"MK",Ml:"ML",Mm:"MM",Mn:"MN",Mo:"MO",Mp:"MP",Mq:"MQ",Mr:"MR",Ms:"MS",Mt:"MT",Mu:"MU",Mv:"MV",Mw:"MW",Mx:"MX",My:"MY",Mz:"MZ",Na:"NA",Nc:"NC",Ne:"NE",Nf:"NF",Ng:"NG",Ni:"NI",Nl:"NL",No:"NO",Np:"NP",Nr:"NR",Nu:"NU",Nz:"NZ",Om:"OM",Pa:"PA",Pe:"PE",Pf:"PF",Pg:"PG",Ph:"PH",Pk:"PK",Pl:"PL",Pm:"PM",Pr:"PR",Ps:"PS",Pt:"PT",Pw:"PW",Py:"PY",Qa:"QA",Re:"RE",Ro:"RO",Rs:"RS",Ru:"RU",Rw:"RW",Sa:"SA",Sb:"SB",Sc:"SC",Sd:"SD",Se:"SE",Sg:"SG",Sh:"SH",Si:"SI",Sj:"SJ",Sk:"SK",Sl:"SL",Sm:"SM",Sn:"SN",So:"SO",Sr:"SR",Ss:"SS",St:"ST",Sv:"SV",Sx:"SX",Sy:"SY",Sz:"SZ",Tc:"TC",Td:"TD",Tg:"TG",Th:"TH",Tj:"TJ",Tk:"TK",Tl:"TL",Tm:"TM",Tn:"TN",To:"TO",Tr:"TR",Tt:"TT",Tv:"TV",Tw:"TW",Tz:"TZ",Ua:"UA",Ug:"UG",Us:"US",Uy:"UY",Uz:"UZ",Va:"VA",Vc:"VC",Ve:"VE",Vg:"VG",Vi:"VI",Vn:"VN",Vu:"VU",Wf:"WF",Ws:"WS",Xk:"XK",Ye:"YE",Yt:"YT",Za:"ZA",Zm:"ZM",Zw:"ZW"},ir={Aed:"AED",Afn:"AFN",All:"ALL",Amd:"AMD",Ang:"ANG",Aoa:"AOA",Ars:"ARS",Aud:"AUD",Awg:"AWG",Azn:"AZN",Bam:"BAM",Bbd:"BBD",Bdt:"BDT",Bhd:"BHD",Bgn:"BGN",Bif:"BIF",Bmd:"BMD",Bnd:"BND",Bob:"BOB",Brl:"BRL",Bsd:"BSD",Bwp:"BWP",Bzd:"BZD",Cad:"CAD",Cdf:"CDF",Chf:"CHF",Clp:"CLP",Cny:"CNY",Cop:"COP",Crc:"CRC",Cve:"CVE",Czk:"CZK",Djf:"DJF",Dkk:"DKK",Dop:"DOP",Dzd:"DZD",Egp:"EGP",Etb:"ETB",Eur:"EUR",Fjd:"FJD",Fkp:"FKP",Gbp:"GBP",Gel:"GEL",Gip:"GIP",Gmd:"GMD",Gnf:"GNF",Gtq:"GTQ",Gyd:"GYD",Hkd:"HKD",Hnl:"HNL",Htg:"HTG",Huf:"HUF",Idr:"IDR",Ils:"ILS",Inr:"INR",Isk:"ISK",Jmd:"JMD",Jod:"JOD",Jpy:"JPY",Kes:"KES",Kgs:"KGS",Khr:"KHR",Kmf:"KMF",Krw:"KRW",Kwd:"KWD",Kyd:"KYD",Kzt:"KZT",Lak:"LAK",Lbp:"LBP",Lkr:"LKR",Lrd:"LRD",Lsl:"LSL",Mad:"MAD",Mdl:"MDL",Mga:"MGA",Mkd:"MKD",Mmk:"MMK",Mnt:"MNT",Mop:"MOP",Mru:"MRU",Mur:"MUR",Mvr:"MVR",Mwk:"MWK",Mxn:"MXN",Myr:"MYR",Mzn:"MZN",Nad:"NAD",Ngn:"NGN",Nio:"NIO",Nok:"NOK",Npr:"NPR",Nzd:"NZD",Omr:"OMR",Pab:"PAB",Pen:"PEN",Pgk:"PGK",Php:"PHP",Pkr:"PKR",Pln:"PLN",Pyg:"PYG",Qar:"QAR",Ron:"RON",Rsd:"RSD",Rub:"RUB",Rwf:"RWF",Sar:"SAR",Sbd:"SBD",Scr:"SCR",Sek:"SEK",Sgd:"SGD",Shp:"SHP",Sll:"SLL",Sos:"SOS",Srd:"SRD",Std:"STD",Szl:"SZL",Thb:"THB",Tjs:"TJS",Tnd:"TND",Top:"TOP",Try:"TRY",Ttd:"TTD",Twd:"TWD",Tzs:"TZS",Uah:"UAH",Usd:"USD",Uyu:"UYU",Uzs:"UZS",Vnd:"VND",Vuv:"VUV",Wst:"WST",Xaf:"XAF",Xcd:"XCD",Xof:"XOF",Xpf:"XPF",Yer:"YER",Zar:"ZAR",Zmw:"ZMW"},or={ApiError:"api_error",BadGateway:"bad_gateway",InternalServerError:"internal_server_error",InvalidRequestError:"invalid_request_error",RateLimitError:"rate_limit_error",ResourceGone:"resource_gone",ResourceNotFound:"resource_not_found",Unauthorized:"unauthorized",ValidationError:"validation_error"},ar={Included:"INCLUDED",NotIncluded:"NOT_INCLUDED",Optional:"OPTIONAL"},sr={BestMatch:"BEST_MATCH",Cheapest:"CHEAPEST",MatchingRoomCount:"MATCHING_ROOM_COUNT",Regular:"REGULAR"},ur={Included:"included",NotIncluded:"not_included",Unknown:"unknown"},cr={HotelRoom:"HOTEL_ROOM",Package:"PACKAGE"},lr={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"},fr={CreditNote:"credit_note",Invoice:"invoice"},dr={CreditCard:"CREDIT_CARD"},hr={Coupon:"COUPON"},pr={DepositAccount:"DEPOSIT_ACCOUNT"},mr={PayLater:"PAY_LATER"},yr={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},gr={Coupon:"COUPON",CreditCard:"CREDIT_CARD",DepositAccount:"DEPOSIT_ACCOUNT"},wr={Complete:"COMPLETE",InProgress:"IN_PROGRESS"},vr={Ad:"AD",Ae:"AE",Af:"AF",Ag:"AG",Ai:"AI",Al:"AL",Am:"AM",Ao:"AO",Ar:"AR",As:"AS",At:"AT",Au:"AU",Aw:"AW",Ax:"AX",Az:"AZ",Ba:"BA",Bb:"BB",Bd:"BD",Be:"BE",Bf:"BF",Bg:"BG",Bh:"BH",Bi:"BI",Bj:"BJ",Bl:"BL",Bm:"BM",Bn:"BN",Bo:"BO",Bq:"BQ",Br:"BR",Bs:"BS",Bt:"BT",Bw:"BW",By:"BY",Bz:"BZ",Ca:"CA",Cc:"CC",Cd:"CD",Cf:"CF",Cg:"CG",Ch:"CH",Ci:"CI",Ck:"CK",Cl:"CL",Cm:"CM",Cn:"CN",Co:"CO",Cr:"CR",Cu:"CU",Cv:"CV",Cw:"CW",Cx:"CX",Cy:"CY",Cz:"CZ",De:"DE",Dj:"DJ",Dk:"DK",Dm:"DM",Do:"DO",Dz:"DZ",Ec:"EC",Ee:"EE",Eg:"EG",Eh:"EH",Er:"ER",Es:"ES",Et:"ET",Fi:"FI",Fj:"FJ",Fk:"FK",Fm:"FM",Fo:"FO",Fr:"FR",Ga:"GA",Gb:"GB",Gd:"GD",Ge:"GE",Gf:"GF",Gg:"GG",Gh:"GH",Gi:"GI",Gl:"GL",Gm:"GM",Gn:"GN",Gp:"GP",Gq:"GQ",Gr:"GR",Gt:"GT",Gu:"GU",Gw:"GW",Gy:"GY",Hk:"HK",Hn:"HN",Hr:"HR",Ht:"HT",Hu:"HU",Id:"ID",Ie:"IE",Il:"IL",Im:"IM",In:"IN",Io:"IO",Iq:"IQ",Ir:"IR",Is:"IS",It:"IT",Je:"JE",Jm:"JM",Jo:"JO",Jp:"JP",Ke:"KE",Kg:"KG",Kh:"KH",Ki:"KI",Km:"KM",Kn:"KN",Kp:"KP",Kr:"KR",Kw:"KW",Ky:"KY",Kz:"KZ",La:"LA",Lb:"LB",Lc:"LC",Li:"LI",Lk:"LK",Lr:"LR",Ls:"LS",Lt:"LT",Lu:"LU",Lv:"LV",Ly:"LY",Ma:"MA",Mc:"MC",Md:"MD",Me:"ME",Mf:"MF",Mg:"MG",Mh:"MH",Mk:"MK",Ml:"ML",Mm:"MM",Mn:"MN",Mo:"MO",Mp:"MP",Mq:"MQ",Mr:"MR",Ms:"MS",Mt:"MT",Mu:"MU",Mv:"MV",Mw:"MW",Mx:"MX",My:"MY",Mz:"MZ",Na:"NA",Nc:"NC",Ne:"NE",Nf:"NF",Ng:"NG",Ni:"NI",Nl:"NL",No:"NO",Np:"NP",Nr:"NR",Nu:"NU",Nz:"NZ",Om:"OM",Pa:"PA",Pe:"PE",Pf:"PF",Pg:"PG",Ph:"PH",Pk:"PK",Pl:"PL",Pm:"PM",Pr:"PR",Ps:"PS",Pt:"PT",Pw:"PW",Py:"PY",Qa:"QA",Re:"RE",Ro:"RO",Rs:"RS",Ru:"RU",Rw:"RW",Sa:"SA",Sb:"SB",Sc:"SC",Sd:"SD",Se:"SE",Sg:"SG",Sh:"SH",Si:"SI",Sj:"SJ",Sk:"SK",Sl:"SL",Sm:"SM",Sn:"SN",So:"SO",Sr:"SR",Ss:"SS",St:"ST",Sv:"SV",Sx:"SX",Sy:"SY",Sz:"SZ",Tc:"TC",Td:"TD",Tg:"TG",Th:"TH",Tj:"TJ",Tk:"TK",Tl:"TL",Tm:"TM",Tn:"TN",To:"TO",Tr:"TR",Tt:"TT",Tv:"TV",Tw:"TW",Tz:"TZ",Ua:"UA",Ug:"UG",Us:"US",Uy:"UY",Uz:"UZ",Va:"VA",Vc:"VC",Ve:"VE",Vg:"VG",Vi:"VI",Vn:"VN",Vu:"VU",Wf:"WF",Ws:"WS",Xk:"XK",Ye:"YE",Yt:"YT",Za:"ZA",Zm:"ZM",Zw:"ZW"},Sr={Night:"PER_NIGHT",Stay:"PER_STAY"},Ar={Adult:"PER_ADULT",Booking:"PER_BOOKING"};class lt extends W{async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicy.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/booking_policies/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}async paymentMethodsRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicyIdPaymentMethods.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/booking-policies/{id}/payment-methods".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return new U(s,u=>v(u,S.Camel)).value()}async paymentMethods(e,n){return this.paymentMethodsRaw(e,n)}async createRaw(e,n){const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/booking_policies",method:"POST",headers:r,query:v(t,S.Snake),body:v(e.bookingPoliciesCreateApi,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async create(e={},n){return this.createRaw(e,n)}}class ft extends W{async deleteRaw(e,n){if(e.token===null||e.token===void 0)throw new N("token","Required parameter requestParameters.token was null or undefined when calling deleteV1BookingsToken.");const t={},r={},s=await this.request({path:"/v1/bookings/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"DELETE",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async delete(e,n){return this.deleteRaw(e,n)}async listRaw(e,n){const t={};e.endingBefore!==void 0&&(t.ending_before=e.endingBefore),e.filterByCheckInDate!==void 0&&(t.filter_by_check_in_date=e.filterByCheckInDate),e.filterByLastStatusUpdatedAt!==void 0&&(t.filter_by_last_status_updated_at=e.filterByLastStatusUpdatedAt),e.filterByMetadata!==void 0&&(t.filter_by_metadata=e.filterByMetadata),e.filterByStatus!==void 0&&(t.filter_by_status=e.filterByStatus),e.limit!==void 0&&(t.limit=e.limit),e.sortBy!==void 0&&(t.sort_by=e.sortBy),e.sortByOrder!==void 0&&(t.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(t.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings",method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async list(e={},n){return this.listRaw(e,n)}async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingsId.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}async retrievePublicRaw(e,n){if(e.token===null||e.token===void 0)throw new N("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenPublic.");const t={},r={},s=await this.request({path:"/v1/bookings/{token}/public".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async retrievePublic(e,n){return this.retrievePublicRaw(e,n)}async createRaw(e,n){const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings",method:"POST",headers:r,query:v(t,S.Snake),body:v(e.bookingCreateApi,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async create(e={},n){return this.createRaw(e,n)}async couponChargeRaw(e,n){if(e.couponId===null||e.couponId===void 0)throw new N("couponId","Required parameter requestParameters.couponId was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings/{id}/coupons/{coupon_id}/charge".replace("{coupon_id}",encodeURIComponent(String(e.couponId))).replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async couponCharge(e,n){return this.couponChargeRaw(e,n)}async paylaterRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLater.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings/{id}/pay-later".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async paylater(e,n){return this.paylaterRaw(e,n)}async confirmpaylaterRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLaterConfirm.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings/{id}/pay-later/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async confirmpaylater(e,n){return this.confirmpaylaterRaw(e,n)}async confirmRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdconfirm.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings/{id}/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async confirm(e,n){return this.confirmRaw(e,n)}async updatePaymentMethodsRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling putV1BookingsIdPaymentMethods.");const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings/{id}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:r,query:v(t,S.Snake),body:v(e.paymentMethodUpdatePayloadApi,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async updatePaymentMethods(e,n){return this.updatePaymentMethodsRaw(e,n)}}const Rr={CheckInDate:"check_in_date",CreatedAt:"created_at",LastStatusUpdatedAt:"last_status_updated_at"},Er={Asc:"asc",Desc:"desc"};class dt extends W{async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsIdImages.");const t={};e.lang!==void 0&&(t.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotels/{id}/images".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return new U(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}}const Cr={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};class ht extends W{async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelOfferRequestsId.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}async createRaw(e,n){const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_offer_requests",method:"POST",headers:r,query:v(t,S.Snake),body:v(e.hotelOfferRequestCreateApi,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async create(e={},n){return this.createRaw(e,n)}}class pt extends W{async listRaw(e,n){if(e.currency===null||e.currency===void 0)throw new N("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelOffers.");if(e.hotelOfferRequestId===null||e.hotelOfferRequestId===void 0)throw new N("hotelOfferRequestId","Required parameter requestParameters.hotelOfferRequestId was null or undefined when calling getV1HotelOffers.");const t={};e.currency!==void 0&&(t.currency=e.currency),e.endingBefore!==void 0&&(t.ending_before=e.endingBefore),e.filterByPrice!==void 0&&(t.filter_by_price=e.filterByPrice),e.filterByReviewRating!==void 0&&(t.filter_by_review_rating=e.filterByReviewRating),e.filterByStar!==void 0&&(t.filter_by_star=e.filterByStar),e.hotelOfferRequestId!==void 0&&(t.hotel_offer_request_id=e.hotelOfferRequestId),e.hotelRoomOffersLimit!==void 0&&(t.hotel_room_offers_limit=e.hotelRoomOffersLimit),e.includeHotelContentDetails!==void 0&&(t.include_hotel_content_details=e.includeHotelContentDetails),e.lang!==void 0&&(t.lang=e.lang),e.limit!==void 0&&(t.limit=e.limit),e.onlyRecommendedHotelOffers!==void 0&&(t.only_recommended_hotel_offers=e.onlyRecommendedHotelOffers),e.priceHistogramStepCount!==void 0&&(t.price_histogram_step_count=e.priceHistogramStepCount),e.sortBy!==void 0&&(t.sort_by=e.sortBy),e.sortByOrder!==void 0&&(t.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(t.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_offers",method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async list(e,n,t){return await at(()=>this.listRaw(e,t),{type:be.HOTEL_SEARCH_POLLING,minCallCount:t?.minCallCount,maxCallCount:t?.maxCallCount},n)}}const Or={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"},Tr={Distance:"distance",Price:"price",Rating:"rating",ReviewRating:"review_rating",TopPicks:"top_picks"},Mr={Asc:"asc",Desc:"desc"};class mt extends W{async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOfferRequestsId.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_room_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}async createRaw(e,n){const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_room_offer_requests",method:"POST",headers:r,query:v(t,S.Snake),body:v(e.hotelRoomOfferRequestCreateApi,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async create(e={},n){return this.createRaw(e,n)}}class yt extends W{async listRaw(e,n){if(e.currency===null||e.currency===void 0)throw new N("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelRoomOffers.");if(e.hotelRoomOfferRequestId===null||e.hotelRoomOfferRequestId===void 0)throw new N("hotelRoomOfferRequestId","Required parameter requestParameters.hotelRoomOfferRequestId was null or undefined when calling getV1HotelRoomOffers.");const t={};e.currency!==void 0&&(t.currency=e.currency),e.hotelRoomOfferRequestId!==void 0&&(t.hotel_room_offer_request_id=e.hotelRoomOfferRequestId),e.lang!==void 0&&(t.lang=e.lang),e.limit!==void 0&&(t.limit=e.limit);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_room_offers",method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async list(e,n,t){return await at(()=>this.listRaw(e,t),{type:be.HOTEL_ROOM_OFFERS,minCallCount:t?.minCallCount,maxCallCount:t?.maxCallCount},n)}async createRaw(e,n){const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_room_offers",method:"POST",headers:r,query:v(t,S.Snake),body:v(e.hotelRoomOffersCreateApi,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async create(e={},n){return this.createRaw(e,n)}}const kr={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};class gt extends W{async deleteRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new N("token","Required parameter requestParameters.token was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");const t={},r={},s=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(e.id))).replace("{token}",encodeURIComponent(String(e.token))),method:"DELETE",headers:r,query:v(t,S.Snake)},n);return new ct(s)}async delete(e,n){return this.deleteRaw(e,n)}async updateRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new N("token","Required parameter requestParameters.token was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");const t={},r={};r["Content-Type"]="application/json";const s=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(e.id))).replace("{token}",encodeURIComponent(String(e.token))),method:"PATCH",headers:r,query:v(t,S.Snake),body:v(e.hotelRoomingListGuestsUpdateApi,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async update(e,n){return this.updateRaw(e,n)}async createRaw(e,n){if(e.token===null||e.token===void 0)throw new N("token","Required parameter requestParameters.token was null or undefined when calling postV1HotelRoomingListGuestsToken.");const t={},r={};r["Content-Type"]="application/json";const s=await this.request({path:"/v1/hotel_rooming_list_guests/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"POST",headers:r,query:v(t,S.Snake),body:v(e.hotelRoomingListGuestsCreateApi,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async create(e,n){return this.createRaw(e,n)}}class wt extends W{async listRaw(e,n){if(e.token===null||e.token===void 0)throw new N("token","Required parameter requestParameters.token was null or undefined when calling getV1HotelRoomingListsToken.");const t={};e.lang!==void 0&&(t.lang=e.lang);const r={},s=await this.request({path:"/v1/hotel_rooming_lists/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:r,query:v(t,S.Snake)},n);return new U(s,u=>v(u,S.Camel)).value()}async list(e,n){return this.listRaw(e,n)}}const _r={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};class vt extends W{async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsId.");const t={};e.event!==void 0&&(t.event=e.event),e.lang!==void 0&&(t.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotels/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}}const Dr={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};var Oe={exports:{}},St;function br(){return St||(St=1,(function(i,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof ce<"u"&&ce,t=(function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s})();(function(s){(function(u){var c=typeof s<"u"&&s||typeof self<"u"&&self||typeof ce<"u"&&ce||{},h={searchParams:"URLSearchParams"in c,iterable:"Symbol"in c&&"iterator"in Symbol,blob:"FileReader"in c&&"Blob"in c&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in c,arrayBuffer:"ArrayBuffer"in c};function A(o){return o&&DataView.prototype.isPrototypeOf(o)}if(h.arrayBuffer)var E=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=ArrayBuffer.isView||function(o){return o&&E.indexOf(Object.prototype.toString.call(o))>-1};function y(o){if(typeof o!="string"&&(o=String(o)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(o)||o==="")throw new TypeError('Invalid character in header field name: "'+o+'"');return o.toLowerCase()}function C(o){return typeof o!="string"&&(o=String(o)),o}function O(o){var a={next:function(){var f=o.shift();return{done:f===void 0,value:f}}};return h.iterable&&(a[Symbol.iterator]=function(){return a}),a}function d(o){this.map={},o instanceof d?o.forEach(function(a,f){this.append(f,a)},this):Array.isArray(o)?o.forEach(function(a){if(a.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+a.length);this.append(a[0],a[1])},this):o&&Object.getOwnPropertyNames(o).forEach(function(a){this.append(a,o[a])},this)}d.prototype.append=function(o,a){o=y(o),a=C(a);var f=this.map[o];this.map[o]=f?f+", "+a:a},d.prototype.delete=function(o){delete this.map[y(o)]},d.prototype.get=function(o){return o=y(o),this.has(o)?this.map[o]:null},d.prototype.has=function(o){return this.map.hasOwnProperty(y(o))},d.prototype.set=function(o,a){this.map[y(o)]=C(a)},d.prototype.forEach=function(o,a){for(var f in this.map)this.map.hasOwnProperty(f)&&o.call(a,this.map[f],f,this)},d.prototype.keys=function(){var o=[];return this.forEach(function(a,f){o.push(f)}),O(o)},d.prototype.values=function(){var o=[];return this.forEach(function(a){o.push(a)}),O(o)},d.prototype.entries=function(){var o=[];return this.forEach(function(a,f){o.push([f,a])}),O(o)},h.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);function T(o){if(!o._noBody){if(o.bodyUsed)return Promise.reject(new TypeError("Already read"));o.bodyUsed=!0}}function I(o){return new Promise(function(a,f){o.onload=function(){a(o.result)},o.onerror=function(){f(o.error)}})}function B(o){var a=new FileReader,f=I(a);return a.readAsArrayBuffer(o),f}function D(o){var a=new FileReader,f=I(a),l=/charset=([A-Za-z0-9_-]+)/.exec(o.type),w=l?l[1]:"utf-8";return a.readAsText(o,w),f}function x(o){for(var a=new Uint8Array(o),f=new Array(a.length),l=0;l<a.length;l++)f[l]=String.fromCharCode(a[l]);return f.join("")}function M(o){if(o.slice)return o.slice(0);var a=new Uint8Array(o.byteLength);return a.set(new Uint8Array(o)),a.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(o){this.bodyUsed=this.bodyUsed,this._bodyInit=o,o?typeof o=="string"?this._bodyText=o:h.blob&&Blob.prototype.isPrototypeOf(o)?this._bodyBlob=o:h.formData&&FormData.prototype.isPrototypeOf(o)?this._bodyFormData=o:h.searchParams&&URLSearchParams.prototype.isPrototypeOf(o)?this._bodyText=o.toString():h.arrayBuffer&&h.blob&&A(o)?(this._bodyArrayBuffer=M(o.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):h.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(o)||g(o))?this._bodyArrayBuffer=M(o):this._bodyText=o=Object.prototype.toString.call(o):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof o=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):h.searchParams&&URLSearchParams.prototype.isPrototypeOf(o)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},h.blob&&(this.blob=function(){var o=T(this);if(o)return o;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var o=T(this);return o||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(h.blob)return this.blob().then(B);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var o=T(this);if(o)return o;if(this._bodyBlob)return D(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(x(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},h.formData&&(this.formData=function(){return this.text().then(P)}),this.json=function(){return this.text().then(JSON.parse)},this}var K=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function V(o){var a=o.toUpperCase();return K.indexOf(a)>-1?a:o}function H(o,a){if(!(this instanceof H))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');a=a||{};var f=a.body;if(o instanceof H){if(o.bodyUsed)throw new TypeError("Already read");this.url=o.url,this.credentials=o.credentials,a.headers||(this.headers=new d(o.headers)),this.method=o.method,this.mode=o.mode,this.signal=o.signal,!f&&o._bodyInit!=null&&(f=o._bodyInit,o.bodyUsed=!0)}else this.url=String(o);if(this.credentials=a.credentials||this.credentials||"same-origin",(a.headers||!this.headers)&&(this.headers=new d(a.headers)),this.method=V(a.method||this.method||"GET"),this.mode=a.mode||this.mode||null,this.signal=a.signal||this.signal||(function(){if("AbortController"in c){var p=new AbortController;return p.signal}})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&f)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(f),(this.method==="GET"||this.method==="HEAD")&&(a.cache==="no-store"||a.cache==="no-cache")){var l=/([?&])_=[^&]*/;if(l.test(this.url))this.url=this.url.replace(l,"$1_="+new Date().getTime());else{var w=/\?/;this.url+=(w.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}H.prototype.clone=function(){return new H(this,{body:this._bodyInit})};function P(o){var a=new FormData;return o.trim().split("&").forEach(function(f){if(f){var l=f.split("="),w=l.shift().replace(/\+/g," "),p=l.join("=").replace(/\+/g," ");a.append(decodeURIComponent(w),decodeURIComponent(p))}}),a}function k(o){var a=new d,f=o.replace(/\r?\n[\t ]+/g," ");return f.split("\r").map(function(l){return l.indexOf(`
|
|
2
|
-
`)===0?l.substr(1,l.length):l}).forEach(function(l){var w=l.split(":"),p=w.shift().trim();if(p){var b=w.join(":").trim();try{a.append(p,b)}catch($){console.warn("Response "+$.message)}}}),a}L.call(H.prototype);function q(o,a){if(!(this instanceof q))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(a||(a={}),this.type="default",this.status=a.status===void 0?200:a.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=a.statusText===void 0?"":""+a.statusText,this.headers=new d(a.headers),this.url=a.url||"",this._initBody(o)}L.call(q.prototype),q.prototype.clone=function(){return new q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},q.error=function(){var o=new q(null,{status:200,statusText:""});return o.ok=!1,o.status=0,o.type="error",o};var Te=[301,302,303,307,308];q.redirect=function(o,a){if(Te.indexOf(a)===-1)throw new RangeError("Invalid status code");return new q(null,{status:a,headers:{location:o}})},u.DOMException=c.DOMException;try{new u.DOMException}catch{u.DOMException=function(a,f){this.message=a,this.name=f;var l=Error(a);this.stack=l.stack},u.DOMException.prototype=Object.create(Error.prototype),u.DOMException.prototype.constructor=u.DOMException}function R(o,a){return new Promise(function(f,l){var w=new H(o,a);if(w.signal&&w.signal.aborted)return l(new u.DOMException("Aborted","AbortError"));var p=new XMLHttpRequest;function b(){p.abort()}p.onload=function(){var _={statusText:p.statusText,headers:k(p.getAllResponseHeaders()||"")};w.url.indexOf("file://")===0&&(p.status<200||p.status>599)?_.status=200:_.status=p.status,_.url="responseURL"in p?p.responseURL:_.headers.get("X-Request-URL");var F="response"in p?p.response:p.responseText;setTimeout(function(){f(new q(F,_))},0)},p.onerror=function(){setTimeout(function(){l(new TypeError("Network request failed"))},0)},p.ontimeout=function(){setTimeout(function(){l(new TypeError("Network request timed out"))},0)},p.onabort=function(){setTimeout(function(){l(new u.DOMException("Aborted","AbortError"))},0)};function $(_){try{return _===""&&c.location.href?c.location.href:_}catch{return _}}if(p.open(w.method,$(w.url),!0),w.credentials==="include"?p.withCredentials=!0:w.credentials==="omit"&&(p.withCredentials=!1),"responseType"in p&&(h.blob?p.responseType="blob":h.arrayBuffer&&(p.responseType="arraybuffer")),a&&typeof a.headers=="object"&&!(a.headers instanceof d||c.Headers&&a.headers instanceof c.Headers)){var G=[];Object.getOwnPropertyNames(a.headers).forEach(function(_){G.push(
|
|
1
|
+
(function(y,ie){typeof exports=="object"&&typeof module<"u"?ie(exports):typeof define=="function"&&define.amd?define(["exports"],ie):(y=typeof globalThis<"u"?globalThis:y||self,ie(y["@revolugo/booking-api-client"]={}))})(this,(function(y){"use strict";const ie=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),Et=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),Ct=new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d","u"),Ot=/[^\p{L}\d]+/giu,Ne="$1\0$2",Ue="";function $e(i){let e=i.trim();e=e.replace(ie,Ne).replace(Et,Ne),e=e.replace(Ot,"\0");let n=0,t=e.length;for(;e.charAt(n)==="\0";)n++;if(n===t)return[];for(;e.charAt(t-1)==="\0";)t--;return e.slice(n,t).split(/\0/g)}function Tt(i){const e=$e(i);for(let n=0;n<e.length;n++){const t=e[n],r=Ct.exec(t);if(r){const s=r.index+(r[1]??r[2]).length;e.splice(n,1,t.slice(0,s),t.slice(s))}}return e}function xe(i,e){const[n,t,r]=ue(i,e);return n+t.map(se(e?.locale)).join(e?.delimiter??" ")+r}function Mt(i,e){const[n,t,r]=ue(i,e),s=se(e?.locale),u=ke(e?.locale),c=e?.mergeAmbiguousCharacters?_e(s,u):Ge(s,u);return n+t.map((h,A)=>A===0?s(h):c(h,A)).join(e?.delimiter??"")+r}function kt(i,e){const[n,t,r]=ue(i,e),s=se(e?.locale),u=ke(e?.locale),c=e?.mergeAmbiguousCharacters?_e(s,u):Ge(s,u);return n+t.map(c).join(e?.delimiter??"")+r}function _t(i,e){const[n,t,r]=ue(i,e),s=se(e?.locale),u=ke(e?.locale);return n+t.map(_e(s,u)).join(e?.delimiter??" ")+r}function He(i,e){return xe(i,{delimiter:"-",...e})}function Dt(i,e){return xe(i,{delimiter:"_",...e})}function se(i){return i===!1?e=>e.toLowerCase():e=>e.toLocaleLowerCase(i)}function ke(i){return i===!1?e=>e.toUpperCase():e=>e.toLocaleUpperCase(i)}function _e(i,e){return n=>`${e(n[0])}${i(n.slice(1))}`}function Ge(i,e){return(n,t)=>{const r=n[0];return(t>0&&r>="0"&&r<="9"?"_"+r:e(r))+i(n.slice(1))}}function ue(i,e={}){const n=e.split??(e.separateNumbers?Tt:$e),t=e.prefixCharacters??Ue,r=e.suffixCharacters??Ue;let s=0,u=i.length;for(;s<i.length;){const c=i.charAt(s);if(!t.includes(c))break;s++}for(;u>s;){const c=u-1,h=i.charAt(c);if(!r.includes(h))break;u=c}return[i.slice(0,s),n(i.slice(s,u)),i.slice(u)]}var ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function z(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var le={exports:{}},bt=le.exports,Fe;function It(){return Fe||(Fe=1,(function(i,e){(function(n,t,r){i.exports=r(),i.exports.default=r()})("slugify",bt,function(){var n=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),t=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function r(s,u){if(typeof s!="string")throw new Error("slugify: string argument expected");u=typeof u=="string"?{replacement:u}:u||{};var c=t[u.locale]||{},h=u.replacement===void 0?"-":u.replacement,A=u.trim===void 0?!0:u.trim,E=s.normalize().split("").reduce(function(g,m){var C=c[m];return C===void 0&&(C=n[m]),C===void 0&&(C=m),C===h&&(C=" "),g+C.replace(u.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return u.strict&&(E=E.replace(/[^A-Za-z0-9\s]/g,"")),A&&(E=E.trim()),E=E.replace(/\s+/g,h),u.lower&&(E=E.toLowerCase()),E}return r.extend=function(s){Object.assign(n,s)},r})})(le)),le.exports}var Bt=It();const Lt=z(Bt);function Pt(i){return Lt(He(i),{lower:!0,strict:!0})}var S=(i=>(i.Camel="camelCase",i.Capital="capitalCase",i.Param="paramCase",i.Pascal="pascalCase",i.Slug="slugCase",i.Snake="snakeCase",i))(S||{});const Nt={camelCase:Mt,capitalCase:_t,paramCase:He,pascalCase:kt,slugCase:Pt,snakeCase:Dt};function Ut(i,e){return i.some(n=>typeof n=="string"?n===e:n.test(e))}function $t(i){return i===Object(i)&&!Array.isArray(i)&&typeof i!="function"}function v(i,e,n={deep:!0}){return $t(i)?Object.keys(i).reduce((t,r)=>{const s=n?.exclude&&Ut(n.exclude,r)?r:Nt[e](r);return t[s]=n.deep?v(i[r],e,n):i[r],t},{}):Array.isArray(i)?i.map(t=>v(t,e,n)):i}var De=(i=>(i.V1="v1",i))(De||{}),Q=(i=>(i.Production="LIVE",i.Sandbox="SANDBOX",i.Staging="STAGING",i.CiCd="CI-CD",i.Local="LOCAL",i))(Q||{});const xt={LIVE:"https://booking-api.revolugo.com",SANDBOX:"https://booking-api.sandbox.revolugo.com",STAGING:"https://booking-api.staging.revolugo.com","CI-CD":"https://booking-api.staging.revolugo.com",LOCAL:"http://127.0.0.1:3001"};var be=(i=>(i.HOTEL_ROOM_OFFERS="HOTEL_ROOM_OFFERS",i.HOTEL_SEARCH_POLLING="HOTEL_SEARCH_POLLING",i))(be||{}),fe={exports:{}},Ht=fe.exports,Ke;function Ye(){return Ke||(Ke=1,(function(i,e){(function(n,t){i.exports=t()})(Ht,(function(){var n=1e3,t=6e4,r=36e5,s="millisecond",u="second",c="minute",h="hour",A="day",E="week",g="month",m="quarter",C="year",O="date",d="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,B=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,I={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(R){var o=["th","st","nd","rd"],a=R%100;return"["+R+(o[(a-20)%10]||o[a]||o[0])+"]"}},D=function(R,o,a){var f=String(R);return!f||f.length>=o?R:""+Array(o+1-f.length).join(a)+R},x={s:D,z:function(R){var o=-R.utcOffset(),a=Math.abs(o),f=Math.floor(a/60),l=a%60;return(o<=0?"+":"-")+D(f,2,"0")+":"+D(l,2,"0")},m:function R(o,a){if(o.date()<a.date())return-R(a,o);var f=12*(a.year()-o.year())+(a.month()-o.month()),l=o.clone().add(f,g),w=a-l<0,p=o.clone().add(f+(w?-1:1),g);return+(-(f+(a-l)/(w?l-p:p-l))||0)},a:function(R){return R<0?Math.ceil(R)||0:Math.floor(R)},p:function(R){return{M:g,y:C,w:E,d:A,D:O,h,m:c,s:u,ms:s,Q:m}[R]||String(R||"").toLowerCase().replace(/s$/,"")},u:function(R){return R===void 0}},M="en",L={};L[M]=I;var K="$isDayjsObject",V=function(R){return R instanceof q||!(!R||!R[K])},H=function R(o,a,f){var l;if(!o)return M;if(typeof o=="string"){var w=o.toLowerCase();L[w]&&(l=w),a&&(L[w]=a,l=w);var p=o.split("-");if(!l&&p.length>1)return R(p[0])}else{var b=o.name;L[b]=o,l=b}return!f&&l&&(M=l),l||!f&&M},P=function(R,o){if(V(R))return R.clone();var a=typeof o=="object"?o:{};return a.date=R,a.args=arguments,new q(a)},k=x;k.l=H,k.i=V,k.w=function(R,o){return P(R,{locale:o.$L,utc:o.$u,x:o.$x,$offset:o.$offset})};var q=(function(){function R(a){this.$L=H(a.locale,null,!0),this.parse(a),this.$x=this.$x||a.x||{},this[K]=!0}var o=R.prototype;return o.parse=function(a){this.$d=(function(f){var l=f.date,w=f.utc;if(l===null)return new Date(NaN);if(k.u(l))return new Date;if(l instanceof Date)return new Date(l);if(typeof l=="string"&&!/Z$/i.test(l)){var p=l.match(T);if(p){var b=p[2]-1||0,$=(p[7]||"0").substring(0,3);return w?new Date(Date.UTC(p[1],b,p[3]||1,p[4]||0,p[5]||0,p[6]||0,$)):new Date(p[1],b,p[3]||1,p[4]||0,p[5]||0,p[6]||0,$)}}return new Date(l)})(a),this.init()},o.init=function(){var a=this.$d;this.$y=a.getFullYear(),this.$M=a.getMonth(),this.$D=a.getDate(),this.$W=a.getDay(),this.$H=a.getHours(),this.$m=a.getMinutes(),this.$s=a.getSeconds(),this.$ms=a.getMilliseconds()},o.$utils=function(){return k},o.isValid=function(){return this.$d.toString()!==d},o.isSame=function(a,f){var l=P(a);return this.startOf(f)<=l&&l<=this.endOf(f)},o.isAfter=function(a,f){return P(a)<this.startOf(f)},o.isBefore=function(a,f){return this.endOf(f)<P(a)},o.$g=function(a,f,l){return k.u(a)?this[f]:this.set(l,a)},o.unix=function(){return Math.floor(this.valueOf()/1e3)},o.valueOf=function(){return this.$d.getTime()},o.startOf=function(a,f){var l=this,w=!!k.u(f)||f,p=k.p(a),b=function(te,j){var X=k.w(l.$u?Date.UTC(l.$y,j,te):new Date(l.$y,j,te),l);return w?X:X.endOf(A)},$=function(te,j){return k.w(l.toDate()[te].apply(l.toDate("s"),(w?[0,0,0,0]:[23,59,59,999]).slice(j)),l)},G=this.$W,_=this.$M,F=this.$D,re="set"+(this.$u?"UTC":"");switch(p){case C:return w?b(1,0):b(31,11);case g:return w?b(1,_):b(0,_+1);case E:var ee=this.$locale().weekStart||0,oe=(G<ee?G+7:G)-ee;return b(w?F-oe:F+(6-oe),_);case A:case O:return $(re+"Hours",0);case h:return $(re+"Minutes",1);case c:return $(re+"Seconds",2);case u:return $(re+"Milliseconds",3);default:return this.clone()}},o.endOf=function(a){return this.startOf(a,!1)},o.$set=function(a,f){var l,w=k.p(a),p="set"+(this.$u?"UTC":""),b=(l={},l[A]=p+"Date",l[O]=p+"Date",l[g]=p+"Month",l[C]=p+"FullYear",l[h]=p+"Hours",l[c]=p+"Minutes",l[u]=p+"Seconds",l[s]=p+"Milliseconds",l)[w],$=w===A?this.$D+(f-this.$W):f;if(w===g||w===C){var G=this.clone().set(O,1);G.$d[b]($),G.init(),this.$d=G.set(O,Math.min(this.$D,G.daysInMonth())).$d}else b&&this.$d[b]($);return this.init(),this},o.set=function(a,f){return this.clone().$set(a,f)},o.get=function(a){return this[k.p(a)]()},o.add=function(a,f){var l,w=this;a=Number(a);var p=k.p(f),b=function(_){var F=P(w);return k.w(F.date(F.date()+Math.round(_*a)),w)};if(p===g)return this.set(g,this.$M+a);if(p===C)return this.set(C,this.$y+a);if(p===A)return b(1);if(p===E)return b(7);var $=(l={},l[c]=t,l[h]=r,l[u]=n,l)[p]||1,G=this.$d.getTime()+a*$;return k.w(G,this)},o.subtract=function(a,f){return this.add(-1*a,f)},o.format=function(a){var f=this,l=this.$locale();if(!this.isValid())return l.invalidDate||d;var w=a||"YYYY-MM-DDTHH:mm:ssZ",p=k.z(this),b=this.$H,$=this.$m,G=this.$M,_=l.weekdays,F=l.months,re=l.meridiem,ee=function(j,X,ae,Me){return j&&(j[X]||j(f,w))||ae[X].slice(0,Me)},oe=function(j){return k.s(b%12||12,j,"0")},te=re||function(j,X,ae){var Me=j<12?"AM":"PM";return ae?Me.toLowerCase():Me};return w.replace(B,(function(j,X){return X||(function(ae){switch(ae){case"YY":return String(f.$y).slice(-2);case"YYYY":return k.s(f.$y,4,"0");case"M":return G+1;case"MM":return k.s(G+1,2,"0");case"MMM":return ee(l.monthsShort,G,F,3);case"MMMM":return ee(F,G);case"D":return f.$D;case"DD":return k.s(f.$D,2,"0");case"d":return String(f.$W);case"dd":return ee(l.weekdaysMin,f.$W,_,2);case"ddd":return ee(l.weekdaysShort,f.$W,_,3);case"dddd":return _[f.$W];case"H":return String(b);case"HH":return k.s(b,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return te(b,$,!0);case"A":return te(b,$,!1);case"m":return String($);case"mm":return k.s($,2,"0");case"s":return String(f.$s);case"ss":return k.s(f.$s,2,"0");case"SSS":return k.s(f.$ms,3,"0");case"Z":return p}return null})(j)||p.replace(":","")}))},o.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},o.diff=function(a,f,l){var w,p=this,b=k.p(f),$=P(a),G=($.utcOffset()-this.utcOffset())*t,_=this-$,F=function(){return k.m(p,$)};switch(b){case C:w=F()/12;break;case g:w=F();break;case m:w=F()/3;break;case E:w=(_-G)/6048e5;break;case A:w=(_-G)/864e5;break;case h:w=_/r;break;case c:w=_/t;break;case u:w=_/n;break;default:w=_}return l?w:k.a(w)},o.daysInMonth=function(){return this.endOf(g).$D},o.$locale=function(){return L[this.$L]},o.locale=function(a,f){if(!a)return this.$L;var l=this.clone(),w=H(a,f,!0);return w&&(l.$L=w),l},o.clone=function(){return k.w(this.$d,this)},o.toDate=function(){return new Date(this.valueOf())},o.toJSON=function(){return this.isValid()?this.toISOString():null},o.toISOString=function(){return this.$d.toISOString()},o.toString=function(){return this.$d.toUTCString()},R})(),Te=q.prototype;return P.prototype=Te,[["$ms",s],["$s",u],["$m",c],["$H",h],["$W",A],["$M",g],["$y",C],["$D",O]].forEach((function(R){Te[R[1]]=function(o){return this.$g(o,R[0],R[1])}})),P.extend=function(R,o){return R.$i||(R(o,q,P),R.$i=!0),P},P.locale=H,P.isDayjs=V,P.unix=function(R){return P(1e3*R)},P.en=L[M],P.Ls=L,P.p={},P}))})(fe)),fe.exports}var Gt=Ye();const Z=z(Gt);var de={exports:{}},Ft=de.exports,Ve;function Kt(){return Ve||(Ve=1,(function(i,e){(function(n,t){i.exports=t()})(Ft,(function(){return function(n,t){var r=t.prototype,s=r.format;r.format=function(u){var c=this,h=this.$locale();if(!this.isValid())return s.bind(this)(u);var A=this.$utils(),E=(u||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(g){switch(g){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return h.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return h.ordinal(c.week(),"W");case"w":case"ww":return A.s(c.week(),g==="w"?1:2,"0");case"W":case"WW":return A.s(c.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return A.s(String(c.$H===0?24:c.$H),g==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return g}}));return s.bind(this)(E)}}}))})(de)),de.exports}var Yt=Kt();const Vt=z(Yt);var he={exports:{}},qt=he.exports,qe;function jt(){return qe||(qe=1,(function(i,e){(function(n,t){i.exports=t()})(qt,(function(){return function(n,t,r){t.prototype.isBetween=function(s,u,c,h){var A=r(s),E=r(u),g=(h=h||"()")[0]==="(",m=h[1]===")";return(g?this.isAfter(A,c):!this.isBefore(A,c))&&(m?this.isBefore(E,c):!this.isAfter(E,c))||(g?this.isBefore(A,c):!this.isAfter(A,c))&&(m?this.isAfter(E,c):!this.isBefore(E,c))}}}))})(he)),he.exports}var zt=jt();const Wt=z(zt);var pe={exports:{}},Zt=pe.exports,je;function Jt(){return je||(je=1,(function(i,e){(function(n,t){i.exports=t()})(Zt,(function(){return function(n,t){t.prototype.isSameOrAfter=function(r,s){return this.isSame(r,s)||this.isAfter(r,s)}}}))})(pe)),pe.exports}var Xt=Jt();const Qt=z(Xt);var me={exports:{}},en=me.exports,ze;function tn(){return ze||(ze=1,(function(i,e){(function(n,t){i.exports=t()})(en,(function(){return function(n,t){t.prototype.isSameOrBefore=function(r,s){return this.isSame(r,s)||this.isBefore(r,s)}}}))})(me)),me.exports}var nn=tn();const rn=z(nn);var ye={exports:{}},on=ye.exports,We;function an(){return We||(We=1,(function(i,e){(function(n,t){i.exports=t()})(on,(function(){return function(n,t,r){var s=t.prototype,u=function(g){return g&&(g.indexOf?g:g.s)},c=function(g,m,C,O,d){var T=g.name?g:g.$locale(),B=u(T[m]),I=u(T[C]),D=B||I.map((function(M){return M.slice(0,O)}));if(!d)return D;var x=T.weekStart;return D.map((function(M,L){return D[(L+(x||0))%7]}))},h=function(){return r.Ls[r.locale()]},A=function(g,m){return g.formats[m]||(function(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(O,d,T){return d||T.slice(1)}))})(g.formats[m.toUpperCase()])},E=function(){var g=this;return{months:function(m){return m?m.format("MMMM"):c(g,"months")},monthsShort:function(m){return m?m.format("MMM"):c(g,"monthsShort","months",3)},firstDayOfWeek:function(){return g.$locale().weekStart||0},weekdays:function(m){return m?m.format("dddd"):c(g,"weekdays")},weekdaysMin:function(m){return m?m.format("dd"):c(g,"weekdaysMin","weekdays",2)},weekdaysShort:function(m){return m?m.format("ddd"):c(g,"weekdaysShort","weekdays",3)},longDateFormat:function(m){return A(g.$locale(),m)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return E.bind(this)()},r.localeData=function(){var g=h();return{firstDayOfWeek:function(){return g.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(m){return A(g,m)},meridiem:g.meridiem,ordinal:g.ordinal}},r.months=function(){return c(h(),"months")},r.monthsShort=function(){return c(h(),"monthsShort","months",3)},r.weekdays=function(g){return c(h(),"weekdays",null,null,g)},r.weekdaysShort=function(g){return c(h(),"weekdaysShort","weekdays",3,g)},r.weekdaysMin=function(g){return c(h(),"weekdaysMin","weekdays",2,g)}}}))})(ye)),ye.exports}var sn=an();const un=z(sn);var ge={exports:{}},cn=ge.exports,Ze;function ln(){return Ze||(Ze=1,(function(i,e){(function(n,t){i.exports=t()})(cn,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,r,s){var u=r.prototype,c=u.format;s.en.formats=n,u.format=function(h){h===void 0&&(h="YYYY-MM-DDTHH:mm:ssZ");var A=this.$locale().formats,E=(function(g,m){return g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(C,O,d){var T=d&&d.toUpperCase();return O||m[d]||n[d]||m[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(B,I,D){return I||D.slice(1)}))}))})(h,A===void 0?{}:A);return c.call(this,E)}}}))})(ge)),ge.exports}var fn=ln();const dn=z(fn);var we={exports:{}},hn=we.exports,Je;function pn(){return Je||(Je=1,(function(i,e){(function(n,t){i.exports=t()})(hn,(function(){return function(n,t,r){var s=function(u,c){if(!c||!c.length||c.length===1&&!c[0]||c.length===1&&Array.isArray(c[0])&&!c[0].length)return null;var h;c.length===1&&c[0].length>0&&(c=c[0]),h=(c=c.filter((function(E){return E})))[0];for(var A=1;A<c.length;A+=1)c[A].isValid()&&!c[A][u](h)||(h=c[A]);return h};r.max=function(){var u=[].slice.call(arguments,0);return s("isAfter",u)},r.min=function(){var u=[].slice.call(arguments,0);return s("isBefore",u)}}}))})(we)),we.exports}var mn=pn();const yn=z(mn);var ve={exports:{}},gn=ve.exports,Xe;function wn(){return Xe||(Xe=1,(function(i,e){(function(n,t){i.exports=t()})(gn,(function(){return function(n,t,r){n=n||{};var s=t.prototype,u={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(A,E,g,m){return s.fromToBase(A,E,g,m)}r.en.relativeTime=u,s.fromToBase=function(A,E,g,m,C){for(var O,d,T,B=g.$locale().relativeTime||u,I=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],D=I.length,x=0;x<D;x+=1){var M=I[x];M.d&&(O=m?r(A).diff(g,M.d,!0):g.diff(A,M.d,!0));var L=(n.rounding||Math.round)(Math.abs(O));if(T=O>0,L<=M.r||!M.r){L<=1&&x>0&&(M=I[x-1]);var K=B[M.l];C&&(L=C(""+L)),d=typeof K=="string"?K.replace("%d",L):K(L,E,M.l,T);break}}if(E)return d;var V=T?B.future:B.past;return typeof V=="function"?V(d):V.replace("%s",d)},s.to=function(A,E){return c(A,E,this,!0)},s.from=function(A,E){return c(A,E,this)};var h=function(A){return A.$u?r.utc():r()};s.toNow=function(A){return this.to(h(this),A)},s.fromNow=function(A){return this.from(h(this),A)}}}))})(ve)),ve.exports}var vn=wn();const Sn=z(vn);var Se={exports:{}},An=Se.exports,Qe;function Rn(){return Qe||(Qe=1,(function(i,e){(function(n,t){i.exports=t()})(An,(function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(r,s,u){var c,h=function(m,C,O){O===void 0&&(O={});var d=new Date(m),T=(function(B,I){I===void 0&&(I={});var D=I.timeZoneName||"short",x=B+"|"+D,M=t[x];return M||(M=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:B,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:D}),t[x]=M),M})(C,O);return T.formatToParts(d)},A=function(m,C){for(var O=h(m,C),d=[],T=0;T<O.length;T+=1){var B=O[T],I=B.type,D=B.value,x=n[I];x>=0&&(d[x]=parseInt(D,10))}var M=d[3],L=M===24?0:M,K=d[0]+"-"+d[1]+"-"+d[2]+" "+L+":"+d[4]+":"+d[5]+":000",V=+m;return(u.utc(K).valueOf()-(V-=V%1e3))/6e4},E=s.prototype;E.tz=function(m,C){m===void 0&&(m=c);var O,d=this.utcOffset(),T=this.toDate(),B=T.toLocaleString("en-US",{timeZone:m}),I=Math.round((T-new Date(B))/1e3/60),D=15*-Math.round(T.getTimezoneOffset()/15)-I;if(!Number(D))O=this.utcOffset(0,C);else if(O=u(B,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(D,!0),C){var x=O.utcOffset();O=O.add(d-x,"minute")}return O.$x.$timezone=m,O},E.offsetName=function(m){var C=this.$x.$timezone||u.tz.guess(),O=h(this.valueOf(),C,{timeZoneName:m}).find((function(d){return d.type.toLowerCase()==="timezonename"}));return O&&O.value};var g=E.startOf;E.startOf=function(m,C){if(!this.$x||!this.$x.$timezone)return g.call(this,m,C);var O=u(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return g.call(O,m,C).tz(this.$x.$timezone,!0)},u.tz=function(m,C,O){var d=O&&C,T=O||C||c,B=A(+u(),T);if(typeof m!="string")return u(m).tz(T);var I=(function(L,K,V){var H=L-60*K*1e3,P=A(H,V);if(K===P)return[H,K];var k=A(H-=60*(P-K)*1e3,V);return P===k?[H,P]:[L-60*Math.min(P,k)*1e3,Math.max(P,k)]})(u.utc(m,d).valueOf(),B,T),D=I[0],x=I[1],M=u(D).utcOffset(x);return M.$x.$timezone=T,M},u.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},u.tz.setDefault=function(m){c=m}}}))})(Se)),Se.exports}var En=Rn();const Cn=z(En);var Ae={exports:{}},On=Ae.exports,et;function Tn(){return et||(et=1,(function(i,e){(function(n,t){i.exports=t()})(On,(function(){var n="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(s,u,c){var h=u.prototype;c.utc=function(d){var T={date:d,utc:!0,args:arguments};return new u(T)},h.utc=function(d){var T=c(this.toDate(),{locale:this.$L,utc:!0});return d?T.add(this.utcOffset(),n):T},h.local=function(){return c(this.toDate(),{locale:this.$L,utc:!1})};var A=h.parse;h.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),A.call(this,d)};var E=h.init;h.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else E.call(this)};var g=h.utcOffset;h.utcOffset=function(d,T){var B=this.$utils().u;if(B(d))return this.$u?0:B(this.$offset)?g.call(this):this.$offset;if(typeof d=="string"&&(d=(function(M){M===void 0&&(M="");var L=M.match(t);if(!L)return null;var K=(""+L[0]).match(r)||["-",0,0],V=K[0],H=60*+K[1]+ +K[2];return H===0?0:V==="+"?H:-H})(d),d===null))return this;var I=Math.abs(d)<=16?60*d:d;if(I===0)return this.utc(T);var D=this.clone();if(T)return D.$offset=I,D.$u=!1,D;var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(D=this.local().add(I+x,n)).$offset=I,D.$x.$localOffset=x,D};var m=h.format;h.format=function(d){var T=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,T)},h.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},h.isUTC=function(){return!!this.$u},h.toISOString=function(){return this.toDate().toISOString()},h.toString=function(){return this.toDate().toUTCString()};var C=h.toDate;h.toDate=function(d){return d==="s"&&this.$offset?c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():C.call(this)};var O=h.diff;h.diff=function(d,T,B){if(d&&this.$u===d.$u)return O.call(this,d,T,B);var I=this.local(),D=c(d).local();return O.call(I,D,T,B)}}}))})(Ae)),Ae.exports}var Mn=Tn();const kn=z(Mn);var Re={exports:{}},_n=Re.exports,tt;function Dn(){return tt||(tt=1,(function(i,e){(function(n,t){i.exports=t(Ye())})(_n,(function(n){function t(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var r=t(n),s={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(u){return""+u+(u===1?"er":"")}};return r.default.locale(s,null,!0),s}))})(Re)),Re.exports}Dn();var Ee={exports:{}},bn=Ee.exports,nt;function In(){return nt||(nt=1,(function(i,e){(function(n,t){i.exports=t()})(bn,(function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(n){var t=["th","st","nd","rd"],r=n%100;return"["+n+(t[(r-20)%10]||t[r]||t[0])+"]"}}}))})(Ee)),Ee.exports}In(),Z.extend(Vt),Z.extend(Wt),Z.extend(Qt),Z.extend(rn),Z.extend(dn),Z.extend(un),Z.extend(yn),Z.extend(Sn),Z.extend(Cn),Z.extend(kn);function J(i){if(i===null||typeof i!="object")return!1;const e=Object.getPrototypeOf(i);return e===Object.prototype||e===null}function Ce(i,e=new WeakSet){if(i==null||typeof i!="object"||e.has(i))return i;if(e.add(i),Array.isArray(i))return i.map(n=>Ce(n,e));if(J(i)){const n={};for(const t in i)Object.hasOwn(i,t)&&(n[t]=Ce(i[t],e));return n}return i}function Ie(i,e,n=new WeakSet){if(!(!J(e)||!J(i))&&!(e===i||n.has(e))){n.add(e);for(const t in e)if(Object.hasOwn(e,t)){const r=e[t],s=i[t];J(r)&&J(s)?Ie(s,r,n):Array.isArray(r)&&Array.isArray(s)?i[t]=rt(s,r,n):i[t]=Ce(r,n)}}}function rt(i,e,n){const t=i.slice();for(let r=0;r<e.length;r++){const s=e[r],u=t[r];if(J(s)&&J(u)){const c={...u};Ie(c,s,n),t[r]=c}else Array.isArray(s)&&Array.isArray(u)?t[r]=rt(u,s,n):t[r]=Ce(s,n)}return t}function it(i,...e){if(!J(i))throw new TypeError("Target must be a plain object");const n=new WeakSet;for(const t of e)t!=null&&Ie(i,t,n);return i}const Y=[];for(let i=0;i<256;++i)Y.push((i+256).toString(16).slice(1));function Bn(i,e=0){return(Y[i[e+0]]+Y[i[e+1]]+Y[i[e+2]]+Y[i[e+3]]+"-"+Y[i[e+4]]+Y[i[e+5]]+"-"+Y[i[e+6]]+Y[i[e+7]]+"-"+Y[i[e+8]]+Y[i[e+9]]+"-"+Y[i[e+10]]+Y[i[e+11]]+Y[i[e+12]]+Y[i[e+13]]+Y[i[e+14]]+Y[i[e+15]]).toLowerCase()}let Be;const Ln=new Uint8Array(16);function Pn(){if(!Be){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Be=crypto.getRandomValues.bind(crypto)}return Be(Ln)}const ot={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Nn(i,e,n){i=i||{};const t=i.random??i.rng?.()??Pn();if(t.length<16)throw new Error("Random bytes length must be >= 16");return t[6]=t[6]&15|64,t[8]=t[8]&63|128,Bn(t)}function Un(i,e,n){return ot.randomUUID&&!i?ot.randomUUID():Nn(i)}const $n=1500;class ne{static instance=null;defaultOptions={callCount:1,interval:$n,maxCallCount:20,minCallCount:1};pollings={};events={complete:()=>{},data:()=>{},error:()=>{}};static getInstance(){return ne.instance||(ne.instance=new ne),ne.instance}poll(e,n){const t=this.buildPollerOptions(n);return this.storeCurrentPolling(t),this.isActivePoller(t)&&e().then(r=>this.onRequest(r,e,t)).catch(r=>{this.dispatch("error",r)}),this}on(e,n){this.events[e]=n}stop(e){e&&this.pollings[e]&&delete this.pollings[e]}dispatch(e,n){this.events[e](n)}async onRequest(e,n,t){const r=v(e??{},S.Camel);this.isActivePoller(t)&&(this.isInProgress(r)&&t.callCount&&t.maxCallCount&&t.callCount<t.maxCallCount||!this.isInProgress(r)&&t.callCount&&t.minCallCount&&t.callCount<t.minCallCount?(this.isInProgress(r)||(r.meta=r.meta||{},r.meta.status="IN_PROGRESS"),t.callCount+=1,this.dispatch("data",r),t.interval&&await this.pause(t),this.poll(n,t)):this.isInProgress(r)?(r.meta=r.meta||{},r.meta.status="COMPLETE",this.onComplete(r,t)):this.onComplete(r,t))}onComplete(e,n){this.dispatch("data",e),this.dispatch("complete",e),this.removeCurrentPolling(n)}isInProgress(e){return(e?.meta?.status??"")!=="COMPLETE"}buildPollerOptions(e){const n=Object.entries(e).reduce((t,[r,s])=>{if(s!==void 0){const u=r;t[u]=s}return t},{});return{...this.defaultOptions,...n}}storeCurrentPolling(e){e.type&&!e.uuid&&(e.uuid=Un(),this.pollings[e.type]=e.uuid)}isActivePoller(e){return e.type?!!this.pollings[e.type]&&this.pollings[e.type]===e.uuid:!0}pause(e){return new Promise(n=>{setTimeout(n,e.interval)})}removeCurrentPolling(e){e.type&&this.pollings[e.type]&&delete this.pollings[e.type]}}function at(i,e,n){const t=ne.getInstance();return t.poll(i,e),n&&typeof n=="function"?(t.on("data",r=>{r instanceof Error?n(r,void 0,t):n(null,r,t)}),t.on("error",r=>{r instanceof Error?n(r):n(null,r)}),t):new Promise((r,s)=>{t.on("error",s),t.on("complete",u=>{u instanceof Error?s(u):r(u)})})}typeof SuppressedError=="function"&&SuppressedError;const st="http://localhost".replace(/\/+$/,""),xn=i=>typeof Blob<"u"&&i instanceof Blob;class W{constructor(e=new Le){this.configuration=e,this.middleware=e.middleware}middleware;withMiddleware(...e){const n=this.clone();return n.middleware=n.middleware.concat(...e),n}withPreMiddleware(...e){const n=e.map(t=>({pre:t}));return this.withMiddleware(...n)}withPostMiddleware(...e){const n=e.map(t=>({post:t}));return this.withMiddleware(...n)}async request(e,n){const{url:t,init:r}=this.createFetchParams(e,n),s=await this.fetchApi(t,r);if(s.status>=200&&s.status<300)return s;throw new ut(s,"Response returned an error code")}createFetchParams(e,n){let t=this.configuration.basePath+e.path;e.query!==void 0&&Object.keys(e.query).length!==0&&(t+="?"+this.configuration.queryParamsStringify(e.query));const r=typeof FormData<"u"&&e.body instanceof FormData||e.body instanceof URLSearchParams||xn(e.body)?e.body:JSON.stringify(e.body),s=Object.assign({},this.configuration.headers,e.headers);Object.keys(s).forEach(c=>s[c]===void 0?delete s[c]:{});const u={method:e.method,body:r,credentials:this.configuration.credentials,...it({},n,{headers:it({},s,n?.headers)})};return{url:t,init:u}}fetchApi=async(e,n)=>{let t={url:e,init:n};for(const s of this.middleware)s.pre&&(t=await s.pre({fetch:this.fetchApi,...t})||t);let r=await(this.configuration.fetchApi||fetch)(t.url,t.init);for(const s of this.middleware)s.post&&(r=await s.post({fetch:this.fetchApi,url:t.url,init:t.init,response:r.clone()})||r);return r};clone(){const e=this.constructor,n=new e(this.configuration);return n.middleware=this.middleware.slice(),n}}class ut extends Error{constructor(e,n){super(n),this.response=e}name="ResponseError"}class N extends Error{constructor(e,n){super(n),this.field=e}name="RequiredError"}const Hn={csv:",",ssv:" ",tsv:" ",pipes:"|"};class Le{constructor(e={}){this.configuration=e}get basePath(){return this.configuration.basePath!=null?this.configuration.basePath:st}get fetchApi(){return this.configuration.fetchApi}get middleware(){return this.configuration.middleware||[]}get queryParamsStringify(){return this.configuration.queryParamsStringify||Pe}get username(){return this.configuration.username}get password(){return this.configuration.password}get apiKey(){const e=this.configuration.apiKey;if(e)return typeof e=="function"?e:()=>e}get accessToken(){const e=this.configuration.accessToken;if(e)return typeof e=="function"?e:async()=>e}get headers(){return this.configuration.headers}get credentials(){return this.configuration.credentials}}function Gn(i,e){const n=i[e];return n!=null}function Pe(i,e=""){return Object.keys(i).map(n=>{const t=e+(e.length?`[${n}]`:n),r=i[n];if(r instanceof Array){const s=r.map(u=>encodeURIComponent(String(u))).join(`&${encodeURIComponent(t)}=`);return`${encodeURIComponent(t)}=${s}`}return r instanceof Date?`${encodeURIComponent(t)}=${encodeURIComponent(r.toISOString())}`:r instanceof Object?Pe(r,t):`${encodeURIComponent(t)}=${encodeURIComponent(String(r))}`}).filter(n=>n.length>0).join("&")}function Fn(i,e){return Object.keys(i).reduce((n,t)=>({...n,[t]:e(i[t])}),{})}function Kn(i){for(const e of i)if(e.contentType==="multipart/form-data")return!0;return!1}class U{constructor(e,n=t=>t){this.raw=e,this.transformer=n}async value(){return this.transformer(await this.raw.json())}}class Yn{constructor(e){this.raw=e}async value(){}}class Vn{constructor(e){this.raw=e}async value(){return await this.raw.blob()}}class ct{constructor(e){this.raw=e}async value(){return await this.raw.text()}}const qn={CreditCard:"CREDIT_CARD"},jn={Coupon:"COUPON"},zn={DepositAccount:"DEPOSIT_ACCOUNT"},Wn={PayLater:"PAY_LATER"},Zn={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},Jn={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},Xn={Cx:"bkg-cx",Cf:"bkg-cf",Created:"bkg-created",Af:"bkg-af",Ip:"bkg-ip",Pc:"bkg-pc",Pp:"bkg-pp",Qr:"bkg-qr"},Qn={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"},er={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"},tr={Dr:"dr",Mr:"mr",Mrs:"mrs",Ms:"ms",NotSpecified:"notSpecified",Prof:"prof"},nr={Ad:"AD",Ae:"AE",Af:"AF",Ag:"AG",Ai:"AI",Al:"AL",Am:"AM",Ao:"AO",Ar:"AR",As:"AS",At:"AT",Au:"AU",Aw:"AW",Ax:"AX",Az:"AZ",Ba:"BA",Bb:"BB",Bd:"BD",Be:"BE",Bf:"BF",Bg:"BG",Bh:"BH",Bi:"BI",Bj:"BJ",Bl:"BL",Bm:"BM",Bn:"BN",Bo:"BO",Bq:"BQ",Br:"BR",Bs:"BS",Bt:"BT",Bw:"BW",By:"BY",Bz:"BZ",Ca:"CA",Cc:"CC",Cd:"CD",Cf:"CF",Cg:"CG",Ch:"CH",Ci:"CI",Ck:"CK",Cl:"CL",Cm:"CM",Cn:"CN",Co:"CO",Cr:"CR",Cu:"CU",Cv:"CV",Cw:"CW",Cx:"CX",Cy:"CY",Cz:"CZ",De:"DE",Dj:"DJ",Dk:"DK",Dm:"DM",Do:"DO",Dz:"DZ",Ec:"EC",Ee:"EE",Eg:"EG",Eh:"EH",Er:"ER",Es:"ES",Et:"ET",Fi:"FI",Fj:"FJ",Fk:"FK",Fm:"FM",Fo:"FO",Fr:"FR",Ga:"GA",Gb:"GB",Gd:"GD",Ge:"GE",Gf:"GF",Gg:"GG",Gh:"GH",Gi:"GI",Gl:"GL",Gm:"GM",Gn:"GN",Gp:"GP",Gq:"GQ",Gr:"GR",Gt:"GT",Gu:"GU",Gw:"GW",Gy:"GY",Hk:"HK",Hn:"HN",Hr:"HR",Ht:"HT",Hu:"HU",Id:"ID",Ie:"IE",Il:"IL",Im:"IM",In:"IN",Io:"IO",Iq:"IQ",Ir:"IR",Is:"IS",It:"IT",Je:"JE",Jm:"JM",Jo:"JO",Jp:"JP",Ke:"KE",Kg:"KG",Kh:"KH",Ki:"KI",Km:"KM",Kn:"KN",Kp:"KP",Kr:"KR",Kw:"KW",Ky:"KY",Kz:"KZ",La:"LA",Lb:"LB",Lc:"LC",Li:"LI",Lk:"LK",Lr:"LR",Ls:"LS",Lt:"LT",Lu:"LU",Lv:"LV",Ly:"LY",Ma:"MA",Mc:"MC",Md:"MD",Me:"ME",Mf:"MF",Mg:"MG",Mh:"MH",Mk:"MK",Ml:"ML",Mm:"MM",Mn:"MN",Mo:"MO",Mp:"MP",Mq:"MQ",Mr:"MR",Ms:"MS",Mt:"MT",Mu:"MU",Mv:"MV",Mw:"MW",Mx:"MX",My:"MY",Mz:"MZ",Na:"NA",Nc:"NC",Ne:"NE",Nf:"NF",Ng:"NG",Ni:"NI",Nl:"NL",No:"NO",Np:"NP",Nr:"NR",Nu:"NU",Nz:"NZ",Om:"OM",Pa:"PA",Pe:"PE",Pf:"PF",Pg:"PG",Ph:"PH",Pk:"PK",Pl:"PL",Pm:"PM",Pr:"PR",Ps:"PS",Pt:"PT",Pw:"PW",Py:"PY",Qa:"QA",Re:"RE",Ro:"RO",Rs:"RS",Ru:"RU",Rw:"RW",Sa:"SA",Sb:"SB",Sc:"SC",Sd:"SD",Se:"SE",Sg:"SG",Sh:"SH",Si:"SI",Sj:"SJ",Sk:"SK",Sl:"SL",Sm:"SM",Sn:"SN",So:"SO",Sr:"SR",Ss:"SS",St:"ST",Sv:"SV",Sx:"SX",Sy:"SY",Sz:"SZ",Tc:"TC",Td:"TD",Tg:"TG",Th:"TH",Tj:"TJ",Tk:"TK",Tl:"TL",Tm:"TM",Tn:"TN",To:"TO",Tr:"TR",Tt:"TT",Tv:"TV",Tw:"TW",Tz:"TZ",Ua:"UA",Ug:"UG",Us:"US",Uy:"UY",Uz:"UZ",Va:"VA",Vc:"VC",Ve:"VE",Vg:"VG",Vi:"VI",Vn:"VN",Vu:"VU",Wf:"WF",Ws:"WS",Xk:"XK",Ye:"YE",Yt:"YT",Za:"ZA",Zm:"ZM",Zw:"ZW"},rr={Aed:"AED",Afn:"AFN",All:"ALL",Amd:"AMD",Ang:"ANG",Aoa:"AOA",Ars:"ARS",Aud:"AUD",Awg:"AWG",Azn:"AZN",Bam:"BAM",Bbd:"BBD",Bdt:"BDT",Bhd:"BHD",Bgn:"BGN",Bif:"BIF",Bmd:"BMD",Bnd:"BND",Bob:"BOB",Brl:"BRL",Bsd:"BSD",Bwp:"BWP",Bzd:"BZD",Cad:"CAD",Cdf:"CDF",Chf:"CHF",Clp:"CLP",Cny:"CNY",Cop:"COP",Crc:"CRC",Cve:"CVE",Czk:"CZK",Djf:"DJF",Dkk:"DKK",Dop:"DOP",Dzd:"DZD",Egp:"EGP",Etb:"ETB",Eur:"EUR",Fjd:"FJD",Fkp:"FKP",Gbp:"GBP",Gel:"GEL",Gip:"GIP",Gmd:"GMD",Gnf:"GNF",Gtq:"GTQ",Gyd:"GYD",Hkd:"HKD",Hnl:"HNL",Htg:"HTG",Huf:"HUF",Idr:"IDR",Ils:"ILS",Inr:"INR",Isk:"ISK",Jmd:"JMD",Jod:"JOD",Jpy:"JPY",Kes:"KES",Kgs:"KGS",Khr:"KHR",Kmf:"KMF",Krw:"KRW",Kwd:"KWD",Kyd:"KYD",Kzt:"KZT",Lak:"LAK",Lbp:"LBP",Lkr:"LKR",Lrd:"LRD",Lsl:"LSL",Mad:"MAD",Mdl:"MDL",Mga:"MGA",Mkd:"MKD",Mmk:"MMK",Mnt:"MNT",Mop:"MOP",Mru:"MRU",Mur:"MUR",Mvr:"MVR",Mwk:"MWK",Mxn:"MXN",Myr:"MYR",Mzn:"MZN",Nad:"NAD",Ngn:"NGN",Nio:"NIO",Nok:"NOK",Npr:"NPR",Nzd:"NZD",Omr:"OMR",Pab:"PAB",Pen:"PEN",Pgk:"PGK",Php:"PHP",Pkr:"PKR",Pln:"PLN",Pyg:"PYG",Qar:"QAR",Ron:"RON",Rsd:"RSD",Rub:"RUB",Rwf:"RWF",Sar:"SAR",Sbd:"SBD",Scr:"SCR",Sek:"SEK",Sgd:"SGD",Shp:"SHP",Sll:"SLL",Sos:"SOS",Srd:"SRD",Std:"STD",Szl:"SZL",Thb:"THB",Tjs:"TJS",Tnd:"TND",Top:"TOP",Try:"TRY",Ttd:"TTD",Twd:"TWD",Tzs:"TZS",Uah:"UAH",Usd:"USD",Uyu:"UYU",Uzs:"UZS",Vnd:"VND",Vuv:"VUV",Wst:"WST",Xaf:"XAF",Xcd:"XCD",Xof:"XOF",Xpf:"XPF",Yer:"YER",Zar:"ZAR",Zmw:"ZMW"},ir={ApiError:"api_error",BadGateway:"bad_gateway",InternalServerError:"internal_server_error",InvalidRequestError:"invalid_request_error",RateLimitError:"rate_limit_error",ResourceGone:"resource_gone",ResourceNotFound:"resource_not_found",Unauthorized:"unauthorized",ValidationError:"validation_error"},or={Included:"INCLUDED",NotIncluded:"NOT_INCLUDED",Optional:"OPTIONAL"},ar={BestMatch:"BEST_MATCH",Cheapest:"CHEAPEST",MatchingRoomCount:"MATCHING_ROOM_COUNT",Regular:"REGULAR"},sr={Included:"included",NotIncluded:"not_included",Unknown:"unknown"},ur={HotelRoom:"HOTEL_ROOM",Package:"PACKAGE"},cr={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"},lr={CreditNote:"credit_note",Invoice:"invoice"},fr={CreditCard:"CREDIT_CARD"},dr={Coupon:"COUPON"},hr={DepositAccount:"DEPOSIT_ACCOUNT"},pr={PayLater:"PAY_LATER"},mr={Disabled:"DISABLED",Enabled:"ENABLED",Forced:"FORCED"},yr={Coupon:"COUPON",CreditCard:"CREDIT_CARD",DepositAccount:"DEPOSIT_ACCOUNT"},gr={Complete:"COMPLETE",InProgress:"IN_PROGRESS"},wr={Ad:"AD",Ae:"AE",Af:"AF",Ag:"AG",Ai:"AI",Al:"AL",Am:"AM",Ao:"AO",Ar:"AR",As:"AS",At:"AT",Au:"AU",Aw:"AW",Ax:"AX",Az:"AZ",Ba:"BA",Bb:"BB",Bd:"BD",Be:"BE",Bf:"BF",Bg:"BG",Bh:"BH",Bi:"BI",Bj:"BJ",Bl:"BL",Bm:"BM",Bn:"BN",Bo:"BO",Bq:"BQ",Br:"BR",Bs:"BS",Bt:"BT",Bw:"BW",By:"BY",Bz:"BZ",Ca:"CA",Cc:"CC",Cd:"CD",Cf:"CF",Cg:"CG",Ch:"CH",Ci:"CI",Ck:"CK",Cl:"CL",Cm:"CM",Cn:"CN",Co:"CO",Cr:"CR",Cu:"CU",Cv:"CV",Cw:"CW",Cx:"CX",Cy:"CY",Cz:"CZ",De:"DE",Dj:"DJ",Dk:"DK",Dm:"DM",Do:"DO",Dz:"DZ",Ec:"EC",Ee:"EE",Eg:"EG",Eh:"EH",Er:"ER",Es:"ES",Et:"ET",Fi:"FI",Fj:"FJ",Fk:"FK",Fm:"FM",Fo:"FO",Fr:"FR",Ga:"GA",Gb:"GB",Gd:"GD",Ge:"GE",Gf:"GF",Gg:"GG",Gh:"GH",Gi:"GI",Gl:"GL",Gm:"GM",Gn:"GN",Gp:"GP",Gq:"GQ",Gr:"GR",Gt:"GT",Gu:"GU",Gw:"GW",Gy:"GY",Hk:"HK",Hn:"HN",Hr:"HR",Ht:"HT",Hu:"HU",Id:"ID",Ie:"IE",Il:"IL",Im:"IM",In:"IN",Io:"IO",Iq:"IQ",Ir:"IR",Is:"IS",It:"IT",Je:"JE",Jm:"JM",Jo:"JO",Jp:"JP",Ke:"KE",Kg:"KG",Kh:"KH",Ki:"KI",Km:"KM",Kn:"KN",Kp:"KP",Kr:"KR",Kw:"KW",Ky:"KY",Kz:"KZ",La:"LA",Lb:"LB",Lc:"LC",Li:"LI",Lk:"LK",Lr:"LR",Ls:"LS",Lt:"LT",Lu:"LU",Lv:"LV",Ly:"LY",Ma:"MA",Mc:"MC",Md:"MD",Me:"ME",Mf:"MF",Mg:"MG",Mh:"MH",Mk:"MK",Ml:"ML",Mm:"MM",Mn:"MN",Mo:"MO",Mp:"MP",Mq:"MQ",Mr:"MR",Ms:"MS",Mt:"MT",Mu:"MU",Mv:"MV",Mw:"MW",Mx:"MX",My:"MY",Mz:"MZ",Na:"NA",Nc:"NC",Ne:"NE",Nf:"NF",Ng:"NG",Ni:"NI",Nl:"NL",No:"NO",Np:"NP",Nr:"NR",Nu:"NU",Nz:"NZ",Om:"OM",Pa:"PA",Pe:"PE",Pf:"PF",Pg:"PG",Ph:"PH",Pk:"PK",Pl:"PL",Pm:"PM",Pr:"PR",Ps:"PS",Pt:"PT",Pw:"PW",Py:"PY",Qa:"QA",Re:"RE",Ro:"RO",Rs:"RS",Ru:"RU",Rw:"RW",Sa:"SA",Sb:"SB",Sc:"SC",Sd:"SD",Se:"SE",Sg:"SG",Sh:"SH",Si:"SI",Sj:"SJ",Sk:"SK",Sl:"SL",Sm:"SM",Sn:"SN",So:"SO",Sr:"SR",Ss:"SS",St:"ST",Sv:"SV",Sx:"SX",Sy:"SY",Sz:"SZ",Tc:"TC",Td:"TD",Tg:"TG",Th:"TH",Tj:"TJ",Tk:"TK",Tl:"TL",Tm:"TM",Tn:"TN",To:"TO",Tr:"TR",Tt:"TT",Tv:"TV",Tw:"TW",Tz:"TZ",Ua:"UA",Ug:"UG",Us:"US",Uy:"UY",Uz:"UZ",Va:"VA",Vc:"VC",Ve:"VE",Vg:"VG",Vi:"VI",Vn:"VN",Vu:"VU",Wf:"WF",Ws:"WS",Xk:"XK",Ye:"YE",Yt:"YT",Za:"ZA",Zm:"ZM",Zw:"ZW"},vr={Night:"PER_NIGHT",Stay:"PER_STAY"},Sr={Adult:"PER_ADULT",Booking:"PER_BOOKING"};class lt extends W{async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicy.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/booking_policies/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}async paymentMethodsRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicyIdPaymentMethods.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/booking-policies/{id}/payment-methods".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return new U(s,u=>v(u,S.Camel)).value()}async paymentMethods(e,n){return this.paymentMethodsRaw(e,n)}async createRaw(e,n){const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/booking_policies",method:"POST",headers:r,query:v(t,S.Snake),body:v(e.bookingPoliciesCreateApi,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async create(e={},n){return this.createRaw(e,n)}}class ft extends W{async deleteRaw(e,n){if(e.token===null||e.token===void 0)throw new N("token","Required parameter requestParameters.token was null or undefined when calling deleteV1BookingsToken.");const t={},r={},s=await this.request({path:"/v1/bookings/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"DELETE",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async delete(e,n){return this.deleteRaw(e,n)}async listRaw(e,n){const t={};e.endingBefore!==void 0&&(t.ending_before=e.endingBefore),e.filterByCheckInDate!==void 0&&(t.filter_by_check_in_date=e.filterByCheckInDate),e.filterByLastStatusUpdatedAt!==void 0&&(t.filter_by_last_status_updated_at=e.filterByLastStatusUpdatedAt),e.filterByMetadata!==void 0&&(t.filter_by_metadata=e.filterByMetadata),e.filterByStatus!==void 0&&(t.filter_by_status=e.filterByStatus),e.limit!==void 0&&(t.limit=e.limit),e.sortBy!==void 0&&(t.sort_by=e.sortBy),e.sortByOrder!==void 0&&(t.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(t.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings",method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async list(e={},n){return this.listRaw(e,n)}async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling getV1BookingsId.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}async retrievePublicRaw(e,n){if(e.token===null||e.token===void 0)throw new N("token","Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenPublic.");const t={},r={},s=await this.request({path:"/v1/bookings/{token}/public".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async retrievePublic(e,n){return this.retrievePublicRaw(e,n)}async createRaw(e,n){const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings",method:"POST",headers:r,query:v(t,S.Snake),body:v(e.bookingCreateApi,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async create(e={},n){return this.createRaw(e,n)}async couponChargeRaw(e,n){if(e.couponId===null||e.couponId===void 0)throw new N("couponId","Required parameter requestParameters.couponId was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings/{id}/coupons/{coupon_id}/charge".replace("{coupon_id}",encodeURIComponent(String(e.couponId))).replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async couponCharge(e,n){return this.couponChargeRaw(e,n)}async paylaterRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLater.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings/{id}/pay-later".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async paylater(e,n){return this.paylaterRaw(e,n)}async confirmpaylaterRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLaterConfirm.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings/{id}/pay-later/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async confirmpaylater(e,n){return this.confirmpaylaterRaw(e,n)}async confirmRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdconfirm.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings/{id}/confirm".replace("{id}",encodeURIComponent(String(e.id))),method:"POST",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async confirm(e,n){return this.confirmRaw(e,n)}async updatePaymentMethodsRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling putV1BookingsIdPaymentMethods.");const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/bookings/{id}/payment_methods".replace("{id}",encodeURIComponent(String(e.id))),method:"PUT",headers:r,query:v(t,S.Snake),body:v(e.paymentMethodUpdatePayloadApi,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async updatePaymentMethods(e,n){return this.updatePaymentMethodsRaw(e,n)}}const Ar={CheckInDate:"check_in_date",CreatedAt:"created_at",LastStatusUpdatedAt:"last_status_updated_at"},Rr={Asc:"asc",Desc:"desc"};class dt extends W{async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsIdImages.");const t={};e.lang!==void 0&&(t.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotels/{id}/images".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return new U(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}}const Er={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};class ht extends W{async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelOfferRequestsId.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}async createRaw(e,n){const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_offer_requests",method:"POST",headers:r,query:v(t,S.Snake),body:v(e.hotelOfferRequestCreateApi,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async create(e={},n){return this.createRaw(e,n)}}class pt extends W{async listRaw(e,n){if(e.currency===null||e.currency===void 0)throw new N("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelOffers.");if(e.hotelOfferRequestId===null||e.hotelOfferRequestId===void 0)throw new N("hotelOfferRequestId","Required parameter requestParameters.hotelOfferRequestId was null or undefined when calling getV1HotelOffers.");const t={};e.currency!==void 0&&(t.currency=e.currency),e.endingBefore!==void 0&&(t.ending_before=e.endingBefore),e.filterByPrice!==void 0&&(t.filter_by_price=e.filterByPrice),e.filterByReviewRating!==void 0&&(t.filter_by_review_rating=e.filterByReviewRating),e.filterByStar!==void 0&&(t.filter_by_star=e.filterByStar),e.hotelOfferRequestId!==void 0&&(t.hotel_offer_request_id=e.hotelOfferRequestId),e.hotelRoomOffersLimit!==void 0&&(t.hotel_room_offers_limit=e.hotelRoomOffersLimit),e.includeHotelContentDetails!==void 0&&(t.include_hotel_content_details=e.includeHotelContentDetails),e.lang!==void 0&&(t.lang=e.lang),e.limit!==void 0&&(t.limit=e.limit),e.onlyRecommendedHotelOffers!==void 0&&(t.only_recommended_hotel_offers=e.onlyRecommendedHotelOffers),e.priceHistogramStepCount!==void 0&&(t.price_histogram_step_count=e.priceHistogramStepCount),e.sortBy!==void 0&&(t.sort_by=e.sortBy),e.sortByOrder!==void 0&&(t.sort_by_order=e.sortByOrder),e.startingAfter!==void 0&&(t.starting_after=e.startingAfter);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_offers",method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async list(e,n,t){return await at(()=>this.listRaw(e,t),{type:be.HOTEL_SEARCH_POLLING,minCallCount:t?.minCallCount,maxCallCount:t?.maxCallCount},n)}}const Cr={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"},Or={Distance:"distance",Price:"price",Rating:"rating",ReviewRating:"review_rating",TopPicks:"top_picks"},Tr={Asc:"asc",Desc:"desc"};class mt extends W{async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOfferRequestsId.");const t={},r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_room_offer_requests/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}async createRaw(e,n){const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_room_offer_requests",method:"POST",headers:r,query:v(t,S.Snake),body:v(e.hotelRoomOfferRequestCreateApi,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async create(e={},n){return this.createRaw(e,n)}}class yt extends W{async listRaw(e,n){if(e.currency===null||e.currency===void 0)throw new N("currency","Required parameter requestParameters.currency was null or undefined when calling getV1HotelRoomOffers.");if(e.hotelRoomOfferRequestId===null||e.hotelRoomOfferRequestId===void 0)throw new N("hotelRoomOfferRequestId","Required parameter requestParameters.hotelRoomOfferRequestId was null or undefined when calling getV1HotelRoomOffers.");const t={};e.currency!==void 0&&(t.currency=e.currency),e.hotelRoomOfferRequestId!==void 0&&(t.hotel_room_offer_request_id=e.hotelRoomOfferRequestId),e.lang!==void 0&&(t.lang=e.lang),e.limit!==void 0&&(t.limit=e.limit);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_room_offers",method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async list(e,n,t){return await at(()=>this.listRaw(e,t),{type:be.HOTEL_ROOM_OFFERS,minCallCount:t?.minCallCount,maxCallCount:t?.maxCallCount},n)}async createRaw(e,n){const t={},r={};r["Content-Type"]="application/json",this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotel_room_offers",method:"POST",headers:r,query:v(t,S.Snake),body:v(e.hotelRoomOffersCreateApi,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async create(e={},n){return this.createRaw(e,n)}}const Mr={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};class gt extends W{async deleteRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new N("token","Required parameter requestParameters.token was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");const t={},r={},s=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(e.id))).replace("{token}",encodeURIComponent(String(e.token))),method:"DELETE",headers:r,query:v(t,S.Snake)},n);return new ct(s)}async delete(e,n){return this.deleteRaw(e,n)}async updateRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");if(e.token===null||e.token===void 0)throw new N("token","Required parameter requestParameters.token was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");const t={},r={};r["Content-Type"]="application/json";const s=await this.request({path:"/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}",encodeURIComponent(String(e.id))).replace("{token}",encodeURIComponent(String(e.token))),method:"PATCH",headers:r,query:v(t,S.Snake),body:v(e.hotelRoomingListGuestsUpdateApi,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async update(e,n){return this.updateRaw(e,n)}async createRaw(e,n){if(e.token===null||e.token===void 0)throw new N("token","Required parameter requestParameters.token was null or undefined when calling postV1HotelRoomingListGuestsToken.");const t={},r={};r["Content-Type"]="application/json";const s=await this.request({path:"/v1/hotel_rooming_list_guests/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"POST",headers:r,query:v(t,S.Snake),body:v(e.hotelRoomingListGuestsCreateApi,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async create(e,n){return this.createRaw(e,n)}}class wt extends W{async listRaw(e,n){if(e.token===null||e.token===void 0)throw new N("token","Required parameter requestParameters.token was null or undefined when calling getV1HotelRoomingListsToken.");const t={};e.lang!==void 0&&(t.lang=e.lang);const r={},s=await this.request({path:"/v1/hotel_rooming_lists/{token}".replace("{token}",encodeURIComponent(String(e.token))),method:"GET",headers:r,query:v(t,S.Snake)},n);return new U(s,u=>v(u,S.Camel)).value()}async list(e,n){return this.listRaw(e,n)}}const kr={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};class vt extends W{async retrieveRaw(e,n){if(e.id===null||e.id===void 0)throw new N("id","Required parameter requestParameters.id was null or undefined when calling getV1HotelsId.");const t={};e.event!==void 0&&(t.event=e.event),e.lang!==void 0&&(t.lang=e.lang);const r={};this.configuration&&this.configuration.apiKey&&(r["x-api-key"]=this.configuration.apiKey("x-api-key"));const s=await this.request({path:"/v1/hotels/{id}".replace("{id}",encodeURIComponent(String(e.id))),method:"GET",headers:r,query:v(t,S.Snake)},n);return await new U(s,u=>v(u,S.Camel)).value()}async retrieve(e,n){return this.retrieveRaw(e,n)}}const _r={DeDe:"de-DE",EnUs:"en-US",EsEs:"es-ES",FrFr:"fr-FR",ItIt:"it-IT",NlNl:"nl-NL",PtPt:"pt-PT"};var Oe={exports:{}},St;function Dr(){return St||(St=1,(function(i,e){var n=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof ce<"u"&&ce,t=(function(){function s(){this.fetch=!1,this.DOMException=n.DOMException}return s.prototype=n,new s})();(function(s){(function(u){var c=typeof s<"u"&&s||typeof self<"u"&&self||typeof ce<"u"&&ce||{},h={searchParams:"URLSearchParams"in c,iterable:"Symbol"in c&&"iterator"in Symbol,blob:"FileReader"in c&&"Blob"in c&&(function(){try{return new Blob,!0}catch{return!1}})(),formData:"FormData"in c,arrayBuffer:"ArrayBuffer"in c};function A(o){return o&&DataView.prototype.isPrototypeOf(o)}if(h.arrayBuffer)var E=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],g=ArrayBuffer.isView||function(o){return o&&E.indexOf(Object.prototype.toString.call(o))>-1};function m(o){if(typeof o!="string"&&(o=String(o)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(o)||o==="")throw new TypeError('Invalid character in header field name: "'+o+'"');return o.toLowerCase()}function C(o){return typeof o!="string"&&(o=String(o)),o}function O(o){var a={next:function(){var f=o.shift();return{done:f===void 0,value:f}}};return h.iterable&&(a[Symbol.iterator]=function(){return a}),a}function d(o){this.map={},o instanceof d?o.forEach(function(a,f){this.append(f,a)},this):Array.isArray(o)?o.forEach(function(a){if(a.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+a.length);this.append(a[0],a[1])},this):o&&Object.getOwnPropertyNames(o).forEach(function(a){this.append(a,o[a])},this)}d.prototype.append=function(o,a){o=m(o),a=C(a);var f=this.map[o];this.map[o]=f?f+", "+a:a},d.prototype.delete=function(o){delete this.map[m(o)]},d.prototype.get=function(o){return o=m(o),this.has(o)?this.map[o]:null},d.prototype.has=function(o){return this.map.hasOwnProperty(m(o))},d.prototype.set=function(o,a){this.map[m(o)]=C(a)},d.prototype.forEach=function(o,a){for(var f in this.map)this.map.hasOwnProperty(f)&&o.call(a,this.map[f],f,this)},d.prototype.keys=function(){var o=[];return this.forEach(function(a,f){o.push(f)}),O(o)},d.prototype.values=function(){var o=[];return this.forEach(function(a){o.push(a)}),O(o)},d.prototype.entries=function(){var o=[];return this.forEach(function(a,f){o.push([f,a])}),O(o)},h.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);function T(o){if(!o._noBody){if(o.bodyUsed)return Promise.reject(new TypeError("Already read"));o.bodyUsed=!0}}function B(o){return new Promise(function(a,f){o.onload=function(){a(o.result)},o.onerror=function(){f(o.error)}})}function I(o){var a=new FileReader,f=B(a);return a.readAsArrayBuffer(o),f}function D(o){var a=new FileReader,f=B(a),l=/charset=([A-Za-z0-9_-]+)/.exec(o.type),w=l?l[1]:"utf-8";return a.readAsText(o,w),f}function x(o){for(var a=new Uint8Array(o),f=new Array(a.length),l=0;l<a.length;l++)f[l]=String.fromCharCode(a[l]);return f.join("")}function M(o){if(o.slice)return o.slice(0);var a=new Uint8Array(o.byteLength);return a.set(new Uint8Array(o)),a.buffer}function L(){return this.bodyUsed=!1,this._initBody=function(o){this.bodyUsed=this.bodyUsed,this._bodyInit=o,o?typeof o=="string"?this._bodyText=o:h.blob&&Blob.prototype.isPrototypeOf(o)?this._bodyBlob=o:h.formData&&FormData.prototype.isPrototypeOf(o)?this._bodyFormData=o:h.searchParams&&URLSearchParams.prototype.isPrototypeOf(o)?this._bodyText=o.toString():h.arrayBuffer&&h.blob&&A(o)?(this._bodyArrayBuffer=M(o.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):h.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(o)||g(o))?this._bodyArrayBuffer=M(o):this._bodyText=o=Object.prototype.toString.call(o):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof o=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):h.searchParams&&URLSearchParams.prototype.isPrototypeOf(o)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},h.blob&&(this.blob=function(){var o=T(this);if(o)return o;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var o=T(this);return o||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(h.blob)return this.blob().then(I);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var o=T(this);if(o)return o;if(this._bodyBlob)return D(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(x(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},h.formData&&(this.formData=function(){return this.text().then(P)}),this.json=function(){return this.text().then(JSON.parse)},this}var K=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function V(o){var a=o.toUpperCase();return K.indexOf(a)>-1?a:o}function H(o,a){if(!(this instanceof H))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');a=a||{};var f=a.body;if(o instanceof H){if(o.bodyUsed)throw new TypeError("Already read");this.url=o.url,this.credentials=o.credentials,a.headers||(this.headers=new d(o.headers)),this.method=o.method,this.mode=o.mode,this.signal=o.signal,!f&&o._bodyInit!=null&&(f=o._bodyInit,o.bodyUsed=!0)}else this.url=String(o);if(this.credentials=a.credentials||this.credentials||"same-origin",(a.headers||!this.headers)&&(this.headers=new d(a.headers)),this.method=V(a.method||this.method||"GET"),this.mode=a.mode||this.mode||null,this.signal=a.signal||this.signal||(function(){if("AbortController"in c){var p=new AbortController;return p.signal}})(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&f)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(f),(this.method==="GET"||this.method==="HEAD")&&(a.cache==="no-store"||a.cache==="no-cache")){var l=/([?&])_=[^&]*/;if(l.test(this.url))this.url=this.url.replace(l,"$1_="+new Date().getTime());else{var w=/\?/;this.url+=(w.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}H.prototype.clone=function(){return new H(this,{body:this._bodyInit})};function P(o){var a=new FormData;return o.trim().split("&").forEach(function(f){if(f){var l=f.split("="),w=l.shift().replace(/\+/g," "),p=l.join("=").replace(/\+/g," ");a.append(decodeURIComponent(w),decodeURIComponent(p))}}),a}function k(o){var a=new d,f=o.replace(/\r?\n[\t ]+/g," ");return f.split("\r").map(function(l){return l.indexOf(`
|
|
2
|
+
`)===0?l.substr(1,l.length):l}).forEach(function(l){var w=l.split(":"),p=w.shift().trim();if(p){var b=w.join(":").trim();try{a.append(p,b)}catch($){console.warn("Response "+$.message)}}}),a}L.call(H.prototype);function q(o,a){if(!(this instanceof q))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(a||(a={}),this.type="default",this.status=a.status===void 0?200:a.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=a.statusText===void 0?"":""+a.statusText,this.headers=new d(a.headers),this.url=a.url||"",this._initBody(o)}L.call(q.prototype),q.prototype.clone=function(){return new q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},q.error=function(){var o=new q(null,{status:200,statusText:""});return o.ok=!1,o.status=0,o.type="error",o};var Te=[301,302,303,307,308];q.redirect=function(o,a){if(Te.indexOf(a)===-1)throw new RangeError("Invalid status code");return new q(null,{status:a,headers:{location:o}})},u.DOMException=c.DOMException;try{new u.DOMException}catch{u.DOMException=function(a,f){this.message=a,this.name=f;var l=Error(a);this.stack=l.stack},u.DOMException.prototype=Object.create(Error.prototype),u.DOMException.prototype.constructor=u.DOMException}function R(o,a){return new Promise(function(f,l){var w=new H(o,a);if(w.signal&&w.signal.aborted)return l(new u.DOMException("Aborted","AbortError"));var p=new XMLHttpRequest;function b(){p.abort()}p.onload=function(){var _={statusText:p.statusText,headers:k(p.getAllResponseHeaders()||"")};w.url.indexOf("file://")===0&&(p.status<200||p.status>599)?_.status=200:_.status=p.status,_.url="responseURL"in p?p.responseURL:_.headers.get("X-Request-URL");var F="response"in p?p.response:p.responseText;setTimeout(function(){f(new q(F,_))},0)},p.onerror=function(){setTimeout(function(){l(new TypeError("Network request failed"))},0)},p.ontimeout=function(){setTimeout(function(){l(new TypeError("Network request timed out"))},0)},p.onabort=function(){setTimeout(function(){l(new u.DOMException("Aborted","AbortError"))},0)};function $(_){try{return _===""&&c.location.href?c.location.href:_}catch{return _}}if(p.open(w.method,$(w.url),!0),w.credentials==="include"?p.withCredentials=!0:w.credentials==="omit"&&(p.withCredentials=!1),"responseType"in p&&(h.blob?p.responseType="blob":h.arrayBuffer&&(p.responseType="arraybuffer")),a&&typeof a.headers=="object"&&!(a.headers instanceof d||c.Headers&&a.headers instanceof c.Headers)){var G=[];Object.getOwnPropertyNames(a.headers).forEach(function(_){G.push(m(_)),p.setRequestHeader(_,C(a.headers[_]))}),w.headers.forEach(function(_,F){G.indexOf(F)===-1&&p.setRequestHeader(F,_)})}else w.headers.forEach(function(_,F){p.setRequestHeader(F,_)});w.signal&&(w.signal.addEventListener("abort",b),p.onreadystatechange=function(){p.readyState===4&&w.signal.removeEventListener("abort",b)}),p.send(typeof w._bodyInit>"u"?null:w._bodyInit)})}return R.polyfill=!0,c.fetch||(c.fetch=R,c.Headers=d,c.Request=H,c.Response=q),u.Headers=d,u.Request=H,u.Response=q,u.fetch=R,u})({})})(t),t.fetch.ponyfill=!0,delete t.fetch.polyfill;var r=n.fetch?n:t;e=r.fetch,e.default=r.fetch,e.fetch=r.fetch,e.Headers=r.Headers,e.Request=r.Request,e.Response=r.Response,i.exports=e})(Oe,Oe.exports)),Oe.exports}var br=Dr();const Ir=z(br),At=i=>({bookingPolicies:new lt(i),bookings:new ft(i),hotelImages:new dt(i),hotelOfferRequests:new ht(i),hotelOffers:new pt(i),hotelRoomOfferRequests:new mt(i),hotelRoomOffers:new yt(i),hotelRoomingListGuests:new gt(i),hotelRoomingLists:new wt(i),hotels:new vt(i)});function Br(i){switch(i){case Q.Production:return"AUTH_TOKEN";case Q.Sandbox:return"AUTH_TOKEN_SANDBOX";case Q.Staging:return"AUTH_TOKEN_STAGING";case Q.CiCd:return"AUTH_TOKEN_CICD";case Q.Local:return"AUTH_TOKEN_LOCAL";default:return"AUTH_TOKEN"}}function Rt(i){return!!(typeof document<"u"&&document?.cookie&&document.cookie.split(";").find(t=>t.includes(Br(i))))}class Lr{constructor(e){this.config=e}async pre(e){return e.init.mode="cors",Rt(this.config.apiEnvironment)&&(e.init.credentials="include"),e}}class Pr{constructor(e){this.config=e}async pre(e){return Rt(this.config.apiEnvironment)&&(e.init.headers={...e.init.headers,"x-auth-type":"user"}),e}}class Nr{constructor(e){if(this.config=e,!e.apiVersion||!Object.values(De).includes(e.apiVersion))throw new Error(`Invalid Revolugo Api Version. Possible versions are : ${JSON.stringify(Object.values(De))}`);let n={"x-api-key":this.config.apiKey};this.config.optionalHeaders&&(n={...n,...this.config.optionalHeaders});const t=this.config.apiEnvironment;let r=this.config.apiBaseUrl??xt[t];t===Q.Local&&process.env.BOOKING_API_BASE_URL&&(r=process.env.BOOKING_API_BASE_URL);const s=new Le({basePath:r,fetchApi:Ir,headers:n,middleware:[new Lr(this.config),new Pr(this.config)]});this.apiVersionsToClient={v1:At(s)}}apiVersionsToClient;get bookings(){return this.apiVersionsToClient[this.config.apiVersion].bookings}get bookingPolicies(){return this.apiVersionsToClient[this.config.apiVersion].bookingPolicies}get hotelOfferRequests(){return this.apiVersionsToClient[this.config.apiVersion].hotelOfferRequests}get hotelOffers(){return this.apiVersionsToClient[this.config.apiVersion].hotelOffers}get hotelRoomOfferRequests(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOfferRequests}get hotelRoomOffers(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomOffers}get hotelRoomingListGuests(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomingListGuests}get hotelRoomingLists(){return this.apiVersionsToClient[this.config.apiVersion].hotelRoomingLists}get hotels(){return this.apiVersionsToClient[this.config.apiVersion].hotels}get hotelImages(){return this.apiVersionsToClient[this.config.apiVersion].hotelImages}}y.AllowedPaymentMethodApiOneOf1NameEnum=jn,y.AllowedPaymentMethodApiOneOf2NameEnum=zn,y.AllowedPaymentMethodApiOneOf3NameEnum=Wn,y.AllowedPaymentMethodApiOneOf3PayloadStatusEnum=Zn,y.AllowedPaymentMethodApiOneOfNameEnum=qn,y.ApiClient=Nr,y.BASE_PATH=st,y.BaseAPI=W,y.BlobApiResponse=Vn,y.BookingApiPayLaterEnum=Jn,y.BookingApiStatusEnum=Xn,y.BookingPolicies=lt,y.BookingPoliciesCreateApiLangEnum=Qn,y.Bookings=ft,y.BookingsSortByEnum=Ar,y.BookingsSortByOrderEnum=Rr,y.COLLECTION_FORMATS=Hn,y.Configuration=Le,y.ContactPersonApiLangEnum=er,y.ContactPersonApiSalutationEnum=tr,y.CountryIso2Code=nr,y.CurrencyBookingApiClient=rr,y.ErrorApiResponseTypeEnum=ir,y.HotelImages=dt,y.HotelImagesLangEnum=Er,y.HotelOfferRequests=ht,y.HotelOffers=pt,y.HotelOffersLangEnum=Cr,y.HotelOffersSortByEnum=Or,y.HotelOffersSortByOrderEnum=Tr,y.HotelRoomOfferApiBreakfastOptionEnum=or,y.HotelRoomOfferApiPackageTypeEnum=ar,y.HotelRoomOfferApiStayTaxesInfoEnum=sr,y.HotelRoomOfferApiTypeEnum=ur,y.HotelRoomOfferRequests=mt,y.HotelRoomOffers=yt,y.HotelRoomOffersCreateApiLangEnum=cr,y.HotelRoomOffersLangEnum=Mr,y.HotelRoomingListGuests=gt,y.HotelRoomingLists=wt,y.HotelRoomingListsLangEnum=kr,y.Hotels=vt,y.HotelsLangEnum=_r,y.InvoiceApiTypeEnum=lr,y.JSONApiResponse=U,y.PaymentMethodApiOneOf1NameEnum=dr,y.PaymentMethodApiOneOf2NameEnum=hr,y.PaymentMethodApiOneOf3NameEnum=pr,y.PaymentMethodApiOneOf3PayloadStatusEnum=mr,y.PaymentMethodApiOneOfNameEnum=fr,y.PaymentMethodRequestApiNameEnum=yr,y.PollerStatus=gr,y.RequiredError=N,y.ResponseError=ut,y.SourceMarket=wr,y.TaxApiTaxFrequencyEnum=vr,y.TaxApiTaxModeEnum=Sr,y.TextApiResponse=ct,y.VoidApiResponse=Yn,y.canConsumeForm=Kn,y.exists=Gn,y.mapValues=Fn,y.querystring=Pe,y.v1ApiClient=At,Object.defineProperty(y,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -821,22 +821,7 @@ export interface BookingPoliciesApi {
|
|
|
821
821
|
* @memberof BookingPoliciesApi
|
|
822
822
|
*/
|
|
823
823
|
isPriceIncreased: boolean;
|
|
824
|
-
/**
|
|
825
|
-
* Booking Pay Later Status
|
|
826
|
-
* @type {string}
|
|
827
|
-
* @memberof BookingPoliciesApi
|
|
828
|
-
*/
|
|
829
|
-
payLater?: BookingPoliciesApiPayLaterEnum;
|
|
830
824
|
}
|
|
831
|
-
/**
|
|
832
|
-
* @export
|
|
833
|
-
*/
|
|
834
|
-
export declare const BookingPoliciesApiPayLaterEnum: {
|
|
835
|
-
readonly Disabled: "DISABLED";
|
|
836
|
-
readonly Enabled: "ENABLED";
|
|
837
|
-
readonly Forced: "FORCED";
|
|
838
|
-
};
|
|
839
|
-
export type BookingPoliciesApiPayLaterEnum = typeof BookingPoliciesApiPayLaterEnum[keyof typeof BookingPoliciesApiPayLaterEnum];
|
|
840
825
|
/**
|
|
841
826
|
*
|
|
842
827
|
* @export
|
|
@@ -881,12 +866,6 @@ export interface BookingPoliciesCreateApi {
|
|
|
881
866
|
* @memberof BookingPoliciesCreateApi
|
|
882
867
|
*/
|
|
883
868
|
lang?: BookingPoliciesCreateApiLangEnum;
|
|
884
|
-
/**
|
|
885
|
-
* List of preferred payment methods to be used along with their respective payload (when applicable) in order to fulfill the booking.
|
|
886
|
-
* @type {Array<PaymentMethodRequestApi>}
|
|
887
|
-
* @memberof BookingPoliciesCreateApi
|
|
888
|
-
*/
|
|
889
|
-
paymentMethods: Array<PaymentMethodRequestApi>;
|
|
890
869
|
}
|
|
891
870
|
/**
|
|
892
871
|
* @export
|
|
@@ -2506,7 +2485,7 @@ export interface HotelRoomApi {
|
|
|
2506
2485
|
* @type {string}
|
|
2507
2486
|
* @memberof HotelRoomApi
|
|
2508
2487
|
*/
|
|
2509
|
-
id
|
|
2488
|
+
id: string;
|
|
2510
2489
|
/**
|
|
2511
2490
|
* List of indexes corresponding to image names for the given Hotel Room among the related hotel images.
|
|
2512
2491
|
* @type {Array<number>}
|
|
@@ -3241,7 +3220,7 @@ export interface HotelRoomingListApiHotelRoom {
|
|
|
3241
3220
|
* @type {string}
|
|
3242
3221
|
* @memberof HotelRoomingListApiHotelRoom
|
|
3243
3222
|
*/
|
|
3244
|
-
id
|
|
3223
|
+
id: string;
|
|
3245
3224
|
/**
|
|
3246
3225
|
* List of indexes corresponding to image names for the given Hotel Room among the related hotel images.
|
|
3247
3226
|
* @type {Array<number>}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revolugo/booking-api-client",
|
|
3
|
-
"version": "6.15.8-alpha.
|
|
3
|
+
"version": "6.15.8-alpha.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Javascript Revolugo Booking API Client (browser + server)",
|
|
6
6
|
"keywords": [
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@hono/node-server": "1.19.9",
|
|
44
44
|
"hono": "4.11.4",
|
|
45
45
|
"@revolugo/booking-api": "6.15.8",
|
|
46
|
-
"@revolugo/env": "6.15.8",
|
|
47
|
-
"@revolugo/models": "6.15.8",
|
|
48
46
|
"@revolugo/engines": "6.15.8",
|
|
47
|
+
"@revolugo/models": "6.15.8",
|
|
48
|
+
"@revolugo/env": "6.15.8",
|
|
49
49
|
"@revolugo/node": "6.15.8",
|
|
50
50
|
"@revolugo/root": "6.15.8"
|
|
51
51
|
},
|