1function initializeCasinoOnlineBlock(e,t){var i=e.querySelector(".load-more");i&&i.addEventListener("click",()=>loadMoreCasinosOnline(e,t))}function loadMoreCasinosOnline(e,t){var n=e.querySelector(".casino-online");if(n){var s=e.querySelector(".load-more"),o=parseInt(e.dataset.total,10),r=parseInt(s.dataset.loaded,10),a=parseInt(s.dataset.page,10),e=parseInt(e.dataset.loading,10),l=document.getElementById("casino-data-online-"+t);if(l){let i;try{i=JSON.parse(l.textContent)}catch(e){return void console.error("Failed to parse casino data for block",t,e)}if(Array.isArray(i)){var l=(a-1)*e,c=Math.min(l+e,i.length);let t="";for(let e=l;e<c;e++){var h=i[e].image_url,d=i[e].link?`onclick="location.href='${i[e].link}'"`:"";h&&(t+=` 2 <div class="casino-info"> 3 <div class="casino-image" ${d}> 4 <img src="${h}" alt="" width="316" height="91"> 5 </div> 6 </div> 7 `)}n.insertAdjacentHTML("beforeend",t);e=r+(c-l);s.dataset.loaded=e,s.dataset.page=a+1,o<=e&&(s.style.display="none")}else console.error("Casino data is not an array for block",t)}else console.error("Casino data element not found for block",t)}else console.error("Casino wrapper not found for block",t)}function initializeSlotsBlock(i){const n=[],t=JSON.parse(document.querySelector(`script[data-id="${i.id}"]`).textContent),s=parseInt(i.getAttribute("data-loading"),10)||4,o=parseInt(i.getAttribute("data-displayed"),10)||4;t.forEach(function(e,t){n[t]=o});var e=i.querySelector(".nav-link");e&&new bootstrap.Tab(e).show(),i.querySelectorAll(".load-more").forEach(function(e){e.addEventListener("click",function(){loadMoreSlots(e,i,n,t,s)})}),i.querySelectorAll(".nav-link").forEach(function(t){t.addEventListener("click",function(e){e.preventDefault();e=t.getAttribute("data-bs-target");i.querySelector(e)&&new bootstrap.Tab(t).show()})})}function loadMoreSlots(n,s,o,e,r){const a=parseInt(n.getAttribute("data-tab"));var t=o[a],i=script.nonce;const l=new XMLHttpRequest;l.open("POST",script.ajaxurl,!0),l.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),l.onreadystatechange=function(){var e,t,i;4===l.readyState&&200===l.status&&((e=JSON.parse(l.responseText)).success?(t=s.querySelector(`#content-${s.id}-`+a))?(i=t.querySelector(".tab-wrapper"))?(i.insertAdjacentHTML("beforeend",e.data.content),o[a]+=r,n.disabled=!1,e.data.remaining_slots<=0?n.remove():t.appendChild(n)):console.error("Tab wrapper not found"):console.error("Content not found"):n.remove())},l.send("action=load_more_slots&offset="+t+"&tab_index="+a+"&nonce="+i+"&data="+encodeURIComponent(JSON.stringify(e))+"&loading="+r),n.disabled=!0}document.addEventListener("DOMContentLoaded",function(){function e(){document.querySelectorAll(".button-mob-font").forEach(e=>{var t=e.getAttribute("data-mob-font-size");t&&(e.style.fontSize=t+"px")})}window.innerWidth<=768&&e(),window.addEventListener("resize",function(){window.innerWidth<=768&&e()})}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".casino-compare-block");0<e.length&&e.forEach(n=>{const s=n.querySelector(".select-casino-1"),o=n.querySelector(".select-casino-2"),r=n.querySelector(".compare-casinos-button button.compare"),a=n.querySelector(".compare-content"),l=n.querySelector(".compare-content-empty");var e=document.querySelector(".casino-compare"),t=e.getAttribute("data-search"),i=e.getAttribute("data-loading"),e=e.getAttribute("data-noresult");function c(){s.value&&o.value?(r.classList.remove("disabled"),r.removeAttribute("disabled")):(r.classList.add("disabled"),r.setAttribute("disabled",!0))}s&&o&&r&&a&&l&&(i={searchResultLimit:100,searchFloor:1,searchFields:["customProperties.name"],loadingText:i,noResultsText:e,searchPlaceholderValue:t,removeItemButton:!0,shouldSort:!1,callbackOnCreateTemplates:function(n){return{item:(e,t)=>n(` 8 <div class="choices__item" data-item data-id="${t.id}" data-value="${t.value}" ${t.active?'aria-selected="true"':""} ${t.disabled?'aria-disabled="true"':""}> 9 ${t.customProperties&&t.customProperties.image?`<img src="${t.customProperties.image}" alt="${t.label}" width="140" height="56">`:""} 10 ${t.label} 11 </div> 12 `),choice:(e,t)=>{var i=t.disabled?'class="choices__item choices__item_disabled"':'class="choices__item"';return n(` 13 <div ${i} data-choice ${t.disabled?'data-choice-disabled aria-disabled="true"':"data-choice-selectable"} data-id="${t.id}" data-value="${t.value}" ${0<t.groupId?'role="treeitem"':'role="option"'}> 14 ${t.customProperties&&t.customProperties.image?`<div class="choices__image-wrapper"><img src="${t.customProperties.image}" alt="${t.label}" width="80" height="32"></div>`:""} 15 ${t.label} 16 </div> 17 `)}}},searchChoices:function(i,e){return e.filter(function(e){var t=i.trim();return e.label.trim()===t})}},new Choices(s,i),new Choices(o,i),s.addEventListener("change",c),o.addEventListener("change",c),r.addEventListener("click",function(){var e=s.value,t=o.value,i=n.querySelector(".comparison-text-json").textContent;r.classList.add("disabled"),r.setAttribute("disabled",!0),a.style.display="none",fetch(script.ajaxurl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}
17,body:new URLSearchParams({action:"compare_casinos",casino1_id:e,casino2_id:t,comparison_text:i})}).then(e=>e.json()).then(e=>{e.success?(a.innerHTML=e.data.html,l.style.display="none",r.classList.remove("disabled"),r.removeAttribute("disabled"),a.style.display="flex"):a.innerHTML="<p>Error retrieving casino data.</p>"}).catch(e=>{console.error("Error:",e),a.innerHTML="<p>Error retrieving casino data.</p>"})}))})}),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".casino-online-block").forEach((e,t)=>{var i=e.getAttribute("id").split("-").pop();initializeCasinoOnlineBlock(e,i)})}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".casino-rate-text");const l=155;e.forEach(e=>{var t=e.innerHTML,i=document.createElement("div");i.innerHTML=t;let o="",r="",a=0;Array.from(i.childNodes).forEach(function e(t){var i,n,s;t.nodeType===Node.TEXT_NODE?(i=t.textContent,a+i.length<=l?(o+=i,a+=i.length):a<l?(s=i.substring(0,l-a),n=i.substring(l-a),o+=s,r+=n,a=l):r+=i):t.nodeType===Node.ELEMENT_NODE&&(["p","div","h1","h2","h3","h4","h5","h6"].includes(t.tagName.toLowerCase())?(o+=`<${t.tagName.toLowerCase()}>`,Array.from(t.childNodes).forEach(e),o+=`</${t.tagName.toLowerCase()}>`):(n=(s=t).nodeType===Node.TEXT_NODE?s.textContent:s.innerText||"",a+n.length<=l?(o+=t.outerHTML,a+=n.length):a<l?(r+=t.outerHTML,a=l):r+=t.outerHTML))}),r?(e.innerHTML=` 18 ${o} 19 <span class="more-content">${r}</span> 20 <span class="more-link">more...</span> 21 <span class="less-link">less...</span> 22 `,t=e.querySelector(".more-link"),i=e.querySelector(".less-link"),t.addEventListener("click",()=>{e.classList.add("show")}),i.addEventListener("click",()=>{e.classList.remove("show")})):e.innerHTML=o})}),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".casino-rating-block").forEach(function(e){var t=e.querySelector(".load-more");t&&t.addEventListener("click",function(){var t=(a=e).querySelector(".casinos");if(t){var i=a.querySelector(".load-more");if(i){var n=parseInt(a.dataset.total,10),o=parseInt(i.dataset.loaded,10),r=parseInt(i.dataset.page,10),s=parseInt(a.dataset.loading,10),a=a.id,l=a.startsWith("casino-data-")?a:"casino-data-"+a,l=document.querySelector(`[data-id="${l}"]`);if(l){let e;try{e=JSON.parse(l.textContent)}catch(e){return void console.error(`Failed to parse JSON from '${a}' element:`,e)}if(Array.isArray(e)){var c=o-(n-e.length),h=Math.min(c+s,e.length);if(c>=e.length)console.warn("All available items have been loaded."),i.style.display="none";else{let s="";for(let n=c;n<h;n++){var d=e[n];if(d){let e="",t=(Array.isArray(d.bonuses)&&(e=d.bonuses.map(e=>` 23 <div class="casino-bonus"> 24 ${e.bonus_type?`<div class="bonus-type">${e.bonus_type}</div>`:""} 25 ${e.bonus_title?`<div class="bonus-title">${e.bonus_title}</div>`:""} 26 </div> 27 `).join("")),""),i=(Array.isArray(d.deposit_methods)&&(t=d.deposit_methods.slice(0,3).map(e=>` 28 <div class="deposit-logo">${e}</div> 29 `).join(""),3<d.deposit_methods.length)&&(t+=`<div class="methods-count">+ ${d.deposit_methods.length-3}</div> 30 <div class="other-methods-before"></div> 31 <div class="other-methods"> 32 ${d.deposit_methods.slice(3).map(e=>` 33 <div class="deposit-logo">${e}</div> 34 `).join("")} 35 </div>`),"");for(let e=0;e<5;e++)i+='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M11.5872 2.2955C11.7758 1.9015 12.3414 1.9015 12.4357 2.2955L14.887 8.40245C14.9813 8.59944 15.0756 8.69794 15.2641 8.69794L21.581 9.19044C21.9581 9.19044 22.1467 9.78143 21.8638 10.0769L17.0555 14.4109C16.9612 14.5094 16.8669 14.7064 16.8669 14.9034L18.3754 21.4043C18.4697 21.7983 17.9983 22.1923 17.7155 21.8968L12.2472 18.4494C12.0586 18.3509 11.87 18.3509 11.7758 18.4494L6.30746 21.8968C5.93033 22.0938 5.45893 21.7983 5.64749 21.4043L7.15599 14.9034C7.15599 14.7064 7.15599 14.5094 6.96743 14.4109L2.1591 10.0769C1.87626 9.78143 1.97053 9.28894 2.44194 9.19044L8.75877 8.69794C8.94733 8.69794 9.0416 8.59944 9.13589 8.40245L11.5872 2.2955Z" fill="#FFC700"></path></svg>';s+=` 36 <div class="casino-data"> 37 <div class="casino-logo"> 38 <div class="number">
39 <span>${o+(n-c)+1}</span> 40 ${d.rating?`<span class="casino-rating d-flex d-md-none">${d.rating},0</span>`:""} 41 </div> 42 ${d.logo?`<div class="image">${d.logo}</div>`:""} 43 ${d.title?`<div class="d-flex d-md-none casino-title-mobile">${d.title}</div>`:""} 44 <div class="casino"> 45 ${d.title?`<div class="casino-title">${d.title}</div>`:""} 46 ${d.rating?`<div class="casino-rating-stars"><div class="star-rating">${i}</div></div>`:""} 47 ${d.rating?`<div class="casino-rating">${d.rating}</div>`:""} 48 </div> 49 </div> 50 <div class="middle-wrapper"> 51 <div class="casino-bonuses"> 52 ${e} 53 ${d.min_deposit?`<div class="casino-min-deposit">${d.min_deposit_label}: ${d.min_deposit}</div>`:""} 54 </div> 55 <div class="casino-payment"> 56 ${d.payout?` 57 <div class="casino-payout"> 58 <div class="wallet-icon"> 59 <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> 60 <path d="M19.7 10.8999H4V19.3999H19.7V10.8999Z" stroke="white" stroke-miterlimit="10"></path> 61 <path d="M18.2 15.1001H14.9" stroke="white" stroke-miterlimit="10"></path> 62 <path d="M8 10.9999L14.7 4.3999L19.2 8.9999L17.4 10.8999" stroke="white" stroke-miterlimit="10"></path> 63 <path d="M12.9 6.1L8.39998 4L5.29999 10.9" stroke="white" stroke-miterlimit="10"></path> 64 </svg> 65 </div> 66 <span>${d.payout_label}: ${d.payout}</span> 67 </div>`:""} 68 <div class="casino-payment-methods"> 69 ${t} 70 </div> 71 </div> 72 </div> 73 <div class="casino-buttons"> 74 ${d.link?`<span class="btn btn-primary" onclick="location.href='${d.link}'">${d.k_button_title}</span>`:""} 75 ${d.review_link?`<a href="${d.review_link}" class="casino-review">${d.review_button_title}</a>`:""} 76 </div> 77 </div> 78 `}}s&&t.insertAdjacentHTML("beforeend",s);l=o+(h-c);i.dataset.loaded=l,i.dataset.page=r+1,n<=l&&(i.style.display="none")}}else console.error("Parsed casino data is not an array:",e)}else console.error(`No element with ID '${a}' found.`)}else console.error("No 'Load More' button found.")}else console.error("No element with class 'casinos' found.")})}),document.addEventListener("click",function(e){var s,t,i,n;e.target.classList.contains("methods-count")?(s=e.target,event.stopPropagation(),t=s.closest(".casino-payment-methods"),i=s.closest(".casino-data"),document.querySelectorAll(".methods-count.active").forEach(function(e){var t,i,n;e!==s&&(n=e.closest(".casino-payment-methods"),t=e.closest(".casino-data"),n&&(i=n.querySelector(".other-methods-before"),n=n.querySelector(".other-methods"),i&&i.classList.remove("show"),n)&&n.classList.remove("show"),e.classList.remove("active"),t)&&t.classList.remove("active")}),t&&i&&(n=t.querySelector(".other-methods-before"),t=t.querySelector(".other-methods"),n&&n.classList.toggle("show"),t&&t.classList.toggle("show"),s.classList.toggle("active"),i.classList.toggle("active"))):e.target.closest(".casino-payment-methods")||(document.querySelectorAll(".other-methods-before, .other-methods").forEach(function(e){e.classList.remove("show")}),document.querySelectorAll(".methods-count").forEach(function(e){e.classList.remove("active")}),document.querySelectorAll(".casino-data").forEach(function(e){e.classList.remove("active")}))})}),document.addEventListener("DOMContentLoaded",function(){function e(){var e=document.querySelectorAll(".casino-review-games");
78e.forEach(e=>{var t=e.querySelectorAll(".casino-review-game");let i;i=768<=window.innerWidth&&window.innerWidth<=992?3:4;t=Math.ceil(t.length/i);e.style.gridTemplateRows=`repeat(${Math.max(4,t)}, auto)`})}window.addEventListener("resize",e),e()}),document.addEventListener("DOMContentLoaded",function(){const t=new IntersectionObserver(function(e,i){e.forEach(e=>{if(e.isIntersecting){var t=e.target.querySelectorAll(".review-rating-type");const n=e.target.querySelectorAll(".review-rating-line-active");t.forEach((e,t)=>{const i=n[t];i&&setTimeout(()=>{i.style.width=i.getAttribute("data-target-width")},100*t)}),i.unobserve(e.target)}})},{root:null,rootMargin:"0px",threshold:.3});document.querySelectorAll(".casino-review-rating-block").forEach(e=>{t.observe(e)})}),document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".accordion-item");0<e.length&&e.forEach(t=>{(t.querySelector(".accordion-header")||t).addEventListener("click",function(e){t.classList.toggle("active")})})}),document.addEventListener("DOMContentLoaded",function(){function e(){window.innerWidth<992?document.querySelectorAll(".payment-method").forEach(n=>{n.addEventListener("click",e=>{var t=n.querySelector(".payment-content"),i=n.querySelector(".payment-more");t&&i&&(t.classList.toggle("d-flex"),i.classList.toggle("toggled"))})}):document.querySelectorAll(".payment-method").forEach(e=>{e.removeEventListener("click",null)})}e(),window.addEventListener("resize",e)}),document.addEventListener("DOMContentLoaded",function(){function e(){document.querySelectorAll(".slot-popular").length&&document.querySelectorAll(".slot-more").forEach(t=>{t.addEventListener("click",()=>{var e=t.nextElementSibling;e&&e.classList.contains("slot-content")&&(e.classList.toggle("d-flex"),t.classList.toggle("toggled"))})})}window.innerWidth<992&&e(),window.addEventListener("resize",function(){window.innerWidth<992&&e()})}),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".slots-tabs-block").forEach(function(e){initializeSlotsBlock(e)})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Popper={})}(this,function(e){"use strict";function b(e){var t;return null==e?window:"[object Window]"!==e.toString()?(t=e.ownerDocument)&&t.defaultView||window:e}function g(e){return e instanceof b(e).Element||e instanceof Element}function _(e){return e instanceof b(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof b(e).ShadowRoot||e instanceof ShadowRoot)}var T=Math.max,A=Math.min,y=Math.round;function o(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function d(){return!/^((?!chrome|android).)*safari/i.test(o())}function v(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,o=1,t=(t&&_(e)&&(s=0<e.offsetWidth&&y(n.width)/e.offsetWidth||1,o=0<e.offsetHeight&&y(n.height)/e.offsetHeight||1),(g(e)?b(e):window).visualViewport),e=!d()&&i,i=(n.left+(e&&t?t.offsetLeft:0))/s,e=(n.top+(e&&t?t.offsetTop:0))/o,t=n.width/s,s=n.height/o;return{width:t,height:s,top:e,right:i+t,bottom:e+s,left:i,x:i,y:e}}function E(e){e=b(e);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function w(e){return e?(e.nodeName||"").toLowerCase():null}function S(e){return((g(e)?e.ownerDocument:e.document)||window.document).documentElement}function C(e){return v(S(e)).left+E(e).scrollLeft}function O(e){return b(e).getComputedStyle(e)}function L(e){var e=O(e),t=e.overflow,i=e.overflowX,e=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+e+i)}function I(e){var t=v(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function x(e){return"html"===w(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||S(e)}function M(e,t){void 0===t&&(t=[]);var i=function e(t){return 0<=["html","body","#document"].indexOf(w(t))?t.ownerDocument.body:_(t)&&L(t)?t:e(x(t))}(e),e=i===(null==(e=e.ownerDocument)?void 0:e.body),n=b(i),n=e?[n].concat(n.visualVie
78wport||[],L(i)?i:[]):i,i=t.concat(n);return e?i:i.concat(M(x(n)))}function r(e){return _(e)&&"fixed"!==O(e).position?e.offsetParent:null}function P(e){for(var t,i=b(e),n=r(e);n&&(t=n,0<=["table","td","th"].indexOf(w(t)))&&"static"===O(n).position;)n=r(n);return(!n||"html"!==w(n)&&("body"!==w(n)||"static"!==O(n).position))&&(n||function(e){var t=/firefox/i.test(o());if(!/Trident/i.test(o())||!_(e)||"fixed"!==O(e).position){var i=x(e);for(s(i)&&(i=i.host);_(i)&&["html","body"].indexOf(w(i))<0;){var n=O(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}}return null}(e))||i}var D="top",k="bottom",N="right",j="left",F="auto",H=[D,k,N,j],R="start",B="end",G="viewport",q="popper",U=H.reduce(function(e,t){return e.concat([t+"-"+R,t+"-"+B])},[]),X=[].concat(H,[F]).reduce(function(e,t){return e.concat([t,t+"-"+R,t+"-"+B])},[]),h=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function u(e){var i=new Map,n=new Set,s=[];return e.forEach(function(e){i.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||function t(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){n.has(e)||(e=i.get(e))&&t(e)}),s.push(e)}(e)}),s}function Q(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&s(i)){var n=t;do{if(n&&e.isSameNode(n))return!0}while(n=n.parentNode||n.host)}return!1}function $(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function J(e,t,i){return t===G?$((s=i,r=b(n=e),a=S(n),r=r.visualViewport,l=a.clientWidth,a=a.clientHeight,h=c=0,r&&(l=r.width,a=r.height,(o=d())||!o&&"fixed"===s)&&(c=r.offsetLeft,h=r.offsetTop),{width:l,height:a,x:c+C(n),y:h})):g(t)?((s=v(o=t,!1,"fixed"===i)).top=s.top+o.clientTop,s.left=s.left+o.clientLeft,s.bottom=s.top+o.clientHeight,s.right=s.left+o.clientWidth,s.width=o.clientWidth,s.height=o.clientHeight,s.x=s.left,s.y=s.top,s):$((r=S(e),l=S(r),a=E(r),c=null==(c=r.ownerDocument)?void 0:c.body,n=T(l.scrollWidth,l.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),h=T(l.scrollHeight,l.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),r=-a.scrollLeft+C(r),a=-a.scrollTop,"rtl"===O(c||l).direction&&(r+=T(l.clientWidth,c?c.clientWidth:0)-n),{width:n,height:h,x:r,y:a}));var n,s,o,r,a,l,c,h}function K(e){return e.split("-")[0]}function W(e){return e.split("-")[1]}function Z(e){return 0<=["top","bottom"].indexOf(e)?"x":"y"}function ee(e){var t,i=e.reference,n=e.element,e=e.placement,s=e?K(e):null,e=e?W(e):null,o=i.x+i.width/2-n.width/2,r=i.y+i.height/2-n.height/2;switch(s){case D:t={x:o,y:i.y-n.height};break;case k:t={x:o,y:i.y+i.height};break;case N:t={x:i.x+i.width,y:r};break;case j:t={x:i.x-n.width,y:r};break;default:t={x:i.x,y:i.y}}var a=s?Z(s):null;if(null!=a){var l="y"===a?"height":"width";switch(e){case R:t[a]=t[a]-(i[l]/2-n[l]/2);break;case B:t[a]=t[a]+(i[l]/2-n[l]/2)}}return t}function te(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ie(i,e){return e.reduce(function(e,t){return e[t]=i,e},{})}function V(e,t){var i,n,s,o,r,a,t=t=void 0===t?{}:t,l=t.placement,l=void 0===l?e.placement:l,c=t.strategy,c=void 0===c?e.strategy:c,h=t.boundary,h=void 0===h?"clippingParents":h,d=t.rootBoundary,d=void 0===d?G:d,u=t.elementContext,u=void 0===u?q:u,p=t.altBoundary,p=void 0!==p&&p,t=t.padding,t=void 0===t?0:t,t=te("number"!=typeof t?t:ie(t,H)),f=e.rects.popper,p=e.elements[p?u===q?"reference":q:u],c=(i=g(p)?p:p.contextElement||S(e.elements.popper),p=d,n=c,o="clippingParents"===(d=h)?(r=M(x(o=i)),g(s=0<=["absolute","fixed"].indexOf(O(o).position)&&_(o)?P(o):o)?r.filter(function(e){return g(e)&&Q(e,s)&&"body"!==w(e)}):[]):[].concat(d),r=[].concat(o,[p]),d=r[0],(p=r.reduce(function(e,t){t=J(i,t,n);return e.top=T(t.top,e.top),e.right=A(t.right,e.right),e.bottom=A(t.bottom,e.bottom),e.left=T(t.left,e.left),e},J(i,d,n))).width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p),h=v(e.elements.reference),d=ee({reference:h,element:f,strategy:"absolute",placement:l}),p=$(Object.assign({}
78,f,d)),f=u===q?p:h,m={top:c.top-f.top+t.top,bottom:f.bottom-c.bottom+t.bottom,left:c.left-f.left+t.left,right:f.right-c.right+t.right},d=e.modifiersData.offset;return u===q&&d&&(a=d[l],Object.keys(m).forEach(function(e){var t=0<=[N,k].indexOf(e)?1:-1,i=0<=[D,k].indexOf(e)?"y":"x";m[e]+=a[i]*t})),m}var ne={placement:"bottom",modifiers:[],strategy:"absolute"};function se(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function t(e){var e=e=void 0===e?{}:e,t=e.defaultModifiers,l=void 0===t?[]:t,t=e.defaultOptions,c=void 0===t?ne:t;return function(n,s,t){void 0===t&&(t=c);var i,o,p={placement:"bottom",orderedModifiers:[],options:Object.assign({},ne,c),modifiersData:{},elements:{reference:n,popper:s},attributes:{},styles:{}},r=[],f=!1,m={state:p,setOptions:function(e){e="function"==typeof e?e(p.options):e;a(),p.options=Object.assign({},c,p.options,e),p.scrollParents={reference:g(n)?M(n):n.contextElement?M(n.contextElement):[],popper:M(s)};e=[].concat(l,p.options.modifiers),t=e.reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{}),i=u(Object.keys(t).map(function(e){return t[e]}));var t,i,e=h.reduce(function(e,t){return e.concat(i.filter(function(e){return e.phase===t}))},[]);return p.orderedModifiers=e.filter(function(e){return e.enabled}),p.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,e=e.effect;"function"==typeof e&&(e=e({state:p,name:t,instance:m,options:void 0===i?{}:i}),r.push(e||function(){}))}),m.update()},forceUpdate:function(){if(!f){var e=p.elements,t=e.reference,e=e.popper;if(se(t,e)){p.rects={reference:(t=t,r=P(e),void 0===(a="fixed"===p.options.strategy)&&(a=!1),l=_(r),c=_(r)&&(d=(c=r).getBoundingClientRect(),h=y(d.width)/c.offsetWidth||1,d=y(d.height)/c.offsetHeight||1,1!==h||1!==d),h=S(r),d=v(t,c,a),t={scrollLeft:0,scrollTop:0},u={x:0,y:0},!l&&a||("body"===w(r)&&!L(h)||(t=(l=r)!==b(l)&&_(l)?{scrollLeft:l.scrollLeft,scrollTop:l.scrollTop}:E(l)),_(r)?((u=v(r,!0)).x+=r.clientLeft,u.y+=r.clientTop):h&&(u.x=C(h))),{x:d.left+t.scrollLeft-u.x,y:d.top+t.scrollTop-u.y,width:d.width,height:d.height}),popper:I(e)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(e){return p.modifiersData[e.name]=Object.assign({},e.data)});for(var i,n,s,o=0;o<p.orderedModifiers.length;o++)!0!==p.reset?(i=(s=p.orderedModifiers[o]).fn,n=s.options,s=s.name,"function"==typeof i&&(p=i({state:p,options:void 0===n?{}:n,name:s,instance:m})||p)):(p.reset=!1,o=-1)}}var r,a,l,c,h,d,u},update:(i=function(){return new Promise(function(e){m.forceUpdate(),e(p)})},function(){return o=o||new Promise(function(e){Promise.resolve().then(function(){o=void 0,e(i())})})}),destroy:function(){a(),f=!0}};return se(n,s)&&m.setOptions(t).then(function(e){!f&&t.onFirstUpdate&&t.onFirstUpdate(e)}),m;function a(){r.forEach(function(e){return e()}),r=[]}}}var l={passive:!0},i={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,e=e.options,n=e.scroll,s=void 0===n||n,n=e.resize,o=void 0===n||n,r=b(t.elements.popper),a=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&a.forEach(function(e){e.addEventListener("scroll",i.update,l)}),o&&r.addEventListener("resize",i.update,l),function(){s&&a.forEach(function(e){e.removeEventListener("scroll",i.update,l)}),o&&r.removeEventListener("resize",i.update,l)}},data:{}},n={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,e=e.name;t.modifiersData[e]=ee({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},oe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function a(e){var t=e.popper,i=e.popperRect,n=e.placement,s=e.variation,o=e.offsets,r=e.position,a=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,e=e.isFixed,h=o.x,h=void 0===h?0:h,d=o.y,d=void 0===d?0:d,u="function"==typeof c?c({x:h,y:d}):{x:h,y:d},h=u.x,d=u.y,u=o.hasOwnProperty("x"),o=o.hasOwnProperty("y"),p=j,f=D,m=window;l&&(_="clientHeight",g="clientWidth",(v=P(t))===b(t)&&"static"!==O(v=S(t)).position&&"absolute"===r&&(_="scrollHeight",g="scrollWidth"),n!==D&&(n!==j&&n!==N||s!==B)||(f=k,d=(d-((e&&v===m&&m.visualVie
78wport?m.visualViewport.height:v[_])-i.height))*(a?1:-1)),n!==j&&(n!==D&&n!==k||s!==B)||(p=N,h=(h-((e&&v===m&&m.visualViewport?m.visualViewport.width:v[g])-i.width))*(a?1:-1)));var g,_=Object.assign({position:r},l&&oe),v=!0===c?(n={x:h,y:d},s=b(t),e=n.y,s=s.devicePixelRatio||1,{x:y(n.x*s)/s||0,y:y(e*s)/s||0}):{x:h,y:d};return h=v.x,d=v.y,a?Object.assign({},_,((g={})[f]=o?"0":"",g[p]=u?"0":"",g.transform=(m.devicePixelRatio||1)<=1?"translate("+h+"px, "+d+"px)":"translate3d("+h+"px, "+d+"px, 0)",g)):Object.assign({},_,((i={})[f]=o?d+"px":"",i[p]=u?h+"px":"",i.transform="",i))}var c={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,e=e.options,i=e.gpuAcceleration,i=void 0===i||i,n=e.adaptive,n=void 0===n||n,e=e.roundOffsets,e=void 0===e||e,i={placement:K(t.placement),variation:W(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,a(Object.assign({},i,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:n,roundOffsets:e})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,a(Object.assign({},i,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:e})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},p={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var s=e.state;Object.keys(s.elements).forEach(function(e){var t=s.styles[e]||{},i=s.attributes[e]||{},n=s.elements[e];
78_(n)&&w(n)&&(Object.assign(n.style,t),Object.keys(i).forEach(function(e){var t=i[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var n=e.state,s={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,s.popper),n.styles=s,n.elements.arrow&&Object.assign(n.elements.arrow.style,s.arrow),function(){Object.keys(n.elements).forEach(function(e){var t=n.elements[e],i=n.attributes[e]||{},e=Object.keys((n.styles.hasOwnProperty(e)?n.styles:s)[e]).reduce(function(e,t){return e[t]="",e},{});_(t)&&w(t)&&(Object.assign(t.style,e),Object.keys(i).forEach(function(e){t.removeAttribute(e)}))})}},requires:["computeStyles"]},f={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var r=e.state,t=e.options,e=e.name,t=t.offset,a=void 0===t?[0,0]:t,t=X.reduce(function(e,t){return e[t]=(t=t,i=r.rects,n=a,s=K(t),o=0<=[j,D].indexOf(s)?-1:1,i="function"==typeof n?n(Object.assign({},i,{placement:t})):n,t=i[0]||0,n=(i[1]||0)*o,0<=[j,N].indexOf(s)?{x:n,y:t}:{x:t,y:n}),e;var i,n,s,o},{}),i=t[r.placement],n=i.x,i=i.y;null!=r.modifiersData.popperOffsets&&(r.modifiersData.popperOffsets.x+=n,r.modifiersData.popperOffsets.y+=i),r.modifiersData[e]=t}},m={left:"right",right:"left",bottom:"top",top:"bottom"};function Y(e){return e.replace(/left|right|bottom|top/g,function(e){return m[e]})}var re={start:"end",end:"start"};function ae(e){return e.replace(/start|end/g,function(e){return re[e]})}var le={name:"flip",enabled:!0,phase:"main",fn:function(e){var d=e.state,t=e.options,e=e.name;if(!d.modifiersData[e]._skip){for(var i=t.mainAxis,n=void 0===i||i,i=t.altAxis,s=void 0===i||i,i=t.fallbackPlacements,u=t.padding,p=t.boundary,f=t.rootBoundary,o=t.altBoundary,r=t.flipVariations,m=void 0===r||r,g=t.allowedAutoPlacements,r=d.options.placement,t=K(r),i=i||(t!==r&&m?K(i=r)===F?[]:(t=Y(i),[ae(i),t,ae(t)]):[Y(r)]),a=[r].concat(i).reduce(function(e,t){return e.concat(K(t)===F?(i=d,n=(e=e=void 0===(e={placement:t,boundary:p,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:g})?{}:e).placement,s=e.boundary,o=e.rootBoundary,r=e.padding,a=e.flipVariations,l=void 0===(e=e.allowedAutoPlacements)?X:e,c=W(n),e=c?a?U:U.filter(function(e){return W(e)===c}):H,h=(n=0===(n=e.filter(function(e){return 0<=l.indexOf(e)})).length?e:n).reduce(function(e,t){return e[t]=V(i,{placement:t,boundary:s,rootBoundary:o,padding:r})[K(t)],e},{}),Object.keys(h).sort(function(e,t){return h[e]-h[t]})):t);var i,n,s,o,r,a,l,c,h},[]),l=d.rects.reference,c=d.rects.popper,h=new Map,_=!0,v=a[0],b=0;b<a.length;b++){var y=a[b],E=K(y),w=W(y)===R,S=0<=[D,k].indexOf(E),C=S?"width":"height",O=V(d,{placement:y,boundary:p,rootBoundary:f,altBoundary:o,padding:u}),S=S?w?N:j:w?k:D,w=(l[C]>c[C]&&(S=Y(S)),Y(S)),C=[];if(n&&C.push(O[E]<=0),s&&C.push(O[S]<=0,O[w]<=0),C.every(function(e){return e})){v=y,_=!1;break}h.set(y,C)}if(_)for(var T=m?3:1;0<T&&"break"!==function(t){var e=a.find(function(e){e=h.get(e);if(e)return e.slice(0,t).every(function(e){return e})});if(e)return v=e,"break"}(T);T--);d.placement!==v&&(d.modifiersData[e]._skip=!0,d.placement=v,d.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function z(e,t,i){return T(e,A(t,i))}var ce={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t,i,n,s,o,r,a,l,c,h=e.state,d=e.options,e=e.name,u=d.mainAxis,u=void 0===u||u,p=d.altAxis,p=void 0!==p&&p,f=d.boundary,m=d.rootBoundary,g=d.altBoundary,_=d.padding,v=d.tether,v=void 0===v||v,d=d.tetherOffset,d=void 0===d?0:d,f=V(h,{boundary:f,rootBoundary:m,padding:_,altBoundary:g}),m=K(h.placement),_=W(h.placement),g=!_,b=Z(m),y="x"===b?"y":"x",E=h.modifiersData.popperOffsets,w=h.rects.reference,S=h.rects.popper,d="function"==typeof d?d(Object.assign({},h.rects,{placement:h.placement})):d,d="number"==typeof d?{mainAxis:d,altAxis:d}:Object.assign({mainAxis:0,altAxis:0},d),C=h.modifiersData.offset?h.modifiersData.offset[h.placement]:null,O={x:0,y:0};E&&(u&&(u="y"===b?"height":"width",r=(a=E[b])+f[i="y"===b?D:j],l=a-f[c="y"===b?k:N],t=v?-S[u]/2:0,s=(_===R?w:S)[u],_=_===R?-S[u]:-w[u],o=h.elements.arrow,o=v&&o?I(o):{width:0,height:0},i=(n=h.modifiersData["arrow#persistent"]?h.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0})[i],n=n[c],c=z(0,w[u],o[u]),o=g?w[u]/2-t-c-i-d.mainAxis:s-c-i-d.mainAxis,s=g?-w[u]/2+t+c+n+d.mainAxis:_+c+n+d.mainAxis,g=(i=h.elements.arrow&&P(h.elements.arrow))?"y"===b?i.clientTop||0:i.clientLeft||0:0,_=a+s-(t=null!=(u=null==C?void 0:C[b])?u:0),c=z(v?A(r,a+o-t-g):r,a,v?T(l,_):l),E[b]=c,O[b]=c-a),p&&(n="y"==y?"height":"width",s=(i=E[y])+f["x"===b?D:j],u=i-f["x"===b?k:N],o=-1!==[D,j].indexOf(m),g=null!=(t=null==C?void 0:C[y])?t:0,r=o?s:i-w[n]-S[n]-g+d.altAxis,_=o?i+w[n]+S[n]-g-d.altAxis:u,a=v&&o?(c=z(r,i,l=_),l<c?l:c):z(v?r:s,i,v?_:u),E[y]=a,O[y]=a-i),h.modifiersData[e]=O)},requiresIfExists:["offset"]}
78,he={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i,n,s,o=e.state,r=e.name,e=e.options,a=o.elements.arrow,l=o.modifiersData.popperOffsets,c=K(o.placement),h=Z(c),c=0<=[j,N].indexOf(c)?"height":"width";a&&l&&(e=te("number"!=typeof(e="function"==typeof(e=e.padding)?e(Object.assign({},o.rects,{placement:o.placement})):e)?e:ie(e,H)),t=I(a),s="y"===h?D:j,n="y"===h?k:N,i=o.rects.reference[c]+o.rects.reference[h]-l[h]-o.rects.popper[c],l=l[h]-o.rects.reference[h],a=(a=P(a))?"y"===h?a.clientHeight||0:a.clientWidth||0:0,s=e[s],e=a-t[c]-e[n],s=z(s,n=a/2-t[c]/2+(i/2-l/2),e),o.modifiersData[r]=((a={})[h]=s,a.centerOffset=s-n,a))},effect:function(e){var t=e.state,e=e.options.element,e=void 0===e?"[data-popper-arrow]":e;null!=e&&("string"!=typeof e||(e=t.elements.popper.querySelector(e)))&&Q(t.elements.popper,e)&&(t.elements.arrow=e)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function de(e,t,i){return{top:e.top-t.height-(i=void 0===i?{x:0,y:0}:i).y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function ue(t){return[D,N,k,j].some(function(e){return 0<=t[e]})}var pe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,e=e.name,i=t.rects.reference,n=t.rects.popper,s=t.modifiersData.preventOverflow,o=V(t,{elementContext:"reference"}),r=V(t,{altBoundary:!0}),o=de(o,i),i=de(r,n,s),r=ue(o),n=ue(i);t.modifiersData[e]={referenceClippingOffsets:o,popperEscapeOffsets:i,isReferenceHidden:r,hasPopperEscaped:n},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":r,"data-popper-escaped":n})}},fe=t({defaultModifiers:[i,n,c,p]}),me=[i,n,c,p,f,le,ce,he,pe],ge=t({defaultModifiers:me});e.applyStyles=p,e.arrow=he,e.computeStyles=c,e.createPopper=ge,e.createPopperLite=fe,e.defaultModifiers=me,e.detectOverflow=V,e.eventListeners=i,e.flip=le,e.hide=pe,e.offset=f,e.popperGenerator=t,e.popperOffsets=n,e.preventOverflow=ce,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t(e.Popper)}(this,function(e){"use strict";function j(e){var t,i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)"default"!==n&&(t=Object.getOwnPropertyDescriptor(e,n),Object.defineProperty(i,n,t.get?t:{enumerable:!0,get:()=>e[n]}));return i.default=e,Object.freeze(i)}const i=j(e),n=new Map,F={set(e,t,i){n.has(e)||n.set(e,new Map);e=n.get(e);e.has(t)||0===e.size?e.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(e.keys())[0]}.`)},get(e,t){return n.has(e)&&n.get(e).get(t)||null},remove(e,t){var i;n.has(e)&&((i=n.get(e)).delete(t),0===i.size)&&n.delete(e)}},H=1e3,R="transitionend",B=e=>e=e&&window.CSS&&window.CSS.escape?e.replace(/#([^\s"#']+)/g,(e,t)=>"#"+CSS.escape(t)):e,q=e=>{e.dispatchEvent(new Event(R))},o=e=>!(!e||"object"!=typeof e)&&void 0!==(e=void 0!==e.jquery?e[0]:e).nodeType,s=e=>o(e)?e.jquery?e[0]:e:"string"==typeof e&&0<e.length?document.querySelector(B(e)):null,r=e=>{if(!o(e)||0===e.getClientRects().length)return!1;var t="visible"===getComputedStyle(e).getPropertyValue("visibility"),i=e.closest("details:not([open])");if(i&&i!==e){e=e.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return t},a=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),$=e=>{var t;return document.documentElement.attachShadow?"function"==typeof e.getRootNode?(t=e.getRootNode())instanceof ShadowRoot?t:null:e instanceof ShadowRoot?e:e.parentNode?$(e.parentNode):null:null},l=()=>{},c=e=>{e.offsetHeight},K=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,W=[],h=()=>"rtl"===document.documentElement.dir;e=n=>{var e;e=()=>{const e=K();if(e){const t=n.NAME,i=e.fn[t];
78e.fn[t]=n.jQueryInterface,e.fn[t].Constructor=n,e.fn[t].noConflict=()=>(e.fn[t]=i,n.jQueryInterface)}},"loading"===document.readyState?(W.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of W)e()}),W.push(e)):e()};const d=(e,t=[],i=e)=>"function"==typeof e?e(...t):i,V=(i,n,e=!0)=>{if(e){e=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);var e=Number.parseFloat(t),n=Number.parseFloat(i);return e||n?(t=t.split(",")[0],i=i.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(i))*H):0})(n)+5;let t=!1;const s=({target:e})=>{e===n&&(t=!0,n.removeEventListener(R,s),d(i))};n.addEventListener(R,s),setTimeout(()=>{t||q(n)},e)}else d(i)},Y=(e,t,i,n)=>{var s=e.length;let o=e.indexOf(t);return-1===o?!i&&n?e[s-1]:e[0]:(o+=i?1:-1,n&&(o=(o+s)%s),e[Math.max(0,Math.min(o,s-1))])},z=/[^.]*(?=\..*)\.|.*/,G=/\..*/,U=/::\d+$/,X={};let Q=1;const J={mouseenter:"mouseover",mouseleave:"mouseout"},Z=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 ee(e,t){return t&&t+"::"+Q++||e.uidEvent||Q++}function te(e){var t=ee(e);return e.uidEvent=t,X[t]=X[t]||{},X[t]}function ie(e,t,i=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===i)}function ne(e,t,i){var n="string"==typeof t,t=!n&&t||i;let s=re(e);return[n,t,s=Z.has(s)?s:e]}function se(n,s,o,r,a){if("string"==typeof s&&n){let[e,t,i]=ne(s,o,r);s in J&&(t=(l=t,function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return l.call(this,e)}));var l,c,h,d,u,p,r=te(n),r=r[i]||(r[i]={}),f=ie(r,t,e?o:null);f?f.oneOff=f.oneOff&&a:(f=ee(t,s.replace(z,"")),(s=e?(d=n,u=o,p=t,function t(i){var n=d.querySelectorAll(u);for(let e=i["target"];e&&e!==this;e=e.parentNode)for(const s of n)if(s===e)return ae(i,{delegateTarget:e}),t.oneOff&&m.off(d,i.type,u,p),p.apply(e,[i])}):(c=n,h=t,function e(t){return ae(t,{delegateTarget:c}),e.oneOff&&m.off(c,t.type,h),h.apply(c,[t])})).delegationSelector=e?o:null,s.callable=t,s.oneOff=a,r[s.uidEvent=f]=s,n.addEventListener(i,s,e))}}function oe(e,t,i,n,s){n=ie(t[i],n,s);n&&(e.removeEventListener(i,n,Boolean(s)),delete t[i][n.uidEvent])}function re(e){return e=e.replace(G,""),J[e]||e}const m={on(e,t,i,n){se(e,t,i,n,!1)},one(e,t,i,n){se(e,t,i,n,!0)},off(e,t,i,n){if("string"==typeof t&&e){var s,o,[n,r,a]=ne(t,i,n),l=a!==t,c=te(e),h=c[a]||{},d=t.startsWith(".");if(void 0!==r)return Object.keys(h).length?void oe(e,c,a,r,n?i:null):void 0;if(d)for(const y of Object.keys(c)){p=u=v=_=g=m=f=void 0;var u,p,f=e,m=c,g=y,_=t.slice(1),v=m[g]||{};for([u,p]of Object.entries(v))u.includes(_)&&oe(f,m,g,p.callable,p.delegationSelector)}for([s,o]of Object.entries(h)){var b=s.replace(U,"");l&&!t.includes(b)||oe(e,c,a,o.callable,o.delegationSelector)}}},trigger(e,t,i){if("string"!=typeof t||!e)return null;var n=K();let s=null,o=!0,r=!0,a=!1;t!==re(t)&&n&&(s=n.Event(t,i),n(e).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());n=ae(new Event(t,{bubbles:o,cancelable:!0}),i);return a&&n.preventDefault(),r&&e.dispatchEvent(n),n.defaultPrevented&&s&&s.preventDefault(),n}};function ae(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get(){return n}})}return t}function le(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function ce(e){return e.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())}const u={setDataAttribute(e,t,i){e.setAttribute("data-bs-"+ce(t),i)},removeDataAttribute(e,t){e.removeAttribute("data-bs-"+ce(t))},getDataAttributes(t){if(!t)return{};var i={};for(const n of Object.keys(t.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"))){let e=n.replace(/^bs/,"");i[e=e.charAt(0).toLowerCase()+e.slice(1,e.length)]=le(t.dataset[n])}return i},getDataAttribute(e,t){return le(e.getAttribute("data-bs-"+ce(t)))}};class t{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){var i=o(t)?u.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...o(t)?u.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(var[i,n]of Object.entries(t)){var s=e[i],s=o(s)?"element":null==(s=s)?""+s:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(n).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${n}".`)}}}class p extends t{constructor(e,t){super(),(e=s(e))&&(this._element=e,this._config=this._getConfig(t),F.set(this._element,this.constructor.DATA_KEY,this))}dispose(){F.remove(this._element,this.constructor.DATA_KEY),m.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,i=!0){V(e,t,i)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return F.get(s(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.3.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 he=t=>{let i=t.getAttribute("data-bs-target");if(!i||"#"===i){let e=t.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e="#"+e.split("#")[1]),i=e&&"#"!==e?e.trim():null}return i?i.split(",").map(e=>B(e)).join(","):null},f={find(e,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,e))},findOne(e,t=document.documentElement){return Element.prototype.querySelector.call(t,e)},children(e,t){return[].concat(...e.children).filter(e=>e.matches(t))},parents(e,t){var 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){var t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>e+':not([tabindex^="-"])').join(",");return this.find(t,e).filter(e=>!a(e)&&r(e))},getSelectorFromElement(e){e=he(e);return e&&f.findOne(e)?e:null},getElementFromSelector(e){e=he(e);return e?f.findOne(e):null},getMultipleElementsFromSelector(e){e=he(e);return e?f.find(e):[]}};var de=(t,i="hide")=>{var e="click.dismiss"+t.EVENT_KEY;const n=t.NAME;m.on(document,e,`[data-bs-dismiss="${n}"]`,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),a(this)||(e=f.getElementFromSelector(this)||this.closest("."+n),t.getOrCreateInstance(e)[i]())})};class ue extends p{static get NAME(){return"alert"}close(){var e;m.trigger(this._element,"close.bs.alert").defaultPrevented||(this._element.classList.remove("show"),e=this._element.classList.contains("fade"),this._queueCallback(()=>this._destroyElement(),this._element,e))}_destroyElement(){this._element.remove(),m.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each(function(){var e=ue.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
78amed "${t}"`);e[t](this)}})}}de(ue,"close"),e(ue);const pe='[data-bs-toggle="button"]';class fe extends p{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){var e=fe.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}m.on(document,"click.bs.button.data-api",pe,e=>{e.preventDefault();e=e.target.closest(pe);fe.getOrCreateInstance(e).toggle()}),e(fe);const g=".bs.swipe",me=(g,g,g,g,g,{endCallback:null,leftCallback:null,rightCallback:null}),ge={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class _e extends t{constructor(e,t){super(),(this._element=e)&&_e.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return me}static get DefaultType(){return ge}static get NAME(){return"swipe"}dispose(){m.off(this._element,g)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),d(this._config.endCallback)}_move(e){this._deltaX=e.touches&&1<e.touches.length?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){var e=Math.abs(this._deltaX);e<=40||(e=e/this._deltaX,this._deltaX=0,e&&d(0<e?this._config.rightCallback:this._config.leftCallback))}_initEvents(){this._supportPointerEvents?(m.on(this._element,"pointerdown.bs.swipe",e=>this._start(e)),m.on(this._element,"pointerup.bs.swipe",e=>this._end(e)),this._element.classList.add("pointer-event")):(m.on(this._element,"touchstart.bs.swipe",e=>this._start(e)),m.on(this._element,"touchmove.bs.swipe",e=>this._move(e)),m.on(this._element,"touchend.bs.swipe",e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||0<navigator.maxTouchPoints}}var _=".bs.carousel";const v="next",b="prev",y="left",ve="right",be="slid"+_;const ye="carousel",Ee="active",we=".active",Se=".carousel-item";we,Se;const Ce={ArrowLeft:ve,ArrowRight:y},Oe={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Te={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class E extends p{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=f.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ye&&this.cycle()}static get Default(){return Oe}static get DefaultType(){return Te}static get NAME(){return"carousel"}next(){this._slide(v)}nextWhenVisible(){!document.hidden&&r(this._element)&&this.next()}prev(){this._slide(b)}pause(){this._isSliding&&q(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?m.one(this._element,be,()=>this.cycle()):this.cycle())}to(e){var t,i=this._getItems();e>i.length-1||e<0||(this._isSliding?m.one(this._element,be,()=>this.to(e)):(t=this._getItemIndex(this._getActive()))!==e&&(t=t<e?v:b,this._slide(t,i[e])))}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&m.on(this._element,"keydown.bs.carousel",e=>this._keydown(e)),"hover"===this._config.pause&&(m.on(this._element,"mouseenter.bs.carousel",()=>this.pause()),m.on(this._element,"mouseleave.bs.carousel",()=>this._maybeEnableCycle())),this._config.touch&&_e.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of f.find(".carousel-item img",this._element))m.on(t,"dragstart.bs.carousel",e=>e.preventDefault());var e={leftCallback:()=>this._slide(this._directionToOrder(y)),rightCallback:()=>this._slide(this._directionToOrder(ve)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new _e(this._element,e)}_keydown(e){var t;/input|textarea/i.test(e.target.tagName)||(t=Ce[e.key])&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){var t;this._indicatorsElement&&((t=f.findOne(we,this._indicatorsElement)).classList.remove(Ee),t.removeAttribute("aria-current"),t=f.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement))&&(t.classList.add(Ee),t.setAttribute("aria-current","true"))}_updateInterval(){var e=this._activeElement||this._getActive();e&&(e=Number.parseInt(e.getAttribute("data-bs-interval"),10),this._config.interval=e||this._config.defaultInterval)}_slide(t,e=null){if(!this._isSliding){const n=this._getActive();var i=t===v;const s=e||Y(this._getItems(),n,i,this._config.wrap);if(s!==n){const o=this._getItemIndex(s),r=e=>m.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:o});e=r("slide.bs.carousel");if(!e.defaultPrevented&&n&&s){e=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const a=i?"carousel-item-start":"carousel-item-end",l=i?"carousel-item-next":"carousel-item-prev";s.classList.add(l),c(s),n.classList.add(a),s.classList.add(a);this._queueCallback(()=>{s.classList.remove(a,l),s.classList.add(Ee),n.classList.remove(Ee,l,a),this._isSliding=!1,r(be)},n,this._isAnimated()),e&&this.cycle()}}}}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return f.findOne(".active.carousel-item",this._element)}_getItems(){return f.find(Se,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return h()?e===y?b:v:e===y?v:b}_orderToDirection(e){return h()?e===b?y:ve:e===b?ve:y}static jQueryInterface(t){return this.each(function(){var e=E.getOrCreateInstance(this,t);if("number"==typeof t)e.to(t);else if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
78amed "${t}"`);e[t]()}})}}m.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",function(e){var t=f.getElementFromSelector(this);t&&t.classList.contains(ye)&&(e.preventDefault(),e=E.getOrCreateInstance(t),(t=this.getAttribute("data-bs-slide-to"))?e.to(t):"next"===u.getDataAttribute(this,"slide")?e.next():e.prev(),e._maybeEnableCycle())}),m.on(window,"load.bs.carousel.data-api",()=>{for(const e of f.find('[data-bs-ride="carousel"]'))E.getOrCreateInstance(e)}),e(E);const Ae="show",w="collapse",Le="collapsing",Ie=(w,w,'[data-bs-toggle="collapse"]'),xe={parent:null,toggle:!0},Me={parent:"(null|element)",toggle:"boolean"};class S extends p{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];for(const s of f.find(Ie)){var i=f.getSelectorFromElement(s),n=f.find(i).filter(e=>e===this._element);null!==i&&n.length&&this._triggerArray.push(s)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return xe}static get DefaultType(){return Me}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(!this._isTransitioning&&!this._isShown()){let e=[];
78if(!(e=this._config.parent?this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>S.getOrCreateInstance(e,{toggle:!1})):e).length||!e[0]._isTransitioning){var t=m.trigger(this._element,"show.bs.collapse");if(!t.defaultPrevented){for(const n of e)n.hide();const i=this._getDimension();this._element.classList.remove(w),this._element.classList.add(Le),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;t="scroll"+(i[0].toUpperCase()+i.slice(1));this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Le),this._element.classList.add(w,Ae),this._element.style[i]="",m.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[i]=this._element[t]+"px"}}}}hide(){if(!this._isTransitioning&&this._isShown()){var e=m.trigger(this._element,"hide.bs.collapse");if(!e.defaultPrevented){e=this._getDimension();this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",c(this._element),this._element.classList.add(Le),this._element.classList.remove(w,Ae);for(const i of this._triggerArray){var t=f.getElementFromSelector(i);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(Le),this._element.classList.add(w),m.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}}}_isShown(e=this._element){return e.classList.contains(Ae)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=s(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(this._config.parent)for(const t of this._getFirstLevelChildren(Ie)){var e=f.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=f.find(":scope .collapse .collapse",this._config.parent);return f.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const i of e)i.classList.toggle("collapsed",!t),i.setAttribute("aria-expanded",t)}static jQueryInterface(t){const i={};return"string"==typeof t&&/show|hide/.test(t)&&(i.toggle=!1),this.each(function(){var e=S.getOrCreateInstance(this,i);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}m.on(document,"click.bs.collapse.data-api",Ie,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const t of f.getMultipleElementsFromSelector(this))S.getOrCreateInstance(t,{toggle:!1}).toggle()}),e(S);const Pe="dropdown";var _=".bs.dropdown",C=".data-api";const De="ArrowDown";var ke="click"+_+C,_="keydown"+_+C;const O="show",T='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ne=(T,".dropdown-menu"),je=h()?"top-end":"top-start",Fe=h()?"top-start":"top-end",He=h()?"bottom-end":"bottom-start",Re=h()?"bottom-start":"bottom-end",Be=h()?"left-start":"right-start",qe=h()?"right-start":"left-start",$e={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Ke={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class A extends p{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=f.next(this._element,Ne)[0]||f.prev(this._element,Ne)[0]||f.findOne(Ne,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return $e}static get DefaultType(){return Ke}static get NAME(){return Pe}toggle(){return this._isShown()?this.hide():this.show()}show(){if(!a(this._element)&&!this._isShown()){var e={relatedTarget:this._element},t=m.trigger(this._element,"show.bs.dropdown",e);if(!t.defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".
78navbar-nav"))for(const i of[].concat(...document.body.children))m.on(i,"mouseover",l);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(O),this._element.classList.add(O),m.trigger(this._element,"shown.bs.dropdown",e)}}}hide(){var e;!a(this._element)&&this._isShown()&&(e={relatedTarget:this._element},this._completeHide(e))}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){var t=m.trigger(this._element,"hide.bs.dropdown",e);if(!t.defaultPrevented){if("ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))m.off(i,"mouseover",l);this._popper&&this._popper.destroy(),this._menu.classList.remove(O),this._element.classList.remove(O),this._element.setAttribute("aria-expanded","false"),u.removeDataAttribute(this._menu,"popper"),m.trigger(this._element,"hidden.bs.dropdown",e)}}_getConfig(e){if("object"!=typeof(e=super._getConfig(e)).reference||o(e.reference)||"function"==typeof e.reference.getBoundingClientRect)return e;throw new TypeError(Pe.toUpperCase()+': Option "reference" provided type "object" without a required "getBoundingClientRect" method.')}_createPopper(){if(void 0===i)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:o(this._config.reference)?e=s(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);var t=this._getPopperConfig();this._popper=i.createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains(O)}_getPlacement(){var e,t=this._parent;return t.classList.contains("dropend")?Be:t.classList.contains("dropstart")?qe:t.classList.contains("dropup-center")?"top":t.classList.contains("dropdown-center")?"bottom":(e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim(),t.classList.contains("dropup")?e?Fe:je:e?Re:He)}
78_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const t=this._config["offset"];return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){var e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return!this._inNavbar&&"static"!==this._config.display||(u.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...d(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){var i=f.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>r(e));i.length&&Y(i,t,e===De,!i.includes(t)).focus()}static jQueryInterface(t){return this.each(function(){var e=A.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(e){if(2!==e.button&&("keyup"!==e.type||"Tab"===e.key))for(const s of f.find('[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled).show')){var t,i,n=A.getInstance(s);n&&!1!==n._config.autoClose&&(t=(i=e.composedPath()).includes(n._menu),i.includes(n._element)||"inside"===n._config.autoClose&&!t||"outside"===n._config.autoClose&&t||n._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName))||(i={relatedTarget:n._element},"click"===e.type&&(i.clickEvent=e),n._completeHide(i)))}}static dataApiKeydownHandler(e){var t=/input|textarea/i.test(e.target.tagName),i="Escape"===e.key,n=["ArrowUp",De].includes(e.key);!n&&!i||t&&!i||(e.preventDefault(),t=this.matches(T)?this:f.prev(this,T)[0]||f.next(this,T)[0]||f.findOne(T,e.delegateTarget.parentNode),i=A.getOrCreateInstance(t),n?(e.stopPropagation(),i.show(),i._selectMenuItem(e)):i._isShown()&&(e.stopPropagation(),i.hide(),t.focus()))}}m.on(document,_,T,A.dataApiKeydownHandler),m.on(document,_,Ne,A.dataApiKeydownHandler),m.on(document,ke,A.clearMenus),m.on(document,"keyup.bs.dropdown.data-api",A.clearMenus),m.on(document,ke,T,function(e){e.preventDefault(),A.getOrCreateInstance(this).toggle()}),e(A);const We="backdrop",Ve="mousedown.bs."+We,Ye={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ze={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ge extends t{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Ye}static get DefaultType(){return ze}static get NAME(){return We}show(e){var t;this._config.isVisible?(this._append(),t=this._getElement(),this._config.isAnimated&&c(t),t.classList.add("show"),this._emulateAnimation(()=>{d(e)})):d(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove("show"),this._emulateAnimation(()=>{this.dispose(),d(e)})):d(e)}dispose(){this._isAppended&&(m.off(this._element,Ve),this._element.remove(),this._isAppended=!1)}_getElement(){var e;return this._element||((e=document.createElement("div")).className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e),this._element}_configAfterMerge(e){return e.rootElement=s(e.rootElement),e}_append(){var e;this._isAppended||(e=this._getElement(),this._config.rootElement.append(e),m.on(e,Ve,()=>{d(this._config.clickCallback)}),this._isAppended=!0)}_emulateAnimation(e){V(e,this._getElement(),this._config.isAnimated)}}const Ue=".bs.focustrap",Xe=(Ue,Ue,"backward"),Qe={autofocus:!0,trapElement:null},Je={autofocus:"boolean",trapElement:"element"};class Ze extends t{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Qe}static get DefaultType(){return Je}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),m.off(document,Ue),m.on(document,"focusin.bs.focustrap",e=>this._handleFocusin(e)),m.on(document,"keydown.tab.bs.focustrap",e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,m.off(document,Ue))}_handleFocusin(e){var t=this._config["trapElement"];e.target===document||e.target===t||t.contains(e.target)||(0===(e=f.focusableChildren(t)).length?t:this._lastTabNavDirection===Xe?e[e.length-1]:e[0]).focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Xe:"forward")}}const et=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",tt=".sticky-top",it="padding-right",nt="margin-right";class st{constructor(){this._element=document.body}getWidth(){var e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,it,e=>e+t),this._setElementAttributes(et,it,e=>e+t),this._setElementAttributes(tt,nt,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,it),this._resetElementAttributes(et,it),this._resetElementAttributes(tt,nt)}isOverflowing(){return 0<this.getWidth()}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,i,n){const s=this.getWidth();this._applyManipulationCallback(e,e=>{var t;e!==this._element&&window.innerWidth>e.clientWidth+s||(this._saveInitialAttribute(e,i),t=window.getComputedStyle(e).getPropertyValue(i),e.style.setProperty(i,n(Number.parseFloat(t))+"px"))})}_saveInitialAttribute(e,t){var i=e.style.getPropertyValue(t);i&&u.setDataAttribute(e,t,i)}_resetElementAttributes(e,i){this._applyManipulationCallback(e,e=>{var t=u.getDataAttribute(e,i);null===t?e.style.removeProperty(i):(u.removeDataAttribute(e,i),e.style.setProperty(i,t))})}
78_applyManipulationCallback(e,t){if(o(e))t(e);else for(const i of f.find(e,this._element))t(i)}}const L=".bs.modal";L,L;const ot="hidden"+L,rt="show"+L;L,L,L,L,L;L;const at="modal-open",lt="modal-static";const ct={backdrop:!0,focus:!0,keyboard:!0},ht={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class I extends p{constructor(e,t){super(e,t),this._dialog=f.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new st,this._addEventListeners()}static get Default(){return ct}static get DefaultType(){return ht}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||m.trigger(this._element,rt,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(at),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||m.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove("show"),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){m.off(window,L),m.off(this._dialog,L),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ge({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ze({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;var t=f.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),c(this._element),this._element.classList.add("show");this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,m.trigger(this._element,"shown.bs.modal",{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){m.on(this._element,"keydown.dismiss.bs.modal",e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),m.on(window,"resize.bs.modal",()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),m.on(this._element,"mousedown.dismiss.bs.modal",t=>{m.one(this._element,"click.dismiss.bs.modal",e=>{this._element===t.target&&this._element===e.target&&("static"===this._config.backdrop?this._triggerBackdropTransition():this._config.backdrop&&this.hide())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(at),this._resetAdjustments(),this._scrollBar.reset(),m.trigger(this._element,ot)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){var e=m.trigger(this._element,"hidePrevented.bs.modal");if(!e.defaultPrevented){e=this._element.scrollHeight>document.documentElement.clientHeight;const t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(lt)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(lt),this._queueCallback(()=>{this._element.classList.remove(lt),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}}_adjustDialog(){var e,t=this._element.scrollHeight>document.documentElement.clientHeight,i=this._scrollBar.getWidth(),n=0<i;n&&!t&&(e=h()?"paddingLeft":"paddingRight",this._element.style[e]=i+"px"),!n&&t&&(e=h()?"paddingRight":"paddingLeft",this._element.style[e]=i+"px")}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,i){return this.each(function(){var e=I.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
78amed "${t}"`);e[t](i)}})}}m.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(e){const t=f.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),m.one(t,rt,e=>{e.defaultPrevented||m.one(t,ot,()=>{r(this)&&this.focus()})});e=f.findOne(".modal.show");e&&I.getInstance(e).hide(),I.getOrCreateInstance(t).toggle(this)}),de(I),e(I);C=".bs.offcanvas";const dt="showing",ut=".offcanvas.show",pt="hidePrevented"+C,ft="hidden"+C;const mt={backdrop:!0,keyboard:!0,scroll:!1},gt={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class x extends p{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return mt}static get DefaultType(){return gt}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||m.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new st).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(dt),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add("show"),this._element.classList.remove(dt),m.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&!m.trigger(this._element,"hide.bs.offcanvas").defaultPrevented&&(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add("hiding"),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove("show","hiding"),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new st).reset(),m.trigger(this._element,ft)},this._element,!0))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){var e=Boolean(this._config.backdrop);return new Ge({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"===this._config.backdrop?m.trigger(this._element,pt):this.hide()}:null})}_initializeFocusTrap(){return new Ze({trapElement:this._element})}_addEventListeners(){m.on(this._element,"keydown.dismiss.bs.offcanvas",e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():m.trigger(this._element,pt))})}static jQueryInterface(t){return this.each(function(){var e=x.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}m.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(e){var t=f.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),a(this)||(m.one(t,ft,()=>{r(this)&&this.focus()}),(e=f.findOne(ut))&&e!==t&&x.getInstance(e).hide(),x.getOrCreateInstance(t).toggle(this))}),m.on(window,"load.bs.offcanvas.data-api",()=>{for(const e of f.find(ut))x.getOrCreateInstance(e).show()}),m.on(window,"resize.bs.offcanvas",()=>{for(const e of f.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&x.getOrCreateInstance(e).hide()}),de(x),e(x);_={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};const _t=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),vt=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i;function bt(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);i=(new window.DOMParser).parseFromString(e,"text/html");for(const r of[].concat(...i.body.querySelectorAll("*"))){var n=r.nodeName.toLowerCase();if(Object.keys(t).includes(n)){var s=[].concat(...r.attributes),o=[].concat(t["*"]||[],t[n]||[]);for(const a of s)((e,t)=>{const i=e.nodeName.toLowerCase();return t.includes(i)?!_t.has(i)||Boolean(vt.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(i))})(a,o)||r.removeAttribute(a.nodeName)}else r.remove()}return i.body.innerHTML}const yt={allowList:_,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Et={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},wt={entry:"(string|element|function|null)",selector:"(string|element)"};class St extends t{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return yt}static get DefaultType(){return Et}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>
78this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return 0<this.getContent().length}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){var e,t,i=document.createElement("div");i.innerHTML=this._maybeSanitize(this._config.template);for([e,t]of Object.entries(this._config.content))this._setContent(i,t,e);var n=i.children[0],s=this._resolvePossibleFunction(this._config.extraClass);return s&&n.classList.add(...s.split(" ")),n}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(var[t,i]of Object.entries(e))super._typeCheckConfig({selector:t,entry:i},wt)}_setContent(e,t,i){i=f.findOne(i,e);i&&((t=this._resolvePossibleFunction(t))?o(t)?this._putElementInTemplate(s(t),i):this._config.html?i.innerHTML=this._maybeSanitize(t):i.textContent=t:i.remove())}_maybeSanitize(e){return this._config.sanitize?bt(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return d(e,[this])}_putElementInTemplate(e,t){this._config.html?(t.innerHTML="",t.append(e)):t.textContent=e.textContent}}const Ct=new Set(["sanitize","allowList","sanitizeFn"]),Ot="fade";const Tt="show",At="hide.bs.modal",M="hover",Lt="focus",It={AUTO:"auto",TOP:"top",RIGHT:h()?"left":"right",BOTTOM:"bottom",LEFT:h()?"right":"left"},xt={allowList:_,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Mt={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class P extends p{constructor(e,t){if(void 0===i)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return xt}static get DefaultType(){return Mt}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),m.off(this._element.closest(".modal"),At,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(this._isWithContent()&&this._isEnabled){var e=m.trigger(this._element,this.constructor.eventName("show")),t=($(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(!e.defaultPrevented&&t){this._disposePopper();e=this._getTipElement(),t=(this._element.setAttribute("aria-describedby",e.getAttribute("id")),this._config)["container"];if(this._element.ownerDocument.documentElement.contains(this.tip)||(t.append(e),m.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(e),e.classList.add(Tt),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))m.on(i,"mouseover",l);this._queueCallback(()=>{m.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}}}
78hide(){if(this._isShown()){var e=m.trigger(this._element,this.constructor.eventName("hide"));if(!e.defaultPrevented){if(this._getTipElement().classList.remove(Tt),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))m.off(t,"mouseover",l);this._activeTrigger.click=!1,this._activeTrigger[Lt]=!1,this._activeTrigger[M]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),m.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){e=this._getTemplateFactory(e).toHtml();if(!e)return null;e.classList.remove(Ot,Tt),e.classList.add(`bs-${this.constructor.NAME}-auto`);var t=(e=>{for(;e+=Math.floor(1e6*Math.random()),document.getElementById(e););return e})(this.constructor.NAME).toString();return e.setAttribute("id",t),this._isAnimated()&&e.classList.add(Ot),e}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new St({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ot)}_isShown(){return this.tip&&this.tip.classList.contains(Tt)}_createPopper(e){var t=d(this._config.placement,[this,e,this._element]),t=It[t.toUpperCase()];return i.createPopper(this._element,e,this._getPopperConfig(t))}_getOffset(){const t=this._config["offset"];return"string"==typeof t?t.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(e){return d(e,[this._element])}_getPopperConfig(e){e={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...e,...d(this._config.popperConfig,[e])}}_setListeners(){var e,t;for(const i of this._config.trigger.split(" "))"click"===i?m.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{this._initializeOnDelegatedTarget(e).toggle()}):"manual"!==i&&(e=i===M?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),t=i===M?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout"),m.on(this._element,e,this._config.selector,e=>{var t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?Lt:M]=!0,t._enter()}),m.on(this._element,t,this._config.selector,e=>{var t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?Lt:M]=t._element.contains(e.relatedTarget),t._leave()}));this._hideModalHandler=()=>{this._element&&this.hide()},m.on(this._element.closest(".modal"),At,this._hideModalHandler)}_fixTitle(){var e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){var t=u.getDataAttributes(this._element);for(const i of Object.keys(t))Ct.has(i)&&delete t[i];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:s(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){var e,t,i={};for([e,t]of Object.entries(this._config))this.constructor.Default[e]!==t&&(i[e]=t);return i.selector=!1,i.trigger="manual",i}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){var e=P.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method n
78amed "${t}"`);e[t]()}})}}e(P);const Pt={...P.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Dt={...P.DefaultType,content:"(null|string|element|function)"};class kt extends P{static get Default(){return Pt}static get DefaultType(){return Dt}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){var e=kt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}e(kt);ke=".bs.scrollspy";const Nt="click"+ke;const D="active",jt="[href]";const Ft={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ht={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Rt extends p{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Ft}static get DefaultType(){return Ht}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=s(e.target)||document.body,e.rootMargin=e.offset?e.offset+"px 0px -30%":e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(m.off(this._config.target,Nt),m.on(this._config.target,Nt,jt,e=>{var t=this._observableSections.get(e.target.hash);t&&(e.preventDefault(),e=this._rootElement||window,t=t.offsetTop-this._element.offsetTop,e.scrollTo?e.scrollTo({top:t,behavior:"smooth"}):e.scrollTop=t)}))}_getNewObserver(){var e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){const t=e=>this._targetLinks.get("#"+e.target.id);var i=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const r of e)if(r.isIntersecting){var o=r.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&o){if(i(r),n)continue;return}s||o||i(r)}else this._activeTarget=null,this._clearActiveClass(t(r))}_initializeTargetsAndObservables(){var e;this._targetLinks=new Map,this._observableSections=new Map;for(const t of f.find(jt,this._config.target))t.hash&&!a(t)&&(e=f.findOne(decodeURI(t.hash),this._element),r(e))&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),(this._activeTarget=e).classList.add(D),this._activateParents(e),m.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))f.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(D);else for(const t of f.parents(e,".nav, .list-group"))for(const i of f.prev(t,".nav-link, .nav-item > .nav-link, .list-group-item"))i.classList.add(D)}_clearActiveClass(e){e.classList.remove(D);for(const t of f.find(jt+"."+D,e))t.classList.remove(D)}static jQueryInterface(t){return this.each(function(){var e=Rt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method n
78amed "${t}"`);e[t]()}})}}m.on(window,"load.bs.scrollspy.data-api",()=>{for(const e of f.find('[data-bs-spy="scroll"]'))Rt.getOrCreateInstance(e)}),e(Rt);const Bt="ArrowRight",qt="ArrowDown",$t="Home",k="active",Kt="show",Wt=".dropdown-toggle";Wt;C='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]';const Vt='.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), '+C;k,k,k;class N extends p{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),m.on(this._element,"keydown.bs.tab",e=>this._keydown(e)))}static get NAME(){return"tab"}show(){var e,t,i=this._element;this._elemIsActive(i)||(t=(e=this._getActiveElem())?m.trigger(e,"hide.bs.tab",{relatedTarget:i}):null,m.trigger(i,"show.bs.tab",{relatedTarget:e}).defaultPrevented)||t&&t.defaultPrevented||(this._deactivate(e,i),this._activate(i,e))}_activate(e,t){e&&(e.classList.add(k),this._activate(f.getElementFromSelector(e)),this._queueCallback(()=>{"tab"!==e.getAttribute("role")?e.classList.add(Kt):(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),m.trigger(e,"shown.bs.tab",{relatedTarget:t}))},e,e.classList.contains("fade")))}_deactivate(e,t){e&&(e.classList.remove(k),e.blur(),this._deactivate(f.getElementFromSelector(e)),this._queueCallback(()=>{"tab"!==e.getAttribute("role")?e.classList.remove(Kt):(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),m.trigger(e,"hidden.bs.tab",{relatedTarget:t}))},e,e.classList.contains("fade")))}_keydown(t){if(["ArrowLeft",Bt,"ArrowUp",qt,$t,"End"].includes(t.key)){t.stopPropagation(),t.preventDefault();var i,n=this._getChildren().filter(e=>!a(e));let e;(e=[$t,"End"].includes(t.key)?n[t.key===$t?0:n.length-1]:(i=[Bt,qt].includes(t.key),Y(n,t.target,i,!0)))&&(e.focus({preventScroll:!0}),N.getOrCreateInstance(e).show())}}_getChildren(){return f.find(Vt,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const i of t)this._setInitialAttributesOnChild(i)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);var t=this._elemIsActive(e),i=this._getOuterElement(e);e.setAttribute("aria-selected",t),i!==e&&this._setAttributeIfNotExists(i,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){var t=f.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id)&&this._setAttributeIfNotExists(t,"aria-labelledby",""+e.id)}_toggleDropDown(e,i){const n=this._getOuterElement(e);n.classList.contains("dropdown")&&((e=(e,t)=>{e=f.findOne(e,n);e&&e.classList.toggle(t,i)})(Wt,k),e(".dropdown-menu",Kt),n.setAttribute("aria-expanded",i))}_setAttributeIfNotExists(e,t,i){e.hasAttribute(t)||e.setAttribute(t,i)}_elemIsActive(e){return e.classList.contains(k)}_getInnerElement(e){return e.matches(Vt)?e:f.findOne(Vt,e)}
78_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(t){return this.each(function(){var e=N.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}m.on(document,"click.bs.tab",C,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),a(this)||N.getOrCreateInstance(this).show()}),m.on(window,"load.bs.tab",()=>{for(const e of f.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))N.getOrCreateInstance(e)}),e(N);const Yt="show",zt="showing",Gt={animation:"boolean",autohide:"boolean",delay:"number"},Ut={animation:!0,autohide:!0,delay:5e3};class Xt extends p{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Ut}static get DefaultType(){return Gt}static get NAME(){return"toast"}show(){m.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove("hide"),c(this._element),this._element.classList.add(Yt,zt),this._queueCallback(()=>{this._element.classList.remove(zt),m.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&!m.trigger(this._element,"hide.bs.toast").defaultPrevented&&(this._element.classList.add(zt),this._queueCallback(()=>{this._element.classList.add("hide"),this._element.classList.remove(zt,Yt),m.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Yt),super.dispose()}isShown(){return this._element.classList.contains(Yt)}_maybeScheduleHide(){!this._config.autohide||this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}t?this._clearTimeout():(e=e.relatedTarget,this._element===e||this._element.contains(e)||this._maybeScheduleHide())}_setListeners(){m.on(this._element,"mouseover.bs.toast",e=>this._onInteraction(e,!0)),m.on(this._element,"mouseout.bs.toast",e=>this._onInteraction(e,!1)),m.on(this._element,"focusin.bs.toast",e=>this._onInteraction(e,!0)),m.on(this._element,"focusout.bs.toast",e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){var e=Xt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}return de(Xt),e(Xt),{Alert:ue,Button:fe,Carousel:E,Collapse:S,Dropdown:A,Modal:I,Offcanvas:x,Popover:kt,ScrollSpy:Rt,Tab:N,Toast:Xt,Tooltip:P}}),function(){"use strict";var i={282:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.clearChoices=t.activateChoices=t.filterChoices=t.addChoice=void 0;var c=i(883);t.addChoice=function(e){var t=e.value,i=e.label,n=e.id,s=e.groupId,o=e.disabled,r=e.elementId,a=e.customProperties,l=e.placeholder,e=e.keyCode;return{type:c.ACTION_TYPES.ADD_CHOICE,value:t,label:i,id:n,groupId:s,disabled:o,elementId:r,customProperties:a,placeholder:l,keyCode:e}},t.filterChoices=function(e){return{type:c.ACTION_TYPES.FILTER_CHOICES,results:e}},t.activateChoices=function(e){return{type:c.ACTION_TYPES.ACTIVATE_CHOICES,active:e=void 0===e?!0:e}},t.clearChoices=function(){return{type:c.ACTION_TYPES.CLEAR_CHOICES}}},783:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.addGroup=void 0;var s=i(883);t.addGroup=function(e){var t=e.value,i=e.id,n=e.active,e=e.disabled;return{type:s.ACTION_TYPES.ADD_GROUP,value:t,id:i,active:n,disabled:e}}},464:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.highlightItem=t.removeItem=t.addItem=void 0;var l=i(883);t.addItem=function(e){var t=e.value,i=e.label,n=e.id,s=e.choiceId,o=e.groupId,r=e.customProperties,a=e.placeholder,e=e.keyCode;return{type:l.ACTION_TYPES.ADD_ITEM,value:t,label:i,id:n,choiceId:s,groupId:o,customProperties:r,placeholder:a,keyCode:e}},t.removeItem=function(e,t){return{type:l.ACTION_TYPES.REMOVE_ITEM,id:e,choiceId:t}},t.highlightItem=function(e,t){return{type:l.ACTION_TYPES.HIGHLIGHT_ITEM,id:e,highlighted:t}}}
78,137:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setIsLoading=t.resetTo=t.clearAll=void 0;var n=i(883);t.clearAll=function(){return{type:n.ACTION_TYPES.CLEAR_ALL}},t.resetTo=function(e){return{type:n.ACTION_TYPES.RESET_TO,state:e}},t.setIsLoading=function(e){return{type:n.ACTION_TYPES.SET_IS_LOADING,isLoading:e}}},373:function(e,t,i){var f=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,s=0,o=t.length;s<o;s++)!n&&s in t||((n=n||Array.prototype.slice.call(t,0,s))[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},s=(Object.defineProperty(t,"__esModule",{value:!0}),n(i(996))),o=n(i(221)),h=i(282),l=i(783),c=i(464),r=i(137),a=i(520),g=i(883),d=i(789),m=i(799),u=i(655),p=n(i(744)),_=n(i(686)),v="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,b={};function y(e,t){void 0===e&&(e="[data-choice]");var i=this,n=(void 0===(t=void 0===t?{}:t).allowHTML&&console.warn("Deprecation warning: allowHTML will default to false in a future release. To render HTML in Choices, you will need to set it to true. Setting allowHTML will suppress this message."),this.config=s.default.all([d.DEFAULT_CONFIG,y.defaults.options,t],{arrayMerge:function(e,t){return f([],t,!0)}}),(0,m.diff)(this.config,d.DEFAULT_CONFIG)),n=(n.length&&console.warn("Unknown config option(s) passed",n.join(", ")),"string"==typeof e?document.querySelector(e):e);if(!(n instanceof HTMLInputElement||n instanceof HTMLSelectElement))throw TypeError("Expected one of the following types text|select-one|select-multiple");this._isTextElement=n.type===g.TEXT_TYPE,this._isSelectOneElement=n.type===g.SELECT_ONE_TYPE,this._isSelectMultipleElement=n.type===g.SELECT_MULTIPLE_TYPE,this._isSelectElement=this._isSelectOneElement||this._isSelectMultipleElement,this.config.searchEnabled=this._isSelectMultipleElement||this.config.searchEnabled,["auto","always"].includes("".concat(this.config.renderSelectedChoices))||(this.config.renderSelectedChoices="auto"),t.addItemFilter&&"function"!=typeof t.addItemFilter&&(t=t.addItemFilter instanceof RegExp?t.addItemFilter:new RegExp(t.addItemFilter),this.config.addItemFilter=t.test.bind(t)),this._isTextElement?this.passedElement=new a.WrappedInput({element:n,classNames:this.config.classNames,delimiter:this.config.delimiter}):this.passedElement=new a.WrappedSelect({element:n,classNames:this.config.classNames,template:function(e){return i._templates.option(e)}}),this.initialised=!1,this._store=new p.default,this._initialState=u.defaultState,this._currentState=u.defaultState,this._prevState=u.defaultState,this._currentValue="",this._canSearch=!!this.config.searchEnabled,this._isScrollingOnIe=!1,this._highlightPosition=0,this._wasTap=!0,this._placeholderValue=this._generatePlaceholderValue(),this._baseId=(0,m.generateId)(this.passedElement.element,"choices-"),this._direction=this.passedElement.dir,this._direction||(t=window.getComputedStyle(this.passedElement.element).direction)!==window.getComputedStyle(document.documentElement).direction&&(this._direction=t),this._idNames={itemChoice:"item-choice"},this._isSelectElement&&(this._presetGroups=this.passedElement.optionGroups,this._presetOptions=this.passedElement.options),this._presetChoices=this.config.choices,this._presetItems=this.config.items,this.passedElement.value&&this._isTextElement&&(n=this.passedElement.value.split(this.config.delimiter),this._presetItems=this._presetItems.concat(n)),this.passedElement.options&&this.passedElement.options.forEach(function(e){i._presetChoices.push({value:e.value,label:e.innerHTML,selected:!!e.selected,disabled:e.disabled||e.parentNode.disabled,placeholder:""===e.value||e.hasAttribute("placeholder"),customProperties:(0,m.parseCustomProperties)(e.dataset.customProperties)})}),this._render=this._render.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onKeyUp=this._onKeyUp.bind(this),this._onKeyDown=this._onKeyDown.bind(this),this._onClick=this._onClick.bind(this),this._onTouchMove=this._onTouchMove.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onMouseDown=this._onMouseDown.bind(this),this._onMouseOver=this._onMouseOver.bind(this),this._onFormReset=this._onFormReset.bind(this),this._onSelectKey=this._onSelectKey.bind(this),this._onEnterKey=this._onEnterKey.bind(this),this._onEscapeKey=this._onEscapeKey.bind(this),this._onDirectionKey=this._onDirectionKey.bind(this),this._onDeleteKey=this._onDeleteKey.bind(this),this.passedElement.isActive?(this.config.silent||console.warn("Trying to initialise Choices on element already initialised",{element:e}),this.initialised=!0):this.init()}Object.defineProperty(y,"defaults",{get:function(){return Object.preventExtensions({get options(){return b},get templates(){return _.default}})}
78,enumerable:!1,configurable:!0}),y.prototype.init=function(){var e;this.initialised||(this._createTemplates(),this._createElements(),this._createStructure(),this._store.subscribe(this._render),this._render(),this._addEventListeners(),this.config.addItems&&!this.passedElement.element.hasAttribute("disabled")||this.disable(),this.initialised=!0,(e=this.config.callbackOnInit)&&"function"==typeof e&&e.call(this))},y.prototype.destroy=function(){this.initialised&&(this._removeEventListeners(),this.passedElement.reveal(),this.containerOuter.unwrap(this.passedElement.element),this.clearStore(),this._isSelectElement&&(this.passedElement.options=this._presetOptions),this._templates=_.default,this.initialised=!1)},y.prototype.enable=function(){return this.passedElement.isDisabled&&this.passedElement.enable(),this.containerOuter.isDisabled&&(this._addEventListeners(),this.input.enable(),this.containerOuter.enable()),this},y.prototype.disable=function(){return this.passedElement.isDisabled||this.passedElement.disable(),this.containerOuter.isDisabled||(this._removeEventListeners(),this.input.disable(),this.containerOuter.disable()),this},y.prototype.highlightItem=function(e,t){var i,n,s;return void 0===t&&(t=!0),e&&e.id&&(i=e.id,s=e.groupId,n=void 0===(n=e.value)?"":n,e=void 0===(e=e.label)?"":e,s=0<=(s=void 0===s?-1:s)?this._store.getGroupById(s):null,this._store.dispatch((0,c.highlightItem)(i,!0)),t&&this.passedElement.triggerEvent(g.EVENTS.highlightItem,{id:i,value:n,label:e,groupValue:s&&s.value?s.value:null})),this},y.prototype.unhighlightItem=function(e){var t,i,n;return e&&e.id&&(t=e.id,n=e.groupId,i=void 0===(i=e.value)?"":i,e=void 0===(e=e.label)?"":e,n=0<=(n=void 0===n?-1:n)?this._store.getGroupById(n):null,this._store.dispatch((0,c.highlightItem)(t,!1)),this.passedElement.triggerEvent(g.EVENTS.highlightItem,{id:t,value:i,label:e,groupValue:n&&n.value?n.value:null})),this},y.prototype.highlightAll=function(){var t=this;return this._store.items.forEach(function(e){return t.highlightItem(e)}),this},y.prototype.unhighlightAll=function(){var t=this;return this._store.items.forEach(function(e){return t.unhighlightItem(e)}),this},y.prototype.removeActiveItemsByValue=function(t){var i=this;return this._store.activeItems.filter(function(e){return e.value===t}).forEach(function(e){return i._removeItem(e)}),this},y.prototype.removeActiveItems=function(t){var i=this;return this._store.activeItems.filter(function(e){return e.id!==t}).forEach(function(e){return i._removeItem(e)}),this},y.prototype.removeHighlightedItems=function(t){var i=this;return void 0===t&&(t=!1),this._store.highlightedActiveItems.forEach(function(e){i._removeItem(e),t&&i._triggerChange(e.value)}),this},y.prototype.showDropdown=function(e){var t=this;return this.dropdown.isActive||requestAnimationFrame(function(){t.dropdown.show(),t.containerOuter.open(t.dropdown.distanceFromTopWindow),!e&&t._canSearch&&t.input.focus(),t.passedElement.triggerEvent(g.EVENTS.showDropdown,{})}),this},y.prototype.hideDropdown=function(e){var t=this;return this.dropdown.isActive&&requestAnimationFrame(function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent(g.EVENTS.hideDropdown,{})}),this},y.prototype.getValue=function(i){void 0===i&&(i=!1);var e=this._store.activeItems.reduce(function(e,t){t=i?t.value:t;return e.push(t),e},[]);return this._isSelectOneElement?e[0]:e},y.prototype.setValue=function(e){var t=this;return this.initialised&&e.forEach(function(e){return t._setChoiceOrItem(e)}),this},y.prototype.setChoiceByValue=function(e){var t=this;return this.initialised&&!this._isTextElement&&(Array.isArray(e)?e:[e]).forEach(function(e){return t._findAndSelectChoiceByValue(e)}),this},y.prototype.setChoices=function(e,t,i,n){var s=this;if(void 0===e&&(e=[]),void 0===t&&(t="value"),void 0===i&&(i="label"),void 0===n&&(n=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof t||!t)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(n&&this.clearChoices(),"function"==typeof e){var o=e(this);if("function"==typeof Promise&&o instanceof Promise)return new Promise(function(e){return requestAnimationFrame(e)}).then(function(){return s._handleLoadingState(!0)}).then(function(){return o}
78).then(function(e){return s.setChoices(e,t,i,n)}).catch(function(e){s.config.silent||console.error(e)}).then(function(){return s._handleLoadingState(!1)}).then(function(){return s});if(Array.isArray(o))return this.setChoices(o,t,i,!1);throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof o))}if(Array.isArray(e))return this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach(function(e){e.choices?s._addGroup({id:e.id?parseInt("".concat(e.id),10):null,group:e,valueKey:t,labelKey:i}):s._addChoice({value:e[t],label:e[i],isSelected:!!e.selected,isDisabled:!!e.disabled,placeholder:!!e.placeholder,customProperties:e.customProperties})}),this._stopLoading(),this;throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices")},y.prototype.clearChoices=function(){return this._store.dispatch((0,h.clearChoices)()),this},y.prototype.clearStore=function(){return this._store.dispatch((0,r.clearAll)()),this},y.prototype.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,h.activateChoices)(!0))),this},y.prototype._render=function(){var e,t,i;this._store.isLoading()||(this._currentState=this._store.state,e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,t=this._isSelectElement,i=this._currentState.items!==this._prevState.items,e&&(t&&this._renderChoices(),i&&this._renderItems(),this._prevState=this._currentState))},y.prototype._renderChoices=function(){var e,t,i=this,n=this._store,s=n.activeGroups,n=n.activeChoices,o=document.createDocumentFragment();this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame(function(){return i.choiceList.scrollToTop()}),1<=s.length&&!this._isSearching?(1<=(e=n.filter(function(e){return!0===e.placeholder&&-1===e.groupId})).length&&(o=this._createChoicesFragment(e,o)),o=this._createGroupsFragment(s,n,o)):1<=n.length&&(o=this._createChoicesFragment(n,o)),o.childNodes&&0<o.childNodes.length?(e=this._store.activeItems,(s=this._canAddItem(e,this.input.value)).response?(this.choiceList.append(o),this._highlightChoice()):(t=this._getTemplate("notice",s.notice),this.choiceList.append(t))):(t=n=void 0,n=this._isSearching?(t="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,this._getTemplate("notice",t,"no-results")):(t="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,this._getTemplate("notice",t,"no-choices")),this.choiceList.append(n))},y.prototype._renderItems=function(){var e=this._store.activeItems||[],e=(this.itemList.clear(),this._createItemsFragment(e));e.childNodes&&this.itemList.append(e)},y.prototype._createGroupsFragment=function(e,n,s){var o=this;return void 0===s&&(s=document.createDocumentFragment()),this.config.shouldSort&&e.sort(this.config.sorter),e.forEach(function(e){t=e;var t,i=n.filter(function(e){return o._isSelectOneElement?e.groupId===t.id:e.groupId===t.id&&("always"===o.config.renderSelectedChoices||!e.selected)});1<=i.length&&(e=o._getTemplate("choiceGroup",e),s.appendChild(e),o._createChoicesFragment(i,s,!0))}),s},y.prototype._createChoicesFragment=function(e,t,i){var n=this,s=(void 0===t&&(t=document.createDocumentFragment()),void 0===i&&(i=!1),this.config),o=s.renderSelectedChoices,r=s.searchResultLimit,s=s.renderChoiceLimit,a=this._isSearching?m.sortByScore:this.config.sorter,l=e,e=(l="auto"!==o||this._isSelectOneElement?l:e.filter(function(e){return!e.selected})).reduce(function(e,t){return(t.placeholder?e.placeholderChoices:e.normalChoices).push(t),e},{placeholderChoices:[],normalChoices:[]}),c=e.placeholderChoices,e=e.normalChoices,h=((this.config.shouldSort||this._isSearching)&&e.sort(a),l.length),d=this._isSelectOneElement?f(f([],c,!0),e,!0):e;this._isSearching?h=r:s&&0<s&&!i&&(h=s);for(var u,p=0;p<h;p+=1)d[p]&&(u=d[p],"auto"===o&&!n._isSelectOneElement&&u.selected||(u=n._getTemplate("choice",u,n.config.itemSelectText),t.appendChild(u)));return t},y.prototype._createItemsFragment=function(e,t){var i=this,n=(void 0===t&&(t=document.createDocumentFragment()),this.config),s=n.shouldSortItems,o=n.sorter,r=n.removeItemButton;return s&&!this._isSelectOneElement&&e.sort(o),this._isTextElement?this.passedElement.value=e.map(function(e){return e.value}).join(this.config.delimiter):this.passedElement.options=e,e.forEach(function(e){e=i._getTemplate("item",e,r);t.appendChild(e)}),t},y.prototype._triggerChange=function(e){null!=e&&this.passedElement.triggerEvent(g.EVENTS.change,{value:e})},y.prototype._selectPlaceholderChoice=function(e){this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,placeholder:e.placeholder}),this._triggerChange(e.value)},y.prototype._handleButtonAction=function(e,t){var i;e&&t&&this.config.removeItems&&this.config.removeItemButton&&(t=(i=t.parentNode&&t.parentNode.dataset.id)&&e.find(function(e){return e.id===parseInt(i,10)}))&&(this._removeItem(t),this._triggerChange(t.value),this._isSelectOneElement)&&this._store.placeholderChoice&&this._selectPlaceholderChoice(this._store.placeholderChoice)},y.prototype._handleItemAction=function(e,t,i){var n,s=this;void 0===i&&(i=!1),e&&t&&this.config.removeItems&&!this._isSelectOneElement&&(n=t.dataset.id,e.forEach(function(e){e.id!==parseInt("".concat(n),10)||e.highlighted?!i&&e.highlighted&&s.unhighlightItem(e):s.highlightItem(e)}),this.input.focus())},y.prototype._handleChoiceAction=function(e,t){var i,n;e&&t&&(t=(t=t.dataset.id)&&this._store.getChoiceById(t))&&(i=e[0]&&e[0].keyCode?e[0].keyCode:void 0,n=this.dropdown.isActive,t.keyCode=i,this.passedElement.triggerEvent(g.EVENTS.choice,{choice:t}),t.selected||t.disabled||this._canAddItem(e,t.value).response&&(this._addItem({value:t.value,label:t.label,choiceId:t.id,groupId:t.groupId,customProperties:t.customProperties,placeholder:t.placeholder,ke
78yCode:t.keyCode}),this._triggerChange(t.value)),this.clearInput(),n)&&this._isSelectOneElement&&(this.hideDropdown(!0),this.containerOuter.focus())},y.prototype._handleBackspace=function(e){var t;this.config.removeItems&&e&&(t=e[e.length-1],e=e.some(function(e){return e.highlighted}),this.config.editItems&&!e&&t?(this.input.value=t.value,this.input.setWidth(),this._removeItem(t),this._triggerChange(t.value)):(e||this.highlightItem(t,!1),this.removeHighlightedItems(!0)))},y.prototype._startLoading=function(){this._store.dispatch((0,r.setIsLoading)(!0))},y.prototype._stopLoading=function(){this._store.dispatch((0,r.setIsLoading)(!1))},y.prototype._handleLoadingState=function(e){void 0===e&&(e=!0);var t=this.itemList.getChild(".".concat(this.config.classNames.placeholder));e?(this.disable(),this.containerOuter.addLoadingState(),this._isSelectOneElement?t?t.innerHTML=this.config.loadingText:(t=this._getTemplate("placeholder",this.config.loadingText))&&this.itemList.append(t):this.input.placeholder=this.config.loadingText):(this.enable(),this.containerOuter.removeLoadingState(),this._isSelectOneElement?t&&(t.innerHTML=this._placeholderValue||""):this.input.placeholder=this._placeholderValue||"")},y.prototype._handleSearch=function(e){var t,i,n;this.input.isFocussed&&(i=this._store.choices,n=(t=this.config).searchFloor,t=t.searchChoices,i=i.some(function(e){return!e.active}),null!=e&&e.length>=n?(n=t?this._searchChoices(e):0,this.passedElement.triggerEvent(g.EVENTS.search,{value:e,resultCount:n})):i&&(this._isSearching=!1,this._store.dispatch((0,h.activateChoices)(!0))))},y.prototype._canAddItem=function(e,t){var i,n=!0,s="function"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;return this._isSelectOneElement||(i=(0,m.existsInArray)(e,t),0<this.config.maxItemCount&&this.config.maxItemCount<=e.length&&(n=!1,s="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&i&&n&&(n=!1,s="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&n&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(t)&&(n=!1,s="function"==typeof this.config.customAddItemText?this.config.customAddItemText(t):this.config.customAddItemText)),{response:n,notice:s}},y.prototype._searchChoices=function(e){var t,i,e="string"==typeof e?e.trim():e,n="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;return e.length<1&&e==="".concat(n," ")?0:(n=this._store.searchableChoices,t=e,i=Object.assign(this.config.fuseOptions,{keys:f([],this.config.searchFields,!0),includeMatches:!0}),n=new o.default(n,i).search(t),this._currentValue=e,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,h.filterChoices)(n)),n.length)},y.prototype._addEventListeners=function(){var e=document.documentElement;e.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},y.prototype._removeEventListeners=function(){var e=document.documentElement;e.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},y.prototype._onKeyDown=function(e){var t=e.keyCode,i=this._store.activeItems,n=this.input.isFocussed,s=this.dropdown.isActive,o=this.itemList.hasChildren(),r=String.fromCharCode(t),r=/[^\x00-\x1F]/.test(r),a=g.KEY_CODES.BACK_KEY,l=g.KEY_CODES.DELETE_KEY,c=g.KEY_CODES.ENTER_KEY,h=g.KEY_CODES.A_KEY,d=g.KEY_CODES.ESC_KEY,u=g.KEY_CODES.UP_KEY,p=g.KEY_CODES.DOWN_KEY,f=g.KEY_CODES.PAGE_UP_KEY,m=g.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||s||!r||(this.showDropdown(),this.input.isFocussed)||(this.input.value+=e.key.toLowerCase()),t){case h:return this._onSelectKey(e,o);case c:return this._onEnterKey(e,i,s);case d:return this._onEscapeKey(s);case u:case f:case p:case m:return this._onDirectionKey(e,s);case l:case a:return this._onDeleteKey(e,i,n)}},y.prototype._onKeyUp=function(e){var t=e.target,e=e.keyCode,i=this.input.value,n=this._store.activeItems,n=this._canAddItem(n,i),s=g.KEY_CODES.BACK_KEY,o=g.KEY_CODES.DELETE_KEY;this._isTextElement?n.notice&&i?(i=this._getTemplate("notice",n.notice),this.dropdown.element.innerHTML=i.outerHTML,this.showDropdown(!0)):this.hideDropdown(!0):(i=(e===s||e===o)&&t&&!t.value,s=!this._isTextElement&&this._isSearching,e=this._canSearch&&n.response,i&&s?(this._isSearching=!1,this._store.dispatch((0,h.activateChoices)(!0))):e&&this._handleSearch(this.input.rawValue)),this._canSearch=this.config.searchEnabled},y.prototype._onSelectKey=function(e,t){var i=e.ctrlKey,e=e.metaKey;(i||e)&&t&&(this._canSearch=!1,this.config.removeItems)&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll()},y.prototype._onEnterKey=function(e,t,i){var n,s=e.target,o=g.KEY_CODES.ENTER_KEY,r=s&&s.hasAttribute("data-button");this._isTextElement&&s&&s.value&&(n=this.input.value,this._canAddItem(t,n).response)&&(this.hideDropdown(!0),this._addItem({value:n}),this._triggerChange(n),this.clearInput()),r&&(this._handleButtonAction(t,s),e.preventDefault()),i?((n=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState)))&&(t[0]&&(t[0].keyCode=o),this._handleChoiceAction(t,n)),e.preventDefault()):this._isSelectOneElement&&(this.showDropdown(),e.preventDefault())},y.prototype._onEscapeKey=function(e){e&&(this.hideDropdown(!0),this.containerOuter.focus())},y.prototype._onDirectionKey=function(e,t){var i,n=e.keyCode,s=e.metaKey,o=g.KEY_CODES.DOWN_KEY,r=g.KEY_CODES.PAGE_UP_KEY,a=g.KEY_CODES.PAGE_DOWN_KEY;(t||this._isSelectOneElement)&&(this.showDropdown(),this._canSearch=!1,t=n===o||n===a?1:-1,o="[data-choice-selectable]",i=void 0,(i=s||n===a||n===r?0<t?this.dropdown.element.querySelector("".concat(o,":last-of-type")):this.dropdown.element.querySelector(o):(s=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState)))?(0,m.getAdjacentEl)(s,o,t):this.dropdown.element.querySelector(o))&&((0,m.isScrolledIntoView)(i,this.choiceList.element,t)||this.choiceList.scrollToChildElement(i,t),this._highlightChoice(i)),e.preventDefault())},y.prototype._onDeleteKey=function(e,t,i){var n=e.target;this._isSelectOneElement||n.value||!i||(this._handleBackspace(t),e.preventDefault())},y.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},y.prototype._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&(t!==this.containerOuter.element&&t!==this.containerInner.element||(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation()),this._wasTap=!0},y.prototype._onMouseDown=function(e){var t,i,n,s=e.target;s instanceof HTMLElement&&(v&&this.choiceList.element.contains(s)&&(t=this.choiceList.element.firstElementChild,t="ltr"===this._direction?e.offsetX>=t.offsetWidth:e.offsetX<t.offsetLeft,this._isScrollingOnIe=t),s!==this.input.element)&&((t=s.closest("[data-button],[data-item],[data-choice]"))instanceof HTMLElement&&(s=e.shiftKey,i=this._store.activeItems,"button"in(n=t.dataset)?this._handleButtonAction(i,t):"item"in n?this._handleItemAction(i,t,s):"choice"in n&&this._handleChoiceAction(i,t)),e.preventDefault())},y.prototype._onMouseOver=function(e){e=e.target;e instanceof HTMLElement&&"choice"in e.dataset&&this._highlightChoice(e)},y.prototype._onClick=function(e){e=e.target;this.containerOuter.element.contains(e)?this.dropdown.isActive||this.containerOuter.isDisabled?this._isSelectOneElement&&e!==this.input.element&&!this.dropdown.element.contains(e)&&this.hideDropdown():this._isTextElement?document.activeElement!==this.input.element&&this.input.focus():(this.showDropdown(),this.containerOuter.focus()):(0<this._store.highlightedActiveItems.length&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},y.prototype._onFocus=function(e){var t=this,i=e.target;i&&this.containerOuter.element.contains(i)&&((e={})[g.TEXT_TYPE]=function(){i===t.input.element&&t.containerOuter.addFocusState()},e[g.SELECT_ONE_TYPE]=function(){t.containerOuter.addFocusState(),i===t.input.element&&t.showDropdown(!0)},e[g.SELECT_MULTIPLE_TYPE]=function(){i===t.input.element&&(t.showDropdown(!0),t.containerOuter.addFocusState())},e[this.passedElement.element.type]())},y.prototype._onBlur=function(e){var t,i=this,n=e.target;n&&this.containerOuter.element.contains(n)&&!this._isScrollingOnIe?(t=this._store.activeItems.some(function(e){return e.highlighted}),(e={})[g.TEXT_TYPE]=function(){n===i.input.element&&(i.containerOuter.removeFocusState(),t&&i.unhighlightAll(),i.hideDropdown(!0))},e[g.SELECT_ONE_TYPE]=function(){i.containerOuter.removeFocusState(),n!==i.input.element&&(n!==i.containerOuter.element||i._canSearch)||i.hideDropdown(!0)},e[g.SELECT_MULTIPLE_TYPE]=function(){n===i.input.element&&(i.containerOuter.removeFocusState(),i.hideDropdown(!0),t)&&i.unhighlightAll()},e[this.passedElement.element.type]()):(this._isScrollingOnIe=!1,this.input.element.focus())},y.prototype._onFormReset=function(){this._store.dispatch((0,r.resetTo)(this._initialState))},y.prototype._highlightChoice=function(e){var t=this,i=(void 0===e&&(e=null),Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]")));i.length&&(e=e,Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEac
78h(function(e){e.classList.remove(t.config.classNames.highlightedState),e.setAttribute("aria-selected","false")}),e?this._highlightPosition=i.indexOf(e):e=(e=i.length>this._highlightPosition?i[this._highlightPosition]:i[i.length-1])||i[0],e.classList.add(this.config.classNames.highlightedState),e.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(g.EVENTS.highlightChoice,{el:e}),this.dropdown.isActive)&&(this.input.setActiveDescendant(e.id),this.containerOuter.setActiveDescendant(e.id))},y.prototype._addItem=function(e){var t=e.value,i=e.label,i=void 0===i?null:i,n=e.choiceId,n=void 0===n?-1:n,s=e.groupId,s=void 0===s?-1:s,o=e.customProperties,o=void 0===o?{}:o,r=e.placeholder,r=void 0!==r&&r,e=e.keyCode,e=void 0===e?-1:e,t="string"==typeof t?t.trim():t,a=this._store.items,i=i||t,n=n||-1,l=0<=s?this._store.getGroupById(s):null,a=a?a.length+1:1;this.config.prependValue&&(t=this.config.prependValue+t.toString()),this.config.appendValue&&(t+=this.config.appendValue.toString()),this._store.dispatch((0,c.addItem)({value:t,label:i,id:a,choiceId:n,groupId:s,customProperties:o,placeholder:r,keyCode:e})),this._isSelectOneElement&&this.removeActiveItems(a),this.passedElement.triggerEvent(g.EVENTS.addItem,{id:a,value:t,label:i,customProperties:o,groupValue:l&&l.value?l.value:null,keyCode:e})},y.prototype._removeItem=function(e){var t=e.id,i=e.value,n=e.label,s=e.customProperties,o=e.choiceId,e=e.groupId,e=e&&0<=e?this._store.getGroupById(e):null;t&&o&&(this._store.dispatch((0,c.removeItem)(t,o)),this.passedElement.triggerEvent(g.EVENTS.removeItem,{id:t,value:i,label:n,customProperties:s,groupValue:e&&e.value?e.value:null}))},y.prototype._addChoice=function(e){var t,i,n=e.value,s=e.label,o=e.isSelected,o=void 0!==o&&o,r=e.isDisabled,r=void 0!==r&&r,a=e.groupId,a=void 0===a?-1:a,l=e.customProperties,l=void 0===l?{}:l,c=e.placeholder,c=void 0!==c&&c,e=e.keyCode,e=void 0===e?-1:e;null!=n&&(s=(void 0===s?null:s)||n,t=(t=this._store.choices)?t.length+1:1,i="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(t),this._store.dispatch((0,h.addChoice)({id:t,groupId:a,elementId:i,value:n,label:s,disabled:r,customProperties:l,placeholder:c,keyCode:e})),o)&&this._addItem({value:n,label:s,choiceId:t,customProperties:l,placeholder:c,keyCode:e})},y.prototype._addGroup=function(e){var i=this,t=e.group,n=e.id,s=e.valueKey,o=void 0===s?"value":s,s=e.labelKey,r=void 0===s?"label":s,e=(0,m.isType)("Object",t)?t.choices:Array.from(t.getElementsByTagName("OPTION")),a=n||Math.floor((new Date).valueOf()*Math.random()),s=!!t.disabled&&t.disabled;e?(this._store.dispatch((0,l.addGroup)({value:t.label,id:a,active:!0,disabled:s})),e.forEach(function(e){var t=e.disabled||e.parentNode&&e.parentNode.disabled;i._addChoice({value:e[o],label:(0,m.isType)("Object",e)?e[r]:e.innerHTML,isSelected:e.selected,isDisabled:t,groupId:a,customProperties:e.customProperties,placeholder:e.placeholder})})):this._store.dispatch((0,l.addGroup)({value:t.label,id:t.id,active:!1,disabled:t.disabled}))},y.prototype._getTemplate=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return(e=this._templates[e]).call.apply(e,f([this,this.config],t,!1))},y.prototype._createTemplates=function(){var e=this.config.callbackOnCreateTemplates,t={};e&&"function"==typeof e&&(t=e.call(this,m.strToEl)),this._templates=(0,s.default)(_.default,t)},y.prototype._createElements=function(){this.containerOuter=new a.Container({element:this._getTemplate("containerOuter",this._direction,this._isSelectElement,this._isSelectOneElement,this.config.searchEnabled,this.passedElement.element.type,this.config.labelId),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.containerInner=new a.Container({element:this._getTemplate("containerInner"),classNames:this.config.classNames,type:this.passedElement.element.type,position:this.config.position}),this.input=new a.Input({element:this._getTemplate("input",this._placeholderValue),classNames:this.config.classNames,type:this.passedElement.element.type,preventPaste:!this.config.paste}),this.choiceList=new a.List({element:this._getTemplate("choiceList",this._isSelectOneElement)}),this.itemList=new a.List({element:this._getTemplate("itemList",this._isSelectOneElement)}),this.dropdown=new a.Dropdown({element:this._getTemplate("dropdown"),classNames:this.config.classNames,type:this.passedElement.element.type})},y.prototype._createStructure=function(){this.passedElement.conceal(),this.containerInner.wrap(this.passedElement.element),this.containerOuter.wrap(this.containerInner.element),this._isSelectOneElement?this.input.placeholder=this.config.searchPlaceholderValue||"":this._placeholderValue&&(this.input.placeholder=this._placeholderValue,this.input.setWidth()),this.containerOuter.element.appendChild(this.containerInner.element),this.containerOuter.element.appendChild(this.dropdown.element),this.containerInner.element.appendChild(this.itemList.element),this._isTextElement||this.dropdown.element.appendChild(this.choiceList.element),this._isSelectOneElement?this.config.searchEnabled&&this.dropdown.element.insertBefore(this.input.element,this.dropdown.element.firstChild):this.containerInner.element.appendChild(this.input.element),this._isSelectElement&&(this._highlightPosition=0,this._isSearching=!1,this._startLoading(),this._presetGroups.length?this._addPredefinedGroups(this._presetGroups):this._addPredefinedChoices(this._presetChoices),this._stopLoading()),this._isTextElement&&this._addPredefinedItems(this._presetItems)},y.prototype._addPredefinedGroups=function(e){var t=this,i=this.passedElement.placeholderOption;i&&i.parentNode&&"SELECT"===i.parentNode.tagName&&this._addChoice({value:i.value,label:i.innerHTML,isSelected:i.selected,isDisabled:i.disabled,placeholder:!0}),e.forEach(function(e){return t._addGroup({group:e,id:e.id||null})})},y.prototype._addPredefinedChoices=function(e){var a=this,l=(this.config.shouldSort&&e.sort(this.config.sorter),e.some(function(e){return e.selected})),c=e.findIndex(function(e){return void 0===e.disabled||!e.disabled});e.forEach(function(e,t){var i,n=e.value,n=void 0===n?"":n,s=e.label,o=e.customProperties,r=e.placeholder;a._isSelectElement?e.choices?a._addGroup({group:e,id:e.id||null}):(t=!(!a._isSelectOneElement||l||t!==c)||e.selected,i=e.disabled,a._addChoice({value:n,label:s,isSelected:!!t,isDisabled:!!i,placeholder:!!r,customProperties:o})):a._addChoice({value:n,label:s,isSelected:!!e.selected,isDisabled:!!e.disabled,placeholder:!!e.placeholder,customProperties:o})})},y.prototype._addPredefinedItems=function(e){var t=this;e.forEach(function(e){"object"==typeof e&&e.value&&t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}),"string"==typeof e&&t._addItem({value:e})})},y.prototype._setChoiceOrItem=function(e){var t=this;({object:function(){e.value&&(t._isTextElement?t._addItem({value:e.value,label:e.label,choiceId:e.id,customProperties:e.customProperties,placeholder:e.placeholder}):t._addChoice({value:e.value,label:e.label,isSelected:!0,isDisabled:!1,customProperties:e.customProperties,placeholder:e.placeholder}))},string:function(){t._isTextElement?t._addItem({value:e}):t._addChoice({value:e,label:e,isSelected:!0,isDisabled:!1})}})[(0,m.getType)(e).toLowerCase()]()},y.prototype._findAndSelectChoiceByValue=function(t){var i=this,e=this._store.choices.find(function(e){return i.config.valueComparer(e.value,t)});e&&!e.selected&&this._addItem({value:e.value,label:e.label,choiceId:e.id,groupId:e.groupId,customProperties:e.customProperties,placeholder:e.placeholder,ke
78yCode:e.keyCode})},y.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption)return(e=this.passedElement.placeholderOption)?e.text:null;var e=this.config,t=e.placeholder,e=e.placeholderValue,i=this.passedElement.element.dataset;if(t){if(e)return e;if(i.placeholder)return i.placeholder}return null},t.default=y},613:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(799),s=i(883);function o(e){var t=e.element,i=e.type,n=e.classNames,e=e.position;this.element=t,this.classNames=n,this.type=i,this.position=e,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}o.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},o.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},o.prototype.shouldFlip=function(e){var t;return"number"==typeof e&&(t=!1,"auto"===this.position?t=!window.matchMedia("(min-height: ".concat(e+1,"px)")).matches:"top"===this.position&&(t=!0),t)},o.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},o.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},o.prototype.open=function(e){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(e)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},o.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},o.prototype.focus=function(){this.isFocussed||this.element.focus()},o.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},o.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},o.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===s.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},o.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===s.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},o.prototype.wrap=function(e){(0,n.wrap)(e,this.element)},o.prototype.unwrap=function(e){this.element.parentNode&&(this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element))},o.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},o.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},o.prototype._onFocus=function(){this.isFocussed=!0},o.prototype._onBlur=function(){this.isFocussed=!1},t.default=o},217:function(e,t){function i(e){var t=e.element,i=e.type,e=e.classNames;this.element=t,this.classNames=e,this.type=i,this.isActive=!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(i.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),i.prototype.getChild=function(e){return this.element.querySelector(e)},i.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},i.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},t.default=i},520:function(e,t,i){var n=this&&this.__importDefault||function(e){return e&&e.__esMo
78dule?e:{default:e}},s=(Object.defineProperty(t,"__esModule",{value:!0}),t.WrappedSelect=t.WrappedInput=t.List=t.Input=t.Container=t.Dropdown=void 0,n(i(217))),s=(t.Dropdown=s.default,n(i(613))),s=(t.Container=s.default,n(i(11))),s=(t.Input=s.default,n(i(624))),s=(t.List=s.default,n(i(541))),s=(t.WrappedInput=s.default,n(i(982)));t.WrappedSelect=s.default},11:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(799),s=i(883);function o(e){var t=e.element,i=e.type,n=e.classNames,e=e.preventPaste;this.element=t,this.type=i,this.classNames=n,this.preventPaste=e,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}Object.defineProperty(o.prototype,"placeholder",{set:function(e){this.element.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"value",{get:function(){return(0,n.sanitise)(this.element.value)},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"rawValue",{get:function(){return this.element.value},enumerable:!1,configurable:!0}),o.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},o.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},o.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},o.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},o.prototype.focus=function(){this.isFocussed||this.element.focus()},o.prototype.blur=function(){this.isFocussed&&this.element.blur()},o.prototype.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=""),e&&this.setWidth(),this},o.prototype.setWidth=function(){var e=this.element,t=e.style,i=e.value,e=e.placeholder;t.minWidth="".concat(e.length+1,"ch"),t.width="".concat(i.length+1,"ch")},o.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},o.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},o.prototype._onInput=function(){this.type!==s.SELECT_ONE_TYPE&&this.setWidth()},o.prototype._onPaste=function(e){this.preventPaste&&e.preventDefault()},o.prototype._onFocus=function(){this.isFocussed=!0},o.prototype._onBlur=function(){this.isFocussed=!1},t.default=o},624:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var r=i(883);function n(e){e=e.element;this.element=e,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}n.prototype.clear=function(){this.element.innerHTML=""},n.prototype.append=function(e){this.element.appendChild(e)},n.prototype.getChild=function(e){return this.element.querySelector(e)},n.prototype.hasChildren=function(){return this.element.hasChildNodes()},n.prototype.scrollToTop=function(){this.element.scrollTop=0},n.prototype.scrollToChildElement=function(e,t){var i,n,s,o=this;e&&(i=this.element.offsetHeight,i=this.element.scrollTop+i,n=e.offsetHeight,n=e.offsetTop+n,s=0<t?this.element.scrollTop+n-i:e.offsetTop,requestAnimationFrame(function(){o._animateScroll(s,t)}))},n.prototype._scrollDown=function(e,t,i){i=(i-e)/t;this.element.scrollTop=e+(1<i?i:1)},n.prototype._scrollUp=function(e,t,i){i=(e-i)/t;this.element.scrollTop=e-(1<i?i:1)},n.prototype._animateScroll=function(e,t){var i=this,n=r.SCROLLING_SPEED,s=this.element.scrollTop,o=!1;0<t?(this._scrollDown(s,n,e),s<e&&(o=!0)):(this._scrollUp(s,n,e),e<s&&(o=!0)),o&&requestAnimationFrame(function(){i._animateScroll(e,t)})},t.default=n}
78,730:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n=i(799);function s(e){var t=e.element,e=e.classNames;if(this.element=t,this.classNames=e,!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}Object.defineProperty(s.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),s.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute("style");e&&this.element.setAttribute("data-choice-orig-style",e),this.element.setAttribute("data-choice","active")},s.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var e=this.element.getAttribute("data-choice-orig-style");e?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",e)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},s.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},s.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},s.prototype.triggerEvent=function(e,t){(0,n.dispatchEvent)(this.element,e,t)},t.default=s},541:function(e,t,i){var n,s,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},r=(Object.defineProperty(t,"__esModule",{value:!0}),s=r(i(730)).default,o(a,s),Object.defineProperty(a.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.setAttribute("value",e),this.element.value=e},enumerable:!1,configurable:!0}),a);function a(e){var t=e.element,i=e.classNames,e=e.delimiter,t=s.call(this,{element:t,classNames:i})||this;return t.delimiter=e,t}t.default=r},982:function(e,t,i){var n,s,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},r=(Object.defineProperty(t,"__esModule",{value:!0}),s=r(i(730)).default,o(a,s),Object.defineProperty(a.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(e){var t=this,i=document.createDocumentFragment();e.forEach(function(e){e=t.template(e);i.appendChild(e)}),this.appendDocFragment(i)},enumerable:!1,configurable:!0}),a.prototype.appendDocFragment=function(e){this.element.innerHTML="",this.element.appendChild(e)},a);function a(e){var t=e.element,i=e.classNames,e=e.template,t=s.call(this,{element:t,classNames:i})||this;return t.template=e,t}t.default=r}
vendor: 4,122 bytes, line 78
78,883:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SCROLLING_SPEED=t.SELECT_MULTIPLE_TYPE=t.SELECT_ONE_TYPE=t.TEXT_TYPE=t.KEY_CODES=t.ACTION_TYPES=t.EVENTS=void 0,t.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},t.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},t.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},t.TEXT_TYPE="text",t.SELECT_ONE_TYPE="select-one",t.SELECT_MULTIPLE_TYPE="select-multiple",t.SCROLLING_SPEED=4},789:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CONFIG=t.DEFAULT_CLASSNAMES=void 0;var n=i(799);t.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},t.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:n.sortByAlpha,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return'Press Enter to add <b>"'.concat((0,n.sanitise)(e),'"</b>')},maxItemText:function(e){return"Only ".concat(e," values can be added")},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:t.DEFAULT_CLASSNAMES}},18:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},978:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},948:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},359:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},285:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},533:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},187:function(e,t,i){var n=this&&this.__createBinding||(Object.create?function(e,t,i,n){void 0===n&&(n=i);var s=Object.getOwnPropertyDescriptor(t,i);s&&!("get"in s?!t.__esModule:s.writable||s.configurable)||(s={enumerable:!0,get:function(){return t[i]}}),Object.defineProperty(e,n,s)}:function(e,t,i,n){e[n=void 0===n?i:n]=t[i]}),s=this&&this.__exportStar||function(e,t){for(var i in e)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||n(t,e,i)};Object.defineProperty(t,"__esModule",{value:!0}),s(i(18),t),s(i(978),t),s(i(948),t),s(i(359),t),s(i(285),t),s(i(533),t),s(i(287),t),s(i(132),t),s(i(837),t),s(i(598),t),s(i(369),t),s(i(37),t),s(i(47),t),s(i(923),t),s(i(876),t)}
78,287:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},132:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},837:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},598:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},37:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},369:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},47:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},923:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},876:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},799:function(e,i){var t;Object.defineProperty(i,"__esModule",{value:!0}),i.parseCustomProperties=i.diff=i.cloneObject=i.existsInArray=i.dispatchEvent=i.sortByScore=i.sortByAlpha=i.strToEl=i.sanitise=i.isScrolledIntoView=i.getAdjacentEl=i.wrap=i.isType=i.getType=i.generateId=i.generateChars=i.getRandomNumber=void 0,i.getRandomNumber=function(e,t){return Math.floor(Math.random()*(t-e)+e)},i.generateChars=function(e){return Array.from({length:e},function(){return(0,i.getRandomNumber)(0,36).toString(36)}).join("")},i.generateId=function(e,t){e=(e=e.id||e.name&&"".concat(e.name,"-").concat((0,i.generateChars)(2))||(0,i.generateChars)(4)).replace(/(:|\.|\[|\]|,)/g,"");return"".concat(t,"-").concat(e)},i.getType=function(e){return Object.prototype.toString.call(e).slice(8,-1)},i.isType=function(e,t){return null!=t&&(0,i.getType)(t)===e},i.wrap=function(e,t){return void 0===t&&(t=document.createElement("div")),e.parentNode&&(e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t)),t.appendChild(e)},i.getAdjacentEl=function(e,t,i){for(var n="".concat(0<(i=void 0===i?1:i)?"next":"previous","ElementSibling"),s=e[n];s;){if(s.matches(t))return s;s=s[n]}return s},i.isScrolledIntoView=function(e,t,i){return void 0===i&&(i=1),!!e&&(0<i?t.scrollTop+t.offsetHeight>=e.offsetTop+e.offsetHeight:e.offsetTop>=t.scrollTop)},i.sanitise=function(e){return"string"!=typeof e?e:e.replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/"/g,""")},i.strToEl=(t=document.createElement("div"),function(e){e=e.trim();t.innerHTML=e;for(e=t.children[0];t.firstChild;)t.removeChild(t.firstChild);return e}),i.sortByAlpha=function(e,t){var i=e.value,e=e.label,i=void 0===e?i:e,e=t.value,t=t.label;return i.localeCompare(void 0===t?e:t,[],{sensitivity:"base",ignorePunctuation:!0,numeric:!0})},i.sortByScore=function(e,t){e=e.score,t=t.score;return(void 0===e?0:e)-(void 0===t?0:t)},i.dispatchEvent=function(e,t,i){void 0===i&&(i=null);t=new CustomEvent(t,{detail:i,bubbles:!0,cancelable:!0});return e.dispatchEvent(t)},i.existsInArray=function(e,t,i){return void 0===i&&(i="value"),e.some(function(e){return"string"==typeof t?e[i]===t.trim():e[i]===t})},i.cloneObject=function(e){return JSON.parse(JSON.stringify(e))},i.diff=function(e,t){var e=Object.keys(e).sort(),i=Object.keys(t).sort();return e.filter(function(e){return i.indexOf(e)<0})},i.parseCustomProperties=function(t){if(void 0!==t)try{return JSON.parse(t)}catch(e){return t}return{}}},273:function(e,a){var l=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,s=0,o=t.length;s<o;s++)!n&&s in t||((n=n||Array.prototype.slice.call(t,0,s))[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(a,"__esModule",{value:!0}),a.defaultState=void 0,a.defaultState=[],a.default=function(e,t){switch(void 0===e&&(e=a.defaultState),(t=void 0===t?{}:t).type){case"ADD_CHOICE":var i=t,i={id:i.id,elementId:i.elementId,groupId:i.groupId,value:i.value,label:i.label||i.value,disabled:i.disabled||!1,selected:!1,active:!0,score:9999,customProperties:i.customProperties,placeholder:i.placeholder||!1};return l(l([],e,!0),[i],!1);case"ADD_ITEM":var n=t;return-1<n.choiceId?e.map(function(e){return e.id===parseInt("".concat(n.choiceId),10)&&(e.selected=!0),e}):e;case"REMOVE_ITEM":var s=t;return s.choiceId&&-1<s.choiceId?e.map(function(e){return e.id===parseInt("".concat(s.choiceId),10)&&(e.selected=!1),e}):e;case"FILTER_CHOICES":var o=t;return e.map(function(e){var i=e;return i.active=o.results.some(function(e){var t=e.item,e=e.score;return t.id===i.id&&(i.score=e,!0)}),i});case"ACTIVATE_CHOICES":var r=t;return e.map(function(e){return e.active=r.active,e});case"CLEAR_CHOICES":return a.defaultState;default:return e}}},871:function(e,n){var s=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,s=0,o=t.length;s<o;s++)!n&&s in t||((n=n||Array.prototype.slice.call(t,0,s))[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(n,"__esModule",{value:!0}),n.defaultState=void 0,n.defaultState=[],n.default=function(e,t){switch(void 0===e&&(e=n.defaultState),(t=void 0===t?{}:t).type){case"ADD_GROUP":var i=t;return s(s([],e,!0),[{id:i.id,value:i.value,active:i.active,disabled:i.disabled}],!1);case"CLEAR_CHOICES":return[];default:return e}}},655:function(e,i,t){var n=this&&this.__importDefault||function(e){return e&&e.__esMo
78dule?e:{default:e}},s=(Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,t(791)),o=n(t(52)),r=n(t(871)),a=n(t(273)),n=n(t(502)),l=t(799),c=(i.defaultState={groups:[],items:[],choices:[],loading:!1},(0,s.combineReducers)({items:o.default,groups:r.default,choices:a.default,loading:n.default}));i.default=function(e,t){if("CLEAR_ALL"===t.type)e=i.defaultState;else if("RESET_TO"===t.type)return(0,l.cloneObject)(t.state);return c(e,t)}},52:function(e,s){var o=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,s=0,o=t.length;s<o;s++)!n&&s in t||((n=n||Array.prototype.slice.call(t,0,s))[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(s,"__esModule",{value:!0}),s.defaultState=void 0,s.defaultState=[],s.default=function(e,t){switch(void 0===e&&(e=s.defaultState),(t=void 0===t?{}:t).type){case"ADD_ITEM":var i=t;return o(o([],e,!0),[{id:i.id,choiceId:i.choiceId,groupId:i.groupId,value:i.value,label:i.label,active:!0,highlighted:!1,customProperties:i.customProperties,placeholder:i.placeholder||!1,keyCode:null}],!1).map(function(e){return e.highlighted=!1,e});case"REMOVE_ITEM":return e.map(function(e){return e.id===t.id&&(e.active=!1),e});case"HIGHLIGHT_ITEM":var n=t;return e.map(function(e){return e.id===n.id&&(e.highlighted=n.highlighted),e});default:return e}}},502:function(e,i){Object.defineProperty(i,"__esModule",{value:!0}),i.defaultState=void 0,i.defaultState=!1,i.default=function(e,t){return void 0===e&&(e=i.defaultState),"SET_IS_LOADING"===(t=void 0===t?{}:t).type?t.isLoading:e}},744:function(e,t,i){var n=this&&this.__spreadArray||function(e,t,i){if(i||2===arguments.length)for(var n,s=0,o=t.length;s<o;s++)!n&&s in t||((n=n||Array.prototype.slice.call(t,0,s))[s]=t[s]);return e.concat(n||Array.prototype.slice.call(t))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=(Object.defineProperty(t,"__esModule",{value:!0}),i(791)),r=s(i(655));function a(){this._store=(0,o.createStore)(r.default,window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__())}a.prototype.subscribe=function(e){this._store.subscribe(e)},a.prototype.dispatch=function(e){this._store.dispatch(e)},Object.defineProperty(a.prototype,"state",{get:function(){return this._store.getState()},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"activeItems",{get:function(){return this.items.filter(function(e){return!0===e.active})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"highlightedActiveItems",{get:function(){return this.items.filter(function(e){return e.active&&e.highlighted})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"choices",{get:function(){return this.state.choices},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"activeChoices",{get:function(){return this.choices.filter(function(e){return!0===e.active})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"selectableChoices",{get:function(){return this.choices.filter(function(e){return!0!==e.disabled})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"searchableChoices",{get:function(){return this.selectableChoices.filter(function(e){return!0!==e.placeholder})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"placeholderChoice",{get:function(){return n([],this.choices,!0).reverse().find(function(e){return!0===e.placeholder})},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"groups",{get:function(){return this.state.groups},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"activeGroups",{get:function(){var e=this.groups,i=this.choices;return e.filter(function(e){var e=!0===e.active&&!1===e.disabled,t=i.some(function(e){return!0===e.active&&!1===e.disabled});return e&&t},[])},enumerable:!1,configurable:!0}),a.prototype.isLoading=function(){return this.state.loading},a.prototype.getChoiceById=function(t){return this.activeChoices.find(function(e){return e.id===parseInt(t,10)})},a.prototype.getGroupById=function(t){return this.groups.find(function(e){return e.id===t})},t.default=a}
78,686:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={containerOuter:function(e,t,i,n,s,o,r){e=e.classNames.containerOuter,e=Object.assign(document.createElement("div"),{className:e});return e.dataset.type=o,t&&(e.dir=t),n&&(e.tabIndex=0),i&&(e.setAttribute("role",s?"combobox":"listbox"),s)&&e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false"),r&&e.setAttribute("aria-labelledby",r),e},containerInner:function(e){e=e.classNames.containerInner;return Object.assign(document.createElement("div"),{className:e})},itemList:function(e,t){var e=e.classNames,i=e.list,n=e.listSingle,e=e.listItems;return Object.assign(document.createElement("div"),{className:"".concat(i," ").concat(t?n:e)})},placeholder:function(e,t){var i=e.allowHTML,e=e.classNames.placeholder;return Object.assign(document.createElement("div"),((e={className:e})[i?"innerHTML":"innerText"]=t,e))},item:function(e,t,i){var n=e.allowHTML,e=e.classNames,s=e.item,o=e.button,r=e.highlightedState,a=e.itemSelectable,e=e.placeholder,l=t.id,c=t.value,h=t.label,d=t.customProperties,u=t.active,p=t.disabled,f=t.highlighted,t=t.placeholder,h=Object.assign(document.createElement("div"),((s={className:s})[n?"innerHTML":"innerText"]=h,s));return Object.assign(h.dataset,{item:"",id:l,value:c,customProperties:d}),u&&h.setAttribute("aria-selected","true"),p&&h.setAttribute("aria-disabled","true"),t&&h.classList.add(e),h.classList.add(f?r:a),i&&(p&&h.classList.remove(a),h.dataset.deletable="",s="Remove item",(d=Object.assign(document.createElement("button"),((l={type:"button",className:o})[n?"innerHTML":"innerText"]=s,l))).setAttribute("aria-label","".concat(s,": '").concat(c,"'")),d.dataset.button="",h.appendChild(d)),h},choiceList:function(e,t){e=e.classNames.list,e=Object.assign(document.createElement("div"),{className:e});return t||e.setAttribute("aria-multiselectable","true"),e.setAttribute("role","listbox"),e},choiceGroup:function(e,t){var i=e.allowHTML,e=e.classNames,n=e.group,s=e.groupHeading,e=e.itemDisabled,o=t.id,r=t.value,t=t.disabled,n=Object.assign(document.createElement("div"),{className:"".concat(n," ").concat(t?e:"")});return n.setAttribute("role","group"),Object.assign(n.dataset,{group:"",id:o,value:r}),t&&n.setAttribute("aria-disabled","true"),n.appendChild(Object.assign(document.createElement("div"),((e={className:s})[i?"innerHTML":"innerText"]=r,e))),n},choice:function(e,t,i){var n=e.allowHTML,e=e.classNames,s=e.item,o=e.itemChoice,r=e.itemSelectable,a=e.selectedState,l=e.itemDisabled,e=e.placeholder,c=t.id,h=t.value,d=t.label,u=t.groupId,p=t.elementId,f=t.disabled,m=t.selected,t=t.placeholder,n=Object.assign(document.createElement("div"),((p={id:p})[n?"innerHTML":"innerText"]=d,p.className="".concat(s," ").concat(o),p));return m&&n.classList.add(a),t&&n.classList.add(e),n.setAttribute("role",u&&0<u?"treeitem":"option"),Object.assign(n.dataset,{choice:"",id:c,value:h,selectText:i}),f?(n.classList.add(l),n.dataset.choiceDisabled="",n.setAttribute("aria-disabled","true")):(n.classList.add(r),n.dataset.choiceSelectable=""),n},input:function(e,t){var e=e.classNames,i=e.input,e=e.inputCloned,i=Object.assign(document.createElement("input"),{type:"search",name:"search_terms",className:"".concat(i," ").concat(e),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return i.setAttribute("role","textbox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-label",t),i},dropdown:function(e){var e=e.classNames,t=e.list,e=e.listDropdown,i=document.createElement("div");return i.classList.add(t,e),i.setAttribute("aria-expanded","false"),i},notice:function(e,t,i){var n=e.allowHTML,e=e.classNames,s=e.item,o=e.itemChoice,r=e.noResults,e=e.noChoices,s=[s,o];return"no-choices"===(i=void 0===i?"":i)?s.push(e):"no-results"===i&&s.push(r),Object.assign(document.createElement("div"),((o={})[n?"innerHTML":"innerText"]=t,o.className=s.join(" "),o))},option:function(e){var t=e.label,i=e.value,n=e.customProperties,s=e.active,e=e.disabled,t=new Option(t,i,!1,s);return n&&(t.dataset.customProperties="".concat(n)),t.disabled=!!e,t}}},996:function(e){function l(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===i);var t}var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function c(e,t){return!1!==t.clone&&t.isMergeableObject(e)?p(Array.isArray(e)?[]:{},e,t):e}function h(e,t,i){return e.concat(t).map(function(e){return c(e,i)})}function d(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function u(e,t){try{return t in e}catch(e){return!1}}function p(e,t,i){(i=i||{}).arrayMerge=i.arrayMerge||h,i.isMergeableObject=i.isMergeableObject||l,i.cloneUnlessOtherwiseSpecified=c;var n,s,o,r,a=Array.isArray(t);return a===Array.isArray(e)?a?i.arrayMerge(e,t,i):(n=e,s=t,r={}
78,(o=i).isMergeableObject(n)&&d(n).forEach(function(e){r[e]=c(n[e],o)}),d(s).forEach(function(e){var t,i;(!u(t=n,i=e)||Object.hasOwnProperty.call(t,i)&&Object.propertyIsEnumerable.call(t,i))&&(u(n,e)&&o.isMergeableObject(s[e])?r[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:p)(n[e],s[e],o):r[e]=c(s[e],o))}),r):c(t,i)}p.all=function(e,i){if(Array.isArray(e))return e.reduce(function(e,t){return p(e,t,i)},{});throw new Error("first argument should be an array")},e.exports=p},221:function(j,e,t){function c(e){return Array.isArray?Array.isArray(e):"[object Array]"===f(e)}function d(e){return"string"==typeof e}function u(e){return"number"==typeof e}function h(e){return"object"==typeof e}function p(e){return null!=e}function a(e){return!e.trim().length}function f(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}t.r(e),t.d(e,{default:function(){return N}});const r=Object.prototype.hasOwnProperty;class n{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{e=s(e);t+=e.weight,this._keys.push(e),this._keyMap[e.id]=e,t+=e.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function s(e){let t=null,i=null,n=null,s=1,o=null;if(d(e)||c(e))n=e,t=l(e),i=m(e);else{if(!r.call(e,"name"))throw new Error("Missing name property in key");const c=e.name;if(n=c,r.call(e,"weight")&&(s=e.weight)<=0)throw new Error(`Property 'weight' in key '${c}' must be a positive integer`);t=l(c),i=m(c),o=e.getFn}return{path:t,id:i,weight:s,src:n,getFn:o}}function l(e){return c(e)?e:e.split(".")}function m(e){return c(e)?e.join("."):e}var O={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(e,t){let r=[],a=!1;const l=(e,i,n)=>{if(p(e))if(i[n]){var s=e[i[n]];if(p(s))if(n===i.length-1&&(d(s)||u(s)||!0===(t=s)||!1===t||h(o=t)&&null!==o&&"[object Boolean]"==f(t)))r.push(null==(o=s)?"":"string"==typeof o?o:"0"==(t=o+"")&&1/o==-1/0?"-0":t);else if(c(s)){a=!0;for(let e=0,t=s.length;e<t;e+=1)l(s[e],i,n+1)}else i.length&&l(s,i,n+1)}else r.push(e);var t,o};return l(e,d(t)?t.split("."):t,0),a?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const o=/[^ ]+/g;class g{constructor({getFn:e=O.getFn,fieldNormWeight:t=O.fieldNormWeight}={}){this.norm=function(i=1){const n=new Map,s=Math.pow(10,3);return{get(e){var t,e=e.match(o).length;return n.has(e)?n.get(e):(t=1/Math.pow(e,.5*i),t=parseFloat(Math.round(t*s)/s),n.set(e,t),t)},clear(){n.clear()}}}(t),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,d(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){var t=this.size();d(e)?this._addString(e,t):this._addObject(e,t)}removeAt(i){this.records.splice(i,1);for(let e=i,t=this.size();e<t;e+=1)--this.records[e].i}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){p(e)&&!a(e)&&(t={v:e,i:t,n:this.norm.get(e)},this.records.push(t))}_addObject(o,e){let r={i:e,$:{}};this.keys.forEach((i,e)=>{var t=i.getFn?i.getFn(o):this.getFn(o,i.path);if(p(t))if(c(t)){var n,s=[];const i=[{nestedArrIndex:-1,value:t}];for(;i.length;){const{nestedArrIndex:r,value:e}=i.pop();p(e)&&(d(e)&&!a(e)?(n={v:e,i:r,n:this.norm.get(e)},s.push(n)):c(e)&&e.forEach((e,t)=>{i.push({nestedArrIndex:t,value:e})}))}r.$[e]=s}else d(t)&&!a(t)&&(i={v:t,n:this.norm.get(t)},r.$[e]=i)}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function i(e,t,{getFn:i=O.getFn,fieldNormWeight:n=O.fieldNormWeight}={}){i=new g({getFn:i,fieldNormWeight:n});return i.setKeys(e.map(s)),i.setSources(t),i.create(),i}function T(e,{errors:t=0,currentLocation:i=0,expectedLocation:n=0,distance:s=O.distance,ignoreLocation:o=O.ignoreLocation}={}){t/=e.length;return o?t:(e=Math.abs(n-i),s?t+e/s:e?1:t)}class _{constructor(t,{location:i=O.location,threshold:n=O.threshold,distance:s=O.distance,includeMatches:e=O.includeMatches,findAllMatches:o=O.findAllMatches,minMatchCharLength:r=O.minMatchCharLength,isCaseSensitive:a=O.isCaseSensitive,ignoreLocation:l=O.ignoreLocation}={}){if(this.options={location:i,threshold:n,distance:s,includeMatches:e,findAllMatches:o,minMatchCharLength:r,
78isCaseSensitive:a,ignoreLocation:l},this.pattern=a?t:t.toLowerCase(),this.chunks=[],this.pattern.length){var c=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(i){var n={};for(let e=0,t=i.length;e<t;e+=1){var s=i.charAt(e);n[s]=(n[s]||0)|1<<t-e-1}return n}(e),startIndex:t})},s=this.pattern.length;if(32<s){let e=0;const i=s%32,n=s-i;for(;e<n;)c(this.pattern.substr(e,32),e),e+=32;if(i){const t=s-32;c(this.pattern.substr(t),t)}}else c(this.pattern,0)}}searchIn(n){const{isCaseSensitive:e,includeMatches:s}=this.options;if(e||(n=n.toLowerCase()),this.pattern===n)return t={isMatch:!0,score:0},s&&(t.indices=[[0,n.length-1]]),t;const{location:o,distance:r,threshold:a,findAllMatches:l,minMatchCharLength:c,ignoreLocation:h}=this.options;let d=[],u=0,p=!1;this.chunks.forEach(({pattern:e,alphabet:t,startIndex:i})=>{var{isMatch:e,score:t,indices:i}=function(r,a,l,{location:e,distance:c=O.distance,threshold:t=O.threshold,findAllMatches:h=O.findAllMatches,minMatchCharLength:i=O.minMatchCharLength,includeMatches:n=O.includeMatches,ignoreLocation:d=O.ignoreLocation}){if(32<a.length)throw new Error("Pattern length exceeds max of 32.");var u=a.length,p=r.length,f=Math.max(0,Math.min(e,p));let m=t,g=f;for(var s,_=1<i||n,v=_?Array(p):[];-1<(s=r.indexOf(a,g));){var o=T(a,{currentLocation:s,expectedLocation:f,distance:c,ignoreLocation:d});if(m=Math.min(o,m),g=s+u,_){let e=0;for(;e<u;)v[s+e]=1,e+=1}}g=-1;let b=[],y=1,E=u+p;var w=1<<u-1;for(let o=0;o<u;o+=1){let e=0,t=E;for(;e<t;)T(a,{errors:o,currentLocation:f+t,expectedLocation:f,distance:c,ignoreLocation:d})<=m?e=t:E=t,t=Math.floor((E-e)/2+e);E=t;let i=Math.max(1,f-t+1),n=h?p:Math.min(f+t,p)+u,s=Array(n+2);s[n+1]=(1<<o)-1;for(let e=n;e>=i;--e){var S=e-1,C=l[r.charAt(S)];if(_&&(v[S]=+!!C),s[e]=(s[e+1]<<1|1)&C,o&&(s[e]|=(b[e+1]|b[e])<<1|1|b[e+1]),s[e]&w&&(y=T(a,{errors:o,currentLocation:S,expectedLocation:f,distance:c,ignoreLocation:d}))<=m){if(m=y,(g=S)<=f)break;i=Math.max(1,2*f-g)}}if(T(a,{errors:o+1,currentLocation:f,expectedLocation:f,distance:c,ignoreLocation:d})>m)break;b=s}e={isMatch:0<=g,score:Math.max(.001,y)};if(_){const r=function(e=[],t=O.minMatchCharLength){let i=[],n=-1,s,o=0;for(var r=e.length;o<r;o+=1){var a=e[o];a&&-1===n?n=o:a||-1===n||((s=o-1)-n+1>=t&&i.push([n,s]),n=-1)}return e[o-1]&&o-n>=t&&i.push([n,o-1]),i}(v,i);r.length?n&&(e.indices=r):e.isMatch=!1}return e}(n,e,t,{location:o+i,distance:r,threshold:a,findAllMatches:l,minMatchCharLength:c,includeMatches:s,ignoreLocation:h});e&&(p=!0),u+=t,e&&i&&(d=[...d,...i])});var t={isMatch:p,score:p?u/this.chunks.length:1};return p&&s&&(t.indices=d),t}}class v{constructor(e){this.pattern=e}static isMultiMatch(e){return b(e,this.multiRegex)}static isSingleMatch(e){return b(e,this.singleRegex)}search(){}}function b(e,t){e=e.match(t);return e?e[1]:null}class y extends v{constructor(e,{location:t=O.location,threshold:i=O.threshold,distance:n=O.distance,includeMatches:s=O.includeMatches,findAllMatches:o=O.findAllMatches,minMatchCharLength:r=O.minMatchCharLength,isCaseSensitive:a=O.isCaseSensitive,ignoreLocation:l=O.ignoreLocation}={}){super(e),this._bitapSearch=new _(e,{location:t,threshold:i,distance:n,includeMatches:s,findAllMatches:o,minMatchCharLength:r,isCaseSensitive:a,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class E extends v{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,i=0;for(var n=[],s=this.pattern.length;-1<(t=e.indexOf(this.pattern,i));)i=t+s,n.push([t,i-1]);var o=!!n.length;return{isMatch:o,score:o?0:1,indices:n}}}const w=[class extends v{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){e=e===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},E,class extends v{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){e=e.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends v{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends v{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends v{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends v{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},y],S=w.length,C=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,A=new Set([y.type,E.type]),L=[];function I(i,n){for(let e=0,t=L.length;e<t;e+=1){var s=L[e];if(s.condition(i,n))return new s(i,n)}return new _(i,n)}const x="$and",M=e=>!(!e.$and&&!e.$or),P=t=>({[x]:Object.keys(t).map(e=>({[e]:t[e]}))});function D(e,o,{auto:r=!0}={}){const a=t=>{var e,i=Object.keys(t),n=!!t.$path;if(!n&&1<i.length&&!M(t))return a(P(t));if(!c(e=t)&&h(e)&&!M(e)){const c=n?t.$path:i[0],a=n?t.$val:t[c];if(!d(a))throw new Error("Invalid value for key "+c);const h={keyId:m(c),pattern:a};return r&&(h.searcher=I(a,o)),h}let s={children:[],operator:i[0]};
78return i.forEach(e=>{e=t[e];c(e)&&e.forEach(e=>{s.children.push(a(e))})}),s};return M(e)||(e=P(e)),a(e)}function k(e,n){e=e.matches;n.matches=[],p(e)&&e.forEach(e=>{var t,i;p(e.indices)&&e.indices.length&&({indices:i,value:t}=e,i={indices:i,value:t},e.key&&(i.key=e.key.src),-1<e.idx&&(i.refIndex=e.idx),n.matches.push(i))})}function F(e,t){t.score=e.score}class N{constructor(e,t={},i){this.options={...O,...t},this.options.useExtendedSearch,this._keyStore=new n(this.options.keys),this.setCollection(e,i)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof g))throw new Error("Incorrect 'index' type");this._myIndex=t||i(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){p(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(i=()=>!1){var n=[];for(let e=0,t=this._docs.length;e<t;e+=1){var s=this._docs[e];i(s,e)&&(this.removeAt(e),--e,--t,n.push(s))}return n}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){var s,{includeMatches:i,includeScore:n,shouldSort:o,sortFn:r,ignoreFieldNorm:a}=this.options;let l=d(e)?d(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);[e,{ignoreFieldNorm:s=O.ignoreFieldNorm}]=[l,{ignoreFieldNorm:a}],e.forEach(e=>{let n=1;e.matches.forEach(({key:e,norm:t,score:i})=>{e=e?e.weight:null;n*=Math.pow(0===i&&e?Number.EPSILON:i,(e||1)*(s?1:t))}),e.score=n}),o&&l.sort(r),u(t)&&-1<t&&(l=l.slice(0,t));{var[a,c,{includeMatches:e=O.includeMatches,includeScore:o=O.includeScore}]=[l,this._docs,{includeMatches:i,includeScore:n}];const h=[];return e&&h.push(k),o&&h.push(F),a.map(t=>{const e=t["idx"],i={item:c[e],refIndex:e};return h.length&&h.forEach(e=>{e(t,i)}),i})}}_searchStringList(e){const r=I(e,this.options),t=this._myIndex["records"],a=[];return t.forEach(({v:e,i:t,n:i})=>{var n,s,o;p(e)&&({isMatch:n,score:s,indices:o}=r.searchIn(e),n)&&a.push({item:e,idx:t,matches:[{score:s,value:e,norm:i,indices:o}]})}),a}_searchLogical(e){const n=D(e,this.options),a=(i,n,s)=>{if(!i.children){const{keyId:a,searcher:o}=i,e=this._findMatches({key:this._keyStore.get(a),value:this._myIndex.getValueForItemAtKeyId(n,a),searcher:o});return e&&e.length?[{idx:s,item:n,matches:e}]:[]}const o=[];for(let e=0,t=i.children.length;e<t;e+=1){var r=i.children[e],r=a(r,n,s);if(r.length)o.push(...r);else if(i.operator===x)return[]}return o},t=this._myIndex.records,s={},o=[];return t.forEach(({$:e,i:t})=>{var i;p(e)&&(i=a(n,e,t)).length&&(s[t]||(s[t]={idx:t,item:e,matches:[]}
78,o.push(s[t])),i.forEach(({matches:e})=>{s[t].matches.push(...e)}))}),o}_searchObjectList(e){const s=I(e,this.options),{keys:t,records:i}=this._myIndex,o=[];return i.forEach(({$:n,i:e})=>{if(p(n)){let i=[];t.forEach((e,t)=>{i.push(...this._findMatches({key:e,value:n[t],searcher:s}))}),i.length&&o.push({idx:e,item:n,matches:i})}}),o}_findMatches({key:r,value:e,searcher:a}){if(!p(e))return[];let l=[];if(c(e))e.forEach(({v:e,i:t,n:i})=>{var n,s,o;p(e)&&({isMatch:n,score:s,indices:o}=a.searchIn(e),n)&&l.push({score:s,key:r,value:e,idx:t,norm:i,indices:o})});else{const{v:c,n:t}=e,{isMatch:i,score:p,indices:n}=a.searchIn(c);i&&l.push({score:p,key:r,value:c,norm:t,indices:n})}return l}}N.version="6.6.2",N.createIndex=i,N.parseIndex=function(e,{getFn:t=O.getFn,fieldNormWeight:i=O.fieldNormWeight}={}){var{keys:e,records:n}=e,t=new g({getFn:t,fieldNormWeight:i});return t.setKeys(e),t.setIndexRecords(n),t},N.config=O,N.parseQuery=D,L.push(class{constructor(e,{isCaseSensitive:t=O.isCaseSensitive,includeMatches:i=O.includeMatches,minMatchCharLength:n=O.minMatchCharLength,ignoreLocation:s=O.ignoreLocation,findAllMatches:o=O.findAllMatches,location:r=O.location,threshold:a=O.threshold,distance:l=O.distance}={}){var c;this.query=null,this.options={isCaseSensitive:t,includeMatches:i,minMatchCharLength:n,findAllMatches:o,ignoreLocation:s,location:r,threshold:a,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=([i,c={}]=[this.pattern,this.options],i.split("|").map(n=>{var s=n.trim().split(C).filter(e=>e&&!!e.trim()),o=[];for(let i=0,e=s.length;i<e;i+=1){var r=s[i];let e=!1,t=-1;for(;!e&&++t<S;){const n=w[t];var a=n.isMultiMatch(r);a&&(o.push(new n(a,c)),e=!0)}if(!e)for(t=-1;++t<S;){const n=w[t];var l=n.isSingleMatch(r);if(l){o.push(new n(l,c));break}}}return o}))}static condition(e,t){return t.useExtendedSearch}searchIn(o){var r=this.query;if(r){const{includeMatches:c,isCaseSensitive:h}=this.options;o=h?o:o.toLowerCase();let i=0,n=[],s=0;for(let e=0,t=r.length;e<t;e+=1){var a,l=r[e];n.length=0;for(let e=i=0,t=l.length;e<t;e+=1){const h=l[e],{isMatch:d,indices:u,score:p}=h.search(o);if(!d){s=0,i=0,n.length=0;break}if(i+=1,s+=p,c){const o=h.constructor.type;A.has(o)?n=[...n,...u]:n.push(u)}}if(i)return a={isMatch:!0,score:s/i},c&&(a.indices=n),a}}return{isMatch:!1,score:1}}})},791:function(e,t,i){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(t,e){var i,n=Object.keys(t);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(t),e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)),n}function a(s){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?n(Object(o),!0).forEach(function(e){var t,i,n;t=s,i=o[e=e],n=function(e){if("object"!==r(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);t=t.call(e,"string");if("object"!==r(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e),(e="symbol"===r(n)?n:String(n))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach(function(e){Object.defineProperty(s,e,Object.getOwnPropertyDescriptor(o,e))})}return s}function u(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}i.r(t),i.d(t,{__DO_NOT_USE__ActionTypes:function(){return f},applyMiddleware:function(){return g},bindActionCreators:function(){return h},combineReducers:function(){return l},compose:function(){return d},createStore:function(){return m},legacy_createStore:function(){return o}});function s(){return Math.random().toString(36).substring(7).split("").join(".")}var p="function"==typeof Symbol&&Symbol.observable||"@@observable",f={INIT:"@@redux/INIT"+s(),REPLACE:"@@redux/REPLACE"+s(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+s()}};function m(e,t,i){if("function"==typeof t&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw new Error(u(0));if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw new Error(u(1));return i(m)(e,t)}if("function"!=typeof e)throw new Error(u(2));var n=e,s=t,o=[],r=o,a=!1;function l(){r===o&&(r=o.slice())}function c(){if(a)throw new Error(u(3));return s}function h(t){if("function"!=typeof t)throw new Error(u(4));if(a)throw new Error(u(5));var i=!0;return l(),r.push(t),function(){if(i){if(a)throw new Error(u(6));i=!1,l();var e=r.indexOf(t);r.splice(e,1),o=null}}}function d(e){if(!function(e){if("object"==typeof e&&null!==e){for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}}(e))throw new Error(u(7));if(void 0===e.type)throw new Error(u(8));if(a)throw new Error(u(9));try{a=!0,s=n(s,e)}finally{a=!1}
78for(var t=o=r,i=0;i<t.length;i++)(0,t[i])();return e}return d({type:f.INIT}),(i={dispatch:d,subscribe:h,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(u(10));n=e,d({type:f.REPLACE})}})[p]=function(){var e,i=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(u(11));function t(){e.next&&e.next(c())}return t(),{unsubscribe:i(t)}}})[p]=function(){return this},e},i}var o=m;function l(e){for(var t=Object.keys(e),l={},i=0;i<t.length;i++){var n=t[i];"function"==typeof e[n]&&(l[n]=e[n])}var c,s,h=Object.keys(l);try{s=l,Object.keys(s).forEach(function(e){e=s[e];if(void 0===e(void 0,{type:f.INIT}))throw new Error(u(12));if(void 0===e(void 0,{type:f.PROBE_UNKNOWN_ACTION()}))throw new Error(u(13))})}catch(e){c=e}return function(e,t){if(void 0===e&&(e={}),c)throw c;for(var i=!1,n={},s=0;s<h.length;s++){var o=h[s],r=l[o],a=e[o],r=r(a,t);if(void 0===r)throw t&&t.type,new Error(u(14));n[o]=r,i=i||r!==a}return(i=i||h.length!==Object.keys(e).length)?n:e}}function c(e,t){return function(){return t(e.apply(this,arguments))}}function h(e,t){if("function"==typeof e)return c(e,t);if("object"!=typeof e||null===e)throw new Error(u(16));var i,n={};for(i in e){var s=e[i];"function"==typeof s&&(n[i]=c(s,t))}return n}function d(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function g(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];return function(s){return function(){var e=s.apply(void 0,arguments),t=function(){throw new Error(u(15))},i={getState:e.getState,dispatch:function(){return t.apply(void 0,arguments)}},n=o.map(function(e){return e(i)}),t=d.apply(void 0,n)(e.dispatch);return a(a({},e),{},{dispatch:t})}}}}},n={};function s(e){var t=n[e];return void 0!==t||(t=n[e]={exports:{}},i[e].call(t.exports,t,t.exports,s)),t.exports}s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,{a:t}),t},s.d=function(e,t){for(var i in t)s.o(t,i)&&!s.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var e={},t=s(373),t=s.n(t);s(187),s(883),s(789),s(686),e.default=t(),window.Choices=e.default}(),document.addEventListener("DOMContentLoaded",function(){const e=document.querySelectorAll("section[data-section-title]"),t=document.getElementById("navigationMenu"),s=document.getElementById("navigationMenuWrapper"),i=document.getElementById("leftArrow"),n=document.getElementById("rightArrow"),o=document.getElementById("mobile-menu-content"),r=document.getElementById("closeNavigation");var a=document.querySelector(".mobile-navigation");const l=e[0];if(0<e.length){const m=document.getElementById("navigationMenuProgressBar"),g=(e.forEach(e=>{const t=e.getAttribute("data-section-title"),i=document.createElement("a");i.textContent=t,i.href="#"+t,i.addEventListener("click",function(e){e.preventDefault();e=document.querySelector(`section[data-section-title='${t}']`).offsetTop-120;window.scrollTo({top:e,behavior:"smooth"}),d(i),h(i)}),s.appendChild(i);e=i.cloneNode(!0);e.addEventListener("click",function(e){e.preventDefault();e=document.querySelector(`section[data-section-title='${t}']`).offsetTop-120;f(),window.scrollTo({top:e,behavior:"smooth"}),d(i)}),o.appendChild(e)}),document.querySelectorAll("#navigationMenuWrapper a"));function c(e){return!!e&&0<=(e=e.getBoundingClientRect()).left&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}function h(e){var t=e.getBoundingClientRect(),i=s.getBoundingClientRect(),n=e.previousElementSibling,e=e.nextElementSibling;n?(n=n.getBoundingClientRect()).left<i.left&&s.scrollBy({left:n.left-i.left,behavior:"smooth"}):t.left<i.left&&s.scrollBy({left:t.left-i.left,behavior:"smooth"}),e?(n=e.getBoundingClientRect()).right>i.right&&s.scrollBy({left:n.right-i.right,behavior:"smooth"}):t.right>i.right&&s.scrollBy({left:t.right-i.right,behavior:"smooth"})}
78function d(e){g.forEach(e=>{e.classList.remove("active")}),e.classList.add("active")}function u(){let i="";e.forEach(e=>{var t=e.offsetTop-120;pageYOffset>=t&&(i=e.getAttribute("data-section-title"))}),g.forEach(e=>{e.textContent===i&&(d(e),c(e)&&c(e.previousElementSibling)&&c(e.nextElementSibling)||h(e))})}function p(){var e=(window.pageYOffset||document.documentElement.scrollTop)/(document.documentElement.scrollHeight-document.documentElement.clientHeight)*100;m.style.width=e+"%"}function f(){o.classList.toggle("active"),r.classList.toggle("active"),o.classList.contains("active")?t.style.marginTop="0":t.style.marginTop="49px"}a.addEventListener("click",f),r.addEventListener("click",f),window.addEventListener("scroll",function(){u(),p();var e=document.querySelector("header").offsetHeight;l.getBoundingClientRect().top<=0?992<window.innerWidth?t.style.marginTop=e+"px":(o.classList.contains("active")?t.style.marginTop="0":t.style.marginTop=e+"px",o.style.top="0"):t.style.marginTop="-100%"}),u(),p(),s.getBoundingClientRect().width<Array.from(g).reduce((e,t)=>e+t.offsetWidth,0)?(i.style.display="block",n.style.display="block"):(i.style.display="none",n.style.display="none"),i.addEventListener("click",function(){var e=Array.from(g).find(e=>c(e));e&&(e=e.previousElementSibling)&&s.scrollBy({left:-e.offsetWidth,behavior:"smooth"})}),n.addEventListener("click",function(){var e=Array.from(g).reverse().find(e=>c(e));e&&(e=e.nextElementSibling)&&s.scrollBy({left:e.offsetWidth,behavior:"smooth"})})}}),document.addEventListener("DOMContentLoaded",function(){const t=document.querySelectorAll(".wpml-ls");function i(){t.forEach(e=>{e.childElement&&e.childElement!==this.childElement&&(e.childElement.classList.remove("show"),e.subMenu)&&(e.subMenu.style.visibility="hidden",e.subMenu.style.display="none")}),this.childElement&&(this.childElement.classList.toggle("show"),this.subMenu)&&(this.subMenu.style.visibility=this.childElement.classList.contains("show")?"visible":"hidden",this.subMenu.style.display=this.childElement.classList.contains("show")?"grid":"none")}t.forEach(e=>{var t=e.querySelector(".wpml-ls-current-language"),i=t?t.querySelector(".wpml-ls-sub-menu"):null;e.childElement=t,e.subMenu=i}),t.forEach(e=>{e.addEventListener("click",i)}),document.addEventListener("click",function(e){e.target.closest(".wpml-ls")||t.forEach(e=>{e.childElement&&(e.childElement.classList.remove("show"),e.subMenu)&&(e.subMenu.style.visibility="hidden",e.subMenu.style.display="none")})})}),document.addEventListener("DOMContentLoaded",function(){768<window.innerWidth&&document.querySelectorAll(".wpml-ls ul.wpml-ls-sub-menu").forEach(function(e){6<e.querySelectorAll("li").length?e.classList.add("repeat-2"):e.classList.add("repeat-1")})}),document.addEventListener("DOMContentLoaded",function(){function e(){var e=document.querySelector("header"),t=document.querySelectorAll("header .header-wrapper .navbar .navbar-collapse .navbar-nav > li.menu-item-has-children > .sub-menu");const s=e.offsetHeight-13+"px";t.forEach(function(e){e.style.top=s;var t=e.style.display,i=(e.style.display="block",e.getBoundingClientRect());const n=window.innerWidth;i.right+50>n?(e.style.right="0",e.style.left="auto"):(e.style.left="",e.style.right=""),e.querySelectorAll(".sub-menu").forEach(function(e){var t=e.style.display,i=(e.style.display="block",e.getBoundingClientRect());i.right+50>n?e.style.left="-100%":e.style.left="",e.style.display=t}),e.style.display=t})}function t(){document.getElementById("navbarToggler").classList.contains("show")?document.body.style.overflow="hidden":document.body.style.overflow=""}if(e(),window.addEventListener("resize",function(){e()}),window.innerWidth<=992){document.querySelectorAll(".header-wrapper .navbar .navbar-collapse .navbar-nav li.menu-item-has-children a .menu-arrow").forEach(function(i){i.addEventListener("click",function(e){e.preventDefault();var e=i.closest("li.menu-item-has-children"),t=e.querySelector(".sub-menu");t&&(e.classList.toggle("active"),t.classList.toggle("show"))})}),(i=document.getElementById("navbarToggler")).addEventListener("classChange",t),new MutationObserver(t).observe(i,{attributes:!0,attributeFilter:["class"]});{const n=document.getElementById("navbarToggler");i=document.querySelectorAll('.navbar-nav a[href^="#"]');const s=new bootstrap.Collapse(n,{toggle:!1});
78i.forEach(function(t){t.addEventListener("click",function(e){e.target.closest(".menu-arrow")||(e=t.getAttribute("href"),e=document.querySelector(e),n.classList.contains("show")&&(s.hide(),document.body.style.overflow=""),e&&window.scrollTo({top:e.offsetTop,behavior:"smooth"}))})})}}else var i});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.