(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[18],{0:function(e,t){e.exports=React},10:function(e,t,r){var n=r(4).Symbol;e.exports=n},101:function(e,t,r){var n=r(133),o=r(41),i=r(3),a=r(44),u=r(50),c=r(51),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&o(e),f=!r&&!l&&a(e),p=!r&&!l&&!f&&c(e),d=r||l||f||p,y=d?n(e.length,String):[],h=y.length;for(var v in e)!t&&!s.call(e,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,h))||y.push(v);return y}},104:function(e,t,r){var n=r(52),o=r(137),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},105:function(e,t){e.exports=function(e,t){return function(r){return e(t(r))}}},11:function(e,t){e.exports=window.yoast.styledComponents},110:function(e,t,r){"use strict";var n=r(111),o=r(112),i=r(113);e.exports=function(){function e(e,t,r,n,a,u){u!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return r.checkPropTypes=n,r.PropTypes=r,r}},111:function(e,t,r){"use strict";function n(e){return function(){return e}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},112:function(e,t,r){"use strict";var n=function(e){};e.exports=function(e,t,r,o,i,a,u,c){if(n(t),!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,a,u,c],f=0;(s=new Error(t.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},113:function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},114:function(e,t,r){var n=r(138),o=r(139),i=r(140);e.exports=function(e,t,r){return t==t?i(e,t,r):n(e,o,r)}},116:function(e,t,r){var n=r(33),o=r(141),i=r(142);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t0&&i(l)?r>1?e(l,r-1,i,a,u):n(u,l):a||(u[u.length]=l)}return u}},198:function(e,t){e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},199:function(e,t,r){var n=r(200),o=r(130),i=r(43),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},2:function(e,t,r){e.exports=r(110)()},20:function(e,t,r){var n=r(15),o=1/0;e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},200:function(e,t){e.exports=function(e){return function(){return e}}},201:function(e,t){var r=800,n=16,o=Date.now;e.exports=function(e){var t=0,i=0;return function(){var a=o(),u=n-(a-i);if(i=a,u>0){if(++t>=r)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},206:function(e,t,r){var n=r(43),o=r(148),i=r(149);e.exports=function(e,t){return i(o(e,t,n),e+"")}},22:function(e,t,r){var n=r(19),o=r(48);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},251:function(e,t,r){var n=r(10),o=r(41),i=r(3),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},258:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(r(121)),o=i(r(19));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(){return!(0,n.default)(window.wp)&&!(0,n.default)(wp.data)&&!(0,n.default)(wp.data.select("core/edit-post"))&&!(0,n.default)(wp.data.select("core/editor"))&&(0,o.default)(wp.data.select("core/editor").getEditedPostAttribute)}},27:function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},29:function(e,t,r){var n=r(3),o=r(36),i=r(69),a=r(60);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},3:function(e,t){var r=Array.isArray;e.exports=r},30:function(e,t,r){var n=r(82),o=r(83),i=r(84),a=r(85),u=r(86);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1}},356:function(e,t){e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n-1&&e%1==0&&e<=r}},5:function(e,t){e.exports=window.wp.i18n},50:function(e,t){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?r:t)&&("number"==o||"symbol"!=o&&n.test(e))&&e>-1&&e%1==0&&e=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?r+=t.charAt(n):i<128?r+=o[i]:i<2048?r+=o[192|i>>6]+o[128|63&i]:i<55296||i>=57344?r+=o[224|i>>12]+o[128|i>>6&63]+o[128|63&i]:(n+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(n)),r+=o[240|i>>18]+o[128|i>>12&63]+o[128|i>>6&63]+o[128|63&i])}return r},isBuffer:function(e){return null!==e&&void 0!==e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,r,o){if(!r)return t;if("object"!=typeof r){if(Array.isArray(t))t.push(r);else{if("object"!=typeof t)return[t,r];(o.plainObjects||o.allowPrototypes||!n.call(Object.prototype,r))&&(t[r]=!0)}return t}if("object"!=typeof t)return[t].concat(r);var a=t;return Array.isArray(t)&&!Array.isArray(r)&&(a=i(t,o)),Array.isArray(t)&&Array.isArray(r)?(r.forEach(function(r,i){n.call(t,i)?t[i]&&"object"==typeof t[i]?t[i]=e(t[i],r,o):t.push(r):t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return n.call(t,i)?t[i]=e(t[i],a,o):t[i]=a,t},a)}}},605:function(e,t,r){"use strict";var n=String.prototype.replace,o=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return n.call(e,o,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},63:function(e,t,r){var n=r(33),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(i.Cache||n),r}i.Cache=n,e.exports=i},64:function(e,t,r){var n=r(10),o=r(31),i=r(3),a=r(15),u=1/0,c=n?n.prototype:void 0,s=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return s?s.call(t):"";var r=t+"";return"0"==r&&1/t==-u?"-0":r}},66:function(e,t){e.exports=function(e){return function(t){return e(t)}}},69:function(e,t,r){var n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r(70)(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(n,function(e,r,n,i){t.push(n?i.replace(o,"$1"):r||e)}),t});e.exports=i},7:function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},70:function(e,t,r){var n=r(63),o=500;e.exports=function(e){var t=n(e,function(e){return r.size===o&&r.clear(),e}),r=t.cache;return t}},71:function(e,t,r){var n=r(72),o=r(30),i=r(37);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},72:function(e,t,r){var n=r(73),o=r(78),i=r(79),a=r(80),u=r(81);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1}},86:function(e,t,r){var n=r(13);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},87:function(e,t,r){var n=r(14);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},88:function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},881:function(e,t,r){"use strict";var n=Object.assign||function(e){for(var t=1;t label");if(0===r.length)return"";var n=r.clone();return n.children().remove(),e.trim(n.text())}(o))}}function h(n){var o,i,a;o=e("#"+n+'checklist input[type="checkbox"]:checked');var u=e("#"+n+"checklist li");u.removeClass("wpseo-term-unchecked wpseo-primary-term wpseo-non-primary-term"),e(".wpseo-primary-category-label").remove(),u.addClass("wpseo-term-unchecked"),o.length<=1||o.each(function(o,u){u=e(u),(i=u.closest("li")).removeClass("wpseo-term-unchecked"),function(t){return 1===e(t).closest("li").children(".wpseo-make-primary-term").length}(u)||function(r,n){var o,i;o=e(n).closest("label"),i=t({taxonomy:f[r],term:o.text()}),o.after(i)}(n,u),u.val()===d(n)?(i.addClass("wpseo-primary-term"),(a=u.closest("label")).find(".wpseo-primary-category-label").remove(),a.append(r({taxonomy:f[n]}))):i.addClass("wpseo-non-primary-term")})}function v(t){y(t,e("#"+t+'checklist input[type="checkbox"]:checked:first').val()),h(t)}function m(e){""===d(e)&&v(e)}function b(){(0,l.default)()&&(0,u.default)(window,"wp.hooks.addFilter",c.default)("editor.PostTaxonomyType",p,function(e){return function(t){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,a.Component),o(r,[{key:"render",value:function(){return wp.element.createElement(s.default,n({OriginalComponent:e},this.props))}}]),r}()})}e.fn.initYstSEOPrimaryCategory=function(){return this.each(function(t,r){var n=e("#"+r.name+"div");h(r.name),n.on("click",'input[type="checkbox"]',function(t){return function(){!1===e(this).prop("checked")&&e(this).val()===d(t)&&v(t),m(t),h(t)}}(r.name)),n.on("wpListAddEnd","#"+r.name+"checklist",function(e){return function(){m(e),h(e)}}(r.name)),n.on("click",".wpseo-make-primary-term",function(t){return function(r){var n;n=e(r.currentTarget).siblings("label").find("input"),y(t,n.val()),h(t),n.focus()}}(r.name))})},e(function(){t=wp.template("primary-term-ui"),r=wp.template("primary-term-screen-reader"),e(_.values(f)).initYstSEOPrimaryCategory(),b()})}(jQuery)},882:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r0&&e.updateReplacementVariable(e.props.primaryTaxonomyId)})}))}},{key:"getSelectedTerms",value:function(e,t){return e.filter(function(e){return t.includes(e.id)})}},{key:"updateSelectedTerms",value:function(e,t){var r=this.getSelectedTerms(e,t);this.setState({selectedTerms:r})}},{key:"onChange",value:function(e){var t=this.props.taxonomy.name;this.updateReplacementVariable(e),this.props.setPrimaryTaxonomyId(t,e),this.input.value=-1===e?"":e}},{key:"updateReplacementVariable",value:function(e){if("category"===this.props.taxonomy.name){var t=this.state.selectedTerms.find(function(t){return t.id===e});this.props.updateReplacementVariable("primary_"+this.props.taxonomy.name,t?t.name:"")}}},{key:"render",value:function(){var e=this.props,t=e.primaryTaxonomyId,r=e.taxonomy;if(this.state.selectedTerms.length<2)return null;var n="yoast-primary-"+r.name+"-picker";return wp.element.createElement(h,{className:"components-base-control__field"},wp.element.createElement("label",{htmlFor:n,className:"components-base-control__label"},(0,c.sprintf)((0,c.__)("Select the primary %s","wordpress-seo"),r.singularLabel.toLowerCase())),wp.element.createElement(d.default,{value:t,onChange:this.onChange,id:n,terms:this.state.selectedTerms}))}}]),t}();v.propTypes={selectedTermIds:i.default.arrayOf(i.default.number),primaryTaxonomyId:i.default.number,setPrimaryTaxonomyId:i.default.func,updateReplacementVariable:i.default.func,receiveEntityRecords:i.default.func,taxonomy:i.default.shape({name:i.default.string,fieldId:i.default.string,restBase:i.default.string,singularLabel:i.default.string})},t.default=(0,u.compose)([(0,a.withSelect)(function(e,t){var r=e("core/editor"),n=e("yoast-seo/editor"),o=t.taxonomy;return{selectedTermIds:r.getEditedPostAttribute(o.restBase)||[],primaryTaxonomyId:n.getPrimaryTaxonomyId(o.name)}}),(0,a.withDispatch)(function(e){var t=e("yoast-seo/editor");return{setPrimaryTaxonomyId:t.setPrimaryTaxonomyId,updateReplacementVariable:t.updateReplacementVariable}})])(v)},884:function(e,t){e.exports=window.wp.apiFetch},885:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isURL=function(e){return o.test(e)},t.getProtocol=function(e){var t=/^([^\s:]+:)/.exec(e);if(t)return t[1]},t.isValidProtocol=function(e){if(!e)return!1;return/^[a-z\-.\+]+[0-9]*:$/i.test(e)},t.getAuthority=function(e){var t=/^[^\/\s:]+:(?:\/\/)?\/?([^\/\s#?]+)[\/#?]{0,1}\S*$/.exec(e);if(t)return t[1]},t.isValidAuthority=function(e){if(!e)return!1;return/^[^\s#?]+$/.test(e)},t.getPath=function(e){var t=/^[^\/\s:]+:(?:\/\/)?[^\/\s#?]+[\/]([^\s#?]+)[#?]{0,1}\S*$/.exec(e);if(t)return t[1]},t.isValidPath=function(e){if(!e)return!1;return/^[^\s#?]+$/.test(e)},t.getQueryString=function(e){var t=/^\S+?\?([^\s#]+)/.exec(e);if(t)return t[1]},t.isValidQueryString=function(e){if(!e)return!1;return/^[^\s#?\/]+$/.test(e)},t.getFragment=function(e){var t=/^\S+?(#[^\s\?]*)/.exec(e);if(t)return t[1]},t.isValidFragment=function(e){if(!e)return!1;return/^#[^\s#?\/]*$/.test(e)},t.addQueryArgs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if(!t||!Object.keys(t).length)return e;var r=e,o=e.indexOf("?");-1!==o&&(t=Object.assign((0,n.parse)(e.substr(o+1)),t),r=r.substr(0,o));return r+"?"+(0,n.stringify)(t)},t.getQueryArg=u,t.hasQueryArg=function(e,t){return void 0!==u(e,t)},t.removeQueryArgs=function(e){for(var t=e.indexOf("?"),r=-1!==t?(0,n.parse)(e.substr(t+1)):{},o=-1!==t?e.substr(0,t):e,i=arguments.length,a=new Array(i>1?i-1:0),u=1;u0?k+P:""}},888:function(e,t,r){"use strict";var n=r(604),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(n),u=a?n.slice(0,a.index):n,c=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;c.push(u)}for(var s=0;null!==(a=i.exec(n))&&s=0;--o){var i,a=e[o];if("[]"===a)i=(i=[]).concat(n);else{i=r.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(u,10);!isNaN(c)&&a!==u&&String(c)===u&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[])[c]=n:i[u]=n}n=i}return n}(c,t,r)}};e.exports=function(e,t){var r=t?n.assign({},t):{};if(null!==r.decoder&&void 0!==r.decoder&&"function"!=typeof r.decoder)throw new TypeError("Decoder has to be a function.");if(r.ignoreQueryPrefix=!0===r.ignoreQueryPrefix,r.delimiter="string"==typeof r.delimiter||n.isRegExp(r.delimiter)?r.delimiter:i.delimiter,r.depth="number"==typeof r.depth?r.depth:i.depth,r.arrayLimit="number"==typeof r.arrayLimit?r.arrayLimit:i.arrayLimit,r.parseArrays=!1!==r.parseArrays,r.decoder="function"==typeof r.decoder?r.decoder:i.decoder,r.allowDots="boolean"==typeof r.allowDots?r.allowDots:i.allowDots,r.plainObjects="boolean"==typeof r.plainObjects?r.plainObjects:i.plainObjects,r.allowPrototypes="boolean"==typeof r.allowPrototypes?r.allowPrototypes:i.allowPrototypes,r.parameterLimit="number"==typeof r.parameterLimit?r.parameterLimit:i.parameterLimit,r.strictNullHandling="boolean"==typeof r.strictNullHandling?r.strictNullHandling:i.strictNullHandling,""===e||null===e||void 0===e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){for(var r={},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,u=n.split(t.delimiter,a),c=0;c=s&&(p=c,d=!1,t=new n(t));e:for(;++f