lino 25.8.1__py3-none-any.whl → 25.8.3__py3-none-any.whl

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.
Files changed (110) hide show
  1. lino/__init__.py +1 -1
  2. lino/config/unused/403.html +1 -1
  3. lino/config/unused/404.html +1 -1
  4. lino/config/unused/500.html +1 -1
  5. lino/core/actions.py +1 -1
  6. lino/core/actors.py +2 -2
  7. lino/core/elems.py +1 -1
  8. lino/core/kernel.py +5 -1
  9. lino/core/renderer.py +2 -2
  10. lino/core/requests.py +4 -5
  11. lino/core/site.py +5 -3
  12. lino/core/store.py +3 -1
  13. lino/core/urls.py +1 -1
  14. lino/help_texts.py +9 -5
  15. lino/modlib/__init__.py +1 -1
  16. lino/modlib/bootstrap5/README.txt +2 -0
  17. lino/modlib/{bootstrap3 → bootstrap5}/__init__.py +6 -6
  18. lino/modlib/{bootstrap3/config/bootstrap3 → bootstrap5/config/bootstrap5}/base.html +5 -4
  19. lino/modlib/{bootstrap3/config/bootstrap3 → bootstrap5/config/bootstrap5}/detail.html +1 -1
  20. lino/modlib/{bootstrap3/config/bootstrap3 → bootstrap5/config/bootstrap5}/index.html +1 -1
  21. lino/modlib/{bootstrap3/config/bootstrap3 → bootstrap5/config/bootstrap5}/table.html +1 -1
  22. lino/modlib/{bootstrap3 → bootstrap5}/models.py +2 -2
  23. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-grid.css +4085 -0
  24. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-grid.css.map +1 -0
  25. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-grid.min.css +6 -0
  26. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-grid.min.css.map +1 -0
  27. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-grid.rtl.css +4084 -0
  28. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-grid.rtl.css.map +1 -0
  29. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-grid.rtl.min.css +6 -0
  30. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-grid.rtl.min.css.map +1 -0
  31. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-reboot.css +597 -0
  32. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-reboot.css.map +1 -0
  33. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-reboot.min.css +6 -0
  34. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-reboot.min.css.map +1 -0
  35. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-reboot.rtl.css +594 -0
  36. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-reboot.rtl.css.map +1 -0
  37. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-reboot.rtl.min.css +6 -0
  38. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-reboot.rtl.min.css.map +1 -0
  39. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-utilities.css +5406 -0
  40. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-utilities.css.map +1 -0
  41. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-utilities.min.css +6 -0
  42. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-utilities.min.css.map +1 -0
  43. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-utilities.rtl.css +5397 -0
  44. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-utilities.rtl.css.map +1 -0
  45. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-utilities.rtl.min.css +6 -0
  46. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap-utilities.rtl.min.css.map +1 -0
  47. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap.css +12043 -0
  48. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap.css.map +1 -0
  49. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap.min.css +6 -0
  50. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap.min.css.map +1 -0
  51. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap.rtl.css +12016 -0
  52. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap.rtl.css.map +1 -0
  53. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap.rtl.min.css +6 -0
  54. lino/modlib/bootstrap5/static/bootstrap-5.3.7/css/bootstrap.rtl.min.css.map +1 -0
  55. lino/modlib/bootstrap5/static/bootstrap-5.3.7/js/bootstrap.bundle.js +6315 -0
  56. lino/modlib/bootstrap5/static/bootstrap-5.3.7/js/bootstrap.bundle.js.map +1 -0
  57. lino/modlib/bootstrap5/static/bootstrap-5.3.7/js/bootstrap.bundle.min.js +7 -0
  58. lino/modlib/bootstrap5/static/bootstrap-5.3.7/js/bootstrap.bundle.min.js.map +1 -0
  59. lino/modlib/bootstrap5/static/bootstrap-5.3.7/js/bootstrap.esm.js +4450 -0
  60. lino/modlib/bootstrap5/static/bootstrap-5.3.7/js/bootstrap.esm.js.map +1 -0
  61. lino/modlib/bootstrap5/static/bootstrap-5.3.7/js/bootstrap.esm.min.js +7 -0
  62. lino/modlib/bootstrap5/static/bootstrap-5.3.7/js/bootstrap.esm.min.js.map +1 -0
  63. lino/modlib/bootstrap5/static/bootstrap-5.3.7/js/bootstrap.js +4497 -0
  64. lino/modlib/bootstrap5/static/bootstrap-5.3.7/js/bootstrap.js.map +1 -0
  65. lino/modlib/bootstrap5/static/bootstrap-5.3.7/js/bootstrap.min.js +7 -0
  66. lino/modlib/bootstrap5/static/bootstrap-5.3.7/js/bootstrap.min.js.map +1 -0
  67. lino/modlib/{bootstrap3 → bootstrap5}/views.py +10 -10
  68. lino/modlib/comments/__init__.py +0 -8
  69. lino/modlib/comments/mixins.py +2 -9
  70. lino/modlib/comments/models.py +5 -20
  71. lino/modlib/extjs/__init__.py +1 -1
  72. lino/modlib/jinja/renderer.py +1 -1
  73. lino/modlib/memo/__init__.py +1 -2
  74. lino/modlib/odata/views.py +7 -7
  75. lino/modlib/publisher/__init__.py +9 -2
  76. lino/modlib/publisher/choicelists.py +12 -43
  77. lino/modlib/publisher/config/publisher/page.pub.html +10 -13
  78. lino/modlib/publisher/fixtures/synodalworld.py +3 -1
  79. lino/modlib/publisher/mixins.py +28 -75
  80. lino/modlib/publisher/models.py +49 -143
  81. lino/modlib/publisher/renderer.py +6 -2
  82. lino/modlib/publisher/ui.py +23 -75
  83. lino/modlib/publisher/views.py +30 -15
  84. lino/modlib/users/__init__.py +8 -0
  85. lino/modlib/users/fixtures/abc.py +20 -0
  86. lino/modlib/users/mixins.py +56 -2
  87. lino/modlib/weasyprint/__init__.py +25 -14
  88. lino/modlib/weasyprint/config/weasyprint/base.weasy.html +43 -27
  89. {lino-25.8.1.dist-info → lino-25.8.3.dist-info}/METADATA +1 -1
  90. {lino-25.8.1.dist-info → lino-25.8.3.dist-info}/RECORD +104 -64
  91. lino/modlib/bootstrap3/README.txt +0 -2
  92. lino/modlib/bootstrap3/static/bootstrap-3.3.4/css/bootstrap.css +0 -6584
  93. lino/modlib/bootstrap3/static/bootstrap-3.3.4/css/bootstrap.css.map +0 -1
  94. lino/modlib/bootstrap3/static/bootstrap-3.3.4/css/bootstrap.min.css +0 -5
  95. lino/modlib/bootstrap3/static/bootstrap-3.3.4/js/bootstrap.js +0 -2317
  96. lino/modlib/bootstrap3/static/bootstrap-3.3.4/js/bootstrap.min.js +0 -7
  97. /lino/modlib/{bootstrap3 → bootstrap5}/renderer.py +0 -0
  98. /lino/modlib/{bootstrap3/static/bootstrap-3.3.4 → bootstrap5/static/bootstrap-5.3.7}/css/bootstrap-theme.css +0 -0
  99. /lino/modlib/{bootstrap3/static/bootstrap-3.3.4 → bootstrap5/static/bootstrap-5.3.7}/css/bootstrap-theme.css.map +0 -0
  100. /lino/modlib/{bootstrap3/static/bootstrap-3.3.4 → bootstrap5/static/bootstrap-5.3.7}/css/bootstrap-theme.min.css +0 -0
  101. /lino/modlib/{bootstrap3/static/bootstrap-3.3.4 → bootstrap5/static/bootstrap-5.3.7}/fonts/glyphicons-halflings-regular.eot +0 -0
  102. /lino/modlib/{bootstrap3/static/bootstrap-3.3.4 → bootstrap5/static/bootstrap-5.3.7}/fonts/glyphicons-halflings-regular.svg +0 -0
  103. /lino/modlib/{bootstrap3/static/bootstrap-3.3.4 → bootstrap5/static/bootstrap-5.3.7}/fonts/glyphicons-halflings-regular.ttf +0 -0
  104. /lino/modlib/{bootstrap3/static/bootstrap-3.3.4 → bootstrap5/static/bootstrap-5.3.7}/fonts/glyphicons-halflings-regular.woff +0 -0
  105. /lino/modlib/{bootstrap3/static/bootstrap-3.3.4 → bootstrap5/static/bootstrap-5.3.7}/fonts/glyphicons-halflings-regular.woff2 +0 -0
  106. /lino/modlib/{bootstrap3/static/bootstrap-3.3.4 → bootstrap5/static/bootstrap-5.3.7}/js/bootstrap_lino.js +0 -0
  107. /lino/modlib/{bootstrap3/static/bootstrap-3.3.4 → bootstrap5/static/bootstrap-5.3.7}/js/npm.js +0 -0
  108. {lino-25.8.1.dist-info → lino-25.8.3.dist-info}/WHEEL +0 -0
  109. {lino-25.8.1.dist-info → lino-25.8.3.dist-info}/licenses/AUTHORS.rst +0 -0
  110. {lino-25.8.1.dist-info → lino-25.8.3.dist-info}/licenses/COPYING +0 -0
@@ -0,0 +1,4450 @@
1
+ /*!
2
+ * Bootstrap v5.3.7 (https://getbootstrap.com/)
3
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
+ */
6
+ import * as Popper from '@popperjs/core';
7
+
8
+ /**
9
+ * --------------------------------------------------------------------------
10
+ * Bootstrap dom/data.js
11
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
12
+ * --------------------------------------------------------------------------
13
+ */
14
+
15
+ /**
16
+ * Constants
17
+ */
18
+
19
+ const elementMap = new Map();
20
+ const Data = {
21
+ set(element, key, instance) {
22
+ if (!elementMap.has(element)) {
23
+ elementMap.set(element, new Map());
24
+ }
25
+ const instanceMap = elementMap.get(element);
26
+
27
+ // make it clear we only want one instance per element
28
+ // can be removed later when multiple key/instances are fine to be used
29
+ if (!instanceMap.has(key) && instanceMap.size !== 0) {
30
+ // eslint-disable-next-line no-console
31
+ console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(instanceMap.keys())[0]}.`);
32
+ return;
33
+ }
34
+ instanceMap.set(key, instance);
35
+ },
36
+ get(element, key) {
37
+ if (elementMap.has(element)) {
38
+ return elementMap.get(element).get(key) || null;
39
+ }
40
+ return null;
41
+ },
42
+ remove(element, key) {
43
+ if (!elementMap.has(element)) {
44
+ return;
45
+ }
46
+ const instanceMap = elementMap.get(element);
47
+ instanceMap.delete(key);
48
+
49
+ // free up element references if there are no instances left for an element
50
+ if (instanceMap.size === 0) {
51
+ elementMap.delete(element);
52
+ }
53
+ }
54
+ };
55
+
56
+ /**
57
+ * --------------------------------------------------------------------------
58
+ * Bootstrap util/index.js
59
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
60
+ * --------------------------------------------------------------------------
61
+ */
62
+
63
+ const MAX_UID = 1000000;
64
+ const MILLISECONDS_MULTIPLIER = 1000;
65
+ const TRANSITION_END = 'transitionend';
66
+
67
+ /**
68
+ * Properly escape IDs selectors to handle weird IDs
69
+ * @param {string} selector
70
+ * @returns {string}
71
+ */
72
+ const parseSelector = selector => {
73
+ if (selector && window.CSS && window.CSS.escape) {
74
+ // document.querySelector needs escaping to handle IDs (html5+) containing for instance /
75
+ selector = selector.replace(/#([^\s"#']+)/g, (match, id) => `#${CSS.escape(id)}`);
76
+ }
77
+ return selector;
78
+ };
79
+
80
+ // Shout-out Angus Croll (https://goo.gl/pxwQGp)
81
+ const toType = object => {
82
+ if (object === null || object === undefined) {
83
+ return `${object}`;
84
+ }
85
+ return Object.prototype.toString.call(object).match(/\s([a-z]+)/i)[1].toLowerCase();
86
+ };
87
+
88
+ /**
89
+ * Public Util API
90
+ */
91
+
92
+ const getUID = prefix => {
93
+ do {
94
+ prefix += Math.floor(Math.random() * MAX_UID);
95
+ } while (document.getElementById(prefix));
96
+ return prefix;
97
+ };
98
+ const getTransitionDurationFromElement = element => {
99
+ if (!element) {
100
+ return 0;
101
+ }
102
+
103
+ // Get transition-duration of the element
104
+ let {
105
+ transitionDuration,
106
+ transitionDelay
107
+ } = window.getComputedStyle(element);
108
+ const floatTransitionDuration = Number.parseFloat(transitionDuration);
109
+ const floatTransitionDelay = Number.parseFloat(transitionDelay);
110
+
111
+ // Return 0 if element or transition duration is not found
112
+ if (!floatTransitionDuration && !floatTransitionDelay) {
113
+ return 0;
114
+ }
115
+
116
+ // If multiple durations are defined, take the first
117
+ transitionDuration = transitionDuration.split(',')[0];
118
+ transitionDelay = transitionDelay.split(',')[0];
119
+ return (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
120
+ };
121
+ const triggerTransitionEnd = element => {
122
+ element.dispatchEvent(new Event(TRANSITION_END));
123
+ };
124
+ const isElement = object => {
125
+ if (!object || typeof object !== 'object') {
126
+ return false;
127
+ }
128
+ if (typeof object.jquery !== 'undefined') {
129
+ object = object[0];
130
+ }
131
+ return typeof object.nodeType !== 'undefined';
132
+ };
133
+ const getElement = object => {
134
+ // it's a jQuery object or a node element
135
+ if (isElement(object)) {
136
+ return object.jquery ? object[0] : object;
137
+ }
138
+ if (typeof object === 'string' && object.length > 0) {
139
+ return document.querySelector(parseSelector(object));
140
+ }
141
+ return null;
142
+ };
143
+ const isVisible = element => {
144
+ if (!isElement(element) || element.getClientRects().length === 0) {
145
+ return false;
146
+ }
147
+ const elementIsVisible = getComputedStyle(element).getPropertyValue('visibility') === 'visible';
148
+ // Handle `details` element as its content may falsie appear visible when it is closed
149
+ const closedDetails = element.closest('details:not([open])');
150
+ if (!closedDetails) {
151
+ return elementIsVisible;
152
+ }
153
+ if (closedDetails !== element) {
154
+ const summary = element.closest('summary');
155
+ if (summary && summary.parentNode !== closedDetails) {
156
+ return false;
157
+ }
158
+ if (summary === null) {
159
+ return false;
160
+ }
161
+ }
162
+ return elementIsVisible;
163
+ };
164
+ const isDisabled = element => {
165
+ if (!element || element.nodeType !== Node.ELEMENT_NODE) {
166
+ return true;
167
+ }
168
+ if (element.classList.contains('disabled')) {
169
+ return true;
170
+ }
171
+ if (typeof element.disabled !== 'undefined') {
172
+ return element.disabled;
173
+ }
174
+ return element.hasAttribute('disabled') && element.getAttribute('disabled') !== 'false';
175
+ };
176
+ const findShadowRoot = element => {
177
+ if (!document.documentElement.attachShadow) {
178
+ return null;
179
+ }
180
+
181
+ // Can find the shadow root otherwise it'll return the document
182
+ if (typeof element.getRootNode === 'function') {
183
+ const root = element.getRootNode();
184
+ return root instanceof ShadowRoot ? root : null;
185
+ }
186
+ if (element instanceof ShadowRoot) {
187
+ return element;
188
+ }
189
+
190
+ // when we don't find a shadow root
191
+ if (!element.parentNode) {
192
+ return null;
193
+ }
194
+ return findShadowRoot(element.parentNode);
195
+ };
196
+ const noop = () => {};
197
+
198
+ /**
199
+ * Trick to restart an element's animation
200
+ *
201
+ * @param {HTMLElement} element
202
+ * @return void
203
+ *
204
+ * @see https://www.harrytheo.com/blog/2021/02/restart-a-css-animation-with-javascript/#restarting-a-css-animation
205
+ */
206
+ const reflow = element => {
207
+ element.offsetHeight; // eslint-disable-line no-unused-expressions
208
+ };
209
+ const getjQuery = () => {
210
+ if (window.jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {
211
+ return window.jQuery;
212
+ }
213
+ return null;
214
+ };
215
+ const DOMContentLoadedCallbacks = [];
216
+ const onDOMContentLoaded = callback => {
217
+ if (document.readyState === 'loading') {
218
+ // add listener on the first call when the document is in loading state
219
+ if (!DOMContentLoadedCallbacks.length) {
220
+ document.addEventListener('DOMContentLoaded', () => {
221
+ for (const callback of DOMContentLoadedCallbacks) {
222
+ callback();
223
+ }
224
+ });
225
+ }
226
+ DOMContentLoadedCallbacks.push(callback);
227
+ } else {
228
+ callback();
229
+ }
230
+ };
231
+ const isRTL = () => document.documentElement.dir === 'rtl';
232
+ const defineJQueryPlugin = plugin => {
233
+ onDOMContentLoaded(() => {
234
+ const $ = getjQuery();
235
+ /* istanbul ignore if */
236
+ if ($) {
237
+ const name = plugin.NAME;
238
+ const JQUERY_NO_CONFLICT = $.fn[name];
239
+ $.fn[name] = plugin.jQueryInterface;
240
+ $.fn[name].Constructor = plugin;
241
+ $.fn[name].noConflict = () => {
242
+ $.fn[name] = JQUERY_NO_CONFLICT;
243
+ return plugin.jQueryInterface;
244
+ };
245
+ }
246
+ });
247
+ };
248
+ const execute = (possibleCallback, args = [], defaultValue = possibleCallback) => {
249
+ return typeof possibleCallback === 'function' ? possibleCallback.call(...args) : defaultValue;
250
+ };
251
+ const executeAfterTransition = (callback, transitionElement, waitForTransition = true) => {
252
+ if (!waitForTransition) {
253
+ execute(callback);
254
+ return;
255
+ }
256
+ const durationPadding = 5;
257
+ const emulatedDuration = getTransitionDurationFromElement(transitionElement) + durationPadding;
258
+ let called = false;
259
+ const handler = ({
260
+ target
261
+ }) => {
262
+ if (target !== transitionElement) {
263
+ return;
264
+ }
265
+ called = true;
266
+ transitionElement.removeEventListener(TRANSITION_END, handler);
267
+ execute(callback);
268
+ };
269
+ transitionElement.addEventListener(TRANSITION_END, handler);
270
+ setTimeout(() => {
271
+ if (!called) {
272
+ triggerTransitionEnd(transitionElement);
273
+ }
274
+ }, emulatedDuration);
275
+ };
276
+
277
+ /**
278
+ * Return the previous/next element of a list.
279
+ *
280
+ * @param {array} list The list of elements
281
+ * @param activeElement The active element
282
+ * @param shouldGetNext Choose to get next or previous element
283
+ * @param isCycleAllowed
284
+ * @return {Element|elem} The proper element
285
+ */
286
+ const getNextActiveElement = (list, activeElement, shouldGetNext, isCycleAllowed) => {
287
+ const listLength = list.length;
288
+ let index = list.indexOf(activeElement);
289
+
290
+ // if the element does not exist in the list return an element
291
+ // depending on the direction and if cycle is allowed
292
+ if (index === -1) {
293
+ return !shouldGetNext && isCycleAllowed ? list[listLength - 1] : list[0];
294
+ }
295
+ index += shouldGetNext ? 1 : -1;
296
+ if (isCycleAllowed) {
297
+ index = (index + listLength) % listLength;
298
+ }
299
+ return list[Math.max(0, Math.min(index, listLength - 1))];
300
+ };
301
+
302
+ /**
303
+ * --------------------------------------------------------------------------
304
+ * Bootstrap dom/event-handler.js
305
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
306
+ * --------------------------------------------------------------------------
307
+ */
308
+
309
+
310
+ /**
311
+ * Constants
312
+ */
313
+
314
+ const namespaceRegex = /[^.]*(?=\..*)\.|.*/;
315
+ const stripNameRegex = /\..*/;
316
+ const stripUidRegex = /::\d+$/;
317
+ const eventRegistry = {}; // Events storage
318
+ let uidEvent = 1;
319
+ const customEvents = {
320
+ mouseenter: 'mouseover',
321
+ mouseleave: 'mouseout'
322
+ };
323
+ const nativeEvents = new Set(['click', 'dblclick', 'mouseup', 'mousedown', 'contextmenu', 'mousewheel', 'DOMMouseScroll', 'mouseover', 'mouseout', 'mousemove', 'selectstart', 'selectend', 'keydown', 'keypress', 'keyup', 'orientationchange', 'touchstart', 'touchmove', 'touchend', 'touchcancel', 'pointerdown', 'pointermove', 'pointerup', 'pointerleave', 'pointercancel', 'gesturestart', 'gesturechange', 'gestureend', 'focus', 'blur', 'change', 'reset', 'select', 'submit', 'focusin', 'focusout', 'load', 'unload', 'beforeunload', 'resize', 'move', 'DOMContentLoaded', 'readystatechange', 'error', 'abort', 'scroll']);
324
+
325
+ /**
326
+ * Private methods
327
+ */
328
+
329
+ function makeEventUid(element, uid) {
330
+ return uid && `${uid}::${uidEvent++}` || element.uidEvent || uidEvent++;
331
+ }
332
+ function getElementEvents(element) {
333
+ const uid = makeEventUid(element);
334
+ element.uidEvent = uid;
335
+ eventRegistry[uid] = eventRegistry[uid] || {};
336
+ return eventRegistry[uid];
337
+ }
338
+ function bootstrapHandler(element, fn) {
339
+ return function handler(event) {
340
+ hydrateObj(event, {
341
+ delegateTarget: element
342
+ });
343
+ if (handler.oneOff) {
344
+ EventHandler.off(element, event.type, fn);
345
+ }
346
+ return fn.apply(element, [event]);
347
+ };
348
+ }
349
+ function bootstrapDelegationHandler(element, selector, fn) {
350
+ return function handler(event) {
351
+ const domElements = element.querySelectorAll(selector);
352
+ for (let {
353
+ target
354
+ } = event; target && target !== this; target = target.parentNode) {
355
+ for (const domElement of domElements) {
356
+ if (domElement !== target) {
357
+ continue;
358
+ }
359
+ hydrateObj(event, {
360
+ delegateTarget: target
361
+ });
362
+ if (handler.oneOff) {
363
+ EventHandler.off(element, event.type, selector, fn);
364
+ }
365
+ return fn.apply(target, [event]);
366
+ }
367
+ }
368
+ };
369
+ }
370
+ function findHandler(events, callable, delegationSelector = null) {
371
+ return Object.values(events).find(event => event.callable === callable && event.delegationSelector === delegationSelector);
372
+ }
373
+ function normalizeParameters(originalTypeEvent, handler, delegationFunction) {
374
+ const isDelegated = typeof handler === 'string';
375
+ // TODO: tooltip passes `false` instead of selector, so we need to check
376
+ const callable = isDelegated ? delegationFunction : handler || delegationFunction;
377
+ let typeEvent = getTypeEvent(originalTypeEvent);
378
+ if (!nativeEvents.has(typeEvent)) {
379
+ typeEvent = originalTypeEvent;
380
+ }
381
+ return [isDelegated, callable, typeEvent];
382
+ }
383
+ function addHandler(element, originalTypeEvent, handler, delegationFunction, oneOff) {
384
+ if (typeof originalTypeEvent !== 'string' || !element) {
385
+ return;
386
+ }
387
+ let [isDelegated, callable, typeEvent] = normalizeParameters(originalTypeEvent, handler, delegationFunction);
388
+
389
+ // in case of mouseenter or mouseleave wrap the handler within a function that checks for its DOM position
390
+ // this prevents the handler from being dispatched the same way as mouseover or mouseout does
391
+ if (originalTypeEvent in customEvents) {
392
+ const wrapFunction = fn => {
393
+ return function (event) {
394
+ if (!event.relatedTarget || event.relatedTarget !== event.delegateTarget && !event.delegateTarget.contains(event.relatedTarget)) {
395
+ return fn.call(this, event);
396
+ }
397
+ };
398
+ };
399
+ callable = wrapFunction(callable);
400
+ }
401
+ const events = getElementEvents(element);
402
+ const handlers = events[typeEvent] || (events[typeEvent] = {});
403
+ const previousFunction = findHandler(handlers, callable, isDelegated ? handler : null);
404
+ if (previousFunction) {
405
+ previousFunction.oneOff = previousFunction.oneOff && oneOff;
406
+ return;
407
+ }
408
+ const uid = makeEventUid(callable, originalTypeEvent.replace(namespaceRegex, ''));
409
+ const fn = isDelegated ? bootstrapDelegationHandler(element, handler, callable) : bootstrapHandler(element, callable);
410
+ fn.delegationSelector = isDelegated ? handler : null;
411
+ fn.callable = callable;
412
+ fn.oneOff = oneOff;
413
+ fn.uidEvent = uid;
414
+ handlers[uid] = fn;
415
+ element.addEventListener(typeEvent, fn, isDelegated);
416
+ }
417
+ function removeHandler(element, events, typeEvent, handler, delegationSelector) {
418
+ const fn = findHandler(events[typeEvent], handler, delegationSelector);
419
+ if (!fn) {
420
+ return;
421
+ }
422
+ element.removeEventListener(typeEvent, fn, Boolean(delegationSelector));
423
+ delete events[typeEvent][fn.uidEvent];
424
+ }
425
+ function removeNamespacedHandlers(element, events, typeEvent, namespace) {
426
+ const storeElementEvent = events[typeEvent] || {};
427
+ for (const [handlerKey, event] of Object.entries(storeElementEvent)) {
428
+ if (handlerKey.includes(namespace)) {
429
+ removeHandler(element, events, typeEvent, event.callable, event.delegationSelector);
430
+ }
431
+ }
432
+ }
433
+ function getTypeEvent(event) {
434
+ // allow to get the native events from namespaced events ('click.bs.button' --> 'click')
435
+ event = event.replace(stripNameRegex, '');
436
+ return customEvents[event] || event;
437
+ }
438
+ const EventHandler = {
439
+ on(element, event, handler, delegationFunction) {
440
+ addHandler(element, event, handler, delegationFunction, false);
441
+ },
442
+ one(element, event, handler, delegationFunction) {
443
+ addHandler(element, event, handler, delegationFunction, true);
444
+ },
445
+ off(element, originalTypeEvent, handler, delegationFunction) {
446
+ if (typeof originalTypeEvent !== 'string' || !element) {
447
+ return;
448
+ }
449
+ const [isDelegated, callable, typeEvent] = normalizeParameters(originalTypeEvent, handler, delegationFunction);
450
+ const inNamespace = typeEvent !== originalTypeEvent;
451
+ const events = getElementEvents(element);
452
+ const storeElementEvent = events[typeEvent] || {};
453
+ const isNamespace = originalTypeEvent.startsWith('.');
454
+ if (typeof callable !== 'undefined') {
455
+ // Simplest case: handler is passed, remove that listener ONLY.
456
+ if (!Object.keys(storeElementEvent).length) {
457
+ return;
458
+ }
459
+ removeHandler(element, events, typeEvent, callable, isDelegated ? handler : null);
460
+ return;
461
+ }
462
+ if (isNamespace) {
463
+ for (const elementEvent of Object.keys(events)) {
464
+ removeNamespacedHandlers(element, events, elementEvent, originalTypeEvent.slice(1));
465
+ }
466
+ }
467
+ for (const [keyHandlers, event] of Object.entries(storeElementEvent)) {
468
+ const handlerKey = keyHandlers.replace(stripUidRegex, '');
469
+ if (!inNamespace || originalTypeEvent.includes(handlerKey)) {
470
+ removeHandler(element, events, typeEvent, event.callable, event.delegationSelector);
471
+ }
472
+ }
473
+ },
474
+ trigger(element, event, args) {
475
+ if (typeof event !== 'string' || !element) {
476
+ return null;
477
+ }
478
+ const $ = getjQuery();
479
+ const typeEvent = getTypeEvent(event);
480
+ const inNamespace = event !== typeEvent;
481
+ let jQueryEvent = null;
482
+ let bubbles = true;
483
+ let nativeDispatch = true;
484
+ let defaultPrevented = false;
485
+ if (inNamespace && $) {
486
+ jQueryEvent = $.Event(event, args);
487
+ $(element).trigger(jQueryEvent);
488
+ bubbles = !jQueryEvent.isPropagationStopped();
489
+ nativeDispatch = !jQueryEvent.isImmediatePropagationStopped();
490
+ defaultPrevented = jQueryEvent.isDefaultPrevented();
491
+ }
492
+ const evt = hydrateObj(new Event(event, {
493
+ bubbles,
494
+ cancelable: true
495
+ }), args);
496
+ if (defaultPrevented) {
497
+ evt.preventDefault();
498
+ }
499
+ if (nativeDispatch) {
500
+ element.dispatchEvent(evt);
501
+ }
502
+ if (evt.defaultPrevented && jQueryEvent) {
503
+ jQueryEvent.preventDefault();
504
+ }
505
+ return evt;
506
+ }
507
+ };
508
+ function hydrateObj(obj, meta = {}) {
509
+ for (const [key, value] of Object.entries(meta)) {
510
+ try {
511
+ obj[key] = value;
512
+ } catch (_unused) {
513
+ Object.defineProperty(obj, key, {
514
+ configurable: true,
515
+ get() {
516
+ return value;
517
+ }
518
+ });
519
+ }
520
+ }
521
+ return obj;
522
+ }
523
+
524
+ /**
525
+ * --------------------------------------------------------------------------
526
+ * Bootstrap dom/manipulator.js
527
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
528
+ * --------------------------------------------------------------------------
529
+ */
530
+
531
+ function normalizeData(value) {
532
+ if (value === 'true') {
533
+ return true;
534
+ }
535
+ if (value === 'false') {
536
+ return false;
537
+ }
538
+ if (value === Number(value).toString()) {
539
+ return Number(value);
540
+ }
541
+ if (value === '' || value === 'null') {
542
+ return null;
543
+ }
544
+ if (typeof value !== 'string') {
545
+ return value;
546
+ }
547
+ try {
548
+ return JSON.parse(decodeURIComponent(value));
549
+ } catch (_unused) {
550
+ return value;
551
+ }
552
+ }
553
+ function normalizeDataKey(key) {
554
+ return key.replace(/[A-Z]/g, chr => `-${chr.toLowerCase()}`);
555
+ }
556
+ const Manipulator = {
557
+ setDataAttribute(element, key, value) {
558
+ element.setAttribute(`data-bs-${normalizeDataKey(key)}`, value);
559
+ },
560
+ removeDataAttribute(element, key) {
561
+ element.removeAttribute(`data-bs-${normalizeDataKey(key)}`);
562
+ },
563
+ getDataAttributes(element) {
564
+ if (!element) {
565
+ return {};
566
+ }
567
+ const attributes = {};
568
+ const bsKeys = Object.keys(element.dataset).filter(key => key.startsWith('bs') && !key.startsWith('bsConfig'));
569
+ for (const key of bsKeys) {
570
+ let pureKey = key.replace(/^bs/, '');
571
+ pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1);
572
+ attributes[pureKey] = normalizeData(element.dataset[key]);
573
+ }
574
+ return attributes;
575
+ },
576
+ getDataAttribute(element, key) {
577
+ return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`));
578
+ }
579
+ };
580
+
581
+ /**
582
+ * --------------------------------------------------------------------------
583
+ * Bootstrap util/config.js
584
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
585
+ * --------------------------------------------------------------------------
586
+ */
587
+
588
+
589
+ /**
590
+ * Class definition
591
+ */
592
+
593
+ class Config {
594
+ // Getters
595
+ static get Default() {
596
+ return {};
597
+ }
598
+ static get DefaultType() {
599
+ return {};
600
+ }
601
+ static get NAME() {
602
+ throw new Error('You have to implement the static method "NAME", for each component!');
603
+ }
604
+ _getConfig(config) {
605
+ config = this._mergeConfigObj(config);
606
+ config = this._configAfterMerge(config);
607
+ this._typeCheckConfig(config);
608
+ return config;
609
+ }
610
+ _configAfterMerge(config) {
611
+ return config;
612
+ }
613
+ _mergeConfigObj(config, element) {
614
+ const jsonConfig = isElement(element) ? Manipulator.getDataAttribute(element, 'config') : {}; // try to parse
615
+
616
+ return {
617
+ ...this.constructor.Default,
618
+ ...(typeof jsonConfig === 'object' ? jsonConfig : {}),
619
+ ...(isElement(element) ? Manipulator.getDataAttributes(element) : {}),
620
+ ...(typeof config === 'object' ? config : {})
621
+ };
622
+ }
623
+ _typeCheckConfig(config, configTypes = this.constructor.DefaultType) {
624
+ for (const [property, expectedTypes] of Object.entries(configTypes)) {
625
+ const value = config[property];
626
+ const valueType = isElement(value) ? 'element' : toType(value);
627
+ if (!new RegExp(expectedTypes).test(valueType)) {
628
+ throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${property}" provided type "${valueType}" but expected type "${expectedTypes}".`);
629
+ }
630
+ }
631
+ }
632
+ }
633
+
634
+ /**
635
+ * --------------------------------------------------------------------------
636
+ * Bootstrap base-component.js
637
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
638
+ * --------------------------------------------------------------------------
639
+ */
640
+
641
+
642
+ /**
643
+ * Constants
644
+ */
645
+
646
+ const VERSION = '5.3.7';
647
+
648
+ /**
649
+ * Class definition
650
+ */
651
+
652
+ class BaseComponent extends Config {
653
+ constructor(element, config) {
654
+ super();
655
+ element = getElement(element);
656
+ if (!element) {
657
+ return;
658
+ }
659
+ this._element = element;
660
+ this._config = this._getConfig(config);
661
+ Data.set(this._element, this.constructor.DATA_KEY, this);
662
+ }
663
+
664
+ // Public
665
+ dispose() {
666
+ Data.remove(this._element, this.constructor.DATA_KEY);
667
+ EventHandler.off(this._element, this.constructor.EVENT_KEY);
668
+ for (const propertyName of Object.getOwnPropertyNames(this)) {
669
+ this[propertyName] = null;
670
+ }
671
+ }
672
+
673
+ // Private
674
+ _queueCallback(callback, element, isAnimated = true) {
675
+ executeAfterTransition(callback, element, isAnimated);
676
+ }
677
+ _getConfig(config) {
678
+ config = this._mergeConfigObj(config, this._element);
679
+ config = this._configAfterMerge(config);
680
+ this._typeCheckConfig(config);
681
+ return config;
682
+ }
683
+
684
+ // Static
685
+ static getInstance(element) {
686
+ return Data.get(getElement(element), this.DATA_KEY);
687
+ }
688
+ static getOrCreateInstance(element, config = {}) {
689
+ return this.getInstance(element) || new this(element, typeof config === 'object' ? config : null);
690
+ }
691
+ static get VERSION() {
692
+ return VERSION;
693
+ }
694
+ static get DATA_KEY() {
695
+ return `bs.${this.NAME}`;
696
+ }
697
+ static get EVENT_KEY() {
698
+ return `.${this.DATA_KEY}`;
699
+ }
700
+ static eventName(name) {
701
+ return `${name}${this.EVENT_KEY}`;
702
+ }
703
+ }
704
+
705
+ /**
706
+ * --------------------------------------------------------------------------
707
+ * Bootstrap dom/selector-engine.js
708
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
709
+ * --------------------------------------------------------------------------
710
+ */
711
+
712
+ const getSelector = element => {
713
+ let selector = element.getAttribute('data-bs-target');
714
+ if (!selector || selector === '#') {
715
+ let hrefAttribute = element.getAttribute('href');
716
+
717
+ // The only valid content that could double as a selector are IDs or classes,
718
+ // so everything starting with `#` or `.`. If a "real" URL is used as the selector,
719
+ // `document.querySelector` will rightfully complain it is invalid.
720
+ // See https://github.com/twbs/bootstrap/issues/32273
721
+ if (!hrefAttribute || !hrefAttribute.includes('#') && !hrefAttribute.startsWith('.')) {
722
+ return null;
723
+ }
724
+
725
+ // Just in case some CMS puts out a full URL with the anchor appended
726
+ if (hrefAttribute.includes('#') && !hrefAttribute.startsWith('#')) {
727
+ hrefAttribute = `#${hrefAttribute.split('#')[1]}`;
728
+ }
729
+ selector = hrefAttribute && hrefAttribute !== '#' ? hrefAttribute.trim() : null;
730
+ }
731
+ return selector ? selector.split(',').map(sel => parseSelector(sel)).join(',') : null;
732
+ };
733
+ const SelectorEngine = {
734
+ find(selector, element = document.documentElement) {
735
+ return [].concat(...Element.prototype.querySelectorAll.call(element, selector));
736
+ },
737
+ findOne(selector, element = document.documentElement) {
738
+ return Element.prototype.querySelector.call(element, selector);
739
+ },
740
+ children(element, selector) {
741
+ return [].concat(...element.children).filter(child => child.matches(selector));
742
+ },
743
+ parents(element, selector) {
744
+ const parents = [];
745
+ let ancestor = element.parentNode.closest(selector);
746
+ while (ancestor) {
747
+ parents.push(ancestor);
748
+ ancestor = ancestor.parentNode.closest(selector);
749
+ }
750
+ return parents;
751
+ },
752
+ prev(element, selector) {
753
+ let previous = element.previousElementSibling;
754
+ while (previous) {
755
+ if (previous.matches(selector)) {
756
+ return [previous];
757
+ }
758
+ previous = previous.previousElementSibling;
759
+ }
760
+ return [];
761
+ },
762
+ // TODO: this is now unused; remove later along with prev()
763
+ next(element, selector) {
764
+ let next = element.nextElementSibling;
765
+ while (next) {
766
+ if (next.matches(selector)) {
767
+ return [next];
768
+ }
769
+ next = next.nextElementSibling;
770
+ }
771
+ return [];
772
+ },
773
+ focusableChildren(element) {
774
+ const focusables = ['a', 'button', 'input', 'textarea', 'select', 'details', '[tabindex]', '[contenteditable="true"]'].map(selector => `${selector}:not([tabindex^="-"])`).join(',');
775
+ return this.find(focusables, element).filter(el => !isDisabled(el) && isVisible(el));
776
+ },
777
+ getSelectorFromElement(element) {
778
+ const selector = getSelector(element);
779
+ if (selector) {
780
+ return SelectorEngine.findOne(selector) ? selector : null;
781
+ }
782
+ return null;
783
+ },
784
+ getElementFromSelector(element) {
785
+ const selector = getSelector(element);
786
+ return selector ? SelectorEngine.findOne(selector) : null;
787
+ },
788
+ getMultipleElementsFromSelector(element) {
789
+ const selector = getSelector(element);
790
+ return selector ? SelectorEngine.find(selector) : [];
791
+ }
792
+ };
793
+
794
+ /**
795
+ * --------------------------------------------------------------------------
796
+ * Bootstrap util/component-functions.js
797
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
798
+ * --------------------------------------------------------------------------
799
+ */
800
+
801
+ const enableDismissTrigger = (component, method = 'hide') => {
802
+ const clickEvent = `click.dismiss${component.EVENT_KEY}`;
803
+ const name = component.NAME;
804
+ EventHandler.on(document, clickEvent, `[data-bs-dismiss="${name}"]`, function (event) {
805
+ if (['A', 'AREA'].includes(this.tagName)) {
806
+ event.preventDefault();
807
+ }
808
+ if (isDisabled(this)) {
809
+ return;
810
+ }
811
+ const target = SelectorEngine.getElementFromSelector(this) || this.closest(`.${name}`);
812
+ const instance = component.getOrCreateInstance(target);
813
+
814
+ // Method argument is left, for Alert and only, as it doesn't implement the 'hide' method
815
+ instance[method]();
816
+ });
817
+ };
818
+
819
+ /**
820
+ * --------------------------------------------------------------------------
821
+ * Bootstrap alert.js
822
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
823
+ * --------------------------------------------------------------------------
824
+ */
825
+
826
+
827
+ /**
828
+ * Constants
829
+ */
830
+
831
+ const NAME$f = 'alert';
832
+ const DATA_KEY$a = 'bs.alert';
833
+ const EVENT_KEY$b = `.${DATA_KEY$a}`;
834
+ const EVENT_CLOSE = `close${EVENT_KEY$b}`;
835
+ const EVENT_CLOSED = `closed${EVENT_KEY$b}`;
836
+ const CLASS_NAME_FADE$5 = 'fade';
837
+ const CLASS_NAME_SHOW$8 = 'show';
838
+
839
+ /**
840
+ * Class definition
841
+ */
842
+
843
+ class Alert extends BaseComponent {
844
+ // Getters
845
+ static get NAME() {
846
+ return NAME$f;
847
+ }
848
+
849
+ // Public
850
+ close() {
851
+ const closeEvent = EventHandler.trigger(this._element, EVENT_CLOSE);
852
+ if (closeEvent.defaultPrevented) {
853
+ return;
854
+ }
855
+ this._element.classList.remove(CLASS_NAME_SHOW$8);
856
+ const isAnimated = this._element.classList.contains(CLASS_NAME_FADE$5);
857
+ this._queueCallback(() => this._destroyElement(), this._element, isAnimated);
858
+ }
859
+
860
+ // Private
861
+ _destroyElement() {
862
+ this._element.remove();
863
+ EventHandler.trigger(this._element, EVENT_CLOSED);
864
+ this.dispose();
865
+ }
866
+
867
+ // Static
868
+ static jQueryInterface(config) {
869
+ return this.each(function () {
870
+ const data = Alert.getOrCreateInstance(this);
871
+ if (typeof config !== 'string') {
872
+ return;
873
+ }
874
+ if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {
875
+ throw new TypeError(`No method named "${config}"`);
876
+ }
877
+ data[config](this);
878
+ });
879
+ }
880
+ }
881
+
882
+ /**
883
+ * Data API implementation
884
+ */
885
+
886
+ enableDismissTrigger(Alert, 'close');
887
+
888
+ /**
889
+ * jQuery
890
+ */
891
+
892
+ defineJQueryPlugin(Alert);
893
+
894
+ /**
895
+ * --------------------------------------------------------------------------
896
+ * Bootstrap button.js
897
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
898
+ * --------------------------------------------------------------------------
899
+ */
900
+
901
+
902
+ /**
903
+ * Constants
904
+ */
905
+
906
+ const NAME$e = 'button';
907
+ const DATA_KEY$9 = 'bs.button';
908
+ const EVENT_KEY$a = `.${DATA_KEY$9}`;
909
+ const DATA_API_KEY$6 = '.data-api';
910
+ const CLASS_NAME_ACTIVE$3 = 'active';
911
+ const SELECTOR_DATA_TOGGLE$5 = '[data-bs-toggle="button"]';
912
+ const EVENT_CLICK_DATA_API$6 = `click${EVENT_KEY$a}${DATA_API_KEY$6}`;
913
+
914
+ /**
915
+ * Class definition
916
+ */
917
+
918
+ class Button extends BaseComponent {
919
+ // Getters
920
+ static get NAME() {
921
+ return NAME$e;
922
+ }
923
+
924
+ // Public
925
+ toggle() {
926
+ // Toggle class and sync the `aria-pressed` attribute with the return value of the `.toggle()` method
927
+ this._element.setAttribute('aria-pressed', this._element.classList.toggle(CLASS_NAME_ACTIVE$3));
928
+ }
929
+
930
+ // Static
931
+ static jQueryInterface(config) {
932
+ return this.each(function () {
933
+ const data = Button.getOrCreateInstance(this);
934
+ if (config === 'toggle') {
935
+ data[config]();
936
+ }
937
+ });
938
+ }
939
+ }
940
+
941
+ /**
942
+ * Data API implementation
943
+ */
944
+
945
+ EventHandler.on(document, EVENT_CLICK_DATA_API$6, SELECTOR_DATA_TOGGLE$5, event => {
946
+ event.preventDefault();
947
+ const button = event.target.closest(SELECTOR_DATA_TOGGLE$5);
948
+ const data = Button.getOrCreateInstance(button);
949
+ data.toggle();
950
+ });
951
+
952
+ /**
953
+ * jQuery
954
+ */
955
+
956
+ defineJQueryPlugin(Button);
957
+
958
+ /**
959
+ * --------------------------------------------------------------------------
960
+ * Bootstrap util/swipe.js
961
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
962
+ * --------------------------------------------------------------------------
963
+ */
964
+
965
+
966
+ /**
967
+ * Constants
968
+ */
969
+
970
+ const NAME$d = 'swipe';
971
+ const EVENT_KEY$9 = '.bs.swipe';
972
+ const EVENT_TOUCHSTART = `touchstart${EVENT_KEY$9}`;
973
+ const EVENT_TOUCHMOVE = `touchmove${EVENT_KEY$9}`;
974
+ const EVENT_TOUCHEND = `touchend${EVENT_KEY$9}`;
975
+ const EVENT_POINTERDOWN = `pointerdown${EVENT_KEY$9}`;
976
+ const EVENT_POINTERUP = `pointerup${EVENT_KEY$9}`;
977
+ const POINTER_TYPE_TOUCH = 'touch';
978
+ const POINTER_TYPE_PEN = 'pen';
979
+ const CLASS_NAME_POINTER_EVENT = 'pointer-event';
980
+ const SWIPE_THRESHOLD = 40;
981
+ const Default$c = {
982
+ endCallback: null,
983
+ leftCallback: null,
984
+ rightCallback: null
985
+ };
986
+ const DefaultType$c = {
987
+ endCallback: '(function|null)',
988
+ leftCallback: '(function|null)',
989
+ rightCallback: '(function|null)'
990
+ };
991
+
992
+ /**
993
+ * Class definition
994
+ */
995
+
996
+ class Swipe extends Config {
997
+ constructor(element, config) {
998
+ super();
999
+ this._element = element;
1000
+ if (!element || !Swipe.isSupported()) {
1001
+ return;
1002
+ }
1003
+ this._config = this._getConfig(config);
1004
+ this._deltaX = 0;
1005
+ this._supportPointerEvents = Boolean(window.PointerEvent);
1006
+ this._initEvents();
1007
+ }
1008
+
1009
+ // Getters
1010
+ static get Default() {
1011
+ return Default$c;
1012
+ }
1013
+ static get DefaultType() {
1014
+ return DefaultType$c;
1015
+ }
1016
+ static get NAME() {
1017
+ return NAME$d;
1018
+ }
1019
+
1020
+ // Public
1021
+ dispose() {
1022
+ EventHandler.off(this._element, EVENT_KEY$9);
1023
+ }
1024
+
1025
+ // Private
1026
+ _start(event) {
1027
+ if (!this._supportPointerEvents) {
1028
+ this._deltaX = event.touches[0].clientX;
1029
+ return;
1030
+ }
1031
+ if (this._eventIsPointerPenTouch(event)) {
1032
+ this._deltaX = event.clientX;
1033
+ }
1034
+ }
1035
+ _end(event) {
1036
+ if (this._eventIsPointerPenTouch(event)) {
1037
+ this._deltaX = event.clientX - this._deltaX;
1038
+ }
1039
+ this._handleSwipe();
1040
+ execute(this._config.endCallback);
1041
+ }
1042
+ _move(event) {
1043
+ this._deltaX = event.touches && event.touches.length > 1 ? 0 : event.touches[0].clientX - this._deltaX;
1044
+ }
1045
+ _handleSwipe() {
1046
+ const absDeltaX = Math.abs(this._deltaX);
1047
+ if (absDeltaX <= SWIPE_THRESHOLD) {
1048
+ return;
1049
+ }
1050
+ const direction = absDeltaX / this._deltaX;
1051
+ this._deltaX = 0;
1052
+ if (!direction) {
1053
+ return;
1054
+ }
1055
+ execute(direction > 0 ? this._config.rightCallback : this._config.leftCallback);
1056
+ }
1057
+ _initEvents() {
1058
+ if (this._supportPointerEvents) {
1059
+ EventHandler.on(this._element, EVENT_POINTERDOWN, event => this._start(event));
1060
+ EventHandler.on(this._element, EVENT_POINTERUP, event => this._end(event));
1061
+ this._element.classList.add(CLASS_NAME_POINTER_EVENT);
1062
+ } else {
1063
+ EventHandler.on(this._element, EVENT_TOUCHSTART, event => this._start(event));
1064
+ EventHandler.on(this._element, EVENT_TOUCHMOVE, event => this._move(event));
1065
+ EventHandler.on(this._element, EVENT_TOUCHEND, event => this._end(event));
1066
+ }
1067
+ }
1068
+ _eventIsPointerPenTouch(event) {
1069
+ return this._supportPointerEvents && (event.pointerType === POINTER_TYPE_PEN || event.pointerType === POINTER_TYPE_TOUCH);
1070
+ }
1071
+
1072
+ // Static
1073
+ static isSupported() {
1074
+ return 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0;
1075
+ }
1076
+ }
1077
+
1078
+ /**
1079
+ * --------------------------------------------------------------------------
1080
+ * Bootstrap carousel.js
1081
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1082
+ * --------------------------------------------------------------------------
1083
+ */
1084
+
1085
+
1086
+ /**
1087
+ * Constants
1088
+ */
1089
+
1090
+ const NAME$c = 'carousel';
1091
+ const DATA_KEY$8 = 'bs.carousel';
1092
+ const EVENT_KEY$8 = `.${DATA_KEY$8}`;
1093
+ const DATA_API_KEY$5 = '.data-api';
1094
+ const ARROW_LEFT_KEY$1 = 'ArrowLeft';
1095
+ const ARROW_RIGHT_KEY$1 = 'ArrowRight';
1096
+ const TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch
1097
+
1098
+ const ORDER_NEXT = 'next';
1099
+ const ORDER_PREV = 'prev';
1100
+ const DIRECTION_LEFT = 'left';
1101
+ const DIRECTION_RIGHT = 'right';
1102
+ const EVENT_SLIDE = `slide${EVENT_KEY$8}`;
1103
+ const EVENT_SLID = `slid${EVENT_KEY$8}`;
1104
+ const EVENT_KEYDOWN$1 = `keydown${EVENT_KEY$8}`;
1105
+ const EVENT_MOUSEENTER$1 = `mouseenter${EVENT_KEY$8}`;
1106
+ const EVENT_MOUSELEAVE$1 = `mouseleave${EVENT_KEY$8}`;
1107
+ const EVENT_DRAG_START = `dragstart${EVENT_KEY$8}`;
1108
+ const EVENT_LOAD_DATA_API$3 = `load${EVENT_KEY$8}${DATA_API_KEY$5}`;
1109
+ const EVENT_CLICK_DATA_API$5 = `click${EVENT_KEY$8}${DATA_API_KEY$5}`;
1110
+ const CLASS_NAME_CAROUSEL = 'carousel';
1111
+ const CLASS_NAME_ACTIVE$2 = 'active';
1112
+ const CLASS_NAME_SLIDE = 'slide';
1113
+ const CLASS_NAME_END = 'carousel-item-end';
1114
+ const CLASS_NAME_START = 'carousel-item-start';
1115
+ const CLASS_NAME_NEXT = 'carousel-item-next';
1116
+ const CLASS_NAME_PREV = 'carousel-item-prev';
1117
+ const SELECTOR_ACTIVE = '.active';
1118
+ const SELECTOR_ITEM = '.carousel-item';
1119
+ const SELECTOR_ACTIVE_ITEM = SELECTOR_ACTIVE + SELECTOR_ITEM;
1120
+ const SELECTOR_ITEM_IMG = '.carousel-item img';
1121
+ const SELECTOR_INDICATORS = '.carousel-indicators';
1122
+ const SELECTOR_DATA_SLIDE = '[data-bs-slide], [data-bs-slide-to]';
1123
+ const SELECTOR_DATA_RIDE = '[data-bs-ride="carousel"]';
1124
+ const KEY_TO_DIRECTION = {
1125
+ [ARROW_LEFT_KEY$1]: DIRECTION_RIGHT,
1126
+ [ARROW_RIGHT_KEY$1]: DIRECTION_LEFT
1127
+ };
1128
+ const Default$b = {
1129
+ interval: 5000,
1130
+ keyboard: true,
1131
+ pause: 'hover',
1132
+ ride: false,
1133
+ touch: true,
1134
+ wrap: true
1135
+ };
1136
+ const DefaultType$b = {
1137
+ interval: '(number|boolean)',
1138
+ // TODO:v6 remove boolean support
1139
+ keyboard: 'boolean',
1140
+ pause: '(string|boolean)',
1141
+ ride: '(boolean|string)',
1142
+ touch: 'boolean',
1143
+ wrap: 'boolean'
1144
+ };
1145
+
1146
+ /**
1147
+ * Class definition
1148
+ */
1149
+
1150
+ class Carousel extends BaseComponent {
1151
+ constructor(element, config) {
1152
+ super(element, config);
1153
+ this._interval = null;
1154
+ this._activeElement = null;
1155
+ this._isSliding = false;
1156
+ this.touchTimeout = null;
1157
+ this._swipeHelper = null;
1158
+ this._indicatorsElement = SelectorEngine.findOne(SELECTOR_INDICATORS, this._element);
1159
+ this._addEventListeners();
1160
+ if (this._config.ride === CLASS_NAME_CAROUSEL) {
1161
+ this.cycle();
1162
+ }
1163
+ }
1164
+
1165
+ // Getters
1166
+ static get Default() {
1167
+ return Default$b;
1168
+ }
1169
+ static get DefaultType() {
1170
+ return DefaultType$b;
1171
+ }
1172
+ static get NAME() {
1173
+ return NAME$c;
1174
+ }
1175
+
1176
+ // Public
1177
+ next() {
1178
+ this._slide(ORDER_NEXT);
1179
+ }
1180
+ nextWhenVisible() {
1181
+ // FIXME TODO use `document.visibilityState`
1182
+ // Don't call next when the page isn't visible
1183
+ // or the carousel or its parent isn't visible
1184
+ if (!document.hidden && isVisible(this._element)) {
1185
+ this.next();
1186
+ }
1187
+ }
1188
+ prev() {
1189
+ this._slide(ORDER_PREV);
1190
+ }
1191
+ pause() {
1192
+ if (this._isSliding) {
1193
+ triggerTransitionEnd(this._element);
1194
+ }
1195
+ this._clearInterval();
1196
+ }
1197
+ cycle() {
1198
+ this._clearInterval();
1199
+ this._updateInterval();
1200
+ this._interval = setInterval(() => this.nextWhenVisible(), this._config.interval);
1201
+ }
1202
+ _maybeEnableCycle() {
1203
+ if (!this._config.ride) {
1204
+ return;
1205
+ }
1206
+ if (this._isSliding) {
1207
+ EventHandler.one(this._element, EVENT_SLID, () => this.cycle());
1208
+ return;
1209
+ }
1210
+ this.cycle();
1211
+ }
1212
+ to(index) {
1213
+ const items = this._getItems();
1214
+ if (index > items.length - 1 || index < 0) {
1215
+ return;
1216
+ }
1217
+ if (this._isSliding) {
1218
+ EventHandler.one(this._element, EVENT_SLID, () => this.to(index));
1219
+ return;
1220
+ }
1221
+ const activeIndex = this._getItemIndex(this._getActive());
1222
+ if (activeIndex === index) {
1223
+ return;
1224
+ }
1225
+ const order = index > activeIndex ? ORDER_NEXT : ORDER_PREV;
1226
+ this._slide(order, items[index]);
1227
+ }
1228
+ dispose() {
1229
+ if (this._swipeHelper) {
1230
+ this._swipeHelper.dispose();
1231
+ }
1232
+ super.dispose();
1233
+ }
1234
+
1235
+ // Private
1236
+ _configAfterMerge(config) {
1237
+ config.defaultInterval = config.interval;
1238
+ return config;
1239
+ }
1240
+ _addEventListeners() {
1241
+ if (this._config.keyboard) {
1242
+ EventHandler.on(this._element, EVENT_KEYDOWN$1, event => this._keydown(event));
1243
+ }
1244
+ if (this._config.pause === 'hover') {
1245
+ EventHandler.on(this._element, EVENT_MOUSEENTER$1, () => this.pause());
1246
+ EventHandler.on(this._element, EVENT_MOUSELEAVE$1, () => this._maybeEnableCycle());
1247
+ }
1248
+ if (this._config.touch && Swipe.isSupported()) {
1249
+ this._addTouchEventListeners();
1250
+ }
1251
+ }
1252
+ _addTouchEventListeners() {
1253
+ for (const img of SelectorEngine.find(SELECTOR_ITEM_IMG, this._element)) {
1254
+ EventHandler.on(img, EVENT_DRAG_START, event => event.preventDefault());
1255
+ }
1256
+ const endCallBack = () => {
1257
+ if (this._config.pause !== 'hover') {
1258
+ return;
1259
+ }
1260
+
1261
+ // If it's a touch-enabled device, mouseenter/leave are fired as
1262
+ // part of the mouse compatibility events on first tap - the carousel
1263
+ // would stop cycling until user tapped out of it;
1264
+ // here, we listen for touchend, explicitly pause the carousel
1265
+ // (as if it's the second time we tap on it, mouseenter compat event
1266
+ // is NOT fired) and after a timeout (to allow for mouse compatibility
1267
+ // events to fire) we explicitly restart cycling
1268
+
1269
+ this.pause();
1270
+ if (this.touchTimeout) {
1271
+ clearTimeout(this.touchTimeout);
1272
+ }
1273
+ this.touchTimeout = setTimeout(() => this._maybeEnableCycle(), TOUCHEVENT_COMPAT_WAIT + this._config.interval);
1274
+ };
1275
+ const swipeConfig = {
1276
+ leftCallback: () => this._slide(this._directionToOrder(DIRECTION_LEFT)),
1277
+ rightCallback: () => this._slide(this._directionToOrder(DIRECTION_RIGHT)),
1278
+ endCallback: endCallBack
1279
+ };
1280
+ this._swipeHelper = new Swipe(this._element, swipeConfig);
1281
+ }
1282
+ _keydown(event) {
1283
+ if (/input|textarea/i.test(event.target.tagName)) {
1284
+ return;
1285
+ }
1286
+ const direction = KEY_TO_DIRECTION[event.key];
1287
+ if (direction) {
1288
+ event.preventDefault();
1289
+ this._slide(this._directionToOrder(direction));
1290
+ }
1291
+ }
1292
+ _getItemIndex(element) {
1293
+ return this._getItems().indexOf(element);
1294
+ }
1295
+ _setActiveIndicatorElement(index) {
1296
+ if (!this._indicatorsElement) {
1297
+ return;
1298
+ }
1299
+ const activeIndicator = SelectorEngine.findOne(SELECTOR_ACTIVE, this._indicatorsElement);
1300
+ activeIndicator.classList.remove(CLASS_NAME_ACTIVE$2);
1301
+ activeIndicator.removeAttribute('aria-current');
1302
+ const newActiveIndicator = SelectorEngine.findOne(`[data-bs-slide-to="${index}"]`, this._indicatorsElement);
1303
+ if (newActiveIndicator) {
1304
+ newActiveIndicator.classList.add(CLASS_NAME_ACTIVE$2);
1305
+ newActiveIndicator.setAttribute('aria-current', 'true');
1306
+ }
1307
+ }
1308
+ _updateInterval() {
1309
+ const element = this._activeElement || this._getActive();
1310
+ if (!element) {
1311
+ return;
1312
+ }
1313
+ const elementInterval = Number.parseInt(element.getAttribute('data-bs-interval'), 10);
1314
+ this._config.interval = elementInterval || this._config.defaultInterval;
1315
+ }
1316
+ _slide(order, element = null) {
1317
+ if (this._isSliding) {
1318
+ return;
1319
+ }
1320
+ const activeElement = this._getActive();
1321
+ const isNext = order === ORDER_NEXT;
1322
+ const nextElement = element || getNextActiveElement(this._getItems(), activeElement, isNext, this._config.wrap);
1323
+ if (nextElement === activeElement) {
1324
+ return;
1325
+ }
1326
+ const nextElementIndex = this._getItemIndex(nextElement);
1327
+ const triggerEvent = eventName => {
1328
+ return EventHandler.trigger(this._element, eventName, {
1329
+ relatedTarget: nextElement,
1330
+ direction: this._orderToDirection(order),
1331
+ from: this._getItemIndex(activeElement),
1332
+ to: nextElementIndex
1333
+ });
1334
+ };
1335
+ const slideEvent = triggerEvent(EVENT_SLIDE);
1336
+ if (slideEvent.defaultPrevented) {
1337
+ return;
1338
+ }
1339
+ if (!activeElement || !nextElement) {
1340
+ // Some weirdness is happening, so we bail
1341
+ // TODO: change tests that use empty divs to avoid this check
1342
+ return;
1343
+ }
1344
+ const isCycling = Boolean(this._interval);
1345
+ this.pause();
1346
+ this._isSliding = true;
1347
+ this._setActiveIndicatorElement(nextElementIndex);
1348
+ this._activeElement = nextElement;
1349
+ const directionalClassName = isNext ? CLASS_NAME_START : CLASS_NAME_END;
1350
+ const orderClassName = isNext ? CLASS_NAME_NEXT : CLASS_NAME_PREV;
1351
+ nextElement.classList.add(orderClassName);
1352
+ reflow(nextElement);
1353
+ activeElement.classList.add(directionalClassName);
1354
+ nextElement.classList.add(directionalClassName);
1355
+ const completeCallBack = () => {
1356
+ nextElement.classList.remove(directionalClassName, orderClassName);
1357
+ nextElement.classList.add(CLASS_NAME_ACTIVE$2);
1358
+ activeElement.classList.remove(CLASS_NAME_ACTIVE$2, orderClassName, directionalClassName);
1359
+ this._isSliding = false;
1360
+ triggerEvent(EVENT_SLID);
1361
+ };
1362
+ this._queueCallback(completeCallBack, activeElement, this._isAnimated());
1363
+ if (isCycling) {
1364
+ this.cycle();
1365
+ }
1366
+ }
1367
+ _isAnimated() {
1368
+ return this._element.classList.contains(CLASS_NAME_SLIDE);
1369
+ }
1370
+ _getActive() {
1371
+ return SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM, this._element);
1372
+ }
1373
+ _getItems() {
1374
+ return SelectorEngine.find(SELECTOR_ITEM, this._element);
1375
+ }
1376
+ _clearInterval() {
1377
+ if (this._interval) {
1378
+ clearInterval(this._interval);
1379
+ this._interval = null;
1380
+ }
1381
+ }
1382
+ _directionToOrder(direction) {
1383
+ if (isRTL()) {
1384
+ return direction === DIRECTION_LEFT ? ORDER_PREV : ORDER_NEXT;
1385
+ }
1386
+ return direction === DIRECTION_LEFT ? ORDER_NEXT : ORDER_PREV;
1387
+ }
1388
+ _orderToDirection(order) {
1389
+ if (isRTL()) {
1390
+ return order === ORDER_PREV ? DIRECTION_LEFT : DIRECTION_RIGHT;
1391
+ }
1392
+ return order === ORDER_PREV ? DIRECTION_RIGHT : DIRECTION_LEFT;
1393
+ }
1394
+
1395
+ // Static
1396
+ static jQueryInterface(config) {
1397
+ return this.each(function () {
1398
+ const data = Carousel.getOrCreateInstance(this, config);
1399
+ if (typeof config === 'number') {
1400
+ data.to(config);
1401
+ return;
1402
+ }
1403
+ if (typeof config === 'string') {
1404
+ if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {
1405
+ throw new TypeError(`No method named "${config}"`);
1406
+ }
1407
+ data[config]();
1408
+ }
1409
+ });
1410
+ }
1411
+ }
1412
+
1413
+ /**
1414
+ * Data API implementation
1415
+ */
1416
+
1417
+ EventHandler.on(document, EVENT_CLICK_DATA_API$5, SELECTOR_DATA_SLIDE, function (event) {
1418
+ const target = SelectorEngine.getElementFromSelector(this);
1419
+ if (!target || !target.classList.contains(CLASS_NAME_CAROUSEL)) {
1420
+ return;
1421
+ }
1422
+ event.preventDefault();
1423
+ const carousel = Carousel.getOrCreateInstance(target);
1424
+ const slideIndex = this.getAttribute('data-bs-slide-to');
1425
+ if (slideIndex) {
1426
+ carousel.to(slideIndex);
1427
+ carousel._maybeEnableCycle();
1428
+ return;
1429
+ }
1430
+ if (Manipulator.getDataAttribute(this, 'slide') === 'next') {
1431
+ carousel.next();
1432
+ carousel._maybeEnableCycle();
1433
+ return;
1434
+ }
1435
+ carousel.prev();
1436
+ carousel._maybeEnableCycle();
1437
+ });
1438
+ EventHandler.on(window, EVENT_LOAD_DATA_API$3, () => {
1439
+ const carousels = SelectorEngine.find(SELECTOR_DATA_RIDE);
1440
+ for (const carousel of carousels) {
1441
+ Carousel.getOrCreateInstance(carousel);
1442
+ }
1443
+ });
1444
+
1445
+ /**
1446
+ * jQuery
1447
+ */
1448
+
1449
+ defineJQueryPlugin(Carousel);
1450
+
1451
+ /**
1452
+ * --------------------------------------------------------------------------
1453
+ * Bootstrap collapse.js
1454
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1455
+ * --------------------------------------------------------------------------
1456
+ */
1457
+
1458
+
1459
+ /**
1460
+ * Constants
1461
+ */
1462
+
1463
+ const NAME$b = 'collapse';
1464
+ const DATA_KEY$7 = 'bs.collapse';
1465
+ const EVENT_KEY$7 = `.${DATA_KEY$7}`;
1466
+ const DATA_API_KEY$4 = '.data-api';
1467
+ const EVENT_SHOW$6 = `show${EVENT_KEY$7}`;
1468
+ const EVENT_SHOWN$6 = `shown${EVENT_KEY$7}`;
1469
+ const EVENT_HIDE$6 = `hide${EVENT_KEY$7}`;
1470
+ const EVENT_HIDDEN$6 = `hidden${EVENT_KEY$7}`;
1471
+ const EVENT_CLICK_DATA_API$4 = `click${EVENT_KEY$7}${DATA_API_KEY$4}`;
1472
+ const CLASS_NAME_SHOW$7 = 'show';
1473
+ const CLASS_NAME_COLLAPSE = 'collapse';
1474
+ const CLASS_NAME_COLLAPSING = 'collapsing';
1475
+ const CLASS_NAME_COLLAPSED = 'collapsed';
1476
+ const CLASS_NAME_DEEPER_CHILDREN = `:scope .${CLASS_NAME_COLLAPSE} .${CLASS_NAME_COLLAPSE}`;
1477
+ const CLASS_NAME_HORIZONTAL = 'collapse-horizontal';
1478
+ const WIDTH = 'width';
1479
+ const HEIGHT = 'height';
1480
+ const SELECTOR_ACTIVES = '.collapse.show, .collapse.collapsing';
1481
+ const SELECTOR_DATA_TOGGLE$4 = '[data-bs-toggle="collapse"]';
1482
+ const Default$a = {
1483
+ parent: null,
1484
+ toggle: true
1485
+ };
1486
+ const DefaultType$a = {
1487
+ parent: '(null|element)',
1488
+ toggle: 'boolean'
1489
+ };
1490
+
1491
+ /**
1492
+ * Class definition
1493
+ */
1494
+
1495
+ class Collapse extends BaseComponent {
1496
+ constructor(element, config) {
1497
+ super(element, config);
1498
+ this._isTransitioning = false;
1499
+ this._triggerArray = [];
1500
+ const toggleList = SelectorEngine.find(SELECTOR_DATA_TOGGLE$4);
1501
+ for (const elem of toggleList) {
1502
+ const selector = SelectorEngine.getSelectorFromElement(elem);
1503
+ const filterElement = SelectorEngine.find(selector).filter(foundElement => foundElement === this._element);
1504
+ if (selector !== null && filterElement.length) {
1505
+ this._triggerArray.push(elem);
1506
+ }
1507
+ }
1508
+ this._initializeChildren();
1509
+ if (!this._config.parent) {
1510
+ this._addAriaAndCollapsedClass(this._triggerArray, this._isShown());
1511
+ }
1512
+ if (this._config.toggle) {
1513
+ this.toggle();
1514
+ }
1515
+ }
1516
+
1517
+ // Getters
1518
+ static get Default() {
1519
+ return Default$a;
1520
+ }
1521
+ static get DefaultType() {
1522
+ return DefaultType$a;
1523
+ }
1524
+ static get NAME() {
1525
+ return NAME$b;
1526
+ }
1527
+
1528
+ // Public
1529
+ toggle() {
1530
+ if (this._isShown()) {
1531
+ this.hide();
1532
+ } else {
1533
+ this.show();
1534
+ }
1535
+ }
1536
+ show() {
1537
+ if (this._isTransitioning || this._isShown()) {
1538
+ return;
1539
+ }
1540
+ let activeChildren = [];
1541
+
1542
+ // find active children
1543
+ if (this._config.parent) {
1544
+ activeChildren = this._getFirstLevelChildren(SELECTOR_ACTIVES).filter(element => element !== this._element).map(element => Collapse.getOrCreateInstance(element, {
1545
+ toggle: false
1546
+ }));
1547
+ }
1548
+ if (activeChildren.length && activeChildren[0]._isTransitioning) {
1549
+ return;
1550
+ }
1551
+ const startEvent = EventHandler.trigger(this._element, EVENT_SHOW$6);
1552
+ if (startEvent.defaultPrevented) {
1553
+ return;
1554
+ }
1555
+ for (const activeInstance of activeChildren) {
1556
+ activeInstance.hide();
1557
+ }
1558
+ const dimension = this._getDimension();
1559
+ this._element.classList.remove(CLASS_NAME_COLLAPSE);
1560
+ this._element.classList.add(CLASS_NAME_COLLAPSING);
1561
+ this._element.style[dimension] = 0;
1562
+ this._addAriaAndCollapsedClass(this._triggerArray, true);
1563
+ this._isTransitioning = true;
1564
+ const complete = () => {
1565
+ this._isTransitioning = false;
1566
+ this._element.classList.remove(CLASS_NAME_COLLAPSING);
1567
+ this._element.classList.add(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW$7);
1568
+ this._element.style[dimension] = '';
1569
+ EventHandler.trigger(this._element, EVENT_SHOWN$6);
1570
+ };
1571
+ const capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
1572
+ const scrollSize = `scroll${capitalizedDimension}`;
1573
+ this._queueCallback(complete, this._element, true);
1574
+ this._element.style[dimension] = `${this._element[scrollSize]}px`;
1575
+ }
1576
+ hide() {
1577
+ if (this._isTransitioning || !this._isShown()) {
1578
+ return;
1579
+ }
1580
+ const startEvent = EventHandler.trigger(this._element, EVENT_HIDE$6);
1581
+ if (startEvent.defaultPrevented) {
1582
+ return;
1583
+ }
1584
+ const dimension = this._getDimension();
1585
+ this._element.style[dimension] = `${this._element.getBoundingClientRect()[dimension]}px`;
1586
+ reflow(this._element);
1587
+ this._element.classList.add(CLASS_NAME_COLLAPSING);
1588
+ this._element.classList.remove(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW$7);
1589
+ for (const trigger of this._triggerArray) {
1590
+ const element = SelectorEngine.getElementFromSelector(trigger);
1591
+ if (element && !this._isShown(element)) {
1592
+ this._addAriaAndCollapsedClass([trigger], false);
1593
+ }
1594
+ }
1595
+ this._isTransitioning = true;
1596
+ const complete = () => {
1597
+ this._isTransitioning = false;
1598
+ this._element.classList.remove(CLASS_NAME_COLLAPSING);
1599
+ this._element.classList.add(CLASS_NAME_COLLAPSE);
1600
+ EventHandler.trigger(this._element, EVENT_HIDDEN$6);
1601
+ };
1602
+ this._element.style[dimension] = '';
1603
+ this._queueCallback(complete, this._element, true);
1604
+ }
1605
+
1606
+ // Private
1607
+ _isShown(element = this._element) {
1608
+ return element.classList.contains(CLASS_NAME_SHOW$7);
1609
+ }
1610
+ _configAfterMerge(config) {
1611
+ config.toggle = Boolean(config.toggle); // Coerce string values
1612
+ config.parent = getElement(config.parent);
1613
+ return config;
1614
+ }
1615
+ _getDimension() {
1616
+ return this._element.classList.contains(CLASS_NAME_HORIZONTAL) ? WIDTH : HEIGHT;
1617
+ }
1618
+ _initializeChildren() {
1619
+ if (!this._config.parent) {
1620
+ return;
1621
+ }
1622
+ const children = this._getFirstLevelChildren(SELECTOR_DATA_TOGGLE$4);
1623
+ for (const element of children) {
1624
+ const selected = SelectorEngine.getElementFromSelector(element);
1625
+ if (selected) {
1626
+ this._addAriaAndCollapsedClass([element], this._isShown(selected));
1627
+ }
1628
+ }
1629
+ }
1630
+ _getFirstLevelChildren(selector) {
1631
+ const children = SelectorEngine.find(CLASS_NAME_DEEPER_CHILDREN, this._config.parent);
1632
+ // remove children if greater depth
1633
+ return SelectorEngine.find(selector, this._config.parent).filter(element => !children.includes(element));
1634
+ }
1635
+ _addAriaAndCollapsedClass(triggerArray, isOpen) {
1636
+ if (!triggerArray.length) {
1637
+ return;
1638
+ }
1639
+ for (const element of triggerArray) {
1640
+ element.classList.toggle(CLASS_NAME_COLLAPSED, !isOpen);
1641
+ element.setAttribute('aria-expanded', isOpen);
1642
+ }
1643
+ }
1644
+
1645
+ // Static
1646
+ static jQueryInterface(config) {
1647
+ const _config = {};
1648
+ if (typeof config === 'string' && /show|hide/.test(config)) {
1649
+ _config.toggle = false;
1650
+ }
1651
+ return this.each(function () {
1652
+ const data = Collapse.getOrCreateInstance(this, _config);
1653
+ if (typeof config === 'string') {
1654
+ if (typeof data[config] === 'undefined') {
1655
+ throw new TypeError(`No method named "${config}"`);
1656
+ }
1657
+ data[config]();
1658
+ }
1659
+ });
1660
+ }
1661
+ }
1662
+
1663
+ /**
1664
+ * Data API implementation
1665
+ */
1666
+
1667
+ EventHandler.on(document, EVENT_CLICK_DATA_API$4, SELECTOR_DATA_TOGGLE$4, function (event) {
1668
+ // preventDefault only for <a> elements (which change the URL) not inside the collapsible element
1669
+ if (event.target.tagName === 'A' || event.delegateTarget && event.delegateTarget.tagName === 'A') {
1670
+ event.preventDefault();
1671
+ }
1672
+ for (const element of SelectorEngine.getMultipleElementsFromSelector(this)) {
1673
+ Collapse.getOrCreateInstance(element, {
1674
+ toggle: false
1675
+ }).toggle();
1676
+ }
1677
+ });
1678
+
1679
+ /**
1680
+ * jQuery
1681
+ */
1682
+
1683
+ defineJQueryPlugin(Collapse);
1684
+
1685
+ /**
1686
+ * --------------------------------------------------------------------------
1687
+ * Bootstrap dropdown.js
1688
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1689
+ * --------------------------------------------------------------------------
1690
+ */
1691
+
1692
+
1693
+ /**
1694
+ * Constants
1695
+ */
1696
+
1697
+ const NAME$a = 'dropdown';
1698
+ const DATA_KEY$6 = 'bs.dropdown';
1699
+ const EVENT_KEY$6 = `.${DATA_KEY$6}`;
1700
+ const DATA_API_KEY$3 = '.data-api';
1701
+ const ESCAPE_KEY$2 = 'Escape';
1702
+ const TAB_KEY$1 = 'Tab';
1703
+ const ARROW_UP_KEY$1 = 'ArrowUp';
1704
+ const ARROW_DOWN_KEY$1 = 'ArrowDown';
1705
+ const RIGHT_MOUSE_BUTTON = 2; // MouseEvent.button value for the secondary button, usually the right button
1706
+
1707
+ const EVENT_HIDE$5 = `hide${EVENT_KEY$6}`;
1708
+ const EVENT_HIDDEN$5 = `hidden${EVENT_KEY$6}`;
1709
+ const EVENT_SHOW$5 = `show${EVENT_KEY$6}`;
1710
+ const EVENT_SHOWN$5 = `shown${EVENT_KEY$6}`;
1711
+ const EVENT_CLICK_DATA_API$3 = `click${EVENT_KEY$6}${DATA_API_KEY$3}`;
1712
+ const EVENT_KEYDOWN_DATA_API = `keydown${EVENT_KEY$6}${DATA_API_KEY$3}`;
1713
+ const EVENT_KEYUP_DATA_API = `keyup${EVENT_KEY$6}${DATA_API_KEY$3}`;
1714
+ const CLASS_NAME_SHOW$6 = 'show';
1715
+ const CLASS_NAME_DROPUP = 'dropup';
1716
+ const CLASS_NAME_DROPEND = 'dropend';
1717
+ const CLASS_NAME_DROPSTART = 'dropstart';
1718
+ const CLASS_NAME_DROPUP_CENTER = 'dropup-center';
1719
+ const CLASS_NAME_DROPDOWN_CENTER = 'dropdown-center';
1720
+ const SELECTOR_DATA_TOGGLE$3 = '[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)';
1721
+ const SELECTOR_DATA_TOGGLE_SHOWN = `${SELECTOR_DATA_TOGGLE$3}.${CLASS_NAME_SHOW$6}`;
1722
+ const SELECTOR_MENU = '.dropdown-menu';
1723
+ const SELECTOR_NAVBAR = '.navbar';
1724
+ const SELECTOR_NAVBAR_NAV = '.navbar-nav';
1725
+ const SELECTOR_VISIBLE_ITEMS = '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)';
1726
+ const PLACEMENT_TOP = isRTL() ? 'top-end' : 'top-start';
1727
+ const PLACEMENT_TOPEND = isRTL() ? 'top-start' : 'top-end';
1728
+ const PLACEMENT_BOTTOM = isRTL() ? 'bottom-end' : 'bottom-start';
1729
+ const PLACEMENT_BOTTOMEND = isRTL() ? 'bottom-start' : 'bottom-end';
1730
+ const PLACEMENT_RIGHT = isRTL() ? 'left-start' : 'right-start';
1731
+ const PLACEMENT_LEFT = isRTL() ? 'right-start' : 'left-start';
1732
+ const PLACEMENT_TOPCENTER = 'top';
1733
+ const PLACEMENT_BOTTOMCENTER = 'bottom';
1734
+ const Default$9 = {
1735
+ autoClose: true,
1736
+ boundary: 'clippingParents',
1737
+ display: 'dynamic',
1738
+ offset: [0, 2],
1739
+ popperConfig: null,
1740
+ reference: 'toggle'
1741
+ };
1742
+ const DefaultType$9 = {
1743
+ autoClose: '(boolean|string)',
1744
+ boundary: '(string|element)',
1745
+ display: 'string',
1746
+ offset: '(array|string|function)',
1747
+ popperConfig: '(null|object|function)',
1748
+ reference: '(string|element|object)'
1749
+ };
1750
+
1751
+ /**
1752
+ * Class definition
1753
+ */
1754
+
1755
+ class Dropdown extends BaseComponent {
1756
+ constructor(element, config) {
1757
+ super(element, config);
1758
+ this._popper = null;
1759
+ this._parent = this._element.parentNode; // dropdown wrapper
1760
+ // TODO: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/
1761
+ this._menu = SelectorEngine.next(this._element, SELECTOR_MENU)[0] || SelectorEngine.prev(this._element, SELECTOR_MENU)[0] || SelectorEngine.findOne(SELECTOR_MENU, this._parent);
1762
+ this._inNavbar = this._detectNavbar();
1763
+ }
1764
+
1765
+ // Getters
1766
+ static get Default() {
1767
+ return Default$9;
1768
+ }
1769
+ static get DefaultType() {
1770
+ return DefaultType$9;
1771
+ }
1772
+ static get NAME() {
1773
+ return NAME$a;
1774
+ }
1775
+
1776
+ // Public
1777
+ toggle() {
1778
+ return this._isShown() ? this.hide() : this.show();
1779
+ }
1780
+ show() {
1781
+ if (isDisabled(this._element) || this._isShown()) {
1782
+ return;
1783
+ }
1784
+ const relatedTarget = {
1785
+ relatedTarget: this._element
1786
+ };
1787
+ const showEvent = EventHandler.trigger(this._element, EVENT_SHOW$5, relatedTarget);
1788
+ if (showEvent.defaultPrevented) {
1789
+ return;
1790
+ }
1791
+ this._createPopper();
1792
+
1793
+ // If this is a touch-enabled device we add extra
1794
+ // empty mouseover listeners to the body's immediate children;
1795
+ // only needed because of broken event delegation on iOS
1796
+ // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
1797
+ if ('ontouchstart' in document.documentElement && !this._parent.closest(SELECTOR_NAVBAR_NAV)) {
1798
+ for (const element of [].concat(...document.body.children)) {
1799
+ EventHandler.on(element, 'mouseover', noop);
1800
+ }
1801
+ }
1802
+ this._element.focus();
1803
+ this._element.setAttribute('aria-expanded', true);
1804
+ this._menu.classList.add(CLASS_NAME_SHOW$6);
1805
+ this._element.classList.add(CLASS_NAME_SHOW$6);
1806
+ EventHandler.trigger(this._element, EVENT_SHOWN$5, relatedTarget);
1807
+ }
1808
+ hide() {
1809
+ if (isDisabled(this._element) || !this._isShown()) {
1810
+ return;
1811
+ }
1812
+ const relatedTarget = {
1813
+ relatedTarget: this._element
1814
+ };
1815
+ this._completeHide(relatedTarget);
1816
+ }
1817
+ dispose() {
1818
+ if (this._popper) {
1819
+ this._popper.destroy();
1820
+ }
1821
+ super.dispose();
1822
+ }
1823
+ update() {
1824
+ this._inNavbar = this._detectNavbar();
1825
+ if (this._popper) {
1826
+ this._popper.update();
1827
+ }
1828
+ }
1829
+
1830
+ // Private
1831
+ _completeHide(relatedTarget) {
1832
+ const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE$5, relatedTarget);
1833
+ if (hideEvent.defaultPrevented) {
1834
+ return;
1835
+ }
1836
+
1837
+ // If this is a touch-enabled device we remove the extra
1838
+ // empty mouseover listeners we added for iOS support
1839
+ if ('ontouchstart' in document.documentElement) {
1840
+ for (const element of [].concat(...document.body.children)) {
1841
+ EventHandler.off(element, 'mouseover', noop);
1842
+ }
1843
+ }
1844
+ if (this._popper) {
1845
+ this._popper.destroy();
1846
+ }
1847
+ this._menu.classList.remove(CLASS_NAME_SHOW$6);
1848
+ this._element.classList.remove(CLASS_NAME_SHOW$6);
1849
+ this._element.setAttribute('aria-expanded', 'false');
1850
+ Manipulator.removeDataAttribute(this._menu, 'popper');
1851
+ EventHandler.trigger(this._element, EVENT_HIDDEN$5, relatedTarget);
1852
+
1853
+ // Explicitly return focus to the trigger element
1854
+ this._element.focus();
1855
+ }
1856
+ _getConfig(config) {
1857
+ config = super._getConfig(config);
1858
+ if (typeof config.reference === 'object' && !isElement(config.reference) && typeof config.reference.getBoundingClientRect !== 'function') {
1859
+ // Popper virtual elements require a getBoundingClientRect method
1860
+ throw new TypeError(`${NAME$a.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);
1861
+ }
1862
+ return config;
1863
+ }
1864
+ _createPopper() {
1865
+ if (typeof Popper === 'undefined') {
1866
+ throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org/docs/v2/)');
1867
+ }
1868
+ let referenceElement = this._element;
1869
+ if (this._config.reference === 'parent') {
1870
+ referenceElement = this._parent;
1871
+ } else if (isElement(this._config.reference)) {
1872
+ referenceElement = getElement(this._config.reference);
1873
+ } else if (typeof this._config.reference === 'object') {
1874
+ referenceElement = this._config.reference;
1875
+ }
1876
+ const popperConfig = this._getPopperConfig();
1877
+ this._popper = Popper.createPopper(referenceElement, this._menu, popperConfig);
1878
+ }
1879
+ _isShown() {
1880
+ return this._menu.classList.contains(CLASS_NAME_SHOW$6);
1881
+ }
1882
+ _getPlacement() {
1883
+ const parentDropdown = this._parent;
1884
+ if (parentDropdown.classList.contains(CLASS_NAME_DROPEND)) {
1885
+ return PLACEMENT_RIGHT;
1886
+ }
1887
+ if (parentDropdown.classList.contains(CLASS_NAME_DROPSTART)) {
1888
+ return PLACEMENT_LEFT;
1889
+ }
1890
+ if (parentDropdown.classList.contains(CLASS_NAME_DROPUP_CENTER)) {
1891
+ return PLACEMENT_TOPCENTER;
1892
+ }
1893
+ if (parentDropdown.classList.contains(CLASS_NAME_DROPDOWN_CENTER)) {
1894
+ return PLACEMENT_BOTTOMCENTER;
1895
+ }
1896
+
1897
+ // We need to trim the value because custom properties can also include spaces
1898
+ const isEnd = getComputedStyle(this._menu).getPropertyValue('--bs-position').trim() === 'end';
1899
+ if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {
1900
+ return isEnd ? PLACEMENT_TOPEND : PLACEMENT_TOP;
1901
+ }
1902
+ return isEnd ? PLACEMENT_BOTTOMEND : PLACEMENT_BOTTOM;
1903
+ }
1904
+ _detectNavbar() {
1905
+ return this._element.closest(SELECTOR_NAVBAR) !== null;
1906
+ }
1907
+ _getOffset() {
1908
+ const {
1909
+ offset
1910
+ } = this._config;
1911
+ if (typeof offset === 'string') {
1912
+ return offset.split(',').map(value => Number.parseInt(value, 10));
1913
+ }
1914
+ if (typeof offset === 'function') {
1915
+ return popperData => offset(popperData, this._element);
1916
+ }
1917
+ return offset;
1918
+ }
1919
+ _getPopperConfig() {
1920
+ const defaultBsPopperConfig = {
1921
+ placement: this._getPlacement(),
1922
+ modifiers: [{
1923
+ name: 'preventOverflow',
1924
+ options: {
1925
+ boundary: this._config.boundary
1926
+ }
1927
+ }, {
1928
+ name: 'offset',
1929
+ options: {
1930
+ offset: this._getOffset()
1931
+ }
1932
+ }]
1933
+ };
1934
+
1935
+ // Disable Popper if we have a static display or Dropdown is in Navbar
1936
+ if (this._inNavbar || this._config.display === 'static') {
1937
+ Manipulator.setDataAttribute(this._menu, 'popper', 'static'); // TODO: v6 remove
1938
+ defaultBsPopperConfig.modifiers = [{
1939
+ name: 'applyStyles',
1940
+ enabled: false
1941
+ }];
1942
+ }
1943
+ return {
1944
+ ...defaultBsPopperConfig,
1945
+ ...execute(this._config.popperConfig, [undefined, defaultBsPopperConfig])
1946
+ };
1947
+ }
1948
+ _selectMenuItem({
1949
+ key,
1950
+ target
1951
+ }) {
1952
+ const items = SelectorEngine.find(SELECTOR_VISIBLE_ITEMS, this._menu).filter(element => isVisible(element));
1953
+ if (!items.length) {
1954
+ return;
1955
+ }
1956
+
1957
+ // if target isn't included in items (e.g. when expanding the dropdown)
1958
+ // allow cycling to get the last item in case key equals ARROW_UP_KEY
1959
+ getNextActiveElement(items, target, key === ARROW_DOWN_KEY$1, !items.includes(target)).focus();
1960
+ }
1961
+
1962
+ // Static
1963
+ static jQueryInterface(config) {
1964
+ return this.each(function () {
1965
+ const data = Dropdown.getOrCreateInstance(this, config);
1966
+ if (typeof config !== 'string') {
1967
+ return;
1968
+ }
1969
+ if (typeof data[config] === 'undefined') {
1970
+ throw new TypeError(`No method named "${config}"`);
1971
+ }
1972
+ data[config]();
1973
+ });
1974
+ }
1975
+ static clearMenus(event) {
1976
+ if (event.button === RIGHT_MOUSE_BUTTON || event.type === 'keyup' && event.key !== TAB_KEY$1) {
1977
+ return;
1978
+ }
1979
+ const openToggles = SelectorEngine.find(SELECTOR_DATA_TOGGLE_SHOWN);
1980
+ for (const toggle of openToggles) {
1981
+ const context = Dropdown.getInstance(toggle);
1982
+ if (!context || context._config.autoClose === false) {
1983
+ continue;
1984
+ }
1985
+ const composedPath = event.composedPath();
1986
+ const isMenuTarget = composedPath.includes(context._menu);
1987
+ if (composedPath.includes(context._element) || context._config.autoClose === 'inside' && !isMenuTarget || context._config.autoClose === 'outside' && isMenuTarget) {
1988
+ continue;
1989
+ }
1990
+
1991
+ // Tab navigation through the dropdown menu or events from contained inputs shouldn't close the menu
1992
+ if (context._menu.contains(event.target) && (event.type === 'keyup' && event.key === TAB_KEY$1 || /input|select|option|textarea|form/i.test(event.target.tagName))) {
1993
+ continue;
1994
+ }
1995
+ const relatedTarget = {
1996
+ relatedTarget: context._element
1997
+ };
1998
+ if (event.type === 'click') {
1999
+ relatedTarget.clickEvent = event;
2000
+ }
2001
+ context._completeHide(relatedTarget);
2002
+ }
2003
+ }
2004
+ static dataApiKeydownHandler(event) {
2005
+ // If not an UP | DOWN | ESCAPE key => not a dropdown command
2006
+ // If input/textarea && if key is other than ESCAPE => not a dropdown command
2007
+
2008
+ const isInput = /input|textarea/i.test(event.target.tagName);
2009
+ const isEscapeEvent = event.key === ESCAPE_KEY$2;
2010
+ const isUpOrDownEvent = [ARROW_UP_KEY$1, ARROW_DOWN_KEY$1].includes(event.key);
2011
+ if (!isUpOrDownEvent && !isEscapeEvent) {
2012
+ return;
2013
+ }
2014
+ if (isInput && !isEscapeEvent) {
2015
+ return;
2016
+ }
2017
+ event.preventDefault();
2018
+
2019
+ // TODO: v6 revert #37011 & change markup https://getbootstrap.com/docs/5.3/forms/input-group/
2020
+ const getToggleButton = this.matches(SELECTOR_DATA_TOGGLE$3) ? this : SelectorEngine.prev(this, SELECTOR_DATA_TOGGLE$3)[0] || SelectorEngine.next(this, SELECTOR_DATA_TOGGLE$3)[0] || SelectorEngine.findOne(SELECTOR_DATA_TOGGLE$3, event.delegateTarget.parentNode);
2021
+ const instance = Dropdown.getOrCreateInstance(getToggleButton);
2022
+ if (isUpOrDownEvent) {
2023
+ event.stopPropagation();
2024
+ instance.show();
2025
+ instance._selectMenuItem(event);
2026
+ return;
2027
+ }
2028
+ if (instance._isShown()) {
2029
+ // else is escape and we check if it is shown
2030
+ event.stopPropagation();
2031
+ instance.hide();
2032
+ getToggleButton.focus();
2033
+ }
2034
+ }
2035
+ }
2036
+
2037
+ /**
2038
+ * Data API implementation
2039
+ */
2040
+
2041
+ EventHandler.on(document, EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$3, Dropdown.dataApiKeydownHandler);
2042
+ EventHandler.on(document, EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown.dataApiKeydownHandler);
2043
+ EventHandler.on(document, EVENT_CLICK_DATA_API$3, Dropdown.clearMenus);
2044
+ EventHandler.on(document, EVENT_KEYUP_DATA_API, Dropdown.clearMenus);
2045
+ EventHandler.on(document, EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$3, function (event) {
2046
+ event.preventDefault();
2047
+ Dropdown.getOrCreateInstance(this).toggle();
2048
+ });
2049
+
2050
+ /**
2051
+ * jQuery
2052
+ */
2053
+
2054
+ defineJQueryPlugin(Dropdown);
2055
+
2056
+ /**
2057
+ * --------------------------------------------------------------------------
2058
+ * Bootstrap util/backdrop.js
2059
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2060
+ * --------------------------------------------------------------------------
2061
+ */
2062
+
2063
+
2064
+ /**
2065
+ * Constants
2066
+ */
2067
+
2068
+ const NAME$9 = 'backdrop';
2069
+ const CLASS_NAME_FADE$4 = 'fade';
2070
+ const CLASS_NAME_SHOW$5 = 'show';
2071
+ const EVENT_MOUSEDOWN = `mousedown.bs.${NAME$9}`;
2072
+ const Default$8 = {
2073
+ className: 'modal-backdrop',
2074
+ clickCallback: null,
2075
+ isAnimated: false,
2076
+ isVisible: true,
2077
+ // if false, we use the backdrop helper without adding any element to the dom
2078
+ rootElement: 'body' // give the choice to place backdrop under different elements
2079
+ };
2080
+ const DefaultType$8 = {
2081
+ className: 'string',
2082
+ clickCallback: '(function|null)',
2083
+ isAnimated: 'boolean',
2084
+ isVisible: 'boolean',
2085
+ rootElement: '(element|string)'
2086
+ };
2087
+
2088
+ /**
2089
+ * Class definition
2090
+ */
2091
+
2092
+ class Backdrop extends Config {
2093
+ constructor(config) {
2094
+ super();
2095
+ this._config = this._getConfig(config);
2096
+ this._isAppended = false;
2097
+ this._element = null;
2098
+ }
2099
+
2100
+ // Getters
2101
+ static get Default() {
2102
+ return Default$8;
2103
+ }
2104
+ static get DefaultType() {
2105
+ return DefaultType$8;
2106
+ }
2107
+ static get NAME() {
2108
+ return NAME$9;
2109
+ }
2110
+
2111
+ // Public
2112
+ show(callback) {
2113
+ if (!this._config.isVisible) {
2114
+ execute(callback);
2115
+ return;
2116
+ }
2117
+ this._append();
2118
+ const element = this._getElement();
2119
+ if (this._config.isAnimated) {
2120
+ reflow(element);
2121
+ }
2122
+ element.classList.add(CLASS_NAME_SHOW$5);
2123
+ this._emulateAnimation(() => {
2124
+ execute(callback);
2125
+ });
2126
+ }
2127
+ hide(callback) {
2128
+ if (!this._config.isVisible) {
2129
+ execute(callback);
2130
+ return;
2131
+ }
2132
+ this._getElement().classList.remove(CLASS_NAME_SHOW$5);
2133
+ this._emulateAnimation(() => {
2134
+ this.dispose();
2135
+ execute(callback);
2136
+ });
2137
+ }
2138
+ dispose() {
2139
+ if (!this._isAppended) {
2140
+ return;
2141
+ }
2142
+ EventHandler.off(this._element, EVENT_MOUSEDOWN);
2143
+ this._element.remove();
2144
+ this._isAppended = false;
2145
+ }
2146
+
2147
+ // Private
2148
+ _getElement() {
2149
+ if (!this._element) {
2150
+ const backdrop = document.createElement('div');
2151
+ backdrop.className = this._config.className;
2152
+ if (this._config.isAnimated) {
2153
+ backdrop.classList.add(CLASS_NAME_FADE$4);
2154
+ }
2155
+ this._element = backdrop;
2156
+ }
2157
+ return this._element;
2158
+ }
2159
+ _configAfterMerge(config) {
2160
+ // use getElement() with the default "body" to get a fresh Element on each instantiation
2161
+ config.rootElement = getElement(config.rootElement);
2162
+ return config;
2163
+ }
2164
+ _append() {
2165
+ if (this._isAppended) {
2166
+ return;
2167
+ }
2168
+ const element = this._getElement();
2169
+ this._config.rootElement.append(element);
2170
+ EventHandler.on(element, EVENT_MOUSEDOWN, () => {
2171
+ execute(this._config.clickCallback);
2172
+ });
2173
+ this._isAppended = true;
2174
+ }
2175
+ _emulateAnimation(callback) {
2176
+ executeAfterTransition(callback, this._getElement(), this._config.isAnimated);
2177
+ }
2178
+ }
2179
+
2180
+ /**
2181
+ * --------------------------------------------------------------------------
2182
+ * Bootstrap util/focustrap.js
2183
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2184
+ * --------------------------------------------------------------------------
2185
+ */
2186
+
2187
+
2188
+ /**
2189
+ * Constants
2190
+ */
2191
+
2192
+ const NAME$8 = 'focustrap';
2193
+ const DATA_KEY$5 = 'bs.focustrap';
2194
+ const EVENT_KEY$5 = `.${DATA_KEY$5}`;
2195
+ const EVENT_FOCUSIN$2 = `focusin${EVENT_KEY$5}`;
2196
+ const EVENT_KEYDOWN_TAB = `keydown.tab${EVENT_KEY$5}`;
2197
+ const TAB_KEY = 'Tab';
2198
+ const TAB_NAV_FORWARD = 'forward';
2199
+ const TAB_NAV_BACKWARD = 'backward';
2200
+ const Default$7 = {
2201
+ autofocus: true,
2202
+ trapElement: null // The element to trap focus inside of
2203
+ };
2204
+ const DefaultType$7 = {
2205
+ autofocus: 'boolean',
2206
+ trapElement: 'element'
2207
+ };
2208
+
2209
+ /**
2210
+ * Class definition
2211
+ */
2212
+
2213
+ class FocusTrap extends Config {
2214
+ constructor(config) {
2215
+ super();
2216
+ this._config = this._getConfig(config);
2217
+ this._isActive = false;
2218
+ this._lastTabNavDirection = null;
2219
+ }
2220
+
2221
+ // Getters
2222
+ static get Default() {
2223
+ return Default$7;
2224
+ }
2225
+ static get DefaultType() {
2226
+ return DefaultType$7;
2227
+ }
2228
+ static get NAME() {
2229
+ return NAME$8;
2230
+ }
2231
+
2232
+ // Public
2233
+ activate() {
2234
+ if (this._isActive) {
2235
+ return;
2236
+ }
2237
+ if (this._config.autofocus) {
2238
+ this._config.trapElement.focus();
2239
+ }
2240
+ EventHandler.off(document, EVENT_KEY$5); // guard against infinite focus loop
2241
+ EventHandler.on(document, EVENT_FOCUSIN$2, event => this._handleFocusin(event));
2242
+ EventHandler.on(document, EVENT_KEYDOWN_TAB, event => this._handleKeydown(event));
2243
+ this._isActive = true;
2244
+ }
2245
+ deactivate() {
2246
+ if (!this._isActive) {
2247
+ return;
2248
+ }
2249
+ this._isActive = false;
2250
+ EventHandler.off(document, EVENT_KEY$5);
2251
+ }
2252
+
2253
+ // Private
2254
+ _handleFocusin(event) {
2255
+ const {
2256
+ trapElement
2257
+ } = this._config;
2258
+ if (event.target === document || event.target === trapElement || trapElement.contains(event.target)) {
2259
+ return;
2260
+ }
2261
+ const elements = SelectorEngine.focusableChildren(trapElement);
2262
+ if (elements.length === 0) {
2263
+ trapElement.focus();
2264
+ } else if (this._lastTabNavDirection === TAB_NAV_BACKWARD) {
2265
+ elements[elements.length - 1].focus();
2266
+ } else {
2267
+ elements[0].focus();
2268
+ }
2269
+ }
2270
+ _handleKeydown(event) {
2271
+ if (event.key !== TAB_KEY) {
2272
+ return;
2273
+ }
2274
+ this._lastTabNavDirection = event.shiftKey ? TAB_NAV_BACKWARD : TAB_NAV_FORWARD;
2275
+ }
2276
+ }
2277
+
2278
+ /**
2279
+ * --------------------------------------------------------------------------
2280
+ * Bootstrap util/scrollBar.js
2281
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2282
+ * --------------------------------------------------------------------------
2283
+ */
2284
+
2285
+
2286
+ /**
2287
+ * Constants
2288
+ */
2289
+
2290
+ const SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
2291
+ const SELECTOR_STICKY_CONTENT = '.sticky-top';
2292
+ const PROPERTY_PADDING = 'padding-right';
2293
+ const PROPERTY_MARGIN = 'margin-right';
2294
+
2295
+ /**
2296
+ * Class definition
2297
+ */
2298
+
2299
+ class ScrollBarHelper {
2300
+ constructor() {
2301
+ this._element = document.body;
2302
+ }
2303
+
2304
+ // Public
2305
+ getWidth() {
2306
+ // https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth#usage_notes
2307
+ const documentWidth = document.documentElement.clientWidth;
2308
+ return Math.abs(window.innerWidth - documentWidth);
2309
+ }
2310
+ hide() {
2311
+ const width = this.getWidth();
2312
+ this._disableOverFlow();
2313
+ // give padding to element to balance the hidden scrollbar width
2314
+ this._setElementAttributes(this._element, PROPERTY_PADDING, calculatedValue => calculatedValue + width);
2315
+ // trick: We adjust positive paddingRight and negative marginRight to sticky-top elements to keep showing fullwidth
2316
+ this._setElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING, calculatedValue => calculatedValue + width);
2317
+ this._setElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN, calculatedValue => calculatedValue - width);
2318
+ }
2319
+ reset() {
2320
+ this._resetElementAttributes(this._element, 'overflow');
2321
+ this._resetElementAttributes(this._element, PROPERTY_PADDING);
2322
+ this._resetElementAttributes(SELECTOR_FIXED_CONTENT, PROPERTY_PADDING);
2323
+ this._resetElementAttributes(SELECTOR_STICKY_CONTENT, PROPERTY_MARGIN);
2324
+ }
2325
+ isOverflowing() {
2326
+ return this.getWidth() > 0;
2327
+ }
2328
+
2329
+ // Private
2330
+ _disableOverFlow() {
2331
+ this._saveInitialAttribute(this._element, 'overflow');
2332
+ this._element.style.overflow = 'hidden';
2333
+ }
2334
+ _setElementAttributes(selector, styleProperty, callback) {
2335
+ const scrollbarWidth = this.getWidth();
2336
+ const manipulationCallBack = element => {
2337
+ if (element !== this._element && window.innerWidth > element.clientWidth + scrollbarWidth) {
2338
+ return;
2339
+ }
2340
+ this._saveInitialAttribute(element, styleProperty);
2341
+ const calculatedValue = window.getComputedStyle(element).getPropertyValue(styleProperty);
2342
+ element.style.setProperty(styleProperty, `${callback(Number.parseFloat(calculatedValue))}px`);
2343
+ };
2344
+ this._applyManipulationCallback(selector, manipulationCallBack);
2345
+ }
2346
+ _saveInitialAttribute(element, styleProperty) {
2347
+ const actualValue = element.style.getPropertyValue(styleProperty);
2348
+ if (actualValue) {
2349
+ Manipulator.setDataAttribute(element, styleProperty, actualValue);
2350
+ }
2351
+ }
2352
+ _resetElementAttributes(selector, styleProperty) {
2353
+ const manipulationCallBack = element => {
2354
+ const value = Manipulator.getDataAttribute(element, styleProperty);
2355
+ // We only want to remove the property if the value is `null`; the value can also be zero
2356
+ if (value === null) {
2357
+ element.style.removeProperty(styleProperty);
2358
+ return;
2359
+ }
2360
+ Manipulator.removeDataAttribute(element, styleProperty);
2361
+ element.style.setProperty(styleProperty, value);
2362
+ };
2363
+ this._applyManipulationCallback(selector, manipulationCallBack);
2364
+ }
2365
+ _applyManipulationCallback(selector, callBack) {
2366
+ if (isElement(selector)) {
2367
+ callBack(selector);
2368
+ return;
2369
+ }
2370
+ for (const sel of SelectorEngine.find(selector, this._element)) {
2371
+ callBack(sel);
2372
+ }
2373
+ }
2374
+ }
2375
+
2376
+ /**
2377
+ * --------------------------------------------------------------------------
2378
+ * Bootstrap modal.js
2379
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2380
+ * --------------------------------------------------------------------------
2381
+ */
2382
+
2383
+
2384
+ /**
2385
+ * Constants
2386
+ */
2387
+
2388
+ const NAME$7 = 'modal';
2389
+ const DATA_KEY$4 = 'bs.modal';
2390
+ const EVENT_KEY$4 = `.${DATA_KEY$4}`;
2391
+ const DATA_API_KEY$2 = '.data-api';
2392
+ const ESCAPE_KEY$1 = 'Escape';
2393
+ const EVENT_HIDE$4 = `hide${EVENT_KEY$4}`;
2394
+ const EVENT_HIDE_PREVENTED$1 = `hidePrevented${EVENT_KEY$4}`;
2395
+ const EVENT_HIDDEN$4 = `hidden${EVENT_KEY$4}`;
2396
+ const EVENT_SHOW$4 = `show${EVENT_KEY$4}`;
2397
+ const EVENT_SHOWN$4 = `shown${EVENT_KEY$4}`;
2398
+ const EVENT_RESIZE$1 = `resize${EVENT_KEY$4}`;
2399
+ const EVENT_CLICK_DISMISS = `click.dismiss${EVENT_KEY$4}`;
2400
+ const EVENT_MOUSEDOWN_DISMISS = `mousedown.dismiss${EVENT_KEY$4}`;
2401
+ const EVENT_KEYDOWN_DISMISS$1 = `keydown.dismiss${EVENT_KEY$4}`;
2402
+ const EVENT_CLICK_DATA_API$2 = `click${EVENT_KEY$4}${DATA_API_KEY$2}`;
2403
+ const CLASS_NAME_OPEN = 'modal-open';
2404
+ const CLASS_NAME_FADE$3 = 'fade';
2405
+ const CLASS_NAME_SHOW$4 = 'show';
2406
+ const CLASS_NAME_STATIC = 'modal-static';
2407
+ const OPEN_SELECTOR$1 = '.modal.show';
2408
+ const SELECTOR_DIALOG = '.modal-dialog';
2409
+ const SELECTOR_MODAL_BODY = '.modal-body';
2410
+ const SELECTOR_DATA_TOGGLE$2 = '[data-bs-toggle="modal"]';
2411
+ const Default$6 = {
2412
+ backdrop: true,
2413
+ focus: true,
2414
+ keyboard: true
2415
+ };
2416
+ const DefaultType$6 = {
2417
+ backdrop: '(boolean|string)',
2418
+ focus: 'boolean',
2419
+ keyboard: 'boolean'
2420
+ };
2421
+
2422
+ /**
2423
+ * Class definition
2424
+ */
2425
+
2426
+ class Modal extends BaseComponent {
2427
+ constructor(element, config) {
2428
+ super(element, config);
2429
+ this._dialog = SelectorEngine.findOne(SELECTOR_DIALOG, this._element);
2430
+ this._backdrop = this._initializeBackDrop();
2431
+ this._focustrap = this._initializeFocusTrap();
2432
+ this._isShown = false;
2433
+ this._isTransitioning = false;
2434
+ this._scrollBar = new ScrollBarHelper();
2435
+ this._addEventListeners();
2436
+ }
2437
+
2438
+ // Getters
2439
+ static get Default() {
2440
+ return Default$6;
2441
+ }
2442
+ static get DefaultType() {
2443
+ return DefaultType$6;
2444
+ }
2445
+ static get NAME() {
2446
+ return NAME$7;
2447
+ }
2448
+
2449
+ // Public
2450
+ toggle(relatedTarget) {
2451
+ return this._isShown ? this.hide() : this.show(relatedTarget);
2452
+ }
2453
+ show(relatedTarget) {
2454
+ if (this._isShown || this._isTransitioning) {
2455
+ return;
2456
+ }
2457
+ const showEvent = EventHandler.trigger(this._element, EVENT_SHOW$4, {
2458
+ relatedTarget
2459
+ });
2460
+ if (showEvent.defaultPrevented) {
2461
+ return;
2462
+ }
2463
+ this._isShown = true;
2464
+ this._isTransitioning = true;
2465
+ this._scrollBar.hide();
2466
+ document.body.classList.add(CLASS_NAME_OPEN);
2467
+ this._adjustDialog();
2468
+ this._backdrop.show(() => this._showElement(relatedTarget));
2469
+ }
2470
+ hide() {
2471
+ if (!this._isShown || this._isTransitioning) {
2472
+ return;
2473
+ }
2474
+ const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE$4);
2475
+ if (hideEvent.defaultPrevented) {
2476
+ return;
2477
+ }
2478
+ this._isShown = false;
2479
+ this._isTransitioning = true;
2480
+ this._focustrap.deactivate();
2481
+ this._element.classList.remove(CLASS_NAME_SHOW$4);
2482
+ this._queueCallback(() => this._hideModal(), this._element, this._isAnimated());
2483
+ }
2484
+ dispose() {
2485
+ EventHandler.off(window, EVENT_KEY$4);
2486
+ EventHandler.off(this._dialog, EVENT_KEY$4);
2487
+ this._backdrop.dispose();
2488
+ this._focustrap.deactivate();
2489
+ super.dispose();
2490
+ }
2491
+ handleUpdate() {
2492
+ this._adjustDialog();
2493
+ }
2494
+
2495
+ // Private
2496
+ _initializeBackDrop() {
2497
+ return new Backdrop({
2498
+ isVisible: Boolean(this._config.backdrop),
2499
+ // 'static' option will be translated to true, and booleans will keep their value,
2500
+ isAnimated: this._isAnimated()
2501
+ });
2502
+ }
2503
+ _initializeFocusTrap() {
2504
+ return new FocusTrap({
2505
+ trapElement: this._element
2506
+ });
2507
+ }
2508
+ _showElement(relatedTarget) {
2509
+ // try to append dynamic modal
2510
+ if (!document.body.contains(this._element)) {
2511
+ document.body.append(this._element);
2512
+ }
2513
+ this._element.style.display = 'block';
2514
+ this._element.removeAttribute('aria-hidden');
2515
+ this._element.setAttribute('aria-modal', true);
2516
+ this._element.setAttribute('role', 'dialog');
2517
+ this._element.scrollTop = 0;
2518
+ const modalBody = SelectorEngine.findOne(SELECTOR_MODAL_BODY, this._dialog);
2519
+ if (modalBody) {
2520
+ modalBody.scrollTop = 0;
2521
+ }
2522
+ reflow(this._element);
2523
+ this._element.classList.add(CLASS_NAME_SHOW$4);
2524
+ const transitionComplete = () => {
2525
+ if (this._config.focus) {
2526
+ this._focustrap.activate();
2527
+ }
2528
+ this._isTransitioning = false;
2529
+ EventHandler.trigger(this._element, EVENT_SHOWN$4, {
2530
+ relatedTarget
2531
+ });
2532
+ };
2533
+ this._queueCallback(transitionComplete, this._dialog, this._isAnimated());
2534
+ }
2535
+ _addEventListeners() {
2536
+ EventHandler.on(this._element, EVENT_KEYDOWN_DISMISS$1, event => {
2537
+ if (event.key !== ESCAPE_KEY$1) {
2538
+ return;
2539
+ }
2540
+ if (this._config.keyboard) {
2541
+ this.hide();
2542
+ return;
2543
+ }
2544
+ this._triggerBackdropTransition();
2545
+ });
2546
+ EventHandler.on(window, EVENT_RESIZE$1, () => {
2547
+ if (this._isShown && !this._isTransitioning) {
2548
+ this._adjustDialog();
2549
+ }
2550
+ });
2551
+ EventHandler.on(this._element, EVENT_MOUSEDOWN_DISMISS, event => {
2552
+ // a bad trick to segregate clicks that may start inside dialog but end outside, and avoid listen to scrollbar clicks
2553
+ EventHandler.one(this._element, EVENT_CLICK_DISMISS, event2 => {
2554
+ if (this._element !== event.target || this._element !== event2.target) {
2555
+ return;
2556
+ }
2557
+ if (this._config.backdrop === 'static') {
2558
+ this._triggerBackdropTransition();
2559
+ return;
2560
+ }
2561
+ if (this._config.backdrop) {
2562
+ this.hide();
2563
+ }
2564
+ });
2565
+ });
2566
+ }
2567
+ _hideModal() {
2568
+ this._element.style.display = 'none';
2569
+ this._element.setAttribute('aria-hidden', true);
2570
+ this._element.removeAttribute('aria-modal');
2571
+ this._element.removeAttribute('role');
2572
+ this._isTransitioning = false;
2573
+ this._backdrop.hide(() => {
2574
+ document.body.classList.remove(CLASS_NAME_OPEN);
2575
+ this._resetAdjustments();
2576
+ this._scrollBar.reset();
2577
+ EventHandler.trigger(this._element, EVENT_HIDDEN$4);
2578
+ });
2579
+ }
2580
+ _isAnimated() {
2581
+ return this._element.classList.contains(CLASS_NAME_FADE$3);
2582
+ }
2583
+ _triggerBackdropTransition() {
2584
+ const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED$1);
2585
+ if (hideEvent.defaultPrevented) {
2586
+ return;
2587
+ }
2588
+ const isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
2589
+ const initialOverflowY = this._element.style.overflowY;
2590
+ // return if the following background transition hasn't yet completed
2591
+ if (initialOverflowY === 'hidden' || this._element.classList.contains(CLASS_NAME_STATIC)) {
2592
+ return;
2593
+ }
2594
+ if (!isModalOverflowing) {
2595
+ this._element.style.overflowY = 'hidden';
2596
+ }
2597
+ this._element.classList.add(CLASS_NAME_STATIC);
2598
+ this._queueCallback(() => {
2599
+ this._element.classList.remove(CLASS_NAME_STATIC);
2600
+ this._queueCallback(() => {
2601
+ this._element.style.overflowY = initialOverflowY;
2602
+ }, this._dialog);
2603
+ }, this._dialog);
2604
+ this._element.focus();
2605
+ }
2606
+
2607
+ /**
2608
+ * The following methods are used to handle overflowing modals
2609
+ */
2610
+
2611
+ _adjustDialog() {
2612
+ const isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
2613
+ const scrollbarWidth = this._scrollBar.getWidth();
2614
+ const isBodyOverflowing = scrollbarWidth > 0;
2615
+ if (isBodyOverflowing && !isModalOverflowing) {
2616
+ const property = isRTL() ? 'paddingLeft' : 'paddingRight';
2617
+ this._element.style[property] = `${scrollbarWidth}px`;
2618
+ }
2619
+ if (!isBodyOverflowing && isModalOverflowing) {
2620
+ const property = isRTL() ? 'paddingRight' : 'paddingLeft';
2621
+ this._element.style[property] = `${scrollbarWidth}px`;
2622
+ }
2623
+ }
2624
+ _resetAdjustments() {
2625
+ this._element.style.paddingLeft = '';
2626
+ this._element.style.paddingRight = '';
2627
+ }
2628
+
2629
+ // Static
2630
+ static jQueryInterface(config, relatedTarget) {
2631
+ return this.each(function () {
2632
+ const data = Modal.getOrCreateInstance(this, config);
2633
+ if (typeof config !== 'string') {
2634
+ return;
2635
+ }
2636
+ if (typeof data[config] === 'undefined') {
2637
+ throw new TypeError(`No method named "${config}"`);
2638
+ }
2639
+ data[config](relatedTarget);
2640
+ });
2641
+ }
2642
+ }
2643
+
2644
+ /**
2645
+ * Data API implementation
2646
+ */
2647
+
2648
+ EventHandler.on(document, EVENT_CLICK_DATA_API$2, SELECTOR_DATA_TOGGLE$2, function (event) {
2649
+ const target = SelectorEngine.getElementFromSelector(this);
2650
+ if (['A', 'AREA'].includes(this.tagName)) {
2651
+ event.preventDefault();
2652
+ }
2653
+ EventHandler.one(target, EVENT_SHOW$4, showEvent => {
2654
+ if (showEvent.defaultPrevented) {
2655
+ // only register focus restorer if modal will actually get shown
2656
+ return;
2657
+ }
2658
+ EventHandler.one(target, EVENT_HIDDEN$4, () => {
2659
+ if (isVisible(this)) {
2660
+ this.focus();
2661
+ }
2662
+ });
2663
+ });
2664
+
2665
+ // avoid conflict when clicking modal toggler while another one is open
2666
+ const alreadyOpen = SelectorEngine.findOne(OPEN_SELECTOR$1);
2667
+ if (alreadyOpen) {
2668
+ Modal.getInstance(alreadyOpen).hide();
2669
+ }
2670
+ const data = Modal.getOrCreateInstance(target);
2671
+ data.toggle(this);
2672
+ });
2673
+ enableDismissTrigger(Modal);
2674
+
2675
+ /**
2676
+ * jQuery
2677
+ */
2678
+
2679
+ defineJQueryPlugin(Modal);
2680
+
2681
+ /**
2682
+ * --------------------------------------------------------------------------
2683
+ * Bootstrap offcanvas.js
2684
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2685
+ * --------------------------------------------------------------------------
2686
+ */
2687
+
2688
+
2689
+ /**
2690
+ * Constants
2691
+ */
2692
+
2693
+ const NAME$6 = 'offcanvas';
2694
+ const DATA_KEY$3 = 'bs.offcanvas';
2695
+ const EVENT_KEY$3 = `.${DATA_KEY$3}`;
2696
+ const DATA_API_KEY$1 = '.data-api';
2697
+ const EVENT_LOAD_DATA_API$2 = `load${EVENT_KEY$3}${DATA_API_KEY$1}`;
2698
+ const ESCAPE_KEY = 'Escape';
2699
+ const CLASS_NAME_SHOW$3 = 'show';
2700
+ const CLASS_NAME_SHOWING$1 = 'showing';
2701
+ const CLASS_NAME_HIDING = 'hiding';
2702
+ const CLASS_NAME_BACKDROP = 'offcanvas-backdrop';
2703
+ const OPEN_SELECTOR = '.offcanvas.show';
2704
+ const EVENT_SHOW$3 = `show${EVENT_KEY$3}`;
2705
+ const EVENT_SHOWN$3 = `shown${EVENT_KEY$3}`;
2706
+ const EVENT_HIDE$3 = `hide${EVENT_KEY$3}`;
2707
+ const EVENT_HIDE_PREVENTED = `hidePrevented${EVENT_KEY$3}`;
2708
+ const EVENT_HIDDEN$3 = `hidden${EVENT_KEY$3}`;
2709
+ const EVENT_RESIZE = `resize${EVENT_KEY$3}`;
2710
+ const EVENT_CLICK_DATA_API$1 = `click${EVENT_KEY$3}${DATA_API_KEY$1}`;
2711
+ const EVENT_KEYDOWN_DISMISS = `keydown.dismiss${EVENT_KEY$3}`;
2712
+ const SELECTOR_DATA_TOGGLE$1 = '[data-bs-toggle="offcanvas"]';
2713
+ const Default$5 = {
2714
+ backdrop: true,
2715
+ keyboard: true,
2716
+ scroll: false
2717
+ };
2718
+ const DefaultType$5 = {
2719
+ backdrop: '(boolean|string)',
2720
+ keyboard: 'boolean',
2721
+ scroll: 'boolean'
2722
+ };
2723
+
2724
+ /**
2725
+ * Class definition
2726
+ */
2727
+
2728
+ class Offcanvas extends BaseComponent {
2729
+ constructor(element, config) {
2730
+ super(element, config);
2731
+ this._isShown = false;
2732
+ this._backdrop = this._initializeBackDrop();
2733
+ this._focustrap = this._initializeFocusTrap();
2734
+ this._addEventListeners();
2735
+ }
2736
+
2737
+ // Getters
2738
+ static get Default() {
2739
+ return Default$5;
2740
+ }
2741
+ static get DefaultType() {
2742
+ return DefaultType$5;
2743
+ }
2744
+ static get NAME() {
2745
+ return NAME$6;
2746
+ }
2747
+
2748
+ // Public
2749
+ toggle(relatedTarget) {
2750
+ return this._isShown ? this.hide() : this.show(relatedTarget);
2751
+ }
2752
+ show(relatedTarget) {
2753
+ if (this._isShown) {
2754
+ return;
2755
+ }
2756
+ const showEvent = EventHandler.trigger(this._element, EVENT_SHOW$3, {
2757
+ relatedTarget
2758
+ });
2759
+ if (showEvent.defaultPrevented) {
2760
+ return;
2761
+ }
2762
+ this._isShown = true;
2763
+ this._backdrop.show();
2764
+ if (!this._config.scroll) {
2765
+ new ScrollBarHelper().hide();
2766
+ }
2767
+ this._element.setAttribute('aria-modal', true);
2768
+ this._element.setAttribute('role', 'dialog');
2769
+ this._element.classList.add(CLASS_NAME_SHOWING$1);
2770
+ const completeCallBack = () => {
2771
+ if (!this._config.scroll || this._config.backdrop) {
2772
+ this._focustrap.activate();
2773
+ }
2774
+ this._element.classList.add(CLASS_NAME_SHOW$3);
2775
+ this._element.classList.remove(CLASS_NAME_SHOWING$1);
2776
+ EventHandler.trigger(this._element, EVENT_SHOWN$3, {
2777
+ relatedTarget
2778
+ });
2779
+ };
2780
+ this._queueCallback(completeCallBack, this._element, true);
2781
+ }
2782
+ hide() {
2783
+ if (!this._isShown) {
2784
+ return;
2785
+ }
2786
+ const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE$3);
2787
+ if (hideEvent.defaultPrevented) {
2788
+ return;
2789
+ }
2790
+ this._focustrap.deactivate();
2791
+ this._element.blur();
2792
+ this._isShown = false;
2793
+ this._element.classList.add(CLASS_NAME_HIDING);
2794
+ this._backdrop.hide();
2795
+ const completeCallback = () => {
2796
+ this._element.classList.remove(CLASS_NAME_SHOW$3, CLASS_NAME_HIDING);
2797
+ this._element.removeAttribute('aria-modal');
2798
+ this._element.removeAttribute('role');
2799
+ if (!this._config.scroll) {
2800
+ new ScrollBarHelper().reset();
2801
+ }
2802
+ EventHandler.trigger(this._element, EVENT_HIDDEN$3);
2803
+ };
2804
+ this._queueCallback(completeCallback, this._element, true);
2805
+ }
2806
+ dispose() {
2807
+ this._backdrop.dispose();
2808
+ this._focustrap.deactivate();
2809
+ super.dispose();
2810
+ }
2811
+
2812
+ // Private
2813
+ _initializeBackDrop() {
2814
+ const clickCallback = () => {
2815
+ if (this._config.backdrop === 'static') {
2816
+ EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);
2817
+ return;
2818
+ }
2819
+ this.hide();
2820
+ };
2821
+
2822
+ // 'static' option will be translated to true, and booleans will keep their value
2823
+ const isVisible = Boolean(this._config.backdrop);
2824
+ return new Backdrop({
2825
+ className: CLASS_NAME_BACKDROP,
2826
+ isVisible,
2827
+ isAnimated: true,
2828
+ rootElement: this._element.parentNode,
2829
+ clickCallback: isVisible ? clickCallback : null
2830
+ });
2831
+ }
2832
+ _initializeFocusTrap() {
2833
+ return new FocusTrap({
2834
+ trapElement: this._element
2835
+ });
2836
+ }
2837
+ _addEventListeners() {
2838
+ EventHandler.on(this._element, EVENT_KEYDOWN_DISMISS, event => {
2839
+ if (event.key !== ESCAPE_KEY) {
2840
+ return;
2841
+ }
2842
+ if (this._config.keyboard) {
2843
+ this.hide();
2844
+ return;
2845
+ }
2846
+ EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);
2847
+ });
2848
+ }
2849
+
2850
+ // Static
2851
+ static jQueryInterface(config) {
2852
+ return this.each(function () {
2853
+ const data = Offcanvas.getOrCreateInstance(this, config);
2854
+ if (typeof config !== 'string') {
2855
+ return;
2856
+ }
2857
+ if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {
2858
+ throw new TypeError(`No method named "${config}"`);
2859
+ }
2860
+ data[config](this);
2861
+ });
2862
+ }
2863
+ }
2864
+
2865
+ /**
2866
+ * Data API implementation
2867
+ */
2868
+
2869
+ EventHandler.on(document, EVENT_CLICK_DATA_API$1, SELECTOR_DATA_TOGGLE$1, function (event) {
2870
+ const target = SelectorEngine.getElementFromSelector(this);
2871
+ if (['A', 'AREA'].includes(this.tagName)) {
2872
+ event.preventDefault();
2873
+ }
2874
+ if (isDisabled(this)) {
2875
+ return;
2876
+ }
2877
+ EventHandler.one(target, EVENT_HIDDEN$3, () => {
2878
+ // focus on trigger when it is closed
2879
+ if (isVisible(this)) {
2880
+ this.focus();
2881
+ }
2882
+ });
2883
+
2884
+ // avoid conflict when clicking a toggler of an offcanvas, while another is open
2885
+ const alreadyOpen = SelectorEngine.findOne(OPEN_SELECTOR);
2886
+ if (alreadyOpen && alreadyOpen !== target) {
2887
+ Offcanvas.getInstance(alreadyOpen).hide();
2888
+ }
2889
+ const data = Offcanvas.getOrCreateInstance(target);
2890
+ data.toggle(this);
2891
+ });
2892
+ EventHandler.on(window, EVENT_LOAD_DATA_API$2, () => {
2893
+ for (const selector of SelectorEngine.find(OPEN_SELECTOR)) {
2894
+ Offcanvas.getOrCreateInstance(selector).show();
2895
+ }
2896
+ });
2897
+ EventHandler.on(window, EVENT_RESIZE, () => {
2898
+ for (const element of SelectorEngine.find('[aria-modal][class*=show][class*=offcanvas-]')) {
2899
+ if (getComputedStyle(element).position !== 'fixed') {
2900
+ Offcanvas.getOrCreateInstance(element).hide();
2901
+ }
2902
+ }
2903
+ });
2904
+ enableDismissTrigger(Offcanvas);
2905
+
2906
+ /**
2907
+ * jQuery
2908
+ */
2909
+
2910
+ defineJQueryPlugin(Offcanvas);
2911
+
2912
+ /**
2913
+ * --------------------------------------------------------------------------
2914
+ * Bootstrap util/sanitizer.js
2915
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2916
+ * --------------------------------------------------------------------------
2917
+ */
2918
+
2919
+ // js-docs-start allow-list
2920
+ const ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
2921
+ const DefaultAllowlist = {
2922
+ // Global attributes allowed on any supplied element below.
2923
+ '*': ['class', 'dir', 'id', 'lang', 'role', ARIA_ATTRIBUTE_PATTERN],
2924
+ a: ['target', 'href', 'title', 'rel'],
2925
+ area: [],
2926
+ b: [],
2927
+ br: [],
2928
+ col: [],
2929
+ code: [],
2930
+ dd: [],
2931
+ div: [],
2932
+ dl: [],
2933
+ dt: [],
2934
+ em: [],
2935
+ hr: [],
2936
+ h1: [],
2937
+ h2: [],
2938
+ h3: [],
2939
+ h4: [],
2940
+ h5: [],
2941
+ h6: [],
2942
+ i: [],
2943
+ img: ['src', 'srcset', 'alt', 'title', 'width', 'height'],
2944
+ li: [],
2945
+ ol: [],
2946
+ p: [],
2947
+ pre: [],
2948
+ s: [],
2949
+ small: [],
2950
+ span: [],
2951
+ sub: [],
2952
+ sup: [],
2953
+ strong: [],
2954
+ u: [],
2955
+ ul: []
2956
+ };
2957
+ // js-docs-end allow-list
2958
+
2959
+ const uriAttributes = new Set(['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']);
2960
+
2961
+ /**
2962
+ * A pattern that recognizes URLs that are safe wrt. XSS in URL navigation
2963
+ * contexts.
2964
+ *
2965
+ * Shout-out to Angular https://github.com/angular/angular/blob/15.2.8/packages/core/src/sanitization/url_sanitizer.ts#L38
2966
+ */
2967
+ const SAFE_URL_PATTERN = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i;
2968
+ const allowedAttribute = (attribute, allowedAttributeList) => {
2969
+ const attributeName = attribute.nodeName.toLowerCase();
2970
+ if (allowedAttributeList.includes(attributeName)) {
2971
+ if (uriAttributes.has(attributeName)) {
2972
+ return Boolean(SAFE_URL_PATTERN.test(attribute.nodeValue));
2973
+ }
2974
+ return true;
2975
+ }
2976
+
2977
+ // Check if a regular expression validates the attribute.
2978
+ return allowedAttributeList.filter(attributeRegex => attributeRegex instanceof RegExp).some(regex => regex.test(attributeName));
2979
+ };
2980
+ function sanitizeHtml(unsafeHtml, allowList, sanitizeFunction) {
2981
+ if (!unsafeHtml.length) {
2982
+ return unsafeHtml;
2983
+ }
2984
+ if (sanitizeFunction && typeof sanitizeFunction === 'function') {
2985
+ return sanitizeFunction(unsafeHtml);
2986
+ }
2987
+ const domParser = new window.DOMParser();
2988
+ const createdDocument = domParser.parseFromString(unsafeHtml, 'text/html');
2989
+ const elements = [].concat(...createdDocument.body.querySelectorAll('*'));
2990
+ for (const element of elements) {
2991
+ const elementName = element.nodeName.toLowerCase();
2992
+ if (!Object.keys(allowList).includes(elementName)) {
2993
+ element.remove();
2994
+ continue;
2995
+ }
2996
+ const attributeList = [].concat(...element.attributes);
2997
+ const allowedAttributes = [].concat(allowList['*'] || [], allowList[elementName] || []);
2998
+ for (const attribute of attributeList) {
2999
+ if (!allowedAttribute(attribute, allowedAttributes)) {
3000
+ element.removeAttribute(attribute.nodeName);
3001
+ }
3002
+ }
3003
+ }
3004
+ return createdDocument.body.innerHTML;
3005
+ }
3006
+
3007
+ /**
3008
+ * --------------------------------------------------------------------------
3009
+ * Bootstrap util/template-factory.js
3010
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3011
+ * --------------------------------------------------------------------------
3012
+ */
3013
+
3014
+
3015
+ /**
3016
+ * Constants
3017
+ */
3018
+
3019
+ const NAME$5 = 'TemplateFactory';
3020
+ const Default$4 = {
3021
+ allowList: DefaultAllowlist,
3022
+ content: {},
3023
+ // { selector : text , selector2 : text2 , }
3024
+ extraClass: '',
3025
+ html: false,
3026
+ sanitize: true,
3027
+ sanitizeFn: null,
3028
+ template: '<div></div>'
3029
+ };
3030
+ const DefaultType$4 = {
3031
+ allowList: 'object',
3032
+ content: 'object',
3033
+ extraClass: '(string|function)',
3034
+ html: 'boolean',
3035
+ sanitize: 'boolean',
3036
+ sanitizeFn: '(null|function)',
3037
+ template: 'string'
3038
+ };
3039
+ const DefaultContentType = {
3040
+ entry: '(string|element|function|null)',
3041
+ selector: '(string|element)'
3042
+ };
3043
+
3044
+ /**
3045
+ * Class definition
3046
+ */
3047
+
3048
+ class TemplateFactory extends Config {
3049
+ constructor(config) {
3050
+ super();
3051
+ this._config = this._getConfig(config);
3052
+ }
3053
+
3054
+ // Getters
3055
+ static get Default() {
3056
+ return Default$4;
3057
+ }
3058
+ static get DefaultType() {
3059
+ return DefaultType$4;
3060
+ }
3061
+ static get NAME() {
3062
+ return NAME$5;
3063
+ }
3064
+
3065
+ // Public
3066
+ getContent() {
3067
+ return Object.values(this._config.content).map(config => this._resolvePossibleFunction(config)).filter(Boolean);
3068
+ }
3069
+ hasContent() {
3070
+ return this.getContent().length > 0;
3071
+ }
3072
+ changeContent(content) {
3073
+ this._checkContent(content);
3074
+ this._config.content = {
3075
+ ...this._config.content,
3076
+ ...content
3077
+ };
3078
+ return this;
3079
+ }
3080
+ toHtml() {
3081
+ const templateWrapper = document.createElement('div');
3082
+ templateWrapper.innerHTML = this._maybeSanitize(this._config.template);
3083
+ for (const [selector, text] of Object.entries(this._config.content)) {
3084
+ this._setContent(templateWrapper, text, selector);
3085
+ }
3086
+ const template = templateWrapper.children[0];
3087
+ const extraClass = this._resolvePossibleFunction(this._config.extraClass);
3088
+ if (extraClass) {
3089
+ template.classList.add(...extraClass.split(' '));
3090
+ }
3091
+ return template;
3092
+ }
3093
+
3094
+ // Private
3095
+ _typeCheckConfig(config) {
3096
+ super._typeCheckConfig(config);
3097
+ this._checkContent(config.content);
3098
+ }
3099
+ _checkContent(arg) {
3100
+ for (const [selector, content] of Object.entries(arg)) {
3101
+ super._typeCheckConfig({
3102
+ selector,
3103
+ entry: content
3104
+ }, DefaultContentType);
3105
+ }
3106
+ }
3107
+ _setContent(template, content, selector) {
3108
+ const templateElement = SelectorEngine.findOne(selector, template);
3109
+ if (!templateElement) {
3110
+ return;
3111
+ }
3112
+ content = this._resolvePossibleFunction(content);
3113
+ if (!content) {
3114
+ templateElement.remove();
3115
+ return;
3116
+ }
3117
+ if (isElement(content)) {
3118
+ this._putElementInTemplate(getElement(content), templateElement);
3119
+ return;
3120
+ }
3121
+ if (this._config.html) {
3122
+ templateElement.innerHTML = this._maybeSanitize(content);
3123
+ return;
3124
+ }
3125
+ templateElement.textContent = content;
3126
+ }
3127
+ _maybeSanitize(arg) {
3128
+ return this._config.sanitize ? sanitizeHtml(arg, this._config.allowList, this._config.sanitizeFn) : arg;
3129
+ }
3130
+ _resolvePossibleFunction(arg) {
3131
+ return execute(arg, [undefined, this]);
3132
+ }
3133
+ _putElementInTemplate(element, templateElement) {
3134
+ if (this._config.html) {
3135
+ templateElement.innerHTML = '';
3136
+ templateElement.append(element);
3137
+ return;
3138
+ }
3139
+ templateElement.textContent = element.textContent;
3140
+ }
3141
+ }
3142
+
3143
+ /**
3144
+ * --------------------------------------------------------------------------
3145
+ * Bootstrap tooltip.js
3146
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3147
+ * --------------------------------------------------------------------------
3148
+ */
3149
+
3150
+
3151
+ /**
3152
+ * Constants
3153
+ */
3154
+
3155
+ const NAME$4 = 'tooltip';
3156
+ const DISALLOWED_ATTRIBUTES = new Set(['sanitize', 'allowList', 'sanitizeFn']);
3157
+ const CLASS_NAME_FADE$2 = 'fade';
3158
+ const CLASS_NAME_MODAL = 'modal';
3159
+ const CLASS_NAME_SHOW$2 = 'show';
3160
+ const SELECTOR_TOOLTIP_INNER = '.tooltip-inner';
3161
+ const SELECTOR_MODAL = `.${CLASS_NAME_MODAL}`;
3162
+ const EVENT_MODAL_HIDE = 'hide.bs.modal';
3163
+ const TRIGGER_HOVER = 'hover';
3164
+ const TRIGGER_FOCUS = 'focus';
3165
+ const TRIGGER_CLICK = 'click';
3166
+ const TRIGGER_MANUAL = 'manual';
3167
+ const EVENT_HIDE$2 = 'hide';
3168
+ const EVENT_HIDDEN$2 = 'hidden';
3169
+ const EVENT_SHOW$2 = 'show';
3170
+ const EVENT_SHOWN$2 = 'shown';
3171
+ const EVENT_INSERTED = 'inserted';
3172
+ const EVENT_CLICK$1 = 'click';
3173
+ const EVENT_FOCUSIN$1 = 'focusin';
3174
+ const EVENT_FOCUSOUT$1 = 'focusout';
3175
+ const EVENT_MOUSEENTER = 'mouseenter';
3176
+ const EVENT_MOUSELEAVE = 'mouseleave';
3177
+ const AttachmentMap = {
3178
+ AUTO: 'auto',
3179
+ TOP: 'top',
3180
+ RIGHT: isRTL() ? 'left' : 'right',
3181
+ BOTTOM: 'bottom',
3182
+ LEFT: isRTL() ? 'right' : 'left'
3183
+ };
3184
+ const Default$3 = {
3185
+ allowList: DefaultAllowlist,
3186
+ animation: true,
3187
+ boundary: 'clippingParents',
3188
+ container: false,
3189
+ customClass: '',
3190
+ delay: 0,
3191
+ fallbackPlacements: ['top', 'right', 'bottom', 'left'],
3192
+ html: false,
3193
+ offset: [0, 6],
3194
+ placement: 'top',
3195
+ popperConfig: null,
3196
+ sanitize: true,
3197
+ sanitizeFn: null,
3198
+ selector: false,
3199
+ template: '<div class="tooltip" role="tooltip">' + '<div class="tooltip-arrow"></div>' + '<div class="tooltip-inner"></div>' + '</div>',
3200
+ title: '',
3201
+ trigger: 'hover focus'
3202
+ };
3203
+ const DefaultType$3 = {
3204
+ allowList: 'object',
3205
+ animation: 'boolean',
3206
+ boundary: '(string|element)',
3207
+ container: '(string|element|boolean)',
3208
+ customClass: '(string|function)',
3209
+ delay: '(number|object)',
3210
+ fallbackPlacements: 'array',
3211
+ html: 'boolean',
3212
+ offset: '(array|string|function)',
3213
+ placement: '(string|function)',
3214
+ popperConfig: '(null|object|function)',
3215
+ sanitize: 'boolean',
3216
+ sanitizeFn: '(null|function)',
3217
+ selector: '(string|boolean)',
3218
+ template: 'string',
3219
+ title: '(string|element|function)',
3220
+ trigger: 'string'
3221
+ };
3222
+
3223
+ /**
3224
+ * Class definition
3225
+ */
3226
+
3227
+ class Tooltip extends BaseComponent {
3228
+ constructor(element, config) {
3229
+ if (typeof Popper === 'undefined') {
3230
+ throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org/docs/v2/)');
3231
+ }
3232
+ super(element, config);
3233
+
3234
+ // Private
3235
+ this._isEnabled = true;
3236
+ this._timeout = 0;
3237
+ this._isHovered = null;
3238
+ this._activeTrigger = {};
3239
+ this._popper = null;
3240
+ this._templateFactory = null;
3241
+ this._newContent = null;
3242
+
3243
+ // Protected
3244
+ this.tip = null;
3245
+ this._setListeners();
3246
+ if (!this._config.selector) {
3247
+ this._fixTitle();
3248
+ }
3249
+ }
3250
+
3251
+ // Getters
3252
+ static get Default() {
3253
+ return Default$3;
3254
+ }
3255
+ static get DefaultType() {
3256
+ return DefaultType$3;
3257
+ }
3258
+ static get NAME() {
3259
+ return NAME$4;
3260
+ }
3261
+
3262
+ // Public
3263
+ enable() {
3264
+ this._isEnabled = true;
3265
+ }
3266
+ disable() {
3267
+ this._isEnabled = false;
3268
+ }
3269
+ toggleEnabled() {
3270
+ this._isEnabled = !this._isEnabled;
3271
+ }
3272
+ toggle() {
3273
+ if (!this._isEnabled) {
3274
+ return;
3275
+ }
3276
+ if (this._isShown()) {
3277
+ this._leave();
3278
+ return;
3279
+ }
3280
+ this._enter();
3281
+ }
3282
+ dispose() {
3283
+ clearTimeout(this._timeout);
3284
+ EventHandler.off(this._element.closest(SELECTOR_MODAL), EVENT_MODAL_HIDE, this._hideModalHandler);
3285
+ if (this._element.getAttribute('data-bs-original-title')) {
3286
+ this._element.setAttribute('title', this._element.getAttribute('data-bs-original-title'));
3287
+ }
3288
+ this._disposePopper();
3289
+ super.dispose();
3290
+ }
3291
+ show() {
3292
+ if (this._element.style.display === 'none') {
3293
+ throw new Error('Please use show on visible elements');
3294
+ }
3295
+ if (!(this._isWithContent() && this._isEnabled)) {
3296
+ return;
3297
+ }
3298
+ const showEvent = EventHandler.trigger(this._element, this.constructor.eventName(EVENT_SHOW$2));
3299
+ const shadowRoot = findShadowRoot(this._element);
3300
+ const isInTheDom = (shadowRoot || this._element.ownerDocument.documentElement).contains(this._element);
3301
+ if (showEvent.defaultPrevented || !isInTheDom) {
3302
+ return;
3303
+ }
3304
+
3305
+ // TODO: v6 remove this or make it optional
3306
+ this._disposePopper();
3307
+ const tip = this._getTipElement();
3308
+ this._element.setAttribute('aria-describedby', tip.getAttribute('id'));
3309
+ const {
3310
+ container
3311
+ } = this._config;
3312
+ if (!this._element.ownerDocument.documentElement.contains(this.tip)) {
3313
+ container.append(tip);
3314
+ EventHandler.trigger(this._element, this.constructor.eventName(EVENT_INSERTED));
3315
+ }
3316
+ this._popper = this._createPopper(tip);
3317
+ tip.classList.add(CLASS_NAME_SHOW$2);
3318
+
3319
+ // If this is a touch-enabled device we add extra
3320
+ // empty mouseover listeners to the body's immediate children;
3321
+ // only needed because of broken event delegation on iOS
3322
+ // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
3323
+ if ('ontouchstart' in document.documentElement) {
3324
+ for (const element of [].concat(...document.body.children)) {
3325
+ EventHandler.on(element, 'mouseover', noop);
3326
+ }
3327
+ }
3328
+ const complete = () => {
3329
+ EventHandler.trigger(this._element, this.constructor.eventName(EVENT_SHOWN$2));
3330
+ if (this._isHovered === false) {
3331
+ this._leave();
3332
+ }
3333
+ this._isHovered = false;
3334
+ };
3335
+ this._queueCallback(complete, this.tip, this._isAnimated());
3336
+ }
3337
+ hide() {
3338
+ if (!this._isShown()) {
3339
+ return;
3340
+ }
3341
+ const hideEvent = EventHandler.trigger(this._element, this.constructor.eventName(EVENT_HIDE$2));
3342
+ if (hideEvent.defaultPrevented) {
3343
+ return;
3344
+ }
3345
+ const tip = this._getTipElement();
3346
+ tip.classList.remove(CLASS_NAME_SHOW$2);
3347
+
3348
+ // If this is a touch-enabled device we remove the extra
3349
+ // empty mouseover listeners we added for iOS support
3350
+ if ('ontouchstart' in document.documentElement) {
3351
+ for (const element of [].concat(...document.body.children)) {
3352
+ EventHandler.off(element, 'mouseover', noop);
3353
+ }
3354
+ }
3355
+ this._activeTrigger[TRIGGER_CLICK] = false;
3356
+ this._activeTrigger[TRIGGER_FOCUS] = false;
3357
+ this._activeTrigger[TRIGGER_HOVER] = false;
3358
+ this._isHovered = null; // it is a trick to support manual triggering
3359
+
3360
+ const complete = () => {
3361
+ if (this._isWithActiveTrigger()) {
3362
+ return;
3363
+ }
3364
+ if (!this._isHovered) {
3365
+ this._disposePopper();
3366
+ }
3367
+ this._element.removeAttribute('aria-describedby');
3368
+ EventHandler.trigger(this._element, this.constructor.eventName(EVENT_HIDDEN$2));
3369
+ };
3370
+ this._queueCallback(complete, this.tip, this._isAnimated());
3371
+ }
3372
+ update() {
3373
+ if (this._popper) {
3374
+ this._popper.update();
3375
+ }
3376
+ }
3377
+
3378
+ // Protected
3379
+ _isWithContent() {
3380
+ return Boolean(this._getTitle());
3381
+ }
3382
+ _getTipElement() {
3383
+ if (!this.tip) {
3384
+ this.tip = this._createTipElement(this._newContent || this._getContentForTemplate());
3385
+ }
3386
+ return this.tip;
3387
+ }
3388
+ _createTipElement(content) {
3389
+ const tip = this._getTemplateFactory(content).toHtml();
3390
+
3391
+ // TODO: remove this check in v6
3392
+ if (!tip) {
3393
+ return null;
3394
+ }
3395
+ tip.classList.remove(CLASS_NAME_FADE$2, CLASS_NAME_SHOW$2);
3396
+ // TODO: v6 the following can be achieved with CSS only
3397
+ tip.classList.add(`bs-${this.constructor.NAME}-auto`);
3398
+ const tipId = getUID(this.constructor.NAME).toString();
3399
+ tip.setAttribute('id', tipId);
3400
+ if (this._isAnimated()) {
3401
+ tip.classList.add(CLASS_NAME_FADE$2);
3402
+ }
3403
+ return tip;
3404
+ }
3405
+ setContent(content) {
3406
+ this._newContent = content;
3407
+ if (this._isShown()) {
3408
+ this._disposePopper();
3409
+ this.show();
3410
+ }
3411
+ }
3412
+ _getTemplateFactory(content) {
3413
+ if (this._templateFactory) {
3414
+ this._templateFactory.changeContent(content);
3415
+ } else {
3416
+ this._templateFactory = new TemplateFactory({
3417
+ ...this._config,
3418
+ // the `content` var has to be after `this._config`
3419
+ // to override config.content in case of popover
3420
+ content,
3421
+ extraClass: this._resolvePossibleFunction(this._config.customClass)
3422
+ });
3423
+ }
3424
+ return this._templateFactory;
3425
+ }
3426
+ _getContentForTemplate() {
3427
+ return {
3428
+ [SELECTOR_TOOLTIP_INNER]: this._getTitle()
3429
+ };
3430
+ }
3431
+ _getTitle() {
3432
+ return this._resolvePossibleFunction(this._config.title) || this._element.getAttribute('data-bs-original-title');
3433
+ }
3434
+
3435
+ // Private
3436
+ _initializeOnDelegatedTarget(event) {
3437
+ return this.constructor.getOrCreateInstance(event.delegateTarget, this._getDelegateConfig());
3438
+ }
3439
+ _isAnimated() {
3440
+ return this._config.animation || this.tip && this.tip.classList.contains(CLASS_NAME_FADE$2);
3441
+ }
3442
+ _isShown() {
3443
+ return this.tip && this.tip.classList.contains(CLASS_NAME_SHOW$2);
3444
+ }
3445
+ _createPopper(tip) {
3446
+ const placement = execute(this._config.placement, [this, tip, this._element]);
3447
+ const attachment = AttachmentMap[placement.toUpperCase()];
3448
+ return Popper.createPopper(this._element, tip, this._getPopperConfig(attachment));
3449
+ }
3450
+ _getOffset() {
3451
+ const {
3452
+ offset
3453
+ } = this._config;
3454
+ if (typeof offset === 'string') {
3455
+ return offset.split(',').map(value => Number.parseInt(value, 10));
3456
+ }
3457
+ if (typeof offset === 'function') {
3458
+ return popperData => offset(popperData, this._element);
3459
+ }
3460
+ return offset;
3461
+ }
3462
+ _resolvePossibleFunction(arg) {
3463
+ return execute(arg, [this._element, this._element]);
3464
+ }
3465
+ _getPopperConfig(attachment) {
3466
+ const defaultBsPopperConfig = {
3467
+ placement: attachment,
3468
+ modifiers: [{
3469
+ name: 'flip',
3470
+ options: {
3471
+ fallbackPlacements: this._config.fallbackPlacements
3472
+ }
3473
+ }, {
3474
+ name: 'offset',
3475
+ options: {
3476
+ offset: this._getOffset()
3477
+ }
3478
+ }, {
3479
+ name: 'preventOverflow',
3480
+ options: {
3481
+ boundary: this._config.boundary
3482
+ }
3483
+ }, {
3484
+ name: 'arrow',
3485
+ options: {
3486
+ element: `.${this.constructor.NAME}-arrow`
3487
+ }
3488
+ }, {
3489
+ name: 'preSetPlacement',
3490
+ enabled: true,
3491
+ phase: 'beforeMain',
3492
+ fn: data => {
3493
+ // Pre-set Popper's placement attribute in order to read the arrow sizes properly.
3494
+ // Otherwise, Popper mixes up the width and height dimensions since the initial arrow style is for top placement
3495
+ this._getTipElement().setAttribute('data-popper-placement', data.state.placement);
3496
+ }
3497
+ }]
3498
+ };
3499
+ return {
3500
+ ...defaultBsPopperConfig,
3501
+ ...execute(this._config.popperConfig, [undefined, defaultBsPopperConfig])
3502
+ };
3503
+ }
3504
+ _setListeners() {
3505
+ const triggers = this._config.trigger.split(' ');
3506
+ for (const trigger of triggers) {
3507
+ if (trigger === 'click') {
3508
+ EventHandler.on(this._element, this.constructor.eventName(EVENT_CLICK$1), this._config.selector, event => {
3509
+ const context = this._initializeOnDelegatedTarget(event);
3510
+ context._activeTrigger[TRIGGER_CLICK] = !(context._isShown() && context._activeTrigger[TRIGGER_CLICK]);
3511
+ context.toggle();
3512
+ });
3513
+ } else if (trigger !== TRIGGER_MANUAL) {
3514
+ const eventIn = trigger === TRIGGER_HOVER ? this.constructor.eventName(EVENT_MOUSEENTER) : this.constructor.eventName(EVENT_FOCUSIN$1);
3515
+ const eventOut = trigger === TRIGGER_HOVER ? this.constructor.eventName(EVENT_MOUSELEAVE) : this.constructor.eventName(EVENT_FOCUSOUT$1);
3516
+ EventHandler.on(this._element, eventIn, this._config.selector, event => {
3517
+ const context = this._initializeOnDelegatedTarget(event);
3518
+ context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
3519
+ context._enter();
3520
+ });
3521
+ EventHandler.on(this._element, eventOut, this._config.selector, event => {
3522
+ const context = this._initializeOnDelegatedTarget(event);
3523
+ context._activeTrigger[event.type === 'focusout' ? TRIGGER_FOCUS : TRIGGER_HOVER] = context._element.contains(event.relatedTarget);
3524
+ context._leave();
3525
+ });
3526
+ }
3527
+ }
3528
+ this._hideModalHandler = () => {
3529
+ if (this._element) {
3530
+ this.hide();
3531
+ }
3532
+ };
3533
+ EventHandler.on(this._element.closest(SELECTOR_MODAL), EVENT_MODAL_HIDE, this._hideModalHandler);
3534
+ }
3535
+ _fixTitle() {
3536
+ const title = this._element.getAttribute('title');
3537
+ if (!title) {
3538
+ return;
3539
+ }
3540
+ if (!this._element.getAttribute('aria-label') && !this._element.textContent.trim()) {
3541
+ this._element.setAttribute('aria-label', title);
3542
+ }
3543
+ this._element.setAttribute('data-bs-original-title', title); // DO NOT USE IT. Is only for backwards compatibility
3544
+ this._element.removeAttribute('title');
3545
+ }
3546
+ _enter() {
3547
+ if (this._isShown() || this._isHovered) {
3548
+ this._isHovered = true;
3549
+ return;
3550
+ }
3551
+ this._isHovered = true;
3552
+ this._setTimeout(() => {
3553
+ if (this._isHovered) {
3554
+ this.show();
3555
+ }
3556
+ }, this._config.delay.show);
3557
+ }
3558
+ _leave() {
3559
+ if (this._isWithActiveTrigger()) {
3560
+ return;
3561
+ }
3562
+ this._isHovered = false;
3563
+ this._setTimeout(() => {
3564
+ if (!this._isHovered) {
3565
+ this.hide();
3566
+ }
3567
+ }, this._config.delay.hide);
3568
+ }
3569
+ _setTimeout(handler, timeout) {
3570
+ clearTimeout(this._timeout);
3571
+ this._timeout = setTimeout(handler, timeout);
3572
+ }
3573
+ _isWithActiveTrigger() {
3574
+ return Object.values(this._activeTrigger).includes(true);
3575
+ }
3576
+ _getConfig(config) {
3577
+ const dataAttributes = Manipulator.getDataAttributes(this._element);
3578
+ for (const dataAttribute of Object.keys(dataAttributes)) {
3579
+ if (DISALLOWED_ATTRIBUTES.has(dataAttribute)) {
3580
+ delete dataAttributes[dataAttribute];
3581
+ }
3582
+ }
3583
+ config = {
3584
+ ...dataAttributes,
3585
+ ...(typeof config === 'object' && config ? config : {})
3586
+ };
3587
+ config = this._mergeConfigObj(config);
3588
+ config = this._configAfterMerge(config);
3589
+ this._typeCheckConfig(config);
3590
+ return config;
3591
+ }
3592
+ _configAfterMerge(config) {
3593
+ config.container = config.container === false ? document.body : getElement(config.container);
3594
+ if (typeof config.delay === 'number') {
3595
+ config.delay = {
3596
+ show: config.delay,
3597
+ hide: config.delay
3598
+ };
3599
+ }
3600
+ if (typeof config.title === 'number') {
3601
+ config.title = config.title.toString();
3602
+ }
3603
+ if (typeof config.content === 'number') {
3604
+ config.content = config.content.toString();
3605
+ }
3606
+ return config;
3607
+ }
3608
+ _getDelegateConfig() {
3609
+ const config = {};
3610
+ for (const [key, value] of Object.entries(this._config)) {
3611
+ if (this.constructor.Default[key] !== value) {
3612
+ config[key] = value;
3613
+ }
3614
+ }
3615
+ config.selector = false;
3616
+ config.trigger = 'manual';
3617
+
3618
+ // In the future can be replaced with:
3619
+ // const keysWithDifferentValues = Object.entries(this._config).filter(entry => this.constructor.Default[entry[0]] !== this._config[entry[0]])
3620
+ // `Object.fromEntries(keysWithDifferentValues)`
3621
+ return config;
3622
+ }
3623
+ _disposePopper() {
3624
+ if (this._popper) {
3625
+ this._popper.destroy();
3626
+ this._popper = null;
3627
+ }
3628
+ if (this.tip) {
3629
+ this.tip.remove();
3630
+ this.tip = null;
3631
+ }
3632
+ }
3633
+
3634
+ // Static
3635
+ static jQueryInterface(config) {
3636
+ return this.each(function () {
3637
+ const data = Tooltip.getOrCreateInstance(this, config);
3638
+ if (typeof config !== 'string') {
3639
+ return;
3640
+ }
3641
+ if (typeof data[config] === 'undefined') {
3642
+ throw new TypeError(`No method named "${config}"`);
3643
+ }
3644
+ data[config]();
3645
+ });
3646
+ }
3647
+ }
3648
+
3649
+ /**
3650
+ * jQuery
3651
+ */
3652
+
3653
+ defineJQueryPlugin(Tooltip);
3654
+
3655
+ /**
3656
+ * --------------------------------------------------------------------------
3657
+ * Bootstrap popover.js
3658
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3659
+ * --------------------------------------------------------------------------
3660
+ */
3661
+
3662
+
3663
+ /**
3664
+ * Constants
3665
+ */
3666
+
3667
+ const NAME$3 = 'popover';
3668
+ const SELECTOR_TITLE = '.popover-header';
3669
+ const SELECTOR_CONTENT = '.popover-body';
3670
+ const Default$2 = {
3671
+ ...Tooltip.Default,
3672
+ content: '',
3673
+ offset: [0, 8],
3674
+ placement: 'right',
3675
+ template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div>' + '</div>',
3676
+ trigger: 'click'
3677
+ };
3678
+ const DefaultType$2 = {
3679
+ ...Tooltip.DefaultType,
3680
+ content: '(null|string|element|function)'
3681
+ };
3682
+
3683
+ /**
3684
+ * Class definition
3685
+ */
3686
+
3687
+ class Popover extends Tooltip {
3688
+ // Getters
3689
+ static get Default() {
3690
+ return Default$2;
3691
+ }
3692
+ static get DefaultType() {
3693
+ return DefaultType$2;
3694
+ }
3695
+ static get NAME() {
3696
+ return NAME$3;
3697
+ }
3698
+
3699
+ // Overrides
3700
+ _isWithContent() {
3701
+ return this._getTitle() || this._getContent();
3702
+ }
3703
+
3704
+ // Private
3705
+ _getContentForTemplate() {
3706
+ return {
3707
+ [SELECTOR_TITLE]: this._getTitle(),
3708
+ [SELECTOR_CONTENT]: this._getContent()
3709
+ };
3710
+ }
3711
+ _getContent() {
3712
+ return this._resolvePossibleFunction(this._config.content);
3713
+ }
3714
+
3715
+ // Static
3716
+ static jQueryInterface(config) {
3717
+ return this.each(function () {
3718
+ const data = Popover.getOrCreateInstance(this, config);
3719
+ if (typeof config !== 'string') {
3720
+ return;
3721
+ }
3722
+ if (typeof data[config] === 'undefined') {
3723
+ throw new TypeError(`No method named "${config}"`);
3724
+ }
3725
+ data[config]();
3726
+ });
3727
+ }
3728
+ }
3729
+
3730
+ /**
3731
+ * jQuery
3732
+ */
3733
+
3734
+ defineJQueryPlugin(Popover);
3735
+
3736
+ /**
3737
+ * --------------------------------------------------------------------------
3738
+ * Bootstrap scrollspy.js
3739
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3740
+ * --------------------------------------------------------------------------
3741
+ */
3742
+
3743
+
3744
+ /**
3745
+ * Constants
3746
+ */
3747
+
3748
+ const NAME$2 = 'scrollspy';
3749
+ const DATA_KEY$2 = 'bs.scrollspy';
3750
+ const EVENT_KEY$2 = `.${DATA_KEY$2}`;
3751
+ const DATA_API_KEY = '.data-api';
3752
+ const EVENT_ACTIVATE = `activate${EVENT_KEY$2}`;
3753
+ const EVENT_CLICK = `click${EVENT_KEY$2}`;
3754
+ const EVENT_LOAD_DATA_API$1 = `load${EVENT_KEY$2}${DATA_API_KEY}`;
3755
+ const CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item';
3756
+ const CLASS_NAME_ACTIVE$1 = 'active';
3757
+ const SELECTOR_DATA_SPY = '[data-bs-spy="scroll"]';
3758
+ const SELECTOR_TARGET_LINKS = '[href]';
3759
+ const SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
3760
+ const SELECTOR_NAV_LINKS = '.nav-link';
3761
+ const SELECTOR_NAV_ITEMS = '.nav-item';
3762
+ const SELECTOR_LIST_ITEMS = '.list-group-item';
3763
+ const SELECTOR_LINK_ITEMS = `${SELECTOR_NAV_LINKS}, ${SELECTOR_NAV_ITEMS} > ${SELECTOR_NAV_LINKS}, ${SELECTOR_LIST_ITEMS}`;
3764
+ const SELECTOR_DROPDOWN = '.dropdown';
3765
+ const SELECTOR_DROPDOWN_TOGGLE$1 = '.dropdown-toggle';
3766
+ const Default$1 = {
3767
+ offset: null,
3768
+ // TODO: v6 @deprecated, keep it for backwards compatibility reasons
3769
+ rootMargin: '0px 0px -25%',
3770
+ smoothScroll: false,
3771
+ target: null,
3772
+ threshold: [0.1, 0.5, 1]
3773
+ };
3774
+ const DefaultType$1 = {
3775
+ offset: '(number|null)',
3776
+ // TODO v6 @deprecated, keep it for backwards compatibility reasons
3777
+ rootMargin: 'string',
3778
+ smoothScroll: 'boolean',
3779
+ target: 'element',
3780
+ threshold: 'array'
3781
+ };
3782
+
3783
+ /**
3784
+ * Class definition
3785
+ */
3786
+
3787
+ class ScrollSpy extends BaseComponent {
3788
+ constructor(element, config) {
3789
+ super(element, config);
3790
+
3791
+ // this._element is the observablesContainer and config.target the menu links wrapper
3792
+ this._targetLinks = new Map();
3793
+ this._observableSections = new Map();
3794
+ this._rootElement = getComputedStyle(this._element).overflowY === 'visible' ? null : this._element;
3795
+ this._activeTarget = null;
3796
+ this._observer = null;
3797
+ this._previousScrollData = {
3798
+ visibleEntryTop: 0,
3799
+ parentScrollTop: 0
3800
+ };
3801
+ this.refresh(); // initialize
3802
+ }
3803
+
3804
+ // Getters
3805
+ static get Default() {
3806
+ return Default$1;
3807
+ }
3808
+ static get DefaultType() {
3809
+ return DefaultType$1;
3810
+ }
3811
+ static get NAME() {
3812
+ return NAME$2;
3813
+ }
3814
+
3815
+ // Public
3816
+ refresh() {
3817
+ this._initializeTargetsAndObservables();
3818
+ this._maybeEnableSmoothScroll();
3819
+ if (this._observer) {
3820
+ this._observer.disconnect();
3821
+ } else {
3822
+ this._observer = this._getNewObserver();
3823
+ }
3824
+ for (const section of this._observableSections.values()) {
3825
+ this._observer.observe(section);
3826
+ }
3827
+ }
3828
+ dispose() {
3829
+ this._observer.disconnect();
3830
+ super.dispose();
3831
+ }
3832
+
3833
+ // Private
3834
+ _configAfterMerge(config) {
3835
+ // TODO: on v6 target should be given explicitly & remove the {target: 'ss-target'} case
3836
+ config.target = getElement(config.target) || document.body;
3837
+
3838
+ // TODO: v6 Only for backwards compatibility reasons. Use rootMargin only
3839
+ config.rootMargin = config.offset ? `${config.offset}px 0px -30%` : config.rootMargin;
3840
+ if (typeof config.threshold === 'string') {
3841
+ config.threshold = config.threshold.split(',').map(value => Number.parseFloat(value));
3842
+ }
3843
+ return config;
3844
+ }
3845
+ _maybeEnableSmoothScroll() {
3846
+ if (!this._config.smoothScroll) {
3847
+ return;
3848
+ }
3849
+
3850
+ // unregister any previous listeners
3851
+ EventHandler.off(this._config.target, EVENT_CLICK);
3852
+ EventHandler.on(this._config.target, EVENT_CLICK, SELECTOR_TARGET_LINKS, event => {
3853
+ const observableSection = this._observableSections.get(event.target.hash);
3854
+ if (observableSection) {
3855
+ event.preventDefault();
3856
+ const root = this._rootElement || window;
3857
+ const height = observableSection.offsetTop - this._element.offsetTop;
3858
+ if (root.scrollTo) {
3859
+ root.scrollTo({
3860
+ top: height,
3861
+ behavior: 'smooth'
3862
+ });
3863
+ return;
3864
+ }
3865
+
3866
+ // Chrome 60 doesn't support `scrollTo`
3867
+ root.scrollTop = height;
3868
+ }
3869
+ });
3870
+ }
3871
+ _getNewObserver() {
3872
+ const options = {
3873
+ root: this._rootElement,
3874
+ threshold: this._config.threshold,
3875
+ rootMargin: this._config.rootMargin
3876
+ };
3877
+ return new IntersectionObserver(entries => this._observerCallback(entries), options);
3878
+ }
3879
+
3880
+ // The logic of selection
3881
+ _observerCallback(entries) {
3882
+ const targetElement = entry => this._targetLinks.get(`#${entry.target.id}`);
3883
+ const activate = entry => {
3884
+ this._previousScrollData.visibleEntryTop = entry.target.offsetTop;
3885
+ this._process(targetElement(entry));
3886
+ };
3887
+ const parentScrollTop = (this._rootElement || document.documentElement).scrollTop;
3888
+ const userScrollsDown = parentScrollTop >= this._previousScrollData.parentScrollTop;
3889
+ this._previousScrollData.parentScrollTop = parentScrollTop;
3890
+ for (const entry of entries) {
3891
+ if (!entry.isIntersecting) {
3892
+ this._activeTarget = null;
3893
+ this._clearActiveClass(targetElement(entry));
3894
+ continue;
3895
+ }
3896
+ const entryIsLowerThanPrevious = entry.target.offsetTop >= this._previousScrollData.visibleEntryTop;
3897
+ // if we are scrolling down, pick the bigger offsetTop
3898
+ if (userScrollsDown && entryIsLowerThanPrevious) {
3899
+ activate(entry);
3900
+ // if parent isn't scrolled, let's keep the first visible item, breaking the iteration
3901
+ if (!parentScrollTop) {
3902
+ return;
3903
+ }
3904
+ continue;
3905
+ }
3906
+
3907
+ // if we are scrolling up, pick the smallest offsetTop
3908
+ if (!userScrollsDown && !entryIsLowerThanPrevious) {
3909
+ activate(entry);
3910
+ }
3911
+ }
3912
+ }
3913
+ _initializeTargetsAndObservables() {
3914
+ this._targetLinks = new Map();
3915
+ this._observableSections = new Map();
3916
+ const targetLinks = SelectorEngine.find(SELECTOR_TARGET_LINKS, this._config.target);
3917
+ for (const anchor of targetLinks) {
3918
+ // ensure that the anchor has an id and is not disabled
3919
+ if (!anchor.hash || isDisabled(anchor)) {
3920
+ continue;
3921
+ }
3922
+ const observableSection = SelectorEngine.findOne(decodeURI(anchor.hash), this._element);
3923
+
3924
+ // ensure that the observableSection exists & is visible
3925
+ if (isVisible(observableSection)) {
3926
+ this._targetLinks.set(decodeURI(anchor.hash), anchor);
3927
+ this._observableSections.set(anchor.hash, observableSection);
3928
+ }
3929
+ }
3930
+ }
3931
+ _process(target) {
3932
+ if (this._activeTarget === target) {
3933
+ return;
3934
+ }
3935
+ this._clearActiveClass(this._config.target);
3936
+ this._activeTarget = target;
3937
+ target.classList.add(CLASS_NAME_ACTIVE$1);
3938
+ this._activateParents(target);
3939
+ EventHandler.trigger(this._element, EVENT_ACTIVATE, {
3940
+ relatedTarget: target
3941
+ });
3942
+ }
3943
+ _activateParents(target) {
3944
+ // Activate dropdown parents
3945
+ if (target.classList.contains(CLASS_NAME_DROPDOWN_ITEM)) {
3946
+ SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE$1, target.closest(SELECTOR_DROPDOWN)).classList.add(CLASS_NAME_ACTIVE$1);
3947
+ return;
3948
+ }
3949
+ for (const listGroup of SelectorEngine.parents(target, SELECTOR_NAV_LIST_GROUP)) {
3950
+ // Set triggered links parents as active
3951
+ // With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
3952
+ for (const item of SelectorEngine.prev(listGroup, SELECTOR_LINK_ITEMS)) {
3953
+ item.classList.add(CLASS_NAME_ACTIVE$1);
3954
+ }
3955
+ }
3956
+ }
3957
+ _clearActiveClass(parent) {
3958
+ parent.classList.remove(CLASS_NAME_ACTIVE$1);
3959
+ const activeNodes = SelectorEngine.find(`${SELECTOR_TARGET_LINKS}.${CLASS_NAME_ACTIVE$1}`, parent);
3960
+ for (const node of activeNodes) {
3961
+ node.classList.remove(CLASS_NAME_ACTIVE$1);
3962
+ }
3963
+ }
3964
+
3965
+ // Static
3966
+ static jQueryInterface(config) {
3967
+ return this.each(function () {
3968
+ const data = ScrollSpy.getOrCreateInstance(this, config);
3969
+ if (typeof config !== 'string') {
3970
+ return;
3971
+ }
3972
+ if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {
3973
+ throw new TypeError(`No method named "${config}"`);
3974
+ }
3975
+ data[config]();
3976
+ });
3977
+ }
3978
+ }
3979
+
3980
+ /**
3981
+ * Data API implementation
3982
+ */
3983
+
3984
+ EventHandler.on(window, EVENT_LOAD_DATA_API$1, () => {
3985
+ for (const spy of SelectorEngine.find(SELECTOR_DATA_SPY)) {
3986
+ ScrollSpy.getOrCreateInstance(spy);
3987
+ }
3988
+ });
3989
+
3990
+ /**
3991
+ * jQuery
3992
+ */
3993
+
3994
+ defineJQueryPlugin(ScrollSpy);
3995
+
3996
+ /**
3997
+ * --------------------------------------------------------------------------
3998
+ * Bootstrap tab.js
3999
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
4000
+ * --------------------------------------------------------------------------
4001
+ */
4002
+
4003
+
4004
+ /**
4005
+ * Constants
4006
+ */
4007
+
4008
+ const NAME$1 = 'tab';
4009
+ const DATA_KEY$1 = 'bs.tab';
4010
+ const EVENT_KEY$1 = `.${DATA_KEY$1}`;
4011
+ const EVENT_HIDE$1 = `hide${EVENT_KEY$1}`;
4012
+ const EVENT_HIDDEN$1 = `hidden${EVENT_KEY$1}`;
4013
+ const EVENT_SHOW$1 = `show${EVENT_KEY$1}`;
4014
+ const EVENT_SHOWN$1 = `shown${EVENT_KEY$1}`;
4015
+ const EVENT_CLICK_DATA_API = `click${EVENT_KEY$1}`;
4016
+ const EVENT_KEYDOWN = `keydown${EVENT_KEY$1}`;
4017
+ const EVENT_LOAD_DATA_API = `load${EVENT_KEY$1}`;
4018
+ const ARROW_LEFT_KEY = 'ArrowLeft';
4019
+ const ARROW_RIGHT_KEY = 'ArrowRight';
4020
+ const ARROW_UP_KEY = 'ArrowUp';
4021
+ const ARROW_DOWN_KEY = 'ArrowDown';
4022
+ const HOME_KEY = 'Home';
4023
+ const END_KEY = 'End';
4024
+ const CLASS_NAME_ACTIVE = 'active';
4025
+ const CLASS_NAME_FADE$1 = 'fade';
4026
+ const CLASS_NAME_SHOW$1 = 'show';
4027
+ const CLASS_DROPDOWN = 'dropdown';
4028
+ const SELECTOR_DROPDOWN_TOGGLE = '.dropdown-toggle';
4029
+ const SELECTOR_DROPDOWN_MENU = '.dropdown-menu';
4030
+ const NOT_SELECTOR_DROPDOWN_TOGGLE = `:not(${SELECTOR_DROPDOWN_TOGGLE})`;
4031
+ const SELECTOR_TAB_PANEL = '.list-group, .nav, [role="tablist"]';
4032
+ const SELECTOR_OUTER = '.nav-item, .list-group-item';
4033
+ const SELECTOR_INNER = `.nav-link${NOT_SELECTOR_DROPDOWN_TOGGLE}, .list-group-item${NOT_SELECTOR_DROPDOWN_TOGGLE}, [role="tab"]${NOT_SELECTOR_DROPDOWN_TOGGLE}`;
4034
+ const SELECTOR_DATA_TOGGLE = '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]'; // TODO: could only be `tab` in v6
4035
+ const SELECTOR_INNER_ELEM = `${SELECTOR_INNER}, ${SELECTOR_DATA_TOGGLE}`;
4036
+ const SELECTOR_DATA_TOGGLE_ACTIVE = `.${CLASS_NAME_ACTIVE}[data-bs-toggle="tab"], .${CLASS_NAME_ACTIVE}[data-bs-toggle="pill"], .${CLASS_NAME_ACTIVE}[data-bs-toggle="list"]`;
4037
+
4038
+ /**
4039
+ * Class definition
4040
+ */
4041
+
4042
+ class Tab extends BaseComponent {
4043
+ constructor(element) {
4044
+ super(element);
4045
+ this._parent = this._element.closest(SELECTOR_TAB_PANEL);
4046
+ if (!this._parent) {
4047
+ return;
4048
+ // TODO: should throw exception in v6
4049
+ // throw new TypeError(`${element.outerHTML} has not a valid parent ${SELECTOR_INNER_ELEM}`)
4050
+ }
4051
+
4052
+ // Set up initial aria attributes
4053
+ this._setInitialAttributes(this._parent, this._getChildren());
4054
+ EventHandler.on(this._element, EVENT_KEYDOWN, event => this._keydown(event));
4055
+ }
4056
+
4057
+ // Getters
4058
+ static get NAME() {
4059
+ return NAME$1;
4060
+ }
4061
+
4062
+ // Public
4063
+ show() {
4064
+ // Shows this elem and deactivate the active sibling if exists
4065
+ const innerElem = this._element;
4066
+ if (this._elemIsActive(innerElem)) {
4067
+ return;
4068
+ }
4069
+
4070
+ // Search for active tab on same parent to deactivate it
4071
+ const active = this._getActiveElem();
4072
+ const hideEvent = active ? EventHandler.trigger(active, EVENT_HIDE$1, {
4073
+ relatedTarget: innerElem
4074
+ }) : null;
4075
+ const showEvent = EventHandler.trigger(innerElem, EVENT_SHOW$1, {
4076
+ relatedTarget: active
4077
+ });
4078
+ if (showEvent.defaultPrevented || hideEvent && hideEvent.defaultPrevented) {
4079
+ return;
4080
+ }
4081
+ this._deactivate(active, innerElem);
4082
+ this._activate(innerElem, active);
4083
+ }
4084
+
4085
+ // Private
4086
+ _activate(element, relatedElem) {
4087
+ if (!element) {
4088
+ return;
4089
+ }
4090
+ element.classList.add(CLASS_NAME_ACTIVE);
4091
+ this._activate(SelectorEngine.getElementFromSelector(element)); // Search and activate/show the proper section
4092
+
4093
+ const complete = () => {
4094
+ if (element.getAttribute('role') !== 'tab') {
4095
+ element.classList.add(CLASS_NAME_SHOW$1);
4096
+ return;
4097
+ }
4098
+ element.removeAttribute('tabindex');
4099
+ element.setAttribute('aria-selected', true);
4100
+ this._toggleDropDown(element, true);
4101
+ EventHandler.trigger(element, EVENT_SHOWN$1, {
4102
+ relatedTarget: relatedElem
4103
+ });
4104
+ };
4105
+ this._queueCallback(complete, element, element.classList.contains(CLASS_NAME_FADE$1));
4106
+ }
4107
+ _deactivate(element, relatedElem) {
4108
+ if (!element) {
4109
+ return;
4110
+ }
4111
+ element.classList.remove(CLASS_NAME_ACTIVE);
4112
+ element.blur();
4113
+ this._deactivate(SelectorEngine.getElementFromSelector(element)); // Search and deactivate the shown section too
4114
+
4115
+ const complete = () => {
4116
+ if (element.getAttribute('role') !== 'tab') {
4117
+ element.classList.remove(CLASS_NAME_SHOW$1);
4118
+ return;
4119
+ }
4120
+ element.setAttribute('aria-selected', false);
4121
+ element.setAttribute('tabindex', '-1');
4122
+ this._toggleDropDown(element, false);
4123
+ EventHandler.trigger(element, EVENT_HIDDEN$1, {
4124
+ relatedTarget: relatedElem
4125
+ });
4126
+ };
4127
+ this._queueCallback(complete, element, element.classList.contains(CLASS_NAME_FADE$1));
4128
+ }
4129
+ _keydown(event) {
4130
+ if (![ARROW_LEFT_KEY, ARROW_RIGHT_KEY, ARROW_UP_KEY, ARROW_DOWN_KEY, HOME_KEY, END_KEY].includes(event.key)) {
4131
+ return;
4132
+ }
4133
+ event.stopPropagation(); // stopPropagation/preventDefault both added to support up/down keys without scrolling the page
4134
+ event.preventDefault();
4135
+ const children = this._getChildren().filter(element => !isDisabled(element));
4136
+ let nextActiveElement;
4137
+ if ([HOME_KEY, END_KEY].includes(event.key)) {
4138
+ nextActiveElement = children[event.key === HOME_KEY ? 0 : children.length - 1];
4139
+ } else {
4140
+ const isNext = [ARROW_RIGHT_KEY, ARROW_DOWN_KEY].includes(event.key);
4141
+ nextActiveElement = getNextActiveElement(children, event.target, isNext, true);
4142
+ }
4143
+ if (nextActiveElement) {
4144
+ nextActiveElement.focus({
4145
+ preventScroll: true
4146
+ });
4147
+ Tab.getOrCreateInstance(nextActiveElement).show();
4148
+ }
4149
+ }
4150
+ _getChildren() {
4151
+ // collection of inner elements
4152
+ return SelectorEngine.find(SELECTOR_INNER_ELEM, this._parent);
4153
+ }
4154
+ _getActiveElem() {
4155
+ return this._getChildren().find(child => this._elemIsActive(child)) || null;
4156
+ }
4157
+ _setInitialAttributes(parent, children) {
4158
+ this._setAttributeIfNotExists(parent, 'role', 'tablist');
4159
+ for (const child of children) {
4160
+ this._setInitialAttributesOnChild(child);
4161
+ }
4162
+ }
4163
+ _setInitialAttributesOnChild(child) {
4164
+ child = this._getInnerElement(child);
4165
+ const isActive = this._elemIsActive(child);
4166
+ const outerElem = this._getOuterElement(child);
4167
+ child.setAttribute('aria-selected', isActive);
4168
+ if (outerElem !== child) {
4169
+ this._setAttributeIfNotExists(outerElem, 'role', 'presentation');
4170
+ }
4171
+ if (!isActive) {
4172
+ child.setAttribute('tabindex', '-1');
4173
+ }
4174
+ this._setAttributeIfNotExists(child, 'role', 'tab');
4175
+
4176
+ // set attributes to the related panel too
4177
+ this._setInitialAttributesOnTargetPanel(child);
4178
+ }
4179
+ _setInitialAttributesOnTargetPanel(child) {
4180
+ const target = SelectorEngine.getElementFromSelector(child);
4181
+ if (!target) {
4182
+ return;
4183
+ }
4184
+ this._setAttributeIfNotExists(target, 'role', 'tabpanel');
4185
+ if (child.id) {
4186
+ this._setAttributeIfNotExists(target, 'aria-labelledby', `${child.id}`);
4187
+ }
4188
+ }
4189
+ _toggleDropDown(element, open) {
4190
+ const outerElem = this._getOuterElement(element);
4191
+ if (!outerElem.classList.contains(CLASS_DROPDOWN)) {
4192
+ return;
4193
+ }
4194
+ const toggle = (selector, className) => {
4195
+ const element = SelectorEngine.findOne(selector, outerElem);
4196
+ if (element) {
4197
+ element.classList.toggle(className, open);
4198
+ }
4199
+ };
4200
+ toggle(SELECTOR_DROPDOWN_TOGGLE, CLASS_NAME_ACTIVE);
4201
+ toggle(SELECTOR_DROPDOWN_MENU, CLASS_NAME_SHOW$1);
4202
+ outerElem.setAttribute('aria-expanded', open);
4203
+ }
4204
+ _setAttributeIfNotExists(element, attribute, value) {
4205
+ if (!element.hasAttribute(attribute)) {
4206
+ element.setAttribute(attribute, value);
4207
+ }
4208
+ }
4209
+ _elemIsActive(elem) {
4210
+ return elem.classList.contains(CLASS_NAME_ACTIVE);
4211
+ }
4212
+
4213
+ // Try to get the inner element (usually the .nav-link)
4214
+ _getInnerElement(elem) {
4215
+ return elem.matches(SELECTOR_INNER_ELEM) ? elem : SelectorEngine.findOne(SELECTOR_INNER_ELEM, elem);
4216
+ }
4217
+
4218
+ // Try to get the outer element (usually the .nav-item)
4219
+ _getOuterElement(elem) {
4220
+ return elem.closest(SELECTOR_OUTER) || elem;
4221
+ }
4222
+
4223
+ // Static
4224
+ static jQueryInterface(config) {
4225
+ return this.each(function () {
4226
+ const data = Tab.getOrCreateInstance(this);
4227
+ if (typeof config !== 'string') {
4228
+ return;
4229
+ }
4230
+ if (data[config] === undefined || config.startsWith('_') || config === 'constructor') {
4231
+ throw new TypeError(`No method named "${config}"`);
4232
+ }
4233
+ data[config]();
4234
+ });
4235
+ }
4236
+ }
4237
+
4238
+ /**
4239
+ * Data API implementation
4240
+ */
4241
+
4242
+ EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
4243
+ if (['A', 'AREA'].includes(this.tagName)) {
4244
+ event.preventDefault();
4245
+ }
4246
+ if (isDisabled(this)) {
4247
+ return;
4248
+ }
4249
+ Tab.getOrCreateInstance(this).show();
4250
+ });
4251
+
4252
+ /**
4253
+ * Initialize on focus
4254
+ */
4255
+ EventHandler.on(window, EVENT_LOAD_DATA_API, () => {
4256
+ for (const element of SelectorEngine.find(SELECTOR_DATA_TOGGLE_ACTIVE)) {
4257
+ Tab.getOrCreateInstance(element);
4258
+ }
4259
+ });
4260
+ /**
4261
+ * jQuery
4262
+ */
4263
+
4264
+ defineJQueryPlugin(Tab);
4265
+
4266
+ /**
4267
+ * --------------------------------------------------------------------------
4268
+ * Bootstrap toast.js
4269
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
4270
+ * --------------------------------------------------------------------------
4271
+ */
4272
+
4273
+
4274
+ /**
4275
+ * Constants
4276
+ */
4277
+
4278
+ const NAME = 'toast';
4279
+ const DATA_KEY = 'bs.toast';
4280
+ const EVENT_KEY = `.${DATA_KEY}`;
4281
+ const EVENT_MOUSEOVER = `mouseover${EVENT_KEY}`;
4282
+ const EVENT_MOUSEOUT = `mouseout${EVENT_KEY}`;
4283
+ const EVENT_FOCUSIN = `focusin${EVENT_KEY}`;
4284
+ const EVENT_FOCUSOUT = `focusout${EVENT_KEY}`;
4285
+ const EVENT_HIDE = `hide${EVENT_KEY}`;
4286
+ const EVENT_HIDDEN = `hidden${EVENT_KEY}`;
4287
+ const EVENT_SHOW = `show${EVENT_KEY}`;
4288
+ const EVENT_SHOWN = `shown${EVENT_KEY}`;
4289
+ const CLASS_NAME_FADE = 'fade';
4290
+ const CLASS_NAME_HIDE = 'hide'; // @deprecated - kept here only for backwards compatibility
4291
+ const CLASS_NAME_SHOW = 'show';
4292
+ const CLASS_NAME_SHOWING = 'showing';
4293
+ const DefaultType = {
4294
+ animation: 'boolean',
4295
+ autohide: 'boolean',
4296
+ delay: 'number'
4297
+ };
4298
+ const Default = {
4299
+ animation: true,
4300
+ autohide: true,
4301
+ delay: 5000
4302
+ };
4303
+
4304
+ /**
4305
+ * Class definition
4306
+ */
4307
+
4308
+ class Toast extends BaseComponent {
4309
+ constructor(element, config) {
4310
+ super(element, config);
4311
+ this._timeout = null;
4312
+ this._hasMouseInteraction = false;
4313
+ this._hasKeyboardInteraction = false;
4314
+ this._setListeners();
4315
+ }
4316
+
4317
+ // Getters
4318
+ static get Default() {
4319
+ return Default;
4320
+ }
4321
+ static get DefaultType() {
4322
+ return DefaultType;
4323
+ }
4324
+ static get NAME() {
4325
+ return NAME;
4326
+ }
4327
+
4328
+ // Public
4329
+ show() {
4330
+ const showEvent = EventHandler.trigger(this._element, EVENT_SHOW);
4331
+ if (showEvent.defaultPrevented) {
4332
+ return;
4333
+ }
4334
+ this._clearTimeout();
4335
+ if (this._config.animation) {
4336
+ this._element.classList.add(CLASS_NAME_FADE);
4337
+ }
4338
+ const complete = () => {
4339
+ this._element.classList.remove(CLASS_NAME_SHOWING);
4340
+ EventHandler.trigger(this._element, EVENT_SHOWN);
4341
+ this._maybeScheduleHide();
4342
+ };
4343
+ this._element.classList.remove(CLASS_NAME_HIDE); // @deprecated
4344
+ reflow(this._element);
4345
+ this._element.classList.add(CLASS_NAME_SHOW, CLASS_NAME_SHOWING);
4346
+ this._queueCallback(complete, this._element, this._config.animation);
4347
+ }
4348
+ hide() {
4349
+ if (!this.isShown()) {
4350
+ return;
4351
+ }
4352
+ const hideEvent = EventHandler.trigger(this._element, EVENT_HIDE);
4353
+ if (hideEvent.defaultPrevented) {
4354
+ return;
4355
+ }
4356
+ const complete = () => {
4357
+ this._element.classList.add(CLASS_NAME_HIDE); // @deprecated
4358
+ this._element.classList.remove(CLASS_NAME_SHOWING, CLASS_NAME_SHOW);
4359
+ EventHandler.trigger(this._element, EVENT_HIDDEN);
4360
+ };
4361
+ this._element.classList.add(CLASS_NAME_SHOWING);
4362
+ this._queueCallback(complete, this._element, this._config.animation);
4363
+ }
4364
+ dispose() {
4365
+ this._clearTimeout();
4366
+ if (this.isShown()) {
4367
+ this._element.classList.remove(CLASS_NAME_SHOW);
4368
+ }
4369
+ super.dispose();
4370
+ }
4371
+ isShown() {
4372
+ return this._element.classList.contains(CLASS_NAME_SHOW);
4373
+ }
4374
+
4375
+ // Private
4376
+ _maybeScheduleHide() {
4377
+ if (!this._config.autohide) {
4378
+ return;
4379
+ }
4380
+ if (this._hasMouseInteraction || this._hasKeyboardInteraction) {
4381
+ return;
4382
+ }
4383
+ this._timeout = setTimeout(() => {
4384
+ this.hide();
4385
+ }, this._config.delay);
4386
+ }
4387
+ _onInteraction(event, isInteracting) {
4388
+ switch (event.type) {
4389
+ case 'mouseover':
4390
+ case 'mouseout':
4391
+ {
4392
+ this._hasMouseInteraction = isInteracting;
4393
+ break;
4394
+ }
4395
+ case 'focusin':
4396
+ case 'focusout':
4397
+ {
4398
+ this._hasKeyboardInteraction = isInteracting;
4399
+ break;
4400
+ }
4401
+ }
4402
+ if (isInteracting) {
4403
+ this._clearTimeout();
4404
+ return;
4405
+ }
4406
+ const nextElement = event.relatedTarget;
4407
+ if (this._element === nextElement || this._element.contains(nextElement)) {
4408
+ return;
4409
+ }
4410
+ this._maybeScheduleHide();
4411
+ }
4412
+ _setListeners() {
4413
+ EventHandler.on(this._element, EVENT_MOUSEOVER, event => this._onInteraction(event, true));
4414
+ EventHandler.on(this._element, EVENT_MOUSEOUT, event => this._onInteraction(event, false));
4415
+ EventHandler.on(this._element, EVENT_FOCUSIN, event => this._onInteraction(event, true));
4416
+ EventHandler.on(this._element, EVENT_FOCUSOUT, event => this._onInteraction(event, false));
4417
+ }
4418
+ _clearTimeout() {
4419
+ clearTimeout(this._timeout);
4420
+ this._timeout = null;
4421
+ }
4422
+
4423
+ // Static
4424
+ static jQueryInterface(config) {
4425
+ return this.each(function () {
4426
+ const data = Toast.getOrCreateInstance(this, config);
4427
+ if (typeof config === 'string') {
4428
+ if (typeof data[config] === 'undefined') {
4429
+ throw new TypeError(`No method named "${config}"`);
4430
+ }
4431
+ data[config](this);
4432
+ }
4433
+ });
4434
+ }
4435
+ }
4436
+
4437
+ /**
4438
+ * Data API implementation
4439
+ */
4440
+
4441
+ enableDismissTrigger(Toast);
4442
+
4443
+ /**
4444
+ * jQuery
4445
+ */
4446
+
4447
+ defineJQueryPlugin(Toast);
4448
+
4449
+ export { Alert, Button, Carousel, Collapse, Dropdown, Modal, Offcanvas, Popover, ScrollSpy, Tab, Toast, Tooltip };
4450
+ //# sourceMappingURL=bootstrap.esm.js.map