/home/skemvmse/www/wp-content/plugins/wordpress-seo/js/dist/general-page.js
(()=>{var e={4184:(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 a=typeof s;if("string"===a||"number"===a)e.push(s);else if(Array.isArray(s)){if(s.length){var o=n.apply(null,s);o&&e.push(o)}}else if("object"===a){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)}()},8133:(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},a=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}}(),o=c(s(9196)),i=c(s(5890)),l=c(s(4306));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={},a=Object.keys(e),o=0;o<a.length;o++){var i=a[o];-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",a="visible";f(e.height)?(r=e.height<0||"0"===e.height?0:e.height,a="hidden"):y(e.height)&&(r="0%"===e.height?0:e.height,a="hidden"),s.animationStateClasses=n({},u,e.animationStateClasses);var o=s.getStaticStateClasses(r);return s.state={animationStateClasses:o,height:r,overflow:a,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),a(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,a=this.props,o=a.delay,i=a.duration,c=a.height,u=a.onAnimationEnd,p=a.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+o,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,a=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});_&&a&&(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 o.default.createElement("div",n({},m.apply(void 0,[this.props].concat(p)),{"aria-hidden":C,className:k,id:g,style:E}),o.default.createElement("div",{className:u,style:j,ref:function(e){return t.contentElement=e}},i))}}]),t}(o.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.Z=v},4306:(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 a=typeof s;if("string"===a||"number"===a)e.push(s);else if(Array.isArray(s)&&s.length){var o=n.apply(null,s);o&&e.push(o)}else if("object"===a)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)}()},591: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("")}},9176: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++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},3409:(e,t,s)=>{var r=s(9176),n=s(591);e.exports=function(e,t,s){var a=t&&s||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[a+i]=o[i];return t||n(o)}},9196:e=>{"use strict";e.exports=window.React},5890:e=>{"use strict";e.exports=window.yoast.propTypes}},t={};function s(r){var n=t[r];if(void 0!==n)return n.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,s),a.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:()=>gp});const t=window.wp.components,r=window.wp.data,n=window.wp.domReady;var a=s.n(n);const o=window.wp.element,i=window.yoast.dashboardFrontend,l=window.yoast.uiLibrary,c=window.lodash;var d=s(9196),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:a=!1}=r,o=n.history,i=h.Pop,l=null,c=d();function d(){return(o.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,o.replaceState(m({},o.state,{idx:c}),""));let g={get action(){return i},get location(){return e(n,o)},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{o.pushState(u,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;n.location.assign(p)}a&&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);o.replaceState(n,"",u),a&&l&&l({action:i,location:g.location,delta:0})},go:e=>o.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 a=[...s,String(n)],o="string"==typeof e.id?e.id:a.join("-");if(y(!0!==e.index||!e.children,"Cannot specify children on an index route"),y(!r[o],'Found a route id collision on id "'+o+"\".  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:o});return r[o]=s,s}{let s=m({},e,t(e),{id:o,children:void 0});return r[o]=s,e.children&&(s.children=j(e.children,t,a,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 a=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)))))}(a);let o=null;for(let e=0;null==o&&e<a.length;++e){let t=U(n);o=F(a[e],t,r)}return o}function R(e,t,s,r){void 0===t&&(t=[]),void 0===s&&(s=[]),void 0===r&&(r="");let n=(e,n,a)=>{let o={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:n,route:e};o.relativePath.startsWith("/")&&(y(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));let i=W([r,o.relativePath]),l=s.concat(o);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 N(e.path))n(e,t,s);else n(e,t)})),t}function N(e){let t=e.split("/");if(0===t.length)return[];let[s,...r]=t,n=s.endsWith("?"),a=s.replace(/\?$/,"");if(0===r.length)return n?[a,""]:[a];let o=N(r.join("/")),i=[];return i.push(...o.map((e=>""===e?a:[a,e].join("/")))),n&&i.push(...o),i.map((t=>e.startsWith("/")&&""===t?"/":t))}const P=/^:[\w-]+$/,O=3,T=2,L=1,M=10,A=-2,I=e=>"*"===e;function D(e,t){let s=e.split("/"),r=s.length;return s.some(I)&&(r+=A),t&&(r+=T),s.filter((e=>!I(e))).reduce(((e,t)=>e+(P.test(t)?O:""===t?L:M)),r)}function F(e,t,s){void 0===s&&(s=!1);let{routesMeta:r}=e,n={},a="/",o=[];for(let e=0;e<r.length;++e){let i=r[e],l=e===r.length-1,c="/"===a?t:t.slice(a.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),o.push({params:n,pathname:W([a,d.pathname]),pathnameBase:G(W([a,d.pathnameBase])),route:u}),"/"!==d.pathnameBase&&(a=W([a,d.pathnameBase]))}return o}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 a=n[0],o=a.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]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=i[s];return e[r]=n&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:o,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 V(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 a,o=""===e||""===n.pathname,i=o?"/":n.pathname;if(null==i)a=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("/")}a=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,a=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:a,search:K(r),hash:Y(n)}}(n,a),c=i&&"/"!==i&&i.endsWith("/"),d=(o||"."===i)&&s.endsWith("/");return l.pathname.endsWith("/")||!c&&!d||(l.pathname+="/"),l}const W=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 Z{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 J(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const Q=["post","put","patch","delete"],X=new Set(Q),ee=["get",...Q],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},ae={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oe={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 a,o,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=1e3,S=new Set,R=null,N=null,P=null,O=null!=e.hydrationData,T=k(c,e.history.location,d),L=null;if(null==T&&!p){let t=Pe(404,{pathname:e.history.location.pathname}),{matches:s,route:r}=Ne(c);T=s,L={[r.id]:t}}if(T&&!e.hydrationData&&pt(T,c,e.history.location.pathname).active&&(T=null),T)if(T.some((e=>e.route.lazy)))o=!1;else if(T.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=T.findIndex((e=>void 0!==s[e.route.id]));o=T.slice(0,e+1).every(r)}else o=T.every(r)}else o=null!=e.hydrationData;else o=!0;else if(o=!1,T=[],f.v7_partialHydration){let t=pt(null,c,e.history.location.pathname);t.active&&t.matches&&(T=t.matches)}let M,A,I={historyAction:e.history.action,location:e.history.location,matches:T,initialized:o,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||L,fetchers:new Map,blockers:new Map},D=h.Pop,F=!1,z=!1,U=new Map,q=null,$=!1,H=!1,V=[],W=new Set,G=new Map,K=0,Y=-1,Z=new Map,Q=new Set,X=new Map,ee=new Map,te=new Set,se=new Map,de=new Map,he=new Map;function fe(e,t){void 0===t&&(t={}),I=m({},I,e);let s=[],r=[];f.v7_fetcherPersist&&I.fetchers.forEach(((e,t)=>{"idle"===e.state&&(te.has(t)?r.push(t):s.push(t))})),[...x].forEach((e=>e(I,{deletedFetchers:r,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),f.v7_fetcherPersist&&(s.forEach((e=>I.fetchers.delete(e))),r.forEach((e=>Xe(e))))}function _e(t,s,r){var n,o;let i,{flushSync:l}=void 0===r?{}:r,d=null!=I.actionData&&null!=I.navigation.formMethod&&ze(I.navigation.formMethod)&&"loading"===I.navigation.state&&!0!==(null==(n=t.state)?void 0:n._isRedirect);i=s.actionData?Object.keys(s.actionData).length>0?s.actionData:null:d?I.actionData:null;let u=s.loaderData?ke(I.loaderData,s.loaderData,s.matches||[],s.errors):I.loaderData,p=I.blockers;p.size>0&&(p=new Map(p),p.forEach(((e,t)=>p.set(t,oe))));let f,y=!0===F||null!=I.navigation.formMethod&&ze(I.navigation.formMethod)&&!0!==(null==(o=t.state)?void 0:o._isRedirect);if(a&&(c=a,a=void 0),$||D===h.Pop||(D===h.Push?e.history.push(t,t.state):D===h.Replace&&e.history.replace(t,t.state)),D===h.Pop){let e=U.get(I.location.pathname);e&&e.has(t.pathname)?f={currentLocation:I.location,nextLocation:t}:U.has(t.pathname)&&(f={currentLocation:t,nextLocation:I.location})}else if(z){let e=U.get(I.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),U.set(I.location.pathname,e)),f={currentLocation:I.location,nextLocation:t}}fe(m({},s,{actionData:i,loaderData:u,historyAction:D,location:t,initialized:!0,navigation:ne,revalidation:"idle",restoreScrollPosition:ut(t,s.matches||I.matches),preventScrollReset:y,blockers:p}),{viewTransitionOpts:f,flushSync:!0===l}),D=h.Pop,F=!1,z=!1,$=!1,H=!1,V=[]}async function Ee(t,s,r){M&&M.abort(),M=null,D=t,$=!0===(r&&r.startUninterruptedRevalidation),function(e,t){if(R&&P){let s=dt(e,t);R[s]=P()}}(I.location,I.matches),F=!0===(r&&r.preventScrollReset),z=!0===(r&&r.enableViewTransition);let n=a||c,o=r&&r.overrideNavigation,i=k(n,s,d),l=!0===(r&&r.flushSync),u=pt(i,n,s.pathname);if(u.active&&u.matches&&(i=u.matches),!i){let{error:e,notFoundMatches:t,route:r}=it(s.pathname);return void _e(s,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l})}if(I.initialized&&!H&&(p=I.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 _e(s,{matches:i},{flushSync:l});var p,y;M=new AbortController;let g,v=Se(e.history,s,M.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,a){void 0===a&&(a={}),Ye();let o,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(fe({navigation:i},{flushSync:!0===a.flushSync}),n){let s=await mt(r,t.pathname,e.signal);if("aborted"===s.type)return{shortCircuited:!0};if("error"===s.type){let{boundaryId:e,error:r}=lt(t.pathname,s);return{matches:s.partialMatches,pendingActionResult:[e,{type:_.error,error:r}]}}if(!s.matches){let{notFoundMatches:e,error:s,route:r}=it(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(o=(await Fe("action",I,e,[l],r,null))[l.route.id],e.signal.aborted)return{shortCircuited:!0}}else o={type:_.error,error:Pe(405,{method:e.method,pathname:t.pathname,routeId:l.route.id})};if(Ie(o)){let t;return t=a&&null!=a.replace?a.replace:we(o.response.headers.get("Location"),new URL(e.url),d)===I.location.pathname+I.location.search,await De(e,o,!0,{submission:s,replace:t}),{shortCircuited:!0}}if(Me(o))throw Pe(400,{type:"defer-action"});if(Ae(o)){let e=Re(r,l.route.id);return!0!==(a&&a.replace)&&(D=h.Push),{matches:r,pendingActionResult:[e.route.id,o]}}return{matches:r,pendingActionResult:[l.route.id,o]}}(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)&&J(r.error)&&404===r.error.status)return M=null,void _e(s,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}i=t.matches||i,g=t.pendingActionResult,o=We(s,r.submission),l=!1,u.active=!1,v=Se(e.history,v.url,v.signal)}let{shortCircuited:b,matches:x,loaderData:w,errors:S}=await async function(t,s,r,n,o,i,l,u,p,h,y){let g=o||We(s,i),v=i||l||Ve(g),b=!($||f.v7_partialHydration&&p);if(n){if(b){let e=Te(y);fe(m({navigation:g},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=await mt(r,s.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let{boundaryId:t,error:r}=lt(s.pathname,e);return{matches:e.partialMatches,loaderData:{},errors:{[t]:r}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=it(s.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}r=e.matches}let x=a||c,[w,S]=me(e.history,I,r,v,s,f.v7_partialHydration&&!0===p,f.v7_skipActionErrorRevalidation,H,V,W,te,X,Q,x,d,y);if(ct((e=>!(r&&r.some((t=>t.route.id===e)))||w&&w.some((t=>t.route.id===e)))),Y=++K,0===w.length&&0===S.length){let e=st();return _e(s,m({matches:r,loaderData:{},errors:y&&Ae(y[1])?{[y[0]]:y[1].error}:null},Ce(y),e?{fetchers:new Map(I.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(b){let e={};if(!n){e.navigation=g;let t=Te(y);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=I.fetchers.get(e.key),s=Ge(void 0,t?t.data:void 0);I.fetchers.set(e.key,s)})),new Map(I.fetchers)}(S)),fe(e,{flushSync:h})}S.forEach((e=>{G.has(e.key)&&et(e.key),e.controller&&G.set(e.key,e.controller)}));let _=()=>S.forEach((e=>et(e.key)));M&&M.signal.addEventListener("abort",_);let{loaderResults:E,fetcherResults:j}=await $e(I,r,w,S,t);if(t.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",_),S.forEach((e=>G.delete(e.key)));let k=Oe(E);if(k)return await De(t,k.result,!0,{replace:u}),{shortCircuited:!0};if(k=Oe(j),k)return Q.add(k.key),await De(t,k.result,!0,{replace:u}),{shortCircuited:!0};let{loaderData:C,errors:R}=je(I,r,0,E,y,S,j,se);se.forEach(((e,t)=>{e.subscribe((s=>{(s||e.done)&&se.delete(t)}))})),f.v7_partialHydration&&p&&I.errors&&Object.entries(I.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 N=st(),P=rt(Y),O=N||P||S.length>0;return m({matches:r,loaderData:C,errors:R},O?{fetchers:new Map(I.fetchers)}:{})}(v,s,i,u.active,o,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&!0===r.initialHydration,l,g);b||(M=null,_e(s,m({matches:x||i},Ce(g),{loaderData:w,errors:S})))}function Te(e){return e&&!Ae(e[1])?{[e[0]]:e[1].data}:I.actionData?0===Object.keys(I.actionData).length?null:I.actionData:void 0}async function De(r,n,a,o){let{submission:i,fetcherSubmission:l,replace:c}=void 0===o?{}:o;n.response.headers.has("X-Remix-Revalidate")&&(H=!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(I.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))}M=null;let f=!0===c||n.response.headers.has("X-Remix-Replace")?h.Replace:h.Push,{formMethod:g,formAction:v,formEncType:x}=I.navigation;!i&&!l&&g&&v&&x&&(i=Ve(I.navigation));let w=i||l;if(re.has(n.response.status)&&w&&ze(w.formMethod))await Ee(f,p,{submission:m({},w,{formAction:u}),preventScrollReset:F,enableViewTransition:a?z:void 0});else{let e=We(p,i);await Ee(f,p,{overrideNavigation:e,fetcherSubmission:l,preventScrollReset:F,enableViewTransition:a?z:void 0})}}async function Fe(e,t,s,r,a,o){let i,c={};try{i=await async function(e,t,s,r,n,a,o,i,l,c){let d=a.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 a={};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)||(a[e]=r[e])}Object.assign(n,a),Object.assign(n,m({},t(n),{lazy:void 0}))}(e.route,l,i):void 0)),u=a.map(((e,s)=>{let a=d[s],o=n.some((t=>t.route.id===e.route.id));return m({},e,{shouldLoad:o,resolve:async s=>(s&&"GET"===r.method&&(e.route.lazy||e.route.loader)&&(o=!0),o?async function(e,t,s,r,n,a){let o,i,l=r=>{let o,l=new Promise(((e,t)=>o=t));i=()=>o(),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:a},...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;o=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 Pe(405,{method:t.method,pathname:r,routeId:s.route.id})}return{type:_.data,result:void 0}}o=await l(n)}else{if(!n){let e=new URL(t.url);throw Pe(404,{pathname:e.pathname+e.search})}o=await l(n)}y(void 0!==o.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 o}(t,r,e,a,s,c):Promise.resolve({type:_.data,result:void 0}))})})),p=await e({matches:u,request:r,params:a[0].params,fetcherKey:o,context:c});try{await Promise.all(d)}catch(e){}return p}(u,e,0,s,r,a,o,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,a,d,f.v7_relativeSplatPath)}}else c[e]=await be(t);return c}async function $e(t,s,r,n,a){let o=t.matches,i=Fe("loader",0,a,r,s,null),l=Promise.all(n.map((async t=>{if(t.matches&&t.match&&t.controller){let s=(await Fe("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:Pe(404,{pathname:t.path})}})}))),c=await i,d=(await l).reduce(((e,t)=>Object.assign(e,t)),{});return await Promise.all([Ue(s,c,a.signal,o,t.loaderData),Be(s,d,n)]),{loaderResults:c,fetcherResults:d}}function Ye(){H=!0,V.push(...ct()),X.forEach(((e,t)=>{G.has(t)&&(W.add(t),et(t))}))}function Ze(e,t,s){void 0===s&&(s={}),I.fetchers.set(e,t),fe({fetchers:new Map(I.fetchers)},{flushSync:!0===(s&&s.flushSync)})}function Je(e,t,s,r){void 0===r&&(r={});let n=Re(I.matches,t);Xe(e),fe({errors:{[n.route.id]:s},fetchers:new Map(I.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Qe(e){return f.v7_fetcherPersist&&(ee.set(e,(ee.get(e)||0)+1),te.has(e)&&te.delete(e)),I.fetchers.get(e)||ae}function Xe(e){let t=I.fetchers.get(e);!G.has(e)||t&&"loading"===t.state&&Z.has(e)||et(e),X.delete(e),Z.delete(e),Q.delete(e),te.delete(e),W.delete(e),I.fetchers.delete(e)}function et(e){let t=G.get(e);y(t,"Expected fetch controller: "+e),t.abort(),G.delete(e)}function tt(e){for(let t of e){let e=Ke(Qe(t).data);I.fetchers.set(t,e)}}function st(){let e=[],t=!1;for(let s of Q){let r=I.fetchers.get(s);y(r,"Expected fetcher: "+s),"loading"===r.state&&(Q.delete(s),e.push(s),t=!0)}return tt(e),t}function rt(e){let t=[];for(let[s,r]of Z)if(r<e){let e=I.fetchers.get(s);y(e,"Expected fetcher: "+s),"loading"===e.state&&(et(s),Z.delete(s),t.push(s))}return tt(t),t.length>0}function nt(e){I.blockers.delete(e),de.delete(e)}function at(e,t){let s=I.blockers.get(e)||oe;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(I.blockers);r.set(e,t),fe({blockers:r})}function ot(e){let{currentLocation:t,nextLocation:s,historyAction:r}=e;if(0===de.size)return;de.size>1&&g(!1,"A router only supports one blocker at a time");let n=Array.from(de.entries()),[a,o]=n[n.length-1],i=I.blockers.get(a);return i&&"proceeding"===i.state?void 0:o({currentLocation:t,nextLocation:s,historyAction:r})?a:void 0}function it(e){let t=Pe(404,{pathname:e}),s=a||c,{matches:r,route:n}=Ne(s);return ct(),{notFoundMatches:r,route:n,error:t}}function lt(e,t){return{boundaryId:Re(t.partialMatches).route.id,error:Pe(400,{type:"route-discovery",pathname:e,message:null!=t.error&&"message"in t.error?t.error:String(t.error)})}}function ct(e){let t=[];return se.forEach(((s,r)=>{e&&!e(r)||(s.cancel(),t.push(r),se.delete(r))})),t}function dt(e,t){return N&&N(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,I.loaderData))))||e.key}function ut(e,t){if(R){let s=dt(e,t),r=R[s];if("number"==typeof r)return r}return null}function pt(e,t,s){if(p){if(S.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 mt(e,t,s){let r=e;for(;;){let e=null==a,o=a||c;try{await ye(p,t,r,o,l,n,he,s)}catch(e){return{type:"error",error:e,partialMatches:r}}finally{e&&(c=[...c])}if(s.aborted)return{type:"aborted"};let i=k(o,t,d);if(i)return ht(t,S),{type:"success",matches:i};let u=C(o,t,d,!0);if(!u||r.length===u.length&&r.every(((e,t)=>e.route.id===u[t].route.id)))return ht(t,S),{type:"success",matches:null};r=u}}function ht(e,t){if(t.size>=w){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 I},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(A)return A(),void(A=void 0);g(0===de.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 a=ot({currentLocation:I.location,nextLocation:r,historyAction:s});if(a&&null!=n){let t=new Promise((e=>{A=e}));return e.history.go(-1*n),void at(a,{state:"blocked",location:r,proceed(){at(a,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then((()=>e.history.go(n)))},reset(){let e=new Map(I.blockers);e.set(a,oe),fe({blockers:e})}})}return Ee(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,U);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,U);t.addEventListener("pagehide",e),q=()=>t.removeEventListener("pagehide",e)}return I.initialized||Ee(h.Pop,I.location,{initialHydration:!0}),i},subscribe:function(e){return x.add(e),()=>x.delete(e)},enableScrollRestoration:function(e,t,s){if(R=e,P=t,N=s||null,!O&&I.navigation===ne){O=!0;let e=ut(I.location,I.matches);null!=e&&fe({restoreScrollPosition:e})}return()=>{R=null,P=null,N=null}},navigate:async function t(s,r){if("number"==typeof s)return void e.history.go(s);let n=ue(I.location,I.matches,d,f.v7_prependBasename,s,f.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:a,submission:o,error:i}=pe(f.v7_normalizeFormMethod,!1,n,r),l=I.location,c=b(I.location,a,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!=o&&ze(o.formMethod)&&o.formAction===I.location.pathname+I.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 Ee(p,c,{submission:o,pendingError:i,preventScrollReset:y,replace:r&&r.replace,enableViewTransition:r&&r.unstable_viewTransition,flushSync:g});at(v,{state:"blocked",location:c,proceed(){at(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),t(s,r)},reset(){let e=new Map(I.blockers);e.set(v,oe),fe({blockers:e})}})},fetch:function(t,s,n,o){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.");G.has(t)&&et(t);let i=!0===(o&&o.unstable_flushSync),l=a||c,u=ue(I.location,I.matches,d,f.v7_prependBasename,n,f.v7_relativeSplatPath,s,null==o?void 0:o.relative),p=k(l,u,d),m=pt(p,l,u);if(m.active&&m.matches&&(p=m.matches),!p)return void Je(t,s,Pe(404,{pathname:u}),{flushSync:i});let{path:h,submission:g,error:v}=pe(f.v7_normalizeFormMethod,!0,u,o);if(v)return void Je(t,s,v,{flushSync:i});let b=He(p,h);F=!0===(o&&o.preventScrollReset),g&&ze(g.formMethod)?async function(t,s,r,n,o,i,l,u){function p(e){if(!e.route.action&&!e.route.lazy){let e=Pe(405,{method:u.formMethod,pathname:r,routeId:s});return Je(t,s,e,{flushSync:l}),!0}return!1}if(Ye(),X.delete(t),!i&&p(n))return;let m=I.fetchers.get(t);Ze(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 mt(o,r,g.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:n}=lt(r,e);return void Je(t,s,n,{flushSync:l})}if(!e.matches)return void Je(t,s,Pe(404,{pathname:r}),{flushSync:l});if(p(n=He(o=e.matches,r)))return}G.set(t,h);let v=K,b=(await Fe("action",0,g,[n],o,t))[n.route.id];if(g.signal.aborted)return void(G.get(t)===h&&G.delete(t));if(f.v7_fetcherPersist&&te.has(t)){if(Ie(b)||Ae(b))return void Ze(t,Ke(void 0))}else{if(Ie(b))return G.delete(t),Y>v?void Ze(t,Ke(void 0)):(Q.add(t),Ze(t,Ge(u)),De(g,b,!1,{fetcherSubmission:u}));if(Ae(b))return void Je(t,s,b.error)}if(Me(b))throw Pe(400,{type:"defer-action"});let x=I.navigation.location||I.location,w=Se(e.history,x,h.signal),S=a||c,_="idle"!==I.navigation.state?k(S,I.navigation.location,d):I.matches;y(_,"Didn't find any matches after fetcher action");let E=++K;Z.set(t,E);let j=Ge(u,b.data);I.fetchers.set(t,j);let[C,R]=me(e.history,I,_,u,x,!1,f.v7_skipActionErrorRevalidation,H,V,W,te,X,Q,S,d,[n.route.id,b]);R.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,s=I.fetchers.get(t),r=Ge(void 0,s?s.data:void 0);I.fetchers.set(t,r),G.has(t)&&et(t),e.controller&&G.set(t,e.controller)})),fe({fetchers:new Map(I.fetchers)});let N=()=>R.forEach((e=>et(e.key)));h.signal.addEventListener("abort",N);let{loaderResults:P,fetcherResults:O}=await $e(I,_,C,R,w);if(h.signal.aborted)return;h.signal.removeEventListener("abort",N),Z.delete(t),G.delete(t),R.forEach((e=>G.delete(e.key)));let T=Oe(P);if(T)return De(w,T.result,!1);if(T=Oe(O),T)return Q.add(T.key),De(w,T.result,!1);let{loaderData:L,errors:A}=je(I,_,0,P,void 0,R,O,se);if(I.fetchers.has(t)){let e=Ke(b.data);I.fetchers.set(t,e)}rt(E),"loading"===I.navigation.state&&E>Y?(y(D,"Expected pending action"),M&&M.abort(),_e(I.navigation.location,{matches:_,loaderData:L,errors:A,fetchers:new Map(I.fetchers)})):(fe({errors:A,loaderData:ke(I.loaderData,L,_,A),fetchers:new Map(I.fetchers)}),H=!1)}(t,s,h,b,p,m.active,i,g):(X.set(t,{routeId:s,path:h}),async function(t,s,r,n,a,o,i,l){let c=I.fetchers.get(t);Ze(t,Ge(l,c?c.data:void 0),{flushSync:i});let d=new AbortController,u=Se(e.history,r,d.signal);if(o){let e=await mt(a,r,u.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:n}=lt(r,e);return void Je(t,s,n,{flushSync:i})}if(!e.matches)return void Je(t,s,Pe(404,{pathname:r}),{flushSync:i});n=He(a=e.matches,r)}G.set(t,d);let p=K,m=(await Fe("loader",0,u,[n],a,t))[n.route.id];if(Me(m)&&(m=await qe(m,u.signal,!0)||m),G.get(t)===d&&G.delete(t),!u.signal.aborted){if(!te.has(t))return Ie(m)?Y>p?void Ze(t,Ke(void 0)):(Q.add(t),void await De(u,m,!1)):void(Ae(m)?Je(t,s,m.error):(y(!Me(m),"Unhandled fetcher deferred data"),Ze(t,Ke(m.data))));Ze(t,Ke(void 0))}}(t,s,h,b,p,m.active,i,g))},revalidate:function(){Ye(),fe({revalidation:"loading"}),"submitting"!==I.navigation.state&&("idle"!==I.navigation.state?Ee(D||I.historyAction,I.navigation.location,{overrideNavigation:I.navigation,enableViewTransition:!0===z}):Ee(I.historyAction,I.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=(ee.get(e)||0)-1;t<=0?(ee.delete(e),te.add(e)):ee.set(e,t)}else Xe(e);fe({fetchers:new Map(I.fetchers)})},dispose:function(){v&&v(),q&&q(),x.clear(),M&&M.abort(),I.fetchers.forEach(((e,t)=>Xe(t))),I.blockers.forEach(((e,t)=>nt(t)))},getBlocker:function(e,t){let s=I.blockers.get(e)||oe;return de.get(e)!==t&&de.set(e,t),s},deleteBlocker:nt,patchRoutes:function(e,t){let s=null==a;ge(e,t,a||c,l,n),s&&(c=[...c],fe({}))},_internalFetchControllers:G,_internalActiveDeferreds:se,_internalSetRoutes:function(e){l={},a=j(e,n,void 0,l)}},i}function ue(e,t,s,r,n,a,o,i){let l,c;if(o){l=[];for(let e of t)if(l.push(e),e.route.id===o){c=e;break}}else l=t,c=t[t.length-1];let d=V(n||".",H(l,a),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:W([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:Pe(405,{method:r.formMethod})};var n;let a,o,i=()=>({path:s,error:Pe(400,{type:"invalid-body"})}),l=r.formMethod||"get",c=e?l.toUpperCase():l.toLowerCase(),d=Te(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)a=_e(r.formData),o=r.formData;else if(r.body instanceof FormData)a=_e(r.body),o=r.body;else if(r.body instanceof URLSearchParams)a=r.body,o=Ee(a);else if(null==r.body)a=new URLSearchParams,o=new FormData;else try{a=new URLSearchParams(r.body),o=Ee(a)}catch(e){return i()}let u={formMethod:c,formAction:d,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:o,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)&&a.append("index",""),p.search="?"+a,{path:x(p),submission:u}}function me(e,t,s,r,n,a,o,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,_=o&&S&&S>=400,E=w.filter(((e,s)=>{let{route:n}=e;if(n.lazy)return!0;if(null==n.loader)return!1;if(a)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 o=t.matches[s],c=e;return fe(e,m({currentUrl:v,currentParams:o.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(o,c))}))})),j=[];return u.forEach(((e,n)=>{if(a||!s.some((t=>t.route.id===e.routeId))||d.has(n))return;let o=k(h,e.path,f);if(!o)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(o,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:o,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,a,o,i){let l=[t,...s.map((e=>e.route.id))].join("-");try{let d=o.get(l);d||(d=e({path:t,matches:s,patch:(e,t)=>{i.aborted||ge(e,t,r,n,a)}}),o.set(l,d)),d&&"object"==typeof(c=d)&&null!=c&&"then"in c&&await d}finally{o.delete(l)}var c}function ge(e,t,s,r,n){if(e){var a;let s=r[e];y(s,"No route found to patch children into: routeId = "+e);let o=j(t,n,[e,"patch",String((null==(a=s.children)?void 0:a.length)||"0")],r);s.children?s.children.push(...o):s.children=o}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 Z(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 Z((null==(r=t.init)?void 0:r.status)||500,void 0,t.data)}return{type:_.error,error:t,statusCode:J(t)?t.status:void 0}}var a,o,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==(a=t.init)?void 0:a.status,headers:(null==(o=t.init)?void 0:o.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,a){let o=e.headers.get("Location");if(y(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!ie.test(o)){let i=r.slice(0,r.findIndex((e=>e.route.id===s))+1);o=ue(new URL(t.url),i,n,!0,o,a),e.headers.set("Location",o)}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),a=null!=B(n.pathname,s);if(n.origin===t.origin&&a)return n.pathname+n.search+n.hash}return e}function Se(e,t,s,r){let n=e.createURL(Te(t)).toString(),a={signal:s};if(r&&ze(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=_e(r.formData):a.body=r.formData}return new Request(n,a)}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,a,o,i){let{loaderData:l,errors:c}=function(e,t,s,r,n){let a,o={},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(!Ie(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)}o[u]=void 0,l||(l=!0,a=J(p.error)?p.error.status:500),p.headers&&(c[u]=p.headers)}else Me(p)?(r.set(u,p.deferredData),o[u]=p.deferredData.data,null==p.statusCode||200===p.statusCode||l||(a=p.statusCode),p.headers&&(c[u]=p.headers)):(o[u]=p.data,p.statusCode&&200!==p.statusCode&&!l&&(a=p.statusCode),p.headers&&(c[u]=p.headers))})),void 0!==d&&s&&(i={[s[0]]:d},o[s[0]]=void 0),{loaderData:o,errors:i,statusCode:a||200,loaderHeaders:c}}(t,r,n,i,!1);return a.forEach((t=>{let{key:s,match:r,controller:n}=t,a=o[s];if(y(a,"Did not find corresponding fetcher result"),!n||!n.signal.aborted)if(Ae(a)){let t=Re(e.matches,null==r?void 0:r.route.id);c&&c[t.route.id]||(c=m({},c,{[t.route.id]:a.error})),e.fetchers.delete(s)}else if(Ie(a))y(!1,"Unhandled fetcher revalidation redirect");else if(Me(a))y(!1,"Unhandled fetcher deferred data");else{let t=Ke(a.data);e.fetchers.set(s,t)}})),{loaderData:l,errors:c}}function ke(e,t,s,r){let n=m({},t);for(let a of s){let s=a.route.id;if(t.hasOwnProperty(s)?void 0!==t[s]&&(n[s]=t[s]):void 0!==e[s]&&a.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 Ne(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 Pe(e,t){let{pathname:s,routeId:r,method:n,type:a,message:o}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="Bad Request","route-discovery"===a?l='Unable to match URL "'+s+'" - the `unstable_patchRoutesOnNavigation()` function threw the following error:\n'+o: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"===a?l="defer() is not supported in actions":"invalid-body"===a&&(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 Z(e||500,i,new Error(l),!0)}function Oe(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[s,r]=t[e];if(Ie(r))return{key:s,result:r}}}function Te(e){return x(m({},"string"==typeof e?w(e):e,{hash:""}))}function Le(e){return Fe(e.result)&&se.has(e.result.status)}function Me(e){return e.type===_.deferred}function Ae(e){return e.type===_.error}function Ie(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 a=Object.entries(t);for(let o=0;o<a.length;o++){let[i,l]=a[o],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]);Me(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:a,controller:o}=s[r],i=t[n];e.find((e=>(null==e?void 0:e.route.id)===a))&&Me(i)&&(y(o,"Expected an AbortController for revalidating fetcher deferred result"),await qe(i,o.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 Ve(e){let{formMethod:t,formAction:s,formEncType:r,text:n,formData:a,json:o}=e;if(t&&s&&r)return null!=n?{formMethod:t,formAction:s,formEncType:r,formData:void 0,json:void 0,text:n}:null!=a?{formMethod:t,formAction:s,formEncType:r,formData:a,json:void 0,text:void 0}:void 0!==o?{formMethod:t,formAction:s,formEncType:r,formData:void 0,json:o,text:void 0}:void 0}function We(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 Ze=d.createContext(null),Je=d.createContext(null),Qe=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(Qe).static||d.useLayoutEffect(e)}function at(){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(Ze),{basename:t,future:s,navigator:r}=d.useContext(Qe),{matches:n}=d.useContext(et),{pathname:a}=rt(),o=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=V(s,JSON.parse(o),a,"path"===n.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:W([t,l.pathname])),(n.replace?r.replace:r.push)(l,n.state,n)}),[t,r,o,a,e])}()}const ot=d.createContext(null);function it(e,t){let{relative:s}=void 0===t?{}:t,{future:r}=d.useContext(Qe),{matches:n}=d.useContext(et),{pathname:a}=rt(),o=JSON.stringify(H(n,r.v7_relativeSplatPath));return d.useMemo((()=>V(e,JSON.parse(o),a,"path"===s)),[e,o,a,s])}function lt(e,t,s,r){st()||y(!1);let{navigator:n}=d.useContext(Qe),{matches:a}=d.useContext(et),o=a[a.length-1],i=o?o.params:{},l=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.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 a;if(!s)return null;if(s.errors)e=s.matches;else{if(!(null!=(a=r)&&a.v7_partialHydration&&0===t.length&&!s.initialized&&s.matches.length>0))return null;e=s.matches}}let o=e,i=null==(n=s)?void 0:n.errors;if(null!=i){let e=o.findIndex((e=>e.route.id&&void 0!==(null==i?void 0:i[e.route.id])));e>=0||y(!1),o=o.slice(0,Math.min(o.length,e+1))}let l=!1,c=-1;if(s&&r&&r.v7_partialHydration)for(let e=0;e<o.length;e++){let t=o[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,o=c>=0?o.slice(0,c+1):[o[0]];break}}}return o.reduceRight(((e,r,n)=>{let a,u=!1,p=null,m=null;var h;s&&(a=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(o.slice(0,n+1)),y=()=>{let t;return t=a?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:a,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:W([l,n.encodeLocation?n.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:W([l,n.encodeLocation?n.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,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=J(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(Ze);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(Ze);return t||y(!1),t}function yt(e){let t=d.useContext(Je);return t||y(!1),t}function gt(e){let t=function(e){let t=d.useContext(et);return t||y(!1),t}(),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:a,static:o}=d.useContext(Qe),{matches:i}=d.useContext(et),{pathname:l}=rt(),c=at(),u=V(t,H(i,a.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(ot.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:a,static:o=!1,future:i}=e;st()&&y(!1);let l=t.replace(/^\/*/,"/"),c=d.useMemo((()=>({basename:l,navigator:a,static:o,future:Ye({v7_relativeSplatPath:!1},i)})),[l,i,a,o]);"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(Qe.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 a={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&&(a.children=jt(e.props.children,n)),s.push(a)})),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(Aa){}function Nt(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Ct({},t,{errors:Pt(t.errors)})),t}function Pt(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 Z(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 Ot=d.createContext({isTransitioning:!1}),Tt=d.createContext(new Map),Lt=d.startTransition,Mt=p.flushSync;function At(e){Mt?Mt(e):e()}d.useId;class It{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,a]=d.useState(s.state),[o,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:o}=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(o&&!l){if(n){At((()=>{m&&(u&&u.resolve(),m.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})}));let t=s.window.document.startViewTransition((()=>{At((()=>a(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:o.currentLocation,nextLocation:o.nextLocation})):(i(e),c({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else n?At((()=>a(e))):b((()=>a(e)))}),[s.window,m,u,g,b]);d.useLayoutEffect((()=>s.subscribe(x)),[s,x]),d.useEffect((()=>{l.isTransitioning&&!l.flushSync&&p(new It)}),[l]),d.useEffect((()=>{if(u&&o&&s.window){let e=o,t=u.promise,r=s.window.document.startViewTransition((async()=>{b((()=>a(e))),await t}));r.finished.finally((()=>{p(void 0),h(void 0),i(void 0),c({isTransitioning:!1})})),h(r)}}),[b,o,u,s.window]),d.useEffect((()=>{u&&o&&n.location.key===o.location.key&&u.resolve()}),[u,m,n.location,o]),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(Ze.Provider,{value:_},d.createElement(Je.Provider,{value:n},d.createElement(Tt.Provider,{value:g.current},d.createElement(Ot.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:a,replace:o,state:i,target:l,to:c,preventScrollReset:u,unstable_viewTransition:p}=e,m=function(e,t){if(null==e)return{};var s,r,n={},a=Object.keys(e);for(r=0;r<a.length;r++)s=a[r],t.indexOf(s)>=0||(n[s]=e[s]);return n}(e,Rt),{basename:h}=d.useContext(Qe),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(Qe),{hash:a,pathname:o,search:i}=it(e,{relative:s}),l=o;return"/"!==r&&(l="/"===o?r:W([r,o])),n.createHref({pathname:l,search:i,hash:a})}(c,{relative:n}),v=function(e,t){let{target:s,replace:r,state:n,preventScrollReset:a,relative:o,unstable_viewTransition:i}=void 0===t?{}:t,l=at(),c=rt(),u=it(e,{relative:o});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:a,relative:o,unstable_viewTransition:i})}}),[c,l,u,r,n,s,e,a,o,i])}(c,{replace:o,state:i,target:l,preventScrollReset:u,relative:n,unstable_viewTransition:p});return d.createElement("a",Ct({},m,{href:s||g,onClick:f||a?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 Vt=window.wp.i18n,Wt=(e,t)=>{try{return(0,o.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},Gt=d.forwardRef((function(e,t){return d.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),d.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"}))}));var Kt=s(5890),Yt=s.n(Kt);const Zt=window.ReactJSXRuntime,Jt=({link:e})=>{const t=(0,o.useMemo)((()=>Wt((0,Vt.sprintf)(/* translators: %1$s expands to "Yoast SEO" academy, which is a clickable link. */
(0,Vt.__)("Want to learn SEO from Team Yoast? Check out our %1$s!","wordpress-seo"),"<link/>"),{link:(0,Zt.jsx)("a",{href:e,target:"_blank",rel:"noopener",children:"Yoast SEO academy"})})),[]);return(0,Zt.jsxs)(l.Paper,{as:"div",className:"yst-p-6 yst-space-y-3",children:[(0,Zt.jsx)(l.Title,{as:"h2",size:"4",className:"yst-text-base yst-text-primary-500",children:(0,Vt.__)("Learn SEO","wordpress-seo")}),(0,Zt.jsxs)("p",{children:[t,(0,Zt.jsx)("br",{}),(0,Vt.__)("We have both free and premium online courses to learn everything you need to know about SEO.","wordpress-seo")]}),(0,Zt.jsxs)(l.Link,{href:e,className:"yst-block yst-font-medium",target:"_blank",rel:"noopener",children:[(0,Vt.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */
(0,Vt.__)("Check out %1$s","wordpress-seo"),"Yoast SEO academy"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(Gt,{className:"yst-w-3 yst-h-3 yst-mb-[1px] yst-icon-rtl yst-inline-block"})]})]})};Jt.propTypes={link:Yt().string.isRequired};const Qt=d.forwardRef((function(e,t){return d.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),d.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"}))})),Xt=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.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"}))}));Yt().string.isRequired,Yt().string.isRequired,Yt().shape({src:Yt().string.isRequired,width:Yt().string,height:Yt().string}).isRequired,Yt().shape({value:Yt().bool.isRequired,status:Yt().string.isRequired,set:Yt().func.isRequired}).isRequired,Yt().string,Yt().string,Yt().string;const es=({handleRefreshClick:e,supportLink:t})=>(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,Zt.jsx)(l.Button,{onClick:e,children:(0,Vt.__)("Refresh this page","wordpress-seo")}),(0,Zt.jsx)(l.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Vt.__)("Contact support","wordpress-seo")})]});es.propTypes={handleRefreshClick:Yt().func.isRequired,supportLink:Yt().string.isRequired};const ts=({handleRefreshClick:e,supportLink:t})=>(0,Zt.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,Zt.jsx)(l.Button,{className:"yst-order-last",onClick:e,children:(0,Vt.__)("Refresh this page","wordpress-seo")}),(0,Zt.jsx)(l.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Vt.__)("Contact support","wordpress-seo")})]});ts.propTypes={handleRefreshClick:Yt().func.isRequired,supportLink:Yt().string.isRequired};const ss=({error:e,children:t=null})=>(0,Zt.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,Zt.jsx)(l.Title,{children:(0,Vt.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,Zt.jsx)("p",{children:(0,Vt.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,Zt.jsx)(l.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,Vt.__)("Undefined error message.","wordpress-seo")}),(0,Zt.jsx)("p",{children:(0,Vt.__)("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]});ss.propTypes={error:Yt().object.isRequired,children:Yt().node},ss.VerticalButtons=ts,ss.HorizontalButtons=es;Yt().string,Yt().node.isRequired,Yt().node.isRequired,Yt().node,Yt().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 rs=({to:e,idSuffix:t="",...s})=>{const r=(0,o.useMemo)((()=>(0,c.replace)((0,c.replace)(`link-${e}`,"/","-"),"--","-")),[e]);return(0,Zt.jsx)(l.SidebarNavigation.SubmenuItem,{as:qt,pathProp:"to",id:`${r}${t}`,to:e,...s})};rs.propTypes={to:Yt().string.isRequired,idSuffix:Yt().string};const ns=({href:e,children:t=null,...s})=>(0,Zt.jsxs)(l.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")})]});ns.propTypes={href:Yt().string.isRequired,children:Yt().node};const as=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.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"}))})),os=[(0,Vt.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,Vt.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,Vt.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,Vt.__)("Optimize pages for multiple keywords with guidance","wordpress-seo")],is=[(0,Vt.__)("Add product details to help your listings stand out","wordpress-seo"),(0,Vt.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,Vt.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,Vt.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo")],ls=[(0,Vt.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,Vt.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,Vt.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,Vt.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,Vt.__)("Internal links and redirect management, easy","wordpress-seo"),(0,Vt.__)("Access to friendly help when you need it, day or night","wordpress-seo")],cs=(e=!1)=>e?os:ls,ds=(e=!1)=>{if(e)return is;const t=[...ls];return t[1]=(0,Vt.__)("Boost visibility for your products, from 10 or 10,000+","wordpress-seo"),t};var us,ps,ms;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)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},hs.apply(this,arguments)}const fs=e=>d.createElement("svg",hs({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),us||(us=d.createElement("g",{clipPath:"url(#yoast-premium-logo-new_svg__a)"},d.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__b)",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),d.createElement("path",{fill:"#6C2548",d:"m56.016.125-36.06 63.75H64v-53.76c0-4.88-3.414-8.96-7.984-9.987",opacity:.35}),d.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),d.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),d.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),d.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),d.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),d.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),d.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),d.createElement("path",{fill:"#CD82AB",d:"M57.402 58.086H43.888v1.197h13.514v-1.197ZM53.75 53.366l-3.103-5.76v.004l-.004-.004-3.104 5.76-4.777-3.42 1.126 7.702h13.514l1.126-7.702-4.777 3.42Z"}))),ps||(ps=d.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),ms||(ms=d.createElement("defs",null,d.createElement("linearGradient",{id:"yoast-premium-logo-new_svg__b",x1:-2.912,x2:68.509,y1:25.843,y2:38.438,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#5D237A"}),d.createElement("stop",{offset:.08,stopColor:"#702175"}),d.createElement("stop",{offset:.22,stopColor:"#872070"}),d.createElement("stop",{offset:.36,stopColor:"#981E6C"}),d.createElement("stop",{offset:.51,stopColor:"#A21E69"}),d.createElement("stop",{offset:.7,stopColor:"#A61E69"})),d.createElement("clipPath",{id:"yoast-premium-logo-new_svg__a"},d.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"})))));var ys,gs,vs;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)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},bs.apply(this,arguments)}const xs=e=>d.createElement("svg",bs({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),ys||(ys=d.createElement("g",{clipPath:"url(#woo-seo-logo-new_svg__a)"},d.createElement("path",{fill:"#0E1E65",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),d.createElement("path",{fill:"#0075B3",d:"M56.016.253 19.956 64H64V10.24c0-4.88-3.414-8.96-7.984-9.987Z"}),d.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),d.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),d.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),d.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),d.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),d.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),d.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),d.createElement("path",{fill:"#A1CCE3",d:"M58.102 46.806a1.26 1.26 0 0 0-1.219.938l-.157.582a40.97 40.97 0 0 0-10.857 1.261c-.013 0-.023.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.86c.083.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.011h10.592a.507.507 0 0 0 .506-.505c0-1.149-.775-2.15-1.888-2.442L57.862 48a.25.25 0 0 1 .243-.186h.932a.507.507 0 0 0 0-1.01h-.931l-.004.002ZM57.018 59.92a1.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"}))),gs||(gs=d.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),vs||(vs=d.createElement("defs",null,d.createElement("clipPath",{id:"woo-seo-logo-new_svg__a"},d.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"})))));var ws=s(4184),Ss=s.n(ws);const _s=({link:e,linkProps:t,isPromotionActive:s,isWooCommerceActive:r})=>{const n=r?ds:cs,a=(0,o.useMemo)((()=>r?(0,Vt.__)("Grow your store's visibility!","wordpress-seo"):(0,Vt.__)("Spend less time on SEO tasks!","wordpress-seo")),[r]),i=(0,o.useMemo)((()=>r?(0,Vt.__)("Help ready-to-buy shoppers and search engines find your product.","wordpress-seo"):(0,Vt.__)("Optimize your site faster, smarter, and with more confidence.","wordpress-seo")),[r]);let c=(0,Vt.__)("Buy now","wordpress-seo");const d=(0,o.useMemo)((()=>r?(0,Vt.__)("Less friction. Smarter optimization.","wordpress-seo"):(0,Vt.__)("Less friction. Faster publishing.","wordpress-seo")),[r]),u=Wt(r?(0,Vt.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
(0,Vt.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast WooCommerce SEO"):(0,Vt.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */
(0,Vt.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,Zt.jsx)("span",{className:"yst-whitespace-nowrap"})}),p=s("black-friday-promotion");return p&&(c=(0,Vt.__)("Buy now for 30% off","wordpress-seo")),(0,Zt.jsxs)("div",{className:Ss()("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,Zt.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,Zt.jsx)(xs,{}):(0,Zt.jsx)(fs,{})}),p&&(0,Zt.jsx)("div",{className:"sidebar__sale_banner_container",children:(0,Zt.jsx)("div",{className:"sidebar__sale_banner",children:(0,Zt.jsx)("span",{className:"banner_text",children:(0,Vt.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})})}),(0,Zt.jsx)(l.Title,{as:"h2",className:Ss()("yst-mt-6 yst-text-xl yst-font-semibold",r?"yst-text-woo-light":"yst-text-primary-500"),children:u}),(0,Zt.jsx)("p",{className:"yst-mt-3 yst-font-medium yst-text-slate-800",children:a}),(0,Zt.jsx)("p",{className:"yst-mt-1 yst-font-normal",children:i}),(0,Zt.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,Zt.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,Zt.jsx)(as,{className:"yst-mr-2 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),e]},`upsell-benefit-${t}`)))}),(0,Zt.jsxs)(l.Button,{as:"a",variant:"upsell",href:e,target:"_blank",rel:"noopener",className:"yst-flex yst-justify-center yst-gap-2 yst-mt-4 focus:yst-ring-offset-primary-500",...t,children:[(0,Zt.jsx)("span",{children:c}),(0,Zt.jsx)(Xt,{className:"yst-w-4 yst-h-4 yst--ms-1 yst-shrink-0"})]}),(0,Zt.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:d}),(0,Zt.jsx)("hr",{className:"yst-border-t yst-border-slate-200 yst-my-4"}),(0,Zt.jsxs)("ul",{className:"yst-text-center yst-text-xs yst-font-medium yst-text-slate-800 yst-list-none",children:[(0,Zt.jsx)("li",{children:(0,Vt.__)("30-day money back guarantee","wordpress-seo")}),(0,Zt.jsx)("li",{children:(0,Vt.__)("24/7 support","wordpress-seo")})]})]})};_s.propTypes={link:Yt().string.isRequired,linkProps:Yt().object.isRequired,isPromotionActive:Yt().func.isRequired};const Es=d.forwardRef((function(e,t){return d.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),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))}));var js;function ks(){return ks=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},ks.apply(this,arguments)}const Cs=e=>d.createElement("svg",ks({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),js||(js=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 Rs;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)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ns.apply(this,arguments)}const Ps=e=>d.createElement("svg",Ns({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),Rs||(Rs=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"}))),Os=({premiumLink:e,premiumUpsellConfig:t={},isPromotionActive:s,isWooCommerceActive:r})=>{const n=s("black-friday-promotion"),a=r?ds:cs,o=[...r?["Yoast SEO Premium"]:[],"Local SEO","News SEO","Video SEO",(0,Vt.__)("Google Docs add-on (1 seat)","wordpress-seo")],i=r?Ss()("yst-bg-woo-light","yst-text-[#006499]"):Ss()("yst-bg-primary-500","yst-text-primary-500");let c=r?(0,Vt.sprintf)(/* translators: %s expands to "Yoast WooCommerce SEO" */
(0,Vt.__)("Explore %s now!","wordpress-seo"),"Yoast WooCommerce SEO"):(0,Vt.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */
(0,Vt.__)("Explore %s now!","wordpress-seo"),"Yoast SEO Premium");return n&&(c=(0,Vt.__)("Get 30% off now!","wordpress-seo")),(0,Zt.jsxs)(l.Paper,{as:"div",className:"yst-max-w-4xl",children:[n&&(0,Zt.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,Zt.jsx)("div",{children:(0,Vt.__)("30% OFF","wordpress-seo")}),(0,Zt.jsx)("div",{children:(0,Vt.__)("BLACK FRIDAY","wordpress-seo")})]}),(0,Zt.jsxs)("div",{className:"yst-p-6 yst-flex yst-flex-col",children:[(0,Zt.jsx)("div",{className:"yst-flex yst-items-center",children:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(l.Title,{as:"h2",size:"4",className:"yst-text-xl yst-font-semibold "+(r?"yst-text-woo-light":"yst-text-primary-500 "),children:r?(0,Vt.sprintf)(/* translators: %s expands to "Yoast WooCommerce SEO */
(0,Vt.__)("Upgrade to %s","wordpress-seo"),"Yoast WooCommerce SEO"):(0,Vt.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */
(0,Vt.__)("Upgrade to %s","wordpress-seo"),"Yoast SEO Premium")}),r?(0,Zt.jsx)(Ps,{className:"yst-ml-2 yst-w-4 yst-h-3"}):(0,Zt.jsx)(Cs,{className:"yst-ml-2 yst-w-4 yst-h-3"})]})}),(0,Zt.jsxs)("div",{className:"yst-font-medium yst-text-slate-800 yst-text-xs yst-leading-7 yst-mt-2",children:[(0,Zt.jsx)("span",{className:"yst-mr-2",children:(0,Vt.__)("Now includes:","wordpress-seo")}),(0,Zt.jsx)("div",{className:"yst-inline-block",children:o.map(((e,t)=>(0,Zt.jsx)(l.Badge,{size:"small",variant:"plain",className:Ss()("yst-mr-2 yst-bg-opacity-15",i),children:e},`now-including-${t}`)))})]}),(0,Zt.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:a().map(((e,t)=>(0,Zt.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,Zt.jsx)(as,{className:"yst-mr-2 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),e]},`upsell-benefit-${t}`)))}),(0,Zt.jsxs)(l.Button,{as:"a",variant:"upsell",size:"extra-large",href:e,className:"yst-gap-2 yst-mt-6 sm:yst-max-w-sm",target:"_blank",rel:"noopener",...t,children:[c,(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(Es,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})]})]})]})};Os.propTypes={premiumLink:Yt().string.isRequired,premiumUpsellConfig:Yt().object,isPromotionActive:Yt().func.isRequired,isWooCommerceActive:Yt().bool.isRequired};const Ts=({premiumLink:e,premiumUpsellConfig:t,academyLink:s,isPromotionActive:r,isWooCommerceActive:n})=>(0,Zt.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,Zt.jsx)(_s,{link:e,linkProps:t,isPromotionActive:r,isWooCommerceActive:n}),(0,Zt.jsx)(Jt,{link:s})]});Ts.propTypes={premiumLink:Yt().string.isRequired,premiumUpsellConfig:Yt().object.isRequired,academyLink:Yt().string.isRequired,isPromotionActive:Yt().func.isRequired,isWooCommerceActive:Yt().bool.isRequired};const Ls=d.forwardRef((function(e,t){return d.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),d.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"}))})),Ms=({isOpen:e,onClose:t=c.noop,onDiscard:s=c.noop,title:r,description:n,dismissLabel:a,discardLabel:o})=>{const i=(0,l.useSvgAria)();return(0,Zt.jsx)(l.Modal,{isOpen:e,onClose:t,children:(0,Zt.jsxs)(l.Modal.Panel,{closeButtonScreenReaderText:(0,Vt.__)("Close","wordpress-seo"),children:[(0,Zt.jsxs)("div",{className:"sm:yst-flex sm:yst-items-start",children:[(0,Zt.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,Zt.jsx)(Ls,{className:"yst-h-6 yst-w-6 yst-text-red-600",...i})}),(0,Zt.jsxs)("div",{className:"yst-mt-3 yst-text-center sm:yst-mt-0 sm:yst-ms-4 sm:yst-text-start",children:[(0,Zt.jsx)(l.Modal.Title,{className:"yst-text-lg yst-leading-6 yst-font-medium yst-text-slate-900 yst-mb-3",children:r}),(0,Zt.jsx)(l.Modal.Description,{className:"yst-text-sm yst-text-slate-500",children:n})]})]}),(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col sm:yst-flex-row-reverse yst-gap-3 yst-mt-6",children:[(0,Zt.jsx)(l.Button,{type:"button",variant:"error",onClick:s,className:"yst-block",children:o}),(0,Zt.jsx)(l.Button,{type:"button",variant:"secondary",onClick:t,className:"yst-block",children:a})]})]})})};Ms.propTypes={isOpen:Yt().bool.isRequired,onClose:Yt().func,onDiscard:Yt().func,title:Yt().string.isRequired,description:Yt().string.isRequired,dismissLabel:Yt().string.isRequired,discardLabel:Yt().string.isRequired};const As=window.yoast.reactHelmet,Is="request",Ds="success",Fs="error",zs="loading",Us="error";var Bs,qs;function $s(){return $s=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},$s.apply(this,arguments)}Yt().string.isRequired,Yt().shape({src:Yt().string.isRequired,width:Yt().string,height:Yt().string}).isRequired,Yt().shape({value:Yt().bool.isRequired,status:Yt().string.isRequired,set:Yt().func.isRequired}).isRequired,Yt().bool;const Hs=e=>d.createElement("svg",$s({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"yoast-logo_svg__w-40",viewBox:"0 0 842 224"},e),Bs||(Bs=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"})),qs||(qs=d.createElement("path",{fill:"#77b227",d:"m790.45 165.35 36.05-94.96H840l-36.02 94.96h-13.53z"}))),Vs=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.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"}))}));var Ws,Gs,Ks,Ys,Zs,Js,Qs,Xs,er,tr,sr,rr,nr,ar,or,ir,lr,cr,dr,ur,pr,mr,hr,fr,yr,gr,vr,br,xr,wr,Sr,_r,Er,jr,kr,Cr,Rr,Nr,Pr,Or,Tr,Lr,Mr,Ar,Ir,Dr,Fr,zr,Ur,Br,qr,$r,Hr,Vr,Wr,Gr,Kr,Yr,Zr,Jr,Qr,Xr,en,tn,sn,rn,nn,an,on;function ln(){return ln=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},ln.apply(this,arguments)}const cn=e=>d.createElement("svg",ln({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none",viewBox:"0 0 252 60"},e),Ws||(Ws=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"}))),Gs||(Gs=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"})),Ks||(Ks=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"})),Ys||(Ys=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"})),Zs||(Zs=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"})),Js||(Js=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"}))),Qs||(Qs=d.createElement("clipPath",{id:"yoast-connect-google-site-kit_svg__g"},d.createElement("path",{d:"M169.334 22h14.973v15.909h-14.973z"}))),Xs||(Xs=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"})),er||(er=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.948c-1.524-.194-2.51-1.333-2.525-2.783z"})),tr||(tr=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"})),sr||(sr=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"})),rr||(rr=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"})),nr||(nr=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"})),ar||(ar=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"})),or||(or=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"})),ir||(ir=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"})),lr||(lr=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"})),cr||(cr=d.createElement("path",{fill:"#9e005d",d:"M111.503 27.227c-1.65.136-7.152 11.633.475 20.362 1.067 1.222 2.372 3.568 3.92 3.78 3.256.442 11.848-1.813 15.059-3.189 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"})),dr||(dr=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"})),ur||(ur=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"})),pr||(pr=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"})),mr||(mr=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"})),hr||(hr=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"})),fr||(fr=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"})),yr||(yr=d.createElement("path",{fill:"#9e005d",d:"M129.616 43.001c.157-3.884-1.93-18.723-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"})),gr||(gr=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"})),vr||(vr=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"})),br||(br=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"})),xr||(xr=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.152 2.294.945 1.195-1.676.569-3.058l.119.952z"})),wr||(wr=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"})),Sr||(Sr=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"})),_r||(_r=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"})),Er||(Er=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"})),jr||(jr=d.createElement("path",{fill:"#a0c9cb",d:"m155.213 40.425-.27 9.99-6.399-1.368-.094-9.712z"})),kr||(kr=d.createElement("path",{fill:"#75b0b3",d:"m155.48 50.235-.509.238c.085-11.096-.171-10.3.509-10.166v9.93z"})),Cr||(Cr=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"})),Rr||(Rr=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"})),Nr||(Nr=d.createElement("path",{fill:"#67a8ac",d:"m152.371 30.436 2.881 8.443-6.729-1.15-3.307-9.016z"})),Pr||(Pr=d.createElement("path",{fill:"#55989b",d:"m152.988 32.518.101.02-.716-2.1-7.155-1.725.656 1.786z"})),Or||(Or=d.createElement("path",{fill:"#519093",d:"m148.766 37.79-1.127.713-2.679-8.541 1.25-.893z"})),Tr||(Tr=d.createElement("path",{fill:"#b1d3d4",d:"m152.794 30.08-.922 1.069-6.552-1.01.869-1.011z"})),Lr||(Lr=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"})),Mr||(Mr=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"})),Ar||(Ar=d.createElement("path",{fill:"#75b0b3",d:"m155.354 38.879-1.037.832-2.444-8.681.922-1.07z"})),Ir||(Ir=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"})),Dr||(Dr=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"})),Fr||(Fr=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"})),zr||(zr=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"})),Ur||(Ur=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"})),Br||(Br=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"})),qr||(qr=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"})),$r||($r=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"})),Hr||(Hr=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"})),Vr||(Vr=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"})),Wr||(Wr=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.744zM143.91 28.315c.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"}))),Gr||(Gr=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.836zM105.279 31.507c.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"})),Kr||(Kr=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"})),Yr||(Yr=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"})),Zr||(Zr=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"})),Jr||(Jr=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"})),Qr||(Qr=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"})),Xr||(Xr=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"})),en||(en=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-.305zM119.708 14.939c-3.103-.776-3.531.176-4.685 1.79 2.238-2.446 3.518-.587 5.132-1.94-.245.024-.473.103-.447.15z"})),tn||(tn=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"})),sn||(sn=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.45zM127.184 21.222c7.849.713 7.253 7.135 12.485 6.303-5.471 1.426-7.017-6.303-12.485-6.303z"})),rn||(rn=d.createElement("path",{fill:"#c44c31",d:"M120.525 19.497c0 .236-.594.236-.594 0s.594-.237.594 0zM118.622 19.852c0 .236-.358.236-.358 0s.358-.236.358 0zM124.39 19.02c0 .316-.474.316-.474 0 0-.315.474-.315.474 0zM125.28 19.972c0 .237-.475.237-.475 0s.475-.236.475 0zM125.638 18.784c0 .236-.474.236-.474 0 0-.237.474-.237.474 0zM120.406 20.685c0 .236-.475.236-.475 0s.475-.236.475 0z"})),nn||(nn=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.331 23.896-8.292z"})),an||(an=d.createElement("path",{fill:"#5f6368",d:"M238.632 23.565h2.267v.074l-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.074zm5.892 1.084c0 .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.894c-.488.853-1.126 1.523-1.912 2.011-.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"})),on||(on=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"})))),dn=({isOpen:e,onClose:t,onGrantConsent:s=null,learnMoreLink:r=""})=>{const n=(0,l.useSvgAria)();return(0,Zt.jsx)(l.Modal,{isOpen:e,onClose:t,children:(0,Zt.jsxs)(l.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl",hasCloseButton:!1,children:[(0,Zt.jsx)(l.Modal.CloseButton,{className:"yst-bg-transparent yst-text-gray-500 focus:yst-ring-offset-0",onClick:t,screenReaderText:(0,Vt.__)("Close","wordpress-seo")}),(0,Zt.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-bg-gradient-to-b yst-from-primary-500/25 yst-to-[80%]",children:(0,Zt.jsx)(cn,{className:"yst-aspect-video yst-max-w-[432px] yst-p-7 yst-bg-white yst-rounded-md yst-drop-shadow-md"})}),(0,Zt.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,Zt.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,Zt.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,Vt.__)("Grant consent to connect with Site Kit by Google","wordpress-seo")}),(0,Zt.jsxs)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:[(0,Vt.__)("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,Zt.jsxs)(ns,{className:"yst-no-underline yst-font-medium",variant:"primary",href:r,children:[(0,Vt.__)("Learn more","wordpress-seo"),(0,Zt.jsx)(Vs,{className:"yst-inline yst-h-4 yst-w-4 yst-ms-1 rtl:yst-rotate-180",...n})]})]})]}),(0,Zt.jsx)("div",{className:"yst-w-full yst-flex yst-mt-10",children:(0,Zt.jsx)(l.Button,{className:"yst-grow",size:"extra-large",variant:"primary",onClick:s||t,children:(0,Vt.__)("Grant consent","wordpress-seo")})}),(0,Zt.jsx)(l.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:t,children:(0,Vt.__)("Close","wordpress-seo")})]})]})})};dn.propTypes={isOpen:Yt().bool.isRequired,onClose:Yt().func.isRequired,onGrantConsent:Yt().func,learnMoreLink:Yt().string},Yt().func.isRequired,Yt().string.isRequired,Yt().string.isRequired,Yt().string.isRequired,Yt().string.isRequired;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,Vt.__)("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"),a=(0,Vt.__)("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"),o=r?n:a,i=r?(0,Vt.__)("Oops! You can’t see the overview of your SEO insights right now because you’re in a non-production environment.","wordpress-seo"):(0,Vt.__)("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,Zt.jsx)(l.Paper,{className:"yst-shadow-md",children:(0,Zt.jsxs)(l.Paper.Content,{className:"yst-flex yst-flex-col yst-gap-y-4 yst-max-w-screen-sm",children:[(0,Zt.jsx)(l.Title,{as:"h1",children:(0,Vt.sprintf)(/* translators: %s expands to the username */
(0,Vt.__)("Hi %s,","wordpress-seo"),e)}),(0,Zt.jsx)("p",{className:"yst-text-tiny",children:!t.indexables||t.seoAnalysis||t.readabilityAnalysis?Wt((0,Vt.sprintf)(/* translators: %1$s and %2$s expand to an opening and closing anchor tag. */
(0,Vt.__)("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,Zt.jsx)(ns,{href:s.dashboardLearnMore,children:" "})}):Wt((0,Vt.sprintf)(o,"<link>","</link>","<profilelink>","</profilelink>"),{link:(0,Zt.jsx)(l.Link,{href:"admin.php?page=wpseo_page_settings#/site-features",children:" "}),profilelink:(0,Zt.jsx)(l.Link,{href:"profile.php",children:" "})})}),!t.indexables&&(0,Zt.jsx)(l.Alert,{type:"info",children:i})]})})},pn=({widgetFactory:e,userName:t,features:s,links:r,sitekitFeatureEnabled:n,dataProvider:a})=>{const l=(0,o.useCallback)((()=>a.getSiteKitConfiguration()),[a]),c=(0,o.useCallback)((e=>a.subscribe(e)),[a]);return(0,o.useSyncExternalStore)(c,l),(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(un,{userName:t,features:s,links:r,sitekitFeatureEnabled:n}),(0,Zt.jsx)("div",{className:"yst-@container yst-grid yst-grid-cols-4 yst-gap-6 yst-my-6",children:(0,Zt.jsx)(i.Dashboard,{widgetFactory:e})})]})};function mn(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 hn(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,mn(t,e))}function fn(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,mn(t,e),s),s}function yn(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 gn=new WeakMap,vn=new WeakMap,bn=new WeakMap,xn=new WeakMap,wn=new WeakMap,Sn=new WeakMap,En=new WeakMap,jn=new WeakMap;class kn{constructor({contentTypes:e,userName:t,features:s,endpoints:r,headers:n,links:a,siteKitConfiguration:o}){yn(this,gn,{writable:!0,value:void 0}),yn(this,vn,{writable:!0,value:void 0}),yn(this,bn,{writable:!0,value:void 0}),yn(this,xn,{writable:!0,value:void 0}),yn(this,wn,{writable:!0,value:void 0}),yn(this,Sn,{writable:!0,value:void 0}),yn(this,En,{writable:!0,value:void 0}),yn(this,jn,{writable:!0,value:new Set}),fn(this,gn,e),fn(this,vn,t),fn(this,bn,s),fn(this,xn,r),fn(this,wn,n),fn(this,Sn,a),fn(this,En,o)}subscribe(e){return hn(this,jn).add(e),()=>hn(this,jn).delete(e)}notifySubscribers(){hn(this,jn).forEach((e=>e()))}getContentTypes(){return hn(this,gn)}getUserName(){return hn(this,vn)}getStepsStatuses(){return[hn(this,En).connectionStepsStatuses.isInstalled,hn(this,En).connectionStepsStatuses.isActive,hn(this,En).connectionStepsStatuses.isSetupCompleted,hn(this,En).connectionStepsStatuses.isConsentGranted]}hasFeature(e){var t;return!0===(null===(t=hn(this,bn))||void 0===t?void 0:t[e])}getEndpoint(e){var t;return null===(t=hn(this,xn))||void 0===t?void 0:t[e]}getHeaders(){return hn(this,wn)}getLink(e){var t;return null===(t=hn(this,Sn))||void 0===t?void 0:t[e]}getSiteKitConfiguration(){return hn(this,En)}getSiteKitCurrentConnectionStep(){return this.getStepsStatuses().findIndex((e=>!e))}isSiteKitConnectionCompleted(){return-1===this.getSiteKitCurrentConnectionStep()}setSiteKitConsentGranted(e){const t=(0,c.cloneDeep)(hn(this,En));t.connectionStepsStatuses.isConsentGranted=e,fn(this,En,t),this.notifySubscribers()}setSiteKitConfigurationDismissed(e){fn(this,En,{...hn(this,En),isSetupWidgetDismissed:e}),this.notifySubscribers()}}function Cn(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 Rn=new WeakMap,Nn=new WeakMap,Pn=new WeakMap;class On{constructor(e,t){Cn(this,Rn,{writable:!0,value:void 0}),Cn(this,Nn,{writable:!0,value:void 0}),Cn(this,Pn,{writable:!0,value:void 0}),fn(this,Rn,e.data),fn(this,Nn,e.endpoint),fn(this,Pn,t)}getTrackingElement(e){var t;return null===(t=hn(this,Rn))||void 0===t?void 0:t[e]}track(e){const t=(0,c.cloneDeep)(hn(this,Rn));let s=!1;Object.entries(e).forEach((([e,r])=>{void 0!==t[e]&&t[e]!==r&&(t[e]=r,s=!0)})),s&&(fn(this,Rn,t),this.storeData(t))}storeData(e,t){hn(this,Pn).fetchJson(hn(this,Nn),e,{...t,method:"POST"}).catch(c.noop)}}const Tn=d.forwardRef((function(e,t){return d.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),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))})),Ln=d.forwardRef((function(e,t){return d.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),d.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"}))}));var Mn,An,In,Dn,Fn,zn,Un,Bn,qn,$n;function Hn(){return Hn=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},Hn.apply(this,arguments)}const Vn=e=>d.createElement("svg",Hn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 252 60"},e),Mn||(Mn=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"})),An||(An=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"})),In||(In=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"})),Dn||(Dn=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"})),Fn||(Fn=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"})),zn||(zn=d.createElement("circle",{cx:126,cy:30,r:30,fill:"#DCFCE7"})),Un||(Un=d.createElement("path",{stroke:"#16A34A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"m117.045 31.25 5 5 12.5-12.5"})),Bn||(Bn=d.createElement("path",{fill:"#5F6368",d:"M238.632 23.565h2.267v.074l-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.084c0 .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.894c-.488.853-1.126 1.523-1.912 2.011-.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"})),qn||(qn=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"}))),$n||($n=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"}))))),Wn=[{children:(0,Vt.__)("INSTALL","wordpress-seo"),id:"install"},{children:(0,Vt.__)("ACTIVATE","wordpress-seo"),id:"activate"},{children:(0,Vt.__)("SET UP","wordpress-seo"),id:"setup"},{children:(0,Vt.__)("CONNECT","wordpress-seo"),id:"connect"}],Gn={install:0,activate:1,setup:2,grantConsent:3,successfullyConnected:-1},Kn=(e,t)=>[Gn.setup,Gn.grantConsent,Gn.successfullyConnected].includes(e)&&!t,Yn=({isSiteKitConnectionCompleted:e})=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(l.Title,{size:"2",className:"yst-mb-4",children:e?(0,Vt.__)("You’ve successfully connected your site with Site Kit by Google!","wordpress-seo"):(0,Vt.__)("Expand your dashboard with insights from Google!","wordpress-seo")}),!e&&(0,Zt.jsx)("p",{className:"yst-mb-4",children:(0,Vt.__)("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")})]}),Zn=({capabilities:e,currentStep:t,isVersionSupported:s,isConsentGranted:r})=>{const n="yst-mt-6";return Kn(t,s)?r?(0,Zt.jsx)(l.Alert,{className:n,variant:"error",children:(0,Vt.__)("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,Zt.jsx)(l.Alert,{className:n,children:(0,Vt.__)("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===Gn.successfullyConnected?null:!e.installPlugins&&t<Gn.grantConsent?(0,Zt.jsx)(l.Alert,{className:n,children:(0,Vt.__)("Please contact your WordPress admin to install, activate, and set up the Site Kit by Google plugin.","wordpress-seo")}):e.viewSearchConsoleData||t!==Gn.grantConsent?void 0:(0,Zt.jsx)(l.Alert,{className:n,children:(0,Vt.__)("You don’t have view access to Site Kit by Google. Please contact the admin who set it up.","wordpress-seo")})},Jn=({dashboardUrl:e})=>(0,Zt.jsx)(l.Alert,{className:"yst-mb-4",children:Wt((0,Vt.sprintf)(/* translators: %1$s and %2$s: Expands to an opening and closing link tag. */
(0,Vt.__)("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,Zt.jsx)("a",{href:e})})}),Qn=({currentStep:e,config:t,isConnectionCompleted:s,onDismissWidget:r,onShowConsent:n})=>{const a=(0,o.useCallback)(((e,s="installPlugins")=>{var r;return null!==(r=t.capabilities)&&void 0!==r&&r[s]?e:null}),[t.capabilities]);if(Kn(e,t.isVersionSupported))return(0,Zt.jsx)(l.Button,{as:"a",href:t.updateUrl,children:(0,Vt.__)("Update Site Kit by Google","wordpress-seo")});if(s)return(0,Zt.jsx)(l.Button,{onClick:r,children:(0,Vt.__)("Got it!","wordpress-seo")});switch(e){case Gn.install:return(0,Zt.jsx)(l.Button,{as:"a",href:a(t.installUrl),disabled:!t.capabilities.installPlugins,"aria-disabled":!t.capabilities.installPlugins,children:(0,Vt.__)("Install Site Kit by Google","wordpress-seo")});case Gn.activate:return(0,Zt.jsx)(l.Button,{as:"a",href:a(t.activateUrl),disabled:!t.capabilities.installPlugins,"aria-disabled":!t.capabilities.installPlugins,children:(0,Vt.__)("Activate Site Kit by Google","wordpress-seo")});case Gn.setup:return(0,Zt.jsx)(l.Button,{as:"a",href:a(t.setupUrl),disabled:!t.capabilities.installPlugins,"aria-disabled":!t.capabilities.installPlugins,children:(0,Vt.__)("Set up Site Kit by Google","wordpress-seo")});case Gn.grantConsent:return(0,Zt.jsx)(l.Button,{disabled:!t.capabilities.viewSearchConsoleData,onClick:n,children:(0,Vt.__)("Connect Site Kit by Google","wordpress-seo")})}return null},Xn=({dataProvider:e,remoteDataProvider:t,dataTracker:s})=>{const{grantConsent:r,dismissPermanently:n}=((e,t)=>({grantConsent:(0,o.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,o.useCallback)((s=>{t.fetchJson(e.getEndpoint("siteKitConfigurationDismissal"),{is_dismissed:String(!0)},{...s,method:"POST"}).catch(c.noop),e.setSiteKitConfigurationDismissed(!0)}),[t,e])}))(e,t),a=e.getSiteKitCurrentConnectionStep(),d=e.getSiteKitConfiguration(),u=e.isSiteKitConnectionCompleted()&&d.isVersionSupported;((e,t)=>{(0,o.useEffect)((()=>{const s=(r=t,null===(n=Object.entries(Gn).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,a);const p=(0,o.useCallback)((()=>{e.setSiteKitConfigurationDismissed(!0)}),[e]),m=(0,o.useCallback)((()=>{p(),s.track({setupWidgetTemporarilyDismissed:"yes"})}),[s,p]),[h,,,f,y]=(0,l.useToggleState)(!1),g=(0,o.useCallback)((()=>{n(),s.track({setupWidgetPermanentlyDismissed:"yes"})}),[s,a]),v=e.getLink("siteKitLearnMore"),b=e.getLink("siteKitConsentLearnMore");return(0,Zt.jsxs)(i.Widget,{className:"yst-paper__content yst-relative @3xl:yst-col-span-2 yst-col-span-4",children:[(0,Zt.jsx)("div",{className:"yst-flex yst-justify-center yst-mb-6 yst-mt-4",children:u?(0,Zt.jsx)(Vn,{className:"yst-aspect-[21/5] yst-max-w-[252px]"}):(0,Zt.jsx)(cn,{className:"yst-aspect-[21/5] yst-max-w-[252px]"})}),!Kn(a,d.isVersionSupported)&&(0,Zt.jsx)(l.Stepper,{steps:Wn,currentStep:a===Gn.successfullyConnected?Wn.length:a,className:"yst-mb-6"}),(0,Zt.jsxs)(l.DropdownMenu,{as:"span",className:"yst-absolute yst-top-4 yst-end-4",children:[(0,Zt.jsx)(l.DropdownMenu.IconTrigger,{screenReaderTriggerLabel:(0,Vt.__)("Open Site Kit widget dropdown menu","wordpress-seo"),className:"yst-float-end"}),(0,Zt.jsxs)(l.DropdownMenu.List,{className:"yst-mt-8 yst-w-56",children:[(0,Zt.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,Zt.jsx)(Tn,{className:"yst-w-4 yst-text-slate-400 yst-shrink-0"}),(0,Vt.__)("Remove until next visit","wordpress-seo")]}),(0,Zt.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,Zt.jsx)(Ln,{className:"yst-w-4 yst-shrink-0"}),(0,Vt.__)("Remove permanently","wordpress-seo")]})]})]}),(0,Zt.jsx)("hr",{className:"yst-bg-slate-200 yst-mb-6"}),d.isRedirectedFromSiteKit&&(0,Zt.jsx)(Jn,{dashboardUrl:d.dashboardUrl}),(0,Zt.jsxs)("div",{className:"yst-max-w-2xl",children:[(0,Zt.jsx)(Yn,{isSiteKitConnectionCompleted:u}),(0,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium",children:u?(0,Vt.__)("You're all set, here are some benefits:","wordpress-seo"):(0,Vt.__)("Here's what you'll unlock:","wordpress-seo")}),(0,Zt.jsxs)("ul",{children:[(0,Zt.jsxs)("li",{className:"yst-gap-2 yst-flex yst-mt-2 yst-items-start",children:[(0,Zt.jsx)(as,{className:"yst-w-5 yst-text-green-400 yst-shrink-0"}),(0,Vt.__)("Grow your audience with actionable SEO and user behavior insights.","wordpress-seo")]}),(0,Zt.jsxs)("li",{className:"yst-gap-2 yst-flex yst-mt-2 yst-items-start",children:[(0,Zt.jsx)(as,{className:"yst-w-5 yst-text-green-400 yst-shrink-0"}),(0,Vt.__)("Fine-tune your SEO and optimize your content using key performance metrics (KPI).","wordpress-seo")]})]}),(0,Zt.jsx)(Zn,{capabilities:d.capabilities,currentStep:a,isVersionSupported:d.isVersionSupported,isConsentGranted:d.connectionStepsStatuses.isConsentGranted})]}),(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-1.5 yst-mt-6 yst-items-center",children:[(0,Zt.jsx)(Qn,{currentStep:a,config:d,isConnectionCompleted:u,onDismissWidget:p,onShowConsent:f}),!u&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.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,Vt.__)("Learn more","wordpress-seo"),(0,Zt.jsx)(Es,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")})]}),(0,Zt.jsx)(dn,{isOpen:a===Gn.grantConsent&&h,onClose:y,onGrantConsent:r,learnMoreLink:b})]})]})]})};function ea(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 ta=new WeakMap,sa=new WeakMap,ra=new WeakMap,na=new WeakMap,aa=new WeakMap;class oa{constructor(e,t,s,r,n){ea(this,ta,{writable:!0,value:void 0}),ea(this,sa,{writable:!0,value:void 0}),ea(this,ra,{writable:!0,value:void 0}),ea(this,na,{writable:!0,value:void 0}),ea(this,aa,{writable:!0,value:void 0}),fn(this,ta,e),fn(this,sa,t),fn(this,ra,s),fn(this,na,r),fn(this,aa,n)}getRemoteDataProvider(e){var t;return null!==(t=hn(this,ra)[e])&&void 0!==t?t:hn(this,sa)}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:a}=hn(this,ta).getSiteKitConfiguration(),o=hn(this,ta).isSiteKitConnectionCompleted(),l=t&&o&&a,c=l&&n.viewSearchConsoleData,d=l&&r&&n.viewAnalyticsData;switch(e){case this.types.seoScores:return hn(this,ta).hasFeature("indexables")&&hn(this,ta).hasFeature("seoAnalysis")?(0,Zt.jsx)(i.ScoreWidget,{analysisType:"seo",dataProvider:hn(this,ta),remoteDataProvider:this.getRemoteDataProvider(e)},e):null;case this.types.readabilityScores:return hn(this,ta).hasFeature("indexables")&&hn(this,ta).hasFeature("readabilityAnalysis")?(0,Zt.jsx)(i.ScoreWidget,{analysisType:"readability",dataProvider:hn(this,ta),remoteDataProvider:this.getRemoteDataProvider(e)},e):null;case this.types.topPages:return c?(0,Zt.jsx)(i.TopPagesWidget,{dataProvider:hn(this,ta),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:hn(this,na).plainMetricsDataFormatter},e):null;case this.types.siteKitSetup:return!t||s?null:(0,Zt.jsx)(Xn,{dataProvider:hn(this,ta),remoteDataProvider:this.getRemoteDataProvider(e),dataTracker:hn(this,aa).setupWidgetDataTracker},e);case this.types.topQueries:return c?(0,Zt.jsx)(i.TopQueriesWidget,{dataProvider:hn(this,ta),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:hn(this,na).plainMetricsDataFormatter},e):null;case this.types.searchRankingCompare:return c?(0,Zt.jsx)(i.SearchRankingCompareWidget,{dataProvider:hn(this,ta),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:hn(this,na).comparisonMetricsDataFormatter},e):null;case this.types.organicSessions:return d?(0,Zt.jsx)(i.OrganicSessionsWidget,{dataProvider:hn(this,ta),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:hn(this,na).comparisonMetricsDataFormatter},e):null;default:return null}}}const ia=window.yoast.reduxJsToolkit,la="adminUrl",ca=(0,ia.createSlice)({name:la,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),da=ca.getInitialState,ua={selectAdminUrl:e=>(0,c.get)(e,la,"")};ua.selectAdminLink=(0,ia.createSelector)([ua.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}}));const pa=ca.actions,ma=ca.reducer,ha=window.wp.apiFetch;var fa=s.n(ha);const ya="hasConsent",ga=(0,ia.createSlice)({name:ya,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),va=(ga.getInitialState,ga.actions,ga.reducer,window.wp.url),ba="linkParams",xa=(0,ia.createSlice)({name:ba,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),wa=xa.getInitialState,Sa={selectLinkParam:(e,t,s={})=>(0,c.get)(e,`${ba}.${t}`,s),selectLinkParams:e=>(0,c.get)(e,ba,{})};Sa.selectLink=(0,ia.createSelector)([Sa.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,va.addQueryArgs)(t,{...e,...s})));const _a=xa.actions,Ea=xa.reducer,ja=(0,ia.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,ia.nanoid)(),variant:t,size:s,title:r||"",description:n}})},removeNotification:(e,{payload:t})=>(0,c.omit)(e,t)}}),ka=(ja.getInitialState,ja.actions,ja.reducer,"pluginUrl"),Ca=(0,ia.createSlice)({name:ka,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),Ra=(Ca.getInitialState,{selectPluginUrl:e=>(0,c.get)(e,ka,"")});Ra.selectImageLink=(0,ia.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("/"))),Ca.actions,Ca.reducer;const Na="wistiaEmbedPermission",Pa=(0,ia.createSlice)({name:Na,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${Na}/${Is}`,(e=>{e.status=zs})),e.addCase(`${Na}/${Ds}`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${Na}/${Fs}`,((e,{payload:t})=>{e.status=Us,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 Oa;Pa.getInitialState,Pa.actions,Pa.reducer;const Ta=(0,ia.createSlice)({name:"documentTitle",initialState:(0,c.defaultTo)(null===(Oa=document)||void 0===Oa?void 0:Oa.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}});function La(...e){return e.filter(Boolean).join(" ")}function Ma(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,Ma),r}Ta.getInitialState,Ta.actions,Ta.reducer;var Aa,Ia,Da=((Ia=Da||{})[Ia.None=0]="None",Ia[Ia.RenderStrategy=1]="RenderStrategy",Ia[Ia.Static=2]="Static",Ia),Fa=((Aa=Fa||{})[Aa.Unmount=0]="Unmount",Aa[Aa.Hidden=1]="Hidden",Aa);function za({ourProps:e,theirProps:t,slot:s,defaultTag:r,features:n,visible:a=!0,name:o}){let i=Ba(t,e);if(a)return Ua(i,s,r,o);let l=null!=n?n:0;if(2&l){let{static:e=!1,...t}=i;if(e)return Ua(t,s,r,o)}if(1&l){let{unmount:e=!0,...t}=i;return Ma(e?0:1,{0:()=>null,1:()=>Ua({...t,hidden:!0,style:{display:"none"}},s,r,o)})}return Ua(i,s,r,o)}function Ua(e,t={},s,r){var n;let{as:a=s,children:o,refName:i="ref",...l}=Ha(e,["unmount","static"]),c=void 0!==e.ref?{[i]:e.ref}:{},u="function"==typeof o?o(t):o;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(a===d.Fragment&&Object.keys($a(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({},Ba(u.props,$a(Ha(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)(a,Object.assign({},Ha(l,["ref"]),a!==d.Fragment&&c,a!==d.Fragment&&p),u)}function Ba(...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 qa(e){var t;return Object.assign((0,d.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function $a(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Ha(e,t=[]){let s=Object.assign({},e);for(let e of t)e in s&&delete s[e];return s}let Va=(0,d.createContext)(null);Va.displayName="OpenClosedContext";var Wa=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Wa||{});function Ga(){return(0,d.useContext)(Va)}function Ka({value:e,children:t}){return d.createElement(Va.Provider,{value:e},t)}var Ya=Object.defineProperty,Za=(e,t,s)=>(((e,t,s)=>{t in e?Ya(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s})(e,"symbol"!=typeof t?t+"":t,s),s);let Ja=new class{constructor(){Za(this,"current",this.detect()),Za(this,"handoffState","pending"),Za(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}},Qa=(e,t)=>{Ja.isServer?(0,d.useEffect)(e,t):(0,d.useLayoutEffect)(e,t)};function Xa(){let e=(0,d.useRef)(!1);return Qa((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function eo(e){let t=(0,d.useRef)(e);return Qa((()=>{t.current=e}),[e]),t}function to(){let[e,t]=(0,d.useState)(Ja.isHandoffComplete);return e&&!1===Ja.isHandoffComplete&&t(!1),(0,d.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,d.useEffect)((()=>Ja.handoff()),[]),e}let so=function(e){let t=eo(e);return d.useCallback(((...e)=>t.current(...e)),[t])},ro=Symbol();function no(e,t=!0){return Object.assign(e,{[ro]:t})}function ao(...e){let t=(0,d.useRef)(e);(0,d.useEffect)((()=>{t.current=e}),[e]);let s=so((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[ro])))?void 0:s}function oo(){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 io(e,...t){e&&t.length>0&&e.classList.add(...t)}function lo(e,...t){e&&t.length>0&&e.classList.remove(...t)}function co(){let[e]=(0,d.useState)(oo);return(0,d.useEffect)((()=>()=>e.dispose()),[e]),e}function uo({container:e,direction:t,classes:s,onStart:r,onStop:n}){let a=Xa(),o=co(),i=eo(t);Qa((()=>{let t=oo();o.add(t.dispose);let l=e.current;if(l&&"idle"!==i.current&&a.current)return t.dispose(),r.current(i.current),t.add(function(e,t,s,r){let n=s?"enter":"leave",a=oo(),o=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=Ma(n,{enter:()=>t.enter,leave:()=>t.leave}),l=Ma(n,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Ma(n,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return lo(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),io(e,...i,...c),a.nextFrame((()=>{lo(e,...c),io(e,...l),function(e,t){let s=oo();if(!e)return s.dispose;let{transitionDuration:r,transitionDelay:n}=getComputedStyle(e),[a,o]=[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(a+o!==0){let r=s.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();s.add((()=>t())),s.dispose}(e,(()=>(lo(e,...i),io(e,...t.entered),o())))})),a.dispose}(l,s.current,"enter"===i.current,(()=>{t.dispose(),n.current(i.current)}))),t.dispose}),[t])}function po(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let mo=(0,d.createContext)(null);mo.displayName="TransitionContext";var ho=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ho||{});let fo=(0,d.createContext)(null);function yo(e){return"children"in e?yo(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function go(e,t){let s=eo(e),r=(0,d.useRef)([]),n=Xa(),a=co(),o=so(((e,t=Fa.Hidden)=>{let o=r.current.findIndex((({el:t})=>t===e));-1!==o&&(Ma(t,{[Fa.Unmount](){r.current.splice(o,1)},[Fa.Hidden](){r.current[o].state="hidden"}}),a.microTask((()=>{var e;!yo(r)&&n.current&&(null==(e=s.current)||e.call(s))})))})),i=so((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"}),()=>o(e,Fa.Unmount)})),l=(0,d.useRef)([]),c=(0,d.useRef)(Promise.resolve()),u=(0,d.useRef)({enter:[],leave:[],idle:[]}),p=so(((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=so(((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:o,onStart:p,onStop:m,wait:c,chains:u})),[i,o,r,p,m,u,c])}function vo(){}fo.displayName="NestingContext";let bo=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function xo(e){var t;let s={};for(let r of bo)s[r]=null!=(t=e[r])?t:vo;return s}let wo=Da.RenderStrategy,So=qa((function(e,t){let{beforeEnter:s,afterEnter:r,beforeLeave:n,afterLeave:a,enter:o,enterFrom:i,enterTo:l,entered:c,leave:u,leaveFrom:p,leaveTo:m,...h}=e,f=(0,d.useRef)(null),y=ao(f,t),g=h.unmount?Fa.Unmount:Fa.Hidden,{show:v,appear:b,initial:x}=function(){let e=(0,d.useContext)(mo);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)(fo);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===Fa.Hidden&&f.current)return v&&"visible"!==w?void S("visible"):Ma(w,{hidden:()=>j(f),visible:()=>E(f)})}),[w,f,E,j,v,g]);let C=eo({enter:po(o),enterFrom:po(i),enterTo:po(l),entered:po(c),leave:po(u),leaveFrom:po(p),leaveTo:po(m)}),R=function(e){let t=(0,d.useRef)(xo(e));return(0,d.useEffect)((()=>{t.current=xo(e)}),[e]),t}({beforeEnter:s,afterEnter:r,beforeLeave:n,afterLeave:a}),N=to();(0,d.useEffect)((()=>{if(N&&"visible"===w&&null===f.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[f,w,N]);let P=x&&!b,O=!N||P||k.current===v?"idle":v?"enter":"leave",T=so((e=>Ma(e,{enter:()=>R.current.beforeEnter(),leave:()=>R.current.beforeLeave(),idle:()=>{}}))),L=so((e=>Ma(e,{enter:()=>R.current.afterEnter(),leave:()=>R.current.afterLeave(),idle:()=>{}}))),M=go((()=>{S("hidden"),j(f)}),_);uo({container:f,classes:C,direction:O,onStart:eo((e=>{M.onStart(f,e,T)})),onStop:eo((e=>{M.onStop(f,e,L),"leave"===e&&!yo(M)&&(S("hidden"),j(f))}))}),(0,d.useEffect)((()=>{!P||(g===Fa.Hidden?k.current=null:k.current=v)}),[v,P,w]);let A=h,I={ref:y};return b&&v&&Ja.isServer&&(A={...A,className:La(h.className,...C.current.enter,...C.current.enterFrom)}),d.createElement(fo.Provider,{value:M},d.createElement(Ka,{value:Ma(w,{visible:Wa.Open,hidden:Wa.Closed})},za({ourProps:I,theirProps:A,defaultTag:"div",features:wo,visible:"visible"===w,name:"Transition.Child"})))})),_o=qa((function(e,t){let{show:s,appear:r=!1,unmount:n,...a}=e,o=(0,d.useRef)(null),i=ao(o,t);to();let l=Ga();if(void 0===s&&null!==l&&(s=Ma(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=go((()=>{u("hidden")})),[m,h]=(0,d.useState)(!0),f=(0,d.useRef)([s]);Qa((()=>{!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(yo(p)){let e=o.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(fo.Provider,{value:p},d.createElement(mo.Provider,{value:y},za({ourProps:{...g,as:d.Fragment,children:d.createElement(So,{ref:i,...g,...a})},theirProps:{},defaultTag:d.Fragment,features:wo,visible:"visible"===c,name:"Transition"})))})),Eo=qa((function(e,t){let s=null!==(0,d.useContext)(mo),r=null!==Ga();return d.createElement(d.Fragment,null,!s&&r?d.createElement(_o,{ref:t,...e}):d.createElement(So,{ref:t,...e}))})),jo=Object.assign(_o,{Child:Eo,Root:_o});const ko=d.forwardRef((function(e,t){return d.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),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"}),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"}))})),Co=d.forwardRef((function(e,t){return d.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),d.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"}))})),Ro=d.forwardRef((function(e,t){return d.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),d.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"}))})),No=d.forwardRef((function(e,t){return d.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),d.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"}))})),Po=d.forwardRef((function(e,t){return d.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),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),d.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"}))})),Oo=d.forwardRef((function(e,t){return d.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),d.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"}))})),To="@yoast/general",Lo=(0,o.createContext)({Icon:null,bulletClass:"",iconClass:""}),Mo=(e,t,s)=>{const r=e.querySelector(t);return r&&(r.textContent=s),r},Ao=(e,t=[],...s)=>(0,r.useSelect)((t=>{var r,n;return null===(r=(n=t(To))[e])||void 0===r?void 0:r.call(n,...s)}),t),Io=(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},Do=({id:e,dismissed:t,message:s,resolveNonce:n})=>{const[a,i]=(0,o.useState)(!1),[d,u]=(0,o.useState)(""),{removeAlert:p,setResolveSuccessMessage:m}=(0,r.useDispatch)(To),h=Ao("selectPreference",[],"isPremium"),f=Ao("selectPreference",[],"addonsStatus"),y=(0,o.useRef)(),g=(0,o.useCallback)((()=>{u("")}),[]),v=(0,o.useCallback)((async()=>{const t=y.current,s=t?t.value.trim():"";if((0,va.isEmail)(s)){i(!0),u("");try{const t=await async function(e,t,s){const r=Io("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,Vt.__)("Failed to subscribe to mailing list.","wordpress-seo"));const o=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)(To).selectPreference("ajaxUrl");return(await fetch(n,{method:"POST",body:s})).json()}(e,n);var a;if(!o.success)return void u((null===(a=o.data)||void 0===a?void 0:a.message)||(0,Vt.__)("Failed to resolve alert.","wordpress-seo"));m((0,Vt.__)("Successfully subscribed!","wordpress-seo")),p(e)}catch(e){u((0,Vt.__)("An error occurred. Please try again.","wordpress-seo")),console.error("Error in handleSendClick:",e)}finally{i(!1)}}else u((0,Vt.__)("Please enter a valid email address.","wordpress-seo"))}),[e,n,i,u,p,m]);return(0,Zt.jsxs)("div",{className:Ss()("yst-text-sm yst-text-slate-600 yst-grow",t&&"yst-opacity-50"),children:[(0,Zt.jsx)("div",{dangerouslySetInnerHTML:{__html:s}}),(0,Zt.jsxs)("div",{className:"yst-flex yst-items-end yst-gap-2 yst-mt-2",children:[(0,Zt.jsx)(l.TextField,{type:"email",name:e+"-input-field",id:e+"-input-field",label:"",placeholder:(0,Vt.__)("E.g. example@email.com","wordpress-seo"),className:"yst-flex-1",disabled:a||t,onInput:g,ref:y,onChange:c.noop}),(0,Zt.jsxs)(l.Button,{variant:"primary",size:"large",onClick:v,isLoading:a,disabled:a||t,children:[(0,Vt.__)("Send","wordpress-seo"),(0,Zt.jsx)("div",{className:"yst-ml-2 yst-w-4",children:(0,Zt.jsx)(Es,{className:"yst-w-4 yst-text-white"})})]})]}),d&&(0,Zt.jsx)("p",{className:"yst-text-red-600 yst-text-xs yst-mt-1",children:d}),(0,Zt.jsx)("p",{className:"yst-text-slate-600 yst-text-xxs yst-leading-4 yst-mt-1",children:Wt((0,Vt.sprintf)(
/**
       * translators: %1$s and %2$s expand to opening and closing <a> tags.
       */
(0,Vt.__)("Yoast respects your privacy. Read %1$sour privacy policy%2$s on how we handle your personal information.","wordpress-seo"),"<a>","</a>"),{a:(0,Zt.jsx)("a",{href:(0,r.select)(To).selectLink("https://yoa.st/gdpr-config-workout"),target:"_blank",rel:"noopener"})})})]})};Do.propTypes={id:Yt().string.isRequired,dismissed:Yt().bool.isRequired,message:Yt().string.isRequired,resolveNonce:Yt().string.isRequired};const Fo=({dismissed:e,message:t})=>(0,Zt.jsx)("div",{className:Ss()("yst-text-sm yst-text-slate-600 yst-grow",e&&"yst-opacity-50"),dangerouslySetInnerHTML:{__html:t}});Fo.propTypes={dismissed:Yt().bool.isRequired,message:Yt().string.isRequired};const zo=({id:e,dismissed:t,message:s,resolveNonce:r})=>"wpseo-ping-other-admins"===e?(0,Zt.jsx)(Do,{id:e,dismissed:t,message:s,resolveNonce:r}):(0,Zt.jsx)(Fo,{dismissed:t,message:s});zo.propTypes={id:Yt().string.isRequired,dismissed:Yt().bool.isRequired,message:Yt().string.isRequired,resolveNonce:Yt().string.isRequired};const Uo=({id:e="",nonce:t="",dismissed:s=!1,message:n="",resolveNonce:a=""})=>{const{bulletClass:i=""}=(0,o.useContext)(Lo),{toggleAlertStatus:c}=(0,r.useDispatch)(To),d=s?Po:Oo,u=(0,o.useCallback)((async()=>{c(e,t,s)}),[e,t,s,c]);return(0,Zt.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,Zt.jsx)("div",{className:Ss()("yst-mt-1",s&&"yst-opacity-50"),children:(0,Zt.jsx)("svg",{width:"11",height:"11",className:i,children:(0,Zt.jsx)("circle",{cx:"5.5",cy:"5.5",r:"5.5"})})}),(0,Zt.jsx)(zo,{id:e,dismissed:s,message:n,resolveNonce:a}),(0,Zt.jsx)(l.Button,{variant:"secondary",size:"small",className:"yst-self-center yst-h-8",onClick:u,children:(0,Zt.jsx)(d,{className:"yst-w-4 yst-h-4 yst-text-neutral-700"})})]},e)};Uo.propTypes={id:Yt().string,nonce:Yt().string,dismissed:Yt().bool,message:Yt().string,resolveNonce:Yt().string};const Bo=({className:e="",items:t=[]})=>0===t.length?null:(0,Zt.jsx)("ul",{className:e,children:t.map((e=>(0,Zt.jsx)(Uo,{id:e.id,nonce:e.nonce,dismissed:e.dismissed,message:e.message,resolveNonce:e.resolveNonce||""},e.id)))});Bo.propTypes={className:Yt().string,items:Yt().arrayOf(Yt().shape({message:Yt().string,id:Yt().string,nonce:Yt().string,dismissed:Yt().bool,resolveNonce:Yt().string}))};const qo=d.forwardRef((function(e,t){return d.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),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))})),$o=({title:e,counts:t=0,children:s=null})=>{const{Icon:r=qo,iconClass:n=""}=(0,o.useContext)(Lo);return(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-justify-between yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(r,{className:Ss()("yst-w-6 yst-h-6",n)}),(0,Zt.jsxs)(l.Title,{className:"yst-grow",as:"h2",size:"2",children:[e," ",`(${t})`]})]}),s]})};var Ho;$o.propTypes={title:Yt().string.isRequired,counts:Yt().number,children:Yt().node};let Vo=null!=(Ho=d.useId)?Ho:function(){let e=to(),[t,s]=d.useState(e?()=>Ja.nextId():null);return Qa((()=>{null===t&&s(Ja.nextId())}),[t]),null!=t?""+t:void 0};var Wo=(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))(Wo||{});function Go(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 Ko(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 Yo(e,t){let[s,r]=(0,d.useState)((()=>Ko(e)));return Qa((()=>{r(Ko(e))}),[e.type,e.as]),Qa((()=>{s||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[s,t]),s}function Zo(e){return Ja.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}var Jo,Qo=((Jo=Qo||{})[Jo.Open=0]="Open",Jo[Jo.Closed=1]="Closed",Jo),Xo=(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))(Xo||{});let ei={0:e=>({...e,disclosureState:Ma(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}},ti=(0,d.createContext)(null);function si(e){let t=(0,d.useContext)(ti);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,si),t}return t}ti.displayName="DisclosureContext";let ri=(0,d.createContext)(null);function ni(e){let t=(0,d.useContext)(ri);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ni),t}return t}ri.displayName="DisclosureAPIContext";let ai=(0,d.createContext)(null);function oi(e,t){return Ma(t.type,ei,e,t)}ai.displayName="DisclosurePanelContext";let ii=d.Fragment,li=qa((function(e,t){let{defaultOpen:s=!1,...r}=e,n=(0,d.useRef)(null),a=ao(t,no((e=>{n.current=e}),void 0===e.as||e.as===d.Fragment)),o=(0,d.useRef)(null),i=(0,d.useRef)(null),l=(0,d.useReducer)(oi,{disclosureState:s?0:1,linkedPanel:!1,buttonRef:i,panelRef:o,buttonId:null,panelId:null}),[{disclosureState:c,buttonId:u},p]=l,m=so((e=>{p({type:1});let t=Zo(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:a};return d.createElement(ti.Provider,{value:l},d.createElement(ri.Provider,{value:h},d.createElement(Ka,{value:Ma(c,{0:Wa.Open,1:Wa.Closed})},za({ourProps:y,theirProps:r,slot:f,defaultTag:ii,name:"Disclosure"}))))})),ci=qa((function(e,t){let s=Vo(),{id:r=`headlessui-disclosure-button-${s}`,...n}=e,[a,o]=si("Disclosure.Button"),i=(0,d.useContext)(ai),l=null!==i&&i===a.panelId,c=(0,d.useRef)(null),u=ao(c,t,l?null:a.buttonRef);(0,d.useEffect)((()=>{if(!l)return o({type:2,buttonId:r}),()=>{o({type:2,buttonId:null})}}),[r,o,l]);let p=so((e=>{var t;if(l){if(1===a.disclosureState)return;switch(e.key){case Wo.Space:case Wo.Enter:e.preventDefault(),e.stopPropagation(),o({type:0}),null==(t=a.buttonRef.current)||t.focus()}}else switch(e.key){case Wo.Space:case Wo.Enter:e.preventDefault(),e.stopPropagation(),o({type:0})}})),m=so((e=>{e.key===Wo.Space&&e.preventDefault()})),h=so((t=>{var s;Go(t.currentTarget)||e.disabled||(l?(o({type:0}),null==(s=a.buttonRef.current)||s.focus()):o({type:0}))})),f=(0,d.useMemo)((()=>({open:0===a.disclosureState})),[a]),y=Yo(e,c);return za({ourProps:l?{ref:u,type:y,onKeyDown:p,onClick:h}:{ref:u,id:r,type:y,"aria-expanded":e.disabled?void 0:0===a.disclosureState,"aria-controls":a.linkedPanel?a.panelId:void 0,onKeyDown:p,onKeyUp:m,onClick:h},theirProps:n,slot:f,defaultTag:"button",name:"Disclosure.Button"})})),di=Da.RenderStrategy|Da.Static,ui=qa((function(e,t){let s=Vo(),{id:r=`headlessui-disclosure-panel-${s}`,...n}=e,[a,o]=si("Disclosure.Panel"),{close:i}=ni("Disclosure.Panel"),l=ao(t,a.panelRef,(e=>{o({type:e?4:5})}));(0,d.useEffect)((()=>(o({type:3,panelId:r}),()=>{o({type:3,panelId:null})})),[r,o]);let c=Ga(),u=null!==c?c===Wa.Open:0===a.disclosureState,p=(0,d.useMemo)((()=>({open:0===a.disclosureState,close:i})),[a,i]),m={ref:l,id:r};return d.createElement(ai.Provider,{value:a.panelId},za({ourProps:m,theirProps:n,slot:p,defaultTag:"div",features:di,visible:u,name:"Disclosure.Panel"}))})),pi=Object.assign(li,{Button:ci,Panel:ui});const mi=d.forwardRef((function(e,t){return d.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),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"}))})),hi=({label:e,children:t})=>(0,Zt.jsx)(pi,{children:({open:s})=>(0,Zt.jsxs)("div",{className:"yst-shadow-sm yst-border-slate-300 yst-rounded-md yst-border",children:[(0,Zt.jsxs)(pi.Button,{className:"yst-w-full yst-flex yst-justify-between yst-py-4 yst-pe-4 yst-ps-6 yst-items-center",children:[(0,Zt.jsx)("div",{className:"yst-font-medium",children:e}),(0,Zt.jsx)(mi,{className:Ss()("yst-h-5 yst-w-5 flex-shrink-0 yst-text-slate-400",s?"yst-rotate-180":"")})]}),(0,Zt.jsx)(pi.Panel,{className:"yst-px-6",children:t})]})});function fi({title:e,id:t,isDismissable:s,children:n,className:a=""}){const i=(0,l.useSvgAria)(),{dismissNotice:c}=(0,r.useDispatch)(To),d=(0,o.useCallback)((()=>{setTimeout((()=>{c(t)}),0)}),[c,t]);return(0,Zt.jsxs)("div",{id:t,className:Ss()("yst-p-3 yst-rounded-md yoast-general-page-notice",a),children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-row yst-items-center yst-min-h-[24px]",children:[(0,Zt.jsx)("span",{className:"yoast-icon"}),e&&(0,Zt.jsx)("div",{className:"yst-text-sm yst-font-medium",dangerouslySetInnerHTML:{__html:e}}),s&&(0,Zt.jsx)("div",{className:"yst-relative yst-ms-auto",children:(0,Zt.jsxs)("button",{type:"button",className:"notice-dismiss",onClick:d,children:[(0,Zt.jsx)("span",{className:"yst-sr-only",children:(0,Vt.__)("Close","wordpress-seo")}),(0,Zt.jsx)(Tn,{className:"yst-h-5 yst-w-5",...i})]})})]}),n&&(0,Zt.jsx)("div",{className:"yst-flex-1 yst-text-sm yst-max-w-[600px] yst-ps-[29px]",dangerouslySetInnerHTML:{__html:n}})]})}hi.propTypes={label:Yt().string.isRequired,children:Yt().node.isRequired},fi.propTypes={title:Yt().string.isRequired,id:Yt().string.isRequired,isDismissable:Yt().bool.isRequired,children:Yt().string.isRequired,className:Yt().string};const yi=()=>{const e=(0,r.useSelect)((e=>e(To).selectActiveNotifications()),[]),t=(0,r.useSelect)((e=>e(To).selectDismissedNotifications()),[]),s=(0,r.useSelect)((e=>e(To).selectResolveSuccessMessage()),[]),n=t.length,a=(0,Vt._n)("hidden notification","hidden notifications",n,"wordpress-seo"),o={Icon:Ro,bulletClass:"yst-fill-blue-500",iconClass:"yst-text-blue-500"};return(0,Zt.jsx)(l.Paper,{children:(0,Zt.jsx)(l.Paper.Content,{className:"yst-max-w-[600px] yst-flex yst-flex-col yst-gap-y-6",children:(0,Zt.jsxs)(Lo.Provider,{value:{...o},children:[(0,Zt.jsxs)($o,{counts:e.length,title:(0,Vt.__)("Notifications","wordpress-seo"),children:[s&&(0,Zt.jsx)(l.Alert,{variant:"success",className:"yst-mt-6",children:s}),0===e.length&&(0,Zt.jsx)("p",{className:"yst-mt-2 yst-text-sm",children:(0,Vt.__)("No new notifications.","wordpress-seo")})]}),(0,Zt.jsx)(Bo,{items:e}),n>0&&(0,Zt.jsx)(hi,{label:`${n} ${a}`,children:(0,Zt.jsx)(Bo,{className:"yst-pb-6",items:t})})]})})})},gi=()=>{const e=(0,r.useSelect)((e=>e(To).selectActiveProblems()),[]),t=(0,r.useSelect)((e=>e(To).selectDismissedProblems()),[]),s=t.length,n=(0,Vt._n)("hidden problem","hidden problems",s,"wordpress-seo"),a={Icon:qo,bulletClass:"yst-fill-red-500",iconClass:"yst-text-red-500"};return(0,Zt.jsx)(l.Paper,{children:(0,Zt.jsx)(l.Paper.Content,{className:"yst-max-w-[600px] yst-flex yst-flex-col yst-gap-y-6",children:(0,Zt.jsxs)(Lo.Provider,{value:{...a},children:[(0,Zt.jsx)($o,{title:(0,Vt.__)("Problems","wordpress-seo"),counts:e.length,children:(0,Zt.jsx)("p",{className:"yst-mt-2 yst-text-sm",children:e.length>0?(0,Vt.__)("We have detected the following issues that affect the SEO of your site.","wordpress-seo"):(0,Vt.__)("Good job! We could detect no serious SEO problems.","wordpress-seo")})}),(0,Zt.jsx)(Bo,{items:e}),s>0&&(0,Zt.jsx)(hi,{label:`${s} ${n}`,children:(0,Zt.jsx)(Bo,{className:"yst-pb-6",items:t})})]})})})},vi=({className:e=""})=>{const t=(0,o.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),s=Ao("selectLink",[],"https://yoa.st/general-error-support"),r=vt();return(0,Zt.jsx)(l.Paper,{className:e,children:(0,Zt.jsx)(ss,{error:r,children:(0,Zt.jsx)(ss.HorizontalButtons,{handleRefreshClick:t,supportLink:s})})})};vi.propTypes={className:Yt().string};var bi={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},xi=function(e){var t=e.message,s=e["aria-live"];return u().createElement("div",{style:bi,role:"log","aria-live":s},t||"")};xi.propTypes={};const wi=xi;function Si(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 _i=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,a=Array(n),o=0;o<n;o++)a[o]=arguments[o];return s=r=Si(this,e.call.apply(e,[this].concat(a))),r.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},Si(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,a=t.oldAssertiveMessageId,o=e.politeMessage,i=e.politeMessageId,l=e.assertiveMessage,c=e.assertiveMessageId;return s!==o||r!==i?{politeMessage1:t.setAlternatePolite?"":o,politeMessage2:t.setAlternatePolite?o:"",oldPolitemessage:o,oldPoliteMessageId:i,setAlternatePolite:!t.setAlternatePolite}:n!==l||a!==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(wi,{"aria-live":"assertive",message:t}),u().createElement(wi,{"aria-live":"assertive",message:s}),u().createElement(wi,{"aria-live":"polite",message:r}),u().createElement(wi,{"aria-live":"polite",message:n}))},t}(d.Component);_i.propTypes={};const Ei=_i;function ji(){console.warn("Announcement failed, LiveAnnouncer context is missing")}const ki=u().createContext({announceAssertive:ji,announcePolite:ji}),Ci=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,a=e.updateFunctions;return u().createElement(ki.Provider,{value:a},this.props.children,u().createElement(Ei,{assertiveMessage:r,assertiveMessageId:n,politeMessage:t,politeMessageId:s}))},t}(d.Component);var Ri=s(3409),Ni=s.n(Ri);function Pi(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 Oi=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,a=Array(n),o=0;o<n;o++)a[o]=arguments[o];return s=r=Pi(this,e.call.apply(e,[this].concat(a))),r.announce=function(){var e=r.props,t=e.message,s=e["aria-live"],n=e.announceAssertive,a=e.announcePolite;"assertive"===s&&n(t||"",Ni()()),"polite"===s&&a(t||"",Ni()())},Pi(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);Oi.propTypes={};const Ti=Oi;var Li=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},Mi=function(e){return u().createElement(ki.Consumer,null,(function(t){return u().createElement(Ti,Li({},t,e))}))};Mi.propTypes={};const Ai=Mi;const Ii=({children:e,title:t,description:s=null})=>{const r=(0,Vt.sprintf)(/* translators: 1: Settings' section title, 2: Yoast SEO */
(0,Vt.__)("%1$s Dashboard - %2$s","wordpress-seo"),t,"Yoast SEO");return(0,Zt.jsxs)(Ci,{children:[(0,Zt.jsx)(Ai,{message:r,"aria-live":"polite"}),(0,Zt.jsx)(As.Helmet,{children:(0,Zt.jsx)("title",{children:"Dashboard"})}),(0,Zt.jsx)("header",{className:"yst-p-8 yst-border-b yst-border-slate-200",children:(0,Zt.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,Zt.jsx)(l.Title,{children:t}),s&&(0,Zt.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:s})]})}),e]})};var Di,Fi;function zi(){return zi=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},zi.apply(this,arguments)}Ii.propTypes={children:Yt().node.isRequired,title:Yt().string.isRequired,description:Yt().node};const Ui=e=>d.createElement("svg",zi({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),Di||(Di=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"})),Fi||(Fi=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"}))),Bi=()=>{const{handleDismiss:e}=(0,l.useToastContext)(),t=(0,l.useSvgAria)(),s=Ao("selectAdminLink",[],"?page=wpseo_page_settings#/llms-txt"),r=(0,o.useCallback)((async()=>{var t;e(),null===(t=sessionStorage)||void 0===t||t.setItem("yoast-highlight-setting","llm-txt"),window.location.href=s}),[s]);return(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-3 yst-justify-end yst-mt-3",children:[(0,Zt.jsx)(l.Button,{size:"small",variant:"tertiary",onClick:e,children:(0,Vt.__)("Dismiss","wordpress-seo")}),(0,Zt.jsxs)(l.Button,{size:"small",className:"yst-gap-1",onClick:r,children:[(0,Vt.__)("Show me","wordpress-seo"),(0,Zt.jsx)(Es,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180",...t})]})]})},qi=()=>{const{setOptInNotificationSeen:e,hideOptInNotification:t}=(0,r.useDispatch)(To),s=(0,l.useSvgAria)(),[n,a,i]=(0,l.useToggleState)(!1);return(0,o.useEffect)((()=>(e("wpseo_seen_llm_txt_opt_in_notification"),a(),()=>{t("wpseo_seen_llm_txt_opt_in_notification")})),[]),(0,Zt.jsx)(l.Toast,{id:"wpseo_seen_llm_txt_opt_in_notification",isVisible:n,className:"yst-w-96",position:"bottom-left",setIsVisible:i,onDismiss:t,children:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-3",children:[(0,Zt.jsx)("div",{className:"yst-flex-shrink-0",children:(0,Zt.jsx)(Ui,{className:"yst-w-5 yst-h-5 yst-fill-primary-500",...s})}),(0,Zt.jsxs)("div",{className:"yst-flex-1",children:[(0,Zt.jsx)(l.Toast.Title,{title:(0,Vt.__)("New: Prepare your site for AI-driven discovery!","wordpress-seo"),className:"yst-mb-1"}),(0,Zt.jsx)("p",{children:(0,Vt.__)("Automatically generate an llms.txt file that highlights key content for AI systems.","wordpress-seo")})]}),(0,Zt.jsx)("div",{children:(0,Zt.jsx)(l.Toast.Close,{dismissScreenReaderLabel:(0,Vt.__)("Dismiss","wordpress-seo")})})]}),(0,Zt.jsx)(Bi,{})]})})},$i=((0,Vt.__)("E.g. https://www.facebook.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.instagram.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.linkedin.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.myspace.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.pinterest.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.soundcloud.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.tumblr.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.twitter.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.youtube.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.wikipedia.com/yoast","wordpress-seo"),e=>`error-${e}`),Hi=(e,{isVisible:t})=>t?{"aria-invalid":!0,"aria-describedby":$i(e)}:{};function Vi({active:e,selected:t}){return Ss()("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 Wi(e,t){const s=function(e,t){return e.includes(t)?[...e]:[...e,t]}(e.editedSteps,t);return{...e,editedSteps:s}}function Gi(e,t){let s=(0,c.cloneDeep)(e);switch(t.type){case"SET_COMPANY_OR_PERSON":return s=Wi(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=Wi(s,2),s.companyName=t.payload,s;case"SET_COMPANY_LOGO":return s=Wi(s,2),s.companyLogo=t.payload.url,s.companyLogoId=t.payload.id,s;case"REMOVE_COMPANY_LOGO":return s=Wi(s,2),s.companyLogo="",s.companyLogoId="",s;case"CHANGE_WEBSITE_NAME":return s=Wi(s,2),s.websiteName=t.payload,s;case"SET_PERSON_LOGO":return s=Wi(s,2),s.personLogo=t.payload.url,s.personLogoId=t.payload.id,s;case"REMOVE_PERSON_LOGO":return s=Wi(s,2),s.personLogo="",s.personLogoId="",s;case"SET_PERSON":return s=Wi(s,2),s.personId=t.payload.value,s.personName=t.payload.label,s;case"SET_CAN_EDIT_USER":return s=Wi(s,2),s.canEditUser=!0===t.payload?1:0,s;case"CHANGE_SOCIAL_PROFILE":return s=Wi(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=Wi(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=Wi(s,3),s.socialProfiles.otherSocialUrls=[...s.socialProfiles.otherSocialUrls,t.payload.value],s;case"REMOVE_OTHERS_SOCIAL_PROFILE":return s=Wi(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=Wi(s,4),s.tracking=t.payload,s;default:return s}var r,n}const Ki=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.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"}))})),Yi=({items:e,onAddProfile:t,onRemoveProfile:s,onChangeProfile:r,errorFields:n=[],fieldType:a,addButtonChildren:i=(0,Vt.__)("Add another profile","wordpress-seo")})=>{const c=(0,o.useCallback)((e=>{s(parseInt(e.currentTarget.dataset.index,10))}),[s]);return(0,Zt.jsxs)("div",{children:[e.map(((e,t)=>(0,Zt.jsx)("div",{children:(0,Zt.jsxs)("div",{className:"yst-w-full yst-flex yst-items-start yst-mt-4",children:[(0,Zt.jsx)(a,{className:"yst-grow",label:(0,Vt.__)("Other social profile","wordpress-seo"),id:`social-input-other-url-${t}`,value:e,socialMedium:"other",index:t,onChange:r,placeholder:(0,Vt.__)("E.g. https://social-platform.com/yoast","wordpress-seo"),feedback:{type:"error",isVisible:n.includes("other_social_urls-"+t),message:[(0,Vt.__)("Could not save this value. Please check the URL.","wordpress-seo")]}}),(0,Zt.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,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,Vt.__)("Delete item","wordpress-seo")}),(0,Zt.jsx)(Ln,{className:"yst-w-5 yst-h-5"})]})]})},`url-${t}`))),(0,Zt.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,Zt.jsx)(Ki,{className:"yst-w-5 yst-h-5 yst-me-1 yst-text-slate-400"}),i]})]})};Yi.propTypes={fieldType:Yt().elementType.isRequired,items:Yt().array.isRequired,onAddProfile:Yt().func.isRequired,onRemoveProfile:Yt().func.isRequired,onChangeProfile:Yt().func.isRequired,errorFields:Yt().array,addButtonChildren:Yt().node};const Zi=Yi,Ji=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.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"}))})),Qi=({texts:e,id:t,as:s="p",...r})=>{const n=(0,o.useMemo)((()=>(0,c.last)(e)),[e]);return(0,Zt.jsx)(s,{id:t,...r,children:e.map(((e,s)=>(0,Zt.jsxs)(o.Fragment,{children:[e,n!==e&&(0,Zt.jsx)("br",{})]},`${t}-text-${s}`)))})};Qi.propTypes={texts:Yt().arrayOf(Yt().string).isRequired,id:Yt().string.isRequired,as:Yt().oneOfType([Yt().string,Yt().elementType])};const Xi=Qi;function el({hasError:e=!1,hasSuccess:t=!1}){return e?(0,Zt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-3",children:(0,Zt.jsx)(Ji,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"})}):t?(0,Zt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-3",children:(0,Zt.jsx)(as,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-emerald-600"})}):null}function tl({className:e="",id:t,label:s="",description:r=null,value:n="",onChange:a,placeholder:i="",feedback:l={message:[],isVisible:!1},type:c="text",...d}){const u=c||"text",p=(0,o.useMemo)((()=>l.isVisible&&"error"===l.type),[l.isVisible,l.type]),m=(0,o.useMemo)((()=>l.isVisible&&"success"===l.type),[l.isVisible,l.type]);return(0,Zt.jsxs)("div",{className:e,children:[s&&(0,Zt.jsx)("label",{className:"yst-block yst-mb-2 yst-font-medium yst-text-slate-800",htmlFor:t,children:s}),(0,Zt.jsxs)("div",{className:"yst-relative",children:[(0,Zt.jsx)("input",{id:t,type:u,value:n,className:Ss()("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:a,placeholder:i,...Hi(t,l),...d}),(0,Zt.jsx)(el,{hasError:p,hasSuccess:m})]}),l.isVisible&&(0,Zt.jsx)(Xi,{id:`${p?"error-":"success-"}${t}`,className:Ss()("yst-mt-2 yst-text-sm",{"yst-text-red-600":p,"yst-text-emerald-600":m}),texts:l.message}),r]})}function sl({id:e,onChange:t,socialMedium:s="",isDisabled:r=!1,...n}){const a=(0,o.useCallback)((e=>{t(e.target.value,"other"===s?n.index:s)}),[s,n.index]);return(0,Zt.jsx)(tl,{onChange:a,disabled:r,id:e,...n})}function rl({socialProfiles:e,errorFields:t=[],dispatch:s}){const r=(0,o.useCallback)(((e,t)=>{s({type:"CHANGE_SOCIAL_PROFILE",payload:{socialMedium:t,value:e}})}),[]),n=(0,o.useCallback)(((e,t)=>{s({type:"CHANGE_OTHERS_SOCIAL_PROFILE",payload:{index:t,value:e}})}),[]),a=(0,o.useCallback)((()=>{s({type:"ADD_OTHERS_SOCIAL_PROFILE",payload:{value:""}})}),[]),i=(0,o.useCallback)((e=>{s({type:"REMOVE_OTHERS_SOCIAL_PROFILE",payload:{index:e}})}),[]);return(0,Zt.jsx)(nl,{socialProfiles:e,onChangeHandler:r,onChangeOthersHandler:n,onAddProfileHandler:a,onRemoveProfileHandler:i,errorFields:t})}function nl({socialProfiles:e,onChangeHandler:t,onChangeOthersHandler:s,onAddProfileHandler:r,onRemoveProfileHandler:n,errorFields:a}){return(0,Zt.jsxs)("div",{id:"social-input-section",children:[(0,Zt.jsx)(sl,{className:"yst-mt-4",label:(0,Vt.__)("Facebook","wordpress-seo"),id:"social-input-facebook-url",value:e.facebookUrl,socialMedium:"facebookUrl",onChange:t,placeholder:(0,Vt.__)("E.g. https://facebook.com/yoast","wordpress-seo"),feedback:{message:[(0,Vt.__)("Could not save this value. Please check the URL.","wordpress-seo")],isVisible:a.includes("facebook_site"),type:"error"}}),(0,Zt.jsx)(sl,{className:"yst-mt-4",label:(0,Vt.__)("X","wordpress-seo"),id:"social-input-twitter-url",value:e.twitterUsername,socialMedium:"twitterUsername",onChange:t,placeholder:(0,Vt.__)("E.g. https://x.com/yoast","wordpress-seo"),feedback:{message:[(0,Vt.__)("Could not save this value. Please check the URL or username.","wordpress-seo")],isVisible:a.includes("twitter_site"),type:"error"}}),(0,Zt.jsx)(Zi,{items:e.otherSocialUrls,onAddProfile:r,onRemoveProfile:n,onChangeProfile:s,errorFields:a,fieldType:sl})]})}el.propTypes={hasError:Kt.PropTypes.bool,hasSuccess:Kt.PropTypes.bool},tl.propTypes={className:Kt.PropTypes.string,id:Kt.PropTypes.string.isRequired,label:Kt.PropTypes.string,description:Kt.PropTypes.node,value:Kt.PropTypes.string,onChange:Kt.PropTypes.func.isRequired,placeholder:Kt.PropTypes.string,feedback:Kt.PropTypes.shape({type:Kt.PropTypes.string,message:Kt.PropTypes.array,isVisible:Kt.PropTypes.bool}),type:Kt.PropTypes.string},sl.propTypes={id:Yt().string.isRequired,onChange:Yt().func.isRequired,socialMedium:Yt().string,isDisabled:Yt().bool},rl.propTypes={socialProfiles:Yt().object.isRequired,dispatch:Yt().func.isRequired,errorFields:Yt().array},nl.propTypes={socialProfiles:Yt().object.isRequired,onChangeHandler:Yt().func.isRequired,onChangeOthersHandler:Yt().func.isRequired,onAddProfileHandler:Yt().func.isRequired,onRemoveProfileHandler:Yt().func.isRequired,errorFields:Yt().array.isRequired};const al=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.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"}))})),ol=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.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"}))})),il=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.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"}))}));var ll=s(8133);function cl({type:e="info",children:t,className:s=""}){let r,n;switch(e){case"info":r=(0,Zt.jsx)(al,{"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,Zt.jsx)(ol,{"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,Zt.jsx)(il,{"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,Zt.jsx)(as,{"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,Zt.jsxs)("div",{className:Ss()("yst-flex yst-p-4 yst-rounded-md",n,s),children:[r,(0,Zt.jsx)("div",{className:"yst-flex-1 yst-ms-3 yst-text-sm",children:t})]})}function dl({id:e,isVisible:t,expandDuration:s=400,type:r="info",children:n,className:a=""}){const[i,l]=(0,o.useState)(t?"yst-opacity-100":"yst-opacity-0"),c=(0,o.useCallback)((()=>{l("yst-opacity-100")}),[]);return(0,Zt.jsx)(ll.Z,{id:e,height:t?"auto":0,easing:"linear",duration:s,onAnimationEnd:c,children:(0,Zt.jsx)(cl,{type:r,className:Ss()("yst-transition-opacity yst-duration-300 yst-mt-4",i,a),children:n})})}function ul({state:e,dispatch:t,setErrorFields:s}){const r=(0,Vt.__)("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=Wt((0,Vt.sprintf)(
// translators: %1$s is replaced by the selected person's username.
(0,Vt.__)("You have selected the user %1$s as the person this site represents.","wordpress-seo"),`<b>${e.personName}</b>`),{b:(0,Zt.jsx)("b",{})}),a=Wt((0,Vt.sprintf)(
// translators: %1$s and %2$s is replaced by a link to the selected person's profile page.
(0,Vt.__)("You can %1$supdate or add social profiles to this user profile%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,Zt.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,Vt.__)("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,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("p",{children:(0,Vt.__)("Fantastic work! Add your organization's social media accounts below. This allows us to fine-tune the metadata for these platforms.","wordpress-seo")}),(0,Zt.jsx)(rl,{socialProfiles:e.socialProfiles,dispatch:t,errorFields:e.errorFields,setErrorFields:s})]}):0===e.personId?(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("p",{children:r}),(0,Zt.jsx)(cl,{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.
       */
(0,Vt.__)("Please select a user in the Site representation step.","wordpress-seo")})]}):(0,Zt.jsx)(o.Fragment,{children:(0,Zt.jsxs)("p",{children:[n," ",e.canEditUser?a:i]})})}cl.propTypes={type:Yt().oneOf(["info","warning","error","success"]),children:Yt().oneOfType([Yt().arrayOf(Yt().node),Yt().node]).isRequired,className:Yt().string},dl.propTypes={id:Yt().string.isRequired,isVisible:Yt().bool.isRequired,type:Yt().oneOf(["info","warning","error","success"]),children:Yt().oneOfType([Yt().arrayOf(Yt().node),Yt().node]).isRequired,expandDuration:Yt().number,className:Yt().string},ul.propTypes={state:Yt().object.isRequired,dispatch:Yt().func.isRequired,setErrorFields:Yt().func.isRequired};const pl={slideDuration:500,fadeDuration:200,delayBeforeOpening:900,delayBeforeFadingIn:1400,delayBeforeClosing:200},ml={fadeDuration:"yst-duration-200",slideDuration:"yst-duration-500",delayBeforeOpening:"yst-delay-[900ms]",delayUntilStepFaded:"yst-delay-200"},hl=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.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"}))})),{slideDuration:fl,delayUntilStepFaded:yl}=ml,gl=`yst-transition-opacity ${fl} yst-absolute yst-inset-0 yst-border-2 yst-flex yst-items-center yst-justify-center yst-rounded-full`;function vl(e){return`${gl} ${e?"yst-opacity-100":`${yl} yst-opacity-0`}`}function bl({isVisible:e=!0}){return(0,Zt.jsx)("span",{className:`yst-bg-white yst-border-primary-500 ${vl(e)}`,children:(0,Zt.jsx)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-primary-500"})})}function xl({isVisible:e=!0}){return(0,Zt.jsx)("span",{className:`yst-bg-primary-500 yst-border-primary-500 ${vl(e)}`,children:(0,Zt.jsx)(hl,{className:"yst-w-5 yst-h-5 yst-text-white","aria-hidden":"true"})})}function wl({isVisible:e=!0}){return(0,Zt.jsx)("span",{className:`yst-bg-white yst-border-slate-300 ${vl(e)}`,children:(0,Zt.jsx)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-transparent"})})}function Sl({activationDelay:e=0,deactivationDelay:t=0,isFinished:s}){const{activeStepIndex:r,stepIndex:n,lastStepIndex:a}=Ll(),i=n===a,l=r===n,[c,d]=(0,o.useState)((()=>!!l&&!i));return(0,o.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,Zt.jsxs)("span",{className:"yst-relative yst-z-10 yst-w-8 yst-h-8 yst-rounded-full",children:[(0,Zt.jsx)(wl,{isVisible:!0}),(0,Zt.jsx)(xl,{isVisible:s}),(0,Zt.jsx)(bl,{isVisible:c&&!i})]})}function _l(e,t,s){return t&&!s?"yst-text-primary-500":e?"yst-text-slate-900":"yst-text-slate-600"}function El({name:e,description:t="",isFinished:s,children:r=null}){const{stepIndex:n,activeStepIndex:a,lastStepIndex:i}=Ll(),l=a===n,c=i===n,[d,u]=(0,o.useState)(_l(s,l,c));return(0,o.useEffect)((()=>{if(l){const e=_l(s,l,c),t=setTimeout((()=>u(e)),pl.delayBeforeOpening);return()=>clearTimeout(t)}const e=_l(s,l,c);u(e)}),[a,s,c,_l]),(0,Zt.jsxs)("div",{className:"yst-relative yst-flex yst-items-center yst-group","aria-current":l?"step":null,children:[(0,Zt.jsx)("span",{className:"yst-flex yst-items-center","aria-hidden":l?"true":null,children:(0,Zt.jsx)(Sl,{activationDelay:pl.delayBeforeOpening,deactivationDelay:0,isFinished:s})}),(0,Zt.jsxs)("span",{className:"yst-ms-4 yst-min-w-0 yst-flex yst-flex-col",children:[(0,Zt.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,Zt.jsx)("span",{className:"yst-text-sm yst-text-slate-600",children:t})]}),r]})}bl.propTypes={isVisible:Yt().bool},xl.propTypes={isVisible:Yt().bool},wl.propTypes={isVisible:Yt().bool},Sl.propTypes={isFinished:Yt().bool.isRequired,activationDelay:Yt().number,deactivationDelay:Yt().number},El.propTypes={name:Yt().string.isRequired,isFinished:Yt().bool.isRequired,description:Yt().string,children:Yt().node};const{slideDuration:jl,delayBeforeOpening:kl,delayBeforeFadingIn:Cl,delayBeforeClosing:Rl}=pl,{fadeDuration:Nl,delayUntilStepFaded:Pl,slideDuration:Ol}=ml,Tl=(0,o.createContext)();function Ll(){const e=(0,o.useContext)(Tl);if(!e)throw new Error("Stepper compound components cannot be rendered outside the Stepper component");return e}function Ml({beforeGo:e=null,children:t=(0,Zt.jsx)(o.Fragment,{children:(0,Vt.__)("Continue","wordpress-seo")}),destination:s=1,...r}){const{stepIndex:n,setActiveStepIndex:a,lastStepIndex:i}=Ll(),c=(0,o.useCallback)((()=>{a("string"==typeof s?"last"===s?i:0:n+s)}),[n,i,a,s]),d=(0,o.useCallback)((async()=>{let t=!0;e&&(t=!1,t=await e()),t&&c()}),[c,e]);return(0,Zt.jsx)(l.Button,{onClick:d,...r,children:t})}function Al({children:e=(0,Zt.jsx)(o.Fragment,{children:(0,Vt.__)("Edit","wordpress-seo")}),...t}){const{stepIndex:s,setActiveStepIndex:r}=Ll(),n=(0,o.useCallback)((()=>{r(s)}),[r,s]);return(0,Zt.jsx)(l.Button,{onClick:n,variant:"secondary",size:"small",...t,children:e})}function Il({children:e}){const{lastStepIndex:t,stepIndex:s,activeStepIndex:r}=Ll();return(0,Zt.jsxs)(o.Fragment,{children:[s!==t&&(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.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,Zt.jsx)("div",{className:Ss()("yst-h-12 yst-transition-transform yst-ease-linear",Pl,Ol,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 Dl({id:e,message:t,className:s=""}){return(0,Zt.jsx)(dl,{id:e,type:"error",isVisible:!!t,className:s,children:(0,Vt.sprintf)(/* translators: %1$s expands to the error message returned by the server */
(0,Vt.__)("An error has occurred: %1$s","wordpress-seo"),t)})}function Fl({children:e}){const{activeStepIndex:t,stepIndex:s}=Ll(),r=t===s,[n,a]=(0,o.useState)(r?"auto":0),[i,l]=(0,o.useState)(!r);return(0,o.useEffect)((()=>{r?(a("auto"),setTimeout((()=>l(!1)),Cl)):(l(!0),a(0))}),[r]),(0,Zt.jsx)(o.Fragment,{children:(0,Zt.jsx)(ll.Z,{id:`content-${s}`,delay:0===n?Rl:kl,height:n,easing:"ease-in-out",duration:jl,children:(0,Zt.jsx)("div",{className:Ss()("yst-transition-opacity yst-relative yst-ms-12 yst-mt-4 yst-pb-1 yst-max-w-xl",Nl,i?"yst-opacity-0 yst-pointer-events-none":"yst-opacity-100"),children:e})})})}function zl({children:e,setActiveStepIndex:t,activeStepIndex:s,isStepperFinished:r=!1}){return(0,Zt.jsx)("ol",{children:e.map(((n,a)=>(0,Zt.jsx)("li",{className:(a===e.length-1?"":"yst-pb-8")+" yst-mb-0 yst-relative yst-max-w-none",children:(0,Zt.jsx)(Tl.Provider,{value:{stepIndex:a,activeStepIndex:s,setActiveStepIndex:t,lastStepIndex:e.length-1,isStepperFinished:r},children:n})},`${n.props.name}-${a}`)))})}Ml.propTypes={beforeGo:Yt().func,children:Yt().node,destination:Yt().oneOfType([Yt().number,Yt().oneOf(["first","last"])])},Al.propTypes={children:Yt().node},Il.propTypes={children:Yt().node.isRequired},Dl.propTypes={id:Yt().string.isRequired,message:Yt().string.isRequired,className:Yt().string},Fl.propTypes={children:Yt().node.isRequired},zl.propTypes={setActiveStepIndex:Yt().func.isRequired,activeStepIndex:Yt().number.isRequired,isStepperFinished:Yt().bool,children:Yt().node.isRequired},Il.Content=Fl,Il.Error=Dl,Il.Header=El,Il.GoButton=Ml,Il.EditButton=Al;const Ul={optimizeSeoData:"optimizeSeoData",siteRepresentation:"siteRepresentation",socialProfiles:"socialProfiles",personalPreferences:"personalPreferences"},Bl={[Ul.optimizeSeoData]:"data optimization",[Ul.siteRepresentation]:"site representation",[Ul.socialProfiles]:"social profiles",[Ul.personalPreferences]:"personal preferences"};function ql({stepId:e,additionalClasses:t="",beforeGo:s=null,children:r=null,...n}){return(0,Zt.jsx)(Il.GoButton,{id:`button-${e}-continue`,variant:"primary",className:t,destination:1,beforeGo:s,"data-hiive-event-name":`clicked_continue | ${Bl[e]}`,...n,children:r})}function $l({stepId:e,additionalClasses:t="",isVisible:s=!0,beforeGo:r=null,children:n=null,...a}){const o=`yst-transition-opacity ${ml.slideDuration} yst-ease-out ${s?"yst-opacity-100":`${ml.delayBeforeOpening} yst-opacity-0 yst-pointer-events-none yst-hidden`}`;return(0,Zt.jsx)(Il.GoButton,{id:`button-${e}-edit`,variant:"secondary",size:"small",className:Ss()(o,t),destination:0,beforeGo:r,"data-hiive-event-name":`clicked_edit | ${Bl[e]}`,...a,children:n})}function Hl({stepId:e,additionalClasses:t="",beforeGo:s=null,children:r=null,...n}){return(0,Zt.jsx)(Il.GoButton,{id:`button-${e}-back`,variant:"secondary",className:t,destination:-1,beforeGo:s,"data-hiive-event-name":`clicked_go_back | ${Bl[e]}`,...n,children:r})}function Vl({stepId:e,beforeContinue:t=null,continueLabel:s=(0,Vt.__)("Continue","wordpress-seo"),beforeBack:r=null,backLabel:n=(0,Vt.__)("Go back","wordpress-seo")}){return(0,Zt.jsxs)("div",{className:"yst-mt-12",children:[(0,Zt.jsx)(ql,{stepId:e,beforeGo:t,children:s}),(0,Zt.jsx)(Hl,{stepId:e,additionalClasses:"yst-ms-3",beforeGo:r,children:n})]})}function Wl({stepId:e,stepperFinishedOnce:t,saveFunction:s,setEditState:r}){const n=(0,o.useCallback)((async()=>{const e=await s();return r(!e),e}),[s]);return t?(0,Zt.jsx)(Il.GoButton,{id:`button-${e}-go`,variant:"primary",className:"yst-mt-12",destination:"last",beforeGo:n,"data-hiive-event-name":`clicked_save_changes | ${Bl[e]}`,children:(0,Vt.__)("Save changes","wordpress-seo")}):(0,Zt.jsx)(Vl,{stepId:e,beforeContinue:s,continueLabel:(0,Vt.__)("Save and continue","wordpress-seo")})}ql.propTypes={stepId:Yt().string.isRequired,additionalClasses:Yt().string,beforeGo:Yt().func,children:Yt().node},$l.propTypes={stepId:Yt().string.isRequired,additionalClasses:Yt().string,isVisible:Yt().bool,beforeGo:Yt().func,children:Yt().node},Hl.propTypes={stepId:Yt().string.isRequired,additionalClasses:Yt().string,beforeGo:Yt().func,children:Yt().node},Vl.propTypes={stepId:Yt().string.isRequired,beforeContinue:Yt().func,continueLabel:Yt().string,beforeBack:Yt().func,backLabel:Yt().string},Wl.propTypes={stepId:Yt().string.isRequired,stepperFinishedOnce:Yt().bool.isRequired,saveFunction:Yt().func.isRequired,setEditState:Yt().func.isRequired};const Gl=window.yoast.helpers;class Kl 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:Yl}=Gl.strings,Zl=["a","p"];function Jl({title:e,value:t=""}){return t?(0,Zt.jsxs)("p",{children:[(0,Zt.jsx)("strong",{children:e}),(0,Zt.jsx)("br",{}),t]}):null}function Ql({title:e,value:t=""}){return t?(0,Zt.jsxs)("details",{children:[(0,Zt.jsx)("summary",{children:e}),(0,Zt.jsx)("pre",{className:"yst-overflow-x-scroll yst-max-w-[500px] yst-border-px yst-p-4",children:t})]}):null}function Xl({message:e,error:t,className:s=""}){return(0,Zt.jsxs)(cl,{type:"error",className:s,children:[(0,Zt.jsx)("div",{dangerouslySetInnerHTML:{__html:Yl(e,Zl)}}),(0,Zt.jsxs)("details",{children:[(0,Zt.jsx)("summary",{children:(0,Vt.__)("Error details","wordpress-seo")}),(0,Zt.jsxs)("div",{className:"yst-mt-2",children:[(0,Zt.jsx)(Jl,{title:(0,Vt.__)("Request URL","wordpress-seo"),value:t.url}),(0,Zt.jsx)(Jl,{title:(0,Vt.__)("Request method","wordpress-seo"),value:t.method}),(0,Zt.jsx)(Jl,{title:(0,Vt.__)("Status code","wordpress-seo"),value:t.statusCode}),(0,Zt.jsx)(Jl,{title:(0,Vt.__)("Error message","wordpress-seo"),value:t.message}),(0,Zt.jsx)(Ql,{title:(0,Vt.__)("Response","wordpress-seo"),value:t.parseString}),(0,Zt.jsx)(Ql,{title:(0,Vt.__)("Error stack trace","wordpress-seo"),value:t.stackTrace})]})]})]})}Jl.propTypes={title:Yt().string.isRequired,value:Yt().any},Ql.propTypes={title:Yt().string.isRequired,value:Yt().string},Xl.propTypes={message:Yt().string.isRequired,error:Yt().oneOfType([Yt().instanceOf(Error),Yt().instanceOf(Kl)]).isRequired,className:Yt().string};class ec extends Error{constructor(e,t){super(e),this.name="ParseError",this.parseString=t}}const tc="idle",sc="in_progress",rc="errored",nc="completed";class ac extends o.Component{constructor(e){super(e),this.settings=yoastIndexingData,this.state={state:tc,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 ec("Error parsing the response to JSON.",r)}if(!s.ok){const t=n.data?n.data.stackTrace:"";throw new Kl(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(sc)&&!1!==t;)try{await this.doPreIndexingAction(e);const s=await this.doIndexingRequest(t,this.settings.restApi.nonce);await this.doPostIndexingAction(e,s),(0,o.flushSync)((()=>{this.setState((e=>({processed:e.processed+s.objects.length,firstTime:!1})))})),t=s.next_url}catch(e){(0,o.flushSync)((()=>{this.setState({state:rc,error:e,firstTime:!1})}))}}async index(){for(const e of Object.keys(this.settings.restApi.indexing_endpoints))await this.doIndexing(e);this.isState(rc)||this.isState(tc)||this.completeIndexing()}async startIndexing(){this.setState({processed:0,state:sc},this.index)}completeIndexing(){this.setState({state:nc})}stopIndexing(){this.setState((e=>({state:tc,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,t){const s=new URL(e);return s.searchParams.delete("start-indexation"),s.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,Zt.jsx)(cl,{type:"info",className:"yst-mt-6",children:(0,Vt.__)("This feature includes and replaces the Text Link Counter and Internal Linking Analysis","wordpress-seo")})}renderStartButton(){return(0,Zt.jsx)(l.Button,{variant:"secondary",onClick:this.startIndexing,id:"indexation-data-optimization","data-hiive-event-name":"clicked_start_data_optimization",children:(0,Vt.__)("Start SEO data optimization","wordpress-seo")})}renderStopButton(){return(0,Zt.jsx)(l.Button,{variant:"secondary",onClick:this.stopIndexing,children:(0,Vt.__)("Stop SEO data optimization","wordpress-seo")})}renderDisabledTool(){return(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("p",{children:(0,Zt.jsx)(l.Button,{variant:"secondary",disabled:!0,id:"indexation-data-optimization",children:(0,Vt.__)("Start SEO data optimization","wordpress-seo")})}),(0,Zt.jsx)(cl,{type:"info",className:"yst-mt-6",children:(0,Vt.__)("SEO data optimization is disabled for non-production environments.","wordpress-seo")})]})}renderProgressBar(){let e=0;return this.isState(nc)&&(e=100),this.isState(sc)&&(e=this.state.processed/parseInt(this.state.amount,10)*100),(0,Zt.jsx)("div",{className:"yst-w-full yst-bg-slate-200 yst-rounded-full yst-h-2.5 yst-mb-4",children:(0,Zt.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,Zt.jsx)(ll.Z,{id:"optimization-in-progress-text",height:this.isState(sc)?"auto":0,easing:"linear",duration:300,children:(0,Zt.jsx)("p",{className:"yst-text-sm yst-italic yst-mb-4 yst-mt-4",children:(0,Vt.__)("SEO data optimization is running… You can safely move on to the next steps of this configuration.","wordpress-seo")})})}renderErrorAlert(){return(0,Zt.jsx)(Xl,{message:yoastIndexingData.errorMessage,error:this.state.error,className:"yst-mb-4"})}render(){return this.settings.disabled?this.renderDisabledTool():(0,Zt.jsxs)("div",{className:"yst-relative",children:[this.props.children,(0,Zt.jsxs)(jo,{unmount:!1,show:this.isState(rc)||this.isState(sc)||this.isState(tc)&&this.state.amount>0,leave:"yst-transition-opacity yst-duration-1000",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",children:[this.renderProgressBar(),this.isState(rc)&&this.renderErrorAlert(),this.isState(sc)?this.renderStopButton():this.renderStartButton(),this.renderCaption(),this.isState(tc)&&this.state.firstTime&&this.renderFirstIndexationNotice()]})]})}}ac.propTypes={indexingActions:Yt().object,preIndexingActions:Yt().object,indexingStateCallback:Yt().func,children:Yt().node},ac.defaultProps={indexingActions:{},preIndexingActions:{},indexingStateCallback:()=>{},children:null};const oc=ac;function ic({indexingStateCallback:e,indexingState:t,isStepperFinished:s=!1}){return(0,Zt.jsx)(oc,{preIndexingActions:window.yoast.indexing.preIndexingActions,indexingActions:window.yoast.indexing.indexingActions,indexingStateCallback:e,children:(0,Zt.jsx)(jo,{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,Zt.jsx)(cl,{type:"success",children:"already_done"!==t||s?(0,Vt.__)("We've successfully analyzed your site & optimized your SEO data!","wordpress-seo"):(0,Vt.__)("We've already successfully analyzed your site. You can move on to the next step.","wordpress-seo")})})})}function lc({children:e,className:t=""}){return(0,Zt.jsx)(l.Paper,{className:Ss()("yst-flex yst-px-4 yst-py-4 yst-rounded-md yst-max-w-xl yst-border yst-border-primary-200",t),children:(0,Zt.jsx)("div",{className:"yst-flex-1 yst-text-sm yst-font-normal",children:e})})}ic.propTypes={indexingStateCallback:Yt().func.isRequired,indexingState:Yt().string.isRequired,isStepperFinished:Yt().bool},lc.propTypes={children:Yt().oneOfType([Yt().arrayOf(Yt().node),Yt().node]).isRequired,className:Yt().string};const cc=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))})),dc=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.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"}),d.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"}))}));function uc({state:e,indexingState:t,setIndexingState:s,showRunIndexationAlert:r=!1,isStepperFinished:n=!1}){return(0,Zt.jsxs)("div",{className:"yst-@container",children:[(0,Zt.jsxs)("div",{className:"yst-mb-4",children:[(0,Zt.jsx)("p",{className:"yst-text-sm yst-whitespace-pre-line",children:(0,Vt.__)("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,Zt.jsx)("p",{className:"yst-text-sm yst-whitespace-pre-line yst-mt-4",children:Wt((0,Vt.sprintf)(/* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to closing 'span' HTML tag. */
(0,Vt.__)("%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,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"})})})]}),(0,Zt.jsx)("div",{id:"yoast-configuration-indexing-container",className:"indexation-container",children:(0,Zt.jsx)(ic,{indexingStateCallback:s,indexingState:t,isStepperFinished:n})}),(0,Zt.jsx)(dl,{id:"indexation-alert",isVisible:"idle"===t&&r,expandDuration:400,type:"info",children:(0,Vt.__)("Be aware that you should run the SEO data optimization for this configuration to take maximum effect.","wordpress-seo")}),!e.isPremium&&(0,Zt.jsxs)(lc,{className:"yst-mt-6 yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(cc,{className:"yst-text-primary-300 yst-w-4 yst-h-4 yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-font-medium yst-text-slate-800",children:(0,Vt.__)("Want deeper insights?","wordpress-seo")})]}),(0,Zt.jsx)("p",{children:(0,Vt.sprintf)(/* translators: %s expands to Yoast SEO Premium. */
(0,Vt.__)("%s gives you in-depth analysis and guidance for every post, helping you write content that ranks even better.","wordpress-seo"),"Yoast SEO Premium")})]}),(0,Zt.jsx)("p",{className:"yst-mt-4",children:(0,Zt.jsxs)(l.Button,{id:"ftc-indexing-learn-more",as:"a",href:window.wpseoFirstTimeConfigurationData.shortlinks.indexationLearnMore,variant:"tertiary",target:"_blank",className:"yst-p-0",children:[(0,Vt.__)("Learn more about Premium","wordpress-seo"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(dc,{className:"yst-ms-1 yst-w-4 yst-h-4 yst-icon-rtl"})]})})]})]})}function pc(e,t){let[s,r]=(0,d.useState)(e),n=eo(e);return Qa((()=>r(n.current)),[n,r,...t]),s}uc.propTypes={indexingState:Yt().string.isRequired,setIndexingState:Yt().func.isRequired,showRunIndexationAlert:Yt().bool,isStepperFinished:Yt().bool};var mc=(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))(mc||{});function hc(e,t){let s=t.resolveItems();if(s.length<=0)return null;let r=t.resolveActiveIndex(),n=null!=r?r:-1,a=(()=>{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===a?r:a}let fc=["[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 yc,gc=(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))(gc||{}),vc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(vc||{}),bc=((yc=bc||{})[yc.Previous=-1]="Previous",yc[yc.Next=1]="Next",yc),xc=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(xc||{});function wc(e,t=0){var s;return e!==(null==(s=Zo(e))?void 0:s.body)&&Ma(t,{0:()=>e.matches(fc),1(){let t=e;for(;null!==t;){if(t.matches(fc))return!0;t=t.parentElement}return!1}})}function Sc(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 a=r.compareDocumentPosition(n);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function _c(e,t,s){let r=eo(t);(0,d.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,s),()=>document.removeEventListener(e,t,s)}),[e,s])}function Ec(e,t,s=!0){let r=(0,d.useRef)(!1);function n(s,n){if(!r.current||s.defaultPrevented)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),o=n(s);if(null!==o&&o.getRootNode().contains(o)){for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(o)||s.composed&&s.composedPath().includes(t))return}return!wc(o,xc.Loose)&&-1!==o.tabIndex&&s.preventDefault(),t(s,o)}}(0,d.useEffect)((()=>{requestAnimationFrame((()=>{r.current=s}))}),[s]);let a=(0,d.useRef)(null);_c("mousedown",(e=>{var t,s;r.current&&(a.current=(null==(s=null==(t=e.composedPath)?void 0:t.call(e))?void 0:s[0])||e.target)}),!0),_c("click",(e=>{!a.current||(n(e,(()=>a.current)),a.current=null)}),!0),_c("blur",(e=>n(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}["textarea","input"].join(",");var jc=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(jc||{});let kc=qa((function(e,t){let{features:s=1,...r}=e;return za({ourProps:{ref:t,"aria-hidden":2==(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==(4&s)&&2!=(2&s)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}));function Cc(e={},t=null,s=[]){for(let[r,n]of Object.entries(e))Nc(s,Rc(t,r),n);return s}function Rc(e,t){return e?e+"["+t+"]":t}function Nc(e,t,s){if(Array.isArray(s))for(let[r,n]of s.entries())Nc(e,Rc(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,""]):Cc(s,t,e)}function Pc(e,t,s){let[r,n]=(0,d.useState)(s),a=void 0!==e,o=(0,d.useRef)(a),i=(0,d.useRef)(!1),l=(0,d.useRef)(!1);return!a||o.current||i.current?!a&&o.current&&!l.current&&(l.current=!0,o.current=a,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,o.current=a,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.")),[a?e:r,so((e=>(a||n(e),null==t?void 0:t(e))))]}function Oc(e){return[e.screenX,e.screenY]}function Tc(){let e=(0,d.useRef)([-1,-1]);return{wasMoved(t){let s=Oc(t);return(e.current[0]!==s[0]||e.current[1]!==s[1])&&(e.current=s,!0)},update(t){e.current=Oc(t)}}}var Lc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Lc||{}),Mc=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Mc||{}),Ac=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ac||{}),Ic=(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))(Ic||{});function Dc(e,t=(e=>e)){let s=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=Sc(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 Fc={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=Dc(e),n=hc(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))})),a=n?e.options.indexOf(n):-1;return-1===a||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,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=Dc(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=Dc(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})},zc=(0,d.createContext)(null);function Uc(e){let t=(0,d.useContext)(zc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Uc),t}return t}zc.displayName="ListboxActionsContext";let Bc=(0,d.createContext)(null);function qc(e){let t=(0,d.useContext)(Bc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,qc),t}return t}function $c(e,t){return Ma(t.type,Fc,e,t)}Bc.displayName="ListboxDataContext";let Hc=d.Fragment,Vc=qa((function(e,t){let{value:s,defaultValue:r,name:n,onChange:a,by:o=((e,t)=>e===t),disabled:i=!1,horizontal:l=!1,multiple:c=!1,...u}=e;const p=l?"horizontal":"vertical";let m=ao(t),[h=(c?[]:void 0),f]=Pc(s,a,r),[y,g]=(0,d.useReducer)($c,{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=so("string"==typeof o?(e,t)=>{let s=o;return(null==e?void 0:e[s])===(null==t?void 0:t[s])}:o),_=(0,d.useCallback)((e=>Ma(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]);Qa((()=>{y.dataRef.current=E}),[E]),Ec([E.buttonRef,E.optionsRef],((e,t)=>{var s;g({type:1}),wc(t,xc.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=so((e=>{let t=E.options.find((t=>t.id===e));!t||L(t.dataRef.current.value)})),C=so((()=>{if(null!==E.activeOptionIndex){let{dataRef:e,id:t}=E.options[E.activeOptionIndex];L(e.current.value),g({type:2,focus:mc.Specific,id:t})}})),R=so((()=>g({type:0}))),N=so((()=>g({type:1}))),P=so(((e,t,s)=>e===mc.Specific?g({type:2,focus:mc.Specific,id:t,trigger:s}):g({type:2,focus:e,trigger:s}))),O=so(((e,t)=>(g({type:5,id:e,dataRef:t}),()=>g({type:6,id:e})))),T=so((e=>(g({type:7,id:e}),()=>g({type:7,id:null})))),L=so((e=>Ma(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)}}))),M=so((e=>g({type:3,value:e}))),A=so((()=>g({type:4}))),I=(0,d.useMemo)((()=>({onChange:L,registerOption:O,registerLabel:T,goToOption:P,closeListbox:N,openListbox:R,selectActiveOption:C,selectOption:k,search:M,clearSearch:A})),[]),D={ref:m},F=(0,d.useRef)(null),z=co();return(0,d.useEffect)((()=>{!F.current||void 0!==r&&z.addEventListener(F.current,"reset",(()=>{L(r)}))}),[F,L]),d.createElement(zc.Provider,{value:I},d.createElement(Bc.Provider,{value:E},d.createElement(Ka,{value:Ma(E.listboxState,{0:Wa.Open,1:Wa.Closed})},null!=n&&null!=h&&Cc({[n]:h}).map((([e,t],s)=>d.createElement(kc,{features:jc.Hidden,ref:0===s?e=>{var t;F.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...$a({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),za({ourProps:D,theirProps:u,slot:j,defaultTag:Hc,name:"Listbox"}))))})),Wc=qa((function(e,t){var s;let r=Vo(),{id:n=`headlessui-listbox-button-${r}`,...a}=e,o=qc("Listbox.Button"),i=Uc("Listbox.Button"),l=ao(o.buttonRef,t),c=co(),u=so((e=>{switch(e.key){case Wo.Space:case Wo.Enter:case Wo.ArrowDown:e.preventDefault(),i.openListbox(),c.nextFrame((()=>{o.value||i.goToOption(mc.First)}));break;case Wo.ArrowUp:e.preventDefault(),i.openListbox(),c.nextFrame((()=>{o.value||i.goToOption(mc.Last)}))}})),p=so((e=>{e.key===Wo.Space&&e.preventDefault()})),m=so((e=>{if(Go(e.currentTarget))return e.preventDefault();0===o.listboxState?(i.closeListbox(),c.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),i.openListbox())})),h=pc((()=>{if(o.labelId)return[o.labelId,n].join(" ")}),[o.labelId,n]),f=(0,d.useMemo)((()=>({open:0===o.listboxState,disabled:o.disabled,value:o.value})),[o]);return za({ourProps:{ref:l,id:n,type:Yo(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(s=o.optionsRef.current)?void 0:s.id,"aria-expanded":o.disabled?void 0:0===o.listboxState,"aria-labelledby":h,disabled:o.disabled,onKeyDown:u,onKeyUp:p,onClick:m},theirProps:a,slot:f,defaultTag:"button",name:"Listbox.Button"})})),Gc=qa((function(e,t){let s=Vo(),{id:r=`headlessui-listbox-label-${s}`,...n}=e,a=qc("Listbox.Label"),o=Uc("Listbox.Label"),i=ao(a.labelRef,t);Qa((()=>o.registerLabel(r)),[r]);let l=so((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),c=(0,d.useMemo)((()=>({open:0===a.listboxState,disabled:a.disabled})),[a]);return za({ourProps:{ref:i,id:r,onClick:l},theirProps:n,slot:c,defaultTag:"label",name:"Listbox.Label"})})),Kc=Da.RenderStrategy|Da.Static,Yc=qa((function(e,t){var s;let r=Vo(),{id:n=`headlessui-listbox-options-${r}`,...a}=e,o=qc("Listbox.Options"),i=Uc("Listbox.Options"),l=ao(o.optionsRef,t),c=co(),u=co(),p=Ga(),m=null!==p?p===Wa.Open:0===o.listboxState;(0,d.useEffect)((()=>{var e;let t=o.optionsRef.current;!t||0===o.listboxState&&t!==(null==(e=Zo(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[o.listboxState,o.optionsRef]);let h=so((e=>{switch(u.dispose(),e.key){case Wo.Space:if(""!==o.searchQuery)return e.preventDefault(),e.stopPropagation(),i.search(e.key);case Wo.Enter:if(e.preventDefault(),e.stopPropagation(),null!==o.activeOptionIndex){let{dataRef:e}=o.options[o.activeOptionIndex];i.onChange(e.current.value)}0===o.mode&&(i.closeListbox(),oo().nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case Ma(o.orientation,{vertical:Wo.ArrowDown,horizontal:Wo.ArrowRight}):return e.preventDefault(),e.stopPropagation(),i.goToOption(mc.Next);case Ma(o.orientation,{vertical:Wo.ArrowUp,horizontal:Wo.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),i.goToOption(mc.Previous);case Wo.Home:case Wo.PageUp:return e.preventDefault(),e.stopPropagation(),i.goToOption(mc.First);case Wo.End:case Wo.PageDown:return e.preventDefault(),e.stopPropagation(),i.goToOption(mc.Last);case Wo.Escape:return e.preventDefault(),e.stopPropagation(),i.closeListbox(),c.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case Wo.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(i.search(e.key),u.setTimeout((()=>i.clearSearch()),350))}})),f=pc((()=>{var e,t,s;return null!=(s=null==(e=o.labelRef.current)?void 0:e.id)?s:null==(t=o.buttonRef.current)?void 0:t.id}),[o.labelRef.current,o.buttonRef.current]),y=(0,d.useMemo)((()=>({open:0===o.listboxState})),[o]);return za({ourProps:{"aria-activedescendant":null===o.activeOptionIndex||null==(s=o.options[o.activeOptionIndex])?void 0:s.id,"aria-multiselectable":1===o.mode||void 0,"aria-labelledby":f,"aria-orientation":o.orientation,id:n,onKeyDown:h,role:"listbox",tabIndex:0,ref:l},theirProps:a,slot:y,defaultTag:"ul",features:Kc,visible:m,name:"Listbox.Options"})})),Zc=qa((function(e,t){let s=Vo(),{id:r=`headlessui-listbox-option-${s}`,disabled:n=!1,value:a,...o}=e,i=qc("Listbox.Option"),l=Uc("Listbox.Option"),c=null!==i.activeOptionIndex&&i.options[i.activeOptionIndex].id===r,u=i.isSelected(a),p=(0,d.useRef)(null),m=eo({disabled:n,value:a,domRef:p,get textValue(){var e,t;return null==(t=null==(e=p.current)?void 0:e.textContent)?void 0:t.toLowerCase()}}),h=ao(t,p);Qa((()=>{if(0!==i.listboxState||!c||0===i.activationTrigger)return;let e=oo();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]),Qa((()=>l.registerOption(r,m)),[m,r]);let f=so((e=>{if(n)return e.preventDefault();l.onChange(a),0===i.mode&&(l.closeListbox(),oo().nextFrame((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),y=so((()=>{if(n)return l.goToOption(mc.Nothing);l.goToOption(mc.Specific,r)})),g=Tc(),v=so((e=>g.update(e))),b=so((e=>{!g.wasMoved(e)||n||c||l.goToOption(mc.Specific,r,0)})),x=so((e=>{!g.wasMoved(e)||n||!c||l.goToOption(mc.Nothing)})),w=(0,d.useMemo)((()=>({active:c,selected:u,disabled:n})),[c,u,n]);return za({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:o,slot:w,defaultTag:"li",name:"Listbox.Option"})})),Jc=Object.assign(Vc,{Button:Wc,Label:Gc,Options:Yc,Option:Zc});const Qc=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.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"}))}));function Xc({id:e,value:t,choices:s,label:r="",onChange:n,error:a={message:"",isVisible:!1},disabled:i=!1}){const l=(0,o.useMemo)((()=>{const e=s.find((e=>t===e.value));return e?e.label:(0,Vt.__)("Select an option","wordpress-seo")}),[s,t]);return(0,Zt.jsx)(Jc,{id:e,as:"div",value:t,onChange:n,disabled:i,children:({open:n})=>(0,Zt.jsxs)(Zt.Fragment,{children:[r&&(0,Zt.jsx)(Jc.Label,{className:"yst-block yst-max-w-sm yst-mb-2 yst-text-sm yst-font-medium yst-text-slate-800",children:r}),(0,Zt.jsxs)("div",{className:"yst-max-w-sm",children:[(0,Zt.jsxs)("div",{className:"yst-relative",children:[(0,Zt.jsxs)(Jc.Button,{"data-id":`button-${e} `,className:Ss()("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":a.isVisible,"yst-opacity-50":i},"emptyChoice"===t?"yst-text-slate-400":"yst-text-slate-700"),...Hi(e,a),children:[(0,Zt.jsx)("span",{className:"yst-block yst-truncate",children:l}),(0,Zt.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,Zt.jsx)(Qc,{className:"yst-w-5 yst-h-5 yst-text-slate-400","aria-hidden":"true"})}),a.isVisible&&(0,Zt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-8",children:(0,Zt.jsx)(Ji,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"})})]}),(0,Zt.jsx)(jo,{show:n,as:o.Fragment,leave:"yst-transition yst-ease-in yst-duration-100",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",children:(0,Zt.jsx)(Jc.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,Zt.jsx)(Jc.Option,{as:o.Fragment,value:e.value,children:({selected:t,active:s})=>(0,Zt.jsxs)("li",{className:Vi({selected:t,active:s}),children:[(0,Zt.jsx)("span",{className:Ss()(t?"yst-font-semibold":"yst-font-normal","yst-block yst-truncate"),children:e.label}),t?(0,Zt.jsx)("span",{className:Ss()("yst-text-white yst-absolute yst-inset-y-0 yst-end-0 yst-flex yst-items-center yst-pe-4"),children:(0,Zt.jsx)(hl,{className:"yst-w-5 yst-h-5","aria-hidden":"true"})}):null]})},e.id)))})})]}),a.isVisible&&(0,Zt.jsx)(Xi,{id:$i(e),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:a.message})]})]})})}Xc.propTypes={value:Kt.PropTypes.oneOfType([Kt.PropTypes.string,Kt.PropTypes.number]).isRequired,choices:Kt.PropTypes.arrayOf(Kt.PropTypes.shape({id:Kt.PropTypes.oneOfType([Kt.PropTypes.number,Kt.PropTypes.string]).isRequired,value:Kt.PropTypes.string.isRequired,label:Kt.PropTypes.string.isRequired})).isRequired,label:Kt.PropTypes.string,onChange:Kt.PropTypes.func.isRequired,id:Kt.PropTypes.string.isRequired,error:Kt.PropTypes.shape({message:Kt.PropTypes.string,isVisible:Kt.PropTypes.bool}),disabled:Kt.PropTypes.bool},window.yoast.socialMetadataForms;const ed=e=>({type:e.subtype,width:e.width,height:e.height,url:e.url,id:e.id,sizes:e.sizes,alt:e.alt||e.title||e.name});function td(e){(function(e){const t=window.wp.media();return t.on("select",(()=>{const s=t.state().get("selection").first();e(ed(s.attributes))})),t})(e).open()}const sd=d.forwardRef((function(e,t){return d.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),d.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"}))})),rd=({className:e=""})=>(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:Ss()("yst-animate-spin",e),children:[(0,Zt.jsx)("circle",{className:"yst-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Zt.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"})]});rd.propTypes={className:Yt().string};const nd=rd;function ad({id:e,imageAltText:t="",url:s="",fallbackUrl:r="",label:n="",onSelectImageClick:a=c.noop,onRemoveImageClick:i=c.noop,className:d="",error:u={message:"",isVisible:!1},status:p="idle"}){const m=Ss()("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,o.useCallback)((()=>"loading"===p?(0,Zt.jsxs)("div",{className:"yst-text-center",children:[(0,Zt.jsx)(nd,{size:"10",color:"gray-400",className:"yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-mt-3",children:(0,Vt.__)("Uploading image…","wordpress-seo")})]}):s?(0,Zt.jsx)("img",{src:s,alt:t,className:"yst-w-full yst-h-full yst-object-contain"}):r?(0,Zt.jsx)("img",{src:r,alt:t,className:"yst-w-full yst-h-full yst-object-contain"}):(0,Zt.jsx)(sd,{id:`${e}-no-image-svg`,className:"yst-w-14 yst-h-14 yst-text-slate-500"})),[p,e,s,t]);return(0,Zt.jsxs)("div",{className:Ss()("yst-max-w-sm",d),...Hi(e,u),children:[(0,Zt.jsx)("label",{htmlFor:e,className:"yst-block yst-mb-2 yst-font-medium yst-text-slate-800",children:n}),(0,Zt.jsx)("button",{id:e,className:m,onClick:a,type:"button","data-hiive-event-name":"clicked_select_image",children:h()}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)(l.Button,{id:s?e+"__replace-image":e+"__select-image",variant:"secondary",className:"yst-me-2",onClick:a,"data-hiive-event-name":s?"clicked_replace_image":"clicked_select_image",children:s?(0,Vt.__)("Replace image","wordpress-seo"):(0,Vt.__)("Select image","wordpress-seo")}),s&&(0,Zt.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,Vt.__)("Remove image","wordpress-seo")})]}),"error"===p&&(0,Zt.jsx)("p",{className:"yst-mt-2 yst-text-sm yst-text-red-600",children:u}),u.isVisible&&(0,Zt.jsx)(Xi,{id:$i(e),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:u.message})]})}function od({dispatch:e,imageUrl:t="",fallbackImageUrl:s="",organizationName:r="",fallbackOrganizationName:n="",errorFields:a=[]}){const i=(0,o.useCallback)((()=>{td((t=>{e({type:"SET_COMPANY_LOGO",payload:{...t}})}))}),[td]),l=(0,o.useCallback)((()=>{e({type:"REMOVE_COMPANY_LOGO"})}),[e]),c=(0,o.useCallback)((t=>{e({type:"CHANGE_COMPANY_NAME",payload:t.target.value})}),[e]);return(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)(tl,{className:"yst-mt-6",id:"organization-name-input",name:"organization-name",label:(0,Vt.__)("Organization name","wordpress-seo"),value:""===r?n:r,onChange:c,feedback:{isVisible:a.includes("company_name"),message:[(0,Vt.__)("We could not save the organization name. Please check the value.","wordpress-seo")],type:"error"}}),(0,Zt.jsx)(ad,{className:"yst-mt-6",id:"organization-logo-input",url:t,fallbackUrl:s,onSelectImageClick:i,onRemoveImageClick:l,imageAltText:"",hasPreview:!0,label:(0,Vt.__)("Organization logo","wordpress-seo")})]})}function id(e,t){let s=(0,d.useRef)([]),r=so(e);(0,d.useEffect)((()=>{let e=[...s.current];for(let[n,a]of t.entries())if(s.current[n]!==a){let n=r(t,e);return s.current=t,n}}),[r,...t])}ad.propTypes={label:Yt().string,id:Yt().string.isRequired,url:Yt().string,fallbackUrl:Yt().string,imageAltText:Yt().string,onRemoveImageClick:Yt().func,onSelectImageClick:Yt().func,className:Yt().string,error:Yt().shape({message:Yt().string,isVisible:Yt().bool}),status:Yt().string},od.propTypes={dispatch:Yt().func.isRequired,imageUrl:Yt().string,fallbackImageUrl:Yt().string,organizationName:Yt().string,fallbackOrganizationName:Yt().string,errorFields:Yt().array};var ld=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ld||{}),cd=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(cd||{}),dd=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(dd||{}),ud=(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))(ud||{});function pd(e,t=(e=>e)){let s=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=Sc(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 md={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=pd(e);if(null===r.activeOptionIndex){let e=r.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(r.activeOptionIndex=e)}let n=hc(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=pd(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=pd(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})},hd=(0,d.createContext)(null);function fd(e){let t=(0,d.useContext)(hd);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,fd),t}return t}hd.displayName="ComboboxActionsContext";let yd=(0,d.createContext)(null);function gd(e){let t=(0,d.useContext)(yd);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,gd),t}return t}function vd(e,t){return Ma(t.type,md,e,t)}yd.displayName="ComboboxDataContext";let bd=d.Fragment,xd=qa((function(e,t){let{value:s,defaultValue:r,onChange:n,name:a,by:o=((e,t)=>e===t),disabled:i=!1,__demoMode:l=!1,nullable:c=!1,multiple:u=!1,...p}=e,[m=(u?[]:void 0),h]=Pc(s,n,r),[f,y]=(0,d.useReducer)(vd,{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),_=so("string"==typeof o?(e,t)=>{let s=o;return(null==e?void 0:e[s])===(null==t?void 0:t[s])}:o),E=(0,d.useCallback)((e=>Ma(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]);Qa((()=>{f.dataRef.current=j}),[j]),Ec([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=so((e=>{let t=j.options.find((t=>t.id===e));!t||M(t.dataRef.current.value)})),R=so((()=>{if(null!==j.activeOptionIndex){let{dataRef:e,id:t}=j.options[j.activeOptionIndex];M(e.current.value),A.goToOption(mc.Specific,t)}})),N=so((()=>{y({type:0}),g.current=!0})),P=so((()=>{y({type:1}),g.current=!1})),O=so(((e,t,s)=>(g.current=!1,e===mc.Specific?y({type:2,focus:mc.Specific,id:t,trigger:s}):y({type:2,focus:e,trigger:s})))),T=so(((e,t)=>(y({type:3,id:e,dataRef:t}),()=>y({type:4,id:e})))),L=so((e=>(y({type:5,id:e}),()=>y({type:5,id:null})))),M=so((e=>Ma(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:M,registerOption:T,registerLabel:L,goToOption:O,closeCombobox:P,openCombobox:N,selectActiveOption:R,selectOption:C})),[]),I=null===t?{}:{ref:t},D=(0,d.useRef)(null),F=co();return(0,d.useEffect)((()=>{!D.current||void 0!==r&&F.addEventListener(D.current,"reset",(()=>{M(r)}))}),[D,M]),d.createElement(hd.Provider,{value:A},d.createElement(yd.Provider,{value:j},d.createElement(Ka,{value:Ma(j.comboboxState,{0:Wa.Open,1:Wa.Closed})},null!=a&&null!=m&&Cc({[a]:m}).map((([e,t],s)=>d.createElement(kc,{features:jc.Hidden,ref:0===s?e=>{var t;D.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...$a({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),za({ourProps:I,theirProps:p,slot:k,defaultTag:bd,name:"Combobox"}))))})),wd=qa((function(e,t){var s,r,n,a;let o=Vo(),{id:i=`headlessui-combobox-input-${o}`,onChange:l,displayValue:c,type:u="text",...p}=e,m=gd("Combobox.Input"),h=fd("Combobox.Input"),f=ao(m.inputRef,t),y=(0,d.useRef)(!1),g=co(),v=function(){var e;return"function"==typeof c&&void 0!==m.value?null!=(e=c(m.value))?e:"":"string"==typeof m.value?m.value:""}();id((([e,t],[s,r])=>{y.current||!m.inputRef.current||(0===r&&1===t||e!==s)&&(m.inputRef.current.value=e)}),[v,m.comboboxState]),id((([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=so((()=>{b.current=!0})),w=so((()=>{setTimeout((()=>{b.current=!1}))})),S=so((e=>{switch(y.current=!0,e.key){case Wo.Backspace:case Wo.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(mc.Nothing))}));break;case Wo.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 Wo.ArrowDown:return y.current=!1,e.preventDefault(),e.stopPropagation(),Ma(m.comboboxState,{0:()=>{h.goToOption(mc.Next)},1:()=>{h.openCombobox()}});case Wo.ArrowUp:return y.current=!1,e.preventDefault(),e.stopPropagation(),Ma(m.comboboxState,{0:()=>{h.goToOption(mc.Previous)},1:()=>{h.openCombobox(),g.nextFrame((()=>{m.value||h.goToOption(mc.Last)}))}});case Wo.Home:if(e.shiftKey)break;return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(mc.First);case Wo.PageUp:return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(mc.First);case Wo.End:if(e.shiftKey)break;return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(mc.Last);case Wo.PageDown:return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(mc.Last);case Wo.Escape:return y.current=!1,0!==m.comboboxState?void 0:(e.preventDefault(),m.optionsRef.current&&!m.optionsPropsRef.current.static&&e.stopPropagation(),h.closeCombobox());case Wo.Tab:if(y.current=!1,0!==m.comboboxState)return;0===m.mode&&h.selectActiveOption(),h.closeCombobox()}})),_=so((e=>{h.openCombobox(),null==l||l(e)})),E=so((()=>{y.current=!1})),j=pc((()=>{if(m.labelId)return[m.labelId].join(" ")}),[m.labelId]),k=(0,d.useMemo)((()=>({open:0===m.comboboxState,disabled:m.disabled})),[m]);return za({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!=(a=null!=(n=e.defaultValue)?n:void 0!==m.defaultValue?null==c?void 0:c(m.defaultValue):null)?a:m.defaultValue,disabled:m.disabled,onCompositionStart:x,onCompositionEnd:w,onKeyDown:S,onChange:_,onBlur:E},theirProps:p,slot:k,defaultTag:"input",name:"Combobox.Input"})})),Sd=qa((function(e,t){var s;let r=gd("Combobox.Button"),n=fd("Combobox.Button"),a=ao(r.buttonRef,t),o=Vo(),{id:i=`headlessui-combobox-button-${o}`,...l}=e,c=co(),u=so((e=>{switch(e.key){case Wo.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 Wo.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(n.openCombobox(),c.nextFrame((()=>{r.value||n.goToOption(mc.Last)}))),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Wo.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=so((e=>{if(Go(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=pc((()=>{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 za({ourProps:{ref:a,id:i,type:Yo(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"})})),_d=qa((function(e,t){let s=Vo(),{id:r=`headlessui-combobox-label-${s}`,...n}=e,a=gd("Combobox.Label"),o=fd("Combobox.Label"),i=ao(a.labelRef,t);Qa((()=>o.registerLabel(r)),[r]);let l=so((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})})),c=(0,d.useMemo)((()=>({open:0===a.comboboxState,disabled:a.disabled})),[a]);return za({ourProps:{ref:i,id:r,onClick:l},theirProps:n,slot:c,defaultTag:"label",name:"Combobox.Label"})})),Ed=Da.RenderStrategy|Da.Static,jd=qa((function(e,t){let s=Vo(),{id:r=`headlessui-combobox-options-${s}`,hold:n=!1,...a}=e,o=gd("Combobox.Options"),i=ao(o.optionsRef,t),l=Ga(),c=null!==l?l===Wa.Open:0===o.comboboxState;Qa((()=>{var t;o.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[o.optionsPropsRef,e.static]),Qa((()=>{o.optionsPropsRef.current.hold=n}),[o.optionsPropsRef,n]),function({container:e,accept:t,walk:s,enabled:r=!0}){let n=(0,d.useRef)(t),a=(0,d.useRef)(s);(0,d.useEffect)((()=>{n.current=t,a.current=s}),[t,s]),Qa((()=>{if(!e||!r)return;let t=Zo(e);if(!t)return;let s=n.current,o=a.current,i=Object.assign((e=>s(e)),{acceptNode:s}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,i,!1);for(;l.nextNode();)o(l.currentNode)}),[e,r,n,a])}({container:o.optionsRef.current,enabled:0===o.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=pc((()=>{var e,t;return null!=(t=o.labelId)?t:null==(e=o.buttonRef.current)?void 0:e.id}),[o.labelId,o.buttonRef.current]);return za({ourProps:{"aria-labelledby":u,role:"listbox",id:r,ref:i},theirProps:a,slot:(0,d.useMemo)((()=>({open:0===o.comboboxState})),[o]),defaultTag:"ul",features:Ed,visible:c,name:"Combobox.Options"})})),kd=qa((function(e,t){var s,r;let n=Vo(),{id:a=`headlessui-combobox-option-${n}`,disabled:o=!1,value:i,...l}=e,c=gd("Combobox.Option"),u=fd("Combobox.Option"),p=null!==c.activeOptionIndex&&c.options[c.activeOptionIndex].id===a,m=c.isSelected(i),h=(0,d.useRef)(null),f=eo({disabled:o,value:i,domRef:h,textValue:null==(r=null==(s=h.current)?void 0:s.textContent)?void 0:r.toLowerCase()}),y=ao(t,h),g=so((()=>u.selectOption(a)));Qa((()=>u.registerOption(a,f)),[f,a]);let v=(0,d.useRef)(!c.__demoMode);Qa((()=>{if(!c.__demoMode)return;let e=oo();return e.requestAnimationFrame((()=>{v.current=!0})),e.dispose}),[]),Qa((()=>{if(0!==c.comboboxState||!p||!v.current||0===c.activationTrigger)return;let e=oo();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=so((e=>{if(o)return e.preventDefault();g(),0===c.mode&&u.closeCombobox()})),x=so((()=>{if(o)return u.goToOption(mc.Nothing);u.goToOption(mc.Specific,a)})),w=Tc(),S=so((e=>w.update(e))),_=so((e=>{!w.wasMoved(e)||o||p||u.goToOption(mc.Specific,a,0)})),E=so((e=>{!w.wasMoved(e)||o||!p||c.optionsPropsRef.current.hold||u.goToOption(mc.Nothing)})),j=(0,d.useMemo)((()=>({active:p,selected:m,disabled:o})),[p,m,o]);return za({ourProps:{id:a,ref:y,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||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"})})),Cd=Object.assign(xd,{Input:wd,Button:Sd,Label:_d,Options:jd,Option:kd});function Rd(e){return e&&e.label?e.label:null}function Nd({id:e,value:t=null,label:s="",onChange:r,onQueryChange:n=null,options:a,placeholder:i=(0,Vt.__)("Select an option","wordpress-seo"),isLoading:l=!1}){const[c,d]=(0,o.useState)(a),[u,p]=(0,o.useState)(""),m=(0,o.useCallback)((e=>{p(e.target.value)}),[p]),h=(0,o.useCallback)((()=>{p("")}),[p]);(0,o.useEffect)((()=>{d(a)}),[a]),(0,o.useEffect)((()=>{n?n(u):d(a.filter((e=>e.label.toLowerCase().includes(u.toLowerCase()))))}),[u,n]);const f=(0,o.useCallback)(((e,t)=>({selected:s,active:r})=>Vi({selected:s||e===t,active:r})),[Vi]),y=(0,o.useCallback)((e=>t=>{e&&t.stopPropagation()}),[]);return(0,Zt.jsx)(Cd,{id:e,as:"div",value:t,onChange:r,onBlur:h,children:({open:r})=>(0,Zt.jsxs)(o.Fragment,{children:[s&&(0,Zt.jsx)(Cd.Label,{className:"yst-block yst-mb-2 yst-max-w-sm yst-text-sm yst-font-medium yst-text-slate-800",children:s}),(0,Zt.jsxs)("div",{className:"yst-h-[40px] yst-max-w-sm yst-relative",children:[(0,Zt.jsxs)(Cd.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,Zt.jsx)(Cd.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:Rd,placeholder:i,onClick:y(r)}),(0,Zt.jsx)(Qc,{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,Zt.jsxs)(Cd.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,Zt.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,Zt.jsx)(nd,{className:"yst-text-primary-500 yst-h-4 yst-w-4 yst-me-2 yst-self-center"}),(0,Vt.__)("Loading…","wordpress-seo")]}),c.map((e=>(0,Zt.jsx)(Cd.Option,{value:e,className:f(e.value,t.value),children:({selected:s})=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("span",{className:Ss()("yst-block yst-truncate",(s||t.value===e.value)&&"yst-font-semibold"),children:e.label}),(s||t.value===e.value)&&(0,Zt.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,Zt.jsx)(hl,{className:"yst-h-5 yst-w-5","aria-hidden":"true"})})]})},`yst-option-${e.value}`)))]})]})]})})}Nd.propTypes={onChange:Yt().func.isRequired,options:Yt().array.isRequired,id:Yt().string.isRequired,value:Yt().shape({value:Yt().number,label:Yt().string}),label:Yt().string,onQueryChange:Yt().func,placeholder:Yt().string,isLoading:Yt().bool};const Pd={"X-WP-NONCE":wpApiSettings.nonce},Od=wpApiSettings.root;function Td({initialValue:e={id:0,name:""},onChangeCallback:t=c.noop,placeholder:s=(0,Vt.__)("Select a user","wordpress-seo")}){const[r,n]=(0,o.useState)([]),[a,i]=(0,o.useState)({value:e.id,label:e.name}),[l,d]=(0,o.useState)(!1),u=(0,o.useRef)(!0);(0,o.useEffect)((()=>()=>{u.current=!1}),[]);const p=(0,o.useCallback)((e=>{i(e),t(e)})),m=(0,o.useCallback)((0,c.debounce)((async e=>{d(!0);const t=await function(e=""){const t=`${Od}wp/v2/users?per_page=20${e?`&search=${encodeURIComponent(e)}`:""}`;return(0,Gl.sendRequest)(t,{method:"GET",headers:Pd})}(e);u.current&&(d(!1),n(t.map((e=>({value:e.id,label:e.name})))))}),500),[]);return(0,Zt.jsx)(Nd,{id:"yoast-configuration-user-select",value:a,label:(0,Vt.__)("Name","wordpress-seo"),onChange:p,onQueryChange:m,options:r,placeholder:s,isLoading:l})}function Ld({dispatch:e,imageUrl:t="",fallbackImageUrl:s="",person:r={id:0,name:""},canEditUser:n}){const a=(0,o.useCallback)((()=>{td((t=>{e({type:"SET_PERSON_LOGO",payload:{...t}})}))}),[td]),i=(0,o.useCallback)((()=>{e({type:"REMOVE_PERSON_LOGO"})}),[e]),l=(0,o.useCallback)((t=>{e({type:"SET_PERSON",payload:t}),fa()({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,Vt.__)("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,Vt.__)("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,o.useMemo)((()=>Wt((0,Vt.sprintf)(n?c:d,`<b>${r.name}</b>`,"<a>","</a>"),{b:(0,Zt.jsx)("b",{}),a:(0,Zt.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,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)(Td,{initialValue:r,onChangeCallback:l,name:"person_id",placeholder:(0,Vt.__)("Select a user","wordpress-seo")}),(0,Zt.jsx)(dl,{id:"user-representation-alert",isVisible:0!==r.id,type:"info",className:"yst-mt-5",children:u}),(0,Zt.jsx)(ad,{className:"yst-mt-6",id:"person-logo-input",url:t,fallbackUrl:s,onSelectImageClick:a,onRemoveImageClick:i,imageAltText:"",hasPreview:!0,label:(0,Vt.__)("Personal logo or avatar","wordpress-seo")})]})}Td.propTypes={initialValue:Yt().shape({id:Yt().number,name:Yt().string}),onChangeCallback:Yt().func,placeholder:Yt().string},Ld.propTypes={dispatch:Yt().func.isRequired,imageUrl:Yt().string,fallbackImageUrl:Yt().string,person:Yt().shape({id:Yt().number,name:Yt().string}),canEditUser:Yt().bool.isRequired};const Md=d.forwardRef((function(e,t){return d.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),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"}))})),Ad=d.forwardRef((function(e,t){return d.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),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"}))}));function Id({onOrganizationOrPersonChange:e,dispatch:t,state:s,siteRepresentationEmpty:r}){const[n,a]=(0,o.useState)("emptyChoice"===s.companyOrPerson?"yst-opacity-0":"yst-opacity-100"),i=(0,o.useCallback)((()=>{a("yst-opacity-100")}),[a]),c=(0,o.useCallback)((e=>{t({type:"CHANGE_WEBSITE_NAME",payload:e.target.value})}),[t]),d=Wt((0,Vt.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. */
(0,Vt.__)("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,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"}),a:(0,Zt.jsx)("a",{id:"yoast-configuration-rich-text-link",href:"https://yoa.st/config-workout-rich-results",target:"_blank",rel:"noopener noreferrer"})});return(0,Zt.jsxs)(o.Fragment,{children:[window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage&&(0,Zt.jsx)(cl,{type:"info",children:window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage}),(0,Zt.jsx)("p",{className:Ss()("yst-text-sm yst-whitespace-pre-line yst-mb-6",s.shouldForceCompany?"yst-mt-4":"yst-mt-0"),children:s.shouldForceCompany?d:(0,Zt.jsxs)(o.Fragment,{children:[(0,Vt.__)("Tell us! Is your site about an organization or a person?","wordpress-seo"),(0,Zt.jsx)("br",{}),d]})}),(0,Zt.jsx)(Xc,{id:"organization-person-select",htmlFor:"organization-person-select",name:"organization",label:(0,Vt.__)("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,Zt.jsx)(cl,{type:"info",className:"yst-mt-6",children:(0,Vt.__)("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,Zt.jsx)(tl,{className:"yst-my-6",id:"website-name-input",name:"website-name",label:(0,Vt.__)("Website name","wordpress-seo"),value:s.websiteName||s.fallbackWebsiteName,onChange:c,feedback:{isVisible:s.errorFields.includes("website_name"),message:[(0,Vt.__)("We could not save the website name. Please check the value.","wordpress-seo")],type:"error"}}),(0,Zt.jsx)(ll.Z,{height:["company","person"].includes(s.companyOrPerson)?"auto":0,duration:400,easing:"linear",onAnimationEnd:i,children:(0,Zt.jsxs)("div",{className:Ss()("yst-transition-opacity yst-duration-300 yst-mt-6",n),children:["company"===s.companyOrPerson&&(0,Zt.jsx)(od,{dispatch:t,imageUrl:s.companyLogo,fallbackImageUrl:s.companyLogoFallback,organizationName:s.companyName,fallbackOrganizationName:s.fallbackCompanyName,errorFields:s.errorFields}),"person"===s.companyOrPerson&&(0,Zt.jsx)(Ld,{dispatch:t,imageUrl:s.personLogo,fallbackImageUrl:s.personLogoFallback,person:{id:s.personId,name:s.personName},canEditUser:!!s.canEditUser,errorFields:s.errorFields})]})}),(0,Zt.jsx)(dl,{id:"site-representation-empty-alert",isVisible:r,className:"yst-mt-6",children:(0,Vt.__)("You're almost there! Complete all settings in this step so search engines know what your site is about.","wordpress-seo")}),!s.isPremium&&s.isWooCommerceActive&&!s.isWooCommerceSeoActive&&(0,Zt.jsxs)(lc,{className:"yst-mt-6 yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(Md,{className:"yst-text-primary-300 yst-w-4 yst-h-4 yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-font-medium yst-text-slate-800",children:(0,Vt.__)("Running an online store?","wordpress-seo")})]}),(0,Zt.jsx)("p",{children:(0,Vt.sprintf)(/* translators: %s expands to Yoast WooCommerce SEO. */
(0,Vt.__)("%s helps your products stand out in Google Shopping and Rich Results.","wordpress-seo"),"Yoast WooCommerce SEO")})]}),(0,Zt.jsx)("p",{className:"yst-mt-4",children:(0,Zt.jsxs)(l.Button,{id:"ftc-indexing-learn-more",as:"a",href:window.wpseoFirstTimeConfigurationData.shortlinks.reprWoocommerceLearnMore,variant:"tertiary",target:"_blank",className:"yst-p-0",children:[(0,Vt.sprintf)(/* translators: %s expands to WooCommerce SEO. */
(0,Vt.__)("Learn more about %s","wordpress-seo"),"WooCommerce SEO"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(dc,{className:"yst-ms-1 yst-w-4 yst-h-4 yst-icon-rtl"})]})})]}),"company"===s.companyOrPerson&&!s.isPremium&&!s.isWooCommerceActive&&(0,Zt.jsxs)(lc,{className:"yst-mt-6 yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(Ad,{className:"yst-text-primary-300 yst-w-4 yst-h-4 yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-font-medium yst-text-slate-800",children:(0,Vt.__)("Have a physical location?","wordpress-seo")})]}),(0,Zt.jsx)("p",{children:(0,Vt.sprintf)(/* translators: %s expands to Yoast Local SEO. */
(0,Vt.__)("%s helps you show up in Google Maps and local results. Complete your visibility where it matters most!","wordpress-seo"),"Yoast Local SEO")})]}),(0,Zt.jsx)("p",{className:"yst-mt-4",children:(0,Zt.jsxs)(l.Button,{id:"ftc-indexing-learn-more",as:"a",href:window.wpseoFirstTimeConfigurationData.shortlinks.reprLocalLearnMore,variant:"tertiary",target:"_blank",className:"yst-p-0",children:[(0,Vt.sprintf)(/* translators: %s expands to Local SEO. */
(0,Vt.__)("Learn more about %s","wordpress-seo"),"Local SEO"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(dc,{className:"yst-ms-1 yst-w-4 yst-h-4 yst-icon-rtl"})]})})]})]})}function Dd(e,t,s=""){return Wt(e,{a:(0,Zt.jsx)("a",{id:s,href:t,target:"_blank",rel:"noopener noreferrer"})})}Id.propTypes={onOrganizationOrPersonChange:Yt().func.isRequired,dispatch:Yt().func.isRequired,state:Yt().object.isRequired,siteRepresentationEmpty:Yt().bool.isRequired};const Fd=(0,Vt.__)("Oops! Something went wrong. Check your email address and try again.","wordpress-seo"),zd=(0,Vt.__)("Please enter a valid email address.","wordpress-seo"),Ud=(0,Vt.__)("Thank you! Check your inbox for the confirmation email.","wordpress-seo");function Bd({gdprLink:e=""}){const[t,s]=(0,o.useState)(""),[r,n]=(0,o.useState)("waiting"),[a,i]=(0,o.useState)(""),l=Ao("selectPreference",[],"isPremium"),c=Ao("selectPreference",[],"addonsStatus"),d=(0,o.useCallback)((async function(){if(!(0,va.isEmail)(t))return n("error"),void i(zd);n("loading");const e=await async function(e,t,s){const r=Io("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(Fd)):(n("success"),i(Ud))}),[t]),u=(0,o.useCallback)((e=>{n("waiting"),s(e.target.value)}),[s]);return(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("h4",{className:"yst-text-slate-800 yst-text-sm yst-leading-6 yst-font-medium",children:(0,Vt.__)("Get free weekly SEO tips!","wordpress-seo")}),(0,Zt.jsx)("p",{className:"yst-mb-2",children:(0,Vt.sprintf)(/* translators: %1$s expands to "Yoast SEO", %2$s expands to "Yoast SEO". */
(0,Vt.__)("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,Zt.jsxs)("div",{className:"yst-flex yst-items-start yst-gap-2 yst-mt-4 yst-mb-2",children:[(0,Zt.jsx)(tl,{label:(0,Vt.__)("Email address","wordpress-seo"),id:"newsletter-email",name:"newsletter email",value:t,onChange:u,className:"yst-grow",type:"email",placeholder:(0,Vt.__)("E.g. example@email.com","wordpress-seo"),feedback:{isVisible:["error","success"].includes(r),type:r,message:[a]}}),(0,Zt.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,Vt.__)("Yes, give me your free tips!","wordpress-seo")})]}),(0,Zt.jsx)("p",{className:"yst-text-slate-500 yst-text-xxs yst-leading-4",children:Dd((0,Vt.sprintf)(
// translators: %1$s and %2$s are replaced by opening and closing anchor tags.
(0,Vt.__)("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")})]})}Bd.propTypes={gdprLink:Yt().string};const qd={variant:{default:"","inline-block":"yst-radio--inline-block"}},$d={variant:{default:"","inline-block":"yst-radio-group--inline-block"}},Hd=({id:e,name:t,value:s,label:r,variant:n="default",className:a="",...o})=>(0,Zt.jsxs)("div",{className:Ss()("yst-radio",qd.variant[n],a),children:[(0,Zt.jsx)("input",{type:"radio",id:e,name:t,value:s,className:"yst-radio__input",...o}),r&&(0,Zt.jsx)(Vd,{htmlFor:e,className:"yst-radio__label",children:r})]});Hd.propTypes={name:Yt().string.isRequired,id:Yt().string.isRequired,value:Yt().oneOfType([Yt().string,Yt().number]).isRequired,label:Yt().string.isRequired,variant:Yt().oneOf(Object.keys(qd.variant)),className:Yt().string};const Vd=({children:e,as:t="label",className:s="",...r})=>(0,Zt.jsx)(t,{className:Ss()("yst-label",s),...r,children:e});Vd.propTypes={children:Yt().node.isRequired,as:Yt().elementType,className:Yt().string};const Wd=({children:e=null,id:t,name:s,value:r,label:n=null,options:a,onChange:i,variant:l="default",className:c="",...d})=>{const u=(0,o.useCallback)((({target:e})=>e.checked&&i(e.value)),[i]);return(0,Zt.jsxs)("fieldset",{className:Ss()("yst-radio-group",$d.variant[l],c),children:[n&&(0,Zt.jsx)(Vd,{as:"legend",className:"yst-radio-group__label",children:n}),e&&(0,Zt.jsx)("div",{className:"yst-radio-group__description",children:e}),(0,Zt.jsx)("div",{className:"yst-radio-group__options",children:a.map(((e,n)=>{const a=`${t}-${n}`;return(0,Zt.jsx)(Hd,{id:a,name:s,value:e.value,label:e.label,variant:l,checked:r===e.value,onChange:u,...d},a)}))})]})};Wd.propTypes={children:Yt().node,id:Yt().string.isRequired,name:Yt().string.isRequired,value:Yt().oneOfType([Yt().string,Yt().number]).isRequired,options:Yt().arrayOf(Yt().shape({value:Yt().oneOfType([Yt().string,Yt().number]).isRequired,label:Yt().string.isRequired})).isRequired,onChange:Yt().func.isRequired,label:Yt().node,variant:Yt().oneOf(Object.keys($d.variant)),className:Yt().string};const Gd=Wd,Kd=(0,Gl.makeOutboundLink)();function Yd({state:e,setTracking:t}){return(0,Zt.jsxs)(o.Fragment,{children:[!e.isPremium&&(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)(Bd,{gdprLink:window.wpseoFirstTimeConfigurationData.shortlinks.gdpr}),(0,Zt.jsx)("hr",{className:"yst-bg-slate-200 yst-my-6"})]}),(0,Zt.jsx)("h4",{className:"yst-text-slate-800 yst-text-sm yst-leading-6 yst-font-medium",children:(0,Vt.__)("Are you open to help us improve our services?","wordpress-seo")}),!!e.isMainSite&&!e.isTrackingAllowedMultisite&&(0,Zt.jsx)(cl,{type:"warning",children:(0,Vt.__)("This feature has been disabled by the network admin.","wordpress-seo")}),!e.isMainSite&&(0,Zt.jsx)(cl,{type:"warning",children:(0,Vt.__)("This feature has been disabled since subsites never send tracking data.","wordpress-seo")}),(0,Zt.jsx)("p",{className:Ss()("yst-text-normal yst-mb-4",e.isMainSite&&e.isTrackingAllowedMultisite?"":"yst-opacity-50"),children:(0,Vt.sprintf)(/* translators: 1: Yoast SEO. */
(0,Vt.__)("Can we collect anonymous information about your website to enhance %1$s?","wordpress-seo"),"Yoast SEO")}),(0,Zt.jsx)(Gd,{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,Vt.__)("No, I don't want to share my site data","wordpress-seo")},{value:1,label:(0,Vt.__)("Yes, you can collect my site data","wordpress-seo")}]}),!!e.isMainSite&&!!e.isTrackingAllowedMultisite&&(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)(Kd,{className:"yst-inline-block yst-mt-4",href:"https://yoa.st/config-workout-tracking",children:(0,Vt.__)("What data will be collected and why?","wordpress-seo")}),(0,Zt.jsx)("p",{className:"yst-my-2 yst-italic",children:Wt((0,Vt.sprintf)(/* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to closing 'span' HTML tag. */
(0,Vt.__)("%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,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"})})})]})]})}Yd.propTypes={state:Yt().object.isRequired,setTracking:Yt().func.isRequired};const Zd=d.forwardRef((function(e,t){return d.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),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 10V3L4 14h7v7l9-11h-7z"}))}));function Jd(e){e.preventDefault(),window.location.href="admin.php?page=wpseo_dashboard"}function Qd({state:e}){const t=(0,c.get)(window,"wpseoScriptData.webinarIntroFirstTimeConfigUrl","https://yoa.st/webinar-intro-first-time-config"),s=[(0,Vt.__)("Optimize for multiple keyphrases per page to reach a wider audience.","wordpress-seo"),(0,Vt.__)("Get smart internal linking suggestions that strengthen your site structure.","wordpress-seo"),(0,Vt.__)("Automatically redirect broken URLs so you don’t lose traffic or SEO value.","wordpress-seo"),(0,Vt.__)("Save time with AI-powered title and meta description suggestions.","wordpress-seo")];return(0,Zt.jsx)("div",{className:"yst-flex yst-flex-row yst-justify-between yst-items-center yst-mt-4",children:(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("p",{className:"yst-text-sm yst-mb-4",children:(0,Vt.sprintf)(/* translators: 1: Yoast. */
(0,Vt.__)("Great work! Thanks to the details you've provided, %1$s has enhanced your site for search engines, giving them a clearer picture of what your site is all about.","wordpress-seo"),"Yoast")}),(0,Zt.jsx)("p",{className:"yst-text-sm yst-mb-6",children:(0,Vt.__)("If your goal is to increase your rankings, you need to work on your SEO regularly. That can be overwhelming, so let's tackle it one step at a time!","wordpress-seo")}),(0,Zt.jsxs)(l.Button,{as:"a",variant:"primary",id:"button-webinar-seo-dashboard",href:t,target:"_blank","data-hiive-event-name":"clicked_to_onboarding_page",children:[(0,Vt.sprintf)(/* translators: 1: Yoast SEO. */
(0,Vt.__)("Learn how to increase your rankings with %1$s","wordpress-seo"),"Yoast SEO"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(dc,{className:"yst-w-4 yst-h-4 yst-icon-rtl yst-ms-2"})]}),(0,Zt.jsx)("p",{className:"yst-mt-6",children:(0,Zt.jsxs)(l.Button,{id:"link-webinar-register",as:"a",onClick:Jd,"data-hiive-event-name":"clicked_seo_dashboard",variant:"tertiary",children:[(0,Vt.__)("Or go to your SEO dashboard","wordpress-seo"),(0,Zt.jsx)(Es,{className:"yst-ms-1 yst-w-4 yst-h-4 yst-icon-rtl"})]})}),!e.isPremium&&(0,Zt.jsxs)(lc,{className:"yst-mt-8 yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(Zd,{className:"yst-text-primary-300 yst-w-4 yst-h-4 yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-font-medium yst-text-slate-800",children:(0,Vt.__)("Your site’s ready to shine! Want to take it to the next level?","wordpress-seo")})]}),(0,Zt.jsx)("p",{className:"yst-mt-4",children:Wt((0,Vt.sprintf)(
/* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to Yoast SEO Premium,
            %3$s expands to closing 'span' HTML tag. */
(0,Vt.__)("%1$s%2$s%3$s helps you:","wordpress-seo"),"<span>","Yoast SEO Premium","</span>"),{span:(0,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"})})}),(0,Zt.jsx)("ul",{className:"yst-flex yst-flex-col yst-gap-2 yst-list-none yst-list-outside yst-text-slate-600 yst-mt-2",children:s.map(((e,t)=>(0,Zt.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,Zt.jsx)(as,{className:"yst-mr-2 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),e]},`upsell-benefit-${t}`)))})]}),(0,Zt.jsx)("p",{className:"yst-mt-5",children:(0,Zt.jsxs)(l.Button,{as:"a",variant:"upsell",href:window.wpseoFirstTimeConfigurationData.shortlinks.finishLearnMore,className:"yst-gap-2 sm:yst-max-w-sm",target:"_blank",rel:"noopener",children:[(0,Zt.jsx)(Qt,{className:"yst-w-4 yst-h-4"}),(0,Vt.__)("Unlock all Premium features","wordpress-seo"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")})]})})]})]})})}function Xd(e,t){const{companyName:s,companyLogo:r,companyOrPersonOptions:n,shouldForceCompany:a,fallbackCompanyName:o,websiteName:i,fallbackWebsiteName:l}=e;let{companyOrPerson:c}=e;return("company"!==c||s||r||t(Ul.siteRepresentation))&&!a||(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||o,websiteName:i||l}}function eu(){const{removeAlert:e,dismissNotice:t,restoreNotice:s,setTaskCompleted:n}=(0,r.useDispatch)(To),a=(0,r.useSelect)((e=>e(To).selectIsTaskCompleted("complete-ftc")),[]),[i,l]=(0,o.useState)(window.wpseoFirstTimeConfigurationData.finishedSteps),d=(0,o.useCallback)((e=>i.includes(e)),[i]),u=(0,o.useCallback)((e=>{l((t=>(0,c.uniq)([...t,e])))}),[l]);(0,o.useEffect)((()=>{!async function(e){const t=await fa()({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,o.useReducer)(Gi,{...Xd(window.wpseoFirstTimeConfigurationData,d)}),[h,f]=(0,o.useState)((()=>"0"===window.yoastIndexingData.amount?"already_done":"idle")),[y,g]=(0,o.useState)(!1),[v,b]=(0,o.useState)(!1),x=(0,o.useCallback)(((e,t)=>{m({type:"SET_STEP_ERROR",payload:{step:e,message:t}})}),[]),w=(0,o.useCallback)((e=>{m({type:"REMOVE_STEP_ERROR",payload:e})}),[]);(0,o.useEffect)((()=>{"completed"===h&&(e("wpseo-reindex"),window.yoastIndexingData.amount="0")}),[h,e]);const S=d(Ul.optimizeSeoData),_=d(Ul.siteRepresentation),E=d(Ul.socialProfiles),j=d(Ul.personalPreferences),k=(0,o.useCallback)((e=>{m({type:"SET_TRACKING",payload:parseInt(e,10)})})),C=(0,o.useCallback)((e=>{m({type:"SET_ERROR_FIELDS",payload:e})})),R=(0,o.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]),N=(0,o.useCallback)((()=>{t("yoast-first-time-configuration-notice")}),[t]),P=!("company"!==p.companyOrPerson||p.companyName&&(p.companyLogo||p.companyLogoFallback)&&p.websiteName),O=!("person"!==p.companyOrPerson||p.personId&&(p.personLogo||p.personLogoFallback)&&p.websiteName),T=(0,o.useCallback)((e=>m({type:"SET_COMPANY_OR_PERSON",payload:e})),[m]),L=[S,_,E,j].every(Boolean),M=[d(Ul.optimizeSeoData),d(Ul.siteRepresentation),d(Ul.socialProfiles),d(Ul.personalPreferences),L],[A,I]=(0,o.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}(M)),[D,F]=(0,o.useState)(L),[z,U]=(0,o.useState)(!1),[B,q]=(0,o.useState)(D&&!z);function $(){return q(!1),U(!0),!0}(0,o.useEffect)((()=>{L&&(F(!0),!1===a&&n("complete-ftc"))}),[L]),(0,o.useEffect)((()=>{q(D&&!z)}),[D,z]),(0,o.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,o.useEffect)((()=>{p.editedSteps.includes(A+1)||"in_progress"===h?window.isStepBeingEdited=!0:window.isStepBeingEdited=!1}),[p.editedSteps,h,A]);const H=(0,o.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,o.useEffect)((()=>(window.addEventListener("beforeunload",H),()=>{window.removeEventListener("beforeunload",H)})),[H]),(0,Zt.jsxs)(zl,{setActiveStepIndex:I,activeStepIndex:A,isStepperFinished:L,children:[(0,Zt.jsxs)(Il,{children:[(0,Zt.jsx)(Il.Header,{name:(0,Vt.__)("SEO data optimization","wordpress-seo"),isFinished:S,children:(0,Zt.jsx)($l,{stepId:Ul.optimizeSeoData,beforeGo:$,isVisible:B,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Zt.jsxs)(Il.Content,{children:[(0,Zt.jsx)(uc,{state:p,setIndexingState:f,indexingState:h,showRunIndexationAlert:v,isStepperFinished:L}),(0,Zt.jsx)(ql,{stepId:Ul.optimizeSeoData,additionalClasses:"yst-mt-12",beforeGo:function(){return v||"idle"!==h||"1"===window.yoastIndexingData.disabled?(U(!1),u(Ul.optimizeSeoData),!0):(b(!0),!1)},destination:D?"last":1,children:(0,Vt.__)("Continue","wordpress-seo")})]})]}),(0,Zt.jsxs)(Il,{children:[(0,Zt.jsx)(Il.Header,{name:(0,Vt.__)("Site representation","wordpress-seo"),isFinished:_,children:(0,Zt.jsx)($l,{stepId:Ul.siteRepresentation,beforeGo:$,isVisible:B,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Zt.jsxs)(Il.Content,{children:[(0,Zt.jsx)(Id,{onOrganizationOrPersonChange:T,dispatch:m,state:p,siteRepresentationEmpty:y}),(0,Zt.jsx)(Il.Error,{id:"yoast-site-representation-step-error",message:p.stepErrors[Ul.siteRepresentation]||""}),(0,Zt.jsx)(Wl,{stepId:Ul.siteRepresentation,stepperFinishedOnce:D,saveFunction:function(){return!y&&P||!y&&O?(g(!0),!1):y||"emptyChoice"!==p.companyOrPerson?(g("emptyChoice"===p.companyOrPerson||P||O),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 fa()({path:"yoast/v1/configuration/site_representation",method:"POST",data:t});return await s.json}(p).then((()=>(C([]),w(Ul.siteRepresentation),u(Ul.siteRepresentation),window.wpseoFirstTimeConfigurationData={...window.wpseoFirstTimeConfigurationData,...p},R(),!0))).catch((e=>e.failures?(C(e.failures),!1):(e.message&&x(Ul.siteRepresentation,e.message),!1)))):(g(!0),!1)},setEditState:U})]})]}),(0,Zt.jsxs)(Il,{children:[(0,Zt.jsx)(Il.Header,{name:(0,Vt.__)("Social profiles","wordpress-seo"),isFinished:E,children:(0,Zt.jsx)($l,{stepId:Ul.socialProfiles,beforeGo:$,isVisible:B,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Zt.jsxs)(Il.Content,{children:[(0,Zt.jsx)(ul,{state:p,dispatch:m,setErrorFields:C}),(0,Zt.jsx)(Il.Error,{id:"yoast-social-profiles-step-error",message:p.stepErrors[Ul.socialProfiles]||""}),(0,Zt.jsx)(Wl,{stepId:Ul.socialProfiles,stepperFinishedOnce:D,saveFunction:function(){return"person"===p.companyOrPerson?(u(Ul.socialProfiles),!0):async function(e){const t={facebook_site:e.socialProfiles.facebookUrl,twitter_site:e.socialProfiles.twitterUsername,other_social_urls:e.socialProfiles.otherSocialUrls},s=await fa()({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(Ul.socialProfiles),u(Ul.socialProfiles)})).then((()=>(window.wpseoFirstTimeConfigurationData.socialProfiles=p.socialProfiles,!0))).catch((e=>(e.failures&&C(e.failures),e.message&&x(Ul.socialProfiles,e.message),!1)))},setEditState:U})]})]}),(0,Zt.jsxs)(Il,{children:[(0,Zt.jsx)(Il.Header,{name:(0,Vt.__)("Personal preferences","wordpress-seo"),isFinished:j,children:(0,Zt.jsx)($l,{stepId:Ul.personalPreferences,beforeGo:$,isVisible:B,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Zt.jsxs)(Il.Content,{children:[(0,Zt.jsx)(Yd,{state:p,setTracking:k}),(0,Zt.jsx)(Il.Error,{id:"yoast-personal-preferences-step-error",message:p.stepErrors[Ul.personalPreferences]||""}),(0,Zt.jsx)(Wl,{stepId:Ul.personalPreferences,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 fa()({path:"yoast/v1/configuration/enable_tracking",method:"POST",data:t});return await s.json}(p).then((()=>u(Ul.personalPreferences))).then((()=>(w(Ul.personalPreferences),window.wpseoFirstTimeConfigurationData.tracking=p.tracking,N(),!0))).catch((e=>(e.message&&x(Ul.personalPreferences,e.message),!1)))},setEditState:U})]})]}),(0,Zt.jsxs)(Il,{children:[(0,Zt.jsx)(Il.Header,{name:(0,Vt.__)("Finish configuration","wordpress-seo"),isFinished:L}),(0,Zt.jsx)(Il.Content,{children:(0,Zt.jsx)(Qd,{state:p})})]})]})}const tu=()=>{const e=function(e){let{router:t,basename:s}=ft(mt.UseBlocker),r=yt(ht.UseBlocker),[n,a]=d.useState(""),o=d.useCallback((t=>{if("/"===s)return e(t);let{currentLocation:r,nextLocation:n,historyAction:a}=t;return e({currentLocation:Ye({},r,{pathname:B(r.pathname,s)||r.pathname}),nextLocation:Ye({},n,{pathname:B(n.pathname,s)||n.pathname}),historyAction:a})}),[s,e]);return d.useEffect((()=>{let e=String(++bt);return a(e),()=>t.deleteBlocker(e)}),[t]),d.useEffect((()=>{""!==n&&t.getBlocker(n,o)}),[t,n,o]),n&&r.blockers.has(n)?r.blockers.get(n):oe}((({currentLocation:e,nextLocation:t})=>(0,c.get)(window,"isStepBeingEdited",!1)&&"/first-time-configuration"===e.pathname&&"/first-time-configuration"!==t.pathname));return(0,Zt.jsxs)(l.Paper,{children:[(0,Zt.jsx)(Ii,{title:(0,Vt.__)("First-time configuration","wordpress-seo"),description:(0,Vt.__)("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,Zt.jsx)("div",{id:"yoast-configuration",className:"yst-p-8 yst-max-w-[715px]",children:(0,Zt.jsx)(eu,{})})}),(0,Zt.jsx)(Ms,{isOpen:"blocked"===e.state,onClose:e.reset,title:(0,Vt.__)("Unsaved changes","wordpress-seo"),description:(0,Vt.__)("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,Vt.__)("No, continue editing","wordpress-seo"),discardLabel:(0,Vt.__)("Yes, leave page","wordpress-seo")})]})},su=()=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(l.Paper,{className:"yst-p-8 yst-grow",children:(0,Zt.jsxs)("header",{className:"yst-max-w-screen-sm",children:[(0,Zt.jsx)(l.Title,{children:(0,Vt.__)("Alert center","wordpress-seo")}),(0,Zt.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:(0,Vt.__)("Monitor and manage potential SEO problems affecting your site and stay informed with important notifications and updates.","wordpress-seo")})]})}),(0,Zt.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,Zt.jsx)(gi,{}),(0,Zt.jsx)(yi,{})]})]}),ru=()=>{const{setTasks:e}=(0,r.useDispatch)(To),{getTasksEndpoint:t,isPremium:s,tasks:n,nonce:a}=(0,r.useSelect)((e=>{const t=e(To);return{getTasksEndpoint:t.selectTasksEndpoints().getTasks,isPremium:t.getIsPremium(),tasks:t.selectTasks(),nonce:t.selectNonce()}}),[]),[d,u]=(0,o.useState)({error:null,isPending:!1}),[p,m]=(0,o.useState)([]);(0,o.useEffect)((()=>{const e={high:1,medium:2,low:3},t=(0,c.sortBy)((0,c.values)(n),[e=>e.isCompleted,t=>e[t.priority],e=>e.duration,e=>e.title.toLowerCase()]);m(t)}),[n]);const h=(0,c.size)(n),f=(0,c.size)((0,c.values)(n).filter((e=>e.isCompleted))),y=(0,o.useCallback)((async()=>{try{u({isPending:!0,error:null});const s=await fetch(t,{method:"GET",headers:{"Content-Type":"application/json","X-WP-Nonce":a}}),r=await s.json();if(!0!==r.success)throw new Error(r.error);e(r.tasks),u({error:null,isPending:!1})}catch(e){u({error:e,isPending:!1})}}),[t,a,u,e]);(0,o.useEffect)((()=>{(0,c.isEmpty)(n)&&y()}),[n,y]);const{error:g,isPending:v}=d;return(0,Zt.jsx)(l.Paper,{className:"yst-mb-6",children:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(l.Paper.Header,{children:[(0,Zt.jsx)(l.Title,{children:(0,Vt.__)("Task list","wordpress-seo")}),(0,Zt.jsx)("p",{className:"yst-max-w-screen-sm yst-mt-3 yst-text-tiny",children:(0,Vt.__)("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,Zt.jsxs)(l.Paper.Content,{children:[(0,Zt.jsx)(i.TasksProgressBar,{completedTasks:f,totalTasks:h,isLoading:v}),(0,Zt.jsxs)(l.Table,{className:"yst-mt-4",children:[(0,Zt.jsx)(l.Table.Head,{children:(0,Zt.jsxs)(l.Table.Row,{children:[(0,Zt.jsx)(l.Table.Header,{children:(0,Vt.__)("Task","wordpress-seo")}),(0,Zt.jsx)(l.Table.Header,{className:"yst-max-w-36",children:(0,Vt.__)("Est. duration","wordpress-seo")}),(0,Zt.jsx)(l.Table.Header,{className:"yst-max-w-44",children:(0,Vt.__)("Priority","wordpress-seo")})]})}),(0,Zt.jsxs)(l.Table.Body,{children:[(0,c.isEmpty)(n)&&v&&[{id:"task-1",title:"Complete the First-time configuration"},{id:"task-2",title:"Remove the Hello World post"},{id:"task-3",title:"Create an llms.txt file"},{id:"task-4",title:"Set search appearance templates for your posts"},{id:"task-5",title:"Set search appearance templates for your pages"}].map((e=>(0,Zt.jsx)(i.TaskRow.Loading,{...e},e.id))),g&&(0,Zt.jsx)(i.GetTasksErrorRow,{message:g}),!(0,c.isEmpty)(p)&&(0,c.values)(p).map((e=>(0,Zt.jsx)(du,{...e},e.id))),!s&&(0,Zt.jsx)(cu,{})]})]})]})]})})},nu="/alert-center",au="/first-time-configuration",ou="/task-list",iu=()=>{const e=Ao("selectIsOptInNotificationSeen",[],"wpseo_seen_llm_txt_opt_in_notification"),t=Ao("selectPreference",[],"llmTxtEnabled"),{pathname:s}=rt();return s===au||t||e||null===sessionStorage?null:(0,Zt.jsx)("div",{children:(0,Zt.jsx)(qi,{})})},lu=d.forwardRef((function(e,t){return d.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),d.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"}))})),cu=()=>{const e=(0,r.select)(To).selectLink("https://yoa.st/task-list-upsell-table-footer");return(0,Zt.jsx)(l.Table.Row,{children:(0,Zt.jsx)(l.Table.Cell,{className:"yst-bg-slate-50",colSpan:4,children:(0,Zt.jsxs)("div",{className:"yst-flex yst-justify-between lg:yst-flex-row yst-flex-col yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-justify-start yst-gap-4",children:[(0,Zt.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,Zt.jsx)(lu,{className:"yst-w-5 yst-h-5 yst-text-amber-900"})}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)(l.Title,{size:"5",as:"h3",className:"yst-text-slate-800 yst-leading-5",children:(0,Vt.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,Vt.__)("Unlock all %1$s tasks","wordpress-seo"),"Yoast SEO Premium")}),(0,Zt.jsx)("p",{className:"yst-leading-5",children:(0,Vt.__)("Get automated technical SEO & optimize content in a breeze","wordpress-seo")})]})]}),(0,Zt.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,Vt.__)("Unlock with Premium","wordpress-seo"),(0,Zt.jsx)(Qt,{className:"yst-w-4 yst-h-4 yst-text-amber-900"})]})]})})})},du=({title:e,id:t,how:s,why:n,duration:a,priority:c,isCompleted:d,callToAction:u,badge:p})=>{const[m,h]=(0,l.useToggleState)(!1),{completeTask:f,resetTaskError:y}=(0,r.useDispatch)(To),{status:g,completeTaskEndpoint:v,nonce:b,errorMessage:x}=(0,r.useSelect)((e=>{const s=e(To);return{status:s.selectTaskStatus(t),errorMessage:s.selectTaskError(t),completeTaskEndpoint:s.selectTasksEndpoints().completeTask,nonce:s.selectNonce()}}),[]),w={onClick:(0,o.useCallback)((async()=>{f(t,v,b)}),[b]),...u},S=(0,o.useCallback)((()=>{y(t),h()}),[h]);return(0,Zt.jsx)(i.TaskRow,{title:e,duration:a,priority:c,isCompleted:d,onClick:S,badge:p,children:(0,Zt.jsx)(i.TaskModal,{isOpen:m,onClose:h,title:e,duration:a,priority:c,why:n,how:s,isCompleted:d,taskId:t,callToAction:w,isLoading:g===zs,isError:g===Us,errorMessage:x})})},uu=(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)}}))]),pu=uu,mu=({children:e,id:t,hasIcon:s=!0,title:r,image:n=null,isAlertDismissed:a,onDismissed:o})=>a?null:(0,Zt.jsxs)("div",{id:t,className:"notice-yoast yoast is-dismissible yoast-webinar-dashboard yoast-general-page-notices",children:[(0,Zt.jsxs)("div",{className:"notice-yoast__container",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("div",{className:"notice-yoast__header",children:[s&&(0,Zt.jsx)("span",{className:"yoast-icon"}),(0,Zt.jsx)("h2",{className:"notice-yoast__header-heading yoast-notice-migrated-header",children:r})]}),(0,Zt.jsx)("div",{className:"notice-yoast-content",children:(0,Zt.jsx)("p",{children:e})})]}),n&&(0,Zt.jsx)(n,{height:"60"})]}),(0,Zt.jsx)("button",{type:"button",className:"notice-dismiss",onClick:o,children:(0,Zt.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */
(0,Vt.__)("Dismiss this notice.","wordpress-seo")})})]});mu.propTypes={children:Yt().node.isRequired,id:Yt().string.isRequired,hasIcon:Yt().bool,title:Yt().any.isRequired,image:Yt().elementType,isAlertDismissed:Yt().bool.isRequired,onDismissed:Yt().func.isRequired};const hu=pu(mu);var fu,yu,gu,vu,bu,xu,wu,Su,_u,Eu,ju,ku,Cu,Ru,Nu,Pu,Ou,Tu,Lu,Mu,Au,Iu,Du,Fu,zu,Uu,Bu,qu,$u,Hu,Vu,Wu,Gu,Ku,Yu,Zu,Ju,Qu,Xu,ep,tp,sp,rp,np,ap,op,ip;function lp(){return lp=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},lp.apply(this,arguments)}const cp=e=>d.createElement("svg",lp({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),fu||(fu=d.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),yu||(yu=d.createElement("path",{fill:"#fbd2a6",d:"M173.53 189.38s-35.47-5.3-41.78-11c-9.39-24.93-29.61-48-35.47-66.21-.71-2.24 3.72-11.39 3.53-15.41s-5.34-11.64-5.23-14-.09-15.27-.09-15.27l-4.75-.72s-5.13 6.07-3.56 9.87c-1.73-4.19 4.3 7.93.5 9.35 0 0-6-5.94-11.76-8.27s-19.57-3.65-19.57-3.65L43.19 73l-4.42.6L31 69.7l-2.85 5.12 7.53 5.29L40.86 92l17.19 10.2 10.2 10.56 9.86 3.56s26.49 79.67 45 92c17 11.33 37.23 15.92 37.23 15.92z"})),gu||(gu=d.createElement("path",{fill:"#a4286a",d:"M270.52 345.13c2.76-14.59 15.94-35.73 30.24-54.58 16.22-21.39 14-79.66-33.19-91.46-17.3-4.32-52.25-1-59.85-3.41C186.54 189 170 187 168 190.17c-5 10.51-7.73 27.81-5.51 36.26 1.18 4.73 3.54 5.91 20.49 13.4-5.12 15-16.35 26.3-22.86 37s7.88 27.2 7.1 33.51c-.48 3.8-4.26 21.13-7.18 34.25a149.47 149.47 0 0 0 110.3 8.66 25.66 25.66 0 0 1 .18-8.12z"})),vu||(vu=d.createElement("path",{fill:"#9a5815",d:"M206.76 66.43c-5 14.4-1.42 25.67-3.93 40.74-10 60.34-24.08 43.92-31.44 93.6 7.24-14.19 14.32-15.82 20.63-23.11-.83 3.09-10.25 13.75-8.05 34.81 9.85-8.51 6.35-8.75 11.86-8.54.36 3.25 3.53 3.22-3.59 10.53 2.52.69 17.42-14.32 20.16-12.66s0 5.72-6 7.76c2.15 2.2 30.47-3.87 43.81-14.71 4.93-4 10-13.16 13.38-18.2 7.17-10.62 12.38-24.77 17.71-36.6 8.94-19.87 15.09-39.34 16.11-61.31.53-10.44-3.41-18.44-4.41-28.86-2.57-27.8-67.63-37.26-86.24 16.55z"})),bu||(bu=d.createElement("path",{fill:"#efb17c",d:"M277.74 179.06c.62-.79 1.24-1.59 1.84-2.39-.85 2.59-1.52 3.73-1.84 2.39z"})),xu||(xu=d.createElement("path",{fill:"#fbd2a6",d:"M216.1 206.72c3.69-5.42 8.28-3.35 15.57-8.28 3.76-3.06 1.57-9.46 1.77-11.82 18.25 4.56 37.38-1.18 49.07-16 .62 5.16-2.77 22.27-.2 27 4.73 8.67 13.4 18.92 13.4 18.92-35.47-2.76-63.45 39-89.86 44.54 5.52-28.74-2.36-35.84 10.25-54.36z"})),wu||(wu=d.createElement("path",{fill:"#f6b488",d:"m235.21 167.9 53.21-25.23s-3.65 24-6.5 32.72c-64.05 62.66-46.47-7.33-46.71-7.49z"})),Su||(Su=d.createElement("path",{fill:"#fbd2a6",d:"M226.86 50.64C215 59.31 206.37 93.21 204 95.57c-19.46 19.47-3.59 41.39-3.94 51.24-.2 5.52-4.14 25.42 5.72 29.36 22.22 8.89 60-3.48 67.19-12.61 13.28-16.75 40.89-94.78 17.74-108.19-7.92-4.58-42.78-20.18-63.85-4.73z"})),_u||(_u=d.createElement("path",{fill:"#e5766c",d:"M243.69 143.66c-10.7-6.16-8.56-6.73-19.76-12.71-3.86-2.07-3.94.64-6.32 0-2.91-.79-1.39-2.74-5.37-3.48-6.52-1.21-3.67 3.63-3.15 6 1.32 6.15-8.17 17.3 3.26 21.42 12.65 4.55 21.38-9.41 31.34-11.23z"})),Eu||(Eu=d.createElement("path",{fill:"#fff",d:"M240.68 143.9c-11.49-5.53-11.65-8.17-24.64-11.69-8.6-2.32-5.53 1-5.69 4.42-.2 4.16-1.26 9.87 4.9 12.66 9 4.09 18.16-6.02 25.43-5.39zm.7-40.9c-.16 1.26-.06 4.9 5.46 8.25 11.43-4.73 16.36-2.56 17-3.33 1.48-1.76-2-8.87-7.88-9.85-5.58-.94-14.14 1.24-14.58 4.93z"})),ju||(ju=d.createElement("path",{fill:"#000001",d:"M263.53 108.19c-4.32-4.33-6.85-6.24-12.26-8.21-2.77-1-6.18.18-8.65 1.67a3.65 3.65 0 0 0-1.24 1.23h-.12a3.73 3.73 0 0 1 1-1.52 12.53 12.53 0 0 1 11.93-3c4.73 1 9.43 4.63 9.42 9.82z"})),ku||(ku=d.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),Cu||(Cu=d.createElement("path",{fill:"#fff",d:"M225.26 99.22c-.29 1-6.6 3.45-10.92 1.48-1.15-3.24-5-6.43-5.25-6.71-.5-2.86 5.55-8 10.06-6.3a10.21 10.21 0 0 1 6.11 11.53z"})),Ru||(Ru=d.createElement("path",{fill:"#000001",d:"M209.29 94.21c-.19-2.34 1.84-4.1 3.65-5.2 7-3.87 13.18 3 12.43 10h-.12c-.14-4-2.38-8.44-6.47-9.11a3.19 3.19 0 0 0-2.42.31c-1.37.85-2.38 2-3.89 2.56-1 .45-1.92.42-3 1.4h-.22z"})),Nu||(Nu=d.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),Pu||(Pu=d.createElement("path",{fill:"#efb17c",d:"M218.66 120.27a27.32 27.32 0 0 0 4.54 3.45c-2.29-.72-4.28-.69-6.32-2.27-2.53-2-3.39-5.16-.73-7.72 10.24-9.82 12.56-13.82 14.77-24.42-1 12.37-6 17.77-10.63 23.18-2.53 2.97-4.68 5.06-1.63 7.78z"})),Ou||(Ou=d.createElement("path",{fill:"#a57c52",d:"M231.22 69.91c-.67-3.41-8.78-2.83-11.06-1.93-3.48 1.39-6.08 5.22-7.13 8.53 2.9-4.3 6.74-8.12 12.46-6 1.16.42 3.18 2.35 4.48 1.85s1.03-2.2 1.25-2.45zm32.16 8.56c-2.75-1.66-12.24-5.08-12.18.82 2.56.24 5-.19 7.64.95 11.22 4.76 12.77 17.61 12.85 17.86.2-.53.1 1.26.23.7-.02.2.95-12.12-8.54-20.33z"})),Tu||(Tu=d.createElement("path",{fill:"#fbd2a6",d:"M53.43 250.73c6.29 0-.6-.17 7.34 0 1.89.05-2.38-.7 0-.69 4.54-4.2 12.48-.74 20.6-2.45 4.55.35 3.93 1.35 5.59 4.19 4.89 8.38 4.78 14.21 14 19.56 16.42 8.38 66 12.92 88.49 18.86 5.52.83 42.64-20.15 61-23.75 6.51 10.74 11.46 28.68 8.39 34.93-6.54 13.3-57.07 25.4-75.91 25.15C156.47 326.18 94 294 92.2 293c-.94-.57.7-.7-7.68 0s-10.15.72-17.47-1.4c-3-.87-4.61-1.33-6.33-3.54-2 .22-3.39.2-4.78-1-3.15-2.74-4.84-6.61-2.73-10.06h-.12c-3.35-2.48-6.54-7.69-3.08-11.72 1-1.18 6.06-1.94 7.77-2.28-1.58-.29-6.37.19-7.49-.72-3.06-2.5-4.96-11.55 3.14-11.55z"})),Lu||(Lu=d.createElement("path",{fill:"#a4286a",d:"M303.22 237.52c-9.87-11.88-41.59 8.19-47.8 12.34s-14.89 17.95-14.89 17.95c6 9.43 8.36 31 5.65 46.34l30.51-3s18-15.62 22.59-28.7 6.3-42.54 6.3-42.54"})),Mu||(Mu=d.createElement("path",{fill:"#cb9833",d:"M278.63 31.67c-6.08 0-22.91 4.07-22.93 12.91 0 11 47.9 38.38 16.14 85.85 10.21-.79 10.79-8.12 14.92-14.93-3.66 77-49.38 93.58-40.51 142.25 7.68-25.81 20.3-11.62 38.13-33.84 3.45 4.88 9 18.28-9.46 33.78 50-31.26 57.31-56.6 51.92-95C319.93 113.53 348.7 42 278.63 31.67z"})),Au||(Au=d.createElement("path",{fill:"#fbd2a6",d:"M283.64 126.83c-2.42 9.67-8 15.76-1.48 16.46A21.26 21.26 0 0 0 302 132.6c5.17-8.52 3.93-16.44-2.46-18s-13.48 2.56-15.9 12.23z"})),Iu||(Iu=d.createElement("path",{fill:"#efb17c",d:"M38 73.45c1.92 2 4.25 9.21 6.32 10.91 2.25 1.85 5.71 2.12 8.1 4.45 3.66-2 6-8.72 10-9.31-2.59 1.31-4.42 3.5-6.93 4.88-1.42.8-3 1.31-4.38 2.25-2.16-1.46-4.27-1.77-6.26-3.38-2.52-2.02-5.31-8-6.85-9.8z"})),Du||(Du=d.createElement("path",{fill:"#efb17c",d:"M39 74.4c4.83 1.1 12.52 6.44 15.89 10-3.22-1.34-14.73-6.15-15.89-10zm.62-1.5c6.71-.79 18 1.54 23.29 5.9-3.85-.2-5.42-1.48-9-2.94-4.08-1.69-8.83-2.03-14.29-2.96zm46.43 14.58c-3.72-1.32-10.52-1.13-13.22 3.52 2-1.16 1.84-2.11 4.18-1.72-3.81-4.15 8.16-.74 11.6-.24m-2.78 13.15c.56-3.29-8-7.81-10.58-9.17-6.25-3.29-12.16 1.36-19.33-4.53 5.94 6.1 14.23 2.5 19.55 5.76 3.06 1.88 8.65 6.09 9.35 9.38-.23-.4 1.29-1.44 1.01-1.44z"})),Fu||(Fu=d.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),zu||(zu=d.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),Uu||(Uu=d.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),Bu||(Bu=d.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),qu||(qu=d.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),$u||($u=d.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),Hu||(Hu=d.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),Vu||(Vu=d.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),Wu||(Wu=d.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),Gu||(Gu=d.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),Ku||(Ku=d.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),Yu||(Yu=d.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),Zu||(Zu=d.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),Ju||(Ju=d.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),Qu||(Qu=d.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),Xu||(Xu=d.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),ep||(ep=d.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),tp||(tp=d.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),sp||(sp=d.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),rp||(rp=d.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),np||(np=d.createElement("path",{fill:"#71b026",d:"M78.58 178.43C54.36 167.26 32 198.93 5 198.93c19.56 20.49 63.53 1.52 69 15.5 1.48-14.01 4.11-30.9 4.58-36z"})),ap||(ap=d.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3z"})),op||(op=d.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),ip||(ip=d.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),dp=({store:e="yoast-seo/editor",image:t=cp,url:s,...n})=>(0,r.useSelect)((t=>t(e).getIsPremium()))?null:(0,Zt.jsxs)(hu,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,Vt.__)("Join our FREE webinar for SEO success","wordpress-seo"),image:t,url:s,...n,children:[(0,Vt.__)("Feeling lost when it comes to optimizing your site for the search engines? Join our FREE webinar to gain the confidence that you need in order to start optimizing like a pro! You'll obtain the knowledge and tools to start effectively implementing SEO.","wordpress-seo")," ",(0,Zt.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",children:(0,Vt.__)("Sign up today!","wordpress-seo")})]});dp.propTypes={store:Yt().string,image:Yt().elementType,url:Yt().string.isRequired};const up=dp,pp=({idSuffix:e=""})=>{const t=(0,l.useSvgAria)(),s=Ao("selectPreference",[],"isPremium"),r=Ao("selectIsTaskListEnabled",[]);return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("header",{className:"yst-px-3 yst-mb-6 yst-space-y-6",children:(0,Zt.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,Zt.jsx)(Hs,{className:"yst-w-40",...t})})}),(0,Zt.jsxs)("ul",{className:"yst-mt-1 yst-px-0.5 yst-space-y-4",children:[(0,Zt.jsx)(rs,{to:"/",label:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(ko,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Vt.__)("Dashboard","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"}),r&&(0,Zt.jsx)(rs,{to:ou,label:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Co,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Vt.__)("Task list","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"}),(0,Zt.jsx)(rs,{to:nu,label:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Ro,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Vt.__)("Alert center","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"}),(0,Zt.jsx)(rs,{to:au,label:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(No,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Vt.__)("First-time configuration","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"})]})]})};pp.propTypes={idSuffix:Yt().string};const mp=()=>{const e=(0,r.useSelect)((e=>e(To).selectNotices()),[]);(0,o.useEffect)((()=>{!function(e){e.forEach((e=>e.originalNotice.remove()))}(e)}),[e]);const{pathname:t}=rt(),s=Ao("selectAlertToggleError",[],[]),{setAlertToggleError:n}=(0,r.useDispatch)(To);(()=>{const e=(0,r.useSelect)((e=>e(To).selectActiveAlertsCount()),[]);(0,o.useEffect)((()=>{(e=>{const t=(0,Vt.sprintf)(/* translators: Hidden accessibility text; %s: number of notifications. */
(0,Vt._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}`,Mo(r,".plugin-count",String(e)),Mo(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),Mo(s,".yoast-issues-count",String(e)),Mo(s,".screen-reader-text",t)})(e)}),[e])})();const a=(0,o.useCallback)((()=>{n(null)}),[n]),i=(0,r.useSelect)((e=>e(To).selectLinkParams()),[]),c=(0,va.addQueryArgs)("https://yoa.st/webinar-intro-settings",i);return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(l.SidebarNavigation,{activePath:t,children:[(0,Zt.jsx)(l.SidebarNavigation.Mobile,{openButtonId:"button-open-dashboard-navigation-mobile",closeButtonId:"button-close-dashboard-navigation-mobile"
/* translators: Hidden accessibility text. */,openButtonScreenReaderText:(0,Vt.__)("Open dashboard navigation","wordpress-seo")
/* translators: Hidden accessibility text. */,closeButtonScreenReaderText:(0,Vt.__)("Close dashboard navigation","wordpress-seo"),"aria-label":(0,Vt.__)("Dashboard navigation","wordpress-seo"),children:(0,Zt.jsx)(pp,{idSuffix:"-mobile"})}),(0,Zt.jsxs)("div",{className:"yst-p-4 min-[783px]:yst-p-8 yst-flex yst-gap-4",children:[(0,Zt.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,Zt.jsx)(l.SidebarNavigation.Sidebar,{children:(0,Zt.jsx)(pp,{})})}),(0,Zt.jsx)("div",{className:"yst-grow yst-max-w-page",children:(0,Zt.jsx)("div",{className:"yst-space-y-6 yst-mb-8 xl:yst-mb-0",children:(0,Zt.jsx)("main",{children:(0,Zt.jsxs)(jo,{appear:!0,show:!0,enter:"yst-transition-opacity yst-delay-100 yst-duration-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",children:[t!==au&&(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)(up,{store:To,url:c,image:null}),e.length>0&&(0,Zt.jsxs)("div",{className:e.filter((e=>!e.isDismissed)).length>0?"yst-space-y-3 yoast-general-page-notices":"yst-hidden",children:[" ",e.map(((e,t)=>(0,Zt.jsx)(fi,{id:e.id||"yoast-general-page-notice-"+t,title:e.header,isDismissable:e.isDismissable,className:e.isDismissed?"yst-hidden":"",children:e.content},t)))]})]}),(0,Zt.jsx)(St,{})]},t)})})})]})]}),(0,Zt.jsxs)(l.Notifications,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all yst-start-48",position:"bottom-left",children:[(0,Zt.jsx)(iu,{}),s&&(0,Zt.jsx)(l.Notifications.Notification,{id:"toggle-alert-error",title:(0,Vt.__)("Something went wrong","wordpress-seo"),variant:"error",dismissScreenReaderLabel:(0,Vt.__)("Dismiss","wordpress-seo"),size:"large",autoDismiss:4e3,onDismiss:a,children:"error"===s.type?(0,Vt.__)("This problem can't be hidden at this time. Please try again later.","wordpress-seo"):(0,Vt.__)("This notification can't be hidden at this time. Please try again later.","wordpress-seo")})]})]})},hp=()=>{const e=Ao("selectPreference",[],"isPremium"),t=Ao("selectUpsellSettingsAsProps"),{isPromotionActive:s}=(0,r.useSelect)(To),n=Ao("selectLink",[],"https://yoa.st/17h"),a=Ao("selectLink",[],"https://yoa.st/admin-footer-upsell-woocommerce"),o=Ao("selectPreference",[],"isWooCommerceActive");return e?null:(0,Zt.jsx)(Os,{premiumLink:o?a:n,premiumUpsellConfig:t,isPromotionActive:s,isWooCommerceActive:o})},fp=({contentClassName:e="",children:t=null})=>{const s=Ao("selectPreference",[],"isPremium"),n=Ao("selectLink",[],"https://yoa.st/jj"),a=Ao("selectLink",[],"https://yoa.st/admin-sidebar-upsell-woocommerce"),o=Ao("selectUpsellSettingsAsProps"),i=Ao("selectLink",[],"https://yoa.st/3t6"),{isPromotionActive:l}=(0,r.useSelect)(To),c=Ao("selectPreference",[],"isWooCommerceActive");return(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-6 xl:yst-flex-row yst-flex-col",children:[(0,Zt.jsx)("div",{className:Ss()("yst-@container yst-flex yst-flex-grow yst-flex-col",e),children:t}),!s&&(0,Zt.jsx)("div",{className:"yst-min-w-[16rem] xl:yst-max-w-[16rem]",children:(0,Zt.jsx)("div",{className:"yst-sticky yst-top-16",children:(0,Zt.jsx)(Ts,{premiumLink:c?a:n,premiumUpsellConfig:o,academyLink:i,isPromotionActive:l,isWooCommerceActive:c})})})]})},yp=window.yoast.externals.redux;function gp({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}const vp="adminNotices",bp=(0,ia.createSlice)({name:vp,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,a)=>({originalNotice:e,id:t[a],header:s[a].outerHTML,content:r[a].outerHTML,isDismissable:n[a],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)}))}}}),xp=bp.getInitialState,wp={selectNotices:e=>(0,c.get)(e,`${vp}.notices`,[])},Sp=bp.actions,_p=bp.reducer,Ep="alertCenter",jp="toggleAlertVisibility",kp=(0,ia.createSlice)({name:Ep,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(`${jp}/${Ds}`,((e,{payload:{id:t}})=>{kp.caseReducers.toggleAlert(e,t)})),e.addCase(`${jp}/${Fs}`,((e,{payload:{id:t}})=>{kp.caseReducers.setAlertToggleError(e,t)}))}}),Cp=kp.getInitialState,Rp=e=>(0,c.get)(e,`${Ep}.alerts`,[]),Np=(0,ia.createSelector)([Rp],(e=>e.filter((e=>!e.dismissed)))),Pp={selectActiveProblems:(0,ia.createSelector)([Np],(e=>e.filter((e=>"error"===e.type)))),selectDismissedProblems:(0,ia.createSelector)([Rp],(e=>e.filter((e=>"error"===e.type&&e.dismissed)))),selectActiveNotifications:(0,ia.createSelector)([Np],(e=>e.filter((e=>"warning"===e.type)))),selectDismissedNotifications:(0,ia.createSelector)([Rp],(e=>e.filter((e=>"warning"===e.type&&e.dismissed)))),selectAlertToggleError:e=>(0,c.get)(e,`${Ep}.alertToggleError`,null),selectResolveSuccessMessage:e=>(0,c.get)(e,`${Ep}.resolveSuccessMessage`,null),selectAlert:(0,ia.createSelector)([Rp,(e,t)=>t],((e,t)=>e.find((e=>e.id===t)))),selectActiveAlertsCount:(0,ia.createSelector)([Np],(e=>e.length))},Op={...kp.actions,toggleAlertStatus:function*(e,t,s=!1){yield{type:`${jp}/${Is}`};try{return yield{type:jp,payload:{id:e,nonce:t,hidden:s}},{type:`${jp}/${Ds}`,payload:{id:e}}}catch(t){return{type:`${jp}/${Fs}`,payload:{id:e}}}}},Tp={[jp]: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)(To).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")}},Lp=kp.reducer,Mp=()=>({...(0,c.get)(window,"wpseoScriptData.preferences",{}),ajaxUrl:(0,c.get)(window,"ajaxurl","")}),Ap=(0,ia.createSlice)({name:"preferences",initialState:Mp(),reducers:{}}),Ip={selectPreference:(e,t,s={})=>(0,c.get)(e,`preferences.${t}`,s),selectPreferences:e=>(0,c.get)(e,"preferences",{})};Ip.selectUpsellSettingsAsProps=(0,ia.createSelector)([e=>Ip.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 Dp=Ap.actions,Fp=Ap.reducer,zp="optInNotification",Up="setOptInNotificationSeen",Bp=(0,ia.createSlice)({name:zp,initialState:{seen:{}},reducers:{hideOptInNotification(e,t){const s=t.payload;e.seen[s]=!0}}}),qp=Bp.getInitialState,$p={selectIsOptInNotificationSeen:(e,t)=>(0,c.get)(e,[zp,"seen",t],!1)},Hp={...Bp.actions,setOptInNotificationSeen:function*(e){yield{type:`${Up}/${Is}`};try{return yield{type:Up,payload:e},{type:`${Up}/${Ds}`,payload:e}}catch(t){return console.error("Error setting opt-in notification as seen:",t),{type:`${Up}/${Fs}`,payload:e}}}},Vp={[Up]:async({payload:e})=>{await fa()({path:"yoast/v1/seen-opt-in-notification",method:"POST",data:{key:e}})}},Wp=Bp.reducer,{currentPromotions:Gp,dismissedAlerts:Kp,isPremium:Yp}=yp.reducers,{isAlertDismissed:Zp,getIsPremium:Jp,isPromotionActive:Qp}=yp.selectors,{dismissAlert:Xp,setCurrentPromotions:em,setDismissedAlerts:tm,setIsPremium:sm}=yp.actions;a()((()=>{var s,n;const a=document.getElementById("yoast-seo-general");if(!a)return;const d=(0,c.get)(window,"wpseoScriptData.dashboard.nonce","");(({initialState:t={}}={})=>{(0,r.register)((({initialState:t})=>(0,r.createReduxStore)(To,{actions:{...pa,..._a,...Dp,...Op,dismissAlert:Xp,setCurrentPromotions:em,setDismissedAlerts:tm,setIsPremium:sm,...Sp,...Hp,...i.taskListActions},selectors:{...ua,...Sa,...Ip,...Pp,isAlertDismissed:Zp,getIsPremium:Jp,isPromotionActive:Qp,...wp,...$p,...i.taskListSelectors},initialState:(0,c.merge)({},{[la]:da(),[ba]:wa(),preferences:Mp(),[Ep]:Cp(),currentPromotions:{promotions:[]},[vp]:xp(),[zp]:qp(),[i.TASK_LIST_NAME]:(0,i.getInitialTaskListState)()},t),reducer:(0,r.combineReducers)({[la]:ma,[ba]:Ea,preferences:Fp,[Ep]:Lp,currentPromotions:Gp,dismissedAlerts:Kp,isPremium:Yp,[vp]:_p,[zp]:Wp,[i.TASK_LIST_NAME]:i.taskListReducer}),controls:{...Tp,...e,...Vp,...i.taskListControls}}))({initialState:t}))})({initialState:{[la]:(0,c.get)(window,"wpseoScriptData.adminUrl",""),[ba]:(0,c.get)(window,"wpseoScriptData.linkParams",{}),[Ep]:{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),[vp]:{resolvedNotices:[]},[zp]:{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)(To).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)(To).selectLink("https://yoa.st/dashboard-learn-more"),errorSupport:(0,r.select)(To).selectAdminLink("?page=wpseo_page_support"),siteKitLearnMore:(0,r.select)(To).selectLink("https://yoa.st/dashboard-site-kit-learn-more"),siteKitConsentLearnMore:(0,r.select)(To).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 kn({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})},N=Object.entries(j.widgetsCacheTtl).reduce(((e,[t,s])=>(e[t]=new i.RemoteCachedDataProvider({headers:v},j.storagePrefix,j.yoastVersion,s.ttl),e)),{}),P={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")},O={setupWidgetDataTracker:new On(P,k)},T=new oa(C,k,N,R,O);C.isSiteKitConnectionCompleted()&&E.isVersionSupported&&C.setSiteKitConfigurationDismissed(!0);const L=(0,r.select)(To).selectIsTaskListEnabled(),M=(A=jt((0,Zt.jsxs)(_t,{path:"/",element:(0,Zt.jsx)(mp,{}),errorElement:(0,Zt.jsx)(vi,{className:"yst-m-8"}),children:[(0,Zt.jsx)(_t,{path:"/",element:(0,Zt.jsxs)(fp,{children:[(0,Zt.jsx)(pn,{widgetFactory:T,userName:m,features:f,links:_,sitekitFeatureEnabled:E.isFeatureEnabled,dataProvider:C}),(0,Zt.jsx)(hp,{})]}),errorElement:(0,Zt.jsx)(vi,{})}),L&&(0,Zt.jsx)(_t,{path:ou,element:(0,Zt.jsxs)(fp,{children:[(0,Zt.jsx)(ru,{}),(0,Zt.jsx)(hp,{})]}),errorElement:(0,Zt.jsx)(vi,{})}),(0,Zt.jsx)(_t,{path:nu,element:(0,Zt.jsxs)(fp,{children:[(0,Zt.jsx)(su,{}),(0,Zt.jsx)(hp,{})]}),errorElement:(0,Zt.jsx)(vi,{})}),(0,Zt.jsx)(_t,{path:au,element:(0,Zt.jsx)(tu,{}),errorElement:(0,Zt.jsx)(vi,{})}),(0,Zt.jsx)(_t,{path:"*",element:(0,Zt.jsx)(wt,{to:"/",replace:!0})})]})),de({basename:void 0,future:Ct({},void 0,{v7_prependBasename:!0}),history:(I={window:void 0},void 0===I&&(I={}),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)+")")}),I)),hydrationData:Nt(),routes:A,mapRouteProperties:kt,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize());var A,I;(0,o.createRoot)(a).render((0,Zt.jsx)(l.Root,{context:{isRtl:u},children:(0,Zt.jsx)(t.SlotFillProvider,{children:(0,Zt.jsx)(Dt,{router:M})})}))}))})()})();