@keenmate/web-daterangepicker 1.11.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- var ua = Object.defineProperty;
2
- var pa = (e, a, t) => a in e ? ua(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
3
- var b = (e, a, t) => pa(e, typeof a != "symbol" ? a + "" : a, t);
4
- function bt(e) {
1
+ var ga = Object.defineProperty;
2
+ var ha = (e, a, t) => a in e ? ga(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t;
3
+ var b = (e, a, t) => ha(e, typeof a != "symbol" ? a + "" : a, t);
4
+ function Dt(e) {
5
5
  if (e !== "auto")
6
6
  return e;
7
7
  try {
@@ -36,15 +36,15 @@ function _e(e) {
36
36
  let a;
37
37
  return typeof e == "string" ? a = /* @__PURE__ */ new Date(e + "T00:00:00") : a = new Date(e), a.setHours(0, 0, 0, 0), isNaN(a.getTime()) ? null : a;
38
38
  }
39
- function xe(e) {
39
+ function Me(e) {
40
40
  const a = e.getFullYear(), t = String(e.getMonth() + 1).padStart(2, "0"), n = String(e.getDate()).padStart(2, "0");
41
41
  return `${a}-${t}-${n}`;
42
42
  }
43
- function ga(e, a, t, n, r) {
44
- const i = xe(e), o = e.getDay();
43
+ function fa(e, a, t, n, r) {
44
+ const i = Me(e), o = e.getDay();
45
45
  return !!(a && e < a || t && e > t || r && r.includes(o) || n.has(i));
46
46
  }
47
- function ha(e, a) {
47
+ function ma(e, a) {
48
48
  for (let t = 0; t < 12; t++) {
49
49
  const n = new Date(a, t + 1, 0).getDate();
50
50
  for (let r = 1; r <= n; r++) {
@@ -55,7 +55,7 @@ function ha(e, a) {
55
55
  }
56
56
  return !1;
57
57
  }
58
- function fa(e, a, t) {
58
+ function ba(e, a, t) {
59
59
  const n = new Date(e), r = new Date(a);
60
60
  n.setHours(0, 0, 0, 0), r.setHours(0, 0, 0, 0);
61
61
  const i = new Date(n);
@@ -66,7 +66,7 @@ function fa(e, a, t) {
66
66
  }
67
67
  return !1;
68
68
  }
69
- function ma(e, a, t) {
69
+ function ya(e, a, t) {
70
70
  const n = [], r = new Date(e), i = new Date(a);
71
71
  r.setHours(0, 0, 0, 0), i.setHours(0, 0, 0, 0);
72
72
  const o = new Date(r);
@@ -74,7 +74,7 @@ function ma(e, a, t) {
74
74
  t(o) || n.push(new Date(o)), o.setDate(o.getDate() + 1);
75
75
  return n;
76
76
  }
77
- function ba(e, a, t) {
77
+ function va(e, a, t) {
78
78
  const n = [], r = new Date(e), i = new Date(a);
79
79
  r.setHours(0, 0, 0, 0), i.setHours(0, 0, 0, 0);
80
80
  const o = new Date(r);
@@ -82,7 +82,7 @@ function ba(e, a, t) {
82
82
  t(o) && n.push(new Date(o)), o.setDate(o.getDate() + 1);
83
83
  return n;
84
84
  }
85
- function ya(e, a, t) {
85
+ function Da(e, a, t) {
86
86
  const n = new Date(e), r = new Date(a);
87
87
  n.setHours(0, 0, 0, 0), r.setHours(0, 0, 0, 0);
88
88
  let i = new Date(n);
@@ -94,7 +94,7 @@ function ya(e, a, t) {
94
94
  }
95
95
  return r;
96
96
  }
97
- function va(e, a, t) {
97
+ function _a(e, a, t) {
98
98
  const n = [], r = new Date(e), i = new Date(a);
99
99
  r.setHours(0, 0, 0, 0), i.setHours(0, 0, 0, 0);
100
100
  let o = null;
@@ -110,24 +110,24 @@ function va(e, a, t) {
110
110
  }
111
111
  return o && n.push({ start: o, end: new Date(i) }), n;
112
112
  }
113
- function Tt(e) {
114
- return kt(e, /* @__PURE__ */ new Date());
113
+ function $t(e) {
114
+ return zt(e, /* @__PURE__ */ new Date());
115
115
  }
116
- function kt(e, a) {
116
+ function zt(e, a) {
117
117
  return !e || !a ? !1 : e.getFullYear() === a.getFullYear() && e.getMonth() === a.getMonth() && e.getDate() === a.getDate();
118
118
  }
119
- function Da(e, a, t) {
119
+ function wa(e, a, t) {
120
120
  return !a || !t ? !1 : e > a && e < t;
121
121
  }
122
- var _a = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
123
- function wa(e) {
122
+ var xa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
123
+ function Ma(e) {
124
124
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
125
125
  }
126
- var Lt = { exports: {} };
126
+ var Nt = { exports: {} };
127
127
  (function(e) {
128
128
  (function(a, t) {
129
129
  e.exports ? e.exports = t() : a.log = t();
130
- })(_a, function() {
130
+ })(xa, function() {
131
131
  var a = function() {
132
132
  }, t = "undefined", n = typeof window !== t && typeof window.navigator !== t && /Trident\/|MSIE /.test(window.navigator.userAgent), r = [
133
133
  "trace",
@@ -137,41 +137,41 @@ var Lt = { exports: {} };
137
137
  "error"
138
138
  ], i = {}, o = null;
139
139
  function s(h, v) {
140
- var m = h[v];
141
- if (typeof m.bind == "function")
142
- return m.bind(h);
140
+ var f = h[v];
141
+ if (typeof f.bind == "function")
142
+ return f.bind(h);
143
143
  try {
144
- return Function.prototype.bind.call(m, h);
144
+ return Function.prototype.bind.call(f, h);
145
145
  } catch {
146
146
  return function() {
147
- return Function.prototype.apply.apply(m, [h, arguments]);
147
+ return Function.prototype.apply.apply(f, [h, arguments]);
148
148
  };
149
149
  }
150
150
  }
151
151
  function d() {
152
152
  console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
153
153
  }
154
- function c(h) {
154
+ function l(h) {
155
155
  return h === "debug" && (h = "log"), typeof console === t ? !1 : h === "trace" && n ? d : console[h] !== void 0 ? s(console, h) : console.log !== void 0 ? s(console, "log") : a;
156
156
  }
157
- function l() {
157
+ function c() {
158
158
  for (var h = this.getLevel(), v = 0; v < r.length; v++) {
159
- var m = r[v];
160
- this[m] = v < h ? a : this.methodFactory(m, h, this.name);
159
+ var f = r[v];
160
+ this[f] = v < h ? a : this.methodFactory(f, h, this.name);
161
161
  }
162
162
  if (this.log = this.debug, typeof console === t && h < this.levels.SILENT)
163
163
  return "No console available for logging";
164
164
  }
165
- function u(h) {
165
+ function p(h) {
166
166
  return function() {
167
- typeof console !== t && (l.call(this), this[h].apply(this, arguments));
167
+ typeof console !== t && (c.call(this), this[h].apply(this, arguments));
168
168
  };
169
169
  }
170
- function p(h, v, m) {
171
- return c(h) || u.apply(this, arguments);
170
+ function u(h, v, f) {
171
+ return l(h) || p.apply(this, arguments);
172
172
  }
173
173
  function g(h, v) {
174
- var m = this, x, E, S, D = "loglevel";
174
+ var f = this, x, E, S, D = "loglevel";
175
175
  typeof h == "string" ? D += ":" + h : typeof h == "symbol" && (D = void 0);
176
176
  function _(C) {
177
177
  var I = (r[C] || "silent").toUpperCase();
@@ -187,7 +187,7 @@ var Lt = { exports: {} };
187
187
  }
188
188
  }
189
189
  }
190
- function R() {
190
+ function k() {
191
191
  var C;
192
192
  if (!(typeof window === t || !D)) {
193
193
  try {
@@ -196,16 +196,16 @@ var Lt = { exports: {} };
196
196
  }
197
197
  if (typeof C === t)
198
198
  try {
199
- var I = window.document.cookie, T = encodeURIComponent(D), A = I.indexOf(T + "=");
200
- A !== -1 && (C = /^([^;]+)/.exec(
201
- I.slice(A + T.length + 1)
199
+ var I = window.document.cookie, A = encodeURIComponent(D), R = I.indexOf(A + "=");
200
+ R !== -1 && (C = /^([^;]+)/.exec(
201
+ I.slice(R + A.length + 1)
202
202
  )[1]);
203
203
  } catch {
204
204
  }
205
- return m.levels[C] === void 0 && (C = void 0), C;
205
+ return f.levels[C] === void 0 && (C = void 0), C;
206
206
  }
207
207
  }
208
- function k() {
208
+ function L() {
209
209
  if (!(typeof window === t || !D)) {
210
210
  try {
211
211
  window.localStorage.removeItem(D);
@@ -219,58 +219,58 @@ var Lt = { exports: {} };
219
219
  }
220
220
  function y(C) {
221
221
  var I = C;
222
- if (typeof I == "string" && m.levels[I.toUpperCase()] !== void 0 && (I = m.levels[I.toUpperCase()]), typeof I == "number" && I >= 0 && I <= m.levels.SILENT)
222
+ if (typeof I == "string" && f.levels[I.toUpperCase()] !== void 0 && (I = f.levels[I.toUpperCase()]), typeof I == "number" && I >= 0 && I <= f.levels.SILENT)
223
223
  return I;
224
224
  throw new TypeError("log.setLevel() called with invalid level: " + C);
225
225
  }
226
- m.name = h, m.levels = {
226
+ f.name = h, f.levels = {
227
227
  TRACE: 0,
228
228
  DEBUG: 1,
229
229
  INFO: 2,
230
230
  WARN: 3,
231
231
  ERROR: 4,
232
232
  SILENT: 5
233
- }, m.methodFactory = v || p, m.getLevel = function() {
233
+ }, f.methodFactory = v || u, f.getLevel = function() {
234
234
  return S ?? E ?? x;
235
- }, m.setLevel = function(C, I) {
236
- return S = y(C), I !== !1 && _(S), l.call(m);
237
- }, m.setDefaultLevel = function(C) {
238
- E = y(C), R() || m.setLevel(C, !1);
239
- }, m.resetLevel = function() {
240
- S = null, k(), l.call(m);
241
- }, m.enableAll = function(C) {
242
- m.setLevel(m.levels.TRACE, C);
243
- }, m.disableAll = function(C) {
244
- m.setLevel(m.levels.SILENT, C);
245
- }, m.rebuild = function() {
246
- if (o !== m && (x = y(o.getLevel())), l.call(m), o === m)
235
+ }, f.setLevel = function(C, I) {
236
+ return S = y(C), I !== !1 && _(S), c.call(f);
237
+ }, f.setDefaultLevel = function(C) {
238
+ E = y(C), k() || f.setLevel(C, !1);
239
+ }, f.resetLevel = function() {
240
+ S = null, L(), c.call(f);
241
+ }, f.enableAll = function(C) {
242
+ f.setLevel(f.levels.TRACE, C);
243
+ }, f.disableAll = function(C) {
244
+ f.setLevel(f.levels.SILENT, C);
245
+ }, f.rebuild = function() {
246
+ if (o !== f && (x = y(o.getLevel())), c.call(f), o === f)
247
247
  for (var C in i)
248
248
  i[C].rebuild();
249
249
  }, x = y(
250
250
  o ? o.getLevel() : "WARN"
251
251
  );
252
- var M = R();
253
- M != null && (S = y(M)), l.call(m);
252
+ var M = k();
253
+ M != null && (S = y(M)), c.call(f);
254
254
  }
255
255
  o = new g(), o.getLogger = function(v) {
256
256
  if (typeof v != "symbol" && typeof v != "string" || v === "")
257
257
  throw new TypeError("You must supply a name when creating a logger.");
258
- var m = i[v];
259
- return m || (m = i[v] = new g(
258
+ var f = i[v];
259
+ return f || (f = i[v] = new g(
260
260
  v,
261
261
  o.methodFactory
262
- )), m;
262
+ )), f;
263
263
  };
264
- var f = typeof window !== t ? window.log : void 0;
264
+ var m = typeof window !== t ? window.log : void 0;
265
265
  return o.noConflict = function() {
266
- return typeof window !== t && window.log === o && (window.log = f), o;
266
+ return typeof window !== t && window.log === o && (window.log = m), o;
267
267
  }, o.getLoggers = function() {
268
268
  return i;
269
269
  }, o.default = o, o;
270
270
  });
271
- })(Lt);
272
- var xa = Lt.exports;
273
- const Y = /* @__PURE__ */ wa(xa), Ma = [
271
+ })(Nt);
272
+ var Sa = Nt.exports;
273
+ const Y = /* @__PURE__ */ Ma(Sa), Ca = [
274
274
  "DRP",
275
275
  "DRP:RENDERING",
276
276
  "DRP:INTERACTION",
@@ -279,7 +279,7 @@ const Y = /* @__PURE__ */ wa(xa), Ma = [
279
279
  "DRP:UI",
280
280
  "DRP:VALIDATION",
281
281
  "DRP:DRAG"
282
- ], Sa = {
282
+ ], Ea = {
283
283
  trace: "#6b7280",
284
284
  // Gray
285
285
  debug: "#0ea5e9",
@@ -290,10 +290,10 @@ const Y = /* @__PURE__ */ wa(xa), Ma = [
290
290
  // Orange
291
291
  error: "#ef4444"
292
292
  // Red
293
- }, Ca = Y.methodFactory, Ea = (e, a, t) => {
294
- const n = Ca.call(Y, e, a, t);
293
+ }, Ia = Y.methodFactory, ka = (e, a, t) => {
294
+ const n = Ia.call(Y, e, a, t);
295
295
  return (...r) => {
296
- const i = Sa[e] || "#6b7280", s = `%c[${(/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", {
296
+ const i = Ea[e] || "#6b7280", s = `%c[${(/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", {
297
297
  hour12: !1,
298
298
  hour: "2-digit",
299
299
  minute: "2-digit",
@@ -302,44 +302,44 @@ const Y = /* @__PURE__ */ wa(xa), Ma = [
302
302
  })}] [${e.toUpperCase()}] ${t ? `[${t}]` : ""}`;
303
303
  n(s, `color: ${i}`, ...r);
304
304
  };
305
- }, $t = [];
305
+ }, Pt = [];
306
306
  function te(e) {
307
307
  const a = Y.getLogger(e);
308
- return a.methodFactory = Ea, a.setLevel("silent"), $t.push(a), a;
308
+ return a.methodFactory = ka, a.setLevel("silent"), Pt.push(a), a;
309
309
  }
310
- const L = te("DRP"), he = te("DRP:RENDERING"), pe = te("DRP:INTERACTION"), ce = te("DRP:SELECTION"), w = te("DRP:NAVIGATION"), J = te("DRP:UI"), ne = te("DRP:VALIDATION"), re = te("DRP:DRAG");
310
+ const T = te("DRP"), he = te("DRP:RENDERING"), ue = te("DRP:INTERACTION"), ce = te("DRP:SELECTION"), w = te("DRP:NAVIGATION"), X = te("DRP:UI"), ne = te("DRP:VALIDATION"), re = te("DRP:DRAG");
311
311
  Y.setLevel("silent");
312
- const it = (e) => {
313
- Y.setLevel(e), $t.forEach((a) => a.setLevel(e));
314
- }, Ke = () => {
315
- it("debug");
312
+ const st = (e) => {
313
+ Y.setLevel(e), Pt.forEach((a) => a.setLevel(e));
316
314
  }, Ge = () => {
317
- it("silent");
318
- }, Ia = (e, a = "debug") => {
315
+ st("debug");
316
+ }, Xe = () => {
317
+ st("silent");
318
+ }, Ra = (e, a = "debug") => {
319
319
  const n = {
320
- DRP: L,
320
+ DRP: T,
321
321
  "DRP:RENDERING": he,
322
- "DRP:INTERACTION": pe,
322
+ "DRP:INTERACTION": ue,
323
323
  "DRP:SELECTION": ce,
324
324
  "DRP:NAVIGATION": w,
325
- "DRP:UI": J,
325
+ "DRP:UI": X,
326
326
  "DRP:VALIDATION": ne,
327
327
  "DRP:DRAG": re
328
328
  }[e];
329
329
  n && n.setLevel(a);
330
- }, Ra = () => [...Ma], Q = Math.min, O = Math.max, $e = Math.round, Ie = Math.floor, q = (e) => ({
330
+ }, Aa = () => [...Ca], Q = Math.min, O = Math.max, ze = Math.round, Re = Math.floor, q = (e) => ({
331
331
  x: e,
332
332
  y: e
333
- }), Aa = {
333
+ }), Ta = {
334
334
  left: "right",
335
335
  right: "left",
336
336
  bottom: "top",
337
337
  top: "bottom"
338
- }, Ta = {
338
+ }, La = {
339
339
  start: "end",
340
340
  end: "start"
341
341
  };
342
- function Xe(e, a, t) {
342
+ function Je(e, a, t) {
343
343
  return O(e, Q(a, t));
344
344
  }
345
345
  function ye(e, a) {
@@ -351,54 +351,54 @@ function Z(e) {
351
351
  function ve(e) {
352
352
  return e.split("-")[1];
353
353
  }
354
- function zt(e) {
354
+ function Ot(e) {
355
355
  return e === "x" ? "y" : "x";
356
356
  }
357
- function ot(e) {
357
+ function dt(e) {
358
358
  return e === "y" ? "height" : "width";
359
359
  }
360
- const ka = /* @__PURE__ */ new Set(["top", "bottom"]);
360
+ const $a = /* @__PURE__ */ new Set(["top", "bottom"]);
361
361
  function G(e) {
362
- return ka.has(Z(e)) ? "y" : "x";
362
+ return $a.has(Z(e)) ? "y" : "x";
363
363
  }
364
- function st(e) {
365
- return zt(G(e));
364
+ function lt(e) {
365
+ return Ot(G(e));
366
366
  }
367
- function La(e, a, t) {
367
+ function za(e, a, t) {
368
368
  t === void 0 && (t = !1);
369
- const n = ve(e), r = st(e), i = ot(r);
369
+ const n = ve(e), r = lt(e), i = dt(r);
370
370
  let o = r === "x" ? n === (t ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
371
- return a.reference[i] > a.floating[i] && (o = ze(o)), [o, ze(o)];
371
+ return a.reference[i] > a.floating[i] && (o = Ne(o)), [o, Ne(o)];
372
372
  }
373
- function $a(e) {
374
- const a = ze(e);
375
- return [Je(e), a, Je(a)];
373
+ function Na(e) {
374
+ const a = Ne(e);
375
+ return [Qe(e), a, Qe(a)];
376
376
  }
377
- function Je(e) {
378
- return e.replace(/start|end/g, (a) => Ta[a]);
377
+ function Qe(e) {
378
+ return e.replace(/start|end/g, (a) => La[a]);
379
379
  }
380
- const yt = ["left", "right"], vt = ["right", "left"], za = ["top", "bottom"], Na = ["bottom", "top"];
381
- function Pa(e, a, t) {
380
+ const _t = ["left", "right"], wt = ["right", "left"], Pa = ["top", "bottom"], Oa = ["bottom", "top"];
381
+ function Fa(e, a, t) {
382
382
  switch (e) {
383
383
  case "top":
384
384
  case "bottom":
385
- return t ? a ? vt : yt : a ? yt : vt;
385
+ return t ? a ? wt : _t : a ? _t : wt;
386
386
  case "left":
387
387
  case "right":
388
- return a ? za : Na;
388
+ return a ? Pa : Oa;
389
389
  default:
390
390
  return [];
391
391
  }
392
392
  }
393
- function Oa(e, a, t, n) {
393
+ function Ha(e, a, t, n) {
394
394
  const r = ve(e);
395
- let i = Pa(Z(e), t === "start", n);
396
- return r && (i = i.map((o) => o + "-" + r), a && (i = i.concat(i.map(Je)))), i;
395
+ let i = Fa(Z(e), t === "start", n);
396
+ return r && (i = i.map((o) => o + "-" + r), a && (i = i.concat(i.map(Qe)))), i;
397
397
  }
398
- function ze(e) {
399
- return e.replace(/left|right|bottom|top/g, (a) => Aa[a]);
398
+ function Ne(e) {
399
+ return e.replace(/left|right|bottom|top/g, (a) => Ta[a]);
400
400
  }
401
- function Fa(e) {
401
+ function Ya(e) {
402
402
  return {
403
403
  top: 0,
404
404
  right: 0,
@@ -407,15 +407,15 @@ function Fa(e) {
407
407
  ...e
408
408
  };
409
409
  }
410
- function Nt(e) {
411
- return typeof e != "number" ? Fa(e) : {
410
+ function Ft(e) {
411
+ return typeof e != "number" ? Ya(e) : {
412
412
  top: e,
413
413
  right: e,
414
414
  bottom: e,
415
415
  left: e
416
416
  };
417
417
  }
418
- function Ne(e) {
418
+ function Pe(e) {
419
419
  const {
420
420
  x: a,
421
421
  y: t,
@@ -433,36 +433,36 @@ function Ne(e) {
433
433
  y: t
434
434
  };
435
435
  }
436
- function Dt(e, a, t) {
436
+ function xt(e, a, t) {
437
437
  let {
438
438
  reference: n,
439
439
  floating: r
440
440
  } = e;
441
- const i = G(a), o = st(a), s = ot(o), d = Z(a), c = i === "y", l = n.x + n.width / 2 - r.width / 2, u = n.y + n.height / 2 - r.height / 2, p = n[s] / 2 - r[s] / 2;
441
+ const i = G(a), o = lt(a), s = dt(o), d = Z(a), l = i === "y", c = n.x + n.width / 2 - r.width / 2, p = n.y + n.height / 2 - r.height / 2, u = n[s] / 2 - r[s] / 2;
442
442
  let g;
443
443
  switch (d) {
444
444
  case "top":
445
445
  g = {
446
- x: l,
446
+ x: c,
447
447
  y: n.y - r.height
448
448
  };
449
449
  break;
450
450
  case "bottom":
451
451
  g = {
452
- x: l,
452
+ x: c,
453
453
  y: n.y + n.height
454
454
  };
455
455
  break;
456
456
  case "right":
457
457
  g = {
458
458
  x: n.x + n.width,
459
- y: u
459
+ y: p
460
460
  };
461
461
  break;
462
462
  case "left":
463
463
  g = {
464
464
  x: n.x - r.width,
465
- y: u
465
+ y: p
466
466
  };
467
467
  break;
468
468
  default:
@@ -473,76 +473,76 @@ function Dt(e, a, t) {
473
473
  }
474
474
  switch (ve(a)) {
475
475
  case "start":
476
- g[o] -= p * (t && c ? -1 : 1);
476
+ g[o] -= u * (t && l ? -1 : 1);
477
477
  break;
478
478
  case "end":
479
- g[o] += p * (t && c ? -1 : 1);
479
+ g[o] += u * (t && l ? -1 : 1);
480
480
  break;
481
481
  }
482
482
  return g;
483
483
  }
484
- const Ha = async (e, a, t) => {
484
+ const Ba = async (e, a, t) => {
485
485
  const {
486
486
  placement: n = "bottom",
487
487
  strategy: r = "absolute",
488
488
  middleware: i = [],
489
489
  platform: o
490
490
  } = t, s = i.filter(Boolean), d = await (o.isRTL == null ? void 0 : o.isRTL(a));
491
- let c = await o.getElementRects({
491
+ let l = await o.getElementRects({
492
492
  reference: e,
493
493
  floating: a,
494
494
  strategy: r
495
495
  }), {
496
- x: l,
497
- y: u
498
- } = Dt(c, n, d), p = n, g = {}, f = 0;
496
+ x: c,
497
+ y: p
498
+ } = xt(l, n, d), u = n, g = {}, m = 0;
499
499
  for (let h = 0; h < s.length; h++) {
500
500
  const {
501
501
  name: v,
502
- fn: m
502
+ fn: f
503
503
  } = s[h], {
504
504
  x,
505
505
  y: E,
506
506
  data: S,
507
507
  reset: D
508
- } = await m({
509
- x: l,
510
- y: u,
508
+ } = await f({
509
+ x: c,
510
+ y: p,
511
511
  initialPlacement: n,
512
- placement: p,
512
+ placement: u,
513
513
  strategy: r,
514
514
  middlewareData: g,
515
- rects: c,
515
+ rects: l,
516
516
  platform: o,
517
517
  elements: {
518
518
  reference: e,
519
519
  floating: a
520
520
  }
521
521
  });
522
- l = x ?? l, u = E ?? u, g = {
522
+ c = x ?? c, p = E ?? p, g = {
523
523
  ...g,
524
524
  [v]: {
525
525
  ...g[v],
526
526
  ...S
527
527
  }
528
- }, D && f <= 50 && (f++, typeof D == "object" && (D.placement && (p = D.placement), D.rects && (c = D.rects === !0 ? await o.getElementRects({
528
+ }, D && m <= 50 && (m++, typeof D == "object" && (D.placement && (u = D.placement), D.rects && (l = D.rects === !0 ? await o.getElementRects({
529
529
  reference: e,
530
530
  floating: a,
531
531
  strategy: r
532
532
  }) : D.rects), {
533
- x: l,
534
- y: u
535
- } = Dt(c, p, d)), h = -1);
533
+ x: c,
534
+ y: p
535
+ } = xt(l, u, d)), h = -1);
536
536
  }
537
537
  return {
538
- x: l,
539
- y: u,
540
- placement: p,
538
+ x: c,
539
+ y: p,
540
+ placement: u,
541
541
  strategy: r,
542
542
  middlewareData: g
543
543
  };
544
544
  };
545
- async function dt(e, a) {
545
+ async function ct(e, a) {
546
546
  var t;
547
547
  a === void 0 && (a = {});
548
548
  const {
@@ -553,17 +553,17 @@ async function dt(e, a) {
553
553
  elements: s,
554
554
  strategy: d
555
555
  } = e, {
556
- boundary: c = "clippingAncestors",
557
- rootBoundary: l = "viewport",
558
- elementContext: u = "floating",
559
- altBoundary: p = !1,
556
+ boundary: l = "clippingAncestors",
557
+ rootBoundary: c = "viewport",
558
+ elementContext: p = "floating",
559
+ altBoundary: u = !1,
560
560
  padding: g = 0
561
- } = ye(a, e), f = Nt(g), v = s[p ? u === "floating" ? "reference" : "floating" : u], m = Ne(await i.getClippingRect({
561
+ } = ye(a, e), m = Ft(g), v = s[u ? p === "floating" ? "reference" : "floating" : p], f = Pe(await i.getClippingRect({
562
562
  element: (t = await (i.isElement == null ? void 0 : i.isElement(v))) == null || t ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(s.floating)),
563
- boundary: c,
564
- rootBoundary: l,
563
+ boundary: l,
564
+ rootBoundary: c,
565
565
  strategy: d
566
- })), x = u === "floating" ? {
566
+ })), x = p === "floating" ? {
567
567
  x: n,
568
568
  y: r,
569
569
  width: o.floating.width,
@@ -574,20 +574,20 @@ async function dt(e, a) {
574
574
  } : {
575
575
  x: 1,
576
576
  y: 1
577
- }, D = Ne(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
577
+ }, D = Pe(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
578
578
  elements: s,
579
579
  rect: x,
580
580
  offsetParent: E,
581
581
  strategy: d
582
582
  }) : x);
583
583
  return {
584
- top: (m.top - D.top + f.top) / S.y,
585
- bottom: (D.bottom - m.bottom + f.bottom) / S.y,
586
- left: (m.left - D.left + f.left) / S.x,
587
- right: (D.right - m.right + f.right) / S.x
584
+ top: (f.top - D.top + m.top) / S.y,
585
+ bottom: (D.bottom - f.bottom + m.bottom) / S.y,
586
+ left: (f.left - D.left + m.left) / S.x,
587
+ right: (D.right - f.right + m.right) / S.x
588
588
  };
589
589
  }
590
- const Ya = (e) => ({
590
+ const Va = (e) => ({
591
591
  name: "arrow",
592
592
  options: e,
593
593
  async fn(a) {
@@ -600,23 +600,23 @@ const Ya = (e) => ({
600
600
  elements: s,
601
601
  middlewareData: d
602
602
  } = a, {
603
- element: c,
604
- padding: l = 0
603
+ element: l,
604
+ padding: c = 0
605
605
  } = ye(e, a) || {};
606
- if (c == null)
606
+ if (l == null)
607
607
  return {};
608
- const u = Nt(l), p = {
608
+ const p = Ft(c), u = {
609
609
  x: t,
610
610
  y: n
611
- }, g = st(r), f = ot(g), h = await o.getDimensions(c), v = g === "y", m = v ? "top" : "left", x = v ? "bottom" : "right", E = v ? "clientHeight" : "clientWidth", S = i.reference[f] + i.reference[g] - p[g] - i.floating[f], D = p[g] - i.reference[g], _ = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(c));
612
- let R = _ ? _[E] : 0;
613
- (!R || !await (o.isElement == null ? void 0 : o.isElement(_))) && (R = s.floating[E] || i.floating[f]);
614
- const k = S / 2 - D / 2, y = R / 2 - h[f] / 2 - 1, M = Q(u[m], y), C = Q(u[x], y), I = M, T = R - h[f] - C, A = R / 2 - h[f] / 2 + k, $ = Xe(I, A, T), P = !d.arrow && ve(r) != null && A !== $ && i.reference[f] / 2 - (A < I ? M : C) - h[f] / 2 < 0, z = P ? A < I ? A - I : A - T : 0;
611
+ }, g = lt(r), m = dt(g), h = await o.getDimensions(l), v = g === "y", f = v ? "top" : "left", x = v ? "bottom" : "right", E = v ? "clientHeight" : "clientWidth", S = i.reference[m] + i.reference[g] - u[g] - i.floating[m], D = u[g] - i.reference[g], _ = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l));
612
+ let k = _ ? _[E] : 0;
613
+ (!k || !await (o.isElement == null ? void 0 : o.isElement(_))) && (k = s.floating[E] || i.floating[m]);
614
+ const L = S / 2 - D / 2, y = k / 2 - h[m] / 2 - 1, M = Q(p[f], y), C = Q(p[x], y), I = M, A = k - h[m] - C, R = k / 2 - h[m] / 2 + L, $ = Je(I, R, A), P = !d.arrow && ve(r) != null && R !== $ && i.reference[m] / 2 - (R < I ? M : C) - h[m] / 2 < 0, z = P ? R < I ? R - I : R - A : 0;
615
615
  return {
616
- [g]: p[g] + z,
616
+ [g]: u[g] + z,
617
617
  data: {
618
618
  [g]: $,
619
- centerOffset: A - $ - z,
619
+ centerOffset: R - $ - z,
620
620
  ...P && {
621
621
  alignmentOffset: z
622
622
  }
@@ -624,7 +624,7 @@ const Ya = (e) => ({
624
624
  reset: P
625
625
  };
626
626
  }
627
- }), Ba = function(e) {
627
+ }), Ua = function(e) {
628
628
  return e === void 0 && (e = {}), {
629
629
  name: "flip",
630
630
  options: e,
@@ -636,38 +636,38 @@ const Ya = (e) => ({
636
636
  rects: o,
637
637
  initialPlacement: s,
638
638
  platform: d,
639
- elements: c
639
+ elements: l
640
640
  } = a, {
641
- mainAxis: l = !0,
642
- crossAxis: u = !0,
643
- fallbackPlacements: p,
641
+ mainAxis: c = !0,
642
+ crossAxis: p = !0,
643
+ fallbackPlacements: u,
644
644
  fallbackStrategy: g = "bestFit",
645
- fallbackAxisSideDirection: f = "none",
645
+ fallbackAxisSideDirection: m = "none",
646
646
  flipAlignment: h = !0,
647
647
  ...v
648
648
  } = ye(e, a);
649
649
  if ((t = i.arrow) != null && t.alignmentOffset)
650
650
  return {};
651
- const m = Z(r), x = G(s), E = Z(s) === s, S = await (d.isRTL == null ? void 0 : d.isRTL(c.floating)), D = p || (E || !h ? [ze(s)] : $a(s)), _ = f !== "none";
652
- !p && _ && D.push(...Oa(s, h, f, S));
653
- const R = [s, ...D], k = await dt(a, v), y = [];
651
+ const f = Z(r), x = G(s), E = Z(s) === s, S = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), D = u || (E || !h ? [Ne(s)] : Na(s)), _ = m !== "none";
652
+ !u && _ && D.push(...Ha(s, h, m, S));
653
+ const k = [s, ...D], L = await ct(a, v), y = [];
654
654
  let M = ((n = i.flip) == null ? void 0 : n.overflows) || [];
655
- if (l && y.push(k[m]), u) {
656
- const A = La(r, o, S);
657
- y.push(k[A[0]], k[A[1]]);
655
+ if (c && y.push(L[f]), p) {
656
+ const R = za(r, o, S);
657
+ y.push(L[R[0]], L[R[1]]);
658
658
  }
659
659
  if (M = [...M, {
660
660
  placement: r,
661
661
  overflows: y
662
- }], !y.every((A) => A <= 0)) {
662
+ }], !y.every((R) => R <= 0)) {
663
663
  var C, I;
664
- const A = (((C = i.flip) == null ? void 0 : C.index) || 0) + 1, $ = R[A];
665
- if ($ && (!(u === "alignment" ? x !== G($) : !1) || // We leave the current main axis only if every placement on that axis
664
+ const R = (((C = i.flip) == null ? void 0 : C.index) || 0) + 1, $ = k[R];
665
+ if ($ && (!(p === "alignment" ? x !== G($) : !1) || // We leave the current main axis only if every placement on that axis
666
666
  // overflows the main axis.
667
667
  M.every((N) => G(N.placement) === x ? N.overflows[0] > 0 : !0)))
668
668
  return {
669
669
  data: {
670
- index: A,
670
+ index: R,
671
671
  overflows: M
672
672
  },
673
673
  reset: {
@@ -678,8 +678,8 @@ const Ya = (e) => ({
678
678
  if (!P)
679
679
  switch (g) {
680
680
  case "bestFit": {
681
- var T;
682
- const z = (T = M.filter((N) => {
681
+ var A;
682
+ const z = (A = M.filter((N) => {
683
683
  if (_) {
684
684
  const U = G(N.placement);
685
685
  return U === x || // Create a bias to the `y` side axis due to horizontal
@@ -687,7 +687,7 @@ const Ya = (e) => ({
687
687
  U === "y";
688
688
  }
689
689
  return !0;
690
- }).map((N) => [N.placement, N.overflows.filter((U) => U > 0).reduce((U, H) => U + H, 0)]).sort((N, U) => N[1] - U[1])[0]) == null ? void 0 : T[0];
690
+ }).map((N) => [N.placement, N.overflows.filter((U) => U > 0).reduce((U, H) => U + H, 0)]).sort((N, U) => N[1] - U[1])[0]) == null ? void 0 : A[0];
691
691
  z && (P = z);
692
692
  break;
693
693
  }
@@ -705,35 +705,35 @@ const Ya = (e) => ({
705
705
  return {};
706
706
  }
707
707
  };
708
- }, Va = /* @__PURE__ */ new Set(["left", "top"]);
709
- async function Ua(e, a) {
708
+ }, qa = /* @__PURE__ */ new Set(["left", "top"]);
709
+ async function Wa(e, a) {
710
710
  const {
711
711
  placement: t,
712
712
  platform: n,
713
713
  elements: r
714
- } = e, i = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), o = Z(t), s = ve(t), d = G(t) === "y", c = Va.has(o) ? -1 : 1, l = i && d ? -1 : 1, u = ye(a, e);
714
+ } = e, i = await (n.isRTL == null ? void 0 : n.isRTL(r.floating)), o = Z(t), s = ve(t), d = G(t) === "y", l = qa.has(o) ? -1 : 1, c = i && d ? -1 : 1, p = ye(a, e);
715
715
  let {
716
- mainAxis: p,
717
- crossAxis: g,
718
- alignmentAxis: f
719
- } = typeof u == "number" ? {
720
716
  mainAxis: u,
717
+ crossAxis: g,
718
+ alignmentAxis: m
719
+ } = typeof p == "number" ? {
720
+ mainAxis: p,
721
721
  crossAxis: 0,
722
722
  alignmentAxis: null
723
723
  } : {
724
- mainAxis: u.mainAxis || 0,
725
- crossAxis: u.crossAxis || 0,
726
- alignmentAxis: u.alignmentAxis
724
+ mainAxis: p.mainAxis || 0,
725
+ crossAxis: p.crossAxis || 0,
726
+ alignmentAxis: p.alignmentAxis
727
727
  };
728
- return s && typeof f == "number" && (g = s === "end" ? f * -1 : f), d ? {
729
- x: g * l,
730
- y: p * c
728
+ return s && typeof m == "number" && (g = s === "end" ? m * -1 : m), d ? {
729
+ x: g * c,
730
+ y: u * l
731
731
  } : {
732
- x: p * c,
733
- y: g * l
732
+ x: u * l,
733
+ y: g * c
734
734
  };
735
735
  }
736
- const qa = function(e) {
736
+ const ja = function(e) {
737
737
  return e === void 0 && (e = 0), {
738
738
  name: "offset",
739
739
  options: e,
@@ -744,7 +744,7 @@ const qa = function(e) {
744
744
  y: i,
745
745
  placement: o,
746
746
  middlewareData: s
747
- } = a, d = await Ua(a, e);
747
+ } = a, d = await Wa(a, e);
748
748
  return o === ((t = s.offset) == null ? void 0 : t.placement) && (n = s.arrow) != null && n.alignmentOffset ? {} : {
749
749
  x: r + d.x,
750
750
  y: i + d.y,
@@ -755,7 +755,7 @@ const qa = function(e) {
755
755
  };
756
756
  }
757
757
  };
758
- }, ja = function(e) {
758
+ }, Ka = function(e) {
759
759
  return e === void 0 && (e = {}), {
760
760
  name: "shift",
761
761
  options: e,
@@ -770,33 +770,33 @@ const qa = function(e) {
770
770
  limiter: s = {
771
771
  fn: (v) => {
772
772
  let {
773
- x: m,
773
+ x: f,
774
774
  y: x
775
775
  } = v;
776
776
  return {
777
- x: m,
777
+ x: f,
778
778
  y: x
779
779
  };
780
780
  }
781
781
  },
782
782
  ...d
783
- } = ye(e, a), c = {
783
+ } = ye(e, a), l = {
784
784
  x: t,
785
785
  y: n
786
- }, l = await dt(a, d), u = G(Z(r)), p = zt(u);
787
- let g = c[p], f = c[u];
786
+ }, c = await ct(a, d), p = G(Z(r)), u = Ot(p);
787
+ let g = l[u], m = l[p];
788
788
  if (i) {
789
- const v = p === "y" ? "top" : "left", m = p === "y" ? "bottom" : "right", x = g + l[v], E = g - l[m];
790
- g = Xe(x, g, E);
789
+ const v = u === "y" ? "top" : "left", f = u === "y" ? "bottom" : "right", x = g + c[v], E = g - c[f];
790
+ g = Je(x, g, E);
791
791
  }
792
792
  if (o) {
793
- const v = u === "y" ? "top" : "left", m = u === "y" ? "bottom" : "right", x = f + l[v], E = f - l[m];
794
- f = Xe(x, f, E);
793
+ const v = p === "y" ? "top" : "left", f = p === "y" ? "bottom" : "right", x = m + c[v], E = m - c[f];
794
+ m = Je(x, m, E);
795
795
  }
796
796
  const h = s.fn({
797
797
  ...a,
798
- [p]: g,
799
- [u]: f
798
+ [u]: g,
799
+ [p]: m
800
800
  });
801
801
  return {
802
802
  ...h,
@@ -804,14 +804,14 @@ const qa = function(e) {
804
804
  x: h.x - t,
805
805
  y: h.y - n,
806
806
  enabled: {
807
- [p]: i,
808
- [u]: o
807
+ [u]: i,
808
+ [p]: o
809
809
  }
810
810
  }
811
811
  };
812
812
  }
813
813
  };
814
- }, Wa = function(e) {
814
+ }, Ga = function(e) {
815
815
  return e === void 0 && (e = {}), {
816
816
  name: "size",
817
817
  options: e,
@@ -825,26 +825,26 @@ const qa = function(e) {
825
825
  } = a, {
826
826
  apply: d = () => {
827
827
  },
828
- ...c
829
- } = ye(e, a), l = await dt(a, c), u = Z(r), p = ve(r), g = G(r) === "y", {
830
- width: f,
828
+ ...l
829
+ } = ye(e, a), c = await ct(a, l), p = Z(r), u = ve(r), g = G(r) === "y", {
830
+ width: m,
831
831
  height: h
832
832
  } = i.floating;
833
- let v, m;
834
- u === "top" || u === "bottom" ? (v = u, m = p === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (m = u, v = p === "end" ? "top" : "bottom");
835
- const x = h - l.top - l.bottom, E = f - l.left - l.right, S = Q(h - l[v], x), D = Q(f - l[m], E), _ = !a.middlewareData.shift;
836
- let R = S, k = D;
837
- if ((t = a.middlewareData.shift) != null && t.enabled.x && (k = E), (n = a.middlewareData.shift) != null && n.enabled.y && (R = x), _ && !p) {
838
- const M = O(l.left, 0), C = O(l.right, 0), I = O(l.top, 0), T = O(l.bottom, 0);
839
- g ? k = f - 2 * (M !== 0 || C !== 0 ? M + C : O(l.left, l.right)) : R = h - 2 * (I !== 0 || T !== 0 ? I + T : O(l.top, l.bottom));
833
+ let v, f;
834
+ p === "top" || p === "bottom" ? (v = p, f = u === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (f = p, v = u === "end" ? "top" : "bottom");
835
+ const x = h - c.top - c.bottom, E = m - c.left - c.right, S = Q(h - c[v], x), D = Q(m - c[f], E), _ = !a.middlewareData.shift;
836
+ let k = S, L = D;
837
+ if ((t = a.middlewareData.shift) != null && t.enabled.x && (L = E), (n = a.middlewareData.shift) != null && n.enabled.y && (k = x), _ && !u) {
838
+ const M = O(c.left, 0), C = O(c.right, 0), I = O(c.top, 0), A = O(c.bottom, 0);
839
+ g ? L = m - 2 * (M !== 0 || C !== 0 ? M + C : O(c.left, c.right)) : k = h - 2 * (I !== 0 || A !== 0 ? I + A : O(c.top, c.bottom));
840
840
  }
841
841
  await d({
842
842
  ...a,
843
- availableWidth: k,
844
- availableHeight: R
843
+ availableWidth: L,
844
+ availableHeight: k
845
845
  });
846
846
  const y = await o.getDimensions(s.floating);
847
- return f !== y.width || h !== y.height ? {
847
+ return m !== y.width || h !== y.height ? {
848
848
  reset: {
849
849
  rects: !0
850
850
  }
@@ -852,49 +852,49 @@ const qa = function(e) {
852
852
  }
853
853
  };
854
854
  };
855
- function He() {
855
+ function Ye() {
856
856
  return typeof window < "u";
857
857
  }
858
858
  function De(e) {
859
- return Pt(e) ? (e.nodeName || "").toLowerCase() : "#document";
859
+ return Ht(e) ? (e.nodeName || "").toLowerCase() : "#document";
860
860
  }
861
861
  function F(e) {
862
862
  var a;
863
863
  return (e == null || (a = e.ownerDocument) == null ? void 0 : a.defaultView) || window;
864
864
  }
865
- function W(e) {
865
+ function j(e) {
866
866
  var a;
867
- return (a = (Pt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : a.documentElement;
867
+ return (a = (Ht(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : a.documentElement;
868
868
  }
869
- function Pt(e) {
870
- return He() ? e instanceof Node || e instanceof F(e).Node : !1;
869
+ function Ht(e) {
870
+ return Ye() ? e instanceof Node || e instanceof F(e).Node : !1;
871
871
  }
872
872
  function B(e) {
873
- return He() ? e instanceof Element || e instanceof F(e).Element : !1;
873
+ return Ye() ? e instanceof Element || e instanceof F(e).Element : !1;
874
874
  }
875
- function j(e) {
876
- return He() ? e instanceof HTMLElement || e instanceof F(e).HTMLElement : !1;
875
+ function W(e) {
876
+ return Ye() ? e instanceof HTMLElement || e instanceof F(e).HTMLElement : !1;
877
877
  }
878
- function _t(e) {
879
- return !He() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof F(e).ShadowRoot;
878
+ function Mt(e) {
879
+ return !Ye() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof F(e).ShadowRoot;
880
880
  }
881
- const Ka = /* @__PURE__ */ new Set(["inline", "contents"]);
882
- function Ce(e) {
881
+ const Xa = /* @__PURE__ */ new Set(["inline", "contents"]);
882
+ function Ie(e) {
883
883
  const {
884
884
  overflow: a,
885
885
  overflowX: t,
886
886
  overflowY: n,
887
887
  display: r
888
888
  } = V(e);
889
- return /auto|scroll|overlay|hidden|clip/.test(a + n + t) && !Ka.has(r);
889
+ return /auto|scroll|overlay|hidden|clip/.test(a + n + t) && !Xa.has(r);
890
890
  }
891
- const Ga = /* @__PURE__ */ new Set(["table", "td", "th"]);
892
- function Xa(e) {
893
- return Ga.has(De(e));
891
+ const Ja = /* @__PURE__ */ new Set(["table", "td", "th"]);
892
+ function Qa(e) {
893
+ return Ja.has(De(e));
894
894
  }
895
- const Ja = [":popover-open", ":modal"];
896
- function Ye(e) {
897
- return Ja.some((a) => {
895
+ const Za = [":popover-open", ":modal"];
896
+ function Be(e) {
897
+ return Za.some((a) => {
898
898
  try {
899
899
  return e.matches(a);
900
900
  } catch {
@@ -902,33 +902,33 @@ function Ye(e) {
902
902
  }
903
903
  });
904
904
  }
905
- const Qa = ["transform", "translate", "scale", "rotate", "perspective"], Za = ["transform", "translate", "scale", "rotate", "perspective", "filter"], en = ["paint", "layout", "strict", "content"];
906
- function lt(e) {
907
- const a = ct(), t = B(e) ? V(e) : e;
908
- return Qa.some((n) => t[n] ? t[n] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !a && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !a && (t.filter ? t.filter !== "none" : !1) || Za.some((n) => (t.willChange || "").includes(n)) || en.some((n) => (t.contain || "").includes(n));
905
+ const en = ["transform", "translate", "scale", "rotate", "perspective"], tn = ["transform", "translate", "scale", "rotate", "perspective", "filter"], an = ["paint", "layout", "strict", "content"];
906
+ function pt(e) {
907
+ const a = ut(), t = B(e) ? V(e) : e;
908
+ return en.some((n) => t[n] ? t[n] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !a && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !a && (t.filter ? t.filter !== "none" : !1) || tn.some((n) => (t.willChange || "").includes(n)) || an.some((n) => (t.contain || "").includes(n));
909
909
  }
910
- function tn(e) {
910
+ function nn(e) {
911
911
  let a = ee(e);
912
- for (; j(a) && !fe(a); ) {
913
- if (lt(a))
912
+ for (; W(a) && !fe(a); ) {
913
+ if (pt(a))
914
914
  return a;
915
- if (Ye(a))
915
+ if (Be(a))
916
916
  return null;
917
917
  a = ee(a);
918
918
  }
919
919
  return null;
920
920
  }
921
- function ct() {
921
+ function ut() {
922
922
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
923
923
  }
924
- const an = /* @__PURE__ */ new Set(["html", "body", "#document"]);
924
+ const rn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
925
925
  function fe(e) {
926
- return an.has(De(e));
926
+ return rn.has(De(e));
927
927
  }
928
928
  function V(e) {
929
929
  return F(e).getComputedStyle(e);
930
930
  }
931
- function Be(e) {
931
+ function Ve(e) {
932
932
  return B(e) ? {
933
933
  scrollLeft: e.scrollLeft,
934
934
  scrollTop: e.scrollTop
@@ -944,133 +944,133 @@ function ee(e) {
944
944
  // Step into the shadow DOM of the parent of a slotted node.
945
945
  e.assignedSlot || // DOM Element detected.
946
946
  e.parentNode || // ShadowRoot detected.
947
- _t(e) && e.host || // Fallback.
948
- W(e)
947
+ Mt(e) && e.host || // Fallback.
948
+ j(e)
949
949
  );
950
- return _t(a) ? a.host : a;
950
+ return Mt(a) ? a.host : a;
951
951
  }
952
- function Ot(e) {
952
+ function Yt(e) {
953
953
  const a = ee(e);
954
- return fe(a) ? e.ownerDocument ? e.ownerDocument.body : e.body : j(a) && Ce(a) ? a : Ot(a);
954
+ return fe(a) ? e.ownerDocument ? e.ownerDocument.body : e.body : W(a) && Ie(a) ? a : Yt(a);
955
955
  }
956
- function Me(e, a, t) {
956
+ function Ce(e, a, t) {
957
957
  var n;
958
958
  a === void 0 && (a = []), t === void 0 && (t = !0);
959
- const r = Ot(e), i = r === ((n = e.ownerDocument) == null ? void 0 : n.body), o = F(r);
959
+ const r = Yt(e), i = r === ((n = e.ownerDocument) == null ? void 0 : n.body), o = F(r);
960
960
  if (i) {
961
- const s = Qe(o);
962
- return a.concat(o, o.visualViewport || [], Ce(r) ? r : [], s && t ? Me(s) : []);
961
+ const s = Ze(o);
962
+ return a.concat(o, o.visualViewport || [], Ie(r) ? r : [], s && t ? Ce(s) : []);
963
963
  }
964
- return a.concat(r, Me(r, [], t));
964
+ return a.concat(r, Ce(r, [], t));
965
965
  }
966
- function Qe(e) {
966
+ function Ze(e) {
967
967
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
968
968
  }
969
- function Ft(e) {
969
+ function Bt(e) {
970
970
  const a = V(e);
971
971
  let t = parseFloat(a.width) || 0, n = parseFloat(a.height) || 0;
972
- const r = j(e), i = r ? e.offsetWidth : t, o = r ? e.offsetHeight : n, s = $e(t) !== i || $e(n) !== o;
972
+ const r = W(e), i = r ? e.offsetWidth : t, o = r ? e.offsetHeight : n, s = ze(t) !== i || ze(n) !== o;
973
973
  return s && (t = i, n = o), {
974
974
  width: t,
975
975
  height: n,
976
976
  $: s
977
977
  };
978
978
  }
979
- function ut(e) {
979
+ function gt(e) {
980
980
  return B(e) ? e : e.contextElement;
981
981
  }
982
982
  function ge(e) {
983
- const a = ut(e);
984
- if (!j(a))
983
+ const a = gt(e);
984
+ if (!W(a))
985
985
  return q(1);
986
986
  const t = a.getBoundingClientRect(), {
987
987
  width: n,
988
988
  height: r,
989
989
  $: i
990
- } = Ft(a);
991
- let o = (i ? $e(t.width) : t.width) / n, s = (i ? $e(t.height) : t.height) / r;
990
+ } = Bt(a);
991
+ let o = (i ? ze(t.width) : t.width) / n, s = (i ? ze(t.height) : t.height) / r;
992
992
  return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
993
993
  x: o,
994
994
  y: s
995
995
  };
996
996
  }
997
- const nn = /* @__PURE__ */ q(0);
998
- function Ht(e) {
997
+ const on = /* @__PURE__ */ q(0);
998
+ function Vt(e) {
999
999
  const a = F(e);
1000
- return !ct() || !a.visualViewport ? nn : {
1000
+ return !ut() || !a.visualViewport ? on : {
1001
1001
  x: a.visualViewport.offsetLeft,
1002
1002
  y: a.visualViewport.offsetTop
1003
1003
  };
1004
1004
  }
1005
- function rn(e, a, t) {
1005
+ function sn(e, a, t) {
1006
1006
  return a === void 0 && (a = !1), !t || a && t !== F(e) ? !1 : a;
1007
1007
  }
1008
1008
  function oe(e, a, t, n) {
1009
1009
  a === void 0 && (a = !1), t === void 0 && (t = !1);
1010
- const r = e.getBoundingClientRect(), i = ut(e);
1010
+ const r = e.getBoundingClientRect(), i = gt(e);
1011
1011
  let o = q(1);
1012
1012
  a && (n ? B(n) && (o = ge(n)) : o = ge(e));
1013
- const s = rn(i, t, n) ? Ht(i) : q(0);
1014
- let d = (r.left + s.x) / o.x, c = (r.top + s.y) / o.y, l = r.width / o.x, u = r.height / o.y;
1013
+ const s = sn(i, t, n) ? Vt(i) : q(0);
1014
+ let d = (r.left + s.x) / o.x, l = (r.top + s.y) / o.y, c = r.width / o.x, p = r.height / o.y;
1015
1015
  if (i) {
1016
- const p = F(i), g = n && B(n) ? F(n) : n;
1017
- let f = p, h = Qe(f);
1018
- for (; h && n && g !== f; ) {
1019
- const v = ge(h), m = h.getBoundingClientRect(), x = V(h), E = m.left + (h.clientLeft + parseFloat(x.paddingLeft)) * v.x, S = m.top + (h.clientTop + parseFloat(x.paddingTop)) * v.y;
1020
- d *= v.x, c *= v.y, l *= v.x, u *= v.y, d += E, c += S, f = F(h), h = Qe(f);
1016
+ const u = F(i), g = n && B(n) ? F(n) : n;
1017
+ let m = u, h = Ze(m);
1018
+ for (; h && n && g !== m; ) {
1019
+ const v = ge(h), f = h.getBoundingClientRect(), x = V(h), E = f.left + (h.clientLeft + parseFloat(x.paddingLeft)) * v.x, S = f.top + (h.clientTop + parseFloat(x.paddingTop)) * v.y;
1020
+ d *= v.x, l *= v.y, c *= v.x, p *= v.y, d += E, l += S, m = F(h), h = Ze(m);
1021
1021
  }
1022
1022
  }
1023
- return Ne({
1024
- width: l,
1025
- height: u,
1023
+ return Pe({
1024
+ width: c,
1025
+ height: p,
1026
1026
  x: d,
1027
- y: c
1027
+ y: l
1028
1028
  });
1029
1029
  }
1030
- function Ve(e, a) {
1031
- const t = Be(e).scrollLeft;
1032
- return a ? a.left + t : oe(W(e)).left + t;
1030
+ function Ue(e, a) {
1031
+ const t = Ve(e).scrollLeft;
1032
+ return a ? a.left + t : oe(j(e)).left + t;
1033
1033
  }
1034
- function Yt(e, a) {
1035
- const t = e.getBoundingClientRect(), n = t.left + a.scrollLeft - Ve(e, t), r = t.top + a.scrollTop;
1034
+ function Ut(e, a) {
1035
+ const t = e.getBoundingClientRect(), n = t.left + a.scrollLeft - Ue(e, t), r = t.top + a.scrollTop;
1036
1036
  return {
1037
1037
  x: n,
1038
1038
  y: r
1039
1039
  };
1040
1040
  }
1041
- function on(e) {
1041
+ function dn(e) {
1042
1042
  let {
1043
1043
  elements: a,
1044
1044
  rect: t,
1045
1045
  offsetParent: n,
1046
1046
  strategy: r
1047
1047
  } = e;
1048
- const i = r === "fixed", o = W(n), s = a ? Ye(a.floating) : !1;
1048
+ const i = r === "fixed", o = j(n), s = a ? Be(a.floating) : !1;
1049
1049
  if (n === o || s && i)
1050
1050
  return t;
1051
1051
  let d = {
1052
1052
  scrollLeft: 0,
1053
1053
  scrollTop: 0
1054
- }, c = q(1);
1055
- const l = q(0), u = j(n);
1056
- if ((u || !u && !i) && ((De(n) !== "body" || Ce(o)) && (d = Be(n)), j(n))) {
1054
+ }, l = q(1);
1055
+ const c = q(0), p = W(n);
1056
+ if ((p || !p && !i) && ((De(n) !== "body" || Ie(o)) && (d = Ve(n)), W(n))) {
1057
1057
  const g = oe(n);
1058
- c = ge(n), l.x = g.x + n.clientLeft, l.y = g.y + n.clientTop;
1058
+ l = ge(n), c.x = g.x + n.clientLeft, c.y = g.y + n.clientTop;
1059
1059
  }
1060
- const p = o && !u && !i ? Yt(o, d) : q(0);
1060
+ const u = o && !p && !i ? Ut(o, d) : q(0);
1061
1061
  return {
1062
- width: t.width * c.x,
1063
- height: t.height * c.y,
1064
- x: t.x * c.x - d.scrollLeft * c.x + l.x + p.x,
1065
- y: t.y * c.y - d.scrollTop * c.y + l.y + p.y
1062
+ width: t.width * l.x,
1063
+ height: t.height * l.y,
1064
+ x: t.x * l.x - d.scrollLeft * l.x + c.x + u.x,
1065
+ y: t.y * l.y - d.scrollTop * l.y + c.y + u.y
1066
1066
  };
1067
1067
  }
1068
- function sn(e) {
1068
+ function ln(e) {
1069
1069
  return Array.from(e.getClientRects());
1070
1070
  }
1071
- function dn(e) {
1072
- const a = W(e), t = Be(e), n = e.ownerDocument.body, r = O(a.scrollWidth, a.clientWidth, n.scrollWidth, n.clientWidth), i = O(a.scrollHeight, a.clientHeight, n.scrollHeight, n.clientHeight);
1073
- let o = -t.scrollLeft + Ve(e);
1071
+ function cn(e) {
1072
+ const a = j(e), t = Ve(e), n = e.ownerDocument.body, r = O(a.scrollWidth, a.clientWidth, n.scrollWidth, n.clientWidth), i = O(a.scrollHeight, a.clientHeight, n.scrollHeight, n.clientHeight);
1073
+ let o = -t.scrollLeft + Ue(e);
1074
1074
  const s = -t.scrollTop;
1075
1075
  return V(n).direction === "rtl" && (o += O(a.clientWidth, n.clientWidth) - r), {
1076
1076
  width: r,
@@ -1079,20 +1079,20 @@ function dn(e) {
1079
1079
  y: s
1080
1080
  };
1081
1081
  }
1082
- const wt = 25;
1083
- function ln(e, a) {
1084
- const t = F(e), n = W(e), r = t.visualViewport;
1082
+ const St = 25;
1083
+ function pn(e, a) {
1084
+ const t = F(e), n = j(e), r = t.visualViewport;
1085
1085
  let i = n.clientWidth, o = n.clientHeight, s = 0, d = 0;
1086
1086
  if (r) {
1087
1087
  i = r.width, o = r.height;
1088
- const l = ct();
1089
- (!l || l && a === "fixed") && (s = r.offsetLeft, d = r.offsetTop);
1090
- }
1091
- const c = Ve(n);
1092
- if (c <= 0) {
1093
- const l = n.ownerDocument, u = l.body, p = getComputedStyle(u), g = l.compatMode === "CSS1Compat" && parseFloat(p.marginLeft) + parseFloat(p.marginRight) || 0, f = Math.abs(n.clientWidth - u.clientWidth - g);
1094
- f <= wt && (i -= f);
1095
- } else c <= wt && (i += c);
1088
+ const c = ut();
1089
+ (!c || c && a === "fixed") && (s = r.offsetLeft, d = r.offsetTop);
1090
+ }
1091
+ const l = Ue(n);
1092
+ if (l <= 0) {
1093
+ const c = n.ownerDocument, p = c.body, u = getComputedStyle(p), g = c.compatMode === "CSS1Compat" && parseFloat(u.marginLeft) + parseFloat(u.marginRight) || 0, m = Math.abs(n.clientWidth - p.clientWidth - g);
1094
+ m <= St && (i -= m);
1095
+ } else l <= St && (i += l);
1096
1096
  return {
1097
1097
  width: i,
1098
1098
  height: o,
@@ -1100,26 +1100,26 @@ function ln(e, a) {
1100
1100
  y: d
1101
1101
  };
1102
1102
  }
1103
- const cn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1104
- function un(e, a) {
1105
- const t = oe(e, !0, a === "fixed"), n = t.top + e.clientTop, r = t.left + e.clientLeft, i = j(e) ? ge(e) : q(1), o = e.clientWidth * i.x, s = e.clientHeight * i.y, d = r * i.x, c = n * i.y;
1103
+ const un = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1104
+ function gn(e, a) {
1105
+ const t = oe(e, !0, a === "fixed"), n = t.top + e.clientTop, r = t.left + e.clientLeft, i = W(e) ? ge(e) : q(1), o = e.clientWidth * i.x, s = e.clientHeight * i.y, d = r * i.x, l = n * i.y;
1106
1106
  return {
1107
1107
  width: o,
1108
1108
  height: s,
1109
1109
  x: d,
1110
- y: c
1110
+ y: l
1111
1111
  };
1112
1112
  }
1113
- function xt(e, a, t) {
1113
+ function Ct(e, a, t) {
1114
1114
  let n;
1115
1115
  if (a === "viewport")
1116
- n = ln(e, t);
1116
+ n = pn(e, t);
1117
1117
  else if (a === "document")
1118
- n = dn(W(e));
1118
+ n = cn(j(e));
1119
1119
  else if (B(a))
1120
- n = un(a, t);
1120
+ n = gn(a, t);
1121
1121
  else {
1122
- const r = Ht(e);
1122
+ const r = Vt(e);
1123
1123
  n = {
1124
1124
  x: a.x - r.x,
1125
1125
  y: a.y - r.y,
@@ -1127,36 +1127,36 @@ function xt(e, a, t) {
1127
1127
  height: a.height
1128
1128
  };
1129
1129
  }
1130
- return Ne(n);
1130
+ return Pe(n);
1131
1131
  }
1132
- function Bt(e, a) {
1132
+ function qt(e, a) {
1133
1133
  const t = ee(e);
1134
- return t === a || !B(t) || fe(t) ? !1 : V(t).position === "fixed" || Bt(t, a);
1134
+ return t === a || !B(t) || fe(t) ? !1 : V(t).position === "fixed" || qt(t, a);
1135
1135
  }
1136
- function pn(e, a) {
1136
+ function hn(e, a) {
1137
1137
  const t = a.get(e);
1138
1138
  if (t)
1139
1139
  return t;
1140
- let n = Me(e, [], !1).filter((s) => B(s) && De(s) !== "body"), r = null;
1140
+ let n = Ce(e, [], !1).filter((s) => B(s) && De(s) !== "body"), r = null;
1141
1141
  const i = V(e).position === "fixed";
1142
1142
  let o = i ? ee(e) : e;
1143
1143
  for (; B(o) && !fe(o); ) {
1144
- const s = V(o), d = lt(o);
1145
- !d && s.position === "fixed" && (r = null), (i ? !d && !r : !d && s.position === "static" && !!r && cn.has(r.position) || Ce(o) && !d && Bt(e, o)) ? n = n.filter((l) => l !== o) : r = s, o = ee(o);
1144
+ const s = V(o), d = pt(o);
1145
+ !d && s.position === "fixed" && (r = null), (i ? !d && !r : !d && s.position === "static" && !!r && un.has(r.position) || Ie(o) && !d && qt(e, o)) ? n = n.filter((c) => c !== o) : r = s, o = ee(o);
1146
1146
  }
1147
1147
  return a.set(e, n), n;
1148
1148
  }
1149
- function gn(e) {
1149
+ function fn(e) {
1150
1150
  let {
1151
1151
  element: a,
1152
1152
  boundary: t,
1153
1153
  rootBoundary: n,
1154
1154
  strategy: r
1155
1155
  } = e;
1156
- const o = [...t === "clippingAncestors" ? Ye(a) ? [] : pn(a, this._c) : [].concat(t), n], s = o[0], d = o.reduce((c, l) => {
1157
- const u = xt(a, l, r);
1158
- return c.top = O(u.top, c.top), c.right = Q(u.right, c.right), c.bottom = Q(u.bottom, c.bottom), c.left = O(u.left, c.left), c;
1159
- }, xt(a, s, r));
1156
+ const o = [...t === "clippingAncestors" ? Be(a) ? [] : hn(a, this._c) : [].concat(t), n], s = o[0], d = o.reduce((l, c) => {
1157
+ const p = Ct(a, c, r);
1158
+ return l.top = O(p.top, l.top), l.right = Q(p.right, l.right), l.bottom = Q(p.bottom, l.bottom), l.left = O(p.left, l.left), l;
1159
+ }, Ct(a, s, r));
1160
1160
  return {
1161
1161
  width: d.right - d.left,
1162
1162
  height: d.bottom - d.top,
@@ -1164,73 +1164,73 @@ function gn(e) {
1164
1164
  y: d.top
1165
1165
  };
1166
1166
  }
1167
- function hn(e) {
1167
+ function mn(e) {
1168
1168
  const {
1169
1169
  width: a,
1170
1170
  height: t
1171
- } = Ft(e);
1171
+ } = Bt(e);
1172
1172
  return {
1173
1173
  width: a,
1174
1174
  height: t
1175
1175
  };
1176
1176
  }
1177
- function fn(e, a, t) {
1178
- const n = j(a), r = W(a), i = t === "fixed", o = oe(e, !0, i, a);
1177
+ function bn(e, a, t) {
1178
+ const n = W(a), r = j(a), i = t === "fixed", o = oe(e, !0, i, a);
1179
1179
  let s = {
1180
1180
  scrollLeft: 0,
1181
1181
  scrollTop: 0
1182
1182
  };
1183
1183
  const d = q(0);
1184
- function c() {
1185
- d.x = Ve(r);
1184
+ function l() {
1185
+ d.x = Ue(r);
1186
1186
  }
1187
1187
  if (n || !n && !i)
1188
- if ((De(a) !== "body" || Ce(r)) && (s = Be(a)), n) {
1188
+ if ((De(a) !== "body" || Ie(r)) && (s = Ve(a)), n) {
1189
1189
  const g = oe(a, !0, i, a);
1190
1190
  d.x = g.x + a.clientLeft, d.y = g.y + a.clientTop;
1191
- } else r && c();
1192
- i && !n && r && c();
1193
- const l = r && !n && !i ? Yt(r, s) : q(0), u = o.left + s.scrollLeft - d.x - l.x, p = o.top + s.scrollTop - d.y - l.y;
1191
+ } else r && l();
1192
+ i && !n && r && l();
1193
+ const c = r && !n && !i ? Ut(r, s) : q(0), p = o.left + s.scrollLeft - d.x - c.x, u = o.top + s.scrollTop - d.y - c.y;
1194
1194
  return {
1195
- x: u,
1196
- y: p,
1195
+ x: p,
1196
+ y: u,
1197
1197
  width: o.width,
1198
1198
  height: o.height
1199
1199
  };
1200
1200
  }
1201
- function qe(e) {
1201
+ function We(e) {
1202
1202
  return V(e).position === "static";
1203
1203
  }
1204
- function Mt(e, a) {
1205
- if (!j(e) || V(e).position === "fixed")
1204
+ function Et(e, a) {
1205
+ if (!W(e) || V(e).position === "fixed")
1206
1206
  return null;
1207
1207
  if (a)
1208
1208
  return a(e);
1209
1209
  let t = e.offsetParent;
1210
- return W(e) === t && (t = t.ownerDocument.body), t;
1210
+ return j(e) === t && (t = t.ownerDocument.body), t;
1211
1211
  }
1212
- function Vt(e, a) {
1212
+ function Wt(e, a) {
1213
1213
  const t = F(e);
1214
- if (Ye(e))
1214
+ if (Be(e))
1215
1215
  return t;
1216
- if (!j(e)) {
1216
+ if (!W(e)) {
1217
1217
  let r = ee(e);
1218
1218
  for (; r && !fe(r); ) {
1219
- if (B(r) && !qe(r))
1219
+ if (B(r) && !We(r))
1220
1220
  return r;
1221
1221
  r = ee(r);
1222
1222
  }
1223
1223
  return t;
1224
1224
  }
1225
- let n = Mt(e, a);
1226
- for (; n && Xa(n) && qe(n); )
1227
- n = Mt(n, a);
1228
- return n && fe(n) && qe(n) && !lt(n) ? t : n || tn(e) || t;
1225
+ let n = Et(e, a);
1226
+ for (; n && Qa(n) && We(n); )
1227
+ n = Et(n, a);
1228
+ return n && fe(n) && We(n) && !pt(n) ? t : n || nn(e) || t;
1229
1229
  }
1230
- const mn = async function(e) {
1231
- const a = this.getOffsetParent || Vt, t = this.getDimensions, n = await t(e.floating);
1230
+ const yn = async function(e) {
1231
+ const a = this.getOffsetParent || Wt, t = this.getDimensions, n = await t(e.floating);
1232
1232
  return {
1233
- reference: fn(e.reference, await a(e.floating), e.strategy),
1233
+ reference: bn(e.reference, await a(e.floating), e.strategy),
1234
1234
  floating: {
1235
1235
  x: 0,
1236
1236
  y: 0,
@@ -1239,56 +1239,56 @@ const mn = async function(e) {
1239
1239
  }
1240
1240
  };
1241
1241
  };
1242
- function bn(e) {
1242
+ function vn(e) {
1243
1243
  return V(e).direction === "rtl";
1244
1244
  }
1245
- const yn = {
1246
- convertOffsetParentRelativeRectToViewportRelativeRect: on,
1247
- getDocumentElement: W,
1248
- getClippingRect: gn,
1249
- getOffsetParent: Vt,
1250
- getElementRects: mn,
1251
- getClientRects: sn,
1252
- getDimensions: hn,
1245
+ const Dn = {
1246
+ convertOffsetParentRelativeRectToViewportRelativeRect: dn,
1247
+ getDocumentElement: j,
1248
+ getClippingRect: fn,
1249
+ getOffsetParent: Wt,
1250
+ getElementRects: yn,
1251
+ getClientRects: ln,
1252
+ getDimensions: mn,
1253
1253
  getScale: ge,
1254
1254
  isElement: B,
1255
- isRTL: bn
1255
+ isRTL: vn
1256
1256
  };
1257
- function Ut(e, a) {
1257
+ function jt(e, a) {
1258
1258
  return e.x === a.x && e.y === a.y && e.width === a.width && e.height === a.height;
1259
1259
  }
1260
- function vn(e, a) {
1260
+ function _n(e, a) {
1261
1261
  let t = null, n;
1262
- const r = W(e);
1262
+ const r = j(e);
1263
1263
  function i() {
1264
1264
  var s;
1265
1265
  clearTimeout(n), (s = t) == null || s.disconnect(), t = null;
1266
1266
  }
1267
1267
  function o(s, d) {
1268
1268
  s === void 0 && (s = !1), d === void 0 && (d = 1), i();
1269
- const c = e.getBoundingClientRect(), {
1270
- left: l,
1271
- top: u,
1272
- width: p,
1269
+ const l = e.getBoundingClientRect(), {
1270
+ left: c,
1271
+ top: p,
1272
+ width: u,
1273
1273
  height: g
1274
- } = c;
1275
- if (s || a(), !p || !g)
1274
+ } = l;
1275
+ if (s || a(), !u || !g)
1276
1276
  return;
1277
- const f = Ie(u), h = Ie(r.clientWidth - (l + p)), v = Ie(r.clientHeight - (u + g)), m = Ie(l), E = {
1278
- rootMargin: -f + "px " + -h + "px " + -v + "px " + -m + "px",
1277
+ const m = Re(p), h = Re(r.clientWidth - (c + u)), v = Re(r.clientHeight - (p + g)), f = Re(c), E = {
1278
+ rootMargin: -m + "px " + -h + "px " + -v + "px " + -f + "px",
1279
1279
  threshold: O(0, Q(1, d)) || 1
1280
1280
  };
1281
1281
  let S = !0;
1282
1282
  function D(_) {
1283
- const R = _[0].intersectionRatio;
1284
- if (R !== d) {
1283
+ const k = _[0].intersectionRatio;
1284
+ if (k !== d) {
1285
1285
  if (!S)
1286
1286
  return o();
1287
- R ? o(!1, R) : n = setTimeout(() => {
1287
+ k ? o(!1, k) : n = setTimeout(() => {
1288
1288
  o(!1, 1e-7);
1289
1289
  }, 1e3);
1290
1290
  }
1291
- R === 1 && !Ut(c, e.getBoundingClientRect()) && o(), S = !1;
1291
+ k === 1 && !jt(l, e.getBoundingClientRect()) && o(), S = !1;
1292
1292
  }
1293
1293
  try {
1294
1294
  t = new IntersectionObserver(D, {
@@ -1303,7 +1303,7 @@ function vn(e, a) {
1303
1303
  }
1304
1304
  return o(!0), i;
1305
1305
  }
1306
- function qt(e, a, t, n) {
1306
+ function Kt(e, a, t, n) {
1307
1307
  n === void 0 && (n = {});
1308
1308
  const {
1309
1309
  ancestorScroll: r = !0,
@@ -1311,58 +1311,58 @@ function qt(e, a, t, n) {
1311
1311
  elementResize: o = typeof ResizeObserver == "function",
1312
1312
  layoutShift: s = typeof IntersectionObserver == "function",
1313
1313
  animationFrame: d = !1
1314
- } = n, c = ut(e), l = r || i ? [...c ? Me(c) : [], ...Me(a)] : [];
1315
- l.forEach((m) => {
1316
- r && m.addEventListener("scroll", t, {
1314
+ } = n, l = gt(e), c = r || i ? [...l ? Ce(l) : [], ...Ce(a)] : [];
1315
+ c.forEach((f) => {
1316
+ r && f.addEventListener("scroll", t, {
1317
1317
  passive: !0
1318
- }), i && m.addEventListener("resize", t);
1318
+ }), i && f.addEventListener("resize", t);
1319
1319
  });
1320
- const u = c && s ? vn(c, t) : null;
1321
- let p = -1, g = null;
1322
- o && (g = new ResizeObserver((m) => {
1323
- let [x] = m;
1324
- x && x.target === c && g && (g.unobserve(a), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
1320
+ const p = l && s ? _n(l, t) : null;
1321
+ let u = -1, g = null;
1322
+ o && (g = new ResizeObserver((f) => {
1323
+ let [x] = f;
1324
+ x && x.target === l && g && (g.unobserve(a), cancelAnimationFrame(u), u = requestAnimationFrame(() => {
1325
1325
  var E;
1326
1326
  (E = g) == null || E.observe(a);
1327
1327
  })), t();
1328
- }), c && !d && g.observe(c), g.observe(a));
1329
- let f, h = d ? oe(e) : null;
1328
+ }), l && !d && g.observe(l), g.observe(a));
1329
+ let m, h = d ? oe(e) : null;
1330
1330
  d && v();
1331
1331
  function v() {
1332
- const m = oe(e);
1333
- h && !Ut(h, m) && t(), h = m, f = requestAnimationFrame(v);
1332
+ const f = oe(e);
1333
+ h && !jt(h, f) && t(), h = f, m = requestAnimationFrame(v);
1334
1334
  }
1335
1335
  return t(), () => {
1336
- var m;
1337
- l.forEach((x) => {
1336
+ var f;
1337
+ c.forEach((x) => {
1338
1338
  r && x.removeEventListener("scroll", t), i && x.removeEventListener("resize", t);
1339
- }), u == null || u(), (m = g) == null || m.disconnect(), g = null, d && cancelAnimationFrame(f);
1339
+ }), p == null || p(), (f = g) == null || f.disconnect(), g = null, d && cancelAnimationFrame(m);
1340
1340
  };
1341
1341
  }
1342
- const pt = qa, gt = ja, ht = Ba, Dn = Wa, _n = Ya, ft = (e, a, t) => {
1342
+ const ht = ja, ft = Ka, mt = Ua, wn = Ga, xn = Va, bt = (e, a, t) => {
1343
1343
  const n = /* @__PURE__ */ new Map(), r = {
1344
- platform: yn,
1344
+ platform: Dn,
1345
1345
  ...t
1346
1346
  }, i = {
1347
1347
  ...r.platform,
1348
1348
  _c: n
1349
1349
  };
1350
- return Ha(e, a, {
1350
+ return Ba(e, a, {
1351
1351
  ...r,
1352
1352
  platform: i
1353
1353
  });
1354
1354
  };
1355
- async function jt(e, a) {
1355
+ async function Gt(e, a) {
1356
1356
  if (!e.options.beforeDateSelectCallback)
1357
1357
  return { isValid: !0 };
1358
1358
  try {
1359
- e.isValidating = !0, Oe(e);
1359
+ e.isValidating = !0, Fe(e);
1360
1360
  const t = await Promise.resolve(e.options.beforeDateSelectCallback(a));
1361
1361
  switch (ie(e), e.isValidating = !1, t.action) {
1362
1362
  case "accept":
1363
1363
  return se(e), { isValid: !0 };
1364
1364
  case "adjust":
1365
- return a instanceof Date && t.adjustedDate ? (t.message && tt(e, t.message, "info"), { isValid: !0, adjustedDate: t.adjustedDate, message: t.message }) : typeof a == "object" && "start" in a && t.adjustedStartDate && t.adjustedEndDate ? (t.message && tt(e, t.message, "info"), {
1365
+ return a instanceof Date && t.adjustedDate ? (t.message && nt(e, t.message, "info"), { isValid: !0, adjustedDate: t.adjustedDate, message: t.message }) : typeof a == "object" && "start" in a && t.adjustedStartDate && t.adjustedEndDate ? (t.message && nt(e, t.message, "info"), {
1366
1366
  isValid: !0,
1367
1367
  adjustedStart: t.adjustedStartDate,
1368
1368
  adjustedEnd: t.adjustedEndDate,
@@ -1385,13 +1385,13 @@ async function jt(e, a) {
1385
1385
  return ie(e), e.isValidating = !1, Y.error("beforeDateSelectCallback error:", t), { isValid: !1, message: "Validation error occurred" };
1386
1386
  }
1387
1387
  }
1388
- function Ze(e) {
1388
+ function et(e) {
1389
1389
  e.renderCalendar(), e.updateSummary();
1390
1390
  }
1391
- function ue(e, a) {
1391
+ function pe(e, a) {
1392
1392
  e.input && !e.requiresApplyButton() && (e.input.value = a);
1393
1393
  }
1394
- function St(e, a) {
1394
+ function It(e, a) {
1395
1395
  var t;
1396
1396
  for (let n = 0; n < e.monthDates.length; n++) {
1397
1397
  const r = e.monthDates[n];
@@ -1405,9 +1405,9 @@ function St(e, a) {
1405
1405
  const o = i.querySelectorAll(
1406
1406
  ".drp-date-picker__day:not(.drp-date-picker__day--other-month)"
1407
1407
  ), s = Array.from(o).findIndex((d) => {
1408
- const c = d.dataset.date;
1409
- if (!c) return !1;
1410
- const [l, u, p] = c.split("-").map(Number), g = new Date(l, u - 1, p);
1408
+ const l = d.dataset.date;
1409
+ if (!l) return !1;
1410
+ const [c, p, u] = l.split("-").map(Number), g = new Date(c, p - 1, u);
1411
1411
  return e.isSameDay(g, a);
1412
1412
  });
1413
1413
  if (s === -1) return;
@@ -1415,7 +1415,7 @@ function St(e, a) {
1415
1415
  return;
1416
1416
  }
1417
1417
  }
1418
- function wn(e) {
1418
+ function Mn(e) {
1419
1419
  const a = e.options.selectionMode;
1420
1420
  if (a === "range" && e.selectedStartDate && e.selectedEndDate)
1421
1421
  return `${e.formatDate(e.selectedStartDate)} - ${e.formatDate(e.selectedEndDate)}`;
@@ -1427,7 +1427,7 @@ function wn(e) {
1427
1427
  }
1428
1428
  return null;
1429
1429
  }
1430
- async function Wt(e, a, t) {
1430
+ async function Xt(e, a, t) {
1431
1431
  if (ne.debug(" validateRangeAsync called - mode:", e.options.disabledDatesHandling, "start:", a, "end:", t), e.options.disabledDatesHandling === "prevent") {
1432
1432
  if (ne.debug(" Checking PREVENT mode"), e.hasDisabledDatesInRange(a, t))
1433
1433
  return ne.debug(" PREVENT mode - range contains disabled dates"), { isValid: !1, message: "Range contains disabled dates" };
@@ -1436,7 +1436,7 @@ async function Wt(e, a, t) {
1436
1436
  const r = e.findLastEnabledBeforeGap(a, t);
1437
1437
  return ne.debug(" BLOCK mode - adjusted end:", r), { isValid: !0, adjustedStart: a, adjustedEnd: r };
1438
1438
  }
1439
- const n = await jt(e, { start: a, end: t });
1439
+ const n = await Gt(e, { start: a, end: t });
1440
1440
  return n.isValid ? n.adjustedStart || n.adjustedEnd ? {
1441
1441
  isValid: !0,
1442
1442
  adjustedStart: n.adjustedStart,
@@ -1450,7 +1450,7 @@ async function Wt(e, a, t) {
1450
1450
  invalidEnd: n.invalidEnd
1451
1451
  } : { isValid: !1, message: n.message };
1452
1452
  }
1453
- async function xn(e, a) {
1453
+ async function Sn(e, a) {
1454
1454
  if (a.classList.contains("drp-date-picker__day--disabled")) return;
1455
1455
  if (!a.dataset || !a.dataset.date) {
1456
1456
  Y.warn("selectDay() - called with invalid element:", a);
@@ -1466,90 +1466,90 @@ async function xn(e, a) {
1466
1466
  e.focusedDayIndex = Array.from(d).indexOf(a), ce.debug(`Col${e.activeMonthIndex} selectDay - set focusedDayIndex to:`, e.focusedDayIndex);
1467
1467
  }
1468
1468
  if (e.options.selectionMode === "single") {
1469
- const d = await jt(e, i);
1469
+ const d = await Gt(e, i);
1470
1470
  if (!d.isValid) {
1471
1471
  ce.debug("Single mode selection prevented by beforeDateSelectCallback");
1472
1472
  return;
1473
1473
  }
1474
1474
  d.message || se(e);
1475
- const c = d.adjustedDate || i;
1476
- d.adjustedDate && !e.isSameDay(i, c) && (o = c), e.selectedDate = c, ue(e, e.formatDate(c)), e.requiresApplyButton() ? e.pendingSelection = c : e.options.onSelect && e.options.onSelect(c), e.options.positioningMode === "floating" && e.shouldAutoClose() && e.hide();
1475
+ const l = d.adjustedDate || i;
1476
+ d.adjustedDate && !e.isSameDay(i, l) && (o = l), e.selectedDate = l, pe(e, e.formatDate(l)), e.requiresApplyButton() ? e.pendingSelection = l : e.options.onSelect && e.options.onSelect(l), e.options.positioningMode !== "inline" && e.shouldAutoClose() && e.hide();
1477
1477
  } else if (e.options.selectionMode === "multiple") {
1478
- const d = `${i.getFullYear()}-${String(i.getMonth() + 1).padStart(2, "0")}-${String(i.getDate()).padStart(2, "0")}`, c = e.selectedDates.findIndex((u) => `${u.getFullYear()}-${String(u.getMonth() + 1).padStart(2, "0")}-${String(u.getDate()).padStart(2, "0")}` === d);
1479
- c !== -1 ? e.selectedDates.splice(c, 1) : e.selectedDates.push(new Date(i));
1480
- const l = e.selectedDates.length + e.selectedRanges.length;
1481
- ue(e, l > 0 ? `${l} selection(s)` : ""), e.selectedRanges.length > 0 && e.selectedDates.length > 0 ? e.pendingSelection = [...e.selectedRanges, ...e.selectedDates] : e.selectedRanges.length > 0 ? e.pendingSelection = e.selectedRanges : e.pendingSelection = e.selectedDates;
1478
+ const d = `${i.getFullYear()}-${String(i.getMonth() + 1).padStart(2, "0")}-${String(i.getDate()).padStart(2, "0")}`, l = e.selectedDates.findIndex((p) => `${p.getFullYear()}-${String(p.getMonth() + 1).padStart(2, "0")}-${String(p.getDate()).padStart(2, "0")}` === d);
1479
+ l !== -1 ? e.selectedDates.splice(l, 1) : e.selectedDates.push(new Date(i));
1480
+ const c = e.selectedDates.length + e.selectedRanges.length;
1481
+ pe(e, c > 0 ? `${c} selection(s)` : ""), e.selectedRanges.length > 0 && e.selectedDates.length > 0 ? e.pendingSelection = [...e.selectedRanges, ...e.selectedDates] : e.selectedRanges.length > 0 ? e.pendingSelection = e.selectedRanges : e.pendingSelection = e.selectedDates;
1482
1482
  } else if (!e.selectedStartDate || e.selectedEndDate)
1483
- e.invalidRangeStart = null, e.invalidRangeEnd = null, e.selectedStartDate = i, e.selectedEndDate = null, ue(e, `${e.formatDate(e.selectedStartDate)} - ...`);
1483
+ e.invalidRangeStart = null, e.invalidRangeEnd = null, e.selectedStartDate = i, e.selectedEndDate = null, pe(e, `${e.formatDate(e.selectedStartDate)} - ...`);
1484
1484
  else {
1485
- let d = e.selectedStartDate, c = i;
1486
- i < e.selectedStartDate && (c = e.selectedStartDate, d = i), ce.debug(" selectDay - calling validateRangeAsync with:", d, c);
1487
- const l = await Wt(e, d, c);
1488
- if (ce.debug(" selectDay - validation result:", l), !l.isValid) {
1489
- l.message && Y.warn("selectDay() - range validation failed:", l.message), l.showInvalidRange && l.invalidStart && l.invalidEnd && (e.invalidRangeStart = l.invalidStart, e.invalidRangeEnd = l.invalidEnd, e.selectedStartDate = null, e.selectedEndDate = null), Ze(e);
1485
+ let d = e.selectedStartDate, l = i;
1486
+ i < e.selectedStartDate && (l = e.selectedStartDate, d = i), ce.debug(" selectDay - calling validateRangeAsync with:", d, l);
1487
+ const c = await Xt(e, d, l);
1488
+ if (ce.debug(" selectDay - validation result:", c), !c.isValid) {
1489
+ c.message && Y.warn("selectDay() - range validation failed:", c.message), c.showInvalidRange && c.invalidStart && c.invalidEnd && (e.invalidRangeStart = c.invalidStart, e.invalidRangeEnd = c.invalidEnd, e.selectedStartDate = null, e.selectedEndDate = null), et(e);
1490
1490
  return;
1491
1491
  }
1492
- e.selectedStartDate = l.adjustedStart || d, e.selectedEndDate = l.adjustedEnd || c, e.invalidRangeStart = null, e.invalidRangeEnd = null, l.message || se(e), ue(e, `${e.formatDate(e.selectedStartDate)} - ${e.formatDate(e.selectedEndDate)}`);
1493
- const u = { start: e.selectedStartDate, end: e.selectedEndDate };
1494
- e.requiresApplyButton() ? e.pendingSelection = u : e.options.onSelect && e.options.onSelect(u), e.options.positioningMode === "floating" && e.shouldAutoClose() && e.hide();
1492
+ e.selectedStartDate = c.adjustedStart || d, e.selectedEndDate = c.adjustedEnd || l, e.invalidRangeStart = null, e.invalidRangeEnd = null, c.message || se(e), pe(e, `${e.formatDate(e.selectedStartDate)} - ${e.formatDate(e.selectedEndDate)}`);
1493
+ const p = { start: e.selectedStartDate, end: e.selectedEndDate };
1494
+ e.requiresApplyButton() ? e.pendingSelection = p : e.options.onSelect && e.options.onSelect(p), e.options.positioningMode === "floating" && e.shouldAutoClose() && e.hide();
1495
1495
  }
1496
- Ze(e), o && St(e, o), e.options.selectionMode === "range" && e.selectedEndDate && St(e, e.selectedEndDate);
1496
+ et(e), o && It(e, o), e.options.selectionMode === "range" && e.selectedEndDate && It(e, e.selectedEndDate);
1497
1497
  }
1498
- function Mn(e) {
1499
- e.monthDates[e.activeMonthIndex] = /* @__PURE__ */ new Date(), e.selectedDate = /* @__PURE__ */ new Date(), ue(e, e.formatDate(e.selectedDate)), e.requiresApplyButton() ? e.pendingSelection = e.selectedDate : e.options.onSelect && e.options.onSelect(e.selectedDate), e.renderCalendar(), e.options.positioningMode === "floating" && e.shouldAutoClose() && e.hide();
1498
+ function Cn(e) {
1499
+ e.monthDates[e.activeMonthIndex] = /* @__PURE__ */ new Date(), e.selectedDate = /* @__PURE__ */ new Date(), pe(e, e.formatDate(e.selectedDate)), e.requiresApplyButton() ? e.pendingSelection = e.selectedDate : e.options.onSelect && e.options.onSelect(e.selectedDate), e.renderCalendar(), e.options.positioningMode !== "inline" && e.shouldAutoClose() && e.hide();
1500
1500
  }
1501
- function Sn(e) {
1502
- e.selectedDate = null, e.selectedStartDate = null, e.selectedEndDate = null, e.selectedRanges = [], e.selectedDates = [], e.pendingSelection = null, e.dragPreviewStart = null, e.dragPreviewEnd = null, e.invalidRangeStart = null, e.invalidRangeEnd = null, e.focusedDayIndex = null, se(e), e.input && (e.input.value = ""), Ze(e);
1501
+ function En(e) {
1502
+ e.selectedDate = null, e.selectedStartDate = null, e.selectedEndDate = null, e.selectedRanges = [], e.selectedDates = [], e.pendingSelection = null, e.dragPreviewStart = null, e.dragPreviewEnd = null, e.invalidRangeStart = null, e.invalidRangeEnd = null, e.focusedDayIndex = null, se(e), e.input && (e.input.value = ""), et(e);
1503
1503
  }
1504
- function Cn(e) {
1504
+ function In(e) {
1505
1505
  if (e.input) {
1506
- const a = wn(e);
1506
+ const a = Mn(e);
1507
1507
  a !== null && (e.input.value = a);
1508
1508
  }
1509
- e.pendingSelection && (e.options.onSelect && e.options.onSelect(e.pendingSelection), e.pendingSelection = null), e.options.selectionMode === "range" ? (e.committedStartDate = e.selectedStartDate, e.committedEndDate = e.selectedEndDate) : e.options.selectionMode === "single" && (e.committedDate = e.selectedDate), e.options.positioningMode === "floating" && e.hide();
1509
+ e.pendingSelection && (e.options.onSelect && e.options.onSelect(e.pendingSelection), e.pendingSelection = null), e.options.selectionMode === "range" ? (e.committedStartDate = e.selectedStartDate, e.committedEndDate = e.selectedEndDate) : e.options.selectionMode === "single" && (e.committedDate = e.selectedDate), e.options.positioningMode !== "inline" && e.hide();
1510
1510
  }
1511
- function En(e) {
1511
+ function kn(e) {
1512
1512
  e.options.selectionMode === "range" && e.calendar.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--disabled)").forEach((t) => {
1513
1513
  t.addEventListener("mousedown", (n) => {
1514
1514
  const r = n, i = t, o = r.clientX, s = r.clientY, d = 5;
1515
- let c = !1, l = !1;
1516
- const u = i.classList.contains("drp-date-picker__day--range-start"), p = i.classList.contains("drp-date-picker__day--range-end");
1515
+ let l = !1, c = !1;
1516
+ const p = i.classList.contains("drp-date-picker__day--range-start"), u = i.classList.contains("drp-date-picker__day--range-end");
1517
1517
  let g;
1518
- u && e.selectedStartDate && e.selectedEndDate ? g = "start" : p && e.selectedStartDate && e.selectedEndDate ? g = "end" : g = "start";
1519
- const f = (v) => {
1520
- const m = Math.abs(v.clientX - o), x = Math.abs(v.clientY - s);
1521
- !c && (m > d || x > d) && (c = !0), c && !l && (l = !0, Kt(e, r, g, i), document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", h));
1518
+ p && e.selectedStartDate && e.selectedEndDate ? g = "start" : u && e.selectedStartDate && e.selectedEndDate ? g = "end" : g = "start";
1519
+ const m = (v) => {
1520
+ const f = Math.abs(v.clientX - o), x = Math.abs(v.clientY - s);
1521
+ !l && (f > d || x > d) && (l = !0), l && !c && (c = !0, Jt(e, r, g, i), document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", h));
1522
1522
  }, h = () => {
1523
- document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", h);
1523
+ document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", h);
1524
1524
  };
1525
- document.addEventListener("mousemove", f), document.addEventListener("mouseup", h);
1525
+ document.addEventListener("mousemove", m), document.addEventListener("mouseup", h);
1526
1526
  });
1527
1527
  });
1528
1528
  }
1529
- function Kt(e, a, t, n) {
1529
+ function Jt(e, a, t, n) {
1530
1530
  a.preventDefault(), a.stopPropagation(), e.isDragging = !0, e.draggingType = t, e.invalidRangeStart = null, e.invalidRangeEnd = null;
1531
1531
  const r = n, i = r.dataset.date;
1532
1532
  let o = null;
1533
1533
  if (i) {
1534
- const [s, d, c] = i.split("-").map(Number);
1535
- o = new Date(s, d - 1, c);
1534
+ const [s, d, l] = i.split("-").map(Number);
1535
+ o = new Date(s, d - 1, l);
1536
1536
  }
1537
1537
  !e.selectedStartDate && !e.selectedEndDate ? o && (e.originalStartDate = o, e.originalEndDate = null, e.draggingType = "end") : o && e.selectedStartDate && !e.selectedEndDate ? o.getTime() === e.selectedStartDate.getTime() ? (e.originalStartDate = new Date(e.selectedStartDate), e.originalEndDate = null) : (e.selectedStartDate = null, e.selectedEndDate = null, e.focusedDayIndex = null, e.calendar.querySelectorAll(".drp-date-picker__day--range-start, .drp-date-picker__day--range-end, .drp-date-picker__day--selected, .drp-date-picker__day--focused").forEach((d) => {
1538
1538
  d.classList.remove("drp-date-picker__day--range-start", "drp-date-picker__day--range-end", "drp-date-picker__day--selected", "drp-date-picker__day--focused");
1539
- }), e.originalStartDate = o, e.originalEndDate = null, e.draggingType = "end") : (e.selectedStartDate && (e.originalStartDate = new Date(e.selectedStartDate)), e.selectedEndDate && (e.originalEndDate = new Date(e.selectedEndDate))), r.classList.add("drp-date-picker__day--dragging"), re.debug(`Started dragging ${t} date`), e.onDragMoveBound = (s) => Gt(e, s), e.onDragEndBound = async (s) => await Xt(e), document.addEventListener("mousemove", e.onDragMoveBound), document.addEventListener("mouseup", e.onDragEndBound), document.body.style.cursor = "grabbing";
1539
+ }), e.originalStartDate = o, e.originalEndDate = null, e.draggingType = "end") : (e.selectedStartDate && (e.originalStartDate = new Date(e.selectedStartDate)), e.selectedEndDate && (e.originalEndDate = new Date(e.selectedEndDate))), r.classList.add("drp-date-picker__day--dragging"), re.debug(`Started dragging ${t} date`), e.onDragMoveBound = (s) => Qt(e, s), e.onDragEndBound = async (s) => await Zt(e), document.addEventListener("mousemove", e.onDragMoveBound), document.addEventListener("mouseup", e.onDragEndBound), document.body.style.cursor = "grabbing";
1540
1540
  }
1541
- function Gt(e, a) {
1541
+ function Qt(e, a) {
1542
1542
  if (!e.isDragging) return;
1543
1543
  let t = null;
1544
1544
  e.containerElement instanceof ShadowRoot && "elementsFromPoint" in e.containerElement ? t = e.containerElement.elementsFromPoint(a.clientX, a.clientY)[0] || null : t = document.elementFromPoint(a.clientX, a.clientY);
1545
1545
  const n = t == null ? void 0 : t.closest(".drp-date-picker__nav--prev"), r = t == null ? void 0 : t.closest(".drp-date-picker__nav--next");
1546
1546
  if (n || r) {
1547
1547
  if (!e.navInterval) {
1548
- const p = (n || r).closest(".drp-date-picker__month");
1549
- if (p && p instanceof HTMLElement) {
1550
- const g = parseInt(p.dataset.monthIndex || "0"), f = !!n;
1551
- f ? e.prevMonth(g) : e.nextMonth(g), e.navInterval = window.setInterval(() => {
1552
- f ? e.prevMonth(g) : e.nextMonth(g);
1548
+ const u = (n || r).closest(".drp-date-picker__month");
1549
+ if (u && u instanceof HTMLElement) {
1550
+ const g = parseInt(u.dataset.monthIndex || "0"), m = !!n;
1551
+ m ? e.prevMonth(g) : e.nextMonth(g), e.navInterval = window.setInterval(() => {
1552
+ m ? e.prevMonth(g) : e.nextMonth(g);
1553
1553
  }, 1e3);
1554
1554
  }
1555
1555
  }
@@ -1560,33 +1560,33 @@ function Gt(e, a) {
1560
1560
  if (!i || !i.classList.contains("drp-date-picker__day")) return;
1561
1561
  const o = i.dataset.date;
1562
1562
  if (!o) return;
1563
- const [s, d, c] = o.split("-").map(Number);
1564
- let l = new Date(s, d - 1, c);
1563
+ const [s, d, l] = o.split("-").map(Number);
1564
+ let c = new Date(s, d - 1, l);
1565
1565
  if (i.classList.contains("drp-date-picker__day--disabled")) {
1566
- const u = e.draggingType === "start" ? e.originalEndDate && l > e.originalEndDate ? "backward" : "forward" : e.originalStartDate && l < e.originalStartDate ? "forward" : "backward";
1567
- l = Pe(e, l, u);
1566
+ const p = e.draggingType === "start" ? e.originalEndDate && c > e.originalEndDate ? "backward" : "forward" : e.originalStartDate && c < e.originalStartDate ? "forward" : "backward";
1567
+ c = Oe(e, c, p);
1568
1568
  }
1569
- if (e.draggingType === "start" && e.originalEndDate ? (e.dragPreviewStart = l, e.dragPreviewEnd = e.originalEndDate, e.dragPreviewStart > e.dragPreviewEnd && ([e.dragPreviewStart, e.dragPreviewEnd] = [e.dragPreviewEnd, e.dragPreviewStart], e.draggingType = "end")) : e.originalStartDate && (e.dragPreviewStart = e.originalStartDate, e.dragPreviewEnd = l, e.dragPreviewEnd < e.dragPreviewStart && ([e.dragPreviewStart, e.dragPreviewEnd] = [e.dragPreviewEnd, e.dragPreviewStart], e.draggingType = "start")), e.dragPreviewStart && e.dragPreviewEnd) {
1570
- const u = e.options.disabledDatesHandling;
1571
- if (re.debug("onDragMove - mode:", u, "start:", e.dragPreviewStart, "end:", e.dragPreviewEnd), u === "prevent" && e.hasDisabledDatesInRange(e.dragPreviewStart, e.dragPreviewEnd)) {
1569
+ if (e.draggingType === "start" && e.originalEndDate ? (e.dragPreviewStart = c, e.dragPreviewEnd = e.originalEndDate, e.dragPreviewStart > e.dragPreviewEnd && ([e.dragPreviewStart, e.dragPreviewEnd] = [e.dragPreviewEnd, e.dragPreviewStart], e.draggingType = "end")) : e.originalStartDate && (e.dragPreviewStart = e.originalStartDate, e.dragPreviewEnd = c, e.dragPreviewEnd < e.dragPreviewStart && ([e.dragPreviewStart, e.dragPreviewEnd] = [e.dragPreviewEnd, e.dragPreviewStart], e.draggingType = "start")), e.dragPreviewStart && e.dragPreviewEnd) {
1570
+ const p = e.options.disabledDatesHandling;
1571
+ if (re.debug("onDragMove - mode:", p, "start:", e.dragPreviewStart, "end:", e.dragPreviewEnd), p === "prevent" && e.hasDisabledDatesInRange(e.dragPreviewStart, e.dragPreviewEnd)) {
1572
1572
  re.debug("PREVENT mode - range contains disabled dates, blocking preview update");
1573
1573
  return;
1574
1574
  }
1575
1575
  }
1576
1576
  e.updateDragPreview();
1577
1577
  }
1578
- async function Xt(e, a) {
1578
+ async function Zt(e, a) {
1579
1579
  if (!e.isDragging) return;
1580
1580
  re.debug("Ended dragging, finalizing selection");
1581
1581
  let t = !1;
1582
1582
  if (e.dragPreviewStart && e.dragPreviewEnd) {
1583
- let n = Pe(e, e.dragPreviewStart, "forward"), r = Pe(e, e.dragPreviewEnd, "backward");
1583
+ let n = Oe(e, e.dragPreviewStart, "forward"), r = Oe(e, e.dragPreviewEnd, "backward");
1584
1584
  n > r && ([n, r] = [r, n]), re.debug("onDragEnd - calling validateRangeAsync with:", n, r);
1585
- const i = await Wt(e, n, r);
1585
+ const i = await Xt(e, n, r);
1586
1586
  if (re.debug("onDragEnd - validation result:", i), !i.isValid)
1587
1587
  i.message && Y.warn("onDragEnd() - drag validation failed:", i.message), i.showInvalidRange && i.invalidStart && i.invalidEnd && (e.invalidRangeStart = i.invalidStart, e.invalidRangeEnd = i.invalidEnd, e.selectedStartDate = null, e.selectedEndDate = null), t = !1;
1588
1588
  else {
1589
- e.selectedStartDate = i.adjustedStart || n, e.selectedEndDate = i.adjustedEnd || r, t = !0, e.invalidRangeStart = null, e.invalidRangeEnd = null, i.message || se(e), ue(e, `${e.formatDate(e.selectedStartDate)} - ${e.formatDate(e.selectedEndDate)}`);
1589
+ e.selectedStartDate = i.adjustedStart || n, e.selectedEndDate = i.adjustedEnd || r, t = !0, e.invalidRangeStart = null, e.invalidRangeEnd = null, i.message || se(e), pe(e, `${e.formatDate(e.selectedStartDate)} - ${e.formatDate(e.selectedEndDate)}`);
1590
1590
  const o = { start: e.selectedStartDate, end: e.selectedEndDate };
1591
1591
  e.requiresApplyButton() ? e.pendingSelection = o : e.options.onSelect && e.options.onSelect(o);
1592
1592
  }
@@ -1601,21 +1601,21 @@ async function Xt(e, a) {
1601
1601
  e.activeMonthIndex = r;
1602
1602
  const o = e.calendar.querySelector(`.drp-date-picker__days[data-month-index="${r}"]`);
1603
1603
  if (o) {
1604
- const s = o.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)"), d = Array.from(s).findIndex((c) => {
1605
- const l = c.dataset.date;
1606
- if (!l) return !1;
1607
- const [u, p, g] = l.split("-").map(Number), f = new Date(u, p - 1, g);
1608
- return e.isSameDay(f, n);
1604
+ const s = o.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)"), d = Array.from(s).findIndex((l) => {
1605
+ const c = l.dataset.date;
1606
+ if (!c) return !1;
1607
+ const [p, u, g] = c.split("-").map(Number), m = new Date(p, u - 1, g);
1608
+ return e.isSameDay(m, n);
1609
1609
  });
1610
- d !== -1 && (e.focusedDayIndex = d, s.forEach((c) => c.classList.remove("drp-date-picker__day--focused")), s[d] && s[d].classList.add("drp-date-picker__day--focused"));
1610
+ d !== -1 && (e.focusedDayIndex = d, s.forEach((l) => l.classList.remove("drp-date-picker__day--focused")), s[d] && s[d].classList.add("drp-date-picker__day--focused"));
1611
1611
  }
1612
1612
  break;
1613
1613
  }
1614
1614
  }
1615
1615
  }
1616
- e.options.positioningMode === "floating" && e.shouldAutoClose() && t && e.hide();
1616
+ e.options.positioningMode !== "inline" && e.shouldAutoClose() && t && e.hide();
1617
1617
  }
1618
- function Pe(e, a, t = "forward") {
1618
+ function Oe(e, a, t = "forward") {
1619
1619
  let r = new Date(a);
1620
1620
  if (r.setHours(0, 0, 0, 0), !e.isDateDisabledInternal(r))
1621
1621
  return r;
@@ -1633,57 +1633,57 @@ function Pe(e, a, t = "forward") {
1633
1633
  }
1634
1634
  return a;
1635
1635
  }
1636
- function In(e, a) {
1636
+ function Rn(e, a) {
1637
1637
  const t = a.target, n = t.value, r = t.selectionStart || 0, i = e._previousInputValue || "", o = n.length < i.length, { separator: s } = e.formatInfo;
1638
1638
  if (e.options.selectionMode === "range") {
1639
- const d = n.replace(new RegExp(`[^0-9${s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}to ]`, "gi"), ""), c = Jt(e, d);
1640
- if (c !== n) {
1641
- t.value = c;
1642
- let l = r;
1639
+ const d = n.replace(new RegExp(`[^0-9${s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}to ]`, "gi"), ""), l = ea(e, d);
1640
+ if (l !== n) {
1641
+ t.value = l;
1642
+ let c = r;
1643
1643
  if (o)
1644
- l = r;
1645
- else if (c.length > n.length)
1646
- if (c.includes(" to ") && !n.includes(" to ")) {
1647
- const u = c.indexOf(" to ");
1648
- r >= u && r <= u + 4 ? l = u + 4 : l = r + (c.length - n.length);
1644
+ c = r;
1645
+ else if (l.length > n.length)
1646
+ if (l.includes(" to ") && !n.includes(" to ")) {
1647
+ const p = l.indexOf(" to ");
1648
+ r >= p && r <= p + 4 ? c = p + 4 : c = r + (l.length - n.length);
1649
1649
  } else
1650
- l = r + (c.length - n.length);
1651
- t.setSelectionRange(l, l);
1650
+ c = r + (l.length - n.length);
1651
+ t.setSelectionRange(c, c);
1652
1652
  }
1653
1653
  } else {
1654
- const d = n.replace(new RegExp(`[^0-9${s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}]`, "g"), ""), c = me(e, d);
1655
- if (c !== n) {
1656
- t.value = c;
1657
- let l = r;
1654
+ const d = n.replace(new RegExp(`[^0-9${s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}]`, "g"), ""), l = me(e, d);
1655
+ if (l !== n) {
1656
+ t.value = l;
1657
+ let c = r;
1658
1658
  if (o)
1659
- l = r;
1660
- else if (c.length > n.length && c[r] === s)
1661
- l = r + 1;
1662
- else if (c.length > n.length) {
1663
- const u = (n.substring(0, r).match(new RegExp(s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g")) || []).length, g = (c.substring(0, r).match(new RegExp(s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g")) || []).length - u;
1664
- l = r + g;
1659
+ c = r;
1660
+ else if (l.length > n.length && l[r] === s)
1661
+ c = r + 1;
1662
+ else if (l.length > n.length) {
1663
+ const p = (n.substring(0, r).match(new RegExp(s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g")) || []).length, g = (l.substring(0, r).match(new RegExp(s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g")) || []).length - p;
1664
+ c = r + g;
1665
1665
  }
1666
- t.setSelectionRange(l, l);
1666
+ t.setSelectionRange(c, c);
1667
1667
  }
1668
1668
  }
1669
- e._previousInputValue = t.value, Ue(e);
1669
+ e._previousInputValue = t.value, qe(e);
1670
1670
  }
1671
1671
  function me(e, a) {
1672
- var l, u, p;
1672
+ var c, p, u;
1673
1673
  const { separator: t, parts: n, maxLength: r } = e.formatInfo, i = a.replace(new RegExp(t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "g"), ""), o = n.year ? n.year.length : 4, s = [
1674
- { type: "year", pos: ((l = n.year) == null ? void 0 : l.index) ?? 0, length: o },
1675
- { type: "month", pos: ((u = n.month) == null ? void 0 : u.index) ?? 1, length: 2 },
1676
- { type: "day", pos: ((p = n.day) == null ? void 0 : p.index) ?? 2, length: 2 }
1677
- ].sort((g, f) => g.pos - f.pos);
1678
- let d = "", c = 0;
1674
+ { type: "year", pos: ((c = n.year) == null ? void 0 : c.index) ?? 0, length: o },
1675
+ { type: "month", pos: ((p = n.month) == null ? void 0 : p.index) ?? 1, length: 2 },
1676
+ { type: "day", pos: ((u = n.day) == null ? void 0 : u.index) ?? 2, length: 2 }
1677
+ ].sort((g, m) => g.pos - m.pos);
1678
+ let d = "", l = 0;
1679
1679
  for (let g = 0; g < s.length; g++) {
1680
- const f = s[g], h = i.substring(c, c + f.length);
1680
+ const m = s[g], h = i.substring(l, l + m.length);
1681
1681
  if (!h) break;
1682
- d += h, c += h.length, g < s.length - 1 && h.length === f.length && (d += t);
1682
+ d += h, l += h.length, g < s.length - 1 && h.length === m.length && (d += t);
1683
1683
  }
1684
1684
  return d.substring(0, r);
1685
1685
  }
1686
- function Jt(e, a) {
1686
+ function ea(e, a) {
1687
1687
  const { separator: t, maxLength: n } = e.formatInfo, r = " to ";
1688
1688
  let i = "", o = "";
1689
1689
  if (a.includes(r)) {
@@ -1701,7 +1701,7 @@ function Jt(e, a) {
1701
1701
  else
1702
1702
  return s;
1703
1703
  }
1704
- function Rn(e, a) {
1704
+ function An(e, a) {
1705
1705
  const { key: t, ctrlKey: n, metaKey: r } = a, { separator: i } = e.formatInfo;
1706
1706
  if (e.calendar.classList.contains("drp-date-picker--visible") && ["ArrowUp", "ArrowDown", "Home", "End", "PageUp", "PageDown"].includes(t)) {
1707
1707
  a.preventDefault();
@@ -1721,45 +1721,45 @@ function Rn(e, a) {
1721
1721
  "End"
1722
1722
  ].includes(t) || n || r)) {
1723
1723
  if (t === i) {
1724
- const s = a.target, d = s.selectionStart || 0, c = s.value;
1725
- let l = 0;
1726
- for (let p = d - 1; p >= 0; p--)
1727
- if (c[p] === i || c[p] === " ") {
1728
- l = p + 1;
1724
+ const s = a.target, d = s.selectionStart || 0, l = s.value;
1725
+ let c = 0;
1726
+ for (let u = d - 1; u >= 0; u--)
1727
+ if (l[u] === i || l[u] === " ") {
1728
+ c = u + 1;
1729
1729
  break;
1730
1730
  }
1731
- const u = c.substring(l, d);
1732
- if (/^\d$/.test(u)) {
1731
+ const p = l.substring(c, d);
1732
+ if (/^\d$/.test(p)) {
1733
1733
  a.preventDefault();
1734
- const p = c.substring(0, l) + "0" + u + i + c.substring(d);
1735
- s.value = p;
1736
- const g = l + 2 + i.length;
1737
- s.setSelectionRange(g, g), e._previousInputValue = p, s.dispatchEvent(new Event("input", { bubbles: !0 }));
1734
+ const u = l.substring(0, c) + "0" + p + i + l.substring(d);
1735
+ s.value = u;
1736
+ const g = c + 2 + i.length;
1737
+ s.setSelectionRange(g, g), e._previousInputValue = u, s.dispatchEvent(new Event("input", { bubbles: !0 }));
1738
1738
  return;
1739
1739
  }
1740
1740
  }
1741
1741
  e.options.selectionMode === "range" ? !/^\d$/.test(t) && t !== i && t !== " " && t.toLowerCase() !== "t" && t.toLowerCase() !== "o" && a.preventDefault() : !/^\d$/.test(t) && t !== i && a.preventDefault();
1742
1742
  }
1743
1743
  }
1744
- function An(e, a) {
1745
- var p;
1744
+ function Tn(e, a) {
1745
+ var u;
1746
1746
  a.preventDefault();
1747
- const t = ((p = a.clipboardData) == null ? void 0 : p.getData("text")) || "", { separator: n } = e.formatInfo, r = t.replace(new RegExp(`[^0-9${n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}]`, "g"), ""), i = me(e, r), o = a.target, s = o.selectionStart || 0, d = o.selectionEnd || 0, c = o.value, l = c.substring(0, s) + i + c.substring(d);
1748
- o.value = me(e, l);
1749
- const u = s + i.length;
1750
- o.setSelectionRange(u, u), o.dispatchEvent(new Event("input", { bubbles: !0 })), Ue(e);
1747
+ const t = ((u = a.clipboardData) == null ? void 0 : u.getData("text")) || "", { separator: n } = e.formatInfo, r = t.replace(new RegExp(`[^0-9${n.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}]`, "g"), ""), i = me(e, r), o = a.target, s = o.selectionStart || 0, d = o.selectionEnd || 0, l = o.value, c = l.substring(0, s) + i + l.substring(d);
1748
+ o.value = me(e, c);
1749
+ const p = s + i.length;
1750
+ o.setSelectionRange(p, p), o.dispatchEvent(new Event("input", { bubbles: !0 })), qe(e);
1751
1751
  }
1752
- function Ue(e) {
1752
+ function qe(e) {
1753
1753
  if (!e.input) return;
1754
1754
  const a = e.input.value;
1755
- if (pe.debug("updateCalendarFromInput - value:", a), !a) {
1755
+ if (ue.debug("updateCalendarFromInput - value:", a), !a) {
1756
1756
  e.clearSelection(), e.renderCalendar();
1757
1757
  return;
1758
1758
  }
1759
1759
  const { separator: t, parts: n, maxLength: r } = e.formatInfo;
1760
- if (pe.debug("Format info:", { separator: t, parts: n, maxLength: r }), e.options.selectionMode === "range" && a.includes(" to ")) {
1760
+ if (ue.debug("Format info:", { separator: t, parts: n, maxLength: r }), e.options.selectionMode === "range" && a.includes(" to ")) {
1761
1761
  const o = a.split(" to "), s = o[0], d = o[1];
1762
- pe.debug("Range parts - start:", s, "end:", d), Ae(e, s, "start"), d ? Ae(e, d, "end") : e.selectedEndDate = null;
1762
+ ue.debug("Range parts - start:", s, "end:", d), Ae(e, s, "start"), d ? Ae(e, d, "end") : e.selectedEndDate = null;
1763
1763
  return;
1764
1764
  }
1765
1765
  const i = e.options.selectionMode === "range" ? "start" : "single";
@@ -1767,107 +1767,139 @@ function Ue(e) {
1767
1767
  }
1768
1768
  function Ae(e, a, t = "single") {
1769
1769
  const { separator: n, parts: r, maxLength: i } = e.formatInfo, o = a.split(n);
1770
- let s = null, d = null, c = null;
1771
- if (o.forEach((l, u) => {
1772
- if (l) {
1773
- if (r.year && r.year.index === u) {
1774
- const p = parseInt(l, 10);
1775
- r.year.length === 4 && l.length === 4 ? s = p : r.year.length === 2 && l.length === 2 && (s = p < 100 ? p + 2e3 : p);
1776
- } else if (r.month && r.month.index === u) {
1777
- const p = parseInt(l, 10);
1778
- l.length === 2 && p >= 1 && p <= 12 && (d = p);
1779
- } else if (r.day && r.day.index === u) {
1780
- const p = parseInt(l, 10);
1781
- l.length === 2 && p >= 1 && p <= 31 && (c = p);
1770
+ let s = null, d = null, l = null;
1771
+ if (o.forEach((c, p) => {
1772
+ if (c) {
1773
+ if (r.year && r.year.index === p) {
1774
+ const u = parseInt(c, 10);
1775
+ r.year.length === 4 && c.length === 4 ? s = u : r.year.length === 2 && c.length === 2 && (s = u < 100 ? u + 2e3 : u);
1776
+ } else if (r.month && r.month.index === p) {
1777
+ const u = parseInt(c, 10);
1778
+ c.length === 2 && u >= 1 && u <= 12 && (d = u);
1779
+ } else if (r.day && r.day.index === p) {
1780
+ const u = parseInt(c, 10);
1781
+ c.length === 2 && u >= 1 && u <= 31 && (l = u);
1782
1782
  }
1783
1783
  }
1784
- }), pe.debug(`parseAndUpdateSingleDate(${t}) - year:`, s, "month:", d, "day:", c), s !== null || d !== null) {
1785
- const l = s || (/* @__PURE__ */ new Date()).getFullYear(), u = d !== null ? d - 1 : (/* @__PURE__ */ new Date()).getMonth();
1784
+ }), ue.debug(`parseAndUpdateSingleDate(${t}) - year:`, s, "month:", d, "day:", l), s !== null || d !== null) {
1785
+ const c = s || (/* @__PURE__ */ new Date()).getFullYear(), p = d !== null ? d - 1 : (/* @__PURE__ */ new Date()).getMonth();
1786
1786
  if (e.options.selectionMode === "single") {
1787
1787
  e.monthDates = [];
1788
- for (let p = 0; p < e.options.visibleMonthsCount; p++) {
1789
- const g = new Date(l, u + p, 1);
1788
+ for (let u = 0; u < e.options.visibleMonthsCount; u++) {
1789
+ const g = new Date(c, p + u, 1);
1790
1790
  e.monthDates.push(g);
1791
1791
  }
1792
1792
  } else if (e.options.selectionMode === "range" && (t === "start" || !e.selectedStartDate)) {
1793
- if (e.displayMonths = [
1794
- { month: u, year: l }
1795
- ], e.options.visibleMonthsCount > 1) {
1796
- const p = new Date(l, u + 1, 1);
1793
+ e.displayMonths = [], e.monthDates = [];
1794
+ for (let u = 0; u < e.options.visibleMonthsCount; u++) {
1795
+ const g = new Date(c, p + u, 1);
1797
1796
  e.displayMonths.push({
1798
- month: p.getMonth(),
1799
- year: p.getFullYear()
1800
- });
1801
- }
1802
- e.monthDates = [];
1803
- for (let p = 0; p < e.options.visibleMonthsCount; p++) {
1804
- const g = e.displayMonths[p], f = new Date(g.year, g.month, 1);
1805
- e.monthDates.push(f);
1797
+ month: g.getMonth(),
1798
+ year: g.getFullYear()
1799
+ }), e.monthDates.push(g);
1806
1800
  }
1807
1801
  }
1808
1802
  e.renderCalendar();
1809
1803
  }
1810
- if (s !== null && d !== null && c !== null) {
1811
- const l = new Date(s, d - 1, c);
1812
- l.getMonth() === d - 1 && (t === "single" ? e.selectedDate = l : t === "start" ? e.selectedStartDate = l : t === "end" && (e.selectedEndDate = l), e.renderCalendar(), e.options.selectionMode === "range" && e.updateSummary(), pe.debug(`Set ${t} date:`, l));
1804
+ if (s !== null && d !== null && l !== null) {
1805
+ const c = new Date(s, d - 1, l);
1806
+ c.getMonth() === d - 1 && (t === "single" ? e.selectedDate = c : t === "start" ? e.selectedStartDate = c : t === "end" && (e.selectedEndDate = c), e.renderCalendar(), e.options.selectionMode === "range" && e.updateSummary(), ue.debug(`Set ${t} date:`, c));
1813
1807
  }
1814
1808
  }
1815
- let Te = null;
1816
- function Qt(e) {
1817
- e.options.positioningMode !== "inline" && (J.debug("show() - adding visible class"), e.requiresApplyButton() && e.input && (e.originalInputValue = e.input.value, J.debug("show() - stored original input value:", e.originalInputValue)), Ue(e), e.isFirstRender && (e.renderCalendar(), e.isFirstRender = !1, ea(e)), e.calendar.classList.add("drp-date-picker--visible"), e.setCalendarActive(), J.debug("show() - calendar classes:", e.calendar.className), et(e), Te = qt(e.input, e.calendar, () => {
1818
- et(e);
1809
+ let Te = null, Se = 0, tt = null;
1810
+ function Ln() {
1811
+ Se === 0 && (tt = document.body.style.overflow, document.body.style.overflow = "hidden"), Se++;
1812
+ }
1813
+ function $n() {
1814
+ Se = Math.max(0, Se - 1), Se === 0 && (document.body.style.overflow = tt ?? "", tt = null);
1815
+ }
1816
+ function zn(e) {
1817
+ if (e.modalBackdrop) return e.modalBackdrop;
1818
+ const a = document.createElement("div");
1819
+ return a.className = "drp-date-picker__backdrop", a.addEventListener("click", () => {
1820
+ X.debug("Backdrop clicked - closing modal"), yt(e);
1821
+ }), e.containerElement.appendChild(a), e.modalBackdrop = a, a;
1822
+ }
1823
+ function ta(e) {
1824
+ if (e.options.positioningMode === "inline" || e.calendar.classList.contains("drp-date-picker--visible"))
1825
+ return;
1826
+ X.debug("show() - adding visible class"), e.requiresApplyButton() && e.input && (e.originalInputValue = e.input.value, X.debug("show() - stored original input value:", e.originalInputValue)), qe(e), e.isFirstRender && (e.renderCalendar(), e.isFirstRender = !1, aa(e));
1827
+ const a = e.options.positioningMode === "modal";
1828
+ a && (zn(e).classList.add("drp-date-picker__backdrop--visible"), Ln(), e.input && document.activeElement === e.input ? (e.modalRestoreFocus = !0, e.input.blur()) : e.modalRestoreFocus = !1, e.calendar.classList.add("drp-date-picker--modal")), e.calendar.classList.add("drp-date-picker--visible"), e.setCalendarActive(), X.debug("show() - calendar classes:", e.calendar.className), a ? requestAnimationFrame(() => {
1829
+ const t = e.calendar, n = getComputedStyle(t), r = t.getBoundingClientRect(), i = t.querySelector(".drp-date-picker__months, .drp-date-picker__months--grid"), o = i == null ? void 0 : i.getBoundingClientRect(), s = t.querySelectorAll(".drp-date-picker__month"), d = Array.from(s).filter((l) => getComputedStyle(l).display !== "none");
1830
+ console.warn("[drp modal-debug] show() — modal sizing report", {
1831
+ viewport: `${window.innerWidth}×${window.innerHeight}`,
1832
+ modalCssWidth: n.width,
1833
+ modalCssMaxWidth: n.maxWidth,
1834
+ modalCssMinWidth: n.minWidth,
1835
+ modalRectWidth: r.width,
1836
+ modalRectHeight: r.height,
1837
+ monthsContainerClass: i == null ? void 0 : i.className,
1838
+ monthsContainerWidth: o == null ? void 0 : o.width,
1839
+ monthsContainerCssWidth: i ? getComputedStyle(i).width : null,
1840
+ totalMonthEls: s.length,
1841
+ visibleMonthEls: d.length,
1842
+ firstMonthCssMinWidth: s[0] ? getComputedStyle(s[0]).minWidth : null,
1843
+ firstMonthRectWidth: s[0] ? s[0].getBoundingClientRect().width : null,
1844
+ containerQueryActive: t.matches(":is(.drp-date-picker--modal)") && r.width <= 600,
1845
+ mediaQueryTier: window.matchMedia("(max-width: 480px)").matches ? "xs" : window.matchMedia("(min-width: 481px) and (max-width: 640px)").matches ? "sm" : window.matchMedia("(min-width: 641px) and (max-width: 768px)").matches ? "md" : window.matchMedia("(min-width: 769px) and (max-width: 1024px)").matches ? "lg" : window.matchMedia("(min-width: 1025px)").matches ? "xl" : "?"
1846
+ });
1847
+ }) : (at(e), Te = Kt(e.input, e.calendar, () => {
1848
+ at(e);
1819
1849
  }));
1820
1850
  }
1821
- function Zt(e) {
1822
- if (e.options.positioningMode !== "inline" && e.calendar.classList.contains("drp-date-picker--visible")) {
1823
- Te && (Te(), Te = null), e.calendar.classList.remove("drp-date-picker--visible"), e.isCalendarActive = !1, e.requiresApplyButton() && e.pendingSelection && e.input && (J.debug("hide() - restoring original input value:", e.originalInputValue), e.originalInputValue !== null && (e.input.value = e.originalInputValue), e.options.selectionMode === "range" ? (e.selectedStartDate = e.committedStartDate, e.selectedEndDate = e.committedEndDate) : e.options.selectionMode === "single" && (e.selectedDate = e.committedDate), J.debug("hide() - reverted selection state")), e.pendingSelection = null;
1824
- for (let a = 0; a < e.showingRollingSelector.length; a++)
1825
- e.showingRollingSelector[a] = !1;
1826
- e.isFirstRender || e.renderCalendar(), e.calendar.style.maxHeight = "", e.calendar.style.overflowY = "";
1827
- }
1851
+ function yt(e) {
1852
+ if (e.options.positioningMode === "inline" || !e.calendar.classList.contains("drp-date-picker--visible"))
1853
+ return;
1854
+ const a = e.options.positioningMode === "modal";
1855
+ Te && (Te(), Te = null), a && (e.modalBackdrop && e.modalBackdrop.classList.remove("drp-date-picker__backdrop--visible"), $n(), e.calendar.classList.remove("drp-date-picker--modal"), e.modalRestoreFocus && e.input && e.input.focus(), e.modalRestoreFocus = !1), e.calendar.classList.remove("drp-date-picker--visible"), e.isCalendarActive = !1, e.requiresApplyButton() && e.pendingSelection && e.input && (X.debug("hide() - restoring original input value:", e.originalInputValue), e.originalInputValue !== null && (e.input.value = e.originalInputValue), e.options.selectionMode === "range" ? (e.selectedStartDate = e.committedStartDate, e.selectedEndDate = e.committedEndDate) : e.options.selectionMode === "single" && (e.selectedDate = e.committedDate), X.debug("hide() - reverted selection state")), e.pendingSelection = null;
1856
+ for (let t = 0; t < e.showingRollingSelector.length; t++)
1857
+ e.showingRollingSelector[t] = !1;
1858
+ e.isFirstRender || e.renderCalendar(), e.calendar.style.maxHeight = "", e.calendar.style.overflowY = "";
1828
1859
  }
1829
- function Tn(e) {
1830
- e.calendar.classList.contains("drp-date-picker--visible") ? Zt(e) : Qt(e);
1860
+ function Nn(e) {
1861
+ e.calendar.classList.contains("drp-date-picker--visible") ? yt(e) : ta(e);
1831
1862
  }
1832
- async function et(e) {
1833
- if (!e.input)
1863
+ async function at(e) {
1864
+ if (!e.input || e.options.positioningMode === "modal")
1834
1865
  return;
1835
- const a = await ft(e.input, e.calendar, {
1866
+ const a = await bt(e.input, e.calendar, {
1836
1867
  placement: e.options.calendarPlacement || "bottom-start",
1837
1868
  middleware: [
1838
- pt(8),
1839
- ht({ padding: 8 }),
1840
- gt({ padding: 8 }),
1869
+ ht(8),
1870
+ mt({ padding: 8 }),
1871
+ ft({ padding: 8 }),
1841
1872
  // Cap calendar height to whatever the viewport allows on the chosen side.
1842
- // Without this, a tall calendar (e.g., 2×3 grid layout) would extend past
1843
- // the viewport edge instead of becoming scrollable.
1844
- Dn({
1873
+ // Scrolling is handled by the inner months container via the flex-column
1874
+ // layout in `_base.css` — the calendar itself uses `overflow: hidden` so
1875
+ // header and action bar stay pinned while the months area scrolls.
1876
+ wn({
1845
1877
  padding: 8,
1846
1878
  apply({ availableHeight: t, elements: n }) {
1847
- n.floating.style.maxHeight = `${Math.max(0, t)}px`, n.floating.style.overflowY = "auto";
1879
+ n.floating.style.maxHeight = `${Math.max(0, t)}px`;
1848
1880
  }
1849
1881
  })
1850
1882
  ]
1851
1883
  });
1852
- J.debug("position() - x:", a.x, "y:", a.y, "placement:", a.placement), e.calendar.style.left = `${a.x}px`, e.calendar.style.top = `${a.y}px`;
1884
+ X.debug("position() - x:", a.x, "y:", a.y, "placement:", a.placement), e.calendar.style.left = `${a.x}px`, e.calendar.style.top = `${a.y}px`;
1853
1885
  }
1854
- async function kn(e, a, t) {
1886
+ async function Pn(e, a, t) {
1855
1887
  if (!e.tooltip || !e.tooltipArrow) return;
1856
1888
  e.currentTooltipTarget = a, e.tooltip.innerHTML = t, e.tooltip.appendChild(e.tooltipArrow), e.tooltip.classList.add("drp-date-picker__tooltip--visible");
1857
- const { x: n, y: r, placement: i, middlewareData: o } = await ft(a, e.tooltip, {
1889
+ const { x: n, y: r, placement: i, middlewareData: o } = await bt(a, e.tooltip, {
1858
1890
  placement: "top",
1859
1891
  middleware: [
1860
- pt(6),
1861
- ht(),
1862
- gt({ padding: 5 }),
1863
- _n({ element: e.tooltipArrow })
1892
+ ht(6),
1893
+ mt(),
1894
+ ft({ padding: 5 }),
1895
+ xn({ element: e.tooltipArrow })
1864
1896
  ]
1865
1897
  });
1866
1898
  if (Object.assign(e.tooltip.style, {
1867
1899
  left: `${n}px`,
1868
1900
  top: `${r}px`
1869
1901
  }), o.arrow) {
1870
- const { x: s, y: d } = o.arrow, c = {
1902
+ const { x: s, y: d } = o.arrow, l = {
1871
1903
  top: "bottom",
1872
1904
  right: "left",
1873
1905
  bottom: "top",
@@ -1878,14 +1910,14 @@ async function kn(e, a, t) {
1878
1910
  top: d != null ? `${d}px` : "",
1879
1911
  right: "",
1880
1912
  bottom: "",
1881
- [c]: "-4px"
1913
+ [l]: "-4px"
1882
1914
  });
1883
1915
  }
1884
1916
  }
1885
- function Ln(e) {
1917
+ function On(e) {
1886
1918
  e.tooltip && (e.tooltip.classList.remove("drp-date-picker__tooltip--visible"), e.currentTooltipTarget = void 0);
1887
1919
  }
1888
- function Oe(e) {
1920
+ function Fe(e) {
1889
1921
  if (e.loadingOverlay) return;
1890
1922
  const a = document.createElement("div");
1891
1923
  a.className = "drp-date-picker__loading-overlay", a.innerHTML = `
@@ -1895,9 +1927,9 @@ function Oe(e) {
1895
1927
  function ie(e) {
1896
1928
  e.loadingOverlay && (e.loadingOverlay.remove(), e.loadingOverlay = void 0);
1897
1929
  }
1898
- function tt(e, a, t, n) {
1930
+ function nt(e, a, t, n) {
1899
1931
  if (!e.messageElement) {
1900
- J.warn("showMessage() - messageElement is null/undefined");
1932
+ X.warn("showMessage() - messageElement is null/undefined");
1901
1933
  return;
1902
1934
  }
1903
1935
  e.messageAutoHideTimeout && (clearTimeout(e.messageAutoHideTimeout), e.messageAutoHideTimeout = void 0), e.messageElement.classList.remove(
@@ -1915,7 +1947,7 @@ function tt(e, a, t, n) {
1915
1947
  function se(e) {
1916
1948
  e.messageElement && (e.messageAutoHideTimeout && (clearTimeout(e.messageAutoHideTimeout), e.messageAutoHideTimeout = void 0), e.messageElement.classList.remove("drp-date-picker__message--visible"));
1917
1949
  }
1918
- function X(e, a, t) {
1950
+ function J(e, a, t) {
1919
1951
  for (let n = 1; n <= 31; n++) {
1920
1952
  const r = new Date(a, t, n);
1921
1953
  if (r.getMonth() === t && !e.isDateDisabledInternal(r))
@@ -1923,7 +1955,7 @@ function X(e, a, t) {
1923
1955
  }
1924
1956
  return !1;
1925
1957
  }
1926
- async function ea(e) {
1958
+ async function aa(e) {
1927
1959
  var a, t, n, r;
1928
1960
  if (e.options.beforeMonthChangedCallback) {
1929
1961
  if (e.isMonthChanging) {
@@ -1933,12 +1965,12 @@ async function ea(e) {
1933
1965
  try {
1934
1966
  if (e.isMonthChanging = !0, e.options.unifiedNavigation) {
1935
1967
  const i = e.options.unifiedNavigationAnchorIndex ?? 0, o = e.monthDates[i], s = o.getFullYear(), d = o.getMonth();
1936
- let c = 1 / 0, l = 1 / 0, u = -1 / 0, p = -1 / 0;
1968
+ let l = 1 / 0, c = 1 / 0, p = -1 / 0, u = -1 / 0;
1937
1969
  for (let M = 0; M < e.monthDates.length; M++) {
1938
- const C = e.monthDates[M], I = C.getFullYear(), T = C.getMonth();
1939
- (I < c || I === c && T < l) && (c = I, l = T), (I > u || I === u && T > p) && (u = I, p = T);
1970
+ const C = e.monthDates[M], I = C.getFullYear(), A = C.getMonth();
1971
+ (I < l || I === l && A < c) && (l = I, c = A), (I > p || I === p && A > u) && (p = I, u = A);
1940
1972
  }
1941
- const h = (new Date(c, l, 1).getDay() - e.weekStartDay + 7) % 7, v = new Date(c, l, 1 - h), m = new Date(u, p + 1, 0).getDate(), E = new Date(u, p, m).getDay(), S = (e.weekStartDay + 6 - E) % 7, D = new Date(u, p, m + S), _ = {
1973
+ const h = (new Date(l, c, 1).getDay() - e.weekStartDay + 7) % 7, v = new Date(l, c, 1 - h), f = new Date(p, u + 1, 0).getDate(), E = new Date(p, u, f).getDay(), S = (e.weekStartDay + 6 - E) % 7, D = new Date(p, u, f + S), _ = {
1942
1974
  year: s,
1943
1975
  month: d,
1944
1976
  monthIndex: i,
@@ -1946,27 +1978,27 @@ async function ea(e) {
1946
1978
  lastVisibleDate: D
1947
1979
  };
1948
1980
  w.debug(`handleInitialMonthLoad() [UNIFIED] - calling callback for ${s}-${d + 1}, range: ${v.toISOString().split("T")[0]} to ${D.toISOString().split("T")[0]}`);
1949
- const R = e.options.beforeMonthChangedCallback(_), k = R instanceof Promise;
1950
- k && Oe(e);
1951
- const y = await Promise.resolve(R);
1952
- k && ie(e), w.debug(`handleInitialMonthLoad() [UNIFIED] - callback completed, metadata items: ${((a = y.metadata) == null ? void 0 : a.size) || 0}, monthHeaders: ${((t = y.monthHeaders) == null ? void 0 : t.size) || 0}`), y.metadata && (e.bulkMetadataCache = y.metadata, w.debug(`handleInitialMonthLoad() [UNIFIED] - bulk metadata cache updated with ${y.metadata.size} entries`)), y.monthHeaders && (e.monthHeadersCache = y.monthHeaders, w.debug(`handleInitialMonthLoad() [UNIFIED] - month headers cache updated with ${y.monthHeaders.size} entries`)), (y.metadata || y.monthHeaders) && e.renderCalendar();
1981
+ const k = e.options.beforeMonthChangedCallback(_), L = k instanceof Promise;
1982
+ L && Fe(e);
1983
+ const y = await Promise.resolve(k);
1984
+ L && ie(e), w.debug(`handleInitialMonthLoad() [UNIFIED] - callback completed, metadata items: ${((a = y.metadata) == null ? void 0 : a.size) || 0}, monthHeaders: ${((t = y.monthHeaders) == null ? void 0 : t.size) || 0}`), y.metadata && (e.bulkMetadataCache = y.metadata, w.debug(`handleInitialMonthLoad() [UNIFIED] - bulk metadata cache updated with ${y.metadata.size} entries`)), y.monthHeaders && (e.monthHeadersCache = y.monthHeaders, w.debug(`handleInitialMonthLoad() [UNIFIED] - month headers cache updated with ${y.monthHeaders.size} entries`)), (y.metadata || y.monthHeaders) && e.renderCalendar();
1953
1985
  } else {
1954
1986
  w.debug(`handleInitialMonthLoad() [NON-UNIFIED] - calling callback for ${e.monthDates.length} months`);
1955
1987
  const i = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
1956
1988
  let s = !1;
1957
1989
  for (let d = 0; d < e.monthDates.length; d++) {
1958
- const c = e.monthDates[d], l = c.getFullYear(), u = c.getMonth(), f = (new Date(l, u, 1).getDay() - e.weekStartDay + 7) % 7, h = new Date(l, u, 1 - f), v = new Date(h);
1990
+ const l = e.monthDates[d], c = l.getFullYear(), p = l.getMonth(), m = (new Date(c, p, 1).getDay() - e.weekStartDay + 7) % 7, h = new Date(c, p, 1 - m), v = new Date(h);
1959
1991
  v.setDate(h.getDate() + 41);
1960
- const m = {
1961
- year: l,
1962
- month: u,
1992
+ const f = {
1993
+ year: c,
1994
+ month: p,
1963
1995
  monthIndex: d,
1964
1996
  firstVisibleDate: h,
1965
1997
  lastVisibleDate: v
1966
1998
  };
1967
- w.debug(`handleInitialMonthLoad() [NON-UNIFIED] Col${d} - calling callback for ${l}-${u + 1}, range: ${h.toISOString().split("T")[0]} to ${v.toISOString().split("T")[0]}`);
1968
- const x = e.options.beforeMonthChangedCallback(m);
1969
- x instanceof Promise && !s && (s = !0, Oe(e));
1999
+ w.debug(`handleInitialMonthLoad() [NON-UNIFIED] Col${d} - calling callback for ${c}-${p + 1}, range: ${h.toISOString().split("T")[0]} to ${v.toISOString().split("T")[0]}`);
2000
+ const x = e.options.beforeMonthChangedCallback(f);
2001
+ x instanceof Promise && !s && (s = !0, Fe(e));
1970
2002
  const S = await Promise.resolve(x);
1971
2003
  w.debug(`handleInitialMonthLoad() [NON-UNIFIED] Col${d} - callback completed, metadata items: ${((n = S.metadata) == null ? void 0 : n.size) || 0}, monthHeaders: ${((r = S.monthHeaders) == null ? void 0 : r.size) || 0}`), S.metadata && S.metadata.forEach((D, _) => {
1972
2004
  i.set(_, D);
@@ -1993,18 +2025,18 @@ async function de(e, a, t, n) {
1993
2025
  e.isMonthChanging = !0;
1994
2026
  let o, s;
1995
2027
  if (e.options.unifiedNavigation) {
1996
- let p = 1 / 0, g = 1 / 0, f = -1 / 0, h = -1 / 0;
1997
- for (let R = 0; R < e.monthDates.length; R++) {
1998
- const k = e.monthDates[R], y = k.getFullYear(), M = k.getMonth();
1999
- (y < p || y === p && M < g) && (p = y, g = M), (y > f || y === f && M > h) && (f = y, h = M);
2028
+ let u = 1 / 0, g = 1 / 0, m = -1 / 0, h = -1 / 0;
2029
+ for (let k = 0; k < e.monthDates.length; k++) {
2030
+ const L = e.monthDates[k], y = L.getFullYear(), M = L.getMonth();
2031
+ (y < u || y === u && M < g) && (u = y, g = M), (y > m || y === m && M > h) && (m = y, h = M);
2000
2032
  }
2001
- const x = (new Date(p, g, 1).getDay() - e.weekStartDay + 7) % 7;
2002
- o = new Date(p, g, 1 - x);
2003
- const E = new Date(f, h + 1, 0).getDate(), D = new Date(f, h, E).getDay(), _ = (e.weekStartDay + 6 - D) % 7;
2004
- s = new Date(f, h, E + _);
2033
+ const x = (new Date(u, g, 1).getDay() - e.weekStartDay + 7) % 7;
2034
+ o = new Date(u, g, 1 - x);
2035
+ const E = new Date(m, h + 1, 0).getDate(), D = new Date(m, h, E).getDay(), _ = (e.weekStartDay + 6 - D) % 7;
2036
+ s = new Date(m, h, E + _);
2005
2037
  } else {
2006
- const f = (new Date(a, t, 1).getDay() - e.weekStartDay + 7) % 7;
2007
- o = new Date(a, t, 1 - f), s = new Date(o), s.setDate(o.getDate() + 41);
2038
+ const m = (new Date(a, t, 1).getDay() - e.weekStartDay + 7) % 7;
2039
+ o = new Date(a, t, 1 - m), s = new Date(o), s.setDate(o.getDate() + 41);
2008
2040
  }
2009
2041
  const d = {
2010
2042
  year: a,
@@ -2014,24 +2046,24 @@ async function de(e, a, t, n) {
2014
2046
  lastVisibleDate: s
2015
2047
  };
2016
2048
  w.debug(`handleBeforeMonthChange() - calling callback for ${a}-${t + 1}, range: ${o.toISOString().split("T")[0]} to ${s.toISOString().split("T")[0]}`);
2017
- const c = e.options.beforeMonthChangedCallback(d), l = c instanceof Promise;
2018
- l && Oe(e);
2019
- const u = await Promise.resolve(c);
2020
- return l && ie(e), u.action === "block" ? (w.debug(`handleBeforeMonthChange() - navigation blocked: ${u.message || "no reason provided"}`), u.message && console.warn(`[DateRangePicker] Month navigation blocked: ${u.message}`), !1) : (w.debug(`handleBeforeMonthChange() - navigation accepted, metadata items: ${((r = u.metadata) == null ? void 0 : r.size) || 0}, monthHeaders: ${((i = u.monthHeaders) == null ? void 0 : i.size) || 0}`), u.metadata ? e.bulkMetadataCache ? (u.metadata.forEach((p, g) => {
2021
- e.bulkMetadataCache.set(g, p);
2022
- }), w.debug(`handleBeforeMonthChange() - merged ${u.metadata.size} entries into cache (total: ${e.bulkMetadataCache.size})`)) : (e.bulkMetadataCache = u.metadata, w.debug(`handleBeforeMonthChange() - bulk metadata cache created with ${u.metadata.size} entries`)) : e.bulkMetadataCache = null, u.monthHeaders && (e.monthHeadersCache ? (u.monthHeaders.forEach((p, g) => {
2023
- e.monthHeadersCache.set(g, p);
2024
- }), w.debug(`handleBeforeMonthChange() - merged ${u.monthHeaders.size} entries into headers cache (total: ${e.monthHeadersCache.size})`)) : (e.monthHeadersCache = u.monthHeaders, w.debug(`handleBeforeMonthChange() - month headers cache created with ${u.monthHeaders.size} entries`))), !0);
2049
+ const l = e.options.beforeMonthChangedCallback(d), c = l instanceof Promise;
2050
+ c && Fe(e);
2051
+ const p = await Promise.resolve(l);
2052
+ return c && ie(e), p.action === "block" ? (w.debug(`handleBeforeMonthChange() - navigation blocked: ${p.message || "no reason provided"}`), p.message && console.warn(`[DateRangePicker] Month navigation blocked: ${p.message}`), !1) : (w.debug(`handleBeforeMonthChange() - navigation accepted, metadata items: ${((r = p.metadata) == null ? void 0 : r.size) || 0}, monthHeaders: ${((i = p.monthHeaders) == null ? void 0 : i.size) || 0}`), p.metadata ? e.bulkMetadataCache ? (p.metadata.forEach((u, g) => {
2053
+ e.bulkMetadataCache.set(g, u);
2054
+ }), w.debug(`handleBeforeMonthChange() - merged ${p.metadata.size} entries into cache (total: ${e.bulkMetadataCache.size})`)) : (e.bulkMetadataCache = p.metadata, w.debug(`handleBeforeMonthChange() - bulk metadata cache created with ${p.metadata.size} entries`)) : e.bulkMetadataCache = null, p.monthHeaders && (e.monthHeadersCache ? (p.monthHeaders.forEach((u, g) => {
2055
+ e.monthHeadersCache.set(g, u);
2056
+ }), w.debug(`handleBeforeMonthChange() - merged ${p.monthHeaders.size} entries into headers cache (total: ${e.monthHeadersCache.size})`)) : (e.monthHeadersCache = p.monthHeaders, w.debug(`handleBeforeMonthChange() - month headers cache created with ${p.monthHeaders.size} entries`))), !0);
2025
2057
  } catch (o) {
2026
2058
  return ie(e), w.debug("handleBeforeMonthChange() - error in callback:", o), console.error("[DateRangePicker] Error in beforeMonthChangedCallback:", o), !1;
2027
2059
  } finally {
2028
2060
  e.isMonthChanging = !1;
2029
2061
  }
2030
2062
  }
2031
- function $n(e, a) {
2063
+ function Fn(e, a) {
2032
2064
  e.showingRollingSelector[a] = !e.showingRollingSelector[a], e.renderCalendar();
2033
2065
  }
2034
- async function zn(e, a, t) {
2066
+ async function Hn(e, a, t) {
2035
2067
  const n = e.monthDates[t].getMonth();
2036
2068
  if (!await de(e, a, n, t)) {
2037
2069
  w.debug(`selectYear() Col${t} - navigation blocked by callback`);
@@ -2040,7 +2072,7 @@ async function zn(e, a, t) {
2040
2072
  const i = e.monthDates[t].getFullYear();
2041
2073
  e.monthDates[t].setFullYear(a), w.debug(`selectYear() Col${t} - changed from ${i} to ${a}`), be(e, t), e.showingRollingSelector[t] = !1, e.renderCalendar();
2042
2074
  }
2043
- async function Nn(e, a, t) {
2075
+ async function Yn(e, a, t) {
2044
2076
  const n = e.monthDates[t].getFullYear();
2045
2077
  if (!await de(e, n, a, t)) {
2046
2078
  w.debug(`selectMonth() Col${t} - navigation blocked by callback`);
@@ -2053,7 +2085,7 @@ function be(e, a) {
2053
2085
  const t = e.monthDates[a];
2054
2086
  if (a < e.monthDates.length - 1) {
2055
2087
  const n = e.monthDates[a + 1];
2056
- if (Fe(t, n)) {
2088
+ if (He(t, n)) {
2057
2089
  w.debug(`checkAndResolveCollisions() Col${a} - collision with Col${a + 1}, shifting forward`);
2058
2090
  const r = new Date(t.getFullYear(), t.getMonth() + 1, 1);
2059
2091
  e.monthDates[a + 1] = r, be(e, a + 1);
@@ -2061,22 +2093,22 @@ function be(e, a) {
2061
2093
  }
2062
2094
  if (a > 0) {
2063
2095
  const n = e.monthDates[a - 1];
2064
- if (Fe(n, t)) {
2096
+ if (He(n, t)) {
2065
2097
  w.debug(`checkAndResolveCollisions() Col${a} - collision with Col${a - 1}, shifting backward`);
2066
2098
  const r = new Date(t.getFullYear(), t.getMonth() - 1, 1);
2067
2099
  e.monthDates[a - 1] = r, be(e, a - 1);
2068
2100
  }
2069
2101
  }
2070
2102
  }
2071
- function Fe(e, a) {
2103
+ function He(e, a) {
2072
2104
  const t = e.getFullYear(), n = e.getMonth(), r = a.getFullYear(), i = a.getMonth();
2073
2105
  return t > r || t === r && n >= i;
2074
2106
  }
2075
- async function mt(e, a, t) {
2107
+ async function vt(e, a, t) {
2076
2108
  const n = isNaN(a) ? e.activeMonthIndex : a, r = t > 0 ? "nextMonth" : "prevMonth";
2077
2109
  e.showingRollingSelector[n] && (e.showingRollingSelector[n] = !1);
2078
2110
  const i = e.monthDates[n], o = new Date(i.getFullYear(), i.getMonth() + t, 1);
2079
- if (!X(e, o.getFullYear(), o.getMonth())) {
2111
+ if (!J(e, o.getFullYear(), o.getMonth())) {
2080
2112
  w.debug(`${r}() Col${n} - navigation blocked: target month has no enabled days`);
2081
2113
  return;
2082
2114
  }
@@ -2087,20 +2119,20 @@ async function mt(e, a, t) {
2087
2119
  e.monthDates[n] = o, w.debug(`${r}() Col${n} - changed from ${i.getFullYear()}-${i.getMonth() + 1} to ${o.getFullYear()}-${o.getMonth() + 1}`);
2088
2120
  const d = n + t;
2089
2121
  if (t > 0 ? d < e.monthDates.length : d >= 0) {
2090
- const l = e.monthDates[d];
2091
- (t > 0 ? Fe(o, l) : Fe(l, o)) && (w.debug(`${r}() Col${n} - collision detected with Col${d}, shifting`), await mt(e, d, t));
2122
+ const c = e.monthDates[d];
2123
+ (t > 0 ? He(o, c) : He(c, o)) && (w.debug(`${r}() Col${n} - collision detected with Col${d}, shifting`), await vt(e, d, t));
2092
2124
  }
2093
2125
  e.renderCalendar();
2094
2126
  }
2095
- const ke = (e, a) => mt(e, a, -1), Le = (e, a) => mt(e, a, 1);
2096
- function we(e, a, t, n, r) {
2127
+ const Le = (e, a) => vt(e, a, -1), $e = (e, a) => vt(e, a, 1);
2128
+ function xe(e, a, t, n, r) {
2097
2129
  let i = a, o = 0;
2098
2130
  const s = 60;
2099
2131
  for (; o < s; ) {
2100
2132
  if (i >= 0 && i < n.length) {
2101
- const c = n[i].dataset.date;
2102
- if (c) {
2103
- const [l, u, p] = c.split("-").map(Number), g = new Date(l, u - 1, p);
2133
+ const l = n[i].dataset.date;
2134
+ if (l) {
2135
+ const [c, p, u] = l.split("-").map(Number), g = new Date(c, p - 1, u);
2104
2136
  if (!e.isDateDisabledInternal(g))
2105
2137
  return { index: i, monthChanged: !1 };
2106
2138
  }
@@ -2110,8 +2142,8 @@ function we(e, a, t, n, r) {
2110
2142
  }
2111
2143
  return { index: null, monthChanged: !1 };
2112
2144
  }
2113
- function Pn(e, a) {
2114
- var o, s, d, c;
2145
+ function Bn(e, a) {
2146
+ var o, s, d, l;
2115
2147
  w.debug(`moveFocus(${a}) Col${e.activeMonthIndex} - focusedDayIndex:`, e.focusedDayIndex);
2116
2148
  const t = e.calendar.querySelector(`.drp-date-picker__days[data-month-index="${e.activeMonthIndex}"]`);
2117
2149
  if (!t) {
@@ -2121,89 +2153,89 @@ function Pn(e, a) {
2121
2153
  const n = t.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
2122
2154
  if (w.debug(`moveFocus() Col${e.activeMonthIndex} - found ${n.length} days in column`), n.length === 0) return;
2123
2155
  if (e.focusedDayIndex === null) {
2124
- const l = Array.from(n).findIndex((u) => u.classList.contains("drp-date-picker__day--today"));
2125
- e.focusedDayIndex = l !== -1 ? l : 0, w.debug(`moveFocus() Col${e.activeMonthIndex} - initialized focusedDayIndex to ${e.focusedDayIndex} (today or first day), will move by offset ${a}`);
2156
+ const c = Array.from(n).findIndex((p) => p.classList.contains("drp-date-picker__day--today"));
2157
+ e.focusedDayIndex = c !== -1 ? c : 0, w.debug(`moveFocus() Col${e.activeMonthIndex} - initialized focusedDayIndex to ${e.focusedDayIndex} (today or first day), will move by offset ${a}`);
2126
2158
  }
2127
2159
  (o = n[e.focusedDayIndex]) == null || o.classList.remove("drp-date-picker__day--focused");
2128
2160
  const r = e.focusedDayIndex + a;
2129
2161
  if (r < 0) {
2130
- const l = e.activeMonthIndex;
2162
+ const c = e.activeMonthIndex;
2131
2163
  if (a === -1)
2132
- w.debug(`moveFocus() Col${l} - edge navigation LEFT: going to last enabled day of prev month`), ke(e, e.activeMonthIndex), setTimeout(() => {
2133
- var f, h;
2134
- const u = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${l}"] .drp-date-picker__days`);
2135
- if (!u) return;
2136
- const p = u.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)"), g = we(e, p.length - 1, -1, p);
2137
- g.index !== null && (e.focusedDayIndex = g.index, (f = p[e.focusedDayIndex]) == null || f.classList.add("drp-date-picker__day--focused"), (h = p[e.focusedDayIndex]) == null || h.scrollIntoView({ block: "nearest" }));
2164
+ w.debug(`moveFocus() Col${c} - edge navigation LEFT: going to last enabled day of prev month`), Le(e, e.activeMonthIndex), setTimeout(() => {
2165
+ var m, h;
2166
+ const p = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${c}"] .drp-date-picker__days`);
2167
+ if (!p) return;
2168
+ const u = p.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)"), g = xe(e, u.length - 1, -1, u);
2169
+ g.index !== null && (e.focusedDayIndex = g.index, (m = u[e.focusedDayIndex]) == null || m.classList.add("drp-date-picker__day--focused"), (h = u[e.focusedDayIndex]) == null || h.scrollIntoView({ block: "nearest" }));
2138
2170
  }, 0);
2139
2171
  else {
2140
- const p = n[e.focusedDayIndex].dataset.date;
2141
- if (p) {
2142
- const [g, f, h] = p.split("-").map(Number), m = new Date(g, f - 1, h).getDay();
2143
- w.debug(`moveFocus() Col${l} - edge navigation UP: current day ${h} is weekday ${m}, going to prev month`), ke(e, e.activeMonthIndex), setTimeout(() => {
2144
- var _, R;
2145
- const x = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${l}"] .drp-date-picker__days`);
2172
+ const u = n[e.focusedDayIndex].dataset.date;
2173
+ if (u) {
2174
+ const [g, m, h] = u.split("-").map(Number), f = new Date(g, m - 1, h).getDay();
2175
+ w.debug(`moveFocus() Col${c} - edge navigation UP: current day ${h} is weekday ${f}, going to prev month`), Le(e, e.activeMonthIndex), setTimeout(() => {
2176
+ var _, k;
2177
+ const x = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${c}"] .drp-date-picker__days`);
2146
2178
  if (!x) return;
2147
2179
  const E = x.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)"), D = E[E.length - 1].dataset.date;
2148
2180
  if (D) {
2149
- const [k, y, M] = D.split("-").map(Number), I = new Date(k, y - 1, M).getDay(), T = (I - m + 7) % 7;
2150
- e.focusedDayIndex = E.length - 1 - T, w.debug(`moveFocus() Col${l} - last day weekday ${I}, target ${m}, focusing on day ${e.focusedDayIndex + 1}`), (_ = E[e.focusedDayIndex]) == null || _.classList.add("drp-date-picker__day--focused"), (R = E[e.focusedDayIndex]) == null || R.scrollIntoView({ block: "nearest" });
2181
+ const [L, y, M] = D.split("-").map(Number), I = new Date(L, y - 1, M).getDay(), A = (I - f + 7) % 7;
2182
+ e.focusedDayIndex = E.length - 1 - A, w.debug(`moveFocus() Col${c} - last day weekday ${I}, target ${f}, focusing on day ${e.focusedDayIndex + 1}`), (_ = E[e.focusedDayIndex]) == null || _.classList.add("drp-date-picker__day--focused"), (k = E[e.focusedDayIndex]) == null || k.scrollIntoView({ block: "nearest" });
2151
2183
  }
2152
2184
  }, 0);
2153
2185
  }
2154
2186
  }
2155
2187
  return;
2156
2188
  } else if (r >= n.length) {
2157
- const l = e.activeMonthIndex;
2189
+ const c = e.activeMonthIndex;
2158
2190
  if (a === 1)
2159
- w.debug(`moveFocus() Col${l} - edge navigation RIGHT: going to first enabled day of next month`), Le(e, e.activeMonthIndex), setTimeout(() => {
2160
- var f, h;
2161
- const u = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${l}"] .drp-date-picker__days`);
2162
- if (!u) return;
2163
- const p = u.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)"), g = we(e, 0, 1, p);
2164
- g.index !== null && (e.focusedDayIndex = g.index, (f = p[e.focusedDayIndex]) == null || f.classList.add("drp-date-picker__day--focused"), (h = p[e.focusedDayIndex]) == null || h.scrollIntoView({ block: "nearest" }));
2191
+ w.debug(`moveFocus() Col${c} - edge navigation RIGHT: going to first enabled day of next month`), $e(e, e.activeMonthIndex), setTimeout(() => {
2192
+ var m, h;
2193
+ const p = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${c}"] .drp-date-picker__days`);
2194
+ if (!p) return;
2195
+ const u = p.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)"), g = xe(e, 0, 1, u);
2196
+ g.index !== null && (e.focusedDayIndex = g.index, (m = u[e.focusedDayIndex]) == null || m.classList.add("drp-date-picker__day--focused"), (h = u[e.focusedDayIndex]) == null || h.scrollIntoView({ block: "nearest" }));
2165
2197
  }, 0);
2166
2198
  else {
2167
- const p = n[e.focusedDayIndex].dataset.date;
2168
- if (p) {
2169
- const [g, f, h] = p.split("-").map(Number), m = new Date(g, f - 1, h).getDay();
2170
- w.debug(`moveFocus() Col${l} - edge navigation DOWN: current day ${h} is weekday ${m}, going to next month`), Le(e, e.activeMonthIndex), setTimeout(() => {
2171
- var _, R;
2172
- const x = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${l}"] .drp-date-picker__days`);
2199
+ const u = n[e.focusedDayIndex].dataset.date;
2200
+ if (u) {
2201
+ const [g, m, h] = u.split("-").map(Number), f = new Date(g, m - 1, h).getDay();
2202
+ w.debug(`moveFocus() Col${c} - edge navigation DOWN: current day ${h} is weekday ${f}, going to next month`), $e(e, e.activeMonthIndex), setTimeout(() => {
2203
+ var _, k;
2204
+ const x = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${c}"] .drp-date-picker__days`);
2173
2205
  if (!x) return;
2174
2206
  const E = x.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)"), D = E[0].dataset.date;
2175
2207
  if (D) {
2176
- const [k, y, M] = D.split("-").map(Number), I = new Date(k, y - 1, M).getDay(), T = (m - I + 7) % 7;
2177
- e.focusedDayIndex = T, w.debug(`moveFocus() Col${l} - first day weekday ${I}, target ${m}, focusing on day ${e.focusedDayIndex + 1}`), (_ = E[e.focusedDayIndex]) == null || _.classList.add("drp-date-picker__day--focused"), (R = E[e.focusedDayIndex]) == null || R.scrollIntoView({ block: "nearest" });
2208
+ const [L, y, M] = D.split("-").map(Number), I = new Date(L, y - 1, M).getDay(), A = (f - I + 7) % 7;
2209
+ e.focusedDayIndex = A, w.debug(`moveFocus() Col${c} - first day weekday ${I}, target ${f}, focusing on day ${e.focusedDayIndex + 1}`), (_ = E[e.focusedDayIndex]) == null || _.classList.add("drp-date-picker__day--focused"), (k = E[e.focusedDayIndex]) == null || k.scrollIntoView({ block: "nearest" });
2178
2210
  }
2179
2211
  }, 0);
2180
2212
  }
2181
2213
  }
2182
2214
  return;
2183
2215
  }
2184
- const i = we(e, r, a, n, e.activeMonthIndex);
2216
+ const i = xe(e, r, a, n, e.activeMonthIndex);
2185
2217
  if (i.monthChanged) {
2186
- const l = e.activeMonthIndex;
2187
- i.direction === "next" ? Le(e, e.activeMonthIndex) : ke(e, e.activeMonthIndex), setTimeout(() => {
2188
- var f, h;
2189
- const u = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${l}"] .drp-date-picker__days`);
2190
- if (!u) return;
2191
- const p = u.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)"), g = we(
2218
+ const c = e.activeMonthIndex;
2219
+ i.direction === "next" ? $e(e, e.activeMonthIndex) : Le(e, e.activeMonthIndex), setTimeout(() => {
2220
+ var m, h;
2221
+ const p = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${c}"] .drp-date-picker__days`);
2222
+ if (!p) return;
2223
+ const u = p.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)"), g = xe(
2192
2224
  e,
2193
- i.direction === "next" ? 0 : p.length - 1,
2225
+ i.direction === "next" ? 0 : u.length - 1,
2194
2226
  a,
2195
- p
2227
+ u
2196
2228
  );
2197
- g.index !== null && (e.focusedDayIndex = g.index, (f = p[e.focusedDayIndex]) == null || f.classList.add("drp-date-picker__day--focused"), (h = p[e.focusedDayIndex]) == null || h.scrollIntoView({ block: "nearest" }));
2229
+ g.index !== null && (e.focusedDayIndex = g.index, (m = u[e.focusedDayIndex]) == null || m.classList.add("drp-date-picker__day--focused"), (h = u[e.focusedDayIndex]) == null || h.scrollIntoView({ block: "nearest" }));
2198
2230
  }, 0);
2199
2231
  return;
2200
2232
  }
2201
- i.index !== null ? (e.focusedDayIndex = i.index, (s = n[e.focusedDayIndex]) == null || s.classList.add("drp-date-picker__day--focused"), (d = n[e.focusedDayIndex]) == null || d.scrollIntoView({ block: "nearest" })) : (w.debug("moveFocus() - no enabled day found in search range"), (c = n[e.focusedDayIndex]) == null || c.classList.add("drp-date-picker__day--focused"));
2233
+ i.index !== null ? (e.focusedDayIndex = i.index, (s = n[e.focusedDayIndex]) == null || s.classList.add("drp-date-picker__day--focused"), (d = n[e.focusedDayIndex]) == null || d.scrollIntoView({ block: "nearest" })) : (w.debug("moveFocus() - no enabled day found in search range"), (l = n[e.focusedDayIndex]) == null || l.classList.add("drp-date-picker__day--focused"));
2202
2234
  }
2203
- async function On(e) {
2235
+ async function Vn(e) {
2204
2236
  if (!e.options.unifiedNavigation) return;
2205
2237
  const a = e.options.unifiedNavigationAnchorIndex ?? 0, t = e.monthDates[a], n = new Date(t.getFullYear(), t.getMonth() + 1, 1);
2206
- if (w.debug(`unifiedNextMonth() - anchor index: ${a}, current: ${t.getFullYear()}-${t.getMonth() + 1}, new: ${n.getFullYear()}-${n.getMonth() + 1}`), !X(e, n.getFullYear(), n.getMonth())) {
2238
+ if (w.debug(`unifiedNextMonth() - anchor index: ${a}, current: ${t.getFullYear()}-${t.getMonth() + 1}, new: ${n.getFullYear()}-${n.getMonth() + 1}`), !J(e, n.getFullYear(), n.getMonth())) {
2207
2239
  w.debug("unifiedNextMonth() - navigation blocked: target month has no enabled days");
2208
2240
  return;
2209
2241
  }
@@ -2215,10 +2247,10 @@ async function On(e) {
2215
2247
  e.renderCalendar();
2216
2248
  }
2217
2249
  }
2218
- async function Fn(e) {
2250
+ async function Un(e) {
2219
2251
  if (!e.options.unifiedNavigation) return;
2220
2252
  const a = e.options.unifiedNavigationAnchorIndex ?? 0, t = e.monthDates[a], n = new Date(t.getFullYear(), t.getMonth() - 1, 1);
2221
- if (w.debug(`unifiedPrevMonth() - anchor index: ${a}, current: ${t.getFullYear()}-${t.getMonth() + 1}, new: ${n.getFullYear()}-${n.getMonth() + 1}`), !X(e, n.getFullYear(), n.getMonth())) {
2253
+ if (w.debug(`unifiedPrevMonth() - anchor index: ${a}, current: ${t.getFullYear()}-${t.getMonth() + 1}, new: ${n.getFullYear()}-${n.getMonth() + 1}`), !J(e, n.getFullYear(), n.getMonth())) {
2222
2254
  w.debug("unifiedPrevMonth() - navigation blocked: target month has no enabled days");
2223
2255
  return;
2224
2256
  }
@@ -2230,7 +2262,7 @@ async function Fn(e) {
2230
2262
  e.renderCalendar();
2231
2263
  }
2232
2264
  }
2233
- async function Hn(e, a) {
2265
+ async function qn(e, a) {
2234
2266
  if (!e.options.unifiedNavigation) return;
2235
2267
  const t = e.options.unifiedNavigationAnchorIndex ?? 0, n = e.monthDates[t].getFullYear();
2236
2268
  if (w.debug(`setUnifiedMonth(${a}) - anchor index: ${t}, year: ${n}`), !!await de(e, n, a, t)) {
@@ -2241,10 +2273,10 @@ async function Hn(e, a) {
2241
2273
  e.showingUnifiedRollingSelector = !1, e.renderCalendar();
2242
2274
  }
2243
2275
  }
2244
- function Yn(e) {
2276
+ function Wn(e) {
2245
2277
  e.options.unifiedNavigation && (e.showingUnifiedRollingSelector = !e.showingUnifiedRollingSelector, w.debug(`toggleUnifiedRollingSelector() - now ${e.showingUnifiedRollingSelector ? "visible" : "hidden"}`), e.renderCalendar());
2246
2278
  }
2247
- async function Bn(e, a) {
2279
+ async function jn(e, a) {
2248
2280
  if (!e.options.unifiedNavigation) return;
2249
2281
  const t = e.options.unifiedNavigationAnchorIndex ?? 0, n = e.monthDates[t].getMonth();
2250
2282
  if (w.debug(`setUnifiedYear(${a}) - anchor index: ${t}, month: ${n}`), !!await de(e, a, n, t)) {
@@ -2255,7 +2287,7 @@ async function Bn(e, a) {
2255
2287
  e.showingUnifiedRollingSelector = !1, e.renderCalendar();
2256
2288
  }
2257
2289
  }
2258
- function ta(e, a, t) {
2290
+ function na(e, a, t) {
2259
2291
  if (!e) {
2260
2292
  if (t != null && t.normalizedMinDate || t != null && t.normalizedMaxDate) {
2261
2293
  const n = t.normalizedMinDate ? t.normalizedMinDate.getFullYear() : a - 1, r = t.normalizedMaxDate ? t.normalizedMaxDate.getFullYear() : a + 1;
@@ -2271,16 +2303,16 @@ function ta(e, a, t) {
2271
2303
  return { min: n, max: n };
2272
2304
  }
2273
2305
  }
2274
- function aa(e) {
2306
+ function ra(e) {
2275
2307
  if (!e)
2276
2308
  return { min: 1, max: 12 };
2277
2309
  const [a, t] = e.split("-");
2278
2310
  return { min: parseInt(a, 10), max: parseInt(t, 10) };
2279
2311
  }
2280
- function Vn(e) {
2281
- he.debug("[DatePicker 18] renderCalendar called, showingRollingSelector:", e.showingRollingSelector, `activeCol: ${e.activeMonthIndex}`), he.debug("[DatePicker 18] monthDates array:", e.monthDates.map((a, t) => `Col${t}: ${a.getFullYear()}-${a.getMonth() + 1}`).join(", ")), e.options.unifiedNavigation && e.showingUnifiedRollingSelector && qn(e);
2312
+ function Kn(e) {
2313
+ he.debug("[DatePicker 18] renderCalendar called, showingRollingSelector:", e.showingRollingSelector, `activeCol: ${e.activeMonthIndex}`), he.debug("[DatePicker 18] monthDates array:", e.monthDates.map((a, t) => `Col${t}: ${a.getFullYear()}-${a.getMonth() + 1}`).join(", ")), e.options.unifiedNavigation && e.showingUnifiedRollingSelector && Xn(e);
2282
2314
  for (let a = 0; a < e.options.visibleMonthsCount; a++)
2283
- e.showingRollingSelector[a] ? oa(e, a) : na(e, a);
2315
+ e.showingRollingSelector[a] ? da(e, a) : ia(e, a);
2284
2316
  if (e.focusedDayIndex !== null) {
2285
2317
  const a = e.calendar.querySelector(`.drp-date-picker__days[data-month-index="${e.activeMonthIndex}"]`);
2286
2318
  if (a) {
@@ -2290,7 +2322,7 @@ function Vn(e) {
2290
2322
  }
2291
2323
  e.options.selectionMode === "range" && !e.isDragging && e.initDragListeners(), e.actionsContainer && e.renderButtons(e.actionsContainer);
2292
2324
  }
2293
- function na(e, a) {
2325
+ function ia(e, a) {
2294
2326
  var E;
2295
2327
  he.debug(`[DatePicker Col${a} 19] renderNormalView called for month`, a);
2296
2328
  const t = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${a}"]`);
@@ -2310,12 +2342,12 @@ function na(e, a) {
2310
2342
  }
2311
2343
  if (e.options.unifiedNavigation && a === 0 && e.unifiedRangeDisplay) {
2312
2344
  e.unifiedRollingSelector && !e.showingUnifiedRollingSelector && e.unifiedRollingSelector.classList.remove("drp-date-picker__unified-rolling-selector--visible");
2313
- const S = e.monthDates[0], D = e.monthDates[e.monthDates.length - 1], _ = e.options.unifiedNavigationAnchorIndex ?? 0, R = e.monthDates[_];
2345
+ const S = e.monthDates[0], D = e.monthDates[e.monthDates.length - 1], _ = e.options.unifiedNavigationAnchorIndex ?? 0, k = e.monthDates[_];
2314
2346
  if (e.options.getUnifiedHeaderCallback) {
2315
2347
  const y = e.options.getUnifiedHeaderCallback({
2316
2348
  firstMonth: S,
2317
2349
  lastMonth: D,
2318
- anchorMonth: R,
2350
+ anchorMonth: k,
2319
2351
  monthNames: e.monthNames
2320
2352
  });
2321
2353
  e.unifiedRangeDisplay.textContent = y;
@@ -2323,56 +2355,56 @@ function na(e, a) {
2323
2355
  const y = e.monthNames[S.getMonth()], M = e.monthNames[D.getMonth()], C = S.getFullYear(), I = D.getFullYear();
2324
2356
  C === I ? e.unifiedRangeDisplay.textContent = `${y} ${C} - ${M} ${I}` : e.unifiedRangeDisplay.textContent = `${y} ${C} - ${M} ${I}`;
2325
2357
  }
2326
- const k = e.unifiedHeader;
2327
- if (k) {
2328
- const y = S.getMonth() === 0 ? S.getFullYear() - 1 : S.getFullYear(), M = S.getMonth() === 0 ? 11 : S.getMonth() - 1, C = k.querySelector(".drp-date-picker__nav--prev");
2329
- C && (X(e, y, M) ? (C.removeAttribute("disabled"), C.classList.remove("drp-date-picker__nav--disabled")) : (C.setAttribute("disabled", "true"), C.classList.add("drp-date-picker__nav--disabled")));
2330
- const I = D.getMonth() === 11 ? D.getFullYear() + 1 : D.getFullYear(), T = D.getMonth() === 11 ? 0 : D.getMonth() + 1, A = k.querySelector(".drp-date-picker__nav--next");
2331
- A && (X(e, I, T) ? (A.removeAttribute("disabled"), A.classList.remove("drp-date-picker__nav--disabled")) : (A.setAttribute("disabled", "true"), A.classList.add("drp-date-picker__nav--disabled")));
2358
+ const L = e.unifiedHeader;
2359
+ if (L) {
2360
+ const y = S.getMonth() === 0 ? S.getFullYear() - 1 : S.getFullYear(), M = S.getMonth() === 0 ? 11 : S.getMonth() - 1, C = L.querySelector(".drp-date-picker__nav--prev");
2361
+ C && (J(e, y, M) ? (C.removeAttribute("disabled"), C.classList.remove("drp-date-picker__nav--disabled")) : (C.setAttribute("disabled", "true"), C.classList.add("drp-date-picker__nav--disabled")));
2362
+ const I = D.getMonth() === 11 ? D.getFullYear() + 1 : D.getFullYear(), A = D.getMonth() === 11 ? 0 : D.getMonth() + 1, R = L.querySelector(".drp-date-picker__nav--next");
2363
+ R && (J(e, I, A) ? (R.removeAttribute("disabled"), R.classList.remove("drp-date-picker__nav--disabled")) : (R.setAttribute("disabled", "true"), R.classList.add("drp-date-picker__nav--disabled")));
2332
2364
  }
2333
2365
  }
2334
- const c = r.getFullYear(), l = r.getMonth(), u = l === 0 ? 11 : l - 1, p = l === 0 ? c - 1 : c, g = t.querySelector(".drp-date-picker__nav--prev");
2335
- g && (X(e, p, u) ? (g.removeAttribute("disabled"), g.classList.remove("drp-date-picker__nav--disabled")) : (g.setAttribute("disabled", "true"), g.classList.add("drp-date-picker__nav--disabled")));
2336
- const f = l === 11 ? 0 : l + 1, h = l === 11 ? c + 1 : c, v = t.querySelector(".drp-date-picker__nav--next");
2337
- v && (X(e, h, f) ? (v.removeAttribute("disabled"), v.classList.remove("drp-date-picker__nav--disabled")) : (v.setAttribute("disabled", "true"), v.classList.add("drp-date-picker__nav--disabled")));
2338
- const m = t.querySelector(".drp-date-picker__weekdays"), x = [
2366
+ const l = r.getFullYear(), c = r.getMonth(), p = c === 0 ? 11 : c - 1, u = c === 0 ? l - 1 : l, g = t.querySelector(".drp-date-picker__nav--prev");
2367
+ g && (J(e, u, p) ? (g.removeAttribute("disabled"), g.classList.remove("drp-date-picker__nav--disabled")) : (g.setAttribute("disabled", "true"), g.classList.add("drp-date-picker__nav--disabled")));
2368
+ const m = c === 11 ? 0 : c + 1, h = c === 11 ? l + 1 : l, v = t.querySelector(".drp-date-picker__nav--next");
2369
+ v && (J(e, h, m) ? (v.removeAttribute("disabled"), v.classList.remove("drp-date-picker__nav--disabled")) : (v.setAttribute("disabled", "true"), v.classList.add("drp-date-picker__nav--disabled")));
2370
+ const f = t.querySelector(".drp-date-picker__weekdays"), x = [
2339
2371
  ...e.weekdayNames.slice(e.weekStartDay),
2340
2372
  ...e.weekdayNames.slice(0, e.weekStartDay)
2341
2373
  ];
2342
- m && (m.innerHTML = x.map((S) => `<div class="drp-date-picker__weekday">${S}</div>`).join("")), ra(e, a, r);
2374
+ f && (f.innerHTML = x.map((S) => `<div class="drp-date-picker__weekday">${S}</div>`).join("")), oa(e, a, r);
2343
2375
  }
2344
- function ra(e, a, t) {
2376
+ function oa(e, a, t) {
2345
2377
  he.debug(`[DatePicker Col${a} 20] renderDays called for month`, a);
2346
2378
  const n = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${a}"]`);
2347
2379
  if (!n) return;
2348
2380
  const r = n.querySelector(".drp-date-picker__days"), i = t.getFullYear(), o = t.getMonth();
2349
2381
  he.debug(`[DatePicker Col${a} 21] Rendering days for:`, i, o + 1);
2350
- const d = (new Date(i, o, 1).getDay() - e.weekStartDay + 7) % 7, c = new Date(i, o + 1, 0).getDate(), l = new Date(i, o, 0).getDate(), u = new Date(i, o - 1, 1), p = u.getFullYear(), g = u.getMonth(), f = new Date(i, o + 1, 1), h = f.getFullYear(), v = f.getMonth(), m = [];
2382
+ const d = (new Date(i, o, 1).getDay() - e.weekStartDay + 7) % 7, l = new Date(i, o + 1, 0).getDate(), c = new Date(i, o, 0).getDate(), p = new Date(i, o - 1, 1), u = p.getFullYear(), g = p.getMonth(), m = new Date(i, o + 1, 1), h = m.getFullYear(), v = m.getMonth(), f = [];
2351
2383
  for (let _ = d - 1; _ >= 0; _--) {
2352
- const R = l - _, k = new Date(p, g, R);
2353
- m.push({
2354
- date: k,
2355
- year: p,
2384
+ const k = c - _, L = new Date(u, g, k);
2385
+ f.push({
2386
+ date: L,
2387
+ year: u,
2356
2388
  month: g,
2357
- day: R,
2389
+ day: k,
2358
2390
  isOtherMonth: !0
2359
2391
  });
2360
2392
  }
2361
- for (let _ = 1; _ <= c; _++) {
2362
- const R = new Date(i, o, _);
2363
- m.push({
2364
- date: R,
2393
+ for (let _ = 1; _ <= l; _++) {
2394
+ const k = new Date(i, o, _);
2395
+ f.push({
2396
+ date: k,
2365
2397
  year: i,
2366
2398
  month: o,
2367
2399
  day: _,
2368
2400
  isOtherMonth: !1
2369
2401
  });
2370
2402
  }
2371
- const E = Math.ceil((d + c) / 7) * 7 - (d + c);
2403
+ const E = 42 - (d + l);
2372
2404
  for (let _ = 1; _ <= E; _++) {
2373
- const R = new Date(h, v, _);
2374
- m.push({
2375
- date: R,
2405
+ const k = new Date(h, v, _);
2406
+ f.push({
2407
+ date: k,
2376
2408
  year: h,
2377
2409
  month: v,
2378
2410
  day: _,
@@ -2380,17 +2412,17 @@ function ra(e, a, t) {
2380
2412
  });
2381
2413
  }
2382
2414
  const S = [];
2383
- for (let _ = 0; _ < m.length; _ += 7)
2384
- S.push(m.slice(_, _ + 7));
2415
+ for (let _ = 0; _ < f.length; _ += 7)
2416
+ S.push(f.slice(_, _ + 7));
2385
2417
  let D = "";
2386
2418
  for (const _ of S) {
2387
- const R = _.map((y) => {
2419
+ const k = _.map((y) => {
2388
2420
  const M = e.getDateInfoInternal(y.date);
2389
2421
  let C = (M == null ? void 0 : M.badgeTooltip) || "";
2390
2422
  if (e.options.badgeTooltipCallback && (M != null && M.badgeText)) {
2391
- const T = {
2423
+ const A = {
2392
2424
  date: y.date,
2393
- dateString: xe(y.date),
2425
+ dateString: Me(y.date),
2394
2426
  dayNumber: y.day,
2395
2427
  isDisabled: e.isDateDisabledInternal(y.date),
2396
2428
  isSelected: !1,
@@ -2398,14 +2430,14 @@ function ra(e, a, t) {
2398
2430
  isStartDate: !1,
2399
2431
  isEndDate: !1,
2400
2432
  isInRange: !1,
2401
- isToday: Tt(y.date),
2433
+ isToday: $t(y.date),
2402
2434
  isWeekend: y.date.getDay() === 0 || y.date.getDay() === 6,
2403
2435
  monthIndex: a,
2404
2436
  element: null,
2405
2437
  // Not available during string rendering
2406
2438
  picker: e
2407
- }, A = e.options.badgeTooltipCallback(T);
2408
- A !== null && (C = A);
2439
+ }, R = e.options.badgeTooltipCallback(A);
2440
+ R !== null && (C = R);
2409
2441
  }
2410
2442
  return {
2411
2443
  text: (M == null ? void 0 : M.badgeText) || "",
@@ -2413,9 +2445,9 @@ function ra(e, a, t) {
2413
2445
  class: (M == null ? void 0 : M.badgeClass) || ""
2414
2446
  };
2415
2447
  });
2416
- if (R.some((y) => y.text)) {
2448
+ if (k.some((y) => y.text)) {
2417
2449
  D += '<div class="drp-date-picker__badge-row">';
2418
- for (const y of R)
2450
+ for (const y of k)
2419
2451
  if (y.text) {
2420
2452
  const M = y.tooltip ? ` data-tooltip="${y.tooltip.replace(/"/g, "&quot;")}"` : "", C = y.class ? ` ${y.class}` : "";
2421
2453
  D += `<div class="drp-date-picker__badge-cell${C}"${M}>${y.text}</div>`;
@@ -2429,17 +2461,17 @@ function ra(e, a, t) {
2429
2461
  y.isOtherMonth && M.push("drp-date-picker__day--other-month");
2430
2462
  const C = e.getDateInfoInternal(y.date), I = C && C.isDisabled !== void 0 ? C.isDisabled : e.isDateDisabledInternal(y.date);
2431
2463
  I && M.push("drp-date-picker__day--disabled"), C && C.dayClass && M.push(C.dayClass), e.isToday(y.date) && M.push("drp-date-picker__day--today");
2432
- let T = !1;
2433
- e.options.selectionMode === "single" ? T = e.isSameDay(y.date, e.selectedDate) : e.options.selectionMode === "multiple" && (T = e.selectedDates.some((H) => e.isSameDay(y.date, H))), T && M.push("drp-date-picker__day--selected");
2434
- let A = !1, $ = !1, P = !1;
2464
+ let A = !1;
2465
+ e.options.selectionMode === "single" ? A = e.isSameDay(y.date, e.selectedDate) : e.options.selectionMode === "multiple" && (A = e.selectedDates.some((H) => e.isSameDay(y.date, H))), A && M.push("drp-date-picker__day--selected");
2466
+ let R = !1, $ = !1, P = !1;
2435
2467
  if (e.options.selectionMode === "range") {
2436
- if (A = e.isSameDay(y.date, e.selectedStartDate), $ = e.isSameDay(y.date, e.selectedEndDate), P = e.isInRange(y.date), A && M.push("drp-date-picker__day--range-start"), $ && M.push("drp-date-picker__day--range-end"), P && (!I || e.options.highlightDisabledInRange) && M.push("drp-date-picker__day--in-range"), e.invalidRangeStart && e.invalidRangeEnd) {
2437
- const H = e.isSameDay(y.date, e.invalidRangeStart), Ee = e.isSameDay(y.date, e.invalidRangeEnd), ca = y.date > e.invalidRangeStart && y.date < e.invalidRangeEnd;
2438
- H && M.push("drp-date-picker__day--invalid-range-start"), Ee && M.push("drp-date-picker__day--invalid-range-end"), ca && M.push("drp-date-picker__day--invalid-range");
2468
+ if (R = e.isSameDay(y.date, e.selectedStartDate), $ = e.isSameDay(y.date, e.selectedEndDate), P = e.isInRange(y.date), R && M.push("drp-date-picker__day--range-start"), $ && M.push("drp-date-picker__day--range-end"), P && (!I || e.options.highlightDisabledInRange) && M.push("drp-date-picker__day--in-range"), e.invalidRangeStart && e.invalidRangeEnd) {
2469
+ const H = e.isSameDay(y.date, e.invalidRangeStart), ke = e.isSameDay(y.date, e.invalidRangeEnd), ua = y.date > e.invalidRangeStart && y.date < e.invalidRangeEnd;
2470
+ H && M.push("drp-date-picker__day--invalid-range-start"), ke && M.push("drp-date-picker__day--invalid-range-end"), ua && M.push("drp-date-picker__day--invalid-range");
2439
2471
  }
2440
2472
  } else if (e.options.selectionMode === "multiple")
2441
2473
  for (const H of e.selectedRanges)
2442
- e.isSameDay(y.date, H.start) && (A = !0, M.push("drp-date-picker__day--range-start")), e.isSameDay(y.date, H.end) && ($ = !0, M.push("drp-date-picker__day--range-end")), y.date >= H.start && y.date <= H.end && (P = !0, (!I || e.options.highlightDisabledInRange) && M.push("drp-date-picker__day--in-range"));
2474
+ e.isSameDay(y.date, H.start) && (R = !0, M.push("drp-date-picker__day--range-start")), e.isSameDay(y.date, H.end) && ($ = !0, M.push("drp-date-picker__day--range-end")), y.date >= H.start && y.date <= H.end && (P = !0, (!I || e.options.highlightDisabledInRange) && M.push("drp-date-picker__day--in-range"));
2443
2475
  const z = `${y.year}-${String(y.month + 1).padStart(2, "0")}-${String(y.day).padStart(2, "0")}`;
2444
2476
  let N = (C == null ? void 0 : C.dayTooltip) || "";
2445
2477
  if (e.options.dayTooltipCallback) {
@@ -2448,8 +2480,8 @@ function ra(e, a, t) {
2448
2480
  dateString: z,
2449
2481
  dayNumber: y.day,
2450
2482
  isDisabled: I,
2451
- isSelected: T,
2452
- isStartDate: A,
2483
+ isSelected: A,
2484
+ isStartDate: R,
2453
2485
  isEndDate: $,
2454
2486
  isInRange: P,
2455
2487
  isToday: e.isToday(y.date),
@@ -2458,31 +2490,31 @@ function ra(e, a, t) {
2458
2490
  element: null,
2459
2491
  // Not available during string rendering
2460
2492
  picker: e
2461
- }, Ee = e.options.dayTooltipCallback(H);
2462
- Ee !== null && (N = Ee);
2493
+ }, ke = e.options.dayTooltipCallback(H);
2494
+ ke !== null && (N = ke);
2463
2495
  }
2464
2496
  const U = N ? ` data-tooltip="${N.replace(/"/g, "&quot;")}"` : "";
2465
2497
  D += `<div class="${M.join(" ")}" data-date="${z}" data-day-number="${y.day}"${U}>`, D += `<slot name="day-${z}">${y.day}</slot>`, D += "</div>";
2466
2498
  }
2467
2499
  D += "</div>";
2468
2500
  }
2469
- r && (r.innerHTML = D, Un(e, a, r));
2501
+ r && (r.innerHTML = D, Gn(e, a, r));
2470
2502
  }
2471
- function Un(e, a, t) {
2503
+ function Gn(e, a, t) {
2472
2504
  if (!e.options.renderDayCallback && !e.options.renderDayContentCallback)
2473
2505
  return;
2474
2506
  t.querySelectorAll(".drp-date-picker__day").forEach((r) => {
2475
2507
  const i = r, o = i.getAttribute("data-date"), s = parseInt(i.getAttribute("data-day-number") || "0", 10);
2476
2508
  if (!o) return;
2477
- const [d, c, l] = o.split("-"), u = new Date(parseInt(d), parseInt(c) - 1, parseInt(l)), p = i.querySelector(`slot[name="day-${o}"]`);
2478
- if (p && p.assignedNodes().length > 0)
2509
+ const [d, l, c] = o.split("-"), p = new Date(parseInt(d), parseInt(l) - 1, parseInt(c)), u = i.querySelector(`slot[name="day-${o}"]`);
2510
+ if (u && u.assignedNodes().length > 0)
2479
2511
  return;
2480
- const f = e.isDateDisabledInternal(u), h = e.isToday(u), v = u.getDay() === 0 || u.getDay() === 6, m = e.options.selectionMode === "single" && e.isSameDay(u, e.selectedDate), x = e.options.selectionMode === "range" && e.isSameDay(u, e.selectedStartDate), E = e.options.selectionMode === "range" && e.isSameDay(u, e.selectedEndDate), S = e.options.selectionMode === "range" && e.isInRange(u), D = {
2481
- date: u,
2512
+ const m = e.isDateDisabledInternal(p), h = e.isToday(p), v = p.getDay() === 0 || p.getDay() === 6, f = e.options.selectionMode === "single" && e.isSameDay(p, e.selectedDate), x = e.options.selectionMode === "range" && e.isSameDay(p, e.selectedStartDate), E = e.options.selectionMode === "range" && e.isSameDay(p, e.selectedEndDate), S = e.options.selectionMode === "range" && e.isInRange(p), D = {
2513
+ date: p,
2482
2514
  dateString: o,
2483
2515
  dayNumber: s,
2484
- isDisabled: f,
2485
- isSelected: m || x || E,
2516
+ isDisabled: m,
2517
+ isSelected: f || x || E,
2486
2518
  isStartDate: x,
2487
2519
  isEndDate: E,
2488
2520
  isInRange: S,
@@ -2495,20 +2527,20 @@ function Un(e, a, t) {
2495
2527
  if (e.options.renderDayCallback)
2496
2528
  try {
2497
2529
  const _ = e.options.renderDayCallback(D);
2498
- _ != null && (typeof _ == "string" ? p && (p.innerHTML = _) : _ instanceof HTMLElement && p && (p.innerHTML = "", p.appendChild(_)));
2530
+ _ != null && (typeof _ == "string" ? u && (u.innerHTML = _) : _ instanceof HTMLElement && u && (u.innerHTML = "", u.appendChild(_)));
2499
2531
  } catch (_) {
2500
2532
  console.error("[DatePicker] Error in renderDayCallback:", _);
2501
2533
  }
2502
2534
  else if (e.options.renderDayContentCallback)
2503
2535
  try {
2504
2536
  const _ = e.options.renderDayContentCallback(D);
2505
- _ != null && (typeof _ == "string" ? p && (p.innerHTML += _) : _ instanceof HTMLElement && p && p.appendChild(_));
2537
+ _ != null && (typeof _ == "string" ? u && (u.innerHTML += _) : _ instanceof HTMLElement && u && u.appendChild(_));
2506
2538
  } catch (_) {
2507
2539
  console.error("[DatePicker] Error in renderDayContentCallback:", _);
2508
2540
  }
2509
2541
  });
2510
2542
  }
2511
- function Ct(e) {
2543
+ function kt(e) {
2512
2544
  let a = "";
2513
2545
  for (const t of e.items) {
2514
2546
  const n = t.value === e.currentValue ? "drp-date-picker__rolling-item--selected" : "", r = t.enabled ? "" : "drp-date-picker__rolling-item--disabled";
@@ -2516,48 +2548,48 @@ function Ct(e) {
2516
2548
  }
2517
2549
  return a;
2518
2550
  }
2519
- function ia(e, a, t) {
2551
+ function sa(e, a, t) {
2520
2552
  if (!a) return;
2521
2553
  const n = [];
2522
2554
  for (let s = t.yearRange.min; s <= t.yearRange.max; s++)
2523
- n.push({ value: s, label: s, enabled: ha(e, s) });
2555
+ n.push({ value: s, label: s, enabled: ma(e, s) });
2524
2556
  const r = [];
2525
2557
  for (let s = t.monthRange.min - 1; s <= t.monthRange.max - 1; s++)
2526
- r.push({ value: s, label: e.monthNames[s], enabled: X(e, t.currentYear, s) });
2558
+ r.push({ value: s, label: e.monthNames[s], enabled: J(e, t.currentYear, s) });
2527
2559
  const i = a.querySelector('[data-list="years"]');
2528
- i && (i.innerHTML = Ct({
2560
+ i && (i.innerHTML = kt({
2529
2561
  items: n,
2530
2562
  currentValue: t.currentYear,
2531
2563
  valueAttr: "data-year",
2532
2564
  extraAttrs: t.extraAttrs
2533
2565
  }));
2534
2566
  const o = a.querySelector('[data-list="months"]');
2535
- o && (o.innerHTML = Ct({
2567
+ o && (o.innerHTML = kt({
2536
2568
  items: r,
2537
2569
  currentValue: t.currentMonth,
2538
2570
  valueAttr: "data-month",
2539
2571
  extraAttrs: t.extraAttrs
2540
2572
  }));
2541
2573
  }
2542
- function oa(e, a) {
2574
+ function da(e, a) {
2543
2575
  const t = e.calendar.querySelector(`.drp-date-picker__month[data-month-index="${a}"]`);
2544
2576
  if (!t) return;
2545
2577
  const n = t.querySelector(".drp-date-picker__rolling-selector");
2546
2578
  n == null || n.classList.add("drp-date-picker__rolling-selector--visible");
2547
2579
  const r = e.monthDates[a];
2548
- ia(e, n, {
2549
- yearRange: ta(e.options.rollingYearRange, r.getFullYear(), e),
2550
- monthRange: aa(e.options.rollingMonthRange),
2580
+ sa(e, n, {
2581
+ yearRange: na(e.options.rollingYearRange, r.getFullYear(), e),
2582
+ monthRange: ra(e.options.rollingMonthRange),
2551
2583
  currentYear: r.getFullYear(),
2552
2584
  currentMonth: r.getMonth(),
2553
2585
  extraAttrs: `data-month-index="${a}"`
2554
2586
  });
2555
2587
  }
2556
- function qn(e) {
2588
+ function Xn(e) {
2557
2589
  if (!e.options.unifiedNavigation || !e.unifiedRollingSelector) return;
2558
2590
  e.unifiedRollingSelector.classList.add("drp-date-picker__unified-rolling-selector--visible");
2559
2591
  const a = e.options.unifiedNavigationAnchorIndex ?? 0, t = e.monthDates[a];
2560
- ia(e, e.unifiedRollingSelector, {
2592
+ sa(e, e.unifiedRollingSelector, {
2561
2593
  yearRange: e.getEffectiveYearRange(),
2562
2594
  monthRange: e.getEffectiveMonthRange(),
2563
2595
  currentYear: t.getFullYear(),
@@ -2565,7 +2597,7 @@ function qn(e) {
2565
2597
  extraAttrs: 'data-unified="true"'
2566
2598
  });
2567
2599
  }
2568
- function jn(e) {
2600
+ function Jn(e) {
2569
2601
  if (e.options.selectionMode !== "range") return;
2570
2602
  const a = e.calendar.querySelector(".drp-date-picker__summary");
2571
2603
  if (a)
@@ -2587,11 +2619,11 @@ function jn(e) {
2587
2619
  e.selectedStartDate,
2588
2620
  e.selectedEndDate
2589
2621
  );
2590
- const d = 1e3 * 60 * 60 * 24, c = e.selectedEndDate.getTime() - e.selectedStartDate.getTime();
2591
- t = Math.floor(c / d) + 1;
2622
+ const d = 1e3 * 60 * 60 * 24, l = e.selectedEndDate.getTime() - e.selectedStartDate.getTime();
2623
+ t = Math.floor(l / d) + 1;
2592
2624
  } else {
2593
- const c = e.selectedEndDate.getTime() - e.selectedStartDate.getTime();
2594
- t = Math.floor(c / 864e5) + 1;
2625
+ const l = e.selectedEndDate.getTime() - e.selectedStartDate.getTime();
2626
+ t = Math.floor(l / 864e5) + 1;
2595
2627
  }
2596
2628
  const s = t > 0 ? t - 1 : 0;
2597
2629
  if (a.className = "drp-date-picker__summary drp-date-picker__summary--visible", e.options.formatSummaryCallback) {
@@ -2615,7 +2647,7 @@ function jn(e) {
2615
2647
  } else
2616
2648
  a.className = "drp-date-picker__summary drp-date-picker__summary--hidden", a.innerHTML = "";
2617
2649
  }
2618
- function sa(e) {
2650
+ function la(e) {
2619
2651
  if (e.options.selectionMode !== "range") return;
2620
2652
  const a = e.calendar.querySelector(".drp-date-picker__summary");
2621
2653
  if (a && e.dragPreviewStart && e.dragPreviewEnd) {
@@ -2636,11 +2668,11 @@ function sa(e) {
2636
2668
  e.dragPreviewStart,
2637
2669
  e.dragPreviewEnd
2638
2670
  );
2639
- const d = 1e3 * 60 * 60 * 24, c = e.dragPreviewEnd.getTime() - e.dragPreviewStart.getTime();
2640
- t = Math.floor(c / d) + 1;
2671
+ const d = 1e3 * 60 * 60 * 24, l = e.dragPreviewEnd.getTime() - e.dragPreviewStart.getTime();
2672
+ t = Math.floor(l / d) + 1;
2641
2673
  } else {
2642
- const c = e.dragPreviewEnd.getTime() - e.dragPreviewStart.getTime();
2643
- t = Math.floor(c / 864e5) + 1;
2674
+ const l = e.dragPreviewEnd.getTime() - e.dragPreviewStart.getTime();
2675
+ t = Math.floor(l / 864e5) + 1;
2644
2676
  }
2645
2677
  const s = t > 0 ? t - 1 : 0;
2646
2678
  if (a.className = "drp-date-picker__summary drp-date-picker__summary--visible", e.options.formatSummaryCallback) {
@@ -2664,7 +2696,7 @@ function sa(e) {
2664
2696
  `;
2665
2697
  }
2666
2698
  }
2667
- function Wn(e) {
2699
+ function Qn(e) {
2668
2700
  if (e.calendar.querySelectorAll(".drp-date-picker__day--drag-preview, .drp-date-picker__day--drag-invalid").forEach((r) => {
2669
2701
  r.classList.remove("drp-date-picker__day--drag-preview", "drp-date-picker__day--drag-invalid");
2670
2702
  }), !e.dragPreviewStart || !e.dragPreviewEnd) return;
@@ -2672,11 +2704,11 @@ function Wn(e) {
2672
2704
  e.calendar.querySelectorAll(".drp-date-picker__day").forEach((r) => {
2673
2705
  const i = r.dataset.date;
2674
2706
  if (!i) return;
2675
- const [o, s, d] = i.split("-").map(Number), c = new Date(o, s - 1, d);
2676
- c >= e.dragPreviewStart && c <= e.dragPreviewEnd && (r.classList.add("drp-date-picker__day--drag-preview"), t && r.classList.add("drp-date-picker__day--drag-invalid"));
2677
- }), sa(e);
2707
+ const [o, s, d] = i.split("-").map(Number), l = new Date(o, s - 1, d);
2708
+ l >= e.dragPreviewStart && l <= e.dragPreviewEnd && (r.classList.add("drp-date-picker__day--drag-preview"), t && r.classList.add("drp-date-picker__day--drag-invalid"));
2709
+ }), la(e);
2678
2710
  }
2679
- const at = {
2711
+ const rt = {
2680
2712
  en: {
2681
2713
  today: "Today",
2682
2714
  clear: "Clear",
@@ -2718,21 +2750,21 @@ const at = {
2718
2750
  nights: "noches"
2719
2751
  }
2720
2752
  };
2721
- function Se(e) {
2753
+ function Ee(e) {
2722
2754
  if (e !== "auto")
2723
2755
  return e;
2724
2756
  if (typeof navigator < "u" && navigator.language) {
2725
2757
  const a = navigator.language.split("-")[0].toLowerCase();
2726
- return at[a] ? a : "en";
2758
+ return rt[a] ? a : "en";
2727
2759
  }
2728
2760
  return "en";
2729
2761
  }
2730
- function Et(e, a) {
2731
- const t = Se(e), n = at[t] || at.en;
2762
+ function Rt(e, a) {
2763
+ const t = Ee(e), n = rt[t] || rt.en;
2732
2764
  return a ? { ...n, ...a } : n;
2733
2765
  }
2734
- function It(e) {
2735
- const a = Se(e);
2766
+ function At(e) {
2767
+ const a = Ee(e);
2736
2768
  try {
2737
2769
  const t = new Intl.DateTimeFormat(a, { weekday: "short" }), n = [];
2738
2770
  for (let r = 0; r < 7; r++) {
@@ -2744,8 +2776,8 @@ function It(e) {
2744
2776
  return Y.warn("getWeekdayNames() - Intl.DateTimeFormat failed, using English weekdays", t), ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"];
2745
2777
  }
2746
2778
  }
2747
- function Rt(e) {
2748
- const a = Se(e);
2779
+ function Tt(e) {
2780
+ const a = Ee(e);
2749
2781
  try {
2750
2782
  const t = new Intl.DateTimeFormat(a, { month: "long" }), n = [];
2751
2783
  for (let r = 0; r < 12; r++) {
@@ -2770,7 +2802,7 @@ function Rt(e) {
2770
2802
  ];
2771
2803
  }
2772
2804
  }
2773
- class Kn {
2805
+ class Zn {
2774
2806
  constructor(a, t, n = {}) {
2775
2807
  b(this, "element");
2776
2808
  b(this, "target");
@@ -2801,14 +2833,14 @@ class Kn {
2801
2833
  }
2802
2834
  show() {
2803
2835
  var a;
2804
- this.element.classList.add(this.opts.visibleClassName), (a = this.autoUpdateCleanup) == null || a.call(this), this.autoUpdateCleanup = qt(this.target, this.element, () => {
2805
- ft(this.target, this.element, {
2836
+ this.element.classList.add(this.opts.visibleClassName), (a = this.autoUpdateCleanup) == null || a.call(this), this.autoUpdateCleanup = Kt(this.target, this.element, () => {
2837
+ bt(this.target, this.element, {
2806
2838
  placement: this.opts.placement,
2807
2839
  strategy: "fixed",
2808
2840
  middleware: [
2809
- pt(this.opts.offsetDistance),
2810
- ht(),
2811
- gt({ padding: 8 })
2841
+ ht(this.opts.offsetDistance),
2842
+ mt(),
2843
+ ft({ padding: 8 })
2812
2844
  ]
2813
2845
  }).then(({ x: t, y: n }) => {
2814
2846
  Object.assign(this.element.style, {
@@ -2827,7 +2859,7 @@ class Kn {
2827
2859
  this.showTimer !== void 0 && clearTimeout(this.showTimer), this.hideTimer !== void 0 && clearTimeout(this.hideTimer), (a = this.autoUpdateCleanup) == null || a.call(this), this.target.removeEventListener("mouseenter", this.onEnter), this.target.removeEventListener("mouseleave", this.onLeave), this.element.remove();
2828
2860
  }
2829
2861
  }
2830
- function Gn() {
2862
+ function er() {
2831
2863
  const e = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
2832
2864
  let t = null, n = !1, r = !1;
2833
2865
  const i = () => {
@@ -2837,10 +2869,10 @@ function Gn() {
2837
2869
  };
2838
2870
  return {
2839
2871
  subscribe(s, d) {
2840
- const c = s === "window" ? e : a;
2841
- return c.add(d), {
2872
+ const l = s === "window" ? e : a;
2873
+ return l.add(d), {
2842
2874
  unsubscribe: () => {
2843
- c.delete(d);
2875
+ l.delete(d);
2844
2876
  }
2845
2877
  };
2846
2878
  },
@@ -2852,63 +2884,63 @@ function Gn() {
2852
2884
  }
2853
2885
  };
2854
2886
  }
2855
- function Xn() {
2887
+ function tr() {
2856
2888
  const e = {
2857
2889
  outsideClick: /* @__PURE__ */ new Set(),
2858
2890
  calendarClick: /* @__PURE__ */ new Set()
2859
2891
  };
2860
2892
  let a = null, t = null, n = null, r = !1, i = !1;
2861
- const o = (l, u) => {
2862
- for (const p of e[l])
2863
- if (p(u) === !0)
2893
+ const o = (c, p) => {
2894
+ for (const u of e[c])
2895
+ if (u(p) === !0)
2864
2896
  return !0;
2865
2897
  return !1;
2866
- }, s = (l) => {
2898
+ }, s = (c) => {
2867
2899
  i = !0;
2868
- const u = l, p = u.composedPath(), g = p[0] || u.target;
2900
+ const p = c, u = p.composedPath(), g = u[0] || p.target;
2869
2901
  o("calendarClick", {
2870
2902
  target: g,
2871
- event: u,
2872
- path: p
2903
+ event: p,
2904
+ path: u
2873
2905
  });
2874
2906
  }, d = () => {
2875
2907
  setTimeout(() => {
2876
2908
  i && (i = !1);
2877
2909
  }, 10);
2878
- }, c = (l) => {
2910
+ }, l = (c) => {
2879
2911
  var x;
2880
2912
  if (!a) return;
2881
2913
  if (i) {
2882
2914
  i = !1;
2883
2915
  return;
2884
2916
  }
2885
- const u = l, p = u.composedPath ? u.composedPath() : [], g = p[0] || u.target, f = p.includes(a), h = t && p.includes(t), v = n && p.includes(n), m = (x = g.closest) == null ? void 0 : x.call(g, "[data-calendar-button]");
2886
- !f && !h && !v && !m && o("outsideClick", {
2917
+ const p = c, u = p.composedPath ? p.composedPath() : [], g = u[0] || p.target, m = u.includes(a), h = t && u.includes(t), v = n && u.includes(n), f = (x = g.closest) == null ? void 0 : x.call(g, "[data-calendar-button]");
2918
+ !m && !h && !v && !f && o("outsideClick", {
2887
2919
  target: g,
2888
- event: u,
2889
- path: p
2920
+ event: p,
2921
+ path: u
2890
2922
  });
2891
2923
  };
2892
2924
  return {
2893
- subscribe(l, u) {
2894
- return e[l].add(u), {
2925
+ subscribe(c, p) {
2926
+ return e[c].add(p), {
2895
2927
  unsubscribe: () => {
2896
- e[l].delete(u);
2928
+ e[c].delete(p);
2897
2929
  }
2898
2930
  };
2899
2931
  },
2900
- init(l, u, p) {
2901
- a = l, t = u || null, n = p || null, l.addEventListener("mousedown", s), l.addEventListener("mouseup", d), r || (document.addEventListener("click", c, !0), r = !0);
2932
+ init(c, p, u) {
2933
+ a = c, t = p || null, n = u || null, c.addEventListener("mousedown", s), c.addEventListener("mouseup", d), r || (document.addEventListener("click", l, !0), r = !0);
2902
2934
  },
2903
- updateReferences(l, u) {
2904
- t = l || null, n = u || null;
2935
+ updateReferences(c, p) {
2936
+ t = c || null, n = p || null;
2905
2937
  },
2906
2938
  destroy() {
2907
- a && (a.removeEventListener("mousedown", s), a.removeEventListener("mouseup", d)), r && (document.removeEventListener("click", c, !0), r = !1), a = null, t = null, n = null, i = !1, Object.values(e).forEach((l) => l.clear());
2939
+ a && (a.removeEventListener("mousedown", s), a.removeEventListener("mouseup", d)), r && (document.removeEventListener("click", l, !0), r = !1), a = null, t = null, n = null, i = !1, Object.values(e).forEach((c) => c.clear());
2908
2940
  }
2909
2941
  };
2910
2942
  }
2911
- const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(--base-font-family, inherit));--drp-spacing-xs: calc(.4 * var(--drp-rem));--drp-spacing-sm: calc(.8 * var(--drp-rem));--drp-spacing-md: calc(1.6 * var(--drp-rem));--drp-spacing-lg: calc(2.4 * var(--drp-rem));--drp-spacing-xl: calc(3.2 * var(--drp-rem));--drp-font-size-2xs: calc(var(--base-font-size-2xs, 1) * var(--drp-rem));--drp-font-size-xs: calc(var(--base-font-size-xs, 1.2) * var(--drp-rem));--drp-font-size-sm: calc(var(--base-font-size-sm, 1.4) * var(--drp-rem));--drp-font-size-base: calc(var(--base-font-size-base, 1.6) * var(--drp-rem));--drp-font-size-lg: calc(var(--base-font-size-lg, 1.8) * var(--drp-rem));--drp-font-size-xl: calc(var(--base-font-size-xl, 2) * var(--drp-rem));--drp-font-size-2xl: calc(var(--base-font-size-2xl, 2.4) * var(--drp-rem));--drp-font-weight-normal: var(--base-font-weight-normal, 400);--drp-font-weight-medium: var(--base-font-weight-medium, 500);--drp-font-weight-semibold: var(--base-font-weight-semibold, 600);--drp-line-height-tight: var(--base-line-height-tight, 1.25);--drp-line-height-normal: var(--base-line-height-normal, 1.5);--drp-line-height-relaxed: var(--base-line-height-relaxed, 1.75);--drp-dropdown-bg: var(--base-dropdown-bg, #ffffff);--drp-border-color: var(--base-border-color, #e5e7eb);--drp-border: var(--base-border, var(--drp-border-width-base) solid var(--drp-border-color));--drp-primary-bg: var(--base-main-bg, #f3f4f6);--drp-primary-bg-hover: var(--base-hover-bg, #e5e7eb);--drp-accent-color: var(--base-accent-color, #3b82f6);--drp-accent-color-hover: var(--base-accent-color-hover, #2563eb);--drp-text-primary: var(--base-text-color-1, #111827);--drp-text-secondary: var(--base-text-color-3, #6b7280);--drp-text-color-on-accent: var(--base-text-color-on-accent, #ffffff);--drp-button-accent-text-color: var(--drp-text-color-on-accent);--drp-tooltip-bg: var(--base-tooltip-bg, #111827);--drp-tooltip-text-color: var(--base-tooltip-text-color, #ffffff);--drp-loading-overlay-bg: rgba(255, 255, 255, .8);--drp-loading-spinner-size: 40px;--drp-loading-spinner-border-width: 4px;--drp-loading-spinner-color: var(--drp-border-color);--drp-loading-spinner-accent: var(--drp-accent-color);--drp-border-width-base: 1px;--drp-border-radius-sm: calc(var(--base-border-radius-sm, .4) * var(--drp-rem));--drp-border-radius-md: calc(var(--base-border-radius-md, .6) * var(--drp-rem));--drp-border-radius-lg: calc(var(--base-border-radius-lg, .8) * var(--drp-rem));--drp-border-radius: var(--drp-border-radius-md);--drp-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--drp-transition-fast: .15s;--drp-easing-snappy: cubic-bezier(.4, 0, .2, 1);--drp-z-index-dropdown: 9500;--drp-z-index-tooltip: 9999;--drp-input-padding-h: calc(1.2 * var(--drp-rem));--drp-grid-columns: 3;--drp-grid-rows: 2;--drp-opacity-disabled: .6;--drp-opacity-other-month: .5;--drp-opacity-hover: .8;--drp-opacity-dragging: .7;--drp-input-bg: var(--base-input-bg, var(--drp-dropdown-bg));--drp-input-color: var(--base-input-color, var(--drp-text-primary));--drp-input-border: var(--base-input-border, var(--drp-border));--drp-input-border-hover: var(--base-input-border-hover, var(--drp-border-width-base) solid var(--drp-accent-color));--drp-input-border-focus: var(--base-input-border-focus, var(--drp-border-width-base) solid var(--drp-accent-color));--drp-input-placeholder-color: var(--base-input-placeholder-color, var(--drp-text-secondary));--drp-input-bg-disabled: var(--base-input-bg-disabled, var(--drp-primary-bg));--drp-input-focus-shadow-color: rgba(59, 130, 246, .1);--drp-input-focus-shadow-size: 3px;--drp-input-icon-opacity: .6;--drp-input-size-xs-font: var(--drp-font-size-xs);--drp-input-size-xs-padding-v: var(--drp-spacing-xs);--drp-input-size-xs-padding-h: calc(.8 * var(--drp-rem));--drp-input-size-xs-height: calc(var(--base-input-size-xs-height, 3.1) * var(--drp-rem));--drp-input-size-xs-icon-size: .75em;--drp-input-size-sm-font: calc(1.3 * var(--drp-rem));--drp-input-size-sm-padding-v: calc(.5 * var(--drp-rem));--drp-input-size-sm-padding-h: var(--drp-spacing-sm);--drp-input-size-sm-height: calc(var(--base-input-size-sm-height, 3.3) * var(--drp-rem));--drp-input-size-sm-icon-size: .875em;--drp-input-size-md-font: calc(1.4 * var(--drp-rem));--drp-input-size-md-padding-v: var(--drp-spacing-sm);--drp-input-size-md-padding-h: calc(1.2 * var(--drp-rem));--drp-input-size-md-height: calc(var(--base-input-size-md-height, 3.5) * var(--drp-rem));--drp-input-size-md-icon-size: 1em;--drp-input-size-lg-font: calc(1.6 * var(--drp-rem));--drp-input-size-lg-padding-v: calc(1 * var(--drp-rem));--drp-input-size-lg-padding-h: calc(1.4 * var(--drp-rem));--drp-input-size-lg-height: calc(var(--base-input-size-lg-height, 3.8) * var(--drp-rem));--drp-input-size-lg-icon-size: 1.125em;--drp-input-size-xl-font: calc(1.8 * var(--drp-rem));--drp-input-size-xl-padding-v: calc(1.2 * var(--drp-rem));--drp-input-size-xl-padding-h: calc(1.6 * var(--drp-rem));--drp-input-size-xl-height: calc(var(--base-input-size-xl-height, 4.1) * var(--drp-rem));--drp-input-size-xl-icon-size: 1.25em;--drp-header-text-color: var(--drp-text-primary);--drp-header-bg-hover: var(--drp-primary-bg);--drp-header-bg-active: var(--drp-primary-bg-hover);--drp-nav-text-color: var(--drp-text-primary);--drp-nav-border-color: var(--drp-border-color);--drp-nav-border: var(--drp-border-width-base) solid var(--drp-nav-border-color);--drp-nav-bg-hover: var(--drp-primary-bg);--drp-nav-bg-active: var(--drp-primary-bg-hover);--drp-nav-border-hover: var(--drp-accent-color);--drp-nav-border-hover-full: var(--drp-border-width-base) solid var(--drp-nav-border-hover);--drp-nav-size: calc(3.2 * var(--drp-rem));--drp-rolling-bg: var(--drp-primary-bg);--drp-rolling-border-color: var(--drp-border-color);--drp-rolling-border: var(--drp-border-width-base) solid var(--drp-rolling-border-color);--drp-rolling-scrollbar-width: 6px;--drp-rolling-scrollbar-thumb: var(--drp-border-color);--drp-rolling-scrollbar-thumb-hover: var(--drp-accent-color);--drp-rolling-item-bg-hover: var(--drp-primary-bg);--drp-rolling-item-color: var(--drp-text-primary);--drp-rolling-item-bg-selected: var(--drp-accent-color);--drp-rolling-item-color-selected: var(--drp-text-color-on-accent);--drp-rolling-item-bg-selected-hover: var(--drp-accent-color-hover);--drp-rolling-item-justify-content: center;--drp-rolling-item-min-height: calc(3.2 * var(--drp-rem));--drp-rolling-item-padding-v: var(--drp-spacing-xs);--drp-rolling-item-padding-h: var(--drp-spacing-md);--drp-rolling-item-font-size: var(--drp-font-size-sm);--drp-rolling-item-font-weight-selected: var(--drp-font-weight-semibold);--drp-weekday-color: var(--drp-text-secondary);--drp-day-text-color: var(--drp-text-primary);--drp-day-bg-hover: var(--drp-primary-bg);--drp-day-border-hover: var(--drp-accent-color);--drp-day-today-border: var(--drp-accent-color);--drp-day-selected-bg: var(--drp-accent-color);--drp-day-selected-color: var(--drp-text-color-on-accent);--drp-day-selected-bg-hover: var(--drp-accent-color-hover);--drp-day-selected-color-hover: var(--drp-day-selected-color);--drp-day-focused-outline: var(--drp-accent-color);--drp-day-disabled-color: var(--drp-text-secondary);--drp-day-disabled-bg: var(--base-disabled-bg, transparent);--drp-day-other-month-color: var(--drp-text-secondary);--drp-day-range-bg: var(--drp-accent-color);--drp-day-range-bg-hover: var(--drp-accent-color-hover);--drp-day-range-color: var(--drp-text-color-on-accent);--drp-day-range-color-hover: var(--drp-day-range-color);--drp-day-border-width: 2px;--drp-day-border-color: transparent;--drp-day-border: var(--drp-day-border-width) solid var(--drp-day-border-color);--drp-day-focused-outline-width: 2px;--drp-day-focused-outline-offset: 2px;--drp-day-in-range-bg-opacity: .15;--drp-day-in-range-hover-bg-opacity: .25;--drp-day-drag-preview-bg-opacity: .3;--drp-day-drag-preview-edge-bg-opacity: .6;--drp-day-invalid-range-bg: var(--drp-message-error-border);--drp-day-invalid-range-color: var(--drp-text-color-on-accent);--drp-day-disabled-pattern-opacity: .1;--drp-day-dragging-scale: 1.1;--drp-day-drag-preview-border-style: dashed;--drp-day-drag-border: var(--drp-day-border-width) var(--drp-day-drag-preview-border-style) var(--drp-day-range-bg);--drp-day-drag-invalid-bg: #ef4444;--drp-day-drag-invalid-bg-opacity: .2;--drp-holiday-color: #ef4444;--drp-holiday-bg-opacity: .1;--drp-holiday-hover-bg-opacity: .2;--drp-event-color: #10b981;--drp-event-bg-opacity: .1;--drp-event-hover-bg-opacity: .2;--drp-summary-text-color: var(--drp-text-secondary);--drp-summary-border-color: var(--drp-border-color);--drp-summary-border: var(--drp-border-width-base) solid var(--drp-summary-border-color);--drp-summary-count-color: var(--drp-accent-color);--drp-button-border-color: var(--drp-border-color);--drp-button-border: var(--drp-border-width-base) solid var(--drp-button-border-color);--drp-button-bg: transparent;--drp-button-bg-hover: var(--drp-primary-bg);--drp-button-color: var(--drp-text-primary);--drp-button-border-hover: var(--drp-accent-color);--drp-button-border-hover-full: var(--drp-border-width-base) solid var(--drp-button-border-hover);--drp-button-today-color: var(--drp-accent-color);--drp-button-clear-color: var(--drp-text-secondary);--drp-button-cancel-color: var(--drp-text-secondary);--drp-button-apply-bg: var(--drp-accent-color);--drp-button-apply-color: var(--drp-button-accent-text-color);--drp-button-apply-border: var(--drp-accent-color);--drp-button-apply-bg-hover: var(--drp-accent-color-hover);--drp-badge-font-size: var(--drp-font-size-2xs);--drp-badge-padding-v: 1px;--drp-badge-padding-h: 2px;--drp-badge-border-radius: 2px;--drp-badge-max-height: var(--drp-font-size-base);--drp-badge-row-height: var(--drp-badge-max-height);--drp-badge-number-bg: var(--drp-accent-color);--drp-badge-number-color: var(--drp-text-color-on-accent);--drp-badge-count-bg: #ef4444;--drp-badge-count-color: #ffffff;--drp-badge-text-bg: var(--drp-text-secondary);--drp-badge-text-color: #ffffff;--drp-unified-range-text-color: var(--drp-text-primary);--drp-unified-range-bg-hover: var(--drp-primary-bg);--drp-unified-range-bg-active: var(--drp-primary-bg-hover);--drp-unified-month-color: var(--drp-text-secondary);--drp-unified-rolling-disabled-color: var(--drp-text-secondary);--drp-tooltip-line-height: 1.4;--drp-tooltip-max-width: 200px;--drp-tooltip-arrow-size: 8px;--drp-message-error-bg: #fef2f2;--drp-message-error-color: #991b1b;--drp-message-error-border: #fecaca;--drp-message-warning-bg: #fffbeb;--drp-message-warning-color: #92400e;--drp-message-warning-border: #fde68a;--drp-message-info-bg: #eff6ff;--drp-message-info-color: #1e40af;--drp-message-info-border: #bfdbfe;--drp-message-success-bg: #f0fdf4;--drp-message-success-color: #166534;--drp-message-success-border: #bbf7d0;--drp-month-min-width: 280px;--drp-month-min-width-inline: 250px;--drp-calendar-max-width: calc(100vw - 2rem) }.drp-input{width:100%;font-family:var(--drp-font-family, var(--base-font-family, inherit));font-size:var(--drp-input-size-md-font);line-height:var(--drp-line-height-normal);color:var(--drp-input-color);background-color:var(--drp-input-bg);border:var(--drp-input-border);border-radius:var(--drp-border-radius);padding:var(--drp-input-size-md-padding-v) var(--drp-input-size-md-padding-h);padding-right:calc(var(--drp-input-size-md-padding-h) * 2.5);height:var(--drp-input-size-md-height);box-sizing:border-box;transition:border-color var(--drp-transition-fast) var(--drp-easing-snappy),box-shadow var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-input::placeholder{color:var(--drp-input-placeholder-color);opacity:.6}.drp-input:hover:not(:disabled){border:var(--drp-input-border-hover)}.drp-input:focus{outline:none;border:var(--drp-input-border-focus);box-shadow:0 0 0 var(--drp-input-focus-shadow-size) var(--drp-input-focus-shadow-color)}.drp-input:disabled{opacity:var(--drp-opacity-disabled);cursor:not-allowed;background-color:var(--drp-input-bg-disabled)}.drp-input.drp-input--xs{font-size:var(--drp-input-size-xs-font);padding:var(--drp-input-size-xs-padding-v) var(--drp-input-size-xs-padding-h);padding-right:calc(var(--drp-input-size-xs-padding-h) * 2.5);height:var(--drp-input-size-xs-height)}.drp-input.drp-input--sm{font-size:var(--drp-input-size-sm-font);padding:var(--drp-input-size-sm-padding-v) var(--drp-input-size-sm-padding-h);padding-right:calc(var(--drp-input-size-sm-padding-h) * 2.5);height:var(--drp-input-size-sm-height)}.drp-input.drp-input--lg{font-size:var(--drp-input-size-lg-font);padding:var(--drp-input-size-lg-padding-v) var(--drp-input-size-lg-padding-h);padding-right:calc(var(--drp-input-size-lg-padding-h) * 2.5);height:var(--drp-input-size-lg-height)}.drp-input.drp-input--xl{font-size:var(--drp-input-size-xl-font);padding:var(--drp-input-size-xl-padding-v) var(--drp-input-size-xl-padding-h);padding-right:calc(var(--drp-input-size-xl-padding-h) * 2.5);height:var(--drp-input-size-xl-height)}.drp-date-picker-input{position:relative;cursor:pointer;display:inline-block;width:100%}.drp-date-picker-input:after{content:"📅";position:absolute;right:var(--drp-input-size-md-padding-h);top:50%;transform:translateY(-50%);pointer-events:none;opacity:var(--drp-input-icon-opacity);font-size:var(--drp-input-size-md-icon-size)}.drp-date-picker-input.drp-date-picker-input--xs:after{right:var(--drp-input-size-xs-padding-h);font-size:var(--drp-input-size-xs-icon-size)}.drp-date-picker-input.drp-date-picker-input--sm:after{right:var(--drp-input-size-sm-padding-h);font-size:var(--drp-input-size-sm-icon-size)}.drp-date-picker-input.drp-date-picker-input--lg:after{right:var(--drp-input-size-lg-padding-h);font-size:var(--drp-input-size-lg-icon-size)}.drp-date-picker-input.drp-date-picker-input--xl:after{right:var(--drp-input-size-xl-padding-h);font-size:var(--drp-input-size-xl-icon-size)}.drp-date-picker{position:absolute;z-index:var(--drp-z-index-dropdown);font-family:var(--drp-font-family, var(--base-font-family, inherit));background:var(--drp-dropdown-bg);border:var(--drp-border);border-radius:var(--drp-border-radius-lg);box-shadow:var(--drp-shadow-xl);padding:var(--drp-spacing-md);min-width:var(--drp-month-min-width);max-width:var(--drp-calendar-max-width);box-sizing:border-box;-webkit-user-select:none;user-select:none}.drp-date-picker:not(.drp-date-picker--visible){display:none}.drp-date-picker--inline{position:relative!important;display:block!important;z-index:auto;min-width:0;max-width:100%;width:fit-content;box-sizing:border-box}.drp-date-picker__months{display:flex;gap:var(--drp-spacing-lg)}.drp-date-picker--inline .drp-date-picker__months{flex-wrap:wrap}.drp-date-picker__months--grid{display:grid;grid-template-columns:repeat(var(--drp-grid-columns, 3),minmax(0,1fr));grid-template-rows:repeat(var(--drp-grid-rows, 2),auto);gap:var(--drp-spacing-lg);width:100%}@media (max-width: 1200px){.drp-date-picker__months--grid{grid-template-columns:repeat(min(var(--drp-grid-columns, 3),3),minmax(0,1fr))}}@media (max-width: 768px){.drp-date-picker__months--grid{grid-template-columns:repeat(min(var(--drp-grid-columns, 3),2),minmax(0,1fr))}}@media (max-width: 480px){.drp-date-picker__months--grid{grid-template-columns:minmax(0,1fr)}}.drp-date-picker__month{flex:1;min-width:var(--drp-month-min-width);display:flex;flex-direction:column}.drp-date-picker--inline .drp-date-picker__month{min-width:var(--drp-month-min-width-inline)}.drp-date-picker__months--grid .drp-date-picker__month{min-width:0;width:100%}.drp-date-picker__calendar-container{position:relative;flex:1;display:flex;flex-direction:column;min-height:0}.drp-date-picker__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--drp-spacing-md);gap:var(--drp-spacing-sm)}.drp-date-picker__header--static{justify-content:center}.drp-date-picker__header--static .drp-date-picker__month-year{cursor:default}.drp-date-picker__header--static .drp-date-picker__month-year:hover{background-color:transparent}.drp-date-picker__month-year{flex:1;text-align:center;font-weight:var(--drp-font-weight-semibold);font-size:var(--drp-font-size-base);color:var(--drp-header-text-color);padding:var(--drp-spacing-sm) var(--drp-spacing-md);border-radius:var(--drp-border-radius);cursor:pointer}.drp-date-picker__month-year:hover{background-color:var(--drp-header-bg-hover)}.drp-date-picker__month-year:active{background-color:var(--drp-header-bg-active)}.drp-date-picker__nav{width:var(--drp-nav-size);height:var(--drp-nav-size);display:flex;align-items:center;justify-content:center;border:var(--drp-nav-border);border-radius:var(--drp-border-radius);background:transparent;cursor:pointer;font-size:var(--drp-font-size-lg);color:var(--drp-nav-text-color)}.drp-date-picker__nav:hover{background-color:var(--drp-nav-bg-hover);border:var(--drp-nav-border-hover-full)}.drp-date-picker__nav:active{background-color:var(--drp-nav-bg-active)}.drp-date-picker__nav--disabled,.drp-date-picker__nav[disabled]{opacity:var(--drp-opacity-disabled);cursor:not-allowed;pointer-events:none}.drp-date-picker__nav--disabled:hover,.drp-date-picker__nav[disabled]:hover{background-color:transparent;border:var(--drp-nav-border)}.drp-date-picker__nav--prev:before{content:"‹"}.drp-date-picker__nav--next:before{content:"›"}.drp-date-picker__rolling-selector{position:absolute;top:0;right:0;bottom:0;left:0;display:none;z-index:10;gap:var(--drp-spacing-xs)}.drp-date-picker__rolling-selector.drp-date-picker__rolling-selector--visible{display:flex}.drp-date-picker__rolling-selector.drp-date-picker__rolling-selector--visible~.drp-date-picker__weekdays,.drp-date-picker__rolling-selector.drp-date-picker__rolling-selector--visible~.drp-date-picker__days{visibility:hidden}.drp-date-picker__rolling-list{flex:1;min-width:0;height:100%;overflow-y:auto;border:var(--drp-rolling-border);border-radius:var(--drp-border-radius-lg);display:flex;flex-direction:column;scroll-behavior:smooth}.drp-date-picker__rolling-list::-webkit-scrollbar{width:var(--drp-rolling-scrollbar-width)}.drp-date-picker__rolling-list::-webkit-scrollbar-track{background:var(--drp-rolling-bg)}.drp-date-picker__rolling-list::-webkit-scrollbar-thumb{background:var(--drp-rolling-scrollbar-thumb);border-radius:3px}.drp-date-picker__rolling-list::-webkit-scrollbar-thumb:hover{background:var(--drp-rolling-scrollbar-thumb-hover)}.drp-date-picker__rolling-item{padding:var(--drp-rolling-item-padding-v) var(--drp-rolling-item-padding-h);cursor:pointer;font-size:var(--drp-rolling-item-font-size);color:var(--drp-rolling-item-color);min-height:var(--drp-rolling-item-min-height);flex-shrink:0;display:flex;align-items:center;justify-content:var(--drp-rolling-item-justify-content)}.drp-date-picker__rolling-item:hover{background-color:var(--drp-rolling-item-bg-hover)}.drp-date-picker__rolling-item--selected{background-color:var(--drp-rolling-item-bg-selected);color:var(--drp-rolling-item-color-selected);font-weight:var(--drp-rolling-item-font-weight-selected)}.drp-date-picker__rolling-item--selected:hover{background-color:var(--drp-rolling-item-bg-selected-hover)}.drp-date-picker__rolling-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;min-width:0}.drp-date-picker__unified-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--drp-spacing-lg);gap:var(--drp-spacing-sm);padding:0 var(--drp-spacing-sm)}.drp-date-picker__unified-range{flex:1;text-align:center;font-weight:var(--drp-font-weight-semibold);font-size:var(--drp-font-size-lg);color:var(--drp-unified-range-text-color);padding:var(--drp-spacing-sm) var(--drp-spacing-md);border-radius:var(--drp-border-radius);cursor:pointer}.drp-date-picker__unified-range:hover{background-color:var(--drp-unified-range-bg-hover)}.drp-date-picker__unified-range:active{background-color:var(--drp-unified-range-bg-active)}.drp-date-picker__unified-range--static{cursor:default!important}.drp-date-picker__unified-range--static:hover,.drp-date-picker__unified-range--static:active{background-color:transparent}.drp-date-picker__unified-rolling-selector{position:absolute;top:calc(var(--drp-spacing-lg) + var(--drp-spacing-lg) * 2);left:50%;transform:translate(-50%);width:min(90%,450px);height:350px;max-height:350px;display:none;z-index:100;background:var(--drp-dropdown-bg);gap:var(--drp-spacing-xs)}.drp-date-picker__unified-rolling-selector--visible{display:flex}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list{flex:1;min-width:0;height:100%;overflow-y:auto;border:var(--drp-rolling-border);border-radius:var(--drp-border-radius-lg);display:flex;flex-direction:column;scroll-behavior:smooth}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list::-webkit-scrollbar{width:var(--drp-rolling-scrollbar-width)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list::-webkit-scrollbar-track{background:var(--drp-rolling-bg)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list::-webkit-scrollbar-thumb{background:var(--drp-rolling-scrollbar-thumb);border-radius:3px}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list::-webkit-scrollbar-thumb:hover{background:var(--drp-rolling-scrollbar-thumb-hover)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item{padding:var(--drp-rolling-item-padding-v) var(--drp-rolling-item-padding-h);cursor:pointer;font-size:var(--drp-rolling-item-font-size);min-height:var(--drp-rolling-item-min-height);flex-shrink:0;display:flex;align-items:center;justify-content:var(--drp-rolling-item-justify-content)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item:hover{background-color:var(--drp-rolling-item-bg-hover)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item--selected{background-color:var(--drp-rolling-item-bg-selected);color:var(--drp-rolling-item-color-selected);font-weight:var(--drp-rolling-item-font-weight-selected)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item--selected:hover{background-color:var(--drp-rolling-item-bg-selected-hover)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item--disabled{color:var(--drp-unified-rolling-disabled-color);opacity:.4;cursor:not-allowed}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;min-width:0}.drp-date-picker--unified-nav .drp-date-picker__month .drp-date-picker__header .drp-date-picker__nav{display:none}.drp-date-picker--unified-nav .drp-date-picker__month .drp-date-picker__header .drp-date-picker__month-year{cursor:default;font-size:var(--drp-font-size-base);font-weight:var(--drp-font-weight-normal);color:var(--drp-unified-month-color)}.drp-date-picker--unified-nav .drp-date-picker__month .drp-date-picker__header .drp-date-picker__month-year:hover{background-color:transparent}.drp-date-picker--unified-nav .drp-date-picker__month .drp-date-picker__rolling-selector{display:none!important}.drp-date-picker__weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--drp-spacing-xs);margin-bottom:var(--drp-spacing-sm)}.drp-date-picker__weekday{text-align:center;font-size:var(--drp-font-size-xs);font-weight:var(--drp-font-weight-semibold);color:var(--drp-weekday-color);padding:var(--drp-spacing-xs);text-transform:uppercase}.drp-date-picker__days{display:flex;flex-direction:column;gap:var(--drp-spacing-xs);margin-bottom:var(--drp-spacing-md)}.drp-date-picker__date-row{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--drp-spacing-xs)}.drp-date-picker__day{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:var(--drp-font-size-sm);color:var(--drp-day-text-color);border-radius:var(--drp-border-radius-sm);cursor:pointer;border:var(--drp-day-border);position:relative}.drp-date-picker__day:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month){background-color:var(--drp-day-bg-hover);border-color:var(--drp-day-border-hover)}.drp-date-picker__day--today{border-color:var(--drp-day-today-border);font-weight:var(--drp-font-weight-semibold)}.drp-date-picker__day--selected{background-color:var(--drp-day-selected-bg);color:var(--drp-day-selected-color);font-weight:var(--drp-font-weight-semibold)}.drp-date-picker__day--selected:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month){background-color:var(--drp-day-selected-bg-hover);color:var(--drp-day-selected-color-hover)}.drp-date-picker__day--focused{outline:var(--drp-day-focused-outline-width) solid var(--drp-day-focused-outline);outline-offset:var(--drp-day-focused-outline-offset)}.drp-date-picker__day--disabled{color:var(--drp-day-disabled-color);opacity:var(--drp-opacity-disabled);cursor:not-allowed;position:relative;background-color:var(--drp-day-disabled-bg)}.drp-date-picker__day--disabled:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background-image:repeating-linear-gradient(45deg,rgba(0,0,0,var(--drp-day-disabled-pattern-opacity)) 0px,rgba(0,0,0,var(--drp-day-disabled-pattern-opacity)) 1px,transparent 1px,transparent 6px);border-radius:var(--drp-border-radius-sm);pointer-events:none}.drp-date-picker__day--disabled:hover{background-color:transparent;border-color:transparent}.drp-date-picker__day--disabled.drp-date-picker__day--in-range{background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-in-range-bg-opacity) * 100%),transparent)}.drp-date-picker__day--other-month{color:var(--drp-day-other-month-color);opacity:var(--drp-opacity-other-month)}.drp-date-picker__day--other-month.drp-date-picker__day--range-start,.drp-date-picker__day--other-month.drp-date-picker__day--range-end,.drp-date-picker__day--other-month.drp-date-picker__day--in-range,.drp-date-picker__day--other-month.drp-date-picker__day--drag-preview{opacity:1}.drp-date-picker__day--range-start,.drp-date-picker__day--range-end{background-color:var(--drp-day-range-bg);color:var(--drp-day-range-color);font-weight:var(--drp-font-weight-semibold);cursor:grab;-webkit-user-select:none;user-select:none}.drp-date-picker__day--range-start:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month),.drp-date-picker__day--range-end:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month){background-color:var(--drp-day-range-bg-hover);color:var(--drp-day-range-color-hover)}.drp-date-picker__day--range-start:active,.drp-date-picker__day--range-end:active{cursor:grabbing}.drp-date-picker__day--in-range{background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-in-range-bg-opacity) * 100%),transparent)}.drp-date-picker__day--in-range:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month){background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-in-range-hover-bg-opacity) * 100%),transparent)}.drp-date-picker__day--dragging{cursor:grabbing!important;opacity:var(--drp-opacity-dragging);transform:scale(var(--drp-day-dragging-scale));transition:transform var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker__day--drag-preview{background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-drag-preview-bg-opacity) * 100%),transparent);border:var(--drp-day-drag-border)}.drp-date-picker__day--drag-preview.drp-date-picker__day--range-start,.drp-date-picker__day--drag-preview.drp-date-picker__day--range-end{background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-drag-preview-edge-bg-opacity) * 100%),transparent);color:var(--drp-day-range-color)}.drp-date-picker__day--drag-invalid{background-color:color-mix(in srgb,var(--drp-day-drag-invalid-bg) calc(var(--drp-day-drag-invalid-bg-opacity) * 100%),transparent)!important;border-color:var(--drp-day-drag-invalid-bg)!important;border-style:dashed!important}.drp-date-picker__day--invalid-range{background-color:color-mix(in srgb,var(--drp-message-error-border) 20%,transparent)}.drp-date-picker__day--invalid-range-start,.drp-date-picker__day--invalid-range-end{background-color:var(--drp-day-invalid-range-bg);color:var(--drp-day-invalid-range-color);font-weight:var(--drp-font-weight-semibold)}.drp-date-picker__day.holiday{background-color:color-mix(in srgb,var(--drp-holiday-color) calc(var(--drp-holiday-bg-opacity) * 100%),transparent)}.drp-date-picker__day.holiday:hover:not(.drp-date-picker__day--disabled){background-color:color-mix(in srgb,var(--drp-holiday-color) calc(var(--drp-holiday-hover-bg-opacity) * 100%),transparent)}.drp-date-picker__day.event{background-color:color-mix(in srgb,var(--drp-event-color) calc(var(--drp-event-bg-opacity) * 100%),transparent)}.drp-date-picker__day.event:hover:not(.drp-date-picker__day--disabled){background-color:color-mix(in srgb,var(--drp-event-color) calc(var(--drp-event-hover-bg-opacity) * 100%),transparent)}.drp-date-picker__rolling-item--disabled{color:var(--drp-unified-rolling-disabled-color);opacity:.4;cursor:not-allowed;pointer-events:none;text-decoration:line-through}.drp-date-picker__rolling-item--disabled:hover{background-color:transparent}.drp-date-picker__badge-row{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--drp-spacing-xs);max-height:var(--drp-badge-row-height);min-height:var(--drp-badge-row-height)}.drp-date-picker__badge-cell{display:flex;align-items:center;justify-content:center;font-size:var(--drp-font-size-2xs);padding:var(--drp-badge-padding-v) var(--drp-badge-padding-h);border-radius:var(--drp-badge-border-radius);cursor:pointer;max-height:var(--drp-badge-row-height)}.drp-date-picker__badge-cell:empty{visibility:hidden}.drp-date-picker__badge-cell:hover:not(:empty){transform:scale(1.05)}.drp-date-picker__badge-cell.badge-number{background-color:var(--drp-badge-number-bg);color:var(--drp-badge-number-color);font-size:calc(1.12 * var(--drp-rem));font-weight:600}.drp-date-picker__badge-cell.badge-count{background-color:var(--drp-badge-count-bg);color:var(--drp-badge-count-color);font-size:calc(1.12 * var(--drp-rem));font-weight:700}.drp-date-picker__badge-cell.badge-text{background-color:var(--drp-badge-text-bg);color:var(--drp-badge-text-color);font-size:calc(1.04 * var(--drp-rem));font-weight:700;text-transform:uppercase}.drp-date-picker__summary{text-align:center;padding:0;margin:0;margin-bottom:var(--drp-spacing-sm);border-top:var(--drp-summary-border);font-size:var(--drp-font-size-sm);color:var(--drp-summary-text-color)}.drp-date-picker__summary--visible{display:block}.drp-date-picker__summary--hidden{display:none}.drp-date-picker__summary-count{font-weight:var(--drp-font-weight-semibold);color:var(--drp-summary-count-color);font-size:var(--drp-font-size-base)}.drp-date-picker__actions{display:flex;gap:var(--drp-spacing-sm);justify-content:space-between;padding-top:var(--drp-spacing-sm);border-top:var(--drp-summary-border)}.drp-date-picker__button{flex:1;padding:var(--drp-spacing-sm) var(--drp-spacing-md);border:var(--drp-button-border);border-radius:var(--drp-border-radius);background:var(--drp-button-bg);color:var(--drp-button-color);cursor:pointer;font-family:inherit;font-size:var(--drp-font-size-sm);font-weight:var(--drp-font-weight-medium)}.drp-date-picker__button:hover{background-color:var(--drp-button-bg-hover);border:var(--drp-button-border-hover-full)}.drp-date-picker__button:disabled,.drp-date-picker__button[disabled]{opacity:var(--drp-opacity-disabled);cursor:not-allowed;pointer-events:none}.drp-date-picker__button:disabled:hover,.drp-date-picker__button[disabled]:hover{background-color:var(--drp-button-bg);border:var(--drp-button-border)}.drp-date-picker__button--today{color:var(--drp-button-today-color)}.drp-date-picker__button--clear{color:var(--drp-button-clear-color)}.drp-date-picker__button--apply{background-color:var(--drp-button-apply-bg);color:var(--drp-button-apply-color);border-color:var(--drp-button-apply-border)}.drp-date-picker__button--apply:hover{background-color:var(--drp-button-apply-bg-hover)}.drp-date-picker__button--cancel{color:var(--drp-button-cancel-color)}.drp-date-picker__tooltip{position:absolute;z-index:var(--drp-z-index-tooltip);background-color:var(--drp-tooltip-bg);color:var(--drp-tooltip-text-color);padding:var(--drp-spacing-xs) var(--drp-spacing-sm);border-radius:var(--drp-border-radius-sm);font-size:var(--drp-font-size-xs);line-height:var(--drp-tooltip-line-height);max-width:var(--drp-tooltip-max-width);word-wrap:break-word;pointer-events:none;opacity:0;transition:opacity var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker__tooltip--visible{opacity:1}.drp-date-picker__tooltip-arrow{position:absolute;background-color:var(--drp-tooltip-bg);width:var(--drp-tooltip-arrow-size);height:var(--drp-tooltip-arrow-size);transform:rotate(45deg)}.drp-date-picker__loading-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background-color:var(--drp-loading-overlay-bg);display:flex;align-items:center;justify-content:center;z-index:var(--drp-z-index-dropdown);border-radius:var(--drp-border-radius-lg)}.drp-date-picker__loading-spinner{width:var(--drp-loading-spinner-size);height:var(--drp-loading-spinner-size);border:var(--drp-loading-spinner-border-width) solid var(--drp-loading-spinner-color);border-top-color:var(--drp-loading-spinner-accent);border-radius:50%;animation:drp-spin .8s linear infinite}@keyframes drp-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.drp-date-picker__message{display:none;align-items:center;gap:var(--drp-spacing-sm);padding:var(--drp-spacing-sm) var(--drp-spacing-md);margin:0;margin-bottom:var(--drp-spacing-sm);border-radius:var(--drp-border-radius);font-size:var(--drp-font-size-sm);line-height:var(--drp-line-height-normal)}.drp-date-picker__message--visible{display:flex}.drp-date-picker__message-text{flex:1}.drp-date-picker__message-close{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:calc(2 * var(--drp-rem));height:calc(2 * var(--drp-rem));padding:0;border:none;background:transparent;font-size:var(--drp-font-size-lg);line-height:1;cursor:pointer;opacity:.6;transition:opacity var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker__message-close:hover{opacity:1}.drp-date-picker__message--error{background-color:var(--drp-message-error-bg);color:var(--drp-message-error-color);border:1px solid var(--drp-message-error-border)}.drp-date-picker__message--error .drp-date-picker__message-close{color:var(--drp-message-error-color)}.drp-date-picker__message--warning{background-color:var(--drp-message-warning-bg);color:var(--drp-message-warning-color);border:1px solid var(--drp-message-warning-border)}.drp-date-picker__message--warning .drp-date-picker__message-close{color:var(--drp-message-warning-color)}.drp-date-picker__message--info{background-color:var(--drp-message-info-bg);color:var(--drp-message-info-color);border:1px solid var(--drp-message-info-border)}.drp-date-picker__message--info .drp-date-picker__message-close{color:var(--drp-message-info-color)}.drp-date-picker__message--success{background-color:var(--drp-message-success-bg);color:var(--drp-message-success-color);border:1px solid var(--drp-message-success-border)}.drp-date-picker__message--success .drp-date-picker__message-close{color:var(--drp-message-success-color)}.drp-date-picker__message--custom{background:transparent;border:none;padding:0;margin:0;margin-bottom:var(--drp-spacing-sm)}.drp-date-picker__message--custom .drp-date-picker__message-close{display:none}.drp-date-picker.drp-transitions-enabled .drp-date-picker__badge-cell{transition:transform var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker.drp-transitions-enabled .drp-date-picker__nav,.drp-date-picker.drp-transitions-enabled .drp-date-picker__action-btn{transition:background-color var(--drp-transition-fast) var(--drp-easing-snappy),border-color var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker.drp-transitions-enabled .drp-date-picker__month-year,.drp-date-picker.drp-transitions-enabled .drp-date-picker__rolling-item{transition:background-color var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker--inline{position:static;display:block;box-shadow:none}', K = class K {
2943
+ const ca = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(--base-font-family, inherit));--drp-spacing-xs: calc(.4 * var(--drp-rem));--drp-spacing-sm: calc(.8 * var(--drp-rem));--drp-spacing-md: calc(1.6 * var(--drp-rem));--drp-spacing-lg: calc(2.4 * var(--drp-rem));--drp-spacing-xl: calc(3.2 * var(--drp-rem));--drp-font-size-2xs: calc(var(--base-font-size-2xs, 1) * var(--drp-rem));--drp-font-size-xs: calc(var(--base-font-size-xs, 1.2) * var(--drp-rem));--drp-font-size-sm: calc(var(--base-font-size-sm, 1.4) * var(--drp-rem));--drp-font-size-base: calc(var(--base-font-size-base, 1.6) * var(--drp-rem));--drp-font-size-lg: calc(var(--base-font-size-lg, 1.8) * var(--drp-rem));--drp-font-size-xl: calc(var(--base-font-size-xl, 2) * var(--drp-rem));--drp-font-size-2xl: calc(var(--base-font-size-2xl, 2.4) * var(--drp-rem));--drp-font-weight-normal: var(--base-font-weight-normal, 400);--drp-font-weight-medium: var(--base-font-weight-medium, 500);--drp-font-weight-semibold: var(--base-font-weight-semibold, 600);--drp-line-height-tight: var(--base-line-height-tight, 1.25);--drp-line-height-normal: var(--base-line-height-normal, 1.5);--drp-line-height-relaxed: var(--base-line-height-relaxed, 1.75);--drp-dropdown-bg: var(--base-dropdown-bg, #ffffff);--drp-border-color: var(--base-border-color, #e5e7eb);--drp-border: var(--base-border, var(--drp-border-width-base) solid var(--drp-border-color));--drp-primary-bg: var(--base-main-bg, #f3f4f6);--drp-primary-bg-hover: var(--base-hover-bg, #e5e7eb);--drp-accent-color: var(--base-accent-color, #3b82f6);--drp-accent-color-hover: var(--base-accent-color-hover, #2563eb);--drp-text-primary: var(--base-text-color-1, #111827);--drp-text-secondary: var(--base-text-color-3, #6b7280);--drp-text-color-on-accent: var(--base-text-color-on-accent, #ffffff);--drp-button-accent-text-color: var(--drp-text-color-on-accent);--drp-tooltip-bg: var(--base-tooltip-bg, #111827);--drp-tooltip-text-color: var(--base-tooltip-text-color, #ffffff);--drp-loading-overlay-bg: rgba(255, 255, 255, .8);--drp-loading-spinner-size: 40px;--drp-loading-spinner-border-width: 4px;--drp-loading-spinner-color: var(--drp-border-color);--drp-loading-spinner-accent: var(--drp-accent-color);--drp-border-width-base: 1px;--drp-border-radius-sm: calc(var(--base-border-radius-sm, .4) * var(--drp-rem));--drp-border-radius-md: calc(var(--base-border-radius-md, .6) * var(--drp-rem));--drp-border-radius-lg: calc(var(--base-border-radius-lg, .8) * var(--drp-rem));--drp-border-radius: var(--drp-border-radius-md);--drp-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--drp-transition-fast: .15s;--drp-easing-snappy: cubic-bezier(.4, 0, .2, 1);--drp-z-index-dropdown: 9500;--drp-z-index-modal-backdrop: 9700;--drp-z-index-modal: 9800;--drp-z-index-tooltip: 9999;--drp-modal-gap: 16px;--drp-modal-backdrop-bg: rgba(0, 0, 0, .45);--drp-modal-transition: .15s ease-out;--drp-modal-width-xs: calc(100vw - 2 * var(--drp-modal-gap));--drp-modal-width-sm: calc(100vw - 2 * var(--drp-modal-gap));--drp-modal-width-md: 900px;--drp-modal-width-lg: 1100px;--drp-input-padding-h: calc(1.2 * var(--drp-rem));--drp-grid-columns: 3;--drp-grid-rows: 2;--drp-opacity-disabled: .6;--drp-opacity-other-month: .5;--drp-opacity-hover: .8;--drp-opacity-dragging: .7;--drp-input-bg: var(--base-input-bg, var(--drp-dropdown-bg));--drp-input-color: var(--base-input-color, var(--drp-text-primary));--drp-input-border: var(--base-input-border, var(--drp-border));--drp-input-border-hover: var(--base-input-border-hover, var(--drp-border-width-base) solid var(--drp-accent-color));--drp-input-border-focus: var(--base-input-border-focus, var(--drp-border-width-base) solid var(--drp-accent-color));--drp-input-placeholder-color: var(--base-input-placeholder-color, var(--drp-text-secondary));--drp-input-bg-disabled: var(--base-input-bg-disabled, var(--drp-primary-bg));--drp-input-focus-shadow-color: rgba(59, 130, 246, .1);--drp-input-focus-shadow-size: 3px;--drp-input-icon-opacity: .6;--drp-input-size-xs-font: var(--drp-font-size-xs);--drp-input-size-xs-padding-v: var(--drp-spacing-xs);--drp-input-size-xs-padding-h: calc(.8 * var(--drp-rem));--drp-input-size-xs-height: calc(var(--base-input-size-xs-height, 3.1) * var(--drp-rem));--drp-input-size-xs-icon-size: .75em;--drp-input-size-sm-font: calc(1.3 * var(--drp-rem));--drp-input-size-sm-padding-v: calc(.5 * var(--drp-rem));--drp-input-size-sm-padding-h: var(--drp-spacing-sm);--drp-input-size-sm-height: calc(var(--base-input-size-sm-height, 3.3) * var(--drp-rem));--drp-input-size-sm-icon-size: .875em;--drp-input-size-md-font: calc(1.4 * var(--drp-rem));--drp-input-size-md-padding-v: var(--drp-spacing-sm);--drp-input-size-md-padding-h: calc(1.2 * var(--drp-rem));--drp-input-size-md-height: calc(var(--base-input-size-md-height, 3.5) * var(--drp-rem));--drp-input-size-md-icon-size: 1em;--drp-input-size-lg-font: calc(1.6 * var(--drp-rem));--drp-input-size-lg-padding-v: calc(1 * var(--drp-rem));--drp-input-size-lg-padding-h: calc(1.4 * var(--drp-rem));--drp-input-size-lg-height: calc(var(--base-input-size-lg-height, 3.8) * var(--drp-rem));--drp-input-size-lg-icon-size: 1.125em;--drp-input-size-xl-font: calc(1.8 * var(--drp-rem));--drp-input-size-xl-padding-v: calc(1.2 * var(--drp-rem));--drp-input-size-xl-padding-h: calc(1.6 * var(--drp-rem));--drp-input-size-xl-height: calc(var(--base-input-size-xl-height, 4.1) * var(--drp-rem));--drp-input-size-xl-icon-size: 1.25em;--drp-header-text-color: var(--drp-text-primary);--drp-header-bg-hover: var(--drp-primary-bg);--drp-header-bg-active: var(--drp-primary-bg-hover);--drp-nav-text-color: var(--drp-text-primary);--drp-nav-border-color: var(--drp-border-color);--drp-nav-border: var(--drp-border-width-base) solid var(--drp-nav-border-color);--drp-nav-bg-hover: var(--drp-primary-bg);--drp-nav-bg-active: var(--drp-primary-bg-hover);--drp-nav-border-hover: var(--drp-accent-color);--drp-nav-border-hover-full: var(--drp-border-width-base) solid var(--drp-nav-border-hover);--drp-nav-size: calc(3.2 * var(--drp-rem));--drp-rolling-bg: var(--drp-primary-bg);--drp-rolling-border-color: var(--drp-border-color);--drp-rolling-border: var(--drp-border-width-base) solid var(--drp-rolling-border-color);--drp-rolling-scrollbar-width: 6px;--drp-rolling-scrollbar-thumb: var(--drp-border-color);--drp-rolling-scrollbar-thumb-hover: var(--drp-accent-color);--drp-rolling-item-bg-hover: var(--drp-primary-bg);--drp-rolling-item-color: var(--drp-text-primary);--drp-rolling-item-bg-selected: var(--drp-accent-color);--drp-rolling-item-color-selected: var(--drp-text-color-on-accent);--drp-rolling-item-bg-selected-hover: var(--drp-accent-color-hover);--drp-rolling-item-justify-content: center;--drp-rolling-item-min-height: calc(3.2 * var(--drp-rem));--drp-rolling-item-padding-v: var(--drp-spacing-xs);--drp-rolling-item-padding-h: var(--drp-spacing-md);--drp-rolling-item-font-size: var(--drp-font-size-sm);--drp-rolling-item-font-weight-selected: var(--drp-font-weight-semibold);--drp-weekday-color: var(--drp-text-secondary);--drp-day-text-color: var(--drp-text-primary);--drp-day-bg-hover: var(--drp-primary-bg);--drp-day-border-hover: var(--drp-accent-color);--drp-day-today-border: var(--drp-accent-color);--drp-day-selected-bg: var(--drp-accent-color);--drp-day-selected-color: var(--drp-text-color-on-accent);--drp-day-selected-bg-hover: var(--drp-accent-color-hover);--drp-day-selected-color-hover: var(--drp-day-selected-color);--drp-day-focused-outline: var(--drp-accent-color);--drp-day-disabled-color: var(--drp-text-secondary);--drp-day-disabled-bg: var(--base-disabled-bg, transparent);--drp-day-other-month-color: var(--drp-text-secondary);--drp-day-range-bg: var(--drp-accent-color);--drp-day-range-bg-hover: var(--drp-accent-color-hover);--drp-day-range-color: var(--drp-text-color-on-accent);--drp-day-range-color-hover: var(--drp-day-range-color);--drp-day-border-width: 2px;--drp-day-border-color: transparent;--drp-day-border: var(--drp-day-border-width) solid var(--drp-day-border-color);--drp-day-focused-outline-width: 2px;--drp-day-focused-outline-offset: 2px;--drp-day-in-range-bg-opacity: .15;--drp-day-in-range-hover-bg-opacity: .25;--drp-day-drag-preview-bg-opacity: .3;--drp-day-drag-preview-edge-bg-opacity: .6;--drp-day-invalid-range-bg: var(--drp-message-error-border);--drp-day-invalid-range-color: var(--drp-text-color-on-accent);--drp-day-disabled-pattern-opacity: .1;--drp-day-dragging-scale: 1.1;--drp-day-drag-preview-border-style: dashed;--drp-day-drag-border: var(--drp-day-border-width) var(--drp-day-drag-preview-border-style) var(--drp-day-range-bg);--drp-day-drag-invalid-bg: #ef4444;--drp-day-drag-invalid-bg-opacity: .2;--drp-holiday-color: #ef4444;--drp-holiday-bg-opacity: .1;--drp-holiday-hover-bg-opacity: .2;--drp-event-color: #10b981;--drp-event-bg-opacity: .1;--drp-event-hover-bg-opacity: .2;--drp-summary-text-color: var(--drp-text-secondary);--drp-summary-border-color: var(--drp-border-color);--drp-summary-border: var(--drp-border-width-base) solid var(--drp-summary-border-color);--drp-summary-count-color: var(--drp-accent-color);--drp-button-border-color: var(--drp-border-color);--drp-button-border: var(--drp-border-width-base) solid var(--drp-button-border-color);--drp-button-bg: transparent;--drp-button-bg-hover: var(--drp-primary-bg);--drp-button-color: var(--drp-text-primary);--drp-button-border-hover: var(--drp-accent-color);--drp-button-border-hover-full: var(--drp-border-width-base) solid var(--drp-button-border-hover);--drp-button-today-color: var(--drp-accent-color);--drp-button-clear-color: var(--drp-text-secondary);--drp-button-cancel-color: var(--drp-text-secondary);--drp-button-apply-bg: var(--drp-accent-color);--drp-button-apply-color: var(--drp-button-accent-text-color);--drp-button-apply-border: var(--drp-accent-color);--drp-button-apply-bg-hover: var(--drp-accent-color-hover);--drp-badge-font-size: var(--drp-font-size-2xs);--drp-badge-padding-v: 1px;--drp-badge-padding-h: 2px;--drp-badge-border-radius: 2px;--drp-badge-max-height: var(--drp-font-size-base);--drp-badge-row-height: var(--drp-badge-max-height);--drp-badge-number-bg: var(--drp-accent-color);--drp-badge-number-color: var(--drp-text-color-on-accent);--drp-badge-count-bg: #ef4444;--drp-badge-count-color: #ffffff;--drp-badge-text-bg: var(--drp-text-secondary);--drp-badge-text-color: #ffffff;--drp-unified-range-text-color: var(--drp-text-primary);--drp-unified-range-bg-hover: var(--drp-primary-bg);--drp-unified-range-bg-active: var(--drp-primary-bg-hover);--drp-unified-month-color: var(--drp-text-secondary);--drp-unified-rolling-disabled-color: var(--drp-text-secondary);--drp-tooltip-line-height: 1.4;--drp-tooltip-max-width: 200px;--drp-tooltip-arrow-size: 8px;--drp-message-error-bg: #fef2f2;--drp-message-error-color: #991b1b;--drp-message-error-border: #fecaca;--drp-message-warning-bg: #fffbeb;--drp-message-warning-color: #92400e;--drp-message-warning-border: #fde68a;--drp-message-info-bg: #eff6ff;--drp-message-info-color: #1e40af;--drp-message-info-border: #bfdbfe;--drp-message-success-bg: #f0fdf4;--drp-message-success-color: #166534;--drp-message-success-border: #bbf7d0;--drp-month-min-width: 280px;--drp-month-min-width-inline: 250px;--drp-calendar-max-width: calc(100vw - 2rem) }.drp-input{width:100%;font-family:var(--drp-font-family, var(--base-font-family, inherit));font-size:var(--drp-input-size-md-font);line-height:var(--drp-line-height-normal);color:var(--drp-input-color);background-color:var(--drp-input-bg);border:var(--drp-input-border);border-radius:var(--drp-border-radius);padding:var(--drp-input-size-md-padding-v) var(--drp-input-size-md-padding-h);padding-right:calc(var(--drp-input-size-md-padding-h) * 2.5);height:var(--drp-input-size-md-height);box-sizing:border-box;transition:border-color var(--drp-transition-fast) var(--drp-easing-snappy),box-shadow var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-input::placeholder{color:var(--drp-input-placeholder-color);opacity:.6}.drp-input:hover:not(:disabled){border:var(--drp-input-border-hover)}.drp-input:focus{outline:none;border:var(--drp-input-border-focus);box-shadow:0 0 0 var(--drp-input-focus-shadow-size) var(--drp-input-focus-shadow-color)}.drp-input:disabled{opacity:var(--drp-opacity-disabled);cursor:not-allowed;background-color:var(--drp-input-bg-disabled)}.drp-input.drp-input--xs{font-size:var(--drp-input-size-xs-font);padding:var(--drp-input-size-xs-padding-v) var(--drp-input-size-xs-padding-h);padding-right:calc(var(--drp-input-size-xs-padding-h) * 2.5);height:var(--drp-input-size-xs-height)}.drp-input.drp-input--sm{font-size:var(--drp-input-size-sm-font);padding:var(--drp-input-size-sm-padding-v) var(--drp-input-size-sm-padding-h);padding-right:calc(var(--drp-input-size-sm-padding-h) * 2.5);height:var(--drp-input-size-sm-height)}.drp-input.drp-input--lg{font-size:var(--drp-input-size-lg-font);padding:var(--drp-input-size-lg-padding-v) var(--drp-input-size-lg-padding-h);padding-right:calc(var(--drp-input-size-lg-padding-h) * 2.5);height:var(--drp-input-size-lg-height)}.drp-input.drp-input--xl{font-size:var(--drp-input-size-xl-font);padding:var(--drp-input-size-xl-padding-v) var(--drp-input-size-xl-padding-h);padding-right:calc(var(--drp-input-size-xl-padding-h) * 2.5);height:var(--drp-input-size-xl-height)}.drp-date-picker-input{position:relative;cursor:pointer;display:inline-block;width:100%}.drp-date-picker-input:after{content:"📅";position:absolute;right:var(--drp-input-size-md-padding-h);top:50%;transform:translateY(-50%);pointer-events:none;opacity:var(--drp-input-icon-opacity);font-size:var(--drp-input-size-md-icon-size)}.drp-date-picker-input.drp-date-picker-input--xs:after{right:var(--drp-input-size-xs-padding-h);font-size:var(--drp-input-size-xs-icon-size)}.drp-date-picker-input.drp-date-picker-input--sm:after{right:var(--drp-input-size-sm-padding-h);font-size:var(--drp-input-size-sm-icon-size)}.drp-date-picker-input.drp-date-picker-input--lg:after{right:var(--drp-input-size-lg-padding-h);font-size:var(--drp-input-size-lg-icon-size)}.drp-date-picker-input.drp-date-picker-input--xl:after{right:var(--drp-input-size-xl-padding-h);font-size:var(--drp-input-size-xl-icon-size)}.drp-date-picker{position:absolute;z-index:var(--drp-z-index-dropdown);font-family:var(--drp-font-family, var(--base-font-family, inherit));background:var(--drp-dropdown-bg);border:var(--drp-border);border-radius:var(--drp-border-radius-lg);box-shadow:var(--drp-shadow-xl);padding:var(--drp-spacing-md);min-width:var(--drp-month-min-width);max-width:var(--drp-calendar-max-width);box-sizing:border-box;-webkit-user-select:none;user-select:none}.drp-date-picker:not(.drp-date-picker--inline){display:flex;flex-direction:column;overflow:hidden}.drp-date-picker:not(.drp-date-picker--inline)>.drp-date-picker__months,.drp-date-picker:not(.drp-date-picker--inline)>.drp-date-picker__months--grid{flex:1 1 auto;min-height:0;overflow-y:auto}.drp-date-picker:not(.drp-date-picker--inline)>.drp-date-picker__unified-header,.drp-date-picker:not(.drp-date-picker--inline)>.drp-date-picker__summary,.drp-date-picker:not(.drp-date-picker--inline)>.drp-date-picker__actions{flex-shrink:0}.drp-date-picker:not(.drp-date-picker--inline) .drp-date-picker__month .drp-date-picker__header{position:sticky;top:0;background:var(--drp-dropdown-bg);z-index:2}.drp-date-picker:not(.drp-date-picker--visible){display:none}.drp-date-picker--inline{position:relative!important;display:block!important;z-index:auto;min-width:0;max-width:100%;width:fit-content;box-sizing:border-box}.drp-date-picker__months{display:flex;gap:var(--drp-spacing-lg)}.drp-date-picker--inline .drp-date-picker__months{flex-wrap:wrap}.drp-date-picker__months--grid{display:grid;grid-template-columns:repeat(var(--drp-grid-columns, 3),minmax(0,1fr));grid-template-rows:repeat(var(--drp-grid-rows, 2),auto);gap:var(--drp-spacing-lg);width:100%}@media (max-width: 1200px){.drp-date-picker__months--grid{grid-template-columns:repeat(min(var(--drp-grid-columns, 3),3),minmax(0,1fr))}}@media (max-width: 768px){.drp-date-picker__months--grid{grid-template-columns:repeat(min(var(--drp-grid-columns, 3),2),minmax(0,1fr))}}@media (max-width: 480px){.drp-date-picker__months--grid{grid-template-columns:minmax(0,1fr)}}.drp-date-picker__month{flex:1;min-width:var(--drp-month-min-width);display:flex;flex-direction:column}.drp-date-picker--inline .drp-date-picker__month{min-width:var(--drp-month-min-width-inline)}.drp-date-picker__months--grid .drp-date-picker__month{min-width:0;width:100%}.drp-date-picker__calendar-container{position:relative;flex:1;display:flex;flex-direction:column;min-height:0}.drp-date-picker__header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--drp-spacing-md);gap:var(--drp-spacing-sm)}.drp-date-picker__header--static{justify-content:center}.drp-date-picker__header--static .drp-date-picker__month-year{cursor:default}.drp-date-picker__header--static .drp-date-picker__month-year:hover{background-color:transparent}.drp-date-picker__month-year{flex:1;text-align:center;font-weight:var(--drp-font-weight-semibold);font-size:var(--drp-font-size-base);color:var(--drp-header-text-color);padding:var(--drp-spacing-sm) var(--drp-spacing-md);border-radius:var(--drp-border-radius);cursor:pointer}.drp-date-picker__month-year:hover{background-color:var(--drp-header-bg-hover)}.drp-date-picker__month-year:active{background-color:var(--drp-header-bg-active)}.drp-date-picker__nav{width:var(--drp-nav-size);height:var(--drp-nav-size);display:flex;align-items:center;justify-content:center;border:var(--drp-nav-border);border-radius:var(--drp-border-radius);background:transparent;cursor:pointer;font-size:var(--drp-font-size-lg);color:var(--drp-nav-text-color)}.drp-date-picker__nav:hover{background-color:var(--drp-nav-bg-hover);border:var(--drp-nav-border-hover-full)}.drp-date-picker__nav:active{background-color:var(--drp-nav-bg-active)}.drp-date-picker__nav--disabled,.drp-date-picker__nav[disabled]{opacity:var(--drp-opacity-disabled);cursor:not-allowed;pointer-events:none}.drp-date-picker__nav--disabled:hover,.drp-date-picker__nav[disabled]:hover{background-color:transparent;border:var(--drp-nav-border)}.drp-date-picker__nav--prev:before{content:"‹"}.drp-date-picker__nav--next:before{content:"›"}.drp-date-picker__rolling-selector{position:absolute;top:0;right:0;bottom:0;left:0;display:none;z-index:10;gap:var(--drp-spacing-xs)}.drp-date-picker__rolling-selector.drp-date-picker__rolling-selector--visible{display:flex}.drp-date-picker__rolling-selector.drp-date-picker__rolling-selector--visible~.drp-date-picker__weekdays,.drp-date-picker__rolling-selector.drp-date-picker__rolling-selector--visible~.drp-date-picker__days{visibility:hidden}.drp-date-picker__rolling-list{flex:1;min-width:0;height:100%;overflow-y:auto;border:var(--drp-rolling-border);border-radius:var(--drp-border-radius-lg);display:flex;flex-direction:column;scroll-behavior:smooth}.drp-date-picker__rolling-list::-webkit-scrollbar{width:var(--drp-rolling-scrollbar-width)}.drp-date-picker__rolling-list::-webkit-scrollbar-track{background:var(--drp-rolling-bg)}.drp-date-picker__rolling-list::-webkit-scrollbar-thumb{background:var(--drp-rolling-scrollbar-thumb);border-radius:3px}.drp-date-picker__rolling-list::-webkit-scrollbar-thumb:hover{background:var(--drp-rolling-scrollbar-thumb-hover)}.drp-date-picker__rolling-item{padding:var(--drp-rolling-item-padding-v) var(--drp-rolling-item-padding-h);cursor:pointer;font-size:var(--drp-rolling-item-font-size);color:var(--drp-rolling-item-color);min-height:var(--drp-rolling-item-min-height);flex-shrink:0;display:flex;align-items:center;justify-content:var(--drp-rolling-item-justify-content)}.drp-date-picker__rolling-item:hover{background-color:var(--drp-rolling-item-bg-hover)}.drp-date-picker__rolling-item--selected{background-color:var(--drp-rolling-item-bg-selected);color:var(--drp-rolling-item-color-selected);font-weight:var(--drp-rolling-item-font-weight-selected)}.drp-date-picker__rolling-item--selected:hover{background-color:var(--drp-rolling-item-bg-selected-hover)}.drp-date-picker__rolling-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;min-width:0}.drp-date-picker__unified-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--drp-spacing-lg);gap:var(--drp-spacing-sm);padding:0 var(--drp-spacing-sm)}.drp-date-picker__unified-range{flex:1;text-align:center;font-weight:var(--drp-font-weight-semibold);font-size:var(--drp-font-size-lg);color:var(--drp-unified-range-text-color);padding:var(--drp-spacing-sm) var(--drp-spacing-md);border-radius:var(--drp-border-radius);cursor:pointer}.drp-date-picker__unified-range:hover{background-color:var(--drp-unified-range-bg-hover)}.drp-date-picker__unified-range:active{background-color:var(--drp-unified-range-bg-active)}.drp-date-picker__unified-range--static{cursor:default!important}.drp-date-picker__unified-range--static:hover,.drp-date-picker__unified-range--static:active{background-color:transparent}.drp-date-picker__unified-rolling-selector{position:absolute;top:calc(var(--drp-spacing-lg) + var(--drp-spacing-lg) * 2);left:50%;transform:translate(-50%);width:min(90%,450px);height:350px;max-height:350px;display:none;z-index:100;background:var(--drp-dropdown-bg);gap:var(--drp-spacing-xs)}.drp-date-picker__unified-rolling-selector--visible{display:flex}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list{flex:1;min-width:0;height:100%;overflow-y:auto;border:var(--drp-rolling-border);border-radius:var(--drp-border-radius-lg);display:flex;flex-direction:column;scroll-behavior:smooth}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list::-webkit-scrollbar{width:var(--drp-rolling-scrollbar-width)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list::-webkit-scrollbar-track{background:var(--drp-rolling-bg)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list::-webkit-scrollbar-thumb{background:var(--drp-rolling-scrollbar-thumb);border-radius:3px}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-list::-webkit-scrollbar-thumb:hover{background:var(--drp-rolling-scrollbar-thumb-hover)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item{padding:var(--drp-rolling-item-padding-v) var(--drp-rolling-item-padding-h);cursor:pointer;font-size:var(--drp-rolling-item-font-size);min-height:var(--drp-rolling-item-min-height);flex-shrink:0;display:flex;align-items:center;justify-content:var(--drp-rolling-item-justify-content)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item:hover{background-color:var(--drp-rolling-item-bg-hover)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item--selected{background-color:var(--drp-rolling-item-bg-selected);color:var(--drp-rolling-item-color-selected);font-weight:var(--drp-rolling-item-font-weight-selected)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item--selected:hover{background-color:var(--drp-rolling-item-bg-selected-hover)}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item--disabled{color:var(--drp-unified-rolling-disabled-color);opacity:.4;cursor:not-allowed}.drp-date-picker__unified-rolling-selector .drp-date-picker__rolling-item-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;min-width:0}.drp-date-picker--unified-nav .drp-date-picker__month .drp-date-picker__header .drp-date-picker__nav{display:none}.drp-date-picker--unified-nav .drp-date-picker__month .drp-date-picker__header .drp-date-picker__month-year{cursor:default;font-size:var(--drp-font-size-base);font-weight:var(--drp-font-weight-normal);color:var(--drp-unified-month-color)}.drp-date-picker--unified-nav .drp-date-picker__month .drp-date-picker__header .drp-date-picker__month-year:hover{background-color:transparent}.drp-date-picker--unified-nav .drp-date-picker__month .drp-date-picker__rolling-selector{display:none!important}.drp-date-picker__weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--drp-spacing-xs);margin-bottom:var(--drp-spacing-sm)}.drp-date-picker__weekday{text-align:center;font-size:var(--drp-font-size-xs);font-weight:var(--drp-font-weight-semibold);color:var(--drp-weekday-color);padding:var(--drp-spacing-xs);text-transform:uppercase}.drp-date-picker__days{display:flex;flex-direction:column;gap:var(--drp-spacing-xs);margin-bottom:var(--drp-spacing-md)}.drp-date-picker__date-row{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--drp-spacing-xs)}.drp-date-picker__day{aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:var(--drp-font-size-sm);color:var(--drp-day-text-color);border-radius:var(--drp-border-radius-sm);cursor:pointer;border:var(--drp-day-border);position:relative}.drp-date-picker__day:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month){background-color:var(--drp-day-bg-hover);border-color:var(--drp-day-border-hover)}.drp-date-picker__day--today{border-color:var(--drp-day-today-border);font-weight:var(--drp-font-weight-semibold)}.drp-date-picker__day--selected{background-color:var(--drp-day-selected-bg);color:var(--drp-day-selected-color);font-weight:var(--drp-font-weight-semibold)}.drp-date-picker__day--selected:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month){background-color:var(--drp-day-selected-bg-hover);color:var(--drp-day-selected-color-hover)}.drp-date-picker__day--focused{outline:var(--drp-day-focused-outline-width) solid var(--drp-day-focused-outline);outline-offset:var(--drp-day-focused-outline-offset)}.drp-date-picker__day--disabled{color:var(--drp-day-disabled-color);opacity:var(--drp-opacity-disabled);cursor:not-allowed;position:relative;background-color:var(--drp-day-disabled-bg)}.drp-date-picker__day--disabled:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background-image:repeating-linear-gradient(45deg,rgba(0,0,0,var(--drp-day-disabled-pattern-opacity)) 0px,rgba(0,0,0,var(--drp-day-disabled-pattern-opacity)) 1px,transparent 1px,transparent 6px);border-radius:var(--drp-border-radius-sm);pointer-events:none}.drp-date-picker__day--disabled:hover{background-color:transparent;border-color:transparent}.drp-date-picker__day--disabled.drp-date-picker__day--in-range{background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-in-range-bg-opacity) * 100%),transparent)}.drp-date-picker__day--other-month{color:var(--drp-day-other-month-color);opacity:var(--drp-opacity-other-month)}.drp-date-picker__day--other-month.drp-date-picker__day--range-start,.drp-date-picker__day--other-month.drp-date-picker__day--range-end,.drp-date-picker__day--other-month.drp-date-picker__day--in-range,.drp-date-picker__day--other-month.drp-date-picker__day--drag-preview{opacity:1}.drp-date-picker__day--range-start,.drp-date-picker__day--range-end{background-color:var(--drp-day-range-bg);color:var(--drp-day-range-color);font-weight:var(--drp-font-weight-semibold);cursor:grab;-webkit-user-select:none;user-select:none}.drp-date-picker__day--range-start:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month),.drp-date-picker__day--range-end:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month){background-color:var(--drp-day-range-bg-hover);color:var(--drp-day-range-color-hover)}.drp-date-picker__day--range-start:active,.drp-date-picker__day--range-end:active{cursor:grabbing}.drp-date-picker__day--in-range{background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-in-range-bg-opacity) * 100%),transparent)}.drp-date-picker__day--in-range:hover:not(.drp-date-picker__day--disabled):not(.drp-date-picker__day--other-month){background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-in-range-hover-bg-opacity) * 100%),transparent)}.drp-date-picker__day--dragging{cursor:grabbing!important;opacity:var(--drp-opacity-dragging);transform:scale(var(--drp-day-dragging-scale));transition:transform var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker__day--drag-preview{background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-drag-preview-bg-opacity) * 100%),transparent);border:var(--drp-day-drag-border)}.drp-date-picker__day--drag-preview.drp-date-picker__day--range-start,.drp-date-picker__day--drag-preview.drp-date-picker__day--range-end{background-color:color-mix(in srgb,var(--drp-day-range-bg) calc(var(--drp-day-drag-preview-edge-bg-opacity) * 100%),transparent);color:var(--drp-day-range-color)}.drp-date-picker__day--drag-invalid{background-color:color-mix(in srgb,var(--drp-day-drag-invalid-bg) calc(var(--drp-day-drag-invalid-bg-opacity) * 100%),transparent)!important;border-color:var(--drp-day-drag-invalid-bg)!important;border-style:dashed!important}.drp-date-picker__day--invalid-range{background-color:color-mix(in srgb,var(--drp-message-error-border) 20%,transparent)}.drp-date-picker__day--invalid-range-start,.drp-date-picker__day--invalid-range-end{background-color:var(--drp-day-invalid-range-bg);color:var(--drp-day-invalid-range-color);font-weight:var(--drp-font-weight-semibold)}.drp-date-picker__day.holiday{background-color:color-mix(in srgb,var(--drp-holiday-color) calc(var(--drp-holiday-bg-opacity) * 100%),transparent)}.drp-date-picker__day.holiday:hover:not(.drp-date-picker__day--disabled){background-color:color-mix(in srgb,var(--drp-holiday-color) calc(var(--drp-holiday-hover-bg-opacity) * 100%),transparent)}.drp-date-picker__day.event{background-color:color-mix(in srgb,var(--drp-event-color) calc(var(--drp-event-bg-opacity) * 100%),transparent)}.drp-date-picker__day.event:hover:not(.drp-date-picker__day--disabled){background-color:color-mix(in srgb,var(--drp-event-color) calc(var(--drp-event-hover-bg-opacity) * 100%),transparent)}.drp-date-picker__rolling-item--disabled{color:var(--drp-unified-rolling-disabled-color);opacity:.4;cursor:not-allowed;pointer-events:none;text-decoration:line-through}.drp-date-picker__rolling-item--disabled:hover{background-color:transparent}.drp-date-picker__badge-row{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--drp-spacing-xs);max-height:var(--drp-badge-row-height);min-height:var(--drp-badge-row-height)}.drp-date-picker__badge-cell{display:flex;align-items:center;justify-content:center;font-size:var(--drp-font-size-2xs);padding:var(--drp-badge-padding-v) var(--drp-badge-padding-h);border-radius:var(--drp-badge-border-radius);cursor:pointer;max-height:var(--drp-badge-row-height)}.drp-date-picker__badge-cell:empty{visibility:hidden}.drp-date-picker__badge-cell:hover:not(:empty){transform:scale(1.05)}.drp-date-picker__badge-cell.badge-number{background-color:var(--drp-badge-number-bg);color:var(--drp-badge-number-color);font-size:calc(1.12 * var(--drp-rem));font-weight:600}.drp-date-picker__badge-cell.badge-count{background-color:var(--drp-badge-count-bg);color:var(--drp-badge-count-color);font-size:calc(1.12 * var(--drp-rem));font-weight:700}.drp-date-picker__badge-cell.badge-text{background-color:var(--drp-badge-text-bg);color:var(--drp-badge-text-color);font-size:calc(1.04 * var(--drp-rem));font-weight:700;text-transform:uppercase}.drp-date-picker__summary{text-align:center;padding:0;margin:0;margin-bottom:var(--drp-spacing-sm);border-top:var(--drp-summary-border);font-size:var(--drp-font-size-sm);color:var(--drp-summary-text-color)}.drp-date-picker__summary--visible{display:block}.drp-date-picker__summary--hidden{display:none}.drp-date-picker__summary-count{font-weight:var(--drp-font-weight-semibold);color:var(--drp-summary-count-color);font-size:var(--drp-font-size-base)}.drp-date-picker__actions{display:flex;gap:var(--drp-spacing-sm);justify-content:space-between;padding-top:var(--drp-spacing-sm);border-top:var(--drp-summary-border)}.drp-date-picker__button{flex:1;padding:var(--drp-spacing-sm) var(--drp-spacing-md);border:var(--drp-button-border);border-radius:var(--drp-border-radius);background:var(--drp-button-bg);color:var(--drp-button-color);cursor:pointer;font-family:inherit;font-size:var(--drp-font-size-sm);font-weight:var(--drp-font-weight-medium)}.drp-date-picker__button:hover{background-color:var(--drp-button-bg-hover);border:var(--drp-button-border-hover-full)}.drp-date-picker__button:disabled,.drp-date-picker__button[disabled]{opacity:var(--drp-opacity-disabled);cursor:not-allowed;pointer-events:none}.drp-date-picker__button:disabled:hover,.drp-date-picker__button[disabled]:hover{background-color:var(--drp-button-bg);border:var(--drp-button-border)}.drp-date-picker__button--today{color:var(--drp-button-today-color)}.drp-date-picker__button--clear{color:var(--drp-button-clear-color)}.drp-date-picker__button--apply{background-color:var(--drp-button-apply-bg);color:var(--drp-button-apply-color);border-color:var(--drp-button-apply-border)}.drp-date-picker__button--apply:hover{background-color:var(--drp-button-apply-bg-hover)}.drp-date-picker__button--cancel{color:var(--drp-button-cancel-color)}.drp-date-picker__tooltip{position:absolute;z-index:var(--drp-z-index-tooltip);background-color:var(--drp-tooltip-bg);color:var(--drp-tooltip-text-color);padding:var(--drp-spacing-xs) var(--drp-spacing-sm);border-radius:var(--drp-border-radius-sm);font-size:var(--drp-font-size-xs);line-height:var(--drp-tooltip-line-height);max-width:var(--drp-tooltip-max-width);word-wrap:break-word;pointer-events:none;opacity:0;transition:opacity var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker__tooltip--visible{opacity:1}.drp-date-picker__tooltip-arrow{position:absolute;background-color:var(--drp-tooltip-bg);width:var(--drp-tooltip-arrow-size);height:var(--drp-tooltip-arrow-size);transform:rotate(45deg)}.drp-date-picker__loading-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background-color:var(--drp-loading-overlay-bg);display:flex;align-items:center;justify-content:center;z-index:var(--drp-z-index-dropdown);border-radius:var(--drp-border-radius-lg)}.drp-date-picker__loading-spinner{width:var(--drp-loading-spinner-size);height:var(--drp-loading-spinner-size);border:var(--drp-loading-spinner-border-width) solid var(--drp-loading-spinner-color);border-top-color:var(--drp-loading-spinner-accent);border-radius:50%;animation:drp-spin .8s linear infinite}@keyframes drp-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.drp-date-picker__message{display:none;align-items:center;gap:var(--drp-spacing-sm);padding:var(--drp-spacing-sm) var(--drp-spacing-md);margin:0;margin-bottom:var(--drp-spacing-sm);border-radius:var(--drp-border-radius);font-size:var(--drp-font-size-sm);line-height:var(--drp-line-height-normal)}.drp-date-picker__message--visible{display:flex}.drp-date-picker__message-text{flex:1}.drp-date-picker__message-close{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:calc(2 * var(--drp-rem));height:calc(2 * var(--drp-rem));padding:0;border:none;background:transparent;font-size:var(--drp-font-size-lg);line-height:1;cursor:pointer;opacity:.6;transition:opacity var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker__message-close:hover{opacity:1}.drp-date-picker__message--error{background-color:var(--drp-message-error-bg);color:var(--drp-message-error-color);border:1px solid var(--drp-message-error-border)}.drp-date-picker__message--error .drp-date-picker__message-close{color:var(--drp-message-error-color)}.drp-date-picker__message--warning{background-color:var(--drp-message-warning-bg);color:var(--drp-message-warning-color);border:1px solid var(--drp-message-warning-border)}.drp-date-picker__message--warning .drp-date-picker__message-close{color:var(--drp-message-warning-color)}.drp-date-picker__message--info{background-color:var(--drp-message-info-bg);color:var(--drp-message-info-color);border:1px solid var(--drp-message-info-border)}.drp-date-picker__message--info .drp-date-picker__message-close{color:var(--drp-message-info-color)}.drp-date-picker__message--success{background-color:var(--drp-message-success-bg);color:var(--drp-message-success-color);border:1px solid var(--drp-message-success-border)}.drp-date-picker__message--success .drp-date-picker__message-close{color:var(--drp-message-success-color)}.drp-date-picker__message--custom{background:transparent;border:none;padding:0;margin:0;margin-bottom:var(--drp-spacing-sm)}.drp-date-picker__message--custom .drp-date-picker__message-close{display:none}.drp-date-picker--modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);max-width:calc(100vw - 2 * var(--drp-modal-gap));max-height:calc(100vh - 2 * var(--drp-modal-gap));width:auto;z-index:var(--drp-z-index-modal);container-type:inline-size;container-name:drp-modal}.drp-date-picker--modal .drp-date-picker__months--grid{width:auto;grid-template-columns:repeat(var(--drp-grid-columns, 3),minmax(var(--drp-month-min-width, 280px),1fr))}@media (max-width: 480px){.drp-date-picker--modal{width:var(--drp-modal-width-xs)}}@media (min-width: 481px) and (max-width: 768px){.drp-date-picker--modal{width:var(--drp-modal-width-sm)}}@media (min-width: 769px) and (max-width: 1200px){.drp-date-picker--modal{width:var(--drp-modal-width-md)}}@media (min-width: 1201px){.drp-date-picker--modal{width:var(--drp-modal-width-lg)}}@container drp-modal (max-width: 600px){.drp-date-picker--modal .drp-date-picker__month{min-width:0;width:100%}.drp-date-picker--modal .drp-date-picker__month:nth-child(n+2){display:none}.drp-date-picker--modal .drp-date-picker__months--grid{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important}}@container drp-modal (min-width: 601px) and (max-width: 900px){.drp-date-picker--modal .drp-date-picker__months:not(.drp-date-picker__months--grid)>.drp-date-picker__month:nth-child(n+3){display:none}.drp-date-picker--modal .drp-date-picker__months--grid{grid-template-columns:repeat(2,minmax(var(--drp-month-min-width, 280px),1fr))!important;grid-template-rows:auto!important}}@container drp-modal (min-width: 901px) and (max-width: 1200px){.drp-date-picker--modal .drp-date-picker__months:not(.drp-date-picker__months--grid)>.drp-date-picker__month:nth-child(n+4){display:none}.drp-date-picker--modal .drp-date-picker__months--grid{grid-template-columns:repeat(min(var(--drp-grid-columns, 3),3),minmax(var(--drp-month-min-width, 280px),1fr))!important;grid-template-rows:auto!important}}.drp-date-picker__backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--drp-modal-backdrop-bg);z-index:var(--drp-z-index-modal-backdrop);opacity:0;pointer-events:none;transition:opacity var(--drp-modal-transition)}.drp-date-picker__backdrop--visible{opacity:1;pointer-events:auto}.drp-date-picker--modal.drp-transitions-enabled{transition:opacity var(--drp-modal-transition)}.drp-date-picker--modal.drp-transitions-enabled:not(.drp-date-picker--visible){opacity:0}.drp-date-picker.drp-transitions-enabled .drp-date-picker__badge-cell{transition:transform var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker.drp-transitions-enabled .drp-date-picker__nav,.drp-date-picker.drp-transitions-enabled .drp-date-picker__action-btn{transition:background-color var(--drp-transition-fast) var(--drp-easing-snappy),border-color var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker.drp-transitions-enabled .drp-date-picker__month-year,.drp-date-picker.drp-transitions-enabled .drp-date-picker__rolling-item{transition:background-color var(--drp-transition-fast) var(--drp-easing-snappy)}.drp-date-picker--inline{position:static;display:block;box-shadow:none}', K = class K {
2912
2944
  constructor(a, t = {}) {
2913
2945
  b(this, "input");
2914
2946
  b(this, "options");
@@ -3056,23 +3088,24 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3056
3088
  actionButtons: t.actionButtons,
3057
3089
  showTodayButton: t.showTodayButton !== void 0 ? t.showTodayButton : !0,
3058
3090
  showClearButton: t.showClearButton !== void 0 ? t.showClearButton : !0,
3059
- showApplyButton: t.showApplyButton !== void 0 ? t.showApplyButton : t.selectionMode === "range" || t.selectionMode === "multiple"
3060
- }, this.options.showDebugInfo ? Ke() : Ge(), this.options.unifiedNavigation && this.options.unifiedNavigationAnchorIndex !== void 0) {
3091
+ showApplyButton: t.showApplyButton !== void 0 ? t.showApplyButton : t.selectionMode === "range" || t.selectionMode === "multiple",
3092
+ showSummary: t.showSummary !== void 0 ? t.showSummary : !0
3093
+ }, this.options.showDebugInfo ? Ge() : Xe(), this.options.unifiedNavigation && this.options.unifiedNavigationAnchorIndex !== void 0) {
3061
3094
  const r = this.options.visibleMonthsCount - 1;
3062
3095
  (this.options.unifiedNavigationAnchorIndex < 0 || this.options.unifiedNavigationAnchorIndex > r) && (console.warn(`unifiedNavigationAnchorIndex (${this.options.unifiedNavigationAnchorIndex}) out of bounds. Using 0.`), this.options.unifiedNavigationAnchorIndex = 0);
3063
3096
  }
3064
- this.weekStartDay = bt(this.options.weekStartDay), L.debug("Week starts on day:", this.weekStartDay), L.debug("disabledDatesHandling:", this.options.disabledDatesHandling), this.locale = Se(this.options.locale), this.localeStrings = Et(this.locale, this.options.customStrings), this.weekdayNames = It(this.locale), this.monthNames = this.options.monthNames || Rt(this.locale), L.debug("Locale:", this.locale, "Weekdays:", this.weekdayNames, "Months:", this.monthNames), this.initializeDateRestrictions(), this.formatInfo = this.parseFormat(this.options.dateFormatMask), L.debug("Format info:", this.formatInfo), this._previousInputValue = "", this.currentDate = /* @__PURE__ */ new Date();
3097
+ this.weekStartDay = Dt(this.options.weekStartDay), T.debug("Week starts on day:", this.weekStartDay), T.debug("disabledDatesHandling:", this.options.disabledDatesHandling), this.locale = Ee(this.options.locale), this.localeStrings = Rt(this.locale, this.options.customStrings), this.weekdayNames = At(this.locale), this.monthNames = this.options.monthNames || Tt(this.locale), T.debug("Locale:", this.locale, "Weekdays:", this.weekdayNames, "Months:", this.monthNames), this.initializeDateRestrictions(), this.formatInfo = this.parseFormat(this.options.dateFormatMask), T.debug("Format info:", this.formatInfo), this._previousInputValue = "", this.currentDate = /* @__PURE__ */ new Date();
3065
3098
  let n;
3066
3099
  if (this.options.initialDate)
3067
- n = _e(this.options.initialDate) || /* @__PURE__ */ new Date(), L.debug(`Using initialDate: ${n.toISOString()}`);
3100
+ n = _e(this.options.initialDate) || /* @__PURE__ */ new Date(), T.debug(`Using initialDate: ${n.toISOString()}`);
3068
3101
  else if (this.options.rollingYearRange || this.options.rollingMonthRange) {
3069
3102
  const r = this.getEffectiveYearRange(), i = this.getEffectiveMonthRange(), o = r.min, s = i.min - 1;
3070
- n = new Date(o, s, 1), L.debug(`Using first allowed year/month as initial: ${n.toISOString()}`);
3071
- } else this.normalizedMinDate && this.normalizedMinDate > /* @__PURE__ */ new Date() ? (n = new Date(this.normalizedMinDate), L.debug(`Using minDate as initial: ${n.toISOString()}`)) : this.normalizedMaxDate && this.normalizedMaxDate < /* @__PURE__ */ new Date() ? (n = new Date(this.normalizedMaxDate), L.debug(`Using maxDate as initial: ${n.toISOString()}`)) : (n = /* @__PURE__ */ new Date(), L.debug(`Using current date as initial: ${n.toISOString()}`));
3103
+ n = new Date(o, s, 1), T.debug(`Using first allowed year/month as initial: ${n.toISOString()}`);
3104
+ } else this.normalizedMinDate && this.normalizedMinDate > /* @__PURE__ */ new Date() ? (n = new Date(this.normalizedMinDate), T.debug(`Using minDate as initial: ${n.toISOString()}`)) : this.normalizedMaxDate && this.normalizedMaxDate < /* @__PURE__ */ new Date() ? (n = new Date(this.normalizedMaxDate), T.debug(`Using maxDate as initial: ${n.toISOString()}`)) : (n = /* @__PURE__ */ new Date(), T.debug(`Using current date as initial: ${n.toISOString()}`));
3072
3105
  this.monthDates = [];
3073
3106
  for (let r = 0; r < this.options.visibleMonthsCount; r++) {
3074
3107
  const i = new Date(n.getFullYear(), n.getMonth() + r, 1);
3075
- this.monthDates.push(i), L.debug(`monthDates[${r}] = ${i.getFullYear()}-${i.getMonth() + 1}`);
3108
+ this.monthDates.push(i), T.debug(`monthDates[${r}] = ${i.getFullYear()}-${i.getMonth() + 1}`);
3076
3109
  }
3077
3110
  if (this.options.selectionMode === "range") {
3078
3111
  this.displayMonths = [];
@@ -3087,10 +3120,10 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3087
3120
  this.selectedDate = null, this.selectedStartDate = null, this.selectedEndDate = null, this.selectedRanges = [], this.selectedDates = [], this.pendingSelection = null, this.focusedDayIndex = null, this.activeMonthIndex = 0, this.showingRollingSelector = [];
3088
3121
  for (let r = 0; r < this.options.visibleMonthsCount; r++)
3089
3122
  this.showingRollingSelector.push(!1);
3090
- this.draggingType = null, this.isDragging = !1, this.dragStartDate = null, this.originalStartDate = null, this.originalEndDate = null, this.dragPreviewStart = null, this.dragPreviewEnd = null, this.invalidRangeStart = null, this.invalidRangeEnd = null, this.autoScrollInterval = null, this.scrollEvents = Gn(), this.clickEvents = Xn(), this.init();
3123
+ this.draggingType = null, this.isDragging = !1, this.dragStartDate = null, this.originalStartDate = null, this.originalEndDate = null, this.dragPreviewStart = null, this.dragPreviewEnd = null, this.invalidRangeStart = null, this.invalidRangeEnd = null, this.autoScrollInterval = null, this.scrollEvents = er(), this.clickEvents = tr(), this.init();
3091
3124
  }
3092
3125
  init() {
3093
- L.debug("Init called"), this.createCalendar(), this.scrollEvents.init(), this.clickEvents.init(this.calendar, this.input), this.setupEventSubscriptions(), document.addEventListener(K.ACTIVE_EVENT, this.onAnotherPickerActivated), this.input && (this.attachInputListeners(), this.input.value && (L.debug("Parsing pre-filled value:", this.input.value), this.updateCalendarFromInput())), this.options.positioningMode === "inline" && (this.renderCalendar(), this.calendar.classList.add("drp-date-picker--visible", "drp-date-picker--inline"), this.isFirstRender = !1, ea(this)), L.debug("Init complete");
3126
+ T.debug("Init called"), this.createCalendar(), this.scrollEvents.init(), this.clickEvents.init(this.calendar, this.input), this.setupEventSubscriptions(), document.addEventListener(K.ACTIVE_EVENT, this.onAnotherPickerActivated), this.input && (this.attachInputListeners(), this.input.value && (T.debug("Parsing pre-filled value:", this.input.value), this.updateCalendarFromInput())), this.options.positioningMode === "inline" && (this.renderCalendar(), this.calendar.classList.add("drp-date-picker--visible", "drp-date-picker--inline"), this.isFirstRender = !1, aa(this)), T.debug("Init complete");
3094
3127
  }
3095
3128
  /**
3096
3129
  * Set up event subscriptions using the pub/sub event managers
@@ -3102,26 +3135,27 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3102
3135
  if (this.options.closeOnScroll === !1)
3103
3136
  return;
3104
3137
  if (this.requiresApplyButton()) {
3105
- L.debug("Window scroll detected - NOT closing (Apply button required)");
3138
+ T.debug("Window scroll detected - NOT closing (Apply button required)");
3106
3139
  return;
3107
3140
  }
3108
3141
  if ((r = this.messageElement) != null && r.classList.contains("drp-date-picker__message--visible")) {
3109
- L.debug("Window scroll detected - NOT closing (message visible)");
3142
+ T.debug("Window scroll detected - NOT closing (message visible)");
3110
3143
  return;
3111
3144
  }
3112
- L.debug("Window scroll detected - closing calendar"), this.hide();
3145
+ T.debug("Window scroll detected - closing calendar"), this.hide();
3113
3146
  }
3114
3147
  });
3115
3148
  this.scrollSubscriptions.push(a);
3116
3149
  const t = this.clickEvents.subscribe("outsideClick", (r) => {
3117
- if (L.debug("Outside click detected", r.target), this.options.positioningMode === "floating")
3118
- this.hide();
3119
- else {
3120
- let i = !1;
3121
- for (let o = 0; o < this.showingRollingSelector.length; o++)
3122
- this.showingRollingSelector[o] && (this.showingRollingSelector[o] = !1, i = !0);
3123
- this.showingUnifiedRollingSelector && (this.showingUnifiedRollingSelector = !1, i = !0), i && this.renderCalendar();
3124
- }
3150
+ if (T.debug("Outside click detected", r.target), this.options.positioningMode !== "modal")
3151
+ if (this.options.positioningMode === "floating")
3152
+ this.hide();
3153
+ else {
3154
+ let i = !1;
3155
+ for (let o = 0; o < this.showingRollingSelector.length; o++)
3156
+ this.showingRollingSelector[o] && (this.showingRollingSelector[o] = !1, i = !0);
3157
+ this.showingUnifiedRollingSelector && (this.showingUnifiedRollingSelector = !1, i = !0), i && this.renderCalendar();
3158
+ }
3125
3159
  });
3126
3160
  this.clickSubscriptions.push(t);
3127
3161
  const n = this.clickEvents.subscribe("calendarClick", () => {
@@ -3139,12 +3173,12 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3139
3173
  initializeDateRestrictions() {
3140
3174
  if (this.normalizedMinDate = this.options.minDate ? _e(this.options.minDate) : void 0, this.normalizedMaxDate = this.options.maxDate ? _e(this.options.maxDate) : void 0, this.normalizedDisabledDates.clear(), this.options.disabledDates && this.options.disabledDates.length > 0 && this.options.disabledDates.forEach((a) => {
3141
3175
  const t = _e(a);
3142
- t && this.normalizedDisabledDates.add(xe(t));
3176
+ t && this.normalizedDisabledDates.add(Me(t));
3143
3177
  }), this.normalizedSpecialDates.clear(), this.options.specialDates && this.options.specialDates.length > 0) {
3144
3178
  const a = this.options.dateMember || "date";
3145
3179
  this.options.specialDates.forEach((t) => {
3146
3180
  const n = _e(t[a]);
3147
- n ? this.normalizedSpecialDates.set(xe(n), t) : L.warn("[Special Dates] Failed to normalize date:", t[a]);
3181
+ n ? this.normalizedSpecialDates.set(Me(n), t) : T.warn("[Special Dates] Failed to normalize date:", t[a]);
3148
3182
  });
3149
3183
  }
3150
3184
  }
@@ -3170,13 +3204,14 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3170
3204
  "gridColumns",
3171
3205
  "unifiedNavigation",
3172
3206
  "unifiedNavigationAnchorIndex",
3173
- "calendarOpenTrigger"
3207
+ "calendarOpenTrigger",
3208
+ "showSummary"
3174
3209
  ], n = (i) => Object.prototype.hasOwnProperty.call(a, i), r = (i) => n(i) && a[i] !== this.options[i];
3175
3210
  if (t.some(r))
3176
3211
  return !1;
3177
3212
  for (const i of Object.keys(a))
3178
3213
  this.options[i] = a[i];
3179
- return n("weekStartDay") && (this.weekStartDay = bt(this.options.weekStartDay)), (n("locale") || n("customStrings") || n("monthNames")) && (this.locale = Se(this.options.locale), this.localeStrings = Et(this.locale, this.options.customStrings), this.weekdayNames = It(this.locale), this.monthNames = this.options.monthNames || Rt(this.locale)), n("dateFormatMask") && (this.formatInfo = this.parseFormat(this.options.dateFormatMask)), (n("minDate") || n("maxDate") || n("disabledDates") || n("specialDates") || n("dateMember")) && this.initializeDateRestrictions(), n("showDebugInfo") && (this.options.showDebugInfo ? Ke() : Ge()), this.renderCalendar(), !0;
3214
+ return n("weekStartDay") && (this.weekStartDay = Dt(this.options.weekStartDay)), (n("locale") || n("customStrings") || n("monthNames")) && (this.locale = Ee(this.options.locale), this.localeStrings = Rt(this.locale, this.options.customStrings), this.weekdayNames = At(this.locale), this.monthNames = this.options.monthNames || Tt(this.locale)), n("dateFormatMask") && (this.formatInfo = this.parseFormat(this.options.dateFormatMask)), (n("minDate") || n("maxDate") || n("disabledDates") || n("specialDates") || n("dateMember")) && this.initializeDateRestrictions(), n("showDebugInfo") && (this.options.showDebugInfo ? Ge() : Xe()), this.renderCalendar(), !0;
3180
3215
  }
3181
3216
  /**
3182
3217
  * Get effective year range considering all constraints
@@ -3185,7 +3220,7 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3185
3220
  */
3186
3221
  getEffectiveYearRange() {
3187
3222
  const a = (/* @__PURE__ */ new Date()).getFullYear();
3188
- return ta(this.options.rollingYearRange, a, this);
3223
+ return na(this.options.rollingYearRange, a, this);
3189
3224
  }
3190
3225
  /**
3191
3226
  * Get effective month range considering all constraints
@@ -3193,7 +3228,7 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3193
3228
  * Considers: rollingMonthRange option, or defaults to all months (1-12)
3194
3229
  */
3195
3230
  getEffectiveMonthRange() {
3196
- return aa(this.options.rollingMonthRange);
3231
+ return ra(this.options.rollingMonthRange);
3197
3232
  }
3198
3233
  /**
3199
3234
  * Render action buttons based on configuration
@@ -3247,10 +3282,10 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3247
3282
  this.actionsContainer.querySelectorAll(".drp-date-picker__button").forEach((r, i) => {
3248
3283
  const o = r, s = o.dataset.action;
3249
3284
  if (!s) return;
3250
- const d = a.find((l) => l.action === s);
3285
+ const d = a.find((c) => c.action === s);
3251
3286
  if (!d) return;
3252
- const c = d.getTooltipCallback ? d.getTooltipCallback(this) : d.tooltip;
3253
- c && (o.dataset.tooltipId = `action-${i}`, this.actionButtonTooltipInstances.push(new Kn(o, c, { container: t })));
3287
+ const l = d.getTooltipCallback ? d.getTooltipCallback(this) : d.tooltip;
3288
+ l && (o.dataset.tooltipId = `action-${i}`, this.actionButtonTooltipInstances.push(new Zn(o, l, { container: t })));
3254
3289
  });
3255
3290
  }
3256
3291
  destroyAllActionButtonTooltips() {
@@ -3268,7 +3303,7 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3268
3303
  if (n < t.min || n > t.max)
3269
3304
  return !0;
3270
3305
  const r = this.getEffectiveMonthRange(), i = a.getMonth() + 1;
3271
- return i < r.min || i > r.max ? !0 : ga(
3306
+ return i < r.min || i > r.max ? !0 : fa(
3272
3307
  a,
3273
3308
  this.normalizedMinDate,
3274
3309
  this.normalizedMaxDate,
@@ -3281,7 +3316,7 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3281
3316
  * Priority: bulkMetadataCache > callback > specialDates
3282
3317
  */
3283
3318
  getDateInfoInternal(a) {
3284
- const t = xe(a);
3319
+ const t = Me(a);
3285
3320
  if (this.bulkMetadataCache && this.bulkMetadataCache.has(t)) {
3286
3321
  const n = this.bulkMetadataCache.get(t);
3287
3322
  return {
@@ -3298,9 +3333,9 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3298
3333
  };
3299
3334
  }
3300
3335
  if (this.normalizedSpecialDates.has(t)) {
3301
- const n = this.normalizedSpecialDates.get(t), r = this.options.badgeTextMember || "badgeText", i = this.options.badgeClassMember || "badgeClass", o = this.options.dayClassMember || "dayClass", s = this.options.badgeTooltipMember || "badgeTooltip", d = this.options.dayTooltipMember || "dayTooltip", c = this.options.isDisabledMember || "isDisabled";
3336
+ const n = this.normalizedSpecialDates.get(t), r = this.options.badgeTextMember || "badgeText", i = this.options.badgeClassMember || "badgeClass", o = this.options.dayClassMember || "dayClass", s = this.options.badgeTooltipMember || "badgeTooltip", d = this.options.dayTooltipMember || "dayTooltip", l = this.options.isDisabledMember || "isDisabled";
3302
3337
  return {
3303
- isDisabled: n[c] !== void 0 ? n[c] : this.isDateDisabledInternal(a),
3338
+ isDisabled: n[l] !== void 0 ? n[l] : this.isDateDisabledInternal(a),
3304
3339
  badgeClass: n[i],
3305
3340
  dayClass: n[o],
3306
3341
  badgeText: n[r],
@@ -3314,40 +3349,40 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3314
3349
  * Check if there are any disabled dates in a range
3315
3350
  */
3316
3351
  hasDisabledDatesInRange(a, t) {
3317
- return fa(a, t, (n) => this.isDateDisabledInternal(n));
3352
+ return ba(a, t, (n) => this.isDateDisabledInternal(n));
3318
3353
  }
3319
3354
  /**
3320
3355
  * Get all enabled dates in a range
3321
3356
  */
3322
3357
  getEnabledDatesInRange(a, t) {
3323
- return ma(a, t, (n) => this.isDateDisabledInternal(n));
3358
+ return ya(a, t, (n) => this.isDateDisabledInternal(n));
3324
3359
  }
3325
3360
  /**
3326
3361
  * Get all disabled dates in a range
3327
3362
  */
3328
3363
  getDisabledDatesInRange(a, t) {
3329
- return ba(a, t, (n) => this.isDateDisabledInternal(n));
3364
+ return va(a, t, (n) => this.isDateDisabledInternal(n));
3330
3365
  }
3331
3366
  /**
3332
3367
  * For 'block' mode: Find the last enabled date before hitting a disabled date
3333
3368
  */
3334
3369
  findLastEnabledBeforeGap(a, t) {
3335
- return ya(a, t, (n) => this.isDateDisabledInternal(n));
3370
+ return Da(a, t, (n) => this.isDateDisabledInternal(n));
3336
3371
  }
3337
3372
  /**
3338
3373
  * For 'split' mode: Split a range into multiple ranges separated by disabled dates
3339
3374
  */
3340
3375
  splitRangeByDisabled(a, t) {
3341
- return va(a, t, (n) => this.isDateDisabledInternal(n));
3376
+ return _a(a, t, (n) => this.isDateDisabledInternal(n));
3342
3377
  }
3343
3378
  isToday(a) {
3344
- return Tt(a);
3379
+ return $t(a);
3345
3380
  }
3346
3381
  isSameDay(a, t) {
3347
- return kt(a, t);
3382
+ return zt(a, t);
3348
3383
  }
3349
3384
  isInRange(a) {
3350
- return Da(a, this.selectedStartDate, this.selectedEndDate);
3385
+ return wa(a, this.selectedStartDate, this.selectedEndDate);
3351
3386
  }
3352
3387
  /**
3353
3388
  * Determine if events/callbacks should be deferred until Apply button click
@@ -3364,7 +3399,7 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3364
3399
  return this.options.selectionMode === "multiple" ? !1 : this.options.autoClose === "selection";
3365
3400
  }
3366
3401
  createCalendar() {
3367
- if (L.debug("Creating calendar"), this.calendar = document.createElement("div"), this.calendar.className = "drp-date-picker", this.options.unifiedNavigation && this.calendar.classList.add("drp-date-picker--unified-nav"), this.options.unifiedNavigation) {
3402
+ if (T.debug("Creating calendar"), this.calendar = document.createElement("div"), this.calendar.className = "drp-date-picker", this.options.unifiedNavigation && this.calendar.classList.add("drp-date-picker--unified-nav"), this.options.unifiedNavigation) {
3368
3403
  this.unifiedHeader = document.createElement("div"), this.unifiedHeader.className = "drp-date-picker__unified-header";
3369
3404
  const n = this.options.unifiedHeaderInteractive ? "" : " drp-date-picker__unified-range--static", r = this.options.unifiedHeaderInteractive ? ' data-action="toggle-unified-rolling"' : "";
3370
3405
  this.unifiedHeader.innerHTML = `
@@ -3403,23 +3438,27 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3403
3438
  if (this.calendar.appendChild(a), this.messageElement = document.createElement("div"), this.messageElement.className = "drp-date-picker__message", this.messageElement.innerHTML = `
3404
3439
  <span class="drp-date-picker__message-text"></span>
3405
3440
  <button class="drp-date-picker__message-close" data-action="close-message">&times;</button>
3406
- `, this.calendar.appendChild(this.messageElement), this.options.selectionMode === "range") {
3441
+ `, this.calendar.appendChild(this.messageElement), this.options.selectionMode === "range" && this.options.showSummary !== !1) {
3407
3442
  const n = document.createElement("div");
3408
3443
  n.className = "drp-date-picker__summary drp-date-picker__summary--hidden", this.calendar.appendChild(n);
3409
3444
  }
3410
3445
  const t = document.createElement("div");
3411
- t.className = "drp-date-picker__actions", this.renderButtons(t), t.children.length > 0 && this.calendar.appendChild(t), this.containerElement.appendChild(this.calendar), L.debug("Calendar appended to container:", this.calendar), this.tooltip = document.createElement("div"), this.tooltip.className = "drp-date-picker__tooltip", this.tooltipArrow = document.createElement("div"), this.tooltipArrow.className = "drp-date-picker__tooltip-arrow", this.tooltip.appendChild(this.tooltipArrow), this.containerElement.appendChild(this.tooltip), this.attachCalendarListeners(), this.showingRollingSelector = new Array(this.options.visibleMonthsCount).fill(!1);
3446
+ t.className = "drp-date-picker__actions", this.renderButtons(t), t.children.length > 0 && this.calendar.appendChild(t), this.containerElement.appendChild(this.calendar), T.debug("Calendar appended to container:", this.calendar), this.tooltip = document.createElement("div"), this.tooltip.className = "drp-date-picker__tooltip", this.tooltipArrow = document.createElement("div"), this.tooltipArrow.className = "drp-date-picker__tooltip-arrow", this.tooltip.appendChild(this.tooltipArrow), this.containerElement.appendChild(this.tooltip), this.attachCalendarListeners(), this.showingRollingSelector = new Array(this.options.visibleMonthsCount).fill(!1);
3412
3447
  }
3413
3448
  attachInputListeners() {
3414
3449
  if (!this.input) return;
3415
- L.debug("Attaching input listeners");
3450
+ T.debug("Attaching input listeners");
3416
3451
  const a = this.options.calendarOpenTrigger || "focus";
3417
3452
  a === "focus" ? (this.input.addEventListener("focus", () => {
3418
- L.debug("Input focused - opening calendar"), this.show();
3453
+ T.debug("Input focused - opening calendar"), this.show();
3454
+ }), this.input.addEventListener("pointerdown", () => {
3455
+ T.debug("Input pointerdown - ensuring calendar open"), this.show();
3419
3456
  }), this.input.addEventListener("mousedown", () => {
3420
- this.calendar.classList.contains("drp-date-picker--visible") || (L.debug("Input clicked while focused but calendar closed - reopening"), this.show());
3457
+ T.debug("Input mousedown - ensuring calendar open"), this.show();
3458
+ }), this.input.addEventListener("click", () => {
3459
+ T.debug("Input click - ensuring calendar open"), this.show();
3421
3460
  })) : a === "typing" && this.input.addEventListener("input", (t) => {
3422
- !this.calendar.classList.contains("drp-date-picker--visible") && this.input && this.input.value.length > 0 && (L.debug("User started typing - opening calendar"), this.show());
3461
+ !this.calendar.classList.contains("drp-date-picker--visible") && this.input && this.input.value.length > 0 && (T.debug("User started typing - opening calendar"), this.show());
3423
3462
  }), this.input.addEventListener("input", (t) => this.handleInputMask(t)), this.input.addEventListener("keydown", (t) => this.handleKeydown(t)), this.input.addEventListener("paste", (t) => this.handlePaste(t));
3424
3463
  }
3425
3464
  attachCalendarListeners() {
@@ -3429,8 +3468,8 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3429
3468
  const n = t.dataset.action, r = t.dataset.monthIndex, i = r ? parseInt(r) : 0, o = t.closest('[data-action="custom"]');
3430
3469
  if (o) {
3431
3470
  const s = {};
3432
- for (const [c, l] of Object.entries(o.dataset))
3433
- c !== "action" && (s[c] = l);
3471
+ for (const [l, c] of Object.entries(o.dataset))
3472
+ l !== "action" && (s[l] = c);
3434
3473
  this.fireCustomActionEvent(s);
3435
3474
  const d = o._customOnClick;
3436
3475
  d && await Promise.resolve(d(this));
@@ -3461,8 +3500,8 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3461
3500
  if (s.dataset.unified === "true")
3462
3501
  d && this.setUnifiedYear(parseInt(d));
3463
3502
  else {
3464
- const c = s.dataset.monthIndex;
3465
- d && c && this.selectYear(parseInt(d), parseInt(c));
3503
+ const l = s.dataset.monthIndex;
3504
+ d && l && this.selectYear(parseInt(d), parseInt(l));
3466
3505
  }
3467
3506
  } else if (t.closest("[data-month]")) {
3468
3507
  const s = t.closest("[data-month]");
@@ -3472,8 +3511,8 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3472
3511
  if (s.dataset.unified === "true")
3473
3512
  d && this.setUnifiedMonth(parseInt(d));
3474
3513
  else {
3475
- const c = s.dataset.monthIndex;
3476
- d && c && this.selectMonth(parseInt(d), parseInt(c));
3514
+ const l = s.dataset.monthIndex;
3515
+ d && l && this.selectMonth(parseInt(d), parseInt(l));
3477
3516
  }
3478
3517
  } else if (!t.closest(".drp-date-picker__rolling-selector") && !t.closest(".drp-date-picker__unified-rolling-selector")) {
3479
3518
  let s = !1;
@@ -3495,7 +3534,7 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3495
3534
  }), document.addEventListener("keydown", (a) => {
3496
3535
  var t, n, r, i;
3497
3536
  if (this.calendar.classList.contains("drp-date-picker--visible") && this.isCalendarActive) {
3498
- if (L.debug("Keydown", a.key, "Ctrl:", a.ctrlKey, "Meta:", a.metaKey, "Shift:", a.shiftKey, "Alt:", a.altKey), a.key === "Escape")
3537
+ if (T.debug("Keydown", a.key, "Ctrl:", a.ctrlKey, "Meta:", a.metaKey, "Shift:", a.shiftKey, "Alt:", a.altKey), a.key === "Escape")
3499
3538
  this.hide(), a.preventDefault();
3500
3539
  else if (a.key === "ArrowUp")
3501
3540
  this.moveFocus(-7), a.preventDefault();
@@ -3506,9 +3545,9 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3506
3545
  w.debug("Ctrl+Left: Navigate to previous month");
3507
3546
  const o = this.focusedDayIndex;
3508
3547
  this.prevMonth(this.activeMonthIndex), setTimeout(() => {
3509
- var c, l;
3548
+ var l, c;
3510
3549
  const s = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), d = s == null ? void 0 : s.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3511
- d && (this.focusedDayIndex = Math.min(o !== null ? o : 0, d.length - 1), (c = d[this.focusedDayIndex]) == null || c.classList.add("drp-date-picker__day--focused"), (l = d[this.focusedDayIndex]) == null || l.scrollIntoView({ block: "nearest" }));
3550
+ d && (this.focusedDayIndex = Math.min(o !== null ? o : 0, d.length - 1), (l = d[this.focusedDayIndex]) == null || l.classList.add("drp-date-picker__day--focused"), (c = d[this.focusedDayIndex]) == null || c.scrollIntoView({ block: "nearest" }));
3512
3551
  }, 0);
3513
3552
  } else
3514
3553
  this.moveFocus(-1);
@@ -3518,9 +3557,9 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3518
3557
  w.debug("Ctrl+Right: Navigate to next month");
3519
3558
  const o = this.focusedDayIndex;
3520
3559
  this.nextMonth(this.activeMonthIndex), setTimeout(() => {
3521
- var c, l;
3560
+ var l, c;
3522
3561
  const s = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), d = s == null ? void 0 : s.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3523
- d && (this.focusedDayIndex = Math.min(o !== null ? o : 0, d.length - 1), (c = d[this.focusedDayIndex]) == null || c.classList.add("drp-date-picker__day--focused"), (l = d[this.focusedDayIndex]) == null || l.scrollIntoView({ block: "nearest" }));
3562
+ d && (this.focusedDayIndex = Math.min(o !== null ? o : 0, d.length - 1), (l = d[this.focusedDayIndex]) == null || l.classList.add("drp-date-picker__day--focused"), (c = d[this.focusedDayIndex]) == null || c.scrollIntoView({ block: "nearest" }));
3524
3563
  }, 0);
3525
3564
  } else
3526
3565
  this.moveFocus(1);
@@ -3539,10 +3578,10 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3539
3578
  w.debug(`Tab: switching from Col${this.activeMonthIndex} to Col${s}`);
3540
3579
  const d = this.focusedDayIndex ?? 0;
3541
3580
  this.activeMonthIndex = s;
3542
- const c = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`);
3543
- if (c) {
3544
- const l = c.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3545
- this.focusedDayIndex = Math.min(d, l.length - 1), w.debug(`Col${this.activeMonthIndex} Tab: set focusedDayIndex to ${this.focusedDayIndex}`);
3581
+ const l = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`);
3582
+ if (l) {
3583
+ const c = l.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3584
+ this.focusedDayIndex = Math.min(d, c.length - 1), w.debug(`Col${this.activeMonthIndex} Tab: set focusedDayIndex to ${this.focusedDayIndex}`);
3546
3585
  }
3547
3586
  this.renderCalendar();
3548
3587
  }
@@ -3552,48 +3591,48 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3552
3591
  this.monthDates[this.activeMonthIndex] = /* @__PURE__ */ new Date(), be(this, this.activeMonthIndex), this.renderCalendar(), setTimeout(() => {
3553
3592
  const o = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), s = o == null ? void 0 : o.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3554
3593
  if (s) {
3555
- const d = Array.from(s).findIndex((c) => c.classList.contains("drp-date-picker__day--today"));
3594
+ const d = Array.from(s).findIndex((l) => l.classList.contains("drp-date-picker__day--today"));
3556
3595
  d !== -1 && (this.focusedDayIndex = d, s[d].classList.add("drp-date-picker__day--focused"), s[d].scrollIntoView({ block: "nearest" }));
3557
3596
  }
3558
3597
  }, 0), a.preventDefault();
3559
3598
  else if (a.key === "PageUp") {
3560
3599
  const o = this.focusedDayIndex;
3561
3600
  this.prevMonth(this.activeMonthIndex), setTimeout(() => {
3562
- var c, l;
3601
+ var l, c;
3563
3602
  const s = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), d = s == null ? void 0 : s.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3564
- d && (this.focusedDayIndex = Math.min(o !== null ? o : 0, d.length - 1), (c = d[this.focusedDayIndex]) == null || c.classList.add("drp-date-picker__day--focused"), (l = d[this.focusedDayIndex]) == null || l.scrollIntoView({ block: "nearest" }));
3603
+ d && (this.focusedDayIndex = Math.min(o !== null ? o : 0, d.length - 1), (l = d[this.focusedDayIndex]) == null || l.classList.add("drp-date-picker__day--focused"), (c = d[this.focusedDayIndex]) == null || c.scrollIntoView({ block: "nearest" }));
3565
3604
  }, 0), a.preventDefault();
3566
3605
  } else if (a.key === "PageDown") {
3567
3606
  const o = this.focusedDayIndex;
3568
3607
  this.nextMonth(this.activeMonthIndex), setTimeout(() => {
3569
- var c, l;
3608
+ var l, c;
3570
3609
  const s = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), d = s == null ? void 0 : s.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3571
- d && (this.focusedDayIndex = Math.min(o !== null ? o : 0, d.length - 1), (c = d[this.focusedDayIndex]) == null || c.classList.add("drp-date-picker__day--focused"), (l = d[this.focusedDayIndex]) == null || l.scrollIntoView({ block: "nearest" }));
3610
+ d && (this.focusedDayIndex = Math.min(o !== null ? o : 0, d.length - 1), (l = d[this.focusedDayIndex]) == null || l.classList.add("drp-date-picker__day--focused"), (c = d[this.focusedDayIndex]) == null || c.scrollIntoView({ block: "nearest" }));
3572
3611
  }, 0), a.preventDefault();
3573
3612
  } else if (a.key === "Home") {
3574
3613
  w.debug("Home key pressed, Ctrl:", a.ctrlKey, "Meta:", a.metaKey);
3575
3614
  const o = this.monthDates[this.activeMonthIndex].getFullYear(), s = this.monthDates[this.activeMonthIndex].getMonth();
3576
3615
  if (a.ctrlKey || a.metaKey) {
3577
3616
  w.debug("Ctrl+Home: Navigate to year start");
3578
- const d = this.getEffectiveYearRange(), c = this.getEffectiveMonthRange(), l = s === 0, u = this.focusedDayIndex === 0;
3579
- let p = o, g = Math.max(0, c.min - 1);
3580
- l && u && (p = o - 1), p < d.min && (w.debug("Ctrl+Home: Target year below min, clamping to", d.min), p = d.min);
3581
- const f = new Date(p, g, 1), h = this.monthDates[this.activeMonthIndex];
3582
- (f.getFullYear() !== h.getFullYear() || f.getMonth() !== h.getMonth() || this.focusedDayIndex !== 0) && (w.debug("Going to", g + 1, "/", p), this.monthDates[this.activeMonthIndex] = f, this.renderCalendar(), setTimeout(() => {
3617
+ const d = this.getEffectiveYearRange(), l = this.getEffectiveMonthRange(), c = s === 0, p = this.focusedDayIndex === 0;
3618
+ let u = o, g = Math.max(0, l.min - 1);
3619
+ c && p && (u = o - 1), u < d.min && (w.debug("Ctrl+Home: Target year below min, clamping to", d.min), u = d.min);
3620
+ const m = new Date(u, g, 1), h = this.monthDates[this.activeMonthIndex];
3621
+ (m.getFullYear() !== h.getFullYear() || m.getMonth() !== h.getMonth() || this.focusedDayIndex !== 0) && (w.debug("Going to", g + 1, "/", u), this.monthDates[this.activeMonthIndex] = m, this.renderCalendar(), setTimeout(() => {
3583
3622
  var x, E;
3584
- const v = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), m = v == null ? void 0 : v.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3585
- m && (this.focusedDayIndex = 0, (x = m[0]) == null || x.classList.add("drp-date-picker__day--focused"), (E = m[0]) == null || E.scrollIntoView({ block: "nearest" }));
3623
+ const v = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), f = v == null ? void 0 : v.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3624
+ f && (this.focusedDayIndex = 0, (x = f[0]) == null || x.classList.add("drp-date-picker__day--focused"), (E = f[0]) == null || E.scrollIntoView({ block: "nearest" }));
3586
3625
  }, 0));
3587
3626
  } else if (w.debug("Home: Navigate to first day (cycles to previous month if already there)"), this.focusedDayIndex === 0)
3588
3627
  w.debug("Already on first day, going to previous month"), this.prevMonth(this.activeMonthIndex), setTimeout(() => {
3589
- var u, p;
3590
- const c = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), l = c == null ? void 0 : c.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3591
- l && (this.focusedDayIndex = 0, this.calendar.querySelectorAll(".drp-date-picker__day--focused").forEach((g) => g.classList.remove("drp-date-picker__day--focused")), (u = l[0]) == null || u.classList.add("drp-date-picker__day--focused"), (p = l[0]) == null || p.scrollIntoView({ block: "nearest" }));
3628
+ var p, u;
3629
+ const l = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), c = l == null ? void 0 : l.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3630
+ c && (this.focusedDayIndex = 0, this.calendar.querySelectorAll(".drp-date-picker__day--focused").forEach((g) => g.classList.remove("drp-date-picker__day--focused")), (p = c[0]) == null || p.classList.add("drp-date-picker__day--focused"), (u = c[0]) == null || u.scrollIntoView({ block: "nearest" }));
3592
3631
  }, 0);
3593
3632
  else {
3594
3633
  this.focusedDayIndex = 0;
3595
- const c = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), l = c == null ? void 0 : c.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3596
- l && (this.calendar.querySelectorAll(".drp-date-picker__day--focused").forEach((u) => u.classList.remove("drp-date-picker__day--focused")), (t = l[0]) == null || t.classList.add("drp-date-picker__day--focused"), (n = l[0]) == null || n.scrollIntoView({ block: "nearest" }));
3634
+ const l = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), c = l == null ? void 0 : l.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3635
+ c && (this.calendar.querySelectorAll(".drp-date-picker__day--focused").forEach((p) => p.classList.remove("drp-date-picker__day--focused")), (t = c[0]) == null || t.classList.add("drp-date-picker__day--focused"), (n = c[0]) == null || n.scrollIntoView({ block: "nearest" }));
3597
3636
  }
3598
3637
  a.preventDefault();
3599
3638
  } else if (a.key === "End") {
@@ -3601,24 +3640,24 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3601
3640
  const o = this.monthDates[this.activeMonthIndex].getFullYear(), s = this.monthDates[this.activeMonthIndex].getMonth();
3602
3641
  if (a.ctrlKey || a.metaKey) {
3603
3642
  w.debug("Ctrl+End: Navigate to year end");
3604
- const d = this.getEffectiveYearRange(), c = this.getEffectiveMonthRange(), l = s === 11, u = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), p = u == null ? void 0 : u.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)"), g = p && this.focusedDayIndex === p.length - 1;
3605
- let f = o, h = Math.min(11, c.max - 1);
3606
- l && g && (f = o + 1), f > d.max && (w.debug("Ctrl+End: Target year above max, clamping to", d.max), f = d.max);
3607
- const v = new Date(f, h + 1, 0).getDate(), m = new Date(f, h, v), x = this.monthDates[this.activeMonthIndex];
3608
- (m.getFullYear() !== x.getFullYear() || m.getMonth() !== x.getMonth() || !g) && (w.debug("Going to", h + 1, "/", f), this.monthDates[this.activeMonthIndex] = m, this.renderCalendar(), setTimeout(() => {
3643
+ const d = this.getEffectiveYearRange(), l = this.getEffectiveMonthRange(), c = s === 11, p = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), u = p == null ? void 0 : p.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)"), g = u && this.focusedDayIndex === u.length - 1;
3644
+ let m = o, h = Math.min(11, l.max - 1);
3645
+ c && g && (m = o + 1), m > d.max && (w.debug("Ctrl+End: Target year above max, clamping to", d.max), m = d.max);
3646
+ const v = new Date(m, h + 1, 0).getDate(), f = new Date(m, h, v), x = this.monthDates[this.activeMonthIndex];
3647
+ (f.getFullYear() !== x.getFullYear() || f.getMonth() !== x.getMonth() || !g) && (w.debug("Going to", h + 1, "/", m), this.monthDates[this.activeMonthIndex] = f, this.renderCalendar(), setTimeout(() => {
3609
3648
  var D, _;
3610
3649
  const E = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), S = E == null ? void 0 : E.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3611
3650
  S && (this.focusedDayIndex = S.length - 1, (D = S[this.focusedDayIndex]) == null || D.classList.add("drp-date-picker__day--focused"), (_ = S[this.focusedDayIndex]) == null || _.scrollIntoView({ block: "nearest" }));
3612
3651
  }, 0));
3613
3652
  } else {
3614
3653
  w.debug("End: Navigate to last day (cycles to next month if already there)");
3615
- const d = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), c = d == null ? void 0 : d.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3616
- if (!c) return;
3617
- this.focusedDayIndex === c.length - 1 ? (w.debug("Already on last day, going to next month"), this.nextMonth(this.activeMonthIndex), setTimeout(() => {
3618
- var g, f;
3619
- const u = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), p = u == null ? void 0 : u.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3620
- p && (this.focusedDayIndex = p.length - 1, this.calendar.querySelectorAll(".drp-date-picker__day--focused").forEach((h) => h.classList.remove("drp-date-picker__day--focused")), (g = p[this.focusedDayIndex]) == null || g.classList.add("drp-date-picker__day--focused"), (f = p[this.focusedDayIndex]) == null || f.scrollIntoView({ block: "nearest" }));
3621
- }, 0)) : (this.focusedDayIndex = c.length - 1, this.calendar.querySelectorAll(".drp-date-picker__day--focused").forEach((u) => u.classList.remove("drp-date-picker__day--focused")), (r = c[this.focusedDayIndex]) == null || r.classList.add("drp-date-picker__day--focused"), (i = c[this.focusedDayIndex]) == null || i.scrollIntoView({ block: "nearest" }));
3654
+ const d = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), l = d == null ? void 0 : d.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3655
+ if (!l) return;
3656
+ this.focusedDayIndex === l.length - 1 ? (w.debug("Already on last day, going to next month"), this.nextMonth(this.activeMonthIndex), setTimeout(() => {
3657
+ var g, m;
3658
+ const p = this.calendar.querySelector(`.drp-date-picker__days[data-month-index="${this.activeMonthIndex}"]`), u = p == null ? void 0 : p.querySelectorAll(".drp-date-picker__day:not(.drp-date-picker__day--other-month)");
3659
+ u && (this.focusedDayIndex = u.length - 1, this.calendar.querySelectorAll(".drp-date-picker__day--focused").forEach((h) => h.classList.remove("drp-date-picker__day--focused")), (g = u[this.focusedDayIndex]) == null || g.classList.add("drp-date-picker__day--focused"), (m = u[this.focusedDayIndex]) == null || m.scrollIntoView({ block: "nearest" }));
3660
+ }, 0)) : (this.focusedDayIndex = l.length - 1, this.calendar.querySelectorAll(".drp-date-picker__day--focused").forEach((p) => p.classList.remove("drp-date-picker__day--focused")), (r = l[this.focusedDayIndex]) == null || r.classList.add("drp-date-picker__day--focused"), (i = l[this.focusedDayIndex]) == null || i.scrollIntoView({ block: "nearest" }));
3622
3661
  }
3623
3662
  a.preventDefault();
3624
3663
  }
@@ -3641,8 +3680,8 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3641
3680
  formatDate(a) {
3642
3681
  if (!a) return "";
3643
3682
  const t = a.getFullYear(), n = String(a.getMonth() + 1).padStart(2, "0"), r = String(a.getDate()).padStart(2, "0"), { format: i, separator: o, parts: s } = this.formatInfo, d = [];
3644
- for (let c = 0; c < 3; c++)
3645
- s.year && s.year.index === c ? d.push(s.year.length === 2 ? String(t).slice(-2) : t) : s.month && s.month.index === c ? d.push(n) : s.day && s.day.index === c && d.push(r);
3683
+ for (let l = 0; l < 3; l++)
3684
+ s.year && s.year.index === l ? d.push(s.year.length === 2 ? String(t).slice(-2) : t) : s.month && s.month.index === l ? d.push(n) : s.day && s.day.index === l && d.push(r);
3646
3685
  return d.join(o);
3647
3686
  }
3648
3687
  // Reactive getters/setters for programmatic control
@@ -3653,11 +3692,11 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3653
3692
  return this.calendar.classList.contains("drp-date-picker--visible");
3654
3693
  }
3655
3694
  /**
3656
- * Set calendar open state (floating mode only)
3695
+ * Set calendar open state (floating/modal modes only)
3657
3696
  */
3658
3697
  set isOpen(a) {
3659
- if (this.options.positioningMode !== "floating") {
3660
- console.warn("isOpen property only works in floating mode");
3698
+ if (this.options.positioningMode === "inline") {
3699
+ console.warn("isOpen property does not apply to inline mode");
3661
3700
  return;
3662
3701
  }
3663
3702
  a ? this.show() : this.hide();
@@ -3712,142 +3751,142 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3712
3751
  this.isCalendarActive || (this.isCalendarActive = !0, document.dispatchEvent(new CustomEvent(K.ACTIVE_EVENT, { detail: this })));
3713
3752
  }
3714
3753
  destroy() {
3715
- this.scrollSubscriptions.forEach((a) => a.unsubscribe()), this.scrollSubscriptions = [], this.clickSubscriptions.forEach((a) => a.unsubscribe()), this.clickSubscriptions = [], this.scrollEvents.destroy(), this.clickEvents.destroy(), document.removeEventListener(K.ACTIVE_EVENT, this.onAnotherPickerActivated), this.destroyAllActionButtonTooltips(), this.calendar.remove(), this.tooltip && this.tooltip.remove();
3754
+ this.scrollSubscriptions.forEach((a) => a.unsubscribe()), this.scrollSubscriptions = [], this.clickSubscriptions.forEach((a) => a.unsubscribe()), this.clickSubscriptions = [], this.scrollEvents.destroy(), this.clickEvents.destroy(), document.removeEventListener(K.ACTIVE_EVENT, this.onAnotherPickerActivated), this.destroyAllActionButtonTooltips(), this.calendar.remove(), this.tooltip && this.tooltip.remove(), this.modalBackdrop && (this.modalBackdrop.remove(), this.modalBackdrop = null);
3716
3755
  }
3717
3756
  // UI methods - wrappers for pure functions
3718
3757
  show() {
3719
- return Qt(this);
3758
+ return ta(this);
3720
3759
  }
3721
3760
  hide() {
3722
- return Zt(this);
3761
+ return yt(this);
3723
3762
  }
3724
3763
  toggle() {
3725
- return Tn(this);
3764
+ return Nn(this);
3726
3765
  }
3727
3766
  position() {
3728
- return et(this);
3767
+ return at(this);
3729
3768
  }
3730
3769
  showTooltip(a, t) {
3731
- return kn(this, a, t);
3770
+ return Pn(this, a, t);
3732
3771
  }
3733
3772
  hideTooltip() {
3734
- return Ln(this);
3773
+ return On(this);
3735
3774
  }
3736
3775
  showMessage(a, t, n) {
3737
- return tt(this, a, t, n);
3776
+ return nt(this, a, t, n);
3738
3777
  }
3739
3778
  hideMessage() {
3740
3779
  return se(this);
3741
3780
  }
3742
3781
  // Rendering methods - wrappers for pure functions
3743
3782
  renderCalendar() {
3744
- return Vn(this);
3783
+ return Kn(this);
3745
3784
  }
3746
3785
  renderNormalView(a) {
3747
- return na(this, a);
3786
+ return ia(this, a);
3748
3787
  }
3749
3788
  renderDays(a, t) {
3750
- return ra(this, a, t);
3789
+ return oa(this, a, t);
3751
3790
  }
3752
3791
  renderRollingSelector(a) {
3753
- return oa(this, a);
3792
+ return da(this, a);
3754
3793
  }
3755
3794
  updateSummary() {
3756
- return jn(this);
3795
+ return Jn(this);
3757
3796
  }
3758
3797
  updateSummaryWithPreview() {
3759
- return sa(this);
3798
+ return la(this);
3760
3799
  }
3761
3800
  updateDragPreview() {
3762
- return Wn(this);
3801
+ return Qn(this);
3763
3802
  }
3764
3803
  // Navigation methods - wrappers for pure functions
3765
3804
  toggleRollingSelector(a) {
3766
- return $n(this, a);
3805
+ return Fn(this, a);
3767
3806
  }
3768
3807
  selectYear(a, t) {
3769
- return zn(this, a, t);
3808
+ return Hn(this, a, t);
3770
3809
  }
3771
3810
  selectMonth(a, t) {
3772
- return Nn(this, a, t);
3811
+ return Yn(this, a, t);
3773
3812
  }
3774
3813
  checkAndResolveCollisions(a) {
3775
3814
  return be(this, a);
3776
3815
  }
3777
3816
  prevMonth(a) {
3778
- return ke(this, a);
3817
+ return Le(this, a);
3779
3818
  }
3780
3819
  nextMonth(a) {
3781
- return Le(this, a);
3820
+ return $e(this, a);
3782
3821
  }
3783
3822
  // Unified navigation methods
3784
3823
  unifiedPrevMonth() {
3785
- return Fn(this);
3824
+ return Un(this);
3786
3825
  }
3787
3826
  unifiedNextMonth() {
3788
- return On(this);
3827
+ return Vn(this);
3789
3828
  }
3790
3829
  toggleUnifiedRollingSelector() {
3791
- return Yn(this);
3830
+ return Wn(this);
3792
3831
  }
3793
3832
  setUnifiedMonth(a) {
3794
- return Hn(this, a);
3833
+ return qn(this, a);
3795
3834
  }
3796
3835
  setUnifiedYear(a) {
3797
- return Bn(this, a);
3836
+ return jn(this, a);
3798
3837
  }
3799
3838
  findNextEnabledDayIndex(a, t, n, r) {
3800
- return we(this, a, t, n);
3839
+ return xe(this, a, t, n);
3801
3840
  }
3802
3841
  moveFocus(a) {
3803
- return Pn(this, a);
3842
+ return Bn(this, a);
3804
3843
  }
3805
3844
  // Selection methods - wrappers for pure functions
3806
3845
  async selectDay(a) {
3807
- return await xn(this, a);
3846
+ return await Sn(this, a);
3808
3847
  }
3809
3848
  selectToday() {
3810
- return Mn(this);
3849
+ return Cn(this);
3811
3850
  }
3812
3851
  clearSelection() {
3813
- return Sn(this);
3852
+ return En(this);
3814
3853
  }
3815
3854
  apply() {
3816
- return Cn(this);
3855
+ return In(this);
3817
3856
  }
3818
3857
  // Interaction methods - wrappers for pure functions
3819
3858
  initDragListeners() {
3820
- return En(this);
3859
+ return kn(this);
3821
3860
  }
3822
3861
  startDrag(a, t, n) {
3823
- return Kt(this, a, t, n);
3862
+ return Jt(this, a, t, n);
3824
3863
  }
3825
3864
  onDragMove(a) {
3826
- return Gt(this, a);
3865
+ return Qt(this, a);
3827
3866
  }
3828
3867
  async onDragEnd(a) {
3829
- return await Xt(this);
3868
+ return await Zt(this);
3830
3869
  }
3831
3870
  findNearestEnabledDate(a, t = "forward") {
3832
- return Pe(this, a, t);
3871
+ return Oe(this, a, t);
3833
3872
  }
3834
3873
  handleInputMask(a) {
3835
- return In(this, a);
3874
+ return Rn(this, a);
3836
3875
  }
3837
3876
  applyMask(a) {
3838
3877
  return me(this, a);
3839
3878
  }
3840
3879
  applyRangeMask(a) {
3841
- return Jt(this, a);
3880
+ return ea(this, a);
3842
3881
  }
3843
3882
  handleKeydown(a) {
3844
- return Rn(this, a);
3883
+ return An(this, a);
3845
3884
  }
3846
3885
  handlePaste(a) {
3847
- return An(this, a);
3886
+ return Tn(this, a);
3848
3887
  }
3849
3888
  updateCalendarFromInput() {
3850
- return Ue(this);
3889
+ return qe(this);
3851
3890
  }
3852
3891
  parseAndUpdateSingleDate(a, t = "single") {
3853
3892
  return Ae(this, a, t);
@@ -3877,11 +3916,11 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3877
3916
  */
3878
3917
  static injectGlobalStyles(a = !1) {
3879
3918
  if (K.stylesInjected && !a) {
3880
- L.debug("Styles already injected, skipping");
3919
+ T.debug("Styles already injected, skipping");
3881
3920
  return;
3882
3921
  }
3883
3922
  const t = document.createElement("style");
3884
- t.setAttribute("data-source", "web-daterangepicker"), t.textContent = da, document.head.appendChild(t), K.stylesInjected = !0, L.info("Global styles injected successfully");
3923
+ t.setAttribute("data-source", "web-daterangepicker"), t.textContent = ca, document.head.appendChild(t), K.stylesInjected = !0, T.info("Global styles injected successfully");
3885
3924
  }
3886
3925
  /**
3887
3926
  * Check if styles appear to be loaded
@@ -3902,69 +3941,70 @@ const da = ':host,:root{--drp-rem: 10px;font-family:var(--drp-font-family, var(-
3902
3941
  };
3903
3942
  // Static flag to track if styles have been injected
3904
3943
  b(K, "stylesInjected", !1), b(K, "ACTIVE_EVENT", "drp-picker-activated");
3905
- let nt = K;
3944
+ let it = K;
3906
3945
  const ae = (e, a) => e.getAttribute(a) || void 0, je = (e, a) => {
3907
3946
  const t = parseInt(e.getAttribute(a) || "0");
3908
3947
  return Number.isFinite(t) && t > 0 ? t : void 0;
3909
- }, Jn = (e, a) => {
3948
+ }, ar = (e, a) => {
3910
3949
  const t = e.getAttribute(a);
3911
3950
  if (t == null) return;
3912
3951
  const n = parseInt(t);
3913
3952
  return Number.isFinite(n) ? n : void 0;
3914
- }, We = (e, a) => e.hasAttribute(a), Re = (e, a) => e.hasAttribute(a) ? e.getAttribute(a) === "true" : void 0, Qn = (e, a) => e.hasAttribute(a) ? e.getAttribute(a) !== "false" : void 0, le = (e) => (a, t) => {
3953
+ }, Ke = (e, a) => e.hasAttribute(a), we = (e, a) => e.hasAttribute(a) ? e.getAttribute(a) === "true" : void 0, nr = (e, a) => e.hasAttribute(a) ? e.getAttribute(a) !== "false" : void 0, le = (e) => (a, t) => {
3915
3954
  const n = a.getAttribute(t);
3916
3955
  return n && e.includes(n) ? n : void 0;
3917
- }, At = (e) => (a, t) => a.getAttribute(t) || e, Zn = (e, a) => {
3956
+ }, Lt = (e) => (a, t) => a.getAttribute(t) || e, rr = (e, a) => {
3918
3957
  const t = e.getAttribute(a);
3919
3958
  if (!t) return;
3920
3959
  const n = t.split(",").map((r) => parseInt(r.trim())).filter((r) => !isNaN(r) && r >= 0 && r <= 6);
3921
3960
  return n.length ? n : void 0;
3922
- }, er = (e, a) => {
3961
+ }, ir = (e, a) => {
3923
3962
  const t = e.getAttribute(a);
3924
3963
  if (!t) return;
3925
3964
  if (t === "auto") return "auto";
3926
3965
  const n = parseInt(t);
3927
3966
  return !isNaN(n) && n >= 0 && n <= 6 ? n : void 0;
3928
- }, tr = ["single", "range", "multiple"], ar = ["focus", "typing", "manual"], nr = ["horizontal", "grid"], rr = ["inline", "floating"], ir = ["allow", "prevent", "block", "split", "individual"], or = ["never", "selection", "apply"], rt = [
3929
- { attr: "selection-mode", key: "selectionMode", parser: le(tr) },
3930
- { attr: "date-format-mask", key: "dateFormatMask", parser: At("YYYY-MM-DD") },
3967
+ }, or = ["single", "range", "multiple"], sr = ["focus", "typing", "manual"], dr = ["horizontal", "grid"], lr = ["inline", "floating", "modal"], cr = ["allow", "prevent", "block", "split", "individual"], pr = ["never", "selection", "apply"], ot = [
3968
+ { attr: "selection-mode", key: "selectionMode", parser: le(or) },
3969
+ { attr: "date-format-mask", key: "dateFormatMask", parser: Lt("YYYY-MM-DD") },
3931
3970
  { attr: "visible-months-count", key: "visibleMonthsCount", parser: je },
3932
- { attr: "calendar-open-trigger", key: "calendarOpenTrigger", parser: le(ar) },
3933
- { attr: "month-layout", key: "monthLayout", parser: le(nr) },
3971
+ { attr: "calendar-open-trigger", key: "calendarOpenTrigger", parser: le(sr) },
3972
+ { attr: "month-layout", key: "monthLayout", parser: le(dr) },
3934
3973
  { attr: "grid-rows", key: "gridRows", parser: je },
3935
3974
  { attr: "grid-columns", key: "gridColumns", parser: je },
3936
- { attr: "unified-navigation", key: "unifiedNavigation", parser: We },
3937
- { attr: "unified-navigation-anchor-index", key: "unifiedNavigationAnchorIndex", parser: Jn },
3938
- { attr: "unified-header-interactive", key: "unifiedHeaderInteractive", parser: We },
3975
+ { attr: "unified-navigation", key: "unifiedNavigation", parser: Ke },
3976
+ { attr: "unified-navigation-anchor-index", key: "unifiedNavigationAnchorIndex", parser: ar },
3977
+ { attr: "unified-header-interactive", key: "unifiedHeaderInteractive", parser: Ke },
3939
3978
  { attr: "calendar-placement", key: "calendarPlacement", parser: ae },
3940
- { attr: "positioning-mode", key: "positioningMode", parser: le(rr) },
3941
- { attr: "week-start-day", key: "weekStartDay", parser: er },
3979
+ { attr: "positioning-mode", key: "positioningMode", parser: le(lr) },
3980
+ { attr: "week-start-day", key: "weekStartDay", parser: ir },
3942
3981
  { attr: "min-date", key: "minDate", parser: ae },
3943
3982
  { attr: "max-date", key: "maxDate", parser: ae },
3944
3983
  { attr: "initial-date", key: "initialDate", parser: ae },
3945
- { attr: "disabled-weekdays", key: "disabledWeekdays", parser: Zn },
3946
- { attr: "disabled-dates-handling", key: "disabledDatesHandling", parser: le(ir) },
3947
- { attr: "highlight-disabled-in-range", key: "highlightDisabledInRange", parser: Re },
3948
- { attr: "locale", key: "locale", parser: At("auto") },
3984
+ { attr: "disabled-weekdays", key: "disabledWeekdays", parser: rr },
3985
+ { attr: "disabled-dates-handling", key: "disabledDatesHandling", parser: le(cr) },
3986
+ { attr: "highlight-disabled-in-range", key: "highlightDisabledInRange", parser: we },
3987
+ { attr: "locale", key: "locale", parser: Lt("auto") },
3949
3988
  { attr: "display-format-mask", key: "displayFormatMask", parser: ae },
3950
- { attr: "show-debug-info", key: "showDebugInfo", parser: We },
3989
+ { attr: "show-debug-info", key: "showDebugInfo", parser: Ke },
3951
3990
  { attr: "rolling-year-range", key: "rollingYearRange", parser: ae },
3952
3991
  { attr: "rolling-month-range", key: "rollingMonthRange", parser: ae },
3953
- { attr: "auto-close", key: "autoClose", parser: le(or) },
3954
- { attr: "close-on-scroll", key: "closeOnScroll", parser: Qn },
3955
- { attr: "show-today-button", key: "showTodayButton", parser: Re },
3956
- { attr: "show-clear-button", key: "showClearButton", parser: Re },
3957
- { attr: "show-apply-button", key: "showApplyButton", parser: Re }
3958
- ], sr = ["value", "placeholder", "disabled", "enable-transitions", "input-size"];
3959
- function dr(e) {
3992
+ { attr: "auto-close", key: "autoClose", parser: le(pr) },
3993
+ { attr: "close-on-scroll", key: "closeOnScroll", parser: nr },
3994
+ { attr: "show-today-button", key: "showTodayButton", parser: we },
3995
+ { attr: "show-clear-button", key: "showClearButton", parser: we },
3996
+ { attr: "show-apply-button", key: "showApplyButton", parser: we },
3997
+ { attr: "show-summary", key: "showSummary", parser: we }
3998
+ ], ur = ["value", "placeholder", "disabled", "enable-transitions", "input-size", "mobile-modal-breakpoint", "mobile-modal-min-height"];
3999
+ function gr(e) {
3960
4000
  const a = {};
3961
- for (const t of rt) {
4001
+ for (const t of ot) {
3962
4002
  const n = t.parser(e, t.attr);
3963
4003
  n !== void 0 && (a[t.key] = n);
3964
4004
  }
3965
4005
  return a;
3966
4006
  }
3967
- class la extends HTMLElement {
4007
+ class pa extends HTMLElement {
3968
4008
  constructor() {
3969
4009
  super();
3970
4010
  b(this, "picker");
@@ -3996,12 +4036,19 @@ class la extends HTMLElement {
3996
4036
  b(this, "_actionButtons");
3997
4037
  // Deferred re-initialization flag
3998
4038
  b(this, "_pendingReinit", !1);
4039
+ // Auto-engage state: matchMedia listeners that flip positioning-mode between
4040
+ // the user-configured value and 'modal' as the viewport crosses any threshold.
4041
+ // Set up via the `mobile-modal-breakpoint` (width) and `mobile-modal-min-height`
4042
+ // (height) attributes — modal engages if ANY listener matches.
4043
+ b(this, "_mobileModalMqls", []);
4044
+ b(this, "_mobileModalListener", null);
4045
+ b(this, "_configuredPositioningMode", null);
3999
4046
  this.shadow = this.attachShadow({ mode: "open" });
4000
4047
  }
4001
4048
  static get observedAttributes() {
4002
4049
  return [
4003
- ...rt.map((t) => t.attr),
4004
- ...sr
4050
+ ...ot.map((t) => t.attr),
4051
+ ...ur
4005
4052
  ];
4006
4053
  }
4007
4054
  applyTransitionStyles() {
@@ -4015,15 +4062,56 @@ class la extends HTMLElement {
4015
4062
  this.inputElement.classList.remove("drp-input--xs", "drp-input--sm", "drp-input--lg", "drp-input--xl"), this.inputElement.classList.remove("drp-date-picker-input--xs", "drp-date-picker-input--sm", "drp-date-picker-input--lg", "drp-date-picker-input--xl"), t && t !== "md" && (this.inputElement.classList.add(`drp-input--${t}`), this.inputElement.classList.add(`drp-date-picker-input--${t}`));
4016
4063
  }
4017
4064
  connectedCallback() {
4018
- this.render(), this.initializePicker();
4065
+ this.render(), this.initializePicker(), this.setupMobileModalListener();
4019
4066
  }
4020
4067
  disconnectedCallback() {
4021
- this.picker && this.picker.destroy();
4068
+ this.teardownMobileModalListener(), this.picker && this.picker.destroy();
4069
+ }
4070
+ /**
4071
+ * Set up matchMedia listeners that auto-switch positioning-mode to 'modal'
4072
+ * when ANY configured viewport threshold matches, and back to the configured
4073
+ * mode when none do.
4074
+ *
4075
+ * Activated by:
4076
+ * `mobile-modal-breakpoint` — viewport width below this engages modal
4077
+ * (e.g., "640px" → `(max-width: 640px)`).
4078
+ * `mobile-modal-min-height` — viewport height below this engages modal
4079
+ * (e.g., "500px" → `(max-height: 500px)`).
4080
+ *
4081
+ * Either attribute alone works; both together OR their results.
4082
+ * Only auto-switches when the configured mode is 'floating' — pickers with
4083
+ * `inline` or already-`modal` configurations are left alone.
4084
+ */
4085
+ setupMobileModalListener() {
4086
+ this.teardownMobileModalListener();
4087
+ const t = this.getAttribute("mobile-modal-breakpoint"), n = this.getAttribute("mobile-modal-min-height");
4088
+ if (!t && !n) return;
4089
+ const r = this.getAttribute("positioning-mode") || "floating";
4090
+ if (r !== "floating") return;
4091
+ this._configuredPositioningMode = r;
4092
+ const i = (d) => /^\d+$/.test(d) ? `${d}px` : d, o = [];
4093
+ t && o.push(`(max-width: ${i(t)})`), n && o.push(`(max-height: ${i(n)})`), this._mobileModalMqls = o.map((d) => window.matchMedia(d));
4094
+ const s = () => {
4095
+ const l = this._mobileModalMqls.some((c) => c.matches) ? "modal" : this._configuredPositioningMode || "floating";
4096
+ this.getAttribute("positioning-mode") !== l && this.setAttribute("positioning-mode", l);
4097
+ };
4098
+ s(), this._mobileModalListener = () => s(), this._mobileModalMqls.forEach((d) => {
4099
+ d.addEventListener("change", this._mobileModalListener);
4100
+ });
4101
+ }
4102
+ teardownMobileModalListener() {
4103
+ this._mobileModalListener && this._mobileModalMqls.forEach((t) => {
4104
+ t.removeEventListener("change", this._mobileModalListener);
4105
+ }), this._mobileModalMqls = [], this._mobileModalListener = null, this._configuredPositioningMode = null;
4022
4106
  }
4023
4107
  attributeChangedCallback(t, n, r) {
4024
4108
  if (n === r) return;
4025
4109
  if (t === "enable-transitions") return this.applyTransitionStyles();
4026
4110
  if (t === "input-size") return this.applyInputSizeStyles();
4111
+ if (t === "mobile-modal-breakpoint" || t === "mobile-modal-min-height") {
4112
+ this.picker && this.setupMobileModalListener();
4113
+ return;
4114
+ }
4027
4115
  if (t === "value" && this.inputElement && r !== null) {
4028
4116
  this.inputElement.value = r;
4029
4117
  return;
@@ -4037,7 +4125,7 @@ class la extends HTMLElement {
4037
4125
  return;
4038
4126
  }
4039
4127
  if (!this.picker) return;
4040
- const i = rt.find((o) => o.attr === t);
4128
+ const i = ot.find((o) => o.attr === t);
4041
4129
  if (i) {
4042
4130
  const o = i.parser(this, i.attr);
4043
4131
  if (this.picker.updateOptions({ [i.key]: o })) return;
@@ -4046,7 +4134,9 @@ class la extends HTMLElement {
4046
4134
  }
4047
4135
  render() {
4048
4136
  const t = document.createElement("style");
4049
- if (t.textContent = da, this.shadow.appendChild(t), (this.getAttribute("positioning-mode") || "floating") === "floating") {
4137
+ t.textContent = ca, this.shadow.appendChild(t);
4138
+ const n = this.getAttribute("positioning-mode") || "floating";
4139
+ if (n === "floating" || n === "modal") {
4050
4140
  this.inputElement = document.createElement("input"), this.inputElement.type = "text", this.inputElement.classList.add("drp-input", "drp-date-picker-input");
4051
4141
  const r = this.getAttribute("placeholder");
4052
4142
  r && (this.inputElement.placeholder = r);
@@ -4056,9 +4146,9 @@ class la extends HTMLElement {
4056
4146
  }
4057
4147
  initializePicker() {
4058
4148
  const t = this.getAttribute("positioning-mode") || "floating";
4059
- if (t === "floating" && !this.inputElement) return;
4149
+ if ((t === "floating" || t === "modal") && !this.inputElement) return;
4060
4150
  const n = {
4061
- ...dr(this),
4151
+ ...gr(this),
4062
4152
  // Defaults that aren't attribute-derived or that always need a value
4063
4153
  selectionMode: this.getAttribute("selection-mode") || "single",
4064
4154
  calendarOpenTrigger: this.getAttribute("calendar-open-trigger") || "focus",
@@ -4089,7 +4179,7 @@ class la extends HTMLElement {
4089
4179
  getMonthHeaderCallback: this._getMonthHeaderCallback,
4090
4180
  actionButtons: this._actionButtons
4091
4181
  }, r = t === "inline" ? null : this.inputElement;
4092
- if (this.picker = new nt(r, n), this.picker.calendar.addEventListener("custom-action", (i) => {
4182
+ if (this.picker = new it(r, n), this.picker.calendar.addEventListener("custom-action", (i) => {
4093
4183
  const o = i;
4094
4184
  this.dispatchEvent(new CustomEvent("custom-action", {
4095
4185
  detail: o.detail,
@@ -4455,33 +4545,33 @@ class la extends HTMLElement {
4455
4545
  this.picker && (this.picker.isOpen = t);
4456
4546
  }
4457
4547
  }
4458
- customElements.get("web-daterangepicker") || customElements.define("web-daterangepicker", la);
4459
- function lr() {
4548
+ customElements.get("web-daterangepicker") || customElements.define("web-daterangepicker", pa);
4549
+ function hr() {
4460
4550
  return Array.from(document.querySelectorAll("web-daterangepicker"));
4461
4551
  }
4462
4552
  typeof window < "u" && (window.components = window.components || {}, window.components["web-daterangepicker"] = {
4463
- version: () => "1.11.0",
4553
+ version: () => "1.12.0",
4464
4554
  config: {
4465
4555
  name: "@keenmate/web-daterangepicker",
4466
- version: "1.11.0",
4556
+ version: "1.12.0",
4467
4557
  author: "Keenmate",
4468
4558
  license: "MIT",
4469
4559
  repository: "git+https://github.com/keenmate/web-daterangepicker.git",
4470
4560
  homepage: "https://github.com/keenmate/web-daterangepicker#readme"
4471
4561
  },
4472
4562
  register: () => {
4473
- typeof customElements < "u" && !customElements.get("web-daterangepicker") && customElements.define("web-daterangepicker", la);
4563
+ typeof customElements < "u" && !customElements.get("web-daterangepicker") && customElements.define("web-daterangepicker", pa);
4474
4564
  },
4475
- getInstances: () => lr(),
4565
+ getInstances: () => hr(),
4476
4566
  logging: {
4477
- enableLogging: Ke,
4478
- disableLogging: Ge,
4479
- setLogLevel: it,
4480
- setCategoryLevel: Ia,
4481
- getCategories: Ra
4567
+ enableLogging: Ge,
4568
+ disableLogging: Xe,
4569
+ setLogLevel: st,
4570
+ setCategoryLevel: Ra,
4571
+ getCategories: Aa
4482
4572
  }
4483
4573
  }, window.components["web-daterangepicker"].register());
4484
4574
  export {
4485
- nt as DateRangePicker,
4486
- la as WebDaterangepickerElement
4575
+ it as DateRangePicker,
4576
+ pa as WebDaterangepickerElement
4487
4577
  };