File: //proc/self/cwd/wp-content/plugins/wordpress-seo-premium/assets/js/dist/workouts-2760.min.js
(()=>{"use strict";var e={396:(e,t,n)=>{var r=n(261),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||o}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var o=h(n);o&&o!==f&&e(t,o,r)}var s=c(n);d&&(s=s.concat(d(n)));for(var a=l(t),m=l(n),v=0;v<s.length;++v){var b=s[v];if(!(i[b]||r&&r[b]||m&&m[b]||a&&a[b])){var g=p(n,b);try{u(t,b,g)}catch(e){}}}}return t}},505:(e,t)=>{var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,b=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case a:case s:case h:return e;default:switch(e=e&&e.$$typeof){case u:case p:case v:case m:case l:return e;default:return t}}case o:return t}}}function k(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=v,t.Memo=m,t.Portal=o,t.Profiler=a,t.StrictMode=s,t.Suspense=h,t.isAsyncMode=function(e){return k(e)||w(e)===c},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===v},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===a||e===s||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===g||e.$$typeof===y||e.$$typeof===x||e.$$typeof===b)},t.typeOf=w},261:(e,t,n)=>{e.exports=n(505)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e=window.wp.domReady;var t=n.n(e);const r=window.yoast.componentsNew,o=window.yoast.propTypes;var i=n.n(o);const s=window.wp.element,a=window.wp.data,l=window.wp.compose,u=window.wp.i18n,c=window.ReactJSXRuntime;function d({onClick:e,isFinished:t}){const n=t?(0,u.__)("Revise this step","wordpress-seo-premium"):(0,u.__)("I've finished this step","wordpress-seo-premium");return(0,c.jsx)(r.Button,{onClick:e,children:n})}function p(){return(0,c.jsx)("span",{className:"dashicons dashicons-external",style:{textDecoration:"none",fontSize:"12px",width:"16px",height:"0",lineHeight:"1.4"}})}d.propTypes={isFinished:i().bool.isRequired,onClick:i().func.isRequired};const h=(e,t)=>{try{return(0,s.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}};function f({url:e}){return(0,c.jsx)(r.Alert,{type:"warning",children:h((0,u.sprintf)(/* translators: %1$s expands to an opening anchor tag. %2$s expands to a closing anchor tag */ /* translators: %1$s expands to an opening anchor tag. %2$s expands to a closing anchor tag */
(0,u.__)("Please note: For this workout to work well, you need to run the SEO data optimization tool. Admins can run this under %1$sSEO > Tools%2$s.","wordpress-seo-premium"),"<a>","</a>"),{a:(0,c.jsx)("a",{href:e})})})}function m({url:e}){return(0,c.jsx)(r.Alert,{type:"warning",children:h((0,u.sprintf)(/* translators: %1$s expands to an opening anchor tag. %2$s expands to a closing anchor tag */ /* translators: %1$s expands to an opening anchor tag. %2$s expands to a closing anchor tag */
(0,u.__)("Please note: For this workout to work well and to offer you linking suggestions, you need to run the SEO data optimization tool. Admins can run this under %1$sSEO > Tools%2$s.","wordpress-seo-premium"),"<a>","</a>"),{a:(0,c.jsx)("a",{href:e})})})}f.propTypes={url:i().string.isRequired},m.propTypes={url:i().string.isRequired};const v=window.yoast.analysis,b=window.wp.apiFetch;var g=n.n(b);const y=window.yoast.styleGuide;function x(e){return jQuery("<div>").html(e).text()}function w(e){const t={icon:"circle",color:y.colors.$color_grey_disabled};switch(e){case"loading":t.color=y.colors.$color_green_medium_light;break;case"good":t.color=y.colors.$color_green_medium;break;case"ok":t.color=y.colors.$color_ok;break;case"bad":t.color=y.colors.$color_red}return t}async function k(e,t){try{const n=await g()({path:"yoast/v1/workouts/link_suggestions?indexableId="+e.id}),r=await n.json;return t(r),r}catch(e){return t([]),console.error(e.message),!1}}async function j(e){try{const t=await g()({path:"yoast/v1/workouts/cornerstone_data"}),n=await t.json;return e(n),n}catch(t){return e([]),console.error(t.message),!1}}async function _(e,t){try{const n=await g()({path:"yoast/v1/workouts/remove_redirect",method:"POST",data:{object_id:e.object_id,object_type:e.object_type,object_sub_type:e.object_sub_type,permalink:e.permalink,redirect_url:t}});return await n.json}catch(e){return console.error(e.message),!1}}function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O.apply(this,arguments)}const C=window.React;function S(e){return S="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},S(e)}function I(e){var t=function(e,t){if("object"!=S(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==S(t)?t:String(t)}function R(e,t,n){return(t=I(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I(r.key),r)}}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function V(e){return V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},V(e)}function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=V(e);if(t){var o=V(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function D(e,t){if(e){if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}function A(e){return function(e){if(Array.isArray(e))return F(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||D(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var N=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),$=Math.abs,H=String.fromCharCode,W=Object.assign;function B(e){return e.trim()}function q(e,t,n){return e.replace(t,n)}function z(e,t){return e.indexOf(t)}function U(e,t){return 0|e.charCodeAt(t)}function Y(e,t,n){return e.slice(t,n)}function G(e){return e.length}function X(e){return e.length}function K(e,t){return t.push(e),e}var J=1,Z=1,Q=0,ee=0,te=0,ne="";function re(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:J,column:Z,length:s,return:""}}function oe(e,t){return W(re("",null,null,"",null,null,0),e,{length:-e.length},t)}function ie(){return te=ee>0?U(ne,--ee):0,Z--,10===te&&(Z=1,J--),te}function se(){return te=ee<Q?U(ne,ee++):0,Z++,10===te&&(Z=1,J++),te}function ae(){return U(ne,ee)}function le(){return ee}function ue(e,t){return Y(ne,e,t)}function ce(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function de(e){return J=Z=1,Q=G(ne=e),ee=0,[]}function pe(e){return ne="",e}function he(e){return B(ue(ee-1,ve(91===e?e+2:40===e?e+1:e)))}function fe(e){for(;(te=ae())&&te<33;)se();return ce(e)>2||ce(te)>3?"":" "}function me(e,t){for(;--t&&se()&&!(te<48||te>102||te>57&&te<65||te>70&&te<97););return ue(e,le()+(t<6&&32==ae()&&32==se()))}function ve(e){for(;se();)switch(te){case e:return ee;case 34:case 39:34!==e&&39!==e&&ve(te);break;case 40:41===e&&ve(e);break;case 92:se()}return ee}function be(e,t){for(;se()&&e+te!==57&&(e+te!==84||47!==ae()););return"/*"+ue(t,ee-1)+"*"+H(47===e?e:se())}function ge(e){for(;!ce(ae());)se();return ue(e,ee)}var ye="-ms-",xe="-moz-",we="-webkit-",ke="comm",je="rule",_e="decl",Oe="@keyframes";function Ce(e,t){for(var n="",r=X(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Se(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case _e:return e.return=e.return||e.value;case ke:return"";case Oe:return e.return=e.value+"{"+Ce(e.children,r)+"}";case je:e.value=e.props.join(",")}return G(n=Ce(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ie(e){return pe(Re("",null,null,null,[""],e=de(e),0,[0],e))}function Re(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,p=0,h=0,f=0,m=1,v=1,b=1,g=0,y="",x=o,w=i,k=r,j=y;v;)switch(f=g,g=se()){case 40:if(108!=f&&58==U(j,d-1)){-1!=z(j+=q(he(g),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:j+=he(g);break;case 9:case 10:case 13:case 32:j+=fe(f);break;case 92:j+=me(le()-1,7);continue;case 47:switch(ae()){case 42:case 47:K(Me(be(se(),le()),t,n),l);break;default:j+="/"}break;case 123*m:a[u++]=G(j)*b;case 125*m:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+c:-1==b&&(j=q(j,/\f/g,"")),h>0&&G(j)-d&&K(h>32?Pe(j+";",r,n,d-1):Pe(q(j," ","")+";",r,n,d-2),l);break;case 59:j+=";";default:if(K(k=Ee(j,t,n,u,c,o,a,y,x=[],w=[],d),i),123===g)if(0===c)Re(j,t,k,k,x,i,d,a,w);else switch(99===p&&110===U(j,3)?100:p){case 100:case 108:case 109:case 115:Re(e,k,k,r&&K(Ee(e,k,k,0,0,o,a,y,o,x=[],d),w),o,w,d,a,r?x:w);break;default:Re(j,k,k,k,[""],w,0,a,w)}}u=c=h=0,m=b=1,y=j="",d=s;break;case 58:d=1+G(j),h=f;default:if(m<1)if(123==g)--m;else if(125==g&&0==m++&&125==ie())continue;switch(j+=H(g),g*m){case 38:b=c>0?1:(j+="\f",-1);break;case 44:a[u++]=(G(j)-1)*b,b=1;break;case 64:45===ae()&&(j+=he(se())),p=ae(),c=d=G(y=j+=ge(le())),g++;break;case 45:45===f&&2==G(j)&&(m=0)}}return i}function Ee(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,p=0===o?i:[""],h=X(p),f=0,m=0,v=0;f<r;++f)for(var b=0,g=Y(e,d+1,d=$(m=s[f])),y=e;b<h;++b)(y=B(m>0?p[b]+" "+g:q(g,/&\f/g,p[b])))&&(l[v++]=y);return re(e,t,n,0===o?je:a,l,u,c)}function Me(e,t,n){return re(e,t,n,ke,H(te),Y(e,2,-2),0)}function Pe(e,t,n,r){return re(e,t,n,_e,Y(e,0,r),Y(e,r+1,-1),r)}var Le=function(e,t,n){for(var r=0,o=0;r=o,o=ae(),38===r&&12===o&&(t[n]=1),!ce(o);)se();return ue(e,ee)},Ve=new WeakMap,Te=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ve.get(n))&&!r){Ve.set(e,!0);for(var o=[],i=function(e,t){return pe(function(e,t){var n=-1,r=44;do{switch(ce(r)){case 0:38===r&&12===ae()&&(t[n]=1),e[n]+=Le(ee-1,t,n);break;case 2:e[n]+=he(r);break;case 4:if(44===r){e[++n]=58===ae()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=H(r)}}while(r=se());return e}(de(e),t))}(t,o),s=n.props,a=0,l=0;a<i.length;a++)for(var u=0;u<s.length;u++,l++)e.props[l]=o[a]?i[a].replace(/&\f/g,s[u]):s[u]+" "+i[a]}}},Fe=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function De(e,t){switch(function(e,t){return 45^U(e,0)?(((t<<2^U(e,0))<<2^U(e,1))<<2^U(e,2))<<2^U(e,3):0}(e,t)){case 5103:return we+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return we+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return we+e+xe+e+ye+e+e;case 6828:case 4268:return we+e+ye+e+e;case 6165:return we+e+ye+"flex-"+e+e;case 5187:return we+e+q(e,/(\w+).+(:[^]+)/,we+"box-$1$2"+ye+"flex-$1$2")+e;case 5443:return we+e+ye+"flex-item-"+q(e,/flex-|-self/,"")+e;case 4675:return we+e+ye+"flex-line-pack"+q(e,/align-content|flex-|-self/,"")+e;case 5548:return we+e+ye+q(e,"shrink","negative")+e;case 5292:return we+e+ye+q(e,"basis","preferred-size")+e;case 6060:return we+"box-"+q(e,"-grow","")+we+e+ye+q(e,"grow","positive")+e;case 4554:return we+q(e,/([^-])(transform)/g,"$1"+we+"$2")+e;case 6187:return q(q(q(e,/(zoom-|grab)/,we+"$1"),/(image-set)/,we+"$1"),e,"")+e;case 5495:case 3959:return q(e,/(image-set\([^]*)/,we+"$1$`$1");case 4968:return q(q(e,/(.+:)(flex-)?(.*)/,we+"box-pack:$3"+ye+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+we+e+e;case 4095:case 3583:case 4068:case 2532:return q(e,/(.+)-inline(.+)/,we+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(G(e)-1-t>6)switch(U(e,t+1)){case 109:if(45!==U(e,t+4))break;case 102:return q(e,/(.+:)(.+)-([^]+)/,"$1"+we+"$2-$3$1"+xe+(108==U(e,t+3)?"$3":"$2-$3"))+e;case 115:return~z(e,"stretch")?De(q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==U(e,t+1))break;case 6444:switch(U(e,G(e)-3-(~z(e,"!important")&&10))){case 107:return q(e,":",":"+we)+e;case 101:return q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+we+(45===U(e,14)?"inline-":"")+"box$3$1"+we+"$2$3$1"+ye+"$2box$3")+e}break;case 5936:switch(U(e,t+11)){case 114:return we+e+ye+q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return we+e+ye+q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return we+e+ye+q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return we+e+ye+e+e}return e}var Ae=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case _e:e.return=De(e.value,e.length);break;case Oe:return Ce([oe(e,{value:q(e.value,"@","@"+we)})],r);case je:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ce([oe(e,{props:[q(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ce([oe(e,{props:[q(t,/:(plac\w+)/,":"+we+"input-$1")]}),oe(e,{props:[q(t,/:(plac\w+)/,":-moz-$1")]}),oe(e,{props:[q(t,/:(plac\w+)/,ye+"input-$1")]})],r)}return""}))}}],Ne=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Ae,s={},a=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;a.push(e)}));var l,u,c,d,p=[Se,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(u=[Te,Fe].concat(i,p),c=X(u),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=u[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,Ce(Ie(e?e+"{"+t.styles+"}":t.styles),h),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new N({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return f.sheet.hydrate(a),f},$e=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},He={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function We(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Be=/[A-Z]|^ms/g,qe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ze=function(e){return 45===e.charCodeAt(1)},Ue=function(e){return null!=e&&"boolean"!=typeof e},Ye=We((function(e){return ze(e)?e:e.replace(Be,"-$&").toLowerCase()})),Ge=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(qe,(function(e,t,n){return Ke={name:t,styles:n,next:Ke},t}))}return 1===He[e]||ze(e)||"number"!=typeof t||0===t?t:t+"px"};function Xe(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ke={name:n.name,styles:n.styles,next:Ke},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ke={name:r.name,styles:r.styles,next:Ke},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Xe(e,t,n[o])+";";else for(var i in n){var s=n[i];if("object"!=typeof s)null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":Ue(s)&&(r+=Ye(i)+":"+Ge(i,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=Xe(e,t,s);switch(i){case"animation":case"animationName":r+=Ye(i)+":"+a+";";break;default:r+=i+"{"+a+"}"}}else for(var l=0;l<s.length;l++)Ue(s[l])&&(r+=Ye(i)+":"+Ge(i,s[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Ke,i=n(e);return Ke=o,Xe(e,t,i)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var Ke,Je=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ze=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Ke=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=Xe(n,t,i)):o+=i[0];for(var s=1;s<e.length;s++)o+=Xe(n,t,e[s]),r&&(o+=i[s]);Je.lastIndex=0;for(var a,l="";null!==(a=Je.exec(o));)l+="-"+a[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:Ke}},Qe=!!C.useInsertionEffect&&C.useInsertionEffect,et=Qe||function(e){return e()},tt=(Qe||C.useLayoutEffect,{}.hasOwnProperty),nt=C.createContext("undefined"!=typeof HTMLElement?Ne({key:"css"}):null);nt.Provider;var rt=function(e){return(0,C.forwardRef)((function(t,n){var r=(0,C.useContext)(nt);return e(t,r,n)}))},ot=C.createContext({}),it="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",st=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return $e(t,n,r),et((function(){return function(e,t,n){$e(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},at=rt((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[it],i=[r],s="";"string"==typeof e.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,i,e.className):null!=e.className&&(s=e.className+" ");var a=Ze(i,void 0,C.useContext(ot));s+=t.key+"-"+a.name;var l={};for(var u in e)tt.call(e,u)&&"css"!==u&&u!==it&&(l[u]=e[u]);return l.ref=n,l.className=s,C.createElement(C.Fragment,null,C.createElement(st,{cache:t,serialized:a,isStringTag:"string"==typeof o}),C.createElement(o,l))})),lt=at,ut=(n(396),function(e,t){var n=arguments;if(null==t||!tt.call(t,"css"))return C.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=lt,o[1]=function(e,t){var n={};for(var r in t)tt.call(t,r)&&(n[r]=t[r]);return n[it]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return C.createElement.apply(null,o)});function ct(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ze(t)}function dt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,s,a=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}(e,t)||D(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const ht=window.ReactDOM,ft=Math.min,mt=Math.max,vt=Math.round,bt=Math.floor,gt=e=>({x:e,y:e});function yt(e){return kt(e)?(e.nodeName||"").toLowerCase():"#document"}function xt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function wt(e){var t;return null==(t=(kt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function kt(e){return e instanceof Node||e instanceof xt(e).Node}function jt(e){return e instanceof Element||e instanceof xt(e).Element}function _t(e){return e instanceof HTMLElement||e instanceof xt(e).HTMLElement}function Ot(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof xt(e).ShadowRoot)}function Ct(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=St(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function St(e){return xt(e).getComputedStyle(e)}function It(e){const t=function(e){if("html"===yt(e))return e;const t=e.assignedSlot||e.parentNode||Ot(e)&&e.host||wt(e);return Ot(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes(yt(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:_t(t)&&Ct(t)?t:It(t)}function Rt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=It(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=xt(o);return i?t.concat(s,s.visualViewport||[],Ct(o)?o:[],s.frameElement&&n?Rt(s.frameElement):[]):t.concat(o,Rt(o,[],n))}function Et(e){return jt(e)?e:e.contextElement}function Mt(e){const t=Et(e);if(!_t(t))return gt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=St(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_t(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=vt(n)!==i||vt(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}(t);let s=(i?vt(n.width):n.width)/r,a=(i?vt(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Pt=gt(0);function Lt(e){const t=xt(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Pt}function Vt(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Et(e);let s=gt(1);t&&(r?jt(r)&&(s=Mt(r)):s=Mt(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==xt(e))&&t}(i,n,r)?Lt(i):gt(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,c=o.width/s.x,d=o.height/s.y;if(i){const e=xt(i),t=r&&jt(r)?xt(r):r;let n=e.frameElement;for(;n&&r&&t!==e;){const e=Mt(n),t=n.getBoundingClientRect(),r=St(n),o=t.left+(n.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(n.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=o,u+=i,n=xt(n).frameElement}}return p={width:c,height:d,x:l,y:u},{...p,top:p.y,left:p.x,right:p.x+p.width,bottom:p.y+p.height};var p}var Tt=C.useLayoutEffect,Ft=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Dt=function(){};function At(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Nt(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&i.push("".concat(At(e,s)));return i.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var $t=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===S(e)&&null!==e?[e]:[];var t},Ht=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,M({},pt(e,Ft))},Wt=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,s=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),s)}};function Bt(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function qt(e){return Bt(e)?window.pageYOffset:e.scrollTop}function zt(e,t){Bt(e)?window.scrollTo(0,t):e.scrollTop=t}function Ut(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Dt,o=qt(e),i=t-o,s=0;!function t(){var a,l=i*((a=(a=s+=10)/n-1)*a*a+1)+o;zt(e,l),s<n?window.requestAnimationFrame(t):r(e)}()}function Yt(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?zt(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&zt(e,Math.max(t.offsetTop-o,0))}function Gt(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Xt=!1,Kt={get passive(){return Xt=!0}},Jt="undefined"!=typeof window?window:{};Jt.addEventListener&&Jt.removeEventListener&&(Jt.addEventListener("p",Dt,Kt),Jt.removeEventListener("p",Dt,!1));var Zt=Xt;function Qt(e){return null!=e}function en(e,t,n){return e?t:n}var tn=["children","innerProps"],nn=["children","innerProps"];var rn,on,sn,an=function(e){return"auto"===e?"bottom":e},ln=(0,C.createContext)(null),un=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,s=e.menuShouldScrollIntoView,a=e.theme,l=((0,C.useContext)(ln)||{}).setPortalPlacement,u=(0,C.useRef)(null),c=dt((0,C.useState)(r),2),d=c[0],p=c[1],h=dt((0,C.useState)(null),2),f=h[0],m=h[1],v=a.spacing.controlHeight;return Tt((function(){var e=u.current;if(e){var t="fixed"===i,a=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),u={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return u;var c,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),h=p.bottom,f=p.height,m=p.top,v=n.offsetParent.getBoundingClientRect().top,b=s||Bt(c=l)?window.innerHeight:c.clientHeight,g=qt(l),y=parseInt(getComputedStyle(n).marginBottom,10),x=parseInt(getComputedStyle(n).marginTop,10),w=v-x,k=b-m,j=w+g,_=d-g-m,O=h-b+g+y,C=g+m-x,S=160;switch(o){case"auto":case"bottom":if(k>=f)return{placement:"bottom",maxHeight:t};if(_>=f&&!s)return i&&Ut(l,O,S),{placement:"bottom",maxHeight:t};if(!s&&_>=r||s&&k>=r)return i&&Ut(l,O,S),{placement:"bottom",maxHeight:s?k-y:_-y};if("auto"===o||s){var I=t,R=s?w:j;return R>=r&&(I=Math.min(R-y-a,t)),{placement:"top",maxHeight:I}}if("bottom"===o)return i&&zt(l,O),{placement:"bottom",maxHeight:t};break;case"top":if(w>=f)return{placement:"top",maxHeight:t};if(j>=f&&!s)return i&&Ut(l,C,S),{placement:"top",maxHeight:t};if(!s&&j>=r||s&&w>=r){var E=t;return(!s&&j>=r||s&&w>=r)&&(E=s?w-x:j-x),i&&Ut(l,C,S),{placement:"top",maxHeight:E}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return u}({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:v});p(a.maxHeight),m(a.placement),null==l||l(a.placement)}}),[r,o,i,s,n,l,v]),t({ref:u,placerProps:M(M({},e),{},{placement:f||an(o),maxHeight:d})})},cn=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return M({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},dn=cn,pn=cn,hn=["size"],fn=["innerProps","isRtl","size"],mn={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},vn=function(e){var t=e.size,n=pt(e,hn);return ut("svg",O({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:mn},n))},bn=function(e){return ut(vn,O({size:20},e),ut("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},gn=function(e){return ut(vn,O({size:20},e),ut("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},yn=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return M({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},xn=yn,wn=yn,kn=function(){var e=ct.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(rn||(on=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],sn||(sn=on.slice(0)),rn=Object.freeze(Object.defineProperties(on,{raw:{value:Object.freeze(sn)}})))),jn=function(e){var t=e.delay,n=e.offset;return ut("span",{css:ct({animation:"".concat(kn," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},On=["data"],Cn=["innerRef","isDisabled","isHidden","inputClassName"],Sn={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},In={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":M({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Sn)},Rn=function(e){return M({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Sn)},En=function(e){var t=e.children,n=e.innerProps;return ut("div",n,t)},Mn={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return ut("div",O({},Wt(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||ut(bn,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,s=e.menuIsOpen;return ut("div",O({ref:o},Wt(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":s}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return ut("div",O({},Wt(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||ut(gn,null))},DownChevron:gn,CrossIcon:bn,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,s=e.headingProps,a=e.innerProps,l=e.label,u=e.theme,c=e.selectProps;return ut("div",O({},Wt(e,"group",{group:!0}),a),ut(i,O({},s,{selectProps:c,theme:u,getStyles:r,getClassNames:o,cx:n}),l),ut("div",null,t))},GroupHeading:function(e){var t=Ht(e);t.data;var n=pt(t,On);return ut("div",O({},Wt(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return ut("div",O({},Wt(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return ut("span",O({},t,Wt(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Ht(e),o=r.innerRef,i=r.isDisabled,s=r.isHidden,a=r.inputClassName,l=pt(r,Cn);return ut("div",O({},Wt(e,"input",{"input-container":!0}),{"data-value":n||""}),ut("input",O({className:t({input:!0},a),ref:o,style:Rn(s),disabled:i},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=pt(e,fn);return ut("div",O({},Wt(M(M({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),ut(jn,{delay:0,offset:n}),ut(jn,{delay:160,offset:!0}),ut(jn,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return ut("div",O({},Wt(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return ut("div",O({},Wt(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,s=e.menuPosition,a=(0,C.useRef)(null),l=(0,C.useRef)(null),u=dt((0,C.useState)(an(i)),2),c=u[0],d=u[1],p=(0,C.useMemo)((function(){return{setPortalPlacement:d}}),[]),h=dt((0,C.useState)(null),2),f=h[0],m=h[1],v=(0,C.useCallback)((function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===s?0:window.pageYOffset,n=e[c]+t;n===(null==f?void 0:f.offset)&&e.left===(null==f?void 0:f.rect.left)&&e.width===(null==f?void 0:f.rect.width)||m({offset:n,rect:e})}}),[r,s,c,null==f?void 0:f.offset,null==f?void 0:f.rect.left,null==f?void 0:f.rect.width]);Tt((function(){v()}),[v]);var b=(0,C.useCallback)((function(){"function"==typeof l.current&&(l.current(),l.current=null),r&&a.current&&(l.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=Et(e),c=o||i?[...u?Rt(u):[],...Rt(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=u&&a?function(e,t){let n,r=null;const o=wt(e);function i(){clearTimeout(n),r&&r.disconnect(),r=null}return function s(a,l){void 0===a&&(a=!1),void 0===l&&(l=1),i();const{left:u,top:c,width:d,height:p}=e.getBoundingClientRect();if(a||t(),!d||!p)return;const h={rootMargin:-bt(c)+"px "+-bt(o.clientWidth-(u+d))+"px "+-bt(o.clientHeight-(c+p))+"px "+-bt(u)+"px",threshold:mt(0,ft(1,l))||1};let f=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!f)return s();t?s(!1,t):n=setTimeout((()=>{s(!1,1e-7)}),100)}f=!1}try{r=new IntersectionObserver(m,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(m,h)}r.observe(e)}(!0),i}(u,n):null;let p,h=-1,f=null;s&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{f&&f.observe(t)}))),n()})),u&&!l&&f.observe(u),f.observe(t));let m=l?Vt(e):null;return l&&function t(){const r=Vt(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n(),m=r,p=requestAnimationFrame(t)}(),n(),()=>{c.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),d&&d(),f&&f.disconnect(),f=null,l&&cancelAnimationFrame(p)}}(r,a.current,v,{elementResize:"ResizeObserver"in window}))}),[r,v]);Tt((function(){b()}),[b]);var g=(0,C.useCallback)((function(e){a.current=e,b()}),[b]);if(!t&&"fixed"!==s||!f)return null;var y=ut("div",O({ref:g},Wt(M(M({},e),{},{offset:f.offset,position:s,rect:f.rect}),"menuPortal",{"menu-portal":!0}),o),n);return ut(ln.Provider,{value:p},t?(0,ht.createPortal)(y,t):y)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=pt(e,nn);return ut("div",O({},Wt(M(M({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=pt(e,tn);return ut("div",O({},Wt(M(M({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,s=e.removeProps,a=e.selectProps,l=n.Container,u=n.Label,c=n.Remove;return ut(l,{data:r,innerProps:M(M({},Wt(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:a},ut(u,{data:r,innerProps:M({},Wt(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:a},t),ut(c,{data:r,innerProps:M(M({},Wt(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:a}))},MultiValueContainer:En,MultiValueLabel:En,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return ut("div",O({role:"button"},n),t||ut(bn,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,s=e.innerProps;return ut("div",O({},Wt(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},s),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return ut("div",O({},Wt(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return ut("div",O({},Wt(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return ut("div",O({},Wt(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return ut("div",O({},Wt(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},Pn=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ln(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((r=e[n])===(o=t[n])||Pn(r)&&Pn(o)))return!1;var r,o;return!0}for(var Vn={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Tn=function(e){return ut("span",O({css:Vn},e))},Fn={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,s=e.selectValue,a=e.isDisabled,l=e.isSelected,u=e.isAppleDevice,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(i," focused, ").concat(c(s,n),".");if("menu"===t&&u){var d=a?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Dn=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,s=e.selectValue,a=e.selectProps,l=e.id,u=e.isAppleDevice,c=a.ariaLiveMessages,d=a.getOptionLabel,p=a.inputValue,h=a.isMulti,f=a.isOptionDisabled,m=a.isSearchable,v=a.menuIsOpen,b=a.options,g=a.screenReaderStatus,y=a.tabSelectsValue,x=a.isLoading,w=a["aria-label"],k=a["aria-live"],j=(0,C.useMemo)((function(){return M(M({},Fn),c||{})}),[c]),_=(0,C.useMemo)((function(){var e,n="";if(t&&j.onChange){var r=t.option,o=t.options,i=t.removedValue,a=t.removedValues,l=t.value,u=i||r||(e=l,Array.isArray(e)?null:e),c=u?d(u):"",p=o||a||void 0,h=p?p.map(d):[],m=M({isDisabled:u&&f(u,s),label:c,labels:h},t);n=j.onChange(m)}return n}),[t,j,f,s,d]),O=(0,C.useMemo)((function(){var e="",t=n||r,i=!!(n&&s&&s.includes(n));if(t&&j.onFocus){var a={focused:t,label:d(t),isDisabled:f(t,s),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:s,isAppleDevice:u};e=j.onFocus(a)}return e}),[n,r,d,f,j,o,s,u]),S=(0,C.useMemo)((function(){var e="";if(v&&b.length&&!x&&j.onFilter){var t=g({count:o.length});e=j.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,v,j,b,g,x]),I="initial-input-focus"===(null==t?void 0:t.action),R=(0,C.useMemo)((function(){var e="";if(j.guidance){var t=r?"value":v?"menu":"input";e=j.guidance({"aria-label":w,context:t,isDisabled:n&&f(n,s),isMulti:h,isSearchable:m,tabSelectsValue:y,isInitialFocus:I})}return e}),[w,n,r,h,f,m,v,j,s,y,I]),E=ut(C.Fragment,null,ut("span",{id:"aria-selection"},_),ut("span",{id:"aria-focused"},O),ut("span",{id:"aria-results"},S),ut("span",{id:"aria-guidance"},R));return ut(C.Fragment,null,ut(Tn,{id:l},I&&E),ut(Tn,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!I&&E))},An=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Nn=new RegExp("["+An.map((function(e){return e.letters})).join("")+"]","g"),$n={},Hn=0;Hn<An.length;Hn++)for(var Wn=An[Hn],Bn=0;Bn<Wn.letters.length;Bn++)$n[Wn.letters[Bn]]=Wn.base;var qn=function(e){return e.replace(Nn,(function(e){return $n[e]}))},zn=function(e,t){void 0===t&&(t=Ln);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(qn),Un=function(e){return e.replace(/^\s+|\s+$/g,"")},Yn=function(e){return"".concat(e.label," ").concat(e.value)},Gn=["innerRef"];function Xn(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter((function(e){var t=dt(e,1)[0];return!n.includes(t)}));return o.reduce((function(e,t){var n=dt(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})}(pt(e,Gn),"onExited","in","enter","exit","appear");return ut("input",O({ref:t},n,{css:ct({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var Kn=["boxSizing","height","overflow","paddingRight","position"],Jn={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Zn(e){e.cancelable&&e.preventDefault()}function Qn(e){e.stopPropagation()}function er(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function tr(){return"ontouchstart"in window||navigator.maxTouchPoints}var nr=!("undefined"==typeof window||!window.document||!window.document.createElement),rr=0,or={capture:!1,passive:!1},ir=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},sr={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ar(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,s=(0,C.useRef)(!1),a=(0,C.useRef)(!1),l=(0,C.useRef)(0),u=(0,C.useRef)(null),c=(0,C.useCallback)((function(e,t){if(null!==u.current){var l=u.current,c=l.scrollTop,d=l.scrollHeight,p=l.clientHeight,h=u.current,f=t>0,m=d-p-c,v=!1;m>t&&s.current&&(r&&r(e),s.current=!1),f&&a.current&&(i&&i(e),a.current=!1),f&&t>m?(n&&!s.current&&n(e),h.scrollTop=d,v=!0,s.current=!0):!f&&-t>c&&(o&&!a.current&&o(e),h.scrollTop=0,v=!0,a.current=!0),v&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,o,i]),d=(0,C.useCallback)((function(e){c(e,e.deltaY)}),[c]),p=(0,C.useCallback)((function(e){l.current=e.changedTouches[0].clientY}),[]),h=(0,C.useCallback)((function(e){var t=l.current-e.changedTouches[0].clientY;c(e,t)}),[c]),f=(0,C.useCallback)((function(e){if(e){var t=!!Zt&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",h,t)}}),[h,p,d]),m=(0,C.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",h,!1))}),[h,p,d]);return(0,C.useEffect)((function(){if(t){var e=u.current;return f(e),function(){m(e)}}}),[t,f,m]),function(e){u.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,C.useRef)({}),i=(0,C.useRef)(null),s=(0,C.useCallback)((function(e){if(nr){var t=document.body,n=t&&t.style;if(r&&Kn.forEach((function(e){var t=n&&n[e];o.current[e]=t})),r&&rr<1){var i=parseInt(o.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,a=window.innerWidth-s+i||0;Object.keys(Jn).forEach((function(e){var t=Jn[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(a,"px"))}t&&tr()&&(t.addEventListener("touchmove",Zn,or),e&&(e.addEventListener("touchstart",er,or),e.addEventListener("touchmove",Qn,or))),rr+=1}}),[r]),a=(0,C.useCallback)((function(e){if(nr){var t=document.body,n=t&&t.style;rr=Math.max(rr-1,0),r&&rr<1&&Kn.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&tr()&&(t.removeEventListener("touchmove",Zn,or),e&&(e.removeEventListener("touchstart",er,or),e.removeEventListener("touchmove",Qn,or)))}}),[r]);return(0,C.useEffect)((function(){if(t){var e=i.current;return s(e),function(){a(e)}}}),[t,s,a]),function(e){i.current=e}}({isEnabled:n});return ut(C.Fragment,null,n&&ut("div",{onClick:ir,css:sr}),t((function(e){o(e),i(e)})))}var lr={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},ur=function(e){var t=e.name,n=e.onFocus;return ut("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:lr,value:"",onChange:function(){}})};function cr(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function dr(){return cr(/^Mac/i)}var pr={clearIndicator:wn,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,s=o.borderRadius;return M({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:xn,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return M({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return M({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,s=o.colors;return M(M({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},In),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:s.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,s=o.spacing.baseUnit;return M({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*s})},loadingMessage:pn,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,s=o.spacing,a=o.colors;return M((R(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),R(n,"position","absolute"),R(n,"width","100%"),R(n,"zIndex",1),n),t?{}:{backgroundColor:a.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:s.menuGutter,marginTop:s.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return M({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return M({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return M({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,s=e.isFocused;return M({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:s?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:dn,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,s=i.spacing,a=i.colors;return M({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?a.primary:r?a.primary25:"transparent",color:n?a.neutral20:o?a.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?a.primary:a.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return M({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return M({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return M({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},hr={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},fr={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Gt(),captureMenuScroll:!Gt(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=M({ignoreCase:!0,ignoreAccents:!0,stringify:Yn,trim:!0,matchFrom:"any"},undefined),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,s=n.trim,a=n.matchFrom,l=s?Un(t):t,u=s?Un(i(e)):i(e);return r&&(l=l.toLowerCase(),u=u.toLowerCase()),o&&(l=zn(l),u=qn(u)),"start"===a?u.substr(0,l.length)===l:u.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function mr(e,t,n,r){return{type:"option",data:t,isDisabled:jr(e,t,n),isSelected:_r(e,t,n),label:wr(e,t),value:kr(e,t),index:r}}function vr(e,t){return e.options.map((function(n,r){if("options"in n){var o=n.options.map((function(n,r){return mr(e,n,t,r)})).filter((function(t){return yr(e,t)}));return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=mr(e,n,t,r);return yr(e,i)?i:void 0})).filter(Qt)}function br(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,A(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function gr(e,t){return e.reduce((function(e,n){return"group"===n.type?e.push.apply(e,A(n.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}})))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e}),[])}function yr(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,s=t.label,a=t.value;return(!Cr(e)||!i)&&Or(e,{label:s,value:a,data:o},r)}var xr=function(e,t){var n;return(null===(n=e.find((function(e){return e.data===t})))||void 0===n?void 0:n.id)||null},wr=function(e,t){return e.getOptionLabel(t)},kr=function(e,t){return e.getOptionValue(t)};function jr(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function _r(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=kr(e,t);return n.some((function(t){return kr(e,t)===r}))}function Or(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Cr=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Sr=1,Ir=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(i,e);var t,n,r,o=T(i);function i(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,o=r.onChange,i=r.name;n.name=i,t.ariaOnChange(e,n),o(e,n)},t.setValue=function(e,n,r){var o=t.props,i=o.closeMenuOnSelect,s=o.isMulti,a=o.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:a}),i&&(t.setState({inputIsHiddenAfterUpdate:!s}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,o=n.isMulti,i=n.name,s=t.state.selectValue,a=o&&t.isOptionSelected(e,s),l=t.isOptionDisabled(e,s);if(a){var u=t.getOptionValue(e);t.setValue(s.filter((function(e){return t.getOptionValue(e)!==u})),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:i});o?t.setValue([].concat(A(s),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,o=t.getOptionValue(e),i=r.filter((function(e){return t.getOptionValue(e)!==o})),s=en(n,i,i[0]||null);t.onChange(s,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(en(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],o=n.slice(0,n.length-1),i=en(e,o,o[0]||null);r&&t.onChange(i,{action:"pop-value",removedValue:r})},t.getFocusedOptionId=function(e){return xr(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return gr(vr(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Nt.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return wr(t.props,e)},t.getOptionValue=function(e){return kr(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,o=pr[e](n,r);o.boxSizing="border-box";var i=t.props.styles[e];return i?i(o,n):o},t.getClassNames=function(e,n){var r,o;return null===(r=(o=t.props.classNames)[e])||void 0===r?void 0:r.call(o,n)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,M(M({},Mn),e.components);var e},t.buildCategorizedOptions=function(){return vr(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return br(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:M({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var n=t.props,r=n.isMulti,o=n.menuIsOpen;t.focusInput(),o?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Bt(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var o=Math.abs(r.clientX-t.initialTouchX),i=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=o>5||i>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var n=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:n>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Cr(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,o=n.backspaceRemovesValue,i=n.escapeClearsValue,s=n.inputValue,a=n.isClearable,l=n.isDisabled,u=n.menuIsOpen,c=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,h=t.state,f=h.focusedOption,m=h.focusedValue,v=h.selectValue;if(!(l||"function"==typeof c&&(c(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||s)return;t.focusValue("previous");break;case"ArrowRight":if(!r||s)return;t.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(m)t.removeValue(m);else{if(!o)return;r?t.popValue():a&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!u||!d||!f||p&&t.isOptionSelected(f,v))return;t.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(u){if(!f)return;if(t.isComposing)return;t.selectOption(f);break}return;case"Escape":u?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:s}),t.onMenuClose()):a&&i&&t.clearValue();break;case" ":if(s)return;if(!u){t.openMenu("first");break}if(!f)return;t.selectOption(f);break;case"ArrowUp":u?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":u?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!u)return;t.focusOption("pageup");break;case"PageDown":if(!u)return;t.focusOption("pagedown");break;case"Home":if(!u)return;t.focusOption("first");break;case"End":if(!u)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++Sr),t.state.selectValue=$t(e.value),e.menuIsOpen&&t.state.selectValue.length){var n=t.getFocusableOptionsWithIds(),r=t.buildFocusableOptions(),s=r.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=n,t.state.focusedOption=r[s],t.state.focusedOptionId=xr(n,r[s])}return t}return t=i,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Yt(this.menuListRef,this.focusedOptionRef),(dr()||cr(/^iPhone/i)||cr(/^iPad/i)||dr()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Yt(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),s="first"===e?0:i.length-1;if(!this.props.isMulti){var a=i.indexOf(r[0]);a>-1&&(s=a)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[s],focusedOptionId:this.getFocusedOptionId(i[s])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,s=-1;if(n.length){switch(e){case"previous":s=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(s=o+1)}this.setState({inputIsHidden:-1!==s,focusedValue:n[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(hr):M(M({},hr),this.props.theme):hr}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,s=this.setValue,a=this.props,l=a.isMulti,u=a.isRtl,c=a.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:u,options:c,selectOption:i,selectProps:a,setValue:s,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return jr(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return _r(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Or(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,s=e.form,a=e.menuIsOpen,l=e.required,u=this.getComponents().Input,c=this.state,d=c.inputIsHidden,p=c.ariaSelection,h=this.commonProps,f=r||this.getElementId("input"),m=M(M(M({"aria-autocomplete":"list","aria-expanded":a,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},a&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?C.createElement(u,O({},h,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:f,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:s,type:"text",value:o},m)):C.createElement(Xn,O({id:f,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Dt,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:s,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,s=t.SingleValue,a=t.Placeholder,l=this.commonProps,u=this.props,c=u.controlShouldRenderValue,d=u.isDisabled,p=u.isMulti,h=u.inputValue,f=u.placeholder,m=this.state,v=m.selectValue,b=m.focusedValue,g=m.isFocused;if(!this.hasValue()||!c)return h?null:C.createElement(a,O({},l,{key:"placeholder",isDisabled:d,isFocused:g,innerProps:{id:this.getElementId("placeholder")}}),f);if(p)return v.map((function(t,s){var a=t===b,u="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return C.createElement(n,O({},l,{components:{Container:r,Label:o,Remove:i},isFocused:a,isDisabled:d,key:u,index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(h)return null;var y=v[0];return C.createElement(s,O({},l,{data:y,isDisabled:d}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return C.createElement(e,O({},t,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?C.createElement(e,O({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return C.createElement(n,O({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return C.createElement(e,O({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,s=t.MenuPortal,a=t.LoadingMessage,l=t.NoOptionsMessage,u=t.Option,c=this.commonProps,d=this.state.focusedOption,p=this.props,h=p.captureMenuScroll,f=p.inputValue,m=p.isLoading,v=p.loadingMessage,b=p.minMenuHeight,g=p.maxMenuHeight,y=p.menuIsOpen,x=p.menuPlacement,w=p.menuPosition,k=p.menuPortalTarget,j=p.menuShouldBlockScroll,_=p.menuShouldScrollIntoView,S=p.noOptionsMessage,I=p.onMenuScrollToTop,R=p.onMenuScrollToBottom;if(!y)return null;var E,M=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,s=t.isSelected,a=t.label,l=t.value,p=d===o,h=i?void 0:function(){return e.onOptionHover(o)},f=i?void 0:function(){return e.selectOption(o)},m="".concat(e.getElementId("option"),"-").concat(n),v={id:m,onClick:f,onMouseMove:h,onMouseOver:h,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:s};return C.createElement(u,O({},c,{innerProps:v,data:o,isDisabled:i,isSelected:s,key:m,label:a,type:r,value:l,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())E=this.getCategorizedOptions().map((function(t){if("group"===t.type){var o=t.data,i=t.options,s=t.index,a="".concat(e.getElementId("group"),"-").concat(s),l="".concat(a,"-heading");return C.createElement(n,O({},c,{key:a,data:o,options:i,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return M(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return M(t,"".concat(t.index))}));else if(m){var P=v({inputValue:f});if(null===P)return null;E=C.createElement(a,c,P)}else{var L=S({inputValue:f});if(null===L)return null;E=C.createElement(l,c,L)}var V={minMenuHeight:b,maxMenuHeight:g,menuPlacement:x,menuPosition:w,menuShouldScrollIntoView:_},T=C.createElement(un,O({},c,V),(function(t){var n=t.ref,r=t.placerProps,s=r.placement,a=r.maxHeight;return C.createElement(o,O({},c,V,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:s}),C.createElement(ar,{captureEnabled:h,onTopArrive:I,onBottomArrive:R,lockEnabled:j},(function(t){return C.createElement(i,O({},c,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":c.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:a,focusedOption:d}),E)})))}));return k||"fixed"===w?C.createElement(s,O({},c,{appendTo:k,controlElement:this.controlRef,menuPlacement:x,menuPosition:w}),T):T}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,s=t.required,a=this.state.selectValue;if(s&&!this.hasValue()&&!r)return C.createElement(ur,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var l=a.map((function(t){return e.getOptionValue(t)})).join(n);return C.createElement("input",{name:i,type:"hidden",value:l})}var u=a.length>0?a.map((function(t,n){return C.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):C.createElement("input",{name:i,type:"hidden",value:""});return C.createElement("div",null,u)}var c=a[0]?this.getOptionValue(a[0]):"";return C.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,s=t.selectValue,a=this.getFocusableOptions();return C.createElement(Dn,O({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:s,focusableOptions:a,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,s=i.className,a=i.id,l=i.isDisabled,u=i.menuIsOpen,c=this.state.isFocused,d=this.commonProps=this.getCommonProps();return C.createElement(r,O({},d,{className:s,innerProps:{id:a,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:c}),this.renderLiveRegion(),C.createElement(t,O({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:c,menuIsOpen:u}),C.createElement(o,O({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),C.createElement(n,O({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],r=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,s=t.isFocused,a=t.prevWasFocused,l=t.instancePrefix,u=e.options,c=e.value,d=e.menuIsOpen,p=e.inputValue,h=e.isMulti,f=$t(c),m={};if(n&&(c!==n.value||u!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var v=d?function(e,t){return br(vr(e,t))}(e,f):[],b=d?gr(vr(e,f),"".concat(l,"-option")):[],g=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,f):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);m={selectValue:f,focusedOption:y,focusedOptionId:xr(b,y),focusableOptionsWithIds:b,focusedValue:g,clearFocusValueOnUpdate:!1}}var x=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},w=i,k=s&&a;return s&&!k&&(w={value:en(h,f,f[0]||null),options:f,action:"initial-input-focus"},k=!a),"initial-input-focus"===(null==i?void 0:i.action)&&(w=null),M(M(M({},m),x),{},{prevProps:e,ariaSelection:w,prevWasFocused:k})}}],n&&P(t.prototype,n),r&&P(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(C.Component);Ir.defaultProps=fr;var Rr=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"],Er=["defaultOptions","cacheOptions","loadOptions","options","isLoading","onInputChange","filterOption"],Mr=(0,C.forwardRef)((function(e,t){var n=function(e){var t=e.defaultOptions,n=void 0!==t&&t,r=e.cacheOptions,o=void 0!==r&&r,i=e.loadOptions;e.options;var s=e.isLoading,a=void 0!==s&&s,l=e.onInputChange,u=e.filterOption,c=void 0===u?null:u,d=pt(e,Er),p=d.inputValue,h=(0,C.useRef)(void 0),f=(0,C.useRef)(!1),m=dt((0,C.useState)(Array.isArray(n)?n:void 0),2),v=m[0],b=m[1],g=dt((0,C.useState)(void 0!==p?p:""),2),y=g[0],x=g[1],w=dt((0,C.useState)(!0===n),2),k=w[0],j=w[1],_=dt((0,C.useState)(void 0),2),O=_[0],S=_[1],I=dt((0,C.useState)([]),2),E=I[0],P=I[1],L=dt((0,C.useState)(!1),2),V=L[0],T=L[1],F=dt((0,C.useState)({}),2),D=F[0],A=F[1],N=dt((0,C.useState)(void 0),2),$=N[0],H=N[1],W=dt((0,C.useState)(void 0),2),B=W[0],q=W[1];o!==B&&(A({}),q(o)),n!==$&&(b(Array.isArray(n)?n:void 0),H(n)),(0,C.useEffect)((function(){return f.current=!0,function(){f.current=!1}}),[]);var z=(0,C.useCallback)((function(e,t){if(!i)return t();var n=i(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}),[i]);(0,C.useEffect)((function(){!0===n&&z(y,(function(e){f.current&&(b(e||[]),j(!!h.current))}))}),[]);var U=(0,C.useCallback)((function(e,t){var n=function(e,t,n){if(n){var r=n(e,t);if("string"==typeof r)return r}return e}(e,t,l);if(!n)return h.current=void 0,x(""),S(""),P([]),j(!1),void T(!1);if(o&&D[n])x(n),S(n),P(D[n]),j(!1),T(!1);else{var r=h.current={};x(n),j(!0),T(!O),z(n,(function(e){f&&r===h.current&&(h.current=void 0,j(!1),S(n),P(e||[]),T(!1),A(e?M(M({},D),{},R({},n,e)):D))}))}}),[o,z,O,D,l]),Y=V?[]:y&&O?E:v||[];return M(M({},d),{},{options:Y,isLoading:k||a,onInputChange:U,filterOption:c})}(e),r=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,s=void 0===i?null:i,a=e.inputValue,l=e.menuIsOpen,u=e.onChange,c=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,h=e.value,f=pt(e,Rr),m=dt((0,C.useState)(void 0!==a?a:n),2),v=m[0],b=m[1],g=dt((0,C.useState)(void 0!==l?l:o),2),y=g[0],x=g[1],w=dt((0,C.useState)(void 0!==h?h:s),2),k=w[0],j=w[1],_=(0,C.useCallback)((function(e,t){"function"==typeof u&&u(e,t),j(e)}),[u]),O=(0,C.useCallback)((function(e,t){var n;"function"==typeof c&&(n=c(e,t)),b(void 0!==n?n:e)}),[c]),S=(0,C.useCallback)((function(){"function"==typeof p&&p(),x(!0)}),[p]),I=(0,C.useCallback)((function(){"function"==typeof d&&d(),x(!1)}),[d]),R=void 0!==a?a:v,E=void 0!==l?l:y,P=void 0!==h?h:k;return M(M({},f),{},{inputValue:R,menuIsOpen:E,onChange:_,onInputChange:O,onMenuClose:I,onMenuOpen:S,value:P})}(n);return C.createElement(Ir,O({ref:t},r))})),Pr=Mr;const Lr=window.lodash,{scoreToRating:Vr}=v.interpreters;function Tr({indexable:e}){return(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{children:(0,c.jsx)(r.SvgIcon,{...w(Vr(e.primary_focus_keyword_score/10))})}),(0,c.jsx)("td",{children:(0,c.jsx)(r.SvgIcon,{...w(Vr(e.readability_score/10))})}),(0,c.jsx)("td",{children:(0,c.jsxs)("a",{href:e.permalink,target:"_blank",rel:"noopener noreferrer",children:[x(e.breadcrumb_title),(0,c.jsx)(p,{})]})}),(0,c.jsx)("td",{children:e.primary_focus_keyword||"-"})]})}function Fr({indexables:e,loading:t,setCornerstones:n,isDisabled:r}){const o=(0,u.__)("SEO score","wordpress-seo-premium"),i=(0,u.__)("Readability score","wordpress-seo-premium"),a=(0,s.useCallback)((0,Lr.debounce)(((e,t)=>{!async function(e,t){try{const n=await g()({path:"wp/v2/search/?search="+e});let r=await n;return r=r.map((e=>({value:e.id,label:e.title+" ("+e.url+")",type:e.type}))),t(r),r}catch(e){return t([]),console.error(e.message),!1}}(e,t)}),500),[]),l=(0,s.useCallback)((e=>{!async function(e,t,n){try{return await g()({path:"yoast/v1/workouts/enable_cornerstone",method:"POST",data:{object_id:e,object_type:t}}),await j(n)}catch(e){return console.error(e.message),!1}}(e.value,e.type,n)}),[n]);return t?(0,c.jsx)("div",{children:(0,c.jsx)("em",{children:(0,u.__)("Loading data...","wordpress-seo-premium")})}):e.length<=0?(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{children:(0,c.jsx)("em",{children:(0,u.__)("You currently have no articles marked as cornerstone. When you mark your articles as cornerstone, they will show up here.","wordpress-seo-premium")})}),(0,c.jsx)(Pr,{value:"",onChange:l,cacheOptions:!0,loadOptions:a,defaultOptions:!0,placeholder:(0,u.__)("Choose cornerstone articles...","wordpress-seo-premium"),isDisabled:r})]}):(0,c.jsxs)("div",{children:[(0,c.jsxs)("table",{className:"yoast_help",children:[(0,c.jsx)("thead",{children:(0,c.jsxs)("tr",{children:[(0,c.jsx)("th",{className:"manage-column",children:(0,c.jsx)("span",{"data-label":o,className:"yoast-tooltip yoast-tooltip-n yoast-tooltip-alt",children:(0,c.jsx)("span",{className:"yoast-column-seo-score yoast-column-header-has-tooltip",children:(0,c.jsx)("span",{className:"screen-reader-text",children:o})})})}),(0,c.jsx)("th",{className:"manage-column",children:(0,c.jsx)("span",{"data-label":i,className:"yoast-tooltip yoast-tooltip-n yoast-tooltip-alt",children:(0,c.jsx)("span",{className:"yoast-column-readability yoast-column-header-has-tooltip",children:(0,c.jsx)("span",{className:"screen-reader-text",children:i})})})}),(0,c.jsx)("th",{children:(0,u.__)("Article","wordpress-seo-premium")}),(0,c.jsx)("th",{children:(0,u.__)("Focus keyphrase","wordpress-seo-premium")})]})}),(0,c.jsx)("tbody",{children:e.map((function(e){return(0,c.jsx)(Tr,{indexable:e},e.id)}))})]}),(0,c.jsx)(Pr,{value:"",onChange:l,cacheOptions:!0,loadOptions:a,defaultOptions:!0,placeholder:(0,u.__)("Choose cornerstone articles...","wordpress-seo-premium"),isDisabled:r})]})}Tr.propTypes={indexable:i().object.isRequired},Fr.propTypes={indexables:i().arrayOf(i().object).isRequired,loading:i().bool.isRequired,setCornerstones:i().func.isRequired,isDisabled:i().bool.isRequired};const Dr={cornerstone:"cornerstone",orphaned:"orphaned"},Ar={cornerstone:{chooseCornerstones:"chooseCornerstones",checkLinks:"checkLinks",addLinks:"addLinks",improved:"improved",skipped:"skipped"},orphaned:{improveRemove:"improveRemove",update:"update",addLinks:"addLinks",removed:"removed",noindexed:"noindexed",improved:"improved",skipped:"skipped"}};function Nr({indexable:e,moveIndexables:t,improvableIds:n}){const o=(0,s.useCallback)((()=>{t(Dr.cornerstone,[e],"",Ar.cornerstone.addLinks)}),[t,e]);let i;return i=n.includes(e.id)?(0,c.jsx)("em",{children:(0,u.__)("Added to next step","wordpress-seo-premium")}):(0,c.jsx)(r.Button,{onClick:o,children:(0,u.__)("Optimize","wordpress-seo-premium")}),(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{children:e.incoming_link_count||"0"}),(0,c.jsxs)("td",{children:["1"===e.is_cornerstone?"★ ":"",(0,c.jsxs)("a",{href:e.permalink,target:"_blank",rel:"noopener noreferrer",children:[x(e.breadcrumb_title),(0,c.jsx)(p,{})]})]}),(0,c.jsx)("td",{children:e.object_sub_type||e.object_type}),(0,c.jsx)("td",{children:"1"===e.is_cornerstone&&i})]})}function $r({mostLinked:e,cornerstones:t,moveIndexables:n,improvableIds:r,loading:o}){if(o)return(0,c.jsx)("div",{children:(0,c.jsx)("em",{children:(0,u.__)("Loading data...","wordpress-seo-premium")})});if(e.length<=0)return(0,c.jsx)("p",{children:(0,c.jsx)("em",{children:(0,u.__)("We were unable to find internal links on your pages. Either you haven't added any internal links to your content yet, or Yoast SEO didn't index them. You can have Yoast SEO index your links by running the SEO data optimization under SEO > Tools.","wordpress-seo-premium")})});const i=e.map((e=>e.id));return(0,c.jsxs)("table",{className:"yoast_help",children:[(0,c.jsx)("thead",{children:(0,c.jsxs)("tr",{children:[(0,c.jsx)("th",{children:(0,u.__)("Incoming links","wordpress-seo-premium")}),(0,c.jsx)("th",{children:(0,u.__)("Article","wordpress-seo-premium")}),(0,c.jsx)("th",{children:(0,u.__)("Type","wordpress-seo-premium")}),(0,c.jsx)("th",{children:(0,u.__)("Action","wordpress-seo-premium")})]})}),(0,c.jsxs)("tbody",{children:[e.map((function(e){return(0,c.jsx)(Nr,{indexable:e,moveIndexables:n,improvableIds:r},e.id)})),t.map((function(e){if(!i.includes(e.id))return(0,c.jsx)(Nr,{indexable:e,moveIndexables:n,improvableIds:r},e.id)}))]})]})}function Hr(){return(0,c.jsx)(r.Alert,{type:"warning",children:(0,u.__)("Please note: Your admin has disabled the cornerstone functionality in the SEO settings. If you want to use this workout, it should be enabled.","wordpress-seo-premium")})}Ar.cornerstone.chooseCornerstones,Ar.cornerstone.checkLinks,Ar.cornerstone.addLinks,Ar.orphaned.improveRemove,Ar.orphaned.update,Ar.orphaned.addLinks,Nr.propTypes={indexable:i().object.isRequired,moveIndexables:i().func.isRequired,improvableIds:i().array.isRequired},$r.propTypes={mostLinked:i().arrayOf(i().object).isRequired,cornerstones:i().arrayOf(i().object).isRequired,moveIndexables:i().func.isRequired,improvableIds:i().array.isRequired,loading:i().bool.isRequired};const Wr=window.wp.a11y;function Br(){const e=new ClipboardJS(".yoast-copy__button");e.on("success",(function(e){const t=(0,u.__)("Copied!","wordpress-seo-premium");e.trigger.focus(),e.trigger.setAttribute("aria-label",t),e.trigger.innerHTML=t,(0,Wr.speak)(t,"assertive")})),e.on("error",(function(e){const t=(0,u.__)("Copy failed","wordpress-seo-premium");e.trigger.setAttribute("aria-label",t),e.trigger.innerHTML=t,(0,Wr.speak)(t,"assertive")}))}function qr({clipboardText:e}){(0,s.useEffect)(Br,[]);const t=(0,u.__)("Copy link","wordpress-seo-premium"),n=(0,s.useCallback)((e=>{e.nativeEvent.target.setAttribute("aria-label",t),e.nativeEvent.target.innerText=t}),[]);return(0,c.jsx)(r.Button,{className:"yoast-copy__button","data-clipboard-text":e,"aria-label":t,onBlur:n,children:t})}function zr({suggestion:e}){return(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{children:x(e.breadcrumb_title)}),(0,c.jsx)("td",{children:(0,c.jsxs)("a",{href:x(e.edit_link),target:"_blank",rel:"noopener noreferrer",children:[(0,u.__)("Edit to add link","wordpress-seo-premium"),(0,c.jsx)(p,{})]})})]})}function Ur({indexable:e}){const[t,n]=(0,s.useState)([]),[r,o]=(0,s.useState)(!0),i=(0,s.useCallback)((e=>{n(e),o(!1)}),[n,o]);return(0,s.useEffect)((()=>{k(e,i)}),[e.id]),e.purge?null:0===t.length?(0,c.jsx)("tr",{children:(0,c.jsx)("td",{colSpan:"2",children:(0,c.jsx)("em",{children:r?(0,u.__)("Loading link suggestions...","wordpress-seo-premium"):(0,u.__)("We didn’t find any suggestions for this article, but of course you can still add links to articles that you think are related.","wordpress-seo-premium")})})}):t.map((function(e){return(0,c.jsx)(zr,{suggestion:e},"suggestion-"+e.id)}))}function Yr({indexable:e,finish:t,skip:n,minimumLinks:o}){const i=(0,s.useCallback)(t.bind(null,e),[t,e]),a=(0,s.useCallback)(n.bind(null,e),[n,e]);return e.purge?(0,c.jsx)("td",{children:(0,u.__)("You've finished adding links to this article.","wordpress-seo-premium")}):(0,c.jsxs)("td",{children:[(0,c.jsx)(qr,{clipboardText:e.permalink}),e.incoming_link_count>=o&&(0,c.jsx)("div",{children:(0,c.jsx)(r.Button,{className:"yoast-button--primary",onClick:i,children:(0,u.__)("Finish optimizing","wordpress-seo-premium")})}),e.incoming_link_count<o&&(0,c.jsx)("span",{style:{marginLeft:"16px"},children:(0,c.jsx)("a",{href:"#orphaned",onClick:a,children:(0,u.__)("Skip","wordpress-seo-premium")})})]})}function Gr({indexable:e,finish:t,skip:n,minimumLinks:r}){const o=e.incoming_link_count?parseInt(e.incoming_link_count,10):0;return(0,c.jsxs)(s.Fragment,{children:[(0,c.jsx)("thead",{children:(0,c.jsxs)("tr",{children:[(0,c.jsxs)("td",{children:[(0,c.jsx)("strong",{children:x(e.breadcrumb_title)}),(0,c.jsx)("div",{children:(0,c.jsx)("em",{children:(0,u.sprintf)(
// translators: %s is the number of incoming links.
// translators: %s is the number of incoming links.
(0,u._n)("%s incoming link","%s incoming links",o,"wordpress-seo-premium"),o)})})]}),(0,c.jsx)(Yr,{indexable:e,finish:t,skip:n,minimumLinks:r})]})}),(0,c.jsx)("tbody",{children:(0,c.jsx)(Ur,{indexable:e})})]})}qr.propTypes={clipboardText:o.PropTypes.string.isRequired},zr.propTypes={suggestion:i().object.isRequired},Ur.propTypes={indexable:i().object.isRequired},Yr.propTypes={indexable:i().object.isRequired,finish:i().func.isRequired,skip:i().func.isRequired,minimumLinks:i().number.isRequired},Gr.propTypes={indexable:i().object.isRequired,finish:i().func.isRequired,skip:i().func.isRequired,minimumLinks:i().number.isRequired};const Xr=({indexables:e,finish:t,skip:n,minimumLinks:r})=>e.length<=0?(0,c.jsx)("p",{children:(0,c.jsx)("em",{children:(0,u.__)("You currently haven't selected any articles to improve. Select a few articles in the previous steps to add links to and we will show you link suggestions here.","wordpress-seo-premium")})}):(0,c.jsx)("table",{className:"yoast_help yoast_link_suggestions",children:e.map((function(e){return(0,c.jsx)(Gr,{indexable:e,finish:t,skip:n,minimumLinks:r},"suggestions-"+e.id)}))});Xr.propTypes={indexables:i().arrayOf(i().object).isRequired,finish:i().func.isRequired,skip:i().func,minimumLinks:i().number},Xr.defaultProps={minimumLinks:0,skip:()=>{}};const{cornerstoneOn:Kr,seoDataOptimizationNeeded:Jr,cornerstoneGuide:Zr}=window.wpseoPremiumWorkoutsData;function Qr({toggleStep:e,toggleWorkout:t,isWorkoutFinished:n,isStepFinished:o,getIndexablesByStep:i,moveIndexables:a}){const{toolsPageUrl:l}=window.wpseoWorkoutsData,m=Ar.cornerstone,[v,b]=(0,s.useState)({cornerstones:[],mostLinked:[]}),[g,y]=(0,s.useState)(!0),x=(0,s.useCallback)((e=>{b(e),y(!1)}),[b,y]);(0,s.useEffect)((()=>{j(x)}),[n]);const w=(0,s.useCallback)((e=>{a(Dr.cornerstone,[e],Ar.cornerstone.addLinks,"")}),[a]),k=(0,s.useCallback)(e.bind(null,"cornerstone",m.checkLinks),[e,m.checkLinks]),_=(0,s.useCallback)(e.bind(null,"cornerstone",m.chooseCornerstones),[e,m.chooseCornerstones]),O=(0,s.useCallback)(e.bind(null,"cornerstone",m.addLinks),[e,m.addLinks]),C=(0,s.useCallback)(t.bind(null,"cornerstone"),[t]),S=i(Dr.cornerstone,Ar.cornerstone.addLinks);let I=[];return(0,Lr.isEmpty)(S)||(I=S.filter((e=>!0!==e.purge)).map((e=>e.id))),(0,c.jsxs)("div",{className:"card",children:[(0,c.jsx)("h2",{children:(0,u.__)("The cornerstone approach","wordpress-seo-premium")}),(0,c.jsx)("h3",{children:(0,u.__)("Rank with articles you want to rank with","wordpress-seo-premium")}),"1"!==Kr&&(0,c.jsx)(Hr,{}),"1"===Jr&&(0,c.jsx)(f,{url:l}),(0,c.jsx)("p",{children:h((0,u.sprintf)(/* translators: %1$s is an opening emphasis tag, %2$s a closing emphasis tag, and %3$s is the company name, Yoast. */ /* translators: %1$s is an opening emphasis tag, %2$s a closing emphasis tag, and %3$s is the company name, Yoast. */
(0,u.__)("Some articles on your site are %1$sthe%2$s most important. They answer people's questions and solve their problems. So, they deserve to rank! At %3$s, we call these cornerstone articles. One of the ways to have them rank is to point enough links to them. More links signal to search engines that those articles are important and valuable. In this workout, we'll help you add links to your cornerstone articles!","wordpress-seo-premium"),"<em>","</em>","Yoast"),{em:(0,c.jsx)("em",{})})}),(0,c.jsx)("p",{children:h((0,u.sprintf)(
// translators: %1$s and %6$s are emphasis tags, %2$s and %5$s are anchor tags, %3$s and %4$s expand to an icon tag. %7$s is Yoast SEO Premium.
// translators: %1$s and %6$s are emphasis tags, %2$s and %5$s are anchor tags, %3$s and %4$s expand to an icon tag. %7$s is Yoast SEO Premium.
(0,u.__)("%1$sNeed more guidance? We've covered every step in more detail in: %2$sHow to use the %7$s cornerstone workout%3$s%4$s%5$s.%6$s","wordpress-seo-premium"),"<em>","<a>","<icon>","</icon>","</a>","</em>","Yoast SEO Premium"),{icon:(0,c.jsx)(p,{}),a:(0,c.jsx)("a",{href:Zr,target:"_blank",rel:"noopener noreferrer"}),em:(0,c.jsx)("em",{})})}),(0,c.jsx)("hr",{}),(0,c.jsxs)("ol",{className:"workflow yoast",children:[(0,c.jsxs)("li",{className:"step"+(o("cornerstone",m.chooseCornerstones)?" finished faded":""),children:[(0,c.jsx)("h4",{children:(0,u.__)("Start: Choose your cornerstones!","wordpress-seo-premium")}),(0,c.jsxs)("div",{className:"workflow__grid",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{children:(0,u.__)("Which articles do you want to rank the highest? Which ones would your audience find the most useful and complete? Click the downward pointing arrow and look for articles that fit those criteria. We'll automatically mark the articles you select from the list as cornerstone.","wordpress-seo-premium")}),(0,c.jsx)("p",{children:(0,u.__)("Do all of your cornerstones have green bullets? For the best results, consider editing the ones that don't!","wordpress-seo-premium")})]}),(0,c.jsx)("div",{children:(0,c.jsx)("img",{className:"workflow__image",src:"https://yoast.com/shared-assets/images/wpseo_workouts/17-9/motivated_bubble_man_1_optim.svg",width:"100",height:"100",alt:""})})]}),(0,c.jsx)(Fr,{indexables:v.cornerstones,loading:g,setCornerstones:x,isDisabled:o("cornerstone",m.chooseCornerstones)}),(0,c.jsx)("br",{}),(0,c.jsx)(d,{onClick:_,isFinished:o("cornerstone",m.chooseCornerstones)})]}),(0,c.jsxs)("li",{className:"step"+(o("cornerstone",m.checkLinks)?" finished faded":""),children:[(0,c.jsx)("h4",{children:(0,u.__)("Check the number of incoming internal links of your cornerstones","wordpress-seo-premium")}),(0,c.jsx)("p",{children:(0,u.sprintf)(
// translators: %1$s is replaced with a star icon ★
// translators: %1$s is replaced with a star icon ★
(0,u.__)("Take a look at the list below. Do your cornerstones (marked with %1$s) have the most internal links pointing towards them? Click the Optimize button if you think a cornerstone needs more links. That will move the article to the next step.","wordpress-seo-premium"),"★")}),(0,c.jsx)($r,{mostLinked:v.mostLinked,cornerstones:v.cornerstones,moveIndexables:a,improvableIds:I,loading:g}),(0,c.jsx)("br",{}),(0,c.jsx)(d,{onClick:k,isFinished:o("cornerstone",m.checkLinks)})]}),(0,c.jsxs)("li",{className:"step"+(o("cornerstone",m.addLinks)?" finished faded":""),children:[(0,c.jsx)("h4",{children:(0,u.__)("Add internal links towards your cornerstones","wordpress-seo-premium")}),(0,c.jsx)("p",{children:(0,u.__)("Time to add some links! Below, you see a list with your cornerstones. Under each cornerstone, there are suggestions for articles you could add a link from. When adding the link, make sure to insert it in a relevant sentence related to your cornerstone article. Keep adding links from as many related articles as you need, until your cornerstones have the most internal links pointing towards them.","wordpress-seo-premium")}),(0,c.jsx)(Xr,{indexables:i(Dr.cornerstone,Ar.cornerstone.addLinks),finish:w}),(0,c.jsx)("br",{}),(0,c.jsx)(d,{onClick:O,isFinished:o("cornerstone",m.addLinks)})]}),(0,c.jsxs)("li",{className:"step"+(n?" finished faded":""),children:[(0,c.jsx)("h4",{children:(0,u.__)("Well done!","wordpress-seo-premium")}),(0,c.jsxs)("div",{className:"workflow__grid",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("p",{children:(0,u.__)("You just made your best content easy to find, and more likely to rank! Way to go! From time to time, remember to check if your cornerstones are getting enough links!","wordpress-seo-premium")}),(0,c.jsx)(r.Button,{className:"yoast-button yoast-button--primary",onClick:C,children:n?(0,u.__)("Reset this workout","wordpress-seo-premium"):(0,u.__)("I've finished this workout","wordpress-seo-premium")})]}),(0,c.jsx)("div",{children:(0,c.jsx)("img",{className:"workflow__image",src:"https://yoast.com/shared-assets/images/wpseo_workouts/17-9/fit_bubble_man_1_optim.svg",width:"120",height:"120",alt:"",style:{maxWidth:"120px",maxHeight:"120px"}})})]})]})]})]})}Qr.propTypes={toggleStep:i().func.isRequired,toggleWorkout:i().func.isRequired,isWorkoutFinished:i().bool.isRequired,isStepFinished:i().func.isRequired,getIndexablesByStep:i().func.isRequired,moveIndexables:i().func.isRequired};const eo=(0,l.compose)([(0,a.withSelect)((e=>{const t=e("yoast-seo/workouts").getWorkouts(),n=e("yoast-seo/workouts").getFinishedWorkouts(),r=n.includes(Dr.cornerstone);return{finishedWorkouts:n,isStepFinished:(e,n)=>t[e].finishedSteps.includes(n),isWorkoutFinished:r,getIndexablesByStep:e("yoast-seo/workouts").getIndexablesByStep}})),(0,a.withDispatch)((e=>{const{toggleStep:t,toggleWorkout:n,moveIndexables:r}=e("yoast-seo/workouts");return{toggleStep:t,toggleWorkout:n,moveIndexables:r}}))])(Qr),to=window.wp.components,{scoreToRating:no}=v.interpreters,ro=({indexable:e,moveIndexables:t})=>{const[n,o]=(0,s.useState)(!1);(0,s.useEffect)((()=>{"post"===e.object_type&&(o("Loading..."),async function(e,t){try{const n=await g()({path:"yoast/v1/workouts/last_updated?postId="+e}),r=await n.json;return t(new Date(r).toDateString()),r}catch(e){return console.error(e.message),!1}}(e.object_id,o))}),[e.id]);const i=!!e.purge;return(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{children:(0,c.jsx)(r.SvgIcon,{...w(no(e.primary_focus_keyword_score/10))})}),(0,c.jsx)("td",{children:(0,c.jsx)(r.SvgIcon,{...w(no(e.readability_score/10))})}),(0,c.jsx)("td",{children:(0,c.jsxs)("a",{href:e.permalink,target:"_blank",rel:"noopener noreferrer",children:[x(e.breadcrumb_title),(0,c.jsx)(p,{})]})}),(0,c.jsx)("td",{children:n||(0,c.jsx)("em",{children:(0,u.__)("Unknown","wordpress-seo-premium")})}),!i&&(0,c.jsx)("td",{children:(0,c.jsx)(to.CheckboxControl,{onChange:()=>{t(Dr.orphaned,[e],Ar.orphaned.update,Ar.orphaned.addLinks)}})}),i&&(0,c.jsx)("td",{children:(0,c.jsx)("em",{children:(0,u.__)("You've moved this article to the next step.","wordpress-seo-premium")})})]})};ro.propTypes={indexable:i().object.isRequired,moveIndexables:i().func.isRequired};const oo=({indexables:e,moveIndexables:t})=>{const n=(0,u.__)("SEO score","wordpress-seo-premium"),r=(0,u.__)("Readability score","wordpress-seo-premium");return e.length>0?(0,c.jsxs)("table",{className:"yoast_help",children:[(0,c.jsx)("thead",{children:(0,c.jsxs)("tr",{children:[(0,c.jsx)("th",{className:"manage-column",children:(0,c.jsx)("span",{"data-label":n,className:"yoast-tooltip yoast-tooltip-n yoast-tooltip-alt",children:(0,c.jsx)("span",{className:"yoast-column-seo-score yoast-column-header-has-tooltip",children:(0,c.jsx)("span",{className:"screen-reader-text",children:n})})})}),(0,c.jsx)("th",{className:"manage-column",children:(0,c.jsx)("span",{"data-label":r,className:"yoast-tooltip yoast-tooltip-n yoast-tooltip-alt",children:(0,c.jsx)("span",{className:"yoast-column-readability yoast-column-header-has-tooltip",children:(0,c.jsx)("span",{className:"screen-reader-text",children:r})})})}),(0,c.jsx)("th",{children:(0,u.__)("Article","wordpress-seo-premium")}),(0,c.jsx)("th",{children:(0,u.__)("Last Updated","wordpress-seo-premium")}),(0,c.jsx)("th",{children:(0,u.__)("Is it up-to-date?","wordpress-seo-premium")})]})}),(0,c.jsx)("tbody",{children:e.map((function(e){return(0,c.jsx)(ro,{indexable:e,moveIndexables:t},"improvable-"+e.id)}))})]}):(0,c.jsx)("p",{children:(0,c.jsx)("em",{children:(0,u.__)("You haven't selected any articles for this step yet. You can do so in the previous step.","wordpress-seo-premium")})})};oo.propTypes={indexables:i().arrayOf(i().object).isRequired,moveIndexables:i().func.isRequired};const io=({improved:e,removed:t,noindexed:n,skipped:r})=>e.length>0||t.length>0||n.length>0||r.length>0?(0,c.jsxs)("table",{className:"yoast_help",children:[(0,c.jsx)("thead",{children:(0,c.jsxs)("tr",{children:[(0,c.jsx)("th",{children:(0,u.__)("Article","wordpress-seo-premium")}),(0,c.jsx)("th",{children:(0,u.__)("Resolution","wordpress-seo-premium")})]})}),(0,c.jsxs)("tbody",{children:[e.map((function(e){return(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{children:(0,c.jsxs)("a",{href:e.permalink,target:"_blank",rel:"noopener noreferrer",children:[x(e.breadcrumb_title),(0,c.jsx)(p,{})]})}),(0,c.jsx)("td",{children:(0,u.__)("Improved","wordpress-seo-premium")})]},"improved-"+e.id)})),t.map((function(e){return(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{children:(0,c.jsxs)("a",{href:e.permalink,target:"_blank",rel:"noopener noreferrer",children:[x(e.breadcrumb_title),(0,c.jsx)(p,{})]})}),(0,c.jsx)("td",{children:(0,u.__)("Removed","wordpress-seo-premium")})]},"removed-"+e.id)})),n.map((function(e){return(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{children:(0,c.jsxs)("a",{href:e.permalink,target:"_blank",rel:"noopener noreferrer",children:[x(e.breadcrumb_title),(0,c.jsx)(p,{})]})}),(0,c.jsx)("td",{children:(0,u.__)("Hidden from search engines.","wordpress-seo-premium")})]},"noindexed"+e.id)})),r.map((function(e){return(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{children:(0,c.jsxs)("a",{href:e.permalink,target:"_blank",rel:"noopener noreferrer",children:[x(e.breadcrumb_title),(0,c.jsx)(p,{})]})}),(0,c.jsx)("td",{children:(0,u.__)("Skipped","wordpress-seo-premium")})]},"skipped"+e.id)}))]})]}):(0,c.jsx)("p",{children:(0,c.jsx)("em",{children:(0,u.__)("You haven't cleaned up or updated any articles yet using this workout. Once you do, a summary of your work will show up here.","wordpress-seo-premium")})});io.propTypes={improved:i().arrayOf(i().object).isRequired,removed:i().arrayOf(i().object).isRequired,noindexed:i().arrayOf(i().object).isRequired,skipped:i().arrayOf(i().object).isRequired};const so=({indexable:e,moveIndexables:t})=>{const{homeUrl:n}=window.wpseoWorkoutsData,[o,i]=(0,s.useState)(!1),[a,l]=(0,s.useState)([]),[d,p]=(0,s.useState)(n),[f,m]=(0,s.useState)(""),[v,b]=(0,s.useState)(!0),[g,y]=(0,s.useState)("yoast-redirect-to-homepage"),w=(0,s.useCallback)((e=>{l(e),b(!1)}),[y,b]);(0,s.useEffect)((()=>{o&&k(e,w)}),[o]);const j=(0,s.useCallback)((()=>i(!1)),[]),O=(0,s.useCallback)((()=>i(!0)),[]),C=(0,s.useCallback)((()=>{_(e,d),t(Dr.orphaned,[e],Ar.orphaned.improveRemove,Ar.orphaned.removed),j()}),[_,e,d,t,j]),S=(0,s.useCallback)((e=>{p(e.target.value),y("yoast-redirect-to-homepage")}),[p,y]),I=(0,s.useCallback)((e=>{p(e.target.value),y("yoast-custom-redirect")}),[p,y]),R=(0,s.useCallback)((e=>{m(e.target.value),p(e.target.value),y("yoast-custom-redirect")}),[m,p,y]);return(0,c.jsxs)(s.Fragment,{children:[(0,c.jsx)(r.Button,{onClick:O,className:"yoast__workout__remove-article",style:{color:"red"},children:(0,u.__)("Remove","wordpress-seo-premium")}),o&&(0,c.jsxs)(to.Modal,{onRequestClose:j,title:(0,u.__)("SEO Workout: Remove article","wordpress-seo-premium"),className:"yoast__workout",icon:(0,c.jsx)("span",{className:"yoast-icon"}),children:[(0,c.jsx)("p",{children:h((0,u.sprintf)(
// translators: %1$s and %3$s expand to an opening and closing anchor tag, respectively, that links to the article that is about to be removed. %2$s is the title of this article.
// translators: %1$s and %3$s expand to an opening and closing anchor tag, respectively, that links to the article that is about to be removed. %2$s is the title of this article.
(0,u.__)("You are about to remove %1$s%2$s%3$s. To prevent 404s on your site, you should redirect it to another page on your site. Where would you like to redirect it?","wordpress-seo-premium"),"<a>",x(e.breadcrumb_title),"</a>"),{a:(0,c.jsx)("a",{href:e.permalink})})}),!v&&(0,c.jsxs)("div",{className:"yoast__redirect-suggestions",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("input",{type:"radio",id:"yoast-redirect-to-homepage",value:n,checked:"yoast-redirect-to-homepage"===g,onChange:S}),(0,c.jsxs)("label",{htmlFor:"yoast-redirect-to-homepage",children:[(0,u.__)("Home page:","wordpress-seo-premium")+" ",(0,c.jsx)("a",{href:n,children:n})]})]}),a.length>0&&a.map((function(e){return(0,c.jsxs)("div",{children:[(0,c.jsx)("input",{type:"radio",id:"yoast-redirect-to-indexable-"+e.id,value:e.permalink,checked:g==="yoast-redirect-to-indexable-"+e.id,onChange:t=>{p(t.target.value),y("yoast-redirect-to-indexable-"+e.id)}}),(0,c.jsxs)("label",{htmlFor:"yoast-redirect-to-indexable-"+e.id,children:[(0,u.__)("Related article:","wordpress-seo-premium")+" ",(0,c.jsx)("a",{href:e.permalink,target:"_blank",rel:"noopener noreferrer",children:e.breadcrumb_title})]})]},"redirect-suggestion-"+e.id)})),(0,c.jsxs)("div",{children:[(0,c.jsx)("input",{type:"radio",id:"yoast-custom-redirect",value:f,checked:"yoast-custom-redirect"===g,onChange:I}),(0,c.jsxs)("label",{htmlFor:"yoast-custom-redirect",children:[(0,u.__)("Custom url:","wordpress-seo-premium"),(0,c.jsx)("input",{type:"text",onChange:R,value:f})]})]}),(0,c.jsx)("br",{}),(0,c.jsx)(r.Button,{onClick:C,className:"yoast__workout__remove-and-redirect",children:(0,u.__)("Remove and redirect","wordpress-seo-premium")})]}),v&&(0,c.jsx)("p",{children:(0,c.jsx)("em",{children:(0,u.__)("Loading redirect options...","wordpress-seo-premium")})})]})]})};so.propTypes={indexable:i().object.isRequired,moveIndexables:i().func.isRequired};const{scoreToRating:ao}=v.interpreters,lo=e=>{switch(e){case Ar.orphaned.removed:return(0,u.__)("You've removed this article.","wordpress-seo-premium");case Ar.orphaned.noindexed:return(0,u.__)("You've hidden this article from search engines.","wordpress-seo-premium");case Ar.orphaned.update:return(0,u.__)("You've moved this article to the next step.","wordpress-seo-premium");default:return""}},uo=({indexables:e,moveIndexables:t})=>{const n=(0,u.__)("SEO score","wordpress-seo-premium"),o=(0,u.__)("Readability score","wordpress-seo-premium");return e.length>0?(0,c.jsxs)("table",{className:"yoast_help",children:[(0,c.jsx)("thead",{children:(0,c.jsxs)("tr",{children:[(0,c.jsx)("th",{className:"manage-column",children:(0,c.jsx)("span",{"data-label":n,className:"yoast-tooltip yoast-tooltip-n yoast-tooltip-alt",children:(0,c.jsx)("span",{className:"yoast-column-seo-score yoast-column-header-has-tooltip",children:(0,c.jsx)("span",{className:"screen-reader-text",children:n})})})}),(0,c.jsx)("th",{className:"manage-column",children:(0,c.jsx)("span",{"data-label":o,className:"yoast-tooltip yoast-tooltip-n yoast-tooltip-alt",children:(0,c.jsx)("span",{className:"yoast-column-readability yoast-column-header-has-tooltip",children:(0,c.jsx)("span",{className:"screen-reader-text",children:o})})})}),(0,c.jsx)("th",{children:(0,u.__)("Article","wordpress-seo-premium")}),(0,c.jsx)("th",{children:(0,u.__)("Action","wordpress-seo-premium")})]})}),(0,c.jsx)("tbody",{children:e.slice(0,10).map((function(e){const n=!!e.purge,o=(0,s.useCallback)((()=>{t(Dr.orphaned,[e],Ar.orphaned.improveRemove,Ar.orphaned.update)}),[t,e]),i=(0,s.useCallback)((()=>{window.confirm((0,u.__)("Are you sure you wish to hide this article from search engines?","wordpress-seo-premium"))&&(async function(e){try{const t=await g()({path:"yoast/v1/workouts/noindex",method:"POST",data:{object_id:e.object_id,object_type:e.object_type,object_sub_type:e.object_sub_type}});return await t.json}catch(e){return console.error(e.message),!1}}(e),t(Dr.orphaned,[e],Ar.orphaned.improveRemove,Ar.orphaned.noindexed))}),[t,e]);return(0,c.jsxs)("tr",{children:[(0,c.jsx)("td",{children:(0,c.jsx)(r.SvgIcon,{...w(ao(e.primary_focus_keyword_score/10))})}),(0,c.jsx)("td",{children:(0,c.jsx)(r.SvgIcon,{...w(ao(e.readability_score/10))})}),(0,c.jsx)("td",{children:(0,c.jsxs)("a",{href:e.permalink,target:"_blank",rel:"noopener noreferrer",children:[x(e.breadcrumb_title),(0,c.jsx)(p,{})]})}),!n&&(0,c.jsxs)("td",{children:[(0,c.jsx)(r.Button,{onClick:o,children:(0,u.__)("Improve","wordpress-seo-premium")}),(0,c.jsx)(so,{indexable:e,moveIndexables:t}),(0,c.jsx)(r.Button,{onClick:i,children:(0,u.__)("Hide from search engines","wordpress-seo-premium")})]}),n&&(0,c.jsx)("td",{children:(0,c.jsx)("em",{children:lo(e.movedTo)})})]},"orphaned-"+e.id)}))})]}):(0,c.jsx)("p",{children:(0,c.jsx)("em",{children:(0,u.__)("Everything's looking good! We haven't found any articles on your site that are older than six months and receive too few links on your site. Check back here later for new cleanup suggestions!","wordpress-seo-premium")})})};uo.propTypes={indexables:i().arrayOf(i().object).isRequired,moveIndexables:i().func.isRequired};const{seoDataOptimizationNeeded:co,orphanedGuide:po,orphanedUpdateContent:ho}=window.wpseoPremiumWorkoutsData;function fo({toggleStep:e,toggleWorkout:t,isWorkoutFinished:n,isStepFinished:o,moveIndexables:i,clearIndexablesInSteps:a,getIndexablesByStep:l}){const{toolsPageUrl:f}=window.wpseoWorkoutsData,v=Ar.orphaned,b=(0,s.useCallback)((()=>e(Dr.orphaned,v.improveRemove)),[e]),g=(0,s.useCallback)((()=>e(Dr.orphaned,v.update)),[e]),y=(0,s.useCallback)((()=>e(Dr.orphaned,v.addLinks)),[e]),x=(0,s.useCallback)((()=>t(Dr.orphaned)),[t]),w=(0,s.useCallback)((()=>a(Dr.orphaned,["removed","noindexed","improved","skipped"])),[a]),k=(0,s.useCallback)((e=>{i(Dr.orphaned,[e],Ar.orphaned.addLinks,Ar.orphaned.improved)}),[i]),j=(0,s.useCallback)((e=>{i(Dr.orphaned,[e],Ar.orphaned.addLinks,Ar.orphaned.skipped)}),[i]),_=l(Dr.orphaned,Ar.orphaned.improved),O=l(Dr.orphaned,Ar.orphaned.removed),C=l(Dr.orphaned,Ar.orphaned.noindexed),S=l(Dr.orphaned,Ar.orphaned.skipped);return(0,c.jsxs)("div",{className:"card",children:[(0,c.jsx)("h2",{children:(0,u.__)("Orphaned content","wordpress-seo-premium")}),(0,c.jsx)("h3",{children:(0,u.__)("Clean up your unlinked content to make sure people can find it","wordpress-seo-premium")}),"1"===co&&(0,c.jsx)(m,{url:f}),(0,c.jsx)("p",{children:(0,u.__)("You might not even know it, but there may be pages on your site that don't get any links. That’s an SEO issue, because it’s difficult for search engines to find pages that don't get any links. So, it's harder for them to rank. We call these pages orphaned content. In this workout, we find the orphaned content on your site and guide you in quickly adding links to it, so it can get a chance to rank!","wordpress-seo-premium")}),(0,c.jsx)("p",{children:h((0,u.sprintf)(
// translators: %1$s and %6$s are emphasis tags, %2$s and %5$s are anchor tags, %3$s and %4$s expand to an icon tag. %7$s is Yoast SEO Premium.
// translators: %1$s and %6$s are emphasis tags, %2$s and %5$s are anchor tags, %3$s and %4$s expand to an icon tag. %7$s is Yoast SEO Premium.
(0,u.__)("%1$sNeed more guidance? We've covered every step in more detail in the following guide: %2$sHow to use the %7$s orphaned content workout%3$s%4$s%5$s.%6$s","wordpress-seo-premium"),"<em>","<a>","<icon>","</icon>","</a>","</em>","Yoast SEO Premium"),{icon:(0,c.jsx)(p,{}),a:(0,c.jsx)("a",{href:po,target:"_blank",rel:"noopener noreferrer"}),em:(0,c.jsx)("em",{})})}),(0,c.jsx)("hr",{}),(0,c.jsxs)("ol",{className:"workflow yoast",children:[(0,c.jsxs)("li",{className:"step"+(o(Dr.orphaned,v.improveRemove)?" finished faded":""),children:[(0,c.jsx)("h4",{children:(0,u.__)("Start: Love it or leave it?","wordpress-seo-premium")}),(0,c.jsxs)("div",{className:"workflow__grid",children:[(0,c.jsx)("div",{children:(0,c.jsx)("p",{children:(0,u.__)("Your site may contain lots of content that you created once and never looked back to it since. It's important to go through those pages and ask yourself if that content is still relevant to your site. Should you improve it or remove it?","wordpress-seo-premium")})}),(0,c.jsx)("div",{children:(0,c.jsx)("img",{className:"workflow__image",src:"https://yoast.com/shared-assets/images/wpseo_workouts/17-9/motivated_bubble_woman_2_optim.svg",width:"100",height:"100",alt:""})})]}),(0,c.jsx)(uo,{indexables:l(Dr.orphaned,Ar.orphaned.improveRemove),moveIndexables:i}),(0,c.jsx)("br",{}),(0,c.jsx)(d,{onClick:b,isFinished:o(Dr.orphaned,v.improveRemove)})]}),(0,c.jsxs)("li",{className:"step"+(o(Dr.orphaned,v.update)?" finished faded":""),children:[(0,c.jsx)("h4",{children:(0,u.__)("Should you update your article?","wordpress-seo-premium")}),(0,c.jsx)("p",{children:h((0,u.sprintf)(
// translators: %1$s and %2$s are anchor tags.
// translators: %1$s and %2$s are anchor tags.
(0,u.__)("Critically examine the content in this list and make the necessary updates. If you need help updating, we have a very %1$suseful blog post that can guide you all the way%2$s (click to open in a new tab).","wordpress-seo-premium"),"<a>","</a>"),{a:(0,c.jsx)("a",{href:ho,target:"_blank",rel:"noopener noreferrer"})})}),(0,c.jsx)(oo,{indexables:l(Dr.orphaned,Ar.orphaned.update),moveIndexables:i}),(0,c.jsx)("br",{}),(0,c.jsx)(d,{onClick:g,isFinished:o(Dr.orphaned,v.update)})]}),(0,c.jsxs)("li",{className:"step"+(o(Dr.orphaned,v.addLinks)?" finished faded":""),children:[(0,c.jsx)("h4",{children:(0,u.__)("Add internal links towards your orphaned articles.","wordpress-seo-premium")}),(0,c.jsx)("p",{children:(0,u.__)("Time to add some links! Below, you see a list with your orphaned articles. Under each one, there are suggestions for related pages you could add a link from. When adding the link, make sure to insert it in a relevant sentence related to your orphaned article. Keep adding links to each of the orphaned articles until you are satisfied with the amount of links pointing to them.","wordpress-seo-premium")}),(0,c.jsx)(Xr,{indexables:l(Dr.orphaned,Ar.orphaned.addLinks),finish:k,skip:j,minimumLinks:2}),(0,c.jsx)("br",{}),(0,c.jsx)(d,{onClick:y,isFinished:o(Dr.orphaned,v.addLinks)})]}),(0,c.jsxs)("li",{className:"step"+(n?" finished faded":""),children:[(0,c.jsx)("h4",{children:(0,u.__)("Well done!","wordpress-seo-premium")}),(0,c.jsxs)("div",{className:"workflow__grid",children:[(0,c.jsx)("div",{children:(0,c.jsx)("p",{children:(0,u.__)("You've added links to your orphaned articles, and you’ve cleaned up the ones that were no longer relevant. Great job! Take a look at the summary below and celebrate what you accomplished!","wordpress-seo-premium")})}),(0,c.jsx)("div",{children:(0,c.jsx)("img",{className:"workflow__image",src:"https://yoast.com/shared-assets/images/wpseo_workouts/17-9/fit_bubble_woman_2_optim.svg",width:"120",height:"120",alt:"",style:{maxWidth:"120px",maxHeight:"120px"}})})]}),(0,c.jsx)(io,{improved:_,removed:O,noindexed:C,skipped:S}),(0,c.jsx)("br",{}),(0,c.jsx)(r.Button,{className:"yoast-button yoast-button--primary orphaned-summary",onClick:x,children:n?(0,u.__)("Reset this workout","wordpress-seo-premium"):(0,u.__)("I've finished this workout","wordpress-seo-premium")})," ",(_.length>0||O.length>0||C.length>0||S.length>0)&&(0,c.jsx)(r.Button,{className:"yoast-button orphaned-summary",onClick:w,children:(0,u.__)("Clear summary","wordpress-seo-premium")})]})]})]})}fo.propTypes={toggleStep:i().func.isRequired,toggleWorkout:i().func.isRequired,isStepFinished:i().func.isRequired,isWorkoutFinished:i().bool.isRequired,getIndexablesByStep:i().func.isRequired,moveIndexables:i().func.isRequired,clearIndexablesInSteps:i().func.isRequired};const mo=(0,l.compose)([(0,a.withSelect)((e=>{const t=e("yoast-seo/workouts").getWorkouts(),n=e("yoast-seo/workouts").getFinishedWorkouts(),r=n.includes(Dr.orphaned);return{finishedWorkouts:n,isStepFinished:(e,n)=>t[e].finishedSteps.includes(n),isWorkoutFinished:r,getIndexablesByStep:e("yoast-seo/workouts").getIndexablesByStep}})),(0,a.withDispatch)((e=>{const{toggleStep:t,toggleWorkout:n,moveIndexables:r,clearIndexablesInSteps:o}=e("yoast-seo/workouts");return{toggleStep:t,toggleWorkout:n,moveIndexables:r,clearIndexablesInSteps:o}}))])(fo),{setTextdomainL10n:vo}=window.yoast.editorModules.helpers.i18n;vo("wordpress-seo-premium","wpseoPremiumJSL10n");const bo=window.yoast.adminModules.components.workouts.CornerstoneWorkoutCard,go=window.yoast.adminModules.components.workouts.OrphanedWorkoutCard;t()((()=>{window.wpseoWorkoutsData.registerWorkout("cornerstone",20,(()=>(0,c.jsx)(bo,{workout:eo,badges:[(0,c.jsx)(r.PremiumBadge,{},"premium-badge-cornerstone-workout")]}))),window.wpseoWorkoutsData.registerWorkout("orphaned",30,(()=>(0,c.jsx)(go,{workout:mo,badges:[(0,c.jsx)(r.PremiumBadge,{},"premium-badge-orphaned-workout")]})))}))})()})();