!function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=6)}([function(e,t,r){"use strict";r.r(t),r.d(t,"getCache",function(){return o});var o=function(){var e=document.createElement("div");return e.innerHTML=document.querySelector(".ct-customizer-preview-cache-container").value,e}},function(e,t,r){"use strict";r.r(t),r.d(t,"stackingClassesFor",function(){return i}),r.d(t,"responsiveClassesFor",function(){return a});var o=r(0);function n(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t-1?3:parseInt(n,10),c=document.querySelector(".site-footer .footer-widgets");c.dataset.columns=n,a("footer_widgets_visibility",document.querySelector(".site-footer .footer-widgets-area")),Array.from({length:4-i},function(e,t){return t}).map(function(){return c.removeChild(c.lastElementChild)})}};wp.customize("footer_widgets_structure",function(e){return e.bind(function(e){return c()})}),wp.customize("has_widget_area",function(e){return e.bind(function(e){return c()})}),wp.customize("footer_widgets_visibility",function(e){return e.bind(function(e){return c()})}),wp.customize("footer_widgets_divider",function(e){return e.bind(function(e){"yes"===e?document.querySelector(".site-footer .footer-widgets").dataset.divider="":document.querySelector(".site-footer .footer-widgets").removeAttribute("data-divider")})}),wp.customize("footer_widgets_divider",function(e){return e.bind(function(e){"yes"===e?document.querySelector(".site-footer .footer-widgets").dataset.divider="":document.querySelector(".site-footer .footer-widgets").removeAttribute("data-divider")})});var l=function(){var e=document.querySelector(".site-footer");if(e.querySelector(".footer-copyright")&&e.removeChild(e.querySelector(".footer-copyright")),"yes"===(wp.customize("has_copyright")()||"yes")){var t=Object(o.getCache)().querySelector('.ct-customizer-preview-cache [data-id="footer-copyright"]').innerHTML,r=document.createElement("div");for(r.innerHTML=t;r.firstElementChild;)e.appendChild(r.firstElementChild);document.querySelector("footer .footer-copyright").firstElementChild.innerHTML=wp.customize("copyright_text")(),a("copyright_visibility",document.querySelector("footer .footer-copyright"))}};wp.customize("footer_main_area_stacking",function(e){return e.bind(function(e){return i("footer_main_area_stacking",document.querySelector(".site-footer .footer-primary-area .grid-columns"))})}),wp.customize("footer_primary_area_visibility",function(e){return e.bind(function(e){return a("footer_primary_area_visibility",document.querySelector(".site-footer .footer-primary-area"))})}),wp.customize("copyright_text",function(e){return e.bind(function(e){return l()})}),wp.customize("has_copyright",function(e){return e.bind(function(e){return l()})}),wp.customize("copyright_visibility",function(e){return e.bind(function(e){return l()})}),wp.customize("footer_base",function(e){return e.bind(function(e){return document.querySelector("footer.site-footer").dataset.type=e})})},function(e,t,r){"use strict";r.r(t),r.d(t,"getActualHeroType",function(){return n});var o=r(0),n=function(){var e=Object(o.getCache)().querySelector(".ct-customizer-preview-cache [data-hero-section-not-default]");return e?e.dataset.heroSectionNotDefault:document.body.classList.contains("page")?wp.customize("single_page_hero_section")():wp.customize("single_blog_post_hero_section")()}},function(e,t,r){"use strict";r.d(t,"a",function(){return o});var o=function(e){return[].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t"customize-partial-edit-shortcut".length})[0].replace(/customize-partial-edit-shortcut-/,"")).showControl()});var i=r(7);i.keys().forEach(i),wp.customize("blogname",function(e){return e.bind(function(e){return n()(".site-title a").text(e)})}),wp.customize("blogdescription",function(e){return e.bind(function(e){return n()(".site-description").text(e)})})},function(e,t,r){var o={"./archive.js":8,"./footer-primary-area.js":9,"./footer.js":1,"./header-primary-area.js":10,"./header.js":11,"./helpers.js":0,"./hero-section.js":2,"./location.js":12,"./sidebar.js":13,"./single.js":14,"./template-parts/content-loop.js":15,"./variables.js":16};function n(e){var t=i(e);return r(t)}function i(e){if(!r.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}n.keys=function(){return Object.keys(o)},n.resolve=i,e.exports=n,n.id=7},function(e,t,r){"use strict";r.r(t);var o=r(0);function n(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t main > #primary > .ct-container");if("no"===e)return t.querySelector("aside")&&t.removeChild(t.querySelector("aside")),void document.querySelector('[id="page"] > main > #primary > .ct-container').removeAttribute("data-sidebar");t.querySelector("aside")&&t.removeChild(t.querySelector("aside"));var r=Object(o.getCache)().querySelector('.ct-customizer-preview-cache [data-id="sidebar"]').innerHTML,n=document.createElement("div");for(n.innerHTML=r;n.firstElementChild;)t.appendChild(n.firstElementChild);document.querySelector('[id="page"] > main > #primary > .ct-container').dataset.sidebar=wp.customize("blog_sidebar_position")(),ctEvents.trigger("ct:sidebar:update")}})}),wp.customize("blog_sidebar_position",function(e){return e.bind(function(e){(document.body.classList.contains("blog")||document.body.classList.contains("archive"))&&(document.querySelector('[id="page"] > main > #primary > .ct-container').dataset.sidebar=e)})})},function(e,t,r){"use strict";r.r(t);var o=r(0),n=function(e){var t=wp.customize("footer_section_"+e)()||("1"===e?"footer_menu":"social_icons");if("disabled"!==t){var r=Object(o.getCache)().querySelector('.ct-customizer-preview-cache [data-id="'+{footer_menu:"footer-main-area-menu",custom_text:"footer-main-area-text",social_icons:"footer-main-area-socials"}[t]+'"]').innerHTML,n=document.createElement("div");if(n.innerHTML=r,"custom_text"===t&&(n.querySelector(".ct-custom-text").innerHTML=wp.customize("section_"+e+"_text")()||"Sample text"),"social_icons"===t){var i=document.createElement("div");i.innerHTML=n.querySelector(".ct-social-box").innerHTML,n.querySelector(".ct-social-box").innerHTML="",wp.customize("footer_socials_"+e)().map(function(e){var t=e.id;e.enabled&&n.querySelector(".ct-social-box").appendChild(i.querySelector("[data-network="+t+"]"))})}for(;n.firstElementChild;)document.querySelector(".footer-primary-area .grid-columns").appendChild(n.firstElementChild)}},i=function(){if(document.querySelector(".site-footer .footer-primary-area")&&document.querySelector(".site-footer .footer-primary-area").parentNode.removeChild(document.querySelector(".site-footer .footer-primary-area")),"yes"===(wp.customize("has_primary_area")()||"yes")){var e=Object(o.getCache)().querySelector('.ct-customizer-preview-cache [data-id="footer-main-area-wrapper"]').innerHTML,t=document.createElement("div");for(t.innerHTML=e;t.firstElementChild;)document.querySelector(".site-footer").insertBefore(t.firstElementChild,document.querySelector(".site-footer").firstElementChild);var r=document.querySelector(".site-footer .footer-primary-area");r.querySelector(".grid-columns").removeAttribute("data-columns"),"disabled"!==(wp.customize("footer_section_1")()||"footer_menu")&&"disabled"!==(wp.customize("footer_section_2")()||"social_icons")?r.querySelector(".grid-columns").dataset.columns=2:"disabled"===(wp.customize("footer_section_1")()||"footer_menu")&&"disabled"===(wp.customize("footer_section_2")()||"social_icons")||(r.querySelector(".grid-columns").dataset.columns=1),r.querySelector(".grid-columns").innerHTML="",n("1"),n("2")}};wp.customize("has_primary_area",function(e){return e.bind(function(e){return i()})}),wp.customize("footer_section_1",function(e){return e.bind(function(e){return i()})}),wp.customize("footer_section_2",function(e){return e.bind(function(e){return i()})}),wp.customize("section_1_text",function(e){return e.bind(function(e){return i()})}),wp.customize("section_2_text",function(e){return e.bind(function(e){return i()})}),wp.customize("footer_socials_1",function(e){return e.bind(function(e){return i()})}),wp.customize("footer_socials_2",function(e){return e.bind(function(e){return i()})})},function(e,t,r){"use strict";r.r(t);var o=r(0),n=r(1);function i(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t .header-top-bar")&&[].concat(i(document.querySelectorAll(".site-header > .header-top-bar"))).map(function(e){return e.parentNode.removeChild(e)}),e){var t=Object(o.getCache)().querySelector('.ct-customizer-preview-cache [data-id="header-top-bar"]').innerHTML,r=document.createElement("div");r.innerHTML=t;for(var c=document.querySelector(".site-header");r.firstElementChild;)c.insertBefore(r.firstElementChild,c.firstElementChild);var l=document.querySelector(".site-header .header-top-bar");l.querySelector(".grid-columns").classList.remove([].concat(i(l.querySelector(".grid-columns").classList)).find(function(e){return e.indexOf("ct-container")>-1})),l.querySelector(".grid-columns").classList.add("ct-container"+("fluid"===wp.customize("top_bar_container")()?"-fluid":"")),l.querySelector(".grid-columns").removeAttribute("data-columns"),"disabled"!==(wp.customize("header_top_bar_section_1")()||"header_menu")&&"disabled"!==(wp.customize("header_top_bar_section_2")()||"social_icons")?l.querySelector(".grid-columns").dataset.columns=2:"disabled"===(wp.customize("header_top_bar_section_1")()||"header_menu")&&"disabled"===(wp.customize("header_top_bar_section_2")()||"social_icons")||(l.querySelector(".grid-columns").dataset.columns=1),l.querySelector(".grid-columns").innerHTML="",a("1"),a("2"),Object(n.stackingClassesFor)("top_bar_stacking",document.querySelector(".site-header .header-top-bar .grid-columns"))}};wp.customize("has_top_bar",function(e){return e.bind(function(e){return c()})}),wp.customize("top_bar_container",function(e){return e.bind(function(e){return c()})}),wp.customize("header_top_bar_section_1",function(e){return e.bind(function(e){return c()})}),wp.customize("header_top_bar_section_2",function(e){return e.bind(function(e){return c()})}),wp.customize("header_top_bar_section_1_text",function(e){return e.bind(function(e){return c()})}),wp.customize("header_top_bar_section_2_text",function(e){return e.bind(function(e){return c()})}),wp.customize("header_top_bar_socials_1",function(e){return e.bind(function(e){return c()})}),wp.customize("header_top_bar_socials_2",function(e){return e.bind(function(e){return c()})}),wp.customize("top_bar_visibility",function(e){return e.bind(function(e){return Object(n.responsiveClassesFor)("top_bar_visibility",document.querySelector(".site-header .header-top-bar"))})}),wp.customize("top_bar_stacking",function(e){return e.bind(function(e){return Object(n.stackingClassesFor)("top_bar_stacking",document.querySelector(".site-header .header-top-bar .grid-columns"))})})},function(e,t,r){"use strict";r.r(t);var o=r(0);r(1);function n(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t-1})),t.firstElementChild.classList.add("ct-container"+("fluid"===e?"-fluid":"")))})}),wp.customize("nav_container",function(e){return e.bind(function(e){var t=document.querySelector('.header-desktop[data-type="type-2"]');t&&(t.lastElementChild.firstElementChild.classList.remove([].concat(n(t.lastElementChild.firstElementChild.classList)).find(function(e){return e.indexOf("ct-container")>-1})),t.lastElementChild.firstElementChild.classList.add("ct-container"+("fluid"===e?"-fluid":"")))})}),wp.customize("mobile_header_type",function(e){return e.bind(function(e){return document.querySelector(".header-mobile").dataset.type=e})})},function(e,t){var r=function(){setTimeout(function(){return wp.customize.preview.send("location-change",window.ct_localizations.customizer_sync.future_location)},300)};wp.customize.bind("ready",function(){return r()}),wp.customize.bind("preview-ready",function(){return r()})},function(e,t,r){"use strict";r.r(t);var o=r(1);wp.customize("sticky_sidebar",function(e){return e.bind(function(e){var t=document.querySelector(".ct-sidebar");t&&(t.removeAttribute("data-sticky"),"yes"===e&&(document.querySelector(".ct-sidebar").dataset.sticky=""))})}),wp.customize("sidebar_type",function(e){return e.bind(function(e){document.querySelector(".ct-sidebar")&&(document.querySelector(".ct-sidebar").dataset.type=e)})}),wp.customize("sidebar_visibility",function(e){return e.bind(function(e){document.querySelector(".ct-sidebar")&&Object(o.responsiveClassesFor)("sidebar_visibility",document.querySelector(".ct-sidebar").parentNode)})})},function(e,t,r){"use strict";r.r(t),r.d(t,"replaceArticleAndRemoveParts",function(){return m});var o=r(3),n=r(1),i=(r(5),r(0)),a=r(2),c=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};t=c({bodyClass:"single-post",class:"post"},t),e.bind(function(e){if(!Object(i.getCache)().querySelector(".ct-customizer-preview-cache [data-page-structure-custom]")&&document.body.classList.contains(t.bodyClass)){"none"!==s(e)?document.querySelector("article."+t.class).dataset.pageStructure=s(e):document.querySelector("article."+t.class).removeAttribute("data-page-structure");var r=document.querySelector('.site > main > .content-area > [class*="ct-container"]');if(r.classList.remove("ct-container","ct-container-boundless"),r.classList.add("type-7"===e?"ct-container-boundless":"ct-container"),"none"===u(e))r.querySelector("aside")&&r.removeChild(r.querySelector("aside")),r.removeAttribute("data-sidebar");else{r.querySelector("aside")&&r.removeChild(r.querySelector("aside")),r.dataset.sidebar=u(e);var o=Object(i.getCache)().querySelector('.ct-customizer-preview-cache [data-id="sidebar"]').innerHTML,n=document.createElement("div");for(n.innerHTML=o;n.firstElementChild;)r.appendChild(n.firstElementChild)}window.ctEvents.trigger("ct:sidebar:update")}})},m=function(){if(document.body.classList.contains("single")||document.body.classList.contains("page")){if(console.log("asd"),document.querySelector(".site-main .content-area article").innerHTML=Object(i.getCache)().querySelector(".ct-customizer-preview-cache .single-content-cache > article").innerHTML,"no"===(wp.customize("has_share_box")()||"yes")){var e=document.querySelectorAll(".site-main .content-area article .share-box");[].concat(l(e)).map(function(e){return e&&e.parentNode.removeChild(e)})}else{var t=wp.customize("share_box_location")()||{top:!1,bottom:!0};if(!t.top){var r=document.querySelector('.site-main .content-area article .share-box[data-location="top"]');r&&r.parentNode.removeChild(r)}if(!t.bottom){var c=document.querySelector('.site-main .content-area article .share-box[data-location="bottom"]');c&&c.parentNode.removeChild(c)}"no"===(wp.customize("share_facebook")()||"yes")&&[].concat(l(document.querySelectorAll('.site-main .content-area article [data-share-network="facebook"]'))).map(function(e){return e.parentNode.removeChild(e)}),"no"===(wp.customize("share_twitter")()||"yes")&&[].concat(l(document.querySelectorAll('.site-main .content-area article [data-share-network="twitter"]'))).map(function(e){return e.parentNode.removeChild(e)}),"no"===(wp.customize("share_pinterest")()||"yes")&&[].concat(l(document.querySelectorAll('.site-main .content-area article [data-share-network="pinterest"]'))).map(function(e){return e.parentNode.removeChild(e)}),"no"===(wp.customize("share_gplus")()||"yes")&&[].concat(l(document.querySelectorAll('.site-main .content-area article [data-share-network="google_plus"]'))).map(function(e){return e.parentNode.removeChild(e)}),"no"===(wp.customize("share_linkedin")()||"yes")&&[].concat(l(document.querySelectorAll('.site-main .content-area article [data-share-network="linkedin"]'))).map(function(e){return e.parentNode.removeChild(e)}),[].concat(l(document.querySelectorAll(".site-main .content-area article .share-box"))).map(function(e){var t=e.firstElementChild.children.length;0!==t?e.firstElementChild.dataset.count=t:e.parentNode.removeChild(e)})}if("no"===(wp.customize("has_author_box")()||"yes")){var s=document.querySelector(".site-main .content-area article .author-box");s&&s.parentNode.removeChild(s)}else{if("no"===(wp.customize("single_author_box_social")()||"yes")){var u=document.querySelector(".site-main .content-area article .author-box .author-box-social");u&&u.parentNode.removeChild(u)}document.querySelector(".site-main .content-area article .author-box")&&Object(n.responsiveClassesFor)("author_box_visibility",document.querySelector(".site-main .content-area article .author-box"))}if("no"===(wp.customize("has_post_tags")()||"yes")){var d=document.querySelector(".site-main .content-area article .entry-tags");d&&d.parentNode.removeChild(d)}if("no"===(wp.customize("has_post_nav")()||"yes")){var m=document.querySelector(".site-main .content-area article .post-navigation");m&&m.parentNode.removeChild(m)}else"no"===(wp.customize("has_post_nav_thumb")()||"yes")&&[].concat(l(document.querySelectorAll('.site-main .content-area article .post-navigation [class*="nav-item"] > figure'))).map(function(e){return e.parentNode.removeChild(e)}),"no"===(wp.customize("has_post_nav_title")()||"yes")&&[].concat(l(document.querySelectorAll('.site-main .content-area article .post-navigation [class*="nav-item"] .item-title'))).map(function(e){return e.parentNode.removeChild(e)}),document.querySelector(".site-main .content-area article .post-navigation")&&Object(n.responsiveClassesFor)("post_nav_visibility",document.querySelector(".site-main .content-area article .post-navigation"));if("type-1"===Object(a.getActualHeroType)()&&[].concat(l(document.querySelectorAll('.site-main .hero-section[data-type="type-2"]'))).map(function(e){return e.parentNode.removeChild(e)}),"type-2"===Object(a.getActualHeroType)()){[].concat(l(document.querySelectorAll(".site-main .hero-section"))).map(function(e){return e.parentNode.removeChild(e)}),document.querySelector(".site-main .content-area article .post-navigation");var p=document.createElement("div");p.innerHTML=Object(i.getCache)().querySelector(".ct-customizer-preview-cache [data-hero-section-type-2]").innerHTML,p.firstElementChild&&document.querySelector(".site .content-area").parentNode.insertBefore(p.firstElementChild,document.querySelector(".site .content-area"))}"type-1"!==Object(a.getActualHeroType)()&&"type-2"!==Object(a.getActualHeroType)()&&[].concat(l(document.querySelectorAll(".site-main .hero-section"))).map(function(e){return e.parentNode.removeChild(e)}),Object(o.a)(document.querySelector(".site-main"))}};wp.customize("single_page_hero_section",function(e){return e.bind(function(e){return m()})}),wp.customize("single_blog_post_hero_section",function(e){return e.bind(function(e){return m()})}),wp.customize("has_share_box",function(e){return e.bind(function(){return m()})}),wp.customize("has_post_nav_title",function(e){return e.bind(function(){return m()})}),wp.customize("has_post_nav_thumb",function(e){return e.bind(function(){return m()})}),wp.customize("share_box_location",function(e){return e.bind(function(){return m()})}),wp.customize("share_facebook",function(e){return e.bind(function(){return m()})}),wp.customize("share_twitter",function(e){return e.bind(function(){return m()})}),wp.customize("share_pinterest",function(e){return e.bind(function(){return m()})}),wp.customize("share_gplus",function(e){return e.bind(function(){return m()})}),wp.customize("share_linkedin",function(e){return e.bind(function(){return m()})}),wp.customize("has_author_box",function(e){return e.bind(function(){return m()})}),wp.customize("single_author_box_social",function(e){return e.bind(function(){return m()})}),wp.customize("author_box_visibility",function(e){return e.bind(function(){return m()})}),wp.customize("has_post_nav",function(e){return e.bind(function(){return m()})}),wp.customize("post_nav_visibility",function(e){return e.bind(function(){return m()})}),wp.customize("has_post_tags",function(e){return e.bind(function(){return m()})}),wp.customize("has_post_comments",function(e){return e.bind(function(e){var t=document.querySelector(".site .ct-comments-container");if(t&&t.parentNode.removeChild(t),"yes"===e){var r=document.createElement("div");r.innerHTML=Object(i.getCache)().querySelector('.ct-customizer-preview-cache [data-part="comments"]').innerHTML,r.firstElementChild&&(document.querySelector(".site > main").appendChild(r.firstElementChild),document.querySelector(".site .ct-related-posts")&&"before"!==wp.customize("related_location")()?document.querySelector(".site .ct-related-posts").parentNode.insertBefore(r.firstElementChild,document.querySelector(".site .ct-related-posts")):document.querySelector(".site > main").appendChild(r.firstElementChild)),Object(o.a)(document.querySelector(".site"))}})});var p=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(document.body.classList.contains("single")){var t=document.querySelector(".site .ct-related-posts");if(t&&t.parentNode.removeChild(t),e){var r=document.createElement("div");r.innerHTML=Object(i.getCache)().querySelector('.ct-customizer-preview-cache [data-part="related-posts"]').innerHTML,r.firstElementChild&&(document.querySelector(".site .ct-comments-container")&&"after"!==wp.customize("related_location")()?document.querySelector(".site .ct-comments-container").parentNode.insertBefore(r.firstElementChild,document.querySelector(".site .ct-comments-container")):document.querySelector(".site > main").appendChild(r.firstElementChild)),Array.from(new Array(8-parseInt(wp.customize("related_posts_count")()||8,10))).map(function(){return document.querySelector(".site .ct-related-posts ul").removeChild(document.querySelector(".site .ct-related-posts ul").lastElementChild)}),document.querySelector(".site .ct-related-posts ul").dataset.columns=wp.customize("related_posts_columns")()||3,document.querySelector(".site .ct-related-posts .ct-related-posts-label").innerHTML=wp.customize("related_label")(),Object(n.responsiveClassesFor)("related_visibility",document.querySelector(".site .ct-related-posts")),Object(o.a)(document.querySelector(".site"))}}};wp.customize("has_related_posts",function(e){return e.bind(function(e){return p("yes"===e)})}),wp.customize("related_location",function(e){return e.bind(function(e){return p()})}),wp.customize("single_author_box_type",function(e){e.bind(function(e){document.querySelector(".site .author-box")&&(document.querySelector(".site .author-box").dataset.type=e)})}),wp.customize("related_posts_columns",function(e){e.bind(function(e){document.querySelector(".site .ct-related-posts ul")&&(document.querySelector(".site .ct-related-posts ul").dataset.columns=e)})}),wp.customize("related_posts_count",function(e){return e.bind(function(){return p()})}),wp.customize("related_visibility",function(e){return e.bind(function(){return p()})}),wp.customize("related_label",function(e){return e.bind(function(){return p()})}),wp.customize("single_page_structure",function(e){return d(e,{bodyClass:"page",class:"page"})}),wp.customize("single_blog_post_structure",function(e){return d(e)})},function(e,t,r){"use strict";r.r(t);r(5);var o=r(0),n=r(3);function i(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t article"))).map(function(t){if([].concat(i(t.children)).map(function(e){return t.removeChild(e)}),e.map(function(e){if(e.enabled){var r=Object(o.getCache)().querySelector('.ct-customizer-preview-cache [data-id="'+t.id+'"] [data-component="'+e.id+'"]').innerHTML,n=document.createElement("div");if(n.innerHTML=r,"excerpt"===e.id&&n.querySelector(".entry-excerpt")){var a=n.querySelector(".entry-excerpt").innerHTML.trim().replace(/\s/g," ").replace(new RegExp("(([^\\s]+\\s\\s*){"+(e.excerpt_length||40)+"})(.*)"),"$1");n.querySelector(".entry-excerpt").innerHTML=a.trim()+(a.trim().length===n.querySelector(".entry-excerpt").innerHTML.trim().length?"":"…")}if("post_meta"===e.id){if((e.meta&&e.meta.author&&"no"===e.has_author_avatar||e.meta&&!e.meta.author)&&(n.querySelector(".entry-meta.has-avatar").classList.remove("has-avatar"),n.querySelector(".entry-meta").removeChild(n.querySelector(".entry-meta .avatar-container"))),e.meta&&!e.meta.author&&n.querySelector(".entry-meta .ct-meta-author")&&n.querySelector(".entry-meta ul").removeChild(n.querySelector(".entry-meta .ct-meta-author")),e.meta&&e.meta.author&&"yes"===e.has_author_avatar){var c=n.querySelector(".entry-meta .avatar-container img");c.height=e.avatar_size,c.width=e.avatar_size}e.meta&&!e.meta.date&&n.querySelector(".entry-meta .ct-meta-date")&&n.querySelector(".entry-meta ul").removeChild(n.querySelector(".entry-meta .ct-meta-date")),e.meta&&!e.meta.categories&&n.querySelector(".entry-meta .ct-meta-categories")&&n.querySelector(".entry-meta ul").removeChild(n.querySelector(".entry-meta .ct-meta-categories")),e.meta&&!e.meta.comments&&n.querySelector(".entry-meta .ct-meta-comments")&&n.querySelector(".entry-meta ul").removeChild(n.querySelector(".entry-meta .ct-meta-comments"))}if("featured_image"===e.id){var l=(e.thumb_ratio||"4/3").split("/");n.querySelector(".ct-image-container .ct-ratio").style.paddingBottom=Math.round(parseInt(l[1],10)/parseInt(l[0],10)*100)+"%",n.querySelector(".ct-image-container").classList.remove("boundless-image"),"yes"===(e.is_boundless||"yes")&&n.querySelector(".ct-image-container").classList.add("boundless-image")}if("title"===e.id){var s=document.createElement(e.heading_tag||"h2"),u=n.querySelector(".entry-title");s.innerHTML=u.innerHTML,[].concat(i(u.attributes)).map(function(e){var t=e.name,r=e.value;return s.setAttribute(t,r)}),u.parentNode.replaceChild(s,u)}for(;n.firstElementChild;)t.appendChild(n.firstElementChild)}}),t.lastElementChild.classList.contains("ct-image-container")||t.lastElementChild.classList.contains("entry-meta")){var r=document.createElement("div");r.classList.add("ct-ghost"),t.insertBefore(r,t.lastElementChild)}Object(n.a)(t)})})})},function(e,t,r){"use strict";var o;function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.r(t),r.d(t,"maybePromoteScalarValueIntoResponsive",function(){return a});var i=(n(o={colorPalette:[{variable:"paletteColor1",type:"color:color1"},{variable:"paletteColor2",type:"color:color2"},{variable:"paletteColor3",type:"color:color3"},{variable:"paletteColor4",type:"color:color4"},{variable:"paletteColor5",type:"color:color5"}],fontColor:{variable:"fontColor",type:"color"},linkColor:{variable:"linkColor",type:"color"}},"linkColor",[{selector:":root",variable:"linkInitialColor",type:"color:default"},{selector:":root",variable:"linkHoverColor",type:"color:hover"}]),n(o,"buttonColor",[{selector:":root",variable:"buttonInitialColor",type:"color:default"},{selector:":root",variable:"buttonHoverColor",type:"color:hover"}]),n(o,"siteBackground",{variable:"siteBackground",type:"color"}),n(o,"maxSiteWidth",{variable:"maxSiteWidth",unit:"px"}),n(o,"cardFontColor",{selector:".entry-card",variable:"fontColor",type:"color"}),n(o,"cardLinkColor",[{selector:".entry-card",variable:"linkInitialColor",type:"color:default"},{selector:".entry-card",variable:"linkHoverColor",type:"color:hover"}]),n(o,"cardBackground",{variable:"cardBackground",type:"color"}),n(o,"cardsGap",{variable:"cardsGap",responsive:!0,unit:"px"}),n(o,"card_spacing",{variable:"cardSpacing",responsive:!0,unit:"px"}),n(o,"logoMaxHeight",{variable:"logoMaxHeight",responsive:!0,unit:"px"}),n(o,"headerLogoSpacing",{variable:"headerLogoSpacing",responsive:!0,unit:""}),n(o,"headerBackground",{variable:"headerBackground",type:"color"}),n(o,"headerShadow",{variable:"headerShadow",type:"color"}),n(o,"headerSpacing",{variable:"headerSpacing",responsive:!0,unit:""}),n(o,"menuFontColor",[{selector:".primary-menu",variable:"menuInitialColor",type:"color:default"},{selector:".primary-menu",variable:"menuHoverColor",type:"color:hover"}]),n(o,"headerMenuItemsSpacing",{selector:".primary-menu",variable:"menuItemsSpacing",unit:"px"}),n(o,"dropdownFontColor",[{selector:".primary-menu .sub-menu",variable:"menuInitialColor",type:"color:default"},{selector:".primary-menu .sub-menu",variable:"menuHoverColor",type:"color:hover"}]),n(o,"navSectionSpacing",{variable:"navSectionSpacing",responsive:!0,unit:""}),n(o,"navSectionBorder",{variable:"navSectionBorder",type:"color"}),n(o,"navSectionBackground",{variable:"navSectionBackground",type:"color"}),n(o,"dropdownMenuWidth",{variable:"dropdownMenuWidth",unit:"px"}),n(o,"dropDownBackground",{variable:"dropDownBackground",type:"color"}),n(o,"topBarFontColor",{variable:"topBarFontColor",type:"color"}),n(o,"topBarLinkColor",[{selector:".header-top-bar",variable:"linkInitialColor",type:"color:default"},{selector:".header-top-bar",variable:"linkHoverColor",type:"color:hover"}]),n(o,"topBarBackground",{variable:"topBarBackground",type:"color"}),n(o,"topBarMenuItemsSpacing",{selector:".header-top-bar-menu",variable:"menuItemsSpacing",responsive:!0,unit:"px"}),n(o,"topBarSpacing",{variable:"topBarSpacing",responsive:!0,unit:""}),n(o,"mobileHeaderBackground",{variable:"mobileHeaderBackground",type:"color"}),n(o,"mobileHeaderSpacing",{variable:"mobileHeaderSpacing",responsive:!0,unit:""}),n(o,"mobileMenuIconColor",[{selector:".mobile-menu-toggle",variable:"linkInitialColor",type:"color:default"},{selector:".mobile-menu-toggle",variable:"linkHoverColor",type:"color:hover"}]),n(o,"mobileMenuLinkColor",[{selector:".mobile-menu",variable:"menuInitialColor",type:"color:default"},{selector:".mobile-menu",variable:"menuHoverColor",type:"color:hover"}]),n(o,"mobileMenuBackground",{selector:".main-navigation",variable:"modalBackground",type:"color"}),n(o,"searchHeaderIconColor",[{selector:".search-button",variable:"linkInitialColor",type:"color:default"},{selector:".search-button",variable:"linkHoverColor",type:"color:hover"}]),n(o,"searchHeaderLinkColor",[{selector:"#search-modal",variable:"linkInitialColor",type:"color:default"},{selector:"#search-modal",variable:"linkHoverColor",type:"color:hover"}]),n(o,"searchHeaderBackground",{selector:"#search-modal",variable:"modalBackground",type:"color"}),n(o,"hero1TitleSize",{variable:"hero1TitleSize",responsive:!0,unit:"px"}),n(o,"hero1FontColor",[{variable:"hero1FontColor",type:"color:default"},{selector:'.hero-section[data-type="type-1"]',variable:"linkHoverColor",type:"color:hover"}]),n(o,"hero2TitleSize",{variable:"hero1TitleSize",responsive:!0,unit:"px"}),n(o,"hero2FontColor",[{variable:"hero2FontColor",type:"color:default"},{selector:'.hero-section[data-type="type-2"]',variable:"linkHoverColor",type:"color:hover"}]),n(o,"heroOverlayColor",{variable:"heroOverlayColor",type:"color"}),n(o,"heroBackground",{variable:"heroBackground",type:"color"}),n(o,"sidebarWidth",{variable:"sidebarWidth",unit:""}),n(o,"sidebarOffset",{variable:"sidebarOffset",unit:"px"}),n(o,"sidebarWidgetsTitleColor",{selector:".ct-sidebar",variable:"widgetsTitleColor",type:"color"}),n(o,"sidebarWidgetsFontColor",{selector:".ct-sidebar",variable:"widgetsFontColor",type:"color"}),n(o,"sidebarWidgetsLink",[{selector:".ct-sidebar",variable:"linkInitialColor",type:"color:default"},{selector:".ct-sidebar",variable:"linkHoverColor",type:"color:hover"}]),n(o,"sidebarBackgroundColor",{variable:"sidebarBackgroundColor",type:"color"}),n(o,"sidebarWidgetsSpacing",{variable:"sidebarWidgetsSpacing",responsive:!0,unit:"px"}),n(o,"sidebarInnerSpacing",{variable:"sidebarInnerSpacing",responsive:!0,unit:"px"}),n(o,"relatedPostsContainerSpacing",{variable:"relatedPostsContainerSpacing",responsive:!0,unit:""}),n(o,"relatedPostsLabelColor",{variable:"relatedPostsLabelColor",type:"color"}),n(o,"relatedPostsLinkColor",[{selector:".ct-related-posts",variable:"linkInitialColor",type:"color:default"},{selector:".ct-related-posts",variable:"linkHoverColor",type:"color:hover"}]),n(o,"relatedPostsMetaColor",{variable:"relatedPostsMetaColor",type:"color"}),n(o,"relatedPostsContainerColor",{variable:"relatedPostsContainerColor",type:"color"}),n(o,"postNavSpacing",{variable:"postNavSpacing",responsive:!0,unit:""}),n(o,"topShareBoxSpacing",{variable:"topShareBoxSpacing",responsive:!0,unit:""}),n(o,"bottomShareBoxSpacing",{variable:"bottomShareBoxSpacing",responsive:!0,unit:""}),n(o,"singleAuthorBoxSpacing",{variable:"singleAuthorBoxSpacing",responsive:!0,unit:""}),n(o,"singleAuthorBoxBackground",{variable:"singleAuthorBoxBackground",type:"color"}),n(o,"singleAuthorBoxBorder",{variable:"singleAuthorBoxBorder",type:"color"}),n(o,"singleAuthorBoxShadow",{variable:"singleAuthorBoxShadow",type:"color"}),n(o,"footerWidgetsTitleColor",{selector:".footer-widgets",variable:"widgetsTitleColor",type:"color"}),n(o,"footerWidgetsFontColor",{selector:".footer-widgets",variable:"widgetsFontColor",type:"color"}),n(o,"footerWidgetsLink",[{selector:".footer-widgets",variable:"linkInitialColor",type:"color:default"},{selector:".footer-widgets",variable:"linkHoverColor",type:"color:hover"}]),n(o,"widgetsAreaBackground",{variable:"widgetsAreaBackground",type:"color"}),n(o,"widgetsAreaDivider",{variable:"widgetsAreaDivider",type:"color"}),n(o,"widgetAreaSpacing",{variable:"widgetAreaSpacing",responsive:!0,unit:""}),n(o,"footerMenuItemsSpacing",{selector:".footer-menu",variable:"menuItemsSpacing",responsive:!0,unit:"px"}),n(o,"footerPrimaryColor",{variable:"footerPrimaryColor",type:"color"}),n(o,"footerPrimaryLink",[{selector:".footer-primary-area",variable:"linkInitialColor",type:"color:default"},{selector:".footer-primary-area",variable:"linkHoverColor",type:"color:hover"}]),n(o,"footerPrimaryBackground",{variable:"footerPrimaryBackground",type:"color"}),n(o,"footerPrimarySpacing",{variable:"footerPrimarySpacing",responsive:!0,unit:""}),n(o,"copyrightText",{variable:"copyrightText",type:"color"}),n(o,"copyrightBackground",{variable:"copyrightBackground",type:"color"}),n(o,"copyrightSpacing",{variable:"copyrightSpacing",responsive:!0,unit:""}),o),a=function(e){return e.desktop?e:{desktop:e,tablet:e,mobile:e}},c=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",o=document.querySelector("#"+{desktop:"ct-main-styles-inline-css",tablet:"ct-main-styles-tablet-inline-css",mobile:"ct-main-styles-mobile-inline-css"}[r]),n=o.innerText,i=e.selector||":root",a=new RegExp(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"\\s?{[\\s\\S]*?}","gm"),c=n.match(a);c&&(o.innerText=n.replace(a,c[0].replace(new RegExp("--"+e.variable+":[\\s\\S]*?;","gm"),"--"+e.variable+": "+t+";")))},l=function(e,t){return[].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t-1?t["color"===e.type?"default":e.type.split(":")[1]].color:t)+(e.unit||""))})};wp.customize.bind("change",function(e){return i[e.id]&&(Array.isArray(i[e.id])?i[e.id]:[i[e.id]]).map(function(t){return l(t,e())})})}]);