/*! Thrive Architect - 2021-05-11
* http://www.thrivethemes.com/
* Copyright (c) 2021 Thrive Themes */

function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}function ownKeys(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(i,!0).forEach(function(t){_defineProperty(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ownKeys(i).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function _possibleConstructorReturn(t,e){return!e||"object"!==_typeof(e)&&"function"!=typeof e?_assertThisInitialized(t):e}function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _get(t,e,i){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,i){var n=_superPropBase(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(i):o.value}})(t,e,i||t)}function _superPropBase(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf(t)););return t}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _createClass(t,e,i){return e&&_defineProperties(t.prototype,e),i&&_defineProperties(t,i),t}function _defineProperty(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"==typeof module&&module.exports?module.exports=function(t,e){return void 0===e&&(e="undefined"!=typeof window?require("jquery"):require("jquery")(t)),i(e),e}:i(jQuery)}(function(d){function a(t,e){this.settings=e,this.checkSettings(),this.imgAnalyzerTimeout=null,this.entries=null,this.buildingRow={entriesBuff:[],width:0,height:0,aspectRatio:0},this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.yield={every:2,flushed:0},this.border=0<=e.border?e.border:e.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges(),this.offY=this.border,this.rows=0,this.spinner={phase:0,timeSlot:150,$el:d('<div class="jg-spinner"><span></span><span></span><span></span></div>'),intervalId:null},this.scrollBarOn=!1,this.checkWidthIntervalId=null,this.galleryWidth=t.width(),this.$gallery=t}a.prototype.getSuffix=function(t,e){var i,n;for(i=e<t?t:e,n=0;n<this.suffixRanges.length;n++)if(i<=this.suffixRanges[n])return this.settings.sizeRangeSuffixes[this.suffixRanges[n]];return this.settings.sizeRangeSuffixes[this.suffixRanges[n-1]]},a.prototype.removeSuffix=function(t,e){return t.substring(0,t.length-e.length)},a.prototype.endsWith=function(t,e){return-1!==t.indexOf(e,t.length-e.length)},a.prototype.getUsedSuffix=function(t){for(var e in this.settings.sizeRangeSuffixes)if(this.settings.sizeRangeSuffixes.hasOwnProperty(e)){if(0===this.settings.sizeRangeSuffixes[e].length)continue;if(this.endsWith(t,this.settings.sizeRangeSuffixes[e]))return this.settings.sizeRangeSuffixes[e]}return""},a.prototype.newSrc=function(t,e,i,n){var o;if(this.settings.thumbnailPath)o=this.settings.thumbnailPath(t,e,i,n);else{var a=t.match(this.settings.extension),r=null!==a?a[0]:"";o=t.replace(this.settings.extension,""),o=this.removeSuffix(o,this.getUsedSuffix(o)),o+=this.getSuffix(e,i)+r}return o},a.prototype.showImg=function(t,e){this.settings.cssAnimation?(t.addClass("jg-entry-visible"),e&&e()):(t.stop().fadeTo(this.settings.imagesAnimationDuration,1,e),t.find(this.settings.imgSelector).stop().fadeTo(this.settings.imagesAnimationDuration,1,e))},a.prototype.extractImgSrcFromImage=function(t){var e=t.data("safe-src"),i="data-safe-src";return void 0===e&&(e=t.attr("src"),i="src"),t.data("jg.originalSrc",e),t.data("jg.src",e),t.data("jg.originalSrcLoc",i),e},a.prototype.imgFromEntry=function(t){var e=t.find(this.settings.imgSelector);return 0===e.length?null:e},a.prototype.captionFromEntry=function(t){var e=t.find("> .jg-caption");return 0===e.length?null:e},a.prototype.displayEntry=function(t,e,i,n,o,a){t.width(n),t.height(a),t.css("top",i),t.css("left",e);var r=this.imgFromEntry(t);if(null!==r){r.css("width",n),r.css("height",o),r.css("margin-left",-n/2),r.css("margin-top",-o/2);var s=r.data("jg.src");if(s){s=this.newSrc(s,n,o,r[0]),r.one("error",function(){this.resetImgSrc(r)});function l(){r.attr("src",s)}"skipped"===t.data("jg.loaded")&&s?this.onImageEvent(s,function(){this.showImg(t,l),t.data("jg.loaded",!0)}.bind(this)):this.showImg(t,l)}}else this.showImg(t);this.displayEntryCaption(t)},a.prototype.displayEntryCaption=function(t){var e=this.imgFromEntry(t);if(null!==e&&this.settings.captions){var i=this.captionFromEntry(t);if(null===i){var n=e.attr("alt");this.isValidCaption(n)||(n=t.attr("title")),this.isValidCaption(n)&&(i=d('<div class="jg-caption">'+n+"</div>"),t.append(i),t.data("jg.createdCaption",!0))}null!==i&&(this.settings.cssAnimation||i.stop().fadeTo(0,this.settings.captionSettings.nonVisibleOpacity),this.addCaptionEventsHandlers(t))}else this.removeCaptionEventsHandlers(t)},a.prototype.isValidCaption=function(t){return void 0!==t&&0<t.length},a.prototype.onEntryMouseEnterForCaption=function(t){var e=this.captionFromEntry(d(t.currentTarget));this.settings.cssAnimation?e.addClass("jg-caption-visible").removeClass("jg-caption-hidden"):e.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.visibleOpacity)},a.prototype.onEntryMouseLeaveForCaption=function(t){var e=this.captionFromEntry(d(t.currentTarget));this.settings.cssAnimation?e.removeClass("jg-caption-visible").removeClass("jg-caption-hidden"):e.stop().fadeTo(this.settings.captionSettings.animationDuration,this.settings.captionSettings.nonVisibleOpacity)},a.prototype.addCaptionEventsHandlers=function(t){var e=t.data("jg.captionMouseEvents");void 0===e&&(e={mouseenter:d.proxy(this.onEntryMouseEnterForCaption,this),mouseleave:d.proxy(this.onEntryMouseLeaveForCaption,this)},t.on("mouseenter",void 0,void 0,e.mouseenter),t.on("mouseleave",void 0,void 0,e.mouseleave),t.data("jg.captionMouseEvents",e))},a.prototype.removeCaptionEventsHandlers=function(t){var e=t.data("jg.captionMouseEvents");void 0!==e&&(t.off("mouseenter",void 0,e.mouseenter),t.off("mouseleave",void 0,e.mouseleave),t.removeData("jg.captionMouseEvents"))},a.prototype.clearBuildingRow=function(){this.buildingRow.entriesBuff=[],this.buildingRow.aspectRatio=0,this.buildingRow.width=0},a.prototype.prepareBuildingRow=function(t,e){var i,n,o,a,r,s=!0,l=0,c=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,d=c/this.buildingRow.aspectRatio,h=this.settings.rowHeight,u=this.buildingRow.width/c>this.settings.justifyThreshold;if(e||t&&"hide"===this.settings.lastRow&&!u){for(i=0;i<this.buildingRow.entriesBuff.length;i++)n=this.buildingRow.entriesBuff[i],this.settings.cssAnimation?n.removeClass("jg-entry-visible"):(n.stop().fadeTo(0,.1),n.find("> img, > a > img").fadeTo(0,0));return-1}for(t&&!u&&"justify"!==this.settings.lastRow&&"hide"!==this.settings.lastRow&&(s=!1,0<this.rows&&(s=(h=(this.offY-this.border-this.settings.margins*this.rows)/this.rows)*this.buildingRow.aspectRatio/c>this.settings.justifyThreshold)),i=0;i<this.buildingRow.entriesBuff.length;i++)o=(n=this.buildingRow.entriesBuff[i]).data("jg.width")/n.data("jg.height"),r=s?(a=i===this.buildingRow.entriesBuff.length-1?c:d*o,d):(a=h*o,h),c-=Math.round(a),n.data("jg.jwidth",Math.round(a)),n.data("jg.jheight",Math.ceil(r)),(0===i||r<l)&&(l=r);return this.buildingRow.height=l,s},a.prototype.flushRow=function(t,e){var i,n,o,a=this.settings,r=this.border;if(n=this.prepareBuildingRow(t,e),e||t&&"hide"===a.lastRow&&-1===n)this.clearBuildingRow();else{if(this.maxRowHeight&&this.maxRowHeight<this.buildingRow.height&&(this.buildingRow.height=this.maxRowHeight),t&&("center"===a.lastRow||"right"===a.lastRow)){var s=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*a.margins;for(o=0;o<this.buildingRow.entriesBuff.length;o++)s-=(i=this.buildingRow.entriesBuff[o]).data("jg.jwidth");"center"===a.lastRow?r+=Math.round(s/2):"right"===a.lastRow&&(r+=s)}var l=this.buildingRow.entriesBuff.length-1;for(o=0;o<=l;o++)i=this.buildingRow.entriesBuff[this.settings.rtl?l-o:o],this.displayEntry(i,r,this.offY,i.data("jg.jwidth"),i.data("jg.jheight"),this.buildingRow.height),r+=i.data("jg.jwidth")+a.margins;this.galleryHeightToSet=this.offY+this.buildingRow.height+this.border,this.setGalleryTempHeight(this.galleryHeightToSet+this.getSpinnerHeight()),(!t||this.buildingRow.height<=a.rowHeight&&n)&&(this.offY+=this.buildingRow.height+a.margins,this.rows+=1,this.clearBuildingRow(),this.settings.triggerEvent.call(this,"jg.rowflush"))}};var e=0;a.prototype.rememberGalleryHeight=function(){e=this.$gallery.height(),this.$gallery.height(e)},a.prototype.setGalleryTempHeight=function(t){e=Math.max(t,e),this.$gallery.height(e)},a.prototype.setGalleryFinalHeight=function(t){e=t,this.$gallery.height(t)},a.prototype.checkWidth=function(){clearInterval(this.checkWidthIntervalId),this.checkWidthIntervalId=setInterval(d.proxy(function(){if(this.$gallery.is(":visible")){var t=parseFloat(this.$gallery.width());Math.abs(t-this.galleryWidth)>this.settings.refreshSensitivity&&(this.galleryWidth=t,this.rewind(),this.rememberGalleryHeight(),this.startImgAnalyzer(!0))}},this),this.settings.refreshTime)},a.prototype.isSpinnerActive=function(){return null!==this.spinner.intervalId},a.prototype.getSpinnerHeight=function(){return this.spinner.$el.innerHeight()},a.prototype.stopLoadingSpinnerAnimation=function(){clearInterval(this.spinner.intervalId),this.spinner.intervalId=null,this.setGalleryTempHeight(this.$gallery.height()-this.getSpinnerHeight()),this.spinner.$el.detach()},a.prototype.startLoadingSpinnerAnimation=function(){var t=this.spinner,e=t.$el.find("span");clearInterval(t.intervalId),this.$gallery.append(t.$el),this.setGalleryTempHeight(this.offY+this.buildingRow.height+this.getSpinnerHeight()),t.intervalId=setInterval(function(){t.phase<e.length?e.eq(t.phase).fadeTo(t.timeSlot,1):e.eq(t.phase-e.length).fadeTo(t.timeSlot,0),t.phase=(t.phase+1)%(2*e.length)},t.timeSlot)},a.prototype.rewind=function(){this.lastFetchedEntry=null,this.lastAnalyzedIndex=-1,this.offY=this.border,this.rows=0,this.clearBuildingRow()},a.prototype.getSelectorWithoutSpinner=function(){return this.settings.selector+", div:not(.jg-spinner)"},a.prototype.getAllEntries=function(){var t=this.getSelectorWithoutSpinner();return this.$gallery.children(t).toArray()},a.prototype.updateEntries=function(t){var e;if(t&&null!=this.lastFetchedEntry){var i=this.getSelectorWithoutSpinner();e=d(this.lastFetchedEntry).nextAll(i).toArray()}else this.entries=[],e=this.getAllEntries();return 0<e.length&&(d.isFunction(this.settings.sort)?e=this.sortArray(e):this.settings.randomize&&(e=this.shuffleArray(e)),this.lastFetchedEntry=e[e.length-1],this.settings.filter?e=this.filterArray(e):this.resetFilters(e)),this.entries=this.entries.concat(e),!0},a.prototype.insertToGallery=function(t){var e=this;d.each(t,function(){d(this).appendTo(e.$gallery)})},a.prototype.shuffleArray=function(t){var e,i,n;for(e=t.length-1;0<e;e--)i=Math.floor(Math.random()*(e+1)),n=t[e],t[e]=t[i],t[i]=n;return this.insertToGallery(t),t},a.prototype.sortArray=function(t){return t.sort(this.settings.sort),this.insertToGallery(t),t},a.prototype.resetFilters=function(t){for(var e=0;e<t.length;e++)d(t[e]).removeClass("jg-filtered")},a.prototype.filterArray=function(t){var i=this.settings;if("string"===d.type(i.filter))return t.filter(function(t){var e=d(t);return e.is(i.filter)?(e.removeClass("jg-filtered"),!0):(e.addClass("jg-filtered").removeClass("jg-visible"),!1)});if(d.isFunction(i.filter)){for(var e=t.filter(i.filter),n=0;n<t.length;n++)-1===e.indexOf(t[n])?d(t[n]).addClass("jg-filtered").removeClass("jg-visible"):d(t[n]).removeClass("jg-filtered");return e}},a.prototype.resetImgSrc=function(t){"src"===t.data("jg.originalSrcLoc")?t.attr("src",t.data("jg.originalSrc")):t.attr("src","")},a.prototype.destroy=function(){clearInterval(this.checkWidthIntervalId),this.stopImgAnalyzerStarter(),d.each(this.getAllEntries(),d.proxy(function(t,e){var i=d(e);i.css("width",""),i.css("height",""),i.css("top",""),i.css("left",""),i.data("jg.loaded",void 0),i.removeClass("jg-entry jg-filtered jg-entry-visible");var n=this.imgFromEntry(i);n&&(n.css("width",""),n.css("height",""),n.css("margin-left",""),n.css("margin-top",""),this.resetImgSrc(n),n.data("jg.originalSrc",void 0),n.data("jg.originalSrcLoc",void 0),n.data("jg.src",void 0)),this.removeCaptionEventsHandlers(i);var o=this.captionFromEntry(i);i.data("jg.createdCaption")?(i.data("jg.createdCaption",void 0),null!==o&&o.remove()):null!==o&&o.fadeTo(0,1)},this)),this.$gallery.css("height",""),this.$gallery.removeClass("justified-gallery"),this.$gallery.data("jg.controller",void 0),this.settings.triggerEvent.call(this,"jg.destroy")},a.prototype.analyzeImages=function(t){for(var e=this.lastAnalyzedIndex+1;e<this.entries.length;e++){var i=d(this.entries[e]);if(!0===i.data("jg.loaded")||"skipped"===i.data("jg.loaded")){var n=this.galleryWidth-2*this.border-(this.buildingRow.entriesBuff.length-1)*this.settings.margins,o=i.data("jg.width")/i.data("jg.height");if(this.buildingRow.entriesBuff.push(i),this.buildingRow.aspectRatio+=o,this.buildingRow.width+=o*this.settings.rowHeight,this.lastAnalyzedIndex=e,n/(this.buildingRow.aspectRatio+o)<this.settings.rowHeight&&(this.flushRow(!1,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),++this.yield.flushed>=this.yield.every))return void this.startImgAnalyzer(t)}else if("error"!==i.data("jg.loaded"))return}0<this.buildingRow.entriesBuff.length&&this.flushRow(!0,0<this.settings.maxRowsCount&&this.rows===this.settings.maxRowsCount),this.isSpinnerActive()&&this.stopLoadingSpinnerAnimation(),this.stopImgAnalyzerStarter(),this.setGalleryFinalHeight(this.galleryHeightToSet),this.settings.triggerEvent.call(this,t?"jg.resize":"jg.complete")},a.prototype.stopImgAnalyzerStarter=function(){this.yield.flushed=0,null!==this.imgAnalyzerTimeout&&(clearTimeout(this.imgAnalyzerTimeout),this.imgAnalyzerTimeout=null)},a.prototype.startImgAnalyzer=function(t){var e=this;this.stopImgAnalyzerStarter(),this.imgAnalyzerTimeout=setTimeout(function(){e.analyzeImages(t)},.001)},a.prototype.onImageEvent=function(t,e,i){if(e||i){var n=new Image,o=d(n);e&&o.one("load",function(){o.off("load error"),e(n)}),i&&o.one("error",function(){o.off("load error"),i(n)}),n.src=t}},a.prototype.init=function(){var s=!1,l=!1,c=this;d.each(this.entries,function(t,e){var i=d(e),n=c.imgFromEntry(i);if(i.addClass("jg-entry"),!0!==i.data("jg.loaded")&&"skipped"!==i.data("jg.loaded"))if(null!==c.settings.rel&&i.attr("rel",c.settings.rel),null!==c.settings.target&&i.attr("target",c.settings.target),null!==n){var o=c.extractImgSrcFromImage(n);if(!1===c.settings.waitThumbnailsLoad||!o){var a=parseFloat(n.attr("width")),r=parseFloat(n.attr("height"));if("svg"===n.prop("tagName")&&(a=parseFloat(n[0].getBBox().width),r=parseFloat(n[0].getBBox().height)),!isNaN(a)&&!isNaN(r))return i.data("jg.width",a),i.data("jg.height",r),i.data("jg.loaded","skipped"),l=!0,c.startImgAnalyzer(!1),!0}i.data("jg.loaded",!1),s=!0,c.isSpinnerActive()||c.startLoadingSpinnerAnimation(),c.onImageEvent(o,function(t){i.data("jg.width",t.width),i.data("jg.height",t.height),i.data("jg.loaded",!0),c.startImgAnalyzer(!1)},function(){i.data("jg.loaded","error"),c.startImgAnalyzer(!1)})}else i.data("jg.loaded",!0),i.data("jg.width",i.width()|parseFloat(i.css("width"))|1),i.data("jg.height",i.height()|parseFloat(i.css("height"))|1)}),s||l||this.startImgAnalyzer(!1),this.checkWidth()},a.prototype.checkOrConvertNumber=function(t,e){if("string"===d.type(t[e])&&(t[e]=parseFloat(t[e])),"number"!==d.type(t[e]))throw e+" must be a number";if(isNaN(t[e]))throw"invalid number for "+e},a.prototype.checkSizeRangesSuffixes=function(){if("object"!==d.type(this.settings.sizeRangeSuffixes))throw"sizeRangeSuffixes must be defined and must be an object";var t=[];for(var e in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(e)&&t.push(e);for(var i={0:""},n=0;n<t.length;n++)if("string"===d.type(t[n]))try{i[parseInt(t[n].replace(/^[a-z]+/,""),10)]=this.settings.sizeRangeSuffixes[t[n]]}catch(t){throw"sizeRangeSuffixes keys must contains correct numbers ("+t+")"}else i[t[n]]=this.settings.sizeRangeSuffixes[t[n]];this.settings.sizeRangeSuffixes=i},a.prototype.retrieveMaxRowHeight=function(){var t=null,e=this.settings.rowHeight;if("string"===d.type(this.settings.maxRowHeight))t=this.settings.maxRowHeight.match(/^[0-9]+%$/)?e*parseFloat(this.settings.maxRowHeight.match(/^([0-9]+)%$/)[1])/100:parseFloat(this.settings.maxRowHeight);else{if("number"!==d.type(this.settings.maxRowHeight)){if(!1===this.settings.maxRowHeight||null==this.settings.maxRowHeight)return null;throw"maxRowHeight must be a number or a percentage"}t=this.settings.maxRowHeight}if(isNaN(t))throw"invalid number for maxRowHeight";return t<e&&(t=e),t},a.prototype.checkSettings=function(){this.checkSizeRangesSuffixes(),this.checkOrConvertNumber(this.settings,"rowHeight"),this.checkOrConvertNumber(this.settings,"margins"),this.checkOrConvertNumber(this.settings,"border"),this.checkOrConvertNumber(this.settings,"maxRowsCount");var t=["justify","nojustify","left","center","right","hide"];if(-1===t.indexOf(this.settings.lastRow))throw"lastRow must be one of: "+t.join(", ");if(this.checkOrConvertNumber(this.settings,"justifyThreshold"),this.settings.justifyThreshold<0||1<this.settings.justifyThreshold)throw"justifyThreshold must be in the interval [0,1]";if("boolean"!==d.type(this.settings.cssAnimation))throw"cssAnimation must be a boolean";if("boolean"!==d.type(this.settings.captions))throw"captions must be a boolean";if(this.checkOrConvertNumber(this.settings.captionSettings,"animationDuration"),this.checkOrConvertNumber(this.settings.captionSettings,"visibleOpacity"),this.settings.captionSettings.visibleOpacity<0||1<this.settings.captionSettings.visibleOpacity)throw"captionSettings.visibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings.captionSettings,"nonVisibleOpacity"),this.settings.captionSettings.nonVisibleOpacity<0||1<this.settings.captionSettings.nonVisibleOpacity)throw"captionSettings.nonVisibleOpacity must be in the interval [0, 1]";if(this.checkOrConvertNumber(this.settings,"imagesAnimationDuration"),this.checkOrConvertNumber(this.settings,"refreshTime"),this.checkOrConvertNumber(this.settings,"refreshSensitivity"),"boolean"!==d.type(this.settings.randomize))throw"randomize must be a boolean";if("string"!==d.type(this.settings.selector))throw"selector must be a string";if(!1!==this.settings.sort&&!d.isFunction(this.settings.sort))throw"sort must be false or a comparison function";if(!1!==this.settings.filter&&!d.isFunction(this.settings.filter)&&"string"!==d.type(this.settings.filter))throw"filter must be false, a string or a filter function"},a.prototype.retrieveSuffixRanges=function(){var t=[];for(var e in this.settings.sizeRangeSuffixes)this.settings.sizeRangeSuffixes.hasOwnProperty(e)&&t.push(parseInt(e,10));return t.sort(function(t,e){return e<t?1:t<e?-1:0}),t},a.prototype.updateSettings=function(t){this.settings=d.extend({},this.settings,t),this.checkSettings(),this.border=0<=this.settings.border?this.settings.border:this.settings.margins,this.maxRowHeight=this.retrieveMaxRowHeight(),this.suffixRanges=this.retrieveSuffixRanges()},a.prototype.defaults={sizeRangeSuffixes:{},thumbnailPath:void 0,rowHeight:120,maxRowHeight:!1,maxRowsCount:0,margins:1,border:-1,lastRow:"nojustify",justifyThreshold:.9,waitThumbnailsLoad:!0,captions:!0,cssAnimation:!0,imagesAnimationDuration:500,captionSettings:{animationDuration:500,visibleOpacity:.7,nonVisibleOpacity:0},rel:null,target:null,extension:/\.[^.\\/]+$/,refreshTime:200,refreshSensitivity:0,randomize:!1,rtl:!1,sort:!1,filter:!1,selector:"a",imgSelector:"> img, > a > img, > svg, > a > svg",triggerEvent:function(t){this.$gallery.trigger(t)}},d.fn.justifiedGallery=function(o){return this.each(function(t,e){var i=d(e);i.addClass("justified-gallery");var n=i.data("jg.controller");if(void 0===n){if(null!=o&&"object"!==d.type(o)){if("destroy"===o)return;throw"The argument must be an object"}n=new a(i,d.extend({},a.prototype.defaults,o)),i.data("jg.controller",n)}else if("norewind"===o);else{if("destroy"===o)return void n.destroy();n.updateSettings(o),n.rewind()}n.updateEntries("norewind"===o)&&n.init()})}}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(c){"use strict";var o,r=window.Slick||{};(o=0,r=function(t,e){var i,n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:c(t),appendDots:c(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return c('<button type="button" />').text(e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},c.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=c(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,i=c(t).data("slick")||{},n.options=c.extend({},n.defaults,e,i),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=c.proxy(n.autoPlay,n),n.autoPlayClear=c.proxy(n.autoPlayClear,n),n.autoPlayIterator=c.proxy(n.autoPlayIterator,n),n.changeSlide=c.proxy(n.changeSlide,n),n.clickHandler=c.proxy(n.clickHandler,n),n.selectHandler=c.proxy(n.selectHandler,n),n.setPosition=c.proxy(n.setPosition,n),n.swipeHandler=c.proxy(n.swipeHandler,n),n.dragHandler=c.proxy(n.dragHandler,n),n.keyHandler=c.proxy(n.keyHandler,n),n.instanceUid=o++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},r.prototype.addSlide=r.prototype.slickAdd=function(t,e,i){var n=this;if("boolean"==typeof e)i=e,e=null;else if(e<0||e>=n.slideCount)return!1;n.unload(),"number"==typeof e?0===e&&0===n.$slides.length?c(t).appendTo(n.$slideTrack):i?c(t).insertBefore(n.$slides.eq(e)):c(t).insertAfter(n.$slides.eq(e)):!0===i?c(t).prependTo(n.$slideTrack):c(t).appendTo(n.$slideTrack),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slides.each(function(t,e){c(e).attr("data-slick-index",t)}),n.$slidesCache=n.$slides,n.reinit()},r.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},r.prototype.animateSlide=function(t,e){var i={},n=this;n.animateHeight(),!0===n.options.rtl&&!1===n.options.vertical&&(t=-t),!1===n.transformsEnabled?!1===n.options.vertical?n.$slideTrack.animate({left:t},n.options.speed,n.options.easing,e):n.$slideTrack.animate({top:t},n.options.speed,n.options.easing,e):!1===n.cssTransitions?(!0===n.options.rtl&&(n.currentLeft=-n.currentLeft),c({animStart:n.currentLeft}).animate({animStart:t},{duration:n.options.speed,easing:n.options.easing,step:function(t){t=Math.ceil(t),!1===n.options.vertical?i[n.animType]="translate("+t+"px, 0px)":i[n.animType]="translate(0px,"+t+"px)",n.$slideTrack.css(i)},complete:function(){e&&e.call()}})):(n.applyTransition(),t=Math.ceil(t),!1===n.options.vertical?i[n.animType]="translate3d("+t+"px, 0px, 0px)":i[n.animType]="translate3d(0px,"+t+"px, 0px)",n.$slideTrack.css(i),e&&setTimeout(function(){n.disableTransition(),e.call()},n.options.speed))},r.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t&&null!==t&&(t=c(t).not(this.$slider)),t},r.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=c(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},r.prototype.applyTransition=function(t){var e=this,i={};!1===e.options.fade?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,!1===e.options.fade?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},r.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},r.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},r.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0&&(t.direction=1))),t.slideHandler(e))},r.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=c(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=c(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},r.prototype.buildDots=function(){var t,e,i=this;if(!0===i.options.dots){for(i.$slider.addClass("slick-dotted"),e=c("<ul />").addClass(i.options.dotsClass),t=0;t<=i.getDotCount();t+=1)e.append(c("<li />").append(i.options.customPaging.call(this,i,t)));i.$dots=e.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active")}},r.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,e){c(e).attr("data-slick-index",t).data("originalStyling",c(e).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?c('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),c("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},r.prototype.buildRows=function(){var t,e,i,n,o,a,r,s=this;if(n=document.createDocumentFragment(),a=s.$slider.children(),1<s.options.rows){for(r=s.options.slidesPerRow*s.options.rows,o=Math.ceil(a.length/r),t=0;t<o;t++){var l=document.createElement("div");for(e=0;e<s.options.rows;e++){var c=document.createElement("div");for(i=0;i<s.options.slidesPerRow;i++){var d=t*r+(e*s.options.slidesPerRow+i);a.get(d)&&c.appendChild(a.get(d))}l.appendChild(c)}n.appendChild(l)}s.$slider.empty().append(n),s.$slider.children().children().children().css({width:100/s.options.slidesPerRow+"%",display:"inline-block"})}},r.prototype.checkResponsive=function(t,e){var i,n,o,a=this,r=!1,s=a.$slider.width(),l=window.innerWidth||c(window).width();if("window"===a.respondTo?o=l:"slider"===a.respondTo?o=s:"min"===a.respondTo&&(o=Math.min(l,s)),a.options.responsive&&a.options.responsive.length&&null!==a.options.responsive){for(i in n=null,a.breakpoints)a.breakpoints.hasOwnProperty(i)&&(!1===a.originalSettings.mobileFirst?o<a.breakpoints[i]&&(n=a.breakpoints[i]):o>a.breakpoints[i]&&(n=a.breakpoints[i]));null!==n?null!==a.activeBreakpoint?n===a.activeBreakpoint&&!e||(a.activeBreakpoint=n,"unslick"===a.breakpointSettings[n]?a.unslick(n):(a.options=c.extend({},a.originalSettings,a.breakpointSettings[n]),!0===t&&(a.currentSlide=a.options.initialSlide),a.refresh(t)),r=n):(a.activeBreakpoint=n,"unslick"===a.breakpointSettings[n]?a.unslick(n):(a.options=c.extend({},a.originalSettings,a.breakpointSettings[n]),!0===t&&(a.currentSlide=a.options.initialSlide),a.refresh(t)),r=n):null!==a.activeBreakpoint&&(a.activeBreakpoint=null,a.options=a.originalSettings,!0===t&&(a.currentSlide=a.options.initialSlide),a.refresh(t),r=n),t||!1===r||a.$slider.trigger("breakpoint",[a,r])}},r.prototype.changeSlide=function(t,e){var i,n,o=this,a=c(t.currentTarget);switch(a.is("a")&&t.preventDefault(),a.is("li")||(a=a.closest("li")),i=o.slideCount%o.options.slidesToScroll!=0?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,t.data.message){case"previous":n=0==i?o.options.slidesToScroll:o.options.slidesToShow-i,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-n,!1,e);break;case"next":n=0==i?o.options.slidesToScroll:i,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+n,!1,e);break;case"index":var r=0===t.data.index?0:t.data.index||a.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(r),!1,e),a.children().trigger("focus");break;default:return}},r.prototype.checkNavigable=function(t){var e,i;if(i=0,t>(e=this.getNavigableIndexes())[e.length-1])t=e[e.length-1];else for(var n in e){if(t<e[n]){t=i;break}i=e[n]}return t},r.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(c("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",c.proxy(t.interrupt,t,!0)).off("mouseleave.slick",c.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),c(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().off("click.slick",t.selectHandler),c(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),c(window).off("resize.slick.slick-"+t.instanceUid,t.resize),c("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),c(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},r.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",c.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",c.proxy(t.interrupt,t,!1))},r.prototype.cleanUpRows=function(){var t;1<this.options.rows&&((t=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(t))},r.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},r.prototype.destroy=function(t){var e=this;e.autoPlayClear(),e.touchObject={},e.cleanUpEvents(),c(".slick-cloned",e.$slider).detach(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.$prevArrow.length&&(e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove()),e.$nextArrow&&e.$nextArrow.length&&(e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove()),e.$slides&&(e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){c(this).attr("style",c(this).data("originalStyling"))}),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.detach(),e.$list.detach(),e.$slider.append(e.$slides)),e.cleanUpRows(),e.$slider.removeClass("slick-slider"),e.$slider.removeClass("slick-initialized"),e.$slider.removeClass("slick-dotted"),e.unslicked=!0,t||e.$slider.trigger("destroy",[e])},r.prototype.disableTransition=function(t){var e={};e[this.transitionType]="",!1===this.options.fade?this.$slideTrack.css(e):this.$slides.eq(t).css(e)},r.prototype.fadeSlide=function(t,e){var i=this;!1===i.cssTransitions?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},r.prototype.fadeSlideOut=function(t){var e=this;!1===e.cssTransitions?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},r.prototype.filterSlides=r.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},r.prototype.focusHandler=function(){var i=this;i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var e=c(this);setTimeout(function(){i.options.pauseOnFocus&&(i.focussed=e.is(":focus"),i.autoPlay())},0)})},r.prototype.getCurrent=r.prototype.slickCurrentSlide=function(){return this.currentSlide},r.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++n;else for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)n=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return n-1},r.prototype.getLeft=function(t){var e,i,n,o,a=this,r=0;return a.slideOffset=0,i=a.$slides.first().outerHeight(!0),!0===a.options.infinite?(a.slideCount>a.options.slidesToShow&&(a.slideOffset=a.slideWidth*a.options.slidesToShow*-1,o=-1,!0===a.options.vertical&&!0===a.options.centerMode&&(2===a.options.slidesToShow?o=-1.5:1===a.options.slidesToShow&&(o=-2)),r=i*a.options.slidesToShow*o),a.slideCount%a.options.slidesToScroll!=0&&t+a.options.slidesToScroll>a.slideCount&&a.slideCount>a.options.slidesToShow&&(r=t>a.slideCount?(a.slideOffset=(a.options.slidesToShow-(t-a.slideCount))*a.slideWidth*-1,(a.options.slidesToShow-(t-a.slideCount))*i*-1):(a.slideOffset=a.slideCount%a.options.slidesToScroll*a.slideWidth*-1,a.slideCount%a.options.slidesToScroll*i*-1))):t+a.options.slidesToShow>a.slideCount&&(a.slideOffset=(t+a.options.slidesToShow-a.slideCount)*a.slideWidth,r=(t+a.options.slidesToShow-a.slideCount)*i),a.slideCount<=a.options.slidesToShow&&(r=a.slideOffset=0),!0===a.options.centerMode&&a.slideCount<=a.options.slidesToShow?a.slideOffset=a.slideWidth*Math.floor(a.options.slidesToShow)/2-a.slideWidth*a.slideCount/2:!0===a.options.centerMode&&!0===a.options.infinite?a.slideOffset+=a.slideWidth*Math.floor(a.options.slidesToShow/2)-a.slideWidth:!0===a.options.centerMode&&(a.slideOffset=0,a.slideOffset+=a.slideWidth*Math.floor(a.options.slidesToShow/2)),e=!1===a.options.vertical?t*a.slideWidth*-1+a.slideOffset:t*i*-1+r,!0===a.options.variableWidth&&(n=a.slideCount<=a.options.slidesToShow||!1===a.options.infinite?a.$slideTrack.children(".slick-slide").eq(t):a.$slideTrack.children(".slick-slide").eq(t+a.options.slidesToShow),e=!0===a.options.rtl?n[0]?-1*(a.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===a.options.centerMode&&(n=a.slideCount<=a.options.slidesToShow||!1===a.options.infinite?a.$slideTrack.children(".slick-slide").eq(t):a.$slideTrack.children(".slick-slide").eq(t+a.options.slidesToShow+1),e=!0===a.options.rtl?n[0]?-1*(a.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,e+=(a.$list.width()-n.outerWidth())/2)),e},r.prototype.getOption=r.prototype.slickGetOption=function(t){return this.options[t]},r.prototype.getNavigableIndexes=function(){var t,e=this,i=0,n=0,o=[];for(t=!1===e.options.infinite?e.slideCount:(i=-1*e.options.slidesToScroll,n=-1*e.options.slidesToScroll,2*e.slideCount);i<t;)o.push(i),i=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return o},r.prototype.getSlick=function(){return this},r.prototype.getSlideCount=function(){var i,n,o=this;return n=!0===o.options.centerMode?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,!0===o.options.swipeToSlide?(o.$slideTrack.find(".slick-slide").each(function(t,e){if(e.offsetLeft-n+c(e).outerWidth()/2>-1*o.swipeLeft)return i=e,!1}),Math.abs(c(i).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},r.prototype.goTo=r.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},r.prototype.init=function(t){var e=this;c(e.$slider).hasClass("slick-initialized")||(c(e.$slider).addClass("slick-initialized"),e.buildRows(),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.updateArrows(),e.updateDots(),e.checkResponsive(!0),e.focusHandler()),t&&e.$slider.trigger("init",[e]),!0===e.options.accessibility&&e.initADA(),e.options.autoplay&&(e.paused=!1,e.autoPlay())},r.prototype.initADA=function(){var i=this,n=Math.ceil(i.slideCount/i.options.slidesToShow),o=i.getNavigableIndexes().filter(function(t){return 0<=t&&t<i.slideCount});i.$slides.add(i.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==i.$dots&&(i.$slides.not(i.$slideTrack.find(".slick-cloned")).each(function(t){var e=o.indexOf(t);c(this).attr({role:"tabpanel",id:"slick-slide"+i.instanceUid+t,tabindex:-1}),-1!==e&&c(this).attr({"aria-describedby":"slick-slide-control"+i.instanceUid+e})}),i.$dots.attr("role","tablist").find("li").each(function(t){var e=o[t];c(this).attr({role:"presentation"}),c(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+i.instanceUid+t,"aria-controls":"slick-slide"+i.instanceUid+e,"aria-label":t+1+" of "+n,"aria-selected":null,tabindex:"-1"})}).eq(i.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var t=i.currentSlide,e=t+i.options.slidesToShow;t<e;t++)i.$slides.eq(t).attr("tabindex",0);i.activateADA()},r.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},r.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&(c("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&c("li",t.$dots).on("mouseenter.slick",c.proxy(t.interrupt,t,!0)).on("mouseleave.slick",c.proxy(t.interrupt,t,!1))},r.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",c.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",c.proxy(t.interrupt,t,!1)))},r.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),c(document).on(t.visibilityChange,c.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().on("click.slick",t.selectHandler),c(window).on("orientationchange.slick.slick-"+t.instanceUid,c.proxy(t.orientationChange,t)),c(window).on("resize.slick.slick-"+t.instanceUid,c.proxy(t.resize,t)),c("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),c(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),c(t.setPosition)},r.prototype.initUI=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},r.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===e.options.accessibility?e.changeSlide({data:{message:!0===e.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===e.options.accessibility&&e.changeSlide({data:{message:!0===e.options.rtl?"previous":"next"}}))},r.prototype.lazyLoad=function(){function t(t){c("img[data-lazy]",t).each(function(){var t=c(this),e=c(this).attr("data-lazy"),i=c(this).attr("data-srcset"),n=c(this).attr("data-sizes")||a.$slider.attr("data-sizes"),o=document.createElement("img");o.onload=function(){t.animate({opacity:0},100,function(){i&&(t.attr("srcset",i),n&&t.attr("sizes",n)),t.attr("src",e).animate({opacity:1},200,function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),a.$slider.trigger("lazyLoaded",[a,t,e])})},o.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,t,e])},o.src=e})}var e,i,n,a=this;if(!0===a.options.centerMode?n=!0===a.options.infinite?(i=a.currentSlide+(a.options.slidesToShow/2+1))+a.options.slidesToShow+2:(i=Math.max(0,a.currentSlide-(a.options.slidesToShow/2+1)),a.options.slidesToShow/2+1+2+a.currentSlide):(i=a.options.infinite?a.options.slidesToShow+a.currentSlide:a.currentSlide,n=Math.ceil(i+a.options.slidesToShow),!0===a.options.fade&&(0<i&&i--,n<=a.slideCount&&n++)),e=a.$slider.find(".slick-slide").slice(i,n),"anticipated"===a.options.lazyLoad)for(var o=i-1,r=n,s=a.$slider.find(".slick-slide"),l=0;l<a.options.slidesToScroll;l++)o<0&&(o=a.slideCount-1),e=(e=e.add(s.eq(o))).add(s.eq(r)),o--,r++;t(e),a.slideCount<=a.options.slidesToShow?t(a.$slider.find(".slick-slide")):a.currentSlide>=a.slideCount-a.options.slidesToShow?t(a.$slider.find(".slick-cloned").slice(0,a.options.slidesToShow)):0===a.currentSlide&&t(a.$slider.find(".slick-cloned").slice(-1*a.options.slidesToShow))},r.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},r.prototype.next=r.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},r.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},r.prototype.pause=r.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},r.prototype.play=r.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},r.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.slideCount>e.options.slidesToShow&&e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),!0===e.options.accessibility&&(e.initADA(),e.options.focusOnChange&&c(e.$slides.get(e.currentSlide)).attr("tabindex",0).focus()))},r.prototype.prev=r.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},r.prototype.preventDefault=function(t){t.preventDefault()},r.prototype.progressiveLazyLoad=function(t){t=t||1;var e,i,n,o,a,r=this,s=c("img[data-lazy]",r.$slider);s.length?(e=s.first(),i=e.attr("data-lazy"),n=e.attr("data-srcset"),o=e.attr("data-sizes")||r.$slider.attr("data-sizes"),(a=document.createElement("img")).onload=function(){n&&(e.attr("srcset",n),o&&e.attr("sizes",o)),e.attr("src",i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===r.options.adaptiveHeight&&r.setPosition(),r.$slider.trigger("lazyLoaded",[r,e,i]),r.progressiveLazyLoad()},a.onerror=function(){t<3?setTimeout(function(){r.progressiveLazyLoad(t+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,e,i]),r.progressiveLazyLoad())},a.src=i):r.$slider.trigger("allImagesLoaded",[r])},r.prototype.refresh=function(t){var e,i,n=this;i=n.slideCount-n.options.slidesToShow,!n.options.infinite&&n.currentSlide>i&&(n.currentSlide=i),n.slideCount<=n.options.slidesToShow&&(n.currentSlide=0),e=n.currentSlide,n.destroy(!0),c.extend(n,n.initials,{currentSlide:e}),n.init(),t||n.changeSlide({data:{message:"index",index:e}},!1)},r.prototype.registerBreakpoints=function(){var t,e,i,n=this,o=n.options.responsive||null;if("array"===c.type(o)&&o.length){for(t in n.respondTo=n.options.respondTo||"window",o)if(i=n.breakpoints.length-1,o.hasOwnProperty(t)){for(e=o[t].breakpoint;0<=i;)n.breakpoints[i]&&n.breakpoints[i]===e&&n.breakpoints.splice(i,1),i--;n.breakpoints.push(e),n.breakpointSettings[e]=o[t].settings}n.breakpoints.sort(function(t,e){return n.options.mobileFirst?t-e:e-t})}},r.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},r.prototype.resize=function(){var t=this;c(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=c(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},r.prototype.removeSlide=r.prototype.slickRemove=function(t,e,i){var n=this;if(t="boolean"==typeof t?!0===(e=t)?0:n.slideCount-1:!0===e?--t:t,n.slideCount<1||t<0||t>n.slideCount-1)return!1;n.unload(),!0===i?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(t).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},r.prototype.setCSS=function(t){var e,i,n=this,o={};!0===n.options.rtl&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",o[n.positionProp]=t,!1===n.transformsEnabled||(!(o={})===n.cssTransitions?o[n.animType]="translate("+e+", "+i+")":o[n.animType]="translate3d("+e+", "+i+", 0px)"),n.$slideTrack.css(o)},r.prototype.setDimensions=function(){var t=this;!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},r.prototype.setFade=function(){var i,n=this;n.$slides.each(function(t,e){i=n.slideWidth*t*-1,!0===n.options.rtl?c(e).css({position:"relative",right:i,top:0,zIndex:n.options.zIndex-2,opacity:0}):c(e).css({position:"relative",left:i,top:0,zIndex:n.options.zIndex-2,opacity:0})}),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},r.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&!0===t.options.adaptiveHeight&&!1===t.options.vertical){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},r.prototype.setOption=r.prototype.slickSetOption=function(){var t,e,i,n,o,a=this,r=!1;if("object"===c.type(arguments[0])?(i=arguments[0],r=arguments[1],o="multiple"):"string"===c.type(arguments[0])&&(n=arguments[1],r=arguments[2],"responsive"===(i=arguments[0])&&"array"===c.type(arguments[1])?o="responsive":void 0!==arguments[1]&&(o="single")),"single"===o)a.options[i]=n;else if("multiple"===o)c.each(i,function(t,e){a.options[t]=e});else if("responsive"===o)for(e in n)if("array"!==c.type(a.options.responsive))a.options.responsive=[n[e]];else{for(t=a.options.responsive.length-1;0<=t;)a.options.responsive[t].breakpoint===n[e].breakpoint&&a.options.responsive.splice(t,1),t--;a.options.responsive.push(n[e])}r&&(a.unload(),a.reinit())},r.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),!1===t.options.fade?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},r.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},r.prototype.setSlideClasses=function(t){var e,i,n,o,a=this;if(i=a.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),a.$slides.eq(t).addClass("slick-current"),!0===a.options.centerMode){var r=a.options.slidesToShow%2==0?1:0;e=Math.floor(a.options.slidesToShow/2),!0===a.options.infinite&&(e<=t&&t<=a.slideCount-1-e?a.$slides.slice(t-e+r,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(n=a.options.slidesToShow+t,i.slice(n-e+1+r,n+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-a.options.slidesToShow).addClass("slick-center"):t===a.slideCount-1&&i.eq(a.options.slidesToShow).addClass("slick-center")),a.$slides.eq(t).addClass("slick-center")}else 0<=t&&t<=a.slideCount-a.options.slidesToShow?a.$slides.slice(t,t+a.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=a.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(o=a.slideCount%a.options.slidesToShow,n=!0===a.options.infinite?a.options.slidesToShow+t:t,a.options.slidesToShow==a.options.slidesToScroll&&a.slideCount-t<a.options.slidesToShow?i.slice(n-(a.options.slidesToShow-o),n+o).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+a.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==a.options.lazyLoad&&"anticipated"!==a.options.lazyLoad||a.lazyLoad()},r.prototype.setupInfinite=function(){var t,e,i,n=this;if(!0===n.options.fade&&(n.options.centerMode=!1),!0===n.options.infinite&&!1===n.options.fade&&(e=null,n.slideCount>n.options.slidesToShow)){for(i=!0===n.options.centerMode?n.options.slidesToShow+1:n.options.slidesToShow,t=n.slideCount;t>n.slideCount-i;t-=1)e=t-1,c(n.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e-n.slideCount).prependTo(n.$slideTrack).addClass("slick-cloned");for(t=0;t<i+n.slideCount;t+=1)e=t,c(n.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e+n.slideCount).appendTo(n.$slideTrack).addClass("slick-cloned");n.$slideTrack.find(".slick-cloned").find("[id]").each(function(){c(this).attr("id","")})}},r.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},r.prototype.selectHandler=function(t){var e=c(t.target).is(".slick-slide")?c(t.target):c(t.target).parents(".slick-slide"),i=parseInt(e.attr("data-slick-index"));i=i||0,this.slideCount<=this.options.slidesToShow?this.slideHandler(i,!1,!0):this.slideHandler(i)},r.prototype.slideHandler=function(t,e,i){var n,o,a,r,s,l=null,c=this;if(e=e||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===t))if(!1===e&&c.asNavFor(t),n=t,l=c.getLeft(n),r=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?r:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(t<0||t>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(r,function(){c.postSlide(n)}):c.postSlide(n));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(t<0||t>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i?c.animateSlide(r,function(){c.postSlide(n)}):c.postSlide(n));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),o=n<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+n:n>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:n-c.slideCount:n,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,o]),a=c.currentSlide,c.currentSlide=o,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(s=(s=c.getNavTarget()).slick("getSlick")).slideCount<=s.options.slidesToShow&&s.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==i?(c.fadeSlideOut(a),c.fadeSlide(o,function(){c.postSlide(o)})):c.postSlide(o),void c.animateHeight();!0!==i?c.animateSlide(l,function(){c.postSlide(o)}):c.postSlide(o)}},r.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},r.prototype.swipeDirection=function(){var t,e,i,n,o=this;return t=o.touchObject.startX-o.touchObject.curX,e=o.touchObject.startY-o.touchObject.curY,i=Math.atan2(e,t),(n=Math.round(180*i/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&0<=n?!1===o.options.rtl?"left":"right":n<=360&&315<=n?!1===o.options.rtl?"left":"right":135<=n&&n<=225?!1===o.options.rtl?"right":"left":!0===o.options.verticalSwiping?35<=n&&n<=135?"down":"up":"vertical"},r.prototype.swipeEnd=function(t){var e,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1;if(n.interrupted=!1,n.shouldClick=!(10<n.touchObject.swipeLength),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},r.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},r.prototype.swipeMove=function(t){var e,i,n,o,a,r,s=this;return a=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!s.dragging||s.scrolling||a&&1!==a.length)&&(e=s.getLeft(s.currentSlide),s.touchObject.curX=void 0!==a?a[0].pageX:t.clientX,s.touchObject.curY=void 0!==a?a[0].pageY:t.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(s.touchObject.curY-s.touchObject.startY,2))),!s.options.verticalSwiping&&!s.swiping&&4<r?!(s.scrolling=!0):(!0===s.options.verticalSwiping&&(s.touchObject.swipeLength=r),i=s.swipeDirection(),void 0!==t.originalEvent&&4<s.touchObject.swipeLength&&(s.swiping=!0,t.preventDefault()),o=(!1===s.options.rtl?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),!0===s.options.verticalSwiping&&(o=s.touchObject.curY>s.touchObject.startY?1:-1),n=s.touchObject.swipeLength,(s.touchObject.edgeHit=!1)===s.options.infinite&&(0===s.currentSlide&&"right"===i||s.currentSlide>=s.getDotCount()&&"left"===i)&&(n=s.touchObject.swipeLength*s.options.edgeFriction,s.touchObject.edgeHit=!0),!1===s.options.vertical?s.swipeLeft=e+n*o:s.swipeLeft=e+n*(s.$list.height()/s.listWidth)*o,!0===s.options.verticalSwiping&&(s.swipeLeft=e+n*o),!0!==s.options.fade&&!1!==s.options.touchMove&&(!0===s.animating?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft))))},r.prototype.swipeStart=function(t){var e,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return!(i.touchObject={});void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,i.dragging=!0},r.prototype.unfilterSlides=r.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},r.prototype.unload=function(){var t=this;c(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},r.prototype.unslick=function(t){this.$slider.trigger("unslick",[this,t]),this.destroy()},r.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode?(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},r.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},r.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},c.fn.slick=function(){var t,e,i=this,n=arguments[0],o=Array.prototype.slice.call(arguments,1),a=i.length;for(t=0;t<a;t++)if("object"==typeof n||void 0===n?i[t].slick=new r(i[t],n):e=i[t].slick[n].apply(i[t].slick,o),void 0!==e)return e;return i}}),function(t){"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],t):t("undefined"!=typeof module&&module.exports?require("jquery"):jQuery)}(function(st){"use strict";function n(t,s){function e(t){if(!(!0===X.data(Ft+"_intouch")||0<st(t.target).closest(s.excludedElements,X).length)){var e=t.originalEvent?t.originalEvent:t;if(!e.pointerType||"mouse"!=e.pointerType||0!=s.fallbackToMouseEvents){var i,n=e.touches,o=n?n[0]:e;return Q=$t,n?Z=n.length:!1!==s.preventDefaultEvents&&t.preventDefault(),Y=q=D=null,U=1,W=N=H=V=G=0,J=function(){var t={};return t[lt]=E(lt),t[ct]=E(ct),t[dt]=E(dt),t[ht]=E(ht),t}(),C(),x(0,o),!n||Z===s.fingers||s.fingers===Ct||v()?(tt=I(),2==Z&&(x(1,n[1]),H=N=P(K[0].start,K[1].start)),(s.swipeStatus||s.pinchStatus)&&(i=c(e,Q))):i=!1,!1===i?(c(e,Q=jt),i):(s.hold&&(rt=setTimeout(st.proxy(function(){X.trigger("hold",[e.target]),s.hold&&(i=s.hold.call(X,e,e.target))},this),s.longTapThreshold)),$(!0),null)}}}function i(t){var e=t.originalEvent?t.originalEvent:t;if(Q!==St&&Q!==jt&&!k()){var i,n=e.touches,o=S(n?n[0]:e);if(et=I(),n&&(Z=n.length),s.hold&&clearTimeout(rt),Q=xt,2==Z&&(0==H?(x(1,n[1]),H=N=P(K[0].start,K[1].start)):(S(n[1]),N=P(K[0].end,K[1].end),K[0].end,K[1].end,Y=U<1?pt:ut),U=function(t,e){return(e/t*1).toFixed(2)}(H,N),W=Math.abs(H-N)),Z===s.fingers||s.fingers===Ct||!n||v()){if(D=F(o.start,o.end),function(t,e){if(!1!==s.preventDefaultEvents)if(s.allowPageScroll===ft)t.preventDefault();else{var i=s.allowPageScroll===vt;switch(e){case lt:(s.swipeLeft&&i||!i&&s.allowPageScroll!=wt)&&t.preventDefault();break;case ct:(s.swipeRight&&i||!i&&s.allowPageScroll!=wt)&&t.preventDefault();break;case dt:(s.swipeUp&&i||!i&&s.allowPageScroll!=Tt)&&t.preventDefault();break;case ht:(s.swipeDown&&i||!i&&s.allowPageScroll!=Tt)&&t.preventDefault()}}}(t,q=F(o.last,o.end)),G=function(t,e){return Math.round(Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)))}(o.start,o.end),V=A(),function(t,e){t!=ft&&(e=Math.max(e,j(t)),J[t].distance=e)}(D,G),i=c(e,Q),!s.triggerOnTouchEnd||s.triggerOnTouchLeave){var a=!0;if(s.triggerOnTouchLeave){var r=function(t){var e=(t=st(t)).offset();return{left:e.left,right:e.left+t.outerWidth(),top:e.top,bottom:e.top+t.outerHeight()}}(this);a=function(t,e){return t.x>e.left&&t.x<e.right&&t.y>e.top&&t.y<e.bottom}(o.end,r)}!s.triggerOnTouchEnd&&a?Q=l(xt):s.triggerOnTouchLeave&&!a&&(Q=l(St)),Q!=jt&&Q!=St||c(e,Q)}}else c(e,Q=jt);!1===i&&c(e,Q=jt)}}function n(t){var e=t.originalEvent?t.originalEvent:t,i=e.touches;if(i){if(i.length&&!k())return function(t){it=I(),nt=t.touches.length+1}(e),!0;if(i.length&&k())return!0}return k()&&(Z=nt),et=I(),V=A(),u()||!h()?c(e,Q=jt):s.triggerOnTouchEnd||!1===s.triggerOnTouchEnd&&Q===xt?(!1!==s.preventDefaultEvents&&t.preventDefault(),c(e,Q=St)):!s.triggerOnTouchEnd&&y()?d(e,Q=St,_t):Q===xt&&c(e,Q=jt),$(!1),null}function o(){N=H=tt=et=Z=0,U=1,C(),$(!1)}function a(t){var e=t.originalEvent?t.originalEvent:t;s.triggerOnTouchLeave&&c(e,Q=l(St))}function r(){X.unbind(O,e),X.unbind(R,o),X.unbind(z,i),X.unbind(B,n),M&&X.unbind(M,a),$(!1)}function l(t){var e=t,i=p(),n=h(),o=u();return!i||o?e=jt:!n||t!=xt||s.triggerOnTouchEnd&&!s.triggerOnTouchLeave?!n&&t==St&&s.triggerOnTouchLeave&&(e=jt):e=St,e}function c(t,e){var i,n=t.touches;return(!g()||!m())&&!m()||(i=d(t,e,gt)),(!f()||!v())&&!v()||!1===i||(i=d(t,e,mt)),T()&&w()&&!1!==i?i=d(t,e,bt):V>s.longTapThreshold&&G<kt&&s.longTap&&!1!==i?i=d(t,e,yt):1!==Z&&Et||!(isNaN(G)||G<s.threshold)||!y()||!1===i||(i=d(t,e,_t)),e===jt&&o(),e===St&&(n&&n.length||o()),i}function d(t,e,i){var n;if(i==gt){if(X.trigger("swipeStatus",[e,D||null,G||0,V||0,Z,K,q]),s.swipeStatus&&!1===(n=s.swipeStatus.call(X,t,e,D||null,G||0,V||0,Z,K,q)))return!1;if(e==St&&g()){if(clearTimeout(at),clearTimeout(rt),X.trigger("swipe",[D,G,V,Z,K,q]),s.swipe&&!1===(n=s.swipe.call(X,t,D,G,V,Z,K,q)))return!1;switch(D){case lt:X.trigger("swipeLeft",[D,G,V,Z,K,q]),s.swipeLeft&&(n=s.swipeLeft.call(X,t,D,G,V,Z,K,q));break;case ct:X.trigger("swipeRight",[D,G,V,Z,K,q]),s.swipeRight&&(n=s.swipeRight.call(X,t,D,G,V,Z,K,q));break;case dt:X.trigger("swipeUp",[D,G,V,Z,K,q]),s.swipeUp&&(n=s.swipeUp.call(X,t,D,G,V,Z,K,q));break;case ht:X.trigger("swipeDown",[D,G,V,Z,K,q]),s.swipeDown&&(n=s.swipeDown.call(X,t,D,G,V,Z,K,q))}}}if(i==mt){if(X.trigger("pinchStatus",[e,Y||null,W||0,V||0,Z,U,K]),s.pinchStatus&&!1===(n=s.pinchStatus.call(X,t,e,Y||null,W||0,V||0,Z,U,K)))return!1;if(e==St&&f())switch(Y){case ut:X.trigger("pinchIn",[Y||null,W||0,V||0,Z,U,K]),s.pinchIn&&(n=s.pinchIn.call(X,t,Y||null,W||0,V||0,Z,U,K));break;case pt:X.trigger("pinchOut",[Y||null,W||0,V||0,Z,U,K]),s.pinchOut&&(n=s.pinchOut.call(X,t,Y||null,W||0,V||0,Z,U,K))}}return i==_t?e!==jt&&e!==St||(clearTimeout(at),clearTimeout(rt),w()&&!T()?(ot=I(),at=setTimeout(st.proxy(function(){ot=null,X.trigger("tap",[t.target]),s.tap&&(n=s.tap.call(X,t,t.target))},this),s.doubleTapThreshold)):(ot=null,X.trigger("tap",[t.target]),s.tap&&(n=s.tap.call(X,t,t.target)))):i==bt?e!==jt&&e!==St||(clearTimeout(at),clearTimeout(rt),ot=null,X.trigger("doubletap",[t.target]),s.doubleTap&&(n=s.doubleTap.call(X,t,t.target))):i==yt&&(e!==jt&&e!==St||(clearTimeout(at),ot=null,X.trigger("longtap",[t.target]),s.longTap&&(n=s.longTap.call(X,t,t.target)))),n}function h(){var t=!0;return null!==s.threshold&&(t=G>=s.threshold),t}function u(){var t=!1;return null!==s.cancelThreshold&&null!==D&&(t=j(D)-G>=s.cancelThreshold),t}function p(){return!s.maxTimeThreshold||!(V>=s.maxTimeThreshold)}function f(){var t=_(),e=b(),i=null===s.pinchThreshold||W>=s.pinchThreshold;return t&&e&&i}function v(){return!!(s.pinchStatus||s.pinchIn||s.pinchOut)}function g(){var t=p(),e=h(),i=_(),n=b();return!u()&&n&&i&&e&&t}function m(){return!!(s.swipe||s.swipeStatus||s.swipeLeft||s.swipeRight||s.swipeUp||s.swipeDown)}function _(){return Z===s.fingers||s.fingers===Ct||!Et}function b(){return 0!==K[0].end.x}function y(){return!!s.tap}function w(){return!!s.doubleTap}function T(){if(null==ot)return!1;var t=I();return w()&&t-ot<=s.doubleTapThreshold}function C(){nt=it=0}function k(){var t=!1;it&&I()-it<=s.fingerReleaseThreshold&&(t=!0);return t}function $(t){X&&(!0===t?(X.bind(z,i),X.bind(B,n),M&&X.bind(M,a)):(X.unbind(z,i,!1),X.unbind(B,n,!1),M&&X.unbind(M,a,!1)),X.data(Ft+"_intouch",!0===t))}function x(t,e){var i={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return i.start.x=i.last.x=i.end.x=e.pageX||e.clientX,i.start.y=i.last.y=i.end.y=e.pageY||e.clientY,K[t]=i}function S(t){var e=void 0!==t.identifier?t.identifier:0,i=function(t){return K[t]||null}(e);return null===i&&(i=x(e,t)),i.last.x=i.end.x,i.last.y=i.end.y,i.end.x=t.pageX||t.clientX,i.end.y=t.pageY||t.clientY,i}function j(t){return J[t]?J[t].distance:void 0}function E(t){return{direction:t,distance:0}}function A(){return et-tt}function P(t,e){var i=Math.abs(t.x-e.x),n=Math.abs(t.y-e.y);return Math.round(Math.sqrt(i*i+n*n))}function F(t,e){if(function(t,e){return t.x==e.x&&t.y==e.y}(t,e))return ft;var i=function(t,e){var i=t.x-e.x,n=e.y-t.y,o=Math.atan2(n,i),a=Math.round(180*o/Math.PI);return a<0&&(a=360-Math.abs(a)),a}(t,e);return i<=45&&0<=i?lt:i<=360&&315<=i?lt:135<=i&&i<=225?ct:45<i&&i<135?ht:dt}function I(){return(new Date).getTime()}s=st.extend({},s);var L=Et||Pt||!s.fallbackToMouseEvents,O=L?Pt?At?"MSPointerDown":"pointerdown":"touchstart":"mousedown",z=L?Pt?At?"MSPointerMove":"pointermove":"touchmove":"mousemove",B=L?Pt?At?"MSPointerUp":"pointerup":"touchend":"mouseup",M=L?Pt?"mouseleave":null:"mouseleave",R=Pt?At?"MSPointerCancel":"pointercancel":"touchcancel",G=0,D=null,q=null,V=0,H=0,N=0,U=1,W=0,Y=0,J=null,X=st(t),Q="start",Z=0,K={},tt=0,et=0,it=0,nt=0,ot=0,at=null,rt=null;try{X.bind(O,e),X.bind(R,o)}catch(t){st.error("events not supported "+O+","+R+" on jQuery.swipe")}this.enable=function(){return this.disable(),X.bind(O,e),X.bind(R,o),X},this.disable=function(){return r(),X},this.destroy=function(){r(),X.data(Ft,null),X=null},this.option=function(t,e){if("object"==typeof t)s=st.extend(s,t);else if(void 0!==s[t]){if(void 0===e)return s[t];s[t]=e}else{if(!t)return s;st.error("Option "+t+" does not exist on jQuery.swipe.options")}return null}}var lt="left",ct="right",dt="up",ht="down",ut="in",pt="out",ft="none",vt="auto",gt="swipe",mt="pinch",_t="tap",bt="doubletap",yt="longtap",wt="horizontal",Tt="vertical",Ct="all",kt=10,$t="start",xt="move",St="end",jt="cancel",Et="ontouchstart"in window,At=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!Et,Pt=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!Et,Ft="TouchSwipe";st.fn.swipe=function(t){var e=st(this),i=e.data(Ft);if(i&&"string"==typeof t){if(i[t])return i[t].apply(i,Array.prototype.slice.call(arguments,1));st.error("Method "+t+" does not exist on jQuery.swipe")}else if(i&&"object"==typeof t)i.option.apply(i,arguments);else if(!(i||"object"!=typeof t&&t))return function(i){return!i||void 0!==i.allowPageScroll||void 0===i.swipe&&void 0===i.swipeStatus||(i.allowPageScroll=ft),void 0!==i.click&&void 0===i.tap&&(i.tap=i.click),i=i||{},i=st.extend({},st.fn.swipe.defaults,i),this.each(function(){var t=st(this),e=t.data(Ft);e||(e=new n(this,i),t.data(Ft,e))})}.apply(this,arguments);return e},st.fn.swipe.version="1.6.17",st.fn.swipe.defaults={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0},st.fn.swipe.phases={PHASE_START:$t,PHASE_MOVE:xt,PHASE_END:St,PHASE_CANCEL:jt},st.fn.swipe.directions={LEFT:lt,RIGHT:ct,UP:dt,DOWN:ht,IN:ut,OUT:pt},st.fn.swipe.pageScroll={NONE:ft,HORIZONTAL:wt,VERTICAL:Tt,AUTO:vt},st.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:Ct}}),function(l){"use strict";var u,p,o,f,v,a={".js":[],".json":[],".css":[],".html":[]},c="function"==typeof require?require:null;return f=function(t){var e=new Error("Could not find module '"+t+"'");return e.code="MODULE_NOT_FOUND",e},v=function(t,e,i){var n,o;if("function"==typeof t[e+i])return e+i;for(n=0;o=a[i][n];++n)if("function"==typeof t[e+o])return e+o;return null},u=function(t,e,i,n,o,a){var r,s,l,c,d,h;for("."!==(r=(i=i.split("/")).pop())&&".."!==r||(i.push(r),r="");null!=(s=i.shift());)if(s&&"."!==s&&(".."===s?(t=e.pop(),a=a.slice(0,a.lastIndexOf("/"))):(e.push(t),t=t[s],a+="/"+s),!t))throw f(n);if(r&&"function"!=typeof t[r]&&((h=(h=(h=(h=v(t,r,".js"))||v(t,r,".json"))||v(t,r,".css"))||v(t,r,".html"))?r=h:2!==o&&"object"===_typeof(t[r])&&(e.push(t),t=t[r],a+="/"+r,r="")),!r)return 1!==o&&t[":mainpath:"]?u(t,e,t[":mainpath:"],n,1,a):u(t,e,"index",n,2,a);if(!(d=t[r]))throw f(n);return d.hasOwnProperty("module")?d.module.exports:(l={},d.module=c={exports:l,id:a+"/"+r},d.call(l,l,c,p(t,e,a)),c.exports)},o=function(t,e,i,n){var o,a=i,r=i.charAt(0),s=0;if("/"===r){if(a=a.slice(1),!(t=l["/"])){if(c)return c(i);throw f(i)}n="/",e=[]}else if("."!==r){if(o=a.split("/",1)[0],!(t=l[o])){if(c)return c(i);throw f(i)}n=o,e=[],(a=a.slice(o.length+1))||(s=(a=t[":mainpath:"])?1:(a="index",2))}return u(t,e,a,i,s,n)},(p=function(e,i,n){return function(t){return o(e,[].concat(i),t,n)}})(l,[],"")}({workspace:{editor:{js:{frontend:{elements:{"countdown.js":function(t,e,i){var c,d,h,s;c=ThriveGlobal.$j,d=TCB_Front,s=["days","hours","minutes","seconds"],e.exports=function(){function l(t,e){var i=this;if(_classCallCheck(this,l),_defineProperty(this,"$el",c()),_defineProperty(this,"eventDate",new Date),_defineProperty(this,"$_days",c()),_defineProperty(this,"$_hours",c()),_defineProperty(this,"$_minutes",c()),_defineProperty(this,"$_seconds",c()),_defineProperty(this,"daysChanged",!1),_defineProperty(this,"hoursChanged",!1),_defineProperty(this,"minutesChanged",!1),_defineProperty(this,"secondsChanged",!1),_defineProperty(this,"daysValue",0),_defineProperty(this,"hoursValue",0),_defineProperty(this,"minutesValue",0),_defineProperty(this,"secondsValue",0),_defineProperty(this,"daysPrev",0),_defineProperty(this,"hoursPrev",0),_defineProperty(this,"minutesPrev",0),_defineProperty(this,"secondsPrev",0),_defineProperty(this,"isEvergreen",!1),_defineProperty(this,"isEditor",!1),_defineProperty(this,"interval",void 0),_defineProperty(this,"anim",""),_defineProperty(this,"cfg",{}),_defineProperty(this,"isNoRestart",0),_defineProperty(this,"cookie",void 0),!e&&h||(h=d.getDisplayType()),!t.data("tcb.countdown")||e){var n=new Date;if(this.isEditor=e,this.$el=t,this.readDomData(),this.isEvergreen=this.$el.hasClass("tve-countdown-evergreen"),this.isNoRestart=parseInt(this.$el.attr("data-norestart")),this.eventDate=new Date("".concat(this.$el.attr("data-date"),"T").concat(this.$el.attr("data-hour"),":").concat(this.$el.attr("data-min"),":").concat(this.$el.attr("data-sec")||"00").concat(this.$el.attr("data-timezone"))),this.isEditor?this.addMutationListener():this.$el.is(":visible")&&setTimeout(function(){i.handleOverflow()},1e3),this.isEvergreen){var o=!(this.isEditor||"true"===d.queryString.get("preview"));if(this.eventDate=new Date,this.cookie=d.getCookie(this.$el.attr("data-id")),this.cookie&&o)this.cookie=this.cookie.split("-"),this.eventDate.setTime(new Date(this.cookie[0],this.cookie[1]-1,this.cookie[2],this.cookie[3],this.cookie[4],this.cookie[5]));else if(this.eventDate.setTime(n.getTime()+24*this.$el.attr("data-day")*3600*1e3+3600*this.$el.attr("data-hour")*1e3+60*this.$el.attr("data-min")*1e3+1e3*this.$el.attr("data-sec")),o){var a="".concat(this.eventDate.getFullYear(),"-").concat(this.eventDate.getMonth()+1,"-").concat(this.eventDate.getDate(),"-").concat(this.eventDate.getHours(),"-").concat(this.eventDate.getMinutes(),"-").concat(this.eventDate.getSeconds()),r=new Date("2030-01-01");if(!this.isNoRestart){var s=new Date(this.eventDate.getTime());r=s.setDate(this.eventDate.getDate()+parseInt(this.$el.attr("data-expday"))),r=s.setHours(this.eventDate.getHours()+parseInt(this.$el.attr("data-exphour"))),r=new Date(r)}TCB_Front.setCookie(this.$el.attr("data-id"),a,{expires:r})}}!this.isEditor&&(n>=this.eventDate||isNaN(this.eventDate.getTime()))?this.finish():(this.onStateChange(),this.anim&&"function"==typeof this["render".concat(this.anim)]&&this["render".concat(this.anim)](),this.isEditor||(this.interval=setInterval(this.onStateChange.bind(this),1e3))),t.data("tcb.countdown",this)}}return _createClass(l,[{key:"finish",value:function(){var e=this;if(s.forEach(function(t){e["update".concat(e.anim)]("00","00",e["$_".concat(t)])}),!this.isEditor){this.$el.addClass("expired"),clearInterval(this.interval);var t=ThriveGlobal.$j.Event("tve.countdown-finished");this.$el.trigger(t)}}},{key:"onStateChange",value:function(){this.updateValues(),this.updateDom(),this.daysValue<=0&&this.hoursValue<=0&&this.minutesValue<=0&&this.secondsValue<=0&&(this.daysValue=this.hoursValue=this.minutesValue=this.secondsValue=0,this.finish())}},{key:"renderDefault",value:function(){var i=this;s.forEach(function(t){var e=i["".concat(t,"Value")].toString();1===e.length&&(e="0".concat(e)),i["$_".concat(t)].html('<div class="t-digit-part"><span>'.concat(e,"</span></div>"))})}},{key:"renderSlideDown",value:function(){var r=this;s.forEach(function(t){var e,i,n=r["".concat(t,"Value")].toString(),o=c('<div class="t-digit-part"></div>');1===n.length&&(n="0".concat(n));for(var a=0;a<n.length;a++)o.append((e=n.length-a,i=n[a],c('<span class="t-slide-part-digit" data-index="'.concat(e,'"><span class="part-p ct-d-placeholder">&nbsp;&nbsp;</span><span class="part-').concat(e,'">').concat(i,"</span></span>"))));r["$_".concat(t)].html('<div class="t-digit-part"><span class="t-digits" >'.concat(o[0].innerHTML,"</span></div>"))})}},{key:"renderFlipTile",value:function(){var n=this;s.forEach(function(t){var e=n["".concat(t,"Value")].toString();1===e.length&&(e="0".concat(e));var i={"--digits-number":e.length,"--digit-width-percent":"".concat(2<e.length?.55:.65)};d.inlineCssVariable(n["$_".concat(t)],i),n["$_".concat(t)].html('<div class="flip-clock__card t-digit-part"><span class="card__top"></span><span class="card__bottom"></span><span class="card__back"><span class="card__bottom"></span></span></div>'),n.updateFlipTile(e,new Array(e.length).fill(0).join(""),n["$_".concat(t)])})}},{key:"updateDefault",value:function(t,e,i){i.find("span").text(t)}},{key:"updateSlideDown",value:function(t,e,i){function n(t,e){if(t.html()===e)return t;t.removeClass("next").css("display","");var i=t.clone().removeClass("go-down").addClass("next").html(e);return t.before(i).next(".go-down").remove(),t.addClass("go-down"),setTimeout(function(){i.addClass("go-down")},20),setTimeout(function(){t[0].style.setProperty("display","none","important")},220),t}var o=i.find(".t-digit-part");o.removeClass("tcb-permanently-hidden");for(var a=0;a<o.length-t.length;a++)o.filter('[data-index="'.concat(o.length-a,'"]')).addClass("tcb-permanently-hidden");for(var r=0;r<t.length;r++){var s=t.length-r,l=i.find(".part-".concat(s));l.length&&n(l.first(),t[r])}}},{key:"updateFlipTile",value:function(t,e,i){var n=i.find(".card__top"),o=i.find(".card__bottom"),a=i.find(".card__back"),r=i.find(".card__back .card__bottom");0<=Number(e)&&(a.attr("data-value",e),o.attr("data-value",e)),n.html(t),r.attr("data-value",t),i.removeClass("flip"),i[0].offsetWidth,i.addClass("flip")}},{key:"readDomData",value:function(){var a=this,t=this.$el.attr("data-anim")||"default";this.anim=t.charAt(0).toUpperCase()+t.slice(1),this.parseConfig(),s.forEach(function(t,e){var i=a.$el.find(".tve-countdown-".concat(t)),n=!1;if(a["$_".concat(t)]=i.find(".tve-countdown-digit"),i.toggleClass("tcb-permanently-hidden",!a.cfg[t]),a.cfg[t]&&a.cfg[h])for(var o=e+1;o<s.length;o++)a.cfg[s[o]]&&(n=!0);i.next(".tve-countdown-tile-separator").toggleClass("tcb-permanently-hidden",!n)})}},{key:"updateDom",value:function(){var n=this;s.forEach(function(t){if(n["".concat(t,"Changed")]){var e=n["".concat(t,"Value")].toString(),i=n["".concat(t,"Prev")].toString();1===e.length&&(e="0".concat(e)),1===i.length&&(i="0".concat(i)),n["update".concat(n.anim)](e,i,n["$_".concat(t)])}})}},{key:"updateValues",value:function(){var e=this,t=new Date;s.forEach(function(t){e["".concat(t,"Prev")]=e["".concat(t,"Value")]}),this.secondsValue=Math.floor((this.eventDate.getTime()-t.getTime())/1e3),this.minutesValue=Math.floor(this.secondsValue/60),this.secondsValue=this.secondsValue%60,this.hoursValue=Math.floor(this.minutesValue/60),this.minutesValue=this.minutesValue%60,this.daysValue=Math.floor(this.hoursValue/24),this.hoursValue=this.hoursValue%24,this.cfg.days||(this.hoursValue+=24*this.daysValue),this.cfg.hours||(this.minutesValue+=60*this.hoursValue),this.cfg.minutes||(this.secondsValue+=60*this.minutesValue),s.forEach(function(t){e["".concat(t,"Changed")]=e["".concat(t,"Value")]!==e["".concat(t,"Prev")]})}},{key:"parseConfig",value:function(){var e,i={days:!0,minutes:!0,hours:!0,seconds:!0};try{e=JSON.parse(this.$el.attr("data-visible")||JSON.stringify(i))}catch(t){console.warn("Could not get json data for element:",this),e=i}this.cfg=e}},{key:"handleOverflow",value:function(){if(this.$el[0].parentNode&&this.$el.find(".tve-countdown-content").length&&!this.$el.hasClass("expired")){var t=this.$el.find(".tve-countdown-content")[0].offsetWidth,e=this.$el.parent().width();if(e<(t+=parseInt(this.$el.css("padding-left"))+parseInt(this.$el.css("padding-right")))){var i=e/t*parseInt(getComputedStyle(this.$el[0]).getPropertyValue("--tve-countdown-size").replace("px",""));this.isEditor?TVE.Components.countdown.handleOverflow(this.$el,i):(i=Math.max(i,20),this.$el[0].style.setProperty("--tve-countdown-size","".concat(i,"px"),"important"))}}}},{key:"addMutationListener",value:function(){function e(){cancelAnimationFrame(t),t=requestAnimationFrame(i.handleOverflow.bind(i))}var t,i=this;if(window.ResizeObserver&&!this.$el.data("resize-observer")){var n=new ResizeObserver(e);this.$el.data("resize-observer",n),n.observe(this.$el[0]);var o=new MutationObserver(function(t){Array.from(t).forEach(function(t){"attributes"===t.type&&["class","data-value","id"].includes(t.attributeName)||t.target.classList.contains("tve-countdown")&&"attributes"===t.type&&!["data-visible","data-resize"].includes(t.attributeName)||TVE._.debounce(e,100)})});o.observe(this.$el[0],{attributes:!0}),this.$el.find(".tve-countdown-data .tcb-plain-text, .tve-countdown-data span").each(function(t,e){o.observe(e,{attributes:!0})})}}}]),l}()},"login.js":function(t,e,i){!function(o,t){TCB_Front.loginCallbacks={redirect:function(t,e){if(e.success&&!0===e.success&&t.redirect_url.length){var i=tve_add_http(t.redirect_url);t.urlParams&&t.urlParams.length&&(i=TCB_Front.appendFormParamsToURL(i,t.urlParams)),i=TCB_Front.appendRandomParamToURL(i),(t["login.show_success"]||t.show_success)&&window.location.hostname===function(t){try{return new URL(t).hostname}catch(t){return""}}(i)&&sessionStorage.setItem("tcb_toast_message",t.success_message),TCB_Front.loginKeepLoader=!0,document.location.href=tve_add_http(i)}},refresh:function(t,e){TCB_Front.loginKeepLoader=!0,e.success&&!0===e.success&&t["login.show_success"]&&sessionStorage.setItem("tcb_toast_message",t.success_message),location.reload()},noRedirect:function(t,e){e.success&&!0===e.success&&t["login.show_success"]&&TCB_Front.toast(t.success_message,!1)},showMessage:function(t,e){e.success&&!0===e.success&&TCB_Front.toast(t.success_message,!1)}};var n=function(){function n(t){var i=this;_classCallCheck(this,n),this.$wrapper=t,this.data={action:"tve_login_submit"},this._config=tve_unserialize(TCB_Front.Base64.decode(this.$wrapper.find('input[name="config"]').val())),this._config.form_type=t.attr("data-type")||"login",this.initStates(),this.switchState(tve_frontend_options.current_user.user_email?"logged_in":this.determineDefaultState()),this.$wrapper.find("[data-state]").on("tcb.change_state",function(t,e){i.switchState(e.state)}),this.$wrapper.fadeIn("slow"),o(window).on("hashchange",function(){var t=i.getStateFromHash();t&&i.switchState(t)});var e=new URL(location.href).searchParams.get("ret");e&&(this._config.submit_action=this._config.post_register_action="redirect",this._config.redirect_url=this._config["post_register_action.redirect_url"]=e)}return _createClass(n,[{key:"hasState",value:function(t){return"both"===this._config.form_type||this._config.form_type===t}},{key:"getStateFromHash",value:function(){if(window.location.hash){var t=window.location.hash.replace("#tcb-","");if(["login","register"].includes(t)&&this.hasState(t))return t}return null}},{key:"determineDefaultState",value:function(){var t=this.$wrapper.attr("data-default-state")||"login";return this.getStateFromHash()||t}},{key:"initStates",value:function(){var i=this;this.states={},this.$wrapper.find("[data-state]").each(function(t,e){return i.states[e.dataset.state]=i.stateFactory(e.dataset.state)})}},{key:"stateFactory",value:function(t){var e,i={form:this.$wrapper.find('[data-state="'.concat(t,'"]')),config:this._config};switch(t){case"login":e=new r(i);break;case"forgot_password":e=new s(i);break;case"register":e=new l(i);break;default:e=new a(i)}return e}},{key:"getAjaxData",value:function(){var t=this.activeState.getAjaxData();return"string"==typeof t?o.param(this.data)+"&"+t:o.extend({},this.data,t)}},{key:"switchState",value:function(t){this.activeState&&this.activeState.resetErrors().clearForm(),this.$wrapper.find(".tcb-login-form-wrapper").removeClass("tve-active-state").addClass("tcb-permanently-hidden"),this.$wrapper.find('[data-state="'+t+'"]').removeClass("tcb-permanently-hidden").addClass("tve-active-state"),this.activeState=this.states[t],requestAnimationFrame(this.activeState.focusFirstInput.bind(this.activeState))}},{key:"bindEvents",value:function(){var e=this;return this.$wrapper.find(".tar-login-submit").off("click").on("click",function(){return e.activeState.getForm().trigger("submit"),!1}),this.$wrapper.find(".tve-dynamic-link:not(.tar-login-submit *)").off("click").on("click",function(t){if(e._onSwitchState(t),"logout"!==t.currentTarget.dataset.shortcodeId)return!1}),this.$wrapper.find("form").off("submit.tar_login_element thrive_submit user_loggedin").on("submit.tar_login_element thrive_submit",function(t){e._onSubmit(t)}).on("user_loggedin",function(t){TCB_Front.$body.addClass("logged-in").find(".tcb-hide-logged-in").remove()}),o.each(this.states,function(t,e){return e.afterInit()}),this}},{key:"_getStateToSwitch",value:function(t){var e=null;switch(t){case"bk_to_login":case"login":e="login";break;case"forgot_password":e="forgot_password";break;case"register":e="register"}return e}},{key:"_onSwitchState",value:function(t){var e=this.$wrapper.find(t.currentTarget);if("thrive_login_form_shortcode"===e.data("dynamic-link")){var i=this._getStateToSwitch(e.data("shortcode-id"));i&&(t.preventDefault(),this.switchState(i))}}},{key:"_onSubmit",value:function(t){if(t.preventDefault(),t.stopPropagation(),!0!==this.validate())return this.error();this.send()}},{key:"validate",value:function(){return this.activeState.validate()}},{key:"error",value:function(){return this.activeState.showErrors()}},{key:"send",value:function(){var e=this.activeState;e.beforeSend(),delete TCB_Front.loginKeepLoader,o.ajax({type:"post",xhrFields:{withCredentials:!0},url:tve_frontend_options.ajaxurl,data:this.getAjaxData()}).fail(function(t){return e.onFail(t)}).done(function(t){return e.onSuccess(t)}).always(function(){TCB_Front.loginKeepLoader||e.removeLoader()})}}]),n}(),a=function(){function e(t){_classCallCheck(this,e),this.$form=t.form,this.config=t.config,this.attributes={},this.action="",this.errors=[],this.init(),this._dataBind()}return _createClass(e,[{key:"getForm",value:function(){return this.$form.find("form").first()}},{key:"init",value:function(){}},{key:"afterInit",value:function(){}},{key:"_dataBind",value:function(){var i=this;Object.keys(this.attributes).forEach(function(t){var e=i.$form.find('input[name="'+t+'"]');"checkbox"===e.attr("type")?e.on("change",function(){i.attributes[t]=e.attr("checked")?1:0}):e.on("input",function(){i.attributes[t]=e.val()})})}},{key:"getAjaxData",value:function(){return o.extend({},this.attributes,{custom_action:this.action})}},{key:"removeLoader",value:function(){this.loader(!0),this.$form.find("button[type=submit]").hide()}},{key:"onSuccess",value:function(t){}},{key:"onFail",value:function(t){}},{key:"beforeSend",value:function(){this.loader()}},{key:"loader",value:function(t){return!0===(0<arguments.length&&void 0!==t&&t)?this.$form.find(".tcb-form-loader").remove():(o('<div class="tcb-form-loader"><span class="tcb-form-loader-icon thrv-icon-spinner9"></span></div>').appendTo(this.$form).show(),this.$form.find("input,a,button").blur()),this}},{key:"clearForm",value:function(){var e=this;return Object.keys(this.attributes).forEach(function(t){e.attributes[t]="",e.$form.find('input[name="'+t+'"]').val("")}),this}},{key:"resetErrors",value:function(){return this.errors=[],this.$form.find(".tcb-form-error").remove(),this.$form.find(".tcb-form-input-error").removeClass("tcb-form-input-error"),this}},{key:"validate",value:function(){return this.resetErrors(),!0}},{key:"showErrors",value:function(){var i=this;this.$form.find(".tcb-form-error").remove(),Object.keys(this.attributes).forEach(function(t){var e="empty_"+t;i.errors.includes(e)&&"string"==typeof tve_frontend_options.translations[e]&&i.showError(i.$form.find('input[name="'+t+'"]'),tve_frontend_options.translations[e])})}},{key:"showError",value:function(t,e){var i=this;t.is(":radio,:checkbox")&&(t=t.parents(".tve_lg_input_container").first()),t.hasClass("tcb-form-input-error")||(t.addClass("tcb-form-input-error").parent().addClass("tcb-form-input-error").after('<span class="tcb-form-error">'.concat(e,"</span>")),setTimeout(function(){i.resetErrors()},5e3))}},{key:"focusFirstInput",value:function(){TCB_Front.isInViewport(this.$form)&&this.$form.find("input:visible").first().focus()}}]),e}(),r=function(){function n(){return _classCallCheck(this,n),_possibleConstructorReturn(this,_getPrototypeOf(n).apply(this,arguments))}return _inherits(n,a),_createClass(n,[{key:"init",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"init",this).call(this),this.attributes={username:"",password:"",remember_me:""},this.action="login",this.$form.find(".tcb-remember-me-item").off("click").on("click",function(t){"checkbox"!==t.target.type&&e.$form.find('input[name="remember_me"]:not(.checkbox-update)').click()})}},{key:"onSuccess",value:function(t){_get(_getPrototypeOf(n.prototype),"onSuccess",this).call(this,t);var e=t.errors&&t.errors.length;if(e){var i="";t.errors.forEach(function(t){i+=t+"<br />"}),TCB_Front.toast(i,!0)}else"function"==typeof TCB_Front.loginCallbacks[this.config.submit_action]&&TCB_Front.loginCallbacks[this.config.submit_action](this.config,t);e||"noRedirect"!==this.config.submit_action&&"showMessage"!==this.config.submit_action||(this.$form.trigger("tcb.change_state",{state:"logged_in"}),this.getForm().trigger("user_loggedin")),TCB_Front.loginKeepLoader||this.clearForm()}},{key:"validate",value:function(){return this.resetErrors(),this.attributes.username.length||this.errors.push("empty_username"),this.attributes.password.length||this.errors.push("empty_password"),0===this.errors.length}}]),n}(),s=function(){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,a),_createClass(t,[{key:"init",value:function(){_get(_getPrototypeOf(t.prototype),"init",this).call(this),this.attributes={login:""},this.action="recover_password"}},{key:"onSuccess",value:function(e){if(_get(_getPrototypeOf(t.prototype),"onSuccess",this).call(this,e),e.errors&&Object.keys(e.errors).length){var i="";Object.keys(e.errors).forEach(function(t){i+=e.errors[t]+"<br />"}),TCB_Front.toast(i,!0)}else this.clearForm(),this.$form.trigger("tcb.change_state",{state:"reset_confirmation"})}},{key:"validate",value:function(){return this.resetErrors(),this.attributes.login.length||this.errors.push("empty_login"),0===this.errors.length}}]),t}(),l=function(){function t(){return _classCallCheck(this,t),_possibleConstructorReturn(this,_getPrototypeOf(t).apply(this,arguments))}return _inherits(t,a),_createClass(t,[{key:"init",value:function(){_get(_getPrototypeOf(t.prototype),"init",this).call(this),this.attributes={},this.action="register",this.config.error_messages=tve_frontend_options.translations.registration_err;try{this.config.error_messages=_objectSpread({},this.config.error_messages,{},JSON.parse(this.$form.find(".tve-lg-err-msg").val()))}catch(t){}}},{key:"hasLoginState",value:function(){return"register"!==this.config.form_type}},{key:"getAjaxData",value:function(){var t=this.getForm().serialize()+"&custom_action=".concat(this.action,"&_tcb_id=").concat(this.$form.find(".tcb-registration-form").attr("data-settings-id")||"","&tcb_token=").concat((10*Date.now()).toString(32));return this.uploader.appendExtraData(t)}},{key:"afterInit",value:function(){var a=this;this.getForm().off("submit.tar_login_element").attr("action","#");var t=this.$form.find(".tcb-registration-form").tve_front_lead_generation({renderError:function(t,e,i){var n,o;switch(t.length||(t=a.$form.find(".tar-login-submit")),i){case"captcha":o=e,t=t.children().first();break;case"upload":t=t.children().first(),o=e;break;case"email":n="invalid_email";break;case"passwordmismatch":n="passwordmismatch";break;default:n=i+"_"+t.attr("name")}o=o||(a.config.error_messages[n]||a.config.error_messages.required_field||"Please check this field"),a.showError(t,o)},clearErrors:function(){a.resetErrors()},showFormLoader:function(){a.loader()},submitHandler:function(t,e){t.preventDefault();var i=a.getForm();return e.token&&i.find(".tve-recaptcha-response").remove().end().append('<input type="hidden" name="g-recaptcha-response" value="'.concat(e.token,'" class="tve-recaptcha-response">')),i.trigger("thrive_submit"),!1}});this.uploader=t.data("tcb-file-upload")}},{key:"onFail",value:function(t){var e;t.responseJSON&&t.responseJSON.error&&(t.responseJSON.field&&(e=this.getForm().find('[name="'.concat(t.responseJSON.field,'"]')),"email"===t.responseJSON.field&&this.getForm().find('[name*="password"]').val("").trigger("keyup")),e&&e.length||(e=this.getForm().find(".tar-login-submit .tcb-button-link").first()),this.showError(e,t.responseJSON.error),"undefined"!=typeof grecaptcha&&"function"==typeof grecaptcha.reset&&(!tve_dash_front.recaptcha.connection||tve_dash_front.recaptcha.connection&&"v3"!==tve_dash_front.recaptcha.connection.version)&&grecaptcha.reset())}},{key:"onSuccess",value:function(t){switch(this.uploader.clear(),this.config.post_register_action){case"refresh":TCB_Front.loginKeepLoader=!0,t.success&&!0===t.success&&this.config["post_register_action.show_success"]&&sessionStorage.setItem("tcb_toast_message",this.config["post_register_action.success_message"]),location.reload();break;case"showMessage":TCB_Front.toast(this.config["post_register_action.success_message"]);var e="login";t.logged_in&&(TCB_Front.$body.addClass("logged-in"),e="logged_in"),"login"!==e||this.hasLoginState()?this.$form.trigger("tcb.change_state",{state:e}):this.$form.closest(".thrv-login-element").hide();break;default:var i=TCB_Front.loginCallbacks[this.config.post_register_action],n=1===parseInt(this.config["register.send_form_values"])?TCB_Front.buildFormParams(this.getForm()):[];"function"==typeof i&&i.call(TCB_Front.loginCallbacks,{redirect_url:this.config["post_register_action.redirect_url"],submit_action:this.config.post_register_action,success_message:this.config["post_register_action.success_message"],show_success:this.config["post_register_action.show_success"],urlParams:n},t)}TCB_Front.loginKeepLoader||(this.getForm()[0].reset(),"undefined"!=typeof grecaptcha&&"function"==typeof grecaptcha.reset&&(!tve_dash_front.recaptcha.connection||tve_dash_front.recaptcha.connection&&"v3"!==tve_dash_front.recaptcha.connection.version)&&grecaptcha.reset(),this.$form.find('input[type="password"]').trigger("keyup"))}}]),t}(),c=!tve_frontend_options.is_editor_page&&tve_frontend_options.current_user&&tve_frontend_options.current_user.id;t.tve_login_element=function(){return this.hasClass("thrv-login-element")?this.each(function(t,e){var i=o(e);c&&i.hasClass("tcb-hide-logged-in")?i.remove():i.data("tcbLoginForm")||i.data("tcbLoginForm",new n(i).bindEvents())}):this}}(ThriveGlobal.$j,TVE_jQFn)},"progress-bar.js":function(t,e,i){function a(t){if(!t)return 0;var e=t.offsetWidth,i=getComputedStyle(t);return e+=parseInt(i.marginLeft)+parseInt(i.marginRight)}function o(t,e){var i=1<arguments.length&&void 0!==e&&e,n=f.inlineCssVariable(t,"--nodes-completed".concat(i?"-dual":"")),o=parseInt(n),a=n-o,r=t.querySelectorAll(".tve-progress-line--fill".concat(i?"-dual":""));Array.prototype.forEach.call(r,function(t){f.inlineCssVariable(t,_defineProperty({},"--progress".concat(i?"-dual":""),"0%"))});for(var s=0;s<o;s++)r[s]&&f.inlineCssVariable(r[s],_defineProperty({},"--progress".concat(i?"-dual":""),"100%"));if(a&&r[o]&&f.inlineCssVariable(r[o],_defineProperty({},"--progress".concat(i?"-dual":""),"50%")),tve_frontend_options.is_editor_page&&t.classList.contains("thrv_data_element_start")&&(t.classList.remove("thrv_data_element_start"),setTimeout(function(){t.classList.add("thrv_data_element_start")},100)),!i){for(var l=t.querySelectorAll(".tve-progress-node"),c=t.querySelectorAll(".tve-progress-icon"),d=t.querySelectorAll(".tve-progress-label-wrapper--nodes .tve-progress-label"),h=0;h<=l.length;h++)l[h]&&(l[h].classList.remove("tve-state-expanded"),c[h].classList.remove("tve-state-expanded"),d[h].classList.remove("tve-state-expanded"));if(o)for(var u=0;u<=o;u++)l[u]&&(l[u].classList.add("tve-state-expanded"),c[u].classList.add("tve-state-expanded"),d[u].classList.add("tve-state-expanded"));a&&l[o]&&(l[o].classList.add("tve-state-expanded"),c[o].classList.add("tve-state-expanded"),d[o].classList.add("tve-state-expanded"))}}function r(t,e,i){var n,o=1<arguments.length&&void 0!==e&&e,a=2<arguments.length&&void 0!==i&&i,r=t.getAttribute("data".concat(o?"-dual":"","-field")),s=t.getAttribute("data".concat(o?"-dual":"","-fd")),l=t.getAttribute("data".concat(o?"-dual":"","-value")),c=t.getAttribute("data".concat(o?"-dual":"","-dv")),d=t.querySelectorAll(".tve-progress-label-wrapper--nodes .tve-progress-label").length,h=t.getAttribute("data".concat(o?"-dual":"","-value-shortcode"));if(!o||!["apprentice"].includes(t.dataset.field)){if("request_data"===r){switch(s){case"query":n=f.queryString.get(l);break;case"post":n=tve_frontend_options.post_request_data?tve_frontend_options.post_request_data[l]:0;break;case"cookie":n=f.getCookie(l)}n=n||c}else if("apprentice"===r){try{var u=tve_frontend_options.is_editor_page?{total:a?d:4,completed:a?d/2:2}:JSON.parse(h),p=Number(u.is_current_completed)?u.completed:u.completed+1;a?(n=u.completed,f.inlineCssVariable(t,{"--nodes-completed-dual":Math.min(p,d)})):u.total&&(n=u.completed/u.total*100,f.inlineCssVariable(t,{"--progress-dual":"".concat(Math.min(p/u.total*100,100),"%")}))}catch(t){}n=n||c}else n=h;n=Number(n),n=isNaN(n)?0:Math.min(n,a?d:100),f.inlineCssVariable(t,_defineProperty({},a?"--nodes-completed".concat(o?"-dual":""):"--progress".concat(o?"-dual":""),"".concat(n).concat(a?"":"%")))}}function n(t){return(0<arguments.length&&void 0!==t?t:f.$body).find(".tve-progress-bar-wrapper").addBack(".tve-progress-bar-wrapper")}var s,f,l;s=ThriveGlobal.$j,f=TCB_Front,(l={handleLabelPosition:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:f.$body;n(t).each(function(t,e){if("nodes"===e.dataset.type)for(var i=e.querySelectorAll(".tve-progress-label-wrapper--nodes .tve-progress-label"),n=e.querySelectorAll(".tve-progress-node"),o=0;o<n.length;o++)i[o].style.setProperty("left","".concat(n[o].offsetLeft+Math.ceil(n[o].offsetWidth/2)-a(i[o])/2,"px")),tve_frontend_options.is_editor_page||i[o].style.setProperty("visibility","visible")})},fillNodes:function(t){t.each(function(t,e){o(e),e.classList.contains("with-dual-progress")&&o(e,!0)}),l.toggleLabels(t)}}).handleDynamicValues=function(t){t.hasClass("tve-progress-bar-wrapper")||(t=t.find(".tve-progress-bar-wrapper")),t.filter("[data-field],[data-dual-field]").each(function(t,e){var i=e.classList.contains("with-dual-progress"),n="nodes"===e.dataset.type;r(e,!1,n),i&&r(e,!0,n),n&&(o(e),i&&o(e,!0)),e.dataset.field&&!tve_frontend_options.is_editor_page&&function(t,e){var i="block",n=parseFloat(f.inlineCssVariable(t,e?"--nodes-completed":"--progress"));e&&t.querySelectorAll(".tve-progress-node").length===n&&(n=100),(0===n&&parseInt(t.dataset.hideEmpty)||100===n&&parseInt(t.dataset.hideFull))&&(i="none"),t.style.setProperty("display",i,"important")}(e,n)})},l.toggleLabels=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:f.$body;n(t).each(function(t,e){var i=s(e),n=i.find(".tve-progress-label-wrapper--nodes .tve-progress-label");if("current"===TCB_Front.getMediaAttr(i,"data-label-display")){var o=parseInt(f.inlineCssVariable(i,"--nodes-completed"));n.css("visibility","hidden"),n.eq(o).css("visibility","visible")}else n.css("visibility","visible")})},l.init=function(t){l.handleDynamicValues(n(t)),l.handleLabelPosition(t),l.toggleLabels(),f.addResizeCallback(function(){l.handleLabelPosition(),l.toggleLabels()})},e.exports=l},"toc.js":function(t,e,i){function n(a,t,e){s.each(function(t,e){var i=b(e),n=e.dataset.highlight,o=i.data("headers");Object.keys(o).sort(function(t,e){return t-e}).forEach(function(t){var e=i.find(o[t].join(",")).parent();"heading"===n?t<=a?(i.find(".tve-toc-heading.tve-state-expanded").removeClass("tve-state-expanded"),e.addClass("tve-state-expanded")):e.removeClass("tve-state-expanded"):"section"===n?t<=a?(i.find(".tve-toc-heading.tve-state-expanded").removeClass("tve-state-expanded"),e.is(".tve-toc-heading-level0")||(e.prevUntil(".tve-toc-heading-level0").addClass("tve-state-expanded"),e.prevAll(".tve-toc-heading-level0").first().addClass("tve-state-expanded")),e.addClass("tve-state-expanded")):e.removeClass("tve-state-expanded"):e.toggleClass("tve-state-expanded",t<=a)})}),y.isBottomScroll(a)&&n(a+window.innerHeight)}var b,y,o,w,s,a,T;b=ThriveGlobal.$j,y=TCB_Front,w=!(o={}),s=b(),a=!1,T=(new Date).getTime(),b.fn.tableOfContents=function(){var v=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},g={target:"#tve_editor.tar-main-content",columns:1,headers:"h1,h2,h3",distribute:"",itemCallback:jQuery.noop,hideEmpty:!0,numbering:"none",emptyText:window.tve_frontend_options&&tve_frontend_options.translations?tve_frontend_options.translations.no_headings:"No headings found",itemsFilter:function(t){return t}},m=!1,_={level0:0,level1:0,level2:0};return this.each(function(){var e=this,t=b(this);if(t.is(".thrv_contents_table,.tve-toc")){var i=t.closest(".thrv_gutenberg_block,.thrv_symbol");(m=t.hasClass("thrv_contents_table"))||(_={level0:0,level1:0,level2:0},["headingStyle","bulletStyle","numberStyle","numberSuffix"].forEach(function(t){v[t]={};try{v[t]=JSON.parse(e.dataset[t])}catch(t){}}));var n=t.find(".tve_ct_content").empty(),l=_objectSpread({},g,{},this.dataset,{},v);l.distribute=1===parseInt(l.distribute)||"true"===l.distribute||!0===l.distribute,l.columns=Number(y.getMediaAttr(t,"data-columns")||1);var o,a=l.headers.split(",").map(function(t){return t.toUpperCase()}),c=a.shift(),d=b(l.target);if(d.length||(d=i.length?i.parent():b("#tve_editor")),o=d.find(l.headers),o=l.itemsFilter(o),w&&t.hasClass("tve-dynamic-toc")||(o=o.filter(":visible")),(o=o.filter(':not([data-hide="true"], .tve-toc *)')).length){for(;c&&a.length&&0===o.filter(c).length;)c=a.shift();var h=o.length/l.columns;l.distribute||(h=o.filter(c).length/l.columns);var u=new Array(l.columns).fill("",0,l.columns),p=0,f=-1;o.each(function(){var t=b(this),e=t.attr("data-alt-text")||t.text();l.distribute?f++:this.tagName===c&&f++,(1+p)*h<=f&&p++;var i=this.id&&1<d.find('[id="'.concat(this.id,'"]')).length,n=0<t.closest(".tve-content-list,.tvo-testimonials-display ").length,o=i||n&&!w&&!this.classList.contains("tve-id-regenerated"),a=this.id&&!o?this.id:this.id="t-"+T++,r=l.headers.split(",").indexOf(this.tagName.toLowerCase()),s=function(t,e,i,n,o){var a;if(m)a='<div class="tve_ct_level'.concat(i,'"><a href="#').concat(e,'" rel="nofollow">').concat(n,"</a></div>");else{var r="",s="",l="",c=t.numbering.includes("bullet"),d=t.numbering.includes("advance");if("none"!==t.numbering){if(c)0!==i&&!d||(l="toc-bullet-".concat(i));else if(0===i||d){_["level".concat(i)]+=1;for(var h=_["level".concat(i+1)]=0;h<i+1;h++)r+="".concat(_["level".concat(h)]).concat(h===i?"":".")}c&&l?s=l?'<div class="thrv_wrapper tve-toc-bullet tve-toc-bullet'.concat(i,' tve_no_icons tve-jump-scroll" data-target="#').concat(e,'" jump-animation="smooth" data-icon-target="').concat(l,'" data-element-name="Icon Level ').concat(i+1,'" data-css="').concat(t.bulletStyle[i]||"",'"><svg class="tcb-icon"><use xlink:href="#').concat(l,'"/></svg></div>'):"":r&&(s='<div class="thrv_wrapper tve-toc-number tve-toc-number'.concat(i,' tve_no_icons tve-jump-scroll" data-target="#').concat(e,'" jump-animation="smooth" data-element-name="Number Level ').concat(i+1,'" data-level="').concat(i,'" data-css="').concat(t.numberStyle[i]||"",'"><span class="tve-toc-disabled">').concat(r).concat(t.numberSuffix[i]||"","</span></div>"))}a='<div class="thrv_wrapper tve-toc-heading tve-toc-heading-level'.concat(i,' tve_no_icons" data-tag="').concat(o,'" data-css="').concat(t.headingStyle[i]||"",'" data-element-name="Heading Level ').concat(i+1,'">').concat(s,'<a href="#').concat(e,'" class="tve-toc-anchor tve-jump-scroll" jump-animation="smooth">').concat(n,"</a></div>")}return a}(l,a,r,e,this.tagName);o&&n&&!w&&this.classList.add("tve-id-regenerated"),l.itemCallback(t,r,l),u[p]+=s});var r="";if(!m){var s=t.children(".tve-toc-divider");r=s.length?s.html():'<div class="thrv_wrapper thrv-divider tve-vert-divider" data-style="tve_sep-1" data-color-d="rgb(217, 217, 217)" data-thickness-d="1"><hr class="tve_sep tve_sep-1" style=""></div>'}n.html(u.map(function(t){return'<div class="ct_column">'.concat(t,"</div>").concat(r)}).join(""))}else l.hideEmpty&&!y.queryString.get("tve_block_preview")?t.hide():n.html('<div class="tve-empty-toc">'.concat(l.emptyText,"</div>"))}})},o.initToc=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:y.$body;(w=1<arguments.length&&void 0!==arguments[1]&&arguments[1])||(t.length||(t=b("body")),a||(function(t){t.find(".tve-toc:not(.tve-dynamic-toc)").tableOfContents()}(t),function(t){var r=b(".thrv_header.tve-scroll-sticky").outerHeight()||0;t.find(".tve-toc.tve-elem-scroll").each(function(t,e){var i=b(e),a={};i.is(".tve-toc-dynamic:not(.tve-rendered)")||(i.find(".tve-toc-heading .tve-jump-scroll").each(function(t,e){var i=e.getAttribute("href")||e.getAttribute("data-target"),n=b("".concat(i));if(n.length){var o=Math.max(0,n.offset().top-100-r);b(e).data("targetOffset",o),a[o]?a[o].push('[href="'.concat(i,'"]')):a[o]=['[href="'.concat(i,'"]')]}}),i.data("headers",a),s=s.add(i))})}(t),a=!0),y.add_scroll_callback(n),y.$body.off(".tcb-jumplink-done").on("tcb-jumplink-done",function(t,e,i){(i.classList.contains("tve-toc-anchor")||i.classList.contains("tve-toc-number")||i.classList.contains("tve-toc-bullet"))&&setTimeout(function(){n(b(i).data("targetOffset"))},500)}))},e.exports=o},"user-profile.js":function(t,e,i){var o,a,r;o=ThriveGlobal.$j,a=TCB_Front,r=["nickname","username","first_name","last_name"],e.exports=function(){function e(t){_classCallCheck(this,e),_defineProperty(this,"usedDisplayNames",[]),_defineProperty(this,"$errorContainer",o()),_defineProperty(this,"inputErrorClass","tve-up-error"),_defineProperty(this,"isValid",!0),t.hasClass("tve-user-profile")||(t=t.find(".tve-user-profile")),t.length&&!t.data("tcb.userprofile")&&(this.$el=t,this.$form=this.$el.find("form"),this.readFormData(),this.bindEvents(),this.autofillData(),t.data("tcb.userprofile",this))}return _createClass(e,[{key:"readFormData",value:function(){var n=this;this.getInputs().each(function(t,e){var i=e.getAttribute("name");i&&(n["$".concat(i)]=o(e),"display_name"===i&&(n.$dropdown=n.$form.find(".tve-lg-dropdown-list"),n.$option=n.$dropdown.children().first(),n.$dropdown.empty()))});var t={success_message:"Success",error_message:{email:"Email address invalid",required:"Required field missing",passwordmismatch:"Password mismatch"}};try{t=JSON.parse(this.$el.find(".tve-up-messages").val())}catch(t){}Object.assign(this,t)}},{key:"bindEvents",value:function(){var e=this;this.$form.on("submit",function(t){return e.submitForm(t),t.preventDefault(),t.stopPropagation(),!1}),this.$form.find(".tve-form-button .tve-form-button-submit").on("click",function(t){return t.preventDefault(),t.stopPropagation(),e.$form.submit(),!1}),this.$display_name&&r.forEach(function(t){e["$".concat(t)]&&e["$".concat(t)].on("blur",function(){e.buildDisplayNameOptions()})})}},{key:"validateForm",value:function(){var a=this;this.fieldErrors=[],this.isValid=!0,this.getInputs().each(function(t,e){var i=!0,n=e.getAttribute("name"),o=e.value.trim();"1"!==e.dataset.required||o.length||(i=!1,a.fieldErrors.includes(a.error_message.required)||a.fieldErrors.push(a.error_message.required)),"user_email"===n&&((i=tve_is_email(o))||a.fieldErrors.push(a.error_message.email)),i||(e.classList.add(a.inputErrorClass),a.isValid=!1)}),this.$pass1&&(this.$pass1.siblings(".tve-password-strength-wrapper").attr("data-score")<=30&&(this.fieldErrors.push(this.error_message.password_score||"Please choose a stronger password. Try including numbers, symbols, and a mix of upper and lowercase letters and remove common words."),this.isValid=!1),this.$pass2&&this.$pass1.val()!==this.$pass2.val()&&(this.$pass1.addClass(this.inputErrorClass),this.$pass2.addClass(this.inputErrorClass),this.fieldErrors.push(this.error_message.passwordmismatch),this.isValid=!1))}},{key:"submitForm",value:function(){var i=this;if(this.clearErrors(),this.validateForm(),this.isValid){var t="".concat(this.$form.serialize(),"&action=tve_user_profile_update&url=").concat(encodeURIComponent(location.href));t+="&form_id=".concat(this.$el.attr("id")),this.$form.tve_form_loading(),tve_frontend_options.post_id&&(t+="&post_id=".concat(tve_frontend_options.post_id)),ThriveGlobal.$j.ajax({type:"post",xhrFields:{withCredentials:!0},url:tve_frontend_options.ajaxurl,dataType:"json",data:t}).fail(function(){TCB_Front.toast("An error occurred while submitting your data. Please try again",!0)}).done(function(t){if(t.success)TCB_Front.toast(i.success_message);else if(i.fieldErrors=[],"string"==typeof t.errors)TCB_Front.toast(t.errors,!0);else{var e=t.errors.errors;Object.keys(e).forEach(function(t){i.error_message[t]?i.fieldErrors.push(i.error_message[t]):e[t].forEach(function(t){return i.fieldErrors.push(t)})}),i.fieldErrors.length&&i.displayFormError()}}).always(function(){i.$form.tve_form_loading(!0)})}else this.displayFormError()}},{key:"autofillData",value:function(){var e=this;o.isEmptyObject(tve_frontend_options.current_user)||Object.keys(tve_frontend_options.current_user).forEach(function(t){e["$".concat(t)]&&e["$".concat(t)].val(tve_frontend_options.current_user[t])}),this.$display_name&&(this.buildDisplayNameOptions(),this.$dropdown.find('li[data-value="'.concat(tve_frontend_options.current_user.display_name.replace(/"/g,'\\"'),'"]')).trigger("mousedown"))}},{key:"buildDisplayNameOptions",value:function(){var i=this,n={oldSavedValue:tve_frontend_options.current_user.display_name};r.forEach(function(t){i["$".concat(t)]&&(n["".concat(t)]=i["$".concat(t)].val())}),n.first_name&&n.last_name&&(n.first_last="".concat(n.first_name," ").concat(n.last_name),n.last_first="".concat(n.last_name," ").concat(n.first_name)),Object.keys(n).forEach(function(t){if(n[t].trim()&&!i.usedDisplayNames.includes(n[t])){var e=i.$option.clone();e.attr("data-value",n[t]).css("display","").find("span").text(n[t]),i.$dropdown.append(e),i.usedDisplayNames.push(n[t]),a.inlineCssVariable(i.$dropdown,{"--rows":i.$dropdown.children().length})}})}},{key:"displayFormError",value:function(){var i=this;this.$errorContainer.length||(this.$errorContainer=o('<div id="tve-up-error-container"></div>').prependTo(this.$form.parent()),this.$errorContainer.append('<a href="javascript:void(0)" class="tve-up-err-close" title="Close"><span class="thrv-icon thrv-svg-icon">'.concat(TCB_Front.icons.get("cross"),"</span></a>")),this.$errorContainer.on("click",".tve-up-err-close",this.closeErrors.bind(this))),this.fieldErrors.forEach(function(t){o('<div class="tve-up-error-message">'.concat(t,"</div>")).prependTo(i.$errorContainer)}),setTimeout(function(){var t=parseInt(i.$form.css("margin-top")),e=-10-i.$errorContainer.outerHeight(!0)-(isNaN(t)?0:t);i.$el.offset().top+e<0&&(e=0),i.$errorContainer.css({top:"".concat(e,"px"),width:i.$form.outerWidth()}).fadeIn(200)},50)}},{key:"closeErrors",value:function(){var t=this.$form.find(".".concat(this.inputErrorClass)).first();t.length||(t=this.getInputs().first()),t.trigger("focus"),this.clearErrors(!1)}},{key:"clearErrors",value:function(t){var e=!(0<arguments.length&&void 0!==t)||t;this.$errorContainer.find(".tve-up-error-message").remove(),this.$errorContainer.fadeOut(200),e&&this.$form.find(".".concat(this.inputErrorClass)).removeClass(this.inputErrorClass)}},{key:"getInputs",value:function(){return this.$form.find("input,textarea,select").filter(':not([type="hidden"]):visible')}}]),e}()}},events:{"resize.js":function(t,e,i){var n,o,a;n=ThriveGlobal.$j,o=TCB_Front,a=[],o.addResizeCallback=function(t,e){return-1===a.indexOf(t)&&(t.$$scope=e,a.push(t)),o},e.exports=function(){var t=o.$window.width();o.$window.off("resize.tar").on("resize.tar",function(){o.$window.width()!==t&&(n.each(a,function(t,e){e.call(e.$$scope||this)}),t=o.$window.width())})}},"scroll.js":function(t,e,i){var a,r,s;a=ThriveGlobal.$j,r=TCB_Front,s=[],r.add_scroll_callback=function(t,e){return-1===s.indexOf(t)&&(t.$$scope=e,s.push(t)),r},e.exports=function(){var t=r.$document.scrollTop(),e="";r.$window.off("scroll.tar").on("scroll.tar",function(){var i=r.$document.scrollTop(),n=t<=i?"down":"up",o=e!==n;t=i,e=n,a.each(s,function(t,e){e.call(e.$$scope||this,i,n,o)})}),r.$window.trigger("scroll")}}},"thrive_content_builder_frontend.js":function(t,e,i){if(!window.ThriveGlobal||!window.ThriveGlobal.$j){var n=window.$;window.ThriveGlobal={$j:jQuery.noConflict()},n&&(window.$=n)}void 0===Array.prototype.includes&&(Array.prototype.includes=function(t){return-1!==this.indexOf(t)}),void 0===String.prototype.includes&&(String.prototype.includes=function(t){return-1!==this.indexOf(t)}),window.TVE_jQFn={},window.TCB_Front={},window.addEventListener("load",function(){TCB_Front.menu.init(),TCB_Front.divider.init(),TCB_Front.toc.initToc(TCB_Front.$body,!!tve_frontend_options.is_editor_page),tve_frontend_options.is_editor_page||(TCB_Front.sticky.initSticky(TCB_Front.$body,!!tve_frontend_options.is_editor_page),TCB_Front.add_scroll_callback(TCB_Front.show_data_elemements,TCB_Front)),TCB_Front.postGridLayout(),TCB_Front.$body.find(".tve-countdown").each(function(t,e){new TCB_Front.Countdown(ThriveGlobal.$j(e),!!tve_frontend_options.is_editor_page)})}),ThriveGlobal.$j.extend(window.TCB_Front,{browser:null,detectBrowser:function(){var t,e,i={},n=(e=-1,"Microsoft Internet Explorer"===navigator.appName?(t=navigator.userAgent,null!==new RegExp("MSIE ([0-9]{1,}[\\.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1))):"Netscape"===navigator.appName&&(t=navigator.userAgent,null!==new RegExp("Trident/.*rv:([0-9]{1,}[\\.0-9]{0,})").exec(t)&&(e=parseFloat(RegExp.$1))),e);if(0<n)i.msie=!0;else{var o=navigator.userAgent.toLowerCase(),a=/(edge)[ \/]([\w.]+)/.exec(o)||/(chrome)[ \/]([\w.]+)/.exec(o)||/(webkit)[ \/]([\w.]+)/.exec(o)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(o)||/(msie) ([\w.]+)/.exec(o)||o.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(o)||[],r=a[1]||"";a[2];a[1]&&(i[r]=!0),i.chrome?i.webkit=!0:i.webkit&&(i.safari=!0)}return i.msie&&(i.version=n),i.ios=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document,i},tableSort:function(d){d.find(".tva-t-sort").remove(),d.append('<span class="tva-t-sort thrv-svg-icon">'+this.icons.get("sort")+this.icons.get("sort-desc")+this.icons.get("sort-asc")),d.on("click",function(){var t,e=ThriveGlobal.$j(this),o=e.index(),i=e.parents(".tve_make_sortable"),n=i.find("tbody"),a=[],r=[],s="down"==e.attr("data-direction")?"up":"down";function l(t,e){return t.text==e.text?t.oText>e.oText?1:t.oText<e.oText?-1:0:t.text>e.text?1:-1}function c(t,e){return t.text==e.text?t.oText>e.oText?-1:t.oText<e.oText?1:0:t.text>e.text?-1:1}e.attr("data-direction",s),ThriveGlobal.$j(i).find("tbody tr").each(function(){var t=ThriveGlobal.$j(this),e=t.find("> td").eq(o).text().trim().replace(/\u200B/g,"").toLowerCase(),i=/[$£€]/.test(e),n=i?e:parseFloat(e);isNaN(n)&&!i?a.push({tr:t,text:e,oText:e}):(i&&(n=parseFloat(n.replace(/[$£€]/,""))),r.push({tr:t,text:n,oText:e}))}),"down"==s?a.sort(l):a.sort(c),"down"==s?r.sort(l):r.sort(c),t="down"==s?r.concat(a):a.concat(r),ThriveGlobal.$j.each(t,function(t,e){n.append(e.tr)}),d.attr("data-direction",""),e.attr("data-direction",s)})},getCookie:function(t){for(var e=t+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var o=i[n];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(e))return o.substring(e.length,o.length)}return null},setCookie:function(t,e,i){if("number"==typeof i.expires){var n=i.expires,o=i.expires=new Date;o.setTime(+o+864e5*n)}return document.cookie=[encodeURIComponent(t),"=",encodeURIComponent(e),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")},isInViewport:function(t,e){var i=1<arguments.length&&void 0!==e?e:0;(t instanceof ThriveGlobal.$j||t.jquery)&&(t=t[0]);var n=t.getBoundingClientRect();return!(n.bottom<0||n.top>window.innerHeight-i)},isBottomScroll:function(t){return 0<window.innerHeight&&t+window.innerHeight===ThriveGlobal.$j(document).height()},inlineCssVariable:function(e,i,t,n){e=e.jquery?e[0]:e;var o=window.getComputedStyle(e,n);if(Array.isArray(i)){var a={};return i.forEach(function(t){return a[t]=o.getPropertyValue(t)}),a}if("string"==typeof i)return void 0!==t?void e.style.setProperty(i,t):o.getPropertyValue(i);ThriveGlobal.$j.isPlainObject(i)&&Object.keys(i).forEach(function(t){return e.style.setProperty(t,i[t])})},postGridLayout:function(){var t=ThriveGlobal.$j(".tve_post_grid_masonry");if(0<t.length)try{t.each(function(){ThriveGlobal.$j(this).masonry(this.dataset.masonry?JSON.parse(this.dataset.masonry):{}).css("opacity",1)})}catch(t){console.log(t)}var e=ThriveGlobal.$j(".tve_post_grid_grid");e.length<=0||e.find(".tve_pg_row").each(function(){var i=0,t=ThriveGlobal.$j(this).css("height","");t.find(".tve_post").each(function(){var t=ThriveGlobal.$j(this),e=t.outerHeight();i<e&&(i=e),t.css("height","100%")}),t.css("height",i-1+"px")})},bodyOffsetTop:function(){var t=TCB_Front.$body.find("#mm-preview-settings-bar"),e=TCB_Front.$body.length?TCB_Front.$body.offset().top:0;return t.length&&(e+=t.height()),e||0},handleIframes:function(t,e){var i=0<arguments.length&&void 0!==t?t:TCB_Front.$body,n=!(1<arguments.length&&void 0!==e)||e,o=n?"src":"data-src",a=n?"data-src":"src",r=n?"remove":"add",s=n&&!tve_frontend_options.allow_video_src;i.find("iframe".concat(s?":visible":"")).not(".thrv_social_default iframe").each(function(){if(n||!this.classList.contains("tcb-dr-done")){var t=this.getAttribute(a);t&&this.setAttribute(o,t),this.removeAttribute(a),this.classList[r]("tcb-dr-done")}})},getMediaAttr:function(t,e,i){var n=2<arguments.length&&void 0!==i?i:this.getDisplayType(),o=[n],a=t.attr(e+n.charAt(0));switch(n){case"tablet":o.push("desktop");break;case"mobile":o.push("tablet"),o.push("desktop")}for(;void 0===a&&o.length;)a=t.attr("".concat(e,"-").concat(o.shift().charAt(0)));return void 0===a&&(a=t.attr(e)),a},changeAutoplayAudio:function(t){var i=this,e=0<arguments.length&&void 0!==t?t:ThriveGlobal.$j("body");tve_frontend_options.is_editor_page||e.find('.thrv_audio:not([data-type="dynamic"]) audio, .thrv_audio[data-type="soundcloud"][data-auto_play="1"]').each(function(t,e){ThriveGlobal.$j(e).parents(".tve_p_lb_content").length||i.makeAutoplayAudio(e)})},makeAutoplayAudio:function(t){if("audio"===t.tagName.toLowerCase()&&t.hasAttribute("data-autoplay")){var e=t.play();null!==e&&e.catch(function(){t.play()})}else ThriveGlobal.$j(t).find("iframe").each(function(){var t=(this.getAttribute("src")||this.getAttribute("data-src")).replace("&auto_play=0","")+"&auto_play=1";this.setAttribute("src",t)})},changeAutoplayVideo:function(t){var e=this;(void 0===t?ThriveGlobal.$j('.thrv_responsive_video:not([data-type="dynamic"])'):t.find('.thrv_responsive_video:not([data-type="dynamic"])')).each(function(){if(!tve_frontend_options.is_editor_page){var t=ThriveGlobal.$j(this);t.parents(".tve_p_lb_content").length||e.makeAutoplayVideo(t)}})},makeAutoplayVideo:function(t){var e,i,n,o=t.attr("data-type");this.browser;if("1"===t.attr("data-autoplay")){switch(o){case"youtube":i="&autoplay=1&mute=1";break;case"vimeo":i="&autoplay=1&muted=1";break;case"wistia":i="&autoPlay=true&muted=true"}if(["youtube","vimeo","wistia"].includes(o))(n=(e=t.find("iframe")).attr("src")||e.attr("data-src"))&&0!==n.length&&-1===n.indexOf(i)&&(e.attr("src",n+i),e.attr("data-src",n+i));else if(["self","external","custom"].includes(o)){var a=t.find("video").get(0);a&&(a.muted=!0,a.paused&&a.play())}}},getDisplayType:function(){var t="desktop";if(tve_frontend_options.is_editor_page)TCB_Front.$body.is(".preview-tablet")?t="tablet":TCB_Front.$body.is(".preview-mobile")&&(t="mobile");else{var e=this.$window.width();e<=767?t="mobile":e<=1023&&(t="tablet")}return t},isValidUrl:function(t){return/(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(t)},pageSectionHeight:function(){var t=TCB_Front.$window;ThriveGlobal.$j(".pdfbg.pdwbg").css({"box-sizing":"border-box",height:t.height()+"px"}),ThriveGlobal.$j(".pddbg").css("max-width",t.width()+"px"),ThriveGlobal.$j(".pddbg.pdfbg").each(function(){var t=ThriveGlobal.$j(this).css("height",""),e=t.attr("data-height"),i=t.attr("data-width");if(void 0!==e&&void 0!==i){var n=t.parent().width(),o=n*e/i;n<=i?t.css("min-height",o+"px"):t.css({"min-height":e+"px"})}})},getBrowserScrollSize:function(){var t=ThriveGlobal.$j,e={border:"none",height:"200px",margin:"0",padding:"0",width:"200px"},i=t("<div>").css(t.extend({},e)),n=t("<div>").css(t.extend({left:"-1000px",overflow:"scroll",position:"absolute",top:"-1000px"},e)).append(i).appendTo("body").scrollLeft(1e3).scrollTop(1e3),o={height:n.offset().top-i.offset().top||0,width:n.offset().left-i.offset().left||0};return n.remove(),o},openLightbox:function(r,t){var i=this;if(!r.hasClass("tve_lb_open")&&!r.hasClass("tve_lb_opening")){var n=ThriveGlobal.$j("body"),o=ThriveGlobal.$j("html"),a="tve-o-hidden tve-l-open tve-hide-overflow",e=this.getBrowserScrollSize().width,s=this,l=parseInt(n.css("padding-right")),c=r.find("input[placeholder]").not(":radio").not(":checkbox");if(c.length&&ThriveGlobal.$j(c).thrive_iphone_placeholder(),r.find('.thrv_responsive_video:not([data-type="dynamic"])').each(function(){var t=ThriveGlobal.$j(this);s.makeAutoplayVideo(t)}),r.find('.thrv_audio:not([data-type="dynamic"]) audio, .thrv_audio[data-type="soundcloud"][data-auto_play="1"]').each(function(t,e){i.makeAutoplayAudio(e)}),r.off().on("click",".tve_p_lb_close",function(){return h(r),!1}),n.off("keyup.tve_lb_close").on("keyup.tve_lb_close",function(t){if(27==t.which)return h(r),!1}),r.children(".tve_p_lb_overlay").off("click.tve_lb_close").on("click.tve_lb_close",function(){return h(r),!1}),h(ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open"),!0),r.addClass("tve_p_lb_background tve_lb_anim_"+t),r.data("doc-scroll-top",document.documentElement.scrollTop),r.data("bdy-scroll-top",document.body.scrollTop),n.addClass(a),o.addClass(a),TCB_Front.$window.height()<TCB_Front.$document.height()&&n.css("padding-right",l+e+"px"),r.find(".tve_scT").length?tve_frontend_options.is_editor_page||r.find(".tve_scT").each(function(){var t=ThriveGlobal.$j(this),e=parseInt(t.attr("data-selected"));if(!tve_frontend_options.is_editor_page){var i=t.find("> ul li").eq(isNaN(e)?0:e);i.length||(i=t.find("> ul li").first()),i.tcbTabsToggle()}}):TCB_Front.handleIframes(r),setTimeout(function(){r.css("display",""),r.addClass("tve_lb_opening"),setTimeout(function(){u()},0)},20),r.find(".tve_p_lb_content").trigger("tve.before-lightbox-open"),"none"!==r.css("display")?setTimeout(function(){r.removeClass("tve_lb_opening").addClass("tve_lb_open").find(".tve_p_lb_content").trigger("tve.lightbox-open")},300):(r.removeClass("tve_lb_open"),n.removeClass(a).css("padding-right",""),o.removeClass(a)),TCB_Front.$window.resize(function(){u()}),r.on("lbresize",function(){u(!0)}),"undefined"!=typeof ResizeObserver){var d=new ResizeObserver(function(){u(!0)});r.find("iframe").each(function(){d.observe(this)})}else r.find("iframe").each(function(){this.src=this.src,this.onload=function(){u(!0)}})}function h(t,e){TCB_Front.handleIframes(t,!1),t.find("video, audio").each(function(){ThriveGlobal.$j(this)[0].pause()}),void 0===e&&1===ThriveGlobal.$j(".tve_lb_open").length&&(n.removeClass(a).css("padding-right",""),o.removeClass(a),t.data("doc-scroll-top")?(document.documentElement.scrollTop=t.data("doc-scroll-top"),t.data("doc-scroll-top","")):t.data("bdy-scroll-top")&&(document.body.scrollTop=t.data("bdy-scroll-top"),t.data("doc-scroll-top",""))),t.removeClass("tve_lb_open tve_lb_opening").addClass("tve_lb_closing"),setTimeout(function(){t.removeClass("tve_lb_closing").css("display","none").find("tve_p_lb_content").trigger("tve.lightbox-close")},300),ThriveGlobal.$j("#tve-lg-error-container").hide()}function u(t){var e,i,n=r.find(".tve_p_lb_content"),o=TCB_Front.$window.height(),a=void 0!==t&&t?"animate":"css";TCB_Front.postGridLayout(),i=(o-(e=n.outerHeight(!0)))/2,r.find(".tve_p_lb_overlay")[a]({height:e+80+"px","min-height":o+"px"},200),n[a]({top:(i<40?40:i)+"px"},200),o<e+40&&r.addClass("tve-scroll")}},event_triggers:function(t){window.TVE_Event_Manager_Registered_Callbacks&&t.find(".tve_evt_manager_listen").each(function(){var n=ThriveGlobal.$j(this),t=n.attr("data-tcb-events");if(t=t||n.closest(".thrv_wrapper").attr("data-tcb-events"))try{t=JSON.parse(t.replace("__TCB_EVENT_","").replace("_TNEVE_BCT__","")),ThriveGlobal.$j.each(t,function(t,e){if(TVE_Event_Manager_Registered_Callbacks[e.a]){var i="mouseover"===e.t?"mouseenter":e.t;n.off(i+".tcbevt"+e.t).on(i+".tcbevt"+e.t,function(){return TVE_Event_Manager_Registered_Callbacks[e.a].call(n[0],e.t,e.a,e.config||e.c||{})})}})}catch(t){console.warn(t,"Could not parse events!")}})},show_data_elemements:function(i){ThriveGlobal.$j(".thrv_data_element").not(".thrv_data_element_start").each(function(){var t=ThriveGlobal.$j(this),e=TCB_Front.$window.height();i+e>=t.offset().top+t.outerHeight()&&"hidden"!==t.css("visibility")&&t.addClass("thrv_data_element_start").trigger("tve.start-animation")})},onDOMReady:function(i){var e=this;if(this.dynamicElements.init(),this.$body=ThriveGlobal.$j("body"),this.body_offset=this.$body.offset(),void 0===i&&(i=this.$body),TCB_Front.handleIframes(i,!0),this.icons.migrate(i),this.$body.addClass("tve-".concat(this.getDisplayType(),"-browser")),Object.keys(TCB_Front.browser).length&&Object.keys(TCB_Front.browser).forEach(function(t){-1===t.indexOf("webkit")&&TCB_Front.browser[t]&&e.$body.addClass("tve-".concat(t,"-browser"))}),this.smartComplete.init(i),this.menu.init(),this.divider.init(),this.toc.initToc(i,!!tve_frontend_options.is_editor_page),this.progressBar.init(i),i.find(".tve-countdown").each(function(t,e){new TCB_Front.Countdown(ThriveGlobal.$j(e),!!tve_frontend_options.is_editor_page)}),tve_frontend_options.is_editor_page||(i.find(".tve-user-profile").each(function(t,e){new TCB_Front.UserProfile(ThriveGlobal.$j(e))}),this.sticky.initSticky(i,!!tve_frontend_options.is_editor_page),this.add_scroll_callback(this.show_data_elemements,this),this.header(i)),this.fix_compat_issues(i),ThriveGlobal.$j(".tcb-video-background-el").each(function(){this.parentNode.classList.add("tcb-video-background-parent")}),this.replaceDynamicContent(),tve_frontend_options.is_editor_page?ThriveGlobal.$j(".tcb-video-background-el iframe.tcb-voo-bg").each(function(){var t=TVE.inner_$(this),e=t.attr("src");t.attr("src",e)}):(ThriveGlobal.$j('.thrv_responsive_video[data-type="vooplayer"]').each(function(){var t=ThriveGlobal.$j(this);t.find(".video_overlay_image").length&&t.find(".video-skin-player").css("z-index","-1")}),"undefined"!=typeof ResizeObserver?new ResizeObserver(function(){return TCB_Front.resizePageSection()}).observe(document.body):TCB_Front.addResizeCallback(TCB_Front.resizePageSection)),this.initSocial(i,tve_frontend_options.is_editor_page),!window.TVE_Dash||TVE_Dash.ajax_sent?this.getShareCounts():TCB_Front.$document.on("tve-dash.load",function(t){var e=TCB_Front.getShareCounts(ThriveGlobal.$j("body"),{},!0);e&&TVE_Dash.add_load_item("tcb_social",e[0],e[1])}),document.addEventListener("vooPlayerReady",this.playBackgroundVoo,!1),document.addEventListener("vooPlayerReady",this.changeVooOnPlay,!1),tve_frontend_options.is_editor_page||this.floating.init(),ThriveGlobal.$j.each(TVE_jQFn,function(t,e){ThriveGlobal.$j.fn[t]=e}),ThriveGlobal.$j(".tve_scT").each(function(){var t=ThriveGlobal.$j(this),e=parseInt(t.attr("data-selected"));if(!t.data("initDone")){t.data("initDone",!0);var i=t.find("> ul li").eq(isNaN(e)?0:e);i.length||(i=t.find("> ul li").first()),i.tcbTabsToggle()}}),ThriveGlobal.$j(".tve-toc-expandable").each(function(){var t=ThriveGlobal.$j(this),e=TCB_Front.getMediaAttr(t,"data-state-default");t.data("tcbTocDone")||(t.find(".tve-toc-title").tocToggle("expanded"===e?"show":"hide"),t.data("tcbTocDone",!0))}),ThriveGlobal.$j(".thrv_toggle_shortcode").each(function(){TCB_Front.handleIframes(ThriveGlobal.$j(this))}),ThriveGlobal.$j(".thrv_toggle").each(function(){var t=ThriveGlobal.$j(this);if(!t.data("tcbToggleInit")){var e=t.find(".thrv_toggle_item").filter(".tve-default-state-expanded");t.hasClass("tve-toggle-auto-collapse")&&(e=e.first()),e.find(".thrv_toggle_title").tcbToggle("show"),t.data("tcbToggleInit",1)}}),tve_frontend_options.is_editor_page)try{ThriveGlobal.$j("html").getNiceScroll().remove()}catch(t){}else{if(location.hash)try{var t=ThriveGlobal.$j(location.hash);t.closest(".thrv_toggle").length&&!t.hasClass("tve-state-expanded")&&t.trigger("click")}catch(t){}if(void 0===window.tcb_autofill){window.tcb_autofill=TCB_Front.getCookie("account_create_fields");try{window.tcb_autofill&&(window.tcb_autofill=decodeURIComponent(window.tcb_autofill),window.tcb_autofill=JSON.parse(window.tcb_autofill))}catch(t){window.tcb_autofill=null}window.tcb_autofill||(window.tcb_autofill=null)}if(window.tcb_autofill&&ThriveGlobal.$j.isArray(window.tcb_autofill)){ThriveGlobal.$j.each(window.tcb_autofill,function(t,e){-1===e.name.indexOf("[]")&&i.find("input[name="+e.name+"]").each(function(){var t=ThriveGlobal.$j(this);t.data("tcb-autofill")||(t.val(e.value).hide(),t.parent().append('<div class="tve-editable-field"><p>'+e.value+'</p><span class="tve_sc_icon icon-lock tve-edit-field"></span></div>'),t.data("tcb-autofill",1))})}),setTimeout(function(){TCB_Front.setCookie("account_create_fields",null,{path:"/"})},2500)}ThriveGlobal.$j("input[type=password], input[name=confirm_password]").on("keyup",function(){var t=ThriveGlobal.$j(this),e=this.value.trim(),i=t.siblings(".tve-password-strength-wrapper"),n=r(e),o="#e3ecef",a="";i.find(".tve-password-strength").css({"background-color":"#e3ecef"}),e?((n<30?(o="#ef5350",a="Weak",i.find(".tve-password-strength:lt(1)")):30<=n&&n<60?(o="#ffa726",a="So-so",i.find(".tve-password-strength:lt(2)")):60<=n&&n<80?(o="#8bc34a",a="Good",i.find(".tve-password-strength:lt(3)")):(o="#4caf50",a="Great!",i.find(".tve-password-strength:lt(4)"))).each(function(){ThriveGlobal.$j(this).css({"background-color":o})}),i.attr("data-score",n).find(".tve-password-strength-text").text(a).css({color:o})):i.find(".tve-password-strength").css("background-color","")});var r=function(t){var e,i=0;if(!t||t.length<5||/(passwd|mypass|password|wordpress)/g.test(t))return i;i=5*(e=String.prototype).concat.apply(e,_toConsumableArray(new Set(t))).length,/[a-z]/.test(t)&&(i+=10),/[A-Z]/.test(t)&&(i+=10);var n=t.match(/\d/g);n&&(i+=2*n.length);var o=t.match(/\W/g);return o&&(i+=10*o.length),parseInt(i)};TCB_Front.$document.on("click",".tve-edit-field",function(){ThriveGlobal.$j(this).parent().hide().prev().show()}),TCB_Front.$document.on("click",".tve-close-error-message",function(){ThriveGlobal.$j(this).parent().hide().prev().show()}),TCB_Front.$document.on("click",".tve-image-overlay",function(){var t=ThriveGlobal.$j(this).parent();t.is("a")||t.find("img").trigger("click")}),TCB_Front.$document.on("mouseenter mouseout",".tve-image-overlay",function(t){ThriveGlobal.$j(this).parent().find("img").trigger(t.type)}),ThriveGlobal.$j(".thrv_fill_counter").each(function(){var o=ThriveGlobal.$j(this);o.one("tve.start-animation",function(){var t=o.find(".tve_fill_counter").attr("data-fill"),e=2*t,i=["-webkit-transform","-ms-transform","transform"];for(var n in i)ThriveGlobal.$j(".tve_fill_c_in, .tve_fill_circle.tve_fill_circle1",this).css(i[n],"rotate("+t+"deg)"),ThriveGlobal.$j(".tve_fill_c_in-d",this).css(i[n],"rotate("+e+"deg)")})}),ThriveGlobal.$j(".thrv_number_counter").each(function(){ThriveGlobal.$j(this).on("tve.start-animation",function(){var n=ThriveGlobal.$j(".tve_numberc_text",this),t=n.attr("data-counter"),e=n.attr("data-counter-start")?n.attr("data-counter-start"):0,i=parseInt(e),o=null,a=Math.ceil((i<t?t:i)/100);a=a||1,i<t?function t(e,i){e<=i?(n.text(e),i<(e+=a)+a&&(n.text(i),clearTimeout(o)),o=setTimeout(function(){t(e,i)},50)):clearTimeout(o)}(i,t):function t(e,i){i<=e?(n.text(e),(e-=a)-a<i&&(n.text(i),clearTimeout(o)),o=setTimeout(function(){t(e,i)},50)):clearTimeout(o)}(i,t)})}),ThriveGlobal.$j(".tve_p_lb_content").find("video").each(function(){ThriveGlobal.$j(this)[0].pause()}),TCB_Front.handleIframes(ThriveGlobal.$j(".tve_p_lb_content"),!1),ThriveGlobal.$j(".thrv_content_reveal").each(function(){var t=ThriveGlobal.$j(this).find(".thrlider-slider");0<t.length&&t.each(function(){ThriveGlobal.$j(this).parent().attr("data-no-init","true")});var e=ThriveGlobal.$j(this),i=parseInt(e.attr("data-after")),n=e.parents(".tve_p_lb_content"),o=e.children("thrv_tabs_shortcode").length,a=e.children(".thrv_toggle_shortcode").length;i=isNaN(i)?0:i,TCB_Front.handleIframes(e,!1);function r(){setTimeout(function(){e.slideDown(200,function(){e.trigger("lbresize")}),e.data("scroll")&&jQuery("html, body").animate({scrollTop:e.offset().top-270}),e.parents("#tve_editor").length&&"1"!==tve_frontend_options.is_single||"string"!=typeof e.attr("data-redirect-url")||!e.attr("data-redirect-url").length||!TCB_Front.isValidUrl(e.attr("data-redirect-url"))||(window.location=e.attr("data-redirect-url")),e.find("iframe").not(".thrv_social_default iframe").each(function(){var t=ThriveGlobal.$j(this);t.attr("src")||o&&a||t.attr("src",t.attr("data-src"))}),TCB_Front.changeAutoplayVideo(e),e.find(".thrlider-slider").each(function(){ThriveGlobal.$j(this).parent().thrlider("init_elements")}),e.trigger("tve-content-revealed")},1e3*i)}n.length?n.bind("tve.lightbox-open",r):r()}),ThriveGlobal.$j(".thrv_tw_qs").tve_front_tw_qs(),ThriveGlobal.$j(".thrv-countdown_timer_evergreen, .tve_countdown_timer_evergreen").thrive_tcb_timer(),ThriveGlobal.$j(".thrv-countdown_timer_plain, .thrv_countdown_timer:not(.tve_countdown_timer_evergreen)").thrive_tcb_timer(),ThriveGlobal.$j(".thrv_lead_generation").tve_front_lead_generation(),ThriveGlobal.$j(".thrv-contact-form").tve_contact_form(),ThriveGlobal.$j(".thrv-pricing-table").tve_pricing_table(),ThriveGlobal.$j(".thrv-login-element").tve_login_element(),this.init_typefocus(i),i.find(".thrv_responsive_video").off().click(function(t){var e,i,n,o,a=ThriveGlobal.$j(this),r=a.find(".video_overlay_image"),s=a.find(".tcb-responsive-video").attr("data-provider"),l=a.attr("data-controls"),c=a.attr("data-overlay"),d=a.find(".tcb-video-float-container.tcb-float-closed");switch(s=s||a.attr("data-type")){case"youtube":case"vimeo":i="&autoplay=1";break;case"wistia":i="&autoPlay=true"}if("vooplayer"===s&&a.find(".video-skin-player").css("z-index",""),0===d.length&&["youtube","vimeo","wistia"].includes(s))0!==(n=(e=a.find("iframe")).attr("src")).length&&e.attr("src",n+i);else if((!TCB_Front.browser.safari||0===parseInt(l)&&1===parseInt(c))&&0===ThriveGlobal.$j(t.target).closest(".tcb-float-close-button").length&&["custom","self","external"].includes(s)){var h=a.find("video").get(0);o=h.paused?"play":"pause",setTimeout(function(){h[o]()})}0<r.length&&r.fadeOut()})}if(TCB_Front.changeAutoplayVideo(),ThriveGlobal.$j(".thrv_responsive_video:hidden").find("video").each(function(){ThriveGlobal.$j(this)[0].pause()}),TCB_Front.changeAutoplayAudio(i),TCB_Front.postGridLayout(),TCB_Front.remove_empty_symbols(i),TCB_Front.header_styling(i),TCB_Front.footer_styling(i),window.FB&&setTimeout(function(){ThriveGlobal.$j(".thrv_social_default .tve_s_fb_share, .thrv_social_default .tve_s_fb_like").each(function(){FB.XFBML.parse(this)})},200),!tve_frontend_options.is_editor_page){var n=ThriveGlobal.$j(".tve-captcha-container");if(n.length){function o(){"undefined"!=typeof grecaptcha&&grecaptcha.render?function(){var i=100;n.filter(":not(.tve-recapcha-rendered)").each(function(){this.id=this.id+"-"+ ++i;var t=ThriveGlobal.$j(this),e=window.innerWidth<400?"compact":t.attr("data-size");t.addClass("tve-recaptcha-rendered"),t.data("grecaptcha-render")||tve_dash_front.recaptcha.connection&&(!tve_dash_front.recaptcha.connection||"v3"===tve_dash_front.recaptcha.connection.version)||(t.data("grecaptcha-render",!0),grecaptcha.render(this.id,{sitekey:tve_dash_front.recaptcha.site_key||t.attr("data-site-key"),theme:t.attr("data-theme"),type:t.attr("data-type"),size:e}))})}():setTimeout(o,50)}var a=!1,s=tve_dash_front.recaptcha.connection&&"v3"===tve_dash_front.recaptcha.connection.version&&!tve_dash_front.recaptcha.connection.browsing_history?tve_dash_front.recaptcha.site_key:"explicit";window.tve_gapi_loaded||(ThriveGlobal.$j.getScript("https://www.google.com/recaptcha/api.js?render="+s,o),a=!0,window.tve_gapi_loaded=!0),a||o()}var l=ThriveGlobal.$j(".tve-fb-comments");l.length&&(ThriveGlobal.$j("#fb-root").length&&ThriveGlobal.$j("head").append('<div id="fb-root"></div>'),l.each(function(){var t=this.parentNode;""===this.getAttribute("data-href")&&(this.setAttribute("data-href",window.location.href.split("?")[0]),this.setAttribute("data-width","100%")),this.classList.add("fb-comments"),setTimeout(function(){FB.XFBML.parse(t)},200)}));var c=ThriveGlobal.$j(".thrv_disqus_comments #disqus_thread");c.length&&(window.disqus_shortname=c.attr("data-disqus_shortname"),""==c.attr("data-disqus_url")?window.disqus_url=window.location:window.disqus_url=c.attr("data-disqus_url"),window.disqus_identifier=window.disqus_url,"undefined"==typeof DISQUS&&ThriveGlobal.$j.getScript("//"+disqus_shortname+".disqus.com/embed.js"))}window.mejs&&ThriveGlobal.$j(".tcb-video-shortcode").not(".mejs-container").filter(function(){return!ThriveGlobal.$j(this).parent().hasClass(".mejs-mediaelement")}).mediaelementplayer(),this.resizePageSection(),setTimeout(function(){try{window.dispatchEvent(new CustomEvent("resize",{detail:{fromTcb:!0}}))}catch(t){}}),this.playBackgroundYoutube(ThriveGlobal.$j("div.tcb-yt-bg:visible")),this.init_scroll(),this.initResize(),this.handleAds(),setTimeout(this.handleAds,5e3)},handleAds:function(){TCB_Front.$body.find('ins[data-adsbygoogle-status="done"]').each(function(t,e){ThriveGlobal.$j(e).parentsUntil("body").each(function(t,e){e.style.setProperty("height",""),e.style.setProperty("min-height","")})})},replaceDynamicContent:function(){var e=TCB_Front.detectBrowser();ThriveGlobal.$j(".tve-browser-data").text(Object.keys(e).filter(function(t){return e[t]&&"webkit"!==t}).toString())},resizePageSection:function(t){void 0===t&&(t=ThriveGlobal.$j(".tcb-window-width")),t.each(function(){var t=ThriveGlobal.$j(this),e=t.css("left");e="auto"===e?0:Number(t.css("left").replace("px","")),t.css({width:TCB_Front[tve_frontend_options.is_editor_page?"$body":"$window"].width()+"px",left:-t.offset().left+e+"px"})})},onSocialCustomClick:{wnd:function(t,e,i){var n=void 0!==window.screenLeft?window.screenLeft:screen.left,o=void 0!==window.screenTop?window.screenTop:screen.top,a=(window.innerWidth?window.innerWidth:document.documentElement.clientWidth?document.documentElement.clientWidth:screen.width)/2-e/2+n,r=(window.innerHeight?window.innerHeight:document.documentElement.clientHeight?document.documentElement.clientHeight:screen.height)/2-i/2+o,s=window.open(t,"Thrive Share","scrollbars=yes,resizable=yes,toolbar=no,menubar=no,scrollbars=no,location=no,directories=no,width="+e+", height="+i+", top="+r+", left="+a);return window.focus&&s.focus(),s},fb_share:function(t){var e=t.data();if(e.href||(e.href=location.href),e.type&&"feed"!=e.type)this.wnd("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(e.href),650,500);else{var i="";e.name&&(i+="&title="+encodeURIComponent(e.name)),e.description&&(i+="&description="+encodeURIComponent(e.description)),e.href&&(i+="&u="+encodeURIComponent(e.href)),e.caption&&(i+="&caption="+encodeURIComponent(e.caption)),e.image&&(i+="&picture="+encodeURIComponent(e.image)),i="?"+i.substr(1),this.wnd("https://www.facebook.com/sharer.php"+i,650,500)}return!1},t_share:function(t){var e=t.data();e.href||(e.href=location.href),this.wnd("https://twitter.com/intent/tweet?url="+encodeURIComponent(e.href)+(e.tweet?"&text="+encodeURIComponent(e.tweet):"")+(e.via?"&via="+e.via:""),550,450)},in_share:function(t){var e=t.data();e.href||(e.href=location.href),this.wnd("https://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(e.href),550,400)},pin_share:function(t){var e=t.data();e.href||(e.href=location.href),this.wnd("https://pinterest.com/pin/create/button/?url="+encodeURIComponent(e.href)+(e.media?"&media="+encodeURIComponent(e.media):"")+(e.description?"&description="+encodeURIComponent(e.description):""),600,600)},xing_share:function(t){var e=t.data();e.href||(e.href=location.href),this.wnd("https://www.xing.com/spi/shares/new?url="+encodeURIComponent(e.href),600,500)}},getShareCounts:function(t,e,i){var n=(t=t||ThriveGlobal.$j("body")).find(".tve_social_items.tve_social_custom");if(n.length){var a={action:"tve_social_count",for:[]};if(void 0!==e?ThriveGlobal.$j.each(e,function(t,e){a[t]=e}):"undefined"!=typeof tve_path_params&&tve_path_params.post_id&&(a.post_id=tve_path_params.post_id),n.each(function(t){var e=ThriveGlobal.$j(this),i={};if(e.data("tve-social-counts")||!e.hasClass("tve_social_cb")&&"1"!==e.parent().attr("data-counts"))e.data("tve-social-counts",1);else{e.data("tve-social-counts",1);var n=e.prev(".tve_s_share_count"),o=e.children(".tve_s_item").each(function(){var t=ThriveGlobal.$j(this).addClass("tve_count_loading");i[t.attr("data-s")]=t.attr("data-href")});if(i.hasOwnProperty("t_share")&&1===o.length)return o.removeClass("tve_count_loading"),n.remove(),void e.parent().removeAttr("data-counts");a.for[t]=i}}),!a.for.length)return null;TCB_Front.total_share_counts={};function o(r){r&&r.counts&&r.totals&&n.each(function(t){var e=ThriveGlobal.$j(this),i=e.prev(".tve_s_share_count"),n=e.children(".tve_s_item");ThriveGlobal.$j.each(r.counts[t],function(t,e){n.filter(".tve_s_"+t).find(".tve_s_count").html(e.formatted)}),n.removeClass("tve_count_loading");var o=i.length?window.getComputedStyle(i[0]).display:"flex";if(r.totals&&r.totals[t]&&"1"===e.parent().attr("data-counts")){var a=parseInt(e.parent().attr("data-min_shares"));a=isNaN(a)?0:a,i.find(".tve_s_cnt").html(r.totals[t].formatted),parseInt(tve_frontend_options.is_editor_page)||(o=a<r.totals[t].value?"flex"===o?"flex":"inline-block":"none",i.css("cssText","display: ".concat(o," !important;")))}r.totals&&r.totals[t]&&(TCB_Front.total_share_counts[n.attr("data-href")]=r.totals[t])})}if(void 0!==i&&i)return[a,o];ThriveGlobal.$j.ajax({type:"post",xhrFields:{withCredentials:!0},url:tve_frontend_options.ajaxurl,data:a,dataType:"json"}).done(o)}},playBackgroundVoo:function(){ThriveGlobal.$j("iframe.tcb-voo-bg").each(function(t,e){!function t(){vooAPI(e.dataset.playerid,"onEnded",null,t),vooAPI(e.dataset.playerid,"play"),vooAPI(e.dataset.playerid,"volume",[0])}()})},changeVooOnPlay:function(t){var e=0<arguments.length&&void 0!==t?t:TCB_Front.$body;e&&e.jquery||(e=TCB_Front.$body),e.find("iframe.video-player-container").each(function(t,e){function i(){ThriveGlobal.$j(e).css("pointer-events",""),ThriveGlobal.$j(e).parent().find("#theImg").remove()}e.src?i():vooAPI(e.dataset.playerid,"onPlay",null,function(){i()})})},playBackgroundYoutube:function(t){if(t.length){var e=this;void 0!==window.YT&&window.YT.Player?this._playYTBackground(t):(window.onYouTubeIframeAPIReady=function(){e._playYTBackground(t)},ThriveGlobal.$j.ajax({url:"https://www.youtube.com/iframe_api",type:"get",crossDomain:!0,cache:!0,dataType:"script"}))}},_playYTBackground:function(t){t.each(function(){var t,e=this.getAttribute("data-yt-id");t=34===e.length?new YT.Player(this.id,{playerVars:{autoplay:1,cc_load_policy:0,controls:0,disablekb:1,fs:0,iv_load_policy:0,modestbranding:1,loop:1,playsinline:1,rel:0,showinfo:0,listType:"playlist",list:e},events:{onReady:function(t){t.target.mute()},onStateChange:function(t){t.target.mute()}}}):new YT.Player(this.id,{videoId:e,playerVars:{autoplay:1,cc_load_policy:0,controls:0,disablekb:1,fs:0,iv_load_policy:0,modestbranding:1,playsinline:1,rel:0,showinfo:0,playlist:e},events:{onReady:function(t){t.target.mute(),t.target.playVideo()},onStateChange:function(t){t.target&&t.target.mute&&t.target.mute(),t.data===(YT.PlayerState.ENDED||0)&&t.target.playVideo()}}}),ThriveGlobal.$j(t.getIframe()).data("tcb-yt-player",t)})},refreshBackgroundYoutube:function(){if(window.YT&&window.YT.Player){var e=this;ThriveGlobal.$j("iframe.tcb-yt-bg").each(function(){var t=ThriveGlobal.$j(this);t.data("tcb-yt-player")||e._playYTBackground(t)})}},remove_empty_symbols:function(t){t.find("div.thrv_symbol").each(function(){var t=jQuery(this),e=t.clone();t.closest(".tve-symbol-container").length||(e.find(".thrive-shortcode-config").remove(),""===e.html()&&jQuery(this).remove())})},toast:function(t,e,i){"string"!=typeof t&&(t=t.message||t.error||t.success);var n="checkmark",o="";(e=e||!1)&&(n="cross",o=" tve-toast-error"),jQuery("body").slideDown("fast",function(){jQuery("body").prepend('<div class="tvd-toast tve-fe-message"><div class="tve-toast-message"><div class="tve-toast-icon-container'+o+'"><span class="tve_tick thrv-svg-icon">'+TCB_Front.icons.get(n)+'</span></div><div class="tve-toast-message-container">'+t+"</div></div></div>")}),setTimeout(function(){jQuery(".tvd-toast").hide(),"function"==typeof i&&i()},3e3)},footer_styling:function(t){var e=0<arguments.length&&void 0!==t?t:TCB_Front.$body;if(!tve_frontend_options.is_editor_page){function i(){var t=o.height();o.length&&0<e.height()&&(o.css({position:"",top:""}),a.css({"min-height":"","padding-bottom":"","box-sizing":""}),e.height()+n<document.documentElement.clientHeight&&(o.css({position:"absolute",bottom:0,"padding-bottom":0,"z-index":3}),a.css({"min-height":"calc( 100vh - "+t+"px ) ","padding-bottom":t,"box-sizing":"unset"}),e.css("overflow-x","visible")))}var n=ThriveGlobal.$j("#wpadminbar").height()||0,o=e.find(".thrv_footer"),a=o.parents("#tve_editor");if("undefined"!=typeof ResizeObserver)new ResizeObserver(function(){i()}).observe(window.document.body);else i()}},header_styling:function(t){},windowWidth:function(){var e,i;try{e=(i=window.parent&&window.parent.TVE&&window.parent.TVE.main)&&window.parent.TVE.main.$frame.width()||this.$window[0].innerWidth}catch(t){e=this.$window[0].innerWidth,i=!1}var t=window.screen.width;return window.matchMedia("(orientation:landscape)").matches&&window.screen.height>t&&(t=window.screen.height),i||t+20<e&&e>window.outerWidth+20&&(e=t),e},buildFormParams:function(t){var o=[];return t.find(".tve_lg_input_container input:not([name=user_consent]), .tve_lg_input_container textarea").not("input[type=hidden]").not("input[type=password]").each(function(t,e){var i=ThriveGlobal.$j(e).serializeArray();if(i[0]){e.dataset.name&&(i[0].name=e.dataset.name),TCB_Front.reservedTerms.includes(i[0].name)&&(i[0].name="tve_"+i[0].name);var n=o.findIndex(function(t){return t.name===i[0].name});0<=n?o[n].value=o[n].value+", "+i[0].value:o=o.concat(i)}}),o},appendFormParamsToURL:function(t,e){return!Array.isArray(e)&&e.jquery&&(e=this.buildFormParams(e)),t+(t.split("?")[1]?"&":"?")+jQuery.param(e)},appendRandomParamToURL:function(t){return t+(t.split("?")[1]?"&":"?")+"_="+Math.floor(1e3*Math.random())},hasAdminBar:function(){return 0<ThriveGlobal.$j("#wpadminbar").length},init_scroll:i("./events/scroll"),initResize:i("./events/resize"),sticky:i("./util/sticky"),toc:i("./elements/toc"),progressBar:i("./elements/progress-bar"),fix_compat_issues:i("./util/compat"),reservedTerms:i("./util/reserved-terms"),init_typefocus:i("./util/typefocus"),menu:i("./util/menu"),dynamicElements:i("./util/dynamic-elements"),divider:i("./util/divider"),header:i("./util/header"),queryString:i("./util/query-string"),smartComplete:i("./util/smartcomplete"),floating:i("./util/floating"),woocommerce:i("./woo/main")(ThriveGlobal.$j,window),FileUpload:i("./util/file-upload"),PostList:i("./util/post-list"),Pagination:i("./util/pagination"),Countdown:i("./elements/countdown"),initSocial:i("./util/social-share"),icons:i("./util/svg-icons"),UserProfile:i("./elements/user-profile"),imageGallery:i("./util/image-gallery")}),TVE_jQFn.tve_front_tw_qs=function(){return this.each(function(){var i=ThriveGlobal.$j(this);if(i.data("tve_front_tw_qs_done"))return this;i.data("tve_front_tw_qs_done",!0),i.click(function(){window.open(t(),"_blank")});var t=function(){var t=i.attr("data-use_custom_url")&&i.attr("data-custom_url")?i.attr("data-custom_url"):window.location.href,e=i.data("url")+"?text="+encodeURIComponent(i.find("p").text())+"&url="+encodeURIComponent(t);return 0<i.data("via").length&&(e+="&via="+i.data("via")),e}})},TVE_jQFn.tve_pricing_table=function(){function e(t){t.stopPropagation(),t.preventDefault();var e=ThriveGlobal.$j(this),i=e.closest(".thrv-pricing-table");i.find(".tcb-active-state").removeClass("tcb-active-state"),i.find(".tcb-pricing-table-box-container").addClass("tcb-permanently-hidden"),e.addClass("tcb-active-state"),i.find('.tcb-pricing-table-box-container[data-instance="'+e.attr("data-instance")+'"]').removeClass("tcb-permanently-hidden")}return this.each(function(){var t=ThriveGlobal.$j(this);!function(t){t.off("click.thrv-button-group-item").on("click.thrv-button-group-item",".thrv-button-group-item",e)}(t.find(".thrv-button-group")),t.find('.thrv-button-group-item[data-default="true"]').click()})},TVE_jQFn.tve_front_lead_generation=function(){var j=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return window.TCB_PAGE_INDEX=window.TCB_PAGE_INDEX||1,this.each(function(){var u=ThriveGlobal.$j(this),y=u.find("form"),t=y.find(".tve-f-a-hidden").val();if(0==y.length&&(u.find(".thrv_lead_generation_container").wrapInner('<form method="post"></form>'),y=u.find("form")),y.find(".tve_lg_textarea.tve-lg-show-counter textarea").off("input.textarea").on("input.textarea",function(){var t=ThriveGlobal.$j(this),e=t.val().length,i=Number(t.attr("maxlength")),n=Number(t.attr("data-min")),o=t.next().find(".tve-fill-text-dynamic");o.text(i?"".concat(e," of ").concat(i):e),o.toggleClass("tve-counter-error",!!(e&&n&&e<n))}),y.find('input[type="checkbox"],input[type="radio"]').each(function(){if(!this.id)return!0;ThriveGlobal.$j("#"+this.id).not(this).length&&(this.id=this.id+"-"+window.TCB_PAGE_INDEX++,ThriveGlobal.$j(this).next("label").attr("for",this.id))}),void 0!==t&&"#"==y.attr("action")&&y.attr("action",t),u.data("tve_lg_done"))return this;if(u.data("tve_lg_done",!0),void 0!==window.SegMet&&SegMet&&-1!==y[0].action.indexOf("infusionsoft")&&!y.data("tve-segmet-submit")){y.data("tve-segmet-submit",1);var e=y[0].submit;y[0].submit=function(){return y.data("tve-segmet-submitted")?e.call(y[0]):(y.data("tve-segmet-submitted",1),y.submit())}}function w(t,e){var i=ThriveGlobal.$j.extend({success:"Sign up successful",error:"Error!"},e),n=y.find("#_form_type").val(),o=y.find("input[name=name]").val()?y.find("input[name=name]").val():"",a=y.find("input[name=email]").val();if(t){y.parents(".tl-style").first().find(".tve_p_lb_close").trigger("click");var r=ThriveGlobal.$j.Event("leads_messages.tcb");y.trigger(r),"lead_generation"==n&&(y.find("input").val(""),y.parents(".tve_p_lb_content").find(".tve_p_lb_close").click()),i.success=i.success.replace("[lead_email]",a),i.success=i.success.replace("[lead_name]",o),jQuery("body").slideDown("fast",function(){jQuery("body").prepend('<div class="tvd-toast tve-fe-message"><div class="tve-toast-message"><div class="tve-toast-icon-container"><span class="tve_tick thrv-svg-icon">'+TCB_Front.icons.get("checkmark")+'</span></div><div class="tve-toast-message-container">'+i.success+"</div></div></div>")}),setTimeout(function(){jQuery(".tvd-toast").hide()},6e3)}else{var s=y.parent(),l=s.parent(),c=l.find(".tve-error-wrapper");1==y.find("#_error_message_option").val()?(s.hide(),0==c.length?(l.append('<div class="tve-error-wrapper"><div class="tve-error-content"></div><button class="tve-close-error-message">Retry</button></div>'),i.error=i.error.replace("[lead_email]",a),i.error=i.error.replace("[lead_name]",o),l.find(".tve-error-content").append(i.error)):l.find(".tve-error-wrapper").show()):location.reload()}y.tve_form_loading(!0)}var T={errClass:"tve-lg-error",errClassMultiple:"tve-lg-error-multiple",init:function(){this.container=ThriveGlobal.$j("#tve-lg-error-container"),this.container.length||(this.container=ThriveGlobal.$j('<div id="tve-lg-error-container"></div>').prependTo(y.parent()),this.container.on("click",".tve-lg-err-close",ThriveGlobal.$j.proxy(this.close,this))),this.container.empty().hide(),this.clear()},close:function(){this.container.fadeOut(200);var t=y.find("."+this.errClass);return t.length||(t=y.find("input,select,textarea")),t.first().focus(),!1},clear:function(){y.find("input,select,textarea").removeClass(this.errClass),y.find('[class^="tve_lg_"]').removeClass(this.errClassMultiple+" "+this.errClass),"function"==typeof j.clearErrors&&j.clearErrors.apply(this,arguments)},markApiError:function(t,e,i){var n=1<arguments.length&&void 0!==e?e:ThriveGlobal.$j(),o=2<arguments.length&&void 0!==i?i:"";return"function"==typeof j.renderError?j.renderError(n,t,o):this.container.append('<div class="tve-lg-err-item tve-lg-ext-err">'+t+"</div>"),this},_markError:function(t,e,i){if("function"==typeof j.renderError)return j.renderError.call(this,t,e,i);if(t){var n=t.parent();n.removeClass("tcb-permanently-hidden"),n.closest("form").find('[data-label-for="'.concat(n.attr("data-label"),'"]')).removeClass("tcb-permanently-hidden"),t.addClass(this.errClass);var o=t.attr("data-field")?t.attr("data-field").replace("mapping_",""):t.attr("type");"gdpr"===o&&(o="checkbox"),["radio","checkbox"].includes(o)?t.closest(".tve_lg_"+o).addClass(this.errClassMultiple):"select"===o&&t.closest(".tve_lg_dropdown").addClass(this.errClass)}"required"===i&&this.container.find(".tve-lg-required").length||this.container.append('<div class="tve-lg-err-item tve-lg-'+i+'">'+e+"</div>")},show:function(){if("function"!=typeof j.renderError){this.container.append('<a href="javascript:void(0)" class="tve-lg-err-close" title="Close"><span class="thrv-icon thrv-svg-icon">'+TCB_Front.icons.get("cross")+"</span></a>");var n=this;setTimeout(function(){var t=y.offset(),e=parseInt(y.css("margin-top")),i=-10-n.container.outerHeight(!0)-(isNaN(e)?0:e);y.parents(".thrv-ribbon").length&&("bottom"==y.parents(".tve-leads-ribbon").attr("data-position")?i+=7:i=t.top+y.outerHeight()),n.container.css({top:i+"px",width:y.outerWidth()}).fadeIn(200)},50)}},phone:function(t,e){return!0},required:function(t,e){var i=!0,n="required";if("radio"===t.attr("type"))i=ThriveGlobal.$j('input[name="'+t.attr("name")+'"]').is(":checked");else if("checkbox"===t.attr("type"))i=ThriveGlobal.$j('input[name="'+t.attr("name")+'"]').is(":checked");else if(t.is("textarea[data-min]")){var o=ThriveGlobal.$j.trim(t.val()).length;!(i=o>=t.attr("data-min"))&&o&&(n="min-chars",e=tve_frontend_options.translations.min_chars.replace("%s",t.attr("data-min")))}else{var a=t.attr("value")?t.attr("value"):t.val();i=0<ThriveGlobal.$j.trim(a).length}return!!i||(this._markError(t,e,n),!1)},password:function(t,e){var i=!0;return t.val()||1!==t.data("required")||(i=!1),!!i||(this._markError(t,e,"password"),!1)},mismatch:function(t,e){var i=!0;return t.password&&t.password.val()!==t.confirm_password.val()&&(i=!1),!!i||(this._markError(t.confirm_password,e,"passwordmismatch"),!1)},email:function(t,e){return!!/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t.val())||(this._markError(t,e,"email"),!1)},getErrors:function(t){try{return JSON.parse(t.find(".tve-lg-err-msg").val())}catch(t){return{file_extension:"Sorry, {fileextension} files are not allowed",file_size:"{file} exceeds the maximum file size of {filelimit}",required:"Please fill in all of the required fields",phone:"The phone number is not valid",email:"The email address is not valid"}}}},C=new TCB_Front.FileUpload(u),p=function(t){return t&&0<t.length?t+",":""},k=function(){var o="";return"true"===y.find(".tve_lg_radio").attr("data-answer-tag")?y.find(".tve_lg_radio input[type=radio]").each(function(t,e){if(e.checked)if(e.attributes["data-custom-tag"]){var i=e.attributes["data-custom-tag"].value;o=0<o.length?o+","+i:i}else{var n=e.value;o=0<o.length?o+","+n:n}}):y.find(".tve_lg_radio input[type=radio]").each(function(t,e){e.checked&&e.attributes["data-custom-tag"]&&(o=e.attributes["data-custom-tag"].value)}),o},$=function(){var o="";return"true"===y.find(".tve_lg_checkbox:not(.tcb-lg-consent)").attr("data-answer-tag")?y.find(".tve_lg_checkbox input[type=checkbox]").each(function(t,e){if(e.checked)if(e.attributes["data-custom-tag"]){var i=e.attributes["data-custom-tag"].value;o=0<o.length?o+","+i:i}else{var n=e.value;o=0<o.length?o+","+n:n}}):y.find(".tve_lg_checkbox input[type=checkbox]").each(function(t,e){if(e.checked&&e.attributes["data-custom-tag"]){var i=e.attributes["data-custom-tag"].value;o=0<o.length?o+","+i:i}}),o},x=function(){var t=y.find(".tve_lg_dropdown"),e=t.find(".tve-lg-dropdown-option.tve-state-active");return"true"===t.attr("data-answer-tag")?e.attr("data-custom-tag")?0<e.length?e.attr("data-custom-tag"):"":0<e.length?e.attr("data-value"):"":0<e.length?e.attr("data-custom-tag"):""},S=function(n){["activecampaign","aweber","convertkit","drip","klicktipp","mailchimp","sendlane","zapier"].forEach(function(t){var e=y.find("input[type=hidden]#".concat(t,"_tags")),i=0<e.length?e.attr("value"):"";e.length&&(0===i.length&&","===n.slice(-1)&&(n=n.slice(0,-1)),i=n.replace(/['"`\\]/g,"")+i,e.attr("value",i))})};u.data("form-target")&&u.data("form-target").length&&u.find("form").attr("target",u.data("form-target")),function(){var t=TCB_Front.queryString.get("affiliate");if(t){var e=ThriveGlobal.$j("<input/>");e.attr("type","hidden").attr("name","tve_affiliate").val(t),y.append(e)}}(),u.find(".tve-lg-err-msg").length&&function(){y.find(".tve_submit_container .thrv_icon").click(function(){y.submit()}),y.find(".tve-form-button .tve-form-button-submit").click(function(t){return t.preventDefault(),t.stopPropagation(),y.submit(),!1});function n(f,t,e){if(y.data("tve-force-submit"))return!0;var i=y.find(".consent-config");i.length&&!i.attr("value")&&"none"!==y.find(".tcb-lg-consent").css("display")&&y.find('[name="user_consent"]').attr("data-required",1);var o=!0,n=ThriveGlobal.$j(t),a={};T.init(),n.find("input, select, textarea").each(function(){var t=ThriveGlobal.$j(this),e=t.data("validation"),i=parseInt(this.dataset.required),n=t.data("iphone-placeholder");""!==n&&t.val()===n&&t.val(""),"password"==t.attr("type")&&(a[t.attr("name")]=t),1===i&&(T.required(t,b.required)||(o=!1)),void 0!==e&&"none"!==e&&T[e]&&(T[e](t,b[e])||(o=!1))});var r=n.find('textarea[name="g-recaptcha-response"]');0<r.length&&(r.first().val()||(T.markApiError("Please validate captcha form",n.find(".tve-captcha-container"),"captcha"),setTimeout(function(){ThriveGlobal.$j("#tve-lg-error-container").fadeOut("slow")},5e3),o=!1)),2==Object.keys(a).length&&(T.mismatch(a,b.passwordmismatch)||(o=!1));var s=C.isValid();if(!0!==s&&(o=!1,T.markApiError(s,C.$el,"upload")),!o)return T.show(),y.find("."+T.errClass).first().focus(),!1;if("function"==typeof j.showFormLoader?j.showFormLoader():y.tve_form_loading(),"api"===y.parents(".thrv_lead_generation").attr("data-connection")||y.parents(".tcb-registration-form").length){var v=y.find("#_autofill").val(),g=v?y.find("input").not("input[type=hidden],input[type=password]").serializeArray():"";if(u.attr("data-settings-id")||function(){var t=k(),e=$(),i=x(),n=p(t)+p(e)+p(i);n.length&&S(n)}(),"function"==typeof j.submitHandler)return j.submitHandler.call(null,f,{uploader:C,autofillValues:g,token:e});var m={};jQuery.each(y.serializeArray(),function(t,e){m[e.name]=e.value});var l=y.serialize()+"&action=tve_api_form_submit&url="+encodeURIComponent(location.href),_=y.find("#_submit_option").val();l+="&_tcb_id="+(u.attr("data-settings-id")||"")+"&tcb_token="+(10*Date.now()).toString(32);var c=ThriveGlobal.$j.Event("form_conversion.tcb");return y.trigger(c),c.post_data&&(l+="&"+ThriveGlobal.$j.param(c.post_data)),tve_frontend_options.post_id&&(l+="&post_id="+tve_frontend_options.post_id),e&&(l+="&g-recaptcha-response="+e),l=C.appendExtraData(l),ThriveGlobal.$j.ajax({type:"post",xhrFields:{withCredentials:!0},url:tve_frontend_options.ajaxurl,dataType:"json",data:l}).fail(function(){T.markApiError("An error occurred while submitting your data. Please try again").show(),y.tve_form_loading(!0)}).done(function(t){C.clear(),y.find('input[type="password"]').trigger("keyup");try{var e=t.form_messages||{},i="";if(t.redirect&&(i=t.redirect,delete t.redirect),delete t.form_messages,t.variation){t.variation;delete t.variation}if(t.back_url){var n=t.back_url;delete t.back_url}var o=0<Object.keys(t).length&&!t.error;if(t.wordpress&&!0!==t.wordpress)return TCB_Front.toast(t.wordpress,!0),void y.tve_form_loading(!0);if(t.error){if("captcha"===t.field){var a=b.recaptcha||t.error;T.markApiError(a).show(),y.tve_form_loading(!0)}else w(o,e);return f.preventDefault(),!1}}catch(t){console.log(t)}var r=ThriveGlobal.$j.Event("lead_conversion_success.tcb",{form_data:m});if(y.trigger(r),r.content_unlocked&&"message"!==_&&"state"!==_)return f.preventDefault(),!1;var s=y.find("#_error_message_option").val();if(_&&("reload"!==_||!o&&1==s)){if("redirect"===_){var l=y.find("#_back_url").val();if(l=tve_add_http(l),v&&g&&!function(t){function e(t){return t.replace("http://","").replace("https://","").split("/")[0]}return e(location.href)!==e(t)}(l)&&TCB_Front.setCookie("account_create_fields",JSON.stringify(g),{path:"/"}),"1"===y.find("#_sendParams").val()&&(l=TCB_Front.appendFormParamsToURL(l,y)),l&&TCB_Front.isValidUrl(l)&&(o||1!=s))return void(location.href=l)}else{if("state"===_&&o){var c=TL_Front.parent_state,d=y.find(".tve-switch-state-trigger"),h=-1!==d.attr("data-tcb-events").indexOf("tl_state_lightbox"),u=0<y.parents(".tve_post_lightbox").length;if(d.trigger("click"),y.tve_form_loading(!0),h)if(u)c&&(TL_Front.close_form(c),delete TL_Front.parent_state);else{var p=ThriveGlobal.$j.Event("leads_messages.tcb");p.lightbox_state=!0,y.trigger(p)}return void(TL_Front.parent_state&&(y.parents(".tl-style").first().find(".tve_p_lb_close").trigger("click"),delete TL_Front.parent_state))}if("klicktipp-redirect"==_&&o){if(i&&TCB_Front.isValidUrl(i))return void(location.href=i)}else if("page"==_&&o&&n&&TCB_Front.isValidUrl(n))return void(location.href=n)}return ThriveGlobal.$j(".tve_p_lb_background.tve_lb_open .tve_p_lb_close").click(),y.find(".tve-state-expanded").removeClass("tve-state-expanded"),y.find(".tve_lg_dropdown").each(function(){var t=ThriveGlobal.$j(this),e=t.attr("data-show-placeholder"),i=t.find('[data-default="1"]'),n=i.length?i:t.find(".tve-lg-dropdown-option,.tve-dynamic-dropdown-option").first(),o=t.find("input");e?(t.find(".tve-lg-dropdown-trigger .tve-disabled-text-inner").html(o.attr("data-placeholder")),o.removeAttr("value")):(t.find(".tve-lg-dropdown-trigger .tve-disabled-text-inner").html(n.text()),o.attr("value",n.attr("data-value")))}),w(o,e),y[0].reset(),y.find("textarea").trigger("input"),y.find('input[type="radio"][data-default="1"], input[type="checkbox"][data-default="1"] ').attr("checked","checked").closest(".tve_lg_radio_wrapper, .tve_lg_checkbox_wrapper").addClass("tve-state-expanded"),TCB_Front.smartComplete.handleSmartComplete(y),!0}location.reload()}).always(function(){"undefined"!=typeof grecaptcha&&"function"==typeof grecaptcha.reset&&(!tve_dash_front.recaptcha.connection||tve_dash_front.recaptcha.connection&&"v3"!==tve_dash_front.recaptcha.connection.version)&&grecaptcha.reset()}),f.stopPropagation(),!1}var d,h=ThriveGlobal.$j.Event("should_submit_form.tcb");return y.trigger(h),"1"!==y.find("input#_asset_option").val()&&!h.flag_need_data||(l=y.serialize()+"&action=tve_custom_form_submit&email="+function(t){if(t.find('[data-validation="email"]').length)return t.find('[data-validation="email"]').val();var e="";return t.find("input").each(function(){if(this.name&&this.name.match(/email/i))return e=this.value,!1}),e}(y)+"&name="+(d=!1,y.find("input").each(function(){var t=ThriveGlobal.$j(this),e=t.attr("placeholder"),i=t.attr("name");if(e&&-1!==e.toLowerCase().indexOf("name")||i&&-1!==i.toLowerCase().indexOf("name"))return d=t,!1}),!1!==d?d.val():""),c=ThriveGlobal.$j.Event("form_conversion.tcb"),y.trigger(c),c.post_data&&(l+="&"+ThriveGlobal.$j.param(c.post_data)),tve_frontend_options.post_id&&(l+="&post_id="+tve_frontend_options.post_id),ThriveGlobal.$j.ajax({type:"post",xhrFields:{withCredentials:!0},url:tve_frontend_options.ajaxurl,data:l}).always(function(t){y.find("input,select,textarea").removeAttr("disabled"),y.find(".tve-form-button").removeClass("tar-disabled"),y.data("tve-force-submit",!0).submit()}),!1)}var b=T.getErrors(u);y.on("submit",function(e){var i=this;return ThriveGlobal.$j(this).find(".tve-captcha-container").length&&tve_dash_front.recaptcha.connection&&"v3"===tve_dash_front.recaptcha.connection.version?(grecaptcha.ready(function(){grecaptcha.execute(tve_dash_front.recaptcha.site_key,{action:"submit"}).then(function(t){n(e,i,t)})}),!1):n(e,i)})}()})},TVE_jQFn.tve_form_loading=function(t){var e=this,i=e.find("[type=submit]").parent(),n=e.find(".tcb-form-loader");return void 0!==t&&t?(n.fadeOut(),e.find("input,select,textarea").removeAttr("disabled"),i.find("button").fadeIn(),e.find(".tve-form-button .tve-form-button-submit").fadeIn(),i.find(".thrv_icon").fadeIn()):(n.length||(n=ThriveGlobal.$j('<div class="tcb-form-loader"><span class="tcb-form-loader-icon thrv-svg-icon">'+TCB_Front.icons.get("spinner9")+"</span></div>").appendTo(i),i.css({position:"relative",width:i.width()+"px",height:i.height()+"px"})),i.find("button").hide(),e.find(".tve-form-button .tve-form-button-submit").hide(),i.find(".thrv_icon").hide(),n.show()),this},TVE_jQFn.thrive_tcb_timer=function(){return this.each(function(){var t,o=ThriveGlobal.$j(this),e=new Date,i=new Date(o.attr("data-date")+"T"+o.attr("data-hour")+":"+o.attr("data-min")+":"+(o.attr("data-sec")||"00")+o.attr("data-timezone")),a=0,r=0,s=0,l=0,c=2,n=o.attr("data-text"),d=o.hasClass("thrv-countdown_timer_evergreen")||o.hasClass("tve_countdown_timer_evergreen"),h=o.attr("data-norestart"),u=parseInt(o.attr("data-day")),p=parseInt(o.attr("data-hour")),f=parseInt(o.attr("data-min")),v=parseInt(o.attr("data-sec"));if(o.data("tcb_timer_done"))return this;if(o.data("tcb_timer_done",!0),d){i=new Date;var g=TCB_Front.getCookie(o.attr("data-id"));if(g){g=g.split("-");var m=new Date(g[0],g[1]-1,g[2],g[3],g[4],g[5]);i.setTime(m)}else{i.setTime(e.getTime()+24*u*3600*1e3+3600*p*1e3+60*f*1e3+1e3*v);var _=i.getFullYear()+"-"+(i.getMonth()+1)+"-"+i.getDate()+"-"+i.getHours()+"-"+i.getMinutes()+"-"+i.getSeconds(),b=new Date("2034-01-01");if(!parseInt(h)){var y=new Date(i.getTime());b=y.setDate(i.getDate()+parseInt(o.attr("data-expday"))),b=y.setHours(i.getHours()+parseInt(o.attr("data-exphour"))),b=new Date(b)}TCB_Front.setCookie(o.attr("data-id"),_,{expires:b})}}function w(){setTimeout(function(){o.find(".tve_t_day .t-digits").css("min-width",o.find(".tve_t_sec .t-digits > span").outerWidth()*c+"px")},10)}o.parents(".thrv_content_reveal").on("tve-content-revealed",w),o.parents(".tve_p_lb_content").on("tve.before-lightbox-open",w);function T(t,e){if(t.html()==e)return t;t.removeClass("next");var i=t.clone().removeClass("go-down").addClass("next").html(e);return t.before(i).next(".go-down").remove(),t.addClass("go-down"),setTimeout(function(){i.addClass("go-down")},20),t}function C(t,e,i){void 0===i&&(i=!1);var n=0;if(e<=99)T(t.find(".part-1").first(),e%10),T(t.find(".part-2").first(),Math.floor(e/10)),n=2;else for(;e;)n++,T(t.find(".part-"+n).first(),e%10),e=Math.floor(e/10);if(!1!==i&&n<i)for(var o=n+1;o<=i;o++)T(t.find(".part-"+o).first(),0)}var k=function(){o.addClass("tve_cd_expired"),o.find(".t-digits span").html("0"),n&&(o.find(".tve_t_part").addClass("ct_finished"),o.find(".tve_t_text").html(n).fadeIn(200));var t=ThriveGlobal.$j.Event("tve.countdown-finished");o.trigger(t),setTimeout(function(){o.find(".t-digits span:not(.ct-d-placeholder)").hide()},100)},$=function(){e=new Date,l=Math.floor((i.getTime()-e.getTime())/1e3),s=Math.floor(l/60),l%=60,r=Math.floor(s/60),s%=60,a=Math.floor(r/24),r%=24,99<a&&(c=a.toString().length)};!d&&i<=e?k():($(),function(){function t(t,e){return ThriveGlobal.$j('<span class="part-p ct-d-placeholder">&nbsp;</span><span class="part-'+t+'">'+e+"</span>")}o.find(".tve_t_sec .t-digits").empty().append(t(2,Math.floor(l/10))).append(t(1,l%10)),o.find(".tve_t_min .t-digits").empty().append(t(2,Math.floor(s/10))).append(t(1,s%10)),o.find(".tve_t_hour .t-digits").empty().append(t(2,Math.floor(r/10))).append(t(1,r%10));for(var e=o.find(".tve_t_day .t-digits").empty(),i=a,n=1;n<=c;n++)e.append(t(n,i%10)),i=Math.floor(i/10);e.css("min-width","")}(),o.addClass("init_done"),t=setInterval(function(){$(),C(o.find(".tve_t_sec .t-digits"),l),C(o.find(".tve_t_min .t-digits"),s),C(o.find(".tve_t_hour .t-digits"),r),C(o.find(".tve_t_day .t-digits"),a,c),a<=0&&r<=0&&s<=0&&l<=0&&(a=r=s=l=0,clearInterval(t),k())},1e3)),d&&i<=e&&(clearInterval(t),k())})},TVE_jQFn.thrive_iphone_placeholder=function(){if(!0===(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream))return this.each(function(){var t=ThriveGlobal.$j(this),e=t.attr("placeholder");return t.data("tcb-autofill")||"password"===t.attr("type")||"hidden"===this.type||"checkbox"===this.type||"radio"===this.type?this:t.data("iphone-placeholder")?this:(t.attr("placeholder","").val(e),void t.on("focus",function(){t.val()===e&&t.val("")}).on("blur",function(){""===t.val()&&t.val(e)}).data("iphone-placeholder",e))})},"undefined"!=typeof ThriveGlobal&&(TCB_Front.$window=ThriveGlobal.$j(window),TCB_Front.$document=ThriveGlobal.$j(document),TCB_Front.$body=ThriveGlobal.$j("body"),TCB_Front.browser=TCB_Front.detectBrowser(),TCB_Front.$document.ready(function(){setTimeout(function(){var t=ThriveGlobal.$j(tve_frontend_options.is_editor_page?"#tve_editor":"body");if("undefined"!=typeof TVE&&"function"==typeof TVE.apply_filters&&(t=TVE.apply_filters("editor_wrapper",t)),TCB_Front.handleIframes(t,!0),t.on("click",".tve_scT > ul li",function(t){var e=ThriveGlobal.$j(this);e.hasClass("tve_tab_title_item")&&tve_frontend_options.is_editor_page&&!e.closest(".tve-prevent-content-edit").length||e.tcbTabsToggle()}),t.off("click.tvetoggleelemold").on("click.tvetoggleelemold",".thrv_toggle_shortcode .tve_faqB",function(){var t=ThriveGlobal.$j(this).closest(".tve_faq"),e=ThriveGlobal.$j(this),i=ThriveGlobal.$j(e).siblings(".tve_faqC");i.is(":visible")?(TCB_Front.handleIframes(i,!1),i.find("video").each(function(){ThriveGlobal.$j(this)[0].pause()}),i.slideUp("fast",function(){i.trigger("lbresize")}),t.removeClass("tve_oFaq"),t.find(".tve_toggle").first().removeClass("tve_toggle_open"),t.find("h4").first().removeClass("tve_toggle_open_text")):(i.slideDown("fast",function(){i.trigger("lbresize")}),TCB_Front.handleIframes(i,!0),TCB_Front.postGridLayout(),TCB_Front.changeAutoplayVideo(i),t.addClass("tve_oFaq"),t.find(".tve_toggle").first().addClass("tve_toggle_open"),t.find("h4").first().addClass("tve_toggle_open_text"))}).on("click",".thrv_social_custom .tve_s_link",function(){var t=ThriveGlobal.$j(this).parents(".tve_s_item"),e=t.attr("data-s");tve_frontend_options.is_editor_page||TCB_Front.onSocialCustomClick[e]&&TCB_Front.onSocialCustomClick[e](t)}),t.off("click.tvetoggleelem").on("click.tvetoggleelem",".thrv_toggle:not(.toggle-edit-mode) .thrv_toggle_title",function(t){var e=ThriveGlobal.$j(this),i=e.closest(".thrv_toggle");!e.hasClass("tve-state-expanded")&&i.hasClass("tve-toggle-auto-collapse")&&i.find(".thrv_toggle_title").tcbToggle("hide"),e.tcbToggle()}),t.off("change.inputradio").on("change.inputradio",".tve_lg_radio_wrapper input",function(t){var e=ThriveGlobal.$j(this).closest(".tve_lg_radio_wrapper");e.siblings(".tve-state-expanded").removeClass("tve-state-expanded"),e.addClass("tve-state-expanded")}),t.off("change.inputcheckbox").on("change.inputcheckbox",".tve_lg_checkbox_wrapper input",function(t){var e=ThriveGlobal.$j(this);e.closest(".tve_lg_checkbox_wrapper").toggleClass("tve-state-expanded",e.prop("checked"))}),t.off("click.tvetoc").on("click.tvetoc",".tve-toc-expandable .tve-toc-title, .tve-toc-expandable .tve-toc-title *",function(t){var e=ThriveGlobal.$j(this).closest(".tve-toc-title");tve_frontend_options.is_editor_page&&!e.hasClass("tve-prevent-content-edit")||(e.tocToggle(e.hasClass("tve-state-expanded")?"show":"hide"),t.preventDefault(),t.stopPropagation())}),TCB_Front.ImageGallery=i("./util/image-gallery"),!tve_frontend_options.is_editor_page){ThriveGlobal.$j(".tve-lg-dropdown-trigger").each(function(){ThriveGlobal.$j(this).attr("tabindex",-1).removeAttr("href").siblings("input").attr("style","position: absolute; opacity: 0;").attr("autocomplete","off")});function o(){a="",ThriveGlobal.$j(".tve-lg-dropdown-option.tve-state-hover,.tve-dynamic-dropdown-option.tve-state-hover").removeClass("tve-state-hover")}var a="";t.off("mousedown.dropdownclick").on("mousedown.dropdownclick",".tve_lg_dropdown, .tcb-form-dropdown, .tve-dynamic-dropdown",function(t){if(t.stopPropagation(),t.preventDefault(),t.target.classList.contains("tve-lg-dropdown-list"))return!1;var e=ThriveGlobal.$j(this).closest(".tve_lg_dropdown, .tcb-form-dropdown, .tve-dynamic-dropdown");e.toggleClass("tve-state-expanded"),e.find("input").focus()}).off("blur.dropdownblur").on("blur.dropdownblur",".tve_lg_dropdown input, .tcb-form-dropdown input, .tve-dynamic-dropdown input",function(t){t.stopPropagation(),t.preventDefault(),o(),this.closest(".tve_lg_dropdown, .tcb-form-dropdown, .tve-dynamic-dropdown").classList.remove("tve-state-expanded")}).off("keydown.dropdownkeypress").on("keydown.dropdownkeypress",".tve_lg_dropdown input, .tcb-form-dropdown input, .tve-dynamic-dropdown input",function(t){var e=ThriveGlobal.$j(this).closest(".tve_lg_dropdown, .tcb-form-dropdown, .tve-dynamic-dropdown"),i=e.find(".tve-state-active");switch(9!==t.keyCode&&(t.stopPropagation(),t.preventDefault()),t.keyCode){case 13:e.toggleClass("tve-state-expanded"),o();break;case 38:0===i.length?r(e.find(".tve-lg-dropdown-option,.tve-dynamic-dropdown-option").last(),e):i.prev().length&&r(i.prev(),e),o();break;case 40:0===i.length?r(e.find(".tve-lg-dropdown-option,.tve-dynamic-dropdown-option").first(),e):i.next().length&&r(i.next(),e),o();break;case 27:e.removeClass("tve-state-expanded"),o();break;case 8:o();break;default:a+=String.fromCharCode(t.keyCode).toLowerCase(),ThriveGlobal.$j(".tve-lg-dropdown-option.tve-state-hover,.tve-dynamic-dropdown-option.tve-state-hover").removeClass("tve-state-hover");var n=e.find(".tve-lg-dropdown-option,.tve-dynamic-dropdown-option").filter(function(t){return this.dataset.value.toLowerCase().startsWith(a)}).first();if(n.length)ThriveGlobal.$j(".tve-lg-dropdown-list").animate({scrollTop:n.prevAll().length*n.outerHeight()},500),n.addClass("tve-state-hover")}}),t.off("mousedown.dropdownoptionclick").on("mousedown.dropdownoptionclick",".tve-lg-dropdown-option,.tve-dynamic-dropdown-option",function(t){t.stopPropagation(),t.preventDefault();var e=ThriveGlobal.$j(this),i=e.closest(".tve_lg_dropdown, .tcb-form-dropdown, .tve-dynamic-dropdown");r(e,i),i.removeClass("tve-state-expanded")});var r=function(t,e){e.find(".tve-lg-dropdown-trigger").find(".tve-disabled-text-inner").html(t.text()),e.find("input").attr("value",t.attr("data-value")).val(t.attr("data-value")),e.find(".tve-state-active").removeClass("tve-state-active"),t.addClass("tve-state-active"),e.trigger("tcb.dropdown_value_changed")};t.on("click",".thrv_contents_table a",function(t){var e=this;try{var i=ThriveGlobal.$j(this.getAttribute("href"));if(i.length)return ThriveGlobal.$j("html, body").animate({scrollTop:i.offset().top-130},200),setTimeout(function(){location.href=e.getAttribute("href")},200),!1}catch(t){console.warn("ToC exception",t)}}),"undefined"!=typeof TVE_Event_Manager_Registered_Callbacks&&(TCB_Front.event_triggers(t),tve_frontend_options.page_events&&ThriveGlobal.$j.each(tve_frontend_options.page_events,function(t,n){TVE_Event_Manager_Registered_Callbacks[n.a]&&TCB_Front.$document.on("tve-page-event-"+n.t,function(t,e){var i=!0;return"timer"===n.t&&e&&n.config&&n.config.t_delay!==e&&(i=!1),!!i&&TVE_Event_Manager_Registered_Callbacks[n.a].call(document,n.t,n.a,n.config?n.config:{})})})),ThriveGlobal.$j(".tcb-post-list").each(function(){new TCB_Front.PostList(ThriveGlobal.$j(this)).renderPagination()}),TCB_Front.addResizeCallback(TCB_Front.postGridLayout)}ThriveGlobal.$j(".tcb-image-gallery").each(function(){var t=new TCB_Front.ImageGallery(ThriveGlobal.$j(this),!!tve_frontend_options.is_editor_page);tve_frontend_options.is_editor_page||(t.isHorizontalMasonry()&&t.initHorizontalMasonry(),t.hasLightbox()&&t.initLightbox()),t.isCarousel()&&t.initCarousel()}),"undefined"==typeof ThriveApp&&(TCB_Front.pageSectionHeight(),TCB_Front.addResizeCallback(TCB_Front.pageSectionHeight)),TCB_Front.onDOMReady(),TCB_Front.tableSort(ThriveGlobal.$j(".tve_make_sortable tr th")),TCB_Front.woocommerce.Main.init()})})),TVE_jQFn.tve_contact_form=function(){var i="tcb-cf-error";function l(t,e,i){this.default_response={success:!0,data:{errors:["Something went wrong. Please try again later!"]}},this.$form=t,this.config=e,this.isZapier=i,this.validator=new n(this.$form,e),this.fail=function(){TCB_Front.toast(this.default_response.data.errors[0],!0)},this.done=function(t){var e=ThriveGlobal.$j.extend({},this.default_response,t);"function"!=typeof this[this.config.submit.action+"_action"]||this.isZapier||this[this.config.submit.action+"_action"](e),i&&this.notification_action(e),this.$form[0].reset()},this.notification_action=function(t){TCB_Front.toast(!0===t.success?this.config.submit.notification:t.data.errors[0],!t.success,ThriveGlobal.$j.proxy(function(){this.$form.find("button").removeAttr("disabled"),this.$form.find(".tve-form-button").removeClass("tar-disabled"),this.try_close_parent()},this))},this.redirect_action=function(t){if(!0===t.success)return window.location=this.config.submit.url},this.reload_action=function(t){window.location.reload()},this.try_close_parent=function(){this.$form.closest(".tve-leads-conversion-object, .tve_p_lb_inner, .tve-ult-design").find(".tve_ea_thrive_leads_form_close, .tve_ea_close_lightbox, .tve-ult-bar-close").click()}}function r(){var e=[];this.length=0,this.add=function(t){if(!(t.input&&t.input instanceof HTMLElement&&t.error))throw new Error("Invalid item to be pushed into invalid items");e.push(t),this.length++},this.display_errors=function(){e.forEach(function(t){t.input.classList.contains(i)&&t.input.nextSibling.remove(),t.input.classList.add(i);var e=document.createElement("span");e.classList.add(i),e.innerText=t.error,t.input.parentElement.classList.remove("tcb-permanently-hidden"),t.input.parentElement.previousElementSibling.classList.remove("tcb-permanently-hidden"),ThriveGlobal.$j(t.input).after(e)})}}function n(e,t){var n=ThriveGlobal.$j.extend({},t.error_messages||{}),o=new r;function a(t){return"required"===t.getAttribute("required")}this.validate_text_field=function(t){var e=!0,i=t.value.trim();return a(t)&&i.length<=0&&(e=!1,o.add({input:t,error:n.required})),e},this.validate_email_field=function(t){var e=!0,i=t.value.trim();return a(t)&&i.length<=0&&(e=!1,o.add({input:t,error:n.required})),e&&0<i.length&&!function(t){return tve_is_email(t)}(i)&&(e=!1,o.add({input:t,error:n.email})),e},this.validate_textarea_field=function(t){var e=!0,i=t.value.trim();return"g-recaptcha-response"===t.name?this.validate_recaptcha(t):(a(t)&&i.length<=0&&(e=!1,o.add({input:t,error:n.required})),e)},this.validate_recaptcha=function(t){var e=!0;return t.value.trim().length<=0&&(e=!1,o.add({input:t,error:n.required})),e},this.validate_tel_field=function(t){var e=!0,i=t.value.trim();return a(t)&&i.length<=0&&(e=!1,o.add({input:t,error:n.required})),e&&0<i.length&&!function(t){return t.match(/^[+]?[0-9\(\)/ -]*$/)&&t.length<=15}(i)&&(e=!1,o.add({input:t,error:n.phone})),e},this.validate_url_field=function(t){var e=!0,i=t.value.trim();return a(t)&&i.length<=0&&(e=!1,o.add({input:t,error:n.required})),e&&0<i.length&&!function(t){return!!(t=tve_add_http(t)).match(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&=]*)/g)}(i)&&(e=!1,o.add({input:t,error:n.url})),e},this.validation_exists=function(t){return"function"==typeof this[t]},this.is_field_valid=function(t){var e=!0,i="validate_"+t.type+"_field";if(this.validation_exists(i))try{e=this[i](t)}catch(t){console.error(t),e=!1}return e},this.is_valid=function(){var t=this;return e.find("input, select, textarea").each(function(){t.is_field_valid(this)}),0===o.length},this.display_errors=function(){o.display_errors()}}function t(t){t.stopPropagation(),t.preventDefault();var e=ThriveGlobal.$j(this),i=e.find('input[name="config"]').val();if(!i)return!1;var n=function(t){return tve_unserialize(TCB_Front.Base64.decode(t))}(i),o=e.find("#__tcb_cf_conn"),a=new l(e,n,o.length&&"zapier"===TCB_Front.Base64.decode(o.val()));try{if(!a.validator.is_valid())return console.log("form invalid"),a.validator.display_errors(),!1;console.log("valid form; continue by sending ajax")}catch(t){console.error(t)}e.find("button").attr("disabled","disabled"),e.find(".tve-form-button").addClass("tar-disabled");var r=e.serializeArray(),s="object"===("undefined"==typeof tve_frontend_options?"undefined":_typeof(tve_frontend_options))?tve_frontend_options.post_id:0;return r.push({name:"action",value:"tve_cf_submit"}),r.push({name:"post_id",value:s}),r.push({name:"security",value:JSON.stringify({check:1,has_recaptcha:e.find(".g-recaptcha").length})}),ThriveGlobal.$j.ajax({type:"post",xhrFields:{withCredentials:!0},url:tve_frontend_options.ajaxurl,data:r}).fail(ThriveGlobal.$j.proxy(a.fail,a)).done(ThriveGlobal.$j.proxy(a.done,a)),!0}function o(t){var e=t.currentTarget;e.classList.contains(i)&&(e.nextSibling.remove(),e.classList.remove(i))}function a(){this.placeholder=""}function s(){this.placeholder=this.getAttribute("data-placeholder")}return this.each(function(){!function(e){if(e.is("form")){e.find(".tve-cf-submit .thrv_icon").click(function(){e.find("button").trigger("click")}),e.find(".tve-form-button .tve-form-button-submit").click(function(t){return t.preventDefault(),t.stopPropagation(),e.submit(),!1}),e.off("submit").on("submit",t);e.find(['input[type="text"]','input[type="email"]','input[type="tel"]','input[type="url"]',"textarea"].join(",")).on("input",o).on("focus",a).on("blur",s)}}(ThriveGlobal.$j(this).find("form").first())})},window.tve_add_http=function(t){return!(t=t.trim())||0===t.indexOf("#")||/^mailto/.test(t)||/^tel/.test(t)||/^(?:f|ht)tps?\:\/\//.test(t)||(t="http://"+t),t},window.tve_is_email=function(t){return/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(t).toLowerCase())},window.tve_unserialize=function(t){function r(t){for(var e=t.length,i=t.length-1;0<=i;i--){var n=t.charCodeAt(i);127<n&&n<=2047?e++:2047<n&&n<=65535&&(e+=2),56320<=n&&n<=57343&&i--}return e-1}var o="undefined"!=typeof window?window:global,C=function(t,e,i,n){throw new o[t](e,i,n)},k=function(t,e,i){for(var n=2,o=[],a=t.slice(e,e+1);a!==i;)n+e>t.length&&C("Error","Invalid"),o.push(a),a=t.slice(e+(n-1),e+n),n+=1;return[o.length,o.join("")]},$=function(t,e,i){var n,o,a=[];for(n=0;n<i;n++)o=t.slice(e+(n-1),e+n),a.push(o),i-=r(o);return[a.length,a.join("")]};return function t(e,i){var n,o,a,r,s,l,c,d,h,u,p,f,v,g,m,_,b,y,w=0,T=function(t){return t};switch(o=(i=i||0)+2,n=e.slice(i,i+1).toLowerCase()){case"i":T=function(t){return parseInt(t,10)},w=(h=k(e,o,";"))[0],d=h[1],o+=w+1;break;case"b":T=function(t){return 0!==parseInt(t,10)},w=(h=k(e,o,";"))[0],d=h[1],o+=w+1;break;case"d":T=function(t){return parseFloat(t)},w=(h=k(e,o,";"))[0],d=h[1],o+=w+1;break;case"n":d=null;break;case"s":w=(u=k(e,o,":"))[0],p=u[1],w=(h=$(e,(o+=w+2)+1,parseInt(p,10)))[0],d=h[1],o+=w+2,w!==parseInt(p,10)&&w!==d.length&&C("SyntaxError","String length mismatch");break;case"a":for(d={},w=(a=k(e,o,":"))[0],r=a[1],o+=w+2,l=parseInt(r,10),s=!0,f=0;f<l;f++)m=(g=t(e,o))[1],v=g[2],b=(_=t(e,o+=m))[1],y=_[2],o+=b,v!==f&&(s=!1),d[v]=y;if(s){for(c=new Array(l),f=0;f<l;f++)c[f]=d[f];d=c}o+=1;break;default:C("SyntaxError","Unknown / Unhandled data type(s): "+n)}return[n,o-i,T(d)]}(t+"",0)[2]},TCB_Front.Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(t){var e,i,n,o,a,r,s,l="",c=0;for(t=this._utf8_encode(t);c<t.length;)o=(e=t.charCodeAt(c++))>>2,a=(3&e)<<4|(i=t.charCodeAt(c++))>>4,r=(15&i)<<2|(n=t.charCodeAt(c++))>>6,s=63&n,isNaN(i)?r=s=64:isNaN(n)&&(s=64),l=l+this._keyStr.charAt(o)+this._keyStr.charAt(a)+this._keyStr.charAt(r)+this._keyStr.charAt(s);return l},decode:function(t){var e,i,n,o,a,r,s="",l=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");l<t.length;)e=this._keyStr.indexOf(t.charAt(l++))<<2|(o=this._keyStr.indexOf(t.charAt(l++)))>>4,i=(15&o)<<4|(a=this._keyStr.indexOf(t.charAt(l++)))>>2,n=(3&a)<<6|(r=this._keyStr.indexOf(t.charAt(l++))),s+=String.fromCharCode(e),64!=a&&(s+=String.fromCharCode(i)),64!=r&&(s+=String.fromCharCode(n));return s=this._utf8_decode(s)},_utf8_encode:function(t){t=t.replace(/\r\n/g,"\n");for(var e="",i=0;i<t.length;i++){var n=t.charCodeAt(i);n<128?e+=String.fromCharCode(n):(127<n&&n<2048?e+=String.fromCharCode(n>>6|192):(e+=String.fromCharCode(n>>12|224),e+=String.fromCharCode(n>>6&63|128)),e+=String.fromCharCode(63&n|128))}return e},_utf8_decode:function(t){for(var e="",i=0,n=0,o=0,a=0;i<t.length;)(n=t.charCodeAt(i))<128?(e+=String.fromCharCode(n),i++):191<n&&n<224?(o=t.charCodeAt(i+1),e+=String.fromCharCode((31&n)<<6|63&o),i+=2):(o=t.charCodeAt(i+1),a=t.charCodeAt(i+2),e+=String.fromCharCode((15&n)<<12|(63&o)<<6|63&a),i+=3);return e}},i("./typed"),i("./util/jumplink"),i("./util/jquery-plugins"),i("./elements/login")},"typed.js":function(t,e,i){!function(l){"use strict";function o(t,e){this.el=l(t),this.options=l.extend({},l.fn.typed.defaults,e),this.isInput=this.el.is("input"),this.attr=this.options.attr,this.showCursor=!this.isInput&&this.options.showCursor,this.elContent=this.attr?this.el.attr(this.attr):this.el.text(),this.contentType=this.options.contentType,this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.stringsElement=this.options.stringsElement,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.cursorChar=this.options.cursorChar,this.shuffle=this.options.shuffle,this.sequence=[],this.build()}o.prototype={constructor:o,init:function(e){void 0===e&&(e="delete");var i=this;function t(){for(var t=0;t<i.strings.length;++t)i.sequence[t]=t;i.shuffle&&(i.sequence=i.shuffleArray(i.sequence)),"delete"===e?(i.strPos=i.strings[i.sequence[i.arrayPos]].length,i.options.highlightClass?i.highlight(i.strings[i.sequence[i.arrayPos]],i.strPos):i.backspace(i.strings[i.sequence[i.arrayPos]],i.strPos)):(i.strPos=0,i.typewrite(i.strings[i.sequence[i.arrayPos]],i.strPos))}"delete"===e?i.timeout=setTimeout(t,i.startDelay):t()},build:function(){var i=this;if(!0===this.showCursor&&(this.cursor=l('<span class="typed-cursor">'+this.cursorChar+"</span>"),this.el.after(this.cursor)),this.stringsElement){i.strings=[],this.stringsElement.hide();var t=this.stringsElement.find("p");l.each(t,function(t,e){i.strings.push(l(e).html())})}this.init()},typewrite:function(a,r){if(!0!==this.stop){var t=this.typeSpeed,s=this;l(this.el);s.timeout=setTimeout(function(){var t=0,e=a.substr(r);if("^"===e.charAt(0)){var i=1;/^\^\d+/.test(e)&&(i+=(e=/\d+/.exec(e)[0]).length,t=parseInt(e)),a=a.substring(0,r)+a.substring(r+i)}if("html"===s.contentType){var n=a.substr(r).charAt(0);if("<"===n||"&"===n){var o="";for(o="<"===n?">":";";a.substr(r).charAt(0)!==o;)a.substr(r).charAt(0),r++;r++,o}}s.timeout=setTimeout(function(){if(r===a.length){if(s.options.onStringTyped(s.arrayPos),s.arrayPos===s.strings.length-1&&(s.options.callback(),s.curLoop++,!1===s.loop||s.curLoop===s.loopCount))return;s.timeout=setTimeout(function(){s.options.highlightClass?s.highlight(a,r):s.backspace(a,r)},s.backDelay)}else{0===r&&s.options.preStringTyped(s.arrayPos);var t=a.substr(0,r+1);s.attr?s.el.attr(s.attr,t):s.isInput?s.el.val(t):"html"===s.contentType?s.el.html(t):s.el.text(t),r++,s.typewrite(a,r)}},t)},t)}},highlight:function(i,n){if(!0!==this.stop){var t=this.backSpeed,o=this;l(o.el),l("<span/>");o.timeout=setTimeout(function(){if("html"===o.contentType&&">"===i.substr(n).charAt(0)){for(;"<"!==i.substr(n).charAt(0);)i.substr(n).charAt(0),n--;n--,"<"}var t=i.substr(0,n),e=i.substr(n);o.attr?o.el.attr(o.attr,t):o.el.html(t+'<span class="'+o.options.highlightClass+'" style="'+(o.options.highlightStyle||"")+'">'+e+"</span>"),n>o.stopNum?(n--,o.highlight(i,n)):n<=o.stopNum&&setTimeout(function(){o.arrayPos++,o.arrayPos===o.strings.length?(o.arrayPos=0,o.init("write")):o.typewrite(o.strings[o.sequence[o.arrayPos]],n)},200)},t)}},backspace:function(e,i){if(!0!==this.stop){var t=this.backSpeed,n=this,o=l(n.el);n.timeout=setTimeout(function(){if("html"===n.contentType&&">"===e.substr(i).charAt(0)){for(;"<"!==e.substr(i).charAt(0);)e.substr(i).charAt(0),i--;i--,"<"}var t=e.substr(0,i);n.attr?n.el.attr(n.attr,t):n.isInput?n.el.val(t):"html"===n.contentType?n.el.html(t):n.el.text(t),i>n.stopNum?(i--,n.backspace(e,i)):i<=n.stopNum&&(n.arrayPos++,n.arrayPos===n.strings.length?(n.arrayPos=0,n.shuffle&&(n.sequence=n.shuffleArray(n.sequence)),n.init("write")):n.typewrite(n.strings[n.sequence[n.arrayPos]],i),n.options.highlightClass&&o.is("."+n.options.highlightClass)&&o.removeClass(n.options.highlightClass))},t)}},shuffleArray:function(t){var e,i,n=t.length;if(n)for(;--n;)e=t[i=Math.floor(Math.random()*(n+1))],t[i]=t[n],t[n]=e;return t},pause:function(){this.stop=!0,clearInterval(this.timeout)},start:function(){!1!==this.stop&&(this.stop=!1,this.init())},reset:function(){clearInterval(this.timeout);var t=this.el.attr("id");this.el.after('<span id="'+t+'"/>'),this.el.remove(),void 0!==this.cursor&&this.cursor.remove(),this.options.resetCallback()}},l.fn.typed=function(n){return this.each(function(){var t=l(this),e=t.data("typed"),i="object"==_typeof(n)&&n;e||t.data("typed",e=new o(this,i)),"string"==typeof n&&e[n]()})},l.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:!1,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:"html",callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window.jQuery)},util:{"compat.js":function(t,e,i){function n(t){if(!this.dataset.href)return!0;if("_blank"===this.dataset.target)window.open(this.dataset.href,"_blank","noopener");else{var e;if(this.dataset.hash)try{e=o(this.dataset.hash)}catch(t){}e&&e.length?TCB_Front.jumpScrollTo(e,this):location.href=this.dataset.href}return!1}var o;o=ThriveGlobal.$j,e.exports=function(t){tve_frontend_options.is_editor_page||(function(t){t.find(".thrv_wrapper > div[data-clip-id]").parent().addClass("safari-ios-decoration-fix")}(t),function(t){t.find("a > .tcb-col, a > .thrv-content-box").each(function(){var t=this.parentNode;o(this).unwrap().css("cursor","pointer").off("click.tcb-block").on("click.tcb-block",n).toggleClass("tve-jump-scroll",t.classList.contains("tve-jump-scroll")).attr({"data-href":t.href,"data-hash":t.hash,"jump-animation":t.getAttribute("jump-animation"),"data-target":t.getAttribute("target")||""})})}(t))}},"divider.js":function(t,e,i){var n,o,a;n=ThriveGlobal.$j,o=TCB_Front,a={init:function(){o.addResizeCallback(this.customDividerStyle.bind(this,!!tve_frontend_options.is_editor_page)),this.customDividerStyle()},customDividerStyle:function(){n(".thrv-divider").each(function(){var t=n(this),e=t.find("hr");1023<TCB_Front.windowWidth()?a.removeOldClass(e).addClass(o.getMediaAttr(t,"data-style","desktop")):767<TCB_Front.windowWidth()?a.removeOldClass(e).addClass(o.getMediaAttr(t,"data-style","tablet")):a.removeOldClass(e).addClass(o.getMediaAttr(t,"data-style","mobile"))})},removeOldClass:function(t){return t.removeClass(function(t,e){return(e.match(/(^|\s)tve_sep-\S+/g)||[]).join(" ")}),t}},e.exports=a},"dynamic-elements.js":function(t,e,i){var s,l,d;s=ThriveGlobal.$j,l=TCB_Front,d={init:function(){var t=!!tve_frontend_options.is_editor_page;s("[data-tar-shortcode-attr]").each(function(){var t=this.getAttribute("data-tar-shortcode-attr");try{var e=JSON.parse(t);for(var i in e)this.setAttribute(e[i].prop,e[i].value);this.removeAttribute("data-tar-shortcode-attr")}catch(t){}}),this.updateStarRating(t),this.updatePrograssBar(t),this.updateFillCounter(t),this.countdownTimer(t),this.hidePlaceholderElements(t),this.updateAnimations(t),this.updateVideos(t),this.lazyLoadPlaceholders(t),this.hideEmptyLinks(t)},updateStarRating:function(t){s(".tcb-custom-field-source.thrv-rating").each(function(){var t=s(this);t.html(d.getStarHtml(t))})},getStarHtml:function(t){t=t[0];for(var e=parseFloat(t.dataset.max),i=parseFloat(t.dataset.value)>e?e:d.getClosestRating(t.dataset.value,e),n=t.dataset.style,o="",a=this.templates[n].viewbox||"-6 -6 70 70",r=Math.floor(i),s=Math.round(i-r),l=1;l<=e;l++){var c="full";r<l&&l<=r+s?c="half":r+s<l&&(c="empty"),o+='<svg viewBox="'+a+'" class="">'+d.templates[n][c]+"</svg>"}return o},getClosestRating:function(t,e){var i=0;t=parseFloat(t);for(var n=0;n<=e&&n<=t;n+=.5)i=n;return i},templates:{style1:{empty:'<path class="sr-background" fill="transparent" d="M46.976,57.227c-0.422,0-0.834-0.104-1.228-0.312l-13.167-6.921c-0.663-0.349-1.409-0.533-2.158-0.533s-1.495,0.185-2.158,0.533L15.1,56.915c-0.393,0.208-0.807,0.312-1.229,0.312c-0.765,0-1.524-0.358-2.03-0.958c-0.501-0.595-0.703-1.353-0.569-2.134l2.515-14.661c0.258-1.505-0.241-3.039-1.334-4.105L1.8,24.985c-0.736-0.717-0.985-1.728-0.668-2.704c0.318-0.977,1.114-1.649,2.13-1.796l14.72-2.139c1.512-0.22,2.817-1.168,3.493-2.537L28.059,2.47C28.513,1.55,29.396,1,30.423,1c1.027,0,1.911,0.55,2.365,1.471l6.584,13.339c0.676,1.369,1.98,2.317,3.492,2.537l14.721,2.139c1.016,0.147,1.813,0.819,2.129,1.795c0.317,0.977,0.068,1.988-0.668,2.705L48.394,35.369c-1.092,1.065-1.59,2.6-1.334,4.105l2.516,14.661c0.134,0.781-0.068,1.539-0.569,2.134C48.5,56.869,47.743,57.227,46.976,57.227"/><path class="sr-outline" fill="#fbb040" d="M30.424,2c0.307,0,1.063,0.089,1.471,0.913l6.582,13.339c0.82,1.664,2.408,2.817,4.246,3.084l14.719,2.139c0.91,0.132,1.229,0.824,1.324,1.115c0.094,0.291,0.242,1.038-0.416,1.679L47.697,34.652c-1.328,1.295-1.934,3.16-1.621,4.99l2.516,14.662c0.105,0.622-0.131,1.061-0.35,1.318c-0.318,0.378-0.791,0.604-1.264,0.604c-0.26,0-0.518-0.066-0.764-0.197l-13.166-6.922c-0.807-0.422-1.715-0.646-2.625-0.646s-1.816,0.225-2.623,0.646l-13.166,6.922c-0.248,0.131-0.504,0.197-0.764,0.197c-0.473,0-0.947-0.226-1.266-0.604c-0.217-0.258-0.455-0.696-0.348-1.318l2.516-14.662c0.313-1.83-0.293-3.695-1.623-4.99L2.498,24.269c-0.656-0.641-0.508-1.388-0.414-1.679c0.096-0.291,0.414-0.983,1.322-1.115l14.721-2.139c1.838-0.267,3.424-1.42,4.246-3.084l6.582-13.339C29.363,2.089,30.117,2,30.424,2 M30.424,0c-1.297,0-2.594,0.676-3.262,2.027l-6.584,13.339c-0.529,1.074-1.553,1.819-2.738,1.99l-14.721,2.14c-2.984,0.434-4.176,4.101-2.016,6.205l10.65,10.383c0.859,0.836,1.25,2.04,1.047,3.221l-2.514,14.66c-0.404,2.352,1.465,4.262,3.584,4.262c0.561,0,1.137-0.134,1.695-0.426l13.166-6.923c0.529-0.278,1.111-0.417,1.691-0.417c0.582,0,1.164,0.139,1.693,0.417l13.166,6.923c0.559,0.293,1.135,0.426,1.695,0.426c2.119,0,3.986-1.91,3.584-4.262l-2.516-14.66c-0.201-1.181,0.189-2.385,1.047-3.221l10.652-10.383c2.158-2.104,0.967-5.771-2.016-6.205l-14.723-2.14c-1.184-0.171-2.209-0.916-2.738-1.99L33.688,2.027C33.02,0.676,31.723,0,30.424,0"/>',half:'<path class="sr-background" fill="transparent" d="M46.976,57.227c-0.422,0-0.834-0.104-1.228-0.312l-13.167-6.921c-0.663-0.349-1.409-0.533-2.158-0.533s-1.495,0.185-2.158,0.533L15.1,56.915c-0.393,0.208-0.807,0.312-1.229,0.312c-0.765,0-1.524-0.358-2.03-0.958c-0.501-0.595-0.703-1.353-0.569-2.134l2.515-14.661c0.258-1.505-0.241-3.039-1.334-4.105L1.8,24.985c-0.736-0.717-0.985-1.728-0.668-2.704c0.318-0.977,1.114-1.649,2.13-1.796l14.72-2.139c1.512-0.22,2.817-1.168,3.493-2.537L28.059,2.47C28.513,1.55,29.396,1,30.423,1c1.027,0,1.911,0.55,2.365,1.471l6.584,13.339c0.676,1.369,1.98,2.317,3.492,2.537l14.721,2.139c1.016,0.147,1.813,0.819,2.129,1.795c0.317,0.977,0.068,1.988-0.668,2.705L48.394,35.369c-1.092,1.065-1.59,2.6-1.334,4.105l2.516,14.661c0.134,0.781-0.068,1.539-0.569,2.134C48.5,56.869,47.743,57.227,46.976,57.227"/><path class="sr-fill" fill="#F0C419" d="M28.731,50.878l-13.166,6.923c-2.67,1.402-5.789-0.863-5.279-3.836l2.517-14.66c0.201-1.181-0.188-2.385-1.047-3.221L1.104,25.701c-2.16-2.104-0.968-5.771,2.016-6.205l14.721-2.139c1.186-0.172,2.209-0.917,2.74-1.991l6.582-13.339C27.829,0.676,29.126,0,30.423,0l0.002,50.461C29.843,50.46,29.261,50.6,28.731,50.878"/><path class="sr-outline" fill="#FBB040" d="M30.423,2c0.307,0,1.063,0.089,1.471,0.913l6.582,13.339c0.822,1.664,2.408,2.817,4.246,3.084l14.721,2.139c0.908,0.132,1.228,0.824,1.322,1.115c0.094,0.291,0.242,1.038-0.414,1.679L47.698,34.652c-1.33,1.295-1.936,3.16-1.623,4.99l2.517,14.662c0.106,0.622-0.131,1.061-0.349,1.318c-0.319,0.378-0.793,0.604-1.266,0.604c-0.26,0-0.516-0.066-0.764-0.197l-13.166-6.922c-0.807-0.422-1.713-0.646-2.625-0.646c-0.908,0-1.816,0.225-2.623,0.646l-13.166,6.922c-0.248,0.131-0.504,0.197-0.764,0.197c-0.473,0-0.947-0.226-1.264-0.604c-0.22-0.258-0.455-0.696-0.351-1.318l2.517-14.662c0.313-1.83-0.293-3.695-1.621-4.99L2.499,24.269c-0.658-0.641-0.51-1.388-0.416-1.679c0.096-0.291,0.414-0.983,1.322-1.115l14.721-2.139c1.838-0.267,3.424-1.42,4.246-3.084l6.582-13.339C29.362,2.089,30.118,2,30.423,2 M30.423,0c-1.297,0-2.594,0.676-3.262,2.027l-6.582,13.339c-0.531,1.074-1.555,1.819-2.74,1.99l-14.721,2.14c-2.984,0.434-4.174,4.101-2.016,6.205l10.651,10.383c0.856,0.836,1.248,2.04,1.045,3.221l-2.515,14.66c-0.403,2.352,1.466,4.262,3.584,4.262c0.562,0,1.138-0.134,1.695-0.426l13.166-6.923c0.529-0.278,1.109-0.417,1.691-0.417s1.164,0.139,1.693,0.417l13.166,6.923c0.559,0.293,1.135,0.426,1.694,0.426c2.119,0,3.988-1.91,3.584-4.262l-2.514-14.66c-0.203-1.181,0.188-2.385,1.045-3.221l10.651-10.383c2.16-2.104,0.97-5.771-2.016-6.205l-14.721-2.14c-1.186-0.171-2.211-0.916-2.738-1.99L33.683,2.027C33.019,0.676,31.722,0,30.423,0"/>',full:'<path class="sr-fill" fill="#F0C419" d="M46.976,57.227c-0.422,0-0.834-0.104-1.228-0.312l-13.167-6.921c-0.663-0.349-1.409-0.533-2.158-0.533s-1.495,0.185-2.158,0.533L15.1,56.915c-0.393,0.208-0.807,0.312-1.229,0.312c-0.765,0-1.524-0.358-2.03-0.958c-0.501-0.595-0.703-1.353-0.569-2.134l2.515-14.661c0.258-1.505-0.241-3.039-1.334-4.105L1.8,24.985c-0.736-0.717-0.985-1.728-0.668-2.704c0.318-0.977,1.114-1.649,2.13-1.796l14.72-2.139c1.512-0.22,2.817-1.168,3.493-2.537L28.059,2.47C28.513,1.55,29.396,1,30.423,1c1.027,0,1.911,0.55,2.365,1.471l6.584,13.339c0.676,1.369,1.98,2.317,3.492,2.537l14.721,2.139c1.016,0.147,1.813,0.819,2.129,1.795c0.317,0.977,0.068,1.988-0.668,2.705L48.394,35.369c-1.092,1.065-1.59,2.6-1.334,4.105l2.516,14.661c0.134,0.781-0.068,1.539-0.569,2.134C48.5,56.869,47.743,57.227,46.976,57.227"/><path class="sr-outline" fill="#FBB040" d="M30.423,2c0.306,0,1.063,0.089,1.469,0.913l6.584,13.339c0.821,1.664,2.407,2.817,4.244,3.084l14.721,2.139c0.91,0.132,1.228,0.824,1.322,1.115c0.096,0.291,0.243,1.038-0.414,1.679L47.697,34.652c-1.329,1.295-1.936,3.161-1.621,4.991l2.515,14.661c0.106,0.623-0.131,1.061-0.349,1.319c-0.318,0.378-0.791,0.604-1.266,0.604c-0.259,0-0.515-0.067-0.763-0.197l-13.166-6.922c-0.806-0.423-1.713-0.647-2.624-0.647c-0.911,0-1.818,0.224-2.624,0.647L14.633,56.03c-0.248,0.13-0.504,0.197-0.763,0.197c-0.474,0-0.948-0.226-1.266-0.604c-0.218-0.258-0.454-0.696-0.348-1.319l2.515-14.661c0.314-1.83-0.292-3.696-1.621-4.991L2.5,24.269c-0.659-0.641-0.51-1.388-0.415-1.679c0.095-0.291,0.413-0.983,1.322-1.115l14.721-2.139c1.837-0.267,3.423-1.42,4.245-3.084l6.583-13.339C29.361,2.089,30.118,2,30.423,2 M30.423,0c-1.297,0-2.595,0.676-3.262,2.027l-6.584,13.339c-0.53,1.074-1.554,1.819-2.739,1.99l-14.72,2.14c-2.984,0.434-4.175,4.101-2.016,6.205l10.652,10.383c0.857,0.836,1.248,2.04,1.045,3.221l-2.514,14.66c-0.403,2.351,1.465,4.262,3.585,4.262c0.559,0,1.136-0.134,1.694-0.426l13.166-6.923c0.53-0.278,1.111-0.417,1.693-0.417s1.163,0.139,1.693,0.417l13.166,6.923c0.558,0.293,1.135,0.426,1.693,0.426c2.121,0,3.988-1.911,3.586-4.262l-2.515-14.66c-0.202-1.181,0.188-2.385,1.045-3.221l10.652-10.383c2.159-2.104,0.968-5.771-2.017-6.205l-14.72-2.14c-1.185-0.171-2.21-0.916-2.739-1.99L33.687,2.027C33.019,0.676,31.72,0,30.423,0"/>'},style2:{viewbox:"-4 -4 60 60",empty:'<path class="sr-outline" fill="#D3DADF" d="M27.999,2.318l5.307,15.909c0.52,1.562,1.977,2.621,3.623,2.633l16.77,0.13l-13.49,9.962c-1.324,0.979-1.881,2.691-1.385,4.261l5.059,15.988L30.239,41.45c-0.658-0.471-1.432-0.719-2.24-0.719s-1.584,0.248-2.24,0.719l-13.643,9.751l5.059-15.988c0.496-1.569-0.061-3.282-1.385-4.261L2.3,20.99l16.77-0.13c1.646-0.012,3.104-1.071,3.623-2.633L27.999,2.318 M27.999,0c-0.738,0-1.477,0.422-1.758,1.266l-5.445,16.328c-0.25,0.751-0.951,1.26-1.742,1.266L1.843,18.993c-1.781,0.015-2.52,2.285-1.086,3.343l13.846,10.226c0.637,0.469,0.904,1.293,0.666,2.047l-5.193,16.412c-0.41,1.295,0.619,2.418,1.773,2.418c0.357,0,0.727-0.107,1.07-0.353l14.004-10.009c0.32-0.23,0.699-0.346,1.076-0.346s0.756,0.115,1.076,0.346l14.004,10.009c0.344,0.245,0.713,0.353,1.07,0.353c1.154,0,2.182-1.125,1.773-2.418l-5.193-16.412c-0.238-0.754,0.029-1.578,0.666-2.047l13.846-10.226c1.434-1.058,0.695-3.328-1.086-3.343L36.944,18.86c-0.791-0.006-1.492-0.515-1.742-1.266L29.757,1.266C29.476,0.422,28.737,0,27.999,0"/><path class="sr-background" fill="transparent" d="M17.178,35.213L12.12,51.202l13.644-9.752c0.656-0.47,1.432-0.719,2.239-0.719\tc0.809,0,1.583,0.249,2.24,0.719l13.644,9.752l-5.059-15.988c-0.497-1.57,0.06-3.282,1.384-4.262l13.49-9.961L36.933,20.86\tc-1.647-0.012-3.104-1.07-3.624-2.633L28.002,2.318l-5.306,15.909c-0.521,1.563-1.977,2.621-3.624,2.633L2.304,20.991l13.489,9.961\tC17.119,31.931,17.675,33.643,17.178,35.213z"/>',half:'<path class="sr-outline" fill="#D3DADF" d="M27.999,2.318l5.307,15.909c0.52,1.562,1.977,2.621,3.623,2.633l16.77,0.13l-13.49,9.962c-1.324,0.979-1.881,2.691-1.385,4.261l5.059,15.988L30.239,41.45c-0.658-0.471-1.432-0.719-2.24-0.719s-1.584,0.248-2.24,0.719l-13.643,9.751l5.059-15.988c0.496-1.569-0.061-3.282-1.385-4.261L2.3,20.99l16.77-0.13c1.646-0.012,3.104-1.071,3.623-2.633L27.999,2.318 M27.999,0c-0.738,0-1.477,0.422-1.758,1.266l-5.445,16.328c-0.25,0.751-0.951,1.26-1.742,1.266L1.843,18.993c-1.781,0.015-2.52,2.285-1.086,3.343l13.846,10.226c0.637,0.469,0.904,1.293,0.666,2.047l-5.193,16.412c-0.41,1.295,0.619,2.418,1.773,2.418c0.357,0,0.727-0.107,1.07-0.353l14.004-10.009c0.32-0.23,0.699-0.346,1.076-0.346s0.756,0.115,1.076,0.346l14.004,10.009c0.344,0.245,0.713,0.353,1.07,0.353c1.154,0,2.182-1.125,1.773-2.418l-5.193-16.412c-0.238-0.754,0.029-1.578,0.666-2.047l13.846-10.226c1.434-1.058,0.695-3.328-1.086-3.343L36.944,18.86c-0.791-0.006-1.492-0.515-1.742-1.266L29.757,1.266C29.476,0.422,28.737,0,27.999,0"/><path class="sr-background" fill="transparent" d="M17.178,35.213L12.12,51.202l13.644-9.752c0.656-0.47,1.432-0.719,2.239-0.719\tc0.809,0,1.583,0.249,2.24,0.719l13.644,9.752l-5.059-15.988c-0.497-1.57,0.06-3.282,1.384-4.262l13.49-9.961L36.933,20.86\tc-1.647-0.012-3.104-1.07-3.624-2.633L28.002,2.318l-5.306,15.909c-0.521,1.563-1.977,2.621-3.624,2.633L2.304,20.991l13.489,9.961\tC17.119,31.931,17.675,33.643,17.178,35.213z"/><path class="sr-fill" fill="#EFC319" d="M26.242,1.265l-5.445,16.329c-0.251,0.751-0.951,1.26-1.743,1.266L1.841,18.993c-1.78,0.015-2.518,2.285-1.086,3.343l13.846,10.225c0.638,0.471,0.905,1.293,0.666,2.049l-5.191,16.41c-0.537,1.697,1.395,3.102,2.844,2.066l14.002-10.009c0.32-0.229,0.694-0.343,1.069-0.345V0C27.255,0.003,26.522,0.424,26.242,1.265z"/>',full:'<path class="sr-fill" fill="#EFC319" d="M26.921,43.078L12.919,53.086c-1.449,1.035-3.381-0.369-2.844-2.066l5.191-16.41c0.239-0.756-0.028-1.578-0.666-2.049L0.755,22.336c-1.432-1.058-0.694-3.328,1.086-3.343l17.212-0.133c0.792-0.006,1.492-0.515,1.743-1.266l5.445-16.329c0.563-1.688,2.95-1.688,3.514,0l5.446,16.329c0.251,0.751,0.95,1.26,1.742,1.266l17.212,0.133c1.78,0.015,2.518,2.285,1.087,3.343L41.396,32.561c-0.638,0.471-0.904,1.293-0.666,2.049l5.191,16.41c0.538,1.697-1.396,3.102-2.843,2.066L29.076,43.078C28.431,42.617,27.566,42.617,26.921,43.078"/>'},style3:{viewbox:"-6 -6 80 80",empty:'<path class="def-shadow" fill="#B9C1C5" d="M14.874,40.174c0.101-0.583-0.094-1.178-0.518-1.591L0.544,25.12\tc-0.121-0.118-0.214-0.248-0.293-0.382c-0.308,0.541-0.339,1.225,0,1.798c-0.308,0.54-0.339,1.224,0,1.797\tc-0.38,0.667-0.344,1.559,0.293,2.18l13.696,13.35L14.874,40.174z"/><path class="def-shadow" fill="#B9C1C5" d="M50.038,61.079l-17.071-8.976c-0.524-0.275-1.149-0.275-1.674,0l-17.071,8.976\tc-0.98,0.514-2.079,0.027-2.478-0.858l-0.13,0.76c-0.065,0.378-0.008,0.73,0.13,1.038l-0.13,0.76\tc-0.065,0.377-0.008,0.73,0.13,1.037l-0.13,0.76c-0.252,1.469,1.289,2.589,2.608,1.896l17.071-8.976\tc0.524-0.275,1.149-0.275,1.674,0l17.071,8.976c1.318,0.693,2.86-0.427,2.608-1.896l-0.13-0.76c0.138-0.307,0.195-0.659,0.13-1.037\tl-0.13-0.761c0.138-0.307,0.195-0.659,0.13-1.037l-0.13-0.761C52.116,61.106,51.017,61.593,50.038,61.079z"/><path class="def-shadow" fill="#B9C1C5" d="M64.008,24.738c-0.079,0.134-0.172,0.264-0.293,0.382L49.903,38.583\tc-0.424,0.413-0.617,1.008-0.517,1.591l0.632,3.688l13.696-13.349c0.637-0.621,0.673-1.513,0.293-2.18\tc0.339-0.573,0.308-1.257,0-1.797C64.347,25.962,64.316,25.278,64.008,24.738z"/><path class="sr-background" fill="#D3DADF" d="M49.386,40.174c-0.101-0.583,0.093-1.178,0.517-1.591L63.714,25.12\tc0.121-0.118,0.214-0.248,0.293-0.382c0.622-1.05,0.017-2.495-1.29-2.684L43.63,19.28c-0.586-0.085-1.092-0.453-1.354-0.983\tL33.742,1.001c-0.66-1.335-2.564-1.335-3.224,0l-8.537,17.296c-0.261,0.53-0.767,0.898-1.354,0.983L1.542,22.054\tc-1.308,0.189-1.912,1.634-1.291,2.684c0.079,0.134,0.173,0.265,0.293,0.382l13.812,13.463c0.424,0.413,0.618,1.008,0.518,1.591\tl-0.633,3.688l-2.628,15.321c-0.065,0.378-0.008,0.73,0.13,1.038c0.399,0.885,1.498,1.372,2.478,0.858l17.071-8.976\tc0.524-0.275,1.149-0.275,1.674,0l17.071,8.976c0.979,0.514,2.079,0.027,2.478-0.858c0.138-0.307,0.195-0.659,0.13-1.037\tl-2.627-15.322L49.386,40.174z"/>',half:'<path class="sr-outline" fill="#F2A261" d="M31.163,55.698C31.425,55.561,32,55.492,32,55.492v-1.797c0,0-0.575,0.069-0.837,0.207\tC31.425,53.764,32,53.694,32,53.694v-1.797c0,0-0.51,0.069-0.772,0.207l-17.04,8.975c-0.979,0.515-2.062,0.028-2.461-0.857\tl-0.123,0.76c-0.065,0.378-0.003,0.73,0.135,1.038l-0.128,0.76c-0.065,0.377-0.007,0.73,0.131,1.037l-0.13,0.76\tc-0.252,1.469,1.289,2.589,2.607,1.896l17.073-8.976c0.262-0.138,0.485-0.206,0.772-0.206l-0.065,0v-1.797\tC32,55.492,31.425,55.561,31.163,55.698z"/><path class="sr-outline" fill="#F2A261" d="M14.874,40.174c0.1-0.583-0.094-1.178-0.519-1.591L0.545,25.12\tc-0.121-0.118-0.214-0.248-0.294-0.382c-0.308,0.541-0.339,1.225,0,1.798c-0.308,0.54-0.339,1.224,0,1.797\tc-0.38,0.667-0.344,1.559,0.294,2.18l13.696,13.351L14.874,40.174z"/><path class="def-shadow" fill="#B9C1C5" d="M64.008,24.737c-0.08,0.135-0.173,0.265-0.294,0.383L49.903,38.583\tc-0.425,0.413-0.617,1.008-0.518,1.591l0.632,3.688l13.696-13.35c0.638-0.621,0.674-1.513,0.294-2.18\tc0.34-0.573,0.308-1.257,0-1.797C64.348,25.962,64.316,25.278,64.008,24.737z"/><path class="def-shadow" fill="#B9C1C5" d="M50.038,61.079l-17.137-8.976C32.639,51.966,32,51.897,32,51.897v1.797c0,0-0.575,0.069-0.837,0.207\tC31.425,53.764,32,53.695,32,53.695v1.797c0,0-0.575,0.068-0.837,0.206C31.425,55.561,32,55.492,32,55.492v1.797\tc0,0,0.639,0.069,0.901,0.207l17.105,8.976c1.317,0.693,2.875-0.427,2.624-1.896l-0.123-0.76c0.138-0.307,0.2-0.659,0.135-1.037\tl-0.128-0.761c0.138-0.307,0.196-0.659,0.131-1.037l-0.13-0.761C52.115,61.106,51.017,61.593,50.038,61.079z"/><path class="sr-background" fill="#D3DADF" d="M49.386,40.174c-0.1-0.583,0.093-1.178,0.518-1.591L63.714,25.12\tc0.121-0.118,0.215-0.248,0.294-0.383c0.622-1.05,0.017-2.494-1.291-2.684L43.631,19.28c-0.586-0.085-1.092-0.453-1.354-0.983\tL33.742,1.001c-0.413-0.834-1.376-1.147-2.153-0.938C31.744,0.021,32,0,32,0v51.896c0,0-0.51,0.069-0.772,0.207\tc0.262-0.138,0.583-0.207,0.87-0.207s0.59,0.069,0.852,0.207l17.08,8.976c0.979,0.514,2.082,0.027,2.481-0.858\tc0.138-0.307,0.197-0.659,0.132-1.037l-2.626-15.321L49.386,40.174z"/><path class="sr-fill" fill="#EFC319" d="M14.221,61.078l17.007-8.975C31.49,51.966,32,51.896,32,51.896V0c0,0-0.256,0.021-0.411,0.063\tc-0.466,0.125-0.856,0.438-1.104,0.938l-8.521,17.296c-0.261,0.53-0.758,0.898-1.344,0.983L1.538,22.054\tc-1.308,0.189-1.911,1.634-1.289,2.684c0.08,0.134,0.174,0.265,0.295,0.382l13.811,13.463c0.425,0.413,0.618,1.008,0.519,1.591\tl-0.632,3.689l-2.628,15.32c-0.065,0.378-0.008,0.73,0.13,1.038C12.143,61.106,13.242,61.593,14.221,61.078z"/>',full:'<path class="sr-outline" fill="#F2A261" d="M14.874,40.174c0.1-0.583-0.094-1.178-0.518-1.591L0.544,25.12\tc-0.121-0.118-0.214-0.248-0.294-0.382c-0.308,0.541-0.339,1.225,0,1.798c-0.308,0.54-0.339,1.224,0,1.797\tc-0.38,0.667-0.344,1.559,0.293,2.18l13.696,13.35L14.874,40.174z"/><path class="sr-outline" fill="#F2A261" d="M50.037,61.078l-17.071-8.975c-0.524-0.275-1.149-0.275-1.674,0L14.22,61.078\tc-0.979,0.515-2.079,0.028-2.478-0.857l-0.13,0.76c-0.065,0.378-0.008,0.73,0.13,1.037l-0.13,0.761\tc-0.065,0.377-0.008,0.73,0.13,1.037l-0.13,0.76c-0.252,1.469,1.289,2.589,2.608,1.896l17.072-8.976\tc0.524-0.275,1.149-0.275,1.674,0l17.071,8.976c1.318,0.693,2.86-0.427,2.608-1.896l-0.13-0.76c0.138-0.307,0.195-0.659,0.13-1.037\tl-0.13-0.761c0.138-0.307,0.195-0.659,0.13-1.037l-0.13-0.761C52.116,61.106,51.016,61.593,50.037,61.078z"/><path class="sr-outline" fill="#F2A261" d="M64.008,24.738c-0.08,0.134-0.173,0.264-0.294,0.382L49.902,38.583\tc-0.424,0.413-0.617,1.008-0.517,1.591l0.632,3.688l13.696-13.349c0.637-0.621,0.674-1.513,0.293-2.18\tc0.339-0.573,0.308-1.257,0-1.797C64.347,25.962,64.315,25.278,64.008,24.738z"/><path class="sr-fill" fill="#EFC319" d="M49.386,40.174c-0.101-0.583,0.093-1.178,0.517-1.591L63.714,25.12\tc0.121-0.118,0.214-0.248,0.294-0.382c0.621-1.05,0.017-2.495-1.29-2.684L43.631,19.28c-0.586-0.085-1.093-0.453-1.354-0.983\tL33.741,1.001c-0.66-1.335-2.564-1.335-3.224,0L21.98,18.297c-0.261,0.53-0.767,0.898-1.353,0.983L1.542,22.054\tc-1.308,0.189-1.913,1.634-1.291,2.684c0.08,0.134,0.173,0.264,0.294,0.382l13.811,13.463c0.424,0.413,0.618,1.008,0.518,1.591\tl-0.633,3.689l-2.628,15.321c-0.065,0.378-0.008,0.73,0.13,1.038c0.399,0.885,1.498,1.372,2.478,0.857l17.072-8.975\tc0.524-0.275,1.149-0.275,1.674,0l17.071,8.975c0.979,0.515,2.079,0.028,2.478-0.857c0.138-0.307,0.195-0.659,0.13-1.037\tl-2.627-15.322L49.386,40.174z"/>'},style4:{viewbox:"-6 -6 68 68",empty:'<path class="sr-background" fill="#D3DADF" d="M29.322,0C13.127,0,0,13.129,0,29.323c0,16.195,13.127,29.323,29.322,29.323s29.324-13.128,29.324-29.323C58.646,13.129,45.518,0,29.322,0 M46.717,26.696l-7.082,6.902c-0.346,0.337-0.504,0.822-0.422,1.298l1.672,9.747c0.205,1.199-1.051,2.111-2.127,1.546l-8.754-4.602c-0.426-0.225-0.936-0.225-1.363,0l-8.754,4.602c-1.074,0.565-2.334-0.347-2.127-1.546l1.672-9.747c0.08-0.476-0.076-0.961-0.422-1.298l-7.082-6.902c-0.869-0.849-0.391-2.326,0.813-2.501l9.787-1.422c0.477-0.069,0.891-0.369,1.104-0.802l4.377-8.868c0.537-1.09,2.092-1.09,2.629,0l4.377,8.868c0.215,0.433,0.627,0.732,1.104,0.802l9.787,1.422C47.107,24.37,47.586,25.848,46.717,26.696"/>',half:'<path class="sr-background" fill="#D3DADF" d="M29.322,0C13.127,0,0,13.129,0,29.323c0,16.195,13.127,29.323,29.322,29.323s29.324-13.128,29.324-29.323C58.646,13.129,45.518,0,29.322,0 M46.717,26.696l-7.082,6.902c-0.346,0.337-0.504,0.822-0.422,1.298l1.672,9.747c0.205,1.199-1.051,2.111-2.127,1.546l-8.754-4.602c-0.426-0.225-0.936-0.225-1.363,0l-8.754,4.602c-1.074,0.565-2.334-0.347-2.127-1.546l1.672-9.747c0.08-0.476-0.076-0.961-0.422-1.298l-7.082-6.902c-0.869-0.849-0.391-2.326,0.813-2.501l9.787-1.422c0.477-0.069,0.891-0.369,1.104-0.802l4.377-8.868c0.537-1.09,2.092-1.09,2.629,0l4.377,8.868c0.215,0.433,0.627,0.732,1.104,0.802l9.787,1.422C47.107,24.37,47.586,25.848,46.717,26.696"/><path class="sr-fill" fill="#EFC319" d="M29.324,41.419c-0.236,0-0.469,0.056-0.684,0.169l-8.754,4.602c-1.074,0.565-2.332-0.348-2.127-1.546l1.672-9.747c0.082-0.476-0.076-0.961-0.422-1.298l-7.082-6.902c-0.869-0.849-0.389-2.326,0.814-2.501l9.785-1.423c0.479-0.068,0.891-0.368,1.104-0.801l4.377-8.868c0.27-0.545,0.791-0.817,1.314-0.817L29.324,0C13.129,0,0,13.129,0,29.323c0,16.195,13.129,29.323,29.324,29.323V41.419z"/>',full:'<path class="sr-fill" fill="#EFC319" d="M29.322,0C13.128,0,0,13.129,0,29.323c0,16.195,13.128,29.323,29.322,29.323c16.195,0,29.324-13.128,29.324-29.323C58.646,13.129,45.517,0,29.322,0 M46.717,26.696l-7.082,6.902c-0.345,0.337-0.503,0.822-0.421,1.298l1.671,9.747c0.206,1.199-1.051,2.111-2.127,1.546l-8.753-4.602c-0.427-0.225-0.938-0.225-1.365,0l-8.753,4.602c-1.075,0.565-2.333-0.347-2.127-1.546l1.672-9.747c0.081-0.476-0.076-0.961-0.422-1.298l-7.082-6.902c-0.87-0.849-0.39-2.326,0.813-2.501l9.787-1.422c0.477-0.069,0.89-0.369,1.104-0.802l4.376-8.868c0.538-1.09,2.092-1.09,2.629,0l4.377,8.868c0.214,0.433,0.626,0.732,1.104,0.802l9.786,1.422C47.107,24.37,47.587,25.848,46.717,26.696"/>'}},updatePrograssBar:function(e){s(".tcb-custom-field-source .tve_progress_bar_fill_wrapper").each(function(){var t=s(this);e&&!t.attr("data-post-list")?(t.css({width:""}),t.head_css({width:t.attr("data-fill")+"%"})):t.css({width:t.attr("data-fill")+"%"})})},updateFillCounter:function(i){s(".tcb-custom-field-source .tve_fill_counter_n").each(function(){var t=s(this),e=t.find(".tve_fill_text");d.applyFill(t,t[0].dataset.fill,i),e.find(".tve-fill-text-dynamic").length&&e.html('<div class="tve-fill-text-dynamic" '.concat(i?' contenteditable="false"':"",">").concat(t[0].dataset.fill,"%</div>"))})},applyFill:function(t,e,i){var n=Number(e),o=t.find(".tve_fill_counter_circle circle").attr("r"),a=Math.PI*(2*o);t.attr("data-fill",n),n<0&&(n=0),100<n&&(n=100);var r=n/100*a;i&&!t.attr("data-post-list")?(t.css({"stroke-dasharray":""}),t.head_css({"stroke-dasharray":r+" "+a})):t.css({"stroke-dasharray":r+" "+a})},countdownTimer:function(e){s(".tcb-custom-field-source.thrv_countdown_timer").each(function(){e&&TVE.Components.countdown_old.compute_time_until(s(this),this.dataset.date,this.dataset.hour,this.dataset.min,!1)}),s(".tcb-custom-field-source.tve-countdown").each(function(){var t=s(this);e?TVE.Components.countdown.updateElement(t):this.classList.contains("expired")&&(t.removeClass("expired").removeData("tcb.countdown"),new TCB_Front.Countdown(t,!1))})},hidePlaceholderElements:function(t){if(!t){var i=s(".tcb-custom-field-source");i.filter("[data-c-f-hidden=1]").hide(),[".tve_progress_bar_fill_wrapper",".tve_fill_counter_n","iframe"].forEach(function(t){i.find(t).filter("[data-c-f-hidden=1]").hide()}),s.each({".tcb-responsive-video":".thrv_responsive_video",audio:".thrv_audio",img:".tve_image_caption"},function(e,t){i.filter(t).each(function(){var t=s(this);0===t.find(e).length&&t.hide()})})}},updateAnimationElement:function(t,e){var i=s(t);i.find(e).attr("data-tcb-events",i.attr("data-tcb-events")),i.attr("data-tcb-events",""),tve_frontend_options.is_editor_page||TCB_Front.event_triggers(i)},updateAnimations:function(t){var i=s(".tcb-custom-field-source"),e=s(".tcb-dynamic-field-source"),n=this;s.each({".thrv_responsive_video":".tcb-responsive-video",".thrv_audio":"audio",".tve_image_caption":"img"},function(t,e){i.filter(t).each(function(){n.updateAnimationElement(this,e)})}),e.each(function(){n.updateAnimationElement(this,"img")})},updateVideos:function(a){var r=this;s(".tcb-custom-field-source.thrv_responsive_video").each(function(t,e){var i=s(e),n=i.find(".tcb-responsive-video"),o=n.attr("data-c-f-id");i.attr("data-type")!==n.attr("data-provider")&&(!i.attr("data-placeholder-el")&&"0"!==n.attr("data-id")||i.attr("data-placeholder-el")&&"Placeholder"!==n.attr("data-title"))&&(i.attr("data-url",n.attr("data-src")),i.attr("data-type",n.attr("data-provider")),a?(TVE.Components.responsivevideo.controls.responsive_video.activeElement=i,TVE.PostList.utils.isInsidePostList(i)?(TVE.page_message(TVE.t.invalidVideo,!0),i.attr("data-url",""),i.attr("data-type","external"),TVE.Components.responsivevideo.controls.ExternalFields.elements.responsivevideo.customFieldInput(i,"",null,!0)):(TVE.Components.responsivevideo.controls.ExternalFields.elements.responsivevideo.customFieldInput(i,o,null,!0),i.find(".tcb-responsive-video").attr("data-c-f-id",o)),i.find(".tcb-responsive-video").attr("data-c-f-id",o)):0===n.closest("article").length?r.frontendVideoFunctions(i,i.attr("data-url")?i.attr("data-url"):""):(i.attr("data-url",""),i.attr("data-type","external"),i[0].innerHTML='<div class="tve_responsive_video_container" style="padding-bottom: 56.25%;">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="tcb-video-float-container">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="video_overlay"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<video style="width: 100%;" class="tcb-responsive-video" controlslist="nodownload" data-c-f-id="'.concat(n.attr("data-c-f-id"),'" data-title="Placeholder" data-id="">\n\t\t\t\t\t\t\t\t\t\t\t\t\t           \t\t\t<source src="" type="video/mp4">\n\t\t\t\t\t\t\t\t\t\t\t\t\t           \t\t</video>\n\t\t\t\t\t\t\t\t\t\t\t\t                </div>\n\t\t\t\t\t\t\t\t\t\t\t\t             <div>'))),n=i.find(".tcb-responsive-video"),"vooplayer"===i.attr("data-type")&&"vooplayer"!==n.attr("data-provider")&&i.find(".tve_responsive_video_container").html(n),"vooplayer"===i.attr("data-type")&&l.changeVooOnPlay(i)})},videoRegex:function(t,e){var i=!1,n=!1;switch(e){case"youtube":(i=!!t.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|(youtube-nocookie|youtube)\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/)&&RegExp.$1)||(i=!!t.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|(youtube-nocookie|youtube)\.com\/(?:embed\/|list\/|playlist\?list=|playlist\?.+&list=))((\w|-){34})(?:\S+)?$/)&&RegExp.$1,n=!0);break;case"vimeo":i=t.match(/(http|https)?:\/\/(www\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|)(\d+)(?:|\/\?)/)?RegExp.$4:!!t.match(new RegExp("https?://(.+)?player.vimeo.com/video/(.+?)\\?"))&&RegExp.$2;break;case"wistia":i=t.match(new RegExp("https?://(.+)?(wistia.com|wi.st)/(medias|embed)/(.+)"))?RegExp.$4:!!t.match(new RegExp("https?://(.+)?fast.wistia.net/embed/(.+?)/(.+)"))&&RegExp.$3;break;case"vooplayer":i=!!t.match(new RegExp("https?://(.+).(cdn.(vooplayer|spotlightr).com)/(publish|watch)/(.+)"))&&RegExp.$5}return{url:t,id:i,isPlaylist:n}},queryString:function(t,e){var i,n="?";switch(e){case"youtube":n+=(i=["rel="+(t.attr("data-rel")||"1"),"modestbranding="+(t.attr("data-modestbranding")||"0"),"controls="+(t.attr("data-controls")||"1"),"showinfo="+(t.attr("data-showinfo")||"1"),"fs="+(t.attr("data-fs")||"1"),"wmode=transparent"]).join("&");break;case"wistia":i=["chromeless=false","controlsVisibleOnLoad="+("0"!==t.attr("data-onload-controls")),"playbar="+("0"!==t.attr("data-play-bar")),"fullscreenButton="+("0"!==t.attr("data-fs")),"playerColor="+(t.attr("data-video-color")||"fff"),"videoFoam=true"],"popover"===t.attr("data-embed_type")?(i.push("popover=true popoverAnimateThumbnail=true"),n+=i.join(" ")):n+=i.join("&");break;case"vimeo":n+=(i=["portrait="+(t.attr("data-modestbranding")||"1"),"title="+(t.attr("data-showinfo")||"1"),"color="+(t.attr("data-video-color")||"fff"),"byline="+(t.attr("data-byline")||"1"),"autopause=0"]).join("&");break;case"external":case"custom":n="",void 0!==t.attr("data-controls")&&"1"!==t.attr("data-controls")||(n+=' controls="controls" '),void 0!==t.attr("data-loop")&&"1"===t.attr("data-loop")&&(n+=" loop "),void 0!==t.attr("data-no-download")&&"1"===t.attr("data-no-download")&&(n+=' controlsList="nodownload" ');break;case"vooplayer":default:n=""}return n},getEmbedCode:function(t,e,i,n){switch(i){case"external":return'<video  style="width: 100%;" playsinline class="tcb-responsive-video" data-title="ACF Video" data-id="123" '.concat(e," >")+'<source src="'.concat(t.url,'" type="<#= attachment.mime #>">')+"</video>";case"youtube":var o="1"===n.attr("data-no-cookie")?"youtube-nocookie":"youtube";return t.isPlaylist?'<iframe title="Responsive Video" class="tcb-responsive-video" data-code="'.concat(t.id,'" data-provider="').concat(i,'" src="https://www.youtube.com/embed?listType=playlist&list=').concat(t.id+e,'" data-src="https://www.').concat(o,".com/embed?listType=playlist&list=").concat(t.id+e,'" frameborder="0" allowfullscreen></iframe>'):'<iframe title="Responsive Video" class="tcb-responsive-video" data-code="'.concat(t.id,'" data-provider="').concat(i,'" src="https://www.youtube.com/embed/').concat(t.id+e,'" data-src="https://www.').concat(o,".com/embed/").concat(t.id+e,'" frameborder="0" allowfullscreen></iframe>');case"vimeo":return'<iframe title="Responsive Video" class="tcb-responsive-video" data-code="'.concat(t.id,'" data-provider="').concat(i,'" src="https://player.vimeo.com/video/').concat(t.id+e,'" data-src="https://player.vimeo.com/video/').concat(t.id+e,'" frameborder="0" allowfullscreen></iframe>');case"wistia":return'<iframe title="Responsive Video" class="tcb-responsive-video" data-code="'.concat(t.id,'" data-provider="').concat(i,'" src="https://fast.wistia.net/embed/iframe/').concat(t.id+e,'" data-src="https://fast.wistia.net/embed/iframe/').concat(t.id+e,'" frameborder="0" allowfullscreen></iframe>');case"vooplayer":return'<iframe title="Responsive Video" allow="autoplay" data-code="'.concat(t.id,'" data-provider="').concat(i,'" class="tcb-responsive-video video-player-container vooplayer" data-playerId="').concat(t.id,'" url-params="" allowtransparency="true"  name="vooplayerframe" frameborder="0" allowfullscreen="true" scrolling="no" src="" style="max-width: 100%; position:relative; opacity: 1; min-width: 100%; height:100% !important; width: auto; top: auto;"> </iframe>')}},clearVideoEl:function(t){t.removeClass("tcb-elem-placeholder"),t.find(".tve_responsive_video_container").removeAttr("style"),t.find(".tcb-inline-placeholder-action, .tve_responsive_video-no_video, iframe, video, script, .wistia_embed, .voo-id.video-skin-player").remove()},frontendVideoFunctions:function(t,e){var i,n=t.attr("data-type");i=this.videoRegex(e,n);var o=this.getEmbedCode(i,this.queryString(t,n),n,t),a=t.find("[data-c-f-id]").attr("data-c-f-id"),r=t.find(".tve_responsive_video_container"),s=t.find(".tcb-video-float-container");this.clearVideoEl(t),o?(r.append(o),0<s.length&&0===s.find("iframe, video").length&&s.prepend(t.find("iframe, video")[0]),"function"==typeof window.initVooPlayer&&window.initVooPlayer(),t.find(".tcb-responsive-video").attr("data-c-f-id",a)):r.append('<div class="tve_responsive_video-no_video"><div class="thrv_wrapper thrv_icon tcb-icon-display"><svg id="tcb-icon" viewBox="0 0 32 32" data-id="icon-video-player"><path d="M21.224 18.053l-8-4c-0.155-0.077-0.339-0.070-0.486 0.022s-0.237 0.252-0.237 0.425v8c0 0.173 0.090 0.334 0.237 0.425 0.080 0.050 0.171 0.075 0.263 0.075 0.077 0 0.153-0.018 0.224-0.053l8-4c0.169-0.085 0.276-0.258 0.276-0.447s-0.107-0.362-0.276-0.447zM13.5 21.691v-6.382l6.382 3.191-6.382 3.191z"></path><path d="M30 2.5h-28c-1.105 0-2 0.895-2 2v23c0 1.105 0.895 2 2 2h28c1.105 0 2-0.895 2-2v-23c0-1.105-0.895-2-2-2zM31 4.5v4h-4.164l1.34-5h1.825c0.551 0 1 0.449 1 1zM10.64 3.5l-1.339 5h-4.475l1.339-5h4.475zM11.675 3.5h4.465l-1.339 5h-4.465l1.339-5zM17.175 3.5h4.465l-1.34 5h-4.465l1.34-5zM22.675 3.5h4.465l-1.34 5h-4.465l1.34-5zM2 3.5h3.13l-1.339 5h-2.79v-4c0-0.551 0.449-1 1-1zM30 28.5h-28c-0.551 0-1-0.449-1-1v-18h30v18c0 0.551-0.449 1-1 1z"></path></svg></div></div>')},lazyLoadPlaceholders:function(t){t&&s(".tcb-custom-field-source.thrv_responsive_video[data-placeholder-el], .tcb-custom-field-source.thrv_audio[data-placeholder-el] ").each(function(t,e){TVE.PostList.utils.getPlaceholderForElementType(TVE._type(TVE.inner_$(e)),e.dataset.placeholderEl)})},hideEmptyLinks:function(t){t||(s('.thrv_text_element a[data-shortcode-id^="acf_"]').each(function(t,e){var i=s(e);i.attr("href")||i.hide()}),s(".thrv-button").each(function(t,e){var i=s(e),n=i.find('a[data-shortcode-id^="acf_"]');n.attr("href")||(i.hide(),n.hide())}),s(".thrv_social_follow .tve_s_item").each(function(t,e){var i=s(e),n=i.find("a");n.attr("href")||(i.hide(),n.hide())}))}},e.exports=d},"file-upload.js":function(t,e,i){var o;o=ThriveGlobal.$j,e.exports=function(){function e(t){if(_classCallCheck(this,e),_defineProperty(this,"config",{}),_defineProperty(this,"$wrapper",o()),_defineProperty(this,"$el",o()),_defineProperty(this,"el",null),_defineProperty(this,"fileId",0),_defineProperty(this,"$fileList",o()),_defineProperty(this,"deleteIcon",'<svg width="12" height="14" viewBox="0 0 18 20"><path fill="#6D7A86" d="M17.188 2.5h-4.063L11.812.75c-.354-.472-.91-.75-1.5-.75H7.188c-.59 0-1.146.278-1.5.75L4.375 2.5H.312C.14 2.5 0 2.64 0 2.813v.624c0 .173.14.313.313.313h.738l1.297 14.543c.087.966.897 1.707 1.867 1.707h9.07c.97 0 1.78-.74 1.867-1.707L16.45 3.75h.738c.173 0 .313-.14.313-.313v-.624c0-.173-.14-.313-.313-.313zm-10.5-1c.118-.157.303-.25.5-.25h3.125c.196 0 .381.093.5.25l.75 1H5.936l.75-1zm7.218 16.68c-.026.323-.297.57-.62.57H4.214c-.324 0-.595-.247-.621-.57L2.304 3.75h12.891l-1.289 14.43z"/></svg>'),_defineProperty(this,"uploader",null),_defineProperty(this,"errorTemplates",{}),_defineProperty(this,"files",{}),_defineProperty(this,"uploadInProgress",!1),_defineProperty(this,"fieldName",""),_defineProperty(this,"fieldMapping",""),!t.data("tcb-file-upload")&&(this.$wrapper=t,this.$el=this.$wrapper.find(".tve_lg_file"),this.$wrapper.data("tcb-file-upload",this),this.$el.length)){this.el=this.$el[0];try{this.readConfig()}catch(t){return this.$el.remove(),void console.log("File upload error",t)}this.dom(),this.plupload()}}function t(){return i.apply(this,arguments)}var i;return _createClass(e,[{key:"isValid",value:function(){return!this.el||(this.uploadInProgress?this.errorTemplates.upload_progress||"File upload in progress. Please wait for the upload to finish and try again.":!(this.config.required&&!this.fileCount)||this.errorTemplates.file_required||"At least one file is required")}},{key:"dom",value:function(){var e=this,t=this.$el.find('input[type="file"]').remove();function i(){return e.el.classList.remove(n)}this.fieldName=t.attr("name"),this.fieldMapping=t.attr("data-mapping"),this.$fileList=o('<div class="tcb-file-list tcb-plain-text"></div>').insertAfter(this.$el),this.$fileList.on("click.tcb",".tcb-file-remove",function(t){e.removeFile(t.currentTarget.dataset.fileId)});var n="tve-state-active";return this.$el.off("dragover.tcb dragenter.tcb dragleave.tcb drop.tcb").on("dragenter.tcb",function(){return e.el.classList.add(n)}).on("dragover.tcb",function(t){return t.originalEvent.dataTransfer.dropEffect="copy"}).on("drop.tcb dragend.tcb",i).on("dragleave.tcb",function(t){t.originalEvent.relatedTarget&&!o.contains(e.el,t.originalEvent.relatedTarget)&&i()}),this}},{key:"readConfig",value:function(){if(this.fileId=parseInt(this.$wrapper.attr("data-f-id")||0),this.$wrapper.removeAttr("data-f-id"),this.config=JSON.parse(this.el.dataset.fileSetup),this.$el.removeAttr("data-file-setup"),!this.fileId||!this.config)throw new Error("Missing file ID / setup");try{this.errorTemplates=JSON.parse(this.$wrapper.find(".tve-lg-err-msg").val())}catch(t){this.errorTemplates={}}this.errorTemplates=_objectSpread({},{file_extension:"Sorry, {fileextension} files are not allowed",file_size:"{file} exceeds the maximum file size of {filelimit}",max_files:"Sorry, the maximum number of files is {maxfiles}"},{},this.errorTemplates)}},{key:"$fileItem",value:function(t){return"string"!=typeof t&&t.id&&(t=t.id),this.$fileList.children('[data-id="'.concat(t,'"]'))}},{key:"formatFileSize",value:function(t){if(!t.origSize)return"";var e="B",i=t.origSize;return 1e3<i&&(i/=1024,e="KB"),1e3<i&&(i/=1024,e="MB"),i!==parseInt(i)&&(i=i.toFixed(1)),i+" "+e}},{key:"template",value:function(t){var e=this.$fileItem(t.id),i='<div class="tcb-file-info"><span class="tcb-file-name">'.concat(t.name,'</span><span class="tcb-file-size">').concat(this.formatFileSize(t),"</span></div>"),n='<button data-file-id="'.concat(t.id,'" type="button" class="tcb-file-remove">').concat(this.deleteIcon,"</button>");return e.length||(e=o('<div class="tcb-file-item" data-id="'.concat(t.id,'">').concat(i).concat('<span class="tcb-upload-progress"><span class="progress-bg"></span></span>').concat(n).concat('<div class="tcb-file-loader"><span class="tcb-form-loader-icon thrv-icon-spinner9"></span></div>',"</div>")).appendTo(this.$fileList)),e}},{key:"clearErrors",value:function(){this.$fileList.children(".tcb-error").remove()}},{key:"plupload",value:(i=function(){var o,t=this;if(plupload.addFileFilter("max_files",function(t,e,i){var n=this;this._tcbInstance.fileCount>=t?(clearTimeout(o),o=setTimeout(function(){n._tcbInstance.clearErrors(),n._tcbInstance.uploader.trigger("Error",{code:800,message:n._tcbInstance.getErrorMessage("max_files",e),file:e})},100),i(!1)):i(!0)}),this.uploader=new plupload.Uploader({runtimes:"html5,html4",dragdrop:!0,drop_element:this.el,browse_button:this.$el.find(".tcb-file-upload-trigger")[0],container:this.el,url:tve_frontend_options.ajaxurl+"?action=tcb_file_upload&id="+encodeURIComponent(this.fileId),filters:{max_files:this.config.max_files||1,max_file_size:this.maxFileSize,mime_types:[{title:"Custom",extensions:this.config.allowed.join(",")}]},init:{FilesAdded:this.onFilesAdded.bind(this),FilesRemoved:this.onFilesRemoved.bind(this),UploadFile:this.onUploadStart.bind(this),UploadProgress:this.onUploadProgress.bind(this),FileUploaded:this.onFileUploaded.bind(this),Error:this.onUploadError.bind(this),FileFiltered:this.onFileFiltered.bind(this),UploadComplete:this.onUploadComplete.bind(this)}}),(this.uploader._tcbInstance=this).uploader.init(),TCB_Front.browser.ios){var e=this.$wrapper.find(".tcb-file-upload-trigger");e.replaceWith(e.clone()),this.$wrapper.on("click",".tcb-file-upload-trigger",function(){t.$wrapper.find("input[type=file]")[0].click()})}},t.toString=function(){return i.toString()},t)},{key:"markFileError",value:function(t,e){return this.template(t).removeClass("tcb-uploading tcb-done").addClass("tcb-error").find(".tcb-file-info").html(e),this}},{key:"isUploaded",value:function(t){return t="string"==typeof t?t:t.id,this.$wrapper.find("input#file-".concat(t)).length}},{key:"getUploadedFileId",value:function(t){return t="string"==typeof t?t:t.id,this.$wrapper.find("input#file-".concat(t)).val()}},{key:"getUploadedFileNonce",value:function(t){return t="string"==typeof t?t:t.id,this.$wrapper.find("input#file-".concat(t)).attr("data-key")}},{key:"removeFile",value:function(t){t="string"==typeof t?t:t.id,delete this.files[t],this.uploader.removeFile(t),this.$fileItem(t).remove();var e=this.getUploadedFileId(t);e&&o.ajax({url:tve_frontend_options.ajaxurl,type:"post",data:{action:"tcb_file_remove",id:this.fileId,file_id:e,nonce:this.getUploadedFileNonce(t)}}),this.$wrapper.find("input#file-".concat(t)).remove()}},{key:"appendExtraData",value:function(t){return this.fieldName&&(t+="&tcb_file_field="+encodeURIComponent(this.fieldName)+"&tcb_file_id="+this.fileId),t}},{key:"getErrorMessage",value:function(t,e){if(!this.errorTemplates[t])return"Unknown error";var i=e.name.split(".").pop();return this.errorTemplates[t].replace(/({file})/g,e.name).replace(/{filelimit}/g,this.maxFileSize.toUpperCase()).replace(/{fileextension}/g,i).replace(/{maxfiles}/g,this.config.max_files||1)}},{key:"clear",value:function(){this.$fileList.empty(),this.files={},this.uploader&&(this.uploader.files=[])}},{key:"onFilesAdded",value:function(t,e){var i=this;plupload.each(e,function(t){i.$fileList.append(i.template(t))});var n=this.$wrapper.find('input[type="email"]').val();this.uploader.setOption("url",tve_frontend_options.ajaxurl+"?action=tcb_file_upload&id="+encodeURIComponent(this.fileId)+"&email="+encodeURIComponent(n)),this.uploader.start()}},{key:"onFilesRemoved",value:function(t,e){var i=this;plupload.each(e,function(t){delete i.files[t.id],i.$fileItem(t).remove()})}},{key:"onUploadStart",value:function(t,e){this.$el.removeClass("tcb-form-input-error").next(".tcb-form-error").remove(),this.uploadInProgress=!0,this.$fileItem(e).addClass("tcb-uploading")}},{key:"onUploadProgress",value:function(t,e){var i="".concat(e.percent,"%");this.template(e).addClass("tcb-uploading").find(".progress-bg").attr("data-percent",i).css("width",i)}},{key:"onUploadError",value:function(t,e){if(!e.file)throw new Error("missing file data");var i=e.response||e.message;if(e.response)try{var n=JSON.parse(n.response);n.error&&(i=n.error)}catch(t){}switch(e.code){case plupload.FILE_SIZE_ERROR:i=this.getErrorMessage("file_size",e.file);break;case plupload.FILE_EXTENSION_ERROR:i=this.getErrorMessage("file_extension",e.file)+" (".concat(e.file.name,")");break;default:i+=" (".concat(e.file.name,")")}delete this.files[e.file.id],this.markFileError(e.file,i)}},{key:"onFileFiltered",value:function(t,e){this.files[e.id]=e}},{key:"onFileUploaded",value:function(t,e,i){this.template(e).removeClass("tcb-uploading").addClass("tcb-done");try{if(200!==i.status)throw new Error("Something went wrong. Response was: "+i.response);var n=JSON.parse(i.response);if(!n.file_id)throw new Error("Something went wrong while uploading the file");this.$wrapper.find("form").append('<input data-mapping="'.concat(this.fieldMapping,'" type="hidden" data-key="').concat(n.nonce,'" id="file-').concat(e.id,'" name="_tcb_files[').concat(n.nonce,']" value="').concat(n.file_id,'">'))}catch(t){this.markFileError(e,t.message)}}},{key:"onUploadComplete",value:function(){this.uploadInProgress=!1}},{key:"maxFileSize",get:function(){return(this.config.max_size||1)+"mb"}},{key:"fileCount",get:function(){return Object.keys(this.files).length}}]),e}()},"floating.js":function(t,e,i){function v(t,e){var i=e?t.parents(".safari-ios-decoration-fix"):t.parents(".safari-ios-decoration-fix-none");t.toggleClass("tcb-no-perspective",e),i.toggleClass("safari-ios-decoration-fix",!e).toggleClass("safari-ios-decoration-fix-none",e)}var n,o,a,g;n=ThriveGlobal.$j,g=!(a={}),a.init=function(){var i=this;o=a.videoScrolled.bind(this),document.addEventListener("scroll",o),n(".tcb-float-close-button").each(function(t,e){e.addEventListener("click",a.closeFloatVideo.bind(i,e),!1)})},a.destroyFloating=function(){var i=this;document.removeEventListener("scroll",o),n(".tcb-float-close-button").each(function(t,e){e.removeEventListener("click",a.closeFloatVideo.bind(i,e))})},a.closeFloatVideo=function(t){ThriveGlobal.$j(t).parent(".tcb-video-float-container").addClass("tcb-float-closed"),a.videoScrolled()},a.videoScrolled=function(){ThriveGlobal.$j('.thrv_responsive_video[data-float="true"] .tcb-video-float-container iframe, .thrv_responsive_video[data-float="true"] .tcb-video-float-container video, .thrv_responsive_video[data-float="true"] .tcb-video-float-container .tve_responsive_video-no_video').each(function(t,e){var i=ThriveGlobal.$j(e),n=i.parents(".tcb-video-float-container"),o=i.parents(".thrv_responsive_video"),a=o.attr("data-float-position"),r=o.find(".video_overlay_image").attr("style")||"",s=TCB_Front.getDisplayType()[0],l=parseInt(ThriveGlobal.$j("#wpadminbar").height());if(n.hasClass("tcb-float-closed")||!function(t){var e="true"===t.attr("data-float"),i=t.attr("data-float-visibility"),n=TCB_Front.getDisplayType();return!t.parents(".tcb-post-list").length&&(e&&!i||-1===i.indexOf(n))}(o)||TCB_Front.isInViewport(i.parents(".thrv_responsive_video"),parseInt(i.width))){if(n.removeClass(a).css({width:"",height:"","margin-top":""}).parents(".tcb-col,.thrv-content-box,.thrv-page-section,#content,.theme-section").css("z-index",""),o.find(".video_overlay_image").removeClass(a).css({cssText:r,height:"",width:""}),!g){var c=o.position().left,d={left:c,right:c+o.width()};a.includes("top")||a.includes("keep")?(d.top=-parseInt(o.attr("data-float-width-".concat(s))),n.css(d)):a.includes("bottom")&&(d.bottom=parseInt(TCB_Front.windowWidth()),n.css(d)),o.find(".video_overlay_image").css({top:"",left:"",bottom:"",right:"","margin-top":""}),g=!0}v(o,!1)}else{void 0===o.attr("data-float-width-".concat(s))&&("m"===s&&(o.attr("data-float-width-m",TCB_Front.$window.width()+"px;"),o.attr("data-float-padding1-m",0),o.attr("data-float-padding2-m",0),l=0),"t"===s&&(s="d"));var h="height: "+function(t){var e=parseFloat(t.height()/t.width()).toFixed(2),i=TCB_Front.getDisplayType()[0],n=t.attr("data-float-width-".concat(i))||t.attr("data-float-width-d"),o=parseInt(n)*e;return n.includes("px")?o+"px":o*TCB_Front.$body.width()/100+"px"}(o)+" !important;",u="width: "+o.attr("data-float-width-".concat(s))+" !important;",p="";if(a.includes("keep-original")){var f=o.attr("data-float-padding1-".concat(s));TCB_Front.hasAdminBar()&&l&&(p+="margin-top: ".concat(l,"px;")),p+="top: ".concat(f," !important; ")}else a.split("-").forEach(function(t,e){var i=o.attr("data-float-padding".concat(e+1,"-").concat(s));TCB_Front.hasAdminBar()&&t.includes("top")&&l&&(p+="margin-top: ".concat(l,"px;")),p+="".concat(t,": ").concat(i," !important; ")});a&&(n.addClass(a).css({cssText:u+h+p}).parents(".tcb-col,.thrv-content-box,.thrv-page-section,#content,.theme-section").css("z-index",(TCB_Front.highestZIndex||0)+10),i.css("height",""),o.find("video").length&&function(t){t.find("video").css({"object-fit":"cover",height:"100%"})}(o),o.find(".video_overlay_image").addClass(a).css({cssText:r+u+h+"z-index:100000 !important; top:inherit; left:inherit; bottom:inherit; right: inherit; margin-top: inherit;"}),v(o,!0),g=!1)}})},a.restoreFloatingVideos=function(){ThriveGlobal.$j(".thrv_responsive_video").each(function(t,e){var i=ThriveGlobal.$j(e),n=i.find(".tcb-video-float-container"),o=i.attr("data-float-position"),a=i.find(".video_overlay_image").attr("style")||"";n.removeClass(o).css({width:"",height:""}),i.find(".video_overlay_image").removeClass(o).css({cssText:a,height:"",width:"",top:"",left:"",bottom:"",right:"","margin-top":""})})},e.exports=a},"gallery-ligthbox.js":function(t,e,i){var n,o,a;n=ThriveGlobal.$j,o=TCB_Front,a=function(){function e(t){_classCallCheck(this,e),this.gallery=t,this.$gallery=t.$element,this.imageCount=this.$gallery.find(".tve_image_caption").length,this.animating=!1,this.isOpen=!1,this.render()}return _createClass(e,[{key:"render",value:function(){this.$overlay=n('\n\t\t\t\t\t\t\t\t\t\t\t<div class="tcb-gallery-overlay">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="tcb-gallery-wrapper"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="tcb-g-count tcb-gl-ctrl-mob">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="tcb-gl-ctrl-wrp">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="tcb-mob-text"></span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="tcb-img-count"></span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class="tcb-cap-txt"></span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<button class="tcb-nav-prev tcb-gl-ctrl">'.concat(o.icons.get("arrow-left"),'</button>\n\t\t\t\t\t\t\t\t\t\t\t\t<button class="tcb-nav-next tcb-gl-ctrl">').concat(o.icons.get("arrow-right"),'</button>\n\t\t\t\t\t\t\t\t\t\t\t\t<button class="tcb-nav-close tcb-gl-ctrl-mob">').concat(o.icons.get("cross"),"</button>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t")).appendTo(n("body")),this.$wrapper=this.$overlay.find(".tcb-gallery-wrapper"),this.$wrapper.css({width:"".concat(100*this.imageCount,"%")})}},{key:"init",value:function(){var i=this;this.currentImageIndex=0,this.$gallery.find(".tve_image_caption").each(function(t,e){n(e).find("a").removeClass("tve-jump-scroll"),e.addEventListener("click",function(t){i.isOpen=!0,i.$overlay.show(0).addClass("g-v"),i.showImage(parseInt(e.dataset.index),!1),t.preventDefault()}),i.createGalleryItem(e)}),this.$overlay.find(".tcb-nav-prev").on("click",this.showPrev.bind(this)),this.$overlay.find(".tcb-nav-next").on("click",this.showNext.bind(this)),this.$overlay.find(".tcb-nav-close").on("click",this.close.bind(this)),this.$wrapper.on("click",function(t){"IMG"!==t.target.tagName&&i.close()}),this.$wrapper.length&&this.$wrapper.swipe({swipeLeft:this.showNext.bind(this),swipeRight:this.showPrev.bind(this),swipeUp:function(){i.isOpen=!1,i.$overlay.removeClass("g-v").hide()},swipeDown:function(){return!1}}),n("html").off("keydown.gallery").on("keydown.gallery",function(t){if(i.isOpen)switch(t.keyCode){case 37:i.showPrev();break;case 39:i.showNext();break;case 27:i.close()}})}},{key:"close",value:function(){this.isOpen=!1,this.$gallery.addClass(this.getAnimationsClasses()),this.$overlay.removeClass("g-v").hide()}},{key:"createGalleryItem",value:function(t){if(!t.classList.contains("gallery-clicker")){var e=t.querySelector("img");try{JSON.parse(e.dataset.sizes)}catch(t){}n('<div class="tve-g-image-wrapper">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="tcb-caption-wrapper tcb-loading">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<button class="tcb-nav-close">'.concat(o.icons.get("cross"),'</button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tloading="lazy"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-pos="').concat(t.getAttribute("data-position"),'" \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-caption="').concat(t.getAttribute("data-caption"),'" \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-index="').concat(t.getAttribute("data-index"),'" \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata-src="').concat(e.dataset.src,'" alt=""/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="tcb-caption"></div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<div class="tcb-image-loader">').concat(TCB_Front.icons.get("spinner9"),"</div>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>")).appendTo(this.$wrapper)}}},{key:"showImage",value:function(t,e){this.$gallery.removeClass(this.getAnimationsClasses()),this.$wrapper.toggleClass("g-n-a",!e);var i=this.$wrapper.find("img[data-index=".concat(t,"]")),n="true"===this.$gallery.attr("data-caption-lightbox"),o=i.attr("data-caption")||"",a=i.attr("data-pos");i.parent().hasClass("tcb-loading")&&i.on("load",function(){i.parent().removeClass("tcb-loading")}),i.attr("src",i.attr("data-src")),this.$wrapper.css({left:"-".concat(100*t,"%")}),this.currentImageIndex=t,this.$overlay.find(".tcb-img-count").text(a),this.$overlay.find(".tcb-caption").text(n&&o.length?o:""),this.$overlay.find(".tcb-mob-text").text(o)}},{key:"showNext",value:function(){var t=this;this.animating||(this.currentImageIndex<this.imageCount-1?this.showImage(this.currentImageIndex+1,!0):(this.$wrapper.addClass("g-n-a").css("left","100%"),this.animating=!0,setTimeout(function(){t.showImage(0,!0),t.animating=!1},20)))}},{key:"showPrev",value:function(){var t=this;this.animating||(0<this.currentImageIndex?this.showImage(this.currentImageIndex-1,!0):(this.$wrapper.addClass("g-n-a").css("left",-100*this.imageCount+"%"),this.animating=!0,setTimeout(function(){t.showImage(t.imageCount-1,!0),t.animating=!1},20)))}},{key:"getAnimationsClasses",value:function(){var t=[];if(this.$gallery.hasClass("tve_evt_manager_listen")){t.push("tve_evt_manager_listen","tve_ea_thrive_animation");var e=this.$gallery[0].className.match(/tve_et_\S*|tve_ea_\S*|tve_anim_\S*/g);null!==e&&(t.push.apply(t,_toConsumableArray(e)),t.includes("tve_ea_thrive_tooltip")&&t.splice(t.indexOf("tve_ea_thrive_animation"),1))}return _toConsumableArray(new Set(t)).join(" ")}}]),e}(),e.exports=a},"header.js":function(t,e,i){function n(t){var e={opacity:0,"z-index":h-1,overflow:"hidden"},i={opacity:1,"z-index":h,overflow:"",top:0},n="";l<=t?(d.css(e),c.css(i),n=c.outerHeight()):(c.css(e),d.css(i)),v[0]&&v[0].style.setProperty("height","".concat(n,"px"))}function o(){l=s.getMediaAttr(d,"data-switch-on-scroll",TCB_Front.getDisplayType()),s.add_scroll_callback(n)}function a(t){0===parseInt(t.currentTarget.style.opacity)&&(t.currentTarget.style.top=f)}var r,s,l,c,d,h,u,p,f,v;r=ThriveGlobal.$j,s=TCB_Front,u="tve-default-state",p="tve-scroll-state",f="-1000px",v=r(),e.exports=function(t){if(!(v=t.find(".thrv_header")).data("init")&&v.length){v.data("init",1),d=v.find(".thrive-symbol-shortcode"),c=d.clone(),d.addClass(u),h=d.css("z-index")||15;var e=s.getMediaAttr(d,"data-switch-on-scroll",TCB_Front.getDisplayType());if(e&&!isNaN(e)){c.addClass(p).removeClass(u);var i={position:"absolute",opacity:0,width:"100%","box-sizing":"border-box",left:0,top:f};c.css(i).addClass("thrive-symbol-shortcode-scroll").insertAfter(d),(c=v.find(".thrive-symbol-shortcode.thrive-symbol-shortcode-scroll")).find(".".concat(u)).remove(),c.find(".".concat(p)).css("display",""),d.find(".".concat(p)).remove(),v.addClass("".concat(u," ").concat(p)),v.find(".thrive-symbol-shortcode").css("transition","opacity .4s ease-in-out").on("transitionend webkitTransitionEnd oTransitionEnd",a),s.addResizeCallback(o),o()}TCB_Front.event_triggers(v)}}},"image-gallery.js":function(t,e,i){var a,r,o,n;a=ThriveGlobal.$j,r=TCB_Front,o=i("./gallery-ligthbox"),n=function(){function n(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:a(),e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];_classCallCheck(this,n),this.$element=t,this.isEditor=e}return _createClass(n,null,[{key:"imageSelector",value:function(){return".thrv_wrapper.tve_image_caption"}},{key:"captionSelector",value:function(){return".wp-caption-text.thrv-inline-text"}}]),_createClass(n,[{key:"setImages",value:function(t){return this.images=t,this}},{key:"getImages",value:function(){return this.images}},{key:"readImagesFromElement",value:function(){var o=[],t=this.isCarousel()?".tcb-image-gallery-container .tve_image_caption.slick-slide:not(.slick-cloned) img":".tcb-image-gallery-container img";return this.$element.find(t).each(function(t,e){var i=a(e),n=i.parents(".tve_image_caption");o.push({id:n.attr("data-id"),caption:n.attr("data-caption"),title:i.attr("title"),alt:i.attr("alt"),width:i.attr("width"),height:i.attr("height"),url:i.attr("src"),sizes:i.tcbJsonData("sizes"),styleClass:n[0].className.match(/(^|\s)img_style_\S+/g)||["no_style"].join(" ")})}),o}},{key:"isHorizontalMasonry",value:function(){return"horizontalMasonry"===this.$element.attr("data-type")}},{key:"initHorizontalMasonry",value:function(){this.$element.find(".tcb-image-gallery-container").justifiedGallery({selector:".tve_image_caption.thrv_wrapper",rowHeight:parseInt(r.inlineCssVariable(this.$element,"--tve-gallery-column-height")),lastRow:"nojustify",margins:parseInt(r.inlineCssVariable(this.$element,"--tve-gallery-gutter"))})}},{key:"render",value:function(){var i=this;if(this.isEditor){this.$element=TVE.ActiveElement;var t,e,n,o,a,r,s,l=this.$element.find(TVE.identifier("image")),c=this.$element.find(TVE.identifier("image_caption")),d=l.find(".tve-image-overlay").first(),h={},u={},p={};if(l.length&&(t=this.getAnimationsClasses(l),e=this.getAnimationsClasses(l.find("img")),n=l.find("img").attr("data-tcb-events"),o=this.getAnimationsClasses(c),a=c.attr("data-tcb-events"),r=(l[0].className.match(/(^|\s)img_style_\S+/g)||["no_style"]).join(" "),s=this.getResponsiveClasses(c)),this.oldImageSize=this.getImageSize(),c.each(function(t,e){var i=TVE.inner_$(e),n=i.find("a"),o=i.parents(".tve_image_caption").attr("data-id");u[o]={hasLink:0<n.length,href:n.attr("href"),target:n.attr("target"),rel:n.attr("rel")}}),this.hasLightbox()||l.each(function(t,e){var i=TVE.inner_$(e),n=i.find(".tve_image_frame a"),o=i.attr("data-id");p[o]={hasLink:0<n.length,href:n.attr("href"),target:n.attr("target"),rel:n.attr("rel")}}),this.$element.hasClass("tcb-elem-placeholder"))this.$element.html('<div class="tcb-image-gallery-container tve-prevent-content-edit"></div>').removeClass("tcb-elem-placeholder tcb-gallery-placeholder");else{var f=this.$element.find(".tcb-image-gallery-container");this.isCarousel()&&void 0!==f[0].slick&&f.slick("unslick"),f.html("")}c.length&&c.attr("data-position")&&(h.position={attr:"data-position=".concat(c.attr("data-position")),classes:"tve-image-caption-".concat(c.attr("data-position"))},"inside"===c.attr("data-position")&&c.attr("data-alignment")&&(h.alignment={attr:"data-alignment=".concat(c.attr("data-alignment")),classes:"tve-image-caption-inside tcb-caption-".concat(c.attr("data-alignment"))})),this.$element.attr("data-css",TVE.CSS_Rule_Cache.uniq_id(this.$element)),this.getImages().forEach(function(t,e){return i.renderOneImage(t,e,h,u,p)});var v=this.$element.find(TVE.identifier("image")),g=this.$element.find(".wp-caption-text");d.length&&d.insertAfter(v),t&&(v.addClass(t),this.$element.find("img").addClass(e).attr("data-tcb-events",n)),o&&g.addClass(o).attr("data-tcb-events",a),r&&v.addClass(r),g.each(function(t,e){var i=e.innerText;i&&!i.trim().length&&e.classList.add("tcb-permanently-hidden")}),s&&g.addClass(s),this.updateDataSelectors()}}},{key:"renderOneImage",value:function(t,e,i,n,o){this.$element.find(".tcb-image-gallery-container").append(TVE.tpl("elements/gallery-image")({image:t,index:e,imageObj:this,captionSettings:i,tcb:r,captionLinks:n,imageLinks:o})),this.$element.find(".tcb-image-gallery-container img:last").tcbJsonData("sizes",t.sizes)}},{key:"updateDataSelectors",value:function(){var i=this.$element.attr("data-css");this.$element.find(n.imageSelector()).each(function(t,e){e.setAttribute("data-selector",'[data-css="'.concat(i,'"] ').concat(n.imageSelector()))}),this.$element.find(n.captionSelector()).each(function(t,e){e.setAttribute("data-selector",'[data-css="'.concat(i,'"] ').concat(n.captionSelector()))})}},{key:"hasCaptions",value:function(){return"true"===this.$element.attr("data-caption")}},{key:"getImageSize",value:function(){var t=this.$element.attr("data-thumbnail-size")||"auto";return"auto"===t&&(t=this.getBestImageSize()),t}},{key:"getFullwidthSize",value:function(){return this.$element.attr("data-fullscreen-size")||"large"}},{key:"hasLightbox",value:function(){return!this.isCarousel()&&"fullscreen"===this.$element.attr("data-click-behavior")}},{key:"getImagePosition",value:function(e){var t=this.getImages();return t.findIndex(function(t){return t.id===e.id})+1+"/"+t.length}},{key:"initLightbox",value:function(){this.lightbox=new o(this),this.lightbox.init()}},{key:"getBestImageSize",value:function(){var t=this.getNumberOfColumns(),e=parseInt(r.inlineCssVariable(this.$element,"--tve-gallery-horizontal-space")),i=t||Math.min(this.images.length,4),n=(TVE.ActiveElement.outerWidth()-(i-1)*e)/i,o="large";if(n<=300){var a=TVE.ActiveElement.find("img");a.length&&n<a.width()||(o="medium")}return o}},{key:"getNumberOfColumns",value:function(){var e;if(this.isCarousel())try{e=JSON.parse(this.$element.find(".tcb-image-gallery-container").attr("data-carousel-settings")).slidesToShow}catch(t){e=3}else e=r.inlineCssVariable(this.$element,"--tve-gallery-columns");return e}},{key:"getAnimationsClasses",value:function(t){var e=[],i=t.length?t[0].className.match(/tve_et_\S*|tve_ea_\S*|tve_anim_\S*|tve_evt_\S*/g):null;return null!==i&&(e.push.apply(e,_toConsumableArray(i)),e.includes("tve_ea_thrive_tooltip")&&e.splice(e.indexOf("tve_ea_thrive_animation"),1)),_toConsumableArray(new Set(e)).join(" ")}},{key:"getResponsiveClasses",value:function(i){var n=[];return Object.keys(TVE.main.responsive).forEach(function(t){var e="tcb-".concat(t,"-hidden");i.hasClass(e)&&n.push(e)}),n}},{key:"isCarousel",value:function(){return"carousel"===this.$element.attr("data-type")}},{key:"initCarousel",value:function(){var a=this,t=this.$element.find(".tcb-image-gallery-container"),e=JSON.parse(t.attr("data-carousel-settings")),i=e.tcbDots;delete e.tcbDots,t.slick(e),this.$element.find(".slick-list").addClass("tve-prevent-content-edit"),this.setDots(this.$element.find("ul.tcb-carousel-dots"),i),this.$element.toggleClass("tcb-has-arrows",!!this.$element.find(".tcb-carousel-arrow").length),this.isEditor&&(t.slick("slickPause"),t.off("breakpoint").on("breakpoint",function(t,e,i){TVE.inner_$('.tcb-image-gallery[data-type="carousel"]').each(function(t,e){var i=TVE.inner_$(e),n=JSON.parse(i.find(" .tcb-image-gallery-container").attr("data-carousel-settings")),o=i.hasClass("tcb-gallery-crop");a.setDots(i.find("ul.tcb-carousel-dots"),n.tcbDots),o&&TVE.Components.image_gallery.cropImages(i,o),TVE.main.EditMode.in_edit()||i.find(".slick-list").addClass("tve-prevent-content-edit")})})),t.removeClass("tve-loading load-bot")}},{key:"setDots",value:function(t,e){var i=t.parents(".tcb-image-gallery");e&&(t.length&&0===i.find(" > ul.tcb-carousel-dots").length&&i.append(t),t.addClass("tcb-carousel-dots-styled"),t.find("li").attr("data-selector",'[data-css="'.concat(i.attr("data-css"),'"] .tcb-carousel-dots li.tcb-dot')).addClass("tcb-dot").html(e))}}]),n}(),e.exports=n},"jquery-plugins.js":function(t,e,i){function v(t,e){var i=!(1<arguments.length&&void 0!==e)||e;i?(n.postGridLayout(),n.changeAutoplayVideo(t)):t.find("video").each(function(){d(this)[0].pause()}),n.handleIframes(t,i)}function g(t,n){var e,i;switch(t){case"appear":e=function(t){return t.children(".tve-cb").removeAttr("style"),t.show()},i=function(t){return t.hide()};break;case"fade":e=function(t,e){return t.removeAttr("style").fadeIn(e)},i=function(t,e){return t.fadeOut(e)};break;case"slide-up":e=function(t){return t.children(".tve-cb").removeAttr("style").css({bottom:"100%",opacity:"0"}).animate({bottom:"0",opacity:"1"}).show(),t.show()},i=function(t){return t.children(".tve-cb").css({bottom:"0",opacity:"1"}).animate({bottom:"100%",opacity:"0"}).hide(),t.hide()};break;case"slide-down":e=function(t){return t.children(".tve-cb").removeAttr("style").css({top:"100%",opacity:"0"}).animate({top:"0",opacity:"1"}).show(),t.show()},i=function(t){return t.children(".tve-cb").css({top:"0",opacity:"1"}).animate({top:"100%",opacity:"0"}).hide(),t.hide()};break;case"slide":e=function(t,e){return t.removeAttr("style").slideDown(e)},i=function(t,e){return t.slideUp(e)};break;case"slide-right":e=function(t){return t.children(".tve-cb").removeAttr("style").css({opacity:"0",left:"100%"}).animate({left:"0",opacity:"1"}).show(),t.show()},i=function(t){return t.children(".tve-cb").css({opacity:"1",left:"0"}).animate({left:"100%",opacity:"0"}).hide(),t.hide()};break;case"slide-left":e=function(t){return t.children(".tve-cb").removeAttr("style").css({opacity:"0",right:"100%"}).animate({right:"0",opacity:"1"}).show(),t.show()},i=function(t){return t.children(".tve-cb").css({opacity:"1",right:"100%"}).animate({right:"0",opacity:"0"}).hide(),t.hide()};break;case"smooth-resize":e=function(t){var e=t.children(),i=t.data("contentHeight")||t.height();return e.css({height:n}).animate({height:i},500).promise().done(function(){e.css("height","100%")}),t.show()},i=function(t){return t.data("contentHeight",t.height()),t.hide()};break;case"swing-up":e=function(t){return t.css({transform:"rotateX(-20deg)",opacity:0}).animate({transform:"rotateX(0)",opacity:1},300).promise().done(function(){t.css({transform:"rotateX(0)",opacity:1})}),t.show()},i=function(t){return t.hide()};break;case"slide-fade":e=function(t,e){return t.animate({opacity:"toggle",height:"toggle"},e)},i=function(t,e){return t.animate({opacity:"hide",height:"hide"},e)};break;default:e=function(t){return t.show()},i=function(t){return t.hide()}}return{show:e,hide:i}}var d,n;d=ThriveGlobal.$j,n=TCB_Front,d.fn.tcbToggle=function(c){return this.each(function(){var t=d(this),e=t.closest(".thrv_toggle_title"),i=t.closest(".thrv_toggle"),n=e.next(),o=i.attr("data-animation-speed"),a=i.attr("data-animation"),r=t.hasClass("tve-state-expanded");void 0===c&&(c=r?"hide":"show");var s=g(a),l=i.data("tcbToggleInit");t.toggleClass("tve-state-expanded","show"===c),s[c](n,o).promise().done(function(){l&&t.hasClass("tve-state-expanded")&&!TCB_Front.isInViewport(t)&&d("html, body").scrollTop(t.offset().top),v(n,"show"===c)})})},d.fn.tcbTabsToggle=function(){var t=this.parents(".thrv-tabbed-content").first(),e="1"===t.attr("data-progress-style");if(!this.is(".tve_tS.tve-state-expanded")||e){var i,n=this,o=n.closest(".tve_scT"),a=o.find("> ul .tve_tS"),r=n.index(),s=o.find("> ul li"),l=a.index(),c=o.find('> .tve_scTC[style*="block"]'),d=c.data("contentHeight")||c.height(),h=o.find("> .tve_scTC").eq(r),u=a.attr("data-tve-custom-colour"),p=n.attr("data-tve-custom-colour"),f=t.attr("data-animation");f&&0<=l&&"carousel"===f&&(f=l<r?"slide-left":"slide-right"),i=g(f,d),n.attr("data-tve-custom-colour",void 0!==u&&!1!==u?u:""),a.attr("data-tve-custom-colour",void 0!==p&&!1!==p?p:""),c.is(":animated")&&setTimeout(function(){c.finish().hide()}),s.removeClass("tve_tS tve-state-expanded"),c.removeClass("tve-tc-visible"),n.siblings().removeClass("tve_tS tve-state-expanded"),v(c,!1),n.addClass("tve_tS tve-state-expanded"),h.addClass("tve-tc-visible"),i.hide(c,"medium").promise().done(function(){i.show(h,"medium"),v(h)}),e&&s.filter(function(t){return t<r}).addClass("tve-state-expanded")}else this.siblings().removeClass("tve_tS tve-state-expanded")},d.fn.tocToggle=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"show",e=d(this),i=e.closest(".tve-toc"),n=e.siblings(".tve-toc-content"),o=i.attr("data-animation-speed"),a=g(i.attr("data-animation"));e.toggleClass("tve-state-expanded","show"!==t),a[t](n,o),i.toggleClass("tve-toc-collapsed","show"!==t)}},"jumplink.js":function(t,e,i){var s,l;s=ThriveGlobal.$j,(l=TCB_Front).$document.on("click","a.tve-jump-scroll",function(t){if(this.hash.includes("comments")&&this.href!==this.hash)return!0;t.preventDefault(),t.stopPropagation();var e,i=s(this),n=s(t.target).closest(".tve-item-dropdown-trigger").length,o=i.closest("li.menu-item");try{e=s(this.hash)}catch(t){}if(o.length){if(n){var a=s.Event("click");return a.clickedTarget=t.target,void o.trigger(a)}o.trigger("menu_item_anchor_clicked")}if(e&&e.length){if(history&&history.pushState){var r=location.href;-1<r.indexOf("#")&&(r=r.substring(0,r.lastIndexOf("#"))),history.pushState({},document.title,r+this.hash)}return l.jumpScrollTo(e,this),!1}}),l.$document.on("click",".tve-jump-scroll[data-target]",function(t){t.preventDefault(),t.stopPropagation();var e,i=this.getAttribute("data-target");try{e=s(i)}catch(t){}if(e&&e.length){if(history&&history.pushState){var n=location.href;-1<n.indexOf("#")&&(n=n.substring(0,n.lastIndexOf("#"))),history.pushState({},document.title,n+i)}return l.jumpScrollTo(e,this),!1}}),TCB_Front.jumpScrollTo=function(i,t){var e="smooth"===t.getAttribute("jump-animation")?1500:100,n=null,o=0,a=s();function r(){a.each(function(){var t=s(this);o=Math.max(o,t.data("scroll_config").top+t.outerHeight())}),n&&(n.end=n.initial_end-o)}l.$body.off("tcb-sticky-remove tcb-sticky-add tcb-sticky-scroll-down").on("tcb-sticky-add",function(t,e){0<(e=e.filter(":not(.tve-toc)")).length&&0<i.closest(e.data("$parent")).length&&(a=a.add(e)),r()}).on("tcb-sticky-remove",function(t,e){a=a.not(e),r()}),function(t){if(0===t.closest(".tve-state-expanded").length&&t.hasClass("thrv_toggle_title")){var e=t.closest(".thrv_toggle");e.hasClass("tve-toggle-auto-collapse")&&e.find(".thrv_toggle_title").tcbToggle("hide")}else if(t.closest(".tve_tab_content:not(.tve-tc-visible)").length){var i=t.closest(".tve_tab_content:not(.tve-tc-visible)").index();t.closest(".thrv-tabbed-content").find(".tve_scT li").eq(i-1).tcbTabsToggle()}}(i),s("html, body").animate({scrollTop:i.offset().top-l.$body.offset().top},{duration:e,step:function(t,e){e.initial_end=e.initial_end||e.end,n=n||e}}).promise().then(function(){0===i.closest(".tve-state-expanded").length&&(i.hasClass("thrv_toggle_title")?i.trigger("click"):i.is(".tve_tab_title_item")&&i.tcbTabsToggle()),l.$body.trigger("tcb-jumplink-done",[i,t])})}},"menu.js":function(t,e,i){function v(t){return["auto","scroll","hidden"].includes(t.css("overflow"))}function p(t){return g(t).closest(".thrv_widget_menu")}var g,n,o,m;g=ThriveGlobal.$j,n=TCB_Front,m={init:function(){var i=this;tve_frontend_options.is_editor_page||this.frontendInit(),this.customMenuSwitchIcon(),o||(o=this.customMenuSwitchIcon.bind(this,!!tve_frontend_options.is_editor_page),n.addResizeCallback(o)),this.zIndexOrder(),g(".thrv_widget_menu").each(function(t,e){i.addMutationListener(e)})},zIndexOrder:function(){var t=g("ul.tve_w_menu");n.highestZIndex=t.length+6;var i=n.highestZIndex;t.each(function(){this.style.zIndex=i+5;var t=g(this),e=t.closest("#content");t.find("ul").css("z-index",i+6).parent().addClass("menu-item-has-children"),t.parentsUntil("body,#wrapper,#tve_editor").each(function(){var t=g(this);"static"===t.css("position")||t.hasClass("thrv_header")||t.css("z-index",i+7).addClass("tcb-mp")}),e.length&&"static"!==e.css("position")&&e.css("z-index",i+7).addClass("tcb-mp"),i--})},frontendInit:function(t){var e=this;function f(t,e){var i=t.attr("href"),n=t.attr("target");n||e.ctrlKey||e.metaKey?window.open(i,n||"_blank"):location.href=i}(t=t||n.$document).off("click.menu-disable-links").on("click.menu-disable-links",".tve-active-disabled .tve_w_menu .tve-state-active",function(t){var e=g(this).closest("li");if(!m.isHamburger(this)||!e.hasClass("menu-item-has-children"))return!(t.tvePreventNavigation=!0)}),t.off("menu_item_anchor_clicked").on("menu_item_anchor_clicked",".tve_w_menu li",function(){var t=g(this);m.isHamburger(t)&&requestAnimationFrame(function(){m.toggleState(t,!1)})}),t.off("click.menu_item_click").on("click.menu_item_click",".tve_w_menu li:not(.tve-regular .tcb-mega-drop li)",function(t){if(t.tvePreventNavigation)return!0;if(t.stopPropagation(),g(t.target).closest(".tve-regular .tcb-mega-drop").length)return!0;var e=g(this),i=e.children("a").first(),n=i[0],o=!!e.find("ul").length,a=g(t.target).closest(".tve-item-dropdown-trigger").length||g(t.clickedTarget).closest(".tve-item-dropdown-trigger").length,r=-1!==e.closest(".thrv_widget_menu").attr("class").indexOf("tve-custom-menu-switch-icon-"),s=e.closest(".tve_w_menu").hasClass("tve_vertical");if((r||s)&&o){if(!a&&e.hasClass("expand-children")&&function(t){var e=t.attr("href");return e&&"#"!==e&&0!==e.indexOf("javascript:")}(i))return i.hasClass("tve-jump-scroll")?i.trigger("click"):f(i,t),!1;e.toggleClass("expand-children");var l=e.find("ul").first(),c=e.hasClass("expand-children");l[c?"slideDown":"slideUp"](100);var d=l.closest(".section-content,.tve-cb");if(v(d)){var h={top:"",left:"",width:""};if(c){var u=l[0].getBoundingClientRect(),p=u.top;h={top:p,left:u.left,width:u.width},l.data("fixed-position",{top:p,scrollTop:d.scrollTop()})}l.toggleClass("fixed-menu-item",c).css(h)}return!1}return(!o||!a)&&(!!i.attr("href")&&(i.hasClass("tve-jump-scroll")?(i.trigger("click"),!0):(f(i,t),void(m.isHamburger(e)&&n.pathname===window.location.pathname&&n.host===window.location.host&&n.protocol===window.location.protocol&&requestAnimationFrame(function(){m.toggleState(e,!1)})))))}),t.off("click.prevent_navigation").on("click.prevent_navigation",".tve_w_menu li a:not(.thrv_text_element a):not(.tve-regular .tcb-mega-drop a)",function(t){t.preventDefault()}),t.off("click.custom_menu").on("click.custom_menu",".tve-m-trigger",function(){return m.toggleState(this),!1}),t.off("mousedown.close_menu").on("mousedown.close_menu",function(t){g(t.target).closest(".thrv_widget_menu").length||e.closeAll()}),n.addResizeCallback(this.customMenuResponsive),n.addResizeCallback(this.mobileResponsiveToggle),this.customMenuResponsive(),this.refreshActiveStates(t),TCB_Front.$window.off("hashchange.tcb").on("hashchange.tcb",this.refreshActiveStates.bind(this,TCB_Front.$body)),this.positionLogo(t),this.mobileResponsiveToggle(),t.find(".section-content,.tve-cb").each(function(t,e){var i=g(e);v(i)&&i.off("scroll.menu").on("scroll.menu",function(a){i.find(".fixed-menu-item").each(function(t,e){var i=g(e),n=i.data("fixed-position"),o=parseInt(n.top)+(n.scrollTop-a.currentTarget.scrollTop);i.css("top","".concat(o,"px"))})})})},mobileResponsiveToggle:function(){"mobile"===n.getDisplayType()?(n.$body.find(".vmd-right").attr("data-toggle-dir","vmd-right").removeClass("vmd-right").addClass("vmd-toggle"),n.$body.find(".vmd-left").attr("data-toggle-dir","vmd-left").removeClass("vmd-left").addClass("vmd-toggle")):n.$body.find(".vmd-toggle").each(function(t,e){var i=e.getAttribute("data-toggle-dir");i&&(e.classList.remove("vmd-toggle"),e.classList.add(i))})},refreshActiveStates:function(t){(0<arguments.length&&void 0!==t?t:TCB_Front.$body).find(".tve-custom-menu-type li > a").each(function(){if(this.getAttribute("href")&&"#"!==this.getAttribute("href")&&0!==this.getAttribute("href").indexOf("javascript")){var t=g(this),e=location.protocol===this.protocol&&location.hostname===this.hostname&&location.pathname===this.pathname&&location.hash===this.hash;t.toggleClass("tve-state-active",e),t.parent().toggleClass("tve-state-active",e)}})},customMenuResponsive:function(){g(".tve-m-trigger:visible").length?g(".tve-m-trigger").each(function(){var t=g(this).parent().find("> ul");if(!t.data("tve-colors-added")&&t.find("ul a").attr("data-tve-custom-colour")){var e=t.find("ul a").attr("data-tve-custom-colour");t.find("> li > a").each(function(){var t=g(this);t.attr("data-tve-custom-colour")&&(t.attr("data-o-color",t.attr("data-tve-custom-colour")),t.attr("data-tve-custom-colour",e))})}t.data("tve-colors-added",!0)}):(g(".tve-m-expanded").removeClass("tve-m-expanded"),g(".tve-m-trigger").each(function(){var t=g(this).parent().find("> ul");if(!t.data("tve-colors-added")&&t.find("> li > a").attr("data-o-color")){var e=t.find("> li > a"),i=e.attr("data-o-color");e.attr("data-tve-custom-colour",i).removeAttr("data-o-color")}t.data("tve-colors-added",!1)}))},customMenuSwitchIcon:function(t){var c=!(0<arguments.length&&void 0!==t)||t,d=n.getDisplayType();g(".thrv_widget_menu").each(function(){var t=g(this),e=t.attr("data-tve-allhoriz"),i=t.find(".thrive-shortcode-html > ul"),n=t.attr("data-tve-switch-icon"),o=!1,a=t.data("tve-frontend-init");t.data("tve-frontend-init",!0),n||e||(n="tablet,mobile");var r=n.split(","),s=t.hasClass("tve-regular")||!a&&!t.find(".tve-m-trigger").is(":visible");if(t.removeClass("tve-custom-menu-switch-icon-desktop tve-custom-menu-switch-icon-tablet tve-custom-menu-switch-icon-mobile"),c&&t.find("ul:not(.tcb-masonry.masonry)").removeAttr("style"),r.includes(d)?t.addClass("tve-custom-menu-switch-icon-".concat(d)):o=!0,t.toggleClass("tve-regular",o),t.toggleClass("tve-dropdown",!o),a&&o&&s)m.ensureOnScreenDropdown(t);else{if(t.toggleClass("tve-regular",o),t.toggleClass("tve-dropdown",!o),o)m.ensureRegularLogoSplit(t),t.find("ul").removeAttr("style"),t.find("li").removeClass("expand-children"),i.removeAttr("style"),setTimeout(function(){return t.find(".tcb-masonry").masonry()},1e3);else{if(m.ensureHamburgerLogoSplit(t),t.find(".tcb-masonry").each(function(){var t=g(this);t.data("masonry")&&t.masonry("destroy")}),!t.data("calc-dimensions")){t.find(".sub-menu").slideDown(0).slideUp(0).removeAttr("style"),t.data("calc-dimensions",!0);var l=i.attr("style","height: auto !important;max-height:none !important").outerHeight();i.removeAttr("style"),t.data("calc-height",l)}c?m.toggleState(t,!1):m.reposition(t)}m.ensureOnScreenDropdown(t)}})},isHamburger:function(t){var e=p(t);return e.length&&-1!==e.attr("class").indexOf("tve-custom-menu-switch-icon-")},isVertical:function(t){var e=p(t);return e.length&&e.find(".tve_vertical").length},toggleState:function(t,e,i){var n=this,o=2<arguments.length&&void 0!==i?i:100,a=p(t),r=a.find("ul").first(),s=r.hasClass("tve-m-expanded"),l=!s;if(void 0!==e&&(l=e),l===s)return a;if(a.find(".tve-m-trigger").toggleClass("tve-triggered-icon",e),!a.hasClass("tve-mobile-dropdown"))return l?a.parents(".tcb-mp").addBack().css("z-index",800):setTimeout(function(){n.zIndexOrder()},100),r.toggleClass("tve-m-expanded",e).removeAttr("style"),a;if(l){var c=a.closest(".tve-page-section-in, #tve_editor, #wrapper"),d=r.offsetParent().offset(),h=c.offset(),u=parseInt(a.data("calc-height")||"500")+"px";r.attr("style","visibility: visible;margin-left: 0 !important;left: "+(h.left-d.left)+"px;width:"+c.width()+"px !important;max-height:"+u+"px"),r.addClass("tve-m-expanded"),setTimeout(function(){r.css("max-height","none")},o)}else a.data("calc-height",r.outerHeight()),r.stop().slideUp(o,function(){r.removeClass("tve-m-expanded").removeAttr("style"),r.css("visibility","hidden")});return a},reposition:function(t){var e=p(t),i=e.find("ul").first();if(!i.hasClass("tve-m-expanded")||!e.hasClass("tve-mobile-dropdown"))return e;var n=e.closest(".tve-page-section-in, #tve_editor, #wrapper"),o=i.offsetParent().offset(),a=n.offset(),r=parseInt(e.data("calc-height")||"500")+"px";return i.attr("style","visibility: visible;margin-left: 0 !important;left: "+(a.left-o.left)+"px;width:"+n.width()+"px !important;max-height:"+r+"px"),setTimeout(function(){i.css("max-height","none")},100),e},closeAll:function(){var i=this;g(".thrv_widget_menu").each(function(t,e){i.toggleState(e,!1)})},positionLogo:function(t){(t||n.$body).find(".tcb-menu-logo-wrap").each(function(t,e){var i=g(e),n=i.siblings(),o=Math.floor(n.length/2);n.eq(o).before(i)})},ensureLogoSplit:function(t){var e=p(t);e.hasClass("tcb-logo-split")&&(this.isHamburger(e)?this.ensureHamburgerLogoSplit(t):this.ensureRegularLogoSplit(t))},ensureHamburgerLogoSplit:function(t,e){var i=1<arguments.length&&void 0!==e?e:p(t).find("li.tcb-menu-logo-wrap"),n=p(t);if(i.children().length){n.find(".tcb-hamburger-logo").remove();var o=g('<div class="tcb-hamburger-logo"></div>');o.append(i.children()),n.find(".thrive-shortcode-html").prepend(o)}},ensureRegularLogoSplit:function(t){var e=p(t),i=e.find(".tcb-hamburger-logo .tcb-logo"),n=e.find("li.tcb-menu-logo-wrap");i.length&&n.length&&n.empty().append(i),this.handleLogoOverflow(e)},handleLogoOverflow:function(t){var e=t.find("li.tcb-menu-logo-wrap");if(e.length)if(this.menuOverflows(t)){var i=e.outerHeight(!0),n=e.outerWidth();e.closest(".thrive-shortcode-html").css("padding-top",i+"px"),e.css({top:"-".concat(i,"px"),left:"calc(50% - ".concat(Math.round(n/2),"px)"),position:"absolute"})}else e.removeAttr("style"),e.closest(".thrive-shortcode-html").css("padding-top","");else t.find(".thrive-shortcode-html").css("padding-top","")},menuOverflows:function(t){var e=0;return t.find(".tve_w_menu > li").each(function(){e+=g(this).outerWidth(!0)}),e>t.parent().width()-5},addMutationListener:function(t){function e(){cancelAnimationFrame(i),i=requestAnimationFrame(n.handleLogoOverflow.bind(n,o))}var i,n=this,o=p(t);if(window.ResizeObserver){var a=o.find("ul.tve_w_menu")[0];if(!a)return;var r=new ResizeObserver(e);if(!o.data("resize-observer")){r.observe(a),o.data("resize-observer",r);var s=new MutationObserver(function(t){Array.from(t).forEach(function(t){t.target.classList.contains("tcb-menu-logo-wrap")||"UL"===t.target.tagName&&"childList"===t.type&&t.addedNodes.length&&Array.from(t.addedNodes).forEach(function(t){return s.observe(t,{attributes:!0})})}),o.hasClass("tve-regular")&&e()});o.find(".tve_w_menu > li:not(.tcb-menu-logo-wrap)").each(function(t,e){s.observe(e,{attributes:!0})})}var l=o.find("li.tcb-menu-logo-wrap");l.length&&!l.data("resize-observer")&&(l.data("resize-observer",r),r.observe(l[0]))}},ensureOnScreenDropdown:function(t){var e=p(t),n=e.hasClass("tve-regular"),o=e.offset().left+e.outerWidth();e.find("li:last-child > ul").each(function(t,e){var i=g(e);0<=Math.ceil(i.offset().left+i.outerWidth()-o)&&n?i.css({left:"auto",right:"0px"}):i.css({left:"",right:""})})}},e.exports=m},"pagination.js":function(t,e,i){var a,r,s,l,c,d,h,u,p,f;a=ThriveGlobal.$j,r="tcb-pagination-number",s="tcb-pagination-current",l="tcb-pagination-dots",c="tcb-pagination-link",d="tcb-pagination-button",h="tcb-permanently-hidden",u=function(){function i(t,e){_classCallCheck(this,i),this.type=t,this.list=e,this.$element=a('.tcb-pagination[data-list="'.concat(this.list.identifier,'"]'))}return _createClass(i,[{key:"addLoadListeners",value:function(){console.warn("Overwrite this function!")}},{key:"load",value:function(){console.warn("Overwrite this function!")}},{key:"render",value:function(){console.warn("Overwrite this function!")}},{key:"isLoading",value:function(){return this.list.isLoading()}},{key:"enableLoading",value:function(t){var e=0<arguments.length&&void 0!==t?t:"";this.list.enableLoading(e)}},{key:"disableLoading",value:function(){this.list.disableLoading()}},{key:"getTotalPostCount",value:function(){var t=0;return t+=Number(this.list.listArgs.attr.total_post_count)||0,t+=Number(this.list.listArgs.attr.total_sticky_count)||0}}],[{key:"factory",value:function(t,e){var i,n={load_more:f,numeric:p},o=ThriveGlobal.$j.Event("tcb_pagination_extra_classes.tcb");return e.$element.trigger(o),o.paginationClasses&&(n=_objectSpread({},n,{},o.paginationClasses)),void 0===n[t]?console.warn("A pagination class for this type does not exist!"):i=n[t],new i(t,e)}}]),i}(),p=function(){function o(t,e){var i;_classCallCheck(this,o);var n=(i=_possibleConstructorReturn(this,_getPrototypeOf(o).call(this,t,e))).list.listArgs;return i.firstPage=1,i.postsPerPage=Math.max(parseInt(n.query?n.query.posts_per_page:n.attr.posts_per_page),1),i.lastPage=Math.ceil(i.getTotalPostCount()/i.postsPerPage),i.currentPage=parseInt(n.query?n.query.paged:n.attr.paged),i.pagesAroundCurrent=parseInt(n.attr.pages_near_current),i.totalPages=i.lastPage,i.buttons={},i.$element.attr("data-ct")||i.$element.attr("data-ct","pagination-123"),["first","last","prev","next"].forEach(function(t){var e=i.$element.find(".".concat(d,".tcb-pagination-").concat(t));switch(t){case"first":case"last":e.attr("data-page",i["".concat(t,"Page")])}i.buttons["$"+t]=e}),i.$pageNumberContainer=i.$element.find(".tcb-pagination-numbers-wrapper"),i.$label=i.$element.find(".tcb-pagination-label"),i}return _inherits(o,u),_createClass(o,[{key:"addLoadListeners",value:function(){var i=this;this.$element.on("click",".".concat(d),function(t){var e=a(t.target).closest(".".concat(d));i.load(e.attr("data-page"))}),this.$element.on("click",".".concat(r,":not(.").concat(s,", .").concat(l,")"),function(t){return i.load(t.currentTarget.dataset.page)})}},{key:"load",value:function(t){var e=this;if(t&&!this.isLoading()){this.enableLoading(),this.currentPage=parseInt(t);var i=this.list.listArgs;void 0===i.query?i.attr.paged=this.currentPage:i.query.paged=this.currentPage,this.list.getItems(function(t){e.list.insertItems(t,!0),e.render(),e.disableLoading()},i)}}},{key:"render",value:function(){this.renderButtons(),this.renderLabel(),this.renderPageNumbers(),this.$element.trigger("tcb_after_numeric_pagination_render",this),this.$element.removeClass(h)}},{key:"renderButtons",value:function(){var e=this;this.buttons.$prev.attr("data-page",this.currentPage-1),this.buttons.$next.attr("data-page",this.currentPage+1);var i=1===parseInt(tve_frontend_options.is_editor_page);[this.buttons.$first,this.buttons.$prev].forEach(function(t){t.hasClass(h)||t.toggleClass("tcb-disabled-pagination-button",!i&&e.currentPage<=e.firstPage)}),[this.buttons.$last,this.buttons.$next].forEach(function(t){t.hasClass(h)||t.toggleClass("tcb-disabled-pagination-button",!i&&e.currentPage>=e.lastPage)})}},{key:"renderLabel",value:function(){var n=this;this.$label.find(".thrive-shortcode-content").each(function(t,e){var i=e.dataset.shortcode;e.innerText=" ".concat(n.getLabelValue(i)," ")})}},{key:"getLabelValue",value:function(t){var e;switch(t){case"tcb_pagination_current_page":e=this.currentPage;break;case"tcb_pagination_total_pages":e=this.totalPages;break;case"tcb_pagination_current_posts":e=(this.currentPage-1)*this.postsPerPage+1+"-"+this.currentPage*this.postsPerPage;break;case"tcb_pagination_total_posts":e=this.totalPages*this.postsPerPage;break;default:e=""}return e}},{key:"renderPageNumbers",value:function(){this.$pageNumberContainer.empty();for(var t=!0,e=1;e<=this.totalPages;e++){var i=void 0;if(e===this.currentPage)i="current";else if(1===e||e>=this.currentPage-this.pagesAroundCurrent&&e<=this.currentPage+this.pagesAroundCurrent||e===this.totalPages)i="link",t=!0;else{if(i="dots",!t)continue;t=!1}this.$pageNumberContainer.append(o.renderPageNumber(e,i))}}}],[{key:"renderPageNumber",value:function(t,e){var i,n=[r,"thrv_wrapper"],o={};switch(1<arguments.length&&void 0!==e?e:""){case"current":n.push(s),i=".".concat(s);break;case"dots":n.push(l),i=".".concat(l),t="...";break;case"link":n.push(c),i=".".concat(c),o={"data-page":t},t='<a href="javascript:void(0)">'.concat(t,"</a>")}return o["data-selector"]=i,a("<p>".concat(t,"</p>")).addClass(n.join(" ")).attr(o)}}]),o}(),f=function(){function n(t,e){var i;return _classCallCheck(this,n),(i=_possibleConstructorReturn(this,_getPrototypeOf(n).call(this,t,e))).$button=i.$element.find(".tcb-pagination-load-more-button"),i}return _inherits(n,u),_createClass(n,[{key:"addLoadListeners",value:function(){this.$button.on("click",this.load.bind(this))}},{key:"load",value:function(){var e=this;if(!this.isLoading()){this.enableLoading("load-bot");var t=this.list.listArgs;void 0===t.query?t.attr.paged+=1:t.query.paged+=1,this.list.getItems(function(t){e.list.insertItems(t),e.render(),e.disableLoading()},t)}}},{key:"render",value:function(){var t,e=this.list.listArgs,i=1===parseInt(tve_frontend_options.is_editor_page);t=e.query?e.query.paged*e.query.posts_per_page:e.attr.paged*e.attr.posts_per_page,!i&&t>=this.getTotalPostCount()&&this.$element.hide(),this.$element.removeClass(h)}}]),n}(),e.exports=u},"post-list.js":function(t,e,i){var a,o,n;a=ThriveGlobal.$j,o=i("./pagination"),n=function(){function n(t){_classCallCheck(this,n),this.$element=t,this.content="",this.listArgs={};var e=this.getAttr("data-css"),i=ThriveGlobal.$j.Event("tcb_post_list_identifier.tcb");this.$element.trigger(i),i.identifier&&(e=i.identifier),this.identifier=e,this.listIdentifier="article",tve_frontend_options.is_editor_page?this.editorInit():this.frontendInit()}return _createClass(n,[{key:"getPaginationInstance",value:function(){if(this.listArgs&&this.listArgs.attr){var t=this.listArgs.attr["pagination-type"];if(t.length&&"none"!==t)return o.factory(t,this)}}},{key:"renderPagination",value:function(){this.pagination=this.getPaginationInstance(),this.pagination&&(tve_frontend_options.is_editor_page||this.pagination.addLoadListeners(),this.pagination.render())}},{key:"editorInit",value:function(){this.listArgs={attr:{"pagination-type":this.getAttr("data-pagination-type"),total_post_count:this.getAttr("data-total_post_count")?this.getAttr("data-total_post_count"):100,pages_near_current:this.getAttr("data-pages_near_current")?this.getAttr("data-pages_near_current"):2},query:{posts_per_page:this.getAttr("data-posts_per_page")?this.getAttr("data-posts_per_page"):6,paged:1}}}},{key:"frontendInit",value:function(){var e=this;"undefined"==typeof tcb_post_lists?console.warn("Error initializing the post list parameters"):(this.listArgs=tcb_post_lists.find(function(t){return e.$element.is(t.identifier)}),this.listArgs&&(this.listArgs.query&&void 0!==this.listArgs.query.offset&&delete this.listArgs.query.offset,this.listArgs.attr.queried_object=0,this.content=a('.tcb-post-list-template[data-identifier="'+this.listArgs.template+'"]').html()),TCB_Front.$document.on("mousedown",'.tcb-post-list[data-disabled-links="1"] > article',function(t){switch(t.button){case 0:window.open(a(this).attr("data-permalink"),"_self");break;case 1:window.open(a(this).attr("data-permalink"),"_blank")}}))}},{key:"getAttr",value:function(t){return this.$element.attr(t)}},{key:"getItems",value:function(e,t){var i=this,n=1<arguments.length&&void 0!==t?t:this.listArgs;a.ajax({url:tve_frontend_options.routes.posts+"/html",method:"POST",headers:{"X-WP-Nonce":tve_frontend_options.nonce},data:{content:this.content,args:n},success:function(t){"function"==typeof e&&e(t),i.initItems(),TCB_Front.event_triggers(i.$element)},error:function(){console.warn("There was an error and the content could not be loaded.")}})}},{key:"insertItems",value:function(t,e){var i=1<arguments.length&&void 0!==e&&e;if(t.count&&t.posts){var n=this.$element.clone().empty();for(var o in t.posts)t.posts.hasOwnProperty(o)&&n.append(t.posts[o]);i?(this.$element.replaceWith(n),this.identifier.includes("tve-u-")?this.$element=a(".tcb-post-list[data-css=".concat(this.identifier,"]")):this.$element=a(this.identifier),TCB_Front.postGridLayout()):(this.$element.append(n.html()),this.masonryRedo())}}},{key:"isLoading",value:function(){return this.$element.data("loading")}},{key:"enableLoading",value:function(t){var e=0<arguments.length&&void 0!==t?t:"";this.$element.addClass("tve-loading"+(e.length?" "+e:"")),this.$element.data("loading",!0)}},{key:"disableLoading",value:function(){var t=this;setTimeout(function(){return t.$element.removeClass("tve-loading load-bot")},100),this.$element.data("loading",!1)}},{key:"masonryRedo",value:function(t){var e=0<arguments.length&&void 0!==t?t:this.$element;if(e.length&&e.data("masonry")){var i=e.find("".concat(this.listIdentifier,":not(.masonry-brick)"));e.masonry("appended",i),e.masonry("layout")}}},{key:"initItems",value:function(){(this.$element.find(".tcb-custom-field-source.thrv-rating").length||this.$element.find("[data-shortcode-id*='acf_']").length)&&TCB_Front.dynamicElements.init()}}],[{key:"repositionFooter",value:function(){var t=a(".thrv_footer"),e=document.body,i=document.documentElement,n=Math.max(e.scrollHeight,e.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);t.length&&n>e.offsetHeight&&t.css({position:"",top:""})}}]),n}(),e.exports=n},"query-string.js":function(t,i,e){!function(){"undefined"==typeof URLSearchParams&&(window.URLSearchParams=function(t){var i=this;i.searchString=t,i.get=function(t){var e=new RegExp("[?&]"+t+"=([^&#]*)").exec(i.searchString);return null==e?null:decodeURI(e[1])||0}});var e=new URLSearchParams(window.location.search);i.exports={get:function(t){return"string"!=typeof t&&(t=""),e.get(t)}}}(ThriveGlobal.$j,TCB_Front)},"reserved-terms.js":function(t,e,i){ThriveGlobal.$j,TCB_Front,e.exports=["attachment","attachment_id","author","author_name","calendar","cat","category","category__and","category__in","category__not_in","category_name","comments_per_page","comments_popup","custom","customize_messenger_channel","customized","cpage","day","debug","embed","error","exact","feed","fields","hour","link_category","m","minute","monthnum","more","name","nav_menu","nonce","nopaging","offset","order","orderby","p","page","page_id","paged","pagename","pb","perm","post","post__in","post__not_in","post_format","post_mime_type","post_status","post_tag","post_type","posts","posts_per_archive_page","posts_per_page","preview","robots","s","search","second","sentence","showposts","static","status","subpost","subpost_id","tag","tag__and","tag__in","tag__not_in","tag_id","tag_slug__and","tag_slug__in","taxonomy","tb","term","terms","theme","title","type","types","w","withcomments","withoutcomments","year"]},"smartcomplete.js":function(t,e,i){var a;ThriveGlobal.$j,a=TCB_Front,e.exports={init:function(t){var i=this;tve_frontend_options.is_editor_page?t.find("input[data-hide],textarea[data-hide]").each(function(t,e){i.handleInput(e,!1)}):setTimeout(function(){return i.handleSmartComplete(t)})},handleSmartComplete:function(t){var o=this;t.find("[default-value]:not([data-complete-type])").each(function(t,e){e.value=e.getAttribute("default-value")}),t.find("[data-complete-type]").each(function(t,e){var i=e.dataset.completeValue;switch(e.dataset.completeType){case"user":if(e.dataset.completeValue)if(e.dataset.completeValue.includes("wp"))i=tve_frontend_options.current_user[e.dataset.completeValue.replace("wp.","")];else if("ip"===e.dataset.completeValue)i=tve_frontend_options.ip;else{var n=TCB_Front.detectBrowser();(i=Object.keys(n).filter(function(t){return n[t]&&"webkit"!==t}).toString()).includes("version")&&(i=i.replace("version",TCB_Front.browser.version))}break;case"time":i=o.convertDate((e.dataset.completeValue||"")+" HH:mm:ss");break;case"query":i=TCB_Front.queryString.get(e.dataset.completeValue);break;case"post":i=tve_frontend_options.post_request_data[e.dataset.completeValue];break;case"cookie":i=a.getCookie(e.dataset.completeValue);break;case"content":i=tve_frontend_options[e.dataset.completeValue];break;case"source":i=document.referrer;break;case"shortcode":e.parentNode.dataset.completeValue&&(i=e.parentNode.dataset.completeValue),i=i.replace(/\[(.*?)\]/g,"")}!i&&e.getAttribute("data-hide")&&o.handleInput(e,!1),(i=i||e.getAttribute("default-value"))&&(e.value=i)}),t.find('[type="radio"][default-value]').each(function(){this.checked=this.value===this.getAttribute("default-value")}),t.find('[type="checkbox"][default-value]').each(function(){this.checked="checked"===this.getAttribute("default-value")})},handleInput:function(t,e){var i=1<arguments.length&&void 0!==e&&!e?"remove":"add",n=t.closest("form").querySelector('[data-label-for="'.concat(t.parentElement.getAttribute("data-label"),'"]'));t.parentElement.classList[i]("tcb-permanently-hidden"),t.parentElement.previousElementSibling&&"label"===t.parentElement.previousElementSibling.tagName.toLowerCase()&&t.parentElement.previousElementSibling.classList[i]("tcb-permanently-hidden"),n&&n.classList[i]("tcb-permanently-hidden")},convertDate:function(t){var e=new Date;function i(t,e){var i=t+"";for(e=e||2;i.length<e;)i="0"+i;return i}var n=e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+n)).replace(/(^|[^\\])yy/g,"$1"+n.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+n);var o=e.getMonth()+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+["\0","January","February","March","April","May","June","July","August","September","October","November","December"][o])).replace(/(^|[^\\])MMM/g,"$1"+["","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][o])).replace(/(^|[^\\])MM/g,"$1"+i(o))).replace(/(^|[^\\])M/g,"$1"+o);var a=e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+["","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][a])).replace(/(^|[^\\])ddd/g,"$1"+["","Sun","Mon","Tue","Wed","Thu","Fri","Sat"][a])).replace(/(^|[^\\])dd/g,"$1"+i(a))).replace(/(^|[^\\])d/g,"$1"+a);var r=e.getHours(),s=12<r?r-12:0==r?12:r;t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+i(r))).replace(/(^|[^\\])H/g,"$1"+r)).replace(/(^|[^\\])hh+/g,"$1"+i(s));var l=e.getMinutes();t=t.replace(/(^|[^\\])mm+/g,"$1"+i(l));var c=e.getSeconds();return t=t.replace(/(^|[^\\])ss+/g,"$1"+i(c))}}},"social-share.js":function(t,e,i){var u,n;u=ThriveGlobal.$j,n=TCB_Front,e.exports=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:n.$body;if(!(1<arguments.length&&void 0!==arguments[1]&&arguments[1])){var e=t.find(".thrv_social.thrv_social_custom"),h=TCB_Front.getDisplayType();e.each(function(t,e){var i=u(e),n=i.attr("data-device-config"),o=n&&n.length?JSON.parse(n):{};if(o[h]){var a=o[h].button_type||"tve_social_itb",r="1"===o[h].isFullWidth,s=o[h].showCount,l="1"===o[h].isVertical,c=i.find(".tve_social_items").attr("class").replace(/(tve_social_items|tve_social_custom)/g,"").match(/(\s+)?tve_social_([a-z]{2,3})/),d=c?"tve_social_"+c[2]:"tve_social_itb";d!==a&&i.find(".tve_social_items").removeClass(d).addClass(a),o[h].isFullWidth&&i.toggleClass("tcb-social-full-width",r),"0"===s&&i.find(".tve_s_share_count").remove(),o[h].isVertical&&i.toggleClass("tcb-social-vertical",l)}})}}},"sticky.js":function(t,k,e){!function(h,u){u.identifiers=_objectSpread({},u.identifiers||{},{parentStickyParent:".tcb-col,.tve-cb,.tve-page-section-in,#tve_editor",pageStickyParent:"#tve_editor,.symbol-section-in,.thrv_wrapper.section,.thrive-symbol-shortcode,.tcb-post-list",stickyParentType:".tcb-col,.tve-cb,.tve-page-section-in",parentZindexFix:""});function t(e,i){var n;return function(){clearTimeout(n);var t=!n||o;n=setTimeout(function(){n=null},i),t&&e.apply(this,arguments)}}var p,f,v,g,m,_,r,a={boxSizing:"",marginTop:"",marginLeft:"",height:"",top:"",bottom:"",position:"",opacity:"",minWidth:"",maxWidth:"",textDecoration:"",zIndex:""},b=t(function(t,e){t.stop().animate(e,200)},200),s=h(),o=!1,l={},e={},n=!1;function c(t){return Math.min(f.top+p.data("$$position").top+t-_.top+p.data("marginTop"),(p.data("append-target")||p.parent()).height()-p.outerHeight())}function i(t,e){(t=t[1<arguments.length&&void 0!==e&&e?"filter":"find"]("[data-tve-scroll]")).filter(":not(.tcb-".concat(u.getDisplayType(),"-hidden)")).each(function(){try{var t=JSON.parse(this.dataset.tveScroll),e=h(this);if(e.hasClass("thrive-symbol-shortcode")&&(e=e.parent()),e.addClass("tve-scroll-".concat(t.mode)),"parallax"===t.mode){if(!t.parallax||!Object.keys(t.parallax).length)return;var i=e.offset(),n=e.outerHeight(),o={width:e.outerWidth(),height:n,top:i.top,left:i.left,elementRange:n/2+window.innerHeight};e.data("parallaxSettings",t.parallax),e.data("elem_data",o)}else if(r)return;if(e.data("$parent",e.parent()),t.top=parseInt(t.top||"0"),t.end=t.end||"default",t.stickyPosition=t.stickyPosition||"top","bottom"===t.stickyPosition){var a=e.css("display").trim();"none"===a&&(a="block"),e.data("defaultTop",t.top),e.data("previousTop",t.top),e.data("defaultDisplay",a),t.top=window.innerHeight-t.top-e.outerHeight()}else t.top+=u.body_offset?u.body_offset.top:h("body").offset().top;e.data("scroll_config",t).data("append-target",function(t,e){if(t.find("iframe,video").length||t.find(".tcb-video-background-el").length||t.hasClass("thrv_header"))return!1;switch(e){case"parent":return t.parent().closest(u.identifiers.parentStickyParent);case"page":default:return t.closest(u.identifiers.pageStickyParent)}}(e,t.end)),"element"===t.end&&e.data("stop-target",h("#"+(t.el_id&&t.el_id.replace("#","")||"some-not-found-id"))),r||delete this.dataset.tveScroll,s=s.add(e)}catch(t){console.warn(t)}})}function d(t,e,i){o=i,s.each(function(){if(T(this),!function(){if(!f.disabled||!f.disabled.length)return!0;if(r){var e=!0;return f.disabled.forEach(function(t){("desktop"===t&&!TCB_Front.$body.is(".preview-tablet,.preview-mobile")||u.$body.hasClass("preview-".concat(t)))&&(e=!1)}),e}var t=u.$window.width();return t<=767?-1===f.disabled.indexOf("mobile"):t<=1023?-1===f.disabled.indexOf("tablet"):-1===f.disabled.indexOf("desktop")}()||n||!p.hasClass("tve-sticky-".concat(f.end,"-hidden"))&&!p.is(":visible"))return l.on_scroll_up_default(t,!0),"parallax"===f.mode&&y(p,n),void p.removeClass("tve-scroll-".concat(f.mode));"parallax"!==f.mode&&(g||(p.data("$$offset",p.offset()),p.data("marginTop",Number(p.css("margin-top").replace("px",""))),p.data("$$position",p.position()),p.data("$$scroll",t),"element"===f.end&&p.data("$$stop-offset",p.data("stop-target").offset()||{top:1e6})),_=p.data("$$offset")),l["on_scroll_"+e+"_"+f.end].call(l,t)})}function y(t,e){var i=0<arguments.length&&void 0!==t?t:u.$body,n=1<arguments.length&&void 0!==e&&e;i.each(function(t,e){u.inlineCssVariable(e,{"--parallaxR":n?"":"0","--parallaxB":n?"":"0","--parallaxS":n?"":"1","--parallaxO":n?"":"1","--parallaxTX":n?"":"0","--parallaxTY":n?"":"0","--parallaxRY":n?"":"0","--parallaxP":n?"":"1000px"})})}function w(t,e){var i=!(0<arguments.length&&void 0!==t)||t,n=1<arguments.length&&void 0!==e?e:"default",o=i?"addClass":"removeClass";i&&p.hasClass("tve-sticky-".concat(n,"-hidden"))?p[0].style.setProperty("display","none","important"):p[o]("tve-sticky-".concat(n,"-hidden"))["".concat(i?"fadeOut":"fadeIn")]({duration:600,complete:function(){p[0].style.setProperty("display","".concat(i?"none":"".concat(p.data("defaultDisplay"))),"important"),p[0].style.setProperty("position","fixed","important")}})}function T(t){p=h(t),f=p.data("scroll_config"),m="parallax"!==f.mode?("bottom"===f.stickyPosition&&(f.top=window.innerHeight-p.data("defaultTop")-p.outerHeight(),p.data("scroll_config",f)),v="tve-sticky-"+f.end,g=t.classList.contains(v),p.data("clone-sticky")||h()):h()}l.on_scroll_down_default=function(t,e){var i=0,n=(e=e||{}).position||"fixed",o=!0;"appear"===f.mode&&(e.top=-p.outerHeight(),i=-e.top);var a=t+f.top>_.top+i;if("bottom"===f.stickyPosition&&(a=t+window.innerHeight>_.top+p.height()+Number(p.data("defaultTop")),o=!1,u.isBottomScroll(t)?w(!0,"default"):g&&f.top!==p.data("previousTop")&&(p[0].style.setProperty("top","".concat(f.top,"px")),p.data("previousTop",f.top))),g)return"appear"===f.mode&&b(p,e),void(o&&u.$body.trigger("tcb-sticky-add",[p]));if(a){!function(){if(!(m=p.data("clone-sticky"))){var t=p.outerHeight();p.parent().hasClass("tcb-clear")&&(t=p.parent().outerHeight()),m=h('<div class="thrv_wrapper"></div>').css({boxSizing:"border-box",padding:0,width:p.outerWidth(),height:t,marginTop:p.css("margin-top"),marginBottom:p.css("margin-bottom"),marginLeft:p.css("margin-left"),marginRight:p.css("margin-right"),position:p.css("position"),left:p.css("left"),float:p.css("float")}),p.data("clone-sticky",m),p.trigger("tcb.sticky.ensure_placeholder")}}(),p.addClass(v),delete e.position,p.before(m);var r=m.offset(),s=p[0].classList.contains("tcb-window-width")?0:r.left;p.data("$$offset",r),p.data("saved_props",{offset:r,width:p[0].style.width||"",left:p[0].style.left||""}),p.css(h.extend({width:p.width(),height:p.height(),top:"".concat(f.top,"px"),left:"".concat(s,"px")},e));var l="0px";if("parent"===f.end){var c=p.css("margin-left");c===p.css("margin-left")&&(l=c)}p[0].style.setProperty("margin-top","0px","important"),p[0].style.setProperty("margin-left",l,"important"),p[0].style.setProperty("min-width","0","important"),p[0].style.setProperty("max-width","none","important"),p[0].style.setProperty("position",n,"important"),p[0].style.setProperty("box-sizing","content-box","important");var d=Number(p.css("z-index"));p[0].style.setProperty("z-index",isNaN(d)?"14":Math.max(d,14),"important"),p.closest(u.identifiers.parentZindexFix).css("z-index",isNaN(d)?"14":Math.max(d,14)),g=!0,p.data("append-target")&&(p.appendTo(p.data("append-target")),p.data("$parent").is("a")&&(p.wrap(p.data("$parent").clone().empty().addClass("tcb-sticky-anchor")),p[0].style.setProperty("text-decoration","inherit","important"))),p.hasClass("thrv_header")&&p[0].style.setProperty("z-index",90,"important"),o&&u.$body.trigger("tcb-sticky-add",[p]),p.trigger("tcb.sticky.is_sticky")}},l.on_scroll_up_default=function(t,e){if(m&&m.length&&g){(e=!!e)||"appear"!==f.mode||b(p,{top:f.top});var i=m.offset().top||0;p.data("saved_props")&&(i=p.data("saved_props").offset.top);var n=t+f.top<=i,o=!0;"bottom"===f.stickyPosition&&(n=t+window.innerHeight<=i+p.height()+Number(p.data("defaultTop")),o=!1,p.hasClass("tve-sticky-default-hidden")&&w(!1),g&&f.top!==p.data("previousTop")&&(p[0].style.setProperty("top","".concat(f.top,"px")),p.data("previousTop",f.top))),e||n?(g=!1,p.removeClass(v).stop().css(Object.assign({},a,p.data("saved_props"))),document.contains(m[0])&&p.data("append-target")&&m.before(p),m.detach(),u.$body.find(".tcb-sticky-anchor:empty").remove(),o&&u.$body.trigger("tcb-sticky-remove",p)):o&&u.$body.trigger("tcb-sticky-add",[p])}},l.on_scroll_down_parent=function(t){var e=p.data("prevTop"),i=e||0,n=c(t);if(t&&"bottom"===f.stickyPosition&&n&&n===i&&(w(!0,"parent"),p.data("hideTop",n)),e&&p.data("prevTop",e?n:"0"),g)p.css({top:n}),"bottom"!==f.stickyPosition&&u.$body.trigger("tcb-sticky-add",[p]);else{var o=p.data("appendTarget")||h(),a=o.length&&(o.is(p.data("$parent"))||o.is(u.identifiers.stickyParentType))||["left","right"].includes(p.css("float"));l.on_scroll_down_default(t,{position:"absolute",left:p.data(a?"$$position":"$$offset").left,top:n})}},l.on_scroll_up_parent=function(t){if(l.on_scroll_up_default(t),g){var e=c(t);"bottom"===f.stickyPosition&&p.hasClass("tve-sticky-parent-hidden")&&(p.data("hideTop")!==e?(w(!1,"parent"),p.data("prevTop",0),p.data("hideTop",0)):p[0].style.setProperty("display","none","important")),p.css("top",e)}},l.on_scroll_down_element=function(t){var e=p.data("$$stop-offset").top-t-p.outerHeight(),i=Math.min(f.top,e),n={top:i};t&&"bottom"===f.stickyPosition&&i&&i===e&&w(!0,"element"),g?(p.css("top",n.top),"bottom"!==f.stickyPosition&&u.$body.trigger("tcb-sticky-add",[p])):l.on_scroll_down_default(t,n)},l.on_scroll_up_element=function(t){if(l.on_scroll_up_default(t),g){var e=Math.min(f.top,p.data("$$stop-offset").top-t-p.outerHeight());p.css("top",e),"bottom"===f.stickyPosition?p.hasClass("tve-sticky-element-hidden")&&e===f.top&&w(!1,"element"):u.$body.trigger("tcb-sticky-add",[p])}},l.on_scroll_down_parallax=l.on_scroll_up_parallax=function(t){var e=p.data("elem_data"),r=p.data("parallaxSettings");if(r&&Object.keys(r).length&&e){var s,l=[],c=function(t,e){var i=e.top-t-window.innerHeight;return 100/e.elementRange*(-1*i)}(t,e);Object.keys(r).forEach(function(t){var e=r[t],i="";if(c>e.start){var n,o=function(t,e){var i=0,n=e.direction;if(["in-out","out-in"].includes(n)&&(n=n.split("-")[t<=e.middle?"0":"1"],"in-out"===e.direction)){var o=e.middle-e.start;"in"===n?t+=o:t-=o,t===e.middle&&(t="in"===n?-1:101)}t<e.start?i="in"===n?0:100:t<e.end?(i=function(t,e){return+(e/t*100).toFixed(2)}(e.end-e.start,t-e.start),"out"===n&&(i=100-i)):i="out"===n?0:100;return i}(s=Number(c>e.end?e.end:c),e);switch(t){case"vertical":case"horizontal":case"rotate":n=function(t,e){return t*e}(s="in"===e.direction?-1*s:s,e.speed);break;case"scale":n=1+e.speed*o/1e3;break;case"blur":n=e.speed-d(e.speed,o);break;case"transparency":var a=e.speed/10;n=1-a+d(a,o);break;case"3dperspective":e.perspective=Number(e.perspective),n="from"===e.direction?(1e3-e.perspective)*(s-e.start)/100*e.speed+e.perspective:(s=100-s,Math.max(e.perspective,e.perspective*s/100*e.speed)),n=Math.max(n,100),u.inlineCssVariable(p,"--parallaxRY")!=="".concat(e.degrees,"deg")&&l.push({key:"RY",value:"".concat(e.degrees,"deg")})}i="".concat(n).concat(e.settings.um)}l.push({key:e.settings.key,value:i})}),l.length&&l.forEach(function(t){u.inlineCssVariable(p,"--parallax".concat(t.key),t.value)})}function d(t,e){return t*e/100}};var C=t(function(){s.each(function(){T(this),l.on_scroll_up_default(0,!0),h(this).data("clone-sticky").css({width:p.outerWidth()})}),d(u.$document.scrollTop(),"down",!0)},50);e.initSticky=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:u.$body;r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i(t),s.length&&(y(),r||(u.$body[0].style.overflowX="hidden")),u.add_scroll_callback(d),u.addResizeCallback(C)},e.destroyScrollBehavior=function(){n=!0,TCB_Front.$window.trigger("scroll"),s=h(),n=!1},e.forceAddElement=function(t){s=s.add(t)},k.exports=e}(ThriveGlobal.$j,TCB_Front)},"svg-icons.js":function(t,e,i){var a,n;a=ThriveGlobal.$j,TCB_Front,n={get:function(t){var e=this.icons[t]||"";return e?'<svg xmlns="http://www.w3.org/2000/svg" class="tcb-{icon}" viewBox="{viewbox}">{html}</svg>'.replace("{viewbox}",e.viewbox||"0 0 32 32").replace("{icon}",t).replace("{html}",e.html||e):""},render:function(t,e,i,n){var o=!(3<arguments.length&&void 0!==n)||n;t[2<arguments.length&&void 0!==i?i:"html"](this.get(e)),o&&t.addClass("thrv-svg-icon")},migrate:function(t){var i=this,n=["cross","forward"],o={tve_s_fb_share:"facebook",tve_s_t_share:"twitter",tve_s_in_share:"linkedin",tve_s_pin_share:"pinterest",tve_s_xing_share:"xing"};t.find('[class^="thrv-icon-"], [class*=" thrv-icon-"], .tve_s_item').not(".thrv-svg-icon").each(function(t,e){n.some(function(t){if(e.className.includes(t))return i.render(a(e),t),!0})||Object.keys(o).forEach(function(t){e.className.includes(t)&&!e.querySelector(".tcb-icon")&&i.render(a(e).find(".tve_s_icon"),o[t])})}),this.render(t.find(".rv_button_rounded_rectangle_light .overlay_play_button:empty"),"yt-play")},icons:{spinner9:'<path d="M16 0c-8.711 0-15.796 6.961-15.995 15.624 0.185-7.558 5.932-13.624 12.995-13.624 7.18 0 13 6.268 13 14 0 1.657 1.343 3 3 3s3-1.343 3-3c0-8.837-7.163-16-16-16zM16 32c8.711 0 15.796-6.961 15.995-15.624-0.185 7.558-5.932 13.624-12.995 13.624-7.18 0-13-6.268-13-14 0-1.657-1.343-3-3-3s-3 1.343-3 3c0 8.837 7.163 16 16 16z"></path>',cross:'<path d="M31.708 25.708c-0-0-0-0-0-0l-9.708-9.708 9.708-9.708c0-0 0-0 0-0 0.105-0.105 0.18-0.227 0.229-0.357 0.133-0.356 0.057-0.771-0.229-1.057l-4.586-4.586c-0.286-0.286-0.702-0.361-1.057-0.229-0.13 0.048-0.252 0.124-0.357 0.228 0 0-0 0-0 0l-9.708 9.708-9.708-9.708c-0-0-0-0-0-0-0.105-0.104-0.227-0.18-0.357-0.228-0.356-0.133-0.771-0.057-1.057 0.229l-4.586 4.586c-0.286 0.286-0.361 0.702-0.229 1.057 0.049 0.13 0.124 0.252 0.229 0.357 0 0 0 0 0 0l9.708 9.708-9.708 9.708c-0 0-0 0-0 0-0.104 0.105-0.18 0.227-0.229 0.357-0.133 0.355-0.057 0.771 0.229 1.057l4.586 4.586c0.286 0.286 0.702 0.361 1.057 0.229 0.13-0.049 0.252-0.124 0.357-0.229 0-0 0-0 0-0l9.708-9.708 9.708 9.708c0 0 0 0 0 0 0.105 0.105 0.227 0.18 0.357 0.229 0.356 0.133 0.771 0.057 1.057-0.229l4.586-4.586c0.286-0.286 0.362-0.702 0.229-1.057-0.049-0.13-0.124-0.252-0.229-0.357z"></path>',checkmark:'<path d="M27 4l-15 15-7-7-5 5 12 12 20-20z"></path>',forward:{viewbox:"0 0 18 18",html:'<path d="M16.711 8.29l-6-5.996c-0.391-0.391-1.026-0.391-1.417 0s-0.391 1.025 0 1.417l4.293 4.29h-11.59c-0.553 0-1.001 0.448-1.001 1s0.448 1 1.001 1h11.59l-4.292 4.29c-0.391 0.391-0.391 1.025 0.001 1.417s1.026 0.391 1.417 0l6-5.997c0.196-0.196 0.294-0.453 0.294-0.71s-0.097-0.514-0.294-0.71z"></path>'},sort:{viewbox:"0 0 16 28",html:'<path d="M16 17q0 0.406-0.297 0.703l-7 7q-0.297 0.297-0.703 0.297t-0.703-0.297l-7-7q-0.297-0.297-0.297-0.703t0.297-0.703 0.703-0.297h14q0.406 0 0.703 0.297t0.297 0.703zM16 11q0 0.406-0.297 0.703t-0.703 0.297h-14q-0.406 0-0.703-0.297t-0.297-0.703 0.297-0.703l7-7q0.297-0.297 0.703-0.297t0.703 0.297l7 7q0.297 0.297 0.297 0.703z"></path>'},"sort-desc":{viewbox:"0 0 16 28",html:'<path d="M16 17q0 0.406-0.297 0.703l-7 7q-0.297 0.297-0.703 0.297t-0.703-0.297l-7-7q-0.297-0.297-0.297-0.703t0.297-0.703 0.703-0.297h14q0.406 0 0.703 0.297t0.297 0.703z"></path>'},"sort-asc":{viewbox:"0 0 16 28",html:'<path d="M16 11q0 0.406-0.297 0.703t-0.703 0.297h-14q-0.406 0-0.703-0.297t-0.297-0.703 0.297-0.703l7-7q0.297-0.297 0.703-0.297t0.703 0.297l7 7q0.297 0.297 0.297 0.703z"></path>'},facebook:{viewbox:"0 0 16 28",html:'<path d="M14.984 0.187v4.125h-2.453q-1.344 0-1.813 0.562t-0.469 1.687v2.953h4.578l-0.609 4.625h-3.969v11.859h-4.781v-11.859h-3.984v-4.625h3.984v-3.406q0-2.906 1.625-4.508t4.328-1.602q2.297 0 3.563 0.187z"></path>'},twitter:{viewbox:"0 0 26 28",html:'<path d="M25.312 6.375q-1.047 1.531-2.531 2.609 0.016 0.219 0.016 0.656 0 2.031-0.594 4.055t-1.805 3.883-2.883 3.289-4.031 2.281-5.047 0.852q-4.234 0-7.75-2.266 0.547 0.063 1.219 0.063 3.516 0 6.266-2.156-1.641-0.031-2.938-1.008t-1.781-2.492q0.516 0.078 0.953 0.078 0.672 0 1.328-0.172-1.75-0.359-2.898-1.742t-1.148-3.211v-0.063q1.062 0.594 2.281 0.641-1.031-0.688-1.641-1.797t-0.609-2.406q0-1.375 0.688-2.547 1.891 2.328 4.602 3.727t5.805 1.555q-0.125-0.594-0.125-1.156 0-2.094 1.477-3.57t3.57-1.477q2.188 0 3.687 1.594 1.703-0.328 3.203-1.219-0.578 1.797-2.219 2.781 1.453-0.156 2.906-0.781z"></path>'},linkedin:{viewbox:"0 0 28 28",html:'<path d="M5.453 9.766v15.484h-5.156v-15.484h5.156zM5.781 4.984q0.016 1.141-0.789 1.906t-2.117 0.766h-0.031q-1.281 0-2.063-0.766t-0.781-1.906q0-1.156 0.805-1.914t2.102-0.758 2.078 0.758 0.797 1.914zM24 16.375v8.875h-5.141v-8.281q0-1.641-0.633-2.57t-1.977-0.93q-0.984 0-1.648 0.539t-0.992 1.336q-0.172 0.469-0.172 1.266v8.641h-5.141q0.031-6.234 0.031-10.109t-0.016-4.625l-0.016-0.75h5.141v2.25h-0.031q0.313-0.5 0.641-0.875t0.883-0.812 1.359-0.68 1.789-0.242q2.672 0 4.297 1.773t1.625 5.195z"></path>'},pinterest:'<path d="M16 0c-8.837 0-16 7.163-16 16 0 6.778 4.217 12.568 10.169 14.899-0.14-1.266-0.266-3.208 0.055-4.59 0.291-1.249 1.876-7.953 1.876-7.953s-0.479-0.958-0.479-2.375c0-2.225 1.29-3.886 2.895-3.886 1.365 0 2.024 1.025 2.024 2.254 0 1.373-0.874 3.425-1.325 5.327-0.377 1.593 0.799 2.892 2.369 2.892 2.844 0 5.030-2.999 5.030-7.327 0-3.831-2.753-6.509-6.683-6.509-4.552 0-7.225 3.415-7.225 6.943 0 1.375 0.53 2.85 1.191 3.651 0.131 0.158 0.15 0.297 0.111 0.459-0.121 0.506-0.391 1.593-0.444 1.815-0.070 0.293-0.232 0.355-0.535 0.214-1.998-0.93-3.248-3.852-3.248-6.198 0-5.047 3.667-9.682 10.572-9.682 5.55 0 9.864 3.955 9.864 9.241 0 5.514-3.477 9.952-8.302 9.952-1.621 0-3.145-0.842-3.667-1.837 0 0-0.802 3.055-0.997 3.803-0.361 1.39-1.337 3.132-1.989 4.195 1.497 0.463 3.088 0.713 4.738 0.713 8.836-0 16-7.163 16-16s-7.163-16-16-16z"></path>',xing:{viewbox:"0 0 22 28",html:'<path d="M9.328 10.422q-0.156 0.281-4.016 7.125-0.422 0.719-1.016 0.719h-3.734q-0.328 0-0.484-0.266t0-0.562l3.953-7q0.016 0 0-0.016l-2.516-4.359q-0.187-0.344-0.016-0.578 0.141-0.234 0.5-0.234h3.734q0.625 0 1.031 0.703zM21.922 0.391q0.172 0.25 0 0.578l-8.25 14.594v0.016l5.25 9.609q0.172 0.313 0.016 0.578-0.156 0.234-0.5 0.234h-3.734q-0.656 0-1.031-0.703l-5.297-9.719q0.281-0.5 8.297-14.719 0.391-0.703 1-0.703h3.766q0.344 0 0.484 0.234z"></path>'},"yt-play":{viewbox:"0 0 28 28",html:'<path d="M20 14q0-0.578-0.469-0.844l-8-5q-0.484-0.313-1.016-0.031-0.516 0.281-0.516 0.875v10q0 0.594 0.516 0.875 0.25 0.125 0.484 0.125 0.313 0 0.531-0.156l8-5q0.469-0.266 0.469-0.844zM28 14q0 1.5-0.016 2.344t-0.133 2.133-0.352 2.305q-0.25 1.141-1.078 1.922t-1.937 0.906q-3.469 0.391-10.484 0.391t-10.484-0.391q-1.109-0.125-1.945-0.906t-1.086-1.922q-0.219-1.016-0.336-2.305t-0.133-2.133-0.016-2.344 0.016-2.344 0.133-2.133 0.352-2.305q0.25-1.141 1.078-1.922t1.937-0.906q3.469-0.391 10.484-0.391t10.484 0.391q1.109 0.125 1.945 0.906t1.086 1.922q0.219 1.016 0.336 2.305t0.133 2.133 0.016 2.344z"></path>'},"arrow-left":{viewbox:"0 0 12 22",html:'<path d="M14.653 43.496l9.92-9.919c.379-.379.379-.992 0-1.37l-9.92-9.92c-.613-.613-1.653-.178-1.653.685v19.839c0 .863 1.04 1.298 1.653.685z" transform="translate(-19573 -418) translate(19560 396) matrix(-1 0 0 1 37.857 0)"/>'},"arrow-right":{viewbox:"0 0 12 22",html:'<path d="M14.653 43.496l9.92-9.919c.379-.379.379-.992 0-1.37l-9.92-9.92c-.613-.613-1.653-.178-1.653.685v19.839c0 .863 1.04 1.298 1.653.685z" transform="translate(-20901 -418) matrix(-1 0 0 1 20926 396) matrix(-1 0 0 1 37.857 0)"/>'},"chevron-left-solid":{viewbox:"0 0 320 512",html:'<path d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"></path>'},"chevron-right-solid":{viewbox:"0 0 320 512",html:'<path d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path>'},dot:{viewbox:"0 0 24 24",html:'<path d="M12,8A4,4 0 0,0 8,12A4,4 0 0,0 12,16A4,4 0 0,0 16,12A4,4 0 0,0 12,8Z"/>'}}},e.exports=n},"typefocus.js":function(t,e,i){function n(i){try{r.each(function(){var t=o(this),e=a.$window.height();t.data("typed")&&(i+e>=t.offset().top&&t.offset().top>i||"start"===t.attr("data-typefocus")?t.typed("start"):(t.attr("data-typefocus"),t.typed("pause")))})}catch(t){console.log(t)}}var o,a,r;o=ThriveGlobal.$j,a=TCB_Front,r=o(),e.exports=function(t){r=r.add(t.find(".tve_typefocus")),setTimeout(function(){try{r.each(function(){var t=o(this),e=[],i=parseInt(t.attr("data-speed")),n=t.attr("data-colors");0!==t.attr("data-typist").length&&(e.push(t.text()),e=e.concat(t.attr("data-typist").split("|")),t.typed({strings:e,loop:!0,typeSpeed:125,backSpeed:50,highlightClass:1===parseInt(t.attr("data-highlight"))?"tve_selected_typist":"",highlightStyle:1===parseInt(t.attr("data-highlight"))&&n?"background-color:"+n:"",backDelay:i,contentType:"text",startDelay:800,showCursor:t.hasClass("tve_typefocus_cursor")}))})}catch(t){console.log(t)}},1e3),a.add_scroll_callback(n)}}},woo:{"events.js":function(t,e,i){e.exports=function(t){return{added_to_cart:function(t,e,i,n){var o=3<arguments.length&&void 0!==n?n:"";if(o&&0!==o.length){if("_blank"===o.attr("target")){var a=o.attr("href").replace(/\?.*/,"");window.open(a,"_blank")}var r,s=o.parent().find(".added_to_cart"),l=s.attr("style");if(0<s.length&&(void 0===l||!l.includes("--tve-view-cart-arrow-color")))s.css("border-width").includes("0px")||(r=s.css("border-left-color")),void 0===r&&(r=s.css("background-image").includes("none")?s.css("background-color"):"transparent"),void 0!==r&&s[0].style.setProperty("--tve-view-cart-arrow-color",r,"important");setTimeout(function(){o[0].style.setProperty("color","")},1700)}},adding_to_cart:function(t,e,i){void 0!==e&&e[0].style.setProperty("color","transparent","important")}}}},"main.js":function(t,e,i){e.exports=function(n,e){var o=i("./events")(n),a=i("./models/mini-cart")(n,e),r=i("./models/shop")(n,e),t=i("./models/product-categories")(n,e);return{Main:function(){function i(){_classCallCheck(this,i)}return _createClass(i,null,[{key:"init",value:function(){if(tve_frontend_options.is_editor_page){if("product"===tve_frontend_options.post_type){var t=n(".product[id^=product-]:not(.thrive-woocommerce-product-editable)");0<t.length&&0===t.find("#tab-description").length&&TVE.main.$(".add-element").addClass("tve-disabled")}}else i.updateAddToCartButtons(),n(document.body).on("added_to_cart",o.added_to_cart).on("adding_to_cart",o.adding_to_cart),n(e.document).find(a.selector).each(function(t,e){new a(n(e))}),n(e.document).find(r.selector).each(function(t,e){new r(n(e))})}},{key:"updateAddToCartButtons",value:function(){n('[data-dynamic-link="thrive_woo_link_shortcode"][data-shortcode-id="add_to_cart"]').each(function(t,e){e.classList.add(i.wooButtonClassName,i.ajaxButtonClassName),e.setAttribute("data-quantity",1),e.setAttribute("data-product_id",i.getPostIdFromElement(e))})}},{key:"getPostIdFromElement",value:function(t){var e=tve_frontend_options.post_id,i=t.closest(".post-wrapper");if(i){var n=i.getAttribute("class").match(/post-(\d+)/);n&&2===n.length&&(e=n[1])}return e}},{key:"ajaxButtonClassName",get:function(){return"ajax_add_to_cart"}},{key:"wooButtonClassName",get:function(){return"add_to_cart_button"}}]),i}(),Shop:r,ProductCategories:t,MiniCart:a,AbstractWoo:i("./models/abstract")(n)}}},models:{"abstract.js":function(t,e,i){e.exports=function(e){return function(){function i(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null;_classCallCheck(this,i),this.$template=t&&t.length?t:e(this.constructor.selector)}return _createClass(i,null,[{key:"getProductsSectionSelector",value:function(t){var e=0<arguments.length&&void 0!==t?t:"";return"".concat(e?".".concat(e):"").concat(i.defaultProductsSelector)}},{key:"selector",get:function(){return""}},{key:"imageWidthVar",get:function(){return"--tve-woo-image-size"}},{key:"defaultProductsSelector",get:function(){return".products"}}]),_createClass(i,[{key:"getProductsSection",value:function(t){var e=0<arguments.length&&void 0!==t?t:"";return this.$template.find(i.getProductsSectionSelector(e))}},{key:"loading",value:function(t){var e=!(0<arguments.length&&void 0!==t)||t;this.$template.toggleClass("tve-loader-square",e)}},{key:"getData",value:function(t,e){var i=1<arguments.length&&void 0!==e?e:"",n="data-".concat(t);i&&(n="data-".concat(i,"-").concat(t));var o=this.$template.attr(n);return void 0===o?this.constructor.defaultAttr(t):o}},{key:"setData",value:function(t,e,i){var n=2<arguments.length&&void 0!==i?i:"",o="data-".concat(t);return n&&(o="data-".concat(n,"-").concat(t)),this.$template.attr(o,e),this}}],[{key:"defaultAttr",value:function(t){var e=0<arguments.length&&void 0!==t?t:"",i={"align-items":"left",columns:4,limit:8,orderby:"date",order:"desc",ids:"",category:"",cat_operator:"in",taxonomy:"",terms:"",terms_operator:"in",tag:"",tag_operator:"in"};return e?i[e]:i}}]),i}()}},"mini-cart.js":function(t,e,i){e.exports=function(p,f){return function(){function u(t){_classCallCheck(this,u),this.$cart=t,u.isEditorPage()&&this.initSelectors(),this.initEvents()}return _createClass(u,[{key:"getAttr",value:function(t){var e=this.$cart.attr("data-".concat(t));return void 0===e&&(e=u.defaultAttr(t)),e}},{key:"setAttr",value:function(t,e){return this.$cart.attr("data-".concat(t),e)}},{key:"initEvents",value:function(){var i=this;if(p(f.document.body).on("wc_fragments_loaded",this.onCartFragmentsLoaded.bind(this)),u.isEditorPage())p(f.document.body).on("wc_fragments_loaded",this.initSelectors.bind(this));else{switch(this.getAttr("trigger")){case"click":this.$cart.on("click",this.toggle.bind(this));break;case"hover":this.$cart.on("mouseenter",this.toggle.bind(this))}p(f.document.body).on("click",function(e){setTimeout(function(){var t=e.target;"tcb-cart-close-icon"!==t.className&&null!==t.closest(".tcb-woo-mini-cart-content")||null!==t.closest(u.selector)||null!==t.closest(".add_to_cart_button")||i.isOpen()&&i.toggle(!1)})})}}},{key:"initSelectors",value:function(){var i=this;["wc-cart-item","wc-cart-item-image","wc-cart-item-properties","wc-cart-item-title","wc-cart-total","wc-view-cart-button","wc-checkout-button","wc-cart-wrapper","wc-empty-cart"].forEach(function(t){var e=TVE.Elements[t].identifier.split(",").map(function(t){return"".concat(i.dataSelector," ").concat(t)}).join(",").trim().replace(/ {2,}/g," ");i.$content.find(TVE.Elements[t].identifier).attr("data-selector",e).addClass("tve_no_icons tve_editable")}),["wc-cart-icon","wc-cart-count"].forEach(function(t){i.$cart.find(TVE.Elements[t].identifier).attr("data-selector","".concat(i.dataSelector," ").concat(TVE.Elements[t].identifier)).addClass("tve_no_icons tve_editable")})}},{key:"onCartFragmentsLoaded",value:function(){u.isEditorPage()||(this.updateCartItemsCount(),this.updateCartTotalAmount(),u.toggleEmptyCartClass(this.$content)),this.addCloseIcon()}},{key:"addCloseIcon",value:function(t){var e=0<arguments.length&&void 0!==t?t:this.$content;0===e.find(".tcb-cart-close-icon").length&&e.find(".widget_shopping_cart_content").prepend('<span class="tcb-cart-close-icon"></span>')}},{key:"updateCartItemsCount",value:function(){var i=0;this.$content.find(".woocommerce-mini-cart-item .quantity").each(function(t,e){i+=parseInt(e.innerText)}),0===i&&(i=""),this.$cart.find(".tcb-woo-mini-cart-count").html(i)}},{key:"updateCartTotalAmount",value:function(){this.$cart.find(".tcb-woo-mini-cart-amount").html(this.$content.find(".woocommerce-mini-cart__total .woocommerce-Price-amount").text())}},{key:"toggle",value:function(t){"boolean"!=typeof t&&(t=!this.isOpen()),this.positionCart(t),this.refreshContentSelector()}},{key:"isOpen",value:function(){return this.$content.hasClass("open")}},{key:"hasSideAnimation",value:function(){var t=this.getAttr("direction");return"left"===t||"right"===t}},{key:"positionCart",value:function(t){var e=this,i=!(0<arguments.length&&void 0!==t)||t;if(this.$content.toggleClass("full-height",this.hasSideAnimation()),i&&this.$content.addClass("open"),u.isEditorPage()&&this.$content.css({left:"",right:"",top:"",opacity:"","max-height":"","max-width":""}).find(".cart_list > li").css({opacity:"",left:""}),this.hasSideAnimation()){var n,o=this.getAttr("direction");window.document.body.closest("html").classList.add("tve-hide-x-overflow"),this.$content.css(_defineProperty({opacity:i?"0":"1"},o,i?u.animationPosition:"0")),this.$content.animate((_defineProperty(n={},o,i?"0":u.animationPosition),_defineProperty(n,"opacity",i?"1":"0"),n),{complete:function(){e.$content.toggleClass("open",i),window.document.body.closest("html").classList.remove("tve-hide-x-overflow")}})}else{var a=this.$cart.offset(),r=a.top+this.$cart.height(),s=p(f).width(),l=this.$content.width(),c=s-a.left-this.$cart.width();a.left<l&&(c-=l-a.left+50),this.$content.css({top:r,right:c,"max-width":i?"0":"100%","max-height":i?"0":"100%"});var d=this.$content.find(".cart_list").addClass("animate-cart"),h=d.children();h.each(function(t,e){i&&(e.style.left="200px",e.style.opacity="0"),setTimeout(function(){e.style.left=i?"0":"200px",e.style.opacity=i?"1":"0"},50*(t+1))}),setTimeout(function(){d.removeClass("animate-cart"),i||e.$content.removeClass("open")},50*h.length+(i?500:200)),this.$content.css({"max-height":i?"100%":"0","max-width":i?"100%":"0"})}}},{key:"refreshContentSelector",value:function(){var t=this.$cart.closest('[class*="thrv_symbol_"]');if(void 0===this.$cartContentWrapper&&(this.$cartContentWrapper=this.$content),t.length){var e=t.attr("class").match(/(thrv_symbol_\d*)/g);e&&this.$cartContentWrapper.addClass(e[0]).attr("data-symbol-id",e[0])}else this.$cart.trigger("tcb_mini_cart_content_generated",this)}},{key:"dataSelector",get:function(){var t=this.getAttr("css");return void 0===t&&(t=TVE.CSS_Rule_Cache.uniq_id(this.$cart)),'[data-css="'.concat(t,'"]')}},{key:"$content",get:function(){if(!this.$cart.data("content")){var t=p('<div class="tcb-woo-mini-cart-content woocommerce"></div>'),e=this.getAttr("css");void 0===e&&u.isEditorPage()&&(e=TVE.CSS_Rule_Cache.uniq_id(this.$cart)),t.attr("data-css",e),this.$cart.find(u.isEditorPage()?".tcb-woo-mini-cart-items":".widget_shopping_cart_content").addClass("widget_shopping_cart_content").appendTo(t),u.isEditorPage()?p('<div class="tcb-woo-mini-cart-no-products">'+TVE.inner_$("#tve-woocommerce-mini-cart-no-products").html()+"</div>").appendTo(t):u.toggleEmptyCartClass(t),this.addCloseIcon(t),this.$cartContentWrapper=t.wrap('<div class="tcb-woo-mini-cart-content-wrapper"></div>').parent(),this.$cartContentWrapper.data("source",this.$cart).appendTo(this.$cart.closest("body")),this.refreshContentSelector(),this.$cart.data("content",this.$cartContentWrapper)}return this.$cart.data("content")}}],[{key:"isEditorPage",value:function(){return f.tve_frontend_options.is_editor_page}},{key:"defaultAttr",value:function(t){var e={trigger:"click",direction:"under",text:"Cart"};return t?e[t]:e}},{key:"toggleEmptyCartClass",value:function(t){var e=t.find(".woocommerce-mini-cart__empty-message");t.find(".widget_shopping_cart_content").toggleClass("tcb-woo-no-items",0<e.length)}},{key:"selector",get:function(){return".tcb-woo-mini-cart"}},{key:"animationPosition",get:function(){return"-1000px"}}]),u}()}},"product-categories.js":function(t,e,i){e.exports=function(r,t){var e=i("./abstract")(r);return function(){function a(){return _classCallCheck(this,a),_possibleConstructorReturn(this,_getPrototypeOf(a).apply(this,arguments))}return _inherits(a,e),_createClass(a,[{key:"render",value:function(t,e){var i=this,n=1<arguments.length&&void 0!==e?e:Object.keys(a.defaultAttr()),o={};return n.forEach(function(t){o[t]=i.getData(t)}),this.ajaxRenderFunction(o).done(function(t){t.content&&(i.$template.html(r(t.content).html()),i.toggleSubElementVisibility(),TVE.WooCommerceFn.content.initProductCategorySubElements(i.$template))})}},{key:"toggleSubElementVisibility",value:function(t,e){var i=this;void 0===t&&(t=Object.keys(a.subElementSelectors)),t.forEach(function(t){i.$template.find(a.subElementSelectors[t]).toggle(void 0===e?!Number(i.getData("hide-".concat(t))):e)})}},{key:"ajaxRenderFunction",value:function(t){var e=this;return this.loading(!0),TVE.$.ajax({url:tve_frontend_options.woo_rest_routes.product_categories,type:"POST",data:{args:t},headers:{"X-WP-Nonce":TVE.CONST.rest_nonce}}).always(function(t){e.loading(!1)})}}],[{key:"defaultAttr",value:function(t){var e=0<arguments.length&&void 0!==t?t:"",i={limit:4,columns:4,parent:"",hide_empty:1,orderby:"id",ids:"",order:"desc","align-items":"left","text-layout":"text_on_image","text-position":"center"};return e?i[e]:i}},{key:"subElementSelectors",get:function(){return{title:".woocommerce-loop-category__title","product-number":".thrive-product-category-count"}}},{key:"selector",get:function(){return".tcb-woo-product-categories"}}]),a}()}},"shop.js":function(t,e,n){e.exports=function(o,i){var t=n("./abstract")(o),a=["columns","limit","orderby","order","ids","category","cat_operator","taxonomy","terms","terms_operator","tag","tag_operator"];return function(){function n(t){var e;return _classCallCheck(this,n),e=_possibleConstructorReturn(this,_getPrototypeOf(n).call(this,t)),i.tve_frontend_options.is_editor_page||t.find(".prev,.next").addClass("tcb-prev-next"),e}return _inherits(n,t),_createClass(n,[{key:"updateProductsSection",value:function(t,e){var i=this,n={};return(1<arguments.length&&void 0!==e?e:a).forEach(function(t){n[t]=i.getData(t)}),this.ajaxRenderFunction(n).done(function(t){t.content&&(i.$template.html(o(t.content).html()),i.toggleProductElements(),i.initializeCartButtons(i.$template),TVE.WooCommerceFn.content.initShopSubElements(i.$template))})}},{key:"initializeCartButtons",value:function(t){t.find(".ajax_add_to_cart").removeClass("ajax_add_to_cart"),0===t.find("a.added_to_cart").length&&t.find(TVE.CONST.woocommerce.sub_element_identifiers["product-button"]).after('<a class="added_to_cart" style="display:none;"></div>')}},{key:"toggleProductElements",value:function(t,e){var i=this;void 0===t&&(t=Object.keys(n.productElementSelectors)),t.forEach(function(t){i.$template.find(n.productElementSelectors[t]).toggle(void 0===e?!Number(i.getData("hide-".concat(t))):e)})}},{key:"ajaxRenderFunction",value:function(t,e,i){var n=this,o=2<arguments.length&&void 0!==i?i:"POST";return this.loading(!0),TVE.$.ajax({url:tve_frontend_options.woo_rest_routes.shop,type:o,data:{args:t},headers:{"X-WP-Nonce":TVE.CONST.rest_nonce}}).always(function(t){n.loading(!1)})}}],[{key:"productElementSelectors",get:function(){return{"result-count":".woocommerce-result-count","catalog-ordering":".woocommerce-ordering","sale-flash":".onsale",title:".woocommerce-loop-product__title",rating:".star-rating",price:".price",cart:".button",pagination:".woocommerce-pagination"}}},{key:"selector",get:function(){return".tcb-woo-shop"}}]),n}()}}}}}}}}})("workspace/editor/js/frontend/thrive_content_builder_frontend");