1/*! For license information please see bundle.c65ff3fe86af09f1a492.js.LICENSE.txt */ 2(self.webpackChunkunia21=self.webpackChunkunia21||[]).push([[3435],{3435:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s}),n(2603),n(8451);class s{constructor(){this.topNav=document.querySelector(".navbar-top"),this.scrollingNavbar=document.querySelector(".scrolling-navbar"),this.offcanvasBody=document.querySelector(".offcanvas-body"),this.tmplBody=document.querySelector("#offcanvasBody"),this.currentSubmenu=void 0;let e=this.$el=document.querySelector(".page-header");window.innerWidth>1108&&(e.dataset.height=e.offsetHeight,this.moveTemplateIntoOffcanvas(this.offcanvasBody));let t=document.querySelector("#navbar-toggler-desktop");this.changeNavbar();let n=this;document.addEventListener("scroll",function(){n.changeNavbar()}),window.addEventListener("resize",function(){n.setBodyMargin()}),this.initializeCalculateMenuHeight();var s=document.getElementById("offcanvas-menu");s.addEventListener("show.bs.offcanvas",function(){n.initializeOffcanvasMenu(this)}),s.addEventListener("hide.bs.offcanvas",function(){n.destructOffcanvasMenu(this)}),t.addEventListener("click",e=>{let t=e.target.closest(".navbar-toggler-desktop");"true"!=t.getAttribute("aria-expanded")?(t.setAttribute("aria-expanded",!0),t.closest(".navbar").classList.add("navbar-expanded")):(t.setAttribute("aria-expanded",!1),t.closest(".navbar").classList.remove("navbar-expanded"))}),this.setBodyMargin();let i=document.querySelectorAll(".submenu .nav-link");i.forEach(e=>{e.addEventListener("click",function(){i.forEach(e=>
2{e.classList.contains("active")&&e.closest(".nav-item").classList.remove("opened")})})});let o=document.querySelectorAll("#mainNavbar .navbar-nav .nav-item.mega-dropdown > a"),a=document.querySelectorAll(".navbar-toggler-desktop-inside");o.forEach(e=>{e.addEventListener("click",function(e){e.preventDefault();const t=document.querySelector("#search");t.classList.remove("active"),t.style.height=0;const n=this;if(n.parentElement.classList.contains("opened"))n.parentElement.classList.remove("opened"),document.body.classList.remove("no-scroll");else{const e=document.querySelectorAll("#mainNavbar .navbar-nav .nav-item.mega-dropdown.opened");e.forEach(e=>e.classList.remove("opened")),setTimeout(function(){n.parentElement.classList.add("opened"),document.body.classList.add("no-scroll"),n.querySelectorAll(".submenu .nav-link.active").forEach(e=>e.classList.add("open"))},0===e.length?0:400)}})}),console.log(a),a.forEach(e=>{e.addEventListener("click",function(e){e.preventDefault();const t=document.querySelectorAll("#mainNavbar .navbar-nav .nav-item.mega-dropdown");console.log("allOpen",t),t.forEach(e=>{e.classList.remove("opened");let t=e.querySelectorAll(".nav-item.opened"),n=e.querySelectorAll(".nav-item.opened-onload");t.forEach(e=>e.classList.remove("opened")),n.forEach(e=>e.classList.add("opened")),console.log("allOpenSubs",t),console.log("originalActiveSubs",n)}),document.body.classList.remove("no-scroll")})})}initializeOffcanvasMenu(e){if(!this.offcanvasBody.querySelector(".navbar-nav.offcanvas-overflow")){this.offcanvasBody.prepend(this.tmplBody.content.cloneNode(!0));let t=e.querySelectorAll(".mobile-dropdown-toggle"),n=e.querySelector(".offcanvas-header .btn.btn-back"),s=e.querySelector(".offcanvas-header .nav.language"),i=n.querySelector(".btn-back-text"),o=i.innerHTML;this.offcanvasAreaToggle(e),t.forEach(t=>this.toggleSubmenu(t,e,n,s,i,o)),this.toggleBack(e,n,s,i,o)}}toggleSubmenu(e,t,n,s,i,o){let a=this;this.hideSubmenu(e),e.addEventListener("click",function(){if("false"==this.getAttribute("aria-expanded")){this.setAttribute("aria-expanded",!0);let e=this.getAttribute("data-toggle");const n=document.querySelector("#tob-"+e),l=n.parentNode,r=n.content.cloneNode(!0);l.prepend(r);const c=l.querySelectorAll(".mobile-dropdown-toggle"),d=t.querySelector(".offcanvas-header .btn.btn-back");
2c.forEach(e=>a.toggleSubmenu(e,t,d,s,i,o));const u=this.getBoundingClientRect();t.getBoundingClientRect(),a.currentSubmenu=e;let h=this.closest(".nav-item"),f=h.parentNode.closest(".nav-item"),m=h.querySelector("#"+e).closest(".pos-rel");const g=m.parentNode.closest(".pos-rel"),p=this.offsetTop-(u.top-60)+67;if(f){const e=f.querySelector(".submenu-title-item");e?i.innerHTML=e.innerHTML:console.log("no submenu title set!")}m.style.top=p+"px",m.scrollTop=0,m.style.left=0,m.style.opacity=1,g.style.overflow="hidden",d.style.display="flex",s.style.display="none"}})}toggleBack(e,t,n,s,i){console.log(this.currentSubmenu);const o=this;t.addEventListener("click",()=>{console.log(o.currentSubmenu);let e=t.closest(".offcanvas").querySelector("#"+o.currentSubmenu),a=e.closest(".pos-rel");e.style.left="100%",a.style.left="100%";const l=e.closest(".nav-item"),r=l.parentNode.closest(".nav-item");if(a.parentNode.closest(".pos-rel").style.overflow=null,r){const e=r.parentNode.closest(".nav-item");if(e){const t=e.querySelector(".submenu-title-item");t?s.innerHTML=t.innerHTML:console.log("couldn't find submenu title set!")}else s.innerHTML=i}else s.innerHTML=i,t.style.display="none",n.style.display="flex";if(l){const e=l.querySelector(".mobile-dropdown-toggle");if(l.classList.contains("mega-dropdown")&&document.querySelectorAll(".mega-dropdown-menu-inner").forEach(e=>{e.style.height=0}),!l.classList.contains("mega-dropdown")){const e=l.closest(".offcanvas-submenu");if(e){this.currentSubmenu=e.id;const t=document.querySelector(".offcanvas-overflow");t&&t.classList.remove("offcanvas-overflow"),e.classList.add("offcanvas-overflow")}else console.log("current submenu not found! on back btn click!")}e?e.setAttribute("aria-expanded",!1):console.log("toggler not found! on back btn click!")}else console.log("parent nav item not found! on back btn click!")})}destructOffcanvasMenu(e){this.offcanvasBody.querySelector(".navbar-nav").remove();let t=e.querySelectorAll(".mobile-dropdown-toggle"),n=e.querySelectorAll(".offcanvas-submenu"),s=this;this.offcanvasAreaToggle(e),t.forEach(function(e){e.setAttribute("aria-expanded",!1),s.hideSubmenu(e)}),n.forEach(function(e){e.style.left="100%"})}offcanvasAreaToggle(e){let t=e.closest(".navbar").querySelector(".navbar-toggler");const n="false"===t.getAttribute("aria-expanded");t.setAttribute("aria-expanded",n)}hideSubmenu(e){const t=e.getAttribute("data-toggle"),n=this.offcanvasBody.querySelector("#"+t);if(n){const e=n.closest(".pos-rel");"0px"==e.style.left?e.style.opacity=1:(e.style.opacity=0,e.style.left="100%")}}changeNavbar(){window.scrollY>=100?(this.scrollingNavbar.classList.add("navbar-slim"),this.topNav.classList.add("hidden")):(this.scrollingNavbar.classList.remove("navbar-slim"),this.topNav.classList.remove("hidden"))}setBodyMargin(){document.querySelector("body").style.paddingTop=this.$el.offsetHeight+"px"}initMenuScrollListener(e){e.forEach(function(e){e&&e.addEventListener("scroll",function(e){let t=e.target.scrollTop;e.target.querySelectorAll(".mega-dropdown-submenu .mega-dropdown-submenu").forEach(function(e){e.style.top=t+"px"})})})}initializeCalculateMenuHeight(){let e=0,t=document.querySelectorAll(".nav.mega-dropdown-menu-inner");this.initMenuScrollListener(t),document.querySelectorAll(".nav-item.has-mega-dropdown-submenu").forEach(t=>{t.addEventListener("click",function(n){console.log(n.target);const s=this.parentNode.children;for(let e=0;e<s.length;e++)s[e].classList.remove("opened");t.classList.add("opened"),this.closest("ul.nav"),console.log(this.querySelector(".mega-dropdown-submenu"));var i=this.querySelector(".mega-dropdown-submenu").querySelector("ul.nav");let o=this.closest(".nav.mega-dropdown-menu .mega-dropdown-menu-inner");o.getBoundingClientRect().height<i.getBoundingClientRect().height&&(o.style.height=i.getBoundingClientRect().height+32+"px",e=i.getBoundingClientRect().height+32)})}),document.querySelectorAll(".nav-item.has-mega-dropdown-submenu > a").forEach(e=>{e.addEventListener("click",function(e){e.preventDefault()})})}moveTemplateIntoOffcanvas(e){if(e.classList?.contains("offcanvas-body")){const t=e.firstElementChild;if(t?.matches?.("ul.navbar-nav.offcanvas-overflow"))return}const t=e.querySelectorAll(".mobile-menu-template");
2t&&t.forEach(e=>{const t=e.parentNode,n=e.content.cloneNode(!0);t.prepend(n);const s=t.firstElementChild;this.moveTemplateIntoOffcanvas(s)})}}},8451:function(e,t,n){e.exports=function(e,t,n,s){"use strict";const i=e=>e&&"object"==typeof e&&"default"in e?e:{default:e},o=i(e),a=i(t),l=i(n),r=i(s),c="transitionend",d=e=>{const t=(e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t})(e);return t?document.querySelector(t):null},u=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),h=(e,t,n)=>{Object.keys(n).forEach(s=>{const i=n[s],o=t[s],a=o&&u(o)?"element":null==(l=o)?`${l}`:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(i).test(a))throw new TypeError(`${e.toUpperCase()}: Option "${s}" provided type "${a}" but expected type "${i}".`)})},f=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),m=[],g=e=>{"function"==typeof e&&e()},p=(e,t,n=!0)=>{if(!n)return void g(e);const s=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const s=Number.parseFloat(t),i=Number.parseFloat(n);return s||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let i=!1;const o=({target:n})=>{n===t&&(i=!0,t.removeEventListener(c,o),g(e))};t.addEventListener(c,o),setTimeout(()=>{i||t.dispatchEvent(new Event(c))},s)},b=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",v=".sticky-top";class y{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",t=>t+e),this._setElementAttributes(b,"paddingRight",t=>t+e),this._setElementAttributes(v,"marginRight",t=>t-e)}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const s=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+s)return;this._saveInitialAttribute(e,t);const i=window.getComputedStyle(e)[t];e.style[t]=`${n(Number.parseFloat(i))}px`})}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(b,"paddingRight"),this._resetElementAttributes(v,"marginRight")}_saveInitialAttribute(e,t){const n=e.style[t];n&&a.default.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{const n=a.default.getDataAttribute(e,t);void 0===n?e.style.removeProperty(t):(a.default.removeDataAttribute(e,t),e.style[t]=n)})}_applyManipulationCallback(e,t){u(e)?t(e):o.default.find(e,this._element).forEach(t)}isOverflowing(){return this.getWidth()>0}}const _={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},E={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},A="backdrop",w="show",S=`mousedown.bs.${A}`;class k{constructor(e){this._config=this._getConfig(e),this._isAppended=!1,this._element=null}show(e){this._config.isVisible?(this._append(),this._config.isAnimated&&this._getElement().offsetHeight,this._getElement().classList.add(w),this._emulateAnimation(()=>{g(e)})):g(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove(w),this._emulateAnimation(()=>{this.dispose(),g(e)})):g(e)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_getConfig(e){return(e={..._,..."object"==typeof e?e:{}}).rootElement=(t=e.rootElement,u(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null),h(A,e,E),e;var t}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),l.default.on(this._getElement(),S,()=>{g(this._config.clickCallback)}),this._isAppended=!0)}dispose(){this._isAppended&&(l.default.off(this._element,S),this._element.remove(),this._isAppended=!1)}_emulateAnimation(e){p(e,this._getElement(),this._config.isAnimated)}}const L={trapElement:null,autofocus:!0},q={trapElement:"element",autofocus:"boolean"},N=".bs.focustrap",C=`focusin${N}`,T=`keydown.tab${N}`,x="backward";class M{constructor(e){this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:e,autofocus:t}=this._config;this._isActive||(t&&e.focus(),l.default.off(document,N),l.default.on(document,C,e=>this._handleFocusin(e)),l.default.on(document,T,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,l.default.off(document,N))}_handleFocusin(e){const{target:t}=e,{trapElement:n}=this._config;if(t===document||t===n||n.contains(t))return;
2const s=o.default.focusableChildren(n);0===s.length?n.focus():this._lastTabNavDirection===x?s[s.length-1].focus():s[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?x:"forward")}_getConfig(e){return e={...L,..."object"==typeof e?e:{}},h("focustrap",e,q),e}}const $="offcanvas",B=".bs.offcanvas",O=".data-api",D=`load${B}${O}`,R={backdrop:!0,keyboard:!0,scroll:!1},I={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},j="show",H=".offcanvas.show",W=`show${B}`,F=`shown${B}`,z=`hide${B}`,V=`hidden${B}`,K=`click${B}${O}`,P=`keydown.dismiss${B}`;class Q extends r.default{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return $}static get Default(){return R}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(l.default.trigger(this._element,W,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new y).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(j);this._queueCallback(()=>{this._config.scroll||this._focustrap.activate(),l.default.trigger(this._element,F,{relatedTarget:e})},this._element,!0)}hide(){if(!this._isShown)return;if(l.default.trigger(this._element,z).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(j),this._backdrop.hide();this._queueCallback(()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new y).reset(),l.default.trigger(this._element,V)},this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(e){return e={...R,...a.default.getDataAttributes(this._element),..."object"==typeof e?e:{}},h($,e,I),e}_initializeBackDrop(){return new k({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new M({trapElement:this._element})}_addEventListeners(){l.default.on(this._element,P,e=>{this._config.keyboard&&"Escape"===e.key&&this.hide()})}static jQueryInterface(e){return this.each(function(){const t=Q.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}return l.default.on(document,K,'[data-bs-toggle="offcanvas"]',function(e){const t=d(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),f(this))return;l.default.one(t,V,()=>{var e;u(e=this)&&0!==e.getClientRects().length&&"visible"===getComputedStyle(e).getPropertyValue("visibility")&&this.focus()});const n=o.default.findOne(H);n&&n!==t&&Q.getInstance(n).hide(),Q.getOrCreateInstance(t).toggle(this)}),l.default.on(window,D,()=>o.default.find(H).forEach(e=>Q.getOrCreateInstance(e).show())),((e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,s=e.NAME;l.default.on(document,n,`[data-bs-dismiss="${s}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),f(this))return;const i=d(this)||this.closest(`.${s}`);e.getOrCreateInstance(i)[t]()})})(Q),Y=Q,U=()=>{const e=(()=>{const{jQuery:e}=window;return e&&!document.body.hasAttribute("data-bs-no-jquery")?e:null})();if(e){const t=Y.NAME,n=e.fn[t];
2e.fn[t]=Y.jQueryInterface,e.fn[t].Constructor=Y,e.fn[t].noConflict=()=>(e.fn[t]=n,Y.jQueryInterface)}},"loading"===document.readyState?(m.length||document.addEventListener("DOMContentLoaded",()=>{m.forEach(e=>e())}),m.push(U)):U(),Q;var Y,U}(n(5411),n(2333),n(7956),n(9011))}}]);
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.