Файловый менеджер - Редактировать - /home/admin/domains/octawebtools.com/public_html/wp-content/plugins/kadence-blocks/dist/blocks-rowlayout.js
�азад
(()=>{var e,t={220:(e,t,n)=>{"use strict";var o=n(6305),r=n(4994);t.A=void 0;var a=r(n(4634)),l=r(n(6305)),i=o(n(1609)),s=r(n(9893)),c=n(790);function d(){}i.default.createElement;var u={contain:"react-Slidy--contain",cover:"react-Slidy--cover",fullHeight:"react-Slidy--fullHeight",fullWidth:"react-Slidy--fullWidth"};t.A=function(e){var t=e.ArrowLeft,o=e.ArrowRight,r=e.children,p=e.classNameBase,g=void 0===p?"react-Slidy":p,m=e.doAfterDestroy,h=void 0===m?d:m,b=e.doAfterInit,f=void 0===b?d:b,v=e.doAfterSlide,y=void 0===v?d:v,k=e.doBeforeSlide,x=void 0===k?d:k,w=e.imageObjectFit,_=e.infiniteLoop,S=void 0!==_&&_,j=e.itemsToPreload,C=void 0===j?1:j,I=e.initialSlide,O=void 0===I?0:I,M=e.ease,P=void 0===M?"ease":M,T=e.lazyLoadSlider,E=void 0===T||T,A=e.lazyLoadConfig,N=void 0===A?{offset:150}:A,L=e.keyboardNavigation,R=void 0!==L&&L,B=e.numOfSlides,D=void 0===B?1:B,F=e.sanitize,z=void 0===F||F,H=e.slide,$=void 0===H?0:H,V=e.slideSpeed,W=void 0===V?500:V,U=e.showArrows,Z=void 0===U||U,G=e.useFullHeight,q=void 0!==G&&G,K=e.useFullWidth,J=void 0===K||K,Y=(0,i.useState)(!E),X=Y[0],Q=Y[1],ee=(0,i.useRef)(null);(0,i.useEffect)(function(){var e;if(E){var t=function(){var t=N.offset,n=void 0===t?0:t;(e=new window.IntersectionObserver(te,{rootMargin:n+"px 0px 0px"})).observe(ee.current)};"IntersectionObserver"in window?t():Promise.resolve().then(function(){return(0,l.default)(n(5127))}).then(t)}return function(){return e&&e.disconnect()}},[]);var te=function(e,t){var n=e[0];(n.isIntersecting||n.intersectionRatio>0)&&(t.unobserve(n.target),Q(!0))},ne=Math.min(D,i.default.Children.count(r)),oe=[g,q&&u.fullHeight,J&&u.fullWidth,w&&u[w]].filter(Boolean).join(" "),re={ArrowLeft:t,ArrowRight:o,children:r,classNameBase:g,doAfterDestroy:h,doAfterInit:f,doAfterSlide:y,doBeforeSlide:x,ease:P,infiniteLoop:S,initialSlide:O,itemsToPreload:C,keyboardNavigation:R,numOfSlides:D,showArrows:Z,slide:$,slideSpeed:W};return(0,c.jsx)("div",{className:oe,ref:ee,children:X&&(0,c.jsx)(s.default,(0,a.default)({},re,{numOfSlides:z?ne:D,children:r}))})}},595:(e,t,n)=>{"use strict";const o=window.wp.i18n,r=window.kadence.icons,a=window.wp.blocks;function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function i(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}function s(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function p(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,l,i=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=a.call(n)).done)&&(i.push(o.value),i.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw r}}return i}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;n[o]=e[o]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var h=n(1609),b=n.n(h),f=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function v(e){var t=e.defaultInputValue,n=void 0===t?"":t,o=e.defaultMenuIsOpen,r=void 0!==o&&o,a=e.defaultValue,l=void 0===a?null:a,i=e.inputValue,s=e.menuIsOpen,c=e.onChange,u=e.onInputChange,p=e.onMenuClose,b=e.onMenuOpen,v=e.value,y=m(e,f),k=g((0,h.useState)(void 0!==i?i:n),2),x=k[0],w=k[1],_=g((0,h.useState)(void 0!==s?s:r),2),S=_[0],j=_[1],C=g((0,h.useState)(void 0!==v?v:l),2),I=C[0],O=C[1],M=(0,h.useCallback)(function(e,t){"function"==typeof c&&c(e,t),O(e)},[c]),P=(0,h.useCallback)(function(e,t){var n;"function"==typeof u&&(n=u(e,t)),w(void 0!==n?n:e)},[u]),T=(0,h.useCallback)(function(){"function"==typeof b&&b(),j(!0)},[b]),E=(0,h.useCallback)(function(){"function"==typeof p&&p(),j(!1)},[p]),A=void 0!==i?i:x,N=void 0!==s?s:S,L=void 0!==v?v:I;return d(d({},y),{},{inputValue:A,menuIsOpen:N,onChange:M,onInputChange:P,onMenuClose:E,onMenuOpen:T,value:L})}function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},y.apply(null,arguments)}function k(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,i(o.key),o)}}function x(e,t){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},x(e,t)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_=function(){return!!e})()}function S(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var j=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),C=Math.abs,I=String.fromCharCode,O=Object.assign;function M(e){return e.trim()}function P(e,t,n){return e.replace(t,n)}function T(e,t){return e.indexOf(t)}function E(e,t){return 0|e.charCodeAt(t)}function A(e,t,n){return e.slice(t,n)}function N(e){return e.length}function L(e){return e.length}function R(e,t){return t.push(e),e}var B=1,D=1,F=0,z=0,H=0,$="";function V(e,t,n,o,r,a,l){return{value:e,root:t,parent:n,type:o,props:r,children:a,line:B,column:D,length:l,return:""}}function W(e,t){return O(V("",null,null,"",null,null,0),e,{length:-e.length},t)}function U(){return H=z>0?E($,--z):0,D--,10===H&&(D=1,B--),H}function Z(){return H=z<F?E($,z++):0,D++,10===H&&(D=1,B++),H}function G(){return E($,z)}function q(){return z}function K(e,t){return A($,e,t)}function J(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Y(e){return B=D=1,F=N($=e),z=0,[]}function X(e){return $="",e}function Q(e){return M(K(z-1,ne(91===e?e+2:40===e?e+1:e)))}function ee(e){for(;(H=G())&&H<33;)Z();return J(e)>2||J(H)>3?"":" "}function te(e,t){for(;--t&&Z()&&!(H<48||H>102||H>57&&H<65||H>70&&H<97););return K(e,q()+(t<6&&32==G()&&32==Z()))}function ne(e){for(;Z();)switch(H){case e:return z;case 34:case 39:34!==e&&39!==e&&ne(H);break;case 40:41===e&&ne(e);break;case 92:Z()}return z}function oe(e,t){for(;Z()&&e+H!==57&&(e+H!==84||47!==G()););return"/*"+K(t,z-1)+"*"+I(47===e?e:Z())}function re(e){for(;!J(G());)Z();return K(e,z)}var ae="-ms-",le="-moz-",ie="-webkit-",se="comm",ce="rule",de="decl",ue="@keyframes";function pe(e,t){for(var n="",o=L(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function ge(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case de:return e.return=e.return||e.value;case se:return"";case ue:return e.return=e.value+"{"+pe(e.children,o)+"}";case ce:e.value=e.props.join(",")}return N(n=pe(e.children,o))?e.return=e.value+"{"+n+"}":""}function me(e){return X(he("",null,null,null,[""],e=Y(e),0,[0],e))}function he(e,t,n,o,r,a,l,i,s){for(var c=0,d=0,u=l,p=0,g=0,m=0,h=1,b=1,f=1,v=0,y="",k=r,x=a,w=o,_=y;b;)switch(m=v,v=Z()){case 40:if(108!=m&&58==E(_,u-1)){-1!=T(_+=P(Q(v),"&","&\f"),"&\f")&&(f=-1);break}case 34:case 39:case 91:_+=Q(v);break;case 9:case 10:case 13:case 32:_+=ee(m);break;case 92:_+=te(q()-1,7);continue;case 47:switch(G()){case 42:case 47:R(fe(oe(Z(),q()),t,n),s);break;default:_+="/"}break;case 123*h:i[c++]=N(_)*f;case 125*h:case 59:case 0:switch(v){case 0:case 125:b=0;case 59+d:-1==f&&(_=P(_,/\f/g,"")),g>0&&N(_)-u&&R(g>32?ve(_+";",o,n,u-1):ve(P(_," ","")+";",o,n,u-2),s);break;case 59:_+=";";default:if(R(w=be(_,t,n,c,d,r,i,y,k=[],x=[],u),a),123===v)if(0===d)he(_,t,w,w,k,a,u,i,x);else switch(99===p&&110===E(_,3)?100:p){case 100:case 108:case 109:case 115:he(e,w,w,o&&R(be(e,w,w,0,0,r,i,y,r,k=[],u),x),r,x,u,i,o?k:x);break;default:he(_,w,w,w,[""],x,0,i,x)}}c=d=g=0,h=f=1,y=_="",u=l;break;case 58:u=1+N(_),g=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==U())continue;switch(_+=I(v),v*h){case 38:f=d>0?1:(_+="\f",-1);break;case 44:i[c++]=(N(_)-1)*f,f=1;break;case 64:45===G()&&(_+=Q(Z())),p=G(),d=u=N(y=_+=re(q())),v++;break;case 45:45===m&&2==N(_)&&(h=0)}}return a}function be(e,t,n,o,r,a,l,i,s,c,d){for(var u=r-1,p=0===r?a:[""],g=L(p),m=0,h=0,b=0;m<o;++m)for(var f=0,v=A(e,u+1,u=C(h=l[m])),y=e;f<g;++f)(y=M(h>0?p[f]+" "+v:P(v,/&\f/g,p[f])))&&(s[b++]=y);return V(e,t,n,0===r?ce:i,s,c,d)}function fe(e,t,n){return V(e,t,n,se,I(H),A(e,2,-2),0)}function ve(e,t,n,o){return V(e,t,n,de,A(e,0,o),A(e,o+1,-1),o)}var ye=function(e,t,n){for(var o=0,r=0;o=r,r=G(),38===o&&12===r&&(t[n]=1),!J(r);)Z();return K(e,z)},ke=new WeakMap,xe=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,o=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ke.get(n))&&!o){ke.set(e,!0);for(var r=[],a=function(e,t){return X(function(e,t){var n=-1,o=44;do{switch(J(o)){case 0:38===o&&12===G()&&(t[n]=1),e[n]+=ye(z-1,t,n);break;case 2:e[n]+=Q(o);break;case 4:if(44===o){e[++n]=58===G()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=I(o)}}while(o=Z());return e}(Y(e),t))}(t,r),l=n.props,i=0,s=0;i<a.length;i++)for(var c=0;c<l.length;c++,s++)e.props[s]=r[i]?a[i].replace(/&\f/g,l[c]):l[c]+" "+a[i]}}},we=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function _e(e,t){switch(function(e,t){return 45^E(e,0)?(((t<<2^E(e,0))<<2^E(e,1))<<2^E(e,2))<<2^E(e,3):0}(e,t)){case 5103:return ie+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ie+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ie+e+le+e+ae+e+e;case 6828:case 4268:return ie+e+ae+e+e;case 6165:return ie+e+ae+"flex-"+e+e;case 5187:return ie+e+P(e,/(\w+).+(:[^]+)/,ie+"box-$1$2"+ae+"flex-$1$2")+e;case 5443:return ie+e+ae+"flex-item-"+P(e,/flex-|-self/,"")+e;case 4675:return ie+e+ae+"flex-line-pack"+P(e,/align-content|flex-|-self/,"")+e;case 5548:return ie+e+ae+P(e,"shrink","negative")+e;case 5292:return ie+e+ae+P(e,"basis","preferred-size")+e;case 6060:return ie+"box-"+P(e,"-grow","")+ie+e+ae+P(e,"grow","positive")+e;case 4554:return ie+P(e,/([^-])(transform)/g,"$1"+ie+"$2")+e;case 6187:return P(P(P(e,/(zoom-|grab)/,ie+"$1"),/(image-set)/,ie+"$1"),e,"")+e;case 5495:case 3959:return P(e,/(image-set\([^]*)/,ie+"$1$`$1");case 4968:return P(P(e,/(.+:)(flex-)?(.*)/,ie+"box-pack:$3"+ae+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ie+e+e;case 4095:case 3583:case 4068:case 2532:return P(e,/(.+)-inline(.+)/,ie+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(N(e)-1-t>6)switch(E(e,t+1)){case 109:if(45!==E(e,t+4))break;case 102:return P(e,/(.+:)(.+)-([^]+)/,"$1"+ie+"$2-$3$1"+le+(108==E(e,t+3)?"$3":"$2-$3"))+e;case 115:return~T(e,"stretch")?_e(P(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==E(e,t+1))break;case 6444:switch(E(e,N(e)-3-(~T(e,"!important")&&10))){case 107:return P(e,":",":"+ie)+e;case 101:return P(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ie+(45===E(e,14)?"inline-":"")+"box$3$1"+ie+"$2$3$1"+ae+"$2box$3")+e}break;case 5936:switch(E(e,t+11)){case 114:return ie+e+ae+P(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ie+e+ae+P(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ie+e+ae+P(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ie+e+ae+e+e}return e}var Se=[function(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case de:e.return=_e(e.value,e.length);break;case ue:return pe([W(e,{value:P(e.value,"@","@"+ie)})],o);case ce:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return pe([W(e,{props:[P(t,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return pe([W(e,{props:[P(t,/:(plac\w+)/,":"+ie+"input-$1")]}),W(e,{props:[P(t,/:(plac\w+)/,":-moz-$1")]}),W(e,{props:[P(t,/:(plac\w+)/,ae+"input-$1")]})],o)}return""})}}],je=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var o,r,a=e.stylisPlugins||Se,l={},i=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)l[t[n]]=!0;i.push(e)});var s,c,d,u,p=[ge,(u=function(e){s.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],g=(c=[xe,we].concat(a,p),d=L(c),function(e,t,n,o){for(var r="",a=0;a<d;a++)r+=c[a](e,t,n,o)||"";return r});r=function(e,t,n,o){s=n,function(e){pe(me(e),g)}(e?e+"{"+t.styles+"}":t.styles),o&&(m.inserted[t.name]=!0)};var m={key:t,sheet:new j({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:r};return m.sheet.hydrate(i),m},Ce=function(e,t,n){var o=e.key+"-"+t.name;!1===n&&void 0===e.registered[o]&&(e.registered[o]=t.styles)},Ie={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Oe(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Me=/[A-Z]|^ms/g,Pe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Te=function(e){return 45===e.charCodeAt(1)},Ee=function(e){return null!=e&&"boolean"!=typeof e},Ae=Oe(function(e){return Te(e)?e:e.replace(Me,"-$&").toLowerCase()}),Ne=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Pe,function(e,t,n){return Re={name:t,styles:n,next:Re},t})}return 1===Ie[e]||Te(e)||"number"!=typeof t||0===t?t:t+"px"};function Le(e,t,n){if(null==n)return"";var o=n;if(void 0!==o.__emotion_styles)return o;switch(typeof n){case"boolean":return"";case"object":var r=n;if(1===r.anim)return Re={name:r.name,styles:r.styles,next:Re},r.name;var a=n;if(void 0!==a.styles){var l=a.next;if(void 0!==l)for(;void 0!==l;)Re={name:l.name,styles:l.styles,next:Re},l=l.next;return a.styles+";"}return function(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=Le(e,t,n[r])+";";else for(var a in n){var l=n[a];if("object"!=typeof l){var i=l;null!=t&&void 0!==t[i]?o+=a+"{"+t[i]+"}":Ee(i)&&(o+=Ae(a)+":"+Ne(a,i)+";")}else if(!Array.isArray(l)||"string"!=typeof l[0]||null!=t&&void 0!==t[l[0]]){var s=Le(e,t,l);switch(a){case"animation":case"animationName":o+=Ae(a)+":"+s+";";break;default:o+=a+"{"+s+"}"}}else for(var c=0;c<l.length;c++)Ee(l[c])&&(o+=Ae(a)+":"+Ne(a,l[c])+";")}return o}(e,t,n);case"function":if(void 0!==e){var i=Re,s=n(e);return Re=i,Le(e,t,s)}}var c=n;if(null==t)return c;var d=t[c];return void 0!==d?d:c}var Re,Be=/label:\s*([^\s;{]+)\s*(;|$)/g;function De(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,r="";Re=void 0;var a=e[0];null==a||void 0===a.raw?(o=!1,r+=Le(n,t,a)):r+=a[0];for(var l=1;l<e.length;l++)r+=Le(n,t,e[l]),o&&(r+=a[l]);Be.lastIndex=0;for(var i,s="";null!==(i=Be.exec(r));)s+="-"+i[1];var c=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(r)+s;return{name:c,styles:r,next:Re}}var Fe,ze,He=!!h.useInsertionEffect&&h.useInsertionEffect,$e=He||function(e){return e()},Ve=(He||h.useLayoutEffect,h.createContext("undefined"!=typeof HTMLElement?je({key:"css"}):null)),We=(Ve.Provider,function(e){return(0,h.forwardRef)(function(t,n){var o=(0,h.useContext)(Ve);return e(t,o,n)})}),Ue=h.createContext({}),Ze={}.hasOwnProperty,Ge="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",qe=function(e){var t=e.cache,n=e.serialized,o=e.isStringTag;return Ce(t,n,o),$e(function(){return function(e,t,n){Ce(e,t,n);var o=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+o:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,n,o)}),null},Ke=We(function(e,t,n){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var r=e[Ge],a=[o],l="";"string"==typeof e.className?l=function(e,t,n){var o="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(o+=n+" ")}),o}(t.registered,a,e.className):null!=e.className&&(l=e.className+" ");var i=De(a,void 0,h.useContext(Ue));l+=t.key+"-"+i.name;var s={};for(var c in e)Ze.call(e,c)&&"css"!==c&&c!==Ge&&(s[c]=e[c]);return s.className=l,n&&(s.ref=n),h.createElement(h.Fragment,null,h.createElement(qe,{cache:t,serialized:i,isStringTag:"string"==typeof r}),h.createElement(r,s))}),Je=Ke,Ye=(n(4146),function(e,t){var n=arguments;if(null==t||!Ze.call(t,"css"))return h.createElement.apply(void 0,n);var o=n.length,r=new Array(o);r[0]=Je,r[1]=function(e,t){var n={};for(var o in t)Ze.call(t,o)&&(n[o]=t[o]);return n[Ge]=e,n}(e,t);for(var a=2;a<o;a++)r[a]=n[a];return h.createElement.apply(null,r)});function Xe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return De(t)}Fe=Ye||(Ye={}),ze||(ze=Fe.JSX||(Fe.JSX={}));const Qe=window.ReactDOM,et=Math.min,tt=Math.max,nt=Math.round,ot=Math.floor,rt=e=>({x:e,y:e});function at(){return"undefined"!=typeof window}function lt(e){return ct(e)?(e.nodeName||"").toLowerCase():"#document"}function it(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function st(e){var t;return null==(t=(ct(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ct(e){return!!at()&&(e instanceof Node||e instanceof it(e).Node)}function dt(e){return!!at()&&(e instanceof Element||e instanceof it(e).Element)}function ut(e){return!!at()&&(e instanceof HTMLElement||e instanceof it(e).HTMLElement)}function pt(e){return!(!at()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof it(e).ShadowRoot)}const gt=new Set(["inline","contents"]);function mt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=bt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!gt.has(r)}const ht=new Set(["html","body","#document"]);function bt(e){return it(e).getComputedStyle(e)}function ft(e){const t=function(e){if("html"===lt(e))return e;const t=e.assignedSlot||e.parentNode||pt(e)&&e.host||st(e);return pt(t)?t.host:t}(e);return function(e){return ht.has(lt(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:ut(t)&&mt(t)?t:ft(t)}function vt(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=ft(e),a=r===(null==(o=e.ownerDocument)?void 0:o.body),l=it(r);if(a){const e=yt(l);return t.concat(l,l.visualViewport||[],mt(r)?r:[],e&&n?vt(e):[])}return t.concat(r,vt(r,[],n))}function yt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function kt(e){return dt(e)?e:e.contextElement}function xt(e){const t=kt(e);if(!ut(t))return rt(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:a}=function(e){const t=bt(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ut(e),a=r?e.offsetWidth:n,l=r?e.offsetHeight:o,i=nt(n)!==a||nt(o)!==l;return i&&(n=a,o=l),{width:n,height:o,$:i}}(t);let l=(a?nt(n.width):n.width)/o,i=(a?nt(n.height):n.height)/r;return l&&Number.isFinite(l)||(l=1),i&&Number.isFinite(i)||(i=1),{x:l,y:i}}const wt=rt(0);function _t(e){const t=it(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:wt}function St(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),a=kt(e);let l=rt(1);t&&(o?dt(o)&&(l=xt(o)):l=xt(e));const i=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==it(e))&&t}(a,n,o)?_t(a):rt(0);let s=(r.left+i.x)/l.x,c=(r.top+i.y)/l.y,d=r.width/l.x,u=r.height/l.y;if(a){const e=it(a),t=o&&dt(o)?it(o):o;let n=e,r=yt(n);for(;r&&o&&t!==n;){const e=xt(r),t=r.getBoundingClientRect(),o=bt(r),a=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;s*=e.x,c*=e.y,d*=e.x,u*=e.y,s+=a,c+=l,n=it(r),r=yt(n)}}return function(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}({width:d,height:u,x:s,y:c})}function jt(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var Ct=h.useLayoutEffect,It=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ot=function(){};function Mt(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Pt(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];var a=[].concat(o);if(t&&e)for(var l in t)t.hasOwnProperty(l)&&t[l]&&a.push("".concat(Mt(e,l)));return a.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var Tt=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===l(e)&&null!==e?[e]:[];var t},Et=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,d({},m(e,It))},At=function(e,t,n){var o=e.cx,r=e.getStyles,a=e.getClassNames,l=e.className;return{css:r(t,e),className:o(null!=n?n:{},a(t,e),l)}};function Nt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Lt(e){return Nt(e)?window.pageYOffset:e.scrollTop}function Rt(e,t){Nt(e)?window.scrollTo(0,t):e.scrollTop=t}function Bt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ot,r=Lt(e),a=t-r,l=0;!function t(){var i=function(e,t,n,o){return n*((e=e/o-1)*e*e+1)+t}(l+=10,r,a,n);Rt(e,i),l<n?window.requestAnimationFrame(t):o(e)}()}function Dt(e,t){var n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r=t.offsetHeight/3;o.bottom+r>n.bottom?Rt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):o.top-r<n.top&&Rt(e,Math.max(t.offsetTop-r,0))}function Ft(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var zt=!1,Ht={get passive(){return zt=!0}},$t="undefined"!=typeof window?window:{};$t.addEventListener&&$t.removeEventListener&&($t.addEventListener("p",Ot,Ht),$t.removeEventListener("p",Ot,!1));var Vt=zt;function Wt(e){return null!=e}function Ut(e,t,n){return e?t:n}var Zt=["children","innerProps"],Gt=["children","innerProps"];var qt,Kt,Jt,Yt=function(e){return"auto"===e?"bottom":e},Xt=(0,h.createContext)(null),Qt=function(e){var t=e.children,n=e.minMenuHeight,o=e.maxMenuHeight,r=e.menuPlacement,a=e.menuPosition,l=e.menuShouldScrollIntoView,i=e.theme,s=((0,h.useContext)(Xt)||{}).setPortalPlacement,c=(0,h.useRef)(null),u=g((0,h.useState)(o),2),p=u[0],m=u[1],b=g((0,h.useState)(null),2),f=b[0],v=b[1],y=i.spacing.controlHeight;return Ct(function(){var e=c.current;if(e){var t="fixed"===a,i=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,r=e.placement,a=e.shouldScroll,l=e.isFixedPosition,i=e.controlHeight,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var d,u=s.getBoundingClientRect().height,p=n.getBoundingClientRect(),g=p.bottom,m=p.height,h=p.top,b=n.offsetParent.getBoundingClientRect().top,f=l||Nt(d=s)?window.innerHeight:d.clientHeight,v=Lt(s),y=parseInt(getComputedStyle(n).marginBottom,10),k=parseInt(getComputedStyle(n).marginTop,10),x=b-k,w=f-h,_=x+v,S=u-v-h,j=g-f+v+y,C=v+h-k,I=160;switch(r){case"auto":case"bottom":if(w>=m)return{placement:"bottom",maxHeight:t};if(S>=m&&!l)return a&&Bt(s,j,I),{placement:"bottom",maxHeight:t};if(!l&&S>=o||l&&w>=o)return a&&Bt(s,j,I),{placement:"bottom",maxHeight:l?w-y:S-y};if("auto"===r||l){var O=t,M=l?x:_;return M>=o&&(O=Math.min(M-y-i,t)),{placement:"top",maxHeight:O}}if("bottom"===r)return a&&Rt(s,j),{placement:"bottom",maxHeight:t};break;case"top":if(x>=m)return{placement:"top",maxHeight:t};if(_>=m&&!l)return a&&Bt(s,C,I),{placement:"top",maxHeight:t};if(!l&&_>=o||l&&x>=o){var P=t;return(!l&&_>=o||l&&x>=o)&&(P=l?x-k:_-k),a&&Bt(s,C,I),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}({maxHeight:o,menuEl:e,minHeight:n,placement:r,shouldScroll:l&&!t,isFixedPosition:t,controlHeight:y});m(i.maxHeight),v(i.placement),null==s||s(i.placement)}},[o,r,a,l,n,s,y]),t({ref:c,placerProps:d(d({},e),{},{placement:f||Yt(r),maxHeight:p})})},en=function(e,t){var n=e.theme,o=n.spacing.baseUnit,r=n.colors;return d({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*o,"px ").concat(3*o,"px")})},tn=en,nn=en,on=["size"],rn=["innerProps","isRtl","size"],an={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},ln=function(e){var t=e.size,n=m(e,on);return Ye("svg",y({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:an},n))},sn=function(e){return Ye(ln,y({size:20},e),Ye("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},cn=function(e){return Ye(ln,y({size:20},e),Ye("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},dn=function(e,t){var n=e.isFocused,o=e.theme,r=o.spacing.baseUnit,a=o.colors;return d({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*r,":hover":{color:n?a.neutral80:a.neutral40}})},un=dn,pn=dn,gn=function(){var e=Xe.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(qt||(Kt=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Jt||(Jt=Kt.slice(0)),qt=Object.freeze(Object.defineProperties(Kt,{raw:{value:Object.freeze(Jt)}})))),mn=function(e){var t=e.delay,n=e.offset;return Ye("span",{css:Xe({animation:"".concat(gn," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},hn=["data"],bn=["innerRef","isDisabled","isHidden","inputClassName"],fn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},vn={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":d({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},fn)},yn=function(e){return d({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},fn)},kn=function(e){var t=e.children,n=e.innerProps;return Ye("div",n,t)},xn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return Ye("div",y({},At(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||Ye(sn,null))},Control:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.innerRef,a=e.innerProps,l=e.menuIsOpen;return Ye("div",y({ref:r},At(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":o,"control--menu-is-open":l}),a,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return Ye("div",y({},At(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||Ye(cn,null))},DownChevron:cn,CrossIcon:sn,Group:function(e){var t=e.children,n=e.cx,o=e.getStyles,r=e.getClassNames,a=e.Heading,l=e.headingProps,i=e.innerProps,s=e.label,c=e.theme,d=e.selectProps;return Ye("div",y({},At(e,"group",{group:!0}),i),Ye(a,y({},l,{selectProps:d,theme:c,getStyles:o,getClassNames:r,cx:n}),s),Ye("div",null,t))},GroupHeading:function(e){var t=Et(e);t.data;var n=m(t,hn);return Ye("div",y({},At(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return Ye("div",y({},At(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return Ye("span",y({},t,At(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,o=Et(e),r=o.innerRef,a=o.isDisabled,l=o.isHidden,i=o.inputClassName,s=m(o,bn);return Ye("div",y({},At(e,"input",{"input-container":!0}),{"data-value":n||""}),Ye("input",y({className:t({input:!0},i),ref:r,style:yn(l),disabled:a},s)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,o=e.size,r=void 0===o?4:o,a=m(e,rn);return Ye("div",y({},At(d(d({},a),{},{innerProps:t,isRtl:n,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),Ye(mn,{delay:0,offset:n}),Ye(mn,{delay:160,offset:!0}),Ye(mn,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,o=e.innerProps;return Ye("div",y({},At(e,"menu",{menu:!0}),{ref:n},o),t)},MenuList:function(e){var t=e.children,n=e.innerProps,o=e.innerRef,r=e.isMulti;return Ye("div",y({},At(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:o},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,o=e.controlElement,r=e.innerProps,a=e.menuPlacement,l=e.menuPosition,i=(0,h.useRef)(null),s=(0,h.useRef)(null),c=g((0,h.useState)(Yt(a)),2),u=c[0],p=c[1],m=(0,h.useMemo)(function(){return{setPortalPlacement:p}},[]),b=g((0,h.useState)(null),2),f=b[0],v=b[1],k=(0,h.useCallback)(function(){if(o){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),t="fixed"===l?0:window.pageYOffset,n=e[u]+t;n===(null==f?void 0:f.offset)&&e.left===(null==f?void 0:f.rect.left)&&e.width===(null==f?void 0:f.rect.width)||v({offset:n,rect:e})}},[o,l,u,null==f?void 0:f.offset,null==f?void 0:f.rect.left,null==f?void 0:f.rect.width]);Ct(function(){k()},[k]);var x=(0,h.useCallback)(function(){"function"==typeof s.current&&(s.current(),s.current=null),o&&i.current&&(s.current=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,c=kt(e),d=r||a?[...c?vt(c):[],...vt(t)]:[];d.forEach(e=>{r&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const u=c&&i?function(e,t){let n,o=null;const r=st(e);function a(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function l(i,s){void 0===i&&(i=!1),void 0===s&&(s=1),a();const c=e.getBoundingClientRect(),{left:d,top:u,width:p,height:g}=c;if(i||t(),!p||!g)return;const m={rootMargin:-ot(u)+"px "+-ot(r.clientWidth-(d+p))+"px "+-ot(r.clientHeight-(u+g))+"px "+-ot(d)+"px",threshold:tt(0,et(1,s))||1};let h=!0;function b(t){const o=t[0].intersectionRatio;if(o!==s){if(!h)return l();o?l(!1,o):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==o||jt(c,e.getBoundingClientRect())||l(),h=!1}try{o=new IntersectionObserver(b,{...m,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(b,m)}o.observe(e)}(!0),a}(c,n):null;let p,g=-1,m=null;l&&(m=new ResizeObserver(e=>{let[o]=e;o&&o.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!s&&m.observe(c),m.observe(t));let h=s?St(e):null;return s&&function t(){const o=St(e);h&&!jt(h,o)&&n(),h=o,p=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{r&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==u||u(),null==(e=m)||e.disconnect(),m=null,s&&cancelAnimationFrame(p)}}(o,i.current,k,{elementResize:"ResizeObserver"in window}))},[o,k]);Ct(function(){x()},[x]);var w=(0,h.useCallback)(function(e){i.current=e,x()},[x]);if(!t&&"fixed"!==l||!f)return null;var _=Ye("div",y({ref:w},At(d(d({},e),{},{offset:f.offset,position:l,rect:f.rect}),"menuPortal",{"menu-portal":!0}),r),n);return Ye(Xt.Provider,{value:m},t?(0,Qe.createPortal)(_,t):_)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,o=e.innerProps,r=m(e,Gt);return Ye("div",y({},At(d(d({},r),{},{children:n,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,o=e.innerProps,r=m(e,Zt);return Ye("div",y({},At(d(d({},r),{},{children:n,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),n)},MultiValue:function(e){var t=e.children,n=e.components,o=e.data,r=e.innerProps,a=e.isDisabled,l=e.removeProps,i=e.selectProps,s=n.Container,c=n.Label,u=n.Remove;return Ye(s,{data:o,innerProps:d(d({},At(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),r),selectProps:i},Ye(c,{data:o,innerProps:d({},At(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:i},t),Ye(u,{data:o,innerProps:d(d({},At(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},l),selectProps:i}))},MultiValueContainer:kn,MultiValueLabel:kn,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return Ye("div",y({role:"button"},n),t||Ye(sn,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,o=e.isFocused,r=e.isSelected,a=e.innerRef,l=e.innerProps;return Ye("div",y({},At(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":o,"option--is-selected":r}),{ref:a,"aria-disabled":n},l),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return Ye("div",y({},At(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,o=e.isDisabled,r=e.isRtl;return Ye("div",y({},At(e,"container",{"--is-disabled":o,"--is-rtl":r}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,o=e.innerProps;return Ye("div",y({},At(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),o),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,o=e.isMulti,r=e.hasValue;return Ye("div",y({},At(e,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":r}),n),t)}},wn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Sn(e,t){return e===t||!(!wn(e)||!wn(t))}function jn(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Sn(e[n],t[n]))return!1;return!0}for(var Cn={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},In=function(e){return Ye("span",y({css:Cn},e))},On={guidance:function(e){var t=e.isSearchable,n=e.isMulti,o=e.tabSelectsValue,r=e.context,a=e.isInitialFocus;switch(r){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return a?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,o=void 0===n?"":n,r=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(o,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,o=e.options,r=e.label,a=void 0===r?"":r,l=e.selectValue,i=e.isDisabled,s=e.isSelected,c=e.isAppleDevice,d=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&l)return"value ".concat(a," focused, ").concat(d(l,n),".");if("menu"===t&&c){var u=i?" disabled":"",p="".concat(s?" selected":"").concat(u);return"".concat(a).concat(p,", ").concat(d(o,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Mn=function(e){var t=e.ariaSelection,n=e.focusedOption,o=e.focusedValue,r=e.focusableOptions,a=e.isFocused,l=e.selectValue,i=e.selectProps,s=e.id,c=e.isAppleDevice,u=i.ariaLiveMessages,p=i.getOptionLabel,g=i.inputValue,m=i.isMulti,b=i.isOptionDisabled,f=i.isSearchable,v=i.menuIsOpen,y=i.options,k=i.screenReaderStatus,x=i.tabSelectsValue,w=i.isLoading,_=i["aria-label"],S=i["aria-live"],j=(0,h.useMemo)(function(){return d(d({},On),u||{})},[u]),C=(0,h.useMemo)(function(){var e,n="";if(t&&j.onChange){var o=t.option,r=t.options,a=t.removedValue,i=t.removedValues,s=t.value,c=a||o||(e=s,Array.isArray(e)?null:e),u=c?p(c):"",g=r||i||void 0,m=g?g.map(p):[],h=d({isDisabled:c&&b(c,l),label:u,labels:m},t);n=j.onChange(h)}return n},[t,j,b,l,p]),I=(0,h.useMemo)(function(){var e="",t=n||o,a=!!(n&&l&&l.includes(n));if(t&&j.onFocus){var i={focused:t,label:p(t),isDisabled:b(t,l),isSelected:a,options:r,context:t===n?"menu":"value",selectValue:l,isAppleDevice:c};e=j.onFocus(i)}return e},[n,o,p,b,j,r,l,c]),O=(0,h.useMemo)(function(){var e="";if(v&&y.length&&!w&&j.onFilter){var t=k({count:r.length});e=j.onFilter({inputValue:g,resultsMessage:t})}return e},[r,g,v,j,y,k,w]),M="initial-input-focus"===(null==t?void 0:t.action),P=(0,h.useMemo)(function(){var e="";if(j.guidance){var t=o?"value":v?"menu":"input";e=j.guidance({"aria-label":_,context:t,isDisabled:n&&b(n,l),isMulti:m,isSearchable:f,tabSelectsValue:x,isInitialFocus:M})}return e},[_,n,o,m,b,f,v,j,l,x,M]),T=Ye(h.Fragment,null,Ye("span",{id:"aria-selection"},C),Ye("span",{id:"aria-focused"},I),Ye("span",{id:"aria-results"},O),Ye("span",{id:"aria-guidance"},P));return Ye(h.Fragment,null,Ye(In,{id:s},M&&T),Ye(In,{"aria-live":S,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},a&&!M&&T))},Pn=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Tn=new RegExp("["+Pn.map(function(e){return e.letters}).join("")+"]","g"),En={},An=0;An<Pn.length;An++)for(var Nn=Pn[An],Ln=0;Ln<Nn.letters.length;Ln++)En[Nn.letters[Ln]]=Nn.base;var Rn=function(e){return e.replace(Tn,function(e){return En[e]})},Bn=function(e,t){void 0===t&&(t=jn);var n=null;function o(){for(var o=[],r=0;r<arguments.length;r++)o[r]=arguments[r];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var a=e.apply(this,o);return n={lastResult:a,lastArgs:o,lastThis:this},a}return o.clear=function(){n=null},o}(Rn),Dn=function(e){return e.replace(/^\s+|\s+$/g,"")},Fn=function(e){return"".concat(e.label," ").concat(e.value)},zn=["innerRef"];function Hn(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=Object.entries(e).filter(function(e){var t=g(e,1)[0];return!n.includes(t)});return r.reduce(function(e,t){var n=g(t,2),o=n[0],r=n[1];return e[o]=r,e},{})}(m(e,zn),"onExited","in","enter","exit","appear");return Ye("input",y({ref:t},n,{css:Xe({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var $n=["boxSizing","height","overflow","paddingRight","position"],Vn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Wn(e){e.cancelable&&e.preventDefault()}function Un(e){e.stopPropagation()}function Zn(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Gn(){return"ontouchstart"in window||navigator.maxTouchPoints}var qn=!("undefined"==typeof window||!window.document||!window.document.createElement),Kn=0,Jn={capture:!1,passive:!1},Yn=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Xn={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Qn(e){var t=e.children,n=e.lockEnabled,o=e.captureEnabled,r=function(e){var t=e.isEnabled,n=e.onBottomArrive,o=e.onBottomLeave,r=e.onTopArrive,a=e.onTopLeave,l=(0,h.useRef)(!1),i=(0,h.useRef)(!1),s=(0,h.useRef)(0),c=(0,h.useRef)(null),d=(0,h.useCallback)(function(e,t){if(null!==c.current){var s=c.current,d=s.scrollTop,u=s.scrollHeight,p=s.clientHeight,g=c.current,m=t>0,h=u-p-d,b=!1;h>t&&l.current&&(o&&o(e),l.current=!1),m&&i.current&&(a&&a(e),i.current=!1),m&&t>h?(n&&!l.current&&n(e),g.scrollTop=u,b=!0,l.current=!0):!m&&-t>d&&(r&&!i.current&&r(e),g.scrollTop=0,b=!0,i.current=!0),b&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,o,r,a]),u=(0,h.useCallback)(function(e){d(e,e.deltaY)},[d]),p=(0,h.useCallback)(function(e){s.current=e.changedTouches[0].clientY},[]),g=(0,h.useCallback)(function(e){var t=s.current-e.changedTouches[0].clientY;d(e,t)},[d]),m=(0,h.useCallback)(function(e){if(e){var t=!!Vt&&{passive:!1};e.addEventListener("wheel",u,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",g,t)}},[g,p,u]),b=(0,h.useCallback)(function(e){e&&(e.removeEventListener("wheel",u,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",g,!1))},[g,p,u]);return(0,h.useEffect)(function(){if(t){var e=c.current;return m(e),function(){b(e)}}},[t,m,b]),function(e){c.current=e}}({isEnabled:void 0===o||o,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),a=function(e){var t=e.isEnabled,n=e.accountForScrollbars,o=void 0===n||n,r=(0,h.useRef)({}),a=(0,h.useRef)(null),l=(0,h.useCallback)(function(e){if(qn){var t=document.body,n=t&&t.style;if(o&&$n.forEach(function(e){var t=n&&n[e];r.current[e]=t}),o&&Kn<1){var a=parseInt(r.current.paddingRight,10)||0,l=document.body?document.body.clientWidth:0,i=window.innerWidth-l+a||0;Object.keys(Vn).forEach(function(e){var t=Vn[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(i,"px"))}t&&Gn()&&(t.addEventListener("touchmove",Wn,Jn),e&&(e.addEventListener("touchstart",Zn,Jn),e.addEventListener("touchmove",Un,Jn))),Kn+=1}},[o]),i=(0,h.useCallback)(function(e){if(qn){var t=document.body,n=t&&t.style;Kn=Math.max(Kn-1,0),o&&Kn<1&&$n.forEach(function(e){var t=r.current[e];n&&(n[e]=t)}),t&&Gn()&&(t.removeEventListener("touchmove",Wn,Jn),e&&(e.removeEventListener("touchstart",Zn,Jn),e.removeEventListener("touchmove",Un,Jn)))}},[o]);return(0,h.useEffect)(function(){if(t){var e=a.current;return l(e),function(){i(e)}}},[t,l,i]),function(e){a.current=e}}({isEnabled:n});return Ye(h.Fragment,null,n&&Ye("div",{onClick:Yn,css:Xn}),t(function(e){r(e),a(e)}))}var eo={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},to=function(e){var t=e.name,n=e.onFocus;return Ye("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:eo,value:"",onChange:function(){}})};function no(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function oo(){return no(/^Mac/i)}var ro=function(e){return e.label},ao=function(e){return e.value},lo={clearIndicator:pn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.theme,a=r.colors,l=r.borderRadius;return d({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:r.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:o?a.primary:a.neutral20,borderRadius:l,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:o?a.primary:a.neutral30}})},dropdownIndicator:un,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,o=n.colors,r=n.spacing;return d({label:"group",cursor:"default",display:"block"},t?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing.baseUnit,a=o.colors;return d({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,t){var n=e.isDisabled,o=e.value,r=e.theme,a=r.spacing,l=r.colors;return d(d({visibility:n?"hidden":"visible",transform:o?"translateZ(0)":""},vn),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:l.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,o=e.size,r=e.theme,a=r.colors,l=r.spacing.baseUnit;return d({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*l})},loadingMessage:nn,menu:function(e,t){var n,o=e.placement,r=e.theme,a=r.borderRadius,l=r.spacing,i=r.colors;return d((s(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(o),"100%"),s(n,"position","absolute"),s(n,"width","100%"),s(n,"zIndex",1),n),t?{}:{backgroundColor:i.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:l.menuGutter,marginTop:l.menuGutter})},menuList:function(e,t){var n=e.maxHeight,o=e.theme.spacing.baseUnit;return d({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:o,paddingTop:o})},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,a=n.colors;return d({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:r/2,margin:o.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,o=n.borderRadius,r=n.colors,a=e.cropWithEllipsis;return d({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:o/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,o=n.spacing,r=n.borderRadius,a=n.colors,l=e.isFocused;return d({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:l?a.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:tn,option:function(e,t){var n=e.isDisabled,o=e.isFocused,r=e.isSelected,a=e.theme,l=a.spacing,i=a.colors;return d({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?i.primary:o?i.primary25:"transparent",color:n?i.neutral20:r?i.neutral0:"inherit",padding:"".concat(2*l.baseUnit,"px ").concat(3*l.baseUnit,"px"),":active":{backgroundColor:n?void 0:r?i.primary:i.primary50}})},placeholder:function(e,t){var n=e.theme,o=n.spacing,r=n.colors;return d({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,o=e.theme,r=o.spacing,a=o.colors;return d({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,o=e.isMulti,r=e.hasValue,a=e.selectProps.controlShouldRenderValue;return d({alignItems:"center",display:o&&r&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},io={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},so={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Ft(),captureMenuScroll:!Ft(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=d({ignoreCase:!0,ignoreAccents:!0,stringify:Fn,trim:!0,matchFrom:"any"},undefined),o=n.ignoreCase,r=n.ignoreAccents,a=n.stringify,l=n.trim,i=n.matchFrom,s=l?Dn(t):t,c=l?Dn(a(e)):a(e);return o&&(s=s.toLowerCase(),c=c.toLowerCase()),r&&(s=Bn(s),c=Rn(c)),"start"===i?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:ro,getOptionValue:ao,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function co(e,t,n,o){return{type:"option",data:t,isDisabled:vo(e,t,n),isSelected:yo(e,t,n),label:bo(e,t),value:fo(e,t),index:o}}function uo(e,t){return e.options.map(function(n,o){if("options"in n){var r=n.options.map(function(n,o){return co(e,n,t,o)}).filter(function(t){return mo(e,t)});return r.length>0?{type:"group",data:n,options:r,index:o}:void 0}var a=co(e,n,t,o);return mo(e,a)?a:void 0}).filter(Wt)}function po(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,S(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function go(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,S(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function mo(e,t){var n=e.inputValue,o=void 0===n?"":n,r=t.data,a=t.isSelected,l=t.label,i=t.value;return(!xo(e)||!a)&&ko(e,{label:l,value:i,data:r},o)}var ho=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},bo=function(e,t){return e.getOptionLabel(t)},fo=function(e,t){return e.getOptionValue(t)};function vo(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function yo(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var o=fo(e,t);return n.some(function(t){return fo(e,t)===o})}function ko(e,t,n){return!e.filterOption||e.filterOption(t,n)}var xo=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},wo=1,_o=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&x(e,t)}(n,e);var t=function(e){var t=_();return function(){var n,o=w(e);if(t){var r=w(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"==l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}(n);function n(e){var o;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(o=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.controlRef=null,o.getControlRef=function(e){o.controlRef=e},o.focusedOptionRef=null,o.getFocusedOptionRef=function(e){o.focusedOptionRef=e},o.menuListRef=null,o.getMenuListRef=function(e){o.menuListRef=e},o.inputRef=null,o.getInputRef=function(e){o.inputRef=e},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(e,t){var n=o.props,r=n.onChange,a=n.name;t.name=a,o.ariaOnChange(e,t),r(e,t)},o.setValue=function(e,t,n){var r=o.props,a=r.closeMenuOnSelect,l=r.isMulti,i=r.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:i}),a&&(o.setState({inputIsHiddenAfterUpdate:!l}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(e,{action:t,option:n})},o.selectOption=function(e){var t=o.props,n=t.blurInputOnSelect,r=t.isMulti,a=t.name,l=o.state.selectValue,i=r&&o.isOptionSelected(e,l),s=o.isOptionDisabled(e,l);if(i){var c=o.getOptionValue(e);o.setValue(l.filter(function(e){return o.getOptionValue(e)!==c}),"deselect-option",e)}else{if(s)return void o.ariaOnChange(e,{action:"select-option",option:e,name:a});r?o.setValue([].concat(S(l),[e]),"select-option",e):o.setValue(e,"select-option")}n&&o.blurInput()},o.removeValue=function(e){var t=o.props.isMulti,n=o.state.selectValue,r=o.getOptionValue(e),a=n.filter(function(e){return o.getOptionValue(e)!==r}),l=Ut(t,a,a[0]||null);o.onChange(l,{action:"remove-value",removedValue:e}),o.focusInput()},o.clearValue=function(){var e=o.state.selectValue;o.onChange(Ut(o.props.isMulti,[],null),{action:"clear",removedValues:e})},o.popValue=function(){var e=o.props.isMulti,t=o.state.selectValue,n=t[t.length-1],r=t.slice(0,t.length-1),a=Ut(e,r,r[0]||null);n&&o.onChange(a,{action:"pop-value",removedValue:n})},o.getFocusedOptionId=function(e){return ho(o.state.focusableOptionsWithIds,e)},o.getFocusableOptionsWithIds=function(){return go(uo(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Pt.apply(void 0,[o.props.classNamePrefix].concat(t))},o.getOptionLabel=function(e){return bo(o.props,e)},o.getOptionValue=function(e){return fo(o.props,e)},o.getStyles=function(e,t){var n=o.props.unstyled,r=lo[e](t,n);r.boxSizing="border-box";var a=o.props.styles[e];return a?a(r,t):r},o.getClassNames=function(e,t){var n,r;return null===(n=(r=o.props.classNames)[e])||void 0===n?void 0:n.call(r,t)},o.getElementId=function(e){return"".concat(o.state.instancePrefix,"-").concat(e)},o.getComponents=function(){return e=o.props,d(d({},xn),e.components);var e},o.buildCategorizedOptions=function(){return uo(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return po(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(e,t){o.setState({ariaSelection:d({value:e},t)})},o.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(e){o.blockOptionHover=!1},o.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&o.onMenuClose():t&&o.openMenu("first"):(t&&(o.openAfterFocus=!0),o.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},o.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||o.props.isDisabled)){var t=o.props,n=t.isMulti,r=t.menuIsOpen;o.focusInput(),r?(o.setState({inputIsHiddenAfterUpdate:!n}),o.onMenuClose()):o.openMenu("first"),e.preventDefault()}},o.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(o.clearValue(),e.preventDefault(),o.openAfterFocus=!1,"touchend"===e.type?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(e){"boolean"==typeof o.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Nt(e.target)&&o.props.onMenuClose():"function"==typeof o.props.closeMenuOnScroll&&o.props.closeMenuOnScroll(e)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(o.initialTouchX=n.clientX,o.initialTouchY=n.clientY,o.userIsDragging=!1)},o.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var r=Math.abs(n.clientX-o.initialTouchX),a=Math.abs(n.clientY-o.initialTouchY);o.userIsDragging=r>5||a>5}},o.onTouchEnd=function(e){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(e.target)&&o.menuListRef&&!o.menuListRef.contains(e.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(e){o.userIsDragging||o.onControlMouseDown(e)},o.onClearIndicatorTouchEnd=function(e){o.userIsDragging||o.onClearIndicatorMouseDown(e)},o.onDropdownIndicatorTouchEnd=function(e){o.userIsDragging||o.onDropdownIndicatorMouseDown(e)},o.handleInputChange=function(e){var t=o.props.inputValue,n=e.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(n,{action:"input-change",prevInputValue:t}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(e){var t=o.props.inputValue;o.menuListRef&&o.menuListRef.contains(document.activeElement)?o.inputRef.focus():(o.props.onBlur&&o.props.onBlur(e),o.onInputChange("",{action:"input-blur",prevInputValue:t}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1}))},o.onOptionHover=function(e){if(!o.blockOptionHover&&o.state.focusedOption!==e){var t=o.getFocusableOptions().indexOf(e);o.setState({focusedOption:e,focusedOptionId:t>-1?o.getFocusedOptionId(e):null})}},o.shouldHideSelectedOptions=function(){return xo(o.props)},o.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),o.focus()},o.onKeyDown=function(e){var t=o.props,n=t.isMulti,r=t.backspaceRemovesValue,a=t.escapeClearsValue,l=t.inputValue,i=t.isClearable,s=t.isDisabled,c=t.menuIsOpen,d=t.onKeyDown,u=t.tabSelectsValue,p=t.openMenuOnFocus,g=o.state,m=g.focusedOption,h=g.focusedValue,b=g.selectValue;if(!(s||"function"==typeof d&&(d(e),e.defaultPrevented))){switch(o.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||l)return;o.focusValue("previous");break;case"ArrowRight":if(!n||l)return;o.focusValue("next");break;case"Delete":case"Backspace":if(l)return;if(h)o.removeValue(h);else{if(!r)return;n?o.popValue():i&&o.clearValue()}break;case"Tab":if(o.isComposing)return;if(e.shiftKey||!c||!u||!m||p&&o.isOptionSelected(m,b))return;o.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(o.isComposing)return;o.selectOption(m);break}return;case"Escape":c?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:l}),o.onMenuClose()):i&&a&&o.clearValue();break;case" ":if(l)return;if(!c){o.openMenu("first");break}if(!m)return;o.selectOption(m);break;case"ArrowUp":c?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":c?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!c)return;o.focusOption("pageup");break;case"PageDown":if(!c)return;o.focusOption("pagedown");break;case"Home":if(!c)return;o.focusOption("first");break;case"End":if(!c)return;o.focusOption("last");break;default:return}e.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++wo),o.state.selectValue=Tt(e.value),e.menuIsOpen&&o.state.selectValue.length){var r=o.getFocusableOptionsWithIds(),a=o.buildFocusableOptions(),l=a.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=r,o.state.focusedOption=a[l],o.state.focusedOptionId=ho(r,a[l])}return o}return function(e,t,n){t&&k(e.prototype,t),n&&k(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Dt(this.menuListRef,this.focusedOptionRef),(oo()||no(/^iPhone/i)||no(/^iPad/i)||oo()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,o=t.menuIsOpen,r=this.state.isFocused;(r&&!n&&e.isDisabled||r&&o&&!e.menuIsOpen)&&this.focusInput(),r&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Dt(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,o=n.selectValue,r=n.isFocused,a=this.buildFocusableOptions(),l="first"===e?0:a.length-1;if(!this.props.isMulti){var i=a.indexOf(o[0]);i>-1&&(l=i)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[l],focusedOptionId:this.getFocusedOptionId(a[l])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,o=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=n.indexOf(o);o||(r=-1);var a=n.length-1,l=-1;if(n.length){switch(e){case"previous":l=0===r?0:-1===r?a:r-1;break;case"next":r>-1&&r<a&&(l=r+1)}this.setState({inputIsHidden:-1!==l,focusedValue:n[l]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,o=this.getFocusableOptions();if(o.length){var r=0,a=o.indexOf(n);n||(a=-1),"up"===e?r=a>0?a-1:o.length-1:"down"===e?r=(a+1)%o.length:"pageup"===e?(r=a-t)<0&&(r=0):"pagedown"===e?(r=a+t)>o.length-1&&(r=o.length-1):"last"===e&&(r=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[r],focusedValue:null,focusedOptionId:this.getFocusedOptionId(o[r])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(io):d(d({},io),this.props.theme):io}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,o=this.getClassNames,r=this.getValue,a=this.selectOption,l=this.setValue,i=this.props,s=i.isMulti,c=i.isRtl,d=i.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:o,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:c,options:d,selectOption:a,selectProps:i,setValue:l,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return vo(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return yo(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ko(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,r=e.inputValue,a=e.tabIndex,l=e.form,i=e.menuIsOpen,s=e.required,c=this.getComponents().Input,u=this.state,p=u.inputIsHidden,g=u.ariaSelection,m=this.commonProps,b=o||this.getElementId("input"),f=d(d(d({"aria-autocomplete":"list","aria-expanded":i,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":s,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},i&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==g?void 0:g.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?h.createElement(c,y({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:b,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:a,form:l,type:"text",value:r},f)):h.createElement(Hn,y({id:b,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ot,onFocus:this.onInputFocus,disabled:t,tabIndex:a,inputMode:"none",form:l,value:""},f))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,o=t.MultiValueContainer,r=t.MultiValueLabel,a=t.MultiValueRemove,l=t.SingleValue,i=t.Placeholder,s=this.commonProps,c=this.props,d=c.controlShouldRenderValue,u=c.isDisabled,p=c.isMulti,g=c.inputValue,m=c.placeholder,b=this.state,f=b.selectValue,v=b.focusedValue,k=b.isFocused;if(!this.hasValue()||!d)return g?null:h.createElement(i,y({},s,{key:"placeholder",isDisabled:u,isFocused:k,innerProps:{id:this.getElementId("placeholder")}}),m);if(p)return f.map(function(t,l){var i=t===v,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return h.createElement(n,y({},s,{components:{Container:o,Label:r,Remove:a},isFocused:i,isDisabled:u,key:c,index:l,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(g)return null;var x=f[0];return h.createElement(l,y({},s,{data:x,isDisabled:u}),this.formatOptionLabel(x,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||r)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return h.createElement(e,y({},t,{innerProps:l,isFocused:a}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,r=n.isLoading,a=this.state.isFocused;return e&&r?h.createElement(e,y({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:a})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,r=this.props.isDisabled,a=this.state.isFocused;return h.createElement(n,y({},o,{isDisabled:r,isFocused:a}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return h.createElement(e,y({},t,{innerProps:r,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,o=t.GroupHeading,r=t.Menu,a=t.MenuList,l=t.MenuPortal,i=t.LoadingMessage,s=t.NoOptionsMessage,c=t.Option,d=this.commonProps,u=this.state.focusedOption,p=this.props,g=p.captureMenuScroll,m=p.inputValue,b=p.isLoading,f=p.loadingMessage,v=p.minMenuHeight,k=p.maxMenuHeight,x=p.menuIsOpen,w=p.menuPlacement,_=p.menuPosition,S=p.menuPortalTarget,j=p.menuShouldBlockScroll,C=p.menuShouldScrollIntoView,I=p.noOptionsMessage,O=p.onMenuScrollToTop,M=p.onMenuScrollToBottom;if(!x)return null;var P,T=function(t,n){var o=t.type,r=t.data,a=t.isDisabled,l=t.isSelected,i=t.label,s=t.value,p=u===r,g=a?void 0:function(){return e.onOptionHover(r)},m=a?void 0:function(){return e.selectOption(r)},b="".concat(e.getElementId("option"),"-").concat(n),f={id:b,onClick:m,onMouseMove:g,onMouseOver:g,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:l};return h.createElement(c,y({},d,{innerProps:f,data:r,isDisabled:a,isSelected:l,key:b,label:i,type:o,value:s,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map(function(t){if("group"===t.type){var r=t.data,a=t.options,l=t.index,i="".concat(e.getElementId("group"),"-").concat(l),s="".concat(i,"-heading");return h.createElement(n,y({},d,{key:i,data:r,options:a,Heading:o,headingProps:{id:s,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return T(e,"".concat(l,"-").concat(e.index))}))}if("option"===t.type)return T(t,"".concat(t.index))});else if(b){var E=f({inputValue:m});if(null===E)return null;P=h.createElement(i,d,E)}else{var A=I({inputValue:m});if(null===A)return null;P=h.createElement(s,d,A)}var N={minMenuHeight:v,maxMenuHeight:k,menuPlacement:w,menuPosition:_,menuShouldScrollIntoView:C},L=h.createElement(Qt,y({},d,N),function(t){var n=t.ref,o=t.placerProps,l=o.placement,i=o.maxHeight;return h.createElement(r,y({},d,N,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:b,placement:l}),h.createElement(Qn,{captureEnabled:g,onTopArrive:O,onBottomArrive:M,lockEnabled:j},function(t){return h.createElement(a,y({},d,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":d.isMulti,id:e.getElementId("listbox")},isLoading:b,maxHeight:i,focusedOption:u}),P)}))});return S||"fixed"===_?h.createElement(l,y({},d,{appendTo:S,controlElement:this.controlRef,menuPlacement:w,menuPosition:_}),L):L}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,r=t.isMulti,a=t.name,l=t.required,i=this.state.selectValue;if(l&&!this.hasValue()&&!o)return h.createElement(to,{name:a,onFocus:this.onValueInputFocus});if(a&&!o){if(r){if(n){var s=i.map(function(t){return e.getOptionValue(t)}).join(n);return h.createElement("input",{name:a,type:"hidden",value:s})}var c=i.length>0?i.map(function(t,n){return h.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})}):h.createElement("input",{name:a,type:"hidden",value:""});return h.createElement("div",null,c)}var d=i[0]?this.getOptionValue(i[0]):"";return h.createElement("input",{name:a,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,o=t.focusedOption,r=t.focusedValue,a=t.isFocused,l=t.selectValue,i=this.getFocusableOptions();return h.createElement(Mn,y({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:o,focusedValue:r,isFocused:a,selectValue:l,focusableOptions:i,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,r=e.ValueContainer,a=this.props,l=a.className,i=a.id,s=a.isDisabled,c=a.menuIsOpen,d=this.state.isFocused,u=this.commonProps=this.getCommonProps();return h.createElement(o,y({},u,{className:l,innerProps:{id:i,onKeyDown:this.onKeyDown},isDisabled:s,isFocused:d}),this.renderLiveRegion(),h.createElement(t,y({},u,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:s,isFocused:d,menuIsOpen:c}),h.createElement(r,y({},u,{isDisabled:s}),this.renderPlaceholderOrValue(),this.renderInput()),h.createElement(n,y({},u,{isDisabled:s}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,o=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,l=t.isFocused,i=t.prevWasFocused,s=t.instancePrefix,c=e.options,u=e.value,p=e.menuIsOpen,g=e.inputValue,m=e.isMulti,h=Tt(u),b={};if(n&&(u!==n.value||c!==n.options||p!==n.menuIsOpen||g!==n.inputValue)){var f=p?function(e,t){return po(uo(e,t))}(e,h):[],v=p?go(uo(e,h),"".concat(s,"-option")):[],y=o?function(e,t){var n=e.focusedValue,o=e.selectValue.indexOf(n);if(o>-1){if(t.indexOf(n)>-1)return n;if(o<t.length)return t[o]}return null}(t,h):null,k=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,f);b={selectValue:h,focusedOption:k,focusedOptionId:ho(v,k),focusableOptionsWithIds:v,focusedValue:y,clearFocusValueOnUpdate:!1}}var x=null!=r&&e!==n?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},w=a,_=l&&i;return l&&!_&&(w={value:Ut(m,h,h[0]||null),options:h,action:"initial-input-focus"},_=!i),"initial-input-focus"===(null==a?void 0:a.action)&&(w=null),d(d(d({},b),x),{},{prevProps:e,ariaSelection:w,prevWasFocused:_})}}]),n}(h.Component);_o.defaultProps=so;var So=(0,h.forwardRef)(function(e,t){var n=v(e);return h.createElement(_o,y({ref:t},n))});const jo=window.lodash;var Co=n(6942),Io=n.n(Co);const Oo=window.kadence.components,Mo=window.kadence.helpers,Po=window.wp.apiFetch;var To=n.n(Po);const Eo=window.wp.data,Ao=window.wp.element,No=window.wp.components,Lo=window.wp.hooks,Ro=window.wp.primitives;var Bo=n(790);const Do=(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24",children:(0,Bo.jsx)(Ro.Path,{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})}),Fo=(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Bo.jsx)(Ro.Path,{d:"m11.3 17.2-5-5c-.1-.1-.1-.3 0-.4l2.3-2.3-1.1-1-2.3 2.3c-.7.7-.7 1.8 0 2.5l5 5H7.5v1.5h5.3v-5.2h-1.5v2.6zm7.5-6.4-5-5h2.7V4.2h-5.2v5.2h1.5V6.8l5 5c.1.1.1.3 0 .4l-2.3 2.3 1.1 1.1 2.3-2.3c.6-.7.6-1.9-.1-2.5z"})}),zo=(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Bo.jsx)(Ro.Path,{d:"m13.06 12 6.47-6.47-1.06-1.06L12 10.94 5.53 4.47 4.47 5.53 10.94 12l-6.47 6.47 1.06 1.06L12 13.06l6.47 6.47 1.06-1.06L13.06 12Z"})}),Ho=window.wp.compose,$o=(0,Bo.jsx)(Ro.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Bo.jsx)(Ro.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})}),Vo=(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Bo.jsx)(Ro.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})}),Wo=window.wp.notices,Uo=window.wp.a11y;var Zo=n(731),Go=n.n(Zo);const qo=/([\p{Ll}\d])(\p{Lu})/gu,Ko=/(\p{Lu})([\p{Lu}][\p{Ll}])/gu,Jo=/(\d)\p{Ll}|(\p{L})\d/u,Yo=/[^\p{L}\d]+/giu,Xo="$1\0$2";function Qo(e){let t=e.trim();t=t.replace(qo,Xo).replace(Ko,Xo),t=t.replace(Yo,"\0");let n=0,o=t.length;for(;"\0"===t.charAt(n);)n++;if(n===o)return[];for(;"\0"===t.charAt(o-1);)o--;return t.slice(n,o).split(/\0/g)}function er(e){const t=Qo(e);for(let e=0;e<t.length;e++){const n=t[e],o=Jo.exec(n);if(o){const r=o.index+(o[1]??o[2]).length;t.splice(e,1,n.slice(0,r),n.slice(r))}}return t}function tr(e,t){const[n,o,r]=function(e,t={}){const n=t.split??(t.separateNumbers?er:Qo),o=t.prefixCharacters??"",r=t.suffixCharacters??"";let a=0,l=e.length;for(;a<e.length;){const t=e.charAt(a);if(!o.includes(t))break;a++}for(;l>a;){const t=l-1,n=e.charAt(t);if(!r.includes(n))break;l=t}return[e.slice(0,a),n(e.slice(a,l)),e.slice(l)]}(e,t);return n+o.map((a=t?.locale,!1===a?e=>e.toLowerCase():e=>e.toLocaleLowerCase(a))).join(t?.delimiter??" ")+r;var a}const nr=e=>e.name||"",or=e=>e.title,rr=e=>e.description||"",ar=e=>e.keywords||[],lr=e=>e.category,ir=()=>null;function sr(e=""){return tr(e,{splitRegexp:[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],stripRegexp:/(\p{C}|\p{P}|\p{S})+/giu}).split(" ").filter(Boolean)}function cr(e=""){return e?e=(e=(e=Go()(e)).replace(/^\//,"")).toLowerCase():e}const dr=(e="")=>sr(cr(e)),ur=(e=[],t="",n={})=>{if(!t)return e;if(0===dr(t).length)return e;const o=e.map(e=>[e,pr(e,t,n)]).filter(([,e])=>e>0);return o.sort(([,e],[,t])=>t-e),o.map(([e])=>e)};function pr(e,t,n={}){const{getName:o=nr,getTitle:r=or,getDescription:a=rr,getKeywords:l=ar,getCategory:i=lr,getCollection:s=ir}=n,c=o(e),d=r(e),u=a(e),p=l(e),g=i(e),m=s(e),h=cr(t),b=cr(d);let f=0;if(h===b)f+=30;else if(b.startsWith(h))f+=20;else{const e=[c,d,u,...p,g,m].join(" ");0===(v=sr(h),y=e,v.filter(e=>!dr(y).some(t=>t.includes(e)))).length&&(f+=10)}var v,y;return 0!==f&&c.startsWith("core/")&&(f+=c!==e.id?1:2),f}const gr=(e,t,n,o)=>{if(!e.includes(o))return"";const r=e.indexOf(t);if(!r)return"";const a=r+t.length;return e.substring(a,e.indexOf(n,a))},mr=(e,t,n,o,r)=>{if(!e.includes(o))return"";const a=e.indexOf(t,r);if(!a)return"";const l=a+t.length,i=e.indexOf(n,l),s=e.substring(l,i);return s?s.includes(o)?s:mr(e,t,n,o,i+n.length):""};function hr(e,t){if(!e)return e;if(!t)return e;if("dark"!==t&&"highlight"!==t)return e;e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll("logo-placeholder.png","logo-placeholder-white.png")).replaceAll("logo-placeholder-1.png","logo-placeholder-1-white.png")).replaceAll("logo-placeholder-2.png","logo-placeholder-2-white.png")).replaceAll("logo-placeholder-3.png","logo-placeholder-3-white.png")).replaceAll("logo-placeholder-4.png","logo-placeholder-4-white.png")).replaceAll("logo-placeholder-5.png","logo-placeholder-5-white.png")).replaceAll("logo-placeholder-6.png","logo-placeholder-6-white.png")).replaceAll("logo-placeholder-7.png","logo-placeholder-7-white.png")).replaceAll("logo-placeholder-8.png","logo-placeholder-8-white.png")).replaceAll("logo-placeholder-9.png","logo-placeholder-9-white.png")).replaceAll("logo-placeholder-10.png","logo-placeholder-10-white.png");const n=[];if("dark"===t){let t=gr(e,"wp:kadence/tabs","wp:kadence/tab","kb-pattern-active-tab-highlight");if(t){const n=t;t=t.replaceAll('"titleColorActive":"palette9"','"titleColorActive":"ph-kb-pal9"'),t=t.replaceAll('"titleColorHover":"palette9"','"titleColorHover":"ph-kb-pal9"'),e=e.replace(n,t)}let o=gr(e,"wp:kadence/rowlayout","wp:kadence/rowlayout","kb-divider-static");if(o){const t=o;o=o.replaceAll('"bottomSepColor":"palette9"','"bottomSepColor":"ph-kb-pal9"'),o=o.replaceAll('"bottomSepColor":"palette8"','"bottomSepColor":"ph-kb-pal8"'),o=o.replaceAll('"topSepColor":"palette9"','"topSepColor":"ph-kb-pal9"'),o=o.replaceAll('"topSepColor":"palette8"','"topSepColor":"ph-kb-pal8"'),e=e.replace(t,o)}let r=mr(e,"\x3c!-- wp:kadence/column","kt-inside-inner-col","kb-pattern-light-color",0);if(r){const t=r;r=r.replaceAll('"textColor":"palette9"','"textColor":"ph-kb-pal9"'),r=r.replaceAll('"linkColor":"palette9"','"linkColor":"ph-kb-pal9"'),r=r.replaceAll('"linkHoverColor":"palette9"','"linkHoverColor":"ph-kb-pal9"'),e=e.replace(t,r)}n.push({from:"has-theme-palette-3",to:"ph-kb-class9"}),n.push({from:"has-theme-palette-4",to:"ph-kb-class8"}),n.push({from:"has-theme-palette-5",to:"ph-kb-class7"}),n.push({from:"has-theme-palette-6",to:"ph-kb-class7"}),n.push({from:"has-theme-palette-7",to:"ph-kb-class3"}),n.push({from:"has-theme-palette-8",to:"ph-kb-class3"}),n.push({from:"has-theme-palette-9",to:"ph-kb-class4"}),n.push({from:"theme-palette3",to:"ph-class-kb-pal9"}),n.push({from:"theme-palette4",to:"ph-class-kb-pal8"}),n.push({from:"theme-palette5",to:"ph-class-kb-pal7"}),n.push({from:"theme-palette6",to:"ph-class-kb-pal7"}),n.push({from:"theme-palette7",to:"ph-class-kb-pal3"}),n.push({from:"theme-palette8",to:"ph-class-kb-pal3"}),n.push({from:"theme-palette9",to:"ph-class-kb-pal4"}),n.push({from:"palette3",to:"ph-kb-pal9"}),n.push({from:"palette4",to:"ph-kb-pal8"}),n.push({from:"palette5",to:"ph-kb-pal7"}),n.push({from:"palette6",to:"ph-kb-pal7"}),n.push({from:"palette7",to:"ph-kb-pal3"}),n.push({from:"palette8",to:"ph-kb-pal3"}),n.push({from:"palette9",to:"ph-kb-pal4"})}else if("highlight"===t){let t=gr(e,'"submit":[{',"]}","wp:kadence/form");if(t){const n=t;t=t.replaceAll('"color":""','"color":"ph-kb-pal9"'),t=t.replaceAll('"background":""','"background":"ph-kb-pal3"'),t=t.replaceAll('"colorHover":""','"colorHover":"ph-kb-pal9"'),t=t.replaceAll('"backgroundHover":""','"backgroundHover":"ph-kb-pal4"'),e=e.replace(n,t)}let o=gr(e,"wp:kadence/rowlayout","wp:kadence/rowlayout","kb-divider-static");if(o){const t=o;o=o.replaceAll('"bottomSepColor":"palette9"','"bottomSepColor":"ph-kb-pal9"'),o=o.replaceAll('"bottomSepColor":"palette8"','"bottomSepColor":"ph-kb-pal8"'),o=o.replaceAll('"topSepColor":"palette9"','"topSepColor":"ph-kb-pal9"'),o=o.replaceAll('"topSepColor":"palette8"','"topSepColor":"ph-kb-pal8"'),e=e.replace(t,o)}e=(e=e.replaceAll('"inheritStyles":"inherit"','"color":"ph-kb-pal9","background":"ph-kb-pal3","colorHover":"ph-kb-pal9","backgroundHover":"ph-kb-pal4","inheritStyles":"inherit"')).replaceAll('"inheritStyles":"outline"','"color":"ph-kb-pal9","colorHover":"ph-kb-pal9","borderStyle":[{"top":["ph-kb-pal9","",""],"right":["ph-kb-pal9","",""],"bottom":["ph-kb-pal9","",""],"left":["ph-kb-pal9","",""],"unit":"px"}],"borderHoverStyle":[{"top":["ph-kb-pal9","",""],"right":["ph-kb-pal9","",""],"bottom":["ph-kb-pal9","",""],"left":["ph-kb-pal9","",""],"unit":"px"}],"inheritStyles":"outline"'),n.push({from:"has-theme-palette-1",to:"ph-kb-class9"}),n.push({from:"has-theme-palette-2",to:"ph-kb-class8"}),n.push({from:"has-theme-palette-3",to:"ph-kb-class9"}),n.push({from:"has-theme-palette-4",to:"ph-kb-class9"}),n.push({from:"has-theme-palette-5",to:"ph-kb-class8"}),n.push({from:"has-theme-palette-6",to:"ph-kb-class7"}),n.push({from:"has-theme-palette-7",to:"ph-kb-class2"}),n.push({from:"has-theme-palette-8",to:"ph-kb-class2"}),n.push({from:"has-theme-palette-9",to:"ph-kb-class1"}),n.push({from:"theme-palette1",to:"ph-class-kb-pal9"}),n.push({from:"theme-palette2",to:"ph-class-kb-pal8"}),n.push({from:"theme-palette3",to:"ph-class-kb-pal9"}),n.push({from:"theme-palette4",to:"ph-class-kb-pal9"}),n.push({from:"theme-palette5",to:"ph-class-kb-pal8"}),n.push({from:"theme-palette6",to:"ph-class-kb-pal8"}),n.push({from:"theme-palette7",to:"ph-class-kb-pal2"}),n.push({from:"theme-palette8",to:"ph-class-kb-pal2"}),n.push({from:"theme-palette9",to:"ph-class-kb-pal1"}),n.push({from:"palette1",to:"ph-kb-pal9"}),n.push({from:"palette2",to:"ph-kb-pal8"}),n.push({from:"palette3",to:"ph-kb-pal9"}),n.push({from:"palette4",to:"ph-kb-pal9"}),n.push({from:"palette5",to:"ph-kb-pal8"}),n.push({from:"palette6",to:"ph-kb-pal7"}),n.push({from:"palette7",to:"ph-kb-pal2"}),n.push({from:"palette8",to:"ph-kb-pal2"}),n.push({from:"palette9",to:"ph-kb-pal1"})}n.push({from:"ph-kb-class1",to:"has-theme-palette-1"},{from:"ph-kb-class2",to:"has-theme-palette-2"},{from:"ph-kb-class3",to:"has-theme-palette-3"},{from:"ph-kb-class4",to:"has-theme-palette-4"},{from:"ph-kb-class5",to:"has-theme-palette-5"},{from:"ph-kb-class6",to:"has-theme-palette-6"},{from:"ph-kb-class7",to:"has-theme-palette-7"},{from:"ph-kb-class8",to:"has-theme-palette-8"},{from:"ph-kb-class9",to:"has-theme-palette-9"},{from:"ph-class-kb-pal1",to:"theme-palette1"},{from:"ph-class-kb-pal2",to:"theme-palette2"},{from:"ph-class-kb-pal3",to:"theme-palette3"},{from:"ph-class-kb-pal4",to:"theme-palette4"},{from:"ph-class-kb-pal5",to:"theme-palette5"},{from:"ph-class-kb-pal6",to:"theme-palette6"},{from:"ph-class-kb-pal7",to:"theme-palette7"},{from:"ph-class-kb-pal8",to:"theme-palette8"},{from:"ph-class-kb-pal9",to:"theme-palette9"},{from:"ph-kb-pal1",to:"palette1"},{from:"ph-kb-pal2",to:"palette2"},{from:"ph-kb-pal3",to:"palette3"},{from:"ph-kb-pal4",to:"palette4"},{from:"ph-kb-pal5",to:"palette5"},{from:"ph-kb-pal6",to:"palette6"},{from:"ph-kb-pal7",to:"palette7"},{from:"ph-kb-pal8",to:"palette8"},{from:"ph-kb-pal9",to:"palette9"});for(const t of n)e=e.replace(new RegExp(t.from,"g"),t.to);return e}function br(e,t,n,o,r,a=""){if(!e)return e;if(!t.data?.[0]?.images)return e;const l=t.data?.[0]?.images,i=t.data?.[1]?.images||t.data?.[0]?.images;let s=t.data?.[2]?.images;!s&&"team"===n?.[0]&&a?.data?.[0]?.images&&(s=a?.data?.[0]?.images),s||(s=t.data?.[1]?.images||t.data?.[0]?.images);let c=r;c>i.length&&(c-=i.length),c>i.length&&(c-=i.length);let d=r;d>s.length&&(d-=s.length),d>s.length&&(d-=s.length);const u={a1:l?.[r]?.sizes?.[0]?.src||l?.[0]?.sizes?.[0]?.src,a2:l?.[r+1]?.sizes?.[0]?.src||l?.[0]?.sizes?.[0]?.src||l?.[0]?.sizes?.[0]?.src,a3:l?.[r+2]?.sizes?.[0]?.src||l?.[1]?.sizes?.[0]?.src||l?.[0]?.sizes?.[0]?.src,a4:l?.[r+3]?.sizes?.[0]?.src||l?.[2]?.sizes?.[0]?.src||l?.[0]?.sizes?.[0]?.src,a5:l?.[r+4]?.sizes?.[0]?.src||l?.[3]?.sizes?.[0]?.src||l?.[0]?.sizes?.[0]?.src,b1:i?.[c]?.sizes?.[0]?.src||i?.[0]?.sizes?.[0]?.src,b2:i?.[c+1]?.sizes?.[0]?.src||i?.[1]?.sizes?.[0]?.src||i?.[0]?.sizes?.[0]?.src,b3:i?.[c+2]?.sizes?.[0]?.src||i?.[2]?.sizes?.[0]?.src||i?.[1]?.sizes?.[0]?.src||i?.[0]?.sizes?.[0]?.src,b4:i?.[c+3]?.sizes?.[0]?.src||i?.[3]?.sizes?.[0]?.src||i?.[2]?.sizes?.[0]?.src||i?.[1]?.sizes?.[0]?.src,b5:i?.[c+4]?.sizes?.[0]?.src||i?.[4]?.sizes?.[0]?.src||i?.[3]?.sizes?.[0]?.src||i?.[2]?.sizes?.[0]?.src,b6:i?.[c+5]?.sizes?.[0]?.src||i?.[5]?.sizes?.[0]?.src||i?.[4]?.sizes?.[0]?.src||i?.[3]?.sizes?.[0]?.src,p1:s?.[d]?.sizes?.[0]?.src||s?.[0]?.sizes?.[0]?.src,p2:s?.[d+1]?.sizes?.[0]?.src||s?.[1]?.sizes?.[0]?.src||s?.[0]?.sizes?.[0]?.src,p3:s?.[d+2]?.sizes?.[0]?.src||s?.[2]?.sizes?.[0]?.src||s?.[1]?.sizes?.[0]?.src||s?.[0]?.sizes?.[0]?.src,p4:s?.[d+3]?.sizes?.[0]?.src||s?.[3]?.sizes?.[0]?.src||s?.[2]?.sizes?.[0]?.src||s?.[1]?.sizes?.[0]?.src,p5:s?.[d+4]?.sizes?.[0]?.src||s?.[4]?.sizes?.[0]?.src||s?.[3]?.sizes?.[0]?.src||s?.[2]?.sizes?.[0]?.src,p6:s?.[d+5]?.sizes?.[0]?.src||s?.[5]?.sizes?.[0]?.src||s?.[4]?.sizes?.[0]?.src||s?.[3]?.sizes?.[0]?.src,p7:s?.[d+6]?.sizes?.[0]?.src||s?.[6]?.sizes?.[0]?.src||s?.[5]?.sizes?.[0]?.src||s?.[4]?.sizes?.[0]?.src,p8:s?.[d+7]?.sizes?.[0]?.src||s?.[7]?.sizes?.[0]?.src||s?.[6]?.sizes?.[0]?.src||s?.[5]?.sizes?.[0]?.src||s?.[0]?.sizes?.[0]?.src,p9:s?.[d+8]?.sizes?.[0]?.src||s?.[8]?.sizes?.[0]?.src||s?.[7]?.sizes?.[0]?.src||s?.[6]?.sizes?.[0]?.src||s?.[1]?.sizes?.[0]?.src};if(o&&("14499"===o.toString()||"18895"===o.toString())){const t="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-A-Roll-Image-scaled.jpg",n=[{from:t,to:u.a1},{from:t,to:u.a1},{from:t,to:u.a2},{from:t,to:u.a2},{from:t,to:u.a3},{from:t,to:u.a3},{from:t,to:u.a4},{from:t,to:u.a4}];for(const t of n)e=e.replace(t.from,t.to)}if(o&&("15379"===o.toString()||"14885"===o.toString())){const t="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Portrait-Image-scaled.jpg",n=[{from:t,to:u.p1},{from:t,to:u.p1},{from:t,to:u.p2},{from:t,to:u.p2},{from:t,to:u.p3},{from:t,to:u.p3},{from:t,to:u.p4},{from:t,to:u.p4},{from:t,to:u.p5},{from:t,to:u.p5},{from:t,to:u.p6},{from:t,to:u.p6}];for(const t of n)e=e.replace(t.from,t.to)}const p="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-A-Roll-Image-scaled.jpg",g="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-A-Roll-Image-2048x1586.jpg",m="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-A-Roll-Image-1024x793.jpg",h="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Background-Image.jpg",b="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-Background-Image-1024x672.jpg",f=[{from:p,to:u.a1},{from:p,to:u.a2},{from:p,to:u.a3},{from:p,to:u.a4},{from:p,to:u.a5},{from:p,to:u.a1},{from:p,to:u.a2},{from:p,to:u.b1},{from:p,to:u.b2},{from:p,to:u.b3},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-A-Roll-Image-scaled-1.jpg",to:u.a1},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-A-Roll-Image-scaled-600x465.jpg",to:u.a2},{from:g,to:u.a3},{from:g,to:u.a4},{from:g,to:u.a5},{from:g,to:u.a1},{from:g,to:u.a2},{from:g,to:u.b1},{from:g,to:u.b2},{from:g,to:u.b3},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-A-Roll-Image-1536x1189.jpg",to:u.a3},{from:m,to:u.a1},{from:m,to:u.a2},{from:m,to:u.a3},{from:m,to:u.a4},{from:m,to:u.a5},{from:m,to:u.a3},{from:h,to:u.a5},{from:h,to:u.a5},{from:h,to:u.a5},{from:b,to:u.a4},{from:b,to:u.a4}];for(const t of f)e=e.replace(t.from,t.to);const v="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-scaled.jpg",y="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-819x1024.jpg",k="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-768x960.jpg",x="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Image-5.jpeg",w=[{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-8-819x1024.jpg",to:u.a5},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-6-819x1024.jpg",to:u.a4},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-4-819x1024.jpg",to:u.a3},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-1-819x1024.jpg",to:u.a2},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-7-819x1024.jpg",to:u.b1},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-5-819x1024.jpg",to:u.b2},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-3-819x1024.jpg",to:u.b3},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-2-819x1024.jpg",to:u.b4},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-9-819x1024.jpg",to:u.b5},{from:v,to:u.b1},{from:v,to:u.b2},{from:v,to:u.b3},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-1-scaled.jpg",to:u.b4},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-2-scaled.jpg",to:u.b5},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-3-scaled.jpg",to:u.b6},{from:y,to:u.b1},{from:y,to:u.b2},{from:y,to:u.b3},{from:y,to:u.b4},{from:y,to:u.b5},{from:y,to:u.b6},{from:y,to:u.b1},{from:y,to:u.b2},{from:y,to:u.b3},{from:y,to:u.b4},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-B-Roll-Image-819x1024-1.jpg",to:u.b5},{from:k,to:u.b1},{from:k,to:u.b2},{from:k,to:u.b3},{from:k,to:u.b4},{from:k,to:u.b5},{from:k,to:u.b6},{from:k,to:u.b1},{from:k,to:u.b2},{from:k,to:u.b3},{from:k,to:u.b4},{from:k,to:u.b5},{from:k,to:u.b6},{from:x,to:u.b1},{from:x,to:u.b2},{from:x,to:u.b3},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Image-5-1.jpeg",to:u.b4}];for(const t of w)e=e.replace(t.from,t.to);const _="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Portrait-Image-scaled.jpg",S="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Portrait-Image.jpg",j="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Portrait-Image-1024x683.jpg",C="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Portrait-Image-150x150.jpg",I="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Portrait-Image-300x200.jpg",O="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Portrait-Image-1024x683.jpg",M="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-Portrait-Image-150x150.jpg",P="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-Portrait-Image-scaled-150x150.jpg",T="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-Portrait-Image-scaled-1-150x150.jpg",E="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-Portrait-Image-300x200.jpg",A="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-Portrait-Image-scaled-300x200.jpg",N="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-Portrait-Image-scaled-1-300x200.jpg",L=[{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Portrait-Image-scaled-1-1224x683.jpg",to:u.p1},{from:_,to:u.p1},{from:_,to:u.p2},{from:_,to:u.p3},{from:S,to:u.p1},{from:S,to:u.p2},{from:S,to:u.p3},{from:S,to:u.p4},{from:S,to:u.p5},{from:j,to:u.p1},{from:j,to:u.p2},{from:j,to:u.p3},{from:j,to:u.p4},{from:j,to:u.p5},{from:j,to:u.p6},{from:j,to:u.p7},{from:j,to:u.p8},{from:j,to:u.p9},{from:C,to:u.p1},{from:C,to:u.p2},{from:C,to:u.p3},{from:C,to:u.p4},{from:I,to:u.p1},{from:I,to:u.p2},{from:I,to:u.p3},{from:I,to:u.p4},{from:O,to:u.p1},{from:O,to:u.p2},{from:O,to:u.p3},{from:O,to:u.p4},{from:M,to:u.p1},{from:M,to:u.p2},{from:M,to:u.p3},{from:M,to:u.p4},{from:P,to:u.p1},{from:P,to:u.p2},{from:P,to:u.p3},{from:P,to:u.p4},{from:T,to:u.p1},{from:T,to:u.p2},{from:T,to:u.p3},{from:T,to:u.p4},{from:E,to:u.p1},{from:E,to:u.p2},{from:E,to:u.p3},{from:E,to:u.p4},{from:E,to:u.p5},{from:E,to:u.p6},{from:A,to:u.p1},{from:A,to:u.p2},{from:A,to:u.p3},{from:A,to:u.p4},{from:A,to:u.p5},{from:A,to:u.p6},{from:N,to:u.p1},{from:N,to:u.p2},{from:N,to:u.p3},{from:N,to:u.p4},{from:N,to:u.p5},{from:N,to:u.p6}];for(const t of L)e=e.replace(t.from,t.to);return e}const fr=e=>e.toLowerCase().replace(/[^0-9a-z-]/g,"");function vr(e,t,n,o,r,a=!1){if(!e)return e;if(!t?.[o]?.content)return e;const l=n?n[0]:"",i=t?.[o]?.content,s=i.find(e=>e.id===o),c=i.find(e=>e.id===o+"-columns"),d=i.find(e=>e.id===o+"-list"),u=i.find(e=>e.id===o+"-videos"),p=i.find(e=>e.id===o+"-tabs"),g=i.find(e=>e.id===o+"-accordion");switch(l){case"columns":if(s?.heading?.short&&(e=e.replaceAll("Write a short headline",s.heading.short)),s?.heading?.medium&&(e=e.replaceAll("Compose a captivating title for this section.",s?.heading?.medium)),s?.sentence?.short&&(e=e.replaceAll("Support your idea with a clear, descriptive sentence or phrase that has a consistent writing style.",s?.sentence?.short)),c?.columns)for(let t=0;t<c?.columns.length;t++)c?.columns?.[t]?.["title-medium"]&&(e=e.replace("Add a descriptive title for the column.",c?.columns?.[t]?.["title-medium"])),c?.columns?.[t]?.["sentence-short"]&&(e=e.replace("Add context to your column. Help visitors understand the value they can get from your products and services.",c?.columns?.[t]?.["sentence-short"]));break;case"text":if(s?.heading?.short&&(e=e.replace(/Type a short headline/g,s?.heading?.short)),s?.heading?.medium&&(e=e.replace(/Briefly and concisely explain what you do for your audience./g,s?.heading?.medium)),s?.sentence?.long&&(e=e.replace(/Use this paragraph section to get your website visitors to know you. Write about you or your organization, the products or services you offer, or why you exist. Keep a consistent communication style. Consider using this if you need to provide more context on why you do what you do. Be engaging. Focus on delivering value to your visitors./g,s?.sentence?.long)),s?.sentence?.medium&&(e=e.replace(/Consider using this if you need to provide more context on why you do what you do. Be engaging. Focus on delivering value to your visitors. /g,s?.sentence?.medium)),s?.sentence?.short&&(e=(e=e.replace(/Consider using this if you need to provide more context on why you do what you do. /g,s?.sentence?.short)).replace(/Consider using this if you need to provide more context on why you do what you do. Be engaging./g,s?.sentence?.short)),s?.overline?.short&&(e=(e=(e=e.replace(/2018 - Current/g,s?.overline?.short)).replace(/Add an overline text/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),c?.columns)for(let t=0;t<c?.columns.length;t++)c?.columns?.[t]?.["title-short"]&&(e=e.replace("Add a short title",c?.columns?.[t]?.["title-short"])),c?.columns?.[t]?.["sentence-short"]&&(e=e.replace("Use this space to add a short description.",c?.columns?.[t]?.["sentence-short"])),c?.columns?.[t]?.["sentence-medium"]&&(e=e.replace("Use this space to add a medium length description. Be brief and give enough information to earn their attention.",c?.columns?.[t]?.["sentence-medium"]));break;case"hero":const n=i.find(e=>e.id===o+"-hero");if(n?.heading?.medium?e=e.replace(/Briefly and concisely explain what you do for your audience./g,n?.heading?.medium):s?.heading?.medium&&(e=e.replace(/Briefly and concisely explain what you do for your audience./g,s?.heading?.medium)),n?.heading?.short?e=e.replace(/Write a brief title/g,n?.heading?.short):s?.heading?.short&&(e=e.replace(/Write a brief title/g,s?.heading?.short)),n?.overline?.short?e=(e=(e=e.replace(/ADD AN OVERLINE TEXT/g,n?.overline?.short)).replace(/Add an overline text/g,n?.overline?.short)).replace(/Overline/g,n?.overline?.short):s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE TEXT/g,s?.overline?.short)).replace(/Add an overline text/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),n?.sentence?.short?e=e.replace(/Consider using this if you need to provide more context on why you do what you do. Be engaging. Focus on delivering value to your visitors./g,n?.sentence?.short):s?.sentence?.short&&(e=e.replace(/Consider using this if you need to provide more context on why you do what you do. Be engaging. Focus on delivering value to your visitors./g,s?.sentence?.short)),n?.button?.short?e=(e=e.replace(/Call To Action/g,n?.button?.short)).replace(/Call to Action/g,n?.button?.short):s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),n?.["secondary-button"]?.short?e=e.replace(/Secondary Button/g,n?.["secondary-button"]?.short):s?.["secondary-button"]?.short&&(e=e.replace(/Secondary Button/g,s?.["secondary-button"]?.short)),n?.cards)for(let t=0;t<n?.cards.length;t++)n?.cards?.[t]?.["title-short"]&&(e=e.replace("Add a Title",n?.cards?.[t]?.["title-short"])),n?.cards?.[t]?.["sentence-short"]&&(e=e.replace("Use this space to add a short description.",n?.cards?.[t]?.["sentence-short"])),n?.cards?.[t]?.["sentence-medium"]&&(e=e.replace("Use this space to add a medium length description. Be brief and give enough information to earn a click.",n?.cards?.[t]?.["sentence-medium"])),n?.cards?.[t]?.["button-short"]&&(e=e.replace("CTA",n?.cards?.[t]?.["button-short"]));break;case"image":s?.heading?.medium&&(e=e.replace(/Add a short, consistent heading for your image./g,s?.heading?.medium)),s?.heading?.short&&(e=e.replace(/Add a short headline/g,s?.heading?.short)),s?.sentence?.short&&(e=e.replace(/Use this paragraph to add supporting context. Consider your audience and what matters to them, and provide insights that support your topic./g,s?.sentence?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short));break;case"title-or-header":const r=i.find(e=>e.id===o+"-hero");r?.heading?.medium?e=(e=e.replace(/Craft a captivating title for this section to attract your audience./g,r?.heading?.medium)).replace(/Craft a captivating title for the upcoming section to attract your audience./g,r?.heading?.medium):s?.heading?.medium&&(e=(e=e.replace(/Craft a captivating title for this section to attract your audience./g,s?.heading?.medium)).replace(/Craft a captivating title for the upcoming section to attract your audience./g,s?.heading?.medium)),r?.heading?.short?e=(e=e.replace(/Add a short & sweet headline/g,r?.heading?.short)).replace(/Add a short & sweet headline/g,r?.heading?.short):s?.heading?.short&&(e=(e=e.replace(/Add a short & sweet headline/g,s?.heading?.short)).replace(/Add a short & sweet headline/g,s?.heading?.short)),r?.overline?.short?e=(e=(e=e.replace(/ADD AN OVERLINE TEXT/g,r?.overline?.short)).replace(/Add an overline text/g,r?.overline?.short)).replace(/Overline/g,r?.overline?.short):s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE TEXT/g,s?.overline?.short)).replace(/Add an overline text/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),r?.button?.short?e=(e=e.replace(/Call To Action/g,r?.button?.short)).replace(/Call to Action/g,r?.button?.short):s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short));break;case"media-text":if(s?.heading?.short&&(e=e.replace(/Write a short headline/g,s?.heading?.short)),s?.heading?.medium&&(e=e.replace(/Add a compelling title for your section to engage your audience./g,s?.heading?.medium)),s?.sentence?.short&&(e=e.replace(/Use this paragraph section to get your website visitors to know you. Consider writing about you or your organization, the products or services you offer, or why you exist. Keep a consistent communication style./g,s?.sentence?.short)),s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE/g,s?.overline?.short)).replace(/Add an overline/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),s?.["secondary-button"]?.short&&(e=e.replace(/Secondary Button/g,s?.["secondary-button"]?.short)),d?.list){for(let t=0;t<d?.list.length;t++)d?.list?.[t]?.["list-item-short"]&&(a||(e=e.replace('"text":"Add a list item"',`"text":"${d?.list?.[t]?.["list-item-short"]}"`)),e=e.replace("Add a list item",d?.list?.[t]?.["list-item-short"]));for(let t=0;t<d?.list.length;t++)d?.list?.[t]?.["list-item-short"]&&(a||(e=e.replace('"text":"Add a list item"',`"text":"${d?.list?.[t]?.["list-item-short"]}"`)),e=e.replace("Add a list item",d?.list?.[t]?.["list-item-short"]))}if(c?.columns)for(let t=0;t<c?.columns.length;t++)c?.columns?.[t]?.["title-medium"]&&(e=e.replace("Add a descriptive title for the column.",c?.columns?.[t]?.["title-medium"])),c?.columns?.[t]?.["sentence-medium"]&&(e=e.replace("Use this space to add a medium length description. Be brief and give enough information to earn their attention.",c?.columns?.[t]?.["sentence-medium"]));break;case"accordion":if(g?.heading?.short?e=e.replace(/Add a short headline/g,g?.heading?.short):s?.heading?.short&&(e=e.replace(/Add a short headline/g,s?.heading?.short)),g?.heading?.medium?e=e.replace(/A brief headline here will add context for the section/g,g?.heading?.medium):s?.heading?.medium&&(e=e.replace(/A brief headline here will add context for the section/g,s?.heading?.medium)),g?.sentence?.medium?e=e.replace(/Use this space to provide your website visitors with a brief description on what to expect before clicking on a section title./g,g?.sentence?.medium):s?.sentence?.medium&&(e=e.replace(/Use this space to provide your website visitors with a brief description on what to expect before clicking on a section title./g,s?.sentence?.medium)),g?.accordion){for(let t=0;t<g?.accordion.length;t++)g?.accordion?.[t]?.["title-medium"]&&(a||(e=e.replace('"text":"Add a section title that is relevant for your readers."',`"text":"${g?.accordion?.[t]?.["title-medium"]}"`)));for(let t=0;t<g?.accordion.length;t++)g?.accordion?.[t]?.["title-medium"]&&(e=(e=(e=e.replace("Add a section title that is relevant for your readers.",g?.accordion?.[t]?.["title-medium"])).replace("tab-addasectiontitlethatisrelevantforyourreaders",`tab-${fr(g?.accordion?.[t]?.["title-medium"].toString())}`)).replace("tab-addasectiontitlethatisrelevantforyourreaders",`tab-${fr(g?.accordion?.[t]?.["title-medium"].toString())}`)),g?.accordion?.[t]?.["paragraph-medium"]&&(e=e.replace("By default, this panel is concealed and appears when the user clicks on the section title. Input relevant information about its title using paragraphs or bullet points. Accordions can enhance the user experience when utilized effectively. They allow users to choose what they want to read and disregard the rest. Accordions are often utilized for frequently asked questions (FAQs).",g?.accordion?.[t]?.["paragraph-medium"]))}break;case"tabs":if(s?.heading?.short&&(e=e.replace(/Add a short headline/g,s?.heading?.short)),s?.sentence?.medium&&(e=e.replace(/Tabs are a helpful way that allow users to view a group of related data one at a time. Add a brief description of what your tabbed section is about./g,s?.sentence?.medium)),s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE TEXT/g,s?.overline?.short)).replace(/Add an overline text/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),p?.tabs){for(let t=0;t<p?.tabs.length;t++)p?.tabs?.[t]?.["title-short"]&&(a||(e=e.replace('"text":"Tab name"',`"text":"${p?.tabs?.[t]?.["title-short"]}"`))),p?.tabs?.[t]?.["title-medium"]&&(a||(e=e.replace('"text":"Give this tab a concise name"',`"text":"${p?.tabs?.[t]?.["title-medium"]}"`)));for(let t=0;t<p?.tabs.length;t++)p?.tabs?.[t]?.["title-short"]&&(e=(e=(e=(e=(e=e.replace("Tab name",p?.tabs?.[t]?.["title-short"])).replace("tab-tabname",`tab-${fr(p?.tabs?.[t]?.["title-short"].toString())}`)).replace("tab-tabname",`tab-${fr(p?.tabs?.[t]?.["title-short"].toString())}`)).replace("Add a brief title",p?.tabs?.[t]?.["title-short"])).replace("Short title",p?.tabs?.[t]?.["title-short"])),p?.tabs?.[t]?.["title-medium"]&&(e=(e=(e=(e=e.replace("Scribe a concise title",p?.tabs?.[t]?.["title-medium"])).replace("Give this tab a concise name",p?.tabs?.[t]?.["title-medium"])).replace("tab-givethistabaconcisename",`tab-${fr(p?.tabs?.[t]?.["title-medium"].toString())}`)).replace("tab-givethistabaconcisename",`tab-${fr(p?.tabs?.[t]?.["title-medium"].toString())}`)),p?.tabs?.[t]?.["title-long"]&&(e=e.replace("Type a brief and clear title for this panel.",p?.tabs?.[t]?.["title-long"])),p?.tabs?.[t]?.["overline-short"]&&(e=e.replace("Overline",p?.tabs?.[t]?.["overline-short"])),p?.tabs?.[t]?.["button-short"]&&(e=e.replace("Call To Action",p?.tabs?.[t]?.["button-short"])),p?.tabs?.[t]?.["list-title"]&&(e=e.replace("Featured subhead",p?.tabs?.[t]?.["list-title"])),p?.tabs?.[t]?.["list-item-1"]&&(a||(e=e.replace('"text":"Add a single and succinct list item"',`"text":"${p?.tabs?.[t]?.["list-item-1"]}"`)),e=(e=e.replace("Add a single and succinct list item",p?.tabs?.[t]?.["list-item-1"])).replace("Add a descriptive title for the column.",p?.tabs?.[t]?.["list-item-1"])),p?.tabs?.[t]?.["list-item-2"]&&(a||(e=e.replace('"text":"Add a single and succinct list item"',`"text":"${p?.tabs?.[t]?.["list-item-2"]}"`)),e=(e=e.replace("Add a single and succinct list item",p?.tabs?.[t]?.["list-item-2"])).replace("Add a descriptive title for the column.",p?.tabs?.[t]?.["list-item-2"])),p?.tabs?.[t]?.["list-item-3"]&&(a||(e=e.replace('"text":"Add a single and succinct list item"',`"text":"${p?.tabs?.[t]?.["list-item-3"]}"`)),e=(e=e.replace("Add a single and succinct list item",p?.tabs?.[t]?.["list-item-3"])).replace("Add a descriptive title for the column.",p?.tabs?.[t]?.["list-item-3"])),p?.tabs?.[t]?.["description-1"]&&(e=(e=(e=e.replace("Add context to your column. Help visitors understand the value they can get from your products and services.",p?.tabs?.[t]?.["description-1"])).replace("Write a short descriptive paragraph about your tab that will help users find what they are looking for and get access to content without further exploration.",p?.tabs?.[t]?.["description-1"])).replace("Write a short text about your tab that will help users find what they are looking for and get access to content without further exploration.",p?.tabs?.[t]?.["description-1"])),p?.tabs?.[t]?.["description-2"]&&(e=(e=e.replace("Add context to your column. Help visitors understand the value they can get from your products and services.",p?.tabs?.[t]?.["description-2"])).replace("This panel is hidden by default and revealed when a user clicks on the tab title. Fill it in with relevant information about its title. You can use paragraphs or bullet points to add your content here.",p?.tabs?.[t]?.["description-2"])),p?.tabs?.[t]?.["description-3"]&&(e=(e=e.replace("Add context to your column. Help visitors understand the value they can get from your products and services.",p?.tabs?.[t]?.["description-3"])).replace("Tabs help users navigate through grouped content giving them control over what to read. Use them to connect related information and as a tool to save space.",p?.tabs?.[t]?.["description-3"]))}break;case"video":if(s?.heading?.medium&&(e=e.replace(/Add a brief headline for impact and \/ or context here/g,s?.heading?.medium)),s?.heading?.short&&(e=e.replace(/Write a succinct headline here/g,s?.heading?.short)),s?.heading?.long&&(e=e.replace(/Write a compelling and inviting headline to re-hook your visitors through your content./g,s?.heading?.long)),s?.sentence?.medium&&(e=e.replace(/Use this paragraph to provide more insights writing with clear and concise language that is easy to understand. Edit and proofread your content./g,s?.sentence?.medium)),s?.sentence?.short&&(e=e.replace(/Support your idea with a clear, descriptive sentence or phrase that has a consistent writing style./g,s?.sentence?.short)),s?.overline?.short&&(e=(e=e.replace(/Add an overline text/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),u?.videos)for(let t=0;t<u?.videos.length;t++)u?.videos?.[t]?.["title-short"]&&(e=e.replace("Short title",u?.videos?.[t]?.["title-short"]));if(d?.list){for(let t=0;t<d?.list.length;t++)d?.list?.[t]?.["list-item-short"]&&(a||(e=e.replace('"text":"Add a list item"',`"text":"${d?.list?.[t]?.["list-item-short"]}"`)),e=e.replace("Add a list item",d?.list?.[t]?.["list-item-short"]));for(let t=0;t<d?.list.length;t++)d?.list?.[t]?.["list-item-short"]&&(a||(e=e.replace('"text":"Add a list item"',`"text":"${d?.list?.[t]?.["list-item-short"]}"`)),e=e.replace("Add a list item",d?.list?.[t]?.["list-item-short"]))}break;case"cards":if(s?.heading?.medium&&(e=(e=e.replace(/Craft a captivating title for this section to attract your audience./g,s?.heading?.medium)).replace(/A short and sweet title for this section./g,s?.heading?.medium)),s?.sentence?.medium&&(e=e.replace(/Use a clear and attention-grabbing short paragraph to engage your audience and draw them into reading the rest of your content./g,s?.sentence?.medium)),s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE/g,s?.overline?.short)).replace(/Add an overline/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),s?.["secondary-button"]?.short&&(e=e.replace(/Secondary Button/g,s?.["secondary-button"]?.short)),c?.columns)for(let t=0;t<c?.columns.length;t++)c?.columns?.[t]?.["title-short"]&&(e=e.replace("Add a Title",c?.columns?.[t]?.["title-short"])),c?.columns?.[t]?.["title-medium"]&&(e=e.replace("Add a Short Title Here",c?.columns?.[t]?.["title-medium"])),c?.columns?.[t]?.["sentence-short"]&&(e=(e=e.replace("Use this space to add a short description. It gives enough info to earn a click.",c?.columns?.[t]?.["sentence-short"])).replace("Add a brief description to your card.",c?.columns?.[t]?.["sentence-short"])),c?.columns?.[t]?.["sentence-medium"]&&(e=e.replace("Use this space to add a medium length description. Be brief and give enough information to earn a click.",c?.columns?.[t]?.["sentence-medium"])),c?.columns?.[t]?.["overline-short"]&&(e=e.replace("Overline",c?.columns?.[t]?.["overline-short"])),c?.columns?.[t]?.["button-short"]&&(e=(e=e.replace("Call To Action",c?.columns?.[t]?.["button-short"])).replace("Call to Action",c?.columns?.[t]?.["button-short"]));break;case"testimonials":const l=i.find(e=>e.id===o+"-testimonials");if(l?.heading?.medium?e=e.replace(/Add a compelling title for your section to engage your audience./g,l?.heading?.medium):s?.heading?.medium&&(e=e.replace(/Add a compelling title for your section to engage your audience./g,s?.heading?.medium)),l?.sentence?.long?e=e.replace(/Use this paragraph section to get your website visitors to know you. Consider writing about you or your organization, the products or services you offer, or why you exist. Keep a consistent communication style./g,l?.sentence?.long):s?.sentence?.long&&(e=e.replace(/Use this paragraph section to get your website visitors to know you. Consider writing about you or your organization, the products or services you offer, or why you exist. Keep a consistent communication style./g,s?.sentence?.long)),l?.testimonials)for(let t=0;t<l?.testimonials.length;t++)l?.testimonials?.[t]?.customer&&(e=e.replace("Customer Name",l?.testimonials?.[t]?.customer)),l?.testimonials?.[t]?.testimonial&&(e=(e=e.replace("Testimonials are a social proof, a powerful way to inspire trust.",l?.testimonials?.[t]?.testimonial)).replace("Testimonials, as authentic endorsements from satisfied customers, serve as potent social proof, significantly inspiring trust in potential consumers.",l?.testimonials?.[t]?.testimonial));break;case"pricing-table":const m=i.find(e=>e.id==="pricing-"+o);if(m?.heading?.short&&(e=e.replace(/Write a short headline/g,m?.heading?.short)),m?.heading?.short&&(e=e.replace(/Add a compelling title for your section to engage your audience./g,m?.heading?.short)),m?.sentence?.short&&(e=e.replace(/Add a gripping description for this featured plan/g,m?.sentence?.short)),m?.sentence?.medium&&(e=e.replace(/A pricing table assists users in selecting a suitable plan by simply and clearly differentiating product\/service features and prices. Use this as supporting text for your plans./g,m?.sentence?.medium)),m?.sentence?.long&&(e=e.replace(/A pricing table assists users in selecting a suitable plan by simply and clearly differentiating product\/service features and prices. Use this as supporting text for your plans./g,m?.sentence?.long)),m?.overline?.short&&(e=(e=e.replace(/add an overline text/g,m?.overline?.short)).replace(/Add an overline text/g,m?.overline?.short)),m?.plans)for(let t=0;t<m?.plans.length;t++){if(m?.plans?.[t]?.["title-short"]&&(e=e.replace("Tab Title",m?.plans?.[t]?.["title-short"])),m?.plans?.[t]?.["title-medium"]&&(e=e.replace("Name your plan",m?.plans?.[t]?.["title-medium"])),m?.plans?.[t]?.["title-medium"]&&(e=e.replace("Add a descriptive title for your plan.",m?.plans?.[t]?.["title-medium"])),m?.plans?.[t]?.price){let n=m?.plans?.[t]?.price.replace("/month","");n=n.replace("/year",""),0===t?e=e.replace("$60",n):1===t?e=e.replace("$80",n):2===t?e=e.replace("$120",n):3===t&&(e=e.replace("$200",n))}m?.plans?.[t]?.["sentence-short"]&&(e=e.replace("Let your user know what to expect when choosing this plan. Inform users of plan benefits, not features.",m?.plans?.[t]?.["sentence-short"])),m?.plans?.[t]?.["button-short"]&&(e=e.replace("Call To Action",m?.plans?.[t]?.["button-short"])),m?.plans?.[t]?.["feature-1"]&&(e=e.replace("Focus on the differences",m?.plans?.[t]?.["feature-1"]),a||(e=e.replace("Focus on the differences",m?.plans?.[t]?.["feature-1"]))),m?.plans?.[t]?.["feature-2"]&&(e=e.replace("Use a consistent language",m?.plans?.[t]?.["feature-2"]),a||(e=e.replace("Use a consistent language",m?.plans?.[t]?.["feature-2"]))),m?.plans?.[t]?.["feature-3"]&&(e=e.replace("Transmit benefits clearly",m?.plans?.[t]?.["feature-3"]),a||(e=e.replace("Transmit benefits clearly",m?.plans?.[t]?.["feature-3"])))}break;case"counter-or-stats":const h=i.find(e=>e.id===o+"-counter-stats");if(h?.heading?.medium?e=e.replace(/Tell your story in numbers, and give your visitors useful insights./g,h?.heading?.medium):s?.heading?.medium&&(e=e.replace(/Tell your story in numbers, and give your visitors useful insights./g,s?.heading?.medium)),h?.sentence?.medium?e=e.replace(/Make an impact, and share your organization's stats or achievements to interest your website visitors into learning more about you./g,h?.sentence?.medium):s?.sentence?.medium&&(e=e.replace(/Make an impact, and share your organization's stats or achievements to interest your website visitors into learning more about you./g,s?.sentence?.medium)),h?.overline?.short?e=(e=(e=e.replace(/ADD AN OVERLINE TEXT/g,h?.overline?.short)).replace(/Add an overline text/g,h?.overline?.short)).replace(/Overline/g,h?.overline?.short):s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE TEXT/g,s?.overline?.short)).replace(/Add an overline text/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),h?.button?.short?e=(e=e.replace(/Call To Action/g,h?.button?.short)).replace(/Call to Action/g,h?.button?.short):s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),h?.metrics)for(let t=0;t<h?.metrics.length;t++)h?.metrics?.[t]?.["title-short"]&&(a||(e=e.replace('"title":"Stat title"',`"title":"${d?.list?.[t]?.["list-item-short"]}"`)),e=e.replace("Stat title",h?.metrics?.[t]?.["title-short"])),h?.metrics?.[t]?.["value-short"]&&(0===t?e=e.replace("50%",h?.metrics?.[t]?.["value-short"]):1===t?e=e.replace("98%",h?.metrics?.[t]?.["value-short"]):2===t?e=e.replace("100,110",h?.metrics?.[t]?.["value-short"]):3===t?e=e.replace("8/mo",h?.metrics?.[t]?.["value-short"]):4===t&&(e=e.replace("20yr",h?.metrics?.[t]?.["value-short"])));if(d?.list)for(let t=0;t<d?.list.length;t++)d?.list?.[t]?.["list-item-short"]&&(e=e.replace("Add a single and succinct list item",d?.list?.[t]?.["list-item-short"]),a||(e=e.replace("Add a single and succinct list item",d?.list?.[t]?.["list-item-short"]))),d?.list?.[t]?.["list-item-long"]&&(e=e.replace("Add unique list items while keeping a consistent phrasing style and similar line lengths",d?.list?.[t]?.["list-item-long"]),a||(e=e.replace("Add unique list items while keeping a consistent phrasing style and similar line lengths",d?.list?.[t]?.["list-item-long"])));break;case"list":if(s?.heading?.short&&(e=e.replace(/Write a short and relevant headline/g,s?.heading?.short)),s?.heading?.medium&&(e=e.replace(/Write a clear and relevant header to keep your visitors engaged/g,s?.heading?.medium)),s?.sentence?.medium&&(e=e.replace(/Use this paragraph section to get your website visitors to know you. Consider writing about you or your organization, the products or services you offer, or why you exist. Keep a consistent communication style./g,s?.sentence?.medium)),s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE TEXT/g,s?.overline?.short)).replace(/Add an overline text/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),c?.columns)for(let t=0;t<c?.columns.length;t++)c?.columns?.[t]?.["title-medium"]&&(e=e.replace("Give your list item a title",c?.columns?.[t]?.["title-medium"])),c?.columns?.[t]?.["sentence-short"]&&(e=e.replace("Use this short paragraph to write a supporting description of your list item. Remember to let your readers know why this list item is essential.",c?.columns?.[t]?.["sentence-short"]));if(d?.list)for(let t=0;t<d?.list.length;t++)d?.list?.[t]?.["list-item-short"]&&(e=e.replace("Add a single and succinct list item",d?.list?.[t]?.["list-item-short"]),a||(e=e.replace("Add a single and succinct list item",d?.list?.[t]?.["list-item-short"]))),d?.list?.[t]?.["list-item-long"]&&(e=e.replace("Add unique list items while keeping a consistent phrasing style and similar line lengths",d?.list?.[t]?.["list-item-long"]),a||(e=e.replace("Add unique list items while keeping a consistent phrasing style and similar line lengths",d?.list?.[t]?.["list-item-long"])));break;case"slider":s?.heading?.short&&(e=e.replace(/Short Headline/g,s?.heading?.short)),s?.heading?.medium&&(e=e.replace(/Craft a captivating title to attract your audience./g,s?.heading?.medium)),s?.sentence?.short&&(e=e.replace(/Use a clear and attention-grabbing short paragraph to engage your audience and draw them into reading the rest of your content./g,s?.sentence?.short)),s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE/g,s?.overline?.short)).replace(/Add an overline/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short));break;case"post-loop":const b=i.find(e=>e.id===o+"-post-loop");b?.heading?.short?e=e.replace(/Selected posts title/g,b?.heading?.short):s?.heading?.short&&(e=e.replace(/Selected posts title/g,s?.heading?.short)),b?.heading?.medium?e=e.replace(/Craft a captivating title for this section to attract your audience./g,b?.heading?.medium):s?.heading?.medium&&(e=e.replace(/Craft a captivating title for this section to attract your audience./g,s?.heading?.medium)),b?.sentence?.short?e=e.replace(/Use a clear and attention-grabbing short paragraph to engage your audience and draw them into reading the rest of your content./g,b?.sentence?.short):s?.sentence?.short&&(e=e.replace(/Use a clear and attention-grabbing short paragraph to engage your audience and draw them into reading the rest of your content./g,s?.sentence?.short)),b?.overline?.short?e=(e=(e=e.replace(/ADD AN OVERLINE/g,b?.overline?.short)).replace(/Add an overline/g,b?.overline?.short)).replace(/Overline/g,b?.overline?.short):s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE/g,s?.overline?.short)).replace(/Add an overline/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),b?.button?.short?e=(e=e.replace(/Call To Action/g,b?.button?.short)).replace(/Call to Action/g,b?.button?.short):s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short));break;case"team":const f=i.find(e=>e.id===o+"-people");if(f?.heading?.medium?e=(e=e.replace(/A short and sweet title for this section./g,f?.heading?.medium)).replace(/Craft a captivating title for this section to attract your audience./g,f?.heading?.medium):s?.heading?.medium&&(e=(e=e.replace(/A short and sweet title for this section./g,s?.heading?.medium)).replace(/Craft a captivating title for this section to attract your audience./g,s?.heading?.medium)),f?.sentence?.short?e=e.replace(/Use this space to write about your company, employee profiles and organizational culture; share your story and connect with customers./g,f?.sentence?.short):s?.sentence?.short&&(e=e.replace(/Use this space to write about your company, employee profiles and organizational culture; share your story and connect with customers./g,s?.sentence?.short)),f?.overline?.short?e=(e=(e=e.replace(/ADD AN OVERLINE/g,f?.overline?.short)).replace(/Add an overline/g,f?.overline?.short)).replace(/Overline/g,f?.overline?.short):s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE/g,s?.overline?.short)).replace(/Add an overline/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),f?.button?.short?e=(e=e.replace(/Call To Action/g,f?.button?.short)).replace(/Call to Action/g,f?.button?.short):s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),f?.people)for(let t=0;t<f?.people.length;t++)f?.people?.[t]?.name&&(e=e.replace("Name Lastname",f?.people?.[t]?.name)),f?.people?.[t]?.position&&(e=e.replace("Position or title",f?.people?.[t]?.position)),f?.people?.[t]?.["sentence-short"]&&(e=(e=e.replace("Brief profile bio for this person will live here. Add an overview of this person's role or any key information.",f?.people?.[t]?.["sentence-short"])).replace("Brief profile bio for this person will live here. Add an overview of this person’s role or any key information.",f?.people?.[t]?.["sentence-short"]));break;case"logo-farm":s?.heading?.medium&&(e=e.replace(/Tell your audience about your achievements, partners or customers./g,s?.heading?.medium)),s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE/g,s?.overline?.short)).replace(/Add an overline/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short));break;case"location":if(s?.heading?.short&&(e=e.replace(/Find us/g,s?.heading?.short)),s?.sentence?.short&&(e=e.replace(/Use a brief and inviting sentence to encourage visitors to get in touch./g,s?.sentence?.short)),s?.heading?.short&&(e=e.replace(/Write a short headline/g,s?.heading?.short)),s?.heading?.medium&&(e=e.replace(/Compose a captivating title for this section./g,s?.heading?.medium)),s?.sentence?.short&&(e=e.replace(/Support your idea with a clear, descriptive sentence or phrase that has a consistent writing style./g,s?.sentence?.short)),c?.columns)for(let t=0;t<c?.columns.length;t++)c?.columns?.[t]?.["title-medium"]&&(e=e.replace("Add a descriptive title for the column.",c?.columns?.[t]?.["title-medium"])),c?.columns?.[t]?.["sentence-short"]&&(e=e.replace("Add context to your column. Help visitors understand the value they can get from your products and services.",c?.columns?.[t]?.["sentence-short"]));break;case"gallery":s?.heading?.short&&(e=e.replace(/Add a succinct headline/g,s?.heading?.short)),s?.sentence?.short&&(e=e.replace(/Write with clear, concise language to inform and engage your audience. Consider what matters to them and provide valuable insights./g,s?.sentence?.short));break;case"featured-products":case"featured-product":const v=i.find(e=>e.id===o+"-single");if(v?.heading?.medium?e=e.replace(/An engaging product or feature headline here/g,v?.heading?.medium):s?.heading?.medium&&(e=e.replace(/An engaging product or feature headline here/g,s?.heading?.medium)),v?.sentence?.medium?e=e.replace(/Write a short descriptive paragraph about your product. Focus on your ideal buyer. Entice with benefits of using your product./g,v?.sentence?.medium):s?.sentence?.medium&&(e=e.replace(/Write a short descriptive paragraph about your product. Focus on your ideal buyer. Entice with benefits of using your product./g,s?.sentence?.medium)),v?.price&&(e=e.replace(/$19.99/g,v?.price)),v?.button?.short?e=(e=e.replace(/Call To Action/g,v?.button?.short)).replace(/Call to Action/g,v?.button?.short):s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),v?.["product-features-and-benefits"])for(let t=0;t<v?.["product-features-and-benefits"].length;t++)t%2!=0?v?.["product-features-and-benefits"]?.[t]?.["list-item-short"]&&(e=e.replace("Another short feature description",v?.["product-features-and-benefits"]?.[t]?.["list-item-short"])):v?.["product-features-and-benefits"]?.[t]?.["list-item-short"]&&(e=e.replace("Short feature description",v?.["product-features-and-benefits"]?.[t]?.["list-item-short"]));break;case"product-loop":if(s?.heading?.short&&(e=e.replace(/Type a short headline/g,s?.heading?.short)),s?.heading?.medium&&(e=e.replace(/Briefly and concisely explain what you do for your audience./g,s?.heading?.medium)),s?.sentence?.long&&(e=e.replace(/Use this paragraph section to get your website visitors to know you. Write about you or your organization, the products or services you offer, or why you exist. Keep a consistent communication style. Consider using this if you need to provide more context on why you do what you do. Be engaging. Focus on delivering value to your visitors./g,s?.sentence?.long)),s?.sentence?.medium&&(e=e.replace(/Consider using this if you need to provide more context on why you do what you do. Be engaging. Focus on delivering value to your visitors./g,s?.sentence?.medium)),s?.sentence?.short&&(e=(e=e.replace(/Consider using this if you need to provide more context on why you do what you do./g,s?.sentence?.short)).replace(/Consider using this if you need to provide more context on why you do what you do. Be engaging./g,s?.sentence?.short)),s?.overline?.short&&(e=(e=(e=e.replace(/2018 - Current/g,s?.overline?.short)).replace(/Add an overline text/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),c?.columns)for(let t=0;t<c?.columns.length;t++)c?.columns?.[t]?.["title-short"]&&(e=e.replace("Add a short title",c?.columns?.[t]?.["title-short"])),c?.columns?.[t]?.["sentence-short"]&&(e=e.replace("Use this space to add a short description.",c?.columns?.[t]?.["sentence-short"])),c?.columns?.[t]?.["sentence-medium"]&&(e=e.replace("Use this space to add a medium length description. Be brief and give enough information to earn their attention.",c?.columns?.[t]?.["sentence-medium"]));break;case"form":let y="";const k=t?.about?.content;k&&(y=k.find(e=>"about"===e.id)),s?.heading?.short&&(e=(e=e.replace(/Add A Title For Your Form/g,s?.heading?.short)).replace(/Contact Us/g,s?.heading?.short)),s?.sentence?.short&&(e=e.replace(/Briefly describe what the form is for or provide additional context if required. Use inviting language./g,s?.sentence?.short)),y?.sentence?.long&&(e=e.replace(/Use this paragraph section to get your website visitors to know you. Write about you or your organization, the products or services you offer, or why you exist. Keep a consistent communication style. Consider using this if you need to provide more context on why you do what you do. Be engaging. Focus on delivering value to your visitors./g,y?.sentence?.long));break;case"table-of-contents":const x=i.find(e=>e.id===o+"-table-contents");if(x?.heading?.medium?e=e.replace(/Craft a captivating title for this section to attract your audience./g,x?.heading?.medium):s?.heading?.medium&&(e=e.replace(/Craft a captivating title for this section to attract your audience./g,s?.heading?.medium)),x?.overline?.short?e=(e=(e=e.replace(/ADD AN OVERLINE/g,x?.overline?.short)).replace(/Add an overline/g,x?.overline?.short)).replace(/Overline/g,x?.overline?.short):s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE/g,s?.overline?.short)).replace(/Add an overline/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),x?.button?.short?e=(e=e.replace(/Call To Action/g,x?.button?.short)).replace(/Call to Action/g,x?.button?.short):s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),x?.subtitles)for(let t=0;t<x?.subtitles.length;t++)x?.subtitles?.[t]?.["title-short"]&&(e=e.replace("Write a title for your section or related content here",x?.subtitles?.[t]?.["title-short"]))}return e}const yr=(e,t,n,o)=>{if(!e.includes("kb-pattern-delete-block"))return"";const r=e.indexOf(t,o);if(-1===r)return"";const a=r+t.length,l=e.indexOf(n,a),i=e.substring(a,l);return i?i.includes("kb-pattern-delete-block")?i:yr(e,t,n,l+n.length):""};function kr(e){if(!e)return e;const t=yr(e,"\x3c!-- wp:kadence/column","\x3c!-- /wp:kadence/column --\x3e",0);return t&&(e=e.replace("\x3c!-- wp:kadence/column"+t+"\x3c!-- /wp:kadence/column --\x3e","")),e}function xr(e,t){return e&&t?e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace("1234 N Street \n\tCity, State, Country",t)).replace("1234 N Street \n\tCity, State\n\tCountry",t)).replaceAll("1234 N Street<br>City, State, Country",t)).replaceAll("1234 N Street <br>City, State, Country",t)).replaceAll("1234 N Street <br>City, State<br>Country",t)).replaceAll("1234 N Street <br>City, State <br>Country",t)).replaceAll("1234 N Street City, State, Country",t)).replace("1234 N Street <br/>City, State, Country",t)).replaceAll("Los angeles",t)).replaceAll("Las angeles",t)).replaceAll("Los Angeles",t)).replaceAll("Las Angeles",t):e}const wr=(e,t,n,o)=>{if(!e.includes(t))return"";const r=e.indexOf(t,o);if(-1===r)return"";const a=r+t.length,l=e.indexOf(n,a);return e.substring(a,l)||""};function _r(e){if(!e)return e;const t=new RegExp("https://patterns\\.startertemplatecloud\\.com/wp-content/plugins/kadence-blocks/includes/assets/images/masks/","g");return e.replace(t,kadence_blocks_params.svgMaskPath)}function Sr(){return Sr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Sr.apply(this,arguments)}function jr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jr(Object(n),!0).forEach(function(t){Ir(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Or extends b().Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame(()=>{this.reCalculateColumnCount()})):this.reCalculateColumnCount()}reCalculateColumnCount(){const e=window&&window.innerWidth||1/0;let t=this.props.breakpointCols;"object"!=typeof t&&(t={default:parseInt(t)||2});let n=1/0,o=t.default||2;for(let r in t){const a=parseInt(r);a>0&&e<=a&&a<n&&(n=a,o=t[r])}o=Math.max(1,parseInt(o)||1),this.state.columnCount!==o&&this.setState({columnCount:o})}itemsInColumns(){const e=this.state.columnCount,t=new Array(e),n=b().Children.toArray(this.props.children);for(let o=0;o<n.length;o++){const r=o%e;t[r]||(t[r]=[]),t[r].push(n[o])}return t}renderColumns(){const{column:e,columnAttrs:t={},columnClassName:n}=this.props,o=this.itemsInColumns(),r=100/o.length+"%";let a=n;a&&"string"!=typeof a&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===a&&(a="my-masonry-grid_column"));const l=Cr(Cr(Cr({},e),t),{},{style:Cr(Cr({},t.style),{},{width:r}),className:a});return o.map((e,t)=>b().createElement("div",Sr({},l,{key:t}),e))}logDeprecated(e){console.error("[Masonry]",e)}render(){const e=this.props,{children:t,breakpointCols:n,columnClassName:o,columnAttrs:r,column:a,className:l}=e,i=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let s=l;return"string"!=typeof l&&(this.logDeprecated('The property "className" requires a string'),void 0===l&&(s="my-masonry-grid")),b().createElement("div",Sr({},i,{className:s}),this.renderColumns())}}Or.defaultProps={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};const Mr=Or;n(9039);const Pr=window.wp.blockEditor;function Tr(){return(0,Ao.useMemo)(()=>Array.from(document.styleSheets).reduce((e,t)=>{try{t.cssRules}catch(t){return e}const{ownerNode:n,cssRules:o}=t;if(null===n)return e;if(!o)return e;if("LINK"!==n.tagName)return e;if("wp-reset-editor-styles-css"===n.id)return e;if(function e(t){return Array.from(t).find(({selectorText:t,conditionText:n,cssRules:o})=>n?e(o):t&&(t.includes(".editor-styles-wrapper")||t.includes(".wp-block")))}(o)){e.push(n.cloneNode(!0));const t=n.id.replace("-css","-inline-css"),o=document.getElementById(t);o&&e.push(o.cloneNode(!0))}return e},[]),[])}function Er(e){return(0,Ao.useMemo)(()=>{const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,Array.from(t.body.children)},[e])}function Ar({contentRef:e,children:t,head:n,tabIndex:r=0,scale:a=1,frameSize:l=0,expand:i=!1,readonly:s,forwardedRef:c,...d}){const u=(0,Eo.useSelect)(e=>e(Pr.store).getSettings().__unstableResolvedAssets,[]),[,p]=(0,Ao.useReducer)(()=>({})),[g,m]=(0,Ao.useState)(),[b,f]=(0,Ao.useState)([]),v=Er(u?.styles),y=v.map(e=>e.id),k=Tr().filter(e=>!y.includes(e.id)),x=Er(u?.scripts),w=function(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=(0,Eo.useSelect)(Pr.store),{clearSelectedBlock:o}=(0,Eo.useDispatch)(Pr.store),{clearBlockSelection:r}=e();return(0,Ho.useRefEffect)(e=>{if(r)return e.addEventListener("mousedown",a),()=>{e.removeEventListener("mousedown",a)};function a(r){(t()||n())&&r.target===e&&o()}},[t,n,o,r])}(),[_,{height:S}]=(0,Ho.useResizeObserver)(),j=(0,Ho.useRefEffect)(e=>{let t;function n(e){e.preventDefault()}function o(){const{contentDocument:o,ownerDocument:r}=e,{readyState:a,documentElement:l}=o;return t=o,("interactive"===a||"complete"===a)&&(function(e){const{defaultView:t}=e,{frameElement:n}=t;function o(e){const o=Object.getPrototypeOf(e).constructor.name,r=window[o],a={};for(const t in e)a[t]=e[t];if(e instanceof t.MouseEvent){const e=n.getBoundingClientRect();a.clientX+=e.left,a.clientY+=e.top}const l=new r(e.type,a);!n.dispatchEvent(l)&&e.preventDefault()}const r=["dragover"];for(const t of r)e.addEventListener(t,o)}(o),m(o),w(l),f(Array.from(r.body.classList).filter(e=>e.startsWith("admin-color-")||e.startsWith("post-type-")||"wp-embed-responsive"===e)),o.dir=r.dir,l.removeChild(o.head),l.removeChild(o.body),t.addEventListener("dragover",n,!1),t.addEventListener("drop",n,!1),!0)}return e.addEventListener("load",o),()=>{e.removeEventListener("load",o),t?.removeEventListener("dragover",n),t?.removeEventListener("drop",n)}},[]),C=(0,Ho.useRefEffect)(e=>{x.reduce((t,n)=>t.then(()=>async function(e,{id:t,src:n}){return new Promise((o,r)=>{const a=e.ownerDocument.createElement("script");a.id=t,n?(a.src=n,a.onload=()=>o(),a.onerror=()=>r()):o(),e.appendChild(a)})}(e,n)),Promise.resolve()).finally(()=>{p()})},[]),I=(0,Ho.useDisabled)({isDisabled:!s}),O=(0,Ho.useMergeRefs)([e,w,I]),M=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("style",{children:"html{height:auto!important;}body{margin:0}"}),[...v,...k].map(({tagName:e,href:t,id:n,rel:o,media:r,textContent:a})=>{const l=e.toLowerCase();return"style"===l?(0,h.createElement)(l,{id:n,key:n},a):(0,h.createElement)(l,{href:t,id:n,rel:o,media:r,key:n})})]}),P=(0,Ao.useMemo)(()=>"<!doctype html>"+(0,Ao.renderToString)(M),[]),T=S*(1-a)/2;return(0,Bo.jsxs)(Bo.Fragment,{children:[r>=0,(0,Bo.jsx)("iframe",{...d,style:{...d.style,height:i?S:d.style?.height,marginTop:a?-T+l:d.style?.marginTop,marginBottom:a?-T+l:d.style?.marginBottom,transform:a?`scale( ${a} )`:d.style?.transform,transition:"all .3s"},ref:(0,Ho.useMergeRefs)([c,j]),tabIndex:r,srcDoc:P,title:(0,o.__)("Editor canvas"),children:g&&(0,Ao.createPortal)((0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsxs)("head",{ref:C,children:[M,n]}),(0,Bo.jsxs)("body",{ref:O,className:Io()("block-editor-iframe__body","editor-styles-wrapper",...b),children:[_,(0,Bo.jsx)(No.__experimentalStyleProvider,{document:g,children:t})]})]}),g.documentElement)}),r>=0]})}const Nr=(0,Ao.forwardRef)(function(e,t){return(0,Eo.useSelect)(e=>e(Pr.store).getSettings().styles,[])?(0,Bo.jsx)(Ar,{...e,forwardedRef:t}):null});let Lr;const Rr=1600;function Br({viewportWidth:e,containerWidth:t,minHeight:n="200px",additionalStyles:o=[],editorStyles:r,ratio:a}){e||(e=t);const[l,{height:i}]=(0,Ho.useResizeObserver)();Lr=Lr||(0,Ho.pure)(Pr.BlockList);const s=t/e;return(0,Bo.jsxs)(Bo.Fragment,{children:[!i&&(0,Bo.jsx)("div",{className:"kb-preview-iframe-loader",children:(0,Bo.jsx)(No.Spinner,{})}),(0,Bo.jsx)(No.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${s})`,height:i*s,maxHeight:i>Rr?Rr*s:void 0,minHeight:i?void 0:n},children:(0,Bo.jsxs)(Nr,{head:(0,Bo.jsx)(Pr.__unstableEditorStyles,{styles:r}),contentRef:(0,Ho.useRefEffect)(e=>{const{ownerDocument:{documentElement:t}}=e;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%",e.style.boxSizing="border-box",e.style.position="absolute",e.style.width="100%"},[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:i,pointerEvents:"none",maxHeight:Rr,minHeight:0!==s&&s<1&&n?n/s:n},children:[l,(0,Bo.jsx)(Lr,{renderAppender:!1})]})})]})}function Dr(e){const[t,{width:n}]=(0,Ho.useResizeObserver)();return(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("div",{style:{position:"relative",width:"100%",height:0},children:t}),(0,Bo.jsx)("div",{className:"block-editor-block-preview__container",children:!!n&&(0,Bo.jsx)(Br,{...e,containerWidth:n})})]})}function Fr({blocks:e,viewportWidth:t=1200,minHeight:n,additionalStyles:o=[],editorStyles:r,ratio:a,shadowCompatStyles:l=[]}){const i=(0,Eo.useSelect)(e=>e(Pr.store).getSettings(),[]),s=(0,Ao.useMemo)(()=>({...i,__unstableIsPreviewMode:!0}),[i]),c=(0,Ao.useMemo)(()=>Array.isArray(e)?e:[e],[e]);return e&&0!==e.length?(0,Bo.jsx)(Pr.BlockEditorProvider,{value:c,settings:s,children:(0,Bo.jsx)(Dr,{viewportWidth:t,minHeight:n,additionalStyles:o,ratio:a,editorStyles:r,shadowCompatStyles:l})}):null}var zr=n(5848),Hr=n(5556),$r=n.n(Hr),Vr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function Wr(e,t){return e(t={exports:{}},t.exports),t.exports}var Ur=Wr(function(e){!function(t){var n=function(e,t,o){if(!s(t)||d(t)||u(t)||p(t)||i(t))return t;var r,a=0,l=0;if(c(t))for(r=[],l=t.length;a<l;a++)r.push(n(e,t[a],o));else for(var g in r={},t)Object.prototype.hasOwnProperty.call(t,g)&&(r[e(g,o)]=n(e,t[g],o));return r},o=function(e){return g(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1)},r=function(e){var t=o(e);return t.substr(0,1).toUpperCase()+t.substr(1)},a=function(e,t){return function(e,t){var n=(t=t||{}).separator||"_",o=t.split||/(?=[A-Z])/;return e.split(o).join(n)}(e,t).toLowerCase()},l=Object.prototype.toString,i=function(e){return"function"==typeof e},s=function(e){return e===Object(e)},c=function(e){return"[object Array]"==l.call(e)},d=function(e){return"[object Date]"==l.call(e)},u=function(e){return"[object RegExp]"==l.call(e)},p=function(e){return"[object Boolean]"==l.call(e)},g=function(e){return(e-=0)==e},m=function(e,t){var n=t&&"process"in t?t.process:t;return"function"!=typeof n?e:function(t,o){return n(t,e,o)}},h={camelize:o,decamelize:a,pascalize:r,depascalize:a,camelizeKeys:function(e,t){return n(m(o,t),e)},decamelizeKeys:function(e,t){return n(m(a,t),e,t)},pascalizeKeys:function(e,t){return n(m(r,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:t.humps=h}(Vr)}).decamelize,Zr=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o},Gr=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],o=!0,r=!1,a=void 0;try{for(var l,i=e[Symbol.iterator]();!(o=(l=i.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){r=!0,a=e}finally{try{o||null==i.return||i.return()}finally{if(r)throw a}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Zr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},qr=Wr(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},t.apply(this,arguments)}e.exports=t}),Kr=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r},Jr=(0,h.createContext)(null);function Yr(e){var t=e.children,n=void 0===t?"":t,o=Kr(e,["children"]);return"string"!=typeof n&&(n=(0,zr.F0)(n)),b().createElement("template",qr({},o,{dangerouslySetInnerHTML:{__html:n}}))}function Xr(e){var t=e.root,n=e.children;return(0,Qe.createPortal)(void 0===n?null:n,t)}Yr.propTypes={children:$r().oneOfType([$r().string,$r().node])},Xr.propTypes={root:$r().object.isRequired,children:$r().node};var Qr=new Map,ea=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{get:function(n,o){var r=Ur(o,{separator:"-"}),a="".concat(e,"-").concat(r);return Qr.has(a)||Qr.set(a,function(e){var t=(0,h.forwardRef)(function(t,n){var o,r,a=t.mode,l=void 0===a?"open":a,i=t.delegatesFocus,s=void 0!==i&&i,c=t.styleSheets,d=void 0===c?[]:c,u=t.ssr,p=void 0!==u&&u,g=t.children,m=Kr(t,["mode","delegatesFocus","styleSheets","ssr","children"]),f=(r=(0,h.useRef)((o=n)&&o.current),(0,h.useEffect)(function(){o&&(o.current=r.current)},[o]),r),v=(0,h.useState)(null),y=Gr(v,2),k=y[0],x=y[1],w="node_".concat(l).concat(s);return(0,h.useLayoutEffect)(function(){if(f.current)try{if("function"==typeof n&&n(f.current),p){var e=f.current.shadowRoot;return void x(e)}var t=f.current.attachShadow({mode:l,delegatesFocus:s});d.length>0&&(t.adoptedStyleSheets=d),x(t)}catch(e){!function(e){var t=e.error,n=e.styleSheets,o=e.root;if("NotSupportedError"!==t.name)throw t;n.length>0&&(o.adoptedStyleSheets=n)}({error:e,styleSheets:d,root:k})}},[n,f,d]),b().createElement(b().Fragment,null,b().createElement(e.tag,qr({key:w,ref:f},m),(k||p)&&b().createElement(Jr.Provider,{value:k},p?b().createElement(Yr,{shadowroot:l,shadowrootmode:l},e.render({root:k,ssr:p,children:g})):b().createElement(Xr,{root:k},e.render({root:k,ssr:p,children:g})))))});return t.propTypes={mode:$r().oneOf(["open","closed"]),delegatesFocus:$r().bool,styleSheets:$r().arrayOf($r().instanceOf(globalThis.CSSStyleSheet)),ssr:$r().bool,children:$r().node},t}({tag:r,render:t})),Qr.get(a)}})}();const ta=ea;Object.defineProperty;var na=new Map,oa=new WeakMap,ra=0;function aa(e,t,n={},o=undefined){if(void 0===window.IntersectionObserver&&void 0!==o){const r=e.getBoundingClientRect();return t(o,{isIntersecting:o,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:r,intersectionRect:r,rootBounds:r}),()=>{}}const{id:r,observer:a,elements:l}=function(e){const t=function(e){return Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{return`${t}_${"root"===t?(n=e.root,n?(oa.has(n)||(ra+=1,oa.set(n,ra.toString())),oa.get(n)):"0"):e[t]}`;var n}).toString()}(e);let n=na.get(t);if(!n){const o=new Map;let r;const a=new IntersectionObserver(t=>{t.forEach(t=>{var n;const a=t.isIntersecting&&r.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=a),null==(n=o.get(t.target))||n.forEach(e=>{e(a,t)})})},e);r=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:o},na.set(t,n)}return n}(n),i=l.get(e)||[];return l.has(e)||l.set(e,i),i.push(t),a.observe(e),function(){i.splice(i.indexOf(t),1),0===i.length&&(l.delete(e),a.unobserve(e)),0===l.size&&(a.disconnect(),na.delete(r))}}h.Component;const la=({rootScroll:e,className:t,onContentVisible:n,children:o})=>{const r={triggerOnce:!0,rootMargin:"600px 0px",onChange:e=>{e&&n()}},{ref:a,inView:l}=function({threshold:e,delay:t,trackVisibility:n,rootMargin:o,root:r,triggerOnce:a,skip:l,initialInView:i,fallbackInView:s,onChange:c}={}){var d;const[u,p]=h.useState(null),g=h.useRef(c),[m,b]=h.useState({inView:!!i,entry:void 0});g.current=c,h.useEffect(()=>{if(l||!u)return;let i;return i=aa(u,(e,t)=>{b({inView:e,entry:t}),g.current&&g.current(e,t),t.isIntersecting&&a&&i&&(i(),i=void 0)},{root:r,rootMargin:o,threshold:e,trackVisibility:n,delay:t},s),()=>{i&&i()}},[Array.isArray(e)?e.toString():e,u,r,o,a,l,n,s,t]);const f=null==(d=m.entry)?void 0:d.target,v=h.useRef(void 0);u||!f||a||l||v.current===f||(v.current=f,b({inView:!!i,entry:void 0}));const y=[p,m.inView,m.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}(r);return(0,Bo.jsx)("div",{ref:a,className:`LazyLoad${l?" is-visible":""}${t?` ${t}`:""}`,children:l?[o]:null})},ia=1600;function sa({html:e,viewportWidth:t,containerWidth:n,minHeight:o=70,additionalStyles:r=[],title:a,ratio:l,shadowCompatStyles:i,shadowStyles:s,patternType:c="pattern",rootScroll:d}){t||(t=n);const[u,p]=(0,Ao.useState)(!1),[g,m]=(0,Ao.useState)(0),[h,{height:b}]=(0,Ho.useResizeObserver)(),f=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("link",{rel:"stylesheet",id:"kadence-blocks-iframe-base",href:kadence_blocks_params.livePreviewStyles,media:"all"}),i]}),v=(0,Bo.jsx)(Bo.Fragment,{children:s.map((e,t)=>{if(e?.css){let n=e.css.replace(/ .block-editor-block-list__layout/g,"");return n=n.replace(/:root/g,".pattern-shadow-wrap"),n=n.replace(/body/g,".single-iframe-content"),(0,Bo.jsx)("style",{children:n},t)}})}),y=n/t,k=u?"auto":b,x=`transform ${b>=ia?(k-ia)/650*1e3:2e3}ms linear !important`,w=(0,Ao.useRef)(null);return(0,Ao.useEffect)(()=>{w.current&&(()=>{const e=w.current.shadowRoot.querySelectorAll('style, link[rel="stylesheet"]');let t=0;e.forEach(n=>{n.sheet?t++:"link"===n.tagName.toLowerCase()&&(n.onload=()=>{t++,t===e.length&&m(1)})}),t===e.length&&m(1)})()},[w?.current]),(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(la,{offset:200,rootScroll:d,onContentVisible:()=>{setTimeout(()=>{p(!0)},100),setTimeout(()=>{p(!1)},400),setTimeout(()=>{m(1)},800)},children:(0,Bo.jsx)(No.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${y})`,height:k?k*y:"auto",maxHeight:k>ia?ia*y:void 0},children:(0,Bo.jsxs)(ta.div,{ref:w,className:"kb-pattern-shadow-container"+(b>=ia?" kb-pattern-overflow":""),"aria-hidden":!0,tabIndex:-1,style:{opacity:g,position:"absolute",width:t,height:k,pointerEvents:"none",maxHeight:ia,minHeight:0!==y&&y<1&&o?o/y:o},children:[f,v,(0,Bo.jsx)("style",{children:`.pattern-shadow-wrap { transition: ${x} }`}),(0,Bo.jsxs)("div",{part:"container",className:"editor-styles-wrapper pattern-shadow-wrap",children:[h,(0,Bo.jsx)("div",{className:"single-iframe-content"+(kadence_blocks_params.isKadenceT?" single-content":""),dangerouslySetInnerHTML:{__html:e}})]})]})})}),!b&&(0,Bo.jsx)("div",{className:"kb-preview-iframe-loader-ratio",style:{paddingBottom:l||void 0,minHeight:l?void 0:o},children:(0,Bo.jsx)("div",{className:"kb-preview-iframe-loader",children:(0,Bo.jsx)(No.Spinner,{})})})]})}function ca(e){const[t,{width:n}]=(0,Ho.useResizeObserver)();return(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("div",{style:{position:"relative",width:"100%",height:0},children:t}),(0,Bo.jsx)("div",{className:"block-editor-block-preview__container",children:(0,Bo.jsx)(sa,{...e,containerWidth:n})})]})}function da({html:e,viewportWidth:t=1200,minHeight:n,additionalStyles:o=[],title:r,ratio:a,shadowStyles:l,shadowCompatStyles:i,patternType:s,rootScroll:c}){return e?(0,Bo.jsx)(ca,{viewportWidth:t,minHeight:n,html:e,additionalStyles:o,title:r,ratio:a,shadowStyles:l,shadowCompatStyles:i,patternType:s,rootScroll:c}):null}const ua=({showTooltip:e,title:t,children:n})=>e?(0,Bo.jsx)(No.Tooltip,{text:t,children:n}):(0,Bo.jsx)(Bo.Fragment,{children:n}),pa=(e,t)=>Number(Math.round(Number(e+"e"+t))+"e"+-1*t);function ga({pattern:e,patternHTML:t,onClick:n,showTooltip:r,customStyles:l,previewMode:i,selectedStyle:s,editorStyles:c,shadowStyles:d,shadowCompatStyles:u,patternType:p,rootScroll:g,key:m}){const{content:h,viewportWidth:b,pro:f,locked:v,proRender:y,image:k,imageHeight:x,imageWidth:w,html:_}=e;let S=_;!_&&t?S=_r(t):_||(S=" ");const j=`block-editor-block-patterns-list__item-description-${m}`;return(0,Bo.jsx)("div",{className:`block-editor-block-patterns-list__list-item kb-pattern-style-${s}`,children:(0,Bo.jsx)(ua,{showTooltip:r,title:e.title,children:(0,Bo.jsxs)("div",{role:"option",className:"block-editor-block-patterns-list__item"+(v?" kb-pattern-item-locked":""),onClick:()=>{v?console.log("Can not install"):n(e,h)},"aria-disabled":!!v||void 0,"aria-label":e.title,"aria-describedby":e.description?j:void 0,children:[y&&"image"!==i&&!S&&(0,Bo.jsx)("div",{className:"kb-pattern-requires-pro-item-wrap block-editor-block-preview__container",children:(0,Bo.jsx)("span",{className:"kb-pattern-requires-pro-item",children:(0,o.__)("Requires Kadence Blocks Pro to Render Preview","kadence-blocks")})}),h&&!y&&"image"!==i&&!S&&(0,Bo.jsx)(Fr,{blocks:(0,a.parse)(h,{__unstableSkipMigrationLogs:!0}),viewportWidth:b,additionalStyles:l,editorStyles:c,shadowCompatStyles:u}),"image"!==i&&S&&(0,Bo.jsx)(da,{html:S,title:e.title,viewportWidth:b,additionalStyles:l,ratio:w&&x?pa(x/w*100,2)+"%":void 0,shadowStyles:d,shadowCompatStyles:u,patternType:p,rootScroll:g}),"image"===i&&(0,Bo.jsx)("div",{className:"kb-pattern-image-wrap",style:{paddingBottom:w&&x?pa(x/w*100,2)+"%":void 0},children:(0,Bo.jsx)("img",{src:k,loading:"lazy",alt:e.title})}),v&&(0,Bo.jsx)("div",{className:"kb-pattern-requires-active-pro",children:(0,Bo.jsx)("span",{className:"kb-pattern-requires-active-pro-item",children:(0,Bo.jsx)(No.ExternalLink,{href:"https://www.kadencewp.com/pricing/?utm_source=in-app&utm_medium=kadence-blocks&utm_campaign=patterns",children:(0,o.__)("Requires Kadence Premium Designs","kadence-blocks")})})}),!r&&("page"===p?(0,Bo.jsxs)("div",{className:"block-editor-block-patterns-list__item-title kb-pattern-type-page",children:[(0,Bo.jsxs)("div",{className:"kb-pattern-footer-top",children:[(0,Bo.jsx)("span",{className:"kb-pattern-title",dangerouslySetInnerHTML:{__html:e.title}}),e?.pageStyles&&e.pageStyles.length&&Object.values(e.pageStyles).map(e=>(0,Bo.jsx)("span",{className:"kb-pattern-style-tag",children:e}))]}),e.description?(0,Bo.jsx)("div",{className:"kb-pattern-description",children:e.description}):null]}):(0,Bo.jsxs)("div",{className:"block-editor-block-patterns-list__item-title",children:[(0,Bo.jsx)("span",{className:"kb-pattern-inline-title",dangerouslySetInnerHTML:{__html:e.title}}),void 0!==f&&f&&(0,Bo.jsx)("span",{className:"kb-pattern-pro-item",children:(0,o.__)("Premium","kadence-blocks")})]})),!!e.description&&(0,Bo.jsx)(No.VisuallyHidden,{id:j,children:e.description})]})})},m)}const ma=function({blockPatterns:e,selectedCategory:t,selectedPageStyles:n,filterValue:r,onClickPattern:a,label:l=(0,o.__)("Block Patterns","kadence-blocks"),showTitlesAsTooltip:i,customStyles:s,customShadowStyles:c,breakpointCols:d,previewMode:u="iframe",selectedStyle:p="light",patternType:g="pattern",rootScroll:m,patternsHTML:b}){const{styles:f,assets:v}=(0,Eo.useSelect)(e=>{const t=e(Pr.store).getSettings();return{styles:t.styles,assets:t.__unstableResolvedAssets}},[]),y=(k=v?.styles,(0,Ao.useMemo)(()=>{const e=document.implementation.createHTMLDocument("");return e.body.innerHTML=k,Array.from(e.body.children)},[k]));var k;const x=y.map(e=>e.id),w=["kadence-blocks-global-editor-styles-inline-css","kadence-editor-global-inline-css","wp-block-library-css","wc-blocks-vendors-style-css","wc-blocks-style-css"],_=["yoast-seo-metabox-css-css"],S=y.filter(e=>w.includes(e.id)),j=Tr().filter(e=>e.id&&!x.includes(e.id)&&!_.includes(e.id)),C=(0,Ao.useMemo)(()=>(0,Bo.jsx)(Bo.Fragment,{children:[...j,...S].map(({tagName:e,href:t,id:n,rel:o,media:r,textContent:a})=>{const l=e.toLowerCase();let i=a.replace(/ .block-editor-block-list__layout/g,"");return i=i.replace(/:root/g,".pattern-shadow-wrap"),"style"===l?(0,h.createElement)(l,{id:n,key:n},i):(0,h.createElement)(l,{href:t,id:n,rel:o,media:r,key:n})})}),[j,S]),I=(0,Ao.useMemo)(()=>f?[...f,{css:".single-iframe-content{--wp--style--global--content-size:var(--wp--style--global--wide-size )}",__unstableType:"presets"},...c]:f,[f,c]);return(0,Bo.jsx)("div",{className:"block-editor-block-patterns-list",children:(0,Bo.jsx)("div",{className:"block-editor-block-patterns-list-wrap",children:(0,Bo.jsx)(Mr,{breakpointCols:d,className:"kb-css-masonry kb-core-section-library",columnClassName:"kb-css-masonry_column",children:(e=>{const t=[];for(let n=0;n<e.length;n++)void 0!==e[n]?.name&&t.push((0,Bo.jsx)(ga,{pattern:e[n],patternHTML:b?b?.[e[n]?.slug]?.html:null,onClick:a,showTooltip:i,customStyles:s,shadowStyles:I,previewMode:u,selectedStyle:p,editorStyles:"",rootScroll:m,shadowCompatStyles:C,patternType:g},e[n]?.slug||n));return t})(e)})})})},ha={category:(0,o.__)("Category","kadence-blocks"),hero:(0,o.__)("Hero","kadence-blocks"),cards:(0,o.__)("Cards","kadence-blocks"),columns:(0,o.__)("Columns","kadence-blocks"),"media-text":(0,o.__)("Media and Text","kadence-blocks"),"counter-or-stats":(0,o.__)("Counter or Stats","kadence-blocks"),form:(0,o.__)("Form","kadence-blocks"),gallery:(0,o.__)("Gallery","kadence-blocks"),accordion:(0,o.__)("Accordion","kadence-blocks"),image:(0,o.__)("Image","kadence-blocks"),list:(0,o.__)("List","kadence-blocks"),location:(0,o.__)("Location","kadence-blocks"),"logo-farm":(0,o.__)("Logo Farm","kadence-blocks"),team:(0,o.__)("Team","kadence-blocks"),"post-loop":(0,o.__)("Post Loop","kadence-blocks"),"pricing-table":(0,o.__)("Pricing Table","kadence-blocks"),slider:(0,o.__)("Slider","kadence-blocks"),tabs:(0,o.__)("Tabs","kadence-blocks"),testimonials:(0,o.__)("Testimonials","kadence-blocks"),text:(0,o.__)("Text","kadence-blocks"),"title-or-header":(0,o.__)("Title or Header","kadence-blocks"),menu:(0,o.__)("Menu","kadence-blocks"),video:(0,o.__)("Video","kadence-blocks")},ba={"value-prop":(0,o.__)("Value Proposition","kadence-blocks"),"products-services":(0,o.__)("Products or Services","kadence-blocks"),about:(0,o.__)("About","kadence-blocks"),achievements:(0,o.__)("Achievements","kadence-blocks"),"call-to-action":(0,o.__)("Call to Action","kadence-blocks"),testimonials:(0,o.__)("Testimonials","kadence-blocks"),"get-started":(0,o.__)("Get Started","kadence-blocks"),"pricing-table":(0,o.__)("Pricing Table","kadence-blocks"),location:(0,o.__)("Location","kadence-blocks"),history:(0,o.__)("History","kadence-blocks"),mission:(0,o.__)("Mission","kadence-blocks"),profile:(0,o.__)("Profile","kadence-blocks"),team:(0,o.__)("Team","kadence-blocks"),work:(0,o.__)("Work","kadence-blocks"),faq:(0,o.__)("FAQ","kadence-blocks"),welcome:(0,o.__)("Welcome","kadence-blocks"),news:(0,o.__)("News","kadence-blocks"),blog:(0,o.__)("Blog","kadence-blocks"),"contact-form":(0,o.__)("Contact","kadence-blocks"),"subscribe-form":(0,o.__)("Subscribe","kadence-blocks"),careers:(0,o.__)("Careers","kadence-blocks"),donate:(0,o.__)("Donate","kadence-blocks"),events:(0,o.__)("Events","kadence-blocks"),partners:(0,o.__)("Partners","kadence-blocks"),industries:(0,o.__)("Industries","kadence-blocks"),volunteer:(0,o.__)("Volunteer","kadence-blocks"),support:(0,o.__)("Support","kadence-blocks")},fa={"value-prop":!1,"products-services":!1,about:!1,achievements:!1,"call-to-action":!1,testimonials:!1,"get-started":!1,"pricing-table":!1,location:!1,mission:!1,team:!1,work:!1,welcome:!1,"contact-form":!1,"subscribe-form":!1,industries:!1},va={category:(0,o.__)("Category","kadence-blocks"),home:(0,o.__)("Home","kadence-blocks"),about:(0,o.__)("About","kadence-blocks"),contact:(0,o.__)("Contact","kadence-blocks"),services:(0,o.__)("Services","kadence-blocks")},ya={"value-prop":"6","products-services":"8",about:"5",achievements:"4","call-to-action":"4",testimonials:"1","get-started":"4","pricing-table":"1",location:"3",history:"4",mission:"4",profile:"4",team:"5",work:"5",faq:"1",welcome:"5",news:"1",blog:"2","contact-form":"1","subscribe-form":"1",careers:"5",donate:"5",events:"5",partners:"3",industries:"5",volunteer:"5",support:"4"};async function ka(e,t){try{return await To()({path:"/kb-design-library/v1/handle_event",method:"POST",data:{event_label:e,event_data:t||{}}})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}}const xa=window.wp.url,wa="/kb-design-library/v1/get_images",{kadence_blocks_params:_a}=window;function Sa(){const[e,t]=(0,Ao.useState)(!1),[n,o]=(0,Ao.useState)(!1),[r,a]=(0,Ao.useState)(!1),[l,i]=(0,Ao.useState)(!1);let s=void 0!==_a&&_a?.proData&&_a?.proData?.api_key?_a.proData.api_key:"",c=void 0!==_a&&_a?.proData&&_a?.proData?.api_email?_a.proData.api_email:"";const d=void 0!==_a&&_a?.proData&&_a?.proData?.product_id?_a.proData.product_id:"";return s||(s=void 0!==_a&&_a?.proData&&_a?.proData?.ithemes_key?_a.proData.ithemes_key:"",s&&(c="iThemes")),{error:l,getAIContentData:async function(e){try{return await To()({path:(0,xa.addQueryArgs)("/kb-design-library/v1/get",{context:e})})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getLocalAIContentData:async function(){try{return await To()({path:"/kb-design-library/v1/get_all_items"})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getAIContentDataReload:async function(e){try{return await To()({path:(0,xa.addQueryArgs)("/kb-design-library/v1/get",{force_reload:!0,context:e})})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},saveAIWizardData:async function(e){t(!0),i(!1);try{if(await To()({path:"/wp/v2/settings",method:"POST",data:{kadence_blocks_prophecy:JSON.stringify(e)}}))return t(!1),!0}catch(e){const n=e?.message?e.message:e;return console.log(`ERROR: ${n}`),t(!1),i(!0),!1}},getAIWizardData:async function(e=!1){t(!0),i(!1);const n=!(!window?.kadence_blocks_params_wizard?.settings||!window?.kadence_blocks_params_wizard?.settings?.context)&&window.kadence_blocks_params_wizard.settings;if(!e&&n)return t(!1),n;try{const e=await To()({path:"/wp/v2/settings",method:"GET"});if(e&&(t(!1),e?.kadence_blocks_prophecy))return window?.kadence_blocks_params_wizard||(window.kadence_blocks_params_wizard={}),window.kadence_blocks_params_wizard.settings=e.kadence_blocks_prophecy,e.kadence_blocks_prophecy}catch(e){const n=e?.message?e.message:e;return console.log(`ERROR: ${n}`),t(!1),i(!0),{}}},getCollectionByIndustry:async function(e){if(!e?.photoLibrary)return[];const t=!(!e?.customCollections||!e?.customCollections.some(t=>t.value===e?.photoLibrary))&&e?.customCollections.find(t=>t.value===e?.photoLibrary);if(t){const e={data:[]};if(t?.galleries?.[0]?.images){const n=t?.galleries?.[0]?.images.map((e,t)=>{const n={};return e?.alt&&(n.alt=e.alt),e?.url&&(n.url=e.url),e?.width&&(n.width=e.width),e?.height&&(n.height=e.height),e?.photographer&&(n.photographer=e.photographer),e?.photographer_url&&(n.photographer_url=e.photographer_url),e?.id&&(n.id=e.id),e?.sizes?.[1]?.src?e.sizes.find(e=>"large"===e.name)?n.sizes=[{src:e.sizes.find(e=>"large"===e.name).src}]:e.sizes.find(e=>"2048x2048"===e.name)?n.sizes=[{src:e.sizes.find(e=>"2048x2048"===e.name).src}]:e.sizes.find(e=>"scaled"===e.name)?n.sizes=[{src:e.sizes.find(e=>"scaled"===e.name).src}]:n.sizes=[{src:e.sizes[1].src}]:n.sizes=[{src:e.url}],n});e.data.push({images:n})}if(t?.galleries?.[1]?.images){const n=t?.galleries?.[1]?.images.map((e,t)=>{const n={};return e?.alt&&(n.alt=e.alt),e?.url&&(n.url=e.url),e?.width&&(n.width=e.width),e?.height&&(n.height=e.height),e?.photographer&&(n.photographer=e.photographer),e?.photographer_url&&(n.photographer_url=e.photographer_url),e?.id&&(n.id=e.id),n.sizes=e?.sizes?.[1]?.src?[{src:e.sizes[1].src}]:[{src:e.url}],n});e.data.push({images:n})}return e}if("aiGenerated"===e?.photoLibrary){const t=Array.isArray(e.photoLibrary)?e?.photoLibrary:[e.photoLibrary];try{const n=await To()({path:(0,xa.addQueryArgs)(wa,{industries:t,industry:e?.imageSearchQuery})}),o=(0,Mo.SafeParseJSON)(n,!1);return o?{data:[{name:"featured",images:o?.data?.images.slice(0,12)},{name:"background",images:o?.data?.images.slice(12,24)}]}:[]}catch(e){const t=e?.message?e.message:e;console.log(`ERROR: ${t}`)}}const n=Array.isArray(e.photoLibrary)?e?.photoLibrary:[e.photoLibrary];try{const e=await To()({path:(0,xa.addQueryArgs)(wa,{industries:n})});return(0,Mo.SafeParseJSON)(e,!1)||[]}catch(e){const t=e?.message?e.message:e;console.log(`ERROR: ${t}`)}},getPatterns:async function(e,t,n=null,o=null,r=null){if("section"===e&&!t&&"html"!==r){const e=!!(window?.kadence_blocks_params_library?.library_sections&&window?.kadence_blocks_params_library?.library_sections.length>0)&&window.kadence_blocks_params_library.library_sections;if(e)return e}if("section"===e&&!t&&"html"===r){const e=!!(window?.kadence_blocks_params_library?.library_sections_html&&window?.kadence_blocks_params_library?.library_sections_html.length>0)&&window.kadence_blocks_params_library.library_sections_html;if(e)return e}try{const a=await To()({path:(0,xa.addQueryArgs)("/kb-design-library/v1/get_library",{force_reload:t,library:e,library_url:n||"",key:o||e,meta:r||""})});return"section"===e&&"html"===r&&a&&(window?.kadence_blocks_params_library||(window.kadence_blocks_params_library={}),window.kadence_blocks_params_library.library_sections_html=a),"section"===e&&"html"!==r&&a&&(window?.kadence_blocks_params_library||(window.kadence_blocks_params_library={}),window.kadence_blocks_params_library.library_sections=a),a}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getPatternCategories:async function(e,t,n=null,o=null,r=null){try{return await To()({path:(0,xa.addQueryArgs)("/kb-design-library/v1/get_library_categories",{force_reload:t,library:e,library_url:n||"",key:o||e,meta:r||""})})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getPattern:async function(e,t,n,o,r=null,a=null){try{const l={library:e,key:a||e,pattern_id:n||"",pattern_type:t||"",pattern_style:o||""};return r&&(l.library_url=r),s&&(l.api_key=s),c&&(l.api_email=c),d&&(l.product_id=d),await To()({path:(0,xa.addQueryArgs)("/kb-design-library/v1/get_pattern_content",l)})}catch(e){const t=e?.message?e.message:e,n=e?.code?e.code:e;return console.log(`ERROR: ${t}`),"invalid_access"===n?"invalid_access":"failed"}},processPattern:async function(e,t="",n="",o=""){try{return await To()({path:"/kb-design-library/v1/process_pattern",method:"POST",data:{content:e,image_library:t,cpt_blocks:n,style:o}})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getLocalAIContexts:async function(){try{return await To()({path:"/kb-design-library/v1/get_local_contexts"})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getInitialAIContent:async function(){try{return await To()({path:"/kb-design-library/v1/get_initial_jobs"})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getAllAIContentData:async function(e=!1){try{return await To()({path:(0,xa.addQueryArgs)("/kb-design-library/v1/get-all-ai",{force_reload:e})})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getAIContentRemaining:async function(e=!1){try{return await To()({path:(0,xa.addQueryArgs)("/kb-design-library/v1/get_remaining_jobs",{force_reload:e})})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getAvailableCredits:async function(){try{return await To()({path:"/kb-design-library/v1/get_remaining_credits"})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"error"}},getConnection:async function(e,t,n){try{return await To()({path:(0,xa.addQueryArgs)("/kb-design-library/v1/get_connection",{library:e,library_url:t||"",key:n||""})})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},updateConnections:async function(e){try{return await To()({path:"/wp/v2/settings",method:"POST",data:{kadence_blocks_cloud:JSON.stringify(e)}})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}}}}const ja=(0,Ao.memo)(({type:e})=>"error"===e?(0,Bo.jsx)(No.__experimentalHeading,{level:2,lineHeight:"48px",className:"kb-patterns-banner-notice kb-patterns-banner-notice-error",children:(0,o.__)("Error Generating AI Content","kadence-blocks")}):(0,Bo.jsxs)(No.__experimentalHeading,{level:2,lineHeight:"48px",className:"kb-patterns-banner-notice",children:[(0,Bo.jsx)(No.Spinner,{}),"processing"===e?(0,o.__)("Generating AI Content.","kadence-blocks"):(0,o.__)("Loading AI Content.","kadence-blocks")]})),Ca=(0,Ao.memo)(({context:e,contextLabel:t,contextState:n,generateContext:a})=>{const[l,i]=(0,Ao.useState)(!1),[s,c]=(0,Ao.useState)(!1);(0,Ao.useEffect)(()=>{i(!1),"credits"!==n&&"error"!==n&&"failed"!==n||c(!0)},[e,n]);const d=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_key?kadence_blocks_params.proData.api_key:"",u=window?.kadence_blocks_params?.isAuthorized,p=window?.kadence_blocks_params?.homeLink?kadence_blocks_params.homeLink:"";return(0,Bo.jsxs)("div",{className:"kb-patterns-banner-generate-notice",children:[(0,Bo.jsx)(No.Icon,{className:"kadence-generate-icons",icon:r.aiIcon}),(0,Bo.jsx)(No.__experimentalHeading,{level:2,lineHeight:"1.2",className:"kb-patterns-heading-notice",children:(0,o.sprintf)(/* translators: %s: the current context */ /* translators: %s: the current context */ (0,o.__)("Would you like to generate AI powered content for the %s context?","kadence-blocks"),t)}),(0,Bo.jsx)("p",{children:(0,o.sprintf)(/* translators: %s: the current context */ /* translators: %s: the current context */ (0,o.__)("Using the site information you provided we will generate copy for the %s context.","kadence-blocks"),t)}),!u&&!l&&(0,Bo.jsx)(No.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:r.aiIcon,text:(0,o.__)("Activate Kadence AI","kadence-blocks"),disabled:!p,target:p?"_blank":"",href:p||""}),u&&!d&&!l&&(0,Bo.jsx)(Bo.Fragment,{children:(0,Bo.jsx)(No.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:r.aiIcon,text:(0,o.__)("Activate Kadence AI","kadence-blocks"),disabled:!p,target:p?"_blank":"",href:p||""})}),u&&d&&!l&&(0,Bo.jsx)(No.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:r.aiIcon,disabled:s,text:(0,o.sprintf)(/* translators: %s is the credit amount */ /* translators: %s is the credit amount */ (0,o.__)("Generate Content (%s Credits)","kadence-blocks"),ya?.[e]?ya[e]:"1"),onClick:()=>{i(!0),a(e)}}),l&&(0,Bo.jsx)(No.Spinner,{})]})});function Ia({launchWizard:e}){const t=(0,o.__)("Supercharge your web design process with Kadence AI","kadence-blocks"),n=(0,o.__)("To fill your library with thoughtful, relevant, and unique content, simply enter your site goals and information into our prompt wizard.\n\t\tOur design library includes context-driven design patterns that are easy to use, saving you time and effort during the design process. It\n\t\tonly takes a few minutes to get started.","kadence-blocks");return(0,Bo.jsxs)("div",{className:"kb-patterns-banner-generate-notice",children:[(0,Bo.jsx)(No.Icon,{className:"kadence-generate-icons",icon:r.aiIcon}),(0,Bo.jsx)(No.__experimentalHeading,{level:2,lineHeight:"1.2",className:"kb-patterns-heading-notice",children:t}),(0,Bo.jsx)("p",{children:n}),(0,Bo.jsx)(No.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:r.aiIcon,text:(0,o.__)("Launch AI Startup","kadence-blocks"),onClick:()=>{e()}})]})}function Oa({type:e}){return"license"===e?(0,Bo.jsx)(No.__experimentalHeading,{level:2,lineHeight:"48px",className:"kb-patterns-banner-notice ai-failed-loading",children:(0,o.__)("Error Generating AI Content, verify license and available credits.","kadence-blocks")}):"credits"===e?(0,Bo.jsx)(No.__experimentalHeading,{level:2,lineHeight:"48px",className:"kb-patterns-banner-notice ai-failed-loading",children:(0,o.__)("Error, Can not generate AI Content because of insufficient credits.","kadence-blocks")}):(0,Bo.jsx)(No.__experimentalHeading,{level:2,lineHeight:"48px",className:"kb-patterns-banner-notice ai-failed-loading",children:"reload"===e?(0,o.__)("AI Content Failed to Load, Please reload this browser window.","kadence-blocks"):(0,o.__)("AI Content Failed to Load.","kadence-blocks")})}function Ma({type:e}){return"license"===e?(0,Bo.jsx)(No.__experimentalHeading,{level:2,lineHeight:"48px",className:"kb-patterns-banner-notice failed-loading",children:(0,o.__)("Error importing because of license validation, please verify your license key is valid and activated.","kadence-blocks")}):(0,Bo.jsx)(No.__experimentalHeading,{level:2,lineHeight:"48px",className:"kb-patterns-banner-notice failed-loading",children:(0,o.__)("Error importing, the requested content could not be fetched, try reloading your page.","kadence-blocks")})}function Pa({label:e,items:t,selectedItems:n}){const[r,a]=(0,Ao.useState)(t.filter(e=>"All"!==e.label)),[l,i]=(0,Ao.useState)([]);(0,Ao.useEffect)(()=>{if(r&&r.length){const e=r.filter(e=>e.checked);i(e),n&&n(e)}},[r]);const s=(0,Bo.jsx)("svg",{width:"10",height:"7",viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M1.175 0.158203L5 3.97487L8.825 0.158203L10 1.3332L5 6.3332L0 1.3332L1.175 0.158203Z",fill:"#020129"})}),c=(0,Ao.useCallback)(()=>{a(r.map(e=>({...e,checked:!1})))},[r]);return(0,Bo.jsx)(No.Dropdown,{variant:"unstyled",className:"kb-patterns-filter-dropdown",contentClassName:"kb-patterns-filter-dropdown-content",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:t,onToggle:n})=>(0,Bo.jsx)(No.Button,{onClick:n,"aria-expanded":t,className:"kb-toggle-button",children:(0,Bo.jsxs)("div",{className:"kb-toggle-button-wrapper",children:[(0,Bo.jsxs)("span",{children:[e," ",l.length>0?`(${l.length})`:""]}),s]})}),renderContent:()=>(0,Bo.jsxs)("div",{children:[(0,Bo.jsx)("div",{className:"kb-patterns-filter-dropdown-content-inner",children:r&&r.map((e,t)=>e.value&&(0,Bo.jsx)("div",{className:"kb-pattern-filter-item",children:(0,Bo.jsx)(No.CheckboxControl,{checked:e.checked,id:e.value,label:e.label,onChange:e=>((e,t)=>{const o=[...r];o[t].checked=e,a(o);const s=o.filter(e=>e.checked);i(s),n&&n(l)})(e,t)})},e.value))}),(0,Bo.jsx)("div",{className:"kb-pattern-filter-dropdown-content-clear",onClick:e=>c(),children:(0,o.__)("Clear","kadence-blocks")})]})})}function Ta({selectedItems:e}){const[t,n]=(0,Ao.useState)([{heading:(0,o.__)("Media Placement","kadence-blocks"),options:[{value:"media-top",label:(0,o.__)("Media top","kadence-blocks"),checked:!1},{value:"media-center",label:(0,o.__)("Media center","kadence-blocks"),checked:!1},{value:"media-bottom",label:(0,o.__)("Media bottom","kadence-blocks"),checked:!1},{value:"media-left",label:(0,o.__)("Media left","kadence-blocks"),checked:!1},{value:"media-right",label:(0,o.__)("Media right","kadence-blocks"),checked:!1},{value:"media-background",label:(0,o.__)("Media background","kadence-blocks"),checked:!1},{value:"no-media",label:(0,o.__)("No media","kadence-blocks"),checked:!1}]},{heading:(0,o.__)("Columns","kadence-blocks"),options:[{value:"1-column",label:(0,o.__)("1 column","kadence-blocks"),checked:!1},{value:"2-columns",label:(0,o.__)("2 columns","kadence-blocks"),checked:!1},{value:"3-columns",label:(0,o.__)("3 columns","kadence-blocks"),checked:!1},{value:"4-columns",label:(0,o.__)("4 columns","kadence-blocks"),checked:!1},{value:"5-columns",label:(0,o.__)("5+ columns","kadence-blocks"),checked:!1}]},{options:[{value:"off-grid",label:(0,o.__)("Off-Grid","kadence-blocks"),checked:!1,type:"toggle"},{value:"grid",label:(0,o.__)("Bento & Grid","kadence-blocks"),checked:!1,type:"toggle"}]}]),[r,a]=(0,Ao.useState)(0);(0,Ao.useEffect)(()=>{let n=0;const o=[];t.forEach(e=>{e.options.forEach(e=>{e.checked&&(n++,o.push(e.value))})}),a(n),e&&e(o)},[t]);const l=(0,Bo.jsx)("svg",{width:"10",height:"7",viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M1.175 0.158203L5 3.97487L8.825 0.158203L10 1.3332L5 6.3332L0 1.3332L1.175 0.158203Z",fill:"#020129"})}),i=(0,Ao.useCallback)(()=>{n(e=>e.map(e=>({...e,options:e.options.map(e=>({...e,checked:!1}))})))},[]),s=(0,Ao.useCallback)((e,t,o)=>{n(n=>{let r=JSON.parse(JSON.stringify(n));const a=r[t].options[o]?.type;return r[t].options[o].checked=e,"toggle"===a&&e&&(r=r.map((e,n)=>({...e,options:e.options.map((e,r)=>"toggle"!==e.type||n===t&&r===o?e:{...e,checked:!1})}))),r})},[]);return(0,Bo.jsx)(No.Dropdown,{variant:"unstyled",className:"kb-patterns-filter-dropdown",contentClassName:"kb-patterns-filter-dropdown-content",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,Bo.jsx)(No.Button,{onClick:t,"aria-expanded":e,className:"kb-toggle-button",children:(0,Bo.jsxs)("div",{className:"kb-toggle-button-wrapper",children:[(0,Bo.jsxs)("span",{children:[(0,o.__)("Layout","kadence-blocks")," ",r>0?`(${r})`:""]}),l]})}),renderContent:({onToggle:e})=>(0,Bo.jsxs)("div",{children:[(0,Bo.jsx)("div",{className:"kb-patterns-filter-dropdown-content-inner",children:t.map((e,t)=>(0,Bo.jsxs)("div",{className:"kb-pattern-filter-group",children:[e.heading&&(0,Bo.jsx)("h4",{className:"kb-pattern-filter-group-heading",children:e.heading}),e.options.map((e,n)=>e.value&&(0,Bo.jsx)("div",{className:"kb-pattern-filter-item",children:"toggle"===e.type?(0,Bo.jsx)(No.ToggleControl,{checked:e.checked,id:e.value,label:e.label,onChange:e=>s(e,t,n)}):(0,Bo.jsx)(No.CheckboxControl,{checked:e.checked,id:e.value,label:e.label,onChange:e=>s(e,t,n)})},e.value))]},e.heading))}),(0,Bo.jsx)("div",{className:"kb-pattern-filter-dropdown-content-clear",onClick:t=>{i(),e()},children:(0,o.__)("Clear All","kadence-blocks")})]})})}function Ea({selectedItems:e}){const t=[{value:"normal",label:(0,o.__)("Popular","kadence-blocks")},{value:"id_desc",label:(0,o.__)("Latest","kadence-blocks")},{value:"name_asc",label:(0,o.__)("Pattern Name A-Z","kadence-blocks")},{value:"name_desc",label:(0,o.__)("Pattern Name Z-A","kadence-blocks")}],[n,r]=(0,Ao.useState)(t[0].value);(0,Ao.useEffect)(()=>{e&&e(n)},[n]);const a=(0,Bo.jsx)("svg",{width:"10",height:"7",viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M1.175 0.158203L5 3.97487L8.825 0.158203L10 1.3332L5 6.3332L0 1.3332L1.175 0.158203Z",fill:"#020129"})}),l=(0,Ao.useCallback)(()=>{const e=t.find(e=>e.value===n);return e?e.label:""},[n]);return(0,Bo.jsx)(No.Dropdown,{variant:"unstyled",className:"kb-patterns-filter-dropdown kb-patterns-sort-dropdown",contentClassName:"kb-patterns-filter-dropdown-content kb-patterns-sort-dropdown-content",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,Bo.jsx)(No.Button,{onClick:t,"aria-expanded":e,className:"kb-toggle-button",children:(0,Bo.jsxs)("div",{className:"kb-toggle-button-wrapper",children:[(0,Bo.jsx)("span",{children:l()}),a]})}),renderContent:({onToggle:e})=>(0,Bo.jsx)("div",{children:(0,Bo.jsx)("div",{className:"kb-patterns-filter-dropdown-sort-inner",children:t.map(t=>(0,Bo.jsx)("div",{className:"kb-pattern-sort-item",children:(0,Bo.jsx)(No.Button,{isPressed:n===t.value,variant:"tertiary",className:"kb-pattern-sort-item-label "+(n===t.value?"is-active":""),onClick:()=>{r(t.value),e()},children:t.label})},t.value))})})})}function Aa({launchWizard:e}){const t=window?.kadence_blocks_params?.isAuthorized,n=window?.kadence_blocks_params?.proData?.api_key?kadence_blocks_params.proData.api_key:"",a=window?.kadence_blocks_params?.homeLink?kadence_blocks_params.homeLink:"",l=(0,o.__)("Fill your library with thoughtful, relevant, and unique content. It\n\t\tonly takes a few minutes to get started.","kadence-blocks");return(0,Bo.jsxs)("div",{className:"kb-patterns-banner-generate-notice",children:[(0,Bo.jsx)(No.Icon,{className:"kadence-generate-icons",icon:r.aiIcon}),(0,Bo.jsx)(No.__experimentalHeading,{level:2,lineHeight:"1.2",className:"kb-patterns-heading-notice",children:(0,o.__)("Supercharge your web design process with Kadence AI","kadence-blocks")}),(0,Bo.jsx)("p",{children:l}),!t&&(0,Bo.jsx)(No.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:r.aiIcon,text:(0,o.__)("Activate Kadence AI","kadence-blocks"),target:a?"_blank":"",disabled:!a,href:a||""}),t&&!n&&(0,Bo.jsx)(Bo.Fragment,{children:(0,Bo.jsx)(No.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:r.aiIcon,text:(0,o.__)("Activate Kadence AI","kadence-blocks"),target:a?"_blank":"",disabled:!a,href:a||""})}),t&&n&&(0,Bo.jsx)(No.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:r.aiIcon,text:(0,o.__)("Generate Content AI Content","kadence-blocks"),onClick:()=>{e()}})]})}function Na({label:e,items:t,selectedItems:n}){const[r,a]=(0,Ao.useState)(t),[l,i]=(0,Ao.useState)([]);(0,Ao.useEffect)(()=>{a(e=>{const n=new Set(e.filter(e=>e.checked).map(e=>e.value));return t.map(e=>({...e,checked:n.has(e.value)}))})},[t]),(0,Ao.useEffect)(()=>{if(r&&r.length){const e=r.filter(e=>e.checked);i(e),n&&n(e)}},[r,n]);const s=(0,Bo.jsx)("svg",{width:"10",height:"7",viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M1.175 0.158203L5 3.97487L8.825 0.158203L10 1.3332L5 6.3332L0 1.3332L1.175 0.158203Z",fill:"#020129"})});return(0,Bo.jsx)(No.Dropdown,{variant:"unstyled",className:"kb-patterns-filter-dropdown",contentClassName:"kb-patterns-filter-dropdown-content",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:t,onToggle:n})=>(0,Bo.jsx)(No.Button,{onClick:n,"aria-expanded":t,className:"kb-toggle-button",children:(0,Bo.jsxs)("div",{className:"kb-toggle-button-wrapper",children:[(0,Bo.jsxs)("span",{children:[e," ",l.length>0?`(${l.length})`:""]}),s]})}),renderContent:()=>(0,Bo.jsxs)("div",{children:[(0,Bo.jsx)("div",{className:"kb-patterns-filter-dropdown-content-inner",children:r&&r.length>0?r.map((e,t)=>e.value&&(0,Bo.jsx)("div",{className:"kb-pattern-filter-item",children:(0,Bo.jsx)(No.CheckboxControl,{checked:e.checked,id:e.value,label:e.label,onChange:e=>((e,t)=>{a(n=>{const o=[...n];return o[t]={...o[t],checked:e},o})})(e,t)})},e.value)):(0,Bo.jsx)("div",{className:"kb-pattern-filter-item",children:(0,o.__)("No components found","kadence-blocks")})}),r&&r.length>0&&(0,Bo.jsx)("div",{className:"kb-pattern-filter-dropdown-content-clear",onClick:e=>{a(r.map(e=>({...e,checked:!1})))},children:(0,o.__)("Clear","kadence-blocks")})]})})}const La=function({patterns:e,patternsHTML:t,filterValue:n,selectedCategory:r,selectedNewCategory:a,selectedStyle:l="light",breakpointCols:i,onSelect:s,previewMode:c="iframe",selectedFontSize:d,aiContext:u,aINeedsData:p,contextTab:g,imageCollection:m,teamCollection:h,contextStatesRef:b,useImageReplace:f,generateContext:v,contextLabel:y,launchWizard:k,categories:x,userData:w,styles:_,search:S,setSearch:j}){const[C,I]=(0,Ao.useState)(!1),[O,M]=(0,Ao.useState)(!1),[P,T]=(0,Ao.useState)(!1),[E,A]=(0,Ao.useState)("general"),[N,L]=(0,Ao.useState)("general"),[R,B]=(0,Ao.useState)(),[D,F]=(0,Ao.useState)([]),[z,H]=(0,Ao.useState)([]),[$,V]=(0,Ao.useState)([]),[W,U]=(0,Ao.useState)([]),[Z,G]=(0,Ao.useState)("id_desc"),q=(0,Ho.useDebounce)(Uo.speak,500),{getPattern:K}=Sa(),{getContextState:J,getContextContent:Y,getAllContext:X}=(0,Eo.useSelect)(e=>({getContextState:t=>e("kadence/library").getContextState(t),getContextContent:t=>e("kadence/library").getContextContent(t),getAllContext:()=>e("kadence/library").getAllContext()}),[]),Q=window?.kadence_blocks_params?.isAuthorized,ee=!!window?.kadence_blocks_params?.isAIDisabled,te=window?.kadence_blocks_params?.proData?.api_key?kadence_blocks_params.proData.api_key:"",ne=(0,Ao.useCallback)(async e=>{T(!0);const t=X(),n={id:e.id,slug:e.slug,type:"pattern",style:l||"light"},o=await K("page"===n?.type?"pages":"section",n?.type?n.type:"patternSend",n?.id?n.id:"",n?.style?n.style:"light");let r="";if(o&&"invalid_access"===o)return M(!0),L("license"),void T(!1);if(o)try{const e=JSON.parse(o);e&&(e?.content?(r=e.content,e?.cpt_blocks&&(n.cpt_blocks=e.cpt_blocks)):r=o)}catch(e){}!r&&e?.content&&(r=e.content),ka("pattern_added_to_page",{categories:e.categories,id:e.id,slug:e.slug,name:e.name,style:l||"light",is_ai:"context"===g,context:"context"===g?y:""}),r=br(r,m,e.categories,e.id,e.variation,h),"context"===g&&(r=vr(r,t,e.categories,u,e.variation)),r=function(e){if(!e)return e;const t=kadence_blocks_params?.replaceProducts?kadence_blocks_params.replaceProducts:"",n=t?t.toString():"",o=t?t.slice(0,3).toString():"",r=wr(e,"\x3c!-- wp:woocommerce/handpicked-products",'"products":[8121,5160,5159]',0);r&&(e=e.replace("\x3c!-- wp:woocommerce/handpicked-products"+r+'"products":[8121,5160,5159]',"\x3c!-- wp:woocommerce/handpicked-products"+r+'"products":['+o+"]"));const a=wr(e,"\x3c!-- wp:woocommerce/handpicked-products",'"products":[8121,5159,5160,7737]',0);return a&&(e=e.replace("\x3c!-- wp:woocommerce/handpicked-products"+a+'"products":[8121,5159,5160,7737]',"\x3c!-- wp:woocommerce/handpicked-products"+a+'"products":['+n+"]")),e}(r),w?.locationType&&"Online Only"!==w?.locationType&&w?.locationInput&&(r=xr(r,w.locationInput)),r=kr(r),l&&"light"!==l&&("dark"===l?r=hr(r,"dark"):"highlight"===l&&(r=hr(r,"highlight"))),n.content=r,s(n)},[X,K,m,g,u,l,h,w,s,y]),oe=(0,Ao.useMemo)(()=>{const t=[],n="true"!==kadence_blocks_params.pro||"true"!==kadence_blocks_params.creativeKit;let o=0;return Object.keys(e).map(function(r,a){const l=[];"true"!==kadence_blocks_params.pro&&e[r]?.requiredPlugins&&Object.keys(e[r].requiredPlugins).includes("blocks-pro")||(11===o&&(o=0),l.title=e[r].name,l.name=e[r].name,l.image=e[r].image,l.imageWidth=e[r].imageW,l.imageHeight=e[r].imageH,l.id=e[r].id,l.slug=e[r].slug,l.categories=e[r].categories?Object.keys(e[r].categories):[],l.styles=e[r].styles?Object.keys(e[r].styles):[],l.contexts=e[r].contexts?Object.keys(e[r].contexts):[],l.hpcontexts=e[r].hpcontexts?Object.keys(e[r].hpcontexts):[],l.keywords=e[r].keywords?e[r].keywords:[],l.newCategory=e[r]?.newCategory?{...e[r].newCategory}:null,l.newCategory&&"object"==typeof l.newCategory&&Object.keys(l.newCategory).forEach(e=>{l.newCategory[e]?.name&&(l.newCategory[e].name=(e=>{if(!e)return"";const t=document.createElement("textarea");return t.innerHTML=e,t.value})(l.newCategory[e].name))}),l.sidebarHeading=e[r]?.sidebarHeading||null,e[r]?.html&&(l.html=_r(e[r].html)),l.content=e[r]?.content||"",l.pro=e[r].pro,l.locked=!(!e[r].pro||n),l.proRender=!1,l.viewportWidth=1200,l.variation=o,l.layout=e[r].layout,l.component=e[r].component||{},l.labels=e[r]?.label||{},o++,t.push(l))}),t},[e]),re=(0,Ao.useMemo)(()=>{const e={};return oe.forEach(t=>{t.component&&"object"==typeof t.component&&Object.keys(t.component).forEach(n=>{if(!e[n]){const o="string"==typeof t.component[n]&&t.component[n]?t.component[n]:n.replace(/[-_]/g," ").replace(/\b\w/g,e=>e.toUpperCase());e[n]={value:n,label:o,checked:!1}}})}),Object.values(e).sort((e,t)=>e.label.localeCompare(t.label))},[oe]),ae=(0,Ao.useCallback)(e=>{const t=e.map(e=>e.value);F(t)},[]),le=((0,Ao.useCallback)(e=>{const t=e.map(e=>e.value);H(t)},[]),(0,Ao.useCallback)(e=>{V(e)},[])),ie=(0,Ao.useCallback)(e=>{const t=e.map(e=>e.value);U(t)},[]),se=(0,Ao.useMemo)(()=>{let e="contact-form"===u?"contact":u;if(e="subscribe-form"===e?"subscribe":e,e="pricing-table"===e?"pricing":e,"context"===g){if(p)return console.log("AI Needed"),[];if(!J(u))return console.log("AI Needed"),[];if("loading"===J(u))return console.log("Loading AI Content"),I(!1),[];if("processing"===J(u))return console.log("Generating AI Content"),I(!1),[];"error"===J(u)?(console.log("Error Generating AI Content, perhaps licensing?"),I(!0),A("license")):"credits"===J(u)?(console.log("Error not enough credits"),I(!0),A("credits")):"failed"===Y(u)?(console.log("AI Content has failed"),I(!0),A("general")):"failedReload"===Y(u)&&(console.log("AI Content has failed, reload page required."),I(!0),A("reload"))}let o=oe;if(n||"design"!==g||(r&&"all"!==r&&"new"===r?o=o.filter(e=>e.labels?.new):a&&""!==a?o=o.filter(e=>e.newCategory&&e.newCategory.hasOwnProperty(a)):r&&"all"!==r&&(o=o.filter(e=>e.categories?.includes(r)))),"design"===g&&$&&$.length>0&&(o=o.filter(e=>e.layout&&Object.keys(e.layout).some(e=>$.includes(e)))),"design"===g&&W&&W.length>0&&(o=o.filter(e=>e.component&&Object.keys(e.component).some(e=>W.includes(e)))),"context"===g&&e&&(o=o.filter(t=>t.contexts?.includes(e)),o=o.sort(t=>t?.hpcontexts?.includes(e+"-hp")?-1:1)),"context"===g&&D&&D.length>0&&z&&z.length>0?o=o.filter(e=>e.categories.some(e=>D.includes(e))&&e.styles.some(e=>z.includes(e))):"context"===g&&D&&D.length>0?o=o.filter(e=>e.categories.some(e=>D.includes(e))):"context"===g&&z&&z.length>0&&(o=o.filter(e=>e.styles.some(e=>z.includes(e)))),"all"===f&&m){let e=0;o=o.map(n=>(11===e&&(e=0),t?.[n?.slug]?.html?(t[n?.slug].html=br(t[n?.slug].html,m,n.categories,n.id,n.variation,h),n.content=br(n.content,m,n.categories,n.id,n.variation,h)):n.content=br(n.content,m,n.categories,n.id,n.variation,h),e++,n))}if("context"===g){const e=X();let n=0;o=o.map(o=>(11===n&&(n=0),t?.[o?.slug]?.html?(t[o.slug].html=vr(t[o.slug].html,e,o.categories,u,o.variation,!0),w?.locationType&&"Online Only"!==w?.locationType&&w?.locationInput&&(t[o?.slug].html=xr(t[o.slug].html,w.locationInput))):o.content=vr(o.content,e,o.categories,u,o.variation),n++,o))}return"name_asc"===Z?o.sort((e,t)=>{const n=e.name.match(/^(.*?)(\d+)?$/),o=t.name.match(/^(.*?)(\d+)?$/),r=n[1].trim(),a=o[1].trim();return r!==a?r.localeCompare(a):(n[2]?parseInt(n[2],10):0)-(o[2]?parseInt(o[2],10):0)}):"name_desc"===Z?o.sort((e,t)=>{const n=e.name.match(/^(.*?)(\d+)?$/),o=t.name.match(/^(.*?)(\d+)?$/),r=n[1].trim(),a=o[1].trim();if(r!==a)return a.localeCompare(r);const l=n[2]?parseInt(n[2],10):0;return(o[2]?parseInt(o[2],10):0)-l}):"id_desc"===Z&&o.sort((e,t)=>t.id-e.id),ur(o,n)},[n,r,a,oe,u,g,m,f,p,D,z,$,W,Z,J,Y,X,w,h]);(0,Ao.useMemo)(()=>!!e[Object.keys(e)[0]]?.html,[e]),(0,Ao.useEffect)(()=>{if(!n)return;const e=se.length,t=(0,o.sprintf)(/* translators: %d: number of results. */ /* translators: %d: number of results. */ (0,o._n)("%d pattern found.","%d patterns found.",e),e);q(t)},[n,q,se.length]);const ce=(0,Ao.useMemo)(()=>{let e="";return l&&"light"!==l||(e=e.concat("body {--global-content-edge-padding: 3rem;padding:0px !important;}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full] {margin-left: 0 !important;margin-right: 0 !important;}")),"dark"===l?e=e.concat(`body {--global-palette1:${kadence_blocks_params.global_colors["--global-palette1"]};\n\t\t\t--global-palette2:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t--global-palette3:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette4:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t--global-palette5:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette6:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette7:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t--global-palette8:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t--global-palette9:${kadence_blocks_params.global_colors["--global-palette4"]};\n\t\t\t--global-content-edge-padding: 3rem;\n\t\t\tpadding:0px !important;}.kb-btns-outer-wrap {--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]}} .kb-btn-custom-colors .kb-btns-outer-wrap {--global-palette9:${kadence_blocks_params.global_colors["--global-palette3"]}} img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Logo-ploaceholder"] {filter: invert(1);}img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/12/logo-placeholder"] {filter: invert(1);}.wp-block-kadence-tabs.kb-pattern-active-tab-highlight .kt-tabs-title-list li.kt-tab-title-active .kt-tab-title{ color:${kadence_blocks_params.global_colors["--global-palette9"]} !important} .kb-pattern-light-color{--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]}}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full] {margin-left: 0 !important;margin-right: 0 !important;}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-divider-bottom-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette8"]}!important}.kb-divider-static.kb-divider-top-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette8"]}!important}`):"highlight"===l&&(e=e.concat(`body {--global-palette1:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette2:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t--global-palette3:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette4:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette5:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t--global-palette6:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette7:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t--global-palette8:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t--global-palette9:${kadence_blocks_params.global_colors["--global-palette1"]};\n\t\t\t--global-content-edge-padding: 3rem;\n\t\t\tpadding:0px !important; }.kb-submit-field .kb-forms-submit, .kb-btns-outer-wrap .wp-block-button__link {color:${kadence_blocks_params.global_colors["--global-palette9"]};background:${kadence_blocks_params.global_colors["--global-palette3"]};} .kb-btns-outer-wrap .kb-button.kb-btn-global-outline {color:${kadence_blocks_params.global_colors["--global-palette3"]};border-color:${kadence_blocks_params.global_colors["--global-palette3"]};} .kb-btn-custom-colors .kb-btns-outer-wrap {--global-palette9:${kadence_blocks_params.global_colors["--global-palette1"]}} img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Logo-ploaceholder"] {filter: invert(1);}img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/12/logo-placeholder"] {filter: invert(1);}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full] {margin-left: 0 !important;margin-right: 0 !important;}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}`)),"sm"===d&&(e=e.concat(`.block-editor-block-list__layout.is-root-container {--global-kb-font-size-xxxl:${kadence_blocks_params.font_sizes.xxl};\n\t\t\t--global-kb-font-size-xxl:${kadence_blocks_params.font_sizes.xl};\n\t\t\t--global-kb-font-size-xl:${kadence_blocks_params.font_sizes.lg};\n\t\t\t--global-kb-font-size-lg:${kadence_blocks_params.font_sizes.md}; }`)),[{css:e}]},[l,d]),de=(0,Ao.useMemo)(()=>{let e=".pattern-shadow-wrap .single-iframe-content {--global-content-width:1200px; --global-vw:1200px !important;}img{max-width:100%}svg { height: 1em; width: 1em;}";if(l&&"light"!==l||(e=e.concat(".single-iframe-content {--global-content-edge-padding: 3rem;padding:0px !important;}")),e=e.concat(".pattern-shadow-wrap .single-iframe-content {\n\t\t\t--wp--preset--color--theme-palette-1: var(--global-palette1);\n\t\t\t--wp--preset--color--theme-palette-2: var(--global-palette2);\n\t\t\t--wp--preset--color--theme-palette-3: var(--global-palette3);\n\t\t\t--wp--preset--color--theme-palette-4: var(--global-palette4);\n\t\t\t--wp--preset--color--theme-palette-5: var(--global-palette5);\n\t\t\t--wp--preset--color--theme-palette-6: var(--global-palette6);\n\t\t\t--wp--preset--color--theme-palette-7: var(--global-palette7);\n\t\t\t--wp--preset--color--theme-palette-8: var(--global-palette8);\n\t\t\t--wp--preset--color--theme-palette-9: var(--global-palette9);\n\t\t}"),!kadence_blocks_params.isKadenceT){const t=".single-iframe-content .has-theme-palette-1-color { color: var(--global-palette1); }\n\t\t\t.single-iframe-content .has-theme-palette-2-color { color: var(--global-palette2); }\n\t\t\t.single-iframe-content .has-theme-palette-3-color { color: var(--global-palette3); }\n\t\t\t.single-iframe-content .has-theme-palette-4-color { color: var(--global-palette4); }\n\t\t\t.single-iframe-content .has-theme-palette-5-color { color: var(--global-palette5); }\n\t\t\t.single-iframe-content .has-theme-palette-6-color { color: var(--global-palette6); }\n\t\t\t.single-iframe-content .has-theme-palette-7-color { color: var(--global-palette7); }\n\t\t\t.single-iframe-content .has-theme-palette-8-color { color: var(--global-palette8); }\n\t\t\t.single-iframe-content .has-theme-palette-9-color { color: var(--global-palette9); }\n\t\t\t.single-iframe-content .has-theme-palette1-background-color { background-color: var(--global-palette1); }\n\t\t\t.single-iframe-content .has-theme-palette2-background-color { background-color: var(--global-palette2); }\n\t\t\t.single-iframe-content .has-theme-palette3-background-color { background-color: var(--global-palette3); }\n\t\t\t.single-iframe-content .has-theme-palette4-background-color { background-color: var(--global-palette4); }\n\t\t\t.single-iframe-content .has-theme-palette5-background-color { background-color: var(--global-palette5); }\n\t\t\t.single-iframe-content .has-theme-palette6-background-color { background-color: var(--global-palette6); }\n\t\t\t.single-iframe-content .has-theme-palette7-background-color { background-color: var(--global-palette7); }\n\t\t\t.single-iframe-content .has-theme-palette8-background-color { background-color: var(--global-palette8); }\n\t\t\t.single-iframe-content .has-theme-palette9-background-color { background-color: var(--global-palette9); }";e=e.concat(t)}return"dark"===l?e=e.concat(`.single-iframe-content {--global-palette1:${kadence_blocks_params.global_colors["--global-palette1"]};\n\t\t\t--global-palette2:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t--global-palette3:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette4:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t--global-palette5:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette6:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette7:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t--global-palette8:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t--global-palette9:${kadence_blocks_params.global_colors["--global-palette4"]};\n\t\t\t--global-content-edge-padding: 3rem;\n\t\t\tpadding:0px !important;}.kb-btns-outer-wrap {--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]}} .kb-btn-custom-colors .kb-btns-outer-wrap {--global-palette9:${kadence_blocks_params.global_colors["--global-palette3"]}} img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Logo-ploaceholder"] {filter: invert(1);}img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/12/logo-placeholder"] {filter: invert(1);}.wp-block-kadence-tabs.kb-pattern-active-tab-highlight .kt-tabs-title-list li.kt-tab-title-active .kt-tab-title{ color:${kadence_blocks_params.global_colors["--global-palette9"]} !important} .kb-pattern-light-color{--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]}}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-divider-bottom-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette8"]}!important}.kb-divider-static.kb-divider-top-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette8"]}!important}`):"highlight"===l&&(e=e.concat(`.single-iframe-content {--global-palette1:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette2:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t--global-palette3:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette4:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette5:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t--global-palette6:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette7:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t--global-palette8:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t--global-palette9:${kadence_blocks_params.global_colors["--global-palette1"]};\n\t\t\t--global-content-edge-padding: 3rem;\n\t\t\tpadding:0px !important; }.single-iframe-content .kb-form .kadence-blocks-form-field .kb-forms-submit, .kb-buttons-wrap .wp-block-button__link {color:${kadence_blocks_params.global_colors["--global-palette9"]};background:${kadence_blocks_params.global_colors["--global-palette3"]};} .kb-buttons-wrap .kb-button.kb-btn-global-outline {color:${kadence_blocks_params.global_colors["--global-palette3"]};border-color:${kadence_blocks_params.global_colors["--global-palette3"]};} .kb-btn-custom-colors .kb-buttons-wrap {--global-palette9:${kadence_blocks_params.global_colors["--global-palette1"]}} img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Logo-ploaceholder"] {filter: invert(1);}img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/12/logo-placeholder"] {filter: invert(1);}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-divider-bottom-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette8"]}!important}.kb-divider-static.kb-divider-top-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette8"]}!important}`)),"sm"===d&&(e=e.concat(`.single-iframe-content {--global-kb-font-size-xxxl:${kadence_blocks_params.font_sizes.xxl};\n\t\t\t--global-kb-font-size-xxl:${kadence_blocks_params.font_sizes.xl};\n\t\t\t--global-kb-font-size-xl:${kadence_blocks_params.font_sizes.lg};\n\t\t\t--global-kb-font-size-lg:${kadence_blocks_params.font_sizes.md}; }`)),[{css:e}]},[l,d]),ue=!!se?.length;return ee&&"context"===g?(0,Bo.jsx)("div",{className:"kb-ai-dropdown-container-content-wrap activation-needed",children:(0,Bo.jsx)("p",{className:"kb-disabled-authorize-note",children:(0,o.__)("Kadence AI is disabled by site admin.","kadence-blocks")})}):P?(0,Bo.jsx)("div",{className:"block-editor-block-patterns-explorer__wrap",children:(0,Bo.jsx)("div",{className:"block-editor-block-patterns-explorer__list"+("context"===g?" kb-ai-patterns-explorer":""),children:(0,Bo.jsxs)("div",{className:"preparing-importing-images",children:[(0,Bo.jsx)(No.Spinner,{}),(0,Bo.jsx)("h2",{children:(0,o.__)("Preparing Content…","kadence-blocks")})]})})}):(0,Bo.jsx)("div",{ref:B,className:"block-editor-block-patterns-explorer__wrap",children:(0,Bo.jsxs)("div",{className:"block-editor-block-patterns-explorer__list"+("context"===g?" kb-ai-patterns-explorer":"")+(C?" kb-ai-patterns-explorer-failed":""),children:["context"===g&&(!Q||!te)&&(0,Bo.jsx)(Aa,{launchWizard:k}),"context"===g&&Q&&te&&p&&(0,Bo.jsx)(Ia,{launchWizard:()=>k()}),"context"===g&&C&&(0,Bo.jsx)(Oa,{type:E}),"context"!==g&&O&&(0,Bo.jsx)(Ma,{type:N}),"context"===g&&!p&&("processing"===J(u)||"loading"===J(u))&&(0,Bo.jsx)(ja,{type:J(u)}),"context"===g&&!p&&(!J(u)||"credits"===J(u))&&(0,Bo.jsx)(Ca,{context:u,contextLabel:y,contextState:J(u),generateContext:e=>v(e)}),"context"===g&&ue&&!C&&(0,Bo.jsxs)("div",{className:"kb-patterns-filter-wrapper",children:[(0,Bo.jsx)(No.SearchControl,{className:"kb-pattern-search-control",value:n,placeholder:(0,o.__)("Search Patterns","kadence-blocks"),onChange:e=>j(e)}),(0,Bo.jsx)("span",{className:"kb-pattern-filter-label",children:"Filter by:"}),x.length>0&&(0,Bo.jsx)(Pa,{label:"Categories",items:x,selectedItems:ae}),(0,Bo.jsx)("span",{className:"kb-patterns-count-message",children:n?(0,o.sprintf)(/* translators: %d: number of patterns. %s: block pattern search query */ /* translators: %d: number of patterns. %s: block pattern search query */ (0,o._n)('%1$d pattern for "%2$s"','%1$d patterns for "%2$s"',se.length),se.length,n):(0,o.sprintf)(/* translators: %d: number of patterns. */ /* translators: %d: number of patterns. */ (0,o._n)("%d pattern","%d patterns",se.length),se.length)}),(0,Bo.jsxs)("div",{className:"kb-patterns-filter-wrapper-sort-by",children:[(0,Bo.jsx)("span",{className:"kb-pattern-filter-label",children:"Sort by:"}),(0,Bo.jsx)(Ea,{selectedItems:G})]})]}),"design"===g&&!C&&(0,Bo.jsxs)("div",{className:"kb-patterns-filter-wrapper",children:[(0,Bo.jsx)(No.SearchControl,{className:"kb-pattern-search-control",value:n,placeholder:(0,o.__)("Search Patterns","kadence-blocks"),onChange:e=>j(e)}),(0,Bo.jsx)("span",{className:"kb-pattern-filter-label",children:"Filter by:"}),(0,Bo.jsx)(Ta,{selectedItems:le}),re.length>0&&(0,Bo.jsx)(Na,{label:(0,o.__)("Components","kadence-blocks"),items:re,selectedItems:ie}),(0,Bo.jsx)("span",{className:"kb-patterns-count-message",children:n?(0,o.sprintf)(/* translators: %d: number of patterns. %s: block pattern search query */ /* translators: %d: number of patterns. %s: block pattern search query */ (0,o._n)('%1$d pattern for "%2$s"','%1$d patterns for "%2$s"',se.length),se.length,n):(0,o.sprintf)(/* translators: %d: number of patterns. */ /* translators: %d: number of patterns. */ (0,o._n)("%d pattern","%d patterns",se.length),se.length)}),(0,Bo.jsxs)("div",{className:"kb-patterns-filter-wrapper-sort-by",children:[(0,Bo.jsx)("span",{className:"kb-pattern-filter-label",children:"Sort by:"}),(0,Bo.jsx)(Ea,{selectedItems:G})]})]}),ue&&!C&&(0,Bo.jsx)(ma,{selectedCategory:r,blockPatterns:se,patternsHTML:t,onClickPattern:ne,showTitlesAsTooltip:!1,customStyles:ce,customShadowStyles:de,breakpointCols:i,previewMode:c,selectedStyle:l,rootScroll:R}),!ue&&!C&&J(u)&&(0,Bo.jsx)("div",{className:"kb-patterns-filter-wrapper",children:(0,o.__)("No patterns were found based on the selected filters.","kadence-blocks")})]})})},{localStorage:Ra}=window;function Ba({type:e}){return(0,Bo.jsxs)(No.__experimentalHeading,{level:2,lineHeight:"48px",className:"kb-patterns-banner-notice kb-page-notice-above",children:[(0,Bo.jsx)(No.Spinner,{}),"processing"===e?(0,o.__)("Generating AI Content.","kadence-blocks"):(0,o.__)("Content still generating, some pages will not have AI Content.","kadence-blocks")]})}function Da({launchWizard:e}){const t=window?.kadence_blocks_params?.isAuthorized,n=window?.kadence_blocks_params?.proData?.api_key?kadence_blocks_params.proData.api_key:"",a=window?.kadence_blocks_params?.homeLink?kadence_blocks_params.homeLink:"";return(0,Bo.jsxs)("div",{className:"kb-patterns-banner-generate-notice",children:[(0,Bo.jsx)(No.Icon,{className:"kadence-generate-icons",icon:r.aiIcon}),(0,Bo.jsx)(No.__experimentalHeading,{level:2,lineHeight:"1.2",className:"kb-patterns-heading-notice",children:(0,o.__)("Drop in professionally designed pages with AI Generated Content","kadence-blocks")}),!t&&(0,Bo.jsx)(No.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:r.aiIcon,text:(0,o.__)("Activate Kadence AI","kadence-blocks"),target:a?"_blank":"",disabled:!a,href:a||""}),t&&!n&&(0,Bo.jsx)(Bo.Fragment,{children:(0,Bo.jsx)(No.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:r.aiIcon,text:(0,o.__)("Activate Kadence AI","kadence-blocks"),target:a?"_blank":"",disabled:!a,href:a||""})}),t&&n&&(0,Bo.jsx)(No.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:r.aiIcon,text:(0,o.__)("Generate Content AI Content","kadence-blocks"),onClick:()=>{e()}})]})}const Fa=function({pages:e,filterValue:t,selectedCategory:n,selectedPageStyles:r,selectedStyle:a="light",breakpointCols:l,imageCollection:i,contextTab:s,useImageReplace:c,onSelect:d,launchWizard:u,setSearch:p}){const g=(0,Ho.useDebounce)(Uo.speak,500),[m,h]=(0,Ao.useState)(),b=window?.kadence_blocks_params?.isAuthorized,f=!!window?.kadence_blocks_params?.isAIDisabled,v=window?.kadence_blocks_params?.proData?.api_key?kadence_blocks_params.proData.api_key:"",{getAllContext:y,hasAllPageContext:k,isContextRunning:x}=(0,Eo.useSelect)(e=>({getAllContext:()=>e("kadence/library").getAllContext(),hasAllPageContext:()=>e("kadence/library").hasAllPageContext(),isContextRunning:t=>e("kadence/library").isContextRunning(t)}),[]),w=(0,Ao.useMemo)(()=>{const t="true"!==kadence_blocks_params.pro||"true"!==kadence_blocks_params.creativeKit,n=[];let o=0;return Object.keys(e).map(function(r,a){const l=[];if(11===o&&(o=0),l.title=e[r].name,l.name=e[r].name,l.description=e[r].description,l.image=e[r].image,l.imageWidth=e[r].imageW,l.imageHeight=e[r].imageH,l.id=e[r].id,l.slug=e[r].slug,l.pageStyles=e[r].page_styles?Object.values(e[r].page_styles):[],l.categories=e[r].categories?Object.keys(e[r].categories):[],l.contexts=e[r].contexts?Object.keys(e[r].contexts):[],l.keywords=e[r].keywords?e[r].keywords:[],l.content=function(e){if(!e)return"";let t="";return Object.keys(e).map(function(n,o){const r=e[n].pattern_style,a=`\x3c!-- wp:kadence/column {"borderWidth":["","","",""],"uniqueID":"_f8d4f6-${n}","borderStyle":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}],"className":"kb-pattern-preview-${r}"} --\x3e<div class="wp-block-kadence-column kadence-column_f8d4f6-${n} kb-pattern-preview-${r}"><div class="kt-inside-inner-col">`+e[n].pattern_content+"</div></div>\x3c!-- /wp:kadence/column --\x3e";t=t.concat(a)}),t}(e[r].rows),e[r]?.rows?.[0]?.pattern_html){const t=y();l.html=function(e,t,n,o,r){if(!e)return"";let a=[],l="",i=0;return a=Object.keys(e).map(function(a,l){i>11&&(i=0);let s="";const c=e?.[a]?.pattern_category?Object.keys(e[a].pattern_category):[];let d=e[a].pattern_context;return d="contact"===d?"contact-form":d,d="subscribe"===d?"subscribe-form":d,d="pricing"===d?"pricing-table":d,s=_r(e[a].pattern_html),"all"===t&&n&&(s=br(s,n,c,e[a].pattern_id,i)),"context"===o&&(s=vr(s,r,c,d,0,!0)),i++,s}),Object.keys(a).map(function(e,t){l=l.concat(a[e])}),l}(e[r].rows,c,i,s,t)}else e[r]?.rows_html&&(l.html=_r(e[r].rows_html));l.rows=e[r].rows,l.pro=e[r].pro,l.locked=!(!e[r].pro||t),l.proRender=!1,l.viewportWidth=1200,o++,n.push(l)}),n},[e,i,c,s]),_=(0,Ao.useMemo)(()=>{let e=w;return"context"!==s||b&&v?(!t&&n&&"all"!==n&&(e=e.filter(e=>e.categories?.includes(n))),r&&r.length&&(e=e.filter(e=>e.pageStyles.find(e=>r.includes(e)))),ur(e,t)):[]},[t,n,r,e,c,i]);(0,Ao.useEffect)(()=>{if(!t)return;const e=_.length,n=(0,o.sprintf)(/* translators: %d: number of results. */ /* translators: %d: number of results. */ (0,o._n)("%d result found.","%d results found.",e),e);g(n)},[t,g]);const S=(0,Ao.useMemo)(()=>{let e="",t="",n="";return kadence_blocks_params.isKadenceT||(t=`\n\t\t\t\t--global-palette1:${kadence_blocks_params.global_colors["--global-palette1"]};\n\t\t\t\t--global-palette2:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t\t--global-palette3:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t\t--global-palette4:${kadence_blocks_params.global_colors["--global-palette4"]};\n\t\t\t\t--global-palette5:${kadence_blocks_params.global_colors["--global-palette5"]};\n\t\t\t\t--global-palette6:${kadence_blocks_params.global_colors["--global-palette6"]};\n\t\t\t\t--global-palette7:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t\t--global-palette8:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t\t--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t`,n=":root .has-theme-palette-1-color { color: var(--global-palette1); }\n\t\t\t:root .has-theme-palette-2-color { color: var(--global-palette2); }\n\t\t\t:root .has-theme-palette-3-color { color: var(--global-palette3); }\n\t\t\t:root .has-theme-palette-4-color { color: var(--global-palette4); }\n\t\t\t:root .has-theme-palette-5-color { color: var(--global-palette5); }\n\t\t\t:root .has-theme-palette-6-color { color: var(--global-palette6); }\n\t\t\t:root .has-theme-palette-7-color { color: var(--global-palette7); }\n\t\t\t:root .has-theme-palette-8-color { color: var(--global-palette8); }\n\t\t\t:root .has-theme-palette-9-color { color: var(--global-palette9); }\n\t\t\t:root .has-theme-palette1-color { color: var(--global-palette1); }\n\t\t\t:root .has-theme-palette2-color { color: var(--global-palette2); }\n\t\t\t:root .has-theme-palette3-color { color: var(--global-palette3); }\n\t\t\t:root .has-theme-palette4-color { color: var(--global-palette4); }\n\t\t\t:root .has-theme-palette5-color { color: var(--global-palette5); }\n\t\t\t:root .has-theme-palette6-color { color: var(--global-palette6); }\n\t\t\t:root .has-theme-palette7-color { color: var(--global-palette7); }\n\t\t\t:root .has-theme-palette8-color { color: var(--global-palette8); }\n\t\t\t:root .has-theme-palette9-color { color: var(--global-palette9); }\n\t\t\t:root .has-theme-palette1-background-color { background-color: var(--global-palette1); }\n\t\t\t:root .has-theme-palette2-background-color { background-color: var(--global-palette2); }\n\t\t\t:root .has-theme-palette3-background-color { background-color: var(--global-palette3); }\n\t\t\t:root .has-theme-palette4-background-color { background-color: var(--global-palette4); }\n\t\t\t:root .has-theme-palette5-background-color { background-color: var(--global-palette5); }\n\t\t\t:root .has-theme-palette6-background-color { background-color: var(--global-palette6); }\n\t\t\t:root .has-theme-palette7-background-color { background-color: var(--global-palette7); }\n\t\t\t:root .has-theme-palette8-background-color { background-color: var(--global-palette8); }\n\t\t\t:root .has-theme-palette9-background-color { background-color: var(--global-palette9); }"),e=[{css:`:root {margin-block:0;}body{--global-content-edge-padding: 3rem;padding:0px !important;--global-vw:1200px !important; ${t}}.single-iframe-content .kb-pattern-delete-block {display: none;}${n}`}],e},[a]),j=(0,Ao.useMemo)(()=>{let e="",t="",n="",o="";return kadence_blocks_params.isKadenceT||(t=`\n\t\t\t\t--global-palette1:${kadence_blocks_params.global_colors["--global-palette1"]};\n\t\t\t\t--global-palette2:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t\t--global-palette3:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t\t--global-palette4:${kadence_blocks_params.global_colors["--global-palette4"]};\n\t\t\t\t--global-palette5:${kadence_blocks_params.global_colors["--global-palette5"]};\n\t\t\t\t--global-palette6:${kadence_blocks_params.global_colors["--global-palette6"]};\n\t\t\t\t--global-palette7:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t\t--global-palette8:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t\t--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]};`,n=".single-iframe-content .has-theme-palette-1-color { color: var(--global-palette1); }\n\t\t\t.single-iframe-content .has-theme-palette-2-color { color: var(--global-palette2); }\n\t\t\t.single-iframe-content .has-theme-palette-3-color { color: var(--global-palette3); }\n\t\t\t.single-iframe-content .has-theme-palette-4-color { color: var(--global-palette4); }\n\t\t\t.single-iframe-content .has-theme-palette-5-color { color: var(--global-palette5); }\n\t\t\t.single-iframe-content .has-theme-palette-6-color { color: var(--global-palette6); }\n\t\t\t.single-iframe-content .has-theme-palette-7-color { color: var(--global-palette7); }\n\t\t\t.single-iframe-content .has-theme-palette-8-color { color: var(--global-palette8); }\n\t\t\t.single-iframe-content .has-theme-palette-9-color { color: var(--global-palette9); }\n\t\t\t.single-iframe-content .has-theme-palette1-color { color: var(--global-palette1); }\n\t\t\t.single-iframe-content .has-theme-palette2-color { color: var(--global-palette2); }\n\t\t\t.single-iframe-content .has-theme-palette3-color { color: var(--global-palette3); }\n\t\t\t.single-iframe-content .has-theme-palette4-color { color: var(--global-palette4); }\n\t\t\t.single-iframe-content .has-theme-palette5-color { color: var(--global-palette5); }\n\t\t\t.single-iframe-content .has-theme-palette6-color { color: var(--global-palette6); }\n\t\t\t.single-iframe-content .has-theme-palette7-color { color: var(--global-palette7); }\n\t\t\t.single-iframe-content .has-theme-palette8-color { color: var(--global-palette8); }\n\t\t\t.single-iframe-content .has-theme-palette9-color { color: var(--global-palette9); }\n\t\t\t.single-iframe-content .has-theme-palette1-background-color { background-color: var(--global-palette1); }\n\t\t\t.single-iframe-content .has-theme-palette2-background-color { background-color: var(--global-palette2); }\n\t\t\t.single-iframe-content .has-theme-palette3-background-color { background-color: var(--global-palette3); }\n\t\t\t.single-iframe-content .has-theme-palette4-background-color { background-color: var(--global-palette4); }\n\t\t\t.single-iframe-content .has-theme-palette5-background-color { background-color: var(--global-palette5); }\n\t\t\t.single-iframe-content .has-theme-palette6-background-color { background-color: var(--global-palette6); }\n\t\t\t.single-iframe-content .has-theme-palette7-background-color { background-color: var(--global-palette7); }\n\t\t\t.single-iframe-content .has-theme-palette8-background-color { background-color: var(--global-palette8); }\n\t\t\t.single-iframe-content .has-theme-palette9-background-color { background-color: var(--global-palette9); }"),"dark"===a&&(o=`.single-iframe-content {--global-palette1:${kadence_blocks_params.global_colors["--global-palette1"]};\n\t\t\t--global-palette2:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t--global-palette3:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette4:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t--global-palette5:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette6:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette7:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t--global-palette8:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t--global-palette9:${kadence_blocks_params.global_colors["--global-palette4"]};\n\t\t\t--wp--preset--color--theme-palette-1: var(--global-palette1);\n\t\t\t--wp--preset--color--theme-palette-2: var(--global-palette2);\n\t\t\t--wp--preset--color--theme-palette-3: var(--global-palette3);\n\t\t\t--wp--preset--color--theme-palette-4: var(--global-palette4);\n\t\t\t--wp--preset--color--theme-palette-5: var(--global-palette5);\n\t\t\t--wp--preset--color--theme-palette-6: var(--global-palette6);\n\t\t\t--wp--preset--color--theme-palette-7: var(--global-palette7);\n\t\t\t--wp--preset--color--theme-palette-8: var(--global-palette8);\n\t\t\t--wp--preset--color--theme-palette-9: var(--global-palette9);\n\t\t\t--global-content-edge-padding: 3rem;\n\t\t\tpadding:0px !important;}\n\t\t\t.single-iframe-content .kb-blocks-highlight-page-section { --global-palette1:${kadence_blocks_params.global_colors["--global-palette1"]};\n\t\t\t--global-palette2:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t--global-palette3:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t--global-palette4:${kadence_blocks_params.global_colors["--global-palette4"]};\n\t\t\t--global-palette5:${kadence_blocks_params.global_colors["--global-palette5"]};\n\t\t\t--global-palette6:${kadence_blocks_params.global_colors["--global-palette6"]};\n\t\t\t--global-palette7:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette8:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--wp--preset--color--theme-palette-1: var(--global-palette1);\n\t\t\t--wp--preset--color--theme-palette-2: var(--global-palette2);\n\t\t\t--wp--preset--color--theme-palette-3: var(--global-palette3);\n\t\t\t--wp--preset--color--theme-palette-4: var(--global-palette4);\n\t\t\t--wp--preset--color--theme-palette-5: var(--global-palette5);\n\t\t\t--wp--preset--color--theme-palette-6: var(--global-palette6);\n\t\t\t--wp--preset--color--theme-palette-7: var(--global-palette7);\n\t\t\t--wp--preset--color--theme-palette-8: var(--global-palette8);\n\t\t\t--wp--preset--color--theme-palette-9: var(--global-palette9);\n\t\t}.kb-btns-outer-wrap {--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]}} .kb-btn-custom-colors .kb-btns-outer-wrap {--global-palette9:${kadence_blocks_params.global_colors["--global-palette3"]}} img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Logo-ploaceholder"] {filter: invert(1);}img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/12/logo-placeholder"] {filter: invert(1);}.wp-block-kadence-tabs.kb-pattern-active-tab-highlight .kt-tabs-title-list li.kt-tab-title-active .kt-tab-title{ color:${kadence_blocks_params.global_colors["--global-palette9"]} !important} .kb-pattern-light-color{--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]}}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette4"]}!important}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette4"]}!important}.kb-divider-static.kb-divider-bottom-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette5"]}!important}.kb-divider-static.kb-divider-top-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette5"]}!important}`),e=[{css:`.single-iframe-content{--global-content-edge-padding: 3rem;padding:0px !important;--global-vw:1200px !important; ${t}}.pattern-shadow-wrap > .single-iframe-content > .kb-row-layout-wrap, .pattern-shadow-wrap > .single-iframe-content > .kb-blocks-highlight-page-section { margin-top:-1px;}.pattern-shadow-wrap .single-iframe-content {--global-content-width:1200px }.single-iframe-content .kb-pattern-delete-block {display: none;}${n}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-divider-bottom-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette8"]}!important}.kb-divider-static.kb-divider-top-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette8"]}!important}${o}`}],e},[a]),C=!!_?.length,I=k(),O=x("all");return f&&"context"===s?(0,Bo.jsx)("div",{className:"kb-ai-dropdown-container-content-wrap activation-needed",children:(0,Bo.jsx)("p",{className:"kb-disabled-authorize-note",children:(0,o.__)("Kadence AI is disabled by site admin.","kadence-blocks")})}):(0,Bo.jsx)("div",{ref:h,className:"block-editor-block-patterns-explorer__wrap",children:(0,Bo.jsxs)("div",{className:"block-editor-block-patterns-explorer__list",children:["context"===s&&b&&v&&!I&&(0,Bo.jsx)(Ba,{type:"mising-context"}),"context"===s&&(!b||!v)&&(0,Bo.jsx)(Da,{launchWizard:u}),"context"===s&&O&&!I&&(0,Bo.jsx)(Ba,{type:"processing"}),(0,Bo.jsxs)("div",{className:"kb-patterns-filter-wrapper kb-page-list-search",children:[(0,Bo.jsx)(No.SearchControl,{className:"kb-pattern-search-control",value:t,placeholder:(0,o.__)("Search Pages","kadence-blocks"),onChange:e=>p(e)}),C&&(0,Bo.jsx)("span",{className:"kb-patterns-count-message",children:t?(0,o.sprintf)(/* translators: %d: number of pages. %s: block pattern search query */ /* translators: %d: number of pages. %s: block pattern search query */ (0,o._n)('%1$d page found for "%2$s"','%1$d pages for "%2$s"',_.length),_.length,t):(0,o.sprintf)(/* translators: %d: number of pages. */ /* translators: %d: number of pages. */ (0,o._n)("%d page available","%d pages",_.length),_.length)})]}),C&&(0,Bo.jsx)(ma,{selectedCategory:n,selectedPageStyles:r,blockPatterns:_,onClickPattern:e=>{const t={id:e.id,slug:e.slug,type:"page",style:"light"},n=y();t.content=function(e,t,n,o,r,a){if(!e)return"";let l=[],i="",s=0;return l=Object.keys(e).map(function(l,i){s>11&&(s=0);const c=e[l].pattern_style;let d=e[l].pattern_content;d=kr(d),"dark"===a?"light"===c?d=hr(d,"dark"):"highlight"===c&&(d=hr(d,"highlight")):"dark"===c?d=hr(d,"dark"):"highlight"===c&&(d=hr(d,"highlight"));const u=e?.[l]?.pattern_category?Object.keys(e[l].pattern_category):[];let p=e[l].pattern_context;return p="contact"===p?"contact-form":p,p="subscribe"===p?"subscribe-form":p,p="pricing"===p?"pricing-table":p,"all"===t&&n&&(d=br(d,n,u,e[l].pattern_id,s)),"context"===o&&(d=vr(d,r,u,p)),s++,d}),Object.keys(l).map(function(e,t){i=i.concat(l[e])}),i}(e.rows,c,i,s,n,a),d(t)},showTitlesAsTooltip:!1,customStyles:S,customShadowStyles:j,breakpointCols:l,patternType:"page",rootScroll:m})]})})},za=(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Bo.jsx)(Ro.Path,{fillRule:"evenodd",d:"M19.75 11H21V8.667L19.875 4H4.125L3 8.667V11h1.25v8.75h15.5V11zm-1.5 0H5.75v7.25H10V13h4v5.25h4.25V11zm-5.5-5.5h2.067l.486 3.24.028.76H12.75v-4zm-3.567 0h2.067v4H8.669l.028-.76.486-3.24zm7.615 3.1l-.464-3.1h2.36l.806 3.345V9.5h-2.668l-.034-.9zM7.666 5.5h-2.36L4.5 8.845V9.5h2.668l.034-.9.464-3.1z",clipRule:"evenodd"})}),Ha=(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Bo.jsx)(Ro.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})}),$a=(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Bo.jsx)(Ro.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})}),Va=n.p+"images/business-bg.9ea001c0.jpg",Wa=n.p+"images/education-bg.0ddd9432.jpg",Ua=n.p+"images/spa-bg.daf6c29b.jpg",Za=n.p+"images/taxes-bg.fe6cba5c.jpg",Ga=[{value:"NEUTRAL",label:(0,o.__)("Neutral","kadence-blocks")},{value:"PROFESSIONAL",label:(0,o.__)("Professional","kadence-blocks")},{value:"FRIENDLY",label:(0,o.__)("Friendly","kadence-blocks")},{value:"INFORMATIVE",label:(0,o.__)("Informative","kadence-blocks")},{value:"ENGAGING",label:(0,o.__)("Engaging","kadence-blocks")},{value:"TRUSTWORTHY",label:(0,o.__)("Trustworthy","kadence-blocks")},{value:"CONVERSATIONAL",label:(0,o.__)("Conversational","kadence-blocks")},{value:"PERSUASIVE",label:(0,o.__)("Persuasive","kadence-blocks")},{value:"UPBEAT",label:(0,o.__)("Upbeat","kadence-blocks")},{value:"FUNNY",label:(0,o.__)("Funny","kadence-blocks")},{value:"INSPIRATIONAL",label:(0,o.__)("Inspirational","kadence-blocks")}],qa="INDIVIDUAL",Ka=[{value:"COMPANY",label:(0,o.__)("A Company","kadence-blocks")},{value:qa,label:(0,o.__)("An Individual","kadence-blocks")},{value:"ORGANIZATION",label:(0,o.__)("An Organization","kadence-blocks")}],Ja=[{value:"hr-HR",label:(0,o.__)("Croatian (Croatia)","kadence-blocks")},{value:"cs-CZ",label:(0,o.__)("Czech","kadence-blocks")},{value:"da-DK",label:(0,o.__)("Danish (Denmark)","kadence-blocks")},{value:"nl-BE",label:(0,o.__)("Dutch (Belgium)","kadence-blocks")},{value:"nl-N",label:(0,o.__)("Dutch (Netherlands)","kadence-blocks")},{value:"en-AU",label:(0,o.__)("English (Australia)","kadence-blocks")},{value:"en-CA",label:(0,o.__)("English (Canada)","kadence-blocks")},{value:"en-IN",label:(0,o.__)("English (India)","kadence-blocks")},{value:"en-NZ",label:(0,o.__)("English (New Zealand)","kadence-blocks")},{value:"en-GB",label:(0,o.__)("English (UK)","kadence-blocks")},{value:"en-US",label:(0,o.__)("English (US)","kadence-blocks")},{value:"et-EE",label:(0,o.__)("Estonian (Estonia)","kadence-blocks")},{value:"fi-FI",label:(0,o.__)("Finnish","kadence-blocks")},{value:"fr-BE",label:(0,o.__)("French (Belgium)","kadence-blocks")},{value:"fr-CA",label:(0,o.__)("French (Canada)","kadence-blocks")},{value:"fr-FR",label:(0,o.__)("French (France)","kadence-blocks")},{value:"de-AT",label:(0,o.__)("German (Austria)","kadence-blocks")},{value:"de-BE",label:(0,o.__)("German (Belgium)","kadence-blocks")},{value:"de-DE",label:(0,o.__)("German (Germany)","kadence-blocks")},{value:"de-CH",label:(0,o.__)("German (Switzerland)","kadence-blocks")},{value:"hu-HU",label:(0,o.__)("Hungarian","kadence-blocks")},{value:"it-IT",label:(0,o.__)("Italian (Italy)","kadence-blocks")},{value:"pt-BR",label:(0,o.__)("Portuguese (Brazil)","kadence-blocks")},{value:"pt-PT",label:(0,o.__)("Portuguese (Portugal)","kadence-blocks")},{value:"pl-PL",label:(0,o.__)("Polish (Poland)","kadence-blocks")},{value:"sk-SK",label:(0,o.__)("Slovak (Slovakia)","kadence-blocks")},{value:"es-AR",label:(0,o.__)("Spanish (Argentina)","kadence-blocks")},{value:"es-CO",label:(0,o.__)("Spanish (Colombia)","kadence-blocks")},{value:"es-419",label:(0,o.__)("Spanish (Latin America)","kadence-blocks")},{value:"es-MX",label:(0,o.__)("Spanish (Mexico)","kadence-blocks")},{value:"es-ES",label:(0,o.__)("Spanish (Spain)","kadence-blocks")},{value:"sv-SE",label:(0,o.__)("Swedish (Sweden)","kadence-blocks")},{value:"tr-TR",label:(0,o.__)("Turkish","kadence-blocks")}],Ya={COMPANY:{label:(0,o.__)("Company Name","kadence-blocks"),placeholder:(0,o.__)("Your Company","kadence-blocks")},INDIVIDUAL:{label:(0,o.__)("Name","kadence-blocks"),placeholder:(0,o.__)("Your Name","kadence-blocks")},ORGANIZATION:{label:(0,o.__)("Organization Name","kadence-blocks"),placeholder:(0,o.__)("Your Organization","kadence-blocks")}},Xa=[{label:(0,o.__)("I want to sell products","kadence-starter-templates"),description:(0,o.__)("Get example woocommerce content and see layouts that work better for online stores.","kadence-starter-templates"),icon:"cart",value:"ecommerce"},{label:(0,o.__)("I want to receive donations","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for non-profits.","kadence-starter-templates"),icon:"share-alt",value:"donations"},{label:(0,o.__)("I want to display events","kadence-starter-templates"),description:(0,o.__)("Get example events content and see layouts that work better for showcasing events.","kadence-starter-templates"),icon:"calendar-alt",value:"events"},{label:(0,o.__)("I want to offer courses","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for learning management.","kadence-starter-templates"),icon:"welcome-learn-more",value:"courses"},{label:(0,o.__)("I want to sell tickets to events","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for ticket sales.","kadence-starter-templates"),icon:"tickets-alt",value:"tickets"},{label:(0,o.__)("I want to generate leads","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for getting new leads.","kadence-starter-templates"),icon:"chart-bar",value:"landing"},{label:(0,o.__)("I want to display my services","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for service sites.","kadence-starter-templates"),icon:"businessperson",value:"services"},{label:(0,o.__)("I want to offer a membership","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for membership sites.","kadence-starter-templates"),icon:"money",value:"membership"},{label:(0,o.__)("I want to write blog posts","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for bloggers.","kadence-starter-templates"),icon:"welcome-write-blog",value:"blogging"},{label:(0,o.__)("I want to book appointments","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for bookings.","kadence-starter-templates"),icon:"edit-page",value:"booking"},{label:(0,o.__)("I want to display my photography","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for photographers.","kadence-starter-templates"),icon:"camera",value:"photography"},{label:(0,o.__)("I want to promote my podcast","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for podcasters.","kadence-starter-templates"),icon:"microphone",value:"podcasting"}],Qa="Business Address",el="Service Area",tl="Online Only",nl=[{icon:za,text:(0,o.__)("Business Address","kadence-blocks"),value:Qa,help:(0,o.__)("E.g.: 1234 Street #1, Chicago, IL 60076, USA","kadence-blocks"),placeholder:(0,o.__)("Street Adress, City, State, Zipcode, Country","kadence-blocks")},{icon:Ha,text:(0,o.__)("Service Area","kadence-blocks"),value:el,help:(0,o.__)("E.g.: Chicago, USA","kadence-blocks"),placeholder:(0,o.__)("District, City, State, Zipcode, Country","kadence-blocks")},{icon:$a,text:(0,o.__)("Online Only","kadence-blocks"),value:tl,help:"",placeholder:""}],ol={initial:{color:"#757575",message:(0,o.__)("The more detail you add, the better.","kadence-blocks")},weak:{color:"#DF3416",message:(0,o.__)("For better, more accurate copy enter a bit more content.","kadence-blocks")},medium:{color:"#B35F00",message:(0,o.__)("This is a great start. Try adding a bit more information to your description.","kadence-blocks")},strong:{color:"#1B8F6D",message:(0,o.__)("Excellent work! Want to add more? Keep going! More info means better content.","kadence-blocks")},enough:{color:"#1B8F6D",message:(0,o.__)("Excellent work! You have added enough information.","kadence-blocks")},less:{color:"#B35F00",message:(0,o.__)("ok, you've added a lot of information. Try removing some to get better results.","kadence-blocks")},muchLess:{color:"#DF3416",message:(0,o.__)("You've added too much information. Remove some to move forward.","kadence-blocks")}},rl=[Ua,Va,Za,Wa],al={INDIVIDUAL:["What is your core offering or skill?","Tell your story. Be sure to feature your expertise and standout skills.","Describe your process, services, or products you offer.","What makes you stand out? Highlight your competitive edge and the value you bring?","Do you have work and recognitions to highlight?","What is the action you want visitors to take?"],COMPANY:["What is your core offering or business purpose?","What products and services do your offer?","Describe your team and/or brand story.","Highlight relevant numbers or statistics that support your value or impact.","What makes you stand out in your industry? Highlight your competitive edge and the value you bring.","List any notable partnerships.","What is the action you want visitors to take?"],ORGANIZATION:["What is your organization's purpose? How does your history and mission support that?","Describe your team and/or brand story.","Highlight relevant numbers or statistics that support your value or impact.","Do you offer any services or products?","List any notable partnerships.","What is the action you want visitors to take?"]},ll="loading",il="notFound",sl="error",cl="success",dl="allAdded",ul={isComplete:!1,firstTime:!0,isSubmitted:!1,context:"kadence",currentPageIndex:0,companyName:"",entityType:qa,locationType:"",locationInput:"",location:"",industry:"",missionStatement:"",keywords:[],tone:"NEUTRAL",privacyAgreement:!1,photoLibrary:"aiGenerated",photoCollectionChanged:!1,featuredImages:[],backgroundImages:[],customCollections:[{label:(0,o.__)("My Images","kadence-blocks"),value:"my-images",galleries:[{name:"featured",isLocal:!0,images:[]},{name:"background",isLocal:!0,images:[]}]}],saving:!1,saveError:!1,verticals:[],suggestedKeywords:[],suggestedKeywordsState:"",imageSearchQuery:"",lang:"",goals:[]},pl=(0,Ao.createContext)();function gl(e,t){switch(t.type){case"SET_CURRENT_PAGE_INDEX":return{...e,currentPageIndex:t.payload};case"SET_COMPANY_NAME":return{...e,companyName:t.payload};case"SET_LANG":return{...e,lang:t.payload};case"SET_SITE_GOALS":return{...e,goals:t.payload};case"SET_ENTITY_TYPE":return{...e,entityType:t.payload};case"SET_LOCATION":return{...e,location:t.payload};case"SET_LOCATION_INPUT":return{...e,locationInput:t.payload};case"SET_LOCATION_TYPE":return{...e,locationType:t.payload};case"SET_INDUSTRY":return{...e,industry:t.payload};case"SET_MISSION_STATEMENT":return{...e,missionStatement:t.payload};case"SET_KEYWORDS":return{...e,keywords:t.payload};case"SET_TONE":return{...e,tone:t.payload};case"SET_PRIVACY_AGREEMENT":return{...e,privacyAgreement:!e.privacyAgreement};case"SET_PHOTO_LIBRARY":return{...e,photoLibrary:t.payload};case"SET_PHOTO_LIBRARY_CHANGED":return{...e,photoCollectionChanged:t.payload};case"SET_FEATURED_IMAGES":return{...e,featuredImages:t.payload};case"SET_BACKGROUND_IMAGES":return{...e,backgroundImages:t.payload};case"SET_CUSTOM_COLLECTIONS":return{...e,customCollections:t.payload};case"SET_FEATURED_PREVIEW":return{...e,featuredImage:t.payload};case"SET_BACKGROUND_PREVIEW":return{...e,backgroundImage:t.payload};case"SET_SAVING":return{...e,saving:t.payload};case"SET_IMAGE_SEARCH_QUERY":return{...e,imageSearchQuery:t.payload};case"SET_SUGGESTED_KEYWORDS":return{...e,suggestedKeywords:t.payload};case"SET_SUGGESTED_KEYWORDS_STATE":return{...e,suggestedKeywordsState:t.payload};default:return e}}function ml(e){return{...ul,...e}}function hl(e){const[t,n]=(0,Ao.useReducer)(gl,e.value,ml),o={state:t,dispatch:n};return(0,Bo.jsx)(pl.Provider,{value:o,children:e.children})}function bl(){const e=(0,Ao.useContext)(pl);if(void 0===e)throw new Error("useKadenceAi must be used with KadenceAiProvider");return e}function fl(e){let t;const n=`algolia-client-js-${e.key}`;function o(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function r(){return JSON.parse(o().getItem(n)||"{}")}function a(e){o().setItem(n,JSON.stringify(e))}return{get:(t,n,o={miss:()=>Promise.resolve()})=>Promise.resolve().then(()=>(function(){const t=e.timeToLive?1e3*e.timeToLive:null,n=r(),o=Object.fromEntries(Object.entries(n).filter(([,e])=>void 0!==e.timestamp));a(o),t&&a(Object.fromEntries(Object.entries(o).filter(([,e])=>{const n=(new Date).getTime();return!(e.timestamp+t<n)})))}(),r()[JSON.stringify(t)])).then(e=>Promise.all([e?e.value:n(),void 0!==e])).then(([e,t])=>Promise.all([e,t||o.miss(e)])).then(([e])=>e),set:(e,t)=>Promise.resolve().then(()=>{const a=r();return a[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},o().setItem(n,JSON.stringify(a)),t}),delete:e=>Promise.resolve().then(()=>{const t=r();delete t[JSON.stringify(e)],o().setItem(n,JSON.stringify(t))}),clear:()=>Promise.resolve().then(()=>{o().removeItem(n)})}}function vl(e){const t=[...e.caches],n=t.shift();return void 0===n?{get:(e,t,n={miss:()=>Promise.resolve()})=>t().then(e=>Promise.all([e,n.miss(e)])).then(([e])=>e),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(e,o,r={miss:()=>Promise.resolve()})=>n.get(e,o,r).catch(()=>vl({caches:t}).get(e,o,r)),set:(e,o)=>n.set(e,o).catch(()=>vl({caches:t}).set(e,o)),delete:e=>n.delete(e).catch(()=>vl({caches:t}).delete(e)),clear:()=>n.clear().catch(()=>vl({caches:t}).clear())}}function yl(e={serializable:!0}){let t={};return{get(n,o,r={miss:()=>Promise.resolve()}){const a=JSON.stringify(n);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);const l=o();return l.then(e=>r.miss(e)).then(()=>l)},set:(n,o)=>(t[JSON.stringify(n)]=e.serializable?JSON.stringify(o):o,Promise.resolve(o)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}function kl({algoliaAgents:e,client:t,version:n}){const o=function(e){const t={value:`Algolia for JavaScript (${e})`,add(e){const n=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return-1===t.value.indexOf(n)&&(t.value=`${t.value}${n}`),t}};return t}(n).add({segment:t,version:n});return e.forEach(e=>o.add(e)),o}var xl=12e4;function wl(e,t="up"){const n=Date.now();return{...e,status:t,lastUpdate:n,isUp:function(){return"up"===t||Date.now()-n>xl},isTimedOut:function(){return"timed out"===t&&Date.now()-n<=xl}}}var _l=class extends Error{name="AlgoliaError";constructor(e,t){super(e),t&&(this.name=t)}},Sl=class extends _l{stackTrace;constructor(e,t,n){super(e,n),this.stackTrace=t}},jl=class extends Sl{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support.",e,"RetryError")}},Cl=class extends Sl{status;constructor(e,t,n,o="ApiError"){super(e,n,o),this.status=t}},Il=class extends _l{response;constructor(e,t){super(e,"DeserializationError"),this.response=t}},Ol=class extends Cl{error;constructor(e,t,n,o){super(e,t,o,"DetailedApiError"),this.error=n}};function Ml(e,t,n){const o=(r=n,Object.keys(r).filter(e=>void 0!==r[e]).sort().map(e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(r[e])?r[e].join(","):r[e]).replace(/\+/g,"%20")}`).join("&"));var r;let a=`${e.protocol}://${e.url}${e.port?`:${e.port}`:""}/${"/"===t.charAt(0)?t.substring(1):t}`;return o.length&&(a+=`?${o}`),a}function Pl(e){const t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}var Tl="5.32.0";function El(e){return[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(function(e){const t=e;for(let n=e.length-1;n>0;n--){const o=Math.floor(Math.random()*(n+1)),r=e[n];t[n]=e[o],t[o]=r}return t}([{url:`${e}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-3.algolianet.com`,accept:"readWrite",protocol:"https"}]))}function Al(e,t){var n=void 0;return function(){for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];n&&clearTimeout(n),n=setTimeout(function(){return e.apply(void 0,r)},t)}}function Nl(e){return e!==Object(e)}function Ll(e,t){if(e===t)return!0;if(Nl(e)||Nl(t)||"function"==typeof e||"function"==typeof t)return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=0,o=Object.keys(e);n<o.length;n++){var r=o[n];if(!(r in t))return!1;if(!Ll(e[r],t[r]))return!1}return!0}var Rl=function(){};function Bl(e){var t=e.item,n=e.items,o=void 0===n?[]:n;return{index:t.__autocomplete_indexName,items:[t],positions:[1+o.findIndex(function(e){return e.objectID===t.objectID})],queryID:t.__autocomplete_queryID,algoliaSource:["autocomplete"]}}function Dl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var Fl=["items"],zl=["items"];function Hl(e){return Hl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hl(e)}function $l(e){return function(e){if(Array.isArray(e))return Vl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Vl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vl(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Wl(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ul(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Zl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ul(Object(n),!0).forEach(function(t){Gl(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ul(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gl(e,t,n){return(t=function(e){var t=function(e){if("object"!==Hl(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Hl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Hl(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ql(e){return e.map(function(e){var t=e.items,n=Wl(e,Fl);return Zl(Zl({},n),{},{objectIDs:(null==t?void 0:t.map(function(e){return e.objectID}))||n.objectIDs})})}function Kl(e){var t,n,o,r,a,l=(r=(e.version||"").split(".").map(Number),a=2,n=(t=function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,_x,a,l=[],_n=!0,i=!1;try{if(_x=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;_n=!1}else for(;!(_n=(o=_x.call(n)).done)&&(l.push(o.value),l.length!==t);_n=!0);}catch(e){i=!0,r=e}finally{try{if(!_n&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(i)throw r}}return l}}(r,a)||function(e,t){if(e){if("string"==typeof e)return Dl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dl(e,t):void 0}}(r,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],o=t[1],n>=3||2===n&&o>=4||1===n&&o>=10);function i(t,n,o){if(l&&void 0!==o){var r=o[0].__autocomplete_algoliaCredentials,a={"X-Algolia-Application-Id":r.appId,"X-Algolia-API-Key":r.apiKey};e.apply(void 0,[t].concat($l(n),[{headers:a}]))}else e.apply(void 0,[t].concat($l(n)))}return{init:function(t,n){e("init",{appId:t,apiKey:n})},setAuthenticatedUserToken:function(t){e("setAuthenticatedUserToken",t)},setUserToken:function(t){e("setUserToken",t)},clickedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>0&&i("clickedObjectIDsAfterSearch",ql(t),t[0].items)},clickedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>0&&i("clickedObjectIDs",ql(t),t[0].items)},clickedFilters:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];n.length>0&&e.apply(void 0,["clickedFilters"].concat(n))},convertedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>0&&i("convertedObjectIDsAfterSearch",ql(t),t[0].items)},convertedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>0&&i("convertedObjectIDs",ql(t),t[0].items)},convertedFilters:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];n.length>0&&e.apply(void 0,["convertedFilters"].concat(n))},viewedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>0&&t.reduce(function(e,t){var n=t.items,o=Wl(t,zl);return[].concat($l(e),$l(function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,n=[],o=0;o<e.objectIDs.length;o+=t)n.push(Zl(Zl({},e),{},{objectIDs:e.objectIDs.slice(o,o+t)}));return n}(Zl(Zl({},o),{},{objectIDs:(null==n?void 0:n.map(function(e){return e.objectID}))||o.objectIDs})).map(function(e){return{items:n,payload:e}})))},[]).forEach(function(e){var t=e.items;return i("viewedObjectIDs",[e.payload],t)})},viewedFilters:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];n.length>0&&e.apply(void 0,["viewedFilters"].concat(n))}}}function Jl(e){var t=e.items.reduce(function(e,t){var n;return e[t.__autocomplete_indexName]=(null!==(n=e[t.__autocomplete_indexName])&&void 0!==n?n:[]).concat(t),e},{});return Object.keys(t).map(function(e){return{index:e,items:t[e],algoliaSource:["autocomplete"]}})}function Yl(e){return e.objectID&&e.__autocomplete_indexName&&e.__autocomplete_queryID}function Xl(e){return Xl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xl(e)}function Ql(e){return function(e){if(Array.isArray(e))return ei(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ei(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ei(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ti(Object(n),!0).forEach(function(t){oi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oi(e,t,n){return(t=function(e){var t=function(e){if("object"!==Xl(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Xl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Xl(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ri="2.15.0",ai="https://cdn.jsdelivr.net/npm/search-insights@".concat(ri,"/dist/search-insights.min.js"),li=Al(function(e){var t=e.onItemsChange,n=e.items,o=e.insights,r=e.state;t({insights:o,insightsEvents:Jl({items:n}).map(function(e){return ni({eventName:"Items Viewed"},e)}),state:r})},400);function ii(e){var t=function(e){return ni({onItemsChange:function(e){var t=e.insights,n=e.insightsEvents,o=e.state;t.viewedObjectIDs.apply(t,Ql(n.map(function(e){return ni(ni({},e),{},{algoliaSource:si(e.algoliaSource,o.context)})})))},onSelect:function(e){var t=e.insights,n=e.insightsEvents,o=e.state;t.clickedObjectIDsAfterSearch.apply(t,Ql(n.map(function(e){return ni(ni({},e),{},{algoliaSource:si(e.algoliaSource,o.context)})})))},onActive:Rl,__autocomplete_clickAnalytics:!0},e)}(e),n=t.insightsClient,o=t.insightsInitParams,r=t.onItemsChange,a=t.onSelect,l=t.onActive,i=t.__autocomplete_clickAnalytics,s=n;if(n||"undefined"!=typeof window&&function(e){var t=e.window,n=t.AlgoliaAnalyticsObject||"aa";"string"==typeof n&&(s=t[n]),s||(t.AlgoliaAnalyticsObject=n,t[n]||(t[n]=function(){t[n].queue||(t[n].queue=[]);for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];t[n].queue.push(o)}),t[n].version=ri,s=t[n],function(e){var t="[Autocomplete]: Could not load search-insights.js. Please load it manually following https://alg.li/insights-autocomplete";try{var n=e.document.createElement("script");n.async=!0,n.src=ai,n.onerror=function(){console.error(t)},document.body.appendChild(n)}catch(e){console.error(t)}}(t))}({window}),!s)return{};o&&s("init",ni({partial:!0},o));var c=Kl(s),d={current:[]},u=Al(function(e){var t=e.state;if(t.isOpen){var n=t.collections.reduce(function(e,t){return[].concat(Ql(e),Ql(t.items))},[]).filter(Yl);Ll(d.current.map(function(e){return e.objectID}),n.map(function(e){return e.objectID}))||(d.current=n,n.length>0&&li({onItemsChange:r,items:n,insights:c,state:t}))}},0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(e){var t=e.setContext,n=e.onSelect,o=e.onActive;function r(e){t({algoliaInsightsPlugin:{__algoliaSearchParameters:ni(ni({},i?{clickAnalytics:!0}:{}),e?{userToken:ci(e)}:{}),insights:c}})}s("addAlgoliaAgent","insights-plugin"),r(),s("onUserTokenChange",function(e){r(e)}),s("getUserToken",null,function(e,t){r(t)}),n(function(e){var t=e.item,n=e.state,o=e.event,r=e.source;Yl(t)&&a({state:n,event:o,insights:c,item:t,insightsEvents:[ni({eventName:"Item Selected"},Bl({item:t,items:r.getItems().filter(Yl)}))]})}),o(function(e){var t=e.item,n=e.source,o=e.state,r=e.event;Yl(t)&&l({state:o,event:r,insights:c,item:t,insightsEvents:[ni({eventName:"Item Active"},Bl({item:t,items:n.getItems().filter(Yl)}))]})})},onStateChange:function(e){var t=e.state;u({state:t})},__autocomplete_pluginOptions:e}}function si(){var e,t=arguments.length>1?arguments[1]:void 0;return[].concat(Ql(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]),["autocomplete-internal"],Ql(null!==(e=t.algoliaInsightsPlugin)&&void 0!==e&&e.__automaticInsights?["autocomplete-automatic"]:[]))}function ci(e){return"number"==typeof e?e.toString():e}var di,ui=!0;function pi(e){return pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pi(e)}function gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function mi(e,t,n){return(t=function(e){var t=function(e){if("object"!==pi(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==pi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===pi(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hi(e){return e.reduce(function(e,t){return e.concat(t)},[])}function bi(e){return bi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bi(e)}function fi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function vi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fi(Object(n),!0).forEach(function(t){yi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yi(e,t,n){return(t=function(e){var t=function(e){if("object"!==bi(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==bi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===bi(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ki(e){return 0===e.collections.length?0:e.collections.reduce(function(e,t){return e+t.items.length},0)}var xi=0;function wi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function _i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wi(Object(n),!0).forEach(function(t){Si(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Si(e,t,n){return(t=function(e){var t=function(e){if("object"!==ji(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==ji(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ji(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ji(e){return ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ji(e)}function Ci(e){return Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ci(e)}function Ii(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Oi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Mi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oi(Object(n),!0).forEach(function(t){Pi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pi(e,t,n){return(t=function(e){var t=function(e){if("object"!==Ci(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Ci(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ci(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ti(e,t){var n,o="undefined"!=typeof window?window:{},r=e.plugins||[];return Mi(Mi({debug:!1,openOnFocus:!1,enterKeyHint:void 0,ignoreCompositionEvents:!1,placeholder:"",autoFocus:!1,defaultActiveItemId:null,stallThreshold:300,insights:void 0,environment:o,shouldPanelOpen:function(e){return ki(e.state)>0},reshape:function(e){return e.sources}},e),{},{id:null!==(n=e.id)&&void 0!==n?n:"autocomplete-".concat(xi++),plugins:r,initialState:Mi({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){var n;null===(n=e.onStateChange)||void 0===n||n.call(e,t),r.forEach(function(e){var n;return null===(n=e.onStateChange)||void 0===n?void 0:n.call(e,t)})},onSubmit:function(t){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,t),r.forEach(function(e){var n;return null===(n=e.onSubmit)||void 0===n?void 0:n.call(e,t)})},onReset:function(t){var n;null===(n=e.onReset)||void 0===n||n.call(e,t),r.forEach(function(e){var n;return null===(n=e.onReset)||void 0===n?void 0:n.call(e,t)})},getSources:function(n){return Promise.all([].concat((o=r.map(function(e){return e.getSources}),function(e){if(Array.isArray(e))return Ii(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return Ii(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ii(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[e.getSources]).filter(Boolean).map(function(e){return function(e,t){var n=[];return Promise.resolve(e(t)).then(function(e){return Array.isArray(e),Promise.all(e.filter(function(e){return Boolean(e)}).map(function(e){if(e.sourceId,n.includes(e.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));n.push(e.sourceId);var t={getItemInputValue:function(e){return e.state.query},getItemUrl:function(){},onSelect:function(e){(0,e.setIsOpen)(!1)},onActive:Rl,onResolve:Rl};Object.keys(t).forEach(function(e){t[e].__default=!0});var o=_i(_i({},t),e);return Promise.resolve(o)}))})}(e,n)})).then(function(e){return hi(e)}).then(function(e){return e.map(function(e){return Mi(Mi({},e),{},{onSelect:function(n){e.onSelect(n),t.forEach(function(e){var t;return null===(t=e.onSelect)||void 0===t?void 0:t.call(e,n)})},onActive:function(n){e.onActive(n),t.forEach(function(e){var t;return null===(t=e.onActive)||void 0===t?void 0:t.call(e,n)})},onResolve:function(n){e.onResolve(n),t.forEach(function(e){var t;return null===(t=e.onResolve)||void 0===t?void 0:t.call(e,n)})}})})});var o},navigator:Mi({navigate:function(e){var t=e.itemUrl;o.location.assign(t)},navigateNewTab:function(e){var t=e.itemUrl,n=o.open(t,"_blank","noopener");null==n||n.focus()},navigateNewWindow:function(e){var t=e.itemUrl;o.open(t,"_blank","noopener")}},e.navigator)})}function Ei(e){return Ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ei(e)}function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Ni(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ai(Object(n),!0).forEach(function(t){Li(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Li(e,t,n){return(t=function(e){var t=function(e){if("object"!==Ei(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Ei(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ei(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ri(e){return Ri="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ri(e)}function Bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Di(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bi(Object(n),!0).forEach(function(t){Fi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fi(e,t,n){return(t=function(e){var t=function(e){if("object"!==Ri(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Ri(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ri(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zi(e){return function(e){if(Array.isArray(e))return Hi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Hi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hi(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Hi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function $i(e){return Boolean(e.execute)}function Vi(e){var t=e.reduce(function(e,t){if(!$i(t))return e.push(t),e;var n=t.searchClient,o=t.execute,r=t.requesterId,a=t.requests,l=e.find(function(e){return $i(t)&&$i(e)&&e.searchClient===n&&Boolean(r)&&e.requesterId===r});if(l){var i;(i=l.items).push.apply(i,zi(a))}else{var s={execute:o,requesterId:r,items:a,searchClient:n};e.push(s)}return e},[]),n=t.map(function(e){if(!$i(e))return Promise.resolve(e);var t=e,n=t.execute,o=t.items;return n({searchClient:t.searchClient,requests:o})});return Promise.all(n).then(function(e){return hi(e)})}function Wi(e,t){var n=t;return{then:function(t,o){return Wi(e.then(Gi(t,n,e),Gi(o,n,e)),n)},catch:function(t){return Wi(e.catch(Gi(t,n,e)),n)},finally:function(t){return t&&n.onCancelList.push(t),Wi(e.finally(Gi(t&&function(){return n.onCancelList=[],t()},n,e)),n)},cancel:function(){n.isCanceled=!0;var e=n.onCancelList;n.onCancelList=[],e.forEach(function(e){e()})},isCanceled:function(){return!0===n.isCanceled}}}function Ui(e){return Wi(new Promise(function(t,n){return e(t,n)}),{isCanceled:!1,onCancelList:[]})}function Zi(e){return Wi(e,{isCanceled:!1,onCancelList:[]})}function Gi(e,t,n){return e?function(n){return t.isCanceled?n:e(n)}:n}function qi(e){var t=function(e){var t=e.collections.map(function(e){return e.items.length}).reduce(function(e,t,n){var o=(e[n-1]||0)+t;return e.push(o),e},[]),n=t.reduce(function(t,n){return n<=e.activeItemId?t+1:t},0);return e.collections[n]}(e);if(!t)return null;var n=t.items[function(e){for(var t=e.state,n=e.collection,o=!1,r=0,a=0;!1===o;){var l=t.collections[r];if(l===n){o=!0;break}a+=l.items.length,r++}return t.activeItemId-a}({state:e,collection:t})],o=t.source;return{item:n,itemInputValue:o.getItemInputValue({item:n,state:e}),itemUrl:o.getItemUrl({item:n,state:e}),source:o}}function Ki(e){return Ki="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ki(e)}Ui.resolve=function(e){return Zi(Promise.resolve(e))},Ui.reject=function(e){return Zi(Promise.reject(e))};var Ji=["event","nextState","props","query","refresh","store"];function Yi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Xi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yi(Object(n),!0).forEach(function(t){Qi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Qi(e,t,n){return(t=function(e){var t=function(e){if("object"!==Ki(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Ki(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ki(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var es,ts,ns,os=null,rs=(es=-1,ts=-1,ns=void 0,function(e){var t=++es;return Promise.resolve(e).then(function(e){return ns&&t<ts?ns:(ts=t,ns=e,e)})});function as(e){var t=e.event,n=e.nextState,o=void 0===n?{}:n,r=e.props,a=e.query,l=e.refresh,i=e.store,s=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,Ji);os&&r.environment.clearTimeout(os);var c=s.setCollections,d=s.setIsOpen,u=s.setQuery,p=s.setActiveItemId,g=s.setStatus,m=s.setContext;if(u(a),p(r.defaultActiveItemId),!a&&!1===r.openOnFocus){var h,b=i.getState().collections.map(function(e){return Xi(Xi({},e),{},{items:[]})});g("idle"),c(b),d(null!==(h=o.isOpen)&&void 0!==h?h:r.shouldPanelOpen({state:i.getState()}));var f=Zi(rs(b).then(function(){return Promise.resolve()}));return i.pendingRequests.add(f)}g("loading"),os=r.environment.setTimeout(function(){g("stalled")},r.stallThreshold);var v=Zi(rs(r.getSources(Xi({query:a,refresh:l,state:i.getState()},s)).then(function(e){return Promise.all(e.map(function(e){return Promise.resolve(e.getItems(Xi({query:a,refresh:l,state:i.getState()},s))).then(function(t){return function(e,t,n){if(r=e,Boolean(null==r?void 0:r.execute)){var o="algolia"===e.requesterId?Object.assign.apply(Object,[{}].concat(zi(Object.keys(n.context).map(function(e){var t;return null===(t=n.context[e])||void 0===t?void 0:t.__algoliaSearchParameters})))):{};return Di(Di({},e),{},{requests:e.queries.map(function(n){return{query:"algolia"===e.requesterId?Di(Di({},n),{},{params:Di(Di({},o),n.params)}):n,sourceId:t,transformResponse:e.transformResponse}})})}var r;return{items:e,sourceId:t}}(t,e.sourceId,i.getState())})})).then(Vi).then(function(t){var n,o=t.some(function(e){return t=e.items,!Array.isArray(t)&&Boolean(null==t?void 0:t._automaticInsights);var t});return o&&m({algoliaInsightsPlugin:Xi(Xi({},(null===(n=i.getState().context)||void 0===n?void 0:n.algoliaInsightsPlugin)||{}),{},{__automaticInsights:o})}),function(e,t,n){return t.map(function(t){var o,r=e.filter(function(e){return e.sourceId===t.sourceId}),a=r.map(function(e){return e.items}),l=r[0].transformResponse,i=l?l({results:o=a,hits:o.map(function(e){return e.hits}).filter(Boolean),facetHits:o.map(function(e){var t;return null===(t=e.facetHits)||void 0===t?void 0:t.map(function(e){return{label:e.value,count:e.count,_highlightResult:{label:{value:e.highlighted}}}})}).filter(Boolean)}):a;return t.onResolve({source:t,results:a,items:i,state:n.getState()}),Array.isArray(i),i.every(Boolean),'The `getItems` function from source "'.concat(t.sourceId,'" must return an array of items but returned ').concat(JSON.stringify(void 0),".\n\nDid you forget to return items?\n\nSee: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems"),{source:t,items:i}})}(t,e,i)}).then(function(e){return function(e){var t=e.props,n=e.state,o=e.collections.reduce(function(e,t){return Ni(Ni({},e),{},Li({},t.source.sourceId,Ni(Ni({},t.source),{},{getItems:function(){return hi(t.items)}})))},{}),r=t.plugins.reduce(function(e,t){return t.reshape?t.reshape(e):e},{sourcesBySourceId:o,state:n}).sourcesBySourceId;return hi(t.reshape({sourcesBySourceId:r,sources:Object.values(r),state:n})).filter(Boolean).map(function(e){return{source:e,items:e.getItems()}})}({collections:e,props:r,state:i.getState()})})}))).then(function(e){var n;g("idle"),c(e);var u=r.shouldPanelOpen({state:i.getState()});d(null!==(n=o.isOpen)&&void 0!==n?n:r.openOnFocus&&!a&&u||u);var p=qi(i.getState());if(null!==i.getState().activeItemId&&p){var m=p.item,h=p.itemInputValue,b=p.itemUrl,f=p.source;f.onActive(Xi({event:t,item:m,itemInputValue:h,itemUrl:b,refresh:l,source:f,state:i.getState()},s))}}).finally(function(){g("idle"),os&&r.environment.clearTimeout(os)});return i.pendingRequests.add(v)}function ls(e,t,n){return[e,null==n?void 0:n.sourceId,t].filter(Boolean).join("-").replace(/\s/g,"")}function is(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var ss=function(e,t){var n,o=!1,r=[],a=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return is(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?is(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){i=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(i)throw a}}}}(e);try{for(a.s();!(n=a.n()).done;){var l,i,s,c=null===(l=n.value.__autocomplete_pluginOptions)||void 0===l||null===(i=(s=l).awaitSubmit)||void 0===i?void 0:i.call(s);if("number"==typeof c)r.push(c);else if(!0===c){o=!0;break}}}catch(e){a.e(e)}finally{a.f()}return o?t.wait():r.length>0?t.wait(Math.max.apply(Math,r)):void 0};function cs(e){return cs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cs(e)}var ds=["event","props","refresh","store"];function us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function ps(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?us(Object(n),!0).forEach(function(t){gs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):us(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gs(e,t,n){return(t=function(e){var t=function(e){if("object"!==cs(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==cs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===cs(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ms=/((gt|sm)-|galaxy nexus)|samsung[- ]|samsungbrowser/i;function hs(e){return e.nativeEvent||e}function bs(e){return bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bs(e)}var fs=["props","refresh","store"],vs=["inputElement","formElement","panelElement"],ys=["inputElement"],ks=["inputElement","maxLength"],xs=["source"],ws=["item","source"];function _s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Ss(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_s(Object(n),!0).forEach(function(t){js(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function js(e,t,n){return(t=function(e){var t=function(e){if("object"!==bs(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==bs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===bs(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cs(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Is(e){var t=e.props,n=e.refresh,o=e.store,r=Cs(e,fs);return{getEnvironmentProps:function(e){var n=e.inputElement,r=e.formElement,a=e.panelElement;function l(e){if((o.getState().isOpen||!o.pendingRequests.isEmpty())&&e.target!==n){var l=[r,a].some(function(t){return function(e,t){return e===t||e.contains(t)}(t,e.target)});!1===l&&(o.dispatch("blur",null),t.debug||o.pendingRequests.cancelAll())}}return Ss({onTouchStart:l,onMouseDown:l,onTouchMove:function(e){!1!==o.getState().isOpen&&n===t.environment.document.activeElement&&e.target!==n&&n.blur()}},Cs(e,vs))},getRootProps:function(e){return Ss({role:"combobox","aria-expanded":o.getState().isOpen,"aria-haspopup":"listbox","aria-controls":o.getState().isOpen?o.getState().collections.map(function(e){var n=e.source;return ls(t.id,"list",n)}).join(" "):void 0,"aria-labelledby":ls(t.id,"label")},e)},getFormProps:function(e){e.inputElement;var a=Cs(e,ys),l=function(a){var l;t.onSubmit(Ss({event:a,refresh:n,state:o.getState()},r)),o.dispatch("submit",null),null===(l=e.inputElement)||void 0===l||l.blur()};return Ss({action:"",noValidate:!0,role:"search",onSubmit:function(e){e.preventDefault();var n=ss(t.plugins,o.pendingRequests);void 0!==n?n.then(function(){return l(e)}):l(e)},onReset:function(a){var l;a.preventDefault(),t.onReset(Ss({event:a,refresh:n,state:o.getState()},r)),o.dispatch("reset",null),null===(l=e.inputElement)||void 0===l||l.focus()}},a)},getLabelProps:function(e){return Ss({htmlFor:ls(t.id,"input"),id:ls(t.id,"label")},e)},getInputProps:function(e){var a;function l(e){(t.openOnFocus||Boolean(o.getState().query))&&as(Ss({event:e,props:t,query:o.getState().completion||o.getState().query,refresh:n,store:o},r)),o.dispatch("focus",null)}var i,s=e||{},c=(s.inputElement,s.maxLength),d=void 0===c?512:c,u=Cs(s,ks),p=qi(o.getState()),g=(i=(null===(a=t.environment.navigator)||void 0===a?void 0:a.userAgent)||"",Boolean(i&&i.match(ms))),m=t.enterKeyHint||(null!=p&&p.itemUrl&&!g?"go":"search");return Ss({"aria-autocomplete":"both","aria-activedescendant":o.getState().isOpen&&null!==o.getState().activeItemId?ls(t.id,"item-".concat(o.getState().activeItemId),null==p?void 0:p.source):void 0,"aria-controls":o.getState().isOpen?o.getState().collections.filter(function(e){return e.items.length>0}).map(function(e){var n=e.source;return ls(t.id,"list",n)}).join(" "):void 0,"aria-labelledby":ls(t.id,"label"),value:o.getState().completion||o.getState().query,id:ls(t.id,"input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:m,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:d,type:"search",onChange:function(e){var a=e.currentTarget.value;t.ignoreCompositionEvents&&hs(e).isComposing?r.setQuery(a):as(Ss({event:e,props:t,query:a.slice(0,d),refresh:n,store:o},r))},onCompositionEnd:function(e){as(Ss({event:e,props:t,query:e.currentTarget.value.slice(0,d),refresh:n,store:o},r))},onKeyDown:function(e){hs(e).isComposing||function(e){var t=e.event,n=e.props,o=e.refresh,r=e.store,a=function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,ds);if("ArrowUp"===t.key||"ArrowDown"===t.key){var l=function(){var e=qi(r.getState()),t=n.environment.document.getElementById(ls(n.id,"item-".concat(r.getState().activeItemId),null==e?void 0:e.source));t&&(t.scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded(!1):t.scrollIntoView(!1))},i=function(){var e=qi(r.getState());if(null!==r.getState().activeItemId&&e){var n=e.item,l=e.itemInputValue,i=e.itemUrl,s=e.source;s.onActive(ps({event:t,item:n,itemInputValue:l,itemUrl:i,refresh:o,source:s,state:r.getState()},a))}};t.preventDefault(),!1===r.getState().isOpen&&(n.openOnFocus||Boolean(r.getState().query))?as(ps({event:t,props:n,query:r.getState().query,refresh:o,store:r},a)).then(function(){r.dispatch(t.key,{nextActiveItemId:n.defaultActiveItemId}),i(),setTimeout(l,0)}):(r.dispatch(t.key,{}),i(),l())}else if("Escape"===t.key)t.preventDefault(),r.dispatch(t.key,null),r.pendingRequests.cancelAll();else if("Tab"===t.key)r.dispatch("blur",null),r.pendingRequests.cancelAll();else if("Enter"===t.key){if(null===r.getState().activeItemId||r.getState().collections.every(function(e){return 0===e.items.length})){var s=ss(n.plugins,r.pendingRequests);return void(void 0!==s?s.then(r.pendingRequests.cancelAll):n.debug||r.pendingRequests.cancelAll())}t.preventDefault();var c=qi(r.getState()),d=c.item,u=c.itemInputValue,p=c.itemUrl,g=c.source;if(t.metaKey||t.ctrlKey)void 0!==p&&(g.onSelect(ps({event:t,item:d,itemInputValue:u,itemUrl:p,refresh:o,source:g,state:r.getState()},a)),n.navigator.navigateNewTab({itemUrl:p,item:d,state:r.getState()}));else if(t.shiftKey)void 0!==p&&(g.onSelect(ps({event:t,item:d,itemInputValue:u,itemUrl:p,refresh:o,source:g,state:r.getState()},a)),n.navigator.navigateNewWindow({itemUrl:p,item:d,state:r.getState()}));else if(t.altKey);else{if(void 0!==p)return g.onSelect(ps({event:t,item:d,itemInputValue:u,itemUrl:p,refresh:o,source:g,state:r.getState()},a)),void n.navigator.navigate({itemUrl:p,item:d,state:r.getState()});as(ps({event:t,nextState:{isOpen:!1},props:n,query:u,refresh:o,store:r},a)).then(function(){g.onSelect(ps({event:t,item:d,itemInputValue:u,itemUrl:p,refresh:o,source:g,state:r.getState()},a))})}}}(Ss({event:e,props:t,refresh:n,store:o},r))},onFocus:l,onBlur:Rl,onClick:function(n){e.inputElement!==t.environment.document.activeElement||o.getState().isOpen||l(n)}},u)},getPanelProps:function(e){return Ss({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){o.dispatch("mouseleave",null)}},e)},getListProps:function(e){var n=e||{},o=n.source,r=Cs(n,xs);return Ss({role:"listbox","aria-labelledby":ls(t.id,"label"),id:ls(t.id,"list",o)},r)},getItemProps:function(e){var a=e.item,l=e.source,i=Cs(e,ws);return Ss({id:ls(t.id,"item-".concat(a.__autocomplete_id),l),role:"option","aria-selected":o.getState().activeItemId===a.__autocomplete_id,onMouseMove:function(e){if(a.__autocomplete_id!==o.getState().activeItemId){o.dispatch("mousemove",a.__autocomplete_id);var t=qi(o.getState());if(null!==o.getState().activeItemId&&t){var l=t.item,i=t.itemInputValue,s=t.itemUrl,c=t.source;c.onActive(Ss({event:e,item:l,itemInputValue:i,itemUrl:s,refresh:n,source:c,state:o.getState()},r))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){var i=l.getItemInputValue({item:a,state:o.getState()}),s=l.getItemUrl({item:a,state:o.getState()});(s?Promise.resolve():as(Ss({event:e,nextState:{isOpen:!1},props:t,query:i,refresh:n,store:o},r))).then(function(){l.onSelect(Ss({event:e,item:a,itemInputValue:i,itemUrl:s,refresh:n,source:l,state:o.getState()},r))})}},i)}}}var Os=[{segment:"autocomplete-core",version:"1.19.2"}];function Ms(e){return Ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ms(e)}function Ps(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Ts(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ps(Object(n),!0).forEach(function(t){Es(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ps(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Es(e,t,n){return(t=function(e){var t=function(e){if("object"!==Ms(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Ms(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ms(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function As(e){var t,n,o,r,a=e.plugins,l=e.options,i=null===(t=((null===(n=l.__autocomplete_metadata)||void 0===n?void 0:n.userAgents)||[])[0])||void 0===t?void 0:t.segment,s=i?Es({},i,Object.keys((null===(o=l.__autocomplete_metadata)||void 0===o?void 0:o.options)||{})):{};return{plugins:a.map(function(e){return{name:e.name,options:Object.keys(e.__autocomplete_pluginOptions||[])}}),options:Ts({"autocomplete-core":Object.keys(l)},s),ua:Os.concat((null===(r=l.__autocomplete_metadata)||void 0===r?void 0:r.userAgents)||[])}}function Ns(e){var t,n=e.state;return!1===n.isOpen||null===n.activeItemId?null:(null===(t=qi(n))||void 0===t?void 0:t.itemInputValue)||null}function Ls(e,t,n,o){if(!n)return null;if(e<0&&(null===t||null!==o&&0===t))return n+e;var r=(null===t?-1:t)+e;return r<=-1||r>=n?null===o?null:0:r}function Rs(e){return Rs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rs(e)}function Bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bs(Object(n),!0).forEach(function(t){Fs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fs(e,t,n){return(t=function(e){var t=function(e){if("object"!==Rs(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Rs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Rs(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zs=function(e,t){switch(t.type){case"setActiveItemId":case"mousemove":return Ds(Ds({},e),{},{activeItemId:t.payload});case"setQuery":return Ds(Ds({},e),{},{query:t.payload,completion:null});case"setCollections":return Ds(Ds({},e),{},{collections:t.payload});case"setIsOpen":return Ds(Ds({},e),{},{isOpen:t.payload});case"setStatus":return Ds(Ds({},e),{},{status:t.payload});case"setContext":return Ds(Ds({},e),{},{context:Ds(Ds({},e.context),t.payload)});case"ArrowDown":var n=Ds(Ds({},e),{},{activeItemId:t.payload.hasOwnProperty("nextActiveItemId")?t.payload.nextActiveItemId:Ls(1,e.activeItemId,ki(e),t.props.defaultActiveItemId)});return Ds(Ds({},n),{},{completion:Ns({state:n})});case"ArrowUp":var o=Ds(Ds({},e),{},{activeItemId:Ls(-1,e.activeItemId,ki(e),t.props.defaultActiveItemId)});return Ds(Ds({},o),{},{completion:Ns({state:o})});case"Escape":return e.isOpen?Ds(Ds({},e),{},{activeItemId:null,isOpen:!1,completion:null}):Ds(Ds({},e),{},{activeItemId:null,query:"",status:"idle",collections:[]});case"submit":return Ds(Ds({},e),{},{activeItemId:null,isOpen:!1,status:"idle"});case"reset":return Ds(Ds({},e),{},{activeItemId:!0===t.props.openOnFocus?t.props.defaultActiveItemId:null,status:"idle",completion:null,query:""});case"focus":return Ds(Ds({},e),{},{activeItemId:t.props.defaultActiveItemId,isOpen:(t.props.openOnFocus||Boolean(e.query))&&t.props.shouldPanelOpen({state:e})});case"blur":return t.props.debug?e:Ds(Ds({},e),{},{isOpen:!1,activeItemId:null});case"mouseleave":return Ds(Ds({},e),{},{activeItemId:t.props.defaultActiveItemId});default:return"The reducer action ".concat(JSON.stringify(t.type)," is not supported."),e}};function Hs(e){return Hs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hs(e)}function $s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Vs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$s(Object(n),!0).forEach(function(t){Ws(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ws(e,t,n){return(t=function(e){var t=function(e){if("object"!==Hs(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Hs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Hs(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Us(e){var t=[],n=Ti(e,t),o=function(e,t,n){var o,r=t.initialState;return{getState:function(){return r},dispatch:function(o,a){var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gi(Object(n),!0).forEach(function(t){mi(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r);r=e(r,{type:o,props:t,payload:a}),n({state:r,prevState:l})},pendingRequests:(o=[],{add:function(e){return o.push(e),e.finally(function(){o=o.filter(function(t){return t!==e})})},cancelAll:function(){o.forEach(function(e){return e.cancel()})},isEmpty:function(){return 0===o.length},wait:function(e){return ui?(ui=!1,di=e?Promise.race([Promise.all(o),new Promise(function(t){return setTimeout(t,e)})]):Promise.all(o),di.then(function(){ui=!0})):di}})}}(zs,n,function(e){var t,o,a=e.prevState,c=e.state;if(n.onStateChange(Vs({prevState:a,state:c,refresh:l,navigator:n.navigator},r)),!s()&&null!==(t=c.context)&&void 0!==t&&null!==(o=t.algoliaInsightsPlugin)&&void 0!==o&&o.__automaticInsights&&!1!==n.insights){var d=ii({__autocomplete_clickAnalytics:!1});n.plugins.push(d),i([d])}}),r=function(e){var t=e.store;return{setActiveItemId:function(e){t.dispatch("setActiveItemId",e)},setQuery:function(e){t.dispatch("setQuery",e)},setCollections:function(e){var n=0,o=e.map(function(e){return vi(vi({},e),{},{items:hi(e.items).map(function(e){return vi(vi({},e),{},{__autocomplete_id:n++})})})});t.dispatch("setCollections",o)},setIsOpen:function(e){t.dispatch("setIsOpen",e)},setStatus:function(e){t.dispatch("setStatus",e)},setContext:function(e){t.dispatch("setContext",e)}}}({store:o}),a=Is(Vs({props:n,refresh:l,store:o,navigator:n.navigator},r));function l(){return as(Vs({event:new Event("input"),nextState:{isOpen:o.getState().isOpen},props:n,navigator:n.navigator,query:o.getState().query,refresh:l,store:o},r))}function i(e){e.forEach(function(e){var o;return null===(o=e.subscribe)||void 0===o?void 0:o.call(e,Vs(Vs({},r),{},{navigator:n.navigator,refresh:l,onSelect:function(e){t.push({onSelect:e})},onActive:function(e){t.push({onActive:e})},onResolve:function(e){t.push({onResolve:e})}}))})}function s(){return n.plugins.some(function(e){return"aa.algoliaInsightsPlugin"===e.name})}if(n.insights&&!s()){var c="boolean"==typeof n.insights?{}:n.insights;n.plugins.push(ii(c))}return i(n.plugins),function(e){var t,n,o=e.metadata,r=e.environment;if(null===(t=r.navigator)||void 0===t||null===(n=t.userAgent)||void 0===n?void 0:n.includes("Algolia Crawler")){var a=r.document.createElement("meta"),l=r.document.querySelector("head");a.name="algolia:metadata",setTimeout(function(){a.content=JSON.stringify(o),l.appendChild(a)},0)}}({metadata:As({plugins:n.plugins,options:e}),environment:n.environment}),Vs(Vs({refresh:l,navigator:n.navigator},a),r)}function Zs(e){return Zs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zs(e)}var Gs=["params"];function qs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function Ks(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qs(Object(n),!0).forEach(function(t){Js(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Js(e,t,n){return(t=function(e){var t=function(e){if("object"!==Zs(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Zs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Zs(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ys(e){return function(e){if(Array.isArray(e))return Xs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Xs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xs(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Qs(e){return Qs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qs(e)}function ec(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,o)}return n}function tc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ec(Object(n),!0).forEach(function(t){nc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ec(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nc(e,t,n){return(t=function(e){var t=function(e){if("object"!==Qs(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Qs(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Qs(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oc=function(){function e(e){return function(e){var t=e.searchClient,n=e.queries,o=e.userAgents,r=void 0===o?[]:o;"function"==typeof t.addAlgoliaAgent&&[].concat(Ys(Os),Ys(r)).forEach(function(e){var n=e.segment,o=e.version;t.addAlgoliaAgent(n,o)});var a=function(e){var t=e.transporter||{},n=t.headers||t.baseHeaders||{},o=t.queryParameters||t.baseQueryParameters||{},r="x-algolia-application-id",a="x-algolia-api-key";return{appId:n[r]||o[r],apiKey:n[a]||o[a]}}(t),l=a.appId,i=a.apiKey;return Boolean(l),Boolean(i),t.search(n.map(function(e){var t=e.params;return Ks(Ks({},function(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,Gs)),{},{params:Ks({hitsPerPage:5,highlightPreTag:"__aa-highlight__",highlightPostTag:"__/aa-highlight__"},t)})})).then(function(e){return e.results.map(function(e,t){var o;return Ks(Ks({},e),{},{hits:null===(o=e.hits)||void 0===o?void 0:o.map(function(o){return Ks(Ks({},o),{},{__autocomplete_indexName:e.index||n[t].indexName,__autocomplete_queryID:e.queryID,__autocomplete_algoliaCredentials:{appId:l,apiKey:i}})})})})})}({searchClient:e.searchClient,queries:e.requests.map(function(e){return e.query})}).then(function(t){return t.map(function(t,n){var o=e.requests[n];return{items:t,sourceId:o.sourceId,transformResponse:o.transformResponse}})})}return function(t){return function(n){return tc(tc({requesterId:"algolia",execute:e},t),n)}}}();function rc(e){return rc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rc(e)}const ac=(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Bo.jsx)(Ro.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})}),lc=(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Bo.jsx)(Ro.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})}),ic=function({appId:e,apiKey:t,authMode:n,algoliaAgents:o,...r}){const a=function(e,t,n="WithinHeaders"){const o={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===n?o:{},queryParameters:()=>"WithinQueryParameters"===n?o:{}}}(e,t,n),l=function({hosts:e,hostsCache:t,baseHeaders:n,logger:o,baseQueryParameters:r,algoliaAgent:a,timeouts:l,requester:i,requestsCache:s,responsesCache:c}){async function d(s,c,d=!0){const u=[],p=function(e,t){if("GET"===e.method||void 0===e.data&&void 0===t.data)return;const n=Array.isArray(e.data)?e.data:{...e.data,...t.data};return JSON.stringify(n)}(s,c),g=function(e,t,n){const o={Accept:"application/json",...e,...t,...n},r={};return Object.keys(o).forEach(e=>{const t=o[e];r[e.toLowerCase()]=t}),r}(n,s.headers,c.headers),m="GET"===s.method?{...s.data,...c.data}:{},h={...r,...s.queryParameters,...m};if(a.value&&(h["x-algolia-agent"]=a.value),c&&c.queryParameters)for(const e of Object.keys(c.queryParameters))c.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(c.queryParameters[e])?h[e]=c.queryParameters[e].toString():h[e]=c.queryParameters[e];let b=0;const f=async(e,n)=>{const r=e.pop();if(void 0===r)throw new jl(function(e){return e.map(e=>Pl(e))}(u));const a={...l,...c.timeouts},m={data:p,headers:g,method:s.method,url:Ml(r,s.path,h),connectTimeout:n(b,a.connect),responseTimeout:n(b,d?a.read:a.write)},v=t=>{const n={request:m,response:t,host:r,triesLeft:e.length};return u.push(n),n},y=await i.send(m);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0===~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(y)){const a=v(y);return y.isTimedOut&&b++,o.info("Retryable failure",Pl(a)),await t.set(r,wl(r,y.isTimedOut?"timed out":"down")),f(e,n)}if(function({status:e}){return 2==~~(e/100)}(y))return function(e){try{return JSON.parse(e.content)}catch(t){throw new Il(t.message,e)}}(y);throw v(y),function({content:e,status:t},n){try{const o=JSON.parse(e);return"error"in o?new Ol(o.message,t,o.error,n):new Cl(o.message,t,n)}catch{}return new Cl(e,t,n)}(y,u)},v=e.filter(e=>"readWrite"===e.accept||(d?"read"===e.accept:"write"===e.accept)),y=await async function(e){const n=await Promise.all(e.map(e=>t.get(e,()=>Promise.resolve(wl(e))))),o=n.filter(e=>e.isUp()),r=n.filter(e=>e.isTimedOut()),a=[...o,...r];return{hosts:a.length>0?a:e,getTimeout:(e,t)=>(0===r.length&&0===e?1:r.length+3+e)*t}}(v);return f([...y.hosts].reverse(),y.getTimeout)}return{hostsCache:t,requester:i,timeouts:l,logger:o,algoliaAgent:a,baseHeaders:n,baseQueryParameters:r,hosts:e,request:function(e,t={}){const o=e.useReadTransporter||"GET"===e.method;if(!o)return d(e,t,o);const a=()=>d(e,t);if(!0!==(t.cacheable||e.cacheable))return a();const l={request:e,requestOptions:t,transporter:{queryParameters:r,headers:n}};return c.get(l,()=>s.get(l,()=>s.set(l,a()).then(e=>Promise.all([s.delete(l),e]),e=>Promise.all([s.delete(l),Promise.reject(e)])).then(([e,t])=>t)),{miss:e=>c.set(l,e)})},requestsCache:s,responsesCache:c}}({hosts:El(e),...r,algoliaAgent:kl({algoliaAgents:o,client:"Lite",version:Tl}),baseHeaders:{"content-type":"text/plain",...a.headers(),...r.baseHeaders},baseQueryParameters:{...a.queryParameters(),...r.baseQueryParameters}});return{transporter:l,appId:e,apiKey:t,clearCache:()=>Promise.all([l.requestsCache.clear(),l.responsesCache.clear()]).then(()=>{}),get _ua(){return l.algoliaAgent.value},addAlgoliaAgent(e,t){l.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){n&&"WithinHeaders"!==n?l.baseQueryParameters["x-algolia-api-key"]=e:l.baseHeaders["x-algolia-api-key"]=e},searchForHits(e,t){return this.search(e,t)},searchForFacets(e,t){return this.search(e,t)},customPost({path:e,parameters:t,body:n},o){if(!e)throw new Error("Parameter `path` is required when calling `customPost`.");const r={method:"POST",path:"/{path}".replace("{path}",e),queryParameters:t||{},headers:{},data:n||{}};return l.request(r,o)},getRecommendations(e,t){if(e&&Array.isArray(e)&&(e={requests:e}),!e)throw new Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!e.requests)throw new Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");const n={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return l.request(n,t)},search(e,t){if(e&&Array.isArray(e)){const t={requests:e.map(({params:e,...t})=>"facet"===t.type?{...t,...e,type:"facet"}:{...t,...e,facet:void 0,maxFacetHits:void 0,facetQuery:void 0})};e=t}if(!e)throw new Error("Parameter `searchMethodParams` is required when calling `search`.");if(!e.requests)throw new Error("Parameter `searchMethodParams.requests` is required when calling `search`.");const n={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return l.request(n,t)}}}({appId:sc="A3VQNQXTF3",apiKey:"1490aefba5f869d86cc5e27099af3306",timeouts:{connect:1e3,read:2e3,write:3e4},logger:{debug:(e,t)=>Promise.resolve(),info:(e,t)=>Promise.resolve(),error:(e,t)=>Promise.resolve()},requester:{send:function(e){return new Promise(t=>{let n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach(t=>n.setRequestHeader(t,e.headers[t]));let o,r=(e,o)=>setTimeout(()=>{n.abort(),t({status:0,content:o,isTimedOut:!0})},e),a=r(e.connectTimeout,"Connection timeout");n.onreadystatechange=()=>{n.readyState>n.OPENED&&void 0===o&&(clearTimeout(a),o=r(e.responseTimeout,"Socket timeout"))},n.onerror=()=>{0===n.status&&(clearTimeout(a),clearTimeout(o),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=()=>{clearTimeout(a),clearTimeout(o),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)})}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:yl(),requestsCache:yl({serializable:!1}),hostsCache:vl({caches:[fl({key:`${Tl}-${sc}`}),yl()]})});var sc;function cc(e){const[t,n]=(0,Ao.useState)({}),[r,a]=(0,Ao.useState)(!0),[l,i]=(0,Ao.useState)(!0),[s,c]=(0,Ao.useState)(""),d=(0,Ao.useRef)(null),u=(0,Ao.useRef)(null),p=(0,Ao.useRef)(null),g=(0,Ao.useRef)(null);(0,Ao.useEffect)(()=>{n(t=>({...t,query:e.currentValue}))},[]),(0,Ao.useEffect)(()=>{c(e.currentValue)},[e.currentValue]),(0,Ao.useEffect)(()=>{function e(e){d.current&&!d.current.contains(e.target)&&m.setIsOpen(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[d]),(0,Ao.useEffect)(()=>{a(function(){const{query:e,collections:n}=t;return(""===s||s!==e)&&(!(!e||""===e.trim())&&(!function(){const{collections:e,query:n}=t;return!(!Array.isArray(e)||!Array.isArray(e[0]?.items))&&!!e[0].items.filter(e=>e.name.toLowerCase()===n.toLowerCase()).length}()&&!(!l&&e&&n?.[0]?.items&&0===n[0].items.length)))}())},[t.query,t.collections]),(0,Ao.useEffect)(()=>{const e=document.querySelector(".components-modal__frame.stellarwp").getBoundingClientRect(),n=g.current.getBoundingClientRect().bottom+180>e.bottom?"top":"bottom";if(t.isOpen){const e=document.querySelector(".aa-PanelWrapper"),t=e.clientHeight;"top"===n&&(e.style.top=`-${56+t}px`)}},[t.isOpen]);const m=(0,Ao.useMemo)(()=>Us({onStateChange({state:e}){n(e)},getSources:()=>[{sourceId:"industries",getItemInputValue:({item:e})=>e.query,getItems({query:e}){return rc((t={searchClient:ic,queries:[{indexName:"ai_modal_industries",query:e,params:{hitsPerPage:8,highlightPreTag:"<mark>",highlightPostTag:"</mark>"}}]}).searchClient),oc({transformResponse:function(e){return e.hits}})(t);var t},onSelect:t=>{e.onSelect(t.item.name),t.setQuery(t.item.name),i(!1)}}],openOnFocus:!1,...e}),[]);return(0,Bo.jsxs)("div",{ref:d,className:"stellarwp-autocomplete-control",children:[e.label?(0,Bo.jsx)("label",{className:"components-input-control__label",children:e.label}):null,(0,Bo.jsx)("div",{className:"components-input-control__container",children:(0,Bo.jsxs)("div",{className:"aa-Autocomplete",...m.getRootProps({}),children:[(0,Bo.jsxs)("form",{className:"aa-Form",ref:u,...m.getFormProps({inputElement:p.current}),children:[(0,Bo.jsx)("div",{className:"aa-InputWrapperPrefix",children:(0,Bo.jsx)(No.Button,{className:"aa-SubmitButton",icon:ac,type:"submit",title:(0,o.__)("Submit","kadence-blocks")})}),(0,Bo.jsx)("div",{className:"aa-InputWrapper",children:(0,Bo.jsx)("input",{className:"aa-Input",ref:p,...m.getInputProps({}),onKeyDown:function(){i(!0)}})}),(0,Bo.jsx)("div",{className:"aa-InputWrapperSuffix",children:t.query&&(0,Bo.jsx)(No.Button,{className:"aa-ClearButton",onClick:function(){e.onSelect(""),m.setQuery(""),m.refresh(),p.current.focus(),i(!0)},icon:lc})})]}),(0,Bo.jsx)("div",{ref:g,className:["aa-Panel","stalled"===t.status&&"aa-Panel--stalled"].filter(Boolean).join(" "),...m.getPanelProps({}),children:(t.isOpen||r)&&(0,Bo.jsxs)("div",{className:"aa-PanelWrapper",children:[t.collections&&t.collections.map((e,t)=>{const{source:n,items:o}=e;return(0,Bo.jsx)("div",{className:"aa-Source",children:o.length>0&&(0,Bo.jsx)("ul",{className:"aa-List",...m.getListProps(),children:o.map(e=>(0,Bo.jsx)("li",{className:"aa-Item",...m.getItemProps({item:e,source:n}),dangerouslySetInnerHTML:{__html:e?._highlightResult?.name?.value?e._highlightResult.name.value:e.name}},e.objectID))})},`source-${t}`)}),r&&(0,Bo.jsx)(No.Button,{className:"aa-ItemCreate",text:`+ ${(0,o.__)("Add","kadence-blocks")}: "${t.query}"`,onClick:function(){e.onSelect(t.query),n(e=>({...e,isOpen:!1})),i(!0),a(!1)}})]})})]})})]})}function dc(e){const{className:t="",...n}=e;return(0,Bo.jsx)(No.Button,{className:`stellarwp ${t}`,...n})}function uc(e){const{onDelete:t,text:n,className:r}=e,a=Io()("stellarwp","chip",r,{"has-icon":t});let l=null;return t&&(l=(0,Bo.jsx)(No.Button,{icon:"no-alt",label:(0,o.__)("Delete Selection","kadence-blocks"),isSmall:!0,onClick:function(e){t&&t(e)}})),(0,Bo.jsxs)("div",{className:a,children:[n&&(0,Bo.jsx)("span",{children:n}),l]})}function pc(){return(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:(0,Bo.jsx)("path",{d:"M4.37491 3.2665L5.83324 4.08317L5.01658 2.62484L5.83324 1.1665L4.37491 1.98317L2.91658 1.1665L3.73325 2.62484L2.91658 4.08317L4.37491 3.2665ZM11.3749 8.98317L9.91658 8.1665L10.7332 9.62484L9.91658 11.0832L11.3749 10.2665L12.8332 11.0832L12.0166 9.62484L12.8332 8.1665L11.3749 8.98317ZM12.8332 1.1665L11.3749 1.98317L9.91658 1.1665L10.7332 2.62484L9.91658 4.08317L11.3749 3.2665L12.8332 4.08317L12.0166 2.62484L12.8332 1.1665ZM8.38241 4.25234C8.15491 4.02484 7.78741 4.02484 7.55991 4.25234L0.752412 11.0598C0.524912 11.2873 0.524912 11.6548 0.752412 11.8823L2.11741 13.2473C2.34491 13.4748 2.71241 13.4748 2.93991 13.2473L9.74158 6.44567C9.96908 6.21817 9.96908 5.85067 9.74158 5.62317L8.38241 4.25234ZM7.78158 7.45484L6.54491 6.21817L7.96825 4.79484L9.20491 6.0315L7.78158 7.45484Z",fill:"black"})})}function gc(){return(0,Bo.jsx)(Ro.SVG,{width:"37",height:"28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.884 27.9986H18.946C18.0865 27.9986 17.3888 27.3007 17.3888 26.4412C17.3888 25.5819 18.0865 24.884 18.946 24.884H24.1313C24.9405 24.8285 25.5806 24.1537 25.5806 23.3307C25.5806 22.4711 24.8828 21.7735 24.0233 21.7735H20.2322V21.7732H15.9094C15.0511 21.7732 14.3543 21.0765 14.3543 20.2182C14.3543 19.3599 15.0511 18.663 15.9094 18.663H16.8888L16.8868 18.661H18.3429C19.2008 18.661 19.8974 17.9646 19.8974 17.1067C19.8974 16.2488 19.2008 15.5525 18.3429 15.5525H14.6805V15.5511H7.00023C6.14238 15.5511 5.44581 14.8545 5.44581 13.9965C5.44581 13.1386 6.14238 12.442 7.00023 12.442H14.6805V12.4377H17.6876C18.5447 12.4377 19.2405 11.7418 19.2405 10.8846C19.2405 10.0274 18.5447 9.33155 17.6876 9.33155H17.0022L17.0023 9.33127H13.8087C12.9504 9.33127 12.2538 8.63444 12.2538 7.77632C12.2538 6.91786 12.9504 6.22103 13.8087 6.22103H21.183C21.2199 6.22103 21.2562 6.22227 21.2923 6.22475H23.9282C24.7875 6.22475 25.4853 5.52707 25.4853 4.66756C25.4853 3.80817 24.7875 3.11051 23.9282 3.11051H20.0535C19.247 3.05199 18.6102 2.37846 18.6102 1.55731C18.6102 0.697791 19.3078 2.94949e-10 20.1674 2.94949e-10H26.2711C26.2778 2.94949e-10 26.2844 -1.12778e-06 26.2916 0.000136145H33.4883L20.8783 13.7713L36.1306 28H26.9253L26.9231 27.9979C26.9102 27.9985 26.8972 27.9986 26.884 27.9986ZM11.9428 24.884C12.7993 24.884 13.4946 25.5793 13.4946 26.4357C13.4946 27.2922 12.7993 27.9874 11.9428 27.9874H6.24843C5.39208 27.9874 4.69675 27.2922 4.69675 26.4357C4.69675 25.5793 5.39208 24.884 6.24843 24.884H11.9428ZM9.68846 18.663C10.5474 18.663 11.2448 19.3603 11.2448 20.2195C11.2448 21.0783 10.5474 21.7758 9.68846 21.7758C8.82933 21.7758 8.13199 21.0783 8.13199 20.2195C8.13199 19.3603 8.82933 18.663 9.68846 18.663ZM1.55636 12.442C2.41547 12.442 3.11285 13.1393 3.11285 13.9984C3.11285 14.8574 2.41547 15.5548 1.55636 15.5548C0.697378 15.5548 0 14.8574 0 13.9984C0 13.1393 0.697378 12.442 1.55636 12.442ZM7.58797 6.22103C8.44693 6.22103 9.14443 6.91842 9.14443 7.7775C9.14443 8.63652 8.44693 9.33374 7.58797 9.33374C6.729 9.33374 6.0315 8.63652 6.0315 7.7775C6.0315 6.91842 6.729 6.22103 7.58797 6.22103ZM13.1696 2.94949e-10C14.0261 2.94949e-10 14.7213 0.695322 14.7213 1.55169C14.7213 2.4082 14.0261 3.10353 13.1696 3.10353H9.5702C8.71383 3.10353 8.01846 2.4082 8.01846 1.55169C8.01846 0.695322 8.71366 2.94949e-10 9.5702 2.94949e-10H13.1696Z",fill:"#0073E6"})})}function mc(){return(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:(0,Bo.jsx)("path",{d:"M5.25003 9.43241L2.81753 6.99991L1.9892 7.82241L5.25003 11.0832L12.25 4.08324L11.4275 3.26074L5.25003 9.43241Z",fill:"#0073E6"})})}function hc(){return(0,Bo.jsxs)(Ro.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",children:[(0,Bo.jsx)("style",{children:"\n .spinner_qM83 { animation: spinner_8HQG 1.05s infinite; }\n .spinner_oXPr { animation-delay: 0.1s; }\n .spinner_ZTLf { animation-delay: 0.2s; }\n\t\t\t\t@keyframes spinner_8HQG {\n\t\t\t\t\t0%, 57.14% {\n\t\t\t\t\t\tanimation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n\t\t\t\t\t\ttransform: translate(0);\n\t\t\t\t\t}\n\t\t\t\t\t28.57% {\n\t\t\t\t\t\tanimation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n\t\t\t\t\t\ttransform: translateY(-3px);\n\t\t\t\t\t}\n\t\t\t\t\t100% {\n\t\t\t\t\t\ttransform: translate(0);\n\t\t\t\t\t}\n\t\t\t\t}\n "}),(0,Bo.jsx)("circle",{className:"spinner_qM83",cx:"2",cy:"6",r:"1"}),(0,Bo.jsx)("circle",{className:"spinner_qM83 spinner_oXPr",cx:"6",cy:"6",r:"1"}),(0,Bo.jsx)("circle",{className:"spinner_qM83 spinner_ZTLf",cx:"10",cy:"6",r:"1"})]})}function bc(){return(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",children:(0,Bo.jsx)("path",{d:"M5.06667 7.71667L5.90132 5.90132L7.71667 5.06667L5.90132 4.23202L5.06667 2.41667L4.23202 4.23202L2.41667 5.06667L4.23202 5.90132L5.06667 7.71667ZM5.06667 10.1333L3.48333 6.65L0 5.06667L3.48333 3.48333L5.06667 0L6.65 3.48333L10.1333 5.06667L6.65 6.65L5.06667 10.1333ZM10.8 12L10.0167 10.25L8.26667 9.46667L10.0167 8.66667L10.8 6.93333L11.6 8.66667L13.3333 9.46667L11.6 10.25L10.8 12Z",fill:"#0073E6"})})}function fc(){return(0,Bo.jsx)(Ro.SVG,{width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M8.00008 3C4.66675 3 1.82008 5.07333 0.666748 8C1.82008 10.9267 4.66675 13 8.00008 13C11.3334 13 14.1801 10.9267 15.3334 8C14.1801 5.07333 11.3334 3 8.00008 3ZM8.00008 11.3333C6.16008 11.3333 4.66675 9.84 4.66675 8C4.66675 6.16 6.16008 4.66667 8.00008 4.66667C9.84008 4.66667 11.3334 6.16 11.3334 8C11.3334 9.84 9.84008 11.3333 8.00008 11.3333ZM8.00008 6C6.89341 6 6.00008 6.89333 6.00008 8C6.00008 9.10667 6.89341 10 8.00008 10C9.10675 10 10.0001 9.10667 10.0001 8C10.0001 6.89333 9.10675 6 8.00008 6Z",fill:"black"})})}function vc(){return(0,Bo.jsx)(Ro.SVG,{width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M7.99996 4.66667C9.83996 4.66667 11.3333 6.16 11.3333 8C11.3333 8.43333 11.2466 8.84 11.0933 9.22L13.04 11.1667C14.0466 10.3267 14.84 9.24 15.3266 8C14.1733 5.07333 11.3266 3 7.99329 3C7.05996 3 6.16663 3.16667 5.33996 3.46667L6.77996 4.90667C7.15996 4.75333 7.56663 4.66667 7.99996 4.66667ZM1.33329 2.84667L3.15996 4.67333C2.05329 5.53333 1.18663 6.68 0.666626 8C1.81996 10.9267 4.66663 13 7.99996 13C9.03329 13 10.02 12.8 10.92 12.44L11.2 12.72L13.1533 14.6667L14 13.82L2.17996 2L1.33329 2.84667ZM5.01996 6.53333L6.05329 7.56667C6.01996 7.70667 5.99996 7.85333 5.99996 8C5.99996 9.10667 6.89329 10 7.99996 10C8.14663 10 8.29329 9.98 8.43329 9.94667L9.46663 10.98C9.01996 11.2 8.52663 11.3333 7.99996 11.3333C6.15996 11.3333 4.66663 9.84 4.66663 8C4.66663 7.47333 4.79996 6.98 5.01996 6.53333ZM7.89329 6.01333L9.99329 8.11333L10.0066 8.00667C10.0066 6.9 9.11329 6.00667 8.00663 6.00667L7.89329 6.01333Z",fill:"black"})})}function yc(e){const{id:t,tags:n,maxTags:r,selectedTags:a,suggestedKeywords:l,suggestedKeywordsState:i,children:s,placeholder:c,onSuggestedKeywordAdded:d,onTryAgain:u,onTagDeleted:p,...g}=e,m=t?`inspector-chips-input-control-${t}`:"",[h,b]=(0,Ao.useState)(""),[f,v]=(0,Ao.useState)();function y(){const e=h.replace(",","").trim(),t=[...n];0!==e.length&&(-1===t.indexOf(e)?(t.push(e),a(t),b("")):b(""))}return(0,Bo.jsxs)(No.BaseControl,{className:"stellarwp-chips-input",id:m,...g,children:[(0,Bo.jsxs)("div",{className:"stellarwp-chips-input__control",onClick:()=>f&&f.focus(),children:[Array.isArray(n)&&n.map((e,t)=>(0,Bo.jsx)(uc,{text:e,className:"chip--blue",onDelete:()=>function(e){const t=[...n];t.splice(t.indexOf(e),1),a(t),p(e)}(e)},t)),Array.isArray(n)&&n.length<r&&(0,Bo.jsx)("input",{id:m,ref:v,className:"stellarwp-chips-input__input",type:"text",value:h,onKeyUp:function(e){const t="Enter"===e.key,n=","===e.key;(t||n)&&(e.preventDefault(),y())},onBlur:function(e){e.preventDefault(),y()},onChange:e=>{var t;" "!==(t=e.target.value)&&","!==t&&b(t)},placeholder:c&&n.length<r?c:""})]}),i!==dl&&(0,Bo.jsx)("div",{className:"stellarwp-chips-input__suggestions",children:(()=>{switch(i){case ll:return(0,Bo.jsxs)("div",{className:"stellarwp-chips-input__suggestions-loading",children:[(0,Bo.jsx)(No.Icon,{icon:bc}),(0,o.__)("Kadence is looking for Keyword Suggestions","kadence-blocks"),(0,Bo.jsx)(No.Icon,{icon:hc})]});case cl:return(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("div",{className:"stellarwp-chips-input__suggestions-title",children:(0,o.__)("Suggested Keywords","kadence-blocks")}),(0,Bo.jsx)("ul",{className:"stellarwp-chips-input__suggestions-list",children:l.map((e,t)=>(0,Bo.jsx)("li",{className:"stellarwp-chips-input__suggestions-list-item",children:(0,Bo.jsx)("button",{onClick:()=>function(e){if(n.length>=r)return;const t=[...n];t.push(e),a(t),b(""),d(e)}(e),className:"stellarwp-chips-input__suggestions-button",children:e})},`${e}`))})]});case il:return(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("div",{className:"stellarwp-chips-input__suggestions-title",children:(0,o.__)("We couldn’t find any good Keywords.","kadence-blocks")}),(0,Bo.jsx)("div",{className:"stellarwp-chips-input__suggestions-description",children:(0,o.__)("No worries, you can add your own keywords. Make sure to use words that directly relate to your website's content and what you do. The more the better.","kadence-blocks")})]});case sl:return(0,Bo.jsxs)(No.Flex,{children:[(0,Bo.jsx)(No.FlexItem,{children:(0,Bo.jsx)("div",{className:"stellarwp-chips-input__suggestions-title",children:(0,o.__)("Oops! Something went wrong.","kadence-blocks")})}),(0,Bo.jsx)(No.FlexItem,{children:(0,Bo.jsx)(No.Button,{onClick:u,variant:"link",className:"stellarwp-chips-input__suggestions-try-button",children:(0,o.__)("Try again.","kadence-blocks")})})]});default:return(0,Bo.jsx)(Bo.Fragment,{})}})()})]})}var kc=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],xc=function(){var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,n=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),o=String(t.getOptionValue(e)).toLowerCase(),r=String(t.getOptionLabel(e)).toLowerCase();return o===n||r===n},wc={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,o){return!(!e||t.some(function(t){return xc(e,t,o)})||n.some(function(t){return xc(e,t,o)}))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}},_c=(0,h.forwardRef)(function(e,t){var n=function(e){var t=e.allowCreateWhileLoading,n=void 0!==t&&t,o=e.createOptionPosition,r=void 0===o?"last":o,a=e.formatCreateLabel,l=void 0===a?wc.formatCreateLabel:a,i=e.isValidNewOption,s=void 0===i?wc.isValidNewOption:i,c=e.getNewOptionData,u=void 0===c?wc.getNewOptionData:c,p=e.onCreateOption,g=e.options,b=void 0===g?[]:g,f=e.onChange,v=m(e,kc),y=v.getOptionValue,k=void 0===y?ao:y,x=v.getOptionLabel,w=void 0===x?ro:x,_=v.inputValue,j=v.isLoading,C=v.isMulti,I=v.value,O=v.name,M=(0,h.useMemo)(function(){return s(_,Tt(I),b,{getOptionValue:k,getOptionLabel:w})?u(_,l(_)):void 0},[l,u,w,k,_,s,b,I]),P=(0,h.useMemo)(function(){return!n&&j||!M?b:"first"===r?[M].concat(S(b)):[].concat(S(b),[M])},[n,r,j,M,b]),T=(0,h.useCallback)(function(e,t){if("select-option"!==t.action)return f(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==M)f(e,t);else if(p)p(_);else{var o=u(_,_),r={action:"create-option",name:O,option:o};f(Ut(C,[].concat(S(Tt(I)),[o]),o),r)}},[u,_,C,O,M,p,f,I]);return d(d({},v),{},{options:P,onChange:T})}(v(e));return h.createElement(_o,y({ref:t},n))}),Sc=_c;function jc(e){const{headline:t,content:n,children:o}=e,r=Io()("form-section","stellarwp","stellarwp-body",{"has-children":o});return(0,Bo.jsxs)("div",{className:r,children:[t?(0,Bo.jsx)("h2",{className:"form-section__headline stellarwp-h2",children:t}):null,n?(0,Bo.jsx)("p",{className:"form-section__content stellarwp-small stellarwp-disabled",children:n}):null,o||null]})}function Cc(e){const{icon:t,text:n="",value:o="",selected:r,onClick:a=()=>{}}=e,l=Io()("location-select-card",{"is-selected":r});return(0,Bo.jsxs)(No.Card,{className:l,as:"button",size:"small",isRounded:!0,onClick:()=>a(o),children:[(0,Bo.jsx)(No.CardHeader,{children:t?(0,Bo.jsx)(No.Icon,{icon:t}):null}),(0,Bo.jsx)(No.CardBody,{children:n})]})}function Ic(e){const{label:t,locations:n=[],selected:o,onChange:r=()=>{}}=e;return(0,Bo.jsxs)(No.Flex,{className:"location-select-control",direction:"column",children:[t?(0,Bo.jsx)("label",{className:"location-select-control__label",children:t}):null,(0,Bo.jsx)(No.Flex,{className:"location-select-control__group",align:"initial",children:n&&n.map(e=>(0,Bo.jsx)(No.FlexBlock,{children:(0,Bo.jsx)(Cc,{selected:o===e.value,icon:e.icon,text:e.text,value:e.value,onClick:r})}))})]})}(0,Ao.forwardRef)(function(e,t){const{maxMenuHeight:n,menuPlacement:o,label:r,options:a,value:l,prefix:i,...s}=e,c=Io()("components-input-control__container",{"has-prefix":!!i});return(0,Bo.jsxs)("div",{className:"stellarwp components-creatable-control",children:[r?(0,Bo.jsx)("label",{className:"components-input-control__label",children:r}):null,(0,Bo.jsxs)("div",{className:c,ref:t,children:[i||null,(0,Bo.jsx)(Sc,{classNamePrefix:"stellarwp-creatable",maxMenuHeight:n,menuPlacement:o,styles:{control:(e,t)=>({...e,fontSize:16,boxShadow:"none",borderColor:t.isFocused?"#000000":"#DFDFDF"}),valueContainer:e=>({...e,paddingLeft:i?35:8}),menu:e=>({...e,fontSize:16}),indicatorsContainer:e=>({...e,color:"#000000"})},isClearable:!0,options:a,value:l,...s})]})]})});const Oc={featuredTitle:(0,o.__)("Featured Images","kadence-blocks"),featuredDescription:(0,o.__)("Featured images are meant to draw attention, they are used to represent the content on your website.","kadence-blocks"),backgroundTitle:(0,o.__)("Background Images","kadence-blocks"),backgroundDescription:(0,o.__)("Background images are meant to enhance the overall look and feel, styling the background of sections in your website.","kadence-blocks")},Mc={wrapper:{boxSizing:"border-box",maxWidth:1e3,margin:"auto"}};function Pc({loading:e,featured:t,background:n,updateCollection:o}){const r=e=>t=>{o(e,t)};return(0,Bo.jsx)("div",{className:"stellarwp-body",style:Mc.wrapper,children:(0,Bo.jsxs)(No.Flex,{align:"top",gap:"5",children:[(0,Bo.jsx)(No.FlexBlock,{children:(0,Bo.jsx)(td,{loading:e,photos:t?.images,isLocal:t?.isLocal,collectionLink:t?.pexelLink,title:Oc.featuredTitle,description:Oc.featuredDescription,updateCollection:r(0)})}),(0,Bo.jsx)(No.FlexBlock,{children:(0,Bo.jsx)(td,{loading:e,photos:n?.images,isLocal:n?.isLocal,collectionLink:n?.pexelLink,title:Oc.backgroundTitle,description:Oc.backgroundDescription,updateCollection:r(1)})})]})})}function Tc(e){const{styles:t={},value:n,message:o,color:r}=e,[a,l]=(0,Ao.useState)({}),i={};return(0,Ao.useEffect)(()=>{const e=n-100;l(t=>({...t,backgroundColor:r||"blue",transform:`translateX(${e}%)`}))},[n,r,o]),void 0!==n&&(i["aria-valuenow"]=Math.round(n),i["aria-valuemin"]=0,i["aria-valuemax"]=100),(0,Bo.jsxs)("div",{className:"stellarwp-progress-bar",style:t,children:[(0,Bo.jsx)("div",{className:"stellarwp-progress-bar__wrap",...i,children:(0,Bo.jsx)("span",{className:"stellarwp-progress-bar__bar",style:a})}),o?(0,Bo.jsx)("span",{className:"stellarwp-progress-bar__message",style:{color:r||"inherit"},children:o}):null]})}const Ec=(0,Ao.forwardRef)(function(e,t){const{maxMenuHeight:n,menuPlacement:o,menuPosition:r="absolute",isClearable:a,label:l,options:i,value:s,horizontal:c,...d}=e;return(0,Bo.jsxs)("div",{className:"stellarwp components-select-control "+(c?"input-control-horizontal":""),children:[l?(0,Bo.jsx)("label",{className:"components-input-control__label",children:l}):null,(0,Bo.jsx)("div",{className:"components-input-control__container",ref:t,children:(0,Bo.jsx)(So,{classNamePrefix:"stellarwp-select",maxMenuHeight:n,menuPlacement:o,menuPosition:r,styles:{control:(e,t)=>({...e,fontSize:16,boxShadow:"none",borderColor:t.isFocused?"#000000":"#DFDFDF",width:"100%"}),valueContainer:e=>({...e,paddingLeft:16}),menu:e=>({...e,fontSize:16}),indicatorsContainer:e=>({...e,color:"#000000"})},isClearable:a,options:i,value:s,...d})})]})});var Ac=n(220);function Nc({icon:e,...t}){return(0,Bo.jsx)("button",{...t,children:(0,Bo.jsx)("span",{role:"img","aria-label":"Arrow",children:(0,Bo.jsx)(No.Dashicon,{icon:e})})})}function Lc(e){return(0,Bo.jsx)(Nc,{...e,icon:"arrow-left-alt2"})}function Rc(e){return(0,Bo.jsx)(Nc,{...e,icon:"arrow-right-alt2"})}function Bc(e){const{slides:t=[],text:n,backgroundImage:o,doAfterSlide:r=()=>{},doBeforeSlide:a=()=>{}}=e;if(!t.length)return;const l=Io()("stellarwp-slider",{"has-background":o});return(0,Bo.jsxs)("div",{className:l,style:{backgroundImage:`url(${o})`},children:[n?(0,Bo.jsx)("span",{className:"stellarwp-slider__text",align:"center",children:n}):null,(0,Bo.jsx)(Ac.A,{infiniteLoop:!0,ArrowLeft:Lc,ArrowRight:Rc,doAfterSlide:r,doBeforeSlide:a,children:t.map(e=>e)})]})}function Dc(e){return(0,Bo.jsx)(No.TextControl,{className:"stellarwp",...e})}const Fc=(0,Ao.forwardRef)(function(e,t){return(0,Bo.jsx)("div",{ref:t,children:(0,Bo.jsx)(No.TextareaControl,{className:"stellarwp",...e})})});function zc(e){const{progressBarProps:t,value:n,initialHeight:r=300,aiLoading:a,aiSuggestion:l,onUndo:i,onAccept:s,...c}=e,[d,u]=(0,Ao.useState)(null);return(0,Ao.useEffect)(()=>{d&&function(e){if(e){const t=e.querySelector("textarea");t.style.height="0px";const n=t.scrollHeight>r?t.scrollHeight:r;t.style.height=n+"px"}}(d)},[d,n]),(0,Bo.jsxs)("div",{className:"stellarwp-textarea-progress "+(l?"stellarwp-textarea-progress--suggestion-active":""),children:[(0,Bo.jsx)(Fc,{ref:u,...c,value:l||n}),!(l||a)&&(0,Bo.jsxs)("div",{className:"stellarwp-ai-about-character-limits",children:[n.length,"/1000"]}),!l&&(0,Bo.jsx)(Tc,{...t}),(l||a)&&(0,Bo.jsxs)(No.Flex,{className:"stellarwp-textarea-progress__actions",children:[a&&(0,Bo.jsx)(No.FlexItem,{children:(0,Bo.jsxs)(No.__experimentalView,{className:"stellarwp-textarea-progress__ai-loading",children:[(0,Bo.jsx)(No.Icon,{icon:bc}),`${(0,o.__)("Kadence AI is writing","kadence-blocks")}`,(0,Bo.jsx)(No.Icon,{icon:hc})]})}),l&&!a&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(No.FlexItem,{children:(0,Bo.jsx)(No.Button,{className:"stellarwp-textarea-progress__undo-button",variant:"link",onClick:i,children:`${(0,o.__)("Undo","kadence-blocks")}`})}),(0,Bo.jsx)(No.FlexItem,{children:(0,Bo.jsx)(No.Button,{className:"stellarwp-textarea-progress__approve-button",icon:mc,variant:"link",onClick:s,children:`${(0,o.__)("Use This Copy","kadence-blocks")}`})})]})]})]})}function Hc(e){const{label:t,description:n}=e;return(0,Bo.jsxs)("div",{className:"tone-select__option",children:[(0,Bo.jsxs)("b",{children:[t,"."]}),n?` ${n}`:null]})}(0,Ao.forwardRef)(function(e,t){const{maxMenuHeight:n,menuPlacement:o,options:r=[],value:a,...l}=e;if(r.length)return(0,Bo.jsx)("div",{ref:t,children:(0,Bo.jsx)(So,{maxMenuHeight:n,menuPlacement:o,classNamePrefix:"stellarwp-tone",value:a,options:r,getOptionLabel:e=>(0,Bo.jsx)(Hc,{...e}),...l})})});const $c=window.wp.dom;function Vc(e){const{pageNumber:t,isComplete:n=!1}=e,o=Io()("stellarwp","step-count",{"is-complete":n}),r=n?(0,Bo.jsx)(No.Icon,{icon:"saved"}):t;return(0,Bo.jsx)("span",{className:o,children:r})}function Wc(){const[e,t]=(0,Ao.useState)(!1),[n,o]=(0,Ao.useState)(!1);return{loading:e,error:n,saveAiWizardData:async function(e){t(!0),o(!1);try{if(await To()({path:"/wp/v2/settings",method:"POST",data:{kadence_blocks_prophecy:JSON.stringify(e)}}))return t(!1),!0}catch(e){const n=e?.message?e.message:e;return console.log(`ERROR: ${n}`),t(!1),o(!0),!1}},getAiWizardData:async function(){t(!0),o(!1);try{const e=await To()({path:"/wp/v2/settings",method:"GET"});if(e&&(t(!1),e?.kadence_blocks_prophecy))return e.kadence_blocks_prophecy}catch(e){const n=e?.message?e.message:e;return console.log(`ERROR: ${n}`),t(!1),o(!0),{}}}}}function Uc({className:e,contentLabel:t,logo:n,backButtonText:r=(0,o.__)("Back","kadence-blocks"),forwardButtonText:a=(0,o.__)("Next","kadence-blocks"),backButtonDisabled:l=!1,forwardButtonDisabled:i=!1,onPageChange:s=()=>{},onClose:c=()=>{},onPrimaryClick:d=()=>{},primaryButtonText:u=(0,o.__)("Save","kadence-blocks"),primaryButtonDisabled:p=!1,onSecondaryClick:g,secondaryButtonText:m,credits:h="",photographyOnly:b,pages:f=[],isFullScreen:v=!1}){const y=(0,Ao.useRef)(null),[k,x]=(0,Ao.useState)(0),[w,_]=(0,Ao.useState)(new Set),{saveAiWizardData:S}=Wc();(0,Ao.useEffect)(()=>{s&&s(k),y.current&&$c.focus.tabbable.find(y.current)[0]?.focus()},[k]);const j=f&&f?.[k]?.id?f[k].id:`page-${k}`,C=k>0,I=k<f.length-1,O=e=>w.has(e),{state:M,dispatch:P}=bl();return 0===f.length?null:(0,Bo.jsxs)(No.Modal,{title:n,className:Io()("components-guide","stellarwp",e,j,{"is-fullscreen":v}),contentLabel:t,onRequestClose:c,ref:y,children:[(0,Bo.jsx)("div",{className:"components-guide__container",children:(0,Bo.jsxs)("div",{className:"components-guide__page",children:[f[k].image,f[k].content]})}),(0,Bo.jsxs)("div",{className:"components-guide__footer",children:[C&&(0,Bo.jsx)(dc,{className:"components-wizard__back-button",disabled:l,onClick:()=>{C&&x(k-1)},children:r}),f.length>1&&(0,Bo.jsx)("ul",{className:"components-guide__page-control","aria-label":(0,o.__)("Guide controls","kadence-blocks"),children:f.map((e,t)=>{return(0,Bo.jsx)("li",{"aria-current":t===k?"step":void 0,children:(0,Bo.jsx)(dc,{className:Io()("wizard-step",{"is-complete":O(t),"is-current":t===k}),disabled:(n=t,n>w.size||null),icon:(0,Bo.jsx)(Vc,{pageNumber:t+1,isComplete:O(t),isSelected:t===k}),"aria-label":(0,o.sprintf)(/* translators: 1: current page number 2: total number of pages */ /* translators: 1: current page number 2: total number of pages */ (0,o.__)("Page %1$d of %2$d","kadence-blocks"),t+1,f.length),text:e.step,onClick:()=>x(t)},t)},t);var n})}),I&&(0,Bo.jsx)(dc,{variant:"primary",className:"components-wizard__forward-button",disabled:i,onClick:async function(){if(!I)return;P({type:"SET_SAVING",payload:!0});const{firstTime:e,saving:t,saveError:n,...o}=M;await S({firstTime:!1,...o})&&(P({type:"SET_SAVING",payload:!1}),x(k+1),_(e=>{const t=new Set(e.values());return t.add(k),t}))},children:a}),!I&&(0,Bo.jsxs)("div",{className:"components-wizard__finish-button-container",children:[g&&"function"==typeof g?(0,Bo.jsx)(dc,{variant:"link",className:"components-wizard__secondary-button",onClick:g,children:m||""}):null,b&&(0,Bo.jsx)(dc,{variant:"primary",className:"components-wizard__primary-button",disabled:p,onClick:d,children:u}),!b&&(0,Bo.jsx)("div",{className:"kt-generate-wrap",children:(0,Bo.jsx)(dc,{variant:"primary",className:"components-wizard__primary-button",disabled:p,onClick:d,children:u+" "+(0,o.__)("(70 Credits)","kadence-blocks")})})]})]})]})}const Zc=[],Gc=()=>{const{wp:e}=window;return e.media.view.MediaFrame.Select.extend({featuredImageToolbar(t){this.createSelectToolbar(t,{text:e.media.view.l10n.setFeaturedImage,state:this.options.state})},editState(){const t=this.state("featured-image").get("selection"),n=new e.media.view.EditImage({model:t.single(),controller:this}).render();this.content.set(n),n.loadEditor()},createStates:function(){this.on("toolbar:create:featured-image",this.featuredImageToolbar,this),this.on("content:render:edit-image",this.editState,this),this.states.add([new e.media.controller.FeaturedImage,new e.media.controller.EditImage({model:this.options.editImage})])}})},qc=()=>{const{wp:e}=window;return e.media.view.MediaFrame.Post.extend({galleryToolbar(){const t=this.state().get("editing");this.toolbar.set(new e.media.view.Toolbar({controller:this,items:{insert:{style:"primary",text:t?(0,o.__)("Update Collection","kadence-blocks"):(0,o.__)("Create Collection","kadence-blocks"),priority:80,requires:{library:!0},click(){const e=this.controller,t=e.state();e.close(),t.trigger("update",t.get("library")),e.setState(e.options.state),e.reset()}}}}))},galleryEditToolbar(){const t=this.state().get("editing");this.toolbar.set(new e.media.view.Toolbar({controller:this,items:{insert:{style:"primary",text:t?(0,o.__)("Update Collection","kadence-blocks"):(0,o.__)("Add to Collection","kadence-blocks"),priority:80,requires:{library:!0},click(){const e=this.controller,t=e.state();e.close(),t.trigger("update",t.get("library")),e.setState(e.options.state),e.reset()}}}}))},galleryAddToolbar(){this.toolbar.set(new e.media.view.Toolbar({controller:this,items:{insert:{style:"primary",text:(0,o.__)("Add to Collection","kadence-blocks"),priority:80,requires:{selection:!0},click(){const e=this.controller,t=e.state();e.state("gallery-edit").get("library").add(t.get("selection").models),t.trigger("reset"),e.setState("gallery-edit"),this.controller.modal.focusManager.focus()}}}}))},editState(){const t=this.state("gallery").get("selection"),n=new e.media.view.EditImage({model:t.single(),controller:this}).render();this.content.set(n),n.loadEditor()},createStates:function(){this.on("toolbar:create:main-gallery",this.galleryToolbar,this),this.on("toolbar:create:gallery-add",this.galleryAddToolbar,this),this.on("toolbar:create:gallery-edit",this.galleryEditToolbar,this),this.on("content:render:edit-image",this.editState,this),this.states.add([new e.media.controller.Library({id:"gallery",title:(0,o.__)("Create Collection","kadence-blocks"),priority:40,toolbar:"main-gallery",filterable:"uploaded",multiple:"add",editable:!1,library:e.media.query({type:"image",...this.options.library})}),new e.media.controller.EditImage({model:this.options.editImage}),new e.media.controller.GalleryEdit({title:(0,o.__)("Edit Collection","kadence-blocks"),library:this.options.selection,editing:this.options.editing,menu:"gallery",displaySettings:!1,multiple:!0}),new e.media.controller.GalleryAdd({title:(0,o.__)("Add to Collection","kadence-blocks")})])}})},Kc=e=>["sizes","mime","type","subtype","id","url","alt","link","caption"].reduce((t,n)=>(e?.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),Jc=e=>{const{wp:t}=window;return t.media.query({order:"ASC",orderby:"post__in",post__in:e,posts_per_page:-1,query:!0,type:"image"})};class Yc extends Ao.Component{constructor({allowedTypes:e,gallery:t=!1,unstableFeaturedImageFlow:n=!1,modalClass:r,multiple:a=!1,title:l=(0,o.__)("Select or Upload Media")}){super(...arguments),this.openModal=this.openModal.bind(this),this.onOpen=this.onOpen.bind(this),this.onSelect=this.onSelect.bind(this),this.onUpdate=this.onUpdate.bind(this),this.onClose=this.onClose.bind(this);const{wp:i}=window;if(t)this.buildAndSetGalleryFrame();else{const t={title:l,multiple:a};e&&(t.library={type:e}),this.frame=i.media(t)}r&&this.frame.$el.addClass(r),n&&this.buildAndSetFeatureImageFrame(),this.initializeListeners()}initializeListeners(){this.frame.on("select",this.onSelect),this.frame.on("update",this.onUpdate),this.frame.on("open",this.onOpen),this.frame.on("close",this.onClose)}buildAndSetGalleryFrame(){const{addToGallery:e=!1,allowedTypes:t,multiple:n=!1,value:o=Zc}=this.props;if(o===this.lastGalleryValue)return;const{wp:r}=window;let a;this.lastGalleryValue=o,this.frame&&this.frame.remove(),a=e?"gallery-library":o&&o.length?"gallery-edit":"gallery",this.GalleryDetailsMediaFrame||(this.GalleryDetailsMediaFrame=qc());const l=Jc(o),i=new r.media.model.Selection(l.models,{props:l.props.toJSON(),multiple:n});this.frame=new this.GalleryDetailsMediaFrame({mimeType:t,state:a,multiple:n,selection:i,editing:!(!o||!o.length)}),r.media.frame=this.frame,this.initializeListeners()}buildAndSetFeatureImageFrame(){const{wp:e}=window,t=Gc(),n=Jc(this.props.value),o=new e.media.model.Selection(n.models,{props:n.props.toJSON()});this.frame=new t({mimeType:this.props.allowedTypes,state:"featured-image",multiple:this.props.multiple,selection:o,editing:!!this.props.value}),e.media.frame=this.frame}componentWillUnmount(){this.frame.remove()}onUpdate(e){const{onSelect:t,multiple:n=!1}=this.props,o=this.frame.state(),r=e||o.get("selection");r&&r.models.length&&t(n?r.models.map(e=>Kc(e.toJSON())):Kc(r.models[0].toJSON()))}onSelect(){const{onSelect:e,multiple:t=!1}=this.props,n=this.frame.state().get("selection").toJSON();e(t?n:n[0])}onOpen(){const{wp:e}=window,{value:t}=this.props;if(this.updateCollection(),this.props.mode&&this.frame.content.mode(this.props.mode),!(Array.isArray(t)?t?.length:t))return;const n=this.props.gallery,o=this.frame.state().get("selection"),r=Array.isArray(t)?t:[t];n||r.forEach(t=>{o.add(e.media.attachment(t))});const a=Jc(r);a.more().done(function(){n&&a?.models?.length&&o.add(a.models)})}onClose(){const{onClose:e}=this.props;e&&e()}updateCollection(){const e=this.frame.content.get();if(e&&e.collection){const t=e.collection;t.toArray().forEach(e=>e.trigger("destroy",e)),t.mirroring._hasMore=!0,t.more()}}openModal(){this.props.gallery&&this.buildAndSetGalleryFrame(),this.frame.open()}render(){return this.props.render({open:this.openModal})}}const Xc=Yc,Qc={wrapper:{boxSizing:"border-box",width:"100%",padding:32,paddingBottom:"16px",marginLeft:"auto",marginRight:"auto",border:"1px solid #DFDFDF",borderRadius:"4px",display:"flex",flexDirection:"column",gap:"24px"},gridWrapper:{maxHeight:"318px",height:"500px",overflow:"hidden",overflowY:"auto",marginRight:"-8px",paddingRight:"9px",position:"relative"},loading:{position:"absolute",inset:"0 0 0 0",backgroundColor:"rgba(255,255,255,0.95)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1},grid:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr 1fr",gap:"16px"},square:{position:"relative",width:"100%",height:"100%",backgroundColor:"#fcfcfc",backgroundSize:"cover",aspectRatio:"1/1"},placeholder:{background:"#F5F5F5",height:"100%",width:"100%",zIndex:2},img:{objectFit:"cover",objectPosition:"center",width:"100%",position:"relative",zIndex:2,aspectRatio:"1/1"},linkWrapper:{paddingTop:16,textAlign:"center",borderTop:"1px solid #DFDFDF"},contentWrapper:{gap:8,textAlign:"center"},title:{fontSize:"14px",fontWeight:600},description:{fontSize:"14px",marginTop:"8px"},importWrapper:{position:"relative",marginBottom:"-24px"},importNotice:{position:"absolute",top:"0",width:"100%",height:"318px",backgroundColor:"rgba(255,255,255,0.9)",display:"flex",fontSize:"18px",alignItems:"center",justifyContent:"center",zIndex:11},spinner:{marginRight:"8px",marginLeft:"8px",marginTop:"4px",marginBottom:"4px"}},ed=["image"];function td({photos:e,loading:t,isLocal:n,collectionLink:r,title:a,description:l,updateCollection:i}){const s=function(e){const[t,n]=(0,Ao.useState)();return(0,Ao.useEffect)(()=>{if(!e)return void n([]);const t=e.length;if(t<12){const o=12-t,r=[...e,...Array.from(Array(o)).map((e,t)=>({alt:`placeholder${t+1}`}))];n(r)}else n(e)},[e]),t}(e),[c,d]=(0,Ao.useState)(!1),[u,p]=(0,Ao.useState)([]),[g,m]=(0,Ao.useState)([]);return(0,Ao.useEffect)(()=>{if(e){const t=[];e.forEach(function(e){t.push(e.id)}),m(t)}else m([])},[e]),(0,Bo.jsxs)("div",{style:Qc.wrapper,children:[(0,Bo.jsxs)("div",{style:Qc.contentWrapper,children:[(0,Bo.jsxs)("div",{style:Qc.title,children:[a," "]}),(0,Bo.jsx)("div",{style:Qc.description,children:l})]}),(0,Bo.jsxs)("div",{style:Qc.importWrapper,className:"kb-images-custom-import",children:[t&&(0,Bo.jsxs)("div",{style:Qc.importNotice,className:"kb-importing-information",children:[(0,Bo.jsx)(No.Spinner,{style:Qc.spinner})," ",(0,o.__)("Loading…","kadence-blocks")]}),c&&(0,Bo.jsxs)("div",{style:Qc.importNotice,className:"kb-importing-information",children:[(0,Bo.jsx)(No.Spinner,{style:Qc.spinner})," ",(0,o.__)("Importing Images…","kadence-blocks")]})]}),(0,Bo.jsx)("div",{style:Qc.gridWrapper,className:"kb-images-custom-scroll-bar",children:(0,Bo.jsx)("div",{style:Qc.grid,children:s&&s.length>0?s.map((e,t)=>(0,Bo.jsxs)(No.FlexBlock,{style:Qc.square,children:[(0,Bo.jsx)(No.FlexBlock,{className:"loading-behind-image",style:Qc.loading,children:(0,Bo.jsx)(No.Spinner,{})}),e?.sizes?(0,Bo.jsx)("img",{style:Qc.img,alt:e.alt,src:e?.sizes?.[0]?.src?e.sizes[0].src:e?.url}):(0,Bo.jsx)(No.FlexBlock,{style:{...Qc.square,...Qc.placeholder}},e.alt)]},t)):Array.from("123456789ABC").map(e=>(0,Bo.jsx)(No.FlexBlock,{style:{...Qc.square,...Qc.placeholder}},e))})}),(0,Bo.jsx)(No.Flex,{children:(0,Bo.jsx)(No.FlexBlock,{style:Qc.linkWrapper,children:(0,Bo.jsx)(Xc,{onSelect:e=>function(e){const t=e.map(e=>({id:e.id,post_id:e.id,alt:e.alt||e.name,url:e?.sizes?.large?.url||e?.sizes?.full?.url,sizes:[{name:"thumbnail",src:e?.sizes?.thumbnail?.url||e?.sizes?.large?.url||e?.sizes?.full?.url}]}));i(t)}(e),allowedTypes:ed,multiple:!0,gallery:!0,title:"Edit Collection",value:g,render:({open:t})=>(0,Bo.jsx)(dc,{variant:"link",disabled:c,text:(0,o.__)("Edit Collection","kadence-blocks"),onClick:()=>function(t){c||(!n&&e?.length>0?async function(t){d(!0);const n=await async function(e){try{return await To()({path:"/kb-design-library/v1/process_images",method:"POST",data:{images:e}})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),!1}}(e);if(!1!==n){const e=[];n.forEach(function(t){e.push(t.id)}),m(e),setTimeout(function(){t(),d(!1)},100)}else d(!1)}(t):t())}(t),style:{fontSize:"14px"}})})})})]})}const nd=(0,Ao.forwardRef)(function({icon:e,size:t=24,...n},o){return(0,Ao.cloneElement)(e,{width:t,height:t,...n,ref:o})}),od=(0,Bo.jsx)(Ro.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Bo.jsx)(Ro.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})}),rd=(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Bo.jsx)(Ro.Path,{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"})}),ad=({onComplete:e,onCancel:t})=>{const[n,o]=(0,Ao.useState)(null);return(0,Bo.jsxs)("div",{className:"advanced-select-menu__input",children:[(0,Bo.jsx)("input",{className:"advanced-select-menu__input-item",onChange:e=>o(e.target.value),onKeyDown:function(t){t.stopPropagation(),"Enter"===t.key&&e(n)},placeholder:"Rename this collection",autoFocus:!0,onClick:function(e){e.stopPropagation()}}),(0,Bo.jsxs)("div",{className:"advanced-select-menu__option-item__actions is-edit",children:[(0,Bo.jsx)(dc,{size:"small",variant:"link",onClick:t,children:"Cancel"}),(0,Bo.jsx)(dc,{size:"small",variant:"primary",onClick:function(t){t.stopPropagation(),e(n)},children:"Save"})]})]})},ld=(0,Bo.jsx)("svg",{viewBox:"0 0 18 18",fill:"none",children:(0,Bo.jsx)("path",{d:"M2.25 12.9374V15.7499H5.0625L13.3575 7.45492L10.545 4.64242L2.25 12.9374ZM15.5325 5.27992C15.825 4.98742 15.825 4.51492 15.5325 4.22242L13.7775 2.46742C13.485 2.17492 13.0125 2.17492 12.72 2.46742L11.3475 3.83992L14.16 6.65242L15.5325 5.27992Z",fill:"currentColor"})}),id=(0,Bo.jsx)("svg",{viewBox:"0 0 18 18",fill:"none",children:(0,Bo.jsx)("path",{d:"M4.5 14.25C4.5 15.075 5.175 15.75 6 15.75H12C12.825 15.75 13.5 15.075 13.5 14.25V5.25H4.5V14.25ZM6 6.75H12V14.25H6V6.75ZM11.625 3L10.875 2.25H7.125L6.375 3H3.75V4.5H14.25V3H11.625Z",fill:"currentColor"})}),sd=(0,Bo.jsx)("svg",{viewBox:"0 0 18 16",fill:"none",children:(0,Bo.jsx)("path",{d:"M6.99984 10.1458L8.04315 7.87665L10.3123 6.83333L8.04315 5.79002L6.99984 3.52083L5.95653 5.79002L3.68734 6.83333L5.95653 7.87665L6.99984 10.1458ZM6.99984 13.1667L5.02067 8.8125L0.666504 6.83333L5.02067 4.85417L6.99984 0.5L8.979 4.85417L13.3332 6.83333L8.979 8.8125L6.99984 13.1667ZM14.1665 15.5L13.1873 13.3125L10.9998 12.3333L13.1873 11.3333L14.1665 9.16667L15.1665 11.3333L17.3332 12.3333L15.1665 13.3125L14.1665 15.5Z",fill:"currentColor"})}),cd=({option:e,onOptionSelect:t,isActive:n,doNotClose:o})=>{const[r,a]=(0,Ao.useState)("default"),{updateRecord:l,deleteRecord:i}=(0,Ao.useContext)(ud);(0,Ao.useEffect)(()=>{o("default"!==r)},[r]);const s=e=>t=>{t.stopPropagation(),a(e)};return(0,Bo.jsxs)("div",{className:`advanced-select-menu__option-item${n?" is-active":""}${e.useActions?" use-actions":""}`,children:["edit"!==r&&(0,Bo.jsxs)("div",{className:"advanced-select-menu__option-item__label",onClick:n=>t(e),children:["aiGenerated"===e.value&&(0,Bo.jsx)(nd,{icon:sd,size:17}),e.label]}),"default"===r&&e.useActions&&(0,Bo.jsxs)("div",{className:"advanced-select-menu__option-item__actions is-icons",children:[(0,Bo.jsx)(nd,{icon:ld,size:17,onClick:s("edit")}),(0,Bo.jsx)(nd,{icon:id,size:17,onClick:s("delete")})]}),"edit"===r&&(0,Bo.jsx)(ad,{onComplete:function(t){l(t||e.label,e.value),a("default")},onCancel:s("default")}),"delete"===r&&(0,Bo.jsxs)("div",{className:"advanced-select-menu__option-item__actions is-delete",children:[(0,Bo.jsx)(dc,{size:"small",variant:"link",onClick:s("default"),children:"Cancel"}),(0,Bo.jsx)(dc,{size:"small",isDestructive:!0,onClick:function(t){t.stopPropagation(),i(e.value),a("default")},children:"Delete Collection"})]})]})},dd=function(e){const{width:t,options:n,onSelect:r,value:a,allowClose:l}=e,{createRecord:i}=(0,Ao.useContext)(ud),[s,c]=(0,Ao.useState)([]),[d,u]=(0,Ao.useState)(!1);(0,Ao.useEffect)(()=>{n&&n.length>0&&c(n.reduce((e,t)=>t.options&&0!==t.options.length?[...e,t]:e,[]))},[n]);const p=e=>t=>{t.stopPropagation(),u(e)};function g(e){r(e)}return(0,Bo.jsxs)("div",{className:"stellarwp advanced-select-menu",style:{width:t},children:[d?(0,Bo.jsx)("div",{className:"advanced-select-menu__create-input",children:(0,Bo.jsx)(ad,{onComplete:function(e){i(e),u(!1)},onCancel:p(!1)})}):(0,Bo.jsxs)(dc,{className:"advanced-select-menu__create",onClick:p(!0),children:[(0,o.__)("Make My Own Collection","kadence-blocks"),(0,Bo.jsx)(nd,{icon:rd,size:20})]}),s&&s.length>0&&s.map(e=>(0,Bo.jsxs)("div",{className:"advanced-select-menu__option-wrapper",children:[(0,Bo.jsx)("div",{className:"advanced-select-menu__option-category",children:e.label}),e.options.map(e=>(0,Bo.jsx)(cd,{option:e,onOptionSelect:g,isActive:a===e.value,doNotClose:e=>l(!e)},e.value))]},e.label))]})},ud=(0,Ao.createContext)({}),pd=(0,Ao.forwardRef)(function(e,t){const{value:n,label:o,options:r,onChange:a,createRecord:l,updateRecord:i,deleteRecord:s}=e,[c,d]=(0,Ao.useState)("auto"),[u,p]=(0,Ao.useState)(!1),[g,m]=(0,Ao.useState)(!0),h=(0,Ao.useRef)();function b(e){e.stopPropagation(),h?.current&&e?.target&&!h.current.contains(e.target)&&g&&p(!1)}function f(){}return(0,Ao.useEffect)(()=>{h&&h.current&&d(h.current.clientWidth-32+"px")},[h]),(0,Ao.useEffect)(()=>(document.addEventListener("click",b),()=>{document.removeEventListener("click",b)}),[g]),(0,Bo.jsx)(ud.Provider,{value:{createRecord:l,updateRecord:i,deleteRecord:s},children:(0,Bo.jsxs)("div",{className:"stellarwp components-advanced-select",ref:t,children:[o&&(0,Bo.jsx)("label",{className:"components-input-control__label",children:o}),(0,Bo.jsx)("div",{className:"stellarwp-advancedSelect",ref:h,children:(0,Bo.jsxs)(dc,{className:u?"is-open":"",onClick:()=>p(!u),children:[(0,Bo.jsxs)("div",{className:"stellarwp-advancedSelect__button-content",children:[(0,Bo.jsx)("div",{className:"stellarwp-advancedSelect__button-label",children:n?.label}),(0,Bo.jsx)("div",{className:"stellarwp-advancedSelect__button-icon",children:(0,Bo.jsx)(nd,{size:25,icon:od})})]}),u&&(0,Bo.jsx)(No.Popover,{placement:"bottom-start",offset:8,animate:!1,className:"stellarwp-advancedSelect__content",onClose:f,onFocusOutside:f,children:(0,Bo.jsx)(dd,{width:c,options:r,onSelect:a,value:n?.value,allowClose:m})})]})})]})})});function gd({items:e=[],selectedItems:t=[],onChange:n}){const[r,a]=(0,Ao.useState)(e);return(0,Ao.useEffect)(()=>{a(e)},[e]),(0,Bo.jsx)("div",{className:"ai-wizard-button-list",children:(0,Bo.jsx)(No.ButtonGroup,{className:"ai-wizard-button-list_wrapper",children:r.map(e=>(0,Bo.jsxs)("div",{className:"ai-wizard-button-list_item_wrap",children:[(0,Bo.jsxs)(dc,{className:"ai-wizard-button-list_item"+(t.includes(e.value)?" is-selected":""),onClick:o=>function(e){const o=[...t],r=o.indexOf(e);-1!==r?o.splice(r,1):o.push(e),n(o)}(e.value),children:[(0,Bo.jsx)("div",{className:"ai-wizard-button-list_item-icon",children:(0,Bo.jsx)(No.Icon,{icon:e.icon})}),(0,Bo.jsxs)("div",{className:"ai-wizard-button-list_item-content",children:[(0,Bo.jsx)("div",{className:"ai-wizard-button-list_item-title-area",children:(0,Bo.jsx)("div",{className:"ai-wizard-button-list_item-title",children:e.label})}),e.description&&(0,Bo.jsx)("div",{className:"ai-wizard-button-list_item-description",children:e.description})]}),(0,Bo.jsxs)("div",{className:"ai-wizard-button-list_item-active",children:[(0,Bo.jsx)(No.Icon,{icon:"saved"}),t.length>1&&t[0]===e.value&&(0,Bo.jsx)("div",{className:"ai-wizard-button-list_item-primary",children:(0,o.__)("Primary","kadence-starter-templates")})]})]}),t.includes(e.value)&&t.length>1&&t[0]!==e.value&&(0,Bo.jsx)(dc,{className:"ai-wizard-button-list_item-make-primary",onClick:o=>function(e){const o=[...t],a=o.indexOf(e);if(-1!==a){const[e]=o.splice(a,1);o.unshift(e),console.log("return selected",r.filter(e=>o.includes(e.value))),n(o)}}(e.value),children:(0,o.__)("Make Primary","kadence-starter-templates")})]}))})})}const md=n.p+"images/ai-modal-intro.f66e5f62.png",hd={background:{height:"100%",background:"linear-gradient(90deg, rgba(0, 115, 230, 0) 0, rgba(0, 115, 230, 0) 60%, #0073E6 99.44%)"},headline:{maxWidth:420},content:{maxWidth:480,marginLeft:32},imageWrapper:{overflow:"hidden"},image:{maxHeight:"60vh",borderRadius:8}},bd=(0,o.__)("Elevate Your Website Creation: Design Library + Kadence AI","kadence-blocks"),fd=(0,o.__)("Introducing Kadence AI, our AI-powered engine for creating websites.","kadence-blocks"),vd=(0,o.__)("Forget about learning AI - just tell us about yourself, and let Kadence AI take care of the rest. Say goodbye to blank screen anxiety. Welcome effective content that represents your brand.","kadence-blocks");function yd(){return(0,Bo.jsx)(No.Flex,{style:hd.background,children:(0,Bo.jsxs)(No.Flex,{gap:22.5,children:[(0,Bo.jsx)(No.FlexBlock,{children:(0,Bo.jsx)(No.Flex,{className:"inner",justify:"end",children:(0,Bo.jsxs)(No.FlexBlock,{style:hd.content,className:"stellarwp-body",children:[(0,Bo.jsx)("h1",{className:"stellarwp-h1",style:hd.headline,children:bd}),(0,Bo.jsx)("p",{children:fd}),(0,Bo.jsx)("p",{children:vd})]})})}),(0,Bo.jsx)(No.FlexBlock,{style:hd.imageWrapper,children:(0,Bo.jsx)("img",{src:md,style:hd.image})})]})})}function kd({children:e}){if(e)return(0,Bo.jsx)(No.Card,{isBorderless:!0,size:"large",className:"slide-card",children:(0,Bo.jsx)(No.CardBody,{children:e})})}function xd({headline:e,content:t}){return(0,Bo.jsxs)("div",{className:"slide-card-row",children:[e?(0,Bo.jsx)("p",{className:"slide-card-row__headline",children:(0,Bo.jsx)("b",{children:e})}):null,t?(0,Bo.jsx)("div",{className:"slide-card-row__content",children:t}):null]})}function wd(){return(0,Bo.jsx)(kd,{children:(0,Bo.jsxs)(No.__experimentalVStack,{spacing:"6",children:[(0,Bo.jsx)(xd,{headline:(0,o.__)("I am","kadence-blocks"),content:(0,o.__)("An Organization","kadence-blocks")}),(0,Bo.jsx)(xd,{headline:(0,o.__)("Organization Name","kadence-blocks"),content:(0,o.__)("Education 4All","kadence-blocks")}),(0,Bo.jsx)(xd,{headline:(0,o.__)("Where are you based?","kadence-blocks"),content:(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsxs)("b",{children:[(0,o.__)("Service Area","kadence-blocks"),": "]}),(0,o.__)("Latin America","kadence-blocks")]})}),(0,Bo.jsx)(xd,{headline:(0,o.__)("What industry are you in?","kadence-blocks"),content:(0,o.__)("Charity","kadence-blocks")})]})})}function _d(){return(0,Bo.jsx)(kd,{children:(0,Bo.jsxs)(No.__experimentalVStack,{spacing:"6",children:[(0,Bo.jsx)(xd,{headline:(0,o.__)("I am","kadence-blocks"),content:(0,o.__)("A company","kadence-blocks")}),(0,Bo.jsx)(xd,{headline:(0,o.__)("Company Name","kadence-blocks"),content:(0,o.__)("Healing Touch","kadence-blocks")}),(0,Bo.jsx)(xd,{headline:(0,o.__)("Where are you based?","kadence-blocks"),content:(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsxs)("b",{children:[(0,o.__)("Business Address","kadence-blocks"),": "]}),(0,o.__)("123 Some St., Seattle, Washington","kadence-blocks")]})}),(0,Bo.jsx)(xd,{headline:(0,o.__)("What industry are you in?","kadence-blocks"),content:(0,o.__)("Spa","kadence-blocks")})]})})}function Sd(){return(0,Bo.jsx)(kd,{children:(0,Bo.jsxs)(No.__experimentalVStack,{spacing:"6",children:[(0,Bo.jsx)(xd,{headline:(0,o.__)("I am","kadence-blocks"),content:(0,o.__)("A company","kadence-blocks")}),(0,Bo.jsx)(xd,{headline:(0,o.__)("Company Name","kadence-blocks"),content:(0,o.__)("Prospera","kadence-blocks")}),(0,Bo.jsx)(xd,{headline:(0,o.__)("Where are you based?","kadence-blocks"),content:(0,Bo.jsx)(Bo.Fragment,{children:(0,Bo.jsx)("b",{children:(0,o.__)("Online Only","kadence-blocks")})})}),(0,Bo.jsx)(xd,{headline:(0,o.__)("What industry are you in?","kadence-blocks"),content:(0,o.__)("Professional Services","kadence-blocks")})]})})}function jd(){return(0,Bo.jsx)(kd,{children:(0,Bo.jsxs)(No.__experimentalVStack,{spacing:"6",children:[(0,Bo.jsx)(xd,{headline:(0,o.__)("I am","kadence-blocks"),content:(0,o.__)("An Individual","kadence-blocks")}),(0,Bo.jsx)(xd,{headline:(0,o.__)("Your Name","kadence-blocks"),content:(0,o.__)("Spencer Sharp","kadence-blocks")}),(0,Bo.jsx)(xd,{headline:(0,o.__)("Where are you based?","kadence-blocks"),content:(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsxs)("b",{children:[(0,o.__)("Service Area","kadence-blocks"),": "]}),(0,o.__)("USA","kadence-blocks")]})}),(0,Bo.jsx)(xd,{headline:(0,o.__)("What industry are you in?","kadence-blocks"),content:(0,o.__)("Coaching","kadence-blocks")})]})})}const Cd={container:{height:"100%"},leftContent:{maxWidth:640,marginInline:"auto"},rightContent:{marginRight:32,height:"100%",display:"flex",flexDirection:"column"},formWrapper:{maxWidth:504,paddingRight:32,paddingLeft:32},inputError:{fontSize:11,color:"red"}},Id=(0,o.__)("Your Information","kadence-blocks"),Od=(0,o.__)("Please provide detailed information about yourself, your company, or your organization to enhance the quality of our results.","kadence-blocks");function Md(){const[e,t]=(0,Ao.useState)(null),[n,r]=(0,Ao.useState)(""),[a,l]=(0,Ao.useState)(0),{state:i,dispatch:s}=bl(),{companyName:c,entityType:d,locationInput:u,lang:p,locationType:g,industry:m}=i;function h(e){return d&&Ya?.[d]?.[e]?Ya[d][e]:"..."}return(0,Ao.useEffect)(()=>{const e=Ka.filter(e=>e.value===d);e.length&&t(e[0])},[d]),(0,Ao.useEffect)(()=>{const e=Ja.filter(e=>e.value===p);if(e.length)r(e[0]);else{const e=Ja.filter(e=>"en-US"===e.value);e.length&&r(e[0])}},[p]),(0,Ao.useEffect)(()=>{switch(g){case Qa:return void s({type:"SET_LOCATION",payload:`${Qa}: ${u}`});case el:s({type:"SET_LOCATION",payload:`${el}: ${u}`})}},[u,g]),(0,Bo.jsxs)(No.Flex,{gap:0,align:"normal",style:Cd.container,children:[(0,Bo.jsx)(No.FlexBlock,{style:{alignSelf:"center"},children:(0,Bo.jsx)(No.Flex,{justify:"center",style:Cd.leftContent,children:(0,Bo.jsxs)(No.FlexBlock,{style:Cd.formWrapper,className:"stellarwp-body",children:[(0,Bo.jsx)(jc,{headline:(0,Bo.jsxs)("span",{className:"has-beta-pill",children:[(0,o.__)("Your Sites's Language","kadence-blocks")," ",(0,Bo.jsx)("span",{className:"beta-pill",children:"Beta"})]}),content:(0,o.__)("Select your preferred language for AI-generated content on your site. Note: AI content quality varies by language due to available training data; English is best supported.","kadence-blocks"),children:(0,Bo.jsx)(No.__experimentalVStack,{spacing:4,style:{margin:"0 auto 30px"},children:(0,Bo.jsx)(Ec,{label:"",value:n,onChange:function(e){s({type:"SET_LANG",payload:e.value})},options:Ja})})}),(0,Bo.jsx)(jc,{headline:Id,content:Od,children:(0,Bo.jsxs)(No.__experimentalVStack,{spacing:4,style:{margin:"0 auto"},children:[(0,Bo.jsx)(Ec,{label:(0,o.__)("I am","kadence-blocks"),value:e,onChange:function(e){s({type:"SET_ENTITY_TYPE",payload:e.value})},options:Ka}),(0,Bo.jsx)(Dc,{label:h("label"),autoFocus:!0,placeholder:h("placeholder"),value:c,onChange:e=>{e&&e.length>75&&(e=e.substring(0,75)),s({type:"SET_COMPANY_NAME",payload:e})}}),(0,Bo.jsx)(Ic,{label:(0,o.__)("Where are you based?","kadence-blocks"),locations:nl,selected:g,onChange:function(e){e===tl&&(s({type:"SET_LOCATION",payload:tl}),s({type:"SET_LOCATION_TYPE",payload:tl})),s({type:"SET_LOCATION_TYPE",payload:e})}}),g&&g!==tl?(0,Bo.jsx)(Dc,{label:"Location",placeholder:function(){if(g!==tl){const e=nl.filter(e=>e.value===g);return e.length&&e[0]?.placeholder?e[0].placeholder:"..."}return"..."}(),value:u,onChange:e=>{e&&e.length>140&&(e=e.substring(0,140)),s({type:"SET_LOCATION_INPUT",payload:e})},help:function(){if(g!==tl){const e=nl.filter(e=>e.value===g);return e.length&&e[0]?.help?e[0].help:""}return""}()}):null,(0,Bo.jsx)(cc,{label:(0,o.__)("What Industry are you in?","kadence-blocks"),placeholder:(0,o.__)("Find your industry","kadence-blocks"),detachedMediaQuery:"none",onSelect:function(e){e&&e.length>75&&(e=e.substring(0,75)),s({type:"SET_INDUSTRY",payload:e})},currentValue:m||"",initialState:{isOpen:!1,query:m||"",params:{hitsPerPage:8,highlightPreTag:"<mark>",highlightPostTag:"</mark>"}}})]})})]})})}),(0,Bo.jsx)(No.FlexBlock,{display:"flex",children:(0,Bo.jsx)(No.Flex,{justify:"center",children:(0,Bo.jsx)(No.FlexBlock,{style:Cd.rightContent,children:(0,Bo.jsx)(Bc,{backgroundImage:rl[a],text:(0,o.__)("Not sure where to start? Here's some real life examples!","kadence-blocks"),doBeforeSlide:e=>l(e.nextSlide),slides:[(0,Bo.jsx)(_d,{}),(0,Bo.jsx)(jd,{}),(0,Bo.jsx)(Sd,{}),(0,Bo.jsx)(wd,{})]})})})})]})}const Pd=["Education 4All is a non-profit organization dedicated to providing \n underprivileged children with access to quality education.","Through initiatives like school infrastructure development, teacher \n training, curriculum development, and learning resource provision, we empower \n children, their families, and communities.","Our mission is to break the cycle of poverty by equipping children with the \n tools they need for a brighter future and fostering sustainable development."];function Td(){return(0,Bo.jsx)(kd,{children:(0,Bo.jsx)(xd,{headline:(0,o.__)("Tell us about your organization","kadence-blocks"),content:Pd.map((e,t)=>(0,Bo.jsx)("p",{children:e},t))})})}const Ed=["Healing Touch is a leading massage therapy business renowned \n for our personalized, holistic treatments offered in a tranquil environment.","Our team of highly skilled therapists seamlessly blends various techniques to \n cater to the unique needs of each individual, offering effective relief from \n tension, pain, and stress.","Our services encompass a wide range of offerings, including Swedish, deep \n tissue, hot stone, and prenatal massage, along with complementary treatments \n like reflexology, acupuncture, and energy work.","With an unwavering commitment to excellence and promoting relaxation, we are \n dedicated to helping our valued clients restore vitality and achieve a \n profound state of deep relaxation."];function Ad(){return(0,Bo.jsx)(kd,{children:(0,Bo.jsx)(xd,{headline:(0,o.__)("Tell us about your business","kadence-blocks"),content:Ed.map((e,t)=>(0,Bo.jsx)("p",{children:e},t))})})}const Nd=["Prospera is a trusted bookkeeping and accounting services company dedicated \n to helping businesses thrive financially.","We specialize in comprehensive bookkeeping, accurate financial reporting, \n tax preparation, and strategic financial planning.","Our tailored solutions cater to small and medium-sized enterprises, entrepreneurs, and professionals, providing them \n with the unique value of expertise, accuracy, and timely insights.","With Prospera, businesses gain the financial clarity and support they need to make \n informed decisions and achieve long-term prosperity."];function Ld(){return(0,Bo.jsx)(kd,{children:(0,Bo.jsx)(xd,{headline:(0,o.__)("Tell us about your business","kadence-blocks"),content:Nd.map((e,t)=>(0,Bo.jsx)("p",{children:e},t))})})}const Rd=["I'm Spencer Sharp, a business coach who is genuinely committed to helping \n entrepreneurs and professionals build businesses they are passionate about \n and lead fulfilling lives.","With practical solutions and personalized guidance, I provide the support \n you need to achieve your goals.","Together, we'll work on creating systems for organization, clarity, and \n growth.","I'll empower you to become a strong leader, take control of your finances, \n and develop effective strategies for marketing, lead conversion, and \n customer fulfillment.","I’ll be your guide on this journey to success, ensuring that your business \n thrives while you live a rewarding life."];function Bd(){return(0,Bo.jsx)(kd,{children:(0,Bo.jsx)(xd,{headline:(0,o.__)("Tell us about yourself","kadence-blocks"),content:Rd.map((e,t)=>(0,Bo.jsx)("p",{children:e},t))})})}const Dd={container:{height:"100%"},leftContent:{maxWidth:640,marginInline:"auto"},rightContent:{marginRight:32,height:"100%",display:"flex",flexDirection:"column"},formWrapper:{maxWidth:504,paddingRight:32,paddingLeft:32},textareaWrapper:{position:"relative"},tooltip:{position:"absolute",top:16,left:"100%",borderRadius:"0px 4px 4px 0px",padding:12,backgroundColor:"#FAFAFA",width:200,zIndex:1,title:{fontSize:12,fontWeight:600},content:{fontSize:11,lineHeight:"14px",letterSpacing:-.2,listStyle:"disc",paddingLeft:14}}},Fd=(0,o.__)("Craft a brief description that explains who you are, your primary attributes and highlight what differentiates you.","kadence-blocks"),zd={COMPANY:` ${(0,o.__)("business","kadence-blocks")}`,INDIVIDUAL:(0,o.__)("self","kadence-blocks"),ORGANIZATION:` ${(0,o.__)("organization","kadence-blocks")}`};function Hd(){const[e,t]=(0,Ao.useState)(),[n,r]=(0,Ao.useState)(0),[a,l]=(0,Ao.useState)(0),[i,s]=(0,Ao.useState)(!1),[c,d]=(0,Ao.useState)(""),[u,p]=(0,Ao.useState)(!1),[g,m]=(0,Ao.useState)(""),{state:h,dispatch:b}=bl(),{missionStatement:f,entityType:v,lang:y,companyName:k}=h,x=(0,o.sprintf)( // translators: %s: entity type // translators: %s: entity type (0,o.__)("Tell us about your %s","kadence-blocks"),zd[v]),w=Ja.filter(e=>e.value===(y||"en-US")),_=(0,o.sprintf)( // translators: %s: language // translators: %s: language (0,o.__)("This should be written in %s.","kadence-blocks"),w?.[0]?.label?w[0].label:"your site language"),{getMissionStatement:S}={getMissionStatement:async function(e,t){try{const n=new URL(window.location.href),o=window?.kadence_blocks_params?.proData?.domain?window.kadence_blocks_params.proData.domain:n.hostname;let r=window?.kadence_blocks_params?.proData?.api_key?window.kadence_blocks_params.proData.api_key:"";r||(r=window?.kadenceHomeParams?.apiKey?window.kadenceHomeParams.apiKey:"");let a=window?.kadence_blocks_params?.site_name?window.kadence_blocks_params.site_name:"";a||(a=window?.kadenceHomeParams?.site_name?window.kadenceHomeParams.site_name:"");let l=window?.kadence_blocks_params?.pSlug?window.kadence_blocks_params.pSlug:"";l||(l=window?.kadenceHomeParams?.pSlug?window.kadenceHomeParams.pSlug:"");let i=window?.kadence_blocks_params?.pVersion?window.kadence_blocks_params.pVersion:"";i||(i=window?.kadenceHomeParams?.pVersion?window.kadenceHomeParams.pVersion:"");const s={domain:o,key:r,site_name:a,product_slug:l,product_version:i},c=await fetch("https://content.startertemplatecloud.com/wp-json/prophecy/v1/proxy/intake/improve-mission-statement",{method:"POST",headers:{"Content-Type":"application/json","X-Prophecy-Token":btoa(JSON.stringify(s))},body:JSON.stringify({text:e,lang:t||"en-US",stream:!0})});if(200!==c?.status){if(424===c?.status)return Promise.reject("license");const e=c?.message?c.message:c;return Promise.reject(e)}return c.body}catch(e){const t=e?.message?e.message:e;return Promise.reject(t)}}};return(0,Ao.useEffect)(()=>{const e=Math.round(f.length/300*100);0==e&&t("initial"),e<50&&e>0&&t("weak"),e>=50&&e<100&&t("medium"),e>=100&&e<200&&t("strong"),e>=200&&e<400&&t("enough"),e>=400&&e<500&&t("less"),e>=500&&t("muchLess"),r(e)},[f]),(0,Bo.jsxs)(No.Flex,{gap:0,align:"normal",style:Dd.container,children:[(0,Bo.jsx)(No.FlexBlock,{style:{alignSelf:"center"},children:(0,Bo.jsx)(No.Flex,{justify:"center",style:Dd.leftContent,children:(0,Bo.jsx)(No.FlexBlock,{style:Dd.formWrapper,className:"stellarwp-body",children:(0,Bo.jsxs)(jc,{headline:x,content:y&&"en-US"!==y?_+" "+Fd:Fd,children:[(0,Bo.jsxs)(No.__experimentalView,{style:Dd.textareaWrapper,children:[(0,Bo.jsx)(zc,{hideLabelFromVision:!0,label:x,placeholder:v===qa?(0,o.sprintf)( // translators: %s: company or individual name // translators: %s: company or individual name (0,o.__)("I am %s, a…","kadence-blocks"),k):(0,o.sprintf)( // translators: %s: company or individual name // translators: %s: company or individual name (0,o.__)("%s is a…","kadence-blocks"),k),value:f,onChange:e=>{b({type:"SET_MISSION_STATEMENT",payload:e}),b({type:"SET_IMAGE_SEARCH_QUERY",payload:""})},progressBarProps:{value:n>=100?100:n,color:ol?.[e]?.color?ol[e].color:"red",message:ol?.[e]?.message?ol[e].message:""},disabled:c,aiLoading:u,aiSuggestion:c,onUndo:()=>d(""),onAccept:()=>{b({type:"SET_MISSION_STATEMENT",payload:c}),d("")}}),i&&(0,Bo.jsxs)(No.__experimentalVStack,{style:Dd.tooltip,children:[(0,Bo.jsx)(No.__experimentalText,{style:Dd.tooltip.title,children:(0,o.__)("Thought Starters","kadence-blocks")}),al[v].length>0&&(0,Bo.jsx)("ul",{style:Dd.tooltip.content,children:al[v].map(e=>(0,Bo.jsx)("li",{children:e},e))})]})]}),!c&&!u&&(0,Bo.jsxs)(Bo.Fragment,{children:[g&&(0,Bo.jsx)("div",{className:"stellarwp-ai-error-text",children:(0,Bo.jsx)("div",{className:"stellarwp-ai-error-content",children:"license"===g?(0,o.__)("Error, license key invalid."):(0,o.__)("Error, AI improve failed, please try again.")})}),(0,Bo.jsxs)(No.Flex,{justify:"space-between",children:[(0,Bo.jsx)(No.FlexItem,{children:n>=100&&n<400&&(0,Bo.jsx)(dc,{className:"stellarwp-ai-improve-button",icon:pc,onClick:()=>{return e=f,p(!0),m(""),void S(e,y).then(e=>{const t=e.getReader();t.read().then(function e({done:n,value:o}){if(n)return void p(!1);const r=function(e){const t=(new TextDecoder).decode(e).split("\n"),n={content:""};return t.forEach(e=>{const t=e.indexOf(":");if(-1!==t){const o=e.slice(0,t).trim(),r=e.slice(t+1).trim();if("data"===o&&"content"!==r)try{const e=JSON.parse(r);e.content&&(n.content+=e.content)}catch(e){console.error("Error parsing JSON data:",e)}}}),n}(o);return r?.content&&d(e=>e+r.content),t.read().then(e)}),p(!1)}).catch(e=>{m("license"===e?"license":"error"),console.log(e),p(!1)});var e},children:(0,o.__)("Improve with AI","kadence-blocks")})}),(0,Bo.jsx)(No.FlexItem,{children:(0,Bo.jsx)(dc,{size:"small",className:"stellarwp-show-tips-button",icon:i?vc:fc,iconPosition:"right",onClick:()=>s(e=>!e),children:i?(0,o.__)("Hide Tips","kadence-blocks"):(0,o.__)("Show Tips","kadence-blocks")})})]})]})]})})})}),(0,Bo.jsx)(No.FlexBlock,{display:"flex",children:(0,Bo.jsx)(No.Flex,{justify:"center",children:(0,Bo.jsx)(No.FlexBlock,{style:Dd.rightContent,children:(0,Bo.jsx)(Bc,{backgroundImage:rl[a],text:(0,o.__)("Not sure where to start? Here's some real life examples!","kadence-blocks"),doBeforeSlide:e=>l(e.nextSlide),slides:[(0,Bo.jsx)(Ad,{}),(0,Bo.jsx)(Bd,{}),(0,Bo.jsx)(Ld,{}),(0,Bo.jsx)(Td,{})]})})})})]})}function $d({tone:e,headline:t,content:n}){return(0,Bo.jsxs)("div",{className:"slide-card-row--tone",children:[e?(0,Bo.jsx)(uc,{text:`${(0,o.__)("Tone","kadence-blocks")}: ${e}`}):null,t?(0,Bo.jsx)("p",{className:"slide-card-row__headline",children:t}):null,n?(0,Bo.jsx)("p",{className:"slide-card-row__content",children:n}):null]})}function Vd(){return(0,Bo.jsx)(kd,{children:(0,Bo.jsxs)(No.__experimentalVStack,{spacing:"6",children:[(0,Bo.jsx)($d,{tone:(0,o.__)("Professional","kadence-blocks"),headline:(0,o.__)("Elevate Your Well-being with Healing Touch's Expert Care","kadence-blocks"),content:(0,o.__)('"Experience the pinnacle of wellness and rejuvenation as our skilled therapists provide you with expert care and tailored massage therapy at Healing Touch."',"kadence-blocks")}),(0,Bo.jsx)($d,{tone:(0,o.__)("Friendly","kadence-blocks"),headline:(0,o.__)("Welcome to Your Personal Oasis","kadence-blocks"),content:(0,o.__)('"Immerse yourself in the ultimate relaxation experience at Healing Touch, where our friendly team of skilled therapists will whisk you away to a serene sanctuary of bliss and rejuvenation."',"kadence-blocks")}),(0,Bo.jsx)($d,{tone:(0,o.__)("Informative","kadence-blocks"),headline:(0,o.__)("Discover the Secrets of Blissful Wellness","kadence-blocks"),content:(0,o.__)('"Experience the transformative power of professional massage therapy and unlock a world of relaxation, pain relief, and enhanced well-being at Healing Touch."',"kadence-blocks")})]})})}function Wd(){return(0,Bo.jsx)(kd,{children:(0,Bo.jsxs)(No.__experimentalVStack,{spacing:"6",children:[(0,Bo.jsx)($d,{tone:(0,o.__)("Engaging","kadence-blocks"),headline:(0,o.__)("Unleash Your Inner Bliss with Healing Touch","kadence-blocks"),content:(0,o.__)('"Discover a transformative sanctuary where your senses will awaken, your spirit will rejuvenate, and your well-being will flourish. Experience the power of Healing Touch today."',"kadence-blocks")}),(0,Bo.jsx)($d,{tone:(0,o.__)("Trustworthy","kadence-blocks"),headline:(0,o.__)("Your Path to Trusted Wellness Begins at Healing Touch","kadence-blocks"),content:(0,o.__)('"Experience the highest standard of care and expertise as our dedicated team guides you on your journey to holistic well-being at Healing Touch."',"kadence-blocks")}),(0,Bo.jsx)($d,{tone:(0,o.__)("Conversational","kadence-blocks"),headline:(0,o.__)("Let's Find Your Perfect Massage Experience at Healing Touch","kadence-blocks"),content:(0,o.__)('"Ready to discover the ultimate relaxation? Let us guide you in finding the perfect massage tailored to your unique needs at Healing Touch."',"kadence-blocks")})]})})}function Ud(){return(0,Bo.jsx)(kd,{children:(0,Bo.jsxs)(No.__experimentalVStack,{spacing:"6",children:[(0,Bo.jsx)($d,{tone:(0,o.__)("Persuasive","kadence-blocks"),headline:(0,o.__)("Embrace the Power of Healing Touch for Unparalleled Relaxation","kadence-blocks"),content:(0,o.__)('"Immerse yourself in a world of relaxation, rejuvenation, and renewed vitality with Healing Touch\'s expert massage therapy, tailored to revitalize your mind, body, and spirit."',"kadence-blocks")}),(0,Bo.jsx)($d,{tone:(0,o.__)("Upbeat","kadence-blocks"),headline:(0,o.__)("Elevate Your Senses, Renew Your Spirit","kadence-blocks"),content:(0,o.__)('"Step into a world of pure bliss and let our expert therapists at Healing Touch Spa uplift your spirits and rejuvenate your body with our invigorating massage therapies."',"kadence-blocks")}),(0,Bo.jsx)($d,{tone:(0,o.__)("Funny","kadence-blocks"),headline:(0,o.__)("Knead a Laugh? Healing Touch Puts the 'Ahh' in Spa-tacular Massages!","kadence-blocks"),content:(0,o.__)('"Get ready to unwind, untangle, and unleash your inner noodle with Healing Touch\'s hilariously heavenly massages!"',"kadence-blocks")})]})})}function Zd(){return(0,Bo.jsx)(kd,{children:(0,Bo.jsxs)(No.__experimentalVStack,{spacing:"6",children:[(0,Bo.jsx)($d,{tone:(0,o.__)("Inspirational","kadence-blocks"),headline:(0,o.__)("Ignite Your Inner Spark, Transform Your Life at Healing","kadence-blocks"),content:(0,o.__)("“Embrace the power of self-care and unlock your body's innate healing potential, as our skilled practitioners rejuvenate your mind, body, and spirit with transformative therapies.\"","kadence-blocks")}),(0,Bo.jsx)($d,{tone:(0,o.__)("Neutral","kadence-blocks"),headline:(0,o.__)("Discover the Essence of Healing Touch at Healing Touch Spa","kadence-blocks"),content:(0,o.__)('"Experience a range of therapeutic treatments and indulge in a serene atmosphere, where you can unwind and rejuvenate your body and mind."',"kadence-blocks")})]})})}const{getSuggestedKeywords:Gd}={getSuggestedKeywords:async function({name:e,entity_type:t,industry:n,location:o,lang:r,description:a}){try{const l=await To()({path:"/kb-design-library/v1/get_keywords",method:"POST",data:{name:e,entity_type:t?.toLowerCase(),industry:n,location:o,description:a,lang:r||"en-US",count:10}}),i=(0,Mo.SafeParseJSON)(l,!1);return Promise.resolve(i?.keywords)}catch(e){const t=e?.message?e.message:e;return Promise.reject(t)}}},{getImageSearchQuery:qd}={getImageSearchQuery:async function({name:e,entity_type:t,industry:n,location:o,description:r}){try{const a=await To()({path:(0,xa.addQueryArgs)("/kb-design-library/v1/get_search_query"),method:"POST",data:{name:e,entity_type:t?.toLowerCase(),industry:n,location:o,description:r}}),l=(0,Mo.SafeParseJSON)(a,!1);return Promise.resolve(l)}catch(e){const t=e?.message?e.message:e;return Promise.reject(t)}}},Kd={container:{height:"100%"},leftContent:{maxWidth:640,marginInline:"auto"},rightContent:{marginRight:32,height:"100%",display:"flex",flexDirection:"column"},formWrapper:{maxWidth:504,paddingRight:32,paddingLeft:32},helperText:{fontSize:12},keywordsLength:{good:"green",poor:"red"}};function Jd(){const{state:e,dispatch:t}=bl(),{companyName:n,entityType:r,industry:a,keywords:l,location:i,missionStatement:s,suggestedKeywords:c,suggestedKeywordsState:d,tone:u,lang:p,imageSearchQuery:g}=e,[m,h]=(0,Ao.useState)(null),[b,f]=(0,Ao.useState)(null),[v,y]=(0,Ao.useState)(null),[k,x]=(0,Ao.useState)(null),[w,_]=(0,Ao.useState)(),{menuHeight:S,menuPlacement:j}=function(e,t){const[n,o]=(0,Ao.useState)(300),[r,a]=(0,Ao.useState)("auto");return(0,Ao.useEffect)(()=>{function n(){if(e&&t){const n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),l=n.bottom-(r.bottom+30),i=l<150?"top":"auto";a(i),o("top"===i?300:l)}}return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)},[e,t]),{menuPlacement:r,menuHeight:n}}(v,k);function C(){t({type:"SET_SUGGESTED_KEYWORDS_STATE",payload:ll}),Gd({name:n,entity_type:r,industry:a,location:i,lang:p,description:s}).then(e=>{_(e),t({type:"SET_SUGGESTED_KEYWORDS",payload:e}),t({type:"SET_SUGGESTED_KEYWORDS_STATE",payload:e?.length?cl:il})}).catch(()=>{t({type:"SET_SUGGESTED_KEYWORDS_STATE",payload:sl})})}return(0,Ao.useEffect)(()=>{l.length>0&&l.length<5?h("poor"):l.length>=5&&h("good")},[l]),(0,Ao.useEffect)(()=>{const e=Ga.filter(e=>e.value===u);e.length&&f(e[0])},[u]),(0,Ao.useEffect)(()=>{C(),g||qd({name:n,entity_type:r,industry:a,location:i,description:s}).then(e=>{console.log("Image Search AI Terms"),console.log(e),e?.query&&t({type:"SET_IMAGE_SEARCH_QUERY",payload:e.query})}).catch(()=>{console.log("error")})},[]),(0,Bo.jsxs)(No.Flex,{gap:0,align:"normal",style:Kd.container,ref:y,children:[(0,Bo.jsx)(No.FlexBlock,{style:{alignSelf:"center"},children:(0,Bo.jsx)(No.Flex,{justify:"center",style:Kd.leftContent,children:(0,Bo.jsx)(No.FlexBlock,{style:Kd.formWrapper,className:"stellarwp-body",children:(0,Bo.jsxs)(No.__experimentalVStack,{spacing:"8",style:{margin:"0 auto"},children:[(0,Bo.jsx)(jc,{headline:(0,o.__)("Add some keywords","kadence-blocks"),content:(0,o.__)("Keywords assist the AI in identifying the most relevant topics to write about.","kadence-blocks"),children:(0,Bo.jsx)(yc,{id:"2",label:(0,o.__)("Keywords","kadence-blocks"),hideLabelFromVision:!0,placeholder:(0,o.__)("Add Keyword…","kadence-blocks"),tags:l,maxTags:10,selectedTags:e=>t({type:"SET_KEYWORDS",payload:e}),suggestedKeywords:c,suggestedKeywordsState:d,onSuggestedKeywordAdded:function(e){const n=c.filter(t=>t!==e);t({type:"SET_SUGGESTED_KEYWORDS",payload:n}),0===n.length&&t({type:"SET_SUGGESTED_KEYWORDS_STATE",payload:dl})},onTryAgain:C,onTagDeleted:function(e){w?.includes(e)&&t({type:"SET_SUGGESTED_KEYWORDS",payload:[...c,e]})},help:(0,Bo.jsx)(Bo.Fragment,{children:(0,Bo.jsxs)(No.Flex,{align:"flex-start",as:"span",style:Kd.helperText,children:[(0,Bo.jsx)(No.FlexBlock,{as:"span",children:(0,o.__)("Separate with commas or the Enter key. Enter between 5 and 10 keywords","kadence-blocks")}),(0,Bo.jsx)(No.FlexItem,{as:"span",style:{color:m&&Kd.keywordsLength.hasOwnProperty(m)?Kd.keywordsLength[m]:"inherit"},children:`${l.length}/10`})]})})})}),(0,Bo.jsx)(jc,{headline:(0,o.__)("Choose your tone","kadence-blocks"),content:(0,o.__)("The tone allows the AI to reflect your personality in its communication style. Select a tone that closely aligns with your own.","kadence-blocks"),children:(0,Bo.jsx)(Ec,{ref:x,maxMenuHeight:S,menuPlacement:j,options:Ga,value:b,onChange:e=>t({type:"SET_TONE",payload:e.value})})})]})})})}),(0,Bo.jsx)(No.FlexBlock,{display:"flex",children:(0,Bo.jsx)(No.Flex,{justify:"center",children:(0,Bo.jsx)(No.FlexBlock,{style:Kd.rightContent,children:(0,Bo.jsx)(Bc,{backgroundImage:rl[0],text:(0,o.__)("Not sure where to start? Here's some real life examples!","kadence-blocks"),slides:[(0,Bo.jsx)(Vd,{}),(0,Bo.jsx)(Wd,{}),(0,Bo.jsx)(Ud,{}),(0,Bo.jsx)(Zd,{})]})})})})]})}const Yd={container:{height:"100%"},leftContent:{maxWidth:940,marginInline:"auto"},rightContent:{marginRight:32,height:"100%",display:"flex",flexDirection:"column"},formWrapper:{paddingRight:32,paddingLeft:32},textareaWrapper:{position:"relative"},image:{borderRadius:"20px",background:`url(${Za}) no-repeat center center`,height:"100%",backgroundSize:"cover"}};function Xd(){const{state:e,dispatch:t}=bl(),[n,r]=(0,Ao.useState)([]);return(0,Ao.useEffect)(()=>{const t=[];Object.keys(Xa).map(n=>{t.push({id:n,label:Xa[n].label,value:Xa[n].value,icon:Xa[n].icon,description:Xa[n]?.description?Xa[n].description:"",isIncluded:e.goals.includes(Xa[n].value),isPrimary:e.goals.includes(Xa[n].value)&&e.goals[0]===Xa[n].value})}),r(t)},[]),(0,Bo.jsxs)(No.Flex,{gap:0,align:"normal",style:Yd.container,children:[(0,Bo.jsx)(No.FlexBlock,{style:{alignSelf:"center",flex:"3 1 0%"},children:(0,Bo.jsx)(No.Flex,{justify:"center",style:Yd.leftContent,children:(0,Bo.jsx)(No.FlexBlock,{style:Yd.formWrapper,className:"stellarwp-body",children:(0,Bo.jsx)(jc,{headline:(0,Bo.jsxs)("span",{className:"has-beta-pill",children:[(0,o.__)("What are the goals of this site?","kadence-blocks")," ",(0,Bo.jsx)("span",{className:"beta-pill",children:"Beta"})]}),content:(0,o.__)("Select all that apply, it is ok to select none. This will be used to help determine content to show for your specific site. NOTE: This is in early stages and has minimal effects currently, but is improving.","kadence-blocks"),children:(0,Bo.jsx)(No.__experimentalView,{style:Yd.textareaWrapper,children:(0,Bo.jsx)(No.__experimentalVStack,{children:Xa.length>0&&(0,Bo.jsx)(gd,{onChange:function(e){t({type:"SET_SITE_GOALS",payload:e})},items:n,selectedItems:e.goals})})})})})})}),(0,Bo.jsx)(No.FlexBlock,{display:"flex",style:{flex:"2 1 0%"},children:(0,Bo.jsx)(No.Flex,{justify:"center",children:(0,Bo.jsx)(No.FlexBlock,{style:Yd.rightContent,children:(0,Bo.jsx)("div",{style:Yd.image})})})})]})}function Qd(){const{state:{customCollections:e,imageSearchQuery:t},dispatch:n}=bl(),{loading:r,verticals:a,getPreMadeCollectionByIndustry:l}=function(){const[e,t]=(0,Ao.useState)(!0),[n,r]=(0,Ao.useState)([]),[a,l]=(0,Ao.useState)([]);return(0,Ao.useEffect)(()=>{t(!0),async function(){try{let e=[];const t=await To()({path:(0,xa.addQueryArgs)("/kb-design-library/v1/get_image_collections")}),n=(0,Mo.SafeParseJSON)(t,!1);n?.data?.collections&&(e=n.data.collections,r(e),sessionStorage.setItem("kadence_ai_collections",JSON.stringify(e)))}catch(e){const t=e?.message?e.message:e;console.log(`ERROR: ${t}`)}finally{t(!1)}}(),async function(){for(let e=0;e<3;e++)try{const e=await To()({path:"/kb-design-library/v1/get_verticals"}),t=(0,Mo.SafeParseJSON)(e,!1);if(t&&t?.data){let e=t.data.reduce((e,t)=>[...e,...t.sub_verticals.map(e=>({label:e,value:e}))],[]);e.sort(function(e,t){return e.label<t.label?-1:e.label>t.label?1:0}),e=e.filter(e=>"Other"!==e.value),e.unshift({label:(0,o.__)("AI Search Collection","kadence-blocks"),value:"aiGenerated",galleries:[{name:"featured",images:[]},{name:"background",images:[]}]}),l(e),sessionStorage.setItem("kadence_ai_verticals",JSON.stringify(e));break}}catch(e){const t=e?.message?e.message:e;console.log(`ERROR: ${t}`)}t(!1)}()},[]),{loading:e,verticals:a,getPreMadeCollectionByIndustry:async function(e,t=""){const o=Array.isArray(e)?e:[e];try{const r=await To()({path:(0,xa.addQueryArgs)("/kb-design-library/v1/get_images",{industries:o,industry:t,image_type:"JPEG",image_sizes:kadenceExtensionImagePicker.image_sizes})}),a=(0,Mo.SafeParseJSON)(r,!1);return a&&a?.data?"aiGenerated"===e?[{name:"featured",images:a?.data?.images.slice(0,12)},{name:"background",images:a?.data?.images.slice(12,24)}]:a.data.map(e=>{const t=n.find(t=>t.collection_slug===e.collection_slug);return{name:e.collection_slug,images:e.images,pexelLink:t?.collection_url||""}}):[]}catch(e){const t=e?.message?e.message:e;console.log(`ERROR: ${t}`)}}}}(),[i,s]=(0,Ao.useState)(!0),[c,d]=(0,Ao.useState)();return(0,Ao.useEffect)(()=>{s(!0),function(){if(e)d(e);else{const e=[{label:(0,o.__)("My Images","kadence-blocks"),value:"my-collections",galleries:[{name:"featured",isLocal:!0,images:[]},{name:"background",isLocal:!0,images:[]}]}];d(e)}s(!1)}()},[]),{loading:!(!i&&!r),preMadeCollections:a,wordpressCollections:c,getCollectionGalleries:async function(e){if(e&&c){if(c&&c.length>0){const t=c.find(t=>t.value===e);if(t)return t.galleries}return await l(e,t)}},updateGalleries:function(e,t){if(!e)return{};let o={};const r=c.findIndex(t=>t.value===e);if(r>-1){const e=[...c];return e[r].galleries=t,n({type:"SET_CUSTOM_COLLECTIONS",payload:e}),d(e),e[r].value}const l=a.find(t=>t.value===e),i=c.reduce((t,n)=>n.createdFrom===e&&n.version>t?n.version:t,0);o={label:`${l.label} (Edited${i>0?` ${i+1}`:""})`,value:`${e}_${i}_${(new Date).getTime().toString().slice(-6)}`,createdFrom:e,version:i+1,galleries:t};const s=[o,...c];return n({type:"SET_CUSTOM_COLLECTIONS",payload:s}),d(s),o.value},createCollection:function(e,t){if(!e)return{};const o={label:e,value:`${e.replace(/ /g,"")}_0_${(new Date).getTime().toString().slice(-6)}`,createdFrom:null,version:0,galleries:t},r=[o,...c];return n({type:"SET_CUSTOM_COLLECTIONS",payload:r}),d(r),o.value},updateCollectionName:function(e,t){if(!t||!e)return"";const o=c.findIndex(e=>e.value===t);if(-1===o)return"";const r=[...c];return r[o].label=e,n({type:"SET_CUSTOM_COLLECTIONS",payload:r}),d(r),r[o].value},deleteCollection:function(e){if(!e)return;const t=c.findIndex(t=>t.value===e);if(-1===t)return;const o=[...c];o.splice(t,1),n({type:"SET_CUSTOM_COLLECTIONS",payload:o}),d(o)}}}const eu={topSection:{borderBottom:"1px solid #DFDFDF",marginBottom:"40px",paddingBottom:"24px",position:"relative"},selectWrapper:{maxWidth:500},selectControl:{width:"100%",textAlign:"center"},alignCenter:{alignItems:"center"}};function tu(e){const{photographyOnly:t}=e,{state:{photoLibrary:n,imageSearchQuery:r},dispatch:a}=bl(),{preMadeCollections:l,wordpressCollections:i,getCollectionGalleries:s,updateGalleries:c,createCollection:d,updateCollectionName:u,deleteCollection:p}=Qd(),[g,m]=(0,Ao.useState)([]),[h,b]=(0,Ao.useState)(!1),[f,v]=(0,Ao.useState)([{},{}]),[y,k]=(0,Ao.useState)(!1),[x,w]=(0,Ao.useState)(""),[_,S]=(0,Ao.useState)(!1),[j,C]=(0,Ao.useState)();async function I(e=null){if(h)return;b(!0);const t=await s(e||n);t&&v(t),b(!1)}function O(e){let t=e;e?.value&&(t=e.value),t!==n?(a({type:"SET_PHOTO_LIBRARY",payload:t}),a({type:"SET_PHOTO_LIBRARY_CHANGED",payload:!0}),v([{},{}]),I(t)):(a({type:"SET_PHOTO_LIBRARY_CHANGED",payload:!1}),I(t))}(0,Ao.useEffect)(()=>{a({type:"SET_PHOTO_LIBRARY_CHANGED",payload:!1})},[]),(0,Ao.useEffect)(()=>{l&&i&&(m([{label:(0,o.__)("My Collections","kadence-blocks"),options:i.map(e=>({label:e.label,value:e.value,useActions:!0}))},{label:"Premade Collections",options:l.map(e=>({label:e.label,value:e.value,useActions:!1}))}]),I())},[l,i]),(0,Ao.useEffect)(()=>{l&&i&&I()},[r]);const M=n&&l&&l.filter(e=>e.value===n);return(0,Bo.jsxs)("div",{className:"stellarwp-ai-photography-library",children:[(0,Bo.jsx)(No.Flex,{justify:"center",style:eu.topSection,children:(0,Bo.jsx)(No.FlexBlock,{style:eu.selectWrapper,children:(0,Bo.jsx)(No.Flex,{className:"stellarwp-ai-photography-library__selection",direction:"row",children:(0,Bo.jsx)(pd,{label:(0,o.__)("Use Images From:","kadence-blocks"),options:g||[],value:g?.length>0?function(e,t){for(const n of e){const e=n.options.find(e=>e.value===t);if(e)return e}return null}(g,n):"",onChange:e=>{O(e.value)},createRecord:function(e){O(d(e,[{name:"featured",images:[]},{name:"background",images:[]}]))},updateRecord:function(e,t){const o=u(e,t);n===o&&O(o)},deleteRecord:function(e){n===e&&O(g[1].options[0]),p(e)}})})})}),"aiGenerated"!==n&&(0,Bo.jsxs)(Bo.Fragment,{children:[M&&(0,Bo.jsxs)("div",{className:"kb-photography-explained-wrap",children:[(0,Bo.jsx)("p",{children:(0,o.__)("Fine-tune your collection by selecting 'Edit Collection' below.","kadence-blocks")}),(0,Bo.jsx)("p",{children:(0,o.__)("or -","kadence-blocks")}),(0,Bo.jsx)("p",{children:(0,o.__)("Kickstart your collection with the 'AI Search Collection' or create your own from scratch using the drop-down menu above.","kadence-blocks")})]}),!M&&(0,Bo.jsxs)("div",{className:"kb-photography-explained-wrap",children:[(0,Bo.jsx)("p",{children:(0,o.__)("Fine-tune your collection by selecting 'Edit Collection' below.","kadence-blocks")}),(0,Bo.jsx)("p",{children:(0,o.__)("or -","kadence-blocks")}),(0,Bo.jsx)("p",{children:(0,o.__)("Kickstart your collection with the 'AI Search Collection' or explore our pre-made collections using the drop-down menu above.","kadence-blocks")})]})]}),"aiGenerated"===n&&(0,Bo.jsxs)("div",{className:"kb-photography-explained-wrap ai-generated-search-edit-wrap",children:[(0,Bo.jsxs)("p",{className:"ai-generated-search-edit-text",children:[!t&&(0,o.__)("Ta-Da! We searched the Pexels Image Library to find royalty-free images for your site.","kadence-blocks"),!t&&(0,Bo.jsx)("br",{}),(0,o.__)("You can adjust search terms by clicking","kadence-blocks"),(0,Bo.jsx)(No.Button,{variant:"link",disabled:y,ref:C,text:(0,o.__)("Edit AI Search Query","kadence-blocks"),onClick:()=>k(!0),style:{fontSize:"14px"}}),(0,o.__)("or fine-tune your collection by selecting 'Edit Collection' below.","kadence-blocks")]}),(0,Bo.jsx)("p",{children:(0,o.__)("or -","kadence-blocks")}),(0,Bo.jsx)("p",{children:(0,o.__)("Explore our pre-made collections or create your own from scratch using the drop-down menu above.","kadence-blocks")}),y&&(0,Bo.jsxs)(No.Popover,{onClose:()=>{x&&x!==r&&a({type:"SET_IMAGE_SEARCH_QUERY",payload:x}),k(!1)},placement:"bottom",anchor:j,className:"ai-generated-search-edit-popover-settings",children:[(0,Bo.jsx)(No.TextareaControl,{label:(0,o.__)("Search Query","kadence-blocks"),help:(0,o.__)("Customize the image search query.","kadence-blocks"),value:_?"":""!==x?x:r,onChange:e=>{S(""===e),w(e)},onKeyDown:e=>{e.keyCode===ENTER&&(e.preventDefault(),x&&x!==r&&(a({type:"SET_IMAGE_SEARCH_QUERY",payload:x}),v([{},{}])),k(!1))}}),(0,Bo.jsx)(No.Button,{variant:"primary",text:(0,o.__)("Save","kadence-blocks"),onClick:()=>{x&&x!==r&&(a({type:"SET_IMAGE_SEARCH_QUERY",payload:x}),v([{},{}])),k(!1)}})]})]}),(0,Bo.jsx)(Pc,{loading:h,featured:f[0]||{},background:f[1]||{},updateCollection:function(e,t){const o=[{name:"featured",isLocal:!!f?.[0]?.isLocal,images:f?.[0]?.images},{name:"background",isLocal:!!f?.[1]?.isLocal,images:f?.[1]?.images}];o[e].images=t,o[e].isLocal=!0,function(e){let t=e;e?.value&&(t=e.value),t!==n?(a({type:"SET_PHOTO_LIBRARY",payload:t}),a({type:"SET_PHOTO_LIBRARY_CHANGED",payload:!0}),v([{},{}])):I(t)}(c(n,o))}})]})}function nu(e,t){if(!e)throw new Error("useAiWizardHelper requires state");return{isForwardButtonDisabled:function(){const{currentPageIndex:n,locationType:o,locationInput:r,keywords:a,missionStatement:l}=e,i=function(){const n=Array.isArray(t)&&t[e.currentPageIndex]?.required?t[e.currentPageIndex]?.required:[],o=n.filter(t=>"string"==typeof e[t]?e[t].trim().length:Array.isArray(e[t])?e[t].length:"boolean"==typeof e[t]?!!e[t]:void 0);return n.filter(e=>!o.includes(e))}(),s=t?.[n]?.id;switch(s){case"industry-information":return i.length>0||o!==tl&&!r;case"about-your-site":return!(l.length>=200&&l.length<1500&&!(i.length>0));case"the-details":return!(a.length>=5&&!(i.length>0));default:return i.length>0}},isFinishButtonDisabled:function(){const{saving:t}=e;return t}}}const ou=[{id:"how-it-works",content:(0,Bo.jsx)(yd,{}),step:"How it Works",required:[]},{id:"industry-information",content:(0,Bo.jsx)(Md,{}),step:"Industry Information",required:["entityType","companyName","location","industry"]},{id:"about-your-site",content:(0,Bo.jsx)(Hd,{}),step:"About Your Site",required:["missionStatement"]},{id:"the-details",content:(0,Bo.jsx)(Jd,{}),step:"The Details",required:["keywords","tone"]},{id:"goals",content:(0,Bo.jsx)(Xd,{}),step:"Site Goals",required:[]},{id:"photography",content:(0,Bo.jsx)(tu,{}),step:"Photography",required:[]}],ru=[{id:"photography",content:(0,Bo.jsx)(tu,{photographyOnly:!0}),step:"Photography",required:[]}];function au(e){const{state:{firstTime:t}}=bl();return e?ru:t?ou:ou.filter(e=>"how-it-works"!==e.id)}function lu(e){const{loading:t,onWizardClose:n,onPrimaryAction:r,photographyOnly:a,credits:l,isFullScreen:i}=e,{state:s,dispatch:c}=bl(),{isComplete:d,firstTime:u,isSubmitted:p,currentPageIndex:g,saving:m,saveError:h,...b}=s,{isForwardButtonDisabled:f,isFinishButtonDisabled:v}=nu(s,au(a)),{saveAiWizardData:y,getAiWizardData:k}=Wc();async function x(){u&&ka("ai_wizard_started"),await y({firstTime:!1,isSubmitted:!0,isComplete:d,...b})&&(n("saved"),w("ai_wizard_update"))}async function w(e){const t=await k();t&&ka(e,JSON.parse(t))}return t?(0,Bo.jsx)(Bo.Fragment,{}):(0,Bo.jsx)(Uc,{isFirstTime:u,logo:(0,Bo.jsx)(gc,{}),pages:au(a),forwardButtonDisabled:f(),onPageChange:e=>c({type:"SET_CURRENT_PAGE_INDEX",payload:e}),onClose:function(e){if("blur"!==e.type&&(27!==e.keyCode||"keydown"!==e.type))return n()},onPrimaryClick:function(e){"blur"===e.type||27===e.keyCode&&"keydown"===e.type||("click"===e.type&&e.target.classList.contains("components-wizard__primary-button")&&(a?x().then(()=>{r("photography",!1),w("collection_updated")}):(async function(){await y({firstTime:!1,isSubmitted:!0,isComplete:!0,...b})&&w("ai_wizard_complete")}(),r(e,!0))),n())},primaryButtonText:a?(0,o.__)("Update My Design Library","kadence-blocks"):(0,o.__)("Generate Initial Content","kadence-blocks"),primaryButtonDisabled:v(),onSecondaryClick:a?null:function(e){"blur"===e.type||27===e.keyCode&&"keydown"===e.type||("click"===e.type&&e.target.classList.contains("components-wizard__secondary-button")&&(s.photoCollectionChanged?x().then(()=>{w("collection_updated")}):x()),n())},secondaryButtonText:(0,o.__)("Save","kadence-blocks"),credits:l,photographyOnly:a,isFullScreen:i})}function iu({photographyOnly:e=!1,onClose:t,onPrimaryAction:n,onSecondaryAction:o,credits:r="",isFullScreen:a=!1}){const[l,i]=(0,Ao.useState)(),{loading:s,getAiWizardData:c}=Wc();return(0,Ao.useEffect)(()=>{!async function(){const e=(0,Mo.SafeParseJSON)(await c());i(e)}()},[]),(0,Bo.jsx)(Bo.Fragment,{children:l&&!s&&(0,Bo.jsx)(hl,{value:l,children:(0,Bo.jsx)(lu,{loading:s,onWizardClose:t,onPrimaryAction:n,onSecondaryAction:o,photographyOnly:e,credits:r,isFullScreen:a})})})}const{localStorage:su}=window,cu=["Typographic","Image Heavy","Content Dense","Minimalist"],du=e=>{if(!e)return"";const t=document.createElement("textarea");return t.innerHTML=e,t.value},uu=(0,Eo.withDispatch)((e,{canUserUseUnfilteredHTML:t})=>({importContent(n,o){const{replaceBlocks:r}=e(Pr.store);r(o,(0,a.rawHandler)({HTML:n,mode:"BLOCKS",canUserUseUnfilteredHTML:t}))}}))(function({importContent:e,clientId:t,reload:n=!1,onReload:a}){const l=!!window?.kadence_blocks_params?.isAIDisabled,[i,s]=(0,Ao.useState)(""),[c,d]=(0,Ao.useState)(""),[u,p]=(0,Ao.useState)(cu),[g,m]=(0,Ao.useState)(null),[h,b]=(0,Ao.useState)(""),[f,v]=(0,Ao.useState)(!1),[y,k]=(0,Ao.useState)(!1),[x,w]=(0,Ao.useState)(!1),[_,S]=(0,Ao.useState)({}),[j,C]=(0,Ao.useState)(""),[I,O]=(0,Ao.useState)(""),[M,P]=(0,Ao.useState)(""),[T,E]=(0,Ao.useState)(!1),[A,N]=(0,Ao.useState)(!1),[L,R]=(0,Ao.useState)({}),[B,D]=(0,Ao.useState)({}),[F,z]=(0,Ao.useState)(ha),[H,$]=(0,Ao.useState)([]),[V,W]=(0,Ao.useState)(""),[U,Z]=(0,Ao.useState)([]),[G,q]=(0,Ao.useState)({}),[K,J]=(0,Ao.useState)([]),[Y,X]=(0,Ao.useState)(ba),[Q,ee]=(0,Ao.useState)(!1),[te,ne]=(0,Ao.useState)([]),[oe,re]=(0,Ao.useState)(va),[ae,le]=(0,Ao.useState)([]),[ie,se]=(0,Ao.useState)([]),[ce,de]=(0,Ao.useState)(),[ue,pe]=(0,Ao.useState)(!1),[ge,me]=(0,Ao.useState)(!1),[he,be]=(0,Ao.useState)(!1),[fe,ve]=(0,Ao.useState)(!1),[ye,ke]=(0,Ao.useState)(!1),[xe,we]=(0,Ao.useState)({visible:!1,photographyOnly:!1}),[_e,Se]=(0,Ao.useState)(!1),[je,Ce]=(0,Ao.useState)("general"),[Ie,Oe]=(0,Ao.useState)(""),[Me,Pe]=(0,Ao.useState)(""),[Te,Ee]=(0,Ao.useState)(""),[Ae,Ne]=(0,Ao.useState)(!1),[Le,Re]=(0,Ao.useState)(!1),[Be,De]=(0,Ao.useState)(!1),[Fe,ze]=(0,Ao.useState)(!1),[He,$e]=(0,Ao.useState)(new Array(cu.length).fill(!1)),[Ve,We]=(0,Ao.useState)(!1),[Ue,Ze]=(0,Ao.useState)(),[Ge,qe]=(0,Ao.useState)(),[Ke,Je]=(0,Ao.useState)(),[Ye,Xe]=(0,Ao.useState)(),[Qe,et]=(0,Ao.useState)((0,Lo.applyFilters)("kadence.blocks_icon",r.kadenceNewIcon)),{updateContextState:tt,updateMassContextState:nt,updateContext:ot,updateMassContext:rt}=(0,Eo.useDispatch)("kadence/library"),{getContextState:at,isContextRunning:lt,getContextContent:it,hasContextContent:st}=(0,Eo.useSelect)(e=>({getContextState:t=>e("kadence/library").getContextState(t),isContextRunning:t=>e("kadence/library").isContextRunning(t),getContextContent:t=>e("kadence/library").getContextContent(t),hasContextContent:t=>e("kadence/library").hasContextContent(t)}),[]),ct=()=>{Re(e=>!e)},dt=()=>{De(e=>!e)},ut=e=>{const t=(0,Mo.SafeParseJSON)(e,!0);return!!(t&&t?.companyName&&""!==t?.companyName&&t?.location&&""!==t?.location&&t?.industry&&""!==t?.industry&&t?.missionStatement&&""!==t?.missionStatement&&t?.keywords?.length&&!(t?.keywords?.length<5)&&t?.tone&&""!==t?.tone)},pt=window?.kadence_blocks_params?.isAuthorized,gt=window?.kadence_blocks_params?.homeLink?kadence_blocks_params.homeLink:"",mt=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0),ht=void 0!==mt?.style&&""!==mt?.style?mt.style:"light",bt=void 0!==mt?.subTab&&""!==mt?.subTab?mt.subTab:"patterns",ft=void 0!==mt?.kbCat&&""!==mt?.kbCat?mt.kbCat:"all",vt=void 0!==mt?.kbNewCat&&""!==mt?.kbNewCat?mt.kbNewCat:"",yt=void 0!==mt?.kbPageCat&&""!==mt?.kbPageCat?mt.kbPageCat:"home",kt=void 0!==mt?.kbPageStyles&&""!==mt?.kbPageStyles?mt.kbPageStyles:"all",xt=void 0!==mt?.previewMode&&""!==mt?.previewMode?mt.previewMode:"iframe",wt=void 0!==mt?.replaceImages&&""!==mt?.replaceImages?mt.replaceImages:"all",_t=void 0!==mt?.fontSize&&""!==mt?.fontSize?mt.fontSize:"lg",St=void 0!==mt?.contextTab&&""!==mt?.contextTab?mt.contextTab:"design",jt=void 0!==mt?.context&&""!==mt?.context?mt.context:"value-prop",Ct=void 0!==mt?.credits&&""!==mt?.credits&&null!==mt?.credits?mt.credits:"fetch",It=""!==I?I:Ct,Ot=i||ft,Mt=V||vt,Pt=c||yt,Tt=u||kt,Et=ce||xt,At=Ie||ht,Nt=Me||wt,Lt=Te||_t,Rt=h||bt,Bt=M||St,Dt=j||jt,Ft=Y?.[Dt],{createErrorNotice:zt}=(0,Eo.useDispatch)(Wo.store);(0,Ao.useEffect)(()=>{$(Object.keys(F).map(function(e,t){return{value:"category"===e?"all":e,label:"category"===e?(0,o.__)("All","kadence-blocks"):F[e]}}))},[F]),(0,Ao.useEffect)(()=>{if(!f||"object"!=typeof f||"patterns"!==Rt)return;const e=new Map,t=new Map;Object.values(f).forEach(n=>{n.newCategory&&"object"==typeof n.newCategory&&Object.keys(n.newCategory).forEach(o=>{const r=n.newCategory[o];if(!r)return;const a=r.sidebar_parent,l=a?.name,i=a?.order,s=du(r.name);l&&void 0!==i&&(e.has(l)||e.set(l,{name:l,order:i})),t.has(o)||t.set(o,{slug:o,label:s,heading:l})})});const n=Array.from(e.values()).sort((e,t)=>e.order-t.order),o={};if(n.forEach(e=>{o[e.name]=[]}),Array.from(t.values()).forEach(e=>{o[e.heading]&&o[e.heading].push(e)}),Z(n),q(o),!V&&n.length&&Object.values(o).some(e=>e.length>0)){const e=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0);let n=e?.kbNewCat||"";n&&!Array.from(t.keys()).includes(n)&&(n=""),W(n)}},[f,Rt]),(0,Ao.useEffect)(()=>{const e=Object.keys(f).map(function(e){return f[e].styles});if(!e.length)return;const t=new Map;e.forEach(e=>{if(!e)return;const n=e[Object.keys(e)[0]];t.set(n,e)});const n=Array.from(t.values()).map(function(e){const t=Object.keys(e)[0];return{value:t,label:e[t]}});J(n)},[f]),(0,Ao.useEffect)(()=>{le(Object.keys(oe).map(function(e,t){return{value:"category"===e?"all":e,label:"category"===e?(0,o.__)("All","kadence-blocks"):oe[e]}}));const e=[];Object.keys(oe).map(function(t,n){"category"!==t&&e.push({value:"category"===t?"all":t,label:"category"===t?(0,o.__)("All","kadence-blocks"):oe[t]})}),se(e)},[oe]),Object.values({CONTENT:["accordion","cards","counter-stats","hero","page-title","table","testimonials"],MEDIA:["gallery","image-text","logo-farm","video-text"],OTHER:["header","footer","navigation"]}).flat(),(0,Ao.useEffect)(()=>{ne(Object.keys(Y).map(function(e,t){return{value:e,label:Y[e]}}))},[]),(0,Ao.useEffect)(()=>{const e=cu.filter((e,t)=>He[t]&&e),t=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0);t.kbPageStyles=e,su.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),p(e)},[He]);const Ht=(0,Ao.useMemo)(()=>Object.values(f).some(e=>"New"===e.label?.new),[f]),{getAIContentData:$t,getAIContentDataReload:Vt,getAIWizardData:Wt,getCollectionByIndustry:Ut,getPatterns:Zt,getPattern:Gt,processPattern:qt,getLocalAIContexts:Kt,getLocalAIContentData:Jt,getAIContentRemaining:Yt,getInitialAIContent:Xt,getAvailableCredits:Qt}=((0,Ao.useMemo)(()=>{if(!Ht||"patterns"!==Rt)return H;const e=[...H],t={value:"new",label:(0,o.__)("New","kadence-blocks")};return e.splice(1,0,t),e},[H,f,Rt]),Sa());async function en(e,t){pe(!0),Se(!1),Ce("general");const n=await Zt("pages"===e?"pages":"section",t,null,null,"pages"!==e?"info":"");if("failed"===n)console.log("Permissions Error getting library Content"),"pages"===e?w("error"):(v("error"),k([])),Se(!0),Ce("reload"),pe(!1);else if("error"===n)console.log("Error getting library Content."),"pages"===e?w("error"):(v("error"),k([])),Se(!0),pe(!1);else{const o=(0,Mo.SafeParseJSON)(n,!1);if(o)if("pages"===e){const e=va;Object.keys(o).map(function(t,n){o[t].categories&&"object"==typeof o[t].categories&&Object.keys(o[t].categories).map(function(n,r){e.hasOwnProperty(n)||(e[n]=o[t].categories[n])})}),w(o),re(JSON.parse(JSON.stringify(e)))}else{const e=ha;Object.keys(o).map(function(t,n){o[t].categories&&"object"==typeof o[t].categories&&Object.keys(o[t].categories).map(function(n,r){e.hasOwnProperty(n)||(e[n]=o[t].categories[n])})}),v(o),z(JSON.parse(JSON.stringify(e)));const n=await Zt("section",t,null,null,"html");if("failed"===n)console.log("Permissions Error getting library htmlContent"),k([]);else if("error"===n)console.log("Error getting library htmlContent."),k([]);else{const e=(0,Mo.SafeParseJSON)(n,!1);k(e||[])}}else"pages"===e?w("error"):v("error"),Se(!0);pe(!1)}}(0,Ao.useEffect)(()=>{n&&!ue?(a(),en(Rt,!0)):ue||en(Rt,!1)},[n,Rt]);const tn=()=>{!ue&&f&&v(JSON.parse(JSON.stringify(f))),!ue&&x&&w(JSON.parse(JSON.stringify(x)))};async function nn(e,t=!1){t||"loading"!==at(e)&&tt(e,"loading");const n=await $t(e);if("processing"===n)console.log("Is processing AI"),"processing"!==at(e)&&tt(e,"processing"),setTimeout(()=>{nn(e,!0)},1e3);else if("Failed"===n)console.log("Permissions Error getting AI Content."),ot(e,"failedReload"),setTimeout(()=>{tn()},500),tt(e,!1);else if("error"===n)console.log("Error getting AI Content."),zt((0,o.__)("Error generating AI content, Please Retry"),{type:"snackbar"}),ot(e,"failed"),setTimeout(()=>{tn()},500),tt(e,!1);else{const t=(0,Mo.SafeParseJSON)(n,!1);let o=[];!1!==A&&(o=A),o.includes(e)||(o.push(e),N(o)),ot(e,t),setTimeout(()=>{tn()},500),tt(e,!0)}}async function on(){const e=await Qt(),t=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0);"error"===e?(console.log("Error getting credits"),t.credits="fetch",su.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),O(0)):""===e?(t.credits=0,su.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),O(0)):(t.credits=parseInt(e),su.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),O(parseInt(e)))}async function rn(n){me(!0),async function(n){const o=n?.content?n.content:"",r=await qt(o,L,n?.cpt_blocks?n.cpt_blocks:[],n?.style?n.style:"");"failed"===r?(an(o,L),console.log("Import Process Failed when processing data through rest api... Trying ajax.")):(e(r,t),me(!1))}(n)}(0,Ao.useEffect)(()=>{he&&(st(Dt)?tn():A&&A.includes(Dt)?nn(Dt):tn())},[Dt,he]),(0,Ao.useEffect)(()=>{(async function(){const e=await Wt();if(e)if(ut(e)){const t=e?(0,Mo.SafeParseJSON)(e):{};t?.photoLibrary&&"all"===Nt&&ke(!0),E(t),ve(!1)}else{const t=e?(0,Mo.SafeParseJSON)(e):{};t?.photoLibrary&&t?.customCollections&&async function(e){const t=JSON.parse(JSON.stringify(e));t.photoLibrary="Other";const n=await Ut(t);(0,jo.isEqual)(n,B)||D(n);const o=await Ut(e);(0,jo.isEqual)(o,L)?ke(!1):(ke(!1),R(o),tn())}(t),console.log("User Data is not correct"),ve(!0)}else ve(!0)})(),pt&&"fetch"===It&&on()},[Ae]),(0,Ao.useEffect)(()=>{pt&&T&&!he&&async function(){const e=await Jt(),t=await Kt(),n=[];let o=!1;"empty"===e?(console.log("No Local AI Content"),be(!0)):"failed"===e?(console.log("Failed to load Local"),be(!0)):(o=!0,Object.keys(e).forEach(t=>{e?.[t]?.content?.length>0&&n.push(t)}),n.length>0&&(rt(n,e),nt(n,!0)),tn(),be(!0)),"failed"===t?console.log("No Local Prompts"):t&&t.length>0&&o&&(t.forEach(e=>{-1===n.indexOf(e)&&nn(e,!0)}),N(t))}()},[T]),(0,Ao.useEffect)(()=>{T&&async function(){const e=JSON.parse(JSON.stringify(T));e.photoLibrary="Other";const t=await Ut(e);(0,jo.isEqual)(t,B)||D(t);const n=await Ut(T);(0,jo.isEqual)(n,L)?ke(!1):(setTimeout(()=>{ke(!1)},300),R(n),tn())}()},[T]);const an=n=>{const o=new FormData;o.append("action","kadence_import_process_image_data"),o.append("security",kadence_blocks_params.ajax_nonce),o.append("import_content",n),o.append("image_library",JSON.stringify(L)),jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:o,contentType:!1,processData:!1}).done(function(n,o,r){n?e(n,t):(Se(!0),Ce("reload")),me(!1)}).fail(function(e){console.log(e),Se(!0),Ce("reload"),me(!1)})},ln=[{value:"light",label:(0,o.__)("Light","kadence-blocks")},{value:"dark",label:(0,o.__)("Dark","kadence-blocks")},{value:"highlight",label:(0,o.__)("Highlight","kadence-blocks")}],sn=[{value:"light",label:(0,o.__)("Light","kadence-blocks")},{value:"dark",label:(0,o.__)("Dark","kadence-blocks")}],cn=((0,o.__)("Smaller","kadence-blocks"),(0,o.__)("Normal","kadence-blocks"),{default:3,1900:3,1600:3,1200:2,500:1});return(0,Bo.jsxs)("div",{className:"kt-prebuilt-content kb-prebuilt-has-sidebar",children:[(0,Bo.jsxs)("div",{className:"kt-prebuilt-sidebar kb-section-sidebar",children:[(0,Bo.jsxs)("div",{className:"kb-prebuilt-sidebar-header-wrap",children:[(0,Bo.jsxs)("div",{className:"kb-prebuilt-sidebar-header kb-prebuilt-library-logo",children:[(0,Bo.jsx)("span",{className:"kb-prebuilt-header-logo",children:Qe}),(0,Bo.jsxs)("div",{className:"kb-library-style-popover",children:[(0,Bo.jsx)(No.Button,{className:"kb-trigger-extra-settings",icon:r.aiSettings,ref:qe,isPressed:Le,disabled:Le,onClick:ct}),Le&&(0,Bo.jsxs)(No.Popover,{className:"kb-library-extra-settings",placement:"top-end",onClose:(0,jo.debounce)(ct,100),anchor:Ge,children:[!l&&pt&&(0,Bo.jsx)(No.Button,{className:"kadence-ai-wizard-button",iconPosition:"left",icon:r.aiIcon,text:(0,o.__)("Update Kadence AI Details","kadence-blocks"),onClick:()=>{Re(!1),on(),we({visible:!0,photographyOnly:!1})}}),!l&&!pt&&(0,Bo.jsx)(No.Button,{className:"kadence-ai-wizard-button",iconPosition:"left",icon:r.aiIcon,text:(0,o.__)("Activate Kadence AI","kadence-blocks"),disabled:!gt,target:gt?"_blank":"",href:gt||""}),(0,Bo.jsx)(No.Button,{icon:$o,iconPosition:"left",className:"kadence-ai-wizard-button",text:(0,o.__)("Update Design Library Images","kadence-blocks"),disabled:"none"===Nt,onClick:()=>{Re(!1),we({visible:!0,photographyOnly:!0})}}),(0,Bo.jsxs)(No.Button,{iconPosition:"left",className:"kadence-ai-wizard-button",icon:r.eye,ref:Je,isPressed:Be,disabled:Be,onClick:dt,children:[(0,Bo.jsx)("span",{className:"kb-wizard-advanced-text",children:(0,o.__)("Advanced","kadence-blocks")})," ",(0,Bo.jsx)("span",{className:"kb-carrot-open",children:(0,Bo.jsx)(No.Icon,{icon:Vo})})]}),Be&&(0,Bo.jsxs)(No.Popover,{className:"kb-library-extra-advanced-settings",placement:"right-start",onClose:(0,jo.debounce)(dt,100),anchor:Ke,children:[(0,Bo.jsx)(No.ToggleControl,{className:"kb-toggle-align-right small",label:(0,o.__)("Custom Image Selection","kadence-blocks"),checked:"none"!==Nt,help:(0,o.__)("If disabled you will import and preview only wireframe images.","kadence-blocks"),onChange:e=>{const t=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0);t.replaceImages=e?"all":"none",su.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),v(JSON.parse(JSON.stringify(f))),Pe(e?"all":"none")}}),(0,Bo.jsx)(No.ToggleControl,{className:"kb-toggle-align-right small",label:(0,o.__)("Live Preview","kadence-blocks"),checked:"image"!==Et,help:(0,o.__)("If disabled you will not see a live preview of how the patterns will look on your site.","kadence-blocks"),onChange:e=>{const t=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0);t.previewMode=e?"iframe":"image",su.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),de(e?"iframe":"image")}})]})]}),xe.visible&&(0,Bo.jsx)(iu,{onClose:()=>{we({visible:!1,photographyOnly:!1}),Ne(e=>!e)},onPrimaryAction:(e,t)=>{"photography"===e&&async function(){const e=await async function(){const e=await Wt(!0);if(!e)return ve(!0),{};if(!ut(e)){const t=e?(0,Mo.SafeParseJSON)(e):{};return ve(!0),t?.photoLibrary&&t?.customCollections?t:{}}const t=e?(0,Mo.SafeParseJSON)(e):{};return E(t),ve(!1),t}();if(e){const t=await Ut(e);(0,jo.isEqual)(t,L)?ke(!1):(setTimeout(()=>{ke(!1)},300),R(t),tn())}else ke(!1)}(),t&&async function(){pe(!0);const e=await Xt(!0);if("error"===e||"failed"===e)zt((0,o.__)("Error generating AI content, Please Retry"),{type:"snackbar"}),console.log("Error getting AI Content."),pe(!1);else if(e?.error&&e?.context){zt((0,o.__)("Error, Some AI Contexts could not be started, Please Retry"),{type:"snackbar"}),console.log("Error getting all new AI Content.");const t=[];e?.context.forEach(e=>{t.push(e)}),nt(t,"processing"),e?.context.forEach((e,t)=>{setTimeout(()=>{nn(e,!0)},1e3+50*t)}),pe(!1)}else{const t=[];e.forEach(e=>{t.push(e)}),nt(t,"processing"),e.forEach((e,t)=>{setTimeout(()=>{nn(e,!0)},1e3+50*t)}),on(),pe(!1)}}()},photographyOnly:xe.photographyOnly,credits:It})]})]}),(0,Bo.jsxs)("div",{className:"kb-library-sidebar-sub-choices",children:[(0,Bo.jsx)(No.Button,{className:"kb-subtab-button kb-trigger-design"+("design"===Bt?" is-pressed":""),"aria-pressed":"design"===Bt,onClick:()=>{const e=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0);e.contextTab="design",su.setItem("kadenceBlocksPrebuilt",JSON.stringify(e)),tn(),P("design")},children:(0,o.__)("By Design","kadence-blocks")}),!l&&(0,Bo.jsx)(No.Button,{className:"kb-subtab-button kb-trigger-context"+("context"===Bt?" is-pressed":""),"aria-pressed":"context"===Bt,icon:r.aiIcon,iconPosition:"left",iconSize:16,text:(0,o.__)("With AI","kadence-blocks"),onClick:()=>{const e=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0);e.contextTab="context",su.setItem("kadenceBlocksPrebuilt",JSON.stringify(e)),tn(),P("context")}})]}),(0,Bo.jsxs)("div",{className:"kb-library-sidebar-context-choices",children:[(0,Bo.jsx)(No.Button,{className:"kb-context-tab-button kb-trigger-patterns"+("patterns"===Rt?" is-pressed":""),"aria-pressed":"patterns"===Rt,onClick:()=>{const e=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0);e.subTab="patterns",su.setItem("kadenceBlocksPrebuilt",JSON.stringify(e)),b("patterns")},children:(0,o.__)("Patterns","kadence-blocks")}),(0,Bo.jsx)(No.Button,{className:"kb-context-tab-button kb-trigger-pages"+("pages"===Rt?" is-pressed":""),"aria-pressed":"pages"===Rt,onClick:()=>{const e=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0);e.subTab="pages",su.setItem("kadenceBlocksPrebuilt",JSON.stringify(e)),b("pages")},children:(0,o.__)("Pages","kadence-blocks")})]})]}),(0,Bo.jsx)("div",{className:"kb-prebuilt-sidebar-body-wrap",children:(0,Bo.jsx)("div",{className:"kb-library-sidebar-bottom-wrap",children:(0,Bo.jsx)("div",{className:"kb-library-sidebar-bottom "+("context"===Bt?"kb-context-library-categories":"kb-design-library-categories"),children:"pages"===Rt?(0,Bo.jsx)(Bo.Fragment,{children:"design"===Bt?(0,Bo.jsx)(Bo.Fragment,{children:!g&&(0,Bo.jsx)(Bo.Fragment,{children:ae.map((e,t)=>(0,Bo.jsx)(No.Button,{className:"kb-category-button"+(Pt===e.value?" is-pressed":""),"aria-pressed":Pt===e.value,onClick:()=>{const t=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0);t.kbPageCat=e.value,su.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),d(e.value)},children:e.label},`${e.value}-${t}`))})}):(0,Bo.jsx)(Bo.Fragment,{children:ie.map((e,t)=>(0,Bo.jsx)(No.Button,{className:"kb-category-button"+(Pt===e.value?" is-pressed":""),"aria-pressed":Pt===e.value,onClick:()=>{const t=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0);t.kbPageCat=e.value,su.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),d(e.value)},children:e.label},`${e.value}-${t}`))})}):(0,Bo.jsx)(Bo.Fragment,{children:"design"===Bt?(0,Bo.jsx)(Bo.Fragment,{children:!g&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(No.Button,{className:"kb-category-button"+(""===Mt&&"new"!==Ot?" is-pressed":""),"aria-pressed":""===Mt&&"new"!==Ot,onClick:()=>{const e=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0);e.kbNewCat="",e.kbCat="all",su.setItem("kadenceBlocksPrebuilt",JSON.stringify(e)),W(""),s("all")},children:(0,o.__)("All","kadence-blocks")},"all"),Ht&&(0,Bo.jsx)(No.Button,{className:"kb-category-button"+("new"===Ot?" is-pressed":""),"aria-pressed":"new"===Ot,onClick:()=>{const e=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0);e.kbCat="new",e.kbNewCat="",su.setItem("kadenceBlocksPrebuilt",JSON.stringify(e)),s("new"),W("")},children:(0,o.__)("New","kadence-blocks")},"new"),(0,Bo.jsx)("hr",{className:"kb-sidebar-category-divider"}),U.map(e=>(0,Bo.jsxs)("div",{className:"kb-category-group",children:[(0,Bo.jsx)("h4",{className:"kb-category-group-heading",children:e.name}),G[e.name]?.map((e,t)=>(0,Bo.jsx)(No.Button,{className:"kb-category-button"+(Mt===e.slug?" is-pressed":""),"aria-pressed":Mt===e.slug,onClick:()=>{const t=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0);t.kbNewCat=e.slug,t.kbCat="all",su.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),W(e.slug),s("all")},children:du(e.label)},`${e.slug}-${t}`))]},e.name))]})}):(0,Bo.jsx)(Bo.Fragment,{children:!g&&(0,Bo.jsx)(Bo.Fragment,{children:te.map((e,t)=>(0,Bo.jsx)(No.Button,{className:"kb-category-button"+(Dt===e.value?" is-pressed":""),"aria-pressed":Dt===e.value,onClick:()=>{const t=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0);t.kbContextCat=e.value,su.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),C(e.value)},children:e.label},`${e.value}-${t}`))})})})})})}),"pages"!==Rt&&(0,Bo.jsxs)("div",{className:"kb-library-sidebar-fixed-bottom kb-library-color-select-wrap",children:[(0,Bo.jsx)("h2",{children:(0,o.__)("Style","kadence-blocks")}),(0,Bo.jsx)("div",{className:"kb-library-style-options",children:ln.map((e,t)=>(0,Bo.jsx)(No.Button,{label:e.label,className:"kb-style-button kb-style-"+e.value+(At===e.value?" is-pressed":""),"aria-pressed":At===e.value,onClick:()=>{const t=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0);t.style=e.value,su.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),Oe(e.value)},children:(0,Bo.jsx)("span",{})},`${e.value}-${t}`))})]}),"pages"===Rt&&(0,Bo.jsxs)("div",{className:"kb-library-sidebar-fixed-bottom kb-library-color-select-wrap",children:[(0,Bo.jsx)("h2",{children:(0,o.__)("Style","kadence-blocks")}),(0,Bo.jsx)("div",{className:"kb-library-style-options",children:sn.map((e,t)=>(0,Bo.jsx)(No.Button,{label:e.label,className:"kb-style-button kb-style-"+e.value+(At===e.value?" is-pressed":""),"aria-pressed":At===e.value||"highlight"===At&&"light"===e.value,onClick:()=>{const t=(0,Mo.SafeParseJSON)(su.getItem("kadenceBlocksPrebuilt"),!0);t.style=e.value,su.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),Oe(e.value)},children:(0,Bo.jsx)("span",{})},`${e.value}-${t}`))}),null]})]}),"pages"===Rt?(0,Bo.jsx)(Bo.Fragment,{children:ge||ue||!1===x||_e?(0,Bo.jsxs)(Bo.Fragment,{children:[!_e&&ue&&(0,Bo.jsx)("div",{className:"kb-loading-library",children:(0,Bo.jsx)(No.Spinner,{})}),!_e&&ge&&(0,Bo.jsxs)("div",{className:"preparing-importing-images",children:[(0,Bo.jsx)(No.Spinner,{}),(0,Bo.jsx)("h2",{children:(0,o.__)("Preparing Content…","kadence-blocks")})]}),_e&&"general"===je&&(0,Bo.jsxs)("div",{className:"kb-pattern-error-wrapper",children:[(0,Bo.jsx)("h2",{style:{textAlign:"center"},children:(0,o.__)("Error, Unable to access library database, please try re-syncing","kadence-blocks")}),(0,Bo.jsx)("div",{style:{textAlign:"center"},children:(0,Bo.jsx)(No.Button,{className:"kt-reload-templates",icon:Fo,onClick:()=>ue?null:en(Rt,!0),children:(0,o.__)("Sync with Cloud","kadence-blocks")})})]}),_e&&"reload"===je&&(0,Bo.jsx)("div",{className:"kb-pattern-error-wrapper",children:(0,Bo.jsx)("h2",{style:{textAlign:"center"},children:(0,o.__)("Error, Unable to access library, please reload this page in your browser.","kadence-blocks")})})]}):(0,Bo.jsx)(Fa,{pages:x,filterValue:g,selectedCategory:Pt,selectedPageStyles:Tt,selectedStyle:At,breakpointCols:cn,imageCollection:L,contextTab:Bt,useImageReplace:Nt,onSelect:e=>rn(e),launchWizard:()=>{we({visible:!0,photographyOnly:!1})},setSearch:m})}):(0,Bo.jsx)(Bo.Fragment,{children:ge||ue||!1===f||!0===ye||_e?(0,Bo.jsxs)(Bo.Fragment,{children:[!_e&&ue&&(0,Bo.jsx)("div",{className:"kb-loading-library",children:(0,Bo.jsx)(No.Spinner,{})}),!_e&&!ue&&ye&&(0,Bo.jsx)("div",{className:"kb-loading-library wait-for-images",children:(0,Bo.jsx)(No.Spinner,{})}),!_e&&ge&&(0,Bo.jsxs)("div",{className:"preparing-importing-images",children:[(0,Bo.jsx)(No.Spinner,{}),(0,Bo.jsx)("h2",{children:(0,o.__)("Preparing Content…","kadence-blocks")})]}),_e&&"general"===je&&(0,Bo.jsxs)("div",{className:"kb-pattern-error-wrapper",children:[(0,Bo.jsx)("h2",{style:{textAlign:"center"},children:(0,o.__)("Error, Unable to access library database, please try re-syncing","kadence-blocks")}),(0,Bo.jsx)("div",{style:{textAlign:"center"},children:(0,Bo.jsx)(No.Button,{className:"kt-reload-templates",icon:Fo,onClick:()=>ue?null:en(Rt,!0),children:(0,o.__)("Sync with Cloud","kadence-blocks")})})]}),_e&&"reload"===je&&(0,Bo.jsx)("div",{className:"kb-pattern-error-wrapper",children:(0,Bo.jsx)("h2",{style:{textAlign:"center"},children:(0,o.__)("Error, Unable to access library, please reload this page in your browser.","kadence-blocks")})})]}):(0,Bo.jsx)(La,{patterns:f,patternsHTML:y,filterValue:g,selectedCategory:Ot,selectedNewCategory:Mt,selectedStyle:At,selectedFontSize:Lt,breakpointCols:cn,contextTab:Bt,aINeedsData:fe,aiContext:Dt,contextLabel:Ft,previewMode:xt,imageCollection:L,teamCollection:B,onSelect:e=>rn(e),contextStatesRef:Q,useImageReplace:Nt,userData:T,generateContext:e=>{We(!1),async function(e){tt(e,"processing");let t=[];!1!==A&&(t=A),t.includes(e)||(t.push(e),N(t));const n=await Vt(e);console.log(n),"processing"===n?(console.log("Is processing AI"),setTimeout(()=>{nn(e,!0)},1e3),on()):"credits"===n?(console.log("Error not enough credits to reload."),tt(e,"credits"),setTimeout(()=>{tn()},500),on()):(console.log("Error getting New AI Job."),tt(e,"error"),setTimeout(()=>{tn()},500),on())}(e)},launchWizard:()=>{we({visible:!0,photographyOnly:!1})},categories:H,styles:K,search:g,setSearch:m})})]})}),pu=e=>{const{canUserUseUnfilteredHTML:t}=(0,Eo.useSelect)(e=>({canUserUseUnfilteredHTML:!!e("core/editor")&&e("core/editor").canUserUseUnfilteredHTML()}),[]);return(0,Bo.jsx)(uu,{canUserUseUnfilteredHTML:t,...e})},gu=(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Bo.jsx)(Ro.Path,{d:"M17.3 10.1c0-2.5-2.1-4.4-4.8-4.4-2.2 0-4.1 1.4-4.6 3.3h-.2C5.7 9 4 10.7 4 12.8c0 2.1 1.7 3.8 3.7 3.8h9c1.8 0 3.2-1.5 3.2-3.3.1-1.6-1.1-2.9-2.6-3.2zm-.5 5.1h-9c-1.2 0-2.2-1.1-2.2-2.3s1-2.4 2.2-2.4h1.3l.3-1.1c.4-1.3 1.7-2.2 3.2-2.2 1.8 0 3.3 1.3 3.3 2.9v1.3l1.3.2c.8.1 1.4.9 1.4 1.8-.1 1-.9 1.8-1.8 1.8z"})}),{localStorage:mu}=window,hu=function({connection:e,setSubTab:t,subTab:n,pageCategory:r,setPageCategory:a,pageCategories:l,categories:i,category:s,setCategory:c,search:d}){const[u,p]=(0,Ao.useState)(),[g,m]=(0,Ao.useState)(!1),h=r?.[e.slug]||"all",b=s?.[e.slug]||"all";return(0,Bo.jsxs)("div",{className:"kt-prebuilt-sidebar kb-section-sidebar",children:[(0,Bo.jsxs)("div",{className:"kb-prebuilt-sidebar-header-wrap",children:[(0,Bo.jsxs)("div",{className:"kb-prebuilt-sidebar-header kb-prebuilt-library-logo",children:[!e?.pages&&(0,Bo.jsx)("span",{className:"kb-prebuilt-header-logo",children:gu}),!1]}),e?.pages&&(0,Bo.jsxs)("div",{className:"kb-library-sidebar-context-choices",children:[(0,Bo.jsx)(No.Button,{className:"kb-context-tab-button kb-trigger-patterns"+("patterns"===n?" is-pressed":""),"aria-pressed":"patterns"===n,onClick:()=>{const e=(0,Mo.SafeParseJSON)(mu.getItem("kadenceBlocksPrebuilt"),!0);e.subTab="patterns",mu.setItem("kadenceBlocksPrebuilt",JSON.stringify(e)),t("patterns")},children:(0,o.__)("Patterns","kadence-blocks")}),(0,Bo.jsx)(No.Button,{className:"kb-context-tab-button kb-trigger-pages"+("pages"===n?" is-pressed":""),"aria-pressed":"pages"===n,onClick:()=>{const e=(0,Mo.SafeParseJSON)(mu.getItem("kadenceBlocksPrebuilt"),!0);e.subTab="pages",mu.setItem("kadenceBlocksPrebuilt",JSON.stringify(e)),t("pages")},children:(0,o.__)("Pages","kadence-blocks")})]})]}),(0,Bo.jsx)("div",{className:"kb-prebuilt-sidebar-body-wrap",children:(0,Bo.jsx)("div",{className:"kb-library-sidebar-bottom-wrap",children:(0,Bo.jsx)("div",{className:"kb-library-sidebar-bottom kb-design-library-categories",children:"pages"===n?(0,Bo.jsx)(Bo.Fragment,{children:!d&&(0,Bo.jsx)(Bo.Fragment,{children:l.map((t,n)=>(0,Bo.jsx)(No.Button,{className:"kb-category-button"+(h===t.value?" is-pressed":""),"aria-pressed":h===t.value,onClick:()=>{const n=s;n[e?.slug]=t.value,a(n)},children:t.label},`${t.value}-${n}`))})}):(0,Bo.jsx)(Bo.Fragment,{children:!d&&(0,Bo.jsx)(Bo.Fragment,{children:i.map((t,n)=>(0,Bo.jsx)(No.Button,{className:"kb-category-button"+(b===t.value?" is-pressed":""),"aria-pressed":b===t.value,onClick:()=>{const n=s;n[e?.slug]=t.value,c(n)},children:t.label},`${t.value}-${n}`))})})})})})]})},{localStorage:bu}=window;function fu({selectedItems:e}){const t=[{value:"normal",label:(0,o.__)("Normal","kadence-blocks")},{value:"id_desc",label:(0,o.__)("Latest","kadence-blocks")},{value:"name_asc",label:(0,o.__)("Pattern Name A-Z","kadence-blocks")},{value:"name_desc",label:(0,o.__)("Pattern Name Z-A","kadence-blocks")}],[n,r]=(0,Ao.useState)(t[0].value);(0,Ao.useEffect)(()=>{e&&e(n)},[n]);const a=(0,Bo.jsx)("svg",{width:"10",height:"7",viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M1.175 0.158203L5 3.97487L8.825 0.158203L10 1.3332L5 6.3332L0 1.3332L1.175 0.158203Z",fill:"#020129"})}),l=(0,Ao.useCallback)(()=>{const e=t.find(e=>e.value===n);return e?e.label:""},[n]);return(0,Bo.jsx)(No.Dropdown,{variant:"unstyled",className:"kb-patterns-filter-dropdown kb-patterns-sort-dropdown",contentClassName:"kb-patterns-filter-dropdown-content kb-patterns-sort-dropdown-content",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:e,onToggle:t})=>(0,Bo.jsx)(No.Button,{onClick:t,"aria-expanded":e,className:"kb-toggle-button",children:(0,Bo.jsxs)("div",{className:"kb-toggle-button-wrapper",children:[(0,Bo.jsx)("span",{children:l()}),a]})}),renderContent:({onToggle:e})=>(0,Bo.jsx)("div",{children:(0,Bo.jsx)("div",{className:"kb-patterns-filter-dropdown-sort-inner",children:t.map(t=>(0,Bo.jsx)("div",{className:"kb-pattern-sort-item",children:(0,Bo.jsx)(No.Button,{isPressed:n===t.value,variant:"tertiary",className:"kb-pattern-sort-item-label "+(n===t.value?"is-active":""),onClick:()=>{r(t.value),e()},children:t.label})},t.value))})})})}const vu=function({connection:e,category:t,patterns:n,search:r,setSearch:a,onInsertContent:l,sortBy:i,setSortBy:s}){const[c,d]=(0,Ao.useState)(),u=e?.slug&&t?.[e.slug]?t?.[e.slug]:"all",p=(0,Ao.useMemo)(()=>{const e=[];let t=0;return Object.keys(n).map(function(o,r){const a=[];11===t&&(t=0),a.title=n[o].name,a.name=n[o].name,a.image=n[o].image,a.imageWidth=n[o].imageW,a.imageHeight=n[o].imageH,a.id=n[o].id,a.slug=n[o].slug,a.description=n[o]?.description,a.categories=n[o].categories?Object.keys(n[o].categories):[],a.layouts=n[o]?.layouts?Object.keys(n[o].layouts):[],a.components=n[o]?.components?Object.keys(n[o].components):[],a.keywords=n[o].keywords?n[o].keywords:[],n[o]?.html&&(a.html=_r(n[o].html)),a.content=n[o]?.content||"",a.pro=n[o].pro,a.locked=n[o].locked,a.viewportWidth=1200,a.variation=t,t++,e.push(a)}),e},[n]),g=(0,Ao.useMemo)(()=>{let e=p;return!r&&u&&"all"!==u&&(e=e.filter(e=>e.categories?.includes(u))),"name_asc"===i?e.sort((e,t)=>e.name.localeCompare(t.name)):"name_desc"===i?e.sort((e,t)=>t.name.localeCompare(e.name)):"id_desc"===i&&e.sort((e,t)=>t.id-e.id),ur(e,r)},[r,u,p,i]);return(0,Bo.jsx)("div",{ref:d,className:"kb-cloud-patterns-explorer__wrap",children:(0,Bo.jsxs)("div",{className:"kb-cloud-patterns-explorer",children:[(0,Bo.jsxs)("div",{className:"kb-patterns-filter-wrapper",children:[(0,Bo.jsx)(No.SearchControl,{className:"kb-pattern-search-control",value:r,placeholder:(0,o.__)("Search Patterns","kadence-blocks"),onChange:e=>a(e)}),(0,Bo.jsx)("span",{className:"kb-patterns-count-message",children:r?(0,o.sprintf)(/* translators: %d: number of patterns. %s: block pattern search query */ /* translators: %d: number of patterns. %s: block pattern search query */ (0,o._n)('%1$d pattern for "%2$s"','%1$d patterns for "%2$s"',g.length),g.length,r):(0,o.sprintf)(/* translators: %d: number of patterns. */ /* translators: %d: number of patterns. */ (0,o._n)("%d pattern","%d patterns",g.length),g.length)}),s&&(0,Bo.jsxs)("div",{className:"kb-patterns-filter-wrapper-sort-by",children:[(0,Bo.jsx)("span",{className:"kb-pattern-filter-label",children:(0,o.__)("Sort by:","kadence-blocks")}),(0,Bo.jsx)(fu,{selectedItems:s})]})]}),(0,Bo.jsx)("div",{className:"kb-cloud-library-outer-wrap",children:(0,Bo.jsx)(Mr,{breakpointCols:{default:3,1600:2,1200:2,500:1},className:"kb-css-masonry kb-cloud-library-wrap",columnClassName:"kb-css-masonry_column",children:g.map((e,t)=>{const n=e.name,r=e.slug,a=e.image,i=e.imageWidth,s=e.imageHeight,c=e.description,d=e.pro,u=e.locked,p=`${r}_kb_cloud__item-description`;let g=i&&s?(m=s/i*100,Number(Math.round(Number(m+"e2"))+"e"+-2)):61;var m;const h=g;let b=0,f=!1;g>140&&(b=(g-140)/g*100,g=140,f=!0);const v=`transform ${h>140?(h-b)/100*600:800}ms linear`;return(0,Bo.jsxs)("div",{className:"kb-css-masonry-inner",style:{"--scroll-height-offset":"-"+b+"%","--scroll-height-speed":v},children:[(0,Bo.jsx)(No.Button,{className:"kb-css-masonry-btn"+(f?" kb-css-masonry-btn-max-height":""),"aria-label":(0,o.sprintf)(/* translators: %s is Prebuilt Name */ /* translators: %s is Prebuilt Name */ (0,o.__)("Add %s","kadence-blocks"),n),"aria-describedby":c?p:void 0,isDisabled:u,onClick:()=>u?"":l(e),children:(0,Bo.jsxs)("div",{className:"kb-css-masonry-btn-inner",style:{paddingBottom:i&&s?g+"%":void 0},children:[(0,Bo.jsx)("img",{src:a,loading:"lazy",alt:n}),(0,Bo.jsx)("span",{className:"kb-import-btn-title",dangerouslySetInnerHTML:{__html:n}})]})},t),!!c&&(0,Bo.jsx)(No.VisuallyHidden,{id:p,children:c}),void 0!==d&&d&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("span",{className:"kb-pro-template",children:(0,o.__)("Pro","kadence-blocks")}),u&&(0,Bo.jsx)("div",{className:"kb-popover-pro-notice",children:(0,Bo.jsxs)("h2",{children:[(0,o.__)("Pro required for this item","kadence-blocks")," "]})})]})]},t)})})})]})})},{localStorage:yu}=window,ku=(0,Eo.withDispatch)((e,{canUserUseUnfilteredHTML:t})=>({importContent(n,o){const{replaceBlocks:r}=e(Pr.store);r(o,(0,a.rawHandler)({HTML:n,mode:"BLOCKS",canUserUseUnfilteredHTML:t}))}}))(function({importContent:e,clientId:t,reload:n=!1,onReload:r,onLibraryUpdate:a,tab:l,libraries:i}){const[s,c]=(0,Ao.useState)({}),[d,u]=(0,Ao.useState)(""),[p,g]=(0,Ao.useState)(""),[m,h]=(0,Ao.useState)({}),[b,f]=(0,Ao.useState)(null),[v,y]=(0,Ao.useState)(""),[k,x]=(0,Ao.useState)(!1),[w,_]=(0,Ao.useState)(!1),[S,j]=(0,Ao.useState)(""),[C,I]=(0,Ao.useState)({}),[O,M]=(0,Ao.useState)(""),[P,T]=(0,Ao.useState)({}),[E,A]=(0,Ao.useState)([]),[N,L]=(0,Ao.useState)(""),[R,B]=(0,Ao.useState)({}),[D,F]=(0,Ao.useState)([]),[z,H]=(0,Ao.useState)(!1),[$,V]=(0,Ao.useState)(!1),[W,U]=(0,Ao.useState)(!1),[Z,G]=(0,Ao.useState)("general"),q=(0,Ao.useMemo)(()=>i.filter(e=>e.slug===l),[l,i]),K=q?.[0]?.pages,J=(0,Mo.SafeParseJSON)(yu.getItem("kadenceBlocksPrebuilt"),!0),Y=K&&void 0!==J?.kbSubTab&&""!==J?.kbSubTab?J.kbSubTab:"patterns",X=v||Y,{createErrorNotice:Q}=(0,Eo.useDispatch)(Wo.store);(0,Ao.useEffect)(()=>{A(Object.keys(P).map(function(e,t){return{value:"category"===e?"all":e,label:"category"===e?(0,o.__)("All","kadence-blocks"):P[e]}}))},[P]),(0,Ao.useEffect)(()=>{F(Object.keys(R).map(function(e,t){return{value:"category"===e?"all":e,label:"category"===e?(0,o.__)("All","kadence-blocks"):R[e]}}))},[R]);const{getPatterns:ee,getPattern:te,processPattern:ne,getPatternCategories:oe,getConnection:re,updateConnections:ae}=Sa();async function le(n,o="pattern"){V(!0);let r=[];if(void 0===r||0==r.length){const e=kadence_blocks_params?.cloud_settings?JSON.parse(kadence_blocks_params.cloud_settings):{};e&&e.connections&&(r=e.connections.filter(e=>e.slug===l))}if(void 0!==r&&0!=r.length||"object"==typeof kadence_blocks_params?.prebuilt_libraries&&null!==kadence_blocks_params?.prebuilt_libraries&&(r=kadence_blocks_params.prebuilt_libraries.filter(e=>e.slug===l)),r?.[0]?.url&&n?.id){const e=await te(l,o,n?.id?n.id:"","light",r?.[0]?.url?r[0].url:"",r?.[0]?.key?r[0].key:"");if(e)try{const t=JSON.parse(e);n.content="page"===o&&t?.rows?function(e){if(!e)return"";let t=[],n="";return t=Object.keys(e).map(function(t,n){return e[t]?.pattern_content||""}),Object.keys(t).map(function(e,o){n=n.concat(t[e])}),n}(t.rows):t}catch(e){console.log("error",e),n?.content||(U(!0),G("general"),V(!1))}}n?.content&&async function(n){const o=await ne(n.content,C,n?.cpt_blocks?n.cpt_blocks:[],n?.style?n.style:"");"failed"===o?(ie(blockCode,C),console.log("Import Process Failed when processing data through rest api... Trying ajax.")):(e(o,t),V(!1))}(n)}const ie=n=>{const o=new FormData;o.append("action","kadence_import_process_image_data"),o.append("security",kadence_blocks_params.ajax_nonce),o.append("import_content",n),o.append("image_library",JSON.stringify(C)),jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:o,contentType:!1,processData:!1}).done(function(n,o,r){n?e(n,t):(U(!0),G("reload")),V(!1)}).fail(function(e){console.log(e),U(!0),G("reload"),V(!1)})};async function se(e,t){H(!0),U(!1),G("general");let n=[];if("section"!==l&&(n=i.filter(e=>e.slug===l)),void 0===n||0==n.length){const e=kadence_blocks_params?.cloud_settings?JSON.parse(kadence_blocks_params.cloud_settings):{};e&&e.connections&&(n=e.connections.filter(e=>e.slug===l))}if(void 0!==n&&0!=n.length||"object"==typeof kadence_blocks_params?.prebuilt_libraries&&null!==kadence_blocks_params?.prebuilt_libraries&&(n=kadence_blocks_params.prebuilt_libraries.filter(e=>e.slug===l)),!n?.[0]?.url)return H(!1),U(!0),void G("general");const o=await ee(l,t,n?.[0]?.url?n[0].url:"",n?.[0]?.key?n[0].key:"","pages"===e?"pages":"");if("failed"===o)console.log("Permissions Error getting library Content"),"pages"===e?_("error"):x("error"),U(!0),G("reload"),H(!1);else if("error"===o)console.log("Error getting library Content."),"pages"===e?_("error"):x("error"),U(!0),H(!1);else{const r=(0,Mo.SafeParseJSON)(o,!1);if(r){if(t&&"pages"!==e){const e=kadence_blocks_params?.cloud_settings?JSON.parse(kadence_blocks_params.cloud_settings):{};if(e&&e?.connections){const t=e.connections.findIndex(e=>e.slug===l);if(e?.connections?.[t]){const o=await re(l,n?.[0]?.url?n[0].url:"",n?.[0]?.key?n[0].key:""),r=(0,Mo.SafeParseJSON)(o,!1);let i=!1;r&&(r?.name&&e.connections[t]?.title!==r.name&&(e.connections[t].title=r.name,i=!0),e.connections[t]?.pages!==r?.pages&&(e.connections[t].pages=r?.pages?r.pages:"",i=!0),i)&&(kadence_blocks_params.cloud_settings=JSON.stringify(e),"failed"!==await ae(e)&&a())}}}const o=await oe(l,t,n?.[0]?.url?n[0].url:"",n?.[0]?.key?n[0].key:"","pages"===e?"pages":"");if(o){const t=(0,Mo.SafeParseJSON)(o,!1);if("pages"===e){const e=t||{},n={};Object.keys(r).map(function(e,t){r[e].categories&&"object"==typeof r[e].categories&&Object.keys(r[e].categories).map(function(t,o){n.hasOwnProperty(t)||(n[t]=r[e].categories[t])})}),Object.keys(e).map(function(t,o){n.hasOwnProperty(t)||delete e[t]});const o={all:"All",...e,...n};_(r),B(JSON.parse(JSON.stringify(o)))}else{const e=t||{},n={};Object.keys(r).map(function(e,t){r[e].categories&&"object"==typeof r[e].categories&&Object.keys(r[e].categories).map(function(t,o){n.hasOwnProperty(t)||(n[t]=r[e].categories[t])})}),Object.keys(e).map(function(t,o){n.hasOwnProperty(t)||delete e[t]});const o={all:"All",...e,...n};x(r),T(JSON.parse(JSON.stringify(o)))}}else"pages"===e?_("error"):x("error"),U(!0)}else console.log("error, library content incorrect",o),"pages"===e?_("error"):x("error"),U(!0);H(!1)}}return(0,Ao.useEffect)(()=>{n&&!z?(r(),se(X,!0)):z||se(X,!1)},[n,l,X]),(0,Bo.jsxs)("div",{className:"kt-prebuilt-content kb-prebuilt-has-sidebar kb-cloud-pattern-library",children:[(0,Bo.jsx)(hu,{connection:q?.[0],pageCategory:m||{},category:s||{},subTab:X,setSubTab:y,setPageCategory:e=>{h(e),g(e[q?.[0]?.slug])},pageCategories:D,categories:E,setCategory:e=>{c(e),u(e[q?.[0]?.slug])},search:b}),"pages"===X?(0,Bo.jsx)(Bo.Fragment,{children:$||z||!1===w||W?(0,Bo.jsxs)(Bo.Fragment,{children:[!W&&z&&(0,Bo.jsx)("div",{className:"kb-loading-library",children:(0,Bo.jsx)(No.Spinner,{})}),!W&&$&&(0,Bo.jsxs)("div",{className:"preparing-importing-images",children:[(0,Bo.jsx)(No.Spinner,{}),(0,Bo.jsx)("h2",{children:(0,o.__)("Preparing Content…","kadence-blocks")})]}),W&&"general"===Z&&(0,Bo.jsxs)("div",{className:"kb-pattern-error-wrapper",children:[(0,Bo.jsx)("h2",{style:{textAlign:"center"},children:(0,o.__)("Error, Unable to access library database, please try re-syncing","kadence-blocks")}),(0,Bo.jsx)("div",{style:{textAlign:"center"},children:(0,Bo.jsx)(No.Button,{className:"kt-reload-templates",icon:Fo,onClick:()=>z?null:se(X,!0),children:(0,o.__)("Sync with Cloud","kadence-blocks")})})]}),W&&"reload"===Z&&(0,Bo.jsx)("div",{className:"kb-pattern-error-wrapper",children:(0,Bo.jsx)("h2",{style:{textAlign:"center"},children:(0,o.__)("Error, Unable to access library, please reload this page in your browser.","kadence-blocks")})})]}):(0,Bo.jsx)(vu,{connection:q?.[0],category:m||{},patterns:w,search:b,onInsertContent:e=>le(e,"page"),setSearch:f})}):(0,Bo.jsx)(Bo.Fragment,{children:$||z||!1===k||W?(0,Bo.jsxs)(Bo.Fragment,{children:[!W&&z&&(0,Bo.jsx)(No.Spinner,{}),!W&&$&&(0,Bo.jsxs)("div",{className:"preparing-importing-images",children:[(0,Bo.jsx)(No.Spinner,{}),(0,Bo.jsx)("h2",{children:(0,o.__)("Preparing Content…","kadence-blocks")})]}),W&&(0,Bo.jsxs)("div",{children:[(0,Bo.jsx)("h2",{style:{textAlign:"center"},children:(0,o.__)("Error, Unable to access library database, please try re-syncing","kadence-blocks")}),(0,Bo.jsx)("div",{style:{textAlign:"center"},children:(0,Bo.jsx)(No.Button,{className:"kt-reload-templates",icon:Fo,onClick:()=>se(X,!0),children:(0,o.__)("Sync with Cloud","kadence-blocks")})})]})]}):(0,Bo.jsx)(vu,{connection:q?.[0],category:s||{},patterns:k,search:b,onInsertContent:le,sortBy:O,setSearch:f,setSortBy:M})})]})}),xu=e=>{const{canUserUseUnfilteredHTML:t}=(0,Eo.useSelect)(e=>({canUserUseUnfilteredHTML:!!e("core/editor")&&e("core/editor").canUserUseUnfilteredHTML()}),[]);return(0,Bo.jsx)(ku,{canUserUseUnfilteredHTML:t,...e})};var wu=Object.defineProperty,_u=(e,t,n)=>(((e,t,n)=>{t in e?wu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const Su=(e,t)=>typeof getComputedStyle<"u"?getComputedStyle(e,null).getPropertyValue(t):e.style.getPropertyValue(t),ju=e=>Su(e,"overflow")+Su(e,"overflow-y")+Su(e,"overflow-x");class Cu extends h.Component{constructor(e){super(e),_u(this,"elementObserver"),_u(this,"wrapper"),_u(this,"lazyLoadHandler",e=>{var t,n;const{onContentVisible:o}=this.props,[r]=e,{isIntersecting:a}=r;if(a){this.setState({visible:!0},()=>{o&&o()});const e=null==(t=this.wrapper)?void 0:t.current;e&&e instanceof HTMLElement&&(null==(n=this.elementObserver)||n.unobserve(e))}}),this.elementObserver=null,this.wrapper=h.createRef(),this.state={visible:!1}}componentDidMount(){var e;this.getEventNode();const{offset:t,threshold:n}=this.props,o={rootMargin:"number"==typeof t?`${t}px`:t||"0px",threshold:n||0};this.elementObserver=new IntersectionObserver(this.lazyLoadHandler,o);const r=null==(e=this.wrapper)?void 0:e.current;r instanceof HTMLElement&&this.elementObserver.observe(r)}shouldComponentUpdate(e,t){return t.visible}componentWillUnmount(){var e,t;const n=null==(e=this.wrapper)?void 0:e.current;n&&n instanceof HTMLElement&&(null==(t=this.elementObserver)||t.unobserve(n))}getEventNode(){var e;return(e=>{if(!(e instanceof HTMLElement))return window;let t=e;for(;t&&t!==document.body&&t!==document.documentElement&&t.parentNode;){if(/(scroll|auto)/.test(ju(t)))return t;t=t.parentNode}return window})(null==(e=this.wrapper)?void 0:e.current)}render(){const{children:e,className:t,height:n,width:o,elementType:r}=this.props,{visible:a}=this.state,l={height:n,width:o},i=`LazyLoad${a?" is-visible":""}${t?` ${t}`:""}`;return(0,h.createElement)(r||"div",{className:i,style:l,ref:this.wrapper},a&&h.Children.only(e))}}_u(Cu,"defaultProps",{elementType:"div",className:"",offset:0,threshold:0,width:null,onContentVisible:null,height:null});class Iu extends Ao.Component{constructor(){super(...arguments),this.loadTemplateData=this.loadTemplateData.bind(this),this.onInsertContent=this.onInsertContent.bind(this),this.importProcess=this.importProcess.bind(this),this.reloadTemplateData=this.reloadTemplateData.bind(this),this.state={category:"all",starting:!0,search:null,items:!!kadence_blocks_params.library_templates&&(0,Mo.SafeParseJSON)(kadence_blocks_params.library_templates,!1),errorItems:!1,isImporting:!1,isLoading:!1,sidebar:!1,categories:{category:(0,o.__)("Category","kadence-blocks"),pro:(0,o.__)("Pro","kadence-blocks"),feature:(0,o.__)("Feature","kadence-blocks"),hero:(0,o.__)("Hero","kadence-blocks"),"call-to-action":(0,o.__)("Call To Action","kadence-blocks"),staff:(0,o.__)("Staff","kadence-blocks"),testimonials:(0,o.__)("Testimonials","kadence-blocks")}},this.debouncedReloadTemplateData=(0,jo.debounce)(this.reloadTemplateData.bind(this),200)}onInsertContent(e){this.importProcess(e)}importProcess(e){this.setState({isImporting:!0});const t=new FormData;t.append("action","kadence_import_process_data"),t.append("security",kadence_blocks_params.ajax_nonce),t.append("import_content",e);const n=this;jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:t,contentType:!1,processData:!1}).done(function(e,t,o){e&&(n.props.import(e),n.setState({isImporting:!1}))}).fail(function(e){console.log(e),n.setState({isImporting:!1})})}reloadTemplateData(){this.setState({errorItems:!1,isLoading:!0,items:"loading"});let e=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_key?kadence_blocks_params.proData.api_key:"",t=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_email?kadence_blocks_params.proData.api_email:"";const n=kadence_blocks_params.proData&&kadence_blocks_params.proData.product_id?kadence_blocks_params.proData.product_id:"";e||(e=kadence_blocks_params.proData&&kadence_blocks_params.proData.ithemes_key?kadence_blocks_params.proData.ithemes_key:"",e&&(t="iThemes"));const o=new FormData;o.append("action","kadence_import_reload_prebuilt_templates_data"),o.append("security",kadence_blocks_params.ajax_nonce),o.append("api_key",e),o.append("api_email",t),o.append("product_id",n),o.append("package","templates");const r=this;jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:o,contentType:!1,processData:!1}).done(function(e,t,n){if(e){const t=(0,Mo.SafeParseJSON)(e,!1);if(t){const e=(0,Lo.applyFilters)("kadence.prebuilt_templates_object",t);kadence_blocks_params.library_templates=e,r.setState({items:e,errorItems:!1,isLoading:!1})}else r.setState({items:"error",errorItems:!0,isLoading:!1})}}).fail(function(e){console.log(e),r.setState({items:"error",errorItems:!0,isLoading:!1})})}loadTemplateData(){this.setState({errorItems:!1,isLoading:!0,items:"loading"});let e=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_key?kadence_blocks_params.proData.api_key:"",t=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_email?kadence_blocks_params.proData.api_email:"";const n=kadence_blocks_params.proData&&kadence_blocks_params.proData.product_id?kadence_blocks_params.proData.product_id:"";e||(e=kadence_blocks_params.proData&&kadence_blocks_params.proData.ithemes_key?kadence_blocks_params.proData.ithemes_key:"",e&&(t="iThemes"));const o=new FormData;o.append("action","kadence_import_get_prebuilt_templates_data"),o.append("security",kadence_blocks_params.ajax_nonce),o.append("api_key",e),o.append("api_email",t),o.append("product_id",n),o.append("package","templates");const r=this;jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:o,contentType:!1,processData:!1}).done(function(e,t,n){if(e){const t=(0,Mo.SafeParseJSON)(e,!1);if(t){const e=(0,Lo.applyFilters)("kadence.prebuilt_templates_object",t);kadence_blocks_params.library_templates=e,r.setState({items:e,errorItems:!1,isLoading:!1})}else r.setState({items:"error",errorItems:!0,isLoading:!1})}}).fail(function(e){console.log(e),r.setState({items:"error",errorItems:!0,isLoading:!1})})}render(){this.props.reload&&(this.props.onReload(),this.debouncedReloadTemplateData());const e=this,t=this.state.items;return(0,Bo.jsx)("div",{className:"kt-prebuilt-content"+(this.state.sidebar?" kb-prebuilt-has-sidebar":""),children:this.state.isImporting||this.state.isLoading||!1===t||this.state.errorItems?(0,Bo.jsxs)(Ao.Fragment,{children:[!this.state.errorItems&&this.state.isLoading&&(0,Bo.jsx)(No.Spinner,{}),!this.state.errorItems&&this.state.isImporting&&(0,Bo.jsxs)("div",{className:"preparing-importing-images",children:[(0,Bo.jsx)(No.Spinner,{}),(0,Bo.jsx)("h2",{children:(0,o.__)("Preparing Content…","kadence-blocks")})]}),this.state.errorItems&&(0,Bo.jsxs)("div",{children:[(0,Bo.jsx)("h2",{style:{textAlign:"center"},children:(0,o.__)("Error, Unable to access library database, please try re-syncing","kadence-blocks")}),(0,Bo.jsx)("div",{style:{textAlign:"center"},children:(0,Bo.jsx)(No.Button,{className:"kt-reload-templates",icon:Fo,onClick:()=>this.reloadTemplateData(),children:(0,o.__)("Sync with Cloud","kadence-blocks")})})]}),!1===t&&(0,Bo.jsx)(Ao.Fragment,{children:this.loadTemplateData()})]}):(0,Bo.jsx)("div",{className:"kb-prebuilt-grid kb-prebuilt-templates-grid",children:Object.keys(this.state.items).map(function(n,r){const a=t[n].name,l=t[n].slug,i=t[n].image,s=t[n].categories,c=t[n].keywords,d=t[n].pro,u=t[n].url,p=t[n].pages;if(("all"===e.state.category||Object.keys(s).includes(e.state.category))&&(!e.state.search||c&&c.some(t=>t.toLowerCase().includes(e.state.search.toLowerCase()))))return(0,Bo.jsxs)("div",{className:"kt-prebuilt-item",children:[(0,Bo.jsx)(No.Button,{className:"kt-import-btn",isSmall:!0,"aria-label":(0,o.sprintf)(/* translators: %s is Prebuilt Name */ /* translators: %s is Prebuilt Name */ (0,o.__)("Add %s","kadence-blocks"),a),onClick:()=>{e.props.onSelectTemplate({name:a,slug:l,url:u})},children:(0,Bo.jsxs)("div",{className:"kt-import-btn-inner",style:{paddingBottom:"126%"},children:[(0,Bo.jsx)(Cu,{offsetBottom:200,children:(0,Bo.jsx)("img",{src:p&&p.home&&p.home.crop_thumbnail?p.home.crop_thumbnail:i,alt:a})}),(0,Bo.jsx)("div",{className:"demo-title",children:(0,Bo.jsx)("h4",{dangerouslySetInnerHTML:{__html:a}})})]})},n),void 0!==d&&d&&(0,Bo.jsx)(Ao.Fragment,{children:(0,Bo.jsx)("span",{className:"kb-pro-template",children:(0,o.__)("Premium","kadence-blocks")})})]})})})})}}const Ou=Iu,Mu=(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Bo.jsx)(Ro.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"})});class Pu extends Ao.Component{constructor(){super(...arguments),this.loadTemplateData=this.loadTemplateData.bind(this),this.onInsertContent=this.onInsertContent.bind(this),this.importProcess=this.importProcess.bind(this),this.reloadTemplateData=this.reloadTemplateData.bind(this),this.state={items:!1,errorItems:!1,isImporting:!1,isLoading:!1,sidebar:!1},this.debouncedReloadTemplateData=(0,jo.debounce)(this.reloadTemplateData.bind(this),200)}onInsertContent(e){this.importProcess(e)}importProcess(e){this.setState({isImporting:!0});const t=new FormData;t.append("action","kadence_import_process_data"),t.append("security",kadence_blocks_params.ajax_nonce),t.append("import_content",e);const n=this;jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:t,contentType:!1,processData:!1}).done(function(e,t,o){e&&(n.props.import(e),n.setState({isImporting:!1}))}).fail(function(e){console.log(e),n.setState({isImporting:!1})})}reloadTemplateData(){this.setState({errorItems:!1,isLoading:!0,items:"loading"});let e=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_key?kadence_blocks_params.proData.api_key:"",t=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_email?kadence_blocks_params.proData.api_email:"";const n=kadence_blocks_params?.proData?.product?kadence_blocks_params.proData.product:"";e||(e=kadence_blocks_params.proData&&kadence_blocks_params.proData.ithemes_key?kadence_blocks_params.proData.ithemes_key:"",e&&(t="iThemes"));const o=new FormData;o.append("action","kadence_import_reload_prebuilt_data"),o.append("security",kadence_blocks_params.ajax_nonce),o.append("api_key",e),o.append("api_email",t),o.append("package",this.props.selectedSlug),o.append("product_slug",n),o.append("url",this.props.selectedURL),o.append("is_template","is_template"),o.append("key","kadence-blocks");const r=this;jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:o,contentType:!1,processData:!1}).done(function(e,t,n){if(e){const t=(0,Mo.SafeParseJSON)(e,!1);t?r.setState({items:t,errorItems:!1,isLoading:!1}):r.setState({items:"error",errorItems:!0,isLoading:!1})}}).fail(function(e){console.log(e),r.setState({items:"error",errorItems:!0,isLoading:!1})})}loadTemplateData(){this.setState({errorItems:!1,isLoading:!0,items:"loading"});let e=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_key?kadence_blocks_params.proData.api_key:"",t=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_email?kadence_blocks_params.proData.api_email:"";const n=kadence_blocks_params?.proData?.product?kadence_blocks_params.proData.product:"";e||(e=kadence_blocks_params.proData&&kadence_blocks_params.proData.ithemes_key?kadence_blocks_params.proData.ithemes_key:"",e&&(t="iThemes"));const o=new FormData;o.append("action","kadence_import_get_prebuilt_data"),o.append("security",kadence_blocks_params.ajax_nonce),o.append("api_key",e),o.append("api_email",t),o.append("product_slug",n),o.append("package",this.props.selectedSlug),o.append("url",this.props.selectedURL),o.append("is_template","is_template"),o.append("key","kadence-blocks");const r=this;jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:o,contentType:!1,processData:!1}).done(function(e,t,n){if(e){const t=(0,Mo.SafeParseJSON)(e,!1);t?r.setState({items:t,errorItems:!1,isLoading:!1}):r.setState({items:"error",errorItems:!0,isLoading:!1})}}).fail(function(e){console.log(e),r.setState({items:"error",errorItems:!0,isLoading:!1})})}render(){this.props.reload&&(this.props.onReload(),this.debouncedReloadTemplateData());const e=this,t=this.state.items,n="true"!==kadence_blocks_params.pro||"true"!==kadence_blocks_params.creativeKit;return(0,Bo.jsxs)("div",{className:"kt-prebuilt-content"+(this.state.sidebar?" kb-prebuilt-has-sidebar":""),children:[(0,Bo.jsx)("div",{className:"kt-prebuilt-header kb-library-header",children:(0,Bo.jsx)("div",{className:"kb-library-header-left",children:(0,Bo.jsx)(No.Button,{className:"kb-back-starter-templates",icon:Mu,onClick:()=>this.props.onBack(),children:(0,o.__)("Back to Starter Packs","kadence-blocks")})})}),this.state.isImporting||this.state.isLoading||!1===t||this.state.errorItems?(0,Bo.jsxs)(Ao.Fragment,{children:[!this.state.errorItems&&this.state.isLoading&&(0,Bo.jsx)(No.Spinner,{}),!this.state.errorItems&&this.state.isImporting&&(0,Bo.jsxs)("div",{className:"preparing-importing-images",children:[(0,Bo.jsx)(No.Spinner,{}),(0,Bo.jsx)("h2",{children:(0,o.__)("Preparing Content…","kadence-blocks")})]}),this.state.errorItems&&(0,Bo.jsxs)(Ao.Fragment,{children:[(0,Bo.jsx)("h2",{style:{textAlign:"center"},children:(0,o.__)("Error, Unable to access library database, please try re-syncing","kadence-blocks")}),(0,Bo.jsx)("div",{style:{textAlign:"center"},children:(0,Bo.jsx)(No.Button,{className:"kt-reload-templates",icon:Fo,onClick:()=>this.reloadTemplateData(),children:(0,o.__)("Sync with Cloud","kadence-blocks")})})]}),!1===t&&(0,Bo.jsx)(Ao.Fragment,{children:this.loadTemplateData()})]}):(0,Bo.jsx)("div",{className:"kb-prebuilt-grid kb-prebuilt-templates-grid kb-prebuilt-single-templates",children:Object.keys(this.state.items).map(function(r,a){const l=t[r].name,i=t[r].content,s=t[r].image,c=t[r].pro,d=t[r].locked;return(0,Bo.jsxs)("div",{className:"kt-prebuilt-item",children:[(0,Bo.jsx)(No.Button,{className:"kt-import-btn",isSmall:!0,"aria-label":(0,o.sprintf)(/* translators: %s is Prebuilt Name */ /* translators: %s is Prebuilt Name */ (0,o.__)("Add %s","kadence-blocks"),l),isDisabled:void 0!==c&&c&&!n,onClick:()=>d?"":e.onInsertContent(i),children:(0,Bo.jsxs)("div",{className:"kt-import-btn-inner kb-scroll-over-image",style:{paddingBottom:"450px"},children:[(0,Bo.jsx)(Cu,{children:(0,Bo.jsx)("img",{src:s,alt:l})}),(0,Bo.jsx)("div",{className:"demo-title",children:(0,Bo.jsx)("h4",{dangerouslySetInnerHTML:{__html:l}})})]})},r),void 0!==c&&c&&(0,Bo.jsxs)(Ao.Fragment,{children:[(0,Bo.jsx)("span",{className:"kb-pro-template",children:(0,o.__)("Premium","kadence-blocks")}),d&&(0,Bo.jsxs)("div",{className:"kt-popover-pro-notice",children:[(0,Bo.jsxs)("h2",{children:[(0,o.__)("Kadence Premium Designs required for this item")," "]}),(0,Bo.jsx)(No.ExternalLink,{href:"https://www.kadencewp.com/pricing/?utm_source=in-app&utm_medium=kadence-blocks&utm_campaign=design-library",children:(0,o.__)("Upgrade to Get Access","kadence-blocks")})]})]})]})})})]})}}const Tu=(0,Ho.compose)((0,Eo.withSelect)((e,{clientId:t})=>{const{getBlock:n}=e("core/block-editor");return{block:n(t),canUserUseUnfilteredHTML:!!e("core/editor")&&e("core/editor").canUserUseUnfilteredHTML()}}),(0,Eo.withDispatch)((e,{block:t,canUserUseUnfilteredHTML:n})=>({import:o=>e("core/block-editor").replaceBlocks(t.clientId,(0,a.rawHandler)({HTML:o,mode:"BLOCKS",canUserUseUnfilteredHTML:n}))})))(Pu);class Eu extends Ao.Component{constructor(){super(...arguments),this.state={view:"templates",selectedSlug:null,selectedURL:null,selectedName:null}}render(){return(0,Bo.jsxs)(Ao.Fragment,{children:["templates"===this.state.view&&(0,Bo.jsx)(Ou,{clientId:this.props.clientId,reload:this.props.reload,onSelectTemplate:({name:e,slug:t,url:n})=>{this.setState({selectedSlug:t,selectedName:e,selectedURL:n,view:"single"})},onReload:()=>this.props.onReload()}),"single"===this.state.view&&(0,Bo.jsx)(Tu,{clientId:this.props.clientId,selectedSlug:this.state.selectedSlug,selectedName:this.state.selectedName,selectedURL:this.state.selectedURL,reload:this.props.reload,onReload:()=>this.props.onReload(),onBack:()=>this.setState({selectedSlug:null,selectedName:null,selectedURL:null,view:"templates"})})]})}}const Au=Eu,Nu=(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Bo.jsx)(Ro.Path,{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.5A2.25 2.25 0 0 0 9.878 7h4.244A2.251 2.251 0 0 0 12 5.5ZM12 4a3.751 3.751 0 0 0-3.675 3H5v1.5h1.27l.818 8.997a2.75 2.75 0 0 0 2.739 2.501h4.347a2.75 2.75 0 0 0 2.738-2.5L17.73 8.5H19V7h-3.325A3.751 3.751 0 0 0 12 4Zm4.224 4.5H7.776l.806 8.861a1.25 1.25 0 0 0 1.245 1.137h4.347a1.25 1.25 0 0 0 1.245-1.137l.805-8.861Z"})});class Lu extends Ao.Component{constructor(){super(...arguments),this.saveSettings=this.saveSettings.bind(this),this.addConnection=this.addConnection.bind(this),this.state={isLoading:!0,errorConnecting:!1,cloudSettings:{},newKey:"",newURl:""}}componentDidMount(){To()({path:"/wp/v2/settings"}).then(e=>{this.setState({isLoading:!1,cloudSettings:(0,Mo.SafeParseJSON)(e.kadence_blocks_cloud)})})}saveSettings(e){kadence_blocks_params.cloud_settings=JSON.stringify(e),this.setState({isSaving:!0}),To()({path:"/wp/v2/settings",method:"POST",data:{kadence_blocks_cloud:JSON.stringify(e)}}).then(t=>{this.setState({isSaving:!1,errorConnecting:!1,isLoading:!1,newUrl:"",newKey:"",cloudSettings:e}),this.props.onReload()})}addConnection(){this.setState({isLoading:!0});const e=new FormData;e.append("action","kadence_import_get_new_connection_data"),e.append("security",kadence_blocks_params.ajax_nonce),e.append("url",this.state.newUrl?this.state.newUrl:""),e.append("key",this.state.newKey?this.state.newKey:"");const t=this;jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:e,contentType:!1,processData:!1}).done(function(e,n,o){if(e){const n=(0,Mo.SafeParseJSON)(e,!1);if(n){const e=t.state.cloudSettings;e.connections||(e.connections=[]);const o={};o.slug=n.slug,o.title=n.name,o.url=t.state.newUrl,o.key=t.state.newKey,o.expires=n.expires,o.refresh=n.refresh,o.pages=n.pages,e.connections.push(o),t.saveSettings(e)}else t.setState({errorConnecting:!0,errorNotice:e,isLoading:!1})}}).fail(function(e){console.log(e),t.setState({errorConnecting:!0,isLoading:!1})})}render(){return(0,Bo.jsx)("div",{className:"kb-new-connection-content",children:this.state.isLoading?(0,Bo.jsx)(Ao.Fragment,{children:(0,Bo.jsx)(No.Spinner,{})}):(0,Bo.jsxs)(Ao.Fragment,{children:[this.state.errorConnecting&&(0,Bo.jsx)("div",{className:"error",children:this.state.errorNotice}),this.state.cloudSettings.connections&&this.state.cloudSettings.connections[0]&&(0,Bo.jsx)(Ao.Fragment,{children:this.state.cloudSettings.connections.map((e,t)=>(0,Bo.jsx)(Ao.Fragment,{children:(0,Bo.jsxs)("div",{className:"kb-connection-title",children:[e.title,(0,Bo.jsx)(No.Button,{className:"kb-connection-remove-button",icon:Nu,"aria-label":(0,o.__)("Remove Connection","kadence-blocks"),onClick:()=>{const e=this.state.cloudSettings;e.connections.splice(t,1),this.setState({cloudSettings:e}),this.saveSettings(e)}},`connection-${t}`)]})}))}),(0,Bo.jsxs)("div",{className:"kb-connection-add-new",children:[(0,Bo.jsx)(No.TextControl,{label:(0,o.__)("Connection URL","kadence-blocks"),type:"text",value:this.state.newUrl,onChange:e=>this.setState({newUrl:e})}),(0,Bo.jsx)(No.TextControl,{label:(0,o.__)("Connection Access Key","kadence-blocks"),type:"text",value:this.state.newKey,onChange:e=>this.setState({newKey:e})}),(0,Bo.jsx)(No.Button,{className:"kb-connection-add-button",isPrimary:!0,onClick:()=>{this.addConnection()},children:(0,o.__)("Add Connection","kadence-blocks")})]}),(0,Bo.jsxs)("div",{className:"kb-connection-info",children:[(0,o.__)("Learn about connecting libraries at:","kadence-blocks")+" ",(0,Bo.jsx)(No.ExternalLink,{href:"https://www.kadencewp.com/kadence-cloud/?utm_source=in-app&utm_medium=kadence-blocks&utm_campaign=design-library",children:(0,o.__)("Kadence Pattern Hub","kadence-blocks")})]})]})})}}const Ru=(0,Ho.compose)((0,Eo.withSelect)((e,{clientId:t})=>{const{getBlock:n}=e("core/block-editor");return{block:n(t),canUserUseUnfilteredHTML:!!e("core/editor")&&e("core/editor").canUserUseUnfilteredHTML()}}),(0,Eo.withDispatch)((e,{block:t,canUserUseUnfilteredHTML:n})=>({import:o=>e("core/block-editor").replaceBlocks(t.clientId,(0,a.rawHandler)({HTML:o,mode:"BLOCKS",canUserUseUnfilteredHTML:n}))})))(Lu),Bu={contextStates:{"value-prop":!1,"products-services":!1,about:!1,achievements:!1,"call-to-action":!1,testimonials:!1,"get-started":!1,"pricing-table":!1,location:!1,history:!1,mission:!1,profile:!1,team:!1,work:!1,faq:!1,welcome:!1,news:!1,blog:!1,"contact-form":!1,"subscribe-form":!1,careers:!1,donate:!1,events:!1,partners:!1,industries:!1,volunteer:!1,support:!1},context:{"value-prop":!1,"products-services":!1,about:!1,achievements:!1,"call-to-action":!1,testimonials:!1,"get-started":!1,"pricing-table":!1,location:!1,history:!1,mission:!1,profile:!1,team:!1,work:!1,faq:!1,welcome:!1,news:!1,blog:!1,"contact-form":!1,"subscribe-form":!1,careers:!1,donate:!1,events:!1,partners:!1,industries:!1,volunteer:!1,support:!1}},Du=(0,Eo.createReduxStore)("kadence/library",{reducer(e=Bu,t){switch(t.type){case"UPDATE_CONTEXT_STATE":const n=e.contextStates;return n[t.context]=t.contextState,{...e,contextStates:n};case"UPDATE_MASS_CONTEXT_STATE":const o=e.contextStates;return t.contexts.forEach(e=>{o[e]=t.contextState}),{...e,contextStates:o};case"UPDATE_CONTEXT":const r=e.context;return r[t.slug]=t.context,{...e,context:r};case"UPDATE_MASS_CONTEXT":const a=e.context;return t.slugs.forEach(e=>{a[e]=t.contexts[e]}),{...e,context:a};default:return e}},actions:{updateContextState:(e,t)=>({type:"UPDATE_CONTEXT_STATE",context:e,contextState:t}),updateMassContextState:(e,t)=>({type:"UPDATE_MASS_CONTEXT_STATE",contexts:e,contextState:t}),updateContext:(e,t)=>({type:"UPDATE_CONTEXT",slug:e,context:t}),updateMassContext:(e,t)=>({type:"UPDATE_MASS_CONTEXT",slugs:e,contexts:t})},controls:{},selectors:{getContextStates(e){const{contextStates:t}=e;return t},getContextState(e,t){const{contextStates:n}=e;return n?.[t]},isContextEmpty(e,t){const{contextStates:n}=e;let o=!0;return n?.[t]&&!1===n?.[t]&&(o=!0),o},isContextRunning(e,t){const{contextStates:n}=e;return"processing"===n?.[t]||"loading"===n?.[t]},getContextContent(e,t){const{context:n}=e;return n?.[t]},hasContextContent(e,t){const{context:n}=e;return!!n?.[t]},getAllContext(e){const{context:t}=e;return t},hasAllPageContext(e){const{context:t}=e;let n=!0;for(const e in fa)if(!t?.[e]?.content?.length){n=!1;break}return n}}});(0,Eo.register)(Du);const{localStorage:Fu}=window,zu=[{slug:"templates",title:(0,o.__)("Starter Packs","kadence-blocks"),key:"kb-templates-tab"},{slug:"section",title:(0,o.__)("Kadence","kadence-blocks"),key:"kb-sections-tab"},{slug:"cloud",title:"",key:"kb-cloud-tab"}],Hu=[{slug:"templates",title:(0,o.__)("Starter Packs","kadence-blocks"),key:"kb-templates-tab"},{slug:"section",title:(0,o.__)("Kadence","kadence-blocks"),key:"kb-sections-tab"}];class $u extends Ao.Component{constructor(){super(...arguments),this.saveSettings=this.saveSettings.bind(this),this.reloadAllActions=this.reloadAllActions.bind(this),this.state={reload:!1,reloadActions:!1,isSaving:!1,isFetching:!1,modalOpen:!1,onlyModal:!1,section:null,cloudSettings:kadence_blocks_params.cloud_settings?JSON.parse(kadence_blocks_params.cloud_settings):{},actions:kadence_blocks_params.cloud_enabled?zu:Hu,user:kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin",librarySettings:{}}}componentDidMount(){this.props.open&&this.props.onlyModal&&this.setState({modalOpen:!0,onlyModal:!0}),"object"==typeof kadence_blocks_params.prebuilt_libraries&&null!==kadence_blocks_params.prebuilt_libraries?this.setState({actions:(0,Lo.applyFilters)("kadence.prebuilt_library_tabs",kadence_blocks_params.prebuilt_libraries.concat(this.state.actions))}):this.setState({actions:(0,Lo.applyFilters)("kadence.prebuilt_library_tabs",this.state.actions)});const e=kadence_blocks_params.configuration?(0,Mo.SafeParseJSON)(kadence_blocks_params.configuration,!0):{};void 0!==e["kadence/designlibrary"]&&"object"==typeof e["kadence/designlibrary"]&&this.setState({librarySettings:e["kadence/designlibrary"]})}reloadAllActions(){this.setState({isFetching:!0}),To()({path:"/wp/v2/settings"}).then(e=>{this.setState({reloadActions:!1,isFetching:!1,cloudSettings:JSON.parse(e.kadence_blocks_cloud)})})}saveSettings(e){kadence_blocks_params.cloud_settings=JSON.stringify(e),this.setState({isSaving:!0}),To()({path:"/wp/v2/settings",method:"POST",data:{kadence_blocks_cloud:JSON.stringify(e)}}).then(e=>{this.setState({isSaving:!1})})}render(){const e=this.state.cloudSettings,t=(0,Mo.SafeParseJSON)(Fu.getItem("kadenceBlocksPrebuilt"),!0),n=t&&t.activeTab?t.activeTab:"section",r=this.state.section?this.state.section:n;let a=this.state.actions;return e&&e.connections&&(a=e.connections.concat(a)),this.state.reloadActions&&!this.state.isFetching&&this.reloadAllActions(),(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(No.Button,{className:"kt-prebuilt",onClick:()=>this.setState({modalOpen:!0}),children:(0,o.__)("Design Library","kadence-blocks")}),this.state.modalOpen?(0,Bo.jsx)(No.Modal,{className:"kt-prebuilt-modal kb-prebuilt-library-modal",title:(0,o.__)("Design Library","kadence-blocks"),onRequestClose:e=>{e?.type&&"blur"===e.type||(this.setState({modalOpen:!1}),this.state.onlyModal&&this.props.removeBlock(this.props.clientId))},children:(0,Bo.jsxs)("div",{className:"kb-prebuilt-section",children:[(0,Bo.jsxs)("div",{className:"kb-prebuilt-header kb-prebuilt-library-header",children:[this.state.reloadActions&&(0,Bo.jsx)("div",{className:"kb-prebuilt-library-actions",children:(0,Bo.jsx)(No.Spinner,{})}),!this.state.reloadActions&&(0,Bo.jsx)("div",{className:"kb-prebuilt-library-actions",children:a.map((e,t)=>(0,Bo.jsxs)(Bo.Fragment,{children:["templates"!==e.slug&&(0,Mo.showSettings)(e.slug,"kadence/designlibrary")&&(0,Bo.jsx)(No.Button,{className:"kb-action-button"+(r===e.slug?" is-pressed":""),"aria-pressed":r===e.slug,icon:"cloud"===e.slug?Do:void 0,label:"cloud"===e.slug?(0,o.__)("Cloud Connect","kadence-blocks"):void 0,onClick:()=>{const t=(0,Mo.SafeParseJSON)(Fu.getItem("kadenceBlocksPrebuilt"),!0);t.activeTab=e.slug,Fu.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),this.setState({section:e.slug})},children:"cloud"===e.slug?void 0:(0,Bo.jsxs)("span",{children:[" ",e.title," "]})},`${e.slug}-${t}`),"templates"===e.slug&&(0,Mo.showSettings)(e.slug,"kadence/designlibrary",!1)&&(0,Bo.jsx)(No.Button,{className:"kb-action-button"+(r===e.slug?" is-pressed":""),"aria-pressed":r===e.slug,icon:"cloud"===e.slug?Do:void 0,label:"cloud"===e.slug?(0,o.__)("Cloud Connect","kadence-blocks"):void 0,onClick:()=>{const t=(0,Mo.SafeParseJSON)(Fu.getItem("kadenceBlocksPrebuilt"),!0);t.activeTab=e.slug,Fu.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),this.setState({section:e.slug})},children:"cloud"===e.slug?void 0:(0,Bo.jsxs)("span",{children:[" ",e.title," "]})},`${e.slug}-${t}`)]}))}),"cloud"!==r&&(0,Bo.jsx)("div",{className:"kb-prebuilt-library-reload",children:(0,Bo.jsx)(No.Button,{className:"kt-reload-templates",icon:Fo,label:(0,o.__)("Sync with Cloud","kadence-blocks"),onClick:()=>this.setState({reload:!0})})}),(0,Bo.jsx)("div",{className:"kb-prebuilt-header-close-wrap",children:(0,Bo.jsx)(No.Button,{className:"kb-prebuilt-header-close",icon:zo,label:(0,o.__)("Close Dialog","kadence-blocks"),onClick:()=>{this.setState({modalOpen:!1}),this.state.onlyModal&&this.props.removeBlock(this.props.clientId)}})})]}),"templates"===r&&(0,Bo.jsx)(Au,{clientId:this.props.clientId,reload:this.state.reload,onReload:()=>this.setState({reload:!1})}),"section"===r&&(0,Bo.jsx)(pu,{clientId:this.props.clientId,tab:r,reload:this.state.reload,onReload:()=>this.setState({reload:!1})}),"cloud"===r&&(0,Bo.jsx)(Ru,{clientId:this.props.clientId,onReload:()=>this.setState({reloadActions:!0})}),"templates"!==r&&"cloud"!==r&&"section"!==r&&(0,Bo.jsx)(xu,{clientId:this.props.clientId,tab:r,libraries:a,onLibraryUpdate:()=>this.setState({reloadActions:!0}),reload:this.state.reload,onReload:()=>this.setState({reload:!1})})]})}):null]})}}const Vu=(0,Ho.compose)((0,Eo.withDispatch)(e=>{const{removeBlock:t}=e("core/block-editor");return{removeBlock:t}}))($u),Wu=function(e,t){var n,o,r=0;function a(){var a,l,i=n,s=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(l=0;l<s;l++)if(i.args[l]!==arguments[l]){i=i.next;continue e}return i!==n&&(i===o&&(o=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=n,i.prev=null,n.prev=i,n=i),i.val}i=i.next}for(a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return i={args:a,val:e.apply(null,a)},n?(n.prev=i,i.next=n):o=i,r===t.maxSize?(o=o.prev).next=null:r++,n=i,i.val}return t=t||{},a.clear=function(){n=null,o=null,r=0},a}(e=>e<10?"0.0"+e:e>=100?"1":"0."+e),Uu=function({attributes:e,previewDevice:t}){const{uniqueID:n,columns:o,mobileLayout:r,currentTab:a,colLayout:l,tabletLayout:i,columnGutter:s,collapseGutter:c,collapseOrder:d,topPadding:u,bottomPadding:p,leftPadding:g,rightPadding:m,topPaddingM:h,bottomPaddingM:b,leftPaddingM:f,rightPaddingM:v,topMargin:y,bottomMargin:k,topMarginM:x,bottomMarginM:w,bgColor:_,bgImg:S,bgImgAttachment:j,bgImgSize:C,bgImgPosition:I,bgImgRepeat:O,bgImgID:M,verticalAlignment:P,overlayOpacity:T,overlayBgImg:E,overlayBgImgAttachment:A,overlayBgImgID:N,overlayBgImgPosition:L,overlayBgImgRepeat:R,overlayBgImgSize:B,currentOverlayTab:D,overlayBlendMode:F,overlayGradAngle:z,overlayGradLoc:H,overlayGradLocSecond:$,overlayGradType:V,overlay:W,overlaySecond:U,tabletOverlay:Z,mobileOverlay:G,overlaySecondOpacity:q,overlayFirstOpacity:K,overlayGradient:J,borderRadiusUnit:Y,borderRadius:X,tabletBorderRadius:Q,mobileBorderRadius:ee,borderRadiusOverflow:te}=e,ne=(0,Mo.getPreviewSize)(t,W?(0,Mo.KadenceColorOutput)(W,void 0!==K&&""!==K?K:1):void 0,void 0!==Z&&Z[0]&&Z[0].overlay&&Z[0].enable?(0,Mo.KadenceColorOutput)(Z[0].overlay):"",void 0!==G&&G[0]&&G[0].overlay&&G[0].enable?(0,Mo.KadenceColorOutput)(G[0].overlay):""),oe=(0,Mo.getPreviewSize)(t,U?(0,Mo.KadenceColorOutput)(U,void 0!==q&&""!==q?q:1):void 0,(0,Mo.KadenceColorOutput)(void 0!==Z&&Z[0]&&Z[0].overlaySecond&&Z[0].enable?Z[0].overlaySecond:""),(0,Mo.KadenceColorOutput)(void 0!==G&&G[0]&&G[0].overlaySecond&&G[0].enable?G[0].overlaySecond:"")),re=(0,Mo.getPreviewSize)(t,D||"normal",void 0!==Z&&Z[0]&&Z[0].currentOverlayTab&&Z[0].enable?Z[0].currentOverlayTab:"",void 0!==G&&G[0]&&G[0].currentOverlayTab&&G[0].enable?G[0].currentOverlayTab:""),ae=(0,Mo.getPreviewSize)(t,V||"linear",void 0!==Z&&Z[0]&&Z[0].overlayGradType&&Z[0].enable?Z[0].overlayGradType:"",void 0!==G&&G[0]&&G[0].overlayGradType&&G[0].enable?G[0].overlayGradType:""),le=(0,Mo.getPreviewSize)(t,z||180,void 0!==Z&&Z[0]&&Z[0].overlayGradAngle&&Z[0].enable?Z[0].overlayGradAngle:"",void 0!==G&&G[0]&&G[0].overlayGradAngle&&G[0].enable?G[0].overlayGradAngle:""),ie=(0,Mo.getPreviewSize)(t,E?`url(${E})`:void 0,void 0!==Z&&Z[0]&&Z[0].overlayBgImg&&Z[0].enable?`url(${Z[0].overlayBgImg})`:"",void 0!==G&&G[0]&&G[0].overlayBgImg&&G[0].enable?`url(${G[0].overlayBgImg})`:""),se=(0,Mo.getPreviewSize)(t,B||void 0,void 0!==Z&&Z[0]&&Z[0].overlayBgImgSize&&Z[0].enable?Z[0].overlayBgImgSize:"",void 0!==G&&G[0]&&G[0].overlayBgImgSize&&G[0].enable?G[0].overlayBgImgSize:""),ce=(0,Mo.getPreviewSize)(t,L||void 0,void 0!==Z&&Z[0]&&Z[0].overlayBgImgPosition&&Z[0].enable?Z[0].overlayBgImgPosition:"",void 0!==G&&G[0]&&G[0].overlayBgImgPosition&&G[0].enable?G[0].overlayBgImgPosition:""),de=(0,Mo.getPreviewSize)(t,R||void 0,void 0!==Z&&Z[0]&&Z[0].overlayBgImgRepeat&&Z[0].enable?Z[0].overlayBgImgRepeat:"",void 0!==G&&G[0]&&G[0].overlayBgImgRepeat&&G[0].enable?G[0].overlayBgImgRepeat:""),ue=(0,Mo.getPreviewSize)(t,A||void 0,void 0!==Z&&Z[0]&&Z[0].overlayBgImgAttachment&&Z[0].enable?Z[0].overlayBgImgAttachment:"",void 0!==G&&G[0]&&G[0].overlayBgImgAttachment&&G[0].enable?G[0].overlayBgImgAttachment:""),pe=(0,Mo.getPreviewSize)(t,void 0!==T?T:void 0,void 0!==Z&&Z[0]&&""!==Z[0].overlayOpacity&&Z[0].enable?Z[0].overlayOpacity:"",void 0!==G&&G[0]&&""!==G[0].overlayOpacity&&G[0].enable?G[0].overlayOpacity:""),ge=(0,Mo.getPreviewSize)(t,F||void 0,void 0!==Z&&Z[0]&&Z[0].overlayBlendMod&&Z[0].enable?Z[0].overlayBlendMod:"",void 0!==G&&G[0]&&G[0].overlayBlendMod&&G[0].enable?G[0].overlayBlendMod:""),me=(0,Mo.getPreviewSize)(t,H||0,void 0!==Z&&Z[0]&&Z[0].overlayGradLoc&&Z[0].enable?Z[0].overlayGradLoc:"",void 0!==G&&G[0]&&G[0].overlayGradLoc&&G[0].enable?G[0].overlayGradLoc:""),he=(0,Mo.getPreviewSize)(t,void 0!==$?$:100,void 0!==Z&&Z[0]&&Z[0].overlayGradLocSecond&&Z[0].enable?Z[0].overlayGradLocSecond:"",void 0!==G&&G[0]&&G[0].overlayGradLocSecond&&G[0].enable?G[0].overlayGradLocSecond:""),be=(0,Mo.getPreviewSize)(t,void 0!==J?J:"",void 0!==Z&&Z[0]&&Z[0].gradient&&Z[0].enable?Z[0].gradient:"",void 0!==G&&G[0]&&G[0].gradient&&G[0].enable?G[0].gradient:""),fe=(0,Mo.getPreviewSize)(t,void 0!==X?X[0]:"",void 0!==Q?Q[0]:"",void 0!==ee?ee[0]:""),ve=(0,Mo.getPreviewSize)(t,void 0!==X?X[1]:"",void 0!==Q?Q[1]:"",void 0!==ee?ee[1]:""),ye=(0,Mo.getPreviewSize)(t,void 0!==X?X[2]:"",void 0!==Q?Q[2]:"",void 0!==ee?ee[2]:""),ke=(0,Mo.getPreviewSize)(t,void 0!==X?X[3]:"",void 0!==Q?Q[3]:"",void 0!==ee?ee[3]:"");return(0,Bo.jsxs)(Bo.Fragment,{children:[(!re||"grad"!==re&&"gradient"!==re)&&(0,Bo.jsx)("div",{className:"kt-row-layout-overlay kt-row-overlay-normal"+(ie&&"parallax"===ue?" kt-jarallax":""),"data-bg-img-id":N,style:{backgroundColor:ne||void 0,backgroundImage:ie||void 0,backgroundSize:se||void 0,backgroundPosition:ce||void 0,backgroundRepeat:de||void 0,backgroundAttachment:"parallax"===ue?"fixed":ue,mixBlendMode:ge||void 0,opacity:void 0!==pe&&Number.isInteger(pe)?Wu(pe):void 0,borderTopLeftRadius:!te&&fe?fe+(Y||"px"):void 0,borderTopRightRadius:!te&&ve?ve+(Y||"px"):void 0,borderBottomRightRadius:!te&&ye?ye+(Y||"px"):void 0,borderBottomLeftRadius:!te&&ke?ke+(Y||"px"):void 0}}),re&&"grad"===re&&(0,Bo.jsx)("div",{className:"kt-row-layout-overlay kt-row-overlay-gradient","data-bg-img-id":N,style:{backgroundImage:"radial"===ae?`radial-gradient(at ${ce}, ${ne||""} ${me}%, ${oe||""} ${he}%)`:`linear-gradient(${le}deg, ${ne||""} ${me}%, ${oe||""} ${he}%)`,mixBlendMode:ge||void 0,opacity:void 0!==pe&&Number.isInteger(pe)?Wu(pe):void 0,borderTopLeftRadius:!te&&fe?fe+(Y||"px"):void 0,borderTopRightRadius:!te&&ve?ve+(Y||"px"):void 0,borderBottomRightRadius:!te&&ye?ye+(Y||"px"):void 0,borderBottomLeftRadius:!te&&ke?ke+(Y||"px"):void 0}}),re&&"gradient"===re&&(0,Bo.jsx)("div",{className:"kt-row-layout-overlay kt-row-overlay-gradient","data-bg-img-id":N,style:{backgroundImage:be||void 0,mixBlendMode:ge||void 0,opacity:void 0!==pe&&Number.isInteger(pe)?Wu(pe):void 0,borderTopLeftRadius:!te&&fe?fe+(Y||"px"):void 0,borderTopRightRadius:!te&&ve?ve+(Y||"px"):void 0,borderBottomRightRadius:!te&&ye?ye+(Y||"px"):void 0,borderBottomLeftRadius:!te&&ke?ke+(Y||"px"):void 0}})]})};function Zu(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var Gu="(prefers-reduced-motion: reduce)";function qu(e){e.length=0}function Ku(e,t,n){return Array.prototype.slice.call(e,t,n)}function Ju(e){return e.bind.apply(e,[null].concat(Ku(arguments,1)))}var Yu=setTimeout,Xu=function(){};function Qu(e){return requestAnimationFrame(e)}function ep(e,t){return typeof t===e}function tp(e){return!lp(e)&&ep("object",e)}var np=Array.isArray,op=Ju(ep,"function"),rp=Ju(ep,"string"),ap=Ju(ep,"undefined");function lp(e){return null===e}function ip(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch(e){return!1}}function sp(e){return np(e)?e:[e]}function cp(e,t){sp(e).forEach(t)}function dp(e,t){return e.indexOf(t)>-1}function up(e,t){return e.push.apply(e,sp(t)),e}function pp(e,t,n){e&&cp(t,function(t){t&&e.classList[n?"add":"remove"](t)})}function gp(e,t){pp(e,rp(t)?t.split(" "):t,!0)}function mp(e,t){cp(t,e.appendChild.bind(e))}function hp(e,t){cp(e,function(e){var n=(t||e).parentNode;n&&n.insertBefore(e,t)})}function bp(e,t){return ip(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function fp(e,t){var n=e?Ku(e.children):[];return t?n.filter(function(e){return bp(e,t)}):n}function vp(e,t){return t?fp(e,t)[0]:e.firstElementChild}var yp=Object.keys;function kp(e,t,n){return e&&(n?yp(e).reverse():yp(e)).forEach(function(n){"__proto__"!==n&&t(e[n],n)}),e}function xp(e){return Ku(arguments,1).forEach(function(t){kp(t,function(n,o){e[o]=t[o]})}),e}function _p(e){return Ku(arguments,1).forEach(function(t){kp(t,function(t,n){np(t)?e[n]=t.slice():tp(t)?e[n]=_p({},tp(e[n])?e[n]:{},t):e[n]=t})}),e}function Sp(e,t){cp(t||yp(e),function(t){delete e[t]})}function jp(e,t){cp(e,function(e){cp(t,function(t){e&&e.removeAttribute(t)})})}function Cp(e,t,n){tp(t)?kp(t,function(t,n){Cp(e,n,t)}):cp(e,function(e){lp(n)||""===n?jp(e,t):e.setAttribute(t,String(n))})}function Ip(e,t,n){var o=document.createElement(e);return t&&(rp(t)?gp(o,t):Cp(o,t)),n&&mp(n,o),o}function Op(e,t,n){if(ap(n))return getComputedStyle(e)[t];lp(n)||(e.style[t]=""+n)}function Mp(e,t){Op(e,"display",t)}function Pp(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function Tp(e,t){return e.getAttribute(t)}function Ep(e,t){return e&&e.classList.contains(t)}function Ap(e){return e.getBoundingClientRect()}function Np(e){cp(e,function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})}function Lp(e){return vp((new DOMParser).parseFromString(e,"text/html").body)}function Rp(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function Bp(e,t){return e&&e.querySelector(t)}function Dp(e,t){return t?Ku(e.querySelectorAll(t)):[]}function Fp(e,t){pp(e,t,!1)}function zp(e){return e.timeStamp}function Hp(e){return rp(e)?e:e?e+"px":""}var $p="splide",Vp="data-"+$p;function Wp(e,t){if(!e)throw new Error("["+$p+"] "+(t||""))}var Up=Math.min,Zp=Math.max,Gp=Math.floor,qp=Math.ceil,Kp=Math.abs;function Jp(e,t,n){return Kp(e-t)<n}function Yp(e,t,n,o){var r=Up(t,n),a=Zp(t,n);return o?r<e&&e<a:r<=e&&e<=a}function Xp(e,t,n){var o=Up(t,n),r=Zp(t,n);return Up(Zp(o,e),r)}function Qp(e){return+(e>0)-+(e<0)}function eg(e,t){return cp(t,function(t){e=e.replace("%s",""+t)}),e}function tg(e){return e<10?"0"+e:""+e}var ng={};function og(){var e=[];function t(e,t,n){cp(e,function(e){e&&cp(t,function(t){t.split(" ").forEach(function(t){var o=t.split(".");n(e,o[0],o[1])})})})}return{bind:function(n,o,r,a){t(n,o,function(t,n,o){var l="addEventListener"in t,i=l?t.removeEventListener.bind(t,n,r,a):t.removeListener.bind(t,r);l?t.addEventListener(n,r,a):t.addListener(r),e.push([t,n,o,r,i])})},unbind:function(n,o,r){t(n,o,function(t,n,o){e=e.filter(function(e){return!!(e[0]!==t||e[1]!==n||e[2]!==o||r&&e[3]!==r)||(e[4](),!1)})})},dispatch:function(e,t,n){var o,r=!0;return"function"==typeof CustomEvent?o=new CustomEvent(t,{bubbles:r,detail:n}):(o=document.createEvent("CustomEvent")).initCustomEvent(t,r,!1,n),e.dispatchEvent(o),o},destroy:function(){e.forEach(function(e){e[4]()}),qu(e)}}}var rg="mounted",ag="ready",lg="move",ig="moved",sg="click",cg="active",dg="inactive",ug="visible",pg="hidden",gg="refresh",mg="updated",hg="resize",bg="resized",fg="drag",vg="dragging",yg="dragged",kg="scroll",xg="scrolled",wg="destroy",_g="arrows:mounted",Sg="arrows:updated",jg="pagination:mounted",Cg="pagination:updated",Ig="navigation:mounted",Og="autoplay:play",Mg="autoplay:playing",Pg="autoplay:pause",Tg="lazyload:loaded",Eg="ei";function Ag(e){var t=e?e.event.bus:document.createDocumentFragment(),n=og();return e&&e.event.on(wg,n.destroy),xp(n,{bus:t,on:function(e,o){n.bind(t,sp(e).join(" "),function(e){o.apply(o,np(e.detail)?e.detail:[])})},off:Ju(n.unbind,t),emit:function(e){n.dispatch(t,e,Ku(arguments,1))}})}function Ng(e,t,n,o){var r,a,l=Date.now,i=0,s=!0,c=0;function d(){if(!s){if(i=e?Up((l()-r)/e,1):1,n&&n(i),i>=1&&(t(),r=l(),o&&++c>=o))return u();a=Qu(d)}}function u(){s=!0}function p(){a&&cancelAnimationFrame(a),i=0,a=0,s=!0}return{start:function(t){t||p(),r=l()-(t?i*e:0),s=!1,a=Qu(d)},rewind:function(){r=l(),i=0,n&&n(i)},pause:u,cancel:p,set:function(t){e=t},isPaused:function(){return s}}}var Lg="Arrow",Rg=Lg+"Left",Bg=Lg+"Right",Dg=Lg+"Up",Fg=Lg+"Down",zg="ttb",Hg={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Dg,Bg],ArrowRight:[Fg,Rg]},$g="role",Vg="tabindex",Wg="aria-",Ug=Wg+"controls",Zg=Wg+"current",Gg=Wg+"selected",qg=Wg+"label",Kg=Wg+"labelledby",Jg=Wg+"hidden",Yg=Wg+"orientation",Xg=Wg+"roledescription",Qg=Wg+"live",em=Wg+"busy",tm=Wg+"atomic",nm=[$g,Vg,"disabled",Ug,Zg,qg,Kg,Jg,Yg,Xg],om=$p+"__",rm="is-",am=$p,lm=om+"track",im=om+"list",sm=om+"slide",cm=sm+"--clone",dm=sm+"__container",um=om+"arrows",pm=om+"arrow",gm=pm+"--prev",mm=pm+"--next",hm=om+"pagination",bm=hm+"__page",fm=om+"progress__bar",vm=om+"toggle",ym=om+"sr",km=rm+"initialized",xm=rm+"active",wm=rm+"prev",_m=rm+"next",Sm=rm+"visible",jm=rm+"loading",Cm=rm+"focus-in",Im=rm+"overflow",Om=[xm,Sm,wm,_m,jm,Cm,Im],Mm={slide:sm,clone:cm,arrows:um,arrow:pm,prev:gm,next:mm,pagination:hm,page:bm,spinner:om+"spinner"},Pm="touchstart mousedown",Tm="touchmove mousemove",Em="touchend touchcancel mouseup click",Am="slide",Nm="loop",Lm="fade";var Rm=Vp+"-interval",Bm={passive:!1,capture:!0},Dm={Spacebar:" ",Right:Bg,Left:Rg,Up:Dg,Down:Fg};function Fm(e){return e=rp(e)?e:e.key,Dm[e]||e}var zm="keydown",Hm=Vp+"-lazy",$m=Hm+"-srcset",Vm="["+Hm+"], ["+$m+"]",Wm=[" ","Enter"],Um=Object.freeze({__proto__:null,Media:function(e,t,n){var o=e.state,r=n.breakpoints||{},a=n.reducedMotion||{},l=og(),i=[];function s(e){e&&l.destroy()}function c(e,t){var n=matchMedia(t);l.bind(n,"change",d),i.push([e,n])}function d(){var t=o.is(7),r=n.direction,a=i.reduce(function(e,t){return _p(e,t[1].matches?t[0]:{})},{});Sp(n),u(a),n.destroy?e.destroy("completely"===n.destroy):t?(s(!0),e.mount()):r!==n.direction&&e.refresh()}function u(t,r,a){_p(n,t),r&&_p(Object.getPrototypeOf(n),t),!a&&o.is(1)||e.emit(mg,n)}return{setup:function(){var e="min"===n.mediaQuery;yp(r).sort(function(t,n){return e?+t-+n:+n-+t}).forEach(function(t){c(r[t],"("+(e?"min":"max")+"-width:"+t+"px)")}),c(a,Gu),d()},destroy:s,reduce:function(e){matchMedia(Gu).matches&&(e?_p(n,a):Sp(n,yp(a)))},set:u}},Direction:function(e,t,n){return{resolve:function(e,t,o){var r="rtl"!==(o=o||n.direction)||t?o===zg?0:-1:1;return Hg[e]&&Hg[e][r]||e.replace(/width|left|right/i,function(e,t){var n=Hg[e.toLowerCase()][r]||e;return t>0?n.charAt(0).toUpperCase()+n.slice(1):n})},orient:function(e){return e*("rtl"===n.direction?1:-1)}}},Elements:function(e,t,n){var o,r,a,l=Ag(e),i=l.on,s=l.bind,c=e.root,d=n.i18n,u={},p=[],g=[],m=[];function h(){var e,t,a;o=v("."+lm),r=vp(o,"."+im),Wp(o&&r,"A track/list element is missing."),up(p,fp(r,"."+sm+":not(."+cm+")")),kp({arrows:um,pagination:hm,prev:gm,next:mm,bar:fm,toggle:vm},function(e,t){u[t]=v("."+e)}),xp(u,{root:c,track:o,list:r,slides:p}),t=c.id||""+(e=$p)+tg(ng[e]=(ng[e]||0)+1),a=n.role,c.id=t,o.id=o.id||t+"-track",r.id=r.id||t+"-list",!Tp(c,$g)&&"SECTION"!==c.tagName&&a&&Cp(c,$g,a),Cp(c,Xg,d.carousel),Cp(r,$g,"presentation"),f()}function b(e){var t=nm.concat("style");qu(p),Fp(c,g),Fp(o,m),jp([o,r],t),jp(c,e?t:["style",Xg])}function f(){Fp(c,g),Fp(o,m),g=y(am),m=y(lm),gp(c,g),gp(o,m),Cp(c,qg,n.label),Cp(c,Kg,n.labelledby)}function v(e){var t=Bp(c,e);return t&&function(e,t){if(op(e.closest))return e.closest(t);for(var n=e;n&&1===n.nodeType&&!bp(n,t);)n=n.parentElement;return n}(t,"."+am)===c?t:void 0}function y(e){return[e+"--"+n.type,e+"--"+n.direction,n.drag&&e+"--draggable",n.isNavigation&&e+"--nav",e===am&&xm]}return xp(u,{setup:h,mount:function(){i(gg,b),i(gg,h),i(mg,f),s(document,Pm+" keydown",function(e){a="keydown"===e.type},{capture:!0}),s(c,"focusin",function(){pp(c,Cm,!!a)})},destroy:b})},Slides:function(e,t,n){var o=Ag(e),r=o.on,a=o.emit,l=o.bind,i=t.Elements,s=i.slides,c=i.list,d=[];function u(){s.forEach(function(e,t){g(e,t,-1)})}function p(){h(function(e){e.destroy()}),qu(d)}function g(t,n,o){var r=function(e,t,n,o){var r,a=Ag(e),l=a.on,i=a.emit,s=a.bind,c=e.Components,d=e.root,u=e.options,p=u.isNavigation,g=u.updateOnMove,m=u.i18n,h=u.pagination,b=u.slideFocus,f=c.Direction.resolve,v=Tp(o,"style"),y=Tp(o,qg),k=n>-1,x=vp(o,"."+dm);function w(){var r=e.splides.map(function(e){var n=e.splide.Components.Slides.getAt(t);return n?n.slide.id:""}).join(" ");Cp(o,qg,eg(m.slideX,(k?n:t)+1)),Cp(o,Ug,r),Cp(o,$g,b?"button":""),b&&jp(o,Xg)}function _(){r||S()}function S(){if(!r){var n=e.index;(a=j())!==Ep(o,xm)&&(pp(o,xm,a),Cp(o,Zg,p&&a||""),i(a?cg:dg,C)),function(){var t=function(){if(e.is(Lm))return j();var t=Ap(c.Elements.track),n=Ap(o),r=f("left",!0),a=f("right",!0);return Gp(t[r])<=qp(n[r])&&Gp(n[a])<=qp(t[a])}(),n=!t&&(!j()||k);if(e.state.is([4,5])||Cp(o,Jg,n||""),Cp(Dp(o,u.focusableNodes||""),Vg,n?-1:""),b&&Cp(o,Vg,n?-1:0),t!==Ep(o,Sm)&&(pp(o,Sm,t),i(t?ug:pg,C)),!t&&document.activeElement===o){var r=c.Slides.getAt(e.index);r&&Pp(r.slide)}}(),pp(o,wm,t===n-1),pp(o,_m,t===n+1)}var a}function j(){var o=e.index;return o===t||u.cloneStatus&&o===n}var C={index:t,slideIndex:n,slide:o,container:x,isClone:k,mount:function(){k||(o.id=d.id+"-slide"+tg(t+1),Cp(o,$g,h?"tabpanel":"group"),Cp(o,Xg,m.slide),Cp(o,qg,y||eg(m.slideLabel,[t+1,e.length]))),s(o,"click",Ju(i,sg,C)),s(o,"keydown",Ju(i,"sk",C)),l([ig,"sh",xg],S),l(Ig,w),g&&l(lg,_)},destroy:function(){r=!0,a.destroy(),Fp(o,Om),jp(o,nm),Cp(o,"style",v),Cp(o,qg,y||"")},update:S,style:function(e,t,n){Op(n&&x||o,e,t)},isWithin:function(n,o){var r=Kp(n-t);return k||!u.rewind&&!e.is(Nm)||(r=Up(r,e.length-r)),r<=o}};return C}(e,n,o,t);r.mount(),d.push(r),d.sort(function(e,t){return e.index-t.index})}function m(e){return e?b(function(e){return!e.isClone}):d}function h(e,t){m(t).forEach(e)}function b(e){return d.filter(op(e)?e:function(t){return rp(e)?bp(t.slide,e):dp(sp(e),t.index)})}return{mount:function(){u(),r(gg,p),r(gg,u)},destroy:p,update:function(){h(function(e){e.update()})},register:g,get:m,getIn:function(e){var o=t.Controller,r=o.toIndex(e),a=o.hasFocus()?1:n.perPage;return b(function(e){return Yp(e.index,r,r+a-1)})},getAt:function(e){return b(e)[0]},add:function(e,t){cp(e,function(e){if(rp(e)&&(e=Lp(e)),ip(e)){var o=s[t];o?hp(e,o):mp(c,e),gp(e,n.classes.slide),r=e,i=Ju(a,hg),d=Dp(r,"img"),(u=d.length)?d.forEach(function(e){l(e,"load error",function(){--u||i()})}):i()}var r,i,d,u}),a(gg)},remove:function(e){Np(b(e).map(function(e){return e.slide})),a(gg)},forEach:h,filter:b,style:function(e,t,n){h(function(o){o.style(e,t,n)})},getLength:function(e){return e?s.length:d.length},isEnough:function(){return d.length>n.perPage}}},Layout:function(e,t,n){var o,r,a,l=Ag(e),i=l.on,s=l.bind,c=l.emit,d=t.Slides,u=t.Direction.resolve,p=t.Elements,g=p.root,m=p.track,h=p.list,b=d.getAt,f=d.style;function v(){o=n.direction===zg,Op(g,"maxWidth",Hp(n.width)),Op(m,u("paddingLeft"),k(!1)),Op(m,u("paddingRight"),k(!0)),y(!0)}function y(e){var t,l=Ap(g);(e||r.width!==l.width||r.height!==l.height)&&(Op(m,"height",(t="",o&&(Wp(t=x(),"height or heightRatio is missing."),t="calc("+t+" - "+k(!1)+" - "+k(!0)+")"),t)),f(u("marginRight"),Hp(n.gap)),f("width",n.autoWidth?null:Hp(n.fixedWidth)||(o?"":w())),f("height",Hp(n.fixedHeight)||(o?n.autoHeight?null:w():x()),!0),r=l,c(bg),a!==(a=O())&&(pp(g,Im,a),c("overflow",a)))}function k(e){var t=n.padding,o=u(e?"right":"left");return t&&Hp(t[o]||(tp(t)?0:t))||"0px"}function x(){return Hp(n.height||Ap(h).width*n.heightRatio)}function w(){var e=Hp(n.gap);return"calc((100%"+(e&&" + "+e)+")/"+(n.perPage||1)+(e&&" - "+e)+")"}function _(){return Ap(h)[u("width")]}function S(e,t){var n=b(e||0);return n?Ap(n.slide)[u("width")]+(t?0:I()):0}function j(e,t){var n=b(e);if(n){var o=Ap(n.slide)[u("right")],r=Ap(h)[u("left")];return Kp(o-r)+(t?0:I())}return 0}function C(t){return j(e.length-1)-j(0)+S(0,t)}function I(){var e=b(0);return e&&parseFloat(Op(e.slide,u("marginRight")))||0}function O(){return e.is(Lm)||C(!0)>_()}return{mount:function(){var e,t;v(),s(window,"resize load",(e=Ju(c,hg),t=Ng(0,e,null,1),function(){t.isPaused()&&t.start()})),i([mg,gg],v),i(hg,y)},resize:y,listSize:_,slideSize:S,sliderSize:C,totalSize:j,getPadding:function(e){return parseFloat(Op(m,u("padding"+(e?"Right":"Left"))))||0},isOverflow:O}},Clones:function(e,t,n){var o,r=Ag(e),a=r.on,l=t.Elements,i=t.Slides,s=t.Direction.resolve,c=[];function d(){a(gg,u),a([mg,hg],g),(o=m())&&(function(t){var o=i.get().slice(),r=o.length;if(r){for(;o.length<t;)up(o,o);up(o.slice(-t),o.slice(0,t)).forEach(function(a,s){var d=s<t,u=function(t,o){var r=t.cloneNode(!0);return gp(r,n.classes.clone),r.id=e.root.id+"-clone"+tg(o+1),r}(a.slide,s);d?hp(u,o[0].slide):mp(l.list,u),up(c,u),i.register(u,s-t+(d?0:r),a.index)})}}(o),t.Layout.resize(!0))}function u(){p(),d()}function p(){Np(c),qu(c),r.destroy()}function g(){var e=m();o!==e&&(o<e||!e)&&r.emit(gg)}function m(){var o=n.clones;if(e.is(Nm)){if(ap(o)){var r=n[s("fixedWidth")]&&t.Layout.slideSize(0);o=r&&qp(Ap(l.track)[s("width")]/r)||n[s("autoWidth")]&&e.length||2*n.perPage}}else o=0;return o}return{mount:d,destroy:p}},Move:function(e,t,n){var o,r=Ag(e),a=r.on,l=r.emit,i=e.state.set,s=t.Layout,c=s.slideSize,d=s.getPadding,u=s.totalSize,p=s.listSize,g=s.sliderSize,m=t.Direction,h=m.resolve,b=m.orient,f=t.Elements,v=f.list,y=f.track;function k(){t.Controller.isBusy()||(t.Scroll.cancel(),x(e.index),t.Slides.update())}function x(e){w(C(e,!0))}function w(n,o){if(!e.is(Lm)){var r=o?n:function(n){if(e.is(Nm)){var o=j(n),r=o>t.Controller.getEnd();(o<0||r)&&(n=_(n,r))}return n}(n);Op(v,"transform","translate"+h("X")+"("+r+"px)"),n!==r&&l("sh")}}function _(e,t){var n=e-O(t),o=g();return e-b(o*(qp(Kp(n)/o)||1))*(t?1:-1)}function S(){w(I(),!0),o.cancel()}function j(e){for(var n=t.Slides.get(),o=0,r=1/0,a=0;a<n.length;a++){var l=n[a].index,i=Kp(C(l,!0)-e);if(!(i<=r))break;r=i,o=l}return o}function C(t,o){var r=b(u(t-1)-function(e){var t=n.focus;return"center"===t?(p()-c(e,!0))/2:+t*c(e)||0}(t));return o?function(t){return n.trimSpace&&e.is(Am)&&(t=Xp(t,0,b(g(!0)-p()))),t}(r):r}function I(){var e=h("left");return Ap(v)[e]-Ap(y)[e]+b(d(!1))}function O(e){return C(e?t.Controller.getEnd():0,!!n.trimSpace)}return{mount:function(){o=t.Transition,a([rg,bg,mg,gg],k)},move:function(e,t,n,r){var a,s;e!==t&&(a=e>n,s=b(_(I(),a)),a?s>=0:s<=v[h("scrollWidth")]-Ap(y)[h("width")])&&(S(),w(_(I(),e>n),!0)),i(4),l(lg,t,n,e),o.start(t,function(){i(3),l(ig,t,n,e),r&&r()})},jump:x,translate:w,shift:_,cancel:S,toIndex:j,toPosition:C,getPosition:I,getLimit:O,exceededLimit:function(e,t){t=ap(t)?I():t;var n=!0!==e&&b(t)<b(O(!1)),o=!1!==e&&b(t)>b(O(!0));return n||o},reposition:k}},Controller:function(e,t,n){var o,r,a,l,i=Ag(e),s=i.on,c=i.emit,d=t.Move,u=d.getPosition,p=d.getLimit,g=d.toPosition,m=t.Slides,h=m.isEnough,b=m.getLength,f=n.omitEnd,v=e.is(Nm),y=e.is(Am),k=Ju(C,!1),x=Ju(C,!0),w=n.start||0,_=w;function S(){r=b(!0),a=n.perMove,l=n.perPage,o=M();var e=Xp(w,0,f?o:r-1);e!==w&&(w=e,d.reposition())}function j(){o!==M()&&c(Eg)}function C(e,t){var n=a||(A()?1:l),r=I(w+n*(e?-1:1),w,!(a||A()));return-1===r&&y&&!Jp(u(),p(!e),1)?e?0:o:t?r:O(r)}function I(t,i,s){if(h()||A()){var c=function(t){if(y&&"move"===n.trimSpace&&t!==w)for(var o=u();o===g(t,!0)&&Yp(t,0,e.length-1,!n.rewind);)t<w?--t:++t;return t}(t);c!==t&&(i=t,t=c,s=!1),t<0||t>o?t=a||!Yp(0,t,i,!0)&&!Yp(o,i,t,!0)?v?s?t<0?-(r%l||l):r:t:n.rewind?t<0?o:0:-1:P(T(t)):s&&t!==i&&(t=P(T(i)+(t<i?-1:1)))}else t=-1;return t}function O(e){return v?(e+r)%r||0:e}function M(){for(var e=r-(A()||v&&a?1:l);f&&e-- >0;)if(g(r-1,!0)!==g(e,!0)){e++;break}return Xp(e,0,r-1)}function P(e){return Xp(A()?e:l*e,0,o)}function T(e){return A()?Up(e,o):Gp((e>=o?r-1:e)/l)}function E(e){e!==w&&(_=w,w=e)}function A(){return!ap(n.focus)||n.isNavigation}function N(){return e.state.is([4,5])&&!!n.waitForTransition}return{mount:function(){S(),s([mg,gg,Eg],S),s(bg,j)},go:function(e,t,n){if(!N()){var r=function(e){var t=w;if(rp(e)){var n=e.match(/([+\-<>])(\d+)?/)||[],r=n[1],a=n[2];"+"===r||"-"===r?t=I(w+ +(""+r+(+a||1)),w):">"===r?t=a?P(+a):k(!0):"<"===r&&(t=x(!0))}else t=v?e:Xp(e,0,o);return t}(e),a=O(r);a>-1&&(t||a!==w)&&(E(a),d.move(r,a,_,n))}},scroll:function(e,n,r,a){t.Scroll.scroll(e,n,r,function(){var e=O(d.toIndex(u()));E(f?Up(e,o):e),a&&a()})},getNext:k,getPrev:x,getAdjacent:C,getEnd:M,setIndex:E,getIndex:function(e){return e?_:w},toIndex:P,toPage:T,toDest:function(e){var t=d.toIndex(e);return y?Xp(t,0,o):t},hasFocus:A,isBusy:N}},Arrows:function(e,t,n){var o,r,a=Ag(e),l=a.on,i=a.bind,s=a.emit,c=n.classes,d=n.i18n,u=t.Elements,p=t.Controller,g=u.arrows,m=u.track,h=g,b=u.prev,f=u.next,v={};function y(){var e;!(e=n.arrows)||b&&f||(h=g||Ip("div",c.arrows),b=_(!0),f=_(!1),o=!0,mp(h,[b,f]),!g&&hp(h,m)),b&&f&&(xp(v,{prev:b,next:f}),Mp(h,e?"":"none"),gp(h,r=um+"--"+n.direction),e&&(l([rg,ig,gg,xg,Eg],S),i(f,"click",Ju(w,">")),i(b,"click",Ju(w,"<")),S(),Cp([b,f],Ug,m.id),s(_g,b,f))),l(mg,k)}function k(){x(),y()}function x(){a.destroy(),Fp(h,r),o?(Np(g?[b,f]:h),b=f=null):jp([b,f],nm)}function w(e){p.go(e,!0)}function _(e){return Lp('<button class="'+c.arrow+" "+(e?c.prev:c.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40" focusable="false"><path d="'+(n.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}function S(){if(b&&f){var t=e.index,n=p.getPrev(),o=p.getNext(),r=n>-1&&t<n?d.last:d.prev,a=o>-1&&t>o?d.first:d.next;b.disabled=n<0,f.disabled=o<0,Cp(b,qg,r),Cp(f,qg,a),s(Sg,b,f,n,o)}}return{arrows:v,mount:y,destroy:x,update:S}},Autoplay:function(e,t,n){var o,r,a=Ag(e),l=a.on,i=a.bind,s=a.emit,c=Ng(n.interval,e.go.bind(e,">"),function(e){var t=u.bar;t&&Op(t,"width",100*e+"%"),s(Mg,e)}),d=c.isPaused,u=t.Elements,p=t.Elements,g=p.root,m=p.toggle,h=n.autoplay,b="pause"===h;function f(){d()&&t.Slides.isEnough()&&(c.start(!n.resetProgress),r=o=b=!1,k(),s(Og))}function v(e){void 0===e&&(e=!0),b=!!e,k(),d()||(c.pause(),s(Pg))}function y(){b||(o||r?v(!1):f())}function k(){m&&(pp(m,xm,!b),Cp(m,qg,n.i18n[b?"play":"pause"]))}function x(e){var o=t.Slides.getAt(e);c.set(o&&+Tp(o.slide,Rm)||n.interval)}return{mount:function(){h&&(n.pauseOnHover&&i(g,"mouseenter mouseleave",function(e){o="mouseenter"===e.type,y()}),n.pauseOnFocus&&i(g,"focusin focusout",function(e){r="focusin"===e.type,y()}),m&&i(m,"click",function(){b?f():v(!0)}),l([lg,kg,gg],c.rewind),l(lg,x),m&&Cp(m,Ug,u.track.id),b||f(),k())},destroy:c.cancel,play:f,pause:v,isPaused:d}},Cover:function(e,t,n){var o=Ag(e).on;function r(e){t.Slides.forEach(function(t){var n=vp(t.container||t.slide,"img");n&&n.src&&a(e,n,t)})}function a(e,t,n){n.style("background",e?'center/cover no-repeat url("'+t.src+'")':"",!0),Mp(t,e?"none":"")}return{mount:function(){n.cover&&(o(Tg,Ju(a,!0)),o([rg,mg,gg],Ju(r,!0)))},destroy:Ju(r,!1)}},Scroll:function(e,t,n){var o,r,a=Ag(e),l=a.on,i=a.emit,s=e.state.set,c=t.Move,d=c.getPosition,u=c.getLimit,p=c.exceededLimit,g=c.translate,m=e.is(Am),h=1;function b(e,n,a,l,u){var g=d();if(y(),a&&(!m||!p())){var b=t.Layout.sliderSize(),k=Qp(e)*b*Gp(Kp(e)/b)||0;e=c.toPosition(t.Controller.toDest(e%b))+k}var x=Jp(g,e,1);h=1,n=x?0:n||Zp(Kp(e-g)/1.5,800),r=l,o=Ng(n,f,Ju(v,g,e,u),1),s(5),i(kg),o.start()}function f(){s(3),r&&r(),i(xg)}function v(e,t,o,a){var l=d(),i=e+(t-e)*function(e){var t=n.easingFunc;return t?t(e):1-Math.pow(1-e,4)}(a),s=(i-l)*h;g(l+s),m&&!o&&p()&&(h*=.6,Kp(s)<10&&b(u(p(!0)),600,!1,r,!0))}function y(){o&&o.cancel()}function k(){o&&!o.isPaused()&&(y(),f())}return{mount:function(){l(lg,y),l([mg,gg],k)},destroy:y,scroll:b,cancel:k}},Drag:function(e,t,n){var o,r,a,l,i,s,c,d,u=Ag(e),p=u.on,g=u.emit,m=u.bind,h=u.unbind,b=e.state,f=t.Move,v=t.Scroll,y=t.Controller,k=t.Elements.track,x=t.Media.reduce,w=t.Direction,_=w.resolve,S=w.orient,j=f.getPosition,C=f.exceededLimit,I=!1;function O(){var e=n.drag;F(!e),l="free"===e}function M(e){if(s=!1,!c){var t=D(e);o=e.target,r=n.noDrag,bp(o,"."+bm+", ."+pm)||r&&bp(o,r)||!t&&e.button||(y.isBusy()?Rp(e,!0):(d=t?k:window,i=b.is([4,5]),a=null,m(d,Tm,P,Bm),m(d,Em,T,Bm),f.cancel(),v.cancel(),A(e)))}var o,r}function P(t){if(b.is(6)||(b.set(6),g(fg)),t.cancelable)if(i){f.translate(o+N(t)/(I&&e.is(Am)?5:1));var r=L(t)>200,a=I!==(I=C());(r||a)&&A(t),s=!0,g(vg),Rp(t)}else(function(e){return Kp(N(e))>Kp(N(e,!0))})(t)&&(i=function(e){var t=n.dragMinThreshold,o=tp(t),r=o&&t.mouse||0,a=(o?t.touch:+t)||10;return Kp(N(e))>(D(e)?a:r)}(t),Rp(t))}function T(o){b.is(6)&&(b.set(3),g(yg)),i&&(function(o){var r=function(t){if(e.is(Nm)||!I){var n=L(t);if(n&&n<200)return N(t)/n}return 0}(o),a=function(e){return j()+Qp(e)*Up(Kp(e)*(n.flickPower||600),l?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}(r),i=n.rewind&&n.rewindByDrag;x(!1),l?y.scroll(a,0,n.snap):e.is(Lm)?y.go(S(Qp(r))<0?i?"<":"-":i?">":"+"):e.is(Am)&&I&&i?y.go(C(!0)?">":"<"):y.go(y.toDest(a),!0),x(!0)}(o),Rp(o)),h(d,Tm,P),h(d,Em,T),i=!1}function E(e){!c&&s&&Rp(e,!0)}function A(e){a=r,r=e,o=j()}function N(e,t){return B(e,t)-B(R(e),t)}function L(e){return zp(e)-zp(R(e))}function R(e){return r===e&&a||r}function B(e,t){return(D(e)?e.changedTouches[0]:e)["page"+_(t?"Y":"X")]}function D(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function F(e){c=e}return{mount:function(){m(k,Tm,Xu,Bm),m(k,Em,Xu,Bm),m(k,Pm,M,Bm),m(k,"click",E,{capture:!0}),m(k,"dragstart",Rp),p([rg,mg],O)},disable:F,isDragging:function(){return i}}},Keyboard:function(e,t,n){var o,r,a=Ag(e),l=a.on,i=a.bind,s=a.unbind,c=e.root,d=t.Direction.resolve;function u(){var e=n.keyboard;e&&(o="global"===e?window:c,i(o,zm,m))}function p(){s(o,zm)}function g(){var e=r;r=!0,Yu(function(){r=e})}function m(t){if(!r){var n=Fm(t);n===d(Rg)?e.go("<"):n===d(Bg)&&e.go(">")}}return{mount:function(){u(),l(mg,p),l(mg,u),l(lg,g)},destroy:p,disable:function(e){r=e}}},LazyLoad:function(e,t,n){var o=Ag(e),r=o.on,a=o.off,l=o.bind,i=o.emit,s="sequential"===n.lazyLoad,c=[ig,xg],d=[];function u(){qu(d),t.Slides.forEach(function(e){Dp(e.slide,Vm).forEach(function(t){var o=Tp(t,Hm),r=Tp(t,$m);if(o!==t.src||r!==t.srcset){var a=n.classes.spinner,l=t.parentElement,i=vp(l,"."+a)||Ip("span",a,l);d.push([t,e,i]),t.src||Mp(t,"none")}})}),s?h():(a(c),r(c,p),p())}function p(){(d=d.filter(function(t){var o=n.perPage*((n.preloadPages||1)+1)-1;return!t[1].isWithin(e.index,o)||g(t)})).length||a(c)}function g(e){var t=e[0];gp(e[1].slide,jm),l(t,"load error",Ju(m,e)),Cp(t,"src",Tp(t,Hm)),Cp(t,"srcset",Tp(t,$m)),jp(t,Hm),jp(t,$m)}function m(e,t){var n=e[0],o=e[1];Fp(o.slide,jm),"error"!==t.type&&(Np(e[2]),Mp(n,""),i(Tg,n,o),i(hg)),s&&h()}function h(){d.length&&g(d.shift())}return{mount:function(){n.lazyLoad&&(u(),r(gg,u))},destroy:Ju(qu,d),check:p}},Pagination:function(e,t,n){var o,r,a=Ag(e),l=a.on,i=a.emit,s=a.bind,c=t.Slides,d=t.Elements,u=t.Controller,p=u.hasFocus,g=u.getIndex,m=u.go,h=t.Direction.resolve,b=d.pagination,f=[];function v(){o&&(Np(b?Ku(o.children):o),Fp(o,r),qu(f),o=null),a.destroy()}function y(e){m(">"+e,!0)}function k(e,t){var n=f.length,o=Fm(t),r=x(),a=-1;o===h(Bg,!1,r)?a=++e%n:o===h(Rg,!1,r)?a=(--e+n)%n:"Home"===o?a=0:"End"===o&&(a=n-1);var l=f[a];l&&(Pp(l.button),m(">"+a),Rp(t,!0))}function x(){return n.paginationDirection||n.direction}function w(e){return f[u.toPage(e)]}function _(){var e=w(g(!0)),t=w(g());if(e){var n=e.button;Fp(n,xm),jp(n,Gg),Cp(n,Vg,-1)}if(t){var r=t.button;gp(r,xm),Cp(r,Gg,!0),Cp(r,Vg,"")}i(Cg,{list:o,items:f},e,t)}return{items:f,mount:function t(){v(),l([mg,gg,Eg],t);var a=n.pagination;b&&Mp(b,a?"":"none"),a&&(l([lg,kg,xg],_),function(){var t=e.length,a=n.classes,l=n.i18n,i=n.perPage,g=p()?u.getEnd()+1:qp(t/i);gp(o=b||Ip("ul",a.pagination,d.track.parentElement),r=hm+"--"+x()),Cp(o,$g,"tablist"),Cp(o,qg,l.select),Cp(o,Yg,x()===zg?"vertical":"");for(var m=0;m<g;m++){var h=Ip("li",null,o),v=Ip("button",{class:a.page,type:"button"},h),w=c.getIn(m).map(function(e){return e.slide.id}),_=!p()&&i>1?l.pageX:l.slideX;s(v,"click",Ju(y,m)),n.paginationKeyboard&&s(v,"keydown",Ju(k,m)),Cp(h,$g,"presentation"),Cp(v,$g,"tab"),Cp(v,Ug,w.join(" ")),Cp(v,qg,eg(_,m+1)),Cp(v,Vg,-1),f.push({li:h,button:v,page:m})}}(),_(),i(jg,{list:o,items:f},w(e.index)))},destroy:v,getAt:w,update:_}},Sync:function(e,t,n){var o=n.isNavigation,r=n.slideFocus,a=[];function l(){var t,n;e.splides.forEach(function(t){t.isParent||(s(e,t.splide),s(t.splide,e))}),o&&((n=(t=Ag(e)).on)(sg,d),n("sk",u),n([rg,mg],c),a.push(t),t.emit(Ig,e.splides))}function i(){a.forEach(function(e){e.destroy()}),qu(a)}function s(e,t){var n=Ag(e);n.on(lg,function(e,n,o){t.go(t.is(Nm)?o:e)}),a.push(n)}function c(){Cp(t.Elements.list,Yg,n.direction===zg?"vertical":"")}function d(t){e.go(t.index)}function u(e,t){dp(Wm,Fm(t))&&(d(e),Rp(t))}return{setup:Ju(t.Media.set,{slideFocus:ap(r)?o:r},!0),mount:l,destroy:i,remount:function(){i(),l()}}},Wheel:function(e,t,n){var o=Ag(e).bind,r=0;function a(o){if(o.cancelable){var a=o.deltaY,l=a<0,i=zp(o),s=n.wheelMinThreshold||0,c=n.wheelSleep||0;Kp(a)>s&&i-r>c&&(e.go(l?"<":">"),r=i),function(o){return!n.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(o)}(l)&&Rp(o)}}return{mount:function(){n.wheel&&o(t.Elements.track,"wheel",a,Bm)}}},Live:function(e,t,n){var o=Ag(e).on,r=t.Elements.track,a=n.live&&!n.isNavigation,l=Ip("span",ym),i=Ng(90,Ju(s,!1));function s(e){Cp(r,em,e),e?(mp(r,l),i.start()):(Np(l),i.cancel())}function c(e){a&&Cp(r,Qg,e?"off":"polite")}return{mount:function(){a&&(c(!t.Autoplay.isPaused()),Cp(r,tm,!0),l.textContent="…",o(Og,Ju(c,!0)),o(Pg,Ju(c,!1)),o([ig,xg],Ju(s,!0)))},disable:c,destroy:function(){jp(r,[Qg,tm,em]),Np(l)}}}}),Zm={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:Mm,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function Gm(e,t,n){var o=t.Slides;function r(){o.forEach(function(e){e.style("transform","translateX(-"+100*e.index+"%)")})}return{mount:function(){Ag(e).on([rg,gg],r)},start:function(e,t){o.style("transition","opacity "+n.speed+"ms "+n.easing),Yu(t)},cancel:Xu}}function qm(e,t,n){var o,r=t.Move,a=t.Controller,l=t.Scroll,i=t.Elements.list,s=Ju(Op,i,"transition");function c(){s(""),l.cancel()}return{mount:function(){Ag(e).bind(i,"transitionend",function(e){e.target===i&&o&&(c(),o())})},start:function(t,i){var c=r.toPosition(t,!0),d=r.getPosition(),u=function(t){var o=n.rewindSpeed;if(e.is(Am)&&o){var r=a.getIndex(!0),l=a.getEnd();if(0===r&&t>=l||r>=l&&0===t)return o}return n.speed}(t);Kp(c-d)>=1&&u>=1?n.useScroll?l.scroll(c,u,!1,i):(s("transform "+u+"ms "+n.easing),r.translate(c,!0),o=i):(r.jump(t),i())},cancel:c}}var Km=function(){function e(t,n){var o;this.event=Ag(),this.Components={},this.state=(o=1,{set:function(e){o=e},is:function(e){return dp(sp(e),o)}}),this.splides=[],this._o={},this._E={};var r=rp(t)?Bp(document,t):t;Wp(r,r+" is invalid."),this.root=r,n=_p({label:Tp(r,qg)||"",labelledby:Tp(r,Kg)||""},Zm,e.defaults,n||{});try{_p(n,JSON.parse(Tp(r,Vp)))}catch(e){Wp(!1,"Invalid JSON")}this._o=Object.create(_p({},n))}var t,n,o=e.prototype;return o.mount=function(e,t){var n=this,o=this.state,r=this.Components;return Wp(o.is([1,7]),"Already mounted!"),o.set(1),this._C=r,this._T=t||this._T||(this.is(Lm)?Gm:qm),this._E=e||this._E,kp(xp({},Um,this._E,{Transition:this._T}),function(e,t){var o=e(n,r,n._o);r[t]=o,o.setup&&o.setup()}),kp(r,function(e){e.mount&&e.mount()}),this.emit(rg),gp(this.root,km),o.set(3),this.emit(ag),this},o.sync=function(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),e.Components.Sync.remount()),this},o.go=function(e){return this._C.Controller.go(e),this},o.on=function(e,t){return this.event.on(e,t),this},o.off=function(e){return this.event.off(e),this},o.emit=function(e){var t;return(t=this.event).emit.apply(t,[e].concat(Ku(arguments,1))),this},o.add=function(e,t){return this._C.Slides.add(e,t),this},o.remove=function(e){return this._C.Slides.remove(e),this},o.is=function(e){return this._o.type===e},o.refresh=function(){return this.emit(gg),this},o.destroy=function(e){void 0===e&&(e=!0);var t=this.event,n=this.state;return n.is(1)?Ag(this).on(ag,this.destroy.bind(this,e)):(kp(this._C,function(t){t.destroy&&t.destroy(e)},!0),t.emit(wg),t.destroy(),e&&qu(this.splides),n.set(7)),this},t=e,n=[{key:"options",get:function(){return this._o},set:function(e){this._C.Media.set(e,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}],n&&Zu(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Jm=Km;Jm.defaults={},Jm.STATES={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};var Ym=[[rg,"onMounted"],[ag,"onReady"],[lg,"onMove"],[ig,"onMoved"],[sg,"onClick"],[cg,"onActive"],[dg,"onInactive"],[ug,"onVisible"],[pg,"onHidden"],[gg,"onRefresh"],[mg,"onUpdated"],[hg,"onResize"],[bg,"onResized"],[fg,"onDrag"],[vg,"onDragging"],[yg,"onDragged"],[kg,"onScroll"],[xg,"onScrolled"],[wg,"onDestroy"],[_g,"onArrowsMounted"],[Sg,"onArrowsUpdated"],[jg,"onPaginationMounted"],[Cg,"onPaginationUpdated"],[Ig,"onNavigationMounted"],[Og,"onAutoplayPlay"],[Mg,"onAutoplayPlaying"],[Pg,"onAutoplayPause"],[Tg,"onLazyLoadLoaded"]];function Xm(...e){return e.filter(Boolean).join(" ")}function Qm(e){return null!==e&&"object"==typeof e}function eh(e,t){if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&!e.some((e,n)=>!eh(e,t[n]));if(Qm(e)&&Qm(t)){const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&!n.some(n=>!Object.prototype.hasOwnProperty.call(t,n)||!eh(e[n],t[n]))}return e===t}function th(e,t){const n=e;return function(e,t){if(e){const n=Object.keys(e);for(let o=0;o<n.length;o++){const r=n[o];if("__proto__"!==r&&!1===t(e[r],r))break}}}(t,(e,t)=>{Array.isArray(e)?n[t]=e.slice():Qm(e)?n[t]=th(Qm(n[t])?n[t]:{},e):n[t]=e}),n}var nh=({children:e,className:t,...n})=>b().createElement("div",{className:Xm("splide__track",t),...n},b().createElement("ul",{className:"splide__list"},e)),oh=class extends b().Component{constructor(){super(...arguments),this.splideRef=b().createRef(),this.slides=[]}componentDidMount(){const{options:e,extensions:t,transition:n}=this.props,{current:o}=this.splideRef;o&&(this.splide=new Jm(o,e),this.bind(this.splide),this.splide.mount(t,n),this.options=th({},e||{}),this.slides=this.getSlides())}componentWillUnmount(){this.splide&&(this.splide.destroy(),this.splide=void 0),this.options=void 0,this.slides.length=0}componentDidUpdate(){if(!this.splide)return;const{options:e}=this.props;e&&!eh(this.options,e)&&(this.splide.options=e,this.options=th({},e));const t=this.getSlides();var n,o;n=this.slides,o=t,(n.length!==o.length||n.some((e,t)=>e!==o[t]))&&(this.splide.refresh(),this.slides=t)}sync(e){var t;null==(t=this.splide)||t.sync(e)}go(e){var t;null==(t=this.splide)||t.go(e)}getSlides(){var e;if(this.splide){const t=null==(e=this.splide.Components.Elements)?void 0:e.list.children;return t&&Array.prototype.slice.call(t)||[]}return[]}bind(e){Ym.forEach(([t,n])=>{const o=this.props[n];"function"==typeof o&&e.on(t,(...t)=>{o(e,...t)})})}omit(e,t){return t.forEach(t=>{Object.prototype.hasOwnProperty.call(e,t)&&delete e[t]}),e}render(){const{className:e,tag:t="div",hasTrack:n=!0,children:o,...r}=this.props;return b().createElement(t,{className:Xm("splide",e),ref:this.splideRef,...this.omit(r,["options",...Ym.map(e=>e[1])])},n?b().createElement(nh,null,o):o)}},rh=({children:e,className:t,...n})=>b().createElement("li",{className:Xm("splide__slide",t),...n},e);const ah=[{value:"normal",label:(0,o.__)("Normal","kadence-blocks")},{value:"multiply",label:(0,o.__)("Multiply","kadence-blocks")},{value:"screen",label:(0,o.__)("Screen","kadence-blocks")},{value:"overlay",label:(0,o.__)("Overlay","kadence-blocks")},{value:"darken",label:(0,o.__)("Darken","kadence-blocks")},{value:"lighten",label:(0,o.__)("Lighten","kadence-blocks")},{value:"color-dodge",label:(0,o.__)("Color Dodge","kadence-blocks")},{value:"color-burn",label:(0,o.__)("Color Burn","kadence-blocks")},{value:"difference",label:(0,o.__)("Difference","kadence-blocks")},{value:"exclusion",label:(0,o.__)("Exclusion","kadence-blocks")},{value:"hue",label:(0,o.__)("Hue","kadence-blocks")},{value:"saturation",label:(0,o.__)("Saturation","kadence-blocks")},{value:"color",label:(0,o.__)("Color","kadence-blocks")},{value:"luminosity",label:(0,o.__)("Luminosity","kadence-blocks")}],lh=[{value:"0",label:(0,o.__)("None","kadence-blocks"),size:0,name:(0,o.__)("None","kadence-blocks")},{value:"xxs",output:"var(--global-kb-spacing-xxs, 0.5rem)",size:8,label:(0,o.__)("XXS","kadence-blocks"),name:(0,o.__)("2X Small","kadence-blocks")},{value:"xs",output:"var(--global-kb-spacing-xs, 1rem)",size:16,label:(0,o.__)("XS","kadence-blocks"),name:(0,o.__)("X Small","kadence-blocks")},{value:"sm",output:"var(--global-kb-spacing-sm, 1.5rem)",size:24,label:(0,o.__)("SM","kadence-blocks"),name:(0,o.__)("Small","kadence-blocks")},{value:"md",output:"var(--global-kb-spacing-md, 2rem)",size:32,label:(0,o.__)("MD","kadence-blocks"),name:(0,o.__)("Medium","kadence-blocks")},{value:"lg",output:"var(--global-kb-spacing-lg, 3rem)",size:48,label:(0,o.__)("LG","kadence-blocks"),name:(0,o.__)("Large","kadence-blocks")},{value:"xl",output:"var(--global-kb-spacing-xl, 4rem)",size:64,label:(0,o.__)("XL","kadence-blocks"),name:(0,o.__)("X Large","kadence-blocks")},{value:"xxl",output:"var(--global-kb-spacing-xxl, 5rem)",size:80,label:(0,o.__)("XXL","kadence-blocks"),name:(0,o.__)("2X Large","kadence-blocks")},{value:"3xl",output:"var(--global-kb-spacing-3xl, 6.5rem)",size:104,label:(0,o.__)("3XL","kadence-blocks"),name:(0,o.__)("3X Large","kadence-blocks")},{value:"4xl",output:"var(--global-kb-spacing-4xl, 8rem)",size:128,label:(0,o.__)("4XL","kadence-blocks"),name:(0,o.__)("4X Large","kadence-blocks")},{value:"5xl",output:"var(--global-kb-spacing-5xl, 10rem)",size:160,label:(0,o.__)("5XL","kadence-blocks"),name:(0,o.__)("5X Large","kadence-blocks")}],ih={1:{equal:[100]},2:{"left-golden":[66.67,33.33],"right-golden":[33.33,66.67],equal:[50,50]},3:{"first-row":[100,50,50],"left-half":[50,25,25],"right-half":[25,25,50],"center-half":[25,50,25],"center-wide":[20,60,20],"center-exwide":[15,70,15],equal:[33.33,33.33,33.33]},4:{"left-forty":[40,20,20,20],"right-forty":[20,20,20,40],equal:[25,25,25,25]},5:{equal:[20,20,20,20,20]},6:{equal:[16.66,16.66,16.66,16.66,16.66,16.66]}},sh=[0,8,16,24,32,48,64,80,104,128,160];function ch(e,t){return e&&t>1?`(${e} * ${t-1})`:0}function dh(e,t,n,o){let r="var(--global-row-gutter-md, 2rem)";switch(void 0!==t?t:"default"){case"none":r=0;break;case"skinny":r="var(--global-row-gutter-sm, 1rem)";break;case"wider":r="var(--global-row-gutter-lg, 4rem)";break;case"custom":const t=void 0!==o&&o?o:"px";let a=void 0!==n&&void 0!==n[0]?n[0]:30;"Tablet"===e?a=void 0!==n&&void 0!==n[1]&&""!==n[1]?n[1]:a:"Mobile"===e&&(a=void 0!==n&&void 0!==n[2]&&""!==n[2]?n[2]:a),a&&(a+=t),r=a}return r}function uh(e,t){if(!e)return(0,o.__)("None","kadence-blocks");if(!lh)return(0,o.__)("Unset","kadence-blocks");if("0"===e)return(0,o.__)("None","kadence-blocks");const n=lh.find(t=>t.value===e);return n?n.name:e+t}function ph(e,t){if(void 0===e)return"";if(!lh)return e;if("0"===e)return"0"+t;if(0===e)return"0"+t;const n=lh.find(t=>t.value===e);return n?n.output:e+t}function gh(e){if(!e)return 0;if(!lh)return e;if("0"===e)return 0;const t=lh.find(t=>t.value===e);return t?t.size:e}const mh=function({attributes:e,previewDevice:t,backgroundClasses:n,children:o,dynamicBackgroundImg:r}){const{uniqueID:a,columns:l,mobileLayout:i,currentTab:s,colLayout:c,tabletLayout:d,columnGutter:u,collapseGutter:p,collapseOrder:g,tabletPadding:m,mobilePadding:h,padding:b,topMargin:f,bottomMargin:v,topMarginM:y,bottomMarginM:k,bgColor:x,bgImg:w,bgImgAttachment:_,bgImgSize:S,bgImgPosition:j,bgImgRepeat:C,bgImgID:I,verticalAlignment:O,overlayOpacity:M,overlayBgImg:P,overlayBgImgAttachment:T,overlayBgImgID:E,overlayBgImgPosition:A,overlayBgImgRepeat:N,overlayBgImgSize:L,currentOverlayTab:R,overlayBlendMode:B,overlayGradAngle:D,overlayGradLoc:F,overlayGradLocSecond:z,overlayGradType:H,overlay:$,overlaySecond:V,htmlTag:W,minHeight:U,maxWidth:Z,bottomSep:G,bottomSepColor:q,bottomSepHeight:K,bottomSepHeightMobile:J,bottomSepHeightTab:Y,bottomSepWidth:X,bottomSepWidthMobile:Q,bottomSepWidthTab:ee,topSep:te,topSepColor:ne,topSepHeight:oe,topSepHeightMobile:re,topSepHeightTab:ae,topSepWidth:le,topSepWidthMobile:ie,topSepWidthTab:se,firstColumnWidth:ce,secondColumnWidth:de,textColor:ue,linkColor:pe,linkHoverColor:ge,topMarginT:me,bottomMarginT:he,minHeightUnit:be,maxWidthUnit:fe,marginUnit:ve,columnsUnlocked:ye,tabletBackground:ke,tabletOverlay:xe,mobileBackground:we,mobileOverlay:_e,columnsInnerHeight:Se,zIndex:je,backgroundInline:Ce,backgroundSettingTab:Ie,backgroundSliderCount:Oe,backgroundSlider:Me,inheritMaxWidth:Pe,backgroundSliderSettings:Te,backgroundVideo:Ee,backgroundVideoType:Ae,overlaySecondOpacity:Ne,overlayFirstOpacity:Le,paddingUnit:Re,align:Be,minHeightTablet:De,minHeightMobile:Fe,bgColorClass:ze,vsdesk:He,vstablet:$e,vsmobile:Ve,loggedInUser:We,loggedIn:Ue,loggedOut:Ze,loggedInShow:Ge,borderWidth:qe,tabletBorderWidth:Ke,mobileBorderWidth:Je,borderRadius:Ye,tabletBorderRadius:Xe,mobileBorderRadius:Qe,border:et,tabletBorder:tt,mobileBorder:nt,gradient:ot,margin:rt,tabletMargin:at,mobileMargin:lt,borderStyle:it,tabletBorderStyle:st,mobileBorderStyle:ct,borderRadiusUnit:dt,borderRadiusOverflow:ut,displayBoxShadow:pt,boxShadow:gt,kadenceDynamic:mt}=e,ht=(0,Mo.getPreviewSize)(t,void 0!==rt&&void 0!==rt[0]?rt[0]:"",void 0!==at&&void 0!==at[0]?at[0]:"",void 0!==lt&&void 0!==lt[0]?lt[0]:""),bt=(0,Mo.getPreviewSize)(t,void 0!==rt&&void 0!==rt[2]?rt[2]:"",void 0!==at&&void 0!==at[2]?at[2]:"",void 0!==lt&&void 0!==lt[2]?lt[2]:""),ft=ke?.[0]?.type||"normal",vt="normal"===(we?.[0]?.type||"normal")&&""===we?.[0]?.bgImg&&("normal"===ft&&""!==ke?.[0]?.bgImg||"gradient"===ft&&""!==ke?.[0]?.gradient||"normal"===Ie&&""!==w||"gradient"===Ie&&""!==ot),yt="normal"===ft&&""===ke?.[0]?.bgImg&&("normal"===Ie&&""!==w||"gradient"===Ie&&""!==ot),kt=(0,Mo.getPreviewSize)(t,void 0!==x?x:"",void 0!==ke&&ke[0]&&ke[0].bgColor&&ke[0].enable?ke[0].bgColor:"",void 0!==we&&we[0]&&we[0].bgColor&&we[0].enable?we[0].bgColor:""),xt=(0,Mo.getBorderStyle)(t,"top",it,st,ct),wt=(0,Mo.getBorderStyle)(t,"right",it,st,ct),_t=(0,Mo.getBorderStyle)(t,"bottom",it,st,ct),St=(0,Mo.getBorderStyle)(t,"left",it,st,ct),jt=(0,Mo.getPreviewSize)(t,void 0!==Ye?Ye[0]:"",void 0!==Xe?Xe[0]:"",void 0!==Qe?Qe[0]:""),Ct=(0,Mo.getPreviewSize)(t,void 0!==Ye?Ye[1]:"",void 0!==Xe?Xe[1]:"",void 0!==Qe?Qe[1]:""),It=(0,Mo.getPreviewSize)(t,void 0!==Ye?Ye[2]:"",void 0!==Xe?Xe[2]:"",void 0!==Qe?Qe[2]:""),Ot=(0,Mo.getPreviewSize)(t,void 0!==Ye?Ye[3]:"",void 0!==Xe?Xe[3]:"",void 0!==Qe?Qe[3]:""),Mt=(0,Mo.getPreviewSize)(t,void 0!==U?U:"",void 0!==De?De:"",void 0!==Fe?Fe:"");let Pt=(0,Mo.getPreviewSize)(t,w?`url(${w})`:void 0,void 0!==ke&&ke[0]&&ke[0].bgImg&&ke[0].enable?`url(${ke[0].bgImg})`:"",void 0!==we&&we[0]&&we[0].bgImg&&we[0].enable?`url(${we[0].bgImg})`:"");Pt=(0,Mo.getPreviewSize)(t,Ie&&"gradient"==Ie?ot:Pt,"gradient"==ke?.[0]?.type&&ke?.[0]?.gradient&&ke?.[0]?.enable?ke[0].gradient:Pt,void 0!==we[0]&&void 0!==we[0].type&&"gradient"==we[0].type&&void 0!==we[0].gradient&&we[0].gradient&&we[0].enable?we[0].gradient:Pt),Pt=(0,Mo.getPreviewSize)(t,Pt,yt&&ke?.[0]?.forceOverDesk&&ke?.[0]?.enable?"none":Pt,vt&&we?.[0]?.forceOverDesk&&we?.[0]?.enable?"none":Pt),Pt=(0,Mo.getPreviewSize)(t,Pt,"gradient"!==ke?.[0]?.type&&""===ke?.[0]?.bgImg&&ke?.[0]?.enable?"none":Pt,"gradient"!==we?.[0]?.type&&""===we?.[0]?.bgImg&&we?.[0]?.enable?"none":Pt),"none"===Pt&&(Pt=void 0),Pt=r||Pt;const Tt=(0,Mo.getPreviewSize)(t,S||void 0,void 0!==ke&&ke[0]&&ke[0].bgImgSize&&ke[0].enable?ke[0].bgImgSize:"",void 0!==we&&we[0]&&we[0].bgImgSize&&we[0].enable?we[0].bgImgSize:""),Et=(0,Mo.getPreviewSize)(t,j||void 0,void 0!==ke&&ke[0]&&ke[0].bgImgPosition&&ke[0].enable?ke[0].bgImgPosition:"",void 0!==we&&we[0]&&we[0].bgImgPosition&&we[0].enable?we[0].bgImgPosition:""),At=(0,Mo.getPreviewSize)(t,C||void 0,void 0!==ke&&ke[0]&&ke[0].bgImgRepeat&&ke[0].enable?ke[0].bgImgRepeat:"",void 0!==we&&we[0]&&we[0].bgImgRepeat&&we[0].enable?we[0].bgImgRepeat:""),Nt=(0,Mo.getPreviewSize)(t,_||void 0,void 0!==ke&&ke[0]&&ke[0].bgImgAttachment&&ke[0].enable?ke[0].bgImgAttachment:"",void 0!==we&&we[0]&&we[0].bgImgAttachment&&we[0].enable?we[0].bgImgAttachment:""),Lt=(0,Mo.getPreviewSize)(t,Ie||"normal",void 0!==ke&&ke?.[0]&&ke?.[0]?.enable?"normal":"",void 0!==we&&we?.[0]&&we?.[0]?.enable?"normal":""),Rt={type:Te&&Te[0]&&void 0!==Te[0].fade&&Te[0].fade?"fade":"slide",dots:!Te||!Te[0]||"none"!==Te[0].dotStyle,arrows:!(!Te||!Te[0]||"none"===Te[0].arrowStyle),perPage:1,rewind:!0,pagination:!Te||!Te[0]||"none"!==Te[0].dotStyle,speed:Te&&Te[0]&&void 0!==Te[0].tranSpeed?Te[0].tranSpeed:400,drag:!1,interval:Te&&Te[0]&&void 0!==Te[0].speed?Te[0].speed:7e3,autoplay:!Te||!Te[0]||void 0===Te[0].autoPlay||Te[0].autoPlay},Bt=e=>(0,Bo.jsx)("div",{className:"kb-bg-slide-contain",children:(0,Bo.jsx)("div",{className:`kb-bg-slide kb-bg-slide-${e}`,style:{backgroundColor:void 0!==Me&&void 0!==Me[e]&&void 0!==Me[e].bgColor?(0,Mo.KadenceColorOutput)(Me[e].bgColor):void 0,backgroundImage:void 0!==Me&&void 0!==Me[e]&&void 0!==Me[e].bgImg?'url("'+Me[e].bgImg+'")':void 0,backgroundSize:S,backgroundPosition:j,backgroundRepeat:C}})}),Dt=(0,Pr.useBlockProps)({className:n,style:{marginBottom:ph(bt,ve||"px"),marginTop:ph(ht,ve||"px"),borderTop:xt||void 0,borderRight:wt||void 0,borderBottom:_t||void 0,borderLeft:St||void 0,borderTopLeftRadius:jt?jt+(dt||"px"):void 0,borderTopRightRadius:Ct?Ct+(dt||"px"):void 0,borderBottomRightRadius:It?It+(dt||"px"):void 0,borderBottomLeftRadius:Ot?Ot+(dt||"px"):void 0,minHeight:Mt?Mt+be:void 0,zIndex:je||void 0,boxShadow:void 0!==pt&&pt&&void 0!==gt&&void 0!==gt[0]&&void 0!==gt[0].color?(void 0!==gt[0].inset&>[0].inset?"inset ":"")+(void 0!==gt[0].hOffset?gt[0].hOffset:0)+"px "+(void 0!==gt[0].vOffset?gt[0].vOffset:0)+"px "+(void 0!==gt[0].blur?gt[0].blur:14)+"px "+(void 0!==gt[0].spread?gt[0].spread:0)+"px "+(0,Mo.KadenceColorOutput)(void 0!==gt[0].color?gt[0].color:"#000000",void 0!==gt[0].opacity?gt[0].opacity:.2):void 0},"data-align":"full"===Be||"wide"===Be||"center"===Be?Be:void 0,draggable:!1});return(0,Bo.jsx)(Bo.Fragment,{children:(0,Bo.jsxs)("div",{...Dt,children:["slider"!==Lt&&"video"!==Lt&&(0,Bo.jsx)("div",{className:"kt-row-layout-background"+(Pt&&"parallax"===Nt?" kt-jarallax":""),"data-bg-img-id":I,style:{backgroundColor:kt?(0,Mo.KadenceColorOutput)(kt):void 0,backgroundImage:Pt||void 0,backgroundSize:Tt||void 0,backgroundPosition:Et||void 0,backgroundRepeat:At||void 0,backgroundAttachment:"parallax"===Nt?"fixed":Nt,borderTopLeftRadius:!ut&&jt?jt+(dt||"px"):void 0,borderTopRightRadius:!ut&&Ct?Ct+(dt||"px"):void 0,borderBottomRightRadius:!ut&&It?It+(dt||"px"):void 0,borderBottomLeftRadius:!ut&&Ot?Ot+(dt||"px"):void 0}}),"slider"===Lt&&(0,Bo.jsxs)("div",{className:`kt-blocks-carousel kb-blocks-bg-slider kt-carousel-container-dotstyle-${Te&&Te[0]&&void 0!==Te[0].dotStyle?Te[0].dotStyle:"dark"}`,children:[1!==Oe&&(0,Bo.jsx)(oh,{options:Rt,className:`kt-carousel-arrowstyle-${Te&&Te[0]&&void 0!==Te[0].arrowStyle?Te[0].arrowStyle:"none"}`,...Rt,children:(0,jo.times)(Oe,e=>(0,Bo.jsx)(rh,{className:"kadence-blocks-gallery-item",children:Bt(e)}))}),1===(void 0!==Oe?Oe:1)&&(0,jo.times)(void 0!==Oe?Oe:1,e=>Bt(e))]}),"video"===Lt&&(0,Bo.jsxs)("div",{className:"kb-blocks-bg-video-container",style:{backgroundColor:kt?(0,Mo.KadenceColorOutput)(kt):void 0},children:[(void 0===Ae||"local"===Ae)&&(0,Bo.jsx)("video",{className:"kb-blocks-bg-video",playsinline:"",loop:"",poster:mt?.["backgroundVideo:0:local"]?.enable?"/wp-content/plugins/kadence-blocks/includes/assets/images/placeholder/gray.png":void 0,src:mt?.["backgroundVideo:0:local"]?.enable?void 0:Ee?.[0]?.local?Ee[0].local:void 0}),"youtube"===Ae&&(0,Bo.jsx)("div",{className:"kb-blocks-bg-video",style:{backgroundImage:`url(https://img.youtube.com/vi/${Ee[0].youTube}/maxresdefault.jpg)`}}),"vimeo"===Ae&&(0,Bo.jsx)("div",{className:"kb-blocks-bg-video",style:{backgroundImage:`url(https://vumbnail.com/${Ee[0].vimeo}.jpg)`}})]}),o]})})};function hh({value:e,isPressed:t=!1}){const n={normal:"M19.5 19.482H.5V.5h19v18.982zM1.607 18.375h16.786V1.607H1.607v16.768zm12.247-9.23l-1.599-1.599 1.269-1.231 3.655 3.693-3.655 3.692-1.269-1.23 1.614-1.615H6.15l1.614 1.615-1.268 1.23-3.655-3.692 3.655-3.693 1.268 1.231-1.598 1.599h7.688z",theme:"M19.5 19.482H.5V.5h19v18.982zM1.607 18.375h16.786V1.607H1.607v16.768zm13.838-9.23H4.557V6.756H2.846v6.488h1.711v-2.389h10.888v2.389h1.711V6.756h-1.711v2.389z"};return n.hasOwnProperty(e)?(0,Bo.jsx)(No.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:t,children:(0,Bo.jsx)(No.Path,{d:n[e]})}):null}const bh=function(e,t,n=null){const o={bottom:{ct:(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}),cti:(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}),ctd:(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})]}),ctdi:(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})]}),sltl:(0,Bo.jsx)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}),sltli:(0,Bo.jsx)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}),sltr:(0,Bo.jsx)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}),sltri:(0,Bo.jsx)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}),crv:(0,Bo.jsx)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}),crvi:(0,Bo.jsx)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}),crvl:(0,Bo.jsx)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}),crvli:(0,Bo.jsx)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}),crvr:(0,Bo.jsx)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}),crvri:(0,Bo.jsx)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}),wave:(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),wavei:(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),waves:(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})]}),wavesi:(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})]}),mtns:(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})]}),littri:(0,Bo.jsx)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}),littrii:(0,Bo.jsx)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}),threelevels:(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,Bo.jsx)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,Bo.jsx)("path",{d:"M0 95l1000-40.887V100H0v-5z"})]}),threelevelsi:(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{style:{opacity:.33},d:"M1000 95L0 0v100h1000v-5z"}),(0,Bo.jsx)("path",{style:{opacity:.66},d:"M1000 95L0 27.056V100h1000v-5z"}),(0,Bo.jsx)("path",{d:"M1000 95L0 54.113V100h1000v-5z"})]})},top:{ct:(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}),cti:(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}),ctd:(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})]}),ctdi:(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})]}),sltl:(0,Bo.jsx)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}),sltli:(0,Bo.jsx)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}),sltr:(0,Bo.jsx)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}),sltri:(0,Bo.jsx)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}),crv:(0,Bo.jsx)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}),crvi:(0,Bo.jsx)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}),crvl:(0,Bo.jsx)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}),crvli:(0,Bo.jsx)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}),crvr:(0,Bo.jsx)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}),crvri:(0,Bo.jsx)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}),wave:(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),wavei:(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),waves:(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})]}),wavesi:(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})]}),mtns:(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})]}),littri:(0,Bo.jsx)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}),littrii:(0,Bo.jsx)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}),threelevels:(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,Bo.jsx)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,Bo.jsx)("path",{d:"M0 95l1000-40.887V100H0v-5z"})]}),threelevelsi:(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{style:{opacity:.33},d:"M1000 95L0 0v100h1000v-5z"}),(0,Bo.jsx)("path",{style:{opacity:.66},d:"M1000 95L0 27.056V100h1000v-5z"}),(0,Bo.jsx)("path",{d:"M1000 95L0 54.113V100h1000v-5z"})]})}};if(o[t][e])return(0,Bo.jsx)("svg",{viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:`kadence-row-divider-${t}`,style:{fill:"currentColor",width:n||void 0},children:o[t][e]})},fh=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"kadence/rowlayout","title":"Row Layout","category":"kadence-blocks","usesContext":["postId","queryId","kadence/dynamicSource","kadence/repeaterRowData","kadence/repeaterRow"],"textdomain":"kadence-blocks","attributes":{"uniqueID":{"type":"string","default":""},"columns":{"type":"number","default":2},"mobileLayout":{"type":"string","default":"row"},"tabletLayout":{"type":"string","default":"inherit"},"collapseOrder":{"type":"string","default":"left-to-right"},"collapseOrderTablet":{"type":"string","default":""},"collapseGutter":{"type":"string","default":"default"},"tabletRowGutter":{"type":"string","default":""},"mobileRowGutter":{"type":"string","default":""},"rowGutterType":{"type":"string","default":"px"},"customRowGutter":{"type":"array","default":["","",""]},"columnGutter":{"type":"string","default":"default"},"tabletGutter":{"type":"string","default":""},"mobileGutter":{"type":"string","default":""},"gutterType":{"type":"string","default":"px"},"customGutter":{"type":"array","default":["","",""]},"colLayout":{"type":"string","default":""},"currentTab":{"type":"string","default":"desk"},"currentOverlayTab":{"type":"string","default":"normal"},"htmlTag":{"type":"string","default":"div"},"minHeight":{"type":"number","default":0},"maxWidth":{"type":"number","default":""},"topPadding":{"type":"number","default":""},"bottomPadding":{"type":"number","default":""},"leftPadding":{"type":"number","default":""},"rightPadding":{"type":"number","default":""},"topPaddingM":{"type":"number","default":""},"bottomPaddingM":{"type":"number","default":""},"leftPaddingM":{"type":"number","default":""},"rightPaddingM":{"type":"number","default":""},"topMargin":{"type":"number","default":""},"bottomMargin":{"type":"number","default":""},"topMarginM":{"type":"number","default":""},"bottomMarginM":{"type":"number","default":""},"bgColor":{"type":"string","default":""},"bgImg":{"type":"string","default":""},"bgImgID":{"type":"string","default":""},"bgImgSize":{"type":"string","default":"cover"},"bgImgPosition":{"type":"string","default":"center center"},"bgImgAttachment":{"type":"string","default":"scroll"},"bgImgRepeat":{"type":"string","default":"no-repeat"},"overlay":{"type":"string","default":""},"overlaySecond":{"type":"string","default":"#00B5E2"},"overlayFirstOpacity":{"type":"number","default":""},"overlaySecondOpacity":{"type":"number","default":""},"overlayGradLoc":{"type":"number","default":0},"overlayGradLocSecond":{"type":"number","default":100},"overlayGradType":{"type":"string","default":"linear"},"overlayGradAngle":{"type":"number","default":180},"overlayBgImg":{"type":"string","default":""},"overlayBgImgID":{"type":"string","default":""},"overlayBgImgSize":{"type":"string","default":"cover"},"overlayBgImgPosition":{"type":"string","default":"center center"},"overlayBgImgAttachment":{"type":"string","default":"scroll"},"overlayBgImgRepeat":{"type":"string","default":"no-repeat"},"overlayOpacity":{"type":"number","default":30},"overlayBlendMode":{"type":"string","default":"none"},"blockAlignment":{"type":"string","default":"none"},"align":{"type":"string","default":"none"},"verticalAlignment":{"type":"string","default":"top"},"topSep":{"type":"string","default":"none"},"topSepColor":{"type":"string","default":"#ffffff"},"topSepFlip":{"type":"boolean","default":false},"topSepHeight":{"type":"number","default":100},"topSepHeightTab":{"type":"number","default":""},"topSepHeightMobile":{"type":"number","default":""},"topSepHeightUnit":{"type":"string","default":"px"},"bottomSep":{"type":"string","default":"none"},"bottomSepColor":{"type":"string","default":"#ffffff"},"bottomSepFlip":{"type":"boolean","default":false},"bottomSepHeight":{"type":"number","default":100},"bottomSepWidth":{"type":"number","default":100},"bottomSepWidthTab":{"type":"number","default":""},"bottomSepWidthMobile":{"type":"number","default":""},"bottomSepHeightUnit":{"type":"string","default":"px"},"bottomSepHeightTab":{"type":"number","default":""},"bottomSepHeightMobile":{"type":"number","default":""},"firstColumnWidth":{"type":"number"},"secondColumnWidth":{"type":"number"},"thirdColumnWidth":{"type":"number"},"fourthColumnWidth":{"type":"number"},"fifthColumnWidth":{"type":"number"},"sixthColumnWidth":{"type":"number"},"firstColumnWidthTablet":{"type":"number"},"secondColumnWidthTablet":{"type":"number"},"thirdColumnWidthTablet":{"type":"number"},"fourthColumnWidthTablet":{"type":"number"},"fifthColumnWidthTablet":{"type":"number"},"sixthColumnWidthTablet":{"type":"number"},"firstColumnWidthMobile":{"type":"number"},"secondColumnWidthMobile":{"type":"number"},"thirdColumnWidthMobile":{"type":"number"},"fourthColumnWidthMobile":{"type":"number"},"fifthColumnWidthMobile":{"type":"number"},"sixthColumnWidthMobile":{"type":"number"},"textColor":{"type":"string","default":""},"linkColor":{"type":"string","default":""},"linkHoverColor":{"type":"string","default":""},"tabletPadding":{"type":"array","default":["","","",""]},"topMarginT":{"type":"number","default":""},"bottomMarginT":{"type":"number","default":""},"marginUnit":{"type":"string","default":"px"},"minHeightUnit":{"type":"string","default":"px"},"maxWidthUnit":{"type":"string","default":"px"},"columnsUnlocked":{"type":"boolean","default":false},"tabletBackground":{"type":"array","default":[{"enable":false,"bgColor":"","bgImg":"","bgImgID":"","bgImgSize":"cover","bgImgPosition":"center center","bgImgAttachment":"scroll","bgImgRepeat":"no-repeat","forceOverDesk":false}]},"tabletOverlay":{"type":"array","default":[{"enable":false,"currentOverlayTab":"normal","overlay":"","overlaySecond":"#00B5E2","overlayGradLoc":0,"overlayGradLocSecond":100,"overlayGradType":"linear","overlayGradAngle":180,"overlayBgImg":"","overlayBgImgID":"","overlayBgImgSize":"cover","overlayBgImgPosition":"center center","overlayBgImgAttachment":"scroll","overlayBgImgRepeat":"no-repeat","overlayOpacity":30,"overlayBlendMod":"none"}]},"mobileBackground":{"type":"array","default":[{"enable":false,"bgColor":"","bgImg":"","bgImgID":"","bgImgSize":"cover","bgImgPosition":"center center","bgImgAttachment":"scroll","bgImgRepeat":"no-repeat","forceOverDesk":false}]},"mobileOverlay":{"type":"array","default":[{"enable":false,"currentOverlayTab":"normal","overlay":"","overlaySecond":"#00B5E2","overlayGradLoc":0,"overlayGradLocSecond":100,"overlayGradType":"linear","overlayGradAngle":180,"overlayBgImg":"","overlayBgImgID":"","overlayBgImgSize":"cover","overlayBgImgPosition":"center center","overlayBgImgAttachment":"scroll","overlayBgImgRepeat":"no-repeat","overlayOpacity":30,"overlayBlendMod":"none"}]},"columnsInnerHeight":{"type":"boolean","default":false},"topSepWidth":{"type":"number","default":100},"topSepWidthTablet":{"type":"number","default":""},"topSepWidthMobile":{"type":"number","default":""},"backgroundInline":{"type":"boolean","default":false},"backgroundSettingTab":{"type":"string","default":"normal"},"backgroundSliderCount":{"type":"number","default":1},"backgroundSlider":{"type":"array","default":[{"bgColor":"","bgImg":"","bgImgID":""}]},"backgroundSliderSettings":{"type":"array","default":[{"arrowStyle":"none","dotStyle":"dark","autoPlay":true,"speed":7000,"fade":true,"tranSpeed":400}]},"backgroundVideoType":{"type":"string","default":"local"},"backgroundVideo":{"type":"array","default":[{"youTube":"","local":"","localID":"","vimeo":"","ratio":"16/9","btns":false,"loop":true,"mute":true}]},"zIndex":{"type":"number","default":""},"paddingUnit":{"type":"string","default":"px"},"inheritMaxWidth":{"type":"boolean","default":false},"noCustomDefaults":{"type":"boolean","default":false},"isPrebuiltModal":{"type":"boolean","default":false},"minHeightTablet":{"type":"number","default":""},"minHeightMobile":{"type":"number","default":""},"bgColorClass":{"type":"string","default":""},"vsdesk":{"type":"boolean","default":false},"vstablet":{"type":"boolean","default":false},"vsmobile":{"type":"boolean","default":false},"loggedIn":{"type":"boolean","default":false},"loggedInUser":{"type":"array"},"loggedInShow":{"type":"array"},"rcpAccess":{"type":"string","default":""},"rcpMembership":{"type":"boolean","default":false},"rcpMembershipLevel":{"type":"array"},"loggedOut":{"type":"boolean","default":false},"borderWidth":{"type":"array","default":["","","",""]},"tabletBorderWidth":{"type":"array","default":["","","",""]},"mobileBorderWidth":{"type":"array","default":["","","",""]},"borderRadius":{"type":"array","default":["","","",""]},"tabletBorderRadius":{"type":"array","default":["","","",""]},"mobileBorderRadius":{"type":"array","default":["","","",""]},"borderRadiusUnit":{"type":"string","default":"px"},"border":{"type":"string","default":""},"tabletBorder":{"type":"string","default":""},"mobileBorder":{"type":"string","default":""},"responsiveMaxWidth":{"type":"array","default":["",""]},"inQueryBlock":{"type":"boolean","default":false},"gradient":{"type":"string","default":""},"overlayGradient":{"type":"string","default":""},"tabletBackgroundType":{"type":"string","default":"normal"},"mobileBackgroundType":{"type":"string","default":"normal"},"padding":{"type":"array","default":["sm","","sm",""]},"mobilePadding":{"type":"array","default":["","","",""]},"margin":{"type":"array","default":["","","",""]},"tabletMargin":{"type":"array","default":["","","",""]},"mobileMargin":{"type":"array","default":["","","",""]},"borderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"tabletBorderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"mobileBorderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"breakoutLeft":{"type":"boolean","default":false},"breakoutRight":{"type":"boolean","default":false},"anchor":{"type":"string"},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]},"borderRadiusOverflow":{"type":"boolean","default":true},"displayBoxShadow":{"type":"boolean","default":false},"boxShadow":{"type":"array","default":[{"color":"#000000","opacity":0.2,"spread":0,"blur":14,"hOffset":0,"vOffset":0,"inset":false}]},"kbVersion":{"type":"number","default":""}},"supports":{"anchor":true,"ktdynamic":true,"kbcss":true,"html":false,"kbMetadata":true}}'),vh=function({clientId:e,attributes:t,setAttributes:n,updateColumns:a,innerItemCount:l,widthString:i,previewDevice:s}){const{uniqueID:c,columns:d,mobileLayout:u,currentTab:p,colLayout:g,tabletLayout:m,columnGutter:h,customGutter:b,customRowGutter:f,collapseGutter:v,tabletGutter:y,mobileGutter:k,tabletRowGutter:x,mobileRowGutter:w,gutterType:_,rowGutterType:S,collapseOrder:j,topPadding:C,bottomPadding:I,leftPadding:O,rightPadding:M,topPaddingM:P,bottomPaddingM:T,leftPaddingM:E,rightPaddingM:A,topMargin:N,bottomMargin:L,topMarginM:R,bottomMarginM:B,bgColor:D,bgImg:F,bgImgAttachment:z,bgImgSize:H,bgImgPosition:$,bgImgRepeat:V,bgImgID:W,verticalAlignment:U,overlayOpacity:Z,overlayBgImg:G,overlayBgImgAttachment:q,overlayBgImgID:K,overlayBgImgPosition:J,overlayBgImgRepeat:Y,overlayBgImgSize:X,currentOverlayTab:Q,overlayBlendMode:ee,overlayGradAngle:te,overlayGradLoc:ne,overlayGradLocSecond:oe,overlayGradType:re,overlay:ae,overlaySecond:le,htmlTag:ie,minHeight:se,maxWidth:ce,bottomSep:de,bottomSepColor:ue,bottomSepHeight:pe,bottomSepHeightMobile:ge,bottomSepHeightTab:me,bottomSepWidth:he,bottomSepWidthMobile:be,bottomSepWidthTab:fe,topSep:ve,topSepColor:ye,topSepHeight:ke,topSepHeightMobile:xe,topSepHeightTab:we,topSepWidth:_e,topSepWidthMobile:Se,topSepWidthTab:je,firstColumnWidth:Ce,secondColumnWidth:Ie,textColor:Oe,linkColor:Me,linkHoverColor:Pe,tabletPadding:Te,topMarginT:Ee,bottomMarginT:Ae,minHeightUnit:Ne,maxWidthUnit:Le,marginUnit:Re,columnsUnlocked:Be,tabletBackground:De,tabletOverlay:Fe,mobileBackground:ze,mobileOverlay:He,columnsInnerHeight:$e,zIndex:Ve,backgroundInline:We,backgroundSettingTab:Ue,backgroundSliderCount:Ze,backgroundSlider:Ge,inheritMaxWidth:qe,backgroundSliderSettings:Ke,backgroundVideo:Je,backgroundVideoType:Ye,overlaySecondOpacity:Xe,overlayFirstOpacity:Qe,paddingUnit:et,align:tt,minHeightTablet:nt,minHeightMobile:ot,bgColorClass:rt,vsdesk:at,vstablet:lt,vsmobile:it,loggedInUser:st,loggedIn:ct,loggedOut:dt,loggedInShow:ut,rcpAccess:pt,rcpMembership:gt,rcpMembershipLevel:mt,borderWidth:ht,tabletBorderWidth:bt,mobileBorderWidth:ft,borderRadius:vt,tabletBorderRadius:yt,mobileBorderRadius:kt,border:xt,tabletBorder:wt,mobileBorder:_t,isPrebuiltModal:St,responsiveMaxWidth:jt,kadenceBlockCSS:Ct,breakoutLeft:It,breakoutRight:Ot,topSepHeightUnit:Mt,bottomSepHeightUnit:Pt}=t;let Tt,Et;document.querySelector('iframe[name="editor-canvas"]')?.contentWindow.document||document,Tt=2===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:r.twoColIcon},{value:"left-golden",label:(0,o.__)("Left Heavy 66/33","kadence-blocks"),icon:r.twoLeftGoldenIcon},{value:"right-golden",label:(0,o.__)("Right Heavy 33/66","kadence-blocks"),icon:r.twoRightGoldenIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:r.collapseRowIcon}]:3===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:r.threeColIcon},{value:"left-half",label:(0,o.__)("Left Heavy 50/25/25","kadence-blocks"),icon:r.leftHalfIcon},{value:"right-half",label:(0,o.__)("Right Heavy 25/25/50","kadence-blocks"),icon:r.rightHalfIcon},{value:"center-half",label:(0,o.__)("Center Heavy 25/50/25","kadence-blocks"),icon:r.centerHalfIcon},{value:"center-wide",label:(0,o.__)("Wide Center 20/60/20","kadence-blocks"),icon:r.wideCenterIcon},{value:"center-exwide",label:(0,o.__)("Wider Center 15/70/15","kadence-blocks"),icon:r.exWideCenterIcon},{value:"first-row",label:(0,o.__)("First Row, Next Columns 100 – 50/50","kadence-blocks"),icon:r.firstRowIcon},{value:"last-row",label:(0,o.__)("Last Row, Previous Columns 50/50 – 100","kadence-blocks"),icon:r.lastRowIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:r.collapseRowThreeIcon}]:4===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:r.fourColIcon},{value:"left-forty",label:(0,o.__)("Left Heavy 40/20/20/20","kadence-blocks"),icon:r.lFourFortyIcon},{value:"right-forty",label:(0,o.__)("Right Heavy 20/20/20/40","kadence-blocks"),icon:r.rFourFortyIcon},{value:"two-grid",label:(0,o.__)("Two Column Grid","kadence-blocks"),icon:r.gridIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:r.collapseRowFourIcon}]:5===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:r.fiveColIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:r.collapseRowFiveIcon}]:6===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:r.sixColIcon},{value:"two-grid",label:(0,o.__)("Two Column Grid","kadence-blocks"),icon:r.gridIcon},{value:"three-grid",label:(0,o.__)("Three Column Grid","kadence-blocks"),icon:r.threeGridIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:r.collapseRowSixIcon}]:[{value:"equal",label:(0,o.__)("Single Row","kadence-blocks"),icon:r.rowIcon}],Et=2===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:r.twoColIcon},{value:"left-golden",label:(0,o.__)("Left Heavy 66/33","kadence-blocks"),icon:r.twoLeftGoldenIcon},{value:"right-golden",label:(0,o.__)("Right Heavy 33/66","kadence-blocks"),icon:r.twoRightGoldenIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:r.collapseRowIcon}]:3===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:r.threeColIcon},{value:"left-half",label:(0,o.__)("Left Heavy 50/25/25","kadence-blocks"),icon:r.leftHalfIcon},{value:"right-half",label:(0,o.__)("Right Heavy 25/25/50","kadence-blocks"),icon:r.rightHalfIcon},{value:"center-half",label:(0,o.__)("Center Heavy 25/50/25","kadence-blocks"),icon:r.centerHalfIcon},{value:"center-wide",label:(0,o.__)("Wide Center 20/60/20","kadence-blocks"),icon:r.wideCenterIcon},{value:"center-exwide",label:(0,o.__)("Wider Center 15/70/15","kadence-blocks"),icon:r.exWideCenterIcon},{value:"first-row",label:(0,o.__)("First Row, Next Columns 100 – 50/50","kadence-blocks"),icon:r.firstRowIcon},{value:"last-row",label:(0,o.__)("Last Row, Previous Columns 50/50 – 100","kadence-blocks"),icon:r.lastRowIcon},{value:"two-grid",label:(0,o.__)("Two Column Grid","kadence-blocks"),icon:r.gridIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:r.collapseRowThreeIcon}]:4===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:r.fourColIcon},{value:"left-forty",label:(0,o.__)("Left Heavy 40/20/20/20","kadence-blocks"),icon:r.lFourFortyIcon},{value:"right-forty",label:(0,o.__)("Right Heavy 20/20/20/40","kadence-blocks"),icon:r.rFourFortyIcon},{value:"two-grid",label:(0,o.__)("Two Column Grid","kadence-blocks"),icon:r.gridIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:r.collapseRowFourIcon}]:5===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:r.fiveColIcon},{value:"two-grid",label:(0,o.__)("Two Column Grid","kadence-blocks"),icon:r.gridIcon},{value:"three-grid",label:(0,o.__)("Three Column Grid","kadence-blocks"),icon:r.threeGridIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:r.collapseRowFiveIcon}]:6===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:r.sixColIcon},{value:"two-grid",label:(0,o.__)("Two Column Grid","kadence-blocks"),icon:r.gridIcon},{value:"three-grid",label:(0,o.__)("Three Column Grid","kadence-blocks"),icon:r.threeGridIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:r.collapseRowSixIcon}]:[{value:"row",label:(0,o.__)("Single Row","kadence-blocks"),icon:r.rowIcon}];const At=d?i:g;return(0,Bo.jsxs)(Ao.Fragment,{children:[(0,Bo.jsx)(Bo.Fragment,{children:(0,Mo.showSettings)("basicLayout","kadence/rowlayout")&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsxs)(Oo.KadencePanelBody,{panelName:"kb-row-basic-layout",children:[(0,Bo.jsx)(Oo.StepControls,{label:(0,o.__)("Columns","kadence-blocks"),value:d,onChange:e=>{a(l,e),n({columns:e,colLayout:"equal",firstColumnWidth:void 0,secondColumnWidth:void 0,thirdColumnWidth:void 0,fourthColumnWidth:void 0,fifthColumnWidth:void 0,sixthColumnWidth:void 0,firstColumnWidthTablet:void 0,secondColumnWidthTablet:void 0,thirdColumnWidthTablet:void 0,fourthColumnWidthTablet:void 0,fifthColumnWidthTablet:void 0,sixthColumnWidthTablet:void 0,firstColumnWidthMobile:void 0,secondColumnWidthMobile:void 0,thirdColumnWidthMobile:void 0,fourthColumnWidthMobile:void 0,fifthColumnWidthMobile:void 0,sixthColumnWidthMobile:void 0,tabletLayout:"inherit",mobileLayout:"row"})},min:1,max:6}),d>1&&(0,Bo.jsx)(Oo.SmallResponsiveControl,{label:(0,o.__)("Layout","kadence-blocks"),desktopChildren:(0,Bo.jsx)(Oo.KadenceRadioButtons,{value:At,options:Tt,wrap:!0,hideLabel:!0,className:"kadence-row-layout-radio-btns",onChange:e=>{n({colLayout:e}),n({firstColumnWidth:void 0,secondColumnWidth:void 0,thirdColumnWidth:void 0,fourthColumnWidth:void 0,fifthColumnWidth:void 0,sixthColumnWidth:void 0})}}),tabletChildren:(0,Bo.jsx)(Oo.KadenceRadioButtons,{value:m,options:Et,wrap:!0,className:"kadence-row-layout-radio-btns",hideLabel:!0,onChange:e=>{n(e===m?{tabletLayout:"inherit",firstColumnWidthTablet:void 0,secondColumnWidthTablet:void 0,thirdColumnWidthTablet:void 0,fourthColumnWidthTablet:void 0,fifthColumnWidthTablet:void 0,sixthColumnWidthTablet:void 0}:{tabletLayout:e,firstColumnWidthTablet:void 0,secondColumnWidthTablet:void 0,thirdColumnWidthTablet:void 0,fourthColumnWidthTablet:void 0,fifthColumnWidthTablet:void 0,sixthColumnWidthTablet:void 0})}}),mobileChildren:(0,Bo.jsx)(Oo.KadenceRadioButtons,{value:u,options:Et,wrap:!0,className:"kadence-row-layout-radio-btns",hideLabel:!0,onChange:e=>{n({mobileLayout:e,firstColumnWidthMobile:void 0,secondColumnWidthMobile:void 0,thirdColumnWidthMobile:void 0,fourthColumnWidthMobile:void 0,fifthColumnWidthMobile:void 0,sixthColumnWidthMobile:void 0})}})}),("grid-layout"===g||d>1)&&(0,Bo.jsx)(Bo.Fragment,{children:(0,Bo.jsx)(Oo.ResponsiveRadioRangeControls,{label:(0,o.__)("Column Gutter","kadence-blocks"),options:[{value:"none",size:0,label:(0,o.__)("None","kadence-blocks")},{value:"skinny",size:16,label:(0,o.__)("SM","kadence-blocks")},{value:"default",size:32,label:(0,o.__)("MD","kadence-blocks")},{value:"wider",size:64,label:(0,o.__)("LG","kadence-blocks")}],value:{value:void 0!==h?h:"default",size:void 0!==b&&void 0!==b[0]?b[0]:30},onChange:(e,t)=>{var o,r;n({columnGutter:e,customGutter:[t,null!==(o=b[1])&&void 0!==o?o:"",null!==(r=b[2])&&void 0!==r?r:""]})},tabletValue:{value:void 0!==y?y:"",size:void 0!==b&&void 0!==b[1]?b[1]:""},onChangeTablet:(e,t)=>{var o,r;n({tabletGutter:e,customGutter:[null!==(o=b[0])&&void 0!==o?o:"",t,null!==(r=b[2])&&void 0!==r?r:""]})},mobileValue:{value:void 0!==k?k:"",size:void 0!==b&&void 0!==b[2]?b[2]:""},onChangeMobile:(e,t)=>{var o,r;n({mobileGutter:e,customGutter:[null!==(o=b[0])&&void 0!==o?o:"",null!==(r=b[1])&&void 0!==r?r:"",t]})},min:0,max:"px"===_?200:12,step:"px"===_?1:.1,unit:_||"px",onUnit:e=>{n({gutterType:e})},units:["px","em","rem"],reset:!0})}),(0,Bo.jsx)(Oo.ResponsiveRadioRangeControls,{label:(0,o.__)("Row Gutter","kadence-blocks"),options:[{value:"none",size:0,label:(0,o.__)("None","kadence-blocks")},{value:"skinny",size:10,label:(0,o.__)("Sm","kadence-blocks")},{value:"default",size:30,label:(0,o.__)("Md","kadence-blocks")},{value:"wider",size:60,label:(0,o.__)("Lg","kadence-blocks")}],value:{value:void 0!==v?v:"default",size:void 0!==f&&void 0!==f[0]?f[0]:""},onChange:(e,t)=>{var o,r;n({collapseGutter:e,customRowGutter:[t,null!==(o=f[1])&&void 0!==o?o:"",null!==(r=f[2])&&void 0!==r?r:""]})},tabletValue:{value:void 0!==x?x:"",size:void 0!==f&&void 0!==f[1]?f[1]:""},onChangeTablet:(e,t)=>{var o,r;n({tabletRowGutter:e,customRowGutter:[null!==(o=f[0])&&void 0!==o?o:"",t,null!==(r=f[2])&&void 0!==r?r:""]})},mobileValue:{value:void 0!==w?w:"",size:void 0!==f&&void 0!==f[2]?f[2]:""},onChangeMobile:(e,t)=>{var o,r;n({mobileRowGutter:e,customRowGutter:[null!==(o=f[0])&&void 0!==o?o:"",null!==(r=f[1])&&void 0!==r?r:"",t]})},min:0,max:"px"===S?200:12,step:"px"===S?1:.1,unit:S||"px",onUnit:e=>{n({rowGutterType:e})},units:["px","em","rem"],reset:!0}),("grid-layout"===g||l>d||"Desktop"!=s)&&(0,Bo.jsx)(Bo.Fragment,{children:(0,Bo.jsx)(No.SelectControl,{label:(0,o.__)("Collapse Order","kadence-blocks"),value:j,options:[{value:"left-to-right",label:(0,o.__)("Normal ->","kadence-blocks")},{value:"right-to-left",label:(0,o.__)("Reverse <-","kadence-blocks")}],onChange:e=>n({collapseOrder:e})})})]}),(0,Bo.jsxs)(Oo.KadencePanelBody,{title:(0,o.__)("Content Max Width","kadence-blocks"),initialOpen:!0,panelName:"kb-row-max-width",children:[(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Inherit Max Width from Theme?","kadence-blocks"),checked:void 0!==qe&&qe,onChange:e=>n({inheritMaxWidth:e})}),!0!==qe&&(0,Bo.jsx)(Oo.ResponsiveRangeControls,{label:(0,o.__)("Custom Content Max Width","kadence-blocks"),value:ce||"",onChange:e=>{n({maxWidth:e})},tabletValue:void 0!==jt&&void 0!==jt[0]?jt[0]:"",onChangeTablet:e=>{n({responsiveMaxWidth:[e,void 0!==jt&&void 0!==jt[1]?jt[1]:""]})},mobileValue:void 0!==jt&&void 0!==jt[1]?jt[1]:"",onChangeMobile:e=>{n({responsiveMaxWidth:[void 0!==jt&&void 0!==jt[0]?jt[0]:"",e]})},min:0,max:"px"===Le?2e3:100,step:1,unit:Le||"px",onUnit:e=>{n({maxWidthUnit:e})},units:["px","%","vw"],reset:!0}),"full"===tt&&2===d&&!0===qe&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Break Left Section Full Width?","kadence-blocks"),checked:void 0!==It&&It,onChange:e=>n({breakoutLeft:e})}),(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Break Right Section Full Width?","kadence-blocks"),checked:void 0!==Ot&&Ot,onChange:e=>n({breakoutRight:e})})]})]})]})}),(0,Bo.jsx)("div",{className:"kt-sidebar-settings-spacer"}),(0,Mo.showSettings)("dividers","kadence/rowlayout")&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsxs)(Oo.KadencePanelBody,{title:(0,o.__)("Top Divider","kadence-blocks"),initialOpen:!1,panelName:"kb-row-dividers-top",children:[(0,Bo.jsx)(Oo.KadenceIconPicker,{icons:["ct","cti","ctd","ctdi","sltl","sltr","crv","crvi","crvl","crvli","crvr","crvri","wave","wavei","waves","wavesi","mtns","littri","littrii","threelevels","threelevelsi"],value:"none"===ve?"":ve,onChange:e=>n({topSep:e}),showSearch:!1,renderFunc:e=>bh(e,"top","100%"),theme:"dividers",allowClear:!0,placeholder:(0,o.__)("Select Divider","kadence-blocks")}),(0,Bo.jsx)(Oo.PopColorControl,{label:(0,o.__)("Divider Color","kadence-blocks"),value:ye||"",default:"#ffffff",onChange:e=>n({topSepColor:e})}),(0,Bo.jsx)(Oo.ResponsiveRangeControls,{label:(0,o.__)("Divider Height","kadence-blocks"),value:ke,onChange:e=>{n({topSepHeight:e})},tabletValue:we,onChangeTablet:e=>{n({topSepHeightTab:e})},mobileValue:xe,onChangeMobile:e=>{n({topSepHeightMobile:e})},min:0,max:"em"===Mt?100:500,step:"em"===Mt?.01:1,unit:Mt,onUnit:e=>{n({topSepHeightUnit:e})},units:["px","em","vh"],showUnit:!0,defaultValue:fh.attributes.topSepHeight.default,defaultTablet:fh.attributes.topSepHeightTab.default,defaultMobile:fh.attributes.topSepHeightMobile.default,reset:!0}),(0,Bo.jsx)(Oo.ResponsiveRangeControls,{label:(0,o.__)("Divider Width","kadence-blocks"),value:_e,onChange:e=>{n({topSepWidth:e})},tabletValue:je,onChangeTablet:e=>{n({topSepWidthTab:e})},mobileValue:Se,onChangeMobile:e=>{n({topSepWidthMobile:e})},min:100,max:400,step:1,showUnit:!0,unit:"%",units:["%"],defaultValue:fh.attributes.topSepWidth.default,defaultTablet:fh.attributes.topSepWidthTablet.default,defaultMobile:fh.attributes.topSepWidthMobile.default,reset:!0})]}),(0,Bo.jsxs)(Oo.KadencePanelBody,{title:(0,o.__)("Bottom Divider","kadence-blocks"),initialOpen:!1,panelName:"kb-row-dividers",children:[(0,Bo.jsx)(Oo.KadenceIconPicker,{icons:["ct","cti","ctd","ctdi","sltl","sltr","crv","crvi","crvl","crvli","crvr","crvri","wave","wavei","waves","wavesi","mtns","littri","littrii","threelevels","threelevelsi"],value:"none"===de?"":de,onChange:e=>n({bottomSep:e}),showSearch:!1,renderFunc:e=>bh(e,"bottom","100%"),theme:"dividers",allowClear:!0,placeholder:(0,o.__)("Select Divider","kadence-blocks")}),(0,Bo.jsx)(Oo.PopColorControl,{label:(0,o.__)("Divider Color","kadence-blocks"),value:ue||"",default:"#ffffff",onChange:e=>n({bottomSepColor:e})}),(0,Bo.jsx)(Oo.ResponsiveRangeControls,{label:(0,o.__)("Divider Height","kadence-blocks"),value:pe,onChange:e=>{n({bottomSepHeight:e})},tabletValue:me,onChangeTablet:e=>{n({bottomSepHeightTab:e})},mobileValue:ge,onChangeMobile:e=>{n({bottomSepHeightMobile:e})},min:0,max:"em"===Pt?100:500,step:"em"===Pt?.01:1,unit:Pt,onUnit:e=>{n({bottomSepHeightUnit:e})},units:["px","em","vh"],showUnit:!0,defaultValue:fh.attributes.bottomSepHeight.default,defaultTablet:fh.attributes.bottomSepHeightTab.default,defaultMobile:fh.attributes.bottomSepHeightMobile.default,reset:!0}),(0,Bo.jsx)(Oo.ResponsiveRangeControls,{label:(0,o.__)("Divider Width","kadence-blocks"),value:he,onChange:e=>{n({bottomSepWidth:e})},tabletValue:fe,onChangeTablet:e=>{n({bottomSepWidthTab:e})},mobileValue:be,onChangeMobile:e=>{n({bottomSepWidthMobile:e})},min:100,max:400,step:1,showUnit:!0,unit:"%",units:["%"],defaultValue:fh.attributes.bottomSepWidth.default,defaultTablet:fh.attributes.bottomSepWidthTab.default,defaultMobile:fh.attributes.bottomSepWidthMobile.default,reset:!0})]})]})]})},yh=function(e){const{clientId:t,attributes:n,setAttributes:r,isSelected:a,context:l}=e,{uniqueID:i,columns:s,mobileLayout:c,currentTab:d,colLayout:u,tabletLayout:p,columnGutter:g,customGutter:m,customRowGutter:h,collapseGutter:b,tabletGutter:f,mobileGutter:v,tabletRowGutter:y,mobileRowGutter:k,gutterType:x,rowGutterType:w,collapseOrder:_,topPadding:S,bottomPadding:j,leftPadding:C,rightPadding:I,topPaddingM:O,bottomPaddingM:M,leftPaddingM:P,rightPaddingM:T,topMargin:E,bottomMargin:A,topMarginM:N,bottomMarginM:L,gradient:R,bgColor:B,bgImg:D,bgImgAttachment:F,bgImgSize:z,bgImgPosition:H,bgImgRepeat:$,bgImgID:V,verticalAlignment:W,overlayOpacity:U,overlayBgImg:Z,overlayBgImgAttachment:G,overlayBgImgID:q,overlayBgImgPosition:K,overlayBgImgRepeat:J,overlayBgImgSize:Y,currentOverlayTab:X,overlayBlendMode:Q,overlayGradAngle:ee,overlayGradLoc:te,overlayGradLocSecond:ne,overlayGradType:oe,overlay:re,overlayGradient:ae,overlaySecond:le,htmlTag:ie,minHeight:se,maxWidth:ce,bottomSep:de,bottomSepColor:ue,bottomSepHeight:pe,bottomSepHeightMobile:ge,bottomSepHeightTab:me,bottomSepWidth:he,bottomSepWidthMobile:be,bottomSepWidthTab:fe,topSep:ve,topSepColor:ye,topSepHeight:ke,topSepHeightMobile:xe,topSepHeightTab:we,topSepWidth:_e,topSepWidthMobile:Se,topSepWidthTab:je,firstColumnWidth:Ce,secondColumnWidth:Ie,textColor:Oe,linkColor:Me,linkHoverColor:Pe,tabletPadding:Te,topMarginT:Ee,bottomMarginT:Ae,minHeightUnit:Ne,maxWidthUnit:Le,marginUnit:Re,columnsUnlocked:Be,tabletBackground:De,tabletOverlay:Fe,mobileBackground:ze,mobileOverlay:He,columnsInnerHeight:$e,zIndex:Ve,backgroundInline:We,backgroundSettingTab:Ue,backgroundSliderCount:Ze,backgroundSlider:Ge,inheritMaxWidth:qe,backgroundSliderSettings:Ke,backgroundVideo:Je,backgroundVideoType:Ye,overlaySecondOpacity:Xe,overlayFirstOpacity:Qe,paddingUnit:et,align:tt,minHeightTablet:nt,minHeightMobile:ot,bgColorClass:rt,vsdesk:at,vstablet:lt,vsmobile:it,loggedInUser:st,loggedIn:ct,loggedOut:dt,loggedInShow:ut,rcpAccess:pt,rcpMembership:gt,rcpMembershipLevel:mt,borderWidth:ht,tabletBorderWidth:bt,mobileBorderWidth:ft,borderRadius:vt,tabletBorderRadius:yt,mobileBorderRadius:kt,border:xt,tabletBorder:wt,mobileBorder:_t,borderStyle:St,tabletBorderStyle:jt,mobileBorderStyle:Ct,borderRadiusUnit:It,borderRadiusOverflow:Ot,isPrebuiltModal:Mt,responsiveMaxWidth:Pt,kadenceBlockCSS:Tt,displayBoxShadow:Et,boxShadow:At}=n,Nt=(document.querySelector('iframe[name="editor-canvas"]')?.contentWindow.document||document,De?.[0]?.type||"normal"),Lt=ze?.[0]?.type||"normal",Rt=""===ze?.[0]?.bgImg&&("normal"===Nt&&""!==De?.[0]?.bgImg||"gradient"===Nt&&""!==De?.[0]?.gradient||"normal"===Ue&&""!==D||"gradient"===Ue&&""!==R),Bt=""===De?.[0]?.bgImg&&("normal"===Ue&&""!==D||"gradient"===Ue&&""!==R),Dt=!!(vt?.[0]||vt?.[1]||vt?.[2]||vt?.[3]),Ft=void 0!==Je&&void 0!==Je[0],zt=(e,t)=>{let n=Ge;(void 0===n||void 0!==n&&void 0===n[0])&&(n=[{bgColor:"",bgImg:"",bgImgID:""}]);const o=n.map((n,o)=>(o===t&&(n={...n,...e}),n));r({backgroundSlider:o})},Ht=e=>{const t=De.map((t,n)=>(0===n&&(t={...t,...e}),t));r({tabletBackground:t})},$t=e=>{const t=Fe.map((t,n)=>(0===n&&(t={...t,...e}),t));r({tabletOverlay:t})},Vt=e=>{const t=ze.map((t,n)=>(0===n&&(t={...t,...e}),t));r({mobileBackground:t})},Wt=e=>{const t=He.map((t,n)=>(0===n&&(t={...t,...e}),t));r({mobileOverlay:t})},Ut=e=>{let t;t=void 0===Ke||void 0!==Ke&&void 0===Ke[0]?[{youTube:"",local:"",localID:"",vimeo:"",ratio:"16/9",btns:!1,btnsMute:!1,loop:!0,mute:!0}]:Ke;const n=t.map((t,n)=>(0===n&&(t={...t,...e}),t));r({backgroundSliderSettings:n})};function Zt(e){const t=At.map((t,n)=>(0===n&&(t={...t,...e}),t));r({boxShadow:t})}const Gt=e=>{let t;t=void 0===Je||void 0!==Je&&void 0===Je[0]?[{youTube:"",local:"",localID:"",vimeo:"",ratio:"16/9",btns:!1,btnsMute:!1,loop:!0,mute:!0}]:Je;const n=t.map((t,n)=>(0===n&&(t={...t,...e}),t));r({backgroundVideo:n})},qt=(0,Bo.jsxs)("div",{children:[(0,Bo.jsx)(Oo.PopColorControl,{label:(0,o.__)("Overlay Color","kadence-blocks"),value:Fe&&Fe[0]?Fe[0].overlay:"",default:"",onChange:e=>$t({overlay:e})}),(0,Bo.jsx)(Oo.BackgroundControl,{label:(0,o.__)("Overlay Image","kadence-blocks"),hasImage:!!(Fe&&Fe[0]&&Fe[0].overlayBgImg),imageURL:Fe&&Fe[0]&&Fe[0].overlayBgImg?Fe[0].overlayBgImg:"",imageID:Fe&&Fe[0]&&Fe[0].overlayBgImgID?Fe[0].overlayBgImgID:"",imagePosition:Fe&&Fe[0]&&Fe[0].overlayBgImgPosition?Fe[0].overlayBgImgPosition:"center center",imageSize:Fe&&Fe[0]&&Fe[0].overlayBgImgSize?Fe[0].overlayBgImgSize:"cover",imageRepeat:Fe&&Fe[0]&&Fe[0].overlayBgImgRepeat?Fe[0].overlayBgImgRepeat:"no-repeat",imageAttachment:Fe&&Fe[0]&&Fe[0].overlayBgImgAttachment?Fe[0].overlayBgImgAttachment:"scroll",imageAttachmentParallax:!0,imageAttachmentFixed:!1,onRemoveImage:()=>{$t({overlayBgImgID:"",overlayBgImg:""})},onSaveImage:e=>{$t({overlayBgImgID:e.id,overlayBgImg:e.url})},onSaveURL:e=>{e!==(Fe&&Fe[0]&&Fe[0].overlayBgImg?Fe[0].overlayBgImg:"")&&$t({overlayBgImgID:void 0,overlayBgImg:e})},onSavePosition:e=>$t({overlayBgImgPosition:e}),onSaveSize:e=>$t({overlayBgImgSize:e}),onSaveRepeat:e=>$t({overlayBgImgRepeat:e}),onSaveAttachment:e=>$t({overlayBgImgAttachment:e}),disableMediaButtons:Fe&&Fe[0]&&Fe[0].overlayBgImg?Fe[0].overlayBgImg:"",dynamicAttribute:"tabletOverlay:0:overlayBgImg",isSelected:a,attributes:n,setAttributes:r,name:"kadence/rowlayout",clientId:t})]}),Kt=(0,Bo.jsxs)("div",{children:[(0,Bo.jsx)(Oo.PopColorControl,{label:(0,o.__)("Overlay Color","kadence-blocks"),value:He&&He[0]?He[0].overlay:"",default:"",onChange:e=>Wt({overlay:e})}),(0,Bo.jsx)(Oo.BackgroundControl,{label:(0,o.__)("Overlay Image","kadence-blocks"),hasImage:!!(He&&He[0]&&He[0].overlayBgImg),imageURL:He&&He[0]&&He[0].overlayBgImg?He[0].overlayBgImg:"",imageID:He&&He[0]&&He[0].overlayBgImgID?He[0].overlayBgImgID:"",imagePosition:He&&He[0]&&He[0].overlayBgImgPosition?He[0].overlayBgImgPosition:"center center",imageSize:He&&He[0]&&He[0].overlayBgImgSize?He[0].overlayBgImgSize:"cover",imageRepeat:He&&He[0]&&He[0].overlayBgImgRepeat?He[0].overlayBgImgRepeat:"no-repeat",imageAttachment:He&&He[0]&&He[0].overlayBgImgAttachment?He[0].overlayBgImgAttachment:"scroll",imageAttachmentParallax:!0,imageAttachmentFixed:!1,onRemoveImage:()=>{Wt({overlayBgImgID:"",overlayBgImg:""})},onSaveImage:e=>{Wt({overlayBgImgID:e.id,overlayBgImg:e.url})},onSaveURL:e=>{e!==(He&&He[0]&&He[0].overlayBgImg?He[0].overlayBgImg:"")&&Wt({overlayBgImgID:void 0,overlayBgImg:e})},onSavePosition:e=>Wt({overlayBgImgPosition:e}),onSaveSize:e=>Wt({overlayBgImgSize:e}),onSaveRepeat:e=>Wt({overlayBgImgRepeat:e}),onSaveAttachment:e=>Wt({overlayBgImgAttachment:e}),disableMediaButtons:He&&He[0]&&He[0].overlayBgImg?He[0].overlayBgImg:"",dynamicAttribute:"mobileOverlay:0:overlayBgImg",isSelected:a,attributes:n,setAttributes:r,name:"kadence/rowlayout",clientId:t})]}),Jt=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Set custom background for Mobile?","kadence-blocks"),checked:!(!ze||!ze[0])&&ze[0].enable,onChange:e=>Vt({enable:e})}),ze?.[0]?.enable&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(Oo.BackgroundTypeControl,{label:(0,o.__)("Type","kadence-blocks"),type:ze?.[0]?.type?ze[0].type:"normal",onChange:e=>Vt({type:e}),allowedTypes:["normal","gradient"]}),"gradient"===Lt&&(0,Bo.jsx)(Oo.GradientControl,{value:ze?.[0]?.gradient,onChange:e=>Vt({gradient:e}),gradients:[]}),"normal"===Lt&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(Oo.PopColorControl,{label:(0,o.__)("Background Color","kadence-blocks"),value:ze[0].bgColor?ze[0].bgColor:"",default:"",onChange:e=>Vt({bgColor:e})}),Rt&&(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Force no image for mobile","kadence-blocks"),checked:!(!ze||!ze[0])&&ze[0].forceOverDesk,onChange:e=>Vt({forceOverDesk:e})}),(0,Bo.jsx)(Oo.BackgroundControl,{label:(0,o.__)("Background Image","kadence-blocks"),hasImage:!!(ze&&ze[0]&&ze[0].bgImg),imageURL:ze&&ze[0]&&ze[0].bgImg?ze[0].bgImg:"",imageID:ze&&ze[0]&&ze[0].bgImgID?ze[0].bgImgID:"",imagePosition:ze&&ze[0]&&ze[0].bgImgPosition?ze[0].bgImgPosition:"center center",imageSize:ze&&ze[0]&&ze[0].bgImgSize?ze[0].bgImgSize:"cover",imageRepeat:ze&&ze[0]&&ze[0].bgImgRepeat?ze[0].bgImgRepeat:"no-repeat",imageAttachment:ze&&ze[0]&&ze[0].bgImgAttachment?ze[0].bgImgAttachment:"scroll",imageAttachmentParallax:!0,onRemoveImage:()=>{Vt({bgImgID:"",bgImg:""})},onSaveImage:e=>{Vt({bgImgID:e.id,bgImg:e.url})},onSaveURL:e=>{e!==(ze&&ze[0]&&ze[0].bgImg?ze[0].bgImg:"")&&Vt({bgImgID:void 0,bgImg:e})},onSavePosition:e=>Vt({bgImgPosition:e}),onSaveSize:e=>Vt({bgImgSize:e}),onSaveRepeat:e=>Vt({bgImgRepeat:e}),onSaveAttachment:e=>Vt({bgImgAttachment:e}),disableMediaButtons:ze&&ze[0]&&ze[0].bgImg?ze[0].bgImg:"",dynamicAttribute:"mobileBackground:0:bgImg",isSelected:a,attributes:n,setAttributes:r,name:"kadence/rowlayout",clientId:t})]})]})]}),Yt=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Set custom background overlay for mobile?","kadence-blocks"),checked:!(!He||!He[0])&&He[0].enable,onChange:e=>Wt({enable:e})}),He&&He[0]&&He[0].enable&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(Oo.RangeControl,{label:(0,o.__)("Overlay Opacity","kadence-blocks"),value:He&&He[0]?He[0].overlayOpacity:30,onChange:e=>{Wt({overlayOpacity:e})},min:0,max:100,reset:!0}),(0,Bo.jsx)(Oo.BackgroundTypeControl,{label:(0,o.__)("Overlay Type","kadence-blocks"),type:He[0].currentOverlayTab?He[0].currentOverlayTab:"normal",onChange:e=>Wt({currentOverlayTab:e}),allowedTypes:["normal","gradient"]}),"gradient"===He[0].currentOverlayTab&&(0,Bo.jsx)(Oo.GradientControl,{value:He[0].gradient,onChange:e=>Wt({gradient:e}),gradients:[]}),"gradient"!==He[0].currentOverlayTab&&Kt,(0,Bo.jsx)(No.SelectControl,{label:(0,o.__)("Blend Mode","kadence-blocks"),value:He&&He[0]?He[0].overlayBlendMode:"none",options:ah,onChange:e=>Wt({overlayBlendMode:e})}),(0,Bo.jsx)("p",{children:(0,o.__)("Notice: Blend Mode not supported in all browsers","kadence-blocks")})]})]}),Xt=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Set custom background for tablets?","kadence-blocks"),checked:!(!De||!De[0])&&De[0].enable,onChange:e=>Ht({enable:e})}),De?.[0]?.enable&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(Oo.BackgroundTypeControl,{label:(0,o.__)("Type","kadence-blocks"),type:De?.[0]?.type?De[0].type:"normal",onChange:e=>Ht({type:e}),allowedTypes:["normal","gradient"]}),"gradient"===Nt&&(0,Bo.jsx)(Oo.GradientControl,{value:De?.[0]?.gradient,onChange:e=>Ht({gradient:e}),gradients:[]}),"normal"===Nt&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(Oo.PopColorControl,{label:(0,o.__)("Background Color","kadence-blocks"),value:De[0].bgColor?De[0].bgColor:"",default:"",onChange:e=>Ht({bgColor:e})}),Bt&&(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Force no image/gradient for tablet","kadence-blocks"),checked:!(!De||!De[0])&&De[0].forceOverDesk,onChange:e=>Ht({forceOverDesk:e})}),(0,Bo.jsx)(Oo.BackgroundControl,{label:(0,o.__)("Background Image","kadence-blocks"),hasImage:!!(De&&De[0]&&De[0].bgImg),imageURL:De&&De[0]&&De[0].bgImg?De[0].bgImg:"",imageID:De&&De[0]&&De[0].bgImgID?De[0].bgImgID:"",imagePosition:De&&De[0]&&De[0].bgImgPosition?De[0].bgImgPosition:"center center",imageSize:De&&De[0]&&De[0].bgImgSize?De[0].bgImgSize:"cover",imageRepeat:De&&De[0]&&De[0].bgImgRepeat?De[0].bgImgRepeat:"no-repeat",imageAttachment:De&&De[0]&&De[0].bgImgAttachment?De[0].bgImgAttachment:"scroll",imageAttachmentParallax:!0,onRemoveImage:()=>{Ht({bgImgID:"",bgImg:""})},onSaveImage:e=>{Ht({bgImgID:e.id,bgImg:e.url})},onSaveURL:e=>{e!==(De&&De[0]&&De[0].bgImg?De[0].bgImg:"")&&Ht({bgImgID:void 0,bgImg:e})},onSavePosition:e=>Ht({bgImgPosition:e}),onSaveSize:e=>Ht({bgImgSize:e}),onSaveRepeat:e=>Ht({bgImgRepeat:e}),onSaveAttachment:e=>Ht({bgImgAttachment:e}),disableMediaButtons:De&&De[0]&&De[0].bgImg?De[0].bgImg:"",dynamicAttribute:"tabletBackground:0:bgImg",isSelected:a,attributes:n,setAttributes:r,name:"kadence/rowlayout",clientId:t})]})]})]}),Qt=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Set custom background overlay for tablets?","kadence-blocks"),checked:!(!Fe||!Fe[0])&&Fe[0].enable,onChange:e=>$t({enable:e})}),Fe&&Fe[0]&&Fe[0].enable&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(Oo.RangeControl,{label:(0,o.__)("Overlay Opacity","kadence-blocks"),value:Fe&&Fe[0]?Fe[0].overlayOpacity:30,onChange:e=>{$t({overlayOpacity:e})},min:0,max:100,reset:!0}),(0,Bo.jsx)(Oo.BackgroundTypeControl,{label:(0,o.__)("Overlay Type","kadence-blocks"),type:Fe[0].currentOverlayTab?Fe[0].currentOverlayTab:"normal",onChange:e=>$t({currentOverlayTab:e}),allowedTypes:["normal","gradient"]}),"gradient"===Fe[0].currentOverlayTab&&(0,Bo.jsx)(Oo.GradientControl,{value:Fe[0].gradient,onChange:e=>$t({gradient:e}),gradients:[]}),"gradient"!==Fe[0].currentOverlayTab&&qt,(0,Bo.jsx)(No.SelectControl,{label:(0,o.__)("Blend Mode","kadence-blocks"),value:Fe&&Fe[0]?Fe[0].overlayBlendMode:"none",options:ah,onChange:e=>$t({overlayBlendMode:e})}),(0,Bo.jsx)("p",{children:(0,o.__)("Notice: Blend Mode not supported in all browsers","kadence-blocks")})]})]}),en=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(Oo.BackgroundTypeControl,{label:(0,o.__)("Type","kadence-blocks"),type:Ue,onChange:e=>{r({backgroundSettingTab:e})}}),"slider"===Ue&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(Oo.RangeControl,{label:(0,o.__)("Slider Item Count","kadence-blocks"),value:void 0!==Ze?Ze:1,onChange:e=>{let t;if(t=void 0===Ge||void 0!==Ge&&void 0===Ge[0]?[{bgColor:"",bgImg:"",bgImgID:""}]:Ge,t.length<e){const n=Math.abs(e-t.length);(0,jo.times)(n,e=>{t.push({bgColor:"",bgImg:"",bgImgID:""})}),r({backgroundSlider:t})}r({backgroundSliderCount:e})},step:1,min:1,max:20}),(0,jo.times)(void 0!==Ze?Ze:1,e=>(e=>{let t;return t=void 0===Ge||void 0!==Ge&&void 0===Ge[0]?[{bgColor:"",bgImg:"",bgImgID:""}]:Ge,(0,Bo.jsxs)(Oo.SubsectionWrap,{label:(0,o.__)("Slide","kadence-blocks")+" "+(e+1)+" "+(0,o.__)("Settings","kadence-blocks"),children:[(0,Bo.jsx)(Oo.PopColorControl,{label:(0,o.__)("Slide Background Color","kadence-blocks"),value:void 0!==t&&void 0!==t[e]&&t[e].bgColor?t[e].bgColor:"",default:"",onChange:t=>zt({bgColor:t},e)}),(0,Bo.jsx)(Oo.KadenceImageControl,{label:(0,o.__)("Slide Background Image","kadence-blocks"),hasImage:!!(t&&t[e]&&t[e].bgImg),imageURL:t&&t[e]&&t[e].bgImg?t[e].bgImg:"",imageID:t&&t[e]&&t[e].bgImgID?t[e].bgImgID:"",onRemoveImage:()=>{zt({bgImgID:"",bgImg:""},e)},onSaveImage:t=>{zt({bgImgID:t.id,bgImg:t.url},e)},disableMediaButtons:!!(t&&t[e]&&t[e].bgImg)})]})})(e)),(0,Bo.jsx)(Oo.KadenceRadioButtons,{label:(0,o.__)("Slider Image Size","kadence-blocks"),value:z,options:[{value:"cover",label:(0,o.__)("Cover","kadence-blocks")},{value:"contain",label:(0,o.__)("Contain","kadence-blocks")},{value:"auto",label:(0,o.__)("Auto","kadence-blocks")}],onChange:e=>r({bgImgSize:e})}),(0,Bo.jsx)(No.SelectControl,{label:(0,o.__)("Slider Image Position","kadence-blocks"),value:H,options:[{value:"center top",label:(0,o.__)("Center Top","kadence-blocks")},{value:"center center",label:(0,o.__)("Center Center","kadence-blocks")},{value:"center bottom",label:(0,o.__)("Center Bottom","kadence-blocks")},{value:"left top",label:(0,o.__)("Left Top","kadence-blocks")},{value:"left center",label:(0,o.__)("Left Center","kadence-blocks")},{value:"left bottom",label:(0,o.__)("Left Bottom","kadence-blocks")},{value:"right top",label:(0,o.__)("Right Top","kadence-blocks")},{value:"right center",label:(0,o.__)("Right Center","kadence-blocks")},{value:"right bottom",label:(0,o.__)("Right Bottom","kadence-blocks")}],onChange:e=>r({bgImgPosition:e})}),(0,Bo.jsx)(Oo.KadenceRadioButtons,{label:(0,o.__)("Slider Image Repeat","kadence-blocks"),value:$,options:[{value:"no-repeat",label:(0,o.__)("No Repeat","kadence-blocks")},{value:"repeat",label:(0,o.__)("Repeat","kadence-blocks")},{value:"repeat-x",label:(0,o.__)("Repeat-x","kadence-blocks")},{value:"repeat-y",label:(0,o.__)("Repeat-y","kadence-blocks")}],onChange:e=>r({bgImgRepeat:e})}),(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Slider Auto Play","kadence-blocks"),checked:!Ke||!Ke[0]||void 0===Ke[0].autoPlay||Ke[0].autoPlay,onChange:e=>Ut({autoPlay:e})}),Ke&&Ke[0]&&void 0!==Ke[0].autoPlay&&Ke[0].autoPlay&&(0,Bo.jsx)(Oo.RangeControl,{label:(0,o.__)("Autoplay Speed","kadence-blocks"),value:Ke[0].speed,onChange:e=>Ut({speed:e}),min:500,max:15e3,step:10}),(0,Bo.jsx)(No.SelectControl,{label:(0,o.__)("Transition Style","kadence-blocks"),options:[{label:(0,o.__)("Fade","kadence-blocks"),value:"fade"},{label:(0,o.__)("Slide","kadence-blocks"),value:"slide"}],value:Ke&&Ke[0]&&void 0!==Ke[0].fade&&!1===Ke[0].fade?"slide":"fade",onChange:e=>{Ut("slide"===e?{fade:!1}:{fade:!0})}}),(0,Bo.jsx)(Oo.RangeControl,{label:(0,o.__)("Slider Transition Speed","kadence-blocks"),value:Ke&&Ke[0]&&void 0!==Ke[0].tranSpeed?Ke[0].tranSpeed:400,onChange:e=>Ut({tranSpeed:e}),min:100,max:2e3,step:10}),(0,Bo.jsx)(No.SelectControl,{label:(0,o.__)("Arrow Style","kadence-blocks"),options:[{label:(0,o.__)("White on Dark","kadence-blocks"),value:"whiteondark"},{label:(0,o.__)("Black on Light","kadence-blocks"),value:"blackonlight"},{label:(0,o.__)("Outline Black","kadence-blocks"),value:"outlineblack"},{label:(0,o.__)("Outline White","kadence-blocks"),value:"outlinewhite"},{label:(0,o.__)("None","kadence-blocks"),value:"none"}],value:Ke&&Ke[0]&&void 0!==Ke[0].arrowStyle?Ke[0].arrowStyle:"none",onChange:e=>Ut({arrowStyle:e})}),(0,Bo.jsx)(No.SelectControl,{label:(0,o.__)("Dot Style","kadence-blocks"),options:[{label:(0,o.__)("Dark","kadence-blocks"),value:"dark"},{label:(0,o.__)("Light","kadence-blocks"),value:"light"},{label:(0,o.__)("Outline Dark","kadence-blocks"),value:"outlinedark"},{label:(0,o.__)("Outline Light","kadence-blocks"),value:"outlinelight"},{label:(0,o.__)("None","kadence-blocks"),value:"none"}],value:Ke&&Ke[0]&&void 0!==Ke[0].dotStyle?Ke[0].dotStyle:"dark",onChange:e=>Ut({dotStyle:e})})]}),"video"===Ue&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(No.SelectControl,{label:(0,o.__)("Background Video Type","kadence-blocks"),options:[{label:(0,o.__)("Local (MP4)","kadence-blocks"),value:"local"},{label:(0,o.__)("YouTube","kadence-blocks"),value:"youtube"},{label:(0,o.__)("Vimeo","kadence-blocks"),value:"vimeo"}],value:Ye,onChange:e=>r({backgroundVideoType:e})}),(void 0===Ye||"local"===Ye)&&(0,Bo.jsxs)(Ao.Fragment,{children:[(0,Bo.jsx)(Oo.KadenceVideoControl,{label:(0,o.__)("Background Video","kadence-blocks"),hasVideo:!(!Ft||!Je[0].localID),videoURL:Je&&Je[0]&&Je[0].local?Je[0].local:"",videoID:Je&&Je[0]&&Je[0].localID?Je[0].localID:"",onRemoveVideo:()=>{Gt({localID:"",local:""})},onSaveVideo:e=>{Gt({localID:e.id,local:e.url})},disableMediaButtons:!(!Ft||!Je[0].local)}),(0,Bo.jsx)(Oo.DynamicTextInputControl,{label:(0,o.__)("HTML5 Video File URL","kadence-blocks"),value:Ft&&Je[0].local?Je[0].local:"",onChange:e=>Gt({local:e}),dynamicAttribute:"backgroundVideo:0:local",allowClear:!0,...e})]}),void 0!==Ye&&"local"!==Ye&&(0,Bo.jsx)("div",{class:"components-base-control",children:(0,o.__)("Warning: Embedded videos are not ideal for background content. Consider self hosting instead.","kadence-blocks")}),"youtube"===Ye&&(0,Bo.jsx)(No.TextControl,{label:(0,o.__)("YouTube ID ( example: OZBOEnHhR14 )","kadence-blocks"),value:Ft&&Je[0].youTube?Je[0].youTube:"",onChange:e=>Gt({youTube:e})}),"vimeo"===Ye&&(0,Bo.jsx)(No.TextControl,{label:(0,o.__)("Vimeo ID ( example: 789006133 )","kadence-blocks"),value:Ft&&Je[0].vimeo?Je[0].vimeo:"",onChange:e=>Gt({vimeo:e})}),void 0!==Ye&&"local"!==Ye&&(0,Bo.jsx)(No.SelectControl,{label:(0,o.__)("Background Video Ratio","kadence-blocks"),options:[{label:"16 / 9",value:"16/9"},{label:"4 / 3",value:"4/3"},{label:"3 / 2",value:"3/2"}],value:Ft&&void 0!==Je[0].ratio?Je[0].ratio:"16/9",onChange:e=>Gt({ratio:e})}),(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Mute Video","kadence-blocks"),checked:!Ft||void 0===Je[0].mute||Je[0].mute,onChange:e=>Gt({mute:e})}),(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Loop Video","kadence-blocks"),checked:!Ft||void 0===Je[0].loop||Je[0].loop,onChange:e=>Gt({loop:e})}),(void 0===Ye||"local"===Ye)&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Show Mute Unmute Buttons?","kadence-blocks"),checked:!(!Ft||void 0===Je[0].btnsMute)&&Je[0].btnsMute,onChange:e=>Gt({btnsMute:e})}),(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Show Play Pause Buttons?","kadence-blocks"),checked:!Ft||void 0===Je[0].btns||Je[0].btns,onChange:e=>Gt({btns:e})})]}),(0,Bo.jsx)(Oo.PopColorControl,{label:(0,o.__)("Background Color","kadence-blocks"),value:B||"",default:"",onChange:e=>r({bgColor:e}),onClassChange:e=>r({bgColorClass:e})}),void 0!==Ye&&"local"===Ye&&(0,Bo.jsx)(Oo.KadenceImageControl,{label:(0,o.__)("Select Video Poster","kadence-blocks"),hasImage:!!D,imageURL:D||"",imageID:V||"",onRemoveImage:()=>{r({bgImgID:null,bgImg:null})},onSaveImage:e=>{r({bgImgID:e.id,bgImg:e.url})},disableMediaButtons:!!D})]}),"gradient"===Ue&&(0,Bo.jsx)(Oo.GradientControl,{value:R,onChange:e=>r({gradient:e}),gradients:[]}),"normal"===Ue&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(Oo.PopColorControl,{label:(0,o.__)("Background Color","kadence-blocks"),value:B||"",default:"",onChange:e=>r({bgColor:e}),onClassChange:e=>r({bgColorClass:e})}),(0,Bo.jsx)(Oo.BackgroundControl,{label:(0,o.__)("Background Image","kadence-blocks"),hasImage:D,imageURL:D,imageID:V,imagePosition:H||"center center",imageSize:z||"cover",imageRepeat:$||"no-repeat",imageAttachment:F||"scroll",imageAttachmentParallax:!0,onRemoveImage:()=>{r({bgImgID:null,bgImg:null})},onSaveImage:e=>{r({bgImgID:e.id,bgImg:e.url})},onSaveURL:e=>{e!==D&&r({bgImgID:void 0,bgImg:e})},onSavePosition:e=>r({bgImgPosition:e}),onSaveSize:e=>r({bgImgSize:e}),onSaveRepeat:e=>r({bgImgRepeat:e}),onSaveAttachment:e=>r({bgImgAttachment:e}),inlineImage:We,onSaveInlineImage:e=>r({backgroundInline:e}),disableMediaButtons:D,dynamicAttribute:"bgImg",isSelected:a,attributes:n,setAttributes:r,name:"kadence/rowlayout",clientId:t,context:l})]})]}),tn=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(Oo.PopColorControl,{label:(0,o.__)("Overlay Color","kadence-blocks"),value:re||"",default:"",onChange:e=>r({overlay:e}),opacityValue:void 0!==Qe&&""!==Qe?Qe:1,onOpacityChange:e=>r({overlayFirstOpacity:e})}),(0,Bo.jsx)(Oo.BackgroundControl,{label:(0,o.__)("Background Image","kadence-blocks"),hasImage:Z,imageURL:Z,imageID:q,imagePosition:K||"center center",imageSize:Y||"cover",imageRepeat:J||"no-repeat",imageAttachment:G||"scroll",imageAttachmentParallax:!0,onRemoveImage:()=>{r({overlayBgImgID:null,overlayBgImg:null})},onSaveImage:e=>{r({overlayBgImgID:e.id,overlayBgImg:e.url})},onSaveURL:e=>{e!==Z&&r({overlayBgImgID:void 0,overlayBgImg:e})},onSavePosition:e=>r({overlayBgImgPosition:e}),onSaveSize:e=>r({overlayBgImgSize:e}),onSaveRepeat:e=>r({overlayBgImgRepeat:e}),onSaveAttachment:e=>r({overlayBgImgAttachment:e}),disableMediaButtons:Z,dynamicAttribute:"overlayBgImg",isSelected:a,attributes:n,setAttributes:r,name:"kadence/rowlayout",clientId:t})]}),nn=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(Oo.RangeControl,{label:(0,o.__)("Overlay Opacity","kadence-blocks"),value:U,onChange:e=>{r({overlayOpacity:e})},min:0,max:100,reset:!0}),(0,Bo.jsx)(Oo.BackgroundTypeControl,{label:(0,o.__)("Overlay Type","kadence-blocks"),type:X||"normal",onChange:e=>r({currentOverlayTab:e}),allowedTypes:["normal","gradient"]}),"gradient"===X&&(0,Bo.jsx)(Oo.GradientControl,{value:ae,onChange:e=>r({overlayGradient:e}),gradients:[]}),"gradient"!==X&&(0,Bo.jsx)(Bo.Fragment,{children:tn}),(0,Bo.jsx)(No.SelectControl,{label:(0,o.__)("Blend Mode","kadence-blocks"),value:Q,options:ah,onChange:e=>r({overlayBlendMode:e})}),(0,Bo.jsx)("p",{children:(0,o.__)("Notice: Blend Mode not supported in all browsers","kadence-blocks")})]}),on=(0,Bo.jsx)(Oo.KadencePanelBody,{title:(0,o.__)("Text Color Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-row-text-color",children:(0,Bo.jsxs)(Oo.ColorGroup,{children:[(0,Bo.jsx)(Oo.PopColorControl,{label:(0,o.__)("Text Color","kadence-blocks"),value:Oe||"",default:"",onChange:e=>r({textColor:e})}),(0,Bo.jsx)(Oo.PopColorControl,{label:(0,o.__)("Link Color","kadence-blocks"),value:Me||"",default:"",onChange:e=>r({linkColor:e}),swatchLabel2:(0,o.__)("Hover Color","kadence-blocks"),value2:Pe||"",default2:"",onChange2:e=>r({linkHoverColor:e})})]})});return(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Mo.showSettings)("background","kadence/rowlayout")&&(0,Bo.jsx)(Oo.KadencePanelBody,{title:(0,o.__)("Background Settings","kadence-blocks"),initialOpen:!0,panelName:"kb-row-bg-settings",children:(0,Bo.jsx)(Oo.SmallResponsiveControl,{label:(0,o.__)("Background","kadence-blocks"),hasPadding:!0,desktopChildren:en,tabletChildren:Xt,mobileChildren:Jt})}),(0,Mo.showSettings)("backgroundOverlay","kadence/rowlayout")&&(0,Bo.jsx)(Oo.KadencePanelBody,{title:(0,o.__)("Background Overlay Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-row-bg-overlay",children:(0,Bo.jsx)(Oo.SmallResponsiveControl,{label:(0,o.__)("Overlay","kadence-blocks"),hasPadding:!0,desktopChildren:nn,tabletChildren:Qt,mobileChildren:Yt})}),(0,Mo.showSettings)("border","kadence/rowlayout")&&(0,Bo.jsxs)(Oo.KadencePanelBody,{title:(0,o.__)("Border Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-row-border-settings",children:[(0,Bo.jsx)(Oo.ResponsiveBorderControl,{label:(0,o.__)("Border","kadence-blocks"),value:St,tabletValue:jt,mobileValue:Ct,onChange:e=>r({borderStyle:e}),onChangeTablet:e=>r({tabletBorderStyle:e}),onChangeMobile:e=>r({mobileBorderStyle:e})}),(0,Bo.jsx)(Oo.ResponsiveMeasurementControls,{label:(0,o.__)("Border Radius","kadence-blocks"),value:vt,tabletValue:yt,mobileValue:kt,onChange:e=>r({borderRadius:e}),onChangeTablet:e=>r({tabletBorderRadius:e}),onChangeMobile:e=>r({mobileBorderRadius:e}),unit:It,units:["px","em","rem","%"],onUnit:e=>r({borderRadiusUnit:e}),max:"em"===It||"rem"===It?24:500,step:"em"===It||"rem"===It?.1:1,min:0,isBorderRadius:!0,allowEmpty:!0}),Dt&&(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Overflow Hidden","kadence-blocks"),checked:Ot,onChange:e=>r({borderRadiusOverflow:e})}),(0,Bo.jsx)(Oo.BoxShadowControl,{label:(0,o.__)("Box Shadow","kadence-blocks"),enable:void 0!==Et&&Et,color:void 0!==At&&void 0!==At[0]&&void 0!==At[0].color?At[0].color:"#000000",colorDefault:"#000000",onArrayChange:(e,t)=>Zt({color:e,opacity:t}),opacity:void 0!==At&&void 0!==At[0]&&void 0!==At[0].opacity?At[0].opacity:.2,hOffset:void 0!==At&&void 0!==At[0]&&void 0!==At[0].hOffset?At[0].hOffset:0,vOffset:void 0!==At&&void 0!==At[0]&&void 0!==At[0].vOffset?At[0].vOffset:0,blur:void 0!==At&&void 0!==At[0]&&void 0!==At[0].blur?At[0].blur:14,spread:void 0!==At&&void 0!==At[0]&&void 0!==At[0].spread?At[0].spread:0,inset:void 0!==At&&void 0!==At[0]&&void 0!==At[0].inset&&At[0].inset,onEnableChange:e=>{r({displayBoxShadow:e})},onColorChange:e=>{Zt({color:e})},onOpacityChange:e=>{Zt({opacity:e})},onHOffsetChange:e=>{Zt({hOffset:e})},onVOffsetChange:e=>{Zt({vOffset:e})},onBlurChange:e=>{Zt({blur:e})},onSpreadChange:e=>{Zt({spread:e})},onInsetChange:e=>{Zt({inset:e})}})]}),(0,Bo.jsx)("div",{className:"kt-sidebar-settings-spacer"}),(0,Mo.showSettings)("textColor","kadence/rowlayout")&&on]})};function kh({previewDevice:e="Desktop",edge:t="top",attributes:n,setAttributes:r,toggleSelection:a,finishedResizing:l,isPreviewMode:i}){const{leftPadding:s,rightPadding:c,topPadding:d,bottomPadding:u,tabletPadding:p,topPaddingM:g,paddingUnit:m,firstColumnWidth:h,columns:b,columnsUnlocked:f,secondColumnWidth:v,uniqueID:y,columnGutter:k,customGutter:x,gutterType:w,colLayout:_,bgColor:S,bgImg:j,gradient:C,overlay:I,overlayGradient:O,overlayBgImg:M,inheritMaxWidth:P,maxWidthUnit:T,maxWidth:E,padding:A,mobilePadding:N,templateLock:L}=n,R="top"===t?0:2,B=document.querySelector('iframe[name="editor-canvas"]')?.contentWindow.document||document,D=(0,Mo.getPreviewSize)(e,void 0!==A&&void 0!==A[R]?uh(A[R],m):(0,o.__)("Unset","kadence-blocks"),void 0!==p&&void 0!==p[R]&&""!==p[R]?uh(p[R]):"",void 0!==N&&void 0!==N[R]&&""!==N[R]?uh(N[R]):""),F=(0,Mo.getPreviewSize)(e,void 0!==A&&void 0!==A[R]?gh(A[R]):"",void 0!==p&&void 0!==p[R]&&""!==p[R]?gh(p[R]):"",void 0!==N&&void 0!==N[R]&&""!==N[R]?gh(N[R]):"");let z="variable";void 0!==A?.[R]&&Number(A?.[R])===parseFloat(A?.[R])&&(z="normal");const H=m||"px";return(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Mo.showSettings)("allSettings","kadence/rowlayout")&&(0,Mo.showSettings)("paddingMargin","kadence/rowlayout")&&!i&&"normal"===z&&"px"===H&&"contentOnly"!==L&&(0,Bo.jsx)(No.ResizableBox,{size:{height:F},minHeight:"0",handleClasses:{top:"wp-block-kadence-rowlayout-handler-top",bottom:"wp-block-kadence-rowlayout-handler-bottom"},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},className:`kt-${t}-padding-resize kt-padding-resize-box`,onResize:(e,n,o,r)=>{e.preventDefault(),B.getElementById("row-"+t+"-"+y).innerHTML=parseInt(F+r.height,10)+"px"},onResizeStop:(n,o,i,s)=>{l(!0),r("Mobile"===e?"top"===t?{mobilePadding:[parseInt(F+s.height,10),N?N[1]:"",N?N[2]:"",N?N[3]:""]}:{mobilePadding:[N?N[0]:"",N?N[1]:"",parseInt(F+s.height,10),N?N[3]:""]}:"Tablet"===e?"top"===t?{tabletPadding:[parseInt(F+s.height,10),p?p[1]:"",p?p[2]:"",p?p[3]:""]}:{tabletPadding:[p?p[0]:"",p?p[1]:"",parseInt(F+s.height,10),p?p[3]:""]}:"top"===t?{padding:[parseInt(F+s.height,10),A?A[1]:"",A?A[2]:"",A?A[3]:""]}:{padding:[A?A[0]:"",A?A[1]:"",parseInt(F+s.height,10),A?A[3]:""]}),a(!0)},onResizeStart:()=>{a(!1)},children:y&&(0,Bo.jsx)("div",{className:"kt-row-padding",children:(0,Bo.jsx)("span",{id:`row-${t}-${y}`,children:F+"px"})})}),(0,Mo.showSettings)("allSettings","kadence/rowlayout")&&(0,Mo.showSettings)("paddingMargin","kadence/rowlayout")&&!i&&"variable"===z&&"contentOnly"!==L&&(0,Bo.jsx)(No.ResizableBox,{size:{height:F},minHeight:"0",maxHeight:sh[sh.length-1]+"px",handleClasses:{top:"wp-block-kadence-rowlayout-handler-top",bottom:"wp-block-kadence-rowlayout-handler-bottom"},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},snap:{y:sh},snapGap:16,grid:[1,8],className:`kt-${t}-padding-resize kt-padding-resize-box`,onResize:(e,n,o,r)=>{e.preventDefault();const a=function(e){if(!e)return"";if("0"===e)return"0";const t=lh.find(t=>t.size===e);return t?t.name:e+"px"}(parseInt(F+r.height,10));B.getElementById("row-"+t+"-"+y).innerHTML=a},onResizeStop:(n,o,i,s)=>{l(!0);const c=function(e){if(!e)return"";if("0"===e)return"0";const t=lh.find(t=>t.size===e);return t?t.value:e}(parseInt(F+s.height,10));r("Mobile"===e?"top"===t?{mobilePadding:[c,N?N[1]:"",N?N[2]:"",N?N[3]:""]}:{mobilePadding:[N?N[0]:"",N?N[1]:"",c,N?N[3]:""]}:"Tablet"===e?"top"===t?{tabletPadding:[c,p?p[1]:"",p?p[2]:"",p?p[3]:""]}:{tabletPadding:[p?p[0]:"",p?p[1]:"",c,p?p[3]:""]}:"top"===t?{padding:[c,A?A[1]:"",A?A[2]:"",A?A[3]:""]}:{padding:[A?A[0]:"",A?A[1]:"",c,A?A[3]:""]}),a(!0)},onResizeStart:()=>{a(!1)},axis:"y",children:y&&(0,Bo.jsx)("div",{className:"kt-row-padding",children:(0,Bo.jsx)("span",{id:`row-${t}-${y}`,children:D})})}),(!(0,Mo.showSettings)("allSettings","kadence/rowlayout")||!(0,Mo.showSettings)("paddingMargin","kadence/rowlayout")||i||"contentOnly"===L||"normal"===z&&m&&"px"!==m)&&(0,Bo.jsx)(Bo.Fragment,{children:y&&(0,Bo.jsx)("div",{className:"kt-row-padding kb-static-row-padding",style:{paddingTop:F+("variable"!==z?H:"px")},children:(0,Bo.jsx)("div",{className:"kb-row-padding-container",children:(0,Bo.jsx)("span",{id:`row-${t}-${y}`,children:"variable"===z?D:F+H})})})})]})}function xh({setAttributes:e,attributes:t}){const{padding:n,paddingUnit:o,firstColumnWidth:r,columns:a,columnsUnlocked:l,secondColumnWidth:i,uniqueID:s,columnGutter:c,customGutter:d,gutterType:u,colLayout:p,bgColor:g,bgImg:m,gradient:h,overlay:b,overlayGradient:f,overlayBgImg:v,inheritMaxWidth:y,maxWidth:k,maxWidthUnit:x}=t,w=(ch(dh("Desktop",c,d,u),a),void 0!==k?k:""),_=Io()({"kt-resizeable-column-container":!0,"kb-grid-align-display-wrap":!0,[`kt-resizeable-column-container${s}`]:s,"kb-theme-content-width":y});let S=g||m||h||b||f||v?"var(--global-row-edge-sm, 15px)":"0px";y&&(S="var(--global-row-edge-theme, 15px)");const j="var(--global-row-spacing-sm, 25px)",C=void 0!==n&&void 0!==n[1]?ph(n[1],o||"px"):void 0,I=void 0!==n&&void 0!==n[3]?ph(n[3],o||"px"):void 0,O=void 0!==n&&void 0!==n[0]?ph(n[0],o||"px"):void 0,M=void 0!==n&&void 0!==n[2]?ph(n[2],o||"px"):void 0;return document.querySelector('iframe[name="editor-canvas"]')?.contentWindow.document||document,(0,Bo.jsx)("div",{className:_,style:{paddingLeft:I||S,paddingRight:C||S,marginLeft:"auto",marginRight:"auto",paddingTop:O||j,paddingBottom:M||j,maxWidth:!y&&w?w+(x||"px"):void 0},children:(0,Bo.jsxs)("div",{className:"kb-grid-align-display",style:{left:I||S,right:C||S,top:O||j,bottom:M||j},children:[(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{}),(0,Bo.jsx)("div",{})]})})}const wh=(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Bo.jsx)(Ro.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})}),_h=(0,Bo.jsx)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,Bo.jsx)(Ro.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"})}),Sh=(0,Bo.jsxs)(Ro.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[(0,Bo.jsx)(Ro.Path,{d:"m19 7.5h-7.628c-.3089-.87389-1.1423-1.5-2.122-1.5-.97966 0-1.81309.62611-2.12197 1.5h-2.12803v1.5h2.12803c.30888.87389 1.14231 1.5 2.12197 1.5.9797 0 1.8131-.62611 2.122-1.5h7.628z"}),(0,Bo.jsx)(Ro.Path,{d:"m19 15h-2.128c-.3089-.8739-1.1423-1.5-2.122-1.5s-1.8131.6261-2.122 1.5h-7.628v1.5h7.628c.3089.8739 1.1423 1.5 2.122 1.5s1.8131-.6261 2.122-1.5h2.128z"})]}),jh=["kadence/column"],{Fragment:Ch}=wp.element,Ih={attributes:fh.attributes,supports:{anchor:!0,ktdynamic:!0,kbcss:!0},save:({attributes:e})=>{const{columns:t,blockAlignment:n,inheritMaxWidth:r,align:a,mobileLayout:l,currentOverlayTab:i,overlayBgImg:s,overlay:c,colLayout:d,tabletLayout:u,collapseOrder:p,uniqueID:g,columnGutter:m,collapseGutter:h,bgColor:b,bgImg:f,verticalAlignment:v,htmlTag:y,bottomSep:k,bottomSepColor:x,topSep:w,topSepColor:_,firstColumnWidth:S,secondColumnWidth:j,overlayBgImgAttachment:C,bgImgAttachment:I,columnsInnerHeight:O,backgroundInline:M,backgroundSettingTab:P,backgroundSliderCount:T,backgroundSliderSettings:E,backgroundSlider:A,bgImgSize:N,bgImgPosition:L,bgImgRepeat:R,backgroundVideoType:B,backgroundVideo:D,bgColorClass:F,vsdesk:z,vstablet:H,vsmobile:$,tabletOverlay:V,mobileOverlay:W}=e;let U,Z;"ct"===k?U=(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===k?U=(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===k?U=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})]}):"ctdi"===k?U=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})]}):"sltl"===k?U=(0,Bo.jsx)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===k?U=(0,Bo.jsx)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===k?U=(0,Bo.jsx)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===k?U=(0,Bo.jsx)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===k?U=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===k?U=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===k?U=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===k?U=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===k?U=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===k?U=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===k?U=(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===k?U=(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===k?U=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})]}):"wavesi"===k?U=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})]}):"mtns"===k?U=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})]}):"littri"===k?U=(0,Bo.jsx)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===k?U=(0,Bo.jsx)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}):"threelevels"===k?U=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,Bo.jsx)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,Bo.jsx)("path",{d:"M0 95l1000-40.887V100H0v-5z"})]}):"threelevelsi"===k&&(U=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{style:{opacity:.33},d:"M1000 95L0 0v100h1000v-5z"}),(0,Bo.jsx)("path",{style:{opacity:.66},d:"M1000 95L0 27.056V100h1000v-5z"}),(0,Bo.jsx)("path",{d:"M1000 95L0 54.113V100h1000v-5z"})]})),"ct"===w?Z=(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===w?Z=(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===w?Z=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})]}):"ctdi"===w?Z=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})]}):"sltl"===w?Z=(0,Bo.jsx)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===w?Z=(0,Bo.jsx)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===w?Z=(0,Bo.jsx)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===w?Z=(0,Bo.jsx)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===w?Z=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===w?Z=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===w?Z=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===w?Z=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===w?Z=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===w?Z=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===w?Z=(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===w?Z=(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===w?Z=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})]}):"wavesi"===w?Z=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})]}):"mtns"===w?Z=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})]}):"littri"===w?Z=(0,Bo.jsx)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===w?Z=(0,Bo.jsx)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}):"threelevels"===w?Z=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,Bo.jsx)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,Bo.jsx)("path",{d:"M0 95l1000-40.887V100H0v-5z"})]}):"threelevelsi"===w&&(Z=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{style:{opacity:.33},d:"M1000 95L0 0v100h1000v-5z"}),(0,Bo.jsx)("path",{style:{opacity:.66},d:"M1000 95L0 27.056V100h1000v-5z"}),(0,Bo.jsx)("path",{d:"M1000 95L0 54.113V100h1000v-5z"})]}));const G=!S||2!==t&&3!==t?"":" kt-custom-first-width-"+S,q=!j||2!==t&&3!==t?"":" kt-custom-second-width-"+j,K=j&&S&&3===t?" kt-custom-third-width-"+Math.round(10*(100-(parseFloat(S)+parseFloat(j))))/10:"",J=d||"equal",Y=u||"inherit",X=y||"div",Q=l||"inherit",ee=g||"notset",te=i&&"grad"===i?"gradient":"normal",ne=Io()({"wp-block-kadence-rowlayout":!0,[`align${a||"none"}`]:!0,"kvs-lg-false":"undefined"!==z&&z,"kvs-md-false":"undefined"!==H&&H,"kvs-sm-false":"undefined"!==$&&$}),oe=(0,Pr.getColorClassName)("background-color",F),re=Io()("kt-row-layout-inner",{"kt-row-has-bg":b||f||c||s,["kt-layout-id"+ee]:ee,"kt-jarallax":f&&"parallax"===I,[oe]:oe}),ae=Io()({"kt-row-column-wrap":!0,[`kt-has-${t}-columns`]:t,[`kt-gutter-${m}`]:m,[`kt-v-gutter-${h||"default"}`]:!0,[`kt-row-valign-${v}`]:v,[`kt-row-layout-${J}`]:J,[`kt-tab-layout-${Y}`]:Y,[`kt-m-colapse-${p}`]:p,[`kt-mobile-layout-${Q}`]:Q,[G]:G,[q]:q,[K]:K,"kt-inner-column-height-full":void 0!==O&&!0===O,"kb-theme-content-width":r});let le=!(!c&&!s);return le||(le=!!(V&&V[0]&&V[0].enable)),le||(le=!!(W&&W[0]&&W[0].enable)),(0,Bo.jsx)(X,{className:ne,children:(0,Bo.jsxs)("div",{id:`kt-layout-id${g}`,className:re,style:{backgroundImage:"slider"!==P&&"video"!==P&&M&&void 0!==f&&""!==f?"url("+f+")":void 0},children:["slider"===P&&(()=>{let e;return e=void 0===E||void 0!==E&&void 0===E[0]?[{arrowStyle:"none",dotStyle:"dark",autoPlay:!0,speed:7e3,fade:!0,tranSpeed:400}]:E,(0,Bo.jsx)("div",{className:`kt-blocks-carousel kb-blocks-bg-slider kt-carousel-container-dotstyle-${e[0].dotStyle}`,children:(0,Bo.jsx)("div",{className:`kt-blocks-carousel-init kb-blocks-bg-slider-init kt-carousel-arrowstyle-${e[0].arrowStyle} kt-carousel-dotstyle-${e[0].dotStyle}`,"data-slider-anim-speed":e[0].tranSpeed,"data-slider-type":"slider","data-slider-scroll":"1","data-slider-arrows":"none"!==e[0].arrowStyle,"data-slider-fade":e[0].fade,"data-slider-dots":"none"!==e[0].dotStyle,"data-slider-hover-pause":"false","data-slider-auto":e[0].autoPlay,"data-slider-speed":e[0].speed,children:(0,jo.times)(void 0!==T?T:1,e=>(e=>{let t;return t=void 0===A||void 0!==A&&void 0===A[0]?[{bgColor:"",bgImg:"",bgImgID:""}]:A,(0,Bo.jsx)("div",{className:"kb-bg-slide-contain",children:(0,Bo.jsx)("div",{className:`kb-bg-slide kb-bg-slide-${e}`,style:{backgroundColor:t[e]&&""!==t[e].bgColor?(0,Mo.KadenceColorOutput)(t[e].bgColor):void 0,backgroundImage:t[e]&&""!==t[e].bgImg?"url("+t[e].bgImg+")":void 0,backgroundSize:N||void 0,backgroundPosition:L||void 0,backgroundRepeat:R||void 0}})})})(e))})})})(),"video"===P&&(0,Bo.jsx)("div",{className:"kb-blocks-bg-video-container",children:(void 0===B||""===B||"local"===B)&&(()=>{const e=void 0!==D&&void 0!==D[0]&&void 0!==D[0].local?D:[{youTube:"",local:"",localID:"",vimeo:"",ratio:"16/9",btns:!1,loop:!0,mute:!0}];return(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("video",{className:"kb-blocks-bg-video",poster:void 0!==f&&""!==f?f:void 0,playsinline:"",autoplay:"",muted:!1!==e[0].mute&&"",loop:!1!==e[0].loop&&"",src:e[0].local}),!0===e[0].btns&&(0,Bo.jsxs)("div",{className:"kb-background-video-buttons-wrapper kb-background-video-buttons-html5",children:[(0,Bo.jsx)("button",{className:"kb-background-video-play kb-toggle-video-btn","aria-label":(0,o.__)("Play","kadence-blocks"),"aria-hidden":"true",style:"display: none;",children:(0,Bo.jsx)("svg",{viewBox:"0 0 448 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"})})}),(0,Bo.jsx)("button",{className:"kb-background-video-pause kb-toggle-video-btn","aria-label":(0,o.__)("Pause","kadence-blocks"),"aria-hidden":"false",children:(0,Bo.jsx)("svg",{viewBox:"0 0 448 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"})})}),!1===e[0].mute&&(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("button",{className:"kb-background-video-unmute kb-toggle-video-btn","aria-label":(0,o.__)("Unmute","kadence-blocks"),"aria-hidden":"true",style:"display: none;",children:(0,Bo.jsx)("svg",{viewBox:"0 0 256 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M256 88.017v335.964c0 21.438-25.943 31.998-40.971 16.971L126.059 352H24c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h102.059l88.971-88.954c15.01-15.01 40.97-4.49 40.97 16.971z"})})}),(0,Bo.jsx)("button",{className:"kb-background-video-mute kb-toggle-video-btn","aria-label":(0,o.__)("Mute","kadence-blocks"),"aria-hidden":"false",children:(0,Bo.jsx)("svg",{viewBox:"0 0 576 512",height:"16",width:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M256 88.017v335.964c0 21.438-25.943 31.998-40.971 16.971L126.059 352H24c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h102.059l88.971-88.954c15.01-15.01 40.97-4.49 40.97 16.971zm182.056-77.876C422.982.92 403.283 5.668 394.061 20.745c-9.221 15.077-4.473 34.774 10.604 43.995C468.967 104.063 512 174.983 512 256c0 73.431-36.077 142.292-96.507 184.206-14.522 10.072-18.129 30.01-8.057 44.532 10.076 14.528 30.016 18.126 44.531 8.057C529.633 438.927 576 350.406 576 256c0-103.244-54.579-194.877-137.944-245.859zM480 256c0-68.547-36.15-129.777-91.957-163.901-15.076-9.22-34.774-4.471-43.994 10.607-9.22 15.078-4.471 34.774 10.607 43.994C393.067 170.188 416 211.048 416 256c0 41.964-20.62 81.319-55.158 105.276-14.521 10.073-18.128 30.01-8.056 44.532 6.216 8.96 16.185 13.765 26.322 13.765a31.862 31.862 0 0 0 18.21-5.709C449.091 377.953 480 318.938 480 256zm-96 0c0-33.717-17.186-64.35-45.972-81.944-15.079-9.214-34.775-4.463-43.992 10.616s-4.464 34.775 10.615 43.992C314.263 234.538 320 244.757 320 256a32.056 32.056 0 0 1-13.802 26.332c-14.524 10.069-18.136 30.006-8.067 44.53 10.07 14.525 30.008 18.136 44.53 8.067C368.546 316.983 384 287.478 384 256z"})})})]})]})]})})()}),le&&(0,Bo.jsx)("div",{className:`kt-row-layout-overlay kt-row-overlay-${te}${s&&"gradient"!==te&&"parallax"===C?" kt-jarallax":""}`}),w&&"none"!==w&&""!==w&&(0,Bo.jsx)("div",{className:`kt-row-layout-top-sep kt-row-sep-type-${w}`,children:(0,Bo.jsx)("svg",{style:{fill:(0,Mo.KadenceColorOutput)(_)},viewBox:"0 0 1000 100",preserveAspectRatio:"none",children:Z})}),(0,Bo.jsx)("div",{className:ae,children:(0,Bo.jsx)(Pr.InnerBlocks.Content,{})}),k&&"none"!==k&&""!==k&&(0,Bo.jsx)("div",{className:`kt-row-layout-bottom-sep kt-row-sep-type-${k}`,children:(0,Bo.jsx)("svg",{style:{fill:(0,Mo.KadenceColorOutput)(x)},viewBox:"0 0 1000 100",preserveAspectRatio:"none",children:U})})]})})}},Oh={attributes:{uniqueID:{type:"string",default:""},columns:{type:"number",default:2},mobileLayout:{type:"string",default:"row"},tabletLayout:{type:"string",default:"inherit"},collapseOrder:{type:"string",default:"left-to-right"},collapseGutter:{type:"string",default:"default"},columnGutter:{type:"string",default:"default"},colLayout:{type:"string",default:""},currentTab:{type:"string",default:"desk"},currentOverlayTab:{type:"string",default:"normal"},htmlTag:{type:"string",default:"div"},minHeight:{type:"number",default:0},maxWidth:{type:"number",default:""},topPadding:{type:"number",default:25},bottomPadding:{type:"number",default:25},leftPadding:{type:"number",default:""},rightPadding:{type:"number",default:""},topPaddingM:{type:"number",default:""},bottomPaddingM:{type:"number",default:""},leftPaddingM:{type:"number",default:""},rightPaddingM:{type:"number",default:""},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},topMarginM:{type:"number",default:""},bottomMarginM:{type:"number",default:""},bgColor:{type:"string",default:""},bgImg:{type:"string",default:""},bgImgID:{type:"string",default:""},bgImgSize:{type:"string",default:"cover"},bgImgPosition:{type:"string",default:"center center"},bgImgAttachment:{type:"string",default:"scroll"},bgImgRepeat:{type:"string",default:"no-repeat"},overlay:{type:"string",default:""},overlaySecond:{type:"string",default:"#00B5E2"},overlayFirstOpacity:{type:"number",default:""},overlaySecondOpacity:{type:"number",default:""},overlayGradLoc:{type:"number",default:0},overlayGradLocSecond:{type:"number",default:100},overlayGradType:{type:"string",default:"linear"},overlayGradAngle:{type:"number",default:180},overlayBgImg:{type:"string",default:""},overlayBgImgID:{type:"string",default:""},overlayBgImgSize:{type:"string",default:"cover"},overlayBgImgPosition:{type:"string",default:"center center"},overlayBgImgAttachment:{type:"string",default:"scroll"},overlayBgImgRepeat:{type:"string",default:"no-repeat"},overlayOpacity:{type:"number",default:30},overlayBlendMode:{type:"string",default:"none"},blockAlignment:{type:"string",default:"none"},align:{type:"string",default:"none"},verticalAlignment:{type:"string",default:"top"},topSep:{type:"string",default:"none"},topSepColor:{type:"string",default:"#ffffff"},topSepFlip:{type:"boolean",default:!1},topSepHeight:{type:"number",default:100},topSepHeightTab:{type:"number",default:""},topSepHeightMobile:{type:"number",default:""},bottomSep:{type:"string",default:"none"},bottomSepColor:{type:"string",default:"#ffffff"},bottomSepFlip:{type:"boolean",default:!1},bottomSepHeight:{type:"number",default:100},bottomSepWidth:{type:"number",default:100},bottomSepWidthTab:{type:"number",default:""},bottomSepWidthMobile:{type:"number",default:""},bottomSepHeightTab:{type:"number",default:""},bottomSepHeightMobile:{type:"number",default:""},firstColumnWidth:{type:"number"},secondColumnWidth:{type:"number"},textColor:{type:"string",default:""},linkColor:{type:"string",default:""},linkHoverColor:{type:"string",default:""},tabletPadding:{type:"array",default:["","","",""]},topMarginT:{type:"number",default:""},bottomMarginT:{type:"number",default:""},marginUnit:{type:"string",default:"px"},minHeightUnit:{type:"string",default:"px"},maxWidthUnit:{type:"string",default:"px"},columnsUnlocked:{type:"boolean",default:!1},tabletBackground:{type:"array",default:[{enable:!1,bgColor:"",bgImg:"",bgImgID:"",bgImgSize:"cover",bgImgPosition:"center center",bgImgAttachment:"scroll",bgImgRepeat:"no-repeat",forceOverDesk:!1}]},tabletOverlay:{type:"array",default:[{enable:!1,currentOverlayTab:"normal",overlay:"",overlaySecond:"#00B5E2",overlayGradLoc:0,overlayGradLocSecond:100,overlayGradType:"linear",overlayGradAngle:180,overlayBgImg:"",overlayBgImgID:"",overlayBgImgSize:"cover",overlayBgImgPosition:"center center",overlayBgImgAttachment:"scroll",overlayBgImgRepeat:"no-repeat",overlayOpacity:30,overlayBlendMod:"none"}]},mobileBackground:{type:"array",default:[{enable:!1,bgColor:"",bgImg:"",bgImgID:"",bgImgSize:"cover",bgImgPosition:"center center",bgImgAttachment:"scroll",bgImgRepeat:"no-repeat",forceOverDesk:!1}]},mobileOverlay:{type:"array",default:[{enable:!1,currentOverlayTab:"normal",overlay:"",overlaySecond:"#00B5E2",overlayGradLoc:0,overlayGradLocSecond:100,overlayGradType:"linear",overlayGradAngle:180,overlayBgImg:"",overlayBgImgID:"",overlayBgImgSize:"cover",overlayBgImgPosition:"center center",overlayBgImgAttachment:"scroll",overlayBgImgRepeat:"no-repeat",overlayOpacity:30,overlayBlendMod:"none"}]},columnsInnerHeight:{type:"boolean",default:!1},topSepWidth:{type:"number",default:""},topSepWidthTablet:{type:"number",default:""},topSepWidthMobile:{type:"number",default:""},backgroundInline:{type:"boolean",default:!1},backgroundSettingTab:{type:"string",default:"normal"},backgroundSliderCount:{type:"number",default:1},backgroundSlider:{type:"array",default:[{bgColor:"",bgImg:"",bgImgID:""}]},backgroundSliderSettings:{type:"array",default:[{arrowStyle:"none",dotStyle:"dark",autoPlay:!0,speed:7e3,fade:!0,tranSpeed:400}]},backgroundVideoType:{type:"string",default:"local"},backgroundVideo:{type:"array",default:[{youTube:"",local:"",localID:"",vimeo:"",ratio:"16/9",btns:!1,loop:!0,mute:!0}]},zIndex:{type:"number",default:""},paddingUnit:{type:"string",default:"px"},inheritMaxWidth:{type:"boolean",default:!1},noCustomDefaults:{type:"boolean",default:!1},isPrebuiltModal:{type:"boolean",default:!1},minHeightTablet:{type:"number",default:""},minHeightMobile:{type:"number",default:""},bgColorClass:{type:"string",default:""},vsdesk:{type:"boolean",default:!1},vstablet:{type:"boolean",default:!1},vsmobile:{type:"boolean",default:!1},loggedIn:{type:"boolean",default:!1},loggedInUser:{type:"array"},loggedInShow:{type:"array"},loggedOut:{type:"boolean",default:!1},borderWidth:{type:"array",default:["","","",""]},tabletBorderWidth:{type:"array",default:["","","",""]},mobileBorderWidth:{type:"array",default:["","","",""]},borderRadius:{type:"array",default:["","","",""]},tabletBorderRadius:{type:"array",default:["","","",""]},mobileBorderRadius:{type:"array",default:["","","",""]},border:{type:"string",default:""},tabletBorder:{type:"string",default:""},mobileBorder:{type:"string",default:""},responsiveMaxWidth:{type:"array",default:["",""]},kadenceBlockCSS:{type:"string",default:""},kadenceDynamic:{type:"object"},kadenceConditional:{type:"object"}},supports:{anchor:!0,ktdynamic:!0,kbcss:!0},save:({attributes:e})=>{const{columns:t,blockAlignment:n,inheritMaxWidth:r,align:a,mobileLayout:l,currentOverlayTab:i,overlayBgImg:s,overlay:c,colLayout:d,tabletLayout:u,collapseOrder:p,uniqueID:g,columnGutter:m,collapseGutter:h,bgColor:b,bgImg:f,verticalAlignment:v,htmlTag:y,bottomSep:k,bottomSepColor:x,topSep:w,topSepColor:_,firstColumnWidth:S,secondColumnWidth:j,overlayBgImgAttachment:C,bgImgAttachment:I,columnsInnerHeight:O,backgroundInline:M,backgroundSettingTab:P,backgroundSliderCount:T,backgroundSliderSettings:E,backgroundSlider:A,bgImgSize:N,bgImgPosition:L,bgImgRepeat:R,backgroundVideoType:B,backgroundVideo:D,bgColorClass:F,vsdesk:z,vstablet:H,vsmobile:$}=e;let V,W;"ct"===k?V=(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===k?V=(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===k?V=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})]}):"ctdi"===k?V=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})]}):"sltl"===k?V=(0,Bo.jsx)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===k?V=(0,Bo.jsx)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===k?V=(0,Bo.jsx)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===k?V=(0,Bo.jsx)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===k?V=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===k?V=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===k?V=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===k?V=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===k?V=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===k?V=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===k?V=(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===k?V=(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===k?V=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})]}):"wavesi"===k?V=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})]}):"mtns"===k?V=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})]}):"littri"===k?V=(0,Bo.jsx)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===k?V=(0,Bo.jsx)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}):"threelevels"===k?V=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,Bo.jsx)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,Bo.jsx)("path",{d:"M0 95l1000-40.887V100H0v-5z"})]}):"threelevelsi"===k&&(V=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{style:{opacity:.33},d:"M1000 95L0 0v100h1000v-5z"}),(0,Bo.jsx)("path",{style:{opacity:.66},d:"M1000 95L0 27.056V100h1000v-5z"}),(0,Bo.jsx)("path",{d:"M1000 95L0 54.113V100h1000v-5z"})]})),"ct"===w?W=(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===w?W=(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===w?W=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})]}):"ctdi"===w?W=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})]}):"sltl"===w?W=(0,Bo.jsx)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===w?W=(0,Bo.jsx)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===w?W=(0,Bo.jsx)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===w?W=(0,Bo.jsx)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===w?W=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===w?W=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===w?W=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===w?W=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===w?W=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===w?W=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===w?W=(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===w?W=(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===w?W=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})]}):"wavesi"===w?W=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})]}):"mtns"===w?W=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})]}):"littri"===w?W=(0,Bo.jsx)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===w?W=(0,Bo.jsx)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}):"threelevels"===w?W=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,Bo.jsx)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,Bo.jsx)("path",{d:"M0 95l1000-40.887V100H0v-5z"})]}):"threelevelsi"===w&&(W=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{style:{opacity:.33},d:"M1000 95L0 0v100h1000v-5z"}),(0,Bo.jsx)("path",{style:{opacity:.66},d:"M1000 95L0 27.056V100h1000v-5z"}),(0,Bo.jsx)("path",{d:"M1000 95L0 54.113V100h1000v-5z"})]}));const U=!S||2!==t&&3!==t?"":" kt-custom-first-width-"+S,Z=!j||2!==t&&3!==t?"":" kt-custom-second-width-"+j,G=j&&S&&3===t?" kt-custom-third-width-"+Math.round(10*(100-(parseFloat(S)+parseFloat(j))))/10:"",q=d||"equal",K=u||"inherit",J=y||"div",Y=l||"inherit",X=g||"notset",Q=i&&"grad"===i?"gradient":"normal",ee=Io()({[`align${a||"none"}`]:!0,"kvs-lg-false":"undefined"!==z&&z,"kvs-md-false":"undefined"!==H&&H,"kvs-sm-false":"undefined"!==$&&$}),te=(0,Pr.getColorClassName)("background-color",F),ne=Io()("kt-row-layout-inner",{"kt-row-has-bg":b||f||c||s,["kt-layout-id"+X]:X,"kt-jarallax":f&&"parallax"===I,[te]:te}),oe=Io()({"kt-row-column-wrap":!0,[`kt-has-${t}-columns`]:t,[`kt-gutter-${m}`]:m,[`kt-v-gutter-${h||"default"}`]:!0,[`kt-row-valign-${v}`]:v,[`kt-row-layout-${q}`]:q,[`kt-tab-layout-${K}`]:K,[`kt-m-colapse-${p}`]:p,[`kt-mobile-layout-${Y}`]:Y,[U]:U,[Z]:Z,[G]:G,"kt-inner-column-height-full":void 0!==O&&!0===O,"kb-theme-content-width":r});return(0,Bo.jsx)(J,{className:ee,children:(0,Bo.jsxs)("div",{id:`kt-layout-id${g}`,className:ne,style:{backgroundImage:"slider"!==P&&"video"!==P&&M&&void 0!==f&&""!==f?"url("+f+")":void 0},children:["slider"===P&&(()=>{let e;return e=void 0===E||void 0!==E&&void 0===E[0]?[{arrowStyle:"none",dotStyle:"dark",autoPlay:!0,speed:7e3,fade:!0,tranSpeed:400}]:E,(0,Bo.jsx)("div",{className:`kt-blocks-carousel kb-blocks-bg-slider kt-carousel-container-dotstyle-${e[0].dotStyle}`,children:(0,Bo.jsx)("div",{className:`kt-blocks-carousel-init kb-blocks-bg-slider-init kt-carousel-arrowstyle-${e[0].arrowStyle} kt-carousel-dotstyle-${e[0].dotStyle}`,"data-slider-anim-speed":e[0].tranSpeed,"data-slider-type":"slider","data-slider-scroll":"1","data-slider-arrows":"none"!==e[0].arrowStyle,"data-slider-fade":e[0].fade,"data-slider-dots":"none"!==e[0].dotStyle,"data-slider-hover-pause":"false","data-slider-auto":e[0].autoPlay,"data-slider-speed":e[0].speed,children:(0,jo.times)(void 0!==T?T:1,e=>(e=>{let t;return t=void 0===A||void 0!==A&&void 0===A[0]?[{bgColor:"",bgImg:"",bgImgID:""}]:A,(0,Bo.jsx)("div",{className:"kb-bg-slide-contain",children:(0,Bo.jsx)("div",{className:`kb-bg-slide kb-bg-slide-${e}`,style:{backgroundColor:t[e]&&""!==t[e].bgColor?(0,Mo.KadenceColorOutput)(t[e].bgColor):void 0,backgroundImage:t[e]&&""!==t[e].bgImg?'url("'+t[e].bgImg+'")':void 0,backgroundSize:N||void 0,backgroundPosition:L||void 0,backgroundRepeat:R||void 0}})})})(e))})})})(),"video"===P&&(0,Bo.jsx)("div",{className:"kb-blocks-bg-video-container",children:(void 0===B||""===B||"local"===B)&&(()=>{const e=void 0!==D&&void 0!==D[0]&&void 0!==D[0].local?D:[{youTube:"",local:"",localID:"",vimeo:"",ratio:"16/9",btns:!1,loop:!0,mute:!0}];return(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("video",{className:"kb-blocks-bg-video",poster:void 0!==f&&""!==f?f:void 0,playsinline:"",autoplay:"",muted:!1!==e[0].mute&&"",loop:!1!==e[0].loop&&"",src:e[0].local}),!0===e[0].btns&&(0,Bo.jsxs)("div",{className:"kb-background-video-buttons-wrapper kb-background-video-buttons-html5",children:[(0,Bo.jsx)("button",{className:"kb-background-video-play kb-toggle-video-btn","aria-label":(0,o.__)("Play","kadence-blocks"),"aria-hidden":"true",style:"display: none;",children:(0,Bo.jsx)("svg",{viewBox:"0 0 448 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"})})}),(0,Bo.jsx)("button",{className:"kb-background-video-pause kb-toggle-video-btn","aria-label":(0,o.__)("Pause","kadence-blocks"),"aria-hidden":"false",children:(0,Bo.jsx)("svg",{viewBox:"0 0 448 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"})})}),!1===e[0].mute&&(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("button",{className:"kb-background-video-unmute kb-toggle-video-btn","aria-label":(0,o.__)("Unmute","kadence-blocks"),"aria-hidden":"true",style:"display: none;",children:(0,Bo.jsx)("svg",{viewBox:"0 0 256 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M256 88.017v335.964c0 21.438-25.943 31.998-40.971 16.971L126.059 352H24c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h102.059l88.971-88.954c15.01-15.01 40.97-4.49 40.97 16.971z"})})}),(0,Bo.jsx)("button",{className:"kb-background-video-mute kb-toggle-video-btn","aria-label":(0,o.__)("Mute","kadence-blocks"),"aria-hidden":"false",children:(0,Bo.jsx)("svg",{viewBox:"0 0 576 512",height:"16",width:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M256 88.017v335.964c0 21.438-25.943 31.998-40.971 16.971L126.059 352H24c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h102.059l88.971-88.954c15.01-15.01 40.97-4.49 40.97 16.971zm182.056-77.876C422.982.92 403.283 5.668 394.061 20.745c-9.221 15.077-4.473 34.774 10.604 43.995C468.967 104.063 512 174.983 512 256c0 73.431-36.077 142.292-96.507 184.206-14.522 10.072-18.129 30.01-8.057 44.532 10.076 14.528 30.016 18.126 44.531 8.057C529.633 438.927 576 350.406 576 256c0-103.244-54.579-194.877-137.944-245.859zM480 256c0-68.547-36.15-129.777-91.957-163.901-15.076-9.22-34.774-4.471-43.994 10.607-9.22 15.078-4.471 34.774 10.607 43.994C393.067 170.188 416 211.048 416 256c0 41.964-20.62 81.319-55.158 105.276-14.521 10.073-18.128 30.01-8.056 44.532 6.216 8.96 16.185 13.765 26.322 13.765a31.862 31.862 0 0 0 18.21-5.709C449.091 377.953 480 318.938 480 256zm-96 0c0-33.717-17.186-64.35-45.972-81.944-15.079-9.214-34.775-4.463-43.992 10.616s-4.464 34.775 10.615 43.992C314.263 234.538 320 244.757 320 256a32.056 32.056 0 0 1-13.802 26.332c-14.524 10.069-18.136 30.006-8.067 44.53 10.07 14.525 30.008 18.136 44.53 8.067C368.546 316.983 384 287.478 384 256z"})})})]})]})]})})()}),(c||s)&&(0,Bo.jsx)("div",{className:`kt-row-layout-overlay kt-row-overlay-${Q}${s&&"gradient"!==Q&&"parallax"===C?" kt-jarallax":""}`}),w&&"none"!==w&&""!==w&&(0,Bo.jsx)("div",{className:`kt-row-layout-top-sep kt-row-sep-type-${w}`,children:(0,Bo.jsx)("svg",{style:{fill:(0,Mo.KadenceColorOutput)(_)},viewBox:"0 0 1000 100",preserveAspectRatio:"none",children:W})}),(0,Bo.jsx)("div",{className:oe,children:(0,Bo.jsx)(Pr.InnerBlocks.Content,{})}),k&&"none"!==k&&""!==k&&(0,Bo.jsx)("div",{className:`kt-row-layout-bottom-sep kt-row-sep-type-${k}`,children:(0,Bo.jsx)("svg",{style:{fill:(0,Mo.KadenceColorOutput)(x)},viewBox:"0 0 1000 100",preserveAspectRatio:"none",children:V})})]})})}},Mh={attributes:{uniqueID:{type:"string",default:""},columns:{type:"number",default:2},mobileLayout:{type:"string",default:"row"},tabletLayout:{type:"string",default:"inherit"},collapseOrder:{type:"string",default:"left-to-right"},collapseGutter:{type:"string",default:"default"},columnGutter:{type:"string",default:"default"},colLayout:{type:"string",default:""},currentTab:{type:"string",default:"desk"},currentOverlayTab:{type:"string",default:"normal"},htmlTag:{type:"string",default:"div"},minHeight:{type:"number",default:0},maxWidth:{type:"number",default:""},topPadding:{type:"number",default:25},bottomPadding:{type:"number",default:25},leftPadding:{type:"number",default:""},rightPadding:{type:"number",default:""},topPaddingM:{type:"number",default:""},bottomPaddingM:{type:"number",default:""},leftPaddingM:{type:"number",default:""},rightPaddingM:{type:"number",default:""},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},topMarginM:{type:"number",default:""},bottomMarginM:{type:"number",default:""},bgColor:{type:"string",default:""},bgImg:{type:"string",default:""},bgImgID:{type:"string",default:""},bgImgSize:{type:"string",default:"cover"},bgImgPosition:{type:"string",default:"center center"},bgImgAttachment:{type:"string",default:"scroll"},bgImgRepeat:{type:"string",default:"no-repeat"},overlay:{type:"string",default:""},overlaySecond:{type:"string",default:"#00B5E2"},overlayFirstOpacity:{type:"number",default:""},overlaySecondOpacity:{type:"number",default:""},overlayGradLoc:{type:"number",default:0},overlayGradLocSecond:{type:"number",default:100},overlayGradType:{type:"string",default:"linear"},overlayGradAngle:{type:"number",default:180},overlayBgImg:{type:"string",default:""},overlayBgImgID:{type:"string",default:""},overlayBgImgSize:{type:"string",default:"cover"},overlayBgImgPosition:{type:"string",default:"center center"},overlayBgImgAttachment:{type:"string",default:"scroll"},overlayBgImgRepeat:{type:"string",default:"no-repeat"},overlayOpacity:{type:"number",default:30},overlayBlendMode:{type:"string",default:"none"},blockAlignment:{type:"string",default:"none"},verticalAlignment:{type:"string",default:"top"},topSep:{type:"string",default:"none"},topSepColor:{type:"string",default:"#ffffff"},topSepFlip:{type:"boolean",default:!1},topSepHeight:{type:"number",default:100},topSepHeightTab:{type:"number",default:""},topSepHeightMobile:{type:"number",default:""},bottomSep:{type:"string",default:"none"},bottomSepColor:{type:"string",default:"#ffffff"},bottomSepFlip:{type:"boolean",default:!1},bottomSepHeight:{type:"number",default:100},bottomSepWidth:{type:"number",default:100},bottomSepWidthTab:{type:"number",default:""},bottomSepWidthMobile:{type:"number",default:""},bottomSepHeightTab:{type:"number",default:""},bottomSepHeightMobile:{type:"number",default:""},firstColumnWidth:{type:"number"},secondColumnWidth:{type:"number"},textColor:{type:"string",default:""},linkColor:{type:"string",default:""},linkHoverColor:{type:"string",default:""},tabletPadding:{type:"array",default:["","","",""]},topMarginT:{type:"number",default:""},bottomMarginT:{type:"number",default:""},marginUnit:{type:"string",default:"px"},minHeightUnit:{type:"string",default:"px"},maxWidthUnit:{type:"string",default:"px"},columnsUnlocked:{type:"boolean",default:!1},tabletBackground:{type:"array",default:[{enable:!1,bgColor:"",bgImg:"",bgImgID:"",bgImgSize:"cover",bgImgPosition:"center center",bgImgAttachment:"scroll",bgImgRepeat:"no-repeat",forceOverDesk:!1}]},tabletOverlay:{type:"array",default:[{enable:!1,currentOverlayTab:"normal",overlay:"",overlaySecond:"#00B5E2",overlayGradLoc:0,overlayGradLocSecond:100,overlayGradType:"linear",overlayGradAngle:180,overlayBgImg:"",overlayBgImgID:"",overlayBgImgSize:"cover",overlayBgImgPosition:"center center",overlayBgImgAttachment:"scroll",overlayBgImgRepeat:"no-repeat",overlayOpacity:30,overlayBlendMod:"none"}]},mobileBackground:{type:"array",default:[{enable:!1,bgColor:"",bgImg:"",bgImgID:"",bgImgSize:"cover",bgImgPosition:"center center",bgImgAttachment:"scroll",bgImgRepeat:"no-repeat",forceOverDesk:!1}]},mobileOverlay:{type:"array",default:[{enable:!1,currentOverlayTab:"normal",overlay:"",overlaySecond:"#00B5E2",overlayGradLoc:0,overlayGradLocSecond:100,overlayGradType:"linear",overlayGradAngle:180,overlayBgImg:"",overlayBgImgID:"",overlayBgImgSize:"cover",overlayBgImgPosition:"center center",overlayBgImgAttachment:"scroll",overlayBgImgRepeat:"no-repeat",overlayOpacity:30,overlayBlendMod:"none"}]},columnsInnerHeight:{type:"boolean",default:!1},topSepWidth:{type:"number",default:""},topSepWidthTablet:{type:"number",default:""},topSepWidthMobile:{type:"number",default:""},backgroundInline:{type:"boolean",default:!1},backgroundSettingTab:{type:"string",default:"normal"},backgroundSliderCount:{type:"number",default:1},backgroundSlider:{type:"array",default:[{bgColor:"",bgImg:"",bgImgID:""}]},backgroundSliderSettings:{type:"array",default:[{arrowStyle:"none",dotStyle:"dark",autoPlay:!0,speed:7e3,fade:!0,tranSpeed:400}]},backgroundVideoType:{type:"string",default:"local"},backgroundVideo:{type:"array",default:[{youTube:"",local:"",localID:"",vimeo:"",ratio:"16/9",btns:!1,loop:!0,mute:!0}]},zIndex:{type:"number",default:""},paddingUnit:{type:"string",default:"px"},noCustomDefaults:{type:"boolean",default:!1}},supports:{anchor:!0,ktdynamic:!0,kbcss:!0},migrate(e){const t=e.blockAlignment?e.blockAlignment:void 0;return e.blockAlignment&&delete e.blockAlignment,{...e,align:t||void 0}},save:({attributes:e})=>{const{columns:t,blockAlignment:n,mobileLayout:r,currentOverlayTab:a,overlayBgImg:l,overlay:i,colLayout:s,tabletLayout:c,collapseOrder:d,uniqueID:u,columnGutter:p,collapseGutter:g,bgColor:m,bgImg:h,verticalAlignment:b,htmlTag:f,bottomSep:v,bottomSepColor:y,topSep:k,topSepColor:x,firstColumnWidth:w,secondColumnWidth:_,overlayBgImgAttachment:S,bgImgAttachment:j,columnsInnerHeight:C,backgroundInline:I,backgroundSettingTab:O,backgroundSliderCount:M,backgroundSliderSettings:P,backgroundSlider:T,bgImgSize:E,bgImgPosition:A,bgImgRepeat:N,backgroundVideoType:L,backgroundVideo:R}=e;let B,D;"ct"===v?B=(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===v?B=(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===v?B=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})]}):"ctdi"===v?B=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})]}):"sltl"===v?B=(0,Bo.jsx)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===v?B=(0,Bo.jsx)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===v?B=(0,Bo.jsx)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===v?B=(0,Bo.jsx)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===v?B=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===v?B=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===v?B=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===v?B=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===v?B=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===v?B=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===v?B=(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===v?B=(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===v?B=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})]}):"wavesi"===v?B=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})]}):"mtns"===v?B=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})]}):"littri"===v?B=(0,Bo.jsx)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===v?B=(0,Bo.jsx)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}):"threelevels"===v&&(B=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,Bo.jsx)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,Bo.jsx)("path",{d:"M0 95l1000-40.887V100H0v-5z"})]})),"ct"===k?D=(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===k?D=(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===k?D=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})]}):"ctdi"===k?D=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})]}):"sltl"===k?D=(0,Bo.jsx)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===k?D=(0,Bo.jsx)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===k?D=(0,Bo.jsx)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===k?D=(0,Bo.jsx)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===k?D=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===k?D=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===k?D=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===k?D=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===k?D=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===k?D=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===k?D=(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===k?D=(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===k?D=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})]}):"wavesi"===k?D=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})]}):"mtns"===k?D=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})]}):"littri"===k?D=(0,Bo.jsx)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===k&&(D=(0,Bo.jsx)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}));const F=!w||2!==t&&3!==t?"":" kt-custom-first-width-"+w,z=!_||2!==t&&3!==t?"":" kt-custom-second-width-"+_,H=_&&w&&3===t?" kt-custom-third-width-"+Math.round(10*(100-(parseFloat(w)+parseFloat(_))))/10:"",$=s||"equal",V=c||"inherit",W=f||"div",U=r||"inherit",Z=u||"notset",G=m||h||i||l?"kt-row-has-bg":"",q=a&&"grad"===a?"gradient":"normal",K=Io()(`align${n||"none"}`),J=Io()(`kt-row-layout-inner ${G} kt-layout-id${Z}${h&&"parallax"===j?" kt-jarallax":""}`),Y=Io()(`kt-row-column-wrap kt-has-${t}-columns kt-gutter-${p} kt-v-gutter-${g||"default"} kt-row-valign-${b} kt-row-layout-${$} kt-tab-layout-${V} kt-m-colapse-${d} kt-mobile-layout-${U}${F}${z}${H}${void 0!==C&&!0===C?" kt-inner-column-height-full":""}`);return(0,Bo.jsx)(W,{className:K,children:(0,Bo.jsxs)("div",{id:`kt-layout-id${u}`,className:J,style:{backgroundImage:"slider"!==O&&"video"!==O&&I&&void 0!==h&&""!==h?"url("+h+")":void 0},children:["slider"===O&&(()=>{let e;return e=void 0===P||void 0!==P&&void 0===P[0]?[{arrowStyle:"none",dotStyle:"dark",autoPlay:!0,speed:7e3,fade:!0,tranSpeed:400}]:P,(0,Bo.jsx)("div",{className:`kt-blocks-carousel kb-blocks-bg-slider kt-carousel-container-dotstyle-${e[0].dotStyle}`,children:(0,Bo.jsx)("div",{className:`kt-blocks-carousel-init kb-blocks-bg-slider-init kt-carousel-arrowstyle-${e[0].arrowStyle} kt-carousel-dotstyle-${e[0].dotStyle}`,"data-slider-anim-speed":e[0].tranSpeed,"data-slider-type":"slider","data-slider-scroll":"1","data-slider-arrows":"none"!==e[0].arrowStyle,"data-slider-fade":e[0].fade,"data-slider-dots":"none"!==e[0].dotStyle,"data-slider-hover-pause":"false","data-slider-auto":e[0].autoPlay,"data-slider-speed":e[0].speed,children:(0,jo.times)(void 0!==M?M:1,e=>(e=>{let t;return t=void 0===T||void 0!==T&&void 0===T[0]?[{bgColor:"",bgImg:"",bgImgID:""}]:T,(0,Bo.jsx)("div",{className:"kb-bg-slide-contain",children:(0,Bo.jsx)("div",{className:`kb-bg-slide kb-bg-slide-${e}`,style:{backgroundColor:t[e]&&""!==t[e].bgColor?t[e].bgColor:void 0,backgroundImage:t[e]&&""!==t[e].bgImg?'url("'+t[e].bgImg+'")':void 0,backgroundSize:E||void 0,backgroundPosition:A||void 0,backgroundRepeat:N||void 0}})})})(e))})})})(),"video"===O&&(0,Bo.jsx)("div",{className:"kb-blocks-bg-video-container",children:(void 0===L||""===L||"local"===L)&&(()=>{const e=void 0!==R&&void 0!==R[0]&&void 0!==R[0].local?R:[{youTube:"",local:"",localID:"",vimeo:"",ratio:"16/9",btns:!1,loop:!0,mute:!0}];return(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("video",{className:"kb-blocks-bg-video",poster:void 0!==h&&""!==h?h:void 0,playsinline:"",autoplay:"",muted:!1!==e[0].mute&&"",loop:!1!==e[0].loop&&"",src:e[0].local}),!0===e[0].btns&&(0,Bo.jsxs)("div",{className:"kb-background-video-buttons-wrapper kb-background-video-buttons-html5",children:[(0,Bo.jsx)("button",{className:"kb-background-video-play kb-toggle-video-btn","aria-label":(0,o.__)("Play","kadence-blocks"),"aria-hidden":"true",style:"display: none;",children:(0,Bo.jsx)("svg",{viewBox:"0 0 448 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"})})}),(0,Bo.jsx)("button",{className:"kb-background-video-pause kb-toggle-video-btn","aria-label":(0,o.__)("Pause","kadence-blocks"),"aria-hidden":"false",children:(0,Bo.jsx)("svg",{viewBox:"0 0 448 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"})})}),!1===e[0].mute&&(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("button",{className:"kb-background-video-unmute kb-toggle-video-btn","aria-label":(0,o.__)("Unmute","kadence-blocks"),"aria-hidden":"true",style:"display: none;",children:(0,Bo.jsx)("svg",{viewBox:"0 0 256 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M256 88.017v335.964c0 21.438-25.943 31.998-40.971 16.971L126.059 352H24c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h102.059l88.971-88.954c15.01-15.01 40.97-4.49 40.97 16.971z"})})}),(0,Bo.jsx)("button",{className:"kb-background-video-mute kb-toggle-video-btn","aria-label":(0,o.__)("Mute","kadence-blocks"),"aria-hidden":"false",children:(0,Bo.jsx)("svg",{viewBox:"0 0 576 512",height:"16",width:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:(0,Bo.jsx)("path",{d:"M256 88.017v335.964c0 21.438-25.943 31.998-40.971 16.971L126.059 352H24c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h102.059l88.971-88.954c15.01-15.01 40.97-4.49 40.97 16.971zm182.056-77.876C422.982.92 403.283 5.668 394.061 20.745c-9.221 15.077-4.473 34.774 10.604 43.995C468.967 104.063 512 174.983 512 256c0 73.431-36.077 142.292-96.507 184.206-14.522 10.072-18.129 30.01-8.057 44.532 10.076 14.528 30.016 18.126 44.531 8.057C529.633 438.927 576 350.406 576 256c0-103.244-54.579-194.877-137.944-245.859zM480 256c0-68.547-36.15-129.777-91.957-163.901-15.076-9.22-34.774-4.471-43.994 10.607-9.22 15.078-4.471 34.774 10.607 43.994C393.067 170.188 416 211.048 416 256c0 41.964-20.62 81.319-55.158 105.276-14.521 10.073-18.128 30.01-8.056 44.532 6.216 8.96 16.185 13.765 26.322 13.765a31.862 31.862 0 0 0 18.21-5.709C449.091 377.953 480 318.938 480 256zm-96 0c0-33.717-17.186-64.35-45.972-81.944-15.079-9.214-34.775-4.463-43.992 10.616s-4.464 34.775 10.615 43.992C314.263 234.538 320 244.757 320 256a32.056 32.056 0 0 1-13.802 26.332c-14.524 10.069-18.136 30.006-8.067 44.53 10.07 14.525 30.008 18.136 44.53 8.067C368.546 316.983 384 287.478 384 256z"})})})]})]})]})})()}),(i||l)&&(0,Bo.jsx)("div",{className:`kt-row-layout-overlay kt-row-overlay-${q}${l&&"gradient"!==q&&"parallax"===S?" kt-jarallax":""}`}),k&&"none"!==k&&""!==k&&(0,Bo.jsx)("div",{className:`kt-row-layout-top-sep kt-row-sep-type-${k}`,children:(0,Bo.jsx)("svg",{style:{fill:x},viewBox:"0 0 1000 100",preserveAspectRatio:"none",children:D})}),(0,Bo.jsx)("div",{className:Y,children:(0,Bo.jsx)(Pr.InnerBlocks.Content,{})}),v&&"none"!==v&&""!==v&&(0,Bo.jsx)("div",{className:`kt-row-layout-bottom-sep kt-row-sep-type-${v}`,children:(0,Bo.jsx)("svg",{style:{fill:y},viewBox:"0 0 1000 100",preserveAspectRatio:"none",children:B})})]})})}},Ph=[Ih,Oh,Mh,{attributes:{uniqueID:{type:"string",default:""},columns:{type:"number",default:2},mobileLayout:{type:"string",default:"row"},tabletLayout:{type:"string",default:"inherit"},collapseOrder:{type:"string",default:"left-to-right"},columnGutter:{type:"string",default:"default"},colLayout:{type:"string",default:""},currentTab:{type:"string",default:"desk"},currentOverlayTab:{type:"string",default:"normal"},htmlTag:{type:"string",default:"div"},minHeight:{type:"number",default:0},maxWidth:{type:"number",default:""},topPadding:{type:"number",default:25},bottomPadding:{type:"number",default:25},leftPadding:{type:"number",default:""},rightPadding:{type:"number",default:""},topPaddingM:{type:"number",default:""},bottomPaddingM:{type:"number",default:""},leftPaddingM:{type:"number",default:""},rightPaddingM:{type:"number",default:""},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},topMarginM:{type:"number",default:""},bottomMarginM:{type:"number",default:""},bgColor:{type:"string",default:""},bgImg:{type:"string",default:""},bgImgID:{type:"string",default:""},bgImgSize:{type:"string",default:"cover"},bgImgPosition:{type:"string",default:"center center"},bgImgAttachment:{type:"string",default:"scroll"},bgImgRepeat:{type:"string",default:"no-repeat"},overlay:{type:"string",default:""},overlaySecond:{type:"string",default:"#00B5E2"},overlayGradLoc:{type:"number",default:0},overlayGradLocSecond:{type:"number",default:100},overlayGradType:{type:"string",default:"linear"},overlayGradAngle:{type:"number",default:180},overlayBgImg:{type:"string",default:""},overlayBgImgID:{type:"string",default:""},overlayBgImgSize:{type:"string",default:"cover"},overlayBgImgPosition:{type:"string",default:"center center"},overlayBgImgAttachment:{type:"string",default:"scroll"},overlayBgImgRepeat:{type:"string",default:"no-repeat"},overlayOpacity:{type:"number",default:30},overlayBlendMode:{type:"string",default:"none"},blockAlignment:{type:"string",default:"none"},verticalAlignment:{type:"string",default:"top"},topSep:{type:"string",default:"none"},topSepColor:{type:"string",default:"#ffffff"},topSepFlip:{type:"boolean",default:!1},topSepHeight:{type:"number",default:100},topSepHeightTab:{type:"number",default:""},topSepHeightMobile:{type:"number",default:""},bottomSep:{type:"string",default:"none"},bottomSepColor:{type:"string",default:"#ffffff"},bottomSepFlip:{type:"boolean",default:!1},bottomSepHeight:{type:"number",default:100},bottomSepWidth:{type:"number",default:100},bottomSepWidthTab:{type:"number",default:""},bottomSepWidthMobile:{type:"number",default:""},bottomSepHeightTab:{type:"number",default:""},bottomSepHeightMobile:{type:"number",default:""},firstColumnWidth:{type:"number"},secondColumnWidth:{type:"number"},textColor:{type:"string",default:""},linkColor:{type:"string",default:""},linkHoverColor:{type:"string",default:""}},save:({attributes:e})=>{const{columns:t,blockAlignment:n,mobileLayout:o,currentOverlayTab:r,overlayBgImg:a,overlay:l,colLayout:i,tabletLayout:s,collapseOrder:c,uniqueID:d,columnGutter:u,bgColor:p,bgImg:g,verticalAlignment:m,htmlTag:h,bottomSep:b,bottomSepColor:f,topSep:v,topSepColor:y,firstColumnWidth:k}=e;let x,w;"ct"===b?x=(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===b?x=(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===b?x=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})]}):"ctdi"===b?x=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})]}):"sltl"===b?x=(0,Bo.jsx)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===b?x=(0,Bo.jsx)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===b?x=(0,Bo.jsx)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===b?x=(0,Bo.jsx)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===b?x=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===b?x=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===b?x=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===b?x=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===b?x=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===b?x=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===b?x=(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===b?x=(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===b?x=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})]}):"wavesi"===b?x=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})]}):"mtns"===b?x=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})]}):"littri"===b?x=(0,Bo.jsx)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===b&&(x=(0,Bo.jsx)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"})),"ct"===v?w=(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===v?w=(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===v?w=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})]}):"ctdi"===v?w=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})]}):"sltl"===v?w=(0,Bo.jsx)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===v?w=(0,Bo.jsx)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===v?w=(0,Bo.jsx)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===v?w=(0,Bo.jsx)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===v?w=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===v?w=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===v?w=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===v?w=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===v?w=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===v?w=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===v?w=(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===v?w=(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===v?w=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})]}):"wavesi"===v?w=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})]}):"mtns"===v?w=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})]}):"littri"===v?w=(0,Bo.jsx)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===v&&(w=(0,Bo.jsx)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}));const _=k&&2===t?" kt-custom-first-width-"+k:"",S=i||"equal",j=s||"inherit",C=h||"div",I=o||"inherit",O=d||"notset",M=p||g||l||a?"kt-row-has-bg":"",P=r&&"grad"===r?"gradient":"normal",T=Io()(`align${n}`),E=Io()(`kt-row-layout-inner ${M} kt-layout-id${O}`),A=Io()(`kt-row-column-wrap kt-has-${t}-columns kt-gutter-${u} kt-row-valign-${m} kt-row-layout-${S} kt-tab-layout-${j} kt-m-colapse-${c} kt-mobile-layout-${I}${_}`);return(0,Bo.jsx)(C,{className:T,children:(0,Bo.jsxs)("div",{id:`kt-layout-id${d}`,className:E,children:[(l||a)&&(0,Bo.jsx)("div",{className:`kt-row-layout-overlay kt-row-overlay-${P}`}),v&&"none"!==v&&""!==v&&(0,Bo.jsx)("div",{className:`kt-row-layout-top-sep kt-row-sep-type-${v}`,children:(0,Bo.jsx)("svg",{style:{fill:y},viewBox:"0 0 1000 100",preserveAspectRatio:"none",children:w})}),(0,Bo.jsx)("div",{className:A,children:(0,Bo.jsx)(Pr.InnerBlocks.Content,{})}),b&&"none"!==b&&""!==b&&(0,Bo.jsx)("div",{className:`kt-row-layout-bottom-sep kt-row-sep-type-${b}`,children:(0,Bo.jsx)("svg",{style:{fill:f},viewBox:"0 0 1000 100",preserveAspectRatio:"none",children:x})})]})})}},{attributes:{uniqueID:{type:"string",default:""},columns:{type:"number",default:2},mobileLayout:{type:"string",default:"row"},tabletLayout:{type:"string",default:"inherit"},collapseOrder:{type:"string",default:"left-to-right"},columnGutter:{type:"string",default:"default"},colLayout:{type:"string",default:""},currentTab:{type:"string",default:"desk"},currentOverlayTab:{type:"string",default:"normal"},htmlTag:{type:"string",default:"div"},minHeight:{type:"number",default:0},maxWidth:{type:"number",default:""},topPadding:{type:"number",default:25},bottomPadding:{type:"number",default:25},leftPadding:{type:"number",default:""},rightPadding:{type:"number",default:""},topPaddingM:{type:"number",default:""},bottomPaddingM:{type:"number",default:""},leftPaddingM:{type:"number",default:""},rightPaddingM:{type:"number",default:""},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},topMarginM:{type:"number",default:""},bottomMarginM:{type:"number",default:""},bgColor:{type:"string",default:""},bgImg:{type:"string",default:""},bgImgID:{type:"string",default:""},bgImgSize:{type:"string",default:"cover"},bgImgPosition:{type:"string",default:"center center"},bgImgAttachment:{type:"string",default:"scroll"},bgImgRepeat:{type:"string",default:"no-repeat"},overlay:{type:"string",default:""},overlaySecond:{type:"string",default:"#00B5E2"},overlayGradLoc:{type:"number",default:0},overlayGradLocSecond:{type:"number",default:100},overlayGradType:{type:"string",default:"linear"},overlayGradAngle:{type:"number",default:180},overlayBgImg:{type:"string",default:""},overlayBgImgID:{type:"string",default:""},overlayBgImgSize:{type:"string",default:"cover"},overlayBgImgPosition:{type:"string",default:"center center"},overlayBgImgAttachment:{type:"string",default:"scroll"},overlayBgImgRepeat:{type:"string",default:"no-repeat"},overlayOpacity:{type:"number",default:30},overlayBlendMode:{type:"string",default:"none"},blockAlignment:{type:"string",default:"none"},verticalAlignment:{type:"string",default:"top"},topSep:{type:"string",default:"none"},topSepColor:{type:"string",default:"#ffffff"},topSepFlip:{type:"boolean",default:!1},topSepHeight:{type:"number",default:100},topSepHeightTab:{type:"number",default:""},topSepHeightMobile:{type:"number",default:""},bottomSep:{type:"string",default:"none"},bottomSepColor:{type:"string",default:"#ffffff"},bottomSepFlip:{type:"boolean",default:!1},bottomSepHeight:{type:"number",default:100},bottomSepWidth:{type:"number",default:100},bottomSepWidthTab:{type:"number",default:""},bottomSepWidthMobile:{type:"number",default:""},bottomSepHeightTab:{type:"number",default:""},bottomSepHeightMobile:{type:"number",default:""}},save:({attributes:e})=>{const{columns:t,blockAlignment:n,mobileLayout:o,currentOverlayTab:r,overlayBgImg:a,overlay:l,colLayout:i,tabletLayout:s,collapseOrder:c,uniqueID:d,columnGutter:u,bgColor:p,bgImg:g,verticalAlignment:m,htmlTag:h,bottomSep:b,bottomSepColor:f,topSep:v,topSepColor:y}=e;let k,x;"ct"===b?k=(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===b?k=(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===b?k=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})]}):"ctdi"===b?k=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})]}):"sltl"===b?k=(0,Bo.jsx)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===b?k=(0,Bo.jsx)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===b?k=(0,Bo.jsx)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===b?k=(0,Bo.jsx)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===b?k=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===b?k=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===b?k=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===b?k=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===b?k=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===b?k=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===b?k=(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===b?k=(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===b?k=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})]}):"wavesi"===b?k=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})]}):"mtns"===b?k=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})]}):"littri"===b?k=(0,Bo.jsx)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===b&&(k=(0,Bo.jsx)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"})),"ct"===v?x=(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===v?x=(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===v?x=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})]}):"ctdi"===v?x=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})]}):"sltl"===v?x=(0,Bo.jsx)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===v?x=(0,Bo.jsx)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===v?x=(0,Bo.jsx)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===v?x=(0,Bo.jsx)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===v?x=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===v?x=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===v?x=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===v?x=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===v?x=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===v?x=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===v?x=(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===v?x=(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===v?x=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})]}):"wavesi"===v?x=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})]}):"mtns"===v?x=(0,Bo.jsxs)(Ch,{children:[(0,Bo.jsx)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})]}):"littri"===v?x=(0,Bo.jsx)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===v&&(x=(0,Bo.jsx)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}));const w=i||"equal",_=s||"inherit",S=h||"div",j=o||"inherit",C=d||"notset",I=p||g||l||a?"kt-row-has-bg":"",O=r&&"grad"===r?"gradient":"normal",M=Io()(`align${n}`),P=Io()(`kt-row-layout-inner ${I} kt-layout-id${C}`),T=Io()(`kt-row-column-wrap kt-has-${t}-columns kt-gutter-${u} kt-row-valign-${m} kt-row-layout-${w} kt-tab-layout-${_} kt-m-colapse-${c} kt-mobile-layout-${j}`);return(0,Bo.jsx)(S,{className:M,children:(0,Bo.jsxs)("div",{id:`kt-layout-id${d}`,className:P,children:[(l||a)&&(0,Bo.jsx)("div",{className:`kt-row-layout-overlay kt-row-overlay-${O}`}),v&&"none"!==v&&(0,Bo.jsx)("div",{className:`kt-row-layout-top-sep kt-row-sep-type-${v}`,children:(0,Bo.jsx)("svg",{style:{fill:y},viewBox:"0 0 1000 100",preserveAspectRatio:"none",children:x})}),(0,Bo.jsx)("div",{className:T,children:(0,Bo.jsx)(Pr.InnerBlocks.Content,{})}),b&&"none"!==b&&(0,Bo.jsx)("div",{className:`kt-row-layout-bottom-sep kt-row-sep-type-${b}`,children:(0,Bo.jsx)("svg",{style:{fill:f},viewBox:"0 0 1000 100",preserveAspectRatio:"none",children:k})})]})})}}];(0,a.registerBlockType)("kadence/rowlayout",{...fh,title:(0,o._x)("Row Layout","block title","kadence-blocks"),description:(0,o.__)("A container to hold a grid layout.","kadence-blocks"),keywords:[(0,o.__)("column","kadence-blocks"),(0,o.__)("row/layout","kadence-blocks"),"KB"],icon:{src:r.blockRowIcon},edit:e=>{const{clientId:t,attributes:n,setAttributes:l,context:i,toggleSelection:s,isSelected:c,name:d}=e,{uniqueID:u,columns:p,mobileLayout:g,currentTab:m,colLayout:h,tabletLayout:b,columnGutter:f,collapseGutter:v,collapseOrder:y,bgColor:k,bgImg:x,verticalAlignment:w,overlayBgImg:_,overlay:S,htmlTag:j,minHeight:C,maxWidth:I,bottomSep:O,bottomSepColor:M,bottomSepHeight:P,bottomSepHeightMobile:T,bottomSepHeightTab:E,bottomSepWidth:A,bottomSepWidthMobile:N,bottomSepWidthTab:L,topSep:R,topSepColor:B,topSepHeight:D,topSepHeightMobile:F,topSepHeightTab:z,topSepWidth:H,topSepWidthMobile:$,topSepWidthTab:V,firstColumnWidth:W,firstColumnWidthTablet:U,firstColumnWidthMobile:Z,textColor:G,linkColor:q,linkHoverColor:K,tabletPadding:J,minHeightUnit:Y,maxWidthUnit:X,marginUnit:Q,columnsUnlocked:ee,columnsInnerHeight:te,zIndex:ne,inheritMaxWidth:oe,paddingUnit:re,align:ae,minHeightTablet:le,minHeightMobile:ie,gradient:se,overlayGradient:ce,vsdesk:de,vstablet:ue,vsmobile:pe,loggedInUser:ge,loggedIn:me,loggedOut:he,loggedInShow:be,rcpAccess:fe,rcpMembership:ve,rcpMembershipLevel:ye,borderRadius:ke,isPrebuiltModal:xe,responsiveMaxWidth:we,kadenceBlockCSS:_e,customGutter:Se,gutterType:je,padding:Ce,mobilePadding:Ie,margin:Oe,tabletMargin:Me,mobileMargin:Pe,customRowGutter:Te,rowType:Ee,tabletGutter:Ae,mobileGutter:Ne,mobileRowGutter:Le,tabletRowGutter:Re,templateLock:Be,inQueryBlock:De,breakoutLeft:Fe,breakoutRight:ze,topSepHeightUnit:He,bottomSepHeightUnit:$e,borderRadiusOverflow:Ve}=n;if(xe)return(0,Bo.jsx)(Vu,{clientId:t,open:!!xe,onlyModal:!!xe});const{isPreviewMode:We}=(0,Eo.useSelect)(e=>{const{__unstableIsPreviewMode:t}=e(Pr.store).getSettings();return{isPreviewMode:t}},[]),{previewDevice:Ue,innerItemCount:Ze}=(0,Eo.useSelect)(e=>({previewDevice:e("kadenceblocks/data").getPreviewDeviceType(),innerItemCount:e(Pr.store).getBlockCount(t)}),[t]),{updateBlockAttributes:Ge,replaceInnerBlocks:qe,insertBlock:Ke}=(0,Eo.useDispatch)(Pr.store),{getBlockOrder:Je,getBlocks:Ye,getBlock:Xe}=(0,Eo.useSelect)(e=>({getBlockOrder:e(Pr.store).getBlockOrder,getBlocks:e(Pr.store).getBlocks,getBlock:e(Pr.store).getBlock}),[]),Qe=(e,n)=>{let o=Ye(t);if(n>e){const t=o.length;for(let e=0;e<t;e++)o[e].attributes.id=e+1;o=[...o,...(0,jo.times)(n-e,t=>(0,a.createBlock)("kadence/column",{id:e+t+1}))]}else 1===e-n&&(o[o.length-1].innerBlocks.length||(o=(0,jo.dropRight)(o,e-n)));qe(t,o)};(0,Mo.uniqueIdHelper)(e),(0,Ao.useEffect)(()=>{(0,Mo.setBlockDefaults)("kadence/rowlayout",n);const e=(0,Mo.getInQueryBlock)(i,De);n.inQueryBlock!==e&&(n.inQueryBlock=e,l({inQueryBlock:e})),function(e,t){!function(e,t){const{columnGutter:n,customGutter:o}=e;"wide"===n?t({columnGutter:"custom",customGutter:[40,o&&o[1]?o[1]:"",o&&o[2]?o[2]:""]}):"narrow"===n?t({columnGutter:"custom",customGutter:[20,o&&o[1]?o[1]:"",o&&o[2]?o[2]:""]}):"widest"===n&&t({columnGutter:"custom",customGutter:[80,o&&o[1]?o[1]:"",o&&o[2]?o[2]:""]})}(e,t),function(e,t){const{topPadding:n,rightPadding:o,bottomPadding:r,leftPadding:a,topPaddingM:l,rightPaddingM:i,bottomPaddingM:s,leftPaddingM:c}=e;""===n&&""===o&&""===r&&""===a||t({padding:[""!==n?n:25,o,""!==r?r:25,a],topPadding:"",rightPadding:"",bottomPadding:"",leftPadding:""}),""===l&&""===i&&""===s&&""===c||t({mobilePadding:[l,i,s,c],topPaddingM:"",rightPaddingM:"",bottomPaddingM:"",leftPaddingM:""})}(e,t),function(e,t){const{topMargin:n,bottomMargin:o,topMarginT:r,bottomMarginT:a,topMarginM:l,bottomMarginM:i}=e;""===n&&""===o||t({margin:[""!==n?n:"","",""!==o?o:"",""],topMargin:"",bottomMargin:""}),""===r&&""===a||t({tabletMargin:[""!==r?r:"","",""!==a?a:"",""],topMarginT:"",bottomMarginT:""}),""===l&&""===i||t({mobileMargin:[""!==l?l:"","",""!==i?i:"",""],topMarginM:"",bottomMarginM:""})}(e,t),function(e,t){const{currentOverlayTab:n,overlayGradType:o,overlayBgImgPosition:r,overlay:a,overlayFirstOpacity:l,overlayGradLoc:i,overlaySecond:s,overlaySecondOpacity:c,overlayGradLocSecond:d,overlayGradAngle:u,tabletOverlay:p,mobileOverlay:g}=e;if("grad"===n){const e="radial"===o?`radial-gradient(ellipse at ${r}, ${a?(0,Mo.KadenceColorOutput)(a,void 0!==l&&""!==l?l:1):""} ${i}%, ${s?(0,Mo.KadenceColorOutput)(s,void 0!==c&&""!==c?c:1):""} ${d}%)`:`linear-gradient(${u}deg, ${a?(0,Mo.KadenceColorOutput)(a,void 0!==l&&""!==l?l:1):""} ${i}%, ${s?(0,Mo.KadenceColorOutput)(s,void 0!==c&&""!==c?c:1):""} ${d}%)`;t({overlayGradient:e,currentOverlayTab:"gradient"})}if(p&&p[0]&&p[0].currentOverlayTab&&"grad"===p[0].currentOverlayTab){const e=e=>{const n=p.map((t,n)=>(0===n&&(t={...t,...e}),t));t({tabletOverlay:n})};e({gradient:"radial"===p[0].overlayGradType?`radial-gradient(ellipse at ${p[0].overlayBgImgPosition}, ${p[0].overlay?(0,Mo.KadenceColorOutput)(p[0].overlay,void 0!==p[0].overlayFirstOpacity&&""!==p[0].overlayFirstOpacity?l:1):""} ${p[0].overlayGradLoc}%, ${p[0].overlaySecond?(0,Mo.KadenceColorOutput)(p[0].overlaySecond,void 0!==p[0].overlaySecondOpacity&&""!==p[0].overlaySecondOpacity?p[0].overlaySecondOpacity:1):""} ${p[0].overlayGradLocSecond}%)`:`linear-gradient(${p[0].overlayGradAngle}deg, ${p[0].overlay?(0,Mo.KadenceColorOutput)(p[0].overlay,void 0!==l&&""!==p[0].overlayFirstOpacity?p[0].overlayFirstOpacity:1):""} ${p[0].overlayGradLoc}%, ${p[0].overlaySecond?(0,Mo.KadenceColorOutput)(p[0].overlaySecond,void 0!==p[0].overlaySecondOpacity&&""!==p[0].tabletOverlay[0].overlaySecondOpacity?p[0].overlaySecondOpacity:1):""} ${p[0].overlayGradLocSecond}%)`,currentOverlayTab:"gradient"})}if(g&&g[0]&&g[0].currentOverlayTab&&"grad"===g[0].currentOverlayTab){const e=e=>{const n=g.map((t,n)=>(0===n&&(t={...t,...e}),t));t({mobileOverlay:n})};e({gradient:"radial"===g[0].overlayGradType?`radial-gradient(ellipse at ${g[0].overlayBgImgPosition}, ${g[0].overlay?(0,Mo.KadenceColorOutput)(g[0].overlay,void 0!==g[0].overlayFirstOpacity&&""!==g[0].overlayFirstOpacity?l:1):""} ${g[0].overlayGradLoc}%, ${g[0].overlaySecond?(0,Mo.KadenceColorOutput)(g[0].overlaySecond,void 0!==g[0].overlaySecondOpacity&&""!==g[0].overlaySecondOpacity?g[0].overlaySecondOpacity:1):""} ${g[0].overlayGradLocSecond}%)`:`linear-gradient(${g[0].overlayGradAngle}deg, ${g[0].overlay?(0,Mo.KadenceColorOutput)(g[0].overlay,void 0!==l&&""!==g[0].overlayFirstOpacity?g[0].overlayFirstOpacity:1):""} ${g[0].overlayGradLoc}%, ${g[0].overlaySecond?(0,Mo.KadenceColorOutput)(g[0].overlaySecond,void 0!==g[0].overlaySecondOpacity&&""!==g[0].mobileOverlay[0].overlaySecondOpacity?g[0].overlaySecondOpacity:1):""} ${g[0].overlayGradLocSecond}%)`,currentOverlayTab:"gradient"})}}(e,t),function(e,t){const{border:n,borderWidth:o,tabletBorder:r,tabletBorderWidth:a,mobileBorder:l,mobileBorderWidth:i,borderStyle:s,tabletBorderStyle:c,mobileBorderStyle:d}=e,u=JSON.parse(JSON.stringify(s||[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:"px"}]));let p=!1;""!==n&&(u[0].top[0]=n,u[0].right[0]=n,u[0].bottom[0]=n,u[0].left[0]=n,p=!0,t({border:""})),""===o?.[0]&&""===o?.[1]&&""===o?.[2]&&""===o?.[3]||(u[0].top[2]=o?.[0]||"",u[0].right[2]=o?.[1]||"",u[0].bottom[2]=o?.[2]||"",u[0].left[2]=o?.[3]||"",p=!0,t({borderWidth:["","","",""]})),p&&t({borderStyle:u});const g=JSON.parse(JSON.stringify(c||[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:"px"}]));let m=!1;""!==r&&(g[0].top[0]=r,g[0].right[0]=r,g[0].bottom[0]=r,g[0].left[0]=r,m=!0,t({tabletBorder:""})),""===a?.[0]&&""===a?.[1]&&""===a?.[2]&&""===a?.[3]||(g[0].top[2]=a?.[0]||"",g[0].right[2]=a?.[1]||"",g[0].bottom[2]=a?.[2]||"",g[0].left[2]=a?.[3]||"",m=!0,t({tabletBorderWidth:["","","",""]})),m&&t({tabletBorderStyle:g});const h=JSON.parse(JSON.stringify(d||[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:"px"}]));let b=!1;""!==l&&(h[0].top[0]=l,h[0].right[0]=l,h[0].bottom[0]=l,h[0].left[0]=l,b=!0,t({mobileBorder:""})),""===i?.[0]&&""===i?.[1]&&""===i?.[2]&&""===i?.[3]||(h[0].top[2]=i?.[0]||"",h[0].right[2]=i?.[1]||"",h[0].bottom[2]=i?.[2]||"",h[0].left[2]=i?.[3]||"",b=!0,t({mobileBorderWidth:["","","",""]})),b&&t({mobileBorderStyle:h})}(e,t);const{kbVersion:n}=e;(!n||n<2)&&t({kbVersion:2})}(n,l)},[]),(0,Ao.useEffect)(()=>{if(Ze<p&&u)Qe(Ze,p);else if(Ze<p&&!u){const e=(0,Mo.setBlockDefaults)("kadence/rowlayout",n);Qe(Ze,e.columns)}},[Ze,p]),(0,Ao.useEffect)(()=>{pt("kadence.dynamicBackground","",n,"bgImg",l,i,ut,!x)},[x,i]);const[et,tt]=(0,Ao.useState)(!1),[nt,ot]=(0,Ao.useState)(!1),[rt,at]=(0,Ao.useState)(null),lt=(0,Ao.useRef)(),it=()=>{lt.current&&window.clearTimeout(lt.current)},[st,ct]=(0,Ao.useState)("general"),[dt,ut]=(0,Ao.useState)(""),pt=(0,jo.debounce)(Mo.setDynamicState,200),gt=(0,Mo.getPreviewSize)(Ue,W,U,Z),mt=(document.querySelector('iframe[name="editor-canvas"]')?.contentWindow.document||document,k||x||se||S||ce||_?"kt-row-has-bg":""),ht=!("undefined"==typeof kadence_blocks_params||!kadence_blocks_params.isKadenceT)&&!0===oe?"var(--global-content-edge-padding)":"0px",bt=(0,Mo.getPreviewSize)(Ue,void 0!==Ce?.[0]?Ce[0]:"",void 0!==J?J[0]:"",void 0!==Ie?Ie[0]:""),ft=(0,Mo.getPreviewSize)(Ue,void 0!==Ce?.[1]&&""!==Ce[1]?Ce[1]:"",void 0!==J?J[1]:"",void 0!==Ie?Ie[1]:""),vt=(0,Mo.getPreviewSize)(Ue,void 0!==Ce?.[2]?Ce[2]:"",void 0!==J?J[2]:"",void 0!==Ie?Ie[2]:""),yt=(0,Mo.getPreviewSize)(Ue,void 0!==Ce?.[3]&&""!==Ce[3]?Ce[3]:"",void 0!==J?J[3]:"",void 0!==Ie?Ie[3]:""),kt=(0,Mo.getPreviewSize)(Ue,void 0!==I?I:"",void 0!==we&&we[0]?we[0]:"",void 0!==we&&we[1]?we[1]:""),xt=(0,Mo.getPreviewSize)(Ue,void 0!==C?C:"",void 0!==le?le:"",void 0!==ie?ie:""),wt=(0,Mo.getPreviewSize)(Ue,void 0!==Oe&&void 0!==Oe[0]?Oe[0]:"",void 0!==Me&&void 0!==Me[0]?Me[0]:"",void 0!==Pe&&void 0!==Pe[0]?Pe[0]:""),_t=(0,Mo.getPreviewSize)(Ue,void 0!==Oe&&void 0!==Oe[2]?Oe[2]:"",void 0!==Me&&void 0!==Me[2]?Me[2]:"",void 0!==Pe&&void 0!==Pe[2]?Pe[2]:""),St=(0,Mo.getPreviewSize)(Ue,void 0!==D?D:"",void 0!==z?z:"",void 0!==F?F:""),jt=(0,Mo.getPreviewSize)(Ue,void 0!==H?H:"",void 0!==V?V:"",void 0!==$?$:""),Ct=(0,Mo.getPreviewSize)(Ue,void 0!==P?P:"",void 0!==E?E:"",void 0!==T?T:""),It=(0,Mo.getPreviewSize)(Ue,void 0!==A?A:"",void 0!==L?L:"",void 0!==N?N:""),Ot=""!==ft?ph(ft,re||"px"):ht,Mt=yt?ph(yt,re||"px"):ht,Pt=(0,Mo.getPreviewSize)(Ue,h||"equal",b||"",g||""),Tt=(0,Mo.getPreviewSize)(Ue,h||"equal",b&&"inherit"!==b?b:"",g||""),Et=!(!(ke?.[0]||ke?.[1]||ke?.[2]||ke?.[3])||!1===Ve),At=["row","last-row","first-row","grid-layout","two-grid","three-grid"],Nt=["firstColumnWidth","secondColumnWidth","thirdColumnWidth","fourthColumnWidth","fifthColumnWidth","sixthColumnWidth"],Lt=[],Rt=[];for(let e=0;e<Nt.length;e++){const t="Desktop"==Ue?"":Ue,o=n[Nt[e]],r=n[Nt[e]+"Tablet"],a=n[Nt[e]+"Mobile"],l=(0,Mo.getPreviewSize)(Ue,o,r,a,!0),i="inherit"==Pt?l:n[Nt[e]+t],s=ih?.[p]?.[Tt]?.[e],c=i||Tt;Lt.push(Math.abs(c)===parseFloat(c)?i:null!=s?s:0),Rt.push(`${c}`)}const Bt=!!(gt&&Rt[0]!=Pt||rt),Dt=dh(Ue,(0,Mo.getPreviewSize)(Ue,f,Ae,Ne),Se,je),Ft=dh(Ue,(0,Mo.getPreviewSize)(Ue,v,Re,Le),Te,Ee),zt=ch(Dt,p),Ht=(0,Mo.hasKadenceCustomCss)(_e),$t=Io()({"kt-row-column-wrap":!0,[`align${ae}`]:ae,[`kb-row-id-${u}`]:u,[`kt-has-${p}-columns`]:p,[`kt-row-layout-${Tt}`]:Tt,[`kt-row-valign-${w}`]:w,[`current-tab-${m}`]:m,[`kt-v-gutter-${v}`]:v,[`kt-m-colapse-${y}`]:"Desktop"!==Ue&&y,[mt]:mt,"has-border-radius":Et,"kt-inner-column-height-full":te,"kvs-false":(0,Mo.getPreviewSize)(Ue,de,ue,pe),"kadence-has-rcp-display":ve&&kadence_blocks_params&&kadence_blocks_params.rcp_access,"kadence-has-custom-css":Ht}),Vt=[{key:"equal",col:1,name:(0,o.__)("Row","kadence-blocks"),icon:r.rowIcon},{key:"equal",col:2,name:(0,o.__)("Two: Equal","kadence-blocks"),icon:r.twoColIcon},{key:"left-golden",col:2,name:(0,o.__)("Two: Left Heavy 66/33","kadence-blocks"),icon:r.twoLeftGoldenIcon},{key:"right-golden",col:2,name:(0,o.__)("Two: Right Heavy 33/66","kadence-blocks"),icon:r.twoRightGoldenIcon},{key:"equal",col:3,name:(0,o.__)("Three: Equal","kadence-blocks"),icon:r.threeColIcon},{key:"left-half",col:3,name:(0,o.__)("Three: Left Heavy 50/25/25","kadence-blocks"),icon:r.leftHalfIcon},{key:"right-half",col:3,name:(0,o.__)("Three: Right Heavy 25/25/50","kadence-blocks"),icon:r.rightHalfIcon},{key:"center-half",col:3,name:(0,o.__)("Three: Center Heavy 25/50/25","kadence-blocks"),icon:r.centerHalfIcon},{key:"center-wide",col:3,name:(0,o.__)("Three: Wide Center 20/60/20","kadence-blocks"),icon:r.wideCenterIcon},{key:"center-exwide",col:3,name:(0,o.__)("Three: Wider Center 15/70/15","kadence-blocks"),icon:r.exWideCenterIcon},{key:"equal",col:4,name:(0,o.__)("Four: Equal","kadence-blocks"),icon:r.fourColIcon},{key:"left-forty",col:4,name:(0,o.__)("Four: Left Heavy 40/20/20/20","kadence-blocks"),icon:r.lFourFortyIcon},{key:"right-forty",col:4,name:(0,o.__)("Four: Right Heavy 20/20/20/40","kadence-blocks"),icon:r.rFourFortyIcon},{key:"equal",col:5,name:(0,o.__)("Five: Equal","kadence-blocks"),icon:r.fiveColIcon},{key:"equal",col:6,name:(0,o.__)("Six: Equal","kadence-blocks"),icon:r.sixColIcon}];let Wt="";for(let e=0;e<p;e++){const t=rt?rt[e]:Lt[e];Wt+=` minmax(0, calc( ${parseFloat(t)}%${zt?" - ("+zt+" / "+p+")":""} ) )`}const Ut=Io()({"innerblocks-wrap":!0,"kb-theme-content-width":oe,[`kt-layout-inner-wrap-id${u}`]:u,[`kb-grid-columns-${p}`]:p}),Zt=(0,Ao.useRef)(null),{children:Gt,...qt}=(0,Pr.useInnerBlocksProps)({ref:Zt,className:Ut,style:{maxWidth:!oe&&kt?kt+X:void 0,minHeight:xt&&re&&"%"!==re?"calc("+xt+Y+" - ("+(""!==bt?ph(bt,re||"px"):"0px")+" + "+(""!==vt?ph(vt,re||"px"):"0px")+")":void 0,paddingLeft:""!==yt?ph(yt,re||"px"):void 0,paddingRight:""!==ft?ph(ft,re||"px"):void 0}},{allowedBlocks:jh,orientation:"horizontal",renderAppender:!1,templateLock:Be}),Kt=(0,Mo.mouseOverVisualizer)(),Jt=(0,Mo.mouseOverVisualizer)();return(0,Bo.jsxs)(Bo.Fragment,{children:["contentOnly"!==Be&&!We&&(0,Mo.showSettings)("allSettings","kadence/rowlayout")&&(0,Bo.jsxs)(Pr.BlockControls,{children:[(0,Bo.jsx)(Pr.BlockAlignmentToolbar,{value:ae,controls:["center","wide","full"],onChange:e=>l({align:e})}),(0,Bo.jsxs)(No.ToolbarGroup,{group:"content-width",children:[(0,Bo.jsx)(No.ToolbarButton,{className:"kb-content-width",icon:oe?(0,Bo.jsx)(hh,{value:"theme"}):(0,Bo.jsx)(hh,{value:"normal"}),onClick:()=>{et||tt(!0)},isPressed:!!et,"aria-haspopup":"true","aria-expanded":et,label:(0,o.__)("Inner Content Width","kadence-blocks"),showTooltip:!0}),et&&(0,Bo.jsx)(No.Popover,{className:"kb-content-width-popover",position:"bottom center",onClick:()=>{},expandOnMobile:!0,onClose:()=>{tt(!1)},children:(0,Bo.jsxs)("div",{className:"kb-content-width-popover-inner-wrap",children:[(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Use Theme Content Inner Width?","kadence-blocks"),checked:void 0!==oe&&oe,onChange:e=>l({inheritMaxWidth:e})}),!0!==oe&&(0,Bo.jsx)(Bo.Fragment,{children:(0,Bo.jsx)(Oo.ResponsiveRangeControls,{label:(0,o.__)("Custom Content Max Width","kadence-blocks"),value:I||"",onChange:e=>{l({maxWidth:e})},tabletValue:void 0!==we&&void 0!==we[0]?we[0]:"",onChangeTablet:e=>{l({responsiveMaxWidth:[e,void 0!==we&&void 0!==we[1]?we[1]:""]})},mobileValue:void 0!==we&&void 0!==we[1]?we[1]:"",onChangeMobile:e=>{l({responsiveMaxWidth:[void 0!==we&&void 0!==we[0]?we[0]:"",e]})},min:0,max:"px"===X?2e3:100,step:1,unit:X||"px",onUnit:e=>{l({maxWidthUnit:e})},units:["px","%","vw","rem"]})})]})})]}),(0,Bo.jsx)(No.ToolbarGroup,{group:"align",children:(0,Bo.jsx)(Pr.BlockVerticalAlignmentControl,{value:"middle"===w?"center":w,onChange:e=>{l("center"===e?{verticalAlignment:"middle"}:"bottom"===e?{verticalAlignment:"bottom"}:{verticalAlignment:"top"})}})}),(0,Bo.jsx)(No.ToolbarGroup,{group:"add-block",children:(0,Bo.jsx)(No.ToolbarButton,{className:"kb-row-add-section",icon:Do,onClick:()=>{(e=>{const n=Xe(t);Ke(e,parseInt(n.innerBlocks.length),t)})((0,a.createBlock)("kadence/column",{}))},label:(0,o.__)("Add Another Section","kadence-blocks"),showTooltip:!0})}),(0,Bo.jsx)(Oo.CopyPasteAttributes,{attributes:n,defaultAttributes:fh.attributes,blockSlug:fh.name,onPaste:e=>l(e)})]}),!We&&(0,Mo.showSettings)("allSettings","kadence/rowlayout")&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsxs)(Pr.InspectorControls,{children:[(0,Bo.jsx)(Oo.InspectorControlTabs,{panelName:"rowlayout",setActiveTab:ct,activeTab:st,tabs:[{key:"general",title:(0,o.__)("Layout","kadence-blocks"),icon:wh},{key:"style",title:(0,o.__)("Style","kadence-blocks"),icon:_h},{key:"advanced",title:(0,o.__)("Advanced","kadence-blocks"),icon:Sh}]}),"general"===st&&(0,Bo.jsx)(Bo.Fragment,{children:(0,Bo.jsx)(vh,{clientId:t,attributes:n,setAttributes:l,updateColumns:Qe,innerItemCount:Ze,widthString:Rt[0],previewDevice:Ue})}),"style"===st&&(0,Bo.jsx)(yh,{clientId:t,attributes:n,setAttributes:l,isSelected:c,context:i,name:d}),"advanced"===st&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Mo.showSettings)("paddingMargin","kadence/rowlayout")&&(0,Bo.jsxs)(Oo.KadencePanelBody,{panelName:"kb-row-padding",children:[(0,Bo.jsx)("div",{className:mt&&""===Ce[1]&&""!==Ce[3]?"padding-right-measure-range-control":mt&&""!==Ce[1]&&""===Ce[3]?"padding-left-measure-range-control":mt&&""===Ce[1]&&""===Ce[3]?"padding-right-measure-range-control padding-left-measure-range-control":"",children:(0,Bo.jsx)(Oo.ResponsiveMeasureRangeControl,{label:(0,o.__)("Padding","kadence-blocks"),value:mt&&void 0!==Ce&&void 0!==Ce[0]&&""===Ce[1]&&""===Ce[3]?[Ce[0],"",Ce[2],""]:void 0!==Ce&&void 0!==Ce[0]?Ce:["sm","","sm",""],tabletValue:J,mobileValue:void 0!==Ie&&void 0!==Ie[0]?Ie:["","","",""],onChange:e=>l({padding:e}),onChangeTablet:e=>l({tabletPadding:e}),onChangeMobile:e=>l({mobilePadding:e}),min:0,max:"em"===re||"rem"===re?25:999,step:"em"===re||"rem"===re?.1:1,deskDefault:["sm","","sm",""],unit:re,options:lh,units:["px","em","rem","%","vh","vw"],onUnit:e=>l({paddingUnit:e}),onMouseOver:Kt.onMouseOver,onMouseOut:Kt.onMouseOut})}),(0,Bo.jsx)(Oo.ResponsiveMeasureRangeControl,{label:(0,o.__)("Margin","kadence-blocks"),value:[void 0!==Oe&&void 0!==Oe[0]?Oe[0]:"","auto",void 0!==Oe&&void 0!==Oe[2]?Oe[2]:"","auto"],tabletValue:[void 0!==Me&&void 0!==Me[0]?Me[0]:"","auto",void 0!==Me&&void 0!==Me[2]?Me[2]:"","auto"],mobileValue:[void 0!==Pe&&void 0!==Pe[0]?Pe[0]:"","auto",void 0!==Pe&&void 0!==Pe[2]?Pe[2]:"","auto"],onChange:e=>{l({margin:[e[0],"",e[2],""]})},onChangeTablet:e=>{l({tabletMargin:[e[0],"",e[2],""]})},onChangeMobile:e=>{l({mobileMargin:[e[0],"",e[2],""]})},min:"em"===Q||"rem"===Q?-25:-999,max:"em"===Q||"rem"===Q?25:999,step:"em"===Q||"rem"===Q?.1:1,unit:Q,allowEmpty:!0,options:lh,units:["px","em","rem","%","vh"],onUnit:e=>l({marginUnit:e}),onMouseOver:Jt.onMouseOver,onMouseOut:Jt.onMouseOut,allowAuto:!0})]}),(0,Bo.jsx)("div",{className:"kt-sidebar-settings-spacer"}),(0,Mo.showSettings)("structure","kadence/rowlayout")&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsxs)(Oo.KadencePanelBody,{title:(0,o.__)("Structure Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-row-structure-settings",children:[(0,Bo.jsx)(No.SelectControl,{label:(0,o.__)("Container HTML tag","kadence-blocks"),value:j,options:[{value:"div",label:"div"},{value:"header",label:"header"},{value:"section",label:"section"},{value:"article",label:"article"},{value:"main",label:"main"},{value:"aside",label:"aside"},{value:"footer",label:"footer"}],onChange:e=>l({htmlTag:e})}),(0,Bo.jsx)(Oo.ResponsiveRangeControls,{label:(0,o.__)("Minimum Height","kadence-blocks"),value:C||"",onChange:e=>{l({minHeight:e})},tabletValue:void 0!==le?le:"",onChangeTablet:e=>{l({minHeightTablet:e})},mobileValue:void 0!==ie?ie:"",onChangeMobile:e=>{l({minHeightMobile:e})},min:0,max:"px"===Y?2e3:200,step:1,unit:Y||"px",onUnit:e=>{l({minHeightUnit:e})},units:["px","vw","vh"],reset:!0}),(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Inner Column Height 100%","kadence-blocks"),checked:void 0!==te&&te,onChange:e=>l({columnsInnerHeight:e})}),(0,Bo.jsx)(Oo.RangeControl,{label:(0,o.__)("Z-Index Control","kadence-blocks"),value:ne,onChange:e=>{l({zIndex:e})},min:-200,max:2e3,reset:!0})]}),(0,Bo.jsxs)(Oo.KadencePanelBody,{title:(0,o.__)("Visibility Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-row-visibility-settings",children:[(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Hide on Desktop","kadence-blocks"),checked:void 0!==de&&de,onChange:e=>l({vsdesk:e})}),(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Hide on Tablet","kadence-blocks"),checked:void 0!==ue&&ue,onChange:e=>l({vstablet:e})}),(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Hide on Mobile","kadence-blocks"),checked:void 0!==pe&&pe,onChange:e=>l({vsmobile:e})}),(0,Bo.jsx)("h2",{children:(0,o.__)("User Visibility Settings","kadence-blocks")}),(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Hide from Logged in Users","kadence-blocks"),checked:void 0!==me&&me,onChange:e=>l({loggedIn:e})}),me&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsxs)("div",{className:"components-base-control",children:[(0,Bo.jsx)("span",{className:"kadence-sidebar-label",children:(0,o.__)("Optional: Hide from Specific User Roles","kadence-blocks")}),(0,Bo.jsx)("div",{className:"kt-meta-select-wrap",children:(0,Bo.jsx)(So,{options:kadence_blocks_user_params&&kadence_blocks_user_params.userVisibility?kadence_blocks_user_params.userVisibility:[],value:ge,isMulti:!0,maxMenuHeight:200,isClearable:!0,placeholder:"",onChange:e=>l({loggedInUser:e})})})]}),(0,Bo.jsxs)("div",{className:"components-base-control",children:[(0,Bo.jsx)("span",{className:"kadence-sidebar-label",children:(0,o.__)("Optional: Show Only to Specific User Roles","kadence-blocks")}),(0,Bo.jsx)("div",{className:"kt-meta-select-wrap",children:(0,Bo.jsx)(So,{options:kadence_blocks_user_params&&kadence_blocks_user_params.userVisibility?kadence_blocks_user_params.userVisibility:[],value:be,isMulti:!0,maxMenuHeight:200,isClearable:!0,placeholder:"",onChange:e=>l({loggedInShow:e})})})]})]}),(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Hide from Logged out Users","kadence-blocks"),checked:void 0!==he&&he,onChange:e=>l({loggedOut:e})}),kadence_blocks_params&&kadence_blocks_params.rcp_access&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Restrict based on Membership","kadence-blocks"),checked:void 0!==ve&&ve,onChange:e=>l({rcpMembership:e})}),ve&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)(No.SelectControl,{label:(0,o.__)("Minimum Access Level","kadence-blocks"),value:fe,options:kadence_blocks_params&&kadence_blocks_params.rcp_access?kadence_blocks_params.rcp_access:[],onChange:e=>l({rcpAccess:e})}),(0,Bo.jsxs)("div",{className:"components-base-control",children:[(0,Bo.jsx)("span",{className:"kadence-sidebar-label",children:(0,o.__)("Specific Memberships","kadence-blocks")}),(0,Bo.jsx)("div",{className:"kt-meta-select-wrap",children:(0,Bo.jsx)(So,{options:kadence_blocks_params&&kadence_blocks_params.rcp_levels?kadence_blocks_params.rcp_levels:[],value:ye,isMulti:!0,maxMenuHeight:200,isClearable:!0,placeholder:"Any Membership",onChange:e=>l({rcpMembershipLevel:e})})})]})]})]})]})]}),(0,Bo.jsx)(Oo.KadenceBlockDefaults,{attributes:n,defaultAttributes:fh.attributes,blockSlug:fh.name})]})]}),(0,Bo.jsx)(Pr.InspectorAdvancedControls,{children:(0,Bo.jsx)(No.ToggleControl,{label:(0,o.__)("Row Content Only Editing","kadence-blocks"),checked:"contentOnly"===Be,onChange:e=>l({templateLock:"contentOnly"})})})]}),(0,Bo.jsxs)(mh,{backgroundClasses:$t,attributes:n,previewDevice:Ue,dynamicBackgroundImg:dt,children:[(0,Bo.jsxs)("style",{children:[G?`.kb-row-id-${u}, .kb-row-id-${u} p:not(.use-for-specificity), .kb-row-id-${u} h1:not(.use-for-specificity), .kb-row-id-${u} h2:not(.use-for-specificity), .kb-row-id-${u} h3:not(.use-for-specificity), .kb-row-id-${u} h4:not(.use-for-specificity), .kb-row-id-${u} h5:not(.use-for-specificity), .kb-row-id-${u} h6:not(.use-for-specificity) { color: ${(0,Mo.KadenceColorOutput)(G)}; }`:"",p&&2===p&&oe&&(Fe||ze)&&"row"!==Pt&&"full"===ae&&"Desktop"===Ue&&(0,Bo.jsxs)(Bo.Fragment,{children:[ze?`@media (min-width: 1290px) {\n\t\t\t\t\t\t\t\t\t\t\t.wp-block-kadence-rowlayout.kb-row-id-${u} > .innerblocks-wrap.kb-grid-columns-2.kt-layout-inner-wrap-id${u} > .wp-block-kadence-column:nth-child(${c?3:2}) > .kadence-inner-column-inner {\n\t\t\t\t\t\t\t\t\t\t\t\tmargin-inline-end: calc( ( ( ( var( --global-kb-editor-full-width ) - ( var( --kb-global-content-width ) - ( ${Ot} *2 ) ) ) /2 ) *-1) ) !important;\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t@media (max-width: 1289px) {\n\t\t\t\t\t\t\t\t\t\t\t.wp-block-kadence-rowlayout.kb-row-id-${u} > .innerblocks-wrap.kb-grid-columns-2.kt-layout-inner-wrap-id${u} > .wp-block-kadence-column:nth-child(${c?3:2}) > .kadence-inner-column-inner {\n\t\t\t\t\t\t\t\t\t\t\t\tmargin-inline-end: calc( ${Ot} * -1 ) !important;\n\t\t\t\t\t\t\t\t\t\t}}`:"",Fe?`@media (min-width: 1290px) {\n\t\t\t\t\t\t\t\t\t\t\t.wp-block-kadence-rowlayout.kb-row-id-${u} > .innerblocks-wrap.kb-grid-columns-2.kt-layout-inner-wrap-id${u} .wp-block-kadence-column:nth-child(${c?2:1}) > .kadence-inner-column-inner {\n\t\t\t\t\t\t\t\t\t\t\t\tmargin-inline-start: calc( ( ( ( var( --global-kb-editor-full-width ) - ( var( --kb-global-content-width ) - ( ${Mt} *2 ) ) ) /2 ) *-1) ) !important;\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t\t@media (max-width: 1289px) {\n\t\t\t\t\t\t\t\t\t\t\t.wp-block-kadence-rowlayout.kb-row-id-${u} > .innerblocks-wrap.kb-grid-columns-2.kt-layout-inner-wrap-id${u} .wp-block-kadence-column:nth-child(${c?2:1}) > .kadence-inner-column-inner {\n\t\t\t\t\t\t\t\t\t\t\t\tmargin-inline-start: calc( ${Ot} * -1 ) !important;\n\t\t\t\t\t\t\t\t\t\t}}`:""]}),p&&2===p&&oe&&(Fe||ze)&&"row"!==Pt&&"full"===ae&&"Tablet"===Ue&&(0,Bo.jsx)(Bo.Fragment,{}),q?`.kb-row-id-${u} a:not(.use-for-specificity) { color: ${(0,Mo.KadenceColorOutput)(q)}; }`:"",K?`.kb-row-id-${u} a:not(.use-for-specificity):hover { color: ${(0,Mo.KadenceColorOutput)(K)}; }`:"",(0,Bo.jsx)(Bo.Fragment,{children:void 0!==Dt?`.wp-block-kadence-rowlayout.kb-row-id-${u} > .innerblocks-wrap.kt-layout-inner-wrap-id${u}, .wp-block-kadence-rowlayout.kb-row-id-${u} > .kb-grid-align-display-wrap > .kb-grid-align-display { column-gap:${Dt} }`:""}),void 0!==Ft?`.wp-block-kadence-rowlayout.kb-row-id-${u} > .innerblocks-wrap.kt-layout-inner-wrap-id${u}, .wp-block-kadence-rowlayout.kb-row-id-${u} > .kb-grid-align-display-wrap > .kb-grid-align-display { row-gap:${Ft} }`:"",p&&!At.includes(Tt)&&(0,Bo.jsx)(Bo.Fragment,{children:`.wp-block-kadence-rowlayout.kb-row-id-${u} > .innerblocks-wrap.kt-layout-inner-wrap-id${u} { grid-template-columns: ${Wt} }`}),"Desktop"!==Ue&&"right-to-left"===y&&("grid-layout"===Pt||"row"===Pt||"last-row"===Pt||"first-row"===Pt)&&(0,Bo.jsxs)(Bo.Fragment,{children:[(0,jo.times)(p,e=>{const t=e+1;return`.wp-block-kadence-rowlayout.kb-row-id-${u} > .innerblocks-wrap > .wp-block-kadence-column:nth-child(${t}) { order: ${p-t} }`}),(0,jo.times)(p,e=>`.wp-block-kadence-rowlayout.kb-row-id-${u} > .innerblocks-wrap > .wp-block-kadence-column:nth-child(${e+1+p}) { order: ${p-(e+1)+10} }`),(0,jo.times)(p,e=>`.wp-block-kadence-rowlayout.kb-row-id-${u} > .innerblocks-wrap > .wp-block-kadence-column:nth-child(${e+1+p+p}) { order: ${p-(e+1)+20} }`),(0,jo.times)(p,e=>`.wp-block-kadence-rowlayout.kb-row-id-${u} > .innerblocks-wrap > .wp-block-kadence-column:nth-child(${e+1+p+p+p}) { order: ${p-(e+1)+30} }`)]}),ne&&ne>30&&(0,Bo.jsxs)(Bo.Fragment,{children:[`.components-popover.block-editor-block-list__block-popover { z-index: ${ne+1e3} }`,";"]}),_e&&(0,Bo.jsx)(Bo.Fragment,{children:_e.replace(/selector/g,`.kb-row-id-${u}`)}),c&&h&&"contentOnly"!==Be&&"row"!==h&&p&&1!==p&&"Desktop"===Ue&&(0,Mo.showSettings)("columnResize","kadence/rowlayout")&&(0,Bo.jsxs)(Bo.Fragment,{children:[".block-editor-block-popover__inbetween-container .block-editor-block-list__insertion-point.is-horizontal.is-with-inserter { display: none }",";"]})]}),(0,Bo.jsx)(Uu,{attributes:n,previewDevice:Ue}),h&&"grid-layout"===h&&(0,Bo.jsx)(xh,{attributes:n,setAttributes:l}),!h&&(0,Bo.jsxs)("div",{className:"kt-select-layout",children:[(0,Bo.jsx)("div",{className:"kt-select-layout-title",children:(0,o.__)("Select Your Layout","kadence-blocks")}),(0,Bo.jsx)(No.ButtonGroup,{"aria-label":(0,o.__)("Column Layout","kadence-blocks"),children:(0,jo.map)(Vt,({name:e,key:t,icon:n,col:o})=>(0,Bo.jsx)(No.Button,{className:"kt-layout-btn",isSmall:!0,label:e,icon:n,onClick:()=>{Qe(p,o),l({colLayout:t,columns:o,firstColumnWidth:0,secondColumnWidth:0,thirdColumnWidth:0,fourthColumnWidth:0,fifthColumnWidth:0,sixthColumnWidth:0})}},t))}),(0,Mo.showSettings)("show","kadence/designlibrary")&&kadence_blocks_params.showDesignLibrary&&(0,Bo.jsx)(No.Button,{className:"kt-prebuilt",onClick:()=>l({isPrebuiltModal:!0}),children:(0,o.__)("Design Library","kadence-blocks")})]}),h&&"none"!==R&&""!==R&&(0,Bo.jsx)("div",{className:`kt-row-layout-top-sep kt-row-sep-type-${R}`,style:{height:St+He,color:(0,Mo.KadenceColorOutput)(B)},children:bh(R,"top",jt+"%")}),h&&(0,Bo.jsx)(kh,{previewDevice:Ue,edge:"top",isPreviewMode:We,attributes:n,setAttributes:l,toggleSelection:s,finishedResizing:()=>{ot(!0),it(),lt.current=setTimeout(()=>{ot(!1)},100)}}),h&&(0,Bo.jsxs)("div",{...qt,children:[c&&h&&"contentOnly"!==Be&&!At.includes(Tt)&&p&&(0,Mo.showSettings)("allSettings","kadence/rowlayout")&&(0,Mo.showSettings)("columnResize","kadence/rowlayout")&&(0,Bo.jsx)(Oo.ColumnDragResizer,{attributes:n,setAttributes:l,previewDevice:Ue,columns:p,columnWidths:rt||Lt,columnGap:Dt,columnsUnlocked:ee,onColumnsUnlocked:e=>l({columnsUnlocked:e}),onResize:e=>{at(e)},onResizeTablet:e=>{at(e)},onResizeMobile:e=>{at(e)},onResizeStop:e=>{l({firstColumnWidth:e?.[0],secondColumnWidth:e?.[1],thirdColumnWidth:e?.[2],fourthColumnWidth:e?.[3],fifthColumnWidth:e?.[4],sixthColumnWidth:e?.[5]}),at(null)},onResizeStopTablet:e=>{l({firstColumnWidthTablet:e?.[0],secondColumnWidthTablet:e?.[1],thirdColumnWidthTablet:e?.[2],fourthColumnWidthTablet:e?.[3],fifthColumnWidthTablet:e?.[4],sixthColumnWidthTablet:e?.[5]}),at(null)},onResizeStopMobile:e=>{l({firstColumnWidthMobile:e?.[0],secondColumnWidthMobile:e?.[1],thirdColumnWidthMobile:e?.[2],fourthColumnWidthMobile:e?.[3],fifthColumnWidthMobile:e?.[4],sixthColumnWidthMobile:e?.[5]}),at(null)},active:Bt,tempDuringResize:!0}),Gt]}),h&&(0,Bo.jsx)(kh,{previewDevice:Ue,edge:"bottom",isPreviewMode:We,attributes:n,setAttributes:l,toggleSelection:s,finishedResizing:()=>{ot(!0),it(),lt.current=setTimeout(()=>{ot(!1)},100)}}),h&&"none"!==O&&""!==O&&(0,Bo.jsx)("div",{className:`kt-row-layout-bottom-sep kt-row-sep-type-${O}`,style:{height:Ct+$e,color:(0,Mo.KadenceColorOutput)(M)},children:bh(O,"bottom",It+"%")}),(0,Bo.jsx)(Oo.SpacingVisualizer,{style:{maxWidth:!oe&&kt?kt+X:void 0},type:"inside",forceHide:nt,forceShow:Kt.isMouseOver,spacing:[ph(bt,re||"px"),ph(ft,re||"px"),ph(vt,re||"px"),ph(yt,re||"px")]}),(0,Bo.jsx)(Oo.SpacingVisualizer,{type:"outside",forceShow:Jt.isMouseOver,spacing:[ph(wt,Q||"px"),0,ph(_t,Q||"px"),0]})]})]})},save:function({attributes:e}){const{columns:t,blockAlignment:n,inheritMaxWidth:o,align:r,mobileLayout:a,currentOverlayTab:l,overlayBgImg:i,overlay:s,colLayout:c,tabletLayout:d,collapseOrder:u,uniqueID:p,columnGutter:g,collapseGutter:m,bgColor:h,bgImg:b,verticalAlignment:f,htmlTag:v,bottomSep:y,bottomSepColor:k,topSep:x,topSepColor:w,firstColumnWidth:_,secondColumnWidth:S,overlayBgImgAttachment:j,bgImgAttachment:C,columnsInnerHeight:I,backgroundInline:O,backgroundSettingTab:M,backgroundSliderCount:P,backgroundSliderSettings:T,backgroundSlider:E,bgImgSize:A,bgImgPosition:N,bgImgRepeat:L,backgroundVideoType:R,backgroundVideo:B,bgColorClass:D,vsdesk:F,vstablet:z,vsmobile:H,tabletOverlay:$,mobileOverlay:V}=e;let W,U;"ct"===y?W=(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===y?W=(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===y?W=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})]}):"ctdi"===y?W=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})]}):"sltl"===y?W=(0,Bo.jsx)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===y?W=(0,Bo.jsx)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===y?W=(0,Bo.jsx)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===y?W=(0,Bo.jsx)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===y?W=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===y?W=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===y?W=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===y?W=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===y?W=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===y?W=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===y?W=(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===y?W=(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===y?W=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})]}):"wavesi"===y?W=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})]}):"mtns"===y?W=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})]}):"littri"===y?W=(0,Bo.jsx)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===y?W=(0,Bo.jsx)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}):"threelevels"===y?W=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,Bo.jsx)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,Bo.jsx)("path",{d:"M0 95l1000-40.887V100H0v-5z"})]}):"threelevelsi"===y&&(W=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{style:{opacity:.33},d:"M1000 95L0 0v100h1000v-5z"}),(0,Bo.jsx)("path",{style:{opacity:.66},d:"M1000 95L0 27.056V100h1000v-5z"}),(0,Bo.jsx)("path",{d:"M1000 95L0 54.113V100h1000v-5z"})]})),"ct"===x?U=(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===x?U=(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===x?U=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})]}):"ctdi"===x?U=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})]}):"sltl"===x?U=(0,Bo.jsx)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===x?U=(0,Bo.jsx)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===x?U=(0,Bo.jsx)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===x?U=(0,Bo.jsx)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===x?U=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===x?U=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===x?U=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===x?U=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===x?U=(0,Bo.jsx)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===x?U=(0,Bo.jsx)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===x?U=(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===x?U=(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===x?U=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})]}):"wavesi"===x?U=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})]}):"mtns"===x?U=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,Bo.jsx)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})]}):"littri"===x?U=(0,Bo.jsx)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===x?U=(0,Bo.jsx)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}):"threelevels"===x?U=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,Bo.jsx)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,Bo.jsx)("path",{d:"M0 95l1000-40.887V100H0v-5z"})]}):"threelevelsi"===x&&(U=(0,Bo.jsxs)(Bo.Fragment,{children:[(0,Bo.jsx)("path",{style:{opacity:.33},d:"M1000 95L0 0v100h1000v-5z"}),(0,Bo.jsx)("path",{style:{opacity:.66},d:"M1000 95L0 27.056V100h1000v-5z"}),(0,Bo.jsx)("path",{d:"M1000 95L0 54.113V100h1000v-5z"})]}));const Z=!_||2!==t&&3!==t?"":" kt-custom-first-width-"+_,G=!S||2!==t&&3!==t?"":" kt-custom-second-width-"+S,q=S&&_&&3===t?" kt-custom-third-width-"+Math.round(10*(100-(parseFloat(_)+parseFloat(S))))/10:"",K=c||"equal",J=d||"inherit",Y=a||"inherit",X=p||"notset",Q=Io()({"wp-block-kadence-rowlayout":!0,[`align${r||"none"}`]:!0,"kvs-lg-false":"undefined"!==F&&F,"kvs-md-false":"undefined"!==z&&z,"kvs-sm-false":"undefined"!==H&&H}),ee=(Pr.useBlockProps.save({className:Q}),(0,Pr.getColorClassName)("background-color",D));Io()("kt-row-layout-inner",{"kt-row-has-bg":h||b||s||i,["kt-layout-id"+X]:X,"kt-jarallax":b&&"parallax"===C,[ee]:ee}),Io()({"kt-row-column-wrap":!0,[`kt-has-${t}-columns`]:t,[`kt-gutter-${g}`]:g,[`kt-v-gutter-${m||"default"}`]:!0,[`kt-row-valign-${f}`]:f,[`kt-row-layout-${K}`]:K,[`kt-tab-layout-${J}`]:J,[`kt-m-colapse-${u}`]:u,[`kt-mobile-layout-${Y}`]:Y,[Z]:Z,[G]:G,[q]:q,"kt-inner-column-height-full":void 0!==I&&!0===I,"kb-theme-content-width":o});let te=!(!s&&!i);return te||(te=!!($&&$[0]&&$[0].enable)),te||(te=!!(V&&V[0]&&V[0].enable)),(0,Bo.jsx)(Pr.InnerBlocks.Content,{})},deprecated:Ph,example:{attributes:{colLayout:"equal",columns:2,customGutter:[0,0,0]},innerBlocks:[{name:"kadence/column",attributes:{background:"#DADADA",padding:[30,20,30,20]},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,o.__)("Column 1","kadence-blocks")}}]},{name:"kadence/column",attributes:{background:"#f5f5f5",padding:[30,20,30,20]},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,o.__)("Column 2","kadence-blocks")}}]}]}})},731:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),o=new RegExp(n,"g"),r=new RegExp(n,"");function a(e){return t[e]}var l=function(e){return e.replace(o,a)};e.exports=l,e.exports.has=function(e){return!!e.match(r)},e.exports.remove=l},790:e=>{"use strict";e.exports=window.ReactJSXRuntime},1528:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(1609),a=i(r),l=i(n(5556));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){return this.props.useCapture,this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),o=void 0;if(this.props.useWindow){var r=document.documentElement||document.body.parentNode||document.body,a=void 0!==t.pageYOffset?t.pageYOffset:r.scrollTop;o=this.props.isReverse?a:this.calculateOffset(e,a)}else o=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;o<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,o=t.element,r=t.hasMore,l=(t.initialLoad,t.isReverse),i=t.loader,s=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,s&&s(t)};var d=[n];return r&&(i?l?d.unshift(i):d.push(i):this.defaultLoader&&(l?d.unshift(this.defaultLoader):d.push(this.defaultLoader))),a.default.createElement(o,c,d)}}]),t}(r.Component);s.propTypes={children:l.default.node.isRequired,element:l.default.node,hasMore:l.default.bool,initialLoad:l.default.bool,isReverse:l.default.bool,loader:l.default.node,loadMore:l.default.func.isRequired,pageStart:l.default.number,ref:l.default.func,getScrollParent:l.default.func,threshold:l.default.number,useCapture:l.default.bool,useWindow:l.default.bool},s.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=s,e.exports=t.default},1609:e=>{"use strict";e.exports=window.React},2694:(e,t,n)=>{"use strict";var o=n(6925);function r(){}function a(){}a.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,a,l){if(l!==o){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:r};return n.PropTypes=n,n}},2911:(e,t,n)=>{"use strict";var o=n(1609);function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=null,l=0;function i(e,t){if(0!==t.length)if(512<t.length)0<l&&(e.enqueue(new Uint8Array(a.buffer,0,l)),a=new Uint8Array(512),l=0),e.enqueue(t);else{var n=a.length-l;n<t.length&&(0===n?e.enqueue(a):(a.set(t.subarray(0,n),l),e.enqueue(a),t=t.subarray(n)),a=new Uint8Array(512),l=0),a.set(t,l),l+=t.length}}function s(e,t){return i(e,t),!0}function c(e){a&&0<l&&(e.enqueue(new Uint8Array(a.buffer,0,l)),a=null,l=0)}var d=new TextEncoder;function u(e){return d.encode(e)}function p(e){return d.encode(e)}function g(e,t){"function"==typeof e.error?e.error(t):e.close()}var m=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,b={},f={};function v(e){return!!m.call(f,e)||!m.call(b,e)&&(h.test(e)?f[e]=!0:(b[e]=!0,!1))}function y(e,t,n,o,r,a,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=l}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){k[e]=new y(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];k[t]=new y(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){k[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){k[e]=new y(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){k[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){k[e]=new y(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){k[e]=new y(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){k[e]=new y(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){k[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(x,w);k[t]=new y(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(x,w);k[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(x,w);k[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){k[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)}),k.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){k[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)});var _={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=["Webkit","ms","Moz","O"];Object.keys(_).forEach(function(e){S.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_[t]=_[e]})});var j=/["'&<>]/;function C(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=j.exec(e);if(t){var n,o="",r=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}r!==n&&(o+=e.substring(r,n)),r=n+1,o+=t}e=r!==n?o+e.substring(r,n):o}return e}var I=/([A-Z])/g,O=/^ms-/,M=Array.isArray,P=p("<script>"),T=p("<\/script>"),E=p('<script src="'),A=p('<script type="module" src="'),N=p('" async=""><\/script>'),L=/(<\/|<)(s)(cript)/gi;function R(e,t,n,o){return t+("s"===n?"\\u0073":"\\u0053")+o}function B(e,t){return{insertionMode:e,selectedValue:t}}var D=p("\x3c!-- --\x3e");function F(e,t,n,o){return""===t?o:(o&&e.push(D),e.push(u(C(t))),!0)}var z=new Map,H=p(' style="'),$=p(":"),V=p(";");function W(e,t,n){if("object"!=typeof n)throw Error(r(62));for(var o in t=!0,n)if(m.call(n,o)){var a=n[o];if(null!=a&&"boolean"!=typeof a&&""!==a){if(0===o.indexOf("--")){var l=u(C(o));a=u(C((""+a).trim()))}else{l=o;var i=z.get(l);void 0!==i||(i=p(C(l.replace(I,"-$1").toLowerCase().replace(O,"-ms-"))),z.set(l,i)),l=i,a="number"==typeof a?0===a||m.call(_,o)?u(""+a):u(a+"px"):u(C((""+a).trim()))}t?(t=!1,e.push(H,l,$,a)):e.push(V,l,$,a)}}t||e.push(G)}var U=p(" "),Z=p('="'),G=p('"'),q=p('=""');function K(e,t,n,o){switch(n){case"style":return void W(e,t,o);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=k.hasOwnProperty(n)?k[n]:null)){switch(typeof o){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=u(t.attributeName),t.type){case 3:o&&e.push(U,n,q);break;case 4:!0===o?e.push(U,n,q):!1!==o&&e.push(U,n,Z,u(C(o)),G);break;case 5:isNaN(o)||e.push(U,n,Z,u(C(o)),G);break;case 6:!isNaN(o)&&1<=o&&e.push(U,n,Z,u(C(o)),G);break;default:t.sanitizeURL&&(o=""+o),e.push(U,n,Z,u(C(o)),G)}}else if(v(n)){switch(typeof o){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(U,u(n),Z,u(C(o)),G)}}var J=p(">"),Y=p("/>");function X(e,t,n){if(null!=t){if(null!=n)throw Error(r(60));if("object"!=typeof t||!("__html"in t))throw Error(r(61));null!=(t=t.__html)&&e.push(u(""+t))}}var Q=p(' selected=""');function ee(e,t,n,o){e.push(re(n));var r,a=n=null;for(r in t)if(m.call(t,r)){var l=t[r];if(null!=l)switch(r){case"children":n=l;break;case"dangerouslySetInnerHTML":a=l;break;default:K(e,o,r,l)}}return e.push(J),X(e,a,n),"string"==typeof n?(e.push(u(C(n))),null):n}var te=p("\n"),ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,oe=new Map;function re(e){var t=oe.get(e);if(void 0===t){if(!ne.test(e))throw Error(r(65,e));t=p("<"+e),oe.set(e,t)}return t}var ae=p("<!DOCTYPE html>");var le=p("</"),ie=p(">"),se=p('<template id="'),ce=p('"></template>'),de=p("\x3c!--$--\x3e"),ue=p('\x3c!--$?--\x3e<template id="'),pe=p('"></template>'),ge=p("\x3c!--$!--\x3e"),me=p("\x3c!--/$--\x3e"),he=p("<template"),be=p('"'),fe=p(' data-dgst="');p(' data-msg="'),p(' data-stck="');var ve=p("></template>");function ye(e,t,n){if(i(e,ue),null===n)throw Error(r(395));return i(e,n),s(e,pe)}var ke=p('<div hidden id="'),xe=p('">'),we=p("</div>"),_e=p('<svg aria-hidden="true" style="display:none" id="'),Se=p('">'),je=p("</svg>"),Ce=p('<math aria-hidden="true" style="display:none" id="'),Ie=p('">'),Oe=p("</math>"),Me=p('<table hidden id="'),Pe=p('">'),Te=p("</table>"),Ee=p('<table hidden><tbody id="'),Ae=p('">'),Ne=p("</tbody></table>"),Le=p('<table hidden><tr id="'),Re=p('">'),Be=p("</tr></table>"),De=p('<table hidden><colgroup id="'),Fe=p('">'),ze=p("</colgroup></table>"),He=p('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),$e=p('$RS("'),Ve=p('","'),We=p('")<\/script>'),Ue=p('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Ze=p('$RC("'),Ge=p('","'),qe=p('")<\/script>'),Ke=p('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Je=p('$RX("'),Ye=p('"'),Xe=p(")<\/script>"),Qe=p(","),et=/[<\u2028\u2029]/g;function tt(e){return JSON.stringify(e).replace(et,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var nt=Object.assign,ot=Symbol.for("react.element"),rt=Symbol.for("react.portal"),at=Symbol.for("react.fragment"),lt=Symbol.for("react.strict_mode"),it=Symbol.for("react.profiler"),st=Symbol.for("react.provider"),ct=Symbol.for("react.context"),dt=Symbol.for("react.forward_ref"),ut=Symbol.for("react.suspense"),pt=Symbol.for("react.suspense_list"),gt=Symbol.for("react.memo"),mt=Symbol.for("react.lazy"),ht=Symbol.for("react.scope"),bt=Symbol.for("react.debug_trace_mode"),ft=Symbol.for("react.legacy_hidden"),vt=Symbol.for("react.default_value"),yt=Symbol.iterator;function kt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case at:return"Fragment";case rt:return"Portal";case it:return"Profiler";case lt:return"StrictMode";case ut:return"Suspense";case pt:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ct:return(e.displayName||"Context")+".Consumer";case st:return(e._context.displayName||"Context")+".Provider";case dt:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case gt:return null!==(t=e.displayName||null)?t:kt(e.type)||"Memo";case mt:t=e._payload,e=e._init;try{return kt(e(t))}catch(e){}}return null}var xt={};function wt(e,t){if(!(e=e.contextTypes))return xt;var n,o={};for(n in e)o[n]=t[n];return o}var _t=null;function St(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(r(401))}else{if(null===n)throw Error(r(401));St(e,n)}t.context._currentValue=t.value}}function jt(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&jt(e)}function Ct(e){var t=e.parent;null!==t&&Ct(t),e.context._currentValue=e.value}function It(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(r(402));e.depth===t.depth?St(e,t):It(e,t)}function Ot(e,t){var n=t.parent;if(null===n)throw Error(r(402));e.depth===n.depth?St(e,n):Ot(e,n),t.context._currentValue=t.value}function Mt(e){var t=_t;t!==e&&(null===t?Ct(e):null===e?jt(t):t.depth===e.depth?St(t,e):t.depth>e.depth?It(t,e):Ot(t,e),_t=e)}var Pt={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Tt(e,t,n,o){var r=void 0!==e.state?e.state:null;e.updater=Pt,e.props=n,e.state=r;var a={queue:[],replace:!1};e._reactInternals=a;var l=t.contextType;if(e.context="object"==typeof l&&null!==l?l._currentValue:o,"function"==typeof(l=t.getDerivedStateFromProps)&&(r=null==(l=l(n,r))?r:nt({},r,l),e.state=r),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&Pt.enqueueReplaceState(e,e.state,null),null!==a.queue&&0<a.queue.length)if(t=a.queue,l=a.replace,a.queue=null,a.replace=!1,l&&1===t.length)e.state=t[0];else{for(a=l?t[0]:e.state,r=!0,l=l?1:0;l<t.length;l++){var i=t[l];null!=(i="function"==typeof i?i.call(e,a,n,o):i)&&(r?(r=!1,a=nt({},a,i)):nt(a,i))}e.state=a}else a.queue=null}var Et={id:1,overflow:""};function At(e,t,n){var o=e.id;e=e.overflow;var r=32-Nt(o)-1;o&=~(1<<r),n+=1;var a=32-Nt(t)+r;if(30<a){var l=r-r%5;return a=(o&(1<<l)-1).toString(32),o>>=l,r-=l,{id:1<<32-Nt(t)+r|n<<r|o,overflow:a+e}}return{id:1<<a|n<<r|o,overflow:e}}var Nt=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(Lt(e)/Rt|0)|0},Lt=Math.log,Rt=Math.LN2,Bt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Dt=null,Ft=null,zt=null,Ht=null,$t=!1,Vt=!1,Wt=0,Ut=null,Zt=0;function Gt(){if(null===Dt)throw Error(r(321));return Dt}function qt(){if(0<Zt)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function Kt(){return null===Ht?null===zt?($t=!1,zt=Ht=qt()):($t=!0,Ht=zt):null===Ht.next?($t=!1,Ht=Ht.next=qt()):($t=!0,Ht=Ht.next),Ht}function Jt(){Ft=Dt=null,Vt=!1,zt=null,Zt=0,Ht=Ut=null}function Yt(e,t){return"function"==typeof t?t(e):t}function Xt(e,t,n){if(Dt=Gt(),Ht=Kt(),$t){var o=Ht.queue;if(t=o.dispatch,null!==Ut&&void 0!==(n=Ut.get(o))){Ut.delete(o),o=Ht.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return Ht.memoizedState=o,[o,t]}return[Ht.memoizedState,t]}return e=e===Yt?"function"==typeof t?t():t:void 0!==n?n(t):t,Ht.memoizedState=e,e=(e=Ht.queue={last:null,dispatch:null}).dispatch=en.bind(null,Dt,e),[Ht.memoizedState,e]}function Qt(e,t){if(Dt=Gt(),t=void 0===t?null:t,null!==(Ht=Kt())){var n=Ht.memoizedState;if(null!==n&&null!==t){var o=n[1];e:if(null===o)o=!1;else{for(var r=0;r<o.length&&r<t.length;r++)if(!Bt(t[r],o[r])){o=!1;break e}o=!0}if(o)return n[0]}}return e=e(),Ht.memoizedState=[e,t],e}function en(e,t,n){if(25<=Zt)throw Error(r(301));if(e===Dt)if(Vt=!0,e={action:n,next:null},null===Ut&&(Ut=new Map),void 0===(n=Ut.get(t)))Ut.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function tn(){throw Error(r(394))}function nn(){}var on={readContext:function(e){return e._currentValue},useContext:function(e){return Gt(),e._currentValue},useMemo:Qt,useReducer:Xt,useRef:function(e){Dt=Gt();var t=(Ht=Kt()).memoizedState;return null===t?(e={current:e},Ht.memoizedState=e):t},useState:function(e){return Xt(Yt,e)},useInsertionEffect:nn,useLayoutEffect:function(){},useCallback:function(e,t){return Qt(function(){return e},t)},useImperativeHandle:nn,useEffect:nn,useDebugValue:nn,useDeferredValue:function(e){return Gt(),e},useTransition:function(){return Gt(),[!1,tn]},useId:function(){var e=Ft.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Nt(e)-1)).toString(32)+t;var n=rn;if(null===n)throw Error(r(404));return t=Wt++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Gt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(r(407));return n()}},rn=null,an=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function ln(e){return console.error(e),null}function sn(){}function cn(e,t,n,o,r,a,l,i){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var s={node:t,ping:function(){var t=e.pingedTasks;t.push(s),1===t.length&&jn(e)},blockedBoundary:n,blockedSegment:o,abortSet:r,legacyContext:a,context:l,treeContext:i};return r.add(s),s}function dn(e,t,n,o,r,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:o,boundary:n,lastPushedText:r,textEmbedded:a}}function un(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function pn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,g(e.destination,t)):(e.status=1,e.fatalError=t)}function gn(e,t,n,o,r){for(Dt={},Ft=t,Wt=0,e=n(o,r);Vt;)Vt=!1,Wt=0,Zt+=1,Ht=null,e=n(o,r);return Jt(),e}function mn(e,t,n,o){var a=n.render(),l=o.childContextTypes;if(null!=l){var i=t.legacyContext;if("function"!=typeof n.getChildContext)o=i;else{for(var s in n=n.getChildContext())if(!(s in l))throw Error(r(108,kt(o)||"Unknown",s));o=nt({},i,n)}t.legacyContext=o,fn(e,t,a),t.legacyContext=i}else fn(e,t,a)}function hn(e,t){if(e&&e.defaultProps){for(var n in t=nt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function bn(e,t,n,a,l){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){l=wt(n,t.legacyContext);var i=n.contextType;Tt(i=new n(a,"object"==typeof i&&null!==i?i._currentValue:l),n,a,l),mn(e,t,i,n)}else{l=gn(e,t,n,a,i=wt(n,t.legacyContext));var s=0!==Wt;if("object"==typeof l&&null!==l&&"function"==typeof l.render&&void 0===l.$$typeof)Tt(l,n,a,i),mn(e,t,l,n);else if(s){a=t.treeContext,t.treeContext=At(a,1,0);try{fn(e,t,l)}finally{t.treeContext=a}}else fn(e,t,l)}else{if("string"!=typeof n){switch(n){case ft:case bt:case lt:case it:case at:case pt:return void fn(e,t,a.children);case ht:throw Error(r(343));case ut:e:{n=t.blockedBoundary,l=t.blockedSegment,i=a.fallback,a=a.children;var c={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s=new Set,errorDigest:null},d=dn(0,l.chunks.length,c,l.formatContext,!1,!1);l.children.push(d),l.lastPushedText=!1;var p=dn(0,0,null,l.formatContext,!1,!1);p.parentFlushed=!0,t.blockedBoundary=c,t.blockedSegment=p;try{if(yn(e,t,a),p.lastPushedText&&p.textEmbedded&&p.chunks.push(D),p.status=1,wn(c,p),0===c.pendingTasks)break e}catch(t){p.status=4,c.forceClientRender=!0,c.errorDigest=un(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=l}t=cn(e,i,n,d,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case dt:if(a=gn(e,t,n.render,a,l),0!==Wt){n=t.treeContext,t.treeContext=At(n,1,0);try{fn(e,t,a)}finally{t.treeContext=n}}else fn(e,t,a);return;case gt:return void bn(e,t,n=n.type,a=hn(n,a),l);case st:if(l=a.children,n=n._context,a=a.value,i=n._currentValue,n._currentValue=a,_t=a={parent:s=_t,depth:null===s?0:s.depth+1,context:n,parentValue:i,value:a},t.context=a,fn(e,t,l),null===(e=_t))throw Error(r(403));return a=e.parentValue,e.context._currentValue=a===vt?e.context._defaultValue:a,e=_t=e.parent,void(t.context=e);case ct:return void fn(e,t,a=(a=a.children)(n._currentValue));case mt:return void bn(e,t,n=(l=n._init)(n._payload),a=hn(n,a),void 0)}throw Error(r(130,null==n?n:typeof n,""))}switch(i=function(e,t,n,a,l){switch(t){case"select":e.push(re("select"));var i=null,s=null;for(g in n)if(m.call(n,g)){var c=n[g];if(null!=c)switch(g){case"children":i=c;break;case"dangerouslySetInnerHTML":s=c;break;case"defaultValue":case"value":break;default:K(e,a,g,c)}}return e.push(J),X(e,s,i),i;case"option":s=l.selectedValue,e.push(re("option"));var d=c=null,p=null,g=null;for(i in n)if(m.call(n,i)){var h=n[i];if(null!=h)switch(i){case"children":c=h;break;case"selected":p=h;break;case"dangerouslySetInnerHTML":g=h;break;case"value":d=h;default:K(e,a,i,h)}}if(null!=s)if(n=null!==d?""+d:function(e){var t="";return o.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(c),M(s)){for(a=0;a<s.length;a++)if(""+s[a]===n){e.push(Q);break}}else""+s===n&&e.push(Q);else p&&e.push(Q);return e.push(J),X(e,g,c),c;case"textarea":for(c in e.push(re("textarea")),g=s=i=null,n)if(m.call(n,c)&&null!=(d=n[c]))switch(c){case"children":g=d;break;case"value":i=d;break;case"defaultValue":s=d;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:K(e,a,c,d)}if(null===i&&null!==s&&(i=s),e.push(J),null!=g){if(null!=i)throw Error(r(92));if(M(g)&&1<g.length)throw Error(r(93));i=""+g}return"string"==typeof i&&"\n"===i[0]&&e.push(te),null!==i&&e.push(u(C(""+i))),null;case"input":for(s in e.push(re("input")),d=g=c=i=null,n)if(m.call(n,s)&&null!=(p=n[s]))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"defaultChecked":d=p;break;case"defaultValue":c=p;break;case"checked":g=p;break;case"value":i=p;break;default:K(e,a,s,p)}return null!==g?K(e,a,"checked",g):null!==d&&K(e,a,"checked",d),null!==i?K(e,a,"value",i):null!==c&&K(e,a,"value",c),e.push(Y),null;case"menuitem":for(var b in e.push(re("menuitem")),n)if(m.call(n,b)&&null!=(i=n[b]))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:K(e,a,b,i)}return e.push(J),null;case"title":for(h in e.push(re("title")),i=null,n)if(m.call(n,h)&&null!=(s=n[h]))switch(h){case"children":i=s;break;case"dangerouslySetInnerHTML":throw Error(r(434));default:K(e,a,h,s)}return e.push(J),i;case"listing":case"pre":for(d in e.push(re(t)),s=i=null,n)if(m.call(n,d)&&null!=(c=n[d]))switch(d){case"children":i=c;break;case"dangerouslySetInnerHTML":s=c;break;default:K(e,a,d,c)}if(e.push(J),null!=s){if(null!=i)throw Error(r(60));if("object"!=typeof s||!("__html"in s))throw Error(r(61));null!=(n=s.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push(te,u(n)):e.push(u(""+n)))}return"string"==typeof i&&"\n"===i[0]&&e.push(te),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var f in e.push(re(t)),n)if(m.call(n,f)&&null!=(i=n[f]))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,t));default:K(e,a,f,i)}return e.push(Y),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,n,t,a);case"html":return 0===l.insertionMode&&e.push(ae),ee(e,n,t,a);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return ee(e,n,t,a);for(p in e.push(re(t)),s=i=null,n)if(m.call(n,p)&&null!=(c=n[p]))switch(p){case"children":i=c;break;case"dangerouslySetInnerHTML":s=c;break;case"style":W(e,a,c);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:v(p)&&"function"!=typeof c&&"symbol"!=typeof c&&e.push(U,u(p),Z,u(C(c)),G)}return e.push(J),X(e,s,i),i}}((l=t.blockedSegment).chunks,n,a,e.responseState,l.formatContext),l.lastPushedText=!1,s=l.formatContext,l.formatContext=function(e,t,n){switch(t){case"select":return B(1,null!=n.value?n.value:n.defaultValue);case"svg":return B(2,null);case"math":return B(3,null);case"foreignObject":return B(1,null);case"table":return B(4,null);case"thead":case"tbody":case"tfoot":return B(5,null);case"colgroup":return B(7,null);case"tr":return B(6,null)}return 4<=e.insertionMode||0===e.insertionMode?B(1,null):e}(s,n,a),yn(e,t,i),l.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:l.chunks.push(le,u(n),ie)}l.lastPushedText=!1}}function fn(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case ot:return void bn(e,t,n.type,n.props,n.ref);case rt:throw Error(r(257));case mt:var o=n._init;return void fn(e,t,n=o(n._payload))}if(M(n))return void vn(e,t,n);if((o=null===n||"object"!=typeof n?null:"function"==typeof(o=yt&&n[yt]||n["@@iterator"])?o:null)&&(o=o.call(n))){if(!(n=o.next()).done){var a=[];do{a.push(n.value),n=o.next()}while(!n.done);vn(e,t,a)}return}throw e=Object.prototype.toString.call(n),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(o=t.blockedSegment).lastPushedText=F(t.blockedSegment.chunks,n,e.responseState,o.lastPushedText):"number"==typeof n&&((o=t.blockedSegment).lastPushedText=F(t.blockedSegment.chunks,""+n,e.responseState,o.lastPushedText))}function vn(e,t,n){for(var o=n.length,r=0;r<o;r++){var a=t.treeContext;t.treeContext=At(a,o,r);try{yn(e,t,n[r])}finally{t.treeContext=a}}}function yn(e,t,n){var o=t.blockedSegment.formatContext,r=t.legacyContext,a=t.context;try{return fn(e,t,n)}catch(s){if(Jt(),"object"!=typeof s||null===s||"function"!=typeof s.then)throw t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=a,Mt(a),s;n=s;var l=t.blockedSegment,i=dn(0,l.chunks.length,null,l.formatContext,l.lastPushedText,!0);l.children.push(i),l.lastPushedText=!1,e=cn(e,t.node,t.blockedBoundary,i,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=a,Mt(a)}}function kn(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,Sn(this,t,e)}function xn(e,t,n){var o=e.blockedBoundary;e.blockedSegment.status=3,null===o?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(o.pendingTasks--,o.forceClientRender||(o.forceClientRender=!0,e=void 0===n?Error(r(432)):n,o.errorDigest=t.onError(e),o.parentFlushed&&t.clientRenderedBoundaries.push(o)),o.fallbackAbortableTasks.forEach(function(e){return xn(e,t,n)}),o.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(o=t.onAllReady)())}function wn(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&wn(e,n)}else e.completedSegments.push(t)}function Sn(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(r(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=sn,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&wn(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(kn,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(wn(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function jn(e){if(2!==e.status){var t=_t,n=an.current;an.current=on;var o=rn;rn=e.responseState;try{var r,a=e.pingedTasks;for(r=0;r<a.length;r++){var l=a[r],i=e,s=l.blockedSegment;if(0===s.status){Mt(l.context);try{fn(i,l,l.node),s.lastPushedText&&s.textEmbedded&&s.chunks.push(D),l.abortSet.delete(l),s.status=1,Sn(i,l.blockedBoundary,s)}catch(e){if(Jt(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=l.ping;e.then(c,c)}else{l.abortSet.delete(l),s.status=4;var d=l.blockedBoundary,u=e,p=un(i,u);null===d?pn(i,u):(d.pendingTasks--,d.forceClientRender||(d.forceClientRender=!0,d.errorDigest=p,d.parentFlushed&&i.clientRenderedBoundaries.push(d))),i.allPendingTasks--,0===i.allPendingTasks&&(0,i.onAllReady)()}}}}a.splice(0,r),null!==e.destination&&Tn(e,e.destination)}catch(t){un(e,t),pn(e,t)}finally{rn=o,an.current=n,n===on&&Mt(t)}}}function Cn(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var o=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,i(t,se),i(t,e.placeholderPrefix),i(t,e=u(o.toString(16))),s(t,ce);case 1:n.status=2;var a=!0;o=n.chunks;var l=0;n=n.children;for(var c=0;c<n.length;c++){for(a=n[c];l<a.index;l++)i(t,o[l]);a=In(e,t,a)}for(;l<o.length-1;l++)i(t,o[l]);return l<o.length&&(a=s(t,o[l])),a;default:throw Error(r(390))}}function In(e,t,n){var o=n.boundary;if(null===o)return Cn(e,t,n);if(o.parentFlushed=!0,o.forceClientRender)o=o.errorDigest,s(t,ge),i(t,he),o&&(i(t,fe),i(t,u(C(o))),i(t,be)),s(t,ve),Cn(e,t,n);else if(0<o.pendingTasks){o.rootSegmentID=e.nextSegmentId++,0<o.completedSegments.length&&e.partialBoundaries.push(o);var a=e.responseState,l=a.nextSuspenseID++;a=p(a.boundaryPrefix+l.toString(16)),o=o.id=a,ye(t,e.responseState,o),Cn(e,t,n)}else if(o.byteSize>e.progressiveChunkSize)o.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(o),ye(t,e.responseState,o.id),Cn(e,t,n);else{if(s(t,de),1!==(n=o.completedSegments).length)throw Error(r(391));In(e,t,n[0])}return s(t,me)}function On(e,t,n){return function(e,t,n,o){switch(n.insertionMode){case 0:case 1:return i(e,ke),i(e,t.segmentPrefix),i(e,u(o.toString(16))),s(e,xe);case 2:return i(e,_e),i(e,t.segmentPrefix),i(e,u(o.toString(16))),s(e,Se);case 3:return i(e,Ce),i(e,t.segmentPrefix),i(e,u(o.toString(16))),s(e,Ie);case 4:return i(e,Me),i(e,t.segmentPrefix),i(e,u(o.toString(16))),s(e,Pe);case 5:return i(e,Ee),i(e,t.segmentPrefix),i(e,u(o.toString(16))),s(e,Ae);case 6:return i(e,Le),i(e,t.segmentPrefix),i(e,u(o.toString(16))),s(e,Re);case 7:return i(e,De),i(e,t.segmentPrefix),i(e,u(o.toString(16))),s(e,Fe);default:throw Error(r(397))}}(t,e.responseState,n.formatContext,n.id),In(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return s(e,we);case 2:return s(e,je);case 3:return s(e,Oe);case 4:return s(e,Te);case 5:return s(e,Ne);case 6:return s(e,Be);case 7:return s(e,ze);default:throw Error(r(397))}}(t,n.formatContext)}function Mn(e,t,n){for(var o=n.completedSegments,a=0;a<o.length;a++)Pn(e,t,n,o[a]);if(o.length=0,e=e.responseState,o=n.id,n=n.rootSegmentID,i(t,e.startInlineScript),e.sentCompleteBoundaryFunction?i(t,Ze):(e.sentCompleteBoundaryFunction=!0,i(t,Ue)),null===o)throw Error(r(395));return n=u(n.toString(16)),i(t,o),i(t,Ge),i(t,e.segmentPrefix),i(t,n),s(t,qe)}function Pn(e,t,n,o){if(2===o.status)return!0;var a=o.id;if(-1===a){if(-1===(o.id=n.rootSegmentID))throw Error(r(392));return On(e,t,o)}return On(e,t,o),i(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?i(t,$e):(e.sentCompleteSegmentFunction=!0,i(t,He)),i(t,e.segmentPrefix),i(t,a=u(a.toString(16))),i(t,Ve),i(t,e.placeholderPrefix),i(t,a),s(t,We)}function Tn(e,t){a=new Uint8Array(512),l=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){In(e,t,n),e.completedRootSegment=null;var o=e.responseState.bootstrapChunks;for(n=0;n<o.length-1;n++)i(t,o[n]);n<o.length&&s(t,o[n])}var d,p=e.clientRenderedBoundaries;for(d=0;d<p.length;d++){var g=p[d];o=t;var m=e.responseState,h=g.id,b=g.errorDigest,f=g.errorMessage,v=g.errorComponentStack;if(i(o,m.startInlineScript),m.sentClientRenderFunction?i(o,Je):(m.sentClientRenderFunction=!0,i(o,Ke)),null===h)throw Error(r(395));if(i(o,h),i(o,Ye),(b||f||v)&&(i(o,Qe),i(o,u(tt(b||"")))),(f||v)&&(i(o,Qe),i(o,u(tt(f||"")))),v&&(i(o,Qe),i(o,u(tt(v)))),!s(o,Xe))return e.destination=null,d++,void p.splice(0,d)}p.splice(0,d);var y=e.completedBoundaries;for(d=0;d<y.length;d++)if(!Mn(e,t,y[d]))return e.destination=null,d++,void y.splice(0,d);y.splice(0,d),c(t),a=new Uint8Array(512),l=0;var k=e.partialBoundaries;for(d=0;d<k.length;d++){var x=k[d];e:{p=e,g=t;var w=x.completedSegments;for(m=0;m<w.length;m++)if(!Pn(p,g,x,w[m])){m++,w.splice(0,m);var _=!1;break e}w.splice(0,m),_=!0}if(!_)return e.destination=null,d++,void k.splice(0,d)}k.splice(0,d);var S=e.completedBoundaries;for(d=0;d<S.length;d++)if(!Mn(e,t,S[d]))return e.destination=null,d++,void S.splice(0,d);S.splice(0,d)}finally{c(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function En(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return xn(n,e,t)}),n.clear(),null!==e.destination&&Tn(e,e.destination)}catch(t){un(e,t),pn(e,t)}}t.renderToReadableStream=function(e,t){return new Promise(function(n,o){var r,a,l=new Promise(function(e,t){a=e,r=t}),i=function(e,t,n,o,r,a,l,i,s){var c=[],d=new Set;return(n=dn(t={destination:null,responseState:t,progressiveChunkSize:void 0===o?12800:o,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:d,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===r?ln:r,onAllReady:void 0===a?sn:a,onShellReady:void 0===l?sn:l,onShellError:void 0===i?sn:i,onFatalError:void 0===s?sn:s},0,null,n,!1,!1)).parentFlushed=!0,e=cn(t,e,null,n,d,xt,null,Et),c.push(e),t}(e,function(e,t,n,o,r){e=void 0===e?"":e,t=void 0===t?P:p('<script nonce="'+C(t)+'">');var a=[];if(void 0!==n&&a.push(t,u((""+n).replace(L,R)),T),void 0!==o)for(n=0;n<o.length;n++)a.push(E,u(C(o[n])),N);if(void 0!==r)for(o=0;o<r.length;o++)a.push(A,u(C(r[o])),N);return{bootstrapChunks:a,startInlineScript:t,placeholderPrefix:p(e+"P:"),segmentPrefix:p(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return B("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,a,function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===i.status)i.status=2,g(e,i.fatalError);else if(2!==i.status&&null===i.destination){i.destination=e;try{Tn(i,e)}catch(e){un(i,e),pn(i,e)}}},cancel:function(){En(i)}},{highWaterMark:0});e.allReady=l,n(e)},function(e){l.catch(function(){}),o(e)},r);if(t&&t.signal){var s=t.signal,c=function(){En(i,s.reason),s.removeEventListener("abort",c)};s.addEventListener("abort",c)}jn(i)})},t.version="18.3.1"},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,o=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,l=n?Symbol.for("react.strict_mode"):60108,i=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,u=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,g=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,b=n?Symbol.for("react.lazy"):60116,f=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,k=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case d:case u:case a:case i:case l:case g:return e;default:switch(e=e&&e.$$typeof){case c:case p:case b:case h:case s:return e;default:return t}}case r:return t}}}function w(e){return x(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=s,t.Element=o,t.ForwardRef=p,t.Fragment=a,t.Lazy=b,t.Memo=h,t.Portal=r,t.Profiler=i,t.StrictMode=l,t.Suspense=g,t.isAsyncMode=function(e){return w(e)||x(e)===d},t.isConcurrentMode=w,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===b},t.isMemo=function(e){return x(e)===h},t.isPortal=function(e){return x(e)===r},t.isProfiler=function(e){return x(e)===i},t.isStrictMode=function(e){return x(e)===l},t.isSuspense=function(e){return x(e)===g},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===i||e===l||e===g||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===y||e.$$typeof===k||e.$$typeof===f)},t.typeOf=x},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},3738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4146:(e,t,n)=>{"use strict";var o=n(3404),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function s(e){return o.isMemo(e)?l:i[e.$$typeof]||r}i[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[o.Memo]=l;var c=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,o){if("string"!=typeof n){if(m){var r=g(n);r&&r!==m&&e(t,r,o)}var l=d(n);u&&(l=l.concat(u(n)));for(var i=s(t),h=s(n),b=0;b<l.length;++b){var f=l[b];if(!(a[f]||o&&o[f]||h&&h[f]||i&&i[f])){var v=p(n,f);try{c(t,f,v)}catch(e){}}}}return t}},4634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},5127:()=>{!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=window.document,t=[],n=null,o=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(e,n){o=e&&n?u(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach(function(e){e._checkForIntersections()})}),n},a._resetCrossOriginUpdater=function(){n=null,o=null},a.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},a.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},a.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},a.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var o=this._checkForIntersections,r=null,a=null;if(this.POLL_INTERVAL?r=n.setInterval(o,this.POLL_INTERVAL):(l(n,"resize",o,!0),l(t,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(a=new n.MutationObserver(o)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push(function(){var e=t.defaultView;e&&(r&&e.clearInterval(r),i(e,"resize",o,!0)),i(t,"scroll",o,!0),a&&a.disconnect()}),t!=(this.root&&this.root.ownerDocument||e)){var s=m(t);s&&this._monitorIntersections(s.ownerDocument)}}},a.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var o=this.root&&this.root.ownerDocument||e,r=this._observationTargets.some(function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=o;){var r=m(n);if((n=r&&r.ownerDocument)==t)return!0}return!1});if(!r){var a=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),a(),t!=o){var l=m(t);l&&this._unmonitorIntersections(l.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},a.prototype._checkForIntersections=function(){if(this.root||!n||o){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(o){var a=o.element,l=c(a),i=this._rootContainsTarget(a),s=o.entry,d=e&&i&&this._computeTargetAndRootIntersection(a,l,t),u=o.entry=new r({time:window.performance&&performance.now&&performance.now(),target:a,boundingClientRect:l,rootBounds:n&&!this.root?null:t,intersectionRect:d});s?e&&i?this._hasCrossedThreshold(s,u)&&this._queuedEntries.push(u):s&&s.isIntersecting&&this._queuedEntries.push(u):this._queuedEntries.push(u)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(t,r,a){if("none"!=window.getComputedStyle(t).display){for(var l=r,i=g(t),d=!1;!d&&i;){var p=null,m=1==i.nodeType?window.getComputedStyle(i):{};if("none"==m.display)return null;if(i==this.root||9==i.nodeType)if(d=!0,i==this.root||i==e)n&&!this.root?!o||0==o.width&&0==o.height?(i=null,p=null,l=null):p=o:p=a;else{var h=g(i),b=h&&c(h),f=h&&this._computeTargetAndRootIntersection(h,b,a);b&&f?(i=h,p=u(b,f)):(i=null,l=null)}else{var v=i.ownerDocument;i!=v.body&&i!=v.documentElement&&"visible"!=m.overflow&&(p=c(i))}if(p&&(l=s(p,l)),!l)break;i=i&&g(i)}return l}},a.prototype._getRootRect=function(){var t;if(this.root)t=c(this.root);else{var n=e.documentElement,o=e.body;t={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},a.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},a.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,o=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==o)for(var r=0;r<this.thresholds.length;r++){var a=this.thresholds[r];if(a==n||a==o||a<n!=a<o)return!0}},a.prototype._rootIsInDom=function(){return!this.root||p(e,this.root)},a.prototype._rootContainsTarget=function(t){return p(this.root||e,t)&&(!this.root||this.root.ownerDocument==t.ownerDocument)},a.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},a.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=a,window.IntersectionObserverEntry=r}function r(e){this.time=e.time,this.target=e.target,this.rootBounds=d(e.rootBounds),this.boundingClientRect=d(e.boundingClientRect),this.intersectionRect=d(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,o=this.intersectionRect,r=o.width*o.height;this.intersectionRatio=n?Number((r/n).toFixed(4)):this.isIntersecting?1:0}function a(e,t){var n,o,r,a=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(a.root&&1!=a.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,r=null,function(){r||(r=setTimeout(function(){n(),r=null},o))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(a.rootMargin),this.thresholds=this._initThresholds(a.threshold),this.root=a.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function l(e,t,n,o){"function"==typeof e.addEventListener?e.addEventListener(t,n,o||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function i(e,t,n,o){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,o||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function s(e,t){var n=Math.max(e.top,t.top),o=Math.min(e.bottom,t.bottom),r=Math.max(e.left,t.left),a=Math.min(e.right,t.right),l=a-r,i=o-n;return l>=0&&i>=0&&{top:n,bottom:o,left:r,right:a,width:l,height:i}||null}function c(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function u(e,t){var n=t.top-e.top,o=t.left-e.left;return{top:n,left:o,height:t.height,width:t.width,bottom:n+t.height,right:o+t.width}}function p(e,t){for(var n=t;n;){if(n==e)return!0;n=g(n)}return!1}function g(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?m(t):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}function m(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}}()},5556:(e,t,n)=>{e.exports=n(2694)()},5848:(e,t,n)=>{"use strict";var o,r;o=n(7633),r=n(2911),o.version,t.F0=o.renderToString,o.renderToStaticMarkup,o.renderToNodeStream,o.renderToStaticNodeStream,r.renderToReadableStream},6305:(e,t,n)=>{var o=n(3738).default;function r(t,n){if("function"==typeof WeakMap)var a=new WeakMap,l=new WeakMap;return(e.exports=r=function(e,t){if(!t&&e&&e.__esModule)return e;var n,r,i={__proto__:null,default:e};if(null===e||"object"!=o(e)&&"function"!=typeof e)return i;if(n=t?l:a){if(n.has(e))return n.get(e);n.set(e,i)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((r=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(r.get||r.set)?n(i,s,r):i[s]=e[s]);return i},e.exports.__esModule=!0,e.exports.default=e.exports)(t,n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6942:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,a(n)))}return e}function a(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)o.call(e,n)&&e[n]&&(t=l(t,n));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},7529:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.translate=i,t.infiniteIndex=s,t.clampNumber=c,t.default=function(e,t){var u=t.doAfterSlide,p=t.doBeforeSlide,g=t.ease,m=t.infiniteLoop,h=t.initialSlide,b=t.numOfSlides,f=t.onNext,v=t.onPrev,y=t.slidesDOMEl,k=t.slideSpeed,x=t.items;if(null!==e){var w=h,_=!1,S=!1,j=0,C=0,I=0,O=0;return y.addEventListener(r,T),e.addEventListener("touchstart",E,l),e.addEventListener("touchmove",A,l),e.addEventListener("touchend",N,l),0!==w&&M(0),{clean:function(){return function(e){for(;e.childElementCount>1;)null!==e&&e.removeChild(e.lastChild);return!0}(y)},destroy:function(){e.removeEventListener("touchstart",E,l),e.removeEventListener("touchmove",A,l),e.removeEventListener("touchend",N,l),y.removeEventListener(r,T)},goTo:L,next:function(e){e.preventDefault(),e.stopPropagation(),P(!0)},prev:function(e){e.preventDefault(),e.stopPropagation(),P(!1)},slide:P,updateItems:function(e){x=e}}}function M(e,t,n){void 0===t&&(t=""),void 0===n&&(n=0);var o=100/b;y.style.cssText=function(e,t,n,o,r){return""+(""!==t?"transition-timing-function: "+t+";":"")+(e?"transition-duration: "+e+"ms;":"")+"transform: "+i(n,o,r)+";"}(e,t,w,n,o)}function P(e){var t=w+1*(!0===e?1:-1);m&&(t=s(t,x)),L(t=c(t,0,x-1))}function T(){!0===S&&(M(0),S=!1)}function E(e){var t=d(e);_=void 0,I=t.pageX,O=t.pageY}function A(e){if(!(e.touches.length>1||e.scale&&1!==e.scale)){var t=d(e);j=t.pageX-I,C=t.pageY-O,void 0!==_?_||(e.preventDefault(),M(0,n,-1*j)):(_=a(j)<a(C))||(document.ontouchmove=function(e){return e.preventDefault()})}}function N(){if(document.ontouchmove=function(){return!0},!_){var e=a(j)>o,t=j<0;!0===e&&!1==(!1===t&&0===w||!0===t&&w===x-1)?P(t):M(k,n)}j=C=I=O=0}function L(e){e!==w&&(e<=x&&(p({currentSlide:w,nextSlide:e}),e>w?f(e):v(e),w=e),M(k,g),y.addEventListener(r,function e(t){u({currentSlide:w}),t.currentTarget.removeEventListener(t.type,e)}))}};var n="linear",o=50,r="transitionend",a=Math.abs,l={passive:!1};function i(e,t,n){void 0===n&&(n=100);var o=e*n*-1;return"translate3d("+(t?"calc("+o+"% - "+t+"px)":o+"%")+", 0, 0)"}function s(e,t){return e<0?t-1:e>=t?0:e}function c(e,t,n){return Math.min(Math.max(e,t),n)}function d(e){return e.targetTouches?e.targetTouches[0]:e.touches[0]}},7633:(e,t,n)=>{"use strict";var o=n(1609);function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=Object.prototype.hasOwnProperty,l=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,i={},s={};function c(e){return!!a.call(s,e)||!a.call(i,e)&&(l.test(e)?s[e]=!0:(i[e]=!0,!1))}function d(e,t,n,o,r,a,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=l}var u={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){u[e]=new d(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];u[t]=new d(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){u[e]=new d(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){u[e]=new d(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){u[e]=new d(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){u[e]=new d(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){u[e]=new d(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){u[e]=new d(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){u[e]=new d(e,5,!1,e.toLowerCase(),null,!1,!1)});var p=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(p,g);u[t]=new d(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(p,g);u[t]=new d(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(p,g);u[t]=new d(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){u[e]=new d(e,1,!1,e.toLowerCase(),null,!1,!1)}),u.xlinkHref=new d("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){u[e]=new d(e,1,!1,e.toLowerCase(),null,!0,!0)});var m={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},h=["Webkit","ms","Moz","O"];Object.keys(m).forEach(function(e){h.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),m[t]=m[e]})});var b=/["'&<>]/;function f(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=b.exec(e);if(t){var n,o="",r=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t=""";break;case 38:t="&";break;case 39:t="'";break;case 60:t="<";break;case 62:t=">";break;default:continue}r!==n&&(o+=e.substring(r,n)),r=n+1,o+=t}e=r!==n?o+e.substring(r,n):o}return e}var v=/([A-Z])/g,y=/^ms-/,k=Array.isArray;function x(e,t){return{insertionMode:e,selectedValue:t}}var w=new Map;function _(e,t,n){if("object"!=typeof n)throw Error(r(62));for(var o in t=!0,n)if(a.call(n,o)){var l=n[o];if(null!=l&&"boolean"!=typeof l&&""!==l){if(0===o.indexOf("--")){var i=f(o);l=f((""+l).trim())}else{i=o;var s=w.get(i);void 0!==s||(s=f(i.replace(v,"-$1").toLowerCase().replace(y,"-ms-")),w.set(i,s)),i=s,l="number"==typeof l?0===l||a.call(m,o)?""+l:l+"px":f((""+l).trim())}t?(t=!1,e.push(' style="',i,":",l)):e.push(";",i,":",l)}}t||e.push('"')}function S(e,t,n,o){switch(n){case"style":return void _(e,t,o);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=u.hasOwnProperty(n)?u[n]:null)){switch(typeof o){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:o&&e.push(" ",n,'=""');break;case 4:!0===o?e.push(" ",n,'=""'):!1!==o&&e.push(" ",n,'="',f(o),'"');break;case 5:isNaN(o)||e.push(" ",n,'="',f(o),'"');break;case 6:!isNaN(o)&&1<=o&&e.push(" ",n,'="',f(o),'"');break;default:t.sanitizeURL&&(o=""+o),e.push(" ",n,'="',f(o),'"')}}else if(c(n)){switch(typeof o){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',f(o),'"')}}function j(e,t,n){if(null!=t){if(null!=n)throw Error(r(60));if("object"!=typeof t||!("__html"in t))throw Error(r(61));null!=(t=t.__html)&&e.push(""+t)}}function C(e,t,n,o){e.push(M(n));var r,l=n=null;for(r in t)if(a.call(t,r)){var i=t[r];if(null!=i)switch(r){case"children":n=i;break;case"dangerouslySetInnerHTML":l=i;break;default:S(e,o,r,i)}}return e.push(">"),j(e,l,n),"string"==typeof n?(e.push(f(n)),null):n}var I=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,O=new Map;function M(e){var t=O.get(e);if(void 0===t){if(!I.test(e))throw Error(r(65,e));t="<"+e,O.set(e,t)}return t}function P(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(r(395));return e.push(n),e.push('"></template>')}var T=/[<\u2028\u2029]/g;function E(e){return JSON.stringify(e).replace(T,function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}function A(e,t,n,o){return n.generateStaticMarkup?(e.push(f(t)),!1):(""===t?e=o:(o&&e.push("\x3c!-- --\x3e"),e.push(f(t)),e=!0),e)}var N=Object.assign,L=Symbol.for("react.element"),R=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),z=Symbol.for("react.provider"),H=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),G=Symbol.for("react.scope"),q=Symbol.for("react.debug_trace_mode"),K=Symbol.for("react.legacy_hidden"),J=Symbol.for("react.default_value"),Y=Symbol.iterator;function X(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case B:return"Fragment";case R:return"Portal";case F:return"Profiler";case D:return"StrictMode";case V:return"Suspense";case W:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case H:return(e.displayName||"Context")+".Consumer";case z:return(e._context.displayName||"Context")+".Provider";case $:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case U:return null!==(t=e.displayName||null)?t:X(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return X(e(t))}catch(e){}}return null}var Q={};function ee(e,t){if(!(e=e.contextTypes))return Q;var n,o={};for(n in e)o[n]=t[n];return o}var te=null;function ne(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(r(401))}else{if(null===n)throw Error(r(401));ne(e,n)}t.context._currentValue2=t.value}}function oe(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&oe(e)}function re(e){var t=e.parent;null!==t&&re(t),e.context._currentValue2=e.value}function ae(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(r(402));e.depth===t.depth?ne(e,t):ae(e,t)}function le(e,t){var n=t.parent;if(null===n)throw Error(r(402));e.depth===n.depth?ne(e,n):le(e,n),t.context._currentValue2=t.value}function ie(e){var t=te;t!==e&&(null===t?re(e):null===e?oe(t):t.depth===e.depth?ne(t,e):t.depth>e.depth?ae(t,e):le(t,e),te=e)}var se={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ce(e,t,n,o){var r=void 0!==e.state?e.state:null;e.updater=se,e.props=n,e.state=r;var a={queue:[],replace:!1};e._reactInternals=a;var l=t.contextType;if(e.context="object"==typeof l&&null!==l?l._currentValue2:o,"function"==typeof(l=t.getDerivedStateFromProps)&&(r=null==(l=l(n,r))?r:N({},r,l),e.state=r),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&se.enqueueReplaceState(e,e.state,null),null!==a.queue&&0<a.queue.length)if(t=a.queue,l=a.replace,a.queue=null,a.replace=!1,l&&1===t.length)e.state=t[0];else{for(a=l?t[0]:e.state,r=!0,l=l?1:0;l<t.length;l++){var i=t[l];null!=(i="function"==typeof i?i.call(e,a,n,o):i)&&(r?(r=!1,a=N({},a,i)):N(a,i))}e.state=a}else a.queue=null}var de={id:1,overflow:""};function ue(e,t,n){var o=e.id;e=e.overflow;var r=32-pe(o)-1;o&=~(1<<r),n+=1;var a=32-pe(t)+r;if(30<a){var l=r-r%5;return a=(o&(1<<l)-1).toString(32),o>>=l,r-=l,{id:1<<32-pe(t)+r|n<<r|o,overflow:a+e}}return{id:1<<a|n<<r|o,overflow:e}}var pe=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(ge(e)/me|0)|0},ge=Math.log,me=Math.LN2,he="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},be=null,fe=null,ve=null,ye=null,ke=!1,xe=!1,we=0,_e=null,Se=0;function je(){if(null===be)throw Error(r(321));return be}function Ce(){if(0<Se)throw Error(r(312));return{memoizedState:null,queue:null,next:null}}function Ie(){return null===ye?null===ve?(ke=!1,ve=ye=Ce()):(ke=!0,ye=ve):null===ye.next?(ke=!1,ye=ye.next=Ce()):(ke=!0,ye=ye.next),ye}function Oe(){fe=be=null,xe=!1,ve=null,Se=0,ye=_e=null}function Me(e,t){return"function"==typeof t?t(e):t}function Pe(e,t,n){if(be=je(),ye=Ie(),ke){var o=ye.queue;if(t=o.dispatch,null!==_e&&void 0!==(n=_e.get(o))){_e.delete(o),o=ye.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return ye.memoizedState=o,[o,t]}return[ye.memoizedState,t]}return e=e===Me?"function"==typeof t?t():t:void 0!==n?n(t):t,ye.memoizedState=e,e=(e=ye.queue={last:null,dispatch:null}).dispatch=Ee.bind(null,be,e),[ye.memoizedState,e]}function Te(e,t){if(be=je(),t=void 0===t?null:t,null!==(ye=Ie())){var n=ye.memoizedState;if(null!==n&&null!==t){var o=n[1];e:if(null===o)o=!1;else{for(var r=0;r<o.length&&r<t.length;r++)if(!he(t[r],o[r])){o=!1;break e}o=!0}if(o)return n[0]}}return e=e(),ye.memoizedState=[e,t],e}function Ee(e,t,n){if(25<=Se)throw Error(r(301));if(e===be)if(xe=!0,e={action:n,next:null},null===_e&&(_e=new Map),void 0===(n=_e.get(t)))_e.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Ae(){throw Error(r(394))}function Ne(){}var Le={readContext:function(e){return e._currentValue2},useContext:function(e){return je(),e._currentValue2},useMemo:Te,useReducer:Pe,useRef:function(e){be=je();var t=(ye=Ie()).memoizedState;return null===t?(e={current:e},ye.memoizedState=e):t},useState:function(e){return Pe(Me,e)},useInsertionEffect:Ne,useLayoutEffect:function(){},useCallback:function(e,t){return Te(function(){return e},t)},useImperativeHandle:Ne,useEffect:Ne,useDebugValue:Ne,useDeferredValue:function(e){return je(),e},useTransition:function(){return je(),[!1,Ae]},useId:function(){var e=fe.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-pe(e)-1)).toString(32)+t;var n=Re;if(null===n)throw Error(r(404));return t=we++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return je(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(r(407));return n()}},Re=null,Be=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function De(e){return console.error(e),null}function Fe(){}function ze(e,t,n,o,r,a,l,i){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var s={node:t,ping:function(){var t=e.pingedTasks;t.push(s),1===t.length&&tt(e)},blockedBoundary:n,blockedSegment:o,abortSet:r,legacyContext:a,context:l,treeContext:i};return r.add(s),s}function He(e,t,n,o,r,a){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:o,boundary:n,lastPushedText:r,textEmbedded:a}}function $e(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function Ve(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function We(e,t,n,o,r){for(be={},fe=t,we=0,e=n(o,r);xe;)xe=!1,we=0,Se+=1,ye=null,e=n(o,r);return Oe(),e}function Ue(e,t,n,o){var a=n.render(),l=o.childContextTypes;if(null!=l){var i=t.legacyContext;if("function"!=typeof n.getChildContext)o=i;else{for(var s in n=n.getChildContext())if(!(s in l))throw Error(r(108,X(o)||"Unknown",s));o=N({},i,n)}t.legacyContext=o,qe(e,t,a),t.legacyContext=i}else qe(e,t,a)}function Ze(e,t){if(e&&e.defaultProps){for(var n in t=N({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Ge(e,t,n,l,i){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){i=ee(n,t.legacyContext);var s=n.contextType;ce(s=new n(l,"object"==typeof s&&null!==s?s._currentValue2:i),n,l,i),Ue(e,t,s,n)}else{i=We(e,t,n,l,s=ee(n,t.legacyContext));var d=0!==we;if("object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof)ce(i,n,l,s),Ue(e,t,i,n);else if(d){l=t.treeContext,t.treeContext=ue(l,1,0);try{qe(e,t,i)}finally{t.treeContext=l}}else qe(e,t,i)}else{if("string"!=typeof n){switch(n){case K:case q:case D:case F:case B:case W:return void qe(e,t,l.children);case G:throw Error(r(343));case V:e:{n=t.blockedBoundary,i=t.blockedSegment,s=l.fallback,l=l.children;var u={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:d=new Set,errorDigest:null},p=He(0,i.chunks.length,u,i.formatContext,!1,!1);i.children.push(p),i.lastPushedText=!1;var g=He(0,0,null,i.formatContext,!1,!1);g.parentFlushed=!0,t.blockedBoundary=u,t.blockedSegment=g;try{if(Je(e,t,l),e.responseState.generateStaticMarkup||g.lastPushedText&&g.textEmbedded&&g.chunks.push("\x3c!-- --\x3e"),g.status=1,Qe(u,g),0===u.pendingTasks)break e}catch(t){g.status=4,u.forceClientRender=!0,u.errorDigest=$e(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=ze(e,s,n,p,d,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case $:if(l=We(e,t,n.render,l,i),0!==we){n=t.treeContext,t.treeContext=ue(n,1,0);try{qe(e,t,l)}finally{t.treeContext=n}}else qe(e,t,l);return;case U:return void Ge(e,t,n=n.type,l=Ze(n,l),i);case z:if(i=l.children,n=n._context,l=l.value,s=n._currentValue2,n._currentValue2=l,te=l={parent:d=te,depth:null===d?0:d.depth+1,context:n,parentValue:s,value:l},t.context=l,qe(e,t,i),null===(e=te))throw Error(r(403));return l=e.parentValue,e.context._currentValue2=l===J?e.context._defaultValue:l,e=te=e.parent,void(t.context=e);case H:return void qe(e,t,l=(l=l.children)(n._currentValue2));case Z:return void Ge(e,t,n=(i=n._init)(n._payload),l=Ze(n,l),void 0)}throw Error(r(130,null==n?n:typeof n,""))}switch(s=function(e,t,n,l,i){switch(t){case"select":e.push(M("select"));var s=null,d=null;for(m in n)if(a.call(n,m)){var u=n[m];if(null!=u)switch(m){case"children":s=u;break;case"dangerouslySetInnerHTML":d=u;break;case"defaultValue":case"value":break;default:S(e,l,m,u)}}return e.push(">"),j(e,d,s),s;case"option":d=i.selectedValue,e.push(M("option"));var p=u=null,g=null,m=null;for(s in n)if(a.call(n,s)){var h=n[s];if(null!=h)switch(s){case"children":u=h;break;case"selected":g=h;break;case"dangerouslySetInnerHTML":m=h;break;case"value":p=h;default:S(e,l,s,h)}}if(null!=d)if(n=null!==p?""+p:function(e){var t="";return o.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(u),k(d)){for(l=0;l<d.length;l++)if(""+d[l]===n){e.push(' selected=""');break}}else""+d===n&&e.push(' selected=""');else g&&e.push(' selected=""');return e.push(">"),j(e,m,u),u;case"textarea":for(u in e.push(M("textarea")),m=d=s=null,n)if(a.call(n,u)&&null!=(p=n[u]))switch(u){case"children":m=p;break;case"value":s=p;break;case"defaultValue":d=p;break;case"dangerouslySetInnerHTML":throw Error(r(91));default:S(e,l,u,p)}if(null===s&&null!==d&&(s=d),e.push(">"),null!=m){if(null!=s)throw Error(r(92));if(k(m)&&1<m.length)throw Error(r(93));s=""+m}return"string"==typeof s&&"\n"===s[0]&&e.push("\n"),null!==s&&e.push(f(""+s)),null;case"input":for(d in e.push(M("input")),p=m=u=s=null,n)if(a.call(n,d)&&null!=(g=n[d]))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,"input"));case"defaultChecked":p=g;break;case"defaultValue":u=g;break;case"checked":m=g;break;case"value":s=g;break;default:S(e,l,d,g)}return null!==m?S(e,l,"checked",m):null!==p&&S(e,l,"checked",p),null!==s?S(e,l,"value",s):null!==u&&S(e,l,"value",u),e.push("/>"),null;case"menuitem":for(var b in e.push(M("menuitem")),n)if(a.call(n,b)&&null!=(s=n[b]))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(r(400));default:S(e,l,b,s)}return e.push(">"),null;case"title":for(h in e.push(M("title")),s=null,n)if(a.call(n,h)&&null!=(d=n[h]))switch(h){case"children":s=d;break;case"dangerouslySetInnerHTML":throw Error(r(434));default:S(e,l,h,d)}return e.push(">"),s;case"listing":case"pre":for(p in e.push(M(t)),d=s=null,n)if(a.call(n,p)&&null!=(u=n[p]))switch(p){case"children":s=u;break;case"dangerouslySetInnerHTML":d=u;break;default:S(e,l,p,u)}if(e.push(">"),null!=d){if(null!=s)throw Error(r(60));if("object"!=typeof d||!("__html"in d))throw Error(r(61));null!=(n=d.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"==typeof s&&"\n"===s[0]&&e.push("\n"),s;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var v in e.push(M(t)),n)if(a.call(n,v)&&null!=(s=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(r(399,t));default:S(e,l,v,s)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return C(e,n,t,l);case"html":return 0===i.insertionMode&&e.push("<!DOCTYPE html>"),C(e,n,t,l);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return C(e,n,t,l);for(g in e.push(M(t)),d=s=null,n)if(a.call(n,g)&&null!=(u=n[g]))switch(g){case"children":s=u;break;case"dangerouslySetInnerHTML":d=u;break;case"style":_(e,l,u);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:c(g)&&"function"!=typeof u&&"symbol"!=typeof u&&e.push(" ",g,'="',f(u),'"')}return e.push(">"),j(e,d,s),s}}((i=t.blockedSegment).chunks,n,l,e.responseState,i.formatContext),i.lastPushedText=!1,d=i.formatContext,i.formatContext=function(e,t,n){switch(t){case"select":return x(1,null!=n.value?n.value:n.defaultValue);case"svg":return x(2,null);case"math":return x(3,null);case"foreignObject":return x(1,null);case"table":return x(4,null);case"thead":case"tbody":case"tfoot":return x(5,null);case"colgroup":return x(7,null);case"tr":return x(6,null)}return 4<=e.insertionMode||0===e.insertionMode?x(1,null):e}(d,n,l),Je(e,t,s),i.formatContext=d,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push("</",n,">")}i.lastPushedText=!1}}function qe(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case L:return void Ge(e,t,n.type,n.props,n.ref);case R:throw Error(r(257));case Z:var o=n._init;return void qe(e,t,n=o(n._payload))}if(k(n))return void Ke(e,t,n);if((o=null===n||"object"!=typeof n?null:"function"==typeof(o=Y&&n[Y]||n["@@iterator"])?o:null)&&(o=o.call(n))){if(!(n=o.next()).done){var a=[];do{a.push(n.value),n=o.next()}while(!n.done);Ke(e,t,a)}return}throw e=Object.prototype.toString.call(n),Error(r(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(o=t.blockedSegment).lastPushedText=A(t.blockedSegment.chunks,n,e.responseState,o.lastPushedText):"number"==typeof n&&((o=t.blockedSegment).lastPushedText=A(t.blockedSegment.chunks,""+n,e.responseState,o.lastPushedText))}function Ke(e,t,n){for(var o=n.length,r=0;r<o;r++){var a=t.treeContext;t.treeContext=ue(a,o,r);try{Je(e,t,n[r])}finally{t.treeContext=a}}}function Je(e,t,n){var o=t.blockedSegment.formatContext,r=t.legacyContext,a=t.context;try{return qe(e,t,n)}catch(s){if(Oe(),"object"!=typeof s||null===s||"function"!=typeof s.then)throw t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=a,ie(a),s;n=s;var l=t.blockedSegment,i=He(0,l.chunks.length,null,l.formatContext,l.lastPushedText,!0);l.children.push(i),l.lastPushedText=!1,e=ze(e,t.node,t.blockedBoundary,i,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=o,t.legacyContext=r,t.context=a,ie(a)}}function Ye(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,et(this,t,e)}function Xe(e,t,n){var o=e.blockedBoundary;e.blockedSegment.status=3,null===o?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(o.pendingTasks--,o.forceClientRender||(o.forceClientRender=!0,e=void 0===n?Error(r(432)):n,o.errorDigest=t.onError(e),o.parentFlushed&&t.clientRenderedBoundaries.push(o)),o.fallbackAbortableTasks.forEach(function(e){return Xe(e,t,n)}),o.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(o=t.onAllReady)())}function Qe(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Qe(e,n)}else e.completedSegments.push(t)}function et(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(r(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=Fe,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Qe(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Ye,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Qe(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function tt(e){if(2!==e.status){var t=te,n=Be.current;Be.current=Le;var o=Re;Re=e.responseState;try{var r,a=e.pingedTasks;for(r=0;r<a.length;r++){var l=a[r],i=e,s=l.blockedSegment;if(0===s.status){ie(l.context);try{qe(i,l,l.node),i.responseState.generateStaticMarkup||s.lastPushedText&&s.textEmbedded&&s.chunks.push("\x3c!-- --\x3e"),l.abortSet.delete(l),s.status=1,et(i,l.blockedBoundary,s)}catch(e){if(Oe(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=l.ping;e.then(c,c)}else{l.abortSet.delete(l),s.status=4;var d=l.blockedBoundary,u=e,p=$e(i,u);null===d?Ve(i,u):(d.pendingTasks--,d.forceClientRender||(d.forceClientRender=!0,d.errorDigest=p,d.parentFlushed&&i.clientRenderedBoundaries.push(d))),i.allPendingTasks--,0===i.allPendingTasks&&(0,i.onAllReady)()}}}}a.splice(0,r),null!==e.destination&&it(e,e.destination)}catch(t){$e(e,t),Ve(e,t)}finally{Re=o,Be.current=n,n===Le&&ie(t)}}}function nt(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var o=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=o.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var a=!0;o=n.chunks;var l=0;n=n.children;for(var i=0;i<n.length;i++){for(a=n[i];l<a.index;l++)t.push(o[l]);a=ot(e,t,a)}for(;l<o.length-1;l++)t.push(o[l]);return l<o.length&&(a=t.push(o[l])),a;default:throw Error(r(390))}}function ot(e,t,n){var o=n.boundary;if(null===o)return nt(e,t,n);if(o.parentFlushed=!0,o.forceClientRender)return e.responseState.generateStaticMarkup||(o=o.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),o&&(t.push(' data-dgst="'),o=f(o),t.push(o),t.push('"')),t.push("></template>")),nt(e,t,n),!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<o.pendingTasks){o.rootSegmentID=e.nextSegmentId++,0<o.completedSegments.length&&e.partialBoundaries.push(o);var a=e.responseState,l=a.nextSuspenseID++;return a=a.boundaryPrefix+l.toString(16),o=o.id=a,P(t,e.responseState,o),nt(e,t,n),t.push("\x3c!--/$--\x3e")}if(o.byteSize>e.progressiveChunkSize)return o.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(o),P(t,e.responseState,o.id),nt(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=o.completedSegments).length)throw Error(r(391));return ot(e,t,n[0]),!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function rt(e,t,n){return function(e,t,n,o){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');default:throw Error(r(397))}}(t,e.responseState,n.formatContext,n.id),ot(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(r(397))}}(t,n.formatContext)}function at(e,t,n){for(var o=n.completedSegments,a=0;a<o.length;a++)lt(e,t,n,o[a]);if(o.length=0,e=e.responseState,o=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===o)throw Error(r(395));return n=n.toString(16),t.push(o),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function lt(e,t,n,o){if(2===o.status)return!0;var a=o.id;if(-1===a){if(-1===(o.id=n.rootSegmentID))throw Error(r(392));return rt(e,t,o)}return rt(e,t,o),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),a=a.toString(16),t.push(a),t.push('","'),t.push(e.placeholderPrefix),t.push(a),t.push('")<\/script>')}function it(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){ot(e,t,n),e.completedRootSegment=null;var o=e.responseState.bootstrapChunks;for(n=0;n<o.length-1;n++)t.push(o[n]);n<o.length&&t.push(o[n])}var a,l=e.clientRenderedBoundaries;for(a=0;a<l.length;a++){var i=l[a];o=t;var s=e.responseState,c=i.id,d=i.errorDigest,u=i.errorMessage,p=i.errorComponentStack;if(o.push(s.startInlineScript),s.sentClientRenderFunction?o.push('$RX("'):(s.sentClientRenderFunction=!0,o.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===c)throw Error(r(395));if(o.push(c),o.push('"'),d||u||p){o.push(",");var g=E(d||"");o.push(g)}if(u||p){o.push(",");var m=E(u||"");o.push(m)}if(p){o.push(",");var h=E(p);o.push(h)}if(!o.push(")<\/script>"))return e.destination=null,a++,void l.splice(0,a)}l.splice(0,a);var b=e.completedBoundaries;for(a=0;a<b.length;a++)if(!at(e,t,b[a]))return e.destination=null,a++,void b.splice(0,a);b.splice(0,a);var f=e.partialBoundaries;for(a=0;a<f.length;a++){var v=f[a];e:{l=e,i=t;var y=v.completedSegments;for(s=0;s<y.length;s++)if(!lt(l,i,v,y[s])){s++,y.splice(0,s);var k=!1;break e}y.splice(0,s),k=!0}if(!k)return e.destination=null,a++,void f.splice(0,a)}f.splice(0,a);var x=e.completedBoundaries;for(a=0;a<x.length;a++)if(!at(e,t,x[a]))return e.destination=null,a++,void x.splice(0,a);x.splice(0,a)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function st(e,t){try{var n=e.abortableTasks;n.forEach(function(n){return Xe(n,e,t)}),n.clear(),null!==e.destination&&it(e,e.destination)}catch(t){$e(e,t),Ve(e,t)}}function ct(){}function dt(e,t,n,o){var a=!1,l=null,i="",s={push:function(e){return null!==e&&(i+=e),!0},destroy:function(e){a=!0,l=e}},c=!1;if(e=function(e,t,n,o,r,a,l){var i=[],s=new Set;return(n=He(t={destination:null,responseState:t,progressiveChunkSize:o,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:s,pingedTasks:i,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===r?De:r,onAllReady:Fe,onShellReady:void 0===l?Fe:l,onShellError:Fe,onFatalError:Fe},0,null,n,!1,!1)).parentFlushed=!0,e=ze(t,e,null,n,s,Q,null,de),i.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ct,0,function(){c=!0}),tt(e),st(e,o),1===e.status)e.status=2,s.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=s;try{it(e,s)}catch(t){$e(e,t),Ve(e,t)}}if(a)throw l;if(!c)throw Error(r(426));return i}t.renderToNodeStream=function(){throw Error(r(207))},t.renderToStaticMarkup=function(e,t){return dt(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(r(208))},t.renderToString=function(e,t){return dt(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.3.1"},9039:(e,t,n)=>{n(1528)},9893:(e,t,n)=>{"use strict";var o=n(6305),r=n(4994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.ArrowLeft,n=e.ArrowRight,o=e.children,r=e.classNameBase,u=e.doAfterDestroy,p=e.doAfterInit,g=e.doAfterSlide,m=e.doBeforeSlide,h=e.ease,b=e.infiniteLoop,f=e.initialSlide,v=e.itemsToPreload,y=e.keyboardNavigation,k=e.numOfSlides,x=e.showArrows,w=e.slide,_=e.slideSpeed,S=(0,l.useState)({goTo:c,next:c,prev:c,updateItems:c}),j=S[0],C=S[1],I=(0,l.useState)(f),O=I[0],M=I[1],P=(0,l.useState)(f),T=P[0],E=P[1],A=(0,l.useRef)(null),N=(0,l.useRef)(null),L=function(e){return Array.isArray(e)?e:[e]}(o);(0,l.useEffect)(function(){w!==O&&j.goTo(w)},[w]),(0,l.useEffect)(function(){var e,t=(0,i.default)(A.current,{ease:h,doAfterSlide:g,doBeforeSlide:m,numOfSlides:k,slideSpeed:_,infiniteLoop:b,slidesDOMEl:N.current,initialSlide:O,items:L.length,onNext:function(e){return M(e),e>T&&E(e),e},onPrev:function(e){return M(e),e}});return C(t),p(),y&&(e=function(e){39===e.keyCode?t.next(e):37===e.keyCode&&t.prev(e)},document.addEventListener("keydown",e)),function(){!function(e,t){e&&e.clean()&&e.destroy(),t()}(t,u),y&&document.removeEventListener("keydown",e)}},[]),(0,l.useEffect)(function(){j&&j.updateItems(L.length)});var R,B,D=function(e){var t=e.index,n=e.maxIndex,o=e.items,r=e.itemsToPreload,a=e.numOfSlides,l=Math.max(r,a);if(t>=o.length-a){var i=o.length>a?o.slice(0,a-1):[];return[].concat(o.slice(0,n+l),i)}return o.slice(0,n+l)}({index:O,maxIndex:T,items:L,itemsToPreload:v,numOfSlides:k}),F=function(e){return L.length>k&&j.next(e)};return(0,s.jsxs)(s.Fragment,{children:[x&&(0,s.jsxs)(s.Fragment,{children:[(R={disabled:0===O&&!b,onClick:function(e){return j.prev(e)}},B=r+"-arrow "+r+"-arrowLeft",t?(0,s.jsx)(t,(0,a.default)({},R,{className:B})):(0,s.jsx)("span",(0,a.default)({"aria-label":"Previous",className:B+" "+r+"-prev",role:"button"},R))),function(){var e={disabled:(L.length<=k||O===L.length-1)&&!b,onClick:F},t=r+"-arrow "+r+"-arrowRight";return n?(0,s.jsx)(n,(0,a.default)({},e,{className:t})):(0,s.jsx)("span",(0,a.default)({"aria-label":"Next",className:t+" "+r+"-next",role:"button"},e))}()]}),(0,s.jsx)("div",{ref:A,children:(0,s.jsx)("ul",{ref:N,children:D.map(d(k))})})]})};var a=r(n(4634)),l=o(n(1609)),i=r(n(7529)),s=n(790);function c(e){}l.default.createElement;var d=function(e){return function(t,n){var o=1!==e?{width:100/e+"%"}:{};return(0,s.jsx)("li",{style:o,children:t},n)}}}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.m=t,e=[],o.O=(t,n,r,a)=>{if(!n){var l=1/0;for(d=0;d<e.length;d++){for(var[n,r,a]=e[d],i=!0,s=0;s<n.length;s++)(!1&a||l>=a)&&Object.keys(o.O).every(e=>o.O[e](n[s]))?n.splice(s--,1):(i=!1,a<l&&(l=a));if(i){e.splice(d--,1);var c=r();void 0!==c&&(t=c)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[n,r,a]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={48:0,29:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var r,a,[l,i,s]=n,c=0;if(l.some(t=>0!==e[t])){for(r in i)o.o(i,r)&&(o.m[r]=i[r]);if(s)var d=s(o)}for(t&&t(n);c<l.length;c++)a=l[c],o.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return o.O(d)},n=globalThis.webpackChunkkadence=globalThis.webpackChunkkadence||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=o.O(void 0,[29],()=>o(595));r=o.O(r),(this.kadence=this.kadence||{})["blocks-rowlayout"]=r})();
| ver. 1.4 |
Github
|
.
| PHP 8.1.32 | Генераци� �траницы: 0.04 |
proxy
|
phpinfo
|
�а�тройка