(()=>{"use strict";var e={n:t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return e.d(n,{a:n}),n},d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{setup:()=>s,speak:()=>d});const n=window.wp.domReady;var o=e.n(n);function i(e="polite"){const t=document.createElement("div");t.id=`a11y-speak-${e}`,t.className="a11y-speak-region",t.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true");const{body:n}=document;return n&&n.appendChild(t),t}const a=window.wp.i18n;let r="";function d(e,t){!function(){const e=document.getElementsByClassName("a11y-speak-region"),t=document.getElementById("a11y-speak-intro-text");for(let t=0;t<e.length;t++)e[t].textContent="";t&&t.setAttribute("hidden","hidden")}(),e=function(e){return e=e.replace(/<[^<>]+>/g," "),r===e&&(e+=" "),r=e,e}(e);const n=document.getElementById("a11y-speak-intro-text"),o=document.getElementById("a11y-speak-assertive"),i=document.getElementById("a11y-speak-polite");o&&"assertive"===t?o.textContent=e:i&&(i.textContent=e),n&&n.removeAttribute("hidden")}function s(){const e=document.getElementById("a11y-speak-intro-text"),t=document.getElementById("a11y-speak-assertive"),n=document.getElementById("a11y-speak-polite");null===e&&function(){const e=document.createElement("p");e.id="a11y-speak-intro-text",e.className="a11y-speak-intro-text",e.textContent=(0,a.__)("Notifications"),e.setAttribute("style","position:absolute;margin:-1px;padding:0;height:1px;width:1px;overflow:hidden;clip-path:inset(50%);border:0;word-wrap:normal !important;"),e.setAttribute("hidden","");const{body:t}=document;t&&t.appendChild(e)}(),null===t&&i("assertive"),null===n&&i("polite")}o()(s),(window.wp=window.wp||{}).a11y=t})();
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../safe-active-element","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.autocomplete",{version:"1.13.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){n?(n=!1,e.preventDefault()):this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=o("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(e,t){var i,s;this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent)&&/^mouse/.test(e.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)})):(s=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(i=t.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(i))},100)))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==o.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=o("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||o.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var s=this;o.each(e,function(e,t){s._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<div>").text(t.label)).appendTo(e)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){var t;return!!e.length&&("inherit"===(t=e.prop("contentEditable"))?this._isContentEditable(e.parent()):"true"===t)}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(t))},100))}}),o.ui.autocomplete});
!function(a){var r,t,e,n;function o(n,i){var o=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=a(this),e=t.data("vc.accordion");e||(e=new r(t,a.extend(!0,{},i)),t.data("vc.accordion",e)),"string"==typeof n&&e[n].apply(e,o)})}(r=function(t,e){this.$element=t,this.activeClass="vc_active",this.animatingClass="vc_animating",this.useCacheFlag=void 0,this.$target=void 0,this.$targetContent=void 0,this.selector=void 0,this.$container=void 0,this.animationDuration=void 0,this.index=0}).transitionEvent=function(){var t,e=document.createElement("vcFakeElement"),n={transition:"transitionend",MSTransition:"msTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in n)if(void 0!==e.style[t])return n[t]},r.emulateTransitionEnd=function(t,e){var n=!1;e=e||250,t.one(r.transitionName,function(){n=!0}),setTimeout(function(){n||t.trigger(r.transitionName)},e)},r.DEFAULT_TYPE="collapse",r.transitionName=r.transitionEvent(),r.prototype.controller=function(t){var e=this.$element,n=t;"string"==typeof(n=void 0===(n="string"!=typeof n?e.data("vcAction")||this.getContainer().data("vcAction"):n)?r.DEFAULT_TYPE:n)&&o.call(e,n,t)},r.prototype.isCacheUsed=function(){var t=this;return void 0===this.useCacheFlag&&(this.useCacheFlag=function(){return!1!==t.$element.data("vcUseCache")}()),this.useCacheFlag},r.prototype.getSelector=function(){var e=this.$element,t=function(){var t=e.data("vcTarget");return t=t||e.attr("href")};return this.isCacheUsed()?(void 0===this.selector&&(this.selector=t()),this.selector):t()},r.prototype.findContainer=function(){var t=this.$element.closest(this.$element.data("vcContainer"));return t=t.length?t:a("body")},r.prototype.getContainer=function(){return this.isCacheUsed()?(void 0===this.$container&&(this.$container=this.findContainer()),this.$container):this.findContainer()},r.prototype.getTarget=function(){var e=this,n=e.getSelector(),t=function(){var t=e.getContainer().find(n);return t=t.length?t:e.getContainer().filter(n)};return this.isCacheUsed()?(void 0===this.$target&&(this.$target=t()),this.$target):t()},r.prototype.getTargetContent=function(){var t,e=this.getTarget();return this.isCacheUsed()?(void 0===this.$targetContent&&((t=e).data("vcContent")&&!(t=e.find(e.data("vcContent"))).length&&(t=e),this.$targetContent=t),this.$targetContent):e.data("vcContent")&&(t=e.find(e.data("vcContent"))).length?t:e},r.prototype.getTriggers=function(){var n=0;return this.getContainer().find("[data-vc-accordion]").each(function(){var t=a(this),e=t.data("vc.accordion");void 0===e&&(t.vcAccordion(),e=t.data("vc.accordion")),e&&e.setIndex&&e.setIndex(n++)})},r.prototype.setIndex=function(t){this.index=t},r.prototype.getIndex=function(){return this.index},r.prototype.triggerEvent=function(t,e){"string"==typeof t&&(t=a.Event(t),this.$element.trigger(t,e))},r.prototype.getActiveTriggers=function(){return this.getTriggers().filter(function(){var t=a(this).data("vc.accordion");return t.getTarget().hasClass(t.activeClass)})},r.prototype.changeLocationHash=function(){var t,e=this.getTarget();(t=e.length?e.attr("id"):t)&&(history.pushState?history.pushState(null,null,"#"+t):location.hash="#"+t)},r.prototype.isActive=function(){return this.getTarget().hasClass(this.activeClass)},r.prototype.getAnimationDuration=function(){var t=this,e=function(){return void 0===r.transitionName?"0s":t.getTargetContent().css("transition-duration").split(",")[0]};return this.isCacheUsed()?(void 0===this.animationDuration&&(this.animationDuration=e()),this.animationDuration):e()},r.prototype.getAnimationDurationMilliseconds=function(){var t=this.getAnimationDuration();return"ms"===t.substr(-2)?parseInt(t):"s"===t.substr(-1)?Math.round(1e3*parseFloat(t)):void 0},r.prototype.isAnimated=function(){return 0<parseFloat(this.getAnimationDuration())},r.prototype.show=function(e){var n=this,i=n.getTarget(),o=n.getTargetContent();n.isActive()||(n.isAnimated()?(n.triggerEvent("beforeShow.vc.accordion"),i.queue(function(t){o.one(r.transitionName,function(){i.removeClass(n.animatingClass),o.attr("style",""),n.triggerEvent("afterShow.vc.accordion",e)}),r.emulateTransitionEnd(o,n.getAnimationDurationMilliseconds()+100),t()}).queue(function(t){o.attr("style",""),o.css({position:"absolute",visibility:"hidden",display:"block"});var e=o.height();o.data("vcHeight",e),o.attr("style",""),t()}).queue(function(t){o.height(0),o.css({"padding-top":0,"padding-bottom":0}),t()}).queue(function(t){i.addClass(n.animatingClass),i.addClass(n.activeClass),("object"==typeof e&&e.hasOwnProperty("changeHash")&&e.changeHash||void 0===e)&&n.changeLocationHash(),n.triggerEvent("show.vc.accordion",e),t()}).queue(function(t){var e=o.data("vcHeight");o.animate({height:e},{duration:n.getAnimationDurationMilliseconds(),complete:function(){o.data("events")||o.attr("style","")}}),o.css({"padding-top":"","padding-bottom":""}),t()})):(i.addClass(n.activeClass),n.triggerEvent("show.vc.accordion",e)))},r.prototype.hide=function(e){var n=this,i=n.getTarget(),o=n.getTargetContent();n.isActive()&&(n.isAnimated()?(n.triggerEvent("beforeHide.vc.accordion"),i.queue(function(t){o.one(r.transitionName,function(){i.removeClass(n.animatingClass),o.attr("style",""),n.triggerEvent("afterHide.vc.accordion",e)}),r.emulateTransitionEnd(o,n.getAnimationDurationMilliseconds()+100),t()}).queue(function(t){i.addClass(n.animatingClass),i.removeClass(n.activeClass),n.triggerEvent("hide.vc.accordion",e),t()}).queue(function(t){var e=o.height();o.height(e),t()}).queue(function(t){o.animate({height:0},n.getAnimationDurationMilliseconds()),o.css({"padding-top":0,"padding-bottom":0}),t()})):(i.removeClass(n.activeClass),n.triggerEvent("hide.vc.accordion",e)))},r.prototype.toggle=function(t){var e=this.$element;this.isActive()?o.call(e,"hide",t):o.call(e,"show",t)},r.prototype.dropdown=function(e){var n=this.$element;this.isActive()?o.call(n,"hide",e):(o.call(n,"show",e),a(document).on("click.vc.accordion.data-api.dropdown",function(t){o.call(n,"hide",e),a(document).off(t)}))},r.prototype.collapse=function(t){var e=this.$element,n=this.getActiveTriggers().filter(function(){return e[0]!==this});n.length&&o.call(n,"hide",t),o.call(e,"show",t)},r.prototype.collapseAll=function(t){var e=this.$element,n=this.getActiveTriggers().filter(function(){return e[0]!==this});n.length&&o.call(n,"hide",t),o.call(e,"toggle",t)},r.prototype.showNext=function(t){var e,n=this.getTriggers(),i=this.getActiveTriggers();n.length&&(-1<(e=i.length&&(i=i.eq(i.length-1).vcAccordion().data("vc.accordion"))&&i.getIndex?i.getIndex():e)&&e+1<n.length?o.call(n.eq(e+1),"controller",t):o.call(n.eq(0),"controller",t))},r.prototype.showPrev=function(t){var e,n=this.getTriggers(),i=this.getActiveTriggers();n.length&&(i.length&&(i=i.eq(i.length-1).vcAccordion().data("vc.accordion"))&&i.getIndex&&(e=i.getIndex()),o.call(-1<e?0<=e-1?n.eq(e-1):n.eq(n.length-1):n.eq(0),"controller",t))},r.prototype.showAt=function(t,e){var n=this.getTriggers();n.length&&t&&t<n.length&&o.call(n.eq(t),"controller",e)},r.prototype.scrollToActive=function(t){var e,n;(void 0===t||void 0===t.scrollTo||t.scrollTo)&&(0,(n=a((e=this).getTarget())).length)&&this.$element.length&&setTimeout(function(){n.offset().top-a(window).scrollTop()-+e.$element.outerHeight()<0&&a("html, body").animate({scrollTop:n.offset().top-+e.$element.outerHeight()},300)},300)},e=a.fn.vcAccordion,a.fn.vcAccordion=o,a.fn.vcAccordion.Constructor=r,a.fn.vcAccordion.noConflict=function(){return a.fn.vcAccordion=e,this},t=function(t){var e=a(this);t.preventDefault(),o.call(e,"controller")},n=function(){var t,e=window.location.hash;e&&(t=a(e)).length&&(e=t.find('[data-vc-accordion][href="'+e+'"],[data-vc-accordion][data-vc-target="'+e+'"]')).length&&(setTimeout(function(){a("html, body").animate({scrollTop:t.offset().top-.2*a(window).height()},0)},300),e.trigger("click"))},a(window).on("hashchange.vc.accordion",n),a(document).on("click.vc.accordion.data-api","[data-vc-accordion]",t),a(document).ready(n),a(document).on("afterShow.vc.accordion",function(t,e){o.call(a(t.target),"scrollToActive",e)})}(window.jQuery);
!function(i){var o,s,t;o=function(a,o){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=i(this),e=t.data("vc.tta.autoplay");e||(e=new s(t,i.extend(!0,{},s.DEFAULTS,t.data("vc-tta-autoplay"),o)),t.data("vc.tta.autoplay",e)),"string"==typeof a?e[a].apply(e,n):e.start(n)})},(s=function(t,e){this.$element=t,this.options=e}).DEFAULTS={delay:5e3,pauseOnHover:!0,stopOnClick:!0},s.prototype.show=function(){this.$element.find("[data-vc-accordion]:eq(0)").vcAccordion("showNext",{changeHash:!1,scrollTo:!1})},s.prototype.hasTimer=function(){return void 0!==this.$element.data("vc.tta.autoplay.timer")},s.prototype.setTimer=function(t){this.$element.data("vc.tta.autoplay.timer",t)},s.prototype.getTimer=function(){return this.$element.data("vc.tta.autoplay.timer")},s.prototype.deleteTimer=function(){this.$element.removeData("vc.tta.autoplay.timer")},s.prototype.start=function(){var e,a;e=this.$element,(a=this).hasTimer()||(this.setTimer(window.setInterval(this.show.bind(this),this.options.delay)),this.options.stopOnClick&&e.on("click.vc.tta.autoplay.data-api","[data-vc-accordion]",function(t){t&&t.preventDefault&&t.preventDefault(),a.hasTimer()&&o.call(e,"stop")}),this.options.pauseOnHover&&e.hover(function(t){t&&t.preventDefault&&t.preventDefault(),a.hasTimer()&&o.call(e,"mouseleave"===t.type?"resume":"pause")}))},s.prototype.resume=function(){this.hasTimer()&&this.setTimer(window.setInterval(this.show.bind(this),this.options.delay))},s.prototype.stop=function(){this.pause(),this.deleteTimer(),this.$element.off("click.vc.tta.autoplay.data-api mouseenter mouseleave")},s.prototype.pause=function(){var t=this.getTimer();void 0!==t&&window.clearInterval(t)},t=i.fn.vcTtaAutoPlay,i.fn.vcTtaAutoPlay=o,i.fn.vcTtaAutoPlay.Constructor=s,i.fn.vcTtaAutoPlay.noConflict=function(){return i.fn.vcTtaAutoPlay=t,this},i(document).ready(function(){i("[data-vc-tta-autoplay]").each(function(){i(this).vcTtaAutoPlay()})})}(window.jQuery);
!function(r){var o,t,e,i;function a(i,a){var n=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=r(this),e=t.data("vc.tabs");e||(e=new o(t,r.extend(!0,{},a)),t.data("vc.tabs",e)),"string"==typeof i&&e[i].apply(e,n)})}(o=function(t,e){this.$element=r(t),this.activeClass="vc_active",this.tabSelector="[data-vc-tab]",this.useCacheFlag=void 0,this.$target=void 0,this.selector=void 0,this.$targetTab=void 0,this.$relatedAccordion=void 0,this.$container=void 0}).prototype.isCacheUsed=function(){var t=this;return void 0===this.useCacheFlag&&(this.useCacheFlag=function(){return!1!==t.$element.data("vcUseCache")}()),this.useCacheFlag},o.prototype.getContainer=function(){return this.isCacheUsed()?(void 0===this.$container&&(this.$container=this.findContainer()),this.$container):this.findContainer()},o.prototype.findContainer=function(){var t=this.$element.closest(this.$element.data("vcContainer"));return t=t.length?t:r("body")},o.prototype.getContainerAccordion=function(){return this.getContainer().find("[data-vc-accordion]")},o.prototype.getSelector=function(){var e=this.$element,t=function(){var t=e.data("vcTarget");return t=t||e.attr("href")};return this.isCacheUsed()?(void 0===this.selector&&(this.selector=t()),this.selector):t()},o.prototype.getTarget=function(){var t=this.getSelector();return this.isCacheUsed()?(void 0===this.$target&&(this.$target=this.getContainer().find(t)),this.$target):this.getContainer().find(t)},o.prototype.getRelatedAccordion=function(){var i=this,t=function(){var t=i.getContainerAccordion().filter(function(){var t=r(this),e=t.data("vc.accordion");return void 0===e&&(t.vcAccordion(),e=t.data("vc.accordion")),i.getSelector()===e.getSelector()});if(t.length)return t};return this.isCacheUsed()?(void 0===this.$relatedAccordion&&(this.$relatedAccordion=t()),this.$relatedAccordion):t()},o.prototype.triggerEvent=function(t){"string"==typeof t&&(t=r.Event(t),this.$element.trigger(t))},o.prototype.getTargetTab=function(){var t=this.$element;return this.isCacheUsed()?(void 0===this.$targetTab&&(this.$targetTab=t.closest(this.tabSelector)),this.$targetTab):t.closest(this.tabSelector)},o.prototype.tabClick=function(){this.getRelatedAccordion().trigger("click")},o.prototype.show=function(){this.getTargetTab().hasClass(this.activeClass)||(this.triggerEvent("show.vc.tab"),this.getTargetTab().addClass(this.activeClass))},o.prototype.hide=function(){this.getTargetTab().hasClass(this.activeClass)&&(this.triggerEvent("hide.vc.tab"),this.getTargetTab().removeClass(this.activeClass))},t=r.fn.vcTabs,r.fn.vcTabs=a,r.fn.vcTabs.Constructor=o,r.fn.vcTabs.noConflict=function(){return r.fn.vcTabs=t,this},e=function(t){var e=r(this);t.preventDefault(),a.call(e,"tabClick")},i=function(t){var i=r(t.target).data("vc.accordion");i&&(void 0===i.getRelatedTab&&(i.getRelatedTab=function(){var t=function(){return i.getContainer().find("[data-vc-tabs]").filter(function(){var t=r(this),e=t.data("vc.accordion");return void 0===e&&t.vcAccordion(),(e=t.data("vc.accordion")).getSelector()===i.getSelector()})};return i.isCacheUsed()?(void 0===i.relatedTab&&(i.relatedTab=t()),i.relatedTab):t()}),a.call(i.getRelatedTab(),t.type))},r(document).on("click.vc.tabs.data-api","[data-vc-tabs]",e),r(document).on("show.vc.accordion hide.vc.accordion",i)}(window.jQuery);