(window.blocksyJsonP=window.blocksyJsonP||[]).push([[0],{22:function(e,t,n){"use strict";const r=n(23),o=n(24),c=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,a=["a","audio","canvas","iframe","script","video"],i=r.filter(e=>!a.includes(e)),s=e=>(e=>i.includes(e))(e)?document.createElementNS("http://www.w3.org/2000/svg",e):e===DocumentFragment?document.createDocumentFragment():document.createElement(e),l=(e,t,n)=>{null!=n&&(/^xlink[AHRST]/.test(t)?e.setAttributeNS("http://www.w3.org/1999/xlink",t.replace("xlink","xlink:").toLowerCase(),n):e.setAttribute(t,n))},u=(e,t,n)=>{const r=s(e);return Object.keys(t).forEach(e=>{const n=t[e];if("class"===e||"className"===e)l(r,"class",n);else if("style"===e)((e,t)=>{Object.keys(t).forEach(n=>{let r=t[n];"number"!=typeof r||c.test(n)||(r+="px"),e.style[n]=r})})(r,n);else if(0===e.indexOf("on")){const t=e.slice(2).toLowerCase();r.addEventListener(t,n)}else"dangerouslySetInnerHTML"===e?r.innerHTML=n.__html:"key"!==e&&!1!==n&&l(r,e,!0===n?"":n)}),t.dangerouslySetInnerHTML||r.appendChild(n),r};function f(e,t){const n=[].slice.apply(arguments,[2]),r=document.createDocumentFragment();return o(n).forEach(e=>{e instanceof Node?r.appendChild(e):"boolean"!=typeof e&&null!=e&&r.appendChild(document.createTextNode(e))}),u(e,t||{},r)}const d={createElement:f,Fragment:"function"==typeof DocumentFragment?DocumentFragment:()=>{}};e.exports=d,e.exports.h=f,e.exports.default=d},23:function(e){e.exports=JSON.parse('["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","animation","audio","canvas","circle","clipPath","color-profile","cursor","defs","desc","discard","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","handler","hatch","hatchpath","hkern","iframe","image","line","linearGradient","listener","marker","mask","mesh","meshgradient","meshpatch","meshrow","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","prefetch","radialGradient","rect","script","set","solidColor","solidcolor","stop","style","svg","switch","symbol","tbreak","text","textArea","textPath","title","tref","tspan","unknown","use","video","view","vkern"]')},24:function(e,t,n){"use strict"; /*! * arr-flatten * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */e.exports=function(e){return function e(t,n){for(var r,o=0,c=t.length;o1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=n.clickOutsideHandler,a=n.maybeEl,i=s({postType:"ct_forced_any",mode:"inline",perPage:5},t);if(a&&(i.postType=e.querySelector('[name="post_type"]')?"ct_forced_".concat(e.querySelector('[name="post_type"]').value):e.querySelector('[name="ct_post_type"]')?"ct_forced_".concat(e.querySelector('[name="ct_post_type"]').value):"ct_forced_any",window.fetch)){var f=g((function(t){document.removeEventListener("click",o),document.addEventListener("click",o),0!==t.target.value.trim().length?(e.classList.add("ct-searching"),d("".concat(ct_localizations.rest_url,"wp/v2/posts").concat(ct_localizations.rest_url.indexOf("?")>-1?"&":"?","_embed=1&post_type=").concat(i.postType,"&per_page=").concat(i.perPage,"&search=").concat(t.target.value)).then((function(n){var o=parseInt(n.headers.get("X-WP-Total"),10);n.json().then((function(n){if(!u){e.classList.remove("ct-searching");var a=!!e.querySelector(".ct-search-results");u=!0;var s=e.querySelector(".ct-search-results"),f=(s?s.getBoundingClientRect():0).height;if(s&&0!==t.target.value.trim().length&&0!==n.length?s&&e.removeChild(s):0!==t.target.value.trim().length&&0!==n.length||h(s),n.length>0&&t.target.value.trim().length>0){var d=Object(r.h)("ul",{class:"ct-search-results"},n.map((function(e){var t,n=e.title.rendered,o=e.link,a=e._embedded,i=void 0===a?{}:a;return Object(r.h)("li",{className:"ct-search-item",key:o},Object(r.h)("a",{href:o},Object(r.h)("div",{class:c()((t={},l(t,"ct-image-container",!0),l(t,"ct-no-image",!i["wp:featuredmedia"]),t))},i["wp:featuredmedia"]?Object(r.h)("img",{src:v((i["wp:featuredmedia"][0].media_details||{sizes:[]}).sizes).reduce((function(e,t){return t.widthi.perPage?Object(r.h)("li",{className:"ct-show-more"},Object(r.h)("a",{href:ct_localizations.search_url.replace(/QUERY_STRING/,t.target.value)},ct_localizations.show_more_text)):[]);if(e.appendChild(d),a){var p=e.querySelector(".ct-search-results"),g=p.getBoundingClientRect().height;f!==g&&(p.style.height="".concat(f,"px"),p.classList.add("ct-slide"),requestAnimationFrame((function(){p.style.height="".concat(g,"px"),m(p,(function(){p.removeAttribute("style"),p.classList.remove("ct-slide")}))})))}else y(e.querySelector(".ct-search-results"))}u=!1}}))}))):h(e.querySelector(".ct-search-results"))}),200);a.addEventListener("input",f),"modal"===s({mode:"inline"},t).mode&&a.addEventListener("blur",(function(e){return setTimeout((function(){return f(e)}))})),a.addEventListener("focus",f)}}({clickOutsideHandler:function(n){return"modal"!==s({mode:"inline"},t).mode&&!e.contains(n.target)&&h(e.querySelector(".ct-search-results"))},maybeEl:e.querySelector('input[type="search"]')})};function h(e){if(e){var t=e.getBoundingClientRect().height;e.classList.add("ct-fade-leave"),e.style.height="".concat(t,"px"),e.closest("form").classList.remove("ct-has-dropdown"),requestAnimationFrame((function(){e.classList.remove("ct-fade-leave"),e.classList.add("ct-fade-leave-active"),e.style.height=0,m(e,(function(){return e.parentNode&&e.parentNode.removeChild(e)}))}))}}function m(e,t){var n=function(){e.removeEventListener("transitionend",r),t()},r=function(t){t.target===e&&n()};e.addEventListener("transitionend",r)}function y(e){e.classList.add("ct-fade-enter");var t=e.getBoundingClientRect().height;e.classList.add("ct-fade-leave"),e.style.height=0,e.closest("form").classList.add("ct-has-dropdown"),requestAnimationFrame((function(){e.style.height="".concat(t,"px"),e.classList.remove("ct-fade-enter"),e.classList.add("ct-fade-enter-active"),m(e,(function(){return e.removeAttribute("style")}))}))}function g(e,t){var n;return function(){if(!t)return e.apply(this,arguments);var r=this,o=arguments;clearTimeout(n),n=setTimeout((function(){return n=null,e.apply(r,o)}),t)}}function v(e){var t=[];if("object"==a(e)||"function"==typeof e){for(var n=Object.keys(e),r=n.length,o=0;o