UNPKG

bootstrap-italia

Version:

Bootstrap Italia è un tema Bootstrap 5 per la creazione di applicazioni web nel pieno rispetto delle linee guida di design per i siti internet e i servizi digitali della PA

1 lines 1.05 MB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(this,(function(){"use strict";!function(){const e={NODE_ENV:"production"};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}}();const e="data-focus-mouse",t="focus--mouse";class i{constructor(){this._usingMouse=!1,this._bindEvents()}_bindEvents(){if("undefined"==typeof document)return;["keydown","mousedown"].forEach((e=>{document.addEventListener(e,(e=>{this._usingMouse="mousedown"===e.type}))})),document.addEventListener("focusin",(i=>{this._usingMouse&&i.target&&(i.target.classList.add(t),i.target.setAttribute(e,!0))})),document.addEventListener("focusout",(i=>{i.target&&(i.target.classList.remove(t),i.target.setAttribute(e,!1))}))}}new i;const n=()=>{"undefined"==typeof window||window.BOOTSTRAP_ITALIA_VERSION||(new i,window.BOOTSTRAP_ITALIA_VERSION="2.13.4")};n();const s={ck3:{}},r={rememberChoice:(e,t)=>{s.ck3[e]=t,localStorage.setItem("bs-ck3",JSON.stringify(s.ck3))},isChoiceRemembered:e=>(s.ck3=JSON.parse(localStorage.getItem("bs-ck3")||"{}"),s.ck3[e]||!1),clearAllRememberedChoices:()=>{localStorage.removeItem("bs-ck3")}},a="splide",o=`data-${a}`,l={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,DESTROYED:5};function u(e){e.length=0}function c(e){return!f(e)&&"object"==typeof e}function d(e){return Array.isArray(e)}function h(e){return"string"==typeof e}function p(e){return void 0===e}function f(e){return null===e}function m(e){return e instanceof HTMLElement}function g(e){return d(e)?e:[e]}function y(e,t){g(e).forEach(t)}function _(e,t){return e.indexOf(t)>-1}function v(e,t){return e.push(...g(t)),e}const b=Array.prototype;function T(e,t,i){return b.slice.call(e,t,i)}function w(e,t,i){e&&y(t,(t=>{t&&e.classList[i?"add":"remove"](t)}))}function S(e,t){w(e,h(t)?t.split(" "):t,!0)}function E(e,t){y(t,e.appendChild.bind(e))}function C(e,t){y(e,(e=>{const i=t.parentNode;i&&i.insertBefore(e,t)}))}function k(e,t){return m(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function x(e,t){return e?T(e.children).filter((e=>k(e,t))):[]}function I(e,t){return t?x(e,t)[0]:e.firstElementChild}function A(e,t,i){if(e){let n=Object.keys(e);n=i?n.reverse():n;for(let i=0;i<n.length;i++){const s=n[i];if("__proto__"!==s&&!1===t(e[s],s))break}}return e}function O(e){return T(arguments,1).forEach((t=>{A(t,((i,n)=>{e[n]=t[n]}))})),e}function L(e,t){return A(t,((t,i)=>{d(t)?e[i]=t.slice():c(t)?e[i]=L(c(e[i])?e[i]:{},t):e[i]=t})),e}function P(e,t){e&&y(t,(t=>{e.removeAttribute(t)}))}function D(e,t,i){c(t)?A(t,((t,i)=>{D(e,i,t)})):f(i)?P(e,t):e.setAttribute(t,String(i))}function M(e,t,i){const n=document.createElement(e);return t&&(h(t)?S(n,t):D(n,t)),i&&E(i,n),n}function N(e,t,i){if(p(i))return getComputedStyle(e)[t];if(!f(i)){const{style:n}=e;i=`${i}`,n[t]!==i&&(n[t]=i)}}function R(e,t){N(e,"display",t)}function U(e,t){return e.getAttribute(t)}function F(e,t){return e&&e.classList.contains(t)}function B(e){return e.getBoundingClientRect()}function j(e){y(e,(e=>{e&&e.parentNode&&e.parentNode.removeChild(e)}))}function $(e){return I((new DOMParser).parseFromString(e,"text/html").body)}function q(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function V(e,t){return e&&e.querySelector(t)}function H(e,t){return T(e.querySelectorAll(t))}function z(e,t){w(e,t,!1)}function W(e){return h(e)?e:e?`${e}px`:""}function G(e,t=""){if(!e)throw new Error(`[${a}] ${t}`)}function X(e){setTimeout(e)}const K=()=>{};function Y(e){return requestAnimationFrame(e)}const{min:Q,max:J,floor:Z,ceil:ee,abs:te}=Math;function ie(e,t,i,n){const s=Q(t,i),r=J(t,i);return n?s<e&&e<r:s<=e&&e<=r}function ne(e,t,i){const n=Q(t,i),s=J(t,i);return Q(J(n,e),s)}function se(e){return+(e>0)-+(e<0)}function re(e,t){return y(t,(t=>{e=e.replace("%s",`${t}`)})),e}function ae(e){return e<10?`0${e}`:`${e}`}const oe={};const le="mounted",ue="ready",ce="move",de="moved",he="shifted",pe="click",fe="visible",me="hidden",ge="slide:keydown",ye="refresh",_e="updated",ve="resize",be="resized",Te="repositioned",we="scroll",Se="scrolled",Ee="destroy",Ce="navigation:mounted",ke="lazyload:loaded";function xe(e){const{event:t}=e,i={};let n=[];function s(e,t,i){r(e,t,((e,t)=>{n=n.filter((n=>!!(n[0]!==e||n[1]!==t||i&&n[2]!==i)||(e.removeEventListener(t,n[2],n[3]),!1)))}))}function r(e,t,i){y(e,(e=>{e&&t.split(" ").forEach(i.bind(null,e))}))}function a(){n=n.filter((e=>s(e[0],e[1]))),t.offBy(i)}return t.on(Ee,a,i),{on:function(e,n,s){t.on(e,n,i,s)},off:function(e){t.off(e,i)},emit:t.emit,bind:function(e,t,i,s){r(e,t,((e,t)=>{n.push([e,t,i,s]),e.addEventListener(t,i,s)}))},unbind:s,destroy:a}}function Ie(e,t,i,n){const{now:s}=Date;let r,a,o=0,l=!0,u=0;function c(){if(!l){const a=s()-r;if(a>=e?(o=1,r=s()):o=a/e,i&&i(o),1===o&&(t(),n&&++u>=n))return d();Y(c)}}function d(){l=!0}function h(){cancelAnimationFrame(a),o=0,a=0,l=!0}return{start:function(t){!t&&h(),r=s()-(t?o*e:0),l=!1,Y(c)},rewind:function(){r=s(),o=0,i&&i(o)},pause:d,cancel:h,set:function(t){e=t},isPaused:function(){return l}}}function Ae(e,t){let i;return function(){i||(i=Ie(0,(()=>{e.apply(this,arguments),i=null}),null,1),i.start())}}const Oe="ttb",Le={marginRight:["marginBottom","marginLeft"],autoWidth:["autoHeight"],fixedWidth:["fixedHeight"],paddingLeft:["paddingTop","paddingRight"],paddingRight:["paddingBottom","paddingLeft"],width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp","ArrowRight"],ArrowRight:["ArrowDown","ArrowLeft"]};const Pe=a,De=`${a}__slider`,Me=`${a}__track`,Ne=`${a}__list`,Re=`${a}__slide`,Ue=`${Re}--clone`,Fe=`${Re}__container`,Be=`${a}__arrows`,je=`${a}__arrow`,$e=`${je}--prev`,qe=`${je}--next`,Ve=`${a}__pagination`,He=`${a}__progress`,ze=`${He}__bar`,We=`${a}__autoplay`,Ge=`${a}__play`,Xe=`${a}__pause`,Ke="is-active",Ye="is-prev",Qe="is-next",Je="is-visible",Ze="is-loading",et=[Ke,Je,Ye,Qe,Ze],tt={slide:Re,clone:Ue,arrows:Be,arrow:je,prev:$e,next:qe,pagination:Ve,page:`${Ve}__page`,spinner:`${a}__spinner`};const it="role",nt="aria-controls",st="aria-current",rt="aria-label",at="aria-hidden",ot="tabindex",lt="aria-orientation",ut=[it,nt,st,rt,at,lt,ot,"disabled"],ct="slide",dt="loop",ht="fade";function pt(e,t,i,n){const{on:s,emit:r,bind:a,destroy:o}=xe(e),{Components:l,root:u,options:c}=e,{isNavigation:d,updateOnMove:h}=c,{resolve:p}=l.Direction,f=U(n,"style"),m=i>-1,g=I(n,`.${Fe}`),y=c.focusableNodes&&H(n,c.focusableNodes);let _;function v(){const s=m?i:t,r=re(c.i18n.slideX,s+1),a=e.splides.map((e=>e.splide.root.id)).join(" ");D(n,rt,r),D(n,nt,a),D(n,it,"menuitem"),S(E())}function b(){_||T()}function T(){if(!_){const{index:i}=e;S(E()),function(e){const t=!e&&(!E()||m);D(n,at,t||null),D(n,ot,!t&&c.slideFocus?0:null),y&&y.forEach((e=>{D(e,ot,t?-1:null)}));e!==F(n,Je)&&(w(n,Je,e),r(e?fe:me,C))}(function(){if(e.is(ht))return E();const t=B(l.Elements.track),i=B(n),s=p("left"),r=p("right");return Z(t[s])<=ee(i[s])&&Z(i[r])<=ee(t[r])}()),w(n,Ye,t===i-1),w(n,Qe,t===i+1)}}function S(e){e!==F(n,Ke)&&(w(n,Ke,e),d&&D(n,st,e||null),r(e?"active":"inactive",C))}function E(){const{index:n}=e;return n===t||c.cloneStatus&&n===i}const C={index:t,slideIndex:i,slide:n,container:g,isClone:m,mount:function(){m||(n.id=`${u.id}-slide${ae(t+1)}`),a(n,"click keydown",(e=>{r("click"===e.type?pe:ge,C,e)})),s([ye,Te,he,de,Se],T),s(Ce,v),h&&s(ce,b)},destroy:function(){_=!0,o(),z(n,et),P(n,ut),D(n,"style",f)},update:T,style:function(e,t,i){N(i&&g||n,e,t)},isWithin:function(i,n){let s=te(i-t);return m||!c.rewind&&!e.is(dt)||(s=Q(s,e.length-s)),s<=n}};return C}const ft=`${o}-interval`;const mt={passive:!1,capture:!0},gt="touchmove mousemove",yt="touchend touchcancel mouseup";const _t=["Left","Right","Up","Down"],vt="keydown";const bt=`${o}-lazy`,Tt=`${bt}-srcset`,wt=`[${bt}], [${Tt}]`;const St=[" ","Enter","Spacebar"];var Et=Object.freeze({__proto__:null,Options:function(e,t,i){const n=Ae(u);let s,r,a;function l(e){e&&removeEventListener("resize",n)}function u(){const t=(n=e=>e[1].matches,T(r).filter(n)[0]||[]);var n;t[0]!==a&&function(t){const n=i.breakpoints[t]||s;n.destroy?(e.options=s,e.destroy("completely"===n.destroy)):(e.state.is(5)&&(l(!0),e.mount()),e.options=n)}(a=t[0])}return{setup:function(){try{L(i,JSON.parse(U(e.root,o)))}catch(e){G(!1,e.message)}s=L({},i);const{breakpoints:t}=i;if(t){const e="min"===i.mediaQuery;r=Object.keys(t).sort(((t,i)=>e?+i-+t:+t-+i)).map((t=>[t,matchMedia(`(${e?"min":"max"}-width:${t}px)`)])),u()}},mount:function(){r&&addEventListener("resize",n)},destroy:l}},Direction:function(e,t,i){return{resolve:function(e,t){const{direction:n}=i;return Le[e]["rtl"!==n||t?n===Oe?0:-1:1]||e},orient:function(e){return e*("rtl"===i.direction?1:-1)}}},Elements:function(e,t,i){const{on:n}=xe(e),{root:s}=e,r={},o=[];let l,c,d,h;function p(){!function(){c=I(s,`.${De}`),d=V(s,`.${Me}`),h=I(d,`.${Ne}`),G(d&&h,"A track/list element is missing."),v(o,x(h,`.${Re}:not(.${Ue})`));const e=y(`.${We}`),t=y(`.${Be}`);O(r,{root:s,slider:c,track:d,list:h,slides:o,arrows:t,autoplay:e,prev:V(t,`.${$e}`),next:V(t,`.${qe}`),bar:V(y(`.${He}`),`.${ze}`),play:V(e,`.${Ge}`),pause:V(e,`.${Xe}`)})}(),function(){const e=s.id||(t=a,`${t}${ae(oe[t]=(oe[t]||0)+1)}`);var t;s.id=e,d.id=d.id||`${e}-track`,h.id=h.id||`${e}-list`}(),S(s,l=_())}function f(){[s,d,h].forEach((e=>{P(e,"style")})),u(o),z(s,l)}function m(){f(),p()}function g(){z(s,l),S(s,l=_())}function y(e){return I(s,e)||I(c,e)}function _(){return[`${Pe}--${i.type}`,`${Pe}--${i.direction}`,i.drag&&`${Pe}--draggable`,i.isNavigation&&`${Pe}--nav`,Ke]}return O(r,{setup:p,mount:function(){n(ye,m,8),n(_e,g)},destroy:f})},Slides:function(e,t,i){const{on:n,emit:s,bind:r}=xe(e),{slides:a,list:o}=t.Elements,l=[];function c(){a.forEach(((e,t)=>{f(e,t,-1)}))}function d(){b((e=>{e.destroy()})),u(l)}function p(){d(),c()}function f(t,i,n){const s=pt(e,i,n,t);s.mount(),l.push(s)}function v(e){return e?T((e=>!e.isClone)):l}function b(e,t){v(t).forEach(e)}function T(e){return l.filter("function"==typeof e?e:t=>h(e)?k(t.slide,e):_(g(e),t.index))}return{mount:function(){c(),n(ye,p),n([le,ye],(()=>{l.sort(((e,t)=>e.index-t.index))}))},destroy:d,update:function(){b((e=>{e.update()}))},register:f,get:v,getIn:function(e){const{Controller:n}=t,s=n.toIndex(e),r=n.hasFocus()?1:i.perPage;return T((e=>ie(e.index,s,s+r-1)))},getAt:function(e){return T(e)[0]},add:function(e,t){y(e,(e=>{if(h(e)&&(e=$(e)),m(e)){const n=a[t];n?C(e,n):E(o,e),S(e,i.classes.slide),function(e,t){const i=H(e,"img");let{length:n}=i;n?i.forEach((e=>{r(e,"load error",(()=>{--n||t()}))})):t()}(e,s.bind(null,ve))}})),s(ye)},remove:function(e){j(T(e).map((e=>e.slide))),s(ye)},forEach:b,filter:T,style:function(e,t,i){b((n=>{n.style(e,t,i)}))},getLength:function(e){return e?a.length:l.length},isEnough:function(){return l.length>i.perPage}}},Layout:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),{Slides:a}=t,{resolve:o}=t.Direction,{root:l,track:u,list:d}=t.Elements,{getAt:h}=a;let p,f;function m(){f=null,p=i.direction===Oe,N(l,"maxWidth",W(i.width)),N(u,o("paddingLeft"),y(!1)),N(u,o("paddingRight"),y(!0)),g()}function g(){const e=B(l);f&&f.width===e.width&&f.height===e.height||(N(u,"height",function(){let e="";p&&(e=_(),G(e,"height or heightRatio is missing."),e=`calc(${e} - ${y(!1)} - ${y(!0)})`);return e}()),a.style(o("marginRight"),W(i.gap)),a.style("width",(i.autoWidth?"":W(i.fixedWidth)||(p?"":v()))||null),a.style("height",W(i.fixedHeight)||(p?i.autoHeight?"":v():_())||null,!0),f=e,r(be))}function y(e){const{padding:t}=i,n=o(e?"right":"left");return t&&W(t[n]||(c(t)?0:t))||"0px"}function _(){return W(i.height||B(d).width*i.heightRatio)}function v(){const e=W(i.gap);return`calc((100%${e&&` + ${e}`})/${i.perPage||1}${e&&` - ${e}`})`}function b(e,t){const i=h(e);if(i){const e=B(i.slide)[o("right")],n=B(d)[o("left")];return te(e-n)+(t?0:T())}return 0}function T(){const e=h(0);return e&&parseFloat(N(e.slide,o("marginRight")))||0}return{mount:function(){m(),s(window,"resize load",Ae(r.bind(this,ve))),n([_e,ye],m),n(ve,g)},listSize:function(){return B(d)[o("width")]},slideSize:function(e,t){const i=h(e||0);return i?B(i.slide)[o("width")]+(t?0:T()):0},sliderSize:function(){return b(e.length-1,!0)-b(-1,!0)},totalSize:b,getPadding:function(e){return parseFloat(N(u,o("padding"+(e?"Right":"Left"))))||0}}},Clones:function(e,t,i){const{on:n,emit:s}=xe(e),{Elements:r,Slides:a}=t,{resolve:o}=t.Direction,l=[];let c;function d(){(c=g())&&(!function(t){const n=a.get().slice(),{length:s}=n;if(s){for(;n.length<t;)v(n,n);v(n.slice(-t),n.slice(0,t)).forEach(((o,u)=>{const c=u<t,d=function(t,n){const s=t.cloneNode(!0);return S(s,i.classes.clone),s.id=`${e.root.id}-clone${ae(n+1)}`,s}(o.slide,u);c?C(d,n[0].slide):E(r.list,d),v(l,d),a.register(d,u-t+(c?0:s),o.index)}))}}(c),s(ve))}function p(){j(l),u(l)}function f(){p(),d()}function m(){c<g()&&s(ye)}function g(){let{clones:t}=i;if(e.is(dt)){if(!t){const n=function(e,t){if(h(t)){const i=M("div",{style:`width: ${t}; position: absolute;`},e);t=B(i).width,j(i)}return t}(r.list,i[o("fixedWidth")]);t=(n&&ee(B(r.track)[o("width")]/n)||i[o("autoWidth")]&&e.length||i.perPage)*(i.drag?(i.flickMaxPages||1)+1:2)}}else t=0;return t}return{mount:function(){d(),n(ye,f),n([_e,ve],m)},destroy:p}},Move:function(e,t,i){const{on:n,emit:s}=xe(e),{slideSize:r,getPadding:a,totalSize:o,listSize:l,sliderSize:u}=t.Layout,{resolve:c,orient:d}=t.Direction,{list:h,track:f}=t.Elements;let m;function g(){S()||(t.Scroll.cancel(),y(e.index),s(Te))}function y(e){_(b(e,!0))}function _(t,i){if(!e.is(ht)){const n=i?t:function(t){if(e.is(dt)){const e=d(t-T()),i=E(!1,t)&&e<0,n=E(!0,t)&&e>0;(i||n)&&(t=v(t,n))}return t}(t);h.style.transform=`translate${c("X")}(${n}px)`,t!==n&&s(he)}}function v(e,t){const i=e-w(t),n=u();return e-=d(n*(ee(te(i)/n)||1))*(t?1:-1)}function b(t,n){const s=d(o(t-1)-function(e){const{focus:t}=i;return"center"===t?(l()-r(e,!0))/2:+t*r(e)||0}(t));return n?function(t){i.trimSpace&&e.is(ct)&&(t=ne(t,0,d(u()-l())));return t}(s):s}function T(){const e=c("left");return B(h)[e]-B(f)[e]+d(a(!1))}function w(e){return b(e?t.Controller.getEnd():0,!!i.trimSpace)}function S(){return e.state.is(4)&&i.waitForTransition}function E(e,t){t=p(t)?T():t;const i=!0!==e&&d(t)<d(w(!1)),n=!1!==e&&d(t)>d(w(!0));return i||n}return{mount:function(){m=t.Transition,n([le,be,_e,ye],g)},destroy:function(){P(h,"style")},move:function(n,r,a,o){if(!S()){const{set:l}=e.state,u=T();n!==r&&(m.cancel(),_(v(u,n>r),!0)),l(4),s(ce,r,a,n),m.start(r,(()=>{l(3),s(de,r,a,n),"move"===i.trimSpace&&n!==a&&u===T()?t.Controller.go(n>a?">":"<",!1,o):o&&o()}))}},jump:y,translate:_,shift:v,cancel:function(){_(T()),m.cancel()},toIndex:function(e){const i=t.Slides.get();let n=0,s=1/0;for(let t=0;t<i.length;t++){const r=i[t].index,a=te(b(r,!0)-e);if(!(a<=s))break;s=a,n=r}return n},toPosition:b,getPosition:T,getLimit:w,isBusy:S,exceededLimit:E}},Controller:function(e,t,i){const{on:n}=xe(e),{Move:s}=t,{getPosition:r,getLimit:a}=s,{isEnough:o,getLength:l}=t.Slides,u=e.is(dt),c=e.is(ct);let d,f,m,g=i.start||0,y=g;function _(){d=l(!0),f=i.perMove,m=i.perPage,g=ne(g,0,d-1)}function v(e,i,n,r,a){const o=i?e:I(e);t.Scroll.scroll(i||n?s.toPosition(o,!0):e,r,(()=>{A(s.toIndex(s.getPosition())),a&&a()}))}function b(e){return w(!1,e)}function T(e){return w(!0,e)}function w(e,t){const i=f||(O()?1:m),n=S(g+i*(e?-1:1),g);return-1!==n||!c||(s=r(),o=a(!e),l=1,te(s-o)<l)?t?n:C(n):e?0:E();var s,o,l}function S(e,t,n){if(o()){const s=E();e<0||e>s?e=ie(0,e,t,!0)||ie(s,t,e,!0)?k(x(e)):u?f||O()?e:e<0?-(d%m||m):d:i.rewind?e<0?s:0:-1:n||e===t||(e=f?e:k(x(t)+(e<t?-1:1)))}else e=-1;return e}function E(){let e=d-m;return(O()||u&&f)&&(e=d-1),J(e,0)}function C(e){return u?o()?e%d+(e<0?d:0):-1:e}function k(e){return ne(O()?e:m*e,0,E())}function x(e){return O()||(e=ie(e,d-m,d-1)?d-1:e,e=Z(e/m)),e}function I(e){const t=s.toIndex(e);return c?ne(t,0,E()):t}function A(e){e!==g&&(y=g,g=e)}function O(){return!p(i.focus)||i.isNavigation}return{mount:function(){_(),n([_e,ye],_,9)},go:function(e,t,n){const r=function(e){let t=g;if(h(e)){const[,i,n]=e.match(/([+\-<>])(\d+)?/)||[];"+"===i||"-"===i?t=S(g+ +`${i}${+n||1}`,g,!0):">"===i?t=n?k(+n):b(!0):"<"===i&&(t=T(!0))}else t=u?e:ne(e,0,E());return t}(e);if(i.useScroll)v(r,!0,!0,i.speed,n);else{const e=C(r);e>-1&&!s.isBusy()&&(t||e!==g)&&(A(e),s.move(r,e,y,n))}},scroll:v,getNext:b,getPrev:T,getAdjacent:w,getEnd:E,setIndex:A,getIndex:function(e){return e?y:g},toIndex:k,toPage:x,toDest:I,hasFocus:O}},Arrows:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),{classes:a,i18n:o}=i,{Elements:l,Controller:u}=t;let c,d=l.arrows,h=l.prev,p=l.next;const f={};function m(){if(i.arrows&&(h&&p||(d=M("div",a.arrows),h=g(!0),p=g(!1),c=!0,E(d,[h,p]),C(d,I("slider"===i.arrows&&l.slider||e.root)))),h&&p)if(f.prev)R(d,!1===i.arrows?"none":"");else{const{id:e}=l.track;D(h,nt,e),D(p,nt,e),f.prev=h,f.next=p,function(){const{go:e}=u;n([le,de,_e,ye,Se],y),s(p,"click",(()=>{e(">",!0)})),s(h,"click",(()=>{e("<",!0)}))}(),r("arrows:mounted",h,p)}}function g(e){return $(`<button class="${a.arrow} ${e?a.prev:a.next}" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40"><path d="${i.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z"}" />`)}function y(){const t=e.index,i=u.getPrev(),n=u.getNext(),s=i>-1&&t<i?o.last:o.prev,a=n>-1&&t>n?o.first:o.next;h.disabled=i<0,p.disabled=n<0,D(h,rt,s),D(p,rt,a),r("arrows:updated",h,p,i,n)}return{arrows:f,mount:function(){m(),n(_e,m)},destroy:function(){c?j(d):(P(h,ut),P(p,ut))}}},Autoplay:function(e,t,i){const{on:n,bind:s,emit:r}=xe(e),a=Ie(i.interval,e.go.bind(e,">"),(function(e){const{bar:t}=l;t&&N(t,"width",100*e+"%"),r("autoplay:playing",e)})),{isPaused:o}=a,{Elements:l}=t;let u,c,d;function h(e){const t=e?"pause":"play",n=l[t];n&&(D(n,nt,l.track.id),D(n,rt,i.i18n[t]),s(n,"click",e?f:p))}function p(){o()&&t.Slides.isEnough()&&(a.start(!i.resetProgress),c=u=d=!1,r("autoplay:play"))}function f(e=!0){o()||(a.pause(),r("autoplay:pause")),d=e}function m(){d||(u||c?f(!1):p())}function g(){const n=t.Slides.getAt(e.index);a.set(n&&+U(n.slide,ft)||i.interval)}return{mount:function(){const{autoplay:e}=i;e&&(h(!0),h(!1),function(){const{root:e}=l;i.pauseOnHover&&s(e,"mouseenter mouseleave",(e=>{u="mouseenter"===e.type,m()}));i.pauseOnFocus&&s(e,"focusin focusout",(e=>{c="focusin"===e.type,m()}));n([ce,we,ye],a.rewind),n(ce,g)}(),"pause"!==e&&p())},destroy:a.cancel,play:p,pause:f,isPaused:o}},Cover:function(e,t,i){const{on:n}=xe(e);function s(e){t.Slides.forEach((t=>{const i=I(t.container||t.slide,"img");i&&i.src&&r(e,i,t)}))}function r(e,t,i){i.style("background",e?`center/cover no-repeat url("${t.src}")`:"",!0),R(t,e?"none":"")}return{mount:function(){i.cover&&(n(ke,((e,t)=>{r(!0,e,t)})),n([le,_e,ye],s.bind(null,!0)))},destroy:function(){s(!1)}}},Scroll:function(e,t,i){const{on:n,emit:s}=xe(e),{Move:r}=t,{getPosition:a,getLimit:o,exceededLimit:l}=r;let u,c;function d(t,n,f,m){const g=a();let y=1;var _;n=n||(_=te(t-g),J(_/1.5,800)),c=f,p(),u=Ie(n,h,(n=>{const s=a(),u=(g+(t-g)*function(e){const{easingFunc:t}=i;return t?t(e):1-Math.pow(1-e,4)}(n)-a())*y;var c;r.translate(s+u),e.is(ct)&&!m&&l()&&(y*=.6,te(u)<10&&(c=l(!1),d(o(!c),600,null,!0)))}),1),s(we),u.start()}function h(){const t=a(),i=r.toIndex(t);ie(i,0,e.length-1)||r.translate(r.shift(t,i>0),!0),c&&c(),s(Se)}function p(){u&&u.cancel()}function f(){u&&!u.isPaused()&&(p(),h())}return{mount:function(){n(ce,p),n([_e,ye],f)},destroy:p,scroll:d,cancel:f}},Drag:function(e,t,i){const{on:n,emit:s,bind:r,unbind:a}=xe(e),{Move:o,Scroll:l,Controller:u}=t,{track:d}=t.Elements,{resolve:h,orient:p}=t.Direction,{getPosition:f,exceededLimit:m}=o;let g,y,_,v,b,T,w,S,E,C=!1;function x(){const{drag:e}=i;U(!e),b="free"===e}function I(e){if(!S){const{noDrag:t}=i,n=R(e),s=!t||!k(e.target,t);w=!1,!s||!n&&e.button||(o.isBusy()?q(e,!0):(E=n?d:window,_=null,v=null,r(E,gt,A,mt),r(E,yt,O,mt),o.cancel(),l.cancel(),L(e)))}}function A(t){if(v||s("drag"),v=t,t.cancelable){const n=M(t)-M(y);if(T){o.translate(g+function(t){return t/(C&&e.is(ct)?5:1)}(n));const i=N(t)-N(y)>200,r=C!==(C=m());(i||r)&&L(t),s("dragging"),w=!0,q(t)}else{let{dragMinThreshold:e}=i;e=c(e)?e:{mouse:0,touch:+e||10},T=te(n)>(R(t)?e.touch:e.mouse),D()&&q(t)}}}function O(n){a(E,gt,A),a(E,yt,O);const{index:r}=e;if(v){if(T||n.cancelable&&D()){const s=function(t){if(e.is(dt)||!C){const e=y===v&&_||y,i=M(v)-M(e),n=N(t)-N(e),s=N(t)-N(v)<200;if(n&&s)return i/n}return 0}(n),a=function(e){return f()+se(e)*Q(te(e)*(i.flickPower||600),b?1/0:t.Layout.listSize()*(i.flickMaxPages||1))}(s);b?u.scroll(a):e.is(ht)?u.go(r+p(se(s))):u.go(u.toDest(a),!0),q(n)}s("dragged")}else b||f()===o.toPosition(r)||u.go(r,!0);T=!1}function L(e){_=y,y=e,g=f()}function P(e){!S&&w&&q(e,!0)}function D(){return te(M(v)-M(y))>te(M(v,!0)-M(y,!0))}function M(e,t){return(R(e)?e.touches[0]:e)[`page${h(t?"Y":"X")}`]}function N(e){return e.timeStamp}function R(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function U(e){S=e}return{mount:function(){r(d,gt,K,mt),r(d,yt,K,mt),r(d,"touchstart mousedown",I,mt),r(d,"click",P,{capture:!0}),r(d,"dragstart",q),n([le,_e],x)},disable:U,isDragging:function(){return T}}},Keyboard:function(e,t,i){const{on:n,bind:s,unbind:r}=xe(e),{root:a}=e,{resolve:o}=t.Direction;let l,u;function c(){const{keyboard:e}=i;e&&("focused"===e?(l=a,D(a,ot,0)):l=window,s(l,vt,f))}function d(){r(l,vt),m(l)&&P(l,ot)}function h(){const e=u;u=!0,X((()=>{u=e}))}function p(){d(),c()}function f(t){if(!u){const{key:i}=t,n=_(_t,i)?`Arrow${i}`:i;n===o("ArrowLeft")?e.go("<"):n===o("ArrowRight")&&e.go(">")}}return{mount:function(){c(),n(_e,p),n(ce,h)},destroy:d,disable:function(e){u=e}}},LazyLoad:function(e,t,i){const{on:n,off:s,bind:r,emit:a}=xe(e),o="sequential"===i.lazyLoad;let l=[],u=0;function c(){h(),d()}function d(){t.Slides.forEach((e=>{H(e.slide,wt).forEach((t=>{const n=U(t,bt),s=U(t,Tt);if(n!==t.src||s!==t.srcset){const r=i.classes.spinner,a=t.parentElement,o=I(a,`.${r}`)||M("span",r,a);D(o,it,"presentation"),l.push({_img:t,_Slide:e,src:n,srcset:s,_spinner:o}),!t.src&&R(t,"none")}}))})),o&&m()}function h(){u=0,l=[]}function p(){l=l.filter((t=>{const n=i.perPage*((i.preloadPages||1)+1)-1;return!t._Slide.isWithin(e.index,n)||f(t)})),l.length||s(de)}function f(e){const{_img:t}=e;S(e._Slide.slide,Ze),r(t,"load error",(t=>{!function(e,t){const{_Slide:i}=e;z(i.slide,Ze),t||(j(e._spinner),R(e._img,""),a(ke,e._img,i),a(ve));o&&m()}(e,"error"===t.type)})),["srcset","src"].forEach((i=>{e[i]&&(D(t,i,e[i]),P(t,"src"===i?bt:Tt))}))}function m(){u<l.length&&f(l[u++])}return{mount:function(){i.lazyLoad&&(d(),n(ye,c),o||n([le,ye,de,Se],p))},destroy:h}},Pagination:function(e,t,i){const{on:n,emit:s,bind:r,unbind:a}=xe(e),{Slides:o,Elements:l,Controller:c}=t,{hasFocus:d,getIndex:h}=c,p=[];let f;function m(){g(),i.pagination&&o.isEnough()&&(!function(){const{length:t}=e,{classes:n,i18n:s,perPage:a}=i,u="slider"===i.pagination&&l.slider||l.root,c=d()?t:ee(t/a);f=M("ul",n.pagination,u);for(let e=0;e<c;e++){const t=M("li",null,f),i=M("button",{class:n.page,type:"button"},t),l=o.getIn(e).map((e=>e.slide.id)),u=!d()&&a>1?s.pageX:s.slideX;r(i,"click",y.bind(null,e)),D(i,nt,l.join(" ")),D(i,rt,re(u,e+1)),p.push({li:t,button:i,page:e})}}(),s("pagination:mounted",{list:f,items:p},_(e.index)),v())}function g(){f&&(j(f),p.forEach((e=>{a(e.button,"click")})),u(p),f=null)}function y(e){c.go(`>${e}`,!0,(()=>{const t=o.getAt(c.toIndex(e));var i;t&&((i=t.slide).setActive&&i.setActive()||i.focus({preventScroll:!0}))}))}function _(e){return p[c.toPage(e)]}function v(){const e=_(h(!0)),t=_(h());e&&(z(e.button,Ke),P(e.button,st)),t&&(S(t.button,Ke),D(t.button,st,!0)),s("pagination:updated",{list:f,items:p},e,t)}return{items:p,mount:function(){m(),n([_e,ye],m),n([ce,Se],v)},destroy:g,getAt:_,update:v}},Sync:function(e,t,i){const{list:n}=t.Elements,s=[];function r(){e.splides.forEach((t=>{var i;!t.isParent&&(i=t.splide,[e,i].forEach((t=>{const n=xe(t),r=t===e?i:e;n.on(ce,((e,t,i)=>{r.go(r.is(dt)?i:e)})),s.push(n)})))})),i.isNavigation&&function(){const t=xe(e),{on:i}=t;i(pe,l),i(ge,c),i([le,_e],o),D(n,it,"menu"),s.push(t),t.emit(Ce,e.splides)}()}function a(){P(n,ut),s.forEach((e=>{e.destroy()})),u(s)}function o(){D(n,lt,i.direction!==Oe?"horizontal":null)}function l(t){e.go(t.index)}function c(e,t){_(St,t.key)&&(l(e),q(t))}return{mount:r,destroy:a,remount:function(){a(),r()}}},Wheel:function(e,t,i){const{bind:n}=xe(e);function s(n){if(n.cancelable){const{deltaY:s}=n;if(s){const r=s<0;e.go(r?"<":">"),function(n){return!i.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(n)}(r)&&q(n)}}}return{mount:function(){i.wheel&&n(t.Elements.track,"wheel",s,mt)}}}});const Ct={type:"slide",speed:400,waitForTransition:!0,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,keyboard:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",slideFocus:!0,trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",classes:tt,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay"}};function kt(e,t,i){const{on:n}=xe(e);return{mount:function(){n([le,ye],(()=>{X((()=>{t.Slides.style("transition",`opacity ${i.speed}ms ${i.easing}`)}))}))},start:function(e,i){const{track:n}=t.Elements;N(n,"height",W(B(n).height)),X((()=>{i(),N(n,"height","")}))},cancel:K}}function xt(e,t,i){const{bind:n}=xe(e),{Move:s,Controller:r}=t,{list:a}=t.Elements;let o;function l(){u("")}function u(e){N(a,"transition",e)}return{mount:function(){n(a,"transitionend",(e=>{e.target===a&&o&&(l(),o())}))},start:function(t,n){const a=s.toPosition(t,!0),l=s.getPosition(),c=function(t){const{rewindSpeed:n}=i;if(e.is(ct)&&n){const e=r.getIndex(!0),i=r.getEnd();if(0===e&&t>=i||e>=i&&0===t)return n}return i.speed}(t);te(a-l)>=1&&c>=1?(u(`transform ${c}ms ${i.easing}`),s.translate(a,!0),o=n):(s.jump(t),n())},cancel:l}}const It=class{constructor(e,t){this.event=function(){let e={};function t(t,n){i(t,((t,i)=>{const s=e[t];e[t]=s&&s.filter((e=>e._key?e._key!==n:n||e._namespace!==i))}))}function i(e,t){g(e).join(" ").split(" ").forEach((e=>{const i=e.split(".");t(i[0],i[1])}))}return{on:function(t,n,s,r=10){i(t,((t,i)=>{e[t]=e[t]||[],v(e[t],{_event:t,_callback:n,_namespace:i,_priority:r,_key:s}).sort(((e,t)=>e._priority-t._priority))}))},off:t,offBy:function(i){A(e,((e,n)=>{t(n,i)}))},emit:function(t){(e[t]||[]).forEach((e=>{e._callback.apply(e,T(arguments,1))}))},destroy:function(){e={}}}}(),this.Components={},this.state=function(e){let t=e;return{set:function(e){t=e},is:function(e){return _(g(e),t)}}}(1),this.splides=[],this._options={},this._Extensions={};const i=h(e)?V(document,e):e;G(i,`${i} is invalid.`),this.root=i,L(Ct,It.defaults),L(L(this._options,Ct),t||{})}mount(e,t){const{state:i,Components:n}=this;G(i.is([1,5]),"Already mounted!"),i.set(1),this._Components=n,this._Transition=t||this._Transition||(this.is(ht)?kt:xt),this._Extensions=e||this._Extensions;return A(O({},Et,this._Extensions,{Transition:this._Transition}),((e,t)=>{const i=e(this,n,this._options);n[t]=i,i.setup&&i.setup()})),A(n,(e=>{e.mount&&e.mount()})),this.emit(le),S(this.root,"is-initialized"),i.set(3),this.emit(ue),this}sync(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._Components.Sync.remount(),e.Components.Sync.remount()),this}go(e){return this._Components.Controller.go(e),this}on(e,t){return this.event.on(e,t,null,20),this}off(e){return this.event.off(e),this}emit(e){return this.event.emit(e,...T(arguments,1)),this}add(e,t){return this._Components.Slides.add(e,t),this}remove(e){return this._Components.Slides.remove(e),this}is(e){return this._options.type===e}refresh(){return this.emit(ye),this}destroy(e=!0){const{event:t,state:i}=this;return i.is(1)?t.on(ue,this.destroy.bind(this,e),this):(A(this._Components,(t=>{t.destroy&&t.destroy(e)}),!0),t.emit(Ee),t.destroy(),e&&u(this.splides),i.set(5)),this}get options(){return this._options}set options(e){const{_options:t}=this;L(t,e),this.state.is(1)||this.emit(_e,t)}get length(){return this._Components.Slides.getLength(!0)}get index(){return this._Components.Controller.getIndex()}};let At=It;At.defaults={},At.STATES=l;const Ot=new Map,Lt={set(e,t,i){Ot.has(e)||Ot.set(e,new Map);const n=Ot.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(e,t)=>Ot.has(e)&&Ot.get(e).get(t)||null,remove(e,t){if(!Ot.has(e))return;const i=Ot.get(e);i.delete(t),0===i.size&&Ot.delete(e)}},Pt="transitionend",Dt=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t},Mt=e=>{const t=Dt(e);return t&&document.querySelector(t)?t:null},Nt=e=>{const t=Dt(e);return t?document.querySelector(t):null},Rt=e=>{e.dispatchEvent(new Event(Pt))},Ut=e=>!(!e||"object"!=typeof e)&&void 0!==e.nodeType,Ft=e=>Ut(e)?e:"string"==typeof e&&e.length>0?document.querySelector(e):null,Bt=e=>{if(!Ut(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(!i)return t;if(i!==e){const t=e.closest("summary");if(t&&t.parentNode!==i)return!1;if(null===t)return!1}return t},jt=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),$t=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?$t(e.parentNode):null},qt=()=>{},Vt=e=>{e.offsetHeight},Ht=()=>"undefined"!=typeof window&&"undefined"!=typeof document&&"rtl"===document.documentElement.dir,zt=e=>{"function"==typeof e&&e()},Wt=(e,t,i=!0)=>{if(!i)return void zt(e);const n=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),s=Number.parseFloat(i);return n||s?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(t)+5;let s=!1;const r=({target:i})=>{i===t&&(s=!0,t.removeEventListener(Pt,r),zt(e))};t.addEventListener(Pt,r),setTimeout((()=>{s||Rt(t)}),n)},Gt=(e,t,i,n)=>{const s=e.length;let r=e.indexOf(t);return-1===r?!i&&n?e[s-1]:e[0]:(r+=i?1:-1,n&&(r=(r+s)%s),e[Math.max(0,Math.min(r,s-1))])},Xt=/[^.]*(?=\..*)\.|.*/,Kt=/\..*/,Yt=/::\d+$/,Qt={};let Jt=1;const Zt={mouseenter:"mouseover",mouseleave:"mouseout"},ei=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function ti(e,t){return t&&`${t}::${Jt++}`||e.uidEvent||Jt++}function ii(e){const t=ti(e);return e.uidEvent=t,Qt[t]=Qt[t]||{},Qt[t]}function ni(e,t,i=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===i))}function si(e,t,i){const n="string"==typeof t,s=n?i:t||i;let r=function(e){return e=e.replace(Kt,""),Zt[e]||e}(e);return ei.has(r)||(r=e),[n,s,r]}function ri(e,t,i,n,s){if("string"!=typeof t||!e)return;let[r,a,o]=si(t,i,n);if(t in Zt){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};a=e(a)}const l=ii(e),u=l[o]||(l[o]={}),c=ni(u,a,r?i:null);if(c)return void(c.oneOff=c.oneOff&&s);const d=ti(a,t.replace(Xt,"")),h=r?function(e,t,i){return function n(s){const r=e.querySelectorAll(t);for(let{target:a}=s;a&&a!==this;a=a.parentNode)for(const o of r)if(o===a)return ui(s,{delegateTarget:a}),n.oneOff&&li.off(e,s.type,t,i),i.apply(a,[s])}}(e,i,a):function(e,t){return function i(n){return ui(n,{delegateTarget:e}),i.oneOff&&li.off(e,n.type,t),t.apply(e,[n])}}(e,a);h.delegationSelector=r?i:null,h.callable=a,h.oneOff=s,h.uidEvent=d,u[d]=h,e.addEventListener(o,h,r)}function ai(e,t,i,n,s){const r=ni(t[i],n,s);r&&(e.removeEventListener(i,r,Boolean(s)),delete t[i][r.uidEvent])}function oi(e,t,i,n){const s=t[i]||{};for(const r of Object.keys(s))if(r.includes(n)){const n=s[r];ai(e,t,i,n.callable,n.delegationSelector)}}const li={on(e,t,i,n){ri(e,t,i,n,!1)},one(e,t,i,n){ri(e,t,i,n,!0)},off(e,t,i,n){if("string"!=typeof t||!e)return;const[s,r,a]=si(t,i,n),o=a!==t,l=ii(e),u=l[a]||{},c=t.startsWith(".");if(void 0===r){if(c)for(const i of Object.keys(l))oi(e,l,i,t.slice(1));for(const i of Object.keys(u)){const n=i.replace(Yt,"");if(!o||t.includes(n)){const t=u[i];ai(e,l,a,t.callable,t.delegationSelector)}}}else{if(!Object.keys(u).length)return;ai(e,l,a,r,s?i:null)}},trigger(e,t,i){if("string"!=typeof t||!e)return null;let n=new Event(t,{bubbles:!0,cancelable:!0});return n=ui(n,i),e.dispatchEvent(n),n}};function ui(e,t){for(const[i,n]of Object.entries(t||{}))try{e[i]=n}catch{Object.defineProperty(e,i,{configurable:!0,get:()=>n})}return e}function ci(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch{return e}}function di(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const hi={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${di(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${di(t)}`)},getDataAttributes(e){if(!e)return{};const t={},i=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=ci(e.dataset[n])}return t},getDataAttribute:(e,t)=>ci(e.getAttribute(`data-bs-${di(t)}`))};let pi=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const i=Ut(t)?hi.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Ut(t)?hi.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const n of Object.keys(t)){const s=t[n],r=e[n],a=Ut(r)?"element":null==(i=r)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${s}".`)}var i}};class fi extends pi{constructor(e,t){super(),(e=Ft(e))&&(this._element=e,this._config=this._getConfig(t),Lt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Lt.remove(this._element,this.constructor.DATA_KEY),li.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){Wt(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Lt.get(Ft(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.2.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const mi={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let n=e.parentNode.closest(t);for(;n;)i.push(n),n=n.parentNode.closest(t);return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!jt(e)&&Bt(e)))}},gi={slideFocus:!0,i18n:{prev:"Slide precedente",next:"Slide successiva",first:"Vai alla prima slide",last:"Vai all’ultima slide",slideX:"Vai alla slide %s",pageX:"Vai a pagina %s",play:"Attiva autoplay",pause:"Pausa autoplay"}},yi={"it-carousel-landscape-abstract-three-cols":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!1}}},"it-carousel-landscape-abstract-three-cols-arrow-visible":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!0,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!0},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!0}}},"it-big-img":{type:"loop",perPage:1,gap:48,padding:{left:320,right:320},arrows:!1,breakpoints:{768:{perPage:1,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:160,right:160},arrows:!1}}},"it-standard-image":{type:"loop",perPage:3,gap:24,padding:{left:48,right:48},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!1},992:{perPage:2,gap:24,padding:{left:48,right:48},arrows:!1}}},"it-carousel-landscape-abstract":{type:"slide",perPage:1,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:24,right:24},arrows:!1}}},"it-calendar-wrapper":{type:"slide",perPage:4,gap:0,padding:{left:0,right:0},arrows:!1,breakpoints:{560:{perPage:1,gap:0,padding:{left:24,right:24},arrows:!1},768:{perPage:2,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:3,gap:0,padding:{left:0,right:0},arrows:!1}}}};class _i extends fi{constructor(e){super(e),this._config=this._getConfig(),this._splide=new At(this._element,this._config),this._init()}dispose(){this._splide.destroy(),super.dispose()}static get NAME(){return"carousel"}_init(){this._splide.mount()}_getConfig(){let e=Object.assign({},gi);return Object.keys(yi).forEach((t=>{this._element.classList.contains(t)&&(e=Object.assign({},e,yi[t]))})),e}}"undefined"!=typeof window&&"undefined"!=typeof document&&li.on(window,"load.bs.carousel.data-api",(()=>{mi.find("[data-bs-carousel-splide]").forEach((e=>{_i.getOrCreateInstance(e)}))}));const vi=".bs.inputlabel",bi=`focus${vi}`,Ti=`blur${vi}`,wi=`change${vi}`,Si="active";class Ei{constructor(e){this._element=e,this._init()}static get NAME(){return"inputlabel"}static getInputFromLabel=e=>{if("undefined"!=typeof window&&"undefined"!=typeof document)return document.querySelector("#"+CSS.escape(e.getAttribute("for")))};_init(){const e=this._getLabel();e&&!e.classList.contains(Si)&&(this._labelOut(),this._labelOver()),e&&null===e.getAttribute("it-bs-static")&&this._bindEvents()}_bindEvents(){["date","time"].includes(this._element.getAttribute("type"))||("file"===this._element.getAttribute("type")?li.on(this._element,Ti,(()=>{this._labelOut()})):(li.on(this._element,bi,(()=>{this._labelOut()})),li.on(this._element,Ti,(()=>{this._labelOver()})),li.on(this._element,wi,(()=>{this._labelToggle()}))))}_getLabel(){return mi.findOne('label[for="'+this._element.getAttribute("id")+'"]')}_isEmpty(){return!this._element.value&&!this._element.getAttribute("placeholder")}_labelOut(){const e=this._getLabel();e&&e.classList.add(Si)}_labelOver(){if(this._isEmpty()){const e=this._getLabel();e&&e.classList.remove(Si)}}_labelToggle(){this._isEmpty()?this._labelOver():this._labelOut()}}const Ci=".bs.inputnumber",ki=`click${Ci}`,xi=`change${Ci}`,Ii=`click${Ci}.data-api`,Ai=".input-number",Oi='input[data-bs-input][type="number"]',Li='button[class^="input-number-"]';class Pi extends fi{constructor(e){super(e),this._wrapperElement=this._element.closest(Ai),this._label=new Ei(e),this._init(),this._bindEvents()}static get NAME(){return"inputnumber"}_init(){this._wrapperElement&&this._inputResize()}_bindEvents(){this._wrapperElement&&(mi.find(Li,this._wrapperElement).forEach((e=>{li.on(e,ki,(t=>{t.preventDefault(),this._incrDecr(e.classList.contains("input-number-sub")),this._label._labelOut()}))})),li.on(this._element,xi,(()=>this._checkLimit())))}_inputResize(){if(this._wrapperElement.classList.contains("input-number-adaptive")){let e=null;e="calc(70px + "+this._element.value.length+"ch)",e&&(this._element.style.width=e)}}_incrDecr(e){var t=0;if(""!==this._element.value&&(t=parseFloat(this._element.value)),!isNaN(t)){let i=parseFloat(this._element.getAttribute("step"));i||(i=1),this._element.value=t+i*(e?-1:1),li.trigger(this._element,xi),li.trigger(this._element,"input")}}_checkLimit(){const e=parseFloat(this._element.value);if(!isNaN(e)){let t=e;const i=parseFloat(this._element.getAttribute("max")),n=parseFloat(this._element.getAttribute("min"));n&&e<n&&(t=n),i&&e>i&&(t=i),this._element.value=t}this._inputResize()}}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(Oi+", label").forEach((function(e){const t=Ei.getInputFromLabel(e)||e;var i;(i=t)&&i.matches(Oi)&&i.parentNode.querySelector(Li)&&Pi.getOrCreateInstance(i)}))})),li.on(document,Ii,Li,(function(){const e=this.closest(Ai);if(e){const t=mi.findOne(Oi,e);t&&Pi.getOrCreateInstance(t)}})));const Di="show";class Mi extends fi{constructor(e){super(e),this._isShown=!e.matches("[aria-hidden=true]"),this._isTransitioning=!1}static get NAME(){return"dimmer"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove(Di),this._queueCallback((()=>this._hideElement()),this._element,e)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const e=this._isAnimated();this._element.removeAttribute("aria-hidden"),e&&Vt(this._element),this._element.classList.add(Di);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,e)}_hideElement(){this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}}"undefined"!=typeof window&&"undefined"!=typeof document&&li.on(document,"click.bs.dimmer.data-api",'[data-bs-toggle="dimmer"]',(function(){const e=Nt(this),t=Mi.getOrCreateInstance(e);this.checked?t.show():t.hide()}));const Ni=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,n=e.NAME;li.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),jt(this))return;const s=Nt(this)||this.closest(`.${n}`);e.getOrCreateInstance(s)[t]()}))},Ri=".bs.notification",Ui=`click${Ri}.data-api`,Fi=`hidden${Ri}`,Bi=`show${Ri}`,ji={timeout:0},$i="show";class qi extends fi{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=this._element.classList.contains($i),this._isTransitioning=!1,this._toId=null}static get NAME(){return"notification"}show(e,t){if(this._isShown||this._isTransitioning)return;const i=e||this._getElementTimeout(t);this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement(i)}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove($i),this._queueCallback((()=>this._hideElement()),this._element,e)}toggle(e){this._isShown?this.hide():this.show(null,e)}_isAnimated(){return this._element.classList.contains("fade")}_showElement(e){const t=this._isAnimated();this._element.style.display="block",this._element.removeAttribute("aria-hidden"),t&&Vt(this._element),this._element.classList.add($i);this._queueCallback((()=>{this._isTransitioning=!1,e&&this._setTimeout(e,(()=>this.hide()))}),this._element,t)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1}_getConfig(e){return e={...ji,...hi.getDataAttributes(this._element),..."object"==typeof e?e:{}}}_getElementTimeout(e){const t=e?parseInt(e.getAttribute("data-bs-timeout")):null;return t>0?t:this._config.timeout}_setTimeout(e,t){this._clearTimeout(),setTimeout(t,e)}_clearTimeout(){this._toId&&(clearTimeout(this._toId),this._toId=null)}}"undefined"!=typeof window&&"undefined"!=typeof document&&(li.on(document,Ui,'[data-bs-toggle="notification"]',(function(e){const t=Nt(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),li.one(t,Bi,(e=>{e.defaultPrevented||li.one(t,Fi,(()=>{Bt(this)&&this.focus()}))}));qi.getOrCreateInstance(t).toggle(this)})),Ni(qi));const Vi="cookiebar",Hi=".bs.cookiebar",zi=".data-api",Wi="cookies_consent",Gi=`close${Hi}`,Xi=`closed${Hi}`,Ki=`load${Hi}${zi}`,Yi=`click${Hi}${zi}`,Qi="show";class Ji extends fi{constructor(e){super(e),this._isShown=this._element.classList.contains(Qi),this._isTransitioning=!1}static get NAME(){return Vi}static get VERSION(){return"5.0.0"}show(){this._isShown||this._isTransitioning||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._showElement())}hide(){if(!this._isShown||this._isTransitioning)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._element.classList.remove(Qi),this._queueCallback((()=>this._hideElement()),this._element,e)}accept(e){e=e||this._element;const t=this._getRootElement(e);this._triggerCloseEvent(t).defaultPrevented||(this._setCookieEU(),this.hide())}static clearCookie(){"undefined"!=typeof document&&(document.cookie=Wi+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;")}_isAnimated(){return this._element.classList.contains("fade")}_showElement(){const e=this._isAnimated();this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-live","polite"),e&&Vt(this._element),this._element.classList.add(Qi);this._queueCallback((()=>{this._isTransitioning=!1}),this._element,e)}_hideElement(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-live"),this._isTransitioning=!1}_setCookieEU(){var e=new Date;e.setDate(e.getDate()+30);var t=escape("true")+"; expires="+e.toUTCString();"undefined"!=typeof document&&(document.cookie=Wi+"="+t+"; path=/; SameSite=Strict")}_getRootElement(e){const t=Nt(e);let i=null;return t&&(i=t),i||(i=e.closest(".cookiebar")),i}_triggerCloseEvent(e){return li.trigger(e,Gi)}_removeElement(e){e.classList.remove(Qi),e.setAttribute("aria-hidden","true"),e.setAttribute("aria-live","off"),li.trigger(e,Xi),this.dispose()}static _handleAccept(e){return function(t){t&&t.preventDefault(),e.close(this)}}static _handleConsent(e){return function(t){t&&t.preventDefault(),e.close(this)}}static _getCookieEU(){if("undefined"!=typeof document){var e,t,i,n=document.cookie.split(";");for(e=0;e<n.length;e++)if(t=n[e].substring(0,n[e].indexOf("=")),i=n[e].substring(n[e].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))==Wi)return unescape(i)}}}"undefined"!=typeof window&&"undefined"!=typeof document&&(li.on(document,Yi,'[data-bs-accept="cookiebar"]',(function(e){if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),jt(this))return;const t=Nt(this)||this.closest(`.${Vi}`);Ji.getOrCreateInstance(t).accept()})),li.on(window,Ki,(function(){if(!Ji._getCookieEU()){if("undefined"==typeof document)return;document.querySelectorAll(".cookiebar").forEach((e=>{Ji.getOrCreateInstance(e).show()}))}})));const Zi=()=>{if("undefined"!=typeof window)return window.matchMedia("(max-width: 991px)").matches},en=(e,t)=>{let i=null;return t.forEach(((t,n)=>{t===e&&(i=n)})),i},tn=(e,t,i)=>{i={isDirectionTop:!1,isLimit:!1,loop:!1,..."object"==typeof i?i:{}};const n=en(e,t);let s=null;if(i.isLimit&&i.isDirectionTop&&n>0)s=t[0];else if(i.isLimit&&n<t.length-1)s=t[t.length-1];else if(i.isDirectionTop){if(!i.loop&&0===n)return;s=t[0===n?t.length-1:n-1]}else{if(!i.loop&&n===t.length-1)return;s=t[n===t.length-1?0:n+1]}s&&s.focus()},nn="pagescroll-scroll-disabled";let sn=!1,rn="undefined"==typeof document?0:document.scrollingElement.scrollTop;const an="undefined"==typeof document?null:document.querySelector("html");"undefined"!=typeof document&&document.addEventListener("scroll",(()=>{sn&&(document.scrollingElement.scrollTop=rn)}));const on=".bs.navbarcollapsible",ln=`click${on}.data-api`,un=`click${on}`,cn=`keyup${on}`,dn=`keydown${on}`,hn=`hide${on}`,pn=`hidden${on}`,fn=`show${on}`,mn=`shown${on}`,gn=`resize${on}`,yn="show",_n="expanded",vn=".close-menu",bn=".nav-link",Tn=".nav-item .list-item",wn=".it-heading-link",Sn=".it-footer-link";class En extends fi{constructor(e){super(e),this._isShown=this._element.classList.contains(_n),this._isTransitioning=!1,this._isMobile=Zi(),this._isKeyShift=!1,this._currItemIdx=0,this._btnClose=mi.findOne(".close-div button",this._element),this._btnBack=mi.findOne(".it-back-button",this._element),this._menuWrapper=mi.findOne(".menu-wrapper",this._element),this._overlay=null,this._setOverlay(),this._menuItems=mi.find([bn,Tn,wn,Sn,vn].join(","),this._element),this._bindEvents()}static get NAME(){return"navbarcollapsible"}show(e){if(this._isShown||this._isTransitioni