AlkantarClanX12
Your IP : 216.73.217.24
(()=>{var e={27(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"}))});e.exports=n},287(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"}))});e.exports=n},818(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))});e.exports=n},894(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))});e.exports=n},1298(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"}))});e.exports=n},1609(e){"use strict";e.exports=window.React},1802(e){"use strict";e.exports=window.yoast.propTypes},1878(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))});e.exports=n},2455(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))});e.exports=n},2485(e,t){var s;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var o=typeof s;if("string"===o||"number"===o)e.push(s);else if(Array.isArray(s)){if(s.length){var a=n.apply(null,s);a&&e.push(a)}}else if("object"===o){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var i in s)r.call(s,i)&&s[i]&&e.push(i)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(s=function(){return n}.apply(t,[]))||(e.exports=s)}()},2499(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}))});e.exports=n},2514(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))});e.exports=n},3473(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))});e.exports=n},3527(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))});e.exports=n},4198(e,t){var s;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var o=typeof s;if("string"===o||"number"===o)e.push(s);else if(Array.isArray(s)&&s.length){var a=n.apply(null,s);a&&e.push(a)}else if("object"===o)for(var i in s)r.call(s,i)&&s[i]&&e.push(i)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(s=function(){return n}.apply(t,[]))||(e.exports=s)}()},4610(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"}))});e.exports=n},4892(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"}))});e.exports=n},4925(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"}))});e.exports=n},5036(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"}))});e.exports=n},5074(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))});e.exports=n},5582(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"}))});e.exports=n},5687(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))});e.exports=n},6049(e){for(var t=[],s=0;s<256;++s)t[s]=(s+256).toString(16).substr(1);e.exports=function(e,s){var r=s||0,n=t;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}},6141(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))});e.exports=n},6555(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"}),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"}))});e.exports=n},6650(e,t,s){"use strict";var r="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},n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},o=function(){function e(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,s,r){return s&&e(t.prototype,s),r&&e(t,r),t}}(),a=c(s(1609)),i=c(s(1802)),l=c(s(4198));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var u={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"},p=["animateOpacity","animationStateClasses","applyInlineTransitions","children","contentClassName","delay","duration","easing","height","onAnimationEnd","onAnimationStart"];function m(e){for(var t=arguments.length,s=Array(t>1?t-1:0),r=1;r<t;r++)s[r-1]=arguments[r];if(!s.length)return e;for(var n={},o=Object.keys(e),a=0;a<o.length;a++){var i=o[a];-1===s.indexOf(i)&&(n[i]=e[i])}return n}function h(e){e.forEach(function(e){return cancelAnimationFrame(e)})}function f(e){return!isNaN(parseFloat(e))&&isFinite(e)}function y(e){return"string"==typeof e&&e.search("%")===e.length-1&&f(e.substr(0,e.length-1))}function g(e,t){e&&"function"==typeof e&&e(t)}var v=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 s=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));s.animationFrameIDs=[];var r="auto",o="visible";f(e.height)?(r=e.height<0||"0"===e.height?0:e.height,o="hidden"):y(e.height)&&(r="0%"===e.height?0:e.height,o="hidden"),s.animationStateClasses=n({},u,e.animationStateClasses);var a=s.getStaticStateClasses(r);return s.state={animationStateClasses:a,height:r,overflow:o,shouldUseTransitions:!1},s}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(){var e=this.state.height;this.contentElement&&this.contentElement.style&&this.hideContent(e)}},{key:"componentDidUpdate",value:function(e,t){var s,r,n=this,o=this.props,a=o.delay,i=o.duration,c=o.height,u=o.onAnimationEnd,p=o.onAnimationStart;if(this.contentElement&&c!==e.height){var m;this.showContent(t.height),this.contentElement.style.overflow="hidden";var v=this.contentElement.offsetHeight;this.contentElement.style.overflow="";var b=i+a,x=null,w={height:null,overflow:"hidden"},S="auto"===t.height;f(c)?(x=c<0||"0"===c?0:c,w.height=x):y(c)?(x="0%"===c?0:c,w.height=x):(x=v,w.height="auto",w.overflow=null),S&&(w.height=x,x=v);var _=(0,l.default)((d(m={},this.animationStateClasses.animating,!0),d(m,this.animationStateClasses.animatingUp,"auto"===e.height||c<e.height),d(m,this.animationStateClasses.animatingDown,"auto"===c||c>e.height),d(m,this.animationStateClasses.animatingToHeightZero,0===w.height),d(m,this.animationStateClasses.animatingToHeightAuto,"auto"===w.height),d(m,this.animationStateClasses.animatingToHeightSpecific,w.height>0),m)),E=this.getStaticStateClasses(w.height);this.setState({animationStateClasses:_,height:x,overflow:"hidden",shouldUseTransitions:!S}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),S?(w.shouldUseTransitions=!0,h(this.animationFrameIDs),this.animationFrameIDs=(s=function(){n.setState(w),g(p,{newHeight:w.height})},(r=[])[0]=requestAnimationFrame(function(){r[1]=requestAnimationFrame(function(){s()})}),r),this.animationClassesTimeoutID=setTimeout(function(){n.setState({animationStateClasses:E,shouldUseTransitions:!1}),n.hideContent(w.height),g(u,{newHeight:w.height})},b)):(g(p,{newHeight:x}),this.timeoutID=setTimeout(function(){w.animationStateClasses=E,w.shouldUseTransitions=!1,n.setState(w),"auto"!==c&&n.hideContent(x),g(u,{newHeight:x})},b))}}},{key:"componentWillUnmount",value:function(){h(this.animationFrameIDs),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null,this.animationClassesTimeoutID=null,this.animationStateClasses=null}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,l.default)((d(t={},this.animationStateClasses.static,!0),d(t,this.animationStateClasses.staticHeightZero,0===e),d(t,this.animationStateClasses.staticHeightSpecific,e>0),d(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,s=this.props,r=s.animateOpacity,o=s.applyInlineTransitions,i=s.children,c=s.className,u=s.contentClassName,h=s.delay,f=s.duration,y=s.easing,g=s.id,v=s.style,b=this.state,x=b.height,w=b.overflow,S=b.animationStateClasses,_=b.shouldUseTransitions,E=n({},v,{height:x,overflow:w||v.overflow});_&&o&&(E.transition="height "+f+"ms "+y+" "+h+"ms",v.transition&&(E.transition=v.transition+", "+E.transition),E.WebkitTransition=E.transition);var j={};r&&(j.transition="opacity "+f+"ms "+y+" "+h+"ms",j.WebkitTransition=j.transition,0===x&&(j.opacity=0));var k=(0,l.default)((d(e={},S,!0),d(e,c,c),e)),C=void 0!==this.props["aria-hidden"]?this.props["aria-hidden"]:0===x;return a.default.createElement("div",n({},m.apply(void 0,[this.props].concat(p)),{"aria-hidden":C,className:k,id:g,style:E}),a.default.createElement("div",{className:u,style:j,ref:function(e){return t.contentElement=e}},i))}}]),t}(a.default.Component);v.propTypes={"aria-hidden":i.default.bool,animateOpacity:i.default.bool,animationStateClasses:i.default.object,applyInlineTransitions:i.default.bool,children:i.default.any.isRequired,className:i.default.string,contentClassName:i.default.string,delay:i.default.number,duration:i.default.number,easing:i.default.string,height:function(e,t,s){var n=e[t];return"number"==typeof n&&n>=0||y(n)||"auto"===n?null:new TypeError('value "'+n+'" of type "'+(void 0===n?"undefined":r(n))+'" is invalid type for '+t+" in "+s+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},id:i.default.string,onAnimationEnd:i.default.func,onAnimationStart:i.default.func,style:i.default.object},v.defaultProps={animateOpacity:!1,animationStateClasses:u,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.A=v},6702(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))});e.exports=n},7651(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))});e.exports=n},8140(e,t,s){var r=s(9592),n=s(6049);e.exports=function(e,t,s){var o=t&&s||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var i=0;i<16;++i)t[o+i]=a[i];return t||n(a)}},8738(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))});e.exports=n},9152(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"}))});e.exports=n},9234(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))});e.exports=n},9297(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{d:"M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"}),r.createElement("path",{d:"M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"}))});e.exports=n},9303(e,t,s){const r=s(1609),n=r.forwardRef(function(e,t){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"}))});e.exports=n},9592(e){var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var s=new Uint8Array(16);e.exports=function(){return t(s),s}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)3&t||(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}}},t={};function s(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,s),o.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};s.r(e),s.d(e,{DISMISS_ALERT:()=>hp});const t=window.wp.components,r=window.wp.data,n=window.wp.domReady;var o=s.n(n);const a=window.wp.element,i=window.yoast.dashboardFrontend,l=window.yoast.uiLibrary,c=window.lodash;var d=s(1609),u=s.n(d);const p=window.ReactDOM;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},m.apply(this,arguments)}var h;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(h||(h={}));const f="popstate";function y(e,t){if(!1===e||null==e)throw new Error(t)}function g(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function v(e,t){return{usr:e.state,key:e.key,idx:t}}function b(e,t,s,r){return void 0===s&&(s=null),m({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?w(t):t,{state:s,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function x(e){let{pathname:t="/",search:s="",hash:r=""}=e;return s&&"?"!==s&&(t+="?"===s.charAt(0)?s:"?"+s),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function w(e){let t={};if(e){let s=e.indexOf("#");s>=0&&(t.hash=e.substr(s),e=e.substr(0,s));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function S(e,t,s,r){void 0===r&&(r={});let{window:n=document.defaultView,v5Compat:o=!1}=r,a=n.history,i=h.Pop,l=null,c=d();function d(){return(a.state||{idx:null}).idx}function u(){i=h.Pop;let e=d(),t=null==e?null:e-c;c=e,l&&l({action:i,location:g.location,delta:t})}function p(e){let t="null"!==n.location.origin?n.location.origin:n.location.href,s="string"==typeof e?e:x(e);return s=s.replace(/ $/,"%20"),y(t,"No window.location.(origin|href) available to create URL for href: "+s),new URL(s,t)}null==c&&(c=0,a.replaceState(m({},a.state,{idx:c}),""));let g={get action(){return i},get location(){return e(n,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return n.addEventListener(f,u),l=e,()=>{n.removeEventListener(f,u),l=null}},createHref:e=>t(n,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){i=h.Push;let r=b(g.location,e,t);s&&s(r,e),c=d()+1;let u=v(r,c),p=g.createHref(r);try{a.pushState(u,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;n.location.assign(p)}o&&l&&l({action:i,location:g.location,delta:1})},replace:function(e,t){i=h.Replace;let r=b(g.location,e,t);s&&s(r,e),c=d();let n=v(r,c),u=g.createHref(r);a.replaceState(n,"",u),o&&l&&l({action:i,location:g.location,delta:0})},go:e=>a.go(e)};return g}var _;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(_||(_={}));const E=new Set(["lazy","caseSensitive","path","id","index","children"]);function j(e,t,s,r){return void 0===s&&(s=[]),void 0===r&&(r={}),e.map((e,n)=>{let o=[...s,String(n)],a="string"==typeof e.id?e.id:o.join("-");if(y(!0!==e.index||!e.children,"Cannot specify children on an index route"),y(!r[a],'Found a route id collision on id "'+a+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let s=m({},e,t(e),{id:a});return r[a]=s,s}{let s=m({},e,t(e),{id:a,children:void 0});return r[a]=s,e.children&&(s.children=j(e.children,t,o,r)),s}})}function k(e,t,s){return void 0===s&&(s="/"),C(e,t,s,!1)}function C(e,t,s,r){let n=B(("string"==typeof t?w(t):t).pathname||"/",s);if(null==n)return null;let o=R(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let s=e.length===t.length&&e.slice(0,-1).every((e,s)=>e===t[s]);return s?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(o);let a=null;for(let e=0;null==a&&e<o.length;++e){let t=U(n);a=F(o[e],t,r)}return a}function R(e,t,s,r){void 0===t&&(t=[]),void 0===s&&(s=[]),void 0===r&&(r="");let n=(e,n,o)=>{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:n,route:e};a.relativePath.startsWith("/")&&(y(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let i=V([r,a.relativePath]),l=s.concat(a);e.children&&e.children.length>0&&(y(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+i+'".'),R(e.children,t,l,i)),(null!=e.path||e.index)&&t.push({path:i,score:D(i,e.index),routesMeta:l})};return e.forEach((e,t)=>{var s;if(""!==e.path&&null!=(s=e.path)&&s.includes("?"))for(let s of T(e.path))n(e,t,s);else n(e,t)}),t}function T(e){let t=e.split("/");if(0===t.length)return[];let[s,...r]=t,n=s.endsWith("?"),o=s.replace(/\?$/,"");if(0===r.length)return n?[o,""]:[o];let a=T(r.join("/")),i=[];return i.push(...a.map(e=>""===e?o:[o,e].join("/"))),n&&i.push(...a),i.map(t=>e.startsWith("/")&&""===t?"/":t)}const O=/^:[\w-]+$/,N=3,P=2,L=1,I=10,A=-2,M=e=>"*"===e;function D(e,t){let s=e.split("/"),r=s.length;return s.some(M)&&(r+=A),t&&(r+=P),s.filter(e=>!M(e)).reduce((e,t)=>e+(O.test(t)?N:""===t?L:I),r)}function F(e,t,s){void 0===s&&(s=!1);let{routesMeta:r}=e,n={},o="/",a=[];for(let e=0;e<r.length;++e){let i=r[e],l=e===r.length-1,c="/"===o?t:t.slice(o.length)||"/",d=z({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},c),u=i.route;if(!d&&l&&s&&!r[r.length-1].route.index&&(d=z({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},c)),!d)return null;Object.assign(n,d.params),a.push({params:n,pathname:V([o,d.pathname]),pathnameBase:G(V([o,d.pathnameBase])),route:u}),"/"!==d.pathnameBase&&(o=V([o,d.pathnameBase]))}return a}function z(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[s,r]=function(e,t,s){void 0===t&&(t=!1),void 0===s&&(s=!0),g("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,s)=>(r.push({paramName:t,isOptional:null!=s}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),n+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?n+="\\/*$":""!==e&&"/"!==e&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),n=t.match(s);if(!n)return null;let o=n[0],a=o.replace(/(.)\/+$/,"$1"),i=n.slice(1);return{params:r.reduce((e,t,s)=>{let{paramName:r,isOptional:n}=t;if("*"===r){let e=i[s]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=i[s];return e[r]=n&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{}),pathname:o,pathnameBase:a,pattern:e}}function U(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return g(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function B(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let s=t.endsWith("/")?t.length-1:t.length,r=e.charAt(s);return r&&"/"!==r?null:e.slice(s)||"/"}function q(e,t,s,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+s+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function $(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function H(e,t){let s=$(e);return t?s.map((e,t)=>t===s.length-1?e.pathname:e.pathnameBase):s.map(e=>e.pathnameBase)}function W(e,t,s,r){let n;void 0===r&&(r=!1),"string"==typeof e?n=w(e):(n=m({},e),y(!n.pathname||!n.pathname.includes("?"),q("?","pathname","search",n)),y(!n.pathname||!n.pathname.includes("#"),q("#","pathname","hash",n)),y(!n.search||!n.search.includes("#"),q("#","search","hash",n)));let o,a=""===e||""===n.pathname,i=a?"/":n.pathname;if(null==i)o=s;else{let e=t.length-1;if(!r&&i.startsWith("..")){let t=i.split("/");for(;".."===t[0];)t.shift(),e-=1;n.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:s,search:r="",hash:n=""}="string"==typeof e?w(e):e,o=s?s.startsWith("/")?s:function(e,t){let s=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?s.length>1&&s.pop():"."!==e&&s.push(e)}),s.length>1?s.join("/"):"/"}(s,t):t;return{pathname:o,search:K(r),hash:Y(n)}}(n,o),c=i&&"/"!==i&&i.endsWith("/"),d=(a||"."===i)&&s.endsWith("/");return l.pathname.endsWith("/")||!c&&!d||(l.pathname+="/"),l}const V=e=>e.join("/").replace(/\/\/+/g,"/"),G=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),K=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Y=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class J{constructor(e,t,s,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}}function Q(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const Z=["post","put","patch","delete"],X=new Set(Z),ee=["get",...Z],te=new Set(ee),se=new Set([301,302,303,307,308]),re=new Set([307,308]),ne={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ae={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,le=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ce="remix-router-transitions";function de(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,s=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,r=!s;let n;if(y(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)n=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;n=e=>({hasErrorBoundary:t(e)})}else n=le;let o,a,i,l={},c=j(e.routes,n,void 0,l),d=e.basename||"/",u=e.unstable_dataStrategy||ve,p=e.unstable_patchRoutesOnNavigation,f=m({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),v=null,x=new Set,w=new Set,S=null,R=null,T=null,O=null!=e.hydrationData,N=k(c,e.history.location,d),P=null;if(null==N&&!p){let t=Oe(404,{pathname:e.history.location.pathname}),{matches:s,route:r}=Te(c);N=s,P={[r.id]:t}}if(N&&!e.hydrationData&&ut(N,c,e.history.location.pathname).active&&(N=null),N)if(N.some(e=>e.route.lazy))a=!1;else if(N.some(e=>e.route.loader))if(f.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,s=e.hydrationData?e.hydrationData.errors:null,r=e=>!e.route.loader||("function"!=typeof e.route.loader||!0!==e.route.loader.hydrate)&&(t&&void 0!==t[e.route.id]||s&&void 0!==s[e.route.id]);if(s){let e=N.findIndex(e=>void 0!==s[e.route.id]);a=N.slice(0,e+1).every(r)}else a=N.every(r)}else a=null!=e.hydrationData;else a=!0;else if(a=!1,N=[],f.v7_partialHydration){let t=ut(null,c,e.history.location.pathname);t.active&&t.matches&&(N=t.matches)}let L,I,A={historyAction:e.history.action,location:e.history.location,matches:N,initialized:a,navigation:ne,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||P,fetchers:new Map,blockers:new Map},M=h.Pop,D=!1,F=!1,z=new Map,U=null,q=!1,$=!1,H=[],W=new Set,V=new Map,G=0,K=-1,Y=new Map,J=new Set,Z=new Map,X=new Map,ee=new Set,te=new Map,se=new Map,de=new Map;function he(e,t){void 0===t&&(t={}),A=m({},A,e);let s=[],r=[];f.v7_fetcherPersist&&A.fetchers.forEach((e,t)=>{"idle"===e.state&&(ee.has(t)?r.push(t):s.push(t))}),[...x].forEach(e=>e(A,{deletedFetchers:r,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync})),f.v7_fetcherPersist&&(s.forEach(e=>A.fetchers.delete(e)),r.forEach(e=>Ze(e)))}function fe(t,s,r){var n,a;let i,{flushSync:l}=void 0===r?{}:r,d=null!=A.actionData&&null!=A.navigation.formMethod&&ze(A.navigation.formMethod)&&"loading"===A.navigation.state&&!0!==(null==(n=t.state)?void 0:n._isRedirect);i=s.actionData?Object.keys(s.actionData).length>0?s.actionData:null:d?A.actionData:null;let u=s.loaderData?ke(A.loaderData,s.loaderData,s.matches||[],s.errors):A.loaderData,p=A.blockers;p.size>0&&(p=new Map(p),p.forEach((e,t)=>p.set(t,ae)));let f,y=!0===D||null!=A.navigation.formMethod&&ze(A.navigation.formMethod)&&!0!==(null==(a=t.state)?void 0:a._isRedirect);if(o&&(c=o,o=void 0),q||M===h.Pop||(M===h.Push?e.history.push(t,t.state):M===h.Replace&&e.history.replace(t,t.state)),M===h.Pop){let e=z.get(A.location.pathname);e&&e.has(t.pathname)?f={currentLocation:A.location,nextLocation:t}:z.has(t.pathname)&&(f={currentLocation:t,nextLocation:A.location})}else if(F){let e=z.get(A.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),z.set(A.location.pathname,e)),f={currentLocation:A.location,nextLocation:t}}he(m({},s,{actionData:i,loaderData:u,historyAction:M,location:t,initialized:!0,navigation:ne,revalidation:"idle",restoreScrollPosition:dt(t,s.matches||A.matches),preventScrollReset:y,blockers:p}),{viewTransitionOpts:f,flushSync:!0===l}),M=h.Pop,D=!1,F=!1,q=!1,$=!1,H=[]}async function _e(t,s,r){L&&L.abort(),L=null,M=t,q=!0===(r&&r.startUninterruptedRevalidation),function(e,t){if(S&&T){let s=ct(e,t);S[s]=T()}}(A.location,A.matches),D=!0===(r&&r.preventScrollReset),F=!0===(r&&r.enableViewTransition);let n=o||c,a=r&&r.overrideNavigation,i=k(n,s,d),l=!0===(r&&r.flushSync),u=ut(i,n,s.pathname);if(u.active&&u.matches&&(i=u.matches),!i){let{error:e,notFoundMatches:t,route:r}=at(s.pathname);return void fe(s,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l})}if(A.initialized&&!$&&(p=A.location,y=s,p.pathname===y.pathname&&p.search===y.search&&(""===p.hash?""!==y.hash:p.hash===y.hash||""!==y.hash))&&!(r&&r.submission&&ze(r.submission.formMethod)))return void fe(s,{matches:i},{flushSync:l});var p,y;L=new AbortController;let g,v=Se(e.history,s,L.signal,r&&r.submission);if(r&&r.pendingError)g=[Re(i).route.id,{type:_.error,error:r.pendingError}];else if(r&&r.submission&&ze(r.submission.formMethod)){let t=await async function(e,t,s,r,n,o){void 0===o&&(o={}),$e();let a,i=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(t,s);if(he({navigation:i},{flushSync:!0===o.flushSync}),n){let s=await pt(r,t.pathname,e.signal);if("aborted"===s.type)return{shortCircuited:!0};if("error"===s.type){let{boundaryId:e,error:r}=it(t.pathname,s);return{matches:s.partialMatches,pendingActionResult:[e,{type:_.error,error:r}]}}if(!s.matches){let{notFoundMatches:e,error:s,route:r}=at(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:_.error,error:s}]}}r=s.matches}let l=He(r,t);if(l.route.action||l.route.lazy){if(a=(await De("action",A,e,[l],r,null))[l.route.id],e.signal.aborted)return{shortCircuited:!0}}else a={type:_.error,error:Oe(405,{method:e.method,pathname:t.pathname,routeId:l.route.id})};if(Me(a)){let t;return t=o&&null!=o.replace?o.replace:we(a.response.headers.get("Location"),new URL(e.url),d)===A.location.pathname+A.location.search,await Pe(e,a,!0,{submission:s,replace:t}),{shortCircuited:!0}}if(Ie(a))throw Oe(400,{type:"defer-action"});if(Ae(a)){let e=Re(r,l.route.id);return!0!==(o&&o.replace)&&(M=h.Push),{matches:r,pendingActionResult:[e.route.id,a]}}return{matches:r,pendingActionResult:[l.route.id,a]}}(v,s,r.submission,i,u.active,{replace:r.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Ae(r)&&Q(r.error)&&404===r.error.status)return L=null,void fe(s,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}i=t.matches||i,g=t.pendingActionResult,a=Ve(s,r.submission),l=!1,u.active=!1,v=Se(e.history,v.url,v.signal)}let{shortCircuited:b,matches:x,loaderData:w,errors:E}=await async function(t,s,r,n,a,i,l,u,p,h,y){let g=a||Ve(s,i),v=i||l||We(g),b=!(q||f.v7_partialHydration&&p);if(n){if(b){let e=Ee(y);he(m({navigation:g},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=await pt(r,s.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let{boundaryId:t,error:r}=it(s.pathname,e);return{matches:e.partialMatches,loaderData:{},errors:{[t]:r}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=at(s.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}r=e.matches}let x=o||c,[w,S]=me(e.history,A,r,v,s,f.v7_partialHydration&&!0===p,f.v7_skipActionErrorRevalidation,$,H,W,ee,Z,J,x,d,y);if(lt(e=>!(r&&r.some(t=>t.route.id===e))||w&&w.some(t=>t.route.id===e)),K=++G,0===w.length&&0===S.length){let e=tt();return fe(s,m({matches:r,loaderData:{},errors:y&&Ae(y[1])?{[y[0]]:y[1].error}:null},Ce(y),e?{fetchers:new Map(A.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(b){let e={};if(!n){e.navigation=g;let t=Ee(y);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach(e=>{let t=A.fetchers.get(e.key),s=Ge(void 0,t?t.data:void 0);A.fetchers.set(e.key,s)}),new Map(A.fetchers)}(S)),he(e,{flushSync:h})}S.forEach(e=>{V.has(e.key)&&Xe(e.key),e.controller&&V.set(e.key,e.controller)});let _=()=>S.forEach(e=>Xe(e.key));L&&L.signal.addEventListener("abort",_);let{loaderResults:E,fetcherResults:j}=await Fe(A,r,w,S,t);if(t.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener("abort",_),S.forEach(e=>V.delete(e.key));let k=Ne(E);if(k)return await Pe(t,k.result,!0,{replace:u}),{shortCircuited:!0};if(k=Ne(j),k)return J.add(k.key),await Pe(t,k.result,!0,{replace:u}),{shortCircuited:!0};let{loaderData:C,errors:R}=je(A,r,0,E,y,S,j,te);te.forEach((e,t)=>{e.subscribe(s=>{(s||e.done)&&te.delete(t)})}),f.v7_partialHydration&&p&&A.errors&&Object.entries(A.errors).filter(e=>{let[t]=e;return!w.some(e=>e.route.id===t)}).forEach(e=>{let[t,s]=e;R=Object.assign(R||{},{[t]:s})});let T=tt(),O=st(K),N=T||O||S.length>0;return m({matches:r,loaderData:C,errors:R},N?{fetchers:new Map(A.fetchers)}:{})}(v,s,i,u.active,a,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&!0===r.initialHydration,l,g);b||(L=null,fe(s,m({matches:x||i},Ce(g),{loaderData:w,errors:E})))}function Ee(e){return e&&!Ae(e[1])?{[e[0]]:e[1].data}:A.actionData?0===Object.keys(A.actionData).length?null:A.actionData:void 0}async function Pe(r,n,o,a){let{submission:i,fetcherSubmission:l,replace:c}=void 0===a?{}:a;n.response.headers.has("X-Remix-Revalidate")&&($=!0);let u=n.response.headers.get("Location");y(u,"Expected a Location header on the redirect Response"),u=we(u,new URL(r.url),d);let p=b(A.location,u,{_isRedirect:!0});if(s){let s=!1;if(n.response.headers.has("X-Remix-Reload-Document"))s=!0;else if(ie.test(u)){const r=e.history.createURL(u);s=r.origin!==t.location.origin||null==B(r.pathname,d)}if(s)return void(c?t.location.replace(u):t.location.assign(u))}L=null;let f=!0===c||n.response.headers.has("X-Remix-Replace")?h.Replace:h.Push,{formMethod:g,formAction:v,formEncType:x}=A.navigation;!i&&!l&&g&&v&&x&&(i=We(A.navigation));let w=i||l;if(re.has(n.response.status)&&w&&ze(w.formMethod))await _e(f,p,{submission:m({},w,{formAction:u}),preventScrollReset:D,enableViewTransition:o?F:void 0});else{let e=Ve(p,i);await _e(f,p,{overrideNavigation:e,fetcherSubmission:l,preventScrollReset:D,enableViewTransition:o?F:void 0})}}async function De(e,t,s,r,o,a){let i,c={};try{i=await async function(e,t,s,r,n,o,a,i,l,c){let d=o.map(e=>e.route.lazy?async function(e,t,s){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let n=s[e.id];y(n,"No route found in manifest");let o={};for(let e in r){let t=void 0!==n[e]&&"hasErrorBoundary"!==e;g(!t,'Route "'+n.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||E.has(e)||(o[e]=r[e])}Object.assign(n,o),Object.assign(n,m({},t(n),{lazy:void 0}))}(e.route,l,i):void 0),u=o.map((e,s)=>{let o=d[s],a=n.some(t=>t.route.id===e.route.id);return m({},e,{shouldLoad:a,resolve:async s=>(s&&"GET"===r.method&&(e.route.lazy||e.route.loader)&&(a=!0),a?async function(e,t,s,r,n,o){let a,i,l=r=>{let a,l=new Promise((e,t)=>a=t);i=()=>a(),t.signal.addEventListener("abort",i);let c=n=>"function"!=typeof r?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+s.route.id+"]")):r({request:t,params:s.params,context:o},...void 0!==n?[n]:[]),d=(async()=>{try{return{type:"data",result:await(n?n(e=>c(e)):c())}}catch(e){return{type:"error",result:e}}})();return Promise.race([d,l])};try{let n=s.route[e];if(r)if(n){let e,[t]=await Promise.all([l(n).catch(t=>{e=t}),r]);if(void 0!==e)throw e;a=t}else{if(await r,n=s.route[e],!n){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Oe(405,{method:t.method,pathname:r,routeId:s.route.id})}return{type:_.data,result:void 0}}a=await l(n)}else{if(!n){let e=new URL(t.url);throw Oe(404,{pathname:e.pathname+e.search})}a=await l(n)}y(void 0!==a.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+s.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:_.error,result:e}}finally{i&&t.signal.removeEventListener("abort",i)}return a}(t,r,e,o,s,c):Promise.resolve({type:_.data,result:void 0}))})}),p=await e({matches:u,request:r,params:o[0].params,fetcherKey:a,context:c});try{await Promise.all(d)}catch(e){}return p}(u,e,0,s,r,o,a,l,n)}catch(e){return r.forEach(t=>{c[t.route.id]={type:_.error,error:e}}),c}for(let[e,t]of Object.entries(i))if(Le(t)){let r=t.result;c[e]={type:_.redirect,response:xe(r,s,e,o,d,f.v7_relativeSplatPath)}}else c[e]=await be(t);return c}async function Fe(t,s,r,n,o){let a=t.matches,i=De("loader",0,o,r,s,null),l=Promise.all(n.map(async t=>{if(t.matches&&t.match&&t.controller){let s=(await De("loader",0,Se(e.history,t.path,t.controller.signal),[t.match],t.matches,t.key))[t.match.route.id];return{[t.key]:s}}return Promise.resolve({[t.key]:{type:_.error,error:Oe(404,{pathname:t.path})}})})),c=await i,d=(await l).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([Ue(s,c,o.signal,a,t.loaderData),Be(s,d,n)]),{loaderResults:c,fetcherResults:d}}function $e(){$=!0,H.push(...lt()),Z.forEach((e,t)=>{V.has(t)&&(W.add(t),Xe(t))})}function Ye(e,t,s){void 0===s&&(s={}),A.fetchers.set(e,t),he({fetchers:new Map(A.fetchers)},{flushSync:!0===(s&&s.flushSync)})}function Je(e,t,s,r){void 0===r&&(r={});let n=Re(A.matches,t);Ze(e),he({errors:{[n.route.id]:s},fetchers:new Map(A.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Qe(e){return f.v7_fetcherPersist&&(X.set(e,(X.get(e)||0)+1),ee.has(e)&&ee.delete(e)),A.fetchers.get(e)||oe}function Ze(e){let t=A.fetchers.get(e);!V.has(e)||t&&"loading"===t.state&&Y.has(e)||Xe(e),Z.delete(e),Y.delete(e),J.delete(e),ee.delete(e),W.delete(e),A.fetchers.delete(e)}function Xe(e){let t=V.get(e);y(t,"Expected fetch controller: "+e),t.abort(),V.delete(e)}function et(e){for(let t of e){let e=Ke(Qe(t).data);A.fetchers.set(t,e)}}function tt(){let e=[],t=!1;for(let s of J){let r=A.fetchers.get(s);y(r,"Expected fetcher: "+s),"loading"===r.state&&(J.delete(s),e.push(s),t=!0)}return et(e),t}function st(e){let t=[];for(let[s,r]of Y)if(r<e){let e=A.fetchers.get(s);y(e,"Expected fetcher: "+s),"loading"===e.state&&(Xe(s),Y.delete(s),t.push(s))}return et(t),t.length>0}function rt(e){A.blockers.delete(e),se.delete(e)}function nt(e,t){let s=A.blockers.get(e)||ae;y("unblocked"===s.state&&"blocked"===t.state||"blocked"===s.state&&"blocked"===t.state||"blocked"===s.state&&"proceeding"===t.state||"blocked"===s.state&&"unblocked"===t.state||"proceeding"===s.state&&"unblocked"===t.state,"Invalid blocker state transition: "+s.state+" -> "+t.state);let r=new Map(A.blockers);r.set(e,t),he({blockers:r})}function ot(e){let{currentLocation:t,nextLocation:s,historyAction:r}=e;if(0===se.size)return;se.size>1&&g(!1,"A router only supports one blocker at a time");let n=Array.from(se.entries()),[o,a]=n[n.length-1],i=A.blockers.get(o);return i&&"proceeding"===i.state?void 0:a({currentLocation:t,nextLocation:s,historyAction:r})?o:void 0}function at(e){let t=Oe(404,{pathname:e}),s=o||c,{matches:r,route:n}=Te(s);return lt(),{notFoundMatches:r,route:n,error:t}}function it(e,t){return{boundaryId:Re(t.partialMatches).route.id,error:Oe(400,{type:"route-discovery",pathname:e,message:null!=t.error&&"message"in t.error?t.error:String(t.error)})}}function lt(e){let t=[];return te.forEach((s,r)=>{e&&!e(r)||(s.cancel(),t.push(r),te.delete(r))}),t}function ct(e,t){return R&&R(e,t.map(e=>function(e,t){let{route:s,pathname:r,params:n}=e;return{id:s.id,pathname:r,params:n,data:t[s.id],handle:s.handle}}(e,A.loaderData)))||e.key}function dt(e,t){if(S){let s=ct(e,t),r=S[s];if("number"==typeof r)return r}return null}function ut(e,t,s){if(p){if(w.has(s))return{active:!1,matches:e};if(!e)return{active:!0,matches:C(t,s,d,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:C(t,s,d,!0)}}return{active:!1,matches:null}}async function pt(e,t,s){let r=e;for(;;){let e=null==o,a=o||c;try{await ye(p,t,r,a,l,n,de,s)}catch(e){return{type:"error",error:e,partialMatches:r}}finally{e&&(c=[...c])}if(s.aborted)return{type:"aborted"};let i=k(a,t,d);if(i)return mt(t,w),{type:"success",matches:i};let u=C(a,t,d,!0);if(!u||r.length===u.length&&r.every((e,t)=>e.route.id===u[t].route.id))return mt(t,w),{type:"success",matches:null};r=u}}function mt(e,t){if(t.size>=1e3){let e=t.values().next().value;t.delete(e)}t.add(e)}return i={get basename(){return d},get future(){return f},get state(){return A},get routes(){return c},get window(){return t},initialize:function(){if(v=e.history.listen(t=>{let{action:s,location:r,delta:n}=t;if(I)return I(),void(I=void 0);g(0===se.size||null!=n,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=ot({currentLocation:A.location,nextLocation:r,historyAction:s});if(o&&null!=n){let t=new Promise(e=>{I=e});return e.history.go(-1*n),void nt(o,{state:"blocked",location:r,proceed(){nt(o,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(n))},reset(){let e=new Map(A.blockers);e.set(o,ae),he({blockers:e})}})}return _e(s,r)}),s){!function(e,t){try{let s=e.sessionStorage.getItem(ce);if(s){let e=JSON.parse(s);for(let[s,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(s,new Set(r||[]))}}catch(e){}}(t,z);let e=()=>function(e,t){if(t.size>0){let s={};for(let[e,r]of t)s[e]=[...r];try{e.sessionStorage.setItem(ce,JSON.stringify(s))}catch(e){g(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,z);t.addEventListener("pagehide",e),U=()=>t.removeEventListener("pagehide",e)}return A.initialized||_e(h.Pop,A.location,{initialHydration:!0}),i},subscribe:function(e){return x.add(e),()=>x.delete(e)},enableScrollRestoration:function(e,t,s){if(S=e,T=t,R=s||null,!O&&A.navigation===ne){O=!0;let e=dt(A.location,A.matches);null!=e&&he({restoreScrollPosition:e})}return()=>{S=null,T=null,R=null}},navigate:async function t(s,r){if("number"==typeof s)return void e.history.go(s);let n=ue(A.location,A.matches,d,f.v7_prependBasename,s,f.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:o,submission:a,error:i}=pe(f.v7_normalizeFormMethod,!1,n,r),l=A.location,c=b(A.location,o,r&&r.state);c=m({},c,e.history.encodeLocation(c));let u=r&&null!=r.replace?r.replace:void 0,p=h.Push;!0===u?p=h.Replace:!1===u||null!=a&&ze(a.formMethod)&&a.formAction===A.location.pathname+A.location.search&&(p=h.Replace);let y=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,g=!0===(r&&r.unstable_flushSync),v=ot({currentLocation:l,nextLocation:c,historyAction:p});if(!v)return await _e(p,c,{submission:a,pendingError:i,preventScrollReset:y,replace:r&&r.replace,enableViewTransition:r&&r.unstable_viewTransition,flushSync:g});nt(v,{state:"blocked",location:c,proceed(){nt(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),t(s,r)},reset(){let e=new Map(A.blockers);e.set(v,ae),he({blockers:e})}})},fetch:function(t,s,n,a){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");V.has(t)&&Xe(t);let i=!0===(a&&a.unstable_flushSync),l=o||c,u=ue(A.location,A.matches,d,f.v7_prependBasename,n,f.v7_relativeSplatPath,s,null==a?void 0:a.relative),p=k(l,u,d),m=ut(p,l,u);if(m.active&&m.matches&&(p=m.matches),!p)return void Je(t,s,Oe(404,{pathname:u}),{flushSync:i});let{path:h,submission:g,error:v}=pe(f.v7_normalizeFormMethod,!0,u,a);if(v)return void Je(t,s,v,{flushSync:i});let b=He(p,h);D=!0===(a&&a.preventScrollReset),g&&ze(g.formMethod)?async function(t,s,r,n,a,i,l,u){function p(e){if(!e.route.action&&!e.route.lazy){let e=Oe(405,{method:u.formMethod,pathname:r,routeId:s});return Je(t,s,e,{flushSync:l}),!0}return!1}if($e(),Z.delete(t),!i&&p(n))return;let m=A.fetchers.get(t);Ye(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(u,m),{flushSync:l});let h=new AbortController,g=Se(e.history,r,h.signal,u);if(i){let e=await pt(a,r,g.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:n}=it(r,e);return void Je(t,s,n,{flushSync:l})}if(!e.matches)return void Je(t,s,Oe(404,{pathname:r}),{flushSync:l});if(p(n=He(a=e.matches,r)))return}V.set(t,h);let v=G,b=(await De("action",0,g,[n],a,t))[n.route.id];if(g.signal.aborted)return void(V.get(t)===h&&V.delete(t));if(f.v7_fetcherPersist&&ee.has(t)){if(Me(b)||Ae(b))return void Ye(t,Ke(void 0))}else{if(Me(b))return V.delete(t),K>v?void Ye(t,Ke(void 0)):(J.add(t),Ye(t,Ge(u)),Pe(g,b,!1,{fetcherSubmission:u}));if(Ae(b))return void Je(t,s,b.error)}if(Ie(b))throw Oe(400,{type:"defer-action"});let x=A.navigation.location||A.location,w=Se(e.history,x,h.signal),S=o||c,_="idle"!==A.navigation.state?k(S,A.navigation.location,d):A.matches;y(_,"Didn't find any matches after fetcher action");let E=++G;Y.set(t,E);let j=Ge(u,b.data);A.fetchers.set(t,j);let[C,R]=me(e.history,A,_,u,x,!1,f.v7_skipActionErrorRevalidation,$,H,W,ee,Z,J,S,d,[n.route.id,b]);R.filter(e=>e.key!==t).forEach(e=>{let t=e.key,s=A.fetchers.get(t),r=Ge(void 0,s?s.data:void 0);A.fetchers.set(t,r),V.has(t)&&Xe(t),e.controller&&V.set(t,e.controller)}),he({fetchers:new Map(A.fetchers)});let T=()=>R.forEach(e=>Xe(e.key));h.signal.addEventListener("abort",T);let{loaderResults:O,fetcherResults:N}=await Fe(A,_,C,R,w);if(h.signal.aborted)return;h.signal.removeEventListener("abort",T),Y.delete(t),V.delete(t),R.forEach(e=>V.delete(e.key));let P=Ne(O);if(P)return Pe(w,P.result,!1);if(P=Ne(N),P)return J.add(P.key),Pe(w,P.result,!1);let{loaderData:I,errors:D}=je(A,_,0,O,void 0,R,N,te);if(A.fetchers.has(t)){let e=Ke(b.data);A.fetchers.set(t,e)}st(E),"loading"===A.navigation.state&&E>K?(y(M,"Expected pending action"),L&&L.abort(),fe(A.navigation.location,{matches:_,loaderData:I,errors:D,fetchers:new Map(A.fetchers)})):(he({errors:D,loaderData:ke(A.loaderData,I,_,D),fetchers:new Map(A.fetchers)}),$=!1)}(t,s,h,b,p,m.active,i,g):(Z.set(t,{routeId:s,path:h}),async function(t,s,r,n,o,a,i,l){let c=A.fetchers.get(t);Ye(t,Ge(l,c?c.data:void 0),{flushSync:i});let d=new AbortController,u=Se(e.history,r,d.signal);if(a){let e=await pt(o,r,u.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:n}=it(r,e);return void Je(t,s,n,{flushSync:i})}if(!e.matches)return void Je(t,s,Oe(404,{pathname:r}),{flushSync:i});n=He(o=e.matches,r)}V.set(t,d);let p=G,m=(await De("loader",0,u,[n],o,t))[n.route.id];if(Ie(m)&&(m=await qe(m,u.signal,!0)||m),V.get(t)===d&&V.delete(t),!u.signal.aborted){if(!ee.has(t))return Me(m)?K>p?void Ye(t,Ke(void 0)):(J.add(t),void await Pe(u,m,!1)):void(Ae(m)?Je(t,s,m.error):(y(!Ie(m),"Unhandled fetcher deferred data"),Ye(t,Ke(m.data))));Ye(t,Ke(void 0))}}(t,s,h,b,p,m.active,i,g))},revalidate:function(){$e(),he({revalidation:"loading"}),"submitting"!==A.navigation.state&&("idle"!==A.navigation.state?_e(M||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation,enableViewTransition:!0===F}):_e(A.historyAction,A.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Qe,deleteFetcher:function(e){if(f.v7_fetcherPersist){let t=(X.get(e)||0)-1;t<=0?(X.delete(e),ee.add(e)):X.set(e,t)}else Ze(e);he({fetchers:new Map(A.fetchers)})},dispose:function(){v&&v(),U&&U(),x.clear(),L&&L.abort(),A.fetchers.forEach((e,t)=>Ze(t)),A.blockers.forEach((e,t)=>rt(t))},getBlocker:function(e,t){let s=A.blockers.get(e)||ae;return se.get(e)!==t&&se.set(e,t),s},deleteBlocker:rt,patchRoutes:function(e,t){let s=null==o;ge(e,t,o||c,l,n),s&&(c=[...c],he({}))},_internalFetchControllers:V,_internalActiveDeferreds:te,_internalSetRoutes:function(e){l={},o=j(e,n,void 0,l)}},i}function ue(e,t,s,r,n,o,a,i){let l,c;if(a){l=[];for(let e of t)if(l.push(e),e.route.id===a){c=e;break}}else l=t,c=t[t.length-1];let d=W(n||".",H(l,o),B(e.pathname,s)||e.pathname,"path"===i);return null==n&&(d.search=e.search,d.hash=e.hash),null!=n&&""!==n&&"."!==n||!c||!c.route.index||$e(d.search)||(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==s&&(d.pathname="/"===d.pathname?s:V([s,d.pathname])),x(d)}function pe(e,t,s,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:s};if(r.formMethod&&(n=r.formMethod,!te.has(n.toLowerCase())))return{path:s,error:Oe(405,{method:r.formMethod})};var n;let o,a,i=()=>({path:s,error:Oe(400,{type:"invalid-body"})}),l=r.formMethod||"get",c=e?l.toUpperCase():l.toLowerCase(),d=Pe(s);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!ze(c))return i();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,t)=>{let[s,r]=t;return""+e+s+"="+r+"\n"},""):String(r.body);return{path:s,submission:{formMethod:c,formAction:d,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!ze(c))return i();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:s,submission:{formMethod:c,formAction:d,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(y("function"==typeof FormData,"FormData is not available in this environment"),r.formData)o=_e(r.formData),a=r.formData;else if(r.body instanceof FormData)o=_e(r.body),a=r.body;else if(r.body instanceof URLSearchParams)o=r.body,a=Ee(o);else if(null==r.body)o=new URLSearchParams,a=new FormData;else try{o=new URLSearchParams(r.body),a=Ee(o)}catch(e){return i()}let u={formMethod:c,formAction:d,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:a,json:void 0,text:void 0};if(ze(u.formMethod))return{path:s,submission:u};let p=w(s);return t&&p.search&&$e(p.search)&&o.append("index",""),p.search="?"+o,{path:x(p),submission:u}}function me(e,t,s,r,n,o,a,i,l,c,d,u,p,h,f,y){let g=y?Ae(y[1])?y[1].error:y[1].data:void 0,v=e.createURL(t.location),b=e.createURL(n),x=y&&Ae(y[1])?y[0]:void 0,w=x?function(e,t){let s=e;if(t){let r=e.findIndex(e=>e.route.id===t);r>=0&&(s=e.slice(0,r))}return s}(s,x):s,S=y?y[1].statusCode:void 0,_=a&&S&&S>=400,E=w.filter((e,s)=>{let{route:n}=e;if(n.lazy)return!0;if(null==n.loader)return!1;if(o)return!("function"==typeof n.loader&&!n.loader.hydrate&&(void 0!==t.loaderData[n.id]||t.errors&&void 0!==t.errors[n.id]));if(function(e,t,s){let r=!t||s.route.id!==t.route.id,n=void 0===e[s.route.id];return r||n}(t.loaderData,t.matches[s],e)||l.some(t=>t===e.route.id))return!0;let a=t.matches[s],c=e;return fe(e,m({currentUrl:v,currentParams:a.params,nextUrl:b,nextParams:c.params},r,{actionResult:g,actionStatus:S,defaultShouldRevalidate:!_&&(i||v.pathname+v.search===b.pathname+b.search||v.search!==b.search||he(a,c))}))}),j=[];return u.forEach((e,n)=>{if(o||!s.some(t=>t.route.id===e.routeId)||d.has(n))return;let a=k(h,e.path,f);if(!a)return void j.push({key:n,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let l=t.fetchers.get(n),u=He(a,e.path),y=!1;p.has(n)?y=!1:c.has(n)?(c.delete(n),y=!0):y=l&&"idle"!==l.state&&void 0===l.data?i:fe(u,m({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:s[s.length-1].params},r,{actionResult:g,actionStatus:S,defaultShouldRevalidate:!_&&i})),y&&j.push({key:n,routeId:e.routeId,path:e.path,matches:a,match:u,controller:new AbortController})}),[E,j]}function he(e,t){let s=e.route.path;return e.pathname!==t.pathname||null!=s&&s.endsWith("*")&&e.params["*"]!==t.params["*"]}function fe(e,t){if(e.route.shouldRevalidate){let s=e.route.shouldRevalidate(t);if("boolean"==typeof s)return s}return t.defaultShouldRevalidate}async function ye(e,t,s,r,n,o,a,i){let l=[t,...s.map(e=>e.route.id)].join("-");try{let d=a.get(l);d||(d=e({path:t,matches:s,patch:(e,t)=>{i.aborted||ge(e,t,r,n,o)}}),a.set(l,d)),d&&"object"==typeof(c=d)&&null!=c&&"then"in c&&await d}finally{a.delete(l)}var c}function ge(e,t,s,r,n){if(e){var o;let s=r[e];y(s,"No route found to patch children into: routeId = "+e);let a=j(t,n,[e,"patch",String((null==(o=s.children)?void 0:o.length)||"0")],r);s.children?s.children.push(...a):s.children=a}else{let e=j(t,n,["patch",String(s.length||"0")],r);s.push(...e)}}async function ve(e){let{matches:t}=e,s=t.filter(e=>e.shouldLoad);return(await Promise.all(s.map(e=>e.resolve()))).reduce((e,t,r)=>Object.assign(e,{[s[r].route.id]:t}),{})}async function be(e){let{result:t,type:s}=e;if(Fe(t)){let e;try{let s=t.headers.get("Content-Type");e=s&&/\bapplication\/json\b/.test(s)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:_.error,error:e}}return s===_.error?{type:_.error,error:new J(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:_.data,data:e,statusCode:t.status,headers:t.headers}}if(s===_.error){if(De(t)){var r,n;if(t.data instanceof Error)return{type:_.error,error:t.data,statusCode:null==(n=t.init)?void 0:n.status};t=new J((null==(r=t.init)?void 0:r.status)||500,void 0,t.data)}return{type:_.error,error:t,statusCode:Q(t)?t.status:void 0}}var o,a,i,l;return function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:_.deferred,deferredData:t,statusCode:null==(o=t.init)?void 0:o.status,headers:(null==(a=t.init)?void 0:a.headers)&&new Headers(t.init.headers)}:De(t)?{type:_.data,data:t.data,statusCode:null==(i=t.init)?void 0:i.status,headers:null!=(l=t.init)&&l.headers?new Headers(t.init.headers):void 0}:{type:_.data,data:t}}function xe(e,t,s,r,n,o){let a=e.headers.get("Location");if(y(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!ie.test(a)){let i=r.slice(0,r.findIndex(e=>e.route.id===s)+1);a=ue(new URL(t.url),i,n,!0,a,o),e.headers.set("Location",a)}return e}function we(e,t,s){if(ie.test(e)){let r=e,n=r.startsWith("//")?new URL(t.protocol+r):new URL(r),o=null!=B(n.pathname,s);if(n.origin===t.origin&&o)return n.pathname+n.search+n.hash}return e}function Se(e,t,s,r){let n=e.createURL(Pe(t)).toString(),o={signal:s};if(r&&ze(r.formMethod)){let{formMethod:e,formEncType:t}=r;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(r.json)):"text/plain"===t?o.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?o.body=_e(r.formData):o.body=r.formData}return new Request(n,o)}function _e(e){let t=new URLSearchParams;for(let[s,r]of e.entries())t.append(s,"string"==typeof r?r:r.name);return t}function Ee(e){let t=new FormData;for(let[s,r]of e.entries())t.append(s,r);return t}function je(e,t,s,r,n,o,a,i){let{loaderData:l,errors:c}=function(e,t,s,r,n){let o,a={},i=null,l=!1,c={},d=s&&Ae(s[1])?s[1].error:void 0;return e.forEach(s=>{if(!(s.route.id in t))return;let u=s.route.id,p=t[u];if(y(!Me(p),"Cannot handle redirect results in processLoaderData"),Ae(p)){let t=p.error;if(void 0!==d&&(t=d,d=void 0),i=i||{},n)i[u]=t;else{let s=Re(e,u);null==i[s.route.id]&&(i[s.route.id]=t)}a[u]=void 0,l||(l=!0,o=Q(p.error)?p.error.status:500),p.headers&&(c[u]=p.headers)}else Ie(p)?(r.set(u,p.deferredData),a[u]=p.deferredData.data,null==p.statusCode||200===p.statusCode||l||(o=p.statusCode),p.headers&&(c[u]=p.headers)):(a[u]=p.data,p.statusCode&&200!==p.statusCode&&!l&&(o=p.statusCode),p.headers&&(c[u]=p.headers))}),void 0!==d&&s&&(i={[s[0]]:d},a[s[0]]=void 0),{loaderData:a,errors:i,statusCode:o||200,loaderHeaders:c}}(t,r,n,i,!1);return o.forEach(t=>{let{key:s,match:r,controller:n}=t,o=a[s];if(y(o,"Did not find corresponding fetcher result"),!n||!n.signal.aborted)if(Ae(o)){let t=Re(e.matches,null==r?void 0:r.route.id);c&&c[t.route.id]||(c=m({},c,{[t.route.id]:o.error})),e.fetchers.delete(s)}else if(Me(o))y(!1,"Unhandled fetcher revalidation redirect");else if(Ie(o))y(!1,"Unhandled fetcher deferred data");else{let t=Ke(o.data);e.fetchers.set(s,t)}}),{loaderData:l,errors:c}}function ke(e,t,s,r){let n=m({},t);for(let o of s){let s=o.route.id;if(t.hasOwnProperty(s)?void 0!==t[s]&&(n[s]=t[s]):void 0!==e[s]&&o.route.loader&&(n[s]=e[s]),r&&r.hasOwnProperty(s))break}return n}function Ce(e){return e?Ae(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Re(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function Te(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Oe(e,t){let{pathname:s,routeId:r,method:n,type:o,message:a}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="Bad Request","route-discovery"===o?l='Unable to match URL "'+s+'" - the `unstable_patchRoutesOnNavigation()` function threw the following error:\n'+a:n&&s&&r?l="You made a "+n+' request to "'+s+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===o?l="defer() is not supported in actions":"invalid-body"===o&&(l="Unable to encode submission body")):403===e?(i="Forbidden",l='Route "'+r+'" does not match URL "'+s+'"'):404===e?(i="Not Found",l='No route matches URL "'+s+'"'):405===e&&(i="Method Not Allowed",n&&s&&r?l="You made a "+n.toUpperCase()+' request to "'+s+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':n&&(l='Invalid request method "'+n.toUpperCase()+'"')),new J(e||500,i,new Error(l),!0)}function Ne(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[s,r]=t[e];if(Me(r))return{key:s,result:r}}}function Pe(e){return x(m({},"string"==typeof e?w(e):e,{hash:""}))}function Le(e){return Fe(e.result)&&se.has(e.result.status)}function Ie(e){return e.type===_.deferred}function Ae(e){return e.type===_.error}function Me(e){return(e&&e.type)===_.redirect}function De(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Fe(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function ze(e){return X.has(e.toLowerCase())}async function Ue(e,t,s,r,n){let o=Object.entries(t);for(let a=0;a<o.length;a++){let[i,l]=o[a],c=e.find(e=>(null==e?void 0:e.route.id)===i);if(!c)continue;let d=r.find(e=>e.route.id===c.route.id),u=null!=d&&!he(d,c)&&void 0!==(n&&n[c.route.id]);Ie(l)&&u&&await qe(l,s,!1).then(e=>{e&&(t[i]=e)})}}async function Be(e,t,s){for(let r=0;r<s.length;r++){let{key:n,routeId:o,controller:a}=s[r],i=t[n];e.find(e=>(null==e?void 0:e.route.id)===o)&&Ie(i)&&(y(a,"Expected an AbortController for revalidating fetcher deferred result"),await qe(i,a.signal,!0).then(e=>{e&&(t[n]=e)}))}}async function qe(e,t,s){if(void 0===s&&(s=!1),!await e.deferredData.resolveData(t)){if(s)try{return{type:_.data,data:e.deferredData.unwrappedData}}catch(e){return{type:_.error,error:e}}return{type:_.data,data:e.deferredData.data}}}function $e(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function He(e,t){let s="string"==typeof t?w(t).search:t.search;if(e[e.length-1].route.index&&$e(s||""))return e[e.length-1];let r=$(e);return r[r.length-1]}function We(e){let{formMethod:t,formAction:s,formEncType:r,text:n,formData:o,json:a}=e;if(t&&s&&r)return null!=n?{formMethod:t,formAction:s,formEncType:r,formData:void 0,json:void 0,text:n}:null!=o?{formMethod:t,formAction:s,formEncType:r,formData:o,json:void 0,text:void 0}:void 0!==a?{formMethod:t,formAction:s,formEncType:r,formData:void 0,json:a,text:void 0}:void 0}function Ve(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ge(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ke(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Ye(){return Ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ye.apply(this,arguments)}Symbol("deferred");const Je=d.createContext(null),Qe=d.createContext(null),Ze=d.createContext(null),Xe=d.createContext(null),et=d.createContext({outlet:null,matches:[],isDataRoute:!1}),tt=d.createContext(null);function st(){return null!=d.useContext(Xe)}function rt(){return st()||y(!1),d.useContext(Xe).location}function nt(e){d.useContext(Ze).static||d.useLayoutEffect(e)}function ot(){let{isDataRoute:e}=d.useContext(et);return e?function(){let{router:e}=ft(mt.UseNavigateStable),t=gt(ht.UseNavigateStable),s=d.useRef(!1);return nt(()=>{s.current=!0}),d.useCallback(function(r,n){void 0===n&&(n={}),s.current&&("number"==typeof r?e.navigate(r):e.navigate(r,Ye({fromRouteId:t},n)))},[e,t])}():function(){st()||y(!1);let e=d.useContext(Je),{basename:t,future:s,navigator:r}=d.useContext(Ze),{matches:n}=d.useContext(et),{pathname:o}=rt(),a=JSON.stringify(H(n,s.v7_relativeSplatPath)),i=d.useRef(!1);return nt(()=>{i.current=!0}),d.useCallback(function(s,n){if(void 0===n&&(n={}),!i.current)return;if("number"==typeof s)return void r.go(s);let l=W(s,JSON.parse(a),o,"path"===n.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:V([t,l.pathname])),(n.replace?r.replace:r.push)(l,n.state,n)},[t,r,a,o,e])}()}const at=d.createContext(null);function it(e,t){let{relative:s}=void 0===t?{}:t,{future:r}=d.useContext(Ze),{matches:n}=d.useContext(et),{pathname:o}=rt(),a=JSON.stringify(H(n,r.v7_relativeSplatPath));return d.useMemo(()=>W(e,JSON.parse(a),o,"path"===s),[e,a,o,s])}function lt(e,t,s,r){st()||y(!1);let{navigator:n}=d.useContext(Ze),{matches:o}=d.useContext(et),a=o[o.length-1],i=a?a.params:{},l=(a&&a.pathname,a?a.pathnameBase:"/");a&&a.route;let c,u=rt();if(t){var p;let e="string"==typeof t?w(t):t;"/"===l||(null==(p=e.pathname)?void 0:p.startsWith(l))||y(!1),c=e}else c=u;let m=c.pathname||"/",f=m;if("/"!==l){let e=l.replace(/^\//,"").split("/");f="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=k(e,{pathname:f}),v=function(e,t,s,r){var n;if(void 0===t&&(t=[]),void 0===s&&(s=null),void 0===r&&(r=null),null==e){var o;if(!s)return null;if(s.errors)e=s.matches;else{if(!(null!=(o=r)&&o.v7_partialHydration&&0===t.length&&!s.initialized&&s.matches.length>0))return null;e=s.matches}}let a=e,i=null==(n=s)?void 0:n.errors;if(null!=i){let e=a.findIndex(e=>e.route.id&&void 0!==(null==i?void 0:i[e.route.id]));e>=0||y(!1),a=a.slice(0,Math.min(a.length,e+1))}let l=!1,c=-1;if(s&&r&&r.v7_partialHydration)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=s,n=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||n){l=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight((e,r,n)=>{let o,u=!1,p=null,m=null;var h;s&&(o=i&&r.route.id?i[r.route.id]:void 0,p=r.route.errorElement||dt,l&&(c<0&&0===n?(xt[h="route-fallback"]||(xt[h]=!0),u=!0,m=null):c===n&&(u=!0,m=r.route.hydrateFallbackElement||null)));let f=t.concat(a.slice(0,n+1)),y=()=>{let t;return t=o?p:u?m:r.route.Component?d.createElement(r.route.Component,null):r.route.element?r.route.element:e,d.createElement(pt,{match:r,routeContext:{outlet:e,matches:f,isDataRoute:null!=s},children:t})};return s&&(r.route.ErrorBoundary||r.route.errorElement||0===n)?d.createElement(ut,{location:s.location,revalidation:s.revalidation,component:p,error:o,children:y(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):y()},null)}(g&&g.map(e=>Object.assign({},e,{params:Object.assign({},i,e.params),pathname:V([l,n.encodeLocation?n.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:V([l,n.encodeLocation?n.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),o,s,r);return t&&v?d.createElement(Xe.Provider,{value:{location:Ye({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:h.Pop}},v):v}function ct(){let e=vt(),t=Q(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),s=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),s?d.createElement("pre",{style:r},s):null,null)}const dt=d.createElement(ct,null);class ut extends d.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?d.createElement(et.Provider,{value:this.props.routeContext},d.createElement(tt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function pt(e){let{routeContext:t,match:s,children:r}=e,n=d.useContext(Je);return n&&n.static&&n.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=s.route.id),d.createElement(et.Provider,{value:t},r)}var mt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(mt||{}),ht=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ht||{});function ft(e){let t=d.useContext(Je);return t||y(!1),t}function yt(e){let t=d.useContext(Qe);return t||y(!1),t}function gt(e){let t=function(){let e=d.useContext(et);return e||y(!1),e}(),s=t.matches[t.matches.length-1];return s.route.id||y(!1),s.route.id}function vt(){var e;let t=d.useContext(tt),s=yt(ht.UseRouteError),r=gt(ht.UseRouteError);return void 0!==t?t:null==(e=s.errors)?void 0:e[r]}let bt=0;const xt={};function wt(e){let{to:t,replace:s,state:r,relative:n}=e;st()||y(!1);let{future:o,static:a}=d.useContext(Ze),{matches:i}=d.useContext(et),{pathname:l}=rt(),c=ot(),u=W(t,H(i,o.v7_relativeSplatPath),l,"path"===n),p=JSON.stringify(u);return d.useEffect(()=>c(JSON.parse(p),{replace:s,state:r,relative:n}),[c,p,n,s,r]),null}function St(e){return function(e){let t=d.useContext(et).outlet;return t?d.createElement(at.Provider,{value:e},t):t}(e.context)}function _t(e){y(!1)}function Et(e){let{basename:t="/",children:s=null,location:r,navigationType:n=h.Pop,navigator:o,static:a=!1,future:i}=e;st()&&y(!1);let l=t.replace(/^\/*/,"/"),c=d.useMemo(()=>({basename:l,navigator:o,static:a,future:Ye({v7_relativeSplatPath:!1},i)}),[l,i,o,a]);"string"==typeof r&&(r=w(r));let{pathname:u="/",search:p="",hash:m="",state:f=null,key:g="default"}=r,v=d.useMemo(()=>{let e=B(u,l);return null==e?null:{location:{pathname:e,search:p,hash:m,state:f,key:g},navigationType:n}},[l,u,p,m,f,g,n]);return null==v?null:d.createElement(Ze.Provider,{value:c},d.createElement(Xe.Provider,{children:s,value:v}))}function jt(e,t){void 0===t&&(t=[]);let s=[];return d.Children.forEach(e,(e,r)=>{if(!d.isValidElement(e))return;let n=[...t,r];if(e.type===d.Fragment)return void s.push.apply(s,jt(e.props.children,n));e.type!==_t&&y(!1),e.props.index&&e.props.children&&y(!1);let o={id:e.props.id||n.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=jt(e.props.children,n)),s.push(o)}),s}function kt(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ct.apply(this,arguments)}d.startTransition,new Promise(()=>{}),d.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Rt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch(da){}function Tt(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ct({},t,{errors:Ot(t.errors)})),t}function Ot(e){if(!e)return null;let t=Object.entries(e),s={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)s[e]=new J(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let n=new t(r.message);n.stack="",s[e]=n}catch(e){}}if(null==s[e]){let t=new Error(r.message);t.stack="",s[e]=t}}else s[e]=r;return s}const Nt=d.createContext({isTransitioning:!1}),Pt=d.createContext(new Map),Lt=d.startTransition,It=p.flushSync;function At(e){It?It(e):e()}d.useId;class Mt{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function Dt(e){let{fallbackElement:t,router:s,future:r}=e,[n,o]=d.useState(s.state),[a,i]=d.useState(),[l,c]=d.useState({isTransitioning:!1}),[u,p]=d.useState(),[m,h]=d.useState(),[f,y]=d.useState(),g=d.useRef(new Map),{v7_startTransition:v}=r||{},b=d.useCallback(e=>{v?function(e){Lt?Lt(e):e()}(e):e()},[v]),x=d.useCallback((e,t)=>{let{deletedFetchers:r,unstable_flushSync:n,unstable_viewTransitionOpts:a}=t;r.forEach(e=>g.current.delete(e)),e.fetchers.forEach((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)});let l=null==s.window||null==s.window.document||"function"!=typeof s.window.document.startViewTransition;if(a&&!l){if(n){At(()=>{m&&(u&&u.resolve(),m.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:a.currentLocation,nextLocation:a.nextLocation})});let t=s.window.document.startViewTransition(()=>{At(()=>o(e))});return t.finished.finally(()=>{At(()=>{p(void 0),h(void 0),i(void 0),c({isTransitioning:!1})})}),void At(()=>h(t))}m?(u&&u.resolve(),m.skipTransition(),y({state:e,currentLocation:a.currentLocation,nextLocation:a.nextLocation})):(i(e),c({isTransitioning:!0,flushSync:!1,currentLocation:a.currentLocation,nextLocation:a.nextLocation}))}else n?At(()=>o(e)):b(()=>o(e))},[s.window,m,u,g,b]);d.useLayoutEffect(()=>s.subscribe(x),[s,x]),d.useEffect(()=>{l.isTransitioning&&!l.flushSync&&p(new Mt)},[l]),d.useEffect(()=>{if(u&&a&&s.window){let e=a,t=u.promise,r=s.window.document.startViewTransition(async()=>{b(()=>o(e)),await t});r.finished.finally(()=>{p(void 0),h(void 0),i(void 0),c({isTransitioning:!1})}),h(r)}},[b,a,u,s.window]),d.useEffect(()=>{u&&a&&n.location.key===a.location.key&&u.resolve()},[u,m,n.location,a]),d.useEffect(()=>{!l.isTransitioning&&f&&(i(f.state),c({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}),y(void 0))},[l.isTransitioning,f]),d.useEffect(()=>{},[]);let w=d.useMemo(()=>({createHref:s.createHref,encodeLocation:s.encodeLocation,go:e=>s.navigate(e),push:(e,t,r)=>s.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>s.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})}),[s]),S=s.basename||"/",_=d.useMemo(()=>({router:s,navigator:w,static:!1,basename:S}),[s,w,S]),E=d.useMemo(()=>({v7_relativeSplatPath:s.future.v7_relativeSplatPath}),[s.future.v7_relativeSplatPath]);return d.createElement(d.Fragment,null,d.createElement(Je.Provider,{value:_},d.createElement(Qe.Provider,{value:n},d.createElement(Pt.Provider,{value:g.current},d.createElement(Nt.Provider,{value:l},d.createElement(Et,{basename:S,location:n.location,navigationType:n.historyAction,navigator:w,future:E},n.initialized||s.future.v7_partialHydration?d.createElement(Ft,{routes:s.routes,future:s.future,state:n}):t))))),null)}const Ft=d.memo(zt);function zt(e){let{routes:t,future:s,state:r}=e;return lt(t,void 0,r,s)}const Ut="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Bt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qt=d.forwardRef(function(e,t){let s,{onClick:r,relative:n,reloadDocument:o,replace:a,state:i,target:l,to:c,preventScrollReset:u,unstable_viewTransition:p}=e,m=function(e,t){if(null==e)return{};var s,r,n={},o=Object.keys(e);for(r=0;r<o.length;r++)s=o[r],t.indexOf(s)>=0||(n[s]=e[s]);return n}(e,Rt),{basename:h}=d.useContext(Ze),f=!1;if("string"==typeof c&&Bt.test(c)&&(s=c,Ut))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),s=B(t.pathname,h);t.origin===e.origin&&null!=s?c=s+t.search+t.hash:f=!0}catch(e){}let g=function(e,t){let{relative:s}=void 0===t?{}:t;st()||y(!1);let{basename:r,navigator:n}=d.useContext(Ze),{hash:o,pathname:a,search:i}=it(e,{relative:s}),l=a;return"/"!==r&&(l="/"===a?r:V([r,a])),n.createHref({pathname:l,search:i,hash:o})}(c,{relative:n}),v=function(e,t){let{target:s,replace:r,state:n,preventScrollReset:o,relative:a,unstable_viewTransition:i}=void 0===t?{}:t,l=ot(),c=rt(),u=it(e,{relative:a});return d.useCallback(t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,s)){t.preventDefault();let s=void 0!==r?r:x(c)===x(u);l(e,{replace:s,state:n,preventScrollReset:o,relative:a,unstable_viewTransition:i})}},[c,l,u,r,n,s,e,o,a,i])}(c,{replace:a,state:i,target:l,preventScrollReset:u,relative:n,unstable_viewTransition:p});return d.createElement("a",Ct({},m,{href:s||g,onClick:f||o?r:function(e){r&&r(e),e.defaultPrevented||v(e)},ref:t,target:l}))});var $t,Ht;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($t||($t={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Ht||(Ht={}));const Wt=window.wp.i18n,Vt=(e,t)=>{try{return(0,a.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}};var Gt=s(6702),Kt=s.n(Gt),Yt=s(1802),Jt=s.n(Yt);const Qt=window.ReactJSXRuntime,Zt=({link:e})=>{const t=(0,a.useMemo)(()=>Vt((0,Wt.sprintf)(/* translators: %1$s expands to "Yoast SEO" academy, which is a clickable link. */ /* translators: %1$s expands to "Yoast SEO" academy, which is a clickable link. */
(0,Wt.__)("Want to learn SEO from Team Yoast? Check out our %1$s!","wordpress-seo"),"<link/>"),{link:(0,Qt.jsx)("a",{href:e,target:"_blank",rel:"noopener",children:"Yoast SEO academy"})}),[]);return(0,Qt.jsxs)(l.Paper,{as:"div",className:"yst-p-6 yst-space-y-3",children:[(0,Qt.jsx)(l.Title,{as:"h2",size:"4",className:"yst-text-base yst-text-primary-500",children:(0,Wt.__)("Learn SEO","wordpress-seo")}),(0,Qt.jsxs)("p",{children:[t,(0,Qt.jsx)("br",{}),(0,Wt.__)("We have both free and premium online courses to learn everything you need to know about SEO.","wordpress-seo")]}),(0,Qt.jsxs)(l.Link,{href:e,className:"yst-block yst-font-medium",target:"_blank",rel:"noopener",children:[(0,Wt.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ /* translators: %1$s expands to "Yoast SEO academy". */
(0,Wt.__)("Check out %1$s","wordpress-seo"),"Yoast SEO academy"),(0,Qt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,Wt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Qt.jsx)(Kt(),{className:"yst-w-3 yst-h-3 yst-mb-[1px] yst-icon-rtl yst-inline-block"})]})]})};Zt.propTypes={link:Jt().string.isRequired};var Xt=s(2514),es=s.n(Xt),ts=s(818),ss=s.n(ts);Jt().string.isRequired,Jt().string.isRequired,Jt().shape({src:Jt().string.isRequired,width:Jt().string,height:Jt().string}).isRequired,Jt().shape({value:Jt().bool.isRequired,status:Jt().string.isRequired,set:Jt().func.isRequired}).isRequired,Jt().string,Jt().string,Jt().string;const rs=({handleRefreshClick:e,supportLink:t})=>(0,Qt.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,Qt.jsx)(l.Button,{onClick:e,children:(0,Wt.__)("Refresh this page","wordpress-seo")}),(0,Qt.jsx)(l.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Wt.__)("Contact support","wordpress-seo")})]});rs.propTypes={handleRefreshClick:Jt().func.isRequired,supportLink:Jt().string.isRequired};const ns=({handleRefreshClick:e,supportLink:t})=>(0,Qt.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,Qt.jsx)(l.Button,{className:"yst-order-last",onClick:e,children:(0,Wt.__)("Refresh this page","wordpress-seo")}),(0,Qt.jsx)(l.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Wt.__)("Contact support","wordpress-seo")})]});ns.propTypes={handleRefreshClick:Jt().func.isRequired,supportLink:Jt().string.isRequired};const os=({error:e,children:t=null})=>(0,Qt.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,Qt.jsx)(l.Title,{children:(0,Wt.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,Qt.jsx)("p",{children:(0,Wt.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,Qt.jsx)(l.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,Wt.__)("Undefined error message.","wordpress-seo")}),(0,Qt.jsx)("p",{children:(0,Wt.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});os.propTypes={error:Jt().object.isRequired,children:Jt().node},os.VerticalButtons=ns,os.HorizontalButtons=rs;Jt().string,Jt().node.isRequired,Jt().node.isRequired,Jt().node,Jt().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const as=({to:e,idSuffix:t="",...s})=>{const r=(0,a.useMemo)(()=>(0,c.replace)((0,c.replace)(`link-${e}`,"/","-"),"--","-"),[e]);return(0,Qt.jsx)(l.SidebarNavigation.SubmenuItem,{as:qt,pathProp:"to",id:`${r}${t}`,to:e,...s})};as.propTypes={to:Jt().string.isRequired,idSuffix:Jt().string};const is=({href:e,children:t=null,...s})=>(0,Qt.jsxs)(l.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,Qt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,Wt.__)("(Opens in a new browser tab)","wordpress-seo")})]});is.propTypes={href:Jt().string.isRequired,children:Jt().node};var ls=s(8738),cs=s.n(ls);const ds=[(0,Wt.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,Wt.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,Wt.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,Wt.__)("Optimize pages for multiple keywords with guidance","wordpress-seo")],us=[(0,Wt.__)("Add product details to help your listings stand out","wordpress-seo"),(0,Wt.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,Wt.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,Wt.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo")],ps=[(0,Wt.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,Wt.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,Wt.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,Wt.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,Wt.__)("Internal links and redirect management, easy","wordpress-seo"),(0,Wt.__)("Access to friendly help when you need it, day or night","wordpress-seo")],ms=(e=!1)=>e?ds:ps,hs=(e=!1)=>{if(e)return us;const t=[...ps];return t[1]=(0,Wt.__)("Boost visibility for your products, from 10 or 10,000+","wordpress-seo"),t};var fs,ys,gs,vs,bs,xs,ws;function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ss.apply(null,arguments)}const _s=e=>d.createElement("svg",Ss({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-name":"Layer 1",viewBox:"0 0 200 200"},e),fs||(fs=d.createElement("defs",null,d.createElement("radialGradient",{id:"yoast-premium-logo-new_svg__b",cx:116.36,cy:44.04,r:36.58,fx:116.36,fy:44.04,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:0,stopColor:"#9fda4f"}),d.createElement("stop",{offset:1,stopColor:"#77b227"})),d.createElement("radialGradient",{id:"yoast-premium-logo-new_svg__c",cx:92.08,cy:114.68,r:29.3,fx:92.08,fy:114.68,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:0,stopColor:"#fec228"}),d.createElement("stop",{offset:.22,stopColor:"#fbb81e"}),d.createElement("stop",{offset:1,stopColor:"#f49a00"})),d.createElement("radialGradient",{id:"yoast-premium-logo-new_svg__d",cx:60.52,cy:156.68,r:14.35,fx:60.52,fy:156.68,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:0,stopColor:"#ff4e47"}),d.createElement("stop",{offset:1,stopColor:"#ed261f"})),d.createElement("linearGradient",{id:"yoast-premium-logo-new_svg__a",x1:-7.73,x2:218.16,y1:59.99,y2:143.88,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:.17,stopColor:"#5d237a"}),d.createElement("stop",{offset:.42,stopColor:"#7c2072"}),d.createElement("stop",{offset:.71,stopColor:"#9a1e6b"}),d.createElement("stop",{offset:.87,stopColor:"#a61e69"})))),ys||(ys=d.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__a)",d:"M200 200H32c-17.67 0-32-14.33-32-32V32C0 14.33 14.33 0 32 0h136c17.67 0 32 14.33 32 32v168z"})),gs||(gs=d.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__b)",d:"M156.41 26.63c-17.59-9.93-39.9-3.73-49.84 13.86-9.94 17.59-3.73 39.9 13.86 49.84 17.59 9.94 39.9 3.73 49.84-13.86 9.93-17.59 3.73-39.9-13.86-49.84"})),vs||(vs=d.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__c)",d:"M119.44 102.75s-.04-.02-.06-.04c-.02 0-.03-.02-.05-.03-12.13-6.71-26.33-1.98-32.56 9.06-6.49 11.5-2.43 26.07 9.06 32.57s.02 0 .03.02c0 0 .02 0 .03.02 11.49 6.45 26.03 2.4 32.51-9.08 6.47-11.46 2.46-25.98-8.95-32.5"})),bs||(bs=d.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__d)",d:"M85.91 163.76c0-5-2.62-9.85-7.27-12.49a14.278 14.278 0 0 0-7.05-1.86c-7.9 0-14.36 6.4-14.36 14.34s6.4 14.36 14.34 14.36 14.36-6.4 14.36-14.34"})),xs||(xs=d.createElement("path",{fill:"#fff",d:"M29.52 136.99v13.02c8.06-.34 14.36-2.98 19.7-8.39s10.22-14.18 14.89-27.2L98.65 21.9H81.94L54.11 99.2l-13.8-43.35h-15.3l20.29 52.16a21.402 21.402 0 0 1 0 15.59c-2.05 5.3-5.74 11.53-15.78 13.39z"})),ws||(ws=d.createElement("path",{fill:"#cd82ab",d:"M172.2 175.15h-33.59v2.95h33.59v-2.95zm-9.08-11.64-7.72-14.2-7.72 14.2-11.88-8.44 2.8 18.99h33.59l2.8-18.99-11.88 8.44z"})));var Es,js,ks,Cs,Rs,Ts,Os;function Ns(){return Ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ns.apply(null,arguments)}const Ps=e=>d.createElement("svg",Ns({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true","data-name":"Layer 1",viewBox:"0 0 200 200"},e),Es||(Es=d.createElement("defs",null,d.createElement("radialGradient",{id:"woo-seo-logo-new_svg__b",cx:116.36,cy:44.04,r:36.58,fx:116.36,fy:44.04,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:0,stopColor:"#9fda4f"}),d.createElement("stop",{offset:1,stopColor:"#77b227"})),d.createElement("radialGradient",{id:"woo-seo-logo-new_svg__c",cx:92.08,cy:114.68,r:29.3,fx:92.08,fy:114.68,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:0,stopColor:"#fec228"}),d.createElement("stop",{offset:.22,stopColor:"#fbb81e"}),d.createElement("stop",{offset:1,stopColor:"#f49a00"})),d.createElement("radialGradient",{id:"woo-seo-logo-new_svg__d",cx:60.52,cy:156.68,r:14.35,fx:60.52,fy:156.68,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:0,stopColor:"#ff4e47"}),d.createElement("stop",{offset:1,stopColor:"#ed261f"})),d.createElement("linearGradient",{id:"woo-seo-logo-new_svg__a",x1:-7.73,x2:218.16,y1:59.99,y2:143.88,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:.17,stopColor:"#0e1e65"}),d.createElement("stop",{offset:.48,stopColor:"#064b8d"}),d.createElement("stop",{offset:.73,stopColor:"#0169a8"}),d.createElement("stop",{offset:.87,stopColor:"#0075b3"})))),js||(js=d.createElement("path",{fill:"url(#woo-seo-logo-new_svg__a)",d:"M200 200H32c-17.67 0-32-14.33-32-32V32C0 14.33 14.33 0 32 0h136c17.67 0 32 14.33 32 32v168z"})),ks||(ks=d.createElement("path",{fill:"url(#woo-seo-logo-new_svg__b)",d:"M156.41 26.63c-17.59-9.93-39.9-3.73-49.84 13.86-9.94 17.59-3.73 39.9 13.86 49.84 17.59 9.94 39.9 3.73 49.84-13.86 9.93-17.59 3.73-39.9-13.86-49.84"})),Cs||(Cs=d.createElement("path",{fill:"url(#woo-seo-logo-new_svg__c)",d:"M119.44 102.75s-.04-.02-.06-.04c-.02 0-.03-.02-.05-.03-12.13-6.71-26.33-1.98-32.56 9.06-6.49 11.5-2.43 26.07 9.06 32.57s.02 0 .03.02c0 0 .02 0 .03.02 11.49 6.45 26.03 2.4 32.51-9.08 6.47-11.46 2.46-25.98-8.95-32.5"})),Rs||(Rs=d.createElement("path",{fill:"url(#woo-seo-logo-new_svg__d)",d:"M85.91 163.76c0-5-2.62-9.85-7.27-12.49a14.278 14.278 0 0 0-7.05-1.86c-7.9 0-14.36 6.4-14.36 14.34s6.4 14.36 14.34 14.36 14.36-6.4 14.36-14.34"})),Ts||(Ts=d.createElement("path",{fill:"#fff",d:"M29.52 136.99v13.02c8.06-.34 14.36-2.98 19.7-8.39s10.22-14.18 14.89-27.2L98.65 21.9H81.94L54.11 99.2l-13.8-43.35h-15.3l20.29 52.16a21.402 21.402 0 0 1 0 15.59c-2.05 5.3-5.74 11.53-15.78 13.39z"})),Os||(Os=d.createElement("path",{fill:"#a1cce3",d:"M171.68 147.89a2.9 2.9 0 0 0-2.81 2.16l-.36 1.34c-8.43-.15-16.85.83-25.01 2.9-.03 0-.05.01-.08.02-.61.21-.94.86-.73 1.47a90.79 90.79 0 0 0 4.59 11.2c.19.4.6.65 1.05.65h17.38c1.47 0 2.79.93 3.29 2.32h-23.04a1.16 1.16 0 0 0 0 2.32h24.4c.64 0 1.16-.52 1.16-1.16 0-2.65-1.78-4.95-4.35-5.62l3.97-14.86a.58.58 0 0 1 .56-.43h2.14a1.16 1.16 0 0 0 0-2.32h-2.15zm-2.5 30.21c-1.28 0-2.32-1.04-2.32-2.32s1.04-2.32 2.32-2.32 2.32 1.04 2.32 2.32-1.04 2.32-2.32 2.32zm-19.75 0c-1.28 0-2.32-1.04-2.32-2.32s1.04-2.32 2.32-2.32 2.32 1.04 2.32 2.32-1.04 2.32-2.32 2.32z"})));var Ls=s(2485),Is=s.n(Ls);const As=({isBlackFriday:e,link:t,linkProps:s})=>(0,Qt.jsxs)(l.Button,{as:"a",variant:"upsell",href:t,target:"_blank",rel:"noopener",className:"yst-flex yst-justify-center yst-gap-2 yst-mt-4 focus:yst-ring-offset-primary-500",...s,children:[(0,Qt.jsx)("span",{children:e?(0,Wt.__)("Buy now for 30% off","wordpress-seo"):(0,Wt.__)("Buy now","wordpress-seo")}),(0,Qt.jsx)(ss(),{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0 yst-icon-rtl"})]}),Ms=({isWooCommerceActive:e})=>(0,Qt.jsx)(l.Title,{as:"h2",className:Is()("yst-mt-6 yst-text-xl yst-font-semibold",e?"yst-text-woo-light":"yst-text-primary-500"),children:e?"Yoast WooCommerce SEO":"Yoast SEO Premium"}),Ds=({link:e,linkProps:t,isPromotionActive:s,isWooCommerceActive:r})=>{const n=r?hs:ms,o=(0,a.useMemo)(()=>r?(0,Wt.__)("Grow your store's visibility!","wordpress-seo"):(0,Wt.__)("Spend less time on SEO tasks!","wordpress-seo"),[r]),i=(0,a.useMemo)(()=>r?(0,Wt.__)("Help ready-to-buy shoppers and search engines find your product.","wordpress-seo"):(0,Wt.__)("Optimize your site faster, smarter, and with more confidence.","wordpress-seo"),[r]),l=(0,a.useMemo)(()=>r?(0,Wt.__)("Less friction. Smarter optimization.","wordpress-seo"):(0,Wt.__)("Less friction. Faster publishing.","wordpress-seo"),[r]),c=s("black-friday-promotion");return(0,Qt.jsxs)("div",{className:Is()("yst-p-6 yst-rounded-lg yst-text-slate-600 yst-bg-white yst-shadow yst-border",r?"yst-border-woo-light yst-border-opacity-50":"yst-border-primary-300"),children:[(0,Qt.jsx)("figure",{className:"yst-logo-square yst-w-16 yst-h-16 yst-mx-auto yst-overflow-hidden yst-relative yst-z-10 yst-mt-[-2.6rem]",children:r?(0,Qt.jsx)(Ps,{}):(0,Qt.jsx)(_s,{})}),c&&(0,Qt.jsx)("div",{className:"sidebar__sale_banner_container",children:(0,Qt.jsx)("div",{className:"sidebar__sale_banner",children:(0,Qt.jsx)("span",{className:"banner_text",children:(0,Wt.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})})}),(0,Qt.jsx)(Ms,{isWooCommerceActive:r}),(0,Qt.jsx)("p",{className:"yst-mt-3 yst-font-medium yst-text-slate-800",children:o}),(0,Qt.jsx)("p",{className:"yst-mt-1 yst-font-normal",children:i}),(0,Qt.jsx)("ul",{className:"yst-list-outside yst-text-slate-600 yst-mt-4 yst-flex yst-flex-col yst-gap-2",children:n(!0).map((e,t)=>(0,Qt.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,Qt.jsx)(cs(),{className:"yst-me-2 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),e]},`upsell-benefit-${t}`))}),(0,Qt.jsx)(As,{link:e,linkProps:t,isBlackFriday:c}),(0,Qt.jsx)("p",{className:"yst-text-center yst-text-xs yst-font-normal yst-leading-5 yst-text-slate-500 yst-italic yst-mt-3 yst-mb-2",children:l}),(0,Qt.jsx)("hr",{className:"yst-border-t yst-border-slate-200 yst-my-4"}),(0,Qt.jsxs)("ul",{className:"yst-text-center yst-text-xs yst-font-medium yst-text-slate-800 yst-list-none",children:[(0,Qt.jsx)("li",{children:(0,Wt.__)("30-day money back guarantee","wordpress-seo")}),(0,Qt.jsx)("li",{children:(0,Wt.__)("24/7 support","wordpress-seo")})]})]})};Ds.propTypes={link:Jt().string.isRequired,linkProps:Jt().object.isRequired,isPromotionActive:Jt().func.isRequired,isWooCommerceActive:Jt().bool.isRequired};var Fs,zs=s(3473),Us=s.n(zs);function Bs(){return Bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Bs.apply(null,arguments)}const qs=e=>d.createElement("svg",Bs({xmlns:"http://www.w3.org/2000/svg",fill:"none","aria-hidden":"true",viewBox:"0 0 16 12"},e),Fs||(Fs=d.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74z"})));var $s;function Hs(){return Hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Hs.apply(null,arguments)}const Ws=e=>d.createElement("svg",Hs({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none","aria-hidden":"true"},e),$s||($s=d.createElement("path",{fill:"#0075B3",d:"M12.613.445a1.26 1.26 0 0 0-1.22.937l-.156.583A40.97 40.97 0 0 0 .379 3.225c-.013 0-.022.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.861c.084.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.01h10.592a.507.507 0 0 0 .506-.505c0-1.149-.774-2.15-1.888-2.441l1.722-6.452a.25.25 0 0 1 .243-.185h.931a.507.507 0 0 0 0-1.011h-.931l-.003.003zm-1.085 13.114a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016z"}))),Vs=({isWooCommerceActive:e})=>(0,Qt.jsxs)("div",{className:"yst-flex yst-items-center",children:[(0,Qt.jsx)(l.Title,{as:"h2",size:"4",className:"yst-text-xl yst-font-semibold "+(e?"yst-text-woo-light":"yst-text-primary-500 "),children:(0,Wt.sprintf)(/* translators: %s expands to product name: "Yoast WooCommerce SEO" or "Yoast SEO Premium" */ /* translators: %s expands to product name: "Yoast WooCommerce SEO" or "Yoast SEO Premium" */
(0,Wt.__)("Upgrade to %s","wordpress-seo"),e?"Yoast WooCommerce SEO":"Yoast SEO Premium")}),e?(0,Qt.jsx)(Ws,{className:"yst-ms-2 yst-w-4 yst-h-3"}):(0,Qt.jsx)(qs,{className:"yst-ms-2 yst-w-4 yst-h-3"})]}),Gs=({isWooCommerceActive:e,premiumLink:t,premiumUpsellConfig:s={},isBlackFriday:r})=>{let n=(0,Wt.sprintf)(/* translators: %s expands to product name: "Yoast WooCommerce SEO" or "Yoast SEO Premium" */ /* translators: %s expands to product name: "Yoast WooCommerce SEO" or "Yoast SEO Premium" */
(0,Wt.__)("Explore %s now!","wordpress-seo"),e?"Yoast WooCommerce SEO":"Yoast SEO Premium");return r&&(n=(0,Wt.__)("Get 30% off now!","wordpress-seo")),(0,Qt.jsxs)(l.Button,{as:"a",variant:"upsell",size:"extra-large",href:t,className:"yst-gap-2 yst-mt-6 sm:yst-max-w-sm",target:"_blank",rel:"noopener",...s,children:[n,(0,Qt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,Wt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Qt.jsx)(Us(),{className:"yst-w-4 yst-h-4 yst-icon-rtl"})]})},Ks=({premiumLink:e,premiumUpsellConfig:t={},isPromotionActive:s,isWooCommerceActive:r})=>{const n=s("black-friday-promotion"),o=r?hs:ms,a=[...r?["Yoast SEO Premium"]:[],"Local SEO","News SEO","Video SEO",(0,Wt.__)("Google Docs add-on (1 seat)","wordpress-seo")];return(0,Qt.jsxs)(l.Paper,{as:"div",className:"yst-max-w-4xl",children:[n&&(0,Qt.jsxs)("div",{className:"yst-rounded-t-lg yst-h-9 yst-flex yst-justify-between yst-items-center yst-bg-black yst-text-amber-300 yst-px-4 yst-text-lg yst-border-b yst-border-amber-300 yst-border-solid yst-font-medium",children:[(0,Qt.jsx)("div",{children:(0,Wt.__)("30% OFF","wordpress-seo")}),(0,Qt.jsx)("div",{children:(0,Wt.__)("BLACK FRIDAY","wordpress-seo")})]}),(0,Qt.jsxs)("div",{className:"yst-p-6 yst-flex yst-flex-col",children:[(0,Qt.jsx)(Vs,{isWooCommerceActive:r}),(0,Qt.jsxs)("div",{className:"yst-font-medium yst-text-slate-800 yst-text-xs yst-leading-7 yst-mt-2",children:[(0,Qt.jsx)("span",{className:"yst-me-2",children:(0,Wt.__)("Now includes:","wordpress-seo")}),(0,Qt.jsx)("div",{className:"yst-inline-block",children:a.map((e,t)=>(0,Qt.jsx)(l.Badge,{size:"small",variant:"plain",className:Is()("yst-me-2 yst-bg-opacity-15",r?"yst-bg-woo-light yst-text-[#006499]":"yst-bg-primary-500 yst-text-primary-500"),children:e},`now-including-${t}`))})]}),(0,Qt.jsx)("ul",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 yst-gap-x-6 yst-gap-y-2 yst-list-none yst-list-outside yst-text-slate-600 yst-mt-4",children:o().map((e,t)=>(0,Qt.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,Qt.jsx)(cs(),{className:"yst-me-2 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),e]},`upsell-benefit-${t}`))}),(0,Qt.jsx)(Gs,{isBlackFriday:n,isWooCommerceActive:r,premiumLink:e,premiumUpsellConfig:t})]})]})};Ks.propTypes={premiumLink:Jt().string.isRequired,premiumUpsellConfig:Jt().object,isPromotionActive:Jt().func.isRequired,isWooCommerceActive:Jt().bool.isRequired};const Ys=({premiumLink:e,premiumUpsellConfig:t,academyLink:s,isPromotionActive:r,isWooCommerceActive:n})=>(0,Qt.jsxs)("div",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 xl:yst-grid-cols-1 yst-gap-4",children:[(0,Qt.jsx)(Ds,{link:e,linkProps:t,isPromotionActive:r,isWooCommerceActive:n}),(0,Qt.jsx)(Zt,{link:s})]});Ys.propTypes={premiumLink:Jt().string.isRequired,premiumUpsellConfig:Jt().object.isRequired,academyLink:Jt().string.isRequired,isPromotionActive:Jt().func.isRequired,isWooCommerceActive:Jt().bool.isRequired};var Js=s(5074),Qs=s.n(Js);const Zs=({isOpen:e,onClose:t=c.noop,onDiscard:s=c.noop,title:r,description:n,dismissLabel:o,discardLabel:a})=>{const i=(0,l.useSvgAria)();return(0,Qt.jsx)(l.Modal,{isOpen:e,onClose:t,children:(0,Qt.jsxs)(l.Modal.Panel,{closeButtonScreenReaderText:(0,Wt.__)("Close","wordpress-seo"),children:[(0,Qt.jsxs)("div",{className:"sm:yst-flex sm:yst-items-start",children:[(0,Qt.jsx)("div",{className:"yst-mx-auto yst-flex-shrink-0 yst-flex yst-items-center yst-justify-center yst-h-12 yst-w-12 yst-rounded-full yst-bg-red-100 sm:yst-mx-0 sm:yst-h-10 sm:yst-w-10",children:(0,Qt.jsx)(Qs(),{className:"yst-h-6 yst-w-6 yst-text-red-600",...i})}),(0,Qt.jsxs)("div",{className:"yst-mt-3 yst-text-center sm:yst-mt-0 sm:yst-ms-4 sm:yst-text-start",children:[(0,Qt.jsx)(l.Modal.Title,{className:"yst-text-lg yst-leading-6 yst-font-medium yst-text-slate-900 yst-mb-3",children:r}),(0,Qt.jsx)(l.Modal.Description,{className:"yst-text-sm yst-text-slate-500",children:n})]})]}),(0,Qt.jsxs)("div",{className:"yst-flex yst-flex-col sm:yst-flex-row-reverse yst-gap-3 yst-mt-6",children:[(0,Qt.jsx)(l.Button,{type:"button",variant:"error",onClick:s,className:"yst-block",children:a}),(0,Qt.jsx)(l.Button,{type:"button",variant:"secondary",onClick:t,className:"yst-block",children:o})]})]})})};Zs.propTypes={isOpen:Jt().bool.isRequired,onClose:Jt().func,onDiscard:Jt().func,title:Jt().string.isRequired,description:Jt().string.isRequired,dismissLabel:Jt().string.isRequired,discardLabel:Jt().string.isRequired};const Xs=window.yoast.reactHelmet,er="request",tr="success",sr="error",rr="loading",nr="error";var or,ar;function ir(){return ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},ir.apply(null,arguments)}Jt().string.isRequired,Jt().shape({src:Jt().string.isRequired,width:Jt().string,height:Jt().string}).isRequired,Jt().shape({value:Jt().bool.isRequired,status:Jt().string.isRequired,set:Jt().func.isRequired}).isRequired,Jt().bool;const lr=e=>d.createElement("svg",ir({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"yoast-logo_svg__w-40",viewBox:"0 0 842 224"},e),or||(or=d.createElement("path",{fill:"#a61e69",d:"M166.55 54.09c-38.69 0-54.17 25.97-54.17 54.88s15.25 56.02 54.17 56.02 54.07-27.19 54-54.26c-.09-32.97-16.77-56.65-54-56.65Zm-23.44 56.52c.94-38.69 30.66-38.65 40.59-24.79 9.05 12.63 10.9 55.81-17.14 55.5-12.92-.14-23.06-8.87-23.44-30.71Zm337.25 27.55V82.11h20.04V57.78h-20.04V28.39h-30.95v29.39h-15.7v24.33h15.7v52.87c0 30.05 20.95 47.91 43.06 51.61l9.24-24.88c-12.89-1.63-21.23-11.27-21.35-23.54Zm-156.15-8.87V87.16c0-1.54-.1-2.98-.25-4.39-2.68-34.04-51.02-33.97-88.46-20.9l10.82 21.78c24.38-11.58 38.97-8.59 44.07-2.89.13.15.26.29.38.45.01.02.03.04.04.06 2.6 3.51 1.98 9.05 1.98 13.41-31.86 0-65.77 4.23-65.77 39.17 0 26.56 33.28 43.65 68.06 18.33l5.16 12.45h29.81c-2.66-14.62-5.85-27.14-5.85-35.34Zm-31.18-.23c-24.51 27.43-46.96 1.61-23.97-9.65 6.77-2.31 15.95-2.41 23.97-2.41v12.06Zm78.75-44.17c0-10.38 16.61-15.23 42.82-3.27l9.06-22.01c-35.27-10.66-83.44-11.62-83.75 25.28-.15 17.68 11.19 27.19 27.52 33.26 11.31 4.2 27.64 6.38 27.59 15.39-.06 11.77-25.38 13.57-48.42-2.26l-9.31 23.87c31.43 15.64 89.87 16.08 89.56-23.12-.31-38.76-55.08-32.11-55.08-47.14ZM99.3 1 54.44 125.61 32.95 58.32H1l35.78 91.89a33.49 33.49 0 0 1 0 24.33c-4 10.25-10.65 19.03-26.87 21.21v27.24c31.58 0 48.65-19.41 63.88-61.96L133.48 1H99.3ZM598.64 139.05c0 8.17-2.96 14.58-8.87 19.23-5.91 4.65-14.07 6.98-24.47 6.98s-18.92-1.61-25.54-4.84v-14.2c4.19 1.97 8.65 3.52 13.37 4.65 4.72 1.13 9.11 1.7 13.18 1.7 5.95 0 10.35-1.13 13.18-3.39 2.83-2.26 4.25-5.3 4.25-9.11 0-3.43-1.3-6.35-3.9-8.74-2.6-2.39-7.97-5.22-16.1-8.48-8.39-3.39-14.3-7.27-17.74-11.63-3.44-4.36-5.16-9.59-5.16-15.71 0-7.67 2.72-13.7 8.18-18.1 5.45-4.4 12.77-6.6 21.95-6.6s17.57 1.93 26.29 5.78l-4.78 12.26c-8.18-3.43-15.47-5.15-21.89-5.15-4.87 0-8.55 1.06-11.07 3.17-2.52 2.12-3.77 4.91-3.77 8.39 0 2.39.5 4.43 1.51 6.13s2.66 3.3 4.97 4.81c2.3 1.51 6.46 3.5 12.45 5.97 6.75 2.81 11.7 5.43 14.85 7.86 3.15 2.43 5.45 5.18 6.92 8.23 1.46 3.06 2.2 6.66 2.2 10.81Zm68.53 24.96h-52.02V72.12h52.02v12.7h-36.99v25.01h34.66v12.57h-34.66v28.85h36.99v12.76Zm100.24-46.07c0 14.96-3.74 26.59-11.23 34.88-7.49 8.3-18.08 12.44-31.8 12.44s-24.54-4.12-31.99-12.35c-7.44-8.23-11.17-19.93-11.17-35.1s3.74-26.82 11.23-34.95c7.49-8.13 18.17-12.19 32.05-12.19s24.24 4.13 31.7 12.38c7.47 8.26 11.2 19.88 11.2 34.88Zm-70.2 0c0 11.31 2.29 19.89 6.86 25.74 4.57 5.85 11.35 8.77 20.32 8.77s15.67-2.89 20.22-8.67c4.55-5.78 6.82-14.39 6.82-25.83s-2.25-19.82-6.76-25.64-11.23-8.74-20.16-8.74-15.82 2.91-20.41 8.74c-4.59 5.82-6.89 14.37-6.89 25.64Z"})),ar||(ar=d.createElement("path",{fill:"#77b227",d:"m790.45 165.35 36.05-94.96H840l-36.02 94.96h-13.53z"})));var cr,dr,ur,pr,mr,hr,fr,yr,gr,vr,br,xr,wr,Sr,_r,Er,jr,kr,Cr,Rr,Tr,Or,Nr,Pr,Lr,Ir,Ar,Mr,Dr,Fr,zr,Ur,Br,qr,$r,Hr,Wr,Vr,Gr,Kr,Yr,Jr,Qr,Zr,Xr,en,tn,sn,rn,nn,on,an,ln,cn,dn,un,pn,mn,hn,fn,yn,gn,vn,bn,xn,wn,Sn,En,jn,kn=s(5687),Cn=s.n(kn);function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Rn.apply(null,arguments)}const Tn=e=>d.createElement("svg",Rn({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none","aria-hidden":"true",viewBox:"0 0 252 60"},e),cr||(cr=d.createElement("linearGradient",{id:"yoast-connect-google-site-kit_svg__a"},d.createElement("stop",{offset:0,stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610b39"}),d.createElement("stop",{offset:.15,stopColor:"#79164b"}),d.createElement("stop",{offset:.29,stopColor:"#8c1e59"}),d.createElement("stop",{offset:.44,stopColor:"#9a2463"}),d.createElement("stop",{offset:.63,stopColor:"#a22768"}),d.createElement("stop",{offset:1,stopColor:"#a4286a"}))),dr||(dr=d.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__b",x1:49.556,x2:49.556,y1:36.267,y2:23.152,gradientUnits:"userSpaceOnUse"})),ur||(ur=d.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__c",x1:82.801,x2:82.801,y1:38.819,y2:20.113,gradientUnits:"userSpaceOnUse"})),pr||(pr=d.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__d",x1:62.504,x2:62.504,y1:36.222,y2:23.113,gradientUnits:"userSpaceOnUse"})),mr||(mr=d.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__e",x1:73.951,x2:73.951,y1:36.276,y2:23.046,gradientUnits:"userSpaceOnUse"})),hr||(hr=d.createElement("linearGradient",{id:"yoast-connect-google-site-kit_svg__f",x1:25.237,x2:25.237,y1:16.169,y2:36.914,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:0,stopColor:"#77b227"}),d.createElement("stop",{offset:.47,stopColor:"#75b027"}),d.createElement("stop",{offset:.64,stopColor:"#6eab27"}),d.createElement("stop",{offset:.75,stopColor:"#63a027"}),d.createElement("stop",{offset:.85,stopColor:"#529228"}),d.createElement("stop",{offset:.93,stopColor:"#3c8028"}),d.createElement("stop",{offset:1,stopColor:"#246b29"}))),fr||(fr=d.createElement("clipPath",{id:"yoast-connect-google-site-kit_svg__g"},d.createElement("path",{d:"M169.334 22h14.973v15.909h-14.973z"}))),yr||(yr=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__b)",fillRule:"evenodd",d:"M36.765 29.643c0-3.42 1.83-6.49 6.405-6.49 4.402 0 6.375 2.8 6.386 6.698.008 3.2-1.785 6.416-6.386 6.416-4.602 0-6.405-3.072-6.405-6.624zm8.432-2.74c-1.174-1.64-4.688-1.64-4.8 2.932.046 2.582 1.245 3.614 2.773 3.63 3.316.039 3.092-5.067 2.027-6.562z",clipRule:"evenodd"})),gr||(gr=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__c)",d:"M80.278 33.094v-6.631h2.368v-2.874h-2.368v-3.476h-3.66v3.476h-1.856v2.876h1.857v6.258c0 3.553 2.477 5.665 5.092 6.102l1.092-2.949c-1.524-.192-2.51-1.332-2.525-2.782z"})),vr||(vr=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__d)",fillRule:"evenodd",d:"M61.81 27.062v4.981c0 .7.196 1.67.426 2.803.088.436.182.897.27 1.376h-3.523l-.611-1.472c-4.118 2.994-8.053.974-8.053-2.168 0-4.131 4.01-4.632 7.777-4.632l.003-.249c.01-.465.02-.985-.24-1.336v-.007l-.034-.04-.011-.013c-.602-.675-2.327-1.028-5.21.341l-1.283-2.575c4.428-1.546 10.143-1.555 10.46 2.47.019.174.028.347.03.52zm-6.52 3.81c-2.718 1.331-.064 4.384 2.835 1.14v-1.425c-.949 0-2.035.012-2.835.284z",clipRule:"evenodd"})),br||(br=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__e)",d:"M67.439 26.794c0-1.227 1.966-1.8 5.064-.386l1.072-2.605c-4.17-1.262-9.866-1.371-9.904 2.991-.017 2.091 1.324 3.216 3.255 3.934 1.337.497 3.268.754 3.262 1.82-.007 1.391-3 1.604-5.725-.268l-1.101 2.823c3.716 1.85 10.627 1.902 10.59-2.734-.03-4.583-6.513-3.798-6.513-5.575z"})),xr||(xr=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__f)",d:"m35.218 16.875-5.305 14.734-2.54-7.956h-3.779l4.23 10.866a3.956 3.956 0 0 1 0 2.877c-.474 1.213-1.26 2.25-3.177 2.508v3.221c3.734 0 5.753-2.295 7.554-7.326l7.06-18.924z"})),wr||(wr=d.createElement("path",{fill:"#f0ecf0",d:"M124.088 57.357c15.427 0 27.934-12.506 27.934-27.933S139.515 1.49 124.088 1.49 96.155 13.997 96.155 29.424s12.506 27.933 27.933 27.933z"})),Sr||(Sr=d.createElement("path",{fill:"#9e005d",d:"M122.68 23.422c5.075-5.662 3.282-.196 13.081-2.26 2.792-.587 7.802-1.905 9.067.833 1.427 3.092 4.014 3.471 3.211 5.47-1.412 3.512-6.46 4.52-7.887.556-1.819-1.232-8.98 2.24-11.167 2.775-.813.198-.868-2.038-1.675-2.168-.529-.085-.462-.17-.939-.575-4.613-3.918-4.904-3.277-5.22-4.126.482-.115.95-.396 1.531-.503z"})),_r||(_r=d.createElement("path",{fill:"#6c2548",d:"M145.465 25.27c-1.744-.556-3.859.788-3.015 2.668.204.456 1.233 2.392 1.665 2.536 1.633.552 5.651-2.227 1.35-5.204z"})),Er||(Er=d.createElement("path",{fill:"#ffc399",d:"M145.972 26.652c-.452-.226-2.526.313-2.3 1.188.281 1.084.758 1.655 1.395 1.998 1.627.875 1.365 2.531 3.684 2.5 1.12-.015 4.022-1.557 4.118-.456.157 1.823.464 3.564.792 3.17.792-.951 1.109-1.03 1.188-4.2.021-.887-2.14-1.506-3.013-2.854-.473-.733-2.932-.714-5.866-1.348z"})),jr||(jr=d.createElement("path",{fill:"#be1e2d",d:"M109.348 16.345c-2.102-1.797-8.454 4.23-7.974 6.137.479-.51 1.186-1.505 1.973-1.316-2.719 1.838-3.191 6.484-1.784 9.259.158-.735.439-1.525.897-2.123-.778 3.037.466 8.256 4.271 10.873-.26-1.915-1.201-5.028.477-6.267 2.485-1.836 5.651-2.398 7.153-5.43 3.716-7.506-7.675-12.913-5.013-11.135z"})),kr||(kr=d.createElement("path",{fill:"#9e005d",d:"M111.503 27.227c-1.65.136-7.152 11.633.475 20.361 1.067 1.223 2.372 3.57 3.92 3.78 3.256.443 11.848-1.812 15.059-3.188 12.146-5.202 1.267-10.842-.308-16.792-1.421-5.366-1.725-8.762-7.928-8.997-2.92-.11-11.15 1.768-11.95 5.058-.224.108-.109-.08.732-.224z"})),Cr||(Cr=d.createElement("path",{fill:"#6c2548",d:"M123.196 23.817c3.828 1.233 6.256 5.375 7.755 8.771-1.38-4.316-2.059-8.262-7.932-8.95-.013-.072.419-.694.177.18z"})),Rr||(Rr=d.createElement("path",{fill:"#6c2548",d:"M127.718 23.362c1.071.893 1.961 2.794 2.438 3.984.522 1.306.088 3.329.571 4.638-1.292-3.232-1.307-5.14-3.007-8.622z"})),Tr||(Tr=d.createElement("path",{fill:"#ffc399",d:"M125.772 33.468c-1.058.375-2.898.677-4.103 1.248-2.187 1.037-4.936-1.725-7.313-1.188-.858.194-3.845-.873-4.082-1.942-.293-1.325-.745-1.352-.078-2.22 2.619-3.402 2.815-1.566 2.932-6.896.019-.886-.2-1.312.079-2.061.279-.75.21.017 1.09-.143.879-.16 2.996-1.05 3.869-.652 1.533.699.513 3.972 1.61 5.107 1.139 1.177 3.841-.028 4.989 1.128 1.439 1.45 1.324 6.848 1.005 7.621z"})),Or||(Or=d.createElement("path",{fill:"#e57c57",d:"M123.021 27.88c.285-.57.221-1.564-.026-2.586-1.175-.034-2.504.164-3.217-.575-.65-.671-.558-2.085-.692-3.277a3.502 3.502 0 0 1-.607-.122c-1.263-.372-2.67-.835-4.069-1.077-.039.008-.077.017-.111.023-.405.075-.605-.057-.733-.143l-.213-.017c-.04.05-.085.141-.144.303-.271.728-.073 1.156-.079 1.995 1.386 3.614 6.644 11.98 9.895 5.477z"})),Nr||(Nr=d.createElement("path",{fill:"#f1f2f2",d:"M116.06 33.648c7.293 3.488 11.969 5.47 13.635 9.989-1.031-4.757-.893-8.622-4.459-15.161.675 7.425-8.761 5.37-9.176 5.172z"})),Pr||(Pr=d.createElement("path",{fill:"#6c2548",d:"M129.697 43.002c.157-3.884-1.057-18.564-4.44-20.057-1.056-.466-10.726 1.174-7.768 1.348 4.625.27 7.293 2.775 7.928 4.28.792 1.11 3.081 8.599 4.28 14.427z"})),Lr||(Lr=d.createElement("path",{fill:"#9e005d",d:"M129.616 43.001c.157-3.884-1.93-18.724-5.311-20.214-1.056-.467-9.776 1.333-6.819 1.505 4.626.27 7.294 2.775 7.928 4.28.792 1.11 3.003 8.599 4.202 14.427z"})),Ir||(Ir=d.createElement("path",{fill:"#ffc399",d:"M126.288 12.877c.555 2.457-.397 1.902.078 3.488.375 1.25.729 2.066.635 3.488-.241 3.656-2.983 6.876-3.086 6.978-1.45 1.45-3.132 1.295-5.476.077-4.364-2.266-6.898-4.994-7.532-11.823-.471-5.072 3.763-8.847 9.014-8.313 3.249.332 5.449 2.04 6.367 6.103z"})),Ar||(Ar=d.createElement("path",{fill:"#be1e2d",d:"M114.461 9.389c3.944-.179 3.02 1.925 6.539 2.973 2.794.832 5.707-1.012 5.173 3.745-.475 4.212 9.401-4.116 1.46-7.591-1.269-.556-1.137-1.414-2.378-3.013-2.598-3.343-11.337-7.055-15.061-.873-.944 1.567 2.657 4.101 4.265 4.757z"})),Mr||(Mr=d.createElement("path",{fill:"#be1e2d",d:"M114.282 9.508c.912 3.597-.161 4.23-.653 5.47-.541 1.364-.803 2.65-1.487 3.925-.992-2.07-2.184-.317-5.276-4.36-5.537-7.24 9.782-16.915 7.416-5.035z"})),Dr||(Dr=d.createElement("path",{fill:"#ffc399",d:"M112.336 19.497c.617-1.633-4.029-4.43-3.599-1.043.209 1.642 1.516 2.574 2.913 3.151 2.294.946 1.195-1.675.569-3.057l.119.952z"})),Fr||(Fr=d.createElement("path",{fill:"#be1e2d",d:"M113.168 14.026c.309 1.25-.03 6.814 1.785 8.997-3.152-1.714-2.37-5.13-1.785-8.997z"})),zr||(zr=d.createElement("path",{fill:"#be1e2d",d:"M112.691 15.573c-.728.415-1.441 3.388-.323 5.705.006-.021.483-4.91.323-5.705z"})),Ur||(Ur=d.createElement("path",{fill:"#9e005d",d:"M117.012 34.121c-2.877-1.74-5.509-2.068-4.725-7.2.867-1.004.747-1.897.807-3.383-1.109.396-4.086 1.948-5.434 2.655-1.985 1.04-4.361 3.41-2.458 5.39.703.73-1.758 1.923.937 6.759 1.506-2.617 2.711-4.855 3.661-4.934 3.33-.079 4.431 1.667 7.372 2.378 7.214 1.744 11.654 6.501 12.525 8.164.036-1.051-1.269-4.914-12.683-9.829z"})),Br||(Br=d.createElement("path",{fill:"#9e005d",d:"M108.45 34.202c-8.258 11.429 2.709 12.432 5.351 22.998.119.48.656 1.17 1.503 1.322 5.051.903 10.884-1.744 15.862-6.92 1.408-1.463.247-4.902-1.546-5.648-2.319-1.546-7.378 4.023-13.006 2.992-.677-1.02-1.505-13.477-8.164-14.744z"})),qr||(qr=d.createElement("path",{fill:"#a0c9cb",d:"m155.213 40.425-.27 9.99-6.399-1.368-.094-9.712z"})),$r||($r=d.createElement("path",{fill:"#75b0b3",d:"m155.48 50.235-.509.238c.085-11.096-.171-10.3.509-10.166v9.93z"})),Hr||(Hr=d.createElement("path",{fill:"#66a7ab",d:"M150.965 40.959c2.473.277 3.211 6.54 2.498 9.037-.119-.12-3.567-.833-3.686-.713-1.718-1.964-.992-8.57 1.188-8.324z"})),Wr||(Wr=d.createElement("path",{fill:"#467d7f",d:"M154.983 40.783s.153-1.902 0-2.02c-.153-.12-6.641-.655-6.641-.655-.776 1.706-.431 1.282 6.641 2.675z"})),Vr||(Vr=d.createElement("path",{fill:"#67a8ac",d:"m152.371 30.436 2.881 8.443-6.729-1.15-3.307-9.016z"})),Gr||(Gr=d.createElement("path",{fill:"#55989b",d:"m152.988 32.518.101.02-.716-2.1-7.155-1.725.656 1.786z"})),Kr||(Kr=d.createElement("path",{fill:"#519093",d:"m148.766 37.79-1.127.713-2.679-8.541 1.25-.893z"})),Yr||(Yr=d.createElement("path",{fill:"#b1d3d4",d:"m152.794 30.08-.922 1.069-6.552-1.01.869-1.011z"})),Jr||(Jr=d.createElement("path",{fill:"#a0c9cb",d:"M155.648 39.988c0 1.052-1.046 1.052-1.046 0s1.046-1.052 1.046 0z"})),Qr||(Qr=d.createElement("path",{fill:"#a0c9cb",d:"M147.639 38.502c1.501-.95.058-.881 7.713.317-1.38 1.189-.053 1.07-7.713-.317z"})),Zr||(Zr=d.createElement("path",{fill:"#75b0b3",d:"m155.354 38.879-1.037.832-2.444-8.681.922-1.07z"})),Xr||(Xr=d.createElement("path",{fill:"#6b1523",d:"M117.374 55.11c1.071-.299.06-1.962.713-4.862-1.972 4.042-1.699 5.134-.713 4.862z"})),en||(en=d.createElement("path",{fill:"#6b1523",d:"M119.989 48.095c.059-.594-2.913-8.918-9.097-9.276 3.448.12 10.494 9.176 8.452 9.395-1.853.535-6.076 2.32-4.41 3.925 1.307.773 1.605-3.152 4.627-3.895 4.567.882 7.438-3.94 10.415-1.874-2.809-3.503-5.362 2.14-9.989 1.725z"})),tn||(tn=d.createElement("path",{fill:"#6c2548",d:"M127.793 46.647c.309-.639 1.427-.396 2.336-1.56.449-.576.948-.203 1.687-.222 1.541-.043 2.544 2.996 1.737 4.15-.445.635-2.745 1.297-3.62 1.518-1.771.445-3.511-3.036-2.14-3.884z"})),sn||(sn=d.createElement("path",{fill:"#c44c31",d:"M123.081 15.099c-.993 1.109 1.35 4.64.988 6.262-.284 1.27-1.827.705-2.617-.157.694.027 1.78.445 1.982.078.76-1.384-1.539-4.914-.353-6.183z"})),rn||(rn=d.createElement("path",{fill:"#be1e2d",d:"M124.031 23.074c-2.5.504-4.483.504-5.69-.194.579.55 1.976 1.906 3.268 1.887 1.293-.02 1.235-.569 1.355-1.11.076-.206.528-.326 1.064-.586z"})),nn||(nn=d.createElement("path",{fill:"#e57c57",d:"M117.389 23.045c0-.616.545-.83 1.075-.93-.441.295-.092.88-.098.904-.481-.272-.62-.174-.977.026z"})),on||(on=d.createElement("path",{fill:"#35602c",d:"m150.614 40.5-2.973-.396.428 8.839 2.736-.024c2.241-.23 2.479-8.077-.191-8.42z"})),an||(an=d.createElement("path",{fill:"#569d48",d:"M149.867 44.427c.285 5.88-3.738 6.075-4.023.194-.285-5.88 3.737-6.075 4.023-.194z"})),ln||(ln=d.createElement("path",{fill:"#e57c57",d:"M136.434 42.288c5.055-.658 5.866-2.932 6.341-1.11.315.786-1.069 1.442-1.903 1.755-.443.164-1.044-.055-1.551-.104-1.12-.109-1.822.562-2.885.65-.123-.631.296-1.046 0-1.189z"})),cn||(cn=d.createElement("path",{fill:"#35602c",d:"M139.873 43.184c.168-.905 5.647-1.784 7.051-1.867 1.803-.107 2.161 6.066.475 6.184-2.362.164-4.487.357-6.872-.392-1.388-.435-1.904-.588-1.927-2.106-.017-1.12.749-2.068 1.273-1.819z"})),dn||(dn=d.createElement("g",{fill:"#ffc399"},d.createElement("path",{d:"M131.123 45.597c3.759-1.073 7.006-4.783 7.689-4.023 1.091 1.212-.543 2.16-1.06 3.489-.698 1.797 1.054-.037-.403 1.784-.634.792-1.961.179-2.793.179-.556.157-1.863 1.328-2.498 1.486-1.031-.158-2.364-2.042-.937-2.913z"}),d.createElement("path",{d:"M138.898 41.243c3.239.682 4.923-.098 5.189 1.152.181.856 1.606 3.358 1.559 4.323-1.725.462-2.504-2.683-3.13-3.156-.426-.321-2.909.188-3.733.077-.824-.111-1.378-2.191.115-2.396z"}),d.createElement("path",{d:"M141.004 43.042c.573 1.983 2.144 3.145 1.51 3.79-.848.863-1.691 1.404-2.013 1.263-1.976-.87.322-1.169-.004-1.496-.326-.328-1.995-2.12-2.34-2.198.24-.924-.094-1.263-.303-2.212.211.07 2.865.35 3.152.853z"}),d.createElement("path",{d:"M137.707 42.446c.958-.115 1.457 1.48 1.546 1.784.166.567 1.348 1.806 1.427 2.379.179 1.277-1.071 1.188-1.755 1.456-.564.298-1.991-.743-.683-1.576-.935-.019-3.073-1.497-2.694-2.016.241-.004 1.148-2.383 2.157-2.025z"}),d.createElement("path",{d:"M137.599 43.08c.556 1.11 1.03 3.964.873 4.28-.271.544-.865 1.07-1.51 1.34s-1.026-.943-1.978-1.893c.792-.713 1.691-.128 1.665.239-.03.438.079-.318.396-.239-.238-.317-.884-1.365-1.188-1.982-.434-.88.635-2.536 1.744-1.744zm6.311-14.765c.475 1.744-.187 2.5-.238 3.092-.085.99.758 1.205 1.348 1.901.873 1.031.792 2.22 1.505 2.775 1.983-.873.015-3.264-.193-3.786-.158-.396.034-2.875 2.016-3.032-1.348-1.665-3.249-2.22-4.44-.952z"}))),un||(un=d.createElement("path",{fill:"#6b1523",d:"M112.653 25.483c-1.903.93-5.883 2.474-6.737 4.518-.599 1.431 5.707 1.11 13.081 5.31-3.805-2.774-9.996-4.01-10.307-4.992-.106-.335 2.715-4.87 3.963-4.836zm-7.374 6.024c.839 1.118 2.3 1.11 4.202 1.586-.878-.434-4.779.837-4.361 0 .157-.317-.167-.875.157-1.586z"})),pn||(pn=d.createElement("path",{fill:"#f1f2f2",d:"M116.341 17.639c.007-.03.462-.848 2.206-1.014.678-.064 1.896.509 1.795 1.169-1.007.43-1.888.675-4.001-.155z"})),mn||(mn=d.createElement("path",{fill:"#231f20",d:"M120.347 17.688c-.062-.337-.441-.754-.918-.767-.526-.015-1.035.55-1.044.897-.004.153.086.276.224.37.684.015 1.19-.162 1.733-.394a.422.422 0 0 0 .005-.106z"})),hn||(hn=d.createElement("path",{fill:"#231f20",d:"M120.368 17.667c-.102-.768-1.512-1.3-2.404-1.303-1.244 0-1.491 1.171-2.272.735.177.703 1.141.928 1.801.933-2.327-.695 2.14-2.302 2.875-.365z"})),fn||(fn=d.createElement("path",{fill:"#f1f2f2",d:"M123.27 17.549c.977.332 2.076-.19 2.44-.741.592-.899-1.629-2.066-2.44.74z"})),yn||(yn=d.createElement("path",{fill:"#231f20",d:"M124.226 17.238a.33.33 0 0 0 .122.373c.604-.115 1.132-.452 1.365-.803a.576.576 0 0 0 .093-.245c-.323-.585-1.245-.539-1.58.675z"})),gn||(gn=d.createElement("path",{fill:"#231f20",d:"M123.249 17.568c.092-.724.417-1.478 1.329-1.887 1.175-.528 1.537.92 1.938-.268-.147 1.467-.592 1.476-1.523 1.987 1.022-.356.958-1.906-.373-1.403-1.062.402-1.196 1.152-1.369 1.571z"})),vn||(vn=d.createElement("path",{fill:"#be1e2d",d:"M126.024 14.621c.517.586-.337-.17-1.304-.06-.321.039-.841.352-1.122.365.554-1.076 1.663-1.17 2.426-.305zm-6.316.317c-3.103-.775-3.531.177-4.685 1.791 2.238-2.446 3.518-.587 5.132-1.94-.245.024-.473.103-.447.15z"})),bn||(bn=d.createElement("path",{fill:"#6b1523",d:"M106.375 37.808c.416-1.427 1.651-3.48 2.315-3.607 4.108-.792 14.097 5.034 17.246 5.866-5.053-1.248-12.544-5.41-17.122-4.876-.586.192-2.081 1.901-2.439 2.617z"})),xn||(xn=d.createElement("path",{fill:"#642243",d:"M140.501 28.713c-.421-1.256-1.179-2.587-.805-4.042.379-1.475 2.232-2.05 2.815-3.43-1.65-.713-1.58 1.923-2.468 2.349-.038-.782-.142-1.516-.129-2.324-1.54 2.028-.703 4.913.589 7.45zm-13.317-7.491c7.849.713 7.253 7.135 12.485 6.303-5.471 1.426-7.017-6.303-12.485-6.303z"})),wn||(wn=d.createElement("path",{fill:"#c44c31",d:"M120.525 19.497c0 .236-.594.236-.594 0s.594-.237.594 0zm-1.903.355c0 .236-.358.236-.358 0s.358-.236.358 0zm5.768-.832c0 .316-.474.316-.474 0 0-.315.474-.315.474 0zm.89.952c0 .237-.475.237-.475 0s.475-.236.475 0zm.358-1.188c0 .236-.474.236-.474 0 0-.237.474-.237.474 0zm-5.232 1.901c0 .236-.475.236-.475 0s.475-.236.475 0z"})),Sn||(Sn=d.createElement("path",{fill:"#569d48",d:"M136.975 46.802c-.364-.268-.53-.656-.498-1.16-4.862.762-12.996 10.236-26.102 8.07.919.613 1.743 1.082 2.706 1.382 10.638 1.337 19.676-7.332 23.896-8.292z"})),En||(En=d.createElement("path",{fill:"#5f6368",d:"M238.632 23.564h2.267v.075l-5.066 5.844 5.405 7.63v.075h-2.151l-4.437-6.357-2.094 2.419v3.94h-1.754V23.563h1.754v7.028h.074zm5.892 1.085c0 .339-.124.637-.364.877s-.529.364-.877.364c-.34 0-.638-.124-.877-.364a1.198 1.198 0 0 1-.365-.877c0-.348.124-.637.365-.878.239-.24.53-.364.877-.364.339 0 .637.124.877.364.248.249.364.538.364.878zm-.355 3.22v9.327h-1.755v-9.328zm5.604 9.477c-.762 0-1.392-.232-1.896-.704-.505-.472-.762-1.126-.77-1.962v-5.215h-1.639v-1.597h1.639v-2.856h1.754v2.856h2.285v1.597h-2.284v4.644c0 .62.124 1.043.364 1.266.24.224.513.332.819.332.141 0 .273-.017.414-.05a2.19 2.19 0 0 0 .373-.124l.554 1.564c-.471.166-1.001.249-1.613.249zm-55.489-.878c-.969-.704-1.631-1.697-1.995-2.972l2.151-.878c.216.803.597 1.448 1.151 1.962.547.505 1.209.761 1.978.761.721 0 1.324-.182 1.829-.554.505-.373.754-.886.754-1.531 0-.596-.224-1.085-.662-1.474-.439-.389-1.209-.778-2.31-1.167l-.91-.323c-.977-.338-1.796-.827-2.459-1.464-.662-.637-.992-1.473-.992-2.515 0-.721.198-1.383.587-1.995.389-.613.935-1.093 1.639-1.458.695-.355 1.482-.538 2.367-.538 1.275 0 2.293.306 3.046.927.761.621 1.266 1.308 1.522 2.087l-2.051.868c-.15-.464-.43-.87-.853-1.217-.421-.356-.96-.53-1.622-.53s-1.224.166-1.68.505c-.455.34-.679.77-.679 1.3 0 .504.207.91.612 1.241.406.323 1.043.638 1.913.935l.911.306c1.249.431 2.209 1.002 2.896 1.698.687.695 1.027 1.63 1.027 2.797 0 .952-.241 1.747-.729 2.383a4.482 4.482 0 0 1-1.862 1.433 5.981 5.981 0 0 1-2.326.463c-1.209 0-2.293-.348-3.253-1.05zm9.924-11.571a1.45 1.45 0 0 1-.439-1.067c0-.423.149-.779.439-1.069a1.444 1.444 0 0 1 1.067-.439c.422 0 .778.15 1.067.44.291.289.439.645.439 1.067 0 .422-.149.778-.438 1.067a1.455 1.455 0 0 1-1.067.44c-.423-.01-.779-.15-1.068-.44zm-.05 1.937h2.234v10.362h-2.234zm7.093 10.304a2.898 2.898 0 0 1-.993-.588c-.579-.579-.878-1.373-.878-2.375v-5.372h-1.812v-1.97h1.812v-2.92h2.235v2.93h2.517v1.97h-2.517v4.874c0 .555.108.952.323 1.176.207.273.555.405 1.06.405.231 0 .43-.033.612-.091.174-.058.364-.157.571-.298v2.177c-.447.207-.985.306-1.622.306a3.735 3.735 0 0 1-1.308-.224zm6.133-.33a4.946 4.946 0 0 1-1.887-1.962c-.455-.836-.679-1.771-.679-2.814 0-.994.224-1.904.662-2.756.439-.845 1.052-1.523 1.838-2.02s1.68-.754 2.682-.754c1.043 0 1.945.232 2.714.688a4.572 4.572 0 0 1 1.747 1.887c.397.803.596 1.697.596 2.707 0 .19-.017.43-.058.711h-7.946c.083.96.423 1.706 1.026 2.227.58.512 1.33.79 2.103.778.637 0 1.192-.141 1.655-.439a3.185 3.185 0 0 0 1.126-1.192l1.887.894a5.577 5.577 0 0 1-1.912 2.011c-.786.489-1.73.729-2.823.729-1.018.016-1.927-.215-2.731-.695zm5.397-6.01a2.497 2.497 0 0 0-.348-1.084 2.486 2.486 0 0 0-.927-.902c-.413-.24-.918-.364-1.515-.364-.72 0-1.324.215-1.821.637-.496.422-.836 1.001-1.026 1.714z"})),jn||(jn=d.createElement("g",{fillRule:"evenodd",clipPath:"url(#yoast-connect-google-site-kit_svg__g)",clipRule:"evenodd"},d.createElement("path",{fill:"#fbbc05",d:"m170.119 26.56 2.576 1.97a4.563 4.563 0 0 0 0 2.85l-2.576 1.97a7.667 7.667 0 0 1-.785-3.395c0-1.22.283-2.373.785-3.394z"}),d.createElement("path",{fill:"#ea4335",d:"m172.696 28.53-2.577-1.97a7.64 7.64 0 0 1 6.877-4.266c1.95 0 3.691.731 5.049 1.915l-2.229 2.229a4.428 4.428 0 0 0-2.82-1.01 4.518 4.518 0 0 0-4.3 3.103z"}),d.createElement("path",{fill:"#34a853",d:"m170.118 33.347 2.576-1.975a4.514 4.514 0 0 0 4.301 3.11c2.124 0 3.726-1.08 4.109-2.96h-4.109v-2.96h7.139c.104.452.174.94.174 1.392 0 4.875-3.482 7.661-7.313 7.661a7.637 7.637 0 0 1-6.877-4.268z"}),d.createElement("path",{fill:"#4285f4",d:"m181.988 35.707-2.446-1.893c.8-.505 1.357-1.284 1.562-2.293h-4.109v-2.96h7.138c.105.453.175.94.175 1.393 0 2.497-.914 4.446-2.32 5.753z"})))),On=({isOpen:e,onClose:t,onGrantConsent:s=null,learnMoreLink:r=""})=>{const n=(0,l.useSvgAria)();return(0,Qt.jsx)(l.Modal,{isOpen:e,onClose:t,children:(0,Qt.jsxs)(l.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl",hasCloseButton:!1,children:[(0,Qt.jsx)(l.Modal.CloseButton,{className:"yst-bg-transparent yst-text-gray-500 focus:yst-ring-offset-0",onClick:t,screenReaderText:(0,Wt.__)("Close","wordpress-seo")}),(0,Qt.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-bg-gradient-to-b yst-from-primary-500/25 yst-to-[80%]",children:(0,Qt.jsx)(Tn,{className:"yst-aspect-video yst-max-w-[432px] yst-p-7 yst-bg-white yst-rounded-md yst-drop-shadow-md"})}),(0,Qt.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,Qt.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,Qt.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,Wt.__)("Grant consent to connect with Site Kit by Google","wordpress-seo")}),(0,Qt.jsxs)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:[(0,Wt.__)("Give us permission to access your Site Kit data, allowing insights from tools like Google Analytics and Search Console to be displayed directly on your dashboard.","wordpress-seo")," ",(0,Qt.jsxs)(is,{className:"yst-no-underline yst-font-medium",variant:"primary",href:r,children:[(0,Wt.__)("Learn more","wordpress-seo"),(0,Qt.jsx)(Cn(),{className:"yst-inline yst-h-4 yst-w-4 yst-ms-1 rtl:yst-rotate-180",...n})]})]})]}),(0,Qt.jsx)("div",{className:"yst-w-full yst-flex yst-mt-10",children:(0,Qt.jsx)(l.Button,{className:"yst-grow",size:"extra-large",variant:"primary",onClick:s||t,children:(0,Wt.__)("Grant consent","wordpress-seo")})}),(0,Qt.jsx)(l.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:t,children:(0,Wt.__)("Close","wordpress-seo")})]})]})})};On.propTypes={isOpen:Jt().bool.isRequired,onClose:Jt().func.isRequired,onGrantConsent:Jt().func,learnMoreLink:Jt().string};const Nn="yoast-seo/editor",Pn=((0,c.mapValues)({post:"title",term:"term_title"},e=>`%%${e}%%`),({children:e})=>(0,Qt.jsx)("p",{className:"yst-mt-2",children:e}));Pn.propTypes={children:Jt().node.isRequired};const Ln=(0,Wt.__)("Something went wrong","wordpress-seo"),In=({linkStoreName:e=Nn})=>{const t=(0,r.useSelect)(t=>t(e).selectLink("https://yoa.st/ai-common-errors"),[e]),s=(0,r.useSelect)(t=>t(e).selectAdminLink("?page=wpseo_page_support"),[e]);return(0,Qt.jsx)(Pn,{children:Vt((0,Wt.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */ /* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */
(0,Wt.__)("Please try again later. If this issue persists, you can learn more about possible reasons for this error on our page about %1$scommon AI feature problems and errors%2$s. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,Qt.jsx)(is,{variant:"error",href:t}),a2:(0,Qt.jsx)(is,{variant:"error",href:s})})})};In.propTypes={linkStoreName:Jt().string};const An=({linkStoreName:e=Nn,className:t=""})=>(0,Qt.jsxs)(l.Alert,{variant:"error",className:t,children:[(0,Qt.jsx)("span",{className:"yst-block yst-font-medium",children:Ln}),(0,Qt.jsx)(In,{linkStoreName:e})]});An.propTypes={linkStoreName:Jt().string,className:Jt().string},(0,Wt.__)("Not enough content","wordpress-seo"),(0,Wt.__)("SEO analysis required","wordpress-seo"),(0,Wt.__)("You've reached the Yoast AI rate limit","wordpress-seo");const Mn=window.wp.apiFetch;var Dn=s.n(Mn);(0,Wt.__)("Subscription required","wordpress-seo");Jt().arrayOf(Jt().string),Jt().arrayOf(Jt().string),(0,Wt.__)("Connection timeout","wordpress-seo"),(0,Wt.__)("Usage policy violation","wordpress-seo"),(0,Wt.__)("Something went wrong","wordpress-seo");Jt().string,Jt().string,(0,Wt.__)("Something went wrong","wordpress-seo");Jt().node.isRequired;const Fn=({children:e})=>(0,Qt.jsx)("div",{className:"yst-mt-6 yst-flex yst-flex-row yst-justify-end yst-gap-3",children:e});Fn.propTypes={children:Jt().node.isRequired};const zn=({onClose:e})=>(0,Qt.jsx)(l.Button,{variant:"secondary",onClick:e,children:(0,Wt.__)("Close","wordpress-seo")});zn.propTypes={onClose:Jt().func.isRequired};Jt().bool,Jt().func.isRequired,Jt().func.isRequired;Jt().bool.isRequired,Jt().string.isRequired,Jt().func,Jt().node.isRequired,Jt().bool,Jt().bool,Jt().func,Jt().func,Jt().bool,Jt().bool,Jt().func,Jt().func,Jt().string,Jt().bool,Jt().bool,Jt().func,Jt().func,Jt().bool,Jt().func,Jt().bool,Jt().func,Jt().bool,Jt().func,Jt().bool,Jt().func,Jt().arrayOf(Jt().string),Jt().bool,Jt().func,Jt().bool,Jt().func,(0,Wt.__)("Yoast AI cannot reach your site","wordpress-seo");Jt().string,Jt().bool,Jt().func;Jt().func.isRequired,Jt().string.isRequired,Jt().string.isRequired,Jt().string.isRequired,Jt().string.isRequired,Jt().string.isRequired,Jt().string.isRequired,Jt().func.isRequired,Jt().string.isRequired,Jt().shape({termsOfService:Jt().string,privacyPolicy:Jt().string,learnMore:Jt().string});const Un=({userName:e,features:t,links:s,sitekitFeatureEnabled:r})=>{
/**
* translators: %1$s and %2$s expand to an opening and closing anchor tag, to the site features page.
* %3$s and %4$s expand to an opening and closing anchor tag, to the user profile page.
**/
const n=(0,Wt.__)("Welcome to your dashboard! Check your content's SEO performance, readability, and overall strengths and opportunities. Get even more insights by enabling the ‘SEO analysis’ and the ‘Readability analysis’ in your %1$sSite features%2$s or your %3$suser profile settings%4$s.","wordpress-seo"),o=(0,Wt.__)("It looks like the ‘SEO analysis’ and the ‘Readability analysis’ are currently disabled in your %1$sSite features%2$s or your %3$suser profile settings%4$s. Enable these features to start seeing all the insights you need right here!","wordpress-seo"),a=r?n:o,i=r?(0,Wt.__)("Oops! You can’t see the overview of your SEO insights right now because you’re in a non-production environment.","wordpress-seo"):(0,Wt.__)("Oops! You can’t see the overview of your SEO scores and readability scores right now because you’re in a non-production environment.","wordpress-seo");
/**
* translators: %1$s and %2$s expand to an opening and closing anchor tag, to the site features page.
* %3$s and %4$s expand to an opening and closing anchor tag, to the user profile page.
**/return(0,Qt.jsx)(l.Paper,{className:"yst-shadow-md",children:(0,Qt.jsxs)(l.Paper.Content,{className:"yst-flex yst-flex-col yst-gap-y-4 yst-max-w-screen-sm",children:[(0,Qt.jsx)(l.Title,{as:"h1",children:(0,Wt.sprintf)(/* translators: %s expands to the username */ /* translators: %s expands to the username */
(0,Wt.__)("Hi %s,","wordpress-seo"),e)}),(0,Qt.jsx)("p",{className:"yst-text-tiny",children:!t.indexables||t.seoAnalysis||t.readabilityAnalysis?Vt((0,Wt.sprintf)(/* translators: %1$s and %2$s expand to an opening and closing anchor tag. */ /* translators: %1$s and %2$s expand to an opening and closing anchor tag. */
(0,Wt.__)("Welcome to your dashboard! Check your content's SEO performance, readability, and overall strengths and opportunities. %1$sLearn more about the dashboard%2$s.","wordpress-seo"),"<link>","</link>"),{link:(0,Qt.jsx)(is,{href:s.dashboardLearnMore,children:" "})}):Vt((0,Wt.sprintf)(a,"<link>","</link>","<profilelink>","</profilelink>"),{link:(0,Qt.jsx)(l.Link,{href:"admin.php?page=wpseo_page_settings#/site-features",children:" "}),profilelink:(0,Qt.jsx)(l.Link,{href:"profile.php",children:" "})})}),!t.indexables&&(0,Qt.jsx)(l.Alert,{type:"info",children:i})]})})},Bn=({widgetFactory:e,userName:t,features:s,links:r,sitekitFeatureEnabled:n,dataProvider:o})=>{const l=(0,a.useCallback)(()=>o.getSiteKitConfiguration(),[o]),c=(0,a.useCallback)(e=>o.subscribe(e),[o]);return(0,a.useSyncExternalStore)(c,l),(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)(Un,{userName:t,features:s,links:r,sitekitFeatureEnabled:n}),(0,Qt.jsx)("div",{className:"yst-@container yst-grid yst-grid-cols-4 yst-gap-6 yst-my-6",children:(0,Qt.jsx)(i.Dashboard,{widgetFactory:e})})]})};function qn(e,t){return e.get(function(e,t,s){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:s;throw new TypeError("Private element is not present on this object")}(e,t))}function $n(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,qn(t,e))}function Hn(e,t,s){return function(e,t,s){if(t.set)t.set.call(e,s);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=s}}(e,qn(t,e),s),s}function Wn(e,t,s){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,s)}var Vn=new WeakMap,Gn=new WeakMap,Kn=new WeakMap,Yn=new WeakMap,Jn=new WeakMap,Qn=new WeakMap,Zn=new WeakMap,Xn=new WeakMap;class eo{constructor({contentTypes:e,userName:t,features:s,endpoints:r,headers:n,links:o,siteKitConfiguration:a}){Wn(this,Vn,{writable:!0,value:void 0}),Wn(this,Gn,{writable:!0,value:void 0}),Wn(this,Kn,{writable:!0,value:void 0}),Wn(this,Yn,{writable:!0,value:void 0}),Wn(this,Jn,{writable:!0,value:void 0}),Wn(this,Qn,{writable:!0,value:void 0}),Wn(this,Zn,{writable:!0,value:void 0}),Wn(this,Xn,{writable:!0,value:new Set}),Hn(this,Vn,e),Hn(this,Gn,t),Hn(this,Kn,s),Hn(this,Yn,r),Hn(this,Jn,n),Hn(this,Qn,o),Hn(this,Zn,a)}subscribe(e){return $n(this,Xn).add(e),()=>$n(this,Xn).delete(e)}notifySubscribers(){$n(this,Xn).forEach(e=>e())}getContentTypes(){return $n(this,Vn)}getUserName(){return $n(this,Gn)}getStepsStatuses(){return[$n(this,Zn).connectionStepsStatuses.isInstalled,$n(this,Zn).connectionStepsStatuses.isActive,$n(this,Zn).connectionStepsStatuses.isSetupCompleted,$n(this,Zn).connectionStepsStatuses.isConsentGranted]}hasFeature(e){var t;return!0===(null===(t=$n(this,Kn))||void 0===t?void 0:t[e])}getEndpoint(e){var t;return null===(t=$n(this,Yn))||void 0===t?void 0:t[e]}getHeaders(){return $n(this,Jn)}getLink(e){var t;return null===(t=$n(this,Qn))||void 0===t?void 0:t[e]}getSiteKitConfiguration(){return $n(this,Zn)}getSiteKitCurrentConnectionStep(){return this.getStepsStatuses().findIndex(e=>!e)}isSiteKitConnectionCompleted(){return-1===this.getSiteKitCurrentConnectionStep()}setSiteKitConsentGranted(e){const t=(0,c.cloneDeep)($n(this,Zn));t.connectionStepsStatuses.isConsentGranted=e,Hn(this,Zn,t),this.notifySubscribers()}setSiteKitConfigurationDismissed(e){Hn(this,Zn,{...$n(this,Zn),isSetupWidgetDismissed:e}),this.notifySubscribers()}}function to(e,t,s){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,s)}var so=new WeakMap,ro=new WeakMap,no=new WeakMap;class oo{constructor(e,t){to(this,so,{writable:!0,value:void 0}),to(this,ro,{writable:!0,value:void 0}),to(this,no,{writable:!0,value:void 0}),Hn(this,so,e.data),Hn(this,ro,e.endpoint),Hn(this,no,t)}getTrackingElement(e){var t;return null===(t=$n(this,so))||void 0===t?void 0:t[e]}track(e){const t=(0,c.cloneDeep)($n(this,so));let s=!1;Object.entries(e).forEach(([e,r])=>{void 0!==t[e]&&t[e]!==r&&(t[e]=r,s=!0)}),s&&(Hn(this,so,t),this.storeData(t))}storeData(e,t){$n(this,no).fetchJson($n(this,ro),e,{...t,method:"POST"}).catch(c.noop)}}var ao,io,lo,co,uo,po,mo,ho,fo,yo,go=s(6141),vo=s.n(go),bo=s(3527),xo=s.n(bo);function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},wo.apply(null,arguments)}const So=e=>d.createElement("svg",wo({xmlns:"http://www.w3.org/2000/svg",fill:"none","aria-hidden":"true",viewBox:"0 0 252 60"},e),ao||(ao=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__a)",fillRule:"evenodd",d:"M36.962 29.643c0-3.42 1.83-6.49 6.405-6.49 4.403 0 6.375 2.8 6.386 6.698.008 3.2-1.785 6.416-6.386 6.416-4.602 0-6.405-3.072-6.405-6.624zm8.432-2.74c-1.173-1.64-4.688-1.64-4.8 2.932.046 2.582 1.245 3.614 2.773 3.63 3.317.039 3.093-5.067 2.027-6.562z",clipRule:"evenodd"})),io||(io=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__b)",d:"M80.475 33.094v-6.63h2.369v-2.875h-2.369v-3.475h-3.659v3.475H74.96v2.877h1.856v6.258c0 3.552 2.477 5.665 5.092 6.102L83 35.877c-1.524-.193-2.51-1.332-2.525-2.783z"})),lo||(lo=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__c)",fillRule:"evenodd",d:"M62.008 27.062v4.981c0 .7.196 1.67.425 2.803.089.436.182.897.27 1.376H59.18l-.611-1.472c-4.117 2.994-8.052.974-8.052-2.168 0-4.131 4.01-4.632 7.776-4.632l.003-.249c.01-.465.02-.985-.24-1.336v-.007c-.01-.014-.022-.027-.034-.04l-.011-.013c-.602-.675-2.327-1.028-5.21.341l-1.283-2.575c4.428-1.546 10.144-1.555 10.461 2.47.018.174.028.347.029.52zm-6.521 3.81c-2.718 1.331-.064 4.384 2.835 1.14v-1.425c-.949 0-2.035.012-2.835.284z",clipRule:"evenodd"})),co||(co=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__d)",d:"M67.636 26.794c0-1.227 1.966-1.801 5.065-.386l1.071-2.606c-4.17-1.262-9.866-1.37-9.904 2.992-.016 2.09 1.324 3.216 3.255 3.933 1.337.498 3.269.755 3.263 1.82-.007 1.392-3.001 1.605-5.726-.267l-1.1 2.823c3.715 1.85 10.627 1.901 10.59-2.734-.03-4.583-6.514-3.798-6.514-5.575z"})),uo||(uo=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__e)",d:"M35.415 16.875 30.11 31.609l-2.54-7.956h-3.779l4.23 10.866a3.957 3.957 0 0 1 0 2.877c-.473 1.213-1.26 2.25-3.177 2.508v3.221c3.734 0 5.753-2.295 7.554-7.326l7.06-18.924h-4.043z"})),po||(po=d.createElement("circle",{cx:126,cy:30,r:30,fill:"#DCFCE7"})),mo||(mo=d.createElement("path",{stroke:"#16A34A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"m117.045 31.25 5 5 12.5-12.5"})),ho||(ho=d.createElement("path",{fill:"#5F6368",d:"M238.632 23.564h2.267v.075l-5.066 5.844 5.405 7.63v.075h-2.151l-4.437-6.357-2.094 2.419v3.94h-1.754V23.564h1.754v7.027h.074l6.002-7.027zm5.892 1.085c0 .339-.124.637-.364.877a1.19 1.19 0 0 1-.877.364c-.34 0-.638-.124-.877-.364a1.198 1.198 0 0 1-.365-.877c0-.348.124-.637.365-.878.239-.24.53-.364.877-.364.339 0 .637.124.877.364.248.249.364.538.364.878zm-.355 3.22v9.328h-1.755v-9.329h1.755zm5.604 9.477c-.762 0-1.392-.232-1.896-.704-.505-.472-.762-1.126-.77-1.962v-5.215h-1.639v-1.597h1.639v-2.856h1.754v2.856h2.285v1.597h-2.284v4.644c0 .62.124 1.043.364 1.266.24.224.513.332.819.332.141 0 .273-.017.414-.05a2.19 2.19 0 0 0 .373-.124l.554 1.564c-.471.166-1.001.249-1.613.249zm-55.489-.878c-.969-.704-1.631-1.697-1.995-2.972l2.151-.878c.216.803.597 1.448 1.151 1.962.547.505 1.209.761 1.978.761.721 0 1.324-.182 1.829-.554.505-.373.754-.886.754-1.531 0-.596-.224-1.085-.662-1.474-.439-.389-1.209-.777-2.31-1.167l-.91-.323c-.977-.338-1.796-.827-2.459-1.464-.662-.637-.992-1.473-.992-2.515 0-.721.198-1.383.587-1.995.389-.613.935-1.093 1.639-1.458.695-.355 1.482-.537 2.367-.537 1.275 0 2.293.305 3.046.927.761.62 1.266 1.307 1.522 2.086l-2.051.868c-.15-.464-.43-.87-.853-1.217-.421-.356-.96-.53-1.622-.53-.662 0-1.224.166-1.68.505-.455.34-.679.77-.679 1.3 0 .505.207.91.612 1.241.406.323 1.043.638 1.913.935l.911.306c1.249.431 2.209 1.002 2.896 1.698.687.695 1.027 1.63 1.027 2.797 0 .952-.241 1.747-.729 2.383a4.482 4.482 0 0 1-1.862 1.433 5.981 5.981 0 0 1-2.326.463c-1.209 0-2.293-.348-3.253-1.05zm9.924-11.571a1.45 1.45 0 0 1-.439-1.067c0-.423.149-.779.439-1.069a1.444 1.444 0 0 1 1.067-.438c.422 0 .779.149 1.067.438.291.29.439.646.439 1.068 0 .422-.149.778-.438 1.067a1.455 1.455 0 0 1-1.067.44c-.423-.01-.779-.15-1.068-.44zm-.05 1.937h2.234v10.362h-2.234V26.834zm7.093 10.304a2.898 2.898 0 0 1-.993-.588c-.579-.579-.878-1.373-.878-2.375v-5.372h-1.812v-1.97h1.812v-2.92h2.235v2.93h2.517v1.97h-2.517v4.874c0 .555.108.952.323 1.176.207.273.555.405 1.06.405.231 0 .43-.033.612-.091.174-.058.364-.157.571-.298v2.177c-.447.207-.985.306-1.622.306a3.735 3.735 0 0 1-1.308-.224zm6.133-.33a4.946 4.946 0 0 1-1.887-1.962c-.455-.836-.679-1.771-.679-2.814 0-.994.224-1.904.662-2.756a5.157 5.157 0 0 1 1.838-2.02c.786-.497 1.68-.754 2.682-.754 1.043 0 1.945.232 2.714.688a4.572 4.572 0 0 1 1.747 1.887c.397.803.596 1.697.596 2.707 0 .19-.017.43-.058.711h-7.946c.083.96.423 1.706 1.026 2.227.58.512 1.33.79 2.103.778.637 0 1.192-.141 1.655-.439a3.185 3.185 0 0 0 1.126-1.192l1.887.894a5.577 5.577 0 0 1-1.912 2.011c-.786.489-1.73.729-2.823.729-1.018.016-1.927-.215-2.731-.695zm5.397-6.01a2.497 2.497 0 0 0-.348-1.084 2.486 2.486 0 0 0-.927-.902c-.413-.24-.918-.364-1.515-.364-.72 0-1.324.215-1.821.637-.496.422-.836 1.001-1.026 1.713h5.637z"})),fo||(fo=d.createElement("g",{fillRule:"evenodd",clipPath:"url(#yoast-connect-google-site-kit-success_svg__f)",clipRule:"evenodd"},d.createElement("path",{fill:"#FBBC05",d:"m170.119 26.56 2.576 1.97a4.563 4.563 0 0 0 0 2.85l-2.576 1.97a7.667 7.667 0 0 1-.785-3.395c0-1.22.283-2.373.785-3.394z"}),d.createElement("path",{fill:"#EA4335",d:"m172.696 28.53-2.577-1.97a7.64 7.64 0 0 1 6.877-4.266c1.95 0 3.691.731 5.049 1.915l-2.229 2.229a4.428 4.428 0 0 0-2.82-1.01 4.518 4.518 0 0 0-4.3 3.102z"}),d.createElement("path",{fill:"#34A853",d:"m170.118 33.347 2.576-1.975a4.514 4.514 0 0 0 4.301 3.11c2.124 0 3.726-1.08 4.109-2.96h-4.109v-2.96h7.139c.104.452.174.94.174 1.392 0 4.875-3.482 7.661-7.313 7.661a7.637 7.637 0 0 1-6.877-4.268z"}),d.createElement("path",{fill:"#4285F4",d:"m181.988 35.707-2.446-1.893c.8-.505 1.357-1.283 1.562-2.293h-4.109v-2.96h7.138c.105.453.175.94.175 1.393 0 2.497-.914 4.446-2.32 5.753z"}))),yo||(yo=d.createElement("defs",null,d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__a",x1:49.753,x2:49.753,y1:36.267,y2:23.152,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610B39"}),d.createElement("stop",{offset:.15,stopColor:"#79164B"}),d.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),d.createElement("stop",{offset:.44,stopColor:"#9A2463"}),d.createElement("stop",{offset:.63,stopColor:"#A22768"}),d.createElement("stop",{offset:1,stopColor:"#A4286A"})),d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__b",x1:82.999,x2:82.999,y1:38.82,y2:20.114,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610B39"}),d.createElement("stop",{offset:.15,stopColor:"#79164B"}),d.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),d.createElement("stop",{offset:.44,stopColor:"#9A2463"}),d.createElement("stop",{offset:.63,stopColor:"#A22768"}),d.createElement("stop",{offset:1,stopColor:"#A4286A"})),d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__c",x1:62.701,x2:62.701,y1:36.222,y2:23.113,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610B39"}),d.createElement("stop",{offset:.15,stopColor:"#79164B"}),d.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),d.createElement("stop",{offset:.44,stopColor:"#9A2463"}),d.createElement("stop",{offset:.63,stopColor:"#A22768"}),d.createElement("stop",{offset:1,stopColor:"#A4286A"})),d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__d",x1:74.149,x2:74.149,y1:36.275,y2:23.046,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610B39"}),d.createElement("stop",{offset:.15,stopColor:"#79164B"}),d.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),d.createElement("stop",{offset:.44,stopColor:"#9A2463"}),d.createElement("stop",{offset:.63,stopColor:"#A22768"}),d.createElement("stop",{offset:1,stopColor:"#A4286A"})),d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__e",x1:25.434,x2:25.434,y1:16.169,y2:36.914,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#77B227"}),d.createElement("stop",{offset:.47,stopColor:"#75B027"}),d.createElement("stop",{offset:.64,stopColor:"#6EAB27"}),d.createElement("stop",{offset:.75,stopColor:"#63A027"}),d.createElement("stop",{offset:.85,stopColor:"#529228"}),d.createElement("stop",{offset:.93,stopColor:"#3C8028"}),d.createElement("stop",{offset:1,stopColor:"#246B29"})),d.createElement("clipPath",{id:"yoast-connect-google-site-kit-success_svg__f"},d.createElement("path",{fill:"#fff",d:"M169.334 22h14.973v15.909h-14.973z"}))))),_o=[{children:(0,Wt.__)("INSTALL","wordpress-seo"),id:"install"},{children:(0,Wt.__)("ACTIVATE","wordpress-seo"),id:"activate"},{children:(0,Wt.__)("SET UP","wordpress-seo"),id:"setup"},{children:(0,Wt.__)("CONNECT","wordpress-seo"),id:"connect"}],Eo={install:0,activate:1,setup:2,grantConsent:3,successfullyConnected:-1},jo=(e,t)=>[Eo.setup,Eo.grantConsent,Eo.successfullyConnected].includes(e)&&!t,ko=({isSiteKitConnectionCompleted:e})=>(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)(l.Title,{size:"2",className:"yst-mb-4",children:e?(0,Wt.__)("You’ve successfully connected your site with Site Kit by Google!","wordpress-seo"):(0,Wt.__)("Expand your dashboard with insights from Google!","wordpress-seo")}),!e&&(0,Qt.jsx)("p",{className:"yst-mb-4",children:(0,Wt.__)("Bring together powerful tools like Google Analytics and Search Console for a complete overview of your website's performance, all in one seamless dashboard.","wordpress-seo")})]}),Co=({capabilities:e,currentStep:t,isVersionSupported:s,isConsentGranted:r})=>{const n="yst-mt-6";return jo(t,s)?r?(0,Qt.jsx)(l.Alert,{className:n,variant:"error",children:(0,Wt.__)("Your current version of the Site Kit by Google plugin is no longer compatible with Yoast SEO. Please update to the latest version to restore the connection.","wordpress-seo")}):(0,Qt.jsx)(l.Alert,{className:n,children:(0,Wt.__)("You are using an outdated version of the Site Kit by Google plugin. Please update to the latest version to connect Yoast SEO with Site Kit by Google.","wordpress-seo")}):t===Eo.successfullyConnected?null:!e.installPlugins&&t<Eo.grantConsent?(0,Qt.jsx)(l.Alert,{className:n,children:(0,Wt.__)("Please contact your WordPress admin to install, activate, and set up the Site Kit by Google plugin.","wordpress-seo")}):e.viewSearchConsoleData||t!==Eo.grantConsent?void 0:(0,Qt.jsx)(l.Alert,{className:n,children:(0,Wt.__)("You don’t have view access to Site Kit by Google. Please contact the admin who set it up.","wordpress-seo")})},Ro=({dashboardUrl:e})=>(0,Qt.jsx)(l.Alert,{className:"yst-mb-4",children:Vt((0,Wt.sprintf)(/* translators: %1$s and %2$s: Expands to an opening and closing link tag. */ /* translators: %1$s and %2$s: Expands to an opening and closing link tag. */
(0,Wt.__)("You’re back in Yoast SEO. If you still have tasks to finish in Site Kit by Google, you can %1$s return to their dashboard%2$s anytime.","wordpress-seo"),"<a>","</a>"),{a:(0,Qt.jsx)("a",{href:e})})}),To=({currentStep:e,config:t,isConnectionCompleted:s,onDismissWidget:r,onShowConsent:n})=>{const o=(0,a.useCallback)((e,s="installPlugins")=>{var r;return null!==(r=t.capabilities)&&void 0!==r&&r[s]?e:null},[t.capabilities]);if(jo(e,t.isVersionSupported))return(0,Qt.jsx)(l.Button,{as:"a",href:t.updateUrl,children:(0,Wt.__)("Update Site Kit by Google","wordpress-seo")});if(s)return(0,Qt.jsx)(l.Button,{onClick:r,children:(0,Wt.__)("Got it!","wordpress-seo")});switch(e){case Eo.install:return(0,Qt.jsx)(l.Button,{as:"a",href:o(t.installUrl),disabled:!t.capabilities.installPlugins,"aria-disabled":!t.capabilities.installPlugins,children:(0,Wt.__)("Install Site Kit by Google","wordpress-seo")});case Eo.activate:return(0,Qt.jsx)(l.Button,{as:"a",href:o(t.activateUrl),disabled:!t.capabilities.installPlugins,"aria-disabled":!t.capabilities.installPlugins,children:(0,Wt.__)("Activate Site Kit by Google","wordpress-seo")});case Eo.setup:return(0,Qt.jsx)(l.Button,{as:"a",href:o(t.setupUrl),disabled:!t.capabilities.installPlugins,"aria-disabled":!t.capabilities.installPlugins,children:(0,Wt.__)("Set up Site Kit by Google","wordpress-seo")});case Eo.grantConsent:return(0,Qt.jsx)(l.Button,{disabled:!t.capabilities.viewSearchConsoleData,onClick:n,children:(0,Wt.__)("Connect Site Kit by Google","wordpress-seo")})}return null},Oo=({dataProvider:e,remoteDataProvider:t,dataTracker:s})=>{const{grantConsent:r,dismissPermanently:n}=((e,t)=>({grantConsent:(0,a.useCallback)(s=>{t.fetchJson(e.getEndpoint("siteKitConsentManagement"),{consent:String(!0)},{...s,method:"POST"}).then(({success:t})=>{t&&e.setSiteKitConsentGranted(!0)}).catch(c.noop)},[e,t]),dismissPermanently:(0,a.useCallback)(s=>{t.fetchJson(e.getEndpoint("siteKitConfigurationDismissal"),{is_dismissed:String(!0)},{...s,method:"POST"}).catch(c.noop),e.setSiteKitConfigurationDismissed(!0)},[t,e])}))(e,t),o=e.getSiteKitCurrentConnectionStep(),d=e.getSiteKitConfiguration(),u=e.isSiteKitConnectionCompleted()&&d.isVersionSupported;((e,t)=>{(0,a.useEffect)(()=>{const s=(r=t,null===(n=Object.entries(Eo).find(([,e])=>e===r))||void 0===n?void 0:n[0]);var r,n;"no"===e.getTrackingElement("setupWidgetLoaded")?e.track({setupWidgetLoaded:"yes",firstInteractionStage:s,lastInteractionStage:s}):"yes"===e.getTrackingElement("setupWidgetLoaded")&&e.track({lastInteractionStage:s})},[e,t])})(s,o);const p=(0,a.useCallback)(()=>{e.setSiteKitConfigurationDismissed(!0)},[e]),m=(0,a.useCallback)(()=>{p(),s.track({setupWidgetTemporarilyDismissed:"yes"})},[s,p]),[h,,,f,y]=(0,l.useToggleState)(!1),g=(0,a.useCallback)(()=>{n(),s.track({setupWidgetPermanentlyDismissed:"yes"})},[s,o]),v=e.getLink("siteKitLearnMore"),b=e.getLink("siteKitConsentLearnMore");return(0,Qt.jsxs)(i.Widget,{className:"yst-paper__content yst-relative @3xl:yst-col-span-2 yst-col-span-4",children:[(0,Qt.jsx)("div",{className:"yst-flex yst-justify-center yst-mb-6 yst-mt-4",children:u?(0,Qt.jsx)(So,{className:"yst-aspect-[21/5] yst-max-w-[252px]"}):(0,Qt.jsx)(Tn,{className:"yst-aspect-[21/5] yst-max-w-[252px]"})}),!jo(o,d.isVersionSupported)&&(0,Qt.jsx)(l.Stepper,{steps:_o,currentStep:o===Eo.successfullyConnected?_o.length:o,className:"yst-mb-6"}),(0,Qt.jsxs)(l.DropdownMenu,{as:"span",className:"yst-absolute yst-top-4 yst-end-4",children:[(0,Qt.jsx)(l.DropdownMenu.IconTrigger,{screenReaderTriggerLabel:(0,Wt.__)("Open Site Kit widget dropdown menu","wordpress-seo"),className:"yst-float-end"}),(0,Qt.jsxs)(l.DropdownMenu.List,{className:"yst-mt-8 yst-w-56",children:[(0,Qt.jsxs)(l.DropdownMenu.ButtonItem,{className:"yst-text-slate-600 yst-border-b yst-border-slate-200 yst-flex yst-py-2 yst-justify-start yst-gap-2 yst-px-4 yst-font-normal",onClick:m,children:[(0,Qt.jsx)(xo(),{className:"yst-w-4 yst-text-slate-400 yst-shrink-0"}),(0,Wt.__)("Remove until next visit","wordpress-seo")]}),(0,Qt.jsxs)(l.DropdownMenu.ButtonItem,{className:"yst-text-red-500 yst-flex yst-py-2 yst-justify-start yst-gap-2 yst-px-4 yst-font-normal",onClick:g,children:[(0,Qt.jsx)(vo(),{className:"yst-w-4 yst-shrink-0"}),(0,Wt.__)("Remove permanently","wordpress-seo")]})]})]}),(0,Qt.jsx)("hr",{className:"yst-bg-slate-200 yst-mb-6"}),d.isRedirectedFromSiteKit&&(0,Qt.jsx)(Ro,{dashboardUrl:d.dashboardUrl}),(0,Qt.jsxs)("div",{className:"yst-max-w-2xl",children:[(0,Qt.jsx)(ko,{isSiteKitConnectionCompleted:u}),(0,Qt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium",children:u?(0,Wt.__)("You're all set, here are some benefits:","wordpress-seo"):(0,Wt.__)("Here's what you'll unlock:","wordpress-seo")}),(0,Qt.jsxs)("ul",{children:[(0,Qt.jsxs)("li",{className:"yst-gap-2 yst-flex yst-mt-2 yst-items-start",children:[(0,Qt.jsx)(cs(),{className:"yst-w-5 yst-text-green-400 yst-shrink-0"}),(0,Wt.__)("Grow your audience with actionable SEO and user behavior insights.","wordpress-seo")]}),(0,Qt.jsxs)("li",{className:"yst-gap-2 yst-flex yst-mt-2 yst-items-start",children:[(0,Qt.jsx)(cs(),{className:"yst-w-5 yst-text-green-400 yst-shrink-0"}),(0,Wt.__)("Fine-tune your SEO and optimize your content using key performance metrics (KPI).","wordpress-seo")]})]}),(0,Qt.jsx)(Co,{capabilities:d.capabilities,currentStep:o,isVersionSupported:d.isVersionSupported,isConsentGranted:d.connectionStepsStatuses.isConsentGranted})]}),(0,Qt.jsxs)("div",{className:"yst-flex yst-gap-1.5 yst-mt-6 yst-items-center",children:[(0,Qt.jsx)(To,{currentStep:o,config:d,isConnectionCompleted:u,onDismissWidget:p,onShowConsent:f}),!u&&(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsxs)(l.Button,{as:"a",href:v,variant:"tertiary",className:"yst-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",target:"_blank",rel:"noopener",children:[(0,Wt.__)("Learn more","wordpress-seo"),(0,Qt.jsx)(Us(),{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),(0,Qt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,Wt.__)("(Opens in a new browser tab)","wordpress-seo")})]}),(0,Qt.jsx)(On,{isOpen:o===Eo.grantConsent&&h,onClose:y,onGrantConsent:r,learnMoreLink:b})]})]})]})};function No(e,t,s){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,s)}var Po=new WeakMap,Lo=new WeakMap,Io=new WeakMap,Ao=new WeakMap,Mo=new WeakMap;class Do{constructor(e,t,s,r,n){No(this,Po,{writable:!0,value:void 0}),No(this,Lo,{writable:!0,value:void 0}),No(this,Io,{writable:!0,value:void 0}),No(this,Ao,{writable:!0,value:void 0}),No(this,Mo,{writable:!0,value:void 0}),Hn(this,Po,e),Hn(this,Lo,t),Hn(this,Io,s),Hn(this,Ao,r),Hn(this,Mo,n)}getRemoteDataProvider(e){var t;return null!==(t=$n(this,Io)[e])&&void 0!==t?t:$n(this,Lo)}get types(){return{siteKitSetup:"siteKitSetup",searchRankingCompare:"searchRankingCompare",organicSessions:"organicSessions",topPages:"topPages",topQueries:"topQueries",seoScores:"seoScores",readabilityScores:"readabilityScores"}}createWidget(e){const{isFeatureEnabled:t,isSetupWidgetDismissed:s,isAnalyticsConnected:r,capabilities:n,isVersionSupported:o}=$n(this,Po).getSiteKitConfiguration(),a=$n(this,Po).isSiteKitConnectionCompleted(),l=t&&a&&o,c=l&&n.viewSearchConsoleData,d=l&&r&&n.viewAnalyticsData;switch(e){case this.types.seoScores:return $n(this,Po).hasFeature("indexables")&&$n(this,Po).hasFeature("seoAnalysis")?(0,Qt.jsx)(i.ScoreWidget,{analysisType:"seo",dataProvider:$n(this,Po),remoteDataProvider:this.getRemoteDataProvider(e)},e):null;case this.types.readabilityScores:return $n(this,Po).hasFeature("indexables")&&$n(this,Po).hasFeature("readabilityAnalysis")?(0,Qt.jsx)(i.ScoreWidget,{analysisType:"readability",dataProvider:$n(this,Po),remoteDataProvider:this.getRemoteDataProvider(e)},e):null;case this.types.topPages:return c?(0,Qt.jsx)(i.TopPagesWidget,{dataProvider:$n(this,Po),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:$n(this,Ao).plainMetricsDataFormatter},e):null;case this.types.siteKitSetup:return!t||s?null:(0,Qt.jsx)(Oo,{dataProvider:$n(this,Po),remoteDataProvider:this.getRemoteDataProvider(e),dataTracker:$n(this,Mo).setupWidgetDataTracker},e);case this.types.topQueries:return c?(0,Qt.jsx)(i.TopQueriesWidget,{dataProvider:$n(this,Po),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:$n(this,Ao).plainMetricsDataFormatter},e):null;case this.types.searchRankingCompare:return c?(0,Qt.jsx)(i.SearchRankingCompareWidget,{dataProvider:$n(this,Po),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:$n(this,Ao).comparisonMetricsDataFormatter},e):null;case this.types.organicSessions:return d?(0,Qt.jsx)(i.OrganicSessionsWidget,{dataProvider:$n(this,Po),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:$n(this,Ao).comparisonMetricsDataFormatter},e):null;default:return null}}}const Fo=window.yoast.reduxJsToolkit,zo="adminUrl",Uo=(0,Fo.createSlice)({name:zo,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),Bo=Uo.getInitialState,qo={selectAdminUrl:e=>(0,c.get)(e,zo,"")};qo.selectAdminLink=(0,Fo.createSelector)([qo.selectAdminUrl,(e,t)=>t],(e,t="")=>{try{return new URL(t,e).href}catch(t){return e}});const $o=Uo.actions,Ho=Uo.reducer,Wo="hasConsent",Vo=(0,Fo.createSlice)({name:Wo,initialState:{hasConsent:!1,endpoint:""},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),Go=(Vo.getInitialState,Vo.actions,Vo.reducer,window.wp.url),Ko="linkParams",Yo=(0,Fo.createSlice)({name:Ko,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),Jo=Yo.getInitialState,Qo={selectLinkParam:(e,t,s={})=>(0,c.get)(e,`${Ko}.${t}`,s),selectLinkParams:e=>(0,c.get)(e,Ko,{})};Qo.selectLink=(0,Fo.createSelector)([Qo.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],(e,t,s)=>(0,Go.addQueryArgs)(t,{...e,...s}));const Zo=Yo.actions,Xo=Yo.reducer,ea=(0,Fo.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:r,description:n})=>({payload:{id:e||(0,Fo.nanoid)(),variant:t,size:s,title:r||"",description:n}})},removeNotification:(e,{payload:t})=>(0,c.omit)(e,t)}}),ta=(ea.getInitialState,ea.actions,ea.reducer,"pluginUrl"),sa=(0,Fo.createSlice)({name:ta,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),ra=(sa.getInitialState,{selectPluginUrl:e=>(0,c.get)(e,ta,"")});ra.selectImageLink=(0,Fo.createSelector)([ra.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],(e,t,s)=>[(0,c.trimEnd)(e,"/"),(0,c.trim)(t,"/"),(0,c.trimStart)(s,"/")].join("/")),sa.actions,sa.reducer;const na="wistiaEmbedPermission",oa=(0,Fo.createSlice)({name:na,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${na}/${er}`,e=>{e.status=rr}),e.addCase(`${na}/${tr}`,(e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)}),e.addCase(`${na}/${sr}`,(e,{payload:t})=>{e.status=nr,e.value=Boolean(t&&t.value),e.error={code:(0,c.get)(t,"error.code",500),message:(0,c.get)(t,"error.message","Unknown")}})}});var aa;oa.getInitialState,oa.actions,oa.reducer;const ia=(0,Fo.createSlice)({name:"documentTitle",initialState:(0,c.defaultTo)(null===(aa=document)||void 0===aa?void 0:aa.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}});function la(...e){return e.filter(Boolean).join(" ")}function ca(e,t,...s){if(e in t){let r=t[e];return"function"==typeof r?r(...s):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ca),r}ia.getInitialState,ia.actions,ia.reducer;var da,ua,pa=((ua=pa||{})[ua.None=0]="None",ua[ua.RenderStrategy=1]="RenderStrategy",ua[ua.Static=2]="Static",ua),ma=((da=ma||{})[da.Unmount=0]="Unmount",da[da.Hidden=1]="Hidden",da);function ha({ourProps:e,theirProps:t,slot:s,defaultTag:r,features:n,visible:o=!0,name:a}){let i=ya(t,e);if(o)return fa(i,s,r,a);let l=null!=n?n:0;if(2&l){let{static:e=!1,...t}=i;if(e)return fa(t,s,r,a)}if(1&l){let{unmount:e=!0,...t}=i;return ca(e?0:1,{0:()=>null,1:()=>fa({...t,hidden:!0,style:{display:"none"}},s,r,a)})}return fa(i,s,r,a)}function fa(e,t={},s,r){var n;let{as:o=s,children:a,refName:i="ref",...l}=ba(e,["unmount","static"]),c=void 0!==e.ref?{[i]:e.ref}:{},u="function"==typeof a?a(t):a;l.className&&"function"==typeof l.className&&(l.className=l.className(t));let p={};if(t){let e=!1,s=[];for(let[r,n]of Object.entries(t))"boolean"==typeof n&&(e=!0),!0===n&&s.push(r);e&&(p["data-headlessui-state"]=s.join(" "))}if(o===d.Fragment&&Object.keys(va(l)).length>0){if(!(0,d.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(e=>` - ${e}`).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join("\n")].join("\n"));let e=la(null==(n=u.props)?void 0:n.className,l.className),t=e?{className:e}:{};return(0,d.cloneElement)(u,Object.assign({},ya(u.props,va(ba(l,["ref"]))),p,c,function(...e){return{ref:e.every(e=>null==e)?void 0:t=>{for(let s of e)null!=s&&("function"==typeof s?s(t):s.current=t)}}}(u.ref,c.ref),t))}return(0,d.createElement)(o,Object.assign({},ba(l,["ref"]),o!==d.Fragment&&c,o!==d.Fragment&&p),u)}function ya(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},s={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=s[e]||(s[e]=[]),s[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(s).map(e=>[e,void 0])));for(let e in s)Object.assign(t,{[e](t,...r){let n=s[e];for(let e of n){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function ga(e){var t;return Object.assign((0,d.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function va(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function ba(e,t=[]){let s=Object.assign({},e);for(let e of t)e in s&&delete s[e];return s}let xa=(0,d.createContext)(null);xa.displayName="OpenClosedContext";var wa=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(wa||{});function Sa(){return(0,d.useContext)(xa)}function _a({value:e,children:t}){return d.createElement(xa.Provider,{value:e},t)}var Ea=Object.defineProperty,ja=(e,t,s)=>(((e,t,s)=>{t in e?Ea(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s})(e,"symbol"!=typeof t?t+"":t,s),s);let ka=new class{constructor(){ja(this,"current",this.detect()),ja(this,"handoffState","pending"),ja(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},Ca=(e,t)=>{ka.isServer?(0,d.useEffect)(e,t):(0,d.useLayoutEffect)(e,t)};function Ra(){let e=(0,d.useRef)(!1);return Ca(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Ta(e){let t=(0,d.useRef)(e);return Ca(()=>{t.current=e},[e]),t}function Oa(){let[e,t]=(0,d.useState)(ka.isHandoffComplete);return e&&!1===ka.isHandoffComplete&&t(!1),(0,d.useEffect)(()=>{!0!==e&&t(!0)},[e]),(0,d.useEffect)(()=>ka.handoff(),[]),e}let Na=function(e){let t=Ta(e);return d.useCallback((...e)=>t.current(...e),[t])},Pa=Symbol();function La(e,t=!0){return Object.assign(e,{[Pa]:t})}function Ia(...e){let t=(0,d.useRef)(e);(0,d.useEffect)(()=>{t.current=e},[e]);let s=Na(e=>{for(let s of t.current)null!=s&&("function"==typeof s?s(e):s.current=e)});return e.every(e=>null==e||(null==e?void 0:e[Pa]))?void 0:s}function Aa(){let e=[],t=[],s={enqueue(e){t.push(e)},addEventListener:(e,t,r,n)=>(e.addEventListener(t,r,n),s.add(()=>e.removeEventListener(t,r,n))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return s.add(()=>cancelAnimationFrame(t))},nextFrame:(...e)=>s.requestAnimationFrame(()=>s.requestAnimationFrame(...e)),setTimeout(...e){let t=setTimeout(...e);return s.add(()=>clearTimeout(t))},microTask(...e){let t={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}(()=>{t.current&&e[0]()}),s.add(()=>{t.current=!1})},add:t=>(e.push(t),()=>{let s=e.indexOf(t);if(s>=0){let[t]=e.splice(s,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return s}function Ma(e,...t){e&&t.length>0&&e.classList.add(...t)}function Da(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Fa(){let[e]=(0,d.useState)(Aa);return(0,d.useEffect)(()=>()=>e.dispose(),[e]),e}function za({container:e,direction:t,classes:s,onStart:r,onStop:n}){let o=Ra(),a=Fa(),i=Ta(t);Ca(()=>{let t=Aa();a.add(t.dispose);let l=e.current;if(l&&"idle"!==i.current&&o.current)return t.dispose(),r.current(i.current),t.add(function(e,t,s,r){let n=s?"enter":"leave",o=Aa(),a=void 0!==r?function(e){let t={called:!1};return(...s)=>{if(!t.called)return t.called=!0,e(...s)}}(r):()=>{};"enter"===n&&(e.removeAttribute("hidden"),e.style.display="");let i=ca(n,{enter:()=>t.enter,leave:()=>t.leave}),l=ca(n,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=ca(n,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Da(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Ma(e,...i,...c),o.nextFrame(()=>{Da(e,...c),Ma(e,...l),function(e,t){let s=Aa();if(!e)return s.dispose;let{transitionDuration:r,transitionDelay:n}=getComputedStyle(e),[o,a]=[r,n].map(e=>{let[t=0]=e.split(",").filter(Boolean).map(e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e)).sort((e,t)=>t-e);return t});if(o+a!==0){let r=s.addEventListener(e,"transitionend",e=>{e.target===e.currentTarget&&(t(),r())})}else t();s.add(()=>t()),s.dispose}(e,()=>(Da(e,...i),Ma(e,...t.entered),a()))}),o.dispose}(l,s.current,"enter"===i.current,()=>{t.dispose(),n.current(i.current)})),t.dispose},[t])}function Ua(e=""){return e.split(" ").filter(e=>e.trim().length>1)}let Ba=(0,d.createContext)(null);Ba.displayName="TransitionContext";var qa=(e=>(e.Visible="visible",e.Hidden="hidden",e))(qa||{});let $a=(0,d.createContext)(null);function Ha(e){return"children"in e?Ha(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function Wa(e,t){let s=Ta(e),r=(0,d.useRef)([]),n=Ra(),o=Fa(),a=Na((e,t=ma.Hidden)=>{let a=r.current.findIndex(({el:t})=>t===e);-1!==a&&(ca(t,{[ma.Unmount](){r.current.splice(a,1)},[ma.Hidden](){r.current[a].state="hidden"}}),o.microTask(()=>{var e;!Ha(r)&&n.current&&(null==(e=s.current)||e.call(s))}))}),i=Na(e=>{let t=r.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,ma.Unmount)}),l=(0,d.useRef)([]),c=(0,d.useRef)(Promise.resolve()),u=(0,d.useRef)({enter:[],leave:[],idle:[]}),p=Na((e,s,r)=>{l.current.splice(0),t&&(t.chains.current[s]=t.chains.current[s].filter(([t])=>t!==e)),null==t||t.chains.current[s].push([e,new Promise(e=>{l.current.push(e)})]),null==t||t.chains.current[s].push([e,new Promise(e=>{Promise.all(u.current[s].map(([e,t])=>t)).then(()=>e())})]),"enter"===s?c.current=c.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(s)):r(s)}),m=Na((e,t,s)=>{Promise.all(u.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=l.current.shift())||e()}).then(()=>s(t))});return(0,d.useMemo)(()=>({children:r,register:i,unregister:a,onStart:p,onStop:m,wait:c,chains:u}),[i,a,r,p,m,u,c])}function Va(){}$a.displayName="NestingContext";let Ga=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ka(e){var t;let s={};for(let r of Ga)s[r]=null!=(t=e[r])?t:Va;return s}let Ya=pa.RenderStrategy,Ja=ga(function(e,t){let{beforeEnter:s,afterEnter:r,beforeLeave:n,afterLeave:o,enter:a,enterFrom:i,enterTo:l,entered:c,leave:u,leaveFrom:p,leaveTo:m,...h}=e,f=(0,d.useRef)(null),y=Ia(f,t),g=h.unmount?ma.Unmount:ma.Hidden,{show:v,appear:b,initial:x}=function(){let e=(0,d.useContext)(Ba);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[w,S]=(0,d.useState)(v?"visible":"hidden"),_=function(){let e=(0,d.useContext)($a);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:E,unregister:j}=_,k=(0,d.useRef)(null);(0,d.useEffect)(()=>E(f),[E,f]),(0,d.useEffect)(()=>{if(g===ma.Hidden&&f.current)return v&&"visible"!==w?void S("visible"):ca(w,{hidden:()=>j(f),visible:()=>E(f)})},[w,f,E,j,v,g]);let C=Ta({enter:Ua(a),enterFrom:Ua(i),enterTo:Ua(l),entered:Ua(c),leave:Ua(u),leaveFrom:Ua(p),leaveTo:Ua(m)}),R=function(e){let t=(0,d.useRef)(Ka(e));return(0,d.useEffect)(()=>{t.current=Ka(e)},[e]),t}({beforeEnter:s,afterEnter:r,beforeLeave:n,afterLeave:o}),T=Oa();(0,d.useEffect)(()=>{if(T&&"visible"===w&&null===f.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[f,w,T]);let O=x&&!b,N=!T||O||k.current===v?"idle":v?"enter":"leave",P=Na(e=>ca(e,{enter:()=>R.current.beforeEnter(),leave:()=>R.current.beforeLeave(),idle:()=>{}})),L=Na(e=>ca(e,{enter:()=>R.current.afterEnter(),leave:()=>R.current.afterLeave(),idle:()=>{}})),I=Wa(()=>{S("hidden"),j(f)},_);za({container:f,classes:C,direction:N,onStart:Ta(e=>{I.onStart(f,e,P)}),onStop:Ta(e=>{I.onStop(f,e,L),"leave"===e&&!Ha(I)&&(S("hidden"),j(f))})}),(0,d.useEffect)(()=>{!O||(g===ma.Hidden?k.current=null:k.current=v)},[v,O,w]);let A=h,M={ref:y};return b&&v&&ka.isServer&&(A={...A,className:la(h.className,...C.current.enter,...C.current.enterFrom)}),d.createElement($a.Provider,{value:I},d.createElement(_a,{value:ca(w,{visible:wa.Open,hidden:wa.Closed})},ha({ourProps:M,theirProps:A,defaultTag:"div",features:Ya,visible:"visible"===w,name:"Transition.Child"})))}),Qa=ga(function(e,t){let{show:s,appear:r=!1,unmount:n,...o}=e,a=(0,d.useRef)(null),i=Ia(a,t);Oa();let l=Sa();if(void 0===s&&null!==l&&(s=ca(l,{[wa.Open]:!0,[wa.Closed]:!1})),![!0,!1].includes(s))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=(0,d.useState)(s?"visible":"hidden"),p=Wa(()=>{u("hidden")}),[m,h]=(0,d.useState)(!0),f=(0,d.useRef)([s]);Ca(()=>{!1!==m&&f.current[f.current.length-1]!==s&&(f.current.push(s),h(!1))},[f,s]);let y=(0,d.useMemo)(()=>({show:s,appear:r,initial:m}),[s,r,m]);(0,d.useEffect)(()=>{if(s)u("visible");else if(Ha(p)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")},[s,p]);let g={unmount:n};return d.createElement($a.Provider,{value:p},d.createElement(Ba.Provider,{value:y},ha({ourProps:{...g,as:d.Fragment,children:d.createElement(Ja,{ref:i,...g,...o})},theirProps:{},defaultTag:d.Fragment,features:Ya,visible:"visible"===c,name:"Transition"})))}),Za=ga(function(e,t){let s=null!==(0,d.useContext)(Ba),r=null!==Sa();return d.createElement(d.Fragment,null,!s&&r?d.createElement(Qa,{ref:t,...e}):d.createElement(Ja,{ref:t,...e}))}),Xa=Object.assign(Qa,{Child:Za,Root:Qa});var ei=s(287),ti=s.n(ei),si=s(9152),ri=s.n(si),ni=s(6555),oi=s.n(ni),ai=s(27),ii=s.n(ai),li=s(4610),ci=s.n(li),di=s(9303),ui=s.n(di);const pi="@yoast/general",mi=(0,a.createContext)({Icon:null,bulletClass:"",iconClass:""}),hi=(e,t,s)=>{const r=e.querySelector(t);return r&&(r.textContent=s),r},fi=(e,t=[],...s)=>(0,r.useSelect)(t=>{var r,n;return null===(r=(n=t(pi))[e])||void 0===r?void 0:r.call(n,...s)},t),yi=(e,t,s)=>{const r=[e,"wordpress-seo"];return t&&r.push("wordpress-seo-premium"),null!=s&&s.isWooSeoActive&&r.push("wpseo-woocommerce"),null!=s&&s.isLocalSEOActive&&r.push("wpseo-local"),null!=s&&s.isVideoSEOActive&&r.push("wpseo-video"),null!=s&&s.isNewsSEOActive&&r.push("wpseo-news"),null!=s&&s.isDuplicatePostActive&&r.push("duplicate-post"),r},gi=({id:e,dismissed:t,message:s,resolveNonce:n})=>{const[o,i]=(0,a.useState)(!1),[d,u]=(0,a.useState)(""),{removeAlert:p,setResolveSuccessMessage:m}=(0,r.useDispatch)(pi),h=fi("selectPreference",[],"isPremium"),f=fi("selectPreference",[],"addonsStatus"),y=(0,a.useRef)(),{isRtl:g}=(0,l.useRootContext)(),v=(0,a.useCallback)(()=>{u("")},[]),b=(0,a.useCallback)(async()=>{const t=y.current,s=t?t.value.trim():"";if((0,Go.isEmail)(s)){i(!0),u("");try{const t=await async function(e,t,s){const r=yi("recapture",t,s);return(await fetch("https://my.yoast.com/api/Mailing-list/subscribe",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({customerDetails:{firstName:"",email:e},list:"Yoast newsletter",source:r})})).json()}(s,h,f);if("subscribed"!==t.status)return void u((0,Wt.__)("Failed to subscribe to mailing list.","wordpress-seo"));const a=await async function(e,t){const s=new FormData;s.append("action","wpseo_resolve_alert"),s.append("alertId",e),s.append("_ajax_nonce",t);const n=(0,r.select)(pi).selectPreference("ajaxUrl");return(await fetch(n,{method:"POST",body:s})).json()}(e,n);var o;if(!a.success)return void u((null===(o=a.data)||void 0===o?void 0:o.message)||(0,Wt.__)("Failed to resolve alert.","wordpress-seo"));m((0,Wt.__)("Successfully subscribed!","wordpress-seo")),p(e)}catch(e){u((0,Wt.__)("An error occurred. Please try again.","wordpress-seo")),console.error("Error in handleSendClick:",e)}finally{i(!1)}}else u((0,Wt.__)("Please enter a valid email address.","wordpress-seo"))},[e,n,i,u,p,m]);return(0,Qt.jsxs)("div",{className:Is()("yst-text-sm yst-text-slate-600 yst-grow",t&&"yst-opacity-50"),children:[(0,Qt.jsx)("div",{dangerouslySetInnerHTML:{__html:s}}),(0,Qt.jsxs)("div",{className:"yst-flex yst-items-end yst-gap-2 yst-mt-2",children:[(0,Qt.jsx)(l.TextField,{type:"email",name:e+"-input-field",id:e+"-input-field",label:"",placeholder:(0,Wt.__)("E.g. example@email.com","wordpress-seo"),className:"yst-flex-1",disabled:o||t,onInput:v,ref:y,onChange:c.noop,style:{direction:g?"rtl":"ltr"}}),(0,Qt.jsxs)(l.Button,{variant:"primary",size:"large",onClick:b,isLoading:o,disabled:o||t,children:[(0,Wt.__)("Send","wordpress-seo"),(0,Qt.jsx)("div",{className:"yst-ms-2 yst-w-4",children:(0,Qt.jsx)(Us(),{className:"yst-w-4 yst-text-white rtl:yst-rotate-180"})})]})]}),d&&(0,Qt.jsx)("p",{className:"yst-text-red-600 yst-text-xs yst-mt-1",children:d}),(0,Qt.jsx)("p",{className:"yst-text-slate-600 yst-text-xxs yst-leading-4 yst-mt-1",children:Vt((0,Wt.sprintf)(
/**
* translators: %1$s and %2$s expand to opening and closing <a> tags.
*/
/**
* translators: %1$s and %2$s expand to opening and closing <a> tags.
*/
(0,Wt.__)("Yoast respects your privacy. Read %1$sour privacy policy%2$s on how we handle your personal information.","wordpress-seo"),"<a>","</a>"),{a:(0,Qt.jsx)("a",{href:(0,r.select)(pi).selectLink("https://yoa.st/gdpr-config-workout"),target:"_blank",rel:"noopener"})})})]})};gi.propTypes={id:Jt().string.isRequired,dismissed:Jt().bool.isRequired,message:Jt().string.isRequired,resolveNonce:Jt().string.isRequired};const vi=({dismissed:e,message:t})=>(0,Qt.jsx)("div",{className:Is()("yst-text-sm yst-text-slate-600 yst-grow",e&&"yst-opacity-50"),dangerouslySetInnerHTML:{__html:t}});vi.propTypes={dismissed:Jt().bool.isRequired,message:Jt().string.isRequired};const bi=({id:e,dismissed:t,message:s,resolveNonce:r})=>"wpseo-ping-other-admins"===e?(0,Qt.jsx)(gi,{id:e,dismissed:t,message:s,resolveNonce:r}):(0,Qt.jsx)(vi,{dismissed:t,message:s});bi.propTypes={id:Jt().string.isRequired,dismissed:Jt().bool.isRequired,message:Jt().string.isRequired,resolveNonce:Jt().string.isRequired};const xi=({id:e="",nonce:t="",dismissed:s=!1,message:n="",resolveNonce:o=""})=>{const{bulletClass:i=""}=(0,a.useContext)(mi),{toggleAlertStatus:c}=(0,r.useDispatch)(pi),d=s?ci():ui(),u=(0,a.useCallback)(async()=>{c(e,t,s)},[e,t,s,c]);return(0,Qt.jsxs)("li",{className:"yst-flex yst-justify-between yst-gap-x-5 yst-border-b yst-border-slate-200 last:yst-border-b-0 yst-py-6 first:yst-pt-0 last:yst-pb-0",children:[(0,Qt.jsx)("div",{className:Is()("yst-mt-1",s&&"yst-opacity-50"),children:(0,Qt.jsx)("svg",{width:"11",height:"11",className:i,children:(0,Qt.jsx)("circle",{cx:"5.5",cy:"5.5",r:"5.5"})})}),(0,Qt.jsx)(bi,{id:e,dismissed:s,message:n,resolveNonce:o}),(0,Qt.jsx)(l.Button,{variant:"secondary",size:"small",className:"yst-self-center yst-h-8",onClick:u,children:(0,Qt.jsx)(d,{className:"yst-w-4 yst-h-4 yst-text-neutral-700"})})]},e)};xi.propTypes={id:Jt().string,nonce:Jt().string,dismissed:Jt().bool,message:Jt().string,resolveNonce:Jt().string};const wi=({className:e="",items:t=[]})=>0===t.length?null:(0,Qt.jsx)("ul",{className:e,children:t.map(e=>(0,Qt.jsx)(xi,{id:e.id,nonce:e.nonce,dismissed:e.dismissed,message:e.message,resolveNonce:e.resolveNonce||""},e.id))});wi.propTypes={className:Jt().string,items:Jt().arrayOf(Jt().shape({message:Jt().string,id:Jt().string,nonce:Jt().string,dismissed:Jt().bool,resolveNonce:Jt().string}))};var Si=s(894),_i=s.n(Si);const Ei=({title:e,counts:t=0,children:s=null})=>{const{Icon:r=_i(),iconClass:n=""}=(0,a.useContext)(mi);return(0,Qt.jsxs)("div",{children:[(0,Qt.jsxs)("div",{className:"yst-flex yst-justify-between yst-gap-2 yst-items-center",children:[(0,Qt.jsx)(r,{className:Is()("yst-w-6 yst-h-6",n)}),(0,Qt.jsxs)(l.Title,{className:"yst-grow",as:"h2",size:"2",children:[e," ",`(${t})`]})]}),s]})};var ji;Ei.propTypes={title:Jt().string.isRequired,counts:Jt().number,children:Jt().node};let ki=null!=(ji=d.useId)?ji:function(){let e=Oa(),[t,s]=d.useState(e?()=>ka.nextId():null);return Ca(()=>{null===t&&s(ka.nextId())},[t]),null!=t?""+t:void 0};var Ci=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ci||{});function Ri(e){let t=e.parentElement,s=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(s=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(s))&&r}function Ti(e){var t;if(e.type)return e.type;let s=null!=(t=e.as)?t:"button";return"string"==typeof s&&"button"===s.toLowerCase()?"button":void 0}function Oi(e,t){let[s,r]=(0,d.useState)(()=>Ti(e));return Ca(()=>{r(Ti(e))},[e.type,e.as]),Ca(()=>{s||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[s,t]),s}function Ni(e){return ka.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}var Pi,Li=((Pi=Li||{})[Pi.Open=0]="Open",Pi[Pi.Closed=1]="Closed",Pi),Ii=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.LinkPanel=4]="LinkPanel",e[e.UnlinkPanel=5]="UnlinkPanel",e))(Ii||{});let Ai={0:e=>({...e,disclosureState:ca(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},Mi=(0,d.createContext)(null);function Di(e){let t=(0,d.useContext)(Mi);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Di),t}return t}Mi.displayName="DisclosureContext";let Fi=(0,d.createContext)(null);function zi(e){let t=(0,d.useContext)(Fi);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,zi),t}return t}Fi.displayName="DisclosureAPIContext";let Ui=(0,d.createContext)(null);function Bi(e,t){return ca(t.type,Ai,e,t)}Ui.displayName="DisclosurePanelContext";let qi=d.Fragment,$i=ga(function(e,t){let{defaultOpen:s=!1,...r}=e,n=(0,d.useRef)(null),o=Ia(t,La(e=>{n.current=e},void 0===e.as||e.as===d.Fragment)),a=(0,d.useRef)(null),i=(0,d.useRef)(null),l=(0,d.useReducer)(Bi,{disclosureState:s?0:1,linkedPanel:!1,buttonRef:i,panelRef:a,buttonId:null,panelId:null}),[{disclosureState:c,buttonId:u},p]=l,m=Na(e=>{p({type:1});let t=Ni(n);if(!t||!u)return;let s=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(u):t.getElementById(u);null==s||s.focus()}),h=(0,d.useMemo)(()=>({close:m}),[m]),f=(0,d.useMemo)(()=>({open:0===c,close:m}),[c,m]),y={ref:o};return d.createElement(Mi.Provider,{value:l},d.createElement(Fi.Provider,{value:h},d.createElement(_a,{value:ca(c,{0:wa.Open,1:wa.Closed})},ha({ourProps:y,theirProps:r,slot:f,defaultTag:qi,name:"Disclosure"}))))}),Hi=ga(function(e,t){let s=ki(),{id:r=`headlessui-disclosure-button-${s}`,...n}=e,[o,a]=Di("Disclosure.Button"),i=(0,d.useContext)(Ui),l=null!==i&&i===o.panelId,c=(0,d.useRef)(null),u=Ia(c,t,l?null:o.buttonRef);(0,d.useEffect)(()=>{if(!l)return a({type:2,buttonId:r}),()=>{a({type:2,buttonId:null})}},[r,a,l]);let p=Na(e=>{var t;if(l){if(1===o.disclosureState)return;switch(e.key){case Ci.Space:case Ci.Enter:e.preventDefault(),e.stopPropagation(),a({type:0}),null==(t=o.buttonRef.current)||t.focus()}}else switch(e.key){case Ci.Space:case Ci.Enter:e.preventDefault(),e.stopPropagation(),a({type:0})}}),m=Na(e=>{e.key===Ci.Space&&e.preventDefault()}),h=Na(t=>{var s;Ri(t.currentTarget)||e.disabled||(l?(a({type:0}),null==(s=o.buttonRef.current)||s.focus()):a({type:0}))}),f=(0,d.useMemo)(()=>({open:0===o.disclosureState}),[o]),y=Oi(e,c);return ha({ourProps:l?{ref:u,type:y,onKeyDown:p,onClick:h}:{ref:u,id:r,type:y,"aria-expanded":e.disabled?void 0:0===o.disclosureState,"aria-controls":o.linkedPanel?o.panelId:void 0,onKeyDown:p,onKeyUp:m,onClick:h},theirProps:n,slot:f,defaultTag:"button",name:"Disclosure.Button"})}),Wi=pa.RenderStrategy|pa.Static,Vi=ga(function(e,t){let s=ki(),{id:r=`headlessui-disclosure-panel-${s}`,...n}=e,[o,a]=Di("Disclosure.Panel"),{close:i}=zi("Disclosure.Panel"),l=Ia(t,o.panelRef,e=>{a({type:e?4:5})});(0,d.useEffect)(()=>(a({type:3,panelId:r}),()=>{a({type:3,panelId:null})}),[r,a]);let c=Sa(),u=null!==c?c===wa.Open:0===o.disclosureState,p=(0,d.useMemo)(()=>({open:0===o.disclosureState,close:i}),[o,i]),m={ref:l,id:r};return d.createElement(Ui.Provider,{value:o.panelId},ha({ourProps:m,theirProps:n,slot:p,defaultTag:"div",features:Wi,visible:u,name:"Disclosure.Panel"}))}),Gi=Object.assign($i,{Button:Hi,Panel:Vi});var Ki=s(4892),Yi=s.n(Ki);const Ji=({label:e,children:t})=>(0,Qt.jsx)(Gi,{children:({open:s})=>(0,Qt.jsxs)("div",{className:"yst-shadow-sm yst-border-slate-300 yst-rounded-md yst-border",children:[(0,Qt.jsxs)(Gi.Button,{className:"yst-w-full yst-flex yst-justify-between yst-py-4 yst-pe-4 yst-ps-6 yst-items-center",children:[(0,Qt.jsx)("div",{className:"yst-font-medium",children:e}),(0,Qt.jsx)(Yi(),{className:Is()("yst-h-5 yst-w-5 flex-shrink-0 yst-text-slate-400",s?"yst-rotate-180":"")})]}),(0,Qt.jsx)(Gi.Panel,{className:"yst-px-6",children:t})]})});function Qi({title:e,id:t,isDismissable:s,children:n,className:o=""}){const{dismissNotice:i}=(0,r.useDispatch)(pi),l=(0,a.useCallback)(()=>{setTimeout(()=>{i(t)},0)},[i,t]);return(0,Qt.jsxs)("div",{id:t,className:Is()("yst-p-3 yst-rounded-md yoast-general-page-notice yst-relative",o),children:[(0,Qt.jsxs)("div",{className:"yst-flex yst-flex-row yst-items-center yst-min-h-[24px]",children:[(0,Qt.jsx)("span",{className:"yoast-icon"}),e&&(0,Qt.jsx)("div",{className:"yst-text-sm yst-font-medium",dangerouslySetInnerHTML:{__html:e}}),s&&(0,Qt.jsx)("button",{type:"button",className:"notice-dismiss",onClick:l,children:(0,Qt.jsx)("span",{className:"yst-sr-only",children:(0,Wt.__)("Close","wordpress-seo")})})]}),n&&(0,Qt.jsx)("div",{className:"yst-flex-1 yst-text-sm yst-max-w-[600px] yst-ps-[29px]",dangerouslySetInnerHTML:{__html:n}})]})}Ji.propTypes={label:Jt().string.isRequired,children:Jt().node.isRequired},Qi.propTypes={title:Jt().string.isRequired,id:Jt().string.isRequired,isDismissable:Jt().bool.isRequired,children:Jt().string.isRequired,className:Jt().string};const Zi=()=>{const e=(0,r.useSelect)(e=>e(pi).selectActiveNotifications(),[]),t=(0,r.useSelect)(e=>e(pi).selectDismissedNotifications(),[]),s=(0,r.useSelect)(e=>e(pi).selectResolveSuccessMessage(),[]),n=t.length,o=(0,Wt._n)("hidden notification","hidden notifications",n,"wordpress-seo"),a={Icon:ri(),bulletClass:"yst-fill-blue-500",iconClass:"yst-text-blue-500"};return(0,Qt.jsx)(l.Paper,{children:(0,Qt.jsx)(l.Paper.Content,{className:"yst-max-w-[600px] yst-flex yst-flex-col yst-gap-y-6",children:(0,Qt.jsxs)(mi.Provider,{value:{...a},children:[(0,Qt.jsxs)(Ei,{counts:e.length,title:(0,Wt.__)("Notifications","wordpress-seo"),children:[s&&(0,Qt.jsx)(l.Alert,{variant:"success",className:"yst-mt-6",children:s}),0===e.length&&(0,Qt.jsx)("p",{className:"yst-mt-2 yst-text-sm",children:(0,Wt.__)("No new notifications.","wordpress-seo")})]}),(0,Qt.jsx)(wi,{items:e}),n>0&&(0,Qt.jsx)(Ji,{label:`${n} ${o}`,children:(0,Qt.jsx)(wi,{className:"yst-pb-6",items:t})})]})})})},Xi=()=>{const e=(0,r.useSelect)(e=>e(pi).selectActiveProblems(),[]),t=(0,r.useSelect)(e=>e(pi).selectDismissedProblems(),[]),s=t.length,n=(0,Wt._n)("hidden problem","hidden problems",s,"wordpress-seo"),o={Icon:_i(),bulletClass:"yst-fill-red-500",iconClass:"yst-text-red-500"};return(0,Qt.jsx)(l.Paper,{children:(0,Qt.jsx)(l.Paper.Content,{className:"yst-max-w-[600px] yst-flex yst-flex-col yst-gap-y-6",children:(0,Qt.jsxs)(mi.Provider,{value:{...o},children:[(0,Qt.jsx)(Ei,{title:(0,Wt.__)("Problems","wordpress-seo"),counts:e.length,children:(0,Qt.jsx)("p",{className:"yst-mt-2 yst-text-sm",children:e.length>0?(0,Wt.__)("We have detected the following issues that affect the SEO of your site.","wordpress-seo"):(0,Wt.__)("Good job! We could detect no serious SEO problems.","wordpress-seo")})}),(0,Qt.jsx)(wi,{items:e}),s>0&&(0,Qt.jsx)(Ji,{label:`${s} ${n}`,children:(0,Qt.jsx)(wi,{className:"yst-pb-6",items:t})})]})})})},el=({className:e=""})=>{const t=(0,a.useCallback)(()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()},[]),s=fi("selectLink",[],"https://yoa.st/general-error-support"),r=vt();return(0,Qt.jsx)(l.Paper,{className:e,children:(0,Qt.jsx)(os,{error:r,children:(0,Qt.jsx)(os.HorizontalButtons,{handleRefreshClick:t,supportLink:s})})})};el.propTypes={className:Jt().string};var tl={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},sl=function(e){var t=e.message,s=e["aria-live"];return u().createElement("div",{style:tl,role:"log","aria-live":s},t||"")};sl.propTypes={};const rl=sl;function nl(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}var ol=function(e){function t(){var s,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return s=r=nl(this,e.call.apply(e,[this].concat(o))),r.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},nl(r,s)}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),t.getDerivedStateFromProps=function(e,t){var s=t.oldPolitemessage,r=t.oldPoliteMessageId,n=t.oldAssertiveMessage,o=t.oldAssertiveMessageId,a=e.politeMessage,i=e.politeMessageId,l=e.assertiveMessage,c=e.assertiveMessageId;return s!==a||r!==i?{politeMessage1:t.setAlternatePolite?"":a,politeMessage2:t.setAlternatePolite?a:"",oldPolitemessage:a,oldPoliteMessageId:i,setAlternatePolite:!t.setAlternatePolite}:n!==l||o!==c?{assertiveMessage1:t.setAlternateAssertive?"":l,assertiveMessage2:t.setAlternateAssertive?l:"",oldAssertiveMessage:l,oldAssertiveMessageId:c,setAlternateAssertive:!t.setAlternateAssertive}:null},t.prototype.render=function(){var e=this.state,t=e.assertiveMessage1,s=e.assertiveMessage2,r=e.politeMessage1,n=e.politeMessage2;return u().createElement("div",null,u().createElement(rl,{"aria-live":"assertive",message:t}),u().createElement(rl,{"aria-live":"assertive",message:s}),u().createElement(rl,{"aria-live":"polite",message:r}),u().createElement(rl,{"aria-live":"polite",message:n}))},t}(d.Component);ol.propTypes={};const al=ol;function il(){console.warn("Announcement failed, LiveAnnouncer context is missing")}const ll=u().createContext({announceAssertive:il,announcePolite:il}),cl=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=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,e.call(this,s));return r.announcePolite=function(e,t){r.setState({announcePoliteMessage:e,politeMessageId:t||""})},r.announceAssertive=function(e,t){r.setState({announceAssertiveMessage:e,assertiveMessageId:t||""})},r.state={announcePoliteMessage:"",politeMessageId:"",announceAssertiveMessage:"",assertiveMessageId:"",updateFunctions:{announcePolite:r.announcePolite,announceAssertive:r.announceAssertive}},r}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),t.prototype.render=function(){var e=this.state,t=e.announcePoliteMessage,s=e.politeMessageId,r=e.announceAssertiveMessage,n=e.assertiveMessageId,o=e.updateFunctions;return u().createElement(ll.Provider,{value:o},this.props.children,u().createElement(al,{assertiveMessage:r,assertiveMessageId:n,politeMessage:t,politeMessageId:s}))},t}(d.Component);var dl=s(8140),ul=s.n(dl);function pl(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}var ml=function(e){function t(){var s,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,o=Array(n),a=0;a<n;a++)o[a]=arguments[a];return s=r=pl(this,e.call.apply(e,[this].concat(o))),r.announce=function(){var e=r.props,t=e.message,s=e["aria-live"],n=e.announceAssertive,o=e.announcePolite;"assertive"===s&&n(t||"",ul()()),"polite"===s&&o(t||"",ul()())},pl(r,s)}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),t.prototype.componentDidMount=function(){this.announce()},t.prototype.componentDidUpdate=function(e){this.props.message!==e.message&&this.announce()},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.clearOnUnmount,s=e.announceAssertive,r=e.announcePolite;!0!==t&&"true"!==t||(s(""),r(""))},t.prototype.render=function(){return null},t}(d.Component);ml.propTypes={};const hl=ml;var fl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},yl=function(e){return u().createElement(ll.Consumer,null,function(t){return u().createElement(hl,fl({},t,e))})};yl.propTypes={};const gl=yl;const vl=({children:e,title:t,description:s=null})=>{const r=(0,Wt.sprintf)(/* translators: 1: Settings' section title, 2: Yoast SEO */ /* translators: 1: Settings' section title, 2: Yoast SEO */
(0,Wt.__)("%1$s Dashboard - %2$s","wordpress-seo"),t,"Yoast SEO");return(0,Qt.jsxs)(cl,{children:[(0,Qt.jsx)(gl,{message:r,"aria-live":"polite"}),(0,Qt.jsx)(Xs.Helmet,{children:(0,Qt.jsx)("title",{children:"Dashboard"})}),(0,Qt.jsx)("header",{className:"yst-p-8 yst-border-b yst-border-slate-200",children:(0,Qt.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,Qt.jsx)(l.Title,{children:t}),s&&(0,Qt.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:s})]})}),e]})};var bl,xl;function wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)({}).hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},wl.apply(null,arguments)}vl.propTypes={children:Jt().node.isRequired,title:Jt().string.isRequired,description:Jt().node};const Sl=e=>d.createElement("svg",wl({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),bl||(bl=d.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),xl||(xl=d.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"}))),_l=((0,Wt.__)("E.g. https://www.facebook.com/yoast","wordpress-seo"),(0,Wt.__)("E.g. https://www.instagram.com/yoast","wordpress-seo"),(0,Wt.__)("E.g. https://www.linkedin.com/yoast","wordpress-seo"),(0,Wt.__)("E.g. https://www.myspace.com/yoast","wordpress-seo"),(0,Wt.__)("E.g. https://www.pinterest.com/yoast","wordpress-seo"),(0,Wt.__)("E.g. https://www.soundcloud.com/yoast","wordpress-seo"),(0,Wt.__)("E.g. https://www.tumblr.com/yoast","wordpress-seo"),(0,Wt.__)("E.g. https://www.twitter.com/yoast","wordpress-seo"),(0,Wt.__)("E.g. https://www.youtube.com/yoast","wordpress-seo"),(0,Wt.__)("E.g. https://www.wikipedia.com/yoast","wordpress-seo"),e=>`error-${e}`),El=(e,{isVisible:t})=>t?{"aria-invalid":!0,"aria-describedby":_l(e)}:{};function jl({active:e,selected:t}){return Is()("yst-relative yst-cursor-default yst-select-none yst-py-2 yst-ps-3 yst-pe-9 yst-my-0",t&&"yst-bg-primary-500 yst-text-white",e&&!t&&"yst-bg-primary-200 yst-text-slate-700",!e&&!t&&"yst-text-slate-700")}function kl(e,t){const s=function(e,t){return e.includes(t)?[...e]:[...e,t]}(e.editedSteps,t);return{...e,editedSteps:s}}function Cl(e,t){let s=(0,c.cloneDeep)(e);switch(t.type){case"SET_COMPANY_OR_PERSON":return s=kl(s,2),s.companyOrPerson=t.payload,s.companyOrPersonLabel=s.companyOrPersonOptions.filter(e=>e.value===t.payload).pop().label,s;case"CHANGE_COMPANY_NAME":return s=kl(s,2),s.companyName=t.payload,s;case"SET_COMPANY_LOGO":return s=kl(s,2),s.companyLogo=t.payload.url,s.companyLogoId=t.payload.id,s;case"REMOVE_COMPANY_LOGO":return s=kl(s,2),s.companyLogo="",s.companyLogoId="",s;case"CHANGE_WEBSITE_NAME":return s=kl(s,2),s.websiteName=t.payload,s;case"SET_PERSON_LOGO":return s=kl(s,2),s.personLogo=t.payload.url,s.personLogoId=t.payload.id,s;case"REMOVE_PERSON_LOGO":return s=kl(s,2),s.personLogo="",s.personLogoId="",s;case"SET_PERSON":return s=kl(s,2),s.personId=t.payload.value,s.personName=t.payload.label,s;case"SET_CAN_EDIT_USER":return s=kl(s,2),s.canEditUser=!0===t.payload?1:0,s;case"CHANGE_SOCIAL_PROFILE":return s=kl(s,3),s.socialProfiles[t.payload.socialMedium]=t.payload.value,s.errorFields=s.errorFields.filter(e=>"facebookUrl"===t.payload.socialMedium?"facebook_site"!==e:"twitterUsername"!==t.payload.socialMedium||"twitter_site"!==e),s;case"CHANGE_OTHERS_SOCIAL_PROFILE":return s=kl(s,3),s.socialProfiles.otherSocialUrls[t.payload.index]=t.payload.value,s.errorFields=s.errorFields.filter(e=>e!==`other_social_urls-${t.payload.index}`),s;case"ADD_OTHERS_SOCIAL_PROFILE":return s=kl(s,3),s.socialProfiles.otherSocialUrls=[...s.socialProfiles.otherSocialUrls,t.payload.value],s;case"REMOVE_OTHERS_SOCIAL_PROFILE":return s=kl(s,3),s.socialProfiles.otherSocialUrls.splice(t.payload.index,1),s.errorFields=(r=s.errorFields,n=t.payload.index,r.map(e=>{const t=parseInt(e.replace("other_social_urls-",""),10);return t===n?"remove":t>n?"other_social_urls-"+(t-1):e}).filter(e=>"remove"!==e)),s;case"SET_ERROR_FIELDS":return s.errorFields=t.payload,s;case"SET_STEP_ERROR":return s.stepErrors[t.payload.step]=t.payload.message,s;case"REMOVE_STEP_ERROR":return s.stepErrors=(0,c.pickBy)(s.stepErrors,(e,s)=>s!==t.payload),s;case"SET_TRACKING":return s=kl(s,4),s.tracking=t.payload,s;default:return s}var r,n}var Rl=s(5582),Tl=s.n(Rl);const Ol=({items:e,onAddProfile:t,onRemoveProfile:s,onChangeProfile:r,errorFields:n=[],fieldType:o,addButtonChildren:i=(0,Wt.__)("Add another profile","wordpress-seo")})=>{const c=(0,a.useCallback)(e=>{s(parseInt(e.currentTarget.dataset.index,10))},[s]);return(0,Qt.jsxs)("div",{children:[e.map((e,t)=>(0,Qt.jsx)("div",{children:(0,Qt.jsxs)("div",{className:"yst-w-full yst-flex yst-items-start yst-mt-4",children:[(0,Qt.jsx)(o,{className:"yst-grow",label:(0,Wt.__)("Other social profile","wordpress-seo"),id:`social-input-other-url-${t}`,value:e,socialMedium:"other",index:t,onChange:r,placeholder:(0,Wt.__)("E.g. https://social-platform.com/yoast","wordpress-seo"),feedback:{type:"error",isVisible:n.includes("other_social_urls-"+t),message:[(0,Wt.__)("Could not save this value. Please check the URL.","wordpress-seo")]}}),(0,Qt.jsxs)("button",{type:"button",className:"yst-mt-[27.5px] yst-ml-2 yst-p-3 yst-text-slate-500 yst-rounded-md hover:yst-text-primary-500 focus:yst-text-primary-500 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-primary-500 yst-no-underline;",id:`remove-profile-${t}`,"data-index":t,onClick:c,children:[(0,Qt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,Wt.__)("Delete item","wordpress-seo")}),(0,Qt.jsx)(vo(),{className:"yst-w-5 yst-h-5"})]})]})},`url-${t}`)),(0,Qt.jsxs)(l.Button,{id:"add-profile",variant:"secondary",className:"yst-items-center yst-mt-8",onClick:t,"data-hiive-event-name":"clicked_add_profile",children:[(0,Qt.jsx)(Tl(),{className:"yst-w-5 yst-h-5 yst-me-1 yst-text-slate-400"}),i]})]})};Ol.propTypes={fieldType:Jt().elementType.isRequired,items:Jt().array.isRequired,onAddProfile:Jt().func.isRequired,onRemoveProfile:Jt().func.isRequired,onChangeProfile:Jt().func.isRequired,errorFields:Jt().array,addButtonChildren:Jt().node};const Nl=Ol;var Pl=s(7651),Ll=s.n(Pl);const Il=({texts:e,id:t,as:s="p",...r})=>{const n=(0,a.useMemo)(()=>(0,c.last)(e),[e]);return(0,Qt.jsx)(s,{id:t,...r,children:e.map((e,s)=>(0,Qt.jsxs)(a.Fragment,{children:[e,n!==e&&(0,Qt.jsx)("br",{})]},`${t}-text-${s}`))})};Il.propTypes={texts:Jt().arrayOf(Jt().string).isRequired,id:Jt().string.isRequired,as:Jt().oneOfType([Jt().string,Jt().elementType])};const Al=Il;function Ml({hasError:e=!1,hasSuccess:t=!1}){return e?(0,Qt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-3",children:(0,Qt.jsx)(Ll(),{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"})}):t?(0,Qt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-3",children:(0,Qt.jsx)(cs(),{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-emerald-600"})}):null}function Dl({className:e="",id:t,label:s="",description:r=null,value:n="",onChange:o,placeholder:i="",feedback:l={message:[],isVisible:!1},type:c="text",...d}){const u=c||"text",p=(0,a.useMemo)(()=>l.isVisible&&"error"===l.type,[l.isVisible,l.type]),m=(0,a.useMemo)(()=>l.isVisible&&"success"===l.type,[l.isVisible,l.type]);return(0,Qt.jsxs)("div",{className:e,children:[s&&(0,Qt.jsx)("label",{className:"yst-block yst-mb-2 yst-font-medium yst-text-slate-800",htmlFor:t,children:s}),(0,Qt.jsxs)("div",{className:"yst-relative",children:[(0,Qt.jsx)("input",{id:t,type:u,value:n,className:Is()("yst-block yst-w-full yst-h-[40px] yst-input focus:yst-ring-1",{"yst-border-red-300 yst-text-red-900 focus:yst-ring-red-500 focus:yst-border-red-500":p,"yst-border-emerald-600 yst-text-slate-700 focus:yst-ring-emerald-600 focus:yst-border-emerald-600":m,"yst-text-slate-700 yst-border-slate-300 focus:yst-ring-primary-500 focus:yst-border-primary-500":!p&&!m}),onChange:o,placeholder:i,...El(t,l),...d}),(0,Qt.jsx)(Ml,{hasError:p,hasSuccess:m})]}),l.isVisible&&(0,Qt.jsx)(Al,{id:`${p?"error-":"success-"}${t}`,className:Is()("yst-mt-2 yst-text-sm",{"yst-text-red-600":p,"yst-text-emerald-600":m}),texts:l.message}),r]})}function Fl({id:e,onChange:t,socialMedium:s="",isDisabled:r=!1,...n}){const o=(0,a.useCallback)(e=>{t(e.target.value,"other"===s?n.index:s)},[s,n.index]);return(0,Qt.jsx)(Dl,{onChange:o,disabled:r,id:e,...n})}function zl({socialProfiles:e,errorFields:t=[],dispatch:s}){const r=(0,a.useCallback)((e,t)=>{s({type:"CHANGE_SOCIAL_PROFILE",payload:{socialMedium:t,value:e}})},[]),n=(0,a.useCallback)((e,t)=>{s({type:"CHANGE_OTHERS_SOCIAL_PROFILE",payload:{index:t,value:e}})},[]),o=(0,a.useCallback)(()=>{s({type:"ADD_OTHERS_SOCIAL_PROFILE",payload:{value:""}})},[]),i=(0,a.useCallback)(e=>{s({type:"REMOVE_OTHERS_SOCIAL_PROFILE",payload:{index:e}})},[]);return(0,Qt.jsx)(Ul,{socialProfiles:e,onChangeHandler:r,onChangeOthersHandler:n,onAddProfileHandler:o,onRemoveProfileHandler:i,errorFields:t})}function Ul({socialProfiles:e,onChangeHandler:t,onChangeOthersHandler:s,onAddProfileHandler:r,onRemoveProfileHandler:n,errorFields:o}){return(0,Qt.jsxs)("div",{id:"social-input-section",children:[(0,Qt.jsx)(Fl,{className:"yst-mt-4",label:(0,Wt.__)("Facebook","wordpress-seo"),id:"social-input-facebook-url",value:e.facebookUrl,socialMedium:"facebookUrl",onChange:t,placeholder:(0,Wt.__)("E.g. https://facebook.com/yoast","wordpress-seo"),feedback:{message:[(0,Wt.__)("Could not save this value. Please check the URL.","wordpress-seo")],isVisible:o.includes("facebook_site"),type:"error"}}),(0,Qt.jsx)(Fl,{className:"yst-mt-4",label:(0,Wt.__)("X","wordpress-seo"),id:"social-input-twitter-url",value:e.twitterUsername,socialMedium:"twitterUsername",onChange:t,placeholder:(0,Wt.__)("E.g. https://x.com/yoast","wordpress-seo"),feedback:{message:[(0,Wt.__)("Could not save this value. Please check the URL or username.","wordpress-seo")],isVisible:o.includes("twitter_site"),type:"error"}}),(0,Qt.jsx)(Nl,{items:e.otherSocialUrls,onAddProfile:r,onRemoveProfile:n,onChangeProfile:s,errorFields:o,fieldType:Fl})]})}Ml.propTypes={hasError:Yt.PropTypes.bool,hasSuccess:Yt.PropTypes.bool},Dl.propTypes={className:Yt.PropTypes.string,id:Yt.PropTypes.string.isRequired,label:Yt.PropTypes.string,description:Yt.PropTypes.node,value:Yt.PropTypes.string,onChange:Yt.PropTypes.func.isRequired,placeholder:Yt.PropTypes.string,feedback:Yt.PropTypes.shape({type:Yt.PropTypes.string,message:Yt.PropTypes.array,isVisible:Yt.PropTypes.bool}),type:Yt.PropTypes.string},Fl.propTypes={id:Jt().string.isRequired,onChange:Jt().func.isRequired,socialMedium:Jt().string,isDisabled:Jt().bool},zl.propTypes={socialProfiles:Jt().object.isRequired,dispatch:Jt().func.isRequired,errorFields:Jt().array},Ul.propTypes={socialProfiles:Jt().object.isRequired,onChangeHandler:Jt().func.isRequired,onChangeOthersHandler:Jt().func.isRequired,onAddProfileHandler:Jt().func.isRequired,onRemoveProfileHandler:Jt().func.isRequired,errorFields:Jt().array.isRequired};var Bl=s(2455),ql=s.n(Bl),$l=s(5036),Hl=s.n($l),Wl=s(9234),Vl=s.n(Wl),Gl=s(6650);function Kl({type:e="info",children:t,className:s=""}){let r,n;switch(e){case"info":r=(0,Qt.jsx)(Hl(),{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-blue-500"}),n="yst-bg-blue-100 yst-text-blue-800";break;case"warning":r=(0,Qt.jsx)(ql(),{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-yellow-500"}),n="yst-bg-yellow-100 yst-text-yellow-800";break;case"error":r=(0,Qt.jsx)(Vl(),{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-red-500"}),n="yst-bg-red-100 yst-text-red-800";break;case"success":r=(0,Qt.jsx)(cs(),{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-emerald-600"}),n="yst-bg-green-100 yst-text-green-800"}return(0,Qt.jsxs)("div",{className:Is()("yst-flex yst-p-4 yst-rounded-md",n,s),children:[r,(0,Qt.jsx)("div",{className:"yst-flex-1 yst-ms-3 yst-text-sm",children:t})]})}function Yl({id:e,isVisible:t,expandDuration:s=400,type:r="info",children:n,className:o=""}){const[i,l]=(0,a.useState)(t?"yst-opacity-100":"yst-opacity-0"),c=(0,a.useCallback)(()=>{l("yst-opacity-100")},[]);return(0,Qt.jsx)(Gl.A,{id:e,height:t?"auto":0,easing:"linear",duration:s,onAnimationEnd:c,children:(0,Qt.jsx)(Kl,{type:r,className:Is()("yst-transition-opacity yst-duration-300 yst-mt-4",i,o),children:n})})}function Jl({state:e,dispatch:t,setErrorFields:s}){const r=(0,Wt.__)("If you select a Person to represent this site, we will use the social profiles from the selected user's profile page.","wordpress-seo"),n=Vt((0,Wt.sprintf)(
// translators: %1$s is replaced by the selected person's username.
// translators: %1$s is replaced by the selected person's username.
(0,Wt.__)("You have selected the user %1$s as the person this site represents.","wordpress-seo"),`<b>${e.personName}</b>`),{b:(0,Qt.jsx)("b",{})}),o=Vt((0,Wt.sprintf)(
// translators: %1$s and %2$s is replaced by a link to the selected person's profile page.
// translators: %1$s and %2$s is replaced by a link to the selected person's profile page.
(0,Wt.__)("You can %1$supdate or add social profiles to this user profile%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,Qt.jsx)("a",{id:"yoast-configuration-person-social-profiles-user-link",href:window.wpseoScriptData.userEditUrl.replace("{user_id}",e.personId),target:"_blank",rel:"noopener noreferrer","data-hiive-event-name":"clicked_update_or_add_profile | social profiles"})}),i=(0,Wt.__)("You're not allowed to edit the social profiles of this user. Please ask this user or an admin to do this.","wordpress-seo");return["company","emptyChoice"].includes(e.companyOrPerson)?(0,Qt.jsxs)(a.Fragment,{children:[(0,Qt.jsx)("p",{children:(0,Wt.__)("Fantastic work! Add your organization's social media accounts below. This allows us to fine-tune the metadata for these platforms.","wordpress-seo")}),(0,Qt.jsx)(zl,{socialProfiles:e.socialProfiles,dispatch:t,errorFields:e.errorFields,setErrorFields:s})]}):0===e.personId?(0,Qt.jsxs)(a.Fragment,{children:[(0,Qt.jsx)("p",{children:r}),(0,Qt.jsx)(Kl,{type:"info",className:"yst-mt-5",children:
/* translators: please note that "Site representation" here refers to the name of a step in the first-time configuration,
* so this occurrence needs to be translated in the same manner as that step's heading.
*/
/* translators: please note that "Site representation" here refers to the name of a step in the first-time configuration,
* so this occurrence needs to be translated in the same manner as that step's heading.
*/
(0,Wt.__)("Please select a user in the Site representation step.","wordpress-seo")})]}):(0,Qt.jsx)(a.Fragment,{children:(0,Qt.jsxs)("p",{children:[n," ",e.canEditUser?o:i]})})}Kl.propTypes={type:Jt().oneOf(["info","warning","error","success"]),children:Jt().oneOfType([Jt().arrayOf(Jt().node),Jt().node]).isRequired,className:Jt().string},Yl.propTypes={id:Jt().string.isRequired,isVisible:Jt().bool.isRequired,type:Jt().oneOf(["info","warning","error","success"]),children:Jt().oneOfType([Jt().arrayOf(Jt().node),Jt().node]).isRequired,expandDuration:Jt().number,className:Jt().string},Jl.propTypes={state:Jt().object.isRequired,dispatch:Jt().func.isRequired,setErrorFields:Jt().func.isRequired};const Ql={slideDuration:500,fadeDuration:200,delayBeforeOpening:900,delayBeforeFadingIn:1400,delayBeforeClosing:200},Zl={fadeDuration:"yst-duration-200",slideDuration:"yst-duration-500",delayBeforeOpening:"yst-delay-[900ms]",delayUntilStepFaded:"yst-delay-200"};var Xl=s(1878),ec=s.n(Xl);const{slideDuration:tc,delayUntilStepFaded:sc}=Zl,rc=`yst-transition-opacity ${tc} yst-absolute yst-inset-0 yst-border-2 yst-flex yst-items-center yst-justify-center yst-rounded-full`;function nc(e){return`${rc} ${e?"yst-opacity-100":`${sc} yst-opacity-0`}`}function oc({isVisible:e=!0}){return(0,Qt.jsx)("span",{className:`yst-bg-white yst-border-primary-500 ${nc(e)}`,children:(0,Qt.jsx)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-primary-500"})})}function ac({isVisible:e=!0}){return(0,Qt.jsx)("span",{className:`yst-bg-primary-500 yst-border-primary-500 ${nc(e)}`,children:(0,Qt.jsx)(ec(),{className:"yst-w-5 yst-h-5 yst-text-white","aria-hidden":"true"})})}function ic({isVisible:e=!0}){return(0,Qt.jsx)("span",{className:`yst-bg-white yst-border-slate-300 ${nc(e)}`,children:(0,Qt.jsx)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-transparent"})})}function lc({activationDelay:e=0,deactivationDelay:t=0,isFinished:s}){const{activeStepIndex:r,stepIndex:n,lastStepIndex:o}=bc(),i=n===o,l=r===n,[c,d]=(0,a.useState)(()=>!!l&&!i);return(0,a.useEffect)(()=>{if(l){const t=setTimeout(()=>{d(!0)},e);return()=>clearTimeout(t)}const s=setTimeout(()=>{d(!1)},t);return()=>clearTimeout(s)},[l,i,e,t]),(0,Qt.jsxs)("span",{className:"yst-relative yst-z-10 yst-w-8 yst-h-8 yst-rounded-full",children:[(0,Qt.jsx)(ic,{isVisible:!0}),(0,Qt.jsx)(ac,{isVisible:s}),(0,Qt.jsx)(oc,{isVisible:c&&!i})]})}function cc(e,t,s){return t&&!s?"yst-text-primary-500":e?"yst-text-slate-900":"yst-text-slate-600"}function dc({name:e,description:t="",isFinished:s,children:r=null}){const{stepIndex:n,activeStepIndex:o,lastStepIndex:i}=bc(),l=o===n,c=i===n,[d,u]=(0,a.useState)(cc(s,l,c));return(0,a.useEffect)(()=>{if(l){const e=cc(s,l,c),t=setTimeout(()=>u(e),Ql.delayBeforeOpening);return()=>clearTimeout(t)}const e=cc(s,l,c);u(e)},[o,s,c,cc]),(0,Qt.jsxs)("div",{className:"yst-relative yst-flex yst-items-center yst-group","aria-current":l?"step":null,children:[(0,Qt.jsx)("span",{className:"yst-flex yst-items-center","aria-hidden":l?"true":null,children:(0,Qt.jsx)(lc,{activationDelay:Ql.delayBeforeOpening,deactivationDelay:0,isFinished:s})}),(0,Qt.jsxs)("span",{className:"yst-ms-4 yst-min-w-0 yst-flex yst-flex-col",children:[(0,Qt.jsx)("span",{className:`yst-transition-colors yst-duration-500 yst-text-xs yst-font-[650] yst-tracking-wide yst-uppercase ${d}`,children:e}),t&&(0,Qt.jsx)("span",{className:"yst-text-sm yst-text-slate-600",children:t})]}),r]})}oc.propTypes={isVisible:Jt().bool},ac.propTypes={isVisible:Jt().bool},ic.propTypes={isVisible:Jt().bool},lc.propTypes={isFinished:Jt().bool.isRequired,activationDelay:Jt().number,deactivationDelay:Jt().number},dc.propTypes={name:Jt().string.isRequired,isFinished:Jt().bool.isRequired,description:Jt().string,children:Jt().node};const{slideDuration:uc,delayBeforeOpening:pc,delayBeforeFadingIn:mc,delayBeforeClosing:hc}=Ql,{fadeDuration:fc,delayUntilStepFaded:yc,slideDuration:gc}=Zl,vc=(0,a.createContext)();function bc(){const e=(0,a.useContext)(vc);if(!e)throw new Error("Stepper compound components cannot be rendered outside the Stepper component");return e}function xc({beforeGo:e=null,children:t=(0,Qt.jsx)(a.Fragment,{children:(0,Wt.__)("Continue","wordpress-seo")}),destination:s=1,...r}){const{stepIndex:n,setActiveStepIndex:o,lastStepIndex:i}=bc(),c=(0,a.useCallback)(()=>{o("string"==typeof s?"last"===s?i:0:n+s)},[n,i,o,s]),d=(0,a.useCallback)(async()=>{let t=!0;e&&(t=!1,t=await e()),t&&c()},[c,e]);return(0,Qt.jsx)(l.Button,{onClick:d,...r,children:t})}function wc({children:e=(0,Qt.jsx)(a.Fragment,{children:(0,Wt.__)("Edit","wordpress-seo")}),...t}){const{stepIndex:s,setActiveStepIndex:r}=bc(),n=(0,a.useCallback)(()=>{r(s)},[r,s]);return(0,Qt.jsx)(l.Button,{onClick:n,variant:"secondary",size:"small",...t,children:e})}function Sc({children:e}){const{lastStepIndex:t,stepIndex:s,activeStepIndex:r}=bc();return(0,Qt.jsxs)(a.Fragment,{children:[s!==t&&(0,Qt.jsxs)(a.Fragment,{children:[(0,Qt.jsx)("div",{className:"yst--ms-px yst-absolute yst-start-4 yst-w-0.5 yst-h-full yst-bg-slate-300 yst--bottom-6","aria-hidden":"true"}),(0,Qt.jsx)("div",{className:Is()("yst-h-12 yst-transition-transform yst-ease-linear",yc,gc,s<r?"yst-scale-y-1":"yst-scale-y-0","yst-origin-top yst--ms-px yst-absolute yst-start-4 yst-w-0.5 yst-bg-primary-500 yst-top-8"),"aria-hidden":"true"})]}),e]})}function _c({id:e,message:t,className:s=""}){return(0,Qt.jsx)(Yl,{id:e,type:"error",isVisible:!!t,className:s,children:(0,Wt.sprintf)(/* translators: %1$s expands to the error message returned by the server */ /* translators: %1$s expands to the error message returned by the server */
(0,Wt.__)("An error has occurred: %1$s","wordpress-seo"),t)})}function Ec({children:e}){const{activeStepIndex:t,stepIndex:s}=bc(),r=t===s,[n,o]=(0,a.useState)(r?"auto":0),[i,l]=(0,a.useState)(!r);return(0,a.useEffect)(()=>{r?(o("auto"),setTimeout(()=>l(!1),mc)):(l(!0),o(0))},[r]),(0,Qt.jsx)(a.Fragment,{children:(0,Qt.jsx)(Gl.A,{id:`content-${s}`,delay:0===n?hc:pc,height:n,easing:"ease-in-out",duration:uc,children:(0,Qt.jsx)("div",{className:Is()("yst-transition-opacity yst-relative yst-ms-12 yst-mt-4 yst-pb-1 yst-max-w-xl",fc,i?"yst-opacity-0 yst-pointer-events-none":"yst-opacity-100"),children:e})})})}function jc({children:e,setActiveStepIndex:t,activeStepIndex:s,isStepperFinished:r=!1}){return(0,Qt.jsx)("ol",{children:e.map((n,o)=>(0,Qt.jsx)("li",{className:(o===e.length-1?"":"yst-pb-8")+" yst-mb-0 yst-relative yst-max-w-none",children:(0,Qt.jsx)(vc.Provider,{value:{stepIndex:o,activeStepIndex:s,setActiveStepIndex:t,lastStepIndex:e.length-1,isStepperFinished:r},children:n})},`${n.props.name}-${o}`))})}xc.propTypes={beforeGo:Jt().func,children:Jt().node,destination:Jt().oneOfType([Jt().number,Jt().oneOf(["first","last"])])},wc.propTypes={children:Jt().node},Sc.propTypes={children:Jt().node.isRequired},_c.propTypes={id:Jt().string.isRequired,message:Jt().string.isRequired,className:Jt().string},Ec.propTypes={children:Jt().node.isRequired},jc.propTypes={setActiveStepIndex:Jt().func.isRequired,activeStepIndex:Jt().number.isRequired,isStepperFinished:Jt().bool,children:Jt().node.isRequired},Sc.Content=Ec,Sc.Error=_c,Sc.Header=dc,Sc.GoButton=xc,Sc.EditButton=wc;const kc="optimizeSeoData",Cc="siteRepresentation",Rc="socialProfiles",Tc="personalPreferences",Oc={[kc]:"data optimization",[Cc]:"site representation",[Rc]:"social profiles",[Tc]:"personal preferences"};function Nc({stepId:e,additionalClasses:t="",beforeGo:s=null,children:r=null,...n}){return(0,Qt.jsx)(Sc.GoButton,{id:`button-${e}-continue`,variant:"primary",className:t,destination:1,beforeGo:s,"data-hiive-event-name":`clicked_continue | ${Oc[e]}`,...n,children:r})}function Pc({stepId:e,additionalClasses:t="",isVisible:s=!0,beforeGo:r=null,children:n=null,...o}){const a=`yst-transition-opacity ${Zl.slideDuration} yst-ease-out ${s?"yst-opacity-100":`${Zl.delayBeforeOpening} yst-opacity-0 yst-pointer-events-none yst-hidden`}`;return(0,Qt.jsx)(Sc.GoButton,{id:`button-${e}-edit`,variant:"secondary",size:"small",className:Is()(a,t),destination:0,beforeGo:r,"data-hiive-event-name":`clicked_edit | ${Oc[e]}`,...o,children:n})}function Lc({stepId:e,additionalClasses:t="",beforeGo:s=null,children:r=null,...n}){return(0,Qt.jsx)(Sc.GoButton,{id:`button-${e}-back`,variant:"secondary",className:t,destination:-1,beforeGo:s,"data-hiive-event-name":`clicked_go_back | ${Oc[e]}`,...n,children:r})}function Ic({stepId:e,beforeContinue:t=null,continueLabel:s=(0,Wt.__)("Continue","wordpress-seo"),beforeBack:r=null,backLabel:n=(0,Wt.__)("Go back","wordpress-seo")}){return(0,Qt.jsxs)("div",{className:"yst-mt-12",children:[(0,Qt.jsx)(Nc,{stepId:e,beforeGo:t,children:s}),(0,Qt.jsx)(Lc,{stepId:e,additionalClasses:"yst-ms-3",beforeGo:r,children:n})]})}function Ac({stepId:e,stepperFinishedOnce:t,saveFunction:s,setEditState:r}){const n=(0,a.useCallback)(async()=>{const e=await s();return r(!e),e},[s]);return t?(0,Qt.jsx)(Sc.GoButton,{id:`button-${e}-go`,variant:"primary",className:"yst-mt-12",destination:"last",beforeGo:n,"data-hiive-event-name":`clicked_save_changes | ${Oc[e]}`,children:(0,Wt.__)("Save changes","wordpress-seo")}):(0,Qt.jsx)(Ic,{stepId:e,beforeContinue:s,continueLabel:(0,Wt.__)("Save and continue","wordpress-seo")})}Nc.propTypes={stepId:Jt().string.isRequired,additionalClasses:Jt().string,beforeGo:Jt().func,children:Jt().node},Pc.propTypes={stepId:Jt().string.isRequired,additionalClasses:Jt().string,isVisible:Jt().bool,beforeGo:Jt().func,children:Jt().node},Lc.propTypes={stepId:Jt().string.isRequired,additionalClasses:Jt().string,beforeGo:Jt().func,children:Jt().node},Ic.propTypes={stepId:Jt().string.isRequired,beforeContinue:Jt().func,continueLabel:Jt().string,beforeBack:Jt().func,backLabel:Jt().string},Ac.propTypes={stepId:Jt().string.isRequired,stepperFinishedOnce:Jt().bool.isRequired,saveFunction:Jt().func.isRequired,setEditState:Jt().func.isRequired};const Mc=window.yoast.helpers;class Dc extends Error{constructor(e,t,s,r,n){super(e),this.name="RequestError",this.url=t,this.method=s,this.statusCode=r,this.stackTrace=n}}const{stripTagsFromHtmlString:Fc}=Mc.strings,zc=["a","p"];function Uc({title:e,value:t=""}){return t?(0,Qt.jsxs)("p",{children:[(0,Qt.jsx)("strong",{children:e}),(0,Qt.jsx)("br",{}),t]}):null}function Bc({title:e,value:t=""}){return t?(0,Qt.jsxs)("details",{children:[(0,Qt.jsx)("summary",{children:e}),(0,Qt.jsx)("pre",{className:"yst-overflow-x-scroll yst-max-w-[500px] yst-border-px yst-p-4",children:t})]}):null}function qc({message:e,error:t,className:s=""}){return(0,Qt.jsxs)(Kl,{type:"error",className:s,children:[(0,Qt.jsx)("div",{dangerouslySetInnerHTML:{__html:Fc(e,zc)}}),(0,Qt.jsxs)("details",{children:[(0,Qt.jsx)("summary",{children:(0,Wt.__)("Error details","wordpress-seo")}),(0,Qt.jsxs)("div",{className:"yst-mt-2",children:[(0,Qt.jsx)(Uc,{title:(0,Wt.__)("Request URL","wordpress-seo"),value:t.url}),(0,Qt.jsx)(Uc,{title:(0,Wt.__)("Request method","wordpress-seo"),value:t.method}),(0,Qt.jsx)(Uc,{title:(0,Wt.__)("Status code","wordpress-seo"),value:t.statusCode}),(0,Qt.jsx)(Uc,{title:(0,Wt.__)("Error message","wordpress-seo"),value:t.message}),(0,Qt.jsx)(Bc,{title:(0,Wt.__)("Response","wordpress-seo"),value:t.parseString}),(0,Qt.jsx)(Bc,{title:(0,Wt.__)("Error stack trace","wordpress-seo"),value:t.stackTrace})]})]})]})}Uc.propTypes={title:Jt().string.isRequired,value:Jt().any},Bc.propTypes={title:Jt().string.isRequired,value:Jt().string},qc.propTypes={message:Jt().string.isRequired,error:Jt().oneOfType([Jt().instanceOf(Error),Jt().instanceOf(Dc)]).isRequired,className:Jt().string};class $c extends Error{constructor(e,t){super(e),this.name="ParseError",this.parseString=t}}const Hc="idle",Wc="in_progress",Vc="errored",Gc="completed";class Kc extends a.Component{constructor(e){super(e),this.settings=yoastIndexingData,this.state={state:Hc,processed:0,error:null,amount:parseInt(this.settings.amount,10),firstTime:"1"===this.settings.firstTime},this.startIndexing=this.startIndexing.bind(this),this.stopIndexing=this.stopIndexing.bind(this)}async doIndexingRequest(e,t){const s=await fetch(e,{method:"POST",headers:{"X-WP-Nonce":t}}),r=await s.text();let n;try{n=JSON.parse(r)}catch(e){throw new $c("Error parsing the response to JSON.",r)}if(!s.ok){const t=n.data?n.data.stackTrace:"";throw new Dc(n.message,e,"POST",s.status,t)}return n}async doPreIndexingAction(e){"function"==typeof this.props.preIndexingActions[e]&&await this.props.preIndexingActions[e](this.settings)}async doPostIndexingAction(e,t){"function"==typeof this.props.indexingActions[e]&&await this.props.indexingActions[e](t.objects,this.settings)}async doIndexing(e){let t=this.settings.restApi.root+this.settings.restApi.indexing_endpoints[e];for(;this.isState(Wc)&&!1!==t;)try{await this.doPreIndexingAction(e);const s=await this.doIndexingRequest(t,this.settings.restApi.nonce);await this.doPostIndexingAction(e,s),(0,a.flushSync)(()=>{this.setState(e=>({processed:e.processed+s.objects.length,firstTime:!1}))}),t=s.next_url}catch(e){(0,a.flushSync)(()=>{this.setState({state:Vc,error:e,firstTime:!1})})}}async index(){for(const e of Object.keys(this.settings.restApi.indexing_endpoints))await this.doIndexing(e);this.isState(Vc)||this.isState(Hc)||this.completeIndexing()}async startIndexing(){this.setState({processed:0,state:Wc},this.index)}completeIndexing(){this.setState({state:Gc})}stopIndexing(){this.setState(e=>({state:Hc,processed:0,amount:e.amount-e.processed}))}componentDidMount(){var e,t;if(!this.settings.disabled&&(this.props.indexingStateCallback(0===this.state.amount?"already_done":this.state.state),"true"===new URLSearchParams(window.location.search).get("start-indexation"))){const s=function(e){const t=new URL(e);return t.searchParams.delete("start-indexation"),t.href}(window.location.href);e=document.title,t=s,window.history.pushState(null,e,t),this.startIndexing()}}componentDidUpdate(e,t){this.state.state!==t.state&&this.props.indexingStateCallback(this.state.state)}isState(e){return this.state.state===e}renderFirstIndexationNotice(){return(0,Qt.jsx)(Kl,{type:"info",className:"yst-mt-6",children:(0,Wt.__)("This feature includes and replaces the Text Link Counter and Internal Linking Analysis","wordpress-seo")})}renderStartButton(){return(0,Qt.jsx)(l.Button,{variant:"secondary",onClick:this.startIndexing,id:"indexation-data-optimization","data-hiive-event-name":"clicked_start_data_optimization",children:(0,Wt.__)("Start SEO data optimization","wordpress-seo")})}renderStopButton(){return(0,Qt.jsx)(l.Button,{variant:"secondary",onClick:this.stopIndexing,children:(0,Wt.__)("Stop SEO data optimization","wordpress-seo")})}renderDisabledTool(){return(0,Qt.jsxs)(a.Fragment,{children:[(0,Qt.jsx)("p",{children:(0,Qt.jsx)(l.Button,{variant:"secondary",disabled:!0,id:"indexation-data-optimization",children:(0,Wt.__)("Start SEO data optimization","wordpress-seo")})}),(0,Qt.jsx)(Kl,{type:"info",className:"yst-mt-6",children:(0,Wt.__)("SEO data optimization is disabled for non-production environments.","wordpress-seo")})]})}renderProgressBar(){let e=0;return this.isState(Gc)&&(e=100),this.isState(Wc)&&(e=this.state.processed/parseInt(this.state.amount,10)*100),(0,Qt.jsx)("div",{className:"yst-w-full yst-bg-slate-200 yst-rounded-full yst-h-2.5 yst-mb-4",children:(0,Qt.jsx)("div",{className:"yst-transition-[width] yst-ease-linear yst-bg-primary-500 yst-h-2.5 yst-rounded-full",style:{width:`${e}%`}})})}renderCaption(){return(0,Qt.jsx)(Gl.A,{id:"optimization-in-progress-text",height:this.isState(Wc)?"auto":0,easing:"linear",duration:300,children:(0,Qt.jsx)("p",{className:"yst-text-sm yst-italic yst-mb-4 yst-mt-4",children:(0,Wt.__)("SEO data optimization is running… You can safely move on to the next steps of this configuration.","wordpress-seo")})})}renderErrorAlert(){return(0,Qt.jsx)(qc,{message:yoastIndexingData.errorMessage,error:this.state.error,className:"yst-mb-4"})}render(){return this.settings.disabled?this.renderDisabledTool():(0,Qt.jsxs)("div",{className:"yst-relative",children:[this.props.children,(0,Qt.jsxs)(Xa,{unmount:!1,show:this.isState(Vc)||this.isState(Wc)||this.isState(Hc)&&this.state.amount>0,leave:"yst-transition-opacity yst-duration-1000",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",children:[this.renderProgressBar(),this.isState(Vc)&&this.renderErrorAlert(),this.isState(Wc)?this.renderStopButton():this.renderStartButton(),this.renderCaption(),this.isState(Hc)&&this.state.firstTime&&this.renderFirstIndexationNotice()]})]})}}Kc.propTypes={indexingActions:Jt().object,preIndexingActions:Jt().object,indexingStateCallback:Jt().func,children:Jt().node},Kc.defaultProps={indexingActions:{},preIndexingActions:{},indexingStateCallback:()=>{},children:null};const Yc=Kc;function Jc({indexingStateCallback:e,indexingState:t,isStepperFinished:s=!1}){return(0,Qt.jsx)(Yc,{preIndexingActions:window.yoast.indexing.preIndexingActions,indexingActions:window.yoast.indexing.indexingActions,indexingStateCallback:e,children:(0,Qt.jsx)(Xa,{unmount:!1,show:["completed","already_done"].includes(t),enter:"yst-transition-opacity yst-duration-1000",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",children:(0,Qt.jsx)(Kl,{type:"success",children:"already_done"!==t||s?(0,Wt.__)("We've successfully analyzed your site & optimized your SEO data!","wordpress-seo"):(0,Wt.__)("We've already successfully analyzed your site. You can move on to the next step.","wordpress-seo")})})})}function Qc({indexingState:e,setIndexingState:t,showRunIndexationAlert:s=!1,isStepperFinished:r=!1}){return(0,Qt.jsxs)("div",{className:"yst-@container",children:[(0,Qt.jsxs)("div",{className:"yst-mb-4",children:[(0,Qt.jsx)("p",{className:"yst-text-sm yst-whitespace-pre-line",children:(0,Wt.__)("Let's start by running the SEO data optimization. That means we'll scan your site and create a database with optimized SEO data. It won't change any content or settings on your site and you don't need to do anything, just hit start!","wordpress-seo")}),(0,Qt.jsx)("p",{className:"yst-text-sm yst-whitespace-pre-line yst-mt-4",children:Vt((0,Wt.sprintf)(/* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to closing 'span' HTML tag. */ /* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to closing 'span' HTML tag. */
(0,Wt.__)("%1$sNote%2$s: If you have a lot of content, this optimization could take a moment. But trust us, it's worth it!","wordpress-seo"),"<span>","</span>"),{span:(0,Qt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"})})})]}),(0,Qt.jsx)("div",{id:"yoast-configuration-indexing-container",className:"indexation-container",children:(0,Qt.jsx)(Jc,{indexingStateCallback:t,indexingState:e,isStepperFinished:r})}),(0,Qt.jsx)(Yl,{id:"indexation-alert",isVisible:"idle"===e&&s,expandDuration:400,type:"info",children:(0,Wt.__)("Be aware that you should run the SEO data optimization for this configuration to take maximum effect.","wordpress-seo")})]})}function Zc(e,t){let[s,r]=(0,d.useState)(e),n=Ta(e);return Ca(()=>r(n.current),[n,r,...t]),s}Jc.propTypes={indexingStateCallback:Jt().func.isRequired,indexingState:Jt().string.isRequired,isStepperFinished:Jt().bool},Qc.propTypes={indexingState:Jt().string.isRequired,setIndexingState:Jt().func.isRequired,showRunIndexationAlert:Jt().bool,isStepperFinished:Jt().bool};var Xc=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Xc||{});function ed(e,t){let s=t.resolveItems();if(s.length<=0)return null;let r=t.resolveActiveIndex(),n=null!=r?r:-1,o=(()=>{switch(e.focus){case 0:return s.findIndex(e=>!t.resolveDisabled(e));case 1:{let e=s.slice().reverse().findIndex((e,s,r)=>!(-1!==n&&r.length-s-1>=n||t.resolveDisabled(e)));return-1===e?e:s.length-1-e}case 2:return s.findIndex((e,s)=>!(s<=n||t.resolveDisabled(e)));case 3:{let e=s.slice().reverse().findIndex(e=>!t.resolveDisabled(e));return-1===e?e:s.length-1-e}case 4:return s.findIndex(s=>t.resolveId(s)===e.id);case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===o?r:o}let td=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var sd,rd=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(rd||{}),nd=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(nd||{}),od=((sd=od||{})[sd.Previous=-1]="Previous",sd[sd.Next=1]="Next",sd),ad=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ad||{});function id(e,t=0){var s;return e!==(null==(s=Ni(e))?void 0:s.body)&&ca(t,{0:()=>e.matches(td),1(){let t=e;for(;null!==t;){if(t.matches(td))return!0;t=t.parentElement}return!1}})}function ld(e,t=e=>e){return e.slice().sort((e,s)=>{let r=t(e),n=t(s);if(null===r||null===n)return 0;let o=r.compareDocumentPosition(n);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function cd(e,t,s){let r=Ta(t);(0,d.useEffect)(()=>{function t(e){r.current(e)}return document.addEventListener(e,t,s),()=>document.removeEventListener(e,t,s)},[e,s])}function dd(e,t,s=!0){let r=(0,d.useRef)(!1);function n(s,n){if(!r.current||s.defaultPrevented)return;let o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),a=n(s);if(null!==a&&a.getRootNode().contains(a)){for(let e of o){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a)||s.composed&&s.composedPath().includes(t))return}return!id(a,ad.Loose)&&-1!==a.tabIndex&&s.preventDefault(),t(s,a)}}(0,d.useEffect)(()=>{requestAnimationFrame(()=>{r.current=s})},[s]);let o=(0,d.useRef)(null);cd("mousedown",e=>{var t,s;r.current&&(o.current=(null==(s=null==(t=e.composedPath)?void 0:t.call(e))?void 0:s[0])||e.target)},!0),cd("click",e=>{!o.current||(n(e,()=>o.current),o.current=null)},!0),cd("blur",e=>n(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}["textarea","input"].join(",");var ud=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ud||{});let pd=ga(function(e,t){let{features:s=1,...r}=e;return ha({ourProps:{ref:t,"aria-hidden":!(2&~s)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~s)&&!!(2&~s)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})});function md(e={},t=null,s=[]){for(let[r,n]of Object.entries(e))fd(s,hd(t,r),n);return s}function hd(e,t){return e?e+"["+t+"]":t}function fd(e,t,s){if(Array.isArray(s))for(let[r,n]of s.entries())fd(e,hd(t,r.toString()),n);else s instanceof Date?e.push([t,s.toISOString()]):"boolean"==typeof s?e.push([t,s?"1":"0"]):"string"==typeof s?e.push([t,s]):"number"==typeof s?e.push([t,`${s}`]):null==s?e.push([t,""]):md(s,t,e)}function yd(e,t,s){let[r,n]=(0,d.useState)(s),o=void 0!==e,a=(0,d.useRef)(o),i=(0,d.useRef)(!1),l=(0,d.useRef)(!1);return!o||a.current||i.current?!o&&a.current&&!l.current&&(l.current=!0,a.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(i.current=!0,a.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[o?e:r,Na(e=>(o||n(e),null==t?void 0:t(e)))]}function gd(e){return[e.screenX,e.screenY]}function vd(){let e=(0,d.useRef)([-1,-1]);return{wasMoved(t){let s=gd(t);return(e.current[0]!==s[0]||e.current[1]!==s[1])&&(e.current=s,!0)},update(t){e.current=gd(t)}}}var bd=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(bd||{}),xd=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(xd||{}),wd=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(wd||{}),Sd=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(Sd||{});function _d(e,t=e=>e){let s=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=ld(t(e.options.slice()),e=>e.dataRef.current.domRef.current),n=s?r.indexOf(s):null;return-1===n&&(n=null),{options:r,activeOptionIndex:n}}let Ed={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:s}=e.dataRef.current,r=e.options.findIndex(e=>s(e.dataRef.current.value));return-1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var s;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=_d(e),n=ed(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:n,activationTrigger:null!=(s=t.trigger)?s:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let s=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),n=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+s).concat(e.options.slice(0,e.activeOptionIndex+s)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),o=n?e.options.indexOf(n):-1;return-1===o||o===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:o,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let s={id:t.id,dataRef:t.dataRef},r=_d(e,e=>[...e,s]);return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(s)),{...e,...r}},6:(e,t)=>{let s=_d(e,e=>{let s=e.findIndex(e=>e.id===t.id);return-1!==s&&e.splice(s,1),e});return{...e,...s,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},jd=(0,d.createContext)(null);function kd(e){let t=(0,d.useContext)(jd);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,kd),t}return t}jd.displayName="ListboxActionsContext";let Cd=(0,d.createContext)(null);function Rd(e){let t=(0,d.useContext)(Cd);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Rd),t}return t}function Td(e,t){return ca(t.type,Ed,e,t)}Cd.displayName="ListboxDataContext";let Od=d.Fragment,Nd=ga(function(e,t){let{value:s,defaultValue:r,name:n,onChange:o,by:a=(e,t)=>e===t,disabled:i=!1,horizontal:l=!1,multiple:c=!1,...u}=e;const p=l?"horizontal":"vertical";let m=Ia(t),[h=(c?[]:void 0),f]=yd(s,o,r),[y,g]=(0,d.useReducer)(Td,{dataRef:(0,d.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=(0,d.useRef)({static:!1,hold:!1}),b=(0,d.useRef)(null),x=(0,d.useRef)(null),w=(0,d.useRef)(null),S=Na("string"==typeof a?(e,t)=>{let s=a;return(null==e?void 0:e[s])===(null==t?void 0:t[s])}:a),_=(0,d.useCallback)(e=>ca(E.mode,{1:()=>h.some(t=>S(t,e)),0:()=>S(h,e)}),[h]),E=(0,d.useMemo)(()=>({...y,value:h,disabled:i,mode:c?1:0,orientation:p,compare:S,isSelected:_,optionsPropsRef:v,labelRef:b,buttonRef:x,optionsRef:w}),[h,i,c,y]);Ca(()=>{y.dataRef.current=E},[E]),dd([E.buttonRef,E.optionsRef],(e,t)=>{var s;g({type:1}),id(t,ad.Loose)||(e.preventDefault(),null==(s=E.buttonRef.current)||s.focus())},0===E.listboxState);let j=(0,d.useMemo)(()=>({open:0===E.listboxState,disabled:i,value:h}),[E,i,h]),k=Na(e=>{let t=E.options.find(t=>t.id===e);!t||L(t.dataRef.current.value)}),C=Na(()=>{if(null!==E.activeOptionIndex){let{dataRef:e,id:t}=E.options[E.activeOptionIndex];L(e.current.value),g({type:2,focus:Xc.Specific,id:t})}}),R=Na(()=>g({type:0})),T=Na(()=>g({type:1})),O=Na((e,t,s)=>e===Xc.Specific?g({type:2,focus:Xc.Specific,id:t,trigger:s}):g({type:2,focus:e,trigger:s})),N=Na((e,t)=>(g({type:5,id:e,dataRef:t}),()=>g({type:6,id:e}))),P=Na(e=>(g({type:7,id:e}),()=>g({type:7,id:null}))),L=Na(e=>ca(E.mode,{0:()=>null==f?void 0:f(e),1(){let t=E.value.slice(),s=t.findIndex(t=>S(t,e));return-1===s?t.push(e):t.splice(s,1),null==f?void 0:f(t)}})),I=Na(e=>g({type:3,value:e})),A=Na(()=>g({type:4})),M=(0,d.useMemo)(()=>({onChange:L,registerOption:N,registerLabel:P,goToOption:O,closeListbox:T,openListbox:R,selectActiveOption:C,selectOption:k,search:I,clearSearch:A}),[]),D={ref:m},F=(0,d.useRef)(null),z=Fa();return(0,d.useEffect)(()=>{!F.current||void 0!==r&&z.addEventListener(F.current,"reset",()=>{L(r)})},[F,L]),d.createElement(jd.Provider,{value:M},d.createElement(Cd.Provider,{value:E},d.createElement(_a,{value:ca(E.listboxState,{0:wa.Open,1:wa.Closed})},null!=n&&null!=h&&md({[n]:h}).map(([e,t],s)=>d.createElement(pd,{features:ud.Hidden,ref:0===s?e=>{var t;F.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...va({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})})),ha({ourProps:D,theirProps:u,slot:j,defaultTag:Od,name:"Listbox"}))))}),Pd=ga(function(e,t){var s;let r=ki(),{id:n=`headlessui-listbox-button-${r}`,...o}=e,a=Rd("Listbox.Button"),i=kd("Listbox.Button"),l=Ia(a.buttonRef,t),c=Fa(),u=Na(e=>{switch(e.key){case Ci.Space:case Ci.Enter:case Ci.ArrowDown:e.preventDefault(),i.openListbox(),c.nextFrame(()=>{a.value||i.goToOption(Xc.First)});break;case Ci.ArrowUp:e.preventDefault(),i.openListbox(),c.nextFrame(()=>{a.value||i.goToOption(Xc.Last)})}}),p=Na(e=>{e.key===Ci.Space&&e.preventDefault()}),m=Na(e=>{if(Ri(e.currentTarget))return e.preventDefault();0===a.listboxState?(i.closeListbox(),c.nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(e.preventDefault(),i.openListbox())}),h=Zc(()=>{if(a.labelId)return[a.labelId,n].join(" ")},[a.labelId,n]),f=(0,d.useMemo)(()=>({open:0===a.listboxState,disabled:a.disabled,value:a.value}),[a]);return ha({ourProps:{ref:l,id:n,type:Oi(e,a.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(s=a.optionsRef.current)?void 0:s.id,"aria-expanded":a.disabled?void 0:0===a.listboxState,"aria-labelledby":h,disabled:a.disabled,onKeyDown:u,onKeyUp:p,onClick:m},theirProps:o,slot:f,defaultTag:"button",name:"Listbox.Button"})}),Ld=ga(function(e,t){let s=ki(),{id:r=`headlessui-listbox-label-${s}`,...n}=e,o=Rd("Listbox.Label"),a=kd("Listbox.Label"),i=Ia(o.labelRef,t);Ca(()=>a.registerLabel(r),[r]);let l=Na(()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}),c=(0,d.useMemo)(()=>({open:0===o.listboxState,disabled:o.disabled}),[o]);return ha({ourProps:{ref:i,id:r,onClick:l},theirProps:n,slot:c,defaultTag:"label",name:"Listbox.Label"})}),Id=pa.RenderStrategy|pa.Static,Ad=ga(function(e,t){var s;let r=ki(),{id:n=`headlessui-listbox-options-${r}`,...o}=e,a=Rd("Listbox.Options"),i=kd("Listbox.Options"),l=Ia(a.optionsRef,t),c=Fa(),u=Fa(),p=Sa(),m=null!==p?p===wa.Open:0===a.listboxState;(0,d.useEffect)(()=>{var e;let t=a.optionsRef.current;!t||0===a.listboxState&&t!==(null==(e=Ni(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})},[a.listboxState,a.optionsRef]);let h=Na(e=>{switch(u.dispose(),e.key){case Ci.Space:if(""!==a.searchQuery)return e.preventDefault(),e.stopPropagation(),i.search(e.key);case Ci.Enter:if(e.preventDefault(),e.stopPropagation(),null!==a.activeOptionIndex){let{dataRef:e}=a.options[a.activeOptionIndex];i.onChange(e.current.value)}0===a.mode&&(i.closeListbox(),Aa().nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));break;case ca(a.orientation,{vertical:Ci.ArrowDown,horizontal:Ci.ArrowRight}):return e.preventDefault(),e.stopPropagation(),i.goToOption(Xc.Next);case ca(a.orientation,{vertical:Ci.ArrowUp,horizontal:Ci.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),i.goToOption(Xc.Previous);case Ci.Home:case Ci.PageUp:return e.preventDefault(),e.stopPropagation(),i.goToOption(Xc.First);case Ci.End:case Ci.PageDown:return e.preventDefault(),e.stopPropagation(),i.goToOption(Xc.Last);case Ci.Escape:return e.preventDefault(),e.stopPropagation(),i.closeListbox(),c.nextFrame(()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})});case Ci.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(i.search(e.key),u.setTimeout(()=>i.clearSearch(),350))}}),f=Zc(()=>{var e,t,s;return null!=(s=null==(e=a.labelRef.current)?void 0:e.id)?s:null==(t=a.buttonRef.current)?void 0:t.id},[a.labelRef.current,a.buttonRef.current]),y=(0,d.useMemo)(()=>({open:0===a.listboxState}),[a]);return ha({ourProps:{"aria-activedescendant":null===a.activeOptionIndex||null==(s=a.options[a.activeOptionIndex])?void 0:s.id,"aria-multiselectable":1===a.mode||void 0,"aria-labelledby":f,"aria-orientation":a.orientation,id:n,onKeyDown:h,role:"listbox",tabIndex:0,ref:l},theirProps:o,slot:y,defaultTag:"ul",features:Id,visible:m,name:"Listbox.Options"})}),Md=ga(function(e,t){let s=ki(),{id:r=`headlessui-listbox-option-${s}`,disabled:n=!1,value:o,...a}=e,i=Rd("Listbox.Option"),l=kd("Listbox.Option"),c=null!==i.activeOptionIndex&&i.options[i.activeOptionIndex].id===r,u=i.isSelected(o),p=(0,d.useRef)(null),m=Ta({disabled:n,value:o,domRef:p,get textValue(){var e,t;return null==(t=null==(e=p.current)?void 0:e.textContent)?void 0:t.toLowerCase()}}),h=Ia(t,p);Ca(()=>{if(0!==i.listboxState||!c||0===i.activationTrigger)return;let e=Aa();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[p,c,i.listboxState,i.activationTrigger,i.activeOptionIndex]),Ca(()=>l.registerOption(r,m),[m,r]);let f=Na(e=>{if(n)return e.preventDefault();l.onChange(o),0===i.mode&&(l.closeListbox(),Aa().nextFrame(()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))}),y=Na(()=>{if(n)return l.goToOption(Xc.Nothing);l.goToOption(Xc.Specific,r)}),g=vd(),v=Na(e=>g.update(e)),b=Na(e=>{!g.wasMoved(e)||n||c||l.goToOption(Xc.Specific,r,0)}),x=Na(e=>{!g.wasMoved(e)||n||!c||l.goToOption(Xc.Nothing)}),w=(0,d.useMemo)(()=>({active:c,selected:u,disabled:n}),[c,u,n]);return ha({ourProps:{id:r,ref:h,role:"option",tabIndex:!0===n?void 0:-1,"aria-disabled":!0===n||void 0,"aria-selected":u,disabled:void 0,onClick:f,onFocus:y,onPointerEnter:v,onMouseEnter:v,onPointerMove:b,onMouseMove:b,onPointerLeave:x,onMouseLeave:x},theirProps:a,slot:w,defaultTag:"li",name:"Listbox.Option"})}),Dd=Object.assign(Nd,{Button:Pd,Label:Ld,Options:Ad,Option:Md});var Fd=s(2499),zd=s.n(Fd);function Ud({id:e,value:t,choices:s,label:r="",onChange:n,error:o={message:"",isVisible:!1},disabled:i=!1}){const l=(0,a.useMemo)(()=>{const e=s.find(e=>t===e.value);return e?e.label:(0,Wt.__)("Select an option","wordpress-seo")},[s,t]);return(0,Qt.jsx)(Dd,{id:e,as:"div",value:t,onChange:n,disabled:i,children:({open:n})=>(0,Qt.jsxs)(Qt.Fragment,{children:[r&&(0,Qt.jsx)(Dd.Label,{className:"yst-block yst-max-w-sm yst-mb-2 yst-text-sm yst-font-medium yst-text-slate-800",children:r}),(0,Qt.jsxs)("div",{className:"yst-max-w-sm",children:[(0,Qt.jsxs)("div",{className:"yst-relative",children:[(0,Qt.jsxs)(Dd.Button,{"data-id":`button-${e} `,className:Is()("yst-relative yst-h-[40px] yst-w-full yst-leading-6 yst-py-2 yst-ps-3 yst-pe-10 yst-text-start yst-bg-white yst-border yst-border-slate-300 yst-rounded-md yst-shadow-sm yst-cursor-default focus:yst-outline-none focus:yst-ring-1 focus:yst-ring-primary-500 focus:yst-border-primary-500 sm:yst-text-sm",{"yst-border-red-300":o.isVisible,"yst-opacity-50":i},"emptyChoice"===t?"yst-text-slate-400":"yst-text-slate-700"),...El(e,o),children:[(0,Qt.jsx)("span",{className:"yst-block yst-truncate",children:l}),(0,Qt.jsx)("span",{className:"yst-absolute yst-inset-y-0 yst-end-0 yst-flex yst-items-center yst-pe-2 yst-pointer-events-none",children:(0,Qt.jsx)(zd(),{className:"yst-w-5 yst-h-5 yst-text-slate-400","aria-hidden":"true"})}),o.isVisible&&(0,Qt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-8",children:(0,Qt.jsx)(Ll(),{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"})})]}),(0,Qt.jsx)(Xa,{show:n,as:a.Fragment,leave:"yst-transition yst-ease-in yst-duration-100",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",children:(0,Qt.jsx)(Dd.Options,{static:!0,className:"yst-absolute yst-z-10 yst-w-full yst-mt-1 yst-overflow-auto yst-bg-white yst-rounded-md yst-shadow-lg yst-max-h-60 yst-ring-1 yst-ring-black yst-ring-opacity-5 focus:yst-outline-none sm:yst-text-sm",children:s.map(e=>(0,Qt.jsx)(Dd.Option,{as:a.Fragment,value:e.value,children:({selected:t,active:s})=>(0,Qt.jsxs)("li",{className:jl({selected:t,active:s}),children:[(0,Qt.jsx)("span",{className:Is()(t?"yst-font-semibold":"yst-font-normal","yst-block yst-truncate"),children:e.label}),t?(0,Qt.jsx)("span",{className:Is()("yst-text-white yst-absolute yst-inset-y-0 yst-end-0 yst-flex yst-items-center yst-pe-4"),children:(0,Qt.jsx)(ec(),{className:"yst-w-5 yst-h-5","aria-hidden":"true"})}):null]})},e.id))})})]}),o.isVisible&&(0,Qt.jsx)(Al,{id:_l(e),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:o.message})]})]})})}Ud.propTypes={value:Yt.PropTypes.oneOfType([Yt.PropTypes.string,Yt.PropTypes.number]).isRequired,choices:Yt.PropTypes.arrayOf(Yt.PropTypes.shape({id:Yt.PropTypes.oneOfType([Yt.PropTypes.number,Yt.PropTypes.string]).isRequired,value:Yt.PropTypes.string.isRequired,label:Yt.PropTypes.string.isRequired})).isRequired,label:Yt.PropTypes.string,onChange:Yt.PropTypes.func.isRequired,id:Yt.PropTypes.string.isRequired,error:Yt.PropTypes.shape({message:Yt.PropTypes.string,isVisible:Yt.PropTypes.bool}),disabled:Yt.PropTypes.bool},window.yoast.socialMetadataForms;function Bd(e){(function(e){const t=window.wp.media();return t.on("select",()=>{const s=t.state().get("selection").first();var r;e({type:(r=s.attributes).subtype,width:r.width,height:r.height,url:r.url,id:r.id,sizes:r.sizes,alt:r.alt||r.title||r.name})}),t})(e).open()}var qd=s(4925),$d=s.n(qd);const Hd=({className:e=""})=>(0,Qt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:Is()("yst-animate-spin",e),children:[(0,Qt.jsx)("circle",{className:"yst-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Qt.jsx)("path",{className:"yst-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]});Hd.propTypes={className:Jt().string};const Wd=Hd;function Vd({id:e,imageAltText:t="",url:s="",fallbackUrl:r="",label:n="",onSelectImageClick:o=c.noop,onRemoveImageClick:i=c.noop,className:d="",error:u={message:"",isVisible:!1},status:p="idle"}){const m=Is()("yst-relative yst-w-full yst-h-48 yst-mt-2 yst-flex yst-justify-center yst-items-center yst-rounded-md yst-mb-4 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-offset-2 focus:yst-ring-primary-500",u.isVisible?"yst-border-red-300":"yst-border-slate-300","yst-border-2 yst-border-dashed"),h=(0,a.useCallback)(()=>"loading"===p?(0,Qt.jsxs)("div",{className:"yst-text-center",children:[(0,Qt.jsx)(Wd,{size:"10",color:"gray-400",className:"yst-inline-block"}),(0,Qt.jsx)("p",{className:"yst-mt-3",children:(0,Wt.__)("Uploading image…","wordpress-seo")})]}):s?(0,Qt.jsx)("img",{src:s,alt:t,className:"yst-w-full yst-h-full yst-object-contain"}):r?(0,Qt.jsx)("img",{src:r,alt:t,className:"yst-w-full yst-h-full yst-object-contain"}):(0,Qt.jsx)($d(),{id:`${e}-no-image-svg`,className:"yst-w-14 yst-h-14 yst-text-slate-500"}),[p,e,s,t]);return(0,Qt.jsxs)("div",{className:Is()("yst-max-w-sm",d),...El(e,u),children:[(0,Qt.jsx)("label",{htmlFor:e,className:"yst-block yst-mb-2 yst-font-medium yst-text-slate-800",children:n}),(0,Qt.jsx)("button",{id:e,className:m,onClick:o,type:"button","data-hiive-event-name":"clicked_select_image",children:h()}),(0,Qt.jsxs)("div",{children:[(0,Qt.jsx)(l.Button,{id:s?e+"__replace-image":e+"__select-image",variant:"secondary",className:"yst-me-2",onClick:o,"data-hiive-event-name":s?"clicked_replace_image":"clicked_select_image",children:s?(0,Wt.__)("Replace image","wordpress-seo"):(0,Wt.__)("Select image","wordpress-seo")}),s&&(0,Qt.jsx)(l.Link,{id:`${e}__remove-image`,as:"button",type:"button",variant:"error",onClick:i,className:"yst-px-3 yst-py-2 yst-rounded-md","data-hiive-event-name":"clicked_remove_image",children:(0,Wt.__)("Remove image","wordpress-seo")})]}),"error"===p&&(0,Qt.jsx)("p",{className:"yst-mt-2 yst-text-sm yst-text-red-600",children:u}),u.isVisible&&(0,Qt.jsx)(Al,{id:_l(e),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:u.message})]})}function Gd({dispatch:e,imageUrl:t="",fallbackImageUrl:s="",organizationName:r="",fallbackOrganizationName:n="",errorFields:o=[]}){const i=(0,a.useCallback)(()=>{Bd(t=>{e({type:"SET_COMPANY_LOGO",payload:{...t}})})},[Bd]),l=(0,a.useCallback)(()=>{e({type:"REMOVE_COMPANY_LOGO"})},[e]),c=(0,a.useCallback)(t=>{e({type:"CHANGE_COMPANY_NAME",payload:t.target.value})},[e]);return(0,Qt.jsxs)(a.Fragment,{children:[(0,Qt.jsx)(Dl,{className:"yst-mt-6",id:"organization-name-input",name:"organization-name",label:(0,Wt.__)("Organization name","wordpress-seo"),value:""===r?n:r,onChange:c,feedback:{isVisible:o.includes("company_name"),message:[(0,Wt.__)("We could not save the organization name. Please check the value.","wordpress-seo")],type:"error"}}),(0,Qt.jsx)(Vd,{className:"yst-mt-6",id:"organization-logo-input",url:t,fallbackUrl:s,onSelectImageClick:i,onRemoveImageClick:l,imageAltText:"",hasPreview:!0,label:(0,Wt.__)("Organization logo","wordpress-seo")})]})}function Kd(e,t){let s=(0,d.useRef)([]),r=Na(e);(0,d.useEffect)(()=>{let e=[...s.current];for(let[n,o]of t.entries())if(s.current[n]!==o){let n=r(t,e);return s.current=t,n}},[r,...t])}Vd.propTypes={label:Jt().string,id:Jt().string.isRequired,url:Jt().string,fallbackUrl:Jt().string,imageAltText:Jt().string,onRemoveImageClick:Jt().func,onSelectImageClick:Jt().func,className:Jt().string,error:Jt().shape({message:Jt().string,isVisible:Jt().bool}),status:Jt().string},Gd.propTypes={dispatch:Jt().func.isRequired,imageUrl:Jt().string,fallbackImageUrl:Jt().string,organizationName:Jt().string,fallbackOrganizationName:Jt().string,errorFields:Jt().array};var Yd=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Yd||{}),Jd=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Jd||{}),Qd=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Qd||{}),Zd=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(Zd||{});function Xd(e,t=e=>e){let s=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=ld(t(e.options.slice()),e=>e.dataRef.current.domRef.current),n=s?r.indexOf(s):null;return-1===n&&(n=null),{options:r,activeOptionIndex:n}}let eu={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:s}=e.dataRef.current,r=e.options.findIndex(e=>s(e.dataRef.current.value));return-1!==r&&(t=r),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var s;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let r=Xd(e);if(null===r.activeOptionIndex){let e=r.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(r.activeOptionIndex=e)}let n=ed(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,activeOptionIndex:n,activationTrigger:null!=(s=t.trigger)?s:1}},3:(e,t)=>{let s={id:t.id,dataRef:t.dataRef},r=Xd(e,e=>[...e,s]);null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(s));let n={...e,...r,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(n.activeOptionIndex=0),n},4:(e,t)=>{let s=Xd(e,e=>{let s=e.findIndex(e=>e.id===t.id);return-1!==s&&e.splice(s,1),e});return{...e,...s,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},tu=(0,d.createContext)(null);function su(e){let t=(0,d.useContext)(tu);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,su),t}return t}tu.displayName="ComboboxActionsContext";let ru=(0,d.createContext)(null);function nu(e){let t=(0,d.useContext)(ru);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,nu),t}return t}function ou(e,t){return ca(t.type,eu,e,t)}ru.displayName="ComboboxDataContext";let au=d.Fragment,iu=ga(function(e,t){let{value:s,defaultValue:r,onChange:n,name:o,by:a=(e,t)=>e===t,disabled:i=!1,__demoMode:l=!1,nullable:c=!1,multiple:u=!1,...p}=e,[m=(u?[]:void 0),h]=yd(s,n,r),[f,y]=(0,d.useReducer)(ou,{dataRef:(0,d.createRef)(),comboboxState:l?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),g=(0,d.useRef)(!1),v=(0,d.useRef)({static:!1,hold:!1}),b=(0,d.useRef)(null),x=(0,d.useRef)(null),w=(0,d.useRef)(null),S=(0,d.useRef)(null),_=Na("string"==typeof a?(e,t)=>{let s=a;return(null==e?void 0:e[s])===(null==t?void 0:t[s])}:a),E=(0,d.useCallback)(e=>ca(j.mode,{1:()=>m.some(t=>_(t,e)),0:()=>_(m,e)}),[m]),j=(0,d.useMemo)(()=>({...f,optionsPropsRef:v,labelRef:b,inputRef:x,buttonRef:w,optionsRef:S,value:m,defaultValue:r,disabled:i,mode:u?1:0,get activeOptionIndex(){if(g.current&&null===f.activeOptionIndex&&f.options.length>0){let e=f.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==e)return e}return f.activeOptionIndex},compare:_,isSelected:E,nullable:c,__demoMode:l}),[m,r,i,u,c,l,f]);Ca(()=>{f.dataRef.current=j},[j]),dd([j.buttonRef,j.inputRef,j.optionsRef],()=>A.closeCombobox(),0===j.comboboxState);let k=(0,d.useMemo)(()=>({open:0===j.comboboxState,disabled:i,activeIndex:j.activeOptionIndex,activeOption:null===j.activeOptionIndex?null:j.options[j.activeOptionIndex].dataRef.current.value,value:m}),[j,i,m]),C=Na(e=>{let t=j.options.find(t=>t.id===e);!t||I(t.dataRef.current.value)}),R=Na(()=>{if(null!==j.activeOptionIndex){let{dataRef:e,id:t}=j.options[j.activeOptionIndex];I(e.current.value),A.goToOption(Xc.Specific,t)}}),T=Na(()=>{y({type:0}),g.current=!0}),O=Na(()=>{y({type:1}),g.current=!1}),N=Na((e,t,s)=>(g.current=!1,e===Xc.Specific?y({type:2,focus:Xc.Specific,id:t,trigger:s}):y({type:2,focus:e,trigger:s}))),P=Na((e,t)=>(y({type:3,id:e,dataRef:t}),()=>y({type:4,id:e}))),L=Na(e=>(y({type:5,id:e}),()=>y({type:5,id:null}))),I=Na(e=>ca(j.mode,{0:()=>null==h?void 0:h(e),1(){let t=j.value.slice(),s=t.findIndex(t=>_(t,e));return-1===s?t.push(e):t.splice(s,1),null==h?void 0:h(t)}})),A=(0,d.useMemo)(()=>({onChange:I,registerOption:P,registerLabel:L,goToOption:N,closeCombobox:O,openCombobox:T,selectActiveOption:R,selectOption:C}),[]),M=null===t?{}:{ref:t},D=(0,d.useRef)(null),F=Fa();return(0,d.useEffect)(()=>{!D.current||void 0!==r&&F.addEventListener(D.current,"reset",()=>{I(r)})},[D,I]),d.createElement(tu.Provider,{value:A},d.createElement(ru.Provider,{value:j},d.createElement(_a,{value:ca(j.comboboxState,{0:wa.Open,1:wa.Closed})},null!=o&&null!=m&&md({[o]:m}).map(([e,t],s)=>d.createElement(pd,{features:ud.Hidden,ref:0===s?e=>{var t;D.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...va({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})})),ha({ourProps:M,theirProps:p,slot:k,defaultTag:au,name:"Combobox"}))))}),lu=ga(function(e,t){var s,r,n,o;let a=ki(),{id:i=`headlessui-combobox-input-${a}`,onChange:l,displayValue:c,type:u="text",...p}=e,m=nu("Combobox.Input"),h=su("Combobox.Input"),f=Ia(m.inputRef,t),y=(0,d.useRef)(!1),g=Fa(),v=function(){var e;return"function"==typeof c&&void 0!==m.value?null!=(e=c(m.value))?e:"":"string"==typeof m.value?m.value:""}();Kd(([e,t],[s,r])=>{y.current||!m.inputRef.current||(0===r&&1===t||e!==s)&&(m.inputRef.current.value=e)},[v,m.comboboxState]),Kd(([e],[t])=>{if(0===e&&1===t){let e=m.inputRef.current;if(!e)return;let t=e.value,{selectionStart:s,selectionEnd:r,selectionDirection:n}=e;e.value="",e.value=t,null!==n?e.setSelectionRange(s,r,n):e.setSelectionRange(s,r)}},[m.comboboxState]);let b=(0,d.useRef)(!1),x=Na(()=>{b.current=!0}),w=Na(()=>{setTimeout(()=>{b.current=!1})}),S=Na(e=>{switch(y.current=!0,e.key){case Ci.Backspace:case Ci.Delete:if(0!==m.mode||!m.nullable)return;let t=e.currentTarget;g.requestAnimationFrame(()=>{""===t.value&&(h.onChange(null),m.optionsRef.current&&(m.optionsRef.current.scrollTop=0),h.goToOption(Xc.Nothing))});break;case Ci.Enter:if(y.current=!1,0!==m.comboboxState||b.current)return;if(e.preventDefault(),e.stopPropagation(),null===m.activeOptionIndex)return void h.closeCombobox();h.selectActiveOption(),0===m.mode&&h.closeCombobox();break;case Ci.ArrowDown:return y.current=!1,e.preventDefault(),e.stopPropagation(),ca(m.comboboxState,{0:()=>{h.goToOption(Xc.Next)},1:()=>{h.openCombobox()}});case Ci.ArrowUp:return y.current=!1,e.preventDefault(),e.stopPropagation(),ca(m.comboboxState,{0:()=>{h.goToOption(Xc.Previous)},1:()=>{h.openCombobox(),g.nextFrame(()=>{m.value||h.goToOption(Xc.Last)})}});case Ci.Home:if(e.shiftKey)break;return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(Xc.First);case Ci.PageUp:return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(Xc.First);case Ci.End:if(e.shiftKey)break;return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(Xc.Last);case Ci.PageDown:return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(Xc.Last);case Ci.Escape:return y.current=!1,0!==m.comboboxState?void 0:(e.preventDefault(),m.optionsRef.current&&!m.optionsPropsRef.current.static&&e.stopPropagation(),h.closeCombobox());case Ci.Tab:if(y.current=!1,0!==m.comboboxState)return;0===m.mode&&h.selectActiveOption(),h.closeCombobox()}}),_=Na(e=>{h.openCombobox(),null==l||l(e)}),E=Na(()=>{y.current=!1}),j=Zc(()=>{if(m.labelId)return[m.labelId].join(" ")},[m.labelId]),k=(0,d.useMemo)(()=>({open:0===m.comboboxState,disabled:m.disabled}),[m]);return ha({ourProps:{ref:f,id:i,role:"combobox",type:u,"aria-controls":null==(s=m.optionsRef.current)?void 0:s.id,"aria-expanded":m.disabled?void 0:0===m.comboboxState,"aria-activedescendant":null===m.activeOptionIndex||null==(r=m.options[m.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===m.mode||void 0,"aria-labelledby":j,"aria-autocomplete":"list",defaultValue:null!=(o=null!=(n=e.defaultValue)?n:void 0!==m.defaultValue?null==c?void 0:c(m.defaultValue):null)?o:m.defaultValue,disabled:m.disabled,onCompositionStart:x,onCompositionEnd:w,onKeyDown:S,onChange:_,onBlur:E},theirProps:p,slot:k,defaultTag:"input",name:"Combobox.Input"})}),cu=ga(function(e,t){var s;let r=nu("Combobox.Button"),n=su("Combobox.Button"),o=Ia(r.buttonRef,t),a=ki(),{id:i=`headlessui-combobox-button-${a}`,...l}=e,c=Fa(),u=Na(e=>{switch(e.key){case Ci.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&n.openCombobox(),c.nextFrame(()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})});case Ci.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(n.openCombobox(),c.nextFrame(()=>{r.value||n.goToOption(Xc.Last)})),c.nextFrame(()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})});case Ci.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),n.closeCombobox(),c.nextFrame(()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));default:return}}),p=Na(e=>{if(Ri(e.currentTarget))return e.preventDefault();0===r.comboboxState?n.closeCombobox():(e.preventDefault(),n.openCombobox()),c.nextFrame(()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})}),m=Zc(()=>{if(r.labelId)return[r.labelId,i].join(" ")},[r.labelId,i]),h=(0,d.useMemo)(()=>({open:0===r.comboboxState,disabled:r.disabled,value:r.value}),[r]);return ha({ourProps:{ref:o,id:i,type:Oi(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(s=r.optionsRef.current)?void 0:s.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":m,disabled:r.disabled,onClick:p,onKeyDown:u},theirProps:l,slot:h,defaultTag:"button",name:"Combobox.Button"})}),du=ga(function(e,t){let s=ki(),{id:r=`headlessui-combobox-label-${s}`,...n}=e,o=nu("Combobox.Label"),a=su("Combobox.Label"),i=Ia(o.labelRef,t);Ca(()=>a.registerLabel(r),[r]);let l=Na(()=>{var e;return null==(e=o.inputRef.current)?void 0:e.focus({preventScroll:!0})}),c=(0,d.useMemo)(()=>({open:0===o.comboboxState,disabled:o.disabled}),[o]);return ha({ourProps:{ref:i,id:r,onClick:l},theirProps:n,slot:c,defaultTag:"label",name:"Combobox.Label"})}),uu=pa.RenderStrategy|pa.Static,pu=ga(function(e,t){let s=ki(),{id:r=`headlessui-combobox-options-${s}`,hold:n=!1,...o}=e,a=nu("Combobox.Options"),i=Ia(a.optionsRef,t),l=Sa(),c=null!==l?l===wa.Open:0===a.comboboxState;Ca(()=>{var t;a.optionsPropsRef.current.static=null!=(t=e.static)&&t},[a.optionsPropsRef,e.static]),Ca(()=>{a.optionsPropsRef.current.hold=n},[a.optionsPropsRef,n]),function({container:e,accept:t,walk:s,enabled:r=!0}){let n=(0,d.useRef)(t),o=(0,d.useRef)(s);(0,d.useEffect)(()=>{n.current=t,o.current=s},[t,s]),Ca(()=>{if(!e||!r)return;let t=Ni(e);if(!t)return;let s=n.current,a=o.current,i=Object.assign(e=>s(e),{acceptNode:s}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,i,!1);for(;l.nextNode();)a(l.currentNode)},[e,r,n,o])}({container:a.optionsRef.current,enabled:0===a.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let u=Zc(()=>{var e,t;return null!=(t=a.labelId)?t:null==(e=a.buttonRef.current)?void 0:e.id},[a.labelId,a.buttonRef.current]);return ha({ourProps:{"aria-labelledby":u,role:"listbox",id:r,ref:i},theirProps:o,slot:(0,d.useMemo)(()=>({open:0===a.comboboxState}),[a]),defaultTag:"ul",features:uu,visible:c,name:"Combobox.Options"})}),mu=ga(function(e,t){var s,r;let n=ki(),{id:o=`headlessui-combobox-option-${n}`,disabled:a=!1,value:i,...l}=e,c=nu("Combobox.Option"),u=su("Combobox.Option"),p=null!==c.activeOptionIndex&&c.options[c.activeOptionIndex].id===o,m=c.isSelected(i),h=(0,d.useRef)(null),f=Ta({disabled:a,value:i,domRef:h,textValue:null==(r=null==(s=h.current)?void 0:s.textContent)?void 0:r.toLowerCase()}),y=Ia(t,h),g=Na(()=>u.selectOption(o));Ca(()=>u.registerOption(o,f),[f,o]);let v=(0,d.useRef)(!c.__demoMode);Ca(()=>{if(!c.__demoMode)return;let e=Aa();return e.requestAnimationFrame(()=>{v.current=!0}),e.dispose},[]),Ca(()=>{if(0!==c.comboboxState||!p||!v.current||0===c.activationTrigger)return;let e=Aa();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=h.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[h,p,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let b=Na(e=>{if(a)return e.preventDefault();g(),0===c.mode&&u.closeCombobox()}),x=Na(()=>{if(a)return u.goToOption(Xc.Nothing);u.goToOption(Xc.Specific,o)}),w=vd(),S=Na(e=>w.update(e)),_=Na(e=>{!w.wasMoved(e)||a||p||u.goToOption(Xc.Specific,o,0)}),E=Na(e=>{!w.wasMoved(e)||a||!p||c.optionsPropsRef.current.hold||u.goToOption(Xc.Nothing)}),j=(0,d.useMemo)(()=>({active:p,selected:m,disabled:a}),[p,m,a]);return ha({ourProps:{id:o,ref:y,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":m,disabled:void 0,onClick:b,onFocus:x,onPointerEnter:S,onMouseEnter:S,onPointerMove:_,onMouseMove:_,onPointerLeave:E,onMouseLeave:E},theirProps:l,slot:j,defaultTag:"li",name:"Combobox.Option"})}),hu=Object.assign(iu,{Input:lu,Button:cu,Label:du,Options:pu,Option:mu});function fu(e){return e&&e.label?e.label:null}function yu({id:e,value:t=null,label:s="",onChange:r,onQueryChange:n=null,options:o,placeholder:i=(0,Wt.__)("Select an option","wordpress-seo"),isLoading:l=!1}){const[c,d]=(0,a.useState)(o),[u,p]=(0,a.useState)(""),m=(0,a.useCallback)(e=>{p(e.target.value)},[p]),h=(0,a.useCallback)(()=>{p("")},[p]);(0,a.useEffect)(()=>{d(o)},[o]),(0,a.useEffect)(()=>{n?n(u):d(o.filter(e=>e.label.toLowerCase().includes(u.toLowerCase())))},[u,n]);const f=(0,a.useCallback)((e,t)=>({selected:s,active:r})=>jl({selected:s||e===t,active:r}),[jl]),y=(0,a.useCallback)(e=>t=>{e&&t.stopPropagation()},[]);return(0,Qt.jsx)(hu,{id:e,as:"div",value:t,onChange:r,onBlur:h,children:({open:r})=>(0,Qt.jsxs)(a.Fragment,{children:[s&&(0,Qt.jsx)(hu.Label,{className:"yst-block yst-mb-2 yst-max-w-sm yst-text-sm yst-font-medium yst-text-slate-800",children:s}),(0,Qt.jsxs)("div",{className:"yst-h-[40px] yst-max-w-sm yst-relative",children:[(0,Qt.jsxs)(hu.Button,{"data-id":`button-${e}`,role:"button",className:"yst-w-full yst-h-full yst-rounded-md yst-border yst-border-slate-300 yst-flex yst-items-center yst-rounded-r-md yst-ps-3 yst-pe-2 focus-within:yst-border-primary-500 focus-within:yst-outline-none focus-within:yst-ring-1 focus-within:yst-ring-primary-500",as:"div",children:[(0,Qt.jsx)(hu.Input,{"data-id":`input-${e}`,className:"yst-w-full yst-text-slate-700 yst-rounded-md yst-border-0 yst-outline-none yst-bg-white yst-py-1 yst-ps-0 yst-pe-10 yst-shadow-none sm:yst-text-sm",onChange:m,displayValue:fu,placeholder:i,onClick:y(r)}),(0,Qt.jsx)(zd(),{className:"yst-h-5 yst-w-5 yst-text-slate-400 yst-inset-y-0 yst-end-0","aria-hidden":"true"})]}),c.length>0&&(0,Qt.jsxs)(hu.Options,{className:"yst-absolute yst-z-10 yst-mt-1 yst-max-h-60 yst-w-full yst-overflow-auto yst-rounded-md yst-bg-white yst-text-base yst-shadow-lg yst-ring-1 yst-ring-black yst-ring-opacity-5 focus:yst-outline-none sm:yst-text-sm",children:[l&&(0,Qt.jsxs)("div",{className:"yst-flex yst-bg-white yst-sticky yst-z-20 yst-text-sm yst-italic yst-top-0 yst-py-2 yst-ps-3 yst-pe-9 yst-my-0",children:[(0,Qt.jsx)(Wd,{className:"yst-text-primary-500 yst-h-4 yst-w-4 yst-me-2 yst-self-center"}),(0,Wt.__)("Loading…","wordpress-seo")]}),c.map(e=>(0,Qt.jsx)(hu.Option,{value:e,className:f(e.value,t.value),children:({selected:s})=>(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)("span",{className:Is()("yst-block yst-truncate",(s||t.value===e.value)&&"yst-font-semibold"),children:e.label}),(s||t.value===e.value)&&(0,Qt.jsx)("span",{className:"yst-absolute yst-inset-y-0 yst-end-0 yst-flex yst-items-center yst-pe-4 yst-text-white",children:(0,Qt.jsx)(ec(),{className:"yst-h-5 yst-w-5","aria-hidden":"true"})})]})},`yst-option-${e.value}`))]})]})]})})}yu.propTypes={onChange:Jt().func.isRequired,options:Jt().array.isRequired,id:Jt().string.isRequired,value:Jt().shape({value:Jt().number,label:Jt().string}),label:Jt().string,onQueryChange:Jt().func,placeholder:Jt().string,isLoading:Jt().bool};const gu={"X-WP-NONCE":wpApiSettings.nonce},vu=wpApiSettings.root;function bu({initialValue:e={id:0,name:""},onChangeCallback:t=c.noop,placeholder:s=(0,Wt.__)("Select a user","wordpress-seo")}){const[r,n]=(0,a.useState)([]),[o,i]=(0,a.useState)({value:e.id,label:e.name}),[l,d]=(0,a.useState)(!1),u=(0,a.useRef)(!0);(0,a.useEffect)(()=>()=>{u.current=!1},[]);const p=(0,a.useCallback)(e=>{i(e),t(e)}),m=(0,a.useCallback)((0,c.debounce)(async e=>{d(!0);const t=await function(e=""){const t=`${vu}wp/v2/users?per_page=20${e?`&search=${encodeURIComponent(e)}`:""}`;return(0,Mc.sendRequest)(t,{method:"GET",headers:gu})}(e);u.current&&(d(!1),n(t.map(e=>({value:e.id,label:e.name}))))},500),[]);return(0,Qt.jsx)(yu,{id:"yoast-configuration-user-select",value:o,label:(0,Wt.__)("Name","wordpress-seo"),onChange:p,onQueryChange:m,options:r,placeholder:s,isLoading:l})}function xu({dispatch:e,imageUrl:t="",fallbackImageUrl:s="",person:r={id:0,name:""},canEditUser:n}){const o=(0,a.useCallback)(()=>{Bd(t=>{e({type:"SET_PERSON_LOGO",payload:{...t}})})},[Bd]),i=(0,a.useCallback)(()=>{e({type:"REMOVE_PERSON_LOGO"})},[e]),l=(0,a.useCallback)(t=>{e({type:"SET_PERSON",payload:t}),Dn()({path:`yoast/v1/configuration/check_capability?user_id=${t.value}`}).then(t=>{e({type:"SET_CAN_EDIT_USER",payload:t.success})}).catch(e=>{console.error(e.message)})},[e]),c=(0,Wt.__)("You have selected the user %1$s as the person this site represents. This user profile information will now be used in search results. %2$sUpdate this profile to make sure the information is correct%3$s.","wordpress-seo"),d=(0,Wt.__)("You have selected the user %1$s as the person this site represents. This user profile information will now be used in search results. You're not allowed to update this user profile, so please ask this user or an admin to make sure the information is correct.","wordpress-seo"),u=(0,a.useMemo)(()=>Vt((0,Wt.sprintf)(n?c:d,`<b>${r.name}</b>`,"<a>","</a>"),{b:(0,Qt.jsx)("b",{}),a:(0,Qt.jsx)("a",{id:"yoast-configuration-user-selector-user-link",href:window.wpseoScriptData.userEditUrl.replace("{user_id}",r.id),target:"_blank",rel:"noopener noreferrer"})}),[r.id,r.name,n]);return(0,Qt.jsxs)(a.Fragment,{children:[(0,Qt.jsx)(bu,{initialValue:r,onChangeCallback:l,name:"person_id",placeholder:(0,Wt.__)("Select a user","wordpress-seo")}),(0,Qt.jsx)(Yl,{id:"user-representation-alert",isVisible:0!==r.id,type:"info",className:"yst-mt-5",children:u}),(0,Qt.jsx)(Vd,{className:"yst-mt-6",id:"person-logo-input",url:t,fallbackUrl:s,onSelectImageClick:o,onRemoveImageClick:i,imageAltText:"",hasPreview:!0,label:(0,Wt.__)("Personal logo or avatar","wordpress-seo")})]})}function wu({onOrganizationOrPersonChange:e,dispatch:t,state:s,siteRepresentationEmpty:r}){const[n,o]=(0,a.useState)("emptyChoice"===s.companyOrPerson?"yst-opacity-0":"yst-opacity-100"),i=(0,a.useCallback)(()=>{o("yst-opacity-100")},[o]),l=(0,a.useCallback)(e=>{t({type:"CHANGE_WEBSITE_NAME",payload:e.target.value})},[t]),c=Vt((0,Wt.sprintf)(
/* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to closing 'span' HTML tag,
%3$s expands to opening 'a' HTML tag, %4$s expands to closing 'a' HTML tag. */
/* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to closing 'span' HTML tag,
%3$s expands to opening 'a' HTML tag, %4$s expands to closing 'a' HTML tag. */
(0,Wt.__)("Completing this step helps Google to understand your site even better. %1$sBonus%2$s: You'll improve your chance of getting %3$srich results%4$s!","wordpress-seo"),"<span>","</span>","<a>","</a>"),{span:(0,Qt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"}),a:(0,Qt.jsx)("a",{id:"yoast-configuration-rich-text-link",href:"https://yoa.st/config-workout-rich-results",target:"_blank",rel:"noopener noreferrer"})});return(0,Qt.jsxs)(a.Fragment,{children:[window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage&&(0,Qt.jsx)(Kl,{type:"info",children:window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage}),(0,Qt.jsx)("p",{className:Is()("yst-text-sm yst-whitespace-pre-line yst-mb-6",s.shouldForceCompany?"yst-mt-4":"yst-mt-0"),children:s.shouldForceCompany?c:(0,Qt.jsxs)(a.Fragment,{children:[(0,Wt.__)("Tell us! Is your site about an organization or a person?","wordpress-seo"),(0,Qt.jsx)("br",{}),c]})}),(0,Qt.jsx)(Ud,{id:"organization-person-select",htmlFor:"organization-person-select",name:"organization",label:(0,Wt.__)("Does your site represent an Organization or Person?","wordpress-seo"),value:s.shouldForceCompany?"company":s.companyOrPerson,onChange:e,choices:s.companyOrPersonOptions,disabled:!!s.shouldForceCompany}),!("company"===s.companyOrPerson&&s.companyName&&s.companyLogo||"company"===s.companyOrPerson&&!s.companyLogoFallback||"person"===s.companyOrPerson&&s.personLogo||"person"===s.companyOrPerson&&!s.personLogoFallback)&&(0,Qt.jsx)(Kl,{type:"info",className:"yst-mt-6",children:(0,Wt.__)("We took the liberty of using your website name and logo for the organization name and logo. Feel free to change them below.","wordpress-seo")}),(0,Qt.jsx)(Dl,{className:"yst-my-6",id:"website-name-input",name:"website-name",label:(0,Wt.__)("Website name","wordpress-seo"),value:s.websiteName||s.fallbackWebsiteName,onChange:l,feedback:{isVisible:s.errorFields.includes("website_name"),message:[(0,Wt.__)("We could not save the website name. Please check the value.","wordpress-seo")],type:"error"}}),(0,Qt.jsx)(Gl.A,{height:["company","person"].includes(s.companyOrPerson)?"auto":0,duration:400,easing:"linear",onAnimationEnd:i,children:(0,Qt.jsxs)("div",{className:Is()("yst-transition-opacity yst-duration-300 yst-mt-6",n),children:["company"===s.companyOrPerson&&(0,Qt.jsx)(Gd,{dispatch:t,imageUrl:s.companyLogo,fallbackImageUrl:s.companyLogoFallback,organizationName:s.companyName,fallbackOrganizationName:s.fallbackCompanyName,errorFields:s.errorFields}),"person"===s.companyOrPerson&&(0,Qt.jsx)(xu,{dispatch:t,imageUrl:s.personLogo,fallbackImageUrl:s.personLogoFallback,person:{id:s.personId,name:s.personName},canEditUser:!!s.canEditUser,errorFields:s.errorFields})]})}),(0,Qt.jsx)(Yl,{id:"site-representation-empty-alert",isVisible:r,className:"yst-mt-6",children:(0,Wt.__)("You're almost there! Complete all settings in this step so search engines know what your site is about.","wordpress-seo")})]})}function Su(e,t,s=""){return Vt(e,{a:(0,Qt.jsx)("a",{id:s,href:t,target:"_blank",rel:"noopener noreferrer"})})}bu.propTypes={initialValue:Jt().shape({id:Jt().number,name:Jt().string}),onChangeCallback:Jt().func,placeholder:Jt().string},xu.propTypes={dispatch:Jt().func.isRequired,imageUrl:Jt().string,fallbackImageUrl:Jt().string,person:Jt().shape({id:Jt().number,name:Jt().string}),canEditUser:Jt().bool.isRequired},wu.propTypes={onOrganizationOrPersonChange:Jt().func.isRequired,dispatch:Jt().func.isRequired,state:Jt().object.isRequired,siteRepresentationEmpty:Jt().bool.isRequired};const _u=(0,Wt.__)("Oops! Something went wrong. Check your email address and try again.","wordpress-seo"),Eu=(0,Wt.__)("Please enter a valid email address.","wordpress-seo"),ju=(0,Wt.__)("Thank you! Check your inbox for the confirmation email.","wordpress-seo");function ku({gdprLink:e=""}){const[t,s]=(0,a.useState)(""),[r,n]=(0,a.useState)("waiting"),[o,i]=(0,a.useState)(""),l=fi("selectPreference",[],"isPremium"),c=fi("selectPreference",[],"addonsStatus"),d=(0,a.useCallback)(async function(){if(!(0,Go.isEmail)(t))return n("error"),void i(Eu);n("loading");const e=await async function(e,t,s){const r=yi("ftc",t,s);return(await fetch("https://my.yoast.com/api/Mailing-list/subscribe",{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify({customerDetails:{firstName:"",email:e},list:"Yoast newsletter",source:r})})).json()}(t,l,c);e.error?(n("error"),i(_u)):(n("success"),i(ju))},[t]),u=(0,a.useCallback)(e=>{n("waiting"),s(e.target.value)},[s]);return(0,Qt.jsxs)(a.Fragment,{children:[(0,Qt.jsx)("h4",{className:"yst-text-slate-800 yst-text-sm yst-leading-6 yst-font-medium",children:(0,Wt.__)("Get free weekly SEO tips!","wordpress-seo")}),(0,Qt.jsx)("p",{className:"yst-mb-2",children:(0,Wt.sprintf)(/* translators: %1$s expands to "Yoast SEO", %2$s expands to "Yoast SEO". */ /* translators: %1$s expands to "Yoast SEO", %2$s expands to "Yoast SEO". */
(0,Wt.__)("Subscribe to the %1$s newsletter to receive best practices for improving your rankings, save time on SEO tasks, stay up-to-date with the latest SEO news, and get expert guidance on how to make the most of %2$s!","wordpress-seo"),"Yoast SEO","Yoast SEO")}),(0,Qt.jsxs)("div",{className:"yst-flex yst-items-start yst-gap-2 yst-mt-4 yst-mb-2",children:[(0,Qt.jsx)(Dl,{label:(0,Wt.__)("Email address","wordpress-seo"),id:"newsletter-email",name:"newsletter email",value:t,onChange:u,className:"yst-grow",type:"email",placeholder:(0,Wt.__)("E.g. example@email.com","wordpress-seo"),feedback:{isVisible:["error","success"].includes(r),type:r,message:[o]}}),(0,Qt.jsx)("button",{type:"button",id:"newsletter-sign-up-button",className:"yst-button yst-button--primary yst-h-[40px] yst-items-center yst-mt-[27.5px] yst-shrink-0",onClick:d,disabled:"loading"===r,"data-hiive-event-name":"clicked_signup | personal preferences",children:(0,Wt.__)("Yes, give me your free tips!","wordpress-seo")})]}),(0,Qt.jsx)("p",{className:"yst-text-slate-500 yst-text-xxs yst-leading-4",children:Su((0,Wt.sprintf)(
// translators: %1$s and %2$s are replaced by opening and closing anchor tags.
// translators: %1$s and %2$s are replaced by opening and closing anchor tags.
(0,Wt.__)("Yoast respects your privacy. Read %1$sour privacy policy%2$s on how we handle your personal information.","wordpress-seo"),"<a>","</a>"),e,"yoast-configuration-gdpr-link")})]})}ku.propTypes={gdprLink:Jt().string};const Cu={variant:{default:"","inline-block":"yst-radio--inline-block"}},Ru={variant:{default:"","inline-block":"yst-radio-group--inline-block"}},Tu=({id:e,name:t,value:s,label:r,variant:n="default",className:o="",...a})=>(0,Qt.jsxs)("div",{className:Is()("yst-radio",Cu.variant[n],o),children:[(0,Qt.jsx)("input",{type:"radio",id:e,name:t,value:s,className:"yst-radio__input",...a}),r&&(0,Qt.jsx)(Ou,{htmlFor:e,className:"yst-radio__label",children:r})]});Tu.propTypes={name:Jt().string.isRequired,id:Jt().string.isRequired,value:Jt().oneOfType([Jt().string,Jt().number]).isRequired,label:Jt().string.isRequired,variant:Jt().oneOf(Object.keys(Cu.variant)),className:Jt().string};const Ou=({children:e,as:t="label",className:s="",...r})=>(0,Qt.jsx)(t,{className:Is()("yst-label",s),...r,children:e});Ou.propTypes={children:Jt().node.isRequired,as:Jt().elementType,className:Jt().string};const Nu=({children:e=null,id:t,name:s,value:r,label:n=null,options:o,onChange:i,variant:l="default",className:c="",...d})=>{const u=(0,a.useCallback)(({target:e})=>e.checked&&i(e.value),[i]);return(0,Qt.jsxs)("fieldset",{className:Is()("yst-radio-group",Ru.variant[l],c),children:[n&&(0,Qt.jsx)(Ou,{as:"legend",className:"yst-radio-group__label",children:n}),e&&(0,Qt.jsx)("div",{className:"yst-radio-group__description",children:e}),(0,Qt.jsx)("div",{className:"yst-radio-group__options",children:o.map((e,n)=>{const o=`${t}-${n}`;return(0,Qt.jsx)(Tu,{id:o,name:s,value:e.value,label:e.label,variant:l,checked:r===e.value,onChange:u,...d},o)})})]})};Nu.propTypes={children:Jt().node,id:Jt().string.isRequired,name:Jt().string.isRequired,value:Jt().oneOfType([Jt().string,Jt().number]).isRequired,options:Jt().arrayOf(Jt().shape({value:Jt().oneOfType([Jt().string,Jt().number]).isRequired,label:Jt().string.isRequired})).isRequired,onChange:Jt().func.isRequired,label:Jt().node,variant:Jt().oneOf(Object.keys(Ru.variant)),className:Jt().string};const Pu=Nu,Lu=(0,Mc.makeOutboundLink)();function Iu({state:e,setTracking:t}){return(0,Qt.jsxs)(a.Fragment,{children:[!e.isPremium&&(0,Qt.jsxs)(a.Fragment,{children:[(0,Qt.jsx)(ku,{gdprLink:window.wpseoFirstTimeConfigurationData.shortlinks.gdpr}),(0,Qt.jsx)("hr",{className:"yst-bg-slate-200 yst-my-6"})]}),(0,Qt.jsx)("h4",{className:"yst-text-slate-800 yst-text-sm yst-leading-6 yst-font-medium",children:(0,Wt.__)("Are you open to help us improve our services?","wordpress-seo")}),!!e.isMainSite&&!e.isTrackingAllowedMultisite&&(0,Qt.jsx)(Kl,{type:"warning",children:(0,Wt.__)("This feature has been disabled by the network admin.","wordpress-seo")}),!e.isMainSite&&(0,Qt.jsx)(Kl,{type:"warning",children:(0,Wt.__)("This feature has been disabled since subsites never send tracking data.","wordpress-seo")}),(0,Qt.jsx)("p",{className:Is()("yst-text-normal yst-mb-4",e.isMainSite&&e.isTrackingAllowedMultisite?"":"yst-opacity-50"),children:(0,Wt.sprintf)(/* translators: 1: Yoast SEO. */ /* translators: 1: Yoast SEO. */
(0,Wt.__)("Can we collect anonymous information about your website to enhance %1$s?","wordpress-seo"),"Yoast SEO")}),(0,Qt.jsx)(Pu,{id:"yoast-configuration-tracking-radio-button",name:"yoast-configuration-tracking",value:e.tracking,onChange:t,className:e.isMainSite&&e.isTrackingAllowedMultisite?"":"yst-opacity-50",disabled:!e.isMainSite||!e.isTrackingAllowedMultisite,options:[{value:0,label:(0,Wt.__)("No, I don't want to share my site data","wordpress-seo")},{value:1,label:(0,Wt.__)("Yes, you can collect my site data","wordpress-seo")}]}),!!e.isMainSite&&!!e.isTrackingAllowedMultisite&&(0,Qt.jsxs)(a.Fragment,{children:[(0,Qt.jsx)(Lu,{className:"yst-inline-block yst-mt-4",href:"https://yoa.st/config-workout-tracking",children:(0,Wt.__)("What data will be collected and why?","wordpress-seo")}),(0,Qt.jsx)("p",{className:"yst-my-2 yst-italic",children:Vt((0,Wt.sprintf)(/* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to closing 'span' HTML tag. */ /* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to closing 'span' HTML tag. */
(0,Wt.__)("%1$sImportant:%2$s We won't sell this data, and we won't collect any personal information about you or your visitors.","wordpress-seo"),"<span>","</span>"),{span:(0,Qt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"})})})]})]})}Iu.propTypes={state:Jt().object.isRequired,setTracking:Jt().func.isRequired};var Au=s(9297),Mu=s.n(Au);function Du(e){e.preventDefault(),window.location.href="admin.php?page=wpseo_dashboard"}function Fu(){const e=(0,c.get)(window,"wpseoScriptData.webinarIntroFirstTimeConfigUrl","https://yoa.st/webinar-intro-first-time-config");return(0,Qt.jsx)("div",{className:"yst-flex yst-flex-row yst-justify-between yst-items-center yst-mt-4",children:(0,Qt.jsxs)("div",{children:[(0,Qt.jsx)("p",{className:"yst-text-sm yst-mb-4",children:(0,Wt.__)("Setup complete! Your site is now ready for discovery.","wordpress-seo")}),(0,Qt.jsx)("p",{className:"yst-text-sm yst-mb-6",children:(0,Wt.__)("Turning that visibility into sustainable organic growth is a journey, but you don't have to do it alone. Let's take it one step at a time to ensure your content is always understood, properly represented, and engaged with.","wordpress-seo")}),(0,Qt.jsxs)(l.Button,{as:"a",variant:"primary",id:"button-webinar-seo-dashboard",href:e,target:"_blank","data-hiive-event-name":"clicked_to_onboarding_page",children:[(0,Wt.sprintf)(/* translators: 1: Yoast SEO. */ /* translators: 1: Yoast SEO. */
(0,Wt.__)("Learn how to get the most out of your %1$s plugin","wordpress-seo"),"Yoast"),(0,Qt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,Wt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Qt.jsx)(Mu(),{className:"yst-w-4 yst-h-4 yst-icon-rtl yst-ms-2"})]}),(0,Qt.jsx)("p",{className:"yst-mt-6",children:(0,Qt.jsxs)(l.Button,{id:"link-webinar-register",as:"a",onClick:Du,"data-hiive-event-name":"clicked_seo_dashboard",variant:"tertiary",children:[(0,Wt.__)("Or go to your SEO dashboard","wordpress-seo"),(0,Qt.jsx)(Us(),{className:"yst-ms-1 yst-w-4 yst-h-4 yst-icon-rtl"})]})})]})})}function zu(e,t){const{companyName:s,companyLogo:r,companyOrPersonOptions:n,shouldForceCompany:o,fallbackCompanyName:a,websiteName:i,fallbackWebsiteName:l}=e;let{companyOrPerson:c}=e;return("company"!==c||s||r||t(Cc))&&!o||(c="company"),{...e,personId:Number(e.personId),personLogoId:Number(e.personLogoId),companyLogoId:Number(e.companyLogoId),tracking:Number(e.tracking),companyOrPerson:c,companyOrPersonOptions:n,errorFields:[],stepErrors:{},editedSteps:[],companyName:s||a,websiteName:i||l}}function Uu(){const{removeAlert:e,dismissNotice:t,restoreNotice:s,setTaskCompleted:n}=(0,r.useDispatch)(pi),o=(0,r.useSelect)(e=>e(pi).selectIsTaskCompleted("complete-ftc"),[]),[i,l]=(0,a.useState)(window.wpseoFirstTimeConfigurationData.finishedSteps),d=(0,a.useCallback)(e=>i.includes(e),[i]),u=(0,a.useCallback)(e=>{l(t=>(0,c.uniq)([...t,e]))},[l]);(0,a.useEffect)(()=>{!async function(e){const t=await Dn()({path:"yoast/v1/configuration/save_configuration_state",method:"POST",data:{finishedSteps:e}});await t.json}(i),window.wpseoFirstTimeConfigurationData.finishedSteps=i},[i]);const[p,m]=(0,a.useReducer)(Cl,{...zu(window.wpseoFirstTimeConfigurationData,d)}),[h,f]=(0,a.useState)(()=>"0"===window.yoastIndexingData.amount?"already_done":"idle"),[y,g]=(0,a.useState)(!1),[v,b]=(0,a.useState)(!1),x=(0,a.useCallback)((e,t)=>{m({type:"SET_STEP_ERROR",payload:{step:e,message:t}})},[]),w=(0,a.useCallback)(e=>{m({type:"REMOVE_STEP_ERROR",payload:e})},[]);(0,a.useEffect)(()=>{"completed"===h&&(e("wpseo-reindex"),window.yoastIndexingData.amount="0")},[h,e]);const S=d(kc),_=d(Cc),E=d(Rc),j=d(Tc),k=(0,a.useCallback)(e=>{m({type:"SET_TRACKING",payload:parseInt(e,10)})}),C=(0,a.useCallback)(e=>{m({type:"SET_ERROR_FIELDS",payload:e})}),R=(0,a.useCallback)(()=>{""!==p.companyLogo&&0!==p.companyLogoId&&""!==p.companyName?t("yoast-local-missing-organization-info-notice"):s("yoast-local-missing-organization-info-notice")},[t,s,p.companyLogo,p.companyLogoId,p.companyName]),T=(0,a.useCallback)(()=>{t("yoast-first-time-configuration-notice")},[t]),O=!("company"!==p.companyOrPerson||p.companyName&&(p.companyLogo||p.companyLogoFallback)&&p.websiteName),N=!("person"!==p.companyOrPerson||p.personId&&(p.personLogo||p.personLogoFallback)&&p.websiteName),P=(0,a.useCallback)(e=>m({type:"SET_COMPANY_OR_PERSON",payload:e}),[m]),L=[S,_,E,j].every(Boolean),I=[d(kc),d(Cc),d(Rc),d(Tc),L],[A,M]=(0,a.useState)(function(e){if(!Array.isArray(e)||0===e.length)return 0;const t=e.findIndex(e=>!1===e);return-1!==t?t:e.every(Boolean)?e.length-1:0}(I)),[D,F]=(0,a.useState)(L),[z,U]=(0,a.useState)(!1),[B,q]=(0,a.useState)(D&&!z);function $(){return q(!1),U(!0),!0}(0,a.useEffect)(()=>{L&&(F(!0),!1===o&&n("complete-ftc"))},[L]),(0,a.useEffect)(()=>{q(D&&!z)},[D,z]),(0,a.useEffect)(()=>{function e(e){"Enter"===e.key&&"first-time-configuration-tab"===document.querySelector(".nav-tab.nav-tab-active").id&&"INPUT"===e.target.tagName&&e.preventDefault()}return addEventListener("keydown",e),()=>removeEventListener("keydown",e)},[]),(0,a.useEffect)(()=>{p.editedSteps.includes(A+1)||"in_progress"===h?window.isStepBeingEdited=!0:window.isStepBeingEdited=!1},[p.editedSteps,h,A]);const H=(0,a.useCallback)(e=>{(p.editedSteps.includes(A+1)||"in_progress"===h)&&(-1===location.href.indexOf("page=wpseo_dashboard#top#first-time-configuration")&&-1===location.href.indexOf("page=wpseo_dashboard#/first-time-configuration")||(e.preventDefault(),e.returnValue=""))},[p.editedSteps,h,A]);return(0,a.useEffect)(()=>(window.addEventListener("beforeunload",H),()=>{window.removeEventListener("beforeunload",H)}),[H]),(0,Qt.jsxs)(jc,{setActiveStepIndex:M,activeStepIndex:A,isStepperFinished:L,children:[(0,Qt.jsxs)(Sc,{children:[(0,Qt.jsx)(Sc.Header,{name:(0,Wt.__)("SEO data optimization","wordpress-seo"),isFinished:S,children:(0,Qt.jsx)(Pc,{stepId:kc,beforeGo:$,isVisible:B,additionalClasses:"yst-ms-auto",children:(0,Wt.__)("Edit","wordpress-seo")})}),(0,Qt.jsxs)(Sc.Content,{children:[(0,Qt.jsx)(Qc,{setIndexingState:f,indexingState:h,showRunIndexationAlert:v,isStepperFinished:L}),(0,Qt.jsx)(Nc,{stepId:kc,additionalClasses:"yst-mt-12",beforeGo:function(){return v||"idle"!==h||"1"===window.yoastIndexingData.disabled?(U(!1),u(kc),!0):(b(!0),!1)},destination:D?"last":1,children:(0,Wt.__)("Continue","wordpress-seo")})]})]}),(0,Qt.jsxs)(Sc,{children:[(0,Qt.jsx)(Sc.Header,{name:(0,Wt.__)("Site representation","wordpress-seo"),isFinished:_,children:(0,Qt.jsx)(Pc,{stepId:Cc,beforeGo:$,isVisible:B,additionalClasses:"yst-ms-auto",children:(0,Wt.__)("Edit","wordpress-seo")})}),(0,Qt.jsxs)(Sc.Content,{children:[(0,Qt.jsx)(wu,{onOrganizationOrPersonChange:P,dispatch:m,state:p,siteRepresentationEmpty:y}),(0,Qt.jsx)(Sc.Error,{id:"yoast-site-representation-step-error",message:p.stepErrors[Cc]||""}),(0,Qt.jsx)(Ac,{stepId:Cc,stepperFinishedOnce:D,saveFunction:function(){return!y&&O||!y&&N?(g(!0),!1):y||"emptyChoice"!==p.companyOrPerson?(g("emptyChoice"===p.companyOrPerson||O||N),async function(e){const t={company_or_person:"emptyChoice"===e.companyOrPerson?"company":e.companyOrPerson,company_name:e.companyName,company_logo:e.companyLogo,company_logo_id:e.companyLogoId?e.companyLogoId:0,website_name:e.websiteName,person_logo:e.personLogo,person_logo_id:e.personLogoId?e.personLogoId:0,company_or_person_user_id:e.personId},s=await Dn()({path:"yoast/v1/configuration/site_representation",method:"POST",data:t});return await s.json}(p).then(()=>(C([]),w(Cc),u(Cc),window.wpseoFirstTimeConfigurationData={...window.wpseoFirstTimeConfigurationData,...p},R(),!0)).catch(e=>e.failures?(C(e.failures),!1):(e.message&&x(Cc,e.message),!1))):(g(!0),!1)},setEditState:U})]})]}),(0,Qt.jsxs)(Sc,{children:[(0,Qt.jsx)(Sc.Header,{name:(0,Wt.__)("Social profiles","wordpress-seo"),isFinished:E,children:(0,Qt.jsx)(Pc,{stepId:Rc,beforeGo:$,isVisible:B,additionalClasses:"yst-ms-auto",children:(0,Wt.__)("Edit","wordpress-seo")})}),(0,Qt.jsxs)(Sc.Content,{children:[(0,Qt.jsx)(Jl,{state:p,dispatch:m,setErrorFields:C}),(0,Qt.jsx)(Sc.Error,{id:"yoast-social-profiles-step-error",message:p.stepErrors[Rc]||""}),(0,Qt.jsx)(Ac,{stepId:Rc,stepperFinishedOnce:D,saveFunction:function(){return"person"===p.companyOrPerson?(u(Rc),!0):async function(e){const t={facebook_site:e.socialProfiles.facebookUrl,twitter_site:e.socialProfiles.twitterUsername,other_social_urls:e.socialProfiles.otherSocialUrls},s=await Dn()({path:"yoast/v1/configuration/social_profiles",method:"POST",data:t});return await s.json}(p).then(e=>!1===e.success?(C(e.failures),Promise.reject("There were errors saving social profiles")):e).then(()=>{C([]),w(Rc),u(Rc)}).then(()=>(window.wpseoFirstTimeConfigurationData.socialProfiles=p.socialProfiles,!0)).catch(e=>(e.failures&&C(e.failures),e.message&&x(Rc,e.message),!1))},setEditState:U})]})]}),(0,Qt.jsxs)(Sc,{children:[(0,Qt.jsx)(Sc.Header,{name:(0,Wt.__)("Personal preferences","wordpress-seo"),isFinished:j,children:(0,Qt.jsx)(Pc,{stepId:Tc,beforeGo:$,isVisible:B,additionalClasses:"yst-ms-auto",children:(0,Wt.__)("Edit","wordpress-seo")})}),(0,Qt.jsxs)(Sc.Content,{children:[(0,Qt.jsx)(Iu,{state:p,setTracking:k}),(0,Qt.jsx)(Sc.Error,{id:"yoast-personal-preferences-step-error",message:p.stepErrors[Tc]||""}),(0,Qt.jsx)(Ac,{stepId:Tc,stepperFinishedOnce:D,saveFunction:function(){return async function(e){if(0!==e.tracking&&1!==e.tracking)throw"Value not set!";const t={tracking:e.tracking},s=await Dn()({path:"yoast/v1/configuration/enable_tracking",method:"POST",data:t});return await s.json}(p).then(()=>u(Tc)).then(()=>(w(Tc),window.wpseoFirstTimeConfigurationData.tracking=p.tracking,T(),!0)).catch(e=>(e.message&&x(Tc,e.message),!1))},setEditState:U})]})]}),(0,Qt.jsxs)(Sc,{children:[(0,Qt.jsx)(Sc.Header,{name:(0,Wt.__)("Finish configuration","wordpress-seo"),isFinished:L}),(0,Qt.jsx)(Sc.Content,{children:(0,Qt.jsx)(Fu,{})})]})]})}const Bu=()=>{const e=function(e){let{router:t,basename:s}=ft(mt.UseBlocker),r=yt(ht.UseBlocker),[n,o]=d.useState(""),a=d.useCallback(t=>{if("/"===s)return e(t);let{currentLocation:r,nextLocation:n,historyAction:o}=t;return e({currentLocation:Ye({},r,{pathname:B(r.pathname,s)||r.pathname}),nextLocation:Ye({},n,{pathname:B(n.pathname,s)||n.pathname}),historyAction:o})},[s,e]);return d.useEffect(()=>{let e=String(++bt);return o(e),()=>t.deleteBlocker(e)},[t]),d.useEffect(()=>{""!==n&&t.getBlocker(n,a)},[t,n,a]),n&&r.blockers.has(n)?r.blockers.get(n):ae}(({currentLocation:e,nextLocation:t})=>(0,c.get)(window,"isStepBeingEdited",!1)&&"/first-time-configuration"===e.pathname&&"/first-time-configuration"!==t.pathname);return(0,Qt.jsxs)(l.Paper,{children:[(0,Qt.jsx)(vl,{title:(0,Wt.__)("First-time configuration","wordpress-seo"),description:(0,Wt.__)("Tell us about your site, so we can get it ranked! Let's get your site in tip-top shape for the search engines. Follow these 5 steps to make Google understand what your site is about.","wordpress-seo"),children:(0,Qt.jsx)("div",{id:"yoast-configuration",className:"yst-p-8 yst-max-w-[715px]",children:(0,Qt.jsx)(Uu,{})})}),(0,Qt.jsx)(Zs,{isOpen:"blocked"===e.state,onClose:e.reset,title:(0,Wt.__)("Unsaved changes","wordpress-seo"),description:(0,Wt.__)("There are unsaved changes in one or more steps of the first-time configuration. Leaving means that those changes will be lost. Are you sure you want to leave this page?","wordpress-seo"),onDiscard:e.proceed,dismissLabel:(0,Wt.__)("No, continue editing","wordpress-seo"),discardLabel:(0,Wt.__)("Yes, leave page","wordpress-seo")})]})},qu=()=>(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)(l.Paper,{className:"yst-p-8 yst-grow",children:(0,Qt.jsxs)("header",{className:"yst-max-w-screen-sm",children:[(0,Qt.jsx)(l.Title,{children:(0,Wt.__)("Alert center","wordpress-seo")}),(0,Qt.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:(0,Wt.__)("Monitor and manage potential SEO problems affecting your site and stay informed with important notifications and updates.","wordpress-seo")})]})}),(0,Qt.jsxs)("div",{className:"yst-grid yst-grid-cols-1 @3xl:yst-grid-cols-2 yst-gap-6 yst-my-6 yst-grow yst-items-start",children:[(0,Qt.jsx)(Xi,{}),(0,Qt.jsx)(Zi,{})]})]}),$u=["sm:yst-w-60","sm:yst-w-72","sm:yst-w-72","sm:yst-w-80","sm:yst-w-28","sm:yst-w-40","sm:yst-w-28","sm:yst-w-32","sm:yst-w-52","sm:yst-w-60"],Hu=()=>{const{fetchTasks:e}=(0,r.useDispatch)(pi),{getTasksEndpoint:t,isPremium:s,tasks:n,nonce:o,tasksStatus:d,tasksError:u,sortedTasks:p,totalTasksCount:m,completedTasksCount:h,userLocale:f}=(0,r.useSelect)(e=>{const t=e(pi);return{getTasksEndpoint:t.selectTasksEndpoints().getTasks,isPremium:t.getIsPremium(),tasks:t.selectTasks(),nonce:t.selectNonce(),tasksStatus:t.selectTasksStatus(),tasksError:t.selectTasksError(),sortedTasks:t.selectSortedTasks(),totalTasksCount:t.selectTotalTasksCount(),completedTasksCount:t.selectCompletedTasksCount(),userLocale:t.selectPreference("userLocale")}},[]),y=d===rr;return(0,a.useEffect)(()=>{(0,c.isEmpty)(n)&&e((0,Go.addQueryArgs)(t,{_locale:"user"}),o)},[n,e]),(0,Qt.jsxs)(l.Paper,{className:"yst-mb-6",children:[(0,Qt.jsxs)(l.Paper.Header,{children:[(0,Qt.jsx)(l.Title,{children:(0,Wt.__)("Task list","wordpress-seo")}),(0,Qt.jsx)("p",{className:"yst-max-w-screen-sm yst-mt-3 yst-text-tiny",children:(0,Wt.__)("Stay on top of your SEO progress with this task list. Complete each task to ensure your site is optimized and aligned with best SEO practices.","wordpress-seo")})]}),(0,Qt.jsx)(l.Paper.Content,{children:(0,Qt.jsxs)(i.TaskListProvider,{locale:f,children:[(0,Qt.jsx)(i.TasksProgressBar,{completedTasks:h,totalTasks:m,isLoading:y,className:"yst-max-w-screen-sm",label:(0,Wt.__)("Tasks","wordpress-seo")}),(0,Qt.jsxs)(i.TaskListTable,{className:"yst-mt-6",children:[(0,c.isEmpty)(n)&&y&&$u.map((e,t)=>(0,Qt.jsx)(i.TaskRow.Loading,{titleClassName:`yst-w-20 ${e}`},`${t}-loading-task`)),d===nr&&(0,Qt.jsx)(i.GetTasksErrorRow,{message:u}),!(0,c.isEmpty)(p)&&(0,c.values)(p).filter(e=>!e.parentTaskId).map(e=>(0,Qt.jsx)(ep,{...e},e.id)),!s&&(0,Qt.jsx)(Xu,{})]}),(0,Qt.jsx)(tp,{})]})})]})},Wu="/alert-center",Vu="/first-time-configuration",Gu="/task-list",Ku=()=>{const{handleDismiss:e}=(0,l.useModalNotificationContext)(),t=(0,l.useSvgAria)(),s=Gu,n=ot(),{hideOptInNotification:o}=(0,r.useDispatch)(pi),i=(0,a.useCallback)(async()=>{o("task_list"),e(),n(s)},[s,n]);return(0,Qt.jsxs)("div",{className:"yst-flex yst-gap-3 yst-justify-end yst-mt-3",children:[(0,Qt.jsx)(l.Button,{size:"small",variant:"tertiary",onClick:e,children:(0,Wt.__)("Dismiss","wordpress-seo")}),(0,Qt.jsxs)(l.Button,{size:"small",className:"yst-gap-1",onClick:i,children:[(0,Wt.__)("Show me","wordpress-seo"),(0,Qt.jsx)(Us(),{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180",...t})]})]})},Yu=({isOpen:e,onClose:t})=>{const{setOptInNotificationSeen:s,hideOptInNotification:n}=(0,r.useDispatch)(pi),o=(0,l.useSvgAria)();(0,a.useEffect)(()=>(s("task_list"),()=>{n("task_list")}),[]);const i=fi("selectPreference",[],"isRtl");let c;return c=(()=>{const e=document.getElementById("adminmenuwrap");return!e||e.offsetWidth>100})()?"md:yst-start-40 rtl:md:yst-start-44":i?"md:yst-start-[3.25rem]":"md:yst-start-10",(0,Qt.jsx)(l.ModalNotification,{isOpen:e,onClose:t,className:Is()("yst-z-[9999]",c),position:i?"bottom-right":"bottom-left","aria-label":(0,Wt.__)("New: Your SEO Task list","wordpress-seo"),children:(0,Qt.jsxs)(l.ModalNotification.Panel,{className:"yst-w-96",children:[(0,Qt.jsxs)("div",{className:"yst-flex yst-gap-3",children:[(0,Qt.jsx)("div",{className:"yst-flex-shrink-0",children:(0,Qt.jsx)(Sl,{className:"yst-w-5 yst-h-5 yst-fill-primary-500",...o})}),(0,Qt.jsxs)("div",{className:"yst-flex-1",children:[(0,Qt.jsx)(l.ModalNotification.Title,{title:(0,Wt.__)("New: Your SEO Task list","wordpress-seo"),className:"yst-mb-1"}),(0,Qt.jsx)(l.ModalNotification.Message,{message:(0,Wt.__)("Stay on top of SEO with a clear task list tailored to your site.","wordpress-seo")})]}),(0,Qt.jsx)("div",{children:(0,Qt.jsx)(l.ModalNotification.Close,{dismissScreenReaderLabel:(0,Wt.__)("Dismiss","wordpress-seo")})})]}),(0,Qt.jsx)(Ku,{})]})})};Yu.propTypes={isOpen:Jt().bool.isRequired,onClose:Jt().func.isRequired};const Ju=()=>{const e=fi("selectIsOptInNotificationSeen",[],"task_list"),{pathname:t}=rt(),{hideOptInNotification:s}=(0,r.useDispatch)(pi),n=t!==Vu&&!e&&t!==Gu,o=(0,a.useCallback)(()=>{s("task_list")},[s]);return n?(0,Qt.jsx)(Yu,{isOpen:n,onClose:o}):null};var Qu=s(1298),Zu=s.n(Qu);const Xu=()=>{const e=(0,r.select)(pi).selectLink("https://yoa.st/task-list-upsell-table-footer");return(0,Qt.jsx)(l.Table.Row,{children:(0,Qt.jsx)(l.Table.Cell,{className:"yst-bg-slate-50",colSpan:4,children:(0,Qt.jsxs)("div",{className:"yst-flex yst-justify-between lg:yst-flex-row yst-flex-col yst-gap-2",children:[(0,Qt.jsxs)("div",{className:"yst-flex yst-justify-start yst-gap-4",children:[(0,Qt.jsx)("div",{className:"yst-w-10 yst-h-10 yst-rounded-full yst-bg-amber-300 yst-flex yst-items-center yst-justify-center yst-shrink-0",children:(0,Qt.jsx)(Zu(),{className:"yst-w-5 yst-h-5 yst-text-amber-900"})}),(0,Qt.jsxs)("div",{children:[(0,Qt.jsx)(l.Title,{size:"5",as:"h3",className:"yst-text-slate-800 yst-leading-5",children:(0,Wt.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */ /* translators: %1$s expands to Yoast SEO Premium. */
(0,Wt.__)("Unlock all %1$s tasks","wordpress-seo"),"Yoast SEO Premium")}),(0,Qt.jsx)("p",{className:"yst-leading-5",children:(0,Wt.__)("Get automated technical SEO & optimize content in a breeze","wordpress-seo")})]})]}),(0,Qt.jsxs)(l.Button,{variant:"upsell",as:"a",href:e,target:"_blank",className:"yst-flex yst-items-center yst-gap-1.5 yst-pe-2 yst-mt-4 lg:yst-mt-0",children:[(0,Wt.__)("Unlock with Premium","wordpress-seo"),(0,Qt.jsx)(es(),{className:"yst-w-4 yst-h-4 yst-text-amber-900"})]})]})})})},ep=({title:e,id:t,duration:s,priority:n,isCompleted:o,badge:l})=>{const{resetTaskError:d,setCurrentOpenTaskId:u}=(0,r.useDispatch)(pi),p=(0,r.useSelect)(e=>e(pi).selectTasks(),[]),m=(0,c.values)(p).filter(e=>t&&e.parentTaskId===t),h=(0,a.useMemo)(()=>m.length,[m]),f=(0,a.useMemo)(()=>m.filter(e=>e.isCompleted).length,[m]),y=(0,a.useCallback)(()=>{d(t),u(t)},[d,u,t]);return(0,Qt.jsx)(i.TaskRow,{title:e,duration:s,priority:n,isCompleted:o,onClick:y,completedTasks:f,totalTasks:h,badge:l})},tp=()=>{const{setCurrentOpenTaskId:e,completeTask:t}=(0,r.useDispatch)(pi),{completeTaskEndpoint:s,nonce:n,currentOpenTask:o,tasks:l}=(0,r.useSelect)(e=>{const t=e(pi);return{completeTaskEndpoint:t.selectTasksEndpoints().completeTask,nonce:t.selectNonce(),currentOpenTask:t.selectCurrentOpenTask(),tasks:t.selectTasks()}},[]),{status:d,errorMessage:u,parentTaskTitle:p}=(0,r.useSelect)(e=>{const t=e(pi);return{status:t.selectTaskStatus(null==o?void 0:o.id),errorMessage:t.selectTaskError(null==o?void 0:o.id),parentTaskTitle:t.selectTaskTitle(null==o?void 0:o.parentTaskId)}},[o]),m=(0,c.values)(l).filter(e=>(null==o?void 0:o.parentTaskId)&&e.parentTaskId===(null==o?void 0:o.parentTaskId)),h=(0,c.values)(l).filter(e=>(null==o?void 0:o.id)&&e.parentTaskId===(null==o?void 0:o.id)),f=(0,a.useCallback)(async()=>{t(null==o?void 0:o.id,s,n)},[o,s,n,t]),y=(0,a.useCallback)(()=>{e(null)},[e]),g=(0,a.useMemo)(()=>(0,c.isEmpty)(m)?h.length:m.length,[h,m]),v=(0,a.useMemo)(()=>(0,c.isEmpty)(m)?h.filter(e=>e.isCompleted).length:m.filter(e=>e.isCompleted).length,[h,m]);return o&&(0,Qt.jsx)(i.TaskModal,{isOpen:!(0,c.isEmpty)(o),onClose:y,...o,taskId:null==o?void 0:o.id,callToAction:{onClick:f,...null==o?void 0:o.callToAction},isLoading:d===rr,isError:d===nr,errorMessage:u,totalTasks:g,completedTasks:v,parentTaskTitle:p,onProgressBadgeClick:e,children:o.isParentTask&&(0,Qt.jsx)(i.ChildTasks,{tasks:h,singleTaskOnClick:e})})},sp=(0,window.wp.compose.compose)([(0,r.withSelect)((e,t)=>{const{isAlertDismissed:s}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:s(t.alertKey)}}),(0,r.withDispatch)((e,t)=>{const{dismissAlert:s}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>s(t.alertKey)}})]),rp=sp,np=({children:e,id:t,hasIcon:s=!0,title:r,image:n=null,isAlertDismissed:o,onDismissed:a,className:i=""})=>o?null:(0,Qt.jsxs)("div",{id:t,className:Is()("notice-yoast yoast is-dismissible",i),children:[(0,Qt.jsxs)("div",{className:"notice-yoast__container",children:[(0,Qt.jsxs)("div",{children:[(0,Qt.jsxs)("div",{className:"notice-yoast__header",children:[s&&(0,Qt.jsx)("span",{className:"yoast-icon"}),(0,Qt.jsx)("h2",{className:"notice-yoast__header-heading yoast-notice-migrated-header",children:r})]}),(0,Qt.jsx)("div",{className:"notice-yoast-content",children:(0,Qt.jsx)("p",{children:e})})]}),n&&(0,Qt.jsx)(n,{height:"60"})]}),(0,Qt.jsx)("button",{type:"button",className:"notice-dismiss",onClick:a,children:(0,Qt.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,Wt.__)("Dismiss this notice.","wordpress-seo")})})]});np.propTypes={children:Jt().node.isRequired,id:Jt().string.isRequired,hasIcon:Jt().bool,title:Jt().any.isRequired,image:Jt().elementType,isAlertDismissed:Jt().bool.isRequired,onDismissed:Jt().func.isRequired,className:Jt().string};const op=rp(np),ap=({store:e="yoast-seo/editor",image:t=null,url:s,...n})=>(0,r.useSelect)(t=>t(e).getIsPremium())?null:(0,Qt.jsxs)(op,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,Wt.__)("Ready to boost your online visibility?","wordpress-seo"),image:t,url:s,...n,children:[Vt((0,Wt.sprintf)(/* translators: 1: bold open tag; 2: "FREE"; 3: bold close tag; 4: "Yoast SEO". */ /* translators: 1: bold open tag; 2: "FREE"; 3: bold close tag; 4: "Yoast SEO". */
(0,Wt.__)("Access our %1$s%2$s%3$s webinars and podcasts to get started with %4$s and build the foundational skills and confidence needed for sustainable success.","wordpress-seo"),"<strong>","FREE","</strong>","Yoast SEO"),{strong:(0,Qt.jsx)("strong",{})})," ",(0,Qt.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",children:(0,Wt.__)("Sign up today!","wordpress-seo")})]});ap.propTypes={store:Jt().string,image:Jt().elementType,url:Jt().string.isRequired};const ip=ap,lp=({notices:e,webinarIntroSettingsUrl:t})=>(0,Qt.jsxs)("div",{children:[(0,Qt.jsx)(ip,{store:pi,url:t,image:null,className:Is()(e.filter(e=>!e.isDismissed).length>0?"yst-mb-3":"yst-mb-8","yoast-webinar-dashboard")}),e.length>0&&(0,Qt.jsxs)("div",{className:e.filter(e=>!e.isDismissed).length>0?"yst-mb-8":"",children:[" ",e.map((e,t)=>(0,Qt.jsx)(Qi,{id:e.id||"yoast-general-page-notice-"+t,title:e.header,isDismissable:e.isDismissable,className:e.isDismissed?"yst-hidden":"yst-mb-3",children:e.content},t))]})]});lp.propTypes={notices:Jt().arrayOf(Jt().shape({id:Jt().string,header:Jt().string.isRequired,content:Jt().string.isRequired,isDismissable:Jt().bool.isRequired,isDismissed:Jt().bool.isRequired})).isRequired,webinarIntroSettingsUrl:Jt().string.isRequired};const cp=({idSuffix:e=""})=>{const t=(0,l.useSvgAria)(),s=fi("selectPreference",[],"isPremium"),r=fi("selectIsTaskListEnabled",[]);return(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)("header",{className:"yst-px-3 yst-mb-6 yst-space-y-6",children:(0,Qt.jsx)(qt,{id:`link-yoast-logo${e}`,to:"/",className:"yst-inline-block yst-rounded-md focus:yst-ring-primary-500","aria-label":"Yoast SEO"+(s?" Premium":""),children:(0,Qt.jsx)(lr,{className:"yst-w-40",...t})})}),(0,Qt.jsxs)("ul",{className:"yst-mt-1 yst-px-0.5 yst-space-y-4",children:[(0,Qt.jsx)(as,{to:"/",label:(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)(oi(),{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Wt.__)("Dashboard","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"}),r&&(0,Qt.jsx)(as,{to:Gu,label:(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)(ii(),{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Wt.__)("Task list","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"}),(0,Qt.jsx)(as,{to:Wu,label:(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)(ri(),{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Wt.__)("Alert center","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"}),(0,Qt.jsx)(as,{to:Vu,label:(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsx)(ti(),{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Wt.__)("First-time configuration","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"})]})]})};cp.propTypes={idSuffix:Jt().string};const dp=()=>{const e=(0,r.useSelect)(e=>e(pi).selectNotices(),[]);(0,a.useEffect)(()=>{!function(e){e.forEach(e=>e.originalNotice.remove())}(e)},[e]);const{pathname:t}=rt(),s=fi("selectAlertToggleError",[],[]),{setAlertToggleError:n}=(0,r.useDispatch)(pi);(()=>{const e=(0,r.useSelect)(e=>e(pi).selectActiveAlertsCount(),[]);(0,a.useEffect)(()=>{(e=>{const t=(0,Wt.sprintf)(/* translators: Hidden accessibility text; %s: number of notifications. */ /* translators: Hidden accessibility text; %s: number of notifications. */
(0,Wt._n)("%s notification","%s notifications",e,"wordpress-seo"),e),s=document.querySelectorAll("#toplevel_page_wpseo_dashboard .update-plugins");for(const r of s)r.className=`update-plugins count-${e}`,hi(r,".plugin-count",String(e)),hi(r,".screen-reader-text",t);const r=document.querySelectorAll("#wp-admin-bar-wpseo-menu .yoast-issue-counter");for(const s of r)s.classList.toggle("wpseo-no-adminbar-notifications",0===e),hi(s,".yoast-issues-count",String(e)),hi(s,".screen-reader-text",t)})(e)},[e])})();const o=(0,a.useCallback)(()=>{n(null)},[n]),i=(0,r.useSelect)(e=>e(pi).selectLinkParams(),[]),c=(0,Go.addQueryArgs)("https://yoa.st/webinar-intro-settings",i);return(0,Qt.jsxs)(Qt.Fragment,{children:[(0,Qt.jsxs)(l.SidebarNavigation,{activePath:t,children:[(0,Qt.jsx)(l.SidebarNavigation.Mobile,{openButtonId:"button-open-dashboard-navigation-mobile",closeButtonId:"button-close-dashboard-navigation-mobile"
/* translators: Hidden accessibility text. */,openButtonScreenReaderText:(0,Wt.__)("Open dashboard navigation","wordpress-seo")
/* translators: Hidden accessibility text. */,closeButtonScreenReaderText:(0,Wt.__)("Close dashboard navigation","wordpress-seo"),"aria-label":(0,Wt.__)("Dashboard navigation","wordpress-seo"),children:(0,Qt.jsx)(cp,{idSuffix:"-mobile"})}),(0,Qt.jsxs)("div",{className:"yst-p-4 min-[783px]:yst-p-8 yst-flex yst-gap-4",children:[(0,Qt.jsx)("aside",{className:"yst-sidebar yst-sidebar-nav yst-shrink-0 yst-hidden min-[783px]:yst-block yst-pb-6 yst-bottom-0 yst-w-56",children:(0,Qt.jsx)(l.SidebarNavigation.Sidebar,{children:(0,Qt.jsx)(cp,{})})}),(0,Qt.jsx)("div",{className:"yst-grow yst-max-w-page",children:(0,Qt.jsx)("div",{className:"yst-space-y-6 yst-mb-8 xl:yst-mb-0",children:(0,Qt.jsx)("main",{children:(0,Qt.jsxs)(Xa,{appear:!0,show:!0,enter:"yst-transition-opacity yst-delay-100 yst-duration-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",children:[t!==Vu&&(0,Qt.jsx)(lp,{notices:e,webinarIntroSettingsUrl:c}),(0,Qt.jsx)(St,{})]},t)})})})]})]}),(0,Qt.jsx)(Ju,{}),(0,Qt.jsx)(l.Notifications,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all yst-start-48",position:"bottom-left",children:s&&(0,Qt.jsx)(l.Notifications.Notification,{id:"toggle-alert-error",title:(0,Wt.__)("Something went wrong","wordpress-seo"),variant:"error",dismissScreenReaderLabel:(0,Wt.__)("Dismiss","wordpress-seo"),size:"large",autoDismiss:4e3,onDismiss:o,children:"error"===s.type?(0,Wt.__)("This problem can't be hidden at this time. Please try again later.","wordpress-seo"):(0,Wt.__)("This notification can't be hidden at this time. Please try again later.","wordpress-seo")})})]})},up=()=>{const e=fi("selectPreference",[],"isPremium"),t=fi("selectUpsellSettingsAsProps"),{isPromotionActive:s}=(0,r.useSelect)(pi),n=fi("selectLink",[],"https://yoa.st/17h"),o=fi("selectLink",[],"https://yoa.st/admin-footer-upsell-woocommerce"),a=fi("selectPreference",[],"isWooCommerceActive");return e?null:(0,Qt.jsx)(Ks,{premiumLink:a?o:n,premiumUpsellConfig:t,isPromotionActive:s,isWooCommerceActive:a})},pp=({contentClassName:e="",children:t=null})=>{const s=fi("selectPreference",[],"isPremium"),n=fi("selectLink",[],"https://yoa.st/jj"),o=fi("selectLink",[],"https://yoa.st/admin-sidebar-upsell-woocommerce"),a=fi("selectUpsellSettingsAsProps"),i=fi("selectLink",[],"https://yoa.st/3t6"),{isPromotionActive:l}=(0,r.useSelect)(pi),c=fi("selectPreference",[],"isWooCommerceActive");return(0,Qt.jsxs)("div",{className:"yst-flex yst-gap-6 xl:yst-flex-row yst-flex-col",children:[(0,Qt.jsx)("div",{className:Is()("yst-@container yst-flex yst-flex-grow yst-flex-col",e),children:t}),!s&&(0,Qt.jsx)("div",{className:"yst-min-w-[16rem] xl:yst-max-w-[16rem]",children:(0,Qt.jsx)("div",{className:"yst-sticky yst-top-16",children:(0,Qt.jsx)(Ys,{premiumLink:c?o:n,premiumUpsellConfig:a,academyLink:i,isPromotionActive:l,isWooCommerceActive:c})})})]})},mp=window.yoast.externals.redux;function hp({alertKey:e}){return new Promise(t=>wpseoApi.post("alerts/dismiss",{key:e},()=>t()))}const fp="adminNotices",yp=(0,Fo.createSlice)({name:fp,initialState:{notices:function(){const e=[...Array.from(document.querySelectorAll(".notice-yoast:not(.yoast-webinar-dashboard)")),...Array.from(document.querySelectorAll(".yoast-migrated-notice"))],t=e.map(e=>e.id),s=e.map(e=>e.querySelector(".yoast-notice-migrated-header")),r=function(e){return e.forEach(e=>{e&&e.querySelectorAll("a.button").forEach(e=>{e.classList.remove("button"),e.classList.add("yst-button"),e.classList.add("yst-button--primary"),e.classList.add("yst-mt-4")})}),e}(e.map(e=>e.querySelector(".notice-yoast-content"))),n=e.map(e=>e.classList.contains("is-dismissible"));return e.map((e,o)=>({originalNotice:e,id:t[o],header:s[o].outerHTML,content:r[o].outerHTML,isDismissable:n[o],isDismissed:!1}))}()},reducers:{dismissNotice(e,{payload:t}){e.notices.map(e=>{e.id===t&&(e.isDismissed=!0)})},restoreNotice(e,{payload:t}){e.notices.map(e=>{e.id===t&&(e.isDismissed=!1)})}}}),gp=yp.getInitialState,vp={selectNotices:e=>(0,c.get)(e,`${fp}.notices`,[])},bp=yp.actions,xp=yp.reducer,wp="alertCenter",Sp="toggleAlertVisibility",_p=(0,Fo.createSlice)({name:wp,initialState:{alertToggleError:null,alerts:[],resolveSuccessMessage:null},reducers:{toggleAlert:(e,t)=>{const s=e.alerts.findIndex(e=>e.id===t);-1!==s&&(e.alerts[s].dismissed=!e.alerts[s].dismissed)},setAlertToggleError:(e,t)=>{const s=e.alerts.findIndex(e=>e.id===t);e.alertToggleError=-1===s?null:e.alerts[s]},setResolveSuccessMessage:(e,{payload:t})=>{e.resolveSuccessMessage=t},removeAlert(e,{payload:t}){e.alerts=e.alerts.filter(e=>e.id!==t)}},extraReducers:e=>{e.addCase(`${Sp}/${tr}`,(e,{payload:{id:t}})=>{_p.caseReducers.toggleAlert(e,t)}),e.addCase(`${Sp}/${sr}`,(e,{payload:{id:t}})=>{_p.caseReducers.setAlertToggleError(e,t)})}}),Ep=_p.getInitialState,jp=e=>(0,c.get)(e,`${wp}.alerts`,[]),kp=(0,Fo.createSelector)([jp],e=>e.filter(e=>!e.dismissed)),Cp={selectActiveProblems:(0,Fo.createSelector)([kp],e=>e.filter(e=>"error"===e.type)),selectDismissedProblems:(0,Fo.createSelector)([jp],e=>e.filter(e=>"error"===e.type&&e.dismissed)),selectActiveNotifications:(0,Fo.createSelector)([kp],e=>e.filter(e=>"warning"===e.type)),selectDismissedNotifications:(0,Fo.createSelector)([jp],e=>e.filter(e=>"warning"===e.type&&e.dismissed)),selectAlertToggleError:e=>(0,c.get)(e,`${wp}.alertToggleError`,null),selectResolveSuccessMessage:e=>(0,c.get)(e,`${wp}.resolveSuccessMessage`,null),selectAlert:(0,Fo.createSelector)([jp,(e,t)=>t],(e,t)=>e.find(e=>e.id===t)),selectActiveAlertsCount:(0,Fo.createSelector)([kp],e=>e.length)},Rp={..._p.actions,toggleAlertStatus:function*(e,t,s=!1){yield{type:`${Sp}/${er}`};try{return yield{type:Sp,payload:{id:e,nonce:t,hidden:s}},{type:`${Sp}/${tr}`,payload:{id:e}}}catch(t){return{type:`${Sp}/${sr}`,payload:{id:e}}}}},Tp={[Sp]:async({payload:e})=>{const t=new URLSearchParams;t.append("action",e.hidden?"yoast_restore_notification":"yoast_dismiss_notification"),t.append("notification",e.id),t.append("nonce",e.nonce);const s=(0,r.select)(pi).selectPreference("ajaxUrl");if(!(await fetch(s,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:t.toString()})).ok)throw new Error("Failed to dismiss notification")}},Op=_p.reducer,Np=()=>({...(0,c.get)(window,"wpseoScriptData.preferences",{}),ajaxUrl:(0,c.get)(window,"ajaxurl","")}),Pp=(0,Fo.createSlice)({name:"preferences",initialState:Np(),reducers:{}}),Lp={selectPreference:(e,t,s={})=>(0,c.get)(e,`preferences.${t}`,s),selectPreferences:e=>(0,c.get)(e,"preferences",{})};Lp.selectUpsellSettingsAsProps=(0,Fo.createSelector)([e=>Lp.selectPreference(e,"upsellSettings",{}),(e,t="premiumCtbId")=>t],(e,t)=>({"data-action":null==e?void 0:e.actionId,"data-ctb-id":null==e?void 0:e[t]}));const Ip=Pp.actions,Ap=Pp.reducer,Mp="optInNotification",Dp="setOptInNotificationSeen",Fp=(0,Fo.createSlice)({name:Mp,initialState:{seen:{}},reducers:{hideOptInNotification(e,t){const s=t.payload;e.seen[s]=!0}}}),zp=Fp.getInitialState,Up={selectIsOptInNotificationSeen:(e,t)=>(0,c.get)(e,[Mp,"seen",t],!1)},Bp={...Fp.actions,setOptInNotificationSeen:function*(e){yield{type:`${Dp}/${er}`};try{return yield{type:Dp,payload:e},{type:`${Dp}/${tr}`,payload:e}}catch(t){return console.error("Error setting opt-in notification as seen:",t),{type:`${Dp}/${sr}`,payload:e}}}},qp={[Dp]:async({payload:e})=>{await Dn()({path:"yoast/v1/seen-opt-in-notification",method:"POST",data:{key:e}})}},$p=Fp.reducer,{currentPromotions:Hp,dismissedAlerts:Wp,isPremium:Vp}=mp.reducers,{isAlertDismissed:Gp,getIsPremium:Kp,isPromotionActive:Yp}=mp.selectors,{dismissAlert:Jp,setCurrentPromotions:Qp,setDismissedAlerts:Zp,setIsPremium:Xp}=mp.actions;o()(()=>{var s,n;const o=document.getElementById("yoast-seo-general");if(!o)return;const d=(0,c.get)(window,"wpseoScriptData.dashboard.nonce","");(({initialState:t={}}={})=>{(0,r.register)((({initialState:t})=>(0,r.createReduxStore)(pi,{actions:{...$o,...Zo,...Ip,...Rp,dismissAlert:Jp,setCurrentPromotions:Qp,setDismissedAlerts:Zp,setIsPremium:Xp,...bp,...Bp,...i.taskListActions},selectors:{...qo,...Qo,...Lp,...Cp,isAlertDismissed:Gp,getIsPremium:Kp,isPromotionActive:Yp,...vp,...Up,...i.taskListSelectors},initialState:(0,c.merge)({},{[zo]:Bo(),[Ko]:Jo(),preferences:Np(),[wp]:Ep(),currentPromotions:{promotions:[]},[fp]:gp(),[Mp]:zp(),[i.TASK_LIST_NAME]:(0,i.getInitialTaskListState)()},t),reducer:(0,r.combineReducers)({[zo]:Ho,[Ko]:Xo,preferences:Ap,[wp]:Op,currentPromotions:Hp,dismissedAlerts:Wp,isPremium:Vp,[fp]:xp,[Mp]:$p,[i.TASK_LIST_NAME]:i.taskListReducer}),controls:{...Tp,...e,...qp,...i.taskListControls}}))({initialState:t}))})({initialState:{[zo]:(0,c.get)(window,"wpseoScriptData.adminUrl",""),[Ko]:(0,c.get)(window,"wpseoScriptData.linkParams",{}),[wp]:{alerts:(0,c.get)(window,"wpseoScriptData.alerts",[])},currentPromotions:{promotions:(0,c.get)(window,"wpseoScriptData.currentPromotions",[])},dismissedAlerts:(0,c.get)(window,"wpseoScriptData.dismissedAlerts",{}),isPremium:(0,c.get)(window,"wpseoScriptData.preferences.isPremium",!1),[fp]:{resolvedNotices:[]},[Mp]:{seen:(0,c.get)(window,"wpseoScriptData.optInNotificationSeen",!1)},[i.TASK_LIST_NAME]:{enabled:(0,c.get)(window,"wpseoScriptData.taskListConfiguration.enabled",!1),endpoints:(0,c.get)(window,"wpseoScriptData.taskListConfiguration.endpoints",{}),tasks:{},nonce:d}}});const u=(0,r.select)(pi).selectPreference("isRtl",!1),p=(0,c.get)(window,"wpseoScriptData.dashboard.contentTypes",[]),m=(0,c.get)(window,"wpseoScriptData.dashboard.displayName","User"),h=(null===(s=document.getElementsByTagName("html"))||void 0===s||null===(n=s[0])||void 0===n?void 0:n.getAttribute("lang"))||"en-US",f={indexables:(0,c.get)(window,"wpseoScriptData.dashboard.indexablesEnabled",!1),seoAnalysis:(0,c.get)(window,"wpseoScriptData.dashboard.enabledAnalysisFeatures.keyphraseAnalysis",!1),readabilityAnalysis:(0,c.get)(window,"wpseoScriptData.dashboard.enabledAnalysisFeatures.readabilityAnalysis",!1)},y={seoScores:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.seoScores",""),readabilityScores:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.readabilityScores",""),timeBasedSeoMetrics:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.timeBasedSeoMetrics",""),siteKitConfigurationDismissal:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.siteKitConfigurationDismissal",""),siteKitConsentManagement:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.siteKitConsentManagement",""),setupStepsTracking:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.setupStepsTracking","")},v={"X-Wp-Nonce":d},_={dashboardLearnMore:(0,r.select)(pi).selectLink("https://yoa.st/dashboard-learn-more"),errorSupport:(0,r.select)(pi).selectAdminLink("?page=wpseo_page_support"),siteKitLearnMore:(0,r.select)(pi).selectLink("https://yoa.st/dashboard-site-kit-learn-more"),siteKitConsentLearnMore:(0,r.select)(pi).selectLink("https://yoa.st/dashboard-site-kit-consent-learn-more")},E=(0,c.get)(window,"wpseoScriptData.dashboard.siteKitConfiguration",{installUrl:"",activateUrl:"",setupUrl:"",dashboardUrl:"",isAnalyticsConnected:!1,isFeatureEnabled:!1,isSetupWidgetDismissed:!1,isVersionSupported:!1,capabilities:{installPlugins:!1,viewSearchConsoleData:!1,viewAnalyticsData:!1},connectionStepsStatuses:{isInstalled:!1,isActive:!1,isSetupCompleted:!1,isConsentGranted:!1},isRedirectedFromSiteKit:!1}),j={storagePrefix:(0,c.get)(window,"wpseoScriptData.dashboard.browserCache.storagePrefix",""),yoastVersion:(0,c.get)(window,"wpseoScriptData.dashboard.browserCache.yoastVersion",""),widgetsCacheTtl:(0,c.get)(window,"wpseoScriptData.dashboard.browserCache.widgetsCacheTtl",{})},k=new i.RemoteDataProvider({headers:v}),C=new eo({contentTypes:p,userName:m,features:f,endpoints:y,headers:v,links:_,siteKitConfiguration:E}),R={comparisonMetricsDataFormatter:new i.ComparisonMetricsDataFormatter({locale:h}),plainMetricsDataFormatter:new i.PlainMetricsDataFormatter({locale:h})},T=Object.entries(j.widgetsCacheTtl).reduce((e,[t,s])=>(e[t]=new i.RemoteCachedDataProvider({headers:v},j.storagePrefix,j.yoastVersion,s.ttl),e),{}),O={data:{setupWidgetLoaded:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.setupWidgetLoaded","no"),firstInteractionStage:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.firstInteractionStage",""),lastInteractionStage:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.lastInteractionStage",""),setupWidgetTemporarilyDismissed:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.setupWidgetTemporarilyDismissed",""),setupWidgetPermanentlyDismissed:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.setupWidgetPermanentlyDismissed","")},endpoint:C.getEndpoint("setupStepsTracking")},N={setupWidgetDataTracker:new oo(O,k)},P=new Do(C,k,T,R,N);C.isSiteKitConnectionCompleted()&&E.isVersionSupported&&C.setSiteKitConfigurationDismissed(!0);const L=(0,r.select)(pi).selectIsTaskListEnabled(),I=(A=jt((0,Qt.jsxs)(_t,{path:"/",element:(0,Qt.jsx)(dp,{}),errorElement:(0,Qt.jsx)(el,{className:"yst-m-8"}),children:[(0,Qt.jsx)(_t,{path:"/",element:(0,Qt.jsxs)(pp,{children:[(0,Qt.jsx)(Bn,{widgetFactory:P,userName:m,features:f,links:_,sitekitFeatureEnabled:E.isFeatureEnabled,dataProvider:C}),(0,Qt.jsx)(up,{})]}),errorElement:(0,Qt.jsx)(el,{})}),L&&(0,Qt.jsx)(_t,{path:Gu,element:(0,Qt.jsxs)(pp,{children:[(0,Qt.jsx)(Hu,{}),(0,Qt.jsx)(up,{})]}),errorElement:(0,Qt.jsx)(el,{})}),(0,Qt.jsx)(_t,{path:Wu,element:(0,Qt.jsxs)(pp,{children:[(0,Qt.jsx)(qu,{}),(0,Qt.jsx)(up,{})]}),errorElement:(0,Qt.jsx)(el,{})}),(0,Qt.jsx)(_t,{path:Vu,element:(0,Qt.jsx)(Bu,{}),errorElement:(0,Qt.jsx)(el,{})}),(0,Qt.jsx)(_t,{path:"*",element:(0,Qt.jsx)(wt,{to:"/",replace:!0})})]})),de({basename:void 0,future:Ct({},void 0,{v7_prependBasename:!0}),history:(M={window:void 0},void 0===M&&(M={}),S(function(e,t){let{pathname:s="/",search:r="",hash:n=""}=w(e.location.hash.substr(1));return s.startsWith("/")||s.startsWith(".")||(s="/"+s),b("",{pathname:s,search:r,hash:n},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let s=e.document.querySelector("base"),r="";if(s&&s.getAttribute("href")){let t=e.location.href,s=t.indexOf("#");r=-1===s?t:t.slice(0,s)}return r+"#"+("string"==typeof t?t:x(t))},function(e,t){g("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},M)),hydrationData:Tt(),routes:A,mapRouteProperties:kt,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize());var A,M;(0,a.createRoot)(o).render((0,Qt.jsx)(l.Root,{context:{isRtl:u},children:(0,Qt.jsx)(t.SlotFillProvider,{children:(0,Qt.jsx)(Dt,{router:I})})}))})})()})();
Home - Capital GMC Buick Regina
Skip to content
{{ $t(category) }}
Error
{{vehicle.modelData.year}} {{vehicle.modelData.make}} {{vehicle.modelData.model}}
Starting from {{vehicle.modelData.startingPrice | moneyFormat(lang)}}
Welcome to Capital GMC BUICK – REGINA
Thank you for choosing Capital GMC Buick | Regina, your premier certified Buick and GMC dealership proudly serving drivers in Regina and the surrounding communities. Whether you’re searching for a brand-new Buick or GMC vehicle or a meticulously inspected pre-owned model, we have a diverse selection to match your needs and lifestyle.
Beyond our impressive inventory, we offer a seamless and stress-free financing experience through our well-connected finance centre, where our team of experts is dedicated to securing the best loan or lease options for you, quickly, transparently, and hassle-free.
But our commitment to you doesn’t stop at the sale. Our state-of-the-art service centre is staffed with skilled Buick and GMC technicians who use the latest equipment and genuine OEM parts to keep your vehicle running at its best. From routine maintenance to complex repairs, we’ve got you covered.
Experience top-tier customer service, quality vehicles, and expert care, all in one place. Visit Capital GMC Buick | Regina today or call us at 306-205-8072 with any questions. We’re here to help!
Ask a Question
Capital GMC Buick – Regina
Contact Us
Have a question or need assistance? Fill out the form and we will reach out to you as soon as possible.
Notice: JavaScript is required for this content.
CLOSE
Schedule a Visit
Let us know when you are coming and how we can assist you. We can ensure someone will be on hand to help you out at the desired date and time.
Notice: JavaScript is required for this content.
CLOSE
Find a Career
Have a look at our list of available positions and apply online today to join our team!
×
Opportunities to Grow
The auto industry is constantly changing and we want to continue to grow. We offer growth, leadership & mentorship programs to allow our staff to grow with us.
×
Competitive Salary
We have a significant earning potential with incentive-based pay in most roles. We also offer an employee referral bonus with paid bonuses.
×
Health & Dental
We offer a comprehensive benefits package including extended health, dental, and vision care. We also include paramedical, life insurance, paid sick leave, short & long-term disability coverages.
×
Vacation
We value our employees and want everyone to take their vacation time. We offer a minimum of 2 weeks vacation each year.
×
Training & Development
We have many opportunities for paid education and training in-house as well as training from the Manufacturer.
×
$10,000 Cash Giveaway – Terms & Conditions
All October long, stop by Capital GMC Buick Cadillac, to enter for your chance to win $10,000 cash. No purchase is required, but entries must be made in-store.
The contest is open to residents of Saskatchewan who are 18+. Dealership employees and their households are not eligible. Entries will be accepted from October 1 to October 31, 2025. A random draw will take place on November 1, 2025.
The prize is one $10,000 award, paid by cheque, and must be accepted as awarded. Winner will be contacted by phone or email and must respond within 7 days or another entry may be drawn. Odds of winning depend on the number of entries received.By entering, you agree that Capital Automotive Group may use your name and photo for winner announcements. The contest is governed by the laws of Saskatchewan.
Notice: JavaScript is required for this content.
CLOSE