@eui/base 21.0.0-alpha.4 → 21.0.0-alpha.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/changelog.html +769 -7568
- package/docs/classes/ConsoleAppender.html +18 -0
- package/docs/classes/EuiEuLanguages.html +18 -0
- package/docs/classes/EuiLazyService.html +18 -0
- package/docs/classes/EuiPagination.html +18 -0
- package/docs/classes/EuiService.html +18 -0
- package/docs/classes/LogAppender.html +18 -0
- package/docs/classes/Logger.html +18 -0
- package/docs/classes/LoggerMock.html +18 -0
- package/docs/classes/UrlAppender.html +18 -0
- package/docs/classes/UxBadgeLegacy.html +18 -0
- package/docs/classes/UxClearErrorFeedbackEvent.html +18 -0
- package/docs/classes/UxErrorGroupOnClickEvent.html +18 -0
- package/docs/classes/UxErrorOutput.html +18 -0
- package/docs/classes/UxLinkLegacy.html +18 -0
- package/docs/classes/UxPublishErrorFeedbackEvent.html +18 -0
- package/docs/classes/UxValidationErrorClass.html +18 -0
- package/docs/dependencies.html +18 -0
- package/docs/index.html +20 -2
- package/docs/interfaces/ApiQueue.html +18 -0
- package/docs/interfaces/ApiQueueItem.html +18 -0
- package/docs/interfaces/AppState.html +18 -0
- package/docs/interfaces/ConnectionStatus.html +18 -0
- package/docs/interfaces/ConsoleAppenderConfig.html +18 -0
- package/docs/interfaces/ConsoleAppenderTypeConfig.html +18 -0
- package/docs/interfaces/CoreState.html +18 -0
- package/docs/interfaces/EnvDynamicConfig.html +18 -0
- package/docs/interfaces/EuiAppHandlersConfig.html +18 -0
- package/docs/interfaces/EuiAppJsonConfig.html +18 -0
- package/docs/interfaces/EuiAuthConfig.html +18 -0
- package/docs/interfaces/EuiConfig.html +18 -0
- package/docs/interfaces/EuiEnvConfig.html +18 -0
- package/docs/interfaces/EuiGlobalConfig.html +18 -0
- package/docs/interfaces/EuiGrowlMessage.html +18 -0
- package/docs/interfaces/EuiLanguage.html +18 -0
- package/docs/interfaces/EuiMenuItem.html +153 -0
- package/docs/interfaces/EuiPaginationConfig.html +18 -0
- package/docs/interfaces/EuiServiceModel.html +18 -0
- package/docs/interfaces/EuiServiceStatus.html +18 -0
- package/docs/interfaces/EuiStoreServiceModel.html +18 -0
- package/docs/interfaces/EuiUserRight.html +18 -0
- package/docs/interfaces/GlobalConfig.html +18 -0
- package/docs/interfaces/HttpErrorHandlerConfig.html +18 -0
- package/docs/interfaces/HttpErrorRouteConfig.html +18 -0
- package/docs/interfaces/I18nConfig.html +18 -0
- package/docs/interfaces/I18nLoaderConfig.html +24 -3
- package/docs/interfaces/I18nResource.html +18 -0
- package/docs/interfaces/I18nServiceConfig.html +18 -0
- package/docs/interfaces/I18nState.html +18 -0
- package/docs/interfaces/LoadedConfigModules.html +18 -0
- package/docs/interfaces/LocaleServiceConfig.html +18 -0
- package/docs/interfaces/LocaleState.html +18 -0
- package/docs/interfaces/LogAppenderConfig.html +18 -0
- package/docs/interfaces/LogAppenderTypeConfig.html +18 -0
- package/docs/interfaces/LogConfig.html +18 -0
- package/docs/interfaces/LogEvent.html +18 -0
- package/docs/interfaces/LogPosition.html +18 -0
- package/docs/interfaces/ModuleConfig.html +18 -0
- package/docs/interfaces/ModulesConfig.html +18 -0
- package/docs/interfaces/NotificationsState.html +18 -0
- package/docs/interfaces/UrlAppenderConfig.html +18 -0
- package/docs/interfaces/UrlAppenderTypeConfig.html +18 -0
- package/docs/interfaces/UrlLogEvent.html +18 -0
- package/docs/interfaces/UserConfig.html +18 -0
- package/docs/interfaces/UserDetails.html +18 -0
- package/docs/interfaces/UserPreferences.html +18 -0
- package/docs/interfaces/UserState.html +18 -0
- package/docs/interfaces/UxErrorFeedback.html +18 -0
- package/docs/interfaces/UxErrorFollowMap.html +18 -0
- package/docs/interfaces/UxErrorInfo.html +18 -0
- package/docs/interfaces/UxErrorMessage.html +18 -0
- package/docs/interfaces/UxFormValidationError.html +18 -0
- package/docs/interfaces/UxHttpErrorInfo.html +18 -0
- package/docs/interfaces/UxHttpErrorResponse.html +18 -0
- package/docs/interfaces/UxModalLegacy.html +18 -0
- package/docs/interfaces/UxValidationErrorAttribute.html +18 -0
- package/docs/interfaces/UxValidationErrorFeedback.html +18 -0
- package/docs/interfaces/UxValidationErrorI18nMessage.html +18 -0
- package/docs/interfaces/VersionsConfig.html +18 -0
- package/docs/interfaces/XHRConfig.html +18 -0
- package/docs/js/libs/bootstrap-native.js +1 -1
- package/docs/js/libs/jszip.min.js +13 -0
- package/docs/js/libs/svg-pan-zoom.min.js +3 -3
- package/docs/js/libs/tablesort.min.js +3 -3
- package/docs/js/libs/tablesort.number.min.js +3 -3
- package/docs/js/menu-wc.js +16 -20
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/routes/routes_index.js +1 -0
- package/docs/js/routes.js +15 -8
- package/docs/js/search/search_index.js +2 -2
- package/docs/license.html +20 -2
- package/docs/miscellaneous/enumerations.html +18 -0
- package/docs/miscellaneous/functions.html +18 -0
- package/docs/miscellaneous/typealiases.html +18 -0
- package/docs/miscellaneous/variables.html +44 -0
- package/docs/modules.html +18 -0
- package/docs/overview.html +28 -0
- package/docs/properties.html +19 -1
- package/docs/routes.html +204 -0
- package/docs/template-playground/default-templates.json +192 -0
- package/docs/template-playground/hbs-render.service.ts +212 -0
- package/docs/template-playground/main.ts +9 -0
- package/docs/template-playground/template-editor.service.ts +173 -0
- package/docs/template-playground/template-playground.component.ts +614 -0
- package/docs/template-playground/template-playground.module.ts +29 -0
- package/docs/template-playground/zip-export.service.ts +86 -0
- package/docs/template-playground-app/app.js +1389 -0
- package/docs/template-playground-app/index.html +462 -0
- package/package.json +35 -36
- package/{index.d.ts → types/eui-base.d.ts} +4 -1
- package/types/eui-base.d.ts.map +1 -0
- package/index.d.ts.map +0 -1
|
@@ -62,6 +62,20 @@
|
|
|
62
62
|
}
|
|
63
63
|
toggleDarkMode(darkModeState);
|
|
64
64
|
</script>
|
|
65
|
+
<script>
|
|
66
|
+
// --- Iframe navigation tracking for Template Playground ---
|
|
67
|
+
function sendCurrentUrlToParent() {
|
|
68
|
+
if (window.parent && window.parent !== window) {
|
|
69
|
+
window.parent.postMessage({
|
|
70
|
+
type: 'compodoc-iframe-navigate',
|
|
71
|
+
url: window.location.pathname + window.location.hash
|
|
72
|
+
}, '*');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
window.addEventListener('hashchange', sendCurrentUrlToParent, false);
|
|
76
|
+
window.addEventListener('popstate', sendCurrentUrlToParent, false);
|
|
77
|
+
window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
|
|
78
|
+
</script>
|
|
65
79
|
|
|
66
80
|
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
67
81
|
<div class="d-flex">
|
|
@@ -95,6 +109,10 @@
|
|
|
95
109
|
|
|
96
110
|
|
|
97
111
|
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
98
116
|
<ol class="breadcrumb">
|
|
99
117
|
<li class="breadcrumb-item">Interfaces</li>
|
|
100
118
|
<li class="breadcrumb-item"
|
|
@@ -62,6 +62,20 @@
|
|
|
62
62
|
}
|
|
63
63
|
toggleDarkMode(darkModeState);
|
|
64
64
|
</script>
|
|
65
|
+
<script>
|
|
66
|
+
// --- Iframe navigation tracking for Template Playground ---
|
|
67
|
+
function sendCurrentUrlToParent() {
|
|
68
|
+
if (window.parent && window.parent !== window) {
|
|
69
|
+
window.parent.postMessage({
|
|
70
|
+
type: 'compodoc-iframe-navigate',
|
|
71
|
+
url: window.location.pathname + window.location.hash
|
|
72
|
+
}, '*');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
window.addEventListener('hashchange', sendCurrentUrlToParent, false);
|
|
76
|
+
window.addEventListener('popstate', sendCurrentUrlToParent, false);
|
|
77
|
+
window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
|
|
78
|
+
</script>
|
|
65
79
|
|
|
66
80
|
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
67
81
|
<div class="d-flex">
|
|
@@ -95,6 +109,10 @@
|
|
|
95
109
|
|
|
96
110
|
|
|
97
111
|
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
98
116
|
<ol class="breadcrumb">
|
|
99
117
|
<li class="breadcrumb-item">Interfaces</li>
|
|
100
118
|
<li class="breadcrumb-item"
|
|
@@ -62,6 +62,20 @@
|
|
|
62
62
|
}
|
|
63
63
|
toggleDarkMode(darkModeState);
|
|
64
64
|
</script>
|
|
65
|
+
<script>
|
|
66
|
+
// --- Iframe navigation tracking for Template Playground ---
|
|
67
|
+
function sendCurrentUrlToParent() {
|
|
68
|
+
if (window.parent && window.parent !== window) {
|
|
69
|
+
window.parent.postMessage({
|
|
70
|
+
type: 'compodoc-iframe-navigate',
|
|
71
|
+
url: window.location.pathname + window.location.hash
|
|
72
|
+
}, '*');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
window.addEventListener('hashchange', sendCurrentUrlToParent, false);
|
|
76
|
+
window.addEventListener('popstate', sendCurrentUrlToParent, false);
|
|
77
|
+
window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
|
|
78
|
+
</script>
|
|
65
79
|
|
|
66
80
|
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
67
81
|
<div class="d-flex">
|
|
@@ -95,6 +109,10 @@
|
|
|
95
109
|
|
|
96
110
|
|
|
97
111
|
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
98
116
|
<ol class="breadcrumb">
|
|
99
117
|
<li class="breadcrumb-item">Interfaces</li>
|
|
100
118
|
<li class="breadcrumb-item"
|
|
@@ -62,6 +62,20 @@
|
|
|
62
62
|
}
|
|
63
63
|
toggleDarkMode(darkModeState);
|
|
64
64
|
</script>
|
|
65
|
+
<script>
|
|
66
|
+
// --- Iframe navigation tracking for Template Playground ---
|
|
67
|
+
function sendCurrentUrlToParent() {
|
|
68
|
+
if (window.parent && window.parent !== window) {
|
|
69
|
+
window.parent.postMessage({
|
|
70
|
+
type: 'compodoc-iframe-navigate',
|
|
71
|
+
url: window.location.pathname + window.location.hash
|
|
72
|
+
}, '*');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
window.addEventListener('hashchange', sendCurrentUrlToParent, false);
|
|
76
|
+
window.addEventListener('popstate', sendCurrentUrlToParent, false);
|
|
77
|
+
window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
|
|
78
|
+
</script>
|
|
65
79
|
|
|
66
80
|
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
67
81
|
<div class="d-flex">
|
|
@@ -95,6 +109,10 @@
|
|
|
95
109
|
|
|
96
110
|
|
|
97
111
|
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
98
116
|
<ol class="breadcrumb">
|
|
99
117
|
<li class="breadcrumb-item">Interfaces</li>
|
|
100
118
|
<li class="breadcrumb-item"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var BSN=function(H){"use strict";var Vc=Object.defineProperty;var Kc=(H,it,ct)=>it in H?Vc(H,it,{enumerable:!0,configurable:!0,writable:!0,value:ct}):H[it]=ct;var d=(H,it,ct)=>(Kc(H,typeof it!="symbol"?it+"":it,ct),ct);const it="aria-describedby",ct="aria-expanded",Se="aria-hidden",He="aria-modal",_s="aria-pressed",Ue="aria-selected",Bo="DOMContentLoaded",qe="focus",Qe="focusin",Bs="focusout",Pe="keydown",Ro="keyup",N="click",Rs="mousedown",Wo="hover",De="mouseenter",Ze="mouseleave",Fo="pointerdown",jo="pointermove",zo="pointerup",xe="resize",Ae="scroll",Ge="touchstart",Vo="dragstart",Je="ArrowDown",ts="ArrowUp",Ws="ArrowLeft",Fs="ArrowRight",es="Escape",Ko="transitionDuration",Xo="transitionDelay",ss="transitionend",js="transitionProperty",Yo=navigator.userAgentData,Le=Yo,{userAgent:Uo}=navigator,Ie=Uo,zs=/iPhone|iPad|iPod|Android/i;Le?Le.brands.some(t=>zs.test(t.brand)):zs.test(Ie);const Vs=/(iPhone|iPod|iPad)/,qo=Le?Le.brands.some(t=>Vs.test(t.brand)):Vs.test(Ie);Ie&&Ie.includes("Firefox");const{head:ke}=document;["webkitPerspective","perspective"].some(t=>t in ke.style);const Qo=(t,s,e,n)=>{const o=n||!1;t.addEventListener(s,e,o)},Zo=(t,s,e,n)=>{const o=n||!1;t.removeEventListener(s,e,o)},Go=(t,s,e,n)=>{const o=i=>{(i.target===t||i.currentTarget===t)&&(e.apply(t,[i]),Zo(t,s,o,n))};Qo(t,s,o,n)},le=()=>{};(()=>{let t=!1;try{const s=Object.defineProperty({},"passive",{get:()=>(t=!0,t)});Go(document,Bo,le,s)}catch{}return t})(),["webkitTransform","transform"].some(t=>t in ke.style),["webkitAnimation","animation"].some(t=>t in ke.style),["webkitTransition","transition"].some(t=>t in ke.style);const at=(t,s)=>t.getAttribute(s),Ne=(t,s)=>t.hasAttribute(s),O=(t,s,e)=>t.setAttribute(s,e),At=(t,s)=>t.removeAttribute(s),f=(t,...s)=>{t.classList.add(...s)},b=(t,...s)=>{t.classList.remove(...s)},h=(t,s)=>t.classList.contains(s),de=t=>t!=null&&typeof t=="object"||!1,A=t=>de(t)&&typeof t.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(s=>t.nodeType===s)||!1,T=t=>A(t)&&t.nodeType===1||!1,jt=new Map,Lt={data:jt,set:(t,s,e)=>{T(t)&&(jt.has(s)||jt.set(s,new Map),jt.get(s).set(t,e))},getAllFor:t=>jt.get(t)||null,get:(t,s)=>{if(!T(t)||!s)return null;const e=Lt.getAllFor(s);return t&&e&&e.get(t)||null},remove:(t,s)=>{const e=Lt.getAllFor(s);!e||!T(t)||(e.delete(t),e.size===0&&jt.delete(s))}},F=(t,s)=>Lt.get(t,s),he=t=>typeof t=="string"||!1,ns=t=>de(t)&&t.constructor.name==="Window"||!1,Ks=t=>A(t)&&t.nodeType===9||!1,E=t=>ns(t)?t.document:Ks(t)?t:A(t)?t.ownerDocument:window.document,dt=(t,...s)=>Object.assign(t,...s),vt=t=>{if(!t)return;if(he(t))return E().createElement(t);const{tagName:s}=t,e=vt(s);if(!e)return;const n={...t};return delete n.tagName,dt(e,n)},w=(t,s)=>t.dispatchEvent(s),z=(t,s)=>{const e=getComputedStyle(t),n=s.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return e.getPropertyValue(n)},Jo=t=>{const s=z(t,js),e=z(t,Xo),n=e.includes("ms")?1:1e3,o=s&&s!=="none"?parseFloat(e)*n:0;return Number.isNaN(o)?0:o},zt=t=>{const s=z(t,js),e=z(t,Ko),n=e.includes("ms")?1:1e3,o=s&&s!=="none"?parseFloat(e)*n:0;return Number.isNaN(o)?0:o},P=(t,s)=>{let e=0;const n=new Event(ss),o=zt(t),i=Jo(t);if(o){const c=a=>{a.target===t&&(s.apply(t,[a]),t.removeEventListener(ss,c),e=1)};t.addEventListener(ss,c),setTimeout(()=>{e||w(t,n)},o+i+17)}else s.apply(t,[n])},ht=(t,s)=>t.focus(s),Xs=t=>["true",!0].includes(t)?!0:["false",!1].includes(t)?!1:["null","",null,void 0].includes(t)?null:t!==""&&!Number.isNaN(+t)?+t:t,Oe=t=>Object.entries(t),Vt=t=>t.toLowerCase(),ti=(t,s,e,n)=>{const o={...e},i={...t.dataset},c={...s},a={},l="title";return Oe(i).forEach(([r,g])=>{const p=n&&typeof r=="string"&&r.includes(n)?r.replace(n,"").replace(/[A-Z]/g,v=>Vt(v)):r;a[p]=Xs(g)}),Oe(o).forEach(([r,g])=>{o[r]=Xs(g)}),Oe(s).forEach(([r,g])=>{r in o?c[r]=o[r]:r in a?c[r]=a[r]:c[r]=r===l?at(t,l):g}),c},Ys=t=>Object.keys(t),$=(t,s)=>{const e=new CustomEvent(t,{cancelable:!0,bubbles:!0});return de(s)&&dt(e,s),e},tt={passive:!0},It=t=>t.offsetHeight,L=(t,s)=>{Oe(s).forEach(([e,n])=>{if(n&&he(e)&&e.includes("--"))t.style.setProperty(e,n);else{const o={};o[e]=n,dt(t.style,o)}})},os=t=>de(t)&&t.constructor.name==="Map"||!1,ei=t=>typeof t=="number"||!1,bt=new Map,u={set:(t,s,e,n)=>{T(t)&&(n&&n.length?(bt.has(t)||bt.set(t,new Map),bt.get(t).set(n,setTimeout(s,e))):bt.set(t,setTimeout(s,e)))},get:(t,s)=>{if(!T(t))return null;const e=bt.get(t);return s&&e&&os(e)?e.get(s)||null:ei(e)?e:null},clear:(t,s)=>{if(!T(t))return;const e=bt.get(t);s&&s.length&&os(e)?(clearTimeout(e.get(s)),e.delete(s),e.size===0&&bt.delete(t)):(clearTimeout(e),bt.delete(t))}},fe=(t,s)=>{const{width:e,height:n,top:o,right:i,bottom:c,left:a}=t.getBoundingClientRect();let l=1,r=1;if(s&&T(t)){const{offsetWidth:g,offsetHeight:p}=t;l=g>0?Math.round(e)/g:1,r=p>0?Math.round(n)/p:1}return{width:e/l,height:n/r,top:o/r,right:i/l,bottom:c/r,left:a/l,x:a/l,y:o/r}},wt=t=>E(t).body,ft=t=>E(t).documentElement,Us=t=>A(t)&&t.constructor.name==="ShadowRoot"||!1,si=t=>t.nodeName==="HTML"?t:T(t)&&t.assignedSlot||A(t)&&t.parentNode||Us(t)&&t.host||ft(t);let qs=0,Qs=0;const Kt=new Map,Zs=(t,s)=>{let e=s?qs:Qs;if(s){const n=Zs(t),o=Kt.get(n)||new Map;Kt.has(n)||Kt.set(n,o),os(o)&&!o.has(s)?(o.set(s,e),qs+=1):e=o.get(s)}else{const n=t.id||t;Kt.has(n)?e=Kt.get(n):(Kt.set(n,e),Qs+=1)}return e},Xt=t=>{var s;return t?Ks(t)?t.defaultView:A(t)?(s=t==null?void 0:t.ownerDocument)==null?void 0:s.defaultView:t:window},ni=t=>Array.isArray(t)||!1,Gs=t=>{if(!A(t))return!1;const{top:s,bottom:e}=fe(t),{clientHeight:n}=ft(t);return s<=n&&e>=0},oi=t=>typeof t=="function"||!1,ii=t=>de(t)&&t.constructor.name==="NodeList"||!1,Et=t=>ft(t).dir==="rtl",ci=t=>A(t)&&["TABLE","TD","TH"].includes(t.nodeName)||!1,M=(t,s)=>t?t.closest(s)||M(t.getRootNode().host,s):null,D=(t,s)=>T(t)?t:(A(s)?s:E()).querySelector(t),is=(t,s)=>(A(s)?s:E()).getElementsByTagName(t),et=(t,s)=>(A(s)?s:E()).querySelectorAll(t),gt=(t,s)=>(s&&A(s)?s:E()).getElementsByClassName(t),Js=(t,s)=>t.matches(s),Yt={},tn=t=>{const{type:s,currentTarget:e}=t;[...Yt[s]].forEach(([n,o])=>{e===n&&[...o].forEach(([i,c])=>{i.apply(n,[t]),typeof c=="object"&&c.once&&B(n,s,i,c)})})},_=(t,s,e,n)=>{Yt[s]||(Yt[s]=new Map);const o=Yt[s];o.has(t)||o.set(t,new Map);const i=o.get(t),{size:c}=i;i.set(e,n),c||t.addEventListener(s,tn,n)},B=(t,s,e,n)=>{const o=Yt[s],i=o&&o.get(t),c=i&&i.get(e),a=c!==void 0?c:n;i&&i.has(e)&&i.delete(e),o&&(!i||!i.size)&&o.delete(t),(!o||!o.size)&&delete Yt[s],(!i||!i.size)&&t.removeEventListener(s,tn,a)},W="fade",m="show",Me="data-bs-dismiss",_e="alert",en="Alert",ai="5.0.13";class st{constructor(s,e){d(this,"_toggleEventListeners",()=>{});const n=D(s);if(!n)throw he(s)?Error(`${this.name} Error: "${s}" is not a valid selector.`):Error(`${this.name} Error: your target is not an instance of HTMLElement.`);const o=Lt.get(n,this.name);o&&o._toggleEventListeners(),this.element=n,this.options=this.defaults&&Ys(this.defaults).length?ti(n,this.defaults,e||{},"bs"):{},Lt.set(n,this.name,this)}get version(){return ai}get name(){return"BaseComponent"}get defaults(){return{}}dispose(){Lt.remove(this.element,this.name),Ys(this).forEach(s=>{delete this[s]})}}const ri=`.${_e}`,li=`[${Me}="${_e}"]`,di=t=>F(t,en),hi=t=>new Ut(t),sn=$(`close.bs.${_e}`),fi=$(`closed.bs.${_e}`),nn=t=>{const{element:s}=t;w(s,fi),t._toggleEventListeners(),t.dispose(),s.remove()};class Ut extends st{constructor(e){super(e);d(this,"dismiss");d(this,"close",()=>{const{element:e}=this;e&&h(e,m)&&(w(e,sn),sn.defaultPrevented||(b(e,m),h(e,W)?P(e,()=>nn(this)):nn(this)))});d(this,"_toggleEventListeners",e=>{const n=e?_:B,{dismiss:o,close:i}=this;o&&n(o,N,i)});this.dismiss=D(li,this.element),this._toggleEventListeners(!0)}get name(){return en}dispose(){this._toggleEventListeners(),super.dispose()}}d(Ut,"selector",ri),d(Ut,"init",hi),d(Ut,"getInstance",di);const C="active",rt="data-bs-toggle",gi="button",on="Button",pi=`[${rt}="${gi}"]`,ui=t=>F(t,on),mi=t=>new qt(t);class qt extends st{constructor(e){super(e);d(this,"isActive",!1);d(this,"toggle",e=>{e&&e.preventDefault();const{element:n,isActive:o}=this;!h(n,"disabled")&&!at(n,"disabled")&&((o?b:f)(n,C),O(n,_s,o?"false":"true"),this.isActive=h(n,C))});d(this,"_toggleEventListeners",e=>{(e?_:B)(this.element,N,this.toggle)});const{element:n}=this;this.isActive=h(n,C),O(n,_s,String(!!this.isActive)),this._toggleEventListeners(!0)}get name(){return on}dispose(){this._toggleEventListeners(),super.dispose()}}d(qt,"selector",pi),d(qt,"init",mi),d(qt,"getInstance",ui);const cs="data-bs-target",kt="carousel",cn="Carousel",an="data-bs-parent",vi="data-bs-container",V=t=>{const s=[cs,an,vi,"href"],e=E(t);return s.map(n=>{const o=at(t,n);return o?n===an?M(t,o):D(o,e):null}).filter(n=>n)[0]},ge=`[data-bs-ride="${kt}"]`,Q=`${kt}-item`,as="data-bs-slide-to",$t="data-bs-slide",Tt="paused",rn={pause:"hover",keyboard:!1,touch:!0,interval:5e3},pt=t=>F(t,cn),bi=t=>new Qt(t);let pe=0,Be=0,rs=0;const ls=$(`slide.bs.${kt}`),ds=$(`slid.bs.${kt}`),ln=t=>{const{index:s,direction:e,element:n,slides:o,options:i}=t;if(t.isAnimating){const c=fs(t),a=e==="left"?"next":"prev",l=e==="left"?"start":"end";f(o[s],C),b(o[s],`${Q}-${a}`),b(o[s],`${Q}-${l}`),b(o[c],C),b(o[c],`${Q}-${l}`),w(n,ds),u.clear(n,$t),t.cycle&&!E(n).hidden&&i.interval&&!t.isPaused&&t.cycle()}};function wi(){const t=pt(this);t&&!t.isPaused&&!u.get(this,Tt)&&f(this,Tt)}function Ei(){const t=pt(this);t&&t.isPaused&&!u.get(this,Tt)&&t.cycle()}function $i(t){t.preventDefault();const s=M(this,ge)||V(this),e=pt(s);if(e&&!e.isAnimating){const n=+(at(this,as)||0);this&&!h(this,C)&&!Number.isNaN(n)&&e.to(n)}}function Ti(t){t.preventDefault();const s=M(this,ge)||V(this),e=pt(s);if(e&&!e.isAnimating){const n=at(this,$t);n==="next"?e.next():n==="prev"&&e.prev()}}const yi=({code:t,target:s})=>{const e=E(s),[n]=[...et(ge,e)].filter(i=>Gs(i)),o=pt(n);if(o&&!o.isAnimating&&!/textarea|input/i.test(s.nodeName)){const i=Et(n);t===(i?Fs:Ws)?o.prev():t===(i?Ws:Fs)&&o.next()}};function dn(t){const{target:s}=t,e=pt(this);e&&e.isTouch&&(e.indicator&&!e.indicator.contains(s)||!e.controls.includes(s))&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())}function Ci(t){const{target:s}=t,e=pt(this);if(e&&!e.isAnimating&&!e.isTouch){const{controls:n,indicators:o}=e;[...n,...o].every(i=>i===s||i.contains(s))||(pe=t.pageX,this.contains(s)&&(e.isTouch=!0,hn(e,!0)))}}const Si=t=>{Be=t.pageX},Hi=t=>{var o;const{target:s}=t,e=E(s),n=[...et(ge,e)].map(i=>pt(i)).find(i=>i.isTouch);if(n){const{element:i,index:c}=n,a=Et(i);rs=t.pageX,n.isTouch=!1,hn(n),!((o=e.getSelection())!=null&&o.toString().length)&&i.contains(s)&&Math.abs(pe-rs)>120&&(Be<pe?n.to(c+(a?-1:1)):Be>pe&&n.to(c+(a?1:-1))),pe=0,Be=0,rs=0}},hs=(t,s)=>{const{indicators:e}=t;[...e].forEach(n=>b(n,C)),t.indicators[s]&&f(e[s],C)},hn=(t,s)=>{const{element:e}=t,n=s?_:B;n(E(e),jo,Si,tt),n(E(e),zo,Hi,tt)},fs=t=>{const{slides:s,element:e}=t,n=D(`.${Q}.${C}`,e);return T(n)?[...s].indexOf(n):-1};class Qt extends st{constructor(e,n){super(e,n);d(this,"_toggleEventListeners",e=>{const{element:n,options:o,slides:i,controls:c,indicators:a}=this,{touch:l,pause:r,interval:g,keyboard:p}=o,v=e?_:B;r&&g&&(v(n,De,wi),v(n,Ze,Ei)),l&&i.length>2&&(v(n,Fo,Ci,tt),v(n,Ge,dn,{passive:!1}),v(n,Vo,dn,{passive:!1})),c.length&&c.forEach(k=>{k&&v(k,N,Ti)}),a.length&&a.forEach(k=>{v(k,N,$i)}),p&&v(E(n),Pe,yi)});const{element:o}=this;this.direction=Et(o)?"right":"left",this.isTouch=!1,this.slides=gt(Q,o);const{slides:i}=this;if(i.length>=2){const c=fs(this),a=[...i].find(g=>Js(g,`.${Q}-next,.${Q}-next`));this.index=c;const l=E(o);this.controls=[...et(`[${$t}]`,o),...et(`[${$t}][${cs}="#${o.id}"]`,l)].filter((g,p,v)=>p===v.indexOf(g)),this.indicator=D(`.${kt}-indicators`,o),this.indicators=[...this.indicator?et(`[${as}]`,this.indicator):[],...et(`[${as}][${cs}="#${o.id}"]`,l)].filter((g,p,v)=>p===v.indexOf(g));const{options:r}=this;this.options.interval=r.interval===!0?rn.interval:r.interval,a?this.index=[...i].indexOf(a):c<0&&(this.index=0,f(i[0],C),this.indicators.length&&hs(this,0)),this.indicators.length&&hs(this,this.index),this._toggleEventListeners(!0),r.interval&&this.cycle()}}get name(){return cn}get defaults(){return rn}get isPaused(){return h(this.element,Tt)}get isAnimating(){return D(`.${Q}-next,.${Q}-prev`,this.element)!==null}cycle(){const{element:e,options:n,isPaused:o,index:i}=this;u.clear(e,kt),o&&(u.clear(e,Tt),b(e,Tt)),u.set(e,()=>{this.element&&!this.isPaused&&!this.isTouch&&Gs(e)&&this.to(i+1)},n.interval,kt)}pause(){const{element:e,options:n}=this;!this.isPaused&&n.interval&&(f(e,Tt),u.set(e,()=>{},1,Tt))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(e){const{element:n,slides:o,options:i}=this,c=fs(this),a=Et(n);let l=e;if(!this.isAnimating&&c!==l&&!u.get(n,$t)){c<l||c===0&&l===o.length-1?this.direction=a?"right":"left":(c>l||c===o.length-1&&l===0)&&(this.direction=a?"left":"right");const{direction:r}=this;l<0?l=o.length-1:l>=o.length&&(l=0);const g=r==="left"?"next":"prev",p=r==="left"?"start":"end",v={relatedTarget:o[l],from:c,to:l,direction:r};dt(ls,v),dt(ds,v),w(n,ls),ls.defaultPrevented||(this.index=l,hs(this,l),zt(o[l])&&h(n,"slide")?u.set(n,()=>{f(o[l],`${Q}-${g}`),It(o[l]),f(o[l],`${Q}-${p}`),f(o[c],`${Q}-${p}`),P(o[l],()=>this.slides&&this.slides.length&&ln(this))},0,$t):(f(o[l],C),b(o[c],C),u.set(n,()=>{u.clear(n,$t),n&&i.interval&&!this.isPaused&&this.cycle(),w(n,ds)},0,$t)))}}dispose(){const{isAnimating:e}=this,n={...this,isAnimating:e};this._toggleEventListeners(),super.dispose(),n.isAnimating&&P(n.slides[n.index],()=>{ln(n)})}}d(Qt,"selector",ge),d(Qt,"init",bi),d(Qt,"getInstance",pt);const Nt="collapsing",K="collapse",fn="Collapse",Pi=`.${K}`,gn=`[${rt}="${K}"]`,Di={parent:null},Re=t=>F(t,fn),xi=t=>new Zt(t),pn=$(`show.bs.${K}`),Ai=$(`shown.bs.${K}`),un=$(`hide.bs.${K}`),Li=$(`hidden.bs.${K}`),Ii=t=>{const{element:s,parent:e,triggers:n}=t;w(s,pn),pn.defaultPrevented||(u.set(s,le,17),e&&u.set(e,le,17),f(s,Nt),b(s,K),L(s,{height:`${s.scrollHeight}px`}),P(s,()=>{u.clear(s),e&&u.clear(e),n.forEach(o=>O(o,ct,"true")),b(s,Nt),f(s,K),f(s,m),L(s,{height:""}),w(s,Ai)}))},mn=t=>{const{element:s,parent:e,triggers:n}=t;w(s,un),un.defaultPrevented||(u.set(s,le,17),e&&u.set(e,le,17),L(s,{height:`${s.scrollHeight}px`}),b(s,K),b(s,m),f(s,Nt),It(s),L(s,{height:"0px"}),P(s,()=>{u.clear(s),e&&u.clear(e),n.forEach(o=>O(o,ct,"false")),b(s,Nt),f(s,K),L(s,{height:""}),w(s,Li)}))},ki=t=>{const{target:s}=t,e=s&&M(s,gn),n=e&&V(e),o=n&&Re(n);o&&o.toggle(),e&&e.tagName==="A"&&t.preventDefault()};class Zt extends st{constructor(e,n){super(e,n);d(this,"_toggleEventListeners",e=>{const n=e?_:B,{triggers:o}=this;o.length&&o.forEach(i=>n(i,N,ki))});const{element:o,options:i}=this,c=E(o);this.triggers=[...et(gn,c)].filter(a=>V(a)===o),this.parent=T(i.parent)?i.parent:he(i.parent)?V(o)||D(i.parent,c):null,this._toggleEventListeners(!0)}get name(){return fn}get defaults(){return Di}hide(){const{triggers:e,element:n}=this;u.get(n)||(mn(this),e.length&&e.forEach(o=>f(o,`${K}d`)))}show(){const{element:e,parent:n,triggers:o}=this;let i,c;n&&(i=[...et(`.${K}.${m}`,n)].find(a=>Re(a)),c=i&&Re(i)),(!n||!u.get(n))&&!u.get(e)&&(c&&i!==e&&(mn(c),c.triggers.forEach(a=>{f(a,`${K}d`)})),Ii(this),o.length&&o.forEach(a=>b(a,`${K}d`)))}toggle(){h(this.element,m)?this.hide():this.show()}dispose(){this._toggleEventListeners(),super.dispose()}}d(Zt,"selector",Pi),d(Zt,"init",xi),d(Zt,"getInstance",Re);const Ot=["dropdown","dropup","dropstart","dropend"],vn="Dropdown",bn="dropdown-menu",wn=t=>{const s=M(t,"A");return t.tagName==="A"&&Ne(t,"href")&&at(t,"href").slice(-1)==="#"||s&&Ne(s,"href")&&at(s,"href").slice(-1)==="#"},[nt,gs,ps,us]=Ot,En=`[${rt}="${nt}"]`,Gt=t=>F(t,vn),Ni=t=>new Jt(t),Oi=`${bn}-end`,$n=[nt,gs],Tn=[ps,us],yn=["A","BUTTON"],Mi={offset:5,display:"dynamic"},ms=$(`show.bs.${nt}`),Cn=$(`shown.bs.${nt}`),vs=$(`hide.bs.${nt}`),Sn=$(`hidden.bs.${nt}`),Hn=$(`updated.bs.${nt}`),Pn=t=>{const{element:s,menu:e,parentElement:n,options:o}=t,{offset:i}=o;if(z(e,"position")!=="static"){const c=Et(s),a=h(e,Oi);["margin","top","bottom","left","right"].forEach(R=>{const Pt={};Pt[R]="",L(e,Pt)});let r=Ot.find(R=>h(n,R))||nt;const g={dropdown:[i,0,0],dropup:[0,0,i],dropstart:c?[-1,0,0,i]:[-1,i,0],dropend:c?[-1,i,0]:[-1,0,0,i]},p={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:c?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:c?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:c?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:c?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:v,offsetHeight:k}=e,{clientWidth:J,clientHeight:y}=ft(s),{left:X,top:q,width:ce,height:mt}=fe(s),S=X-v-i<0,ot=X+v+ce+i>=J,lt=q+k+i>=y,j=q+k+mt+i>=y,Y=q-k-i<0,x=(!c&&a||c&&!a)&&X+ce-v<0,ae=(c&&a||!c&&!a)&&X+v>=J;if(Tn.includes(r)&&S&&ot&&(r=nt),r===ps&&(c?ot:S)&&(r=us),r===us&&(c?S:ot)&&(r=ps),r===gs&&Y&&!j&&(r=nt),r===nt&&j&&!Y&&(r=gs),Tn.includes(r)&<&&dt(p[r],{top:"auto",bottom:0}),$n.includes(r)&&(x||ae)){let R={left:"auto",right:"auto"};!x&&ae&&!c&&(R={left:"auto",right:0}),x&&!ae&&c&&(R={left:0,right:"auto"}),R&&dt(p[r],R)}const Ht=g[r];L(e,{...p[r],margin:`${Ht.map(R=>R&&`${R}px`).join(" ")}`}),$n.includes(r)&&a&&a&&L(e,p[!c&&x||c&&ae?"menuStart":"menuEnd"]),w(n,Hn)}},_i=t=>[...t.children].map(s=>{if(s&&yn.includes(s.tagName))return s;const{firstElementChild:e}=s;return e&&yn.includes(e.tagName)?e:null}).filter(s=>s),Dn=t=>{const{element:s,options:e}=t,n=t.open?_:B,o=E(s);n(o,N,xn),n(o,qe,xn),n(o,Pe,Ri),n(o,Ro,Wi),e.display==="dynamic"&&[Ae,xe].forEach(i=>{n(Xt(s),i,Fi,tt)})},We=t=>{const s=[...Ot,"btn-group","input-group"].map(e=>gt(`${e} ${m}`,E(t))).find(e=>e.length);if(s&&s.length)return[...s[0].children].find(e=>Ot.some(n=>n===at(e,rt)))},xn=t=>{const{target:s,type:e}=t;if(s&&T(s)){const n=We(s),o=n&&Gt(n);if(o){const{parentElement:i,menu:c}=o,a=i&&i.contains(s)&&(s.tagName==="form"||M(s,"form")!==null);[N,Rs].includes(e)&&wn(s)&&t.preventDefault(),!a&&e!==qe&&s!==n&&s!==c&&o.hide()}}},Bi=t=>{const{target:s}=t,e=s&&M(s,En),n=e&&Gt(e);n&&(t.stopPropagation(),n.toggle(),e&&wn(e)&&t.preventDefault())},Ri=t=>{[Je,ts].includes(t.code)&&t.preventDefault()};function Wi(t){const{code:s}=t,e=We(this),n=e&&Gt(e),{activeElement:o}=e&&E(e);if(n&&o){const{menu:i,open:c}=n,a=_i(i);if(a&&a.length&&[Je,ts].includes(s)){let l=a.indexOf(o);o===e?l=0:s===ts?l=l>1?l-1:0:s===Je&&(l=l<a.length-1?l+1:l),a[l]&&ht(a[l])}es===s&&c&&(n.toggle(),ht(e))}}function Fi(){const t=We(this),s=t&&Gt(t);s&&s.open&&Pn(s)}class Jt extends st{constructor(e,n){super(e,n);d(this,"_toggleEventListeners",e=>{(e?_:B)(this.element,N,Bi)});const{parentElement:o}=this.element,[i]=gt(bn,o);i&&(this.parentElement=o,this.menu=i,this._toggleEventListeners(!0))}get name(){return vn}get defaults(){return Mi}toggle(){this.open?this.hide():this.show()}show(){const{element:e,open:n,menu:o,parentElement:i}=this;if(!n){const c=We(e),a=c&&Gt(c);a&&a.hide(),[ms,Cn,Hn].forEach(l=>{l.relatedTarget=e}),w(i,ms),ms.defaultPrevented||(f(o,m),f(i,m),O(e,ct,"true"),Pn(this),this.open=!n,ht(e),Dn(this),w(i,Cn))}}hide(){const{element:e,open:n,menu:o,parentElement:i}=this;n&&([vs,Sn].forEach(c=>{c.relatedTarget=e}),w(i,vs),vs.defaultPrevented||(b(o,m),b(i,m),O(e,ct,"false"),this.open=!n,Dn(this),w(i,Sn)))}dispose(){this.open&&this.hide(),this._toggleEventListeners(),super.dispose()}}d(Jt,"selector",En),d(Jt,"init",Ni),d(Jt,"getInstance",Gt);const U="modal",bs="Modal",ws="Offcanvas",ji="fixed-top",zi="fixed-bottom",An="sticky-top",Ln="position-sticky",In=t=>[...gt(ji,t),...gt(zi,t),...gt(An,t),...gt(Ln,t),...gt("is-fixed",t)],Vi=t=>{const s=wt(t);L(s,{paddingRight:"",overflow:""});const e=In(s);e.length&&e.forEach(n=>{L(n,{paddingRight:"",marginRight:""})})},kn=t=>{const{clientWidth:s}=ft(t),{innerWidth:e}=Xt(t);return Math.abs(e-s)},Nn=(t,s)=>{const e=wt(t),n=parseInt(z(e,"paddingRight"),10),i=z(e,"overflow")==="hidden"&&n?0:kn(t),c=In(e);s&&(L(e,{overflow:"hidden",paddingRight:`${n+i}px`}),c.length&&c.forEach(a=>{const l=z(a,"paddingRight");if(a.style.paddingRight=`${parseInt(l,10)+i}px`,[An,Ln].some(r=>h(a,r))){const r=z(a,"marginRight");a.style.marginRight=`${parseInt(r,10)-i}px`}}))},Z="offcanvas",yt=vt({tagName:"div",className:"popup-container"}),On=(t,s)=>{const e=A(s)&&s.nodeName==="BODY",n=A(s)&&!e?s:yt,o=e?s:wt(t);A(t)&&(n===yt&&o.append(yt),n.append(t))},Mn=(t,s)=>{const e=A(s)&&s.nodeName==="BODY",n=A(s)&&!e?s:yt;A(t)&&(t.remove(),n===yt&&!yt.children.length&&yt.remove())},Es=(t,s)=>{const e=A(s)&&s.nodeName!=="BODY"?s:yt;return A(t)&&e.contains(t)},_n="backdrop",Bn=`${U}-${_n}`,Rn=`${Z}-${_n}`,Wn=`.${U}.${m}`,$s=`.${Z}.${m}`,I=vt("div"),Mt=t=>D(`${Wn},${$s}`,E(t)),Ts=t=>{const s=t?Bn:Rn;[Bn,Rn].forEach(e=>{b(I,e)}),f(I,s)},Fn=(t,s,e)=>{Ts(e),On(I,wt(t)),s&&f(I,W)},jn=()=>{h(I,m)||(f(I,m),It(I))},Fe=()=>{b(I,m)},zn=t=>{Mt(t)||(b(I,W),Mn(I,wt(t)),Vi(t))},Vn=t=>T(t)&&z(t,"visibility")!=="hidden"&&t.offsetParent!==null,Ki=`.${U}`,Kn=`[${rt}="${U}"]`,Xi=`[${Me}="${U}"]`,Xn=`${U}-static`,Yi={backdrop:!0,keyboard:!0},ue=t=>F(t,bs),Ui=t=>new te(t),je=$(`show.bs.${U}`),Yn=$(`shown.bs.${U}`),ys=$(`hide.bs.${U}`),Un=$(`hidden.bs.${U}`),qn=t=>{const{element:s}=t,e=kn(s),{clientHeight:n,scrollHeight:o}=ft(s),{clientHeight:i,scrollHeight:c}=s,a=i!==c;if(!a&&e){const l=Et(s)?"paddingLeft":"paddingRight",r={};r[l]=`${e}px`,L(s,r)}Nn(s,a||n!==o)},Qn=(t,s)=>{const e=s?_:B,{element:n,update:o}=t;e(n,N,Zi),e(Xt(n),xe,o,tt),e(E(n),Pe,Qi)},Zn=t=>{const{triggers:s,element:e,relatedTarget:n}=t;zn(e),L(e,{paddingRight:"",display:""}),Qn(t);const o=je.relatedTarget||s.find(Vn);o&&ht(o),Un.relatedTarget=n,w(e,Un)},Gn=t=>{const{element:s,relatedTarget:e}=t;ht(s),Qn(t,!0),Yn.relatedTarget=e,w(s,Yn)},Jn=t=>{const{element:s,hasFade:e}=t;L(s,{display:"block"}),qn(t),Mt(s)||L(wt(s),{overflow:"hidden"}),f(s,m),At(s,Se),O(s,He,"true"),e?P(s,()=>Gn(t)):Gn(t)},to=t=>{const{element:s,options:e,hasFade:n}=t;e.backdrop&&n&&h(I,m)&&!Mt(s)?(Fe(),P(I,()=>Zn(t))):Zn(t)},qi=t=>{const{target:s}=t,e=s&&M(s,Kn),n=e&&V(e),o=n&&ue(n);o&&(e&&e.tagName==="A"&&t.preventDefault(),o.relatedTarget=e,o.toggle())},Qi=({code:t,target:s})=>{const e=D(Wn,E(s)),n=e&&ue(e);if(n){const{options:o}=n;o.keyboard&&t===es&&h(e,m)&&(n.relatedTarget=null,n.hide())}},Zi=t=>{var n,o;const{currentTarget:s}=t,e=s?ue(s):null;if(e&&s&&!u.get(s)){const{options:i,isStatic:c,modalDialog:a}=e,{backdrop:l}=i,{target:r}=t,g=(o=(n=E(s))==null?void 0:n.getSelection())==null?void 0:o.toString().length,p=a.contains(r),v=r&&M(r,Xi);c&&!p?u.set(s,()=>{f(s,Xn),P(a,()=>Gi(e))},17):(v||!g&&!c&&!p&&l)&&(e.relatedTarget=v||null,e.hide(),t.preventDefault())}},Gi=t=>{const{element:s,modalDialog:e}=t,n=(zt(e)||0)+17;b(s,Xn),u.set(s,()=>u.clear(s),n)};class te extends st{constructor(e,n){super(e,n);d(this,"update",()=>{h(this.element,m)&&qn(this)});d(this,"_toggleEventListeners",e=>{const n=e?_:B,{triggers:o}=this;o.length&&o.forEach(i=>n(i,N,qi))});const{element:o}=this,i=D(`.${U}-dialog`,o);i&&(this.modalDialog=i,this.triggers=[...et(Kn,E(o))].filter(c=>V(c)===o),this.isStatic=this.options.backdrop==="static",this.hasFade=h(o,W),this.relatedTarget=null,this._toggleEventListeners(!0))}get name(){return bs}get defaults(){return Yi}toggle(){h(this.element,m)?this.hide():this.show()}show(){const{element:e,options:n,hasFade:o,relatedTarget:i}=this,{backdrop:c}=n;let a=0;if(!h(e,m)&&(je.relatedTarget=i||void 0,w(e,je),!je.defaultPrevented)){const l=Mt(e);if(l&&l!==e){const r=ue(l)||F(l,ws);r&&r.hide()}c?(Es(I)?Ts(!0):Fn(e,o,!0),a=zt(I),jn(),setTimeout(()=>Jn(this),a)):(Jn(this),l&&h(I,m)&&Fe())}}hide(){const{element:e,hasFade:n,relatedTarget:o}=this;h(e,m)&&(ys.relatedTarget=o||void 0,w(e,ys),ys.defaultPrevented||(b(e,m),O(e,Se,"true"),At(e,He),n?P(e,()=>to(this)):to(this)))}dispose(){const e={...this},{element:n,modalDialog:o}=e,i=()=>super.dispose();this._toggleEventListeners(),this.hide(),h(n,"fade")?P(o,i):i()}}d(te,"selector",Ki),d(te,"init",Ui),d(te,"getInstance",ue);const Ji=`.${Z}`,Cs=`[${rt}="${Z}"]`,tc=`[${Me}="${Z}"]`,ze=`${Z}-toggling`,ec={backdrop:!0,keyboard:!0,scroll:!1},me=t=>F(t,ws),sc=t=>new ee(t),Ve=$(`show.bs.${Z}`),eo=$(`shown.bs.${Z}`),Ss=$(`hide.bs.${Z}`),so=$(`hidden.bs.${Z}`),nc=t=>{const{element:s}=t,{clientHeight:e,scrollHeight:n}=ft(s);Nn(s,e!==n)},no=(t,s)=>{const e=s?_:B,n=E(t.element);e(n,Pe,ac),e(n,N,cc)},oo=t=>{const{element:s,options:e}=t;e.scroll||(nc(t),L(wt(s),{overflow:"hidden"})),f(s,ze),f(s,m),L(s,{visibility:"visible"}),P(s,()=>rc(t))},oc=t=>{const{element:s,options:e}=t,n=Mt(s);s.blur(),!n&&e.backdrop&&h(I,m)&&Fe(),P(s,()=>lc(t))},ic=t=>{const s=M(t.target,Cs),e=s&&V(s),n=e&&me(e);n&&(n.relatedTarget=s,n.toggle(),s&&s.tagName==="A"&&t.preventDefault())},cc=t=>{const{target:s}=t,e=D($s,E(s)),n=D(tc,e),o=e&&me(e);if(o){const{options:i,triggers:c}=o,{backdrop:a}=i,l=M(s,Cs),r=E(e).getSelection();(!I.contains(s)||a!=="static")&&(!(r&&r.toString().length)&&(!e.contains(s)&&a&&(!l||c.includes(s))||n&&n.contains(s))&&(o.relatedTarget=n&&n.contains(s)?n:null,o.hide()),l&&l.tagName==="A"&&t.preventDefault())}},ac=({code:t,target:s})=>{const e=D($s,E(s)),n=e&&me(e);n&&n.options.keyboard&&t===es&&(n.relatedTarget=null,n.hide())},rc=t=>{const{element:s}=t;b(s,ze),At(s,Se),O(s,He,"true"),O(s,"role","dialog"),w(s,eo),no(t,!0),ht(s)},lc=t=>{const{element:s,triggers:e}=t;O(s,Se,"true"),At(s,He),At(s,"role"),L(s,{visibility:""});const n=Ve.relatedTarget||e.find(Vn);n&&ht(n),zn(s),w(s,so),b(s,ze),Mt(s)||no(t)};class ee extends st{constructor(e,n){super(e,n);d(this,"_toggleEventListeners",e=>{const n=e?_:B;this.triggers.forEach(o=>n(o,N,ic))});const{element:o}=this;this.triggers=[...et(Cs,E(o))].filter(i=>V(i)===o),this.relatedTarget=null,this._toggleEventListeners(!0)}get name(){return ws}get defaults(){return ec}toggle(){h(this.element,m)?this.hide():this.show()}show(){const{element:e,options:n,relatedTarget:o}=this;let i=0;if(!h(e,m)&&(Ve.relatedTarget=o||void 0,eo.relatedTarget=o||void 0,w(e,Ve),!Ve.defaultPrevented)){const c=Mt(e);if(c&&c!==e){const a=me(c)||F(c,bs);a&&a.hide()}n.backdrop?(Es(I)?Ts():Fn(e,!0),i=zt(I),jn(),setTimeout(()=>oo(this),i)):(oo(this),c&&h(I,m)&&Fe())}}hide(){const{element:e,relatedTarget:n}=this;h(e,m)&&(Ss.relatedTarget=n||void 0,so.relatedTarget=n||void 0,w(e,Ss),Ss.defaultPrevented||(f(e,ze),b(e,m),oc(this)))}dispose(){const e={...this},{element:n,options:o}=e,i=o.backdrop?zt(I):0,c=()=>setTimeout(()=>super.dispose(),i+17);this._toggleEventListeners(),this.hide(),h(n,m)?P(n,c):c()}}d(ee,"selector",Ji),d(ee,"init",sc),d(ee,"getInstance",me);const _t="popover",Ke="Popover",ut="tooltip",io=t=>{const s=t===ut,e=s?`${t}-inner`:`${t}-body`,n=s?"":`<h3 class="${t}-header"></h3>`,o=`<div class="${t}-arrow"></div>`,i=`<div class="${e}"></div>`;return`<div class="${t}" role="${ut}">${n+o+i}</div>`},co={top:"top",bottom:"bottom",left:"start",right:"end"},Hs=t=>{const s=/\b(top|bottom|start|end)+/,{element:e,tooltip:n,container:o,options:i,arrow:c}=t;if(n){const a={...co},l=Et(e);L(n,{top:"",left:"",right:"",bottom:""});const r=t.name===Ke,{offsetWidth:g,offsetHeight:p}=n,{clientWidth:v,clientHeight:k,offsetWidth:J}=ft(e);let{placement:y}=i;const{clientWidth:X,offsetWidth:q}=o,mt=z(o,"position")==="fixed",S=Math.abs(mt?X-q:v-J),ot=l&&mt?S:0,lt=v-(l?0:S)-1,{width:j,height:Y,left:x,right:ae,top:Ht}=fe(e,!0),{x:R,y:Pt}={x,y:Ht};L(c,{top:"",left:"",right:"",bottom:""});let Wt=0,Ee="",Dt=0,ks="",re="",Xe="",Ns="";const Ft=c.offsetWidth||0,xt=c.offsetHeight||0,Os=Ft/2;let $e=Ht-p-xt<0,Te=Ht+p+Y+xt>=k,ye=x-g-Ft<ot,Ce=x+g+j+Ft>=lt;const Ye=["left","right"],Ms=["top","bottom"];$e=Ye.includes(y)?Ht+Y/2-p/2-xt<0:$e,Te=Ye.includes(y)?Ht+p/2+Y/2+xt>=k:Te,ye=Ms.includes(y)?x+j/2-g/2<ot:ye,Ce=Ms.includes(y)?x+g/2+j/2>=lt:Ce,y=Ye.includes(y)&&ye&&Ce?"top":y,y=y==="top"&&$e?"bottom":y,y=y==="bottom"&&Te?"top":y,y=y==="left"&&ye?"right":y,y=y==="right"&&Ce?"left":y,n.className.includes(y)||(n.className=n.className.replace(s,a[y])),Ye.includes(y)?(y==="left"?Dt=R-g-(r?Ft:0):Dt=R+j+(r?Ft:0),$e&&Te?(Wt=0,Ee=0,re=Ht+Y/2-xt/2):$e?(Wt=Pt,Ee="",re=Y/2-Ft):Te?(Wt=Pt-p+Y,Ee="",re=p-Y/2-Ft):(Wt=Pt-p/2+Y/2,re=p/2-xt/2)):Ms.includes(y)&&(y==="top"?Wt=Pt-p-(r?xt:0):Wt=Pt+Y+(r?xt:0),ye?(Dt=0,Xe=R+j/2-Os):Ce?(Dt="auto",ks=0,Ns=j/2+lt-ae-Os):(Dt=R-g/2+j/2,Xe=g/2-Os)),L(n,{top:`${Wt}px`,bottom:Ee===""?"":`${Ee}px`,left:Dt==="auto"?Dt:`${Dt}px`,right:ks!==""?`${ks}px`:""}),T(c)&&(re!==""&&(c.style.top=`${re}px`),Xe!==""?c.style.left=`${Xe}px`:Ns!==""&&(c.style.right=`${Ns}px`));const zc=$(`updated.bs.${Vt(t.name)}`);w(e,zc)}},Ps={template:io(ut),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},ao="data-original-title",Bt="Tooltip",Ct=(t,s,e)=>{if(he(s)&&s.length){let n=s.trim();oi(e)&&(n=e(n));const i=new DOMParser().parseFromString(n,"text/html");t.append(...i.body.childNodes)}else T(s)?t.append(s):(ii(s)||ni(s)&&s.every(A))&&t.append(...s)},dc=t=>{const s=t.name===Bt,{id:e,element:n,options:o}=t,{title:i,placement:c,template:a,animation:l,customClass:r,sanitizeFn:g,dismissible:p,content:v,btnClose:k}=o,J=s?ut:_t,y={...co};let X=[],q=[];Et(n)&&(y.left="end",y.right="start");const ce=`bs-${J}-${y[c]}`;let mt;if(T(a))mt=a;else{const ot=vt("div");Ct(ot,a,g),mt=ot.firstChild}t.tooltip=T(mt)?mt.cloneNode(!0):void 0;const{tooltip:S}=t;if(S){O(S,"id",e),O(S,"role",ut);const ot=s?`${ut}-inner`:`${_t}-body`,lt=s?null:D(`.${_t}-header`,S),j=D(`.${ot}`,S);t.arrow=D(`.${J}-arrow`,S);const{arrow:Y}=t;if(T(i))X=[i.cloneNode(!0)];else{const x=vt("div");Ct(x,i,g),X=[...x.childNodes]}if(T(v))q=[v.cloneNode(!0)];else{const x=vt("div");Ct(x,v,g),q=[...x.childNodes]}if(p)if(i)if(T(k))X=[...X,k.cloneNode(!0)];else{const x=vt("div");Ct(x,k,g),X=[...X,x.firstChild]}else if(lt&<.remove(),T(k))q=[...q,k.cloneNode(!0)];else{const x=vt("div");Ct(x,k,g),q=[...q,x.firstChild]}s?i&&j&&Ct(j,i,g):(i&<&&Ct(lt,X,g),v&&j&&Ct(j,q,g),t.btn=D(".btn-close",S)||void 0),f(S,"position-fixed"),f(Y,"position-absolute"),h(S,J)||f(S,J),l&&!h(S,W)&&f(S,W),r&&!h(S,r)&&f(S,r),h(S,ce)||f(S,ce)}},hc=t=>{const s=["HTML","BODY"],e=[];let{parentNode:n}=t;for(;n&&!s.includes(n.nodeName);)n=si(n),Us(n)||ci(n)||e.push(n);return e.find((o,i)=>z(o,"position")!=="relative"&&e.slice(i+1).every(c=>z(c,"position")==="static")?o:null)||E(t).body},fc=`[${rt}="${ut}"],[data-tip="${ut}"]`,ro="title";let lo=t=>F(t,Bt);const gc=t=>new St(t),pc=t=>{const{element:s,tooltip:e,container:n,offsetParent:o}=t;At(s,it),Mn(e,n===o?n:o)},ve=t=>{const{tooltip:s,container:e,offsetParent:n}=t;return s&&Es(s,e===n?e:n)},uc=(t,s)=>{const{element:e}=t;t._toggleEventListeners(),Ne(e,ao)&&t.name===Bt&&uo(t),s&&s()},ho=(t,s)=>{const e=s?_:B,{element:n}=t;e(E(n),Ge,t.handleTouch,tt),[Ae,xe].forEach(o=>{e(Xt(n),o,t.update,tt)})},fo=t=>{const{element:s}=t,e=$(`shown.bs.${Vt(t.name)}`);ho(t,!0),w(s,e),u.clear(s,"in")},go=t=>{const{element:s}=t,e=$(`hidden.bs.${Vt(t.name)}`);ho(t),pc(t),w(s,e),u.clear(s,"out")},po=(t,s)=>{const e=s?_:B,{element:n,container:o,offsetParent:i}=t,{offsetHeight:c,scrollHeight:a}=o,l=M(n,`.${U}`),r=M(n,`.${Z}`),g=Xt(n),v=o===i&&c!==a?o:g;e(v,xe,t.update,tt),e(v,Ae,t.update,tt),l&&e(l,`hide.bs.${U}`,t.handleHide),r&&e(r,`hide.bs.${Z}`,t.handleHide)},uo=(t,s)=>{const e=[ao,ro],{element:n}=t;O(n,e[s?0:1],s||at(n,e[0])||""),At(n,e[s?1:0])};class St extends st{constructor(e,n){super(e,n);d(this,"handleFocus",()=>ht(this.element));d(this,"handleShow",()=>this.show());d(this,"handleHide",()=>this.hide());d(this,"update",()=>{Hs(this)});d(this,"toggle",()=>{const{tooltip:e}=this;e&&!ve(this)?this.show():this.hide()});d(this,"handleTouch",({target:e})=>{const{tooltip:n,element:o}=this;n&&n.contains(e)||e===o||e&&o.contains(e)||this.hide()});d(this,"_toggleEventListeners",e=>{const n=e?_:B,{element:o,options:i,btn:c}=this,{trigger:a}=i,r=!!(this.name!==Bt&&i.dismissible);a.includes("manual")||(this.enabled=!!e,a.split(" ").forEach(p=>{p===Wo?(n(o,Rs,this.handleShow),n(o,De,this.handleShow),r||(n(o,Ze,this.handleHide),n(E(o),Ge,this.handleTouch,tt))):p===N?n(o,p,r?this.handleShow:this.toggle):p===qe&&(n(o,Qe,this.handleShow),r||n(o,Bs,this.handleHide),qo&&n(o,N,this.handleFocus)),r&&c&&n(c,N,this.handleHide)}))});const{element:o}=this,i=this.name===Bt,c=i?ut:_t,a=i?Bt:Ke;lo=r=>F(r,a),this.enabled=!0,this.id=`${c}-${Zs(o,c)}`;const{options:l}=this;!l.title&&i||!i&&!l.content||(dt(Ps,{titleAttr:""}),Ne(o,ro)&&i&&typeof l.title=="string"&&uo(this,l.title),this.container=hc(o),this.offsetParent=["sticky","fixed"].some(r=>z(this.container,"position")===r)?this.container:E(this.element).body,dc(this),this._toggleEventListeners(!0))}get name(){return Bt}get defaults(){return Ps}show(){const{options:e,tooltip:n,element:o,container:i,offsetParent:c,id:a}=this,{animation:l}=e,r=u.get(o,"out"),g=i===c?i:c;u.clear(o,"out"),n&&!r&&!ve(this)&&u.set(o,()=>{const p=$(`show.bs.${Vt(this.name)}`);w(o,p),p.defaultPrevented||(On(n,g),O(o,it,`#${a}`),this.update(),po(this,!0),h(n,m)||f(n,m),l?P(n,()=>fo(this)):fo(this))},17,"in")}hide(){const{options:e,tooltip:n,element:o}=this,{animation:i,delay:c}=e;u.clear(o,"in"),n&&ve(this)&&u.set(o,()=>{const a=$(`hide.bs.${Vt(this.name)}`);w(o,a),a.defaultPrevented||(this.update(),b(n,m),po(this),i?P(n,()=>go(this)):go(this))},c+17,"out")}enable(){const{enabled:e}=this;e||(this._toggleEventListeners(!0),this.enabled=!e)}disable(){const{tooltip:e,options:n,enabled:o}=this,{animation:i}=n;o&&(e&&ve(this)&&i?(this.hide(),P(e,()=>this._toggleEventListeners())):this._toggleEventListeners(),this.enabled=!o)}toggleEnabled(){this.enabled?this.disable():this.enable()}dispose(){const{tooltip:e,options:n}=this,o={...this,name:this.name},i=()=>setTimeout(()=>uc(o,()=>super.dispose()),17);n.animation&&ve(o)?(this.options.delay=0,this.hide(),P(e,i)):i()}}d(St,"selector",fc),d(St,"init",gc),d(St,"getInstance",lo),d(St,"styleTip",Hs);const mc=`[${rt}="${_t}"],[data-tip="${_t}"]`,vc=dt({},Ps,{template:io(_t),content:"",dismissible:!1,btnClose:'<button class="btn-close" aria-label="Close"></button>'}),bc=t=>F(t,Ke),wc=t=>new Rt(t);class Rt extends St{constructor(e,n){super(e,n);d(this,"show",()=>{super.show();const{options:e,btn:n}=this;e.dismissible&&n&&setTimeout(()=>ht(n),17)})}get name(){return Ke}get defaults(){return vc}}d(Rt,"selector",mc),d(Rt,"init",wc),d(Rt,"getInstance",bc),d(Rt,"styleTip",Hs);const Ec="scrollspy",mo="ScrollSpy",$c='[data-bs-spy="scroll"]',Tc={offset:10,target:null},yc=t=>F(t,mo),Cc=t=>new se(t),vo=$(`activate.bs.${Ec}`),Sc=t=>{const{target:s,scrollTarget:e,options:n,itemsLength:o,scrollHeight:i,element:c}=t,{offset:a}=n,l=ns(e),r=s&&is("A",s),g=e?bo(e):i;if(t.scrollTop=l?e.scrollY:e.scrollTop,r&&(g!==i||o!==r.length)){let p,v,k;t.items=[],t.offsets=[],t.scrollHeight=g,t.maxScroll=t.scrollHeight-Hc(t),[...r].forEach(J=>{p=at(J,"href"),v=p&&p.charAt(0)==="#"&&p.slice(-1)!=="#"&&D(p,E(c)),v&&(t.items.push(J),k=fe(v),t.offsets.push((l?k.top+t.scrollTop:v.offsetTop)-a))}),t.itemsLength=t.items.length}},bo=t=>T(t)?t.scrollHeight:ft(t).scrollHeight,Hc=({element:t,scrollTarget:s})=>ns(s)?s.innerHeight:fe(t).height,wo=t=>{[...is("A",t)].forEach(s=>{h(s,C)&&b(s,C)})},Eo=(t,s)=>{const{target:e,element:n}=t;T(e)&&wo(e),t.activeItem=s,f(s,C);const o=[];let i=s;for(;i!==wt(n);)i=i.parentElement,(h(i,"nav")||h(i,"dropdown-menu"))&&o.push(i);o.forEach(c=>{const a=c.previousElementSibling;a&&!h(a,C)&&f(a,C)}),vo.relatedTarget=s,w(n,vo)};class se extends st{constructor(e,n){super(e,n);d(this,"refresh",()=>{const{target:e}=this;if(T(e)&&e.offsetHeight>0){Sc(this);const{scrollTop:n,maxScroll:o,itemsLength:i,items:c,activeItem:a}=this;if(n>=o){const r=c[i-1];a!==r&&Eo(this,r);return}const{offsets:l}=this;if(a&&n<l[0]&&l[0]>0){this.activeItem=null,e&&wo(e);return}c.forEach((r,g)=>{a!==r&&n>=l[g]&&(typeof l[g+1]>"u"||n<l[g+1])&&Eo(this,r)})}});d(this,"_toggleEventListeners",e=>{(e?_:B)(this.scrollTarget,Ae,this.refresh,tt)});const{element:o,options:i}=this;this.target=D(i.target,E(o)),this.target&&(this.scrollTarget=o.clientHeight<o.scrollHeight?o:Xt(o),this.scrollHeight=bo(this.scrollTarget),this._toggleEventListeners(!0),this.refresh())}get name(){return mo}get defaults(){return Tc}dispose(){this._toggleEventListeners(),super.dispose()}}d(se,"selector",$c),d(se,"init",Cc),d(se,"getInstance",yc);const be="tab",$o="Tab",To=`[${rt}="${be}"]`,yo=t=>F(t,$o),Pc=t=>new ne(t),Ds=$(`show.bs.${be}`),Co=$(`shown.bs.${be}`),xs=$(`hide.bs.${be}`),So=$(`hidden.bs.${be}`),we=new Map,Ho=t=>{const{tabContent:s,nav:e}=t;s&&h(s,Nt)&&(s.style.height="",b(s,Nt)),e&&u.clear(e)},Po=t=>{const{element:s,tabContent:e,content:n,nav:o}=t,{tab:i}=T(o)&&we.get(o)||{tab:null};if(e&&n&&h(n,W)){const{currentHeight:c,nextHeight:a}=we.get(s)||{currentHeight:0,nextHeight:0};c===a?Ho(t):setTimeout(()=>{e.style.height=`${a}px`,It(e),P(e,()=>Ho(t))},50)}else o&&u.clear(o);Co.relatedTarget=i,w(s,Co)},Do=t=>{const{element:s,content:e,tabContent:n,nav:o}=t,{tab:i,content:c}=o&&we.get(o)||{tab:null,content:null};let a=0;if(n&&e&&h(e,W)&&([c,e].forEach(l=>{T(l)&&f(l,"overflow-hidden")}),a=T(c)?c.scrollHeight:0),Ds.relatedTarget=i,So.relatedTarget=s,w(s,Ds),!Ds.defaultPrevented){if(e&&f(e,C),c&&b(c,C),n&&e&&h(e,W)){const l=e.scrollHeight;we.set(s,{currentHeight:a,nextHeight:l,tab:null,content:null}),f(n,Nt),n.style.height=`${a}px`,It(n),[c,e].forEach(r=>{r&&b(r,"overflow-hidden")})}e&&e&&h(e,W)?setTimeout(()=>{f(e,m),P(e,()=>{Po(t)})},1):(e&&f(e,m),Po(t)),i&&w(i,So)}},xo=t=>{const{nav:s}=t;if(!T(s))return{tab:null,content:null};const e=gt(C,s);let n=null;e.length===1&&!Ot.some(i=>h(e[0].parentElement,i))?[n]=e:e.length>1&&(n=e[e.length-1]);const o=T(n)?V(n):null;return{tab:n,content:o}},Ao=t=>{if(!T(t))return null;const s=M(t,`.${Ot.join(",.")}`);return s?D(`.${Ot[0]}-toggle`,s):null},Dc=t=>{const s=yo(t.target);s&&(t.preventDefault(),s.show())};class ne extends st{constructor(e){super(e);d(this,"_toggleEventListeners",e=>{(e?_:B)(this.element,N,Dc)});const{element:n}=this,o=V(n);if(o){const i=M(n,".nav"),c=M(o,".tab-content");this.nav=i,this.content=o,this.tabContent=c,this.dropdown=Ao(n);const{tab:a}=xo(this);if(i&&!a){const l=D(To,i),r=l&&V(l);r&&(f(l,C),f(r,m),f(r,C),O(n,Ue,"true"))}this._toggleEventListeners(!0)}}get name(){return $o}show(){const{element:e,content:n,nav:o,dropdown:i}=this;if(!(o&&u.get(o))&&!h(e,C)){const{tab:c,content:a}=xo(this);if(o&&we.set(o,{tab:c,content:a,currentHeight:0,nextHeight:0}),xs.relatedTarget=e,T(c)&&(w(c,xs),!xs.defaultPrevented)){f(e,C),O(e,Ue,"true");const l=T(c)&&Ao(c);if(l&&h(l,C)&&b(l,C),o){const r=()=>{c&&(b(c,C),O(c,Ue,"false")),i&&!h(i,C)&&f(i,C)};a&&(h(a,W)||n&&h(n,W))?u.set(o,r,1):r()}a&&(b(a,m),h(a,W)?P(a,()=>Do(this)):Do(this))}}}dispose(){this._toggleEventListeners(),super.dispose()}}d(ne,"selector",To),d(ne,"init",Pc),d(ne,"getInstance",yo);const G="toast",Lo="Toast",xc=`.${G}`,Ac=`[${Me}="${G}"]`,Io=`[${rt}="${G}"]`,oe="showing",ko="hide",Lc={animation:!0,autohide:!0,delay:5e3},As=t=>F(t,Lo),Ic=t=>new ie(t),No=$(`show.bs.${G}`),kc=$(`shown.bs.${G}`),Oo=$(`hide.bs.${G}`),Nc=$(`hidden.bs.${G}`),Mo=t=>{const{element:s,options:e}=t;b(s,oe),u.clear(s,oe),w(s,kc),e.autohide&&u.set(s,()=>t.hide(),e.delay,G)},_o=t=>{const{element:s}=t;b(s,oe),b(s,m),f(s,ko),u.clear(s,G),w(s,Nc)},Oc=t=>{const{element:s,options:e}=t;f(s,oe),e.animation?(It(s),P(s,()=>_o(t))):_o(t)},Mc=t=>{const{element:s,options:e}=t;u.set(s,()=>{b(s,ko),It(s),f(s,m),f(s,oe),e.animation?P(s,()=>Mo(t)):Mo(t)},17,oe)},_c=t=>{u.clear(t.element,G),t._toggleEventListeners()},Bc=t=>{const{target:s}=t,e=s&&M(s,Io),n=e&&V(e),o=n&&As(n);o&&(e&&e.tagName==="A"&&t.preventDefault(),o.relatedTarget=e,o.show())},Rc=t=>{const s=t.target,e=As(s),{type:n,relatedTarget:o}=t;e&&s!==o&&!s.contains(o)&&([De,Qe].includes(n)?u.clear(s,G):u.set(s,()=>e.hide(),e.options.delay,G))};class ie extends st{constructor(e,n){super(e,n);d(this,"show",()=>{const{element:e,isShown:n}=this;e&&!n&&(w(e,No),No.defaultPrevented||Mc(this))});d(this,"hide",()=>{const{element:e,isShown:n}=this;e&&n&&(w(e,Oo),Oo.defaultPrevented||Oc(this))});d(this,"_toggleEventListeners",e=>{const n=e?_:B,{element:o,triggers:i,dismiss:c,options:a,hide:l}=this;c&&n(c,N,l),a.autohide&&[Qe,Bs,De,Ze].forEach(r=>n(o,r,Rc)),i.length&&i.forEach(r=>n(r,N,Bc))});const{element:o,options:i}=this;i.animation&&!h(o,W)?f(o,W):!i.animation&&h(o,W)&&b(o,W),this.dismiss=D(Ac,o),this.triggers=[...et(Io,E(o))].filter(c=>V(c)===o),this._toggleEventListeners(!0)}get name(){return Lo}get defaults(){return Lc}get isShown(){return h(this.element,m)}dispose(){const{element:e,isShown:n}=this;n&&b(e,m),_c(this),super.dispose()}}d(ie,"selector",xc),d(ie,"init",Ic),d(ie,"getInstance",As);const Ls=new Map;[Ut,qt,Qt,Zt,Jt,te,ee,Rt,se,ne,ie,St].forEach(t=>Ls.set(t.prototype.name,t));const Wc=(t,s)=>{[...s].forEach(e=>t(e))},Fc=(t,s)=>{const e=Lt.getAllFor(t);e&&[...e].forEach(([n,o])=>{s.contains(n)&&o.dispose()})},Is=t=>{const s=t&&t.nodeName?t:document,e=[...is("*",s)];Ls.forEach(n=>{const{init:o,selector:i}=n;Wc(o,e.filter(c=>Js(c,i)))})},jc=t=>{const s=t&&t.nodeName?t:document;Ls.forEach(e=>{Fc(e.prototype.name,s)})};return document.body?Is():_(document,"DOMContentLoaded",()=>Is(),{once:!0}),H.Alert=Ut,H.Button=qt,H.Carousel=Qt,H.Collapse=Zt,H.Dropdown=Jt,H.Modal=te,H.Offcanvas=ee,H.Popover=Rt,H.ScrollSpy=se,H.Tab=ne,H.Toast=ie,H.Tooltip=St,H.initCallback=Is,H.removeDataAPI=jc,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"}),H}({});
|
|
1
|
+
var BSN=function(N){"use strict";const Ms="aria-describedby",ue="aria-expanded",qt="aria-hidden",ge="aria-modal",Bs="aria-pressed",Ie="aria-selected",Le="focus",Oe="focusin",Rs="focusout",pe="keydown",Ro="keyup",D="click",Fs="mousedown",Fo="hover",me="mouseenter",ke="mouseleave",Wo="pointerdown",jo="pointermove",zo="pointerup",Ne="touchstart",Ko="dragstart",Vo='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]',Me="ArrowDown",Be="ArrowUp",Ws="ArrowLeft",js="ArrowRight",Re="Escape",Xo="transitionDuration",qo="transitionDelay",Fe="transitionend",zs="transitionProperty",Uo=()=>{const e=/(iPhone|iPod|iPad)/;return navigator?.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(navigator?.userAgent)||!1},ve=()=>{},Yo=(e,t,s,n)=>{e.addEventListener(t,s,!1)},Zo=(e,t,s,n)=>{e.removeEventListener(t,s,!1)},U=(e,t)=>e.getAttribute(t),Ut=(e,t)=>e.hasAttribute(t),I=(e,t,s)=>e.setAttribute(t,s),yt=(e,t)=>e.removeAttribute(t),d=(e,...t)=>{e.classList.add(...t)},v=(e,...t)=>{e.classList.remove(...t)},h=(e,t)=>e.classList.contains(t),Yt=e=>e!=null&&typeof e=="object"||!1,P=e=>Yt(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,j=e=>P(e)&&e.nodeType===1||!1,Rt=new Map,Ct={data:Rt,set:(e,t,s)=>{j(e)&&(Rt.has(t)||Rt.set(t,new Map),Rt.get(t).set(e,s))},getAllFor:e=>Rt.get(e)||null,get:(e,t)=>{if(!j(e)||!t)return null;const s=Ct.getAllFor(t);return e&&s&&s.get(e)||null},remove:(e,t)=>{const s=Ct.getAllFor(t);!s||!j(e)||(s.delete(e),s.size===0&&Rt.delete(t))}},R=(e,t)=>Ct.get(e,t),Ks=e=>e?.trim().replace(/(?:^\w|[A-Z]|\b\w)/g,(t,s)=>s===0?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,""),Zt=e=>typeof e=="string"||!1,Vs=e=>Yt(e)&&e.constructor.name==="Window"||!1,Xs=e=>P(e)&&e.nodeType===9||!1,b=e=>Xs(e)?e:P(e)?e.ownerDocument:Vs(e)?e.document:globalThis.document,rt=(e,...t)=>Object.assign(e,...t),ut=e=>{if(!e)return;if(Zt(e))return b().createElement(e);const{tagName:t}=e,s=ut(t);if(!s)return;const n={...e};return delete n.tagName,rt(s,n)},w=(e,t)=>e.dispatchEvent(t),F=(e,t,s)=>{const n=getComputedStyle(e,s),o=t.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return n.getPropertyValue(o)},Qo=e=>{const t=F(e,zs),s=F(e,qo),n=s.includes("ms")?1:1e3,o=t&&t!=="none"?parseFloat(s)*n:0;return Number.isNaN(o)?0:o},Qt=e=>{const t=F(e,zs),s=F(e,Xo),n=s.includes("ms")?1:1e3,o=t&&t!=="none"?parseFloat(s)*n:0;return Number.isNaN(o)?0:o},_=(e,t)=>{let s=0;const n=new Event(Fe),o=Qt(e),i=Qo(e);if(o){const r=a=>{a.target===e&&(t.apply(e,[a]),e.removeEventListener(Fe,r),s=1)};e.addEventListener(Fe,r),setTimeout(()=>{s||w(e,n)},o+i+17)}else t.apply(e,[n])},at=(e,t)=>e.focus(t),qs=e=>["true",!0].includes(e)?!0:["false",!1].includes(e)?!1:["null","",null,void 0].includes(e)?null:e!==""&&!Number.isNaN(+e)?+e:e,be=e=>Object.entries(e),Go=(e,t,s,n)=>{if(!j(e))return t;const o={...s},i={...e.dataset},r={...t},a={},c="title";return be(i).forEach(([l,f])=>{const p=typeof l=="string"&&l.includes(n)?Ks(l.replace(n,"")):Ks(l);a[p]=qs(f)}),be(o).forEach(([l,f])=>{o[l]=qs(f)}),be(t).forEach(([l,f])=>{l in o?r[l]=o[l]:l in a?r[l]=a[l]:r[l]=l===c?U(e,c):f}),r},Us=e=>Object.keys(e),T=(e,t)=>{const s=new CustomEvent(e,{cancelable:!0,bubbles:!0});return Yt(t)&&rt(s,t),s},Gt={passive:!0},_t=e=>e.offsetHeight,S=(e,t)=>{be(t).forEach(([s,n])=>{if(n&&Zt(s)&&s.includes("--"))e.style.setProperty(s,n);else{const o={};o[s]=n,rt(e.style,o)}})},We=e=>Yt(e)&&e.constructor.name==="Map"||!1,Jo=e=>typeof e=="number"||!1,gt=new Map,u={set:(e,t,s,n)=>{j(e)&&(n&&n.length?(gt.has(e)||gt.set(e,new Map),gt.get(e).set(n,setTimeout(t,s))):gt.set(e,setTimeout(t,s)))},get:(e,t)=>{if(!j(e))return null;const s=gt.get(e);return t&&s&&We(s)?s.get(t)||null:Jo(s)?s:null},clear:(e,t)=>{if(!j(e))return;const s=gt.get(e);t&&t.length&&We(s)?(clearTimeout(s.get(t)),s.delete(t),s.size===0&>.delete(e)):(clearTimeout(s),gt.delete(e))}},Jt=e=>e.toLowerCase(),Y=(e,t)=>(P(t)?t:b()).querySelectorAll(e),je=new Map;function Ys(e){const{shiftKey:t,code:s}=e,n=b(this),o=[...Y(Vo,this)].filter(a=>!Ut(a,"disabled")&&!U(a,qt));if(!o.length)return;const i=o[0],r=o[o.length-1];s==="Tab"&&(t&&n.activeElement===i?(r.focus(),e.preventDefault()):!t&&n.activeElement===r&&(i.focus(),e.preventDefault()))}const ze=e=>je.has(e)===!0,ti=e=>{ze(e)||(Yo(e,"keydown",Ys),je.set(e,!0))},ei=e=>{ze(e)&&(Zo(e,"keydown",Ys),je.delete(e))},we=e=>{ze(e)?ei(e):ti(e)},H=e=>j(e)&&"offsetWidth"in e||!1,St=(e,t)=>{const{width:s,height:n,top:o,right:i,bottom:r,left:a}=e.getBoundingClientRect();let c=1,l=1;if(t&&H(e)){const{offsetWidth:f,offsetHeight:p}=e;c=f>0?Math.round(s)/f:1,l=p>0?Math.round(n)/p:1}return{width:s/c,height:n/l,top:o/l,right:i/c,bottom:r/l,left:a/c,x:a/c,y:o/l}},At=e=>b(e).body,ct=e=>b(e).documentElement,si=e=>{const t=Vs(e),s=t?e.scrollX:e.scrollLeft,n=t?e.scrollY:e.scrollTop;return{x:s,y:n}},Zs=e=>P(e)&&e.constructor.name==="ShadowRoot"||!1,ni=e=>e.nodeName==="HTML"?e:j(e)&&e.assignedSlot||P(e)&&e.parentNode||Zs(e)&&e.host||ct(e),Qs=e=>e?Xs(e)?e.defaultView:P(e)?e?.ownerDocument?.defaultView:e:window,oi=e=>P(e)&&["TABLE","TD","TH"].includes(e.nodeName)||!1,Gs=(e,t)=>e.matches(t),ii=e=>{if(!H(e))return!1;const{width:t,height:s}=St(e),{offsetWidth:n,offsetHeight:o}=e;return Math.round(t)!==n||Math.round(s)!==o},ri=(e,t,s)=>{const n=H(t),o=St(e,n&&ii(t)),i={x:0,y:0};if(n){const r=St(t,!0);i.x=r.x+t.clientLeft,i.y=r.y+t.clientTop}return{x:o.left+s.x-i.x,y:o.top+s.y-i.y,width:o.width,height:o.height}};let Js=0,tn=0;const Ft=new Map,en=(e,t)=>{let s=t?Js:tn;if(t){const n=en(e),o=Ft.get(n)||new Map;Ft.has(n)||Ft.set(n,o),We(o)&&!o.has(t)?(o.set(t,s),Js+=1):s=o.get(t)}else{const n=e.id||e;Ft.has(n)?s=Ft.get(n):(Ft.set(n,s),tn+=1)}return s},ai=e=>Array.isArray(e)||!1,sn=e=>{if(!P(e))return!1;const{top:t,bottom:s}=St(e),{clientHeight:n}=ct(e);return t<=n&&s>=0},nn=e=>typeof e=="function"||!1,ci=e=>Yt(e)&&e.constructor.name==="NodeList"||!1,pt=e=>ct(e).dir==="rtl",M=(e,t)=>!e||!t?null:e.closest(t)||M(e.getRootNode().host,t)||null,A=(e,t)=>j(e)?e:(j(t)?t:b()).querySelector(e),Ke=(e,t)=>(P(t)?t:b()).getElementsByTagName(e),li=(e,t)=>b(t).getElementById(e),lt=(e,t)=>(t&&P(t)?t:b()).getElementsByClassName(e),Wt={},on=e=>{const{type:t,currentTarget:s}=e;Wt[t].forEach((n,o)=>{s===o&&n.forEach((i,r)=>{r.apply(o,[e]),typeof i=="object"&&i.once&&O(o,t,r,i)})})},L=(e,t,s,n)=>{Wt[t]||(Wt[t]=new Map);const o=Wt[t];o.has(e)||o.set(e,new Map);const i=o.get(e),{size:r}=i;i.set(s,n),r||e.addEventListener(t,on,n)},O=(e,t,s,n)=>{const o=Wt[t],i=o&&o.get(e),r=i&&i.get(s),a=r!==void 0?r:n;i&&i.has(s)&&i.delete(s),o&&(!i||!i.size)&&o.delete(e),(!o||!o.size)&&delete Wt[t],(!i||!i.size)&&e.removeEventListener(t,on,a)},k="fade",g="show",Te="data-bs-dismiss",Ee="alert",rn="Alert",ot=e=>h(e,"disabled")||U(e,"disabled")==="true",di="5.1.5";class J{constructor(t,s){let n;try{if(j(t))n=t;else if(Zt(t)){if(n=A(t),!n)throw Error(`"${t}" is not a valid selector.`)}else throw Error("your target is not an instance of HTMLElement.")}catch(i){throw Error(`${this.name} Error: ${i.message}`)}const o=Ct.get(n,this.name);o&&o._toggleEventListeners(),this.element=n,this.options=this.defaults&&Us(this.defaults).length?Go(n,this.defaults,s||{},"bs"):{},Ct.set(n,this.name,this)}get version(){return di}get name(){return"BaseComponent"}get defaults(){return{}}_toggleEventListeners=()=>{};dispose(){Ct.remove(this.element,this.name),Us(this).forEach(t=>{delete this[t]})}}const hi=`.${Ee}`,fi=`[${Te}="${Ee}"]`,ui=e=>R(e,rn),gi=e=>new Ve(e),an=T(`close.bs.${Ee}`),pi=T(`closed.bs.${Ee}`),cn=e=>{const{element:t}=e;w(t,pi),e._toggleEventListeners(),e.dispose(),t.remove()};class Ve extends J{static selector=hi;static init=gi;static getInstance=ui;dismiss;constructor(t){super(t),this.dismiss=A(fi,this.element),this._toggleEventListeners(!0)}get name(){return rn}close=t=>{const{element:s,dismiss:n}=this;!s||!h(s,g)||t&&n&&ot(n)||(w(s,an),!an.defaultPrevented&&(v(s,g),h(s,k)?_(s,()=>cn(this)):cn(this)))};_toggleEventListeners=t=>{const s=t?L:O,{dismiss:n,close:o}=this;n&&s(n,D,o)};dispose(){this._toggleEventListeners(),super.dispose()}}const E="active",it="data-bs-toggle",mi="button",ln="Button",vi=`[${it}="${mi}"]`,bi=e=>R(e,ln),wi=e=>new Xe(e);class Xe extends J{static selector=vi;static init=wi;static getInstance=bi;constructor(t){super(t);const{element:s}=this;this.isActive=h(s,E),I(s,Bs,String(!!this.isActive)),this._toggleEventListeners(!0)}get name(){return ln}toggle=t=>{t&&t.preventDefault();const{element:s,isActive:n}=this;if(ot(s))return;(n?v:d)(s,E),I(s,Bs,n?"false":"true"),this.isActive=h(s,E)};_toggleEventListeners=t=>{(t?L:O)(this.element,D,this.toggle)};dispose(){this._toggleEventListeners(),super.dispose()}}const qe="data-bs-target",Pt="carousel",dn="Carousel",hn="data-bs-parent",Ti="data-bs-container",z=e=>{const t=[qe,hn,Ti,"href"],s=b(e);return t.map(n=>{const o=U(e,n);return o?n===hn?M(e,o):A(o,s):null}).filter(n=>n)[0]},te=`[data-bs-ride="${Pt}"]`,tt=`${Pt}-item`,Ue="data-bs-slide-to",mt="data-bs-slide",vt="paused",fn={pause:"hover",keyboard:!1,touch:!0,interval:5e3},dt=e=>R(e,dn),Ei=e=>new ts(e);let ee=0,$e=0,Ye=0;const Ze=T(`slide.bs.${Pt}`),Qe=T(`slid.bs.${Pt}`),un=e=>{const{index:t,direction:s,element:n,slides:o,options:i}=e;if(e.isAnimating){const r=Je(e),a=s==="left"?"next":"prev",c=s==="left"?"start":"end";d(o[t],E),v(o[t],`${tt}-${a}`),v(o[t],`${tt}-${c}`),v(o[r],E),v(o[r],`${tt}-${c}`),w(n,Qe),u.clear(n,mt),e.cycle&&!b(n).hidden&&i.interval&&!e.isPaused&&e.cycle()}};function $i(){const e=dt(this);e&&!e.isPaused&&!u.get(this,vt)&&d(this,vt)}function yi(){const e=dt(this);e&&e.isPaused&&!u.get(this,vt)&&e.cycle()}function Ci(e){e.preventDefault();const t=M(this,te)||z(this),s=t&&dt(t);if(ot(this)||!s||s.isAnimating)return;const n=+(U(this,Ue)||0);this&&!h(this,E)&&!Number.isNaN(n)&&s.to(n)}function _i(e){e.preventDefault();const t=M(this,te)||z(this),s=t&&dt(t);if(ot(this)||!s||s.isAnimating)return;const n=U(this,mt);n==="next"?s.next():n==="prev"&&s.prev()}const Si=({code:e,target:t})=>{const s=b(t),[n]=[...Y(te,s)].filter(c=>sn(c)),o=dt(n);if(!o||o.isAnimating||/textarea|input|select/i.test(t.nodeName))return;const i=pt(n);e===(i?js:Ws)?o.prev():e===(i?Ws:js)&&o.next()};function gn(e){const{target:t}=e,s=dt(this);s&&s.isTouch&&(s.indicator&&!s.indicator.contains(t)||!s.controls.includes(t))&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())}function Ai(e){const{target:t}=e,s=dt(this);if(!s||s.isAnimating||s.isTouch)return;const{controls:n,indicators:o}=s;[...n,...o].every(i=>i===t||i.contains(t))||(ee=e.pageX,this.contains(t)&&(s.isTouch=!0,pn(s,!0)))}const Pi=e=>{$e=e.pageX},Hi=e=>{const{target:t}=e,s=b(t),n=[...Y(te,s)].map(a=>dt(a)).find(a=>a.isTouch);if(!n)return;const{element:o,index:i}=n,r=pt(o);Ye=e.pageX,n.isTouch=!1,pn(n),!s.getSelection()?.toString().length&&o.contains(t)&&Math.abs(ee-Ye)>120&&($e<ee?n.to(i+(r?-1:1)):$e>ee&&n.to(i+(r?1:-1))),ee=0,$e=0,Ye=0},Ge=(e,t)=>{const{indicators:s}=e;[...s].forEach(n=>v(n,E)),e.indicators[t]&&d(s[t],E)},pn=(e,t)=>{const{element:s}=e,n=t?L:O;n(b(s),jo,Pi,Gt),n(b(s),zo,Hi,Gt)},Je=e=>{const{slides:t,element:s}=e,n=A(`.${tt}.${E}`,s);return n?[...t].indexOf(n):-1};class ts extends J{static selector=te;static init=Ei;static getInstance=dt;constructor(t,s){super(t,s);const{element:n}=this;this.direction=pt(n)?"right":"left",this.isTouch=!1,this.slides=lt(tt,n);const{slides:o}=this;if(o.length<2)return;const i=Je(this),r=[...o].find(l=>Gs(l,`.${tt}-next`));this.index=i;const a=b(n);this.controls=[...Y(`[${mt}]`,n),...Y(`[${mt}][${qe}="#${n.id}"]`,a)].filter((l,f,p)=>f===p.indexOf(l)),this.indicator=A(`.${Pt}-indicators`,n),this.indicators=[...this.indicator?Y(`[${Ue}]`,this.indicator):[],...Y(`[${Ue}][${qe}="#${n.id}"]`,a)].filter((l,f,p)=>f===p.indexOf(l));const{options:c}=this;this.options.interval=c.interval===!0?fn.interval:c.interval,r?this.index=[...o].indexOf(r):i<0&&(this.index=0,d(o[0],E),this.indicators.length&&Ge(this,0)),this.indicators.length&&Ge(this,this.index),this._toggleEventListeners(!0),c.interval&&this.cycle()}get name(){return dn}get defaults(){return fn}get isPaused(){return h(this.element,vt)}get isAnimating(){return A(`.${tt}-next,.${tt}-prev`,this.element)!==null}cycle(){const{element:t,options:s,isPaused:n,index:o}=this;u.clear(t,Pt),n&&(u.clear(t,vt),v(t,vt)),u.set(t,()=>{this.element&&!this.isPaused&&!this.isTouch&&sn(t)&&this.to(o+1)},s.interval,Pt)}pause(){const{element:t,options:s}=this;this.isPaused||!s.interval||(d(t,vt),u.set(t,()=>{},1,vt))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(t){const{element:s,slides:n,options:o}=this,i=Je(this),r=pt(s);let a=t;if(this.isAnimating||i===a||u.get(s,mt))return;i<a||i===0&&a===n.length-1?this.direction=r?"right":"left":(i>a||i===n.length-1&&a===0)&&(this.direction=r?"left":"right");const{direction:c}=this;a<0?a=n.length-1:a>=n.length&&(a=0);const l=c==="left"?"next":"prev",f=c==="left"?"start":"end",p={relatedTarget:n[a],from:i,to:a,direction:c};rt(Ze,p),rt(Qe,p),w(s,Ze),!Ze.defaultPrevented&&(this.index=a,Ge(this,a),Qt(n[a])&&h(s,"slide")?u.set(s,()=>{d(n[a],`${tt}-${l}`),_t(n[a]),d(n[a],`${tt}-${f}`),d(n[i],`${tt}-${f}`),_(n[a],()=>this.slides&&this.slides.length&&un(this))},0,mt):(d(n[a],E),v(n[i],E),u.set(s,()=>{u.clear(s,mt),s&&o.interval&&!this.isPaused&&this.cycle(),w(s,Qe)},0,mt)))}_toggleEventListeners=t=>{const{element:s,options:n,slides:o,controls:i,indicators:r}=this,{touch:a,pause:c,interval:l,keyboard:f}=n,p=t?L:O;c&&l&&(p(s,me,$i),p(s,ke,yi)),a&&o.length>2&&(p(s,Wo,Ai,Gt),p(s,Ne,gn,{passive:!1}),p(s,Ko,gn,{passive:!1})),i.length&&i.forEach(y=>{p(y,D,_i)}),r.length&&r.forEach(y=>{p(y,D,Ci)}),f&&p(b(s),pe,Si)};dispose(){const{isAnimating:t}=this,s={...this,isAnimating:t};this._toggleEventListeners(),super.dispose(),s.isAnimating&&_(s.slides[s.index],()=>{un(s)})}}const Ht="collapsing",K="collapse",mn="Collapse",xi=`.${K}`,vn=`[${it}="${K}"]`,Di={parent:null},ye=e=>R(e,mn),Ii=e=>new es(e),bn=T(`show.bs.${K}`),Li=T(`shown.bs.${K}`),wn=T(`hide.bs.${K}`),Oi=T(`hidden.bs.${K}`),ki=e=>{const{element:t,parent:s,triggers:n}=e;w(t,bn),bn.defaultPrevented||(u.set(t,ve,17),s&&u.set(s,ve,17),d(t,Ht),v(t,K),S(t,{height:`${t.scrollHeight}px`}),_(t,()=>{u.clear(t),s&&u.clear(s),n.forEach(o=>I(o,ue,"true")),v(t,Ht),d(t,K),d(t,g),S(t,{height:""}),w(t,Li)}))},Tn=e=>{const{element:t,parent:s,triggers:n}=e;w(t,wn),wn.defaultPrevented||(u.set(t,ve,17),s&&u.set(s,ve,17),S(t,{height:`${t.scrollHeight}px`}),v(t,K),v(t,g),d(t,Ht),_t(t),S(t,{height:"0px"}),_(t,()=>{u.clear(t),s&&u.clear(s),n.forEach(o=>I(o,ue,"false")),v(t,Ht),d(t,K),S(t,{height:""}),w(t,Oi)}))},Ni=e=>{const{target:t}=e,s=t&&M(t,vn),n=s&&z(s),o=n&&ye(n);s&&ot(s)||o&&(o.toggle(),s?.tagName==="A"&&e.preventDefault())};class es extends J{static selector=xi;static init=Ii;static getInstance=ye;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=b(n);this.triggers=[...Y(vn,i)].filter(r=>z(r)===n),this.parent=H(o.parent)?o.parent:Zt(o.parent)?z(n)||A(o.parent,i):null,this._toggleEventListeners(!0)}get name(){return mn}get defaults(){return Di}hide(){const{triggers:t,element:s}=this;u.get(s)||(Tn(this),t.length&&t.forEach(n=>d(n,`${K}d`)))}show(){const{element:t,parent:s,triggers:n}=this;let o,i;s&&(o=[...Y(`.${K}.${g}`,s)].find(r=>ye(r)),i=o&&ye(o)),(!s||!u.get(s))&&!u.get(t)&&(i&&o!==t&&(Tn(i),i.triggers.forEach(r=>{d(r,`${K}d`)})),ki(this),n.length&&n.forEach(r=>v(r,`${K}d`)))}toggle(){h(this.element,g)?this.hide():this.show()}_toggleEventListeners=t=>{const s=t?L:O,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,D,Ni)})};dispose(){this._toggleEventListeners(),super.dispose()}}var Mi="1.1.0";const Bi=["all","intersecting","update"],En="PositionObserver Error";var ss=class{entries;static version=Mi;_t;_r;_cm;_w;_h;_rm;_th;_c;constructor(e,t){if(!nn(e))throw new Error(`${En}: ${e} is not a function.`);this.entries=new Map,this._c=e,this._t=0;const s=j(t?.root)?t.root:document?.documentElement;this._r=s,this._rm=t?.rootMargin,this._th=t?.threshold;this._cm=Bi.indexOf(t?.callbackMode||"intersecting"),this._w=s.clientWidth,this._h=s.clientHeight}observe=e=>{if(!j(e))throw new Error(`${En}: ${e} is not an instance of Element.`);this._r.contains(e)&&this._n(e).then(t=>{t.boundingClientRect&&!this.getEntry(e)&&this.entries.set(e,t);this._t||(this._t=requestAnimationFrame(this._rc))})};unobserve=e=>{this.entries.has(e)&&this.entries.delete(e)};_rc=()=>{if(!this.entries.size){this._t=0;return}const{clientWidth:e,clientHeight:t}=this._r,s=new Promise(n=>{const o=[];this.entries.forEach(({target:i,boundingClientRect:r,isIntersecting:a})=>{this._r.contains(i)&&this._n(i).then(c=>{if(!c.isIntersecting){if(this._cm===1)return;if(this._cm===2){a&&(this.entries.set(i,c),o.push(c));return}}const{left:l,top:f}=c.boundingClientRect;(r.top!==f||r.left!==l||this._w!==e||this._h!==t)&&(this.entries.set(i,c),o.push(c))})}),this._w=e,this._h=t,n(o)});this._t=requestAnimationFrame(async()=>{const n=await s;n.length&&this._c(n,this),this._rc()})};_n=e=>new Promise(t=>{new IntersectionObserver(([n],o)=>{o.disconnect(),t(n)},{threshold:this._th,rootMargin:this._rm}).observe(e)});getEntry=e=>this.entries.get(e);disconnect=()=>{cancelAnimationFrame(this._t),this.entries.clear(),this._t=0}};const xt=["dropdown","dropup","dropstart","dropend"],$n="Dropdown",yn="dropdown-menu",Cn=e=>{const t=M(e,"A");return e.tagName==="A"&&Ut(e,"href")&&U(e,"href")?.slice(-1)==="#"||t&&Ut(t,"href")&&U(t,"href")?.slice(-1)==="#"},[et,ns,os,is]=xt,Ri=`[${it}="${et}"]`,se=e=>R(e,$n),Fi=e=>new ls(e),Wi=`${yn}-end`,_n=[et,ns],Sn=[os,is],An=["A","BUTTON"],ji={offset:5,display:"dynamic"},rs=T(`show.bs.${et}`),Pn=T(`shown.bs.${et}`),as=T(`hide.bs.${et}`),Hn=T(`hidden.bs.${et}`),xn=T(`updated.bs.${et}`),Dn=e=>{const{element:t,menu:s,parentElement:n,options:o}=e,{offset:i}=o;if(F(s,"position")==="static")return;const r=pt(t),a=h(s,Wi);["margin","top","bottom","left","right"].forEach(W=>{const Nt={};Nt[W]="",S(s,Nt)});let l=xt.find(W=>h(n,W))||et;const f={dropdown:[i,0,0],dropup:[0,0,i],dropstart:r?[-1,0,0,i]:[-1,i,0],dropend:r?[-1,i,0]:[-1,0,0,i]},p={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:r?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:r?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:r?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:r?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:y,offsetHeight:B}=s,{clientWidth:G,clientHeight:st}=ct(t),{left:m,top:q,width:Ot,height:kt}=St(t),C=m-y-i<0,Tt=m+y+Ot+i>=G,ft=q+B+i>=st,nt=q+B+kt+i>=st,zt=q-B-i<0,$=(!r&&a||r&&!a)&&m+Ot-y<0,V=(r&&a||!r&&!a)&&m+y>=G;if(Sn.includes(l)&&C&&Tt&&(l=et),l===os&&(r?Tt:C)&&(l=is),l===is&&(r?C:Tt)&&(l=os),l===ns&&zt&&!nt&&(l=et),l===et&&nt&&!zt&&(l=ns),Sn.includes(l)&&ft&&rt(p[l],{top:"auto",bottom:0}),_n.includes(l)&&($||V)){let W={left:"auto",right:"auto"};!$&&V&&!r&&(W={left:"auto",right:0}),$&&!V&&r&&(W={left:0,right:"auto"}),W&&rt(p[l],W)}const Kt=f[l];S(s,{...p[l],margin:`${Kt.map(W=>W&&`${W}px`).join(" ")}`}),_n.includes(l)&&a&&a&&S(s,p[!r&&$||r&&V?"menuStart":"menuEnd"]),w(n,xn)},zi=e=>Array.from(e.children).map(t=>{if(t&&An.includes(t.tagName))return t;const{firstElementChild:s}=t;return s&&An.includes(s.tagName)?s:null}).filter(t=>t),In=e=>{const{element:t,options:s,menu:n}=e,o=e.open?L:O,i=b(t);o(i,D,Ln),o(i,Le,Ln),o(i,pe,Vi),o(i,Ro,Xi),s.display==="dynamic"&&(e.open?e._observer.observe(n):e._observer.disconnect())},cs=e=>{const t=[...xt,"btn-group","input-group"].map(s=>lt(`${s} ${g}`,b(e))).find(s=>s.length);if(t&&t.length)return[...t[0].children].find(s=>xt.some(n=>n===U(s,it)))},Ln=e=>{const{target:t,type:s}=e;if(!H(t))return;const n=cs(t),o=n&&se(n);if(!o)return;const{parentElement:i,menu:r}=o,a=i&&i.contains(t)&&(t.tagName==="form"||M(t,"form")!==null);[D,Fs].includes(s)&&Cn(t)&&e.preventDefault(),!a&&s!==Le&&t!==n&&t!==r&&o.hide()};function Ki(e){const t=se(this);ot(this)||t&&(e.stopPropagation(),t.toggle(),Cn(this)&&e.preventDefault())}const Vi=e=>{[Me,Be].includes(e.code)&&e.preventDefault()};function Xi(e){const{code:t}=e,s=cs(this);if(!s)return;const n=se(s),{activeElement:o}=b(s);if(!n||!o)return;const{menu:i,open:r}=n,a=zi(i);if(a&&a.length&&[Me,Be].includes(t)){let c=a.indexOf(o);o===s?c=0:t===Be?c=c>1?c-1:0:t===Me&&(c=c<a.length-1?c+1:c),a[c]&&at(a[c])}Re===t&&r&&(n.toggle(),at(s))}class ls extends J{static selector=Ri;static init=Fi;static getInstance=se;constructor(t,s){super(t,s);const{parentElement:n}=this.element,[o]=lt(yn,n);o&&(this.parentElement=n,this.menu=o,this._observer=new ss(()=>Dn(this)),this._toggleEventListeners(!0))}get name(){return $n}get defaults(){return ji}toggle(){this.open?this.hide():this.show()}show(){const{element:t,open:s,menu:n,parentElement:o}=this;if(s)return;const i=cs(t),r=i&&se(i);r&&r.hide(),[rs,Pn,xn].forEach(a=>{a.relatedTarget=t}),w(o,rs),!rs.defaultPrevented&&(d(n,g),d(o,g),I(t,ue,"true"),Dn(this),this.open=!s,at(t),In(this),w(o,Pn))}hide(){const{element:t,open:s,menu:n,parentElement:o}=this;s&&([as,Hn].forEach(i=>{i.relatedTarget=t}),w(o,as),!as.defaultPrevented&&(v(n,g),v(o,g),I(t,ue,"false"),this.open=!s,In(this),w(o,Hn)))}_toggleEventListeners=t=>{(t?L:O)(this.element,D,Ki)};dispose(){this.open&&this.hide(),this._toggleEventListeners(),super.dispose()}}const X="modal",ds="Modal",hs="Offcanvas",qi="fixed-top",Ui="fixed-bottom",On="sticky-top",kn="position-sticky",Nn=e=>[...lt(qi,e),...lt(Ui,e),...lt(On,e),...lt(kn,e),...lt("is-fixed",e)],Yi=e=>{const t=At(e);S(t,{paddingRight:"",overflow:""});const s=Nn(t);s.length&&s.forEach(n=>{S(n,{paddingRight:"",marginRight:""})})},Mn=e=>{const{clientWidth:t}=ct(e),{innerWidth:s}=Qs(e);return Math.abs(s-t)},Bn=(e,t)=>{const s=At(e),n=parseInt(F(s,"paddingRight"),10),i=F(s,"overflow")==="hidden"&&n?0:Mn(e),r=Nn(s);t&&(S(s,{overflow:"hidden",paddingRight:`${n+i}px`}),r.length&&r.forEach(a=>{const c=F(a,"paddingRight");if(a.style.paddingRight=`${parseInt(c,10)+i}px`,[On,kn].some(l=>h(a,l))){const l=F(a,"marginRight");a.style.marginRight=`${parseInt(l,10)-i}px`}}))},Z="offcanvas",bt=ut({tagName:"div",className:"popup-container"}),Rn=(e,t)=>{const s=P(t)&&t.nodeName==="BODY",n=P(t)&&!s?t:bt,o=s?t:At(e);P(e)&&(n===bt&&o.append(bt),n.append(e))},Fn=(e,t)=>{const s=P(t)&&t.nodeName==="BODY",n=P(t)&&!s?t:bt;P(e)&&(e.remove(),n===bt&&!bt.children.length&&bt.remove())},fs=(e,t)=>{const s=P(t)&&t.nodeName!=="BODY"?t:bt;return P(e)&&s.contains(e)},Wn="backdrop",jn=`${X}-${Wn}`,zn=`${Z}-${Wn}`,Kn=`.${X}.${g}`,us=`.${Z}.${g}`,x=ut("div"),Dt=e=>A(`${Kn},${us}`,b(e)),gs=e=>{const t=e?jn:zn;[jn,zn].forEach(s=>{v(x,s)}),d(x,t)},Vn=(e,t,s)=>{gs(s),Rn(x,At(e)),t&&d(x,k)},Xn=()=>{h(x,g)||(d(x,g),_t(x))},Ce=()=>{v(x,g)},qn=e=>{Dt(e)||(v(x,k),Fn(x,At(e)),Yi(e))},Un=e=>H(e)&&F(e,"visibility")!=="hidden"&&e.offsetParent!==null,Zi=`.${X}`,Qi=`[${it}="${X}"]`,Gi=`[${Te}="${X}"]`,Yn=`${X}-static`,Ji={backdrop:!0,keyboard:!0},ne=e=>R(e,ds),tr=e=>new ms(e),_e=T(`show.bs.${X}`),Zn=T(`shown.bs.${X}`),ps=T(`hide.bs.${X}`),Qn=T(`hidden.bs.${X}`),Gn=e=>{const{element:t}=e,s=Mn(t),{clientHeight:n,scrollHeight:o}=ct(t),{clientHeight:i,scrollHeight:r}=t,a=i!==r;if(!a&&s){const l={[pt(t)?"paddingLeft":"paddingRight"]:`${s}px`};S(t,l)}Bn(t,a||n!==o)},Jn=(e,t)=>{const s=t?L:O,{element:n}=e;s(n,D,nr),s(b(n),pe,sr),t?e._observer.observe(n):e._observer.disconnect()},to=e=>{const{triggers:t,element:s,relatedTarget:n}=e;qn(s),S(s,{paddingRight:"",display:""}),Jn(e);const o=_e.relatedTarget||t.find(Un);o&&at(o),Qn.relatedTarget=n||void 0,w(s,Qn),we(s)},eo=e=>{const{element:t,relatedTarget:s}=e;at(t),Jn(e,!0),Zn.relatedTarget=s||void 0,w(t,Zn),we(t)},so=e=>{const{element:t,hasFade:s}=e;S(t,{display:"block"}),Gn(e),Dt(t)||S(At(t),{overflow:"hidden"}),d(t,g),yt(t,qt),I(t,ge,"true"),s?_(t,()=>eo(e)):eo(e)},no=e=>{const{element:t,options:s,hasFade:n}=e;s.backdrop&&n&&h(x,g)&&!Dt(t)?(Ce(),_(x,()=>to(e))):to(e)};function er(e){const t=z(this),s=t&&ne(t);ot(this)||s&&(this.tagName==="A"&&e.preventDefault(),s.relatedTarget=this,s.toggle())}const sr=({code:e,target:t})=>{const s=A(Kn,b(t)),n=s&&ne(s);if(!n)return;const{options:o}=n;o.keyboard&&e===Re&&h(s,g)&&(n.relatedTarget=null,n.hide())},nr=e=>{const{currentTarget:t}=e,s=t&&ne(t);if(!s||!t||u.get(t))return;const{options:n,isStatic:o,modalDialog:i}=s,{backdrop:r}=n,{target:a}=e,c=b(t)?.getSelection()?.toString().length,l=i.contains(a),f=a&&M(a,Gi);o&&!l?u.set(t,()=>{d(t,Yn),_(i,()=>or(s))},17):(f||!c&&!o&&!l&&r)&&(s.relatedTarget=f||null,s.hide(),e.preventDefault())},or=e=>{const{element:t,modalDialog:s}=e,n=(Qt(s)||0)+17;v(t,Yn),u.set(t,()=>u.clear(t),n)};class ms extends J{static selector=Zi;static init=tr;static getInstance=ne;constructor(t,s){super(t,s);const{element:n}=this,o=A(`.${X}-dialog`,n);o&&(this.modalDialog=o,this.triggers=[...Y(Qi,b(n))].filter(i=>z(i)===n),this.isStatic=this.options.backdrop==="static",this.hasFade=h(n,k),this.relatedTarget=null,this._observer=new ResizeObserver(()=>this.update()),this._toggleEventListeners(!0))}get name(){return ds}get defaults(){return Ji}toggle(){h(this.element,g)?this.hide():this.show()}show(){const{element:t,options:s,hasFade:n,relatedTarget:o}=this,{backdrop:i}=s;let r=0;if(h(t,g)||(_e.relatedTarget=o||void 0,w(t,_e),_e.defaultPrevented))return;const a=Dt(t);if(a&&a!==t){const c=ne(a)||R(a,hs);c&&c.hide()}i?(fs(x)?gs(!0):Vn(t,n,!0),r=Qt(x),Xn(),setTimeout(()=>so(this),r)):(so(this),a&&h(x,g)&&Ce())}hide(){const{element:t,hasFade:s,relatedTarget:n}=this;h(t,g)&&(ps.relatedTarget=n||void 0,w(t,ps),!ps.defaultPrevented&&(v(t,g),I(t,qt,"true"),yt(t,ge),s?_(t,()=>no(this)):no(this)))}update=()=>{h(this.element,g)&&Gn(this)};_toggleEventListeners=t=>{const s=t?L:O,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,D,er)})};dispose(){const t={...this},{modalDialog:s,hasFade:n}=t,o=()=>setTimeout(()=>super.dispose(),17);this.hide(),this._toggleEventListeners(),n?_(s,o):o()}}const ir=`.${Z}`,oo=`[${it}="${Z}"]`,rr=`[${Te}="${Z}"]`,Se=`${Z}-toggling`,ar={backdrop:!0,keyboard:!0,scroll:!1},oe=e=>R(e,hs),cr=e=>new bs(e),Ae=T(`show.bs.${Z}`),io=T(`shown.bs.${Z}`),vs=T(`hide.bs.${Z}`),ro=T(`hidden.bs.${Z}`),lr=e=>{const{element:t}=e,{clientHeight:s,scrollHeight:n}=ct(t);Bn(t,s!==n)},ao=(e,t)=>{const s=t?L:O,n=b(e.element);s(n,pe,ur),s(n,D,fr)},co=e=>{const{element:t,options:s}=e;s.scroll||(lr(e),S(At(t),{overflow:"hidden"})),d(t,Se),d(t,g),S(t,{visibility:"visible"}),_(t,()=>gr(e))},dr=e=>{const{element:t,options:s}=e,n=Dt(t);t.blur(),!n&&s.backdrop&&h(x,g)&&Ce(),_(t,()=>pr(e))};function hr(e){const t=z(this),s=t&&oe(t);ot(this)||s&&(s.relatedTarget=this,s.toggle(),this.tagName==="A"&&e.preventDefault())}const fr=e=>{const{target:t}=e,s=A(us,b(t));if(!s)return;const n=A(rr,s),o=oe(s);if(!o)return;const{options:i,triggers:r}=o,{backdrop:a}=i,c=M(t,oo),l=b(s).getSelection();x.contains(t)&&a==="static"||(!(l&&l.toString().length)&&(!s.contains(t)&&a&&(!c||r.includes(t))||n&&n.contains(t))&&(o.relatedTarget=n&&n.contains(t)?n:void 0,o.hide()),c&&c.tagName==="A"&&e.preventDefault())},ur=({code:e,target:t})=>{const s=A(us,b(t)),n=s&&oe(s);n&&n.options.keyboard&&e===Re&&(n.relatedTarget=void 0,n.hide())},gr=e=>{const{element:t}=e;v(t,Se),yt(t,qt),I(t,ge,"true"),I(t,"role","dialog"),w(t,io),ao(e,!0),at(t),we(t)},pr=e=>{const{element:t,triggers:s}=e;I(t,qt,"true"),yt(t,ge),yt(t,"role"),S(t,{visibility:""});const n=Ae.relatedTarget||s.find(Un);n&&at(n),qn(t),w(t,ro),v(t,Se),we(t),Dt(t)||ao(e)};class bs extends J{static selector=ir;static init=cr;static getInstance=oe;constructor(t,s){super(t,s);const{element:n}=this;this.triggers=[...Y(oo,b(n))].filter(o=>z(o)===n),this.relatedTarget=void 0,this._toggleEventListeners(!0)}get name(){return hs}get defaults(){return ar}toggle(){h(this.element,g)?this.hide():this.show()}show(){const{element:t,options:s,relatedTarget:n}=this;let o=0;if(h(t,g)||(Ae.relatedTarget=n||void 0,io.relatedTarget=n||void 0,w(t,Ae),Ae.defaultPrevented))return;const i=Dt(t);if(i&&i!==t){const r=oe(i)||R(i,ds);r&&r.hide()}s.backdrop?(fs(x)?gs():Vn(t,!0),o=Qt(x),Xn(),setTimeout(()=>co(this),o)):(co(this),i&&h(x,g)&&Ce())}hide(){const{element:t,relatedTarget:s}=this;h(t,g)&&(vs.relatedTarget=s||void 0,ro.relatedTarget=s||void 0,w(t,vs),!vs.defaultPrevented&&(d(t,Se),v(t,g),dr(this)))}_toggleEventListeners=t=>{const s=t?L:O;this.triggers.forEach(n=>{s(n,D,hr)})};dispose(){const{element:t}=this,s=h(t,g),n=()=>setTimeout(()=>super.dispose(),1);this.hide(),this._toggleEventListeners(),s?_(t,n):n()}}const It="popover",ws="Popover",ht="tooltip",lo=e=>{const t=e===ht,s=t?`${e}-inner`:`${e}-body`,n=t?"":`<h3 class="${e}-header"></h3>`,o=`<div class="${e}-arrow"></div>`,i=`<div class="${s}"></div>`;return`<div class="${e}" role="${ht}">${n+o+i}</div>`},ho={top:"top",bottom:"bottom",left:"start",right:"end"},Ts=e=>{requestAnimationFrame(()=>{const t=/\b(top|bottom|start|end)+/,{element:s,tooltip:n,container:o,offsetParent:i,options:r,arrow:a}=e;if(!n)return;const c=pt(s),{x:l,y:f}=si(i);S(n,{top:"",left:"",right:"",bottom:""});const{offsetWidth:p,offsetHeight:y}=n,{clientWidth:B,clientHeight:G,offsetWidth:st}=ct(s);let{placement:m}=r;const{clientWidth:q,offsetWidth:Ot}=o,C=F(o,"position")==="fixed",Tt=Math.abs(C?q-Ot:B-st),ft=c&&C?Tt:0,nt=B-(c?0:Tt)-1,zt=e._observer.getEntry(s),{width:$,height:V,left:Kt,right:W,top:Nt}=zt?.boundingClientRect||St(s,!0),{x:He,y:Vt}=ri(s,i,{x:l,y:f});S(a,{top:"",left:"",right:"",bottom:""});let Mt=0,ce="",Et=0,Ls="",Xt="",xe="",Os="";const Bt=a.offsetWidth||0,$t=a.offsetHeight||0,ks=Bt/2;let le=Nt-y-$t<0,de=Nt+y+V+$t>=G,he=Kt-p-Bt<ft,fe=Kt+p+$+Bt>=nt;const De=["left","right"],Ns=["top","bottom"];le=De.includes(m)?Nt+V/2-y/2-$t<0:le,de=De.includes(m)?Nt+y/2+V/2+$t>=G:de,he=Ns.includes(m)?Kt+$/2-p/2<ft:he,fe=Ns.includes(m)?Kt+p/2+$/2>=nt:fe,m=De.includes(m)&&he&&fe?"top":m,m=m==="top"&&le?"bottom":m,m=m==="bottom"&&de?"top":m,m=m==="left"&&he?"right":m,m=m==="right"&&fe?"left":m,n.className.includes(m)||(n.className=n.className.replace(t,ho[m])),De.includes(m)?(m==="left"?Et=He-p-Bt:Et=He+$+Bt,le&&de?(Mt=0,ce=0,Xt=Vt+V/2-$t/2):le?(Mt=Vt,ce="",Xt=V/2-Bt):de?(Mt=Vt-y+V,ce="",Xt=y-V/2-Bt):(Mt=Vt-y/2+V/2,Xt=y/2-$t/2)):Ns.includes(m)&&(m==="top"?Mt=Vt-y-$t:Mt=Vt+V+$t,he?(Et=0,xe=He+$/2-ks):fe?(Et="auto",Ls=0,Os=$/2+nt-W-ks):(Et=He-p/2+$/2,xe=p/2-ks)),S(n,{top:`${Mt}px`,bottom:ce===""?"":`${ce}px`,left:Et==="auto"?Et:`${Et}px`,right:Ls!==""?`${Ls}px`:""}),H(a)&&(Xt!==""&&(a.style.top=`${Xt}px`),xe!==""?a.style.left=`${xe}px`:Os!==""&&(a.style.right=`${Os}px`));const Yr=T(`updated.bs.${Jt(e.name)}`);w(s,Yr)})},Es={template:lo(ht),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},fo="data-original-title",Lt="Tooltip",wt=(e,t,s)=>{if(Zt(t)&&t.length){let n=t.trim();nn(s)&&(n=s(n));const i=new DOMParser().parseFromString(n,"text/html");e.append(...i.body.childNodes)}else H(t)?e.append(t):(ci(t)||ai(t)&&t.every(P))&&e.append(...t)},mr=e=>{const t=e.name===Lt,{id:s,element:n,options:o}=e,{title:i,placement:r,template:a,animation:c,customClass:l,sanitizeFn:f,dismissible:p,content:y,btnClose:B}=o,G=t?ht:It,st={...ho};let m=[],q=[];pt(n)&&(st.left="end",st.right="start");const Ot=`bs-${G}-${st[r]}`;let kt;if(H(a))kt=a;else{const $=ut("div");wt($,a,f),kt=$.firstChild}if(!H(kt))return;e.tooltip=kt.cloneNode(!0);const{tooltip:C}=e;I(C,"id",s),I(C,"role",ht);const Tt=t?`${ht}-inner`:`${It}-body`,ft=t?null:A(`.${It}-header`,C),nt=A(`.${Tt}`,C);e.arrow=A(`.${G}-arrow`,C);const{arrow:zt}=e;if(H(i))m=[i.cloneNode(!0)];else{const $=ut("div");wt($,i,f),m=[...$.childNodes]}if(H(y))q=[y.cloneNode(!0)];else{const $=ut("div");wt($,y,f),q=[...$.childNodes]}if(p)if(i)if(H(B))m=[...m,B.cloneNode(!0)];else{const $=ut("div");wt($,B,f),m=[...m,$.firstChild]}else if(ft&&ft.remove(),H(B))q=[...q,B.cloneNode(!0)];else{const $=ut("div");wt($,B,f),q=[...q,$.firstChild]}t?i&&nt&&wt(nt,i,f):(i&&ft&&wt(ft,m,f),y&&nt&&wt(nt,q,f),e.btn=A(".btn-close",C)||void 0),d(C,"position-absolute"),d(zt,"position-absolute"),h(C,G)||d(C,G),c&&!h(C,k)&&d(C,k),l&&!h(C,l)&&d(C,l),h(C,Ot)||d(C,Ot)},vr=e=>{const t=["HTML","BODY"],s=[];let{parentNode:n}=e;for(;n&&!t.includes(n.nodeName);)n=ni(n),Zs(n)||oi(n)||s.push(n);return s.find((o,i)=>(F(o,"position")!=="relative"||F(o,"position")==="relative"&&o.offsetHeight!==o.scrollHeight)&&s.slice(i+1).every(r=>F(r,"position")==="static")?o:null)||b(e).body},br=`[${it}="${ht}"],[data-tip="${ht}"]`,uo="title";let go=e=>R(e,Lt);const wr=e=>new Pe(e),Tr=e=>{const{element:t,tooltip:s,container:n}=e;yt(t,Ms),Fn(s,n)},ie=e=>{const{tooltip:t,container:s}=e;return t&&fs(t,s)},Er=(e,t)=>{const{element:s}=e;e._toggleEventListeners(),Ut(s,fo)&&e.name===Lt&&wo(e),t&&t()},po=(e,t)=>{const s=t?L:O,{element:n}=e;s(b(n),Ne,e.handleTouch,Gt)},mo=e=>{const{element:t}=e,s=T(`shown.bs.${Jt(e.name)}`);po(e,!0),w(t,s),u.clear(t,"in")},vo=e=>{const{element:t}=e,s=T(`hidden.bs.${Jt(e.name)}`);po(e),Tr(e),w(t,s),u.clear(t,"out")},bo=(e,t)=>{const s=t?L:O,{element:n,tooltip:o}=e,i=M(n,`.${X}`),r=M(n,`.${Z}`);t?[n,o].forEach(a=>e._observer.observe(a)):e._observer.disconnect(),i&&s(i,`hide.bs.${X}`,e.handleHide),r&&s(r,`hide.bs.${Z}`,e.handleHide)},wo=(e,t)=>{const s=[fo,uo],{element:n}=e;I(n,s[t?0:1],t||U(n,s[0])||""),yt(n,s[t?1:0])};class Pe extends J{static selector=br;static init=wr;static getInstance=go;static styleTip=Ts;constructor(t,s){super(t,s);const{element:n}=this,o=this.name===Lt,i=o?ht:It,r=o?Lt:ws;go=f=>R(f,r),this.enabled=!0,this.id=`${i}-${en(n,i)}`;const{options:a}=this;if(!a.title&&o||!o&&!a.content)return;rt(Es,{titleAttr:""}),Ut(n,uo)&&o&&typeof a.title=="string"&&wo(this,a.title);const c=vr(n),l=["sticky","fixed","relative"].some(f=>F(c,"position")===f)?c:Qs(n);this.container=c,this.offsetParent=l,mr(this),this.tooltip&&(this._observer=new ss(()=>this.update()),this._toggleEventListeners(!0))}get name(){return Lt}get defaults(){return Es}handleFocus=()=>at(this.element);handleShow=()=>this.show();show(){const{options:t,tooltip:s,element:n,container:o,id:i}=this,{animation:r}=t,a=u.get(n,"out");u.clear(n,"out"),s&&!a&&!ie(this)&&u.set(n,()=>{const c=T(`show.bs.${Jt(this.name)}`);w(n,c),c.defaultPrevented||(Rn(s,o),I(n,Ms,`#${i}`),this.update(),bo(this,!0),h(s,g)||d(s,g),r?_(s,()=>mo(this)):mo(this))},17,"in")}handleHide=()=>this.hide();hide(){const{options:t,tooltip:s,element:n}=this,{animation:o,delay:i}=t;u.clear(n,"in"),s&&ie(this)&&u.set(n,()=>{const r=T(`hide.bs.${Jt(this.name)}`);w(n,r),r.defaultPrevented||(this.update(),v(s,g),bo(this),o?_(s,()=>vo(this)):vo(this))},i+17,"out")}update=()=>{Ts(this)};toggle=()=>{const{tooltip:t}=this;t&&!ie(this)?this.show():this.hide()};enable(){const{enabled:t}=this;t||(this._toggleEventListeners(!0),this.enabled=!t)}disable(){const{tooltip:t,enabled:s}=this;s&&(t&&ie(this)&&this.hide(),this._toggleEventListeners(),this.enabled=!s)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch=({target:t})=>{const{tooltip:s,element:n}=this;s&&s.contains(t)||t===n||t&&n.contains(t)||this.hide()};_toggleEventListeners=t=>{const s=t?L:O,{element:n,options:o,btn:i}=this,{trigger:r}=o,c=!!(this.name!==Lt&&o.dismissible);r.includes("manual")||(this.enabled=!!t,r.split(" ").forEach(f=>{f===Fo?(s(n,Fs,this.handleShow),s(n,me,this.handleShow),c||(s(n,ke,this.handleHide),s(b(n),Ne,this.handleTouch,Gt))):f===D?s(n,f,c?this.handleShow:this.toggle):f===Le&&(s(n,Oe,this.handleShow),c||s(n,Rs,this.handleHide),Uo()&&s(n,D,this.handleFocus)),c&&i&&s(i,D,this.handleHide)}))};dispose(){const{tooltip:t,options:s}=this,n={...this,name:this.name},o=()=>setTimeout(()=>Er(n,()=>super.dispose()),17);s.animation&&ie(n)?(this.options.delay=0,this.hide(),_(t,o)):o()}}const $r=`[${it}="${It}"],[data-tip="${It}"]`,yr=rt({},Es,{template:lo(It),content:"",dismissible:!1,btnClose:'<button class="btn-close position-absolute top-0 end-0 m-1" aria-label="Close"></button>'}),Cr=e=>R(e,ws),_r=e=>new $s(e);class $s extends Pe{static selector=$r;static init=_r;static getInstance=Cr;static styleTip=Ts;constructor(t,s){super(t,s)}get name(){return ws}get defaults(){return yr}show=()=>{super.show();const{options:t,btn:s}=this;t.dismissible&&s&&setTimeout(()=>at(s),17)}}const Sr="scrollspy",To="ScrollSpy",Ar='[data-bs-spy="scroll"]',Pr="[href]",Hr={offset:10,target:void 0},xr=e=>R(e,To),Dr=e=>new Cs(e),Eo=T(`activate.bs.${Sr}`),Ir=e=>{const{target:t,_itemsLength:s,_observables:n}=e,o=Ke("A",t),i=b(t);!o.length||s===n.size||(n.clear(),Array.from(o).forEach(r=>{const a=U(r,"href")?.slice(1),c=a?.length?i.getElementById(a):null;c&&!ot(r)&&e._observables.set(c,r)}),e._itemsLength=e._observables.size)},$o=e=>{Array.from(Ke("A",e)).forEach(t=>{h(t,E)&&v(t,E)})},yo=(e,t)=>{const{target:s,element:n}=e;$o(s),e._activeItem=t,d(t,E);let o=t;for(;o!==s;)if(o=o.parentElement,["nav","dropdown-menu","list-group"].some(i=>h(o,i))){const i=o.previousElementSibling;i&&!h(i,E)&&d(i,E)}Eo.relatedTarget=t,w(n,Eo)},ys=(e,t)=>{const{scrollTarget:s,element:n,options:o}=e;return(s!==n?St(t).top+s.scrollTop:t.offsetTop)-(o.offset||10)};class Cs extends J{static selector=Ar;static init=Dr;static getInstance=xr;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=A(o.target,b(n));i&&(this.target=i,this.scrollTarget=n.clientHeight<n.scrollHeight?n:ct(n),this._observables=new Map,this.refresh(),this._observer=new ss(()=>{requestAnimationFrame(()=>this.refresh())},{root:this.scrollTarget}),this._toggleEventListeners(!0))}get name(){return To}get defaults(){return Hr}refresh=()=>{const{target:t,scrollTarget:s}=this;if(!t||t.offsetHeight===0)return;Ir(this);const{_itemsLength:n,_observables:o,_activeItem:i}=this;if(!n)return;const r=o.entries().toArray(),{scrollTop:a,scrollHeight:c,clientHeight:l}=s;if(a>=c-l){const p=r[n-1]?.[1];i!==p&&yo(this,p);return}const f=r[0]?.[0]?ys(this,r[0][0]):null;if(f!==null&&a<f&&f>0){this._activeItem=null,$o(t);return}for(let p=0;p<n;p+=1){const[y,B]=r[p],G=ys(this,y),st=r[p+1]?.[0],m=st?ys(this,st):null;if(i!==B&&a>=G&&(m===null||a<m)){yo(this,B);break}}};_scrollTo=t=>{const s=M(t.target,Pr),n=s&&U(s,"href")?.slice(1),o=n&&li(n,this.target);o&&(this.scrollTarget.scrollTo({top:o.offsetTop,behavior:"smooth"}),t.preventDefault())};_toggleEventListeners=t=>{const{target:s,_observables:n,_observer:o,_scrollTo:i}=this;(t?L:O)(s,D,i),t?n?.forEach((a,c)=>o.observe(c)):o.disconnect()};dispose(){this._toggleEventListeners(),super.dispose()}}const re="tab",Co="Tab",_s=`[${it}="${re}"]`,_o=e=>R(e,Co),Lr=e=>new Ps(e),Ss=T(`show.bs.${re}`),So=T(`shown.bs.${re}`),As=T(`hide.bs.${re}`),Ao=T(`hidden.bs.${re}`),ae=new Map,Po=e=>{const{tabContent:t,nav:s}=e;t&&h(t,Ht)&&(t.style.height="",v(t,Ht)),s&&u.clear(s)},Ho=e=>{const{element:t,tabContent:s,content:n,nav:o}=e,{tab:i}=H(o)&&ae.get(o)||{tab:null};if(s&&n&&h(n,k)){const{currentHeight:r,nextHeight:a}=ae.get(t)||{currentHeight:0,nextHeight:0};r!==a?setTimeout(()=>{s.style.height=`${a}px`,_t(s),_(s,()=>Po(e))},50):Po(e)}else o&&u.clear(o);So.relatedTarget=i,w(t,So)},xo=e=>{const{element:t,content:s,tabContent:n,nav:o}=e,{tab:i,content:r}=o&&ae.get(o)||{tab:null,content:null};let a=0;if(n&&s&&h(s,k)&&([r,s].forEach(c=>{c&&d(c,"overflow-hidden")}),a=r?r.scrollHeight:0),Ss.relatedTarget=i,Ao.relatedTarget=t,w(t,Ss),!Ss.defaultPrevented){if(s&&d(s,E),r&&v(r,E),n&&s&&h(s,k)){const c=s.scrollHeight;ae.set(t,{currentHeight:a,nextHeight:c,tab:null,content:null}),d(n,Ht),n.style.height=`${a}px`,_t(n),[r,s].forEach(l=>{l&&v(l,"overflow-hidden")})}s&&s&&h(s,k)?setTimeout(()=>{d(s,g),_(s,()=>{Ho(e)})},1):(s&&d(s,g),Ho(e)),i&&w(i,Ao)}},Do=e=>{const{nav:t}=e;if(!H(t))return{tab:null,content:null};const s=lt(E,t);let n=null;s.length===1&&!xt.some(i=>h(s[0].parentElement,i))?[n]=s:s.length>1&&(n=s[s.length-1]);const o=H(n)?z(n):null;return{tab:n,content:o}},Io=e=>{if(!H(e))return null;const t=M(e,`.${xt.join(",.")}`);return t?A(`.${xt[0]}-toggle`,t):null},Or=e=>{const t=M(e.target,_s),s=t&&_o(t);s&&(e.preventDefault(),s.show())};class Ps extends J{static selector=_s;static init=Lr;static getInstance=_o;constructor(t){super(t);const{element:s}=this,n=z(s);if(!n)return;const o=M(s,".nav"),i=M(n,".tab-content");this.nav=o,this.content=n,this.tabContent=i,this.dropdown=Io(s);const{tab:r}=Do(this);if(o&&!r){const a=A(_s,o),c=a&&z(a);c&&(d(a,E),d(c,g),d(c,E),I(s,Ie,"true"))}this._toggleEventListeners(!0)}get name(){return Co}show(){const{element:t,content:s,nav:n,dropdown:o}=this;if(n&&u.get(n)||h(t,E))return;const{tab:i,content:r}=Do(this);if(n&&i&&ae.set(n,{tab:i,content:r,currentHeight:0,nextHeight:0}),As.relatedTarget=t,!H(i)||(w(i,As),As.defaultPrevented))return;d(t,E),I(t,Ie,"true");const a=H(i)&&Io(i);if(a&&h(a,E)&&v(a,E),n){const c=()=>{i&&(v(i,E),I(i,Ie,"false")),o&&!h(o,E)&&d(o,E)};r&&(h(r,k)||s&&h(s,k))?u.set(n,c,1):c()}r&&(v(r,g),h(r,k)?_(r,()=>xo(this)):xo(this))}_toggleEventListeners=t=>{(t?L:O)(this.element,D,Or)};dispose(){this._toggleEventListeners(),super.dispose()}}const Q="toast",Lo="Toast",kr=`.${Q}`,Nr=`[${Te}="${Q}"]`,Mr=`[${it}="${Q}"]`,jt="showing",Oo="hide",Br={animation:!0,autohide:!0,delay:5e3},Hs=e=>R(e,Lo),Rr=e=>new xs(e),ko=T(`show.bs.${Q}`),Fr=T(`shown.bs.${Q}`),No=T(`hide.bs.${Q}`),Wr=T(`hidden.bs.${Q}`),Mo=e=>{const{element:t,options:s}=e;v(t,jt),u.clear(t,jt),w(t,Fr),s.autohide&&u.set(t,()=>e.hide(),s.delay,Q)},Bo=e=>{const{element:t}=e;v(t,jt),v(t,g),d(t,Oo),u.clear(t,Q),w(t,Wr)},jr=e=>{const{element:t,options:s}=e;d(t,jt),s.animation?(_t(t),_(t,()=>Bo(e))):Bo(e)},zr=e=>{const{element:t,options:s}=e;u.set(t,()=>{v(t,Oo),_t(t),d(t,g),d(t,jt),s.animation?_(t,()=>Mo(e)):Mo(e)},17,jt)};function Kr(e){const t=z(this),s=t&&Hs(t);ot(this)||s&&(this.tagName==="A"&&e.preventDefault(),s.relatedTarget=this,s.show())}const Vr=e=>{const t=e.target,s=Hs(t),{type:n,relatedTarget:o}=e;!s||t===o||t.contains(o)||([me,Oe].includes(n)?u.clear(t,Q):u.set(t,()=>s.hide(),s.options.delay,Q))};class xs extends J{static selector=kr;static init=Rr;static getInstance=Hs;constructor(t,s){super(t,s);const{element:n,options:o}=this;o.animation&&!h(n,k)?d(n,k):!o.animation&&h(n,k)&&v(n,k),this.dismiss=A(Nr,n),this.triggers=[...Y(Mr,b(n))].filter(i=>z(i)===n),this._toggleEventListeners(!0)}get name(){return Lo}get defaults(){return Br}get isShown(){return h(this.element,g)}show=()=>{const{element:t,isShown:s}=this;!t||s||(w(t,ko),ko.defaultPrevented||zr(this))};hide=()=>{const{element:t,isShown:s}=this;!t||!s||(w(t,No),No.defaultPrevented||jr(this))};_toggleEventListeners=t=>{const s=t?L:O,{element:n,triggers:o,dismiss:i,options:r,hide:a}=this;i&&s(i,D,a),r.autohide&&[Oe,Rs,me,ke].forEach(c=>s(n,c,Vr)),o.length&&o.forEach(c=>{s(c,D,Kr)})};dispose(){const{element:t,isShown:s}=this;this._toggleEventListeners(),u.clear(t,Q),s&&v(t,g),super.dispose()}}const Ds=new Map;[Ve,Xe,ts,es,ls,ms,bs,$s,Cs,Ps,xs,Pe].forEach(e=>Ds.set(e.prototype.name,e));const Xr=(e,t)=>{[...t].forEach(s=>e(s))},qr=(e,t)=>{const s=Ct.getAllFor(e);s&&[...s].forEach(([n,o])=>{t.contains(n)&&o.dispose()})},Is=e=>{const t=e&&e.nodeName?e:document,s=[...Ke("*",t)];Ds.forEach(n=>{const{init:o,selector:i}=n;Xr(o,s.filter(r=>Gs(r,i)))})},Ur=e=>{const t=e&&e.nodeName?e:document;Ds.forEach(s=>{qr(s.prototype.name,t)})};return document.body?Is():L(document,"DOMContentLoaded",()=>Is(),{once:!0}),N.Alert=Ve,N.Button=Xe,N.Carousel=ts,N.Collapse=es,N.Dropdown=ls,N.Modal=ms,N.Offcanvas=bs,N.Popover=$s,N.ScrollSpy=Cs,N.Tab=Ps,N.Toast=xs,N.Tooltip=Pe,N.initCallback=Is,N.removeDataAPI=Ur,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}),N}({});
|
|
2
2
|
//# sourceMappingURL=bootstrap-native.js.map
|